@sankhyalabs/ezui 2.7.4 → 2.7.6
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-actions-button.cjs.entry.js +31 -16
- package/dist/cjs/ez-date-time-input.cjs.entry.js +10 -3
- package/dist/cjs/ez-grid.cjs.entry.js +2 -2
- package/dist/cjs/ez-scroller.cjs.entry.js +48 -50
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +31 -16
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +10 -3
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +2 -2
- package/dist/collection/components/ez-scroller/ez-scroller.css +99 -72
- package/dist/collection/components/ez-scroller/ez-scroller.js +49 -55
- package/dist/custom-elements/index.js +93 -73
- package/dist/esm/ez-actions-button.entry.js +31 -16
- package/dist/esm/ez-date-time-input.entry.js +10 -3
- package/dist/esm/ez-grid.entry.js +2 -2
- package/dist/esm/ez-scroller.entry.js +49 -51
- 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-25e83e46.entry.js +1 -0
- package/dist/ezui/p-37335c51.entry.js +1 -0
- package/dist/ezui/{p-56381ff2.entry.js → p-6fd5e142.entry.js} +1 -1
- package/dist/ezui/p-99218a07.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +3 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +1 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +5 -7
- package/package.json +1 -1
- package/dist/ezui/p-5e3306bc.entry.js +0 -1
- package/dist/ezui/p-7b906805.entry.js +0 -1
- package/dist/ezui/p-a34b52f8.entry.js +0 -1
|
@@ -71,35 +71,50 @@ let EzActionsButton = class {
|
|
|
71
71
|
async isOpened() {
|
|
72
72
|
return this._floatingID != undefined;
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (!this.enabled) {
|
|
77
|
-
return;
|
|
78
|
-
}
|
|
79
|
-
let options = {
|
|
74
|
+
getFloatOptions() {
|
|
75
|
+
return {
|
|
80
76
|
autoClose: true,
|
|
81
77
|
innerClickTest: this.innerClickCheck,
|
|
82
78
|
isFixed: true,
|
|
83
79
|
top: this.getPositionTop(),
|
|
84
80
|
left: this.getPositionLeft()
|
|
85
81
|
};
|
|
86
|
-
|
|
82
|
+
}
|
|
83
|
+
getSideLimit() {
|
|
84
|
+
var _a;
|
|
87
85
|
const docWidth = document.body.clientWidth;
|
|
88
86
|
const boundingList = (_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
89
87
|
if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) > docWidth) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
return (docWidth - boundingList.width) + "px";
|
|
89
|
+
}
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
showActions() {
|
|
93
|
+
if (!this.enabled) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const options = this.getFloatOptions();
|
|
97
|
+
this._floatingID = core.FloatingManager.float(this._actionsList, this._listContainer, options);
|
|
98
|
+
const sideLimit = this.getSideLimit();
|
|
99
|
+
if (sideLimit != undefined) {
|
|
100
|
+
options.left = sideLimit;
|
|
97
101
|
core.FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
98
102
|
}
|
|
99
103
|
window.requestAnimationFrame(() => {
|
|
100
104
|
this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
101
105
|
});
|
|
102
106
|
}
|
|
107
|
+
updatePosition() {
|
|
108
|
+
if (!this.enabled || this._floatingID == undefined) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const options = this.getFloatOptions();
|
|
112
|
+
const sideLimit = this.getSideLimit();
|
|
113
|
+
if (sideLimit != undefined) {
|
|
114
|
+
options.left = sideLimit;
|
|
115
|
+
}
|
|
116
|
+
core.FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
117
|
+
}
|
|
103
118
|
getPositionTop() {
|
|
104
119
|
var _a;
|
|
105
120
|
const boundingHost = (_a = this._element) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
@@ -136,8 +151,8 @@ let EzActionsButton = class {
|
|
|
136
151
|
return (_a = this.actions) === null || _a === void 0 ? void 0 : _a.some(action => action.iconName != undefined);
|
|
137
152
|
}
|
|
138
153
|
controlScrollPage() {
|
|
139
|
-
window.removeEventListener("scroll", this.
|
|
140
|
-
window.addEventListener("scroll", this.
|
|
154
|
+
window.removeEventListener("scroll", this.updatePosition.bind(this));
|
|
155
|
+
window.addEventListener("scroll", this.updatePosition.bind(this));
|
|
141
156
|
}
|
|
142
157
|
//---------------------------------------------
|
|
143
158
|
// Event handlers
|
|
@@ -125,6 +125,10 @@ let EzDateTimeInput = class {
|
|
|
125
125
|
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
126
126
|
this._calendar.style.visibility = 'inherit';
|
|
127
127
|
}
|
|
128
|
+
hideCalendar() {
|
|
129
|
+
this.changeValue(this._calendar.value);
|
|
130
|
+
this._calendar.hide();
|
|
131
|
+
}
|
|
128
132
|
getParsedDateTime(strValue) {
|
|
129
133
|
var _a, _b;
|
|
130
134
|
if (strValue === void 0) {
|
|
@@ -165,7 +169,7 @@ let EzDateTimeInput = class {
|
|
|
165
169
|
this.errorMessage = "O valor digitado não é uma data válida";
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
|
-
getTextValue(
|
|
172
|
+
getTextValue(date) {
|
|
169
173
|
const options = {
|
|
170
174
|
year: 'numeric', month: 'numeric', day: 'numeric',
|
|
171
175
|
hour: 'numeric', minute: 'numeric'
|
|
@@ -174,7 +178,10 @@ let EzDateTimeInput = class {
|
|
|
174
178
|
year: 'numeric', month: 'numeric', day: 'numeric',
|
|
175
179
|
hour: 'numeric', minute: 'numeric', second: 'numeric'
|
|
176
180
|
};
|
|
177
|
-
|
|
181
|
+
if (!date)
|
|
182
|
+
return;
|
|
183
|
+
let formattedDate = new Intl.DateTimeFormat('pt-BR', this.showSeconds ? optionsSecond : options).format(date);
|
|
184
|
+
return formattedDate.replace(",", "");
|
|
178
185
|
}
|
|
179
186
|
handleInput(event) {
|
|
180
187
|
const newValue = this.getParsedDateTime();
|
|
@@ -200,7 +207,7 @@ let EzDateTimeInput = class {
|
|
|
200
207
|
}
|
|
201
208
|
render() {
|
|
202
209
|
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
203
|
-
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() }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.
|
|
210
|
+
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() }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
|
|
204
211
|
}
|
|
205
212
|
get _elem() { return index.getElement(this); }
|
|
206
213
|
static get watchers() { return {
|
|
@@ -115016,14 +115016,14 @@ class AgGridController {
|
|
|
115016
115016
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
115017
115017
|
}
|
|
115018
115018
|
setColumnsDef(cols) {
|
|
115019
|
-
const newColDefs = [Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: "", checkboxSelection: true, width:
|
|
115019
|
+
const newColDefs = [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" })];
|
|
115020
115020
|
if (this._statusResolver != undefined) {
|
|
115021
115021
|
newColDefs.push({
|
|
115022
115022
|
colId: this.STATUS_COL_ID,
|
|
115023
115023
|
headerName: "",
|
|
115024
115024
|
checkboxSelection: false,
|
|
115025
115025
|
headerCheckboxSelection: false,
|
|
115026
|
-
width:
|
|
115026
|
+
width: 29,
|
|
115027
115027
|
suppressMovable: true,
|
|
115028
115028
|
suppressAutoSize: true,
|
|
115029
115029
|
suppressMenu: true,
|
|
@@ -12,13 +12,13 @@ var EzScrollDirection;
|
|
|
12
12
|
EzScrollDirection["BOTH"] = "both";
|
|
13
13
|
})(EzScrollDirection || (EzScrollDirection = {}));
|
|
14
14
|
|
|
15
|
-
const ezScrollerCss = ":host{--ez-scroller--box-shadow-color:var(--background--body, #fafcff);--ez-scroller__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-scroller__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-scroller__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-scroller__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-scroller__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-scroller__scrollbar--width:var(--space--small, 6px);display:flex;cursor:grab;width:100
|
|
15
|
+
const ezScrollerCss = ":host{--ez-scroller--box-shadow-color:var(--background--body, #fafcff);--ez-scroller__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-scroller__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-scroller__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-scroller__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-scroller__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-scroller__scrollbar--width:var(--space--small, 6px);display:flex;cursor:grab;width:100%;overflow:hidden}.dragging{cursor:grabbing}.ez-scroller__container{display:flex;overflow-y:hidden;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked),.ez-scroller__container:not(.ez-scroller__container--locked):hover{scrollbar-color:var(--ez-scroller__scrollbar--color-clicked) var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container--both{overflow-y:scroll;overflow-x:scroll}.ez-scroller__container--horizontal{overflow-x:scroll;flex-direction:row}.ez-scroller__container--vertical{overflow-y:scroll;flex-direction:column}.ez-scroller__container::-webkit-scrollbar{background-color:transparent;width:var(--ez-scroller__scrollbar--width);height:var(--ez-scroller__scrollbar--width);max-width:var(--ez-scroller__scrollbar--width);min-width:var(--ez-scroller__scrollbar--width)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar{background-color:var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container::-webkit-scrollbar-track{visibility:hidden;background-color:transparent;border-radius:var(--ez-scroller__scrollbar--border-radius)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-track,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-track{background-color:var(--ez-scroller__scrollbar--color-background)}.ez-scroller__container::-webkit-scrollbar-thumb{background-color:transparent;border-radius:var(--ez-scroller__scrollbar--border-radius)}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb{background-color:var(--ez-scroller__scrollbar--color-default)}.ez-scroller__container::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container::-webkit-scrollbar-thumb:horizontal:hover{background-color:transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:horizontal:hover,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:vertical:hover,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-scroller__scrollbar--color-hover)}.ez-scroller__container::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container::-webkit-scrollbar-thumb:horizontal:active{background-color:transparent}.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container--both:not(.ez-scroller__container--locked)::-webkit-scrollbar-thumb:horizontal:active,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:vertical:active,.ez-scroller__container:not(.ez-scroller__container--locked):hover::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-scroller__scrollbar--color-clicked)}.ez-scroller__wrapper{display:flex;position:relative;width:100%;height:100%}.ez-scroller__wrapper--horizontal{flex-direction:row;width:100%;height:auto}.ez-scroller__wrapper--vertical{flex-direction:column;width:auto;height:100%}.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--shadow-end::after{content:\"\";display:flex;position:absolute;z-index:1}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after{width:24px;min-height:calc(100% - 10px)}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-start::before{left:0;background:linear-gradient(to right, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--horizontal.ez-scroller__wrapper--shadow-end::after{right:0;background:linear-gradient(to left, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before,.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after{min-width:calc(100% - 10px);height:24px}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-start::before{top:0;background:linear-gradient(to bottom, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}.ez-scroller__wrapper--vertical.ez-scroller__wrapper--shadow-end::after{bottom:0;background:linear-gradient(to top, var(--ez-scroller--box-shadow-color) 20%, transparent 80%)}";
|
|
16
16
|
|
|
17
17
|
let EzScroller = class {
|
|
18
18
|
constructor(hostRef) {
|
|
19
19
|
index.registerInstance(this, hostRef);
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
20
|
+
this._shadowStart = "ez-scroller__wrapper--shadow-start";
|
|
21
|
+
this._shadowEnd = "ez-scroller__wrapper--shadow-end";
|
|
22
22
|
this.isActive = false;
|
|
23
23
|
/**
|
|
24
24
|
* Define se o `scroll` estará bloqueado.
|
|
@@ -34,15 +34,11 @@ let EzScroller = class {
|
|
|
34
34
|
//---------------------------------------------
|
|
35
35
|
getContainerClass() {
|
|
36
36
|
return `ez-scroller__container ez-scroller__container--${this.direction}
|
|
37
|
-
${this.locked ? " ez-scroller__container--locked" : ""}
|
|
38
|
-
${this.isFirefox && this.isActive ? " ez-scroller__container--no-overlay" : ""}
|
|
37
|
+
${this.locked || !this.isActive ? " ez-scroller__container--locked" : ""}
|
|
39
38
|
`;
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
return `ez-
|
|
43
|
-
}
|
|
44
|
-
getShadowEndClass() {
|
|
45
|
-
return `ez-scroller__shadow-end ez-scroller__shadow-end--${this.direction}`;
|
|
40
|
+
getWrapperClass() {
|
|
41
|
+
return `ez-scroller__wrapper ez-scroller__wrapper--${this.direction}`;
|
|
46
42
|
}
|
|
47
43
|
finishDrag() {
|
|
48
44
|
if (this._controller) {
|
|
@@ -51,38 +47,40 @@ let EzScroller = class {
|
|
|
51
47
|
}
|
|
52
48
|
updateShadow() {
|
|
53
49
|
const container = this._container;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
this.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
50
|
+
const wrapper = this._wrapper;
|
|
51
|
+
if (container == undefined || wrapper == undefined) {
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
let remainingScroll;
|
|
55
|
+
if (this.direction === EzScrollDirection.HORIZONTAL) {
|
|
56
|
+
const { scrollWidth, clientWidth, scrollLeft } = container;
|
|
57
|
+
remainingScroll = scrollWidth - clientWidth - Math.ceil(scrollLeft);
|
|
58
|
+
this._startHidden = container.scrollLeft > 0;
|
|
59
|
+
}
|
|
60
|
+
else if (this.direction === EzScrollDirection.VERTICAL) {
|
|
61
|
+
const { scrollHeight, clientHeight, scrollTop } = container;
|
|
62
|
+
remainingScroll = scrollHeight - clientHeight - Math.ceil(scrollTop);
|
|
63
|
+
this._startHidden = container.scrollTop > 0;
|
|
64
|
+
}
|
|
65
|
+
this._endHidden = remainingScroll > 0;
|
|
66
|
+
this.isActive = this._startHidden || this._endHidden;
|
|
67
|
+
const shadowPositions = ["", "start", "end", "middle"];
|
|
68
|
+
const currentPosition = shadowPositions[Number(this._startHidden) | Number(this._endHidden) << 1];
|
|
69
|
+
if (currentPosition === "start") {
|
|
70
|
+
wrapper.classList.add(this._shadowStart);
|
|
71
|
+
wrapper.classList.remove(this._shadowEnd);
|
|
72
|
+
}
|
|
73
|
+
else if (currentPosition === "end") {
|
|
74
|
+
wrapper.classList.remove(this._shadowStart);
|
|
75
|
+
wrapper.classList.add(this._shadowEnd);
|
|
76
|
+
}
|
|
77
|
+
else if (currentPosition === "middle") {
|
|
78
|
+
wrapper.classList.add(this._shadowStart);
|
|
79
|
+
wrapper.classList.add(this._shadowEnd);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
wrapper.classList.remove(this._shadowStart);
|
|
83
|
+
wrapper.classList.remove(this._shadowEnd);
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
configResize() {
|
|
@@ -96,6 +94,9 @@ let EzScroller = class {
|
|
|
96
94
|
this._resizeObserver = new ResizeObserver(core.JSUtils.debounce(this.updateShadow.bind(this), 200));
|
|
97
95
|
this._resizeObserver.observe(container);
|
|
98
96
|
}
|
|
97
|
+
getContainerElement() {
|
|
98
|
+
return index.h("div", { ref: ref => this._container = ref, class: this.getContainerClass() }, index.h("slot", null));
|
|
99
|
+
}
|
|
99
100
|
//---------------------------------------------
|
|
100
101
|
// Event handlers
|
|
101
102
|
//---------------------------------------------
|
|
@@ -134,14 +135,11 @@ let EzScroller = class {
|
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
|
-
componentDidLoad() {
|
|
138
|
-
this.isFirefox = core.UserAgentUtils.isFirefox();
|
|
139
|
-
}
|
|
140
138
|
componentDidRender() {
|
|
141
139
|
var _a, _b;
|
|
142
140
|
if (this.direction === EzScrollDirection.BOTH) {
|
|
143
|
-
(_a = this.
|
|
144
|
-
(_b = this.
|
|
141
|
+
(_a = this._wrapper) === null || _a === void 0 ? void 0 : _a.classList.remove(this._shadowStart);
|
|
142
|
+
(_b = this._wrapper) === null || _b === void 0 ? void 0 : _b.classList.remove(this._shadowEnd);
|
|
145
143
|
return;
|
|
146
144
|
}
|
|
147
145
|
if (this._container && this.activeShadow) {
|
|
@@ -151,9 +149,9 @@ let EzScroller = class {
|
|
|
151
149
|
}
|
|
152
150
|
}
|
|
153
151
|
render() {
|
|
154
|
-
return (index.h(index.Host, null, this.activeShadow
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
return (index.h(index.Host, null, this.activeShadow
|
|
153
|
+
? index.h("div", { ref: ref => this._wrapper = ref, class: this.getWrapperClass() }, this.getContainerElement())
|
|
154
|
+
: this.getContainerElement()));
|
|
157
155
|
}
|
|
158
156
|
};
|
|
159
157
|
class ScrollCtrl {
|
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-alert.cjs",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-file-item.cjs",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["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"],"
|
|
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-alert.cjs",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-file-item.cjs",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["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"],"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-alert.cjs",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-file-item.cjs",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["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"],"
|
|
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-alert.cjs",[[1,"ez-alert",{"alertType":[513,"alert-type"]}]]],["ez-chip.cjs",[[1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-file-item.cjs",[[1,"ez-file-item",{"canRemove":[4,"can-remove"],"fileName":[1,"file-name"],"iconName":[1,"icon-name"],"fileSize":[2,"file-size"],"progress":[2]}]]],["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"],"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
|
|
|
@@ -59,35 +59,50 @@ export class EzActionsButton {
|
|
|
59
59
|
async isOpened() {
|
|
60
60
|
return this._floatingID != undefined;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
if (!this.enabled) {
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
let options = {
|
|
62
|
+
getFloatOptions() {
|
|
63
|
+
return {
|
|
68
64
|
autoClose: true,
|
|
69
65
|
innerClickTest: this.innerClickCheck,
|
|
70
66
|
isFixed: true,
|
|
71
67
|
top: this.getPositionTop(),
|
|
72
68
|
left: this.getPositionLeft()
|
|
73
69
|
};
|
|
74
|
-
|
|
70
|
+
}
|
|
71
|
+
getSideLimit() {
|
|
72
|
+
var _a;
|
|
75
73
|
const docWidth = document.body.clientWidth;
|
|
76
74
|
const boundingList = (_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
77
75
|
if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) > docWidth) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
return (docWidth - boundingList.width) + "px";
|
|
77
|
+
}
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
showActions() {
|
|
81
|
+
if (!this.enabled) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
const options = this.getFloatOptions();
|
|
85
|
+
this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, options);
|
|
86
|
+
const sideLimit = this.getSideLimit();
|
|
87
|
+
if (sideLimit != undefined) {
|
|
88
|
+
options.left = sideLimit;
|
|
85
89
|
FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
86
90
|
}
|
|
87
91
|
window.requestAnimationFrame(() => {
|
|
88
92
|
this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
89
93
|
});
|
|
90
94
|
}
|
|
95
|
+
updatePosition() {
|
|
96
|
+
if (!this.enabled || this._floatingID == undefined) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
const options = this.getFloatOptions();
|
|
100
|
+
const sideLimit = this.getSideLimit();
|
|
101
|
+
if (sideLimit != undefined) {
|
|
102
|
+
options.left = sideLimit;
|
|
103
|
+
}
|
|
104
|
+
FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
105
|
+
}
|
|
91
106
|
getPositionTop() {
|
|
92
107
|
var _a;
|
|
93
108
|
const boundingHost = (_a = this._element) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
@@ -124,8 +139,8 @@ export class EzActionsButton {
|
|
|
124
139
|
return (_a = this.actions) === null || _a === void 0 ? void 0 : _a.some(action => action.iconName != undefined);
|
|
125
140
|
}
|
|
126
141
|
controlScrollPage() {
|
|
127
|
-
window.removeEventListener("scroll", this.
|
|
128
|
-
window.addEventListener("scroll", this.
|
|
142
|
+
window.removeEventListener("scroll", this.updatePosition.bind(this));
|
|
143
|
+
window.addEventListener("scroll", this.updatePosition.bind(this));
|
|
129
144
|
}
|
|
130
145
|
//---------------------------------------------
|
|
131
146
|
// Event handlers
|
|
@@ -114,6 +114,10 @@ export class EzDateTimeInput {
|
|
|
114
114
|
this._calendar.fitVertical(top, this._elem.clientHeight);
|
|
115
115
|
this._calendar.style.visibility = 'inherit';
|
|
116
116
|
}
|
|
117
|
+
hideCalendar() {
|
|
118
|
+
this.changeValue(this._calendar.value);
|
|
119
|
+
this._calendar.hide();
|
|
120
|
+
}
|
|
117
121
|
getParsedDateTime(strValue) {
|
|
118
122
|
var _a, _b;
|
|
119
123
|
if (strValue === void 0) { strValue = (((_b = (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.trim()) || ""); }
|
|
@@ -152,7 +156,7 @@ export class EzDateTimeInput {
|
|
|
152
156
|
this.errorMessage = "O valor digitado não é uma data válida";
|
|
153
157
|
}
|
|
154
158
|
}
|
|
155
|
-
getTextValue(
|
|
159
|
+
getTextValue(date) {
|
|
156
160
|
const options = {
|
|
157
161
|
year: 'numeric', month: 'numeric', day: 'numeric',
|
|
158
162
|
hour: 'numeric', minute: 'numeric'
|
|
@@ -161,7 +165,10 @@ export class EzDateTimeInput {
|
|
|
161
165
|
year: 'numeric', month: 'numeric', day: 'numeric',
|
|
162
166
|
hour: 'numeric', minute: 'numeric', second: 'numeric'
|
|
163
167
|
};
|
|
164
|
-
|
|
168
|
+
if (!date)
|
|
169
|
+
return;
|
|
170
|
+
let formattedDate = new Intl.DateTimeFormat('pt-BR', this.showSeconds ? optionsSecond : options).format(date);
|
|
171
|
+
return formattedDate.replace(",", "");
|
|
165
172
|
}
|
|
166
173
|
handleInput(event) {
|
|
167
174
|
const newValue = this.getParsedDateTime();
|
|
@@ -190,7 +197,7 @@ export class EzDateTimeInput {
|
|
|
190
197
|
return (h(Host, null,
|
|
191
198
|
h("ez-text-input", { "data-element-id": 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() },
|
|
192
199
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })),
|
|
193
|
-
h("ez-calendar", { "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.
|
|
200
|
+
h("ez-calendar", { "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
|
|
194
201
|
}
|
|
195
202
|
static get is() { return "ez-date-time-input"; }
|
|
196
203
|
static get encapsulation() { return "shadow"; }
|
|
@@ -274,14 +274,14 @@ export default class AgGridController {
|
|
|
274
274
|
this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
|
|
275
275
|
}
|
|
276
276
|
setColumnsDef(cols) {
|
|
277
|
-
const newColDefs = [Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: "", checkboxSelection: true, width:
|
|
277
|
+
const newColDefs = [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" })];
|
|
278
278
|
if (this._statusResolver != undefined) {
|
|
279
279
|
newColDefs.push({
|
|
280
280
|
colId: this.STATUS_COL_ID,
|
|
281
281
|
headerName: "",
|
|
282
282
|
checkboxSelection: false,
|
|
283
283
|
headerCheckboxSelection: false,
|
|
284
|
-
width:
|
|
284
|
+
width: 29,
|
|
285
285
|
suppressMovable: true,
|
|
286
286
|
suppressAutoSize: true,
|
|
287
287
|
suppressMenu: true,
|