{"version":3,"file":"PaginateParams-CbAaMAAM.mjs","names":[],"sources":["../src/components/display/list/PaginateParams.vue","../src/components/display/list/PaginateParams.vue"],"sourcesContent":["<template>\n  <div class=\"paginate\">\n    <ClassicSelect\n      :text-init=\"rowsPerPage\"\n      :id-select=\"'rows-per-page-select'+id\"\n      :label=\"t('Items per page :')\"\n      :display-label=\"true\"\n      class-label=\"flex-shrink-0 me-1\"\n      class=\"d-flex align-items-center mb-0\"\n      :options=\"optionRowsPerPage\"\n      @update:text-init=\"emit('update:rowsPerPage', parseInt($event, 10))\"\n    />\n  </div>\n</template>\n<script setup lang=\"ts\">\nimport { useI18n } from \"vue-i18n\";\nimport ClassicSelect from \"../../form/ClassicSelect.vue\";\nimport { onBeforeMount, ref } from \"vue\";\n\n//Props \nconst props = defineProps({\n  rowsPerPage: { default: 0, type: Number },\n  id: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"update:rowsPerPage\"]);\n\n//Data \nconst optionsRowsPerPage = ref([10, 20, 30, 40, 50, 60]);\nconst optionRowsPerPage = ref([\n  {title:\"10\", value: 10},\n  {title:\"20\", value: 20},\n  {title:\"30\", value: 30},\n  {title:\"40\", value: 40},\n  {title:\"50\", value: 50},\n  {title:\"60\", value: 60},\n]);\n\n//Composables\nconst { t } = useI18n();\n\n\nonBeforeMount(()=>initRowsPerPage())\n\n//Methods\nfunction initRowsPerPage() {\n  if (optionsRowsPerPage.value.includes(props.rowsPerPage)) {\n    return;\n  }\n  optionsRowsPerPage.value.push(props.rowsPerPage);\n  optionsRowsPerPage.value.sort((a, b) => a - b);\n}\n</script>\n<style lang=\"scss\">\n.octopus-app .paginate {\n  display: flex;\n  justify-content: flex-end;\n\n  select {\n    border-top: 0;\n    border-right: 0;\n    border-left: 0;\n    background: transparent !important;\n    padding-right: 0.4rem;\n  }\n}\n</style>\n","<template>\n  <div class=\"paginate\">\n    <ClassicSelect\n      :text-init=\"rowsPerPage\"\n      :id-select=\"'rows-per-page-select'+id\"\n      :label=\"t('Items per page :')\"\n      :display-label=\"true\"\n      class-label=\"flex-shrink-0 me-1\"\n      class=\"d-flex align-items-center mb-0\"\n      :options=\"optionRowsPerPage\"\n      @update:text-init=\"emit('update:rowsPerPage', parseInt($event, 10))\"\n    />\n  </div>\n</template>\n<script setup lang=\"ts\">\nimport { useI18n } from \"vue-i18n\";\nimport ClassicSelect from \"../../form/ClassicSelect.vue\";\nimport { onBeforeMount, ref } from \"vue\";\n\n//Props \nconst props = defineProps({\n  rowsPerPage: { default: 0, type: Number },\n  id: { default: \"\", type: String },\n})\n\n//Emits\nconst emit = defineEmits([\"update:rowsPerPage\"]);\n\n//Data \nconst optionsRowsPerPage = ref([10, 20, 30, 40, 50, 60]);\nconst optionRowsPerPage = ref([\n  {title:\"10\", value: 10},\n  {title:\"20\", value: 20},\n  {title:\"30\", value: 30},\n  {title:\"40\", value: 40},\n  {title:\"50\", value: 50},\n  {title:\"60\", value: 60},\n]);\n\n//Composables\nconst { t } = useI18n();\n\n\nonBeforeMount(()=>initRowsPerPage())\n\n//Methods\nfunction initRowsPerPage() {\n  if (optionsRowsPerPage.value.includes(props.rowsPerPage)) {\n    return;\n  }\n  optionsRowsPerPage.value.push(props.rowsPerPage);\n  optionsRowsPerPage.value.sort((a, b) => a - b);\n}\n</script>\n<style lang=\"scss\">\n.octopus-app .paginate {\n  display: flex;\n  justify-content: flex-end;\n\n  select {\n    border-top: 0;\n    border-right: 0;\n    border-left: 0;\n    background: transparent !important;\n    padding-right: 0.4rem;\n  }\n}\n</style>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;EAoBA,MAAM,QAAQ;EAMd,MAAM,OAAO;EAGb,MAAM,qBAAqB,IAAI;GAAC;GAAI;GAAI;GAAI;GAAI;GAAI;EAAE,CAAC;EACvD,MAAM,oBAAoB,IAAI;GAC5B;IAAC,OAAM;IAAM,OAAO;GAAE;GACtB;IAAC,OAAM;IAAM,OAAO;GAAE;GACtB;IAAC,OAAM;IAAM,OAAO;GAAE;GACtB;IAAC,OAAM;IAAM,OAAO;GAAE;GACtB;IAAC,OAAM;IAAM,OAAO;GAAE;GACtB;IAAC,OAAM;IAAM,OAAO;GAAE;EACxB,CAAC;EAGD,MAAM,EAAE,MAAM,QAAQ;EAGtB,oBAAkB,gBAAgB,CAAC;EAGnC,SAAS,kBAAkB;GACzB,IAAI,mBAAmB,MAAM,SAAS,MAAM,WAAW,GACrD;GAEF,mBAAmB,MAAM,KAAK,MAAM,WAAW;GAC/C,mBAAmB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC;EAC/C;;;;;;;;;;;;;;;;;;;;mBCnDO,OAAM,WAAU;;qBAArB,mBAWM,OAXN,YAWM,CAVJ,YASE,OAAA,kBAAA;EARC,aAAW,OAAA;EACX,aAAS,yBAAyB,OAAA;EAClC,OAAO,OAAA,EAAC,kBAAA;EACR,iBAAe;EAChB,eAAY;EACZ,OAAM;EACL,SAAS,OAAA;EACT,qBAAgB,OAAA,OAAA,OAAA,MAAA,WAAE,OAAA,KAAI,sBAAuB,SAAS,QAAM,EAAA,CAAA"}