@paperless/core 2.22.0-alpha.32 → 2.22.0-alpha.33
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/dist/build/{p-eb88330f.entry.js → p-0db34ade.entry.js} +1 -1
- package/dist/build/{p-dc7e3d2d.entry.js → p-114e0c9a.entry.js} +1 -1
- package/dist/build/{p-8527dffc.entry.js → p-1924cd9d.entry.js} +1 -1
- package/dist/build/{p-75c0d205.entry.js → p-1a17e046.entry.js} +1 -1
- package/dist/build/{p-a075f933.entry.js → p-1eed9342.entry.js} +1 -1
- package/dist/{paperless/p-a3c931c3.entry.js → build/p-1f260372.entry.js} +1 -1
- package/dist/build/{p-1bc013ea.entry.js → p-2695c4c1.entry.js} +1 -1
- package/dist/{paperless/p-88434ef8.entry.js → build/p-4752c1e2.entry.js} +1 -1
- package/dist/build/{p-ac64c055.entry.js → p-48862d6c.entry.js} +1 -1
- package/dist/build/{p-8d872235.entry.js → p-4ad6da03.entry.js} +1 -1
- package/dist/{paperless/p-d824b806.entry.js → build/p-4c1b92b5.entry.js} +1 -1
- package/dist/{paperless/p-f16b7c0e.entry.js → build/p-5c4efc42.entry.js} +1 -1
- package/dist/build/{p-96020614.entry.js → p-5e6e2031.entry.js} +1 -1
- package/dist/{paperless/p-cce41338.entry.js → build/p-608f6111.entry.js} +1 -1
- package/dist/build/p-6da67ab3.entry.js +1 -0
- package/dist/build/{p-3d4eed8c.entry.js → p-7e9886d6.entry.js} +1 -1
- package/dist/build/{p-26a84c2f.entry.js → p-84652e9e.entry.js} +1 -1
- package/dist/{paperless/p-8073ff56.entry.js → build/p-93542510.entry.js} +1 -1
- package/dist/{paperless/p-5abb4596.entry.js → build/p-94311485.entry.js} +1 -1
- package/dist/{paperless/p-443e1609.entry.js → build/p-a3f1e55c.entry.js} +1 -1
- package/dist/{paperless/p-d79097e9.entry.js → build/p-a6d1bac6.entry.js} +1 -1
- package/dist/build/{p-4c47faf5.entry.js → p-aa3c6754.entry.js} +1 -1
- package/dist/build/{p-39695802.js → p-bb93b60d.js} +1 -1
- package/dist/build/{p-7b05d594.entry.js → p-bf87972a.entry.js} +1 -1
- package/dist/build/{p-796ade92.entry.js → p-d15bb397.entry.js} +1 -1
- package/dist/build/{p-4ade4fd6.entry.js → p-d2de7714.entry.js} +1 -1
- package/dist/{paperless/p-16625524.entry.js → build/p-d388076a.entry.js} +1 -1
- package/dist/{paperless/p-2461cae0.entry.js → build/p-dafa1b62.entry.js} +1 -1
- package/dist/build/{p-3224460c.entry.js → p-e0b1116c.entry.js} +1 -1
- package/dist/build/p-f0405a75.entry.js +1 -0
- package/dist/build/{p-0595952f.entry.js → p-ff9f4b2b.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +1 -1
- package/dist/cjs/p-attachment.cjs.entry.js +5 -5
- package/dist/cjs/p-avatar.cjs.entry.js +1 -1
- package/dist/cjs/p-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +6 -6
- package/dist/cjs/p-calendar.cjs.entry.js +6 -6
- package/dist/cjs/p-card-header.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +4 -4
- package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
- package/dist/cjs/p-cropper.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +5 -5
- package/dist/cjs/p-drawer-body_3.cjs.entry.js +1 -1
- package/dist/cjs/p-drawer.cjs.entry.js +1 -1
- package/dist/cjs/p-empty-state_8.cjs.entry.js +8 -8
- package/dist/cjs/p-field_3.cjs.entry.js +15 -15
- package/dist/cjs/p-floating-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/p-label.cjs.entry.js +1 -1
- package/dist/cjs/p-modal-body_4.cjs.entry.js +1 -1
- package/dist/cjs/p-modal.cjs.entry.js +1 -1
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +9 -9
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +2 -2
- package/dist/cjs/p-range.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js +8 -8
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-table.cjs.entry.js +20 -42
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +2 -2
- package/dist/cjs/p-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/atoms/avatar/avatar/avatar.component.js +1 -1
- package/dist/collection/components/atoms/card/header/card-header.component.js +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +2 -2
- package/dist/collection/components/atoms/drawer/header/drawer-header.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/container/floating-menu-container.component.js +1 -1
- package/dist/collection/components/atoms/floating-menu/item/floating-menu-item.component.js +1 -1
- package/dist/collection/components/atoms/helper/helper.component.js +1 -1
- package/dist/collection/components/atoms/icon/icon.component.js +2 -2
- package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +2 -2
- package/dist/collection/components/atoms/segment/item/segment-item.component.js +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +2 -2
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
- package/dist/collection/components/molecules/attachment/attachment.component.js +5 -5
- package/dist/collection/components/molecules/button/button.component.js +4 -4
- package/dist/collection/components/molecules/calendar/calendar.component.js +6 -6
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +5 -5
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +2 -2
- package/dist/collection/components/molecules/field/container/field-container.component.js +6 -6
- package/dist/collection/components/molecules/field/field/field.component.js +8 -8
- package/dist/collection/components/molecules/label/label.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +6 -6
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +1 -1
- package/dist/collection/components/molecules/pagination/size/pagination-size.component.js +2 -2
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +8 -8
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +1 -1
- package/dist/collection/components/molecules/table/header/table-header.component.js +5 -5
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/drawer/drawer.component.js +1 -1
- package/dist/collection/components/organisms/modal/modal.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/collection/components/organisms/table/table.component.js +20 -42
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Ch5U9kWZ.js → p-Bs4zUbgC.js} +1 -1
- package/dist/components/{p-OF_TU9VQ.js → p-Bsz5wpvX.js} +1 -1
- package/dist/components/{p-CCufTu-v.js → p-C4QFnooj.js} +1 -1
- package/dist/components/{p-nUd8Wpbr.js → p-C7oEohET.js} +1 -1
- package/dist/components/{p-BwD4wr14.js → p-CCdMFLeY.js} +1 -1
- package/dist/components/{p-DfBWP1bt.js → p-CCpo87pH.js} +1 -1
- package/dist/components/{p-PyPr6c8z.js → p-CGMb-Zik.js} +1 -1
- package/dist/components/{p-SggF_Jar.js → p-CGMitCrO.js} +1 -1
- package/dist/components/{p-DoDhkUVy.js → p-CJ7RtC-a.js} +1 -1
- package/dist/components/{p-CvE78NPe.js → p-CLQglqfD.js} +1 -1
- package/dist/components/{p-CkCQHYtH.js → p-CVCCA4eY.js} +1 -1
- package/dist/components/{p-ZcEew3GF.js → p-CWRAbDh-.js} +1 -1
- package/dist/components/{p-BBpjifjG.js → p-CzT4TxMT.js} +1 -1
- package/dist/components/{p-BQNrSoo9.js → p-D6xsDoHI.js} +1 -1
- package/dist/components/{p-BvUfWfx-.js → p-DCkiUXJN.js} +1 -1
- package/dist/components/{p-kAKe_qDq.js → p-DqtQfYz0.js} +1 -1
- package/dist/components/{p-D08B3cFE.js → p-DuNvWVbF.js} +1 -1
- package/dist/components/{p-CtHAbYCa.js → p-Dxh5RZDW.js} +1 -1
- package/dist/components/{p-h4mS749f.js → p-E_DVjH99.js} +1 -1
- package/dist/components/{p-BqgXqvox.js → p-KIL5rYXr.js} +1 -1
- package/dist/components/{p-2ng-Aose.js → p-Pk4ZTsZ4.js} +1 -1
- package/dist/components/{p-CGFPlslj.js → p-QVPuIpXI.js} +1 -1
- package/dist/components/{p-CNMa-_yN.js → p-TQjQ8aZG.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-avatar.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/{p-CaN_dhnG.js → p-csyF2tkK.js} +1 -1
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-dropdown.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.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-radio.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-segment-item.js +1 -1
- package/dist/components/p-select.js +1 -1
- 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.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/p-toggle.js +1 -1
- package/dist/components/p-tooltip.js +1 -1
- package/dist/esm/p-accordion.entry.js +1 -1
- package/dist/esm/p-attachment.entry.js +5 -5
- package/dist/esm/p-avatar.entry.js +1 -1
- package/dist/esm/p-badge_3.entry.js +1 -1
- package/dist/esm/p-button_3.entry.js +6 -6
- package/dist/esm/p-calendar.entry.js +6 -6
- package/dist/esm/p-card-header.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +4 -4
- package/dist/esm/p-content-slider.entry.js +2 -2
- package/dist/esm/p-cropper.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +5 -5
- package/dist/esm/p-drawer-body_3.entry.js +1 -1
- package/dist/esm/p-drawer.entry.js +1 -1
- package/dist/esm/p-empty-state_8.entry.js +8 -8
- package/dist/esm/p-field_3.entry.js +15 -15
- package/dist/esm/p-floating-menu-item.entry.js +1 -1
- package/dist/esm/p-label.entry.js +1 -1
- package/dist/esm/p-modal-body_4.entry.js +1 -1
- package/dist/esm/p-modal.entry.js +1 -1
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +9 -9
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-radio.entry.js +2 -2
- package/dist/esm/p-range.entry.js +1 -1
- package/dist/esm/p-select.entry.js +8 -8
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-table.entry.js +20 -42
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +2 -2
- package/dist/esm/p-tooltip.entry.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-eb88330f.entry.js → p-0db34ade.entry.js} +1 -1
- package/dist/paperless/{p-dc7e3d2d.entry.js → p-114e0c9a.entry.js} +1 -1
- package/dist/paperless/{p-8527dffc.entry.js → p-1924cd9d.entry.js} +1 -1
- package/dist/paperless/{p-75c0d205.entry.js → p-1a17e046.entry.js} +1 -1
- package/dist/paperless/{p-a075f933.entry.js → p-1eed9342.entry.js} +1 -1
- package/dist/{build/p-a3c931c3.entry.js → paperless/p-1f260372.entry.js} +1 -1
- package/dist/paperless/{p-1bc013ea.entry.js → p-2695c4c1.entry.js} +1 -1
- package/dist/{build/p-88434ef8.entry.js → paperless/p-4752c1e2.entry.js} +1 -1
- package/dist/paperless/{p-ac64c055.entry.js → p-48862d6c.entry.js} +1 -1
- package/dist/paperless/{p-8d872235.entry.js → p-4ad6da03.entry.js} +1 -1
- package/dist/{build/p-d824b806.entry.js → paperless/p-4c1b92b5.entry.js} +1 -1
- package/dist/{build/p-f16b7c0e.entry.js → paperless/p-5c4efc42.entry.js} +1 -1
- package/dist/paperless/{p-96020614.entry.js → p-5e6e2031.entry.js} +1 -1
- package/dist/{build/p-cce41338.entry.js → paperless/p-608f6111.entry.js} +1 -1
- package/dist/paperless/p-6da67ab3.entry.js +1 -0
- package/dist/paperless/{p-3d4eed8c.entry.js → p-7e9886d6.entry.js} +1 -1
- package/dist/paperless/{p-26a84c2f.entry.js → p-84652e9e.entry.js} +1 -1
- package/dist/{build/p-8073ff56.entry.js → paperless/p-93542510.entry.js} +1 -1
- package/dist/{build/p-5abb4596.entry.js → paperless/p-94311485.entry.js} +1 -1
- package/dist/{build/p-443e1609.entry.js → paperless/p-a3f1e55c.entry.js} +1 -1
- package/dist/{build/p-d79097e9.entry.js → paperless/p-a6d1bac6.entry.js} +1 -1
- package/dist/paperless/{p-4c47faf5.entry.js → p-aa3c6754.entry.js} +1 -1
- package/dist/paperless/{p-7b05d594.entry.js → p-bf87972a.entry.js} +1 -1
- package/dist/paperless/{p-796ade92.entry.js → p-d15bb397.entry.js} +1 -1
- package/dist/paperless/{p-4ade4fd6.entry.js → p-d2de7714.entry.js} +1 -1
- package/dist/{build/p-16625524.entry.js → paperless/p-d388076a.entry.js} +1 -1
- package/dist/{build/p-2461cae0.entry.js → paperless/p-dafa1b62.entry.js} +1 -1
- package/dist/paperless/{p-3224460c.entry.js → p-e0b1116c.entry.js} +1 -1
- package/dist/paperless/p-f0405a75.entry.js +1 -0
- package/dist/paperless/{p-0595952f.entry.js → p-ff9f4b2b.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +109 -131
- package/hydrate/index.mjs +109 -131
- package/package.json +1 -1
- package/dist/build/p-4b03700c.entry.js +0 -1
- package/dist/build/p-fc461e09.entry.js +0 -1
- package/dist/paperless/p-4b03700c.entry.js +0 -1
- package/dist/paperless/p-fc461e09.entry.js +0 -1
|
@@ -109,7 +109,7 @@ const SegmentItem = class {
|
|
|
109
109
|
}) }, this.icon && (h("p-icon", { key: '63323d0681027b5a1215c342113d1ffb5c3924b4', class: cn('mb-1', {
|
|
110
110
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
111
111
|
'text-indigo-200': asBoolean(this.active),
|
|
112
|
-
}),
|
|
112
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), this.variant === 'default' ? (h("slot", null)) : (h("div", { class: 'flex flex-col items-center' }, h("p", { class: cn('my-0 font-medium empty:hidden', {}) }, h("slot", { name: 'title' })), descriptionSlot && (h("p", { class: cn('my-0 text-xs font-medium', {
|
|
113
113
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
114
114
|
'text-indigo-200': asBoolean(this.active),
|
|
115
115
|
}) }, descriptionSlot)))))));
|
|
@@ -523,7 +523,7 @@ const Button = class {
|
|
|
523
523
|
: 'button';
|
|
524
524
|
const hostClass = cn('p-button inline-block', this.class);
|
|
525
525
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
526
|
-
return (h(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, h(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b',
|
|
526
|
+
return (h(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, h(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b', class: button({
|
|
527
527
|
variant: this.variant,
|
|
528
528
|
size: this.size,
|
|
529
529
|
loading: asBoolean(this.loading),
|
|
@@ -533,14 +533,14 @@ const Button = class {
|
|
|
533
533
|
active,
|
|
534
534
|
error: asBoolean(this.error),
|
|
535
535
|
underline: asBoolean(this.underline) && VariableTag === 'a',
|
|
536
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe',
|
|
536
|
+
}), disabled: asBoolean(this.disabled), href: this.href, tabIndex: this.tabIndex, target: this.target, type: this.variant === 'text' ? undefined : this.type }, this.chevron && this.chevronPosition === 'start' && (h("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.icon &&
|
|
537
537
|
this.iconPosition === 'start' &&
|
|
538
538
|
!(this.iconOnly && this.loading) &&
|
|
539
539
|
this._getIcon(), this.label ?? h("slot", { key: '96401595325aecdfb14c77b5dce103a67d4d8da8' }), this.icon &&
|
|
540
540
|
this.iconPosition === 'end' &&
|
|
541
541
|
!this.loading &&
|
|
542
542
|
!this.chevron &&
|
|
543
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0',
|
|
543
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (h("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.loading && h("p-loader", { key: 'f655d54d167b02f7e546962f182e61b3cec77ccc', color: loaderColor }))));
|
|
544
544
|
}
|
|
545
545
|
handleClick(ev) {
|
|
546
546
|
if (this.loading || this.disabled) {
|
|
@@ -563,7 +563,7 @@ const Button = class {
|
|
|
563
563
|
active: asBoolean(this.active),
|
|
564
564
|
error: asBoolean(this.error),
|
|
565
565
|
iconOnly: asBoolean(this.iconOnly),
|
|
566
|
-
}), this.iconClass ?? ''),
|
|
566
|
+
}), this.iconClass ?? ''), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
Button.style = buttonComponentCss();
|
|
@@ -629,9 +629,9 @@ const Icon = class {
|
|
|
629
629
|
flip: this.flip,
|
|
630
630
|
size: hasTextSizeClass ? 'auto' : this.size,
|
|
631
631
|
transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
|
|
632
|
-
}), style: {
|
|
632
|
+
}), innerHTML: svg, style: {
|
|
633
633
|
'--tw-rotate': `${this.rotate}deg`,
|
|
634
|
-
}, title: this.variant
|
|
634
|
+
}, title: this.variant }));
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
Icon.style = iconComponentCss();
|
|
@@ -226,7 +226,7 @@ const Calendar = class {
|
|
|
226
226
|
const daysInMonth = this._generateDaysInMonth();
|
|
227
227
|
return (h("div", { class: view({ view: 'day' }) }, this._getHeader('day'), h("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (h("span", { class: 'w-8 text-center text-xs text-storm-200' }, dateFnsExports.format(dateFnsExports.addDays(new Date(2022, 7, 1), weekday), state.locale === 'nl' ? 'EEEEEE' : 'eee', {
|
|
228
228
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
229
|
-
})))), daysInMonth.map(day => day.active ? (h("p-button", {
|
|
229
|
+
})))), daysInMonth.map(day => day.active ? (h("p-button", { class: cn('w-8', `col-start-${day.offset}`), tabIndex: -1, variant: 'primary', onClick: () => this._setValue(day.date) }, day.day)) : (h("time", { class: cn('normal flex items-center justify-center rounded-lg', 'h-8 w-8 text-sm font-semibold', 'text-storm-300', 'dark:bg-white/15', {
|
|
230
230
|
'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
|
|
231
231
|
'dark:text-hurricane-200': day.disabled,
|
|
232
232
|
}, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
@@ -235,13 +235,13 @@ const Calendar = class {
|
|
|
235
235
|
}
|
|
236
236
|
_getMonthView() {
|
|
237
237
|
const months = this._generateMonths();
|
|
238
|
-
return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { variant: month.active ? 'primary' : 'secondary',
|
|
238
|
+
return (h("div", { class: view({ view: 'month' }) }, this._getHeader('month'), h("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (h("p-button", { disabled: month.disabled, tabIndex: -1, variant: month.active ? 'primary' : 'secondary', onClick: () => this._setMonth(month.month) }, dateFnsExports.format(dateFnsExports.setMonth(new Date(), month.month), 'MMMM', {
|
|
239
239
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
240
240
|
})))))));
|
|
241
241
|
}
|
|
242
242
|
_getYearView() {
|
|
243
243
|
const years = this._generateYears();
|
|
244
|
-
return (h("div", { class: view({ view: 'year' }) }, this._getHeader('year'), h("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (h("p-button", { class: 'w-full', variant: year.active ? 'primary' : 'secondary',
|
|
244
|
+
return (h("div", { class: view({ view: 'year' }) }, this._getHeader('year'), h("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (h("p-button", { class: 'w-full', "data-active": year.active, "data-current": year.current, tabIndex: -1, variant: year.active ? 'primary' : 'secondary', onClick: () => this._setYear(year.year) }, year.year))))));
|
|
245
245
|
}
|
|
246
246
|
_getHeader(type = 'day') {
|
|
247
247
|
let nextFn = num => this._changeMonth(num);
|
|
@@ -250,11 +250,11 @@ const Calendar = class {
|
|
|
250
250
|
nextFn = num => this._changeYear(num);
|
|
251
251
|
nextType = 'year';
|
|
252
252
|
}
|
|
253
|
-
return (h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (h("p-button", {
|
|
253
|
+
return (h("div", { class: header({ type: this.mode }) }, this.mode !== 'year' && (h("p-button", { disabled: !this._canSetAmount(nextType, -1) || this._view === 'year', icon: 'caret', iconRotate: 90, size: 'sm', tabIndex: -1, variant: 'secondary', iconOnly: true, onClick: () => nextFn(-1) })), h("div", { class: cn('flex gap-2', {
|
|
254
254
|
'flex-1': this._enableToday,
|
|
255
|
-
}) }, this.mode !== 'year' && (h("p-button", {
|
|
255
|
+
}) }, this.mode !== 'year' && (h("p-button", { active: this._view === 'month' && this.mode !== 'month', disabled: !this._canChangeView('month'), size: 'sm', tabIndex: -1, variant: 'secondary', onClick: () => this._changeView('month') }, dateFnsExports.format(this._viewDate, 'MMMM', {
|
|
256
256
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
257
|
-
}))), h("p-button", {
|
|
257
|
+
}))), h("p-button", { active: this._view === 'year' && this.mode !== 'year', disabled: !this._canChangeView('year'), size: 'sm', tabIndex: -1, variant: 'secondary', onClick: () => this._changeView('year') }, dateFnsExports.getYear(this._viewDate)), this._enableToday && (h("p-tooltip", { class: 'ml-auto', content: this.todayText }, h("p-button", { icon: 'calendar', iconOnly: true, size: 'sm', slot: 'trigger', tabIndex: -1, variant: 'secondary', onClick: () => this._setToday() })))), this.mode !== 'year' && (h("p-button", { disabled: !this._canSetAmount(nextType, 1) || this._view == 'year', icon: 'caret', iconRotate: -90, size: 'sm', tabIndex: -1, variant: 'secondary', iconOnly: true, onClick: () => nextFn(1) }))));
|
|
258
258
|
}
|
|
259
259
|
_setYear(year) {
|
|
260
260
|
const date = dateFnsExports.setYear(this._viewDate, year);
|
|
@@ -57,7 +57,7 @@ const CardHeader = class {
|
|
|
57
57
|
variant: this.variant,
|
|
58
58
|
}) }, h("div", { key: '3d56078ea79fdcb81461437dd3b8c66f712a5cef', class: content({
|
|
59
59
|
variant: this.variant,
|
|
60
|
-
}) }, this.icon ? (h("p-icon", { class: 'text-storm-300 dark:text-hurricane-200',
|
|
60
|
+
}) }, this.icon ? (h("p-icon", { class: 'text-storm-300 dark:text-hurricane-200', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (h("slot", { name: 'prefix' })), h("div", { key: 'e22fd58249b94c1824bfa82cb367bf780a5b99b7', class: title() }, h("span", { key: '5de7e320dd84436f9de735f503cae3cbab37b1d7', class: 'max-w-full overflow-hidden text-ellipsis' }, this.header?.length ? this.header : h("slot", null)), h("slot", { key: 'eb9e59d3d09f5e7488128d2ddb33d40f3724252e', name: 'content-suffix' })), h("div", { key: '934928145118a42aeef1008317c88a503bd58fe8', class: 'ml-auto flex items-center justify-end gap-4 empty:hidden' }, h("slot", { key: '915ac41cb6bf6e56bde59d61b8a9601e2c402094', name: 'suffix' }))), this.variant === 'default' ? (asBoolean(this.divider) && (h("p-divider", { class: 'text-off-white-700 dark:text-white/15' }))) : (h("div", { class: 'pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full overflow-hidden rounded-t-2xl' }, h("p-smile", { class: 'dark:text-hurricane-400', variant: 'card' }))))));
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
CardHeader.style = cardHeaderComponentCss();
|
|
@@ -114,9 +114,9 @@ const Checkbox = class {
|
|
|
114
114
|
}
|
|
115
115
|
render() {
|
|
116
116
|
const id = this.id?.length ? this.id : this._nonce;
|
|
117
|
-
return (h(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, h("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51',
|
|
117
|
+
return (h(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, h("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51', class: 'group/p-checkbox flex items-center justify-start gap-2', htmlFor: id }, h("div", { key: '0302b3c44cef3973eba59676a4fbafc8ffe7ec30', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: 'ce840a43c8406e09930e5b64d9c7953f2e6834d6', checked: asBoolean(this.checked), class: checkbox({
|
|
118
118
|
disabled: asBoolean(this.disabled),
|
|
119
|
-
}),
|
|
119
|
+
}), disabled: asBoolean(this.disabled), id: id, indeterminate: asBoolean(this.indeterminate), name: this.name, required: asBoolean(this.required), type: 'checkbox', onChange: ev => this._onChange(ev) }), h("div", { key: '85129e843c23d91173f748031191e33f96c08491', class: iconContainer({
|
|
120
120
|
disabled: asBoolean(this.disabled),
|
|
121
121
|
}) }, h("p-icon", { key: 'c649d245d7184a33c235b65aaa2cc282cb5d3b56', class: icon({
|
|
122
122
|
disabled: asBoolean(this.disabled),
|
|
@@ -270,12 +270,12 @@ const Dropdown = class {
|
|
|
270
270
|
this._checkItems();
|
|
271
271
|
}
|
|
272
272
|
render() {
|
|
273
|
-
return (h(Host, { key: 'a4b635c184cc8a58c74f1ba5dbb5f455df1a7b86', class: 'relative' }, h("div", { key: 'd0d1a3f05d117bb2b3a28022e8737fae2f25fcb3', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '5697825e61fb1c07139663c6c5ac400c48da998a', name: 'trigger' })), h("div", { key: '815b60a51d6b074e878eab047cac77cce5a3e337', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '60bf00e8beb6e42e7629b57283d317bfe0a2b40a',
|
|
273
|
+
return (h(Host, { key: 'a4b635c184cc8a58c74f1ba5dbb5f455df1a7b86', class: 'relative' }, h("div", { key: 'd0d1a3f05d117bb2b3a28022e8737fae2f25fcb3', class: 'trigger', onClick: () => this._triggerClickHandler() }, h("slot", { key: '5697825e61fb1c07139663c6c5ac400c48da998a', name: 'trigger' })), h("div", { key: '815b60a51d6b074e878eab047cac77cce5a3e337', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '60bf00e8beb6e42e7629b57283d317bfe0a2b40a', allowOverflow: this.allowOverflow, class: cn(dropdownContainerClass({
|
|
274
274
|
strategy: this.strategy,
|
|
275
275
|
maxWidth: this.applyMaxWidth,
|
|
276
276
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
277
277
|
isDatepicker: this.isDatepicker,
|
|
278
|
-
}), this.containerClass),
|
|
278
|
+
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '34a4da54cb7e3949a494b028b6188b9655b294c2', name: 'items' })))));
|
|
279
279
|
}
|
|
280
280
|
_checkButtons(active = false) {
|
|
281
281
|
if (!this.applyChevron) {
|
|
@@ -51,9 +51,9 @@ const ContentSlider = class {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
|
-
return (h(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, h("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
54
|
+
return (h(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, h("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, ref: el => (this._sliderRef = el), style: {
|
|
55
55
|
height: `${this._outerHeight}px`,
|
|
56
|
-
},
|
|
56
|
+
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: 'cb82eacdfc02898e9eeaff865b5e7fa7da69a2f9', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: 'e6e5636ba8ed11665e0d623bcffb8a53bba03908', onSlotchange: () => this._slotChange() }))), h("div", { key: '9d596407cda3aaa5cbae5c0a0a19209623627edd', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (h("div", { class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}`, onClick: () => this._scrollTo(i, true) }, h("div", { class: cn('block h-2 w-2 rounded-full', {
|
|
57
57
|
'bg-indigo-600': i === this._visibleIndex,
|
|
58
58
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
59
59
|
}) })))))));
|
|
@@ -2846,7 +2846,7 @@ const Cropper = class {
|
|
|
2846
2846
|
const themeColor = state.theme === 'dark'
|
|
2847
2847
|
? 'rgba(70, 75, 84, 0.5)'
|
|
2848
2848
|
: 'rgba(255, 255, 255, 0.5)';
|
|
2849
|
-
return (h(ThemedHost, { key: 'dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7' }, this._loaded && (h("cropper-canvas", { key: 'cb359d80b35eae4aa2e58c75bed8ccd5a15b2df2', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200', onAction: () => this._onAction() }, h("cropper-image", { key: '8a96ad1f1f11adc4a8291a1376f329af52c3d920',
|
|
2849
|
+
return (h(ThemedHost, { key: 'dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7' }, this._loaded && (h("cropper-canvas", { key: 'cb359d80b35eae4aa2e58c75bed8ccd5a15b2df2', class: 'h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700 bg-white dark:border-hurricane-200', onAction: () => this._onAction() }, h("cropper-image", { key: '8a96ad1f1f11adc4a8291a1376f329af52c3d920', alt: 'Picture', crossorigin: 'anonymous', ref: ref => this._setImageRef(ref), src: this.value, scalable: true, translatable: true }), h("cropper-shade", { key: '1b375fe73b98ec31776ba4762e10781a1c33117b', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: 'ae41c83bf91f714beb89b79998c2636ffe837f51', "aspect-ratio": '1', "initial-coverage": '0.7', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '45148a814f6b3d1f04e94c0a8ee756b31d6dc7cb', action: 'move', plain: true }))), h("p-range", { key: 'b215e5dfc3aea8cae98d85dc590436a52c667c28', class: 'w-full px-14 tablet:max-w-xs tablet:px-1', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
2850
2850
|
}
|
|
2851
2851
|
_setImageRef(ref) {
|
|
2852
2852
|
if (this._imageRef || !ref) {
|
|
@@ -219,16 +219,16 @@ const Datepicker = class {
|
|
|
219
219
|
this.parseValue(this.value);
|
|
220
220
|
}
|
|
221
221
|
render() {
|
|
222
|
-
return (h("p-dropdown", { key: 'c65daeff45afabeefa654b8d033a40d9fda5b4e2', allowOverflow: true,
|
|
223
|
-
dateFnsExports.format(this.
|
|
222
|
+
return (h("p-dropdown", { key: 'c65daeff45afabeefa654b8d033a40d9fda5b4e2', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: '09aaa8a320e9a1852171aa59054a9b269667addb', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: 'f63ca80f15e52a5824a51e997f7b45664104a196', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', max: this.maxDate &&
|
|
223
|
+
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
224
224
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
225
225
|
}), min: this._minDate &&
|
|
226
226
|
dateFnsExports.format(new Date(this._minDate), 'yyyy-MM-dd', {
|
|
227
227
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
228
|
-
}),
|
|
229
|
-
dateFnsExports.format(
|
|
228
|
+
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
229
|
+
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
230
230
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
231
|
-
}) })), h("div", { key: 'f57a7045507cc0bf0bb2ae070258c0d4ed1af81f',
|
|
231
|
+
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: 'f57a7045507cc0bf0bb2ae070258c0d4ed1af81f', slot: 'items', tabIndex: -1 }, h("p-calendar", { key: '469d4b2a4c2972a0bfb621d85a67fb3d8c3c3e83', disableWeekends: this.disableWeekends, disabledDates: this.disabledDates, enableToday: this.enableToday, maxDate: this.maxDate, minDate: this.minDate, mode: this.mode, preselectToday: this.preselectToday, todayText: this.todayText, value: this._value, variant: 'embedded', onValueChange: ({ detail }) => (this.value = detail) }))));
|
|
232
232
|
}
|
|
233
233
|
documentClickHandler({ target }) {
|
|
234
234
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -75,7 +75,7 @@ const DrawerHeader = class {
|
|
|
75
75
|
*/
|
|
76
76
|
close;
|
|
77
77
|
render() {
|
|
78
|
-
return (h(ThemedHost, { key: '22b70fd5ecc48cca0e7889bf5fa8167f6063b471' }, h("div", { key: 'b19d3cce208759e68446ade1baa02a95286aaf51', class: header() }, h("div", { key: 'b5a28ec7d297cb8d9c71ebfb5bf7f652434a438b', class: content() }, this.showClose && (h("p-button", { key: '9e1d4d71e3f1c4efd65d5639d388f72e628ec81c',
|
|
78
|
+
return (h(ThemedHost, { key: '22b70fd5ecc48cca0e7889bf5fa8167f6063b471' }, h("div", { key: 'b19d3cce208759e68446ade1baa02a95286aaf51', class: header() }, h("div", { key: 'b5a28ec7d297cb8d9c71ebfb5bf7f652434a438b', class: content() }, this.showClose && (h("p-button", { key: '9e1d4d71e3f1c4efd65d5639d388f72e628ec81c', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) })), h("div", { key: '6906eb28f9fd9f63b49921da0f3b49c20b9ab665', class: title() }, h("slot", { key: '62d673dae21712e3e2919618e518869172f82db2' })), this.showClose && h("div", { key: '451411cc086c5b6c366313d38bfb277cafebe138', class: 'size-8' })), h("p-smile", { key: 'd1d4ae0aa65e5d9d91819da89bbaf7598d145ca3', class: 'dark:text-hurricane-400' }))));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
DrawerHeader.style = drawerHeaderComponentCss();
|
|
@@ -56,7 +56,7 @@ const Drawer = class {
|
|
|
56
56
|
}
|
|
57
57
|
const headerContent = h("slot", { name: 'header' });
|
|
58
58
|
const bodyContent = h("slot", { name: 'content' });
|
|
59
|
-
return (h("p-backdrop", {
|
|
59
|
+
return (h("p-backdrop", { applyBlur: this.applyBlur, closing: this._closing, scrollLock: this.scrollLock, variant: 'drawer', onClicked: ev => this._backdropClick(ev.detail) }, h("p-drawer-container", { closing: this._closing }, (this.header?.length || this._hasHeaderSlot) && (h("p-drawer-header", { "show-close": this.showClose, onClose: ev => this.close(ev.detail, 'close') }, this._hasHeaderSlot ? headerContent : this.header)), h("p-drawer-body", null, bodyContent))));
|
|
60
60
|
}
|
|
61
61
|
_backdropClick(ev) {
|
|
62
62
|
if (!this.backdropClickClose) {
|
|
@@ -146,7 +146,7 @@ const FloatingMenuContainer = class {
|
|
|
146
146
|
render() {
|
|
147
147
|
return (h(ThemedHost, { key: 'b68d74e35de85f5b14b30d1c6649f4a2449c7b04' }, h("div", { key: '1cdae9d4705acc85650b593a8f200e8b6e791261', class: container$1({
|
|
148
148
|
enableAmountSelected: this.enableAmountSelected,
|
|
149
|
-
}) }, this.enableAmountSelected && (h(Fragment, { key: '4fb6df02b5af8b38ce42f6af67846f88de9ea47b' }, h("p", { key: 'faf5b2587318c74afaa210f845f5e171323bb56d', class: amountSelected() }, this.amountSelectedTemplate(this.amount)), h("p-divider", { key: '1c0ecb274c5ff16476be4422f3bc90f9b26e1a22', class: 'mx-0 h-4 text-storm-400', variant: 'vertical' }))), h("div", { key: 'ca40fbbbf5cb4b0293f06e9dcb75680474009cf5', class: 'flex items-center' }, this.usedInTable ? h("slot", { name: 'floating-menu-item' }) : h("slot", null), this.enableClose && (h("p-floating-menu-item", { key: 'c8716fd6671726b5afe2b9d045c65495ae22e01b', onClick: ev => this.close.emit(ev)
|
|
149
|
+
}) }, this.enableAmountSelected && (h(Fragment, { key: '4fb6df02b5af8b38ce42f6af67846f88de9ea47b' }, h("p", { key: 'faf5b2587318c74afaa210f845f5e171323bb56d', class: amountSelected() }, this.amountSelectedTemplate(this.amount)), h("p-divider", { key: '1c0ecb274c5ff16476be4422f3bc90f9b26e1a22', class: 'mx-0 h-4 text-storm-400', variant: 'vertical' }))), h("div", { key: 'ca40fbbbf5cb4b0293f06e9dcb75680474009cf5', class: 'flex items-center' }, this.usedInTable ? h("slot", { name: 'floating-menu-item' }) : h("slot", null), this.enableClose && (h("p-floating-menu-item", { key: 'c8716fd6671726b5afe2b9d045c65495ae22e01b', icon: 'negative', onClick: ev => this.close.emit(ev) }))))));
|
|
150
150
|
}
|
|
151
151
|
async _setLocales() {
|
|
152
152
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -216,7 +216,7 @@ const TableCell = class {
|
|
|
216
216
|
}
|
|
217
217
|
_getContent() {
|
|
218
218
|
if (this.variant === 'loading') {
|
|
219
|
-
return (h("p-loader", {
|
|
219
|
+
return (h("p-loader", { class: 'h-6 w-[calc(100%-1rem)] flex-1 rounded', variant: 'ghost' }));
|
|
220
220
|
}
|
|
221
221
|
const align = this.variant === 'header'
|
|
222
222
|
? (this.definition.headerAlign ?? this.definition.align)
|
|
@@ -358,7 +358,7 @@ const TableFooter = class {
|
|
|
358
358
|
hidden: this._hidden,
|
|
359
359
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
360
360
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
361
|
-
this.total > 0 && (h("p-pagination", { key: '9bbe8d8de8dce310f2799829469b6826642aa295', class: 'z-[2]',
|
|
361
|
+
this.total > 0 && (h("p-pagination", { key: '9bbe8d8de8dce310f2799829469b6826642aa295', class: 'z-[2]', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this._changePageSize(detail), onPagesChange: ({ detail }) => (this._hasPaginationPages = detail > 1) })))));
|
|
362
362
|
}
|
|
363
363
|
_changePageSize(s) {
|
|
364
364
|
if (!s) {
|
|
@@ -9980,21 +9980,21 @@ const TableHeader = class {
|
|
|
9980
9980
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
9981
9981
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
9982
9982
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
9983
|
-
return (h(ThemedHost, { key: 'dcf65ce62e7dc90f0c45e7748fd23872f21e7fad' }, h("div", { key: '3082ccae779f57c8812afc4b2400b20c87dd22a0', class: header() }, this.loading && (h("p-loader", { key: 'cbcf94e4afb27f7ee22b4adfbcadd9d72db2a189',
|
|
9983
|
+
return (h(ThemedHost, { key: 'dcf65ce62e7dc90f0c45e7748fd23872f21e7fad' }, h("div", { key: '3082ccae779f57c8812afc4b2400b20c87dd22a0', class: header() }, this.loading && (h("p-loader", { key: 'cbcf94e4afb27f7ee22b4adfbcadd9d72db2a189', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex', variant: 'ghost' })), !this.loading &&
|
|
9984
9984
|
(hasCustomFilterSlot || quickFilters.length > 0) && (h("div", { key: '04c40b4406a49b0faf09c1e72ffe0d3b64e54548', class: 'flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row' }, hasCustomFilterSlot && h("slot", { key: '409423868e33814d87381c29d41cfede57deead0', name: 'custom-filter' }), quickFilters.length > 0 && (h("p-segment-container", { key: '51c257a5ad8c65e84dac192b86c2cb291435884e', class: 'hidden desktop-xs:flex' }, quickFilters.map(item => (h("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
9985
9985
|
? item.text
|
|
9986
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '6f8295a5c359b799f2f03d82e65d4f9e4acb5109', class: 'flex flex-col justify-end gap-2 desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center' }, this.enableSearch && (h("p-field", { key: 'e52e1dbe939f318c711e0f5ae25e8c667f6fcf31',
|
|
9986
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), h("div", { key: '6f8295a5c359b799f2f03d82e65d4f9e4acb5109', class: 'flex flex-col justify-end gap-2 desktop-xs:ml-auto desktop-xs:flex-row desktop-xs:items-center' }, this.enableSearch && (h("p-field", { key: 'e52e1dbe939f318c711e0f5ae25e8c667f6fcf31', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), h("div", { key: 'b914ffa439de0484c5528fa9c02b4a32dc853c27', class: 'flex items-center gap-2' }, this.enableFilter && (h("p-button", { key: '5ea25448415e1b54883dc86059192b065cb23093', class: `w-full ${this.enableFilterDesktop
|
|
9987
9987
|
? 'desktop-xs:w-auto'
|
|
9988
|
-
: 'desktop-xs:hidden'}`, onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
9988
|
+
: 'desktop-xs:hidden'}`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
9989
9989
|
? this.filterButtonTemplate()
|
|
9990
9990
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
9991
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '38dc1a4aa1902f41b4b3e3cb85da7d442fc98fd0',
|
|
9991
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (h("p-divider", { key: '38dc1a4aa1902f41b4b3e3cb85da7d442fc98fd0', class: 'hidden h-4 tablet:flex dark:text-white/15', variant: 'vertical' })), !this.loading && this.enableExport && (h("p-button", { key: 'f8180ecb38e763dc2cf045c3c8e33ed276d591ab', class: 'desktop-xs:auto w-full', icon: 'upload', variant: 'secondary', onOnClick: () => this.export.emit() }, formatTranslation(this._locales.export)))), this.enableAction && this._buttonTemplate(), hasCustomActionsSlot && h("slot", { key: '24b7bee12f89bb16e4e4d690ee03564fcd106638', name: 'custom-actions' })), this.enableAction && this.canUseAction && (h("div", { key: '6c3739a262107b564f6418a605ba6e16943c2c36', class: 'fixed bottom-0 left-0 z-[2] block w-full border border-solid border-transparent bg-white p-4 desktop-xs:hidden dark:border-t-hurricane-400 dark:bg-hurricane-500' }, this._buttonTemplate(true))))));
|
|
9992
9992
|
}
|
|
9993
9993
|
async _setLocales() {
|
|
9994
9994
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
9995
9995
|
}
|
|
9996
9996
|
_buttonTemplate(mobile = false) {
|
|
9997
|
-
return (h("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', icon: this.actionIcon,
|
|
9997
|
+
return (h("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', disabled: !this.canUseAction, icon: this.actionIcon, loading: this.actionLoading, onOnClick: () => this.action.emit() }, this.actionButtonTemplate
|
|
9998
9998
|
? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)
|
|
9999
9999
|
: this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
10000
10000
|
}
|
|
@@ -346,17 +346,17 @@ const Field = class {
|
|
|
346
346
|
}
|
|
347
347
|
render() {
|
|
348
348
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
349
|
-
return (h(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, h("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
350
|
-
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label,
|
|
349
|
+
return (h(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, h("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
350
|
+
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '597e07f1227421eb34575f2c35a5f752f60a66a3', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '0ec1fd3a079f51c605b593e90d8514119ae0ffa3', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'c71b52f8f6f8fc374e9d7e0c2ed4f838c9f9cb86', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'd62e1c5f5592540dacbb2e18cf5cc560efbbc5a4', name: 'error', slot: 'error' })), h("div", { key: '7d30604708a80bd509b5d739e46d82b5fa23b464', class: field({
|
|
351
351
|
error: !!this.error?.length,
|
|
352
352
|
disabled: asBoolean(this.disabled),
|
|
353
353
|
focused: asBoolean(this.focused) || this._focused,
|
|
354
354
|
size: this.size,
|
|
355
355
|
variant: this.variant,
|
|
356
356
|
isTextarea: this.type === 'textarea',
|
|
357
|
-
}), title: this.variant === 'read' && !hasValueSlot
|
|
357
|
+
}), slot: 'content', title: this.variant === 'read' && !hasValueSlot
|
|
358
358
|
? `${this.value}`
|
|
359
|
-
: undefined
|
|
359
|
+
: undefined }, (this.error?.length ||
|
|
360
360
|
prefix ||
|
|
361
361
|
(this.icon && this.iconPosition === 'start')) && (h("div", { key: 'b4b203ba8f20620b2d7f368d2c6367bdadea9878', class: prefixAndSuffix({
|
|
362
362
|
variant: this.variant,
|
|
@@ -368,7 +368,7 @@ const Field = class {
|
|
|
368
368
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
369
369
|
this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
370
370
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
371
|
-
}), variant: this.error?.length ? 'warning' : this.icon
|
|
371
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '5fe27dcdc61d7ba5646ecd6e062ad51f808dc4dd', class: prefixAndSuffix({
|
|
372
372
|
variant: this.variant,
|
|
373
373
|
error: !!this.error?.length,
|
|
374
374
|
disabled: asBoolean(this.disabled),
|
|
@@ -377,7 +377,7 @@ const Field = class {
|
|
|
377
377
|
isTextarea: this.type === 'textarea',
|
|
378
378
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: cn('flex', {
|
|
379
379
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
380
|
-
}),
|
|
380
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (suffix)))))));
|
|
381
381
|
}
|
|
382
382
|
watchvalue(value) {
|
|
383
383
|
if (!this._inputRef) {
|
|
@@ -452,7 +452,7 @@ const Field = class {
|
|
|
452
452
|
}
|
|
453
453
|
_getContent(hasValueSlot = false, id) {
|
|
454
454
|
if (this.variant === 'read') {
|
|
455
|
-
return hasValueSlot ? (h("slot", { name: 'value' })) : !!this.value && `${this.value}`.length > 0 ? (this.value) : this.showAddOnEmpty ? (h("p-button", {
|
|
455
|
+
return hasValueSlot ? (h("slot", { name: 'value' })) : !!this.value && `${this.value}`.length > 0 ? (this.value) : this.showAddOnEmpty ? (h("p-button", { icon: 'plus', size: 'sm', variant: 'text', onClick: () => this.add.emit() }, this.addText)) : ('—');
|
|
456
456
|
}
|
|
457
457
|
if (this.type === 'slot') {
|
|
458
458
|
return h("slot", { name: 'input' });
|
|
@@ -476,7 +476,7 @@ const Field = class {
|
|
|
476
476
|
if (this.type === 'textarea') {
|
|
477
477
|
return (h("textarea", { ref: ref => this._setInputRef(ref), ...props, ...properties }));
|
|
478
478
|
}
|
|
479
|
-
return (h("input", {
|
|
479
|
+
return (h("input", { ref: ref => this._setInputRef(ref), type: this.type, ...props, ...properties }));
|
|
480
480
|
}
|
|
481
481
|
_setInputRef(ref) {
|
|
482
482
|
this._inputRef = ref;
|
|
@@ -629,13 +629,13 @@ const FieldContainer = class {
|
|
|
629
629
|
}
|
|
630
630
|
render() {
|
|
631
631
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
632
|
-
let contentSlot = (h("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de',
|
|
632
|
+
let contentSlot = (h("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de', name: 'content', slot: 'trigger' }));
|
|
633
633
|
if (this.loading) {
|
|
634
|
-
contentSlot = (h("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788',
|
|
634
|
+
contentSlot = (h("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger', variant: 'ghost' }));
|
|
635
635
|
}
|
|
636
|
-
return (h(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, h("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1',
|
|
636
|
+
return (h(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, h("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1', class: cn('flex w-inherit flex-col gap-1', {
|
|
637
637
|
'cursor-auto': this.variant === 'read',
|
|
638
|
-
}) }, h("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
638
|
+
}), htmlFor: this.id }, h("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
639
639
|
'flex-row-reverse': this.align === 'end',
|
|
640
640
|
}) }, (!!label?.length || !!helper?.length) && (h("div", { key: '97d2b33bb04145650b000dde1859015361855fa3', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, h("span", { key: '4a2fc2b62dba4fc7d4a5f816944996333cff2ca3', class: 'min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200' }, label), helper && (h("p-helper", { key: '1638bb0c6c3683bd2bd0836b9f4fd0ca07561baf', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
641
641
|
hasHeaderSlot) && (h("div", { key: '4f9f56fc0951dab62bd75c4cc7ea724e17ec05aa', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
@@ -645,8 +645,8 @@ const FieldContainer = class {
|
|
|
645
645
|
'ml-auto': this.align === 'end',
|
|
646
646
|
'font-normal': this.variant === 'read',
|
|
647
647
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
648
|
-
}),
|
|
649
|
-
asBoolean(this.forceShowTooltip, false),
|
|
648
|
+
}), content: this.error, enableUserInput: false, placement: this.errorPlacement, show: errorAndErrorIsNotBoolean &&
|
|
649
|
+
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (h("slot", { key: '3670780d5e0907d655e282fbea6c43dcceea7e00', name: 'error', slot: 'content' })), contentSlot))));
|
|
650
650
|
}
|
|
651
651
|
async _setLocales() {
|
|
652
652
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -688,7 +688,7 @@ const Helper = class {
|
|
|
688
688
|
*/
|
|
689
689
|
placement = 'top';
|
|
690
690
|
render() {
|
|
691
|
-
return (h(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, h("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, h("p-icon", { key: 'e7c4d59174ec46413381af510485a890fcab91f8',
|
|
691
|
+
return (h(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, h("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, h("p-icon", { key: 'e7c4d59174ec46413381af510485a890fcab91f8', class: 'cursor-pointer text-storm-300 hover:text-storm-500 dark:text-hurricane-300 dark:hover:text-hurricane-200', size: 'sm', slot: 'trigger', variant: 'question-circle' }), h("div", { key: '1173d658220d127af6982fb2939f7493a84cf52d', slot: 'content' }, h("slot", { key: '53d7d9c9c9c919ba312dc57f92d68fdc5f6b385c' })))));
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
694
|
Helper.style = helperComponentCss();
|
|
@@ -104,7 +104,7 @@ const FloatingMenuItem = class {
|
|
|
104
104
|
return (h("p-icon", { class: icon({
|
|
105
105
|
hover: asBoolean(this.hover),
|
|
106
106
|
disabled: asBoolean(this.disabled),
|
|
107
|
-
}),
|
|
107
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
FloatingMenuItem.style = floatingMenuItemComponentCss();
|
|
@@ -81,7 +81,7 @@ const Label = class {
|
|
|
81
81
|
variant: this.variant,
|
|
82
82
|
iconOnly: this.iconOnly,
|
|
83
83
|
keepMobileContent: this.keepMobileContent,
|
|
84
|
-
}) }, this.icon && (h("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0',
|
|
84
|
+
}) }, this.icon && (h("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (h("div", { key: 'd0b89fc24b7304a8e61e5157bcf4bdae3bdb26ca', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
|
|
85
85
|
hidden: !this.keepMobileContent,
|
|
86
86
|
'desktop-xs:block': !this.keepMobileContent,
|
|
87
87
|
}) }, h("slot", { key: 'ad87aa170cc6f7980678a1cfc25f5dbdf510127e' }))))));
|
|
@@ -124,7 +124,7 @@ const ModalHeader = class {
|
|
|
124
124
|
*/
|
|
125
125
|
close;
|
|
126
126
|
render() {
|
|
127
|
-
return (h(ThemedHost, { key: '61310ca15062863fa75788e8621c845829835a83' }, h("div", { key: '45d347c0906fb178470a22ee073f78d2c83a625d', class: header() }, h("div", { key: 'cd7903f26712a92149166a9016f397701c216ee3', class: content() }, h("div", { key: 'e1aa409159b2c19f97682ba5de0ebcdbca799e7a', class: title() }, h("slot", { key: '605016d68fa57dde900543c0cee048f078613fa7' })), this.showClose && (h("p-button", { key: '885ebd89b2f63609e658debad4137df0dfb03b8c',
|
|
127
|
+
return (h(ThemedHost, { key: '61310ca15062863fa75788e8621c845829835a83' }, h("div", { key: '45d347c0906fb178470a22ee073f78d2c83a625d', class: header() }, h("div", { key: 'cd7903f26712a92149166a9016f397701c216ee3', class: content() }, h("div", { key: 'e1aa409159b2c19f97682ba5de0ebcdbca799e7a', class: title() }, h("slot", { key: '605016d68fa57dde900543c0cee048f078613fa7' })), this.showClose && (h("p-button", { key: '885ebd89b2f63609e658debad4137df0dfb03b8c', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) }))), h("p-smile", { key: 'f461107c6a15c7c58e5944b0b19e54ff0ce88305', class: 'dark:text-hurricane-400' }))));
|
|
128
128
|
}
|
|
129
129
|
};
|
|
130
130
|
ModalHeader.style = modalHeaderComponentCss();
|
|
@@ -61,7 +61,7 @@ const Modal = class {
|
|
|
61
61
|
const headerContent = h("slot", { name: 'header' });
|
|
62
62
|
const bodyContent = h("slot", { name: 'content' });
|
|
63
63
|
const footerContent = h("slot", { name: 'footer' });
|
|
64
|
-
return (h("p-backdrop", { applyBlur: this.applyBlur,
|
|
64
|
+
return (h("p-backdrop", { applyBlur: this.applyBlur, closing: this._closing, scrollLock: this.scrollLock, onClicked: ev => this._backdropClick(ev.detail) }, h("p-modal-container", { closing: this._closing, size: this.size }, (this.header?.length || this._hasHeaderSlot) && (h("p-modal-header", { showClose: this.showClose, onClose: ev => this.close('button', ev.detail) }, this._hasHeaderSlot ? headerContent : this.header)), h("p-modal-body", { roundedBottom: !this._hasFooterSlot, roundedTop: !this._hasHeaderSlot && !this.header?.length }, bodyContent), this._hasFooterSlot && (h("p-modal-footer", null, footerContent)))));
|
|
65
65
|
}
|
|
66
66
|
_backdropClick(ev) {
|
|
67
67
|
if (!this.backdropClickClose) {
|
|
@@ -52,7 +52,7 @@ const Navbar = class {
|
|
|
52
52
|
}
|
|
53
53
|
_show = false;
|
|
54
54
|
render() {
|
|
55
|
-
return (h(ThemedHost, { key: 'ee599d3472ef0a332d17353d8e7f559e36d5529b' }, h("p-backdrop", { key: 'aa5b71247881e2a23998bab23f194ff6f58a6662', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '121da670f6b7dbbfbce4a018c56b56ac1352c212', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'e789b6c904b4715c271e03324d8e8643acd5d8a8', class: 'flex w-full items-center justify-end layout-1280:hidden' }, h("p-button", { key: '9d6f49157fc731f91ff34bc7e37aebe40c5d0612',
|
|
55
|
+
return (h(ThemedHost, { key: 'ee599d3472ef0a332d17353d8e7f559e36d5529b' }, h("p-backdrop", { key: 'aa5b71247881e2a23998bab23f194ff6f58a6662', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '121da670f6b7dbbfbce4a018c56b56ac1352c212', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'e789b6c904b4715c271e03324d8e8643acd5d8a8', class: 'flex w-full items-center justify-end layout-1280:hidden' }, h("p-button", { key: '9d6f49157fc731f91ff34bc7e37aebe40c5d0612', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: 'c88909335eed7df5a93b32a65d24b1a8ff2a3f19', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: 'e09b2eaefb99e51502f3629c377728d298b0e8d9', name: 'company' })), h("div", { key: '2ce82f037a53e8529d834958812d74f3cdd25ef2', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: 'eaf615dd6f9d5b8fb260fe5a10c43b1e0b6f52c0', name: 'content' })), h("div", { key: '9b8bedc34ab2bcbe8935426007b6fd8c2d33c177', class: 'mt-auto hidden w-full flex-shrink-0 flex-col layout-1280:flex' }, h("slot", { key: '7a4889a2554cad25f9e8be122863fb5c2783376d', name: 'user' }))), h("div", { key: 'e9d88767781757f7fc81c772fbe750a15a03fa6c', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '3517c55339958c4461f20b190c220358658a71cf', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: 'b89f63dfbeba643e3f46f72e6862944ba75f1213', name: 'topbar' }))));
|
|
56
56
|
}
|
|
57
57
|
handleCloseNavbar() {
|
|
58
58
|
this._show = false;
|
|
@@ -81,7 +81,7 @@ const Pagination = class {
|
|
|
81
81
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
82
82
|
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '5812bfaaee47936e0f1d910c4da0421589e5cf9b' }, h("p-pagination-size", { key: '2fe1f8e733d96ef2843d184f17c02b2db44b3fb5', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
83
83
|
this.hideOnSinglePage &&
|
|
84
|
-
this._hasPaginationPages && (h("p-divider", { key: 'fa14cc1d718604f931f95ee9d2accd28b1bf43e7',
|
|
84
|
+
this._hasPaginationPages && (h("p-divider", { key: 'fa14cc1d718604f931f95ee9d2accd28b1bf43e7', class: 'mx-0 h-4 text-off-white-700 dark:text-hurricane-400', variant: 'vertical' })))), this.enablePaginationPages && (h("p-pagination-pages", { key: '265840dfb523c4330e5c44a00fe28d9397f7b45c', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
85
85
|
this._hasPaginationPages = detail > 1;
|
|
86
86
|
this.pagesChange.emit(detail);
|
|
87
87
|
} })))));
|
|
@@ -161,19 +161,19 @@ const PaginationPages = class {
|
|
|
161
161
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
162
162
|
}) }, this._set?.map(p => {
|
|
163
163
|
if (p.type === 'previous' || p.type === 'next') {
|
|
164
|
-
return (h("p-pagination-pages-item", {
|
|
164
|
+
return (h("p-pagination-pages-item", { disabled: this._carouselDisabled(p.type), variant: 'carousel', onClick: () => p.type === 'previous'
|
|
165
165
|
? this._previousClick()
|
|
166
166
|
: this._nextClick() }, p.value));
|
|
167
167
|
}
|
|
168
168
|
if (p.type === 'ellipsis') {
|
|
169
|
-
return (h("p-dropdown", { placement: 'top',
|
|
169
|
+
return (h("p-dropdown", { applyChevron: false, insideClick: true, placement: 'top', ref: el => (this._dropdowns[p.dropdownIndex] = el), show: this._showDropdown[p.dropdownIndex], onIsOpen: ({ detail }) => this._onShowDropdown(detail, p.dropdownIndex) }, h("p-pagination-pages-item", { slot: 'trigger' }, "..."), p.options?.slice(0, 5).map(v => (h("p-dropdown-menu-item", { autoHeight: true, slot: 'items', variant: 'pagination', onClick: () => this._pageClick(v) }, this.dropdownPageTemplate
|
|
170
170
|
? this.dropdownPageTemplate(v)
|
|
171
171
|
: this._defaultDropdownPageTemplate(v)))), p.options?.length > 5 &&
|
|
172
|
-
this._showDropdown[p.dropdownIndex] && (h("p-field", { class: 'mt-2 w-28',
|
|
172
|
+
this._showDropdown[p.dropdownIndex] && (h("p-field", { autoFocus: true, class: 'mt-2 w-28', icon: 'enter-key', iconPosition: 'end', properties: {
|
|
173
173
|
min: 1,
|
|
174
174
|
max: this._pages.length,
|
|
175
175
|
step: 1,
|
|
176
|
-
},
|
|
176
|
+
}, size: 'sm', slot: 'items', type: 'number', onEnter: ({ detail }) => this._enterPress(detail) }))));
|
|
177
177
|
}
|
|
178
178
|
return (h("p-pagination-pages-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
179
179
|
}))));
|
|
@@ -286,11 +286,11 @@ const PaginationPages = class {
|
|
|
286
286
|
const set = [];
|
|
287
287
|
const previous = {
|
|
288
288
|
type: 'previous',
|
|
289
|
-
value: (h("p-icon", {
|
|
289
|
+
value: (h("p-icon", { rotate: 90, size: 'sm', variant: 'caret' })),
|
|
290
290
|
};
|
|
291
291
|
const next = {
|
|
292
292
|
type: 'next',
|
|
293
|
-
value: (h("p-icon", {
|
|
293
|
+
value: (h("p-icon", { rotate: -90, size: 'sm', variant: 'caret' })),
|
|
294
294
|
};
|
|
295
295
|
// Disable page range, display all the pages
|
|
296
296
|
if (range === null) {
|
|
@@ -438,7 +438,7 @@ const PaginationSize = class {
|
|
|
438
438
|
this._setLocales();
|
|
439
439
|
}
|
|
440
440
|
render() {
|
|
441
|
-
return (h(ThemedHost, { key: '1062e4a018038b23e5514a50f9fa658b6fae7010', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '521979380d535dcd911c26b881338ddaaf3e7344', applyFullWidth: true, applyMaxWidth: false,
|
|
441
|
+
return (h(ThemedHost, { key: '1062e4a018038b23e5514a50f9fa658b6fae7010', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, h("p-dropdown", { key: '521979380d535dcd911c26b881338ddaaf3e7344', applyFullWidth: true, applyMaxWidth: false, chevronDirection: 'down', placement: 'top-start', onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, h("div", { key: '81cdccac14a27636661d30889d5894a9fb5d7ce6', class: trigger({
|
|
442
442
|
active: this.dropdownIsOpen,
|
|
443
443
|
}), slot: 'trigger' }, h("p", { key: '3477755b3365205fef5a3e3f8f465f0d1d41ddd1', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
444
444
|
? this.itemTemplate(this.size)
|
|
@@ -449,7 +449,7 @@ const PaginationSize = class {
|
|
|
449
449
|
], {
|
|
450
450
|
'text-storm-300 dark:text-hurricane-200': !this.dropdownIsOpen,
|
|
451
451
|
'text-storm-500 dark:text-white': !!this.dropdownIsOpen,
|
|
452
|
-
}),
|
|
452
|
+
}), size: 'sm', variant: 'double-caret' })), h("slot", { key: '4ac113bf401a0a3019c6430a58f5cfd8a153e5c4', slot: 'items' }, this.sizeOptions.map(option => (h("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
453
453
|
? this.itemTemplate(option)
|
|
454
454
|
: this._defaultItemTemplate(option))))))));
|
|
455
455
|
}
|
|
@@ -33,7 +33,7 @@ const Profile = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const content = this._getContent();
|
|
36
|
-
return (h(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (h("p-dropdown", {
|
|
36
|
+
return (h(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
37
37
|
}
|
|
38
38
|
slotchange() {
|
|
39
39
|
this._checkDropdownSlot();
|