@paperless/core 2.0.1-beta.114 → 2.0.1-beta.116
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 +22 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-7046dc66.entry.js → p-05db72d0.entry.js} +2 -2
- package/dist/build/{p-5c3167c8.entry.js → p-26a3990a.entry.js} +2 -2
- package/dist/build/{p-76a4f70e.entry.js → p-2edd87f3.entry.js} +2 -2
- package/dist/{paperless/p-cc379751.entry.js → build/p-43d3357f.entry.js} +2 -2
- package/dist/build/p-474a16ab.entry.js +2 -0
- package/dist/{paperless/p-66adc33a.entry.js → build/p-53009290.entry.js} +2 -2
- package/dist/build/{p-0da54170.entry.js → p-55a41995.entry.js} +2 -2
- package/dist/{paperless/p-91ea22cd.entry.js → build/p-87981fef.entry.js} +2 -2
- package/dist/{paperless/p-cac630d2.entry.js → build/p-8981247d.entry.js} +2 -2
- package/dist/{paperless/p-730bcacd.entry.js → build/p-8a5dcfac.entry.js} +2 -2
- package/dist/build/p-8ca737d7.entry.js +2 -0
- package/dist/{paperless/p-e9db1b2d.entry.js.map → build/p-8ca737d7.entry.js.map} +1 -1
- package/dist/build/p-8f7a37d9.entry.js +2 -0
- package/dist/build/p-8f7a37d9.entry.js.map +1 -0
- package/dist/build/{p-bfda8061.entry.js → p-965962ce.entry.js} +2 -2
- package/dist/build/p-B3sNjfzc.js +2 -0
- package/dist/build/p-B3sNjfzc.js.map +1 -0
- package/dist/build/p-DdQ-S2l7.js +2 -0
- package/dist/build/p-DdQ-S2l7.js.map +1 -0
- package/dist/build/p-a02a5085.js +2 -0
- package/dist/build/{p-79b42a23.entry.js → p-adb1ad27.entry.js} +2 -2
- package/dist/build/{p-912ce588.entry.js → p-aec29ee9.entry.js} +2 -2
- package/dist/build/p-attachment.entry.esm.js.map +1 -1
- package/dist/build/{p-0c257fa2.entry.js → p-cc3307b8.entry.js} +2 -2
- package/dist/build/{p-29d452d0.entry.js → p-cfd2e444.entry.js} +2 -2
- package/dist/build/{p-7658fd89.entry.js → p-e2054751.entry.js} +2 -2
- package/dist/build/p-table.entry.esm.js.map +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/constants-DDb_wCc1.js +16 -0
- package/dist/cjs/constants-DDb_wCc1.js.map +1 -0
- package/dist/cjs/index.cjs.js +11 -10
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +88 -10
- package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
- package/dist/cjs/p-attachment.entry.cjs.js.map +1 -1
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_4.cjs.entry.js +4 -4
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/p-empty-state_9.cjs.entry.js +8 -8
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-listing.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +4 -4
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +4 -3
- package/dist/cjs/p-table.cjs.entry.js.map +1 -1
- package/dist/cjs/p-table.entry.cjs.js.map +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/cjs/{screens-D_ByWDz6.js → screens-h1MTJhCu.js} +2 -13
- package/dist/cjs/screens-h1MTJhCu.js.map +1 -0
- package/dist/collection/components/molecules/attachment/attachment.component.css +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +175 -14
- package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -1
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +4 -4
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/components/organisms/stepper/stepper.component.js +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-LsrP-Unv.js → p-B3sNjfzc.js} +3 -13
- package/dist/components/p-B3sNjfzc.js.map +1 -0
- package/dist/components/{p-Cr5nmZn3.js → p-BFXs5OQx.js} +3 -3
- package/dist/components/{p-Cr5nmZn3.js.map → p-BFXs5OQx.js.map} +1 -1
- package/dist/components/{p-BSAVV_6x.js → p-Bb8uyInh.js} +5 -5
- package/dist/components/{p-BSAVV_6x.js.map → p-Bb8uyInh.js.map} +1 -1
- package/dist/components/{p-BPXS3EM8.js → p-BtG4QBr6.js} +3 -3
- package/dist/components/{p-BPXS3EM8.js.map → p-BtG4QBr6.js.map} +1 -1
- package/dist/components/{p-CgHBpaJ2.js → p-Bw6TWc-_.js} +8 -8
- package/dist/components/{p-CgHBpaJ2.js.map → p-Bw6TWc-_.js.map} +1 -1
- package/dist/components/{p-Cp8IEnaB.js → p-C5yz-mQE.js} +3 -3
- package/dist/components/{p-Cp8IEnaB.js.map → p-C5yz-mQE.js.map} +1 -1
- package/dist/components/{p-DwUkFgs3.js → p-CBxUj1bt.js} +3 -3
- package/dist/components/{p-DwUkFgs3.js.map → p-CBxUj1bt.js.map} +1 -1
- package/dist/components/{p-Hj0dtQOu.js → p-Cw7TZ18X.js} +4 -4
- package/dist/components/{p-Hj0dtQOu.js.map → p-Cw7TZ18X.js.map} +1 -1
- package/dist/components/{p-HLwIOGJt.js → p-DaFVCsxX.js} +3 -3
- package/dist/components/{p-HLwIOGJt.js.map → p-DaFVCsxX.js.map} +1 -1
- package/dist/components/p-DdQ-S2l7.js +14 -0
- package/dist/components/p-DdQ-S2l7.js.map +1 -0
- package/dist/components/{p-b3Miuuib.js → p-Dn38WwJ_.js} +8 -8
- package/dist/components/{p-b3Miuuib.js.map → p-Dn38WwJ_.js.map} +1 -1
- package/dist/components/{p-BnyZAlkn.js → p-ExfyVPT0.js} +5 -5
- package/dist/components/{p-BnyZAlkn.js.map → p-ExfyVPT0.js.map} +1 -1
- package/dist/components/{p-BP1aeBcW.js → p-YYQ927T-.js} +6 -6
- package/dist/components/{p-BP1aeBcW.js.map → p-YYQ927T-.js.map} +1 -1
- package/dist/components/p-attachment.js +93 -11
- package/dist/components/p-attachment.js.map +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-content-slider.js +2 -2
- package/dist/components/p-datepicker.js +5 -5
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-select.js +3 -3
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +12 -11
- package/dist/components/p-table.js.map +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/constants-DdQ-S2l7.js +14 -0
- package/dist/esm/constants-DdQ-S2l7.js.map +1 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-attachment.entry.js +89 -11
- package/dist/esm/p-attachment.entry.js.map +1 -1
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_4.entry.js +4 -4
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-datepicker.entry.js +2 -2
- package/dist/esm/p-empty-state_9.entry.js +8 -8
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-listing.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +4 -4
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-table.entry.js +2 -1
- package/dist/esm/p-table.entry.js.map +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/esm/{screens-LsrP-Unv.js → screens-B3sNjfzc.js} +3 -13
- package/dist/esm/screens-B3sNjfzc.js.map +1 -0
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-7046dc66.entry.js → p-05db72d0.entry.js} +2 -2
- package/dist/paperless/{p-5c3167c8.entry.js → p-26a3990a.entry.js} +2 -2
- package/dist/paperless/{p-76a4f70e.entry.js → p-2edd87f3.entry.js} +2 -2
- package/dist/{build/p-cc379751.entry.js → paperless/p-43d3357f.entry.js} +2 -2
- package/dist/paperless/p-474a16ab.entry.js +2 -0
- package/dist/{build/p-66adc33a.entry.js → paperless/p-53009290.entry.js} +2 -2
- package/dist/paperless/{p-0da54170.entry.js → p-55a41995.entry.js} +2 -2
- package/dist/{build/p-91ea22cd.entry.js → paperless/p-87981fef.entry.js} +2 -2
- package/dist/{build/p-cac630d2.entry.js → paperless/p-8981247d.entry.js} +2 -2
- package/dist/{build/p-730bcacd.entry.js → paperless/p-8a5dcfac.entry.js} +2 -2
- package/dist/paperless/p-8ca737d7.entry.js +2 -0
- package/dist/{build/p-e9db1b2d.entry.js.map → paperless/p-8ca737d7.entry.js.map} +1 -1
- package/dist/paperless/p-8f7a37d9.entry.js +2 -0
- package/dist/paperless/p-8f7a37d9.entry.js.map +1 -0
- package/dist/paperless/{p-bfda8061.entry.js → p-965962ce.entry.js} +2 -2
- package/dist/paperless/p-B3sNjfzc.js +2 -0
- package/dist/paperless/p-B3sNjfzc.js.map +1 -0
- package/dist/paperless/p-DdQ-S2l7.js +2 -0
- package/dist/paperless/p-DdQ-S2l7.js.map +1 -0
- package/dist/paperless/{p-79b42a23.entry.js → p-adb1ad27.entry.js} +2 -2
- package/dist/paperless/{p-912ce588.entry.js → p-aec29ee9.entry.js} +2 -2
- package/dist/paperless/p-attachment.entry.esm.js.map +1 -1
- package/dist/paperless/{p-0c257fa2.entry.js → p-cc3307b8.entry.js} +2 -2
- package/dist/paperless/{p-29d452d0.entry.js → p-cfd2e444.entry.js} +2 -2
- package/dist/paperless/{p-7658fd89.entry.js → p-e2054751.entry.js} +2 -2
- package/dist/paperless/p-table.entry.esm.js.map +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/dist/types/components/molecules/attachment/attachment.component.d.ts +27 -1
- package/dist/types/components.d.ts +42 -2
- package/package.json +1 -1
- package/dist/build/p-0cf505a8.entry.js +0 -2
- package/dist/build/p-8577755d.entry.js +0 -2
- package/dist/build/p-8577755d.entry.js.map +0 -1
- package/dist/build/p-LsrP-Unv.js +0 -2
- package/dist/build/p-LsrP-Unv.js.map +0 -1
- package/dist/build/p-ab23f388.js +0 -2
- package/dist/build/p-e9db1b2d.entry.js +0 -2
- package/dist/cjs/screens-D_ByWDz6.js.map +0 -1
- package/dist/components/p-LsrP-Unv.js.map +0 -1
- package/dist/esm/screens-LsrP-Unv.js.map +0 -1
- package/dist/paperless/p-0cf505a8.entry.js +0 -2
- package/dist/paperless/p-8577755d.entry.js +0 -2
- package/dist/paperless/p-8577755d.entry.js.map +0 -1
- package/dist/paperless/p-LsrP-Unv.js +0 -2
- package/dist/paperless/p-LsrP-Unv.js.map +0 -1
- package/dist/paperless/p-e9db1b2d.entry.js +0 -2
- /package/dist/build/{p-7046dc66.entry.js.map → p-05db72d0.entry.js.map} +0 -0
- /package/dist/build/{p-5c3167c8.entry.js.map → p-26a3990a.entry.js.map} +0 -0
- /package/dist/build/{p-76a4f70e.entry.js.map → p-2edd87f3.entry.js.map} +0 -0
- /package/dist/build/{p-cc379751.entry.js.map → p-43d3357f.entry.js.map} +0 -0
- /package/dist/build/{p-0cf505a8.entry.js.map → p-474a16ab.entry.js.map} +0 -0
- /package/dist/build/{p-66adc33a.entry.js.map → p-53009290.entry.js.map} +0 -0
- /package/dist/build/{p-0da54170.entry.js.map → p-55a41995.entry.js.map} +0 -0
- /package/dist/build/{p-91ea22cd.entry.js.map → p-87981fef.entry.js.map} +0 -0
- /package/dist/build/{p-cac630d2.entry.js.map → p-8981247d.entry.js.map} +0 -0
- /package/dist/build/{p-730bcacd.entry.js.map → p-8a5dcfac.entry.js.map} +0 -0
- /package/dist/build/{p-bfda8061.entry.js.map → p-965962ce.entry.js.map} +0 -0
- /package/dist/build/{p-79b42a23.entry.js.map → p-adb1ad27.entry.js.map} +0 -0
- /package/dist/build/{p-912ce588.entry.js.map → p-aec29ee9.entry.js.map} +0 -0
- /package/dist/build/{p-0c257fa2.entry.js.map → p-cc3307b8.entry.js.map} +0 -0
- /package/dist/build/{p-29d452d0.entry.js.map → p-cfd2e444.entry.js.map} +0 -0
- /package/dist/build/{p-7658fd89.entry.js.map → p-e2054751.entry.js.map} +0 -0
- /package/dist/paperless/{p-7046dc66.entry.js.map → p-05db72d0.entry.js.map} +0 -0
- /package/dist/paperless/{p-5c3167c8.entry.js.map → p-26a3990a.entry.js.map} +0 -0
- /package/dist/paperless/{p-76a4f70e.entry.js.map → p-2edd87f3.entry.js.map} +0 -0
- /package/dist/paperless/{p-cc379751.entry.js.map → p-43d3357f.entry.js.map} +0 -0
- /package/dist/paperless/{p-0cf505a8.entry.js.map → p-474a16ab.entry.js.map} +0 -0
- /package/dist/paperless/{p-66adc33a.entry.js.map → p-53009290.entry.js.map} +0 -0
- /package/dist/paperless/{p-0da54170.entry.js.map → p-55a41995.entry.js.map} +0 -0
- /package/dist/paperless/{p-91ea22cd.entry.js.map → p-87981fef.entry.js.map} +0 -0
- /package/dist/paperless/{p-cac630d2.entry.js.map → p-8981247d.entry.js.map} +0 -0
- /package/dist/paperless/{p-730bcacd.entry.js.map → p-8a5dcfac.entry.js.map} +0 -0
- /package/dist/paperless/{p-bfda8061.entry.js.map → p-965962ce.entry.js.map} +0 -0
- /package/dist/paperless/{p-79b42a23.entry.js.map → p-adb1ad27.entry.js.map} +0 -0
- /package/dist/paperless/{p-912ce588.entry.js.map → p-aec29ee9.entry.js.map} +0 -0
- /package/dist/paperless/{p-0c257fa2.entry.js.map → p-cc3307b8.entry.js.map} +0 -0
- /package/dist/paperless/{p-29d452d0.entry.js.map → p-cfd2e444.entry.js.map} +0 -0
- /package/dist/paperless/{p-7658fd89.entry.js.map → p-e2054751.entry.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"p-attachment.entry.cjs.js","sources":["src/components/molecules/attachment/attachment.component.css?tag=p-attachment&encapsulation=shadow","src/components/molecules/attachment/attachment.component.tsx"],"sourcesContent":[":host {\n\t@apply block w-full;\n}\n","import { Component, Event, EventEmitter, h, Prop } from '@stencil/core';\nimport { cn } from '../../../utils';\nimport { cva } from 'class-variance-authority';\n\nconst attachment = cva([\n\t\t'flex flex-1 items-center justify-start gap-2',\n\t\t'h-8 min-w-0 px-2 rounded-lg',\n\t\t'border border-solid bg-white-600'\n\t], {\n\t\tvariants: {\n\t\t\terror: {\n\t\t\t\tfalse: 'bg-white-600 border-black-teal-100 text-black-teal-200',\n\t\t\t\ttrue: 'border-negative-red',\n\t\t\t}\n\t\t}\n\t})\n\n@Component({\n\ttag: 'p-attachment',\n\tstyleUrl: 'attachment.component.css',\n\tshadow: true,\n})\nexport class Attachment {\n\t/**\n\t * The value of the attachment (usually the file name)\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the attachment\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * The helper of the attachment\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the attachment is required\n\t */\n\t@Prop({ reflect: true }) required = true;\n\n\n\t/**\n\t * The variant of the attachment\n\t */\n\t@Prop() mode: 'read' | 'write' = 'read';\n\n\t/**\n\t * The placeholder of the attachment\n\t */\n\t@Prop() placeholder: string = 'Upload a file...';\n\n\t/**\n\t * The text for the download tooltip\n\t */\n\t@Prop() downloadTooltip: string = 'Download';\n\n\t/**\n\t * The text for the upload tooltip\n\t */\n\t@Prop() uploadTooltip: string = 'Upload';\n\n\t/**\n\t * The text for the delete tooltip\n\t */\n\t@Prop() deleteTooltip: string = 'Delete';\n\n\t/**\n\t * Wether the attachment is loading\n\t */\n\t@Prop() loading = false;\n\n\t/**\n\t * The error to show\n\t */\n\t@Prop() error: string;\n\n\t/**\n\t * Event when upload is pressed\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tupload: EventEmitter<void>;\n\n\t/**\n\t * Event when download is pressed\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tdownload: EventEmitter<void>;\n\n\t/**\n\t * Event when delete is pressed\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tdelete: EventEmitter<void>;\n\n\trender() {\n\t\tlet prefix = <p-icon class=\"text-black-teal-300\" variant='attachment' />;\n\n\t\tif (this.loading) {\n\t\t\tprefix = <p-loader />;\n\t\t}\n\n\t\tif (this.error) {\n\t\t\tprefix = (\n\t\t\t\t<p-icon\n\t\t\t\t\tvariant='warning'\n\t\t\t\t\tclass='text-negative-red'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\tconst baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm'\n\t\treturn (\n\t\t\t<p-field-container variant=\"write\" label={this.label} helper={this.helper} error={this.error} required={this.required} forceShowTooltip={!!this.error?.length}>\n\t\t\t\t<div slot=\"content\" class='flex items-start gap-2 w-full'>\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={attachment({\n\t\t\t\t\t\t\terror: !!this.error?.length\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t{prefix}\n\n\t\t\t\t\t\t<span class={cn(baseText, 'peer empty:hidden')}>\n\t\t\t\t\t\t\t{this.value}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span class={cn(baseText, 'hidden peer-empty:block')}>\n\t\t\t\t\t\t\t{this.placeholder}\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<p-tooltip content={this.mode === 'read' ? this.downloadTooltip : this.value?.length ? this.deleteTooltip : this.uploadTooltip}>\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\ticon={this.mode === 'read' ? 'download' : this.value?.length ? 'trash' : 'upload'}\n\t\t\t\t\t\t\tdisabled={this.loading}\n\t\t\t\t\t\t\tloading={this.loading}\n\t\t\t\t\t\t\tonOnClick={() =>\n\t\t\t\t\t\t\t\t(this.mode === 'read' ? this.download : this.value?.length ? this.delete : this.upload).emit()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</p-tooltip>\n\t\t\t\t</div>\n\t\t\t</p-field-container>\n\t\t);\n\t}\n}\n"],"names":["cva","h","cn"],"mappings":";;;;;;;AAAA,MAAM,sBAAsB,GAAG,+lDAA+lD;;ACI9nD,MAAM,UAAU,GAAGA,WAAG,CAAC;IACrB,8CAA8C;IAC9C,6BAA6B;IAC7B;CACA,EAAE;AACF,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,wDAAwD;AAC/D,YAAA,IAAI,EAAE,qBAAqB;AAC3B;AACD;AACD,CAAA,CAAC;MAOU,UAAU,GAAA,MAAA;;;;;;;AACtB;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;IACsB,QAAQ,GAAG,IAAI;AAGxC;;AAEG;IACK,IAAI,GAAqB,MAAM;AAEvC;;AAEG;IACK,WAAW,GAAW,kBAAkB;AAEhD;;AAEG;IACK,eAAe,GAAW,UAAU;AAE5C;;AAEG;IACK,aAAa,GAAW,QAAQ;AAExC;;AAEG;IACK,aAAa,GAAW,QAAQ;AAExC;;AAEG;IACK,OAAO,GA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,KAAK,EAAEC,KAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC,EAC5C,EAAA,IAAI,CAAC,KAAK,CACL,EACPD,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,KAAK,EAAEC,KAAE,CAAC,QAAQ,EAAE,yBAAyB,CAAC,EAClD,EAAA,IAAI,CAAC,WAAW,CACX,CACF,EAEND,OAAA,CAAA,WAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAW,OAAO,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM,GAAG,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,EAAA,EAC7HA,OACC,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,SAAS,EACd,OAAO,EAAC,WAAW,EACnB,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,MAAM,GAAG,UAAU,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,EACjF,QAAQ,EAAE,IAAI,CAAC,OAAO,EACtB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,SAAS,EAAE,MACV,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,GAAG,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,GAE9F,CACS,CACP,CACa;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"p-attachment.entry.cjs.js","sources":["src/components/molecules/attachment/attachment.component.css?tag=p-attachment&encapsulation=shadow","src/components/molecules/attachment/attachment.component.tsx"],"sourcesContent":[":host {\n\t@apply block w-full;\n}\n","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tFragment,\n\th,\n\tProp,\n} from '@stencil/core';\nimport { cn, isMobile, isTablet } from '../../../utils';\nimport { cva } from 'class-variance-authority';\n\nconst attachment = cva(\n\t[\n\t\t'flex flex-1 items-center justify-start gap-2',\n\t\t'h-8 min-w-0 px-2 rounded-lg',\n\t\t'border border-solid bg-white-600',\n\t],\n\t{\n\t\tvariants: {\n\t\t\terror: {\n\t\t\t\tfalse: 'bg-white-600 border-black-teal-100 text-black-teal-200',\n\t\t\t\ttrue: 'border-negative-red',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-attachment',\n\tstyleUrl: 'attachment.component.css',\n\tshadow: true,\n})\nexport class Attachment {\n\t/**\n\t * Wether to enable the camera button on mobile\n\t */\n\t@Prop() enableCameraOnMobile = false;\n\n\t/**\n\t * The value of the attachment (usually the file name)\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The fileID to use to track the file\n\t */\n\t@Prop() fileId: string;\n\n\t/**\n\t * The type of files to accept\n\t */\n\t@Prop() accept: string[] | string = null;\n\n\t/**\n\t * The label of the attachment\n\t */\n\t@Prop() label: string | HTMLSlotElement;\n\n\t/**\n\t * The helper of the attachment\n\t */\n\t@Prop() helper: string | HTMLSlotElement;\n\n\t/**\n\t * Wether the attachment is required\n\t */\n\t@Prop({ reflect: true }) required = true;\n\n\t/**\n\t * The variant of the attachment\n\t */\n\t@Prop() mode: 'read' | 'write' = 'read';\n\n\t/**\n\t * The placeholder of the attachment\n\t */\n\t@Prop() placeholder: string = 'Upload a file...';\n\n\t/**\n\t * The text for the camera tooltip\n\t */\n\t@Prop() cameraTooltip: string = 'Camera';\n\n\t/**\n\t * The text for the download tooltip\n\t */\n\t@Prop() downloadTooltip: string = 'Download';\n\n\t/**\n\t * The text for the upload tooltip\n\t */\n\t@Prop() uploadTooltip: string = 'Upload';\n\n\t/**\n\t * The text for the delete tooltip\n\t */\n\t@Prop() deleteTooltip: string = 'Delete';\n\n\t/**\n\t * Wether the attachment is loading\n\t */\n\t@Prop() loading = false;\n\n\t/**\n\t * The error to show\n\t */\n\t@Prop() error: string;\n\n\t/**\n\t * Event when upload is pressed\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tupload: EventEmitter<{\n\t\tfile: File;\n\t\tfileId: string;\n\t\tresult: string;\n\t}>;\n\n\t/**\n\t * Event when download is pressed\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tdownload: EventEmitter<void>;\n\n\t/**\n\t * Event when delete is pressed\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tdelete: EventEmitter<void>;\n\n\tprivate _fileRef: HTMLInputElement;\n\tprivate _cameraFileRef: HTMLInputElement;\n\n\trender() {\n\t\tlet prefix = (\n\t\t\t<p-icon\n\t\t\t\tclass='text-black-teal-300'\n\t\t\t\tvariant='attachment'\n\t\t\t/>\n\t\t);\n\n\t\tif (this.loading) {\n\t\t\tprefix = <p-loader color='white' />;\n\t\t}\n\n\t\tif (this.error) {\n\t\t\tprefix = (\n\t\t\t\t<p-icon\n\t\t\t\t\tvariant='warning'\n\t\t\t\t\tclass='text-negative-red'\n\t\t\t\t/>\n\t\t\t);\n\t\t}\n\n\t\t// const isMobileDevice = isMobile();\n\t\tconst isMobileDevice = isTablet();\n\n\t\tconst baseText =\n\t\t\t'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';\n\t\treturn (\n\t\t\t<Fragment>\n\t\t\t\t<p-field-container\n\t\t\t\t\tvariant='write'\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t\tforceShowTooltip={!!this.error?.length}\n\t\t\t\t>\n\t\t\t\t\t<div\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t\tclass='flex w-full items-start gap-2'\n\t\t\t\t\t>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={attachment({\n\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{prefix}\n\n\t\t\t\t\t\t\t<span class={cn(baseText, 'peer empty:hidden')}>\n\t\t\t\t\t\t\t\t{this.value}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t<span class={cn(baseText, 'hidden peer-empty:block')}>\n\t\t\t\t\t\t\t\t{this.placeholder}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\tcontent={\n\t\t\t\t\t\t\t\tthis.mode === 'read'\n\t\t\t\t\t\t\t\t\t? this.downloadTooltip\n\t\t\t\t\t\t\t\t\t: this.value?.length\n\t\t\t\t\t\t\t\t\t? this.deleteTooltip\n\t\t\t\t\t\t\t\t\t: this.uploadTooltip\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\ticon={\n\t\t\t\t\t\t\t\t\tthis.mode === 'read'\n\t\t\t\t\t\t\t\t\t\t? 'download'\n\t\t\t\t\t\t\t\t\t\t: this.value?.length\n\t\t\t\t\t\t\t\t\t\t? 'trash'\n\t\t\t\t\t\t\t\t\t\t: 'upload'\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdisabled={this.loading}\n\t\t\t\t\t\t\t\tloading={this.loading}\n\t\t\t\t\t\t\t\tonOnClick={() =>\n\t\t\t\t\t\t\t\t\tthis.mode === 'write' && !this.value?.length\n\t\t\t\t\t\t\t\t\t\t? this._uploadClick()\n\t\t\t\t\t\t\t\t\t\t: (this.mode === 'read'\n\t\t\t\t\t\t\t\t\t\t\t\t? this.download\n\t\t\t\t\t\t\t\t\t\t\t\t: this.delete\n\t\t\t\t\t\t\t\t\t\t ).emit()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</p-tooltip>\n\n\t\t\t\t\t\t{this.enableCameraOnMobile &&\n\t\t\t\t\t\t\tthis.mode === 'write' &&\n\t\t\t\t\t\t\tisMobileDevice &&\n\t\t\t\t\t\t\t!this.value?.length && (\n\t\t\t\t\t\t\t\t<p-tooltip\n\t\t\t\t\t\t\t\t\tcontent={this.cameraTooltip}\n\t\t\t\t\t\t\t\t\tclass='desktop-xs:hidden'\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\t\t\t\tslot='trigger'\n\t\t\t\t\t\t\t\t\t\tvariant='secondary'\n\t\t\t\t\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\t\t\t\t\ticon='camera'\n\t\t\t\t\t\t\t\t\t\tonOnClick={() => this._cameraClick()}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</p-tooltip>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\n\t\t\t\t<input\n\t\t\t\t\tclass='hidden'\n\t\t\t\t\ttype='file'\n\t\t\t\t\taccept={\n\t\t\t\t\t\tArray.isArray(this.accept) ? this.accept?.join(',') : this.accept\n\t\t\t\t\t}\n\t\t\t\t\tref={el => (this._fileRef = el)}\n\t\t\t\t\tonChange={ev => this._onFileChange(ev)}\n\t\t\t\t/>\n\n\t\t\t\t<input\n\t\t\t\t\tclass='hidden'\n\t\t\t\t\ttype='file'\n\t\t\t\t\taccept='image/*'\n\t\t\t\t\tcapture='true'\n\t\t\t\t\tref={el => (this._cameraFileRef = el)}\n\t\t\t\t\tonChange={ev => this._onFileChange(ev)}\n\t\t\t\t/>\n\t\t\t</Fragment>\n\t\t);\n\t}\n\n\tprivate _uploadClick() {\n\t\tif (!this._fileRef || this.mode !== 'write') {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._fileRef.click();\n\t}\n\n\tprivate _cameraClick() {\n\t\tif (!this.enableCameraOnMobile || isMobile()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._cameraFileRef || this.mode !== 'write') {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cameraFileRef?.click();\n\t}\n\n\tprivate _onFileChange(ev: Event) {\n\t\tconst target = ev.target as HTMLInputElement;\n\t\tconst file = target.files?.[0];\n\n\t\tif (file) {\n\t\t\tthis.loading = true;\n\n\t\t\tconst reader = new FileReader();\n\t\t\treader.onload = (e: any) => this._onLoad(file, e?.currentTarget?.result);\n\t\t\treader.readAsDataURL(file);\n\t\t}\n\t}\n\n\tprivate _onLoad(file: File, result: string) {\n\t\tthis.upload.emit({\n\t\t\tfileId: this.fileId,\n\t\t\tresult,\n\t\t\tfile,\n\t\t});\n\n\t\tif (this._fileRef) {\n\t\t\tthis._fileRef.value = '';\n\t\t}\n\n\t\tif (this._cameraFileRef) {\n\t\t\tthis._cameraFileRef.value = '';\n\t\t}\n\n\t\tif (!this.value?.length) {\n\t\t\tthis.value = file.name;\n\t\t}\n\n\t\tthis.loading = false;\n\t}\n}\n"],"names":["cva","h","isTablet","Fragment","cn","isMobile"],"mappings":";;;;;;;;AAAA,MAAM,sBAAsB,GAAG,qqDAAqqD;;ACWpsD,MAAM,UAAU,GAAGA,WAAG,CACrB;IACC,8CAA8C;IAC9C,6BAA6B;IAC7B,kCAAkC;CAClC,EACD;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,wDAAwD;AAC/D,YAAA,IAAI,EAAE,qBAAqB;AAC3B,SAAA;AACD,KAAA;AACD,CAAA,CACD;MAOY,UAAU,GAAA,MAAA;;;;;;;AACtB;;AAEG;IACK,oBAAoB,GAAG,KAAK;AAEpC;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;IACK,MAAM,GAAsB,IAAI;AAExC;;AAEG;AACK,IAAA,KAAK;AAEb;;AAEG;AACK,IAAA,MAAM;AAEd;;AAEG;IACsB,Q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,CAAC,QAAQ,EAAE;AAClB,YAAA,IAAI,CAAC,QAAQ,CAAC,KAAK,GAAG,EAAE;;AAGzB,QAAA,IAAI,IAAI,CAAC,cAAc,EAAE;AACxB,YAAA,IAAI,CAAC,cAAc,CAAC,KAAK,GAAG,EAAE;;AAG/B,QAAA,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE;AACxB,YAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI;;AAGvB,QAAA,IAAI,CAAC,OAAO,GAAG,KAAK;;;;;;;"}
|
|
@@ -17,7 +17,7 @@ const ButtonGroup = class {
|
|
|
17
17
|
this._checkButtons();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h(index.Host, { key: '
|
|
20
|
+
return (index.h(index.Host, { key: '0ecb5d82eacdf3350f0887169f1e680d5575f970', class: 'flex items-center' }, index.h("slot", { key: 'f46c24841d7222135c0bdca168886fa90b5a2b0b' })));
|
|
21
21
|
}
|
|
22
22
|
slotchange() {
|
|
23
23
|
this._checkButtons();
|
|
@@ -527,7 +527,7 @@ const Calendar = class {
|
|
|
527
527
|
.filter(date => index.isValid(date));
|
|
528
528
|
}
|
|
529
529
|
render() {
|
|
530
|
-
return (index$1.h(index$1.Host, { key: '
|
|
530
|
+
return (index$1.h(index$1.Host, { key: '3bc005be3abe7f7ff19c1261961e875e85ffb697', class: calendar({ variant: this.variant }) }, this._getView()));
|
|
531
531
|
}
|
|
532
532
|
_getView() {
|
|
533
533
|
if (this._view === 'year') {
|
|
@@ -273,14 +273,14 @@ const Dropdown = class {
|
|
|
273
273
|
'data-strategy': this.strategy,
|
|
274
274
|
};
|
|
275
275
|
let dropdownContainer;
|
|
276
|
-
const itemsSlot = index.h("slot", { key: '
|
|
276
|
+
const itemsSlot = index.h("slot", { key: '81c85452ac760dc3734aecb6b168d6fb3cd67466', name: 'items' });
|
|
277
277
|
if (this.usePortal) {
|
|
278
|
-
dropdownContainer = (index.h("p-portal", { key: '
|
|
278
|
+
dropdownContainer = (index.h("p-portal", { key: '08d9b089324bbdb5306335207c5c069c5000d9af', ...dropdownContainerProps }, index.h("p-dropdown-menu-container", { key: 'afd18f595afea1f221bb6d4d2fd35b25250e6c19', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, itemsSlot)));
|
|
279
279
|
}
|
|
280
280
|
else {
|
|
281
|
-
dropdownContainer = (index.h("p-dropdown-menu-container", { key: '
|
|
281
|
+
dropdownContainer = (index.h("p-dropdown-menu-container", { key: '1234e1a98cf0b0f49d83a3dca617ea6df22b7d56', variant: this.variant, maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, itemsSlot));
|
|
282
282
|
}
|
|
283
|
-
return (index.h(index.Host, { key: '
|
|
283
|
+
return (index.h(index.Host, { key: '1789be53e587187e1ac80696dc5971d1aa3d69f8', class: 'relative' }, index.h("div", { key: '631d65df461845c81eb3dcf32bbad5a5d846f244', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, index.h("slot", { key: 'b3e88729b0f98d62988be48af695421982ddecd1', name: 'trigger' })), index.h("div", { key: 'f26c4b321498a62956ec9c6e59e2f9d9968a4f5b', class: 'relative w-full' }, dropdownContainer)));
|
|
284
284
|
}
|
|
285
285
|
_checkButtons(active = false) {
|
|
286
286
|
if (!this.applyChevron) {
|
|
@@ -56,9 +56,9 @@ const ContentSlider = class {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (index.h(index.Host, { key: '
|
|
59
|
+
return (index.h(index.Host, { key: 'e690c7769634eda186a3abc83d34d86c607f753d', class: "p-content-slider" }, index.h("div", { key: 'e6270d967bbef325e89e2d0cdbd903ea60dc82b8', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
60
60
|
height: `${this._outerHeight}px`,
|
|
61
|
-
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, index.h("div", { key: '
|
|
61
|
+
}, ref: (el) => (this._sliderRef = el), onMouseDown: (e) => this._mouseDownHandler(e), onTouchStart: (e) => this._mouseDownHandler(e), onMouseMove: (e) => this._mouseMoveHandler(e), onTouchMove: (e) => this._mouseMoveHandler(e) }, index.h("div", { key: 'ef9190265da0a8d0e842696929a9ad8d9d3a7f25', class: "inner-slider", ref: (ref) => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, index.h("slot", { key: 'de62baf7fabcc682a326cf32df9974b0fe821a70' }))), index.h("div", { key: '142f7bf7d6172a1c22d61da84342e449c31d24fa', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._items.map((_, i) => (index.h("div", { onClick: () => this._scrollTo(i, true), class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}` }, index.h("div", { class: cn.cn('block w-2 h-2 rounded-full', {
|
|
62
62
|
'bg-dark-teal-600': i === this._visibleIndex,
|
|
63
63
|
'bg-dark-teal-400': i !== this._visibleIndex,
|
|
64
64
|
}) })))))));
|
|
@@ -3077,9 +3077,9 @@ const Datepicker = class {
|
|
|
3077
3077
|
this.parseValue(this.value);
|
|
3078
3078
|
}
|
|
3079
3079
|
render() {
|
|
3080
|
-
return (index$1.h("p-dropdown", { key: '
|
|
3080
|
+
return (index$1.h("p-dropdown", { key: '4b7858215699b02aa85b38f49995338295cb385e', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, index$1.h("p-field", { key: '8dfb07aeb1b18e861b3bdd6ef926343f3e8cfb0b', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, loading: this.loading, helper: this.helper, required: asBoolean.asBoolean(this.required), error: this.error, disabled: asBoolean.asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (index$1.h("input", { key: '606db61aad658122caa28ced464bad6198e925f3', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
|
|
3081
3081
|
,
|
|
3082
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && index.format(this._value, 'yyyy-MM-dd'), min: this.minDate && index.format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && index.format(new Date(this.maxDate), 'yyyy-MM-dd') })), index$1.h("div", { key: '
|
|
3082
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && index.format(this._value, 'yyyy-MM-dd'), min: this.minDate && index.format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && index.format(new Date(this.maxDate), 'yyyy-MM-dd') })), index$1.h("div", { key: '48ac2993e4313f218425406dcfe719ed1fdc450c', slot: 'items' }, index$1.h("p-calendar", { key: '8a39ebe9193704d303b26b8fa6afbada6c674cd3', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode }))));
|
|
3083
3083
|
}
|
|
3084
3084
|
documentClickHandler({ target }) {
|
|
3085
3085
|
if (!this._showDropdown || childOf.childOf(target, this._el)) {
|
|
@@ -66,11 +66,11 @@ const EmptyState = class {
|
|
|
66
66
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
67
67
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
68
68
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
69
|
-
return (index.h("div", { key: '
|
|
69
|
+
return (index.h("div", { key: '4d4ffeaee2bb367b6fa44558bffc6b1ea36e7ff2', class: emptyState({
|
|
70
70
|
enableAction: asBoolean.asBoolean(this.enableAction, true),
|
|
71
71
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
72
72
|
? this.action.emit(ev)
|
|
73
|
-
: undefined }, this.illustration && (index.h("p-illustration", { key: '
|
|
73
|
+
: undefined }, this.illustration && (index.h("p-illustration", { key: '5ffdc50bc7b414703c1ab66e8c11d9213360e421', class: 'mb-8 text-teal', variant: this.illustration })), hasHeaderSlot ? (index.h("slot", { name: 'header' })) : (this.header?.length && (index.h("p", { class: 'my-0 text-center font-ambit text-sm font-bold text-black-teal' }, this.header))), hasContentSlot ? (index.h("slot", { name: 'content' })) : (this.content?.length && (index.h("p", { class: 'my-0 text-center text-sm text-black-teal-300' }, this.content))), this.enableAction &&
|
|
74
74
|
(hasActionSlot ? (index.h("slot", { name: 'action' })) : (index.h("p-button", { class: 'mt-4', icon: this.actionIcon, loading: this.actionLoading, variant: this.actionVariant }, this.actionText)))));
|
|
75
75
|
}
|
|
76
76
|
};
|
|
@@ -297,7 +297,7 @@ const TableCell = class {
|
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
299
|
render() {
|
|
300
|
-
return (index.h(index.Host, { key: '
|
|
300
|
+
return (index.h(index.Host, { key: '00a0d4f6a342ab085d3bfa8b4d36879455c41dc0', class: this._getColumnClasses() }, this.checkbox, this._getContent()));
|
|
301
301
|
}
|
|
302
302
|
_getContent() {
|
|
303
303
|
if (this.variant === 'loading') {
|
|
@@ -418,11 +418,11 @@ const TableFooter = class {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
render() {
|
|
421
|
-
return (index.h("div", { key: '
|
|
421
|
+
return (index.h("div", { key: 'dd645bf716abf7fab8f11ca025e0a40dd556d39f', class: footer({
|
|
422
422
|
pinned: this._isPinned,
|
|
423
423
|
hidden: this._hidden,
|
|
424
424
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
425
|
-
this.total > 0 && (index.h("p-pagination", { key: '
|
|
425
|
+
this.total > 0 && (index.h("p-pagination", { key: '19f27136c8dd0ba4540989e7a66207952372f2b8', class: 'z-[2]', enablePaginationSize: this.enablePaginationSize, enablePaginationPages: this.enablePaginationPages, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this._changePageSize(detail), page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), total: this.total, onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) }))));
|
|
426
426
|
}
|
|
427
427
|
_changePageSize(s) {
|
|
428
428
|
if (!s) {
|
|
@@ -10113,12 +10113,12 @@ const TableRow = class {
|
|
|
10113
10113
|
*/
|
|
10114
10114
|
enableHover = true;
|
|
10115
10115
|
render() {
|
|
10116
|
-
return (index.h("div", { key: '
|
|
10116
|
+
return (index.h("div", { key: '3b0c33c721d30432c3484e1840ea9d98e17bd1af', class: 'flex flex-col' }, index.h("div", { key: 'f271084c671e7eb2d2448371b24f905ef4fdecfe', class: row({
|
|
10117
10117
|
variant: this.variant,
|
|
10118
10118
|
enableHover: this.enableHover,
|
|
10119
|
-
}) }, index.h("div", { key: '
|
|
10119
|
+
}) }, index.h("div", { key: 'f3dbe2499f33d602e2cf371d39e28c5f312de24c', class: content({
|
|
10120
10120
|
variant: this.variant,
|
|
10121
|
-
}) }, index.h("slot", { key: '
|
|
10121
|
+
}) }, index.h("slot", { key: '672d5a2716fe938bc75872d1fde5555ace2caab4' }), index.h("div", { key: '117c17db8a87e0c17b2c092e69548bd09c44d11e', class: actions() }, index.h("slot", { key: '1d637f45a95f749d68814a685fd32221373b7269', name: 'actions' })))), index.h("p-divider", { key: 'ed36652744fdc946d57cd5aeb747fb81aa5231dd' })));
|
|
10122
10122
|
}
|
|
10123
10123
|
};
|
|
10124
10124
|
TableRow.style = tableRowComponentCss;
|
|
@@ -307,14 +307,14 @@ const Field = class {
|
|
|
307
307
|
}
|
|
308
308
|
render() {
|
|
309
309
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
310
|
-
return (index.h("p-field-container", { key: '
|
|
310
|
+
return (index.h("p-field-container", { key: 'cb19870d204efcbbb2991bcb01f1d92f407698df', forceShowTooltip: this.forceShowTooltip || this._focused, id: id, label: this.label, loading: this.loading, loadingSize: this.size, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (index.h("slot", { key: '2eab7abbbb1cb4c1fae604f8ab40c4af0d613829', name: 'label', slot: 'label' })), hasHeaderSlot && (index.h("slot", { key: '90c1a1daf7e4722878e876921628bb8b95cb1ac3', name: 'header', slot: 'header' })), hasHelperSlot && (index.h("slot", { key: '08cdc4d7454dc9492ce6899245373af837408989', name: 'helper', slot: 'helper' })), hasErrorSlot && (index.h("slot", { key: 'ff8cd30c29988e3e2048845d7e2cf77037632417', name: 'error', slot: 'error' })), index.h("div", { key: 'fddd83f48e198ab8e8355c4eb9138d664f9a2514', class: field({
|
|
311
311
|
error: !!this.error?.length,
|
|
312
312
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
313
313
|
focused: asBoolean.asBoolean(this.focused) || this._focused,
|
|
314
314
|
size: this.size,
|
|
315
315
|
variant: this.variant,
|
|
316
316
|
isTextarea: this.type === 'textarea',
|
|
317
|
-
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (this.error?.length || prefix || (this.icon && this.iconPosition === 'start')) && (index.h("div", { key: '
|
|
317
|
+
}), title: this.variant === 'read' && !hasValueSlot ? this.value : undefined, slot: 'content' }, (this.error?.length || prefix || (this.icon && this.iconPosition === 'start')) && (index.h("div", { key: 'c39d610fd6014de8cd06afc31c7d00188735d089', class: prefixAndSuffix({
|
|
318
318
|
error: !!this.error?.length,
|
|
319
319
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
320
320
|
focused: asBoolean.asBoolean(this.focused) || this._focused,
|
|
@@ -322,7 +322,7 @@ const Field = class {
|
|
|
322
322
|
isTextarea: this.type === 'textarea',
|
|
323
323
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') || this.error?.length ? (index.h("p-icon", { class: cn.cn('flex', {
|
|
324
324
|
'mt-[0.125rem]': this.variant === 'read' && this.size === 'base',
|
|
325
|
-
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (index.h("div", { key: '
|
|
325
|
+
}), variant: this.error?.length ? 'warning' : this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (index.h("div", { key: 'e7b77c4dc991945fee64dfdb66d1d0fb4b5b3b51', class: prefixAndSuffix({
|
|
326
326
|
error: !!this.error?.length,
|
|
327
327
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
328
328
|
focused: asBoolean.asBoolean(this.focused) || this._focused,
|
|
@@ -62,14 +62,14 @@ const Label = class {
|
|
|
62
62
|
*/
|
|
63
63
|
keepMobileContent = false;
|
|
64
64
|
render() {
|
|
65
|
-
return (index.h("div", { key: '
|
|
65
|
+
return (index.h("div", { key: '9597be604690771c7963c82363a3f249a933313d', class: label({
|
|
66
66
|
variant: this.variant,
|
|
67
67
|
iconOnly: this.iconOnly,
|
|
68
68
|
keepMobileContent: this.keepMobileContent,
|
|
69
|
-
}) }, this.icon && (index.h("p-icon", { key: '
|
|
69
|
+
}) }, this.icon && (index.h("p-icon", { key: '48f6b8aae58c96ea2936ceed2a00b09ce4eee21d', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (index.h("div", { key: '45395fa989ebc3b038687c71abd78ab77b17547d', class: cn.cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm', {
|
|
70
70
|
hidden: !this.keepMobileContent,
|
|
71
71
|
'desktop-xs:block': !this.keepMobileContent,
|
|
72
|
-
}) }, index.h("slot", { key: '
|
|
72
|
+
}) }, index.h("slot", { key: '83ceeb73279dd9c3ae6512cd563fb3a56c1923ad' })))));
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
75
|
Label.style = labelComponentCss;
|
|
@@ -72,7 +72,7 @@ const Listing = class {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
|
-
return (index.h("div", { key: '
|
|
75
|
+
return (index.h("div", { key: '13eabe2bacc8fe1ed570ffc5b03a453df3ca3285', class: "flex gap-1 w-full flex-col flex-wrap items-start" }, index.h("slot", { key: '1d11f5daa58b54d35aa38cf436f578d3d762b146', onSlotchange: () => this._generateStepsOnce() })));
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
Listing.style = listingComponentCss;
|
|
@@ -51,7 +51,7 @@ const Navbar = class {
|
|
|
51
51
|
}
|
|
52
52
|
_show = false;
|
|
53
53
|
render() {
|
|
54
|
-
return (index.h(index.Host, { key: '
|
|
54
|
+
return (index.h(index.Host, { key: 'ccea1ba5b71e5d7030fc0061c55e7b1f0cf199df' }, index.h("p-backdrop", { key: '6697e5a39331b9038c371528d030215019aec71b', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), index.h("div", { key: '5dc02dabfa017fe2e0549b3464f3dae0686e7fdb', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, index.h("div", { key: 'fdc11a2dba8032bcee10a3d718d3471bf08f0bc3', class: 'flex w-full items-center justify-between layout-1280:hidden' }, index.h("p-button", { key: 'dd627886a9bc8c5759e8d9465bf7038427599594', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), index.h("div", { key: '8eac51be7bcaeac093268cd4e6c2eb1f16f3e308', class: 'flex w-full flex-col items-stretch' }, index.h("slot", { key: 'd4d57618aa5354fac8b0a19c974d84ef6dd8d639', name: 'company' })), index.h("div", { key: '48949805268ce97c6c83a15a4e3ec1daaac73b86', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, index.h("slot", { key: '46e52c419b8269702983519550a074a4bf217928', name: 'content' })), index.h("div", { key: '01bc1710293357fd8a1f85e66d88c4335c925ce4', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, index.h("slot", { key: 'cce5347a4e5e9a33d144ec69ae452b214435fcf1', name: 'user' }))), index.h("div", { key: '9191ee1056b84360e3ad0bc9a6d1101c80e00a4e', class: topbar({ class: sidebarAndTopbar() }) }, index.h("p-button", { key: 'caeb38522b307c81deadd55915edc4efe308cc26', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), index.h("slot", { key: '18e2f632df00d70b2763d8bf4492b326b9e0eb40', name: 'topbar' }))));
|
|
55
55
|
}
|
|
56
56
|
handleCloseNavbar() {
|
|
57
57
|
this._show = false;
|
|
@@ -75,10 +75,10 @@ const NavigationItem = class {
|
|
|
75
75
|
render() {
|
|
76
76
|
const TagType = this.as;
|
|
77
77
|
const active = asBoolean.asBoolean(this.active) || this.class?.includes('active');
|
|
78
|
-
return (index.h(index.Host, { key: '
|
|
78
|
+
return (index.h(index.Host, { key: 'c7ce92561fc86949a3d7a4cf8c0c8f7bc8c2c40b', class: cn.cn('p-navigation-item inline-block', this.class) }, index.h(TagType, { key: '03c0c4fdbbc000af6b275b4cebb96abf0cc2c7d0', class: navigationItem({
|
|
79
79
|
icon: !!this.icon,
|
|
80
80
|
active,
|
|
81
|
-
}), href: this.href, target: this.target }, index.h("div", { key: '
|
|
81
|
+
}), href: this.href, target: this.target }, index.h("div", { key: '5cb39568c4cd76f31d4c064fd6436dcee7c18806', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: 'cecfec8ee5fabc95cef24efb4ff64a695b84cec8', variant: this.icon })), index.h("span", { key: '7c8a60a7af3267febb129605ef888fe411cd850e', class: this.counter && 'has-counter' }, index.h("slot", { key: '8425b021164b20a0ed11e5f98d6e863dcf666b57' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: 'f760815a4da64edd25c30c4993e35157e8d86fe8' }, this.counter)), !!this.loading && index.h("p-loader", { key: 'ae11ad41c8b5e61d22c05c7d2422ff45003593e5', class: 'ml-auto' }))));
|
|
82
82
|
}
|
|
83
83
|
};
|
|
84
84
|
NavigationItem.style = navigationItemComponentCss;
|
|
@@ -13,7 +13,7 @@ const NavigationSection = class {
|
|
|
13
13
|
*/
|
|
14
14
|
header;
|
|
15
15
|
render() {
|
|
16
|
-
return (index.h(index.Host, { key: '
|
|
16
|
+
return (index.h(index.Host, { key: '0974883115ce6c02612170f71ac60a046c1aee00', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: 'a0d706b6810eca9f5bd075bae9aa79b58f5a2712' }, this.header)), index.h("div", { key: 'cf846c79ca2248048aa0938221a515da4a5933de', class: 'flex flex-col' }, index.h("slot", { key: '9620310533a013653d88c41676a4d8c70e4f9676' }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
NavigationSection.style = navigationSectionComponentCss;
|
|
@@ -73,12 +73,12 @@ const Pagination = class {
|
|
|
73
73
|
_hasPaginationPages = true;
|
|
74
74
|
render() {
|
|
75
75
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
76
|
-
return (index.h(index.Host, { key: '
|
|
76
|
+
return (index.h(index.Host, { key: 'a8cd8cd65e4de9844daaac10163a8261fc1a7efd', class: pagination$1({
|
|
77
77
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
78
78
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
79
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '
|
|
79
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '529c47e363d1b072efe41b5b464bbf48995b56c0' }, index.h("p-pagination-size", { key: '3261d8dcc53698d4f8da54d56136e5a1b208ad93', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
80
80
|
this.hideOnSinglePage &&
|
|
81
|
-
this._hasPaginationPages && (index.h("p-divider", { key: '
|
|
81
|
+
this._hasPaginationPages && (index.h("p-divider", { key: '56c43d2d91886ce834f17de6ced84d2f98ef42e2', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (index.h("p-pagination-pages", { key: '25388a87ce9c6a6ab1cc4a88fc1a665e3b40a2ce', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
82
82
|
this._hasPaginationPages = detail > 1;
|
|
83
83
|
this.pagesChange.emit(detail);
|
|
84
84
|
} }))));
|
|
@@ -139,7 +139,7 @@ const PaginationPages = class {
|
|
|
139
139
|
this._generate();
|
|
140
140
|
}
|
|
141
141
|
render() {
|
|
142
|
-
return (index.h(index.Host, { key: '
|
|
142
|
+
return (index.h(index.Host, { key: 'c05c0f39f4676694bcb4644509f237e62c3fd4af', class: pagination({
|
|
143
143
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
144
144
|
}) }, this._set?.map(p => {
|
|
145
145
|
if (p.type === 'previous' || p.type === 'next') {
|
|
@@ -300,7 +300,7 @@ const Select = class {
|
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
render() {
|
|
303
|
-
return (index.h("p-dropdown", { key: '
|
|
303
|
+
return (index.h("p-dropdown", { key: '238322b5807fdc98fde8c09c3179223cba4baf2f', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), usePortal: this.usePortal, strategy: this.strategy }, index.h("p-field-container", { key: 'd726489b002ce9636ce09452d0fe0923ec24a78e', slot: 'trigger', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, index.h("p-button", { key: '8d8f387aff36ff0766b5d8bceea4e41af9ed73bc', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, index.h("div", { key: '193567684809d5e398b70e24fc9eee10e93858b3', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()));
|
|
304
304
|
}
|
|
305
305
|
documentClickHandler(event) {
|
|
306
306
|
if (!this._showDropdown || childOf.childOfComposed(event, this._el)) {
|
|
@@ -161,7 +161,7 @@ const Stepper = class {
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
render() {
|
|
164
|
-
return (index.h("div", { key: '
|
|
164
|
+
return (index.h("div", { key: '2e81d49e7d2263a5f447359762f8d3cacb4f093c', class: stepper({ direction: this.direction }) }, index.h("slot", { key: '412013c76db7c55c0ece407be80e355f243ee924', onSlotchange: () => this._generateStepsOnce() })));
|
|
165
165
|
}
|
|
166
166
|
_onAlignChange() {
|
|
167
167
|
this._generateStepsOnce();
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-BDuPp9vl.js');
|
|
4
|
-
var
|
|
4
|
+
var constants$1 = require('./constants-DDb_wCc1.js');
|
|
5
5
|
var localization = require('./localization-CGd_fklS.js');
|
|
6
6
|
var tableHelpers = require('./table-helpers-DBfAAEos.js');
|
|
7
|
+
var screens = require('./screens-h1MTJhCu.js');
|
|
7
8
|
var cn = require('./cn-BGmLaIp8.js');
|
|
8
9
|
var constants = require('./constants-BmCCabnv.js');
|
|
9
10
|
require('./index-mudu9vpz.js');
|
|
@@ -647,7 +648,7 @@ const Table = class {
|
|
|
647
648
|
!['auto', 'hidden', 'full'].includes(definition.sizes)) {
|
|
648
649
|
definition.sizes = JSON.parse(definition.sizes);
|
|
649
650
|
}
|
|
650
|
-
for (const [index, size] of
|
|
651
|
+
for (const [index, size] of constants$1.tableColumSizesOptions.entries()) {
|
|
651
652
|
if (definitionAny.sizes === 'auto' ||
|
|
652
653
|
definitionAny.sizes === 'hidden' ||
|
|
653
654
|
definitionAny.sizes === 'full' ||
|
|
@@ -658,7 +659,7 @@ const Table = class {
|
|
|
658
659
|
}
|
|
659
660
|
parsedSizes[size] =
|
|
660
661
|
definitionAny.sizes[size] ??
|
|
661
|
-
parsedSizes[
|
|
662
|
+
parsedSizes[constants$1.tableColumSizesOptions[index - 1]];
|
|
662
663
|
}
|
|
663
664
|
definition.parsedSizes = parsedSizes;
|
|
664
665
|
return definition;
|