@paperless/core 3.2.2 → 3.2.4
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-1ac00601.entry.js → p-102da1de.entry.js} +1 -1
- package/dist/{paperless/p-6ac04b16.entry.js → build/p-187a4dda.entry.js} +1 -1
- package/dist/build/{p-b70ee063.entry.js → p-1b85b4f5.entry.js} +1 -1
- package/dist/{paperless/p-8a8adc4d.entry.js → build/p-2f9a3144.entry.js} +2 -2
- package/dist/{paperless/p-9e1977a6.entry.js → build/p-2ff08beb.entry.js} +1 -1
- package/dist/{paperless/p-9889be94.entry.js → build/p-31869c91.entry.js} +1 -1
- package/dist/build/{p-047da5c9.entry.js → p-4cd9344a.entry.js} +1 -1
- package/dist/{paperless/p-1fa99d63.entry.js → build/p-62f87c18.entry.js} +1 -1
- package/dist/build/p-63ef1d8d.entry.js +1 -0
- package/dist/{paperless/p-18245eb9.entry.js → build/p-6b1c18a6.entry.js} +1 -1
- package/dist/build/{p-7158dacd.entry.js → p-748c6ed3.entry.js} +1 -1
- package/dist/build/{p-6a7ce335.entry.js → p-7868dc58.entry.js} +1 -1
- package/dist/build/{p-fbd4c0ed.entry.js → p-8c1a3795.entry.js} +1 -1
- package/dist/build/p-8d67b17e.entry.js +1 -0
- package/dist/build/p-980f3529.entry.js +1 -0
- package/dist/build/{p-fa2e80c6.js → p-b4fcc93e.js} +1 -1
- package/dist/build/p-c4af6a8c.entry.js +1 -0
- package/dist/build/{p-cdcc28c2.entry.js → p-d6958e7a.entry.js} +1 -1
- package/dist/{paperless/p-eaa0079d.entry.js → build/p-df709c40.entry.js} +1 -1
- package/dist/build/{p-34448061.entry.js → p-e021a548.entry.js} +1 -1
- package/dist/build/{p-459f7a0b.entry.js → p-f13f7779.entry.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/p-accordion.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +10 -10
- package/dist/cjs/p-field_3.cjs.entry.js +4 -4
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- 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-select.cjs.entry.js +2 -2
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/collection/components/molecules/accordion/accordion.component.css +1 -1
- 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 +2 -2
- 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/label/label.component.js +3 -3
- 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/select/select.component.js +2 -2
- package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table/footer/table-footer.component.js +4 -4
- 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-Dy1wXwZf.js → p-06SzeIsG.js} +1 -1
- package/dist/components/{p-NEqovphH.js → p-B-BsxOeK.js} +1 -1
- package/dist/components/{p-CTQuFuDk.js → p-B9s4_6Vm.js} +1 -1
- package/dist/components/{p-Cat2_HoM.js → p-BEhC6raw.js} +1 -1
- package/dist/components/p-C16aqi4P.js +1 -0
- package/dist/components/{p-CtxKjhiD.js → p-CcNA1hkp.js} +1 -1
- package/dist/components/{p-0Uawv030.js → p-CpYDgn2m.js} +1 -1
- package/dist/components/p-CrAZWi4n.js +1 -0
- package/dist/components/{p-D8FhwO0Q.js → p-DWHcD5b-.js} +1 -1
- package/dist/components/{p-BtliZ0U_.js → p-N5WuUoFr.js} +1 -1
- package/dist/components/{p-DKnCWy7F.js → p-TfYQFmRD.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.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing.js +1 -1
- package/dist/components/{p-BAvGAs2F.js → p-nGuULFe2.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-table-cell.js +1 -1
- package/dist/components/p-table-footer.js +1 -1
- package/dist/components/p-table-header.js +1 -1
- package/dist/components/p-table-row.js +1 -1
- package/dist/components/p-table.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/p-accordion.entry.js +3 -3
- 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 +2 -2
- 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 +10 -10
- package/dist/esm/p-field_3.entry.js +4 -4
- package/dist/esm/p-label.entry.js +3 -3
- 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-select.entry.js +2 -2
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-1ac00601.entry.js → p-102da1de.entry.js} +1 -1
- package/dist/{build/p-6ac04b16.entry.js → paperless/p-187a4dda.entry.js} +1 -1
- package/dist/paperless/{p-b70ee063.entry.js → p-1b85b4f5.entry.js} +1 -1
- package/dist/{build/p-8a8adc4d.entry.js → paperless/p-2f9a3144.entry.js} +2 -2
- package/dist/{build/p-9e1977a6.entry.js → paperless/p-2ff08beb.entry.js} +1 -1
- package/dist/{build/p-9889be94.entry.js → paperless/p-31869c91.entry.js} +1 -1
- package/dist/paperless/{p-047da5c9.entry.js → p-4cd9344a.entry.js} +1 -1
- package/dist/{build/p-1fa99d63.entry.js → paperless/p-62f87c18.entry.js} +1 -1
- package/dist/paperless/p-63ef1d8d.entry.js +1 -0
- package/dist/{build/p-18245eb9.entry.js → paperless/p-6b1c18a6.entry.js} +1 -1
- package/dist/paperless/{p-7158dacd.entry.js → p-748c6ed3.entry.js} +1 -1
- package/dist/paperless/{p-6a7ce335.entry.js → p-7868dc58.entry.js} +1 -1
- package/dist/paperless/{p-fbd4c0ed.entry.js → p-8c1a3795.entry.js} +1 -1
- package/dist/paperless/p-8d67b17e.entry.js +1 -0
- package/dist/paperless/p-980f3529.entry.js +1 -0
- package/dist/paperless/p-c4af6a8c.entry.js +1 -0
- package/dist/paperless/{p-cdcc28c2.entry.js → p-d6958e7a.entry.js} +1 -1
- package/dist/{build/p-eaa0079d.entry.js → paperless/p-df709c40.entry.js} +1 -1
- package/dist/paperless/{p-34448061.entry.js → p-e021a548.entry.js} +1 -1
- package/dist/paperless/{p-459f7a0b.entry.js → p-f13f7779.entry.js} +1 -1
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/sw.js +1 -1
- package/dist/sw.js.map +1 -1
- package/hydrate/index.js +54 -54
- package/hydrate/index.mjs +54 -54
- package/package.json +1 -1
- package/dist/build/p-381c13a8.entry.js +0 -1
- package/dist/build/p-a4ec1798.entry.js +0 -1
- package/dist/build/p-d93446ad.entry.js +0 -1
- package/dist/build/p-fd032172.entry.js +0 -1
- package/dist/components/p-COFt46UN.js +0 -1
- package/dist/components/p-MeQ48Q-1.js +0 -1
- package/dist/paperless/p-381c13a8.entry.js +0 -1
- package/dist/paperless/p-a4ec1798.entry.js +0 -1
- package/dist/paperless/p-d93446ad.entry.js +0 -1
- package/dist/paperless/p-fd032172.entry.js +0 -1
|
@@ -70,11 +70,11 @@ const EmptyState = class {
|
|
|
70
70
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
71
71
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
72
72
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
73
|
-
return (h(ThemedHost, { key: '
|
|
73
|
+
return (h(ThemedHost, { key: 'e156e226af805d55fb5d1ea617d5e219d8d265b7' }, h("div", { key: '417385b03f1494ba500540abf53b202a00140eb2', class: emptyState({
|
|
74
74
|
enableAction: asBoolean(this.enableAction, true),
|
|
75
75
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
76
76
|
? this.action.emit(ev)
|
|
77
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
77
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '2d95c6f7761f817b2bf4968118e7ac5dc6d62abe', 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 &&
|
|
78
78
|
(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))))));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
@@ -212,7 +212,7 @@ const TableCell = class {
|
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
214
|
render() {
|
|
215
|
-
return (h(ThemedHost, { key: '
|
|
215
|
+
return (h(ThemedHost, { key: 'f6abd4c007ae672b8d3bba899ee69ceaf5c258a3', class: this._getColumnClasses() }, this.checkbox, this._getContent(), false));
|
|
216
216
|
}
|
|
217
217
|
_getContent() {
|
|
218
218
|
if (this.variant === 'loading') {
|
|
@@ -360,12 +360,12 @@ const TableFooter = class {
|
|
|
360
360
|
this._renderCheckTimeout = setTimeout(() => this._checkStuck(), 200);
|
|
361
361
|
}
|
|
362
362
|
render() {
|
|
363
|
-
return (h(ThemedHost, { key: '
|
|
363
|
+
return (h(ThemedHost, { key: '2a9d106d8fcda59dbe0615b936dec5c5a6c06ac3' }, h("div", { key: '92904418a7130a5b5b03c60c4ef9a5297fa67900', class: footer({
|
|
364
364
|
pinned: this._isPinned,
|
|
365
365
|
hidden: this._hidden,
|
|
366
366
|
tableHeaderHasAction: this.tableHeaderHasAction,
|
|
367
367
|
}) }, (this.enablePaginationPages || this.enablePaginationSize) &&
|
|
368
|
-
this.total > 0 && (h("p-pagination", { key: '
|
|
368
|
+
this.total > 0 && (h("p-pagination", { key: 'b085a53358757b965720f35ad4deb70a705b4cfd', 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) })))));
|
|
369
369
|
}
|
|
370
370
|
_changePageSize(s) {
|
|
371
371
|
if (!s) {
|
|
@@ -378,7 +378,7 @@ const TableFooter = class {
|
|
|
378
378
|
const rect = this._el.getBoundingClientRect();
|
|
379
379
|
const modal = this._el.closest('p-modal');
|
|
380
380
|
const layout = document.querySelector('p-layout');
|
|
381
|
-
if (modal) {
|
|
381
|
+
if (modal && !this._hidden) {
|
|
382
382
|
const modalBody = modal.shadowRoot.querySelector('p-modal-body');
|
|
383
383
|
const innerContent = modalBody.shadowRoot.querySelector('div');
|
|
384
384
|
const innerContentComputed = getComputedStyle(innerContent);
|
|
@@ -386,7 +386,7 @@ const TableFooter = class {
|
|
|
386
386
|
this._el.style.bottom = `-${modalPaddingBottom}px`;
|
|
387
387
|
this._el.style.marginBottom = `-${modalPaddingBottom - 1}px`;
|
|
388
388
|
}
|
|
389
|
-
if (layout && !modal) {
|
|
389
|
+
if (layout && !modal && !this._hidden) {
|
|
390
390
|
const innerContent = layout.shadowRoot.querySelector('.content');
|
|
391
391
|
const innerContentComputed = getComputedStyle(innerContent);
|
|
392
392
|
const layoutPaddingBottom = Number.parseInt(innerContentComputed.paddingBottom, 10);
|
|
@@ -10149,13 +10149,13 @@ const TableRow = class {
|
|
|
10149
10149
|
*/
|
|
10150
10150
|
isLast = false;
|
|
10151
10151
|
render() {
|
|
10152
|
-
return (h(ThemedHost, { key: '
|
|
10152
|
+
return (h(ThemedHost, { key: '0d120affd1a9979fee9871f4185e5be8128235e8' }, h("div", { key: '5686db4396a01a88c3962bc6a821c0e1552c13f1', class: 'flex flex-col' }, h("div", { key: '71e6470049acc4b3acebbb478ebd8fba5f36d688', class: row({
|
|
10153
10153
|
variant: this.variant,
|
|
10154
10154
|
enableHover: this.enableHover,
|
|
10155
10155
|
checked: this.checked,
|
|
10156
|
-
}) }, h("div", { key: '
|
|
10156
|
+
}) }, h("div", { key: 'e2d1a4259be84eca424d30d53a88a7a8cdb2336c', class: content({
|
|
10157
10157
|
variant: this.variant,
|
|
10158
|
-
}) }, h("slot", { key: '
|
|
10158
|
+
}) }, h("slot", { key: '7457daaf7e4fd01b21c68d048ff9dfed9387b507' }), h("div", { key: '780993e2462abeb10d1c56a15bd29bc77348bcdd', class: actions() }, h("slot", { key: 'e2ff2aa57ae3754fe904cde800a0dc6d9da192ed', name: 'actions' })))), !asBoolean(this.isLast) && this.variant !== 'secondary' && (h("p-divider", { key: '5a76c8dca2fa8bdfd6476362d83f30b0832d1762' })))));
|
|
10159
10159
|
}
|
|
10160
10160
|
};
|
|
10161
10161
|
TableRow.style = tableRowComponentCss();
|
|
@@ -382,8 +382,8 @@ const Field = class {
|
|
|
382
382
|
}
|
|
383
383
|
render() {
|
|
384
384
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
385
|
-
return (h(ThemedHost, { key: '
|
|
386
|
-
(!!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: '
|
|
385
|
+
return (h(ThemedHost, { key: 'd957c15ac5c4fd277a79716e8f7644be5b7e413e' }, h("p-field-container", { key: '4ec3f19bf0e3336b652add8730974d890deaf1bc', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
386
|
+
(!!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: '74c5bf652fa519804b802cb930b764a62a7991aa', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: 'f63069722b80fab8c262646787de0cfda2479def', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '3045c36ea36e2d9b81b1fe31955237162ba50c62', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'a9fe88d52f8f71ad09d1e2dbd3d0d42818ae64e9', name: 'error', slot: 'error' })), h("div", { key: '805fc95477292dcf8404eb5f206bbfd576431dd2', class: field({
|
|
387
387
|
error: !!this.error?.length,
|
|
388
388
|
disabled: asBoolean(this.disabled),
|
|
389
389
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -394,7 +394,7 @@ const Field = class {
|
|
|
394
394
|
? `${this.value}`
|
|
395
395
|
: undefined }, (this.error?.length ||
|
|
396
396
|
prefix ||
|
|
397
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
397
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '41d8592d1683e02c23742e3fcae5f198e5dac18e', class: prefixAndSuffix({
|
|
398
398
|
variant: this.variant,
|
|
399
399
|
error: !!this.error?.length,
|
|
400
400
|
disabled: asBoolean(this.disabled),
|
|
@@ -404,7 +404,7 @@ const Field = class {
|
|
|
404
404
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
405
405
|
this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
406
406
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
407
|
-
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
407
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '696e95bfe4ee145a02e4de13f697a01b62bb2678', class: prefixAndSuffix({
|
|
408
408
|
variant: this.variant,
|
|
409
409
|
error: !!this.error?.length,
|
|
410
410
|
disabled: asBoolean(this.disabled),
|
|
@@ -83,17 +83,17 @@ const Label = class {
|
|
|
83
83
|
*/
|
|
84
84
|
keepMobileContent = false;
|
|
85
85
|
render() {
|
|
86
|
-
return (h(ThemedHost, { key: '
|
|
86
|
+
return (h(ThemedHost, { key: '11f93a805b545dbdf3d8f7f07d2ba9d9b72f9465' }, h("div", { key: '1947c9e35ae05a8ffda7d35c4f72edf8edd6eb78', class: label({
|
|
87
87
|
variant: this.variant,
|
|
88
88
|
iconOnly: this.iconOnly,
|
|
89
89
|
keepMobileContent: this.keepMobileContent,
|
|
90
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
90
|
+
}) }, this.icon && (h("p-icon", { key: '5531821ffd0f42ab9ed8c6eca76e8f1537bcb976', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (h("div", { key: 'acefad061d0e66e1404fb3847b0853069179b306', class: cn(`
|
|
91
91
|
flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm
|
|
92
92
|
font-medium
|
|
93
93
|
`, {
|
|
94
94
|
hidden: !this.keepMobileContent,
|
|
95
95
|
'desktop-xs:block': !this.keepMobileContent,
|
|
96
|
-
}) }, h("slot", { key: '
|
|
96
|
+
}) }, h("slot", { key: 'b96c6e958fb8786e078fa9cbdeb1daac494ef9f3' }))))));
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
Label.style = labelComponentCss();
|
|
@@ -22,10 +22,10 @@ const Listing = class {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (h("div", { key: '
|
|
25
|
+
return (h("div", { key: 'bd62a9cb5f45d0be1bf09636a4d576a70a4350fb', class: cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
26
26
|
'opacity-100': this._generatedOnce,
|
|
27
27
|
'opacity-0': !this._generatedOnce,
|
|
28
|
-
}) }, h("slot", { key: '
|
|
28
|
+
}) }, h("slot", { key: 'c762354f8f1f0023a6a73bff00fc5333431c8226', onSlotchange: () => this._generateLinesOnce() })));
|
|
29
29
|
}
|
|
30
30
|
_generateLinesOnce() {
|
|
31
31
|
if (this._generateTimeout) {
|
|
@@ -69,7 +69,7 @@ const Navbar = class {
|
|
|
69
69
|
}
|
|
70
70
|
_show = false;
|
|
71
71
|
render() {
|
|
72
|
-
return (h(ThemedHost, { key: '
|
|
72
|
+
return (h(ThemedHost, { key: '814b399715eba8a9f4c81ed550431b8b3cc29d39' }, h("p-backdrop", { key: '59c99e5c8ce0dbacae386da8ceb4a7a23b4778bd', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '815fcb1b40cfdbe3a4bd47676b374254073254df', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: 'a078f18dcc8885db9bd3661cc227adccaf30b8c1', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, h("p-button", { key: 'be1fbb0ee3d1455f4af3b5399a52c38a760ddb1f', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), h("div", { key: 'c4b1d03bb1c5fd109b99e3d587873b3f47ab1350', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, h("slot", { key: 'a981dbc4d887d420cb8b5c7c69fee4795cb07272', name: 'company' })), h("div", { key: '035880f4bb9d321c3d4f9d5fb6df34191ba1be13', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, h("slot", { key: '0d75492d278db82db0a62a4717c94df59a02349c', name: 'content' })), h("div", { key: '66e0a56030477a2e3c8b1706f698114e85b88fe6', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, h("slot", { key: '7ad2e2db299e914b8977f8c300d636d317c06741', name: 'user' }))), h("div", { key: '70be960e812e2b4904a3045193ca16fc2391e4a6', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '19b70f87d40558f633d5d9d8b42b60ba4c999826', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), h("slot", { key: 'c980989054dc51e2e54bf5d032895e297742fe61', name: 'topbar' }))));
|
|
73
73
|
}
|
|
74
74
|
handleCloseNavbar() {
|
|
75
75
|
this._show = false;
|
|
@@ -96,13 +96,13 @@ const NavigationItem = class {
|
|
|
96
96
|
render() {
|
|
97
97
|
const TagType = this.as;
|
|
98
98
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
99
|
-
return (h(ThemedHost, { key: '
|
|
99
|
+
return (h(ThemedHost, { key: 'f683b2979f9fde20b6e37ba7f3460fd052cce426', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '8f9b4557b535d893375bcbe9108a618aff26974e', class: navigationItem({
|
|
100
100
|
icon: !!this.icon,
|
|
101
101
|
active,
|
|
102
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
102
|
+
}), href: this.href, target: this.target }, h("div", { key: '6a32cd63b465492becb679ba08175e79a9c053c8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '5fd49857c3f424479731379311ee426d2bf9b79e', variant: this.icon })), h("span", { key: '8d1527282d584b49e7990455e6bba80debd48cd5', class: cn({
|
|
103
103
|
'has-counter': !!this.counter,
|
|
104
104
|
'w-full': this.applyFullWidth,
|
|
105
|
-
}) }, h("slot", { key: '
|
|
105
|
+
}) }, h("slot", { key: '6b9480c94455eeb524a029f21794fc89cb31c857' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '7677e25cb31c5f98bbe70b05e4ca95c518ab696c' }, this.counter)), !!this.loading && h("p-loader", { key: 'c006a2604a54309028adda2d3aaff26e1d0acd3c', class: 'ml-auto' }))));
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
108
|
NavigationItem.style = navigationItemComponentCss();
|
|
@@ -13,7 +13,7 @@ const NavigationSection = class {
|
|
|
13
13
|
*/
|
|
14
14
|
header;
|
|
15
15
|
render() {
|
|
16
|
-
return (h(ThemedHost, { key: '
|
|
16
|
+
return (h(ThemedHost, { key: '8fb1c4a553d9c4a5326c1692f50913be4d9865dc', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: 'e5d53c6cc8c05cfb0a0566b94ceebe1a894f77b3' }, this.header)), h("div", { key: 'a29814e605c46668e89773b1e7d3540aabd8c3ae', class: 'flex flex-col' }, h("slot", { key: '683d1571c171719465093efc4d6c9d7dcb3ddeb5' }))));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
19
|
NavigationSection.style = navigationSectionComponentCss();
|
|
@@ -76,12 +76,12 @@ const Pagination = class {
|
|
|
76
76
|
_hasPaginationPages = true;
|
|
77
77
|
render() {
|
|
78
78
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
79
|
-
return (h(ThemedHost, { key: '
|
|
79
|
+
return (h(ThemedHost, { key: '29ed189925a9e93e1939cfd66cf91915a5b8474d' }, h("div", { key: '2705a46004eb47c6cbbf6dfa448ae69a6dfc96dc', class: pagination$1({
|
|
80
80
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
81
81
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
82
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
82
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: 'bb6985dd638fea4e904aae04ba70edc7d94b3c52' }, h("p-pagination-size", { key: '730a4c91d7b3d8d0e2c57dc5e120222daef8b3c4', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
83
83
|
this.hideOnSinglePage &&
|
|
84
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
84
|
+
this._hasPaginationPages && (h("p-divider", { key: '1496283b26ea9d0801e94bd8dc3987a6dc14480f', 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: '5aaf4021a8b4166bbb8a50b0e6127af1fc0995f7', hideOnSinglePage: this.hideOnSinglePage, page: this.page, pageSize: this.pageSize, total: this.total, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
|
|
85
85
|
this._hasPaginationPages = detail > 1;
|
|
86
86
|
this.pagesChange.emit(detail);
|
|
87
87
|
} })))));
|
|
@@ -33,7 +33,7 @@ const Profile = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const content = this._getContent();
|
|
36
|
-
return (h(ThemedHost, { key: '
|
|
36
|
+
return (h(ThemedHost, { key: 'ca4c5879a59946cdbbab9a802fbf62547194aaa9' }, 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)));
|
|
37
37
|
}
|
|
38
38
|
slotchange() {
|
|
39
39
|
this._checkDropdownSlot();
|
|
@@ -31,13 +31,13 @@ const Range = class {
|
|
|
31
31
|
valueChange;
|
|
32
32
|
render() {
|
|
33
33
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
34
|
-
return (h(ThemedHost, { key: '
|
|
34
|
+
return (h(ThemedHost, { key: 'ae78cbe140c926f4c15da133c99dd2b84ff1060f' }, h("div", { key: '27a1f144fa8c1fa7c62ffb9b6300ce4f7b5d032c', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, h("p-icon", { key: '353b493c7deb2a8de7b461dd5e78bf7af41ffbd2', variant: 'minus' }), h("div", { key: 'afb0b67c052ef23f0a85c5ed2b4286f3769114f2', class: 'relative h-6 flex-1' }, h("input", { key: '664649a633ea007d101dd7ef9a5dc528cd503bce', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
|
|
35
35
|
const value = ev.target.value;
|
|
36
36
|
this.value = Number.parseFloat(value);
|
|
37
37
|
this.valueChange.emit(value);
|
|
38
|
-
} }), h("div", { key: '
|
|
38
|
+
} }), h("div", { key: '0bea7f03b87ab00d74780796f00f3eda90bc1b96', class: '\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
|
|
39
39
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
40
|
-
} })), h("p-icon", { key: '
|
|
40
|
+
} })), h("p-icon", { key: '8136e15955e461ec30c3bb8d83cabbd80c8089f2', variant: 'plus' }))));
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
Range.style = rangeComponentCss();
|
|
@@ -347,8 +347,8 @@ const Select = class {
|
|
|
347
347
|
if (this.error?.length) {
|
|
348
348
|
buttonIcon = 'warning';
|
|
349
349
|
}
|
|
350
|
-
return (h(ThemedHost, { key: '
|
|
351
|
-
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '
|
|
350
|
+
return (h(ThemedHost, { key: 'c72782f726a393fbf065df5c19603b8513b992bd' }, h("p-field-container", { key: '5414460d0eba2693c6d70175cd69df054bcfe01e', error: this.error, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, label: this.label, prefix: this.prefix, required: this.required, showOptional: this.showOptional, variant: 'write' }, h("p-dropdown", { key: '1763f1babda4a931aaa46640f46c449ce8bb254e', applyChevron: false, applyFullWidth: true, applyMaxWidth: false, "disable-trigger-click": this.disabled, insideClick: true, manual: true, manualChevron: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, slot: 'content', strategy: this.strategy, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-button", { key: '6fb109a52eb65b8caa0d24adf8eaf2c2e6202ef4', active: this._showDropdown, chevron: this.showChevron ? (this._showDropdown ? 'up' : 'down') : false, class: 'w-full', error: !!this.error?.length, icon: buttonIcon, iconClass: this.applyClassOnSelectedItem &&
|
|
351
|
+
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, h("div", { key: '1c9c421e23b7b3ee13f7871cc31fd106baa7c392', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue)), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()))));
|
|
352
352
|
}
|
|
353
353
|
documentClickHandler(event) {
|
|
354
354
|
if (!this._showDropdown || childOfComposed(event, this._el)) {
|
|
@@ -70,7 +70,7 @@ const Toast = class {
|
|
|
70
70
|
*/
|
|
71
71
|
action;
|
|
72
72
|
render() {
|
|
73
|
-
return (h(ThemedHost, { key: '
|
|
73
|
+
return (h(ThemedHost, { key: '8d36846b85c4e661ccd81533ac05eb6a651bedb6' }, h("div", { key: '5a60824f6868fa38893b7e451850f6e181caa95c', 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: 'c3ebd2eecb1f3378176653bfe7ae96bd9b7b4b13', class: indicator({ variant: this.variant }) }), h("div", { key: '89ce39565adb3958a12551d5021f7ab86c9babb5', class: content() }, h("div", { key: '9c833a877f81b34c53ff73378b799fad436e76fd', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '7ec87f298e4dda01ff689f877d436c726abef8a5', 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: '08c6c263d6ce9915b055fc24e4b0aca7d2b7bfc2', 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: '111084df846674e17f00ec8c7902a099f05a1e58', 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: '660342af8a7f33cdd2495cf03fd54fe8923babc8', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
74
74
|
}
|
|
75
75
|
_onClick() {
|
|
76
76
|
if (this.enableAction) {
|
package/dist/index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" name="viewport"> <title>Stencil Component Starter</title> <link rel="modulepreload" href="/build/p-
|
|
1
|
+
<!doctype html><html dir="ltr" lang="en"><head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=5.0" name="viewport"> <title>Stencil Component Starter</title> <link rel="modulepreload" href="/build/p-b4fcc93e.js"><link rel="modulepreload" href="/build/p-6XOzWrsN.js"><link rel="modulepreload" href="/build/p-C5CTp9IA.js"><link rel="modulepreload" href="/build/p-CBWjHURv.js"><link rel="modulepreload" href="/build/p-CSySY6aC.js"><link rel="modulepreload" href="/build/p-ChV9xqsO.js"><link rel="modulepreload" href="/build/p-DPmts3W0.js"><link rel="modulepreload" href="/build/p-xs4N_Y-0.js"><link rel="modulepreload" href="/build/p-yFtRjnrU.js"><script type="module" src="/build/p-b4fcc93e.js" data-stencil data-resources-url="/build/" data-stencil-namespace="paperless"></script> <script nomodule="" src="/build/paperless.js" data-stencil></script> <link href="/build/p-ea6cc0bf.css" rel="stylesheet"> </head> <body> <p-button>Test</p-button> <script data-build="2026-02-24T12:11:04">
|
|
2
2
|
if ('serviceWorker' in navigator && location.protocol !== 'file:') {
|
|
3
3
|
window.addEventListener('load', function() {
|
|
4
4
|
navigator.serviceWorker.register('/sw.js')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a,h as r}from"./p-yFtRjnrU.js";import{T as e}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const o=class{constructor(r){t(this,r),this.valueChange=a(this,"valueChange",3)}min=0;max=100;step=.5;value=0;valueChange;render(){const t=Math.round(this.value/(this.max-this.min)*100);return r(e,{key:"
|
|
1
|
+
import{r as t,a,h as r}from"./p-yFtRjnrU.js";import{T as e}from"./p-CSySY6aC.js";import"./p-6XOzWrsN.js";const o=class{constructor(r){t(this,r),this.valueChange=a(this,"valueChange",3)}min=0;max=100;step=.5;value=0;valueChange;render(){const t=Math.round(this.value/(this.max-this.min)*100);return r(e,{key:"ae78cbe140c926f4c15da133c99dd2b84ff1060f"},r("div",{key:"27a1f144fa8c1fa7c62ffb9b6300ce4f7b5d032c",class:"\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n "},r("p-icon",{key:"353b493c7deb2a8de7b461dd5e78bf7af41ffbd2",variant:"minus"}),r("div",{key:"afb0b67c052ef23f0a85c5ed2b4286f3769114f2",class:"relative h-6 flex-1"},r("input",{key:"664649a633ea007d101dd7ef9a5dc528cd503bce",max:this.max,min:this.min,step:this.step,type:"range",value:this.value,onInput:t=>{const a=t.target.value;this.value=Number.parseFloat(a),this.valueChange.emit(a)}}),r("div",{key:"0bea7f03b87ab00d74780796f00f3eda90bc1b96",class:"\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ",style:{width:`calc(${t}% - (1rem * ${t} / 100))`}})),r("p-icon",{key:"8136e15955e461ec30c3bb8d83cabbd80c8089f2",variant:"plus"})))}};o.style=".m-0{margin:0}.mt-\\[calc\\(\\(0\\.5rem-1px\\)\\*-1\\)\\]{margin-top:calc(-.5rem + 1px)}.h-4{height:1rem}.h-6{height:1.5rem}.h-\\[2px\\]{height:2px}.w-4{width:1rem}.w-full{width:100%}.appearance-none{appearance:none}.rounded-full{border-radius:9999px}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1))}*{box-sizing:border-box}:host{input{appearance:none;background-color:transparent;height:1.5rem;margin:0;width:100%}input::-webkit-slider-runnable-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-webkit-slider-runnable-track{background-color:hsla(0,0%,100%,.15)}input::-moz-range-track{--tw-bg-opacity:1;background-color:rgb(227 236 254/var(--tw-bg-opacity,1));height:2px}input:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input:where([data-theme=dark],[data-theme=dark] *)::-moz-range-track{background-color:hsla(0,0%,100%,.15)}input::-webkit-slider-thumb{--tw-bg-opacity:1;appearance:none;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;margin-top:calc(-.5rem + 1px);width:1rem}input::-webkit-slider-thumb:hover{cursor:grab}input::-webkit-slider-thumb:active,input::-webkit-slider-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-webkit-slider-thumb:active{cursor:grabbing}input::-moz-range-thumb{--tw-bg-opacity:1;background-color:rgb(82 138 250/var(--tw-bg-opacity,1));border-radius:9999px;border-width:0;height:1rem;width:1rem}input::-moz-range-thumb:hover{cursor:grab}input::-moz-range-thumb:active,input::-moz-range-thumb:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}input::-moz-range-thumb:active{cursor:grabbing}}.hover\\:cursor-grab:hover{cursor:grab}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(47 111 240/var(--tw-bg-opacity,1))}.active\\:cursor-grabbing:active{cursor:grabbing}.static{position:static}.absolute{position:absolute}.relative{position:relative}.left-0{left:0}.top-1\\/2{top:50%}.flex{display:flex}.w-inherit{width:inherit}.flex-1{flex:1 1 0%}.-translate-y-1\\/2{--tw-translate-y:-50%}.-translate-y-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.items-center{align-items:center}.gap-2{gap:.5rem}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.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\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{o as p_range}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,a as e,d as r,h as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{a as s}from"./p-C5CTp9IA.js";import{c as n}from"./p-xs4N_Y-0.js";import{n as d}from"./p-D9kEjsvZ.js";import{f as h,g as l}from"./p-CwQG70_4.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const c=i(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),m=i(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),w=i(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),p=class{constructor(r){t(this,r),this.valueChange=e(this,"valueChange",3),this.inputRefChange=e(this,"inputRefChange",7),this.add=e(this,"add",3),this.enter=e(this,"enter",3),r.$hostElement$["s-ei"]?this._internals=r.$hostElement$["s-ei"]:(this._internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this._internals)}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return r(this)}_focused=!1;_nonce=d(5);_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus()}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:i,hasLabelSlot:d,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:m}=this._getSlotInfo();return a(o,{key:"d309322e4a2a9e73d7e20cb5e585eba64d3af95f"},a("p-field-container",{key:"85327bdb7a5aa7e071c4024e3d490a6b9759b184",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},d&&a("slot",{key:"4cbdc7b148e94564fc0b986a7780180bd8813d58",name:"label",slot:"label"}),i&&a("slot",{key:"61a1b3cb45df2792fbf51aa6e91d11b10e1b72e6",name:"header",slot:"header"}),h&&a("slot",{key:"d208829c7f4629f7390236d3a8c990d47d91f66b",name:"helper",slot:"helper"}),l&&a("slot",{key:"e4bd3ef86143630c0ebe9fe006aea4b7be2ca10f",name:"error",slot:"error"}),a("div",{key:"ea260caef724543db24f04bb5861ea2a138c1574",class:c({error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||m?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&a("div",{key:"d0e3d37f5fc3e7676cc3bc7f622733504169ddcf",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(m,t),(r||this.icon&&"end"===this.iconPosition)&&a("div",{key:"f479afb28bbd5ba74b78deaa7b9daf1ef543fa27",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),i=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?a("slot",{name:"prefix"}):this.prefix,h=i?a("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:i,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?a("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?a("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return a("slot",{name:"input"});const r={id:e,class:m({disabled:s(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let i=this.properties??{};return"string"==typeof i&&(i=JSON.parse(this.properties)),"textarea"===this.type?a("textarea",{ref:t=>this._setInputRef(t),...r,...i}):a("input",{ref:t=>this._setInputRef(t),type:this.type,...r,...i})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}};p.style="*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.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\\: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-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.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\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";const b=i(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),x=class{constructor(r){t(this,r),this.focus=e(this,"focus",7)}_defaultOptionalTemplate=()=>h(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return r(this)}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:t,hasErrorSlot:e,helper:r,label:i,errorAndErrorIsNotBoolean:d}=this._getSlotInfo();let h=a("slot",{key:"e795f4695850003f41a5bfb815893affee00e8de",name:"content",slot:"trigger"});return this.loading&&(h=a("p-loader",{key:"1f65c3ca60cefbf0740c9d7235a18a3e69f1c788",class:b({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),a(o,{key:"9b4ab7a1d59cead07a2065b0d6bc72be41d24287"},a("label",{key:"ac31d16bdd75b4b236479638efd367f4771627d1",class:n("flex w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},a("div",{key:"512c7c3162d9a40483f5d43d7fbea5635c40b45d",class:n("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!i?.length||!!r?.length)&&a("div",{key:"77b5887681e6537714b0352a02873a56ab22e304",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},a("span",{key:"786e241b3537a05c4bf12f58333d5c10065879c3",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},i),r&&a("p-helper",{key:"d14700f7a78349ffb1de0a39bcb92ca9833e7f3b",class:"flex flex-shrink-0",placement:"top"},r)),(!s(this.required)&&s(this.showOptional)||t)&&a("div",{key:"a3f63057ac68b62a68cf4d0b31b09039817ea87f",class:"flex items-center gap-1"},!s(this.required)&&s(this.showOptional)&&"write"===this.variant&&a("span",{key:"6e98ac54bcabfe7b4481b1745b7c25fbc0c1e717",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),t&&a("slot",{key:"e4b5a07a66a036c619d0a788c959a3d80af2f58c",name:"header"}))),a("p-tooltip",{key:"d482091d838534d3f3e3f177c9f5ccd605e8e519",class:n({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:d&&s(this.forceShowTooltip,!1),variant:"error"},e&&a("slot",{key:"45fc720b8771ffca3ce381fcc98c162947aa1e71",name:"error",slot:"content"}),h)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="header"]'),i=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:t,hasLabelSlot:e,hasHeaderSlot:r,hasErrorSlot:i,helper:t?a("slot",{name:"helper"}):this.helper,label:e?a("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:i||this.error&&"string"==typeof this.error&&"true"!==this.error}}};x.style="*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none}.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\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.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\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";const f=class{constructor(e){t(this,e)}strategy="absolute";placement="top";render(){return a(o,{key:"d7f07b4f232bb43ce0988ea8533353a8d193e7bf"},a("p-tooltip",{key:"df76c8696c9621a6ea5431c5d256eded55de0b57",class:"flex",placement:this.placement,strategy:this.strategy},a("p-icon",{key:"f582de019e9a60ebe2296405354cb48ebfc4ca1f",class:"\n cursor-pointer text-storm-300\n hover:text-storm-500\n dark:text-hurricane-300\n dark:hover:text-hurricane-200\n ",size:"sm",slot:"trigger",variant:"question-circle"}),a("div",{key:"1863361d1ec8867f5f403d823290273b77571516",slot:"content"},a("slot",{key:"d876213ee32eb63e77c9074391f8f31fd42ddd69"}))))}};f.style=".inline-flex{display:inline-flex}.h-\\[0\\.875rem\\]{height:.875rem}.w-\\[0\\.875rem\\]{width:.875rem}*{box-sizing:border-box}:host{display:inline-flex;height:.875rem;width:.875rem}.static{position:static}.absolute{position:absolute}.flex{display:flex}.cursor-pointer{cursor:pointer}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{p as p_field,x as p_field_container,f as p_helper}
|
|
1
|
+
import{r as t,a as e,d as r,h as a}from"./p-yFtRjnrU.js";import{c as i}from"./p-CBWjHURv.js";import{T as o}from"./p-CSySY6aC.js";import{a as s}from"./p-C5CTp9IA.js";import{c as n}from"./p-xs4N_Y-0.js";import{n as d}from"./p-D9kEjsvZ.js";import{f as h,g as l}from"./p-CwQG70_4.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const c=i(["flex gap-2","w-inherit","rounded-lg border-solid","relative"],{variants:{variant:{read:"flex-wrap items-start hyphens-auto break-normal border-0 leading-6",write:"border px-2"},size:{sm:null,base:null},disabled:{false:null,true:null},focused:{false:null,true:null},error:{false:null,true:null},isTextarea:{false:null,true:"items-start"}},compoundVariants:[{size:"sm",variant:"write",isTextarea:!1,class:"h-6"},{size:"base",variant:"write",isTextarea:!1,class:"h-8"},{size:"sm",variant:"read",class:"min-h-4 text-xs"},{size:"base",variant:"read",class:"min-h-5 text-sm"},{variant:"write",focused:!1,error:!1,class:"\n border-storm-100\n dark:border-hurricane-400\n "},{variant:"write",disabled:!1,focused:!0,error:!1,class:"\n border-indigo-600 ring ring-indigo-100\n selection:bg-indigo-500\n dark:ring-0\n "},{variant:"write",disabled:!1,class:"\n bg-white\n dark:bg-hurricane-500\n "},{variant:"write",disabled:!0,class:"\n cursor-not-allowed bg-white-600\n dark:border-hurricane-500 dark:bg-hurricane-600\n "},{disabled:!1,error:!0,class:"border-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"\n ring ring-negative-red-50\n selection:bg-negative-red-50\n dark:ring-0\n "}]}),m=i(["\n text-sm\n placeholder:text-sm placeholder:text-storm-500/40\n dark:placeholder:text-hurricane-200\n ","min-w-0 flex-1 border-none bg-transparent p-0","\n outline-none\n focus:outline-none\n ","font-geist"],{variants:{isTextarea:{false:"h-full",true:"mt-1"},disabled:{false:null,true:"cursor-not-allowed"},error:{false:"\n text-storm-500\n dark:text-white\n ",true:"text-negative-red-500"}}}),w=i(["flex flex-shrink-0 items-center justify-center text-center"],{variants:{variant:{read:"leading-6",write:null},disabled:{false:null,true:"\n text-storm-100\n dark:text-hurricane-400\n "},focused:{false:null,true:null},error:{false:null,true:null},isText:{false:null,true:"text-sm"},isTextarea:{false:null,true:"mt-2"}},compoundVariants:[{disabled:!1,focused:!1,error:!1,class:"\n text-storm-300\n dark:text-hurricane-200\n "},{disabled:!1,focused:!0,error:!1,class:"\n text-storm-500\n dark:text-white\n "},{disabled:!1,focused:!1,error:!0,class:"text-negative-red-500"},{disabled:!1,focused:!0,error:!0,class:"text-negative-red-800"}]}),p=class{constructor(r){t(this,r),this.valueChange=e(this,"valueChange",3),this.inputRefChange=e(this,"inputRefChange",7),this.add=e(this,"add",3),this.enter=e(this,"enter",3),r.$hostElement$["s-ei"]?this._internals=r.$hostElement$["s-ei"]:(this._internals=r.$hostElement$.attachInternals(),r.$hostElement$["s-ei"]=this._internals)}align="start";variant="write";id;size="base";type="text";properties={};prefix;suffix;icon;iconFlip;iconRotate;iconPosition="start";value;label;loading=!1;placeholder;helper;required=!0;showOptional=!0;showAddOnEmpty=!1;addText="Add";autofocus=!1;error;autoShowError=!0;errorPlacement;disabled=!1;focused=!1;forceShowTooltip=!1;selectAllOnFocus=!0;focusMethod="focus";optionalTemplate;valueChange;inputRefChange;add;enter;get _el(){return r(this)}_focused=!1;_nonce=d(5);_internals;_inputRef;_lastValue;componentDidLoad(){this._checkAutoFocus()}formResetCallback(){this.value=null,this.valueChange.emit(null)}formDisabledCallback(t){this._internals.form&&(this.disabled=t)}render(){const{id:t,prefix:e,suffix:r,hasHeaderSlot:i,hasLabelSlot:d,hasHelperSlot:h,hasErrorSlot:l,hasValueSlot:m}=this._getSlotInfo();return a(o,{key:"d957c15ac5c4fd277a79716e8f7644be5b7e413e"},a("p-field-container",{key:"4ec3f19bf0e3336b652add8730974d890deaf1bc",align:this.align,error:this.error,forceShowTooltip:!!this.error?.length&&!this._focused&&this.autoShowError||!!this.error?.length&&this.forceShowTooltip,helper:this.helper,id:t,label:this.label,loading:this.loading,loadingSize:this.size,required:this.required,showOptional:this.showOptional,variant:this.variant},d&&a("slot",{key:"74c5bf652fa519804b802cb930b764a62a7991aa",name:"label",slot:"label"}),i&&a("slot",{key:"f63069722b80fab8c262646787de0cfda2479def",name:"header",slot:"header"}),h&&a("slot",{key:"3045c36ea36e2d9b81b1fe31955237162ba50c62",name:"helper",slot:"helper"}),l&&a("slot",{key:"a9fe88d52f8f71ad09d1e2dbd3d0d42818ae64e9",name:"error",slot:"error"}),a("div",{key:"805fc95477292dcf8404eb5f206bbfd576431dd2",class:c({error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,size:this.size,variant:this.variant,isTextarea:"textarea"===this.type}),slot:"content",title:"read"!==this.variant||m?void 0:`${this.value}`},(this.error?.length||e||this.icon&&"start"===this.iconPosition)&&a("div",{key:"41d8592d1683e02c23742e3fcae5f198e5dac18e",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"start"===this.iconPosition||this.error?.length?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.error?.length?"warning":this.icon}):e),this._getContent(m,t),(r||this.icon&&"end"===this.iconPosition)&&a("div",{key:"696e95bfe4ee145a02e4de13f697a01b62bb2678",class:w({variant:this.variant,error:!!this.error?.length,disabled:s(this.disabled),focused:s(this.focused)||this._focused,isText:"string"==typeof r,isTextarea:"textarea"===this.type}),onClick:()=>this._focusInput()},this.icon&&"end"===this.iconPosition?a("p-icon",{class:n("flex",{"mt-1":"read"===this.variant&&"base"===this.size}),flip:this.iconFlip,rotate:this.iconRotate,variant:this.icon}):r))))}watchvalue(t){this._inputRef&&t!==this._lastValue&&(this._lastValue=t,this._inputRef.value=t)}handleFocusIn(){this.disabled||(this._focused=!0,this._selectAll())}handleFocusOut(){this.disabled||(this._focused=!1)}handleKeyup(t){this.disabled?t.preventDefault():this._internals?.form&&"textarea"!==this.type&&"Enter"===t.key&&this._internals.form.requestSubmit()}handleKeydown(t){this.disabled||"Enter"===t.key&&this.enter.emit(this.value)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="prefix"]'),i=!!this._el.querySelector(':scope > [slot="suffix"]'),o=!!this._el.querySelector(':scope > [slot="header"]'),s=!!this._el.querySelector(':scope > [slot="error"]'),n=!!this._el.querySelector(':scope > [slot="value"]'),d=r?a("slot",{name:"prefix"}):this.prefix,h=i?a("slot",{name:"suffix"}):this.suffix,l=this.error&&"string"==typeof this.error&&"true"!==this.error;return{id:this.id?.length?this.id:this._nonce,hasHelperSlot:t,hasLabelSlot:e,hasPrefixSlot:r,hasSuffixSlot:i,hasHeaderSlot:o,hasErrorSlot:s,hasValueSlot:n,prefix:d,suffix:h,errorAndErrorIsNotBoolean:l}}_getContent(t=!1,e){if("read"===this.variant)return t?a("slot",{name:"value"}):this.value&&`${this.value}`.length>0?this.value:this.showAddOnEmpty?a("p-button",{icon:"plus",size:"sm",variant:"text",onClick:()=>this.add.emit()},this.addText):"—";if("slot"===this.type)return a("slot",{name:"input"});const r={id:e,class:m({disabled:s(this.disabled),isTextarea:"textarea"===this.type,error:!!this.error?.length}),value:this.value,placeholder:this.placeholder,disabled:this.disabled,onInput:t=>this._valueChange(t)};let i=this.properties??{};return"string"==typeof i&&(i=JSON.parse(this.properties)),"textarea"===this.type?a("textarea",{ref:t=>this._setInputRef(t),...r,...i}):a("input",{ref:t=>this._setInputRef(t),type:this.type,...r,...i})}_setInputRef(t){this._inputRef=t,this.inputRefChange.emit(t)}_focusInput(){this._inputRef?this._inputRef.focus():this._el.querySelector(':scope > [slot="input"]')[this.focusMethod]()}_selectAll(){this._inputRef&&this.selectAllOnFocus&&this._inputRef.select()}_valueChange(t){t.stopPropagation();const e=t.originalTarget??t.target,r=e.value;this._lastValue=r,this.value=r,this.valueChange.emit(r),this._internals.setFormValue(e.value)}_checkAutoFocus(){this.autofocus&&(this._inputRef?this._focusInput():setTimeout((()=>this._checkAutoFocus()),100))}static get formAssociated(){return!0}static get watchers(){return{value:[{watchvalue:0}]}}};p.style="*{box-sizing:border-box}:host{input[type=number]{-moz-appearance:textfield}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;display:none}}.static{position:static}.relative{position:relative}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.flex{display:flex}.h-6{height:1.5rem}.h-8{height:2rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-5{min-height:1.25rem}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.cursor-not-allowed{cursor:not-allowed}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.gap-2{gap:.5rem}.hyphens-auto{hyphens:auto}.break-normal{overflow-wrap:normal;word-break:normal}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-0{border-width:0}.border-solid{border-style:solid}.border-none{border-style:none}.border-indigo-600{--tw-border-opacity:1;border-color:rgb(82 138 250/var(--tw-border-opacity,1))}.border-negative-red-500{--tw-border-opacity:1;border-color:rgb(230 30 30/var(--tw-border-opacity,1))}.border-storm-100{--tw-border-opacity:1;border-color:rgb(209 210 212/var(--tw-border-opacity,1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white-600{--tw-bg-opacity:1;background-color:rgb(250 250 250/var(--tw-bg-opacity,1))}.p-0{padding:0}.px-2{padding-left:.5rem;padding-right:.5rem}.text-center{text-align:center}.font-geist{font-family:Geist,serif}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.leading-6{line-height:1.5rem}.text-negative-red-500{--tw-text-opacity:1;color:rgb(230 30 30/var(--tw-text-opacity,1))}.text-negative-red-800{--tw-text-opacity:1;color:rgb(141 16 16/var(--tw-text-opacity,1))}.text-storm-100{--tw-text-opacity:1;color:rgb(209 210 212/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.outline-none{outline:2px solid transparent;outline-offset:2px}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-indigo-100{--tw-ring-opacity:1;--tw-ring-color:rgb(227 236 254/var(--tw-ring-opacity,1))}.ring-negative-red-50{--tw-ring-opacity:1;--tw-ring-color:rgb(253 237 237/var(--tw-ring-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.selection\\:bg-indigo-500 ::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50 ::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.selection\\:bg-indigo-500::selection{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.selection\\:bg-negative-red-50::selection{--tw-bg-opacity:1;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))}.placeholder\\:text-sm::placeholder{font-size:.875rem;line-height:1.25rem}.placeholder\\:text-storm-500\\/40::placeholder{color:rgba(24,30,41,.4)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.dark\\:border-hurricane-400:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.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\\: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-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where(:host([data-theme=dark]),:host([data-theme=dark]) *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:border-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(70 75 84/var(--tw-border-opacity,1))}.dark\\:border-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(54 60 70/var(--tw-border-opacity,1))}.dark\\:bg-hurricane-500:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(54 60 70/var(--tw-bg-opacity,1))}.dark\\:bg-hurricane-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(46 52 62/var(--tw-bg-opacity,1))}.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\\:text-hurricane-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:ring-0:where([data-theme=dark],[data-theme=dark] *){--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.dark\\:placeholder\\:text-hurricane-200:where([data-theme=dark],[data-theme=dark] *)::placeholder{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";const b=i(["w-full rounded-lg"],{variants:{variant:{read:null,write:null},size:{base:null,sm:null}},compoundVariants:[{variant:"read",size:"base",class:"h-5"},{variant:"read",size:"sm",class:"h-4"},{variant:"write",size:"base",class:"h-8"},{variant:"write",size:"sm",class:"h-6"}]}),x=class{constructor(r){t(this,r),this.focus=e(this,"focus",7)}_defaultOptionalTemplate=()=>h(this._locales.optional);id;align="start";label;loading=!1;loadingSize="base";variant;helper;required;showOptional=!0;error;errorPlacement;forceShowTooltip=!1;optionalTemplate=this._defaultOptionalTemplate;get _el(){return r(this)}focus;_locales={};componentWillLoad(){this._setLocales()}render(){const{hasHeaderSlot:t,hasErrorSlot:e,helper:r,label:i,errorAndErrorIsNotBoolean:d}=this._getSlotInfo();let h=a("slot",{key:"e795f4695850003f41a5bfb815893affee00e8de",name:"content",slot:"trigger"});return this.loading&&(h=a("p-loader",{key:"1f65c3ca60cefbf0740c9d7235a18a3e69f1c788",class:b({variant:this.variant,size:this.loadingSize}),slot:"trigger",variant:"ghost"})),a(o,{key:"9b4ab7a1d59cead07a2065b0d6bc72be41d24287"},a("label",{key:"ac31d16bdd75b4b236479638efd367f4771627d1",class:n("flex w-inherit flex-col gap-1",{"cursor-auto":"read"===this.variant}),htmlFor:this.id},a("div",{key:"512c7c3162d9a40483f5d43d7fbea5635c40b45d",class:n("\n flex items-end justify-between gap-1\n empty:hidden\n ",{"flex-row-reverse":"end"===this.align})},(!!i?.length||!!r?.length)&&a("div",{key:"77b5887681e6537714b0352a02873a56ab22e304",class:"flex min-w-0 gap-2",onClick:()=>this.focus.emit()},a("span",{key:"786e241b3537a05c4bf12f58333d5c10065879c3",class:"\n min-w-0 overflow-hidden text-ellipsis text-xs font-medium\n text-storm-300\n dark:text-hurricane-200\n "},i),r&&a("p-helper",{key:"d14700f7a78349ffb1de0a39bcb92ca9833e7f3b",class:"flex flex-shrink-0",placement:"top"},r)),(!s(this.required)&&s(this.showOptional)||t)&&a("div",{key:"a3f63057ac68b62a68cf4d0b31b09039817ea87f",class:"flex items-center gap-1"},!s(this.required)&&s(this.showOptional)&&"write"===this.variant&&a("span",{key:"6e98ac54bcabfe7b4481b1745b7c25fbc0c1e717",class:"\n text-xs font-medium text-storm-200\n dark:text-hurricane-300\n "},this.optionalTemplate()),t&&a("slot",{key:"e4b5a07a66a036c619d0a788c959a3d80af2f58c",name:"header"}))),a("p-tooltip",{key:"d482091d838534d3f3e3f177c9f5ccd605e8e519",class:n({"w-full":"write"===this.variant||this.loading,"ml-auto":"end"===this.align,"font-normal":"read"===this.variant,"text-storm-500 dark:text-white":"read"===this.variant}),content:this.error,enableUserInput:!1,placement:this.errorPlacement,show:d&&s(this.forceShowTooltip,!1),variant:"error"},e&&a("slot",{key:"45fc720b8771ffca3ce381fcc98c162947aa1e71",name:"error",slot:"content"}),h)))}async _setLocales(){this._locales=await l(this._el)}_getSlotInfo(){const t=!!this._el.querySelector(':scope > [slot="helper"]'),e=!!this._el.querySelector(':scope > [slot="label"]'),r=!!this._el.querySelector(':scope > [slot="header"]'),i=!!this._el.querySelector(':scope > [slot="error"]');return{hasHelperSlot:t,hasLabelSlot:e,hasHeaderSlot:r,hasErrorSlot:i,helper:t?a("slot",{name:"helper"}):this.helper,label:e?a("slot",{name:"label"}):this.label,errorAndErrorIsNotBoolean:i||this.error&&"string"==typeof this.error&&"true"!==this.error}}};x.style="*{box-sizing:border-box}.static{position:static}.ml-auto{margin-left:auto}.flex{display:flex}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.w-full{width:100%}.w-inherit{width:inherit}.min-w-0{min-width:0}.flex-shrink-0{flex-shrink:0}.cursor-auto{cursor:auto}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.rounded-lg{border-radius:.5rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-normal{font-weight:400}.text-storm-200{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.text-storm-500{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:96rem){.container{max-width:96rem}}@media (min-width:105rem){.container{max-width:105rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:160rem){.container{max-width:160rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.empty\\:hidden:empty{display:none}.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\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.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\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";const f=class{constructor(e){t(this,e)}strategy="absolute";placement="top";render(){return a(o,{key:"d7f07b4f232bb43ce0988ea8533353a8d193e7bf"},a("p-tooltip",{key:"df76c8696c9621a6ea5431c5d256eded55de0b57",class:"flex",placement:this.placement,strategy:this.strategy},a("p-icon",{key:"f582de019e9a60ebe2296405354cb48ebfc4ca1f",class:"\n cursor-pointer text-storm-300\n hover:text-storm-500\n dark:text-hurricane-300\n dark:hover:text-hurricane-200\n ",size:"sm",slot:"trigger",variant:"question-circle"}),a("div",{key:"1863361d1ec8867f5f403d823290273b77571516",slot:"content"},a("slot",{key:"d876213ee32eb63e77c9074391f8f31fd42ddd69"}))))}};f.style=".inline-flex{display:inline-flex}.h-\\[0\\.875rem\\]{height:.875rem}.w-\\[0\\.875rem\\]{width:.875rem}*{box-sizing:border-box}:host{display:inline-flex;height:.875rem;width:.875rem}.static{position:static}.absolute{position:absolute}.flex{display:flex}.cursor-pointer{cursor:pointer}.text-storm-300{--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.hover\\:text-storm-500:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where(:host([data-theme=dark]),:host([data-theme=dark]) *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-hurricane-300:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(116 120 127/var(--tw-text-opacity,1))}.dark\\:hover\\:text-hurricane-200:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}";export{p as p_field,x as p_field_container,f as p_helper}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as e}from"./p-CSySY6aC.js";import{a as n}from"./p-C5CTp9IA.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=a(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),
|
|
1
|
+
import{r as t,h as i}from"./p-yFtRjnrU.js";import{c as a}from"./p-CBWjHURv.js";import{T as e}from"./p-CSySY6aC.js";import{a as n}from"./p-C5CTp9IA.js";import{c as r}from"./p-xs4N_Y-0.js";import"./p-ChV9xqsO.js";import"./p-6XOzWrsN.js";const o=a(["h-8 w-[inherit]","flex items-center gap-2","\n hover:text-storm-500\n dark:hover:text-white\n ","rounded-lg","px-2 py-1","text-sm font-medium","cursor-pointer"],{variants:{active:{false:["\n text-storm-400\n dark:text-hurricane-200\n ","\n hover:bg-off-white-500\n dark:hover:bg-white/10\n "],true:["\n bg-off-white-600 font-semibold text-storm-500\n dark:bg-white/10 dark:text-white\n "]},icon:{false:!1,true:["pl-1"]}}}),c=a(["flex aspect-branding h-6 items-center justify-center rounded-full"],{variants:{active:{false:!1,true:["bg-indigo-500 text-storm-500"]}}}),m=class{constructor(i){t(this,i)}icon;active=!1;loading=!1;as="a";counter;href;target;class;applyFullWidth=!1;render(){const t=this.as,a=n(this.active)||this.class?.includes("active");return i(e,{key:"f683b2979f9fde20b6e37ba7f3460fd052cce426",class:r("p-navigation-item inline-block",this.class)},i(t,{key:"8f9b4557b535d893375bcbe9108a618aff26974e",class:o({icon:!!this.icon,active:a}),href:this.href,target:this.target},i("div",{key:"6a32cd63b465492becb679ba08175e79a9c053c8",class:c({active:a})},i("p-icon",{key:"5fd49857c3f424479731379311ee426d2bf9b79e",variant:this.icon})),i("span",{key:"8d1527282d584b49e7990455e6bba80debd48cd5",class:r({"has-counter":!!this.counter,"w-full":this.applyFullWidth})},i("slot",{key:"6b9480c94455eeb524a029f21794fc89cb31c857"})),!!this.counter&&"0"!==this.counter&&i("p-badge",{key:"7677e25cb31c5f98bbe70b05e4ca95c518ab696c"},this.counter),!!this.loading&&i("p-loader",{key:"c006a2604a54309028adda2d3aaff26e1d0acd3c",class:"ml-auto"})))}};m.style="*.sc-p-navigation-item{box-sizing:border-box}.static.sc-p-navigation-item{position:static}.ml-auto.sc-p-navigation-item{margin-left:auto}.inline-block.sc-p-navigation-item{display:inline-block}.flex.sc-p-navigation-item{display:flex}.aspect-branding.sc-p-navigation-item{aspect-ratio:23/24}.h-6.sc-p-navigation-item{height:1.5rem}.h-8.sc-p-navigation-item{height:2rem}.w-\\[inherit\\].sc-p-navigation-item{width:inherit}.w-full.sc-p-navigation-item{width:100%}.cursor-pointer.sc-p-navigation-item{cursor:pointer}.items-center.sc-p-navigation-item{align-items:center}.justify-center.sc-p-navigation-item{justify-content:center}.gap-2.sc-p-navigation-item{gap:.5rem}.rounded-full.sc-p-navigation-item{border-radius:9999px}.rounded-lg.sc-p-navigation-item{border-radius:.5rem}.bg-indigo-500.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(142 179 251/var(--tw-bg-opacity,1))}.bg-off-white-600.sc-p-navigation-item{--tw-bg-opacity:1;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))}.px-2.sc-p-navigation-item{padding-left:.5rem;padding-right:.5rem}.py-1.sc-p-navigation-item{padding-bottom:.25rem;padding-top:.25rem}.pl-1.sc-p-navigation-item{padding-left:.25rem}.text-sm.sc-p-navigation-item{font-size:.875rem;line-height:1.25rem}.font-medium.sc-p-navigation-item{font-weight:500}.font-semibold.sc-p-navigation-item{font-weight:600}.text-storm-400.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(70 75 84/var(--tw-text-opacity,1))}.text-storm-500.sc-p-navigation-item{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.container.sc-p-navigation-item{width:100%}@media (min-width:40rem){.container.sc-p-navigation-item{max-width:40rem}}@media (min-width:64rem){.container.sc-p-navigation-item{max-width:64rem}}@media (min-width:80rem){.container.sc-p-navigation-item{max-width:80rem}}@media (min-width:85.375rem){.container.sc-p-navigation-item{max-width:85.375rem}}@media (min-width:90rem){.container.sc-p-navigation-item{max-width:90rem}}@media (min-width:96rem){.container.sc-p-navigation-item{max-width:96rem}}@media (min-width:105rem){.container.sc-p-navigation-item{max-width:105rem}}@media (min-width:120rem){.container.sc-p-navigation-item{max-width:120rem}}@media (min-width:160rem){.container.sc-p-navigation-item{max-width:160rem}}@media (min-width:640px){.container.sc-p-navigation-item{max-width:640px}}@media (min-width:768px){.container.sc-p-navigation-item{max-width:768px}}@media (min-width:1024px){.container.sc-p-navigation-item{max-width:1024px}}@media (min-width:1280px){.container.sc-p-navigation-item{max-width:1280px}}@media (min-width:1536px){.container.sc-p-navigation-item{max-width:1536px}}.hover\\:bg-off-white-500.sc-p-navigation-item:hover{--tw-bg-opacity:1;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))}.hover\\:text-storm-500.sc-p-navigation-item:hover{--tw-text-opacity:1;color:rgb(24 30 41/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white:hover:where([data-theme=dark].sc-p-navigation-item-h,[data-theme=dark].sc-p-navigation-item-h *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:bg-white\\/10.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:text-hurricane-200.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(163 165 169/var(--tw-text-opacity,1))}.dark\\:text-white.sc-p-navigation-item:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\\:hover\\:bg-white\\/10.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{background-color:hsla(0,0%,100%,.1)}.dark\\:hover\\:text-white.sc-p-navigation-item:hover:where([data-theme=dark],[data-theme=dark] *).sc-p-navigation-item{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}";export{m as p_navigation_item}
|