@sankhyalabs/ezui 2.4.0 → 2.4.2
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 +14 -9
- package/dist/cjs/ez-scroller.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 +14 -9
- package/dist/collection/components/ez-scroller/ez-scroller.js +18 -3
- package/dist/custom-elements/index.js +31 -12
- package/dist/esm/ez-grid.entry.js +14 -9
- package/dist/esm/ez-scroller.entry.js +16 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-4c061e51.entry.js → p-0dfcaee5.entry.js} +1 -1
- package/dist/ezui/p-bd9d791c.entry.js +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +3 -0
- package/package.json +2 -2
- package/dist/ezui/p-e165c3ef.entry.js +0 -1
|
@@ -114787,15 +114787,10 @@ class AgGridController {
|
|
|
114787
114787
|
if (this._dataUnit) {
|
|
114788
114788
|
this._dataUnit.sortingProvider = this;
|
|
114789
114789
|
}
|
|
114790
|
-
this._dataSource = new DataSource(this._dataUnit, this, options);
|
|
114791
114790
|
this._gridOptions = {
|
|
114792
114791
|
localeText: gridTerms,
|
|
114793
|
-
rowModelType: "serverSide",
|
|
114794
|
-
serverSideSortOnServer: true,
|
|
114795
114792
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
114796
|
-
serverSideDatasource: this._dataSource,
|
|
114797
114793
|
sortingOrder: ['desc', 'asc', null],
|
|
114798
|
-
columnDefs: this._colDefs,
|
|
114799
114794
|
blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
|
|
114800
114795
|
navigateToNextCell: this.navigateToNextCell.bind(this),
|
|
114801
114796
|
getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
|
|
@@ -114821,6 +114816,7 @@ class AgGridController {
|
|
|
114821
114816
|
headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
|
|
114822
114817
|
}
|
|
114823
114818
|
};
|
|
114819
|
+
this.defineRowModelType(this._gridOptions, options);
|
|
114824
114820
|
this.setOptionsEvents(this._gridOptions);
|
|
114825
114821
|
this.setOptionsSupress(this._gridOptions);
|
|
114826
114822
|
if (this._enterprise) {
|
|
@@ -114879,6 +114875,14 @@ class AgGridController {
|
|
|
114879
114875
|
}
|
|
114880
114876
|
return null;
|
|
114881
114877
|
}
|
|
114878
|
+
defineRowModelType(opt, sourceOptions) {
|
|
114879
|
+
if (this._dataUnit != undefined) {
|
|
114880
|
+
opt.rowModelType = "serverSide";
|
|
114881
|
+
opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
114882
|
+
opt.serverSideSortOnServer = true;
|
|
114883
|
+
opt.columnDefs = this._colDefs;
|
|
114884
|
+
}
|
|
114885
|
+
}
|
|
114882
114886
|
setOptionsEvents(opt) {
|
|
114883
114887
|
opt.onSortChanged = e => this.onCallStateChange("sort", e);
|
|
114884
114888
|
opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
|
|
@@ -115034,7 +115038,7 @@ class AgGridController {
|
|
|
115034
115038
|
newColDefs.push(this.buildColDef(c));
|
|
115035
115039
|
});
|
|
115036
115040
|
this._colDefs = newColDefs;
|
|
115037
|
-
if (this._gridOptions) {
|
|
115041
|
+
if (this._gridOptions && this._gridOptions.api) {
|
|
115038
115042
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
115039
115043
|
}
|
|
115040
115044
|
}
|
|
@@ -115126,10 +115130,11 @@ class AgGridController {
|
|
|
115126
115130
|
(_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
|
|
115127
115131
|
}
|
|
115128
115132
|
buildColDef(source) {
|
|
115133
|
+
var _a, _b, _c;
|
|
115129
115134
|
let tooltip = undefined;
|
|
115130
|
-
const propSortable = core.StringUtils.getBooleanValue(source.props.get("gridSortable"), true);
|
|
115131
|
-
if (source.props.get("gridHeaderTooltip")) {
|
|
115132
|
-
tooltip = source.props.get("gridHeaderTooltip");
|
|
115135
|
+
const propSortable = core.StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
|
|
115136
|
+
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
|
|
115137
|
+
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
|
|
115133
115138
|
}
|
|
115134
115139
|
else if (propSortable === false) {
|
|
115135
115140
|
tooltip = "Coluna não pode ser ordenada";
|
|
@@ -19,6 +19,7 @@ let EzScroller = class {
|
|
|
19
19
|
index.registerInstance(this, hostRef);
|
|
20
20
|
this._classHidden = "ez-scroller__shadow--hidden";
|
|
21
21
|
this.isFirefox = false;
|
|
22
|
+
this.isActive = false;
|
|
22
23
|
/**
|
|
23
24
|
* Define se o `scroll` estará bloqueado.
|
|
24
25
|
*/
|
|
@@ -34,7 +35,7 @@ let EzScroller = class {
|
|
|
34
35
|
getContainerClass() {
|
|
35
36
|
return `ez-scroller__container ez-scroller__container--${this.direction}
|
|
36
37
|
${this.locked ? " ez-scroller__container--locked" : ""}
|
|
37
|
-
${this.isFirefox ? " ez-scroller__container--no-overlay" : ""}
|
|
38
|
+
${this.isFirefox && this.isActive ? " ez-scroller__container--no-overlay" : ""}
|
|
38
39
|
`;
|
|
39
40
|
}
|
|
40
41
|
getShadowStartClass() {
|
|
@@ -63,6 +64,7 @@ let EzScroller = class {
|
|
|
63
64
|
this._startHidden = container.scrollTop > 0;
|
|
64
65
|
}
|
|
65
66
|
this._endHidden = remainingScroll > 0;
|
|
67
|
+
this.isActive = this._startHidden || this._endHidden;
|
|
66
68
|
const shadowPositions = ["", "start", "end", "middle"];
|
|
67
69
|
const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
68
70
|
if (currentPosition === "start") {
|
|
@@ -83,6 +85,17 @@ let EzScroller = class {
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
}
|
|
88
|
+
configResize() {
|
|
89
|
+
const container = this._container;
|
|
90
|
+
if (container == undefined) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (this._resizeObserver != undefined) {
|
|
94
|
+
this._resizeObserver.unobserve(container);
|
|
95
|
+
}
|
|
96
|
+
this._resizeObserver = new ResizeObserver(core.JSUtils.debounce(this.updateShadow.bind(this), 200));
|
|
97
|
+
this._resizeObserver.observe(container);
|
|
98
|
+
}
|
|
86
99
|
//---------------------------------------------
|
|
87
100
|
// Event handlers
|
|
88
101
|
//---------------------------------------------
|
|
@@ -133,6 +146,7 @@ let EzScroller = class {
|
|
|
133
146
|
}
|
|
134
147
|
if (this._container && this.activeShadow) {
|
|
135
148
|
this._container.onscroll = this.updateShadow.bind(this);
|
|
149
|
+
this.configResize();
|
|
136
150
|
this.updateShadow();
|
|
137
151
|
}
|
|
138
152
|
}
|
package/dist/cjs/ezui.cjs.js
CHANGED
|
@@ -15,5 +15,5 @@ const patchBrowser = () => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
patchBrowser().then(options => {
|
|
18
|
-
return index.bootstrapLazy([["ez-actions-button.cjs",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"isOpened":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container.cjs",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-list.cjs",[[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-loading-bar.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover.cjs",[[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.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller.cjs",[[1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isFirefox":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-collapsible-box.cjs",[[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]}]]],["ez-search.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input.cjs",[[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-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload.cjs",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-text-edit.cjs",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box.cjs",[[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-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
|
|
18
|
+
return index.bootstrapLazy([["ez-actions-button.cjs",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"isOpened":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container.cjs",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-list.cjs",[[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-loading-bar.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover.cjs",[[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.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller.cjs",[[1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isFirefox":[32],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-collapsible-box.cjs",[[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]}]]],["ez-search.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input.cjs",[[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-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload.cjs",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-text-edit.cjs",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box.cjs",[[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-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
|
|
19
19
|
});
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -14,7 +14,7 @@ const patchEsm = () => {
|
|
|
14
14
|
const defineCustomElements = (win, options) => {
|
|
15
15
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
16
|
return patchEsm().then(() => {
|
|
17
|
-
return index.bootstrapLazy([["ez-actions-button.cjs",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"isOpened":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container.cjs",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-list.cjs",[[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-loading-bar.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover.cjs",[[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.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller.cjs",[[1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isFirefox":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-collapsible-box.cjs",[[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]}]]],["ez-search.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input.cjs",[[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-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload.cjs",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-text-edit.cjs",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box.cjs",[[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-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
|
|
17
|
+
return index.bootstrapLazy([["ez-actions-button.cjs",[[1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32],"hideActions":[64],"isOpened":[64]}]]],["ez-dialog.cjs",[[1,"ez-dialog",{"confirm":[1028],"dialogType":[1025,"dialog-type"],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"show":[64]}]]],["ez-filter-input.cjs",[[1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-grid.cjs",[[6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"setColumnsDef":[64],"addColumnMenuItem":[64],"setColumnsState":[64],"setData":[64],"getSelection":[64],"getColumnsState":[64],"getColumns":[64],"quickFilter":[64]},[[0,"ezSelectionChange","onSelectionChange"]]]]],["ez-modal-container.cjs",[[6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-application.cjs",[[0,"ez-application"]]],["ez-card-item.cjs",[[1,"ez-card-item",{"item":[16]}]]],["ez-list.cjs",[[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-loading-bar.cjs",[[1,"ez-loading-bar",{"_showLoading":[32],"hide":[64],"show":[64]}]]],["ez-modal.cjs",[[1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]]],["ez-popover.cjs",[[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.cjs",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]]],["ez-radio-button.cjs",[[1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]]],["ez-scroller.cjs",[[1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isFirefox":[32],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]]],["ez-toast.cjs",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"],"show":[64]}]]],["ez-view-stack.cjs",[[0,"ez-view-stack",{"show":[64],"getSelectedIndex":[64]}]]],["ez-text-input.cjs",[[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1],"mode":[513],"noBorder":[516,"no-border"],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-collapsible-box.cjs",[[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]}]]],["ez-search.cjs",[[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.cjs",[[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.cjs",[[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.cjs",[[1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-number-input.cjs",[[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-tabselector.cjs",[[1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]]],["ez-check.cjs",[[1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"indeterminate":[516],"mode":[513],"getMode":[64],"setFocus":[64]}]]],["ez-text-area.cjs",[[1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513],"setFocus":[64],"setBlur":[64],"isInvalid":[64]}]]],["ez-upload.cjs",[[1,"ez-upload",{"label":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040],"addFiles":[64],"setFocus":[64],"setBlur":[64]}]]],["ez-text-edit.cjs",[[1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32],"applyFocusSelect":[64]}]]],["ez-combo-box.cjs",[[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-calendar.cjs",[[1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"],"show":[64],"fitVertical":[64],"hide":[64]}]]],["ez-icon.cjs",[[1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]]],["ez-button.cjs",[[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513],"setFocus":[64],"setBlur":[64]}]]],["ez-form.cjs",[[0,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16],"validate":[64]}]]]], options);
|
|
18
18
|
});
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -45,15 +45,10 @@ export default class AgGridController {
|
|
|
45
45
|
if (this._dataUnit) {
|
|
46
46
|
this._dataUnit.sortingProvider = this;
|
|
47
47
|
}
|
|
48
|
-
this._dataSource = new DataSource(this._dataUnit, this, options);
|
|
49
48
|
this._gridOptions = {
|
|
50
49
|
localeText: gridTerms,
|
|
51
|
-
rowModelType: "serverSide",
|
|
52
|
-
serverSideSortOnServer: true,
|
|
53
50
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
54
|
-
serverSideDatasource: this._dataSource,
|
|
55
51
|
sortingOrder: ['desc', 'asc', null],
|
|
56
|
-
columnDefs: this._colDefs,
|
|
57
52
|
blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
|
|
58
53
|
navigateToNextCell: this.navigateToNextCell.bind(this),
|
|
59
54
|
getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
|
|
@@ -79,6 +74,7 @@ export default class AgGridController {
|
|
|
79
74
|
headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
|
|
80
75
|
}
|
|
81
76
|
};
|
|
77
|
+
this.defineRowModelType(this._gridOptions, options);
|
|
82
78
|
this.setOptionsEvents(this._gridOptions);
|
|
83
79
|
this.setOptionsSupress(this._gridOptions);
|
|
84
80
|
if (this._enterprise) {
|
|
@@ -137,6 +133,14 @@ export default class AgGridController {
|
|
|
137
133
|
}
|
|
138
134
|
return null;
|
|
139
135
|
}
|
|
136
|
+
defineRowModelType(opt, sourceOptions) {
|
|
137
|
+
if (this._dataUnit != undefined) {
|
|
138
|
+
opt.rowModelType = "serverSide";
|
|
139
|
+
opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
140
|
+
opt.serverSideSortOnServer = true;
|
|
141
|
+
opt.columnDefs = this._colDefs;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
140
144
|
setOptionsEvents(opt) {
|
|
141
145
|
opt.onSortChanged = e => this.onCallStateChange("sort", e);
|
|
142
146
|
opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
|
|
@@ -292,7 +296,7 @@ export default class AgGridController {
|
|
|
292
296
|
newColDefs.push(this.buildColDef(c));
|
|
293
297
|
});
|
|
294
298
|
this._colDefs = newColDefs;
|
|
295
|
-
if (this._gridOptions) {
|
|
299
|
+
if (this._gridOptions && this._gridOptions.api) {
|
|
296
300
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
297
301
|
}
|
|
298
302
|
}
|
|
@@ -384,10 +388,11 @@ export default class AgGridController {
|
|
|
384
388
|
(_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
|
|
385
389
|
}
|
|
386
390
|
buildColDef(source) {
|
|
391
|
+
var _a, _b, _c;
|
|
387
392
|
let tooltip = undefined;
|
|
388
|
-
const propSortable = StringUtils.getBooleanValue(source.props.get("gridSortable"), true);
|
|
389
|
-
if (source.props.get("gridHeaderTooltip")) {
|
|
390
|
-
tooltip = source.props.get("gridHeaderTooltip");
|
|
393
|
+
const propSortable = StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
|
|
394
|
+
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
|
|
395
|
+
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
|
|
391
396
|
}
|
|
392
397
|
else if (propSortable === false) {
|
|
393
398
|
tooltip = "Coluna não pode ser ordenada";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { UserAgentUtils } from '@sankhyalabs/core';
|
|
1
|
+
import { JSUtils, UserAgentUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { Component, h, Host, Listen, Prop, State } from '@stencil/core';
|
|
3
3
|
import { EzScrollDirection } from './EzScrollDirection';
|
|
4
4
|
export class EzScroller {
|
|
5
5
|
constructor() {
|
|
6
6
|
this._classHidden = "ez-scroller__shadow--hidden";
|
|
7
7
|
this.isFirefox = false;
|
|
8
|
+
this.isActive = false;
|
|
8
9
|
/**
|
|
9
10
|
* Define se o `scroll` estará bloqueado.
|
|
10
11
|
*/
|
|
@@ -20,7 +21,7 @@ export class EzScroller {
|
|
|
20
21
|
getContainerClass() {
|
|
21
22
|
return `ez-scroller__container ez-scroller__container--${this.direction}
|
|
22
23
|
${this.locked ? " ez-scroller__container--locked" : ""}
|
|
23
|
-
${this.isFirefox ? " ez-scroller__container--no-overlay" : ""}
|
|
24
|
+
${this.isFirefox && this.isActive ? " ez-scroller__container--no-overlay" : ""}
|
|
24
25
|
`;
|
|
25
26
|
}
|
|
26
27
|
getShadowStartClass() {
|
|
@@ -49,6 +50,7 @@ export class EzScroller {
|
|
|
49
50
|
this._startHidden = container.scrollTop > 0;
|
|
50
51
|
}
|
|
51
52
|
this._endHidden = remainingScroll > 0;
|
|
53
|
+
this.isActive = this._startHidden || this._endHidden;
|
|
52
54
|
const shadowPositions = ["", "start", "end", "middle"];
|
|
53
55
|
const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
54
56
|
if (currentPosition === "start") {
|
|
@@ -69,6 +71,17 @@ export class EzScroller {
|
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
73
|
}
|
|
74
|
+
configResize() {
|
|
75
|
+
const container = this._container;
|
|
76
|
+
if (container == undefined) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (this._resizeObserver != undefined) {
|
|
80
|
+
this._resizeObserver.unobserve(container);
|
|
81
|
+
}
|
|
82
|
+
this._resizeObserver = new ResizeObserver(JSUtils.debounce(this.updateShadow.bind(this), 200));
|
|
83
|
+
this._resizeObserver.observe(container);
|
|
84
|
+
}
|
|
72
85
|
//---------------------------------------------
|
|
73
86
|
// Event handlers
|
|
74
87
|
//---------------------------------------------
|
|
@@ -119,6 +132,7 @@ export class EzScroller {
|
|
|
119
132
|
}
|
|
120
133
|
if (this._container && this.activeShadow) {
|
|
121
134
|
this._container.onscroll = this.updateShadow.bind(this);
|
|
135
|
+
this.configResize();
|
|
122
136
|
this.updateShadow();
|
|
123
137
|
}
|
|
124
138
|
}
|
|
@@ -200,7 +214,8 @@ export class EzScroller {
|
|
|
200
214
|
}
|
|
201
215
|
}; }
|
|
202
216
|
static get states() { return {
|
|
203
|
-
"isFirefox": {}
|
|
217
|
+
"isFirefox": {},
|
|
218
|
+
"isActive": {}
|
|
204
219
|
}; }
|
|
205
220
|
static get listeners() { return [{
|
|
206
221
|
"name": "click",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { FloatingManager, ElementIDUtils, StringUtils as StringUtils$1, DateUtils as DateUtils$1, TimeFormatter, UserInterface, Action, WaitingChangeException, ApplicationContext, DataUnitAction, DataUnit, ObjectUtils as ObjectUtils$1, NumberUtils as NumberUtils$1, DataType, SortMode, UserAgentUtils, MaskFormatter } from '@sankhyalabs/core';
|
|
3
|
+
import { FloatingManager, ElementIDUtils, StringUtils as StringUtils$1, DateUtils as DateUtils$1, TimeFormatter, UserInterface, Action, WaitingChangeException, ApplicationContext, DataUnitAction, DataUnit, ObjectUtils as ObjectUtils$1, NumberUtils as NumberUtils$1, DataType, SortMode, JSUtils, UserAgentUtils, MaskFormatter } from '@sankhyalabs/core';
|
|
4
4
|
|
|
5
5
|
var DialogType;
|
|
6
6
|
(function (DialogType) {
|
|
@@ -117886,15 +117886,10 @@ class AgGridController {
|
|
|
117886
117886
|
if (this._dataUnit) {
|
|
117887
117887
|
this._dataUnit.sortingProvider = this;
|
|
117888
117888
|
}
|
|
117889
|
-
this._dataSource = new DataSource(this._dataUnit, this, options);
|
|
117890
117889
|
this._gridOptions = {
|
|
117891
117890
|
localeText: gridTerms,
|
|
117892
|
-
rowModelType: "serverSide",
|
|
117893
|
-
serverSideSortOnServer: true,
|
|
117894
117891
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
117895
|
-
serverSideDatasource: this._dataSource,
|
|
117896
117892
|
sortingOrder: ['desc', 'asc', null],
|
|
117897
|
-
columnDefs: this._colDefs,
|
|
117898
117893
|
blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
|
|
117899
117894
|
navigateToNextCell: this.navigateToNextCell.bind(this),
|
|
117900
117895
|
getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
|
|
@@ -117920,6 +117915,7 @@ class AgGridController {
|
|
|
117920
117915
|
headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
|
|
117921
117916
|
}
|
|
117922
117917
|
};
|
|
117918
|
+
this.defineRowModelType(this._gridOptions, options);
|
|
117923
117919
|
this.setOptionsEvents(this._gridOptions);
|
|
117924
117920
|
this.setOptionsSupress(this._gridOptions);
|
|
117925
117921
|
if (this._enterprise) {
|
|
@@ -117978,6 +117974,14 @@ class AgGridController {
|
|
|
117978
117974
|
}
|
|
117979
117975
|
return null;
|
|
117980
117976
|
}
|
|
117977
|
+
defineRowModelType(opt, sourceOptions) {
|
|
117978
|
+
if (this._dataUnit != undefined) {
|
|
117979
|
+
opt.rowModelType = "serverSide";
|
|
117980
|
+
opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
117981
|
+
opt.serverSideSortOnServer = true;
|
|
117982
|
+
opt.columnDefs = this._colDefs;
|
|
117983
|
+
}
|
|
117984
|
+
}
|
|
117981
117985
|
setOptionsEvents(opt) {
|
|
117982
117986
|
opt.onSortChanged = e => this.onCallStateChange("sort", e);
|
|
117983
117987
|
opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
|
|
@@ -118133,7 +118137,7 @@ class AgGridController {
|
|
|
118133
118137
|
newColDefs.push(this.buildColDef(c));
|
|
118134
118138
|
});
|
|
118135
118139
|
this._colDefs = newColDefs;
|
|
118136
|
-
if (this._gridOptions) {
|
|
118140
|
+
if (this._gridOptions && this._gridOptions.api) {
|
|
118137
118141
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
118138
118142
|
}
|
|
118139
118143
|
}
|
|
@@ -118225,10 +118229,11 @@ class AgGridController {
|
|
|
118225
118229
|
(_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
|
|
118226
118230
|
}
|
|
118227
118231
|
buildColDef(source) {
|
|
118232
|
+
var _a, _b, _c;
|
|
118228
118233
|
let tooltip = undefined;
|
|
118229
|
-
const propSortable = StringUtils$1.getBooleanValue(source.props.get("gridSortable"), true);
|
|
118230
|
-
if (source.props.get("gridHeaderTooltip")) {
|
|
118231
|
-
tooltip = source.props.get("gridHeaderTooltip");
|
|
118234
|
+
const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
|
|
118235
|
+
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
|
|
118236
|
+
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
|
|
118232
118237
|
}
|
|
118233
118238
|
else if (propSortable === false) {
|
|
118234
118239
|
tooltip = "Coluna não pode ser ordenada";
|
|
@@ -119664,6 +119669,7 @@ let EzScroller$1 = class extends HTMLElement$1 {
|
|
|
119664
119669
|
this.__attachShadow();
|
|
119665
119670
|
this._classHidden = "ez-scroller__shadow--hidden";
|
|
119666
119671
|
this.isFirefox = false;
|
|
119672
|
+
this.isActive = false;
|
|
119667
119673
|
/**
|
|
119668
119674
|
* Define se o `scroll` estará bloqueado.
|
|
119669
119675
|
*/
|
|
@@ -119679,7 +119685,7 @@ let EzScroller$1 = class extends HTMLElement$1 {
|
|
|
119679
119685
|
getContainerClass() {
|
|
119680
119686
|
return `ez-scroller__container ez-scroller__container--${this.direction}
|
|
119681
119687
|
${this.locked ? " ez-scroller__container--locked" : ""}
|
|
119682
|
-
${this.isFirefox ? " ez-scroller__container--no-overlay" : ""}
|
|
119688
|
+
${this.isFirefox && this.isActive ? " ez-scroller__container--no-overlay" : ""}
|
|
119683
119689
|
`;
|
|
119684
119690
|
}
|
|
119685
119691
|
getShadowStartClass() {
|
|
@@ -119708,6 +119714,7 @@ let EzScroller$1 = class extends HTMLElement$1 {
|
|
|
119708
119714
|
this._startHidden = container.scrollTop > 0;
|
|
119709
119715
|
}
|
|
119710
119716
|
this._endHidden = remainingScroll > 0;
|
|
119717
|
+
this.isActive = this._startHidden || this._endHidden;
|
|
119711
119718
|
const shadowPositions = ["", "start", "end", "middle"];
|
|
119712
119719
|
const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
119713
119720
|
if (currentPosition === "start") {
|
|
@@ -119728,6 +119735,17 @@ let EzScroller$1 = class extends HTMLElement$1 {
|
|
|
119728
119735
|
}
|
|
119729
119736
|
}
|
|
119730
119737
|
}
|
|
119738
|
+
configResize() {
|
|
119739
|
+
const container = this._container;
|
|
119740
|
+
if (container == undefined) {
|
|
119741
|
+
return;
|
|
119742
|
+
}
|
|
119743
|
+
if (this._resizeObserver != undefined) {
|
|
119744
|
+
this._resizeObserver.unobserve(container);
|
|
119745
|
+
}
|
|
119746
|
+
this._resizeObserver = new ResizeObserver(JSUtils.debounce(this.updateShadow.bind(this), 200));
|
|
119747
|
+
this._resizeObserver.observe(container);
|
|
119748
|
+
}
|
|
119731
119749
|
//---------------------------------------------
|
|
119732
119750
|
// Event handlers
|
|
119733
119751
|
//---------------------------------------------
|
|
@@ -119778,6 +119796,7 @@ let EzScroller$1 = class extends HTMLElement$1 {
|
|
|
119778
119796
|
}
|
|
119779
119797
|
if (this._container && this.activeShadow) {
|
|
119780
119798
|
this._container.onscroll = this.updateShadow.bind(this);
|
|
119799
|
+
this.configResize();
|
|
119781
119800
|
this.updateShadow();
|
|
119782
119801
|
}
|
|
119783
119802
|
}
|
|
@@ -121355,7 +121374,7 @@ const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-nu
|
|
|
121355
121374
|
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"]}]);
|
|
121356
121375
|
const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]);
|
|
121357
121376
|
const EzRadioButton = /*@__PURE__*/proxyCustomElement(EzRadioButton$1, [1,"ez-radio-button",{"value":[1544],"options":[1040],"enabled":[516],"label":[513],"direction":[1537]}]);
|
|
121358
|
-
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isFirefox":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
121377
|
+
const EzScroller = /*@__PURE__*/proxyCustomElement(EzScroller$1, [1,"ez-scroller",{"direction":[1],"locked":[4],"activeShadow":[4,"active-shadow"],"isFirefox":[32],"isActive":[32]},[[2,"click","clickListener"],[1,"mousedown","mouseDownHandler"],[1,"mouseup","mouseUpHandler"],[1,"mousemove","mouseMoveHandler"]]]);
|
|
121359
121378
|
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [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]}]);
|
|
121360
121379
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32]}]);
|
|
121361
121380
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513]}]);
|
|
@@ -114783,15 +114783,10 @@ class AgGridController {
|
|
|
114783
114783
|
if (this._dataUnit) {
|
|
114784
114784
|
this._dataUnit.sortingProvider = this;
|
|
114785
114785
|
}
|
|
114786
|
-
this._dataSource = new DataSource(this._dataUnit, this, options);
|
|
114787
114786
|
this._gridOptions = {
|
|
114788
114787
|
localeText: gridTerms,
|
|
114789
|
-
rowModelType: "serverSide",
|
|
114790
|
-
serverSideSortOnServer: true,
|
|
114791
114788
|
rowSelection: this._multipleSelection ? "multiple" : "single",
|
|
114792
|
-
serverSideDatasource: this._dataSource,
|
|
114793
114789
|
sortingOrder: ['desc', 'asc', null],
|
|
114794
|
-
columnDefs: this._colDefs,
|
|
114795
114790
|
blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
|
|
114796
114791
|
navigateToNextCell: this.navigateToNextCell.bind(this),
|
|
114797
114792
|
getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
|
|
@@ -114817,6 +114812,7 @@ class AgGridController {
|
|
|
114817
114812
|
headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
|
|
114818
114813
|
}
|
|
114819
114814
|
};
|
|
114815
|
+
this.defineRowModelType(this._gridOptions, options);
|
|
114820
114816
|
this.setOptionsEvents(this._gridOptions);
|
|
114821
114817
|
this.setOptionsSupress(this._gridOptions);
|
|
114822
114818
|
if (this._enterprise) {
|
|
@@ -114875,6 +114871,14 @@ class AgGridController {
|
|
|
114875
114871
|
}
|
|
114876
114872
|
return null;
|
|
114877
114873
|
}
|
|
114874
|
+
defineRowModelType(opt, sourceOptions) {
|
|
114875
|
+
if (this._dataUnit != undefined) {
|
|
114876
|
+
opt.rowModelType = "serverSide";
|
|
114877
|
+
opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
114878
|
+
opt.serverSideSortOnServer = true;
|
|
114879
|
+
opt.columnDefs = this._colDefs;
|
|
114880
|
+
}
|
|
114881
|
+
}
|
|
114878
114882
|
setOptionsEvents(opt) {
|
|
114879
114883
|
opt.onSortChanged = e => this.onCallStateChange("sort", e);
|
|
114880
114884
|
opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
|
|
@@ -115030,7 +115034,7 @@ class AgGridController {
|
|
|
115030
115034
|
newColDefs.push(this.buildColDef(c));
|
|
115031
115035
|
});
|
|
115032
115036
|
this._colDefs = newColDefs;
|
|
115033
|
-
if (this._gridOptions) {
|
|
115037
|
+
if (this._gridOptions && this._gridOptions.api) {
|
|
115034
115038
|
this._gridOptions.api.setColumnDefs(this._colDefs);
|
|
115035
115039
|
}
|
|
115036
115040
|
}
|
|
@@ -115122,10 +115126,11 @@ class AgGridController {
|
|
|
115122
115126
|
(_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
|
|
115123
115127
|
}
|
|
115124
115128
|
buildColDef(source) {
|
|
115129
|
+
var _a, _b, _c;
|
|
115125
115130
|
let tooltip = undefined;
|
|
115126
|
-
const propSortable = StringUtils$1.getBooleanValue(source.props.get("gridSortable"), true);
|
|
115127
|
-
if (source.props.get("gridHeaderTooltip")) {
|
|
115128
|
-
tooltip = source.props.get("gridHeaderTooltip");
|
|
115131
|
+
const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
|
|
115132
|
+
if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
|
|
115133
|
+
tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
|
|
115129
115134
|
}
|
|
115130
115135
|
else if (propSortable === false) {
|
|
115131
115136
|
tooltip = "Coluna não pode ser ordenada";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host } from './index-7bc778b3.js';
|
|
2
|
-
import { UserAgentUtils } from '@sankhyalabs/core';
|
|
2
|
+
import { JSUtils, UserAgentUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
var EzScrollDirection;
|
|
5
5
|
(function (EzScrollDirection) {
|
|
@@ -15,6 +15,7 @@ let EzScroller = class {
|
|
|
15
15
|
registerInstance(this, hostRef);
|
|
16
16
|
this._classHidden = "ez-scroller__shadow--hidden";
|
|
17
17
|
this.isFirefox = false;
|
|
18
|
+
this.isActive = false;
|
|
18
19
|
/**
|
|
19
20
|
* Define se o `scroll` estará bloqueado.
|
|
20
21
|
*/
|
|
@@ -30,7 +31,7 @@ let EzScroller = class {
|
|
|
30
31
|
getContainerClass() {
|
|
31
32
|
return `ez-scroller__container ez-scroller__container--${this.direction}
|
|
32
33
|
${this.locked ? " ez-scroller__container--locked" : ""}
|
|
33
|
-
${this.isFirefox ? " ez-scroller__container--no-overlay" : ""}
|
|
34
|
+
${this.isFirefox && this.isActive ? " ez-scroller__container--no-overlay" : ""}
|
|
34
35
|
`;
|
|
35
36
|
}
|
|
36
37
|
getShadowStartClass() {
|
|
@@ -59,6 +60,7 @@ let EzScroller = class {
|
|
|
59
60
|
this._startHidden = container.scrollTop > 0;
|
|
60
61
|
}
|
|
61
62
|
this._endHidden = remainingScroll > 0;
|
|
63
|
+
this.isActive = this._startHidden || this._endHidden;
|
|
62
64
|
const shadowPositions = ["", "start", "end", "middle"];
|
|
63
65
|
const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
64
66
|
if (currentPosition === "start") {
|
|
@@ -79,6 +81,17 @@ let EzScroller = class {
|
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
}
|
|
84
|
+
configResize() {
|
|
85
|
+
const container = this._container;
|
|
86
|
+
if (container == undefined) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (this._resizeObserver != undefined) {
|
|
90
|
+
this._resizeObserver.unobserve(container);
|
|
91
|
+
}
|
|
92
|
+
this._resizeObserver = new ResizeObserver(JSUtils.debounce(this.updateShadow.bind(this), 200));
|
|
93
|
+
this._resizeObserver.observe(container);
|
|
94
|
+
}
|
|
82
95
|
//---------------------------------------------
|
|
83
96
|
// Event handlers
|
|
84
97
|
//---------------------------------------------
|
|
@@ -129,6 +142,7 @@ let EzScroller = class {
|
|
|
129
142
|
}
|
|
130
143
|
if (this._container && this.activeShadow) {
|
|
131
144
|
this._container.onscroll = this.updateShadow.bind(this);
|
|
145
|
+
this.configResize();
|
|
132
146
|
this.updateShadow();
|
|
133
147
|
}
|
|
134
148
|
}
|