@semplice-studio/pa-design-system 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +190 -0
- package/README.md +166 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +10 -0
- package/dist/_virtual/_plugin-vue_export-helper.js.map +1 -0
- package/dist/components/PaAccordion/PaAccordion.vue.d.ts +26 -0
- package/dist/components/PaAccordion/PaAccordion.vue.js +10 -0
- package/dist/components/PaAccordion/PaAccordion.vue.js.map +1 -0
- package/dist/components/PaAccordion/PaAccordion.vue2.js +80 -0
- package/dist/components/PaAccordion/PaAccordion.vue2.js.map +1 -0
- package/dist/components/PaAccordion/groupKey.d.ts +8 -0
- package/dist/components/PaAccordion/groupKey.js +5 -0
- package/dist/components/PaAccordion/groupKey.js.map +1 -0
- package/dist/components/PaAccordion/index.d.ts +2 -0
- package/dist/components/PaAccordion/index.js +6 -0
- package/dist/components/PaAccordion/index.js.map +1 -0
- package/dist/components/PaAccordionGroup/PaAccordionGroup.vue.d.ts +19 -0
- package/dist/components/PaAccordionGroup/PaAccordionGroup.vue.js +8 -0
- package/dist/components/PaAccordionGroup/PaAccordionGroup.vue.js.map +1 -0
- package/dist/components/PaAccordionGroup/PaAccordionGroup.vue2.js +52 -0
- package/dist/components/PaAccordionGroup/PaAccordionGroup.vue2.js.map +1 -0
- package/dist/components/PaAccordionGroup/index.d.ts +2 -0
- package/dist/components/PaAccordionGroup/index.js +6 -0
- package/dist/components/PaAccordionGroup/index.js.map +1 -0
- package/dist/components/PaBanner/PaBanner.vue.d.ts +27 -0
- package/dist/components/PaBanner/PaBanner.vue.js +12 -0
- package/dist/components/PaBanner/PaBanner.vue.js.map +1 -0
- package/dist/components/PaBanner/PaBanner.vue2.js +79 -0
- package/dist/components/PaBanner/PaBanner.vue2.js.map +1 -0
- package/dist/components/PaBanner/index.d.ts +2 -0
- package/dist/components/PaBanner/index.js +5 -0
- package/dist/components/PaBanner/index.js.map +1 -0
- package/dist/components/PaBreadcrumb/PaBreadcrumb.vue.d.ts +30 -0
- package/dist/components/PaBreadcrumb/PaBreadcrumb.vue.js +8 -0
- package/dist/components/PaBreadcrumb/PaBreadcrumb.vue.js.map +1 -0
- package/dist/components/PaBreadcrumb/PaBreadcrumb.vue2.js +80 -0
- package/dist/components/PaBreadcrumb/PaBreadcrumb.vue2.js.map +1 -0
- package/dist/components/PaBreadcrumb/index.d.ts +2 -0
- package/dist/components/PaBreadcrumb/index.js +6 -0
- package/dist/components/PaBreadcrumb/index.js.map +1 -0
- package/dist/components/PaButton/PaButton.vue.d.ts +41 -0
- package/dist/components/PaButton/PaButton.vue.js +8 -0
- package/dist/components/PaButton/PaButton.vue.js.map +1 -0
- package/dist/components/PaButton/PaButton.vue2.js +37 -0
- package/dist/components/PaButton/PaButton.vue2.js.map +1 -0
- package/dist/components/PaButton/index.d.ts +2 -0
- package/dist/components/PaButton/index.js +6 -0
- package/dist/components/PaButton/index.js.map +1 -0
- package/dist/components/PaCard/PaCard.vue.d.ts +45 -0
- package/dist/components/PaCard/PaCard.vue.js +8 -0
- package/dist/components/PaCard/PaCard.vue.js.map +1 -0
- package/dist/components/PaCard/PaCard.vue2.js +135 -0
- package/dist/components/PaCard/PaCard.vue2.js.map +1 -0
- package/dist/components/PaCard/index.d.ts +2 -0
- package/dist/components/PaCard/index.js +6 -0
- package/dist/components/PaCard/index.js.map +1 -0
- package/dist/components/PaCarousel/PaCarousel.vue.d.ts +27 -0
- package/dist/components/PaCarousel/PaCarousel.vue.js +8 -0
- package/dist/components/PaCarousel/PaCarousel.vue.js.map +1 -0
- package/dist/components/PaCarousel/PaCarousel.vue2.js +215 -0
- package/dist/components/PaCarousel/PaCarousel.vue2.js.map +1 -0
- package/dist/components/PaCarousel/index.d.ts +2 -0
- package/dist/components/PaCarousel/index.js +5 -0
- package/dist/components/PaCarousel/index.js.map +1 -0
- package/dist/components/PaCheckbox/PaCheckbox.vue.d.ts +29 -0
- package/dist/components/PaCheckbox/PaCheckbox.vue.js +10 -0
- package/dist/components/PaCheckbox/PaCheckbox.vue.js.map +1 -0
- package/dist/components/PaCheckbox/PaCheckbox.vue2.js +89 -0
- package/dist/components/PaCheckbox/PaCheckbox.vue2.js.map +1 -0
- package/dist/components/PaCheckbox/index.d.ts +2 -0
- package/dist/components/PaCheckbox/index.js +6 -0
- package/dist/components/PaCheckbox/index.js.map +1 -0
- package/dist/components/PaCheckboxGroup/PaCheckboxGroup.vue.d.ts +32 -0
- package/dist/components/PaCheckboxGroup/PaCheckboxGroup.vue.js +10 -0
- package/dist/components/PaCheckboxGroup/PaCheckboxGroup.vue.js.map +1 -0
- package/dist/components/PaCheckboxGroup/PaCheckboxGroup.vue2.js +89 -0
- package/dist/components/PaCheckboxGroup/PaCheckboxGroup.vue2.js.map +1 -0
- package/dist/components/PaCheckboxGroup/index.d.ts +2 -0
- package/dist/components/PaCheckboxGroup/index.js +6 -0
- package/dist/components/PaCheckboxGroup/index.js.map +1 -0
- package/dist/components/PaChip/PaChip.vue.d.ts +23 -0
- package/dist/components/PaChip/PaChip.vue.js +8 -0
- package/dist/components/PaChip/PaChip.vue.js.map +1 -0
- package/dist/components/PaChip/PaChip.vue2.js +75 -0
- package/dist/components/PaChip/PaChip.vue2.js.map +1 -0
- package/dist/components/PaChip/index.d.ts +2 -0
- package/dist/components/PaChip/index.js +6 -0
- package/dist/components/PaChip/index.js.map +1 -0
- package/dist/components/PaDatePicker/PaDatePicker.vue.d.ts +60 -0
- package/dist/components/PaDatePicker/PaDatePicker.vue.js +10 -0
- package/dist/components/PaDatePicker/PaDatePicker.vue.js.map +1 -0
- package/dist/components/PaDatePicker/PaDatePicker.vue2.js +229 -0
- package/dist/components/PaDatePicker/PaDatePicker.vue2.js.map +1 -0
- package/dist/components/PaDatePicker/index.d.ts +1 -0
- package/dist/components/PaDatePicker/index.js +6 -0
- package/dist/components/PaDatePicker/index.js.map +1 -0
- package/dist/components/PaDrawer/PaDrawer.vue.d.ts +36 -0
- package/dist/components/PaDrawer/PaDrawer.vue.js +8 -0
- package/dist/components/PaDrawer/PaDrawer.vue.js.map +1 -0
- package/dist/components/PaDrawer/PaDrawer.vue2.js +161 -0
- package/dist/components/PaDrawer/PaDrawer.vue2.js.map +1 -0
- package/dist/components/PaDrawer/PaDrawerInfoRow.vue.d.ts +24 -0
- package/dist/components/PaDrawer/PaDrawerInfoRow.vue.js +8 -0
- package/dist/components/PaDrawer/PaDrawerInfoRow.vue.js.map +1 -0
- package/dist/components/PaDrawer/PaDrawerInfoRow.vue2.js +75 -0
- package/dist/components/PaDrawer/PaDrawerInfoRow.vue2.js.map +1 -0
- package/dist/components/PaDrawer/index.d.ts +4 -0
- package/dist/components/PaDrawer/index.js +8 -0
- package/dist/components/PaDrawer/index.js.map +1 -0
- package/dist/components/PaFab/PaFab.vue.d.ts +18 -0
- package/dist/components/PaFab/PaFab.vue.js +10 -0
- package/dist/components/PaFab/PaFab.vue.js.map +1 -0
- package/dist/components/PaFab/PaFab.vue2.js +44 -0
- package/dist/components/PaFab/PaFab.vue2.js.map +1 -0
- package/dist/components/PaFab/index.d.ts +2 -0
- package/dist/components/PaFab/index.js +6 -0
- package/dist/components/PaFab/index.js.map +1 -0
- package/dist/components/PaFileUpload/PaFileUpload.vue.d.ts +40 -0
- package/dist/components/PaFileUpload/PaFileUpload.vue.js +10 -0
- package/dist/components/PaFileUpload/PaFileUpload.vue.js.map +1 -0
- package/dist/components/PaFileUpload/PaFileUpload.vue2.js +164 -0
- package/dist/components/PaFileUpload/PaFileUpload.vue2.js.map +1 -0
- package/dist/components/PaFileUpload/index.d.ts +2 -0
- package/dist/components/PaFileUpload/index.js +6 -0
- package/dist/components/PaFileUpload/index.js.map +1 -0
- package/dist/components/PaFooter/PaFooter.vue.d.ts +67 -0
- package/dist/components/PaFooter/PaFooter.vue.js +8 -0
- package/dist/components/PaFooter/PaFooter.vue.js.map +1 -0
- package/dist/components/PaFooter/PaFooter.vue2.js +226 -0
- package/dist/components/PaFooter/PaFooter.vue2.js.map +1 -0
- package/dist/components/PaFooter/index.d.ts +2 -0
- package/dist/components/PaFooter/index.js +6 -0
- package/dist/components/PaFooter/index.js.map +1 -0
- package/dist/components/PaHeaderDesktop/PaHeaderDesktop.vue.d.ts +70 -0
- package/dist/components/PaHeaderDesktop/PaHeaderDesktop.vue.js +8 -0
- package/dist/components/PaHeaderDesktop/PaHeaderDesktop.vue.js.map +1 -0
- package/dist/components/PaHeaderDesktop/PaHeaderDesktop.vue2.js +337 -0
- package/dist/components/PaHeaderDesktop/PaHeaderDesktop.vue2.js.map +1 -0
- package/dist/components/PaHeaderDesktop/index.d.ts +2 -0
- package/dist/components/PaHeaderDesktop/index.js +6 -0
- package/dist/components/PaHeaderDesktop/index.js.map +1 -0
- package/dist/components/PaHeaderMobile/PaHeaderMobile.vue.d.ts +71 -0
- package/dist/components/PaHeaderMobile/PaHeaderMobile.vue.js +8 -0
- package/dist/components/PaHeaderMobile/PaHeaderMobile.vue.js.map +1 -0
- package/dist/components/PaHeaderMobile/PaHeaderMobile.vue2.js +472 -0
- package/dist/components/PaHeaderMobile/PaHeaderMobile.vue2.js.map +1 -0
- package/dist/components/PaHeaderMobile/index.d.ts +2 -0
- package/dist/components/PaHeaderMobile/index.js +6 -0
- package/dist/components/PaHeaderMobile/index.js.map +1 -0
- package/dist/components/PaHeaderShared/index.d.ts +1 -0
- package/dist/components/PaHeaderShared/index.js +2 -0
- package/dist/components/PaHeaderShared/index.js.map +1 -0
- package/dist/components/PaHeaderShared/types.d.ts +43 -0
- package/dist/components/PaHero/PaHero.vue.d.ts +36 -0
- package/dist/components/PaHero/PaHero.vue.js +8 -0
- package/dist/components/PaHero/PaHero.vue.js.map +1 -0
- package/dist/components/PaHero/PaHero.vue2.js +101 -0
- package/dist/components/PaHero/PaHero.vue2.js.map +1 -0
- package/dist/components/PaHero/index.d.ts +2 -0
- package/dist/components/PaHero/index.js +6 -0
- package/dist/components/PaHero/index.js.map +1 -0
- package/dist/components/PaIcon/PaIcon.vue.d.ts +8342 -0
- package/dist/components/PaIcon/PaIcon.vue.js +163 -0
- package/dist/components/PaIcon/PaIcon.vue.js.map +1 -0
- package/dist/components/PaIcon/PaIcon.vue2.js +8 -0
- package/dist/components/PaIcon/PaIcon.vue2.js.map +1 -0
- package/dist/components/PaIcon/index.d.ts +2 -0
- package/dist/components/PaIcon/index.js +6 -0
- package/dist/components/PaIcon/index.js.map +1 -0
- package/dist/components/PaImage/PaImage.vue.d.ts +10 -0
- package/dist/components/PaImage/PaImage.vue.js +10 -0
- package/dist/components/PaImage/PaImage.vue.js.map +1 -0
- package/dist/components/PaImage/PaImage.vue2.js +44 -0
- package/dist/components/PaImage/PaImage.vue2.js.map +1 -0
- package/dist/components/PaImage/gridKey.d.ts +6 -0
- package/dist/components/PaImage/gridKey.js +5 -0
- package/dist/components/PaImage/gridKey.js.map +1 -0
- package/dist/components/PaImage/index.d.ts +2 -0
- package/dist/components/PaImage/index.js +6 -0
- package/dist/components/PaImage/index.js.map +1 -0
- package/dist/components/PaImageGrid/PaImageGrid.vue.d.ts +18 -0
- package/dist/components/PaImageGrid/PaImageGrid.vue.js +8 -0
- package/dist/components/PaImageGrid/PaImageGrid.vue.js.map +1 -0
- package/dist/components/PaImageGrid/PaImageGrid.vue2.js +28 -0
- package/dist/components/PaImageGrid/PaImageGrid.vue2.js.map +1 -0
- package/dist/components/PaImageGrid/index.d.ts +2 -0
- package/dist/components/PaImageGrid/index.js +6 -0
- package/dist/components/PaImageGrid/index.js.map +1 -0
- package/dist/components/PaInput/PaInput.vue.d.ts +54 -0
- package/dist/components/PaInput/PaInput.vue.js +10 -0
- package/dist/components/PaInput/PaInput.vue.js.map +1 -0
- package/dist/components/PaInput/PaInput.vue2.js +201 -0
- package/dist/components/PaInput/PaInput.vue2.js.map +1 -0
- package/dist/components/PaInput/index.d.ts +2 -0
- package/dist/components/PaInput/index.js +6 -0
- package/dist/components/PaInput/index.js.map +1 -0
- package/dist/components/PaModal/PaModal.vue.d.ts +35 -0
- package/dist/components/PaModal/PaModal.vue.js +8 -0
- package/dist/components/PaModal/PaModal.vue.js.map +1 -0
- package/dist/components/PaModal/PaModal.vue2.js +155 -0
- package/dist/components/PaModal/PaModal.vue2.js.map +1 -0
- package/dist/components/PaModal/index.d.ts +2 -0
- package/dist/components/PaModal/index.js +5 -0
- package/dist/components/PaModal/index.js.map +1 -0
- package/dist/components/PaMonthPicker/PaMonthPicker.vue.d.ts +59 -0
- package/dist/components/PaMonthPicker/PaMonthPicker.vue.js +10 -0
- package/dist/components/PaMonthPicker/PaMonthPicker.vue.js.map +1 -0
- package/dist/components/PaMonthPicker/PaMonthPicker.vue2.js +314 -0
- package/dist/components/PaMonthPicker/PaMonthPicker.vue2.js.map +1 -0
- package/dist/components/PaMonthPicker/index.d.ts +1 -0
- package/dist/components/PaMonthPicker/index.js +6 -0
- package/dist/components/PaMonthPicker/index.js.map +1 -0
- package/dist/components/PaPagination/PaPagination.vue.d.ts +39 -0
- package/dist/components/PaPagination/PaPagination.vue.js +8 -0
- package/dist/components/PaPagination/PaPagination.vue.js.map +1 -0
- package/dist/components/PaPagination/PaPagination.vue2.js +202 -0
- package/dist/components/PaPagination/PaPagination.vue2.js.map +1 -0
- package/dist/components/PaPagination/index.d.ts +2 -0
- package/dist/components/PaPagination/index.js +6 -0
- package/dist/components/PaPagination/index.js.map +1 -0
- package/dist/components/PaPagination/usePageWindow.d.ts +2 -0
- package/dist/components/PaPagination/usePageWindow.js +19 -0
- package/dist/components/PaPagination/usePageWindow.js.map +1 -0
- package/dist/components/PaProgressBar/PaProgressBar.vue.d.ts +13 -0
- package/dist/components/PaProgressBar/PaProgressBar.vue.js +8 -0
- package/dist/components/PaProgressBar/PaProgressBar.vue.js.map +1 -0
- package/dist/components/PaProgressBar/PaProgressBar.vue2.js +46 -0
- package/dist/components/PaProgressBar/PaProgressBar.vue2.js.map +1 -0
- package/dist/components/PaProgressBar/index.d.ts +2 -0
- package/dist/components/PaProgressBar/index.js +5 -0
- package/dist/components/PaProgressBar/index.js.map +1 -0
- package/dist/components/PaRadioGroup/PaRadioGroup.vue.d.ts +32 -0
- package/dist/components/PaRadioGroup/PaRadioGroup.vue.js +10 -0
- package/dist/components/PaRadioGroup/PaRadioGroup.vue.js.map +1 -0
- package/dist/components/PaRadioGroup/PaRadioGroup.vue2.js +94 -0
- package/dist/components/PaRadioGroup/PaRadioGroup.vue2.js.map +1 -0
- package/dist/components/PaRadioGroup/index.d.ts +2 -0
- package/dist/components/PaRadioGroup/index.js +6 -0
- package/dist/components/PaRadioGroup/index.js.map +1 -0
- package/dist/components/PaRangePicker/PaRangePicker.vue.d.ts +64 -0
- package/dist/components/PaRangePicker/PaRangePicker.vue.js +10 -0
- package/dist/components/PaRangePicker/PaRangePicker.vue.js.map +1 -0
- package/dist/components/PaRangePicker/PaRangePicker.vue2.js +281 -0
- package/dist/components/PaRangePicker/PaRangePicker.vue2.js.map +1 -0
- package/dist/components/PaRangePicker/index.d.ts +2 -0
- package/dist/components/PaRangePicker/index.js +6 -0
- package/dist/components/PaRangePicker/index.js.map +1 -0
- package/dist/components/PaSearchBar/PaSearchBar.vue.d.ts +37 -0
- package/dist/components/PaSearchBar/PaSearchBar.vue.js +10 -0
- package/dist/components/PaSearchBar/PaSearchBar.vue.js.map +1 -0
- package/dist/components/PaSearchBar/PaSearchBar.vue2.js +271 -0
- package/dist/components/PaSearchBar/PaSearchBar.vue2.js.map +1 -0
- package/dist/components/PaSearchBar/index.d.ts +2 -0
- package/dist/components/PaSearchBar/index.js +6 -0
- package/dist/components/PaSearchBar/index.js.map +1 -0
- package/dist/components/PaSelect/PaSelect.vue.d.ts +39 -0
- package/dist/components/PaSelect/PaSelect.vue.js +10 -0
- package/dist/components/PaSelect/PaSelect.vue.js.map +1 -0
- package/dist/components/PaSelect/PaSelect.vue2.js +107 -0
- package/dist/components/PaSelect/PaSelect.vue2.js.map +1 -0
- package/dist/components/PaSelect/index.d.ts +2 -0
- package/dist/components/PaSelect/index.js +6 -0
- package/dist/components/PaSelect/index.js.map +1 -0
- package/dist/components/PaStepProgressBar/PaStepProgressBar.vue.d.ts +33 -0
- package/dist/components/PaStepProgressBar/PaStepProgressBar.vue.js +10 -0
- package/dist/components/PaStepProgressBar/PaStepProgressBar.vue.js.map +1 -0
- package/dist/components/PaStepProgressBar/PaStepProgressBar.vue2.js +116 -0
- package/dist/components/PaStepProgressBar/PaStepProgressBar.vue2.js.map +1 -0
- package/dist/components/PaStepProgressBar/index.d.ts +2 -0
- package/dist/components/PaStepProgressBar/index.js +5 -0
- package/dist/components/PaStepProgressBar/index.js.map +1 -0
- package/dist/components/PaTab/PaTab.vue.d.ts +19 -0
- package/dist/components/PaTab/PaTab.vue.js +8 -0
- package/dist/components/PaTab/PaTab.vue.js.map +1 -0
- package/dist/components/PaTab/PaTab.vue2.js +44 -0
- package/dist/components/PaTab/PaTab.vue2.js.map +1 -0
- package/dist/components/PaTab/index.d.ts +2 -0
- package/dist/components/PaTab/index.js +5 -0
- package/dist/components/PaTab/index.js.map +1 -0
- package/dist/components/PaTable/PaTable.vue.d.ts +40 -0
- package/dist/components/PaTable/PaTable.vue.js +8 -0
- package/dist/components/PaTable/PaTable.vue.js.map +1 -0
- package/dist/components/PaTable/PaTable.vue2.js +95 -0
- package/dist/components/PaTable/PaTable.vue2.js.map +1 -0
- package/dist/components/PaTable/index.d.ts +2 -0
- package/dist/components/PaTable/index.js +5 -0
- package/dist/components/PaTable/index.js.map +1 -0
- package/dist/components/PaTabs/PaTabs.vue.d.ts +47 -0
- package/dist/components/PaTabs/PaTabs.vue.js +10 -0
- package/dist/components/PaTabs/PaTabs.vue.js.map +1 -0
- package/dist/components/PaTabs/PaTabs.vue2.js +154 -0
- package/dist/components/PaTabs/PaTabs.vue2.js.map +1 -0
- package/dist/components/PaTabs/index.d.ts +2 -0
- package/dist/components/PaTabs/index.js +5 -0
- package/dist/components/PaTabs/index.js.map +1 -0
- package/dist/components/PaTag/PaTag.vue.d.ts +11 -0
- package/dist/components/PaTag/PaTag.vue.js +8 -0
- package/dist/components/PaTag/PaTag.vue.js.map +1 -0
- package/dist/components/PaTag/PaTag.vue2.js +27 -0
- package/dist/components/PaTag/PaTag.vue2.js.map +1 -0
- package/dist/components/PaTag/index.d.ts +2 -0
- package/dist/components/PaTag/index.js +6 -0
- package/dist/components/PaTag/index.js.map +1 -0
- package/dist/components/PaTextarea/PaTextarea.vue.d.ts +37 -0
- package/dist/components/PaTextarea/PaTextarea.vue.js +10 -0
- package/dist/components/PaTextarea/PaTextarea.vue.js.map +1 -0
- package/dist/components/PaTextarea/PaTextarea.vue2.js +104 -0
- package/dist/components/PaTextarea/PaTextarea.vue2.js.map +1 -0
- package/dist/components/PaTextarea/index.d.ts +2 -0
- package/dist/components/PaTextarea/index.js +6 -0
- package/dist/components/PaTextarea/index.js.map +1 -0
- package/dist/components/PaTimePicker/PaTimePicker.vue.d.ts +63 -0
- package/dist/components/PaTimePicker/PaTimePicker.vue.js +10 -0
- package/dist/components/PaTimePicker/PaTimePicker.vue.js.map +1 -0
- package/dist/components/PaTimePicker/PaTimePicker.vue2.js +421 -0
- package/dist/components/PaTimePicker/PaTimePicker.vue2.js.map +1 -0
- package/dist/components/PaTimePicker/index.d.ts +2 -0
- package/dist/components/PaTimePicker/index.js +6 -0
- package/dist/components/PaTimePicker/index.js.map +1 -0
- package/dist/components/PaTitleBar/PaTitleBar.vue.d.ts +36 -0
- package/dist/components/PaTitleBar/PaTitleBar.vue.js +8 -0
- package/dist/components/PaTitleBar/PaTitleBar.vue.js.map +1 -0
- package/dist/components/PaTitleBar/PaTitleBar.vue2.js +178 -0
- package/dist/components/PaTitleBar/PaTitleBar.vue2.js.map +1 -0
- package/dist/components/PaTitleBar/index.d.ts +2 -0
- package/dist/components/PaTitleBar/index.js +6 -0
- package/dist/components/PaTitleBar/index.js.map +1 -0
- package/dist/components/PaToggle/PaToggle.vue.d.ts +27 -0
- package/dist/components/PaToggle/PaToggle.vue.js +10 -0
- package/dist/components/PaToggle/PaToggle.vue.js.map +1 -0
- package/dist/components/PaToggle/PaToggle.vue2.js +79 -0
- package/dist/components/PaToggle/PaToggle.vue2.js.map +1 -0
- package/dist/components/PaToggle/index.d.ts +2 -0
- package/dist/components/PaToggle/index.js +6 -0
- package/dist/components/PaToggle/index.js.map +1 -0
- package/dist/components/PaYearPicker/PaYearPicker.vue.d.ts +59 -0
- package/dist/components/PaYearPicker/PaYearPicker.vue.js +10 -0
- package/dist/components/PaYearPicker/PaYearPicker.vue.js.map +1 -0
- package/dist/components/PaYearPicker/PaYearPicker.vue2.js +307 -0
- package/dist/components/PaYearPicker/PaYearPicker.vue2.js.map +1 -0
- package/dist/components/PaYearPicker/index.d.ts +1 -0
- package/dist/components/PaYearPicker/index.js +6 -0
- package/dist/components/PaYearPicker/index.js.map +1 -0
- package/dist/fonts/Inter-OFL.txt +92 -0
- package/dist/fonts/InterVariable.woff2 +0 -0
- package/dist/fonts/RobotoMono-OFL.txt +93 -0
- package/dist/fonts/RobotoMono-VariableFont.woff2 +0 -0
- package/dist/index.d.ts +78 -0
- package/dist/index.js +85 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/tokens.css +260 -0
- package/package.json +73 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type PaCheckboxGroupOption = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export interface PaCheckboxGroupProps {
|
|
7
|
+
options: PaCheckboxGroupOption[];
|
|
8
|
+
label?: string;
|
|
9
|
+
id?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
error?: string | boolean;
|
|
13
|
+
valid?: boolean;
|
|
14
|
+
required?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function nextPaCheckboxGroupId(): string;
|
|
18
|
+
declare const _default: import("vue").DefineComponent<PaCheckboxGroupProps & {
|
|
19
|
+
modelValue?: string[];
|
|
20
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: string[]) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<PaCheckboxGroupProps & {
|
|
23
|
+
modelValue?: string[];
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
error: string | boolean;
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
valid: boolean;
|
|
30
|
+
required: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import o from "./PaCheckboxGroup.vue2.js";
|
|
2
|
+
import { nextPaCheckboxGroupId as c } from "./PaCheckboxGroup.vue2.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e3404f8b"]]);
|
|
6
|
+
export {
|
|
7
|
+
a as default,
|
|
8
|
+
c as nextPaCheckboxGroupId
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=PaCheckboxGroup.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaCheckboxGroup.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as q, useModel as C, computed as r, openBlock as d, createElementBlock as i, normalizeClass as h, createTextVNode as I, toDisplayString as f, createCommentVNode as b, Fragment as M, renderList as T, createBlock as _, mergeModels as $ } from "vue";
|
|
2
|
+
import N from "../PaCheckbox/PaCheckbox.vue.js";
|
|
3
|
+
const P = ["aria-labelledby", "aria-required", "aria-invalid", "aria-describedby"], S = ["id"], A = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "pa-checkbox-group__required",
|
|
6
|
+
"aria-hidden": "true"
|
|
7
|
+
}, G = ["id"];
|
|
8
|
+
let U = 0;
|
|
9
|
+
function w() {
|
|
10
|
+
return `pa-checkbox-group-${++U}`;
|
|
11
|
+
}
|
|
12
|
+
const E = /* @__PURE__ */ q({
|
|
13
|
+
__name: "PaCheckboxGroup",
|
|
14
|
+
props: /* @__PURE__ */ $({
|
|
15
|
+
options: {},
|
|
16
|
+
label: {},
|
|
17
|
+
id: {},
|
|
18
|
+
name: {},
|
|
19
|
+
helperText: {},
|
|
20
|
+
error: { type: [String, Boolean], default: !1 },
|
|
21
|
+
valid: { type: Boolean, default: !1 },
|
|
22
|
+
required: { type: Boolean, default: !1 },
|
|
23
|
+
disabled: { type: Boolean, default: !1 }
|
|
24
|
+
}, {
|
|
25
|
+
modelValue: { default: () => [] },
|
|
26
|
+
modelModifiers: {}
|
|
27
|
+
}),
|
|
28
|
+
emits: ["update:modelValue"],
|
|
29
|
+
setup(e) {
|
|
30
|
+
const a = e, o = C(e, "modelValue"), k = w(), s = r(() => a.id ?? k), m = r(() => `${s.value}-label`), p = r(() => `${s.value}-msg`), x = r(() => a.name ?? `${s.value}-name`), u = r(() => !!a.error), c = r(() => a.valid && !u.value), y = r(
|
|
31
|
+
() => typeof a.error == "string" && a.error.length > 0 ? a.error : null
|
|
32
|
+
), B = r(
|
|
33
|
+
() => !u.value && !c.value && a.helperText ? a.helperText : null
|
|
34
|
+
), v = r(() => y.value ?? B.value);
|
|
35
|
+
function V(n, g) {
|
|
36
|
+
if (g) {
|
|
37
|
+
if (o.value.includes(n)) return;
|
|
38
|
+
const l = /* @__PURE__ */ new Set([...o.value, n]);
|
|
39
|
+
o.value = a.options.map((t) => t.value).filter((t) => l.has(t));
|
|
40
|
+
} else
|
|
41
|
+
o.value = o.value.filter((l) => l !== n);
|
|
42
|
+
}
|
|
43
|
+
return (n, g) => (d(), i("div", {
|
|
44
|
+
class: h([
|
|
45
|
+
"pa-checkbox-group",
|
|
46
|
+
{
|
|
47
|
+
"pa-checkbox-group--error": u.value,
|
|
48
|
+
"pa-checkbox-group--valid": c.value,
|
|
49
|
+
"pa-checkbox-group--disabled": e.disabled
|
|
50
|
+
}
|
|
51
|
+
]),
|
|
52
|
+
role: "group",
|
|
53
|
+
"aria-labelledby": e.label ? m.value : void 0,
|
|
54
|
+
"aria-required": e.required || void 0,
|
|
55
|
+
"aria-invalid": u.value || void 0,
|
|
56
|
+
"aria-describedby": v.value ? p.value : void 0
|
|
57
|
+
}, [
|
|
58
|
+
e.label ? (d(), i("span", {
|
|
59
|
+
key: 0,
|
|
60
|
+
id: m.value,
|
|
61
|
+
class: "pa-checkbox-group__label"
|
|
62
|
+
}, [
|
|
63
|
+
I(f(e.label), 1),
|
|
64
|
+
e.required ? (d(), i("span", A, "*")) : b("", !0)
|
|
65
|
+
], 8, S)) : b("", !0),
|
|
66
|
+
(d(!0), i(M, null, T(e.options, (l) => (d(), _(N, {
|
|
67
|
+
key: l.value,
|
|
68
|
+
"model-value": o.value.includes(l.value),
|
|
69
|
+
label: l.label,
|
|
70
|
+
value: l.value,
|
|
71
|
+
name: x.value,
|
|
72
|
+
disabled: e.disabled || l.disabled,
|
|
73
|
+
error: u.value,
|
|
74
|
+
valid: c.value,
|
|
75
|
+
"onUpdate:modelValue": (t) => V(l.value, t)
|
|
76
|
+
}, null, 8, ["model-value", "label", "value", "name", "disabled", "error", "valid", "onUpdate:modelValue"]))), 128)),
|
|
77
|
+
v.value ? (d(), i("div", {
|
|
78
|
+
key: 1,
|
|
79
|
+
id: p.value,
|
|
80
|
+
class: h(["pa-checkbox-group__message", { "pa-checkbox-group__message--error": u.value }])
|
|
81
|
+
}, f(v.value), 11, G)) : b("", !0)
|
|
82
|
+
], 10, P));
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
E as default,
|
|
87
|
+
w as nextPaCheckboxGroupId
|
|
88
|
+
};
|
|
89
|
+
//# sourceMappingURL=PaCheckboxGroup.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaCheckboxGroup.vue2.js","sources":["../../../src/components/PaCheckboxGroup/PaCheckboxGroup.vue"],"sourcesContent":["<script lang=\"ts\">\nlet uid = 0\nexport function nextPaCheckboxGroupId() {\n return `pa-checkbox-group-${++uid}`\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue'\nimport PaCheckbox from '../PaCheckbox/PaCheckbox.vue'\n\nexport type PaCheckboxGroupOption = {\n value: string\n label: string\n disabled?: boolean\n}\n\nexport interface PaCheckboxGroupProps {\n options: PaCheckboxGroupOption[]\n label?: string\n id?: string\n name?: string\n helperText?: string\n error?: string | boolean\n valid?: boolean\n required?: boolean\n disabled?: boolean\n}\n\nconst props = withDefaults(defineProps<PaCheckboxGroupProps>(), {\n error: false,\n valid: false,\n required: false,\n disabled: false,\n})\n\nconst model = defineModel<string[]>({ default: () => [] })\n\nconst generatedId = nextPaCheckboxGroupId()\nconst groupId = computed(() => props.id ?? generatedId)\nconst labelId = computed(() => `${groupId.value}-label`)\nconst messageId = computed(() => `${groupId.value}-msg`)\nconst groupName = computed(() => props.name ?? `${groupId.value}-name`)\n\nconst errorActive = computed(() => Boolean(props.error))\nconst validActive = computed(() => props.valid && !errorActive.value)\n\nconst errorMessage = computed(() =>\n typeof props.error === 'string' && props.error.length > 0 ? props.error : null,\n)\nconst helperMessage = computed(() =>\n !errorActive.value && !validActive.value && props.helperText ? props.helperText : null,\n)\nconst message = computed(() => errorMessage.value ?? helperMessage.value)\n\nfunction toggle(value: string, next: boolean) {\n if (next) {\n if (model.value.includes(value)) return\n const selected = new Set([...model.value, value])\n model.value = props.options.map((o) => o.value).filter((v) => selected.has(v))\n } else {\n model.value = model.value.filter((v) => v !== value)\n }\n}\n</script>\n\n<template>\n <div\n :class=\"[\n 'pa-checkbox-group',\n {\n 'pa-checkbox-group--error': errorActive,\n 'pa-checkbox-group--valid': validActive,\n 'pa-checkbox-group--disabled': disabled,\n },\n ]\"\n role=\"group\"\n :aria-labelledby=\"label ? labelId : undefined\"\n :aria-required=\"required || undefined\"\n :aria-invalid=\"errorActive || undefined\"\n :aria-describedby=\"message ? messageId : undefined\"\n >\n <span v-if=\"label\" :id=\"labelId\" class=\"pa-checkbox-group__label\">\n {{ label }}<span v-if=\"required\" class=\"pa-checkbox-group__required\" aria-hidden=\"true\">*</span>\n </span>\n <PaCheckbox\n v-for=\"opt in options\"\n :key=\"opt.value\"\n :model-value=\"model.includes(opt.value)\"\n :label=\"opt.label\"\n :value=\"opt.value\"\n :name=\"groupName\"\n :disabled=\"disabled || opt.disabled\"\n :error=\"errorActive\"\n :valid=\"validActive\"\n @update:model-value=\"(next) => toggle(opt.value, next)\"\n />\n <div\n v-if=\"message\"\n :id=\"messageId\"\n :class=\"['pa-checkbox-group__message', { 'pa-checkbox-group__message--error': errorActive }]\"\n >\n {{ message }}\n </div>\n </div>\n</template>\n\n<style scoped>\n.pa-checkbox-group {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: var(--pa-space-xs);\n font-family: var(--pa-font-family-base);\n direction: ltr;\n text-align: left;\n}\n\n.pa-checkbox-group__label {\n font-size: var(--pa-font-label-sm-size);\n line-height: var(--pa-font-label-sm-line-height);\n font-weight: var(--pa-font-label-sm-weight);\n color: var(--pa-color-text-secondary-gray);\n}\n\n.pa-checkbox-group--disabled .pa-checkbox-group__label {\n color: var(--pa-color-text-disabled-gray);\n}\n\n.pa-checkbox-group__required {\n margin-left: 2px;\n color: var(--pa-color-error);\n}\n\n.pa-checkbox-group__message {\n font-size: var(--pa-font-label-helper-size);\n line-height: var(--pa-font-label-helper-line-height);\n font-weight: var(--pa-font-label-helper-weight);\n color: var(--pa-color-text-secondary-gray);\n}\n\n.pa-checkbox-group__message--error {\n color: var(--pa-color-error);\n}\n</style>\n"],"names":["uid","nextPaCheckboxGroupId","props","__props","model","_useModel","generatedId","groupId","computed","labelId","messageId","groupName","errorActive","validActive","errorMessage","helperMessage","message","toggle","value","next","selected","o","v","_createElementBlock","_normalizeClass","_hoisted_3","_Fragment","_renderList","opt","_createBlock","PaCheckbox","_hoisted_4"],"mappings":";;;;;;;AACA,IAAIA,IAAM;AACH,SAASC,IAAwB;AACtC,SAAO,qBAAqB,EAAED,CAAG;AACnC;;;;;;;;;;;;;;;;;;;AAyBA,UAAME,IAAQC,GAORC,IAAQC,EAAqBF,GAAA,YAAsB,GAEnDG,IAAcL,EAAA,GACdM,IAAUC,EAAS,MAAMN,EAAM,MAAMI,CAAW,GAChDG,IAAUD,EAAS,MAAM,GAAGD,EAAQ,KAAK,QAAQ,GACjDG,IAAYF,EAAS,MAAM,GAAGD,EAAQ,KAAK,MAAM,GACjDI,IAAYH,EAAS,MAAMN,EAAM,QAAQ,GAAGK,EAAQ,KAAK,OAAO,GAEhEK,IAAcJ,EAAS,MAAM,EAAQN,EAAM,KAAM,GACjDW,IAAcL,EAAS,MAAMN,EAAM,SAAS,CAACU,EAAY,KAAK,GAE9DE,IAAeN;AAAA,MAAS,MAC5B,OAAON,EAAM,SAAU,YAAYA,EAAM,MAAM,SAAS,IAAIA,EAAM,QAAQ;AAAA,IAAA,GAEtEa,IAAgBP;AAAA,MAAS,MAC7B,CAACI,EAAY,SAAS,CAACC,EAAY,SAASX,EAAM,aAAaA,EAAM,aAAa;AAAA,IAAA,GAE9Ec,IAAUR,EAAS,MAAMM,EAAa,SAASC,EAAc,KAAK;AAExE,aAASE,EAAOC,GAAeC,GAAe;AAC5C,UAAIA,GAAM;AACR,YAAIf,EAAM,MAAM,SAASc,CAAK,EAAG;AACjC,cAAME,wBAAe,IAAI,CAAC,GAAGhB,EAAM,OAAOc,CAAK,CAAC;AAChD,QAAAd,EAAM,QAAQF,EAAM,QAAQ,IAAI,CAACmB,MAAMA,EAAE,KAAK,EAAE,OAAO,CAACC,MAAMF,EAAS,IAAIE,CAAC,CAAC;AAAA,MAC/E;AACE,QAAAlB,EAAM,QAAQA,EAAM,MAAM,OAAO,CAACkB,MAAMA,MAAMJ,CAAK;AAAA,IAEvD;2BAIEK,EAqCM,OAAA;AAAA,MApCH,OAAKC,EAAA;AAAA;;sCAA2EZ,EAAA;AAAA,sCAAiDC,EAAA;AAAA,yCAAoDV,EAAA;AAAA,QAAA;AAAA;MAQtL,MAAK;AAAA,MACJ,mBAAiBA,EAAA,QAAQM,EAAA,QAAU;AAAA,MACnC,iBAAeN,EAAA,YAAY;AAAA,MAC3B,gBAAcS,EAAA,SAAe;AAAA,MAC7B,oBAAkBI,EAAA,QAAUN,EAAA,QAAY;AAAA,IAAA;MAE7BP,EAAA,cAAZoB,EAEO,QAAA;AAAA;QAFa,IAAId,EAAA;AAAA,QAAS,OAAM;AAAA,MAAA;YAClCN,EAAA,KAAK,GAAA,CAAA;AAAA,QAAeA,EAAA,iBAAZoB,EAAqF,QAArFE,GAA6E,GAAC;;cAE3FF,EAWEG,GAAA,MAAAC,EAVcxB,EAAA,SAAO,CAAdyB,YADTC,EAWEC,GAAA;AAAA,QATC,KAAKF,EAAI;AAAA,QACT,eAAaxB,EAAA,MAAM,SAASwB,EAAI,KAAK;AAAA,QACrC,OAAOA,EAAI;AAAA,QACX,OAAOA,EAAI;AAAA,QACX,MAAMjB,EAAA;AAAA,QACN,UAAUR,EAAA,YAAYyB,EAAI;AAAA,QAC1B,OAAOhB,EAAA;AAAA,QACP,OAAOC,EAAA;AAAA,QACP,uBAAkB,CAAGM,MAASF,EAAOW,EAAI,OAAOT,CAAI;AAAA,MAAA;MAG/CH,EAAA,cADRO,EAMM,OAAA;AAAA;QAJH,IAAIb,EAAA;AAAA,QACJ,+EAA6EE,EAAA,OAAW,CAAA;AAAA,MAAA,KAEtFI,EAAA,KAAO,GAAA,IAAAe,CAAA;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { PaIconName } from '../PaIcon/PaIcon.vue';
|
|
2
|
+
export type PaChipVariant = 'dismissible' | 'selectable';
|
|
3
|
+
export interface PaChipProps {
|
|
4
|
+
variant?: PaChipVariant;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: PaIconName;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: import("vue").DefineComponent<PaChipProps & {
|
|
10
|
+
modelValue?: boolean;
|
|
11
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: boolean) => any;
|
|
13
|
+
close: () => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<PaChipProps & {
|
|
15
|
+
modelValue?: boolean;
|
|
16
|
+
}> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
18
|
+
onClose?: (() => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
variant: PaChipVariant;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaChip.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defineComponent as f, useModel as k, openBlock as l, createElementBlock as d, normalizeClass as n, createBlock as o, createCommentVNode as i, createElementVNode as s, toDisplayString as m, createVNode as v, mergeModels as b } from "vue";
|
|
2
|
+
import t from "../PaIcon/PaIcon.vue.js";
|
|
3
|
+
const y = { class: "pa-chip__label" }, C = ["disabled", "aria-label"], V = ["aria-pressed", "disabled"], B = { class: "pa-chip__label" }, M = /* @__PURE__ */ f({
|
|
4
|
+
__name: "PaChip",
|
|
5
|
+
props: /* @__PURE__ */ b({
|
|
6
|
+
variant: { default: "dismissible" },
|
|
7
|
+
label: {},
|
|
8
|
+
icon: {},
|
|
9
|
+
disabled: { type: Boolean, default: !1 }
|
|
10
|
+
}, {
|
|
11
|
+
modelValue: { type: Boolean, default: !1 },
|
|
12
|
+
modelModifiers: {}
|
|
13
|
+
}),
|
|
14
|
+
emits: /* @__PURE__ */ b(["close"], ["update:modelValue"]),
|
|
15
|
+
setup(e, { emit: u }) {
|
|
16
|
+
const c = e, a = k(e, "modelValue"), r = u;
|
|
17
|
+
function p() {
|
|
18
|
+
c.disabled || r("close");
|
|
19
|
+
}
|
|
20
|
+
function h() {
|
|
21
|
+
c.disabled || (a.value = !a.value);
|
|
22
|
+
}
|
|
23
|
+
return (g, z) => e.variant === "dismissible" ? (l(), d("div", {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: n(["pa-chip", "pa-chip--dismissible", { "pa-chip--disabled": e.disabled }])
|
|
26
|
+
}, [
|
|
27
|
+
e.icon ? (l(), o(t, {
|
|
28
|
+
key: 0,
|
|
29
|
+
name: e.icon,
|
|
30
|
+
size: "sm",
|
|
31
|
+
class: "pa-chip__icon"
|
|
32
|
+
}, null, 8, ["name"])) : i("", !0),
|
|
33
|
+
s("span", y, m(e.label), 1),
|
|
34
|
+
s("button", {
|
|
35
|
+
type: "button",
|
|
36
|
+
class: "pa-chip__close",
|
|
37
|
+
disabled: e.disabled,
|
|
38
|
+
"aria-label": `Rimuovi ${e.label}`,
|
|
39
|
+
onClick: p
|
|
40
|
+
}, [
|
|
41
|
+
v(t, {
|
|
42
|
+
name: "x",
|
|
43
|
+
size: "sm",
|
|
44
|
+
class: "pa-chip__close-icon"
|
|
45
|
+
})
|
|
46
|
+
], 8, C)
|
|
47
|
+
], 2)) : e.variant === "selectable" ? (l(), d("button", {
|
|
48
|
+
key: 1,
|
|
49
|
+
type: "button",
|
|
50
|
+
class: n([
|
|
51
|
+
"pa-chip",
|
|
52
|
+
"pa-chip--selectable",
|
|
53
|
+
{
|
|
54
|
+
"pa-chip--selected": a.value,
|
|
55
|
+
"pa-chip--disabled": e.disabled
|
|
56
|
+
}
|
|
57
|
+
]),
|
|
58
|
+
"aria-pressed": a.value,
|
|
59
|
+
disabled: e.disabled,
|
|
60
|
+
onClick: h
|
|
61
|
+
}, [
|
|
62
|
+
a.value ? (l(), o(t, {
|
|
63
|
+
key: 0,
|
|
64
|
+
name: "check",
|
|
65
|
+
size: "sm",
|
|
66
|
+
class: "pa-chip__icon"
|
|
67
|
+
})) : i("", !0),
|
|
68
|
+
s("span", B, m(e.label), 1)
|
|
69
|
+
], 10, V)) : i("", !0);
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
export {
|
|
73
|
+
M as default
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=PaChip.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaChip.vue2.js","sources":["../../../src/components/PaChip/PaChip.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { PaIconName } from '../PaIcon/PaIcon.vue'\n\nexport type PaChipVariant = 'dismissible' | 'selectable'\n\nexport interface PaChipProps {\n variant?: PaChipVariant\n label: string\n icon?: PaIconName\n disabled?: boolean\n}\n</script>\n\n<script setup lang=\"ts\">\nimport PaIcon from '../PaIcon/PaIcon.vue'\n\nconst props = withDefaults(defineProps<PaChipProps>(), {\n variant: 'dismissible',\n disabled: false,\n})\n\nconst model = defineModel<boolean>({ default: false })\n\nconst emit = defineEmits<{\n close: []\n}>()\n\nfunction onClose() {\n if (props.disabled) return\n emit('close')\n}\n\nfunction onToggle() {\n if (props.disabled) return\n model.value = !model.value\n}\n</script>\n\n<template>\n <div\n v-if=\"variant === 'dismissible'\"\n :class=\"['pa-chip', 'pa-chip--dismissible', { 'pa-chip--disabled': disabled }]\"\n >\n <PaIcon v-if=\"icon\" :name=\"icon\" size=\"sm\" class=\"pa-chip__icon\" />\n <span class=\"pa-chip__label\">{{ label }}</span>\n <button\n type=\"button\"\n class=\"pa-chip__close\"\n :disabled=\"disabled\"\n :aria-label=\"`Rimuovi ${label}`\"\n @click=\"onClose\"\n >\n <PaIcon name=\"x\" size=\"sm\" class=\"pa-chip__close-icon\" />\n </button>\n </div>\n <button\n v-else-if=\"variant === 'selectable'\"\n type=\"button\"\n :class=\"[\n 'pa-chip',\n 'pa-chip--selectable',\n {\n 'pa-chip--selected': model,\n 'pa-chip--disabled': disabled,\n },\n ]\"\n :aria-pressed=\"model\"\n :disabled=\"disabled\"\n @click=\"onToggle\"\n >\n <PaIcon v-if=\"model\" name=\"check\" size=\"sm\" class=\"pa-chip__icon\" />\n <span class=\"pa-chip__label\">{{ label }}</span>\n </button>\n</template>\n\n<style scoped>\n.pa-chip {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n height: 32px;\n border-radius: 100px;\n font-family: var(--pa-font-family-base);\n font-size: var(--pa-font-label-sm-size);\n line-height: var(--pa-font-label-sm-line-height);\n font-weight: var(--pa-font-label-sm-weight);\n gap: 12px;\n}\n\n.pa-chip__icon {\n width: 16px;\n height: 16px;\n color: inherit;\n flex-shrink: 0;\n}\n\n.pa-chip__label {\n white-space: nowrap;\n}\n\n/* ─────────────── Dismissible variant ─────────────── */\n\n.pa-chip--dismissible {\n padding: 4px 3px 4px 16px;\n background: var(--pa-color-neutral-gray);\n color: var(--pa-color-text-white);\n transition: background-color 120ms ease, outline-color 120ms ease;\n}\n\n.pa-chip--dismissible:hover:not(.pa-chip--disabled) {\n background: var(--pa-color-neutral-gray-hover);\n}\n\n.pa-chip--dismissible:has(.pa-chip__close:focus-visible):not(.pa-chip--disabled) {\n background: var(--pa-color-neutral-gray-hover);\n outline: 2px solid var(--pa-color-primary);\n outline-offset: 2px;\n}\n\n.pa-chip--dismissible:has(.pa-chip__close:active):not(.pa-chip--disabled) {\n background: var(--pa-color-bg-black);\n}\n\n.pa-chip--dismissible.pa-chip--disabled {\n background: var(--pa-color-bg-white);\n color: var(--pa-color-text-disabled-gray);\n}\n\n/* Close button */\n\n.pa-chip__close {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n width: 26px;\n height: 26px;\n padding: 0;\n margin: 0;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.15);\n color: inherit;\n cursor: pointer;\n}\n\n.pa-chip__close:focus { outline: none; }\n\n.pa-chip__close:disabled {\n cursor: not-allowed;\n background: var(--pa-color-bg-secondary-light-40);\n color: var(--pa-color-text-disabled-gray);\n}\n\n.pa-chip__close-icon {\n width: 13px;\n height: 13px;\n color: inherit;\n}\n\n/* ─────────────── Selectable variant ─────────────── */\n\n.pa-chip--selectable {\n padding: 4px 16px;\n margin: 0;\n border: 2px solid var(--pa-color-primary);\n background: var(--pa-color-bg-white);\n color: var(--pa-color-text-primary-blue);\n cursor: pointer;\n transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;\n}\n\n.pa-chip--selectable:not(.pa-chip--selected):not(:disabled):hover {\n border-color: var(--pa-color-primary-hover);\n color: var(--pa-color-text-dark-blue);\n}\n\n.pa-chip--selectable:not(.pa-chip--selected):not(:disabled):active {\n border-color: var(--pa-color-primary-pressed);\n color: var(--pa-color-text-dark-blue);\n}\n\n.pa-chip--selectable.pa-chip--selected {\n background: var(--pa-color-primary);\n border-color: var(--pa-color-primary);\n color: var(--pa-color-text-white);\n}\n\n.pa-chip--selectable.pa-chip--selected:not(:disabled):hover {\n background: var(--pa-color-primary-hover);\n border-color: var(--pa-color-primary-hover);\n}\n\n.pa-chip--selectable.pa-chip--selected:not(:disabled):active {\n background: var(--pa-color-primary-pressed);\n border-color: var(--pa-color-primary-pressed);\n}\n\n.pa-chip--selectable:disabled {\n cursor: not-allowed;\n background: var(--pa-color-bg-white);\n border-color: var(--pa-color-text-disabled-gray);\n color: var(--pa-color-text-disabled-gray);\n}\n\n.pa-chip--selectable:focus { outline: none; }\n\n.pa-chip--selectable:focus-visible {\n outline: 2px solid var(--pa-color-primary);\n outline-offset: 2px;\n}\n</style>\n"],"names":["props","__props","model","_useModel","emit","__emit","onClose","onToggle","_createElementBlock","_createBlock","PaIcon","_createElementVNode","_hoisted_1","_toDisplayString","_createVNode","_normalizeClass","_hoisted_4"],"mappings":";;;;;;;;;;;;;;;AAgBA,UAAMA,IAAQC,GAKRC,IAAQC,EAAoBF,GAAA,YAAmB,GAE/CG,IAAOC;AAIb,aAASC,IAAU;AACjB,MAAIN,EAAM,YACVI,EAAK,OAAO;AAAA,IACd;AAEA,aAASG,IAAW;AAClB,MAAIP,EAAM,aACVE,EAAM,QAAQ,CAACA,EAAM;AAAA,IACvB;qBAKUD,EAAA,YAAO,sBADfO,EAeM,OAAA;AAAA;MAbH,oEAAkEP,EAAA,UAAQ,CAAA;AAAA,IAAA;MAE7DA,EAAA,aAAdQ,EAAmEC,GAAA;AAAA;QAA9C,MAAMT,EAAA;AAAA,QAAM,MAAK;AAAA,QAAK,OAAM;AAAA,MAAA;MACjDU,EAA+C,QAA/CC,GAA+CC,EAAfZ,EAAA,KAAK,GAAA,CAAA;AAAA,MACrCU,EAQS,UAAA;AAAA,QAPP,MAAK;AAAA,QACL,OAAM;AAAA,QACL,UAAUV,EAAA;AAAA,QACV,yBAAuBA,EAAA,KAAK;AAAA,QAC5B,SAAOK;AAAA,MAAA;QAERQ,EAAyDJ,GAAA;AAAA,UAAjD,MAAK;AAAA,UAAI,MAAK;AAAA,UAAK,OAAM;AAAA,QAAA;;aAIxBT,EAAA,YAAO,qBADpBO,EAiBS,UAAA;AAAA;MAfP,MAAK;AAAA,MACJ,OAAKO,EAAA;AAAA;;;+BAAuFb,EAAA;AAAA,+BAAoCD,EAAA;AAAA,QAAA;AAAA;MAQhI,gBAAcC,EAAA;AAAA,MACd,UAAUD,EAAA;AAAA,MACV,SAAOM;AAAA,IAAA;MAEML,EAAA,cAAdO,EAAoEC,GAAA;AAAA;QAA/C,MAAK;AAAA,QAAQ,MAAK;AAAA,QAAK,OAAM;AAAA,MAAA;MAClDC,EAA+C,QAA/CK,GAA+CH,EAAfZ,EAAA,KAAK,GAAA,CAAA;AAAA,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import 'v-calendar/style.css';
|
|
2
|
+
export declare function nextPaDatePickerId(): string;
|
|
3
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
|
|
4
|
+
display?: "popover" | "inline";
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
label?: string;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
helperText?: string;
|
|
9
|
+
error?: string | boolean;
|
|
10
|
+
valid?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readonly?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
min?: Date | null;
|
|
16
|
+
max?: Date | null;
|
|
17
|
+
disabledDates?: (date: Date) => boolean;
|
|
18
|
+
} & {
|
|
19
|
+
modelValue?: Date | null;
|
|
20
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (value: Date | null) => any;
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
23
|
+
display?: "popover" | "inline";
|
|
24
|
+
placeholder?: string;
|
|
25
|
+
label?: string;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
helperText?: string;
|
|
28
|
+
error?: string | boolean;
|
|
29
|
+
valid?: boolean;
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
readonly?: boolean;
|
|
32
|
+
id?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
min?: Date | null;
|
|
35
|
+
max?: Date | null;
|
|
36
|
+
disabledDates?: (date: Date) => boolean;
|
|
37
|
+
} & {
|
|
38
|
+
modelValue?: Date | null;
|
|
39
|
+
}> & Readonly<{
|
|
40
|
+
"onUpdate:modelValue"?: ((value: Date | null) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
error: string | boolean;
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
placeholder: string;
|
|
45
|
+
valid: boolean;
|
|
46
|
+
required: boolean;
|
|
47
|
+
readonly: boolean;
|
|
48
|
+
min: Date | null;
|
|
49
|
+
max: Date | null;
|
|
50
|
+
display: "popover" | "inline";
|
|
51
|
+
disabledDates: (date: Date) => boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
53
|
+
suffix?: (props: {}) => any;
|
|
54
|
+
}>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import t from "./PaDatePicker.vue2.js";
|
|
2
|
+
import { nextPaDatePickerId as f } from "./PaDatePicker.vue2.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import a from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const c = /* @__PURE__ */ a(t, [["__scopeId", "data-v-68eaa6c6"]]);
|
|
6
|
+
export {
|
|
7
|
+
c as default,
|
|
8
|
+
f as nextPaDatePickerId
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=PaDatePicker.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaDatePicker.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { defineComponent as G, useModel as H, ref as M, computed as n, watch as J, onBeforeUnmount as Q, openBlock as u, createElementBlock as c, normalizeClass as p, createTextVNode as X, toDisplayString as C, createCommentVNode as v, withKeys as S, withModifiers as q, createElementVNode as g, renderSlot as Z, createVNode as y, withDirectives as ee, unref as ae, withCtx as L, vShow as te, mergeModels as ie } from "vue";
|
|
2
|
+
import { DatePicker as ne } from "v-calendar";
|
|
3
|
+
import "v-calendar/style.css";
|
|
4
|
+
import E from "../PaIcon/PaIcon.vue.js";
|
|
5
|
+
const re = ["for"], le = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "pa-date-picker__required",
|
|
8
|
+
"aria-hidden": "true"
|
|
9
|
+
}, de = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid", "aria-readonly", "aria-describedby", "onKeydown"], oe = { class: "pa-date-picker__value" }, se = ["name", "value", "disabled", "readonly", "required"], ue = ["onClick"], ce = ["onClick"], ve = ["id"];
|
|
10
|
+
let me = 0;
|
|
11
|
+
function fe() {
|
|
12
|
+
return `pa-date-picker-${++me}`;
|
|
13
|
+
}
|
|
14
|
+
const be = /* @__PURE__ */ G({
|
|
15
|
+
__name: "PaDatePicker",
|
|
16
|
+
props: /* @__PURE__ */ ie({
|
|
17
|
+
display: { default: "popover" },
|
|
18
|
+
placeholder: { default: "gg/mm/aaaa" },
|
|
19
|
+
label: {},
|
|
20
|
+
required: { type: Boolean, default: !1 },
|
|
21
|
+
helperText: {},
|
|
22
|
+
error: { type: [String, Boolean], default: !1 },
|
|
23
|
+
valid: { type: Boolean, default: !1 },
|
|
24
|
+
disabled: { type: Boolean, default: !1 },
|
|
25
|
+
readonly: { type: Boolean, default: !1 },
|
|
26
|
+
id: {},
|
|
27
|
+
name: {},
|
|
28
|
+
min: { default: null },
|
|
29
|
+
max: { default: null },
|
|
30
|
+
disabledDates: { type: Function, default: void 0 }
|
|
31
|
+
}, {
|
|
32
|
+
modelValue: { default: null },
|
|
33
|
+
modelModifiers: {}
|
|
34
|
+
}),
|
|
35
|
+
emits: ["update:modelValue"],
|
|
36
|
+
setup(t) {
|
|
37
|
+
const a = t, d = H(t, "modelValue"), k = M(null), _ = M(null), r = M(!1), B = `pa-date-picker-pop-${Math.random().toString(36).slice(2, 9)}`, N = fe(), b = n(() => a.id ?? N), F = n(() => `${b.value}-msg`), Y = new Intl.DateTimeFormat("it-IT", {
|
|
38
|
+
day: "2-digit",
|
|
39
|
+
month: "2-digit",
|
|
40
|
+
year: "numeric"
|
|
41
|
+
}), z = n(
|
|
42
|
+
() => d.value instanceof Date ? Y.format(d.value) : a.placeholder
|
|
43
|
+
), K = n(() => !(d.value instanceof Date)), s = n(() => !!a.error), V = n(() => a.valid && !s.value), R = n(
|
|
44
|
+
() => typeof a.error == "string" && a.error.length > 0 ? a.error : null
|
|
45
|
+
), A = n(
|
|
46
|
+
() => !s.value && a.helperText ? a.helperText : null
|
|
47
|
+
), h = n(() => R.value ?? A.value), W = n(() => {
|
|
48
|
+
const e = d.value;
|
|
49
|
+
if (!(e instanceof Date) || isNaN(e.getTime())) return "";
|
|
50
|
+
const i = e.getFullYear(), o = String(e.getMonth() + 1).padStart(2, "0"), T = String(e.getDate()).padStart(2, "0");
|
|
51
|
+
return `${i}-${o}-${T}`;
|
|
52
|
+
});
|
|
53
|
+
function l(e) {
|
|
54
|
+
return new Date(e.getFullYear(), e.getMonth(), e.getDate(), 0, 0, 0, 0);
|
|
55
|
+
}
|
|
56
|
+
function $(e, i) {
|
|
57
|
+
return new Date(e.getFullYear(), e.getMonth(), e.getDate() + i, 0, 0, 0, 0);
|
|
58
|
+
}
|
|
59
|
+
function O(e) {
|
|
60
|
+
const i = l(e);
|
|
61
|
+
return a.min && i.getTime() < l(a.min).getTime() || a.max && i.getTime() > l(a.max).getTime() ? !0 : a.disabledDates ? a.disabledDates(i) === !0 : !1;
|
|
62
|
+
}
|
|
63
|
+
const U = n(() => {
|
|
64
|
+
const e = [];
|
|
65
|
+
if (a.min && e.push({ start: null, end: $(l(a.min), -1) }), a.max && e.push({ start: $(l(a.max), 1), end: null }), a.disabledDates) {
|
|
66
|
+
const i = d.value instanceof Date ? d.value.getFullYear() : (/* @__PURE__ */ new Date()).getFullYear(), o = a.min ? l(a.min) : new Date(i - 5, 0, 1, 0, 0, 0, 0), T = a.max ? l(a.max) : new Date(i + 5, 11, 31, 0, 0, 0, 0), f = new Date(o.getTime());
|
|
67
|
+
for (; f.getTime() <= T.getTime(); ) {
|
|
68
|
+
const P = l(f);
|
|
69
|
+
a.disabledDates(P) && e.push(P), f.setDate(f.getDate() + 1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return e;
|
|
73
|
+
});
|
|
74
|
+
function I() {
|
|
75
|
+
r.value || a.disabled || a.readonly || (r.value = !0);
|
|
76
|
+
}
|
|
77
|
+
function m(e = !0) {
|
|
78
|
+
var i;
|
|
79
|
+
r.value && (r.value = !1, e && ((i = _.value) == null || i.focus()));
|
|
80
|
+
}
|
|
81
|
+
function w() {
|
|
82
|
+
a.disabled || a.readonly || (r.value ? m() : I());
|
|
83
|
+
}
|
|
84
|
+
function j(e) {
|
|
85
|
+
if (a.readonly) return;
|
|
86
|
+
const i = l(e.date);
|
|
87
|
+
O(i) || (d.value = i, a.display === "popover" && m());
|
|
88
|
+
}
|
|
89
|
+
function D(e) {
|
|
90
|
+
k.value && (k.value.contains(e.target) || m(!1));
|
|
91
|
+
}
|
|
92
|
+
function x(e) {
|
|
93
|
+
e.key === "Escape" && (e.preventDefault(), m());
|
|
94
|
+
}
|
|
95
|
+
return J(r, (e) => {
|
|
96
|
+
e ? (document.addEventListener("mousedown", D), window.addEventListener("keydown", x)) : (document.removeEventListener("mousedown", D), window.removeEventListener("keydown", x));
|
|
97
|
+
}), Q(() => {
|
|
98
|
+
document.removeEventListener("mousedown", D), window.removeEventListener("keydown", x);
|
|
99
|
+
}), (e, i) => (u(), c("div", {
|
|
100
|
+
ref_key: "rootRef",
|
|
101
|
+
ref: k,
|
|
102
|
+
class: p([
|
|
103
|
+
"pa-date-picker",
|
|
104
|
+
`pa-date-picker--${t.display}`,
|
|
105
|
+
{
|
|
106
|
+
"pa-date-picker--open": r.value,
|
|
107
|
+
"pa-date-picker--disabled": t.disabled,
|
|
108
|
+
"pa-date-picker--readonly": t.readonly,
|
|
109
|
+
"pa-date-picker--error": s.value,
|
|
110
|
+
"pa-date-picker--valid": V.value
|
|
111
|
+
}
|
|
112
|
+
])
|
|
113
|
+
}, [
|
|
114
|
+
t.label ? (u(), c("label", {
|
|
115
|
+
key: 0,
|
|
116
|
+
for: b.value,
|
|
117
|
+
class: "pa-date-picker__label"
|
|
118
|
+
}, [
|
|
119
|
+
X(C(t.label), 1),
|
|
120
|
+
t.required ? (u(), c("span", le, "*")) : v("", !0)
|
|
121
|
+
], 8, re)) : v("", !0),
|
|
122
|
+
t.display === "popover" ? (u(), c("button", {
|
|
123
|
+
key: 1,
|
|
124
|
+
id: b.value,
|
|
125
|
+
ref_key: "triggerRef",
|
|
126
|
+
ref: _,
|
|
127
|
+
type: "button",
|
|
128
|
+
class: p([
|
|
129
|
+
"pa-date-picker__trigger",
|
|
130
|
+
{
|
|
131
|
+
"pa-date-picker__trigger--placeholder": K.value,
|
|
132
|
+
"pa-date-picker__trigger--disabled": t.disabled,
|
|
133
|
+
"pa-date-picker__trigger--readonly": t.readonly && !t.disabled,
|
|
134
|
+
"pa-date-picker__trigger--error": s.value && !t.disabled,
|
|
135
|
+
"pa-date-picker__trigger--valid": V.value && !t.disabled
|
|
136
|
+
}
|
|
137
|
+
]),
|
|
138
|
+
disabled: t.disabled,
|
|
139
|
+
"aria-expanded": r.value,
|
|
140
|
+
"aria-haspopup": "dialog",
|
|
141
|
+
"aria-controls": B,
|
|
142
|
+
"aria-required": t.required || void 0,
|
|
143
|
+
"aria-invalid": s.value || void 0,
|
|
144
|
+
"aria-readonly": t.readonly || void 0,
|
|
145
|
+
"aria-describedby": h.value ? F.value : void 0,
|
|
146
|
+
onClick: w,
|
|
147
|
+
onKeydown: [
|
|
148
|
+
S(q(w, ["prevent"]), ["enter"]),
|
|
149
|
+
S(q(w, ["prevent"]), ["space"]),
|
|
150
|
+
S(q(I, ["prevent"]), ["down"])
|
|
151
|
+
]
|
|
152
|
+
}, [
|
|
153
|
+
g("span", oe, C(z.value), 1),
|
|
154
|
+
Z(e.$slots, "suffix", {}, () => [
|
|
155
|
+
y(E, {
|
|
156
|
+
name: "calendar-blank",
|
|
157
|
+
size: "md"
|
|
158
|
+
})
|
|
159
|
+
], !0)
|
|
160
|
+
], 42, de)) : v("", !0),
|
|
161
|
+
t.name ? (u(), c("input", {
|
|
162
|
+
key: 2,
|
|
163
|
+
type: "hidden",
|
|
164
|
+
name: t.name,
|
|
165
|
+
value: W.value,
|
|
166
|
+
disabled: t.disabled,
|
|
167
|
+
readonly: t.readonly,
|
|
168
|
+
required: t.required
|
|
169
|
+
}, null, 8, se)) : v("", !0),
|
|
170
|
+
ee(g("div", {
|
|
171
|
+
id: B,
|
|
172
|
+
class: p([
|
|
173
|
+
"pa-date-picker__popover",
|
|
174
|
+
{ "pa-date-picker__popover--inline": t.display === "inline" }
|
|
175
|
+
]),
|
|
176
|
+
role: "dialog",
|
|
177
|
+
"aria-modal": "false"
|
|
178
|
+
}, [
|
|
179
|
+
y(ae(ne), {
|
|
180
|
+
"model-value": d.value,
|
|
181
|
+
locale: { id: "it-IT", firstDayOfWeek: 2 },
|
|
182
|
+
"is-required": !1,
|
|
183
|
+
"disabled-dates": U.value,
|
|
184
|
+
onDayclick: j
|
|
185
|
+
}, {
|
|
186
|
+
"nav-prev-button": L(({ click: o }) => [
|
|
187
|
+
g("button", {
|
|
188
|
+
type: "button",
|
|
189
|
+
class: "pa-date-picker__nav-arrow",
|
|
190
|
+
"aria-label": "Mese precedente",
|
|
191
|
+
onClick: o
|
|
192
|
+
}, [
|
|
193
|
+
y(E, {
|
|
194
|
+
name: "caret-left",
|
|
195
|
+
size: "sm"
|
|
196
|
+
})
|
|
197
|
+
], 8, ue)
|
|
198
|
+
]),
|
|
199
|
+
"nav-next-button": L(({ click: o }) => [
|
|
200
|
+
g("button", {
|
|
201
|
+
type: "button",
|
|
202
|
+
class: "pa-date-picker__nav-arrow",
|
|
203
|
+
"aria-label": "Mese successivo",
|
|
204
|
+
onClick: o
|
|
205
|
+
}, [
|
|
206
|
+
y(E, {
|
|
207
|
+
name: "caret-right",
|
|
208
|
+
size: "sm"
|
|
209
|
+
})
|
|
210
|
+
], 8, ce)
|
|
211
|
+
]),
|
|
212
|
+
_: 1
|
|
213
|
+
}, 8, ["model-value", "disabled-dates"])
|
|
214
|
+
], 2), [
|
|
215
|
+
[te, t.display === "inline" || r.value]
|
|
216
|
+
]),
|
|
217
|
+
h.value ? (u(), c("div", {
|
|
218
|
+
key: 3,
|
|
219
|
+
id: F.value,
|
|
220
|
+
class: p(["pa-date-picker__message", { "pa-date-picker__message--error": s.value }])
|
|
221
|
+
}, C(h.value), 11, ve)) : v("", !0)
|
|
222
|
+
], 2));
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
export {
|
|
226
|
+
be as default,
|
|
227
|
+
fe as nextPaDatePickerId
|
|
228
|
+
};
|
|
229
|
+
//# sourceMappingURL=PaDatePicker.vue2.js.map
|