@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-83282.1 → 0.0.0-bugfix-dev-KB-84596.0
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-badge.cjs.entry.js +14 -2
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +1416 -7
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +4 -17
- package/dist/cjs/ez-date-time-input.cjs.entry.js +4 -16
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +35 -61
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +200 -0
- package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +28 -158
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/collection/collection-manifest.json +2 -1
- 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-button/ez-button.css +1 -1
- package/dist/collection/components/ez-card-item/ez-card-item.css +1 -3
- package/dist/collection/components/ez-chip/ez-chip.css +5 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +4 -17
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +4 -16
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -2
- package/dist/collection/components/ez-grid/ez-grid.js +6 -3
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +55 -15
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +2 -2
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +73 -13
- package/dist/collection/components/ez-scroller/ez-scroller.css +3 -0
- package/dist/collection/components/ez-search/ez-search.css +0 -219
- package/dist/collection/components/ez-search/ez-search.js +28 -167
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +1 -1
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +237 -282
- package/dist/esm/ez-badge.entry.js +14 -2
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-card-item_2.entry.js +1416 -7
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-date-input.entry.js +4 -17
- package/dist/esm/ez-date-time-input.entry.js +4 -16
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +36 -62
- package/dist/esm/ez-popover-plus_3.entry.js +194 -0
- package/dist/esm/ez-scroller_2.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +29 -159
- package/dist/esm/ez-split-item.entry.js +1 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-20cb13fa.entry.js +1 -0
- package/dist/ezui/p-23b6128c.entry.js +1 -0
- package/dist/ezui/p-2872fd16.entry.js +1 -0
- package/dist/ezui/p-288631d1.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/p-788467fe.entry.js +1 -0
- package/dist/ezui/p-a69355eb.entry.js +1 -0
- package/dist/ezui/p-b7706b43.entry.js +1 -0
- package/dist/ezui/{p-53116373.entry.js → p-cb5cd243.entry.js} +46 -46
- package/dist/ezui/p-d2bc2f06.entry.js +1 -0
- package/dist/ezui/p-dcf3c8e5.entry.js +1 -0
- package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
- package/dist/ezui/p-e75c7a23.entry.js +1 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +2 -2
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +2 -2
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +9 -4
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +13 -3
- package/dist/types/components/ez-search/ez-search.d.ts +3 -13
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
- package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components.d.ts +82 -6
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-popover-core_2.cjs.entry.js +0 -1504
- package/dist/esm/ez-popover-core_2.entry.js +0 -1499
- package/dist/ezui/p-0faf71c5.entry.js +0 -1
- package/dist/ezui/p-2bb2a0c4.entry.js +0 -1
- package/dist/ezui/p-3429080c.entry.js +0 -1
- package/dist/ezui/p-58783dcf.entry.js +0 -1
- package/dist/ezui/p-650e4b6d.entry.js +0 -1
- package/dist/ezui/p-65f471bc.entry.js +0 -1
- package/dist/ezui/p-7bd15498.entry.js +0 -1
- package/dist/ezui/p-990b4318.entry.js +0 -1
- package/dist/ezui/p-b26f6c5b.entry.js +0 -1
- package/dist/ezui/p-d9548bdf.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { UserInterface, DateUtils as DateUtils$1, Action, StringUtils as StringUtils$1, ApplicationContext, WaitingChangeException, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, HTMLBuilder, TimeFormatter, KeyboardManager, ArrayUtils as ArrayUtils$1, DataUnit, LockManager, LockManagerOperation, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, FieldComparator, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
|
|
3
|
+
import { UserInterface, DateUtils as DateUtils$1, Action, StringUtils as StringUtils$1, ApplicationContext, WaitingChangeException, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, HTMLBuilder, TimeFormatter, KeyboardManager, ArrayUtils as ArrayUtils$1, DataUnit, LockManager, LockManagerOperation, NumberUtils as NumberUtils$1, MaskFormatter, DataType, SortMode, ColumnFilterManager as ColumnFilterManager$1, FieldComparator, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
|
|
4
4
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
5
5
|
|
|
6
6
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
@@ -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") {
|
|
@@ -1765,7 +1777,7 @@ const EzBreadcrumb$1 = class extends HTMLElement$1 {
|
|
|
1765
1777
|
static get style() { return ezBreadcrumbCss; }
|
|
1766
1778
|
};
|
|
1767
1779
|
|
|
1768
|
-
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #2B3A54);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--light, #ffffff);--ez-button--border-radius:var(--border--radius-large, 24px);--ez-button--border:1px solid var(--color--strokes);--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600, #007a5a);--ez-button--hover--background-color:var(--background--light, #ffffff);--ez-button--disabled-color:var(--text--primary);--ez-button--disabled--background-color:var(--background--medium);--ez-button--focus--border:var(--border--medium, 2px solid) var(--color--primary-300);--ez-button--focus--box-shadow:var(--color--primary-300) 0px 0px 0px 2px;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--text--secondary, #a2abb9);--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:none}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.x-small{height:28px;--ez-button--font-size:var(--text--small, 12px)}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--x-small{width:28px;min-width:28px;height:28px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
|
|
1780
|
+
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #2B3A54);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large, 500);--ez-button--background-color:var(--background--light, #ffffff);--ez-button--border-radius:var(--border--radius-large, 24px);--ez-button--border:1px solid var(--color--strokes);--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600, #007a5a);--ez-button--hover--background-color:var(--background--light, #ffffff);--ez-button--disabled-color:var(--text--primary);--ez-button--disabled--background-color:var(--background--medium);--ez-button--focus--border:var(--border--medium, 2px solid) var(--color--primary-300);--ez-button--focus--box-shadow:var(--color--primary-300) 0px 0px 0px 2px;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--text--secondary, #a2abb9);--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:none}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.x-small{height:28px;--ez-button--font-size:var(--text--small, 12px)}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--x-small{width:28px;min-width:28px;height:28px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
|
|
1769
1781
|
|
|
1770
1782
|
const EzButton$1 = class extends HTMLElement$1 {
|
|
1771
1783
|
constructor() {
|
|
@@ -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--2xs) var(--space--small);\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() {
|
|
@@ -2658,7 +2670,7 @@ const EzCheck$1 = class extends HTMLElement$1 {
|
|
|
2658
2670
|
static get style() { return ezCheckCss; }
|
|
2659
2671
|
};
|
|
2660
2672
|
|
|
2661
|
-
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:
|
|
2673
|
+
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary);--ez-label-chip__label__container--default--margin-top:var(--space-extra-small, 3px)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active);margin-top:var(--ez-label-chip__label__container--default--margin-top)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container:focus{outline:none;box-shadow:0 0 0 2px var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";
|
|
2662
2674
|
|
|
2663
2675
|
const EzChip$1 = class extends HTMLElement$1 {
|
|
2664
2676
|
constructor() {
|
|
@@ -3729,22 +3741,9 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
3729
3741
|
this._changePending = false;
|
|
3730
3742
|
}
|
|
3731
3743
|
}
|
|
3732
|
-
showCalendar() {
|
|
3733
|
-
this.handleBlur();
|
|
3734
|
-
this._calendar.value = this.value;
|
|
3735
|
-
let top;
|
|
3736
|
-
if (this.isFixed()) {
|
|
3737
|
-
top = 29;
|
|
3738
|
-
this._calendar.fitHorizontal(0);
|
|
3739
|
-
}
|
|
3740
|
-
else {
|
|
3741
|
-
top = this.errorMessage || this.mode === "slim" ? 6 : -13;
|
|
3742
|
-
}
|
|
3743
|
-
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
3744
|
-
}
|
|
3745
3744
|
hideCalendar() {
|
|
3746
3745
|
this.changeValue(this._calendar.value);
|
|
3747
|
-
this.
|
|
3746
|
+
this._popover.hide();
|
|
3748
3747
|
}
|
|
3749
3748
|
handleBlur() {
|
|
3750
3749
|
if (!this._changePending) {
|
|
@@ -3805,8 +3804,8 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
3805
3804
|
this._textInput.value = textValue;
|
|
3806
3805
|
}
|
|
3807
3806
|
}
|
|
3808
|
-
|
|
3809
|
-
|
|
3807
|
+
disconnectedCallback() {
|
|
3808
|
+
this.hideCalendar();
|
|
3810
3809
|
}
|
|
3811
3810
|
componentDidLoad() {
|
|
3812
3811
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
@@ -3819,7 +3818,7 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
3819
3818
|
}
|
|
3820
3819
|
render() {
|
|
3821
3820
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
3822
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.
|
|
3821
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
|
|
3823
3822
|
}
|
|
3824
3823
|
get _elem() { return this; }
|
|
3825
3824
|
static get watchers() { return {
|
|
@@ -3957,21 +3956,9 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
3957
3956
|
this.value = newValueValidated;
|
|
3958
3957
|
}
|
|
3959
3958
|
}
|
|
3960
|
-
showCalendar() {
|
|
3961
|
-
let top;
|
|
3962
|
-
if (this.isFixed()) {
|
|
3963
|
-
top = 29;
|
|
3964
|
-
this._calendar.fitHorizontal(0);
|
|
3965
|
-
}
|
|
3966
|
-
else {
|
|
3967
|
-
top = this.errorMessage || this.mode === "slim" ? 6 : -13;
|
|
3968
|
-
}
|
|
3969
|
-
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
3970
|
-
this._calendar.style.visibility = 'inherit';
|
|
3971
|
-
}
|
|
3972
3959
|
hideCalendar() {
|
|
3973
3960
|
this.changeValue(this._calendar.value);
|
|
3974
|
-
this.
|
|
3961
|
+
this._popover.hide();
|
|
3975
3962
|
}
|
|
3976
3963
|
getParsedDateTime(strValue) {
|
|
3977
3964
|
var _a, _b;
|
|
@@ -4049,8 +4036,8 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
4049
4036
|
this._textInput.value = textValue;
|
|
4050
4037
|
}
|
|
4051
4038
|
}
|
|
4052
|
-
|
|
4053
|
-
|
|
4039
|
+
disconnectedCallback() {
|
|
4040
|
+
this.hideCalendar();
|
|
4054
4041
|
}
|
|
4055
4042
|
componentDidLoad() {
|
|
4056
4043
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
@@ -4063,7 +4050,7 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
4063
4050
|
}
|
|
4064
4051
|
render() {
|
|
4065
4052
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
4066
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.
|
|
4053
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
|
|
4067
4054
|
}
|
|
4068
4055
|
get _elem() { return this; }
|
|
4069
4056
|
static get watchers() { return {
|
|
@@ -6008,7 +5995,7 @@ function buildNumeric$1(fieldName, fieldLabel, readOnly, precision, prettyPrecis
|
|
|
6008
5995
|
const buildSearch$1 = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
|
|
6009
5996
|
var _a;
|
|
6010
5997
|
return (h("div", { class: "ez-col ez-col--sd-12" },
|
|
6011
|
-
h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
|
|
5998
|
+
h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props === null || props === void 0 ? void 0 : props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
|
|
6012
5999
|
};
|
|
6013
6000
|
|
|
6014
6001
|
const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError }) => {
|
|
@@ -70934,6 +70921,7 @@ class AgGridController {
|
|
|
70934
70921
|
this.RECORD_ARCHIVE_COL_ID = '__RECORD_ARCHIVE__';
|
|
70935
70922
|
this.BLOCK_LOAD_DEBOUNCE = 100;
|
|
70936
70923
|
this.DEFAULT_FONT_SIZE = 14;
|
|
70924
|
+
this.DEFAULT_FONT_SIZE_HTML5 = 32;
|
|
70937
70925
|
this.DEFAULT_ICON_SIZE = 12;
|
|
70938
70926
|
this.DEFAULT_MAX_SIZE = 200;
|
|
70939
70927
|
this.DOC_WIDTH = 800;
|
|
@@ -71999,8 +71987,9 @@ class AgGridController {
|
|
|
71999
71987
|
if (cfgColumn.customWidth != undefined) {
|
|
72000
71988
|
return cfgColumn.customWidth;
|
|
72001
71989
|
}
|
|
72002
|
-
if (cfgColumn.width != undefined) {
|
|
72003
|
-
|
|
71990
|
+
if (cfgColumn.width != undefined && !isNaN(cfgColumn.width)) {
|
|
71991
|
+
// TODO: Valor somado devido a divergência do tamanho das fontes entre HTML5 e Design System.
|
|
71992
|
+
return parseInt(cfgColumn.width) + this.DEFAULT_FONT_SIZE_HTML5;
|
|
72004
71993
|
}
|
|
72005
71994
|
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
72006
71995
|
if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
|
|
@@ -72061,82 +72050,51 @@ function getElementID(sufix) {
|
|
|
72061
72050
|
};
|
|
72062
72051
|
}
|
|
72063
72052
|
|
|
72064
|
-
const COLUMN_FILTER_PATTERN = /FILTRO_COLUNA_(.+)/;
|
|
72065
72053
|
class ColumnFilterManager {
|
|
72066
72054
|
static getColumnFilters(filters, fieldName) {
|
|
72067
|
-
|
|
72068
|
-
if (filters == undefined || filters.length == 0) {
|
|
72069
|
-
return columnFilters;
|
|
72070
|
-
}
|
|
72071
|
-
filters.forEach(filter => {
|
|
72072
|
-
const result = COLUMN_FILTER_PATTERN.exec(filter.name);
|
|
72073
|
-
if (result) {
|
|
72074
|
-
if (fieldName !== result[1]) {
|
|
72075
|
-
columnFilters.set(filter.name, Object.assign({ columnName: result[1] }, filter));
|
|
72076
|
-
}
|
|
72077
|
-
}
|
|
72078
|
-
});
|
|
72079
|
-
return columnFilters;
|
|
72055
|
+
return ColumnFilterManager$1.getColumnFilters(filters, fieldName);
|
|
72080
72056
|
}
|
|
72081
72057
|
static getFilterFunction(dataUnit, filters) {
|
|
72082
|
-
|
|
72083
|
-
return record => {
|
|
72084
|
-
for (const filter of filters) {
|
|
72085
|
-
if (!ColumnFilterManager.recordMatchesFilter(dataUnit, record, filter)) {
|
|
72086
|
-
return false;
|
|
72087
|
-
}
|
|
72088
|
-
}
|
|
72089
|
-
return true;
|
|
72090
|
-
};
|
|
72091
|
-
}
|
|
72092
|
-
return undefined;
|
|
72093
|
-
}
|
|
72094
|
-
static recordMatchesFilter(dataUnit, record, columnFilter) {
|
|
72095
|
-
const fieldValue = record[columnFilter.columnName];
|
|
72096
|
-
for (let param of columnFilter.params) {
|
|
72097
|
-
const paramValue = dataUnit.valueFromString(columnFilter.columnName, param.value);
|
|
72098
|
-
if (FieldComparator.compareValues(dataUnit.getField(columnFilter.columnName), fieldValue, paramValue) === 0) {
|
|
72099
|
-
return true;
|
|
72100
|
-
}
|
|
72101
|
-
}
|
|
72102
|
-
return false;
|
|
72058
|
+
return ColumnFilterManager$1.getFilterFunction(dataUnit, filters);
|
|
72103
72059
|
}
|
|
72104
72060
|
static compileDistinct(fieldName, dataUnit) {
|
|
72105
|
-
|
|
72106
|
-
|
|
72107
|
-
|
|
72108
|
-
|
|
72109
|
-
const filterFunciton = ColumnFilterManager.getFilterFunction(dataUnit, columnFilters);
|
|
72110
|
-
if (filterFunciton != undefined) {
|
|
72111
|
-
list = list.filter(filterFunciton);
|
|
72112
|
-
}
|
|
72113
|
-
}
|
|
72114
|
-
const distinct = new Map(list.map(record => {
|
|
72115
|
-
const fieldValue = record[fieldName];
|
|
72116
|
-
if (fieldValue == undefined) {
|
|
72117
|
-
return [null, { label: null, value: null, check: true }];
|
|
72118
|
-
}
|
|
72119
|
-
const item = { label: dataUnit.getFormattedValue(fieldName, fieldValue), value: fieldValue, check: true };
|
|
72120
|
-
return [item.label, item];
|
|
72121
|
-
}));
|
|
72122
|
-
return Array.from(distinct.values());
|
|
72061
|
+
return ColumnFilterManager$1.compileDistinct(fieldName, dataUnit);
|
|
72062
|
+
}
|
|
72063
|
+
static compileDistinctFromArray(fieldName, dataUnit, records) {
|
|
72064
|
+
return ColumnFilterManager$1.compileDistinctFromArray(fieldName, dataUnit, records);
|
|
72123
72065
|
}
|
|
72124
72066
|
}
|
|
72125
72067
|
|
|
72126
72068
|
class InMemoryFilterColumnDataSource {
|
|
72127
72069
|
constructor(dataUnit) {
|
|
72128
|
-
|
|
72070
|
+
this.lastAppliedFilters = [];
|
|
72071
|
+
this.FILTER_COLUMN_TERM = 'FILTRO_COLUNA_';
|
|
72129
72072
|
this.onDataUnitAction = (action) => {
|
|
72073
|
+
var _a, _b;
|
|
72130
72074
|
if (action.type === Action.DATA_SAVED || action.type === Action.RECORDS_REMOVED) {
|
|
72131
72075
|
this.originalRecords = this.dataUnit.records;
|
|
72076
|
+
return;
|
|
72132
72077
|
}
|
|
72078
|
+
if (action.type !== Action.DATA_LOADED)
|
|
72079
|
+
return;
|
|
72080
|
+
const appliedFilters = this.getAppliedFilterNames((_b = (_a = action.payload) === null || _a === void 0 ? void 0 : _a.filters) !== null && _b !== void 0 ? _b : []);
|
|
72081
|
+
if (this.originalRecords && ObjectUtils$1.equals(appliedFilters, this.lastAppliedFilters))
|
|
72082
|
+
return;
|
|
72083
|
+
this.originalRecords = action.payload.records;
|
|
72084
|
+
this.lastAppliedFilters = appliedFilters;
|
|
72133
72085
|
};
|
|
72134
72086
|
this.dataUnit = dataUnit;
|
|
72135
|
-
|
|
72087
|
+
if (this.dataUnit.records.length > 0) {
|
|
72088
|
+
this.originalRecords = this.dataUnit.records;
|
|
72089
|
+
}
|
|
72136
72090
|
this.dataUnit.subscribe(this.onDataUnitAction);
|
|
72137
72091
|
}
|
|
72092
|
+
getAppliedFilterNames(filters) {
|
|
72093
|
+
const appliedFilters = filters.map(filter => filter.name);
|
|
72094
|
+
return appliedFilters.filter(filterName => !filterName.includes(this.FILTER_COLUMN_TERM));
|
|
72095
|
+
}
|
|
72138
72096
|
getStaticOptions(fieldName) {
|
|
72139
|
-
return Promise.resolve(ColumnFilterManager.
|
|
72097
|
+
return Promise.resolve(ColumnFilterManager.compileDistinctFromArray(fieldName, this.dataUnit, this.originalRecords));
|
|
72140
72098
|
}
|
|
72141
72099
|
fetchData(filterTerm, fieldName) {
|
|
72142
72100
|
return new Promise(resolve => {
|
|
@@ -72702,7 +72660,8 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
72702
72660
|
return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
|
|
72703
72661
|
}
|
|
72704
72662
|
_hasToShowCancelPagination() {
|
|
72705
|
-
|
|
72663
|
+
var _a;
|
|
72664
|
+
const { total, count } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
|
|
72706
72665
|
const hasMore = (total === undefined);
|
|
72707
72666
|
return !this.dataUnit.cancelPagination && hasMore && count > this.dataUnit.pageSize;
|
|
72708
72667
|
}
|
|
@@ -72773,8 +72732,10 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
72773
72732
|
}
|
|
72774
72733
|
}
|
|
72775
72734
|
getDataSource() {
|
|
72776
|
-
|
|
72777
|
-
|
|
72735
|
+
if (!this.columnfilterDataSource) {
|
|
72736
|
+
this.columnfilterDataSource = new InMemoryFilterColumnDataSource(this.dataUnit);
|
|
72737
|
+
}
|
|
72738
|
+
return this.columnfilterDataSource;
|
|
72778
72739
|
}
|
|
72779
72740
|
hideHeader() {
|
|
72780
72741
|
return !this._hasLeftButtons && !this._paginationInfo;
|
|
@@ -75509,7 +75470,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
75509
75470
|
});
|
|
75510
75471
|
};
|
|
75511
75472
|
|
|
75512
|
-
const ezPopoverCoreCss = ":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(--
|
|
75473
|
+
const ezPopoverCoreCss = ":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(--elevation--100, 100);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(--elevation--24, 24)}.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)}";
|
|
75513
75474
|
|
|
75514
75475
|
const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
75515
75476
|
constructor() {
|
|
@@ -75524,18 +75485,19 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75524
75485
|
this.overlayType = "light";
|
|
75525
75486
|
this.anchorElement = undefined;
|
|
75526
75487
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75488
|
+
this.useAnchorSize = false;
|
|
75489
|
+
this.minWidth = 150;
|
|
75527
75490
|
}
|
|
75528
|
-
|
|
75529
|
-
if (newValue === oldValue)
|
|
75491
|
+
observeOpened(newValue, oldValue) {
|
|
75492
|
+
if (newValue === oldValue) {
|
|
75530
75493
|
return;
|
|
75494
|
+
}
|
|
75531
75495
|
if (newValue) {
|
|
75532
75496
|
this.openPopover();
|
|
75533
75497
|
}
|
|
75534
75498
|
else {
|
|
75535
75499
|
this.hidePopover();
|
|
75536
75500
|
}
|
|
75537
|
-
this.ezVisibilityChange.emit(newValue);
|
|
75538
|
-
return;
|
|
75539
75501
|
}
|
|
75540
75502
|
/**
|
|
75541
75503
|
* Atualiza a posição do popover.
|
|
@@ -75594,17 +75556,37 @@ const EzPopoverCore$1 = class extends HTMLElement$1 {
|
|
|
75594
75556
|
verticalGap: this.parseSizePixel(top, this.options.verticalGap),
|
|
75595
75557
|
});
|
|
75596
75558
|
}
|
|
75559
|
+
getElement(element) {
|
|
75560
|
+
if (typeof element === 'string') {
|
|
75561
|
+
return document.getElementById(element);
|
|
75562
|
+
}
|
|
75563
|
+
return element;
|
|
75564
|
+
}
|
|
75565
|
+
getAnchorElement() {
|
|
75566
|
+
if (!this.anchorElement) {
|
|
75567
|
+
return this._host;
|
|
75568
|
+
}
|
|
75569
|
+
if (Array.isArray(this.anchorElement)) {
|
|
75570
|
+
for (const element of this.anchorElement) {
|
|
75571
|
+
const htmlElement = this.getElement(element);
|
|
75572
|
+
if (htmlElement) {
|
|
75573
|
+
return htmlElement;
|
|
75574
|
+
}
|
|
75575
|
+
}
|
|
75576
|
+
}
|
|
75577
|
+
return this.getElement(this.anchorElement);
|
|
75578
|
+
}
|
|
75597
75579
|
async updatePositionPopover() {
|
|
75598
75580
|
if (!this._box || !this.opened) {
|
|
75599
75581
|
return;
|
|
75600
75582
|
}
|
|
75601
|
-
|
|
75602
|
-
|
|
75603
|
-
|
|
75604
|
-
|
|
75605
|
-
this.
|
|
75583
|
+
const currentAnchorElement = this.getAnchorElement();
|
|
75584
|
+
if (this.useAnchorSize) {
|
|
75585
|
+
const anchorSize = currentAnchorElement.getBoundingClientRect().width;
|
|
75586
|
+
const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
|
|
75587
|
+
this._box.style.width = `${width}px`;
|
|
75606
75588
|
}
|
|
75607
|
-
await computePosition(
|
|
75589
|
+
await computePosition(currentAnchorElement, this._box, {
|
|
75608
75590
|
placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
|
|
75609
75591
|
middleware: [flip(), shift({ padding: 5 })],
|
|
75610
75592
|
strategy: 'fixed',
|
|
@@ -75711,9 +75693,8 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75711
75693
|
this.overlayType = "light";
|
|
75712
75694
|
this.anchorElement = undefined;
|
|
75713
75695
|
this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
|
|
75714
|
-
|
|
75715
|
-
|
|
75716
|
-
this.ezVisibilityChange.emit(detail);
|
|
75696
|
+
this.useAnchorSize = false;
|
|
75697
|
+
this.minWidth = 150;
|
|
75717
75698
|
}
|
|
75718
75699
|
async observeOpened(newValue) {
|
|
75719
75700
|
if (newValue && !this._popOverCore) {
|
|
@@ -75766,8 +75747,10 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75766
75747
|
async setAnchorElement(anchor) {
|
|
75767
75748
|
var _a;
|
|
75768
75749
|
await ((_a = this._popOverCore) === null || _a === void 0 ? void 0 : _a.setAnchorElement(anchor));
|
|
75750
|
+
this.anchorElement = anchor;
|
|
75769
75751
|
}
|
|
75770
75752
|
renderPopoverCore() {
|
|
75753
|
+
var _a;
|
|
75771
75754
|
this._popOverCore = document.createElement('ez-popover-core');
|
|
75772
75755
|
this._popOverCore.opened = this.opened;
|
|
75773
75756
|
this._popOverCore.anchorElement = this.anchorElement;
|
|
@@ -75775,6 +75758,12 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75775
75758
|
this._popOverCore.boxWidth = this.boxWidth;
|
|
75776
75759
|
this._popOverCore.overlayType = this.overlayType;
|
|
75777
75760
|
this._popOverCore.options = this.options;
|
|
75761
|
+
this._popOverCore.useAnchorSize = this.useAnchorSize;
|
|
75762
|
+
this._popOverCore.minWidth = this.minWidth;
|
|
75763
|
+
this._popOverCore.addEventListener('ezVisibilityChange', ({ detail }) => {
|
|
75764
|
+
this.ezVisibilityChange.emit(detail);
|
|
75765
|
+
this.opened = detail;
|
|
75766
|
+
});
|
|
75778
75767
|
const firstChild = this._host.children.item(0);
|
|
75779
75768
|
if (firstChild) {
|
|
75780
75769
|
this._popOverCore.appendChild(firstChild);
|
|
@@ -75782,7 +75771,10 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
75782
75771
|
else {
|
|
75783
75772
|
console.warn('O slot do popover está vazio. Adicione conteúdo ao slot para exibição correta.');
|
|
75784
75773
|
}
|
|
75785
|
-
document.body.
|
|
75774
|
+
const root = document.body.querySelector("#root");
|
|
75775
|
+
const firstDiv = document.body.getElementsByTagName("div").item(0);
|
|
75776
|
+
const parentElement = (_a = root !== null && root !== void 0 ? root : firstDiv) !== null && _a !== void 0 ? _a : document.body;
|
|
75777
|
+
parentElement.appendChild(this._popOverCore);
|
|
75786
75778
|
}
|
|
75787
75779
|
render() {
|
|
75788
75780
|
return (h(Host, null, h("slot", null)));
|
|
@@ -75931,7 +75923,7 @@ const EzRadioButton$1 = class extends HTMLElement$1 {
|
|
|
75931
75923
|
static get style() { return ezRadioButtonCss; }
|
|
75932
75924
|
};
|
|
75933
75925
|
|
|
75934
|
-
const ezScrollerCss = ":host{--ez-scroller--box-shadow-color:var(--background--body, #fafcff);--ez-scroller__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-scroller__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-scroller__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-scroller__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-scroller__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-scroller__scrollbar--width:var(--space--small, 6px);--ez-scroller__max-height:unset;display:flex;cursor:grab;width:100%;overflow:hidden}.dragging{cursor:grabbing}.ez-scroller__container{display:flex;overflow-y:hidden;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked),.ez-scroller__container:not(.ez-scroller__container--locked):hover{scrollbar-color:var(--ez-scroller__scrollbar--color-clicked) var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container--both{overflow-y:scroll;overflow-x:scroll;flex-wrap:wrap}.ez-scroller__container--horizontal{overflow-x:scroll;flex-direction:row}.ez-scroller__container--vertical{overflow-y:scroll;flex-direction:column;width:100%;max-height:var(--ez-scroller__max-height)}.ez-scroller__container::-webkit-scrollbar{background-color:transparent;width:var(--ez-scroller__scrollbar--width);height:var(--ez-scroller__scrollbar--width);max-width:var(--ez-scroller__scrollbar--width);min-width:var(--ez-scroller__scrollbar--width)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar{background-color:var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container::-webkit-scrollbar-track{visibility:hidden;background-color:transparent;border-radius:var(--ez-scroller__scrollbar--border-radius)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-track,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-track{background-color:var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--ez-scroller__scrollbar--border-radius)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb{background-color:var(--ez-scroller__scrollbar--color-default)}.ez-scroller__container::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container::-webkit-scrollbar-thumb:horizontal:hover{background-color:transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:horizontal:hover,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-scroller__scrollbar--color-hover)}.ez-scroller__container::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container::-webkit-scrollbar-thumb:horizontal:active{background-color:transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:horizontal:active,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-scroller__scrollbar--color-clicked)}.ez-scroller__wrapper{display:flex;position:relative;width:100%;height:auto}.ez-scroller__wrapper--horizontal{flex-direction:row}.ez-scroller__wrapper--vertical{flex-direction:column}.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--shadow-end::after{content:\"\";display:flex;position:absolute;z-index:1}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after{width:24px;min-height:calc(100% - 10px)}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before{left:0;background:linear-gradient(to right, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after{right:0;background:linear-gradient(to left, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after{min-width:calc(100% - 10px);height:24px}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before{top:0;background:linear-gradient(to bottom, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after{bottom:0;background:linear-gradient(to top, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}";
|
|
75926
|
+
const ezScrollerCss = ":host{--ez-scroller--box-shadow-color:var(--background--body, #fafcff);--ez-scroller__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-scroller__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-scroller__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-scroller__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-scroller__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-scroller__scrollbar--width:var(--space--small, 6px);--ez-scroller__max-height:unset;--ez-scroller__scrollbar--padding-right:var(--space-extra-small, 3px);display:flex;cursor:grab;width:100%;overflow:hidden}.dragging{cursor:grabbing}.ez-scroller__container{display:flex;overflow-y:hidden;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked),.ez-scroller__container:not(.ez-scroller__container--locked):hover{scrollbar-color:var(--ez-scroller__scrollbar--color-clicked) var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container--both{overflow-y:scroll;overflow-x:scroll;flex-wrap:wrap}.ez-scroller__container--horizontal{overflow-x:scroll;flex-direction:row;padding-right:var(--ez-scroller__scrollbar--padding-right)}.ez-scroller__container--vertical{overflow-y:scroll;flex-direction:column;width:100%;max-height:var(--ez-scroller__max-height)}.ez-scroller__container::-webkit-scrollbar{background-color:transparent;width:var(--ez-scroller__scrollbar--width);height:var(--ez-scroller__scrollbar--width);max-width:var(--ez-scroller__scrollbar--width);min-width:var(--ez-scroller__scrollbar--width)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar{background-color:var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container::-webkit-scrollbar-track{visibility:hidden;background-color:transparent;border-radius:var(--ez-scroller__scrollbar--border-radius)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-track,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-track{background-color:var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--ez-scroller__scrollbar--border-radius)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb{background-color:var(--ez-scroller__scrollbar--color-default)}.ez-scroller__container::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container::-webkit-scrollbar-thumb:horizontal:hover{background-color:transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:horizontal:hover,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-scroller__scrollbar--color-hover)}.ez-scroller__container::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container::-webkit-scrollbar-thumb:horizontal:active{background-color:transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:horizontal:active,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-scroller__scrollbar--color-clicked)}.ez-scroller__wrapper{display:flex;position:relative;width:100%;height:auto}.ez-scroller__wrapper--horizontal{flex-direction:row}.ez-scroller__wrapper--vertical{flex-direction:column}.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--shadow-end::after{content:\"\";display:flex;position:absolute;z-index:1}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after{width:24px;min-height:calc(100% - 10px)}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before{left:0;background:linear-gradient(to right, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after{right:0;background:linear-gradient(to left, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after{min-width:calc(100% - 10px);height:24px}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before{top:0;background:linear-gradient(to bottom, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after{bottom:0;background:linear-gradient(to top, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}";
|
|
75935
75927
|
|
|
75936
75928
|
const EzScroller$1 = class extends HTMLElement$1 {
|
|
75937
75929
|
constructor() {
|
|
@@ -76122,7 +76114,26 @@ class ScrollCtrl {
|
|
|
76122
76114
|
}
|
|
76123
76115
|
}
|
|
76124
76116
|
|
|
76125
|
-
const
|
|
76117
|
+
const START_HIGH_LIGHT_TAG = "<span class='card-item__highlight'>";
|
|
76118
|
+
const END_HIGH_LIGHT_TAG = "</span>";
|
|
76119
|
+
function replaceHighlight(value) {
|
|
76120
|
+
const startHighlight = new RegExp(START_HIGH_LIGHT_TAG, 'g');
|
|
76121
|
+
const endHighlight = new RegExp(END_HIGH_LIGHT_TAG, 'g');
|
|
76122
|
+
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
76123
|
+
return replaceQuotes(newValue);
|
|
76124
|
+
}
|
|
76125
|
+
function replaceQuotes(text) {
|
|
76126
|
+
if (text == undefined) {
|
|
76127
|
+
return;
|
|
76128
|
+
}
|
|
76129
|
+
return String(text)
|
|
76130
|
+
.replace(/&/g, '&')
|
|
76131
|
+
.replace(/</g, '<')
|
|
76132
|
+
.replace(/>/g, '>')
|
|
76133
|
+
.replace(/"/g, '"');
|
|
76134
|
+
}
|
|
76135
|
+
|
|
76136
|
+
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}";
|
|
76126
76137
|
|
|
76127
76138
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
76128
76139
|
constructor() {
|
|
@@ -76258,20 +76269,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76258
76269
|
async clearValue() {
|
|
76259
76270
|
this.clearSearch();
|
|
76260
76271
|
}
|
|
76261
|
-
scrollListener() {
|
|
76262
|
-
var _a;
|
|
76263
|
-
if (this._floatingID == undefined) {
|
|
76264
|
-
return;
|
|
76265
|
-
}
|
|
76266
|
-
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
76267
|
-
this.hideOptions();
|
|
76268
|
-
}
|
|
76269
|
-
else {
|
|
76270
|
-
window.requestAnimationFrame(() => {
|
|
76271
|
-
this.updateListPosition();
|
|
76272
|
-
});
|
|
76273
|
-
}
|
|
76274
|
-
}
|
|
76275
76272
|
async handleValueAsString(value) {
|
|
76276
76273
|
if (this.getSelectedOption(value)) {
|
|
76277
76274
|
this.setInputValue();
|
|
@@ -76285,49 +76282,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76285
76282
|
this.ezChange.emit(this.value);
|
|
76286
76283
|
this._currentValue = this.value;
|
|
76287
76284
|
}
|
|
76288
|
-
updateListPosition() {
|
|
76289
|
-
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
76290
|
-
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
76291
|
-
const containerRect = this._listContainer.getBoundingClientRect();
|
|
76292
|
-
const textInputRect = this._textInput.getBoundingClientRect();
|
|
76293
|
-
const limitHeight = bottomLimit || window.innerHeight;
|
|
76294
|
-
const neededHeight = containerRect.bottom + elementRect.height;
|
|
76295
|
-
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
76296
|
-
fromBottom = true;
|
|
76297
|
-
}
|
|
76298
|
-
if (!hardPosition) {
|
|
76299
|
-
verticalPosition = verticalPosition || 0;
|
|
76300
|
-
horizontalPosition = horizontalPosition || 0;
|
|
76301
|
-
if (fromBottom) {
|
|
76302
|
-
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
76303
|
-
}
|
|
76304
|
-
else {
|
|
76305
|
-
verticalPosition += containerRect.top;
|
|
76306
|
-
}
|
|
76307
|
-
if (fromRight) {
|
|
76308
|
-
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
76309
|
-
}
|
|
76310
|
-
else {
|
|
76311
|
-
horizontalPosition += containerRect.left;
|
|
76312
|
-
}
|
|
76313
|
-
}
|
|
76314
|
-
if (verticalPosition != undefined) {
|
|
76315
|
-
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
76316
|
-
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
76317
|
-
}
|
|
76318
|
-
if (horizontalPosition != undefined) {
|
|
76319
|
-
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
76320
|
-
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
76321
|
-
}
|
|
76322
|
-
}
|
|
76323
|
-
getListPosition() {
|
|
76324
|
-
if (this.listOptionsPosition) {
|
|
76325
|
-
return this.listOptionsPosition;
|
|
76326
|
-
}
|
|
76327
|
-
return {
|
|
76328
|
-
verticalPosition: 6
|
|
76329
|
-
};
|
|
76330
|
-
}
|
|
76331
76285
|
isDifferentValues(firstValue, secondValue) {
|
|
76332
76286
|
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
76333
76287
|
}
|
|
@@ -76342,24 +76296,14 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76342
76296
|
getText() {
|
|
76343
76297
|
const currentValue = this.getSelectedOption(this._currentValue);
|
|
76344
76298
|
const text = this.getFormattedText(currentValue);
|
|
76345
|
-
return
|
|
76346
|
-
}
|
|
76347
|
-
replaceQuotes(text) {
|
|
76348
|
-
if (text == undefined) {
|
|
76349
|
-
return;
|
|
76350
|
-
}
|
|
76351
|
-
return String(text)
|
|
76352
|
-
.replace(/&/g, '&')
|
|
76353
|
-
.replace(/</g, '<')
|
|
76354
|
-
.replace(/>/g, '>')
|
|
76355
|
-
.replace(/"/g, '"');
|
|
76299
|
+
return replaceQuotes(text);
|
|
76356
76300
|
}
|
|
76357
76301
|
getSelectedOption(value) {
|
|
76358
76302
|
if (typeof value === "string" || value instanceof String) {
|
|
76359
76303
|
return this._visibleOptions.find(o => o.value === value);
|
|
76360
76304
|
}
|
|
76361
76305
|
if (value) {
|
|
76362
|
-
return Object.assign(Object.assign({}, value), { value:
|
|
76306
|
+
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) });
|
|
76363
76307
|
}
|
|
76364
76308
|
return value;
|
|
76365
76309
|
}
|
|
@@ -76397,75 +76341,19 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76397
76341
|
}
|
|
76398
76342
|
return 0;
|
|
76399
76343
|
}
|
|
76400
|
-
createOption(detail) {
|
|
76401
|
-
let { key, title } = detail;
|
|
76402
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
76403
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
76404
|
-
title = StringUtils$1.decodeHtmlEntities(title);
|
|
76405
|
-
const option = {
|
|
76406
|
-
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
76407
|
-
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
76408
|
-
};
|
|
76409
|
-
this.selectOption(option);
|
|
76410
|
-
}
|
|
76411
|
-
buildItem(opt, index) {
|
|
76412
|
-
opt.label = opt.label || opt.value;
|
|
76413
|
-
const card = {
|
|
76414
|
-
key: opt.value,
|
|
76415
|
-
title: opt.label,
|
|
76416
|
-
details: opt.details
|
|
76417
|
-
};
|
|
76418
|
-
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 }));
|
|
76419
|
-
}
|
|
76420
76344
|
showOptions() {
|
|
76421
76345
|
if (!this.enabled)
|
|
76422
76346
|
return;
|
|
76423
76347
|
if (this.isOptionsVisible()) {
|
|
76424
76348
|
return;
|
|
76425
76349
|
}
|
|
76426
|
-
|
|
76427
|
-
this._resizeObserver.observe(this._textInput);
|
|
76428
|
-
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
76429
|
-
this.setFocus();
|
|
76430
|
-
window.requestAnimationFrame(() => {
|
|
76431
|
-
this.updateListPosition();
|
|
76432
|
-
if (!this.listOptionsPosition) {
|
|
76433
|
-
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
76434
|
-
}
|
|
76435
|
-
});
|
|
76350
|
+
this._ezPopOverPlusElement.showUnder(this._textInput);
|
|
76436
76351
|
}
|
|
76437
76352
|
hideOptions() {
|
|
76438
|
-
|
|
76439
|
-
FloatingManager.close(this._floatingID);
|
|
76440
|
-
}
|
|
76441
|
-
this._floatingID = undefined;
|
|
76442
|
-
if (!!this._resizeObserver)
|
|
76443
|
-
this._resizeObserver.unobserve(this._textInput);
|
|
76353
|
+
this._ezPopOverPlusElement.hide();
|
|
76444
76354
|
}
|
|
76445
76355
|
isOptionsVisible() {
|
|
76446
|
-
return this.
|
|
76447
|
-
}
|
|
76448
|
-
nextOption() {
|
|
76449
|
-
if (!this.isOptionsVisible()) {
|
|
76450
|
-
return;
|
|
76451
|
-
}
|
|
76452
|
-
this.showOptions();
|
|
76453
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
76454
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
76455
|
-
}
|
|
76456
|
-
previousOption() {
|
|
76457
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
76458
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
76459
|
-
}
|
|
76460
|
-
scrollToOption(opt) {
|
|
76461
|
-
window.requestAnimationFrame(() => {
|
|
76462
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
76463
|
-
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
76464
|
-
: undefined;
|
|
76465
|
-
if (liElem) {
|
|
76466
|
-
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
76467
|
-
}
|
|
76468
|
-
});
|
|
76356
|
+
return this._ezPopOverPlusElement.opened;
|
|
76469
76357
|
}
|
|
76470
76358
|
selectCurrentOption() {
|
|
76471
76359
|
if (this._preSelection !== undefined) {
|
|
@@ -76508,17 +76396,11 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76508
76396
|
this._source = [];
|
|
76509
76397
|
this.updateVisibleOptions();
|
|
76510
76398
|
}
|
|
76511
|
-
replaceHighlight(value) {
|
|
76512
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
76513
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
76514
|
-
const newValue = String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
76515
|
-
return this.replaceQuotes(newValue);
|
|
76516
|
-
}
|
|
76517
76399
|
selectOption(newOption, focusOnInput = true) {
|
|
76518
76400
|
var _a, _b;
|
|
76519
76401
|
const currentValue = this.getSelectedOption(this.value);
|
|
76520
|
-
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value:
|
|
76521
|
-
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value:
|
|
76402
|
+
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) });
|
|
76403
|
+
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) });
|
|
76522
76404
|
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()))
|
|
76523
76405
|
|| (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
|
|
76524
76406
|
const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
|
|
@@ -76628,7 +76510,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76628
76510
|
this.showNoResultMessage();
|
|
76629
76511
|
return;
|
|
76630
76512
|
}
|
|
76631
|
-
this._currentValue = value ? Object.assign(Object.assign({}, value), { value:
|
|
76513
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: replaceHighlight(value.value), label: replaceHighlight(value.label) }) : value;
|
|
76632
76514
|
this.value = this._currentValue;
|
|
76633
76515
|
this.setTextInputValue();
|
|
76634
76516
|
}
|
|
@@ -76637,7 +76519,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76637
76519
|
if (this.value === undefined || this.value === null)
|
|
76638
76520
|
return;
|
|
76639
76521
|
const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
|
|
76640
|
-
this._textInput.value =
|
|
76522
|
+
this._textInput.value = replaceQuotes(textValue);
|
|
76641
76523
|
}
|
|
76642
76524
|
}
|
|
76643
76525
|
loadOptionValue(argument) {
|
|
@@ -76674,7 +76556,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76674
76556
|
return;
|
|
76675
76557
|
}
|
|
76676
76558
|
let text = this.getFormattedText(this.value);
|
|
76677
|
-
text =
|
|
76559
|
+
text = replaceQuotes(text);
|
|
76678
76560
|
this._textInput.value = text;
|
|
76679
76561
|
}
|
|
76680
76562
|
//---------------------------------------------
|
|
@@ -76701,9 +76583,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76701
76583
|
}
|
|
76702
76584
|
componentDidRender() {
|
|
76703
76585
|
var _a;
|
|
76704
|
-
if (this._floatingID === undefined) {
|
|
76705
|
-
this._listWrapper.remove();
|
|
76706
|
-
}
|
|
76707
76586
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
76708
76587
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
76709
76588
|
});
|
|
@@ -76715,10 +76594,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76715
76594
|
window.requestAnimationFrame(() => {
|
|
76716
76595
|
if (!Array.isArray(entries) || !entries.length)
|
|
76717
76596
|
return;
|
|
76718
|
-
const { clientWidth } = this._listContainer;
|
|
76719
|
-
if (clientWidth > 0 && !!this._listWrapper) {
|
|
76720
|
-
this._listWrapper.style.width = `${clientWidth}px`;
|
|
76721
|
-
}
|
|
76722
76597
|
});
|
|
76723
76598
|
});
|
|
76724
76599
|
await this.handleInitialValue();
|
|
@@ -76785,7 +76660,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76785
76660
|
this._changeDeboucingTimeout = null;
|
|
76786
76661
|
}
|
|
76787
76662
|
}
|
|
76788
|
-
keyDownHandler(event) {
|
|
76663
|
+
async keyDownHandler(event) {
|
|
76789
76664
|
this._tabPressed = false;
|
|
76790
76665
|
if (event.ctrlKey) {
|
|
76791
76666
|
if (event.key === "f" || event.key === "F") {
|
|
@@ -76801,15 +76676,20 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76801
76676
|
switch (event.key) {
|
|
76802
76677
|
case "ArrowDown":
|
|
76803
76678
|
event.stopPropagation();
|
|
76804
|
-
if (this.canShowListOptions())
|
|
76679
|
+
if (this.canShowListOptions()) {
|
|
76805
76680
|
event.preventDefault();
|
|
76806
|
-
|
|
76681
|
+
}
|
|
76682
|
+
if (!this.isOptionsVisible()) {
|
|
76683
|
+
this.showOptions();
|
|
76684
|
+
}
|
|
76685
|
+
await this._searchList.nextOption();
|
|
76807
76686
|
break;
|
|
76808
76687
|
case "ArrowUp":
|
|
76809
76688
|
event.stopPropagation();
|
|
76810
|
-
if (this.canShowListOptions())
|
|
76689
|
+
if (this.canShowListOptions()) {
|
|
76811
76690
|
event.preventDefault();
|
|
76812
|
-
|
|
76691
|
+
}
|
|
76692
|
+
await this._searchList.previousOption();
|
|
76813
76693
|
break;
|
|
76814
76694
|
case "Enter":
|
|
76815
76695
|
this.handleEventPropagation(event);
|
|
@@ -76831,7 +76711,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76831
76711
|
}
|
|
76832
76712
|
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
76833
76713
|
handleEventPropagation(event) {
|
|
76834
|
-
if (this.
|
|
76714
|
+
if (this._ezPopOverPlusElement.opened && this.stopPropagateEnterKeyEvent) {
|
|
76835
76715
|
event.stopPropagation();
|
|
76836
76716
|
}
|
|
76837
76717
|
}
|
|
@@ -76843,17 +76723,17 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
76843
76723
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
76844
76724
|
}
|
|
76845
76725
|
canShowLoadSpinDescription() {
|
|
76846
|
-
return this._showLoadingDescription && this.
|
|
76726
|
+
return this._showLoadingDescription && !this._ezPopOverPlusElement.opened;
|
|
76727
|
+
}
|
|
76728
|
+
onChangePreSelection(value) {
|
|
76729
|
+
this._preSelection = value;
|
|
76847
76730
|
}
|
|
76848
76731
|
render() {
|
|
76849
76732
|
var _a;
|
|
76850
76733
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
76851
76734
|
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)
|
|
76852
76735
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
76853
|
-
: undefined), h("
|
|
76854
|
-
&& this._visibleOptions.length === 0
|
|
76855
|
-
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
76856
|
-
&& 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)))))));
|
|
76736
|
+
: undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
|
|
76857
76737
|
}
|
|
76858
76738
|
get el() { return this; }
|
|
76859
76739
|
static get watchers() { return {
|
|
@@ -77225,7 +77105,7 @@ const SplitItem = class extends HTMLElement$1 {
|
|
|
77225
77105
|
CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
|
|
77226
77106
|
}
|
|
77227
77107
|
render() {
|
|
77228
|
-
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--
|
|
77108
|
+
return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''} ${this.structural ? 'structural__item' : 'content__item'}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("slot", { name: "leftButtons" }), h("div", { class: "ez-split-item--header-title" }, this.label && (h("h3", { class: "ez-text ez-text--primary ez-title ez-title--medium ez-margin--small", title: this.label }, this.label))), h("div", { class: "ez-split-item--header-buttons" }, h("slot", { name: "rightButtons" }), this.enableExpand && (h("ez-button", { ref: el => this.expandButtonRef = el, size: "small", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })))), h("div", { class: "ez-split-item--content grid_height-0", ref: el => (this._slot = el) }, h("slot", null))));
|
|
77229
77109
|
}
|
|
77230
77110
|
static get style() { return ezSplitItemCss; }
|
|
77231
77111
|
};
|
|
@@ -80568,11 +80448,84 @@ const MultiSelectionBoxMessage$1 = class extends HTMLElement$1 {
|
|
|
80568
80448
|
static get style() { return multiSelectionBoxMessageCss; }
|
|
80569
80449
|
};
|
|
80570
80450
|
|
|
80451
|
+
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}}";
|
|
80452
|
+
|
|
80453
|
+
const SearchList$1 = class extends HTMLElement$1 {
|
|
80454
|
+
constructor() {
|
|
80455
|
+
super();
|
|
80456
|
+
this.__registerHost();
|
|
80457
|
+
this.__attachShadow();
|
|
80458
|
+
this.changeValue = createEvent(this, "changeValue", 7);
|
|
80459
|
+
this.changePreSelection = createEvent(this, "changePreSelection", 7);
|
|
80460
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
80461
|
+
this._endHighlightTag = "</span>";
|
|
80462
|
+
this.showLoading = undefined;
|
|
80463
|
+
this.visibleOptions = [];
|
|
80464
|
+
this.textEmptyList = undefined;
|
|
80465
|
+
this.canShowListOptions = undefined;
|
|
80466
|
+
this.value = undefined;
|
|
80467
|
+
this.showOptionValue = true;
|
|
80468
|
+
this.preSelection = undefined;
|
|
80469
|
+
}
|
|
80470
|
+
async nextOption() {
|
|
80471
|
+
const newPreSelection = this.preSelection === undefined ? 0 : Math.min(this.preSelection + 1, this.visibleOptions.length - 1);
|
|
80472
|
+
this.changePreSelection.emit(newPreSelection);
|
|
80473
|
+
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
80474
|
+
}
|
|
80475
|
+
async previousOption() {
|
|
80476
|
+
const newPreSelection = this.preSelection === undefined ? 0 : Math.max(this.preSelection - 1, 0);
|
|
80477
|
+
this.changePreSelection.emit(newPreSelection);
|
|
80478
|
+
this.scrollToOption(this.visibleOptions[newPreSelection]);
|
|
80479
|
+
}
|
|
80480
|
+
selectOption(newOption) {
|
|
80481
|
+
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) });
|
|
80482
|
+
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) });
|
|
80483
|
+
this.changeValue.emit(newOptionsFormatted);
|
|
80484
|
+
}
|
|
80485
|
+
createOption(detail) {
|
|
80486
|
+
let { key, title } = detail;
|
|
80487
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
80488
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
80489
|
+
title = StringUtils$1.decodeHtmlEntities(title);
|
|
80490
|
+
const option = {
|
|
80491
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
80492
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
80493
|
+
};
|
|
80494
|
+
this.selectOption(option);
|
|
80495
|
+
}
|
|
80496
|
+
scrollToOption(opt) {
|
|
80497
|
+
window.requestAnimationFrame(() => {
|
|
80498
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
80499
|
+
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
80500
|
+
: undefined;
|
|
80501
|
+
if (liElem) {
|
|
80502
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
80503
|
+
}
|
|
80504
|
+
});
|
|
80505
|
+
}
|
|
80506
|
+
buildItem(opt, index) {
|
|
80507
|
+
opt.label = opt.label || opt.value;
|
|
80508
|
+
const card = {
|
|
80509
|
+
key: opt.value,
|
|
80510
|
+
title: opt.label,
|
|
80511
|
+
details: opt.details
|
|
80512
|
+
};
|
|
80513
|
+
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 }));
|
|
80514
|
+
}
|
|
80515
|
+
render() {
|
|
80516
|
+
return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
|
|
80517
|
+
&& this.visibleOptions.length === 0
|
|
80518
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.textEmptyList)), this.showLoading
|
|
80519
|
+
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.canShowListOptions && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
|
|
80520
|
+
}
|
|
80521
|
+
static get style() { return searchListCss; }
|
|
80522
|
+
};
|
|
80523
|
+
|
|
80571
80524
|
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]}]);
|
|
80572
80525
|
const EzAlert = /*@__PURE__*/proxyCustomElement(EzAlert$1, [1,"ez-alert",{"alertType":[513,"alert-type"]}]);
|
|
80573
80526
|
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]}]);
|
|
80574
80527
|
const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
|
|
80575
|
-
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]}]);
|
|
80528
|
+
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]}]);
|
|
80576
80529
|
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]}]);
|
|
80577
80530
|
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"]]]);
|
|
80578
80531
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]},[[11,"scroll","scrollListener"]]]);
|
|
@@ -80603,12 +80556,12 @@ const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,
|
|
|
80603
80556
|
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]}]);
|
|
80604
80557
|
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]}]);
|
|
80605
80558
|
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"]}]);
|
|
80606
|
-
const EzPopoverCore = /*@__PURE__*/proxyCustomElement(EzPopoverCore$1, [1,"ez-popover-core",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"overlayType":[513,"overlay-type"],"anchorElement":[1537,"anchor-element"],"options":[1040]}]);
|
|
80607
|
-
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]
|
|
80559
|
+
const EzPopoverCore = /*@__PURE__*/proxyCustomElement(EzPopoverCore$1, [1,"ez-popover-core",{"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"],"minWidth":[514,"min-width"]}]);
|
|
80560
|
+
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"],"minWidth":[514,"min-width"]}]);
|
|
80608
80561
|
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"]}]);
|
|
80609
80562
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
80610
80563
|
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"]]]);
|
|
80611
|
-
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]}
|
|
80564
|
+
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]}]);
|
|
80612
80565
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
80613
80566
|
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]}]);
|
|
80614
80567
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
@@ -80627,6 +80580,7 @@ const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"la
|
|
|
80627
80580
|
const EzViewStack = /*@__PURE__*/proxyCustomElement(EzViewStack$1, [0,"ez-view-stack"]);
|
|
80628
80581
|
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]}]);
|
|
80629
80582
|
const MultiSelectionBoxMessage = /*@__PURE__*/proxyCustomElement(MultiSelectionBoxMessage$1, [0,"multi-selection-box-message",{"message":[1]}]);
|
|
80583
|
+
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"]}]);
|
|
80630
80584
|
const defineCustomElements = (opts) => {
|
|
80631
80585
|
if (typeof customElements !== 'undefined') {
|
|
80632
80586
|
[
|
|
@@ -80688,7 +80642,8 @@ const defineCustomElements = (opts) => {
|
|
|
80688
80642
|
EzUpload,
|
|
80689
80643
|
EzViewStack,
|
|
80690
80644
|
FilterColumn,
|
|
80691
|
-
MultiSelectionBoxMessage
|
|
80645
|
+
MultiSelectionBoxMessage,
|
|
80646
|
+
SearchList
|
|
80692
80647
|
].forEach(cmp => {
|
|
80693
80648
|
if (!customElements.get(cmp.is)) {
|
|
80694
80649
|
customElements.define(cmp.is, cmp, opts);
|
|
@@ -80697,4 +80652,4 @@ const defineCustomElements = (opts) => {
|
|
|
80697
80652
|
}
|
|
80698
80653
|
};
|
|
80699
80654
|
|
|
80700
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };
|
|
80655
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSidebarNavigator, EzSkeleton, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTooltip, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, SearchList, defineCustomElements };
|