@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
package/hydrate/index.mjs
CHANGED
|
@@ -11568,7 +11568,7 @@ class Accordion {
|
|
|
11568
11568
|
return (hAsync(ThemedHost, { key: '36d39106bf27e5005cfdd96f062e89d3be88dbef' }, hAsync("div", { key: '55912f6dbbd9f44f9d86e0e1500d425d2d5fd16e', class: cn('flex cursor-pointer items-center gap-2', {
|
|
11569
11569
|
'text-storm-500 dark:text-white': this.variant === 'primary',
|
|
11570
11570
|
'text-storm-300 dark:text-hurricane-200': this.variant === 'secondary',
|
|
11571
|
-
}), onClick: () => this._onClick() }, hAsync("p-icon", { key: '73e31ff40f08654d9911562b67565a6494184460', class: 'flex shrink-0',
|
|
11571
|
+
}), onClick: () => this._onClick() }, hAsync("p-icon", { key: '73e31ff40f08654d9911562b67565a6494184460', class: 'flex shrink-0', rotate: this.open ? 0 : -90, variant: 'caret' }), hAsync("p", { key: '2a118c3e7bf94a59350c4cc6feeb2756217f4852', class: 'my-0 shrink-0 whitespace-nowrap text-base font-medium' }, this.header), hAsync("p-divider", { key: 'd6632e38605ee499d559bd40b48a735cbea9f160', class: 'flex-1' })), this.open && (hAsync("div", { key: '2707a0e53b0470485f3f05abf919b8c22199199e', class: 'mt-4' }, hAsync("slot", { key: '2686aa25fa66c990ec52d5f1f58eca7dd707d8f4' })))));
|
|
11572
11572
|
}
|
|
11573
11573
|
_onClick() {
|
|
11574
11574
|
if (!this.closeable && this.open) {
|
|
@@ -11701,30 +11701,30 @@ class Attachment {
|
|
|
11701
11701
|
render() {
|
|
11702
11702
|
let prefix = (hAsync("p-icon", { key: 'c32bd5160f16b5fe66dd6bdddc7abab643ecac69', class: 'text-storm-300', variant: 'attachment' }));
|
|
11703
11703
|
if (this.error) {
|
|
11704
|
-
prefix = (hAsync("p-icon", { key: '258cc04fd6a6ca24cc99fd4402740c600c845641',
|
|
11704
|
+
prefix = (hAsync("p-icon", { key: '258cc04fd6a6ca24cc99fd4402740c600c845641', class: 'text-negative-red-500', variant: 'warning' }));
|
|
11705
11705
|
}
|
|
11706
11706
|
// const isMobileDevice = isMobile();
|
|
11707
11707
|
const isMobileDevice = isTablet();
|
|
11708
11708
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
11709
|
-
return (hAsync(Fragment, { key: '2d4812f3d31f3cd0816628933c7f430526db82d6' }, hAsync("p-field-container", { key: '349206b933ad13c0f37cd07d2a8da5b7be1a5c06',
|
|
11709
|
+
return (hAsync(Fragment, { key: '2d4812f3d31f3cd0816628933c7f430526db82d6' }, hAsync("p-field-container", { key: '349206b933ad13c0f37cd07d2a8da5b7be1a5c06', error: this.error, forceShowTooltip: !!this.error?.length, helper: this.helper, label: this.label, required: this.required, variant: 'write' }, hAsync("div", { key: '59d1189891173772085e25882c3fcb474e459e0a', class: 'flex w-full items-start gap-2', slot: 'content' }, hAsync("div", { key: '41b8af0f2636db293df1e503effbd1ec7f97685b', class: attachment({
|
|
11710
11710
|
click: this.mode === 'write' && !this.value?.length,
|
|
11711
11711
|
error: !!this.error?.length,
|
|
11712
11712
|
}), onClick: () => this._uploadClick() }, prefix, hAsync("span", { key: 'd53642b51ad59ff0b5ccf497085ba81f4111bebf', class: cn(baseText, 'peer empty:hidden dark:text-white') }, this.value), hAsync("span", { key: '285839432a117ed07ad59c5d66e5784109ac5f79', class: cn(baseText, 'hidden peer-empty:block') }, this.placeholder)), hAsync("p-tooltip", { key: '1e5cd8b15e61316f678fb7b66af77969a3cb403a', class: 'w-8', content: this.mode === 'read'
|
|
11713
11713
|
? this.downloadTooltip
|
|
11714
11714
|
: this.value?.length
|
|
11715
11715
|
? this.deleteTooltip
|
|
11716
|
-
: this.uploadTooltip }, hAsync("p-button", { key: 'a0f090e19e177cff757ebae1fc2f5d1f4df8db68',
|
|
11716
|
+
: this.uploadTooltip }, hAsync("p-button", { key: 'a0f090e19e177cff757ebae1fc2f5d1f4df8db68', disabled: this.loading, icon: this.mode === 'read'
|
|
11717
11717
|
? 'download'
|
|
11718
11718
|
: this.value?.length
|
|
11719
11719
|
? 'trash'
|
|
11720
|
-
: 'upload',
|
|
11720
|
+
: 'upload', iconOnly: true, loading: this.loading, slot: 'trigger', variant: 'secondary', onOnClick: () => this.mode === 'write' && !this.value?.length
|
|
11721
11721
|
? this._uploadClick()
|
|
11722
11722
|
: (this.mode === 'read'
|
|
11723
11723
|
? this.download
|
|
11724
11724
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
11725
11725
|
this.mode === 'write' &&
|
|
11726
11726
|
isMobileDevice &&
|
|
11727
|
-
!this.value?.length && (hAsync("p-tooltip", { key: '2b41ef669b3fc1e58a394d847a30b1316f0e3a0d',
|
|
11727
|
+
!this.value?.length && (hAsync("p-tooltip", { key: '2b41ef669b3fc1e58a394d847a30b1316f0e3a0d', class: 'w-8 desktop-xs:hidden', content: this.cameraTooltip }, hAsync("p-button", { key: 'b3ddba24285c00e05397221a77f73a08164c6953', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), hAsync("input", { key: '5eec66f53142eb76391fbd626a01556470ce395a', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), hAsync("input", { key: '288987b14646880b3fbe960514e0b5915b421270', accept: 'image/*', capture: 'true', class: 'hidden', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
11728
11728
|
}
|
|
11729
11729
|
_uploadClick() {
|
|
11730
11730
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -11854,7 +11854,7 @@ class Avatar {
|
|
|
11854
11854
|
return (hAsync(Host, { key: '796c5d3f656f05a0fb841dc24ba3ffd443a690da', class: avatar({
|
|
11855
11855
|
size: this.size,
|
|
11856
11856
|
variant: this.variant,
|
|
11857
|
-
}) }, this._failed ? (hAsync("span", null, this.letters?.[0] ?? ' ')) : (hAsync("img", {
|
|
11857
|
+
}) }, this._failed ? (hAsync("span", null, this.letters?.[0] ?? ' ')) : (hAsync("img", { class: 'z-0 aspect-branding h-full rounded-full object-cover', src: this._src, onError: () => this._setFailed() }))));
|
|
11858
11858
|
}
|
|
11859
11859
|
_setFailed() {
|
|
11860
11860
|
this._failed = true;
|
|
@@ -12585,7 +12585,7 @@ class Button {
|
|
|
12585
12585
|
: 'button';
|
|
12586
12586
|
const hostClass = cn('p-button inline-block', this.class);
|
|
12587
12587
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
12588
|
-
return (hAsync(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, hAsync(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b',
|
|
12588
|
+
return (hAsync(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, hAsync(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b', class: button({
|
|
12589
12589
|
variant: this.variant,
|
|
12590
12590
|
size: this.size,
|
|
12591
12591
|
loading: asBoolean(this.loading),
|
|
@@ -12595,14 +12595,14 @@ class Button {
|
|
|
12595
12595
|
active,
|
|
12596
12596
|
error: asBoolean(this.error),
|
|
12597
12597
|
underline: asBoolean(this.underline) && VariableTag === 'a',
|
|
12598
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe',
|
|
12598
|
+
}), 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' && (hAsync("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.icon &&
|
|
12599
12599
|
this.iconPosition === 'start' &&
|
|
12600
12600
|
!(this.iconOnly && this.loading) &&
|
|
12601
12601
|
this._getIcon(), this.label ?? hAsync("slot", { key: '96401595325aecdfb14c77b5dce103a67d4d8da8' }), this.icon &&
|
|
12602
12602
|
this.iconPosition === 'end' &&
|
|
12603
12603
|
!this.loading &&
|
|
12604
12604
|
!this.chevron &&
|
|
12605
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (hAsync("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0',
|
|
12605
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (hAsync("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), this.loading && hAsync("p-loader", { key: 'f655d54d167b02f7e546962f182e61b3cec77ccc', color: loaderColor }))));
|
|
12606
12606
|
}
|
|
12607
12607
|
handleClick(ev) {
|
|
12608
12608
|
if (this.loading || this.disabled) {
|
|
@@ -12625,7 +12625,7 @@ class Button {
|
|
|
12625
12625
|
active: asBoolean(this.active),
|
|
12626
12626
|
error: asBoolean(this.error),
|
|
12627
12627
|
iconOnly: asBoolean(this.iconOnly),
|
|
12628
|
-
}), this.iconClass ?? ''),
|
|
12628
|
+
}), this.iconClass ?? ''), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
|
|
12629
12629
|
}
|
|
12630
12630
|
static get style() { return buttonComponentCss(); }
|
|
12631
12631
|
static get cmpMeta() { return {
|
|
@@ -88050,7 +88050,7 @@ class Calendar {
|
|
|
88050
88050
|
const daysInMonth = this._generateDaysInMonth();
|
|
88051
88051
|
return (hAsync("div", { class: view({ view: 'day' }) }, this._getHeader('day'), hAsync("div", { class: 'grid grid-cols-7 justify-between gap-1' }, this._weekDays.map(weekday => (hAsync("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', {
|
|
88052
88052
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
88053
|
-
})))), daysInMonth.map(day => day.active ? (hAsync("p-button", {
|
|
88053
|
+
})))), daysInMonth.map(day => day.active ? (hAsync("p-button", { class: cn('w-8', `col-start-${day.offset}`), tabIndex: -1, variant: 'primary', onClick: () => this._setValue(day.date) }, day.day)) : (hAsync("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', {
|
|
88054
88054
|
'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
|
|
88055
88055
|
'dark:text-hurricane-200': day.disabled,
|
|
88056
88056
|
}, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
@@ -88059,13 +88059,13 @@ class Calendar {
|
|
|
88059
88059
|
}
|
|
88060
88060
|
_getMonthView() {
|
|
88061
88061
|
const months = this._generateMonths();
|
|
88062
|
-
return (hAsync("div", { class: view({ view: 'month' }) }, this._getHeader('month'), hAsync("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (hAsync("p-button", { variant: month.active ? 'primary' : 'secondary',
|
|
88062
|
+
return (hAsync("div", { class: view({ view: 'month' }) }, this._getHeader('month'), hAsync("div", { class: 'flex flex-wrap items-start gap-2' }, months.map(month => (hAsync("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', {
|
|
88063
88063
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
88064
88064
|
})))))));
|
|
88065
88065
|
}
|
|
88066
88066
|
_getYearView() {
|
|
88067
88067
|
const years = this._generateYears();
|
|
88068
|
-
return (hAsync("div", { class: view({ view: 'year' }) }, this._getHeader('year'), hAsync("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (hAsync("p-button", { class: 'w-full', variant: year.active ? 'primary' : 'secondary',
|
|
88068
|
+
return (hAsync("div", { class: view({ view: 'year' }) }, this._getHeader('year'), hAsync("div", { class: 'grid h-full grid-cols-4 gap-2 overflow-scroll', ref: ref => (this._yearItemsRef = ref) }, years.map(year => (hAsync("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))))));
|
|
88069
88069
|
}
|
|
88070
88070
|
_getHeader(type = 'day') {
|
|
88071
88071
|
let nextFn = num => this._changeMonth(num);
|
|
@@ -88074,11 +88074,11 @@ class Calendar {
|
|
|
88074
88074
|
nextFn = num => this._changeYear(num);
|
|
88075
88075
|
nextType = 'year';
|
|
88076
88076
|
}
|
|
88077
|
-
return (hAsync("div", { class: header$5({ type: this.mode }) }, this.mode !== 'year' && (hAsync("p-button", {
|
|
88077
|
+
return (hAsync("div", { class: header$5({ type: this.mode }) }, this.mode !== 'year' && (hAsync("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) })), hAsync("div", { class: cn('flex gap-2', {
|
|
88078
88078
|
'flex-1': this._enableToday,
|
|
88079
|
-
}) }, this.mode !== 'year' && (hAsync("p-button", {
|
|
88079
|
+
}) }, this.mode !== 'year' && (hAsync("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', {
|
|
88080
88080
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
88081
|
-
}))), hAsync("p-button", {
|
|
88081
|
+
}))), hAsync("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 && (hAsync("p-tooltip", { class: 'ml-auto', content: this.todayText }, hAsync("p-button", { icon: 'calendar', iconOnly: true, size: 'sm', slot: 'trigger', tabIndex: -1, variant: 'secondary', onClick: () => this._setToday() })))), this.mode !== 'year' && (hAsync("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) }))));
|
|
88082
88082
|
}
|
|
88083
88083
|
_setYear(year) {
|
|
88084
88084
|
const date = dateFnsExports.setYear(this._viewDate, year);
|
|
@@ -88483,7 +88483,7 @@ class CardHeader {
|
|
|
88483
88483
|
variant: this.variant,
|
|
88484
88484
|
}) }, hAsync("div", { key: '3d56078ea79fdcb81461437dd3b8c66f712a5cef', class: content$6({
|
|
88485
88485
|
variant: this.variant,
|
|
88486
|
-
}) }, this.icon ? (hAsync("p-icon", { class: 'text-storm-300 dark:text-hurricane-200',
|
|
88486
|
+
}) }, this.icon ? (hAsync("p-icon", { class: 'text-storm-300 dark:text-hurricane-200', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (hAsync("slot", { name: 'prefix' })), hAsync("div", { key: 'e22fd58249b94c1824bfa82cb367bf780a5b99b7', class: title$2() }, hAsync("span", { key: '5de7e320dd84436f9de735f503cae3cbab37b1d7', class: 'max-w-full overflow-hidden text-ellipsis' }, this.header?.length ? this.header : hAsync("slot", null)), hAsync("slot", { key: 'eb9e59d3d09f5e7488128d2ddb33d40f3724252e', name: 'content-suffix' })), hAsync("div", { key: '934928145118a42aeef1008317c88a503bd58fe8', class: 'ml-auto flex items-center justify-end gap-4 empty:hidden' }, hAsync("slot", { key: '915ac41cb6bf6e56bde59d61b8a9601e2c402094', name: 'suffix' }))), this.variant === 'default' ? (asBoolean(this.divider) && (hAsync("p-divider", { class: 'text-off-white-700 dark:text-white/15' }))) : (hAsync("div", { class: 'pointer-events-none absolute left-0 top-0 z-[-1] h-full w-full overflow-hidden rounded-t-2xl' }, hAsync("p-smile", { class: 'dark:text-hurricane-400', variant: 'card' }))))));
|
|
88487
88487
|
}
|
|
88488
88488
|
static get style() { return cardHeaderComponentCss(); }
|
|
88489
88489
|
static get cmpMeta() { return {
|
|
@@ -88620,9 +88620,9 @@ class Checkbox {
|
|
|
88620
88620
|
}
|
|
88621
88621
|
render() {
|
|
88622
88622
|
const id = this.id?.length ? this.id : this._nonce;
|
|
88623
|
-
return (hAsync(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, hAsync("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51',
|
|
88623
|
+
return (hAsync(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, hAsync("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51', class: 'group/p-checkbox flex items-center justify-start gap-2', htmlFor: id }, hAsync("div", { key: '0302b3c44cef3973eba59676a4fbafc8ffe7ec30', class: 'relative flex flex-shrink-0 items-center' }, hAsync("input", { key: 'ce840a43c8406e09930e5b64d9c7953f2e6834d6', checked: asBoolean(this.checked), class: checkbox({
|
|
88624
88624
|
disabled: asBoolean(this.disabled),
|
|
88625
|
-
}),
|
|
88625
|
+
}), disabled: asBoolean(this.disabled), id: id, indeterminate: asBoolean(this.indeterminate), name: this.name, required: asBoolean(this.required), type: 'checkbox', onChange: ev => this._onChange(ev) }), hAsync("div", { key: '85129e843c23d91173f748031191e33f96c08491', class: iconContainer({
|
|
88626
88626
|
disabled: asBoolean(this.disabled),
|
|
88627
88627
|
}) }, hAsync("p-icon", { key: 'c649d245d7184a33c235b65aaa2cc282cb5d3b56', class: icon$2({
|
|
88628
88628
|
disabled: asBoolean(this.disabled),
|
|
@@ -88714,9 +88714,9 @@ class ContentSlider {
|
|
|
88714
88714
|
}
|
|
88715
88715
|
}
|
|
88716
88716
|
render() {
|
|
88717
|
-
return (hAsync(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, hAsync("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
88717
|
+
return (hAsync(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, hAsync("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, ref: el => (this._sliderRef = el), style: {
|
|
88718
88718
|
height: `${this._outerHeight}px`,
|
|
88719
|
-
},
|
|
88719
|
+
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, hAsync("div", { key: 'cb82eacdfc02898e9eeaff865b5e7fa7da69a2f9', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, hAsync("slot", { key: 'e6e5636ba8ed11665e0d623bcffb8a53bba03908', onSlotchange: () => this._slotChange() }))), hAsync("div", { key: '9d596407cda3aaa5cbae5c0a0a19209623627edd', class: `indicator ${this.hideMobileIndicator && 'hidden'}` }, this._filteredItems.map((_, i) => (hAsync("div", { class: `item ${!this.disableIndicatorClick && 'cursor-pointer'}`, onClick: () => this._scrollTo(i, true) }, hAsync("div", { class: cn('block h-2 w-2 rounded-full', {
|
|
88720
88720
|
'bg-indigo-600': i === this._visibleIndex,
|
|
88721
88721
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
88722
88722
|
}) })))))));
|
|
@@ -91760,7 +91760,7 @@ class Cropper {
|
|
|
91760
91760
|
const themeColor = state.theme === 'dark'
|
|
91761
91761
|
? 'rgba(70, 75, 84, 0.5)'
|
|
91762
91762
|
: 'rgba(255, 255, 255, 0.5)';
|
|
91763
|
-
return (hAsync(ThemedHost, { key: 'dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7' }, this._loaded && (hAsync("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() }, hAsync("cropper-image", { key: '8a96ad1f1f11adc4a8291a1376f329af52c3d920',
|
|
91763
|
+
return (hAsync(ThemedHost, { key: 'dd4ea15cbdfbac6e25202bd1a4871d9635fd33a7' }, this._loaded && (hAsync("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() }, hAsync("cropper-image", { key: '8a96ad1f1f11adc4a8291a1376f329af52c3d920', alt: 'Picture', crossorigin: 'anonymous', ref: ref => this._setImageRef(ref), src: this.value, scalable: true, translatable: true }), hAsync("cropper-shade", { key: '1b375fe73b98ec31776ba4762e10781a1c33117b', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), hAsync("cropper-selection", { key: 'ae41c83bf91f714beb89b79998c2636ffe837f51', "aspect-ratio": '1', "initial-coverage": '0.7', ref: ref => (this._selectionRef = ref) }), hAsync("cropper-handle", { key: '45148a814f6b3d1f04e94c0a8ee756b31d6dc7cb', action: 'move', plain: true }))), hAsync("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) })));
|
|
91764
91764
|
}
|
|
91765
91765
|
_setImageRef(ref) {
|
|
91766
91766
|
if (this._imageRef || !ref) {
|
|
@@ -92085,16 +92085,16 @@ class Datepicker {
|
|
|
92085
92085
|
this.parseValue(this.value);
|
|
92086
92086
|
}
|
|
92087
92087
|
render() {
|
|
92088
|
-
return (hAsync("p-dropdown", { key: 'c65daeff45afabeefa654b8d033a40d9fda5b4e2', allowOverflow: true,
|
|
92089
|
-
dateFnsExports.format(this.
|
|
92088
|
+
return (hAsync("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 }, hAsync("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 && (hAsync("input", { key: 'f63ca80f15e52a5824a51e997f7b45664104a196', class: 'pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden opacity-0', max: this.maxDate &&
|
|
92089
|
+
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
92090
92090
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92091
92091
|
}), min: this._minDate &&
|
|
92092
92092
|
dateFnsExports.format(new Date(this._minDate), 'yyyy-MM-dd', {
|
|
92093
92093
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92094
|
-
}),
|
|
92095
|
-
dateFnsExports.format(
|
|
92094
|
+
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
92095
|
+
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
92096
92096
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92097
|
-
}) })), hAsync("div", { key: 'f57a7045507cc0bf0bb2ae070258c0d4ed1af81f',
|
|
92097
|
+
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: 'f57a7045507cc0bf0bb2ae070258c0d4ed1af81f', slot: 'items', tabIndex: -1 }, hAsync("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) }))));
|
|
92098
92098
|
}
|
|
92099
92099
|
documentClickHandler({ target }) {
|
|
92100
92100
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -92398,7 +92398,7 @@ class Drawer {
|
|
|
92398
92398
|
}
|
|
92399
92399
|
const headerContent = hAsync("slot", { name: 'header' });
|
|
92400
92400
|
const bodyContent = hAsync("slot", { name: 'content' });
|
|
92401
|
-
return (hAsync("p-backdrop", {
|
|
92401
|
+
return (hAsync("p-backdrop", { applyBlur: this.applyBlur, closing: this._closing, scrollLock: this.scrollLock, variant: 'drawer', onClicked: ev => this._backdropClick(ev.detail) }, hAsync("p-drawer-container", { closing: this._closing }, (this.header?.length || this._hasHeaderSlot) && (hAsync("p-drawer-header", { "show-close": this.showClose, onClose: ev => this.close(ev.detail, 'close') }, this._hasHeaderSlot ? headerContent : this.header)), hAsync("p-drawer-body", null, bodyContent))));
|
|
92402
92402
|
}
|
|
92403
92403
|
_backdropClick(ev) {
|
|
92404
92404
|
if (!this.backdropClickClose) {
|
|
@@ -92554,7 +92554,7 @@ class DrawerHeader {
|
|
|
92554
92554
|
*/
|
|
92555
92555
|
close;
|
|
92556
92556
|
render() {
|
|
92557
|
-
return (hAsync(ThemedHost, { key: '22b70fd5ecc48cca0e7889bf5fa8167f6063b471' }, hAsync("div", { key: 'b19d3cce208759e68446ade1baa02a95286aaf51', class: header$3() }, hAsync("div", { key: 'b5a28ec7d297cb8d9c71ebfb5bf7f652434a438b', class: content$4() }, this.showClose && (hAsync("p-button", { key: '9e1d4d71e3f1c4efd65d5639d388f72e628ec81c',
|
|
92557
|
+
return (hAsync(ThemedHost, { key: '22b70fd5ecc48cca0e7889bf5fa8167f6063b471' }, hAsync("div", { key: 'b19d3cce208759e68446ade1baa02a95286aaf51', class: header$3() }, hAsync("div", { key: 'b5a28ec7d297cb8d9c71ebfb5bf7f652434a438b', class: content$4() }, this.showClose && (hAsync("p-button", { key: '9e1d4d71e3f1c4efd65d5639d388f72e628ec81c', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) })), hAsync("div", { key: '6906eb28f9fd9f63b49921da0f3b49c20b9ab665', class: title$1() }, hAsync("slot", { key: '62d673dae21712e3e2919618e518869172f82db2' })), this.showClose && hAsync("div", { key: '451411cc086c5b6c366313d38bfb277cafebe138', class: 'size-8' })), hAsync("p-smile", { key: 'd1d4ae0aa65e5d9d91819da89bbaf7598d145ca3', class: 'dark:text-hurricane-400' }))));
|
|
92558
92558
|
}
|
|
92559
92559
|
static get style() { return drawerHeaderComponentCss(); }
|
|
92560
92560
|
static get cmpMeta() { return {
|
|
@@ -94218,12 +94218,12 @@ class Dropdown {
|
|
|
94218
94218
|
this._checkItems();
|
|
94219
94219
|
}
|
|
94220
94220
|
render() {
|
|
94221
|
-
return (hAsync(Host, { key: 'a4b635c184cc8a58c74f1ba5dbb5f455df1a7b86', class: 'relative' }, hAsync("div", { key: 'd0d1a3f05d117bb2b3a28022e8737fae2f25fcb3', class: 'trigger', onClick: () => this._triggerClickHandler() }, hAsync("slot", { key: '5697825e61fb1c07139663c6c5ac400c48da998a', name: 'trigger' })), hAsync("div", { key: '815b60a51d6b074e878eab047cac77cce5a3e337', class: 'relative w-full' }, hAsync("p-dropdown-menu-container", { key: '60bf00e8beb6e42e7629b57283d317bfe0a2b40a',
|
|
94221
|
+
return (hAsync(Host, { key: 'a4b635c184cc8a58c74f1ba5dbb5f455df1a7b86', class: 'relative' }, hAsync("div", { key: 'd0d1a3f05d117bb2b3a28022e8737fae2f25fcb3', class: 'trigger', onClick: () => this._triggerClickHandler() }, hAsync("slot", { key: '5697825e61fb1c07139663c6c5ac400c48da998a', name: 'trigger' })), hAsync("div", { key: '815b60a51d6b074e878eab047cac77cce5a3e337', class: 'relative w-full' }, hAsync("p-dropdown-menu-container", { key: '60bf00e8beb6e42e7629b57283d317bfe0a2b40a', allowOverflow: this.allowOverflow, class: cn(dropdownContainerClass({
|
|
94222
94222
|
strategy: this.strategy,
|
|
94223
94223
|
maxWidth: this.applyMaxWidth,
|
|
94224
94224
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
94225
94225
|
isDatepicker: this.isDatepicker,
|
|
94226
|
-
}), this.containerClass),
|
|
94226
|
+
}), 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() }, hAsync("slot", { key: '34a4da54cb7e3949a494b028b6188b9655b294c2', name: 'items' })))));
|
|
94227
94227
|
}
|
|
94228
94228
|
_checkButtons(active = false) {
|
|
94229
94229
|
if (!this.applyChevron) {
|
|
@@ -95189,17 +95189,17 @@ class Field {
|
|
|
95189
95189
|
}
|
|
95190
95190
|
render() {
|
|
95191
95191
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
95192
|
-
return (hAsync(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, hAsync("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
95193
|
-
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label,
|
|
95192
|
+
return (hAsync(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, hAsync("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
95193
|
+
(!!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 && (hAsync("slot", { key: '597e07f1227421eb34575f2c35a5f752f60a66a3', name: 'label', slot: 'label' })), hasHeaderSlot && (hAsync("slot", { key: '0ec1fd3a079f51c605b593e90d8514119ae0ffa3', name: 'header', slot: 'header' })), hasHelperSlot && (hAsync("slot", { key: 'c71b52f8f6f8fc374e9d7e0c2ed4f838c9f9cb86', name: 'helper', slot: 'helper' })), hasErrorSlot && (hAsync("slot", { key: 'd62e1c5f5592540dacbb2e18cf5cc560efbbc5a4', name: 'error', slot: 'error' })), hAsync("div", { key: '7d30604708a80bd509b5d739e46d82b5fa23b464', class: field({
|
|
95194
95194
|
error: !!this.error?.length,
|
|
95195
95195
|
disabled: asBoolean(this.disabled),
|
|
95196
95196
|
focused: asBoolean(this.focused) || this._focused,
|
|
95197
95197
|
size: this.size,
|
|
95198
95198
|
variant: this.variant,
|
|
95199
95199
|
isTextarea: this.type === 'textarea',
|
|
95200
|
-
}), title: this.variant === 'read' && !hasValueSlot
|
|
95200
|
+
}), slot: 'content', title: this.variant === 'read' && !hasValueSlot
|
|
95201
95201
|
? `${this.value}`
|
|
95202
|
-
: undefined
|
|
95202
|
+
: undefined }, (this.error?.length ||
|
|
95203
95203
|
prefix ||
|
|
95204
95204
|
(this.icon && this.iconPosition === 'start')) && (hAsync("div", { key: 'b4b203ba8f20620b2d7f368d2c6367bdadea9878', class: prefixAndSuffix({
|
|
95205
95205
|
variant: this.variant,
|
|
@@ -95211,7 +95211,7 @@ class Field {
|
|
|
95211
95211
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
95212
95212
|
this.error?.length ? (hAsync("p-icon", { class: cn('flex', {
|
|
95213
95213
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
95214
|
-
}), variant: this.error?.length ? 'warning' : this.icon
|
|
95214
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (hAsync("div", { key: '5fe27dcdc61d7ba5646ecd6e062ad51f808dc4dd', class: prefixAndSuffix({
|
|
95215
95215
|
variant: this.variant,
|
|
95216
95216
|
error: !!this.error?.length,
|
|
95217
95217
|
disabled: asBoolean(this.disabled),
|
|
@@ -95220,7 +95220,7 @@ class Field {
|
|
|
95220
95220
|
isTextarea: this.type === 'textarea',
|
|
95221
95221
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (hAsync("p-icon", { class: cn('flex', {
|
|
95222
95222
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
95223
|
-
}),
|
|
95223
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (suffix)))))));
|
|
95224
95224
|
}
|
|
95225
95225
|
watchvalue(value) {
|
|
95226
95226
|
if (!this._inputRef) {
|
|
@@ -95295,7 +95295,7 @@ class Field {
|
|
|
95295
95295
|
}
|
|
95296
95296
|
_getContent(hasValueSlot = false, id) {
|
|
95297
95297
|
if (this.variant === 'read') {
|
|
95298
|
-
return hasValueSlot ? (hAsync("slot", { name: 'value' })) : !!this.value && `${this.value}`.length > 0 ? (this.value) : this.showAddOnEmpty ? (hAsync("p-button", {
|
|
95298
|
+
return hasValueSlot ? (hAsync("slot", { name: 'value' })) : !!this.value && `${this.value}`.length > 0 ? (this.value) : this.showAddOnEmpty ? (hAsync("p-button", { icon: 'plus', size: 'sm', variant: 'text', onClick: () => this.add.emit() }, this.addText)) : ('—');
|
|
95299
95299
|
}
|
|
95300
95300
|
if (this.type === 'slot') {
|
|
95301
95301
|
return hAsync("slot", { name: 'input' });
|
|
@@ -95319,7 +95319,7 @@ class Field {
|
|
|
95319
95319
|
if (this.type === 'textarea') {
|
|
95320
95320
|
return (hAsync("textarea", { ref: ref => this._setInputRef(ref), ...props, ...properties }));
|
|
95321
95321
|
}
|
|
95322
|
-
return (hAsync("input", {
|
|
95322
|
+
return (hAsync("input", { ref: ref => this._setInputRef(ref), type: this.type, ...props, ...properties }));
|
|
95323
95323
|
}
|
|
95324
95324
|
_setInputRef(ref) {
|
|
95325
95325
|
this._inputRef = ref;
|
|
@@ -95514,13 +95514,13 @@ class FieldContainer {
|
|
|
95514
95514
|
}
|
|
95515
95515
|
render() {
|
|
95516
95516
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
95517
|
-
let contentSlot = (hAsync("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de',
|
|
95517
|
+
let contentSlot = (hAsync("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de', name: 'content', slot: 'trigger' }));
|
|
95518
95518
|
if (this.loading) {
|
|
95519
|
-
contentSlot = (hAsync("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788',
|
|
95519
|
+
contentSlot = (hAsync("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger', variant: 'ghost' }));
|
|
95520
95520
|
}
|
|
95521
|
-
return (hAsync(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, hAsync("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1',
|
|
95521
|
+
return (hAsync(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, hAsync("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1', class: cn('flex w-inherit flex-col gap-1', {
|
|
95522
95522
|
'cursor-auto': this.variant === 'read',
|
|
95523
|
-
}) }, hAsync("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
95523
|
+
}), htmlFor: this.id }, hAsync("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
95524
95524
|
'flex-row-reverse': this.align === 'end',
|
|
95525
95525
|
}) }, (!!label?.length || !!helper?.length) && (hAsync("div", { key: '97d2b33bb04145650b000dde1859015361855fa3', class: 'flex min-w-0 gap-2', onClick: () => this.focus.emit() }, hAsync("span", { key: '4a2fc2b62dba4fc7d4a5f816944996333cff2ca3', class: 'min-w-0 overflow-hidden text-ellipsis text-xs font-medium text-storm-300 dark:text-hurricane-200' }, label), helper && (hAsync("p-helper", { key: '1638bb0c6c3683bd2bd0836b9f4fd0ca07561baf', class: 'flex flex-shrink-0', placement: 'top' }, helper)))), ((!asBoolean(this.required) && asBoolean(this.showOptional)) ||
|
|
95526
95526
|
hasHeaderSlot) && (hAsync("div", { key: '4f9f56fc0951dab62bd75c4cc7ea724e17ec05aa', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
@@ -95530,8 +95530,8 @@ class FieldContainer {
|
|
|
95530
95530
|
'ml-auto': this.align === 'end',
|
|
95531
95531
|
'font-normal': this.variant === 'read',
|
|
95532
95532
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
95533
|
-
}),
|
|
95534
|
-
asBoolean(this.forceShowTooltip, false),
|
|
95533
|
+
}), content: this.error, enableUserInput: false, placement: this.errorPlacement, show: errorAndErrorIsNotBoolean &&
|
|
95534
|
+
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (hAsync("slot", { key: '3670780d5e0907d655e282fbea6c43dcceea7e00', name: 'error', slot: 'content' })), contentSlot))));
|
|
95535
95535
|
}
|
|
95536
95536
|
async _setLocales() {
|
|
95537
95537
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -95647,7 +95647,7 @@ class FloatingMenuContainer {
|
|
|
95647
95647
|
render() {
|
|
95648
95648
|
return (hAsync(ThemedHost, { key: 'b68d74e35de85f5b14b30d1c6649f4a2449c7b04' }, hAsync("div", { key: '1cdae9d4705acc85650b593a8f200e8b6e791261', class: container$3({
|
|
95649
95649
|
enableAmountSelected: this.enableAmountSelected,
|
|
95650
|
-
}) }, this.enableAmountSelected && (hAsync(Fragment, { key: '4fb6df02b5af8b38ce42f6af67846f88de9ea47b' }, hAsync("p", { key: 'faf5b2587318c74afaa210f845f5e171323bb56d', class: amountSelected() }, this.amountSelectedTemplate(this.amount)), hAsync("p-divider", { key: '1c0ecb274c5ff16476be4422f3bc90f9b26e1a22', class: 'mx-0 h-4 text-storm-400', variant: 'vertical' }))), hAsync("div", { key: 'ca40fbbbf5cb4b0293f06e9dcb75680474009cf5', class: 'flex items-center' }, this.usedInTable ? hAsync("slot", { name: 'floating-menu-item' }) : hAsync("slot", null), this.enableClose && (hAsync("p-floating-menu-item", { key: 'c8716fd6671726b5afe2b9d045c65495ae22e01b', onClick: ev => this.close.emit(ev)
|
|
95650
|
+
}) }, this.enableAmountSelected && (hAsync(Fragment, { key: '4fb6df02b5af8b38ce42f6af67846f88de9ea47b' }, hAsync("p", { key: 'faf5b2587318c74afaa210f845f5e171323bb56d', class: amountSelected() }, this.amountSelectedTemplate(this.amount)), hAsync("p-divider", { key: '1c0ecb274c5ff16476be4422f3bc90f9b26e1a22', class: 'mx-0 h-4 text-storm-400', variant: 'vertical' }))), hAsync("div", { key: 'ca40fbbbf5cb4b0293f06e9dcb75680474009cf5', class: 'flex items-center' }, this.usedInTable ? hAsync("slot", { name: 'floating-menu-item' }) : hAsync("slot", null), this.enableClose && (hAsync("p-floating-menu-item", { key: 'c8716fd6671726b5afe2b9d045c65495ae22e01b', icon: 'negative', onClick: ev => this.close.emit(ev) }))))));
|
|
95651
95651
|
}
|
|
95652
95652
|
async _setLocales() {
|
|
95653
95653
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -95769,7 +95769,7 @@ class FloatingMenuItem {
|
|
|
95769
95769
|
return (hAsync("p-icon", { class: icon$1({
|
|
95770
95770
|
hover: asBoolean(this.hover),
|
|
95771
95771
|
disabled: asBoolean(this.disabled),
|
|
95772
|
-
}),
|
|
95772
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
|
|
95773
95773
|
}
|
|
95774
95774
|
static get style() { return floatingMenuItemComponentCss(); }
|
|
95775
95775
|
static get cmpMeta() { return {
|
|
@@ -95805,7 +95805,7 @@ class Helper {
|
|
|
95805
95805
|
*/
|
|
95806
95806
|
placement = 'top';
|
|
95807
95807
|
render() {
|
|
95808
|
-
return (hAsync(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, hAsync("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, hAsync("p-icon", { key: 'e7c4d59174ec46413381af510485a890fcab91f8',
|
|
95808
|
+
return (hAsync(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, hAsync("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, hAsync("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' }), hAsync("div", { key: '1173d658220d127af6982fb2939f7493a84cf52d', slot: 'content' }, hAsync("slot", { key: '53d7d9c9c9c919ba312dc57f92d68fdc5f6b385c' })))));
|
|
95809
95809
|
}
|
|
95810
95810
|
static get style() { return helperComponentCss(); }
|
|
95811
95811
|
static get cmpMeta() { return {
|
|
@@ -95943,9 +95943,9 @@ class Icon {
|
|
|
95943
95943
|
flip: this.flip,
|
|
95944
95944
|
size: hasTextSizeClass ? 'auto' : this.size,
|
|
95945
95945
|
transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
|
|
95946
|
-
}), style: {
|
|
95946
|
+
}), innerHTML: svg, style: {
|
|
95947
95947
|
'--tw-rotate': `${this.rotate}deg`,
|
|
95948
|
-
}, title: this.variant
|
|
95948
|
+
}, title: this.variant }));
|
|
95949
95949
|
}
|
|
95950
95950
|
static get style() { return iconComponentCss(); }
|
|
95951
95951
|
static get cmpMeta() { return {
|
|
@@ -96363,7 +96363,7 @@ class Label {
|
|
|
96363
96363
|
variant: this.variant,
|
|
96364
96364
|
iconOnly: this.iconOnly,
|
|
96365
96365
|
keepMobileContent: this.keepMobileContent,
|
|
96366
|
-
}) }, this.icon && (hAsync("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0',
|
|
96366
|
+
}) }, this.icon && (hAsync("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (hAsync("div", { key: 'd0b89fc24b7304a8e61e5157bcf4bdae3bdb26ca', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-medium', {
|
|
96367
96367
|
hidden: !this.keepMobileContent,
|
|
96368
96368
|
'desktop-xs:block': !this.keepMobileContent,
|
|
96369
96369
|
}) }, hAsync("slot", { key: 'ad87aa170cc6f7980678a1cfc25f5dbdf510127e' }))))));
|
|
@@ -96694,7 +96694,7 @@ class Modal {
|
|
|
96694
96694
|
const headerContent = hAsync("slot", { name: 'header' });
|
|
96695
96695
|
const bodyContent = hAsync("slot", { name: 'content' });
|
|
96696
96696
|
const footerContent = hAsync("slot", { name: 'footer' });
|
|
96697
|
-
return (hAsync("p-backdrop", { applyBlur: this.applyBlur,
|
|
96697
|
+
return (hAsync("p-backdrop", { applyBlur: this.applyBlur, closing: this._closing, scrollLock: this.scrollLock, onClicked: ev => this._backdropClick(ev.detail) }, hAsync("p-modal-container", { closing: this._closing, size: this.size }, (this.header?.length || this._hasHeaderSlot) && (hAsync("p-modal-header", { showClose: this.showClose, onClose: ev => this.close('button', ev.detail) }, this._hasHeaderSlot ? headerContent : this.header)), hAsync("p-modal-body", { roundedBottom: !this._hasFooterSlot, roundedTop: !this._hasHeaderSlot && !this.header?.length }, bodyContent), this._hasFooterSlot && (hAsync("p-modal-footer", null, footerContent)))));
|
|
96698
96698
|
}
|
|
96699
96699
|
_backdropClick(ev) {
|
|
96700
96700
|
if (!this.backdropClickClose) {
|
|
@@ -96899,7 +96899,7 @@ class ModalHeader {
|
|
|
96899
96899
|
*/
|
|
96900
96900
|
close;
|
|
96901
96901
|
render() {
|
|
96902
|
-
return (hAsync(ThemedHost, { key: '61310ca15062863fa75788e8621c845829835a83' }, hAsync("div", { key: '45d347c0906fb178470a22ee073f78d2c83a625d', class: header$1() }, hAsync("div", { key: 'cd7903f26712a92149166a9016f397701c216ee3', class: content$3() }, hAsync("div", { key: 'e1aa409159b2c19f97682ba5de0ebcdbca799e7a', class: title() }, hAsync("slot", { key: '605016d68fa57dde900543c0cee048f078613fa7' })), this.showClose && (hAsync("p-button", { key: '885ebd89b2f63609e658debad4137df0dfb03b8c',
|
|
96902
|
+
return (hAsync(ThemedHost, { key: '61310ca15062863fa75788e8621c845829835a83' }, hAsync("div", { key: '45d347c0906fb178470a22ee073f78d2c83a625d', class: header$1() }, hAsync("div", { key: 'cd7903f26712a92149166a9016f397701c216ee3', class: content$3() }, hAsync("div", { key: 'e1aa409159b2c19f97682ba5de0ebcdbca799e7a', class: title() }, hAsync("slot", { key: '605016d68fa57dde900543c0cee048f078613fa7' })), this.showClose && (hAsync("p-button", { key: '885ebd89b2f63609e658debad4137df0dfb03b8c', icon: 'negative', iconOnly: true, variant: 'secondary', onClick: ev => this.close.emit(ev) }))), hAsync("p-smile", { key: 'f461107c6a15c7c58e5944b0b19e54ff0ce88305', class: 'dark:text-hurricane-400' }))));
|
|
96903
96903
|
}
|
|
96904
96904
|
static get style() { return modalHeaderComponentCss(); }
|
|
96905
96905
|
static get cmpMeta() { return {
|
|
@@ -96962,7 +96962,7 @@ class Navbar {
|
|
|
96962
96962
|
}
|
|
96963
96963
|
_show = false;
|
|
96964
96964
|
render() {
|
|
96965
|
-
return (hAsync(ThemedHost, { key: 'ee599d3472ef0a332d17353d8e7f559e36d5529b' }, hAsync("p-backdrop", { key: 'aa5b71247881e2a23998bab23f194ff6f58a6662', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), hAsync("div", { key: '121da670f6b7dbbfbce4a018c56b56ac1352c212', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, hAsync("div", { key: 'e789b6c904b4715c271e03324d8e8643acd5d8a8', class: 'flex w-full items-center justify-end layout-1280:hidden' }, hAsync("p-button", { key: '9d6f49157fc731f91ff34bc7e37aebe40c5d0612',
|
|
96965
|
+
return (hAsync(ThemedHost, { key: 'ee599d3472ef0a332d17353d8e7f559e36d5529b' }, hAsync("p-backdrop", { key: 'aa5b71247881e2a23998bab23f194ff6f58a6662', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), hAsync("div", { key: '121da670f6b7dbbfbce4a018c56b56ac1352c212', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, hAsync("div", { key: 'e789b6c904b4715c271e03324d8e8643acd5d8a8', class: 'flex w-full items-center justify-end layout-1280:hidden' }, hAsync("p-button", { key: '9d6f49157fc731f91ff34bc7e37aebe40c5d0612', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), hAsync("div", { key: 'c88909335eed7df5a93b32a65d24b1a8ff2a3f19', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, hAsync("slot", { key: 'e09b2eaefb99e51502f3629c377728d298b0e8d9', name: 'company' })), hAsync("div", { key: '2ce82f037a53e8529d834958812d74f3cdd25ef2', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, hAsync("slot", { key: 'eaf615dd6f9d5b8fb260fe5a10c43b1e0b6f52c0', name: 'content' })), hAsync("div", { key: '9b8bedc34ab2bcbe8935426007b6fd8c2d33c177', class: 'mt-auto hidden w-full flex-shrink-0 flex-col layout-1280:flex' }, hAsync("slot", { key: '7a4889a2554cad25f9e8be122863fb5c2783376d', name: 'user' }))), hAsync("div", { key: 'e9d88767781757f7fc81c772fbe750a15a03fa6c', class: topbar({ class: sidebarAndTopbar() }) }, hAsync("p-button", { key: '3517c55339958c4461f20b190c220358658a71cf', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), hAsync("slot", { key: 'b89f63dfbeba643e3f46f72e6862944ba75f1213', name: 'topbar' }))));
|
|
96966
96966
|
}
|
|
96967
96967
|
handleCloseNavbar() {
|
|
96968
96968
|
this._show = false;
|
|
@@ -97208,7 +97208,7 @@ class Pagination {
|
|
|
97208
97208
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
97209
97209
|
}) }, this.enablePaginationPages && this.enablePaginationSize && (hAsync(Fragment, { key: '5812bfaaee47936e0f1d910c4da0421589e5cf9b' }, hAsync("p-pagination-size", { key: '2fe1f8e733d96ef2843d184f17c02b2db44b3fb5', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
97210
97210
|
this.hideOnSinglePage &&
|
|
97211
|
-
this._hasPaginationPages && (hAsync("p-divider", { key: 'fa14cc1d718604f931f95ee9d2accd28b1bf43e7',
|
|
97211
|
+
this._hasPaginationPages && (hAsync("p-divider", { key: 'fa14cc1d718604f931f95ee9d2accd28b1bf43e7', class: 'mx-0 h-4 text-off-white-700 dark:text-hurricane-400', variant: 'vertical' })))), this.enablePaginationPages && (hAsync("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 }) => {
|
|
97212
97212
|
this._hasPaginationPages = detail > 1;
|
|
97213
97213
|
this.pagesChange.emit(detail);
|
|
97214
97214
|
} })))));
|
|
@@ -97305,19 +97305,19 @@ class PaginationPages {
|
|
|
97305
97305
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
97306
97306
|
}) }, this._set?.map(p => {
|
|
97307
97307
|
if (p.type === 'previous' || p.type === 'next') {
|
|
97308
|
-
return (hAsync("p-pagination-pages-item", {
|
|
97308
|
+
return (hAsync("p-pagination-pages-item", { disabled: this._carouselDisabled(p.type), variant: 'carousel', onClick: () => p.type === 'previous'
|
|
97309
97309
|
? this._previousClick()
|
|
97310
97310
|
: this._nextClick() }, p.value));
|
|
97311
97311
|
}
|
|
97312
97312
|
if (p.type === 'ellipsis') {
|
|
97313
|
-
return (hAsync("p-dropdown", { placement: 'top',
|
|
97313
|
+
return (hAsync("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) }, hAsync("p-pagination-pages-item", { slot: 'trigger' }, "..."), p.options?.slice(0, 5).map(v => (hAsync("p-dropdown-menu-item", { autoHeight: true, slot: 'items', variant: 'pagination', onClick: () => this._pageClick(v) }, this.dropdownPageTemplate
|
|
97314
97314
|
? this.dropdownPageTemplate(v)
|
|
97315
97315
|
: this._defaultDropdownPageTemplate(v)))), p.options?.length > 5 &&
|
|
97316
|
-
this._showDropdown[p.dropdownIndex] && (hAsync("p-field", { class: 'mt-2 w-28',
|
|
97316
|
+
this._showDropdown[p.dropdownIndex] && (hAsync("p-field", { autoFocus: true, class: 'mt-2 w-28', icon: 'enter-key', iconPosition: 'end', properties: {
|
|
97317
97317
|
min: 1,
|
|
97318
97318
|
max: this._pages.length,
|
|
97319
97319
|
step: 1,
|
|
97320
|
-
},
|
|
97320
|
+
}, size: 'sm', slot: 'items', type: 'number', onEnter: ({ detail }) => this._enterPress(detail) }))));
|
|
97321
97321
|
}
|
|
97322
97322
|
return (hAsync("p-pagination-pages-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
97323
97323
|
}))));
|
|
@@ -97430,11 +97430,11 @@ class PaginationPages {
|
|
|
97430
97430
|
const set = [];
|
|
97431
97431
|
const previous = {
|
|
97432
97432
|
type: 'previous',
|
|
97433
|
-
value: (hAsync("p-icon", {
|
|
97433
|
+
value: (hAsync("p-icon", { rotate: 90, size: 'sm', variant: 'caret' })),
|
|
97434
97434
|
};
|
|
97435
97435
|
const next = {
|
|
97436
97436
|
type: 'next',
|
|
97437
|
-
value: (hAsync("p-icon", {
|
|
97437
|
+
value: (hAsync("p-icon", { rotate: -90, size: 'sm', variant: 'caret' })),
|
|
97438
97438
|
};
|
|
97439
97439
|
// Disable page range, display all the pages
|
|
97440
97440
|
if (range === null) {
|
|
@@ -97713,7 +97713,7 @@ class PaginationSize {
|
|
|
97713
97713
|
this._setLocales();
|
|
97714
97714
|
}
|
|
97715
97715
|
render() {
|
|
97716
|
-
return (hAsync(ThemedHost, { key: '1062e4a018038b23e5514a50f9fa658b6fae7010', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, hAsync("p-dropdown", { key: '521979380d535dcd911c26b881338ddaaf3e7344', applyFullWidth: true, applyMaxWidth: false,
|
|
97716
|
+
return (hAsync(ThemedHost, { key: '1062e4a018038b23e5514a50f9fa658b6fae7010', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, hAsync("p-dropdown", { key: '521979380d535dcd911c26b881338ddaaf3e7344', applyFullWidth: true, applyMaxWidth: false, chevronDirection: 'down', placement: 'top-start', onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, hAsync("div", { key: '81cdccac14a27636661d30889d5894a9fb5d7ce6', class: trigger({
|
|
97717
97717
|
active: this.dropdownIsOpen,
|
|
97718
97718
|
}), slot: 'trigger' }, hAsync("p", { key: '3477755b3365205fef5a3e3f8f465f0d1d41ddd1', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
97719
97719
|
? this.itemTemplate(this.size)
|
|
@@ -97724,7 +97724,7 @@ class PaginationSize {
|
|
|
97724
97724
|
], {
|
|
97725
97725
|
'text-storm-300 dark:text-hurricane-200': !this.dropdownIsOpen,
|
|
97726
97726
|
'text-storm-500 dark:text-white': !!this.dropdownIsOpen,
|
|
97727
|
-
}),
|
|
97727
|
+
}), size: 'sm', variant: 'double-caret' })), hAsync("slot", { key: '4ac113bf401a0a3019c6430a58f5cfd8a153e5c4', slot: 'items' }, this.sizeOptions.map(option => (hAsync("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
97728
97728
|
? this.itemTemplate(option)
|
|
97729
97729
|
: this._defaultItemTemplate(option))))))));
|
|
97730
97730
|
}
|
|
@@ -97785,7 +97785,7 @@ class Profile {
|
|
|
97785
97785
|
}
|
|
97786
97786
|
render() {
|
|
97787
97787
|
const content = this._getContent();
|
|
97788
|
-
return (hAsync(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (hAsync("p-dropdown", {
|
|
97788
|
+
return (hAsync(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (hAsync("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, hAsync("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), hAsync("div", { slot: 'items' }, hAsync("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
97789
97789
|
}
|
|
97790
97790
|
slotchange() {
|
|
97791
97791
|
this._checkDropdownSlot();
|
|
@@ -97924,9 +97924,9 @@ class Radio {
|
|
|
97924
97924
|
}
|
|
97925
97925
|
render() {
|
|
97926
97926
|
const id = this.id?.length ? this.id : this._nonce;
|
|
97927
|
-
return (hAsync(ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, hAsync("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d',
|
|
97927
|
+
return (hAsync(ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, hAsync("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d', class: 'flex items-center justify-start gap-2', htmlFor: id }, hAsync("div", { key: '0db6d40c88eb7e38d49a7b00c51a9527bcb07919', class: 'relative flex flex-shrink-0 items-center' }, hAsync("input", { key: 'c37a2ca4f67b57fb6fe4c5db31f047928eed1e70', checked: this.checked, class: radio({
|
|
97928
97928
|
disabled: asBoolean(this.disabled),
|
|
97929
|
-
}),
|
|
97929
|
+
}), disabled: asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'radio', value: this.value, onChange: ev => this._onChange(ev) }), hAsync("div", { key: 'f062fa8dba4c876a5cce25d5777bf11ae936764a', class: circle$2({
|
|
97930
97930
|
disabled: asBoolean(this.disabled),
|
|
97931
97931
|
}) })), hAsync("div", { key: '90340477396fd987eabbe4cc7aeebb38a548ec68', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, hAsync("slot", { key: 'b66d366cac0e5c99903edc18f4256c045d3a5b10' })))));
|
|
97932
97932
|
}
|
|
@@ -97992,7 +97992,7 @@ class Range {
|
|
|
97992
97992
|
valueChange;
|
|
97993
97993
|
render() {
|
|
97994
97994
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
97995
|
-
return (hAsync(ThemedHost, { key: 'cb6a6b717940ba17aa7a6df5cc36577a991d3831' }, hAsync("div", { key: '86f3c5cfa6b35bab44279382db58fc28cbfb864d', class: 'flex w-inherit items-center gap-2 text-storm-300 dark:text-hurricane-200' }, hAsync("p-icon", { key: 'c39ee42a23403c618cf6980ee68610b0d2210f59', variant: 'minus' }), hAsync("div", { key: 'ea69ab86a1006f763f2306cc5a644b12ebd68540', class: 'relative h-6 flex-1' }, hAsync("input", { key: '36594b239d75623d5494a27ac44fffab83f2c51d',
|
|
97995
|
+
return (hAsync(ThemedHost, { key: 'cb6a6b717940ba17aa7a6df5cc36577a991d3831' }, hAsync("div", { key: '86f3c5cfa6b35bab44279382db58fc28cbfb864d', class: 'flex w-inherit items-center gap-2 text-storm-300 dark:text-hurricane-200' }, hAsync("p-icon", { key: 'c39ee42a23403c618cf6980ee68610b0d2210f59', variant: 'minus' }), hAsync("div", { key: 'ea69ab86a1006f763f2306cc5a644b12ebd68540', class: 'relative h-6 flex-1' }, hAsync("input", { key: '36594b239d75623d5494a27ac44fffab83f2c51d', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
|
|
97996
97996
|
const value = ev.target.value;
|
|
97997
97997
|
this.value = Number.parseFloat(value);
|
|
97998
97998
|
this.valueChange.emit(value);
|
|
@@ -98107,7 +98107,7 @@ class SegmentItem {
|
|
|
98107
98107
|
}) }, this.icon && (hAsync("p-icon", { key: '63323d0681027b5a1215c342113d1ffb5c3924b4', class: cn('mb-1', {
|
|
98108
98108
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
98109
98109
|
'text-indigo-200': asBoolean(this.active),
|
|
98110
|
-
}),
|
|
98110
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), this.variant === 'default' ? (hAsync("slot", null)) : (hAsync("div", { class: 'flex flex-col items-center' }, hAsync("p", { class: cn('my-0 font-medium empty:hidden', {}) }, hAsync("slot", { name: 'title' })), descriptionSlot && (hAsync("p", { class: cn('my-0 text-xs font-medium', {
|
|
98111
98111
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
98112
98112
|
'text-indigo-200': asBoolean(this.active),
|
|
98113
98113
|
}) }, descriptionSlot)))))));
|
|
@@ -98463,8 +98463,8 @@ class Select {
|
|
|
98463
98463
|
if (this.error?.length) {
|
|
98464
98464
|
buttonIcon = 'warning';
|
|
98465
98465
|
}
|
|
98466
|
-
return (hAsync(ThemedHost, { key: '617063ca6cf31255928f6f6856cb1902b1d225a2' }, hAsync("p-field-container", { key: '4a6d95f7bfbc79b886044f2fe31695990b4e210d',
|
|
98467
|
-
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, hAsync("div", { key: '
|
|
98466
|
+
return (hAsync(ThemedHost, { key: '617063ca6cf31255928f6f6856cb1902b1d225a2' }, hAsync("p-field-container", { key: '4a6d95f7bfbc79b886044f2fe31695990b4e210d', error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, label: this.label, prefix: this.prefix, required: this.required, showOptional: this.showOptional, variant: 'write' }, hAsync("p-dropdown", { key: '85f6409928f327efcfc78cef1dddb9c30178e6ed', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, hAsync("p-button", { key: '9c892e4edc472af73e0c2cbba419012d08302adc', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
|
|
98467
|
+
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, hAsync("div", { key: '6fa19bac84f26dbc0c3aa97985c6deb40c4eb641', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
|
|
98468
98468
|
}
|
|
98469
98469
|
documentClickHandler(event) {
|
|
98470
98470
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -98621,7 +98621,7 @@ class Select {
|
|
|
98621
98621
|
? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
|
|
98622
98622
|
: item[this._identifierKey] ===
|
|
98623
98623
|
this._selectedItem?.[this._identifierKey];
|
|
98624
|
-
return (hAsync("p-dropdown-menu-item", { enableTextWrap: this.enableTextWrap, useContainer: false, onClick: () => this._selectValue(item)
|
|
98624
|
+
return (hAsync("p-dropdown-menu-item", { active: isSelected, checkbox: this.multi ? true : false, enableTextWrap: this.enableTextWrap, slot: 'items', useContainer: false, onClick: () => this._selectValue(item) }, this._getDisplay(item, false, isSelected)));
|
|
98625
98625
|
});
|
|
98626
98626
|
if (this._items.length === 0) {
|
|
98627
98627
|
items = [
|
|
@@ -98629,7 +98629,7 @@ class Select {
|
|
|
98629
98629
|
];
|
|
98630
98630
|
}
|
|
98631
98631
|
if (this.enableSelectAll && this._items.length > 0) {
|
|
98632
|
-
items.unshift(hAsync("p-dropdown-menu-item", { slot: 'items', useContainer: false, checkbox: true, onClick: () => this._selectAllChange()
|
|
98632
|
+
items.unshift(hAsync("p-dropdown-menu-item", { active: this._allSelected, slot: 'items', useContainer: false, checkbox: true, onClick: () => this._selectAllChange() }, this.selectAllIcon?.length ? (hAsync("span", { class: 'flex items-center gap-2' }, hAsync("div", { class: 'flex w-6 justify-center text-lg' }, hAsync("p-icon", { variant: this.selectAllIcon })), ' ', this.selectAllText)) : (this.selectAllText)));
|
|
98633
98633
|
}
|
|
98634
98634
|
if (this.enableAutocomplete) {
|
|
98635
98635
|
items.unshift(this._getAutoCompleteItem());
|
|
@@ -98637,17 +98637,17 @@ class Select {
|
|
|
98637
98637
|
return items;
|
|
98638
98638
|
}
|
|
98639
98639
|
_getAddItem() {
|
|
98640
|
-
return (hAsync("p-dropdown-menu-item", { onClick: () => this.add.emit()
|
|
98640
|
+
return (hAsync("p-dropdown-menu-item", { slot: 'items', useContainer: false, onClick: () => this.add.emit() }, hAsync("span", { class: 'flex items-center gap-1 font-semibold text-indigo-600' }, this.addItemText, hAsync("p-icon", { variant: 'plus' }))));
|
|
98641
98641
|
}
|
|
98642
98642
|
_getLoadingItems() {
|
|
98643
|
-
const items = [0, 0, 0].map(() => (hAsync("p-dropdown-menu-item", { enableHover: false, slot: 'items' }, hAsync("p-loader", {
|
|
98643
|
+
const items = [0, 0, 0].map(() => (hAsync("p-dropdown-menu-item", { enableHover: false, slot: 'items' }, hAsync("p-loader", { class: 'h-6 w-full rounded', variant: 'ghost' }))));
|
|
98644
98644
|
if (this.enableAutocomplete) {
|
|
98645
98645
|
items.unshift(this._getAutoCompleteItem());
|
|
98646
98646
|
}
|
|
98647
98647
|
return items;
|
|
98648
98648
|
}
|
|
98649
98649
|
_getAutoCompleteItem() {
|
|
98650
|
-
return (hAsync("div", { class: 'sticky top-0 z-10 mb-3 h-8', slot: 'items' }, hAsync("p-field", { class: 'block', placeholder: this.autocompletePlaceholder,
|
|
98650
|
+
return (hAsync("div", { class: 'sticky top-0 z-10 mb-3 h-8', slot: 'items' }, hAsync("p-field", { class: 'block', placeholder: this.autocompletePlaceholder, value: this.query, onInputRefChange: ev => (this.autocompleteInputRef = ev.detail), onValueChange: ev => this._onAutoComplete(ev) })));
|
|
98651
98651
|
}
|
|
98652
98652
|
_setMultiContainerMaxWidth() {
|
|
98653
98653
|
if (!this._inputRef || !this._multiContainerRef) {
|
|
@@ -98711,7 +98711,7 @@ class Select {
|
|
|
98711
98711
|
? (this.selectionDisplayKey ?? this.displayKey)
|
|
98712
98712
|
: this.displayKey]));
|
|
98713
98713
|
if (this.avatarKey) {
|
|
98714
|
-
content = (hAsync("span", { class: 'flex items-center gap-2' }, hAsync("p-avatar", { size: 'sm', src: item[this.avatarKey]
|
|
98714
|
+
content = (hAsync("span", { class: 'flex items-center gap-2' }, hAsync("p-avatar", { letters: item[this.avatarLettersKey], size: 'sm', src: item[this.avatarKey] }), hAsync("div", { class: textContainer({
|
|
98715
98715
|
variant: 'default',
|
|
98716
98716
|
error: !!this.error?.length,
|
|
98717
98717
|
enableTextWrap: this.enableTextWrap && !isSelection,
|
|
@@ -99003,7 +99003,7 @@ class Stepper {
|
|
|
99003
99003
|
}
|
|
99004
99004
|
_getItem(data, i) {
|
|
99005
99005
|
const activeStep = this.activeStep - 1 || 0;
|
|
99006
|
-
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active,
|
|
99006
|
+
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active, align: this.direction === 'vertical' ? this.align : 'start', contentPosition: this.contentPosition, finished: this.enableAutoStatus ? i < activeStep : data.finished, number: i + 1 }, data.content));
|
|
99007
99007
|
}
|
|
99008
99008
|
_getLine(i) {
|
|
99009
99009
|
const activeStep = this.activeStep - 1 || 0;
|
|
@@ -99675,41 +99675,19 @@ class Table {
|
|
|
99675
99675
|
this.hasRendered.emit();
|
|
99676
99676
|
}
|
|
99677
99677
|
render() {
|
|
99678
|
-
return (hAsync(Host, { key: '7ece1479d7c90b408fa55f045feba734f9e27b28', class: 'z-0 flex flex-col' }, hAsync("p-table-container", { key: '290cf20abdacab6257ebef5479b834df529bccbd' }, this.enableHeader && (hAsync("p-table-header", { key: '
|
|
99679
|
-
// quick filters
|
|
99680
|
-
quickFilters: this.quickFilters, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, onQuickFilter: ({ detail }) => this.quickFilter.emit(detail),
|
|
99681
|
-
// search
|
|
99682
|
-
enableSearch: this.enableSearch, query: this.query, onQueryChange: ({ detail }) => this.queryChange.emit(detail),
|
|
99683
|
-
// filter button
|
|
99684
|
-
enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, selectedFiltersAmount: this.selectedFiltersAmount, filterButtonTemplate: this.filterButtonTemplate, onFilter: () => this.filter.emit(),
|
|
99685
|
-
// action button
|
|
99686
|
-
enableAction: this.enableAction, actionIcon: this.actionButtonIcon, actionText: this.actionButtonText, actionLoading: this.actionButtonLoading, canUseAction: this.actionButtonEnabled, actionButtonTemplate: this.actionButtonTemplate, onAction: () => this.action.emit(), itemsSelectedAmount: this.selectedRows?.length,
|
|
99687
|
-
//export
|
|
99688
|
-
enableExport: this.enableExport, onExport: () => this.export.emit(),
|
|
99689
|
-
//loading
|
|
99690
|
-
loading: this.headerLoading }, this._hasCustomFilterSlot && (hAsync("slot", { key: '555237f446a654201d12321505062d4c4e06210c', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (hAsync("slot", { key: '4e935caf48c9cf1b0516a61ca9076a3755f98546', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), hAsync("div", { key: '23816ab229344ba5a7c5cc02a358b277e5ff8da1', class: 'flex flex-1 flex-col' }, this._getRows(), hAsync("slot", { key: 'd3012e94582c06ca536db0ab83d1bd0df4d80c48', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (hAsync("p-floating-menu-container", { usedInTable: true, class: floatingMenuContainerClass({
|
|
99678
|
+
return (hAsync(Host, { key: '7ece1479d7c90b408fa55f045feba734f9e27b28', class: 'z-0 flex flex-col' }, hAsync("p-table-container", { key: '290cf20abdacab6257ebef5479b834df529bccbd' }, this.enableHeader && (hAsync("p-table-header", { key: '6a1af71c86b2b23d26d8d344b1528b1356d7bd7b', actionButtonTemplate: this.actionButtonTemplate, actionIcon: this.actionButtonIcon, actionLoading: this.actionButtonLoading, actionText: this.actionButtonText, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, canUseAction: this.actionButtonEnabled, class: 'mb-8', enableAction: this.enableAction, enableExport: this.enableExport, enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, enableSearch: this.enableSearch, filterButtonTemplate: this.filterButtonTemplate, itemsSelectedAmount: this.selectedRows?.length, loading: this.headerLoading, query: this.query, quickFilters: this.quickFilters, selectedFiltersAmount: this.selectedFiltersAmount, onAction: () => this.action.emit(), onExport: () => this.export.emit(), onFilter: () => this.filter.emit(), onQueryChange: ({ detail }) => this.queryChange.emit(detail), onQuickFilter: ({ detail }) => this.quickFilter.emit(detail) }, this._hasCustomFilterSlot && (hAsync("slot", { key: '6bfe4727050ba7d6a3e6e280cc1c467259b9166b', name: 'custom-filter', slot: 'custom-filter' })), this._hasCustomActionsSlot && (hAsync("slot", { key: 'da4f2aea31f0daa62749393a0390219fa4342b20', name: 'custom-actions', slot: 'custom-actions' })))), this._getExtraHeader(), this._getHeader(), hAsync("div", { key: '799d65d57bf36a924ff40e6cb9416c4be0da4eaf', class: 'flex flex-1 flex-col' }, this._getRows(), hAsync("slot", { key: 'b0060fa16edf49898787df195c86a35adf397798', name: 'custom-rows' })), this.enableFloatingMenu && this._enableRowSelection ? (hAsync("p-floating-menu-container", { amount: this.selectedRows?.length, amountSelectedTemplate: this.floatingMenuAmountSelectedTemplate, class: floatingMenuContainerClass({
|
|
99691
99679
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
99692
99680
|
active: !!this.selectedRows?.length,
|
|
99693
99681
|
shown: this._floatingMenuShown,
|
|
99694
|
-
}),
|
|
99695
|
-
this._rowActionsFloating.map(a => (hAsync("p-floating-menu-item", {
|
|
99682
|
+
}), enableAmountSelected: !!this._rowActionsFloating?.length, usedInTable: true, onClose: () => this._selectAllChange(null, false) }, this._rowActionsFloating?.length &&
|
|
99683
|
+
this._rowActionsFloating.map(a => (hAsync("p-floating-menu-item", { disabled: a.disabled, icon: a.icon, iconFlip: a.iconFlip, iconRotate: a.iconRotate, loading: a.loading, slot: 'floating-menu-item', onClick: () => !a.disabled &&
|
|
99696
99684
|
!a.loading &&
|
|
99697
99685
|
!!a.action &&
|
|
99698
99686
|
a.type === 'single'
|
|
99699
99687
|
? a.action(this.selectedRows[0], false)
|
|
99700
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '
|
|
99701
|
-
// overall
|
|
99702
|
-
hideOnSinglePage: this.hideOnSinglePage,
|
|
99703
|
-
// page size select
|
|
99704
|
-
enablePaginationSize: this.enablePaginationSize, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail),
|
|
99705
|
-
// pagination
|
|
99706
|
-
enablePaginationPages: this.enablePaginationPages, page: this.page, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail),
|
|
99707
|
-
//loading
|
|
99708
|
-
loading: this.footerLoading, onHiddenChange: ({ detail }) => (this._footerHidden = detail),
|
|
99709
|
-
// header adjustment
|
|
99710
|
-
tableHeaderHasAction: this.enableHeader &&
|
|
99688
|
+
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '57d24f1f3803e58053eba3da5fad1ab6474eccc6', enablePaginationPages: this.enablePaginationPages, enablePaginationSize: this.enablePaginationSize, hideOnSinglePage: this.hideOnSinglePage, loading: this.footerLoading, page: this.page, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, tableHeaderHasAction: this.enableHeader &&
|
|
99711
99689
|
this.enableAction &&
|
|
99712
|
-
this.actionButtonEnabled })))));
|
|
99690
|
+
this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
|
|
99713
99691
|
}
|
|
99714
99692
|
async _setLocales() {
|
|
99715
99693
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -99805,12 +99783,12 @@ class Table {
|
|
|
99805
99783
|
if (!this._extraHeaders?.length) {
|
|
99806
99784
|
return null;
|
|
99807
99785
|
}
|
|
99808
|
-
return (hAsync("p-table-row", { variant: 'header-secondary'
|
|
99786
|
+
return (hAsync("p-table-row", { isLast: true, variant: 'header-secondary' }, this._extraHeaders.map((col, index) => (hAsync("p-table-cell", { checkboxOffset: index === 0 && this._enableRowSelection, definition: col, index: index, variant: 'header-secondary' }, hAsync("b", null, col.name))))));
|
|
99809
99787
|
}
|
|
99810
99788
|
_getHeader() {
|
|
99811
|
-
return (hAsync("p-table-row", { variant: 'header' }, this._columns.map((col, index) => (hAsync("p-table-cell", {
|
|
99789
|
+
return (hAsync("p-table-row", { variant: 'header' }, this._columns.map((col, index) => (hAsync("p-table-cell", { checkbox: index === 0 || col.hasCheckbox
|
|
99812
99790
|
? this._getCheckbox(null, this.loading ? 'loading' : 'header')
|
|
99813
|
-
: null, index: index })))));
|
|
99791
|
+
: null, definition: col, index: index, value: col.name, variant: 'header' })))));
|
|
99814
99792
|
}
|
|
99815
99793
|
_getRows() {
|
|
99816
99794
|
if (this.loading) {
|
|
@@ -99821,22 +99799,22 @@ class Table {
|
|
|
99821
99799
|
if (this._items.length === 0) {
|
|
99822
99800
|
return this._getEmptyState();
|
|
99823
99801
|
}
|
|
99824
|
-
return this._items.map((item, index) => (hAsync("p-table-row", { enableHover: this._enableRowSelection || this.enableRowClick,
|
|
99802
|
+
return this._items.map((item, index) => (hAsync("p-table-row", { checked: this._selectionContains(index), enableHover: this._enableRowSelection || this.enableRowClick, isLast: index === this._items.length - 1, onClick: ev => this._rowClick(ev, index) }, this._getRowColumns(item, index), this._getActions(item, index))));
|
|
99825
99803
|
}
|
|
99826
99804
|
_getActions(item, index) {
|
|
99827
99805
|
const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
|
|
99828
99806
|
if (actions?.length && !isMobile()) {
|
|
99829
|
-
return (hAsync("p-table-row-actions-container", {
|
|
99807
|
+
return (hAsync("p-table-row-actions-container", { checked: this._selectionContains(index), slot: 'actions' }, actions.map(a => (hAsync("p-tooltip", { content: a.label, strategy: 'fixed' }, hAsync("p-button", { icon: a.icon, iconFlip: a.iconFlip, iconOnly: true, iconRotate: a.iconRotate, size: 'sm', slot: 'trigger', variant: 'secondary', "data-is-action": true, onClick: () => typeof a.action === 'function' && a.action?.(item, false) }))))));
|
|
99830
99808
|
}
|
|
99831
99809
|
return null;
|
|
99832
99810
|
}
|
|
99833
99811
|
_getRowColumns(item, index) {
|
|
99834
|
-
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", {
|
|
99812
|
+
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", { checkbox: colIndex === 0 || col.hasCheckbox ? this._getCheckbox(index) : null, definition: col, index: colIndex, item: item, rowIndex: index })));
|
|
99835
99813
|
}
|
|
99836
99814
|
_getLoadingColumns(index) {
|
|
99837
|
-
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", {
|
|
99815
|
+
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", { checkbox: colIndex === 0 || col.hasCheckbox
|
|
99838
99816
|
? this._getCheckbox(index, 'loading')
|
|
99839
|
-
: null, index: colIndex, rowIndex: index })));
|
|
99817
|
+
: null, definition: col, index: colIndex, rowIndex: index, variant: 'loading' })));
|
|
99840
99818
|
}
|
|
99841
99819
|
_getCheckbox(rowIndex, variant = 'default') {
|
|
99842
99820
|
if (!this._enableRowSelection ||
|
|
@@ -99844,25 +99822,25 @@ class Table {
|
|
|
99844
99822
|
return;
|
|
99845
99823
|
}
|
|
99846
99824
|
if (variant === 'loading') {
|
|
99847
|
-
return (hAsync("p-loader", {
|
|
99825
|
+
return (hAsync("p-loader", { class: 'h-6 w-6 rounded', variant: 'ghost' }));
|
|
99848
99826
|
}
|
|
99849
99827
|
if (variant === 'header') {
|
|
99850
|
-
return (hAsync("p-checkbox", { class: cn({
|
|
99828
|
+
return (hAsync("p-checkbox", { checked: this._selectionContainsAll(), class: cn({
|
|
99851
99829
|
'opacity-0': this._rowSelectionLimit !== undefined,
|
|
99852
|
-
}),
|
|
99830
|
+
}), disabled: this._rowSelectionLimit !== undefined, indeterminate: this._selectionIndeterminate(), onCheckedChange: ev => this._selectAllChange(ev) }));
|
|
99853
99831
|
}
|
|
99854
99832
|
const item = this._items[rowIndex];
|
|
99855
99833
|
const selectionContains = this._selectionContains(rowIndex);
|
|
99856
|
-
return (hAsync("p-checkbox", { class: 'flex-shrink-0', disabled: (this.canSelectKey && !item[this.canSelectKey]) ||
|
|
99834
|
+
return (hAsync("p-checkbox", { checked: selectionContains, class: 'flex-shrink-0', disabled: (this.canSelectKey && !item[this.canSelectKey]) ||
|
|
99857
99835
|
(this._rowSelectionLimit !== undefined &&
|
|
99858
99836
|
!selectionContains &&
|
|
99859
|
-
this.selectedRows.length === this._rowSelectionLimit),
|
|
99837
|
+
this.selectedRows.length === this._rowSelectionLimit), onCheckedChange: ev => this._checkboxChange(ev, rowIndex) }));
|
|
99860
99838
|
}
|
|
99861
99839
|
_getEmptyState() {
|
|
99862
99840
|
if (this.query?.length || this.selectedFiltersAmount) {
|
|
99863
|
-
return (hAsync("p-empty-state", { class: 'my-16 self-center',
|
|
99841
|
+
return (hAsync("p-empty-state", { class: 'my-16 self-center', content: this.emptyStateFilteredContent(), header: this.emptyStateFilteredHeader(), illustration: 'search' }));
|
|
99864
99842
|
}
|
|
99865
|
-
return (hAsync("p-empty-state", { class: 'my-16 self-center',
|
|
99843
|
+
return (hAsync("p-empty-state", { actionIcon: 'plus', actionText: this.emptyStateAction(), class: 'my-16 self-center', content: this.emptyStateContent(), enableAction: this.enableEmptyStateAction, header: this.emptyStateHeader(), illustration: 'table', onAction: () => this.enableAction && this.action.emit() }));
|
|
99866
99844
|
}
|
|
99867
99845
|
_selectAllChange(ev, forceValue) {
|
|
99868
99846
|
if (!this._enableRowSelection) {
|
|
@@ -100247,7 +100225,7 @@ class TableCell {
|
|
|
100247
100225
|
}
|
|
100248
100226
|
_getContent() {
|
|
100249
100227
|
if (this.variant === 'loading') {
|
|
100250
|
-
return (hAsync("p-loader", {
|
|
100228
|
+
return (hAsync("p-loader", { class: 'h-6 w-[calc(100%-1rem)] flex-1 rounded', variant: 'ghost' }));
|
|
100251
100229
|
}
|
|
100252
100230
|
const align = this.variant === 'header'
|
|
100253
100231
|
? (this.definition.headerAlign ?? this.definition.align)
|
|
@@ -100552,7 +100530,7 @@ class TableFooter {
|
|
|
100552
100530
|
hidden: this._hidden,
|
|
100553
100531
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
100554
100532
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
100555
|
-
this.total > 0 && (hAsync("p-pagination", { key: '9bbe8d8de8dce310f2799829469b6826642aa295', class: 'z-[2]',
|
|
100533
|
+
this.total > 0 && (hAsync("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) })))));
|
|
100556
100534
|
}
|
|
100557
100535
|
_changePageSize(s) {
|
|
100558
100536
|
if (!s) {
|
|
@@ -110194,21 +110172,21 @@ class TableHeader {
|
|
|
110194
110172
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
110195
110173
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
110196
110174
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
110197
|
-
return (hAsync(ThemedHost, { key: 'dcf65ce62e7dc90f0c45e7748fd23872f21e7fad' }, hAsync("div", { key: '3082ccae779f57c8812afc4b2400b20c87dd22a0', class: header() }, this.loading && (hAsync("p-loader", { key: 'cbcf94e4afb27f7ee22b4adfbcadd9d72db2a189',
|
|
110175
|
+
return (hAsync(ThemedHost, { key: 'dcf65ce62e7dc90f0c45e7748fd23872f21e7fad' }, hAsync("div", { key: '3082ccae779f57c8812afc4b2400b20c87dd22a0', class: header() }, this.loading && (hAsync("p-loader", { key: 'cbcf94e4afb27f7ee22b4adfbcadd9d72db2a189', class: 'hidden h-8 w-3/4 rounded desktop-xs:flex', variant: 'ghost' })), !this.loading &&
|
|
110198
110176
|
(hasCustomFilterSlot || quickFilters.length > 0) && (hAsync("div", { key: '04c40b4406a49b0faf09c1e72ffe0d3b64e54548', class: 'flex flex-col justify-start gap-4 justify-self-start desktop-xs:flex-row' }, hasCustomFilterSlot && hAsync("slot", { key: '409423868e33814d87381c29d41cfede57deead0', name: 'custom-filter' }), quickFilters.length > 0 && (hAsync("p-segment-container", { key: '51c257a5ad8c65e84dac192b86c2cb291435884e', class: 'hidden desktop-xs:flex' }, quickFilters.map(item => (hAsync("p-segment-item", { active: item.identifier === this.activeQuickFilterIdentifier, onClick: () => this.quickFilter.emit(item) }, typeof item.text === 'string'
|
|
110199
110177
|
? item.text
|
|
110200
|
-
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), hAsync("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 && (hAsync("p-field", { key: 'e52e1dbe939f318c711e0f5ae25e8c667f6fcf31',
|
|
110178
|
+
: item.text(), ' ', item?.count >= 0 ? `(${item.count})` : ''))))))), hAsync("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 && (hAsync("p-field", { key: 'e52e1dbe939f318c711e0f5ae25e8c667f6fcf31', class: 'desktop-xs:max-w-60', icon: 'search', placeholder: 'Zoeken...', value: this.query, onValueChange: ev => this._queryObserver.next(ev.detail) })), hAsync("div", { key: 'b914ffa439de0484c5528fa9c02b4a32dc853c27', class: 'flex items-center gap-2' }, this.enableFilter && (hAsync("p-button", { key: '5ea25448415e1b54883dc86059192b065cb23093', class: `w-full ${this.enableFilterDesktop
|
|
110201
110179
|
? 'desktop-xs:w-auto'
|
|
110202
|
-
: 'desktop-xs:hidden'}`, onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
110180
|
+
: 'desktop-xs:hidden'}`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
110203
110181
|
? this.filterButtonTemplate()
|
|
110204
110182
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
110205
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '38dc1a4aa1902f41b4b3e3cb85da7d442fc98fd0',
|
|
110183
|
+
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '38dc1a4aa1902f41b4b3e3cb85da7d442fc98fd0', class: 'hidden h-4 tablet:flex dark:text-white/15', variant: 'vertical' })), !this.loading && this.enableExport && (hAsync("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 && hAsync("slot", { key: '24b7bee12f89bb16e4e4d690ee03564fcd106638', name: 'custom-actions' })), this.enableAction && this.canUseAction && (hAsync("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))))));
|
|
110206
110184
|
}
|
|
110207
110185
|
async _setLocales() {
|
|
110208
110186
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
110209
110187
|
}
|
|
110210
110188
|
_buttonTemplate(mobile = false) {
|
|
110211
|
-
return (hAsync("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', icon: this.actionIcon,
|
|
110189
|
+
return (hAsync("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
|
|
110212
110190
|
? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)
|
|
110213
110191
|
: this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
110214
110192
|
}
|
|
@@ -110528,7 +110506,7 @@ class Toast {
|
|
|
110528
110506
|
*/
|
|
110529
110507
|
action;
|
|
110530
110508
|
render() {
|
|
110531
|
-
return (hAsync(ThemedHost, { key: '6fd875b74af13f4a1c7dd6e924d7044ff06c944f' }, hAsync("div", { key: 'f908fa3fc32e0818e5b7ccd64adf925678719072', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2 dark:border-hurricane-800 dark:bg-hurricane-800', onClick: () => this._onClick() }, hAsync("div", { key: '7f2788fde508ad480ffaaf544f6815f87e520499', class: indicator({ variant: this.variant }) }), hAsync("div", { key: '99bde4f91347f270375852e62b573cba43d570d2', class: content() }, hAsync("div", { key: '2ea0b73745021b483607c52166204f3e00b33d38', class: 'flex w-full min-w-0 flex-col' }, hAsync("p", { key: 'd9cf48a043d897e211da6ce6d389ee65c59d7560', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500 dark:text-white' }, this.header?.length ? this.header : hAsync("slot", { name: 'header' })), hAsync("p", { key: 'cbae153aafab6f54d0af33ab3a99f1c03a44cd78', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300 dark:text-hurricane-200' }, this.content?.length ? this.content : hAsync("slot", { name: 'content' }))), this.enableAction && (hAsync("div", { key: '300ae00c2e2e30c87c32f78bf05a3bb3a65e2a97', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500 hover:text-white dark:text-hurricane-200' }, hAsync("p-icon", { key: 'a7849a36ec22b1a300c0d788c0e41ea1e8e76340',
|
|
110509
|
+
return (hAsync(ThemedHost, { key: '6fd875b74af13f4a1c7dd6e924d7044ff06c944f' }, hAsync("div", { key: 'f908fa3fc32e0818e5b7ccd64adf925678719072', class: 'flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2 shadow-2 dark:border-hurricane-800 dark:bg-hurricane-800', onClick: () => this._onClick() }, hAsync("div", { key: '7f2788fde508ad480ffaaf544f6815f87e520499', class: indicator({ variant: this.variant }) }), hAsync("div", { key: '99bde4f91347f270375852e62b573cba43d570d2', class: content() }, hAsync("div", { key: '2ea0b73745021b483607c52166204f3e00b33d38', class: 'flex w-full min-w-0 flex-col' }, hAsync("p", { key: 'd9cf48a043d897e211da6ce6d389ee65c59d7560', class: 'm-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm font-semibold text-storm-500 dark:text-white' }, this.header?.length ? this.header : hAsync("slot", { name: 'header' })), hAsync("p", { key: 'cbae153aafab6f54d0af33ab3a99f1c03a44cd78', class: 'm-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs text-storm-300 dark:text-hurricane-200' }, this.content?.length ? this.content : hAsync("slot", { name: 'content' }))), this.enableAction && (hAsync("div", { key: '300ae00c2e2e30c87c32f78bf05a3bb3a65e2a97', class: 'flex-shrink-0 cursor-pointer p-2 text-storm-200 hover:text-storm-500 hover:text-white dark:text-hurricane-200' }, hAsync("p-icon", { key: 'a7849a36ec22b1a300c0d788c0e41ea1e8e76340', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
110532
110510
|
}
|
|
110533
110511
|
_onClick() {
|
|
110534
110512
|
if (this.enableAction) {
|
|
@@ -110709,9 +110687,9 @@ class Toggle {
|
|
|
110709
110687
|
}
|
|
110710
110688
|
render() {
|
|
110711
110689
|
const id = this.id?.length ? this.id : this._nonce;
|
|
110712
|
-
return (hAsync(ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, hAsync("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a',
|
|
110690
|
+
return (hAsync(ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, hAsync("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a', class: 'flex items-center justify-start gap-2', htmlFor: id }, hAsync("div", { key: '1fd1d1c6e8b35354c9f91442b88ee7aca4297c22', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, hAsync("input", { key: 'f487829bc32e0865446f006ef8de74a4fd3059cd', checked: !!this.checked, class: toggle({
|
|
110713
110691
|
disabled: asBoolean(this.disabled),
|
|
110714
|
-
}),
|
|
110692
|
+
}), disabled: asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'checkbox', onChange: ev => this._onChange(ev) }), hAsync("div", { key: '8c1664a5b9eadf6c454636aca5e044e233a8a8ab', class: circle({
|
|
110715
110693
|
disabled: asBoolean(this.disabled),
|
|
110716
110694
|
}) })), hAsync("div", { key: '90f8606523d6d4b131bf039717d9c436ae36d782', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, hAsync("slot", { key: 'cf7f5ed84d5b1cda9b6372209242415d4dd67024' })))));
|
|
110717
110695
|
}
|
|
@@ -110840,7 +110818,7 @@ class Tooltip {
|
|
|
110840
110818
|
return (hAsync(ThemedHost, { key: 'ef3333212b88389556fa76159040a9dd6e0c2e17', "data-filled": this.content?.length > 0 || this._hasContentSlot }, hAsync("slot", { key: '095bf08cf3d45b3baaf9921796392b6b51e13719', name: 'trigger' }), hAsync("div", { key: '46dcc7888a6c2e66e1e5e7d5a9492f117775be30', class: popover({
|
|
110841
110819
|
variant: this.variant,
|
|
110842
110820
|
strategy: this.strategy,
|
|
110843
|
-
}),
|
|
110821
|
+
}), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, hAsync("div", { key: '5651334a58293cf9a6adc96b2d8cb1991691404a', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (hAsync("div", { key: '9db76dfaf31d1acbb72eedd0d90744bf913bb21f', class: 'w-[2px] bg-negative-red-500 dark:bg-negative-red-alternative' })), this.content ?? hAsync("slot", { key: '0bbaa654220dd3b99c26dd787c540a1ca85bd8af', name: 'content' })))));
|
|
110844
110822
|
}
|
|
110845
110823
|
clickHandler() {
|
|
110846
110824
|
if (this.variant === 'hover' || !this.enableUserInput) {
|