@paperless/core 3.28.5 → 3.29.1
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-c9b79bd8.entry.js → p-0ee76d6f.entry.js} +1 -1
- package/dist/build/{p-6ac8c0c1.entry.js → p-113f2c2c.entry.js} +1 -1
- package/dist/{paperless/p-8c141cb8.entry.js → build/p-120820ba.entry.js} +1 -1
- package/dist/{paperless/p-fadcfc9f.entry.js → build/p-15e2cf67.entry.js} +1 -1
- package/dist/build/{p-ea2deb46.entry.js → p-28127f3f.entry.js} +1 -1
- package/dist/build/p-2bccaecc.entry.js +1 -0
- package/dist/{paperless/p-31cf13c6.entry.js → build/p-2ca8dfa6.entry.js} +1 -1
- package/dist/{paperless/p-92910dad.entry.js → build/p-376cc335.entry.js} +1 -1
- package/dist/{paperless/p-688afaf3.entry.js → build/p-38b28b4b.entry.js} +1 -1
- package/dist/build/{p-ec0a6d22.entry.js → p-4555e185.entry.js} +1 -1
- package/dist/build/{p-91686988.entry.js → p-55bf8c87.entry.js} +1 -1
- package/dist/build/{p-93a57d38.entry.js → p-590e2598.entry.js} +1 -1
- package/dist/build/{p-51312a8f.entry.js → p-7ce43e0a.entry.js} +1 -1
- package/dist/build/p-847383a1.entry.js +1 -0
- package/dist/build/{p-3efce878.entry.js → p-847962d9.entry.js} +1 -1
- package/dist/build/p-92f92a42.entry.js +1 -0
- package/dist/build/{p-d7d2411e.entry.js → p-accb5ae0.entry.js} +1 -1
- package/dist/{paperless/p-b190b534.entry.js → build/p-b5c4b573.entry.js} +1 -1
- package/dist/{paperless/p-d21a8908.entry.js → build/p-beffba9d.entry.js} +1 -1
- package/dist/build/p-c9ace21c.entry.js +1 -0
- package/dist/build/p-dac2dc59.js +1 -0
- package/dist/build/{p-a035467d.entry.js → p-dfb8aea6.entry.js} +1 -1
- package/dist/{paperless/p-78244c70.entry.js → build/p-e5dec8f4.entry.js} +1 -1
- package/dist/build/p-f1768a69.entry.js +1 -0
- package/dist/build/{p-7c8ec514.entry.js → p-f1e3413e.entry.js} +1 -1
- package/dist/build/{p-055b6209.entry.js → p-f32bab24.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +2 -2
- package/dist/cjs/p-attachment.cjs.entry.js +8 -8
- package/dist/cjs/p-button-group.cjs.entry.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +18 -16
- 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 +2 -2
- package/dist/cjs/p-empty-state_8.cjs.entry.js +12 -12
- package/dist/cjs/p-field_3.cjs.entry.js +4 -4
- package/dist/cjs/p-listing.cjs.entry.js +2 -2
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +3 -3
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-pagination_3.cjs.entry.js +3 -3
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-range.cjs.entry.js +3 -3
- package/dist/cjs/p-submenu-item.cjs.entry.js +3 -3
- package/dist/cjs/p-submenu.cjs.entry.js +9 -9
- package/dist/cjs/p-tab-container.cjs.entry.js +10 -1
- package/dist/cjs/p-tab-item.cjs.entry.js +10 -2
- package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +3 -3
- package/dist/cjs/p-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/tab/container/tab-container.component.js +33 -1
- package/dist/collection/components/atoms/tab/container/tab-container.stories.js +18 -0
- package/dist/collection/components/atoms/tab/item/tab-item.component.css +1 -1
- package/dist/collection/components/atoms/tab/item/tab-item.component.js +49 -1
- package/dist/collection/components/atoms/tab/item/tab-item.stories.js +5 -1
- package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
- package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +3 -3
- package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
- package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
- package/dist/collection/components/atoms/tooltip/tooltip.component.js +2 -2
- package/dist/collection/components/molecules/accordion/accordion.component.js +2 -2
- package/dist/collection/components/molecules/attachment/attachment.component.js +8 -8
- package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
- package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
- package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
- package/dist/collection/components/molecules/cropper/cropper.component.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +18 -16
- package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
- package/dist/collection/components/molecules/field/field/field.component.js +4 -4
- package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +3 -3
- package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/range/range.component.js +3 -3
- package/dist/collection/components/molecules/submenu/item/submenu-item.component.js +3 -3
- package/dist/collection/components/molecules/submenu/menu/submenu.component.js +9 -9
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-9XjFw7wO.js → p--kA5IQFm.js} +1 -1
- package/dist/components/{p-BmsR-djQ.js → p-BACpf-VN.js} +1 -1
- package/dist/components/{p-ByJPQrlL.js → p-BHdA7Yam.js} +1 -1
- package/dist/components/{p-Bh3wcvje.js → p-BNBd8Wpw.js} +1 -1
- package/dist/components/{p-zBwPEKhI.js → p-Bmcdm8FA.js} +1 -1
- package/dist/components/{p-C_ImoJA8.js → p-BqFE8rJS.js} +1 -1
- package/dist/components/{p-BJyXdiHc.js → p-Bvp9fzxW.js} +1 -1
- package/dist/components/{p-BDWOQXx7.js → p-CB4hYFXV.js} +1 -1
- package/dist/components/{p-CxrxqKhq.js → p-CNhuRURV.js} +1 -1
- package/dist/components/{p-c6u4OYf0.js → p-CUsOzU2M.js} +1 -1
- package/dist/components/{p-DHJIvL0U.js → p-CkinrCf4.js} +1 -1
- package/dist/components/{p-Cmltn24W.js → p-Cn0R3cAi.js} +1 -1
- package/dist/components/p-D2jO4AZP.js +1 -0
- package/dist/components/{p-B2SjLmdM.js → p-D8NL7apK.js} +1 -1
- package/dist/components/{p-CVR1NJF5.js → p-Fw-5o3ma.js} +1 -1
- package/dist/components/{p-DxuTDs4a.js → p-T6y2WJdd.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button-group.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-content-slider.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.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-Dg_DgmLY.js → p-h_UASH6S.js} +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +1 -1
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-pagination-pages.js +1 -1
- package/dist/components/p-pagination-size.js +1 -1
- package/dist/components/p-pagination.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-range.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-submenu-item.js +1 -1
- package/dist/components/p-submenu.js +1 -1
- package/dist/components/p-tab-container.js +1 -1
- package/dist/components/p-tab-item.js +1 -1
- package/dist/components/p-table-cell.js +1 -1
- package/dist/components/p-table-container.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row-actions-container.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast-container.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/loader.js +1 -1
- package/dist/esm/p-accordion.entry.js +2 -2
- package/dist/esm/p-attachment.entry.js +8 -8
- package/dist/esm/p-button-group.entry.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -1
- package/dist/esm/p-checkbox_3.entry.js +18 -16
- 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 +2 -2
- package/dist/esm/p-empty-state_8.entry.js +12 -12
- package/dist/esm/p-field_3.entry.js +4 -4
- package/dist/esm/p-listing.entry.js +2 -2
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +3 -3
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-pagination_3.entry.js +3 -3
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-range.entry.js +3 -3
- package/dist/esm/p-submenu-item.entry.js +3 -3
- package/dist/esm/p-submenu.entry.js +9 -9
- package/dist/esm/p-tab-container.entry.js +10 -1
- package/dist/esm/p-tab-item.entry.js +10 -2
- package/dist/esm/p-toast-container.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/p-toggle.entry.js +3 -3
- package/dist/esm/p-tooltip.entry.js +2 -2
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-c9b79bd8.entry.js → p-0ee76d6f.entry.js} +1 -1
- package/dist/paperless/{p-6ac8c0c1.entry.js → p-113f2c2c.entry.js} +1 -1
- package/dist/{build/p-8c141cb8.entry.js → paperless/p-120820ba.entry.js} +1 -1
- package/dist/{build/p-fadcfc9f.entry.js → paperless/p-15e2cf67.entry.js} +1 -1
- package/dist/paperless/{p-ea2deb46.entry.js → p-28127f3f.entry.js} +1 -1
- package/dist/paperless/p-2bccaecc.entry.js +1 -0
- package/dist/{build/p-31cf13c6.entry.js → paperless/p-2ca8dfa6.entry.js} +1 -1
- package/dist/{build/p-92910dad.entry.js → paperless/p-376cc335.entry.js} +1 -1
- package/dist/{build/p-688afaf3.entry.js → paperless/p-38b28b4b.entry.js} +1 -1
- package/dist/paperless/{p-ec0a6d22.entry.js → p-4555e185.entry.js} +1 -1
- package/dist/paperless/{p-91686988.entry.js → p-55bf8c87.entry.js} +1 -1
- package/dist/paperless/{p-93a57d38.entry.js → p-590e2598.entry.js} +1 -1
- package/dist/paperless/{p-51312a8f.entry.js → p-7ce43e0a.entry.js} +1 -1
- package/dist/paperless/p-847383a1.entry.js +1 -0
- package/dist/paperless/{p-3efce878.entry.js → p-847962d9.entry.js} +1 -1
- package/dist/paperless/p-92f92a42.entry.js +1 -0
- package/dist/paperless/{p-d7d2411e.entry.js → p-accb5ae0.entry.js} +1 -1
- package/dist/{build/p-b190b534.entry.js → paperless/p-b5c4b573.entry.js} +1 -1
- package/dist/{build/p-d21a8908.entry.js → paperless/p-beffba9d.entry.js} +1 -1
- package/dist/paperless/p-c9ace21c.entry.js +1 -0
- package/dist/paperless/{p-a035467d.entry.js → p-dfb8aea6.entry.js} +1 -1
- package/dist/{build/p-78244c70.entry.js → paperless/p-e5dec8f4.entry.js} +1 -1
- package/dist/paperless/p-f1768a69.entry.js +1 -0
- package/dist/paperless/{p-7c8ec514.entry.js → p-f1e3413e.entry.js} +1 -1
- package/dist/paperless/{p-055b6209.entry.js → p-f32bab24.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/dist/types/components/atoms/tab/container/tab-container.component.d.ts +4 -0
- package/dist/types/components/atoms/tab/container/tab-container.stories.d.ts +3 -0
- package/dist/types/components/atoms/tab/item/tab-item.component.d.ts +8 -0
- package/dist/types/components/atoms/tab/item/tab-item.stories.d.ts +7 -1
- package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +1 -1
- package/dist/types/components.d.ts +30 -0
- package/hydrate/index.js +109 -89
- package/hydrate/index.mjs +109 -89
- package/package.json +1 -1
- package/dist/build/p-014ef0e1.entry.js +0 -1
- package/dist/build/p-1a424b04.entry.js +0 -1
- package/dist/build/p-571575d2.entry.js +0 -1
- package/dist/build/p-9430fadc.js +0 -1
- package/dist/build/p-9f684244.entry.js +0 -1
- package/dist/build/p-a395e9e0.entry.js +0 -1
- package/dist/components/p-BG1plx2A.js +0 -1
- package/dist/paperless/p-014ef0e1.entry.js +0 -1
- package/dist/paperless/p-1a424b04.entry.js +0 -1
- package/dist/paperless/p-571575d2.entry.js +0 -1
- package/dist/paperless/p-9f684244.entry.js +0 -1
- package/dist/paperless/p-a395e9e0.entry.js +0 -1
|
@@ -72,11 +72,11 @@ const EmptyState = class {
|
|
|
72
72
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
73
73
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
74
74
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
75
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
75
|
+
return (index.h(themedHost_component.ThemedHost, { key: '14240ef8bf6ebdf43305ecee8502464ad34ca1ec' }, index.h("div", { key: '27c953186c8023407c180f4ca2238e535bd207b8', class: emptyState({
|
|
76
76
|
enableAction: asBoolean.asBoolean(this.enableAction, true),
|
|
77
77
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
78
78
|
? this.action.emit(ev)
|
|
79
|
-
: undefined }, this.illustration && (index.h("p-illustration", { key: '
|
|
79
|
+
: undefined }, this.illustration && (index.h("p-illustration", { key: 'c7d9b47f3d366e77f8579b5f836d073ff102f2d3', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (index.h("slot", { name: 'header' })) : (this.header?.length && (index.h("p", { class: '\n my-0 text-center font-ambit text-sm font-bold text-storm-500\n dark:text-white\n ' }, this.header))), hasContentSlot ? (index.h("slot", { name: 'content' })) : (this.content?.length && (index.h("p", { class: '\n my-0 text-center text-sm font-normal text-storm-300\n dark:text-hurricane-200\n ' }, this.content))), this.enableAction &&
|
|
80
80
|
(hasActionSlot ? (index.h("slot", { name: 'action' })) : (index.h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
81
81
|
}
|
|
82
82
|
};
|
|
@@ -214,7 +214,7 @@ const TableCell = class {
|
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
render() {
|
|
217
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
217
|
+
return (index.h(themedHost_component.ThemedHost, { key: '4676f425a0c14a84eefd17167108adc118215547', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false));
|
|
218
218
|
}
|
|
219
219
|
_getContent() {
|
|
220
220
|
if (this.variant === 'loading') {
|
|
@@ -247,7 +247,7 @@ const TableContainer = class {
|
|
|
247
247
|
index.registerInstance(this, hostRef);
|
|
248
248
|
}
|
|
249
249
|
render() {
|
|
250
|
-
return (index.h(index.Host, { key: '
|
|
250
|
+
return (index.h(index.Host, { key: 'edde039f2553f3e1f67d43ca4c6d9b80fb863782', class: container() }, index.h("slot", { key: '3c242bb0e83a7a8964f764b1d65081e00650aff6' })));
|
|
251
251
|
}
|
|
252
252
|
};
|
|
253
253
|
TableContainer.style = tableContainerComponentCss();
|
|
@@ -362,12 +362,12 @@ const TableFooter = class {
|
|
|
362
362
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 200);
|
|
363
363
|
}
|
|
364
364
|
render() {
|
|
365
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
365
|
+
return (index.h(themedHost_component.ThemedHost, { key: '49d706b3e6d9485db9370a6a7d190050a35d5ff7' }, index.h("div", { key: 'c86f93340cfc581d1b528a17f244d4c39467da01', class: footer({
|
|
366
366
|
pinned: this._isPinned,
|
|
367
367
|
hidden: this._hidden,
|
|
368
368
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
369
369
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
370
|
-
this.total > 0 && (index.h("p-pagination", { key: '
|
|
370
|
+
this.total > 0 && (index.h("p-pagination", { key: '844e959f136405f641d688c1e38ef99d688e60c6', class: 'pointer-events-auto 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) })))));
|
|
371
371
|
}
|
|
372
372
|
_changePageSize(s) {
|
|
373
373
|
if (!s) {
|
|
@@ -10158,13 +10158,13 @@ const TableRow = class {
|
|
|
10158
10158
|
*/
|
|
10159
10159
|
isLast = false;
|
|
10160
10160
|
render() {
|
|
10161
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
10161
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'b6e06d348ba9f989d14a7d0a55a9c8f59df5bb0f' }, index.h("div", { key: 'b73ed4648704bd70706b2068e74e287cf8b7ef58', class: 'flex flex-col' }, index.h("div", { key: 'a2b4bfe9b646b127b65e948abac8962ec7fc9961', class: row({
|
|
10162
10162
|
variant: this.variant,
|
|
10163
10163
|
enableHover: this.enableHover,
|
|
10164
10164
|
checked: this.checked,
|
|
10165
|
-
}) }, index.h("div", { key: '
|
|
10165
|
+
}) }, index.h("div", { key: 'a841f4ed0c0c73f9634ec5acab22438f4241d3a3', class: content({
|
|
10166
10166
|
variant: this.variant,
|
|
10167
|
-
}) }, index.h("slot", { key: '
|
|
10167
|
+
}) }, index.h("slot", { key: '8895fc68dbd55b386f01dd07d8874ab711b53ab4' }), index.h("div", { key: '522b44aeebbce59641c5f2015a0971536d3e3282', class: actions() }, index.h("slot", { key: 'f56ebaf0808a2e1c2c79e1928e9acea59d682b14', name: 'actions' })))), !asBoolean.asBoolean(this.isLast) && this.variant !== 'secondary' && (index.h("p-divider", { key: 'a3fa2f78c7a6ba2cd0304ee92d50c596d4e49865' })))));
|
|
10168
10168
|
}
|
|
10169
10169
|
};
|
|
10170
10170
|
TableRow.style = tableRowComponentCss();
|
|
@@ -10180,16 +10180,16 @@ const TableRowActionsContainer = class {
|
|
|
10180
10180
|
*/
|
|
10181
10181
|
checked = false;
|
|
10182
10182
|
render() {
|
|
10183
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
10183
|
+
return (index.h(themedHost_component.ThemedHost, { key: '7a4ca33f9fece63aa04879e6b712922034e3be40' }, index.h("div", { key: 'a82d9974df1ae6f5805038d0682340a65d5e5b41', class: cn.cn(`
|
|
10184
10184
|
flex
|
|
10185
10185
|
before:w-4 before:bg-gradient-to-l before:from-off-white-200
|
|
10186
10186
|
`, {
|
|
10187
10187
|
'dark:before:from-hurricane-600': !this.checked,
|
|
10188
10188
|
'dark:before:from-hurricane-400': !!this.checked,
|
|
10189
|
-
}) }, index.h("div", { key: '
|
|
10189
|
+
}) }, index.h("div", { key: 'f63029c2f766f1ed5bbc767ce2f5bf443deaf153', class: cn.cn('flex h-full items-center gap-2 rounded-r-lg bg-off-white-200 pr-3', {
|
|
10190
10190
|
'dark:bg-hurricane-600': !this.checked,
|
|
10191
10191
|
'dark:bg-hurricane-400': !!this.checked,
|
|
10192
|
-
}) }, index.h("slot", { key: '
|
|
10192
|
+
}) }, index.h("slot", { key: '8809271ccf4905e72683e2f7946e8643d06c230e' })))));
|
|
10193
10193
|
}
|
|
10194
10194
|
};
|
|
10195
10195
|
TableRowActionsContainer.style = tableRowActionsContainerComponentCss();
|
|
@@ -390,8 +390,8 @@ const Field = class {
|
|
|
390
390
|
}
|
|
391
391
|
render() {
|
|
392
392
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
393
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
394
|
-
(!!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 && (index.h("slot", { key: '
|
|
393
|
+
return (index.h(themedHost_component.ThemedHost, { key: '61c9c869d72189a0b60f56bfe455389c9d74bf78' }, index.h("p-field-container", { key: '906ca4ad73f933a725c67d66106bd0ca7b235dec', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
394
|
+
(!!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 && (index.h("slot", { key: '2d64b39b50008c30595ece9969ec1b41865accab', name: 'label', slot: 'label' })), hasHeaderSlot && (index.h("slot", { key: '9dff1c9094ef9b6931475e4842600d23e1a07048', name: 'header', slot: 'header' })), hasHelperSlot && (index.h("slot", { key: '33855129bd72d47d650b74b7e8dfd2d1b0781557', name: 'helper', slot: 'helper' })), hasErrorSlot && (index.h("slot", { key: '47fb5f2feb81e3b7bf14158684c452bb94512e29', name: 'error', slot: 'error' })), index.h("div", { key: '29aa7bf0d9d5d74d7b4dff1f9faf23f26d979aa5', class: field({
|
|
395
395
|
error: !!this.error?.length,
|
|
396
396
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
397
397
|
focused: asBoolean.asBoolean(this.focused) || this._focused,
|
|
@@ -402,7 +402,7 @@ const Field = class {
|
|
|
402
402
|
? `${this.value}`
|
|
403
403
|
: undefined }, (this.error?.length ||
|
|
404
404
|
prefix ||
|
|
405
|
-
(this.icon && this.iconPosition === 'start')) && (index.h("div", { key: '
|
|
405
|
+
(this.icon && this.iconPosition === 'start')) && (index.h("div", { key: 'eb30af5e85ef184f8613a157562fb48182691029', class: prefixAndSuffix({
|
|
406
406
|
variant: this.variant,
|
|
407
407
|
error: !!this.error?.length,
|
|
408
408
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
@@ -414,7 +414,7 @@ const Field = class {
|
|
|
414
414
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
415
415
|
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix ||
|
|
416
416
|
(this.type === 'password' && this.enablePasswordEye) ||
|
|
417
|
-
(this.icon && this.iconPosition === 'end')) && (index.h("div", { key: '
|
|
417
|
+
(this.icon && this.iconPosition === 'end')) && (index.h("div", { key: 'efb3cba03c038901990b8cbcc4ff3841901606a2', class: cn.cn(prefixAndSuffix({
|
|
418
418
|
variant: this.variant,
|
|
419
419
|
error: !!this.error?.length,
|
|
420
420
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
@@ -24,10 +24,10 @@ const Listing = class {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (index.h("div", { key: '
|
|
27
|
+
return (index.h("div", { key: 'd6aa8a7f79cd08cefb15203c10a9b65e50054285', class: cn.cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
28
28
|
'opacity-100': this._generatedOnce,
|
|
29
29
|
'opacity-0': !this._generatedOnce,
|
|
30
|
-
}) }, index.h("slot", { key: '
|
|
30
|
+
}) }, index.h("slot", { key: '757292c71e9a18099644e0a075207e8bd39533eb', onSlotchange: () => this._generateLinesOnce() })));
|
|
31
31
|
}
|
|
32
32
|
_generateLinesOnce() {
|
|
33
33
|
if (this._generateTimeout) {
|
|
@@ -71,7 +71,7 @@ const Navbar = class {
|
|
|
71
71
|
}
|
|
72
72
|
_show = false;
|
|
73
73
|
render() {
|
|
74
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
74
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'aecac0fced5f8a0181bdebf4ae9fcc6b2c4c3a8d' }, index.h("p-backdrop", { key: 'fc6b57094cc6b08e73cbe8cb37e57ecbb42eccb4', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), index.h("div", { key: '8833febf310292dc2be5761c1192cf11e044adbb', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, index.h("div", { key: 'dc6934db93742d5718b49a1a47d2b6086c1ae755', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, index.h("p-button", { key: '88e19f62f513207d1929b3897eee81fa8985bfc1', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), index.h("div", { key: '9e137624b046ae9cee5253437d0cfe20e223fbd1', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, index.h("slot", { key: '529b9d7dbe0b36aaee1ed449385fabb1398e627d', name: 'company' })), index.h("div", { key: '40dcd693e18fe84afdabb0a7ed185913327cb8bd', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, index.h("slot", { key: '35cc080c950de449c50d8f397948550651a66f58', name: 'content' })), index.h("div", { key: '65e109f634367d9c4ea83828102d5843d9b2bc36', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, index.h("slot", { key: '18c3d0530e96c8f5dacb7f6bc36bd15a5f7d9517', name: 'user' }))), index.h("div", { key: 'bf8dcce7d30c4e186313c53042b0106ddc46ece7', class: topbar({ class: sidebarAndTopbar() }) }, index.h("p-button", { key: 'e4b3a01a85773b75d9a89e863d8a1797eac2cec9', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), index.h("slot", { key: '7c3a6a3ea527a69de918f0d1ce8fcf192297d284', name: 'topbar' }))));
|
|
75
75
|
}
|
|
76
76
|
handleCloseNavbar() {
|
|
77
77
|
this._show = false;
|
|
@@ -98,13 +98,13 @@ const NavigationItem = class {
|
|
|
98
98
|
render() {
|
|
99
99
|
const TagType = this.as;
|
|
100
100
|
const active = asBoolean.asBoolean(this.active) || this.class?.includes('active');
|
|
101
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
101
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'a6049960058e28e5223547d98bc74663e0a888e5', class: cn.cn('inline-block', this.class) }, index.h(TagType, { key: 'c9b1afed855440c6c9356726c6b49b8e0e86957e', class: navigationItem({
|
|
102
102
|
icon: !!this.icon,
|
|
103
103
|
active,
|
|
104
|
-
}), href: this.href, target: this.target }, index.h("div", { key: '
|
|
104
|
+
}), href: this.href, target: this.target }, index.h("div", { key: 'b11cf4f338c6f929759022e9b9a28cae68867140', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: '79e701a09025c4bd72c42f60bd2c45501b839a4f', variant: this.icon })), index.h("span", { key: '6280c8ca2c0f002fbf625df8e85b17d8a47f8656', class: cn.cn({
|
|
105
105
|
'has-counter': !!this.counter,
|
|
106
106
|
'w-full': this.applyFullWidth,
|
|
107
|
-
}) }, index.h("slot", { key: '
|
|
107
|
+
}) }, index.h("slot", { key: 'fd475094c9efc79a1b5cc774e713604595b2cea9' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: '4083cf86f4ea3e8881235e93f9a1b31c0e9e6589' }, this.counter)), !!this.loading && index.h("p-loader", { key: '4ad1b6b78aaf5109a693bf56cced7a56efc808c1', class: 'ml-auto' }))));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
NavigationItem.style = navigationItemComponentCss();
|
|
@@ -15,7 +15,7 @@ const NavigationSection = class {
|
|
|
15
15
|
*/
|
|
16
16
|
header;
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
18
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'bc1de3ea78a2044e6d3a487229884be8131f60b8', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: '270f159bbde28d84e41905f8be8956b179094556' }, this.header)), index.h("div", { key: 'ec0f45c6cf25a04936a9c5b7255f01a915b95107', class: 'flex flex-col' }, index.h("slot", { key: 'de45623cbcb627173b23e6c1286ee7b2d50a61a1' }))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
NavigationSection.style = navigationSectionComponentCss();
|
|
@@ -77,12 +77,12 @@ const Pagination = class {
|
|
|
77
77
|
_hasPaginationPages = true;
|
|
78
78
|
render() {
|
|
79
79
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
80
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
80
|
+
return (index.h(themedHost_component.ThemedHost, { key: '49533601df212be9f3f719b486a63038f8c1b86e' }, index.h("div", { key: 'ec9ef29efbe2dbd4ddc3f41cc9f0190ebecd55b7', class: pagination$1({
|
|
81
81
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
82
82
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
83
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '
|
|
83
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: 'c1d7473792e14fde3927fb42081eb85e688e922b' }, index.h("p-pagination-size", { key: '239926a2361bcb960c69fc51214197aa71fd1e46', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
84
84
|
this.hideOnSinglePage &&
|
|
85
|
-
this._hasPaginationPages && (index.h("p-divider", { key: '
|
|
85
|
+
this._hasPaginationPages && (index.h("p-divider", { key: 'e764392ca93ec24aeb1a0b2e85c2146555e3dfe0', class: '\n mx-0 h-4 text-off-white-700\n dark:text-hurricane-400\n ', variant: 'vertical' })))), this.enablePaginationPages && (index.h("p-pagination-pages", { key: '21139fc7d61b0438c69e1042d812a8b80dc8c6bd', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
86
86
|
this._hasPaginationPages = detail > 1;
|
|
87
87
|
this.pagesChange.emit(detail);
|
|
88
88
|
} })))));
|
|
@@ -35,7 +35,7 @@ const Profile = class {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const content = this._getContent();
|
|
38
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
38
|
+
return (index.h(themedHost_component.ThemedHost, { key: '4adb6d90f63f5c549b8aaec94d963e77fb6b9b0f' }, this._hasDropdownSlot ? (index.h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, index.h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), index.h("div", { slot: 'items' }, index.h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
39
39
|
}
|
|
40
40
|
slotchange() {
|
|
41
41
|
this._checkDropdownSlot();
|
|
@@ -33,13 +33,13 @@ const Range = class {
|
|
|
33
33
|
valueChange;
|
|
34
34
|
render() {
|
|
35
35
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
36
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
36
|
+
return (index.h(themedHost_component.ThemedHost, { key: '6a0bccf338cc6bb209c87aa58186dfe42aced54a' }, index.h("div", { key: '42e19765bffd9b015754aacd27e803464402b4f0', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, index.h("p-icon", { key: 'd57c3240a47aaa0933f72f915e3cbb13899bc69b', variant: 'minus' }), index.h("div", { key: 'b2663674e423315adbdb99b5379d48cbc66fdc75', class: 'relative h-6 flex-1' }, index.h("input", { key: '5c2fdd589f7a7ee1f868aa95b0e4fbf87c27fe36', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
|
|
37
37
|
const value = ev.target.value;
|
|
38
38
|
this.value = Number.parseFloat(value);
|
|
39
39
|
this.valueChange.emit(value);
|
|
40
|
-
} }), index.h("div", { key: '
|
|
40
|
+
} }), index.h("div", { key: '7494d9cde11e83446bde18ceea80c057cb5276ec', class: '\n absolute left-0 top-1/2 z-[1] h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
|
|
41
41
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
42
|
-
} })), index.h("p-icon", { key: '
|
|
42
|
+
} })), index.h("p-icon", { key: '626fd2506a2ebfcb8876fb31546c6a4ba046730a', variant: 'plus' }))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
Range.style = rangeComponentCss();
|
|
@@ -34,15 +34,15 @@ const SubmenuItem = class {
|
|
|
34
34
|
this.activeChange.emit(this.active);
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
37
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'deca033001e2a36c27da033ac58630b76a25690b' }, index.h("div", { key: '11892f6ceb01b5eed844e7f3a7498b80b57da3e8', class: cn.cn([
|
|
38
38
|
'flex items-center',
|
|
39
39
|
'h-8 w-full pl-[calc(3rem+2px)]',
|
|
40
40
|
'cursor-pointer',
|
|
41
41
|
'group/submenu-item',
|
|
42
|
-
]) }, index.h("div", { key: '
|
|
42
|
+
]) }, index.h("div", { key: '2574c39efb7cf07a7ba0633d4554cd7b0070f24b', class: cn.cn('flex items-center gap-2 transition-colors', {
|
|
43
43
|
'text-storm-400 dark:text-hurricane-100': !this.active,
|
|
44
44
|
'text-indigo-600': this.active,
|
|
45
|
-
}) }, index.h("p-icon", { key: '
|
|
45
|
+
}) }, index.h("p-icon", { key: 'd358bd33a9266bdbfa81ddc8e8190156a0243491', variant: this.icon }), index.h("slot", { key: '392459313708ade2f205c5a202e44c9230af1818' })))));
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
SubmenuItem.style = submenuItemComponentCss();
|
|
@@ -152,34 +152,34 @@ const Submenu = class {
|
|
|
152
152
|
const maxHeight = submenuItems.length *
|
|
153
153
|
Number.parseInt(firstItem.height.replace('px', '')) +
|
|
154
154
|
16; // the margin of the content
|
|
155
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
155
|
+
return (index.h(themedHost_component.ThemedHost, { key: '5f589bd0b6b470f9dca4151e80a2b55845e38295' }, index.h("div", { key: '08a771d863a14340353fac1610d8adb1b56746a4', class: 'flex w-full flex-col' }, index.h("div", { key: '2fae2053f91a46c7cf619bc23f08f043c776b921', class: cn.cn(header({
|
|
156
156
|
active: this.active,
|
|
157
157
|
open: this.open,
|
|
158
|
-
})), onClick: () => (this.open = !this.open) }, this.showIndex && (index.h("div", { key: '
|
|
158
|
+
})), onClick: () => (this.open = !this.open) }, this.showIndex && (index.h("div", { key: 'd82174bc89d220acb0341e887a60ba93310786f8', class: indexContainer({
|
|
159
159
|
active: this.active,
|
|
160
160
|
open: this.open,
|
|
161
|
-
}) }, this.index)), index.h("div", { key: '
|
|
161
|
+
}) }, this.index)), index.h("div", { key: 'e981bf8934863244d6bb2b5347bbbd5eba78acac', class: 'flex flex-1 flex-col' }, index.h("p", { key: '7b01134ba1aa8a00638eb98202beab68c1f1742d', class: cn.cn('m-0 text-sm', {
|
|
162
162
|
'text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white': !this.active,
|
|
163
163
|
'text-storm-500 dark:text-white': this.active,
|
|
164
|
-
}) }, this.title), index.h("p", { key: '
|
|
164
|
+
}) }, this.title), index.h("p", { key: '87e41bc49b6be4644fb5076e2aef25c8b69d4e3b', class: cn.cn('m-0 text-xs', {
|
|
165
165
|
'text-storm-300 dark:text-hurricane-300': !this.active,
|
|
166
166
|
'text-storm-300 dark:text-indigo-200': this.active,
|
|
167
|
-
}) }, this.subtitle)), index.h("p-icon", { key: '
|
|
167
|
+
}) }, this.subtitle)), index.h("p-icon", { key: '54125f28ee9ae3cb48084669d398bf0a856708c5', class: cn.cn({
|
|
168
168
|
'text-storm-500 dark:text-white': this.active,
|
|
169
169
|
'text-storm-300 dark:text-hurricane-300': !this.active,
|
|
170
|
-
}), rotate: this.open ? 180 : 0, variant: 'caret' })), index.h("div", { key: '
|
|
170
|
+
}), rotate: this.open ? 180 : 0, variant: 'caret' })), index.h("div", { key: 'b731892b74a89f34a59feccf609c747eee97e997', class: cn.cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
|
|
171
171
|
maxHeight: `${this.open ? maxHeight : 0}px`,
|
|
172
|
-
} }, index.h("div", { key: '
|
|
172
|
+
} }, index.h("div", { key: 'd5d598b856131ea016720c5ed67b4edf71b29d4d', class: cn.cn('absolute left-6 top-0 z-0 w-px', {
|
|
173
173
|
'bg-off-white-400 dark:bg-storm-500/30': !this.active,
|
|
174
174
|
'bg-indigo-100 dark:bg-hurricane-400': this.active,
|
|
175
175
|
}), style: {
|
|
176
176
|
height: `${maxHeight}px`,
|
|
177
|
-
} }), index.h("div", { key: '
|
|
177
|
+
} }), index.h("div", { key: 'bdc5d5e2b9a5e07b34e8c762498dd37af8ebae00', class: cn.cn(`absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all`, {
|
|
178
178
|
'bg-indigo-600': this._showItemIndicator,
|
|
179
179
|
'bg-transparent': !this._showItemIndicator,
|
|
180
180
|
}), style: {
|
|
181
181
|
transform: `translateY(${this._activeItemPosition}px)`,
|
|
182
|
-
} }), index.h("div", { key: '
|
|
182
|
+
} }), index.h("div", { key: 'b1596c7a69c429784e956523548aa6f378b7233a', class: 'z-10 my-2 flex flex-col' }, index.h("slot", { key: '380ac39b8c6d0407d6aa82ce6773b0184e4f239c', onSlotchange: () => this._slotChanged() }))))));
|
|
183
183
|
}
|
|
184
184
|
onWindowResize() {
|
|
185
185
|
this._calculateHeaderOffset();
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-BGtpSJv_.js');
|
|
4
|
+
var cn = require('./cn-Cd68UVBT.js');
|
|
5
|
+
var asBoolean = require('./as-boolean-C1PzA22I.js');
|
|
6
|
+
require('./clsx-BtxeOLZW.js');
|
|
4
7
|
|
|
5
8
|
const tabContainerComponentCss = () => `*{box-sizing:border-box}.static{position:static}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.m-0{margin:0}.flex{display:flex}.h-8{height:2rem}.w-full{width:100%}.flex-col{flex-direction:column}.gap-5{gap:1.25rem}.overflow-x-auto{overflow-x:auto}.text-off-white-700{--tw-text-opacity:1;color:rgb(222 219 213/var(--tw-text-opacity,1))}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.scrollbar-hide::-webkit-scrollbar{display:none}.dark\\:text-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}`;
|
|
6
9
|
|
|
@@ -8,8 +11,14 @@ const TabContainer = class {
|
|
|
8
11
|
constructor(hostRef) {
|
|
9
12
|
index.registerInstance(this, hostRef);
|
|
10
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Whether to enable scroll
|
|
16
|
+
*/
|
|
17
|
+
enableScroll = true;
|
|
11
18
|
render() {
|
|
12
|
-
return (index.h("div", { key: '
|
|
19
|
+
return (index.h("div", { key: '1b5aabd360facf84eb92465a4c97ba7e277346c2', class: 'relative flex h-8 w-full flex-col' }, index.h("div", { key: 'cf478ed95026aae7c02416d8322c72371ffea585', class: cn.cn('flex w-full gap-5 scrollbar-hide', {
|
|
20
|
+
'overflow-x-auto': asBoolean.asBoolean(this.enableScroll),
|
|
21
|
+
}) }, index.h("slot", { key: '43597e5b985e144bb99803ed125f91918d830fd2' })), index.h("p-divider", { key: 'c61b5b15edaea91c68e736b6bb56739fb91c8024', class: '\n absolute bottom-0 left-0 m-0 w-full text-off-white-700\n dark:text-hurricane-400\n ' })));
|
|
13
22
|
}
|
|
14
23
|
};
|
|
15
24
|
TabContainer.style = tabContainerComponentCss();
|
|
@@ -6,7 +6,7 @@ var themedHost_component = require('./themed-host.component-BeeT9Ite.js');
|
|
|
6
6
|
require('./clsx-BtxeOLZW.js');
|
|
7
7
|
require('./state-DM8SZBNO.js');
|
|
8
8
|
|
|
9
|
-
const tabItemComponentCss = () => `*{box-sizing:border-box}:host{--tw-content:" "}.static{position:static}.flex{display:flex}.h-8{height:2rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.justify-between{justify-content:space-between}.text-sm{font-size:.875rem;line-height:1.25rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.after\\:h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:bg-indigo-600:after{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:bg-transparent:after{background-color:transparent;content:var(--tw-content)}.hover\\:text-storm-400:hover{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.hover\\:after\\:bg-storm-400:hover:after{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}`;
|
|
9
|
+
const tabItemComponentCss = () => `*{box-sizing:border-box}:host{--tw-content:" "}.static{position:static}.flex{display:flex}.h-8{height:2rem}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-indigo-600{--tw-text-opacity:1;color:rgb(82 138 250/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.after\\:h-\\[2px\\]:after{content:var(--tw-content);height:2px}.after\\:bg-indigo-600:after{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));content:var(--tw-content)}.after\\:bg-transparent:after{background-color:transparent;content:var(--tw-content)}.hover\\:text-storm-400:hover{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.hover\\:after\\:bg-storm-400:hover:after{--tw-bg-opacity:1;background-color:rgb(70 75 84/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}.dark\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:hover\\:text-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:after\\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *):after{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1));content:var(--tw-content)}`;
|
|
10
10
|
|
|
11
11
|
const item = index$1.cva([
|
|
12
12
|
'flex h-8 flex-col justify-between text-sm',
|
|
@@ -47,8 +47,16 @@ const TabItem = class {
|
|
|
47
47
|
* Wether the tab item is active
|
|
48
48
|
*/
|
|
49
49
|
active = false;
|
|
50
|
+
/**
|
|
51
|
+
* Wether to show a chevron or not
|
|
52
|
+
*/
|
|
53
|
+
chevron = false;
|
|
54
|
+
/**
|
|
55
|
+
* Chevron position
|
|
56
|
+
*/
|
|
57
|
+
chevronPosition = 'end';
|
|
50
58
|
render() {
|
|
51
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
59
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'c80d816523684ef1d5e98c58dc2d207141c1a8cc' }, index.h("div", { key: '57a92397e1b433541bd89f822dfa713beb8bcd88', class: item({ active: this.active }) }, index.h("div", { key: '080634cd5754a2dc86e03496f63d984bbd912026', class: 'flex items-center gap-2' }, this.chevron && this.chevronPosition === 'start' && (index.h("p-icon", { key: 'd3a1579868aeb23103745f7363a58df22e4e5374', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' })), index.h("slot", { key: 'a8ca932548046fa75bdbf464edb9fe58a98a82ed' }), this.chevron && this.chevronPosition === 'end' && (index.h("p-icon", { key: '67aa47224027e0f8a20459077f138e879f3b66e7', rotate: this.chevron === 'up' ? 180 : 0, variant: 'caret' }))))));
|
|
52
60
|
}
|
|
53
61
|
};
|
|
54
62
|
TabItem.style = tabItemComponentCss();
|
|
@@ -48,9 +48,9 @@ const ToastContainer = class {
|
|
|
48
48
|
*/
|
|
49
49
|
placement = 'top-end';
|
|
50
50
|
render() {
|
|
51
|
-
return (index.h("div", { key: '
|
|
51
|
+
return (index.h("div", { key: '86ef19b7d3a0b72c4fc29fa5b9901f0c91ac57fd', class: container({
|
|
52
52
|
placement: this.placement,
|
|
53
|
-
}) }, index.h("slot", { key: '
|
|
53
|
+
}) }, index.h("slot", { key: 'e3c12f33636f9421377433f131424ece8005d6c3' })));
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
ToastContainer.style = toastContainerComponentCss();
|
|
@@ -72,7 +72,7 @@ const Toast = class {
|
|
|
72
72
|
*/
|
|
73
73
|
action;
|
|
74
74
|
render() {
|
|
75
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
75
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'ba65d071611d7f2b6f1cf71e8efd5a9184e7215c' }, index.h("div", { key: 'b105c7864024ca5597a647e888417d50eaf55b33', class: '\n flex gap-2 rounded-lg border border-solid border-storm-100 bg-white p-2\n shadow-2\n dark:border-hurricane-800 dark:bg-hurricane-800\n ', onClick: () => this._onClick() }, index.h("div", { key: 'e3f36546f14afea29962df2ea41c81c7d5c23f73', class: indicator({ variant: this.variant }) }), index.h("div", { key: '1d8a543e3c02d738c4f5e24b5c5c62e6f8e07908', class: content() }, index.h("div", { key: 'e016bc54906d5f21f6ce56b57923fde268df259d', class: 'flex w-full min-w-0 flex-col' }, index.h("p", { key: 'ca1187d96ba1354688574ad42d10f97be1c721de', class: '\n m-0 overflow-hidden text-ellipsis whitespace-nowrap text-sm\n font-semibold text-storm-500\n dark:text-white\n ' }, this.header?.length ? this.header : index.h("slot", { name: 'header' })), index.h("p", { key: 'b50e38e2230313fb047f2fcdf7c9883368295f02', class: '\n m-0 w-full overflow-hidden text-ellipsis whitespace-nowrap text-xs\n text-storm-300\n dark:text-hurricane-200\n ' }, this.content?.length ? this.content : index.h("slot", { name: 'content' }))), this.enableAction && (index.h("div", { key: '228484b9dc462d566e72afa381b67b5156308dfc', class: '\n flex-shrink-0 cursor-pointer p-2 text-storm-200\n hover:text-storm-500 hover:text-white\n dark:text-hurricane-200\n ' }, index.h("p-icon", { key: '083edb0be1c602af12e5b5fd7f3d0b4816e7492f', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
76
76
|
}
|
|
77
77
|
_onClick() {
|
|
78
78
|
if (this.enableAction) {
|
|
@@ -151,11 +151,11 @@ const Toggle = class {
|
|
|
151
151
|
}
|
|
152
152
|
render() {
|
|
153
153
|
const id = this.id?.length ? this.id : this._nonce;
|
|
154
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
154
|
+
return (index.h(themedHost_component.ThemedHost, { key: '68ea1c58560736df9fc66de2ce8c17515e5bf064' }, index.h("label", { key: '0d7f40ad8afbeb4871ac9e305091e510cbef2b59', class: 'flex items-center justify-start gap-2', htmlFor: id }, index.h("div", { key: 'fea96b279303efae51a5e2aec957d444e8866d59', class: 'group/p-toggle relative flex flex-shrink-0 items-center' }, index.h("input", { key: 'f56b0692d6c410e5e5a11ddd6d2d333bdbed30c2', checked: !!this.checked, class: toggle({
|
|
155
155
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
156
|
-
}), disabled: asBoolean.asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'checkbox', onChange: ev => this._onChange(ev) }), index.h("div", { key: '
|
|
156
|
+
}), disabled: asBoolean.asBoolean(this.disabled), id: id, name: this.name, required: this.required, type: 'checkbox', onChange: ev => this._onChange(ev) }), index.h("div", { key: '7a78a5de3ec5885bc63586dea48183ae4363f6d4', class: circle({
|
|
157
157
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
158
|
-
}) })), index.h("div", { key: '
|
|
158
|
+
}) })), index.h("div", { key: '3e930ab3b5a769348564c49f8a6fce98805d6683', class: '\n flex-1 overflow-hidden text-ellipsis\n empty:hidden\n dark:text-white\n ' }, index.h("slot", { key: '3d4cbb2a19b46431e68e6766faa8dd07b3eb5fd7' })))));
|
|
159
159
|
}
|
|
160
160
|
_onChange(ev) {
|
|
161
161
|
if (asBoolean.asBoolean(this.disabled)) {
|
|
@@ -105,10 +105,10 @@ const Tooltip = class {
|
|
|
105
105
|
this._cleanup = null;
|
|
106
106
|
}
|
|
107
107
|
render() {
|
|
108
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
108
|
+
return (index.h(themedHost_component.ThemedHost, { key: '4841b1358653dde5c7d12446c16401e010e4acda', "data-filled": this.content?.length > 0 || this._hasContentSlot }, index.h("slot", { key: '3a939eb1f11bc8cfd4b90cef9364cf953f3b59ef', name: 'trigger' }), index.h("div", { key: 'e6744fe10a5e44d7dca520de0ea48c73bdcfbd7b', class: popover({
|
|
109
109
|
variant: this.variant,
|
|
110
110
|
strategy: this.strategy,
|
|
111
|
-
}), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, index.h("div", { key: '
|
|
111
|
+
}), "data-placement": this.placement, ref: el => this._load(el), role: 'popover' }, index.h("div", { key: 'f787e108d9dadf6bae66edfc8e1849da22321c80', class: 'flex gap-2 whitespace-normal' }, this.variant === 'error' && (index.h("div", { key: '2bc01a49a9bbde7ec8b6928a272ec1f193665084', class: '\n w-[2px] bg-negative-red-500\n dark:bg-negative-red-alternative\n ' })), this.content ?? index.h("slot", { key: '09769aac06cf1555ef7f9f4a9cace47321ab913d', name: 'content' })))));
|
|
112
112
|
}
|
|
113
113
|
clickHandler() {
|
|
114
114
|
if (this.variant === 'hover' || !this.enableUserInput) {
|