@paperless/core 3.2.0 → 3.2.2
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/assets/icons/general/lamp.svg +3 -10
- package/dist/assets/icons/general/math.svg +7 -14
- package/dist/assets/icons/general/newtab.svg +3 -10
- package/dist/assets/icons/general/spinner.svg +0 -7
- package/dist/assets/icons/general/spinning.svg +0 -7
- package/dist/assets/icons/general/stack.svg +3 -10
- package/dist/build/index.esm.js +1 -1
- package/dist/build/{p-114447e4.entry.js → p-2c0ca302.entry.js} +1 -1
- package/dist/{paperless/p-BlJazAvY.js → build/p-DPmts3W0.js} +1 -1
- package/dist/{paperless/p-afa4d38a.entry.js → build/p-eaa0079d.entry.js} +1 -1
- package/dist/build/{p-1c3e36cf.js → p-fa2e80c6.js} +1 -1
- package/dist/build/paperless.esm.js +1 -1
- package/dist/cjs/{icons-BFoxhX6L.js → icons-BHz4nb3U.js} +16 -58
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +11 -6
- package/dist/collection/assets/icons/general/lamp.svg +3 -10
- package/dist/collection/assets/icons/general/math.svg +7 -14
- package/dist/collection/assets/icons/general/newtab.svg +3 -10
- package/dist/collection/assets/icons/general/spinner.svg +0 -7
- package/dist/collection/assets/icons/general/spinning.svg +0 -7
- package/dist/collection/assets/icons/general/stack.svg +3 -10
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +11 -6
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CXg0xBGH.js → p-0Uawv030.js} +1 -1
- package/dist/components/{p-DLYJuP63.js → p-48UlhVtz.js} +1 -1
- package/dist/components/{p-CeySqTb3.js → p-AkD55vN_.js} +1 -1
- package/dist/components/{p-DlMZf72T.js → p-BAvGAs2F.js} +1 -1
- package/dist/components/{p-5NU3sI-6.js → p-BEu_Xlbv.js} +1 -1
- package/dist/components/{p-BruraPn4.js → p-BmU3MAfH.js} +1 -1
- package/dist/components/{p-BwzYUgjx.js → p-COFt46UN.js} +1 -1
- package/dist/components/{p-CDP8S8lL.js → p-Cat2_HoM.js} +1 -1
- package/dist/components/{p-C1irPVgy.js → p-Cr_WB0kg.js} +1 -1
- package/dist/components/{p-D0Af7BtI.js → p-CtxKjhiD.js} +1 -1
- package/dist/components/{p-BtWP9QJR.js → p-D8FhwO0Q.js} +1 -1
- package/dist/components/{p-B7iPzLJ1.js → p-DKnCWy7F.js} +1 -1
- package/dist/{build/p-BlJazAvY.js → components/p-DPmts3W0.js} +1 -1
- package/dist/components/{p-nOG0jGaD.js → p-DR1auS78.js} +1 -1
- package/dist/components/{p-CyL9rHm8.js → p-DT72kk3I.js} +1 -1
- package/dist/components/{p-rXG9U1a1.js → p-DlQumf-0.js} +1 -1
- package/dist/components/{p-IbAvjZ3P.js → p-Dy1wXwZf.js} +1 -1
- package/dist/components/{p-DmlFVaBd.js → p-NEqovphH.js} +1 -1
- package/dist/components/{p-BKt8zLAB.js → p-SYK2C-7G.js} +1 -1
- package/dist/components/{p-D-y3A1iZ.js → p-ShAy0ruV.js} +1 -1
- package/dist/components/{p-Dk5Jl6vH.js → p-aZcUXH1b.js} +1 -1
- package/dist/components/p-accordion.js +1 -1
- package/dist/components/p-attachment.js +1 -1
- package/dist/components/p-button.js +1 -1
- package/dist/components/p-calendar.js +1 -1
- package/dist/components/p-card-header.js +1 -1
- package/dist/components/p-checkbox.js +1 -1
- package/dist/components/p-cropper.js +2 -2
- package/dist/components/p-datepicker.js +1 -1
- package/dist/components/p-drawer-header.js +1 -1
- package/dist/components/p-drawer.js +1 -1
- package/dist/components/p-dropdown-menu-item.js +1 -1
- package/dist/components/p-empty-state.js +1 -1
- package/dist/components/p-field-container.js +1 -1
- package/dist/components/p-field.js +1 -1
- package/dist/components/p-floating-menu-container.js +1 -1
- package/dist/components/p-floating-menu-item.js +1 -1
- package/dist/components/p-helper.js +1 -1
- package/dist/components/p-icon.js +1 -1
- package/dist/components/p-info-panel.js +1 -1
- package/dist/components/p-label.js +1 -1
- package/dist/components/p-listing-item.js +1 -1
- package/dist/components/p-modal-header.js +1 -1
- package/dist/components/p-modal.js +1 -1
- package/dist/components/p-navbar.js +1 -1
- package/dist/components/p-navigation-item.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-segment-item.js +1 -1
- package/dist/components/p-select.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.js +1 -1
- package/dist/components/p-toast.js +1 -1
- package/dist/esm/{icons-BlJazAvY.js → icons-DPmts3W0.js} +16 -58
- package/dist/esm/index.js +1 -1
- package/dist/esm/p-button_3.entry.js +1 -1
- package/dist/esm/p-datepicker.entry.js +11 -6
- package/dist/index.html +1 -1
- package/dist/paperless/index.esm.js +1 -1
- package/dist/paperless/{p-114447e4.entry.js → p-2c0ca302.entry.js} +1 -1
- package/dist/{components/p-BlJazAvY.js → paperless/p-DPmts3W0.js} +1 -1
- package/dist/{build/p-afa4d38a.entry.js → paperless/p-eaa0079d.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 +27 -64
- package/hydrate/index.mjs +27 -64
- package/package.json +1 -1
package/hydrate/index.js
CHANGED
|
@@ -7504,16 +7504,9 @@ var integration = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1
|
|
|
7504
7504
|
`;
|
|
7505
7505
|
|
|
7506
7506
|
var lamp = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7507
|
-
<
|
|
7508
|
-
<path d="
|
|
7509
|
-
<path d="
|
|
7510
|
-
<path d="M8.5 3.5C9.75 3.71062 10.7881 4.75 11 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7511
|
-
</g>
|
|
7512
|
-
<defs>
|
|
7513
|
-
<clipPath id="clip0_4692_6386">
|
|
7514
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7515
|
-
</clipPath>
|
|
7516
|
-
</defs>
|
|
7507
|
+
<path d="M5.5 14.5H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7508
|
+
<path d="M4.91874 10.4375C4.32434 9.97317 3.8429 9.38018 3.51058 8.70308C3.17825 8.02598 3.00368 7.28238 2.99999 6.52813C2.98499 3.81813 5.16999 1.5625 7.87936 1.5C8.92937 1.47457 9.96072 1.78044 10.8271 2.37421C11.6935 2.96799 12.3508 3.81951 12.706 4.80797C13.0611 5.79643 13.0959 6.87162 12.8055 7.88099C12.5151 8.89036 11.9142 9.78265 11.0881 10.4313C10.9059 10.5725 10.7582 10.7535 10.6563 10.9603C10.5544 11.1671 10.501 11.3944 10.5 11.625V12C10.5 12.1326 10.4473 12.2598 10.3535 12.3536C10.2598 12.4473 10.1326 12.5 9.99999 12.5H5.99999C5.86738 12.5 5.7402 12.4473 5.64643 12.3536C5.55266 12.2598 5.49999 12.1326 5.49999 12V11.625C5.49975 11.3959 5.44727 11.1699 5.34655 10.9641C5.24583 10.7583 5.09952 10.5782 4.91874 10.4375Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7509
|
+
<path d="M8.5 3.5C9.75 3.71062 10.7881 4.75 11 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7517
7510
|
</svg>
|
|
7518
7511
|
`;
|
|
7519
7512
|
|
|
@@ -7569,20 +7562,13 @@ var mail = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fil
|
|
|
7569
7562
|
`;
|
|
7570
7563
|
|
|
7571
7564
|
var math = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7572
|
-
<
|
|
7573
|
-
<path d="
|
|
7574
|
-
<path d="
|
|
7575
|
-
<path d="
|
|
7576
|
-
<path d="M9.5
|
|
7577
|
-
<path d="
|
|
7578
|
-
<path d="
|
|
7579
|
-
<path d="M13 3L10 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7580
|
-
</g>
|
|
7581
|
-
<defs>
|
|
7582
|
-
<clipPath id="clip0_4695_6421">
|
|
7583
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7584
|
-
</clipPath>
|
|
7585
|
-
</defs>
|
|
7565
|
+
<path d="M2.5 4.5H6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7566
|
+
<path d="M4.5 9.5V13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7567
|
+
<path d="M2.5 11.5H6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7568
|
+
<path d="M9.5 10.5H13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7569
|
+
<path d="M9.5 12.5H13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7570
|
+
<path d="M10 3L13 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7571
|
+
<path d="M13 3L10 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7586
7572
|
</svg>
|
|
7587
7573
|
`;
|
|
7588
7574
|
|
|
@@ -7672,16 +7658,9 @@ var negative = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"
|
|
|
7672
7658
|
`;
|
|
7673
7659
|
|
|
7674
7660
|
var newTab = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7675
|
-
<
|
|
7676
|
-
<path d="
|
|
7677
|
-
<path d="
|
|
7678
|
-
<path d="M11.5 8.5V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7679
|
-
</g>
|
|
7680
|
-
<defs>
|
|
7681
|
-
<clipPath id="clip0_4683_10791">
|
|
7682
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7683
|
-
</clipPath>
|
|
7684
|
-
</defs>
|
|
7661
|
+
<path d="M8.5 7.5L13.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7662
|
+
<path d="M13.5 6.5L13.4994 2.50062L9.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7663
|
+
<path d="M11.5 8.5V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7685
7664
|
</svg>
|
|
7686
7665
|
`;
|
|
7687
7666
|
|
|
@@ -7925,7 +7904,6 @@ var sparkle = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"
|
|
|
7925
7904
|
`;
|
|
7926
7905
|
|
|
7927
7906
|
var spinner = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7928
|
-
<g clip-path="url(#clip0_4515_39790)">
|
|
7929
7907
|
<path d="M8 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7930
7908
|
<path d="M12.2425 3.75757L10.8281 5.17194" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7931
7909
|
<path d="M14 8H12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -7934,17 +7912,10 @@ var spinner = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xml
|
|
|
7934
7912
|
<path d="M3.75751 12.2425L5.17188 10.8281" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7935
7913
|
<path d="M2 8H4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7936
7914
|
<path d="M3.75751 3.75757L5.17188 5.17194" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7937
|
-
</g>
|
|
7938
|
-
<defs>
|
|
7939
|
-
<clipPath id="clip0_4515_39790">
|
|
7940
|
-
<rect width="16" height="16" fill="white"/>
|
|
7941
|
-
</clipPath>
|
|
7942
|
-
</defs>
|
|
7943
7915
|
</svg>
|
|
7944
7916
|
`;
|
|
7945
7917
|
|
|
7946
7918
|
var spinning = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7947
|
-
<g clip-path="url(#clip0_4515_39800)">
|
|
7948
7919
|
<path d="M8 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7949
7920
|
<path d="M14 8H12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7950
7921
|
<path d="M12.2425 12.2425L10.8281 10.8281" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -7952,26 +7923,13 @@ var spinning = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xm
|
|
|
7952
7923
|
<path d="M3.75751 12.2425L5.17188 10.8281" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7953
7924
|
<path d="M2 8H4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7954
7925
|
<path d="M3.75751 3.75757L5.17188 5.17194" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7955
|
-
</g>
|
|
7956
|
-
<defs>
|
|
7957
|
-
<clipPath id="clip0_4515_39800">
|
|
7958
|
-
<rect width="16" height="16" fill="white"/>
|
|
7959
|
-
</clipPath>
|
|
7960
|
-
</defs>
|
|
7961
7926
|
</svg>
|
|
7962
7927
|
`;
|
|
7963
7928
|
|
|
7964
7929
|
var stack = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7965
|
-
<
|
|
7966
|
-
<path d="M2
|
|
7967
|
-
<path d="M2
|
|
7968
|
-
<path d="M2 5L8 8.5L14 5L8 1.5L2 5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7969
|
-
</g>
|
|
7970
|
-
<defs>
|
|
7971
|
-
<clipPath id="clip0_4695_6422">
|
|
7972
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7973
|
-
</clipPath>
|
|
7974
|
-
</defs>
|
|
7930
|
+
<path d="M2 11L8 14.5L14 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7931
|
+
<path d="M2 8L8 11.5L14 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7932
|
+
<path d="M2 5L8 8.5L14 5L8 1.5L2 5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7975
7933
|
</svg>
|
|
7976
7934
|
`;
|
|
7977
7935
|
|
|
@@ -92309,14 +92267,16 @@ class Datepicker {
|
|
|
92309
92267
|
}
|
|
92310
92268
|
this.parseMinDate(this.minDate);
|
|
92311
92269
|
this.parseMaxDate(this.maxDate);
|
|
92270
|
+
this._isMobileBrowser = isMobileBrowser();
|
|
92271
|
+
this.parseValue(this.value);
|
|
92272
|
+
}
|
|
92273
|
+
componentWillRender() {
|
|
92312
92274
|
if (this.mode !== 'day' && this.format === this._defaultFormats['day']) {
|
|
92313
92275
|
this.format = this._defaultFormats[this.mode];
|
|
92314
92276
|
}
|
|
92315
|
-
this._isMobileBrowser = isMobileBrowser();
|
|
92316
|
-
this.parseValue(this.value);
|
|
92317
92277
|
}
|
|
92318
92278
|
render() {
|
|
92319
|
-
return (hAsync("p-dropdown", { key: '
|
|
92279
|
+
return (hAsync("p-dropdown", { key: '3024ca24d1ed1206612566b20e387a482ece7979', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, hAsync("p-field", { key: '204a9a00ca533875c61c7838807629e54b822e01', 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 && (hAsync("input", { key: '1d43b23fc1459b84fa72f5f8d35e62b576243f90', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
92320
92280
|
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
92321
92281
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92322
92282
|
}), min: this._minDate &&
|
|
@@ -92325,7 +92285,7 @@ class Datepicker {
|
|
|
92325
92285
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
92326
92286
|
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
92327
92287
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92328
|
-
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: '
|
|
92288
|
+
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: 'ba83aeee5c1cc9073bd71361a9011696761073d1', slot: 'items', tabIndex: -1 }, hAsync("p-calendar", { key: '13e5834b61f979f0deccb01ccf7bc938dabc4076', 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) }))));
|
|
92329
92289
|
}
|
|
92330
92290
|
documentClickHandler({ target }) {
|
|
92331
92291
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -92342,7 +92302,8 @@ class Datepicker {
|
|
|
92342
92302
|
}
|
|
92343
92303
|
this._showDropdown = true;
|
|
92344
92304
|
}
|
|
92345
|
-
_onBlur(ev, parseFormat
|
|
92305
|
+
_onBlur(ev, parseFormat) {
|
|
92306
|
+
parseFormat = parseFormat || this.format;
|
|
92346
92307
|
if (this._isMobileBrowser && this._dateInputRef) {
|
|
92347
92308
|
return;
|
|
92348
92309
|
}
|
|
@@ -92353,7 +92314,9 @@ class Datepicker {
|
|
|
92353
92314
|
if (target.value === null) {
|
|
92354
92315
|
return;
|
|
92355
92316
|
}
|
|
92356
|
-
const value = dateFnsExports.parse(target.value, parseFormat, new Date()
|
|
92317
|
+
const value = dateFnsExports.parse(target.value, parseFormat, new Date(), {
|
|
92318
|
+
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92319
|
+
});
|
|
92357
92320
|
if (value === this._value) {
|
|
92358
92321
|
return;
|
|
92359
92322
|
}
|
package/hydrate/index.mjs
CHANGED
|
@@ -7502,16 +7502,9 @@ var integration = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1
|
|
|
7502
7502
|
`;
|
|
7503
7503
|
|
|
7504
7504
|
var lamp = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7505
|
-
<
|
|
7506
|
-
<path d="
|
|
7507
|
-
<path d="
|
|
7508
|
-
<path d="M8.5 3.5C9.75 3.71062 10.7881 4.75 11 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7509
|
-
</g>
|
|
7510
|
-
<defs>
|
|
7511
|
-
<clipPath id="clip0_4692_6386">
|
|
7512
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7513
|
-
</clipPath>
|
|
7514
|
-
</defs>
|
|
7505
|
+
<path d="M5.5 14.5H10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7506
|
+
<path d="M4.91874 10.4375C4.32434 9.97317 3.8429 9.38018 3.51058 8.70308C3.17825 8.02598 3.00368 7.28238 2.99999 6.52813C2.98499 3.81813 5.16999 1.5625 7.87936 1.5C8.92937 1.47457 9.96072 1.78044 10.8271 2.37421C11.6935 2.96799 12.3508 3.81951 12.706 4.80797C13.0611 5.79643 13.0959 6.87162 12.8055 7.88099C12.5151 8.89036 11.9142 9.78265 11.0881 10.4313C10.9059 10.5725 10.7582 10.7535 10.6563 10.9603C10.5544 11.1671 10.501 11.3944 10.5 11.625V12C10.5 12.1326 10.4473 12.2598 10.3535 12.3536C10.2598 12.4473 10.1326 12.5 9.99999 12.5H5.99999C5.86738 12.5 5.7402 12.4473 5.64643 12.3536C5.55266 12.2598 5.49999 12.1326 5.49999 12V11.625C5.49975 11.3959 5.44727 11.1699 5.34655 10.9641C5.24583 10.7583 5.09952 10.5782 4.91874 10.4375Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7507
|
+
<path d="M8.5 3.5C9.75 3.71062 10.7881 4.75 11 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7515
7508
|
</svg>
|
|
7516
7509
|
`;
|
|
7517
7510
|
|
|
@@ -7567,20 +7560,13 @@ var mail = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fil
|
|
|
7567
7560
|
`;
|
|
7568
7561
|
|
|
7569
7562
|
var math = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7570
|
-
<
|
|
7571
|
-
<path d="
|
|
7572
|
-
<path d="
|
|
7573
|
-
<path d="
|
|
7574
|
-
<path d="M9.5
|
|
7575
|
-
<path d="
|
|
7576
|
-
<path d="
|
|
7577
|
-
<path d="M13 3L10 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7578
|
-
</g>
|
|
7579
|
-
<defs>
|
|
7580
|
-
<clipPath id="clip0_4695_6421">
|
|
7581
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7582
|
-
</clipPath>
|
|
7583
|
-
</defs>
|
|
7563
|
+
<path d="M2.5 4.5H6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7564
|
+
<path d="M4.5 9.5V13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7565
|
+
<path d="M2.5 11.5H6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7566
|
+
<path d="M9.5 10.5H13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7567
|
+
<path d="M9.5 12.5H13.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7568
|
+
<path d="M10 3L13 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7569
|
+
<path d="M13 3L10 6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7584
7570
|
</svg>
|
|
7585
7571
|
`;
|
|
7586
7572
|
|
|
@@ -7670,16 +7656,9 @@ var negative = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"
|
|
|
7670
7656
|
`;
|
|
7671
7657
|
|
|
7672
7658
|
var newTab = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7673
|
-
<
|
|
7674
|
-
<path d="
|
|
7675
|
-
<path d="
|
|
7676
|
-
<path d="M11.5 8.5V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7677
|
-
</g>
|
|
7678
|
-
<defs>
|
|
7679
|
-
<clipPath id="clip0_4683_10791">
|
|
7680
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7681
|
-
</clipPath>
|
|
7682
|
-
</defs>
|
|
7659
|
+
<path d="M8.5 7.5L13.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7660
|
+
<path d="M13.5 6.5L13.4994 2.50062L9.5 2.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7661
|
+
<path d="M11.5 8.5V13C11.5 13.1326 11.4473 13.2598 11.3536 13.3536C11.2598 13.4473 11.1326 13.5 11 13.5H3C2.86739 13.5 2.74021 13.4473 2.64645 13.3536C2.55268 13.2598 2.5 13.1326 2.5 13V5C2.5 4.86739 2.55268 4.74021 2.64645 4.64645C2.74021 4.55268 2.86739 4.5 3 4.5H7.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7683
7662
|
</svg>
|
|
7684
7663
|
`;
|
|
7685
7664
|
|
|
@@ -7923,7 +7902,6 @@ var sparkle = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"
|
|
|
7923
7902
|
`;
|
|
7924
7903
|
|
|
7925
7904
|
var spinner = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7926
|
-
<g clip-path="url(#clip0_4515_39790)">
|
|
7927
7905
|
<path d="M8 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7928
7906
|
<path d="M12.2425 3.75757L10.8281 5.17194" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7929
7907
|
<path d="M14 8H12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -7932,17 +7910,10 @@ var spinner = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xml
|
|
|
7932
7910
|
<path d="M3.75751 12.2425L5.17188 10.8281" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7933
7911
|
<path d="M2 8H4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7934
7912
|
<path d="M3.75751 3.75757L5.17188 5.17194" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7935
|
-
</g>
|
|
7936
|
-
<defs>
|
|
7937
|
-
<clipPath id="clip0_4515_39790">
|
|
7938
|
-
<rect width="16" height="16" fill="white"/>
|
|
7939
|
-
</clipPath>
|
|
7940
|
-
</defs>
|
|
7941
7913
|
</svg>
|
|
7942
7914
|
`;
|
|
7943
7915
|
|
|
7944
7916
|
var spinning = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7945
|
-
<g clip-path="url(#clip0_4515_39800)">
|
|
7946
7917
|
<path d="M8 2V4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7947
7918
|
<path d="M14 8H12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7948
7919
|
<path d="M12.2425 12.2425L10.8281 10.8281" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
@@ -7950,26 +7921,13 @@ var spinning = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xm
|
|
|
7950
7921
|
<path d="M3.75751 12.2425L5.17188 10.8281" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7951
7922
|
<path d="M2 8H4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7952
7923
|
<path d="M3.75751 3.75757L5.17188 5.17194" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7953
|
-
</g>
|
|
7954
|
-
<defs>
|
|
7955
|
-
<clipPath id="clip0_4515_39800">
|
|
7956
|
-
<rect width="16" height="16" fill="white"/>
|
|
7957
|
-
</clipPath>
|
|
7958
|
-
</defs>
|
|
7959
7924
|
</svg>
|
|
7960
7925
|
`;
|
|
7961
7926
|
|
|
7962
7927
|
var stack = `<svg width="1em" height="1em" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7963
|
-
<
|
|
7964
|
-
<path d="M2
|
|
7965
|
-
<path d="M2
|
|
7966
|
-
<path d="M2 5L8 8.5L14 5L8 1.5L2 5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7967
|
-
</g>
|
|
7968
|
-
<defs>
|
|
7969
|
-
<clipPath id="clip0_4695_6422">
|
|
7970
|
-
<rect width="1em" height="1em" fill="currentColor"/>
|
|
7971
|
-
</clipPath>
|
|
7972
|
-
</defs>
|
|
7928
|
+
<path d="M2 11L8 14.5L14 11" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7929
|
+
<path d="M2 8L8 11.5L14 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7930
|
+
<path d="M2 5L8 8.5L14 5L8 1.5L2 5Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7973
7931
|
</svg>
|
|
7974
7932
|
`;
|
|
7975
7933
|
|
|
@@ -92307,14 +92265,16 @@ class Datepicker {
|
|
|
92307
92265
|
}
|
|
92308
92266
|
this.parseMinDate(this.minDate);
|
|
92309
92267
|
this.parseMaxDate(this.maxDate);
|
|
92268
|
+
this._isMobileBrowser = isMobileBrowser();
|
|
92269
|
+
this.parseValue(this.value);
|
|
92270
|
+
}
|
|
92271
|
+
componentWillRender() {
|
|
92310
92272
|
if (this.mode !== 'day' && this.format === this._defaultFormats['day']) {
|
|
92311
92273
|
this.format = this._defaultFormats[this.mode];
|
|
92312
92274
|
}
|
|
92313
|
-
this._isMobileBrowser = isMobileBrowser();
|
|
92314
|
-
this.parseValue(this.value);
|
|
92315
92275
|
}
|
|
92316
92276
|
render() {
|
|
92317
|
-
return (hAsync("p-dropdown", { key: '
|
|
92277
|
+
return (hAsync("p-dropdown", { key: '3024ca24d1ed1206612566b20e387a482ece7979', allowOverflow: true, applyFullWidth: false, applyMaxWidth: false, disableTriggerClick: true, insideClick: true, isDatepicker: true, placement: this.placement, show: this._showDropdown, strategy: this.strategy }, hAsync("p-field", { key: '204a9a00ca533875c61c7838807629e54b822e01', 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 && (hAsync("input", { key: '1d43b23fc1459b84fa72f5f8d35e62b576243f90', class: '\n pointer-events-none absolute left-0 top-0 z-[-10] overflow-hidden\n opacity-0\n ', max: this.maxDate &&
|
|
92318
92278
|
dateFnsExports.format(new Date(this.maxDate), 'yyyy-MM-dd', {
|
|
92319
92279
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92320
92280
|
}), min: this._minDate &&
|
|
@@ -92323,7 +92283,7 @@ class Datepicker {
|
|
|
92323
92283
|
}), ref: ref => (this._dateInputRef = ref), slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', value: this._value &&
|
|
92324
92284
|
dateFnsExports.format(this._value, 'yyyy-MM-dd', {
|
|
92325
92285
|
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92326
|
-
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: '
|
|
92286
|
+
}), onInput: ev => this._onNativeInput(ev) })), hAsync("div", { key: 'ba83aeee5c1cc9073bd71361a9011696761073d1', slot: 'items', tabIndex: -1 }, hAsync("p-calendar", { key: '13e5834b61f979f0deccb01ccf7bc938dabc4076', 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) }))));
|
|
92327
92287
|
}
|
|
92328
92288
|
documentClickHandler({ target }) {
|
|
92329
92289
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -92340,7 +92300,8 @@ class Datepicker {
|
|
|
92340
92300
|
}
|
|
92341
92301
|
this._showDropdown = true;
|
|
92342
92302
|
}
|
|
92343
|
-
_onBlur(ev, parseFormat
|
|
92303
|
+
_onBlur(ev, parseFormat) {
|
|
92304
|
+
parseFormat = parseFormat || this.format;
|
|
92344
92305
|
if (this._isMobileBrowser && this._dateInputRef) {
|
|
92345
92306
|
return;
|
|
92346
92307
|
}
|
|
@@ -92351,7 +92312,9 @@ class Datepicker {
|
|
|
92351
92312
|
if (target.value === null) {
|
|
92352
92313
|
return;
|
|
92353
92314
|
}
|
|
92354
|
-
const value = dateFnsExports.parse(target.value, parseFormat, new Date()
|
|
92315
|
+
const value = dateFnsExports.parse(target.value, parseFormat, new Date(), {
|
|
92316
|
+
locale: state.locale === 'nl' ? localeExports.nl : localeExports.enUS,
|
|
92317
|
+
});
|
|
92355
92318
|
if (value === this._value) {
|
|
92356
92319
|
return;
|
|
92357
92320
|
}
|