@paperless/core 3.2.1 → 3.2.3
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-b47f3a0f.js → p-340daf05.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/{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-381c13a8.entry.js → p-902adabf.entry.js} +1 -1
- package/dist/build/p-980f3529.entry.js +1 -0
- 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-afa4d38a.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 +11 -6
- package/dist/cjs/p-empty-state_8.cjs.entry.js +8 -8
- 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 +11 -6
- 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 +2 -2
- package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/listing/listing.component.js +2 -2
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/components/{p-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-COFt46UN.js → p-CCqpQJ15.js} +1 -1
- 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-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 +11 -6
- package/dist/esm/p-empty-state_8.entry.js +8 -8
- 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/{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-381c13a8.entry.js → p-902adabf.entry.js} +1 -1
- 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-afa4d38a.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/dist/types/components/molecules/datepicker/datepicker.component.d.ts +1 -0
- package/hydrate/index.js +61 -56
- package/hydrate/index.mjs +61 -56
- package/package.json +1 -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-MeQ48Q-1.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
|
@@ -384,8 +384,8 @@ const Field = class {
|
|
|
384
384
|
}
|
|
385
385
|
render() {
|
|
386
386
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
387
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
388
|
-
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (index.h("slot", { key: '
|
|
387
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'd957c15ac5c4fd277a79716e8f7644be5b7e413e' }, index.h("p-field-container", { key: '4ec3f19bf0e3336b652add8730974d890deaf1bc', align: this.align, error: this.error, forceShowTooltip: (!!this.error?.length && !this._focused && this.autoShowError) ||
|
|
388
|
+
(!!this.error?.length && this.forceShowTooltip), helper: this.helper, id: id, label: this.label, loading: this.loading, loadingSize: this.size, required: this.required, showOptional: this.showOptional, variant: this.variant }, hasLabelSlot && (index.h("slot", { key: '74c5bf652fa519804b802cb930b764a62a7991aa', name: 'label', slot: 'label' })), hasHeaderSlot && (index.h("slot", { key: 'f63069722b80fab8c262646787de0cfda2479def', name: 'header', slot: 'header' })), hasHelperSlot && (index.h("slot", { key: '3045c36ea36e2d9b81b1fe31955237162ba50c62', name: 'helper', slot: 'helper' })), hasErrorSlot && (index.h("slot", { key: 'a9fe88d52f8f71ad09d1e2dbd3d0d42818ae64e9', name: 'error', slot: 'error' })), index.h("div", { key: '805fc95477292dcf8404eb5f206bbfd576431dd2', class: field({
|
|
389
389
|
error: !!this.error?.length,
|
|
390
390
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
391
391
|
focused: asBoolean.asBoolean(this.focused) || this._focused,
|
|
@@ -396,7 +396,7 @@ const Field = class {
|
|
|
396
396
|
? `${this.value}`
|
|
397
397
|
: undefined }, (this.error?.length ||
|
|
398
398
|
prefix ||
|
|
399
|
-
(this.icon && this.iconPosition === 'start')) && (index.h("div", { key: '
|
|
399
|
+
(this.icon && this.iconPosition === 'start')) && (index.h("div", { key: '41d8592d1683e02c23742e3fcae5f198e5dac18e', class: prefixAndSuffix({
|
|
400
400
|
variant: this.variant,
|
|
401
401
|
error: !!this.error?.length,
|
|
402
402
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
@@ -406,7 +406,7 @@ const Field = class {
|
|
|
406
406
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
407
407
|
this.error?.length ? (index.h("p-icon", { class: cn.cn('flex', {
|
|
408
408
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
409
|
-
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (index.h("div", { key: '
|
|
409
|
+
}), flip: this.iconFlip, rotate: this.iconRotate, variant: this.error?.length ? 'warning' : this.icon })) : (prefix))), this._getContent(hasValueSlot, id), (suffix || (this.icon && this.iconPosition === 'end')) && (index.h("div", { key: '696e95bfe4ee145a02e4de13f697a01b62bb2678', class: prefixAndSuffix({
|
|
410
410
|
variant: this.variant,
|
|
411
411
|
error: !!this.error?.length,
|
|
412
412
|
disabled: asBoolean.asBoolean(this.disabled),
|
|
@@ -85,17 +85,17 @@ const Label = class {
|
|
|
85
85
|
*/
|
|
86
86
|
keepMobileContent = false;
|
|
87
87
|
render() {
|
|
88
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
88
|
+
return (index.h(themedHost_component.ThemedHost, { key: '11f93a805b545dbdf3d8f7f07d2ba9d9b72f9465' }, index.h("div", { key: '1947c9e35ae05a8ffda7d35c4f72edf8edd6eb78', class: label({
|
|
89
89
|
variant: this.variant,
|
|
90
90
|
iconOnly: this.iconOnly,
|
|
91
91
|
keepMobileContent: this.keepMobileContent,
|
|
92
|
-
}) }, this.icon && (index.h("p-icon", { key: '
|
|
92
|
+
}) }, this.icon && (index.h("p-icon", { key: '5531821ffd0f42ab9ed8c6eca76e8f1537bcb976', class: 'flex-shrink-0', flip: this.iconFlip, rotate: this.iconRotate, variant: this.icon })), !this.iconOnly && (index.h("div", { key: 'acefad061d0e66e1404fb3847b0853069179b306', class: cn.cn(`
|
|
93
93
|
flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm
|
|
94
94
|
font-medium
|
|
95
95
|
`, {
|
|
96
96
|
hidden: !this.keepMobileContent,
|
|
97
97
|
'desktop-xs:block': !this.keepMobileContent,
|
|
98
|
-
}) }, index.h("slot", { key: '
|
|
98
|
+
}) }, index.h("slot", { key: 'b96c6e958fb8786e078fa9cbdeb1daac494ef9f3' }))))));
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
Label.style = labelComponentCss();
|
|
@@ -24,10 +24,10 @@ const Listing = class {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return (index.h("div", { key: '
|
|
27
|
+
return (index.h("div", { key: 'bd62a9cb5f45d0be1bf09636a4d576a70a4350fb', class: cn.cn('flex w-full flex-col flex-wrap items-start gap-1', {
|
|
28
28
|
'opacity-100': this._generatedOnce,
|
|
29
29
|
'opacity-0': !this._generatedOnce,
|
|
30
|
-
}) }, index.h("slot", { key: '
|
|
30
|
+
}) }, index.h("slot", { key: 'c762354f8f1f0023a6a73bff00fc5333431c8226', onSlotchange: () => this._generateLinesOnce() })));
|
|
31
31
|
}
|
|
32
32
|
_generateLinesOnce() {
|
|
33
33
|
if (this._generateTimeout) {
|
|
@@ -71,7 +71,7 @@ const Navbar = class {
|
|
|
71
71
|
}
|
|
72
72
|
_show = false;
|
|
73
73
|
render() {
|
|
74
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
74
|
+
return (index.h(themedHost_component.ThemedHost, { key: '814b399715eba8a9f4c81ed550431b8b3cc29d39' }, index.h("p-backdrop", { key: '59c99e5c8ce0dbacae386da8ceb4a7a23b4778bd', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), index.h("div", { key: '815fcb1b40cfdbe3a4bd47676b374254073254df', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, index.h("div", { key: 'a078f18dcc8885db9bd3661cc227adccaf30b8c1', class: '\n flex w-full items-center justify-end\n layout-1280:hidden\n ' }, index.h("p-button", { key: 'be1fbb0ee3d1455f4af3b5399a52c38a760ddb1f', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, variant: 'secondary', onClick: () => (this._show = false) })), index.h("div", { key: 'c4b1d03bb1c5fd109b99e3d587873b3f47ab1350', class: 'flex w-full flex-shrink-0 flex-col items-stretch' }, index.h("slot", { key: 'a981dbc4d887d420cb8b5c7c69fee4795cb07272', name: 'company' })), index.h("div", { key: '035880f4bb9d321c3d4f9d5fb6df34191ba1be13', class: 'flex w-full flex-1 flex-col gap-6 overflow-y-auto' }, index.h("slot", { key: '0d75492d278db82db0a62a4717c94df59a02349c', name: 'content' })), index.h("div", { key: '66e0a56030477a2e3c8b1706f698114e85b88fe6', class: '\n mt-auto hidden w-full flex-shrink-0 flex-col\n layout-1280:flex\n ' }, index.h("slot", { key: '7ad2e2db299e914b8977f8c300d636d317c06741', name: 'user' }))), index.h("div", { key: '70be960e812e2b4904a3045193ca16fc2391e4a6', class: topbar({ class: sidebarAndTopbar() }) }, index.h("p-button", { key: '19b70f87d40558f633d5d9d8b42b60ba4c999826', icon: 'menu-arrow', iconOnly: true, variant: 'secondary', onClick: () => (this._show = true) }), index.h("slot", { key: 'c980989054dc51e2e54bf5d032895e297742fe61', name: 'topbar' }))));
|
|
75
75
|
}
|
|
76
76
|
handleCloseNavbar() {
|
|
77
77
|
this._show = false;
|
|
@@ -98,13 +98,13 @@ const NavigationItem = class {
|
|
|
98
98
|
render() {
|
|
99
99
|
const TagType = this.as;
|
|
100
100
|
const active = asBoolean.asBoolean(this.active) || this.class?.includes('active');
|
|
101
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
101
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'f683b2979f9fde20b6e37ba7f3460fd052cce426', class: cn.cn('p-navigation-item inline-block', this.class) }, index.h(TagType, { key: '8f9b4557b535d893375bcbe9108a618aff26974e', class: navigationItem({
|
|
102
102
|
icon: !!this.icon,
|
|
103
103
|
active,
|
|
104
|
-
}), href: this.href, target: this.target }, index.h("div", { key: '
|
|
104
|
+
}), href: this.href, target: this.target }, index.h("div", { key: '6a32cd63b465492becb679ba08175e79a9c053c8', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: '5fd49857c3f424479731379311ee426d2bf9b79e', variant: this.icon })), index.h("span", { key: '8d1527282d584b49e7990455e6bba80debd48cd5', class: cn.cn({
|
|
105
105
|
'has-counter': !!this.counter,
|
|
106
106
|
'w-full': this.applyFullWidth,
|
|
107
|
-
}) }, index.h("slot", { key: '
|
|
107
|
+
}) }, index.h("slot", { key: '6b9480c94455eeb524a029f21794fc89cb31c857' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: '7677e25cb31c5f98bbe70b05e4ca95c518ab696c' }, this.counter)), !!this.loading && index.h("p-loader", { key: 'c006a2604a54309028adda2d3aaff26e1d0acd3c', class: 'ml-auto' }))));
|
|
108
108
|
}
|
|
109
109
|
};
|
|
110
110
|
NavigationItem.style = navigationItemComponentCss();
|
|
@@ -15,7 +15,7 @@ const NavigationSection = class {
|
|
|
15
15
|
*/
|
|
16
16
|
header;
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
18
|
+
return (index.h(themedHost_component.ThemedHost, { key: '8fb1c4a553d9c4a5326c1692f50913be4d9865dc', class: 'flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: 'e5d53c6cc8c05cfb0a0566b94ceebe1a894f77b3' }, this.header)), index.h("div", { key: 'a29814e605c46668e89773b1e7d3540aabd8c3ae', class: 'flex flex-col' }, index.h("slot", { key: '683d1571c171719465093efc4d6c9d7dcb3ddeb5' }))));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
NavigationSection.style = navigationSectionComponentCss();
|
|
@@ -78,12 +78,12 @@ const Pagination = class {
|
|
|
78
78
|
_hasPaginationPages = true;
|
|
79
79
|
render() {
|
|
80
80
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
81
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
81
|
+
return (index.h(themedHost_component.ThemedHost, { key: '29ed189925a9e93e1939cfd66cf91915a5b8474d' }, index.h("div", { key: '2705a46004eb47c6cbbf6dfa448ae69a6dfc96dc', class: pagination$1({
|
|
82
82
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
83
83
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
84
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '
|
|
84
|
+
}) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: 'bb6985dd638fea4e904aae04ba70edc7d94b3c52' }, index.h("p-pagination-size", { key: '730a4c91d7b3d8d0e2c57dc5e120222daef8b3c4', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
|
|
85
85
|
this.hideOnSinglePage &&
|
|
86
|
-
this._hasPaginationPages && (index.h("p-divider", { key: '
|
|
86
|
+
this._hasPaginationPages && (index.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 && (index.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 }) => {
|
|
87
87
|
this._hasPaginationPages = detail > 1;
|
|
88
88
|
this.pagesChange.emit(detail);
|
|
89
89
|
} })))));
|
|
@@ -35,7 +35,7 @@ const Profile = class {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const content = this._getContent();
|
|
38
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
38
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'ca4c5879a59946cdbbab9a802fbf62547194aaa9' }, this._hasDropdownSlot ? (index.h("p-dropdown", { applyChevron: false, applyFullWidth: true, applyMaxWidth: false, manualChevron: true, placement: this.dropdownLocation, strategy: 'absolute', onIsOpen: ev => (this._dropdownOpen = ev.detail) }, index.h("p-button", { active: this._dropdownOpen, chevron: this._dropdownOpen ? 'up' : 'down', class: 'w-full', size: 'lg', slot: 'trigger', variant: 'dropdown' }, content), index.h("div", { slot: 'items' }, index.h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
39
39
|
}
|
|
40
40
|
slotchange() {
|
|
41
41
|
this._checkDropdownSlot();
|
|
@@ -33,13 +33,13 @@ const Range = class {
|
|
|
33
33
|
valueChange;
|
|
34
34
|
render() {
|
|
35
35
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
36
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
36
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'ae78cbe140c926f4c15da133c99dd2b84ff1060f' }, index.h("div", { key: '27a1f144fa8c1fa7c62ffb9b6300ce4f7b5d032c', class: '\n flex w-inherit items-center gap-2 text-storm-300\n dark:text-hurricane-200\n ' }, index.h("p-icon", { key: '353b493c7deb2a8de7b461dd5e78bf7af41ffbd2', variant: 'minus' }), index.h("div", { key: 'afb0b67c052ef23f0a85c5ed2b4286f3769114f2', class: 'relative h-6 flex-1' }, index.h("input", { key: '664649a633ea007d101dd7ef9a5dc528cd503bce', max: this.max, min: this.min, step: this.step, type: 'range', value: this.value, onInput: ev => {
|
|
37
37
|
const value = ev.target.value;
|
|
38
38
|
this.value = Number.parseFloat(value);
|
|
39
39
|
this.valueChange.emit(value);
|
|
40
|
-
} }), index.h("div", { key: '
|
|
40
|
+
} }), index.h("div", { key: '0bea7f03b87ab00d74780796f00f3eda90bc1b96', class: '\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
|
|
41
41
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
42
|
-
} })), index.h("p-icon", { key: '
|
|
42
|
+
} })), index.h("p-icon", { key: '8136e15955e461ec30c3bb8d83cabbd80c8089f2', variant: 'plus' }))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
Range.style = rangeComponentCss();
|
|
@@ -349,8 +349,8 @@ const Select = class {
|
|
|
349
349
|
if (this.error?.length) {
|
|
350
350
|
buttonIcon = 'warning';
|
|
351
351
|
}
|
|
352
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
353
|
-
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, index.h("div", { key: '
|
|
352
|
+
return (index.h(themedHost_component.ThemedHost, { key: 'c72782f726a393fbf065df5c19603b8513b992bd' }, index.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' }, index.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) }, index.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 &&
|
|
353
|
+
this._selectedItem?.[this.iconClassKey], size: this.size, slot: 'trigger', variant: 'secondary', onClick: ev => this._onClick(ev) }, index.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()))));
|
|
354
354
|
}
|
|
355
355
|
documentClickHandler(event) {
|
|
356
356
|
if (!this._showDropdown || childOf.childOfComposed(event, this._el)) {
|
|
@@ -72,7 +72,7 @@ const Toast = class {
|
|
|
72
72
|
*/
|
|
73
73
|
action;
|
|
74
74
|
render() {
|
|
75
|
-
return (index.h(themedHost_component.ThemedHost, { key: '
|
|
75
|
+
return (index.h(themedHost_component.ThemedHost, { key: '8d36846b85c4e661ccd81533ac05eb6a651bedb6' }, index.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() }, index.h("div", { key: 'c3ebd2eecb1f3378176653bfe7ae96bd9b7b4b13', class: indicator({ variant: this.variant }) }), index.h("div", { key: '89ce39565adb3958a12551d5021f7ab86c9babb5', class: content() }, index.h("div", { key: '9c833a877f81b34c53ff73378b799fad436e76fd', class: 'flex w-full min-w-0 flex-col' }, index.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 : index.h("slot", { name: 'header' })), index.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 : index.h("slot", { name: 'content' }))), this.enableAction && (index.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 ' }, index.h("p-icon", { key: '660342af8a7f33cdd2495cf03fd54fe8923babc8', flip: this.actionIconFlip, rotate: this.actionIconRotate, variant: this.actionIcon })))))));
|
|
76
76
|
}
|
|
77
77
|
_onClick() {
|
|
78
78
|
if (this.enableAction) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*{box-sizing:border-box}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mt-4{margin-top:1rem}.flex{display:flex}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.items-center{align-items:center}.gap-2{gap:.5rem}.whitespace-nowrap{white-space:nowrap}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.text-hurricane-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))}.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-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
|
|
1
|
+
*{box-sizing:border-box}.static{position:static}.my-0{margin-bottom:0;margin-top:0}.mt-4{margin-top:1rem}.flex{display:flex}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:.5rem}.whitespace-nowrap{white-space:nowrap}.text-base{font-size:1rem;line-height:1.5rem}.font-medium{font-weight:500}.text-hurricane-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))}.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-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-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}
|
|
@@ -27,10 +27,10 @@ export class Accordion {
|
|
|
27
27
|
*/
|
|
28
28
|
isOpen;
|
|
29
29
|
render() {
|
|
30
|
-
return (h(ThemedHost, { key: '36d39106bf27e5005cfdd96f062e89d3be88dbef' }, h("div", { key: '
|
|
30
|
+
return (h(ThemedHost, { key: '36d39106bf27e5005cfdd96f062e89d3be88dbef' }, h("div", { key: '3e08603b16cb1e63be370f3f69bf302d55a73a6d', class: 'flex w-full flex-col' }, h("div", { key: 'b434652c2acda88e09f87d7099cc10d87dba2799', class: cn('flex cursor-pointer items-center gap-2', {
|
|
31
31
|
'text-storm-500 dark:text-white': this.variant === 'primary',
|
|
32
32
|
'text-storm-300 dark:text-hurricane-200': this.variant === 'secondary',
|
|
33
|
-
}), onClick: () => this._onClick() }, h("p-icon", { key: '
|
|
33
|
+
}), onClick: () => this._onClick() }, h("p-icon", { key: '1b56837e3c8c799e8c950cb435c1a41b1b34a93e', class: 'flex shrink-0', rotate: this.open ? 0 : -90, variant: 'caret' }), h("p", { key: '8e009479a0e30100ec50e0336758c67ef8b775e0', class: 'my-0 shrink-0 whitespace-nowrap text-base font-medium' }, this.header), h("p-divider", { key: '4b7029e11b60b2493b21a89fd377e42e9c6dbaf1', class: 'flex-1' })), this.open && (h("div", { key: '1e7b7f6b9d4d3983e77eee7ba02f6bb1f7a53819', class: 'mt-4' }, h("slot", { key: 'e7ea3de6a43120e5533f8f6f320eb6714bbae73a' }))))));
|
|
34
34
|
}
|
|
35
35
|
_onClick() {
|
|
36
36
|
if (!this.closeable && this.open) {
|
|
@@ -101,28 +101,28 @@ export class Attachment {
|
|
|
101
101
|
_fileRef;
|
|
102
102
|
_cameraFileRef;
|
|
103
103
|
render() {
|
|
104
|
-
let prefix = (h("p-icon", { key: '
|
|
104
|
+
let prefix = (h("p-icon", { key: 'ff0d8b84e7b9a7dd184912d9689bcb8eca336c27', class: 'text-storm-300', variant: 'attachment' }));
|
|
105
105
|
if (this.error) {
|
|
106
|
-
prefix = (h("p-icon", { key: '
|
|
106
|
+
prefix = (h("p-icon", { key: 'edafa66b2cd94083d4b14f3bb0c4cf1a956db04f', class: 'text-negative-red-500', variant: 'warning' }));
|
|
107
107
|
}
|
|
108
108
|
// const isMobileDevice = isMobile();
|
|
109
109
|
const isMobileDevice = isTablet();
|
|
110
110
|
const baseText = 'min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm';
|
|
111
|
-
return (h(Fragment, { key: '
|
|
111
|
+
return (h(Fragment, { key: 'b2d624708b9d8ca28de78dd54fe9cc8eeeecb549' }, h("p-field-container", { key: '07fffd5b21f0ac93ed152759ab84a389aee3e34e', error: this.error, forceShowTooltip: !!this.error?.length, helper: this.helper, label: this.label, required: this.required, variant: 'write' }, h("div", { key: '69ecea8f62871917c241518f6890d9bbd70839cf', class: 'flex w-full items-start gap-2', slot: 'content' }, h("div", { key: '46e0bd7eda892914725c6f742fe0c1f2ccc93834', class: attachment({
|
|
112
112
|
click: this.mode === 'write' && !this.value?.length,
|
|
113
113
|
error: !!this.error?.length,
|
|
114
|
-
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '
|
|
114
|
+
}), onClick: () => this._uploadClick() }, prefix, h("span", { key: '0bee81f6c2a114113f6f7910e243d6f96dd158b1', class: cn(baseText, `
|
|
115
115
|
peer
|
|
116
116
|
empty:hidden
|
|
117
117
|
dark:text-white
|
|
118
|
-
`) }, this.value), h("span", { key: '
|
|
118
|
+
`) }, this.value), h("span", { key: '0ca55b4c5565663a1523fb23318e061413ab7024', class: cn(baseText, `
|
|
119
119
|
hidden
|
|
120
120
|
peer-empty:block
|
|
121
|
-
`) }, this.placeholder)), h("p-tooltip", { key: '
|
|
121
|
+
`) }, this.placeholder)), h("p-tooltip", { key: '9e96a2663671403a3a81571732af88e49df30749', class: 'w-8', content: this.mode === 'read'
|
|
122
122
|
? this.downloadTooltip
|
|
123
123
|
: this.value?.length
|
|
124
124
|
? this.deleteTooltip
|
|
125
|
-
: this.uploadTooltip }, h("p-button", { key: '
|
|
125
|
+
: this.uploadTooltip }, h("p-button", { key: '99cf07323a901392dd3049a43ed61b3f3c074483', disabled: this.loading, icon: this.mode === 'read'
|
|
126
126
|
? 'download'
|
|
127
127
|
: this.value?.length
|
|
128
128
|
? 'trash'
|
|
@@ -133,7 +133,7 @@ export class Attachment {
|
|
|
133
133
|
: this.delete).emit() })), this.enableCameraOnMobile &&
|
|
134
134
|
this.mode === 'write' &&
|
|
135
135
|
isMobileDevice &&
|
|
136
|
-
!this.value?.length && (h("p-tooltip", { key: '
|
|
136
|
+
!this.value?.length && (h("p-tooltip", { key: '6e152a4fd9c5c9b3abb5e0f53fc100a0a2d09901', class: '\n w-8\n desktop-xs:hidden\n ', content: this.cameraTooltip }, h("p-button", { key: '1337d04a24c9b1b6ed2d8b5d72e3765ca9f6a0cb', icon: 'camera', iconOnly: true, slot: 'trigger', variant: 'secondary', onOnClick: () => this._cameraClick() }))))), h("input", { key: 'bcf332bfadc788d74e76918043bf6ac4e2970270', accept: Array.isArray(this.accept) ? this.accept?.join(',') : this.accept, class: 'hidden', ref: el => (this._fileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) }), h("input", { key: 'a3f7befdf02a4ed11d90bb3595bc37e678908ad0', accept: 'image/*', capture: 'true', class: 'hidden', ref: el => (this._cameraFileRef = el), type: 'file', onChange: ev => this._onFileChange(ev) })));
|
|
137
137
|
}
|
|
138
138
|
_uploadClick() {
|
|
139
139
|
if (!this._fileRef || this.mode !== 'write' || this.value?.length) {
|
|
@@ -12,7 +12,7 @@ export class ButtonGroup {
|
|
|
12
12
|
this._checkButtons();
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '0194482014cf63bb2b1b232f3a535dbc38fe3943', class: 'flex items-center' }, h("slot", { key: '29f15517952e4eea497b805c089a858d556394ab' })));
|
|
16
16
|
}
|
|
17
17
|
slotchange() {
|
|
18
18
|
this._checkButtons();
|
|
@@ -189,7 +189,7 @@ export class Calendar {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
render() {
|
|
192
|
-
return (h(ThemedHost, { key: '
|
|
192
|
+
return (h(ThemedHost, { key: '396e1c7059b24d8aec57317d839f448be1e37f26' }, h("div", { key: '9030d30aa2fbd06919ec711c01f135ef35c5d7f6', class: calendar({ variant: this.variant }) }, this._getView())));
|
|
193
193
|
}
|
|
194
194
|
_checkTodayButton() {
|
|
195
195
|
if (this._maxDate && isAfter(this._today, this._maxDate)) {
|
|
@@ -47,13 +47,13 @@ export class ContentSlider {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'ced2d428e5bb5831898a3092ea2f0d7b9802ef02', class: 'p-content-slider' }, h("div", { key: 'e3dfda6e2643f979be7d68b908dd282c94c39b1d', class: `
|
|
51
51
|
slider
|
|
52
52
|
${!this.disableDrag && 'draggable'}
|
|
53
53
|
${this._dragging && 'dragging'}
|
|
54
54
|
`, ref: el => (this._sliderRef = el), style: {
|
|
55
55
|
height: `${this._outerHeight}px`,
|
|
56
|
-
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: '
|
|
56
|
+
}, onMouseDown: e => this._mouseDownHandler(e), onMouseMove: e => this._mouseMoveHandler(e), onTouchMove: e => this._mouseMoveHandler(e), onTouchStart: e => this._mouseDownHandler(e) }, h("div", { key: 'cfef628f79dd457341ff316119afe53386585fd4', class: 'inner-slider', ref: ref => this._setInnerSliderReft(ref), onTransitionEnd: () => this._transitionEndHandler() }, h("slot", { key: '08496344b73b4fb1c84d0df7e53d01b83c54a01c', onSlotchange: () => this._slotChange() }))), h("div", { key: '1f058ce1a871ce924a19e5f03733087b347fe7dc', class: `
|
|
57
57
|
indicator
|
|
58
58
|
${this.hideMobileIndicator && 'hidden'}
|
|
59
59
|
` }, this._filteredItems.map((_, i) => (h("div", { class: `
|
|
@@ -42,7 +42,7 @@ export class Cropper {
|
|
|
42
42
|
const themeColor = state.theme === 'dark'
|
|
43
43
|
? 'rgba(70, 75, 84, 0.5)'
|
|
44
44
|
: 'rgba(255, 255, 255, 0.5)';
|
|
45
|
-
return (h(ThemedHost, { key: '
|
|
45
|
+
return (h(ThemedHost, { key: '52a057456517492463f371277934b7e486dc5b79' }, this._loaded && (h("cropper-canvas", { key: 'a6322cc2fe70a66d880e7346b203dce27f8c9c5b', class: '\n h-[17.5rem] w-full border-0 border-b border-solid border-off-white-700\n bg-white\n dark:border-hurricane-200\n ', onAction: () => this._onAction() }, h("cropper-image", { key: '10b5a28a47fcf404b7a715750407420bf565ed3c', alt: 'Picture', crossorigin: 'anonymous', ref: ref => this._setImageRef(ref), src: this.value, scalable: true, translatable: true }), h("cropper-shade", { key: '72e99381cd0275245d7e09cad083743116bf2466', class: 'aspect-branding rounded-full', "theme-color": themeColor, hidden: true }), h("cropper-selection", { key: '00294b6423488b070b998039e3bb096cdc1f621b', "aspect-ratio": '1', "initial-coverage": '0.7', ref: ref => (this._selectionRef = ref) }), h("cropper-handle", { key: '08bec65589e6f90042a0502f0def27e60383565d', action: 'move', plain: true }))), h("p-range", { key: '95c2c0305abbdd03271d1c02d6a8bcf896037a71', class: '\n w-full px-14\n tablet:max-w-xs tablet:px-1\n ', value: this._currentScale, onValueChange: ev => this._onInput(ev.detail) })));
|
|
46
46
|
}
|
|
47
47
|
_setImageRef(ref) {
|
|
48
48
|
if (this._imageRef || !ref) {
|
|
@@ -201,14 +201,16 @@ export class Datepicker {
|
|
|
201
201
|
}
|
|
202
202
|
this.parseMinDate(this.minDate);
|
|
203
203
|
this.parseMaxDate(this.maxDate);
|
|
204
|
+
this._isMobileBrowser = isMobileBrowser();
|
|
205
|
+
this.parseValue(this.value);
|
|
206
|
+
}
|
|
207
|
+
componentWillRender() {
|
|
204
208
|
if (this.mode !== 'day' && this.format === this._defaultFormats['day']) {
|
|
205
209
|
this.format = this._defaultFormats[this.mode];
|
|
206
210
|
}
|
|
207
|
-
this._isMobileBrowser = isMobileBrowser();
|
|
208
|
-
this.parseValue(this.value);
|
|
209
211
|
}
|
|
210
212
|
render() {
|
|
211
|
-
return (h("p-dropdown", { key: '
|
|
213
|
+
return (h("p-dropdown", { key: '9bd033bcc9c678b922d2708f0115359a10eda050', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, h("p-field", { key: '9954ad569303d1c301e9e23c11ddc8667ed5885b', autoShowError: false, disabled: asBoolean(this.disabled), error: this.error, focused: this._showDropdown, forceShowTooltip: !!this.error?.length && !this._showDropdown, helper: this.helper, icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', label: this.label, loading: this.loading, placeholder: this.placeholder, prefix: this.prefix, required: asBoolean(this.required), showOptional: asBoolean(this.showOptional), size: this.size, slot: 'trigger', value: this._getFormattedDate(), onBlur: (ev) => this._onBlur(ev), onFocus: () => this._onFocus(), onInputRefChange: ev => (this._inputRef = ev.detail), onValueChange: ev => this._onValueChange(ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (h("input", { key: '910da60dd3e8493be39af5153ec17fcaa712d547', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
212
214
|
format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
213
215
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
214
216
|
}), min: this._minDate &&
|
|
@@ -217,7 +219,7 @@ export class Datepicker {
|
|
|
217
219
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
218
220
|
format(this._value, 'yyyy-MM-dd', {
|
|
219
221
|
locale: state.locale === 'nl' ? nl : enUS,
|
|
220
|
-
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: '
|
|
222
|
+
}), onInput: ev => this._onNativeInput(ev) })), h("div", { key: 'dbc9708700e9da87b6eaed0074b2c0874af1273e', slot: 'items', tabIndex: -1 }, h("p-calendar", { key: 'f209ed8fb397826f9d17f1d635e815418335903c', disableWeekends: this.disableWeekends, disabledDates: this.disabledDates, enableToday: this.enableToday, maxDate: this.maxDate, minDate: this.minDate, mode: this.mode, preselectToday: this.preselectToday, todayText: this.todayText, value: this._value, variant: 'embedded', onValueChange: ({ detail }) => (this.value = detail) }))));
|
|
221
223
|
}
|
|
222
224
|
documentClickHandler({ target }) {
|
|
223
225
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -234,7 +236,8 @@ export class Datepicker {
|
|
|
234
236
|
}
|
|
235
237
|
this._showDropdown = true;
|
|
236
238
|
}
|
|
237
|
-
_onBlur(ev, parseFormat
|
|
239
|
+
_onBlur(ev, parseFormat) {
|
|
240
|
+
parseFormat = parseFormat || this.format;
|
|
238
241
|
if (this._isMobileBrowser && this._dateInputRef) {
|
|
239
242
|
return;
|
|
240
243
|
}
|
|
@@ -245,7 +248,9 @@ export class Datepicker {
|
|
|
245
248
|
if (target.value === null) {
|
|
246
249
|
return;
|
|
247
250
|
}
|
|
248
|
-
const value = parse(target.value, parseFormat, new Date()
|
|
251
|
+
const value = parse(target.value, parseFormat, new Date(), {
|
|
252
|
+
locale: state.locale === 'nl' ? nl : enUS,
|
|
253
|
+
});
|
|
249
254
|
if (value === this._value) {
|
|
250
255
|
return;
|
|
251
256
|
}
|
|
@@ -133,12 +133,12 @@ export class Dropdown {
|
|
|
133
133
|
this._checkItems();
|
|
134
134
|
}
|
|
135
135
|
render() {
|
|
136
|
-
return (h(Host, { key: '
|
|
136
|
+
return (h(Host, { key: 'bedacfe4315ca3990dd8b87c32dbae364722666d', class: 'relative' }, h("div", { key: 'd10200cc877f7ab3dcd3ba012b6ca9c6d622cee3', class: 'trigger', ref: el => (this._trigger = el), onClick: () => this._triggerClickHandler() }, h("slot", { key: '9b5929215afd8d87b966edad2a1093af1e80107a', name: 'trigger' })), h("div", { key: '11ab8f42724bd08e60dd2b492b6e88384be92312', class: 'relative w-full' }, h("p-dropdown-menu-container", { key: '1cfd2dd29d735f2f4fa7afe6cb3f6a8a0acb3b11', allowOverflow: this.allowOverflow, class: cn(dropdownContainerClass({
|
|
137
137
|
strategy: this.strategy,
|
|
138
138
|
maxWidth: this.applyMaxWidth,
|
|
139
139
|
fullWidth: this.applyFullWidth && !this.applyMaxWidth,
|
|
140
140
|
isDatepicker: this.isDatepicker,
|
|
141
|
-
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '
|
|
141
|
+
}), this.containerClass), "data-placement": this.placement, "data-strategy": this.strategy, fullWidth: this.applyFullWidth && !this.applyMaxWidth, maxWidth: this.applyMaxWidth, ref: el => this._load(el), role: 'popover', scrollable: this.scrollable, variant: this.variant, onClick: () => this._containerClickHandler() }, h("slot", { key: '024950445590c6fe467cf729b0df8e8eaa87241b', name: 'items' })))));
|
|
142
142
|
}
|
|
143
143
|
_checkButtons(active = false) {
|
|
144
144
|
const buttons = this._el.querySelectorAll('p-button[slot="trigger"]');
|
|
@@ -59,11 +59,11 @@ export class EmptyState {
|
|
|
59
59
|
const hasHeaderSlot = !!this._el.querySelector(':scope > [slot="header"]');
|
|
60
60
|
const hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
|
|
61
61
|
const hasActionSlot = !!this._el.querySelector(':scope > [slot="action"]');
|
|
62
|
-
return (h(ThemedHost, { key: '
|
|
62
|
+
return (h(ThemedHost, { key: 'e156e226af805d55fb5d1ea617d5e219d8d265b7' }, h("div", { key: '417385b03f1494ba500540abf53b202a00140eb2', class: emptyState({
|
|
63
63
|
enableAction: asBoolean(this.enableAction, true),
|
|
64
64
|
}), onClick: ev => this.enableAction && !this.actionLoading
|
|
65
65
|
? this.action.emit(ev)
|
|
66
|
-
: undefined }, this.illustration && (h("p-illustration", { key: '
|
|
66
|
+
: undefined }, this.illustration && (h("p-illustration", { key: '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 &&
|
|
67
67
|
(hasActionSlot ? (h("slot", { name: 'action' })) : (h("p-button", { class: 'mt-4', icon: this.actionIcon, iconPosition: this.actionIconPosition, loading: this.actionLoading, variant: this.actionVariant }, this.actionText))))));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "p-empty-state"; }
|
|
@@ -365,8 +365,8 @@ export class Field {
|
|
|
365
365
|
}
|
|
366
366
|
render() {
|
|
367
367
|
const { id, prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
368
|
-
return (h(ThemedHost, { key: '
|
|
369
|
-
(!!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: '
|
|
368
|
+
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) ||
|
|
369
|
+
(!!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({
|
|
370
370
|
error: !!this.error?.length,
|
|
371
371
|
disabled: asBoolean(this.disabled),
|
|
372
372
|
focused: asBoolean(this.focused) || this._focused,
|
|
@@ -377,7 +377,7 @@ export class Field {
|
|
|
377
377
|
? `${this.value}`
|
|
378
378
|
: undefined }, (this.error?.length ||
|
|
379
379
|
prefix ||
|
|
380
|
-
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '
|
|
380
|
+
(this.icon && this.iconPosition === 'start')) && (h("div", { key: '41d8592d1683e02c23742e3fcae5f198e5dac18e', class: prefixAndSuffix({
|
|
381
381
|
variant: this.variant,
|
|
382
382
|
error: !!this.error?.length,
|
|
383
383
|
disabled: asBoolean(this.disabled),
|
|
@@ -387,7 +387,7 @@ export class Field {
|
|
|
387
387
|
}), onClick: () => this._focusInput() }, (this.icon && this.iconPosition === 'start') ||
|
|
388
388
|
this.error?.length ? (h("p-icon", { class: cn('flex', {
|
|
389
389
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
390
|
-
}), 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: '
|
|
390
|
+
}), 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({
|
|
391
391
|
variant: this.variant,
|
|
392
392
|
error: !!this.error?.length,
|
|
393
393
|
disabled: asBoolean(this.disabled),
|
|
@@ -75,17 +75,17 @@ export class Label {
|
|
|
75
75
|
*/
|
|
76
76
|
keepMobileContent = false;
|
|
77
77
|
render() {
|
|
78
|
-
return (h(ThemedHost, { key: '
|
|
78
|
+
return (h(ThemedHost, { key: '11f93a805b545dbdf3d8f7f07d2ba9d9b72f9465' }, h("div", { key: '1947c9e35ae05a8ffda7d35c4f72edf8edd6eb78', class: label({
|
|
79
79
|
variant: this.variant,
|
|
80
80
|
iconOnly: this.iconOnly,
|
|
81
81
|
keepMobileContent: this.keepMobileContent,
|
|
82
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
82
|
+
}) }, 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(`
|
|
83
83
|
flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm
|
|
84
84
|
font-medium
|
|
85
85
|
`, {
|
|
86
86
|
hidden: !this.keepMobileContent,
|
|
87
87
|
'desktop-xs:block': !this.keepMobileContent,
|
|
88
|
-
}) }, h("slot", { key: '
|
|
88
|
+
}) }, h("slot", { key: 'b96c6e958fb8786e078fa9cbdeb1daac494ef9f3' }))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "p-label"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -88,13 +88,13 @@ export class NavigationItem {
|
|
|
88
88
|
render() {
|
|
89
89
|
const TagType = this.as;
|
|
90
90
|
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
91
|
-
return (h(ThemedHost, { key: '
|
|
91
|
+
return (h(ThemedHost, { key: 'f683b2979f9fde20b6e37ba7f3460fd052cce426', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '8f9b4557b535d893375bcbe9108a618aff26974e', class: navigationItem({
|
|
92
92
|
icon: !!this.icon,
|
|
93
93
|
active,
|
|
94
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
94
|
+
}), href: this.href, target: this.target }, h("div", { key: '6a32cd63b465492becb679ba08175e79a9c053c8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '5fd49857c3f424479731379311ee426d2bf9b79e', variant: this.icon })), h("span", { key: '8d1527282d584b49e7990455e6bba80debd48cd5', class: cn({
|
|
95
95
|
'has-counter': !!this.counter,
|
|
96
96
|
'w-full': this.applyFullWidth,
|
|
97
|
-
}) }, h("slot", { key: '
|
|
97
|
+
}) }, 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' }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "p-navigation-item"; }
|
|
100
100
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/molecules/navigation/section/navigation-section.component.js
CHANGED
|
@@ -6,7 +6,7 @@ export class NavigationSection {
|
|
|
6
6
|
*/
|
|
7
7
|
header;
|
|
8
8
|
render() {
|
|
9
|
-
return (h(ThemedHost, { key: '
|
|
9
|
+
return (h(ThemedHost, { key: '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' }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "p-navigation-section"; }
|
|
12
12
|
static get originalStyleUrls() {
|
|
@@ -61,12 +61,12 @@ export class Pagination {
|
|
|
61
61
|
_hasPaginationPages = true;
|
|
62
62
|
render() {
|
|
63
63
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
|
|
64
|
-
return (h(ThemedHost, { key: '
|
|
64
|
+
return (h(ThemedHost, { key: '29ed189925a9e93e1939cfd66cf91915a5b8474d' }, h("div", { key: '2705a46004eb47c6cbbf6dfa448ae69a6dfc96dc', class: pagination({
|
|
65
65
|
hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
|
|
66
66
|
(!this.enablePaginationSize && !this.enablePaginationPages),
|
|
67
|
-
}) }, this.enablePaginationPages && this.enablePaginationSize && (h(Fragment, { key: '
|
|
67
|
+
}) }, 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 &&
|
|
68
68
|
this.hideOnSinglePage &&
|
|
69
|
-
this._hasPaginationPages && (h("p-divider", { key: '
|
|
69
|
+
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 }) => {
|
|
70
70
|
this._hasPaginationPages = detail > 1;
|
|
71
71
|
this.pagesChange.emit(detail);
|
|
72
72
|
} })))));
|
|
@@ -28,7 +28,7 @@ export class Profile {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
const content = this._getContent();
|
|
31
|
-
return (h(ThemedHost, { key: '
|
|
31
|
+
return (h(ThemedHost, { key: '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)));
|
|
32
32
|
}
|
|
33
33
|
slotchange() {
|
|
34
34
|
this._checkDropdownSlot();
|
|
@@ -23,13 +23,13 @@ export class Range {
|
|
|
23
23
|
valueChange;
|
|
24
24
|
render() {
|
|
25
25
|
const percentage = Math.round((this.value / (this.max - this.min)) * 100);
|
|
26
|
-
return (h(ThemedHost, { key: '
|
|
26
|
+
return (h(ThemedHost, { key: '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 => {
|
|
27
27
|
const value = ev.target.value;
|
|
28
28
|
this.value = Number.parseFloat(value);
|
|
29
29
|
this.valueChange.emit(value);
|
|
30
|
-
} }), h("div", { key: '
|
|
30
|
+
} }), h("div", { key: '0bea7f03b87ab00d74780796f00f3eda90bc1b96', class: '\n z-1 absolute left-0 top-1/2 h-[2px] -translate-y-1/2 transform\n bg-indigo-600\n ', style: {
|
|
31
31
|
width: `calc(${percentage}% - (1rem * ${percentage} / 100))`,
|
|
32
|
-
} })), h("p-icon", { key: '
|
|
32
|
+
} })), h("p-icon", { key: '8136e15955e461ec30c3bb8d83cabbd80c8089f2', variant: 'plus' }))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "p-range"; }
|
|
35
35
|
static get encapsulation() { return "shadow"; }
|