@sankhyalabs/ezui 1.1.139 → 1.1.140
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 +10 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +7 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -3
- package/dist/custom-elements/index.js +10 -5
- package/dist/esm/ez-grid.entry.js +10 -5
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-51cdfa9e.entry.js → p-9ce93746.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -2
- package/package.json +1 -1
|
@@ -110037,7 +110037,7 @@ class DataSource {
|
|
|
110037
110037
|
}
|
|
110038
110038
|
}
|
|
110039
110039
|
else {
|
|
110040
|
-
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this.
|
|
110040
|
+
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this._quickFilter })
|
|
110041
110041
|
.then(data => params.success(data))
|
|
110042
110042
|
.catch(() => params.fail());
|
|
110043
110043
|
}
|
|
@@ -110056,14 +110056,16 @@ class DataSource {
|
|
|
110056
110056
|
}
|
|
110057
110057
|
});
|
|
110058
110058
|
}
|
|
110059
|
-
setQuickFilter(term) {
|
|
110060
|
-
this.
|
|
110059
|
+
setQuickFilter(term, fields) {
|
|
110060
|
+
this._quickFilter = { term, fields };
|
|
110061
110061
|
}
|
|
110062
110062
|
}
|
|
110063
110063
|
|
|
110064
110064
|
class AgGridController {
|
|
110065
110065
|
constructor(enterprise) {
|
|
110066
110066
|
this.DEFAULT_ROW_HEIGHT = 25;
|
|
110067
|
+
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
110068
|
+
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
110067
110069
|
this._menuItems = [];
|
|
110068
110070
|
this._idAttribName = "__record__id__";
|
|
110069
110071
|
this._isFirstRecordOfPage = true;
|
|
@@ -110232,7 +110234,7 @@ class AgGridController {
|
|
|
110232
110234
|
const colDefs = [];
|
|
110233
110235
|
if (showCheckSelection) {
|
|
110234
110236
|
colDefs.push({
|
|
110235
|
-
colId:
|
|
110237
|
+
colId: this.CHECK_BOX_COL_ID,
|
|
110236
110238
|
headerName: "",
|
|
110237
110239
|
checkboxSelection: true,
|
|
110238
110240
|
headerCheckboxSelection: false,
|
|
@@ -110323,7 +110325,10 @@ class AgGridController {
|
|
|
110323
110325
|
this._gridOptions.api.paginationGoToPage(page);
|
|
110324
110326
|
}
|
|
110325
110327
|
quickFilter(term) {
|
|
110326
|
-
this._dataSource.setQuickFilter(term
|
|
110328
|
+
this._dataSource.setQuickFilter(term, this._gridOptions.columnApi
|
|
110329
|
+
.getAllColumns()
|
|
110330
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
110331
|
+
.map(col => col.getColId()));
|
|
110327
110332
|
this.goToPage(0);
|
|
110328
110333
|
this._gridOptions.api.refreshServerSideStore({ purge: true });
|
|
110329
110334
|
}
|
|
@@ -9,6 +9,8 @@ import { NumberUtils } from "@sankhyalabs/core";
|
|
|
9
9
|
export default class AgGridController {
|
|
10
10
|
constructor(enterprise) {
|
|
11
11
|
this.DEFAULT_ROW_HEIGHT = 25;
|
|
12
|
+
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
13
|
+
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
12
14
|
this._menuItems = [];
|
|
13
15
|
this._idAttribName = "__record__id__";
|
|
14
16
|
this._isFirstRecordOfPage = true;
|
|
@@ -177,7 +179,7 @@ export default class AgGridController {
|
|
|
177
179
|
const colDefs = [];
|
|
178
180
|
if (showCheckSelection) {
|
|
179
181
|
colDefs.push({
|
|
180
|
-
colId:
|
|
182
|
+
colId: this.CHECK_BOX_COL_ID,
|
|
181
183
|
headerName: "",
|
|
182
184
|
checkboxSelection: true,
|
|
183
185
|
headerCheckboxSelection: false,
|
|
@@ -268,7 +270,10 @@ export default class AgGridController {
|
|
|
268
270
|
this._gridOptions.api.paginationGoToPage(page);
|
|
269
271
|
}
|
|
270
272
|
quickFilter(term) {
|
|
271
|
-
this._dataSource.setQuickFilter(term
|
|
273
|
+
this._dataSource.setQuickFilter(term, this._gridOptions.columnApi
|
|
274
|
+
.getAllColumns()
|
|
275
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
276
|
+
.map(col => col.getColId()));
|
|
272
277
|
this.goToPage(0);
|
|
273
278
|
this._gridOptions.api.refreshServerSideStore({ purge: true });
|
|
274
279
|
}
|
|
@@ -19,7 +19,7 @@ export default class DataSource {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this.
|
|
22
|
+
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this._quickFilter })
|
|
23
23
|
.then(data => params.success(data))
|
|
24
24
|
.catch(() => params.fail());
|
|
25
25
|
}
|
|
@@ -38,7 +38,7 @@ export default class DataSource {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
setQuickFilter(term) {
|
|
42
|
-
this.
|
|
41
|
+
setQuickFilter(term, fields) {
|
|
42
|
+
this._quickFilter = { term, fields };
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -112169,7 +112169,7 @@ class DataSource {
|
|
|
112169
112169
|
}
|
|
112170
112170
|
}
|
|
112171
112171
|
else {
|
|
112172
|
-
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this.
|
|
112172
|
+
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this._quickFilter })
|
|
112173
112173
|
.then(data => params.success(data))
|
|
112174
112174
|
.catch(() => params.fail());
|
|
112175
112175
|
}
|
|
@@ -112188,14 +112188,16 @@ class DataSource {
|
|
|
112188
112188
|
}
|
|
112189
112189
|
});
|
|
112190
112190
|
}
|
|
112191
|
-
setQuickFilter(term) {
|
|
112192
|
-
this.
|
|
112191
|
+
setQuickFilter(term, fields) {
|
|
112192
|
+
this._quickFilter = { term, fields };
|
|
112193
112193
|
}
|
|
112194
112194
|
}
|
|
112195
112195
|
|
|
112196
112196
|
class AgGridController {
|
|
112197
112197
|
constructor(enterprise) {
|
|
112198
112198
|
this.DEFAULT_ROW_HEIGHT = 25;
|
|
112199
|
+
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
112200
|
+
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
112199
112201
|
this._menuItems = [];
|
|
112200
112202
|
this._idAttribName = "__record__id__";
|
|
112201
112203
|
this._isFirstRecordOfPage = true;
|
|
@@ -112364,7 +112366,7 @@ class AgGridController {
|
|
|
112364
112366
|
const colDefs = [];
|
|
112365
112367
|
if (showCheckSelection) {
|
|
112366
112368
|
colDefs.push({
|
|
112367
|
-
colId:
|
|
112369
|
+
colId: this.CHECK_BOX_COL_ID,
|
|
112368
112370
|
headerName: "",
|
|
112369
112371
|
checkboxSelection: true,
|
|
112370
112372
|
headerCheckboxSelection: false,
|
|
@@ -112455,7 +112457,10 @@ class AgGridController {
|
|
|
112455
112457
|
this._gridOptions.api.paginationGoToPage(page);
|
|
112456
112458
|
}
|
|
112457
112459
|
quickFilter(term) {
|
|
112458
|
-
this._dataSource.setQuickFilter(term
|
|
112460
|
+
this._dataSource.setQuickFilter(term, this._gridOptions.columnApi
|
|
112461
|
+
.getAllColumns()
|
|
112462
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
112463
|
+
.map(col => col.getColId()));
|
|
112459
112464
|
this.goToPage(0);
|
|
112460
112465
|
this._gridOptions.api.refreshServerSideStore({ purge: true });
|
|
112461
112466
|
}
|
|
@@ -110033,7 +110033,7 @@ class DataSource {
|
|
|
110033
110033
|
}
|
|
110034
110034
|
}
|
|
110035
110035
|
else {
|
|
110036
|
-
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this.
|
|
110036
|
+
this.loadData({ limit: params.api.paginationGetPageSize(), offset: params.request.startRow, quickFilter: this._quickFilter })
|
|
110037
110037
|
.then(data => params.success(data))
|
|
110038
110038
|
.catch(() => params.fail());
|
|
110039
110039
|
}
|
|
@@ -110052,14 +110052,16 @@ class DataSource {
|
|
|
110052
110052
|
}
|
|
110053
110053
|
});
|
|
110054
110054
|
}
|
|
110055
|
-
setQuickFilter(term) {
|
|
110056
|
-
this.
|
|
110055
|
+
setQuickFilter(term, fields) {
|
|
110056
|
+
this._quickFilter = { term, fields };
|
|
110057
110057
|
}
|
|
110058
110058
|
}
|
|
110059
110059
|
|
|
110060
110060
|
class AgGridController {
|
|
110061
110061
|
constructor(enterprise) {
|
|
110062
110062
|
this.DEFAULT_ROW_HEIGHT = 25;
|
|
110063
|
+
this.CHECK_BOX_COL_ID = "checkBoxColumn";
|
|
110064
|
+
this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
|
|
110063
110065
|
this._menuItems = [];
|
|
110064
110066
|
this._idAttribName = "__record__id__";
|
|
110065
110067
|
this._isFirstRecordOfPage = true;
|
|
@@ -110228,7 +110230,7 @@ class AgGridController {
|
|
|
110228
110230
|
const colDefs = [];
|
|
110229
110231
|
if (showCheckSelection) {
|
|
110230
110232
|
colDefs.push({
|
|
110231
|
-
colId:
|
|
110233
|
+
colId: this.CHECK_BOX_COL_ID,
|
|
110232
110234
|
headerName: "",
|
|
110233
110235
|
checkboxSelection: true,
|
|
110234
110236
|
headerCheckboxSelection: false,
|
|
@@ -110319,7 +110321,10 @@ class AgGridController {
|
|
|
110319
110321
|
this._gridOptions.api.paginationGoToPage(page);
|
|
110320
110322
|
}
|
|
110321
110323
|
quickFilter(term) {
|
|
110322
|
-
this._dataSource.setQuickFilter(term
|
|
110324
|
+
this._dataSource.setQuickFilter(term, this._gridOptions.columnApi
|
|
110325
|
+
.getAllColumns()
|
|
110326
|
+
.filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
|
|
110327
|
+
.map(col => col.getColId()));
|
|
110323
110328
|
this.goToPage(0);
|
|
110324
110329
|
this._gridOptions.api.refreshServerSideStore({ purge: true });
|
|
110325
110330
|
}
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-139ed2f6.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-fc9b9487",[[1,"ez-filter-input",{label:[1],value:[1537],enabled:[4],loading:[516],errorMessage:[1537,"error-message"],restrict:[1],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-2c4372a4",[[0,"ez-application"]]],["p-6287fc90",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-8be1a4d6",[[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]}]]],["p-94ed1ae6",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-517d7759",[[0,"ez-view-stack",{show:[64]}]]],["p-c2de757f",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-727a39e5",[[1,"select-box",{selectedOption:[1,"selected-option"]}]]],["p-cabe3671",[[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],stretchTitle:[516,"stretch-title"],showHide:[64]}]]],["p-ecee9d8d",[[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]}]]],["p-8cb2c629",[[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-
|
|
1
|
+
import{p as e,b as s}from"./p-139ed2f6.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-fc9b9487",[[1,"ez-filter-input",{label:[1],value:[1537],enabled:[4],loading:[516],errorMessage:[1537,"error-message"],restrict:[1],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-2c4372a4",[[0,"ez-application"]]],["p-6287fc90",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-8be1a4d6",[[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]}]]],["p-94ed1ae6",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-517d7759",[[0,"ez-view-stack",{show:[64]}]]],["p-c2de757f",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-727a39e5",[[1,"select-box",{selectedOption:[1,"selected-option"]}]]],["p-cabe3671",[[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],stretchTitle:[516,"stretch-title"],showHide:[64]}]]],["p-ecee9d8d",[[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]}]]],["p-8cb2c629",[[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-9ce93746",[[6,"ez-grid",{multipleSelection:[4,"multiple-selection"],config:[1040],pageSize:[2,"page-size"],serverUrl:[1,"server-url"],dataUnit:[16],_navigationHasPrevious:[32],_navigationHasNext:[32],_navigationFirstRow:[32],_navigationLastRow:[32],_navigationTotalRows:[32],_popUpGridConfig:[32],setColumnsDef:[64],addColumnMenuItem:[64],setColumnsState:[64],setData:[64],getSelection:[64],getColumnsState:[64],getColumns:[64],refresh:[64],quickFilter:[64],nextPage:[64],previousPage:[64],hasNextPage:[64],hasPreviousPage:[64],isLastOfPage:[64],isFirstOfPage:[64],nextRecord:[64],previousRecord:[64],hasNextRecord:[64],hasPreviousRecord:[64],openGridConfig:[64]}]]],["p-33cb1991",[[1,"ez-dialog",{confirm:[1028],critical:[1028],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],handleButtonClick:[64],show:[64]}]]],["p-dd723a09",[[1,"ez-chip",{label:[513],enabled:[516],removePosition:[513,"remove-position"],mode:[513],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-294de17e",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[1540,"use-header"],ezTitle:[1,"ez-title"]}]]],["p-347b145b",[[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],slaveMode:[516,"slave-mode"],setFocus:[64],setBlur:[64]}]]],["p-793a28cc",[[2,"grid-config",{selectedTab:[1025,"selected-tab"],columns:[1040],config:[1040]}]]],["p-6d4b1628",[[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]}]]],["p-c246e251",[[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}]]],["p-c620258b",[[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-ec8419f1",[[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]}]]],["p-b8d64970",[[1,"ez-time-input",{label:[513],viewValue:[1537,"view-value"],value:[1026],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],mode:[513],setFocus:[64],setBlur:[64]}]]],["p-db0981c1",[[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]}]]],["p-cb73bee7",[[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]}]]],["p-248361f5",[[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]}]]],["p-b65e22a1",[[1,"ez-check",{label:[513],value:[1540],enabled:[1540],mode:[513],getMode:[64],setFocus:[64]}]]],["p-2b017e4c",[[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1]}]]],["p-317250bc",[[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}]]],["p-dd6f4872",[[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],setFocus:[64],setBlur:[64]}]]],["p-9b82c2fe",[[0,"ez-form",{dataUnit:[1040],config:[16],submit:[64],cancel:[64],validate:[64]}]]],["p-4c3cd534",[[0,"test-du",{isDirty:[32]}]]]],e)));
|