@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-49747.0 → 0.0.0-bugfix-dev-KB-50051.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-grid.cjs.entry.js +3 -0
- package/dist/cjs/ez-search.cjs.entry.js +24 -18
- package/dist/collection/components/ez-grid/ez-grid.js +3 -0
- package/dist/collection/components/ez-search/ez-search.js +24 -18
- package/dist/custom-elements/index.js +27 -18
- package/dist/esm/ez-grid.entry.js +3 -0
- package/dist/esm/ez-search.entry.js +24 -18
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-1dede1b2.entry.js → p-031784b0.entry.js} +1 -1
- package/dist/ezui/p-bf7c0421.entry.js +1 -0
- package/dist/types/components/ez-search/ez-search.d.ts +3 -2
- package/package.json +1 -1
- package/dist/ezui/p-21d595fd.entry.js +0 -1
|
@@ -120767,6 +120767,9 @@ const EzGrid = class {
|
|
|
120767
120767
|
return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
|
|
120768
120768
|
}
|
|
120769
120769
|
observeConfig(config) {
|
|
120770
|
+
if (!config) {
|
|
120771
|
+
return;
|
|
120772
|
+
}
|
|
120770
120773
|
this._gridController.setColumnsState(config.columns);
|
|
120771
120774
|
}
|
|
120772
120775
|
updatePaginationTooltip() {
|
|
@@ -16,9 +16,9 @@ const EzSearch = class {
|
|
|
16
16
|
constructor(hostRef) {
|
|
17
17
|
index.registerInstance(this, hostRef);
|
|
18
18
|
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
19
|
-
this.
|
|
20
|
-
this._limitCharsToSearch =
|
|
21
|
-
this.
|
|
19
|
+
this._changeDeboucingTimeout = null;
|
|
20
|
+
this._limitCharsToSearch = 3;
|
|
21
|
+
this._deboucingTime = 300;
|
|
22
22
|
this._maxWidthValue = 0;
|
|
23
23
|
this._tabPressed = false;
|
|
24
24
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
@@ -218,7 +218,7 @@ const EzSearch = class {
|
|
|
218
218
|
if (typeof value === "string" || value instanceof String) {
|
|
219
219
|
return this._visibleOptions.find(o => o.value === value);
|
|
220
220
|
}
|
|
221
|
-
return value;
|
|
221
|
+
return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
222
222
|
}
|
|
223
223
|
updateVisibleOptions() {
|
|
224
224
|
let opts = this._source || [];
|
|
@@ -316,7 +316,7 @@ const EzSearch = class {
|
|
|
316
316
|
}
|
|
317
317
|
scrollToOption(opt) {
|
|
318
318
|
window.requestAnimationFrame(() => {
|
|
319
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
319
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${this.replaceHighlight(opt.value).replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
320
320
|
if (liElem)
|
|
321
321
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
322
322
|
});
|
|
@@ -359,15 +359,22 @@ const EzSearch = class {
|
|
|
359
359
|
this._source = [];
|
|
360
360
|
this.updateVisibleOptions();
|
|
361
361
|
}
|
|
362
|
+
replaceHighlight(value) {
|
|
363
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
364
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
365
|
+
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
366
|
+
}
|
|
362
367
|
selectOption(newOption) {
|
|
363
368
|
var _a, _b;
|
|
364
369
|
const currentValue = this.getSelectedOption(this.value);
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
370
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
371
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
372
|
+
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
373
|
+
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
368
374
|
this.value = adjustedOpt;
|
|
369
375
|
}
|
|
370
376
|
else {
|
|
377
|
+
this.setInputValue();
|
|
371
378
|
this.resetOptions();
|
|
372
379
|
}
|
|
373
380
|
this._visibleOptions = [];
|
|
@@ -391,7 +398,7 @@ const EzSearch = class {
|
|
|
391
398
|
else {
|
|
392
399
|
window.setTimeout(() => {
|
|
393
400
|
this.setInputValue();
|
|
394
|
-
}, this.
|
|
401
|
+
}, this._deboucingTime);
|
|
395
402
|
}
|
|
396
403
|
this.resetOptions();
|
|
397
404
|
}
|
|
@@ -477,7 +484,7 @@ const EzSearch = class {
|
|
|
477
484
|
return;
|
|
478
485
|
}
|
|
479
486
|
this._lookupMode = true;
|
|
480
|
-
this.value = value;
|
|
487
|
+
this.value = Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
481
488
|
}
|
|
482
489
|
loadOptionValue(argument) {
|
|
483
490
|
var _a;
|
|
@@ -565,9 +572,9 @@ const EzSearch = class {
|
|
|
565
572
|
var _a;
|
|
566
573
|
this.clearDeboucingTimeout();
|
|
567
574
|
if (this._startLoading) {
|
|
568
|
-
this.
|
|
575
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
569
576
|
this.onTextInputChangeHandler(event);
|
|
570
|
-
}, this.
|
|
577
|
+
}, this._deboucingTime);
|
|
571
578
|
return;
|
|
572
579
|
}
|
|
573
580
|
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
@@ -581,9 +588,9 @@ const EzSearch = class {
|
|
|
581
588
|
this.clearSource();
|
|
582
589
|
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
583
590
|
this._showLoading = true;
|
|
584
|
-
this.
|
|
591
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
585
592
|
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
586
|
-
}, this.
|
|
593
|
+
}, this._deboucingTime);
|
|
587
594
|
this.showOptions();
|
|
588
595
|
}
|
|
589
596
|
else {
|
|
@@ -597,9 +604,9 @@ const EzSearch = class {
|
|
|
597
604
|
}
|
|
598
605
|
}
|
|
599
606
|
clearDeboucingTimeout() {
|
|
600
|
-
if (this.
|
|
601
|
-
window.clearTimeout(this.
|
|
602
|
-
this.
|
|
607
|
+
if (this._changeDeboucingTimeout) {
|
|
608
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
609
|
+
this._changeDeboucingTimeout = null;
|
|
603
610
|
}
|
|
604
611
|
}
|
|
605
612
|
keyDownHandler(event) {
|
|
@@ -650,7 +657,6 @@ const EzSearch = class {
|
|
|
650
657
|
}
|
|
651
658
|
render() {
|
|
652
659
|
var _a;
|
|
653
|
-
console.log(this.optionLoader);
|
|
654
660
|
core.ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
655
661
|
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.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 }, index.h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: "search" })), ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
656
662
|
? index.h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, index.h("ez-icon", { iconName: "close" }))
|
|
@@ -94,6 +94,9 @@ export class EzGrid {
|
|
|
94
94
|
return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
|
|
95
95
|
}
|
|
96
96
|
observeConfig(config) {
|
|
97
|
+
if (!config) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
97
100
|
this._gridController.setColumnsState(config.columns);
|
|
98
101
|
}
|
|
99
102
|
updatePaginationTooltip() {
|
|
@@ -5,9 +5,9 @@ import { ApplicationUtils } from "../../utils";
|
|
|
5
5
|
import { REQUIRED_INFO } from "../../utils/constants";
|
|
6
6
|
export class EzSearch {
|
|
7
7
|
constructor() {
|
|
8
|
-
this.
|
|
9
|
-
this._limitCharsToSearch =
|
|
10
|
-
this.
|
|
8
|
+
this._changeDeboucingTimeout = null;
|
|
9
|
+
this._limitCharsToSearch = 3;
|
|
10
|
+
this._deboucingTime = 300;
|
|
11
11
|
this._maxWidthValue = 0;
|
|
12
12
|
this._tabPressed = false;
|
|
13
13
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
@@ -207,7 +207,7 @@ export class EzSearch {
|
|
|
207
207
|
if (typeof value === "string" || value instanceof String) {
|
|
208
208
|
return this._visibleOptions.find(o => o.value === value);
|
|
209
209
|
}
|
|
210
|
-
return value;
|
|
210
|
+
return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
211
211
|
}
|
|
212
212
|
updateVisibleOptions() {
|
|
213
213
|
let opts = this._source || [];
|
|
@@ -305,7 +305,7 @@ export class EzSearch {
|
|
|
305
305
|
}
|
|
306
306
|
scrollToOption(opt) {
|
|
307
307
|
window.requestAnimationFrame(() => {
|
|
308
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
308
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${this.replaceHighlight(opt.value).replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
309
309
|
if (liElem)
|
|
310
310
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
311
311
|
});
|
|
@@ -348,15 +348,22 @@ export class EzSearch {
|
|
|
348
348
|
this._source = [];
|
|
349
349
|
this.updateVisibleOptions();
|
|
350
350
|
}
|
|
351
|
+
replaceHighlight(value) {
|
|
352
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
353
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
354
|
+
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
355
|
+
}
|
|
351
356
|
selectOption(newOption) {
|
|
352
357
|
var _a, _b;
|
|
353
358
|
const currentValue = this.getSelectedOption(this.value);
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
359
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
360
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
361
|
+
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
362
|
+
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
357
363
|
this.value = adjustedOpt;
|
|
358
364
|
}
|
|
359
365
|
else {
|
|
366
|
+
this.setInputValue();
|
|
360
367
|
this.resetOptions();
|
|
361
368
|
}
|
|
362
369
|
this._visibleOptions = [];
|
|
@@ -380,7 +387,7 @@ export class EzSearch {
|
|
|
380
387
|
else {
|
|
381
388
|
window.setTimeout(() => {
|
|
382
389
|
this.setInputValue();
|
|
383
|
-
}, this.
|
|
390
|
+
}, this._deboucingTime);
|
|
384
391
|
}
|
|
385
392
|
this.resetOptions();
|
|
386
393
|
}
|
|
@@ -466,7 +473,7 @@ export class EzSearch {
|
|
|
466
473
|
return;
|
|
467
474
|
}
|
|
468
475
|
this._lookupMode = true;
|
|
469
|
-
this.value = value;
|
|
476
|
+
this.value = Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
470
477
|
}
|
|
471
478
|
loadOptionValue(argument) {
|
|
472
479
|
var _a;
|
|
@@ -554,9 +561,9 @@ export class EzSearch {
|
|
|
554
561
|
var _a;
|
|
555
562
|
this.clearDeboucingTimeout();
|
|
556
563
|
if (this._startLoading) {
|
|
557
|
-
this.
|
|
564
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
558
565
|
this.onTextInputChangeHandler(event);
|
|
559
|
-
}, this.
|
|
566
|
+
}, this._deboucingTime);
|
|
560
567
|
return;
|
|
561
568
|
}
|
|
562
569
|
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
@@ -570,9 +577,9 @@ export class EzSearch {
|
|
|
570
577
|
this.clearSource();
|
|
571
578
|
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
572
579
|
this._showLoading = true;
|
|
573
|
-
this.
|
|
580
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
574
581
|
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
575
|
-
}, this.
|
|
582
|
+
}, this._deboucingTime);
|
|
576
583
|
this.showOptions();
|
|
577
584
|
}
|
|
578
585
|
else {
|
|
@@ -586,9 +593,9 @@ export class EzSearch {
|
|
|
586
593
|
}
|
|
587
594
|
}
|
|
588
595
|
clearDeboucingTimeout() {
|
|
589
|
-
if (this.
|
|
590
|
-
window.clearTimeout(this.
|
|
591
|
-
this.
|
|
596
|
+
if (this._changeDeboucingTimeout) {
|
|
597
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
598
|
+
this._changeDeboucingTimeout = null;
|
|
592
599
|
}
|
|
593
600
|
}
|
|
594
601
|
keyDownHandler(event) {
|
|
@@ -639,7 +646,6 @@ export class EzSearch {
|
|
|
639
646
|
}
|
|
640
647
|
render() {
|
|
641
648
|
var _a;
|
|
642
|
-
console.log(this.optionLoader);
|
|
643
649
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
644
650
|
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)
|
|
645
651
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
@@ -125680,6 +125680,9 @@ const EzGrid$1 = class extends HTMLElement$1 {
|
|
|
125680
125680
|
return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
|
|
125681
125681
|
}
|
|
125682
125682
|
observeConfig(config) {
|
|
125683
|
+
if (!config) {
|
|
125684
|
+
return;
|
|
125685
|
+
}
|
|
125683
125686
|
this._gridController.setColumnsState(config.columns);
|
|
125684
125687
|
}
|
|
125685
125688
|
updatePaginationTooltip() {
|
|
@@ -127645,9 +127648,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127645
127648
|
this.__registerHost();
|
|
127646
127649
|
this.__attachShadow();
|
|
127647
127650
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
127648
|
-
this.
|
|
127649
|
-
this._limitCharsToSearch =
|
|
127650
|
-
this.
|
|
127651
|
+
this._changeDeboucingTimeout = null;
|
|
127652
|
+
this._limitCharsToSearch = 3;
|
|
127653
|
+
this._deboucingTime = 300;
|
|
127651
127654
|
this._maxWidthValue = 0;
|
|
127652
127655
|
this._tabPressed = false;
|
|
127653
127656
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
@@ -127847,7 +127850,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127847
127850
|
if (typeof value === "string" || value instanceof String) {
|
|
127848
127851
|
return this._visibleOptions.find(o => o.value === value);
|
|
127849
127852
|
}
|
|
127850
|
-
return value;
|
|
127853
|
+
return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
127851
127854
|
}
|
|
127852
127855
|
updateVisibleOptions() {
|
|
127853
127856
|
let opts = this._source || [];
|
|
@@ -127945,7 +127948,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127945
127948
|
}
|
|
127946
127949
|
scrollToOption(opt) {
|
|
127947
127950
|
window.requestAnimationFrame(() => {
|
|
127948
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127951
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${this.replaceHighlight(opt.value).replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
127949
127952
|
if (liElem)
|
|
127950
127953
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
127951
127954
|
});
|
|
@@ -127988,15 +127991,22 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
127988
127991
|
this._source = [];
|
|
127989
127992
|
this.updateVisibleOptions();
|
|
127990
127993
|
}
|
|
127994
|
+
replaceHighlight(value) {
|
|
127995
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
127996
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
127997
|
+
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
127998
|
+
}
|
|
127991
127999
|
selectOption(newOption) {
|
|
127992
128000
|
var _a, _b;
|
|
127993
128001
|
const currentValue = this.getSelectedOption(this.value);
|
|
127994
|
-
|
|
127995
|
-
|
|
127996
|
-
|
|
128002
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
128003
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
128004
|
+
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
128005
|
+
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
127997
128006
|
this.value = adjustedOpt;
|
|
127998
128007
|
}
|
|
127999
128008
|
else {
|
|
128009
|
+
this.setInputValue();
|
|
128000
128010
|
this.resetOptions();
|
|
128001
128011
|
}
|
|
128002
128012
|
this._visibleOptions = [];
|
|
@@ -128020,7 +128030,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128020
128030
|
else {
|
|
128021
128031
|
window.setTimeout(() => {
|
|
128022
128032
|
this.setInputValue();
|
|
128023
|
-
}, this.
|
|
128033
|
+
}, this._deboucingTime);
|
|
128024
128034
|
}
|
|
128025
128035
|
this.resetOptions();
|
|
128026
128036
|
}
|
|
@@ -128106,7 +128116,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128106
128116
|
return;
|
|
128107
128117
|
}
|
|
128108
128118
|
this._lookupMode = true;
|
|
128109
|
-
this.value = value;
|
|
128119
|
+
this.value = Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
128110
128120
|
}
|
|
128111
128121
|
loadOptionValue(argument) {
|
|
128112
128122
|
var _a;
|
|
@@ -128194,9 +128204,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128194
128204
|
var _a;
|
|
128195
128205
|
this.clearDeboucingTimeout();
|
|
128196
128206
|
if (this._startLoading) {
|
|
128197
|
-
this.
|
|
128207
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128198
128208
|
this.onTextInputChangeHandler(event);
|
|
128199
|
-
}, this.
|
|
128209
|
+
}, this._deboucingTime);
|
|
128200
128210
|
return;
|
|
128201
128211
|
}
|
|
128202
128212
|
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
@@ -128210,9 +128220,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128210
128220
|
this.clearSource();
|
|
128211
128221
|
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
128212
128222
|
this._showLoading = true;
|
|
128213
|
-
this.
|
|
128223
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
128214
128224
|
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
128215
|
-
}, this.
|
|
128225
|
+
}, this._deboucingTime);
|
|
128216
128226
|
this.showOptions();
|
|
128217
128227
|
}
|
|
128218
128228
|
else {
|
|
@@ -128226,9 +128236,9 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128226
128236
|
}
|
|
128227
128237
|
}
|
|
128228
128238
|
clearDeboucingTimeout() {
|
|
128229
|
-
if (this.
|
|
128230
|
-
window.clearTimeout(this.
|
|
128231
|
-
this.
|
|
128239
|
+
if (this._changeDeboucingTimeout) {
|
|
128240
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
128241
|
+
this._changeDeboucingTimeout = null;
|
|
128232
128242
|
}
|
|
128233
128243
|
}
|
|
128234
128244
|
keyDownHandler(event) {
|
|
@@ -128279,7 +128289,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128279
128289
|
}
|
|
128280
128290
|
render() {
|
|
128281
128291
|
var _a;
|
|
128282
|
-
console.log(this.optionLoader);
|
|
128283
128292
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
128284
128293
|
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)
|
|
128285
128294
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
@@ -120763,6 +120763,9 @@ const EzGrid = class {
|
|
|
120763
120763
|
return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
|
|
120764
120764
|
}
|
|
120765
120765
|
observeConfig(config) {
|
|
120766
|
+
if (!config) {
|
|
120767
|
+
return;
|
|
120768
|
+
}
|
|
120766
120769
|
this._gridController.setColumnsState(config.columns);
|
|
120767
120770
|
}
|
|
120768
120771
|
updatePaginationTooltip() {
|
|
@@ -12,9 +12,9 @@ const EzSearch = class {
|
|
|
12
12
|
constructor(hostRef) {
|
|
13
13
|
registerInstance(this, hostRef);
|
|
14
14
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
15
|
-
this.
|
|
16
|
-
this._limitCharsToSearch =
|
|
17
|
-
this.
|
|
15
|
+
this._changeDeboucingTimeout = null;
|
|
16
|
+
this._limitCharsToSearch = 3;
|
|
17
|
+
this._deboucingTime = 300;
|
|
18
18
|
this._maxWidthValue = 0;
|
|
19
19
|
this._tabPressed = false;
|
|
20
20
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
@@ -214,7 +214,7 @@ const EzSearch = class {
|
|
|
214
214
|
if (typeof value === "string" || value instanceof String) {
|
|
215
215
|
return this._visibleOptions.find(o => o.value === value);
|
|
216
216
|
}
|
|
217
|
-
return value;
|
|
217
|
+
return Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
218
218
|
}
|
|
219
219
|
updateVisibleOptions() {
|
|
220
220
|
let opts = this._source || [];
|
|
@@ -312,7 +312,7 @@ const EzSearch = class {
|
|
|
312
312
|
}
|
|
313
313
|
scrollToOption(opt) {
|
|
314
314
|
window.requestAnimationFrame(() => {
|
|
315
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
315
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`div#item_${this.replaceHighlight(opt.value).replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
316
316
|
if (liElem)
|
|
317
317
|
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
318
318
|
});
|
|
@@ -355,15 +355,22 @@ const EzSearch = class {
|
|
|
355
355
|
this._source = [];
|
|
356
356
|
this.updateVisibleOptions();
|
|
357
357
|
}
|
|
358
|
+
replaceHighlight(value) {
|
|
359
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
360
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
361
|
+
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
362
|
+
}
|
|
358
363
|
selectOption(newOption) {
|
|
359
364
|
var _a, _b;
|
|
360
365
|
const currentValue = this.getSelectedOption(this.value);
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
366
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
367
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
368
|
+
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
369
|
+
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
364
370
|
this.value = adjustedOpt;
|
|
365
371
|
}
|
|
366
372
|
else {
|
|
373
|
+
this.setInputValue();
|
|
367
374
|
this.resetOptions();
|
|
368
375
|
}
|
|
369
376
|
this._visibleOptions = [];
|
|
@@ -387,7 +394,7 @@ const EzSearch = class {
|
|
|
387
394
|
else {
|
|
388
395
|
window.setTimeout(() => {
|
|
389
396
|
this.setInputValue();
|
|
390
|
-
}, this.
|
|
397
|
+
}, this._deboucingTime);
|
|
391
398
|
}
|
|
392
399
|
this.resetOptions();
|
|
393
400
|
}
|
|
@@ -473,7 +480,7 @@ const EzSearch = class {
|
|
|
473
480
|
return;
|
|
474
481
|
}
|
|
475
482
|
this._lookupMode = true;
|
|
476
|
-
this.value = value;
|
|
483
|
+
this.value = Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: this.replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
477
484
|
}
|
|
478
485
|
loadOptionValue(argument) {
|
|
479
486
|
var _a;
|
|
@@ -561,9 +568,9 @@ const EzSearch = class {
|
|
|
561
568
|
var _a;
|
|
562
569
|
this.clearDeboucingTimeout();
|
|
563
570
|
if (this._startLoading) {
|
|
564
|
-
this.
|
|
571
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
565
572
|
this.onTextInputChangeHandler(event);
|
|
566
|
-
}, this.
|
|
573
|
+
}, this._deboucingTime);
|
|
567
574
|
return;
|
|
568
575
|
}
|
|
569
576
|
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
@@ -577,9 +584,9 @@ const EzSearch = class {
|
|
|
577
584
|
this.clearSource();
|
|
578
585
|
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
579
586
|
this._showLoading = true;
|
|
580
|
-
this.
|
|
587
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
581
588
|
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
582
|
-
}, this.
|
|
589
|
+
}, this._deboucingTime);
|
|
583
590
|
this.showOptions();
|
|
584
591
|
}
|
|
585
592
|
else {
|
|
@@ -593,9 +600,9 @@ const EzSearch = class {
|
|
|
593
600
|
}
|
|
594
601
|
}
|
|
595
602
|
clearDeboucingTimeout() {
|
|
596
|
-
if (this.
|
|
597
|
-
window.clearTimeout(this.
|
|
598
|
-
this.
|
|
603
|
+
if (this._changeDeboucingTimeout) {
|
|
604
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
605
|
+
this._changeDeboucingTimeout = null;
|
|
599
606
|
}
|
|
600
607
|
}
|
|
601
608
|
keyDownHandler(event) {
|
|
@@ -646,7 +653,6 @@ const EzSearch = class {
|
|
|
646
653
|
}
|
|
647
654
|
render() {
|
|
648
655
|
var _a;
|
|
649
|
-
console.log(this.optionLoader);
|
|
650
656
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
651
657
|
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)
|
|
652
658
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-23a36bb6.js";export{s as setNonce}from"./p-23a36bb6.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o(JSON.parse('[["p-1dede1b2",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"useEnterLikeTab":[4,"use-enter-like-tab"],"recordsValidator":[16],"canEdit":[4,"can-edit"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"locateColumn":[64],"filterColumns":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["p-6e429cff",[[1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32],"disableItem":[64],"openGuideNavidator":[64],"enableItem":[64],"updateItem":[64],"getItem":[64],"getCurrentPath":[64],"selectGuide":[64],"getParent":[64]}]]],["p-8e7031a0",[[1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540]}]]],["p-99ead599",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"showActions":[64],"isOpened":[64]}]]],["p-1e7a8633",[[1,"ez-breadcrumb",{"items":[1040],"fillMode":[1025,"fill-mode"],"maxItems":[1026,"max-items"],"positionEllipsis":[1026,"position-ellipsis"],"visibleItems":[32],"hiddenItems":[32],"showDropdown":[32],"collapseConfigPosition":[32]}]]],["p-49456b34",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"beforeClose":[1040],"show":[64]},[[8,"keydown","handleKeyDown"]]]]],["p-58fae29b",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]},[[8,"keydown","handleKeyDown"]]]]],["p-b9fbf4e7",[[1,"ez-split-button",{"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"show":[32],"setBlur":[64],"setLeftButtonFocus":[64],"setRightButtonFocus":[64]},[[2,"click","clickListener"]]]]],["p-3376ad44",[[4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]]],["p-1f50fa05",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["p-650e4b6d",[[1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]]],["p-17be134a",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"showNativeTooltip":[4,"show-native-tooltip"],"setFocus":[64],"setBlur":[64]}]]],["p-555c9018",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["p-bc2f844e",[[0,"ez-application"]]],["p-5ed81457",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["p-5e1d036e",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"heightMode":[1,"height-mode"],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"],"scrim":[1]}]]],["p-8c82374d",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]},[[8,"keydown","handleKeyDown"]]]]],["p-9f5fa3f9",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["p-85c8baae",[[0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]]],["p-d7d7423a",[[0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"],"rebuildLayout":[64]}]]],["p-8df1ca33",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["p-44caad9a",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["p-cc2dc4f4",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["p-0447d17c",[[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],"showHide":[64],"applyFocusTextEdit":[64],"cancelEdition":[64]}]]],["p-bae3d0aa",[[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],"getValueAsync":[64],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"clearValue":[64]},[[11,"scroll","scrollListener"]]]]],["p-e85c48d7",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"canShowError":[516,"can-show-error"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["p-b567fa8c",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"getValueAsync":[64]}]]],["p-a80b1287",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"],"updatePosition":[64],"show":[64],"showUnder":[64],"hide":[64]}]]],["p-8defa6d3",[[1,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64],"removeSelection":[64]}]]],["p-0306dff7",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"fitHorizontal":[64],"hide":[64]},[[11,"scroll","scrollListener"]]]]],["p-5bd5e68f",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"password":[4],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["p-784fe207",[[2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32],"clearFilteredOptions":[64]}]]],["p-baf80b13",[[0,"filter-column",{"opened":[4],"columnName":[1,"column-name"],"columnLabel":[1,"column-label"],"gridHeaderHidden":[4,"grid-header-hidden"],"noHeaderTaskBar":[1028,"no-header-task-bar"],"dataSource":[16],"dataUnit":[16],"options":[1040],"selectedItems":[32],"fieldDescriptor":[32],"useOptions":[32],"isTextSearch":[32],"hide":[64],"show":[64]}]]],["p-9f1e89c9",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"canShowError":[516,"can-show-error"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"getValueAsync":[64]}]]],["p-af95cd16",[[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"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"getValueAsync":[64]}]]],["p-072e6347",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]},[[4,"click","handleClickOutside"]]]]],["p-9050d2cd",[[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"],"appendTextToSelection":[64],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["p-77a4bd35",[[1,"ez-upload",{"label":[1],"subtitle":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["p-20ec22c0",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["p-a08b309b",[[1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"_tree":[32],"_waintingForLoad":[32],"selectItem":[64],"openItem":[64],"disableItem":[64],"enableItem":[64],"addChild":[64],"applyFilter":[64],"updateItem":[64],"getItem":[64],"getCurrentPath":[64],"getParent":[64]},[[2,"keydown","onKeyDownListener"]]],[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"]]],[1,"ez-sidebar-button"]]],["p-21d595fd",[[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],"getValueAsync":[64],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"clearValue":[64]},[[11,"scroll","scrollListener"]]]]],["p-bf79aaa1",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4],"getMode":[64],"setFocus":[64]}]]],["p-7bc07c31",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["p-b041333c",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]},[[2,"click","clickListener"]]]]],["p-7af81663",[[0,"multi-selection-box-message",{"message":[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"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"setValue":[64],"endSearch":[64]}],[1,"ez-card-item",{"item":[16],"enableKey":[4,"enable-key"]}]]],["p-db77a984",[[2,"ez-form-view",{"fields":[16],"showUp":[64]}]]],["p-2a1a0e04",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"validate":[64]}]]]]'),e)));
|
|
1
|
+
import{p as e,b as o}from"./p-23a36bb6.js";export{s as setNonce}from"./p-23a36bb6.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o(JSON.parse('[["p-031784b0",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"useEnterLikeTab":[4,"use-enter-like-tab"],"recordsValidator":[16],"canEdit":[4,"can-edit"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"locateColumn":[64],"filterColumns":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["p-6e429cff",[[1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32],"disableItem":[64],"openGuideNavidator":[64],"enableItem":[64],"updateItem":[64],"getItem":[64],"getCurrentPath":[64],"selectGuide":[64],"getParent":[64]}]]],["p-8e7031a0",[[1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540]}]]],["p-99ead599",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"showActions":[64],"isOpened":[64]}]]],["p-1e7a8633",[[1,"ez-breadcrumb",{"items":[1040],"fillMode":[1025,"fill-mode"],"maxItems":[1026,"max-items"],"positionEllipsis":[1026,"position-ellipsis"],"visibleItems":[32],"hiddenItems":[32],"showDropdown":[32],"collapseConfigPosition":[32]}]]],["p-49456b34",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"beforeClose":[1040],"show":[64]},[[8,"keydown","handleKeyDown"]]]]],["p-58fae29b",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]},[[8,"keydown","handleKeyDown"]]]]],["p-b9fbf4e7",[[1,"ez-split-button",{"enabled":[516],"iconName":[513,"icon-name"],"image":[513],"items":[16],"label":[513],"leftTitle":[513,"left-title"],"rightTitle":[513,"right-title"],"mode":[513],"size":[513],"show":[32],"setBlur":[64],"setLeftButtonFocus":[64],"setRightButtonFocus":[64]},[[2,"click","clickListener"]]]]],["p-3376ad44",[[4,"ez-split-item",{"label":[1],"enableExpand":[516,"enable-expand"],"size":[1],"_expanded":[32]}]]],["p-1f50fa05",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["p-650e4b6d",[[1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]]],["p-17be134a",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"showNativeTooltip":[4,"show-native-tooltip"],"setFocus":[64],"setBlur":[64]}]]],["p-555c9018",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["p-bc2f844e",[[0,"ez-application"]]],["p-5ed81457",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["p-5e1d036e",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"heightMode":[1,"height-mode"],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"],"scrim":[1]}]]],["p-8c82374d",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]},[[8,"keydown","handleKeyDown"]]]]],["p-9f5fa3f9",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["p-85c8baae",[[0,"ez-skeleton",{"count":[2],"variant":[1],"width":[1],"height":[1],"marginBottom":[1,"margin-bottom"],"animation":[1]}]]],["p-d7d7423a",[[0,"ez-split-panel",{"direction":[1],"anchorToExpand":[4,"anchor-to-expand"],"rebuildLayout":[64]}]]],["p-8df1ca33",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["p-44caad9a",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["p-cc2dc4f4",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["p-0447d17c",[[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],"showHide":[64],"applyFocusTextEdit":[64],"cancelEdition":[64]}]]],["p-bae3d0aa",[[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],"getValueAsync":[64],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"clearValue":[64]},[[11,"scroll","scrollListener"]]]]],["p-e85c48d7",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"canShowError":[516,"can-show-error"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["p-b567fa8c",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"getValueAsync":[64]}]]],["p-a80b1287",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"],"updatePosition":[64],"show":[64],"showUnder":[64],"hide":[64]}]]],["p-8defa6d3",[[1,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64],"removeSelection":[64]}]]],["p-0306dff7",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"fitHorizontal":[64],"hide":[64]},[[11,"scroll","scrollListener"]]]]],["p-5bd5e68f",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"password":[4],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["p-784fe207",[[2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[1040],"isTextSearch":[4,"is-text-search"],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32],"clearFilteredOptions":[64]}]]],["p-baf80b13",[[0,"filter-column",{"opened":[4],"columnName":[1,"column-name"],"columnLabel":[1,"column-label"],"gridHeaderHidden":[4,"grid-header-hidden"],"noHeaderTaskBar":[1028,"no-header-task-bar"],"dataSource":[16],"dataUnit":[16],"options":[1040],"selectedItems":[32],"fieldDescriptor":[32],"useOptions":[32],"isTextSearch":[32],"hide":[64],"show":[64]}]]],["p-9f1e89c9",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"canShowError":[516,"can-show-error"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"getValueAsync":[64]}]]],["p-af95cd16",[[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"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"getValueAsync":[64]}]]],["p-072e6347",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]},[[4,"click","handleClickOutside"]]]]],["p-9050d2cd",[[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"],"appendTextToSelection":[64],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["p-77a4bd35",[[1,"ez-upload",{"label":[1],"subtitle":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["p-20ec22c0",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["p-a08b309b",[[1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"_tree":[32],"_waintingForLoad":[32],"selectItem":[64],"openItem":[64],"disableItem":[64],"enableItem":[64],"addChild":[64],"applyFilter":[64],"updateItem":[64],"getItem":[64],"getCurrentPath":[64],"getParent":[64]},[[2,"keydown","onKeyDownListener"]]],[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"]]],[1,"ez-sidebar-button"]]],["p-bf7c0421",[[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],"getValueAsync":[64],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"clearValue":[64]},[[11,"scroll","scrollListener"]]]]],["p-bf79aaa1",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4],"getMode":[64],"setFocus":[64]}]]],["p-7bc07c31",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["p-b041333c",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]},[[2,"click","clickListener"]]]]],["p-7af81663",[[0,"multi-selection-box-message",{"message":[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"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"setValue":[64],"endSearch":[64]}],[1,"ez-card-item",{"item":[16],"enableKey":[4,"enable-key"]}]]],["p-db77a984",[[2,"ez-form-view",{"fields":[16],"showUp":[64]}]]],["p-2a1a0e04",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"validate":[64]}]]]]'),e)));
|