@sankhyalabs/ezui 1.2.0-beta.13 → 1.2.0-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ez-grid.cjs.entry.js +75 -9
- package/dist/cjs/ez-modal-container.cjs.entry.js +15 -1
- 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 +43 -10
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRenderer.js +31 -0
- package/dist/collection/components/ez-grid/ez-grid.js +23 -2
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +43 -2
- package/dist/collection/components/ez-modal-container/index.js +1 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js +7 -0
- package/dist/custom-elements/index.js +92 -12
- package/dist/esm/ez-grid.entry.js +75 -9
- package/dist/esm/ez-modal-container.entry.js +15 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ez-grid.entry.js +75 -9
- package/dist/ezui/ez-modal-container.entry.js +15 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-344b9ec3.entry.js +1 -0
- package/dist/ezui/{p-3a0dd69f.entry.js → p-82c2d3c9.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRenderer.d.ts +9 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +7 -2
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +10 -0
- package/dist/types/components/ez-modal-container/index.d.ts +1 -0
- package/dist/types/components/ez-modal-container/modal-button-status.d.ts +6 -0
- package/dist/types/components.d.ts +31 -1
- package/package.json +1 -1
- package/dist/ezui/p-e58aa67c.entry.js +0 -1
|
@@ -120336,10 +120336,43 @@ class DataSource {
|
|
|
120336
120336
|
}
|
|
120337
120337
|
}
|
|
120338
120338
|
|
|
120339
|
+
class CellRenderer {
|
|
120340
|
+
constructor() {
|
|
120341
|
+
this._eGui = undefined;
|
|
120342
|
+
}
|
|
120343
|
+
init(params) {
|
|
120344
|
+
this.renderStatus(params);
|
|
120345
|
+
}
|
|
120346
|
+
refresh(params) {
|
|
120347
|
+
this.renderStatus(params);
|
|
120348
|
+
return true;
|
|
120349
|
+
}
|
|
120350
|
+
destroy() {
|
|
120351
|
+
this._eGui = undefined;
|
|
120352
|
+
}
|
|
120353
|
+
getGui() {
|
|
120354
|
+
return this._eGui;
|
|
120355
|
+
}
|
|
120356
|
+
renderStatus(params) {
|
|
120357
|
+
const statusResolver = params === null || params === void 0 ? void 0 : params.statusResolver;
|
|
120358
|
+
if (statusResolver != undefined) {
|
|
120359
|
+
const statusKey = Object.keys(statusResolver)[0];
|
|
120360
|
+
const statusValues = statusResolver[statusKey];
|
|
120361
|
+
const value = params === null || params === void 0 ? void 0 : params.data[statusKey];
|
|
120362
|
+
const color = statusValues != undefined && value != undefined && statusValues[value];
|
|
120363
|
+
this._eGui = document.createElement('div');
|
|
120364
|
+
this._eGui.innerHTML = `
|
|
120365
|
+
<span class="ez-grid__cell-status" style="background-color: ${color || ""};"></span>
|
|
120366
|
+
`;
|
|
120367
|
+
}
|
|
120368
|
+
}
|
|
120369
|
+
}
|
|
120370
|
+
|
|
120339
120371
|
class AgGridController {
|
|
120340
120372
|
constructor(enterprise) {
|
|
120341
120373
|
this.DEFAULT_ROW_HEIGHT = 30;
|
|
120342
120374
|
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
120375
|
+
this.STATUS_COL_ID = "statusColumn";
|
|
120343
120376
|
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
120344
120377
|
this.BLOCK_LOAD_DEBOUNCE = 400;
|
|
120345
120378
|
this._menuItems = [];
|
|
@@ -120369,6 +120402,7 @@ class AgGridController {
|
|
|
120369
120402
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
120370
120403
|
this._multipleSelection = options.allowMultipleSelection;
|
|
120371
120404
|
this._dataUnit = options.dataUnit;
|
|
120405
|
+
this._statusResolver = options.statusResolver;
|
|
120372
120406
|
if (this._dataUnit) {
|
|
120373
120407
|
this._dataUnit.sortingProvider = this;
|
|
120374
120408
|
}
|
|
@@ -120392,7 +120426,11 @@ class AgGridController {
|
|
|
120392
120426
|
}));
|
|
120393
120427
|
return items;
|
|
120394
120428
|
},
|
|
120395
|
-
getRowHeight: this.getRowHeight.bind(this)
|
|
120429
|
+
getRowHeight: this.getRowHeight.bind(this),
|
|
120430
|
+
defaultColDef: {
|
|
120431
|
+
headerClass: "ez-grid__cell-header",
|
|
120432
|
+
cellClass: "ez-grid__cell-body"
|
|
120433
|
+
}
|
|
120396
120434
|
};
|
|
120397
120435
|
this.setOptionsEvents(this._gridOptions);
|
|
120398
120436
|
this.setOptionsSupress(this._gridOptions);
|
|
@@ -120504,7 +120542,29 @@ class AgGridController {
|
|
|
120504
120542
|
suppressMovable: true,
|
|
120505
120543
|
suppressAutoSize: true,
|
|
120506
120544
|
suppressMenu: true,
|
|
120507
|
-
lockPosition: true
|
|
120545
|
+
lockPosition: true,
|
|
120546
|
+
pinned: true
|
|
120547
|
+
});
|
|
120548
|
+
}
|
|
120549
|
+
if (this._statusResolver != undefined) {
|
|
120550
|
+
newColDefs.push({
|
|
120551
|
+
colId: this.STATUS_COL_ID,
|
|
120552
|
+
headerName: "",
|
|
120553
|
+
checkboxSelection: false,
|
|
120554
|
+
headerCheckboxSelection: false,
|
|
120555
|
+
width: 29,
|
|
120556
|
+
suppressMovable: true,
|
|
120557
|
+
suppressAutoSize: true,
|
|
120558
|
+
suppressMenu: true,
|
|
120559
|
+
lockPosition: true,
|
|
120560
|
+
pinned: true,
|
|
120561
|
+
cellRenderer: CellRenderer,
|
|
120562
|
+
cellRendererParams: {
|
|
120563
|
+
statusResolver: this._statusResolver
|
|
120564
|
+
},
|
|
120565
|
+
cellStyle: {
|
|
120566
|
+
"text-align": "center"
|
|
120567
|
+
}
|
|
120508
120568
|
});
|
|
120509
120569
|
}
|
|
120510
120570
|
cols.forEach(c => {
|
|
@@ -120520,7 +120580,7 @@ class AgGridController {
|
|
|
120520
120580
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
120521
120581
|
}
|
|
120522
120582
|
const colDef = this._gridOptions.columnApi.getAllColumns();
|
|
120523
|
-
return colDef.filter(c => c.getColId()
|
|
120583
|
+
return colDef.filter(c => ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID].includes(c.getColId())).map(c => {
|
|
120524
120584
|
const def = c.getColDef();
|
|
120525
120585
|
const colDef = { name: def.field, label: def.headerName };
|
|
120526
120586
|
this.conditionalSet(colDef, "sortable", def.sortable);
|
|
@@ -120589,7 +120649,7 @@ class AgGridController {
|
|
|
120589
120649
|
term,
|
|
120590
120650
|
fields: this._gridOptions.columnApi
|
|
120591
120651
|
.getColumns()
|
|
120592
|
-
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
120652
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
120593
120653
|
.map(col => col.getColId())
|
|
120594
120654
|
};
|
|
120595
120655
|
this._dataSource.quickFilter = quickFilter;
|
|
@@ -120625,20 +120685,25 @@ class AgGridController {
|
|
|
120625
120685
|
cellStyle: this.getStyleByColumn(source)
|
|
120626
120686
|
};
|
|
120627
120687
|
}
|
|
120688
|
+
getInitCellStyle() {
|
|
120689
|
+
return {
|
|
120690
|
+
"line-height": (this.getRowHeight() - 1) + "px"
|
|
120691
|
+
};
|
|
120692
|
+
}
|
|
120628
120693
|
getStyleByColumn(source) {
|
|
120629
|
-
let cellStyle =
|
|
120694
|
+
let cellStyle = this.getInitCellStyle();
|
|
120630
120695
|
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
120631
120696
|
case UserInterface.DECIMALNUMBER:
|
|
120632
120697
|
case UserInterface.INTEGERNUMBER:
|
|
120633
|
-
cellStyle["
|
|
120698
|
+
cellStyle["text-align"] = "right";
|
|
120634
120699
|
break;
|
|
120635
120700
|
case UserInterface.DATE:
|
|
120636
120701
|
case UserInterface.DATETIME:
|
|
120637
120702
|
case UserInterface.TIME:
|
|
120638
|
-
cellStyle["
|
|
120703
|
+
cellStyle["text-align"] = "center";
|
|
120639
120704
|
break;
|
|
120640
120705
|
default:
|
|
120641
|
-
cellStyle["
|
|
120706
|
+
cellStyle["text-align"] = "left";
|
|
120642
120707
|
}
|
|
120643
120708
|
return cellStyle;
|
|
120644
120709
|
}
|
|
@@ -120872,7 +120937,8 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
120872
120937
|
},
|
|
120873
120938
|
allowMultipleSelection: this.multipleSelection,
|
|
120874
120939
|
serverURL: this.serverUrl,
|
|
120875
|
-
dataUnit: this.dataUnit
|
|
120940
|
+
dataUnit: this.dataUnit,
|
|
120941
|
+
statusResolver: this.statusResolver
|
|
120876
120942
|
});
|
|
120877
120943
|
if (this.config) {
|
|
120878
120944
|
this.observeConfig(this.config);
|
|
@@ -121996,6 +122062,14 @@ var ModalAction;
|
|
|
121996
122062
|
})(ModalAction || (ModalAction = {}));
|
|
121997
122063
|
const ModalAction$1 = ModalAction;
|
|
121998
122064
|
|
|
122065
|
+
var ModalButtonStatus;
|
|
122066
|
+
(function (ModalButtonStatus) {
|
|
122067
|
+
ModalButtonStatus["ENABLED"] = "ENABLED";
|
|
122068
|
+
ModalButtonStatus["DISABLED"] = "DISABLED";
|
|
122069
|
+
ModalButtonStatus["HIDDEN"] = "HIDDEN";
|
|
122070
|
+
})(ModalButtonStatus || (ModalButtonStatus = {}));
|
|
122071
|
+
const ModalButtonStatus$1 = ModalButtonStatus;
|
|
122072
|
+
|
|
121999
122073
|
const ezModalContainerCss = ".sc-ez-modal-container-h{display:grid;grid-template-rows:auto 1fr auto;width:100%;height:100%}.ez-modal-container__header.sc-ez-modal-container{display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:space-between}.ez-modal-container__content.sc-ez-modal-container{overflow-y:auto;scrollbar-gutter:stable}.ez-modal-container__title.sc-ez-modal-container{display:grid}.ez-modal-container__close-button.sc-ez-modal-container{cursor:pointer;--icon--color:var(--title--primary, #2B3A54)}";
|
|
122000
122074
|
|
|
122001
122075
|
let EzModalContainer$1 = class extends HTMLElement$1 {
|
|
@@ -122004,8 +122078,14 @@ let EzModalContainer$1 = class extends HTMLElement$1 {
|
|
|
122004
122078
|
this.__registerHost();
|
|
122005
122079
|
this.ezModalAction = createEvent(this, "ezModalAction", 7);
|
|
122006
122080
|
}
|
|
122081
|
+
cancelIsVisible() {
|
|
122082
|
+
return (this.cancelButtonStatus !== ModalButtonStatus$1.HIDDEN && this.cancelButtonLabel != undefined);
|
|
122083
|
+
}
|
|
122084
|
+
okIsVisible() {
|
|
122085
|
+
return (this.okButtonStatus !== ModalButtonStatus$1.HIDDEN && this.okButtonLabel != undefined);
|
|
122086
|
+
}
|
|
122007
122087
|
render() {
|
|
122008
|
-
return (h(Host, null, h("div", { class: "ez-modal-container__header ez-align--middle" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle ? h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle) : undefined), h("ez-icon", { class: "ez-modal-container__close-button", size: "medium", iconName: "close", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE) })), h("div", { class: "ez-modal-container__content ez-margin-top--large" }, h("slot", null)), h("div", { class: 'ez-col ez-margin-left--auto' }, this.
|
|
122088
|
+
return (h(Host, null, h("div", { class: "ez-modal-container__header ez-align--middle" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle ? h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle) : undefined), h("ez-icon", { class: "ez-modal-container__close-button", size: "medium", iconName: "close", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE) })), h("div", { class: "ez-modal-container__content ez-margin-top--large" }, h("slot", null)), h("div", { class: 'ez-col ez-margin-left--auto' }, this.cancelIsVisible() ? h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus$1.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction$1.CANCEL) }) : undefined, this.okIsVisible() ? h("ez-button", { label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus$1.DISABLED, class: "ez-button--primary ez-margin-left--medium", onClick: () => this.ezModalAction.emit(ModalAction$1.OK) }) : undefined)));
|
|
122009
122089
|
}
|
|
122010
122090
|
static get style() { return ezModalContainerCss; }
|
|
122011
122091
|
};
|
|
@@ -123879,13 +123959,13 @@ const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"e
|
|
|
123879
123959
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"]}]);
|
|
123880
123960
|
const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513]}]);
|
|
123881
123961
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16]}]);
|
|
123882
|
-
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"_paginationInfo":[32],"_popUpGridConfig":[32]}]);
|
|
123962
|
+
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_popUpGridConfig":[32]}]);
|
|
123883
123963
|
const EzGridConfig = /*@__PURE__*/proxyCustomElement(EzGridConfig$1, [2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]);
|
|
123884
123964
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
123885
123965
|
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
123886
123966
|
const EzLoadingBar = /*@__PURE__*/proxyCustomElement(EzLoadingBar$1, [1,"ez-loading-bar",{"_showLoading":[32]}]);
|
|
123887
123967
|
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]);
|
|
123888
|
-
const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"]}]);
|
|
123968
|
+
const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]);
|
|
123889
123969
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513]}]);
|
|
123890
123970
|
const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [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"]}]);
|
|
123891
123971
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]);
|
|
@@ -114835,10 +114835,43 @@ class DataSource {
|
|
|
114835
114835
|
}
|
|
114836
114836
|
}
|
|
114837
114837
|
|
|
114838
|
+
class CellRenderer {
|
|
114839
|
+
constructor() {
|
|
114840
|
+
this._eGui = undefined;
|
|
114841
|
+
}
|
|
114842
|
+
init(params) {
|
|
114843
|
+
this.renderStatus(params);
|
|
114844
|
+
}
|
|
114845
|
+
refresh(params) {
|
|
114846
|
+
this.renderStatus(params);
|
|
114847
|
+
return true;
|
|
114848
|
+
}
|
|
114849
|
+
destroy() {
|
|
114850
|
+
this._eGui = undefined;
|
|
114851
|
+
}
|
|
114852
|
+
getGui() {
|
|
114853
|
+
return this._eGui;
|
|
114854
|
+
}
|
|
114855
|
+
renderStatus(params) {
|
|
114856
|
+
const statusResolver = params === null || params === void 0 ? void 0 : params.statusResolver;
|
|
114857
|
+
if (statusResolver != undefined) {
|
|
114858
|
+
const statusKey = Object.keys(statusResolver)[0];
|
|
114859
|
+
const statusValues = statusResolver[statusKey];
|
|
114860
|
+
const value = params === null || params === void 0 ? void 0 : params.data[statusKey];
|
|
114861
|
+
const color = statusValues != undefined && value != undefined && statusValues[value];
|
|
114862
|
+
this._eGui = document.createElement('div');
|
|
114863
|
+
this._eGui.innerHTML = `
|
|
114864
|
+
<span class="ez-grid__cell-status" style="background-color: ${color || ""};"></span>
|
|
114865
|
+
`;
|
|
114866
|
+
}
|
|
114867
|
+
}
|
|
114868
|
+
}
|
|
114869
|
+
|
|
114838
114870
|
class AgGridController {
|
|
114839
114871
|
constructor(enterprise) {
|
|
114840
114872
|
this.DEFAULT_ROW_HEIGHT = 30;
|
|
114841
114873
|
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
114874
|
+
this.STATUS_COL_ID = "statusColumn";
|
|
114842
114875
|
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
114843
114876
|
this.BLOCK_LOAD_DEBOUNCE = 400;
|
|
114844
114877
|
this._menuItems = [];
|
|
@@ -114868,6 +114901,7 @@ class AgGridController {
|
|
|
114868
114901
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
114869
114902
|
this._multipleSelection = options.allowMultipleSelection;
|
|
114870
114903
|
this._dataUnit = options.dataUnit;
|
|
114904
|
+
this._statusResolver = options.statusResolver;
|
|
114871
114905
|
if (this._dataUnit) {
|
|
114872
114906
|
this._dataUnit.sortingProvider = this;
|
|
114873
114907
|
}
|
|
@@ -114891,7 +114925,11 @@ class AgGridController {
|
|
|
114891
114925
|
}));
|
|
114892
114926
|
return items;
|
|
114893
114927
|
},
|
|
114894
|
-
getRowHeight: this.getRowHeight.bind(this)
|
|
114928
|
+
getRowHeight: this.getRowHeight.bind(this),
|
|
114929
|
+
defaultColDef: {
|
|
114930
|
+
headerClass: "ez-grid__cell-header",
|
|
114931
|
+
cellClass: "ez-grid__cell-body"
|
|
114932
|
+
}
|
|
114895
114933
|
};
|
|
114896
114934
|
this.setOptionsEvents(this._gridOptions);
|
|
114897
114935
|
this.setOptionsSupress(this._gridOptions);
|
|
@@ -115003,7 +115041,29 @@ class AgGridController {
|
|
|
115003
115041
|
suppressMovable: true,
|
|
115004
115042
|
suppressAutoSize: true,
|
|
115005
115043
|
suppressMenu: true,
|
|
115006
|
-
lockPosition: true
|
|
115044
|
+
lockPosition: true,
|
|
115045
|
+
pinned: true
|
|
115046
|
+
});
|
|
115047
|
+
}
|
|
115048
|
+
if (this._statusResolver != undefined) {
|
|
115049
|
+
newColDefs.push({
|
|
115050
|
+
colId: this.STATUS_COL_ID,
|
|
115051
|
+
headerName: "",
|
|
115052
|
+
checkboxSelection: false,
|
|
115053
|
+
headerCheckboxSelection: false,
|
|
115054
|
+
width: 29,
|
|
115055
|
+
suppressMovable: true,
|
|
115056
|
+
suppressAutoSize: true,
|
|
115057
|
+
suppressMenu: true,
|
|
115058
|
+
lockPosition: true,
|
|
115059
|
+
pinned: true,
|
|
115060
|
+
cellRenderer: CellRenderer,
|
|
115061
|
+
cellRendererParams: {
|
|
115062
|
+
statusResolver: this._statusResolver
|
|
115063
|
+
},
|
|
115064
|
+
cellStyle: {
|
|
115065
|
+
"text-align": "center"
|
|
115066
|
+
}
|
|
115007
115067
|
});
|
|
115008
115068
|
}
|
|
115009
115069
|
cols.forEach(c => {
|
|
@@ -115019,7 +115079,7 @@ class AgGridController {
|
|
|
115019
115079
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
115020
115080
|
}
|
|
115021
115081
|
const colDef = this._gridOptions.columnApi.getAllColumns();
|
|
115022
|
-
return colDef.filter(c => c.getColId()
|
|
115082
|
+
return colDef.filter(c => ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID].includes(c.getColId())).map(c => {
|
|
115023
115083
|
const def = c.getColDef();
|
|
115024
115084
|
const colDef = { name: def.field, label: def.headerName };
|
|
115025
115085
|
this.conditionalSet(colDef, "sortable", def.sortable);
|
|
@@ -115088,7 +115148,7 @@ class AgGridController {
|
|
|
115088
115148
|
term,
|
|
115089
115149
|
fields: this._gridOptions.columnApi
|
|
115090
115150
|
.getColumns()
|
|
115091
|
-
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
115151
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
115092
115152
|
.map(col => col.getColId())
|
|
115093
115153
|
};
|
|
115094
115154
|
this._dataSource.quickFilter = quickFilter;
|
|
@@ -115124,20 +115184,25 @@ class AgGridController {
|
|
|
115124
115184
|
cellStyle: this.getStyleByColumn(source)
|
|
115125
115185
|
};
|
|
115126
115186
|
}
|
|
115187
|
+
getInitCellStyle() {
|
|
115188
|
+
return {
|
|
115189
|
+
"line-height": (this.getRowHeight() - 1) + "px"
|
|
115190
|
+
};
|
|
115191
|
+
}
|
|
115127
115192
|
getStyleByColumn(source) {
|
|
115128
|
-
let cellStyle =
|
|
115193
|
+
let cellStyle = this.getInitCellStyle();
|
|
115129
115194
|
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
115130
115195
|
case UserInterface.DECIMALNUMBER:
|
|
115131
115196
|
case UserInterface.INTEGERNUMBER:
|
|
115132
|
-
cellStyle["
|
|
115197
|
+
cellStyle["text-align"] = "right";
|
|
115133
115198
|
break;
|
|
115134
115199
|
case UserInterface.DATE:
|
|
115135
115200
|
case UserInterface.DATETIME:
|
|
115136
115201
|
case UserInterface.TIME:
|
|
115137
|
-
cellStyle["
|
|
115202
|
+
cellStyle["text-align"] = "center";
|
|
115138
115203
|
break;
|
|
115139
115204
|
default:
|
|
115140
|
-
cellStyle["
|
|
115205
|
+
cellStyle["text-align"] = "left";
|
|
115141
115206
|
}
|
|
115142
115207
|
return cellStyle;
|
|
115143
115208
|
}
|
|
@@ -115370,7 +115435,8 @@ let EzGrid = class {
|
|
|
115370
115435
|
},
|
|
115371
115436
|
allowMultipleSelection: this.multipleSelection,
|
|
115372
115437
|
serverURL: this.serverUrl,
|
|
115373
|
-
dataUnit: this.dataUnit
|
|
115438
|
+
dataUnit: this.dataUnit,
|
|
115439
|
+
statusResolver: this.statusResolver
|
|
115374
115440
|
});
|
|
115375
115441
|
if (this.config) {
|
|
115376
115442
|
this.observeConfig(this.config);
|
|
@@ -8,6 +8,14 @@ var ModalAction;
|
|
|
8
8
|
})(ModalAction || (ModalAction = {}));
|
|
9
9
|
const ModalAction$1 = ModalAction;
|
|
10
10
|
|
|
11
|
+
var ModalButtonStatus;
|
|
12
|
+
(function (ModalButtonStatus) {
|
|
13
|
+
ModalButtonStatus["ENABLED"] = "ENABLED";
|
|
14
|
+
ModalButtonStatus["DISABLED"] = "DISABLED";
|
|
15
|
+
ModalButtonStatus["HIDDEN"] = "HIDDEN";
|
|
16
|
+
})(ModalButtonStatus || (ModalButtonStatus = {}));
|
|
17
|
+
const ModalButtonStatus$1 = ModalButtonStatus;
|
|
18
|
+
|
|
11
19
|
const ezModalContainerCss = ".sc-ez-modal-container-h{display:grid;grid-template-rows:auto 1fr auto;width:100%;height:100%}.ez-modal-container__header.sc-ez-modal-container{display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:space-between}.ez-modal-container__content.sc-ez-modal-container{overflow-y:auto;scrollbar-gutter:stable}.ez-modal-container__title.sc-ez-modal-container{display:grid}.ez-modal-container__close-button.sc-ez-modal-container{cursor:pointer;--icon--color:var(--title--primary, #2B3A54)}";
|
|
12
20
|
|
|
13
21
|
let EzModalContainer = class {
|
|
@@ -15,8 +23,14 @@ let EzModalContainer = class {
|
|
|
15
23
|
registerInstance(this, hostRef);
|
|
16
24
|
this.ezModalAction = createEvent(this, "ezModalAction", 7);
|
|
17
25
|
}
|
|
26
|
+
cancelIsVisible() {
|
|
27
|
+
return (this.cancelButtonStatus !== ModalButtonStatus$1.HIDDEN && this.cancelButtonLabel != undefined);
|
|
28
|
+
}
|
|
29
|
+
okIsVisible() {
|
|
30
|
+
return (this.okButtonStatus !== ModalButtonStatus$1.HIDDEN && this.okButtonLabel != undefined);
|
|
31
|
+
}
|
|
18
32
|
render() {
|
|
19
|
-
return (h(Host, null, h("div", { class: "ez-modal-container__header ez-align--middle" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle ? h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle) : undefined), h("ez-icon", { class: "ez-modal-container__close-button", size: "medium", iconName: "close", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE) })), h("div", { class: "ez-modal-container__content ez-margin-top--large" }, h("slot", null)), h("div", { class: 'ez-col ez-margin-left--auto' }, this.
|
|
33
|
+
return (h(Host, null, h("div", { class: "ez-modal-container__header ez-align--middle" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle ? h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle) : undefined), h("ez-icon", { class: "ez-modal-container__close-button", size: "medium", iconName: "close", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE) })), h("div", { class: "ez-modal-container__content ez-margin-top--large" }, h("slot", null)), h("div", { class: 'ez-col ez-margin-left--auto' }, this.cancelIsVisible() ? h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus$1.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction$1.CANCEL) }) : undefined, this.okIsVisible() ? h("ez-button", { label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus$1.DISABLED, class: "ez-button--primary ez-margin-left--medium", onClick: () => this.ezModalAction.emit(ModalAction$1.OK) }) : undefined)));
|
|
20
34
|
}
|
|
21
35
|
};
|
|
22
36
|
EzModalContainer.style = ezModalContainerCss;
|
package/dist/esm/ezui.js
CHANGED
|
@@ -121,5 +121,5 @@ const patchCloneNodeFix = (HTMLElementPrototype) => {
|
|
|
121
121
|
|
|
122
122
|
patchBrowser().then(options => {
|
|
123
123
|
globalScripts();
|
|
124
|
-
return bootstrapLazy([["ez-form",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"_paginationInfo":[32],"_popUpGridConfig":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"openGridConfig":[64]}]]],["ez-actions-button",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-filter-input",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-modal-container",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["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"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller",[[1,"ez-scroller",{"direction":[1]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["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-text-input",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["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-grid-config",[[2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["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-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[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-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[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-select-box",[[1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-button",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]]], options);
|
|
124
|
+
return bootstrapLazy([["ez-form",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_popUpGridConfig":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"openGridConfig":[64]}]]],["ez-actions-button",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-filter-input",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-modal-container",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["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"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller",[[1,"ez-scroller",{"direction":[1]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["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-text-input",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["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-grid-config",[[2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["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-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[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-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[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-select-box",[[1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-button",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]]], options);
|
|
125
125
|
});
|
package/dist/esm/loader.js
CHANGED
|
@@ -26,7 +26,7 @@ const defineCustomElements = (win, options) => {
|
|
|
26
26
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
27
27
|
return patchEsm().then(() => {
|
|
28
28
|
globalScripts();
|
|
29
|
-
return bootstrapLazy([["ez-form",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"_paginationInfo":[32],"_popUpGridConfig":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"openGridConfig":[64]}]]],["ez-actions-button",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-filter-input",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-modal-container",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["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"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller",[[1,"ez-scroller",{"direction":[1]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["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-text-input",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["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-grid-config",[[2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["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-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[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-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[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-select-box",[[1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-button",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]]], options);
|
|
29
|
+
return bootstrapLazy([["ez-form",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"submit":[64],"cancel":[64],"validate":[64]}]]],["ez-grid",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_popUpGridConfig":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64],"openGridConfig":[64]}]]],["ez-actions-button",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-filter-input",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"loading":[516],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-modal-container",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-chip",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application",[[0,"ez-application"]]],["ez-card-item",[[1,"ez-card-item",{"item":[16]}]]],["ez-loading-bar",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["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"],"updatePosition":[64],"show":[64],"hide":[64]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller",[[1,"ez-scroller",{"direction":[1]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["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-text-input",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["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-grid-config",[[2,"ez-grid-config",{"selectedTab":[1025,"selected-tab"],"columns":[1040],"config":[1040]}]]],["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-collapsible-box",[[1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"showHide":[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-modal",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-text-area",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[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-select-box",[[1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]]],["ez-list",[[1,"ez-list",{"dataSource":[1040],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"_listItems":[32],"_listGroupItems":[32],"clearHistory":[64],"scrollToTop":[64],"setSelection":[64],"getSelection":[64],"getList":[64]}]]],["ez-calendar",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-check",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-tabselector",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]]],["ez-button",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]]], options);
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -114835,10 +114835,43 @@ class DataSource {
|
|
|
114835
114835
|
}
|
|
114836
114836
|
}
|
|
114837
114837
|
|
|
114838
|
+
class CellRenderer {
|
|
114839
|
+
constructor() {
|
|
114840
|
+
this._eGui = undefined;
|
|
114841
|
+
}
|
|
114842
|
+
init(params) {
|
|
114843
|
+
this.renderStatus(params);
|
|
114844
|
+
}
|
|
114845
|
+
refresh(params) {
|
|
114846
|
+
this.renderStatus(params);
|
|
114847
|
+
return true;
|
|
114848
|
+
}
|
|
114849
|
+
destroy() {
|
|
114850
|
+
this._eGui = undefined;
|
|
114851
|
+
}
|
|
114852
|
+
getGui() {
|
|
114853
|
+
return this._eGui;
|
|
114854
|
+
}
|
|
114855
|
+
renderStatus(params) {
|
|
114856
|
+
const statusResolver = params === null || params === void 0 ? void 0 : params.statusResolver;
|
|
114857
|
+
if (statusResolver != undefined) {
|
|
114858
|
+
const statusKey = Object.keys(statusResolver)[0];
|
|
114859
|
+
const statusValues = statusResolver[statusKey];
|
|
114860
|
+
const value = params === null || params === void 0 ? void 0 : params.data[statusKey];
|
|
114861
|
+
const color = statusValues != undefined && value != undefined && statusValues[value];
|
|
114862
|
+
this._eGui = document.createElement('div');
|
|
114863
|
+
this._eGui.innerHTML = `
|
|
114864
|
+
<span class="ez-grid__cell-status" style="background-color: ${color || ""};"></span>
|
|
114865
|
+
`;
|
|
114866
|
+
}
|
|
114867
|
+
}
|
|
114868
|
+
}
|
|
114869
|
+
|
|
114838
114870
|
class AgGridController {
|
|
114839
114871
|
constructor(enterprise) {
|
|
114840
114872
|
this.DEFAULT_ROW_HEIGHT = 30;
|
|
114841
114873
|
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
114874
|
+
this.STATUS_COL_ID = "statusColumn";
|
|
114842
114875
|
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
114843
114876
|
this.BLOCK_LOAD_DEBOUNCE = 400;
|
|
114844
114877
|
this._menuItems = [];
|
|
@@ -114868,6 +114901,7 @@ class AgGridController {
|
|
|
114868
114901
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
114869
114902
|
this._multipleSelection = options.allowMultipleSelection;
|
|
114870
114903
|
this._dataUnit = options.dataUnit;
|
|
114904
|
+
this._statusResolver = options.statusResolver;
|
|
114871
114905
|
if (this._dataUnit) {
|
|
114872
114906
|
this._dataUnit.sortingProvider = this;
|
|
114873
114907
|
}
|
|
@@ -114891,7 +114925,11 @@ class AgGridController {
|
|
|
114891
114925
|
}));
|
|
114892
114926
|
return items;
|
|
114893
114927
|
},
|
|
114894
|
-
getRowHeight: this.getRowHeight.bind(this)
|
|
114928
|
+
getRowHeight: this.getRowHeight.bind(this),
|
|
114929
|
+
defaultColDef: {
|
|
114930
|
+
headerClass: "ez-grid__cell-header",
|
|
114931
|
+
cellClass: "ez-grid__cell-body"
|
|
114932
|
+
}
|
|
114895
114933
|
};
|
|
114896
114934
|
this.setOptionsEvents(this._gridOptions);
|
|
114897
114935
|
this.setOptionsSupress(this._gridOptions);
|
|
@@ -115003,7 +115041,29 @@ class AgGridController {
|
|
|
115003
115041
|
suppressMovable: true,
|
|
115004
115042
|
suppressAutoSize: true,
|
|
115005
115043
|
suppressMenu: true,
|
|
115006
|
-
lockPosition: true
|
|
115044
|
+
lockPosition: true,
|
|
115045
|
+
pinned: true
|
|
115046
|
+
});
|
|
115047
|
+
}
|
|
115048
|
+
if (this._statusResolver != undefined) {
|
|
115049
|
+
newColDefs.push({
|
|
115050
|
+
colId: this.STATUS_COL_ID,
|
|
115051
|
+
headerName: "",
|
|
115052
|
+
checkboxSelection: false,
|
|
115053
|
+
headerCheckboxSelection: false,
|
|
115054
|
+
width: 29,
|
|
115055
|
+
suppressMovable: true,
|
|
115056
|
+
suppressAutoSize: true,
|
|
115057
|
+
suppressMenu: true,
|
|
115058
|
+
lockPosition: true,
|
|
115059
|
+
pinned: true,
|
|
115060
|
+
cellRenderer: CellRenderer,
|
|
115061
|
+
cellRendererParams: {
|
|
115062
|
+
statusResolver: this._statusResolver
|
|
115063
|
+
},
|
|
115064
|
+
cellStyle: {
|
|
115065
|
+
"text-align": "center"
|
|
115066
|
+
}
|
|
115007
115067
|
});
|
|
115008
115068
|
}
|
|
115009
115069
|
cols.forEach(c => {
|
|
@@ -115019,7 +115079,7 @@ class AgGridController {
|
|
|
115019
115079
|
throw new Error("Erro interno: Grid ainda não inicializado.");
|
|
115020
115080
|
}
|
|
115021
115081
|
const colDef = this._gridOptions.columnApi.getAllColumns();
|
|
115022
|
-
return colDef.filter(c => c.getColId()
|
|
115082
|
+
return colDef.filter(c => ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID].includes(c.getColId())).map(c => {
|
|
115023
115083
|
const def = c.getColDef();
|
|
115024
115084
|
const colDef = { name: def.field, label: def.headerName };
|
|
115025
115085
|
this.conditionalSet(colDef, "sortable", def.sortable);
|
|
@@ -115088,7 +115148,7 @@ class AgGridController {
|
|
|
115088
115148
|
term,
|
|
115089
115149
|
fields: this._gridOptions.columnApi
|
|
115090
115150
|
.getColumns()
|
|
115091
|
-
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
115151
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
115092
115152
|
.map(col => col.getColId())
|
|
115093
115153
|
};
|
|
115094
115154
|
this._dataSource.quickFilter = quickFilter;
|
|
@@ -115124,20 +115184,25 @@ class AgGridController {
|
|
|
115124
115184
|
cellStyle: this.getStyleByColumn(source)
|
|
115125
115185
|
};
|
|
115126
115186
|
}
|
|
115187
|
+
getInitCellStyle() {
|
|
115188
|
+
return {
|
|
115189
|
+
"line-height": (this.getRowHeight() - 1) + "px"
|
|
115190
|
+
};
|
|
115191
|
+
}
|
|
115127
115192
|
getStyleByColumn(source) {
|
|
115128
|
-
let cellStyle =
|
|
115193
|
+
let cellStyle = this.getInitCellStyle();
|
|
115129
115194
|
switch (source === null || source === void 0 ? void 0 : source.userInterface) {
|
|
115130
115195
|
case UserInterface.DECIMALNUMBER:
|
|
115131
115196
|
case UserInterface.INTEGERNUMBER:
|
|
115132
|
-
cellStyle["
|
|
115197
|
+
cellStyle["text-align"] = "right";
|
|
115133
115198
|
break;
|
|
115134
115199
|
case UserInterface.DATE:
|
|
115135
115200
|
case UserInterface.DATETIME:
|
|
115136
115201
|
case UserInterface.TIME:
|
|
115137
|
-
cellStyle["
|
|
115202
|
+
cellStyle["text-align"] = "center";
|
|
115138
115203
|
break;
|
|
115139
115204
|
default:
|
|
115140
|
-
cellStyle["
|
|
115205
|
+
cellStyle["text-align"] = "left";
|
|
115141
115206
|
}
|
|
115142
115207
|
return cellStyle;
|
|
115143
115208
|
}
|
|
@@ -115370,7 +115435,8 @@ let EzGrid = class {
|
|
|
115370
115435
|
},
|
|
115371
115436
|
allowMultipleSelection: this.multipleSelection,
|
|
115372
115437
|
serverURL: this.serverUrl,
|
|
115373
|
-
dataUnit: this.dataUnit
|
|
115438
|
+
dataUnit: this.dataUnit,
|
|
115439
|
+
statusResolver: this.statusResolver
|
|
115374
115440
|
});
|
|
115375
115441
|
if (this.config) {
|
|
115376
115442
|
this.observeConfig(this.config);
|