@paperless/core 2.0.1-beta.43 → 2.0.1-beta.45
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 +22 -0
- package/dist/build/{p-d6bda000.entry.js → p-146bb45f.entry.js} +2 -2
- package/dist/build/p-146bb45f.entry.js.map +1 -0
- package/dist/build/p-2000298f.entry.js +2 -0
- package/dist/build/p-2000298f.entry.js.map +1 -0
- package/dist/build/p-308e4330.js +2 -0
- package/dist/build/p-308e4330.js.map +1 -0
- package/dist/build/p-410c1df5.entry.js +2 -0
- package/dist/build/p-410c1df5.entry.js.map +1 -0
- package/dist/build/{p-2218e936.js → p-496a698b.js} +1 -1
- package/dist/build/p-64fc708f.entry.js +2 -0
- package/dist/build/p-64fc708f.entry.js.map +1 -0
- package/dist/build/p-7c6f6a23.entry.js +2 -0
- package/dist/build/p-7c6f6a23.entry.js.map +1 -0
- package/dist/build/p-7c8fa6b6.entry.js +2 -0
- package/dist/build/p-7c8fa6b6.entry.js.map +1 -0
- package/dist/build/p-8745a553.entry.js +2 -0
- package/dist/build/p-8745a553.entry.js.map +1 -0
- package/dist/build/p-8ca9c7c7.entry.js +2 -0
- package/dist/build/p-8ca9c7c7.entry.js.map +1 -0
- package/dist/build/p-9b01475d.entry.js +2 -0
- package/dist/build/p-9b01475d.entry.js.map +1 -0
- package/dist/build/p-cd9dbf02.entry.js +2 -0
- package/dist/build/p-cd9dbf02.entry.js.map +1 -0
- package/dist/build/p-db1cf43e.entry.js +2 -0
- package/dist/build/p-db1cf43e.entry.js.map +1 -0
- package/dist/build/p-dbf71a6f.entry.js +2 -0
- package/dist/build/p-dbf71a6f.entry.js.map +1 -0
- package/dist/build/p-edb96664.entry.js +2 -0
- package/dist/build/p-edb96664.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/as-boolean-777950b0.js +15 -0
- package/dist/cjs/as-boolean-777950b0.js.map +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/p-backdrop.cjs.entry.js +7 -3
- package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
- package/dist/cjs/p-badge_3.cjs.entry.js +5 -4
- package/dist/cjs/p-badge_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-button_3.cjs.entry.js +12 -11
- package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
- package/dist/cjs/p-checkbox_2.cjs.entry.js +8 -7
- package/dist/cjs/p-checkbox_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-datepicker.cjs.entry.js +3 -2
- package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +5 -4
- package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js +13 -12
- package/dist/cjs/p-dropdown-menu-item_4.cjs.entry.js.map +1 -1
- package/dist/cjs/p-field_2.cjs.entry.js +13 -12
- package/dist/cjs/p-field_2.cjs.entry.js.map +1 -1
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +7 -6
- package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
- package/dist/cjs/p-navigation-item.cjs.entry.js +4 -3
- package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
- package/dist/cjs/p-radio.cjs.entry.js +7 -6
- package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
- package/dist/cjs/p-select.cjs.entry.js +2 -1
- package/dist/cjs/p-select.cjs.entry.js.map +1 -1
- package/dist/cjs/p-toggle.cjs.entry.js +6 -5
- package/dist/cjs/p-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/paperless.cjs.js +1 -1
- package/dist/collection/components/atoms/backdrop/backdrop.component.js +7 -3
- package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -1
- package/dist/collection/components/atoms/checkbox/checkbox.component.js +8 -7
- package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +5 -4
- package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -1
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +12 -11
- package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +9 -8
- package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
- package/dist/collection/components/atoms/radio/radio.component.js +7 -6
- package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
- package/dist/collection/components/atoms/segment-item/segment-item.component.js +5 -4
- package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
- package/dist/collection/components/atoms/toggle/toggle.component.js +6 -5
- package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -1
- package/dist/collection/components/molecules/button/button.component.js +12 -11
- package/dist/collection/components/molecules/button/button.component.js.map +1 -1
- package/dist/collection/components/molecules/datepicker/datepicker.component.js +3 -2
- package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
- package/dist/collection/components/molecules/field/field.component.js +11 -10
- package/dist/collection/components/molecules/field/field.component.js.map +1 -1
- package/dist/collection/components/molecules/field-container/field-container.component.js +3 -2
- package/dist/collection/components/molecules/field-container/field-container.component.js.map +1 -1
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +4 -3
- package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
- package/dist/collection/components/molecules/pagination-size/pagination-size.component.js +4 -3
- package/dist/collection/components/molecules/pagination-size/pagination-size.component.js.map +1 -1
- package/dist/collection/components/molecules/select/select.component.js +2 -1
- package/dist/collection/components/molecules/select/select.component.js.map +1 -1
- package/dist/collection/utils/as-boolean.js +10 -0
- package/dist/collection/utils/as-boolean.js.map +1 -0
- package/dist/components/as-boolean.js +13 -0
- package/dist/components/as-boolean.js.map +1 -0
- package/dist/components/backdrop.component.js +7 -3
- package/dist/components/backdrop.component.js.map +1 -1
- package/dist/components/button.component.js +12 -11
- package/dist/components/button.component.js.map +1 -1
- package/dist/components/checkbox.component.js +8 -7
- package/dist/components/checkbox.component.js.map +1 -1
- package/dist/components/dropdown-menu-container.component.js +5 -4
- package/dist/components/dropdown-menu-container.component.js.map +1 -1
- package/dist/components/dropdown-menu-item.component.js +10 -9
- package/dist/components/dropdown-menu-item.component.js.map +1 -1
- package/dist/components/field-container.component.js +3 -2
- package/dist/components/field-container.component.js.map +1 -1
- package/dist/components/field.component.js +11 -10
- package/dist/components/field.component.js.map +1 -1
- package/dist/components/floating-menu-item.component.js +9 -8
- package/dist/components/floating-menu-item.component.js.map +1 -1
- package/dist/components/p-datepicker.js +3 -2
- package/dist/components/p-datepicker.js.map +1 -1
- package/dist/components/p-navigation-item.js +4 -3
- package/dist/components/p-navigation-item.js.map +1 -1
- package/dist/components/p-radio.js +7 -6
- package/dist/components/p-radio.js.map +1 -1
- package/dist/components/p-select.js +2 -1
- package/dist/components/p-select.js.map +1 -1
- package/dist/components/p-toggle.js +6 -5
- package/dist/components/p-toggle.js.map +1 -1
- package/dist/components/pagination-size.component.js +4 -3
- package/dist/components/pagination-size.component.js.map +1 -1
- package/dist/components/segment-item.component.js +5 -4
- package/dist/components/segment-item.component.js.map +1 -1
- package/dist/esm/as-boolean-141b269b.js +13 -0
- package/dist/esm/as-boolean-141b269b.js.map +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/p-backdrop.entry.js +7 -3
- package/dist/esm/p-backdrop.entry.js.map +1 -1
- package/dist/esm/p-badge_3.entry.js +5 -4
- package/dist/esm/p-badge_3.entry.js.map +1 -1
- package/dist/esm/p-button_3.entry.js +12 -11
- package/dist/esm/p-button_3.entry.js.map +1 -1
- package/dist/esm/p-checkbox_2.entry.js +8 -7
- package/dist/esm/p-checkbox_2.entry.js.map +1 -1
- package/dist/esm/p-datepicker.entry.js +3 -2
- package/dist/esm/p-datepicker.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-container.entry.js +5 -4
- package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
- package/dist/esm/p-dropdown-menu-item_4.entry.js +13 -12
- package/dist/esm/p-dropdown-menu-item_4.entry.js.map +1 -1
- package/dist/esm/p-field_2.entry.js +13 -12
- package/dist/esm/p-field_2.entry.js.map +1 -1
- package/dist/esm/p-floating-menu-container_8.entry.js +7 -6
- package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
- package/dist/esm/p-navigation-item.entry.js +4 -3
- package/dist/esm/p-navigation-item.entry.js.map +1 -1
- package/dist/esm/p-radio.entry.js +7 -6
- package/dist/esm/p-radio.entry.js.map +1 -1
- package/dist/esm/p-select.entry.js +2 -1
- package/dist/esm/p-select.entry.js.map +1 -1
- package/dist/esm/p-toggle.entry.js +6 -5
- package/dist/esm/p-toggle.entry.js.map +1 -1
- package/dist/esm/paperless.js +1 -1
- package/dist/index.html +1 -1
- package/dist/paperless/{p-d6bda000.entry.js → p-146bb45f.entry.js} +2 -2
- package/dist/paperless/p-146bb45f.entry.js.map +1 -0
- package/dist/paperless/p-2000298f.entry.js +2 -0
- package/dist/paperless/p-2000298f.entry.js.map +1 -0
- package/dist/paperless/p-308e4330.js +2 -0
- package/dist/paperless/p-308e4330.js.map +1 -0
- package/dist/paperless/p-410c1df5.entry.js +2 -0
- package/dist/paperless/p-410c1df5.entry.js.map +1 -0
- package/dist/paperless/p-64fc708f.entry.js +2 -0
- package/dist/paperless/p-64fc708f.entry.js.map +1 -0
- package/dist/paperless/p-7c6f6a23.entry.js +2 -0
- package/dist/paperless/p-7c6f6a23.entry.js.map +1 -0
- package/dist/paperless/p-7c8fa6b6.entry.js +2 -0
- package/dist/paperless/p-7c8fa6b6.entry.js.map +1 -0
- package/dist/paperless/p-8745a553.entry.js +2 -0
- package/dist/paperless/p-8745a553.entry.js.map +1 -0
- package/dist/paperless/p-8ca9c7c7.entry.js +2 -0
- package/dist/paperless/p-8ca9c7c7.entry.js.map +1 -0
- package/dist/paperless/p-9b01475d.entry.js +2 -0
- package/dist/paperless/p-9b01475d.entry.js.map +1 -0
- package/dist/paperless/p-cd9dbf02.entry.js +2 -0
- package/dist/paperless/p-cd9dbf02.entry.js.map +1 -0
- package/dist/paperless/p-db1cf43e.entry.js +2 -0
- package/dist/paperless/p-db1cf43e.entry.js.map +1 -0
- package/dist/paperless/p-dbf71a6f.entry.js +2 -0
- package/dist/paperless/p-dbf71a6f.entry.js.map +1 -0
- package/dist/paperless/p-edb96664.entry.js +2 -0
- package/dist/paperless/p-edb96664.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/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +1 -1
- package/dist/types/components.d.ts +1 -1
- package/dist/types/utils/as-boolean.d.ts +1 -0
- package/hydrate/index.js +93 -79
- package/hydrate/index.mjs +93 -79
- package/package.json +1 -1
- package/dist/build/p-04459f71.entry.js +0 -2
- package/dist/build/p-04459f71.entry.js.map +0 -1
- package/dist/build/p-05a76cb5.entry.js +0 -2
- package/dist/build/p-05a76cb5.entry.js.map +0 -1
- package/dist/build/p-1c725862.entry.js +0 -2
- package/dist/build/p-1c725862.entry.js.map +0 -1
- package/dist/build/p-2841c42f.entry.js +0 -2
- package/dist/build/p-2841c42f.entry.js.map +0 -1
- package/dist/build/p-590a1b81.entry.js +0 -2
- package/dist/build/p-590a1b81.entry.js.map +0 -1
- package/dist/build/p-711bb72e.entry.js +0 -2
- package/dist/build/p-711bb72e.entry.js.map +0 -1
- package/dist/build/p-885497ca.entry.js +0 -2
- package/dist/build/p-885497ca.entry.js.map +0 -1
- package/dist/build/p-a64d7a8d.entry.js +0 -2
- package/dist/build/p-a64d7a8d.entry.js.map +0 -1
- package/dist/build/p-ba0e7853.entry.js +0 -2
- package/dist/build/p-ba0e7853.entry.js.map +0 -1
- package/dist/build/p-d6bda000.entry.js.map +0 -1
- package/dist/build/p-eb654d58.entry.js +0 -2
- package/dist/build/p-eb654d58.entry.js.map +0 -1
- package/dist/build/p-ef2983f6.entry.js +0 -2
- package/dist/build/p-ef2983f6.entry.js.map +0 -1
- package/dist/build/p-ff6356cb.entry.js +0 -2
- package/dist/build/p-ff6356cb.entry.js.map +0 -1
- package/dist/paperless/p-04459f71.entry.js +0 -2
- package/dist/paperless/p-04459f71.entry.js.map +0 -1
- package/dist/paperless/p-05a76cb5.entry.js +0 -2
- package/dist/paperless/p-05a76cb5.entry.js.map +0 -1
- package/dist/paperless/p-1c725862.entry.js +0 -2
- package/dist/paperless/p-1c725862.entry.js.map +0 -1
- package/dist/paperless/p-2841c42f.entry.js +0 -2
- package/dist/paperless/p-2841c42f.entry.js.map +0 -1
- package/dist/paperless/p-590a1b81.entry.js +0 -2
- package/dist/paperless/p-590a1b81.entry.js.map +0 -1
- package/dist/paperless/p-711bb72e.entry.js +0 -2
- package/dist/paperless/p-711bb72e.entry.js.map +0 -1
- package/dist/paperless/p-885497ca.entry.js +0 -2
- package/dist/paperless/p-885497ca.entry.js.map +0 -1
- package/dist/paperless/p-a64d7a8d.entry.js +0 -2
- package/dist/paperless/p-a64d7a8d.entry.js.map +0 -1
- package/dist/paperless/p-ba0e7853.entry.js +0 -2
- package/dist/paperless/p-ba0e7853.entry.js.map +0 -1
- package/dist/paperless/p-d6bda000.entry.js.map +0 -1
- package/dist/paperless/p-eb654d58.entry.js +0 -2
- package/dist/paperless/p-eb654d58.entry.js.map +0 -1
- package/dist/paperless/p-ef2983f6.entry.js +0 -2
- package/dist/paperless/p-ef2983f6.entry.js.map +0 -1
- package/dist/paperless/p-ff6356cb.entry.js +0 -2
- package/dist/paperless/p-ff6356cb.entry.js.map +0 -1
package/hydrate/index.js
CHANGED
|
@@ -2752,6 +2752,16 @@ class AvatarGroup {
|
|
|
2752
2752
|
}; }
|
|
2753
2753
|
}
|
|
2754
2754
|
|
|
2755
|
+
const asBoolean = (value, defaultValue = false) => {
|
|
2756
|
+
if (value === undefined || value === null) {
|
|
2757
|
+
return defaultValue ?? false;
|
|
2758
|
+
}
|
|
2759
|
+
if (typeof value === 'string') {
|
|
2760
|
+
return value.toLowerCase() === 'true';
|
|
2761
|
+
}
|
|
2762
|
+
return !!value;
|
|
2763
|
+
};
|
|
2764
|
+
|
|
2755
2765
|
const backdropComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.fixed{position:fixed!important}.left-0{left:0!important}.top-0{top:0!important}.z-backdrop{z-index:490!important}.flex{display:flex!important}.h-full{height:100%!important}.w-full{width:100%!important}.animate-fade-in{animation:fadeIn .2s ease forwards!important}.animate-fade-out{animation:fadeOut .2s ease forwards!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.justify-end{justify-content:flex-end!important}.justify-center{justify-content:center!important}.overflow-hidden{overflow:hidden!important}.overflow-y-auto{overflow-y:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.bg-black-teal-800\\/40{background-color:rgba(0,2,2,.4)!important}.pt-16{padding-top:4rem!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.backdrop-blur-sm{--tw-backdrop-blur:blur(4px)!important;-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important;backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)!important}.max-h-screen{max-height:100vh!important}.max-w-screen{max-width:100vw!important}@media (min-width:40rem){.tablet\\:px-16{padding-left:4rem!important;padding-right:4rem!important}}@media (min-width:64rem){.desktop-xs\\:items-start{align-items:flex-start!important}.desktop-xs\\:items-stretch{align-items:stretch!important}.desktop-xs\\:p-16{padding:4rem!important}}";
|
|
2756
2766
|
var PBackdropStyle0 = backdropComponentCss;
|
|
2757
2767
|
|
|
@@ -2827,10 +2837,13 @@ class Backdrop {
|
|
|
2827
2837
|
}
|
|
2828
2838
|
}
|
|
2829
2839
|
render() {
|
|
2830
|
-
return (hAsync(Host, { key: '
|
|
2840
|
+
return (hAsync(Host, { key: '2d2521c12e265cd9414d84b772f1cefc3055f3d1', class: backdrop$1({
|
|
2841
|
+
blur: asBoolean(this.applyBlur),
|
|
2842
|
+
closing: asBoolean(this.closing),
|
|
2843
|
+
}) }, hAsync("div", { key: '52b66587dfe3e93ed3841c617f84dc04a09810ee', class: contentContainer({
|
|
2831
2844
|
variant: this.variant,
|
|
2832
|
-
closing: this.closing,
|
|
2833
|
-
}) }, hAsync("slot", { key: '
|
|
2845
|
+
closing: asBoolean(this.closing),
|
|
2846
|
+
}) }, hAsync("slot", { key: '23b3ab4ce6153000749bc23447ec049b3efb0366' }))));
|
|
2834
2847
|
}
|
|
2835
2848
|
handleClick(ev) {
|
|
2836
2849
|
if (ev.target !== this._el && !this._el.contains(ev.target)) {
|
|
@@ -3169,24 +3182,24 @@ class Button {
|
|
|
3169
3182
|
const VariableTag = this.variant === 'text' || this.href?.length || this.as === 'a'
|
|
3170
3183
|
? 'a'
|
|
3171
3184
|
: 'button';
|
|
3172
|
-
const active = this.active || this.class?.includes('active');
|
|
3173
|
-
return (hAsync(Host, { key: '
|
|
3185
|
+
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
3186
|
+
return (hAsync(Host, { key: 'c07e9f061c1ced17cedb0b7bbbbac5d00177cb70', class: 'p-button inline-block' }, hAsync(VariableTag, { key: 'bb09f943cfa2428f8d4f94c40713f3c9cb47bbd5', disabled: this.disabled, href: this.href, type: this.variant !== 'text' ? this.type : undefined, target: this.target, class: button({
|
|
3174
3187
|
variant: this.variant,
|
|
3175
3188
|
size: this.size,
|
|
3176
|
-
underline: this.underline,
|
|
3177
|
-
loading: this.loading,
|
|
3178
|
-
disabled: this.disabled,
|
|
3189
|
+
underline: asBoolean(this.underline, true),
|
|
3190
|
+
loading: asBoolean(this.loading),
|
|
3191
|
+
disabled: asBoolean(this.disabled),
|
|
3179
3192
|
buttonGroupPosition: this.buttonGroupPosition,
|
|
3180
|
-
iconOnly: this.iconOnly,
|
|
3193
|
+
iconOnly: asBoolean(this.iconOnly),
|
|
3181
3194
|
active,
|
|
3182
|
-
}) }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { key: '
|
|
3195
|
+
}) }, this.chevron && this.chevronPosition === 'start' && (hAsync("p-icon", { key: '8b8161a8e018ede3555974b56ac725758fe74fac', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.icon &&
|
|
3183
3196
|
this.iconPosition === 'start' &&
|
|
3184
3197
|
!(this.iconOnly && this.loading) &&
|
|
3185
|
-
this._getIcon(), hAsync("slot", { key: '
|
|
3198
|
+
this._getIcon(), hAsync("slot", { key: '168574cbad66d2d7d4f81819d45925a4ee73d4e6' }), this.icon &&
|
|
3186
3199
|
this.iconPosition === 'end' &&
|
|
3187
3200
|
!this.loading &&
|
|
3188
3201
|
!this.chevron &&
|
|
3189
|
-
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (hAsync("p-icon", { key: '
|
|
3202
|
+
this._getIcon(), this.chevron && !this.loading && this.chevronPosition === 'end' && (hAsync("p-icon", { key: '6a78154cefef83683a144dff242d01a092bb1c35', variant: 'caret', rotate: this.chevron === 'up' ? 180 : 0 })), this.loading && hAsync("p-loader", { key: '06b9874656622c1324ec804581f7e66c0e233e2f', color: loaderColor }))));
|
|
3190
3203
|
}
|
|
3191
3204
|
handleClick(ev) {
|
|
3192
3205
|
if (this.loading || this.disabled) {
|
|
@@ -3202,8 +3215,8 @@ class Button {
|
|
|
3202
3215
|
return (hAsync("p-icon", { class: icon$3({
|
|
3203
3216
|
size: this.size,
|
|
3204
3217
|
variant: this.variant,
|
|
3205
|
-
disabled: this.disabled,
|
|
3206
|
-
active: this.active,
|
|
3218
|
+
disabled: asBoolean(this.disabled),
|
|
3219
|
+
active: asBoolean(this.active),
|
|
3207
3220
|
}), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
3208
3221
|
}
|
|
3209
3222
|
static get style() { return PButtonStyle0; }
|
|
@@ -12203,13 +12216,13 @@ class Checkbox {
|
|
|
12203
12216
|
*/
|
|
12204
12217
|
indeterminateChange;
|
|
12205
12218
|
render() {
|
|
12206
|
-
return (hAsync(Host, { key: '
|
|
12207
|
-
disabled: this.disabled,
|
|
12208
|
-
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), hAsync("div", { key: '
|
|
12209
|
-
disabled: this.disabled,
|
|
12210
|
-
}) }, hAsync("p-icon", { key: '
|
|
12211
|
-
disabled: this.disabled,
|
|
12212
|
-
}), size: 'auto', variant: !!this.indeterminate ? 'minus' : 'checkmarkThick' }))), hAsync("slot", { key: '
|
|
12219
|
+
return (hAsync(Host, { key: '67d7d568e204e24280ec939c20b9df9940d32866', class: 'p-checkbox' }, hAsync("label", { key: '1726a9fd3784633f385ab222399e0d9749d9a757', htmlFor: this.id ?? this._nonce, class: 'group/p-checkbox flex items-center justify-start gap-2 text-black-teal' }, hAsync("div", { key: '0dbf6abd950aa26e270ab2d7ca561636693d1cad', class: 'relative flex flex-shrink-0 items-center' }, hAsync("input", { key: 'dcf66a3a330c0f9ce2b825397372ba4435e2313b', class: checkbox$1({
|
|
12220
|
+
disabled: asBoolean(this.disabled),
|
|
12221
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: asBoolean(this.required), checked: !!this.checked, indeterminate: this.indeterminate, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), hAsync("div", { key: '2297a0eb43fa60076b96ea4023297a929ed1fe95', class: iconContainer({
|
|
12222
|
+
disabled: asBoolean(this.disabled),
|
|
12223
|
+
}) }, hAsync("p-icon", { key: '65670d446eacc9640628a07e409ced8fa1c19df4', class: icon$2({
|
|
12224
|
+
disabled: asBoolean(this.disabled),
|
|
12225
|
+
}), size: 'auto', variant: !!this.indeterminate ? 'minus' : 'checkmarkThick' }))), hAsync("slot", { key: 'e0fdb4ea59fe99badb2a80ba582d5b5eca313abf' }))));
|
|
12213
12226
|
}
|
|
12214
12227
|
_onChange(ev) {
|
|
12215
12228
|
if (this.disabled) {
|
|
@@ -20001,9 +20014,9 @@ class Datepicker {
|
|
|
20001
20014
|
this.parseValue(this.value);
|
|
20002
20015
|
}
|
|
20003
20016
|
render() {
|
|
20004
|
-
return (hAsync(Host, { key: '
|
|
20017
|
+
return (hAsync(Host, { key: '016227b024586201499ed79a01eb337599bb2333', class: 'p-datepicker' }, hAsync("p-dropdown", { key: '698a9aaf9199c3b5ecd4e90aec27a020a28a40dc', strategy: this.strategy, placement: this.placement, disableTriggerClick: true, applyMaxWidth: false, applyFullWidth: false, insideClick: true, show: this._showDropdown }, hAsync("p-field", { key: '7c21946bb9499607ac1757c40fe928e8c360a6c6', slot: 'trigger', icon: this.hideIconWhenFilled && !!this._value ? null : 'calendar-multi', iconPosition: 'start', size: this.size, prefix: this.prefix, label: this.label, helper: this.helper, required: asBoolean(this.required), error: this.error, disabled: asBoolean(this.disabled), focused: this._showDropdown, value: this._getFormattedDate(), placeholder: this.placeholder, onFocus: () => this._onFocus(), onBlur: () => this._onBlur(), onValueChange: ev => this._onValueChange(ev.detail), onInputRefChange: ev => (this._inputRef = ev.detail) }), this.enableNativePicker && this._isMobileBrowser && (hAsync("input", { key: 'bccd4e6fec3943a932db54ce9bb6ee050e6796f5', slot: 'trigger', type: this.mode === 'day' ? 'date' : 'month', class: 'h-0 overflow-hidden' // we use h-0 here so location dependent pickers can correctly place itself
|
|
20005
20018
|
,
|
|
20006
|
-
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), hAsync("div", { key: '
|
|
20019
|
+
onInput: ev => this._onNativeInput(ev), ref: ref => (this._dateInputRef = ref), value: this._value && format(this._value, 'yyyy-MM-dd'), min: this.minDate && format(new Date(this.minDate), 'yyyy-MM-dd'), max: this.maxDate && format(new Date(this.maxDate), 'yyyy-MM-dd') })), hAsync("div", { key: '76509e1becad7c6022d09cce6737696429ea36c9', slot: 'items' }, hAsync("p-calendar", { key: '8b828cafab764a4e290f862d8fb507b686639160', variant: 'embedded', value: this._value, onValueChange: ({ detail }) => (this.value = detail), preselectToday: this.preselectToday, disabledDates: this.disabledDates, minDate: this.minDate, maxDate: this.maxDate, disableWeekends: this.disableWeekends, mode: this.mode })))));
|
|
20007
20020
|
}
|
|
20008
20021
|
documentClickHandler({ target }) {
|
|
20009
20022
|
if (!this._showDropdown || childOf(target, this._el)) {
|
|
@@ -22596,14 +22609,14 @@ class DropdownMenuContainer {
|
|
|
22596
22609
|
: this.scrollable === true
|
|
22597
22610
|
? 'default'
|
|
22598
22611
|
: this.scrollable;
|
|
22599
|
-
return (hAsync(Host, { key: '
|
|
22612
|
+
return (hAsync(Host, { key: '40d82bee7fcc639ec89b6824ef8cfbbdcd3ed42c', class: dropdownMenuContainer({
|
|
22600
22613
|
class: this.class,
|
|
22601
22614
|
variant: this.variant,
|
|
22602
|
-
fullWidth: this.fullWidth,
|
|
22603
|
-
allowOverflow: this.allowOverflow,
|
|
22615
|
+
fullWidth: asBoolean(this.fullWidth, true),
|
|
22616
|
+
allowOverflow: asBoolean(this.allowOverflow),
|
|
22604
22617
|
scrollable,
|
|
22605
22618
|
maxWidth: this.maxWidth,
|
|
22606
|
-
}) }, hAsync("div", { key: '
|
|
22619
|
+
}) }, hAsync("div", { key: '178eca33c0f2a3c0bd488fd2533f3cc9d74fe3ce', class: 'flex w-full flex-col gap-[1px]' }, hAsync("slot", { key: 'facfdfe6229e88177bc2adac657e8bb2df923812' }))));
|
|
22607
22620
|
}
|
|
22608
22621
|
static get style() { return PDropdownMenuContainerStyle0; }
|
|
22609
22622
|
static get cmpMeta() { return {
|
|
@@ -22776,22 +22789,22 @@ class DropdownMenuItem {
|
|
|
22776
22789
|
this.active = false;
|
|
22777
22790
|
this.checkbox = false;
|
|
22778
22791
|
this.variant = 'default';
|
|
22779
|
-
this.enableHover =
|
|
22792
|
+
this.enableHover = false;
|
|
22780
22793
|
this.disabled = false;
|
|
22781
22794
|
this.icon = undefined;
|
|
22782
22795
|
this.useContainer = true;
|
|
22783
22796
|
}
|
|
22784
22797
|
render() {
|
|
22785
|
-
return (hAsync(Host, { key: '
|
|
22798
|
+
return (hAsync(Host, { key: '2d41e180b8c3134d323188998af074678036754c', class: dropdownMenuItem({
|
|
22786
22799
|
variant: this.variant,
|
|
22787
|
-
active: this.active,
|
|
22788
|
-
enableHover: this.enableHover,
|
|
22789
|
-
disabled: this.disabled,
|
|
22790
|
-
}) }, this.icon && (hAsync("p-icon", { key: '
|
|
22800
|
+
active: asBoolean(this.active),
|
|
22801
|
+
enableHover: asBoolean(this.enableHover ?? true),
|
|
22802
|
+
disabled: asBoolean(this.disabled),
|
|
22803
|
+
}) }, this.icon && (hAsync("p-icon", { key: '12a5e2703c8d60e82d20031bd49a4a1bbe229c56', class: dropdownMenuItemIcon({
|
|
22791
22804
|
variant: this.variant,
|
|
22792
|
-
active: this.active,
|
|
22793
|
-
disabled: this.disabled,
|
|
22794
|
-
}), variant: this.icon })), this.checkbox && (hAsync("p-checkbox", { key: '
|
|
22805
|
+
active: asBoolean(this.active),
|
|
22806
|
+
disabled: asBoolean(this.disabled),
|
|
22807
|
+
}), variant: this.icon })), this.checkbox && (hAsync("p-checkbox", { key: 'f30b4ca26e3aa12bb16dba87e8d49d527263e5fd', checked: this.active, disabled: this.disabled })), this.useContainer ? (hAsync("div", { class: 'block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start' }, hAsync("slot", null))) : (hAsync("slot", null))));
|
|
22795
22808
|
}
|
|
22796
22809
|
static get style() { return PDropdownMenuItemStyle0; }
|
|
22797
22810
|
static get cmpMeta() { return {
|
|
@@ -22993,24 +23006,24 @@ class Field {
|
|
|
22993
23006
|
}
|
|
22994
23007
|
render() {
|
|
22995
23008
|
const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, hasValueSlot, } = this._getSlotInfo();
|
|
22996
|
-
return (hAsync(Host, { key: '
|
|
23009
|
+
return (hAsync(Host, { key: '079dfe17253a415691af3987db6df8e591d33cdf', class: 'p-field' }, hAsync("p-field-container", { key: '6e46a083e870185797121c45181e0a6f1b17690f', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required, variant: this.variant }, hasLabelSlot && (hAsync("slot", { key: '3984fb0ffff9395af9e6cd1be0205543775bcb08', name: 'label', slot: 'label' })), hasHeaderSlot && (hAsync("slot", { key: '314d551c1c148ddcdc5688f3ac09a59f3dc63e77', name: 'header', slot: 'header' })), hasHelperSlot && (hAsync("slot", { key: 'ea7f601d373f1067d56ebb57f40dcc0816472b4f', name: 'helper', slot: 'helper' })), hasErrorSlot && (hAsync("slot", { key: '084580040cb940f887c346d76462ec17864b6206', name: 'error', slot: 'error' })), hAsync("div", { key: '6c6d6f161b9cb68a0b35b5edcf7311c1ed32326a', class: field({
|
|
22997
23010
|
error: !!this.error?.length,
|
|
22998
|
-
disabled: this.disabled,
|
|
22999
|
-
focused: this.focused || this._focused,
|
|
23011
|
+
disabled: asBoolean(this.disabled),
|
|
23012
|
+
focused: asBoolean(this.focused) || this._focused,
|
|
23000
23013
|
size: this.size,
|
|
23001
23014
|
variant: this.variant,
|
|
23002
23015
|
isTextarea: this.type === 'textarea',
|
|
23003
|
-
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (hAsync("div", { key: '
|
|
23016
|
+
}), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (hAsync("div", { key: '980f8cffb7d3efe3d6534c88aa43a715ec2760bf', class: prefixAndSuffix({
|
|
23004
23017
|
error: !!this.error?.length,
|
|
23005
|
-
disabled: this.disabled,
|
|
23006
|
-
focused: this.focused || this._focused,
|
|
23018
|
+
disabled: asBoolean(this.disabled),
|
|
23019
|
+
focused: asBoolean(this.focused) || this._focused,
|
|
23007
23020
|
isText: typeof suffix === 'string',
|
|
23008
23021
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (hAsync("p-icon", { class: cn('flex', {
|
|
23009
23022
|
'mt-1': this.variant === 'read' && this.size === 'base',
|
|
23010
|
-
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot), (suffix || (this.icon && this.iconPosition === 'end')) && (hAsync("div", { key: '
|
|
23023
|
+
}), variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getContent(hasValueSlot), (suffix || (this.icon && this.iconPosition === 'end')) && (hAsync("div", { key: '22604fd27aec86f1bda1a9757f5802420b7ef145', class: prefixAndSuffix({
|
|
23011
23024
|
error: !!this.error?.length,
|
|
23012
|
-
disabled: this.disabled,
|
|
23013
|
-
focused: this.focused || this._focused,
|
|
23025
|
+
disabled: asBoolean(this.disabled),
|
|
23026
|
+
focused: asBoolean(this.focused) || this._focused,
|
|
23014
23027
|
isText: typeof suffix === 'string',
|
|
23015
23028
|
}), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'end' ? (hAsync("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (suffix)))))));
|
|
23016
23029
|
}
|
|
@@ -23060,7 +23073,7 @@ class Field {
|
|
|
23060
23073
|
}
|
|
23061
23074
|
const props = {
|
|
23062
23075
|
class: input({
|
|
23063
|
-
disabled: this.disabled,
|
|
23076
|
+
disabled: asBoolean(this.disabled),
|
|
23064
23077
|
isTextarea: this.type === 'textarea',
|
|
23065
23078
|
}),
|
|
23066
23079
|
value: this.value,
|
|
@@ -23172,8 +23185,8 @@ class FieldContainer {
|
|
|
23172
23185
|
}
|
|
23173
23186
|
render() {
|
|
23174
23187
|
const { hasHeaderSlot, hasErrorSlot, helper, label, errorAndErrorIsNotBoolean, } = this._getSlotInfo();
|
|
23175
|
-
const contentSlot = (hAsync("slot", { key: '
|
|
23176
|
-
return (hAsync(Host, { key: '
|
|
23188
|
+
const contentSlot = (hAsync("slot", { key: 'd18320f02edf2c2b03b5bc6e82cd9301f6d3d47b', name: 'content', slot: 'trigger' }));
|
|
23189
|
+
return (hAsync(Host, { key: '60ac93a094833ecf4f5a2c58c31c05e4f7f79623', class: 'p-field-container' }, hAsync("div", { key: 'cd9428b140fa8ca0433c07c6e4b6ecf77701ba44', class: 'flex w-inherit flex-col gap-1' }, hAsync("div", { key: '09a410fc851f9ab65fc71aec2c1df6a59820e0ad', class: 'flex items-end justify-between gap-1' }, label && (hAsync("div", { key: '45024cec09ee0d05241afc3e629c0eb3b1ec46a2', class: 'text-xs font-medium text-black-teal-300', onClick: () => this.focus.emit() }, label)), (!asBoolean(this.required) || helper || hasHeaderSlot) && (hAsync("div", { key: '422ce7b1ef58ef9e2551ae48eba633e65e12795e', class: 'flex items-center gap-1' }, !asBoolean(this.required) && this.variant === 'write' && (hAsync("span", { key: 'ddc043a192f20e85550ea92953d48e7ef0a08f62', class: 'text-xs font-medium text-black-teal-200' }, this.optionalTemplate())), (helper || hasHeaderSlot) && (hAsync(Fragment, { key: 'daa1f96c0fe3b18e1a4cb97a3f278ae12324eb5f' }, hasHeaderSlot && hAsync("slot", { key: '81ab8296ea3966750b762f34ae15fa414e45af4e', name: 'header' }), helper && (hAsync("p-helper", { key: 'b65490c148ee2b62dd2dbfe856ab8fc5cc08c683', class: `flex ${hasHeaderSlot ? 'ml-2' : ''}`, placement: 'top-end' }, helper))))))), hAsync("p-tooltip", { key: 'ad08dbeea2fa113b4938a65f74f04491f784bf8f', class: this.variant === 'write' ? 'w-full' : '', variant: 'error', content: this.error, show: errorAndErrorIsNotBoolean && asBoolean(this.forceShowTooltip), enableUserInput: false, placement: this.errorPlacement }, hasErrorSlot && (hAsync("slot", { key: 'b7cc50a3965e0e31fee0ac898f1a9bbf2d3abc10', name: 'error', slot: 'content' })), contentSlot))));
|
|
23177
23190
|
}
|
|
23178
23191
|
async _setLocales() {
|
|
23179
23192
|
this._locales = await getLocaleComponentStrings(this._el);
|
|
@@ -23345,10 +23358,10 @@ class FloatingMenuItem {
|
|
|
23345
23358
|
this.iconRotate = undefined;
|
|
23346
23359
|
}
|
|
23347
23360
|
render() {
|
|
23348
|
-
return (hAsync(Host, { key: '
|
|
23349
|
-
hover: this.hover && !this.loading,
|
|
23350
|
-
disabled: this.disabled,
|
|
23351
|
-
}) }, this._getIcon(), hAsync("p", { key: '
|
|
23361
|
+
return (hAsync(Host, { key: '3cb99305ad3b1538dd172adda934020013535e6f', class: item$1({
|
|
23362
|
+
hover: asBoolean(this.hover) && !asBoolean(this.loading),
|
|
23363
|
+
disabled: asBoolean(this.disabled),
|
|
23364
|
+
}) }, this._getIcon(), hAsync("p", { key: 'b1800c870b90854a44f8edea23b4e5021a9b1473', class: 'min-w-0 overflow-hidden text-ellipsis text-nowrap font-semibold' }, hAsync("slot", { key: '8ebc6d4d9acc37952370737eb5a1abaeff7c81bb' }))));
|
|
23352
23365
|
}
|
|
23353
23366
|
_getIcon() {
|
|
23354
23367
|
if (!this.icon && !this.loading) {
|
|
@@ -23358,8 +23371,8 @@ class FloatingMenuItem {
|
|
|
23358
23371
|
return hAsync("p-loader", { color: 'white' });
|
|
23359
23372
|
}
|
|
23360
23373
|
return (hAsync("p-icon", { class: icon$1({
|
|
23361
|
-
hover: this.hover,
|
|
23362
|
-
disabled: this.disabled,
|
|
23374
|
+
hover: asBoolean(this.hover),
|
|
23375
|
+
disabled: asBoolean(this.disabled),
|
|
23363
23376
|
}), variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate }));
|
|
23364
23377
|
}
|
|
23365
23378
|
static get style() { return PFloatingMenuItemStyle0; }
|
|
@@ -23367,8 +23380,8 @@ class FloatingMenuItem {
|
|
|
23367
23380
|
"$flags$": 4,
|
|
23368
23381
|
"$tagName$": "p-floating-menu-item",
|
|
23369
23382
|
"$members$": {
|
|
23370
|
-
"hover": [
|
|
23371
|
-
"disabled": [
|
|
23383
|
+
"hover": [4],
|
|
23384
|
+
"disabled": [4],
|
|
23372
23385
|
"loading": [4],
|
|
23373
23386
|
"icon": [1],
|
|
23374
23387
|
"iconPosition": [1, "icon-position"],
|
|
@@ -23377,7 +23390,7 @@ class FloatingMenuItem {
|
|
|
23377
23390
|
},
|
|
23378
23391
|
"$listeners$": undefined,
|
|
23379
23392
|
"$lazyBundleId$": "-",
|
|
23380
|
-
"$attrsToReflect$": [
|
|
23393
|
+
"$attrsToReflect$": []
|
|
23381
23394
|
}; }
|
|
23382
23395
|
}
|
|
23383
23396
|
|
|
@@ -24369,11 +24382,11 @@ class NavigationItem {
|
|
|
24369
24382
|
}
|
|
24370
24383
|
render() {
|
|
24371
24384
|
const TagType = this.as;
|
|
24372
|
-
const active = this.active || this.class?.includes('active');
|
|
24373
|
-
return (hAsync(Host, { key: '
|
|
24385
|
+
const active = asBoolean(this.active) || this.class?.includes('active');
|
|
24386
|
+
return (hAsync(Host, { key: '21642e0864dae6959b46a258618e1c9afd1bbca9', class: cn('p-navigation-item inline-block', this.class) }, hAsync(TagType, { key: '48eed7a378c1500d8b8b67fba1f62d24e21b3472', class: navigationItem({
|
|
24374
24387
|
icon: !!this.icon,
|
|
24375
24388
|
active,
|
|
24376
|
-
}), href: this.href, target: this.target }, hAsync("div", { key: '
|
|
24389
|
+
}), href: this.href, target: this.target }, hAsync("div", { key: 'b7ebf5e86b5c05e986ed976250290a0c89411c4f', class: navigationItemIconContainer({ active }) }, hAsync("p-icon", { key: '8eef40ebcfd348b5d45eba71cbb200f43888a67a', variant: this.icon })), hAsync("span", { key: '12d965e27f55240dc8c2bc03d6cf0df724590880', class: this.counter && 'has-counter' }, hAsync("slot", { key: 'c016e6065a74e982002ee1a8af73f87941b67a61' })), !!this.counter && this.counter !== '0' && (hAsync("p-badge", { key: 'ffacde69418e4bdf4ecf4ab82304869dfc4850cb' }, this.counter)), !!this.loading && hAsync("p-loader", { key: '8ffec752786d9b23e9ca83a31560e1f1ec34213d', class: 'ml-auto' }))));
|
|
24377
24390
|
}
|
|
24378
24391
|
static get style() { return PNavigationItemStyle0; }
|
|
24379
24392
|
static get cmpMeta() { return {
|
|
@@ -24862,11 +24875,11 @@ class PaginationSize {
|
|
|
24862
24875
|
this._setLocales();
|
|
24863
24876
|
}
|
|
24864
24877
|
render() {
|
|
24865
|
-
return (hAsync(Host, { key: '
|
|
24878
|
+
return (hAsync(Host, { key: '76ba9aad09efd47ad218bde8475eca4dbd12ddce', class: paginationSize({ hidden: asBoolean(this.hidden) }) }, hAsync("p-dropdown", { key: '3326e8709c971040b09f1bcf9a202ed1024ed74d', variant: 'dark-teal', placement: 'top-start', chevronDirection: 'down', calculateWidth: true, onIsOpen: ({ detail }) => (this.dropdownIsOpen = detail) }, hAsync("div", { key: '2db246a5cbec5d1aa190733dd143405daa1a3639', class: trigger({
|
|
24866
24879
|
active: this.dropdownIsOpen,
|
|
24867
|
-
}), slot: 'trigger' }, hAsync("p", { key: '
|
|
24880
|
+
}), slot: 'trigger' }, hAsync("p", { key: 'd3e2ee452df57eb5634b3bc6faa5f48d06073181', class: 'min-w-0 flex-1 overflow-hidden text-ellipsis text-nowrap' }, this.itemTemplate
|
|
24868
24881
|
? this.itemTemplate(this.size)
|
|
24869
|
-
: this._defaultItemTemplate(this.size)), hAsync("p-icon", { key: '
|
|
24882
|
+
: this._defaultItemTemplate(this.size)), hAsync("p-icon", { key: 'b337270cbc6f58e91844784ae1a285b4b5d8cf44', class: 'flex-shrink-0', variant: 'double-caret', size: 'sm' })), hAsync("slot", { key: '5980b79191a9f2ff058ba070478af7249ff9f898', slot: 'items' }, this.sizeOptions.map(option => (hAsync("p-dropdown-menu-item", { active: option === this.size, onClick: () => this._changeSize(option) }, this.itemTemplate
|
|
24870
24883
|
? this.itemTemplate(option)
|
|
24871
24884
|
: this._defaultItemTemplate(option))))))));
|
|
24872
24885
|
}
|
|
@@ -25054,14 +25067,14 @@ class Radio {
|
|
|
25054
25067
|
*/
|
|
25055
25068
|
checkedChange;
|
|
25056
25069
|
render() {
|
|
25057
|
-
return (hAsync(Host, { key: '
|
|
25058
|
-
disabled: this.disabled,
|
|
25059
|
-
}), type: 'radio', id: this.id ?? this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: this.disabled, onChange: ev => this._onChange(ev) }), hAsync("div", { key: '
|
|
25060
|
-
disabled: this.disabled,
|
|
25061
|
-
}) })), hAsync("slot", { key: '
|
|
25070
|
+
return (hAsync(Host, { key: '7ed775d83fd504b12c8bae5c2f845b35696318a0', class: 'p-radio' }, hAsync("label", { key: '43433e2e61096f118a839e5cb7e593f2c1d45882', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, hAsync("div", { key: 'e47eb50a4a6c34f402b721e38975905957c4391a', class: 'relative flex flex-shrink-0 items-center' }, hAsync("input", { key: '04168aa446a50b5806728eeb72425b3847bd3240', class: radio({
|
|
25071
|
+
disabled: asBoolean(this.disabled),
|
|
25072
|
+
}), type: 'radio', id: this.id ?? this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), hAsync("div", { key: 'adba2a0b0bd2593c36468834da9232aadd7bca65', class: circle$1({
|
|
25073
|
+
disabled: asBoolean(this.disabled),
|
|
25074
|
+
}) })), hAsync("slot", { key: 'fb4649847a4ab9e30cb0d71f3bf63fcb308693e6' }))));
|
|
25062
25075
|
}
|
|
25063
25076
|
_onChange(ev) {
|
|
25064
|
-
if (this.disabled) {
|
|
25077
|
+
if (asBoolean(this.disabled)) {
|
|
25065
25078
|
ev.preventDefault();
|
|
25066
25079
|
return;
|
|
25067
25080
|
}
|
|
@@ -25145,11 +25158,11 @@ class SegmentItem {
|
|
|
25145
25158
|
}
|
|
25146
25159
|
render() {
|
|
25147
25160
|
const descriptionSlot = this.variant === 'block' ? hAsync("slot", { name: 'description' }) : null;
|
|
25148
|
-
return (hAsync(Host, { key: '
|
|
25161
|
+
return (hAsync(Host, { key: 'a52fe32057a67da036508e7a557fc63b675ef0a1', class: segmentItem({
|
|
25149
25162
|
variant: this.variant,
|
|
25150
|
-
active: this.active,
|
|
25151
|
-
iconOnly: this.iconOnly,
|
|
25152
|
-
}) }, this.icon && (hAsync("p-icon", { key: '
|
|
25163
|
+
active: asBoolean(this.active),
|
|
25164
|
+
iconOnly: asBoolean(this.iconOnly),
|
|
25165
|
+
}) }, this.icon && (hAsync("p-icon", { key: '4f54334e3e9ac47cfbfc28048957428015322c25', variant: this.icon, flip: this.iconFlip, rotate: this.iconRotate })), this.variant === 'default' ? (hAsync("slot", null)) : (hAsync("div", { class: 'flex flex-col items-center gap-1' }, hAsync("p", { class: 'font-semibold empty:hidden' }, hAsync("slot", { name: 'title' })), descriptionSlot && hAsync("p", { class: 'text-xs' }, descriptionSlot)))));
|
|
25153
25166
|
}
|
|
25154
25167
|
static get style() { return PSegmentItemStyle0; }
|
|
25155
25168
|
static get cmpMeta() { return {
|
|
@@ -25513,7 +25526,8 @@ class Select {
|
|
|
25513
25526
|
if (!this._inputRef || !this._multiContainerRef) {
|
|
25514
25527
|
return;
|
|
25515
25528
|
}
|
|
25516
|
-
|
|
25529
|
+
const calced = this._inputRef.clientWidth - 16;
|
|
25530
|
+
this._multiContainerRef.style.maxWidth = `${calced >= 16 ? calced : 16}px`;
|
|
25517
25531
|
}
|
|
25518
25532
|
_setCheckSelectedItemsTimeout() {
|
|
25519
25533
|
if (this._checkSelectedItemsTimeout) {
|
|
@@ -28133,14 +28147,14 @@ class Toggle {
|
|
|
28133
28147
|
*/
|
|
28134
28148
|
indeterminateChange;
|
|
28135
28149
|
render() {
|
|
28136
|
-
return (hAsync(Host, { key: '
|
|
28150
|
+
return (hAsync(Host, { key: '346633e23e7fee1765a57fca983375ab4565d76b', class: 'p-checkbox' }, hAsync("label", { key: 'caa4d70fead2c33484d805cd5e32c8bd9385b1b0', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, hAsync("div", { key: 'c469c4e1b19daedf8386f4a00c111be4f2fa630a', class: 'group relative flex flex-shrink-0 items-center' }, hAsync("input", { key: 'f325a11e63cf4b4134db50283348cc7514d0dec2', class: checkbox({
|
|
28151
|
+
disabled: asBoolean(this.disabled),
|
|
28152
|
+
}), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), hAsync("div", { key: 'df4144c18ad0b454b47b430637afc0ebf0cd2b7a', class: circle({
|
|
28137
28153
|
disabled: this.disabled,
|
|
28138
|
-
})
|
|
28139
|
-
disabled: this.disabled,
|
|
28140
|
-
}) })), hAsync("slot", { key: '271b918b319a8ae027ed106f3ba32d833e2215df' }))));
|
|
28154
|
+
}) })), hAsync("slot", { key: '8f431ddb98a4bd29836e6fb570825b1f610522e3' }))));
|
|
28141
28155
|
}
|
|
28142
28156
|
_onChange(ev) {
|
|
28143
|
-
if (this.disabled) {
|
|
28157
|
+
if (asBoolean(this.disabled)) {
|
|
28144
28158
|
ev.preventDefault();
|
|
28145
28159
|
return;
|
|
28146
28160
|
}
|