@sankhyalabs/ezui 4.11.0 → 4.11.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/ez-grid.cjs.entry.js +11 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +5 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +6 -0
- package/dist/custom-elements/index.js +11 -0
- package/dist/esm/ez-grid.entry.js +11 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-5fd78a57.entry.js → p-5d8f02ee.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
- package/package.json +1 -1
|
@@ -118992,8 +118992,14 @@ class DataSource {
|
|
|
118992
118992
|
this._dataUnit.unsubscribe(this.duObserver);
|
|
118993
118993
|
}
|
|
118994
118994
|
buildColumnDefs() {
|
|
118995
|
+
const gridConfig = this._controller.getGridConfig() || [];
|
|
118995
118996
|
const columnDefs = [];
|
|
118996
118997
|
if (this._dataUnit.metadata) {
|
|
118998
|
+
this._dataUnit.metadata.fields.sort((a, b) => {
|
|
118999
|
+
const indexA = gridConfig.findIndex(value => value.name === a.name);
|
|
119000
|
+
const indexB = gridConfig.findIndex(value => value.name === b.name);
|
|
119001
|
+
return indexA - indexB;
|
|
119002
|
+
});
|
|
118997
119003
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
118998
119004
|
var _a;
|
|
118999
119005
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
@@ -119096,8 +119102,12 @@ class AgGridController {
|
|
|
119096
119102
|
this.DEFAULT_MAX_SIZE = 200;
|
|
119097
119103
|
this._menuItems = [];
|
|
119098
119104
|
this._idAttribName = "__record__id__";
|
|
119105
|
+
this._gridConfig = [];
|
|
119099
119106
|
this._enterprise = enterprise;
|
|
119100
119107
|
}
|
|
119108
|
+
getGridConfig() {
|
|
119109
|
+
return this._gridConfig;
|
|
119110
|
+
}
|
|
119101
119111
|
getSort() {
|
|
119102
119112
|
const sortedColumns = [];
|
|
119103
119113
|
this._gridOptions.columnApi.getColumnState()
|
|
@@ -119467,6 +119477,7 @@ class AgGridController {
|
|
|
119467
119477
|
state: sort,
|
|
119468
119478
|
defaultState: { sort: null },
|
|
119469
119479
|
});
|
|
119480
|
+
this._gridConfig = state;
|
|
119470
119481
|
}
|
|
119471
119482
|
getColumnsState() {
|
|
119472
119483
|
if (this._grid === undefined) {
|
|
@@ -19,8 +19,12 @@ export default class AgGridController {
|
|
|
19
19
|
this.DEFAULT_MAX_SIZE = 200;
|
|
20
20
|
this._menuItems = [];
|
|
21
21
|
this._idAttribName = "__record__id__";
|
|
22
|
+
this._gridConfig = [];
|
|
22
23
|
this._enterprise = enterprise;
|
|
23
24
|
}
|
|
25
|
+
getGridConfig() {
|
|
26
|
+
return this._gridConfig;
|
|
27
|
+
}
|
|
24
28
|
getSort() {
|
|
25
29
|
const sortedColumns = [];
|
|
26
30
|
this._gridOptions.columnApi.getColumnState()
|
|
@@ -390,6 +394,7 @@ export default class AgGridController {
|
|
|
390
394
|
state: sort,
|
|
391
395
|
defaultState: { sort: null },
|
|
392
396
|
});
|
|
397
|
+
this._gridConfig = state;
|
|
393
398
|
}
|
|
394
399
|
getColumnsState() {
|
|
395
400
|
if (this._grid === undefined) {
|
|
@@ -75,8 +75,14 @@ export default class DataSource {
|
|
|
75
75
|
this._dataUnit.unsubscribe(this.duObserver);
|
|
76
76
|
}
|
|
77
77
|
buildColumnDefs() {
|
|
78
|
+
const gridConfig = this._controller.getGridConfig() || [];
|
|
78
79
|
const columnDefs = [];
|
|
79
80
|
if (this._dataUnit.metadata) {
|
|
81
|
+
this._dataUnit.metadata.fields.sort((a, b) => {
|
|
82
|
+
const indexA = gridConfig.findIndex(value => value.name === a.name);
|
|
83
|
+
const indexB = gridConfig.findIndex(value => value.name === b.name);
|
|
84
|
+
return indexA - indexB;
|
|
85
|
+
});
|
|
80
86
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
81
87
|
var _a;
|
|
82
88
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
@@ -123318,8 +123318,14 @@ class DataSource {
|
|
|
123318
123318
|
this._dataUnit.unsubscribe(this.duObserver);
|
|
123319
123319
|
}
|
|
123320
123320
|
buildColumnDefs() {
|
|
123321
|
+
const gridConfig = this._controller.getGridConfig() || [];
|
|
123321
123322
|
const columnDefs = [];
|
|
123322
123323
|
if (this._dataUnit.metadata) {
|
|
123324
|
+
this._dataUnit.metadata.fields.sort((a, b) => {
|
|
123325
|
+
const indexA = gridConfig.findIndex(value => value.name === a.name);
|
|
123326
|
+
const indexB = gridConfig.findIndex(value => value.name === b.name);
|
|
123327
|
+
return indexA - indexB;
|
|
123328
|
+
});
|
|
123323
123329
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
123324
123330
|
var _a;
|
|
123325
123331
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
@@ -123422,8 +123428,12 @@ class AgGridController {
|
|
|
123422
123428
|
this.DEFAULT_MAX_SIZE = 200;
|
|
123423
123429
|
this._menuItems = [];
|
|
123424
123430
|
this._idAttribName = "__record__id__";
|
|
123431
|
+
this._gridConfig = [];
|
|
123425
123432
|
this._enterprise = enterprise;
|
|
123426
123433
|
}
|
|
123434
|
+
getGridConfig() {
|
|
123435
|
+
return this._gridConfig;
|
|
123436
|
+
}
|
|
123427
123437
|
getSort() {
|
|
123428
123438
|
const sortedColumns = [];
|
|
123429
123439
|
this._gridOptions.columnApi.getColumnState()
|
|
@@ -123793,6 +123803,7 @@ class AgGridController {
|
|
|
123793
123803
|
state: sort,
|
|
123794
123804
|
defaultState: { sort: null },
|
|
123795
123805
|
});
|
|
123806
|
+
this._gridConfig = state;
|
|
123796
123807
|
}
|
|
123797
123808
|
getColumnsState() {
|
|
123798
123809
|
if (this._grid === undefined) {
|
|
@@ -118988,8 +118988,14 @@ class DataSource {
|
|
|
118988
118988
|
this._dataUnit.unsubscribe(this.duObserver);
|
|
118989
118989
|
}
|
|
118990
118990
|
buildColumnDefs() {
|
|
118991
|
+
const gridConfig = this._controller.getGridConfig() || [];
|
|
118991
118992
|
const columnDefs = [];
|
|
118992
118993
|
if (this._dataUnit.metadata) {
|
|
118994
|
+
this._dataUnit.metadata.fields.sort((a, b) => {
|
|
118995
|
+
const indexA = gridConfig.findIndex(value => value.name === a.name);
|
|
118996
|
+
const indexB = gridConfig.findIndex(value => value.name === b.name);
|
|
118997
|
+
return indexA - indexB;
|
|
118998
|
+
});
|
|
118993
118999
|
this._dataUnit.metadata.fields.forEach(f => {
|
|
118994
119000
|
var _a;
|
|
118995
119001
|
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
@@ -119092,8 +119098,12 @@ class AgGridController {
|
|
|
119092
119098
|
this.DEFAULT_MAX_SIZE = 200;
|
|
119093
119099
|
this._menuItems = [];
|
|
119094
119100
|
this._idAttribName = "__record__id__";
|
|
119101
|
+
this._gridConfig = [];
|
|
119095
119102
|
this._enterprise = enterprise;
|
|
119096
119103
|
}
|
|
119104
|
+
getGridConfig() {
|
|
119105
|
+
return this._gridConfig;
|
|
119106
|
+
}
|
|
119097
119107
|
getSort() {
|
|
119098
119108
|
const sortedColumns = [];
|
|
119099
119109
|
this._gridOptions.columnApi.getColumnState()
|
|
@@ -119463,6 +119473,7 @@ class AgGridController {
|
|
|
119463
119473
|
state: sort,
|
|
119464
119474
|
defaultState: { sort: null },
|
|
119465
119475
|
});
|
|
119476
|
+
this._gridConfig = state;
|
|
119466
119477
|
}
|
|
119467
119478
|
getColumnsState() {
|
|
119468
119479
|
if (this._grid === undefined) {
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-bfc7b8ca.js";export{s as setNonce}from"./p-bfc7b8ca.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-2756003d",[[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]}]]],["p-5844ec15",[[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]}]]],["p-b01e05a1",[[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]}]]],["p-fc2faf3a",[[1,"ez-dialog",{confirm:[1028],dialogType:[1025,"dialog-type"],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],beforeClose:[1040],show:[64]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-bfc7b8ca.js";export{s as setNonce}from"./p-bfc7b8ca.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-2756003d",[[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]}]]],["p-5844ec15",[[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]}]]],["p-b01e05a1",[[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]}]]],["p-fc2faf3a",[[1,"ez-dialog",{confirm:[1028],dialogType:[1025,"dialog-type"],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],beforeClose:[1040],show:[64]}]]],["p-5d8f02ee",[[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"]]]]],["p-f71f0aa2",[[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"]}]]],["p-997b2df9",[[1,"ez-alert",{alertType:[513,"alert-type"]}]]],["p-6adf3791",[[1,"ez-badge",{size:[513],label:[513],iconLeft:[513,"icon-left"],iconRight:[513,"icon-right"],position:[1040],hasSlot:[32]}]]],["p-d892dc4f",[[1,"ez-chip",{label:[513],enabled:[516],removePosition:[513,"remove-position"],mode:[513],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-2f80d68c",[[1,"ez-file-item",{canRemove:[4,"can-remove"],fileName:[1,"file-name"],iconName:[1,"icon-name"],fileSize:[2,"file-size"],progress:[2]}]]],["p-11431283",[[1,"ez-list",{dataSource:[1040],listMode:[1,"list-mode"],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]}]]],["p-e8e7ec07",[[0,"ez-application"]]],["p-848bc350",[[1,"ez-card-item",{item:[16]}]]],["p-1ac06223",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-bef2df29",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],heightMode:[1,"height-mode"],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-19995acb",[[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]}]]],["p-82a60d38",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[516,"use-header"],heightMode:[513,"height-mode"],ezTitle:[1,"ez-title"]}]]],["p-6e453307",[[1,"ez-radio-button",{value:[1544],options:[1040],enabled:[516],label:[513],direction:[1537]}]]],["p-672c1fba",[[0,"ez-skeleton",{count:[2],variant:[1],width:[1],height:[1],marginBottom:[1,"margin-bottom"],animation:[1]}]]],["p-0c2187a1",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-a279fbc2",[[0,"ez-view-stack",{show:[64],getSelectedIndex:[64]}]]],["p-41e82662",[[1,"ez-dropdown",{items:[1040],value:[1040],itemBuilder:[16]}]]],["p-fc71f135",[[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1],_processedTabs:[32]}]]],["p-c00e734a",[[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]}]]],["p-9feb7d03",[[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]}]]],["p-5d8d9a2e",[[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]}]]],["p-15e29287",[[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-751aa882",[[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]}]]],["p-ff4141d8",[[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]}]]],["p-a9f0f910",[[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]}]]],["p-6f11ddf8",[[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]}]]],["p-b8281997",[[1,"ez-upload",{label:[1],subtitle:[1],enabled:[4],maxFileSize:[2,"max-file-size"],maxFiles:[2,"max-files"],requestHeaders:[8,"request-headers"],urlUpload:[1,"url-upload"],urlDelete:[1,"url-delete"],value:[1040],addFiles:[64],setFocus:[64],setBlur:[64]}]]],["p-4f9931d8",[[1,"ez-text-edit",{value:[1],styled:[16],_newValue:[32],applyFocusSelect:[64]}]]],["p-a98176cb",[[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]}]]],["p-c99bca75",[[1,"ez-check",{label:[513],value:[1540],enabled:[1540],indeterminate:[1540],mode:[513],getMode:[64],setFocus:[64]}]]],["p-55cd357c",[[2,"ez-form-view",{fields:[16],showUp:[64]}]]],["p-cc27b839",[[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"]]],["p-994c4934",[[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}]]],["p-1a902d0e",[[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}]]],["p-9a9cca48",[[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]},[[2,"click","clickListener"]]]]],["p-be09b541",[[2,"ez-form",{dataUnit:[1040],config:[16],recordsValidator:[16],validate:[64]}]]]],e)));
|