@sankhyalabs/ezui 4.0.4 → 4.2.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 (46) hide show
  1. package/dist/cjs/{constants-5a75e2f3.js → constants-5d588e38.js} +2 -0
  2. package/dist/cjs/ez-check.cjs.entry.js +12 -1
  3. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-form.cjs.entry.js +64 -36
  6. package/dist/cjs/ez-grid.cjs.entry.js +331 -72
  7. package/dist/cjs/ezui.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/ez-check/ez-check.js +14 -1
  10. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +16 -1
  11. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +72 -15
  12. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +9 -1
  13. package/dist/collection/components/ez-grid/ez-grid.css +52 -7
  14. package/dist/collection/components/ez-grid/ez-grid.js +226 -57
  15. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +23 -0
  16. package/dist/collection/utils/constants.js +1 -0
  17. package/dist/collection/utils/form/DataBinder.js +47 -30
  18. package/dist/collection/utils/form/FormMetadata.js +17 -6
  19. package/dist/custom-elements/index.js +409 -111
  20. package/dist/esm/constants-76d2e931.js +4 -0
  21. package/dist/esm/ez-check.entry.js +12 -1
  22. package/dist/esm/ez-combo-box.entry.js +1 -1
  23. package/dist/esm/ez-form-view.entry.js +1 -1
  24. package/dist/esm/ez-form.entry.js +64 -36
  25. package/dist/esm/ez-grid.entry.js +333 -74
  26. package/dist/esm/ezui.js +1 -1
  27. package/dist/esm/loader.js +1 -1
  28. package/dist/ezui/ezui.esm.js +1 -1
  29. package/dist/ezui/p-1f841f3c.entry.js +1 -0
  30. package/dist/ezui/{p-dc15b6d1.entry.js → p-8105c967.entry.js} +2 -2
  31. package/dist/ezui/{p-50883460.entry.js → p-878646a0.entry.js} +1 -1
  32. package/dist/ezui/p-a3ce3710.entry.js +1 -0
  33. package/dist/ezui/p-b01e3085.js +1 -0
  34. package/dist/ezui/{p-e748b5d3.entry.js → p-b7ea9791.entry.js} +1 -1
  35. package/dist/types/components/ez-check/ez-check.d.ts +1 -0
  36. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +10 -2
  37. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -2
  38. package/dist/types/components/ez-grid/ez-grid.d.ts +32 -11
  39. package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +13 -0
  40. package/dist/types/utils/constants.d.ts +1 -0
  41. package/dist/types/utils/form/DataBinder.d.ts +3 -2
  42. package/package.json +1 -1
  43. package/dist/esm/constants-ca136201.js +0 -3
  44. package/dist/ezui/p-08f4a048.entry.js +0 -1
  45. package/dist/ezui/p-3f4ae3a3.js +0 -1
  46. package/dist/ezui/p-a323b415.entry.js +0 -1
@@ -1,5 +1,6 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-de655f48.js';
2
- import { Action, ObjectUtils as ObjectUtils$1, ApplicationContext, StringUtils as StringUtils$1, UserInterface, NumberUtils as NumberUtils$1, DataType, SortMode, ElementIDUtils } from '@sankhyalabs/core';
1
+ import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-de655f48.js';
2
+ import { Action, ObjectUtils as ObjectUtils$1, ApplicationContext, StringUtils as StringUtils$1, UserInterface, NumberUtils as NumberUtils$1, DataType, SortMode, ElementIDUtils, JSUtils } from '@sankhyalabs/core';
3
+ import { A as ALL_RECORD } from './constants-76d2e931.js';
3
4
 
4
5
  /**
5
6
  * @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1
@@ -118937,6 +118938,7 @@ class DataSource {
118937
118938
  this._controller.refresh();
118938
118939
  break;
118939
118940
  case Action.SELECTION_CHANGED:
118941
+ case Action.SELECTION_REMOVED:
118940
118942
  case Action.NEXT_SELECTED:
118941
118943
  case Action.PREVIOUS_SELECTED:
118942
118944
  this.updateSelection();
@@ -118950,7 +118952,14 @@ class DataSource {
118950
118952
  this._dataUnit.subscribe(this.duObserver);
118951
118953
  }
118952
118954
  updateSelection() {
118953
- this._controller.selectRows(this._dataUnit.getSelection());
118955
+ var _a;
118956
+ const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getAllSelection();
118957
+ if ((selection === null || selection === void 0 ? void 0 : selection.length) > 0) {
118958
+ this._controller.selectRows(selection);
118959
+ }
118960
+ else {
118961
+ this._controller.deselectAll();
118962
+ }
118954
118963
  }
118955
118964
  getRows(params) {
118956
118965
  if (this.needReload(params)) {
@@ -119152,7 +119161,7 @@ class AgGridController {
119152
119161
  else {
119153
119162
  this._grid = new Grid(container, this._gridOptions);
119154
119163
  }
119155
- const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
119164
+ const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getAllSelection();
119156
119165
  if (selection) {
119157
119166
  this.selectRows(selection);
119158
119167
  }
@@ -119226,30 +119235,72 @@ class AgGridController {
119226
119235
  opt.suppressDragLeaveHidesColumns = true;
119227
119236
  opt.suppressMenuHide = true;
119228
119237
  }
119238
+ isAllRecordSetted(allSelection) {
119239
+ return allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((selectedRecord) => {
119240
+ return selectedRecord.__record__id__ === ALL_RECORD;
119241
+ });
119242
+ }
119229
119243
  getSelectionHeaderStatus() {
119230
119244
  const records = this._dataUnit.records;
119231
119245
  if (records && records.length === 0) {
119232
119246
  return false;
119233
119247
  }
119234
- const selection = this._dataUnit.getSelection();
119235
- if (selection == undefined || selection.length === 0) {
119248
+ const allSelection = this._dataUnit.getAllSelection();
119249
+ if (allSelection == undefined || allSelection.length === 0) {
119236
119250
  return false;
119237
119251
  }
119238
- if (selection.length != records.length) {
119252
+ if (this.isAllRecordSetted(allSelection)) {
119253
+ return true;
119254
+ }
119255
+ if (allSelection.length != records.length) {
119256
+ return undefined;
119257
+ }
119258
+ const selectedRecords = this._dataUnit.getSelectedRecords();
119259
+ if (selectedRecords.length < allSelection.length) {
119239
119260
  return undefined;
119240
119261
  }
119241
119262
  let status = undefined;
119242
119263
  for (let i = 0; i < records.length; i++) {
119243
- const current = selection.includes(records[i].__record__id__);
119264
+ const current = allSelection.some((selectedRecord) => {
119265
+ return selectedRecord.__record__id__ === records[i].__record__id__;
119266
+ });
119244
119267
  if (status != undefined && current !== status) {
119245
- return undefined;
119268
+ return;
119246
119269
  }
119247
119270
  status = current;
119248
119271
  }
119249
119272
  return status;
119250
119273
  }
119251
- updateSelectionForAll(selectAll) {
119252
- this._dataUnit.setSelection(selectAll ? this._dataUnit.records.map(r => r.__record__id__) : []);
119274
+ async updateSelectionForAll(selectAll) {
119275
+ if (this._dataUnit == undefined) {
119276
+ return;
119277
+ }
119278
+ let allSelection = this._dataUnit.getAllSelection();
119279
+ if (allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((sel) => sel.__record__id__ === ALL_RECORD)) {
119280
+ await this._dataUnit.clearSelection();
119281
+ }
119282
+ let updateSelection = [];
119283
+ const records = this._dataUnit.records;
119284
+ const selectedRecords = this._dataUnit.getSelectedRecords();
119285
+ allSelection = this._dataUnit.getAllSelection();
119286
+ if (selectAll && selectedRecords.length < records.length) {
119287
+ updateSelection = records;
119288
+ allSelection.forEach((selectedRecord) => {
119289
+ const recordIds = updateSelection.map((record) => record.__record__id__);
119290
+ if (!recordIds.includes(selectedRecord.__record__id__)) {
119291
+ updateSelection.push(selectedRecord);
119292
+ }
119293
+ });
119294
+ }
119295
+ else {
119296
+ updateSelection = allSelection.filter((selectedRecord) => {
119297
+ return !(records || [])
119298
+ .some((record) => {
119299
+ return record.__record__id__ === selectedRecord.__record__id__;
119300
+ });
119301
+ });
119302
+ }
119303
+ this._dataUnit.setSelection(updateSelection);
119253
119304
  }
119254
119305
  setData(data) {
119255
119306
  if (this._grid === undefined) {
@@ -119273,7 +119324,7 @@ class AgGridController {
119273
119324
  }
119274
119325
  this._gridOptions.api.forEachNode(node => {
119275
119326
  var _a;
119276
- if (rowIds && rowIds.includes(node.id)) {
119327
+ if (rowIds && rowIds.find(row => row.__record__id__ === node.id)) {
119277
119328
  node.setSelected(true);
119278
119329
  (_a = this._gridOptions.api) === null || _a === void 0 ? void 0 : _a.ensureNodeVisible(node);
119279
119330
  }
@@ -119281,10 +119332,7 @@ class AgGridController {
119281
119332
  node.setSelected(false);
119282
119333
  }
119283
119334
  });
119284
- const selectionHeader = this._gridOptions.context.selectionHeader;
119285
- if (selectionHeader) {
119286
- selectionHeader.updateCheckbox();
119287
- }
119335
+ this.updateCheckbox();
119288
119336
  }
119289
119337
  removeRows() {
119290
119338
  if (this._grid === undefined) {
@@ -119379,7 +119427,7 @@ class AgGridController {
119379
119427
  if (this._grid === undefined) {
119380
119428
  throw new Error("Erro interno: Grid ainda não inicializado.");
119381
119429
  }
119382
- const colDef = this._gridOptions.columnApi.getAllColumns();
119430
+ const colDef = this._gridOptions.columnApi.getColumns();
119383
119431
  return colDef.filter(c => ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID].includes(c.getColId())).map(c => {
119384
119432
  const def = c.getColDef();
119385
119433
  const colDef = { name: def.field, label: def.headerName };
@@ -119397,12 +119445,16 @@ class AgGridController {
119397
119445
  if (this._grid === undefined) {
119398
119446
  throw new Error("Erro interno: Grid ainda não inicializado.");
119399
119447
  }
119448
+ const colDef = this._gridOptions.columnApi.getColumns();
119400
119449
  let columns = this.getColumnsDef();
119401
119450
  let visibleColumns = [];
119451
+ //Existem colunas implícitas que não tem estado, essas colunas são sempre as primeiras.
119452
+ //Como vamos reordenar, precisamos considerar o deslocamento provocado por elas.
119453
+ const columnsOffset = colDef.length - columns.length;
119402
119454
  let sort = [];
119403
119455
  state.forEach((cfgColumn, index) => {
119404
119456
  const colWidth = this.getColumnWidth(cfgColumn);
119405
- this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + 2);
119457
+ this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
119406
119458
  this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
119407
119459
  visibleColumns.push(cfgColumn.name);
119408
119460
  if (cfgColumn.ascending !== undefined) {
@@ -119463,6 +119515,19 @@ class AgGridController {
119463
119515
  var _a;
119464
119516
  (_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
119465
119517
  }
119518
+ deselectAll() {
119519
+ var _a, _b;
119520
+ (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.deselectAll();
119521
+ this.updateCheckbox();
119522
+ }
119523
+ updateCheckbox() {
119524
+ var _a, _b;
119525
+ const selectionHeader = (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.context) === null || _b === void 0 ? void 0 : _b.selectionHeader;
119526
+ if (selectionHeader == undefined) {
119527
+ return;
119528
+ }
119529
+ selectionHeader.updateCheckbox();
119530
+ }
119466
119531
  buildColDef(source) {
119467
119532
  var _a, _b, _c;
119468
119533
  let tooltip = undefined;
@@ -119620,7 +119685,37 @@ class AgGridController {
119620
119685
  }
119621
119686
  }
119622
119687
 
119623
- const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ezgrid__header--background-color:var(--background--xlight, #FFF);--ezgrid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}.grid-header.sc-ez-grid{display:flex;justify-content:space-between;align-items:center;background-color:var(--ezgrid__header--background-color, #FFF);z-index:var(--visible)}.grid__container.sc-ez-grid{box-shadow:var(--ezgrid__container--shadow);padding-top:15px;margin-top:-12px;background-color:var(--ezgrid__header--background-color)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}";
119688
+ const SelectionCounter = (props) => {
119689
+ const { selectionCount, selectionPageCount, total, recordsLength, onSelectAll, onSelectPage, onClearAll, onClose } = props;
119690
+ const pageSelectedRecords = selectionPageCount === recordsLength;
119691
+ const allSelectedRecords = selectionCount === total;
119692
+ return (h("div", Object.assign({ class: "ez-box ez-box--shadow-small" }, getElementID("ezGridSelectionCounter")),
119693
+ h("div", { class: "ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium" },
119694
+ h("div", { class: "ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center" },
119695
+ h("label", Object.assign({ innerHTML: getText(selectionCount, allSelectedRecords), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))),
119696
+ h("div", { class: "ez-flex ez-margin-right--medium" },
119697
+ (pageSelectedRecords || allSelectedRecords) &&
119698
+ h("ez-button", Object.assign({ class: "ez-margin-right--medium", label: `Selecionar ${allSelectedRecords ? "apenas a página atual" : `todos os ${total} registros`}`, mode: "link", onClick: allSelectedRecords ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allSelectedRecords ? "Page" : "All"}`))),
119699
+ h("ez-button", Object.assign({ class: "grid__btn-clear", label: "Limpar", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
119700
+ h("button", Object.assign({ class: "grid__btn-close", title: "Fechar", onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
119701
+ h("ez-icon", { iconName: "close" })))));
119702
+ };
119703
+ function getText(selectionCount, allSelectedRecords) {
119704
+ if (allSelectedRecords) {
119705
+ return `Todos os <strong>${selectionCount} registros</strong> da grade estão selecionados.`;
119706
+ }
119707
+ else {
119708
+ const pluralChar = selectionCount > 1 ? "s" : "";
119709
+ return `Há <strong>${selectionCount} registro${pluralChar}</strong> selecionado${pluralChar}.`;
119710
+ }
119711
+ }
119712
+ function getElementID(sufix) {
119713
+ return {
119714
+ [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(sufix)
119715
+ };
119716
+ }
119717
+
119718
+ 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(--more-visible, 2);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}.grid-header.sc-ez-grid{display:flex;justify-content:space-between;align-items:center;background-color:var(--ez-grid__header--background-color, #FFF);z-index:var(--visible)}.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__container.sc-ez-grid{display:flex;align-items:center}.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)}";
119624
119719
 
119625
119720
  const EzGrid = class {
119626
119721
  constructor(hostRef) {
@@ -119630,8 +119725,13 @@ const EzGrid = class {
119630
119725
  this.ezDoubleClick = createEvent(this, "ezDoubleClick", 7);
119631
119726
  this.configChange = createEvent(this, "configChange", 7);
119632
119727
  this._gridController = new AgGridController(false);
119728
+ this._debounceTimer = 500;
119729
+ this._selectionAll = false;
119633
119730
  this._paginationInfo = undefined;
119634
119731
  this._paginationChangedByKeyboard = true;
119732
+ this._showSelectionCounter = false;
119733
+ this._selectionCount = 0;
119734
+ this._selectionPageCount = 0;
119635
119735
  this.multipleSelection = undefined;
119636
119736
  this.config = undefined;
119637
119737
  this.serverUrl = undefined;
@@ -119686,10 +119786,185 @@ const EzGrid = class {
119686
119786
  async quickFilter(term) {
119687
119787
  this._gridController.quickFilter(term);
119688
119788
  }
119789
+ observeConfig(config) {
119790
+ this._gridController.setColumnsState(config.columns);
119791
+ }
119689
119792
  onSelectionChange(evt) {
119690
- if (this.dataUnit) {
119691
- this.dataUnit.setSelection(evt.detail.selection.map((r) => r.__record__id__));
119793
+ const { selection } = evt === null || evt === void 0 ? void 0 : evt.detail;
119794
+ if (selection == undefined || this.dataUnit == undefined) {
119795
+ return;
119796
+ }
119797
+ if (this.isAllRecordSetted()) {
119798
+ this.updateSelectionPage(selection);
119799
+ return;
119800
+ }
119801
+ this.setSelection(selection);
119802
+ }
119803
+ updateSelectionPage(selection) {
119804
+ if (this._selectionAll) {
119805
+ this._selectionAll = false;
119806
+ }
119807
+ else {
119808
+ this.dataUnit.clearSelection()
119809
+ .then(() => {
119810
+ const records = this.dataUnit.records;
119811
+ const selectionPage = selection.filter((selectedRecord) => {
119812
+ return records.some((record) => {
119813
+ return record.__record__id__ === selectedRecord.__record__id__;
119814
+ });
119815
+ });
119816
+ this._gridController.selectRows(selectionPage);
119817
+ });
119818
+ }
119819
+ }
119820
+ isAllRecordSetted() {
119821
+ var _a;
119822
+ const allSelection = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAllSelection();
119823
+ return allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((selectedRecord) => {
119824
+ return selectedRecord.__record__id__ === ALL_RECORD;
119825
+ });
119826
+ }
119827
+ setSelection(selection) {
119828
+ if ((selection === null || selection === void 0 ? void 0 : selection.length) > 0) {
119829
+ this.dataUnit.setSelection(selection)
119830
+ .then(this.controlSelectionCounter.bind(this));
119831
+ }
119832
+ else {
119833
+ this.dataUnit.clearSelection()
119834
+ .then(this.controlSelectionCounter.bind(this));
119835
+ }
119836
+ }
119837
+ setAutoSelectAll() {
119838
+ var _a, _b, _c, _d;
119839
+ const { total } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
119840
+ if (total == undefined) {
119841
+ return;
119842
+ }
119843
+ this._selectionCount = total;
119844
+ this._selectionAll = true;
119845
+ this._showSelectionCounter = true;
119846
+ (_b = this._gridController) === null || _b === void 0 ? void 0 : _b.selectRows((_d = (_c = this.dataUnit) === null || _c === void 0 ? void 0 : _c.records) !== null && _d !== void 0 ? _d : []);
119847
+ }
119848
+ controlSelectionCounter() {
119849
+ var _a, _b;
119850
+ const allSelection = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAllSelection();
119851
+ const counter = (_b = allSelection === null || allSelection === void 0 ? void 0 : allSelection.length) !== null && _b !== void 0 ? _b : 0;
119852
+ if (this.isAllRecordSetted()) {
119853
+ this.setAutoSelectAll();
119854
+ return;
119855
+ }
119856
+ if (!this.multipleSelection || !this.isPaginationActived()) {
119857
+ this._showSelectionCounter = false;
119858
+ setTimeout(this.setSelectionCount.bind(this), this._debounceTimer);
119859
+ return;
119860
+ }
119861
+ if (counter > 1) {
119862
+ setTimeout(() => {
119863
+ this.setSelectionCount(counter);
119864
+ this._showSelectionCounter = true;
119865
+ }, this._debounceTimer);
119866
+ }
119867
+ else {
119868
+ this._showSelectionCounter = false;
119869
+ setTimeout(this.setSelectionCount.bind(this, counter), this._debounceTimer);
119870
+ }
119871
+ }
119872
+ setSelectionCount(value = 0) {
119873
+ var _a, _b;
119874
+ this._selectionCount = value;
119875
+ const selectPageRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecords();
119876
+ this._selectionPageCount = (_b = selectPageRecords === null || selectPageRecords === void 0 ? void 0 : selectPageRecords.length) !== null && _b !== void 0 ? _b : 0;
119877
+ }
119878
+ isPaginationActived() {
119879
+ var _a;
119880
+ const { total, lastRecord, firstRecord } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
119881
+ if (total == undefined || lastRecord == undefined || firstRecord == undefined) {
119882
+ return false;
119692
119883
  }
119884
+ return Math.ceil(total / (lastRecord - firstRecord + 1)) > 1;
119885
+ }
119886
+ onSelectAllRecords() {
119887
+ const allRecord = {
119888
+ __record__id__: ALL_RECORD,
119889
+ filter: this.dataUnit.getFilters(),
119890
+ sort: this.dataUnit.getSort()
119891
+ };
119892
+ this.setSelection([allRecord]);
119893
+ }
119894
+ onSelectPageRecords() {
119895
+ var _a;
119896
+ (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.clearSelection().then(() => {
119897
+ var _a, _b, _c;
119898
+ (_a = this._gridController) === null || _a === void 0 ? void 0 : _a.selectRows((_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) !== null && _c !== void 0 ? _c : []);
119899
+ });
119900
+ }
119901
+ onClearSelectedRecords() {
119902
+ var _a;
119903
+ (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.clearSelection();
119904
+ }
119905
+ createConfigFromState(state) {
119906
+ let newConfig = { columns: [] };
119907
+ state.forEach(columnState => {
119908
+ if (!columnState.hidden) {
119909
+ let newConfigColumn = { name: columnState.name };
119910
+ if (columnState.width) {
119911
+ newConfigColumn['width'] = columnState.width;
119912
+ }
119913
+ if (columnState.sort) {
119914
+ newConfigColumn['ascending'] = (columnState.sort.toUpperCase() === 'ASC');
119915
+ newConfigColumn['orderIndex'] = columnState.sortIndex;
119916
+ }
119917
+ else {
119918
+ newConfigColumn['orderIndex'] = 0;
119919
+ }
119920
+ if (newConfigColumn) {
119921
+ newConfig.columns.push(newConfigColumn);
119922
+ }
119923
+ }
119924
+ });
119925
+ return newConfig;
119926
+ }
119927
+ positionSelectionCounter() {
119928
+ var _a;
119929
+ if (this._gridSelectionCounter == undefined) {
119930
+ return;
119931
+ }
119932
+ if (this._showSelectionCounter) {
119933
+ const boundingContainer = (_a = this._container) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
119934
+ if (boundingContainer == undefined) {
119935
+ return;
119936
+ }
119937
+ const limitBottom = boundingContainer.bottom - 30;
119938
+ this._gridSelectionCounter.style.bottom = (document.body.clientHeight - limitBottom) + 'px';
119939
+ }
119940
+ else {
119941
+ this._gridSelectionCounter.style.bottom = "";
119942
+ }
119943
+ }
119944
+ setEvents() {
119945
+ window.removeEventListener("scroll", this.positionSelectionCounter.bind(this));
119946
+ window.addEventListener("scroll", this.positionSelectionCounter.bind(this));
119947
+ }
119948
+ resizeSelectionCounter() {
119949
+ if (this._gridSelectionCounter == undefined) {
119950
+ return;
119951
+ }
119952
+ this._gridSelectionCounter.style.width = "";
119953
+ if (this._gridSelectionCounter.clientHeight > 42) {
119954
+ this._gridSelectionCounter.style.width = "min-content";
119955
+ }
119956
+ this.positionSelectionCounter();
119957
+ }
119958
+ configSelectionCounter() {
119959
+ if (this._element == undefined) {
119960
+ return;
119961
+ }
119962
+ if (this._resizeObserver != undefined) {
119963
+ this._resizeObserver.unobserve(this._element);
119964
+ }
119965
+ this._resizeObserver = new ResizeObserver(JSUtils.debounce(this.resizeSelectionCounter.bind(this), 200));
119966
+ this._resizeObserver.observe(this._element);
119967
+ this.resizeSelectionCounter();
119693
119968
  }
119694
119969
  onColumnStateChange(type, state, info) {
119695
119970
  var _a;
@@ -119732,56 +120007,6 @@ const EzGrid = class {
119732
120007
  }
119733
120008
  }
119734
120009
  }
119735
- createConfigFromState(state) {
119736
- let newConfig = { columns: [] };
119737
- state.forEach(columnState => {
119738
- if (!columnState.hidden) {
119739
- let newConfigColumn = { name: columnState.name };
119740
- if (columnState.width) {
119741
- newConfigColumn['width'] = columnState.width;
119742
- }
119743
- if (columnState.sort) {
119744
- newConfigColumn['ascending'] = (columnState.sort.toUpperCase() === 'ASC');
119745
- newConfigColumn['orderIndex'] = columnState.sortIndex;
119746
- }
119747
- else {
119748
- newConfigColumn['orderIndex'] = 0;
119749
- }
119750
- if (newConfigColumn) {
119751
- newConfig.columns.push(newConfigColumn);
119752
- }
119753
- }
119754
- });
119755
- return newConfig;
119756
- }
119757
- componentDidLoad() {
119758
- this._gridController.initDatagrid(this._container, {
119759
- onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
119760
- onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
119761
- onPaginationChange: (paginationInfo) => {
119762
- var _a;
119763
- if (((_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.currentPage) > (paginationInfo === null || paginationInfo === void 0 ? void 0 : paginationInfo.currentPage) && this._paginationChangedByKeyboard) {
119764
- this._gridController.setFocusLastRow();
119765
- }
119766
- else {
119767
- this._gridController.setFocusFirstRow();
119768
- this._paginationChangedByKeyboard = true;
119769
- }
119770
- this._paginationInfo = paginationInfo;
119771
- },
119772
- onDoubleClick: (row) => {
119773
- this.ezDoubleClick.emit(row);
119774
- },
119775
- allowMultipleSelection: this.multipleSelection,
119776
- serverURL: this.serverUrl,
119777
- dataUnit: this.dataUnit,
119778
- statusResolver: this.statusResolver
119779
- });
119780
- if (this.config) {
119781
- this.observeConfig(this.config);
119782
- }
119783
- this.buildDataElementId();
119784
- }
119785
120010
  buildDataElementId() {
119786
120011
  const dataInfo = { dataUnit: this.dataUnit };
119787
120012
  ElementIDUtils.addIDInfo(this._element, null, dataInfo);
@@ -119811,11 +120036,45 @@ const EzGrid = class {
119811
120036
  }
119812
120037
  return null;
119813
120038
  }
119814
- observeConfig(config) {
119815
- this._gridController.setColumnsState(config.columns);
120039
+ componentDidLoad() {
120040
+ this._gridController.initDatagrid(this._container, {
120041
+ onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
120042
+ onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
120043
+ onPaginationChange: (paginationInfo) => {
120044
+ var _a;
120045
+ if (((_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.currentPage) > (paginationInfo === null || paginationInfo === void 0 ? void 0 : paginationInfo.currentPage) && this._paginationChangedByKeyboard) {
120046
+ this._gridController.setFocusLastRow();
120047
+ }
120048
+ else {
120049
+ this._gridController.setFocusFirstRow();
120050
+ this._paginationChangedByKeyboard = true;
120051
+ }
120052
+ this._paginationInfo = paginationInfo;
120053
+ this._gridController.updateCheckbox();
120054
+ this.controlSelectionCounter();
120055
+ },
120056
+ onDoubleClick: (row) => {
120057
+ this.ezDoubleClick.emit(row);
120058
+ },
120059
+ allowMultipleSelection: this.multipleSelection,
120060
+ serverURL: this.serverUrl,
120061
+ dataUnit: this.dataUnit,
120062
+ statusResolver: this.statusResolver
120063
+ });
120064
+ if (this.config) {
120065
+ this.observeConfig(this.config);
120066
+ }
120067
+ this.buildDataElementId();
120068
+ this.setEvents();
120069
+ }
120070
+ componentWillRender() {
120071
+ this.configSelectionCounter();
119816
120072
  }
119817
120073
  render() {
119818
- return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => this._refPaginationControl = ref }, this.getPaginationControl())), h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), h("div", { class: "grid__footer" })));
120074
+ var _a, _b, _c;
120075
+ return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => this._refPaginationControl = ref }, this.getPaginationControl())), h("div", { ref: (ref) => this._gridSelectionCounter = ref, class: `grid__selection-counter
120076
+ ${this._showSelectionCounter ? "grid__selection-counter--opened" : ""}
120077
+ ` }, h(SelectionCounter, { selectionCount: this._selectionCount, selectionPageCount: this._selectionPageCount, total: (_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.total, recordsLength: (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length, onSelectAll: this.onSelectAllRecords.bind(this), onSelectPage: this.onSelectPageRecords.bind(this), onClearAll: this.onClearSelectedRecords.bind(this), onClose: () => this._showSelectionCounter = false })), h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), h("div", { class: "grid__footer" })));
119819
120078
  }
119820
120079
  static get assetsDirs() { return ["../assets"]; }
119821
120080
  get _element() { return getElement(this); }
package/dist/esm/ezui.js CHANGED
@@ -14,5 +14,5 @@ const patchBrowser = () => {
14
14
  };
15
15
 
16
16
  patchBrowser().then(options => {
17
- return bootstrapLazy([["ez-actions-button",[[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",[[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",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container",[[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",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-file-item",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-toast",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-form-view",[[2,"ez-form-view",{"fields":[16],"showUp":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-text-input",[[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-guide-navigator",[[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-dropdown",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["ez-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[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-search",[[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],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-input",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-time-input",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload",[[1,"ez-upload",{"label":[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",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box",[[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],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-filter-input_4",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"setValue":[64],"endSearch":[64]}],[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-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button",[[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",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
17
+ return bootstrapLazy([["ez-actions-button",[[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",[[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",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_selectionCount":[32],"_selectionPageCount":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container",[[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",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-file-item",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover",[[1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-toast",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-form-view",[[2,"ez-form-view",{"fields":[16],"showUp":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-text-input",[[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-guide-navigator",[[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-dropdown",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["ez-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[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-search",[[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],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-input",[[1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-date-time-input",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-time-input",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input",[[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload",[[1,"ez-upload",{"label":[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",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box",[[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],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-filter-input_4",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"setFocus":[64],"setBlur":[64],"isInvalid":[64],"setValue":[64],"endSearch":[64]}],[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-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button",[[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",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
18
18
  });