@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-75210.1 → 0.0.0-bugfix-dev-KB-76031.0
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/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
- package/dist/cjs/{DataBinder-b4ef826a.js → DataBinder-e92314c2.js} +2 -2
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -3
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-dialog.cjs.entry.js +4 -5
- package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-form-view.cjs.entry.js +10 -10
- package/dist/cjs/ez-form.cjs.entry.js +2 -2
- package/dist/cjs/ez-grid.cjs.entry.js +89 -43
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-search.cjs.entry.js +5 -5
- package/dist/cjs/ez-split-item.cjs.entry.js +4 -2
- package/dist/cjs/ez-text-area.cjs.entry.js +2 -2
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -3
- package/dist/cjs/ez-tree.cjs.entry.js +5 -4
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -20
- package/dist/collection/components/ez-date-input/ez-date-input.js +1 -20
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +1 -20
- package/dist/collection/components/ez-dialog/ez-dialog.js +5 -15
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +1 -20
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +4 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +34 -13
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +44 -26
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
- package/dist/collection/components/ez-grid/ez-grid.js +70 -9
- package/dist/collection/components/ez-icon/ez-icon.css +70 -68
- package/dist/collection/components/ez-list/ez-list.css +3 -3
- package/dist/collection/components/ez-number-input/ez-number-input.js +1 -20
- package/dist/collection/components/ez-search/ez-search.js +23 -24
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +3 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +5 -1
- package/dist/collection/components/ez-text-area/ez-text-area.js +2 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +1 -20
- package/dist/collection/components/ez-time-input/ez-time-input.js +1 -20
- package/dist/collection/components/ez-tree/ez-tree.js +21 -1
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/utils/CSSVarsUtils.js +1 -0
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/collection/utils/form/FormMetadata.js +1 -1
- package/dist/custom-elements/index.js +141 -99
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
- package/dist/esm/{DataBinder-d2ecbb0f.js → DataBinder-9c877244.js} +2 -2
- package/dist/esm/ez-actions-button.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +2 -3
- package/dist/esm/ez-date-input.entry.js +2 -3
- package/dist/esm/ez-date-time-input.entry.js +2 -3
- package/dist/esm/ez-dialog.entry.js +5 -6
- package/dist/esm/ez-dropdown_2.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +2 -3
- package/dist/esm/ez-form-view.entry.js +10 -10
- package/dist/esm/ez-form.entry.js +2 -2
- package/dist/esm/ez-grid.entry.js +90 -44
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +2 -3
- package/dist/esm/ez-search.entry.js +5 -5
- package/dist/esm/ez-split-item.entry.js +4 -2
- package/dist/esm/ez-text-area.entry.js +2 -2
- package/dist/esm/ez-text-input.entry.js +1 -2
- package/dist/esm/ez-time-input.entry.js +2 -3
- package/dist/esm/ez-tree.entry.js +5 -4
- 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-0faf71c5.entry.js +1 -0
- package/dist/ezui/p-17de16e5.entry.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-2f45506d.entry.js +1 -0
- package/dist/ezui/p-3429080c.entry.js +1 -0
- package/dist/ezui/{p-d0ca26fe.entry.js → p-354abfe8.entry.js} +1 -1
- package/dist/ezui/{p-7ed30844.entry.js → p-420f97ff.entry.js} +1 -1
- package/dist/ezui/{p-ca6340a9.entry.js → p-556468d9.entry.js} +1 -1
- package/dist/ezui/p-7a171eae.entry.js +1 -0
- package/dist/ezui/{p-ceadecd9.js → p-acddfb2e.js} +1 -1
- package/dist/ezui/p-ae098837.entry.js +1 -0
- package/dist/ezui/p-b26f6c5b.entry.js +1 -0
- package/dist/ezui/{p-b46e9f59.entry.js → p-b6597f49.entry.js} +46 -46
- package/dist/ezui/p-c1527804.entry.js +1 -0
- package/dist/ezui/{p-d520839d.entry.js → p-cf87aacb.entry.js} +1 -1
- package/dist/ezui/p-d9548bdf.entry.js +1 -0
- package/dist/ezui/p-da1b4a38.entry.js +1 -0
- package/dist/ezui/p-e92b8a2c.entry.js +1 -0
- package/dist/ezui/p-ea54d056.entry.js +1 -0
- package/dist/ezui/p-ec7db713.js +1 -0
- package/dist/ezui/p-fd0a19d6.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -4
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +0 -4
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +0 -4
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +0 -1
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +0 -4
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +12 -1
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +18 -6
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +0 -4
- package/dist/types/components/ez-search/ez-search.d.ts +5 -5
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +1 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +0 -4
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +0 -4
- package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
- package/dist/types/components.d.ts +44 -72
- package/package.json +1 -1
- package/dist/ezui/p-14b769d7.entry.js +0 -1
- package/dist/ezui/p-16e612fc.entry.js +0 -1
- package/dist/ezui/p-181b5ae8.entry.js +0 -1
- package/dist/ezui/p-2475fd6e.entry.js +0 -1
- package/dist/ezui/p-3175fe8c.entry.js +0 -1
- package/dist/ezui/p-3f2dd525.entry.js +0 -1
- package/dist/ezui/p-50d83a46.entry.js +0 -1
- package/dist/ezui/p-654b3f99.entry.js +0 -1
- package/dist/ezui/p-66924de6.entry.js +0 -1
- package/dist/ezui/p-6f22a385.entry.js +0 -1
- package/dist/ezui/p-8888d9ed.entry.js +0 -1
- package/dist/ezui/p-9e11fc7b.js +0 -1
- package/dist/ezui/p-b6a4e6de.entry.js +0 -1
- package/dist/ezui/p-c4320a39.entry.js +0 -1
- package/dist/ezui/p-e3e3fd7a.entry.js +0 -1
|
@@ -30,6 +30,7 @@ class CSSVarsUtils {
|
|
|
30
30
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--border-color');
|
|
31
31
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__icon--width');
|
|
32
32
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--icon-color');
|
|
33
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__margin-bottom');
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
static applyVarsButton(host, child) {
|
|
@@ -335,8 +335,8 @@ class DataBinder {
|
|
|
335
335
|
if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
|
|
336
336
|
const loader = core.ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
|
|
337
337
|
if (loader) {
|
|
338
|
-
field["optionLoader"] = (arg) => {
|
|
339
|
-
return loader(arg, fieldName, this._dataUnit);
|
|
338
|
+
field["optionLoader"] = (arg, ctxOptions) => {
|
|
339
|
+
return loader(arg, fieldName, this._dataUnit, ctxOptions);
|
|
340
340
|
};
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
require('./ApplicationUtils-c9d1205c.js');
|
|
8
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
8
|
+
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
11
|
require('./ICustomRender-6fafffce.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
require('./ApplicationUtils-c9d1205c.js');
|
|
8
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
8
|
+
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
11
|
require('./ICustomRender-6fafffce.js');
|
|
@@ -45,7 +45,6 @@ const EzComboBox = class {
|
|
|
45
45
|
this.listOptionsPosition = undefined;
|
|
46
46
|
this.isTextSearch = false;
|
|
47
47
|
this.autoFocus = false;
|
|
48
|
-
this.noMargin = false;
|
|
49
48
|
}
|
|
50
49
|
observeErrorMessage() {
|
|
51
50
|
var _a;
|
|
@@ -578,7 +577,7 @@ const EzComboBox = class {
|
|
|
578
577
|
}
|
|
579
578
|
render() {
|
|
580
579
|
core.ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
581
|
-
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode
|
|
580
|
+
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, index.h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: "chevron-down" }))), index.h("section", { class: "list-container", ref: elem => this._listContainer = elem }, index.h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, index.h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
582
581
|
&& this._visibleOptions.length === 0
|
|
583
582
|
&& index.h("div", { class: "message" }, index.h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
584
583
|
&& index.h("div", { class: "message" }, index.h("div", { class: "message__loading" })), this.showOptionValue
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
8
8
|
|
|
9
9
|
const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
10
10
|
|
|
@@ -24,7 +24,6 @@ const EzDateInput = class {
|
|
|
24
24
|
this.mode = "regular";
|
|
25
25
|
this.canShowError = true;
|
|
26
26
|
this.autoFocus = false;
|
|
27
|
-
this.noMargin = false;
|
|
28
27
|
}
|
|
29
28
|
observeLabel() {
|
|
30
29
|
if (this._textInput) {
|
|
@@ -188,7 +187,7 @@ const EzDateInput = class {
|
|
|
188
187
|
}
|
|
189
188
|
render() {
|
|
190
189
|
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
191
|
-
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError
|
|
190
|
+
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, "data-is-fixed": this._elem.dataset.isFixed })));
|
|
192
191
|
}
|
|
193
192
|
get _elem() { return index.getElement(this); }
|
|
194
193
|
static get watchers() { return {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
8
8
|
|
|
9
9
|
const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:not-allowed}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
10
10
|
|
|
@@ -25,7 +25,6 @@ const EzDateTimeInput = class {
|
|
|
25
25
|
this.mode = "regular";
|
|
26
26
|
this.canShowError = true;
|
|
27
27
|
this.autoFocus = false;
|
|
28
|
-
this.noMargin = false;
|
|
29
28
|
}
|
|
30
29
|
observeLabel() {
|
|
31
30
|
if (this._textInput) {
|
|
@@ -238,7 +237,7 @@ const EzDateTimeInput = class {
|
|
|
238
237
|
}
|
|
239
238
|
render() {
|
|
240
239
|
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
241
|
-
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError
|
|
240
|
+
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, time: true, showSeconds: this.showSeconds, "data-is-fixed": this._elem.dataset.isFixed })));
|
|
242
241
|
}
|
|
243
242
|
get _elem() { return index.getElement(this); }
|
|
244
243
|
static get watchers() { return {
|
|
@@ -49,11 +49,6 @@ const EzDialog = class {
|
|
|
49
49
|
this._canFocusOnPrimaryBtn = true;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
handleKeyDown(event) {
|
|
53
|
-
if (event.key === 'Escape' || event.key === 'Esc') {
|
|
54
|
-
this.handleButtonClick(false);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
52
|
manageOverflow() {
|
|
58
53
|
if (this.opened) {
|
|
59
54
|
window.document.body.style.overflow = "hidden";
|
|
@@ -165,6 +160,10 @@ const EzDialog = class {
|
|
|
165
160
|
}
|
|
166
161
|
componentDidLoad() {
|
|
167
162
|
core.ElementIDUtils.addIDInfo(this._element);
|
|
163
|
+
new core.KeyboardManager({ propagate: false, element: this._element })
|
|
164
|
+
.bind("Enter", () => this.handleButtonClick(true), { description: "Botão de confirmação ou OK", element: this._element })
|
|
165
|
+
.bind("Escape", () => this.handleButtonClick(false), { description: "Botão de fechar ou x", element: this._element })
|
|
166
|
+
.bind("Esc", () => this.handleButtonClick(false), { description: "Botão de fechar ou x", element: this._element });
|
|
168
167
|
}
|
|
169
168
|
componentDidRender() {
|
|
170
169
|
this.manageOverlay();
|
|
@@ -526,7 +526,7 @@ EzDropdown.style = ezDropdownCss;
|
|
|
526
526
|
|
|
527
527
|
const ALLOWED_ANIMATIONS = ['progress', 'progress-dark', 'pulse', 'false'];
|
|
528
528
|
|
|
529
|
-
const ezSkeletonCss = ".skeleton {\n\
|
|
529
|
+
const ezSkeletonCss = ".skeleton {\n\tbackground: var(--skeleton-background, #eff1f6) no-repeat;\n\n\tborder-radius: var(--skeleton-border-radius, 4px);\n\twidth: var(--skeleton-width, 100%);\n\theight: var(--skeleton-height, 20px);\n\tdisplay: inline-block;\n\tmargin-bottom: var(--skeleton-margin-bottom, 0px);\t\n\tbox-sizing: border-box;\n\toutline: none;\n\toverflow: hidden;\n\tposition: relative;\n\t-webkit-will-change: transform;\n -moz-will-change: transform;\n\twill-change: transform;\n\n\t&:after,\n\t&:before {\n\t\tbox-sizing: border-box;\n\t}\n\n\t&.circle {\n\t\twidth: var(--skeleton-width, 40px);\n\t\theight: var(--skeleton-height, 40px);\n\t\tmargin-bottom: var(--skeleton-margin-bottom, 5px);\n\t\tborder-radius: var(--skeleton-border-radius, 50%);\n\t}\n\n\t&.rect {\n\t\tborder-radius: var(--skeleton-border-radius, 0px);\n\t}\n\n\t&.progress,\n\t&.progress-dark {\n\t\t-webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tbackground-size: 200px 100%;\n\t}\n\n\t&.progress {\n\t\tbackground-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));\n\t}\n\n\t&.progress-dark {\n\t\tbackground-image: -webkit-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);\n background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent); \n\t\tbackground-image: linear-gradient(90deg,transparent,rgba(0, 0, 0, 0.2),transparent);\n\t}\n\n\t&.pulse {\n\t\t-webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;\n\t\tanimation-delay: 0.5s;\n\t}\n\n\t@media (prefers-reduced-motion: reduce) {\n\t\t&.pulse,\n\t\t&.progress-dark,\n\t\t&.progress {\n\t\t\tanimation: none;\n\t\t}\n\n\t\t&.progress,\n\t\t&.progress-dark {\n\t\t\tbackground-image: none;\n\t\t}\n\t}\n}\n\n@-webkit-keyframes progress {\n 0% { background-position: -200px 0; }\n 100% { background-position: calc(200px + 100%) 0; }\n}\n@-moz-keyframes progress {\n 0% { background-position: -200px 0; }\n 100% { background-position: calc(200px + 100%) 0; }\n}\n@-ms-keyframes progress {\n 0% { background-position: -200px 0; }\n 100% { background-position: calc(200px + 100%) 0; }\n}\n@keyframes progress {\n\t0% { background-position: -200px 0; }\n\t100% { background-position: calc(200px + 100%) 0; }\n}\n\n@-webkit-keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.4; }\n 100% { opacity: 1; }\n}\n@-moz-keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.4; }\n 100% { opacity: 1; }\n}\n@-ms-keyframes pulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.4; }\n 100% { opacity: 1; }\n}\n@keyframes pulse {\n\t0% { opacity: 1; }\n\t50% { opacity: 0.4; }\n\t100% { opacity: 1; }\n}";
|
|
530
530
|
|
|
531
531
|
const EzSkeleton = class {
|
|
532
532
|
constructor(hostRef) {
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
|
|
8
8
|
|
|
9
9
|
const ezFilterInputCss = ":host{display:block;width:100%}";
|
|
10
10
|
|
|
@@ -33,7 +33,6 @@ const EzFilterInput = class {
|
|
|
33
33
|
this.asyncSearch = false;
|
|
34
34
|
this.canShowError = true;
|
|
35
35
|
this.autoFocus = false;
|
|
36
|
-
this.noMargin = false;
|
|
37
36
|
}
|
|
38
37
|
observeLabel() {
|
|
39
38
|
if (this._textInput) {
|
|
@@ -116,7 +115,7 @@ const EzFilterInput = class {
|
|
|
116
115
|
}
|
|
117
116
|
render() {
|
|
118
117
|
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
119
|
-
return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError
|
|
118
|
+
return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
120
119
|
}
|
|
121
120
|
get _elem() { return index.getElement(this); }
|
|
122
121
|
static get watchers() { return {
|
|
@@ -15,7 +15,7 @@ const buildCheckBox = (field) => {
|
|
|
15
15
|
};
|
|
16
16
|
function buildField(fieldName, fieldLabel, readOnly, contextName, switchMode) {
|
|
17
17
|
return (index.h("div", { class: "ez-col ez-col--sd-12 ez-align--middle ez-padding-bottom--large" },
|
|
18
|
-
index.h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.CheckMode.SWITCH : CheckMode.CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName
|
|
18
|
+
index.h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? CheckMode.CheckMode.SWITCH : CheckMode.CheckMode.REGULAR, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName })));
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
const buildComboBox = ({ name, label, readOnly, required, props, contextName, canShowError }) => {
|
|
@@ -29,25 +29,25 @@ const buildComboBox = ({ name, label, readOnly, required, props, contextName, ca
|
|
|
29
29
|
options = prop;
|
|
30
30
|
}
|
|
31
31
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
32
|
-
index.h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError
|
|
32
|
+
index.h("ez-combo-box", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, options: options, canShowError: canShowError })));
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
const buildDate = ({ name, label, readOnly, canShowError }) => {
|
|
36
36
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
37
|
-
index.h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError
|
|
37
|
+
index.h("ez-date-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError })));
|
|
38
38
|
};
|
|
39
39
|
const buildTime = ({ name, label, readOnly, canShowError, props }) => {
|
|
40
40
|
var _a;
|
|
41
41
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
42
|
-
index.h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError,
|
|
42
|
+
index.h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, "show-seconds": (_a = props === null || props === void 0 ? void 0 : props.showSeconds) !== null && _a !== void 0 ? _a : false })));
|
|
43
43
|
};
|
|
44
44
|
const buildTimeSeconds = ({ name, label, readOnly, canShowError }) => {
|
|
45
45
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
46
|
-
index.h("ez-time-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError,
|
|
46
|
+
index.h("ez-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, key: name, canShowError: canShowError, showSeconds: true })));
|
|
47
47
|
};
|
|
48
48
|
const buildDateTime = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
49
49
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
50
|
-
index.h("ez-date-time-input", { enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError
|
|
50
|
+
index.h("ez-date-time-input", { class: "ez-input__no-margin", enabled: !readOnly, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError })));
|
|
51
51
|
};
|
|
52
52
|
|
|
53
53
|
const buildFile = ({ name, label, readOnly, contextName, props }) => {
|
|
@@ -73,14 +73,14 @@ const buildInteger = ({ name, label, readOnly, contextName, canShowError }) => {
|
|
|
73
73
|
return buildNumeric(name, label, readOnly, 0, 0, contextName, canShowError);
|
|
74
74
|
};
|
|
75
75
|
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision, contextName, canShowError) {
|
|
76
|
-
return (index.h("div", { class: "ez-col ez-col--sd-12
|
|
77
|
-
index.h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError
|
|
76
|
+
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
77
|
+
index.h("ez-number-input", { class: "ez-input__no-margin", enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, "data-context-name": contextName, key: fieldName, canShowError: canShowError })));
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
const buildSearch = ({ name, label, readOnly, required, contextName, canShowError, optionLoader, props }) => {
|
|
81
81
|
var _a;
|
|
82
82
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
83
|
-
index.h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false
|
|
83
|
+
index.h("ez-search", { class: "ez-input__no-margin", enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, "data-context-name": contextName, key: name, canShowError: canShowError, optionLoader: optionLoader, ignoreLimitCharsToSearch: (_a = props.ignoreLimitCharsToSearch) !== null && _a !== void 0 ? _a : false })));
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError }) => {
|
|
@@ -90,7 +90,7 @@ const buildTextArea = ({ name, label, readOnly, contextName, rows, canShowError
|
|
|
90
90
|
|
|
91
91
|
const buildTextInput = ({ name, label, readOnly, contextName, canShowError, props }) => {
|
|
92
92
|
return (index.h("div", { class: "ez-col ez-col--sd-12" },
|
|
93
|
-
index.h("ez-text-input", { label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask
|
|
93
|
+
index.h("ez-text-input", { class: "ez-input__no-margin", label: label, "data-field-name": name, "data-context-name": contextName, key: name, enabled: !readOnly, canShowError: canShowError, mask: props === null || props === void 0 ? void 0 : props.mask, "clean-value-mask": props === null || props === void 0 ? void 0 : props.cleanValueMask })));
|
|
94
94
|
};
|
|
95
95
|
|
|
96
96
|
const uiBuilders = new Map();
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-a7b0c73d.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const DataBinder = require('./DataBinder-
|
|
7
|
+
const DataBinder = require('./DataBinder-e92314c2.js');
|
|
8
8
|
require('./ApplicationUtils-c9d1205c.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
|
|
@@ -105,7 +105,7 @@ const buildFormMetadata = (config, dataUnit, includeDetails = false) => {
|
|
|
105
105
|
return;
|
|
106
106
|
}
|
|
107
107
|
const descriptor = dataUnit.getField(field.name);
|
|
108
|
-
const fieldVisible = descriptor.visible == undefined || descriptor.visible === true;
|
|
108
|
+
const fieldVisible = (descriptor === null || descriptor === void 0 ? void 0 : descriptor.visible) == undefined || (descriptor === null || descriptor === void 0 ? void 0 : descriptor.visible) === true;
|
|
109
109
|
if (descriptor && fieldVisible && tabConfig.visible) {
|
|
110
110
|
if (!sheets.has(tabConfig)) {
|
|
111
111
|
sheets.set(tabConfig, []);
|
|
@@ -10,7 +10,7 @@ require('./DialogType-2114c337.js');
|
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
11
|
const ICustomRender = require('./ICustomRender-6fafffce.js');
|
|
12
12
|
const constants = require('./constants-2714478b.js');
|
|
13
|
-
const DataBinder = require('./DataBinder-
|
|
13
|
+
const DataBinder = require('./DataBinder-e92314c2.js');
|
|
14
14
|
const FocusResolver = require('./FocusResolver-885f2173.js');
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -49997,7 +49997,7 @@ class DataSourceInterceptor {
|
|
|
49997
49997
|
interceptAction(action) {
|
|
49998
49998
|
var _a;
|
|
49999
49999
|
if (action.type === core.Action.LOADING_DATA) {
|
|
50000
|
-
if (constants.EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
50000
|
+
if (constants.EZ_GRID_LOADING_SOURCE !== action.payload.source && core.DataUnit.CHANGING_PAGE_LOADING_SOURCE !== action.payload.source) {
|
|
50001
50001
|
action.payload.filters = ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.filters) !== undefined ? this.clearColumnFilter(action.payload.filters) : action.payload.filters;
|
|
50002
50002
|
this._controller.clearFilter();
|
|
50003
50003
|
}
|
|
@@ -50008,6 +50008,9 @@ class DataSourceInterceptor {
|
|
|
50008
50008
|
|
|
50009
50009
|
class DataSource {
|
|
50010
50010
|
handleDataSaved(action) {
|
|
50011
|
+
if (this._options) {
|
|
50012
|
+
this._options.onPaginationUpdate(this._dataUnit.getPaginationInfo());
|
|
50013
|
+
}
|
|
50011
50014
|
this._controller.clearInvalidCells();
|
|
50012
50015
|
this.handleRefreshOrReload(action);
|
|
50013
50016
|
this._controller.processContinuousInsert();
|
|
@@ -50117,12 +50120,15 @@ class DataSource {
|
|
|
50117
50120
|
return ((_b = action === null || action === void 0 ? void 0 : action.payload) === null || _b === void 0 ? void 0 : _b.silent) === true;
|
|
50118
50121
|
}
|
|
50119
50122
|
}
|
|
50120
|
-
constructor(dataUnit, controller, options) {
|
|
50123
|
+
constructor(dataUnit, controller, options, resolveLoading) {
|
|
50124
|
+
var _a;
|
|
50121
50125
|
this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
|
|
50122
50126
|
this.duObserver = (action) => {
|
|
50127
|
+
var _a;
|
|
50123
50128
|
switch (action.type) {
|
|
50124
50129
|
case core.Action.METADATA_LOADED:
|
|
50125
50130
|
this._controller.setColumnsDef(this.buildColumnDefs());
|
|
50131
|
+
(_a = this._resolveLoading) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
50126
50132
|
break;
|
|
50127
50133
|
case core.Action.LOADING_DATA:
|
|
50128
50134
|
this._waitingForLoad = true;
|
|
@@ -50172,12 +50178,19 @@ class DataSource {
|
|
|
50172
50178
|
break;
|
|
50173
50179
|
}
|
|
50174
50180
|
};
|
|
50175
|
-
|
|
50176
|
-
|
|
50177
|
-
|
|
50178
|
-
|
|
50179
|
-
|
|
50180
|
-
|
|
50181
|
+
try {
|
|
50182
|
+
this._resolveLoading = resolveLoading;
|
|
50183
|
+
this._dataUnit = dataUnit;
|
|
50184
|
+
this._controller = controller;
|
|
50185
|
+
this._controller.setColumnsDef(this.buildColumnDefs());
|
|
50186
|
+
this._options = options;
|
|
50187
|
+
this._dataUnit.subscribe(this.duObserver);
|
|
50188
|
+
this._dataUnit.addInterceptor(new DataSourceInterceptor(this._controller));
|
|
50189
|
+
}
|
|
50190
|
+
finally {
|
|
50191
|
+
if (this._dataUnit.metadata)
|
|
50192
|
+
(_a = this._resolveLoading) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
50193
|
+
}
|
|
50181
50194
|
}
|
|
50182
50195
|
updateSelection() {
|
|
50183
50196
|
const selectionInfo = this._dataUnit.getSelectionInfo();
|
|
@@ -50227,27 +50240,32 @@ class DataSource {
|
|
|
50227
50240
|
(_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.subscribe(this.duObserver);
|
|
50228
50241
|
}
|
|
50229
50242
|
buildColumnDefs() {
|
|
50230
|
-
|
|
50231
|
-
|
|
50232
|
-
|
|
50233
|
-
this._dataUnit.metadata
|
|
50234
|
-
|
|
50235
|
-
|
|
50236
|
-
|
|
50237
|
-
|
|
50238
|
-
|
|
50239
|
-
|
|
50240
|
-
|
|
50241
|
-
|
|
50242
|
-
|
|
50243
|
-
|
|
50244
|
-
|
|
50243
|
+
try {
|
|
50244
|
+
const gridConfig = this._controller.getGridConfig() || [];
|
|
50245
|
+
const columnDefs = [];
|
|
50246
|
+
if (this._dataUnit.metadata) {
|
|
50247
|
+
this._dataUnit.metadata.fields.sort((a, b) => {
|
|
50248
|
+
const indexA = gridConfig.findIndex(value => value.name === a.name);
|
|
50249
|
+
const indexB = gridConfig.findIndex(value => value.name === b.name);
|
|
50250
|
+
return indexA - indexB;
|
|
50251
|
+
});
|
|
50252
|
+
this._dataUnit.metadata.fields.forEach(f => {
|
|
50253
|
+
var _a;
|
|
50254
|
+
if (f.visible !== false && f.name !== this.RECORD_ARCHIVE) {
|
|
50255
|
+
const props = new Map();
|
|
50256
|
+
const properties = this._dataUnit.getField(f.name).properties;
|
|
50257
|
+
for (const value in properties) {
|
|
50258
|
+
props.set(value, properties[value]);
|
|
50259
|
+
}
|
|
50260
|
+
columnDefs.push({ label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options, props });
|
|
50245
50261
|
}
|
|
50246
|
-
|
|
50247
|
-
|
|
50248
|
-
|
|
50262
|
+
});
|
|
50263
|
+
}
|
|
50264
|
+
return columnDefs;
|
|
50265
|
+
}
|
|
50266
|
+
catch (error) {
|
|
50267
|
+
console.warn(error);
|
|
50249
50268
|
}
|
|
50250
|
-
return columnDefs;
|
|
50251
50269
|
}
|
|
50252
50270
|
}
|
|
50253
50271
|
|
|
@@ -64749,7 +64767,10 @@ class AgGridController {
|
|
|
64749
64767
|
this.STATUS_COL_ID = 'statusColumn';
|
|
64750
64768
|
this.RECORD_ARCHIVE_COL_ID = '__RECORD_ARCHIVE__';
|
|
64751
64769
|
this.BLOCK_LOAD_DEBOUNCE = 100;
|
|
64752
|
-
this.
|
|
64770
|
+
this.DEFAULT_FONT_SIZE = 14;
|
|
64771
|
+
this.DEFAULT_ICON_SIZE = 12;
|
|
64772
|
+
this.DEFAULT_MAX_SIZE = 200;
|
|
64773
|
+
this.DOC_WIDTH = 800;
|
|
64753
64774
|
this._menuItems = [];
|
|
64754
64775
|
this._idAttribName = '__record__id__';
|
|
64755
64776
|
this._gridConfig = [];
|
|
@@ -64842,7 +64863,12 @@ class AgGridController {
|
|
|
64842
64863
|
var _a;
|
|
64843
64864
|
this._options = options;
|
|
64844
64865
|
this._container = container;
|
|
64845
|
-
const
|
|
64866
|
+
const lockerIdTaskbarClick = (options === null || options === void 0 ? void 0 : options.enableLockManagerTaskbarClick) ? core.LockManager === null || core.LockManager === void 0 ? void 0 : core.LockManager.addLockManagerCtxId(this._container) : null;
|
|
64867
|
+
let resolveLoading = undefined;
|
|
64868
|
+
if (options === null || options === void 0 ? void 0 : options.enableLockManagerLoadingComp) {
|
|
64869
|
+
const lockerIdAppLoading = core.LockManager === null || core.LockManager === void 0 ? void 0 : core.LockManager.addLockManagerCtxId(this._container);
|
|
64870
|
+
resolveLoading = core.LockManager === null || core.LockManager === void 0 ? void 0 : core.LockManager.lock(lockerIdAppLoading, core.LockManagerOperation.APP_LOADING);
|
|
64871
|
+
}
|
|
64846
64872
|
if (this._grid === undefined) {
|
|
64847
64873
|
LicenseManager.setLicenseKey(core.ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
|
|
64848
64874
|
this._columnStateChangeCallback = options.onColumnStateChange;
|
|
@@ -64850,7 +64876,7 @@ class AgGridController {
|
|
|
64850
64876
|
this._doubleClickCallBack = options.onDoubleClick;
|
|
64851
64877
|
this._multipleSelection = options.allowMultipleSelection;
|
|
64852
64878
|
this._dataUnit = options.dataUnit;
|
|
64853
|
-
this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert,
|
|
64879
|
+
this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders, options.enableContinuousInsert, options.enableGridInsert, lockerIdTaskbarClick);
|
|
64854
64880
|
this._statusResolver = options.statusResolver;
|
|
64855
64881
|
if (this._dataUnit) {
|
|
64856
64882
|
this._dataUnit.sortingProvider = this;
|
|
@@ -64896,7 +64922,7 @@ class AgGridController {
|
|
|
64896
64922
|
processCellCallback: this.processFormatterCellCallback
|
|
64897
64923
|
}
|
|
64898
64924
|
};
|
|
64899
|
-
this.defineRowModelType(this._gridOptions, options);
|
|
64925
|
+
this.defineRowModelType(this._gridOptions, options, resolveLoading);
|
|
64900
64926
|
this.setOptionsEvents(this._gridOptions);
|
|
64901
64927
|
this.setOptionsSupress(this._gridOptions);
|
|
64902
64928
|
this._gridOptions = this._editionManager.configureGrid(this._gridOptions);
|
|
@@ -65057,10 +65083,10 @@ class AgGridController {
|
|
|
65057
65083
|
}
|
|
65058
65084
|
return null;
|
|
65059
65085
|
}
|
|
65060
|
-
defineRowModelType(opt, sourceOptions) {
|
|
65086
|
+
defineRowModelType(opt, sourceOptions, resolveLoading) {
|
|
65061
65087
|
if (this._dataUnit != undefined) {
|
|
65062
65088
|
opt.rowModelType = 'serverSide';
|
|
65063
|
-
opt.serverSideDatasource = this._dataSource = new DataSource(this._dataUnit, this, sourceOptions);
|
|
65089
|
+
opt.serverSideDatasource = this._dataSource = new DataSource(this._dataUnit, this, sourceOptions, resolveLoading);
|
|
65064
65090
|
opt.serverSideSortOnServer = true;
|
|
65065
65091
|
opt.columnDefs = this._colDefs;
|
|
65066
65092
|
}
|
|
@@ -65365,9 +65391,8 @@ class AgGridController {
|
|
|
65365
65391
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
65366
65392
|
}
|
|
65367
65393
|
setColumnsDef(cols) {
|
|
65368
|
-
const
|
|
65369
|
-
|
|
65370
|
-
];
|
|
65394
|
+
const checkBoxColumn = Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' }));
|
|
65395
|
+
const newColDefs = this._options.suppressCheckBoxCol ? [] : [checkBoxColumn];
|
|
65371
65396
|
if (this._statusResolver != undefined) {
|
|
65372
65397
|
newColDefs.push({
|
|
65373
65398
|
colId: this.STATUS_COL_ID,
|
|
@@ -65437,9 +65462,8 @@ class AgGridController {
|
|
|
65437
65462
|
const columnsOffset = colDef.length - columns.length;
|
|
65438
65463
|
this._gridConfig = state;
|
|
65439
65464
|
let sort = [];
|
|
65440
|
-
state
|
|
65441
|
-
|
|
65442
|
-
const colWidth = (_a = this._gridOptions.columnApi.getColumn(cfgColumn.name)) === null || _a === void 0 ? void 0 : _a.getActualWidth();
|
|
65465
|
+
state.forEach((cfgColumn, index) => {
|
|
65466
|
+
const colWidth = this.getColumnWidth(cfgColumn);
|
|
65443
65467
|
this._gridOptions.columnApi.moveColumn(cfgColumn.name, index + columnsOffset);
|
|
65444
65468
|
this._gridOptions.columnApi.setColumnWidth(cfgColumn.name, colWidth);
|
|
65445
65469
|
visibleColumns.push(cfgColumn.name);
|
|
@@ -65801,6 +65825,21 @@ class AgGridController {
|
|
|
65801
65825
|
stopEdit() {
|
|
65802
65826
|
this._gridOptions.api.stopEditing();
|
|
65803
65827
|
}
|
|
65828
|
+
getColumnWidth(cfgColumn) {
|
|
65829
|
+
var _a, _b;
|
|
65830
|
+
if (cfgColumn == undefined) {
|
|
65831
|
+
return;
|
|
65832
|
+
}
|
|
65833
|
+
if (cfgColumn.customWidth != undefined) {
|
|
65834
|
+
return cfgColumn.customWidth;
|
|
65835
|
+
}
|
|
65836
|
+
const field = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(cfgColumn.name);
|
|
65837
|
+
if ((field === null || field === void 0 ? void 0 : field.userInterface) === core.UserInterface.SEARCH) {
|
|
65838
|
+
return this.DEFAULT_MAX_SIZE;
|
|
65839
|
+
}
|
|
65840
|
+
const labelSize = (((_b = field === null || field === void 0 ? void 0 : field.label) === null || _b === void 0 ? void 0 : _b.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
|
|
65841
|
+
return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
|
|
65842
|
+
}
|
|
65804
65843
|
}
|
|
65805
65844
|
|
|
65806
65845
|
function enableSelectAll(total) {
|
|
@@ -66036,6 +66075,8 @@ const EzGrid = class {
|
|
|
66036
66075
|
this._selectionCount = undefined;
|
|
66037
66076
|
this._hasLeftButtons = false;
|
|
66038
66077
|
this._customFormatters = new Map();
|
|
66078
|
+
this.enableLockManagerLoadingComp = false;
|
|
66079
|
+
this.enableLockManagerTaskbarClick = true;
|
|
66039
66080
|
this.multipleSelection = undefined;
|
|
66040
66081
|
this.config = undefined;
|
|
66041
66082
|
this.selectionToastConfig = undefined;
|
|
@@ -66050,9 +66091,10 @@ const EzGrid = class {
|
|
|
66050
66091
|
this.paginationCounterMode = 'show';
|
|
66051
66092
|
this.enableGridInsert = false;
|
|
66052
66093
|
this.enableContinuousInsert = true;
|
|
66053
|
-
this.
|
|
66094
|
+
this.suppressCheckboxColumn = false;
|
|
66054
66095
|
this.outlineMode = false;
|
|
66055
66096
|
this.enableRowTableStriped = true;
|
|
66097
|
+
this.compact = false;
|
|
66056
66098
|
}
|
|
66057
66099
|
/**
|
|
66058
66100
|
* Aplica a definição de colunas.
|
|
@@ -66386,6 +66428,8 @@ const EzGrid = class {
|
|
|
66386
66428
|
return (index.h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, index.h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, index.h("span", { class: "grid-header__pagination-label" }, this.paginationCounterMode == 'show' && index.h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.paginationCounterMode == 'show' && this._getRemainingPageLabel())), index.h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, index.h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), index.h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
|
|
66387
66429
|
}
|
|
66388
66430
|
componentDidLoad() {
|
|
66431
|
+
const _application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
66432
|
+
this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
|
|
66389
66433
|
this._gridController.initDatagrid(this._container, {
|
|
66390
66434
|
onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
|
|
66391
66435
|
onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
|
|
@@ -66409,12 +66453,14 @@ const EzGrid = class {
|
|
|
66409
66453
|
autoFocus: this.autoFocus,
|
|
66410
66454
|
enableGridInsert: this.enableGridInsert,
|
|
66411
66455
|
enableContinuousInsert: this.enableContinuousInsert,
|
|
66456
|
+
suppressCheckBoxCol: this.suppressCheckboxColumn,
|
|
66412
66457
|
onRefresh: () => {
|
|
66413
66458
|
if (this.dataUnit) {
|
|
66414
66459
|
this.setSelection(this.dataUnit.getSelectionInfo());
|
|
66415
66460
|
}
|
|
66416
66461
|
},
|
|
66417
|
-
|
|
66462
|
+
enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
|
|
66463
|
+
enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
|
|
66418
66464
|
enableRowTableStriped: this.enableRowTableStriped,
|
|
66419
66465
|
});
|
|
66420
66466
|
if (this.config) {
|
|
@@ -66530,7 +66576,7 @@ const EzGrid = class {
|
|
|
66530
66576
|
}
|
|
66531
66577
|
render() {
|
|
66532
66578
|
var _a;
|
|
66533
|
-
return (index.h(index.Host, { "no-header": this.hideHeader() }, index.h("div", { class: `grid__container ${this.outlineMode ? 'outline-mode' : 'shadow-mode'}
|
|
66579
|
+
return (index.h(index.Host, { "no-header": this.hideHeader() }, index.h("div", { class: `grid__container ez-grid ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ${this.compact ? 'no-padding' : ""}`, ref: elem => (this._container = elem) }), index.h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, index.h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), index.h("div", { class: "grid-header__position" }, index.h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, index.h("slot", { name: "leftButtons" })), this.getPaginationControl())), index.h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
|
|
66534
66580
|
${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
|
|
66535
66581
|
` }, index.h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), index.h("div", { class: "grid__footer" }, index.h("slot", { name: "footer" }))));
|
|
66536
66582
|
}
|