@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-66441.0 → 0.0.0-bugfix-dev-KB-67199.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 -2
- package/dist/cjs/ez-search.cjs.entry.js +13 -24
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +3 -2
- package/dist/collection/components/ez-search/ez-search.js +13 -24
- package/dist/custom-elements/index.js +16 -26
- package/dist/esm/ez-grid.entry.js +3 -2
- package/dist/esm/ez-search.entry.js +13 -24
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-1c462106.entry.js +1 -0
- package/dist/ezui/{p-e252a728.entry.js → p-7c4d02d0.entry.js} +1 -1
- package/dist/types/components/ez-search/ez-search.d.ts +0 -2
- package/package.json +1 -1
- package/dist/ezui/p-b283351d.entry.js +0 -1
|
@@ -120422,9 +120422,11 @@ class AgGridController {
|
|
|
120422
120422
|
//Existem colunas implícitas que não tem estado, essas colunas são sempre as primeiras.
|
|
120423
120423
|
//Como vamos reordenar, precisamos considerar o deslocamento provocado por elas.
|
|
120424
120424
|
const columnsOffset = colDef.length - columns.length;
|
|
120425
|
+
this._gridConfig = state;
|
|
120425
120426
|
let sort = [];
|
|
120426
120427
|
state === null || state === void 0 ? void 0 : state.forEach((cfgColumn, index) => {
|
|
120427
|
-
|
|
120428
|
+
var _a;
|
|
120429
|
+
const colWidth = (_a = this._gridOptions.columnApi.getColumn(cfgColumn.name)) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
120428
120430
|
this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
|
|
120429
120431
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
120430
120432
|
visibleColumns.push(cfgColumn.name);
|
|
@@ -120439,7 +120441,6 @@ class AgGridController {
|
|
|
120439
120441
|
state: sort,
|
|
120440
120442
|
defaultState: { sort: null },
|
|
120441
120443
|
});
|
|
120442
|
-
this._gridConfig = state;
|
|
120443
120444
|
}
|
|
120444
120445
|
getAdaptiveWidth(width) {
|
|
120445
120446
|
const widthGrid = this._container.clientWidth;
|
|
@@ -53,31 +53,25 @@ const EzSearch = class {
|
|
|
53
53
|
var _a;
|
|
54
54
|
if (this._textInput) {
|
|
55
55
|
this._textInput.errorMessage = this.errorMessage;
|
|
56
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())
|
|
56
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
57
57
|
this.setInputValue();
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
-
validateNewValue(newValue, oldValue) {
|
|
62
|
-
if (typeof newValue == 'string' && typeof oldValue == 'object' && newValue === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
63
|
-
return false;
|
|
64
|
-
if (typeof newValue == 'object' && typeof oldValue == 'string' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === oldValue)
|
|
65
|
-
return false;
|
|
66
|
-
if (typeof newValue == 'object' && typeof oldValue == 'object' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
67
|
-
return false;
|
|
68
|
-
return true;
|
|
69
|
-
}
|
|
70
61
|
async observeValue(newValue, oldValue) {
|
|
71
|
-
if (this._textInput && newValue != oldValue
|
|
62
|
+
if (this._textInput && newValue != oldValue) {
|
|
72
63
|
try {
|
|
73
64
|
if (typeof newValue === "string") {
|
|
74
65
|
await this.handleValueAsString(newValue);
|
|
75
66
|
return;
|
|
76
67
|
}
|
|
77
68
|
const newValueSelected = this.getSelectedOption(newValue);
|
|
78
|
-
const
|
|
69
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
70
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
79
71
|
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
80
|
-
this.
|
|
72
|
+
this.value = newValueSelected;
|
|
73
|
+
}
|
|
74
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
81
75
|
this.setInputValue();
|
|
82
76
|
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
83
77
|
if (!this._lookupMode) {
|
|
@@ -161,9 +155,7 @@ const EzSearch = class {
|
|
|
161
155
|
return;
|
|
162
156
|
}
|
|
163
157
|
await this.loadDescriptionValue(value);
|
|
164
|
-
this.setInputValue();
|
|
165
158
|
this.ezChange.emit(this.value);
|
|
166
|
-
this._currentValue = this.value;
|
|
167
159
|
}
|
|
168
160
|
updateListPosition() {
|
|
169
161
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -220,7 +212,7 @@ const EzSearch = class {
|
|
|
220
212
|
return text;
|
|
221
213
|
}
|
|
222
214
|
getText() {
|
|
223
|
-
const currentValue = this.getSelectedOption(this.
|
|
215
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
224
216
|
const text = this.getFormattedText(currentValue);
|
|
225
217
|
if (text == undefined) {
|
|
226
218
|
return;
|
|
@@ -395,7 +387,6 @@ const EzSearch = class {
|
|
|
395
387
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
396
388
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
397
389
|
this.value = adjustedOpt;
|
|
398
|
-
this._currentValue = adjustedOpt;
|
|
399
390
|
}
|
|
400
391
|
else {
|
|
401
392
|
this.setInputValue();
|
|
@@ -416,7 +407,7 @@ const EzSearch = class {
|
|
|
416
407
|
}
|
|
417
408
|
}
|
|
418
409
|
cancelPreselection() {
|
|
419
|
-
if (!this._textInput.value && this.
|
|
410
|
+
if (!this._textInput.value && this.value) {
|
|
420
411
|
this.selectOption(undefined);
|
|
421
412
|
}
|
|
422
413
|
else {
|
|
@@ -437,7 +428,6 @@ const EzSearch = class {
|
|
|
437
428
|
}
|
|
438
429
|
clearSearch() {
|
|
439
430
|
this.value = null;
|
|
440
|
-
this._currentValue = null;
|
|
441
431
|
}
|
|
442
432
|
controlListWithOnlyOne() {
|
|
443
433
|
var _a, _b;
|
|
@@ -467,13 +457,13 @@ const EzSearch = class {
|
|
|
467
457
|
if (core.StringUtils.isEmpty(this.value)) {
|
|
468
458
|
return;
|
|
469
459
|
}
|
|
470
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
471
|
-
return;
|
|
472
|
-
}
|
|
473
460
|
let value = this.value;
|
|
474
461
|
if (typeof value === "object") {
|
|
475
462
|
return;
|
|
476
463
|
}
|
|
464
|
+
if (core.StringUtils.isEmpty(value)) {
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
477
467
|
this.loadDescriptionValue(value);
|
|
478
468
|
}
|
|
479
469
|
async loadDescriptionValue(argument) {
|
|
@@ -509,8 +499,7 @@ const EzSearch = class {
|
|
|
509
499
|
return;
|
|
510
500
|
}
|
|
511
501
|
this._lookupMode = true;
|
|
512
|
-
this.
|
|
513
|
-
this.value = this._currentValue;
|
|
502
|
+
this.value = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
514
503
|
}
|
|
515
504
|
loadOptionValue(argument) {
|
|
516
505
|
var _a;
|
|
@@ -576,9 +576,11 @@ export default class AgGridController {
|
|
|
576
576
|
//Existem colunas implícitas que não tem estado, essas colunas são sempre as primeiras.
|
|
577
577
|
//Como vamos reordenar, precisamos considerar o deslocamento provocado por elas.
|
|
578
578
|
const columnsOffset = colDef.length - columns.length;
|
|
579
|
+
this._gridConfig = state;
|
|
579
580
|
let sort = [];
|
|
580
581
|
state === null || state === void 0 ? void 0 : state.forEach((cfgColumn, index) => {
|
|
581
|
-
|
|
582
|
+
var _a;
|
|
583
|
+
const colWidth = (_a = this._gridOptions.columnApi.getColumn(cfgColumn.name)) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
582
584
|
this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
|
|
583
585
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
584
586
|
visibleColumns.push(cfgColumn.name);
|
|
@@ -593,7 +595,6 @@ export default class AgGridController {
|
|
|
593
595
|
state: sort,
|
|
594
596
|
defaultState: { sort: null },
|
|
595
597
|
});
|
|
596
|
-
this._gridConfig = state;
|
|
597
598
|
}
|
|
598
599
|
getAdaptiveWidth(width) {
|
|
599
600
|
const widthGrid = this._container.clientWidth;
|
|
@@ -41,31 +41,25 @@ export class EzSearch {
|
|
|
41
41
|
var _a;
|
|
42
42
|
if (this._textInput) {
|
|
43
43
|
this._textInput.errorMessage = this.errorMessage;
|
|
44
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())
|
|
44
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
45
45
|
this.setInputValue();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
validateNewValue(newValue, oldValue) {
|
|
50
|
-
if (typeof newValue == 'string' && typeof oldValue == 'object' && newValue === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
51
|
-
return false;
|
|
52
|
-
if (typeof newValue == 'object' && typeof oldValue == 'string' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === oldValue)
|
|
53
|
-
return false;
|
|
54
|
-
if (typeof newValue == 'object' && typeof oldValue == 'object' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
55
|
-
return false;
|
|
56
|
-
return true;
|
|
57
|
-
}
|
|
58
49
|
async observeValue(newValue, oldValue) {
|
|
59
|
-
if (this._textInput && newValue != oldValue
|
|
50
|
+
if (this._textInput && newValue != oldValue) {
|
|
60
51
|
try {
|
|
61
52
|
if (typeof newValue === "string") {
|
|
62
53
|
await this.handleValueAsString(newValue);
|
|
63
54
|
return;
|
|
64
55
|
}
|
|
65
56
|
const newValueSelected = this.getSelectedOption(newValue);
|
|
66
|
-
const
|
|
57
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
58
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
67
59
|
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
68
|
-
this.
|
|
60
|
+
this.value = newValueSelected;
|
|
61
|
+
}
|
|
62
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
69
63
|
this.setInputValue();
|
|
70
64
|
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
71
65
|
if (!this._lookupMode) {
|
|
@@ -149,9 +143,7 @@ export class EzSearch {
|
|
|
149
143
|
return;
|
|
150
144
|
}
|
|
151
145
|
await this.loadDescriptionValue(value);
|
|
152
|
-
this.setInputValue();
|
|
153
146
|
this.ezChange.emit(this.value);
|
|
154
|
-
this._currentValue = this.value;
|
|
155
147
|
}
|
|
156
148
|
updateListPosition() {
|
|
157
149
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -208,7 +200,7 @@ export class EzSearch {
|
|
|
208
200
|
return text;
|
|
209
201
|
}
|
|
210
202
|
getText() {
|
|
211
|
-
const currentValue = this.getSelectedOption(this.
|
|
203
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
212
204
|
const text = this.getFormattedText(currentValue);
|
|
213
205
|
if (text == undefined) {
|
|
214
206
|
return;
|
|
@@ -383,7 +375,6 @@ export class EzSearch {
|
|
|
383
375
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
384
376
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
385
377
|
this.value = adjustedOpt;
|
|
386
|
-
this._currentValue = adjustedOpt;
|
|
387
378
|
}
|
|
388
379
|
else {
|
|
389
380
|
this.setInputValue();
|
|
@@ -404,7 +395,7 @@ export class EzSearch {
|
|
|
404
395
|
}
|
|
405
396
|
}
|
|
406
397
|
cancelPreselection() {
|
|
407
|
-
if (!this._textInput.value && this.
|
|
398
|
+
if (!this._textInput.value && this.value) {
|
|
408
399
|
this.selectOption(undefined);
|
|
409
400
|
}
|
|
410
401
|
else {
|
|
@@ -425,7 +416,6 @@ export class EzSearch {
|
|
|
425
416
|
}
|
|
426
417
|
clearSearch() {
|
|
427
418
|
this.value = null;
|
|
428
|
-
this._currentValue = null;
|
|
429
419
|
}
|
|
430
420
|
controlListWithOnlyOne() {
|
|
431
421
|
var _a, _b;
|
|
@@ -455,13 +445,13 @@ export class EzSearch {
|
|
|
455
445
|
if (StringUtils.isEmpty(this.value)) {
|
|
456
446
|
return;
|
|
457
447
|
}
|
|
458
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
459
|
-
return;
|
|
460
|
-
}
|
|
461
448
|
let value = this.value;
|
|
462
449
|
if (typeof value === "object") {
|
|
463
450
|
return;
|
|
464
451
|
}
|
|
452
|
+
if (StringUtils.isEmpty(value)) {
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
465
455
|
this.loadDescriptionValue(value);
|
|
466
456
|
}
|
|
467
457
|
async loadDescriptionValue(argument) {
|
|
@@ -497,8 +487,7 @@ export class EzSearch {
|
|
|
497
487
|
return;
|
|
498
488
|
}
|
|
499
489
|
this._lookupMode = true;
|
|
500
|
-
this.
|
|
501
|
-
this.value = this._currentValue;
|
|
490
|
+
this.value = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
502
491
|
}
|
|
503
492
|
loadOptionValue(argument) {
|
|
504
493
|
var _a;
|
|
@@ -125988,9 +125988,11 @@ class AgGridController {
|
|
|
125988
125988
|
//Existem colunas implícitas que não tem estado, essas colunas são sempre as primeiras.
|
|
125989
125989
|
//Como vamos reordenar, precisamos considerar o deslocamento provocado por elas.
|
|
125990
125990
|
const columnsOffset = colDef.length - columns.length;
|
|
125991
|
+
this._gridConfig = state;
|
|
125991
125992
|
let sort = [];
|
|
125992
125993
|
state === null || state === void 0 ? void 0 : state.forEach((cfgColumn, index) => {
|
|
125993
|
-
|
|
125994
|
+
var _a;
|
|
125995
|
+
const colWidth = (_a = this._gridOptions.columnApi.getColumn(cfgColumn.name)) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
125994
125996
|
this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
|
|
125995
125997
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
125996
125998
|
visibleColumns.push(cfgColumn.name);
|
|
@@ -126005,7 +126007,6 @@ class AgGridController {
|
|
|
126005
126007
|
state: sort,
|
|
126006
126008
|
defaultState: { sort: null },
|
|
126007
126009
|
});
|
|
126008
|
-
this._gridConfig = state;
|
|
126009
126010
|
}
|
|
126010
126011
|
getAdaptiveWidth(width) {
|
|
126011
126012
|
const widthGrid = this._container.clientWidth;
|
|
@@ -128716,31 +128717,25 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128716
128717
|
var _a;
|
|
128717
128718
|
if (this._textInput) {
|
|
128718
128719
|
this._textInput.errorMessage = this.errorMessage;
|
|
128719
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())
|
|
128720
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
128720
128721
|
this.setInputValue();
|
|
128721
128722
|
}
|
|
128722
128723
|
}
|
|
128723
128724
|
}
|
|
128724
|
-
validateNewValue(newValue, oldValue) {
|
|
128725
|
-
if (typeof newValue == 'string' && typeof oldValue == 'object' && newValue === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
128726
|
-
return false;
|
|
128727
|
-
if (typeof newValue == 'object' && typeof oldValue == 'string' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === oldValue)
|
|
128728
|
-
return false;
|
|
128729
|
-
if (typeof newValue == 'object' && typeof oldValue == 'object' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
128730
|
-
return false;
|
|
128731
|
-
return true;
|
|
128732
|
-
}
|
|
128733
128725
|
async observeValue(newValue, oldValue) {
|
|
128734
|
-
if (this._textInput && newValue != oldValue
|
|
128726
|
+
if (this._textInput && newValue != oldValue) {
|
|
128735
128727
|
try {
|
|
128736
128728
|
if (typeof newValue === "string") {
|
|
128737
128729
|
await this.handleValueAsString(newValue);
|
|
128738
128730
|
return;
|
|
128739
128731
|
}
|
|
128740
128732
|
const newValueSelected = this.getSelectedOption(newValue);
|
|
128741
|
-
const
|
|
128733
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
128734
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
128742
128735
|
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
128743
|
-
this.
|
|
128736
|
+
this.value = newValueSelected;
|
|
128737
|
+
}
|
|
128738
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
128744
128739
|
this.setInputValue();
|
|
128745
128740
|
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
128746
128741
|
if (!this._lookupMode) {
|
|
@@ -128824,9 +128819,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128824
128819
|
return;
|
|
128825
128820
|
}
|
|
128826
128821
|
await this.loadDescriptionValue(value);
|
|
128827
|
-
this.setInputValue();
|
|
128828
128822
|
this.ezChange.emit(this.value);
|
|
128829
|
-
this._currentValue = this.value;
|
|
128830
128823
|
}
|
|
128831
128824
|
updateListPosition() {
|
|
128832
128825
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -128883,7 +128876,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
128883
128876
|
return text;
|
|
128884
128877
|
}
|
|
128885
128878
|
getText() {
|
|
128886
|
-
const currentValue = this.getSelectedOption(this.
|
|
128879
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
128887
128880
|
const text = this.getFormattedText(currentValue);
|
|
128888
128881
|
if (text == undefined) {
|
|
128889
128882
|
return;
|
|
@@ -129058,7 +129051,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129058
129051
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
129059
129052
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
129060
129053
|
this.value = adjustedOpt;
|
|
129061
|
-
this._currentValue = adjustedOpt;
|
|
129062
129054
|
}
|
|
129063
129055
|
else {
|
|
129064
129056
|
this.setInputValue();
|
|
@@ -129079,7 +129071,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129079
129071
|
}
|
|
129080
129072
|
}
|
|
129081
129073
|
cancelPreselection() {
|
|
129082
|
-
if (!this._textInput.value && this.
|
|
129074
|
+
if (!this._textInput.value && this.value) {
|
|
129083
129075
|
this.selectOption(undefined);
|
|
129084
129076
|
}
|
|
129085
129077
|
else {
|
|
@@ -129100,7 +129092,6 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129100
129092
|
}
|
|
129101
129093
|
clearSearch() {
|
|
129102
129094
|
this.value = null;
|
|
129103
|
-
this._currentValue = null;
|
|
129104
129095
|
}
|
|
129105
129096
|
controlListWithOnlyOne() {
|
|
129106
129097
|
var _a, _b;
|
|
@@ -129130,13 +129121,13 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129130
129121
|
if (StringUtils$1.isEmpty(this.value)) {
|
|
129131
129122
|
return;
|
|
129132
129123
|
}
|
|
129133
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
129134
|
-
return;
|
|
129135
|
-
}
|
|
129136
129124
|
let value = this.value;
|
|
129137
129125
|
if (typeof value === "object") {
|
|
129138
129126
|
return;
|
|
129139
129127
|
}
|
|
129128
|
+
if (StringUtils$1.isEmpty(value)) {
|
|
129129
|
+
return;
|
|
129130
|
+
}
|
|
129140
129131
|
this.loadDescriptionValue(value);
|
|
129141
129132
|
}
|
|
129142
129133
|
async loadDescriptionValue(argument) {
|
|
@@ -129172,8 +129163,7 @@ const EzSearch$1 = class extends HTMLElement$1 {
|
|
|
129172
129163
|
return;
|
|
129173
129164
|
}
|
|
129174
129165
|
this._lookupMode = true;
|
|
129175
|
-
this.
|
|
129176
|
-
this.value = this._currentValue;
|
|
129166
|
+
this.value = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
129177
129167
|
}
|
|
129178
129168
|
loadOptionValue(argument) {
|
|
129179
129169
|
var _a;
|
|
@@ -120418,9 +120418,11 @@ class AgGridController {
|
|
|
120418
120418
|
//Existem colunas implícitas que não tem estado, essas colunas são sempre as primeiras.
|
|
120419
120419
|
//Como vamos reordenar, precisamos considerar o deslocamento provocado por elas.
|
|
120420
120420
|
const columnsOffset = colDef.length - columns.length;
|
|
120421
|
+
this._gridConfig = state;
|
|
120421
120422
|
let sort = [];
|
|
120422
120423
|
state === null || state === void 0 ? void 0 : state.forEach((cfgColumn, index) => {
|
|
120423
|
-
|
|
120424
|
+
var _a;
|
|
120425
|
+
const colWidth = (_a = this._gridOptions.columnApi.getColumn(cfgColumn.name)) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
120424
120426
|
this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
|
|
120425
120427
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
120426
120428
|
visibleColumns.push(cfgColumn.name);
|
|
@@ -120435,7 +120437,6 @@ class AgGridController {
|
|
|
120435
120437
|
state: sort,
|
|
120436
120438
|
defaultState: { sort: null },
|
|
120437
120439
|
});
|
|
120438
|
-
this._gridConfig = state;
|
|
120439
120440
|
}
|
|
120440
120441
|
getAdaptiveWidth(width) {
|
|
120441
120442
|
const widthGrid = this._container.clientWidth;
|
|
@@ -49,31 +49,25 @@ const EzSearch = class {
|
|
|
49
49
|
var _a;
|
|
50
50
|
if (this._textInput) {
|
|
51
51
|
this._textInput.errorMessage = this.errorMessage;
|
|
52
|
-
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())
|
|
52
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
53
53
|
this.setInputValue();
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
validateNewValue(newValue, oldValue) {
|
|
58
|
-
if (typeof newValue == 'string' && typeof oldValue == 'object' && newValue === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
59
|
-
return false;
|
|
60
|
-
if (typeof newValue == 'object' && typeof oldValue == 'string' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === oldValue)
|
|
61
|
-
return false;
|
|
62
|
-
if (typeof newValue == 'object' && typeof oldValue == 'object' && (newValue === null || newValue === void 0 ? void 0 : newValue.value) === (oldValue === null || oldValue === void 0 ? void 0 : oldValue.value))
|
|
63
|
-
return false;
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
57
|
async observeValue(newValue, oldValue) {
|
|
67
|
-
if (this._textInput && newValue != oldValue
|
|
58
|
+
if (this._textInput && newValue != oldValue) {
|
|
68
59
|
try {
|
|
69
60
|
if (typeof newValue === "string") {
|
|
70
61
|
await this.handleValueAsString(newValue);
|
|
71
62
|
return;
|
|
72
63
|
}
|
|
73
64
|
const newValueSelected = this.getSelectedOption(newValue);
|
|
74
|
-
const
|
|
65
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
66
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
75
67
|
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
76
|
-
this.
|
|
68
|
+
this.value = newValueSelected;
|
|
69
|
+
}
|
|
70
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
77
71
|
this.setInputValue();
|
|
78
72
|
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
79
73
|
if (!this._lookupMode) {
|
|
@@ -157,9 +151,7 @@ const EzSearch = class {
|
|
|
157
151
|
return;
|
|
158
152
|
}
|
|
159
153
|
await this.loadDescriptionValue(value);
|
|
160
|
-
this.setInputValue();
|
|
161
154
|
this.ezChange.emit(this.value);
|
|
162
|
-
this._currentValue = this.value;
|
|
163
155
|
}
|
|
164
156
|
updateListPosition() {
|
|
165
157
|
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
@@ -216,7 +208,7 @@ const EzSearch = class {
|
|
|
216
208
|
return text;
|
|
217
209
|
}
|
|
218
210
|
getText() {
|
|
219
|
-
const currentValue = this.getSelectedOption(this.
|
|
211
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
220
212
|
const text = this.getFormattedText(currentValue);
|
|
221
213
|
if (text == undefined) {
|
|
222
214
|
return;
|
|
@@ -391,7 +383,6 @@ const EzSearch = class {
|
|
|
391
383
|
|| (currentValue == undefined && newOptionsReplaced != undefined && "value" in newOptionsReplaced)) {
|
|
392
384
|
const adjustedOpt = !(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value) ? undefined : newOptionsReplaced;
|
|
393
385
|
this.value = adjustedOpt;
|
|
394
|
-
this._currentValue = adjustedOpt;
|
|
395
386
|
}
|
|
396
387
|
else {
|
|
397
388
|
this.setInputValue();
|
|
@@ -412,7 +403,7 @@ const EzSearch = class {
|
|
|
412
403
|
}
|
|
413
404
|
}
|
|
414
405
|
cancelPreselection() {
|
|
415
|
-
if (!this._textInput.value && this.
|
|
406
|
+
if (!this._textInput.value && this.value) {
|
|
416
407
|
this.selectOption(undefined);
|
|
417
408
|
}
|
|
418
409
|
else {
|
|
@@ -433,7 +424,6 @@ const EzSearch = class {
|
|
|
433
424
|
}
|
|
434
425
|
clearSearch() {
|
|
435
426
|
this.value = null;
|
|
436
|
-
this._currentValue = null;
|
|
437
427
|
}
|
|
438
428
|
controlListWithOnlyOne() {
|
|
439
429
|
var _a, _b;
|
|
@@ -463,13 +453,13 @@ const EzSearch = class {
|
|
|
463
453
|
if (StringUtils.isEmpty(this.value)) {
|
|
464
454
|
return;
|
|
465
455
|
}
|
|
466
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
467
|
-
return;
|
|
468
|
-
}
|
|
469
456
|
let value = this.value;
|
|
470
457
|
if (typeof value === "object") {
|
|
471
458
|
return;
|
|
472
459
|
}
|
|
460
|
+
if (StringUtils.isEmpty(value)) {
|
|
461
|
+
return;
|
|
462
|
+
}
|
|
473
463
|
this.loadDescriptionValue(value);
|
|
474
464
|
}
|
|
475
465
|
async loadDescriptionValue(argument) {
|
|
@@ -505,8 +495,7 @@ const EzSearch = class {
|
|
|
505
495
|
return;
|
|
506
496
|
}
|
|
507
497
|
this._lookupMode = true;
|
|
508
|
-
this.
|
|
509
|
-
this.value = this._currentValue;
|
|
498
|
+
this.value = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
510
499
|
}
|
|
511
500
|
loadOptionValue(argument) {
|
|
512
501
|
var _a;
|
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-e252a728",[[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"],"autoFocus":[4,"auto-focus"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"locateColumn":[64],"filterColumns":[64],"addCustomEditor":[64],"addGridCustomRender":[64],"addCustomValueFormatter":[64],"removeCustomValueFormatter":[64],"refreshSelectedRows":[64],"getCustomValueFormatter":[64],"setFocus":[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-09de35a2",[[1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540],"_container":[32]}]]],["p-bcb53f27",[[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-30775e7f",[[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"]},[[4,"ezCloseModal","handleEzModalAction"]]]]],["p-3faa2b46",[[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-922ac38b",[[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-ffef392d",[[1,"ez-chart",{"type":[1],"xAxis":[16],"yAxis":[16],"chartTitle":[1,"chart-title"],"chartSubTitle":[1,"chart-sub-title"],"legendEnabled":[4,"legend-enabled"],"series":[16],"width":[2],"height":[2]}]]],["p-5ed81457",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["p-f3c526cc",[[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-d9401ea0",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["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-1285c902",[[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-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-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-2dcb50d4",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["p-84e439b9",[[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-7922142b",[[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-2097d0cf",[[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],"_value":[32],"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-3b4eeeb6",[[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-bae4e180",[[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-91f626d3",[[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-5264876b",[[2,"ez-custom-form-input",{"customEditor":[16],"formViewField":[16],"value":[1032],"detailContext":[1,"detail-context"],"builderFallback":[16],"selectedRecord":[16],"gui":[32],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}],[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["p-b283351d",[[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-13d2fe2d",[[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-9ab22a07",[[2,"ez-form-view",{"fields":[16],"selectedRecord":[16],"_customEditors":[32],"showUp":[64],"addCustomEditor":[64],"setFieldProp":[64]}]]],["p-5056284a",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"onlyStaticFields":[4,"only-static-fields"],"_fieldsProps":[32],"validate":[64],"addCustomEditor":[64],"setFieldProp":[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-7c4d02d0",[[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"],"autoFocus":[4,"auto-focus"],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_hasLeftButtons":[32],"_customFormatters":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"locateColumn":[64],"filterColumns":[64],"addCustomEditor":[64],"addGridCustomRender":[64],"addCustomValueFormatter":[64],"removeCustomValueFormatter":[64],"refreshSelectedRows":[64],"getCustomValueFormatter":[64],"setFocus":[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-09de35a2",[[1,"ez-alert-list",{"alerts":[1040],"enableDragAndDrop":[516,"enable-drag-and-drop"],"enableExpand":[516,"enable-expand"],"itemRightSlotBuilder":[16],"opened":[1540],"expanded":[1540],"_container":[32]}]]],["p-bcb53f27",[[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-30775e7f",[[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"]},[[4,"ezCloseModal","handleEzModalAction"]]]]],["p-3faa2b46",[[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-922ac38b",[[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-ffef392d",[[1,"ez-chart",{"type":[1],"xAxis":[16],"yAxis":[16],"chartTitle":[1,"chart-title"],"chartSubTitle":[1,"chart-sub-title"],"legendEnabled":[4,"legend-enabled"],"series":[16],"width":[2],"height":[2]}]]],["p-5ed81457",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["p-f3c526cc",[[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-d9401ea0",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["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-1285c902",[[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-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-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-2dcb50d4",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["p-84e439b9",[[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-7922142b",[[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-2097d0cf",[[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],"_value":[32],"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-3b4eeeb6",[[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-bae4e180",[[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-91f626d3",[[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-5264876b",[[2,"ez-custom-form-input",{"customEditor":[16],"formViewField":[16],"value":[1032],"detailContext":[1,"detail-context"],"builderFallback":[16],"selectedRecord":[16],"gui":[32],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}],[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["p-1c462106",[[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-13d2fe2d",[[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-9ab22a07",[[2,"ez-form-view",{"fields":[16],"selectedRecord":[16],"_customEditors":[32],"showUp":[64],"addCustomEditor":[64],"setFieldProp":[64]}]]],["p-5056284a",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"fieldToFocus":[1,"field-to-focus"],"onlyStaticFields":[4,"only-static-fields"],"_fieldsProps":[32],"validate":[64],"addCustomEditor":[64],"setFieldProp":[64]}]]]]'),e)));
|