@sankhyalabs/ezui 4.4.0 → 4.4.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 +13 -3
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +13 -3
- package/dist/custom-elements/index.js +13 -3
- package/dist/esm/ez-grid.entry.js +13 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-96df1a0e.entry.js → p-2af81ddc.entry.js} +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
- package/package.json +1 -1
|
@@ -118957,14 +118957,24 @@ class DataSource {
|
|
|
118957
118957
|
}
|
|
118958
118958
|
updateSelection() {
|
|
118959
118959
|
var _a;
|
|
118960
|
-
|
|
118961
|
-
|
|
118962
|
-
|
|
118960
|
+
if (this.isSelectionEquals()) {
|
|
118961
|
+
return;
|
|
118962
|
+
}
|
|
118963
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
118964
|
+
if ((dataSelection === null || dataSelection === void 0 ? void 0 : dataSelection.length) > 0) {
|
|
118965
|
+
this._controller.selectRows(dataSelection);
|
|
118963
118966
|
}
|
|
118964
118967
|
else {
|
|
118965
118968
|
this._controller.deselectAll();
|
|
118966
118969
|
}
|
|
118967
118970
|
}
|
|
118971
|
+
isSelectionEquals() {
|
|
118972
|
+
var _a, _b;
|
|
118973
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
118974
|
+
const controlSelection = (_b = this._controller) === null || _b === void 0 ? void 0 : _b.getSelection();
|
|
118975
|
+
return core.ObjectUtils.objectToString(dataSelection || []) ===
|
|
118976
|
+
core.ObjectUtils.objectToString(controlSelection || []);
|
|
118977
|
+
}
|
|
118968
118978
|
getRows(params) {
|
|
118969
118979
|
if (this.needReload(params)) {
|
|
118970
118980
|
this._lastLoadingParams = params;
|
|
@@ -40,14 +40,24 @@ export default class DataSource {
|
|
|
40
40
|
}
|
|
41
41
|
updateSelection() {
|
|
42
42
|
var _a;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
if (this.isSelectionEquals()) {
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
47
|
+
if ((dataSelection === null || dataSelection === void 0 ? void 0 : dataSelection.length) > 0) {
|
|
48
|
+
this._controller.selectRows(dataSelection);
|
|
46
49
|
}
|
|
47
50
|
else {
|
|
48
51
|
this._controller.deselectAll();
|
|
49
52
|
}
|
|
50
53
|
}
|
|
54
|
+
isSelectionEquals() {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
57
|
+
const controlSelection = (_b = this._controller) === null || _b === void 0 ? void 0 : _b.getSelection();
|
|
58
|
+
return ObjectUtils.objectToString(dataSelection || []) ===
|
|
59
|
+
ObjectUtils.objectToString(controlSelection || []);
|
|
60
|
+
}
|
|
51
61
|
getRows(params) {
|
|
52
62
|
if (this.needReload(params)) {
|
|
53
63
|
this._lastLoadingParams = params;
|
|
@@ -123269,14 +123269,24 @@ class DataSource {
|
|
|
123269
123269
|
}
|
|
123270
123270
|
updateSelection() {
|
|
123271
123271
|
var _a;
|
|
123272
|
-
|
|
123273
|
-
|
|
123274
|
-
|
|
123272
|
+
if (this.isSelectionEquals()) {
|
|
123273
|
+
return;
|
|
123274
|
+
}
|
|
123275
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
123276
|
+
if ((dataSelection === null || dataSelection === void 0 ? void 0 : dataSelection.length) > 0) {
|
|
123277
|
+
this._controller.selectRows(dataSelection);
|
|
123275
123278
|
}
|
|
123276
123279
|
else {
|
|
123277
123280
|
this._controller.deselectAll();
|
|
123278
123281
|
}
|
|
123279
123282
|
}
|
|
123283
|
+
isSelectionEquals() {
|
|
123284
|
+
var _a, _b;
|
|
123285
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
123286
|
+
const controlSelection = (_b = this._controller) === null || _b === void 0 ? void 0 : _b.getSelection();
|
|
123287
|
+
return ObjectUtils$1.objectToString(dataSelection || []) ===
|
|
123288
|
+
ObjectUtils$1.objectToString(controlSelection || []);
|
|
123289
|
+
}
|
|
123280
123290
|
getRows(params) {
|
|
123281
123291
|
if (this.needReload(params)) {
|
|
123282
123292
|
this._lastLoadingParams = params;
|
|
@@ -118953,14 +118953,24 @@ class DataSource {
|
|
|
118953
118953
|
}
|
|
118954
118954
|
updateSelection() {
|
|
118955
118955
|
var _a;
|
|
118956
|
-
|
|
118957
|
-
|
|
118958
|
-
|
|
118956
|
+
if (this.isSelectionEquals()) {
|
|
118957
|
+
return;
|
|
118958
|
+
}
|
|
118959
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
118960
|
+
if ((dataSelection === null || dataSelection === void 0 ? void 0 : dataSelection.length) > 0) {
|
|
118961
|
+
this._controller.selectRows(dataSelection);
|
|
118959
118962
|
}
|
|
118960
118963
|
else {
|
|
118961
118964
|
this._controller.deselectAll();
|
|
118962
118965
|
}
|
|
118963
118966
|
}
|
|
118967
|
+
isSelectionEquals() {
|
|
118968
|
+
var _a, _b;
|
|
118969
|
+
const dataSelection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelection();
|
|
118970
|
+
const controlSelection = (_b = this._controller) === null || _b === void 0 ? void 0 : _b.getSelection();
|
|
118971
|
+
return ObjectUtils$1.objectToString(dataSelection || []) ===
|
|
118972
|
+
ObjectUtils$1.objectToString(controlSelection || []);
|
|
118973
|
+
}
|
|
118964
118974
|
getRows(params) {
|
|
118965
118975
|
if (this.needReload(params)) {
|
|
118966
118976
|
this._lastLoadingParams = params;
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as o}from"./p-7ffd12e7.js";export{s as setNonce}from"./p-7ffd12e7.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-09271677",[[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-e6f3d036",[[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-759e37b7",[[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-fd87638e",[[1,"ez-dialog",{confirm:[1028],dialogType:[1025,"dialog-type"],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],show:[64]}]]],["p-
|
|
1
|
+
import{p as e,b as o}from"./p-7ffd12e7.js";export{s as setNonce}from"./p-7ffd12e7.js";(()=>{const o=import.meta.url,t={};return""!==o&&(t.resourcesUrl=new URL(".",o).href),e(t)})().then((e=>o([["p-09271677",[[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-e6f3d036",[[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-759e37b7",[[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-fd87638e",[[1,"ez-dialog",{confirm:[1028],dialogType:[1025,"dialog-type"],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],show:[64]}]]],["p-2af81ddc",[[6,"ez-grid",{multipleSelection:[4,"multiple-selection"],config:[1040],serverUrl:[1,"server-url"],dataUnit:[16],statusResolver:[16],_paginationInfo:[32],_paginationChangedByKeyboard:[32],_showSelectionCounter:[32],_selectionCount:[32],_selectionPageCount:[32],setColumnsDef:[64],addColumnMenuItem:[64],setColumnsState:[64],setData:[64],getSelection:[64],getColumnsState:[64],getColumns:[64],quickFilter:[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["p-7c8fb43e",[[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-6818dd0a",[[1,"ez-alert",{alertType:[513,"alert-type"]}]]],["p-077a6943",[[1,"ez-badge",{size:[513],label:[513],iconLeft:[513,"icon-left"],iconRight:[513,"icon-right"],position:[1040],hasSlot:[32]}]]],["p-06b3e801",[[1,"ez-chip",{label:[513],enabled:[516],removePosition:[513,"remove-position"],mode:[513],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-9613fae6",[[1,"ez-file-item",{canRemove:[4,"can-remove"],fileName:[1,"file-name"],iconName:[1,"icon-name"],fileSize:[2,"file-size"],progress:[2]}]]],["p-ada6e6b0",[[0,"ez-application"]]],["p-07b99b94",[[1,"ez-card-item",{item:[16]}]]],["p-2a848666",[[1,"ez-list",{dataSource:[1040],useGroups:[1540,"use-groups"],ezDraggable:[1028,"ez-draggable"],ezSelectable:[1028,"ez-selectable"],itemSlotBuilder:[1040],hoverFeedback:[1028,"hover-feedback"],_listItems:[32],_listGroupItems:[32],clearHistory:[64],scrollToTop:[64],setSelection:[64],getSelection:[64],getList:[64]}]]],["p-0c7e81fe",[[1,"ez-loading-bar",{_showLoading:[32],hide:[64],show:[64]}]]],["p-eceb9382",[[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]],["p-6388d982",[[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-600f1732",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[516,"use-header"],heightMode:[513,"height-mode"],ezTitle:[1,"ez-title"]}]]],["p-b941aeee",[[1,"ez-radio-button",{value:[1544],options:[1040],enabled:[516],label:[513],direction:[1537]}]]],["p-e85f1a6a",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],canClose:[1028,"can-close"],show:[64]}]]],["p-b3c7b243",[[0,"ez-view-stack",{show:[64],getSelectedIndex:[64]}]]],["p-a67e056f",[[1,"ez-dropdown",{items:[1040],value:[1040],itemBuilder:[16]}]]],["p-99d822cc",[[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1],_processedTabs:[32]}]]],["p-493e2af4",[[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-bbccda3f",[[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],headerAlign:[513,"header-align"],removable:[516],editable:[516],conditionalSave:[16],_activeEditText:[32],showHide:[64],applyFocusTextEdit:[64],cancelEdition:[64]}]]],["p-695facd0",[[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-4555df8f",[[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],mode:[513],setFocus:[64],setBlur:[64],isInvalid:[64]}]]],["p-581df847",[[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-36f7ec68",[[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-86d29565",[[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-a3ce3710",[[1,"ez-check",{label:[513],value:[1540],enabled:[1540],indeterminate:[1540],mode:[513],getMode:[64],setFocus:[64]}]]],["p-c0184982",[[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-622c2d53",[[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-7147d43a",[[1,"ez-text-edit",{value:[1],styled:[16],_newValue:[32],applyFocusSelect:[64]}]]],["p-878646a0",[[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-0d04119a",[[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-a4b281ca",[[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}]]],["p-02fc35a6",[[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}]]],["p-36374dfe",[[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-b7ea9791",[[2,"ez-form-view",{fields:[16],showUp:[64]}]]],["p-1f841f3c",[[2,"ez-form",{dataUnit:[1040],config:[16],recordsValidator:[16],validate:[64]}]]]],e)));
|