@sankhyalabs/ezui 1.1.75 → 1.1.76

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 (72) hide show
  1. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  2. package/dist/cjs/ez-button_16.cjs.entry.js +127 -119
  3. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-time-input.cjs.entry.js +21 -2
  11. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  12. package/dist/cjs/ezui.cjs.js +2 -2
  13. package/dist/cjs/{index-4d2896bb.js → index-9431aeeb.js} +2 -0
  14. package/dist/cjs/loader.cjs.js +2 -2
  15. package/dist/collection/components/ez-button/ez-button.css +62 -43
  16. package/dist/collection/components/ez-button/ez-button.js +9 -2
  17. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +34 -34
  18. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -12
  19. package/dist/collection/components/ez-combo-box/ez-combo-box.css +2 -2
  20. package/dist/collection/components/ez-date-input/ez-date-input.css +17 -3
  21. package/dist/collection/components/ez-date-input/ez-date-input.js +2 -2
  22. package/dist/collection/components/ez-form/ez-form.js +37 -35
  23. package/dist/collection/components/ez-form/store/Form.actions.js +16 -16
  24. package/dist/collection/components/ez-form/store/Form.reducer.js +17 -17
  25. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +8 -8
  26. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +12 -12
  27. package/dist/collection/components/ez-form/subcomponents/place-holder.js +1 -1
  28. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +21 -21
  29. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +7 -7
  30. package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +4 -4
  31. package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
  32. package/dist/collection/components/ez-text-input/ez-text-input.js +16 -16
  33. package/dist/collection/components/ez-time-input/ez-time-input.js +3 -2
  34. package/dist/collection/utils/AssetsUtils.js +19 -0
  35. package/dist/custom-elements/index.js +149 -122
  36. package/dist/esm/ez-action-chip.entry.js +1 -1
  37. package/dist/esm/ez-button_16.entry.js +127 -119
  38. package/dist/esm/ez-dialog.entry.js +1 -1
  39. package/dist/esm/ez-label-chip.entry.js +1 -1
  40. package/dist/esm/ez-list.entry.js +1 -1
  41. package/dist/esm/ez-modal.entry.js +1 -1
  42. package/dist/esm/ez-number-input.entry.js +1 -1
  43. package/dist/esm/ez-popover.entry.js +1 -1
  44. package/dist/esm/ez-popup.entry.js +1 -1
  45. package/dist/esm/ez-time-input.entry.js +21 -2
  46. package/dist/esm/ez-toast.entry.js +1 -1
  47. package/dist/esm/ezui.js +2 -2
  48. package/dist/esm/{index-33153059.js → index-fd3c8023.js} +2 -1
  49. package/dist/esm/loader.js +2 -2
  50. package/dist/ezui/ezui.esm.js +1 -1
  51. package/dist/ezui/{p-67410dfa.entry.js → p-11ae4ae7.entry.js} +1 -1
  52. package/dist/ezui/{p-50464bdf.entry.js → p-47fa3d6c.entry.js} +1 -1
  53. package/dist/ezui/{p-0d476efb.entry.js → p-66954a04.entry.js} +1 -1
  54. package/dist/ezui/{p-47406a6e.entry.js → p-823ff0a0.entry.js} +1 -1
  55. package/dist/ezui/{p-7f3bc6d9.entry.js → p-8ab6168f.entry.js} +1 -1
  56. package/dist/ezui/{p-15743b09.entry.js → p-9c1fb51c.entry.js} +1 -1
  57. package/dist/ezui/{p-061d21ba.entry.js → p-9d85125b.entry.js} +1 -1
  58. package/dist/ezui/{p-34d288d0.entry.js → p-a0b6eee2.entry.js} +1 -1
  59. package/dist/ezui/p-a7b546b2.entry.js +1 -0
  60. package/dist/ezui/p-c833c94f.entry.js +1 -0
  61. package/dist/ezui/{p-8818da66.entry.js → p-d443f020.entry.js} +1 -1
  62. package/dist/ezui/{p-4df6f855.js → p-e0ab3746.js} +1 -1
  63. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +3 -3
  64. package/dist/types/components/ez-form/ez-form.d.ts +9 -9
  65. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +1 -1
  66. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +1 -1
  67. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -1
  68. package/dist/types/components.d.ts +18 -18
  69. package/dist/types/utils/AssetsUtils.d.ts +1 -0
  70. package/package.json +1 -1
  71. package/dist/ezui/p-46d07e59.entry.js +0 -1
  72. package/dist/ezui/p-7be54779.entry.js +0 -1
@@ -1,9 +1,9 @@
1
- import { r as registerInstance, h, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-33153059.js';
1
+ import { r as registerInstance, h, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-fd3c8023.js';
2
2
  import { N as NumberUtils, M as MaskFormatter } from './RequestMetadata-c265c9d5.js';
3
3
  import { F as FloatingManager } from './FloatingManager-bb90ef41.js';
4
4
  import { C as CSSVarsUtils } from './CSSVarsUtils-e0128b01.js';
5
5
 
6
- const ezButtonCss = ":host{--button--min-width:100px;--button--height:42px;--button__icon--width:18px;--button__inline__icon--padding:12px;--button--padding-top:var(--space--medium, 12px);--button--padding-bottom:var(--space--medium, 12px);--button--padding-right:var(--space--large, 24px);--button--padding-left:var(--space--large, 24px);--button--color:var(--text--primary, #FFF);--button--font-size:var(--text--medium, 14px);--button--font-family:var(--font-pattern, Arial);--button--font-weight:var(--text-weight--large);--button--background-color:var(--background--medium, #c0c0c0);--button--border-radius:var(--border--radius-large, 12px);--button--border:none;--button--hover--background-color:var(--background--strong, var(--button--background-color));--button--disabled-color:var(--text--disable);--button--disabled--background-color:var(--color--disable-secondary);--button--focus--border:var(--button--border);--button--focus--box-shadow:none;--button--link-color:var(--title--primary, '#C0C0C0')}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--button--min-width);height:var(--button--height);font-family:var(--button--font-family);font-size:var(--button--font-size);font-weight:var(--button--font-weight);padding:var(--button--padding-top) var(--button--padding-right) var(--button--padding-bottom) var(--button--padding-left);border-radius:var(--button--border-radius);background-color:var(--button--background-color);color:var(--button--color);fill:var(--button--color);border:var(--button--border)}button:hover{background-color:var(--button--hover--background-color)}button:focus{outline:none;border:var(--button--focus--border);box-shadow:var(--button--focus--box-shadow)}button:disabled{background-color:var(--button--disabled--background-color);color:var(--button--disabled-color);fill:var(--button--disabled-color);border:none;cursor:no-drop}button.icon{width:42px;min-width:42px;height:42px;padding:0px}a{font-family:var(--button--font-family);font-size:var(--button--font-size);font-weight:var(--button--font-weight);color:var(--button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}";
6
+ const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:var(--space--medium, 12px);--ez-button--padding-bottom:var(--space--medium, 12px);--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--text--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover--background-color:var(--background--strong, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--ez-button--border);--ez-button--focus--box-shadow:none;--ez-button--link-color:var(--title--primary, '#C0C0C0')}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:hover{background-color:var(--ez-button--hover--background-color)}button:focus{outline:none;border:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;cursor:no-drop}button.icon{width:42px;min-width:42px;height:42px;padding:0px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight)}a{font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}";
7
7
 
8
8
  let EzButton = class {
9
9
  constructor(hostRef) {
@@ -23,10 +23,10 @@ let EzButton = class {
23
23
  if (this.mode == "link") {
24
24
  content.style.display = "inline";
25
25
  if (slot.name == "leftIcon") {
26
- content.style.paddingRight = "var(--button__inline__icon--padding)";
26
+ content.style.paddingRight = "var(--ez-button__inline__icon--padding)";
27
27
  }
28
28
  else if (slot.name == "rightIcon") {
29
- content.style.paddingLeft = "var(--button__inline__icon--padding)";
29
+ content.style.paddingLeft = "var(--ez-button__inline__icon--padding)";
30
30
  }
31
31
  }
32
32
  else {
@@ -40,6 +40,12 @@ let EzButton = class {
40
40
  evt.stopPropagation();
41
41
  } })));
42
42
  }
43
+ else if (this.mode == "label-icon") {
44
+ return (h("div", { class: "label-icon" }, h("button", { class: "icon", type: "button", disabled: !this.enabled }, h("ez-icon", { class: "icon", href: this.image, size: "large", onClick: evt => {
45
+ if (!this.enabled)
46
+ evt.stopPropagation();
47
+ } })), h("label", { title: this.label }, this.label)));
48
+ }
43
49
  else if (this.mode == "link") {
44
50
  return (h("a", null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
45
51
  }
@@ -274,7 +280,7 @@ let EzCheck = class {
274
280
  };
275
281
  EzCheck.style = ezCheckCss;
276
282
 
277
- const ezCollapsibleBoxCss = ":host{--collapsible-box--height:42px;--collapsible-box--font-size:var(--title--medium, 14px);--collapsible-box--font-family:var(--font-pattern, Arial);--collapsible-box--font-weight:var(--text-weight--large, 600);--collapsible-box--color:var(--title--primary);--collapsible-box__btn--image--xsmall:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"12px\" width=\"7.5px\"><path d=\"M 0,10.56 4.5967752,6.0000006 0,1.3800006 1.4516132,0 7.5,6.0000006 1.4516132,12 Z\"/></svg>');--collapsible-box__btn--image--small:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"14px\" width=\"8.68px\"><path d=\"M 0,12.32 5.3200012,7.0000007 0,1.6100007 1.6800004,0 8.68,7.0000007 1.6800004,14 Z\"/></svg>');--collapsible-box__btn--image--medium: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>');--collapsible-box__btn--image--large:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"18px\" width=\"11.25px\"><path d=\"M 0,15.84 6.8951628,9.0000009 0,2.0700009 2.1774198,0 11.25,9.0000009 2.1774198,18 Z\"/></svg>');--collapsible-box__btn--image--xlarge:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"20px\" width=\"12.5px\"><path d=\"M 0,17.6 7.661292,10.000001 0,2.300001 2.4193553,0 12.5,10.000001 2.4193553,20 Z\"/></svg>');--collapsible-box__btn--fill:var(--collapsible-box--color);--collapsible-box__btn--width:10px;--collapsible-box__btn--height:16px;display:flex;flex-wrap:wrap;width:100%}.collapsible-box__title{width:100%;align-self:center;display:flex;box-sizing:border-box}.collapsible-box__label{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;width:100%;font-family:var(--collapsible-box--font-family);font-size:var(--collapsible-box--font-size);font-weight:var(--collapsible-box--font-weight);color:var(--collapsible-box--color)}.collapsible-box__label--icon-right{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;font-family:var(--collapsible-box--font-family);font-size:var(--collapsible-box--font-size);font-weight:var(--collapsible-box--font-weight);color:var(--collapsible-box--color)}.collapsible-box__btn{outline:none;border:none;background-color:unset;cursor:pointer;padding:1px 6px}.collapsible-box__btn::after{content:'';display:flex;background-color:var(--collapsible-box__btn--fill);width:var(--collapsible-box__btn--width);height:var(--collapsible-box__btn--height);transition:transform var(--transition);transform:rotate(90deg)}.collapsible-box__btn--xsmall::after{width:7.5px;height:12px;-webkit-mask-image:var(--collapsible-box__btn--image--xsmall);mask-image:var(--collapsible-box__btn--image--xsmall)}.collapsible-box__btn--small::after{width:8.68px;height:14px;-webkit-mask-image:var(--collapsible-box__btn--image--small);mask-image:var(--collapsible-box__btn--image--small)}.collapsible-box__btn--medium::after{width:10px;height:16px;-webkit-mask-image:var(--collapsible-box__btn--image--medium);mask-image:var(--collapsible-box__btn--image--medium)}.collapsible-box__btn--large::after{width:11.25px;height:18px;-webkit-mask-image:var(--collapsible-box__btn--image--large);mask-image:var(--collapsible-box__btn--image--large)}.collapsible-box__btn--xlarge::after{width:12.5px;height:20px;-webkit-mask-image:var(--collapsible-box__btn--image--xlarge);mask-image:var(--collapsible-box__btn--image--xlarge)}.collapsible-box__btn--collapsed::after{transform:rotate(0deg)}.font--xsmall{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--xlarge{font-size:20px}";
283
+ const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--height:42px;--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box__btn--image--xsmall:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"12px\" width=\"7.5px\"><path d=\"M 0,10.56 4.5967752,6.0000006 0,1.3800006 1.4516132,0 7.5,6.0000006 1.4516132,12 Z\"/></svg>');--ez-collapsible-box__btn--image--small:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"14px\" width=\"8.68px\"><path d=\"M 0,12.32 5.3200012,7.0000007 0,1.6100007 1.6800004,0 8.68,7.0000007 1.6800004,14 Z\"/></svg>');--ez-collapsible-box__btn--image--medium: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-collapsible-box__btn--image--large:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"18px\" width=\"11.25px\"><path d=\"M 0,15.84 6.8951628,9.0000009 0,2.0700009 2.1774198,0 11.25,9.0000009 2.1774198,18 Z\"/></svg>');--ez-collapsible-box__btn--image--xlarge:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"20px\" width=\"12.5px\"><path d=\"M 0,17.6 7.661292,10.000001 0,2.300001 2.4193553,0 12.5,10.000001 2.4193553,20 Z\"/></svg>');--ez-collapsible-box__btn--fill:var(--ez-collapsible-box--color);--ez-collapsible-box__btn--width:10px;--ez-collapsible-box__btn--height:16px;display:flex;flex-wrap:wrap;width:100%}.collapsible-box__title{width:100%;align-self:center;display:flex;box-sizing:border-box}.collapsible-box__label{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;width:100%;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight);color:var(--ez-collapsible-box--color)}.collapsible-box__label--icon-right{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight);color:var(--ez-collapsible-box--color)}.collapsible-box__btn{outline:none;border:none;background-color:unset;cursor:pointer;padding:1px 6px}.collapsible-box__btn::after{content:'';display:flex;background-color:var(--ez-collapsible-box__btn--fill);width:var(--ez-collapsible-box__btn--width);height:var(--ez-collapsible-box__btn--height);transition:transform var(--transition);transform:rotate(90deg)}.collapsible-box__btn--xsmall::after{width:7.5px;height:12px;-webkit-mask-image:var(--ez-collapsible-box__btn--image--xsmall);mask-image:var(--ez-collapsible-box__btn--image--xsmall)}.collapsible-box__btn--small::after{width:8.68px;height:14px;-webkit-mask-image:var(--ez-collapsible-box__btn--image--small);mask-image:var(--ez-collapsible-box__btn--image--small)}.collapsible-box__btn--medium::after{width:10px;height:16px;-webkit-mask-image:var(--ez-collapsible-box__btn--image--medium);mask-image:var(--ez-collapsible-box__btn--image--medium)}.collapsible-box__btn--large::after{width:11.25px;height:18px;-webkit-mask-image:var(--ez-collapsible-box__btn--image--large);mask-image:var(--ez-collapsible-box__btn--image--large)}.collapsible-box__btn--xlarge::after{width:12.5px;height:20px;-webkit-mask-image:var(--ez-collapsible-box__btn--image--xlarge);mask-image:var(--ez-collapsible-box__btn--image--xlarge)}.collapsible-box__btn--collapsed::after{transform:rotate(0deg)}.font--xsmall{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--xlarge{font-size:20px}";
278
284
 
279
285
  let EzCollapsibleBox = class {
280
286
  constructor(hostRef) {
@@ -287,11 +293,11 @@ let EzCollapsibleBox = class {
287
293
  /**
288
294
  * Define o tamanho do texto e do ícone do componente.
289
295
  */
290
- this.headersize = "small";
296
+ this.headerSize = "small";
291
297
  /**
292
298
  * Define o local onde o ícone será renderizado.
293
299
  */
294
- this.iconplacement = "left";
300
+ this.iconPlacement = "left";
295
301
  }
296
302
  observeValue() {
297
303
  this.ezChange.emit();
@@ -303,10 +309,10 @@ let EzCollapsibleBox = class {
303
309
  this.value = !this.value;
304
310
  }
305
311
  render() {
306
- return (h(Host, null, this.iconplacement == 'right' ?
307
- h("div", { class: "collapsible-box__title" }, h("label", { class: (this.iconplacement == 'right' ? "collapsible-box__label--icon-right " : "collapsible-box__label ") + (this.headersize ? "font--" + this.headersize : ""), onClick: () => this.showHide(), title: this.label }, this.label), h("button", { class: this.value ? "collapsible-box__btn collapsible-box__btn--collapsed " + "collapsible-box__btn--" + this.headersize : "collapsible-box__btn " + "collapsible-box__btn--" + this.headersize, onClick: () => this.showHide() }))
312
+ return (h(Host, null, this.iconPlacement == "right" ?
313
+ h("div", { class: "collapsible-box__title" }, h("label", { class: (this.iconPlacement == "right" ? "collapsible-box__label--icon-right " : "collapsible-box__label ") + (this.headerSize ? "font--" + this.headerSize : ""), onClick: () => this.showHide(), title: this.label }, this.label), h("button", { class: this.value ? "collapsible-box__btn collapsible-box__btn--collapsed " + "collapsible-box__btn--" + this.headerSize : "collapsible-box__btn " + "collapsible-box__btn--" + this.headerSize, onClick: () => this.showHide() }))
308
314
  :
309
- h("div", { class: "collapsible-box__title" }, h("button", { class: this.value ? "collapsible-box__btn collapsible-box__btn--collapsed " + "collapsible-box__btn--" + this.headersize : "collapsible-box__btn " + "collapsible-box__btn--" + this.headersize, onClick: () => this.showHide() }), h("label", { class: (this.iconplacement == 'right' ? "collapsible-box__label--icon-right " : "collapsible-box__label ") + (this.headersize ? "font--" + this.headersize : ""), onClick: () => this.showHide(), title: this.label }, this.label)), !this.value ? h("slot", null) : null));
315
+ h("div", { class: "collapsible-box__title" }, h("button", { class: this.value ? "collapsible-box__btn collapsible-box__btn--collapsed " + "collapsible-box__btn--" + this.headerSize : "collapsible-box__btn " + "collapsible-box__btn--" + this.headerSize, onClick: () => this.showHide() }), h("label", { class: (this.iconPlacement == "right" ? "collapsible-box__label--icon-right " : "collapsible-box__label ") + (this.headerSize ? "font--" + this.headerSize : ""), onClick: () => this.showHide(), title: this.label }, this.label)), !this.value ? h("slot", null) : null));
310
316
  }
311
317
  static get watchers() { return {
312
318
  "value": ["observeValue"]
@@ -314,7 +320,7 @@ let EzCollapsibleBox = class {
314
320
  };
315
321
  EzCollapsibleBox.style = ezCollapsibleBoxCss;
316
322
 
317
- const ezComboBoxCss = ":host{--combo-box--height:42px;--combo-box--width:100%;--combo-box__icon--width:48px;--combo-box--border-radius:var(--border--radius-medium, 12px);--combo-box--border-radius-small:var(--border--radius-small, 6px);--combo-box--font-size:var(--text--medium, 14px);--combo-box--font-family:var(--font-pattern, Arial);--combo-box--font-weight--large:var(--text-weight--large, 500);--combo-box--font-weight--medium:var(--text-weight--medium, 400);--combo-box--background-color--xlight:var(--background--xlight, #fff);--combo-box__input--background-color:var(--background--medium, #e0e0e0);--combo-box__input--border:var(--border--medium, 2px solid);--combo-box__input--border-color:var(--combo-box__input--background-color);--combo-box__input--focus--border-color:var(--color--primary, #008561);--combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--combo-box__input--error--border-color:#CC2936;--combo-box__label--color:var(--title--primary, #919191);--combo-box__list-text--primary:var(--text--primary, #626e82);--combo-box__list-height:calc(var(--combo-box--font-size) + var(--combo-box--space--medium));--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>');--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>');--combo-box--space--medium:var(--space--medium, 12px);--combo-box--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--combo-box--width)}ez-text-input{--it__input--background-color:var(--combo-box__input--background-color, #FFFFFF);--it__input--border-color:var(--combo-box__input--border-color, #DCE0E8)}.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(--combo-box--background-color--xlight);padding:var(--combo-box--space--small);border-radius:var(--combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);scroll-behavior:smooth;max-height:calc(4*var(--combo-box__list-height) + 2*var(--combo-box--space--small));overflow:auto}.item{text-align:left;display:flex;justify-content:space-between;align-items:center;border-radius:var(--combo-box--border-radius-small);padding:0 var(--combo-box--space--small);list-style-type:none;min-height:var(--combo-box__list-height)}.item--label{text-align:left;flex-basis:85%;flex-grow:1;color:var(--combo-box__list-text--primary);font-weight:var(--combo-box--font-weight--large);font-family:var(--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(--combo-box__list-text--primary);font-weight:var(--combo-box--font-weight--large);font-family:var(--combo-box--font-family);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}li:hover{background-color:var(--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(--text--primary, #008561);width:16px;height:16px;-webkit-mask-image:var(--combo-box--drop-down__image);mask-image:var(--combo-box--drop-down__image)}.btn-open-options:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-options:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}.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(--text--primary, #008561);width:22px;height:22px;-webkit-mask-image:var(--combo-box--search__image);mask-image:var(--combo-box--search__image)}.btn-open-search:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-search:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}";
323
+ const ezComboBoxCss = ":host{--combo-box--height:42px;--combo-box--width:100%;--combo-box__icon--width:48px;--combo-box--border-radius:var(--border--radius-medium, 12px);--combo-box--border-radius-small:var(--border--radius-small, 6px);--combo-box--font-size:var(--text--medium, 14px);--combo-box--font-family:var(--font-pattern, Arial);--combo-box--font-weight--large:var(--text-weight--large, 500);--combo-box--font-weight--medium:var(--text-weight--medium, 400);--combo-box--background-color--xlight:var(--background--xlight, #fff);--combo-box__input--background-color:var(--background--medium, #e0e0e0);--combo-box__input--border:var(--border--medium, 2px solid);--combo-box__input--border-color:var(--combo-box__input--background-color);--combo-box__input--focus--border-color:var(--color--primary, #008561);--combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--combo-box__input--error--border-color:#CC2936;--combo-box__label--color:var(--title--primary, #919191);--combo-box__list-text--primary:var(--text--primary, #626e82);--combo-box__list-height:calc(var(--combo-box--font-size) + var(--combo-box--space--medium));--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>');--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>');--combo-box--space--medium:var(--space--medium, 12px);--combo-box--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--combo-box--width)}ez-text-input{--ez-text-input__input--background-color:var(--combo-box__input--background-color, #FFFFFF);--ez-text-input__input--border-color:var(--combo-box__input--border-color, #DCE0E8)}.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(--combo-box--background-color--xlight);padding:var(--combo-box--space--small);border-radius:var(--combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);scroll-behavior:smooth;max-height:calc(4*var(--combo-box__list-height) + 2*var(--combo-box--space--small));overflow:auto}.item{text-align:left;display:flex;justify-content:space-between;align-items:center;border-radius:var(--combo-box--border-radius-small);padding:0 var(--combo-box--space--small);list-style-type:none;min-height:var(--combo-box__list-height)}.item--label{text-align:left;flex-basis:85%;flex-grow:1;color:var(--combo-box__list-text--primary);font-weight:var(--combo-box--font-weight--large);font-family:var(--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(--combo-box__list-text--primary);font-weight:var(--combo-box--font-weight--large);font-family:var(--combo-box--font-family);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}li:hover{background-color:var(--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(--text--primary, #008561);width:16px;height:16px;-webkit-mask-image:var(--combo-box--drop-down__image);mask-image:var(--combo-box--drop-down__image)}.btn-open-options:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-options:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}.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(--text--primary, #008561);width:22px;height:22px;-webkit-mask-image:var(--combo-box--search__image);mask-image:var(--combo-box--search__image)}.btn-open-search:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-search:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}";
318
324
 
319
325
  let EzComboBox = class {
320
326
  constructor(hostRef) {
@@ -554,7 +560,7 @@ let EzComboBox = class {
554
560
  };
555
561
  EzComboBox.style = ezComboBoxCss;
556
562
 
557
- const ezDateInputCss = ":host{display:block;width:100%;--di__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--di__calendar-image);mask-image:var(--di__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}";
563
+ const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.text-input{--ez-text-input__input--background-color:inherit;--ez-text-input__input--border-color:inherit}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
558
564
 
559
565
  let EzDateInput = class {
560
566
  constructor(hostRef) {
@@ -613,14 +619,14 @@ let EzDateInput = class {
613
619
  }
614
620
  }
615
621
  getTextValue(d) {
616
- return d ? new Intl.DateTimeFormat('pt-BR').format(d) : null;
622
+ return d ? new Intl.DateTimeFormat("pt-BR").format(d) : null;
617
623
  }
618
624
  componentDidLoad() {
619
625
  CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
620
626
  }
621
627
  render() {
622
628
  return (h(Host, null, h("ez-text-input", { ref: elem => this._textInput = elem, onBlur: () => this.parseDate(), onKeyDown: event => {
623
- if (event.key === 'H' || event.key === 'h')
629
+ if (event.key === "H" || event.key === "h")
624
630
  this.changeValue(new Date());
625
631
  }, label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => this.showCalendar(), slot: "leftIcon" })), h("ez-calendar", { onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, floating: true, ref: elem => this._calendar = elem })));
626
632
  }
@@ -1211,19 +1217,19 @@ thunk.withExtraArgument = createThunkMiddleware;
1211
1217
 
1212
1218
  function changeFieldValue$1(dataUnit, recordId, fieldName, value) {
1213
1219
  return {
1214
- type: 'FORM/CHANGEFIELD',
1220
+ type: "FORM/CHANGEFIELD",
1215
1221
  payload: { dataUnit, recordId, fieldName, value }
1216
1222
  };
1217
1223
  }
1218
1224
  function changeTab$1(formId, index) {
1219
1225
  return {
1220
- type: 'FORM/CHANGETAB',
1226
+ type: "FORM/CHANGETAB",
1221
1227
  payload: { formId, index }
1222
1228
  };
1223
1229
  }
1224
1230
  function clearEdition$1(dataUnit, recordsLimit) {
1225
1231
  return {
1226
- type: 'FORM/CLEAREDITION',
1232
+ type: "FORM/CLEAREDITION",
1227
1233
  payload: {
1228
1234
  dataUnit,
1229
1235
  recordsLimit
@@ -1232,13 +1238,13 @@ function clearEdition$1(dataUnit, recordsLimit) {
1232
1238
  }
1233
1239
  function collapseExpandGroup(collapseId, collapsed) {
1234
1240
  return {
1235
- type: 'FORM/COLLAPSEGROUP',
1241
+ type: "FORM/COLLAPSEGROUP",
1236
1242
  payload: { collapseId, collapsed }
1237
1243
  };
1238
1244
  }
1239
1245
  function previousRecord(dataUnit) {
1240
1246
  return {
1241
- type: 'FORM/NAVIGATE',
1247
+ type: "FORM/NAVIGATE",
1242
1248
  payload: {
1243
1249
  dataUnit,
1244
1250
  limit: 0,
@@ -1248,7 +1254,7 @@ function previousRecord(dataUnit) {
1248
1254
  }
1249
1255
  function nextRecord(dataUnit, limit) {
1250
1256
  return {
1251
- type: 'FORM/NAVIGATE',
1257
+ type: "FORM/NAVIGATE",
1252
1258
  payload: {
1253
1259
  dataUnit,
1254
1260
  limit,
@@ -1258,7 +1264,7 @@ function nextRecord(dataUnit, limit) {
1258
1264
  }
1259
1265
  function insertRecord$1(dataUnit, insertionIndex) {
1260
1266
  return {
1261
- type: 'FORM/INSERT',
1267
+ type: "FORM/INSERT",
1262
1268
  payload: {
1263
1269
  dataUnit,
1264
1270
  insertionIndex
@@ -1267,12 +1273,12 @@ function insertRecord$1(dataUnit, insertionIndex) {
1267
1273
  }
1268
1274
  function formLoad() {
1269
1275
  return {
1270
- type: 'FORM/LOAD'
1276
+ type: "FORM/LOAD"
1271
1277
  };
1272
1278
  }
1273
1279
  function dataLoading$1(dataUnit) {
1274
1280
  return {
1275
- type: 'FORM/DATALOADING',
1281
+ type: "FORM/DATALOADING",
1276
1282
  payload: {
1277
1283
  dataUnit
1278
1284
  }
@@ -1280,7 +1286,7 @@ function dataLoading$1(dataUnit) {
1280
1286
  }
1281
1287
  function savingChanges$1(dataUnit) {
1282
1288
  return {
1283
- type: 'FORM/SAVINGCHANGES',
1289
+ type: "FORM/SAVINGCHANGES",
1284
1290
  payload: {
1285
1291
  dataUnit
1286
1292
  }
@@ -1288,7 +1294,7 @@ function savingChanges$1(dataUnit) {
1288
1294
  }
1289
1295
  function dataLoaded$1(dataUnit) {
1290
1296
  return {
1291
- type: 'FORM/DATALOADED',
1297
+ type: "FORM/DATALOADED",
1292
1298
  payload: {
1293
1299
  dataUnit
1294
1300
  }
@@ -1296,7 +1302,7 @@ function dataLoaded$1(dataUnit) {
1296
1302
  }
1297
1303
  function changesSaved$1(dataUnit) {
1298
1304
  return {
1299
- type: 'FORM/CHANGESSAVED',
1305
+ type: "FORM/CHANGESSAVED",
1300
1306
  payload: {
1301
1307
  dataUnit
1302
1308
  }
@@ -1304,7 +1310,7 @@ function changesSaved$1(dataUnit) {
1304
1310
  }
1305
1311
  function removingRecord$1(dataUnit) {
1306
1312
  return {
1307
- type: 'FORM/REMOVINGRECORD',
1313
+ type: "FORM/REMOVINGRECORD",
1308
1314
  payload: {
1309
1315
  dataUnit
1310
1316
  }
@@ -1312,7 +1318,7 @@ function removingRecord$1(dataUnit) {
1312
1318
  }
1313
1319
  function recordRemoved$1(dataUnit) {
1314
1320
  return {
1315
- type: 'FORM/RECORDREMOVED',
1321
+ type: "FORM/RECORDREMOVED",
1316
1322
  payload: {
1317
1323
  dataUnit
1318
1324
  }
@@ -1320,7 +1326,7 @@ function recordRemoved$1(dataUnit) {
1320
1326
  }
1321
1327
  function invalidField$1(tabController, tabIndex, dataUnit, recordIndex, recordId, fieldName, errorMessage) {
1322
1328
  return {
1323
- type: 'FORM/INVALIDFIELD',
1329
+ type: "FORM/INVALIDFIELD",
1324
1330
  payload: {
1325
1331
  tabController,
1326
1332
  tabIndex,
@@ -1334,7 +1340,7 @@ function invalidField$1(tabController, tabIndex, dataUnit, recordIndex, recordId
1334
1340
  }
1335
1341
  function showHideNavigationButtons(buttonName, status) {
1336
1342
  return {
1337
- type: 'FORM/SHOWHIDENAVBTN',
1343
+ type: "FORM/SHOWHIDENAVBTN",
1338
1344
  payload: {
1339
1345
  buttonName,
1340
1346
  status
@@ -1995,19 +2001,19 @@ const inicialNonHistState = {
1995
2001
  };
1996
2002
  function formReducer(state = inicialHistState, action) {
1997
2003
  switch (action.type) {
1998
- case 'FORM/COLLAPSEGROUP':
2004
+ case "FORM/COLLAPSEGROUP":
1999
2005
  return collapseGroup(state, action.payload);
2000
- case 'FORM/CHANGETAB':
2006
+ case "FORM/CHANGETAB":
2001
2007
  return changeTab(state, action.payload.formId, action.payload.index);
2002
- case 'FORM/NAVIGATE':
2008
+ case "FORM/NAVIGATE":
2003
2009
  return navigate(state, action.payload);
2004
- case 'FORM/INSERT':
2010
+ case "FORM/INSERT":
2005
2011
  return insertRecord(state, action.payload);
2006
- case 'FORM/CHANGEFIELD':
2012
+ case "FORM/CHANGEFIELD":
2007
2013
  return changeFieldValue(state, action.payload);
2008
- case 'FORM/CLEAREDITION':
2014
+ case "FORM/CLEAREDITION":
2009
2015
  return clearEdition(state, action.payload);
2010
- case 'FORM/INVALIDFIELD':
2016
+ case "FORM/INVALIDFIELD":
2011
2017
  return navigateToInvalid(state, action.payload);
2012
2018
  default:
2013
2019
  return state;
@@ -2015,25 +2021,25 @@ function formReducer(state = inicialHistState, action) {
2015
2021
  }
2016
2022
  function formNonHistoricReducer(state = inicialNonHistState, action) {
2017
2023
  switch (action.type) {
2018
- case 'FORM/DATALOADING':
2024
+ case "FORM/DATALOADING":
2019
2025
  return dataLoading(state, action.payload);
2020
- case 'FORM/DATALOADED':
2026
+ case "FORM/DATALOADED":
2021
2027
  return dataLoaded(state, action.payload);
2022
- case 'FORM/SAVINGCHANGES':
2028
+ case "FORM/SAVINGCHANGES":
2023
2029
  return savingChanges(state, action.payload);
2024
- case 'FORM/CHANGESSAVED':
2030
+ case "FORM/CHANGESSAVED":
2025
2031
  return changesSaved(state, action.payload);
2026
- case 'FORM/REMOVINGRECORD':
2032
+ case "FORM/REMOVINGRECORD":
2027
2033
  return removingRecord(state, action.payload);
2028
- case 'FORM/RECORDREMOVED':
2034
+ case "FORM/RECORDREMOVED":
2029
2035
  return recordRemoved(state, action.payload);
2030
- case 'FORM/INVALIDFIELD':
2036
+ case "FORM/INVALIDFIELD":
2031
2037
  return invalidField(state, action.payload);
2032
- case 'FORM/CLEAREDITION':
2038
+ case "FORM/CLEAREDITION":
2033
2039
  return clearAllInvalidFields(state, action.payload);
2034
- case 'FORM/CHANGEFIELD':
2040
+ case "FORM/CHANGEFIELD":
2035
2041
  return clearInvalidField(state, action.payload);
2036
- case 'FORM/SHOWHIDENAVBTN':
2042
+ case "FORM/SHOWHIDENAVBTN":
2037
2043
  return showHideNavBtn(state, action.payload);
2038
2044
  default:
2039
2045
  return state;
@@ -2223,13 +2229,13 @@ const NavigationBar = ({ dataUnit: du, buttonProps, enabled }) => {
2223
2229
  || buttonProps.cancelVisible
2224
2230
  || buttonProps.reloadVisible) {
2225
2231
  return h("div", { class: "col col--sd-12 align--right" },
2226
- buttonProps.previousVisible ? h("ez-button", { key: du.name + '_previous', title: "Registro anterior", mode: "icon", enabled: enabled && du.hasPrevious(), onClick: () => du.previous(), image: "/themes/default/images/icons/actions-sprite.svg#previous-circle-inverted", class: "button--secondary margin-right--medium" }) : null,
2227
- buttonProps.nextVisible ? h("ez-button", { key: du.name + '_next', title: "Pr\u00F3ximo registro", mode: "icon", enabled: enabled && du.hasNext(), onClick: () => du.next(), image: "/themes/default/images/icons/actions-sprite.svg#next-circle-inverted", class: "button--secondary margin-right--medium" }) : null,
2228
- buttonProps.removeVisible ? h("ez-button", { key: du.name + '_remove', label: "Remover", enabled: enabled && du.hasCurrentRecord(), onClick: () => removeHandler(du), image: "/themes/default/images/icons/actions-sprite.svg#minus-circle-inverted", class: "button--secondary margin-right--medium" }) : null,
2229
- buttonProps.addVisible ? h("ez-button", { key: du.name + '_add', label: "Adicionar", enabled: enabled, onClick: () => du.insert(), class: "button--secondary margin-right--medium" }) : null,
2230
- buttonProps.reloadVisible ? h("ez-button", { key: du.name + '_reload', title: "Recarregar", enabled: enabled, mode: "icon", onClick: () => du.load(), image: "/themes/default/images/icons/actions-sprite.svg#rotate", class: "button--secondary margin-right--medium" }) : null,
2231
- buttonProps.cancelVisible ? h("ez-button", { key: du.name + '_cancel', label: "Cancelar", enabled: enabled && du.hasChanges(), onClick: () => du.cancel(), class: "button--secondary margin-right--medium" }) : null,
2232
- buttonProps.saveVisible ? h("ez-button", { key: du.name + '_save', label: "Salvar", enabled: enabled && du.hasChanges(), onClick: () => saveHandler(du), class: "button--primary margin-right--medium" }) : null);
2232
+ buttonProps.previousVisible ? h("ez-button", { key: du.name + "_previous", title: "Registro anterior", mode: "icon", enabled: enabled && du.hasPrevious(), onClick: () => du.previous(), image: "/themes/default/images/icons/actions-sprite.svg#previous-circle-inverted", class: "button--secondary margin-right--medium" }) : null,
2233
+ buttonProps.nextVisible ? h("ez-button", { key: du.name + "_next", title: "Pr\u00F3ximo registro", mode: "icon", enabled: enabled && du.hasNext(), onClick: () => du.next(), image: "/themes/default/images/icons/actions-sprite.svg#next-circle-inverted", class: "button--secondary margin-right--medium" }) : null,
2234
+ buttonProps.removeVisible ? h("ez-button", { key: du.name + "_remove", label: "Remover", enabled: enabled && du.hasCurrentRecord(), onClick: () => removeHandler(du), image: "/themes/default/images/icons/actions-sprite.svg#minus-circle-inverted", class: "button--secondary margin-right--medium" }) : null,
2235
+ buttonProps.addVisible ? h("ez-button", { key: du.name + "_add", label: "Adicionar", enabled: enabled, onClick: () => du.insert(), class: "button--secondary margin-right--medium" }) : null,
2236
+ buttonProps.reloadVisible ? h("ez-button", { key: du.name + "_reload", title: "Recarregar", enabled: enabled, mode: "icon", onClick: () => du.load(), image: "/themes/default/images/icons/actions-sprite.svg#rotate", class: "button--secondary margin-right--medium" }) : null,
2237
+ buttonProps.cancelVisible ? h("ez-button", { key: du.name + "_cancel", label: "Cancelar", enabled: enabled && du.hasChanges(), onClick: () => du.cancel(), class: "button--secondary margin-right--medium" }) : null,
2238
+ buttonProps.saveVisible ? h("ez-button", { key: du.name + "_save", label: "Salvar", enabled: enabled && du.hasChanges(), onClick: () => saveHandler(du), class: "button--primary margin-right--medium" }) : null);
2233
2239
  }
2234
2240
  else {
2235
2241
  return null;
@@ -2275,7 +2281,7 @@ const selectErrorMessage = (state, dataUnit, recordId, fieldName) => {
2275
2281
  const selectVisibleButtons = state => state.nonhist.visibleButtons;
2276
2282
 
2277
2283
  class DataUnit {
2278
- constructor(name, unitLabel, cardinality = '1', parentDU = null) {
2284
+ constructor(name, unitLabel, cardinality = "1", parentDU = null) {
2279
2285
  this.name = name;
2280
2286
  this.unitLabel = unitLabel;
2281
2287
  this.cardinality = cardinality;
@@ -2358,13 +2364,13 @@ class DataUnit {
2358
2364
  }, 100);
2359
2365
  }
2360
2366
  cancel() {
2361
- this.records = this.records.filter(r => !r.record__id.startsWith('NEW_'));
2367
+ this.records = this.records.filter(r => !r.record__id.startsWith("NEW_"));
2362
2368
  this._store.dispatch(clearEdition$1(this.name, this.records.length - 1));
2363
2369
  }
2364
2370
  insert() {
2365
2371
  const insertionIndex = this.records.length;
2366
2372
  const newRecordIndex = selectNewRecordIndex(this._store.getState(), this.name);
2367
- const newRecord = { record__id: 'NEW_' + (newRecordIndex + 1) };
2373
+ const newRecord = { record__id: "NEW_" + (newRecordIndex + 1) };
2368
2374
  this.bindToParent(newRecord);
2369
2375
  this.records.push(newRecord);
2370
2376
  this._store.dispatch(insertRecord$1(this.name, insertionIndex));
@@ -2477,7 +2483,7 @@ class DataUnit {
2477
2483
  }
2478
2484
  else {
2479
2485
  if (result.__data__unit === this.name) {
2480
- if (this.cardinality === '1') {
2486
+ if (this.cardinality === "1") {
2481
2487
  this.records = [this.buildRecordFromSaveResult(this.records[0], result)];
2482
2488
  }
2483
2489
  }
@@ -2488,7 +2494,7 @@ class DataUnit {
2488
2494
  this._store.dispatch(changesSaved$1(this.name));
2489
2495
  }
2490
2496
  buildRecordFromSaveResult(baseRecord, saveResult) {
2491
- const newRecord = baseRecord ? Object.assign({}, baseRecord) : { record__id: '' };
2497
+ const newRecord = baseRecord ? Object.assign({}, baseRecord) : { record__id: "" };
2492
2498
  Object.keys(saveResult).forEach(attrib => {
2493
2499
  if (!attrib.startsWith("__")) {
2494
2500
  newRecord[attrib] = saveResult[attrib];
@@ -2582,19 +2588,19 @@ const Field = ({ dataUnit, field, forceScroll, enabled }) => {
2582
2588
  dataUnit.changeValue(name, newValue);
2583
2589
  };
2584
2590
  switch (userInterface) {
2585
- case 'LONGTEXT':
2591
+ case "LONGTEXT":
2586
2592
  return h("div", { class: "col col--sd-12 padding--small" }, loadingData ? h("place-holder", null) :
2587
- h("ez-text-area", { value: value || '', label: formattedLabel, onEzChange: evt => changeFieldHandler(evt.target['value']), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key, enabled: isEnabled }));
2588
- case 'CHECKBOX':
2589
- case 'SWITCH':
2593
+ h("ez-text-area", { value: value || "", label: formattedLabel, onEzChange: evt => changeFieldHandler(evt.target["value"]), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key, enabled: isEnabled }));
2594
+ case "CHECKBOX":
2595
+ case "SWITCH":
2590
2596
  return h("div", { class: "col col--sd-12 col--tb-3 padding--small align--middle padding-bottom--large" }, loadingData ? h("place-holder", null) :
2591
- h("ez-check", { value: value, label: label, enabled: isEnabled, mode: userInterface === "CHECKBOX" ? "regular" : "switch", onEzChange: (event) => changeFieldHandler(event.target['value']), ref: elem => scrollToView(forceScroll, elem), key: key }));
2592
- case 'OPTIONSELECTOR':
2593
- const optsObj = properties ? JSON.parse(getProp(properties, 'options')) : {};
2597
+ h("ez-check", { value: value, label: label, enabled: isEnabled, mode: userInterface === "CHECKBOX" ? "regular" : "switch", onEzChange: (event) => changeFieldHandler(event.target["value"]), ref: elem => scrollToView(forceScroll, elem), key: key }));
2598
+ case "OPTIONSELECTOR":
2599
+ const optsObj = properties ? JSON.parse(getProp(properties, "options")) : {};
2594
2600
  const normalized = Object.keys(optsObj).map(key => { return { value: key, label: optsObj[key] }; });
2595
2601
  return h("div", { class: "col col--sd-12 col--tb-3 padding--small" }, loadingData ? h("place-holder", null) :
2596
- h("ez-combo-box", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target['value']), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key, options: normalized }));
2597
- case 'SEARCH':
2602
+ h("ez-combo-box", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target["value"]), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key, options: normalized }));
2603
+ case "SEARCH":
2598
2604
  const context = {
2599
2605
  __MAIN_FORM: form,
2600
2606
  __DATA_UNIT: dataUnit.name,
@@ -2618,38 +2624,38 @@ const Field = ({ dataUnit, field, forceScroll, enabled }) => {
2618
2624
  }
2619
2625
  });
2620
2626
  if (criteriaList.length > 0) {
2621
- context['CRITERIA'] = criteriaList;
2627
+ context["CRITERIA"] = criteriaList;
2622
2628
  }
2623
2629
  return h("div", { class: "col col--sd-12 col--tb-3 padding--small" }, loadingData ? h("place-holder", null) :
2624
- h("ez-search", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target['value']), errorMessage: errorMessage, optionLoader: (argument) => {
2630
+ h("ez-search", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target["value"]), errorMessage: errorMessage, optionLoader: (argument) => {
2625
2631
  if (form) {
2626
2632
  return form.loadSearch(argument, context);
2627
2633
  }
2628
2634
  }, ref: elem => scrollToView(forceScroll, elem), key: key }));
2629
- case 'FILE':
2630
- const target = getProp(properties, 'URL');
2631
- const strHeaders = getProp(properties, 'HEADERS');
2635
+ case "FILE":
2636
+ const target = getProp(properties, "URL");
2637
+ const strHeaders = getProp(properties, "HEADERS");
2632
2638
  const headers = strHeaders ? JSON.parse(strHeaders) : {};
2633
2639
  const maxfiles = Number(getProp(properties, "maxfiles") || 0);
2634
2640
  return (h("div", { class: "col col--sd-12 padding--small" }, loadingData ? h("place-holder", null) :
2635
2641
  h("ez-upload", { value: value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.detail), urlUpload: target, requestHeaders: headers, maxFiles: maxfiles })));
2636
- case 'DATE':
2642
+ case "DATE":
2637
2643
  return h("div", { class: "col col--sd-12 col--tb-3 padding--small" }, loadingData ? h("place-holder", null) :
2638
- h("ez-date-input", { value: !value ? null : DateUtils.clearTime(value), label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target['value']), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key }));
2639
- case 'DECIMALNUMBER':
2640
- case 'INTEGERNUMBER':
2644
+ h("ez-date-input", { value: !value ? null : DateUtils.clearTime(value), label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target["value"]), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key }));
2645
+ case "DECIMALNUMBER":
2646
+ case "INTEGERNUMBER":
2641
2647
  let precision = 0;
2642
2648
  let prettyPrecision = 0;
2643
- if (userInterface === 'DECIMALNUMBER') {
2649
+ if (userInterface === "DECIMALNUMBER") {
2644
2650
  precision = Number(getProp(properties, "precision") || 2);
2645
2651
  prettyPrecision = Number(getProp(properties, "prettyprecision") || precision);
2646
2652
  }
2647
2653
  return h("div", { class: "col col--sd-12 col--tb-3 padding--small" }, loadingData ? h("place-holder", null) :
2648
- h("ez-numeric-input", { value: !value ? null : value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target['value']), errorMessage: errorMessage, precision: precision, prettyprecision: prettyPrecision, ref: elem => scrollToView(forceScroll, elem), key: key }));
2654
+ h("ez-numeric-input", { value: !value ? null : value, label: formattedLabel, enabled: isEnabled, onEzChange: (event) => changeFieldHandler(event.target["value"]), errorMessage: errorMessage, precision: precision, prettyprecision: prettyPrecision, ref: elem => scrollToView(forceScroll, elem), key: key }));
2649
2655
  //IMAGE, DATETIME, ELAPSEDTIME, PASSWORD, MASKEDTEXT, HTML
2650
2656
  default:
2651
2657
  return h("div", { class: "col col--sd-12 col--tb-3 padding--small" }, loadingData ? h("place-holder", null) :
2652
- h("ez-text-input", { value: value, label: formattedLabel, enabled: isEnabled, loading: loadingData, onInput: (event) => changeFieldHandler(event.target['value']), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key }));
2658
+ h("ez-text-input", { value: value, label: formattedLabel, enabled: isEnabled, loading: loadingData, onInput: (event) => changeFieldHandler(event.target["value"]), errorMessage: errorMessage, ref: elem => scrollToView(forceScroll, elem), key: key }));
2653
2659
  }
2654
2660
  };
2655
2661
  function getProp(properties, name) {
@@ -2733,8 +2739,9 @@ let EzForm = class {
2733
2739
  this._preparedMetadata = undefined;
2734
2740
  }
2735
2741
  async validate() {
2742
+ const duSourcesNames = Array.from(this._duSources.keys());
2736
2743
  for (let i = 0; i < this._duSources.size; i++) {
2737
- const duName = Array.from(this._duSources.keys())[i];
2744
+ const duName = duSourcesNames[i];
2738
2745
  let du = this._dataUnits.get(duName);
2739
2746
  if (du === undefined) {
2740
2747
  const source = this._duSources.get(duName);
@@ -2748,8 +2755,9 @@ let EzForm = class {
2748
2755
  }
2749
2756
  async getChanges() {
2750
2757
  let allChanges = [];
2758
+ const dataUnits = Array.from(this._dataUnits.values());
2751
2759
  for (let i = 0; i < this._dataUnits.size; i++) {
2752
- const du = Array.from(this._dataUnits.values())[i];
2760
+ const du = dataUnits[i];
2753
2761
  //Só devemos buscar as alterações de DU raiz, pois os sub DUs serão enviados junto.
2754
2762
  if (!du.parentDU) {
2755
2763
  const duChanges = du.getChangesToSave();
@@ -2767,15 +2775,15 @@ let EzForm = class {
2767
2775
  }
2768
2776
  }
2769
2777
  validateRecords(dataUnit, records, triggedBy) {
2770
- const result = { isValid: true, message: '' };
2771
- if (this.ignoresavevalidation && triggedBy === "SAVE") {
2778
+ const result = { isValid: true, message: "" };
2779
+ if (this.ignoreSaveValidation && triggedBy === "SAVE") {
2772
2780
  return result;
2773
2781
  }
2774
2782
  const validateField = (field) => {
2775
2783
  if (field.readOnly) {
2776
2784
  return false;
2777
2785
  }
2778
- if (field.userInterface === 'SWITCH' || field.userInterface === 'CHECKBOX') {
2786
+ if (field.userInterface === "SWITCH" || field.userInterface === "CHECKBOX") {
2779
2787
  return false;
2780
2788
  }
2781
2789
  return true;
@@ -2786,7 +2794,7 @@ let EzForm = class {
2786
2794
  const recordIndex = record["record__index"];
2787
2795
  const fieldName = field.name;
2788
2796
  const fieldValue = record[fieldName];
2789
- if (fieldValue === null || fieldValue === undefined || fieldValue === '') {
2797
+ if (fieldValue === null || fieldValue === undefined || fieldValue === "") {
2790
2798
  const tabPosition = this._tabPositionByField.get(dataUnit.name + field.name);
2791
2799
  this._store.dispatch(invalidField$1(tabPosition.tabName, tabPosition.index, dataUnit.name, recordIndex, record.record__id, field.name, "Essa informação é obrigatória"));
2792
2800
  result.isValid = false;
@@ -2813,7 +2821,7 @@ let EzForm = class {
2813
2821
  return result;
2814
2822
  }
2815
2823
  loadMDFromExecutor(callBack) {
2816
- const loadMetadataFunction = this.parseExecutor(this.metadataexecutor);
2824
+ const loadMetadataFunction = this.parseExecutor(this.metadataExecutor);
2817
2825
  if (loadMetadataFunction) {
2818
2826
  const result = loadMetadataFunction();
2819
2827
  if (result) {
@@ -2893,7 +2901,7 @@ let EzForm = class {
2893
2901
  });
2894
2902
  this._store = createStore(rootReducer, applyMiddleware(thunk));
2895
2903
  this._store.subscribe(() => { forceUpdate(this); });
2896
- if (this.slavemode) {
2904
+ if (this.slaveMode) {
2897
2905
  this._store.dispatch(showHideNavigationButtons("saveVisible", false));
2898
2906
  this._store.dispatch(showHideNavigationButtons("cancelVisible", false));
2899
2907
  this._store.dispatch(showHideNavigationButtons("reloadVisible", false));
@@ -2916,12 +2924,12 @@ let EzForm = class {
2916
2924
  this._duToLoad = [];
2917
2925
  }
2918
2926
  loadSearch(argument, context) {
2919
- const fieldSearchExecutor = this.parseExecutor(this.fieldsearchexecutor);
2927
+ const fieldSearchExecutor = this.parseExecutor(this.fieldSearchExecutor);
2920
2928
  if (fieldSearchExecutor) {
2921
2929
  return fieldSearchExecutor(argument, context);
2922
2930
  }
2923
2931
  else {
2924
- return [{ value: 0, label: 'Sem resultados' }];
2932
+ return [{ value: 0, label: "Sem resultados" }];
2925
2933
  }
2926
2934
  }
2927
2935
  buildDataUnit(dataUnit, parentDataUnit) {
@@ -2948,9 +2956,9 @@ let EzForm = class {
2948
2956
  }
2949
2957
  decorateDU(dataUnit) {
2950
2958
  dataUnit.store = this._store;
2951
- dataUnit.loadExecutor = this.parseExecutor(this.loadexecutor);
2952
- dataUnit.saveExecutor = this.parseExecutor(this.saveexecutor);
2953
- dataUnit.removeExecutor = this.parseExecutor(this.removeexecutor);
2959
+ dataUnit.loadExecutor = this.parseExecutor(this.loadExecutor);
2960
+ dataUnit.saveExecutor = this.parseExecutor(this.saveExecutor);
2961
+ dataUnit.removeExecutor = this.parseExecutor(this.removeExecutor);
2954
2962
  dataUnit.recordsValidator = this;
2955
2963
  }
2956
2964
  render() {
@@ -2992,7 +3000,7 @@ let EzIcon = class {
2992
3000
  };
2993
3001
  EzIcon.style = ezIconCss;
2994
3002
 
2995
- const ezNumericInputCss = ":host{display:block;width:100%;--it__input--background-color:var(--background--medium, #e0e0e0);--it__input--border-color:var(--it__input--background-color)}.text-input{--it__input--background-color:inherit;--it__input--border-color:inherit}";
3003
+ const ezNumericInputCss = ":host{display:block;width:100%;--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color)}.text-input{--ez-text-input__input--background-color:inherit;--ez-text-input__input--border-color:inherit}";
2996
3004
 
2997
3005
  let EzNumericInput = class {
2998
3006
  constructor(hostRef) {
@@ -3394,7 +3402,7 @@ let EzTextArea = class {
3394
3402
  };
3395
3403
  EzTextArea.style = ezTextAreaCss;
3396
3404
 
3397
- const ezTextInputCss = ":host{--text-input--height:42px;--text-input--width:100%;--text-input__icon--width:48px;--text-input--border-radius:var(--border--radius-medium, 12px);--text-input--font-size:var(--text--medium, 14px);--text-input--font-family:var(--font-pattern, Arial);--text-input--font-weight:var(--text-weight--large, 500);--text-input--color:var(--title--primary, #000);--text-input__input--background-color:var(--background--medium, #e0e0e0);--text-input__input--border:var(--border--medium, 2px solid);--text-input__input--border-color:var(--text-input__input--background-color);--text-input__input--focus--border-color:var(--color--alert-cold-800, #042EFF);--text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-input__input--disabled--color:var(--text--disable, #AFB6C0);--text-input__input--error--border-color:#CC2936;--text-input__message_box--font-size:var(--text--small, 12px);--text-input__message_box--info--color:var(--color--success, #22085d);--text-input__message_box--error--color:var(--color--error, #FF0000);--text-input__label--floating--top:6px;--text-input__label--padding-top:12px;--text-input__label--padding-left:14px;--text-input__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-input--width)}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--text-input--height);border-radius:var(--text-input--border-radius);font-family:var(--text-input--font-family);font-size:var(--text-input--font-size);border:var(--text-input__input--border);border-color:var(--text-input__input--border-color);background-color:var(--text-input__input--background-color);color:var(--text-input--color)}input:disabled{background-color:var(--text-input__input--disabled--background-color);color:var(--text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--text-input__input--focus--border-color)}input.icon--left{padding-left:var(--text-input__icon--width)}input.icon--right{padding-right:var(--text-input__icon--width)}input.hasError{color:var(--text-input--color);border-color:var(--text-input__input--error--border-color)}input.text--right{text-align:right}.message-box{display:flex;min-height:16px;min-width:100%;margin-top:2px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-input--font-family);font-size:var(--text-input__message_box--font-size);color:var(--text-input__message_box--info--color)}.hasError{color:var(--text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-input__label--padding-right));left:var(--text-input--space--medium);font-family:var(--text-input--font-family);font-size:var(--text-input--font-size);font-weight:var(--text-input--font-weight);color:var(--text-input--color);top:var(--text-input__label--padding-top);left:var(--text-input__label--padding-left);padding-right:var(--text-input__label--padding-right)}.input__label--floated{font-family:var(--text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-input__label--floating--top)}.input__label--disabled{color:var(--text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--text-input__icon--width) + 2px);width:calc(100% - var(--text-input__icon--width))}.input__label--right{right:var(--text-input__icon--width);width:calc(100% - var(--text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--text-input__icon--width) + 2px);width:calc(100% - var(--text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}";
3405
+ const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--large, 500);--ez-text-input--color:var(--title--primary, #000);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--alert-cold-800, #042EFF);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input.text--right{text-align:right}.message-box{display:flex;min-height:16px;min-width:100%;margin-top:2px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}";
3398
3406
 
3399
3407
  let EzTextInput = class {
3400
3408
  constructor(hostRef) {
@@ -3406,14 +3414,14 @@ let EzTextInput = class {
3406
3414
  this.enabled = true;
3407
3415
  }
3408
3416
  showError() {
3409
- const hasError = typeof this.errorMessage === 'string' && this.errorMessage !== '';
3417
+ const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
3410
3418
  if (hasError) {
3411
- this._inputElem.classList.add('hasError');
3412
- this._messageBoxElem.classList.add('hasError');
3419
+ this._inputElem.classList.add("hasError");
3420
+ this._messageBoxElem.classList.add("hasError");
3413
3421
  }
3414
3422
  else {
3415
- this._inputElem.classList.remove('hasError');
3416
- this._messageBoxElem.classList.remove('hasError');
3423
+ this._inputElem.classList.remove("hasError");
3424
+ this._messageBoxElem.classList.remove("hasError");
3417
3425
  }
3418
3426
  }
3419
3427
  prepareMask() {
@@ -3431,7 +3439,7 @@ let EzTextInput = class {
3431
3439
  this._inputElem.value = this.value;
3432
3440
  }
3433
3441
  this.handleChange();
3434
- this.ezChange.emit();
3442
+ this.ezChange.emit(this.value);
3435
3443
  this.adjustFloatingLabel();
3436
3444
  }
3437
3445
  adjustFloatingLabel() {
@@ -3516,22 +3524,22 @@ let EzTextInput = class {
3516
3524
  content.style.justifyContent = "center";
3517
3525
  content.style.overflow = "hidden";
3518
3526
  content.style.top = "0px";
3519
- content.style.width = "var(--text-input__icon--width)";
3520
- content.style.height = "var(--text-input--height)";
3527
+ content.style.width = "var(--ez-text-input__icon--width)";
3528
+ content.style.height = "var(--ez-text-input--height)";
3521
3529
  if (slot.name == "leftIcon") {
3522
3530
  content.style.left = "0px";
3523
- content.style.borderRadius = "var(--text-input--border-radius) 0 0 var(--text-input--border-radius)";
3524
- this._inputElem.classList.add('icon--left');
3531
+ content.style.borderRadius = "var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)";
3532
+ this._inputElem.classList.add("icon--left");
3525
3533
  if (this._labelElem) {
3526
- this._labelElem.classList.add('input__label--left');
3534
+ this._labelElem.classList.add("input__label--left");
3527
3535
  }
3528
3536
  }
3529
3537
  else if (slot.name == "rightIcon") {
3530
3538
  content.style.right = "0px";
3531
- content.style.borderRadius = "0 var(--text-input--border-radius) var(--text-input--border-radius) 0";
3532
- this._inputElem.classList.add('icon--right');
3539
+ content.style.borderRadius = "0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0";
3540
+ this._inputElem.classList.add("icon--right");
3533
3541
  if (this._labelElem) {
3534
- this._labelElem.classList.add('input__label--right');
3542
+ this._labelElem.classList.add("input__label--right");
3535
3543
  }
3536
3544
  }
3537
3545
  }
@@ -3931,7 +3939,7 @@ let FormMetadata = class {
3931
3939
  label = "Selecione uma das opções:";
3932
3940
  }
3933
3941
  const objOpts = {};
3934
- Array.from(element.getElementsByTagName('OPTION')).forEach((optElem, index) => {
3942
+ Array.from(element.getElementsByTagName("OPTION")).forEach((optElem, index) => {
3935
3943
  const optValue = optElem.getAttribute("value") || index;
3936
3944
  const optLabel = optElem.textContent;
3937
3945
  objOpts[optValue] = optLabel;
@@ -3939,15 +3947,15 @@ let FormMetadata = class {
3939
3947
  properties.push({ name: "options", value: JSON.stringify(objOpts) });
3940
3948
  }
3941
3949
  else if (userInterface === "FILE") {
3942
- const urlElement = element.querySelector('URL');
3943
- const headersElement = element.querySelectorAll('HEADERS>HEADER');
3950
+ const urlElement = element.querySelector("URL");
3951
+ const headersElement = element.querySelectorAll("HEADERS>HEADER");
3944
3952
  if (urlElement) {
3945
3953
  properties.push({ name: "URL", value: urlElement.textContent });
3946
3954
  }
3947
3955
  if (headersElement && headersElement.length > 0) {
3948
3956
  const headers = {};
3949
3957
  headersElement.forEach(header => {
3950
- headers[header.getAttribute('name')] = header.textContent;
3958
+ headers[header.getAttribute("name")] = header.textContent;
3951
3959
  });
3952
3960
  properties.push({ name: "HEADERS", value: JSON.stringify(headers) });
3953
3961
  }
@@ -3973,7 +3981,7 @@ let FormMetadata = class {
3973
3981
  }
3974
3982
  buildFieldSet(dataUnit, element) {
3975
3983
  const label = element.getAttribute("label");
3976
- const fields = Array.from(element.getElementsByTagName('FIELD')).map(f => {
3984
+ const fields = Array.from(element.getElementsByTagName("FIELD")).map(f => {
3977
3985
  const field = this.buildField(f);
3978
3986
  dataUnit.addFieldMetadata(field);
3979
3987
  return { name: field.name };
@@ -3990,7 +3998,7 @@ let FormMetadata = class {
3990
3998
  Array.from(elements).forEach(child => {
3991
3999
  const tagName = child.tagName.toUpperCase();
3992
4000
  switch (tagName) {
3993
- case 'FIELD':
4001
+ case "FIELD":
3994
4002
  if (!form.items) {
3995
4003
  form.items = [];
3996
4004
  }
@@ -3998,13 +4006,13 @@ let FormMetadata = class {
3998
4006
  dataUnit.addFieldMetadata(f);
3999
4007
  form.items.push({ name: f.name });
4000
4008
  break;
4001
- case 'FIELD-SET':
4009
+ case "FIELD-SET":
4002
4010
  if (!form.items) {
4003
4011
  form.items = [];
4004
4012
  }
4005
4013
  form.items.push(this.buildFieldSet(dataUnit, child));
4006
4014
  break;
4007
- case 'SUB-FORM':
4015
+ case "SUB-FORM":
4008
4016
  if (!form.subForms) {
4009
4017
  form.subForms = [];
4010
4018
  }
@@ -4013,7 +4021,7 @@ let FormMetadata = class {
4013
4021
  const subDuName = child.getAttribute("dataunit");
4014
4022
  let subDu;
4015
4023
  if (subDuName) {
4016
- subDu = new DataUnit(subDuName, 'noname', child.hasAttribute("many") ? 'N' : '1');
4024
+ subDu = new DataUnit(subDuName, "noname", child.hasAttribute("many") ? "N" : "1");
4017
4025
  }
4018
4026
  else {
4019
4027
  subDu = dataUnit;
@@ -4028,7 +4036,7 @@ let FormMetadata = class {
4028
4036
  if (!this.dataunit) {
4029
4037
  this.dataunit = "dataunit_" + (this.name || this.label || new Date().getTime());
4030
4038
  }
4031
- const du = new DataUnit(this.dataunit, 'noname', this.many ? 'N' : '1');
4039
+ const du = new DataUnit(this.dataunit, "noname", this.many ? "N" : "1");
4032
4040
  this.metadata = this.fromElements(this._host.children, this.label, this.name, du, this.autoload);
4033
4041
  }
4034
4042
  render() {