@sankhyalabs/ezui 1.1.80 → 1.1.81

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.
Files changed (37) hide show
  1. package/dist/cjs/{ez-calendar_13.cjs.entry.js → ez-calendar_14.cjs.entry.js} +182 -5
  2. package/dist/cjs/ez-grid.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-modal_2.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  6. package/dist/cjs/ezui.cjs.js +1 -1
  7. package/dist/cjs/{index-a2266984.js → index-4fc4a0a4.js} +68 -40
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/ez-form/DataBinder.js +7 -1
  10. package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +2 -1
  11. package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +4 -0
  12. package/dist/custom-elements/index.js +80 -41
  13. package/dist/esm/{ez-calendar_13.entry.js → ez-calendar_14.entry.js} +180 -4
  14. package/dist/esm/ez-grid.entry.js +1 -1
  15. package/dist/esm/ez-modal_2.entry.js +1 -1
  16. package/dist/esm/ez-popover.entry.js +1 -1
  17. package/dist/esm/ez-time-input.entry.js +1 -1
  18. package/dist/esm/ezui.js +1 -1
  19. package/dist/esm/{index-afe19542.js → index-e31373d9.js} +68 -40
  20. package/dist/esm/loader.js +1 -1
  21. package/dist/ezui/ezui.esm.js +1 -1
  22. package/dist/ezui/{p-5509ee41.entry.js → p-1c8d64d0.entry.js} +1 -1
  23. package/dist/ezui/{p-d5699f29.entry.js → p-8b9ef58b.entry.js} +1 -1
  24. package/dist/ezui/p-983bd291.js +1 -0
  25. package/dist/ezui/p-9dbf569a.entry.js +1 -0
  26. package/dist/ezui/{p-857ead8e.entry.js → p-aef3394b.entry.js} +1 -1
  27. package/dist/ezui/{p-7a1f2e0e.entry.js → p-da63000f.entry.js} +1 -1
  28. package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +4 -0
  29. package/package.json +2 -2
  30. package/dist/cjs/DateUtils-716769e0.js +0 -46
  31. package/dist/cjs/ez-date-time-input.cjs.entry.js +0 -133
  32. package/dist/esm/DateUtils-0a1bbd7a.js +0 -44
  33. package/dist/esm/ez-date-time-input.entry.js +0 -129
  34. package/dist/ezui/p-00b837e2.js +0 -1
  35. package/dist/ezui/p-0d8368fc.entry.js +0 -1
  36. package/dist/ezui/p-49f3432a.entry.js +0 -1
  37. package/dist/ezui/p-c89629eb.js +0 -1
@@ -1128,11 +1128,7 @@ class AddedRecordsReducerImpl {
1128
1128
  reduce(_stateManager, currentState, action) {
1129
1129
  switch (action.type) {
1130
1130
  case Action.RECORDS_ADDED:
1131
- const newState = currentState ? currentState.slice() : [];
1132
- action.payload.forEach((r) => {
1133
- newState.push(Object.assign({ __record__id__: "NEW_" + (newState.length + 1) }, r));
1134
- });
1135
- return newState;
1131
+ return (currentState || []).concat(action.payload);
1136
1132
  case Action.DATA_SAVED:
1137
1133
  case Action.EDITION_CANCELED:
1138
1134
  return undefined;
@@ -1144,6 +1140,10 @@ const AddedRecordsReducer = new AddedRecordsReducerImpl();
1144
1140
  const getAddedRecords = (stateManager) => {
1145
1141
  return stateManager.select(AddedRecordsReducer.sliceName, (state) => state);
1146
1142
  };
1143
+ const prepareAddedRecordId = (stateManager, source) => {
1144
+ let index = (getAddedRecords(stateManager) || []).length;
1145
+ return source.map(item => { return Object.assign(Object.assign({}, item), { __record__id__: "NEW_" + (index++) }); });
1146
+ };
1147
1147
 
1148
1148
  class ChangesReducerImpl {
1149
1149
  constructor() {
@@ -1156,7 +1156,9 @@ class ChangesReducerImpl {
1156
1156
  if (selection) {
1157
1157
  const newState = new Map(currentState);
1158
1158
  selection.forEach(recordId => {
1159
- newState.set(recordId, Object.assign(Object.assign({}, newState.get(recordId)), action.payload));
1159
+ const newChanges = Object.assign(Object.assign({}, newState.get(recordId)), action.payload);
1160
+ delete newChanges.records;
1161
+ newState.set(recordId, newChanges);
1160
1162
  });
1161
1163
  return newState;
1162
1164
  }
@@ -1185,16 +1187,14 @@ const getChangesToSave = (dataUnit, stateManager) => {
1185
1187
  const result = [];
1186
1188
  const changes = getChanges(stateManager);
1187
1189
  const records = getRecords(stateManager);
1188
- if (records) {
1189
- records.forEach(r => {
1190
- if (changes) {
1191
- const c = changes.get(r.__record__id__);
1192
- if (c) {
1193
- result.push(new Change(dataUnit, r, c, ChangeOperation.UPDATE));
1194
- }
1190
+ records === null || records === void 0 ? void 0 : records.forEach(r => {
1191
+ if (changes) {
1192
+ const c = changes.get(r.__record__id__);
1193
+ if (c) {
1194
+ result.push(new Change(dataUnit, r, c, ChangeOperation.UPDATE));
1195
1195
  }
1196
- });
1197
- }
1196
+ }
1197
+ });
1198
1198
  const addedRecords = getAddedRecords(stateManager);
1199
1199
  if (addedRecords) {
1200
1200
  addedRecords.forEach(r => {
@@ -1203,7 +1203,7 @@ const getChangesToSave = (dataUnit, stateManager) => {
1203
1203
  }
1204
1204
  const removedRecords = getRemovedRecords(stateManager);
1205
1205
  const recordsById = {};
1206
- records.forEach(r => recordsById[r.__record__id__] = r);
1206
+ records === null || records === void 0 ? void 0 : records.forEach(r => recordsById[r.__record__id__] = r);
1207
1207
  if (removedRecords) {
1208
1208
  removedRecords.forEach(id => {
1209
1209
  result.push(new Change(dataUnit, recordsById[id], undefined, ChangeOperation.DELETE));
@@ -1259,6 +1259,8 @@ class SelectionReducerImpl {
1259
1259
  }
1260
1260
  reduce(stateManager, currentState, action) {
1261
1261
  switch (action.type) {
1262
+ case Action.RECORDS_ADDED:
1263
+ return action.payload.map((r) => r.__record__id__);
1262
1264
  case Action.DATA_SAVED:
1263
1265
  return updateSavedIds(stateManager, action.payload.records);
1264
1266
  case Action.RECORDS_REMOVED:
@@ -1360,6 +1362,15 @@ function updateSavedIds(stateManager, savedRecords) {
1360
1362
  return currentSelection;
1361
1363
  }
1362
1364
 
1365
+ var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
1366
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
1367
+ return new (P || (P = Promise))(function (resolve, reject) {
1368
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
1369
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
1370
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
1371
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
1372
+ });
1373
+ };
1363
1374
  class DataUnit {
1364
1375
  constructor(name) {
1365
1376
  this._name = name;
@@ -1401,32 +1412,46 @@ class DataUnit {
1401
1412
  }
1402
1413
  // Loaders
1403
1414
  loadMetadata() {
1404
- this.dispatchAction(Action.LOADING_METADATA);
1405
- if (this.metadataLoader) {
1406
- this.metadataLoader(this._name).then(metadata => this.metadata = metadata);
1407
- }
1415
+ return __awaiter(this, void 0, void 0, function* () {
1416
+ this.dispatchAction(Action.LOADING_METADATA);
1417
+ return new Promise((resolve, fail) => {
1418
+ if (this.metadataLoader) {
1419
+ this.metadataLoader(this._name).then(metadata => {
1420
+ this.metadata = metadata;
1421
+ resolve(this.metadata);
1422
+ }).catch(error => fail(error));
1423
+ }
1424
+ });
1425
+ });
1408
1426
  }
1409
1427
  loadData() {
1410
- this.dispatchAction(Action.LOADING_DATA);
1411
- return new Promise((resolve, fail) => {
1412
- if (this.dataLoader) {
1413
- const sort = this.getSort();
1414
- const filters = this.getFilters();
1415
- this.dataLoader(this._name, sort, filters).then(records => {
1416
- this.records = records;
1417
- resolve(this.records);
1418
- }).catch(() => fail());
1419
- }
1428
+ return __awaiter(this, void 0, void 0, function* () {
1429
+ this.dispatchAction(Action.LOADING_DATA);
1430
+ return new Promise((resolve, fail) => {
1431
+ if (this.dataLoader) {
1432
+ const sort = this.getSort();
1433
+ const filters = this.getFilters();
1434
+ this.dataLoader(this._name, sort, filters).then(records => {
1435
+ this.records = records;
1436
+ resolve(this.records);
1437
+ }).catch(error => fail(error));
1438
+ }
1439
+ });
1420
1440
  });
1421
1441
  }
1422
1442
  saveData() {
1423
- const changes = getChangesToSave(this._name, this._stateManager);
1424
- if (changes.length > 0) {
1425
- this.dispatchAction(Action.SAVING_DATA);
1426
- if (this.saveLoader) {
1427
- this.saveLoader(this._name, changes).then(records => this.dispatchAction(Action.DATA_SAVED, { changes, records }));
1443
+ return __awaiter(this, void 0, void 0, function* () {
1444
+ const changes = getChangesToSave(this._name, this._stateManager);
1445
+ if (changes.length > 0) {
1446
+ this.dispatchAction(Action.SAVING_DATA);
1447
+ return new Promise((resolve, fail) => {
1448
+ if (this.saveLoader) {
1449
+ this.saveLoader(this._name, changes).then(records => this.dispatchAction(Action.DATA_SAVED, { changes, records })).catch(error => fail(error));
1450
+ }
1451
+ });
1428
1452
  }
1429
- }
1453
+ return Promise.resolve();
1454
+ });
1430
1455
  }
1431
1456
  // API
1432
1457
  addFilterProvider(provider) {
@@ -1452,7 +1477,7 @@ class DataUnit {
1452
1477
  return getField(this._stateManager, fieldName);
1453
1478
  }
1454
1479
  addRecord() {
1455
- this.dispatchAction(Action.RECORDS_ADDED, [{}]);
1480
+ this.dispatchAction(Action.RECORDS_ADDED, prepareAddedRecordId(this._stateManager, [{}]));
1456
1481
  }
1457
1482
  removeSelectedRecords() {
1458
1483
  const selection = getSelection(this._stateManager);
@@ -1525,9 +1550,9 @@ class DataUnit {
1525
1550
  }
1526
1551
  var ChangeOperation;
1527
1552
  (function (ChangeOperation) {
1528
- ChangeOperation[ChangeOperation["INSERT"] = 0] = "INSERT";
1529
- ChangeOperation[ChangeOperation["UPDATE"] = 1] = "UPDATE";
1530
- ChangeOperation[ChangeOperation["DELETE"] = 2] = "DELETE";
1553
+ ChangeOperation["INSERT"] = "INSERT";
1554
+ ChangeOperation["UPDATE"] = "UPDATE";
1555
+ ChangeOperation["DELETE"] = "DELETE";
1531
1556
  })(ChangeOperation || (ChangeOperation = {}));
1532
1557
  class Change {
1533
1558
  constructor(dataUnit, record, updates, operation) {
@@ -1536,6 +1561,9 @@ class Change {
1536
1561
  this.updatingFields = updates;
1537
1562
  this._operation = operation;
1538
1563
  }
1564
+ get operation() {
1565
+ return this._operation.toString();
1566
+ }
1539
1567
  isInsert() {
1540
1568
  return this._operation === ChangeOperation.INSERT;
1541
1569
  }
@@ -8654,6 +8682,10 @@ const buildDate = ({ name, label }) => {
8654
8682
  return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
8655
8683
  h("ez-date-input", { label: label, "data-field-name": name, key: name })));
8656
8684
  };
8685
+ const buildTimeDate = ({ name, label }) => {
8686
+ return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
8687
+ h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
8688
+ };
8657
8689
 
8658
8690
  const buildDecimal = ({ name, label }, properties) => {
8659
8691
  const precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
@@ -8676,6 +8708,7 @@ uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
8676
8708
  uiBuilders.set(UserInterface.SEARCH, buildSearch);
8677
8709
  uiBuilders.set(UserInterface.FILE, buildFile);
8678
8710
  uiBuilders.set(UserInterface.DATE, buildDate);
8711
+ uiBuilders.set(UserInterface.DATETIME, buildTimeDate);
8679
8712
  uiBuilders.set(UserInterface.DECIMALNUMBER, buildDecimal);
8680
8713
  uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
8681
8714
  const buildField = (field) => {
@@ -9170,8 +9203,14 @@ var FormActions;
9170
9203
 
9171
9204
  class DataBinder {
9172
9205
  constructor(dataUnit) {
9173
- this._dataUnit = dataUnit;
9174
9206
  this._fields = new Map();
9207
+ this._dataUnit = dataUnit;
9208
+ this._dataUnit.subscribe(_action => {
9209
+ var _a;
9210
+ (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
9211
+ this.updateValue(field.fieldName, field.field);
9212
+ });
9213
+ });
9175
9214
  }
9176
9215
  bind(fields) {
9177
9216
  fields.forEach(fieldElement => {
@@ -1,8 +1,50 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-077c7fcf.js';
2
- import { U as UserInterface, D as DataUnit, A as Action, N as NumberUtils, M as MaskFormatter, a as DataType } from './index-afe19542.js';
2
+ import { T as TimeFormatter, U as UserInterface, D as DataUnit, A as Action, N as NumberUtils, M as MaskFormatter, a as DataType } from './index-e31373d9.js';
3
3
  import { F as FloatingManager } from './FloatingManager-bb90ef41.js';
4
4
  import { C as CSSVarsUtils } from './CSSVarsUtils-aeee9825.js';
5
- import { D as DateUtils } from './DateUtils-0a1bbd7a.js';
5
+
6
+ class DateUtils {
7
+ static clearTime(date, adjustDayLightSavingTime = true) {
8
+ const newDate = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0, 0);
9
+ return adjustDayLightSavingTime ? DateUtils.adjustDLST(newDate) : newDate;
10
+ }
11
+ static strToDate(strValue, adjustDayLightSavingTime = true, monthYearMode = false) {
12
+ /** monthYearMode é um booleano para usar o formato MM/YYYY.
13
+ * Quando ativado, é retornado o primeiro dia do mês apenas para construir a data.
14
+ * Não há necessidade de verificar o horário de verão quando utilizado esse modo. */
15
+ let parts;
16
+ if (monthYearMode) {
17
+ parts = /^(1[0-2]|0[1-9]|[1-9])[^\d]?(\d{2}|\d{4})(?:\s(\d{1,2}):(\d{1,2}):?(\d{0,2}))?$/.exec(strValue);
18
+ }
19
+ else {
20
+ parts = /^(3[01]|[1-2]\d|0[1-9]|[1-9])[^\d]?(1[0-2]|0[1-9]|[1-9])[^\d]?(\d{2}|\d{4})(?:\s(\d{1,2}):(\d{1,2}):?(\d{0,2}))?$/.exec(strValue);
21
+ }
22
+ if (!parts) {
23
+ return undefined;
24
+ }
25
+ var day = monthYearMode ? 1 : Number(parts[1]);
26
+ var month = Number(parts[(monthYearMode ? 1 : 2)]);
27
+ var year = Number(parts[(monthYearMode ? 2 : 3)]);
28
+ var hour = Number(parts[(monthYearMode ? 3 : 4)] || 0);
29
+ var min = Number(parts[(monthYearMode ? 4 : 5)] || 0);
30
+ var sec = Number(parts[(monthYearMode ? 5 : 6)] || 0);
31
+ if (year < 100) {
32
+ year += year < 30 ? 2000 : 1900;
33
+ }
34
+ let date = new Date(year, month - 1, day, hour, min, sec, 0);
35
+ if (adjustDayLightSavingTime === true && !monthYearMode && hour == 0) {
36
+ date = DateUtils.adjustDLST(date);
37
+ }
38
+ return date;
39
+ }
40
+ static adjustDLST(date) {
41
+ //Work around para corrigir o Bug do horário de verão.
42
+ if (date.getHours() == 23) {
43
+ return new Date(date.getFullYear(), date.getMonth(), date.getDate() + 1, 1, 0, 0, 0);
44
+ }
45
+ return date;
46
+ }
47
+ }
6
48
 
7
49
  const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__Time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-calendar__header-line--stroke:2px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px var(--space--small, 12px);--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:var(--space--extra-small, 3px) 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--strokes, #E2F4EF);--ez-calendar__cell--outset--color:var(--color--strokes, #C0C0C0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--strokes, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar{z-index:var(--more-visible, 2);display:flex;flex-direction:column;background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--medium, 12px);margin:var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--large, 600);font-size:var(--title--medium, 16px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--small, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__body{padding:var(--space--small, 6px) 0px}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;font-weight:var(--text-weight--large, 600);font-size:var(--title--small);padding:var(--space--extra-small, 6px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendarTime{margin-left:-10px;display:flex;flex-direction:column;padding:12px 6px;padding-left:16px;padding-bottom:0px;background-color:var(--ez-calendar__Time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:180px;padding:0px;margin:0px;overflow:auto}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendarTime__header{padding-left:6px;padding-right:6px;display:flex;justify-content:space-between;padding-bottom:var(--space--medium, 12px);margin:var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--large, 600);font-size:var(--title--medium, 16px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}";
8
50
 
@@ -641,6 +683,129 @@ let EzDateInput = class {
641
683
  };
642
684
  EzDateInput.style = ezDateInputCss;
643
685
 
686
+ 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:unset}.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)}";
687
+
688
+ let EzDateTimeInput = class {
689
+ constructor(hostRef) {
690
+ registerInstance(this, hostRef);
691
+ this.ezChange = createEvent(this, "ezChange", 7);
692
+ /**
693
+ * Deixa o campo disponível ou não para uso.
694
+ */
695
+ this.enabled = true;
696
+ /**
697
+ * Exibe ou não os segundos no input
698
+ */
699
+ this.showSeconds = false;
700
+ }
701
+ setLabel() {
702
+ this._textInput.label = this.label;
703
+ }
704
+ setErrorMessage() {
705
+ this._textInput.errorMessage = this.errorMessage;
706
+ }
707
+ applyValueToInput() {
708
+ if (this._textInput) {
709
+ this._textInput.value = this.getTextValue(this.value);
710
+ }
711
+ }
712
+ onChangeKeyDown(ev) {
713
+ const input = this._textInput.shadowRoot.querySelector('input');
714
+ if (ev.key === "H" || ev.key === "h") {
715
+ this.changeValue(new Date());
716
+ }
717
+ else if (ev.shiftKey && ev.key === "Tab") {
718
+ if (input.selectionStart > 0) {
719
+ let selectIni = input.value.lastIndexOf(" ", input.selectionStart);
720
+ if (selectIni !== -1) {
721
+ input.setSelectionRange(0, selectIni);
722
+ ev.preventDefault();
723
+ }
724
+ }
725
+ }
726
+ else if (ev.key === "Tab") {
727
+ if (input.value.length !== input.selectionEnd) {
728
+ let selectIni = input.value.indexOf(" ", input.selectionEnd);
729
+ selectIni = selectIni === -1 ? input.selectionEnd : selectIni + 1;
730
+ input.setSelectionRange(selectIni, input.value.length);
731
+ ev.preventDefault();
732
+ }
733
+ }
734
+ }
735
+ onFocused() {
736
+ const input = this._textInput.shadowRoot.querySelector('input');
737
+ if (input.selectionStart !== input.selectionEnd) {
738
+ let selectIni = input.value.indexOf(" ", input.selectionStart);
739
+ selectIni = selectIni === -1 ? input.value.length : selectIni;
740
+ input.setSelectionRange(0, selectIni);
741
+ }
742
+ }
743
+ onClicked() {
744
+ const input = this._textInput.shadowRoot.querySelector('input');
745
+ let selectIni = input.value.lastIndexOf(" ", input.selectionEnd);
746
+ selectIni = selectIni === -1 ? 0 : selectIni + 1;
747
+ selectIni = selectIni > input.selectionEnd ? 0 : selectIni;
748
+ let selectFin = selectIni === 0 ? input.value.indexOf(" ") : input.value.length;
749
+ input.setSelectionRange(selectIni, selectFin);
750
+ }
751
+ changeValue(newValue) {
752
+ this._textInput.errorMessage = "";
753
+ if (newValue !== this.value) {
754
+ this.value = newValue;
755
+ this.ezChange.emit();
756
+ }
757
+ }
758
+ showCalendar() {
759
+ const top = this._textInput.errorMessage ? 0 : -17;
760
+ this._calendar.fitVertical(top, this._elem.clientHeight);
761
+ this._calendar.style.visibility = 'inherit';
762
+ }
763
+ parseDate() {
764
+ const strValue = this._textInput.value;
765
+ const partsDateTime = (strValue && strValue.length > 0) ? strValue.split(" ") : [];
766
+ const onlyDate = partsDateTime.length > 0 ? partsDateTime[0] : strValue;
767
+ const onlyTime = partsDateTime[1] ? partsDateTime[1] : "";
768
+ const parsedTime = TimeFormatter.prepareValue(onlyTime, this.showSeconds);
769
+ const strDateTime = onlyDate + (parsedTime && " " + parsedTime);
770
+ const parsedDate = DateUtils.strToDate(strDateTime);
771
+ if (parsedDate || !strValue) {
772
+ if (this.value === parsedDate) {
773
+ this.changeValue(this.value);
774
+ }
775
+ else {
776
+ this.changeValue(parsedDate);
777
+ }
778
+ }
779
+ else {
780
+ this._textInput.errorMessage = "O valor digitado não é uma data válida";
781
+ }
782
+ }
783
+ getTextValue(d) {
784
+ const options = {
785
+ year: 'numeric', month: 'numeric', day: 'numeric',
786
+ hour: 'numeric', minute: 'numeric'
787
+ };
788
+ const optionsSecond = {
789
+ year: 'numeric', month: 'numeric', day: 'numeric',
790
+ hour: 'numeric', minute: 'numeric', second: 'numeric'
791
+ };
792
+ return d ? (new Intl.DateTimeFormat('pt-BR', this.showSeconds ? optionsSecond : options).format(d)) : null;
793
+ }
794
+ componentDidLoad() {
795
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
796
+ }
797
+ render() {
798
+ return (h(Host, null, h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => { this.onChangeKeyDown(event); }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, onFocus: () => this.onFocused(), onClick: () => this.onClicked() }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
799
+ }
800
+ get _elem() { return getElement(this); }
801
+ static get watchers() { return {
802
+ "label": ["setLabel"],
803
+ "errorMessage": ["setErrorMessage"],
804
+ "value": ["applyValueToInput"]
805
+ }; }
806
+ };
807
+ EzDateTimeInput.style = ezDateTimeInputCss;
808
+
644
809
  const buildTextArea = ({ name, label }) => {
645
810
  return (h("div", { class: "col col--sd-12 padding--small", key: name },
646
811
  h("ez-text-area", { label: label, "data-field-name": name })));
@@ -690,6 +855,10 @@ const buildDate = ({ name, label }) => {
690
855
  return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
691
856
  h("ez-date-input", { label: label, "data-field-name": name, key: name })));
692
857
  };
858
+ const buildTimeDate = ({ name, label }) => {
859
+ return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
860
+ h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
861
+ };
693
862
 
694
863
  const buildDecimal = ({ name, label }, properties) => {
695
864
  const precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
@@ -712,6 +881,7 @@ uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
712
881
  uiBuilders.set(UserInterface.SEARCH, buildSearch);
713
882
  uiBuilders.set(UserInterface.FILE, buildFile);
714
883
  uiBuilders.set(UserInterface.DATE, buildDate);
884
+ uiBuilders.set(UserInterface.DATETIME, buildTimeDate);
715
885
  uiBuilders.set(UserInterface.DECIMALNUMBER, buildDecimal);
716
886
  uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
717
887
  const buildField = (field) => {
@@ -1206,8 +1376,14 @@ var FormActions;
1206
1376
 
1207
1377
  class DataBinder {
1208
1378
  constructor(dataUnit) {
1209
- this._dataUnit = dataUnit;
1210
1379
  this._fields = new Map();
1380
+ this._dataUnit = dataUnit;
1381
+ this._dataUnit.subscribe(_action => {
1382
+ var _a;
1383
+ (_a = this._fields) === null || _a === void 0 ? void 0 : _a.forEach(field => {
1384
+ this.updateValue(field.fieldName, field.field);
1385
+ });
1386
+ });
1211
1387
  }
1212
1388
  bind(fields) {
1213
1389
  fields.forEach(fieldElement => {
@@ -2402,4 +2578,4 @@ let TestDu = class {
2402
2578
  };
2403
2579
  TestDu.style = testDuCss;
2404
2580
 
2405
- export { EzCalendar as ez_calendar, EzCheck as ez_check, EzCollapsibleBox as ez_collapsible_box, EzComboBox as ez_combo_box, EzDateInput as ez_date_input, EzForm as ez_form, EzNumberInput as ez_number_input, EzSearch as ez_search, EzTabselector as ez_tabselector, EzTextArea as ez_text_area, EzTextInput as ez_text_input, EzUpload as ez_upload, TestDu as test_du };
2581
+ export { EzCalendar as ez_calendar, EzCheck as ez_check, EzCollapsibleBox as ez_collapsible_box, EzComboBox as ez_combo_box, EzDateInput as ez_date_input, EzDateTimeInput as ez_date_time_input, EzForm as ez_form, EzNumberInput as ez_number_input, EzSearch as ez_search, EzTabselector as ez_tabselector, EzTextArea as ez_text_area, EzTextInput as ez_text_input, EzUpload as ez_upload, TestDu as test_du };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-077c7fcf.js';
2
- import { c as createCommonjsModule, b as commonjsGlobal, A as Action } from './index-afe19542.js';
2
+ import { c as createCommonjsModule, b as commonjsGlobal, A as Action } from './index-e31373d9.js';
3
3
  import { g as getSpritePath } from './AssetsUtils-76ca41e1.js';
4
4
 
5
5
  var agGridCommunity_cjs = createCommonjsModule(function (module, exports) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-077c7fcf.js';
2
2
  import { g as getSpritePath } from './AssetsUtils-76ca41e1.js';
3
- import './index-afe19542.js';
3
+ import './index-e31373d9.js';
4
4
 
5
5
  /**
6
6
  * Classe com utiliários comuns para Strings.
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-077c7fcf.js';
2
- import './index-afe19542.js';
2
+ import './index-e31373d9.js';
3
3
  import { F as FloatingManager } from './FloatingManager-bb90ef41.js';
4
4
 
5
5
  const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 1);position:relative;display:flex;user-select:none;width:100%}.box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.box--fit-content{width:fit-content}.box--full-width{width:100%}";
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-077c7fcf.js';
2
- import { M as MaskFormatter, T as TimeFormatter, N as NumberUtils } from './index-afe19542.js';
2
+ import { M as MaskFormatter, T as TimeFormatter, N as NumberUtils } from './index-e31373d9.js';
3
3
  import { C as CSSVarsUtils } from './CSSVarsUtils-aeee9825.js';
4
4
  import { g as getSpritePath } from './AssetsUtils-76ca41e1.js';
5
5
 
package/dist/esm/ezui.js CHANGED
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["ez-grid",[[0,"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]}]]],["ez-date-time-input",[[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-time-input",[[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]}]]],["ez-action-chip",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application",[[0,"ez-application"]]],["ez-label-chip",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover",[[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]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513]}]]],["ez-button_3",[[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,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}]]],["ez-calendar_13",[[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"]}],[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"]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}],[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]}],[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],"_preSelection":[32],"_visibleOptions":[32]}],[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":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2",[[1,"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"]}]]]], options);
16
+ return bootstrapLazy([["ez-grid",[[0,"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]}]]],["ez-dialog",[[1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"],"handleButtonClick":[64],"show":[64]}]]],["ez-time-input",[[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]}]]],["ez-action-chip",[[1,"ez-action-chip",{"label":[513],"enabled":[516]}]]],["ez-application",[[0,"ez-application"]]],["ez-label-chip",[[1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540],"setFocus":[64],"setBlur":[64]}]]],["ez-popover",[[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]}]]],["ez-popup",[[1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]]],["ez-toast",[[1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"show":[64]}]]],["ez-icon",[[1,"ez-icon",{"size":[513],"href":[513]}]]],["ez-button_3",[[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,"select-box",{"selectedOption":[1,"selected-option"]}],[1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"size":[513]}]]],["ez-calendar_14",[[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"]}],[1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}],[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"]}],[1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"]}],[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]}],[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],"_preSelection":[32],"_visibleOptions":[32]}],[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":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}],[1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1],"setFocus":[64],"setBlur":[64]}]]],["ez-modal_2",[[1,"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"]}]]]], options);
17
17
  });