@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.js
CHANGED
|
@@ -11570,7 +11570,7 @@ class Accordion {
|
|
|
11570
11570
|
return (hAsync(ThemedHost, { key: '36d39106bf27e5005cfdd96f062e89d3be88dbef' }, hAsync("div", { key: '55912f6dbbd9f44f9d86e0e1500d425d2d5fd16e', class: cn('flex cursor-pointer items-center gap-2', {
|
|
11571
11571
|
'text-storm-500 dark:text-white': this.variant === 'primary',
|
|
11572
11572
|
'text-storm-300 dark:text-hurricane-200': this.variant === 'secondary',
|
|
11573
|
-
}), onClick: () => this._onClick() }, hAsync("p-icon", { key: '73e31ff40f08654d9911562b67565a6494184460', class: 'flex shrink-0',
|
|
11573
|
+
}), 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' })))));
|
|
11574
11574
|
}
|
|
11575
11575
|
_onClick() {
|
|
11576
11576
|
if (!this.closeable && this.open) {
|
|
@@ -11703,30 +11703,30 @@ class Attachment {
|
|
|
11703
11703
|
render() {
|
|
11704
11704
|
let prefix = (hAsync("p-icon", { key: 'c32bd5160f16b5fe66dd6bdddc7abab643ecac69', class: 'text-storm-300', variant: 'attachment' }));
|
|
11705
11705
|
if (this.error) {
|
|
11706
|
-
prefix = (hAsync("p-icon", { key: '258cc04fd6a6ca24cc99fd4402740c600c845641',
|
|
11706
|
+
prefix = (hAsync("p-icon", { key: '258cc04fd6a6ca24cc99fd4402740c600c845641', class: 'text-negative-red-500', variant: 'warning' }));
|
|
11707
11707
|
}
|
|
11708
11708
|
// const isMobileDevice = isMobile();
|
|
11709
11709
|
const isMobileDevice = isTablet();
|
|
11710
11710
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
11711
|
-
return (hAsync(Fragment, { key: '2d4812f3d31f3cd0816628933c7f430526db82d6' }, hAsync("p-field-container", { key: '349206b933ad13c0f37cd07d2a8da5b7be1a5c06',
|
|
11711
|
+
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({
|
|
11712
11712
|
click: this.mode === 'write' && !this.value?.length,
|
|
11713
11713
|
error: !!this.error?.length,
|
|
11714
11714
|
}), 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'
|
|
11715
11715
|
? this.downloadTooltip
|
|
11716
11716
|
: this.value?.length
|
|
11717
11717
|
? this.deleteTooltip
|
|
11718
|
-
: this.uploadTooltip }, hAsync("p-button", { key: 'a0f090e19e177cff757ebae1fc2f5d1f4df8db68',
|
|
11718
|
+
: this.uploadTooltip }, hAsync("p-button", { key: 'a0f090e19e177cff757ebae1fc2f5d1f4df8db68', disabled: this.loading, icon: this.mode === 'read'
|
|
11719
11719
|
? 'download'
|
|
11720
11720
|
: this.value?.length
|
|
11721
11721
|
? 'trash'
|
|
11722
|
-
: 'upload',
|
|
11722
|
+
: 'upload', iconOnly: true, loading: this.loading, slot: 'trigger', variant: 'secondary', onOnClick: () => this.mode === 'write' && !this.value?.length
|
|
11723
11723
|
? this._uploadClick()
|
|
11724
11724
|
: (this.mode === 'read'
|
|
11725
11725
|
? this.download
|
|
11726
11726
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
11727
11727
|
this.mode === 'write' &&
|
|
11728
11728
|
isMobileDevice &&
|
|
11729
|
-
!this.value?.length && (hAsync("p-tooltip", { key: '2b41ef669b3fc1e58a394d847a30b1316f0e3a0d',
|
|
11729
|
+
!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) })));
|
|
11730
11730
|
}
|
|
11731
11731
|
_uploadClick() {
|
|
11732
11732
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -11856,7 +11856,7 @@ class Avatar {
|
|
|
11856
11856
|
return (hAsync(Host, { key: '796c5d3f656f05a0fb841dc24ba3ffd443a690da', class: avatar({
|
|
11857
11857
|
size: this.size,
|
|
11858
11858
|
variant: this.variant,
|
|
11859
|
-
}) }, this._failed ? (hAsync("span", null, this.letters?.[0] ?? ' ')) : (hAsync("img", {
|
|
11859
|
+
}) }, 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() }))));
|
|
11860
11860
|
}
|
|
11861
11861
|
_setFailed() {
|
|
11862
11862
|
this._failed = true;
|
|
@@ -12587,7 +12587,7 @@ class Button {
|
|
|
12587
12587
|
: 'button';
|
|
12588
12588
|
const hostClass = cn('p-button inline-block', this.class);
|
|
12589
12589
|
const active = asBoolean(this.active) || hostClass?.includes('active');
|
|
12590
|
-
return (hAsync(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, hAsync(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b',
|
|
12590
|
+
return (hAsync(ThemedHost, { key: '7452fa765b24901c77a8ed76278994150ba11acf', class: hostClass }, hAsync(VariableTag, { key: '9f0d18fb8068bb01f0dd5d844aa322c1effccb9b', class: button({
|
|
12591
12591
|
variant: this.variant,
|
|
12592
12592
|
size: this.size,
|
|
12593
12593
|
loading: asBoolean(this.loading),
|
|
@@ -12597,14 +12597,14 @@ class Button {
|
|
|
12597
12597
|
active,
|
|
12598
12598
|
error: asBoolean(this.error),
|
|
12599
12599
|
underline: asBoolean(this.underline) && VariableTag === 'a',
|
|
12600
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { key: 'c838235c3411be17231b10e8fcca992f62d89afe',
|
|
12600
|
+
}), 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 &&
|
|
12601
12601
|
this.iconPosition === 'start' &&
|
|
12602
12602
|
!(this.iconOnly && this.loading) &&
|
|
12603
12603
|
this._getIcon(), this.label ?? hAsync("slot", { key: '96401595325aecdfb14c77b5dce103a67d4d8da8' }), this.icon &&
|
|
12604
12604
|
this.iconPosition === 'end' &&
|
|
12605
12605
|
!this.loading &&
|
|
12606
12606
|
!this.chevron &&
|
|
12607
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (hAsync("p-icon", { key: 'b543d3ca7e0253c71e93d6736a1a99a69d156fe0',
|
|
12607
|
+
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 }))));
|
|
12608
12608
|
}
|
|
12609
12609
|
handleClick(ev) {
|
|
12610
12610
|
if (this.loading || this.disabled) {
|
|
@@ -12627,7 +12627,7 @@ class Button {
|
|
|
12627
12627
|
active: asBoolean(this.active),
|
|
12628
12628
|
error: asBoolean(this.error),
|
|
12629
12629
|
iconOnly: asBoolean(this.iconOnly),
|
|
12630
|
-
}), this.iconClass ?? ''),
|
|
12630
|
+
}), this.iconClass ?? ''), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
|
|
12631
12631
|
}
|
|
12632
12632
|
static get style() { return buttonComponentCss(); }
|
|
12633
12633
|
static get cmpMeta() { return {
|
|
@@ -88052,7 +88052,7 @@ class Calendar {
|
|
|
88052
88052
|
const daysInMonth = this._generateDaysInMonth();
|
|
88053
88053
|
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', {
|
|
88054
88054
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
88055
|
-
})))), daysInMonth.map(day => day.active ? (hAsync("p-button", {
|
|
88055
|
+
})))), 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', {
|
|
88056
88056
|
'cursor-pointer hover:bg-white-600 hover:text-storm-500 dark:text-white dark:hover:bg-hurricane-300 dark:hover:text-white': !day.disabled,
|
|
88057
88057
|
'dark:text-hurricane-200': day.disabled,
|
|
88058
88058
|
}, `col-start-${day.offset}`, { 'cursor-not-allowed opacity-60': day.disabled }, {
|
|
@@ -88061,13 +88061,13 @@ class Calendar {
|
|
|
88061
88061
|
}
|
|
88062
88062
|
_getMonthView() {
|
|
88063
88063
|
const months = this._generateMonths();
|
|
88064
|
-
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',
|
|
88064
|
+
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', {
|
|
88065
88065
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
88066
88066
|
})))))));
|
|
88067
88067
|
}
|
|
88068
88068
|
_getYearView() {
|
|
88069
88069
|
const years = this._generateYears();
|
|
88070
|
-
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',
|
|
88070
|
+
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))))));
|
|
88071
88071
|
}
|
|
88072
88072
|
_getHeader(type = 'day') {
|
|
88073
88073
|
let nextFn = num => this._changeMonth(num);
|
|
@@ -88076,11 +88076,11 @@ class Calendar {
|
|
|
88076
88076
|
nextFn = num => this._changeYear(num);
|
|
88077
88077
|
nextType = 'year';
|
|
88078
88078
|
}
|
|
88079
|
-
return (hAsync("div", { class: header$5({ type: this.mode }) }, this.mode !== 'year' && (hAsync("p-button", {
|
|
88079
|
+
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', {
|
|
88080
88080
|
'flex-1': this._enableToday,
|
|
88081
|
-
}) }, this.mode !== 'year' && (hAsync("p-button", {
|
|
88081
|
+
}) }, 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', {
|
|
88082
88082
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
88083
|
-
}))), hAsync("p-button", {
|
|
88083
|
+
}))), 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) }))));
|
|
88084
88084
|
}
|
|
88085
88085
|
_setYear(year) {
|
|
88086
88086
|
const date = dateFnsExports.setYear(this._viewDate, year);
|
|
@@ -88485,7 +88485,7 @@ class CardHeader {
|
|
|
88485
88485
|
variant: this.variant,
|
|
88486
88486
|
}) }, hAsync("div", { key: '3d56078ea79fdcb81461437dd3b8c66f712a5cef', class: content$6({
|
|
88487
88487
|
variant: this.variant,
|
|
88488
|
-
}) }, this.icon ? (hAsync("p-icon", { class: 'text-storm-300 dark:text-hurricane-200',
|
|
88488
|
+
}) }, 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' }))))));
|
|
88489
88489
|
}
|
|
88490
88490
|
static get style() { return cardHeaderComponentCss(); }
|
|
88491
88491
|
static get cmpMeta() { return {
|
|
@@ -88622,9 +88622,9 @@ class Checkbox {
|
|
|
88622
88622
|
}
|
|
88623
88623
|
render() {
|
|
88624
88624
|
const id = this.id?.length ? this.id : this._nonce;
|
|
88625
|
-
return (hAsync(ThemedHost, { key: '03c9bf5aa440371b96bec78c7485c3e6269e3912' }, hAsync("label", { key: '2b6622d4b6fa53b9b655408f6f5f309437ac0a51',
|
|
88625
|
+
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({
|
|
88626
88626
|
disabled: asBoolean(this.disabled),
|
|
88627
|
-
}),
|
|
88627
|
+
}), 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({
|
|
88628
88628
|
disabled: asBoolean(this.disabled),
|
|
88629
88629
|
}) }, hAsync("p-icon", { key: 'c649d245d7184a33c235b65aaa2cc282cb5d3b56', class: icon$2({
|
|
88630
88630
|
disabled: asBoolean(this.disabled),
|
|
@@ -88716,9 +88716,9 @@ class ContentSlider {
|
|
|
88716
88716
|
}
|
|
88717
88717
|
}
|
|
88718
88718
|
render() {
|
|
88719
|
-
return (hAsync(Host, { key: '82853208f8862b3485a5a00b0c9c4f6986ea92ea', class: 'p-content-slider' }, hAsync("div", { key: '3250c367ac25464a769c43d4093df28dbff8085d', class: `slider ${!this.disableDrag && 'draggable'} ${this._dragging && 'dragging'}`, style: {
|
|
88719
|
+
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: {
|
|
88720
88720
|
height: `${this._outerHeight}px`,
|
|
88721
|
-
},
|
|
88721
|
+
}, 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', {
|
|
88722
88722
|
'bg-indigo-600': i === this._visibleIndex,
|
|
88723
88723
|
'bg-indigo-300': i !== this._visibleIndex,
|
|
88724
88724
|
}) })))))));
|
|
@@ -91762,7 +91762,7 @@ class Cropper {
|
|
|
91762
91762
|
const themeColor = state.theme === 'dark'
|
|
91763
91763
|
? 'rgba(70, 75, 84, 0.5)'
|
|
91764
91764
|
: 'rgba(255, 255, 255, 0.5)';
|
|
91765
|
-
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',
|
|
91765
|
+
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) })));
|
|
91766
91766
|
}
|
|
91767
91767
|
_setImageRef(ref) {
|
|
91768
91768
|
if (this._imageRef || !ref) {
|
|
@@ -92087,16 +92087,16 @@ class Datepicker {
|
|
|
92087
92087
|
this.parseValue(this.value);
|
|
92088
92088
|
}
|
|
92089
92089
|
render() {
|
|
92090
|
-
return (hAsync("p-dropdown", { key: 'c65daeff45afabeefa654b8d033a40d9fda5b4e2', allowOverflow: true,
|
|
92091
|
-
dateFnsExports.format(this.
|
|
92090
|
+
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 &&
|
|
92091
|
+
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
92092
92092
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92093
92093
|
}), min: this._minDate &&
|
|
92094
92094
|
dateFnsExports.format(new Date(this._minDate), 'yyyy-MM-dd', {
|
|
92095
92095
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92096
|
-
}),
|
|
92097
|
-
dateFnsExports.format(
|
|
92096
|
+
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
92097
|
+
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
92098
92098
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92099
|
-
}) })), hAsync("div", { key: 'f57a7045507cc0bf0bb2ae070258c0d4ed1af81f',
|
|
92099
|
+
}), 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) }))));
|
|
92100
92100
|
}
|
|
92101
92101
|
documentClickHandler({ target }) {
|
|
92102
92102
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -92400,7 +92400,7 @@ class Drawer {
|
|
|
92400
92400
|
}
|
|
92401
92401
|
const headerContent = hAsync("slot", { name: 'header' });
|
|
92402
92402
|
const bodyContent = hAsync("slot", { name: 'content' });
|
|
92403
|
-
return (hAsync("p-backdrop", {
|
|
92403
|
+
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))));
|
|
92404
92404
|
}
|
|
92405
92405
|
_backdropClick(ev) {
|
|
92406
92406
|
if (!this.backdropClickClose) {
|
|
@@ -92556,7 +92556,7 @@ class DrawerHeader {
|
|
|
92556
92556
|
*/
|
|
92557
92557
|
close;
|
|
92558
92558
|
render() {
|
|
92559
|
-
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',
|
|
92559
|
+
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' }))));
|
|
92560
92560
|
}
|
|
92561
92561
|
static get style() { return drawerHeaderComponentCss(); }
|
|
92562
92562
|
static get cmpMeta() { return {
|
|
@@ -94220,12 +94220,12 @@ class Dropdown {
|
|
|
94220
94220
|
this._checkItems();
|
|
94221
94221
|
}
|
|
94222
94222
|
render() {
|
|
94223
|
-
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',
|
|
94223
|
+
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({
|
|
94224
94224
|
strategy: this.strategy,
|
|
94225
94225
|
maxWidth: this.applyMaxWidth,
|
|
94226
94226
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
94227
94227
|
isDatepicker: this.isDatepicker,
|
|
94228
|
-
}), this.containerClass),
|
|
94228
|
+
}), 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' })))));
|
|
94229
94229
|
}
|
|
94230
94230
|
_checkButtons(active = false) {
|
|
94231
94231
|
if (!this.applyChevron) {
|
|
@@ -95191,17 +95191,17 @@ class Field {
|
|
|
95191
95191
|
}
|
|
95192
95192
|
render() {
|
|
95193
95193
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
95194
|
-
return (hAsync(ThemedHost, { key: '09b8254690a1603271faac4d9653c90a582a4766' }, hAsync("p-field-container", { key: '776ed3812a980004c1cdc1b6c5b79df5908b383e', forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
95195
|
-
(!!this.error?.length && this.forceShowTooltip), id: id, label: this.label,
|
|
95194
|
+
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) ||
|
|
95195
|
+
(!!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({
|
|
95196
95196
|
error: !!this.error?.length,
|
|
95197
95197
|
disabled: asBoolean(this.disabled),
|
|
95198
95198
|
focused: asBoolean(this.focused) || this._focused,
|
|
95199
95199
|
size: this.size,
|
|
95200
95200
|
variant: this.variant,
|
|
95201
95201
|
isTextarea: this.type === 'textarea',
|
|
95202
|
-
}), title: this.variant === 'read' && !hasValueSlot
|
|
95202
|
+
}), slot: 'content', title: this.variant === 'read' && !hasValueSlot
|
|
95203
95203
|
? `${this.value}`
|
|
95204
|
-
: undefined
|
|
95204
|
+
: undefined }, (this.error?.length ||
|
|
95205
95205
|
prefix ||
|
|
95206
95206
|
(this.icon && this.iconPosition === 'start')) && (hAsync("div", { key: 'b4b203ba8f20620b2d7f368d2c6367bdadea9878', class: prefixAndSuffix({
|
|
95207
95207
|
variant: this.variant,
|
|
@@ -95213,7 +95213,7 @@ class Field {
|
|
|
95213
95213
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
95214
95214
|
this.error?.length ? (hAsync("p-icon", { class: cn('flex', {
|
|
95215
95215
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
95216
|
-
}), variant: this.error?.length ? 'warning' : this.icon
|
|
95216
|
+
}), 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({
|
|
95217
95217
|
variant: this.variant,
|
|
95218
95218
|
error: !!this.error?.length,
|
|
95219
95219
|
disabled: asBoolean(this.disabled),
|
|
@@ -95222,7 +95222,7 @@ class Field {
|
|
|
95222
95222
|
isTextarea: this.type === 'textarea',
|
|
95223
95223
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (hAsync("p-icon", { class: cn('flex', {
|
|
95224
95224
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
95225
|
-
}),
|
|
95225
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })) : (suffix)))))));
|
|
95226
95226
|
}
|
|
95227
95227
|
watchvalue(value) {
|
|
95228
95228
|
if (!this._inputRef) {
|
|
@@ -95297,7 +95297,7 @@ class Field {
|
|
|
95297
95297
|
}
|
|
95298
95298
|
_getContent(hasValueSlot = false, id) {
|
|
95299
95299
|
if (this.variant === 'read') {
|
|
95300
|
-
return hasValueSlot ? (hAsync("slot", { name: 'value' })) : !!this.value && `${this.value}`.length > 0 ? (this.value) : this.showAddOnEmpty ? (hAsync("p-button", {
|
|
95300
|
+
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)) : ('—');
|
|
95301
95301
|
}
|
|
95302
95302
|
if (this.type === 'slot') {
|
|
95303
95303
|
return hAsync("slot", { name: 'input' });
|
|
@@ -95321,7 +95321,7 @@ class Field {
|
|
|
95321
95321
|
if (this.type === 'textarea') {
|
|
95322
95322
|
return (hAsync("textarea", { ref: ref => this._setInputRef(ref), ...props, ...properties }));
|
|
95323
95323
|
}
|
|
95324
|
-
return (hAsync("input", {
|
|
95324
|
+
return (hAsync("input", { ref: ref => this._setInputRef(ref), type: this.type, ...props, ...properties }));
|
|
95325
95325
|
}
|
|
95326
95326
|
_setInputRef(ref) {
|
|
95327
95327
|
this._inputRef = ref;
|
|
@@ -95516,13 +95516,13 @@ class FieldContainer {
|
|
|
95516
95516
|
}
|
|
95517
95517
|
render() {
|
|
95518
95518
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
95519
|
-
let contentSlot = (hAsync("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de',
|
|
95519
|
+
let contentSlot = (hAsync("slot", { key: 'e795f4695850003f41a5bfb815893affee00e8de', name: 'content', slot: 'trigger' }));
|
|
95520
95520
|
if (this.loading) {
|
|
95521
|
-
contentSlot = (hAsync("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788',
|
|
95521
|
+
contentSlot = (hAsync("p-loader", { key: '1f65c3ca60cefbf0740c9d7235a18a3e69f1c788', class: loader({ variant: this.variant, size: this.loadingSize }), slot: 'trigger', variant: 'ghost' }));
|
|
95522
95522
|
}
|
|
95523
|
-
return (hAsync(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, hAsync("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1',
|
|
95523
|
+
return (hAsync(ThemedHost, { key: '9b4ab7a1d59cead07a2065b0d6bc72be41d24287' }, hAsync("label", { key: 'ac31d16bdd75b4b236479638efd367f4771627d1', class: cn('flex w-inherit flex-col gap-1', {
|
|
95524
95524
|
'cursor-auto': this.variant === 'read',
|
|
95525
|
-
}) }, hAsync("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
95525
|
+
}), htmlFor: this.id }, hAsync("div", { key: '06a0c419582c71df7323bc3b0deb2d8a98541ca7', class: cn('flex items-end justify-between gap-1 empty:hidden', {
|
|
95526
95526
|
'flex-row-reverse': this.align === 'end',
|
|
95527
95527
|
}) }, (!!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)) ||
|
|
95528
95528
|
hasHeaderSlot) && (hAsync("div", { key: '4f9f56fc0951dab62bd75c4cc7ea724e17ec05aa', class: 'flex items-center gap-1' }, !asBoolean(this.required) &&
|
|
@@ -95532,8 +95532,8 @@ class FieldContainer {
|
|
|
95532
95532
|
'ml-auto': this.align === 'end',
|
|
95533
95533
|
'font-normal': this.variant === 'read',
|
|
95534
95534
|
'text-storm-500 dark:text-white': this.variant === 'read',
|
|
95535
|
-
}),
|
|
95536
|
-
asBoolean(this.forceShowTooltip, false),
|
|
95535
|
+
}), content: this.error, enableUserInput: false, placement: this.errorPlacement, show: errorAndErrorIsNotBoolean &&
|
|
95536
|
+
asBoolean(this.forceShowTooltip, false), variant: 'error' }, hasErrorSlot && (hAsync("slot", { key: '3670780d5e0907d655e282fbea6c43dcceea7e00', name: 'error', slot: 'content' })), contentSlot))));
|
|
95537
95537
|
}
|
|
95538
95538
|
async _setLocales() {
|
|
95539
95539
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -95649,7 +95649,7 @@ class FloatingMenuContainer {
|
|
|
95649
95649
|
render() {
|
|
95650
95650
|
return (hAsync(ThemedHost, { key: 'b68d74e35de85f5b14b30d1c6649f4a2449c7b04' }, hAsync("div", { key: '1cdae9d4705acc85650b593a8f200e8b6e791261', class: container$3({
|
|
95651
95651
|
enableAmountSelected: this.enableAmountSelected,
|
|
95652
|
-
}) }, 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)
|
|
95652
|
+
}) }, 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) }))))));
|
|
95653
95653
|
}
|
|
95654
95654
|
async _setLocales() {
|
|
95655
95655
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -95771,7 +95771,7 @@ class FloatingMenuItem {
|
|
|
95771
95771
|
return (hAsync("p-icon", { class: icon$1({
|
|
95772
95772
|
hover: asBoolean(this.hover),
|
|
95773
95773
|
disabled: asBoolean(this.disabled),
|
|
95774
|
-
}),
|
|
95774
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon }));
|
|
95775
95775
|
}
|
|
95776
95776
|
static get style() { return floatingMenuItemComponentCss(); }
|
|
95777
95777
|
static get cmpMeta() { return {
|
|
@@ -95807,7 +95807,7 @@ class Helper {
|
|
|
95807
95807
|
*/
|
|
95808
95808
|
placement = 'top';
|
|
95809
95809
|
render() {
|
|
95810
|
-
return (hAsync(ThemedHost, { key: 'd7f07b4f232bb43ce0988ea8533353a8d193e7bf' }, hAsync("p-tooltip", { key: 'df76c8696c9621a6ea5431c5d256eded55de0b57', class: 'flex', placement: this.placement, strategy: this.strategy }, hAsync("p-icon", { key: 'e7c4d59174ec46413381af510485a890fcab91f8',
|
|
95810
|
+
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' })))));
|
|
95811
95811
|
}
|
|
95812
95812
|
static get style() { return helperComponentCss(); }
|
|
95813
95813
|
static get cmpMeta() { return {
|
|
@@ -95945,9 +95945,9 @@ class Icon {
|
|
|
95945
95945
|
flip: this.flip,
|
|
95946
95946
|
size: hasTextSizeClass ? 'auto' : this.size,
|
|
95947
95947
|
transform: this.flip !== 'none' || this.rotate > 0 || this.rotate < 0,
|
|
95948
|
-
}), style: {
|
|
95948
|
+
}), innerHTML: svg, style: {
|
|
95949
95949
|
'--tw-rotate': `${this.rotate}deg`,
|
|
95950
|
-
}, title: this.variant
|
|
95950
|
+
}, title: this.variant }));
|
|
95951
95951
|
}
|
|
95952
95952
|
static get style() { return iconComponentCss(); }
|
|
95953
95953
|
static get cmpMeta() { return {
|
|
@@ -96365,7 +96365,7 @@ class Label {
|
|
|
96365
96365
|
variant: this.variant,
|
|
96366
96366
|
iconOnly: this.iconOnly,
|
|
96367
96367
|
keepMobileContent: this.keepMobileContent,
|
|
96368
|
-
}) }, this.icon && (hAsync("p-icon", { key: '24ec81f74dfeea24990a76edac38ccdc79490e88', class: 'flex-shrink-0',
|
|
96368
|
+
}) }, 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', {
|
|
96369
96369
|
hidden: !this.keepMobileContent,
|
|
96370
96370
|
'desktop-xs:block': !this.keepMobileContent,
|
|
96371
96371
|
}) }, hAsync("slot", { key: 'ad87aa170cc6f7980678a1cfc25f5dbdf510127e' }))))));
|
|
@@ -96696,7 +96696,7 @@ class Modal {
|
|
|
96696
96696
|
const headerContent = hAsync("slot", { name: 'header' });
|
|
96697
96697
|
const bodyContent = hAsync("slot", { name: 'content' });
|
|
96698
96698
|
const footerContent = hAsync("slot", { name: 'footer' });
|
|
96699
|
-
return (hAsync("p-backdrop", { applyBlur: this.applyBlur,
|
|
96699
|
+
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)))));
|
|
96700
96700
|
}
|
|
96701
96701
|
_backdropClick(ev) {
|
|
96702
96702
|
if (!this.backdropClickClose) {
|
|
@@ -96901,7 +96901,7 @@ class ModalHeader {
|
|
|
96901
96901
|
*/
|
|
96902
96902
|
close;
|
|
96903
96903
|
render() {
|
|
96904
|
-
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',
|
|
96904
|
+
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' }))));
|
|
96905
96905
|
}
|
|
96906
96906
|
static get style() { return modalHeaderComponentCss(); }
|
|
96907
96907
|
static get cmpMeta() { return {
|
|
@@ -96964,7 +96964,7 @@ class Navbar {
|
|
|
96964
96964
|
}
|
|
96965
96965
|
_show = false;
|
|
96966
96966
|
render() {
|
|
96967
|
-
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',
|
|
96967
|
+
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' }))));
|
|
96968
96968
|
}
|
|
96969
96969
|
handleCloseNavbar() {
|
|
96970
96970
|
this._show = false;
|
|
@@ -97210,7 +97210,7 @@ class Pagination {
|
|
|
97210
97210
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
97211
97211
|
}) }, 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 &&
|
|
97212
97212
|
this.hideOnSinglePage &&
|
|
97213
|
-
this._hasPaginationPages && (hAsync("p-divider", { key: 'fa14cc1d718604f931f95ee9d2accd28b1bf43e7',
|
|
97213
|
+
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 }) => {
|
|
97214
97214
|
this._hasPaginationPages = detail > 1;
|
|
97215
97215
|
this.pagesChange.emit(detail);
|
|
97216
97216
|
} })))));
|
|
@@ -97307,19 +97307,19 @@ class PaginationPages {
|
|
|
97307
97307
|
hidden: this.hideOnSinglePage && this._set?.length === 3,
|
|
97308
97308
|
}) }, this._set?.map(p => {
|
|
97309
97309
|
if (p.type === 'previous' || p.type === 'next') {
|
|
97310
|
-
return (hAsync("p-pagination-pages-item", {
|
|
97310
|
+
return (hAsync("p-pagination-pages-item", { disabled: this._carouselDisabled(p.type), variant: 'carousel', onClick: () => p.type === 'previous'
|
|
97311
97311
|
? this._previousClick()
|
|
97312
97312
|
: this._nextClick() }, p.value));
|
|
97313
97313
|
}
|
|
97314
97314
|
if (p.type === 'ellipsis') {
|
|
97315
|
-
return (hAsync("p-dropdown", { placement: 'top',
|
|
97315
|
+
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
|
|
97316
97316
|
? this.dropdownPageTemplate(v)
|
|
97317
97317
|
: this._defaultDropdownPageTemplate(v)))), p.options?.length > 5 &&
|
|
97318
|
-
this._showDropdown[p.dropdownIndex] && (hAsync("p-field", { class: 'mt-2 w-28',
|
|
97318
|
+
this._showDropdown[p.dropdownIndex] && (hAsync("p-field", { autoFocus: true, class: 'mt-2 w-28', icon: 'enter-key', iconPosition: 'end', properties: {
|
|
97319
97319
|
min: 1,
|
|
97320
97320
|
max: this._pages.length,
|
|
97321
97321
|
step: 1,
|
|
97322
|
-
},
|
|
97322
|
+
}, size: 'sm', slot: 'items', type: 'number', onEnter: ({ detail }) => this._enterPress(detail) }))));
|
|
97323
97323
|
}
|
|
97324
97324
|
return (hAsync("p-pagination-pages-item", { active: p.value === this.page, onClick: () => this._pageClick(p.value) }, p.value));
|
|
97325
97325
|
}))));
|
|
@@ -97432,11 +97432,11 @@ class PaginationPages {
|
|
|
97432
97432
|
const set = [];
|
|
97433
97433
|
const previous = {
|
|
97434
97434
|
type: 'previous',
|
|
97435
|
-
value: (hAsync("p-icon", {
|
|
97435
|
+
value: (hAsync("p-icon", { rotate: 90, size: 'sm', variant: 'caret' })),
|
|
97436
97436
|
};
|
|
97437
97437
|
const next = {
|
|
97438
97438
|
type: 'next',
|
|
97439
|
-
value: (hAsync("p-icon", {
|
|
97439
|
+
value: (hAsync("p-icon", { rotate: -90, size: 'sm', variant: 'caret' })),
|
|
97440
97440
|
};
|
|
97441
97441
|
// Disable page range, display all the pages
|
|
97442
97442
|
if (range === null) {
|
|
@@ -97715,7 +97715,7 @@ class PaginationSize {
|
|
|
97715
97715
|
this._setLocales();
|
|
97716
97716
|
}
|
|
97717
97717
|
render() {
|
|
97718
|
-
return (hAsync(ThemedHost, { key: '1062e4a018038b23e5514a50f9fa658b6fae7010', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, hAsync("p-dropdown", { key: '521979380d535dcd911c26b881338ddaaf3e7344', applyFullWidth: true, applyMaxWidth: false,
|
|
97718
|
+
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({
|
|
97719
97719
|
active: this.dropdownIsOpen,
|
|
97720
97720
|
}), slot: 'trigger' }, hAsync("p", { key: '3477755b3365205fef5a3e3f8f465f0d1d41ddd1', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
97721
97721
|
? this.itemTemplate(this.size)
|
|
@@ -97726,7 +97726,7 @@ class PaginationSize {
|
|
|
97726
97726
|
], {
|
|
97727
97727
|
'text-storm-300 dark:text-hurricane-200': !this.dropdownIsOpen,
|
|
97728
97728
|
'text-storm-500 dark:text-white': !!this.dropdownIsOpen,
|
|
97729
|
-
}),
|
|
97729
|
+
}), 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
|
|
97730
97730
|
? this.itemTemplate(option)
|
|
97731
97731
|
: this._defaultItemTemplate(option))))))));
|
|
97732
97732
|
}
|
|
@@ -97787,7 +97787,7 @@ class Profile {
|
|
|
97787
97787
|
}
|
|
97788
97788
|
render() {
|
|
97789
97789
|
const content = this._getContent();
|
|
97790
|
-
return (hAsync(ThemedHost, { key: 'd8b3c59997be743df436a92d272715015d2e876d' }, this._hasDropdownSlot ? (hAsync("p-dropdown", {
|
|
97790
|
+
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)));
|
|
97791
97791
|
}
|
|
97792
97792
|
slotchange() {
|
|
97793
97793
|
this._checkDropdownSlot();
|
|
@@ -97926,9 +97926,9 @@ class Radio {
|
|
|
97926
97926
|
}
|
|
97927
97927
|
render() {
|
|
97928
97928
|
const id = this.id?.length ? this.id : this._nonce;
|
|
97929
|
-
return (hAsync(ThemedHost, { key: '6c93ef349dcabcef38658f27359a441fd4cd3813' }, hAsync("label", { key: '291d100b75f53e0b26ed7684329ab8b47c67d89d',
|
|
97929
|
+
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({
|
|
97930
97930
|
disabled: asBoolean(this.disabled),
|
|
97931
|
-
}),
|
|
97931
|
+
}), 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({
|
|
97932
97932
|
disabled: asBoolean(this.disabled),
|
|
97933
97933
|
}) })), hAsync("div", { key: '90340477396fd987eabbe4cc7aeebb38a548ec68', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, hAsync("slot", { key: 'b66d366cac0e5c99903edc18f4256c045d3a5b10' })))));
|
|
97934
97934
|
}
|
|
@@ -97994,7 +97994,7 @@ class Range {
|
|
|
97994
97994
|
valueChange;
|
|
97995
97995
|
render() {
|
|
97996
97996
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
97997
|
-
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',
|
|
97997
|
+
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 => {
|
|
97998
97998
|
const value = ev.target.value;
|
|
97999
97999
|
this.value = Number.parseFloat(value);
|
|
98000
98000
|
this.valueChange.emit(value);
|
|
@@ -98109,7 +98109,7 @@ class SegmentItem {
|
|
|
98109
98109
|
}) }, this.icon && (hAsync("p-icon", { key: '63323d0681027b5a1215c342113d1ffb5c3924b4', class: cn('mb-1', {
|
|
98110
98110
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
98111
98111
|
'text-indigo-200': asBoolean(this.active),
|
|
98112
|
-
}),
|
|
98112
|
+
}), 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', {
|
|
98113
98113
|
'text-storm-300 dark:text-hurricane-200': !asBoolean(this.active),
|
|
98114
98114
|
'text-indigo-200': asBoolean(this.active),
|
|
98115
98115
|
}) }, descriptionSlot)))))));
|
|
@@ -98465,8 +98465,8 @@ class Select {
|
|
|
98465
98465
|
if (this.error?.length) {
|
|
98466
98466
|
buttonIcon = 'warning';
|
|
98467
98467
|
}
|
|
98468
|
-
return (hAsync(ThemedHost, { key: '617063ca6cf31255928f6f6856cb1902b1d225a2' }, hAsync("p-field-container", { key: '4a6d95f7bfbc79b886044f2fe31695990b4e210d',
|
|
98469
|
-
this._selectedItem?.[this.iconClassKey], onClick: ev => this._onClick(ev) }, hAsync("div", { key: '
|
|
98468
|
+
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 &&
|
|
98469
|
+
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()))));
|
|
98470
98470
|
}
|
|
98471
98471
|
documentClickHandler(event) {
|
|
98472
98472
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -98623,7 +98623,7 @@ class Select {
|
|
|
98623
98623
|
? this._selectedItem.some(i => i[this._identifierKey] === item[this._identifierKey])
|
|
98624
98624
|
: item[this._identifierKey] ===
|
|
98625
98625
|
this._selectedItem?.[this._identifierKey];
|
|
98626
|
-
return (hAsync("p-dropdown-menu-item", { enableTextWrap: this.enableTextWrap, useContainer: false, onClick: () => this._selectValue(item)
|
|
98626
|
+
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)));
|
|
98627
98627
|
});
|
|
98628
98628
|
if (this._items.length === 0) {
|
|
98629
98629
|
items = [
|
|
@@ -98631,7 +98631,7 @@ class Select {
|
|
|
98631
98631
|
];
|
|
98632
98632
|
}
|
|
98633
98633
|
if (this.enableSelectAll && this._items.length > 0) {
|
|
98634
|
-
items.unshift(hAsync("p-dropdown-menu-item", { slot: 'items', useContainer: false, checkbox: true, onClick: () => this._selectAllChange()
|
|
98634
|
+
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)));
|
|
98635
98635
|
}
|
|
98636
98636
|
if (this.enableAutocomplete) {
|
|
98637
98637
|
items.unshift(this._getAutoCompleteItem());
|
|
@@ -98639,17 +98639,17 @@ class Select {
|
|
|
98639
98639
|
return items;
|
|
98640
98640
|
}
|
|
98641
98641
|
_getAddItem() {
|
|
98642
|
-
return (hAsync("p-dropdown-menu-item", { onClick: () => this.add.emit()
|
|
98642
|
+
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' }))));
|
|
98643
98643
|
}
|
|
98644
98644
|
_getLoadingItems() {
|
|
98645
|
-
const items = [0, 0, 0].map(() => (hAsync("p-dropdown-menu-item", { enableHover: false, slot: 'items' }, hAsync("p-loader", {
|
|
98645
|
+
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' }))));
|
|
98646
98646
|
if (this.enableAutocomplete) {
|
|
98647
98647
|
items.unshift(this._getAutoCompleteItem());
|
|
98648
98648
|
}
|
|
98649
98649
|
return items;
|
|
98650
98650
|
}
|
|
98651
98651
|
_getAutoCompleteItem() {
|
|
98652
|
-
return (hAsync("div", { class: 'sticky top-0 z-10 mb-3 h-8', slot: 'items' }, hAsync("p-field", { class: 'block', placeholder: this.autocompletePlaceholder,
|
|
98652
|
+
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) })));
|
|
98653
98653
|
}
|
|
98654
98654
|
_setMultiContainerMaxWidth() {
|
|
98655
98655
|
if (!this._inputRef || !this._multiContainerRef) {
|
|
@@ -98713,7 +98713,7 @@ class Select {
|
|
|
98713
98713
|
? (this.selectionDisplayKey ?? this.displayKey)
|
|
98714
98714
|
: this.displayKey]));
|
|
98715
98715
|
if (this.avatarKey) {
|
|
98716
|
-
content = (hAsync("span", { class: 'flex items-center gap-2' }, hAsync("p-avatar", { size: 'sm', src: item[this.avatarKey]
|
|
98716
|
+
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({
|
|
98717
98717
|
variant: 'default',
|
|
98718
98718
|
error: !!this.error?.length,
|
|
98719
98719
|
enableTextWrap: this.enableTextWrap && !isSelection,
|
|
@@ -99005,7 +99005,7 @@ class Stepper {
|
|
|
99005
99005
|
}
|
|
99006
99006
|
_getItem(data, i) {
|
|
99007
99007
|
const activeStep = this.activeStep - 1 || 0;
|
|
99008
|
-
return (hAsync("p-stepper-item", { active: this.enableAutoStatus ? i === activeStep : data.active,
|
|
99008
|
+
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));
|
|
99009
99009
|
}
|
|
99010
99010
|
_getLine(i) {
|
|
99011
99011
|
const activeStep = this.activeStep - 1 || 0;
|
|
@@ -99677,41 +99677,19 @@ class Table {
|
|
|
99677
99677
|
this.hasRendered.emit();
|
|
99678
99678
|
}
|
|
99679
99679
|
render() {
|
|
99680
|
-
return (hAsync(Host, { key: '7ece1479d7c90b408fa55f045feba734f9e27b28', class: 'z-0 flex flex-col' }, hAsync("p-table-container", { key: '290cf20abdacab6257ebef5479b834df529bccbd' }, this.enableHeader && (hAsync("p-table-header", { key: '
|
|
99681
|
-
// quick filters
|
|
99682
|
-
quickFilters: this.quickFilters, activeQuickFilterIdentifier: this.activeQuickFilterIdentifier, onQuickFilter: ({ detail }) => this.quickFilter.emit(detail),
|
|
99683
|
-
// search
|
|
99684
|
-
enableSearch: this.enableSearch, query: this.query, onQueryChange: ({ detail }) => this.queryChange.emit(detail),
|
|
99685
|
-
// filter button
|
|
99686
|
-
enableFilter: this.enableFilter, enableFilterDesktop: this.enableFilterDesktop, selectedFiltersAmount: this.selectedFiltersAmount, filterButtonTemplate: this.filterButtonTemplate, onFilter: () => this.filter.emit(),
|
|
99687
|
-
// action button
|
|
99688
|
-
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,
|
|
99689
|
-
//export
|
|
99690
|
-
enableExport: this.enableExport, onExport: () => this.export.emit(),
|
|
99691
|
-
//loading
|
|
99692
|
-
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({
|
|
99680
|
+
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({
|
|
99693
99681
|
hasFooter: this.enableFooter && !this._footerHidden,
|
|
99694
99682
|
active: !!this.selectedRows?.length,
|
|
99695
99683
|
shown: this._floatingMenuShown,
|
|
99696
|
-
}),
|
|
99697
|
-
this._rowActionsFloating.map(a => (hAsync("p-floating-menu-item", {
|
|
99684
|
+
}), enableAmountSelected: !!this._rowActionsFloating?.length, usedInTable: true, onClose: () => this._selectAllChange(null, false) }, this._rowActionsFloating?.length &&
|
|
99685
|
+
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 &&
|
|
99698
99686
|
!a.loading &&
|
|
99699
99687
|
!!a.action &&
|
|
99700
99688
|
a.type === 'single'
|
|
99701
99689
|
? a.action(this.selectedRows[0], false)
|
|
99702
|
-
: a.action(this.selectedRows, true) }, a.label))))) : (''), this.enableFooter && (hAsync("p-table-footer", { key: '
|
|
99703
|
-
// overall
|
|
99704
|
-
hideOnSinglePage: this.hideOnSinglePage,
|
|
99705
|
-
// page size select
|
|
99706
|
-
enablePaginationSize: this.enablePaginationSize, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail),
|
|
99707
|
-
// pagination
|
|
99708
|
-
enablePaginationPages: this.enablePaginationPages, page: this.page, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail),
|
|
99709
|
-
//loading
|
|
99710
|
-
loading: this.footerLoading, onHiddenChange: ({ detail }) => (this._footerHidden = detail),
|
|
99711
|
-
// header adjustment
|
|
99712
|
-
tableHeaderHasAction: this.enableHeader &&
|
|
99690
|
+
: 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 &&
|
|
99713
99691
|
this.enableAction &&
|
|
99714
|
-
this.actionButtonEnabled })))));
|
|
99692
|
+
this.actionButtonEnabled, total: this.total, onHiddenChange: ({ detail }) => (this._footerHidden = detail), onPageChange: ({ detail }) => this.pageChange.emit(detail), onPageSizeChange: ({ detail }) => this.pageSizeChange.emit(detail) })))));
|
|
99715
99693
|
}
|
|
99716
99694
|
async _setLocales() {
|
|
99717
99695
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -99807,12 +99785,12 @@ class Table {
|
|
|
99807
99785
|
if (!this._extraHeaders?.length) {
|
|
99808
99786
|
return null;
|
|
99809
99787
|
}
|
|
99810
|
-
return (hAsync("p-table-row", { variant: 'header-secondary'
|
|
99788
|
+
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))))));
|
|
99811
99789
|
}
|
|
99812
99790
|
_getHeader() {
|
|
99813
|
-
return (hAsync("p-table-row", { variant: 'header' }, this._columns.map((col, index) => (hAsync("p-table-cell", {
|
|
99791
|
+
return (hAsync("p-table-row", { variant: 'header' }, this._columns.map((col, index) => (hAsync("p-table-cell", { checkbox: index === 0 || col.hasCheckbox
|
|
99814
99792
|
? this._getCheckbox(null, this.loading ? 'loading' : 'header')
|
|
99815
|
-
: null, index: index })))));
|
|
99793
|
+
: null, definition: col, index: index, value: col.name, variant: 'header' })))));
|
|
99816
99794
|
}
|
|
99817
99795
|
_getRows() {
|
|
99818
99796
|
if (this.loading) {
|
|
@@ -99823,22 +99801,22 @@ class Table {
|
|
|
99823
99801
|
if (this._items.length === 0) {
|
|
99824
99802
|
return this._getEmptyState();
|
|
99825
99803
|
}
|
|
99826
|
-
return this._items.map((item, index) => (hAsync("p-table-row", { enableHover: this._enableRowSelection || this.enableRowClick,
|
|
99804
|
+
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))));
|
|
99827
99805
|
}
|
|
99828
99806
|
_getActions(item, index) {
|
|
99829
99807
|
const actions = this._rowActionsRow.filter(a => a.showFunction ? a.showFunction(item) : true);
|
|
99830
99808
|
if (actions?.length && !isMobile()) {
|
|
99831
|
-
return (hAsync("p-table-row-actions-container", {
|
|
99809
|
+
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) }))))));
|
|
99832
99810
|
}
|
|
99833
99811
|
return null;
|
|
99834
99812
|
}
|
|
99835
99813
|
_getRowColumns(item, index) {
|
|
99836
|
-
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", {
|
|
99814
|
+
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 })));
|
|
99837
99815
|
}
|
|
99838
99816
|
_getLoadingColumns(index) {
|
|
99839
|
-
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", {
|
|
99817
|
+
return this._columns.map((col, colIndex) => (hAsync("p-table-cell", { checkbox: colIndex === 0 || col.hasCheckbox
|
|
99840
99818
|
? this._getCheckbox(index, 'loading')
|
|
99841
|
-
: null, index: colIndex, rowIndex: index })));
|
|
99819
|
+
: null, definition: col, index: colIndex, rowIndex: index, variant: 'loading' })));
|
|
99842
99820
|
}
|
|
99843
99821
|
_getCheckbox(rowIndex, variant = 'default') {
|
|
99844
99822
|
if (!this._enableRowSelection ||
|
|
@@ -99846,25 +99824,25 @@ class Table {
|
|
|
99846
99824
|
return;
|
|
99847
99825
|
}
|
|
99848
99826
|
if (variant === 'loading') {
|
|
99849
|
-
return (hAsync("p-loader", {
|
|
99827
|
+
return (hAsync("p-loader", { class: 'h-6 w-6 rounded', variant: 'ghost' }));
|
|
99850
99828
|
}
|
|
99851
99829
|
if (variant === 'header') {
|
|
99852
|
-
return (hAsync("p-checkbox", { class: cn({
|
|
99830
|
+
return (hAsync("p-checkbox", { checked: this._selectionContainsAll(), class: cn({
|
|
99853
99831
|
'opacity-0': this._rowSelectionLimit !== undefined,
|
|
99854
|
-
}),
|
|
99832
|
+
}), disabled: this._rowSelectionLimit !== undefined, indeterminate: this._selectionIndeterminate(), onCheckedChange: ev => this._selectAllChange(ev) }));
|
|
99855
99833
|
}
|
|
99856
99834
|
const item = this._items[rowIndex];
|
|
99857
99835
|
const selectionContains = this._selectionContains(rowIndex);
|
|
99858
|
-
return (hAsync("p-checkbox", { class: 'flex-shrink-0', disabled: (this.canSelectKey && !item[this.canSelectKey]) ||
|
|
99836
|
+
return (hAsync("p-checkbox", { checked: selectionContains, class: 'flex-shrink-0', disabled: (this.canSelectKey && !item[this.canSelectKey]) ||
|
|
99859
99837
|
(this._rowSelectionLimit !== undefined &&
|
|
99860
99838
|
!selectionContains &&
|
|
99861
|
-
this.selectedRows.length === this._rowSelectionLimit),
|
|
99839
|
+
this.selectedRows.length === this._rowSelectionLimit), onCheckedChange: ev => this._checkboxChange(ev, rowIndex) }));
|
|
99862
99840
|
}
|
|
99863
99841
|
_getEmptyState() {
|
|
99864
99842
|
if (this.query?.length || this.selectedFiltersAmount) {
|
|
99865
|
-
return (hAsync("p-empty-state", { class: 'my-16 self-center',
|
|
99843
|
+
return (hAsync("p-empty-state", { class: 'my-16 self-center', content: this.emptyStateFilteredContent(), header: this.emptyStateFilteredHeader(), illustration: 'search' }));
|
|
99866
99844
|
}
|
|
99867
|
-
return (hAsync("p-empty-state", { class: 'my-16 self-center',
|
|
99845
|
+
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() }));
|
|
99868
99846
|
}
|
|
99869
99847
|
_selectAllChange(ev, forceValue) {
|
|
99870
99848
|
if (!this._enableRowSelection) {
|
|
@@ -100249,7 +100227,7 @@ class TableCell {
|
|
|
100249
100227
|
}
|
|
100250
100228
|
_getContent() {
|
|
100251
100229
|
if (this.variant === 'loading') {
|
|
100252
|
-
return (hAsync("p-loader", {
|
|
100230
|
+
return (hAsync("p-loader", { class: 'h-6 w-[calc(100%-1rem)] flex-1 rounded', variant: 'ghost' }));
|
|
100253
100231
|
}
|
|
100254
100232
|
const align = this.variant === 'header'
|
|
100255
100233
|
? (this.definition.headerAlign ?? this.definition.align)
|
|
@@ -100554,7 +100532,7 @@ class TableFooter {
|
|
|
100554
100532
|
hidden: this._hidden,
|
|
100555
100533
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
100556
100534
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
100557
|
-
this.total > 0 && (hAsync("p-pagination", { key: '9bbe8d8de8dce310f2799829469b6826642aa295', class: 'z-[2]',
|
|
100535
|
+
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) })))));
|
|
100558
100536
|
}
|
|
100559
100537
|
_changePageSize(s) {
|
|
100560
100538
|
if (!s) {
|
|
@@ -110196,21 +110174,21 @@ class TableHeader {
|
|
|
110196
110174
|
const mobileTotal = (this.selectedFiltersAmount || 0) + (activeQuickFilter?.default ? 0 : 1);
|
|
110197
110175
|
const hasCustomFilterSlot = !!this._el.querySelector(':scope > [slot="custom-filter"]');
|
|
110198
110176
|
const hasCustomActionsSlot = !!this._el.querySelector(':scope > [slot="custom-actions"]');
|
|
110199
|
-
return (hAsync(ThemedHost, { key: 'dcf65ce62e7dc90f0c45e7748fd23872f21e7fad' }, hAsync("div", { key: '3082ccae779f57c8812afc4b2400b20c87dd22a0', class: header() }, this.loading && (hAsync("p-loader", { key: 'cbcf94e4afb27f7ee22b4adfbcadd9d72db2a189',
|
|
110177
|
+
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 &&
|
|
110200
110178
|
(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'
|
|
110201
110179
|
? item.text
|
|
110202
|
-
: 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',
|
|
110180
|
+
: 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
|
|
110203
110181
|
? 'desktop-xs:w-auto'
|
|
110204
|
-
: 'desktop-xs:hidden'}`, onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
110182
|
+
: 'desktop-xs:hidden'}`, icon: 'filter', variant: 'secondary', onOnClick: () => this.filter.emit() }, this.filterButtonTemplate
|
|
110205
110183
|
? this.filterButtonTemplate()
|
|
110206
110184
|
: this._defaultFilterButtonTemplate(), this.selectedFiltersAmount &&
|
|
110207
|
-
this._getLabel(this.selectedFiltersAmount), mobileTotal > 0 && this._getLabel(mobileTotal, 'mobile'))), !this.loading && this.enableExport && this.enableFilter && (hAsync("p-divider", { key: '38dc1a4aa1902f41b4b3e3cb85da7d442fc98fd0',
|
|
110185
|
+
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))))));
|
|
110208
110186
|
}
|
|
110209
110187
|
async _setLocales() {
|
|
110210
110188
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
110211
110189
|
}
|
|
110212
110190
|
_buttonTemplate(mobile = false) {
|
|
110213
|
-
return (hAsync("p-button", { class: mobile ? 'w-full' : 'hidden desktop-xs:flex', icon: this.actionIcon,
|
|
110191
|
+
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
|
|
110214
110192
|
? this.actionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)
|
|
110215
110193
|
: this._defaultActionButtonTemplate(mobile ? this.itemsSelectedAmount : 0)));
|
|
110216
110194
|
}
|
|
@@ -110530,7 +110508,7 @@ class Toast {
|
|
|
110530
110508
|
*/
|
|
110531
110509
|
action;
|
|
110532
110510
|
render() {
|
|
110533
|
-
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',
|
|
110511
|
+
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 })))))));
|
|
110534
110512
|
}
|
|
110535
110513
|
_onClick() {
|
|
110536
110514
|
if (this.enableAction) {
|
|
@@ -110711,9 +110689,9 @@ class Toggle {
|
|
|
110711
110689
|
}
|
|
110712
110690
|
render() {
|
|
110713
110691
|
const id = this.id?.length ? this.id : this._nonce;
|
|
110714
|
-
return (hAsync(ThemedHost, { key: '71d4bd767b20adf62204be57f4aab791062b5e3d' }, hAsync("label", { key: '9a5152398ccfe931d48135fd2185dc1d04e0ae0a',
|
|
110692
|
+
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({
|
|
110715
110693
|
disabled: asBoolean(this.disabled),
|
|
110716
|
-
}),
|
|
110694
|
+
}), 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({
|
|
110717
110695
|
disabled: asBoolean(this.disabled),
|
|
110718
110696
|
}) })), hAsync("div", { key: '90f8606523d6d4b131bf039717d9c436ae36d782', class: 'flex-1 overflow-hidden text-ellipsis empty:hidden dark:text-white' }, hAsync("slot", { key: 'cf7f5ed84d5b1cda9b6372209242415d4dd67024' })))));
|
|
110719
110697
|
}
|
|
@@ -110842,7 +110820,7 @@ class Tooltip {
|
|
|
110842
110820
|
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({
|
|
110843
110821
|
variant: this.variant,
|
|
110844
110822
|
strategy: this.strategy,
|
|
110845
|
-
}),
|
|
110823
|
+
}), "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' })))));
|
|
110846
110824
|
}
|
|
110847
110825
|
clickHandler() {
|
|
110848
110826
|
if (this.variant === 'hover' || !this.enableUserInput) {
|