@sankhyalabs/ezui 1.1.96 → 1.1.99

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 (52) hide show
  1. package/dist/cjs/{StringUtils-0ba09df4.js → AssetsUtils-69356e76.js} +22 -0
  2. package/dist/cjs/UnitMetadata-63c56042.js +1311 -0
  3. package/dist/cjs/{ez-calendar_14.cjs.entry.js → ez-calendar_16.cjs.entry.js} +227 -35
  4. package/dist/cjs/ez-grid.cjs.entry.js +38 -19
  5. package/dist/cjs/ez-modal_2.cjs.entry.js +3 -4
  6. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  7. package/dist/cjs/ezui.cjs.js +1 -1
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/collection/components/ez-form/DataBinder.js +12 -0
  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/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +1 -1
  13. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +2 -1
  14. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -2
  15. package/dist/collection/components/ez-icon/ez-icon.css +5 -0
  16. package/dist/custom-elements/index.js +219 -6314
  17. package/dist/esm/{StringUtils-cbf10229.js → AssetsUtils-0e207bec.js} +22 -1
  18. package/dist/esm/UnitMetadata-109880b0.js +1305 -0
  19. package/dist/esm/{ez-calendar_14.entry.js → ez-calendar_16.entry.js} +194 -4
  20. package/dist/esm/ez-grid.entry.js +23 -4
  21. package/dist/esm/ez-modal_2.entry.js +2 -3
  22. package/dist/esm/ez-popover.entry.js +1 -1
  23. package/dist/esm/ezui.js +1 -1
  24. package/dist/esm/loader.js +1 -1
  25. package/dist/ezui/ezui.esm.js +1 -1
  26. package/dist/ezui/{p-6714a1b2.entry.js → p-18de871c.entry.js} +10 -10
  27. package/dist/ezui/p-9fab5606.js +1 -0
  28. package/dist/ezui/p-a30309ce.entry.js +1 -0
  29. package/dist/ezui/{p-2617733e.entry.js → p-afb820c1.entry.js} +1 -1
  30. package/dist/ezui/p-c3f30dff.entry.js +1 -0
  31. package/dist/ezui/p-ec7c1b86.js +1 -0
  32. package/dist/types/components/ez-form/DataBinder.d.ts +1 -0
  33. package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +4 -0
  34. package/package.json +2 -2
  35. package/dist/cjs/AssetsUtils-4909c6de.js +0 -24
  36. package/dist/cjs/CSSVarsUtils-8fbdf2e0.js +0 -19
  37. package/dist/cjs/ez-icon.cjs.entry.js +0 -42
  38. package/dist/cjs/ez-time-input.cjs.entry.js +0 -118
  39. package/dist/cjs/index-6164b259.js +0 -7460
  40. package/dist/esm/AssetsUtils-9b1329a3.js +0 -22
  41. package/dist/esm/CSSVarsUtils-667e0016.js +0 -17
  42. package/dist/esm/ez-icon.entry.js +0 -38
  43. package/dist/esm/ez-time-input.entry.js +0 -114
  44. package/dist/esm/index-74a9c220.js +0 -7452
  45. package/dist/ezui/p-2f84ba72.js +0 -1
  46. package/dist/ezui/p-38589c64.entry.js +0 -1
  47. package/dist/ezui/p-477bb703.js +0 -1
  48. package/dist/ezui/p-a943d501.entry.js +0 -1
  49. package/dist/ezui/p-b139372f.entry.js +0 -1
  50. package/dist/ezui/p-c6762896.js +0 -1
  51. package/dist/ezui/p-d54c157f.js +0 -1
  52. package/dist/ezui/p-ef393d36.entry.js +0 -1
@@ -3,9 +3,9 @@
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-63c56042.js');
7
7
  const FloatingManager = require('./FloatingManager-6cfeb947.js');
8
- const CSSVarsUtils = require('./CSSVarsUtils-8fbdf2e0.js');
8
+ const AssetsUtils = require('./AssetsUtils-69356e76.js');
9
9
 
10
10
  class DateUtils {
11
11
  static clearTime(date, adjustDayLightSavingTime = true) {
@@ -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 {
@@ -371,6 +388,22 @@ let EzCollapsibleBox = class {
371
388
  };
372
389
  EzCollapsibleBox.style = ezCollapsibleBoxCss;
373
390
 
391
+ class CSSVarsUtils {
392
+ static applyVarsTextInput(host, child) {
393
+ if (child) {
394
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
395
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
396
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height');
397
+ }
398
+ }
399
+ static applyIfExists(host, element, varName) {
400
+ const prop = getComputedStyle(host).getPropertyValue(varName);
401
+ if (prop) {
402
+ element.style.setProperty(varName, prop);
403
+ }
404
+ }
405
+ }
406
+
374
407
  const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn-search--background-color:var(--text--primary, #626e82);--ez-combo-box__btn-search-disabled--background-color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-search-hover--background-color:var(--color--primary, #4e4e4e);--ez-combo-box__btn-options--background-color:var(--text--primary, #626e82);--ez-combo-box__btn-options-disabled--background-color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-options-hover--background-color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #919191);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium));--ez-combo-box__drop-down-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"16px\"><path d=\"M 1.8585859,3.0707069 7.9999998,9.2121212 14.141414,3.0707069 16,5.0101006 7.9999998,12.929293 0,4.9292932 Z\"/></svg>');--ez-combo-box__search-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"22px\" width=\"22px\"><path d=\"m 9.4,2.3 c 4.1,0 7.4,3.2 7.4,7.2 0,1.8 -0.7,3.4 -1.8,4.7 l 0.3,0.3 h 0.9 l 5.7,5.6 -1.7,1.7 -5.7,-5.6 V 15.3 L 14.3,15 C 13,16.1 11.3,16.7 9.5,16.7 5.3,16.7 2,13.5 2,9.5 2,5.5 5.3,2.3 9.4,2.3 m 0,2.2 c -2.9,0 -5.1,2.2 -5.1,5 0,2.8 2.3,5 5.1,5 2.8,0 5.1,-2.2 5.1,-5 0,-2.8 -2.2,-5 -5.1,-5 z\"/></svg>');--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}.list-container{position:relative;width:100%}.options-list{box-sizing:border-box;width:100%;z-index:var(--more-visible, 2);display:flex;flex-direction:column;background-color:var(--ez-combo-box--background-color--xlight);padding:var(--ez-combo-box--space--small);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);scroll-behavior:smooth;max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small));overflow:auto}.item{text-align:left;display:flex;justify-content:space-between;align-items:center;border-radius:var(--ez-combo-box--border-radius-small);padding:0 var(--ez-combo-box--space--small);list-style-type:none;min-height:var(--ez-combo-box__list-height)}.item--label{text-align:left;flex-basis:85%;flex-grow:1;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large);font-family:var(--ez-combo-box--font-family);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item--value{text-align:right;flex-basis:15%;flex-grow:0;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large);font-family:var(--ez-combo-box--font-family);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn-open-options{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-options:disabled{cursor:unset}.btn-open-options::after{content:'';display:flex;background-color:var(--ez-combo-box__btn-options--background-color);width:16px;height:16px;-webkit-mask-image:var(--ez-combo-box__drop-down-image);mask-image:var(--ez-combo-box__drop-down-image)}.btn-open-options:disabled:after{background-color:var(--ez-combo-box__btn-options-disabled--background-color)}.btn-open-options:enabled:hover::after{background-color:var(--ez-combo-box__btn-options-hover--background-color)}.btn-open-search{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-search:disabled{cursor:unset}.btn-open-search::after{content:'';display:flex;background-color:var(--ez-combo-box__btn-search--background-color);width:22px;height:22px;-webkit-mask-image:var(--ez-combo-box__search-image);mask-image:var(--ez-combo-box__search-image)}.btn-open-search:disabled:after{background-color:var(--ez-combo-box__btn-search-disabled--background-color)}.btn-open-search:enabled:hover::after{background-color:var(--ez-combo-box__btn-search-hover--background-color)}";
375
408
 
376
409
  let EzComboBox = class {
@@ -564,7 +597,7 @@ let EzComboBox = class {
564
597
  }
565
598
  }
566
599
  componentDidLoad() {
567
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this.el, this._inputElement);
600
+ CSSVarsUtils.applyVarsTextInput(this.el, this._inputElement);
568
601
  }
569
602
  //---------------------------------------------
570
603
  // Event handlers
@@ -690,7 +723,7 @@ let EzDateInput = class {
690
723
  return d ? new Intl.DateTimeFormat("pt-BR").format(d) : null;
691
724
  }
692
725
  componentDidLoad() {
693
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
726
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
694
727
  }
695
728
  render() {
696
729
  return (index.h(index.Host, null, index.h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => {
@@ -789,7 +822,7 @@ let EzDateTimeInput = class {
789
822
  const partsDateTime = (strValue && strValue.length > 0) ? strValue.split(" ") : [];
790
823
  const onlyDate = partsDateTime.length > 0 ? partsDateTime[0] : strValue;
791
824
  const onlyTime = partsDateTime[1] ? partsDateTime[1] : "";
792
- const parsedTime = index$1.TimeFormatter.prepareValue(onlyTime, this.showSeconds);
825
+ const parsedTime = UnitMetadata.TimeFormatter.prepareValue(onlyTime, this.showSeconds);
793
826
  const strDateTime = onlyDate + (parsedTime && " " + parsedTime);
794
827
  const parsedDate = DateUtils.strToDate(strDateTime);
795
828
  if (parsedDate || !strValue) {
@@ -816,7 +849,7 @@ let EzDateTimeInput = class {
816
849
  return d ? (new Intl.DateTimeFormat('pt-BR', this.showSeconds ? optionsSecond : options).format(d)) : null;
817
850
  }
818
851
  componentDidLoad() {
819
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
852
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
820
853
  }
821
854
  render() {
822
855
  return (index.h(index.Host, null, index.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() }, index.h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), index.h("ez-calendar", { onEzChange: (event) => { this.changeValue(this._calendar.value); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem, time: true, showSeconds: this.showSeconds })));
@@ -867,7 +900,7 @@ const buildComboBox = ({ name, label, readOnly }, properties) => {
867
900
 
868
901
  const buildSearch = ({ name, label, readOnly }) => {
869
902
  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 })));
903
+ index.h("ez-search", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
871
904
  };
872
905
 
873
906
  const buildFile = ({ name, label, readOnly }) => {
@@ -879,6 +912,10 @@ const buildDate = ({ name, label, readOnly }) => {
879
912
  return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
880
913
  index.h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
881
914
  };
915
+ const buildTime = ({ name, label }) => {
916
+ return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
917
+ index.h("ez-time-input", { label: label, "data-field-name": name, key: name })));
918
+ };
882
919
  const buildTimeDate = ({ name, label }) => {
883
920
  return (index.h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
884
921
  index.h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
@@ -898,16 +935,17 @@ function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecisio
898
935
  }
899
936
 
900
937
  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);
938
+ uiBuilders.set(UnitMetadata.UserInterface.LONGTEXT, buildTextArea);
939
+ uiBuilders.set(UnitMetadata.UserInterface.CHECKBOX, buildCheckBox);
940
+ uiBuilders.set(UnitMetadata.UserInterface.SWITCH, buildSwitch);
941
+ uiBuilders.set(UnitMetadata.UserInterface.OPTIONSELECTOR, buildComboBox);
942
+ uiBuilders.set(UnitMetadata.UserInterface.SEARCH, buildSearch);
943
+ uiBuilders.set(UnitMetadata.UserInterface.FILE, buildFile);
944
+ uiBuilders.set(UnitMetadata.UserInterface.DATE, buildDate);
945
+ uiBuilders.set(UnitMetadata.UserInterface.TIME, buildTime);
946
+ uiBuilders.set(UnitMetadata.UserInterface.DATETIME, buildTimeDate);
947
+ uiBuilders.set(UnitMetadata.UserInterface.DECIMALNUMBER, buildDecimal);
948
+ uiBuilders.set(UnitMetadata.UserInterface.INTEGERNUMBER, buildInteger);
911
949
  const buildField = (field) => {
912
950
  const descriptor = field.descriptor;
913
951
  const config = Object.assign({}, field.config);
@@ -1443,6 +1481,7 @@ class DataBinder {
1443
1481
  oldBind.destroy();
1444
1482
  }
1445
1483
  this._fields.set(fieldName, Bind.create(fieldName, field, (fieldName, newValue) => this.setFieldValue(fieldName, newValue)));
1484
+ this.bindSearchOptionsLoader(fieldName, field);
1446
1485
  }
1447
1486
  setFieldValue(fieldName, newValue) {
1448
1487
  if (this._dataUnit.records.length === 0) {
@@ -1450,6 +1489,16 @@ class DataBinder {
1450
1489
  }
1451
1490
  this._dataUnit.setFieldValue(fieldName, newValue);
1452
1491
  }
1492
+ bindSearchOptionsLoader(fieldName, field) {
1493
+ if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] === undefined) {
1494
+ const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
1495
+ if (loader) {
1496
+ field["optionLoader"] = (arg) => {
1497
+ loader(arg, fieldName, this._dataUnit);
1498
+ };
1499
+ }
1500
+ }
1501
+ }
1453
1502
  }
1454
1503
  class Bind {
1455
1504
  destroy() {
@@ -1575,12 +1624,12 @@ let EzForm = class {
1575
1624
  return ((_a = this._staticFields) === null || _a === void 0 ? void 0 : _a.length) > 0;
1576
1625
  }
1577
1626
  interceptAction(action) {
1578
- if (action.type === index$1.Action.RECORDS_COPIED) {
1627
+ if (action.type === UnitMetadata.Action.RECORDS_COPIED) {
1579
1628
  const metadata = selectFormMetadata(this._store.getState());
1580
1629
  const cleanFields = metadata.getCleanOnCopyFields();
1581
1630
  if (cleanFields) {
1582
1631
  const records = action.payload;
1583
- return new index$1.DataUnitAction(index$1.Action.RECORDS_COPIED, records.map(record => {
1632
+ return new UnitMetadata.DataUnitAction(UnitMetadata.Action.RECORDS_COPIED, records.map(record => {
1584
1633
  const newRecord = Object.assign({}, record);
1585
1634
  cleanFields.forEach(fieldName => delete newRecord[fieldName]);
1586
1635
  return newRecord;
@@ -1591,11 +1640,11 @@ let EzForm = class {
1591
1640
  }
1592
1641
  componentWillLoad() {
1593
1642
  if (this.dataUnit === undefined) {
1594
- this.dataUnit = new index$1.DataUnit("ez-form");
1643
+ this.dataUnit = new UnitMetadata.DataUnit("ez-form");
1595
1644
  }
1596
1645
  this.dataUnit.addInterceptor(this);
1597
1646
  this.dataUnit.subscribe(action => {
1598
- if (action.type === index$1.Action.METADATA_LOADED) {
1647
+ if (action.type === UnitMetadata.Action.METADATA_LOADED) {
1599
1648
  this.processMetadata();
1600
1649
  }
1601
1650
  });
@@ -1615,6 +1664,39 @@ let EzForm = class {
1615
1664
  };
1616
1665
  EzForm.style = ezFormCss;
1617
1666
 
1667
+ 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}";
1668
+
1669
+ let EzIcon = class {
1670
+ constructor(hostRef) {
1671
+ index.registerInstance(this, hostRef);
1672
+ /**
1673
+ * Tamanho do ícone
1674
+ */
1675
+ this.size = 'medium';
1676
+ }
1677
+ isSprite() {
1678
+ return this.href && this.href.indexOf('#') > -1;
1679
+ }
1680
+ getIconClassName() {
1681
+ return `ez-icon-${this.iconName}`;
1682
+ }
1683
+ getIconContent() {
1684
+ if (this.isSprite()) {
1685
+ return index.h("svg", { class: this.size, role: "img" }, index.h("use", { xlinkHref: this.href }));
1686
+ }
1687
+ else if (!AssetsUtils.StringUtils.isEmpty(this.iconName)) {
1688
+ return index.h("span", { class: `icon-content ${this.getIconClassName()} ${this.size}--font` });
1689
+ }
1690
+ else {
1691
+ return index.h("img", { class: this.size, src: this.href });
1692
+ }
1693
+ }
1694
+ render() {
1695
+ return (index.h(index.Host, null, this.getIconContent()));
1696
+ }
1697
+ };
1698
+ EzIcon.style = ezIconCss;
1699
+
1618
1700
  const ezNumberInputCss = ":host{display:block;width:100%}";
1619
1701
 
1620
1702
  let EzNumberInput = class {
@@ -1645,7 +1727,7 @@ let EzNumberInput = class {
1645
1727
  }
1646
1728
  }
1647
1729
  parseNumber() {
1648
- const parsedNumber = this._textInput.value ? index$1.NumberUtils.stringToNumber(this._textInput.value) : null;
1730
+ const parsedNumber = this._textInput.value ? UnitMetadata.NumberUtils.stringToNumber(this._textInput.value) : null;
1649
1731
  if (parsedNumber != null && isNaN(parsedNumber)) {
1650
1732
  this.errorMessage = "O valor digitado não é um número válido";
1651
1733
  }
@@ -1661,12 +1743,12 @@ let EzNumberInput = class {
1661
1743
  }
1662
1744
  getTextValue(value) {
1663
1745
  if (value) {
1664
- return this.precision > 0 ? index$1.NumberUtils.format(value.toString(), Number(this.precision), Number(this.prettyPrecision)) : value.toString();
1746
+ return this.precision > 0 ? UnitMetadata.NumberUtils.format(value.toString(), Number(this.precision), Number(this.prettyPrecision)) : value.toString();
1665
1747
  }
1666
1748
  return null;
1667
1749
  }
1668
1750
  componentDidLoad() {
1669
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
1751
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
1670
1752
  }
1671
1753
  render() {
1672
1754
  return (index.h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: this.precision > 0 ? "0123456789-,." : "0123456789-", enabled: this.enabled, errorMessage: this.errorMessage }));
@@ -1711,7 +1793,7 @@ let EzSearch = class {
1711
1793
  this.ezChange.emit(evt.detail);
1712
1794
  }
1713
1795
  componentDidLoad() {
1714
- CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
1796
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
1715
1797
  }
1716
1798
  render() {
1717
1799
  return (index.h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue }));
@@ -2051,7 +2133,7 @@ let EzTextInput = class {
2051
2133
  prepareMask() {
2052
2134
  if (this.mask) {
2053
2135
  if (this._maskFormatter == undefined) {
2054
- this._maskFormatter = new index$1.MaskFormatter(this.mask);
2136
+ this._maskFormatter = new UnitMetadata.MaskFormatter(this.mask);
2055
2137
  }
2056
2138
  else {
2057
2139
  this._maskFormatter.mask = this.mask;
@@ -2215,6 +2297,114 @@ let EzTextInput = class {
2215
2297
  };
2216
2298
  EzTextInput.style = ezTextInputCss;
2217
2299
 
2300
+ const ezTimeInputCss = ":host{display:flex;flex-wrap:wrap;position:relative;width:100%}";
2301
+
2302
+ let EzTimeInput = class {
2303
+ constructor(hostRef) {
2304
+ index.registerInstance(this, hostRef);
2305
+ /**
2306
+ * Deixa o campo disponível ou não para digitação.
2307
+ */
2308
+ this.enabled = true;
2309
+ /**
2310
+ * Define se o componente irá ou não considerar os segundos
2311
+ */
2312
+ this.showSeconds = false;
2313
+ }
2314
+ prepareMask() {
2315
+ if (this.showSeconds) {
2316
+ if (this._maskFormatter == undefined) {
2317
+ this._maskFormatter = new UnitMetadata.MaskFormatter("##:##:##");
2318
+ }
2319
+ else {
2320
+ this._maskFormatter.mask = "##:##:##";
2321
+ }
2322
+ }
2323
+ else {
2324
+ if (this._maskFormatter == undefined) {
2325
+ this._maskFormatter = new UnitMetadata.MaskFormatter("##:##");
2326
+ }
2327
+ else {
2328
+ this._maskFormatter.mask = "##:##";
2329
+ }
2330
+ }
2331
+ }
2332
+ onValueChanged() {
2333
+ if (this.value === NaN) {
2334
+ this.value = undefined;
2335
+ this.handleFocusout();
2336
+ }
2337
+ }
2338
+ //---------------------------------------------
2339
+ // Public methods
2340
+ //---------------------------------------------
2341
+ /**
2342
+ * Faz o foco no componente de input
2343
+ */
2344
+ async setFocus() {
2345
+ this._inputElem.focus();
2346
+ }
2347
+ /**
2348
+ * Remove o foco no componente de input
2349
+ */
2350
+ async setBlur() {
2351
+ this._inputElem.blur();
2352
+ }
2353
+ //---------------------------------------------
2354
+ // Event handlers
2355
+ //---------------------------------------------
2356
+ handleFocusout() {
2357
+ this.errorMessage = "";
2358
+ this.prepareValue(this.viewValue);
2359
+ if (!UnitMetadata.TimeFormatter.validateTime(this.viewValue, this.showSeconds)) {
2360
+ this.clearField();
2361
+ this.errorMessage = "Favor inserir um horário válido.";
2362
+ }
2363
+ }
2364
+ prepareValue(value) {
2365
+ try {
2366
+ this.viewValue = UnitMetadata.TimeFormatter.prepareValue(value, this.showSeconds);
2367
+ }
2368
+ catch (e) {
2369
+ this.clearField();
2370
+ this.errorMessage = e.message;
2371
+ }
2372
+ }
2373
+ clearField() {
2374
+ this.viewValue = this.value = undefined;
2375
+ }
2376
+ handleChange() {
2377
+ this.viewValue = this._inputElem.value;
2378
+ this.value = UnitMetadata.NumberUtils.stringToNumber(this.viewValue.replace(/\D/g, ""));
2379
+ }
2380
+ //---------------------------------------------
2381
+ // Lifecycle web component
2382
+ //---------------------------------------------
2383
+ componentDidLoad() {
2384
+ this.onValueChanged();
2385
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._inputElem);
2386
+ }
2387
+ componentWillLoad() {
2388
+ this.prepareMask();
2389
+ if (this.value) {
2390
+ this.prepareValue(this.value.toString());
2391
+ }
2392
+ else if (this.viewValue) {
2393
+ this.prepareValue(this.viewValue);
2394
+ }
2395
+ }
2396
+ render() {
2397
+ return (index.h(index.Host, null, index.h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage }, index.h("ez-icon", { slot: "leftIcon", href: AssetsUtils.getSpritePath("timer-outline") }))));
2398
+ }
2399
+ static get assetsDirs() { return ["../assets"]; }
2400
+ get _elem() { return index.getElement(this); }
2401
+ static get watchers() { return {
2402
+ "showSeconds": ["prepareMask"],
2403
+ "value": ["onValueChanged"]
2404
+ }; }
2405
+ };
2406
+ EzTimeInput.style = ezTimeInputCss;
2407
+
2218
2408
  class RemoteFile {
2219
2409
  constructor(file) {
2220
2410
  this.file = file;
@@ -2558,7 +2748,7 @@ let TestDu = class {
2558
2748
  index.registerInstance(this, hostRef);
2559
2749
  }
2560
2750
  componentWillLoad() {
2561
- this.dataUnit = new index$1.DataUnit("testes_com_formulario");
2751
+ this.dataUnit = new UnitMetadata.DataUnit("testes_com_formulario");
2562
2752
  this.dataUnit.metadata = {
2563
2753
  name: "dd://br.com.sankhya.fin.cad.movimentacaoFinanceira/Financeiro",
2564
2754
  label: "Parceiro",
@@ -2566,31 +2756,31 @@ let TestDu = class {
2566
2756
  {
2567
2757
  name: "CODPARC",
2568
2758
  label: "Parceiro",
2569
- dataType: index$1.DataType.NUMBER,
2570
- userInterface: index$1.UserInterface.SEARCH,
2759
+ dataType: UnitMetadata.DataType.NUMBER,
2760
+ userInterface: UnitMetadata.UserInterface.SEARCH,
2571
2761
  required: true,
2572
2762
  properties: {}
2573
2763
  },
2574
2764
  {
2575
2765
  name: "RECDESP",
2576
2766
  label: "Receita/Despesa",
2577
- dataType: index$1.DataType.TEXT,
2578
- userInterface: index$1.UserInterface.OPTIONSELECTOR,
2767
+ dataType: UnitMetadata.DataType.TEXT,
2768
+ userInterface: UnitMetadata.UserInterface.OPTIONSELECTOR,
2579
2769
  required: true,
2580
2770
  properties: { options: `{"-1": "Despesa", "1": "Receita"}` }
2581
2771
  },
2582
2772
  {
2583
2773
  name: "P",
2584
2774
  label: "pera",
2585
- dataType: index$1.DataType.TEXT,
2586
- userInterface: index$1.UserInterface.OPTIONSELECTOR,
2775
+ dataType: UnitMetadata.DataType.TEXT,
2776
+ userInterface: UnitMetadata.UserInterface.OPTIONSELECTOR,
2587
2777
  properties: { options: `{"M": "Madura", "V": "Verde", "P": "Passada"}` }
2588
2778
  },
2589
2779
  {
2590
2780
  name: "ME",
2591
2781
  label: "ME",
2592
- dataType: index$1.DataType.NUMBER,
2593
- userInterface: index$1.UserInterface.DECIMALNUMBER,
2782
+ dataType: UnitMetadata.DataType.NUMBER,
2783
+ userInterface: UnitMetadata.UserInterface.DECIMALNUMBER,
2594
2784
  properties: { precision: 4, prettyPrecision: 1 }
2595
2785
  }
2596
2786
  ]
@@ -2619,10 +2809,12 @@ exports.ez_combo_box = EzComboBox;
2619
2809
  exports.ez_date_input = EzDateInput;
2620
2810
  exports.ez_date_time_input = EzDateTimeInput;
2621
2811
  exports.ez_form = EzForm;
2812
+ exports.ez_icon = EzIcon;
2622
2813
  exports.ez_number_input = EzNumberInput;
2623
2814
  exports.ez_search = EzSearch;
2624
2815
  exports.ez_tabselector = EzTabselector;
2625
2816
  exports.ez_text_area = EzTextArea;
2626
2817
  exports.ez_text_input = EzTextInput;
2818
+ exports.ez_time_input = EzTimeInput;
2627
2819
  exports.ez_upload = EzUpload;
2628
2820
  exports.test_du = TestDu;
@@ -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-63c56042.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
  });
@@ -110133,9 +110149,11 @@ class AgGridController {
110133
110149
  headerName: "",
110134
110150
  checkboxSelection: true,
110135
110151
  headerCheckboxSelection: false,
110136
- width: 24,
110152
+ width: 28,
110137
110153
  suppressMovable: true,
110138
- suppressMenu: true
110154
+ suppressAutoSize: true,
110155
+ suppressMenu: true,
110156
+ lockPosition: true
110139
110157
  });
110140
110158
  }
110141
110159
  cols.forEach(c => {
@@ -110311,7 +110329,7 @@ class DataUnitBridge {
110311
110329
  }
110312
110330
  processAction(action) {
110313
110331
  switch (action.type) {
110314
- case index.Action.METADATA_LOADED:
110332
+ case UnitMetadata.Action.METADATA_LOADED:
110315
110333
  this._gridController.setColumnsDef(this.buildColumnDefs(), true);
110316
110334
  break;
110317
110335
  }
@@ -110320,8 +110338,9 @@ class DataUnitBridge {
110320
110338
  const columnDefs = [];
110321
110339
  if (this._dataUnit.metadata) {
110322
110340
  this._dataUnit.metadata.fields.forEach(f => {
110341
+ var _a;
110323
110342
  if (f.visible !== false) {
110324
- columnDefs.push({ label: f.label, name: f.name, userInterface: f.userInterface, options: this._dataUnit.getField(f.name).properties.options });
110343
+ columnDefs.push({ label: f.label, name: f.name, userInterface: f.userInterface, options: (_a = this._dataUnit.getField(f.name).properties) === null || _a === void 0 ? void 0 : _a.options });
110325
110344
  }
110326
110345
  });
110327
110346
  }
@@ -110333,10 +110352,10 @@ const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;h
110333
110352
 
110334
110353
  let EzGrid = class {
110335
110354
  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);
110355
+ index.registerInstance(this, hostRef);
110356
+ this.ezColumnStateChange = index.createEvent(this, "ezColumnStateChange", 7);
110357
+ this.ezSelectionChange = index.createEvent(this, "ezSelectionChange", 7);
110358
+ this.ezDoubleClick = index.createEvent(this, "ezDoubleClick", 7);
110340
110359
  this._gridController = new AgGridController(false);
110341
110360
  this._popUpVisible = false;
110342
110361
  /**
@@ -110422,9 +110441,9 @@ let EzGrid = class {
110422
110441
  return null;
110423
110442
  }
110424
110443
  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" })
110444
+ 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}`),
110445
+ 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" }),
110446
+ 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
110447
  ];
110429
110448
  }
110430
110449
  applyConfig(cols) {
@@ -110440,7 +110459,7 @@ let EzGrid = class {
110440
110459
  this._popUpVisible = true;
110441
110460
  }
110442
110461
  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() }))));
110462
+ 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
110463
  }
110445
110464
  static get assetsDirs() { return ["../assets"]; }
110446
110465
  };
@@ -3,9 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-88286449.js');
6
- const AssetsUtils = require('./AssetsUtils-4909c6de.js');
7
- const StringUtils = require('./StringUtils-0ba09df4.js');
8
- require('./index-6164b259.js');
6
+ const AssetsUtils = require('./AssetsUtils-69356e76.js');
7
+ require('./UnitMetadata-63c56042.js');
9
8
 
10
9
  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
10
 
@@ -264,7 +263,7 @@ let GridConfig = class {
264
263
  }
265
264
  }
266
265
  compareWords(column, searchingText) {
267
- if (StringUtils.StringUtils.replaceAccentuatedChars(column.label).indexOf(StringUtils.StringUtils.replaceAccentuatedChars(searchingText)) > -1) {
266
+ if (AssetsUtils.StringUtils.replaceAccentuatedChars(column.label).indexOf(AssetsUtils.StringUtils.replaceAccentuatedChars(searchingText)) > -1) {
268
267
  return true;
269
268
  }
270
269
  return false;
@@ -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-63c56042.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%}";