@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-08202.0 → 0.0.0-bugfix-dev-KB-6165.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.
Files changed (59) hide show
  1. package/README.md +10 -8
  2. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -11
  3. package/dist/cjs/ez-form-view.cjs.entry.js +1 -37
  4. package/dist/cjs/ez-form.cjs.entry.js +1 -2
  5. package/dist/cjs/ez-grid.cjs.entry.js +38 -87
  6. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -3
  7. package/dist/cjs/ez-search.cjs.entry.js +1 -3
  8. package/dist/cjs/ezui.cjs.js +1 -1
  9. package/dist/cjs/filter-column.cjs.entry.js +7 -30
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/components/ez-combo-box/ez-combo-box.js +3 -47
  12. package/dist/collection/components/ez-form/ez-form.js +0 -20
  13. package/dist/collection/components/ez-form-view/ez-form-view.js +0 -23
  14. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +1 -4
  15. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -1
  16. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  17. package/dist/collection/components/ez-grid/ez-grid.js +39 -11
  18. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +8 -50
  19. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -21
  20. package/dist/collection/components/ez-search/ez-search.js +1 -39
  21. package/dist/collection/utils/form/DataBinder.js +1 -1
  22. package/dist/custom-elements/index.js +57 -178
  23. package/dist/esm/ez-combo-box.entry.js +3 -11
  24. package/dist/esm/ez-form-view.entry.js +1 -37
  25. package/dist/esm/ez-form.entry.js +1 -2
  26. package/dist/esm/ez-grid.entry.js +39 -88
  27. package/dist/esm/ez-multi-selection-list.entry.js +1 -3
  28. package/dist/esm/ez-search.entry.js +1 -3
  29. package/dist/esm/ezui.js +1 -1
  30. package/dist/esm/filter-column.entry.js +7 -30
  31. package/dist/esm/loader.js +1 -1
  32. package/dist/ezui/ezui.esm.js +1 -1
  33. package/dist/ezui/p-2a0e1679.entry.js +1 -0
  34. package/dist/ezui/p-4535da17.entry.js +1 -0
  35. package/dist/ezui/p-4c8b029b.entry.js +1 -0
  36. package/dist/ezui/p-4e31b69b.entry.js +1 -0
  37. package/dist/ezui/p-5495fa45.entry.js +1 -0
  38. package/dist/ezui/p-90fa4cb3.entry.js +1 -0
  39. package/dist/ezui/{p-964e5571.entry.js → p-fd54b5b4.entry.js} +2 -2
  40. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -9
  41. package/dist/types/components/ez-form/ez-form.d.ts +0 -5
  42. package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -5
  43. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  44. package/dist/types/components/ez-grid/ez-grid.d.ts +5 -3
  45. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -8
  46. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -4
  47. package/dist/types/components/ez-search/ez-search.d.ts +0 -8
  48. package/dist/types/components.d.ts +0 -51
  49. package/package.json +2 -2
  50. package/dist/collection/components/ez-form-view/structure/index.js +0 -29
  51. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +0 -78
  52. package/dist/ezui/p-061f4d73.entry.js +0 -1
  53. package/dist/ezui/p-25562cf8.entry.js +0 -1
  54. package/dist/ezui/p-5e55a42b.entry.js +0 -1
  55. package/dist/ezui/p-6ab2f7c2.entry.js +0 -1
  56. package/dist/ezui/p-7526f2b6.entry.js +0 -1
  57. package/dist/ezui/p-8fdff9cd.entry.js +0 -1
  58. package/dist/types/components/ez-form-view/structure/index.d.ts +0 -14
  59. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +0 -16
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Bibliteca de componentes EzUI
2
2
 
3
- [![Build status](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/badges/master/pipeline.svg)](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/commits/master)
3
+ [![Build status](https://git.sankhya.com.br/sankhyalabs/ez-ui/badges/master/pipeline.svg)](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/commits/master)
4
4
 
5
5
  Esse projeto é constituído por um monorepo com a seguinte hierarquia:
6
6
 
@@ -69,10 +69,12 @@ o build do ezui, link do react-output e ezui, build do react-output e a disponib
69
69
  - `npm run build`
70
70
 
71
71
  ## Para conhecer detalhes do projeto acesse:
72
- - [Olá EZUi](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Ol%C3%A1-EzUI)
73
- - [Diretrizes de codificação](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-codifica%C3%A7%C3%A3o)
74
- - [Diretrizes de componentização](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-componentiza%C3%A7%C3%A3o)
75
- - [Diretrizes de documentação](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-documenta%C3%A7%C3%A3o)
76
- - [Link ente projetos](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Link-ente-projetos)
77
- - [Definindo bons data-element-id de testabilidade no design system](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Definindo-bons-data-element-id-de-testabilidade-no-design-system)
78
- - [Criando exemplos de componentes](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Criando-exemplos-de-componentes)
72
+ - [Olá EZUi](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Ol%C3%A1-EzUI)
73
+ - [Diretrizes de codificação](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Diretrizes-de-codifica%C3%A7%C3%A3o)
74
+ - [Diretrizes de componentização](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Diretrizes-de-componentiza%C3%A7%C3%A3o)
75
+ - [Diretrizes de documentação](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Diretrizes-de-documenta%C3%A7%C3%A3o)
76
+ - [Link ente projetos](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Link-ente-projetos)
77
+ - [Definindo bons data-element-id de testabilidade no design system](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Definindo-bons-data-element-id-de-testabilidade-no-design-system)
78
+ - [Criando exemplos de componentes](https://git.sankhya.com.br/sankhyalabs/ez-ui/-/wikis/Criando-exemplos-de-componentes)
79
+
80
+
@@ -42,9 +42,7 @@ const EzComboBox = class {
42
42
  this.suppressEmptyOption = false;
43
43
  this.canShowError = true;
44
44
  this.mode = "regular";
45
- this.hideErrorOnFocusOut = true;
46
45
  this.listOptionsPosition = undefined;
47
- this.isTextSearch = false;
48
46
  }
49
47
  observeErrorMessage() {
50
48
  var _a;
@@ -367,6 +365,7 @@ const EzComboBox = class {
367
365
  this._visibleOptions = [];
368
366
  this.clearSource();
369
367
  }
368
+ this.setFocus();
370
369
  }
371
370
  loadOptions(mode, argument = "") {
372
371
  this._criteria = argument;
@@ -551,12 +550,6 @@ const EzComboBox = class {
551
550
  handlerIconClick() {
552
551
  this.searchMode ? this.loadOptions(SearchMode.ADVANCED) : this.showOptions();
553
552
  }
554
- buildNumberArgument(argument) {
555
- if (this.isTextSearch) {
556
- return NaN;
557
- }
558
- return Number(argument || undefined);
559
- }
560
553
  onTextInputChangeHandler(event) {
561
554
  var _a;
562
555
  this.clearDeboucingTimeout();
@@ -567,7 +560,7 @@ const EzComboBox = class {
567
560
  return;
568
561
  }
569
562
  const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
570
- const argumentNumber = this.buildNumberArgument(argument);
563
+ const argumentNumber = Number(argument || undefined);
571
564
  if (!this._criteria) {
572
565
  this._textInput.value = event.data || argument;
573
566
  }
@@ -654,8 +647,7 @@ const EzComboBox = class {
654
647
  //event.stopPropagation();
655
648
  }
656
649
  onTextInputFocusOutHandler() {
657
- if (this.hideErrorOnFocusOut)
658
- this.cancelPreselection();
650
+ this.cancelPreselection();
659
651
  }
660
652
  canShowListOptions() {
661
653
  return !this._showLoading && this._visibleOptions.length > 0;
@@ -99,49 +99,15 @@ uiBuilders.set(core.UserInterface.LONGTEXT, buildTextArea);
99
99
  const fieldBuilder = (field) => {
100
100
  const builder = uiBuilders.get(field.userInterface) || buildTextInput;
101
101
  const label = field.required ? `${field.label}${constants.REQUIRED_INFO}` : field.label;
102
- const builtElement = builder(Object.assign(Object.assign({}, field), { label }));
103
- //@ts-ignore
104
- builtElement.$attrs$['data-form-item'] = field.name;
105
- return builtElement;
102
+ return builder(Object.assign(Object.assign({}, field), { label }));
106
103
  };
107
104
 
108
- class FormItem {
109
- constructor(elem) {
110
- this.elem = elem;
111
- }
112
- addRightElement(el) {
113
- el.classList.add('ez-padding-left--small');
114
- this.elem.classList.add('ez-col--nowrap');
115
- this.elem.appendChild(el);
116
- }
117
- get fieldName() {
118
- return this.elem.getAttribute('data-form-item');
119
- }
120
- }
121
- class FormItems {
122
- constructor(items, formId) {
123
- this.items = new Map();
124
- this.formId = formId;
125
- items.forEach(item => {
126
- const formItem = new FormItem(item);
127
- this.items.set(formItem.fieldName, formItem);
128
- });
129
- }
130
- getItem(name) {
131
- return this.items.get(name);
132
- }
133
- get formName() {
134
- return this.formId;
135
- }
136
- }
137
-
138
105
  const ezFormViewCss = ".sc-ez-form-view-h{display:flex;flex-direction:row;flex-wrap:wrap;width:100%}";
139
106
 
140
107
  const EzFormView = class {
141
108
  constructor(hostRef) {
142
109
  index.registerInstance(this, hostRef);
143
110
  this.ezContentReady = index.createEvent(this, "ezContentReady", 7);
144
- this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
145
111
  this.fields = undefined;
146
112
  }
147
113
  async showUp() {
@@ -167,8 +133,6 @@ const EzFormView = class {
167
133
  }
168
134
  componentDidRender() {
169
135
  this.ezContentReady.emit(Array.from(this._element.querySelectorAll("[data-field-name]")));
170
- const formItems = new FormItems(Array.from(this._element.querySelectorAll("[data-form-item]")));
171
- this.formItemsReady.emit(formItems);
172
136
  }
173
137
  render() {
174
138
  core.ElementIDUtils.addIDInfoIfNotExists(this._element, 'ezFormView');
@@ -346,7 +346,7 @@ class DataBinder {
346
346
  this._dataUnit.addRecord();
347
347
  }
348
348
  this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
349
- this._dataUnit.setFieldValue(fieldName, newValue);
349
+ this._dataUnit.setFieldValue(fieldName, newValue, [this.getCurrentRecordId()]);
350
350
  if (this._dataUnit.waitingForChange(fieldName)) {
351
351
  const bind = this._fields.get(fieldName);
352
352
  if (bind) {
@@ -835,7 +835,6 @@ const EzForm = class {
835
835
  constructor(hostRef) {
836
836
  index.registerInstance(this, hostRef);
837
837
  this.ezReady = index.createEvent(this, "ezReady", 7);
838
- this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
839
838
  this.onDataUnitAction = (action) => {
840
839
  if (action.type === core.Action.METADATA_LOADED) {
841
840
  this.processMetadata();
@@ -118978,7 +118978,7 @@ class EzGridCustomHeader {
118978
118978
  onClickFilter() {
118979
118979
  var _a;
118980
118980
  const iconLeft = (_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
118981
- this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`, true);
118981
+ this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`);
118982
118982
  }
118983
118983
  configSortIcon() {
118984
118984
  this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
@@ -120220,7 +120220,7 @@ class AgGridController {
120220
120220
  tooltip: tooltip,
120221
120221
  isSortable: propSortable,
120222
120222
  hasFilter: () => this.hasFilterColumn(source.name),
120223
- showColumnFilter: (leftPosition, fromIcon) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon }),
120223
+ showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name) }),
120224
120224
  },
120225
120225
  valueFormatter: params => {
120226
120226
  if (params.value == undefined) {
@@ -120443,84 +120443,6 @@ function getElementID(sufix) {
120443
120443
  };
120444
120444
  }
120445
120445
 
120446
- class InMemoryFilterColumnDataSource {
120447
- constructor(dataUnit) {
120448
- var _a;
120449
- this.onDataUnitAction = (action) => {
120450
- if (action.type === core.Action.DATA_SAVED || action.type === core.Action.RECORDS_REMOVED) {
120451
- this.originalRecords = this.dataUnit.records;
120452
- }
120453
- };
120454
- this.dataUnit = dataUnit;
120455
- this.originalRecords = (_a = this.dataUnit.records) !== null && _a !== void 0 ? _a : [];
120456
- this.dataUnit.subscribe(this.onDataUnitAction);
120457
- }
120458
- fetchData(filterTerm, fieldName) {
120459
- return new Promise(resolve => {
120460
- const filteredRecords = this.originalRecords.filter(record => this.includesSearchTerm(record, fieldName, filterTerm));
120461
- const options = filteredRecords.map(item => this.buildFieldOption(item, fieldName));
120462
- resolve(this.removeDuplicatedOptions(options));
120463
- });
120464
- }
120465
- buildFieldOption(item, fieldName) {
120466
- return {
120467
- value: this.buildValue(item, fieldName),
120468
- label: this.formatLabel(fieldName, item[fieldName]),
120469
- check: true,
120470
- };
120471
- }
120472
- buildValue(item, fieldName) {
120473
- var _a;
120474
- let value = item[fieldName];
120475
- if (((_a = this.dataUnit.getField(fieldName)) === null || _a === void 0 ? void 0 : _a.dataType) === core.DataType.OBJECT) {
120476
- value = value.value;
120477
- }
120478
- return value === null || value === void 0 ? void 0 : value.toString();
120479
- }
120480
- removeDuplicatedOptions(options) {
120481
- const noDuplicatedOptions = [];
120482
- options.forEach(option => {
120483
- if (!noDuplicatedOptions.find(({ label }) => label === option.label)) {
120484
- noDuplicatedOptions.push(option);
120485
- }
120486
- });
120487
- return noDuplicatedOptions;
120488
- }
120489
- includesSearchTerm(record, fieldName, filterTerm) {
120490
- let label = this.buildLabel(fieldName, record[fieldName]);
120491
- return label.toLowerCase().includes(filterTerm.toLowerCase());
120492
- }
120493
- buildLabel(fieldName, value) {
120494
- var _a;
120495
- const { dataType } = this.dataUnit.getField(fieldName);
120496
- if (dataType === core.DataType.NUMBER) {
120497
- return value === null || value === void 0 ? void 0 : value.toString().replace('.', ',');
120498
- }
120499
- if (dataType === core.DataType.DATE) {
120500
- return (typeof value === 'object')
120501
- ? (_a = core.DateUtils.formatDate(this.dataUnit.valueFromString(fieldName, value))) === null || _a === void 0 ? void 0 : _a.toString()
120502
- : value === null || value === void 0 ? void 0 : value.toString();
120503
- }
120504
- if (dataType === core.DataType.OBJECT) {
120505
- return `${value === null || value === void 0 ? void 0 : value.value} - ${value === null || value === void 0 ? void 0 : value.label}`;
120506
- }
120507
- return value === null || value === void 0 ? void 0 : value.toString();
120508
- }
120509
- formatLabel(fieldName, value) {
120510
- var _a, _b;
120511
- const { userInterface, dataType } = this.dataUnit.getField(fieldName);
120512
- if (dataType === core.DataType.DATE) {
120513
- return (typeof value === 'object')
120514
- ? core.DateUtils.formatDate(this.dataUnit.valueFromString(fieldName, value))
120515
- : value === null || value === void 0 ? void 0 : value.toString();
120516
- }
120517
- if (dataType === core.DataType.NUMBER && userInterface !== core.UserInterface.DECIMALNUMBER) {
120518
- return (_a = parseInt(this.dataUnit.getFormattedValue(fieldName, value))) === null || _a === void 0 ? void 0 : _a.toString();
120519
- }
120520
- return (_b = this.dataUnit.getFormattedValue(fieldName, value)) === null || _b === void 0 ? void 0 : _b.toString();
120521
- }
120522
- }
120523
-
120524
120446
  const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--visible, 1);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF);z-index:var(--more-visible, 2)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s;z-index:var(--ez-grid__selection-counter--z-index)}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{height:0;padding:0}";
120525
120447
 
120526
120448
  const windowInstace = window;
@@ -120534,13 +120456,18 @@ const EzGrid = class {
120534
120456
  this.componentReady = index.createEvent(this, "componentReady", 7);
120535
120457
  this._gridController = new AgGridController(false);
120536
120458
  this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
120459
+ this.onDataUnitAction = (action) => {
120460
+ if (action.type === core.Action.DATA_SAVED || action.type === core.Action.RECORDS_REMOVED) {
120461
+ this._originalRecords = this.dataUnit.records;
120462
+ }
120463
+ };
120537
120464
  this._paginationInfo = undefined;
120538
120465
  this._paginationChangedByKeyboard = true;
120539
120466
  this._showSelectionCounter = false;
120540
120467
  this._isAllSelection = false;
120541
120468
  this._currentPageSelected = undefined;
120542
120469
  this._selectionCount = undefined;
120543
- this._hasLeftButtons = false;
120470
+ this._originalRecords = [];
120544
120471
  this.multipleSelection = undefined;
120545
120472
  this.config = undefined;
120546
120473
  this.selectionToastConfig = undefined;
@@ -120810,20 +120737,44 @@ const EzGrid = class {
120810
120737
  });
120811
120738
  }
120812
120739
  componentWillLoad() {
120813
- this._hasLeftButtons = !!this._element.querySelector('[slot="leftButtons"]');
120814
120740
  if (!this.dataUnit.name.includes("InMemoryDataUnit"))
120815
120741
  return;
120742
+ this.dataUnit.subscribe(this.onDataUnitAction);
120816
120743
  }
120817
120744
  getDataSource() {
120818
- var _a;
120819
- return (_a = this.columnfilterDataSource) !== null && _a !== void 0 ? _a : new InMemoryFilterColumnDataSource(this.dataUnit);
120745
+ return this.columnfilterDataSource ? this.columnfilterDataSource : this.buildDefaultDataSource();
120820
120746
  }
120821
- hideHeader() {
120822
- return (!!this._element.getAttribute("no-header") && !this._paginationInfo);
120747
+ buildDefaultDataSource() {
120748
+ var _a, _b;
120749
+ if (this._originalRecords.length === 0) {
120750
+ this._originalRecords = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : [];
120751
+ }
120752
+ return {
120753
+ fetchData: (filterTerm, fieldName) => {
120754
+ return new Promise(resolve => {
120755
+ const filteredRecords = this._originalRecords.filter(record => {
120756
+ var _a, _b;
120757
+ const label = typeof record[fieldName] === "object" ? `${(_a = record[fieldName]) === null || _a === void 0 ? void 0 : _a.value} - ${(_b = record[fieldName]) === null || _b === void 0 ? void 0 : _b.label}` : record[fieldName];
120758
+ return label === null || label === void 0 ? void 0 : label.toString().toLowerCase().includes(filterTerm.toLowerCase());
120759
+ });
120760
+ const options = filteredRecords.map(item => {
120761
+ return { value: item[fieldName].toString(), label: this.formatLabel(fieldName, item[fieldName]), check: true };
120762
+ });
120763
+ resolve(options);
120764
+ });
120765
+ }
120766
+ };
120767
+ }
120768
+ formatLabel(fieldName, value) {
120769
+ const { userInterface } = this.dataUnit.getField(fieldName);
120770
+ if (userInterface === core.UserInterface.DATETIME) {
120771
+ return core.DateUtils.formatDate(this.dataUnit.valueFromString(fieldName, value));
120772
+ }
120773
+ return String(this.dataUnit.getFormattedValue(fieldName, value));
120823
120774
  }
120824
120775
  render() {
120825
120776
  var _a;
120826
- return (index.h(index.Host, { "no-header": this.hideHeader() }, index.h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, index.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index.h("div", { class: "grid-header__position" }, index.h("div", { class: "grid-header__container" }, index.h("slot", { name: "leftButtons" })), index.h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter
120777
+ return (index.h(index.Host, null, index.h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, index.h("filter-column", { class: "grid-header__popover", dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: !!this._element.getAttribute("no-header"), ref: (element) => (this._filterColumn = element) }), index.h("div", { class: "grid-header__position" }, index.h("div", { class: "grid-header__container" }, index.h("slot", { name: "leftButtons" })), index.h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter
120827
120778
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
120828
120779
  ` }, index.h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), index.h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), index.h("div", { class: "grid__footer" }, index.h("slot", { name: "footer" }))));
120829
120780
  }
@@ -23,7 +23,6 @@ const EzMuiltiSelectionList = class {
23
23
  this.dataSource = undefined;
24
24
  this.useOptions = false;
25
25
  this.options = undefined;
26
- this.isTextSearch = false;
27
26
  this.filteredOptions = undefined;
28
27
  this.displayOptions = undefined;
29
28
  this.viewScenario = undefined;
@@ -106,7 +105,6 @@ const EzMuiltiSelectionList = class {
106
105
  this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([...optionsToSort, event.detail]);
107
106
  }
108
107
  this.viewScenario = ViewScenarios.DATASOURCE_RESULTS;
109
- this.searchInput.value = "";
110
108
  }
111
109
  handleRemoveItemFromOptions(item) {
112
110
  this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter(i => i.value !== item.value));
@@ -170,7 +168,7 @@ const EzMuiltiSelectionList = class {
170
168
  return scenarios[view];
171
169
  }
172
170
  render() {
173
- return (index.h(index.Host, null, index.h("div", { class: "multi-selection" }, this.useOptions ? (index.h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (index.h("ez-search", { class: "multi-selection__input", label: `Buscar...`, ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this), isTextSearch: this.isTextSearch })), index.h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
171
+ return (index.h(index.Host, null, index.h("div", { class: "multi-selection" }, this.useOptions ? (index.h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (index.h("ez-search", { class: "multi-selection__input", label: `Buscar...`, ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this) })), index.h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
174
172
  }
175
173
  static get watchers() { return {
176
174
  "useOptions": ["onChangeUseOptions"],
@@ -22,9 +22,7 @@ const EzSearch = class {
22
22
  this.suppressEmptyOption = false;
23
23
  this.mode = "regular";
24
24
  this.canShowError = true;
25
- this.hideErrorOnFocusOut = true;
26
25
  this.listOptionsPosition = undefined;
27
- this.isTextSearch = false;
28
26
  }
29
27
  observeErrorMessage() {
30
28
  if (this._comboElement) {
@@ -82,7 +80,7 @@ const EzSearch = class {
82
80
  }
83
81
  render() {
84
82
  core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
85
- return (index.h("ez-combo-box", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("combo"), ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, hideErrorOnFocusOut: this.hideErrorOnFocusOut, optionLoader: this.optionLoader, searchMode: true, onEzChange: event => this.onComboChange(event), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode, canShowError: this.canShowError, listOptionsPosition: this.listOptionsPosition, isTextSearch: this.isTextSearch }));
83
+ return (index.h("ez-combo-box", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("combo"), ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: event => this.onComboChange(event), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue, suppressEmptyOption: this.suppressEmptyOption, mode: this.mode, canShowError: this.canShowError, listOptionsPosition: this.listOptionsPosition }));
86
84
  }
87
85
  ;
88
86
  get _elem() { return index.getElement(this); }
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- return index.bootstrapLazy(JSON.parse("[[\"ez-grid.cjs\",[[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]},[[0,\"ezSelectionChange\",\"onSelectionChange\"]]]]],[\"ez-guide-navigator.cjs\",[[1,\"ez-guide-navigator\",{\"open\":[1540],\"selectedId\":[1537,\"selected-id\"],\"items\":[16],\"tooltipResolver\":[16],\"filterText\":[32],\"disableItem\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-actions-button.cjs\",[[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],\"isOpened\":[64]}]]],[\"ez-breadcrumb.cjs\",[[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]}]]],[\"ez-dialog.cjs\",[[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]}]]],[\"ez-modal-container.cjs\",[[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\"]}]]],[\"ez-alert.cjs\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge.cjs\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip.cjs\",[[1,\"ez-chip\",{\"label\":[513],\"enabled\":[516],\"removePosition\":[513,\"remove-position\"],\"mode\":[513],\"value\":[1540],\"showNativeTooltip\":[4,\"show-native-tooltip\"],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"ez-file-item.cjs\",[[1,\"ez-file-item\",{\"canRemove\":[4,\"can-remove\"],\"fileName\":[1,\"file-name\"],\"iconName\":[1,\"icon-name\"],\"fileSize\":[2,\"file-size\"],\"progress\":[2]}]]],[\"ez-application.cjs\",[[0,\"ez-application\"]]],[\"ez-card-item.cjs\",[[1,\"ez-card-item\",{\"item\":[16]}]]],[\"ez-loading-bar.cjs\",[[1,\"ez-loading-bar\",{\"_showLoading\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-modal.cjs\",[[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]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"]}]]],[\"ez-radio-button.cjs\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton.cjs\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-toast.cjs\",[[1,\"ez-toast\",{\"message\":[1025],\"fadeTime\":[1026,\"fade-time\"],\"useIcon\":[1028,\"use-icon\"],\"canClose\":[1028,\"can-close\"],\"show\":[64]}]]],[\"ez-view-stack.cjs\",[[0,\"ez-view-stack\",{\"show\":[64],\"getSelectedIndex\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"showUp\":[64]}]]],[\"ez-filter-input_2.cjs\",[[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]}]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[16],\"isTextSearch\":[4,\"is-text-search\"],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"filter-column.cjs\",[[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]}]]],[\"ez-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]}]]],[\"ez-tabselector.cjs\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32]}]]],[\"ez-collapsible-box.cjs\",[[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]}]]],[\"ez-calendar.cjs\",[[1,\"ez-calendar\",{\"value\":[1040],\"floating\":[516],\"time\":[516],\"showSeconds\":[516,\"show-seconds\"],\"show\":[64],\"fitVertical\":[64],\"fitHorizontal\":[64],\"hide\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-text-input.cjs\",[[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\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-date-input.cjs\",[[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]}]]],[\"ez-date-time-input.cjs\",[[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]}]]],[\"ez-time-input.cjs\",[[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]}]]],[\"ez-number-input.cjs\",[[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]}]]],[\"ez-popover.cjs\",[[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]}]]],[\"ez-text-area.cjs\",[[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]}]]],[\"ez-upload.cjs\",[[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]}]]],[\"ez-text-edit.cjs\",[[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-scroller_3.cjs\",[[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\"]]],[\"ez-list.cjs\",[[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]}]]],[\"ez-combo-box.cjs\",[[1,\"ez-combo-box\",{\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"searchMode\":[4,\"search-mode\"],\"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\"]]]]],[\"ez-search.cjs\",[[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\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64],\"getValueAsync\":[64]}]]],[\"ez-check.cjs\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[64]}]]],[\"ez-icon.cjs\",[[1,\"ez-icon\",{\"size\":[513],\"href\":[513],\"iconName\":[513,\"icon-name\"]}]]],[\"ez-button.cjs\",[[1,\"ez-button\",{\"label\":[513],\"enabled\":[516],\"mode\":[513],\"image\":[513],\"iconName\":[513,\"icon-name\"],\"size\":[513],\"setFocus\":[64],\"setBlur\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"validate\":[64]}]]]]"), options);
20
+ return index.bootstrapLazy(JSON.parse("[[\"ez-grid.cjs\",[[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],\"_originalRecords\":[32],\"setColumnsDef\":[64],\"addColumnMenuItem\":[64],\"setColumnsState\":[64],\"setData\":[64],\"getSelection\":[64],\"getColumnsState\":[64],\"getColumns\":[64],\"quickFilter\":[64]},[[0,\"ezSelectionChange\",\"onSelectionChange\"]]]]],[\"ez-guide-navigator.cjs\",[[1,\"ez-guide-navigator\",{\"open\":[1540],\"selectedId\":[1537,\"selected-id\"],\"items\":[16],\"tooltipResolver\":[16],\"filterText\":[32],\"disableItem\":[64],\"enableItem\":[64],\"updateItem\":[64],\"getItem\":[64],\"getCurrentPath\":[64],\"selectGuide\":[64],\"getParent\":[64]}]]],[\"ez-actions-button.cjs\",[[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],\"isOpened\":[64]}]]],[\"ez-breadcrumb.cjs\",[[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]}]]],[\"ez-dialog.cjs\",[[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]}]]],[\"ez-modal-container.cjs\",[[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\"]}]]],[\"ez-alert.cjs\",[[1,\"ez-alert\",{\"alertType\":[513,\"alert-type\"]}]]],[\"ez-badge.cjs\",[[1,\"ez-badge\",{\"size\":[513],\"label\":[513],\"iconLeft\":[513,\"icon-left\"],\"iconRight\":[513,\"icon-right\"],\"position\":[1040],\"hasSlot\":[32]}]]],[\"ez-chip.cjs\",[[1,\"ez-chip\",{\"label\":[513],\"enabled\":[516],\"removePosition\":[513,\"remove-position\"],\"mode\":[513],\"value\":[1540],\"showNativeTooltip\":[4,\"show-native-tooltip\"],\"setFocus\":[64],\"setBlur\":[64]}]]],[\"ez-file-item.cjs\",[[1,\"ez-file-item\",{\"canRemove\":[4,\"can-remove\"],\"fileName\":[1,\"file-name\"],\"iconName\":[1,\"icon-name\"],\"fileSize\":[2,\"file-size\"],\"progress\":[2]}]]],[\"ez-application.cjs\",[[0,\"ez-application\"]]],[\"ez-card-item.cjs\",[[1,\"ez-card-item\",{\"item\":[16]}]]],[\"ez-loading-bar.cjs\",[[1,\"ez-loading-bar\",{\"_showLoading\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-modal.cjs\",[[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]}]]],[\"ez-popup.cjs\",[[1,\"ez-popup\",{\"size\":[1],\"opened\":[1540],\"useHeader\":[516,\"use-header\"],\"heightMode\":[513,\"height-mode\"],\"ezTitle\":[1,\"ez-title\"]}]]],[\"ez-radio-button.cjs\",[[1,\"ez-radio-button\",{\"value\":[1544],\"options\":[1040],\"enabled\":[516],\"label\":[513],\"direction\":[1537]}]]],[\"ez-skeleton.cjs\",[[0,\"ez-skeleton\",{\"count\":[2],\"variant\":[1],\"width\":[1],\"height\":[1],\"marginBottom\":[1,\"margin-bottom\"],\"animation\":[1]}]]],[\"ez-toast.cjs\",[[1,\"ez-toast\",{\"message\":[1025],\"fadeTime\":[1026,\"fade-time\"],\"useIcon\":[1028,\"use-icon\"],\"canClose\":[1028,\"can-close\"],\"show\":[64]}]]],[\"ez-view-stack.cjs\",[[0,\"ez-view-stack\",{\"show\":[64],\"getSelectedIndex\":[64]}]]],[\"ez-form-view.cjs\",[[2,\"ez-form-view\",{\"fields\":[16],\"showUp\":[64]}]]],[\"ez-filter-input_2.cjs\",[[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]}]]],[\"ez-multi-selection-list.cjs\",[[2,\"ez-multi-selection-list\",{\"columnName\":[1,\"column-name\"],\"dataSource\":[16],\"useOptions\":[1028,\"use-options\"],\"options\":[16],\"filteredOptions\":[32],\"displayOptions\":[32],\"viewScenario\":[32],\"displayOptionToCheckAllItems\":[32],\"clearFilteredOptions\":[64]}]]],[\"filter-column.cjs\",[[0,\"filter-column\",{\"opened\":[4],\"columnName\":[1,\"column-name\"],\"columnLabel\":[1,\"column-label\"],\"gridHeaderHidden\":[4,\"grid-header-hidden\"],\"dataSource\":[16],\"dataUnit\":[16],\"options\":[1040],\"selectedItems\":[32],\"fieldDescriptor\":[32],\"useOptions\":[32],\"hide\":[64],\"show\":[64]}]]],[\"ez-dropdown.cjs\",[[1,\"ez-dropdown\",{\"items\":[1040],\"value\":[1040],\"itemBuilder\":[16]}]]],[\"ez-tabselector.cjs\",[[1,\"ez-tabselector\",{\"selectedIndex\":[1538,\"selected-index\"],\"selectedTab\":[1537,\"selected-tab\"],\"tabs\":[1],\"_processedTabs\":[32]}]]],[\"ez-collapsible-box.cjs\",[[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]}]]],[\"ez-calendar.cjs\",[[1,\"ez-calendar\",{\"value\":[1040],\"floating\":[516],\"time\":[516],\"showSeconds\":[516,\"show-seconds\"],\"show\":[64],\"fitVertical\":[64],\"fitHorizontal\":[64],\"hide\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-text-input.cjs\",[[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\"],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64]}]]],[\"ez-date-input.cjs\",[[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]}]]],[\"ez-date-time-input.cjs\",[[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]}]]],[\"ez-time-input.cjs\",[[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]}]]],[\"ez-number-input.cjs\",[[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]}]]],[\"ez-popover.cjs\",[[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]}]]],[\"ez-text-area.cjs\",[[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]}]]],[\"ez-upload.cjs\",[[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]}]]],[\"ez-text-edit.cjs\",[[1,\"ez-text-edit\",{\"value\":[1],\"styled\":[16],\"_newValue\":[32],\"applyFocusSelect\":[64]}]]],[\"ez-scroller_3.cjs\",[[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\"]]],[\"ez-list.cjs\",[[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]}]]],[\"ez-combo-box.cjs\",[[1,\"ez-combo-box\",{\"value\":[1537],\"label\":[513],\"enabled\":[516],\"options\":[1040],\"errorMessage\":[1537,\"error-message\"],\"searchMode\":[4,\"search-mode\"],\"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],\"listOptionsPosition\":[16],\"_preSelection\":[32],\"_visibleOptions\":[32],\"_startLoading\":[32],\"_showLoading\":[32],\"_criteria\":[32],\"getValueAsync\":[64],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64]},[[11,\"scroll\",\"scrollListener\"]]]]],[\"ez-search.cjs\",[[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\"],\"listOptionsPosition\":[16],\"setFocus\":[64],\"setBlur\":[64],\"isInvalid\":[64],\"clearValue\":[64],\"getValueAsync\":[64]}]]],[\"ez-check.cjs\",[[1,\"ez-check\",{\"label\":[513],\"value\":[1540],\"enabled\":[1540],\"indeterminate\":[1540],\"mode\":[513],\"compact\":[4],\"getMode\":[64],\"setFocus\":[64]}]]],[\"ez-icon.cjs\",[[1,\"ez-icon\",{\"size\":[513],\"href\":[513],\"iconName\":[513,\"icon-name\"]}]]],[\"ez-button.cjs\",[[1,\"ez-button\",{\"label\":[513],\"enabled\":[516],\"mode\":[513],\"image\":[513],\"iconName\":[513,\"icon-name\"],\"size\":[513],\"setFocus\":[64],\"setBlur\":[64]},[[2,\"click\",\"clickListener\"]]]]],[\"ez-form.cjs\",[[2,\"ez-form\",{\"dataUnit\":[1040],\"config\":[16],\"recordsValidator\":[16],\"validate\":[64]}]]]]"), options);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -17,23 +17,19 @@ const FilterColumn = class {
17
17
  constructor(hostRef) {
18
18
  index.registerInstance(this, hostRef);
19
19
  this.applyFilterColumnOptions = index.createEvent(this, "applyFilterColumnOptions", 7);
20
- this.TOP_POSITION = '65';
20
+ this.TOP_POSITION = '65px';
21
21
  this.TOP_POSITION_HEADER_HIDDEN = '18';
22
- this.TOP_POSITION_NO_TASKBAR = '32';
23
- this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN = '20';
24
22
  this.DEFAULT_HEIGHT = 430;
25
23
  this.opened = true;
26
24
  this.columnName = undefined;
27
25
  this.columnLabel = undefined;
28
26
  this.gridHeaderHidden = false;
29
- this.noHeaderTaskBar = false;
30
27
  this.dataSource = undefined;
31
28
  this.dataUnit = undefined;
32
29
  this.options = undefined;
33
30
  this.selectedItems = undefined;
34
31
  this.fieldDescriptor = undefined;
35
32
  this.useOptions = false;
36
- this.isTextSearch = false;
37
33
  }
38
34
  async hide() {
39
35
  await this.ezPopoverElement.hide();
@@ -47,45 +43,26 @@ const FilterColumn = class {
47
43
  if (this.canShow(configs)) {
48
44
  await this.hide();
49
45
  this.fieldDescriptor = this.dataUnit.getField(configs.columnName);
50
- this.buildIsTextSearch();
51
46
  this.setOptions(configs.filteredOptions);
52
47
  this.columnName = configs.columnName;
53
48
  this.columnLabel = configs.columnLabel;
54
- await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
49
+ await this.ezPopoverElement.show(this.calcTopPosition(), configs.leftPosition);
55
50
  }
56
51
  }
57
- calculateLeftPosition(configs) {
58
- if (!configs.fromIcon) {
59
- return configs.leftPosition;
60
- }
61
- const difference = this.ezPopoverElement.getBoundingClientRect().left;
62
- const leftReference = parseInt(configs.leftPosition.replace('px', ''));
63
- const leftResolved = (leftReference + 16) - difference;
64
- return `${(leftResolved > 0 ? leftResolved : 0)}px`;
65
- }
66
- buildIsTextSearch() {
67
- var _a, _b;
68
- const userInterface = (_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.userInterface) !== null && _b !== void 0 ? _b : core.UserInterface.SHORTTEXT;
69
- this.isTextSearch = !(userInterface === core.UserInterface.DECIMALNUMBER || userInterface === core.UserInterface.INTEGERNUMBER);
70
- }
71
52
  calcTopPosition() {
72
- const referencePosition = this.buildReferenceTopPosition();
53
+ const referencePosition = this.gridHeaderHidden
54
+ ? this.TOP_POSITION_HEADER_HIDDEN
55
+ : this.TOP_POSITION.replace('px', '');
73
56
  const totalPopoverHeight = parseInt(referencePosition) + this.DEFAULT_HEIGHT;
74
57
  const popoverPosition = Math.round(this.ezPopoverElement.getBoundingClientRect().top);
75
58
  const popoverBottomPosition = popoverPosition + totalPopoverHeight;
76
59
  const windowHeight = window.innerHeight;
77
60
  if (windowHeight > popoverBottomPosition) {
78
- return `${referencePosition}px`;
61
+ return referencePosition;
79
62
  }
80
63
  const differenceBetween = windowHeight - popoverBottomPosition;
81
64
  return `${differenceBetween}px`;
82
65
  }
83
- buildReferenceTopPosition() {
84
- if (this.noHeaderTaskBar) {
85
- return this.gridHeaderHidden ? this.TOP_POSITION_NO_TASKBAR_HEADER_HIDDEN : this.TOP_POSITION_NO_TASKBAR;
86
- }
87
- return this.gridHeaderHidden ? this.TOP_POSITION_HEADER_HIDDEN : this.TOP_POSITION;
88
- }
89
66
  async clearConfigs() {
90
67
  var _a;
91
68
  await ((_a = this.ezMultiSelectionList) === null || _a === void 0 ? void 0 : _a.clearFilteredOptions());
@@ -143,7 +120,7 @@ const FilterColumn = class {
143
120
  }
144
121
  }
145
122
  render() {
146
- return (index.h("ez-popover", { class: 'filter-column__popover', "overlay-type": 'none', ref: (element) => (this.ezPopoverElement = element), autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, index.h("section", { class: 'filter-column' }, index.h("header", { class: 'filter-column__header' }, index.h("span", { class: 'ez-text ez-text--medium filter-column__header-title' }, "Filtro da coluna ", this.columnLabel), index.h("ez-button", { mode: 'icon', "icon-name": 'close', class: 'ez-button--tertiary', onClick: () => this.hide() })), index.h("ez-multi-selection-list", { columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail), isTextSearch: this.isTextSearch }), index.h("footer", { class: 'filter-column__footer' }, index.h("ez-button", { label: 'Aplicar', class: 'ez-button--primary', onClick: this.submit.bind(this) })))));
123
+ return (index.h("ez-popover", { class: 'filter-column__popover', "overlay-type": 'none', ref: (element) => (this.ezPopoverElement = element), autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, index.h("section", { class: 'filter-column' }, index.h("header", { class: 'filter-column__header' }, index.h("span", { class: 'ez-text ez-text--medium filter-column__header-title' }, "Filtro da coluna ", this.columnLabel), index.h("ez-button", { mode: 'icon', "icon-name": 'close', class: 'ez-button--tertiary', onClick: () => this.hide() })), index.h("ez-multi-selection-list", { columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail) }), index.h("footer", { class: 'filter-column__footer' }, index.h("ez-button", { label: 'Aplicar', class: 'ez-button--primary', onClick: this.submit.bind(this) })))));
147
124
  }
148
125
  };
149
126
  FilterColumn.style = filterColumnCss;