@paperless/core 1.17.5 → 1.18.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/CHANGELOG.md +14 -0
- package/dist/assets/i18n/page-size-select.i18n.en.json +2 -2
- package/dist/assets/i18n/page-size-select.i18n.nl.json +2 -2
- package/dist/assets/i18n/table-footer.i18n.en.json +1 -1
- package/dist/assets/i18n/table-footer.i18n.nl.json +1 -1
- package/dist/assets/i18n/table-header.i18n.en.json +4 -4
- package/dist/assets/i18n/table-header.i18n.nl.json +4 -4
- package/dist/assets/i18n/table.i18n.en.json +15 -15
- package/dist/assets/i18n/table.i18n.nl.json +15 -15
- package/dist/build/p-03090f03.entry.js.map +1 -1
- package/dist/build/p-085e6ff4.entry.js.map +1 -1
- package/dist/build/p-2becd73c.entry.js.map +1 -1
- package/dist/build/p-2cb55f24.entry.js.map +1 -1
- package/dist/build/p-2cd5062f.entry.js.map +1 -1
- package/dist/build/p-35c563a7.entry.js.map +1 -1
- package/dist/build/p-415c5040.entry.js.map +1 -1
- package/dist/build/p-424d5c8a.entry.js.map +1 -1
- package/dist/build/p-46a939e2.entry.js.map +1 -1
- package/dist/build/p-4c30c74b.entry.js.map +1 -1
- package/dist/build/p-4dc5647e.entry.js.map +1 -1
- package/dist/build/p-4e9e4ce2.entry.js.map +1 -1
- package/dist/build/p-606ad811.entry.js.map +1 -1
- package/dist/build/p-682db916.entry.js.map +1 -1
- package/dist/build/p-699e0b35.entry.js.map +1 -1
- package/dist/build/p-6a5aeb90.entry.js.map +1 -1
- package/dist/build/p-7793ba3a.entry.js.map +1 -1
- package/dist/build/p-7d15ff9a.entry.js.map +1 -1
- package/dist/build/p-8426ca20.entry.js.map +1 -1
- package/dist/build/p-93052b42.entry.js.map +1 -1
- package/dist/build/p-97bcf0b5.entry.js.map +1 -1
- package/dist/build/p-9c914665.entry.js.map +1 -1
- package/dist/build/p-9d3d72fa.entry.js.map +1 -1
- package/dist/build/p-a2b552f9.entry.js.map +1 -1
- package/dist/build/p-a7344d53.entry.js +2 -0
- package/dist/build/p-a7344d53.entry.js.map +1 -0
- package/dist/build/p-af6b813e.entry.js.map +1 -1
- package/dist/build/p-b6f43309.entry.js.map +1 -1
- package/dist/build/p-b7c0f157.entry.js.map +1 -1
- package/dist/build/p-c644d1e3.entry.js.map +1 -1
- package/dist/build/p-c9b840a7.entry.js.map +1 -1
- package/dist/build/p-cb2674b5.entry.js.map +1 -1
- package/dist/build/p-cf7bd354.entry.js.map +1 -1
- package/dist/build/p-d0796984.entry.js.map +1 -1
- package/dist/build/p-d23db949.entry.js.map +1 -1
- package/dist/build/p-dace47c5.entry.js.map +1 -1
- package/dist/build/p-dd20caf1.entry.js.map +1 -1
- package/dist/build/p-dfa8eae9.entry.js +2 -0
- package/dist/build/p-dfa8eae9.entry.js.map +1 -0
- package/dist/build/p-ec15ee73.entry.js.map +1 -1
- package/dist/build/p-ec29eed0.entry.js.map +1 -1
- package/dist/build/p-f0f1a46b.entry.js.map +1 -1
- package/dist/build/p-f34e08ec.entry.js.map +1 -1
- package/dist/build/p-f9e52ae3.entry.js.map +1 -1
- package/dist/build/p-fac13366.entry.js.map +1 -1
- package/dist/build/paperless.css +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/index-1fde8b14.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js.map +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
- package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-avatar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +2 -2
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-body.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-card-header.cjs.entry.js.map +1 -1
- package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/p-counter.cjs.entry.js.map +1 -1
- package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-divider.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown_2.cjs.entry.js +7 -2
- package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +40 -40
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/p-helper_3.cjs.entry.js +4 -4
- package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/p-label_3.cjs.entry.js +1 -1
- package/dist/cjs/p-label_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-layout.cjs.entry.js.map +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +136 -18
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -1
- package/dist/cjs/p-status.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
- package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -1
- package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table-column.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toast.cjs.entry.js.map +1 -1
- package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -1
- package/dist/collection/components/atoms/avatar/test/avatar.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/avatar/test/avatar.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -1
- package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -1
- package/dist/collection/components/atoms/backdrop/test/backdrop.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/backdrop/test/backdrop.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/button/button.component.js.map +1 -1
- package/dist/collection/components/atoms/button/test/button.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/button/test/button.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -1
- package/dist/collection/components/atoms/card-body/test/card-body.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/card-body/test/card-body.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -1
- package/dist/collection/components/atoms/card-container/test/card-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/card-container/test/card-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -1
- package/dist/collection/components/atoms/card-header/test/card-header.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/card-header/test/card-header.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/counter/counter.component.js.map +1 -1
- package/dist/collection/components/atoms/counter/test/counter.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/counter/test/counter.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/divider/divider.component.js.map +1 -1
- package/dist/collection/components/atoms/divider/test/divider.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/divider/test/divider.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -1
- package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -1
- package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -1
- package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-item.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +21 -2
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
- package/dist/collection/components/atoms/helper/test/helper.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/helper/test/helper.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
- package/dist/collection/components/atoms/icon/test/icon.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/icon/test/icon.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
- package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -1
- package/dist/collection/components/atoms/illustration/test/illustration.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/illustration/test/illustration.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
- package/dist/collection/components/atoms/info-panel/test/info-panel.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/info-panel/test/info-panel.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/label/label.component.js +2 -2
- package/dist/collection/components/atoms/label/label.component.js.map +1 -1
- package/dist/collection/components/atoms/label/test/label.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/label/test/label.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/layout/layout.component.js.map +1 -1
- package/dist/collection/components/atoms/layout/test/layout.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/layout/test/layout.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/loader/loader.component.js +1 -1
- package/dist/collection/components/atoms/loader/loader.component.js.map +1 -1
- package/dist/collection/components/atoms/loader/test/loader.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/loader/test/loader.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-body/test/modal-body.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/modal-body/test/modal-body.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-container/test/modal-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/modal-container/test/modal-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -1
- package/dist/collection/components/atoms/modal-header/test/modal-header.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/modal-header/test/modal-header.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -1
- package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-container/test/segment-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/segment-container/test/segment-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-item/test/segment-item.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/segment-item/test/segment-item.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -1
- package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/status/status.component.js.map +1 -1
- package/dist/collection/components/atoms/status/test/status.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/status/test/status.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -1
- package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -1
- package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -1
- package/dist/collection/components/atoms/tab-group/test/tab-group.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/tab-group/test/tab-group.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -1
- package/dist/collection/components/atoms/tab-item/test/tab-item.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/tab-item/test/tab-item.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -1
- package/dist/collection/components/atoms/table-container/test/table-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/table-container/test/table-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/toast-container/test/toast-container.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/toast-container/test/toast-container.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/test/tooltip.component.e2e.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/test/tooltip.component.spec.js.map +1 -1
- package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
- package/dist/collection/components/helpers/table-column/table-column.component.js +1 -1
- package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -1
- package/dist/collection/components/molecules/accordion/test/accordion.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/accordion/test/accordion.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -1
- package/dist/collection/components/molecules/attachment/test/attachment.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/attachment/test/attachment.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +2 -2
- package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
- package/dist/collection/components/molecules/calendar/test/calendar.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/calendar/test/calendar.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -1
- package/dist/collection/components/molecules/content-slider/test/content-slider.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/content-slider/test/content-slider.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/cropper/cropper.component.js.map +1 -1
- package/dist/collection/components/molecules/cropper/test/cropper.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/cropper/test/cropper.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/test/datepicker.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/test/datepicker.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +22 -0
- package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/test/dropdown.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/test/dropdown.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -1
- package/dist/collection/components/molecules/input-error/test/input-error.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/input-error/test/input-error.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +4 -4
- package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -1
- package/dist/collection/components/molecules/input-group/test/input-group.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/input-group/test/input-group.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +2 -2
- package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -1
- package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -1
- package/dist/collection/components/molecules/pagination/test/pagination.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/pagination/test/pagination.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
- package/dist/collection/components/molecules/profile/test/profile.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/profile/test/profile.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/select/select.component.css +1 -1
- package/dist/collection/components/molecules/select/select.component.js +238 -18
- package/dist/collection/components/molecules/select/select.component.js.map +1 -1
- package/dist/collection/components/molecules/select/test/select.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/select/test/select.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -1
- package/dist/collection/components/molecules/stepper/test/stepper.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/stepper/test/stepper.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +40 -40
- package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -1
- package/dist/collection/components/molecules/table-cell/test/table-cell.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/table-cell/test/table-cell.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -1
- package/dist/collection/components/molecules/table-footer/test/table-footer.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/table-footer/test/table-footer.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -1
- package/dist/collection/components/molecules/table-header/test/table-header.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/table-header/test/table-header.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -1
- package/dist/collection/components/molecules/table-row/test/table-row.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/table-row/test/table-row.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/toast/test/toast.component.e2e.js.map +1 -1
- package/dist/collection/components/molecules/toast/test/toast.component.spec.js.map +1 -1
- package/dist/collection/components/molecules/toast/toast.component.js.map +1 -1
- package/dist/collection/components/organisms/drawer/drawer.component.js +2 -2
- package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -1
- package/dist/collection/components/organisms/drawer/test/drawer.component.e2e.js.map +1 -1
- package/dist/collection/components/organisms/drawer/test/drawer.component.spec.js.map +1 -1
- package/dist/collection/components/organisms/modal/modal.component.js.map +1 -1
- package/dist/collection/components/organisms/modal/test/modal.component.e2e.js.map +1 -1
- package/dist/collection/components/organisms/modal/test/modal.component.spec.js.map +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
- package/dist/collection/components/organisms/navbar/test/navbar.component.e2e.js.map +1 -1
- package/dist/collection/components/organisms/navbar/test/navbar.component.spec.js.map +1 -1
- package/dist/collection/components/organisms/table/table.component.js +6 -6
- package/dist/collection/components/organisms/table/table.component.js.map +1 -1
- package/dist/collection/components/organisms/table/test/table.component.e2e.js.map +1 -1
- package/dist/collection/components/organisms/table/test/table.component.spec.js.map +1 -1
- package/dist/components/avatar.component.js +70 -0
- package/dist/components/avatar.component.js.map +1 -0
- package/dist/components/backdrop.component.js.map +1 -1
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/calendar.component.js +2 -2
- package/dist/components/calendar.component.js.map +1 -1
- package/dist/components/counter.component.js.map +1 -1
- package/dist/components/divider.component.js.map +1 -1
- package/dist/components/drawer-body.component.js.map +1 -1
- package/dist/components/drawer-container.component.js.map +1 -1
- package/dist/components/drawer-header.component.js.map +1 -1
- package/dist/components/dropdown-menu-container.component.js.map +1 -1
- package/dist/components/dropdown-menu-item.component.js +4 -2
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/dropdown.component.js +5 -0
- package/dist/components/dropdown.component.js.map +1 -1
- package/dist/components/floating-menu-container.component.js.map +1 -1
- package/dist/components/floating-menu-item.component.js.map +1 -1
- package/dist/components/helper.component.js.map +1 -1
- package/dist/components/icon.component.js.map +1 -1
- package/dist/components/illustration.component.js +1 -1
- package/dist/components/illustration.component.js.map +1 -1
- package/dist/components/input-error.component.js.map +1 -1
- package/dist/components/input-group.component.js +4 -4
- package/dist/components/input-group.component.js.map +1 -1
- package/dist/components/label.component.js.map +1 -1
- package/dist/components/loader.component.js.map +1 -1
- package/dist/components/modal-body.component.js.map +1 -1
- package/dist/components/modal-container.component.js.map +1 -1
- package/dist/components/modal-footer.component.js.map +1 -1
- package/dist/components/modal-header.component.js.map +1 -1
- package/dist/components/p-accordion.js.map +1 -1
- package/dist/components/p-attachment.js.map +1 -1
- package/dist/components/p-avatar-group.js.map +1 -1
- package/dist/components/p-avatar.js +1 -66
- package/dist/components/p-avatar.js.map +1 -1
- package/dist/components/p-card-body.js.map +1 -1
- package/dist/components/p-card-container.js.map +1 -1
- package/dist/components/p-card-header.js.map +1 -1
- package/dist/components/p-content-slider.js.map +1 -1
- package/dist/components/p-cropper.js.map +1 -1
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-drawer.js.map +1 -1
- package/dist/components/p-info-panel.js.map +1 -1
- package/dist/components/p-layout.js.map +1 -1
- package/dist/components/p-modal.js.map +1 -1
- package/dist/components/p-navbar.js.map +1 -1
- package/dist/components/p-navigation-item.js.map +1 -1
- package/dist/components/p-profile.js.map +1 -1
- package/dist/components/p-select.js +150 -20
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-status.js.map +1 -1
- package/dist/components/p-stepper-item.js.map +1 -1
- package/dist/components/p-stepper.js.map +1 -1
- package/dist/components/p-tab-group.js.map +1 -1
- package/dist/components/p-tab-item.js.map +1 -1
- package/dist/components/p-table-column.js.map +1 -1
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast-container.js.map +1 -1
- package/dist/components/p-toast.js.map +1 -1
- package/dist/components/page-size-select.component.js.map +1 -1
- package/dist/components/pagination-item.component.js.map +1 -1
- package/dist/components/pagination.component.js.map +1 -1
- package/dist/components/segment-container.component.js.map +1 -1
- package/dist/components/segment-item.component.js +1 -1
- package/dist/components/segment-item.component.js.map +1 -1
- package/dist/components/slider-indicator.component.js.map +1 -1
- package/dist/components/stepper-line.component.js.map +1 -1
- package/dist/components/table-cell.component.js +39 -39
- package/dist/components/table-cell.component.js.map +1 -1
- package/dist/components/table-container.component.js.map +1 -1
- package/dist/components/table-footer.component.js.map +1 -1
- package/dist/components/table-header.component.js.map +1 -1
- package/dist/components/table-row.component.js.map +1 -1
- package/dist/components/tooltip.component.js.map +1 -1
- package/dist/esm/index-7b917f6b.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js.map +1 -1
- package/dist/esm/p-attachment.entry.js.map +1 -1
- package/dist/esm/p-avatar-group.entry.js.map +1 -1
- package/dist/esm/p-avatar.entry.js.map +1 -1
- package/dist/esm/p-backdrop.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-calendar.entry.js +2 -2
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-card-body.entry.js.map +1 -1
- package/dist/esm/p-card-container.entry.js.map +1 -1
- package/dist/esm/p-card-header.entry.js.map +1 -1
- package/dist/esm/p-content-slider.entry.js.map +1 -1
- package/dist/esm/p-counter.entry.js.map +1 -1
- package/dist/esm/p-cropper.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-divider.entry.js.map +1 -1
- package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
- package/dist/esm/p-drawer.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
- package/dist/esm/p-dropdown_2.entry.js +7 -2
- package/dist/esm/p-dropdown_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +40 -40
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/p-helper_3.entry.js +4 -4
- package/dist/esm/p-helper_3.entry.js.map +1 -1
- package/dist/esm/p-info-panel.entry.js.map +1 -1
- package/dist/esm/p-label_3.entry.js +1 -1
- package/dist/esm/p-label_3.entry.js.map +1 -1
- package/dist/esm/p-layout.entry.js.map +1 -1
- package/dist/esm/p-modal-body_4.entry.js.map +1 -1
- package/dist/esm/p-modal.entry.js.map +1 -1
- package/dist/esm/p-navbar.entry.js.map +1 -1
- package/dist/esm/p-navigation-item.entry.js.map +1 -1
- package/dist/esm/p-page-size-select_3.entry.js.map +1 -1
- package/dist/esm/p-profile.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +136 -18
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-slider-indicator.entry.js.map +1 -1
- package/dist/esm/p-status.entry.js.map +1 -1
- package/dist/esm/p-stepper-item.entry.js.map +1 -1
- package/dist/esm/p-stepper-line.entry.js.map +1 -1
- package/dist/esm/p-stepper.entry.js.map +1 -1
- package/dist/esm/p-tab-group.entry.js.map +1 -1
- package/dist/esm/p-tab-item.entry.js.map +1 -1
- package/dist/esm/p-table-column.entry.js.map +1 -1
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast-container.entry.js.map +1 -1
- package/dist/esm/p-toast.entry.js.map +1 -1
- package/dist/esm/p-tooltip.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/p-03090f03.entry.js.map +1 -1
- package/dist/paperless/p-085e6ff4.entry.js.map +1 -1
- package/dist/paperless/p-2becd73c.entry.js.map +1 -1
- package/dist/paperless/p-2cb55f24.entry.js.map +1 -1
- package/dist/paperless/p-2cd5062f.entry.js.map +1 -1
- package/dist/paperless/p-35c563a7.entry.js.map +1 -1
- package/dist/paperless/p-415c5040.entry.js.map +1 -1
- package/dist/paperless/p-424d5c8a.entry.js.map +1 -1
- package/dist/paperless/p-46a939e2.entry.js.map +1 -1
- package/dist/paperless/p-4c30c74b.entry.js.map +1 -1
- package/dist/paperless/p-4dc5647e.entry.js.map +1 -1
- package/dist/paperless/p-4e9e4ce2.entry.js.map +1 -1
- package/dist/paperless/p-606ad811.entry.js.map +1 -1
- package/dist/paperless/p-682db916.entry.js.map +1 -1
- package/dist/paperless/p-699e0b35.entry.js.map +1 -1
- package/dist/paperless/p-6a5aeb90.entry.js.map +1 -1
- package/dist/paperless/p-7793ba3a.entry.js.map +1 -1
- package/dist/paperless/p-7d15ff9a.entry.js.map +1 -1
- package/dist/paperless/p-8426ca20.entry.js.map +1 -1
- package/dist/paperless/p-93052b42.entry.js.map +1 -1
- package/dist/paperless/p-97bcf0b5.entry.js.map +1 -1
- package/dist/paperless/p-9c914665.entry.js.map +1 -1
- package/dist/paperless/p-9d3d72fa.entry.js.map +1 -1
- package/dist/paperless/p-a2b552f9.entry.js.map +1 -1
- package/dist/paperless/p-a7344d53.entry.js +2 -0
- package/dist/paperless/p-a7344d53.entry.js.map +1 -0
- package/dist/paperless/p-af6b813e.entry.js.map +1 -1
- package/dist/paperless/p-b6f43309.entry.js.map +1 -1
- package/dist/paperless/p-b7c0f157.entry.js.map +1 -1
- package/dist/paperless/p-c644d1e3.entry.js.map +1 -1
- package/dist/paperless/p-c9b840a7.entry.js.map +1 -1
- package/dist/paperless/p-cb2674b5.entry.js.map +1 -1
- package/dist/paperless/p-cf7bd354.entry.js.map +1 -1
- package/dist/paperless/p-d0796984.entry.js.map +1 -1
- package/dist/paperless/p-d23db949.entry.js.map +1 -1
- package/dist/paperless/p-dace47c5.entry.js.map +1 -1
- package/dist/paperless/p-dd20caf1.entry.js.map +1 -1
- package/dist/paperless/p-dfa8eae9.entry.js +2 -0
- package/dist/paperless/p-dfa8eae9.entry.js.map +1 -0
- package/dist/paperless/p-ec15ee73.entry.js.map +1 -1
- package/dist/paperless/p-ec29eed0.entry.js.map +1 -1
- package/dist/paperless/p-f0f1a46b.entry.js.map +1 -1
- package/dist/paperless/p-f34e08ec.entry.js.map +1 -1
- package/dist/paperless/p-f9e52ae3.entry.js.map +1 -1
- package/dist/paperless/p-fac13366.entry.js.map +1 -1
- package/dist/paperless/paperless.css +7 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +1 -1
- package/dist/style/form/_checkbox.scss +4 -0
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +4 -0
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +4 -0
- package/dist/types/components/molecules/select/select.component.d.ts +34 -0
- package/dist/types/components.d.ts +105 -45
- package/hydrate/index.js +201 -70
- package/package.json +1 -1
- package/dist/build/p-573648d0.entry.js +0 -2
- package/dist/build/p-573648d0.entry.js.map +0 -1
- package/dist/build/p-9c7cfd25.entry.js +0 -2
- package/dist/build/p-9c7cfd25.entry.js.map +0 -1
- package/dist/paperless/p-573648d0.entry.js +0 -2
- package/dist/paperless/p-573648d0.entry.js.map +0 -1
- package/dist/paperless/p-9c7cfd25.entry.js +0 -2
- package/dist/paperless/p-9c7cfd25.entry.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-drawer.js","mappings":";;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,+GAA+G;;MCgB7H,MAAM;;;;;;;
|
|
1
|
+
{"file":"p-drawer.js","mappings":";;;;;;;;;AAAA,MAAM,kBAAkB,GAAG,+GAA+G;;MCgB7H,MAAM;;;;;;;IA4DV,mBAAc,GAAG,KAAK,CAAC;;gBAnDP,KAAK;qBAKA,KAAK;qBAKd,IAAI;8BAKK,IAAI;oBAKL,IAAI;sBAKF,IAAI;oBA4BN,KAAK;;EAEjC,iBAAiB;IAChB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC7C,0BAA0B,CAC1B,CAAC;GACF;EAED,MAAM;;IACL,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,OAAO;KACP;IAED,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAC7C,MAAM,WAAW,GAAG,YAAM,IAAI,EAAC,SAAS,GAAG,CAAC;IAE5C,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,UAAU,IACrB,kBACC,OAAO,EAAC,QAAQ,EAChB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EACjD,OAAO,EAAE,IAAI,CAAC,QAAQ,EACtB,UAAU,EAAE,IAAI,CAAC,UAAU,IAE3B,0BAAoB,OAAO,EAAE,IAAI,CAAC,QAAQ,IACxC,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,KAAI,IAAI,CAAC,cAAc,MAC3C,qCACa,IAAI,CAAC,SAAS,EAC1B,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,IAErC,IAAI,CAAC,cAAc;QACjB,aAAa;QACb,IAAI,CAAC,MAAM,CACG,CAClB,EACD,yBAAgB,WAAW,CAAiB,CACxB,CACT,CACP,EACN;GACF;EAEO,cAAc,CAAC,EAAE;IACxB,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;MAC7B,OAAO;KACP;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;GACf;EAEM,KAAK,CAAC,EAAc;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;MACtB,KAAK,EAAE,EAAE;MACT,QAAQ,EAAE,IAAI,CAAC,QAAQ;KACvB,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MACnB,OAAO;KACP;IAED,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IAErB,UAAU,CAAC;MACV,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;MAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;MACtB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACnB,EAAE,GAAG,CAAC,CAAC;GACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/organisms/drawer/drawer.component.scss?tag=p-drawer&encapsulation=shadow","src/components/organisms/drawer/drawer.component.tsx"],"sourcesContent":[":host {\n\t@apply block;\n}\n","import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({\n\ttag: 'p-drawer',\n\tstyleUrl: 'drawer.component.scss',\n\tshadow: true,\n})\nexport class Drawer {\n\t/**\n\t * The Header of the drawer\n\t */\n\t@Prop() header?: string;\n\n\t/**\n\t * Wether to show the drawer or not\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to apply blur to the backdrop\n\t */\n\t@Prop() applyBlur: boolean = false;\n\n\t/**\n\t * Wether to show the close on mobile in the header\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Wether to hide the drawer when the backdrop is clicked\n\t */\n\t@Prop() backdropClickClose = true;\n\n\t/**\n\t * Wether the drawer can be closed\n\t */\n\t@Prop() canClose: boolean = true;\n\n\t/**\n\t * Wether we should scroll lock the body\n\t */\n\t@Prop() scrollLock: boolean = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tcloseClicked: EventEmitter<{\n\t\tevent: MouseEvent;\n\t\tcanClose: boolean;\n\t}>;\n\n\t/**\n\t * Closed event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclosed: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasHeaderSlot = false;\n\n\t@State() private _closing = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\t}\n\n\trender() {\n\t\tif (!this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst headerContent = <slot name=\"header\" />;\n\t\tconst bodyContent = <slot name=\"content\" />;\n\n\t\treturn (\n\t\t\t<Host class=\"p-drawer\">\n\t\t\t\t<p-backdrop\n\t\t\t\t\tvariant=\"drawer\"\n\t\t\t\t\tapplyBlur={this.applyBlur}\n\t\t\t\t\tonClicked={(ev) => this._backdropClick(ev.detail)}\n\t\t\t\t\tclosing={this._closing}\n\t\t\t\t\tscrollLock={this.scrollLock}\n\t\t\t\t>\n\t\t\t\t\t<p-drawer-container closing={this._closing}>\n\t\t\t\t\t\t{(this.header?.length || this._hasHeaderSlot) && (\n\t\t\t\t\t\t\t<p-drawer-header\n\t\t\t\t\t\t\t\tshow-close={this.showClose}\n\t\t\t\t\t\t\t\tonClose={(ev) => this.close(ev.detail)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this._hasHeaderSlot\n\t\t\t\t\t\t\t\t\t? headerContent\n\t\t\t\t\t\t\t\t\t: this.header}\n\t\t\t\t\t\t\t</p-drawer-header>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<p-drawer-body>{bodyContent}</p-drawer-body>\n\t\t\t\t\t</p-drawer-container>\n\t\t\t\t</p-backdrop>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _backdropClick(ev) {\n\t\tif (!this.backdropClickClose) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.close(ev);\n\t}\n\n\tpublic close(ev: MouseEvent) {\n\t\tthis.closeClicked.emit({\n\t\t\tevent: ev,\n\t\t\tcanClose: this.canClose,\n\t\t});\n\n\t\tif (!this.canClose) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._closing = true;\n\n\t\tsetTimeout(() => {\n\t\t\tthis.show = false;\n\t\t\tthis._closing = false;\n\t\t\tthis.closed.emit();\n\t\t}, 250);\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-info-panel.js","mappings":";;;AAAA,MAAM,qBAAqB,GAAG,uxCAAuxC;;MCOxyC,SAAS;;;;;
|
|
1
|
+
{"file":"p-info-panel.js","mappings":";;;AAAA,MAAM,qBAAqB,GAAG,uxCAAuxC;;MCOxyC,SAAS;;;;;mBAI4C,MAAM;;;qBAe1C,KAAK;;EAOlC,MAAM;IACL,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,wBAAwB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,IAAI,WAAW,EAAE,IAE9E,WAAK,KAAK,EAAC,QAAQ,IAClB,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EAEL,IAAI,CAAC,SAAS,KACd,WAAK,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAC9C,cAAQ,OAAO,EAAC,UAAU,GAAG,CACxB,CACN,CACK,EACN;GACF;EAEO,MAAM;IACb,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;GAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/info-panel/info-panel.component.scss?tag=p-info-panel&encapsulation=shadow","src/components/atoms/info-panel/info-panel.component.tsx"],"sourcesContent":[":host {\n\t@apply flex flex-col w-full relative p-4 bg-indigo-light rounded-large;\n\n\t.header {\n\t\t@apply font-semibold text-storm-dark;\n\t}\n\n\t.content {\n\t\t@apply text-sm;\n\t}\n\n\t.close {\n\t\t@apply absolute top-2 right-2 cursor-pointer text-storm-vague;\n\t}\n}\n\n:host(.variant-positive) {\n\t@apply bg-positive-light;\n}\n\n:host(.variant-unbiased) {\n\t@apply bg-unbiased-light;\n}\n\n:host(.variant-negative) {\n\t@apply bg-negative-light;\n}\n\n:host(.has-close) {\n\t@apply pr-8;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-info-panel',\n\tstyleUrl: 'info-panel.component.scss',\n\tshadow: true,\n})\nexport class InfoPanel {\n\t/**\n\t * The variant of the info panel\n\t */\n\t@Prop() variant: 'info' | 'negative' | 'positive' | 'unbiased' = 'info';\n\n\t/**\n\t * The header of the info panel\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * The content of the info panel\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * Wether the panel can be closed\n\t */\n\t@Prop() closeable: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}`}\n\t\t\t>\n\t\t\t\t<div class=\"header\">\n\t\t\t\t\t<slot name=\"header\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t</div>\n\n\t\t\t\t{this.closeable && (\n\t\t\t\t\t<div class=\"close\" onClick={() => this._close()}>\n\t\t\t\t\t\t<p-icon variant=\"negative\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _close() {\n\t\tthis._el.remove();\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-layout.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,0oHAA0oH;;MCOxpH,MAAM;;;;;
|
|
1
|
+
{"file":"p-layout.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,0oHAA0oH;;MCOxpH,MAAM;;;;;mBAIgC,SAAS;;EAE3D,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,oBAAoB,IAAI,CAAC,OAAO,EAAE,IAC9C,WAAK,KAAK,EAAC,QAAQ,IAClB,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,WAAK,KAAK,EAAC,eAAe,IACzB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,CACD,CACA,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/layout/layout.component.scss?tag=p-layout&encapsulation=shadow","src/components/atoms/layout/layout.component.tsx"],"sourcesContent":[":host {\n\t@apply grid h-screen w-screen content-start overflow-hidden;\n\n\tgrid-template-columns: 1fr;\n\tgrid-template-rows: repeat(1fr, 3);\n\tgap: 0;\n\tgrid-template-areas:\n\t\t'sidebar'\n\t\t'topbar'\n\t\t'content';\n\n\t@screen desktop-xs {\n\t\tgrid-template-columns: auto 1fr;\n\t\tgrid-template-rows: auto 1fr;\n\t\tgrid-template-areas:\n\t\t\t'topbar topbar'\n\t\t\t'sidebar content';\n\t}\n\n\t.topbar,\n\t.sidebar,\n\t.content {\n\t\t@apply self-start;\n\t}\n\n\t.topbar {\n\t\tgrid-area: topbar;\n\n\t\t@apply sticky w-full;\n\t\t@apply order-2 desktop-sm:order-1;\n\t}\n\n\t.sidebar {\n\t\tgrid-area: sidebar;\n\n\t\t@apply box-border flex h-full;\n\t\t@apply w-sidebar-mobile desktop-sm:w-sidebar-desktop;\n\t\t@apply order-1 desktop-sm:order-2;\n\t}\n\n\t.content {\n\t\tgrid-area: content;\n\n\t\t@apply relative flex h-full flex-col overflow-y-auto overflow-x-hidden;\n\t\t@apply order-3;\n\n\t\tpadding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom)\n\t\t\tenv(safe-area-inset-left);\n\n\t\t.inner-content {\n\t\t\t@apply relative pb-24;\n\n\t\t\t@apply px-content-mobile-x py-content-mobile-y;\n\t\t\t@apply desktop-xs:px-content-desktop-x desktop-xs:py-content-desktop-y;\n\n\t\t\t@apply desktop-xs:w-content-desktop-xs desktop-sm:w-content-desktop-sm desktop:w-content-desktop desktop-lg:w-content-desktop-lg desktop-xl:w-content-desktop-xl;\n\t\t}\n\t}\n}\n\n:host(.variant-default) {\n\t.content {\n\t\t@apply flex-1;\n\t}\n}\n\n:host(.variant-login) {\n\tgrid-template-areas:\n\t\t'topbar topbar'\n\t\t'content content';\n\n\t@screen desktop-xs {\n\t\tgrid-template-areas:\n\t\t\t'topbar topbar'\n\t\t\t'content sidebar';\n\t}\n\n\t.sidebar {\n\t\t@apply hidden w-unset desktop-xs:flex;\n\t\t@apply order-3 p-2;\n\t\t@apply flex-1 overflow-hidden;\n\n\t\t.inner-content {\n\t\t\t@apply p-2;\n\t\t}\n\t}\n\n\t.content {\n\t\t@apply order-3 desktop-xs:order-2;\n\t\t@apply items-center desktop-xs:justify-center;\n\n\t\t.inner-content {\n\t\t\t@apply box-border;\n\t\t\t@apply desktop-xs:px-18 desktop-xs:py-0;\n\t\t\t@apply w-full tablet:w-content-desktop-login;\n\n\t\t\t@apply px-content-mobile-x py-content-mobile-y;\n\t\t\tpadding-top: calc(env(safe-area-inset-top) + 3.5rem);\n\n\t\t\t@screen desktop-xs {\n\t\t\t\t@apply pt-content-mobile-y;\n\t\t\t}\n\t\t}\n\t}\n}\n\n:host(.variant-office) {\n\t.sidebar {\n\t\t@apply desktop-sm:w-sidebar-office-desktop;\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-layout',\n\tstyleUrl: 'layout.component.scss',\n\tshadow: true,\n})\nexport class Layout {\n\t/**\n\t * Variant of the layout\n\t */\n\t@Prop() variant: 'default' | 'login' | 'office' = 'default';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`p-layout variant-${this.variant}`}>\n\t\t\t\t<div class=\"topbar\">\n\t\t\t\t\t<slot name=\"topbar\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"sidebar\">\n\t\t\t\t\t<slot name=\"sidebar\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<div class=\"inner-content\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-modal.js","mappings":";;;;;;;;;;;MAea,KAAK;;;;;;;
|
|
1
|
+
{"file":"p-modal.js","mappings":";;;;;;;;;;;MAea,KAAK;;;;;;;IAwET,mBAAc,GAAG,KAAK,CAAC;IACvB,mBAAc,GAAG,KAAK,CAAC;gBArEW,IAAI;mBAKP,SAAS;;gBAUxB,KAAK;qBAKA,KAAK;qBAKd,IAAI;4BAKG,KAAK;8BAKH,IAAI;sBAKH,IAAI;mBAKP,IAAI;oBA0BH,KAAK;;EAEjC,iBAAiB;IAChB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC7C,0BAA0B,CAC1B,CAAC;IACF,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC7C,0BAA0B,CAC1B,CAAC;GACF;EAED,MAAM;;IACL,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,OAAO;KACP;IAED,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAC7C,MAAM,WAAW,GAAG,YAAM,IAAI,EAAC,SAAS,GAAG,CAAC;IAC5C,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAE7C,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,SAAS,IACpB,kBACC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EACjD,OAAO,EAAE,IAAI,CAAC,QAAQ,EACtB,UAAU,EAAE,IAAI,CAAC,UAAU,IAE3B,yBAAmB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,IACxD,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,KAAI,IAAI,CAAC,cAAc,MAC3C,sBACC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,IAErC,IAAI,CAAC,cAAc;QACjB,aAAa;QACb,IAAI,CAAC,MAAM,CACE,CACjB,EACD,oBACC,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,CAAC,IAAI,CAAC,cAAc,EAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,WAAW,CACE,EACd,IAAI,CAAC,cAAc,KACnB,0BAAiB,aAAa,CAAkB,CAChD,CACkB,CACR,CACP,EACN;GACF;EAEO,cAAc,CAAC,EAAc;IACpC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;MAC7B,OAAO;KACP;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;GACf;EAEM,KAAK,CAAC,EAAc;IAC1B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAE3B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IAErB,UAAU,CAAC;MACV,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;MAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;MAEtB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACnB,EAAE,GAAG,CAAC,CAAC;GACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/organisms/modal/modal.component.tsx"],"sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal',\n\tshadow: true,\n})\nexport class Modal {\n\t/**\n\t * The size of the modal container\n\t */\n\t@Prop() size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\n\n\t/**\n\t * The variant of the modal body\n\t */\n\t@Prop() variant: 'default' | 'table' = 'default';\n\n\t/**\n\t * The Header of the modal\n\t */\n\t@Prop() header?: string;\n\n\t/**\n\t * Wether to show the modal or not\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to apply blur to the backdrop\n\t */\n\t@Prop() applyBlur: boolean = false;\n\n\t/**\n\t * Wether to show the close button in the header\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Wether to show the footer on mobile\n\t */\n\t@Prop() showMobileFooter = false;\n\n\t/**\n\t * Wether to hide the modal when the backdrop is clicked\n\t */\n\t@Prop() backdropClickClose = true;\n\n\t/**\n\t * Wether we should scroll lock the body\n\t */\n\t@Prop() scrollLock: boolean = true;\n\n\t/**\n\t * Wether the body should have padding\n\t */\n\t@Prop() padding: boolean = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tcloseClicked: EventEmitter<MouseEvent>;\n\n\t/**\n\t * Closed event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclosed: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasFooterSlot = false;\n\tprivate _hasHeaderSlot = false;\n\n\t@State() private _closing = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasFooterSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"footer\"]'\n\t\t);\n\t\tthis._hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\t}\n\n\trender() {\n\t\tif (!this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst headerContent = <slot name=\"header\" />;\n\t\tconst bodyContent = <slot name=\"content\" />;\n\t\tconst footerContent = <slot name=\"footer\" />;\n\n\t\treturn (\n\t\t\t<Host class=\"p-modal\">\n\t\t\t\t<p-backdrop\n\t\t\t\t\tapplyBlur={this.applyBlur}\n\t\t\t\t\tonClicked={(ev) => this._backdropClick(ev.detail)}\n\t\t\t\t\tclosing={this._closing}\n\t\t\t\t\tscrollLock={this.scrollLock}\n\t\t\t\t>\n\t\t\t\t\t<p-modal-container size={this.size} closing={this._closing}>\n\t\t\t\t\t\t{(this.header?.length || this._hasHeaderSlot) && (\n\t\t\t\t\t\t\t<p-modal-header\n\t\t\t\t\t\t\t\tshowClose={this.showClose}\n\t\t\t\t\t\t\t\tonClose={(ev) => this.close(ev.detail)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this._hasHeaderSlot\n\t\t\t\t\t\t\t\t\t? headerContent\n\t\t\t\t\t\t\t\t\t: this.header}\n\t\t\t\t\t\t\t</p-modal-header>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<p-modal-body\n\t\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\t\trounded={!this._hasFooterSlot}\n\t\t\t\t\t\t\tpadding={this.padding}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{bodyContent}\n\t\t\t\t\t\t</p-modal-body>\n\t\t\t\t\t\t{this._hasFooterSlot && (\n\t\t\t\t\t\t\t<p-modal-footer>{footerContent}</p-modal-footer>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</p-modal-container>\n\t\t\t\t</p-backdrop>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _backdropClick(ev: MouseEvent) {\n\t\tif (!this.backdropClickClose) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.close(ev);\n\t}\n\n\tpublic close(ev: MouseEvent) {\n\t\tthis.closeClicked.emit(ev);\n\n\t\tthis._closing = true;\n\n\t\tsetTimeout(() => {\n\t\t\tthis.show = false;\n\t\t\tthis._closing = false;\n\n\t\t\tthis.closed.emit();\n\t\t}, 550);\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-navbar.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,w9IAAw9I;;MCOt+I,MAAM;;;;;
|
|
1
|
+
{"file":"p-navbar.js","mappings":";;;;;;AAAA,MAAM,kBAAkB,GAAG,w9IAAw9I;;MCOt+I,MAAM;;;;;qBAIE,OAAO;oBAKR,MAAM;qBAEI,KAAK;;EAElC,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,UAAU,IACrB,kBACC,SAAS,EAAE,IAAI,EACf,KAAK,EAAE,uCACN,IAAI,CAAC,SAAS,IAAI,MACnB,EAAE,EACF,SAAS,EAAE,OAAO,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,GAC5B,EACd,WAAK,KAAK,EAAE,WAAW,IAAI,CAAC,SAAS,IAAI,MAAM,EAAE,IAChD,WAAK,KAAK,EAAC,QAAQ,IAClB,SAAG,KAAK,EAAC,2CAA2C,IAClD,IAAI,CAAC,QAAQ,CACX,EAEJ,gBACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,KAAK,EAClB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAEtC,IAAI,CAAC,SAAS,CACL,CACN,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EAEN,WAAK,KAAK,EAAC,MAAM,IAChB,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACD,EAEN,WAAK,KAAK,EAAC,SAAS,IACnB,gBACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAErC,IAAI,CAAC,QAAQ,CACJ,EAEX,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,CACA,EACN;GACF;EAGD,iBAAiB;IAChB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;GACvB;EAGD,gBAAgB;IACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;GACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/organisms/navbar/navbar.component.scss?tag=p-navbar&encapsulation=shadow","src/components/organisms/navbar/navbar.component.tsx"],"sourcesContent":["@import '../../../style/mixins';\n\n:host {\n\t@apply w-full max-h-screen-safe;\n\t@apply desktop-xs:w-60;\n\n\t.sidebar,\n\t.sidebar .company,\n\t.sidebar .content,\n\t.sidebar .user,\n\t.userbar {\n\t\t@apply flex w-full flex-col;\n\t}\n\n\t.sidebar,\n\t.top-bar {\n\t\t@apply bg-white;\n\t\t@apply border-0 border-solid border-mystic-dark #{!important};\n\t}\n\n\t.sidebar {\n\t\t@apply fixed top-0 left-0 z-navbar h-screen w-60 bg-white;\n\t\t@apply desktop-xs:relative desktop-xs:h-full desktop-xs:w-full;\n\t\t@apply gap-6;\n\n\t\t@apply will-change-transform;\n\t\t@apply -translate-x-full transform-gpu desktop-xs:translate-x-0;\n\n\t\t@apply py-4;\n\n\t\tpadding-top: calc(env(safe-area-inset-top, 0) + 1rem);\n\n\t\t@apply border-r #{!important};\n\n\t\t@apply transition-all;\n\n\t\t.company,\n\t\t.content,\n\t\t.user,\n\t\t.header {\n\t\t\t@apply px-4;\n\t\t}\n\n\t\t.header {\n\t\t\t@apply flex w-full items-center justify-between;\n\t\t\t@apply desktop-xs:hidden;\n\t\t}\n\n\t\t.content {\n\t\t\t@apply overflow-y-auto;\n\n\t\t\t@include scrollbarY();\n\t\t}\n\n\t\t.user {\n\t\t\t@apply mt-auto hidden;\n\t\t\t@apply desktop-xs:flex;\n\t\t}\n\n\t\t&.show {\n\t\t\t--tw-translate-x: env(safe-area-inset-left, 0);\n\t\t}\n\t}\n\n\t.top-bar {\n\t\t@apply flex w-full justify-between px-4 py-2;\n\n\t\tpadding-top: calc(env(safe-area-inset-top, 0) + 0.5rem);\n\t\theight: calc(env(safe-area-inset-top, 0) + 3rem);\n\n\t\t@apply border-b #{!important};\n\n\t\t@apply desktop-xs:hidden;\n\t}\n\n\tp-backdrop {\n\t\t@apply hidden;\n\n\t\t&.show {\n\t\t\t@apply block;\n\t\t}\n\t}\n}\n","import { Component, h, Host, Listen, Prop, State } from '@stencil/core';\n\n@Component({\n\ttag: 'p-navbar',\n\tstyleUrl: 'navbar.component.scss',\n\tshadow: true,\n})\nexport class Navbar {\n\t/**\n\t * The text to display for the close button\n\t */\n\t@Prop() closeText = 'Close';\n\n\t/**\n\t * The text to display for the menu button & sidebar title\n\t */\n\t@Prop() menuText = 'Menu';\n\n\t@State() private _showMenu = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-navbar\">\n\t\t\t\t<p-backdrop\n\t\t\t\t\tapplyBlur={true}\n\t\t\t\t\tclass={`z-navbar-backdrop desktop-xs:hidden ${\n\t\t\t\t\t\tthis._showMenu && 'show'\n\t\t\t\t\t}`}\n\t\t\t\t\tonClicked={() => (this._showMenu = false)}\n\t\t\t\t></p-backdrop>\n\t\t\t\t<div class={`sidebar ${this._showMenu && 'show'}`}>\n\t\t\t\t\t<div class=\"header\">\n\t\t\t\t\t\t<p class=\"text-xl m-0 font-semibold text-storm-dark\">\n\t\t\t\t\t\t\t{this.menuText}\n\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\ticon=\"negative\"\n\t\t\t\t\t\t\ticonPosition=\"end\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tonClick={() => (this._showMenu = false)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.closeText}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"company\">\n\t\t\t\t\t\t<slot name=\"company\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"user\">\n\t\t\t\t\t\t<slot name=\"user\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"top-bar\">\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\ticon=\"menu\"\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tonClick={() => (this._showMenu = true)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.menuText}\n\t\t\t\t\t</p-button>\n\n\t\t\t\t\t<slot name=\"topbar\" />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('closeNavbar', { target: 'window' })\n\thandleCloseNavbar() {\n\t\tthis._showMenu = false;\n\t}\n\n\t@Listen('openNavbar', { target: 'window' })\n\thandleOpenNavbar() {\n\t\tthis._showMenu = true;\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-navigation-item.js","mappings":";;;;AAAA,MAAM,0BAA0B,GAAG,szCAAszC;;MCQ50C,cAAc;;;;;
|
|
1
|
+
{"file":"p-navigation-item.js","mappings":";;;;AAAA,MAAM,0BAA0B,GAAG,szCAAszC;;MCQ50C,cAAc;;;;;kBAIA,KAAK;;;;;;EAsB/B,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,qBAAqB,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IAC1D,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IACrC,IAAI,CAAC,IAAI,IAAI,cAAQ,OAAO,EAAE,IAAI,CAAC,IAAI,GAAI,EAC5C,YAAM,KAAK,EAAE,IAAI,CAAC,OAAO,IAAI,aAAa,IACzC,eAAQ,CACF,EACN,IAAI,CAAC,OAAO,KACZ,iBAAW,OAAO,EAAC,UAAU,IAAE,IAAI,CAAC,OAAO,CAAa,CACxD,CACE,CACE,EACN;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/navigation-item/navigation-item.component.scss?tag=p-navigation-item&encapsulation=shadow","src/components/molecules/navigation-item/navigation-item.component.tsx"],"sourcesContent":[":host {\n\t@apply w-full inline-block mb-1;\n\n\t> a {\n\t\t@apply w-full h-8 px-2 cursor-pointer rounded-large no-underline;\n\t\t@apply flex items-center gap-2;\n\t\t@apply text-storm font-semibold;\n\n\t\t@apply hover:bg-indigo-light;\n\n\t\t> p-icon {\n\t\t\t@apply text-storm;\n\t\t}\n\n\t\t> p-counter {\n\t\t\t@apply ml-auto;\n\t\t}\n\t}\n}\n\n:host(.active) {\n\t> a {\n\t\t@apply text-indigo bg-indigo-light;\n\n\t\t> p-icon {\n\t\t\t@apply text-indigo;\n\t\t}\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n\ttag: 'p-navigation-item',\n\tstyleUrl: 'navigation-item.component.scss',\n\tshadow: true,\n})\nexport class NavigationItem {\n\t/**\n\t * Wether the navigation item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() counter: number | string;\n\n\t/**\n\t * The href of the navigation item\n\t */\n\t@Prop() href: string;\n\n\t/**\n\t * The target of the navigation item\n\t */\n\t@Prop() target: string;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`p-navigation-item ${this.active && 'active'}`}>\n\t\t\t\t<a href={this.href} target={this.target}>\n\t\t\t\t\t{this.icon && <p-icon variant={this.icon} />}\n\t\t\t\t\t<span class={this.counter && 'has-counter'}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</span>\n\t\t\t\t\t{this.counter && (\n\t\t\t\t\t\t<p-counter variant=\"negative\">{this.counter}</p-counter>\n\t\t\t\t\t)}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"p-profile.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,82EAA82E;;MCO73E,OAAO;;;;;
|
|
1
|
+
{"file":"p-profile.js","mappings":";;;;;AAAA,MAAM,mBAAmB,GAAG,82EAA82E;;MCO73E,OAAO;;;;;mBAImB,MAAM;gBAKkB,OAAO;yBAOpC,KAAK;;EAEtC,mBAAmB;IAClB,IAAI,CAAC,aAAa,EAAE,CAAC;GACrB;EAED,MAAM;IACL,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC/C,4BAA4B,CAC5B,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAClD,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,aAAa,eAAe,IAAI,cAAc,IACpD,IAAI,CAAC,aAAa,IAAI,QACvB,EAAE,IAED,eAAe,IACf,kBACC,KAAK,EAAC,gBAAgB,EACtB,QAAQ,EAAC,UAAU,EACnB,SAAS,EACR,IAAI,CAAC,OAAO,KAAK,MAAM,GAAG,SAAS,GAAG,YAAY,EAEnD,cAAc,EAAE,IAAI,EACpB,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,IAEjD,OAAO,EACR,WAAK,IAAI,EAAC,OAAO,IAChB,YAAM,IAAI,EAAC,UAAU,GAAG,CACnB,CACM,KAEb,OAAO,CACP,CACK,EACN;GACF;EAEO,WAAW,CAAC,eAAe;IAClC,QACC,WAAK,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,IAClC,YAAM,IAAI,EAAC,QAAQ,GAAG,EACtB,WAAK,KAAK,EAAC,MAAM,IAChB,YAAM,IAAI,EAAC,OAAO,GAAG,EACrB,YAAM,IAAI,EAAC,UAAU,GAAG,CACnB,EAEL,eAAe,IAAI,IAAI,CAAC,QAAQ,EAAE,CAC9B,EACL;GACF;EAEO,aAAa;;IACpB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CACpC,yBAAyB,CACH,CAAC;IAExB,IAAI,CAAC,MAAM,EAAE;MACZ,OAAO;KACP;IAED,MAAM,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,MAAM,CAAC,OAAO,CAAC;IAChD,MAAM,CAAC,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC;GACxC;EAEO,QAAQ;IACf,QACC,cACC,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,GACvD,EACD;GACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/profile/profile.component.scss?tag=p-profile&encapsulation=shadow","src/components/molecules/profile/profile.component.tsx"],"sourcesContent":[":host {\n\t@apply flex;\n\n\t.content {\n\t\t@apply flex gap-3 items-center w-full;\n\n\t\t.name {\n\t\t\t@apply flex flex-col justify-center overflow-hidden;\n\n\t\t\t> *:nth-child(1) {\n\t\t\t\t@apply text-sm text-storm-dark;\n\t\t\t\t@apply font-semibold;\n\t\t\t}\n\n\t\t\t> *:nth-child(2) {\n\t\t\t\t@apply text-sm text-storm-vague;\n\t\t\t}\n\n\t\t\t::slotted(*) {\n\t\t\t\t@apply text-ellipsis overflow-hidden whitespace-nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n\n:host([size='small']) {\n\t@apply h-8;\n}\n\n:host([size='medium']) {\n\t@apply h-[3.125rem];\n}\n\n:host([size='large']) {\n\t@apply h-16;\n}\n\n:host(.has-dropdown) {\n\t@apply cursor-pointer;\n\n\t.content {\n\t\t@apply p-2 rounded;\n\t\t@apply border border-solid border-mystic-dark #{!important};\n\t}\n}\n\n:host(.has-dropdown[size='small']) {\n\t@apply h-12;\n}\n\n:host(.has-dropdown[size='medium']) {\n\t@apply h-[4.125rem];\n}\n\n:host(.has-dropdown[size='large']) {\n\t@apply h-20;\n}\n\n:host(.has-dropdown:hover),\n:host(.active) {\n\t.content {\n\t\t@apply shadow-4;\n\t}\n}\n\n:host(.active) {\n\t.content {\n\t\tp-icon {\n\t\t\t@apply text-indigo;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n\ttag: 'p-profile',\n\tstyleUrl: 'profile.component.scss',\n\tshadow: true,\n})\nexport class Profile {\n\t/**\n\t * The variant of the profile\n\t */\n\t@Prop() variant: 'company' | 'user' = 'user';\n\n\t/**\n\t * The size of the profile avatar\n\t */\n\t@Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'small';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _dropdownOpen = false;\n\n\tcomponentWillRender() {\n\t\tthis._updateAvatar();\n\t}\n\n\trender() {\n\t\tconst hasDropdownSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"dropdown\"]'\n\t\t);\n\t\tconst content = this._getContent(hasDropdownSlot);\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-profile ${hasDropdownSlot && 'has-dropdown'} ${\n\t\t\t\t\tthis._dropdownOpen && 'active'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{hasDropdownSlot ? (\n\t\t\t\t\t<p-dropdown\n\t\t\t\t\t\tclass=\"w-full min-w-0\"\n\t\t\t\t\t\tstrategy=\"absolute\"\n\t\t\t\t\t\tplacement={\n\t\t\t\t\t\t\tthis.variant === 'user' ? 'top-end' : 'bottom-end'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\t\tonIsOpen={(ev) => (this._dropdownOpen = ev.detail)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{content}\n\t\t\t\t\t\t<div slot=\"items\">\n\t\t\t\t\t\t\t<slot name=\"dropdown\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</p-dropdown>\n\t\t\t\t) : (\n\t\t\t\t\tcontent\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _getContent(hasDropdownSlot) {\n\t\treturn (\n\t\t\t<div class=\"content\" slot=\"trigger\">\n\t\t\t\t<slot name=\"avatar\" />\n\t\t\t\t<div class=\"name\">\n\t\t\t\t\t<slot name=\"title\" />\n\t\t\t\t\t<slot name=\"subtitle\" />\n\t\t\t\t</div>\n\n\t\t\t\t{hasDropdownSlot && this._getIcon()}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _updateAvatar() {\n\t\tconst avatar = this._el.querySelector(\n\t\t\t'p-avatar[slot=\"avatar\"]'\n\t\t) as HTMLPAvatarElement;\n\n\t\tif (!avatar) {\n\t\t\treturn;\n\t\t}\n\n\t\tavatar.variant = this.variant ?? avatar.variant;\n\t\tavatar.size = this.size ?? avatar?.size;\n\t}\n\n\tprivate _getIcon() {\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass=\"ml-auto\"\n\t\t\t\tvariant={this.variant === 'company' ? 'chevron' : 'more'}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"version":3}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as childOf } from './child-of.js';
|
|
3
|
+
import { d as defineCustomElement$b } from './avatar.component.js';
|
|
3
4
|
import { d as defineCustomElement$a } from './dropdown.component.js';
|
|
4
5
|
import { d as defineCustomElement$9 } from './dropdown-menu-container.component.js';
|
|
5
6
|
import { d as defineCustomElement$8 } from './dropdown-menu-item.component.js';
|
|
@@ -10,7 +11,7 @@ import { d as defineCustomElement$4 } from './input-group.component.js';
|
|
|
10
11
|
import { d as defineCustomElement$3 } from './loader.component.js';
|
|
11
12
|
import { d as defineCustomElement$2 } from './tooltip.component.js';
|
|
12
13
|
|
|
13
|
-
const selectComponentCss = ".flex{display:flex!important}.w-full{width:100%!important}*{box-sizing:border-box}p-select{display:flex;flex-direction:column;width:100%}p-select input.read-only{text-overflow:ellipsis}.static{position:static!important}.h-6{height:1.5rem!important}.
|
|
14
|
+
const selectComponentCss = ".pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-0{left:0!important}.top-0{top:0!important}.flex{display:flex!important}.h-\\[1\\.625rem\\]{height:1.625rem!important}.h-full{height:100%!important}.w-full{width:100%!important}.cursor-pointer{cursor:pointer!important}.flex-col{flex-direction:column!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.rounded{border-radius:.25rem!important}.bg-indigo-light{--tw-bg-opacity:1!important;background-color:rgb(241 246 255/var(--tw-bg-opacity))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-4{padding-bottom:1rem!important;padding-top:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-semibold{font-weight:600!important}.text-indigo{--tw-text-opacity:1!important;color:rgb(82 138 250/var(--tw-text-opacity))!important}.text-indigo-dark{--tw-text-opacity:1!important;color:rgb(44 75 169/var(--tw-text-opacity))!important}.text-storm-medium{--tw-text-opacity:1!important;color:rgb(128 130 158/var(--tw-text-opacity))!important}*{box-sizing:border-box}p-select{display:flex;flex-direction:column;position:relative;width:100%}p-select input.read-only{text-overflow:ellipsis}p-select .multi-container{align-items:center;display:flex;gap:.5rem;height:100%;left:0;overflow:hidden;padding:1rem .5rem;pointer-events:none;position:absolute;top:0;width:100%}p-select .multi-container .item{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(241 246 255/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(44 75 169/var(--tw-text-opacity));cursor:pointer;display:flex;font-size:.875rem;font-weight:600;gap:.5rem;height:1.625rem;line-height:1.25rem;padding-left:.5rem;padding-right:.5rem;pointer-events:auto;white-space:nowrap}p-select .multi-container .item p-icon{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity));font-size:.75rem;line-height:1rem}p-select .multi-container .extra{--tw-text-opacity:1;color:rgb(128 130 158/var(--tw-text-opacity));font-size:.875rem;line-height:1.25rem;pointer-events:none}.static{position:static!important}.hidden{display:none!important}.h-6{height:1.5rem!important}.gap-1{gap:.25rem!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}";
|
|
14
15
|
|
|
15
16
|
const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement {
|
|
16
17
|
constructor() {
|
|
@@ -19,7 +20,9 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
19
20
|
this.queryChange = createEvent(this, "queryChange", 3);
|
|
20
21
|
this.valueChange = createEvent(this, "valueChange", 3);
|
|
21
22
|
this.dropdownShown = createEvent(this, "dropdownShown", 3);
|
|
23
|
+
this.add = createEvent(this, "add", 3);
|
|
22
24
|
this.items = undefined;
|
|
25
|
+
this.multi = undefined;
|
|
23
26
|
this.icon = undefined;
|
|
24
27
|
this.query = undefined;
|
|
25
28
|
this.placeholder = undefined;
|
|
@@ -27,6 +30,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
27
30
|
this.value = undefined;
|
|
28
31
|
this.displayKey = 'text';
|
|
29
32
|
this.valueKey = undefined;
|
|
33
|
+
this.avatarKey = undefined;
|
|
34
|
+
this.avatarLettersKey = undefined;
|
|
30
35
|
this.identifierKey = undefined;
|
|
31
36
|
this.queryKey = undefined;
|
|
32
37
|
this.autoSelectFirst = true;
|
|
@@ -43,9 +48,12 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
43
48
|
this.required = undefined;
|
|
44
49
|
this.error = undefined;
|
|
45
50
|
this.disabled = false;
|
|
51
|
+
this.showAddItem = false;
|
|
52
|
+
this.addItemText = 'Add item';
|
|
46
53
|
this._showDropdown = false;
|
|
47
54
|
this._selectedItem = null;
|
|
48
55
|
this._isAutoCompleting = false;
|
|
56
|
+
this._amountHidden = 0;
|
|
49
57
|
}
|
|
50
58
|
get _items() {
|
|
51
59
|
var _a, _b;
|
|
@@ -78,11 +86,14 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
78
86
|
return items === null || items === void 0 ? void 0 : items.slice(0, this.maxDisplayedItems);
|
|
79
87
|
}
|
|
80
88
|
get _displayValue() {
|
|
81
|
-
var _a;
|
|
89
|
+
var _a, _b;
|
|
82
90
|
if (this._isAutoCompleting) {
|
|
83
91
|
return this.query;
|
|
84
92
|
}
|
|
85
|
-
|
|
93
|
+
if (this.multi) {
|
|
94
|
+
return (_a = this._selectedItem) === null || _a === void 0 ? void 0 : _a.map((i) => i === null || i === void 0 ? void 0 : i[this.displayKey]).filter((i) => !!i);
|
|
95
|
+
}
|
|
96
|
+
return (_b = this._selectedItem) === null || _b === void 0 ? void 0 : _b[this.displayKey];
|
|
86
97
|
}
|
|
87
98
|
get _placeholder() {
|
|
88
99
|
var _a;
|
|
@@ -98,17 +109,46 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
98
109
|
if (!this.valueKey && !this.identifierKey) {
|
|
99
110
|
throw new Error('You must provide a valueKey or identifierKey');
|
|
100
111
|
}
|
|
112
|
+
if (this.multi) {
|
|
113
|
+
this.enableAutocomplete = false;
|
|
114
|
+
this._setMultiContainerMaxWidth();
|
|
115
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
116
|
+
if (this._resizeDebounceTimer) {
|
|
117
|
+
clearTimeout(this._resizeDebounceTimer);
|
|
118
|
+
this._resizeDebounceTimer = null;
|
|
119
|
+
}
|
|
120
|
+
this._resizeDebounceTimer = setTimeout(() => {
|
|
121
|
+
this._setMultiContainerMaxWidth();
|
|
122
|
+
this._checkSelectedItems();
|
|
123
|
+
}, 200);
|
|
124
|
+
});
|
|
125
|
+
this._resizeObserver.observe(this._el);
|
|
126
|
+
}
|
|
101
127
|
if (this.value) {
|
|
102
128
|
this._valueChange();
|
|
103
129
|
return;
|
|
104
130
|
}
|
|
105
131
|
this.itemChanges();
|
|
106
132
|
}
|
|
133
|
+
componentDidRender() {
|
|
134
|
+
if (this.multi) {
|
|
135
|
+
this._setMultiContainerMaxWidth();
|
|
136
|
+
this._checkSelectedItems();
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
disconnectedCallback() {
|
|
140
|
+
if (this.multi) {
|
|
141
|
+
this._resizeObserver.disconnect();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
107
144
|
render() {
|
|
145
|
+
var _a, _b;
|
|
108
146
|
return (h(Host, { class: "p-select" }, this._showDropdown && (!!this._items.length || this.loading), this._isAutoCompleting, h("p-dropdown", { disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: true, show: this._showDropdown &&
|
|
109
|
-
(!!this._items.length || this.loading) }, h("p-input-group", { slot: "trigger", icon: this.icon, size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown, focusMethod: this.enableAutocomplete ? 'focus' : 'click' }, h("input", { slot: "input", type: "text", placeholder: this._placeholder, value: this.
|
|
147
|
+
(!!this._items.length || this.loading) }, h("p-input-group", { slot: "trigger", icon: this.icon, size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, disabled: this.disabled, focused: this._showDropdown, focusMethod: this.enableAutocomplete ? 'focus' : 'click' }, h("input", { slot: "input", type: "text", placeholder: this._placeholder, value: this.multi && ((_a = this._displayValue) === null || _a === void 0 ? void 0 : _a.length)
|
|
148
|
+
? ' '
|
|
149
|
+
: this._displayValue, class: `p-input cursor-pointer ${!this._isAutoCompleting && 'read-only'}`, onFocus: (ev) => this._onFocus(ev), onMouseDown: (ev) => this._onMouseDown(ev), onClick: () => this._onClick(), onInput: (ev) => this._onChange(ev), ref: (ref) => (this._inputRef = ref) }), this.showChevron && (h("p-icon", { variant: "chevron", slot: "suffix" }))), h("div", { slot: "items" }, this.loading
|
|
110
150
|
? this._getLoadingItems()
|
|
111
|
-
: this._getItems()))));
|
|
151
|
+
: this._getItems(), this.showAddItem && this._getAddItem())), this.multi && ((_b = this._selectedItem) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h("div", { class: "multi-container", ref: (ref) => (this._multiContainerRef = ref) }, this._selectedItem.map((item) => (h("div", { class: "item", onClick: () => this._selectValue(item) }, item[this.displayKey], h("p-icon", { variant: "negative" })))), h("div", { class: "extra hidden" }, "+", this._amountHidden)))));
|
|
112
152
|
}
|
|
113
153
|
documentClickHandler({ target }) {
|
|
114
154
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -134,14 +174,28 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
134
174
|
if (this._isAutoCompleting && ((_a = this.query) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
135
175
|
return;
|
|
136
176
|
}
|
|
137
|
-
let value = this.value
|
|
177
|
+
let value = typeof this.value === 'string' && this.multi
|
|
178
|
+
? JSON.parse(this.value)
|
|
179
|
+
: this.value;
|
|
180
|
+
if (this.multi) {
|
|
181
|
+
if (!Array.isArray(value)) {
|
|
182
|
+
this.value = [];
|
|
183
|
+
this.valueChange.emit(this.value);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
this.value = value;
|
|
187
|
+
if (!value.length) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
this._selectedItem =
|
|
191
|
+
!!this.valueKey && this.valueKey !== 'false'
|
|
192
|
+
? this._items.filter((i) => value.includes(i === null || i === void 0 ? void 0 : i[this.valueKey]))
|
|
193
|
+
: [...value];
|
|
194
|
+
return;
|
|
195
|
+
}
|
|
138
196
|
if (!this._selectedItem && !value && this.autoSelectFirst) {
|
|
139
197
|
value = this._items[0];
|
|
140
198
|
}
|
|
141
|
-
// if (!value) {
|
|
142
|
-
// this._selectValue(null);
|
|
143
|
-
// return;
|
|
144
|
-
// }
|
|
145
199
|
const identifier = typeof value === 'object' && value !== null
|
|
146
200
|
? value[this._identifierKey]
|
|
147
201
|
: value;
|
|
@@ -172,14 +226,40 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
172
226
|
this._selectValue(!!item ? item : value);
|
|
173
227
|
}
|
|
174
228
|
_selectValue(item) {
|
|
175
|
-
this.
|
|
176
|
-
const value = !!this.valueKey && this.valueKey !== 'false' && item !== null
|
|
229
|
+
let value = !!this.valueKey && this.valueKey !== 'false' && item !== null
|
|
177
230
|
? item === null || item === void 0 ? void 0 : item[this.valueKey]
|
|
178
231
|
: item;
|
|
179
232
|
this.query = this.keepQuery ? item === null || item === void 0 ? void 0 : item[this.displayKey] : null;
|
|
180
|
-
this.
|
|
181
|
-
|
|
182
|
-
|
|
233
|
+
if (this.multi) {
|
|
234
|
+
if (!this._selectedItem || !Array.isArray(this._selectedItem)) {
|
|
235
|
+
this._selectedItem = [];
|
|
236
|
+
}
|
|
237
|
+
if (!this.value || !Array.isArray(this.value)) {
|
|
238
|
+
this.value = [];
|
|
239
|
+
}
|
|
240
|
+
const selectedItem = [...this._selectedItem];
|
|
241
|
+
const valueArray = [...this.value];
|
|
242
|
+
const includesIndex = selectedItem.findIndex((i) => i[this._identifierKey] === item[this._identifierKey]);
|
|
243
|
+
if (includesIndex === -1) {
|
|
244
|
+
selectedItem.push(item);
|
|
245
|
+
valueArray.push(value);
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
selectedItem.splice(includesIndex, 1);
|
|
249
|
+
valueArray.splice(includesIndex, 1);
|
|
250
|
+
}
|
|
251
|
+
this._selectedItem = selectedItem;
|
|
252
|
+
this.value = valueArray;
|
|
253
|
+
this.valueChange.emit(valueArray);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
this._selectedItem = item;
|
|
257
|
+
this.value = value;
|
|
258
|
+
this.valueChange.emit(value);
|
|
259
|
+
}
|
|
260
|
+
if (!this.multi) {
|
|
261
|
+
this._onBlur(true);
|
|
262
|
+
}
|
|
183
263
|
}
|
|
184
264
|
_onFocus(ev) {
|
|
185
265
|
if (!this.enableAutocomplete) {
|
|
@@ -229,14 +309,53 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
229
309
|
}
|
|
230
310
|
_getItems() {
|
|
231
311
|
return this._items.map((item) => {
|
|
232
|
-
var _a;
|
|
233
|
-
return (h("p-dropdown-menu-item", { onClick: () => this._selectValue(item), active:
|
|
234
|
-
((_a = this._selectedItem) === null || _a === void 0 ? void 0 : _a
|
|
312
|
+
var _a, _b;
|
|
313
|
+
return (h("p-dropdown-menu-item", { onClick: () => this._selectValue(item), active: this.multi
|
|
314
|
+
? ((_a = this._selectedItem) === null || _a === void 0 ? void 0 : _a.findIndex((i) => i[this._identifierKey] ===
|
|
315
|
+
item[this._identifierKey])) >= 0
|
|
316
|
+
: item[this._identifierKey] ===
|
|
317
|
+
((_b = this._selectedItem) === null || _b === void 0 ? void 0 : _b[this._identifierKey]), variant: this.multi ? 'checkbox' : 'default' }, this.avatarKey ? (h("span", { class: "flex items-center gap-2" }, h("p-avatar", { size: "xsmall", src: item[this.avatarKey], letters: item[this.avatarLettersKey] }), item[this.displayKey])) : (item[this.displayKey])));
|
|
235
318
|
});
|
|
236
319
|
}
|
|
320
|
+
_getAddItem() {
|
|
321
|
+
return (h("p-dropdown-menu-item", { onClick: () => this.add.emit() }, h("span", { class: "text-indigo font-semibold flex gap-1 items-center" }, this.addItemText, h("p-icon", { variant: "plus" }))));
|
|
322
|
+
}
|
|
237
323
|
_getLoadingItems() {
|
|
238
324
|
return [0, 0, 0].map(() => (h("p-dropdown-menu-item", { enableHover: false }, h("p-loader", { variant: "ghost", class: "h-6 w-full rounded" }))));
|
|
239
325
|
}
|
|
326
|
+
_setMultiContainerMaxWidth() {
|
|
327
|
+
if (!this._inputRef || !this._multiContainerRef) {
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
this._multiContainerRef.style.maxWidth = `${this._inputRef.clientWidth - 16}px`;
|
|
331
|
+
}
|
|
332
|
+
_checkSelectedItems() {
|
|
333
|
+
if (!this._multiContainerRef) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
const containerRect = this._multiContainerRef.getBoundingClientRect();
|
|
337
|
+
const items = Array.from(this._multiContainerRef.querySelectorAll('.item'));
|
|
338
|
+
let amountHidden = 0;
|
|
339
|
+
for (const child of items) {
|
|
340
|
+
child.classList.remove('hidden');
|
|
341
|
+
const childRect = child.getBoundingClientRect();
|
|
342
|
+
if (childRect.right > containerRect.right) {
|
|
343
|
+
child.classList.add('hidden');
|
|
344
|
+
amountHidden++;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
this._amountHidden = amountHidden;
|
|
348
|
+
const extra = this._multiContainerRef.querySelector('.extra');
|
|
349
|
+
if (!extra) {
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
352
|
+
if (!extra.classList.contains('hidden')) {
|
|
353
|
+
extra.classList.add('hidden');
|
|
354
|
+
}
|
|
355
|
+
if (amountHidden > 0) {
|
|
356
|
+
extra.classList.remove('hidden');
|
|
357
|
+
}
|
|
358
|
+
}
|
|
240
359
|
get _el() { return this; }
|
|
241
360
|
static get watchers() { return {
|
|
242
361
|
"value": ["_valueChange"],
|
|
@@ -246,6 +365,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
246
365
|
static get style() { return selectComponentCss; }
|
|
247
366
|
}, [0, "p-select", {
|
|
248
367
|
"items": [1],
|
|
368
|
+
"multi": [516],
|
|
249
369
|
"icon": [1],
|
|
250
370
|
"query": [1],
|
|
251
371
|
"placeholder": [1],
|
|
@@ -253,6 +373,8 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
253
373
|
"value": [8],
|
|
254
374
|
"displayKey": [1, "display-key"],
|
|
255
375
|
"valueKey": [1, "value-key"],
|
|
376
|
+
"avatarKey": [1, "avatar-key"],
|
|
377
|
+
"avatarLettersKey": [1, "avatar-letters-key"],
|
|
256
378
|
"identifierKey": [1, "identifier-key"],
|
|
257
379
|
"queryKey": [1, "query-key"],
|
|
258
380
|
"autoSelectFirst": [4, "auto-select-first"],
|
|
@@ -269,9 +391,12 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
269
391
|
"required": [516],
|
|
270
392
|
"error": [513],
|
|
271
393
|
"disabled": [516],
|
|
394
|
+
"showAddItem": [4, "show-add-item"],
|
|
395
|
+
"addItemText": [1, "add-item-text"],
|
|
272
396
|
"_showDropdown": [32],
|
|
273
397
|
"_selectedItem": [32],
|
|
274
|
-
"_isAutoCompleting": [32]
|
|
398
|
+
"_isAutoCompleting": [32],
|
|
399
|
+
"_amountHidden": [32]
|
|
275
400
|
}, [[6, "click", "documentClickHandler"]], {
|
|
276
401
|
"value": ["_valueChange"],
|
|
277
402
|
"items": ["itemChanges"],
|
|
@@ -281,13 +406,18 @@ function defineCustomElement$1() {
|
|
|
281
406
|
if (typeof customElements === "undefined") {
|
|
282
407
|
return;
|
|
283
408
|
}
|
|
284
|
-
const components = ["p-select", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-helper", "p-icon", "p-input-error", "p-input-group", "p-loader", "p-tooltip"];
|
|
409
|
+
const components = ["p-select", "p-avatar", "p-dropdown", "p-dropdown-menu-container", "p-dropdown-menu-item", "p-helper", "p-icon", "p-input-error", "p-input-group", "p-loader", "p-tooltip"];
|
|
285
410
|
components.forEach(tagName => { switch (tagName) {
|
|
286
411
|
case "p-select":
|
|
287
412
|
if (!customElements.get(tagName)) {
|
|
288
413
|
customElements.define(tagName, Select);
|
|
289
414
|
}
|
|
290
415
|
break;
|
|
416
|
+
case "p-avatar":
|
|
417
|
+
if (!customElements.get(tagName)) {
|
|
418
|
+
defineCustomElement$b();
|
|
419
|
+
}
|
|
420
|
+
break;
|
|
291
421
|
case "p-dropdown":
|
|
292
422
|
if (!customElements.get(tagName)) {
|
|
293
423
|
defineCustomElement$a();
|