@sankhyalabs/ezui 5.19.2 → 5.20.0-dev.10
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/README.md +4 -5
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +108 -47
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +182 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +13 -157
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -4
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -4
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +10 -4
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +5 -3
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +21 -22
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -4
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +612 -32
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +12 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +12 -10
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +17 -6
- package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +4 -6
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +15 -1
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +109 -46
- package/dist/collection/components/ez-card-item/ez-card-item.css +35 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +13 -174
- package/dist/collection/components/ez-date-input/ez-date-input.js +0 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +0 -3
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +32 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +4 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +7 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +12 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -3
- package/dist/collection/components/ez-grid/ez-grid.css +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +2 -2
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -5
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.js +0 -3
- package/dist/collection/components/ez-popup/ez-popup.css +0 -1
- package/dist/collection/components/ez-search/ez-search.css +331 -0
- package/dist/collection/components/ez-search/ez-search.js +689 -55
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +7 -7
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +30 -10
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +36 -12
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +57 -2
- package/dist/collection/utils/form/test/DataBinder.test.js +9 -0
- package/dist/custom-elements/index.js +812 -298
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-alert-list.entry.js +108 -47
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +176 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +14 -158
- package/dist/esm/ez-date-input.entry.js +1 -4
- package/dist/esm/ez-date-time-input.entry.js +1 -4
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +10 -4
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +5 -3
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +21 -22
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -4
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +613 -33
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +12 -3
- package/dist/esm/ez-split-panel.entry.js +12 -10
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +17 -6
- package/dist/esm/{index-296b8458.js → index-baa5e267.js} +4 -6
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-99692afa.entry.js → p-02c8831a.entry.js} +1 -1
- package/dist/ezui/{p-5cef0264.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-871c1a07.entry.js → p-0447d17c.entry.js} +1 -1
- package/dist/ezui/p-072e6347.entry.js +1 -0
- package/dist/ezui/p-133fae4a.entry.js +1 -0
- package/dist/ezui/p-13dbad96.entry.js +1 -0
- package/dist/ezui/{p-f4208819.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/{p-cd19a6f8.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-60ba28ea.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-245a44ed.entry.js → p-20ec22c0.entry.js} +1 -1
- package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
- package/dist/ezui/p-24d3fede.entry.js +1 -0
- package/dist/ezui/{p-8252d9b5.entry.js → p-2a1a0e04.entry.js} +1 -1
- package/dist/ezui/{p-d20ed286.entry.js → p-300bf244.entry.js} +1 -1
- package/dist/ezui/{p-22208198.entry.js → p-40f72de4.entry.js} +1 -1
- package/dist/ezui/p-428a05fe.entry.js +1 -0
- package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/{p-7319c253.entry.js → p-49456b34.entry.js} +1 -1
- package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/p-596634e9.entry.js +1 -0
- package/dist/ezui/{p-52dd8b4c.entry.js → p-5bd5e68f.entry.js} +1 -1
- package/dist/ezui/{p-a01068e1.entry.js → p-5d692ed1.entry.js} +1 -1
- package/dist/ezui/{p-95426f93.entry.js → p-5d86cca9.entry.js} +1 -1
- package/dist/ezui/{p-62304715.entry.js → p-5e1d036e.entry.js} +1 -1
- package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-60848ef6.entry.js +1 -0
- package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/{p-f55d75e7.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/{p-0b902469.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
- package/dist/ezui/{p-fa571a4e.entry.js → p-8becebf8.entry.js} +1 -1
- package/dist/ezui/{p-d3b5228e.entry.js → p-8defa6d3.entry.js} +1 -1
- package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
- package/dist/ezui/p-940ed30b.entry.js +1 -0
- package/dist/ezui/{p-028f264f.entry.js → p-9cad9b6e.entry.js} +1 -1
- package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/{p-d81917fd.entry.js → p-a08b309b.entry.js} +1 -1
- package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/{p-4b988ee7.entry.js → p-ab629244.entry.js} +2 -2
- package/dist/ezui/{p-32b4163f.entry.js → p-b041333c.entry.js} +1 -1
- package/dist/ezui/p-baf80b13.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-12526044.entry.js → p-c0f1715f.entry.js} +1 -1
- package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
- package/dist/ezui/p-cd0499a2.entry.js +1 -0
- package/dist/ezui/p-e52cbcc7.entry.js +1 -0
- package/dist/ezui/{p-3e7cc8a4.entry.js → p-eb36f072.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +33 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -15
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +4 -1
- package/dist/types/components/ez-search/ez-search.d.ts +100 -10
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +23 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +17 -0
- package/dist/types/components.d.ts +51 -14
- package/dist/types/utils/form/test/DataBinder.test.d.ts +1 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
- package/dist/types/utils/interfaces/IAction.d.ts +1 -1
- package/package.json +12 -5
- package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +0 -8
- package/dist/esm/ez-card-item.entry.js +0 -48
- package/dist/esm/ez-filter-input_2.entry.js +0 -132
- package/dist/ezui/p-0843df02.entry.js +0 -1
- package/dist/ezui/p-47afb974.entry.js +0 -1
- package/dist/ezui/p-59bcb27c.entry.js +0 -1
- package/dist/ezui/p-74049254.entry.js +0 -1
- package/dist/ezui/p-76d16a24.entry.js +0 -1
- package/dist/ezui/p-7fd54841.entry.js +0 -1
- package/dist/ezui/p-87e85160.entry.js +0 -1
- package/dist/ezui/p-a42fe2ce.entry.js +0 -1
- package/dist/ezui/p-af285e68.entry.js +0 -1
- package/dist/ezui/p-b6867f19.entry.js +0 -1
- package/dist/ezui/p-d51aa09b.entry.js +0 -1
- package/dist/ezui/p-e8f88361.entry.js +0 -1
- package/dist/ezui/p-f8653522.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +0 -1
|
@@ -1113,7 +1113,7 @@ const EzAlert$1 = class extends HTMLElement$1 {
|
|
|
1113
1113
|
static get style() { return ezAlertCss; }
|
|
1114
1114
|
};
|
|
1115
1115
|
|
|
1116
|
-
const ezAlertListCss = ":host{display:flex
|
|
1116
|
+
const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /*@doc Define a largura da lista minimizado */\n --ez-alert-list__container--width: 680px;\n /*@doc Define a altura da lista minimizado */\n --ez-alert-list__container--height: 220px;\n \n /*@doc Define a largura da lista maximizada */\n --ez-alert-list__container--width--expanded: 920px;\n /*@doc Define a altura da lista maximizada */\n --ez-alert-list__container--height--expanded: 540px;\n\n /* Title */\n /*@doc Define a fonte do título do componente */\n --ez-alert-list__title--font-family: var(--font-pattern, \"Roboto\");\n /*@doc Define o tamanho da fonte do título do popup.*/\n --ez-alert-list__title--font-size: var(--title--large, 20px);\n /*@doc Define a cor da fonte do título do popup.*/\n --ez-alert-list__title--color: var(--title--primary, #2b3a54);\n /*@doc Define o peso da fonte do título do popup.*/\n --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);\n\n /* @doc Define a borda inferior do item da lista. */\n --ez-list__item--border-bottom: var(--border--small, 1px solid);\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);\n\n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: break-space;\n}\n\n.alert-list__content {\n display: flex;\n flex-direction: column;\n \n gap: var(--space--xs);\n margin: var(--space--large, 24px);\n width: 100%;\n}\n\n.alert-list__container {\n z-index: var(--more-visible--2x, 3);\n display: flex;\n height: var(--ez-alert-list__container--height);\n width: var(--ez-alert-list__container--width);\n border-radius: var(--border--radius-medium);\n background-color: var(--background--xlight);\n box-shadow: var(--shadow--medium);\n\n &.expanded {\n height: var(--ez-alert-list__container--height--expanded);\n width: var(--ez-alert-list__container--width--expanded);\n }\n\n @media (max-height: 640px) {\n max-height: calc(100vh - var(--space--3xl));\n } \n}\n\n.alert-list__header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.alert-list__title {\n font-family: var(--ez-alert-list__title--font-family);\n font-size: var(--ez-alert-list__title--font-size);\n font-weight: var(--ez-alert-list__title--font-weight);\n color: var(--ez-alert-list__title--color);\n}\n\n.alert-list__header__buttons {\n display: flex;\n gap: var(--space--xs);\n}\n\n.alert-list__expandable-content {\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n";
|
|
1117
1117
|
|
|
1118
1118
|
const EzAlertList$1 = class extends HTMLElement$1 {
|
|
1119
1119
|
constructor() {
|
|
@@ -1122,7 +1122,7 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1122
1122
|
this.__attachShadow();
|
|
1123
1123
|
this.alerts = [];
|
|
1124
1124
|
this.enableDragAndDrop = undefined;
|
|
1125
|
-
this.enableExpand =
|
|
1125
|
+
this.enableExpand = true;
|
|
1126
1126
|
this.itemRightSlotBuilder = undefined;
|
|
1127
1127
|
this.opened = true;
|
|
1128
1128
|
this.expanded = false;
|
|
@@ -1130,67 +1130,128 @@ const EzAlertList$1 = class extends HTMLElement$1 {
|
|
|
1130
1130
|
observeOpened() {
|
|
1131
1131
|
this.manageOverlay();
|
|
1132
1132
|
}
|
|
1133
|
+
/**
|
|
1134
|
+
* Retorna o id do alerta a partir do título e do índice.
|
|
1135
|
+
*/
|
|
1136
|
+
alertId(title, index) {
|
|
1137
|
+
const concatTitle = (title) => { var _a; return (_a = title === null || title === void 0 ? void 0 : title.split(' ').join('-')) !== null && _a !== void 0 ? _a : ""; };
|
|
1138
|
+
return `alert-${index}-${concatTitle(title)}`;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Retorna o título do alerta a partir do id.
|
|
1142
|
+
*/
|
|
1143
|
+
getAlertTitle(id) {
|
|
1144
|
+
var _a;
|
|
1145
|
+
return (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === id)) === null || _a === void 0 ? void 0 : _a.title;
|
|
1146
|
+
}
|
|
1147
|
+
/**
|
|
1148
|
+
* Retorna o texto do título do alerta.
|
|
1149
|
+
*/
|
|
1150
|
+
getTitleText(item) {
|
|
1151
|
+
var _a;
|
|
1152
|
+
const title = (_a = this.getAlertTitle(item.id)) !== null && _a !== void 0 ? _a : '';
|
|
1153
|
+
return `${title}${(title && item.label) ? ':' : ''}`;
|
|
1154
|
+
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Gerencia a exibição do conteúdo expandido.
|
|
1157
|
+
*/
|
|
1158
|
+
toggleExpandContainer() {
|
|
1159
|
+
if (!this.enableExpand) {
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
this.expanded = !this.expanded;
|
|
1163
|
+
this._container.classList.toggle('expanded', this.expanded);
|
|
1164
|
+
if (this.expanded) {
|
|
1165
|
+
this.updatePosition(this.getBoundingRight(), this.getBoundingBottom());
|
|
1166
|
+
}
|
|
1167
|
+
else {
|
|
1168
|
+
this.updatePosition(`10px`, `10px`);
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1133
1171
|
/**
|
|
1134
1172
|
* Gerencia a exibição do overlay usando FloatingManager do Core.
|
|
1135
1173
|
*/
|
|
1136
|
-
|
|
1137
|
-
if (this.opened) {
|
|
1138
|
-
this._overlayId = FloatingManager.float(this._container, this._overlayRef,
|
|
1139
|
-
autoClose: false,
|
|
1140
|
-
isFixed: !this.enableDragAndDrop,
|
|
1141
|
-
bottom: '10px',
|
|
1142
|
-
right: '10px'
|
|
1143
|
-
});
|
|
1174
|
+
manageOverlay() {
|
|
1175
|
+
if (this.opened && this._container) {
|
|
1176
|
+
this._overlayId = FloatingManager.float(this._container, this._overlayRef, this.getFloatOptions());
|
|
1144
1177
|
}
|
|
1145
1178
|
else {
|
|
1179
|
+
if (this._overlayId === undefined)
|
|
1180
|
+
return;
|
|
1146
1181
|
FloatingManager.close(this._overlayId);
|
|
1147
1182
|
this._overlayId = undefined;
|
|
1148
1183
|
}
|
|
1149
1184
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1185
|
+
/**
|
|
1186
|
+
* Atualiza a posição da lista.
|
|
1187
|
+
*/
|
|
1188
|
+
updatePosition(right, bottom) {
|
|
1152
1189
|
if (this.opened) {
|
|
1153
|
-
this._container.
|
|
1190
|
+
FloatingManager.updateFloatPosition(this._container, this._overlayRef, Object.assign(Object.assign({}, this.getFloatOptions()), { right,
|
|
1191
|
+
bottom }));
|
|
1154
1192
|
}
|
|
1155
1193
|
}
|
|
1156
|
-
|
|
1157
|
-
|
|
1194
|
+
;
|
|
1195
|
+
/**
|
|
1196
|
+
* Retorna valores padrões do componente
|
|
1197
|
+
*/
|
|
1198
|
+
getFloatOptions() {
|
|
1199
|
+
return {
|
|
1200
|
+
autoClose: false,
|
|
1201
|
+
isFixed: true,
|
|
1202
|
+
bottom: '10px',
|
|
1203
|
+
right: '10px',
|
|
1204
|
+
};
|
|
1158
1205
|
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1206
|
+
;
|
|
1207
|
+
/**
|
|
1208
|
+
* Retorna o valor para o alinhamento horizontal do componente.
|
|
1209
|
+
*/
|
|
1210
|
+
getBoundingRight() {
|
|
1211
|
+
const docWidth = document.body.clientWidth;
|
|
1212
|
+
const boxWidth = this._container.getBoundingClientRect().width;
|
|
1213
|
+
return ((docWidth - boxWidth) / 2) + 'px';
|
|
1162
1214
|
}
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1215
|
+
/**
|
|
1216
|
+
* Retorna o valor para o alinhamento vertical do componente.
|
|
1217
|
+
*/
|
|
1218
|
+
getBoundingBottom() {
|
|
1219
|
+
const docHeight = document.body.clientHeight;
|
|
1220
|
+
const boxHeight = this._container.getBoundingClientRect().height;
|
|
1221
|
+
return ((docHeight - boxHeight) / 2) + 'px';
|
|
1166
1222
|
}
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1223
|
+
componentDidLoad() {
|
|
1224
|
+
this.manageOverlay();
|
|
1225
|
+
if (this.opened && this._container) {
|
|
1226
|
+
this._container.focus();
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
componentWillLoad() {
|
|
1230
|
+
this.dataElementId = ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
|
|
1171
1231
|
}
|
|
1172
1232
|
render() {
|
|
1173
|
-
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }),
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1233
|
+
return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), this.opened ?
|
|
1234
|
+
(h("div", { ref: elem => (this._overlayRef = elem) }, h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, h("div", { class: "alert-list__content" }, h("div", { class: "alert-list__header" }, h("div", { class: "alert-list__title" }, `Avisos (${this.alerts.length})`), h("div", { class: "alert-list__header__buttons" }, this.enableExpand && (h("ez-button", { mode: "icon", size: "small", iconName: "expand", onClick: () => this.toggleExpandContainer(), "data-element-id": ElementIDUtils.getInternalIDInfo('expandButton'), title: this.expanded ? 'Resumir' : 'Expandir' })), h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
|
|
1235
|
+
this.opened = false;
|
|
1236
|
+
}, title: 'Fechar' }))), h("div", { class: "alert-list__expandable-content" }, h("ez-list", { itemSlotBuilder: this.itemRightSlotBuilder, hoverFeedback: true, itemLeftSlotBuilder: item => {
|
|
1237
|
+
return (h("a", { href: "#", style: {
|
|
1238
|
+
fontFamily: "var(--font-pattern, 'Roboto')",
|
|
1239
|
+
fontSize: 'var(--text--medium, 14px)',
|
|
1240
|
+
fontWeight: 'var(--text-weight--medium, 400)',
|
|
1241
|
+
color: 'var(--color--primary, #008561)',
|
|
1242
|
+
marginRight: '4px',
|
|
1243
|
+
cursor: 'pointer',
|
|
1244
|
+
display: 'flex',
|
|
1245
|
+
width: 'max-content',
|
|
1246
|
+
textDecoration: 'none'
|
|
1247
|
+
} }, this.getTitleText(item)));
|
|
1248
|
+
}, dataSource: this.alerts.map((alert, index) => {
|
|
1249
|
+
var _a;
|
|
1250
|
+
return {
|
|
1251
|
+
id: this.alertId(alert.title, index),
|
|
1252
|
+
label: (_a = alert.detail) !== null && _a !== void 0 ? _a : "",
|
|
1253
|
+
};
|
|
1254
|
+
}) })))))) : null));
|
|
1194
1255
|
}
|
|
1195
1256
|
get _element() { return this; }
|
|
1196
1257
|
static get watchers() { return {
|
|
@@ -1925,7 +1986,7 @@ const EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
1925
1986
|
static get style() { return ezCalendarCss; }
|
|
1926
1987
|
};
|
|
1927
1988
|
|
|
1928
|
-
const ezCardItemCss = ":host{--ez-card-item--font-size:var(--text--medium, 14px)
|
|
1989
|
+
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 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(--title--primary, #2B3A54);\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 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 padding: 12px;\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: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 cursor: pointer;\n justify-content: space-between;\n gap: var(--space--small, 6px);\n}\n\n.card-item__details-left {\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-right {\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail:not(:last-child) {\n cursor: pointer;\n white-space: pre-line;\n\n /*public*/\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--font-weight);\n color: var(--ez-card-item__detail-label--color);\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 color: var(--ez-card-item--color);\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@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-left {\n width: 100%;\n }\n \n .card-item__details-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}";
|
|
1929
1990
|
|
|
1930
1991
|
const EzCardItem$1 = class extends HTMLElement$1 {
|
|
1931
1992
|
constructor() {
|
|
@@ -2292,10 +2353,6 @@ const EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
2292
2353
|
static get style() { return ezCollapsibleBoxCss; }
|
|
2293
2354
|
};
|
|
2294
2355
|
|
|
2295
|
-
const REQUIRED_INFO = " (obrigatório) *";
|
|
2296
|
-
const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
|
|
2297
|
-
const EZ_GRID_LOADING_SOURCE = "EZ_GRID_LOADING_SOURCE";
|
|
2298
|
-
|
|
2299
2356
|
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box__list-min-width:64px;--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{min-width:var(--ez-combo-box__list-min-width);position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--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-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
2300
2357
|
|
|
2301
2358
|
const EzComboBox$1 = class extends HTMLElement$1 {
|
|
@@ -2309,7 +2366,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2309
2366
|
this._maxWidthValue = 0;
|
|
2310
2367
|
this._tabPressed = false;
|
|
2311
2368
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
2312
|
-
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
2313
2369
|
this._lookupMode = false;
|
|
2314
2370
|
this._preSelection = undefined;
|
|
2315
2371
|
this._visibleOptions = undefined;
|
|
@@ -2322,7 +2378,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2322
2378
|
this.enabled = true;
|
|
2323
2379
|
this.options = undefined;
|
|
2324
2380
|
this.errorMessage = undefined;
|
|
2325
|
-
this.searchMode = undefined;
|
|
2326
2381
|
this.showSelectedValue = false;
|
|
2327
2382
|
this.showOptionValue = false;
|
|
2328
2383
|
this.suppressSearch = false;
|
|
@@ -2346,7 +2401,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2346
2401
|
observeValue(newValue, oldValue) {
|
|
2347
2402
|
if (this._textInput && newValue != oldValue) {
|
|
2348
2403
|
try {
|
|
2349
|
-
if (
|
|
2404
|
+
if (typeof newValue === "string") {
|
|
2350
2405
|
this.setInputValue();
|
|
2351
2406
|
return;
|
|
2352
2407
|
}
|
|
@@ -2373,7 +2428,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2373
2428
|
observeOptions(newOptions, oldOptions) {
|
|
2374
2429
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
2375
2430
|
return;
|
|
2376
|
-
this.loadOptions(SearchMode.PRELOAD);
|
|
2431
|
+
this.loadOptions(SearchMode$1.PRELOAD);
|
|
2377
2432
|
}
|
|
2378
2433
|
/*
|
|
2379
2434
|
* Retorna uma promise com o valor da opção selecionada,
|
|
@@ -2509,7 +2564,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2509
2564
|
}
|
|
2510
2565
|
updateVisibleOptions() {
|
|
2511
2566
|
let opts = this._source || [];
|
|
2512
|
-
if (
|
|
2567
|
+
if (this._criteria) {
|
|
2513
2568
|
const upperCriteria = this._criteria.toUpperCase();
|
|
2514
2569
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
2515
2570
|
}
|
|
@@ -2584,7 +2639,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2584
2639
|
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
2585
2640
|
}
|
|
2586
2641
|
nextOption() {
|
|
2587
|
-
if (
|
|
2642
|
+
if (!this.isOptionsVisible()) {
|
|
2588
2643
|
return;
|
|
2589
2644
|
}
|
|
2590
2645
|
this.showOptions();
|
|
@@ -2607,9 +2662,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2607
2662
|
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
2608
2663
|
this._preSelection = undefined;
|
|
2609
2664
|
}
|
|
2610
|
-
else {
|
|
2611
|
-
this.controlListWithOnlyOne();
|
|
2612
|
-
}
|
|
2613
2665
|
}
|
|
2614
2666
|
updateSource(source) {
|
|
2615
2667
|
this._startLoading = false;
|
|
@@ -2628,7 +2680,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2628
2680
|
this.updateVisibleOptions();
|
|
2629
2681
|
if (this._tabPressed) {
|
|
2630
2682
|
this._tabPressed = false;
|
|
2631
|
-
this.controlEmptySearch();
|
|
2632
2683
|
}
|
|
2633
2684
|
}
|
|
2634
2685
|
else {
|
|
@@ -2636,10 +2687,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2636
2687
|
}
|
|
2637
2688
|
}
|
|
2638
2689
|
}
|
|
2639
|
-
clearSource() {
|
|
2640
|
-
this._source = [];
|
|
2641
|
-
this.updateVisibleOptions();
|
|
2642
|
-
}
|
|
2643
2690
|
selectOption(newOption) {
|
|
2644
2691
|
var _a, _b;
|
|
2645
2692
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -2651,10 +2698,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2651
2698
|
else {
|
|
2652
2699
|
this.resetOptions();
|
|
2653
2700
|
}
|
|
2654
|
-
if (this.searchMode) {
|
|
2655
|
-
this._visibleOptions = [];
|
|
2656
|
-
this.clearSource();
|
|
2657
|
-
}
|
|
2658
2701
|
}
|
|
2659
2702
|
loadOptions(mode, argument = "") {
|
|
2660
2703
|
this._criteria = argument;
|
|
@@ -2673,7 +2716,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2673
2716
|
}
|
|
2674
2717
|
else {
|
|
2675
2718
|
window.setTimeout(() => {
|
|
2676
|
-
this.setInputValue(
|
|
2719
|
+
this.setInputValue();
|
|
2677
2720
|
}, this._deboucingTime);
|
|
2678
2721
|
}
|
|
2679
2722
|
this.resetOptions();
|
|
@@ -2690,93 +2733,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2690
2733
|
clearSearch() {
|
|
2691
2734
|
this.value = null;
|
|
2692
2735
|
}
|
|
2693
|
-
controlListWithOnlyOne() {
|
|
2694
|
-
var _a;
|
|
2695
|
-
if (this.searchMode) {
|
|
2696
|
-
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
2697
|
-
if ((source === null || source === void 0 ? void 0 : source.length) === 1) {
|
|
2698
|
-
this.selectOption(source[0]);
|
|
2699
|
-
}
|
|
2700
|
-
}
|
|
2701
|
-
}
|
|
2702
|
-
controlEmptySearch() {
|
|
2703
|
-
var _a;
|
|
2704
|
-
if (this.searchMode) {
|
|
2705
|
-
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
2706
|
-
this.clearSearch();
|
|
2707
|
-
ApplicationUtils.info(this._textEmptyList);
|
|
2708
|
-
}
|
|
2709
|
-
else {
|
|
2710
|
-
this.controlListWithOnlyOne();
|
|
2711
|
-
}
|
|
2712
|
-
}
|
|
2713
|
-
}
|
|
2714
|
-
validateDescriptionValue() {
|
|
2715
|
-
if (!this.searchMode || StringUtils$1.isEmpty(this.value)) {
|
|
2716
|
-
return;
|
|
2717
|
-
}
|
|
2718
|
-
let value = this.value;
|
|
2719
|
-
if (typeof value === "object") {
|
|
2720
|
-
return;
|
|
2721
|
-
}
|
|
2722
|
-
if (StringUtils$1.isEmpty(value)) {
|
|
2723
|
-
return;
|
|
2724
|
-
}
|
|
2725
|
-
this.loadDescriptionValue(value);
|
|
2726
|
-
}
|
|
2727
|
-
async loadDescriptionValue(argument) {
|
|
2728
|
-
var _a, _b;
|
|
2729
|
-
if (argument == undefined) {
|
|
2730
|
-
return;
|
|
2731
|
-
}
|
|
2732
|
-
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
2733
|
-
this.loadOptionValue(argument);
|
|
2734
|
-
return;
|
|
2735
|
-
}
|
|
2736
|
-
const searchArgument = {
|
|
2737
|
-
mode: SearchMode.PREDICTIVE,
|
|
2738
|
-
argument
|
|
2739
|
-
};
|
|
2740
|
-
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
2741
|
-
if (source == undefined) {
|
|
2742
|
-
return;
|
|
2743
|
-
}
|
|
2744
|
-
if (source instanceof Promise) {
|
|
2745
|
-
source.then((result) => {
|
|
2746
|
-
this.setDescriptionValue(result);
|
|
2747
|
-
});
|
|
2748
|
-
}
|
|
2749
|
-
else {
|
|
2750
|
-
this.setDescriptionValue(source);
|
|
2751
|
-
}
|
|
2752
|
-
}
|
|
2753
|
-
setDescriptionValue(source) {
|
|
2754
|
-
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
2755
|
-
if (value == undefined || !Object.keys(value).length) {
|
|
2756
|
-
this.showNoResultMessage();
|
|
2757
|
-
return;
|
|
2758
|
-
}
|
|
2759
|
-
this._lookupMode = true;
|
|
2760
|
-
this.value = value;
|
|
2761
|
-
}
|
|
2762
|
-
loadOptionValue(argument) {
|
|
2763
|
-
var _a;
|
|
2764
|
-
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
2765
|
-
if (source != undefined) {
|
|
2766
|
-
this.selectOption(source);
|
|
2767
|
-
}
|
|
2768
|
-
else {
|
|
2769
|
-
this.showNoResultMessage();
|
|
2770
|
-
}
|
|
2771
|
-
}
|
|
2772
|
-
async showNoResultMessage() {
|
|
2773
|
-
this.clearSearch();
|
|
2774
|
-
ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
2775
|
-
}
|
|
2776
|
-
getFieldLabel() {
|
|
2777
|
-
var _a;
|
|
2778
|
-
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
|
|
2779
|
-
}
|
|
2780
2736
|
resetOptions() {
|
|
2781
2737
|
this.hideOptions();
|
|
2782
2738
|
this._criteria = undefined;
|
|
@@ -2802,12 +2758,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2802
2758
|
});
|
|
2803
2759
|
}
|
|
2804
2760
|
}
|
|
2805
|
-
|
|
2806
|
-
this.updateSource([]);
|
|
2807
|
-
}
|
|
2808
|
-
else {
|
|
2809
|
-
this.loadOptions(SearchMode.PRELOAD);
|
|
2810
|
-
}
|
|
2761
|
+
this.loadOptions(SearchMode$1.PRELOAD);
|
|
2811
2762
|
}
|
|
2812
2763
|
componentDidRender() {
|
|
2813
2764
|
var _a;
|
|
@@ -2817,7 +2768,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2817
2768
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
2818
2769
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
2819
2770
|
});
|
|
2820
|
-
this.validateDescriptionValue();
|
|
2821
2771
|
}
|
|
2822
2772
|
componentDidLoad() {
|
|
2823
2773
|
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
@@ -2837,13 +2787,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2837
2787
|
// Event handlers
|
|
2838
2788
|
//---------------------------------------------
|
|
2839
2789
|
handlerIconClick() {
|
|
2840
|
-
this.
|
|
2841
|
-
}
|
|
2842
|
-
buildNumberArgument(argument) {
|
|
2843
|
-
if (this.isTextSearch) {
|
|
2844
|
-
return NaN;
|
|
2845
|
-
}
|
|
2846
|
-
return Number(argument || undefined);
|
|
2790
|
+
this.showOptions();
|
|
2847
2791
|
}
|
|
2848
2792
|
onTextInputChangeHandler(event) {
|
|
2849
2793
|
var _a;
|
|
@@ -2860,36 +2804,12 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2860
2804
|
}
|
|
2861
2805
|
this._criteria = argument;
|
|
2862
2806
|
if (argument) {
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
this.clearSource();
|
|
2866
|
-
const enoughChars = argument.length >= this.limitCharsToSearch;
|
|
2867
|
-
const argumentNumber = this.buildNumberArgument(argument);
|
|
2868
|
-
if (enoughChars || !isNaN(argumentNumber)) {
|
|
2869
|
-
this._showLoading = true;
|
|
2870
|
-
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
2871
|
-
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
2872
|
-
}, this._deboucingTime);
|
|
2873
|
-
this.showOptions();
|
|
2874
|
-
}
|
|
2875
|
-
else {
|
|
2876
|
-
this.hideOptions();
|
|
2877
|
-
}
|
|
2878
|
-
}
|
|
2879
|
-
else {
|
|
2880
|
-
this.updateVisibleOptions();
|
|
2881
|
-
this.showOptions();
|
|
2882
|
-
}
|
|
2807
|
+
this.updateVisibleOptions();
|
|
2808
|
+
this.showOptions();
|
|
2883
2809
|
}
|
|
2884
2810
|
else {
|
|
2885
2811
|
this.hideOptions();
|
|
2886
|
-
|
|
2887
|
-
this._showLoading = false;
|
|
2888
|
-
this.clearSource();
|
|
2889
|
-
}
|
|
2890
|
-
else {
|
|
2891
|
-
this.updateVisibleOptions();
|
|
2892
|
-
}
|
|
2812
|
+
this.updateVisibleOptions();
|
|
2893
2813
|
}
|
|
2894
2814
|
}
|
|
2895
2815
|
clearDeboucingTimeout() {
|
|
@@ -2899,15 +2819,13 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2899
2819
|
}
|
|
2900
2820
|
}
|
|
2901
2821
|
onTextInputClickHandler() {
|
|
2902
|
-
|
|
2903
|
-
this.showOptions();
|
|
2904
|
-
}
|
|
2822
|
+
this.showOptions();
|
|
2905
2823
|
}
|
|
2906
2824
|
keyDownHandler(event) {
|
|
2907
2825
|
this._tabPressed = false;
|
|
2908
2826
|
if (event.ctrlKey) {
|
|
2909
2827
|
if (event.key === "f" || event.key === "F") {
|
|
2910
|
-
this.loadOptions(SearchMode.ADVANCED);
|
|
2828
|
+
this.loadOptions(SearchMode$1.ADVANCED);
|
|
2911
2829
|
//ATENÇÃO: Ctrl + F tem ação específica nos browsers
|
|
2912
2830
|
//nesse caso, como vamos abrir o popup de busca avançada,
|
|
2913
2831
|
//não é interessante deixar o evento propagar;
|
|
@@ -2933,7 +2851,6 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2933
2851
|
break;
|
|
2934
2852
|
case "Tab":
|
|
2935
2853
|
this._tabPressed = true;
|
|
2936
|
-
this.controlListWithOnlyOne();
|
|
2937
2854
|
break;
|
|
2938
2855
|
}
|
|
2939
2856
|
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
@@ -2950,11 +2867,8 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2950
2867
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
2951
2868
|
}
|
|
2952
2869
|
render() {
|
|
2953
|
-
var _a;
|
|
2954
2870
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
2955
|
-
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), onClick: () => this.onTextInputClickHandler(), 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:
|
|
2956
|
-
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
2957
|
-
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
2871
|
+
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), onClick: () => this.onTextInputClickHandler(), 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: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
2958
2872
|
&& this._visibleOptions.length === 0
|
|
2959
2873
|
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
2960
2874
|
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
|
|
@@ -2969,12 +2883,12 @@ const EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
2969
2883
|
}; }
|
|
2970
2884
|
static get style() { return ezComboBoxCss; }
|
|
2971
2885
|
};
|
|
2972
|
-
var SearchMode;
|
|
2886
|
+
var SearchMode$1;
|
|
2973
2887
|
(function (SearchMode) {
|
|
2974
2888
|
SearchMode["ADVANCED"] = "ADVANCED";
|
|
2975
2889
|
SearchMode["PRELOAD"] = "PRELOAD";
|
|
2976
2890
|
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
2977
|
-
})(SearchMode || (SearchMode = {}));
|
|
2891
|
+
})(SearchMode$1 || (SearchMode$1 = {}));
|
|
2978
2892
|
|
|
2979
2893
|
const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
2980
2894
|
|
|
@@ -3083,9 +2997,6 @@ const EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
3083
2997
|
this._calendar.hide();
|
|
3084
2998
|
}
|
|
3085
2999
|
handleBlur() {
|
|
3086
|
-
if (!this._changePending) {
|
|
3087
|
-
return;
|
|
3088
|
-
}
|
|
3089
3000
|
try {
|
|
3090
3001
|
const strValue = this._textInput.value;
|
|
3091
3002
|
const newValue = DateUtils$1.strToDate(strValue);
|
|
@@ -3319,9 +3230,6 @@ const EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
3319
3230
|
}
|
|
3320
3231
|
handleBlur() {
|
|
3321
3232
|
var _a, _b;
|
|
3322
|
-
if (!this._changePending) {
|
|
3323
|
-
return;
|
|
3324
|
-
}
|
|
3325
3233
|
try {
|
|
3326
3234
|
const strValue = ((_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim()) || "";
|
|
3327
3235
|
const newValue = this.getParsedDateTime();
|
|
@@ -3880,6 +3788,7 @@ const EzDropdown$1 = class extends HTMLElement$1 {
|
|
|
3880
3788
|
this.__attachShadow();
|
|
3881
3789
|
this.ezClick = createEvent(this, "ezClick", 7);
|
|
3882
3790
|
this.ezSubActionClick = createEvent(this, "ezSubActionClick", 7);
|
|
3791
|
+
this.ezOutsideClick = createEvent(this, "ezOutsideClick", 7);
|
|
3883
3792
|
this._itemList = {};
|
|
3884
3793
|
this._submenuList = [];
|
|
3885
3794
|
this._openedMenuList = {};
|
|
@@ -3892,6 +3801,11 @@ const EzDropdown$1 = class extends HTMLElement$1 {
|
|
|
3892
3801
|
this.value = undefined;
|
|
3893
3802
|
this.itemBuilder = undefined;
|
|
3894
3803
|
}
|
|
3804
|
+
handleClickOutside(event) {
|
|
3805
|
+
if (!this._element.contains(event.target)) {
|
|
3806
|
+
this.ezOutsideClick.emit();
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3895
3809
|
//---------------------------------------------
|
|
3896
3810
|
// Private methods
|
|
3897
3811
|
//---------------------------------------------
|
|
@@ -3970,13 +3884,13 @@ const EzDropdown$1 = class extends HTMLElement$1 {
|
|
|
3970
3884
|
this._itemList[item.id] = {};
|
|
3971
3885
|
}
|
|
3972
3886
|
}
|
|
3973
|
-
getContainerItemBuilder(item, level) {
|
|
3887
|
+
getContainerItemBuilder(item, level, isLockedLevels, hasIcon, hasChildren) {
|
|
3974
3888
|
if (this.itemBuilder == undefined) {
|
|
3975
3889
|
return;
|
|
3976
3890
|
}
|
|
3977
3891
|
const customContent = this.itemBuilder(item, level);
|
|
3978
3892
|
if (customContent == undefined) {
|
|
3979
|
-
return;
|
|
3893
|
+
return this.defaultItemBuilder(item, isLockedLevels, hasIcon, hasChildren);
|
|
3980
3894
|
}
|
|
3981
3895
|
if (typeof customContent !== "string") {
|
|
3982
3896
|
return (h("div", { class: "ez-dropdown__item-builder" }, customContent));
|
|
@@ -3997,7 +3911,7 @@ const EzDropdown$1 = class extends HTMLElement$1 {
|
|
|
3997
3911
|
var _a;
|
|
3998
3912
|
return (item.type !== "divider"
|
|
3999
3913
|
? h("div", Object.assign({ ref: (ref) => this._itemList[item.id] = ref, class: "ez-dropdown__item", "data-level": level }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`${item.id}_ezDropdownItem`) }), h("div", { class: "ez-dropdown__item-content", onClick: (evt) => this.onItemClick(evt, item), onMouseOver: (evt) => this.onShowSubmenu(evt, item) }, this.itemBuilder
|
|
4000
|
-
? this.getContainerItemBuilder(item, level)
|
|
3914
|
+
? this.getContainerItemBuilder(item, level, isLockedLevels, hasIcon, hasChildren)
|
|
4001
3915
|
: this.defaultItemBuilder(item, isLockedLevels, hasIcon, hasChildren)), ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
4002
3916
|
!isLockedLevels &&
|
|
4003
3917
|
hasChildren &&
|
|
@@ -4778,6 +4692,10 @@ const EzForm$1 = class extends HTMLElement$1 {
|
|
|
4778
4692
|
static get style() { return ezFormCss; }
|
|
4779
4693
|
};
|
|
4780
4694
|
|
|
4695
|
+
const REQUIRED_INFO = " (obrigatório) *";
|
|
4696
|
+
const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
|
|
4697
|
+
const EZ_GRID_LOADING_SOURCE = "EZ_GRID_LOADING_SOURCE";
|
|
4698
|
+
|
|
4781
4699
|
const buildSwitch$1 = (field) => {
|
|
4782
4700
|
return buildField(field.name, field.label, field.readOnly, field.contextName, true);
|
|
4783
4701
|
};
|
|
@@ -4819,9 +4737,11 @@ const buildDateTime$1 = ({ name, label, readOnly, contextName, canShowError }) =
|
|
|
4819
4737
|
const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
4820
4738
|
const uploadProps = ObjectUtils$1.removeEmptyValues({
|
|
4821
4739
|
subTitle: props.subTitle,
|
|
4822
|
-
requestHeaders: props.STORAGESTRATEGY
|
|
4740
|
+
requestHeaders: Object.assign(Object.assign({}, (props.STORAGESTRATEGY && {
|
|
4823
4741
|
STORAGESTRATEGY: props.STORAGESTRATEGY
|
|
4824
|
-
}
|
|
4742
|
+
})), (props.INTERNAL_FILENAME && {
|
|
4743
|
+
INTERNAL_FILENAME: props.INTERNAL_FILENAME
|
|
4744
|
+
})),
|
|
4825
4745
|
});
|
|
4826
4746
|
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
4827
4747
|
h("ez-upload", Object.assign({ enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name }, uploadProps))));
|
|
@@ -123786,6 +123706,14 @@ var AllEnterpriseModules = [
|
|
|
123786
123706
|
ModuleRegistry.registerModules(AllEnterpriseModules);
|
|
123787
123707
|
|
|
123788
123708
|
class DataSource {
|
|
123709
|
+
updateLoadedRecords(action) {
|
|
123710
|
+
const records = action.payload;
|
|
123711
|
+
if ((records === null || records === void 0 ? void 0 : records.length) > 0) {
|
|
123712
|
+
records.forEach(record => {
|
|
123713
|
+
this._controller.changeValues(record, [record.__record__id__]);
|
|
123714
|
+
});
|
|
123715
|
+
}
|
|
123716
|
+
}
|
|
123789
123717
|
isSilentChange(action) {
|
|
123790
123718
|
//TODO: Provisorio p/ não atualizar a grade quando a alteração for apenas de campos transisntes
|
|
123791
123719
|
var _a, _b;
|
|
@@ -123838,6 +123766,9 @@ class DataSource {
|
|
|
123838
123766
|
case Action.PREVIOUS_SELECTED:
|
|
123839
123767
|
this.updateSelection();
|
|
123840
123768
|
break;
|
|
123769
|
+
case Action.RECORD_LOADED:
|
|
123770
|
+
this.updateLoadedRecords(action);
|
|
123771
|
+
break;
|
|
123841
123772
|
}
|
|
123842
123773
|
};
|
|
123843
123774
|
this._dataUnit = dataUnit;
|
|
@@ -123907,15 +123838,6 @@ class DataSource {
|
|
|
123907
123838
|
}
|
|
123908
123839
|
}
|
|
123909
123840
|
|
|
123910
|
-
function calcFilterColumnLeftPosition(leftReference) {
|
|
123911
|
-
const FIX_MARGIN = 60;
|
|
123912
|
-
const FILTER_COLUMN_WIDTH = 330;
|
|
123913
|
-
const screenWidth = window.innerWidth;
|
|
123914
|
-
const maxLeft = screenWidth - (FILTER_COLUMN_WIDTH + FIX_MARGIN);
|
|
123915
|
-
const leftInt = leftReference - FIX_MARGIN;
|
|
123916
|
-
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
123917
|
-
}
|
|
123918
|
-
|
|
123919
123841
|
class EzGridCustomHeader {
|
|
123920
123842
|
init(agParams) {
|
|
123921
123843
|
var _a;
|
|
@@ -123952,8 +123874,7 @@ class EzGridCustomHeader {
|
|
|
123952
123874
|
}
|
|
123953
123875
|
onClickFilter() {
|
|
123954
123876
|
var _a;
|
|
123955
|
-
|
|
123956
|
-
this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
|
|
123877
|
+
this.params.showColumnFilter((_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left);
|
|
123957
123878
|
}
|
|
123958
123879
|
configSortIcon() {
|
|
123959
123880
|
this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
|
|
@@ -124630,7 +124551,7 @@ class AgGridController {
|
|
|
124630
124551
|
this._idAttribName = '__record__id__';
|
|
124631
124552
|
this._gridConfig = [];
|
|
124632
124553
|
this._filteredColumns = new Map();
|
|
124633
|
-
this._filterColumnleftPosition =
|
|
124554
|
+
this._filterColumnleftPosition = 0;
|
|
124634
124555
|
this._enterprise = enterprise;
|
|
124635
124556
|
}
|
|
124636
124557
|
getGridConfig() {
|
|
@@ -124756,11 +124677,9 @@ class AgGridController {
|
|
|
124756
124677
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
124757
124678
|
}
|
|
124758
124679
|
}
|
|
124759
|
-
setFilterColumnLeftPosition(
|
|
124760
|
-
if (
|
|
124761
|
-
|
|
124762
|
-
const leftString = ePopup.style.left.replace('px', '');
|
|
124763
|
-
this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
|
|
124680
|
+
setFilterColumnLeftPosition({ type, ePopup }) {
|
|
124681
|
+
if (type === 'columnMenu') {
|
|
124682
|
+
this._filterColumnleftPosition = ePopup.getBoundingClientRect().left;
|
|
124764
124683
|
return;
|
|
124765
124684
|
}
|
|
124766
124685
|
}
|
|
@@ -125200,7 +125119,7 @@ class AgGridController {
|
|
|
125200
125119
|
tooltip: tooltip,
|
|
125201
125120
|
isSortable: propSortable,
|
|
125202
125121
|
hasFilter: () => this.hasFilterColumn(source.name),
|
|
125203
|
-
showColumnFilter: (leftPosition
|
|
125122
|
+
showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
|
|
125204
125123
|
},
|
|
125205
125124
|
valueFormatter: params => {
|
|
125206
125125
|
if (params.value == undefined) {
|
|
@@ -125585,13 +125504,13 @@ class InMemoryFilterColumnDataSource {
|
|
|
125585
125504
|
}
|
|
125586
125505
|
}
|
|
125587
125506
|
|
|
125588
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100
|
|
125507
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;min-height:300px;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-row-start:1;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}";
|
|
125589
125508
|
|
|
125590
125509
|
const windowInstace$1 = window;
|
|
125591
125510
|
const matches = (text, filter) => {
|
|
125592
|
-
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text.toLocaleLowerCase());
|
|
125511
|
+
const normalizedText = StringUtils$1.replaceAccentuatedCharsLower(text === null || text === void 0 ? void 0 : text.toLocaleLowerCase());
|
|
125593
125512
|
const normalizedFilter = StringUtils$1.replaceAccentuatedCharsLower(filter.toLocaleLowerCase());
|
|
125594
|
-
return normalizedText.includes(normalizedFilter);
|
|
125513
|
+
return normalizedText === null || normalizedText === void 0 ? void 0 : normalizedText.includes(normalizedFilter);
|
|
125595
125514
|
};
|
|
125596
125515
|
const EzGrid$1 = class extends HTMLElement$1 {
|
|
125597
125516
|
constructor() {
|
|
@@ -126025,7 +125944,7 @@ const EzGuideNavigator$1 = class extends HTMLElement$1 {
|
|
|
126025
125944
|
static get style() { return ezGuideNavigatorCss; }
|
|
126026
125945
|
};
|
|
126027
125946
|
|
|
126028
|
-
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea06\"}.ez-icon-alert-circle:before{content:\"\\ea07\"}.ez-icon-alert-mail:before{content:\"\\ea08\"}.ez-icon-alert-popup:before{content:\"\\ea09\"}.ez-icon-anexo:before{content:\"\\ea0a\"}.ez-icon-
|
|
125947
|
+
const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:\"\\ea01\"}.ez-icon-2chevron-up:before{content:\"\\ea02\"}.ez-icon-acao:before{content:\"\\ea03\"}.ez-icon-account-outline:before{content:\"\\ea04\"}.ez-icon-account:before{content:\"\\ea05\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea06\"}.ez-icon-alert-circle:before{content:\"\\ea07\"}.ez-icon-alert-mail:before{content:\"\\ea08\"}.ez-icon-alert-popup:before{content:\"\\ea09\"}.ez-icon-anexo:before{content:\"\\ea0a\"}.ez-icon-antecipacao:before{content:\"\\ea0b\"}.ez-icon-apps:before{content:\"\\ea0c\"}.ez-icon-arrow-forward:before{content:\"\\ea0d\"}.ez-icon-arrow-upward:before{content:\"\\ea0e\"}.ez-icon-arrow_back:before{content:\"\\ea0f\"}.ez-icon-arrow_downward:before{content:\"\\ea10\"}.ez-icon-baixa:before{content:\"\\ea11\"}.ez-icon-balance:before{content:\"\\ea12\"}.ez-icon-bell-inverted:before{content:\"\\ea13\"}.ez-icon-bell:before{content:\"\\ea14\"}.ez-icon-boleto:before{content:\"\\ea15\"}.ez-icon-boolean:before{content:\"\\ea16\"}.ez-icon-business-center:before{content:\"\\ea17\"}.ez-icon-calendar-clock:before{content:\"\\ea18\"}.ez-icon-calendar:before{content:\"\\ea19\"}.ez-icon-cash-remove:before{content:\"\\ea1a\"}.ez-icon-check-circle-inverted:before{content:\"\\ea1b\"}.ez-icon-check-circle:before{content:\"\\ea1c\"}.ez-icon-check:before{content:\"\\ea1d\"}.ez-icon-chevron-down:before{content:\"\\ea1e\"}.ez-icon-chevron-left:before{content:\"\\ea1f\"}.ez-icon-chevron-right:before{content:\"\\ea20\"}.ez-icon-chevron-up:before{content:\"\\ea21\"}.ez-icon-circle--medium:before{content:\"\\ea22\"}.ez-icon-circle:before{content:\"\\ea23\"}.ez-icon-cleaning:before{content:\"\\ea24\"}.ez-icon-clipboard:before{content:\"\\ea25\"}.ez-icon-close:before{content:\"\\ea26\"}.ez-icon-cobrar:before{content:\"\\ea27\"}.ez-icon-code:before{content:\"\\ea28\"}.ez-icon-configuration:before{content:\"\\ea29\"}.ez-icon-content-cut:before{content:\"\\ea2a\"}.ez-icon-copy:before{content:\"\\ea2b\"}.ez-icon-credit_card:before{content:\"\\ea2c\"}.ez-icon-crop:before{content:\"\\ea2d\"}.ez-icon-custom:before{content:\"\\ea2e\"}.ez-icon-delete-file:before{content:\"\\ea2f\"}.ez-icon-delete:before{content:\"\\ea30\"}.ez-icon-description:before{content:\"\\ea31\"}.ez-icon-dividir:before{content:\"\\ea32\"}.ez-icon-docx:before{content:\"\\ea33\"}.ez-icon-dot-notification:before{content:\"\\ea34\"}.ez-icon-dots-horizontal:before{content:\"\\ea35\"}.ez-icon-dots-vertical:before{content:\"\\ea36\"}.ez-icon-drag-indicator:before{content:\"\\ea37\"}.ez-icon-dual-chevron-down:before{content:\"\\ea38\"}.ez-icon-dual-chevron-left:before{content:\"\\ea39\"}.ez-icon-dual-chevron-right:before{content:\"\\ea3a\"}.ez-icon-dual-chevron-up:before{content:\"\\ea3b\"}.ez-icon-edit-file:before{content:\"\\ea3c\"}.ez-icon-edit-table:before{content:\"\\ea3d\"}.ez-icon-edit-time:before{content:\"\\ea3e\"}.ez-icon-edit-value:before{content:\"\\ea3f\"}.ez-icon-edit:before{content:\"\\ea40\"}.ez-icon-email:before{content:\"\\ea41\"}.ez-icon-estorno:before{content:\"\\ea42\"}.ez-icon-exe:before{content:\"\\ea43\"}.ez-icon-expand:before{content:\"\\ea44\"}.ez-icon-expandir_card:before{content:\"\\ea45\"}.ez-icon-extrato:before{content:\"\\ea46\"}.ez-icon-eye-off:before{content:\"\\ea47\"}.ez-icon-eye:before{content:\"\\ea48\"}.ez-icon-favorite:before{content:\"\\ea49\"}.ez-icon-figma:before{content:\"\\ea4a\"}.ez-icon-file-download:before{content:\"\\ea4b\"}.ez-icon-file-upload:before{content:\"\\ea4c\"}.ez-icon-filter:before{content:\"\\ea4d\"}.ez-icon-find-file:before{content:\"\\ea4e\"}.ez-icon-find-page:before{content:\"\\ea4f\"}.ez-icon-format-color-fill:before{content:\"\\ea50\"}.ez-icon-generic:before{content:\"\\ea51\"}.ez-icon-gif:before{content:\"\\ea52\"}.ez-icon-graph_bar:before{content:\"\\ea53\"}.ez-icon-handshake:before{content:\"\\ea54\"}.ez-icon-help-inverted:before{content:\"\\ea55\"}.ez-icon-help:before{content:\"\\ea56\"}.ez-icon-hide_menu:before{content:\"\\ea57\"}.ez-icon-home:before{content:\"\\ea58\"}.ez-icon-icons104:before{content:\"\\ea59\"}.ez-icon-language:before{content:\"\\ea5a\"}.ez-icon-launch:before{content:\"\\ea5b\"}.ez-icon-lightbulb:before{content:\"\\ea5c\"}.ez-icon-list:before{content:\"\\ea5d\"}.ez-icon-location:before{content:\"\\ea5e\"}.ez-icon-lock-outline:before{content:\"\\ea5f\"}.ez-icon-lock:before{content:\"\\ea60\"}.ez-icon-menu:before{content:\"\\ea61\"}.ez-icon-mid:before{content:\"\\ea62\"}.ez-icon-minus:before{content:\"\\ea63\"}.ez-icon-money-off:before{content:\"\\ea64\"}.ez-icon-money:before{content:\"\\ea65\"}.ez-icon-more:before{content:\"\\ea66\"}.ez-icon-mp3:before{content:\"\\ea67\"}.ez-icon-mp4:before{content:\"\\ea68\"}.ez-icon-multiple-files:before{content:\"\\ea69\"}.ez-icon-north-west:before{content:\"\\ea6a\"}.ez-icon-number:before{content:\"\\ea6b\"}.ez-icon-ordem-ascendente:before{content:\"\\ea6c\"}.ez-icon-ordem-descendente:before{content:\"\\ea6d\"}.ez-icon-parcelar:before{content:\"\\ea6e\"}.ez-icon-pause:before{content:\"\\ea6f\"}.ez-icon-payments:before{content:\"\\ea70\"}.ez-icon-pdf:before{content:\"\\ea71\"}.ez-icon-play:before{content:\"\\ea72\"}.ez-icon-plus:before{content:\"\\ea73\"}.ez-icon-png:before{content:\"\\ea74\"}.ez-icon-power:before{content:\"\\ea75\"}.ez-icon-pptx:before{content:\"\\ea76\"}.ez-icon-preview:before{content:\"\\ea77\"}.ez-icon-print:before{content:\"\\ea78\"}.ez-icon-push-pin:before{content:\"\\ea79\"}.ez-icon-rateio:before{content:\"\\ea7a\"}.ez-icon-receipt:before{content:\"\\ea7b\"}.ez-icon-recolher_card:before{content:\"\\ea7c\"}.ez-icon-restore:before{content:\"\\ea7d\"}.ez-icon-return:before{content:\"\\ea7e\"}.ez-icon-sankhya-place:before{content:\"\\ea7f\"}.ez-icon-save:before{content:\"\\ea80\"}.ez-icon-search:before{content:\"\\ea81\"}.ez-icon-settings-inverted:before{content:\"\\ea82\"}.ez-icon-settings:before{content:\"\\ea83\"}.ez-icon-share:before{content:\"\\ea84\"}.ez-icon-shield:before{content:\"\\ea85\"}.ez-icon-show_menu:before{content:\"\\ea86\"}.ez-icon-south-east:before{content:\"\\ea87\"}.ez-icon-sync:before{content:\"\\ea88\"}.ez-icon-table:before{content:\"\\ea89\"}.ez-icon-tag_code:before{content:\"\\ea8a\"}.ez-icon-text:before{content:\"\\ea8b\"}.ez-icon-timeline:before{content:\"\\ea8c\"}.ez-icon-timer-outline:before{content:\"\\ea8d\"}.ez-icon-trending-up:before{content:\"\\ea8e\"}.ez-icon-tune:before{content:\"\\ea8f\"}.ez-icon-txt:before{content:\"\\ea90\"}.ez-icon-un-pin:before{content:\"\\ea91\"}.ez-icon-unfold_less:before{content:\"\\ea92\"}.ez-icon-unfold_more:before{content:\"\\ea93\"}.ez-icon-user-circle:before{content:\"\\ea94\"}.ez-icon-warning-outline:before{content:\"\\ea95\"}.ez-icon-warning_triangle:before{content:\"\\ea96\"}.ez-icon-whatshot:before{content:\"\\ea97\"}.ez-icon-xlsx:before{content:\"\\ea98\"}.ez-icon-zip:before{content:\"\\ea99\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
|
|
126029
125948
|
|
|
126030
125949
|
const EzIcon$1 = class extends HTMLElement$1 {
|
|
126031
125950
|
constructor() {
|
|
@@ -127069,9 +126988,6 @@ const EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
127069
126988
|
this.ezCancelWaitingChange.emit();
|
|
127070
126989
|
}
|
|
127071
126990
|
handleBlur() {
|
|
127072
|
-
if (!this._changePending) {
|
|
127073
|
-
return;
|
|
127074
|
-
}
|
|
127075
126991
|
try {
|
|
127076
126992
|
const parsedNumber = this.getParsedNumber();
|
|
127077
126993
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -127282,7 +127198,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
127282
127198
|
static get style() { return ezPopoverCss; }
|
|
127283
127199
|
};
|
|
127284
127200
|
|
|
127285
|
-
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;
|
|
127201
|
+
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--ez-popup__btn__close--icon:url('data:image/svg+xml;utf8,<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z\"/></svg>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;height:100%}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
127286
127202
|
|
|
127287
127203
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
127288
127204
|
constructor() {
|
|
@@ -127575,7 +127491,7 @@ class ScrollCtrl {
|
|
|
127575
127491
|
}
|
|
127576
127492
|
}
|
|
127577
127493
|
|
|
127578
|
-
const ezSearchCss = ":host{width:100%}";
|
|
127494
|
+
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{min-width:var(--ez-search__list-min-width);overflow:auto;position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:350px;min-width:150px;background-color:var(--ez-search--background-color--xlight);border-radius:var(--ez-search--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-search--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-search__scrollbar--color-background);width:var(--ez-search__scrollbar--width);max-width:var(--ez-search__scrollbar--width);min-width:var(--ez-search__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-search--border-radius-small);padding:var(--ez-search--space--small);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-search__list-title--primary);border-top:3px solid transparent}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
127579
127495
|
|
|
127580
127496
|
const EzSearch$1 = class extends HTMLElement$1 {
|
|
127581
127497
|
constructor() {
|
|
@@ -127583,6 +127499,21 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127583
127499
|
this.__registerHost();
|
|
127584
127500
|
this.__attachShadow();
|
|
127585
127501
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
127502
|
+
this._changeDeboucingTimeout = null;
|
|
127503
|
+
this._limitCharsToSearch = 3;
|
|
127504
|
+
this._deboucingTime = 300;
|
|
127505
|
+
this._maxWidthValue = 0;
|
|
127506
|
+
this._tabPressed = false;
|
|
127507
|
+
this._textEmptyList = "Nenhum resultado encontrado";
|
|
127508
|
+
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
127509
|
+
this._lookupMode = false;
|
|
127510
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
127511
|
+
this._endHighlightTag = "</span>";
|
|
127512
|
+
this._preSelection = undefined;
|
|
127513
|
+
this._visibleOptions = undefined;
|
|
127514
|
+
this._startLoading = false;
|
|
127515
|
+
this._showLoading = true;
|
|
127516
|
+
this._criteria = undefined;
|
|
127586
127517
|
this.value = undefined;
|
|
127587
127518
|
this.label = undefined;
|
|
127588
127519
|
this.enabled = true;
|
|
@@ -127597,28 +127528,82 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127597
127528
|
this.listOptionsPosition = undefined;
|
|
127598
127529
|
this.isTextSearch = false;
|
|
127599
127530
|
this.ignoreLimitCharsToSearch = false;
|
|
127531
|
+
this.options = undefined;
|
|
127532
|
+
this.suppressSearch = false;
|
|
127600
127533
|
}
|
|
127601
127534
|
observeErrorMessage() {
|
|
127602
|
-
|
|
127603
|
-
|
|
127535
|
+
var _a;
|
|
127536
|
+
if (this._textInput) {
|
|
127537
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
127538
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
127539
|
+
this.setInputValue();
|
|
127540
|
+
}
|
|
127604
127541
|
}
|
|
127605
127542
|
}
|
|
127606
|
-
observeValue() {
|
|
127607
|
-
if (this.
|
|
127608
|
-
|
|
127543
|
+
observeValue(newValue, oldValue) {
|
|
127544
|
+
if (this._textInput && newValue != oldValue) {
|
|
127545
|
+
try {
|
|
127546
|
+
if (newValue === "string") {
|
|
127547
|
+
this.setInputValue();
|
|
127548
|
+
return;
|
|
127549
|
+
}
|
|
127550
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
127551
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
127552
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127553
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
127554
|
+
this.value = newValueSelected;
|
|
127555
|
+
}
|
|
127556
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
127557
|
+
this.setInputValue();
|
|
127558
|
+
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
127559
|
+
if (!this._lookupMode) {
|
|
127560
|
+
this.ezChange.emit(valueEmitted);
|
|
127561
|
+
}
|
|
127562
|
+
}
|
|
127563
|
+
this.resetOptions();
|
|
127564
|
+
}
|
|
127565
|
+
finally {
|
|
127566
|
+
this._lookupMode = false;
|
|
127567
|
+
}
|
|
127568
|
+
}
|
|
127569
|
+
}
|
|
127570
|
+
observeOptions(newOptions, oldOptions) {
|
|
127571
|
+
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
127572
|
+
return;
|
|
127573
|
+
this.loadOptions(SearchMode.PRELOAD);
|
|
127574
|
+
}
|
|
127575
|
+
/*
|
|
127576
|
+
* Retorna uma promise com o valor da opção selecionada,
|
|
127577
|
+
* que será resolvida quando o backend devolver este dado.
|
|
127578
|
+
*/
|
|
127579
|
+
async getValueAsync() {
|
|
127580
|
+
if (!this._showLoading) {
|
|
127581
|
+
return new Promise(resolve => resolve(this.value));
|
|
127609
127582
|
}
|
|
127583
|
+
return new Promise(resolve => {
|
|
127584
|
+
let id = setInterval(() => {
|
|
127585
|
+
if (!this._showLoading) {
|
|
127586
|
+
clearInterval(id);
|
|
127587
|
+
resolve(this.value);
|
|
127588
|
+
}
|
|
127589
|
+
}, 100);
|
|
127590
|
+
});
|
|
127610
127591
|
}
|
|
127611
127592
|
/**
|
|
127612
|
-
|
|
127613
|
-
|
|
127593
|
+
* Aplica o foco no campo.
|
|
127594
|
+
*/
|
|
127614
127595
|
async setFocus() {
|
|
127615
|
-
this.
|
|
127596
|
+
if (this._textInput) {
|
|
127597
|
+
this._textInput.setFocus();
|
|
127598
|
+
}
|
|
127616
127599
|
}
|
|
127617
127600
|
/**
|
|
127618
|
-
|
|
127619
|
-
|
|
127601
|
+
* Remove o foco do campo.
|
|
127602
|
+
*/
|
|
127620
127603
|
async setBlur() {
|
|
127621
|
-
this.
|
|
127604
|
+
if (this._textInput) {
|
|
127605
|
+
this._textInput.setBlur();
|
|
127606
|
+
}
|
|
127622
127607
|
}
|
|
127623
127608
|
/**
|
|
127624
127609
|
* Retorna se o conteúdo é inválido.
|
|
@@ -127630,40 +127615,547 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127630
127615
|
* Limpa o valor do campo de pesquisa
|
|
127631
127616
|
*/
|
|
127632
127617
|
async clearValue() {
|
|
127618
|
+
this.clearSearch();
|
|
127619
|
+
}
|
|
127620
|
+
scrollListener() {
|
|
127621
|
+
var _a;
|
|
127622
|
+
if (this._floatingID == undefined) {
|
|
127623
|
+
return;
|
|
127624
|
+
}
|
|
127625
|
+
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
127626
|
+
this.hideOptions();
|
|
127627
|
+
}
|
|
127628
|
+
else {
|
|
127629
|
+
window.requestAnimationFrame(() => {
|
|
127630
|
+
this.updateListPosition();
|
|
127631
|
+
});
|
|
127632
|
+
}
|
|
127633
|
+
}
|
|
127634
|
+
updateListPosition() {
|
|
127635
|
+
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
127636
|
+
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
127637
|
+
const containerRect = this._listContainer.getBoundingClientRect();
|
|
127638
|
+
const textInputRect = this._textInput.getBoundingClientRect();
|
|
127639
|
+
const limitHeight = bottomLimit || window.innerHeight;
|
|
127640
|
+
const neededHeight = containerRect.bottom + elementRect.height;
|
|
127641
|
+
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
127642
|
+
fromBottom = true;
|
|
127643
|
+
}
|
|
127644
|
+
if (!hardPosition) {
|
|
127645
|
+
verticalPosition = verticalPosition || 0;
|
|
127646
|
+
horizontalPosition = horizontalPosition || 0;
|
|
127647
|
+
if (fromBottom) {
|
|
127648
|
+
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
127649
|
+
}
|
|
127650
|
+
else {
|
|
127651
|
+
verticalPosition += containerRect.top;
|
|
127652
|
+
}
|
|
127653
|
+
if (fromRight) {
|
|
127654
|
+
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
127655
|
+
}
|
|
127656
|
+
else {
|
|
127657
|
+
horizontalPosition += containerRect.left;
|
|
127658
|
+
}
|
|
127659
|
+
}
|
|
127660
|
+
if (verticalPosition != undefined) {
|
|
127661
|
+
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
127662
|
+
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
127663
|
+
}
|
|
127664
|
+
if (horizontalPosition != undefined) {
|
|
127665
|
+
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
127666
|
+
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
127667
|
+
}
|
|
127668
|
+
}
|
|
127669
|
+
getListPosition() {
|
|
127670
|
+
if (this.listOptionsPosition) {
|
|
127671
|
+
return this.listOptionsPosition;
|
|
127672
|
+
}
|
|
127673
|
+
return {
|
|
127674
|
+
verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
|
|
127675
|
+
};
|
|
127676
|
+
}
|
|
127677
|
+
isDifferentValues(firstValue, secondValue) {
|
|
127678
|
+
return ObjectUtils$1.objectToString(firstValue || {}) !== ObjectUtils$1.objectToString(secondValue || {});
|
|
127679
|
+
}
|
|
127680
|
+
getFormattedText(currentValue) {
|
|
127681
|
+
if (currentValue == undefined) {
|
|
127682
|
+
return;
|
|
127683
|
+
}
|
|
127684
|
+
if (!this.showSelectedValue || currentValue.value == undefined) {
|
|
127685
|
+
return currentValue.label;
|
|
127686
|
+
}
|
|
127687
|
+
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
127688
|
+
}
|
|
127689
|
+
getText() {
|
|
127690
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127691
|
+
const text = this.getFormattedText(currentValue);
|
|
127692
|
+
if (text == undefined) {
|
|
127693
|
+
return;
|
|
127694
|
+
}
|
|
127695
|
+
return String(text)
|
|
127696
|
+
.replace(/&/g, '&')
|
|
127697
|
+
.replace(/</g, '<')
|
|
127698
|
+
.replace(/>/g, '>')
|
|
127699
|
+
.replace(/"/g, '"');
|
|
127700
|
+
}
|
|
127701
|
+
getSelectedOption(value) {
|
|
127702
|
+
if (typeof value === "string" || value instanceof String) {
|
|
127703
|
+
return this._visibleOptions.find(o => o.value === value);
|
|
127704
|
+
}
|
|
127705
|
+
return value;
|
|
127706
|
+
}
|
|
127707
|
+
updateVisibleOptions() {
|
|
127708
|
+
let opts = this._source || [];
|
|
127709
|
+
if (this.suppressEmptyOption) {
|
|
127710
|
+
this._visibleOptions = opts;
|
|
127711
|
+
}
|
|
127712
|
+
else {
|
|
127713
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
127714
|
+
}
|
|
127715
|
+
this._maxWidthValue = this.getMaxWidthValue();
|
|
127716
|
+
}
|
|
127717
|
+
getMaxWidthValue() {
|
|
127718
|
+
var _a;
|
|
127719
|
+
const arrValues = [];
|
|
127720
|
+
(_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.forEach(opt => {
|
|
127721
|
+
const widthValue = this.getWidthValue(opt.value);
|
|
127722
|
+
if (!arrValues.includes(widthValue)) {
|
|
127723
|
+
arrValues.push(widthValue);
|
|
127724
|
+
}
|
|
127725
|
+
});
|
|
127726
|
+
return arrValues.length > 1 ? Math.max(...arrValues) : 0;
|
|
127727
|
+
}
|
|
127728
|
+
getWidthValue(value) {
|
|
127729
|
+
if (this._itemValueBasis != undefined) {
|
|
127730
|
+
const span = this._itemValueBasis;
|
|
127731
|
+
if (value != undefined) {
|
|
127732
|
+
span.innerHTML = value;
|
|
127733
|
+
return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
|
|
127734
|
+
}
|
|
127735
|
+
else {
|
|
127736
|
+
span.innerHTML = "";
|
|
127737
|
+
}
|
|
127738
|
+
}
|
|
127739
|
+
return 0;
|
|
127740
|
+
}
|
|
127741
|
+
createOption(detail) {
|
|
127742
|
+
let { key, title } = detail;
|
|
127743
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127744
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127745
|
+
title = StringUtils$1.decodeHtmlEntities(title);
|
|
127746
|
+
const option = {
|
|
127747
|
+
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
127748
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
127749
|
+
};
|
|
127750
|
+
this.selectOption(option);
|
|
127751
|
+
}
|
|
127752
|
+
buildItem(opt, index) {
|
|
127753
|
+
opt.label = opt.label || opt.value;
|
|
127754
|
+
const card = {
|
|
127755
|
+
key: opt.value,
|
|
127756
|
+
title: opt.label,
|
|
127757
|
+
details: opt.details
|
|
127758
|
+
};
|
|
127759
|
+
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 }));
|
|
127760
|
+
}
|
|
127761
|
+
showOptions() {
|
|
127762
|
+
if (!this.enabled)
|
|
127763
|
+
return;
|
|
127764
|
+
if (this.isOptionsVisible()) {
|
|
127765
|
+
return;
|
|
127766
|
+
}
|
|
127767
|
+
if (!!this._resizeObserver)
|
|
127768
|
+
this._resizeObserver.observe(this._textInput);
|
|
127769
|
+
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
127770
|
+
this.setFocus();
|
|
127771
|
+
window.requestAnimationFrame(() => {
|
|
127772
|
+
this.updateListPosition();
|
|
127773
|
+
if (!this.listOptionsPosition) {
|
|
127774
|
+
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
127775
|
+
}
|
|
127776
|
+
});
|
|
127777
|
+
}
|
|
127778
|
+
hideOptions() {
|
|
127779
|
+
if (this._floatingID !== undefined) {
|
|
127780
|
+
FloatingManager.close(this._floatingID);
|
|
127781
|
+
}
|
|
127782
|
+
this._floatingID = undefined;
|
|
127783
|
+
if (!!this._resizeObserver)
|
|
127784
|
+
this._resizeObserver.unobserve(this._textInput);
|
|
127785
|
+
}
|
|
127786
|
+
isOptionsVisible() {
|
|
127787
|
+
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
127788
|
+
}
|
|
127789
|
+
nextOption() {
|
|
127790
|
+
if (!this.isOptionsVisible()) {
|
|
127791
|
+
return;
|
|
127792
|
+
}
|
|
127793
|
+
this.showOptions();
|
|
127794
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
127795
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
127796
|
+
}
|
|
127797
|
+
previousOption() {
|
|
127798
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
127799
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
127800
|
+
}
|
|
127801
|
+
scrollToOption(opt) {
|
|
127802
|
+
window.requestAnimationFrame(() => {
|
|
127803
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127804
|
+
if (liElem)
|
|
127805
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127806
|
+
});
|
|
127807
|
+
}
|
|
127808
|
+
selectCurrentOption() {
|
|
127809
|
+
if (this._preSelection !== undefined) {
|
|
127810
|
+
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
127811
|
+
this._preSelection = undefined;
|
|
127812
|
+
}
|
|
127813
|
+
else {
|
|
127814
|
+
this.controlListWithOnlyOne();
|
|
127815
|
+
}
|
|
127816
|
+
}
|
|
127817
|
+
updateSource(source) {
|
|
127818
|
+
this._startLoading = false;
|
|
127819
|
+
if (source instanceof Promise) {
|
|
127820
|
+
this._showLoading = true;
|
|
127821
|
+
source.then(result => {
|
|
127822
|
+
this._showLoading = false;
|
|
127823
|
+
this.updateSource(result);
|
|
127824
|
+
}).catch(() => this._showLoading = false);
|
|
127825
|
+
this.updateVisibleOptions();
|
|
127826
|
+
}
|
|
127827
|
+
else {
|
|
127828
|
+
this._showLoading = false;
|
|
127829
|
+
if (Array.isArray(source)) {
|
|
127830
|
+
this._source = source;
|
|
127831
|
+
this.updateVisibleOptions();
|
|
127832
|
+
if (this._tabPressed) {
|
|
127833
|
+
this._tabPressed = false;
|
|
127834
|
+
this.controlEmptySearch();
|
|
127835
|
+
}
|
|
127836
|
+
}
|
|
127837
|
+
else {
|
|
127838
|
+
this.selectOption(source);
|
|
127839
|
+
}
|
|
127840
|
+
}
|
|
127841
|
+
}
|
|
127842
|
+
clearSource() {
|
|
127843
|
+
this._source = [];
|
|
127844
|
+
this.updateVisibleOptions();
|
|
127845
|
+
}
|
|
127846
|
+
selectOption(newOption) {
|
|
127633
127847
|
var _a, _b;
|
|
127634
|
-
|
|
127848
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
127849
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOption === null || newOption === void 0 ? void 0 : newOption.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
127850
|
+
|| (currentValue == undefined && newOption != undefined && "value" in newOption)) {
|
|
127851
|
+
const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
|
|
127852
|
+
this.value = adjustedOpt;
|
|
127853
|
+
}
|
|
127854
|
+
else {
|
|
127855
|
+
this.resetOptions();
|
|
127856
|
+
}
|
|
127857
|
+
this._visibleOptions = [];
|
|
127858
|
+
this.clearSource();
|
|
127635
127859
|
}
|
|
127636
|
-
|
|
127637
|
-
|
|
127638
|
-
|
|
127639
|
-
|
|
127640
|
-
|
|
127860
|
+
loadOptions(mode, argument = "") {
|
|
127861
|
+
this._criteria = argument;
|
|
127862
|
+
this._startLoading = true;
|
|
127863
|
+
if (this.optionLoader) {
|
|
127864
|
+
const searchArgument = { mode, argument };
|
|
127865
|
+
this.updateSource(this.optionLoader(searchArgument));
|
|
127866
|
+
}
|
|
127867
|
+
else {
|
|
127868
|
+
this.updateSource(this.options);
|
|
127869
|
+
}
|
|
127870
|
+
}
|
|
127871
|
+
cancelPreselection() {
|
|
127872
|
+
if (!this._textInput.value && this.value) {
|
|
127873
|
+
this.selectOption(undefined);
|
|
127874
|
+
}
|
|
127875
|
+
else {
|
|
127876
|
+
window.setTimeout(() => {
|
|
127877
|
+
this.setInputValue();
|
|
127878
|
+
}, this._deboucingTime);
|
|
127879
|
+
}
|
|
127880
|
+
this.resetOptions();
|
|
127881
|
+
}
|
|
127882
|
+
setInputValue(clearError = true) {
|
|
127883
|
+
const textValue = this.getText();
|
|
127884
|
+
if ((this._textInput.value || '') !== textValue) {
|
|
127885
|
+
this._textInput.value = textValue;
|
|
127886
|
+
if (clearError) {
|
|
127887
|
+
this.errorMessage = null;
|
|
127888
|
+
}
|
|
127889
|
+
}
|
|
127890
|
+
}
|
|
127891
|
+
clearSearch() {
|
|
127892
|
+
this.value = null;
|
|
127893
|
+
}
|
|
127894
|
+
controlListWithOnlyOne() {
|
|
127895
|
+
var _a, _b;
|
|
127896
|
+
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
127897
|
+
if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
|
|
127898
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127899
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127900
|
+
let title = StringUtils$1.decodeHtmlEntities(source[0].label);
|
|
127901
|
+
const option = {
|
|
127902
|
+
value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
|
|
127903
|
+
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
127904
|
+
};
|
|
127905
|
+
this.selectOption(option);
|
|
127906
|
+
}
|
|
127907
|
+
}
|
|
127908
|
+
controlEmptySearch() {
|
|
127641
127909
|
var _a;
|
|
127642
|
-
|
|
127910
|
+
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
127911
|
+
this.clearSearch();
|
|
127912
|
+
ApplicationUtils.info(this._textEmptyList);
|
|
127913
|
+
}
|
|
127914
|
+
else {
|
|
127915
|
+
this.controlListWithOnlyOne();
|
|
127916
|
+
}
|
|
127643
127917
|
}
|
|
127644
|
-
|
|
127645
|
-
|
|
127646
|
-
|
|
127647
|
-
|
|
127648
|
-
|
|
127649
|
-
|
|
127918
|
+
validateDescriptionValue() {
|
|
127919
|
+
if (StringUtils$1.isEmpty(this.value)) {
|
|
127920
|
+
return;
|
|
127921
|
+
}
|
|
127922
|
+
let value = this.value;
|
|
127923
|
+
if (typeof value === "object") {
|
|
127924
|
+
return;
|
|
127925
|
+
}
|
|
127926
|
+
if (StringUtils$1.isEmpty(value)) {
|
|
127927
|
+
return;
|
|
127928
|
+
}
|
|
127929
|
+
this.loadDescriptionValue(value);
|
|
127930
|
+
}
|
|
127931
|
+
async loadDescriptionValue(argument) {
|
|
127932
|
+
var _a, _b;
|
|
127933
|
+
if (argument == undefined) {
|
|
127934
|
+
return;
|
|
127935
|
+
}
|
|
127936
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
127937
|
+
this.loadOptionValue(argument);
|
|
127938
|
+
return;
|
|
127939
|
+
}
|
|
127940
|
+
const searchArgument = {
|
|
127941
|
+
mode: SearchMode.PREDICTIVE,
|
|
127942
|
+
argument
|
|
127943
|
+
};
|
|
127944
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
127945
|
+
if (source == undefined) {
|
|
127946
|
+
return;
|
|
127947
|
+
}
|
|
127948
|
+
if (source instanceof Promise) {
|
|
127949
|
+
source.then((result) => {
|
|
127950
|
+
this.setDescriptionValue(result);
|
|
127951
|
+
});
|
|
127952
|
+
}
|
|
127953
|
+
else {
|
|
127954
|
+
this.setDescriptionValue(source);
|
|
127955
|
+
}
|
|
127956
|
+
}
|
|
127957
|
+
setDescriptionValue(source) {
|
|
127958
|
+
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
127959
|
+
if (value == undefined || !Object.keys(value).length) {
|
|
127960
|
+
this.showNoResultMessage();
|
|
127961
|
+
return;
|
|
127962
|
+
}
|
|
127963
|
+
this._lookupMode = true;
|
|
127964
|
+
this.value = value;
|
|
127965
|
+
}
|
|
127966
|
+
loadOptionValue(argument) {
|
|
127967
|
+
var _a;
|
|
127968
|
+
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
127969
|
+
if (source != undefined) {
|
|
127970
|
+
this.selectOption(source);
|
|
127971
|
+
}
|
|
127972
|
+
else {
|
|
127973
|
+
this.showNoResultMessage();
|
|
127974
|
+
}
|
|
127975
|
+
}
|
|
127976
|
+
async showNoResultMessage() {
|
|
127977
|
+
this.clearSearch();
|
|
127978
|
+
ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
127979
|
+
}
|
|
127980
|
+
getFieldLabel() {
|
|
127981
|
+
var _a;
|
|
127982
|
+
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
|
|
127983
|
+
}
|
|
127984
|
+
resetOptions() {
|
|
127985
|
+
this.hideOptions();
|
|
127986
|
+
this._criteria = undefined;
|
|
127987
|
+
this._preSelection = undefined;
|
|
127988
|
+
this.updateVisibleOptions();
|
|
127989
|
+
}
|
|
127990
|
+
//---------------------------------------------
|
|
127991
|
+
// Lifecycle web component
|
|
127992
|
+
//---------------------------------------------
|
|
127993
|
+
componentWillLoad() {
|
|
127994
|
+
if (this.options === undefined) {
|
|
127995
|
+
this.options = [];
|
|
127996
|
+
const optionsTags = this.el.querySelectorAll("option");
|
|
127997
|
+
if (optionsTags) {
|
|
127998
|
+
optionsTags.forEach(e => {
|
|
127999
|
+
let label = e.innerText;
|
|
128000
|
+
let value = e.getAttribute("value");
|
|
128001
|
+
let details = e.getAttribute("details");
|
|
128002
|
+
if (!value) {
|
|
128003
|
+
value = label;
|
|
128004
|
+
}
|
|
128005
|
+
this.options.push({ label, value, details });
|
|
128006
|
+
e.hidden = true;
|
|
128007
|
+
});
|
|
128008
|
+
}
|
|
127650
128009
|
}
|
|
128010
|
+
this.updateSource([]);
|
|
128011
|
+
}
|
|
128012
|
+
componentDidRender() {
|
|
128013
|
+
var _a;
|
|
128014
|
+
if (this._floatingID === undefined) {
|
|
128015
|
+
this._listWrapper.remove();
|
|
128016
|
+
}
|
|
128017
|
+
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
128018
|
+
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
128019
|
+
});
|
|
128020
|
+
this.validateDescriptionValue();
|
|
127651
128021
|
}
|
|
127652
128022
|
componentDidLoad() {
|
|
127653
|
-
CSSVarsUtils.applyVarsTextInput(this.
|
|
128023
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
128024
|
+
this.setInputValue(false);
|
|
128025
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
128026
|
+
window.requestAnimationFrame(() => {
|
|
128027
|
+
if (!Array.isArray(entries) || !entries.length)
|
|
128028
|
+
return;
|
|
128029
|
+
const { clientWidth } = this._listContainer;
|
|
128030
|
+
if (clientWidth > 0 && !!this._listWrapper) {
|
|
128031
|
+
this._listWrapper.style.width = `${clientWidth}px`;
|
|
128032
|
+
}
|
|
128033
|
+
});
|
|
128034
|
+
});
|
|
128035
|
+
}
|
|
128036
|
+
//---------------------------------------------
|
|
128037
|
+
// Event handlers
|
|
128038
|
+
//---------------------------------------------
|
|
128039
|
+
handlerIconClick() {
|
|
128040
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
128041
|
+
}
|
|
128042
|
+
buildNumberArgument(argument) {
|
|
128043
|
+
if (this.isTextSearch) {
|
|
128044
|
+
return NaN;
|
|
128045
|
+
}
|
|
128046
|
+
return Number(argument || undefined);
|
|
128047
|
+
}
|
|
128048
|
+
onTextInputChangeHandler(event) {
|
|
128049
|
+
var _a;
|
|
128050
|
+
this.clearDeboucingTimeout();
|
|
128051
|
+
if (this._startLoading) {
|
|
128052
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128053
|
+
this.onTextInputChangeHandler(event);
|
|
128054
|
+
}, this._deboucingTime);
|
|
128055
|
+
return;
|
|
128056
|
+
}
|
|
128057
|
+
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
128058
|
+
const argumentNumber = this.buildNumberArgument(argument);
|
|
128059
|
+
if (!this._criteria) {
|
|
128060
|
+
this._textInput.value = event.data || argument;
|
|
128061
|
+
}
|
|
128062
|
+
this._criteria = argument;
|
|
128063
|
+
if (argument) {
|
|
128064
|
+
this._showLoading = false;
|
|
128065
|
+
this.clearSource();
|
|
128066
|
+
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
128067
|
+
this._showLoading = true;
|
|
128068
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128069
|
+
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
128070
|
+
}, this._deboucingTime);
|
|
128071
|
+
this.showOptions();
|
|
128072
|
+
}
|
|
128073
|
+
else {
|
|
128074
|
+
this.hideOptions();
|
|
128075
|
+
}
|
|
128076
|
+
}
|
|
128077
|
+
else {
|
|
128078
|
+
this.hideOptions();
|
|
128079
|
+
this._showLoading = false;
|
|
128080
|
+
this.clearSource();
|
|
128081
|
+
}
|
|
128082
|
+
}
|
|
128083
|
+
clearDeboucingTimeout() {
|
|
128084
|
+
if (this._changeDeboucingTimeout) {
|
|
128085
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
128086
|
+
this._changeDeboucingTimeout = null;
|
|
128087
|
+
}
|
|
128088
|
+
}
|
|
128089
|
+
keyDownHandler(event) {
|
|
128090
|
+
this._tabPressed = false;
|
|
128091
|
+
if (event.ctrlKey) {
|
|
128092
|
+
if (event.key === "f" || event.key === "F") {
|
|
128093
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
128094
|
+
//ATENÇÃO: Ctrl + F tem ação específica nos browsers
|
|
128095
|
+
//nesse caso, como vamos abrir o popup de busca avançada,
|
|
128096
|
+
//não é interessante deixar o evento propagar;
|
|
128097
|
+
event.stopPropagation();
|
|
128098
|
+
event.stopImmediatePropagation();
|
|
128099
|
+
event.preventDefault();
|
|
128100
|
+
}
|
|
128101
|
+
}
|
|
128102
|
+
switch (event.key) {
|
|
128103
|
+
case "ArrowDown":
|
|
128104
|
+
this.nextOption();
|
|
128105
|
+
event.stopPropagation();
|
|
128106
|
+
break;
|
|
128107
|
+
case "ArrowUp":
|
|
128108
|
+
this.previousOption();
|
|
128109
|
+
event.stopPropagation();
|
|
128110
|
+
break;
|
|
128111
|
+
case "Enter":
|
|
128112
|
+
this.selectCurrentOption();
|
|
128113
|
+
break;
|
|
128114
|
+
case "Escape":
|
|
128115
|
+
this.cancelPreselection();
|
|
128116
|
+
break;
|
|
128117
|
+
case "Tab":
|
|
128118
|
+
this._tabPressed = true;
|
|
128119
|
+
this.controlListWithOnlyOne();
|
|
128120
|
+
break;
|
|
128121
|
+
}
|
|
128122
|
+
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
128123
|
+
//Por exemplo, quando o usuário dá um Enter, além de selecionar
|
|
128124
|
+
//um valor, também significa que a ateração finalizou,
|
|
128125
|
+
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
128126
|
+
//event.stopPropagation();
|
|
128127
|
+
}
|
|
128128
|
+
onTextInputFocusOutHandler() {
|
|
128129
|
+
if (this.hideErrorOnFocusOut)
|
|
128130
|
+
this.cancelPreselection();
|
|
128131
|
+
}
|
|
128132
|
+
canShowListOptions() {
|
|
128133
|
+
return !this._showLoading && this._visibleOptions.length > 0;
|
|
127654
128134
|
}
|
|
127655
128135
|
render() {
|
|
127656
|
-
|
|
127657
|
-
|
|
128136
|
+
var _a;
|
|
128137
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
128138
|
+
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() }, h("ez-icon", { iconName: "search" })), ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
128139
|
+
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
128140
|
+
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
128141
|
+
&& this._visibleOptions.length === 0
|
|
128142
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
128143
|
+
&& 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)))))));
|
|
127658
128144
|
}
|
|
127659
|
-
;
|
|
127660
|
-
get _elem() { return this; }
|
|
128145
|
+
get el() { return this; }
|
|
127661
128146
|
static get watchers() { return {
|
|
127662
128147
|
"errorMessage": ["observeErrorMessage"],
|
|
127663
|
-
"value": ["observeValue"]
|
|
128148
|
+
"value": ["observeValue"],
|
|
128149
|
+
"options": ["observeOptions"]
|
|
127664
128150
|
}; }
|
|
127665
128151
|
static get style() { return ezSearchCss; }
|
|
127666
128152
|
};
|
|
128153
|
+
var SearchMode;
|
|
128154
|
+
(function (SearchMode) {
|
|
128155
|
+
SearchMode["ADVANCED"] = "ADVANCED";
|
|
128156
|
+
SearchMode["PRELOAD"] = "PRELOAD";
|
|
128157
|
+
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
128158
|
+
})(SearchMode || (SearchMode = {}));
|
|
127667
128159
|
|
|
127668
128160
|
const ezSidebarButtonCss = ":host{position:relative;--ez-sidebar-button--width:6px;--ez-sidebar-button--hover--width:12px;--ez-sidebar-button--height:96px;--ez-sidebar-button--background-color--xlight:var(--background--xlight, #fff);--ez-sidebar-button--background-color--primary:var(--color--primary);--ez-sidebar-button--space--small:var(--space--small, 6px);--ez-sidebar-button--space--medium:var(--space--medium, 12px);--ez-sidebar-button--box-shadow:var(--shadow--small, 0px 0px 16px rgba(0, 38, 111, 0.07));--ez-sidebar-button--hover--box-shadow:var(--shadow--hard, 0px 0px 16px rgba(43, 58, 84, 0.24));--ez-sidebar-button--border--radius-small:var(--border--radius-small);--ez-sidebar-button--border--radius-medium:var(--border--radius-medium)}button{position:absolute;display:flex;background:var(--ez-sidebar-button--background-color--xlight);border:0;border-radius:0 var(--ez-sidebar-button--border--radius-medium) var(--ez-sidebar-button--border--radius-medium) 0;box-shadow:var(--ez-sidebar-button--box-shadow);padding:0;cursor:pointer}span{width:var(--ez-sidebar-button--width);height:var(--ez-sidebar-button--height);margin:var(--ez-sidebar-button--space--medium) var(--ez-sidebar-button--space--small) var(--ez-sidebar-button--space--medium) 0;background:var(--ez-sidebar-button--background-color--primary);border-radius:0 var(--ez-sidebar-button--border--radius-small) var(--ez-sidebar-button--border--radius-small) 0}button:hover{box-shadow:var(--ez-sidebar-button--hover--box-shadow)}button:hover span{width:var(--ez-sidebar-button--hover--width);margin:var(--ez-sidebar-button--space--medium) var(--ez-sidebar-button--space--medium) var(--ez-sidebar-button--space--medium) 0}";
|
|
127669
128161
|
|
|
@@ -127751,15 +128243,24 @@ const EzSkeleton$1 = class extends HTMLElement$1 {
|
|
|
127751
128243
|
static get style() { return ezSkeletonCss; }
|
|
127752
128244
|
};
|
|
127753
128245
|
|
|
127754
|
-
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);padding:var(--space--nano);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow)}";
|
|
128246
|
+
const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);padding:var(--space--nano);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:-webkit-fill-available}";
|
|
127755
128247
|
|
|
127756
128248
|
const SplitItem = class extends HTMLElement$1 {
|
|
127757
128249
|
constructor() {
|
|
127758
128250
|
super();
|
|
127759
128251
|
this.__registerHost();
|
|
128252
|
+
this.label = undefined;
|
|
128253
|
+
this.enableExpand = true;
|
|
128254
|
+
this._expanded = false;
|
|
128255
|
+
}
|
|
128256
|
+
/**
|
|
128257
|
+
* Alterna a visibilidade do painel.
|
|
128258
|
+
*/
|
|
128259
|
+
toggleExpandItem() {
|
|
128260
|
+
this._expanded = !this._expanded;
|
|
127760
128261
|
}
|
|
127761
128262
|
render() {
|
|
127762
|
-
return (h(
|
|
128263
|
+
return (h("div", { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content" }, h("slot", null))));
|
|
127763
128264
|
}
|
|
127764
128265
|
static get style() { return ezSplitItemCss; }
|
|
127765
128266
|
};
|
|
@@ -128441,7 +128942,7 @@ Grid.prototype.destroy = function destroy (immediate) {
|
|
|
128441
128942
|
|
|
128442
128943
|
function index (options) { return new Grid(options); }
|
|
128443
128944
|
|
|
128444
|
-
const ezSplitPanelCss = ".ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
128945
|
+
const ezSplitPanelCss = ":host{height:100%}.ez-split-gutter{cursor:grab;background-color:transparent}";
|
|
128445
128946
|
|
|
128446
128947
|
const SplitPanel = class extends HTMLElement$1 {
|
|
128447
128948
|
constructor() {
|
|
@@ -128449,6 +128950,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128449
128950
|
this.__registerHost();
|
|
128450
128951
|
this._items = [];
|
|
128451
128952
|
this.direction = 'column';
|
|
128953
|
+
this.anchorToExpand = false;
|
|
128452
128954
|
}
|
|
128453
128955
|
componentDidLoad() {
|
|
128454
128956
|
this._panelID = StringUtils$1.generateUUID();
|
|
@@ -128475,7 +128977,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128475
128977
|
getGutters() {
|
|
128476
128978
|
const gutters = {
|
|
128477
128979
|
columnGutters: [],
|
|
128478
|
-
rowGutters: []
|
|
128980
|
+
rowGutters: [],
|
|
128479
128981
|
};
|
|
128480
128982
|
if (!this._items.length) {
|
|
128481
128983
|
return gutters;
|
|
@@ -128485,19 +128987,19 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128485
128987
|
if (index == this._items.length - 1)
|
|
128486
128988
|
return;
|
|
128487
128989
|
let gutterTrack = item.dataset.trackNumber;
|
|
128488
|
-
if (index ===
|
|
128990
|
+
if (index === this._items.length - 1) {
|
|
128489
128991
|
gutterTrack = this._items.length.toString();
|
|
128490
128992
|
}
|
|
128491
128993
|
gutters[proToChange].push({
|
|
128492
128994
|
track: Number(gutterTrack),
|
|
128493
|
-
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`)
|
|
128995
|
+
element: this._element.querySelector(`ez-split-panel[data-panel-id="${this._panelID}"] > [data-item-track="${item.dataset.trackNumber}"]`),
|
|
128494
128996
|
});
|
|
128495
128997
|
});
|
|
128496
128998
|
return gutters;
|
|
128497
128999
|
}
|
|
128498
129000
|
addItemGutter(item) {
|
|
128499
129001
|
const gutter = document.createElement('div');
|
|
128500
|
-
gutter.classList.add(
|
|
129002
|
+
gutter.classList.add('ez-split-gutter');
|
|
128501
129003
|
gutter.classList.add(this.direction);
|
|
128502
129004
|
gutter.dataset.itemTrack = `${item.dataset.trackNumber}`;
|
|
128503
129005
|
gutter.dataset.trackNumber = (Number(item.dataset.trackNumber) + 1).toString();
|
|
@@ -128505,9 +129007,10 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128505
129007
|
}
|
|
128506
129008
|
getElementStyle() {
|
|
128507
129009
|
const style = {
|
|
128508
|
-
|
|
128509
|
-
|
|
128510
|
-
|
|
129010
|
+
display: 'grid',
|
|
129011
|
+
height: '100%',
|
|
129012
|
+
width: '100%',
|
|
129013
|
+
position: this.anchorToExpand ? 'relative' : 'unset',
|
|
128511
129014
|
};
|
|
128512
129015
|
return style;
|
|
128513
129016
|
}
|
|
@@ -128527,7 +129030,7 @@ const SplitPanel = class extends HTMLElement$1 {
|
|
|
128527
129030
|
return template;
|
|
128528
129031
|
}
|
|
128529
129032
|
render() {
|
|
128530
|
-
return
|
|
129033
|
+
return h(Host, { style: this.getElementStyle() });
|
|
128531
129034
|
}
|
|
128532
129035
|
get _element() { return this; }
|
|
128533
129036
|
static get style() { return ezSplitPanelCss; }
|
|
@@ -130581,6 +131084,8 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
130581
131084
|
this.TOP_POSITION_NO_TASKBAR = '32';
|
|
130582
131085
|
this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
|
|
130583
131086
|
this.DEFAULT_HEIGHT = 430;
|
|
131087
|
+
this.FIX_MARGIN = 60;
|
|
131088
|
+
this.FILTER_COLUMN_WIDTH = 330;
|
|
130584
131089
|
this.opened = true;
|
|
130585
131090
|
this.columnName = undefined;
|
|
130586
131091
|
this.columnLabel = undefined;
|
|
@@ -130613,15 +131118,24 @@ const FilterColumn$1 = class extends HTMLElement$1 {
|
|
|
130613
131118
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
130614
131119
|
}
|
|
130615
131120
|
}
|
|
130616
|
-
calculateLeftPosition(
|
|
130617
|
-
|
|
130618
|
-
|
|
131121
|
+
calculateLeftPosition({ leftPosition, fromIcon }) {
|
|
131122
|
+
const leftPositionCalculated = this.calcFilterColumnLeftPosition(leftPosition);
|
|
131123
|
+
if (!fromIcon) {
|
|
131124
|
+
return `${leftPositionCalculated}px`;
|
|
130619
131125
|
}
|
|
130620
131126
|
const difference = this.ezPopoverElement.getBoundingClientRect().left;
|
|
130621
|
-
const
|
|
130622
|
-
const leftResolved = (leftReference + 16) - difference;
|
|
131127
|
+
const leftResolved = (leftPositionCalculated + 16) - difference;
|
|
130623
131128
|
return `${(leftResolved > 0 ? leftResolved : 0)}px`;
|
|
130624
131129
|
}
|
|
131130
|
+
calcFilterColumnLeftPosition(leftReference) {
|
|
131131
|
+
var _a, _b;
|
|
131132
|
+
const gridReference = this.ezPopoverElement.closest("ez-grid");
|
|
131133
|
+
const gridLimit = (_a = gridReference.getBoundingClientRect()) === null || _a === void 0 ? void 0 : _a.right;
|
|
131134
|
+
const popoverDiff = (_b = this.ezPopoverElement.getBoundingClientRect()) === null || _b === void 0 ? void 0 : _b.left;
|
|
131135
|
+
const maxLeft = gridLimit - (this.FILTER_COLUMN_WIDTH + popoverDiff);
|
|
131136
|
+
const leftInt = leftReference - (this.FIX_MARGIN + popoverDiff);
|
|
131137
|
+
return leftInt > maxLeft ? maxLeft : leftInt;
|
|
131138
|
+
}
|
|
130625
131139
|
buildIsTextSearch() {
|
|
130626
131140
|
var _a, _b;
|
|
130627
131141
|
const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : UserInterface.SHORTTEXT;
|
|
@@ -130745,11 +131259,11 @@ const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-ite
|
|
|
130745
131259
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
130746
131260
|
const EzChip = /*@__PURE__*/proxyCustomElement(EzChip$1, [1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"showNativeTooltip":[4,"show-native-tooltip"]}]);
|
|
130747
131261
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"boxBordered":[4,"box-bordered"],"label":[513],"subtitle":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"headerAlign":[513,"header-align"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32]}]);
|
|
130748
|
-
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"limitCharsToSearch":[2,"limit-chars-to-search"],"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"
|
|
131262
|
+
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"limitCharsToSearch":[2,"limit-chars-to-search"],"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"hideErrorOnFocusOut":[4,"hide-error-on-focus-out"],"listOptionsPosition":[16],"isTextSearch":[4,"is-text-search"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
130749
131263
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"canShowError":[516,"can-show-error"]}]);
|
|
130750
131264
|
const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"canShowError":[516,"can-show-error"]}]);
|
|
130751
131265
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"beforeClose":[1040]},[[8,"keydown","handleKeyDown"]]]);
|
|
130752
|
-
const EzDropdown = /*@__PURE__*/proxyCustomElement(EzDropdown$1, [1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]);
|
|
131266
|
+
const EzDropdown = /*@__PURE__*/proxyCustomElement(EzDropdown$1, [1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]},[[4,"click","handleClickOutside"]]]);
|
|
130753
131267
|
const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]);
|
|
130754
131268
|
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"canShowError":[516,"can-show-error"]}]);
|
|
130755
131269
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"]}]);
|
|
@@ -130767,11 +131281,11 @@ const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{
|
|
|
130767
131281
|
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"]}]);
|
|
130768
131282
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
130769
131283
|
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"]]]);
|
|
130770
|
-
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"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"]}]);
|
|
131284
|
+
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"suppressEmptyOption":[4,"suppress-empty-option"],"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"],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]},[[11,"scroll","scrollListener"]]]);
|
|
130771
131285
|
const EzSidebarButton = /*@__PURE__*/proxyCustomElement(EzSidebarButton$1, [1,"ez-sidebar-button"]);
|
|
130772
131286
|
const EzSkeleton = /*@__PURE__*/proxyCustomElement(EzSkeleton$1, [0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]);
|
|
130773
|
-
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [
|
|
130774
|
-
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1]}]);
|
|
131287
|
+
const EzSplitItem = /*@__PURE__*/proxyCustomElement(SplitItem, [4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"_expanded":[32]}]);
|
|
131288
|
+
const EzSplitPanel = /*@__PURE__*/proxyCustomElement(SplitPanel, [0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"]}]);
|
|
130775
131289
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
130776
131290
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"enableResize":[516,"enable-resize"]}]);
|
|
130777
131291
|
const EzTextEdit = /*@__PURE__*/proxyCustomElement(EzTextEdit$1, [1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32]}]);
|