@sankhyalabs/ezui 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-5d588e38.js → constants-5a75e2f3.js} +0 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +0 -1
- package/dist/cjs/ez-grid.cjs.entry.js +112 -213
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +86 -84
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -16
- package/dist/collection/components/ez-grid/ez-grid.js +21 -110
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +3 -5
- package/dist/collection/utils/form/DataBinder.js +0 -1
- package/dist/custom-elements/index.js +113 -215
- package/dist/esm/constants-ca136201.js +3 -0
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +0 -1
- package/dist/esm/ez-grid.entry.js +112 -213
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-03164b9f.entry.js +1 -0
- package/dist/ezui/p-3f4ae3a3.js +1 -0
- package/dist/ezui/{p-878646a0.entry.js → p-50883460.entry.js} +1 -1
- package/dist/ezui/{p-ef705232.entry.js → p-8654802d.entry.js} +2 -2
- package/dist/ezui/{p-b7ea9791.entry.js → p-e748b5d3.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +6 -10
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -5
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +0 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -9
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -2
- package/package.json +1 -1
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +0 -73
- package/dist/esm/constants-76d2e931.js +0 -4
- package/dist/ezui/p-1f841f3c.entry.js +0 -1
- package/dist/ezui/p-b01e3085.js +0 -1
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +0 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-de655f48.js';
|
|
2
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 {
|
|
3
|
+
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @ag-grid-community/all-modules - Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue * @version v28.2.1
|
|
@@ -118930,6 +118930,7 @@ class DataSource {
|
|
|
118930
118930
|
if (this._options) {
|
|
118931
118931
|
this._options.onPaginationChange(this._dataUnit.getPaginationInfo());
|
|
118932
118932
|
}
|
|
118933
|
+
this.updateSelection();
|
|
118933
118934
|
break;
|
|
118934
118935
|
case Action.RECORDS_REMOVED:
|
|
118935
118936
|
case Action.DATA_SAVED:
|
|
@@ -118938,7 +118939,6 @@ class DataSource {
|
|
|
118938
118939
|
this._controller.refresh();
|
|
118939
118940
|
break;
|
|
118940
118941
|
case Action.SELECTION_CHANGED:
|
|
118941
|
-
case Action.SELECTION_REMOVED:
|
|
118942
118942
|
case Action.NEXT_SELECTED:
|
|
118943
118943
|
case Action.PREVIOUS_SELECTED:
|
|
118944
118944
|
this.updateSelection();
|
|
@@ -118952,25 +118952,14 @@ class DataSource {
|
|
|
118952
118952
|
this._dataUnit.subscribe(this.duObserver);
|
|
118953
118953
|
}
|
|
118954
118954
|
updateSelection() {
|
|
118955
|
-
|
|
118956
|
-
if (
|
|
118957
|
-
|
|
118958
|
-
}
|
|
118959
|
-
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
118960
|
-
if ((dataSelection === null || dataSelection === void 0 ? void 0 : dataSelection.length) > 0) {
|
|
118961
|
-
this._controller.selectRows(dataSelection);
|
|
118955
|
+
const selectionInfo = this._dataUnit.getSelectionInfo();
|
|
118956
|
+
if (selectionInfo.isAllRecords()) {
|
|
118957
|
+
this._controller.selectAll(true);
|
|
118962
118958
|
}
|
|
118963
118959
|
else {
|
|
118964
|
-
this._controller.
|
|
118960
|
+
this._controller.selectRows(selectionInfo.recordIds, true);
|
|
118965
118961
|
}
|
|
118966
118962
|
}
|
|
118967
|
-
isSelectionEquals() {
|
|
118968
|
-
var _a, _b;
|
|
118969
|
-
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
118970
|
-
const controlSelection = (_b = this._controller) === null || _b === void 0 ? void 0 : _b.getSelection();
|
|
118971
|
-
return ObjectUtils$1.objectToString(dataSelection || []) ===
|
|
118972
|
-
ObjectUtils$1.objectToString(controlSelection || []);
|
|
118973
|
-
}
|
|
118974
118963
|
getRows(params) {
|
|
118975
118964
|
if (this.needReload(params)) {
|
|
118976
118965
|
this._lastLoadingParams = params;
|
|
@@ -119171,9 +119160,12 @@ class AgGridController {
|
|
|
119171
119160
|
else {
|
|
119172
119161
|
this._grid = new Grid(container, this._gridOptions);
|
|
119173
119162
|
}
|
|
119174
|
-
const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.
|
|
119175
|
-
if (selection) {
|
|
119176
|
-
this.
|
|
119163
|
+
const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo();
|
|
119164
|
+
if (selection === null || selection === void 0 ? void 0 : selection.isAllRecords()) {
|
|
119165
|
+
this.selectAll(true);
|
|
119166
|
+
}
|
|
119167
|
+
else {
|
|
119168
|
+
this.selectRows((selection === null || selection === void 0 ? void 0 : selection.recordIds) || [], true);
|
|
119177
119169
|
}
|
|
119178
119170
|
this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
|
|
119179
119171
|
}
|
|
@@ -119237,7 +119229,7 @@ class AgGridController {
|
|
|
119237
119229
|
opt.onColumnPinned = e => this.onCallStateChange("columnPinned", e);
|
|
119238
119230
|
opt.onColumnMoved = e => this.onCallStateChange("columnMoved", e);
|
|
119239
119231
|
opt.onColumnVisible = e => this.onCallStateChange("visibleChange", e);
|
|
119240
|
-
opt.onSelectionChanged =
|
|
119232
|
+
opt.onSelectionChanged = e => this.onSelectionChange(e);
|
|
119241
119233
|
opt.onRowDoubleClicked = evt => this.onRowDoubleClick(evt);
|
|
119242
119234
|
opt.onDragStopped = evt => this.onCallStateChange("columnMovedEnd", evt);
|
|
119243
119235
|
}
|
|
@@ -119245,72 +119237,31 @@ class AgGridController {
|
|
|
119245
119237
|
opt.suppressDragLeaveHidesColumns = true;
|
|
119246
119238
|
opt.suppressMenuHide = true;
|
|
119247
119239
|
}
|
|
119248
|
-
isAllRecordSetted(allSelection) {
|
|
119249
|
-
return allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((selectedRecord) => {
|
|
119250
|
-
return selectedRecord.__record__id__ === ALL_RECORD;
|
|
119251
|
-
});
|
|
119252
|
-
}
|
|
119253
119240
|
getSelectionHeaderStatus() {
|
|
119254
119241
|
const records = this._dataUnit.records;
|
|
119255
119242
|
if (records && records.length === 0) {
|
|
119256
119243
|
return false;
|
|
119257
119244
|
}
|
|
119258
|
-
const
|
|
119259
|
-
if (
|
|
119260
|
-
return false;
|
|
119261
|
-
}
|
|
119262
|
-
if (this.isAllRecordSetted(allSelection)) {
|
|
119245
|
+
const selectionInfo = this._dataUnit.getSelectionInfo();
|
|
119246
|
+
if (selectionInfo.isAllRecords()) {
|
|
119263
119247
|
return true;
|
|
119264
119248
|
}
|
|
119265
|
-
|
|
119266
|
-
|
|
119267
|
-
|
|
119268
|
-
const selectedRecords = this._dataUnit.getSelectedRecords();
|
|
119269
|
-
if (selectedRecords.length < allSelection.length) {
|
|
119270
|
-
return undefined;
|
|
119249
|
+
const selection = selectionInfo.recordIds;
|
|
119250
|
+
if (selection == undefined || selection.length === 0) {
|
|
119251
|
+
return false;
|
|
119271
119252
|
}
|
|
119272
119253
|
let status = undefined;
|
|
119273
119254
|
for (let i = 0; i < records.length; i++) {
|
|
119274
|
-
const current =
|
|
119275
|
-
return selectedRecord.__record__id__ === records[i].__record__id__;
|
|
119276
|
-
});
|
|
119255
|
+
const current = selection.includes(records[i].__record__id__);
|
|
119277
119256
|
if (status != undefined && current !== status) {
|
|
119278
|
-
return;
|
|
119257
|
+
return undefined;
|
|
119279
119258
|
}
|
|
119280
119259
|
status = current;
|
|
119281
119260
|
}
|
|
119282
119261
|
return status;
|
|
119283
119262
|
}
|
|
119284
|
-
|
|
119285
|
-
|
|
119286
|
-
return;
|
|
119287
|
-
}
|
|
119288
|
-
let allSelection = this._dataUnit.getSelection();
|
|
119289
|
-
if (allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((sel) => sel.__record__id__ === ALL_RECORD)) {
|
|
119290
|
-
await this._dataUnit.clearSelection();
|
|
119291
|
-
}
|
|
119292
|
-
let updateSelection = [];
|
|
119293
|
-
const records = this._dataUnit.records;
|
|
119294
|
-
const selectedRecords = this._dataUnit.getSelectedRecords();
|
|
119295
|
-
allSelection = this._dataUnit.getSelection();
|
|
119296
|
-
if (selectAll && selectedRecords.length < records.length) {
|
|
119297
|
-
updateSelection = records;
|
|
119298
|
-
allSelection.forEach((selectedRecord) => {
|
|
119299
|
-
const recordIds = updateSelection.map((record) => record.__record__id__);
|
|
119300
|
-
if (!recordIds.includes(selectedRecord.__record__id__)) {
|
|
119301
|
-
updateSelection.push(selectedRecord);
|
|
119302
|
-
}
|
|
119303
|
-
});
|
|
119304
|
-
}
|
|
119305
|
-
else {
|
|
119306
|
-
updateSelection = allSelection.filter((selectedRecord) => {
|
|
119307
|
-
return !(records || [])
|
|
119308
|
-
.some((record) => {
|
|
119309
|
-
return record.__record__id__ === selectedRecord.__record__id__;
|
|
119310
|
-
});
|
|
119311
|
-
});
|
|
119312
|
-
}
|
|
119313
|
-
this._dataUnit.setSelection(updateSelection);
|
|
119263
|
+
updateSelectionForAll(selectAll) {
|
|
119264
|
+
this._dataUnit.updatePageSelection(selectAll ? this._dataUnit.records.map(r => r.__record__id__) : []);
|
|
119314
119265
|
}
|
|
119315
119266
|
setData(data) {
|
|
119316
119267
|
if (this._grid === undefined) {
|
|
@@ -119328,21 +119279,55 @@ class AgGridController {
|
|
|
119328
119279
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
119329
119280
|
}
|
|
119330
119281
|
}
|
|
119331
|
-
|
|
119332
|
-
|
|
119333
|
-
|
|
119282
|
+
selectAll(quietly = false) {
|
|
119283
|
+
try {
|
|
119284
|
+
this._gridOptions.context.selectionChangeQuietly = quietly;
|
|
119285
|
+
this._gridOptions.api.forEachNode(node => {
|
|
119286
|
+
if (!node.isSelected()) {
|
|
119287
|
+
node.setSelected(true);
|
|
119288
|
+
}
|
|
119289
|
+
});
|
|
119290
|
+
}
|
|
119291
|
+
finally {
|
|
119292
|
+
const newContext = Object.assign({}, this._gridOptions.context);
|
|
119293
|
+
delete newContext.selectionChangeQuietly;
|
|
119294
|
+
this._gridOptions.context = newContext;
|
|
119334
119295
|
}
|
|
119335
|
-
|
|
119336
|
-
|
|
119337
|
-
|
|
119338
|
-
|
|
119339
|
-
|
|
119296
|
+
}
|
|
119297
|
+
selectRows(rowIds, quietly = false) {
|
|
119298
|
+
var _a;
|
|
119299
|
+
try {
|
|
119300
|
+
this._gridOptions.context.selectionChangeQuietly = quietly;
|
|
119301
|
+
if (this._grid === undefined) {
|
|
119302
|
+
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
119340
119303
|
}
|
|
119341
|
-
|
|
119342
|
-
|
|
119304
|
+
let lastSelected;
|
|
119305
|
+
this._gridOptions.api.forEachNode(node => {
|
|
119306
|
+
if (rowIds && rowIds.includes(node.id)) {
|
|
119307
|
+
if (!node.isSelected()) {
|
|
119308
|
+
node.setSelected(true);
|
|
119309
|
+
lastSelected = node;
|
|
119310
|
+
}
|
|
119311
|
+
}
|
|
119312
|
+
else {
|
|
119313
|
+
if (node.isSelected()) {
|
|
119314
|
+
node.setSelected(false);
|
|
119315
|
+
}
|
|
119316
|
+
}
|
|
119317
|
+
});
|
|
119318
|
+
const selectionHeader = this._gridOptions.context.selectionHeader;
|
|
119319
|
+
if (selectionHeader) {
|
|
119320
|
+
selectionHeader.updateCheckbox();
|
|
119343
119321
|
}
|
|
119344
|
-
|
|
119345
|
-
|
|
119322
|
+
if (lastSelected) {
|
|
119323
|
+
(_a = this._gridOptions.api) === null || _a === void 0 ? void 0 : _a.ensureNodeVisible(lastSelected);
|
|
119324
|
+
}
|
|
119325
|
+
}
|
|
119326
|
+
finally {
|
|
119327
|
+
const newContext = Object.assign({}, this._gridOptions.context);
|
|
119328
|
+
delete newContext.selectionChangeQuietly;
|
|
119329
|
+
this._gridOptions.context = newContext;
|
|
119330
|
+
}
|
|
119346
119331
|
}
|
|
119347
119332
|
removeRows() {
|
|
119348
119333
|
if (this._grid === undefined) {
|
|
@@ -119525,19 +119510,6 @@ class AgGridController {
|
|
|
119525
119510
|
var _a;
|
|
119526
119511
|
(_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
|
|
119527
119512
|
}
|
|
119528
|
-
deselectAll() {
|
|
119529
|
-
var _a, _b;
|
|
119530
|
-
(_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.deselectAll();
|
|
119531
|
-
this.updateCheckbox();
|
|
119532
|
-
}
|
|
119533
|
-
updateCheckbox() {
|
|
119534
|
-
var _a, _b;
|
|
119535
|
-
const selectionHeader = (_b = (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.context) === null || _b === void 0 ? void 0 : _b.selectionHeader;
|
|
119536
|
-
if (selectionHeader == undefined) {
|
|
119537
|
-
return;
|
|
119538
|
-
}
|
|
119539
|
-
selectionHeader.updateCheckbox();
|
|
119540
|
-
}
|
|
119541
119513
|
buildColDef(source) {
|
|
119542
119514
|
var _a, _b, _c;
|
|
119543
119515
|
let tooltip = undefined;
|
|
@@ -119658,13 +119630,33 @@ class AgGridController {
|
|
|
119658
119630
|
}
|
|
119659
119631
|
return false;
|
|
119660
119632
|
}
|
|
119661
|
-
onSelectionChange() {
|
|
119633
|
+
onSelectionChange(event) {
|
|
119662
119634
|
if (this._selectionChangeCallback) {
|
|
119663
119635
|
clearTimeout(this._selectionChangeDeboucing);
|
|
119664
119636
|
this._selectionChangeDeboucing = window.setTimeout(() => {
|
|
119665
|
-
this.
|
|
119666
|
-
|
|
119667
|
-
|
|
119637
|
+
if (this._dataUnit) {
|
|
119638
|
+
if (event.context.selectionChangeQuietly) {
|
|
119639
|
+
const selectionInfo = this._dataUnit;
|
|
119640
|
+
this._selectionChangeCallback({
|
|
119641
|
+
selection: selectionInfo.records,
|
|
119642
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus()
|
|
119643
|
+
});
|
|
119644
|
+
}
|
|
119645
|
+
else {
|
|
119646
|
+
this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows().map((r) => r.__record__id__)).then(selectionInfo => {
|
|
119647
|
+
this._selectionChangeCallback({
|
|
119648
|
+
selection: selectionInfo.records,
|
|
119649
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus()
|
|
119650
|
+
});
|
|
119651
|
+
});
|
|
119652
|
+
}
|
|
119653
|
+
}
|
|
119654
|
+
else {
|
|
119655
|
+
this._selectionChangeCallback({
|
|
119656
|
+
selection: this._gridOptions.api.getSelectedRows(),
|
|
119657
|
+
selectionHeaderStatus: this.getSelectionHeaderStatus()
|
|
119658
|
+
});
|
|
119659
|
+
}
|
|
119668
119660
|
}, 0);
|
|
119669
119661
|
}
|
|
119670
119662
|
}
|
|
@@ -119696,16 +119688,14 @@ class AgGridController {
|
|
|
119696
119688
|
}
|
|
119697
119689
|
|
|
119698
119690
|
const SelectionCounter = (props) => {
|
|
119699
|
-
const { selectionCount,
|
|
119700
|
-
const pageSelectedRecords = selectionPageCount === recordsLength;
|
|
119701
|
-
const allSelectedRecords = selectionCount === total;
|
|
119691
|
+
const { selectionCount, currentPageSelected, total, allRecordSelected, onSelectAll, onSelectPage, onClearAll, onClose } = props;
|
|
119702
119692
|
return (h("div", Object.assign({ class: "ez-box ez-box--shadow-small" }, getElementID("ezGridSelectionCounter")),
|
|
119703
119693
|
h("div", { class: "ez-flex ez-flex--align-items-center ez-size-width--full ez-padding-horizontal--medium" },
|
|
119704
119694
|
h("div", { class: "ez-flex ez-flex--wrap ez-flex--align-items-baseline ez-flex--justify-center" },
|
|
119705
|
-
h("label", Object.assign({ innerHTML: getText(selectionCount,
|
|
119695
|
+
h("label", Object.assign({ innerHTML: getText(selectionCount, allRecordSelected), class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium ez-margin-top--medium" }, getElementID("ezGridSelectionCounter_label"))),
|
|
119706
119696
|
h("div", { class: "ez-flex ez-margin-right--medium" },
|
|
119707
|
-
(
|
|
119708
|
-
h("ez-button", Object.assign({ class: "ez-margin-right--medium", label: `Selecionar ${
|
|
119697
|
+
(currentPageSelected || allRecordSelected) &&
|
|
119698
|
+
h("ez-button", Object.assign({ class: "ez-margin-right--medium", label: `Selecionar ${allRecordSelected ? "apenas a página atual" : `todos os ${total} registros`}`, mode: "link", onClick: allRecordSelected ? onSelectPage : onSelectAll }, getElementID(`ezGridSelectionCounter_select${allRecordSelected ? "Page" : "All"}`))),
|
|
119709
119699
|
h("ez-button", Object.assign({ class: "grid__btn-clear", label: "Limpar", mode: "link", onClick: onClearAll }, getElementID("ezGridSelectionCounter_clearAll"))))),
|
|
119710
119700
|
h("button", Object.assign({ class: "grid__btn-close", title: "Fechar", onClick: onClose }, getElementID("ezGridSelectionCounter_close")),
|
|
119711
119701
|
h("ez-icon", { iconName: "close" })))));
|
|
@@ -119735,13 +119725,12 @@ const EzGrid = class {
|
|
|
119735
119725
|
this.ezDoubleClick = createEvent(this, "ezDoubleClick", 7);
|
|
119736
119726
|
this.configChange = createEvent(this, "configChange", 7);
|
|
119737
119727
|
this._gridController = new AgGridController(false);
|
|
119738
|
-
this._debounceTimer = 500;
|
|
119739
|
-
this._selectionAll = false;
|
|
119740
119728
|
this._paginationInfo = undefined;
|
|
119741
119729
|
this._paginationChangedByKeyboard = true;
|
|
119742
119730
|
this._showSelectionCounter = false;
|
|
119743
|
-
this.
|
|
119744
|
-
this.
|
|
119731
|
+
this._isAllSelection = false;
|
|
119732
|
+
this._currentPageSelected = undefined;
|
|
119733
|
+
this._selectionCount = undefined;
|
|
119745
119734
|
this.multipleSelection = undefined;
|
|
119746
119735
|
this.config = undefined;
|
|
119747
119736
|
this.serverUrl = undefined;
|
|
@@ -119800,117 +119789,29 @@ const EzGrid = class {
|
|
|
119800
119789
|
this._gridController.setColumnsState(config.columns);
|
|
119801
119790
|
}
|
|
119802
119791
|
onSelectionChange(evt) {
|
|
119803
|
-
|
|
119804
|
-
if (
|
|
119805
|
-
|
|
119806
|
-
}
|
|
119807
|
-
if (this.isAllRecordSetted()) {
|
|
119808
|
-
this.updateSelectionPage(selection);
|
|
119809
|
-
return;
|
|
119810
|
-
}
|
|
119811
|
-
this.setSelection(selection);
|
|
119812
|
-
}
|
|
119813
|
-
updateSelectionPage(selection) {
|
|
119814
|
-
if (this._selectionAll) {
|
|
119815
|
-
this._selectionAll = false;
|
|
119816
|
-
}
|
|
119817
|
-
else {
|
|
119818
|
-
this.dataUnit.clearSelection()
|
|
119819
|
-
.then(() => {
|
|
119820
|
-
const records = this.dataUnit.records;
|
|
119821
|
-
const selectionPage = selection.filter((selectedRecord) => {
|
|
119822
|
-
return records.some((record) => {
|
|
119823
|
-
return record.__record__id__ === selectedRecord.__record__id__;
|
|
119824
|
-
});
|
|
119825
|
-
});
|
|
119826
|
-
this._gridController.selectRows(selectionPage);
|
|
119827
|
-
});
|
|
119828
|
-
}
|
|
119829
|
-
}
|
|
119830
|
-
isAllRecordSetted() {
|
|
119831
|
-
var _a;
|
|
119832
|
-
const allSelection = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
119833
|
-
return allSelection === null || allSelection === void 0 ? void 0 : allSelection.some((selectedRecord) => {
|
|
119834
|
-
return selectedRecord.__record__id__ === ALL_RECORD;
|
|
119835
|
-
});
|
|
119836
|
-
}
|
|
119837
|
-
setSelection(selection) {
|
|
119838
|
-
if ((selection === null || selection === void 0 ? void 0 : selection.length) > 0) {
|
|
119839
|
-
this.dataUnit.setSelection(selection)
|
|
119840
|
-
.then(this.controlSelectionCounter.bind(this));
|
|
119841
|
-
}
|
|
119842
|
-
else {
|
|
119843
|
-
this.dataUnit.clearSelection()
|
|
119844
|
-
.then(this.controlSelectionCounter.bind(this));
|
|
119845
|
-
}
|
|
119846
|
-
}
|
|
119847
|
-
setAutoSelectAll() {
|
|
119848
|
-
var _a, _b, _c, _d;
|
|
119849
|
-
const { total } = (_a = this._paginationInfo) !== null && _a !== void 0 ? _a : {};
|
|
119850
|
-
if (total == undefined) {
|
|
119851
|
-
return;
|
|
119852
|
-
}
|
|
119853
|
-
this._selectionCount = total;
|
|
119854
|
-
this._selectionAll = true;
|
|
119855
|
-
this._showSelectionCounter = true;
|
|
119856
|
-
(_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 : []);
|
|
119857
|
-
}
|
|
119858
|
-
controlSelectionCounter() {
|
|
119859
|
-
var _a, _b;
|
|
119860
|
-
const allSelection = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
119861
|
-
const counter = (_b = allSelection === null || allSelection === void 0 ? void 0 : allSelection.length) !== null && _b !== void 0 ? _b : 0;
|
|
119862
|
-
if (this.isAllRecordSetted()) {
|
|
119863
|
-
this.setAutoSelectAll();
|
|
119864
|
-
return;
|
|
119865
|
-
}
|
|
119866
|
-
if (!this.multipleSelection || !this.isPaginationActived()) {
|
|
119867
|
-
this._showSelectionCounter = false;
|
|
119868
|
-
setTimeout(this.setSelectionCount.bind(this), this._debounceTimer);
|
|
119869
|
-
return;
|
|
119870
|
-
}
|
|
119871
|
-
if (counter > 1) {
|
|
119872
|
-
setTimeout(() => {
|
|
119873
|
-
this.setSelectionCount(counter);
|
|
119874
|
-
this._showSelectionCounter = true;
|
|
119875
|
-
}, this._debounceTimer);
|
|
119876
|
-
}
|
|
119877
|
-
else {
|
|
119878
|
-
this._showSelectionCounter = false;
|
|
119879
|
-
setTimeout(this.setSelectionCount.bind(this, counter), this._debounceTimer);
|
|
119792
|
+
this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
|
|
119793
|
+
if (this.dataUnit) {
|
|
119794
|
+
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
119880
119795
|
}
|
|
119881
119796
|
}
|
|
119882
|
-
|
|
119883
|
-
var _a, _b;
|
|
119884
|
-
this._selectionCount = value;
|
|
119885
|
-
const selectPageRecords = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecords();
|
|
119886
|
-
this._selectionPageCount = (_b = selectPageRecords === null || selectPageRecords === void 0 ? void 0 : selectPageRecords.length) !== null && _b !== void 0 ? _b : 0;
|
|
119887
|
-
}
|
|
119888
|
-
isPaginationActived() {
|
|
119797
|
+
setSelection(selectionInfo) {
|
|
119889
119798
|
var _a;
|
|
119890
|
-
|
|
119891
|
-
|
|
119892
|
-
|
|
119893
|
-
}
|
|
119894
|
-
return Math.ceil(total / (lastRecord - firstRecord + 1)) > 1;
|
|
119799
|
+
this._selectionCount = (_a = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.length) !== null && _a !== void 0 ? _a : 0;
|
|
119800
|
+
this._isAllSelection = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isAllRecords();
|
|
119801
|
+
this._showSelectionCounter = this._selectionCount > 1 || this._isAllSelection;
|
|
119895
119802
|
}
|
|
119896
119803
|
onSelectAllRecords() {
|
|
119897
|
-
|
|
119898
|
-
|
|
119899
|
-
filter: this.dataUnit.getFilters(),
|
|
119900
|
-
sort: this.dataUnit.getSort()
|
|
119901
|
-
};
|
|
119902
|
-
this.setSelection([allRecord]);
|
|
119804
|
+
var _a;
|
|
119805
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.setSelection(SelectionMode.ALL_RECORDS).then(selection => this.setSelection(selection));
|
|
119903
119806
|
}
|
|
119904
119807
|
onSelectPageRecords() {
|
|
119905
119808
|
var _a;
|
|
119906
|
-
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.
|
|
119907
|
-
var _a, _b, _c;
|
|
119908
|
-
(_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 : []);
|
|
119909
|
-
});
|
|
119809
|
+
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.setSelection(this.dataUnit.records.map(record => record.__record__id__)).then(selection => this.setSelection(selection));
|
|
119910
119810
|
}
|
|
119911
119811
|
onClearSelectedRecords() {
|
|
119912
119812
|
var _a;
|
|
119913
119813
|
(_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.clearSelection();
|
|
119814
|
+
this.setSelection(undefined);
|
|
119914
119815
|
}
|
|
119915
119816
|
createConfigFromState(state) {
|
|
119916
119817
|
let newConfig = { columns: [] };
|
|
@@ -120060,8 +119961,6 @@ const EzGrid = class {
|
|
|
120060
119961
|
this._paginationChangedByKeyboard = true;
|
|
120061
119962
|
}
|
|
120062
119963
|
this._paginationInfo = paginationInfo;
|
|
120063
|
-
this._gridController.updateCheckbox();
|
|
120064
|
-
this.controlSelectionCounter();
|
|
120065
119964
|
},
|
|
120066
119965
|
onDoubleClick: (row) => {
|
|
120067
119966
|
this.ezDoubleClick.emit(row);
|
|
@@ -120081,10 +119980,10 @@ const EzGrid = class {
|
|
|
120081
119980
|
this.configSelectionCounter();
|
|
120082
119981
|
}
|
|
120083
119982
|
render() {
|
|
120084
|
-
var _a
|
|
119983
|
+
var _a;
|
|
120085
119984
|
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
|
|
120086
119985
|
${this._showSelectionCounter ? "grid__selection-counter--opened" : ""}
|
|
120087
|
-
` }, h(SelectionCounter, { selectionCount: this._selectionCount,
|
|
119986
|
+
` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, total: (_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.total, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => this._showSelectionCounter = false })), h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
|
|
120088
119987
|
}
|
|
120089
119988
|
static get assetsDirs() { return ["../assets"]; }
|
|
120090
119989
|
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-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-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],"
|
|
17
|
+
return bootstrapLazy([["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-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],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[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-badge",[[1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]]],["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-dropdown",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["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-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"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-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"],"canShowError":[516,"can-show-error"],"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-view",[[2,"ez-form-view",{"fields":[16],"showUp":[64]}]]],["ez-form",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
|
|
18
18
|
});
|
package/dist/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["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-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],"
|
|
14
|
+
return bootstrapLazy([["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-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],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[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-badge",[[1,"ez-badge",{"size":[513],"label":[513],"iconLeft":[513,"icon-left"],"iconRight":[513,"icon-right"],"position":[1040],"hasSlot":[32]}]]],["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-dropdown",[[1,"ez-dropdown",{"items":[1040],"value":[1040],"itemBuilder":[16]}]]],["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-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"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-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"],"canShowError":[516,"can-show-error"],"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-view",[[2,"ez-form-view",{"fields":[16],"showUp":[64]}]]],["ez-form",[[2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|