@paperless/core 2.0.1-beta.26 → 2.0.1-beta.28
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/CHANGELOG.md +23 -0
- package/dist/build/index.esm.js +1 -1
- package/dist/build/index.esm.js.map +1 -1
- package/dist/build/{p-54f7740e.entry.js → p-04f4b015.entry.js} +2 -2
- package/dist/build/{p-ccbd2de0.entry.js → p-3fec2247.entry.js} +2 -2
- package/dist/build/{p-d82e4315.entry.js → p-45d789f5.entry.js} +2 -2
- package/dist/build/{p-f56de35e.entry.js → p-610eb0ff.entry.js} +2 -2
- package/dist/build/{p-401ff01b.entry.js → p-68647b9e.entry.js} +2 -2
- package/dist/build/p-859c4fb1.entry.js +2 -0
- package/dist/build/{p-7929ec90.entry.js → p-886c060f.entry.js} +2 -2
- package/dist/build/p-8f3c711b.entry.js +2 -0
- package/dist/build/p-8f3c711b.entry.js.map +1 -0
- package/dist/build/{p-9406a32e.entry.js → p-963f037a.entry.js} +2 -2
- package/dist/build/{p-e5a54d05.entry.js → p-971aac89.entry.js} +2 -2
- package/dist/{paperless/p-dc06602f.entry.js → build/p-9a0262b1.entry.js} +2 -2
- package/dist/{paperless/p-fde8b75b.entry.js → build/p-a0fad3d8.entry.js} +2 -2
- package/dist/build/{p-a38a330d.entry.js → p-a93ce615.entry.js} +2 -2
- package/dist/build/p-b4dbe1b7.js +2 -0
- package/dist/build/p-b51dcf11.js +2 -0
- package/dist/build/p-b51dcf11.js.map +1 -0
- package/dist/build/p-e839a672.entry.js +2 -0
- package/dist/build/p-efbc122f.js +2 -0
- package/dist/build/p-efbc122f.js.map +1 -0
- package/dist/build/{p-8b1a485b.entry.js → p-f173bb97.entry.js} +2 -2
- package/dist/build/p-f4545481.entry.js +2 -0
- package/dist/build/p-f4545481.entry.js.map +1 -0
- package/dist/build/paperless.esm.js +1 -1
- package/dist/build/paperless.esm.js.map +1 -1
- package/dist/cjs/{index-08db8a87.js → index-64168fc4.js} +28 -1
- package/dist/cjs/index-64168fc4.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/is-mobile-browser-0e393879.js +19 -0
- package/dist/cjs/is-mobile-browser-0e393879.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-calendar.cjs.entry.js +3 -29
- package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/p-checkbox_3.cjs.entry.js +3 -3
- package/dist/cjs/p-datepicker.cjs.entry.js +94 -5
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +3 -3
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +4 -4
- package/dist/cjs/p-input-error.cjs.entry.js +1 -1
- package/dist/cjs/p-input-group.cjs.entry.js +3 -3
- package/dist/cjs/p-label.cjs.entry.js +3 -3
- package/dist/cjs/p-navbar.cjs.entry.js +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
- package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
- package/dist/cjs/p-page-size-select_3.cjs.entry.js +1 -1
- package/dist/cjs/p-profile.cjs.entry.js +1 -1
- package/dist/cjs/p-select.cjs.entry.js +1 -1
- package/dist/cjs/p-stepper.cjs.entry.js +1 -1
- package/dist/cjs/p-toast.cjs.entry.js +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.css +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +64 -6
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
- package/dist/collection/components/molecules/field/field.component.js +3 -3
- package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
- package/dist/collection/components/molecules/input-group/input-group.component.js +3 -3
- package/dist/collection/components/molecules/label/label.component.js +3 -3
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +2 -2
- package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
- package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
- package/dist/collection/components/molecules/profile/profile.component.js +1 -1
- package/dist/collection/components/molecules/select/select.component.js +1 -1
- package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
- package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
- package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
- package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
- package/dist/collection/components/molecules/toast/toast.component.js +1 -1
- package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/collection/utils/is-mobile-browser.js +14 -0
- package/dist/collection/utils/is-mobile-browser.js.map +1 -0
- package/dist/components/calendar.component.js +1 -1
- package/dist/components/dropdown.component.js +3 -3
- package/dist/components/field.component.js +3 -3
- package/dist/components/index.js +1 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-error.component.js +1 -1
- package/dist/components/is-mobile-browser.js +17 -0
- package/dist/components/is-mobile-browser.js.map +1 -0
- package/dist/components/p-datepicker.js +97 -6
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-input-group.js +3 -3
- package/dist/components/p-label.js +3 -3
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.js +2 -2
- package/dist/components/p-navigation-section.js +1 -1
- package/dist/components/p-profile.js +1 -1
- package/dist/components/p-select.js +1 -1
- package/dist/components/p-stepper.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/components/pagination.component.js +1 -1
- package/dist/components/table-cell.component.js +1 -1
- package/dist/components/table-footer.component.js +1 -1
- package/dist/components/table-row.component.js +2 -2
- package/dist/esm/{index-538f1fd8.js → index-27408d5b.js} +28 -2
- package/dist/esm/index-27408d5b.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/is-mobile-browser-0f0bfd54.js +17 -0
- package/dist/esm/is-mobile-browser-0f0bfd54.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-calendar.entry.js +1 -27
- package/dist/esm/p-calendar.entry.js.map +1 -1
- package/dist/esm/p-checkbox_3.entry.js +3 -3
- package/dist/esm/p-datepicker.entry.js +94 -5
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +3 -3
- package/dist/esm/p-floating-menu-container_8.entry.js +4 -4
- package/dist/esm/p-input-error.entry.js +1 -1
- package/dist/esm/p-input-group.entry.js +3 -3
- package/dist/esm/p-label.entry.js +3 -3
- package/dist/esm/p-navbar.entry.js +1 -1
- package/dist/esm/p-navigation-item.entry.js +2 -2
- package/dist/esm/p-navigation-section.entry.js +1 -1
- package/dist/esm/p-page-size-select_3.entry.js +1 -1
- package/dist/esm/p-profile.entry.js +1 -1
- package/dist/esm/p-select.entry.js +1 -1
- package/dist/esm/p-stepper.entry.js +1 -1
- package/dist/esm/p-toast.entry.js +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/index.esm.js.map +1 -1
- package/dist/paperless/{p-54f7740e.entry.js → p-04f4b015.entry.js} +2 -2
- package/dist/paperless/{p-ccbd2de0.entry.js → p-3fec2247.entry.js} +2 -2
- package/dist/paperless/{p-d82e4315.entry.js → p-45d789f5.entry.js} +2 -2
- package/dist/paperless/{p-f56de35e.entry.js → p-610eb0ff.entry.js} +2 -2
- package/dist/paperless/{p-401ff01b.entry.js → p-68647b9e.entry.js} +2 -2
- package/dist/paperless/p-859c4fb1.entry.js +2 -0
- package/dist/paperless/{p-7929ec90.entry.js → p-886c060f.entry.js} +2 -2
- package/dist/paperless/p-8f3c711b.entry.js +2 -0
- package/dist/paperless/p-8f3c711b.entry.js.map +1 -0
- package/dist/paperless/{p-9406a32e.entry.js → p-963f037a.entry.js} +2 -2
- package/dist/paperless/{p-e5a54d05.entry.js → p-971aac89.entry.js} +2 -2
- package/dist/{build/p-dc06602f.entry.js → paperless/p-9a0262b1.entry.js} +2 -2
- package/dist/{build/p-fde8b75b.entry.js → paperless/p-a0fad3d8.entry.js} +2 -2
- package/dist/paperless/{p-a38a330d.entry.js → p-a93ce615.entry.js} +2 -2
- package/dist/paperless/p-b51dcf11.js +2 -0
- package/dist/paperless/p-b51dcf11.js.map +1 -0
- package/dist/paperless/p-e839a672.entry.js +2 -0
- package/dist/paperless/p-efbc122f.js +2 -0
- package/dist/paperless/p-efbc122f.js.map +1 -0
- package/dist/paperless/{p-8b1a485b.entry.js → p-f173bb97.entry.js} +2 -2
- package/dist/paperless/p-f4545481.entry.js +2 -0
- package/dist/paperless/p-f4545481.entry.js.map +1 -0
- package/dist/paperless/paperless.esm.js +1 -1
- package/dist/paperless/paperless.esm.js.map +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 +7 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/is-mobile-browser.d.ts +1 -0
- package/hydrate/index.js +135 -31
- package/hydrate/index.mjs +135 -31
- package/package.json +1 -1
- package/dist/build/p-23ccc7b6.entry.js +0 -2
- package/dist/build/p-23ccc7b6.entry.js.map +0 -1
- package/dist/build/p-2f613a2a.entry.js +0 -2
- package/dist/build/p-9cac28b6.js +0 -2
- package/dist/build/p-9cac28b6.js.map +0 -1
- package/dist/build/p-cd3c25ac.entry.js +0 -2
- package/dist/build/p-cd3c25ac.entry.js.map +0 -1
- package/dist/build/p-e078f787.entry.js +0 -2
- package/dist/build/p-faf3a10b.js +0 -2
- package/dist/cjs/index-08db8a87.js.map +0 -1
- package/dist/esm/index-538f1fd8.js.map +0 -1
- package/dist/paperless/p-23ccc7b6.entry.js +0 -2
- package/dist/paperless/p-23ccc7b6.entry.js.map +0 -1
- package/dist/paperless/p-2f613a2a.entry.js +0 -2
- package/dist/paperless/p-9cac28b6.js +0 -2
- package/dist/paperless/p-9cac28b6.js.map +0 -1
- package/dist/paperless/p-cd3c25ac.entry.js +0 -2
- package/dist/paperless/p-cd3c25ac.entry.js.map +0 -1
- package/dist/paperless/p-e078f787.entry.js +0 -2
- /package/dist/build/{p-54f7740e.entry.js.map → p-04f4b015.entry.js.map} +0 -0
- /package/dist/build/{p-ccbd2de0.entry.js.map → p-3fec2247.entry.js.map} +0 -0
- /package/dist/build/{p-d82e4315.entry.js.map → p-45d789f5.entry.js.map} +0 -0
- /package/dist/build/{p-f56de35e.entry.js.map → p-610eb0ff.entry.js.map} +0 -0
- /package/dist/build/{p-401ff01b.entry.js.map → p-68647b9e.entry.js.map} +0 -0
- /package/dist/build/{p-2f613a2a.entry.js.map → p-859c4fb1.entry.js.map} +0 -0
- /package/dist/build/{p-7929ec90.entry.js.map → p-886c060f.entry.js.map} +0 -0
- /package/dist/build/{p-9406a32e.entry.js.map → p-963f037a.entry.js.map} +0 -0
- /package/dist/build/{p-e5a54d05.entry.js.map → p-971aac89.entry.js.map} +0 -0
- /package/dist/build/{p-dc06602f.entry.js.map → p-9a0262b1.entry.js.map} +0 -0
- /package/dist/build/{p-fde8b75b.entry.js.map → p-a0fad3d8.entry.js.map} +0 -0
- /package/dist/build/{p-a38a330d.entry.js.map → p-a93ce615.entry.js.map} +0 -0
- /package/dist/build/{p-e078f787.entry.js.map → p-e839a672.entry.js.map} +0 -0
- /package/dist/build/{p-8b1a485b.entry.js.map → p-f173bb97.entry.js.map} +0 -0
- /package/dist/paperless/{p-54f7740e.entry.js.map → p-04f4b015.entry.js.map} +0 -0
- /package/dist/paperless/{p-ccbd2de0.entry.js.map → p-3fec2247.entry.js.map} +0 -0
- /package/dist/paperless/{p-d82e4315.entry.js.map → p-45d789f5.entry.js.map} +0 -0
- /package/dist/paperless/{p-f56de35e.entry.js.map → p-610eb0ff.entry.js.map} +0 -0
- /package/dist/paperless/{p-401ff01b.entry.js.map → p-68647b9e.entry.js.map} +0 -0
- /package/dist/paperless/{p-2f613a2a.entry.js.map → p-859c4fb1.entry.js.map} +0 -0
- /package/dist/paperless/{p-7929ec90.entry.js.map → p-886c060f.entry.js.map} +0 -0
- /package/dist/paperless/{p-9406a32e.entry.js.map → p-963f037a.entry.js.map} +0 -0
- /package/dist/paperless/{p-e5a54d05.entry.js.map → p-971aac89.entry.js.map} +0 -0
- /package/dist/paperless/{p-dc06602f.entry.js.map → p-9a0262b1.entry.js.map} +0 -0
- /package/dist/paperless/{p-fde8b75b.entry.js.map → p-a0fad3d8.entry.js.map} +0 -0
- /package/dist/paperless/{p-a38a330d.entry.js.map → p-a93ce615.entry.js.map} +0 -0
- /package/dist/paperless/{p-e078f787.entry.js.map → p-e839a672.entry.js.map} +0 -0
- /package/dist/paperless/{p-8b1a485b.entry.js.map → p-f173bb97.entry.js.map} +0 -0
|
@@ -41,11 +41,11 @@ const InputGroup = /*@__PURE__*/ proxyCustomElement(class InputGroup extends HTM
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
const { hasHeaderSlot, helper, label, prefix, suffix, errorAndErrorIsNotBoolean, errorVariant, } = this._getSlotInfo();
|
|
44
|
-
return (h(Host, { key: '
|
|
44
|
+
return (h(Host, { key: '7c6b1a6a99947e106e1643c7fc1be75a8f2b7cee', class: `p-input-group ${this.error?.length && 'error'} ${this.disabled && 'disabled'} ${this.focused && 'focused'} size-${this.size}` }, h("div", { key: 'e5169853ae114e0bb28dde38a9ca01a419c483fa', class: 'flex items-end justify-between' }, label && (h("div", { key: 'd6a86094fa1c23aa2ad0ae9be4e7b2c2e5f6b08a', class: 'input-label', onClick: () => this._focusInput() }, label, this.required && h("span", { key: '784a019a9e528c2ba660c1cf5ac639c0d22a7d49', class: 'ml-1 text-negative' }, "*"))), (helper || hasHeaderSlot) && (h("div", { key: 'ebcfae4c6dd40d6cf396a9e5e9bb3a92d3b97e6e', class: 'input-header' }, hasHeaderSlot && h("slot", { key: '88a47687137491526b7a4910cf525c6ca83feda5', name: 'header' }), helper && (h("p-helper", { key: 'c2e55ad18f1b42283698849e3d9d5ddbfe5bed56', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))), h("p-tooltip", { key: 'bf382febbfbc2f79c4d7d18011173eadd779b786', class: 'w-full', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean &&
|
|
45
45
|
errorVariant === 'element' &&
|
|
46
|
-
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, h("div", { key: '
|
|
46
|
+
(this.forceShowTooltip || this._forceShowTooltip), enableUserInput: false }, h("div", { key: '306065f4b9df5467febe25a249111a67affe7382', class: 'content', slot: 'trigger' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '8ee0a54494f54c91e812ac19692fe33de55b16ee', class: `prefix size-${this.size}`, onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), (suffix ||
|
|
47
47
|
(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||
|
|
48
|
-
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '
|
|
48
|
+
(this.icon && this.iconPosition === 'end')) && (h("div", { key: '07dae7781dd393de1101c6c6d5d8937d743bc5e5', class: `suffix size-${this.size}`, onClick: () => this._focusInput() }, errorAndErrorIsNotBoolean && errorVariant === 'icon' ? (h("p-input-error", { error: this.error, forceShowTooltip: this.forceShowTooltip || this._forceShowTooltip })) : this.icon && this.iconPosition === 'end' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix))), h("slot", { key: 'e9244425d359da5540cafa9d24f920254c0caefa', name: 'input' })))));
|
|
49
49
|
}
|
|
50
50
|
handleFocusIn() {
|
|
51
51
|
this._forceShowTooltip = true;
|
|
@@ -45,14 +45,14 @@ const Label = /*@__PURE__*/ proxyCustomElement(class Label extends HTMLElement {
|
|
|
45
45
|
this.keepMobileContent = false;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '1ea6b62ca882280297a9da6f6621c656ab5e5ad2', class: 'p-label' }, h("div", { key: '59a0a606b8d20ccf79154dd94436a2ecac6a78d7', class: label({
|
|
49
49
|
variant: this.variant,
|
|
50
50
|
iconOnly: this.iconOnly,
|
|
51
51
|
keepMobileContent: this.keepMobileContent,
|
|
52
|
-
}) }, this.icon && (h("p-icon", { key: '
|
|
52
|
+
}) }, this.icon && (h("p-icon", { key: 'c0a2010bdb110d4b9d94f4dd74d3070eaaf33c0c', class: 'flex-shrink-0', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), !this.iconOnly && (h("div", { key: '3080a8dea111f38a9eb73b60a984bdd39276c7ae', class: cn('flex-1 overflow-hidden text-ellipsis whitespace-nowrap text-sm', {
|
|
53
53
|
hidden: !this.keepMobileContent,
|
|
54
54
|
'desktop-xs:block': !this.keepMobileContent,
|
|
55
|
-
}) }, h("slot", { key: '
|
|
55
|
+
}) }, h("slot", { key: 'f2f655c88df2ef9c953b0993fdd34b818a062567' }))))));
|
|
56
56
|
}
|
|
57
57
|
static get style() { return PLabelStyle0; }
|
|
58
58
|
}, [1, "p-label", {
|
|
@@ -55,7 +55,7 @@ const Navbar = /*@__PURE__*/ proxyCustomElement(class Navbar extends HTMLElement
|
|
|
55
55
|
this._show = false;
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '900ed939d2ab652ff4d9770f4fbcbb606cdbd3ba', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, h("p-backdrop", { key: '6e9cc4a3aab95fcf7eddb2846a5ffdb853ae9f8e', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '838482d57234a24ce435536c227fdf3ab226b8cc', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '368f1a39868f592f40303fb217200d265a0201dd', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: '40c8f44565fa3798ee09900d2ac87230ca4fa0ea', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: 'f39bde405fdfa2a004c0e12c77aa7b825cadacc8', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '7f9c30322714025dc9922e368397c8147b2bae5a', name: 'company' })), h("div", { key: '18360a19ea43cab962960001202327467a235ffb', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: '1c99bfc9b34dfe6eaa802b67d43f78a6d5e6e20f', name: 'content' })), h("div", { key: 'cc250265c364af33026dbcb972ba4f3b1cc99bfc', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: '8b79bd563e93d6d3ea5aafca92d4499a4ef07a62', name: 'user' }))), h("div", { key: 'a1dd20c5b11a758c11a44b024aebd454b881c342', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: '02723bb57b6d1e5e93f20d13cd87879020527fa0', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: '03647eeeb2ee42c14ab373cf1cf46c909be9a973', name: 'topbar' }))));
|
|
59
59
|
}
|
|
60
60
|
handleCloseNavbar() {
|
|
61
61
|
this._show = false;
|
|
@@ -52,10 +52,10 @@ const NavigationItem = /*@__PURE__*/ proxyCustomElement(class NavigationItem ext
|
|
|
52
52
|
render() {
|
|
53
53
|
const TagType = this.as;
|
|
54
54
|
const active = this.active || this.class?.includes('active');
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'fd0d001679ae464ac2b9f0e4fa20f0fb64c8523d', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '69b28661607031697191fc1f4b0587e2bd2cee25', class: navigationItem({
|
|
56
56
|
icon: !!this.icon,
|
|
57
57
|
active,
|
|
58
|
-
}), href: this.href, target: this.target }, h("div", { key: '
|
|
58
|
+
}), href: this.href, target: this.target }, h("div", { key: 'aa9e7c60e62a4e82af779f94770b58ae10757ac8', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '31a6d07a4c90acc898ac346c7e7ecbbe8cb39a37', variant: this.icon })), h("span", { key: 'b9eaee4eddd78500657eee76ea19ef5a12d10479', class: this.counter && 'has-counter' }, h("slot", { key: '932d02bcf7251608a35cda8df7cfb6b545e83fca' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: '7b992d27f6accd7df40d20609045cc9e1f6f4974' }, this.counter)), !!this.loading && h("p-loader", { key: 'cad21a90aab7f340a78ce7b31cf60426649d835c', class: 'ml-auto' }))));
|
|
59
59
|
}
|
|
60
60
|
static get style() { return PNavigationItemStyle0; }
|
|
61
61
|
}, [4, "p-navigation-item", {
|
|
@@ -11,7 +11,7 @@ const NavigationSection = /*@__PURE__*/ proxyCustomElement(class NavigationSecti
|
|
|
11
11
|
this.header = undefined;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'aa7af42074a08744f5b6e07d5d878209790215cb', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '1ff0422bad541f4cb25e497151f4239cd2657548' }, this.header)), h("div", { key: 'f1c1089ff6a40535315efc1203d47cfdc1cf03b6', class: 'flex flex-col' }, h("slot", { key: '024ed5e805f64ee6c4beb018c4be83f2b910613d' }))));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return PNavigationSectionStyle0; }
|
|
17
17
|
}, [4, "p-navigation-section", {
|
|
@@ -35,7 +35,7 @@ const Profile = /*@__PURE__*/ proxyCustomElement(class Profile extends HTMLEleme
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
const content = this._getContent();
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'ed8dcfa862e21eb3e08871b88b376ec9ccccc74b', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
|
|
39
39
|
}
|
|
40
40
|
slotchange() {
|
|
41
41
|
this._checkDropdownSlot();
|
|
@@ -195,7 +195,7 @@ const Select = /*@__PURE__*/ proxyCustomElement(class Select extends HTMLElement
|
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return (h(Host, { key: '
|
|
198
|
+
return (h(Host, { key: 'c8e6d0b1ea9133a463bdd3fcd5a7bbe7344bfbd3', class: 'p-select' }, h("p-dropdown", { key: '4901191964e4ba438141b39d3328359683374aa1', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-field-container", { key: 'ba296caea08b2cb0c973be1ff8a8f29f4ea71ad7', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: '18437b40ba02760454809f1e2f92354e38b30e29', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '8bb161da7fa806ae480083c2e719430b1a36bcf0', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
|
|
199
199
|
}
|
|
200
200
|
documentClickHandler({ target }) {
|
|
201
201
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -96,7 +96,7 @@ const Stepper = /*@__PURE__*/ proxyCustomElement(class Stepper extends HTMLEleme
|
|
|
96
96
|
this._generateSteps(true);
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '51f99206402f99e4376b21ab8d62467c48ebee4d', class: 'p-stepper' }, h("slot", { key: 'e5d42ec1843f8a98034d1fade84a39ec9ecd17f5', onSlotchange: this._onSlotChange })));
|
|
100
100
|
}
|
|
101
101
|
_onActiveStepChange() {
|
|
102
102
|
this._generateSteps();
|
|
@@ -25,7 +25,7 @@ const Toast = /*@__PURE__*/ proxyCustomElement(class Toast extends HTMLElement {
|
|
|
25
25
|
*/
|
|
26
26
|
action;
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '3b395df421e00c30e6327c2fd441eb28529e1284', class: `p-toast variant-${this.variant}`, onClick: () => this._onClick() }, h("div", { key: '462c79c5f7f601efefdbd62816c7e530a9962256', class: 'flex w-full min-w-0 flex-col' }, h("p", { key: '6d3164bcbb24221af015c96c3348a65a379633e9', class: 'font-semibold text-storm' }, this.header?.length ? this.header : h("slot", { name: 'header' })), h("p", { key: '803017ee064e98e746f9f98979694ea19aed17af', class: 'w-full text-sm text-storm-medium' }, this.content?.length ? this.content : h("slot", { name: 'content' }))), this.enableAction && (h("p-button", { key: 'cf478aa9b216e6091c5bf073af57110fe94b14e1', variant: 'secondary', iconOnly: true, size: 'sm', icon: this.actionIcon, iconFlip: this.actionIconFlip, iconRotate: this.actionIconRotate, class: 'flex-shrink-0' }))));
|
|
29
29
|
}
|
|
30
30
|
_onClick() {
|
|
31
31
|
if (this.enableAction) {
|
|
@@ -25,7 +25,7 @@ const Pagination = /*@__PURE__*/ proxyCustomElement(class Pagination extends HTM
|
|
|
25
25
|
this._generate();
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '2059378b68c7958bced60dc09f6bf46587724dc1', class: `p-pagination ${this.hideOnSinglePage && this._set?.length === 3 && 'hidden'}` }, this._set?.map(p => {
|
|
29
29
|
if (p.type === 'previous' || p.type === 'next') {
|
|
30
30
|
return (h("p-pagination-item", { onClick: () => p.type === 'previous'
|
|
31
31
|
? this._previousClick()
|
|
@@ -33,7 +33,7 @@ const TableCell = /*@__PURE__*/ proxyCustomElement(class TableCell extends HTMLE
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'd4a279d8bf16c93cfcab39340c65a73b73b9208a', class: {
|
|
37
37
|
'p-table-cell': true,
|
|
38
38
|
[`variant-${this.variant}`]: true,
|
|
39
39
|
...this._getColumnClasses(),
|
|
@@ -52,7 +52,7 @@ const TableFooter = /*@__PURE__*/ proxyCustomElement(class TableFooter extends H
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
const hidePageSizeSelect = this.hideOnSinglePage && this.total < this.pageSizeOptions?.[0];
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'ef96f7c0d01bd9d85f36becfc5458ae1e335bebf', class: `p-table-footer ${!this.enablePageSize && 'page-size-disabled'} ${!this.enablePagination && 'pagination-disabled'} ${!this.enableExport && 'export-disabled'}` }, !this.loading && this.enablePagination && this.enablePageSize && (h("p-page-size-select", { key: '6acc6c9aec481853f9bf376dc3e2644a60836386', class: !hidePageSizeSelect && 'hidden desktop-xs:flex', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) })), this.loading && (h("p-loader", { key: 'b58677035576cd44ffdda3b95de496caeb7ada12', variant: 'ghost', class: 'h-8 w-full rounded' })), !this.loading && this.enablePagination && (h("p-pagination", { key: '1d6c73ecfb6aff3b3e061616c9ad100f08cc4c62', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail) })), !this.loading && this.enableExport && (h("p-button", { key: '5ba22bf6410c30242baccb5b999176a73eefe665', class: 'hidden desktop-xs:flex', variant: 'secondary', size: 'sm', icon: 'download', onClick: () => this.export.emit() }, formatTranslation(this._locales.export)))));
|
|
56
56
|
}
|
|
57
57
|
async _setLocales() {
|
|
58
58
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -13,9 +13,9 @@ const TableRow = /*@__PURE__*/ proxyCustomElement(class TableRow extends HTMLEle
|
|
|
13
13
|
this.enableHover = true;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'ef1fdb723ada0436bb2635a6befb0a2d4d3ffa87', class: `p-table-row variant-${this.variant} ${this.enableHover &&
|
|
17
17
|
this.variant === 'default' &&
|
|
18
|
-
'enable-hover'} group` }, h("div", { key: '
|
|
18
|
+
'enable-hover'} group` }, h("div", { key: 'fd05bf187d722815cbe86d90b7ffac78188b7b17', class: "content" }, h("slot", { key: 'b9ac1208c608c7b50b3e7398ed6a22e551aeb5e0' })), this.variant === 'default' && h("p-divider", { key: '2222dbad0f1cd7f742e76a218cd7981589d3bff0', class: "m-0" })));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return PTableRowStyle0; }
|
|
21
21
|
}, [1, "p-table-row", {
|
|
@@ -260,6 +260,32 @@ function isValid(dirtyDate) {
|
|
|
260
260
|
return !isNaN(Number(date));
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
/**
|
|
264
|
+
* @name startOfMonth
|
|
265
|
+
* @category Month Helpers
|
|
266
|
+
* @summary Return the start of a month for the given date.
|
|
267
|
+
*
|
|
268
|
+
* @description
|
|
269
|
+
* Return the start of a month for the given date.
|
|
270
|
+
* The result will be in the local timezone.
|
|
271
|
+
*
|
|
272
|
+
* @param {Date|Number} date - the original date
|
|
273
|
+
* @returns {Date} the start of a month
|
|
274
|
+
* @throws {TypeError} 1 argument required
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* // The start of a month for 2 September 2014 11:55:00:
|
|
278
|
+
* const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))
|
|
279
|
+
* //=> Mon Sep 01 2014 00:00:00
|
|
280
|
+
*/
|
|
281
|
+
function startOfMonth(dirtyDate) {
|
|
282
|
+
requiredArgs(1, arguments);
|
|
283
|
+
var date = toDate(dirtyDate);
|
|
284
|
+
date.setDate(1);
|
|
285
|
+
date.setHours(0, 0, 0, 0);
|
|
286
|
+
return date;
|
|
287
|
+
}
|
|
288
|
+
|
|
263
289
|
/**
|
|
264
290
|
* @name subMilliseconds
|
|
265
291
|
* @category Millisecond Helpers
|
|
@@ -2304,6 +2330,6 @@ function isBefore(dirtyDate, dirtyDateToCompare) {
|
|
|
2304
2330
|
return date.getTime() < dateToCompare.getTime();
|
|
2305
2331
|
}
|
|
2306
2332
|
|
|
2307
|
-
export { _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, getUTCISOWeek as d, getDefaultOptions as e, subMilliseconds as f, getUTCWeekYear as g, getTimezoneOffsetInMilliseconds as h, defaultLocale as i, isProtectedWeekYearToken as j, throwProtectedError as k, longFormatters$1 as l, isProtectedDayOfYearToken as m, isValid as n, isBefore as o, isAfter as p,
|
|
2333
|
+
export { _typeof as _, startOfUTCISOWeek as a, getUTCWeek as b, toInteger as c, getUTCISOWeek as d, getDefaultOptions as e, subMilliseconds as f, getUTCWeekYear as g, getTimezoneOffsetInMilliseconds as h, defaultLocale as i, isProtectedWeekYearToken as j, throwProtectedError as k, longFormatters$1 as l, isProtectedDayOfYearToken as m, isValid as n, isBefore as o, isAfter as p, format as q, requiredArgs as r, startOfUTCWeek as s, toDate as t, startOfDay as u, startOfMonth as v, isSameDay as w };
|
|
2308
2334
|
|
|
2309
|
-
//# sourceMappingURL=index-
|
|
2335
|
+
//# sourceMappingURL=index-27408d5b.js.map
|