@sankhyalabs/ezui 1.1.102 → 1.1.105
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-calendar_16.cjs.entry.js +14 -11
- package/dist/cjs/ez-grid.cjs.entry.js +8 -1
- package/dist/collection/components/ez-calendar/ez-calendar.js +11 -7
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +3 -3
- package/dist/collection/components/ez-date-input/ez-date-input.js +12 -6
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +10 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +9 -2
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -1
- package/dist/custom-elements/index.js +22 -12
- package/dist/esm/ez-calendar_16.entry.js +14 -11
- package/dist/esm/ez-grid.entry.js +9 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-da0f5393.entry.js → p-41518731.entry.js} +26 -26
- package/dist/ezui/p-4305092e.entry.js +1 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +1 -1
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +1 -1
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +1 -1
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +1 -1
- package/dist/types/components.d.ts +4 -4
- package/package.json +3 -3
- package/dist/ezui/p-e75fa2ce.entry.js +0 -1
|
@@ -166,28 +166,28 @@ let EzCalendar = class {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
this.value = newDate;
|
|
169
|
-
this.ezChange.emit();
|
|
169
|
+
this.ezChange.emit(this.value);
|
|
170
170
|
}
|
|
171
171
|
selectHours(hour) {
|
|
172
172
|
if (!this.value) {
|
|
173
173
|
this.value = new Date();
|
|
174
174
|
}
|
|
175
175
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), hour, this.value.getMinutes(), this.value.getSeconds());
|
|
176
|
-
this.ezChange.emit();
|
|
176
|
+
this.ezChange.emit(this.value);
|
|
177
177
|
}
|
|
178
178
|
selectMinutes(minute) {
|
|
179
179
|
if (!this.value) {
|
|
180
180
|
this.value = new Date();
|
|
181
181
|
}
|
|
182
182
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), minute, this.value.getSeconds());
|
|
183
|
-
this.ezChange.emit();
|
|
183
|
+
this.ezChange.emit(this.value);
|
|
184
184
|
}
|
|
185
185
|
selectSeconds(second) {
|
|
186
186
|
if (!this.value) {
|
|
187
187
|
this.value = new Date();
|
|
188
188
|
}
|
|
189
189
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), this.value.getMinutes(), second);
|
|
190
|
-
this.ezChange.emit();
|
|
190
|
+
this.ezChange.emit(this.value);
|
|
191
191
|
}
|
|
192
192
|
updateScroll(element) {
|
|
193
193
|
if (element) {
|
|
@@ -368,7 +368,7 @@ let EzCollapsibleBox = class {
|
|
|
368
368
|
this.iconPlacement = "left";
|
|
369
369
|
}
|
|
370
370
|
observeValue() {
|
|
371
|
-
this.ezChange.emit();
|
|
371
|
+
this.ezChange.emit(this.value);
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* Esconde ou revela o conteúdo do componente
|
|
@@ -708,11 +708,13 @@ let EzDateInput = class {
|
|
|
708
708
|
this._textInput.setBlur();
|
|
709
709
|
}
|
|
710
710
|
changeValue(newValue) {
|
|
711
|
-
|
|
711
|
+
var _a;
|
|
712
|
+
newValue = newValue instanceof Date ? DateUtils.clearTime(newValue) : null;
|
|
713
|
+
this.value = this.value instanceof Date ? DateUtils.clearTime(this.value) : null;
|
|
712
714
|
this._textInput.errorMessage = "";
|
|
713
|
-
if (newValue !== this.value) {
|
|
715
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
714
716
|
this.value = newValue;
|
|
715
|
-
this.ezChange.emit();
|
|
717
|
+
this.ezChange.emit(this.value);
|
|
716
718
|
}
|
|
717
719
|
}
|
|
718
720
|
showCalendar() {
|
|
@@ -842,10 +844,11 @@ let EzDateTimeInput = class {
|
|
|
842
844
|
input.setSelectionRange(selectIni, selectFin);
|
|
843
845
|
}
|
|
844
846
|
changeValue(newValue) {
|
|
847
|
+
var _a;
|
|
845
848
|
this._textInput.errorMessage = "";
|
|
846
|
-
if (newValue !== this.value) {
|
|
849
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
847
850
|
this.value = newValue;
|
|
848
|
-
this.ezChange.emit();
|
|
851
|
+
this.ezChange.emit(this.value);
|
|
849
852
|
}
|
|
850
853
|
}
|
|
851
854
|
showCalendar() {
|
|
@@ -2084,7 +2087,7 @@ let EzTextArea = class {
|
|
|
2084
2087
|
}
|
|
2085
2088
|
}
|
|
2086
2089
|
updateInputValue() {
|
|
2087
|
-
this._inputElem.value = this.value;
|
|
2090
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
2088
2091
|
this.handleChange();
|
|
2089
2092
|
this.adjustFloatingLabel();
|
|
2090
2093
|
this.ezChange.emit(this.value);
|
|
@@ -110270,7 +110270,14 @@ class AgGridController {
|
|
|
110270
110270
|
}
|
|
110271
110271
|
}
|
|
110272
110272
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
110273
|
-
|
|
110273
|
+
if (params.value !== undefined) {
|
|
110274
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
110275
|
+
}
|
|
110276
|
+
}
|
|
110277
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UnitMetadata.UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UnitMetadata.UserInterface.DATETIME) {
|
|
110278
|
+
if (params.value !== undefined) {
|
|
110279
|
+
return params.value.toLocaleDateString();
|
|
110280
|
+
}
|
|
110274
110281
|
}
|
|
110275
110282
|
}
|
|
110276
110283
|
buildColState(source) {
|
|
@@ -95,28 +95,28 @@ export class EzCalendar {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
this.value = newDate;
|
|
98
|
-
this.ezChange.emit();
|
|
98
|
+
this.ezChange.emit(this.value);
|
|
99
99
|
}
|
|
100
100
|
selectHours(hour) {
|
|
101
101
|
if (!this.value) {
|
|
102
102
|
this.value = new Date();
|
|
103
103
|
}
|
|
104
104
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), hour, this.value.getMinutes(), this.value.getSeconds());
|
|
105
|
-
this.ezChange.emit();
|
|
105
|
+
this.ezChange.emit(this.value);
|
|
106
106
|
}
|
|
107
107
|
selectMinutes(minute) {
|
|
108
108
|
if (!this.value) {
|
|
109
109
|
this.value = new Date();
|
|
110
110
|
}
|
|
111
111
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), minute, this.value.getSeconds());
|
|
112
|
-
this.ezChange.emit();
|
|
112
|
+
this.ezChange.emit(this.value);
|
|
113
113
|
}
|
|
114
114
|
selectSeconds(second) {
|
|
115
115
|
if (!this.value) {
|
|
116
116
|
this.value = new Date();
|
|
117
117
|
}
|
|
118
118
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), this.value.getMinutes(), second);
|
|
119
|
-
this.ezChange.emit();
|
|
119
|
+
this.ezChange.emit(this.value);
|
|
120
120
|
}
|
|
121
121
|
updateScroll(element) {
|
|
122
122
|
if (element) {
|
|
@@ -330,9 +330,13 @@ export class EzCalendar {
|
|
|
330
330
|
"text": "Quando o usu\u00E1rio escolhe uma data, esse evento \u00E9 emitido."
|
|
331
331
|
},
|
|
332
332
|
"complexType": {
|
|
333
|
-
"original": "
|
|
334
|
-
"resolved": "
|
|
335
|
-
"references": {
|
|
333
|
+
"original": "Date",
|
|
334
|
+
"resolved": "Date",
|
|
335
|
+
"references": {
|
|
336
|
+
"Date": {
|
|
337
|
+
"location": "global"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
336
340
|
}
|
|
337
341
|
}]; }
|
|
338
342
|
static get methods() { return {
|
|
@@ -15,7 +15,7 @@ export class EzCollapsibleBox {
|
|
|
15
15
|
this.iconPlacement = "left";
|
|
16
16
|
}
|
|
17
17
|
observeValue() {
|
|
18
|
-
this.ezChange.emit();
|
|
18
|
+
this.ezChange.emit(this.value);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Esconde ou revela o conteúdo do componente
|
|
@@ -127,8 +127,8 @@ export class EzCollapsibleBox {
|
|
|
127
127
|
"text": "Evento disparado ao mudar o estado do componente (onEzChange)."
|
|
128
128
|
},
|
|
129
129
|
"complexType": {
|
|
130
|
-
"original": "
|
|
131
|
-
"resolved": "
|
|
130
|
+
"original": "boolean",
|
|
131
|
+
"resolved": "boolean",
|
|
132
132
|
"references": {}
|
|
133
133
|
}
|
|
134
134
|
}]; }
|
|
@@ -32,11 +32,13 @@ export class EzDateInput {
|
|
|
32
32
|
this._textInput.setBlur();
|
|
33
33
|
}
|
|
34
34
|
changeValue(newValue) {
|
|
35
|
-
|
|
35
|
+
var _a;
|
|
36
|
+
newValue = newValue instanceof Date ? DateUtils.clearTime(newValue) : null;
|
|
37
|
+
this.value = this.value instanceof Date ? DateUtils.clearTime(this.value) : null;
|
|
36
38
|
this._textInput.errorMessage = "";
|
|
37
|
-
if (newValue !== this.value) {
|
|
39
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
38
40
|
this.value = newValue;
|
|
39
|
-
this.ezChange.emit();
|
|
41
|
+
this.ezChange.emit(this.value);
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
showCalendar() {
|
|
@@ -172,9 +174,13 @@ export class EzDateInput {
|
|
|
172
174
|
"text": "Evento disparado ao mudar o estado do componente(onEzChange)."
|
|
173
175
|
},
|
|
174
176
|
"complexType": {
|
|
175
|
-
"original": "
|
|
176
|
-
"resolved": "
|
|
177
|
-
"references": {
|
|
177
|
+
"original": "Date",
|
|
178
|
+
"resolved": "Date",
|
|
179
|
+
"references": {
|
|
180
|
+
"Date": {
|
|
181
|
+
"location": "global"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
178
184
|
}
|
|
179
185
|
}]; }
|
|
180
186
|
static get methods() { return {
|
|
@@ -75,10 +75,11 @@ export class EzDateTimeInput {
|
|
|
75
75
|
input.setSelectionRange(selectIni, selectFin);
|
|
76
76
|
}
|
|
77
77
|
changeValue(newValue) {
|
|
78
|
+
var _a;
|
|
78
79
|
this._textInput.errorMessage = "";
|
|
79
|
-
if (newValue !== this.value) {
|
|
80
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
80
81
|
this.value = newValue;
|
|
81
|
-
this.ezChange.emit();
|
|
82
|
+
this.ezChange.emit(this.value);
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
showCalendar() {
|
|
@@ -236,9 +237,13 @@ export class EzDateTimeInput {
|
|
|
236
237
|
"text": "Evento disparado ao mudar o estado do componente(onEzChange)."
|
|
237
238
|
},
|
|
238
239
|
"complexType": {
|
|
239
|
-
"original": "
|
|
240
|
-
"resolved": "
|
|
241
|
-
"references": {
|
|
240
|
+
"original": "Date",
|
|
241
|
+
"resolved": "Date",
|
|
242
|
+
"references": {
|
|
243
|
+
"Date": {
|
|
244
|
+
"location": "global"
|
|
245
|
+
}
|
|
246
|
+
}
|
|
242
247
|
}
|
|
243
248
|
}]; }
|
|
244
249
|
static get methods() { return {
|
|
@@ -4,7 +4,7 @@ import gridTerms from "./i18n/pt-BR.js";
|
|
|
4
4
|
import HeaderColumnTemplate from "./template/HeaderColumnTemplate.js";
|
|
5
5
|
import DataSource from "./DataSource";
|
|
6
6
|
import { DataType } from "@sankhyalabs/core";
|
|
7
|
-
import { SortMode } from "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";
|
|
7
|
+
import { SortMode, UserInterface } from "@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";
|
|
8
8
|
export default class AgGridController {
|
|
9
9
|
constructor(enterprise) {
|
|
10
10
|
this._menuItems = [];
|
|
@@ -218,7 +218,14 @@ export default class AgGridController {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
221
|
-
|
|
221
|
+
if (params.value !== undefined) {
|
|
222
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
226
|
+
if (params.value !== undefined) {
|
|
227
|
+
return params.value.toLocaleDateString();
|
|
228
|
+
}
|
|
222
229
|
}
|
|
223
230
|
}
|
|
224
231
|
buildColState(source) {
|
|
@@ -1794,28 +1794,28 @@ let EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
}
|
|
1796
1796
|
this.value = newDate;
|
|
1797
|
-
this.ezChange.emit();
|
|
1797
|
+
this.ezChange.emit(this.value);
|
|
1798
1798
|
}
|
|
1799
1799
|
selectHours(hour) {
|
|
1800
1800
|
if (!this.value) {
|
|
1801
1801
|
this.value = new Date();
|
|
1802
1802
|
}
|
|
1803
1803
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), hour, this.value.getMinutes(), this.value.getSeconds());
|
|
1804
|
-
this.ezChange.emit();
|
|
1804
|
+
this.ezChange.emit(this.value);
|
|
1805
1805
|
}
|
|
1806
1806
|
selectMinutes(minute) {
|
|
1807
1807
|
if (!this.value) {
|
|
1808
1808
|
this.value = new Date();
|
|
1809
1809
|
}
|
|
1810
1810
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), minute, this.value.getSeconds());
|
|
1811
|
-
this.ezChange.emit();
|
|
1811
|
+
this.ezChange.emit(this.value);
|
|
1812
1812
|
}
|
|
1813
1813
|
selectSeconds(second) {
|
|
1814
1814
|
if (!this.value) {
|
|
1815
1815
|
this.value = new Date();
|
|
1816
1816
|
}
|
|
1817
1817
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), this.value.getMinutes(), second);
|
|
1818
|
-
this.ezChange.emit();
|
|
1818
|
+
this.ezChange.emit(this.value);
|
|
1819
1819
|
}
|
|
1820
1820
|
updateScroll(element) {
|
|
1821
1821
|
if (element) {
|
|
@@ -2000,7 +2000,7 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
2000
2000
|
this.iconPlacement = "left";
|
|
2001
2001
|
}
|
|
2002
2002
|
observeValue() {
|
|
2003
|
-
this.ezChange.emit();
|
|
2003
|
+
this.ezChange.emit(this.value);
|
|
2004
2004
|
}
|
|
2005
2005
|
/**
|
|
2006
2006
|
* Esconde ou revela o conteúdo do componente
|
|
@@ -2344,11 +2344,13 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
2344
2344
|
this._textInput.setBlur();
|
|
2345
2345
|
}
|
|
2346
2346
|
changeValue(newValue) {
|
|
2347
|
-
|
|
2347
|
+
var _a;
|
|
2348
|
+
newValue = newValue instanceof Date ? DateUtils.clearTime(newValue) : null;
|
|
2349
|
+
this.value = this.value instanceof Date ? DateUtils.clearTime(this.value) : null;
|
|
2348
2350
|
this._textInput.errorMessage = "";
|
|
2349
|
-
if (newValue !== this.value) {
|
|
2351
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
2350
2352
|
this.value = newValue;
|
|
2351
|
-
this.ezChange.emit();
|
|
2353
|
+
this.ezChange.emit(this.value);
|
|
2352
2354
|
}
|
|
2353
2355
|
}
|
|
2354
2356
|
showCalendar() {
|
|
@@ -2480,10 +2482,11 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
2480
2482
|
input.setSelectionRange(selectIni, selectFin);
|
|
2481
2483
|
}
|
|
2482
2484
|
changeValue(newValue) {
|
|
2485
|
+
var _a;
|
|
2483
2486
|
this._textInput.errorMessage = "";
|
|
2484
|
-
if (newValue !== this.value) {
|
|
2487
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
2485
2488
|
this.value = newValue;
|
|
2486
|
-
this.ezChange.emit();
|
|
2489
|
+
this.ezChange.emit(this.value);
|
|
2487
2490
|
}
|
|
2488
2491
|
}
|
|
2489
2492
|
showCalendar() {
|
|
@@ -113688,7 +113691,14 @@ class AgGridController {
|
|
|
113688
113691
|
}
|
|
113689
113692
|
}
|
|
113690
113693
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
113691
|
-
|
|
113694
|
+
if (params.value !== undefined) {
|
|
113695
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
113696
|
+
}
|
|
113697
|
+
}
|
|
113698
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
113699
|
+
if (params.value !== undefined) {
|
|
113700
|
+
return params.value.toLocaleDateString();
|
|
113701
|
+
}
|
|
113692
113702
|
}
|
|
113693
113703
|
}
|
|
113694
113704
|
buildColState(source) {
|
|
@@ -115103,7 +115113,7 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
115103
115113
|
}
|
|
115104
115114
|
}
|
|
115105
115115
|
updateInputValue() {
|
|
115106
|
-
this._inputElem.value = this.value;
|
|
115116
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
115107
115117
|
this.handleChange();
|
|
115108
115118
|
this.adjustFloatingLabel();
|
|
115109
115119
|
this.ezChange.emit(this.value);
|
|
@@ -162,28 +162,28 @@ let EzCalendar = class {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
this.value = newDate;
|
|
165
|
-
this.ezChange.emit();
|
|
165
|
+
this.ezChange.emit(this.value);
|
|
166
166
|
}
|
|
167
167
|
selectHours(hour) {
|
|
168
168
|
if (!this.value) {
|
|
169
169
|
this.value = new Date();
|
|
170
170
|
}
|
|
171
171
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), hour, this.value.getMinutes(), this.value.getSeconds());
|
|
172
|
-
this.ezChange.emit();
|
|
172
|
+
this.ezChange.emit(this.value);
|
|
173
173
|
}
|
|
174
174
|
selectMinutes(minute) {
|
|
175
175
|
if (!this.value) {
|
|
176
176
|
this.value = new Date();
|
|
177
177
|
}
|
|
178
178
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), minute, this.value.getSeconds());
|
|
179
|
-
this.ezChange.emit();
|
|
179
|
+
this.ezChange.emit(this.value);
|
|
180
180
|
}
|
|
181
181
|
selectSeconds(second) {
|
|
182
182
|
if (!this.value) {
|
|
183
183
|
this.value = new Date();
|
|
184
184
|
}
|
|
185
185
|
this.value = new Date(this.value.getFullYear(), this.value.getMonth(), this.value.getDate(), this.value.getHours(), this.value.getMinutes(), second);
|
|
186
|
-
this.ezChange.emit();
|
|
186
|
+
this.ezChange.emit(this.value);
|
|
187
187
|
}
|
|
188
188
|
updateScroll(element) {
|
|
189
189
|
if (element) {
|
|
@@ -364,7 +364,7 @@ let EzCollapsibleBox = class {
|
|
|
364
364
|
this.iconPlacement = "left";
|
|
365
365
|
}
|
|
366
366
|
observeValue() {
|
|
367
|
-
this.ezChange.emit();
|
|
367
|
+
this.ezChange.emit(this.value);
|
|
368
368
|
}
|
|
369
369
|
/**
|
|
370
370
|
* Esconde ou revela o conteúdo do componente
|
|
@@ -704,11 +704,13 @@ let EzDateInput = class {
|
|
|
704
704
|
this._textInput.setBlur();
|
|
705
705
|
}
|
|
706
706
|
changeValue(newValue) {
|
|
707
|
-
|
|
707
|
+
var _a;
|
|
708
|
+
newValue = newValue instanceof Date ? DateUtils.clearTime(newValue) : null;
|
|
709
|
+
this.value = this.value instanceof Date ? DateUtils.clearTime(this.value) : null;
|
|
708
710
|
this._textInput.errorMessage = "";
|
|
709
|
-
if (newValue !== this.value) {
|
|
711
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
710
712
|
this.value = newValue;
|
|
711
|
-
this.ezChange.emit();
|
|
713
|
+
this.ezChange.emit(this.value);
|
|
712
714
|
}
|
|
713
715
|
}
|
|
714
716
|
showCalendar() {
|
|
@@ -838,10 +840,11 @@ let EzDateTimeInput = class {
|
|
|
838
840
|
input.setSelectionRange(selectIni, selectFin);
|
|
839
841
|
}
|
|
840
842
|
changeValue(newValue) {
|
|
843
|
+
var _a;
|
|
841
844
|
this._textInput.errorMessage = "";
|
|
842
|
-
if (newValue !== this.value) {
|
|
845
|
+
if ((newValue === null || newValue === void 0 ? void 0 : newValue.toString()) !== ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toString())) {
|
|
843
846
|
this.value = newValue;
|
|
844
|
-
this.ezChange.emit();
|
|
847
|
+
this.ezChange.emit(this.value);
|
|
845
848
|
}
|
|
846
849
|
}
|
|
847
850
|
showCalendar() {
|
|
@@ -2080,7 +2083,7 @@ let EzTextArea = class {
|
|
|
2080
2083
|
}
|
|
2081
2084
|
}
|
|
2082
2085
|
updateInputValue() {
|
|
2083
|
-
this._inputElem.value = this.value;
|
|
2086
|
+
this._inputElem.value = this.value === undefined ? "" : this.value;
|
|
2084
2087
|
this.handleChange();
|
|
2085
2088
|
this.adjustFloatingLabel();
|
|
2086
2089
|
this.ezChange.emit(this.value);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-6b8bfbeb.js';
|
|
2
|
-
import { b as DataType, S as SortMode, A as Action } from './UnitMetadata-8951d803.js';
|
|
2
|
+
import { U as UserInterface, b as DataType, S as SortMode, A as Action } from './UnitMetadata-8951d803.js';
|
|
3
3
|
|
|
4
4
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
5
5
|
|
|
@@ -110266,7 +110266,14 @@ class AgGridController {
|
|
|
110266
110266
|
}
|
|
110267
110267
|
}
|
|
110268
110268
|
if ((source === null || source === void 0 ? void 0 : source.userInterface) === "SEARCH") {
|
|
110269
|
-
|
|
110269
|
+
if (params.value !== undefined) {
|
|
110270
|
+
return ((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) + " - " + ((_b = params === null || params === void 0 ? void 0 : params.value) === null || _b === void 0 ? void 0 : _b.label);
|
|
110271
|
+
}
|
|
110272
|
+
}
|
|
110273
|
+
if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATE || (source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DATETIME) {
|
|
110274
|
+
if (params.value !== undefined) {
|
|
110275
|
+
return params.value.toLocaleDateString();
|
|
110276
|
+
}
|
|
110270
110277
|
}
|
|
110271
110278
|
}
|
|
110272
110279
|
buildColState(source) {
|
package/dist/ezui/ezui.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as s}from"./p-89a57641.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-
|
|
1
|
+
import{p as e,b as s}from"./p-89a57641.js";(()=>{const s=import.meta.url,o={};return""!==s&&(o.resourcesUrl=new URL(".",s).href),e(o)})().then((e=>s([["p-41518731",[[6,"ez-grid",{multipleSelection:[4,"multiple-selection"],pageSize:[2,"page-size"],serverUrl:[1,"server-url"],dataUnit:[16],_navigationHasPrevious:[32],_navigationHasNext:[32],_navigationFirstRow:[32],_navigationLastRow:[32],_navigationTotalRows:[32],_popUpVisible:[32],setColumnsDef:[64],addColumnMenuItem:[64],setColumnsState:[64],setData:[64],getSelection:[64],getColumnsState:[64],getColumns:[64]}]]],["p-e06e47f1",[[1,"ez-dialog",{confirm:[1028],critical:[1028],message:[1025],opened:[1540],personalizedIconPath:[1025,"personalized-icon-path"],ezTitle:[1025,"ez-title"],handleButtonClick:[64],show:[64]}]]],["p-b8678ee6",[[1,"ez-action-chip",{label:[513],enabled:[516]}]]],["p-95fc543c",[[0,"ez-application"]]],["p-542d3d29",[[1,"ez-label-chip",{label:[513],enabled:[516],removable:[516],value:[1540],setFocus:[64],setBlur:[64]}]]],["p-18c00d88",[[1,"ez-popover",{autoClose:[516,"auto-close"],top:[1537],left:[1537],bottom:[1537],right:[1537],boxWidth:[513,"box-width"],opened:[1540],updatePosition:[64],show:[64],hide:[64]}]]],["p-502d7e0d",[[1,"ez-popup",{size:[1],opened:[1540],useHeader:[1540,"use-header"],ezTitle:[1,"ez-title"]}]]],["p-b217f40b",[[1,"ez-toast",{message:[1025],fadeTime:[1026,"fade-time"],useIcon:[1028,"use-icon"],show:[64]}]]],["p-4305092e",[[0,"test-du"],[0,"ez-form",{dataUnit:[1040],config:[16],submit:[64],cancel:[64],validate:[64]}],[1,"ez-date-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],setFocus:[64],setBlur:[64]}],[1,"ez-date-time-input",{label:[513],value:[1040],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],setFocus:[64],setBlur:[64]}],[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"],setFocus:[64],setBlur:[64]}],[1,"ez-time-input",{label:[513],viewValue:[1537,"view-value"],value:[1026],enabled:[516],errorMessage:[1537,"error-message"],showSeconds:[516,"show-seconds"],setFocus:[64],setBlur:[64]}],[1,"ez-number-input",{label:[1],value:[1538],enabled:[4],errorMessage:[1537,"error-message"],precision:[2],prettyPrecision:[2,"pretty-precision"],setFocus:[64],setBlur:[64]}],[1,"ez-collapsible-box",{value:[1540],label:[513],headerSize:[513,"header-size"],iconPlacement:[513,"icon-placement"],showHide:[64]}],[1,"ez-text-area",{label:[513],value:[1537],enabled:[516],loading:[516],errorMessage:[1537,"error-message"],rows:[1538],setFocus:[64],setBlur:[64]}],[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]}],[1,"ez-calendar",{value:[1040],floating:[516],time:[516],showSeconds:[516,"show-seconds"],show:[64],fitVertical:[64],hide:[64]}],[1,"ez-check",{label:[513],value:[1540],enabled:[516],mode:[513],getMode:[64],setFocus:[64]}],[1,"ez-tabselector",{selectedIndex:[1538,"selected-index"],selectedTab:[1537,"selected-tab"],tabs:[1]}],[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"],optionLoader:[16],suppressEmptyOption:[4,"suppress-empty-option"],canShowError:[516,"can-show-error"],_preSelection:[32],_visibleOptions:[32],setFocus:[64],setBlur:[64]}],[1,"ez-icon",{size:[513],href:[513],iconName:[513,"icon-name"]}],[1,"ez-text-input",{label:[513],value:[1537],enabled:[516],loading:[516],errorMessage:[1537,"error-message"],mask:[1],canShowError:[516,"can-show-error"],restrict:[1],setFocus:[64],setBlur:[64]}]]],["p-6b257393",[[1,"select-box",{selectedOption:[1,"selected-option"]}],[1,"ez-list",{dataSource:[1040],useGroups:[1540,"use-groups"],ezDraggable:[1028,"ez-draggable"],ezSelectable:[1028,"ez-selectable"],itemSlotBuilder:[1040],_listItems:[32],_listGroupItems:[32],setSelection:[64],getSelection:[64],getList:[64]}],[1,"ez-button",{label:[513],enabled:[516],mode:[513],image:[513],iconName:[513,"icon-name"],size:[513],setFocus:[64],setBlur:[64]}]]],["p-7294c815",[[2,"grid-config",{selectedTab:[1025,"selected-tab"],columns:[1040]}],[1,"ez-modal",{modalSize:[1,"modal-size"],align:[1],opened:[1028],closeEsc:[4,"close-esc"],closeOutsideClick:[4,"close-outside-click"]}]]]],e)));
|