@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-76625.0 → 0.0.0-bugfix-dev-KB-75065.1
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/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +15 -3
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +8 -1416
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list_2.cjs.entry.js +1585 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +159 -29
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +7 -8
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -3
- package/dist/collection/components/ez-badge/ez-badge.css +12 -1
- package/dist/collection/components/ez-badge/ez-badge.js +31 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +3 -1
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +64 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +130 -56
- package/dist/collection/components/ez-search/ez-search.css +219 -0
- package/dist/collection/components/ez-search/ez-search.js +167 -28
- package/dist/custom-elements/index.d.ts +0 -12
- package/dist/custom-elements/index.js +195 -262
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +15 -3
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_2.entry.js +8 -1416
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-dropdown_2.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list_2.entry.js +1580 -0
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +160 -30
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ez-split-panel.entry.js +1 -1
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +7 -9
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-000159dc.entry.js +1 -0
- package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
- package/dist/ezui/p-03b0ed5a.entry.js +1 -0
- package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
- package/dist/ezui/{p-a4cee65d.entry.js → p-0cfbbe82.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
- package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
- package/dist/ezui/{p-31b71e50.entry.js → p-23dab72f.entry.js} +1 -1
- package/dist/ezui/{p-17eabf46.entry.js → p-24b42f3d.entry.js} +1 -1
- package/dist/ezui/{p-556468d9.entry.js → p-3791d9c8.entry.js} +1 -1
- package/dist/ezui/{p-1ad6c61b.entry.js → p-3885e66e.entry.js} +1 -1
- package/dist/ezui/p-3af64edd.entry.js +1 -0
- package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
- package/dist/ezui/{p-c1527804.entry.js → p-4818b8ce.entry.js} +1 -1
- package/dist/ezui/{p-d9548bdf.entry.js → p-5010315a.entry.js} +1 -1
- package/dist/ezui/{p-ea54d056.entry.js → p-68b2e579.entry.js} +1 -1
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/{p-2bb2a0c4.entry.js → p-6d31c43c.entry.js} +1 -1
- package/dist/ezui/{p-6cdd3e0a.entry.js → p-6d8b3298.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/{p-0fa52b0f.entry.js → p-88c615f0.entry.js} +1 -1
- package/dist/ezui/{p-56fe5341.entry.js → p-9066b0b0.entry.js} +1 -1
- package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
- package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
- package/dist/ezui/{p-0faf71c5.entry.js → p-92fbaf2b.entry.js} +1 -1
- package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
- package/dist/ezui/{p-3195a7a7.entry.js → p-9fc250d4.entry.js} +1 -1
- package/dist/ezui/{p-a5950a0d.entry.js → p-a3319796.entry.js} +1 -1
- package/dist/ezui/{p-990b4318.entry.js → p-a921e3e7.entry.js} +1 -1
- package/dist/ezui/{p-3429080c.entry.js → p-b22889ea.entry.js} +1 -1
- package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
- package/dist/ezui/{p-cb1535f7.entry.js → p-b9282c79.entry.js} +1 -1
- package/dist/ezui/{p-e347df9c.entry.js → p-bef7daac.entry.js} +1 -1
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-17de16e5.entry.js → p-c96fbbef.entry.js} +1 -1
- package/dist/ezui/{p-2f45506d.entry.js → p-ca8936df.entry.js} +1 -1
- package/dist/ezui/p-cba34702.entry.js +1 -0
- package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
- package/dist/ezui/p-cf3b60fd.entry.js +1 -0
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/{p-7fdd479f.entry.js → p-e18d9e6a.entry.js} +1 -1
- package/dist/ezui/{p-fd0a19d6.entry.js → p-e3f8660b.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
- package/dist/ezui/{p-b26f6c5b.entry.js → p-f30e0590.entry.js} +1 -1
- package/dist/ezui/{p-cf87aacb.entry.js → p-f4da7e1e.entry.js} +1 -1
- package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
- package/dist/ezui/{p-64b461b3.entry.js → p-fcc78b7f.entry.js} +1 -1
- package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +20 -8
- package/dist/types/components/ez-search/ez-search.d.ts +13 -3
- package/dist/types/components.d.ts +11 -157
- package/package.json +1 -1
- package/react/components.d.ts +0 -2
- package/react/components.js +0 -2
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +0 -186
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +0 -184
- package/dist/cjs/searchFormatters-b7e1ed1e.js +0 -23
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +0 -67
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +0 -527
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +0 -227
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +0 -289
- package/dist/collection/components/ez-search/utils/searchFormatters.js +0 -18
- package/dist/esm/ez-multi-selection-list.entry.js +0 -182
- package/dist/esm/ez-popover-plus_3.entry.js +0 -178
- package/dist/esm/searchFormatters-8229207e.js +0 -20
- package/dist/ezui/p-31da1b57.entry.js +0 -1
- package/dist/ezui/p-37201156.entry.js +0 -1
- package/dist/ezui/p-40a60148.js +0 -1
- package/dist/ezui/p-650e4b6d.entry.js +0 -1
- package/dist/ezui/p-b7706b43.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-dc73e1fe.entry.js +0 -1
- package/dist/ezui/p-dc8b36c3.entry.js +0 -1
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +0 -91
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +0 -23
- package/dist/types/components/ez-search/utils/searchFormatters.d.ts +0 -2
|
@@ -1382,7 +1382,7 @@ var Sizes;
|
|
|
1382
1382
|
Sizes["EXTRA_SMALL"] = "extra-small";
|
|
1383
1383
|
})(Sizes || (Sizes = {}));
|
|
1384
1384
|
|
|
1385
|
-
const ezBadgeCss = ":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center
|
|
1385
|
+
const ezBadgeCss = ":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-align-center{align-items:center}.badge__content--icon-align-start{align-items:flex-start}.badge__content--icon-align-end{align-items:flex-end}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";
|
|
1386
1386
|
|
|
1387
1387
|
const EzBadge$1 = class extends HTMLElement$1 {
|
|
1388
1388
|
constructor() {
|
|
@@ -1415,6 +1415,7 @@ const EzBadge$1 = class extends HTMLElement$1 {
|
|
|
1415
1415
|
this.iconLeft = undefined;
|
|
1416
1416
|
this.iconRight = undefined;
|
|
1417
1417
|
this.position = { horizontal: "right", vertical: "top" };
|
|
1418
|
+
this.alignItems = "center";
|
|
1418
1419
|
}
|
|
1419
1420
|
getIconSize() {
|
|
1420
1421
|
switch (this.size) {
|
|
@@ -1429,6 +1430,16 @@ const EzBadge$1 = class extends HTMLElement$1 {
|
|
|
1429
1430
|
return null;
|
|
1430
1431
|
}
|
|
1431
1432
|
}
|
|
1433
|
+
getAlignItemsClass() {
|
|
1434
|
+
switch (this.alignItems) {
|
|
1435
|
+
case "flex-end":
|
|
1436
|
+
return "end";
|
|
1437
|
+
case "flex-start":
|
|
1438
|
+
return "start";
|
|
1439
|
+
default:
|
|
1440
|
+
return "center";
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1432
1443
|
componentDidLoad() {
|
|
1433
1444
|
if (this._element) {
|
|
1434
1445
|
ElementIDUtils.addIDInfo(this._element);
|
|
@@ -1452,7 +1463,8 @@ const EzBadge$1 = class extends HTMLElement$1 {
|
|
|
1452
1463
|
}
|
|
1453
1464
|
createContainerClassName() {
|
|
1454
1465
|
let sizeSufix = this._sizes[this.size].sufix;
|
|
1455
|
-
let
|
|
1466
|
+
let alignItemsClass = "badge__content--icon-align-" + this.getAlignItemsClass();
|
|
1467
|
+
let containerClassNames = ["badge__content", alignItemsClass];
|
|
1456
1468
|
if (this.hasSlot) {
|
|
1457
1469
|
containerClassNames.push("badge__content--fill-" + sizeSufix);
|
|
1458
1470
|
if (this.position.vertical == "bottom" && this.position.horizontal == "right") {
|
|
@@ -2084,7 +2096,7 @@ const EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
2084
2096
|
static get style() { return ezCalendarCss; }
|
|
2085
2097
|
};
|
|
2086
2098
|
|
|
2087
|
-
const ezCardItemCss = ":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: var(--opacity--soft);\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--
|
|
2099
|
+
const ezCardItemCss = ":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: var(--opacity--soft);\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--medium);\n padding-bottom: 0px;\n padding-right: 0px;\n}\n\n.card-item__detail-label-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__detail-value-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__title-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__details-container__left-compacted{\n width: 100%;\n}\n\n.card-item__details-container__right-compacted {\n width: 100%;\n}\n\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
|
|
2088
2100
|
|
|
2089
2101
|
const EzCardItem$1 = class extends HTMLElement$1 {
|
|
2090
2102
|
constructor() {
|
|
@@ -75425,9 +75437,9 @@ const computePosition = (reference, floating, options) => {
|
|
|
75425
75437
|
});
|
|
75426
75438
|
};
|
|
75427
75439
|
|
|
75428
|
-
const
|
|
75440
|
+
const ezPopoverPlusCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--most-visible, 4);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--more-visible--2x, 3)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";
|
|
75429
75441
|
|
|
75430
|
-
const
|
|
75442
|
+
const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
75431
75443
|
constructor() {
|
|
75432
75444
|
super();
|
|
75433
75445
|
this.__registerHost();
|
|
@@ -75440,10 +75452,8 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75440
75452
|
this.overlayType = "light";
|
|
75441
75453
|
this.anchorElement = undefined;
|
|
75442
75454
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75443
|
-
this.useAnchorSize = false;
|
|
75444
|
-
this.minWidth = 150;
|
|
75445
75455
|
}
|
|
75446
|
-
observeOpened(newValue, oldValue) {
|
|
75456
|
+
async observeOpened(newValue, oldValue) {
|
|
75447
75457
|
if (newValue !== oldValue) {
|
|
75448
75458
|
if (newValue) {
|
|
75449
75459
|
this.openPopover();
|
|
@@ -75451,6 +75461,8 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75451
75461
|
else {
|
|
75452
75462
|
this.hidePopover();
|
|
75453
75463
|
}
|
|
75464
|
+
this.ezVisibilityChange.emit(newValue);
|
|
75465
|
+
return;
|
|
75454
75466
|
}
|
|
75455
75467
|
}
|
|
75456
75468
|
/**
|
|
@@ -75510,37 +75522,17 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75510
75522
|
verticalGap: this.parseSizePixel(top, this.options.verticalGap),
|
|
75511
75523
|
});
|
|
75512
75524
|
}
|
|
75513
|
-
getElement(element) {
|
|
75514
|
-
if (typeof element === 'string') {
|
|
75515
|
-
return document.getElementById(element);
|
|
75516
|
-
}
|
|
75517
|
-
return element;
|
|
75518
|
-
}
|
|
75519
|
-
getAnchorElement() {
|
|
75520
|
-
if (!this.anchorElement) {
|
|
75521
|
-
return this._host;
|
|
75522
|
-
}
|
|
75523
|
-
if (Array.isArray(this.anchorElement)) {
|
|
75524
|
-
for (const element of this.anchorElement) {
|
|
75525
|
-
const htmlElement = this.getElement(element);
|
|
75526
|
-
if (htmlElement) {
|
|
75527
|
-
return htmlElement;
|
|
75528
|
-
}
|
|
75529
|
-
}
|
|
75530
|
-
}
|
|
75531
|
-
return this.getElement(this.anchorElement);
|
|
75532
|
-
}
|
|
75533
75525
|
async updatePositionPopover() {
|
|
75534
75526
|
if (!this._box || !this.opened) {
|
|
75535
75527
|
return;
|
|
75536
75528
|
}
|
|
75537
|
-
|
|
75538
|
-
|
|
75539
|
-
|
|
75540
|
-
|
|
75541
|
-
this.
|
|
75529
|
+
if (!this.anchorElement) {
|
|
75530
|
+
this.anchorElement = this._host;
|
|
75531
|
+
}
|
|
75532
|
+
if (typeof this.anchorElement === 'string') {
|
|
75533
|
+
this.anchorElement = document.getElementById(this.anchorElement);
|
|
75542
75534
|
}
|
|
75543
|
-
await computePosition(
|
|
75535
|
+
await computePosition(this.anchorElement, this._box, {
|
|
75544
75536
|
placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
|
|
75545
75537
|
middleware: [flip(), shift({ padding: 5 })],
|
|
75546
75538
|
strategy: 'fixed',
|
|
@@ -75565,14 +75557,12 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75565
75557
|
if (!this._box) {
|
|
75566
75558
|
return;
|
|
75567
75559
|
}
|
|
75568
|
-
|
|
75569
|
-
|
|
75570
|
-
|
|
75571
|
-
|
|
75572
|
-
|
|
75573
|
-
|
|
75574
|
-
this._box.style.visibility = 'visible';
|
|
75575
|
-
}
|
|
75560
|
+
this._box.style.display = 'flex';
|
|
75561
|
+
this._box.style.visibility = 'hidden';
|
|
75562
|
+
await this.updatePositionPopover();
|
|
75563
|
+
this.openOverlay();
|
|
75564
|
+
this.ezVisibilityChange.emit(true);
|
|
75565
|
+
this._box.style.visibility = 'visible';
|
|
75576
75566
|
}
|
|
75577
75567
|
openOverlay() {
|
|
75578
75568
|
if (!this._overlay || !this._overlayIsActive) {
|
|
@@ -75612,7 +75602,6 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75612
75602
|
this._overlayIsActive = this.checkStatusOverlay();
|
|
75613
75603
|
this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
|
|
75614
75604
|
this._resizeObserver.observe(this._box);
|
|
75615
|
-
this.openPopover();
|
|
75616
75605
|
}
|
|
75617
75606
|
disconnectedCallback() {
|
|
75618
75607
|
window.removeEventListener('scroll', this.updatePositionDebounce.bind(this), true);
|
|
@@ -75630,97 +75619,6 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75630
75619
|
static get watchers() { return {
|
|
75631
75620
|
"opened": ["observeOpened"]
|
|
75632
75621
|
}; }
|
|
75633
|
-
static get style() { return ezPopoverCoreCss; }
|
|
75634
|
-
};
|
|
75635
|
-
|
|
75636
|
-
const ezPopoverPlusCss = ":host{display:none}";
|
|
75637
|
-
|
|
75638
|
-
const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
75639
|
-
constructor() {
|
|
75640
|
-
super();
|
|
75641
|
-
this.__registerHost();
|
|
75642
|
-
this.__attachShadow();
|
|
75643
|
-
this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
|
|
75644
|
-
this.autoClose = true;
|
|
75645
|
-
this.boxWidth = "fit-content";
|
|
75646
|
-
this.opened = false;
|
|
75647
|
-
this.overlayType = "light";
|
|
75648
|
-
this.anchorElement = undefined;
|
|
75649
|
-
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75650
|
-
this.useAnchorSize = false;
|
|
75651
|
-
}
|
|
75652
|
-
async observeOpened(newValue) {
|
|
75653
|
-
if (newValue && !this._popOverCore) {
|
|
75654
|
-
this.renderPopoverCore();
|
|
75655
|
-
}
|
|
75656
|
-
this._popOverCore.opened = newValue;
|
|
75657
|
-
}
|
|
75658
|
-
/**
|
|
75659
|
-
* Atualiza a posição do popover.
|
|
75660
|
-
*/
|
|
75661
|
-
async updatePosition(top, left) {
|
|
75662
|
-
await this._popOverCore.updatePosition(top, left);
|
|
75663
|
-
}
|
|
75664
|
-
/**
|
|
75665
|
-
* Exibe o ez-popover.
|
|
75666
|
-
*/
|
|
75667
|
-
async show(top, left) {
|
|
75668
|
-
if (!this._popOverCore) {
|
|
75669
|
-
this.renderPopoverCore();
|
|
75670
|
-
}
|
|
75671
|
-
await this._popOverCore.show(top, left);
|
|
75672
|
-
}
|
|
75673
|
-
/**
|
|
75674
|
-
* Ancora a exibição do popOver a um elemento HTML.
|
|
75675
|
-
*/
|
|
75676
|
-
async showUnder(element, options) {
|
|
75677
|
-
if (!this._popOverCore) {
|
|
75678
|
-
this.renderPopoverCore();
|
|
75679
|
-
}
|
|
75680
|
-
await this._popOverCore.showUnder(element, options);
|
|
75681
|
-
}
|
|
75682
|
-
/**
|
|
75683
|
-
* Oculta o ez-popover.
|
|
75684
|
-
*/
|
|
75685
|
-
async hide() {
|
|
75686
|
-
var _a;
|
|
75687
|
-
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.hide());
|
|
75688
|
-
}
|
|
75689
|
-
/**
|
|
75690
|
-
* Altera as opções.
|
|
75691
|
-
*/
|
|
75692
|
-
async setOptions(options) {
|
|
75693
|
-
await this._popOverCore.setOptions(options);
|
|
75694
|
-
}
|
|
75695
|
-
/**
|
|
75696
|
-
* Altera o elemento de ancoragem.
|
|
75697
|
-
*/
|
|
75698
|
-
async setAnchorElement(anchor) {
|
|
75699
|
-
await this._popOverCore.setAnchorElement(anchor);
|
|
75700
|
-
}
|
|
75701
|
-
renderPopoverCore() {
|
|
75702
|
-
this._popOverCore = document.createElement('ez-popover-core');
|
|
75703
|
-
this._popOverCore.opened = this.opened;
|
|
75704
|
-
this._popOverCore.anchorElement = this.anchorElement;
|
|
75705
|
-
this._popOverCore.autoClose = this.autoClose;
|
|
75706
|
-
this._popOverCore.boxWidth = this.boxWidth;
|
|
75707
|
-
this._popOverCore.overlayType = this.overlayType;
|
|
75708
|
-
this._popOverCore.options = this.options;
|
|
75709
|
-
this._popOverCore.useAnchorSize = this.useAnchorSize;
|
|
75710
|
-
this._popOverCore.addEventListener('ezVisibilityChange', ({ detail }) => {
|
|
75711
|
-
this.ezVisibilityChange.emit(detail);
|
|
75712
|
-
this.opened = detail;
|
|
75713
|
-
});
|
|
75714
|
-
this._popOverCore.appendChild(this._host.children.item(0));
|
|
75715
|
-
document.body.appendChild(this._popOverCore);
|
|
75716
|
-
}
|
|
75717
|
-
render() {
|
|
75718
|
-
return (h(Host, null, h("slot", null)));
|
|
75719
|
-
}
|
|
75720
|
-
get _host() { return this; }
|
|
75721
|
-
static get watchers() { return {
|
|
75722
|
-
"opened": ["observeOpened"]
|
|
75723
|
-
}; }
|
|
75724
75622
|
static get style() { return ezPopoverPlusCss; }
|
|
75725
75623
|
};
|
|
75726
75624
|
|
|
@@ -76052,26 +75950,7 @@ class ScrollCtrl {
|
|
|
76052
75950
|
}
|
|
76053
75951
|
}
|
|
76054
75952
|
|
|
76055
|
-
const
|
|
76056
|
-
const END_HIGH_LIGHT_TAG = "</span>";
|
|
76057
|
-
function replaceHighlight(value) {
|
|
76058
|
-
const startHighlight = new RegExp(START_HIGH_LIGHT_TAG, 'g');
|
|
76059
|
-
const endHighlight = new RegExp(END_HIGH_LIGHT_TAG, 'g');
|
|
76060
|
-
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
76061
|
-
return replaceQuotes(newValue);
|
|
76062
|
-
}
|
|
76063
|
-
function replaceQuotes(text) {
|
|
76064
|
-
if (text == undefined) {
|
|
76065
|
-
return;
|
|
76066
|
-
}
|
|
76067
|
-
return String(text)
|
|
76068
|
-
.replace(/&/g, '&')
|
|
76069
|
-
.replace(/</g, '<')
|
|
76070
|
-
.replace(/>/g, '>')
|
|
76071
|
-
.replace(/"/g, '"');
|
|
76072
|
-
}
|
|
76073
|
-
|
|
76074
|
-
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";
|
|
75953
|
+
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{min-width:var(--ez-search__list-min-width);overflow:auto;position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:350px;min-width:150px;background-color:var(--ez-search--background-color--xlight);border-radius:var(--ez-search--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.list-options{margin-top:0px;box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";
|
|
76075
75954
|
|
|
76076
75955
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
76077
75956
|
constructor() {
|
|
@@ -76207,6 +76086,20 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76207
76086
|
async clearValue() {
|
|
76208
76087
|
this.clearSearch();
|
|
76209
76088
|
}
|
|
76089
|
+
scrollListener() {
|
|
76090
|
+
var _a;
|
|
76091
|
+
if (this._floatingID == undefined) {
|
|
76092
|
+
return;
|
|
76093
|
+
}
|
|
76094
|
+
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
76095
|
+
this.hideOptions();
|
|
76096
|
+
}
|
|
76097
|
+
else {
|
|
76098
|
+
window.requestAnimationFrame(() => {
|
|
76099
|
+
this.updateListPosition();
|
|
76100
|
+
});
|
|
76101
|
+
}
|
|
76102
|
+
}
|
|
76210
76103
|
async handleValueAsString(value) {
|
|
76211
76104
|
if (this.getSelectedOption(value)) {
|
|
76212
76105
|
this.setInputValue();
|
|
@@ -76220,6 +76113,49 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76220
76113
|
this.ezChange.emit(this.value);
|
|
76221
76114
|
this._currentValue = this.value;
|
|
76222
76115
|
}
|
|
76116
|
+
updateListPosition() {
|
|
76117
|
+
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
76118
|
+
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
76119
|
+
const containerRect = this._listContainer.getBoundingClientRect();
|
|
76120
|
+
const textInputRect = this._textInput.getBoundingClientRect();
|
|
76121
|
+
const limitHeight = bottomLimit || window.innerHeight;
|
|
76122
|
+
const neededHeight = containerRect.bottom + elementRect.height;
|
|
76123
|
+
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
76124
|
+
fromBottom = true;
|
|
76125
|
+
}
|
|
76126
|
+
if (!hardPosition) {
|
|
76127
|
+
verticalPosition = verticalPosition || 0;
|
|
76128
|
+
horizontalPosition = horizontalPosition || 0;
|
|
76129
|
+
if (fromBottom) {
|
|
76130
|
+
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
76131
|
+
}
|
|
76132
|
+
else {
|
|
76133
|
+
verticalPosition += containerRect.top;
|
|
76134
|
+
}
|
|
76135
|
+
if (fromRight) {
|
|
76136
|
+
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
76137
|
+
}
|
|
76138
|
+
else {
|
|
76139
|
+
horizontalPosition += containerRect.left;
|
|
76140
|
+
}
|
|
76141
|
+
}
|
|
76142
|
+
if (verticalPosition != undefined) {
|
|
76143
|
+
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
76144
|
+
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
76145
|
+
}
|
|
76146
|
+
if (horizontalPosition != undefined) {
|
|
76147
|
+
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
76148
|
+
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
76149
|
+
}
|
|
76150
|
+
}
|
|
76151
|
+
getListPosition() {
|
|
76152
|
+
if (this.listOptionsPosition) {
|
|
76153
|
+
return this.listOptionsPosition;
|
|
76154
|
+
}
|
|
76155
|
+
return {
|
|
76156
|
+
verticalPosition: 6
|
|
76157
|
+
};
|
|
76158
|
+
}
|
|
76223
76159
|
isDifferentValues(firstValue, secondValue) {
|
|
76224
76160
|
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
76225
76161
|
}
|
|
@@ -76234,14 +76170,24 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76234
76170
|
getText() {
|
|
76235
76171
|
const currentValue = this.getSelectedOption(this._currentValue);
|
|
76236
76172
|
const text = this.getFormattedText(currentValue);
|
|
76237
|
-
return replaceQuotes(text);
|
|
76173
|
+
return this.replaceQuotes(text);
|
|
76174
|
+
}
|
|
76175
|
+
replaceQuotes(text) {
|
|
76176
|
+
if (text == undefined) {
|
|
76177
|
+
return;
|
|
76178
|
+
}
|
|
76179
|
+
return String(text)
|
|
76180
|
+
.replace(/&/g, '&')
|
|
76181
|
+
.replace(/</g, '<')
|
|
76182
|
+
.replace(/>/g, '>')
|
|
76183
|
+
.replace(/"/g, '"');
|
|
76238
76184
|
}
|
|
76239
76185
|
getSelectedOption(value) {
|
|
76240
76186
|
if (typeof value === "string" || value instanceof String) {
|
|
76241
76187
|
return this._visibleOptions.find(o => o.value === value);
|
|
76242
76188
|
}
|
|
76243
76189
|
if (value) {
|
|
76244
|
-
return Object.assign(Object.assign({}, value), { value: replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
76190
|
+
return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
76245
76191
|
}
|
|
76246
76192
|
return value;
|
|
76247
76193
|
}
|
|
@@ -76279,19 +76225,75 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76279
76225
|
}
|
|
76280
76226
|
return 0;
|
|
76281
76227
|
}
|
|
76228
|
+
createOption(detail) {
|
|
76229
|
+
let { key, title } = detail;
|
|
76230
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
76231
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
76232
|
+
title = StringUtils$1.decodeHtmlEntities(title);
|
|
76233
|
+
const option = {
|
|
76234
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
76235
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
76236
|
+
};
|
|
76237
|
+
this.selectOption(option);
|
|
76238
|
+
}
|
|
76239
|
+
buildItem(opt, index) {
|
|
76240
|
+
opt.label = opt.label || opt.value;
|
|
76241
|
+
const card = {
|
|
76242
|
+
key: opt.value,
|
|
76243
|
+
title: opt.label,
|
|
76244
|
+
details: opt.details
|
|
76245
|
+
};
|
|
76246
|
+
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
|
|
76247
|
+
}
|
|
76282
76248
|
showOptions() {
|
|
76283
76249
|
if (!this.enabled)
|
|
76284
76250
|
return;
|
|
76285
76251
|
if (this.isOptionsVisible()) {
|
|
76286
76252
|
return;
|
|
76287
76253
|
}
|
|
76288
|
-
|
|
76254
|
+
if (!!this._resizeObserver)
|
|
76255
|
+
this._resizeObserver.observe(this._textInput);
|
|
76256
|
+
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
76257
|
+
this.setFocus();
|
|
76258
|
+
window.requestAnimationFrame(() => {
|
|
76259
|
+
this.updateListPosition();
|
|
76260
|
+
if (!this.listOptionsPosition) {
|
|
76261
|
+
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
76262
|
+
}
|
|
76263
|
+
});
|
|
76289
76264
|
}
|
|
76290
76265
|
hideOptions() {
|
|
76291
|
-
this.
|
|
76266
|
+
if (this._floatingID !== undefined) {
|
|
76267
|
+
FloatingManager.close(this._floatingID);
|
|
76268
|
+
}
|
|
76269
|
+
this._floatingID = undefined;
|
|
76270
|
+
if (!!this._resizeObserver)
|
|
76271
|
+
this._resizeObserver.unobserve(this._textInput);
|
|
76292
76272
|
}
|
|
76293
76273
|
isOptionsVisible() {
|
|
76294
|
-
return this.
|
|
76274
|
+
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
76275
|
+
}
|
|
76276
|
+
nextOption() {
|
|
76277
|
+
if (!this.isOptionsVisible()) {
|
|
76278
|
+
return;
|
|
76279
|
+
}
|
|
76280
|
+
this.showOptions();
|
|
76281
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
76282
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
76283
|
+
}
|
|
76284
|
+
previousOption() {
|
|
76285
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
76286
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
76287
|
+
}
|
|
76288
|
+
scrollToOption(opt) {
|
|
76289
|
+
window.requestAnimationFrame(() => {
|
|
76290
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
76291
|
+
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
76292
|
+
: undefined;
|
|
76293
|
+
if (liElem) {
|
|
76294
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
76295
|
+
}
|
|
76296
|
+
});
|
|
76295
76297
|
}
|
|
76296
76298
|
selectCurrentOption() {
|
|
76297
76299
|
if (this._preSelection !== undefined) {
|
|
@@ -76334,11 +76336,17 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76334
76336
|
this._source = [];
|
|
76335
76337
|
this.updateVisibleOptions();
|
|
76336
76338
|
}
|
|
76339
|
+
replaceHighlight(value) {
|
|
76340
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
76341
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
76342
|
+
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
76343
|
+
return this.replaceQuotes(newValue);
|
|
76344
|
+
}
|
|
76337
76345
|
selectOption(newOption, focusOnInput = true) {
|
|
76338
76346
|
var _a, _b;
|
|
76339
76347
|
const currentValue = this.getSelectedOption(this.value);
|
|
76340
|
-
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
76341
|
-
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
76348
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
76349
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
76342
76350
|
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
76343
76351
|
|| (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
|
|
76344
76352
|
const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
|
|
@@ -76448,7 +76456,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76448
76456
|
this.showNoResultMessage();
|
|
76449
76457
|
return;
|
|
76450
76458
|
}
|
|
76451
|
-
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: replaceHighlight(value.value), label: replaceHighlight(value.label) }) : value;
|
|
76459
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
76452
76460
|
this.value = this._currentValue;
|
|
76453
76461
|
this.setTextInputValue();
|
|
76454
76462
|
}
|
|
@@ -76457,7 +76465,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76457
76465
|
if (this.value === undefined || this.value === null)
|
|
76458
76466
|
return;
|
|
76459
76467
|
const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
|
|
76460
|
-
this._textInput.value = replaceQuotes(textValue);
|
|
76468
|
+
this._textInput.value = this.replaceQuotes(textValue);
|
|
76461
76469
|
}
|
|
76462
76470
|
}
|
|
76463
76471
|
loadOptionValue(argument) {
|
|
@@ -76494,7 +76502,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76494
76502
|
return;
|
|
76495
76503
|
}
|
|
76496
76504
|
let text = this.getFormattedText(this.value);
|
|
76497
|
-
text = replaceQuotes(text);
|
|
76505
|
+
text = this.replaceQuotes(text);
|
|
76498
76506
|
this._textInput.value = text;
|
|
76499
76507
|
}
|
|
76500
76508
|
//---------------------------------------------
|
|
@@ -76521,6 +76529,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76521
76529
|
}
|
|
76522
76530
|
componentDidRender() {
|
|
76523
76531
|
var _a;
|
|
76532
|
+
if (this._floatingID === undefined) {
|
|
76533
|
+
this._listWrapper.remove();
|
|
76534
|
+
}
|
|
76524
76535
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
76525
76536
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
76526
76537
|
});
|
|
@@ -76532,6 +76543,10 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76532
76543
|
window.requestAnimationFrame(() => {
|
|
76533
76544
|
if (!Array.isArray(entries) || !entries.length)
|
|
76534
76545
|
return;
|
|
76546
|
+
const { clientWidth } = this._listContainer;
|
|
76547
|
+
if (clientWidth > 0 && !!this._listWrapper) {
|
|
76548
|
+
this._listWrapper.style.width = `${clientWidth}px`;
|
|
76549
|
+
}
|
|
76535
76550
|
});
|
|
76536
76551
|
});
|
|
76537
76552
|
await this.handleInitialValue();
|
|
@@ -76598,7 +76613,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76598
76613
|
this._changeDeboucingTimeout = null;
|
|
76599
76614
|
}
|
|
76600
76615
|
}
|
|
76601
|
-
|
|
76616
|
+
keyDownHandler(event) {
|
|
76602
76617
|
this._tabPressed = false;
|
|
76603
76618
|
if (event.ctrlKey) {
|
|
76604
76619
|
if (event.key === "f" || event.key === "F") {
|
|
@@ -76614,20 +76629,15 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76614
76629
|
switch (event.key) {
|
|
76615
76630
|
case "ArrowDown":
|
|
76616
76631
|
event.stopPropagation();
|
|
76617
|
-
if (this.canShowListOptions())
|
|
76632
|
+
if (this.canShowListOptions())
|
|
76618
76633
|
event.preventDefault();
|
|
76619
|
-
|
|
76620
|
-
if (!this.isOptionsVisible()) {
|
|
76621
|
-
this.showOptions();
|
|
76622
|
-
}
|
|
76623
|
-
await this._searchList.nextOption();
|
|
76634
|
+
this.nextOption();
|
|
76624
76635
|
break;
|
|
76625
76636
|
case "ArrowUp":
|
|
76626
76637
|
event.stopPropagation();
|
|
76627
|
-
if (this.canShowListOptions())
|
|
76638
|
+
if (this.canShowListOptions())
|
|
76628
76639
|
event.preventDefault();
|
|
76629
|
-
|
|
76630
|
-
await this._searchList.previousOption();
|
|
76640
|
+
this.previousOption();
|
|
76631
76641
|
break;
|
|
76632
76642
|
case "Enter":
|
|
76633
76643
|
this.handleEventPropagation(event);
|
|
@@ -76649,7 +76659,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76649
76659
|
}
|
|
76650
76660
|
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
76651
76661
|
handleEventPropagation(event) {
|
|
76652
|
-
if (this.
|
|
76662
|
+
if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
|
|
76653
76663
|
event.stopPropagation();
|
|
76654
76664
|
}
|
|
76655
76665
|
}
|
|
@@ -76661,17 +76671,17 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76661
76671
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
76662
76672
|
}
|
|
76663
76673
|
canShowLoadSpinDescription() {
|
|
76664
|
-
return this._showLoadingDescription &&
|
|
76665
|
-
}
|
|
76666
|
-
onChangePreSelection(value) {
|
|
76667
|
-
this._preSelection = value;
|
|
76674
|
+
return this._showLoadingDescription && this._floatingID == undefined;
|
|
76668
76675
|
}
|
|
76669
76676
|
render() {
|
|
76670
76677
|
var _a;
|
|
76671
76678
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
76672
76679
|
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
76673
76680
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
76674
|
-
: undefined), h("
|
|
76681
|
+
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
76682
|
+
&& this._visibleOptions.length === 0
|
|
76683
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
76684
|
+
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem }), this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
|
|
76675
76685
|
}
|
|
76676
76686
|
get el() { return this; }
|
|
76677
76687
|
static get watchers() { return {
|
|
@@ -80386,84 +80396,11 @@ const MultiSelectionBoxMessage$1 = class extends HTMLElement$1 {
|
|
|
80386
80396
|
static get style() { return multiSelectionBoxMessageCss; }
|
|
80387
80397
|
};
|
|
80388
80398
|
|
|
80389
|
-
const searchListCss = ":host{--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--small, 6px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px)}.list-options{position:relative;z-index:var(--more-visible, 2);margin:var(--space--small) 0px;padding:0px;padding-inline-start:0px;box-sizing:border-box;width:100%;height:100%;max-height:350px;min-width:150px;display:flex;flex-direction:column;scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--scrollbar--background);width:var(--space--small);max-width:var(--space--small);min-width:var(--space--small);height:var(--space--small);max-height:var(--space--small);min-height:var(--space--small)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;margin:var(--space--medium) 0px;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);gap:var(--space--small, 6px)}.preselected{background-color:var(--background--medium)}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@supports not (scrollbar-width: thin){.item{padding-right:8px}}";
|
|
80390
|
-
|
|
80391
|
-
const SearchList$1 = class extends HTMLElement$1 {
|
|
80392
|
-
constructor() {
|
|
80393
|
-
super();
|
|
80394
|
-
this.__registerHost();
|
|
80395
|
-
this.__attachShadow();
|
|
80396
|
-
this.changeValue = createEvent(this, "changeValue", 7);
|
|
80397
|
-
this.changePreSelection = createEvent(this, "changePreSelection", 7);
|
|
80398
|
-
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
80399
|
-
this._endHighlightTag = "</span>";
|
|
80400
|
-
this.showLoading = undefined;
|
|
80401
|
-
this.visibleOptions = [];
|
|
80402
|
-
this.textEmptyList = undefined;
|
|
80403
|
-
this.canShowListOptions = undefined;
|
|
80404
|
-
this.value = undefined;
|
|
80405
|
-
this.showOptionValue = true;
|
|
80406
|
-
this.preSelection = undefined;
|
|
80407
|
-
}
|
|
80408
|
-
async nextOption() {
|
|
80409
|
-
const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
|
|
80410
|
-
this.changePreSelection.emit(newPreSelection);
|
|
80411
|
-
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
80412
|
-
}
|
|
80413
|
-
async previousOption() {
|
|
80414
|
-
const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
|
|
80415
|
-
this.changePreSelection.emit(newPreSelection);
|
|
80416
|
-
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
80417
|
-
}
|
|
80418
|
-
selectOption(newOption) {
|
|
80419
|
-
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
80420
|
-
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
80421
|
-
this.changeValue.emit(newOptionsFormatted);
|
|
80422
|
-
}
|
|
80423
|
-
createOption(detail) {
|
|
80424
|
-
let { key, title } = detail;
|
|
80425
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
80426
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
80427
|
-
title = StringUtils$1.decodeHtmlEntities(title);
|
|
80428
|
-
const option = {
|
|
80429
|
-
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
80430
|
-
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
80431
|
-
};
|
|
80432
|
-
this.selectOption(option);
|
|
80433
|
-
}
|
|
80434
|
-
scrollToOption(opt) {
|
|
80435
|
-
window.requestAnimationFrame(() => {
|
|
80436
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
80437
|
-
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
80438
|
-
: undefined;
|
|
80439
|
-
if (liElem) {
|
|
80440
|
-
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
80441
|
-
}
|
|
80442
|
-
});
|
|
80443
|
-
}
|
|
80444
|
-
buildItem(opt, index) {
|
|
80445
|
-
opt.label = opt.label || opt.value;
|
|
80446
|
-
const card = {
|
|
80447
|
-
key: opt.value,
|
|
80448
|
-
title: opt.label,
|
|
80449
|
-
details: opt.details
|
|
80450
|
-
};
|
|
80451
|
-
return h("div", { style: { "height": "100%" }, class: index === this.preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this.changePreSelection.emit(index) }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
|
|
80452
|
-
}
|
|
80453
|
-
render() {
|
|
80454
|
-
return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
|
|
80455
|
-
&& this.visibleOptions.length === 0
|
|
80456
|
-
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
|
|
80457
|
-
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
|
|
80458
|
-
}
|
|
80459
|
-
static get style() { return searchListCss; }
|
|
80460
|
-
};
|
|
80461
|
-
|
|
80462
80399
|
const EzActionsButton = /*@__PURE__*/proxyCustomElement(EzActionsButton$1, [1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32]}]);
|
|
80463
80400
|
const EzAlert = /*@__PURE__*/proxyCustomElement(EzAlert$1, [1,"ez-alert",{"alertType":[513,"alert-type"]}]);
|
|
80464
80401
|
const EzAlertList = /*@__PURE__*/proxyCustomElement(EzAlertList$1, [1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540],"_container":[32]}]);
|
|
80465
80402
|
const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
|
|
80466
|
-
const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]);
|
|
80403
|
+
const EzBadge = /*@__PURE__*/proxyCustomElement(EzBadge$1, [1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"alignItems":[1537,"align-items"],"hasSlot":[32]}]);
|
|
80467
80404
|
const EzBreadcrumb = /*@__PURE__*/proxyCustomElement(EzBreadcrumb$1, [1,"ez-breadcrumb",{"items":[1040],"fillMode":[1025,"fill-mode"],"maxItems":[1026,"max-items"],"positionEllipsis":[1026,"position-ellipsis"],"visibleItems":[32],"hiddenItems":[32],"showDropdown":[32],"collapseConfigPosition":[32]}]);
|
|
80468
80405
|
const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513]},[[2,"click","clickListener"]]]);
|
|
80469
80406
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]},[[11,"scroll","scrollListener"]]]);
|
|
@@ -80493,12 +80430,11 @@ const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,
|
|
|
80493
80430
|
const EzMultiSelectionList = /*@__PURE__*/proxyCustomElement(EzMuiltiSelectionList, [2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32]}]);
|
|
80494
80431
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"allowNegative":[4,"allow-negative"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"autoFocus":[4,"auto-focus"],"_value":[32]}]);
|
|
80495
80432
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
|
|
80496
|
-
const
|
|
80497
|
-
const EzPopoverPlus = /*@__PURE__*/proxyCustomElement(EzPopoverPlus$1, [1,"ez-popover-plus",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040],"useAnchorSize":[516,"use-anchor-size"]}]);
|
|
80433
|
+
const EzPopoverPlus = /*@__PURE__*/proxyCustomElement(EzPopoverPlus$1, [1,"ez-popover-plus",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040]}]);
|
|
80498
80434
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"],"enabledScroll":[4,"enabled-scroll"]}]);
|
|
80499
80435
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
80500
80436
|
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
80501
|
-
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"contextProperties":[8,"context-properties"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"ensureClearButtonVisible":[4,"ensure-clear-button-visible"],"suppressPreLoad":[4,"suppress-pre-load"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_showLoadingDescription":[32],"_criteria":[32]}]);
|
|
80437
|
+
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"contextProperties":[8,"context-properties"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"stopPropagateEnterKeyEvent":[4,"stop-propagate-enter-key-event"],"mode":[513],"canShowError":[516,"can-show-error"],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"ignoreLimitCharsToSearch":[4,"ignore-limit-chars-to-search"],"options":[1040],"suppressSearch":[4,"suppress-search"],"ensureClearButtonVisible":[4,"ensure-clear-button-visible"],"suppressPreLoad":[4,"suppress-pre-load"],"autoFocus":[4,"auto-focus"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_showLoadingDescription":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
80502
80438
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
80503
80439
|
const EzSidebarNavigator = /*@__PURE__*/proxyCustomElement(EzSidebarNavigator$1, [1,"ez-sidebar-navigator",{"type":[1],"mode":[1025],"size":[1],"isResponsive":[4,"is-responsive"],"titleMenu":[1,"title-menu"],"showCollapseMenu":[4,"show-collapse-menu"],"showFixedButton":[4,"show-fixed-button"],"open":[32]}]);
|
|
80504
80440
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
@@ -80517,7 +80453,6 @@ const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"la
|
|
|
80517
80453
|
const EzViewStack = /*@__PURE__*/proxyCustomElement(EzViewStack$1, [0,"ez-view-stack"]);
|
|
80518
80454
|
const FilterColumn = /*@__PURE__*/proxyCustomElement(FilterColumn$1, [0,"filter-column",{"opened":[4],"columnName":[1,"column-name"],"columnLabel":[1,"column-label"],"gridHeaderHidden":[4,"grid-header-hidden"],"noHeaderTaskBar":[1028,"no-header-task-bar"],"dataSource":[16],"dataUnit":[16],"options":[1040],"selectedItems":[32],"fieldDescriptor":[32],"useOptions":[32],"isTextSearch":[32]}]);
|
|
80519
80455
|
const MultiSelectionBoxMessage = /*@__PURE__*/proxyCustomElement(MultiSelectionBoxMessage$1, [0,"multi-selection-box-message",{"message":[1]}]);
|
|
80520
|
-
const SearchList = /*@__PURE__*/proxyCustomElement(SearchList$1, [1,"search-list",{"showLoading":[4,"show-loading"],"visibleOptions":[16],"textEmptyList":[1,"text-empty-list"],"canShowListOptions":[4,"can-show-list-options"],"value":[1],"showOptionValue":[4,"show-option-value"],"preSelection":[2,"pre-selection"]}]);
|
|
80521
80456
|
const defineCustomElements = (opts) => {
|
|
80522
80457
|
if (typeof customElements !== 'undefined') {
|
|
80523
80458
|
[
|
|
@@ -80555,7 +80490,6 @@ const defineCustomElements = (opts) => {
|
|
|
80555
80490
|
EzMultiSelectionList,
|
|
80556
80491
|
EzNumberInput,
|
|
80557
80492
|
EzPopover,
|
|
80558
|
-
EzPopoverCore,
|
|
80559
80493
|
EzPopoverPlus,
|
|
80560
80494
|
EzPopup,
|
|
80561
80495
|
EzRadioButton,
|
|
@@ -80578,8 +80512,7 @@ const defineCustomElements = (opts) => {
|
|
|
80578
80512
|
EzUpload,
|
|
80579
80513
|
EzViewStack,
|
|
80580
80514
|
FilterColumn,
|
|
80581
|
-
MultiSelectionBoxMessage
|
|
80582
|
-
SearchList
|
|
80515
|
+
MultiSelectionBoxMessage
|
|
80583
80516
|
].forEach(cmp => {
|
|
80584
80517
|
if (!customElements.get(cmp.is)) {
|
|
80585
80518
|
customElements.define(cmp.is, cmp, opts);
|
|
@@ -80588,4 +80521,4 @@ const defineCustomElements = (opts) => {
|
|
|
80588
80521
|
}
|
|
80589
80522
|
};
|
|
80590
80523
|
|
|
80591
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover,
|
|
80524
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|