@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
|
@@ -119,7 +119,7 @@ export class Dropdown {
|
|
|
119
119
|
this._update();
|
|
120
120
|
}
|
|
121
121
|
componentDidLoad() {
|
|
122
|
-
this.
|
|
122
|
+
this._checkTriggers();
|
|
123
123
|
}
|
|
124
124
|
disconnectedCallback() {
|
|
125
125
|
if (!this._cleanup) {
|
|
@@ -129,34 +129,36 @@ export class Dropdown {
|
|
|
129
129
|
this._cleanup = null;
|
|
130
130
|
}
|
|
131
131
|
componentDidRender() {
|
|
132
|
-
this.
|
|
132
|
+
this._checkTriggers();
|
|
133
133
|
this._checkItems();
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: 'f16605d78a0658335bf36eb872f2cb7b680de3f2', class: 'relative' }, h("div", { key: '58b92770f83d620c03fb7386f0a23a8ccc900b1d', class: 'trigger', ref: el => (this._trigger = el), onClick: () => this._triggerClickHandler() }, h("slot", { key: 'e14c0fd52127cf3ea55bd3b0fd70add84cd7f816', name: 'trigger' })), h("div", { key: '070c562e05325051e0032e7111d1058a4498d511', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: 'e301706477507458f33b164bed1cdee60e748755', allowOverflow: this.allowOverflow, class: cn(dropdownContainerClass({
|
|
137
137
|
strategy: this.strategy,
|
|
138
138
|
maxWidth: this.applyMaxWidth,
|
|
139
139
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
140
140
|
isDatepicker: this.isDatepicker,
|
|
141
|
-
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '
|
|
141
|
+
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '85ea5ea013ae13e902a6472155c8357e8e96931f', name: 'items' })))));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
const
|
|
143
|
+
_checkTriggers(active = false) {
|
|
144
|
+
const triggers = this._el.querySelectorAll('p-button[slot="trigger"], p-tab-item[slot="trigger"]');
|
|
145
145
|
const isOpen = this._menu.dataset.show === 'true';
|
|
146
|
-
for (
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
146
|
+
for (const trigger of triggers) {
|
|
147
|
+
if ('disabled' in trigger) {
|
|
148
|
+
trigger.disabled = this.disableTriggerClick;
|
|
149
|
+
if (trigger.iconOnly) {
|
|
150
|
+
continue;
|
|
151
|
+
}
|
|
151
152
|
}
|
|
153
|
+
trigger.active = active;
|
|
152
154
|
if (this.applyChevron === false || this.manualChevron === true) {
|
|
153
155
|
if (this.manualChevron === false) {
|
|
154
|
-
|
|
156
|
+
trigger.chevron = false;
|
|
155
157
|
}
|
|
156
158
|
continue;
|
|
157
159
|
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
+
trigger.chevronPosition = this.chevronPosition;
|
|
161
|
+
trigger.chevron =
|
|
160
162
|
this.chevronDirection ??
|
|
161
163
|
(this.placement.includes('top')
|
|
162
164
|
? isOpen
|
|
@@ -237,7 +239,7 @@ export class Dropdown {
|
|
|
237
239
|
this._menu.classList.remove('hidden');
|
|
238
240
|
this._menu.classList.add('block');
|
|
239
241
|
this.isOpen.emit(true);
|
|
240
|
-
this.
|
|
242
|
+
this._checkTriggers(true);
|
|
241
243
|
}
|
|
242
244
|
_hide() {
|
|
243
245
|
if (!this._loaded || this.show) {
|
|
@@ -252,7 +254,7 @@ export class Dropdown {
|
|
|
252
254
|
this._menu.classList.remove('block');
|
|
253
255
|
this._menu.classList.add('hidden');
|
|
254
256
|
this.isOpen.emit(false);
|
|
255
|
-
this.
|
|
257
|
+
this._checkTriggers(false);
|
|
256
258
|
}
|
|
257
259
|
_update() {
|
|
258
260
|
if (!this._menu) {
|
|
@@ -59,11 +59,11 @@ export class EmptyState {
|
|
|
59
59
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
60
60
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
61
61
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
62
|
-
return (h(ThemedHost, { key: '
|
|
62
|
+
return (h(ThemedHost, { key: '14240ef8bf6ebdf43305ecee8502464ad34ca1ec' }, h("div", { key: '27c953186c8023407c180f4ca2238e535bd207b8', class: emptyState({
|
|
63
63
|
enableAction: asBoolean(this.enableAction, true),
|
|
64
64
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
65
65
|
? this.action.emit(ev)
|
|
66
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
66
|
+
: undefined }, this.illustration && (h("p-illustration", { key: 'c7d9b47f3d366e77f8579b5f836d073ff102f2d3', class: 'mb-8 text-5xl text-indigo-600', variant: this.illustration })), hasHeaderSlot ? (h("slot", { name: 'header' })) : (this.header?.length && (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 ? (h("slot", { name: 'content' })) : (this.content?.length && (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 &&
|
|
67
67
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "p-empty-state"; }
|
|
@@ -371,8 +371,8 @@ export class Field {
|
|
|
371
371
|
}
|
|
372
372
|
render() {
|
|
373
373
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
374
|
-
return (h(ThemedHost, { key: '
|
|
375
|
-
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '
|
|
374
|
+
return (h(ThemedHost, { key: '61c9c869d72189a0b60f56bfe455389c9d74bf78' }, h("p-field-container", { key: '906ca4ad73f933a725c67d66106bd0ca7b235dec', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
375
|
+
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (h("slot", { key: '2d64b39b50008c30595ece9969ec1b41865accab', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '9dff1c9094ef9b6931475e4842600d23e1a07048', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '33855129bd72d47d650b74b7e8dfd2d1b0781557', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: '47fb5f2feb81e3b7bf14158684c452bb94512e29', name: 'error', slot: 'error' })), h("div", { key: '29aa7bf0d9d5d74d7b4dff1f9faf23f26d979aa5', class: field({
|
|
376
376
|
error: !!this.error?.length,
|
|
377
377
|
disabled: asBoolean(this.disabled),
|
|
378
378
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -383,7 +383,7 @@ export class Field {
|
|
|
383
383
|
? `${this.value}`
|
|
384
384
|
: undefined }, (this.error?.length ||
|
|
385
385
|
prefix ||
|
|
386
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
386
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: 'eb30af5e85ef184f8613a157562fb48182691029', class: prefixAndSuffix({
|
|
387
387
|
variant: this.variant,
|
|
388
388
|
error: !!this.error?.length,
|
|
389
389
|
disabled: asBoolean(this.disabled),
|
|
@@ -395,7 +395,7 @@ export class Field {
|
|
|
395
395
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
396
396
|
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix ||
|
|
397
397
|
(this.type === 'password' && this.enablePasswordEye) ||
|
|
398
|
-
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
398
|
+
(this.icon && this.iconPosition === 'end')) && (h("div", { key: 'efb3cba03c038901990b8cbcc4ff3841901606a2', class: cn(prefixAndSuffix({
|
|
399
399
|
variant: this.variant,
|
|
400
400
|
error: !!this.error?.length,
|
|
401
401
|
disabled: asBoolean(this.disabled),
|
|
@@ -88,13 +88,13 @@ export class NavigationItem {
|
|
|
88
88
|
render() {
|
|
89
89
|
const TagType = this.as;
|
|
90
90
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
91
|
-
return (h(ThemedHost, { key: '
|
|
91
|
+
return (h(ThemedHost, { key: 'a6049960058e28e5223547d98bc74663e0a888e5', class: cn('inline-block', this.class) }, h(TagType, { key: 'c9b1afed855440c6c9356726c6b49b8e0e86957e', class: navigationItem({
|
|
92
92
|
icon: !!this.icon,
|
|
93
93
|
active,
|
|
94
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
94
|
+
}), href: this.href, target: this.target }, h("div", { key: 'b11cf4f338c6f929759022e9b9a28cae68867140', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '79e701a09025c4bd72c42f60bd2c45501b839a4f', variant: this.icon })), h("span", { key: '6280c8ca2c0f002fbf625df8e85b17d8a47f8656', class: cn({
|
|
95
95
|
'has-counter': !!this.counter,
|
|
96
96
|
'w-full': this.applyFullWidth,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, h("slot", { key: 'fd475094c9efc79a1b5cc774e713604595b2cea9' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '4083cf86f4ea3e8881235e93f9a1b31c0e9e6589' }, this.counter)), !!this.loading && h("p-loader", { key: '4ad1b6b78aaf5109a693bf56cced7a56efc808c1', class: 'ml-auto' }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "p-navigation-item"; }
|
|
100
100
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -6,7 +6,7 @@ export class NavigationSection {
|
|
|
6
6
|
*/
|
|
7
7
|
header;
|
|
8
8
|
render() {
|
|
9
|
-
return (h(ThemedHost, { key: '
|
|
9
|
+
return (h(ThemedHost, { key: 'bc1de3ea78a2044e6d3a487229884be8131f60b8', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '270f159bbde28d84e41905f8be8956b179094556' }, this.header)), h("div", { key: 'ec0f45c6cf25a04936a9c5b7255f01a915b95107', class: 'flex flex-col' }, h("slot", { key: 'de45623cbcb627173b23e6c1286ee7b2d50a61a1' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-navigation-section"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -60,12 +60,12 @@ export class Pagination {
|
|
|
60
60
|
_hasPaginationPages = true;
|
|
61
61
|
render() {
|
|
62
62
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
63
|
-
return (h(ThemedHost, { key: '
|
|
63
|
+
return (h(ThemedHost, { key: '49533601df212be9f3f719b486a63038f8c1b86e' }, h("div", { key: 'ec9ef29efbe2dbd4ddc3f41cc9f0190ebecd55b7', class: pagination({
|
|
64
64
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
65
65
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
66
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
66
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: 'c1d7473792e14fde3927fb42081eb85e688e922b' }, h("p-pagination-size", { key: '239926a2361bcb960c69fc51214197aa71fd1e46', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
67
67
|
this.hideOnSinglePage &&
|
|
68
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
68
|
+
this._hasPaginationPages && (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 && (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 }) => {
|
|
69
69
|
this._hasPaginationPages = detail > 1;
|
|
70
70
|
this.pagesChange.emit(detail);
|
|
71
71
|
} })))));
|
|
@@ -28,7 +28,7 @@ export class Profile {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const content = this._getContent();
|
|
31
|
-
return (h(ThemedHost, { key: '
|
|
31
|
+
return (h(ThemedHost, { key: '4adb6d90f63f5c549b8aaec94d963e77fb6b9b0f' }, this._hasDropdownSlot ? (h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
32
32
|
}
|
|
33
33
|
slotchange() {
|
|
34
34
|
this._checkDropdownSlot();
|
|
@@ -23,13 +23,13 @@ export class Range {
|
|
|
23
23
|
valueChange;
|
|
24
24
|
render() {
|
|
25
25
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
return (h(ThemedHost, { key: '6a0bccf338cc6bb209c87aa58186dfe42aced54a' }, h("div", { key: '42e19765bffd9b015754aacd27e803464402b4f0', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: 'd57c3240a47aaa0933f72f915e3cbb13899bc69b', variant: 'minus' }), h("div", { key: 'b2663674e423315adbdb99b5379d48cbc66fdc75', class: 'relative h-6 flex-1' }, h("input", { key: '5c2fdd589f7a7ee1f868aa95b0e4fbf87c27fe36', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
|
|
27
27
|
const value = ev.target.value;
|
|
28
28
|
this.value = Number.parseFloat(value);
|
|
29
29
|
this.valueChange.emit(value);
|
|
30
|
-
} }), h("div", { key: '
|
|
30
|
+
} }), 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: {
|
|
31
31
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
32
|
-
} })), h("p-icon", { key: '
|
|
32
|
+
} })), h("p-icon", { key: '626fd2506a2ebfcb8876fb31546c6a4ba046730a', variant: 'plus' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-range"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,15 +23,15 @@ export class SubmenuItem {
|
|
|
23
23
|
this.activeChange.emit(this.active);
|
|
24
24
|
}
|
|
25
25
|
render() {
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
return (h(ThemedHost, { key: 'deca033001e2a36c27da033ac58630b76a25690b' }, h("div", { key: '11892f6ceb01b5eed844e7f3a7498b80b57da3e8', class: cn([
|
|
27
27
|
'flex items-center',
|
|
28
28
|
'h-8 w-full pl-[calc(3rem+2px)]',
|
|
29
29
|
'cursor-pointer',
|
|
30
30
|
'group/submenu-item',
|
|
31
|
-
]) }, h("div", { key: '
|
|
31
|
+
]) }, h("div", { key: '2574c39efb7cf07a7ba0633d4554cd7b0070f24b', class: cn('flex items-center gap-2 transition-colors', {
|
|
32
32
|
'text-storm-400 dark:text-hurricane-100': !this.active,
|
|
33
33
|
'text-indigo-600': this.active,
|
|
34
|
-
}) }, h("p-icon", { key: '
|
|
34
|
+
}) }, h("p-icon", { key: 'd358bd33a9266bdbfa81ddc8e8190156a0243491', variant: this.icon }), h("slot", { key: '392459313708ade2f205c5a202e44c9230af1818' })))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "p-submenu-item"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -145,34 +145,34 @@ export class Submenu {
|
|
|
145
145
|
const maxHeight = submenuItems.length *
|
|
146
146
|
Number.parseInt(firstItem.height.replace('px', '')) +
|
|
147
147
|
16; // the margin of the content
|
|
148
|
-
return (h(ThemedHost, { key: '
|
|
148
|
+
return (h(ThemedHost, { key: '5f589bd0b6b470f9dca4151e80a2b55845e38295' }, h("div", { key: '08a771d863a14340353fac1610d8adb1b56746a4', class: 'flex w-full flex-col' }, h("div", { key: '2fae2053f91a46c7cf619bc23f08f043c776b921', class: cn(header({
|
|
149
149
|
active: this.active,
|
|
150
150
|
open: this.open,
|
|
151
|
-
})), onClick: () => (this.open = !this.open) }, this.showIndex && (h("div", { key: '
|
|
151
|
+
})), onClick: () => (this.open = !this.open) }, this.showIndex && (h("div", { key: 'd82174bc89d220acb0341e887a60ba93310786f8', class: indexContainer({
|
|
152
152
|
active: this.active,
|
|
153
153
|
open: this.open,
|
|
154
|
-
}) }, this.index)), h("div", { key: '
|
|
154
|
+
}) }, this.index)), h("div", { key: 'e981bf8934863244d6bb2b5347bbbd5eba78acac', class: 'flex flex-1 flex-col' }, h("p", { key: '7b01134ba1aa8a00638eb98202beab68c1f1742d', class: cn('m-0 text-sm', {
|
|
155
155
|
'text-storm-400 dark:text-hurricane-100 dark:group-hover/submenu-header:text-white': !this.active,
|
|
156
156
|
'text-storm-500 dark:text-white': this.active,
|
|
157
|
-
}) }, this.title), h("p", { key: '
|
|
157
|
+
}) }, this.title), h("p", { key: '87e41bc49b6be4644fb5076e2aef25c8b69d4e3b', class: cn('m-0 text-xs', {
|
|
158
158
|
'text-storm-300 dark:text-hurricane-300': !this.active,
|
|
159
159
|
'text-storm-300 dark:text-indigo-200': this.active,
|
|
160
|
-
}) }, this.subtitle)), h("p-icon", { key: '
|
|
160
|
+
}) }, this.subtitle)), h("p-icon", { key: '54125f28ee9ae3cb48084669d398bf0a856708c5', class: cn({
|
|
161
161
|
'text-storm-500 dark:text-white': this.active,
|
|
162
162
|
'text-storm-300 dark:text-hurricane-300': !this.active,
|
|
163
|
-
}), rotate: this.open ? 180 : 0, variant: 'caret' })), h("div", { key: '
|
|
163
|
+
}), rotate: this.open ? 180 : 0, variant: 'caret' })), h("div", { key: 'b731892b74a89f34a59feccf609c747eee97e997', class: cn('relative flex flex-col overflow-hidden transition-[max-height]'), style: {
|
|
164
164
|
maxHeight: `${this.open ? maxHeight : 0}px`,
|
|
165
|
-
} }, h("div", { key: '
|
|
165
|
+
} }, h("div", { key: 'd5d598b856131ea016720c5ed67b4edf71b29d4d', class: cn('absolute left-6 top-0 z-0 w-px', {
|
|
166
166
|
'bg-off-white-400 dark:bg-storm-500/30': !this.active,
|
|
167
167
|
'bg-indigo-100 dark:bg-hurricane-400': this.active,
|
|
168
168
|
}), style: {
|
|
169
169
|
height: `${maxHeight}px`,
|
|
170
|
-
} }), h("div", { key: '
|
|
170
|
+
} }), h("div", { key: 'bdc5d5e2b9a5e07b34e8c762498dd37af8ebae00', class: cn(`absolute left-6 top-0 z-[1] h-8 w-[2px] transform transition-all`, {
|
|
171
171
|
'bg-indigo-600': this._showItemIndicator,
|
|
172
172
|
'bg-transparent': !this._showItemIndicator,
|
|
173
173
|
}), style: {
|
|
174
174
|
transform: `translateY(${this._activeItemPosition}px)`,
|
|
175
|
-
} }), h("div", { key: '
|
|
175
|
+
} }), h("div", { key: 'b1596c7a69c429784e956523548aa6f378b7233a', class: 'z-10 my-2 flex flex-col' }, h("slot", { key: '380ac39b8c6d0407d6aa82ce6773b0184e4f239c', onSlotchange: () => this._slotChanged() }))))));
|
|
176
176
|
}
|
|
177
177
|
onWindowResize() {
|
|
178
178
|
this._calculateHeaderOffset();
|
|
@@ -87,7 +87,7 @@ export class TableCell {
|
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h(ThemedHost, { key: '
|
|
90
|
+
return (h(ThemedHost, { key: '4676f425a0c14a84eefd17167108adc118215547', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false && (h(Fragment, { key: 'ef04ad97569b56dd65865f306b28a90c79c7b89a' }, h("div", { key: '841dc6d2a3985b960e4dfb1651409e972095c7f4', class: 'pl-8' }), h("div", { key: '5f5b370f0ef8e7f21fa8b9e915a9390b7c92b4e2', class: '\n text-storm-300 text-storm-400 text-storm-500\n dark:text-hurricane-200 dark:text-white\n ' }), h("div", { key: 'a358b2b250a2739837f380239be0dee13428e33d', class: 'justify-start justify-end justify-center' }), h("div", { key: '2d520ba443c175bf3e9042e771d8b9a7d129335f', class: 'font-semibold text-storm-300 text-storm-400 text-storm-500' }), h("div", { key: 'f242a6905b33af06500a2bc12d7f22fc8b2374e7', class: '\n w-1/12 w-10/12 w-11/12 w-2/12 w-3/12 w-4/12 w-5/12 w-6/12 w-7/12 w-8/12\n w-9/12 w-full\n ' }), h("div", { key: 'a9fbf15208c7c5808ce694282df62321151edc46', class: '\n tablet:w-1/12 tablet:w-10/12 tablet:w-11/12 tablet:w-2/12 tablet:w-3/12\n tablet:w-4/12 tablet:w-5/12 tablet:w-6/12 tablet:w-7/12 tablet:w-8/12\n tablet:w-9/12 tablet:w-full\n ' }), h("div", { key: 'ab67294ec04eafc5fce1e8c27436bee96256a752', class: '\n desktop-xs:w-1/12 desktop-xs:w-10/12 desktop-xs:w-11/12\n desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12\n desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12\n desktop-xs:w-full\n ' }), h("div", { key: '693de71cc05b7857ff510f37769801de19fff7ed', class: '\n desktop-xs:w-1/12 desktop-xs:w-10/12 desktop-xs:w-11/12\n desktop-xs:w-2/12 desktop-xs:w-3/12 desktop-xs:w-4/12 desktop-xs:w-5/12\n desktop-xs:w-6/12 desktop-xs:w-7/12 desktop-xs:w-8/12 desktop-xs:w-9/12\n desktop-xs:w-full\n ' }), h("div", { key: '15c394d545d7ca1a0f6cc1d174e4bf2c878f96d7', class: '\n desktop-sm:w-1/12 desktop-sm:w-10/12 desktop-sm:w-11/12\n desktop-sm:w-2/12 desktop-sm:w-3/12 desktop-sm:w-4/12 desktop-sm:w-5/12\n desktop-sm:w-6/12 desktop-sm:w-7/12 desktop-sm:w-8/12 desktop-sm:w-9/12\n desktop-sm:w-full\n ' }), h("div", { key: '7ddc8a3874d0009a6e16575d3c24c699eb02ffce', class: '\n desktop:w-1/12 desktop:w-10/12 desktop:w-11/12 desktop:w-2/12\n desktop:w-3/12 desktop:w-4/12 desktop:w-5/12 desktop:w-6/12\n desktop:w-7/12 desktop:w-8/12 desktop:w-9/12 desktop:w-full\n ' }), h("div", { key: '779b5627f6636191abcaff5e0bcf9dc2119a4bef', class: '\n desktop-lg:w-1/12 desktop-lg:w-10/12 desktop-lg:w-11/12\n desktop-lg:w-2/12 desktop-lg:w-3/12 desktop-lg:w-4/12 desktop-lg:w-5/12\n desktop-lg:w-6/12 desktop-lg:w-7/12 desktop-lg:w-8/12 desktop-lg:w-9/12\n desktop-lg:w-full\n ' }), h("div", { key: 'd33f296a7c8a8ea1d38261f1b37eabb7ec290efb', class: '\n desktop-xl:w-1/12 desktop-xl:w-10/12 desktop-xl:w-11/12\n desktop-xl:w-2/12 desktop-xl:w-3/12 desktop-xl:w-4/12 desktop-xl:w-5/12\n desktop-xl:w-6/12 desktop-xl:w-7/12 desktop-xl:w-8/12 desktop-xl:w-9/12\n desktop-xl:w-full\n ' }), h("div", { key: 'f8648b23a972a4145404d63a2ff7601275b73dd7', class: '\n flex hidden\n group-hover:flex group-hover:hidden\n ' }), h("div", { key: 'b0ac2a423db0acbb6917bac308e97f6ee9888f57', class: '\n tablet:flex tablet:hidden\n tablet:group-hover:flex tablet:group-hover:hidden\n ' }), h("div", { key: '2926874d9416fd7c99a4bedb89300b0073e4b497', class: '\n desktop-xs:flex desktop-xs:hidden\n desktop-xs:group-hover:flex desktop-xs:group-hover:hidden\n ' }), h("div", { key: 'ec389b47e10a59cf6e238b1cf3faf38bcad47c0b', class: '\n desktop-sm:flex desktop-sm:hidden\n desktop-sm:group-hover:flex desktop-sm:group-hover:hidden\n ' }), h("div", { key: 'c1dcb767e3b36af695100dad5e25e269c9fa921b', class: '\n desktop:flex desktop:hidden\n desktop:group-hover:flex desktop:group-hover:hidden\n ' }), h("div", { key: 'd2d2cb1713399d5685473bc5e8c0e5b8ab4d880a', class: '\n desktop-lg:flex desktop-lg:hidden\n desktop-lg:group-hover:flex desktop-lg:group-hover:hidden\n ' }), h("div", { key: 'a7dbeca1e7efa0e4498fd88e04b282cf1c0208dd', class: '\n desktop-xl:flex desktop-xl:hidden\n desktop-xl:group-hover:flex desktop-xl:group-hover:hidden\n ' }), h("div", { key: 'c21608d0db9a621ec011bf93051165a40ae4e190', class: '\n pr-0 pr-4\n last-of-type:pr-0\n ' }), h("div", { key: 'b8c6fcae21b160094f2376fd1217450e4834e158', class: 'tablet:pr-0 tablet:pr-4' }), h("div", { key: '7efaf4f7066b8499e3cd98d2a93b925edc9dde6d', class: 'desktop-xs:pr-0 desktop-xs:pr-4' }), h("div", { key: 'be237edc440eb91522cfb60b698e9d131bd94a69', class: 'desktop-sm:pr-0 desktop-sm:pr-4' }), h("div", { key: '0e3d0502058124c94df4bf0f1e2f2464bf536584', class: 'desktop:pr-0 desktop:pr-4' }), h("div", { key: '7a04297ec088f22567188b27aabf1cdab825b070', class: 'desktop-lg:pr-0 desktop-lg:pr-4' }), h("div", { key: '246bd20bb45fa1898f94c153ca6be9c1b53cdbae', class: 'desktop-xl:pr-0 desktop-xl:pr-4' })))));
|
|
91
91
|
}
|
|
92
92
|
_getContent() {
|
|
93
93
|
if (this.variant === 'loading') {
|
|
@@ -107,12 +107,12 @@ export class TableFooter {
|
|
|
107
107
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 200);
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
|
-
return (h(ThemedHost, { key: '
|
|
110
|
+
return (h(ThemedHost, { key: '49d706b3e6d9485db9370a6a7d190050a35d5ff7' }, h("div", { key: 'c86f93340cfc581d1b528a17f244d4c39467da01', class: footer({
|
|
111
111
|
pinned: this._isPinned,
|
|
112
112
|
hidden: this._hidden,
|
|
113
113
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
114
114
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
115
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
115
|
+
this.total > 0 && (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) })))));
|
|
116
116
|
}
|
|
117
117
|
_changePageSize(s) {
|
|
118
118
|
if (!s) {
|
|
@@ -107,13 +107,13 @@ export class TableRow {
|
|
|
107
107
|
*/
|
|
108
108
|
isLast = false;
|
|
109
109
|
render() {
|
|
110
|
-
return (h(ThemedHost, { key: '
|
|
110
|
+
return (h(ThemedHost, { key: 'b6e06d348ba9f989d14a7d0a55a9c8f59df5bb0f' }, h("div", { key: 'b73ed4648704bd70706b2068e74e287cf8b7ef58', class: 'flex flex-col' }, h("div", { key: 'a2b4bfe9b646b127b65e948abac8962ec7fc9961', class: row({
|
|
111
111
|
variant: this.variant,
|
|
112
112
|
enableHover: this.enableHover,
|
|
113
113
|
checked: this.checked,
|
|
114
|
-
}) }, h("div", { key: '
|
|
114
|
+
}) }, h("div", { key: 'a841f4ed0c0c73f9634ec5acab22438f4241d3a3', class: content({
|
|
115
115
|
variant: this.variant,
|
|
116
|
-
}) }, h("slot", { key: '
|
|
116
|
+
}) }, h("slot", { key: '8895fc68dbd55b386f01dd07d8874ab711b53ab4' }), h("div", { key: '522b44aeebbce59641c5f2015a0971536d3e3282', class: actions() }, h("slot", { key: 'f56ebaf0808a2e1c2c79e1928e9acea59d682b14', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: 'a3fa2f78c7a6ba2cd0304ee92d50c596d4e49865' })))));
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "p-table-row"; }
|
|
119
119
|
static get encapsulation() { return "shadow"; }
|
|
@@ -61,7 +61,7 @@ export class Toast {
|
|
|
61
61
|
*/
|
|
62
62
|
action;
|
|
63
63
|
render() {
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: 'ba65d071611d7f2b6f1cf71e8efd5a9184e7215c' }, 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() }, h("div", { key: 'e3f36546f14afea29962df2ea41c81c7d5c23f73', class: indicator({ variant: this.variant }) }), h("div", { key: '1d8a543e3c02d738c4f5e24b5c5c62e6f8e07908', class: content() }, h("div", { key: 'e016bc54906d5f21f6ce56b57923fde268df259d', class: 'flex w-full min-w-0 flex-col' }, 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 : h("slot", { name: 'header' })), 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 : h("slot", { name: 'content' }))), this.enableAction && (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 ' }, h("p-icon", { key: '083edb0be1c602af12e5b5fd7f3d0b4816e7492f', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
65
65
|
}
|
|
66
66
|
_onClick() {
|
|
67
67
|
if (this.enableAction) {
|
|
@@ -18,10 +18,10 @@ export class Listing {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: 'd6aa8a7f79cd08cefb15203c10a9b65e50054285', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
22
22
|
'opacity-100': this._generatedOnce,
|
|
23
23
|
'opacity-0': !this._generatedOnce,
|
|
24
|
-
}) }, h("slot", { key: '
|
|
24
|
+
}) }, h("slot", { key: '757292c71e9a18099644e0a075207e8bd39533eb', onSlotchange: () => this._generateLinesOnce() })));
|
|
25
25
|
}
|
|
26
26
|
_generateLinesOnce() {
|
|
27
27
|
if (this._generateTimeout) {
|
|
@@ -61,7 +61,7 @@ const backdrop = cva([
|
|
|
61
61
|
export class Navbar {
|
|
62
62
|
_show = false;
|
|
63
63
|
render() {
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: 'aecac0fced5f8a0181bdebf4ae9fcc6b2c4c3a8d' }, h("p-backdrop", { key: 'fc6b57094cc6b08e73cbe8cb37e57ecbb42eccb4', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '8833febf310292dc2be5761c1192cf11e044adbb', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'dc6934db93742d5718b49a1a47d2b6086c1ae755', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, h("p-button", { key: '88e19f62f513207d1929b3897eee81fa8985bfc1', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: '9e137624b046ae9cee5253437d0cfe20e223fbd1', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: '529b9d7dbe0b36aaee1ed449385fabb1398e627d', name: 'company' })), h("div", { key: '40dcd693e18fe84afdabb0a7ed185913327cb8bd', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '35cc080c950de449c50d8f397948550651a66f58', name: 'content' })), h("div", { key: '65e109f634367d9c4ea83828102d5843d9b2bc36', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, h("slot", { key: '18c3d0530e96c8f5dacb7f6bc36bd15a5f7d9517', name: 'user' }))), h("div", { key: 'bf8dcce7d30c4e186313c53042b0106ddc46ece7', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'e4b3a01a85773b75d9a89e863d8a1797eac2cec9', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: '7c3a6a3ea527a69de918f0d1ce8fcf192297d284', name: 'topbar' }))));
|
|
65
65
|
}
|
|
66
66
|
handleCloseNavbar() {
|
|
67
67
|
this._show = false;
|