@sankhyalabs/ezui 1.1.96 → 1.1.97

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 (33) hide show
  1. package/dist/cjs/UnitMetadata-2e11c5d3.js +1310 -0
  2. package/dist/cjs/ez-calendar_14.cjs.entry.js +58 -29
  3. package/dist/cjs/ez-grid.cjs.entry.js +32 -16
  4. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  5. package/dist/cjs/ez-modal_2.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-time-input.cjs.entry.js +6 -6
  8. package/dist/collection/components/ez-form/DataBinder.js +13 -0
  9. package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +1 -1
  10. package/dist/collection/components/ez-icon/ez-icon.css +5 -0
  11. package/dist/custom-elements/index.js +208 -6311
  12. package/dist/esm/UnitMetadata-8b1bbaa2.js +1304 -0
  13. package/dist/esm/ez-calendar_14.entry.js +31 -2
  14. package/dist/esm/ez-grid.entry.js +17 -1
  15. package/dist/esm/ez-icon.entry.js +2 -2
  16. package/dist/esm/ez-modal_2.entry.js +1 -1
  17. package/dist/esm/ez-popover.entry.js +1 -1
  18. package/dist/esm/ez-time-input.entry.js +1 -1
  19. package/dist/ezui/ezui.esm.js +1 -1
  20. package/dist/ezui/p-07b60fe9.js +1 -0
  21. package/dist/ezui/p-2336c9ce.entry.js +1 -0
  22. package/dist/ezui/{p-2617733e.entry.js → p-45a25c30.entry.js} +1 -1
  23. package/dist/ezui/{p-6714a1b2.entry.js → p-532b5b24.entry.js} +10 -10
  24. package/dist/ezui/p-614fbb4e.entry.js +1 -0
  25. package/dist/ezui/{p-a943d501.entry.js → p-7165ac4f.entry.js} +1 -1
  26. package/dist/ezui/{p-ef393d36.entry.js → p-d3f87e18.entry.js} +1 -1
  27. package/dist/types/components/ez-form/DataBinder.d.ts +1 -0
  28. package/package.json +2 -2
  29. package/dist/cjs/index-6164b259.js +0 -7460
  30. package/dist/esm/index-74a9c220.js +0 -7452
  31. package/dist/ezui/p-38589c64.entry.js +0 -1
  32. package/dist/ezui/p-b139372f.entry.js +0 -1
  33. package/dist/ezui/p-c6762896.js +0 -1
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88286449.js');
6
- const index$1 = require('./index-6164b259.js');
6
+ const UnitMetadata = require('./UnitMetadata-2e11c5d3.js');
7
7
  const FloatingManager = require('./FloatingManager-6cfeb947.js');
8
8
  const CSSVarsUtils = require('./CSSVarsUtils-8fbdf2e0.js');
9
9
 
@@ -50,6 +50,23 @@ class DateUtils {
50
50
  }
51
51
  }
52
52
 
53
+ class ApplicationContext {
54
+ static getContextValue(key) {
55
+ return ApplicationContext.getCtx()[key].deref();
56
+ }
57
+ static setContextValue(key, value) {
58
+ ApplicationContext.getCtx()[key] = new WeakRef(value);
59
+ }
60
+ static getCtx() {
61
+ let ctx = window.___snkcore___ctx___;
62
+ if (!ctx) {
63
+ ctx = {};
64
+ window.___snkcore___ctx___ = ctx;
65
+ }
66
+ return ctx;
67
+ }
68
+ }
69
+
53
70
  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) var(--space--small, 6px);--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:1px;--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 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--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--primary-300, #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--small, 6px);margin:0px var(--space--, 12px) 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--extra-large, 700);font-size:var(--title--small, 14px);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--extra-small, 10px);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);color:var(--ez-calendar__cell--over--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__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--extra-small, 12px);padding:0px;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 0px 0px 10px;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:136px;padding:0px;margin:0px;overflow:auto}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendarTime__header{padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);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;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";
54
71
 
55
72
  let EzCalendar = class {
@@ -789,7 +806,7 @@ let EzDateTimeInput = class {
789
806
  const partsDateTime = (strValue && strValue.length > 0) ? strValue.split(" ") : [];
790
807
  const onlyDate = partsDateTime.length > 0 ? partsDateTime[0] : strValue;
791
808
  const onlyTime = partsDateTime[1] ? partsDateTime[1] : "";
792
- const parsedTime = index$1.TimeFormatter.prepareValue(onlyTime, this.showSeconds);
809
+ const parsedTime = UnitMetadata.TimeFormatter.prepareValue(onlyTime, this.showSeconds);
793
810
  const strDateTime = onlyDate + (parsedTime && " " + parsedTime);
794
811
  const parsedDate = DateUtils.strToDate(strDateTime);
795
812
  if (parsedDate || !strValue) {
@@ -867,7 +884,7 @@ const buildComboBox = ({ name, label, readOnly }, properties) => {
867
884
 
868
885
  const buildSearch = ({ name, label, readOnly }) => {
869
886
  return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
870
- index.h("ez-search", { enabled: !readOnly, label: label, optionLoader: (_argument) => { }, "data-field-name": name, key: name })));
887
+ index.h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
871
888
  };
872
889
 
873
890
  const buildFile = ({ name, label, readOnly }) => {
@@ -898,16 +915,16 @@ function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecisio
898
915
  }
899
916
 
900
917
  const uiBuilders = new Map();
901
- uiBuilders.set(index$1.UserInterface.LONGTEXT, buildTextArea);
902
- uiBuilders.set(index$1.UserInterface.CHECKBOX, buildCheckBox);
903
- uiBuilders.set(index$1.UserInterface.SWITCH, buildSwitch);
904
- uiBuilders.set(index$1.UserInterface.OPTIONSELECTOR, buildComboBox);
905
- uiBuilders.set(index$1.UserInterface.SEARCH, buildSearch);
906
- uiBuilders.set(index$1.UserInterface.FILE, buildFile);
907
- uiBuilders.set(index$1.UserInterface.DATE, buildDate);
908
- uiBuilders.set(index$1.UserInterface.DATETIME, buildTimeDate);
909
- uiBuilders.set(index$1.UserInterface.DECIMALNUMBER, buildDecimal);
910
- uiBuilders.set(index$1.UserInterface.INTEGERNUMBER, buildInteger);
918
+ uiBuilders.set(UnitMetadata.UserInterface.LONGTEXT, buildTextArea);
919
+ uiBuilders.set(UnitMetadata.UserInterface.CHECKBOX, buildCheckBox);
920
+ uiBuilders.set(UnitMetadata.UserInterface.SWITCH, buildSwitch);
921
+ uiBuilders.set(UnitMetadata.UserInterface.OPTIONSELECTOR, buildComboBox);
922
+ uiBuilders.set(UnitMetadata.UserInterface.SEARCH, buildSearch);
923
+ uiBuilders.set(UnitMetadata.UserInterface.FILE, buildFile);
924
+ uiBuilders.set(UnitMetadata.UserInterface.DATE, buildDate);
925
+ uiBuilders.set(UnitMetadata.UserInterface.DATETIME, buildTimeDate);
926
+ uiBuilders.set(UnitMetadata.UserInterface.DECIMALNUMBER, buildDecimal);
927
+ uiBuilders.set(UnitMetadata.UserInterface.INTEGERNUMBER, buildInteger);
911
928
  const buildField = (field) => {
912
929
  const descriptor = field.descriptor;
913
930
  const config = Object.assign({}, field.config);
@@ -1443,6 +1460,7 @@ class DataBinder {
1443
1460
  oldBind.destroy();
1444
1461
  }
1445
1462
  this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
1463
+ this.bindSearchOptionsLoader(fieldName, field);
1446
1464
  }
1447
1465
  setFieldValue(fieldName, newValue) {
1448
1466
  if (this._dataUnit.records.length === 0) {
@@ -1450,6 +1468,17 @@ class DataBinder {
1450
1468
  }
1451
1469
  this._dataUnit.setFieldValue(fieldName, newValue);
1452
1470
  }
1471
+ bindSearchOptionsLoader(fieldName, field) {
1472
+ if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] === undefined) {
1473
+ const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
1474
+ if (loader) {
1475
+ const fm = this._dataUnit.getField(fieldName);
1476
+ field["optionLoader"] = (arg) => {
1477
+ loader(arg, fm.properties, this._dataUnit);
1478
+ };
1479
+ }
1480
+ }
1481
+ }
1453
1482
  }
1454
1483
  class Bind {
1455
1484
  destroy() {
@@ -1575,12 +1604,12 @@ let EzForm = class {
1575
1604
  return ((_a = this._staticFields) === null || _a === void 0 ? void 0 : _a.length) > 0;
1576
1605
  }
1577
1606
  interceptAction(action) {
1578
- if (action.type === index$1.Action.RECORDS_COPIED) {
1607
+ if (action.type === UnitMetadata.Action.RECORDS_COPIED) {
1579
1608
  const metadata = selectFormMetadata(this._store.getState());
1580
1609
  const cleanFields = metadata.getCleanOnCopyFields();
1581
1610
  if (cleanFields) {
1582
1611
  const records = action.payload;
1583
- return new index$1.DataUnitAction(index$1.Action.RECORDS_COPIED, records.map(record => {
1612
+ return new UnitMetadata.DataUnitAction(UnitMetadata.Action.RECORDS_COPIED, records.map(record => {
1584
1613
  const newRecord = Object.assign({}, record);
1585
1614
  cleanFields.forEach(fieldName => delete newRecord[fieldName]);
1586
1615
  return newRecord;
@@ -1591,11 +1620,11 @@ let EzForm = class {
1591
1620
  }
1592
1621
  componentWillLoad() {
1593
1622
  if (this.dataUnit === undefined) {
1594
- this.dataUnit = new index$1.DataUnit("ez-form");
1623
+ this.dataUnit = new UnitMetadata.DataUnit("ez-form");
1595
1624
  }
1596
1625
  this.dataUnit.addInterceptor(this);
1597
1626
  this.dataUnit.subscribe(action => {
1598
- if (action.type === index$1.Action.METADATA_LOADED) {
1627
+ if (action.type === UnitMetadata.Action.METADATA_LOADED) {
1599
1628
  this.processMetadata();
1600
1629
  }
1601
1630
  });
@@ -1645,7 +1674,7 @@ let EzNumberInput = class {
1645
1674
  }
1646
1675
  }
1647
1676
  parseNumber() {
1648
- const parsedNumber = this._textInput.value ? index$1.NumberUtils.stringToNumber(this._textInput.value) : null;
1677
+ const parsedNumber = this._textInput.value ? UnitMetadata.NumberUtils.stringToNumber(this._textInput.value) : null;
1649
1678
  if (parsedNumber != null && isNaN(parsedNumber)) {
1650
1679
  this.errorMessage = "O valor digitado não é um número válido";
1651
1680
  }
@@ -1661,7 +1690,7 @@ let EzNumberInput = class {
1661
1690
  }
1662
1691
  getTextValue(value) {
1663
1692
  if (value) {
1664
- return this.precision > 0 ? index$1.NumberUtils.format(value.toString(), Number(this.precision), Number(this.prettyPrecision)) : value.toString();
1693
+ return this.precision > 0 ? UnitMetadata.NumberUtils.format(value.toString(), Number(this.precision), Number(this.prettyPrecision)) : value.toString();
1665
1694
  }
1666
1695
  return null;
1667
1696
  }
@@ -2051,7 +2080,7 @@ let EzTextInput = class {
2051
2080
  prepareMask() {
2052
2081
  if (this.mask) {
2053
2082
  if (this._maskFormatter == undefined) {
2054
- this._maskFormatter = new index$1.MaskFormatter(this.mask);
2083
+ this._maskFormatter = new UnitMetadata.MaskFormatter(this.mask);
2055
2084
  }
2056
2085
  else {
2057
2086
  this._maskFormatter.mask = this.mask;
@@ -2558,7 +2587,7 @@ let TestDu = class {
2558
2587
  index.registerInstance(this, hostRef);
2559
2588
  }
2560
2589
  componentWillLoad() {
2561
- this.dataUnit = new index$1.DataUnit("testes_com_formulario");
2590
+ this.dataUnit = new UnitMetadata.DataUnit("testes_com_formulario");
2562
2591
  this.dataUnit.metadata = {
2563
2592
  name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
2564
2593
  label: "Parceiro",
@@ -2566,31 +2595,31 @@ let TestDu = class {
2566
2595
  {
2567
2596
  name: "CODPARC",
2568
2597
  label: "Parceiro",
2569
- dataType: index$1.DataType.NUMBER,
2570
- userInterface: index$1.UserInterface.SEARCH,
2598
+ dataType: UnitMetadata.DataType.NUMBER,
2599
+ userInterface: UnitMetadata.UserInterface.SEARCH,
2571
2600
  required: true,
2572
2601
  properties: {}
2573
2602
  },
2574
2603
  {
2575
2604
  name: "RECDESP",
2576
2605
  label: "Receita/Despesa",
2577
- dataType: index$1.DataType.TEXT,
2578
- userInterface: index$1.UserInterface.OPTIONSELECTOR,
2606
+ dataType: UnitMetadata.DataType.TEXT,
2607
+ userInterface: UnitMetadata.UserInterface.OPTIONSELECTOR,
2579
2608
  required: true,
2580
2609
  properties: { options: `{"-1": "Despesa", "1": "Receita"}` }
2581
2610
  },
2582
2611
  {
2583
2612
  name: "P",
2584
2613
  label: "pera",
2585
- dataType: index$1.DataType.TEXT,
2586
- userInterface: index$1.UserInterface.OPTIONSELECTOR,
2614
+ dataType: UnitMetadata.DataType.TEXT,
2615
+ userInterface: UnitMetadata.UserInterface.OPTIONSELECTOR,
2587
2616
  properties: { options: `{"M": "Madura", "V": "Verde", "P": "Passada"}` }
2588
2617
  },
2589
2618
  {
2590
2619
  name: "ME",
2591
2620
  label: "ME",
2592
- dataType: index$1.DataType.NUMBER,
2593
- userInterface: index$1.UserInterface.DECIMALNUMBER,
2621
+ dataType: UnitMetadata.DataType.NUMBER,
2622
+ userInterface: UnitMetadata.UserInterface.DECIMALNUMBER,
2594
2623
  properties: { precision: 4, prettyPrecision: 1 }
2595
2624
  }
2596
2625
  ]
@@ -2,10 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index$1 = require('./index-88286449.js');
6
- const index = require('./index-6164b259.js');
5
+ const index = require('./index-88286449.js');
6
+ const UnitMetadata = require('./UnitMetadata-2e11c5d3.js');
7
7
 
8
- var agGridCommunity_cjs = index.createCommonjsModule(function (module, exports) {
8
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
+
10
+ function createCommonjsModule(fn, basedir, module) {
11
+ return module = {
12
+ path: basedir,
13
+ exports: {},
14
+ require: function (path, base) {
15
+ return commonjsRequire();
16
+ }
17
+ }, fn(module, module.exports), module.exports;
18
+ }
19
+
20
+ function commonjsRequire () {
21
+ throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
22
+ }
23
+
24
+ var agGridCommunity_cjs = createCommonjsModule(function (module, exports) {
9
25
 
10
26
  Object.defineProperty(exports, '__esModule', { value: true });
11
27
 
@@ -46307,7 +46323,7 @@ var BaseComponentWrapper = /** @class */ (function () {
46307
46323
  * @link http://www.ag-grid.com/
46308
46324
  * @license MIT
46309
46325
  */
46310
- var globalObj = typeof index.commonjsGlobal === 'undefined' ? {} : index.commonjsGlobal;
46326
+ var globalObj = typeof commonjsGlobal === 'undefined' ? {} : commonjsGlobal;
46311
46327
  globalObj.HTMLElement = typeof HTMLElement === 'undefined' ? {} : HTMLElement;
46312
46328
  globalObj.HTMLButtonElement = typeof HTMLButtonElement === 'undefined' ? {} : HTMLButtonElement;
46313
46329
  globalObj.HTMLSelectElement = typeof HTMLSelectElement === 'undefined' ? {} : HTMLSelectElement;
@@ -50012,7 +50028,7 @@ exports.simpleHttpRequest = simpleHttpRequest;
50012
50028
  exports.stringToArray = stringToArray;
50013
50029
  });
50014
50030
 
50015
- var agGridEnterprise_cjs = index.createCommonjsModule(function (module, exports) {
50031
+ var agGridEnterprise_cjs = createCommonjsModule(function (module, exports) {
50016
50032
 
50017
50033
  Object.defineProperty(exports, '__esModule', { value: true });
50018
50034
 
@@ -110051,8 +110067,8 @@ class AgGridController {
110051
110067
  this._gridOptions.api.getSortModel().forEach(({ colId, sort }) => {
110052
110068
  if (sort) {
110053
110069
  const field = this._dataUnit.getField(colId);
110054
- const mode = sort === "asc" ? index.SortMode.ASC : index.SortMode.DESC;
110055
- const sortField = field ? { field: field.name, dataType: field.dataType, mode } : { field: colId, dataType: index.DataType.TEXT, mode };
110070
+ const mode = sort === "asc" ? UnitMetadata.SortMode.ASC : UnitMetadata.SortMode.DESC;
110071
+ const sortField = field ? { field: field.name, dataType: field.dataType, mode } : { field: colId, dataType: UnitMetadata.DataType.TEXT, mode };
110056
110072
  sortedColumns.push(sortField);
110057
110073
  }
110058
110074
  });
@@ -110311,7 +110327,7 @@ class DataUnitBridge {
110311
110327
  }
110312
110328
  processAction(action) {
110313
110329
  switch (action.type) {
110314
- case index.Action.METADATA_LOADED:
110330
+ case UnitMetadata.Action.METADATA_LOADED:
110315
110331
  this._gridController.setColumnsDef(this.buildColumnDefs(), true);
110316
110332
  break;
110317
110333
  }
@@ -110333,10 +110349,10 @@ const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;h
110333
110349
 
110334
110350
  let EzGrid = class {
110335
110351
  constructor(hostRef) {
110336
- index$1.registerInstance(this, hostRef);
110337
- this.ezColumnStateChange = index$1.createEvent(this, "ezColumnStateChange", 7);
110338
- this.ezSelectionChange = index$1.createEvent(this, "ezSelectionChange", 7);
110339
- this.ezDoubleClick = index$1.createEvent(this, "ezDoubleClick", 7);
110352
+ index.registerInstance(this, hostRef);
110353
+ this.ezColumnStateChange = index.createEvent(this, "ezColumnStateChange", 7);
110354
+ this.ezSelectionChange = index.createEvent(this, "ezSelectionChange", 7);
110355
+ this.ezDoubleClick = index.createEvent(this, "ezDoubleClick", 7);
110340
110356
  this._gridController = new AgGridController(false);
110341
110357
  this._popUpVisible = false;
110342
110358
  /**
@@ -110422,9 +110438,9 @@ let EzGrid = class {
110422
110438
  return null;
110423
110439
  }
110424
110440
  return [
110425
- index$1.h("div", { class: "text text--primary text--medium margin-right--medium" }, index$1.h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
110426
- index$1.h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
110427
- index$1.h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
110441
+ index.h("div", { class: "text text--primary text--medium margin-right--medium" }, index.h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
110442
+ index.h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
110443
+ index.h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
110428
110444
  ];
110429
110445
  }
110430
110446
  applyConfig(cols) {
@@ -110440,7 +110456,7 @@ let EzGrid = class {
110440
110456
  this._popUpVisible = true;
110441
110457
  }
110442
110458
  render() {
110443
- return (index$1.h(index$1.Host, null, index$1.h("div", { class: "box box--shadow padding--medium grid-header" }, index$1.h("div", { class: "grid-header__container" }, index$1.h("slot", { name: "leftButtons" })), index$1.h("div", { class: "grid-header__container" }, this.getPaginationControl(), index$1.h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), index$1.h("div", { class: "grid__container ag-sankhya-theme", ref: elem => this._container = elem }), index$1.h("div", { class: "grid__footer" }), index$1.h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false }, index$1.h("grid-config", { ref: ref => this._gridConfig = ref, selectedTab: "Colunas", onConfigFinish: evt => this.applyConfig(evt.detail), onConfigCancel: _evt => this.closeConfig() }))));
110459
+ return (index.h(index.Host, null, index.h("div", { class: "box box--shadow padding--medium grid-header" }, index.h("div", { class: "grid-header__container" }, index.h("slot", { name: "leftButtons" })), index.h("div", { class: "grid-header__container" }, this.getPaginationControl(), index.h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), index.h("div", { class: "grid__container ag-sankhya-theme", ref: elem => this._container = elem }), index.h("div", { class: "grid__footer" }), index.h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false }, index.h("grid-config", { ref: ref => this._gridConfig = ref, selectedTab: "Colunas", onConfigFinish: evt => this.applyConfig(evt.detail), onConfigCancel: _evt => this.closeConfig() }))));
110444
110460
  }
110445
110461
  static get assetsDirs() { return ["../assets"]; }
110446
110462
  };
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88286449.js');
6
6
  const StringUtils = require('./StringUtils-0ba09df4.js');
7
- require('./index-6164b259.js');
7
+ require('./UnitMetadata-2e11c5d3.js');
8
8
 
9
- const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-account-outline:before{content:\"\\ea01\"}.ez-icon-account:before{content:\"\\ea02\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea03\"}.ez-icon-alert-circle:before{content:\"\\ea04\"}.ez-icon-alert-mail:before{content:\"\\ea05\"}.ez-icon-alert-outline:before{content:\"\\ea06\"}.ez-icon-alert-popup:before{content:\"\\ea07\"}.ez-icon-apps:before{content:\"\\ea08\"}.ez-icon-arrow_back:before{content:\"\\ea09\"}.ez-icon-bell-inverted:before{content:\"\\ea0a\"}.ez-icon-bell:before{content:\"\\ea0b\"}.ez-icon-business-center:before{content:\"\\ea0c\"}.ez-icon-calendar-text:before{content:\"\\ea0d\"}.ez-icon-calendar:before{content:\"\\ea0e\"}.ez-icon-check-circle-inverted:before{content:\"\\ea0f\"}.ez-icon-check-circle:before{content:\"\\ea10\"}.ez-icon-check:before{content:\"\\ea11\"}.ez-icon-chevron-down:before{content:\"\\ea12\"}.ez-icon-chevron-left:before{content:\"\\ea13\"}.ez-icon-chevron-right:before{content:\"\\ea14\"}.ez-icon-chevron-up:before{content:\"\\ea15\"}.ez-icon-circle--medium:before{content:\"\\ea16\"}.ez-icon-circle:before{content:\"\\ea17\"}.ez-icon-clipboard:before{content:\"\\ea18\"}.ez-icon-close-circle-inverted:before{content:\"\\ea19\"}.ez-icon-close-circle:before{content:\"\\ea1a\"}.ez-icon-close:before{content:\"\\ea1b\"}.ez-icon-comment-inverted:before{content:\"\\ea1c\"}.ez-icon-comment:before{content:\"\\ea1d\"}.ez-icon-configuration:before{content:\"\\ea1e\"}.ez-icon-copy:before{content:\"\\ea1f\"}.ez-icon-crop:before{content:\"\\ea20\"}.ez-icon-delete:before{content:\"\\ea21\"}.ez-icon-description:before{content:\"\\ea22\"}.ez-icon-dot-notification:before{content:\"\\ea23\"}.ez-icon-dots-horizontal:before{content:\"\\ea24\"}.ez-icon-dots-vertical:before{content:\"\\ea25\"}.ez-icon-drag-indicator:before{content:\"\\ea26\"}.ez-icon-edit-file:before{content:\"\\ea27\"}.ez-icon-edit-table:before{content:\"\\ea28\"}.ez-icon-edit-time:before{content:\"\\ea29\"}.ez-icon-edit:before{content:\"\\ea2a\"}.ez-icon-email-inverted:before{content:\"\\ea2b\"}.ez-icon-email:before{content:\"\\ea2c\"}.ez-icon-error-octagon:before{content:\"\\ea2d\"}.ez-icon-expand:before{content:\"\\ea2e\"}.ez-icon-eye-off:before{content:\"\\ea2f\"}.ez-icon-eye:before{content:\"\\ea30\"}.ez-icon-favorite:before{content:\"\\ea31\"}.ez-icon-file-download:before{content:\"\\ea32\"}.ez-icon-file-upload:before{content:\"\\ea33\"}.ez-icon-filter:before{content:\"\\ea34\"}.ez-icon-find-file:before{content:\"\\ea35\"}.ez-icon-find-page:before{content:\"\\ea36\"}.ez-icon-format-color-fill:before{content:\"\\ea37\"}.ez-icon-help-circle-outline:before{content:\"\\ea38\"}.ez-icon-help-inverted:before{content:\"\\ea39\"}.ez-icon-help:before{content:\"\\ea3a\"}.ez-icon-home:before{content:\"\\ea3b\"}.ez-icon-language:before{content:\"\\ea3c\"}.ez-icon-launch:before{content:\"\\ea3d\"}.ez-icon-lightbulb:before{content:\"\\ea3e\"}.ez-icon-list:before{content:\"\\ea3f\"}.ez-icon-loading:before{content:\"\\ea40\"}.ez-icon-lock-outline:before{content:\"\\ea41\"}.ez-icon-lock:before{content:\"\\ea42\"}.ez-icon-menu:before{content:\"\\ea43\"}.ez-icon-minus-circle-inverted:before{content:\"\\ea44\"}.ez-icon-minus:before{content:\"\\ea45\"}.ez-icon-money-off:before{content:\"\\ea46\"}.ez-icon-money:before{content:\"\\ea47\"}.ez-icon-north-west:before{content:\"\\ea48\"}.ez-icon-pause:before{content:\"\\ea49\"}.ez-icon-payments:before{content:\"\\ea4a\"}.ez-icon-play:before{content:\"\\ea4b\"}.ez-icon-plus-circle-inverted:before{content:\"\\ea4c\"}.ez-icon-plus-circle:before{content:\"\\ea4d\"}.ez-icon-plus:before{content:\"\\ea4e\"}.ez-icon-power:before{content:\"\\ea4f\"}.ez-icon-push-pin:before{content:\"\\ea50\"}.ez-icon-restore:before{content:\"\\ea51\"}.ez-icon-return:before{content:\"\\ea52\"}.ez-icon-rotate:before{content:\"\\ea53\"}.ez-icon-save:before{content:\"\\ea54\"}.ez-icon-search:before{content:\"\\ea55\"}.ez-icon-settings-inverted:before{content:\"\\ea56\"}.ez-icon-settings:before{content:\"\\ea57\"}.ez-icon-share:before{content:\"\\ea58\"}.ez-icon-shield:before{content:\"\\ea59\"}.ez-icon-south-east:before{content:\"\\ea5a\"}.ez-icon-success-circle:before{content:\"\\ea5b\"}.ez-icon-sync:before{content:\"\\ea5c\"}.ez-icon-table:before{content:\"\\ea5d\"}.ez-icon-timer-outline:before{content:\"\\ea5e\"}.ez-icon-user-circle:before{content:\"\\ea5f\"}.ez-icon-warning-minus:before{content:\"\\ea60\"}.ez-icon-warning-triangle:before{content:\"\\ea61\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
9
+ const ezIconCss = ":host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{color:var(--ez-icon--color)}[class^=\"ez-icon-\"],[class*=\" ez-icon-\"]{font-family:'ez-icons' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-account-outline:before{content:\"\\ea01\"}.ez-icon-account:before{content:\"\\ea02\"}.ez-icon-alert-circle-inverted:before{content:\"\\ea03\"}.ez-icon-alert-circle:before{content:\"\\ea04\"}.ez-icon-alert-mail:before{content:\"\\ea05\"}.ez-icon-alert-outline:before{content:\"\\ea06\"}.ez-icon-alert-popup:before{content:\"\\ea07\"}.ez-icon-apps:before{content:\"\\ea08\"}.ez-icon-arrow_back:before{content:\"\\ea09\"}.ez-icon-bell-inverted:before{content:\"\\ea0a\"}.ez-icon-bell:before{content:\"\\ea0b\"}.ez-icon-business-center:before{content:\"\\ea0c\"}.ez-icon-calendar-text:before{content:\"\\ea0d\"}.ez-icon-calendar:before{content:\"\\ea0e\"}.ez-icon-check-circle-inverted:before{content:\"\\ea0f\"}.ez-icon-check-circle:before{content:\"\\ea10\"}.ez-icon-check:before{content:\"\\ea11\"}.ez-icon-chevron-down:before{content:\"\\ea12\"}.ez-icon-chevron-left:before{content:\"\\ea13\"}.ez-icon-chevron-right:before{content:\"\\ea14\"}.ez-icon-chevron-up:before{content:\"\\ea15\"}.ez-icon-circle--medium:before{content:\"\\ea16\"}.ez-icon-circle:before{content:\"\\ea17\"}.ez-icon-clipboard:before{content:\"\\ea18\"}.ez-icon-close-circle-inverted:before{content:\"\\ea19\"}.ez-icon-close-circle:before{content:\"\\ea1a\"}.ez-icon-close:before{content:\"\\ea1b\"}.ez-icon-comment-inverted:before{content:\"\\ea1c\"}.ez-icon-comment:before{content:\"\\ea1d\"}.ez-icon-configuration:before{content:\"\\ea1e\"}.ez-icon-copy:before{content:\"\\ea1f\"}.ez-icon-crop:before{content:\"\\ea20\"}.ez-icon-delete:before{content:\"\\ea21\"}.ez-icon-description:before{content:\"\\ea22\"}.ez-icon-dot-notification:before{content:\"\\ea23\"}.ez-icon-dots-horizontal:before{content:\"\\ea24\"}.ez-icon-dots-vertical:before{content:\"\\ea25\"}.ez-icon-drag-indicator:before{content:\"\\ea26\"}.ez-icon-edit-file:before{content:\"\\ea27\"}.ez-icon-edit-table:before{content:\"\\ea28\"}.ez-icon-edit-time:before{content:\"\\ea29\"}.ez-icon-edit:before{content:\"\\ea2a\"}.ez-icon-email-inverted:before{content:\"\\ea2b\"}.ez-icon-email:before{content:\"\\ea2c\"}.ez-icon-error-octagon:before{content:\"\\ea2d\"}.ez-icon-expand:before{content:\"\\ea2e\"}.ez-icon-eye-off:before{content:\"\\ea2f\"}.ez-icon-eye:before{content:\"\\ea30\"}.ez-icon-favorite:before{content:\"\\ea31\"}.ez-icon-file-download:before{content:\"\\ea32\"}.ez-icon-file-upload:before{content:\"\\ea33\"}.ez-icon-filter:before{content:\"\\ea34\"}.ez-icon-find-file:before{content:\"\\ea35\"}.ez-icon-find-page:before{content:\"\\ea36\"}.ez-icon-format-color-fill:before{content:\"\\ea37\"}.ez-icon-help-circle-outline:before{content:\"\\ea38\"}.ez-icon-help-inverted:before{content:\"\\ea39\"}.ez-icon-help:before{content:\"\\ea3a\"}.ez-icon-home:before{content:\"\\ea3b\"}.ez-icon-language:before{content:\"\\ea3c\"}.ez-icon-launch:before{content:\"\\ea3d\"}.ez-icon-lightbulb:before{content:\"\\ea3e\"}.ez-icon-list:before{content:\"\\ea3f\"}.ez-icon-loading:before{content:\"\\ea40\"}.ez-icon-lock-outline:before{content:\"\\ea41\"}.ez-icon-lock:before{content:\"\\ea42\"}.ez-icon-menu:before{content:\"\\ea43\"}.ez-icon-minus-circle-inverted:before{content:\"\\ea44\"}.ez-icon-minus:before{content:\"\\ea45\"}.ez-icon-money-off:before{content:\"\\ea46\"}.ez-icon-money:before{content:\"\\ea47\"}.ez-icon-north-west:before{content:\"\\ea48\"}.ez-icon-pause:before{content:\"\\ea49\"}.ez-icon-payments:before{content:\"\\ea4a\"}.ez-icon-play:before{content:\"\\ea4b\"}.ez-icon-plus-circle-inverted:before{content:\"\\ea4c\"}.ez-icon-plus-circle:before{content:\"\\ea4d\"}.ez-icon-plus:before{content:\"\\ea4e\"}.ez-icon-power:before{content:\"\\ea4f\"}.ez-icon-push-pin:before{content:\"\\ea50\"}.ez-icon-restore:before{content:\"\\ea51\"}.ez-icon-return:before{content:\"\\ea52\"}.ez-icon-rotate:before{content:\"\\ea53\"}.ez-icon-save:before{content:\"\\ea54\"}.ez-icon-search:before{content:\"\\ea55\"}.ez-icon-settings-inverted:before{content:\"\\ea56\"}.ez-icon-settings:before{content:\"\\ea57\"}.ez-icon-share:before{content:\"\\ea58\"}.ez-icon-shield:before{content:\"\\ea59\"}.ez-icon-south-east:before{content:\"\\ea5a\"}.ez-icon-success-circle:before{content:\"\\ea5b\"}.ez-icon-sync:before{content:\"\\ea5c\"}.ez-icon-table:before{content:\"\\ea5d\"}.ez-icon-timer-outline:before{content:\"\\ea5e\"}.ez-icon-user-circle:before{content:\"\\ea5f\"}.ez-icon-warning-minus:before{content:\"\\ea60\"}.ez-icon-warning-triangle:before{content:\"\\ea61\"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}";
10
10
 
11
11
  let EzIcon = class {
12
12
  constructor(hostRef) {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-88286449.js');
6
6
  const AssetsUtils = require('./AssetsUtils-4909c6de.js');
7
7
  const StringUtils = require('./StringUtils-0ba09df4.js');
8
- require('./index-6164b259.js');
8
+ require('./UnitMetadata-2e11c5d3.js');
9
9
 
10
10
  const ezModalCss = ":host{--ez-modal-z-index:var(--most-visible, 3);--ez-modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;padding:var(--ez-modal-vertical-padding) 0;display:flex;top:0px;z-index:var(--ez-modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;max-height:calc(100% - 48px);height:100%;overflow-y:auto;background-color:rgb(255, 255, 255);padding:24px;border-radius:12px 0px 0px 12px;box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
11
11
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88286449.js');
6
- require('./index-6164b259.js');
6
+ require('./UnitMetadata-2e11c5d3.js');
7
7
  const FloatingManager = require('./FloatingManager-6cfeb947.js');
8
8
 
9
9
  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%}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88286449.js');
6
- const index$1 = require('./index-6164b259.js');
6
+ const UnitMetadata = require('./UnitMetadata-2e11c5d3.js');
7
7
  const CSSVarsUtils = require('./CSSVarsUtils-8fbdf2e0.js');
8
8
  const AssetsUtils = require('./AssetsUtils-4909c6de.js');
9
9
 
@@ -24,7 +24,7 @@ let EzTimeInput = class {
24
24
  prepareMask() {
25
25
  if (this.showSeconds) {
26
26
  if (this._maskFormatter == undefined) {
27
- this._maskFormatter = new index$1.MaskFormatter("##:##:##");
27
+ this._maskFormatter = new UnitMetadata.MaskFormatter("##:##:##");
28
28
  }
29
29
  else {
30
30
  this._maskFormatter.mask = "##:##:##";
@@ -32,7 +32,7 @@ let EzTimeInput = class {
32
32
  }
33
33
  else {
34
34
  if (this._maskFormatter == undefined) {
35
- this._maskFormatter = new index$1.MaskFormatter("##:##");
35
+ this._maskFormatter = new UnitMetadata.MaskFormatter("##:##");
36
36
  }
37
37
  else {
38
38
  this._maskFormatter.mask = "##:##";
@@ -66,14 +66,14 @@ let EzTimeInput = class {
66
66
  handleFocusout() {
67
67
  this.errorMessage = "";
68
68
  this.prepareValue(this.viewValue);
69
- if (!index$1.TimeFormatter.validateTime(this.viewValue, this.showSeconds)) {
69
+ if (!UnitMetadata.TimeFormatter.validateTime(this.viewValue, this.showSeconds)) {
70
70
  this.clearField();
71
71
  this.errorMessage = "Favor inserir um horário válido.";
72
72
  }
73
73
  }
74
74
  prepareValue(value) {
75
75
  try {
76
- this.viewValue = index$1.TimeFormatter.prepareValue(value, this.showSeconds);
76
+ this.viewValue = UnitMetadata.TimeFormatter.prepareValue(value, this.showSeconds);
77
77
  }
78
78
  catch (e) {
79
79
  this.clearField();
@@ -85,7 +85,7 @@ let EzTimeInput = class {
85
85
  }
86
86
  handleChange() {
87
87
  this.viewValue = this._inputElem.value;
88
- this.value = index$1.NumberUtils.stringToNumber(this.viewValue.replace(/\D/g, ""));
88
+ this.value = UnitMetadata.NumberUtils.stringToNumber(this.viewValue.replace(/\D/g, ""));
89
89
  }
90
90
  //---------------------------------------------
91
91
  // Lifecycle web component
@@ -1,3 +1,4 @@
1
+ import { ApplicationContext } from "@sankhyalabs/core";
1
2
  export default class DataBinder {
2
3
  constructor(dataUnit) {
3
4
  this._fields = new Map();
@@ -25,6 +26,7 @@ export default class DataBinder {
25
26
  oldBind.destroy();
26
27
  }
27
28
  this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
29
+ this.bindSearchOptionsLoader(fieldName, field);
28
30
  }
29
31
  setFieldValue(fieldName, newValue) {
30
32
  if (this._dataUnit.records.length === 0) {
@@ -32,6 +34,17 @@ export default class DataBinder {
32
34
  }
33
35
  this._dataUnit.setFieldValue(fieldName, newValue);
34
36
  }
37
+ bindSearchOptionsLoader(fieldName, field) {
38
+ if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] === undefined) {
39
+ const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
40
+ if (loader) {
41
+ const fm = this._dataUnit.getField(fieldName);
42
+ field["optionLoader"] = (arg) => {
43
+ loader(arg, fm.properties, this._dataUnit);
44
+ };
45
+ }
46
+ }
47
+ }
35
48
  }
36
49
  class Bind {
37
50
  destroy() {
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildSearch = ({ name, label, readOnly }) => {
3
3
  return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
4
- h("ez-search", { enabled: !readOnly, label: label, optionLoader: (_argument) => { }, "data-field-name": name, key: name })));
4
+ h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -37,6 +37,11 @@ svg {
37
37
  width: 30px;
38
38
  height: 30px;
39
39
  }
40
+
41
+ [class^="ez-icon-"], [class*=" ez-icon-"] {
42
+ color: var(--ez-icon--color);
43
+ }
44
+
40
45
  /*
41
46
  START CSS GENERATED BY EZ-DESIGN ICONS, SEE MORE AT ez-design\scripts\fontsGenerator.js.
42
47
  WHEN ADD NEW ICONS THIS CSS NEED TO BE UPDATED