@sankhyalabs/ezui 1.1.77 → 1.1.80

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 (174) hide show
  1. package/dist/cjs/{AssetsUtils-dd585fba.js → AssetsUtils-02db4f46.js} +1 -1
  2. package/dist/cjs/CSSVarsUtils-66e86394.js +18 -0
  3. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-application.cjs.entry.js +1 -3
  5. package/dist/cjs/ez-button_3.cjs.entry.js +520 -0
  6. package/dist/cjs/ez-calendar_13.cjs.entry.js +2421 -0
  7. package/dist/cjs/ez-date-time-input.cjs.entry.js +26 -37
  8. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  9. package/dist/cjs/{ez-button_11.cjs.entry.js → ez-grid.cjs.entry.js} +14 -1410
  10. package/dist/cjs/ez-icon.cjs.entry.js +30 -0
  11. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-modal_2.cjs.entry.js +370 -0
  13. package/dist/cjs/ez-popover.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-time-input.cjs.entry.js +4 -4
  16. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  17. package/dist/cjs/ezui.cjs.js +2 -2
  18. package/dist/cjs/{index-4e4bae01.js → index-2003dec4.js} +0 -10
  19. package/dist/cjs/{index-262d703b.js → index-a2266984.js} +18 -43
  20. package/dist/cjs/loader.cjs.js +2 -2
  21. package/dist/collection/collection-manifest.json +0 -2
  22. package/dist/collection/components/ez-application/ez-application.js +0 -2
  23. package/dist/collection/components/ez-calendar/ez-calendar.js +7 -2
  24. package/dist/collection/components/ez-combo-box/ez-combo-box.css +0 -5
  25. package/dist/collection/components/ez-combo-box/ez-combo-box.js +4 -0
  26. package/dist/collection/components/ez-date-input/ez-date-input.css +2 -2
  27. package/dist/collection/components/ez-date-input/ez-date-input.js +1 -1
  28. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +0 -5
  29. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +23 -34
  30. package/dist/collection/components/ez-form/DataBinder.js +44 -0
  31. package/dist/collection/components/ez-form/ez-form.css +1 -15
  32. package/dist/collection/components/ez-form/ez-form.js +112 -427
  33. package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +45 -0
  34. package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +11 -0
  35. package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +14 -0
  36. package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +5 -0
  37. package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +5 -0
  38. package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +13 -0
  39. package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +5 -0
  40. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +5 -0
  41. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +5 -0
  42. package/dist/collection/components/ez-form/store/form.slice.js +38 -0
  43. package/dist/collection/components/ez-form/structure/FormItem.js +11 -0
  44. package/dist/collection/components/ez-form/structure/FormSheet.js +5 -0
  45. package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +86 -0
  46. package/dist/collection/components/ez-number-input/ez-number-input.css +0 -9
  47. package/dist/collection/components/ez-number-input/ez-number-input.js +20 -115
  48. package/dist/collection/components/ez-search/ez-search.js +6 -1
  49. package/dist/collection/components/test-du/test-du.js +65 -23
  50. package/dist/collection/utils/CSSVarsUtils.js +6 -6
  51. package/dist/custom-elements/index.d.ts +0 -12
  52. package/dist/custom-elements/index.js +530 -2278
  53. package/dist/esm/{AssetsUtils-3803e935.js → AssetsUtils-76ca41e1.js} +1 -1
  54. package/dist/esm/CSSVarsUtils-aeee9825.js +16 -0
  55. package/dist/esm/ez-action-chip.entry.js +1 -1
  56. package/dist/esm/ez-application.entry.js +1 -3
  57. package/dist/esm/ez-button_3.entry.js +514 -0
  58. package/dist/esm/ez-calendar_13.entry.js +2405 -0
  59. package/dist/esm/ez-date-time-input.entry.js +26 -37
  60. package/dist/esm/ez-dialog.entry.js +1 -1
  61. package/dist/esm/{ez-button_11.entry.js → ez-grid.entry.js} +4 -1390
  62. package/dist/esm/ez-icon.entry.js +26 -0
  63. package/dist/esm/ez-label-chip.entry.js +1 -1
  64. package/dist/esm/ez-modal_2.entry.js +365 -0
  65. package/dist/esm/ez-popover.entry.js +2 -2
  66. package/dist/esm/ez-popup.entry.js +1 -1
  67. package/dist/esm/ez-time-input.entry.js +4 -4
  68. package/dist/esm/ez-toast.entry.js +1 -1
  69. package/dist/esm/ezui.js +2 -2
  70. package/dist/esm/{index-1dacecd3.js → index-077c7fcf.js} +0 -10
  71. package/dist/esm/{index-cfd5e193.js → index-afe19542.js} +17 -40
  72. package/dist/esm/loader.js +2 -2
  73. package/dist/ezui/ezui.esm.js +1 -1
  74. package/dist/ezui/p-00b837e2.js +1 -0
  75. package/dist/ezui/{p-516d0e0f.entry.js → p-0a2056d9.entry.js} +1 -1
  76. package/dist/ezui/p-0d8368fc.entry.js +1 -0
  77. package/dist/ezui/p-1e36e3ff.entry.js +1 -0
  78. package/dist/ezui/p-446ec85b.js +1 -0
  79. package/dist/ezui/p-49f3432a.entry.js +1 -0
  80. package/dist/ezui/{p-1ea8187e.entry.js → p-5509ee41.entry.js} +46 -46
  81. package/dist/ezui/{p-a18a2d7b.entry.js → p-57ea4b84.entry.js} +1 -1
  82. package/dist/ezui/{p-5a86e18a.entry.js → p-6d157776.entry.js} +1 -1
  83. package/dist/ezui/{p-8c51a6aa.entry.js → p-7a1f2e0e.entry.js} +1 -1
  84. package/dist/ezui/p-7de3c95d.js +1 -0
  85. package/dist/ezui/{p-7ef97c5f.entry.js → p-857ead8e.entry.js} +1 -1
  86. package/dist/ezui/p-8b099482.js +1 -0
  87. package/dist/ezui/{p-c6d469fc.entry.js → p-920bb8c9.entry.js} +1 -1
  88. package/dist/ezui/p-a4a39579.entry.js +1 -0
  89. package/dist/ezui/p-d5699f29.entry.js +1 -0
  90. package/dist/ezui/p-d64a3939.entry.js +1 -0
  91. package/dist/ezui/{p-5da66d3e.entry.js → p-da31cd21.entry.js} +1 -1
  92. package/dist/types/components/ez-application/ez-application.d.ts +0 -2
  93. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
  94. package/dist/types/components/ez-form/DataBinder.d.ts +10 -0
  95. package/dist/types/components/ez-form/ez-form.d.ts +25 -32
  96. package/dist/types/components/ez-form/fieldbuilder/FieldBuilder.d.ts +2 -0
  97. package/dist/types/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.d.ts +3 -0
  98. package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +4 -0
  99. package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +4 -0
  100. package/dist/types/components/ez-form/fieldbuilder/tpl/FileInput.tpl.d.ts +4 -0
  101. package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +8 -0
  102. package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +4 -0
  103. package/dist/types/components/ez-form/fieldbuilder/tpl/TextArea.tpl.d.ts +4 -0
  104. package/dist/types/components/ez-form/fieldbuilder/tpl/TextInput.tpl.d.ts +4 -0
  105. package/dist/types/components/ez-form/store/form.slice.d.ts +24 -0
  106. package/dist/types/components/ez-form/structure/FormItem.d.ts +9 -0
  107. package/dist/types/components/ez-form/structure/FormSheet.d.ts +9 -0
  108. package/dist/types/components/ez-form/structure/FormSheetMetadata.d.ts +27 -0
  109. package/dist/types/components/ez-number-input/ez-number-input.d.ts +3 -20
  110. package/dist/types/components/ez-search/ez-search.d.ts +2 -0
  111. package/dist/types/components/test-du/test-du.d.ts +8 -2
  112. package/dist/types/components.d.ts +12 -82
  113. package/dist/types/utils/CSSVarsUtils.d.ts +1 -1
  114. package/package.json +1 -1
  115. package/react/components.d.ts +0 -2
  116. package/react/components.js +0 -2
  117. package/react/components.js.map +1 -1
  118. package/dist/cjs/ApplicationUtils-d1c1db56.js +0 -35
  119. package/dist/cjs/CSSVarsUtils-f8827674.js +0 -18
  120. package/dist/cjs/DataUnit-fdd7c70e.js +0 -474
  121. package/dist/cjs/ez-calendar.cjs.entry.js +0 -212
  122. package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +0 -630
  123. package/dist/cjs/ez-combo-box.cjs.entry.js +0 -250
  124. package/dist/cjs/ez-form.cjs.entry.js +0 -1838
  125. package/dist/cjs/ez-number-input.cjs.entry.js +0 -121
  126. package/dist/cjs/form-metadata.cjs.entry.js +0 -129
  127. package/dist/collection/components/ez-form/assets/trash-can-outline.svg +0 -3
  128. package/dist/collection/components/ez-form/store/Form.actions.js +0 -132
  129. package/dist/collection/components/ez-form/store/Form.reducer.js +0 -194
  130. package/dist/collection/components/ez-form/store/Form.selectors.js +0 -44
  131. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +0 -301
  132. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +0 -8
  133. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +0 -24
  134. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +0 -227
  135. package/dist/collection/components/ez-form/subcomponents/place-holder.js +0 -14
  136. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +0 -95
  137. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +0 -27
  138. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +0 -41
  139. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +0 -37
  140. package/dist/esm/ApplicationUtils-01280a9d.js +0 -33
  141. package/dist/esm/CSSVarsUtils-e0128b01.js +0 -16
  142. package/dist/esm/DataUnit-1cd45202.js +0 -464
  143. package/dist/esm/ez-calendar.entry.js +0 -208
  144. package/dist/esm/ez-collapsible-box_6.entry.js +0 -621
  145. package/dist/esm/ez-combo-box.entry.js +0 -246
  146. package/dist/esm/ez-form.entry.js +0 -1834
  147. package/dist/esm/ez-number-input.entry.js +0 -117
  148. package/dist/esm/form-metadata.entry.js +0 -125
  149. package/dist/ezui/assets/trash-can-outline.svg +0 -3
  150. package/dist/ezui/p-37a611ea.js +0 -1
  151. package/dist/ezui/p-45689464.entry.js +0 -1
  152. package/dist/ezui/p-57291f97.entry.js +0 -1
  153. package/dist/ezui/p-69416bec.entry.js +0 -1
  154. package/dist/ezui/p-7107d7ef.js +0 -1
  155. package/dist/ezui/p-88f45a83.entry.js +0 -1
  156. package/dist/ezui/p-8f4851a6.js +0 -1
  157. package/dist/ezui/p-9dfd537e.js +0 -1
  158. package/dist/ezui/p-a223eed8.entry.js +0 -1
  159. package/dist/ezui/p-b36308e7.js +0 -1
  160. package/dist/ezui/p-c0af195b.entry.js +0 -1
  161. package/dist/ezui/p-d1889704.js +0 -1
  162. package/dist/ezui/p-e7ee2836.entry.js +0 -1
  163. package/dist/ezui/p-f7b835cf.entry.js +0 -1
  164. package/dist/types/components/ez-form/store/Form.actions.d.ts +0 -111
  165. package/dist/types/components/ez-form/store/Form.reducer.d.ts +0 -20
  166. package/dist/types/components/ez-form/store/Form.selectors.d.ts +0 -14
  167. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +0 -91
  168. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +0 -24
  169. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +0 -16
  170. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +0 -3
  171. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +0 -11
  172. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +0 -13
  173. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +0 -14
  174. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +0 -19
@@ -1,117 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-1dacecd3.js';
2
- import { N as NumberUtils } from './index-cfd5e193.js';
3
-
4
- const ezNumberInputCss = ":host{display:block;width:100%;--ez-number-input__input--background-color:var(--background--medium, #e0e0e0);--ez-number-input__input--border-color:var(--ez-number-input__input--background-color)}.text-input{--ez-number-input__input--background-color:inherit;--ez-number-input__input--border-color:inherit}";
5
-
6
- let EzNumberInput = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- this.ezChange = createEvent(this, "ezChange", 7);
10
- /**
11
- * Deixa o campo disponível ou não para uso.
12
- */
13
- this.enabled = true;
14
- /**
15
- * Configura o alinhamento do texto.
16
- */
17
- this.textleft = false;
18
- /**
19
- * Opção de configurar a transformação de string to number entre formatação pt-BR e en-US
20
- * (formatação de ENTRADA e SAÍDA do componente: pt-BR="###.###,##" en-US="###,###.##"; Default: "pt-BR")
21
- * Qualquer outro valor que não seja "en-US", adotará a formatação "pt-BR"
22
- * Não é case sensitive
23
- */
24
- this.formatNumber = "PT-BR";
25
- }
26
- setLabel() {
27
- this._textInput.label = this.label;
28
- }
29
- setErrorMessage() {
30
- this._textInput.errorMessage = this.errorMessage;
31
- }
32
- applyValueToInput() {
33
- if (this._textInput) {
34
- this._textInput.value = this.getTextValue(this.value);
35
- }
36
- }
37
- onPrecisionChanged(newPrecision) {
38
- if (isNaN(newPrecision)) {
39
- this.precision = 0;
40
- }
41
- }
42
- onPrettyPrecisionChanged(newPrettyPrecision) {
43
- if (isNaN(newPrettyPrecision)) {
44
- this.prettyPrecision = 0;
45
- }
46
- }
47
- changeValue(newValue) {
48
- this.errorMessage = "";
49
- if (newValue && newValue !== this.value) {
50
- this.value = newValue;
51
- this._textInput.value = this.getTextValue(newValue);
52
- this.ezChange.emit();
53
- }
54
- }
55
- parseNumber() {
56
- const parsedNumber = this._textInput.value ? NumberUtils.stringToNumber(this._textInput.value) : null;
57
- if (parsedNumber != null && isNaN(parsedNumber)) {
58
- this.errorMessage = "O valor digitado não é um número válido";
59
- }
60
- else {
61
- try {
62
- this.changeValue(parsedNumber);
63
- }
64
- catch (e) {
65
- this.errorMessage = e.message;
66
- return;
67
- }
68
- }
69
- }
70
- getTextValue(value) {
71
- const parsedNumber = value ? NumberUtils.stringToNumber(value) : null;
72
- if (parsedNumber != null && isNaN(parsedNumber)) {
73
- this.errorMessage = "O valor digitado não é um número válido";
74
- }
75
- else {
76
- return this.formatNumber.toUpperCase() !== "EN-US" ? NumberUtils.format(value.toString(), this.precision, this.prettyPrecision) : NumberUtils.changeFormat(NumberUtils.format(value.toString(), this.precision, this.prettyPrecision));
77
- }
78
- return "";
79
- }
80
- componentDidLoad() {
81
- if (!this.textleft) {
82
- this._textInput.shadowRoot.querySelector('input').classList.add('text--right');
83
- }
84
- let rightItem;
85
- let letfItem;
86
- for (const key in this._hostElement.children) {
87
- if (Object.prototype.hasOwnProperty.call(this._hostElement.children, key)) {
88
- const element = this._hostElement.children[key];
89
- if (element.getAttribute('slot') === 'rightIcon') {
90
- rightItem = element;
91
- }
92
- else if (element.getAttribute('slot') === 'leftIcon') {
93
- letfItem = element;
94
- }
95
- }
96
- }
97
- this._leftSlotItem = letfItem;
98
- this._rightSlotItem = rightItem;
99
- }
100
- componentWillLoad() {
101
- this.onPrecisionChanged(this.precision);
102
- this.onPrettyPrecisionChanged(this.prettyPrecision);
103
- }
104
- render() {
105
- return (h(Host, { ref: elem => this._hostElement = elem }, h("ez-text-input", { class: "text-input", ref: elem => this._textInput = elem, onBlur: () => this.parseNumber(), label: this.label, onEzChange: event => event.stopPropagation(), value: this.getTextValue(this.value), restrict: "0123456789-,.", enabled: this.enabled, errorMessage: this.errorMessage }, this._rightSlotItem ? h("slot", { name: "rightIcon", slot: "rightIcon" }) : undefined, this._leftSlotItem ? h("slot", { name: "leftIcon", slot: "leftIcon" }) : undefined)));
106
- }
107
- static get watchers() { return {
108
- "label": ["setLabel"],
109
- "errorMessage": ["setErrorMessage"],
110
- "value": ["applyValueToInput"],
111
- "precision": ["onPrecisionChanged"],
112
- "prettyPrecision": ["onPrettyPrecisionChanged"]
113
- }; }
114
- };
115
- EzNumberInput.style = ezNumberInputCss;
116
-
117
- export { EzNumberInput as ez_number_input };
@@ -1,125 +0,0 @@
1
- import { r as registerInstance, h, g as getElement, H as Host } from './index-1dacecd3.js';
2
- import { g as DataUnit } from './DataUnit-1cd45202.js';
3
- import './ApplicationUtils-01280a9d.js';
4
-
5
- let FormMetadata = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- }
9
- buildField(element) {
10
- let label = element.getAttribute("label");
11
- let name = element.getAttribute("name") || label;
12
- let userInterface = element.getAttribute("ui") || "SHORTTEXT";
13
- let properties = [];
14
- if (userInterface === "OPTIONSELECTOR") {
15
- if (!label) {
16
- label = "Selecione uma das opções:";
17
- }
18
- const objOpts = {};
19
- Array.from(element.getElementsByTagName("OPTION")).forEach((optElem, index) => {
20
- const optValue = optElem.getAttribute("value") || index;
21
- const optLabel = optElem.textContent;
22
- objOpts[optValue] = optLabel;
23
- });
24
- properties.push({ name: "options", value: JSON.stringify(objOpts) });
25
- }
26
- else if (userInterface === "FILE") {
27
- const urlElement = element.querySelector("URL");
28
- const headersElement = element.querySelectorAll("HEADERS>HEADER");
29
- if (urlElement) {
30
- properties.push({ name: "URL", value: urlElement.textContent });
31
- }
32
- if (headersElement && headersElement.length > 0) {
33
- const headers = {};
34
- headersElement.forEach(header => {
35
- headers[header.getAttribute("name")] = header.textContent;
36
- });
37
- properties.push({ name: "HEADERS", value: JSON.stringify(headers) });
38
- }
39
- this.addPropertyIfExists(properties, element, "maxfiles");
40
- }
41
- else {
42
- if (!label) {
43
- label = element.textContent;
44
- }
45
- this.addPropertyIfExists(properties, element, "precision");
46
- this.addPropertyIfExists(properties, element, "prettyprecision");
47
- }
48
- const defaultValue = element.getAttribute("defaultValue");
49
- const required = element.getAttribute("required") === "true";
50
- const readOnly = element.getAttribute("readonly") === "true";
51
- return { name, userInterface, label, defaultValue, required, readOnly, properties };
52
- }
53
- addPropertyIfExists(properties, element, name) {
54
- const value = element.getAttribute(name);
55
- if (value) {
56
- properties.push({ name, value });
57
- }
58
- }
59
- buildFieldSet(dataUnit, element) {
60
- const label = element.getAttribute("label");
61
- const fields = Array.from(element.getElementsByTagName("FIELD")).map(f => {
62
- const field = this.buildField(f);
63
- dataUnit.addFieldMetadata(field);
64
- return { name: field.name };
65
- });
66
- return { label, fields };
67
- }
68
- fromElements(elements, label, name, dataUnit, autoLoad) {
69
- const form = {
70
- name: name || label,
71
- dataUnit,
72
- label,
73
- autoLoad
74
- };
75
- Array.from(elements).forEach(child => {
76
- const tagName = child.tagName.toUpperCase();
77
- switch (tagName) {
78
- case "FIELD":
79
- if (!form.items) {
80
- form.items = [];
81
- }
82
- const f = this.buildField(child);
83
- dataUnit.addFieldMetadata(f);
84
- form.items.push({ name: f.name });
85
- break;
86
- case "FIELD-SET":
87
- if (!form.items) {
88
- form.items = [];
89
- }
90
- form.items.push(this.buildFieldSet(dataUnit, child));
91
- break;
92
- case "SUB-FORM":
93
- if (!form.subForms) {
94
- form.subForms = [];
95
- }
96
- const label = child.getAttribute("label") || "Subform " + (form.subForms.length + 1);
97
- const name = child.getAttribute("name") || label;
98
- const subDuName = child.getAttribute("dataunit");
99
- let subDu;
100
- if (subDuName) {
101
- subDu = new DataUnit(subDuName, "noname", child.hasAttribute("many") ? "N" : "1");
102
- }
103
- else {
104
- subDu = dataUnit;
105
- }
106
- form.subForms.push(this.fromElements(child.children, label, name, subDu, child.getAttribute("autoload") === "true"));
107
- break;
108
- }
109
- });
110
- return form;
111
- }
112
- connectedCallback() {
113
- if (!this.dataunit) {
114
- this.dataunit = "dataunit_" + (this.name || this.label || new Date().getTime());
115
- }
116
- const du = new DataUnit(this.dataunit, "noname", this.many ? "N" : "1");
117
- this.metadata = this.fromElements(this._host.children, this.label, this.name, du, this.autoload);
118
- }
119
- render() {
120
- return h(Host, null);
121
- }
122
- get _host() { return getElement(this); }
123
- };
124
-
125
- export { FormMetadata as form_metadata };
@@ -1,3 +0,0 @@
1
- <svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path d="M3.333 0V0.667H0V2H0.667V10.667C0.667 11.0205 0.80744 11.3596 1.05743 11.6096C1.30741 11.8596 1.64647 12 2 12H8.667C9.02053 12 9.35959 11.8596 9.60957 11.6096C9.85956 11.3596 10 11.0205 10 10.667V2H10.667V0.667H7.333V0H3.333ZM2 2H8.667V10.667H2V2ZM3.333 3.333V9.333H4.667V3.333H3.333ZM6 3.333V9.333H7.333V3.333H6Z" fill="white"/>
3
- </svg>
@@ -1 +0,0 @@
1
- import{a as s,s as t}from"./p-8f4851a6.js";const a=a=>`${function(){if(!e){const s=document.querySelector("script[data-ezui-assets-url]");if(s){let a=s.dataset.ezuiAssetsUrl;a&&(a.startsWith("/")&&(a=window.location.origin+a),t(a))}e=!0}return s("../assets/actions-sprite.svg")}()}#${a}`;let e=!1;export{a as g}
@@ -1 +0,0 @@
1
- import{r as o,c as t,h as i}from"./p-8f4851a6.js";import{d as s}from"./p-b36308e7.js";let a=class{constructor(i){o(this,i),this.applicationLoaded=t(this,"applicationLoaded",7)}componentWillLoad(){this.application=s.get()}componentDidLoad(){this.applicationLoaded.emit(!0)}render(){return i("div",null)}};a.style="";export{a as ez_application}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as e}from"./p-8f4851a6.js";import{N as n}from"./p-b36308e7.js";let r=class{constructor(s){t(this,s),this.ezChange=i(this,"ezChange",7),this.enabled=!0,this.textleft=!1,this.formatNumber="PT-BR"}setLabel(){this._textInput.label=this.label}setErrorMessage(){this._textInput.errorMessage=this.errorMessage}applyValueToInput(){this._textInput&&(this._textInput.value=this.getTextValue(this.value))}onPrecisionChanged(t){isNaN(t)&&(this.precision=0)}onPrettyPrecisionChanged(t){isNaN(t)&&(this.prettyPrecision=0)}changeValue(t){this.errorMessage="",t&&t!==this.value&&(this.value=t,this._textInput.value=this.getTextValue(t),this.ezChange.emit())}parseNumber(){const t=this._textInput.value?n.stringToNumber(this._textInput.value):null;if(null!=t&&isNaN(t))this.errorMessage="O valor digitado não é um número válido";else try{this.changeValue(t)}catch(t){return void(this.errorMessage=t.message)}}getTextValue(t){const i=t?n.stringToNumber(t):null;return null!=i&&isNaN(i)?(this.errorMessage="O valor digitado não é um número válido",""):"EN-US"!==this.formatNumber.toUpperCase()?n.format(t.toString(),this.precision,this.prettyPrecision):n.changeFormat(n.format(t.toString(),this.precision,this.prettyPrecision))}componentDidLoad(){let t,i;this.textleft||this._textInput.shadowRoot.querySelector("input").classList.add("text--right");for(const s in this._hostElement.children)if(Object.prototype.hasOwnProperty.call(this._hostElement.children,s)){const e=this._hostElement.children[s];"rightIcon"===e.getAttribute("slot")?t=e:"leftIcon"===e.getAttribute("slot")&&(i=e)}this._leftSlotItem=i,this._rightSlotItem=t}componentWillLoad(){this.onPrecisionChanged(this.precision),this.onPrettyPrecisionChanged(this.prettyPrecision)}render(){return s(e,{ref:t=>this._hostElement=t},s("ez-text-input",{class:"text-input",ref:t=>this._textInput=t,onBlur:()=>this.parseNumber(),label:this.label,onEzChange:t=>t.stopPropagation(),value:this.getTextValue(this.value),restrict:"0123456789-,.",enabled:this.enabled,errorMessage:this.errorMessage},this._rightSlotItem?s("slot",{name:"rightIcon",slot:"rightIcon"}):void 0,this._leftSlotItem?s("slot",{name:"leftIcon",slot:"leftIcon"}):void 0))}static get watchers(){return{label:["setLabel"],errorMessage:["setErrorMessage"],value:["applyValueToInput"],precision:["onPrecisionChanged"],prettyPrecision:["onPrettyPrecisionChanged"]}}};r.style=":host{display:block;width:100%;--ez-number-input__input--background-color:var(--background--medium, #e0e0e0);--ez-number-input__input--border-color:var(--ez-number-input__input--background-color)}.text-input{--ez-number-input__input--background-color:inherit;--ez-number-input__input--border-color:inherit}";export{r as ez_number_input}
@@ -1 +0,0 @@
1
- import{r as o,c as t,h as e,H as i,g as r}from"./p-8f4851a6.js";import"./p-b36308e7.js";import{F as s}from"./p-ddd0ef12.js";let a=class{constructor(e){o(this,e),this.ezChange=t(this,"ezChange",7),this.enabled=!0,this.showSelectedValue=!1,this.showOptionValue=!1}internalUpdate(){this._inputElement&&(this._inputElement.value=this.getText()),this.hideOptions(),this._criteria=void 0,this._preSelection=void 0,this.updateVisibleOptions()}getText(){let o="";const t=this.getSelectedOption();return t&&(o=this.showSelectedValue?`${t.value} - ${t.label}`:t.label),o}getSelectedOption(){return"string"==typeof this.value||this.value instanceof String?this._visibleOptions.find((o=>o.value===this.value)):this.value}updateVisibleOptions(){let o=this._source||[];if(!this.searchMode&&this._criteria){const t=this._criteria.toUpperCase();o=o.filter((o=>o.label.toLocaleUpperCase().indexOf(t)>-1))}this._visibleOptions=[{value:void 0,label:""}].concat(o)}buildItem(o,t){return e("li",{class:t===this._preSelection?"item preselected":"item",id:`item_${o.value}`,onMouseDown:()=>this.selectOption(o),onMouseOver:()=>this._preSelection=void 0},e("span",{class:"item--label",title:o.label},o.label),this.showOptionValue?e("span",{class:"item--value",title:o.value},o.value):void 0)}showOptions(){this.enabled&&(this._floatingID=s.float(this._optionsList,this._listContainer,{autoClose:!0,top:this.errorMessage?"0px":"-17px"}),window.requestAnimationFrame((()=>{this._optionsList.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})})))}hideOptions(){void 0!==this._floatingID&&s.close(this._floatingID),this._floatingID=void 0}isOptionsVisible(){return void 0!==this._floatingID&&s.isFloating(this._floatingID)}nextOption(){this.searchMode&&!this.isOptionsVisible()||(this.showOptions(),this._preSelection=void 0===this._preSelection?0:Math.min(this._preSelection+1,this._visibleOptions.length-1),this.scrollToOption(this._visibleOptions[this._preSelection],!0))}previousOption(){this._preSelection=void 0===this._preSelection?0:Math.max(this._preSelection-1,0),this.scrollToOption(this._visibleOptions[this._preSelection],!1)}scrollToOption(o,t){window.requestAnimationFrame((()=>{const e=this._optionsList.querySelector(`li#item_${o.value}`);if(e){const o=e.parentElement,i=o.getBoundingClientRect(),r=e.getBoundingClientRect();t&&r.bottom>i.bottom?o.scrollTop=r.top:!t&&r.top<i.top&&(o.scrollTop=0)}}))}selectCurrentOption(){void 0!==this._preSelection&&(this.selectOption(this._visibleOptions[this._preSelection]),this._preSelection=void 0)}selectOption(o){if(this.getSelectedOption()!==o){const t=(null==o?void 0:o.value)?o:void 0;this.value=t,this.errorMessage="",this.ezChange.emit(t)}else this.internalUpdate()}updateSource(o){o instanceof Promise?(o.then((o=>this.updateSource(o))),this.updateVisibleOptions()):(this._source=o,this.updateVisibleOptions())}loadOptions(o,t=""){this._criteria=t,this.updateSource(this.optionLoader?this.optionLoader({mode:o,argument:t}):this.options)}cancelPreselection(){!this._inputElement.value&&this.value?this.selectOption(void 0):this.internalUpdate()}componentWillLoad(){if(void 0===this.options){this.options=[];const o=this.el.querySelectorAll("option");o&&o.forEach((o=>{let t=o.innerText,e=o.getAttribute("value");e||(e=t),this.options.push({label:t,value:e}),o.hidden=!0}))}this.searchMode?this.updateSource([]):this.loadOptions("PRELOAD")}componentDidRender(){void 0===this._floatingID&&this._optionsList.remove()}onTextInputChangeHandler(o){this._criteria||(this._inputElement.value=o.data);const t=o.target.value;this._criteria=t,this._criteria&&(this.searchMode?(this._changeDeboucingTimeout&&window.clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=window.setTimeout((()=>{this.loadOptions("PREDICTIVE",t)}),200)):this.updateVisibleOptions(),this.showOptions())}onTextInputClickHandler(){this.searchMode||this.showOptions()}keyDownHandler(o){switch(o.key){case"ArrowDown":this.nextOption();break;case"ArrowUp":this.previousOption();break;case"Enter":this.selectCurrentOption();break;case"Escape":this.cancelPreselection()}o.stopPropagation()}onTextInputFocusOutHandler(){this.cancelPreselection()}render(){return e(i,null,e("ez-text-input",{ref:o=>this._inputElement=o,enabled:this.enabled,onInput:o=>this.onTextInputChangeHandler(o),onClick:()=>this.onTextInputClickHandler(),onFocusout:()=>this.onTextInputFocusOutHandler(),onEzChange:o=>o.stopPropagation(),onKeyDown:o=>this.keyDownHandler(o),label:this.label,value:this.getText(),errorMessage:this.errorMessage},e("button",this.searchMode?{disabled:!this.enabled,tabindex:-1,class:"btn-open-search",onClick:()=>{this.loadOptions("ADVANCED")},slot:"leftIcon"}:{disabled:!this.enabled,tabindex:-1,class:"btn-open-options",slot:"rightIcon",onClick:()=>this.showOptions()})),e("section",{class:"list-container",ref:o=>this._listContainer=o},e("div",{class:"options-list",ref:o=>this._optionsList=o},this._visibleOptions.map(((o,t)=>this.buildItem(o,t))))))}get el(){return r(this)}static get watchers(){return{value:["internalUpdate"]}}};a.style=':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)}ez-text-input{--ez-text-input__input--background-color:var(--ez-combo-box__input--background-color, #FFFFFF);--ez-text-input__input--border-color:var(--ez-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(--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)}';export{a as ez_combo_box}
@@ -1 +0,0 @@
1
- class t{static async showDialog(t,n,e=null,a,o=!1){return new Promise((s=>{let c=document.querySelector("ez-dialog");c||(c=document.createElement("ez-dialog"),window.document.body.appendChild(c)),c.show(t,n,o,a,e).then((t=>s(t)))}))}static async alert(n,e,a=null){return t.showDialog(n,e,a,!1,!1)}static async error(n,e,a=null){return t.showDialog(n,e,a,!1,!0)}static async confirm(n,e,a=null,o=!1){return t.showDialog(n,e,a,!0,o)}static async info(t){let n=document.querySelector("ez-toast");n||(n=document.createElement("ez-toast"),window.document.body.appendChild(n)),n.message=t,n.fadeTime=4e3,n.show()}}export{t as A}
@@ -1 +0,0 @@
1
- import{r as e,h as t,g as a,H as s}from"./p-8f4851a6.js";import{g as r}from"./p-9dfd537e.js";import"./p-7107d7ef.js";let n=class{constructor(t){e(this,t)}buildField(e){let t=e.getAttribute("label"),a=e.getAttribute("name")||t,s=e.getAttribute("ui")||"SHORTTEXT",r=[];if("OPTIONSELECTOR"===s){t||(t="Selecione uma das opções:");const a={};Array.from(e.getElementsByTagName("OPTION")).forEach(((e,t)=>{const s=e.getAttribute("value")||t;a[s]=e.textContent})),r.push({name:"options",value:JSON.stringify(a)})}else if("FILE"===s){const t=e.querySelector("URL"),a=e.querySelectorAll("HEADERS>HEADER");if(t&&r.push({name:"URL",value:t.textContent}),a&&a.length>0){const e={};a.forEach((t=>{e[t.getAttribute("name")]=t.textContent})),r.push({name:"HEADERS",value:JSON.stringify(e)})}this.addPropertyIfExists(r,e,"maxfiles")}else t||(t=e.textContent),this.addPropertyIfExists(r,e,"precision"),this.addPropertyIfExists(r,e,"prettyprecision");return{name:a,userInterface:s,label:t,defaultValue:e.getAttribute("defaultValue"),required:"true"===e.getAttribute("required"),readOnly:"true"===e.getAttribute("readonly"),properties:r}}addPropertyIfExists(e,t,a){const s=t.getAttribute(a);s&&e.push({name:a,value:s})}buildFieldSet(e,t){return{label:t.getAttribute("label"),fields:Array.from(t.getElementsByTagName("FIELD")).map((t=>{const a=this.buildField(t);return e.addFieldMetadata(a),{name:a.name}}))}}fromElements(e,t,a,s,n){const i={name:a||t,dataUnit:s,label:t,autoLoad:n};return Array.from(e).forEach((e=>{switch(e.tagName.toUpperCase()){case"FIELD":i.items||(i.items=[]);const t=this.buildField(e);s.addFieldMetadata(t),i.items.push({name:t.name});break;case"FIELD-SET":i.items||(i.items=[]),i.items.push(this.buildFieldSet(s,e));break;case"SUB-FORM":i.subForms||(i.subForms=[]);const a=e.getAttribute("label")||"Subform "+(i.subForms.length+1),n=e.getAttribute("name")||a,l=e.getAttribute("dataunit");let o;o=l?new r(l,"noname",e.hasAttribute("many")?"N":"1"):s,i.subForms.push(this.fromElements(e.children,a,n,o,"true"===e.getAttribute("autoload")))}})),i}connectedCallback(){this.dataunit||(this.dataunit="dataunit_"+(this.name||this.label||(new Date).getTime()));const e=new r(this.dataunit,"noname",this.many?"N":"1");this.metadata=this.fromElements(this._host.children,this.label,this.name,e,this.autoload)}render(){return t(s,null)}get _host(){return a(this)}};export{n as form_metadata}
@@ -1 +0,0 @@
1
- let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},i={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},r=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),a="http://www.w3.org/1999/xlink",u=new WeakMap,f=e=>"sc-"+e.o,h={},p=e=>"object"==(e=typeof e)||"function"===e,d=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1,r=[];const c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!p(l))&&(l+=""),o&&i?r[r.length-1].i+=l:r.push(o?y(null,l):l),i=o)};if(c(n),t){t.key&&(s=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,$);const a=y(e,null);return a.u=t,r.length>0&&(a.h=r),a.p=s,a},y=(e,t)=>({t:0,m:e,i:t,$:null,h:null,u:null,p:null}),m={},$={forEach:(e,t)=>e.map(w).forEach(t),map:(e,t)=>e.map(w).map(t).map(b)},w=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.g,vtag:e.m,vtext:e.i}),b=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),d(e.vtag,t,...e.vchildren||[])}const t=y(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.g=e.vname,t},g=(e,t,n,l,o,r)=>{if(n!==l){let c=Z(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=j(n),o=j(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const s=p(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let i=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,i=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(i?e.removeAttributeNS(a,t):e.removeAttribute(t)):(!c||4&r||o)&&!s&&(l=!0===l?"":l,i?e.setAttributeNS(a,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):Z(s,u)?u.slice(2):u[2]+t.slice(3),n&&i.rel(e,t,n,!1),l&&i.ael(e,t,l,!1)}},v=/\s/,j=e=>e?e.split(v):[],k=(e,t,n,l)=>{const s=11===t.$.nodeType&&t.$.host?t.$.host:t.$,o=e&&e.u||h,i=t.u||h;for(l in o)l in i||g(s,l,o[l],void 0,n,t.t);for(l in i)g(s,l,o[l],i[l],n,t.t)},S=(t,l,s)=>{let i,r,c=l.h[s],a=0;if(null!==c.i)i=c.$=o.createTextNode(c.i);else{if(n||(n="svg"===c.m),i=c.$=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.m),n&&"foreignObject"===c.m&&(n=!1),k(null,c,n),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),c.h)for(a=0;a<c.h.length;++a)r=S(t,c,a),r&&i.appendChild(r);"svg"===c.m?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},O=(e,n,l,s,o,i)=>{let r,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=S(null,l,o),r&&(s[o].$=r,c.insertBefore(r,n)))},M=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.$,L(l),s.remove())},x=(e,t)=>e.m===t.m&&e.p===t.p,C=(e,t)=>{const l=t.$=e.$,s=e.h,o=t.h,i=t.m,r=t.i;null===r?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||k(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o,i=0,r=0,c=0,a=0,u=t.length-1,f=t[0],h=t[u],p=l.length-1,d=l[0],y=l[p];for(;i<=u&&r<=p;)if(null==f)f=t[++i];else if(null==h)h=t[--u];else if(null==d)d=l[++r];else if(null==y)y=l[--p];else if(x(f,d))C(f,d),f=t[++i],d=l[++r];else if(x(h,y))C(h,y),h=t[--u],y=l[--p];else if(x(f,y))C(f,y),e.insertBefore(f.$,h.$.nextSibling),f=t[++i],y=l[--p];else if(x(h,d))C(h,d),e.insertBefore(h.$,f.$),h=t[--u],d=l[++r];else{for(c=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].p&&t[a].p===d.p){c=a;break}c>=0?(o=t[c],o.m!==d.m?s=S(t&&t[r],n,c):(C(o,d),t[c]=void 0,s=o.$),d=l[++r]):(s=S(t&&t[r],n,r),d=l[++r]),s&&f.$.parentNode.insertBefore(s,f.$)}i>u?O(e,null==l[p+1]?null:l[p+1].$,n,l,r,p):r>p&&M(t,i,u)})(l,s,t,o):null!==o?(null!==e.i&&(l.textContent=""),O(l,null,t,o,0,o.length-1)):null!==s&&M(s,0,s.length-1),n&&"svg"===i&&(n=!1)):e.i!==r&&(l.data=r)},L=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(L)},P=e=>Q(e).v,R=(e,t,n)=>{const l=P(e);return{emit:e=>E(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},E=(e,t,n)=>{const l=i.ce(t,n);return e.dispatchEvent(l),l},W=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},T=(e,t)=>{if(e.t|=16,!(4&e.t))return W(e,e.k),ue((()=>U(e,t)));e.t|=512},U=(e,t)=>{const n=e.S;let l;return t&&(l=z(n,"componentWillLoad")),l=N(l,(()=>z(n,"componentWillRender"))),N(l,(()=>A(e,n,t)))},A=async(e,t,n)=>{const l=e.v,s=l["s-rc"];n&&(e=>{const t=e.O,n=e.v,l=t.t,s=((e,t)=>{let n=f(t),l=le.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=u.get(e=e.head||e);s||u.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);D(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>F(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},D=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.v,o=n.O,i=n.M||y(null,null),r=(e=>e&&e.m===m)(l)?l:d(null,null,l);t=s.tagName,o.C&&(r.u=r.u||{},o.C.map((([e,t])=>r.u[t]=s[e]))),r.m=null,r.t|=4,n.M=r,r.$=i.$=s.shadowRoot||s,e=s["s-sc"],C(i,r)})(n,l)}catch(e){ee(e,n.v)}return null},F=e=>{const t=e.v,n=e.S,l=e.k;z(n,"componentDidRender"),64&e.t||(e.t|=64,V(t),z(n,"componentDidLoad"),e.L(t),l||q()),e.P(t),e.j&&(e.j(),e.j=void 0),512&e.t&&ae((()=>T(e,!1))),e.t&=-517},H=e=>{{const t=Q(e),n=t.v.isConnected;return n&&2==(18&t.t)&&T(t,!1),n}},q=()=>{V(o.documentElement),ae((()=>E(s,"appload",{detail:{namespace:"ezui"}})))},z=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){ee(e)}},N=(e,t)=>e&&e.then?e.then(t):t(),V=e=>e.classList.add("hydrated"),_=(e,t,n)=>{if(t.R){e.watchers&&(t.W=e.watchers);const l=Object.entries(t.R),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>Q(this).T.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=Q(e),o=s.v,i=s.T.get(t),r=s.t,c=s.S;if(n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.R[t][0]),!(8&r&&void 0!==i||n===i)&&(s.T.set(t,n),c)){if(l.W&&128&r){const e=l.W[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){ee(e,o)}}))}2==(18&r)&&T(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=Q(this);return n.U.then((()=>n.S[e](...t)))}})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){i.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.C.push([e,s]),s}))}}return e},B=e=>{z(e,"connectedCallback")},G=(e,t={})=>{const n=[],l=t.exclude||[],r=s.customElements,a=o.head,u=a.querySelector("meta[charset]"),h=o.createElement("style"),p=[];let d,y=!0;Object.assign(i,t),i.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],o:t[1],R:t[2],A:t[3]};s.R=t[2],s.C=[],s.W={};const o=s.o,a=class extends HTMLElement{constructor(e){super(e),Y(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?p.push(this):i.jmp((()=>(e=>{if(0==(1&i.t)){const t=Q(e),n=t.O,l=()=>{};if(1&t.t)B(t.S);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){W(t,t.k=n);break}}n.R&&Object.entries(n.R).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=ne(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.W=s.watchers,_(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){ee(e)}t.t&=-9,t.t|=128,e(),B(t.S)}if(s.style){let e=s.style;const t=f(n);if(!le.has(t)){const l=()=>{};((e,t,n)=>{let l=le.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,le.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.k,i=()=>T(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){i.jmp((()=>{}))}componentOnReady(){return Q(this).D}};s.F=e[0],l.includes(o)||r.get(o)||(n.push(o),r.define(o,_(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,u?u.nextSibling:a.firstChild),y=!1,p.length?p.map((e=>e.connectedCallback())):i.jmp((()=>d=setTimeout(q,30)))},I=e=>{const t=new URL(e,i.l);return t.origin!==s.location.origin?t.href:t.pathname},J=e=>i.l=e,K=new WeakMap,Q=e=>K.get(e),X=(e,t)=>K.set(t.S=e,t),Y=(e,t)=>{const n={t:0,v:e,O:t,T:new Map};return n.U=new Promise((e=>n.P=e)),n.D=new Promise((e=>n.L=e)),e["s-p"]=[],e["s-rc"]=[],K.set(e,n)},Z=(e,t)=>t in e,ee=(e,t)=>(0,console.error)(e,t),te=new Map,ne=e=>{const t=e.o.replace(/-/g,"_"),n=e.F,l=te.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(te.set(n,e),e[t])),ee)},le=new Map,se=[],oe=[],ie=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&i.t?ae(ce):i.raf(ce))},re=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){ee(e)}e.length=0},ce=()=>{re(se),re(oe),(l=se.length>0)&&i.raf(ce)},ae=e=>r().then(e),ue=ie(oe,!0);export{m as H,I as a,G as b,R as c,H as f,P as g,d as h,r as p,X as r,J as s}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-7107d7ef.js";function s(t,s){return{type:"FORM/CHANGETAB",payload:{formId:t,index:s}}}function i(t,s){return{type:"FORM/CLEAREDITION",payload:{dataUnit:t,recordsLimit:s}}}function e(t,s){return{type:"FORM/COLLAPSEGROUP",payload:{collapseId:t,collapsed:s}}}function h(){return{type:"FORM/LOAD"}}function a(t){return{type:"FORM/DATALOADED",payload:{dataUnit:t}}}function r(t,s,i,e,h,a,r){return{type:"FORM/INVALIDFIELD",payload:{tabController:t,tabIndex:s,dataUnit:i,recordId:h,recordIndex:e,fieldName:a,errorMessage:r}}}function n(t,s){return{type:"FORM/SHOWHIDENAVBTN",payload:{buttonName:t,status:s}}}const o=(t,s)=>t.hist.present.currentTabIndex[s]||0,d=(t,s)=>t.hist.present.collapsedGroups[s],c=(t,s)=>t.hist.present.changes[s],u=(t,s)=>t.hist.present.currentRecordIndex[s]||0,l=(t,s)=>t.hist.present.newRecordIndex[s]||0,p=t=>t.nonhist.visibleButtons;class R{constructor(t,s,i="1",e=null){this.name=t,this.unitLabel=s,this.cardinality=i,this._children=[],this._fields=new Map,this._requiredFields=[],null!=e&&(e._children.push(this),this.parentDU=e,this.parentDUName=e.name)}set store(t){this._store=t}set fields(t){t&&t.forEach((t=>this.addFieldMetadata(t)))}addFieldMetadata(t){this._fields.set(t.name,t),t.required&&this._requiredFields.push(t)}getFieldMetadata(t){if(this._fields)return this._fields.get(t)}get requiredFields(){return this._requiredFields}isLoading(){return this._store.getState().nonhist.dataLoading[this.name]}hasChanges(){const t=this._store.getState();return void 0!==c(t,this.name)||l(t,this.name)>0}hasNext(){return u(this._store.getState(),this.name)<this.records.length-1}hasPrevious(){return u(this._store.getState(),this.name)>0}hasCurrentRecord(){return null!=this.getCurrentRecord()}previous(){this._store.dispatch({type:"FORM/NAVIGATE",payload:{dataUnit:this.name,limit:0,backward:!0}})}next(){this._store.dispatch({type:"FORM/NAVIGATE",payload:{dataUnit:this.name,limit:this.records.length,backward:!1}})}getValue(t){const s=this.getCurrentRecord();if(!s)return;const i=this.getRecordChanges(s);return i&&void 0!==i[t]?i[t]:s[t]||null}getErrorMessage(t){const s=this.getCurrentRecord();return((t,s,i,e)=>((t.nonhist.invalidFields[this.name]||{})[i]||{})[e]||"")(this._store.getState(),0,null==s?void 0:s.record__id,t)}changeValue(t,s){0==this.records.length&&this.insert(),this._changeDeboucing&&window.clearTimeout(this._changeDeboucing),this._changeDeboucing=window.setTimeout((()=>{const i=this.getCurrentRecord();this._store.dispatch(function(t,s,i,e){return{type:"FORM/CHANGEFIELD",payload:{dataUnit:t,recordId:s,fieldName:i,value:e}}}(this.name,i.record__id,t,s))}),100)}cancel(){this.records=this.records.filter((t=>!t.record__id.startsWith("NEW_"))),this._store.dispatch(i(this.name,this.records.length-1))}insert(){const t=this.records.length,s={record__id:"NEW_"+(l(this._store.getState(),this.name)+1)};this.bindToParent(s),this.records.push(s),this._store.dispatch(function(t,s){return{type:"FORM/INSERT",payload:{dataUnit:t,insertionIndex:s}}}(this.name,t))}buildChange(t){const s=c(this._store.getState(),this.name);let i;s&&(i=s[t.record__id]);let e=[];if(this._children.forEach((s=>{e=e.concat(s.getSubChanges(t.record__id))})),i||e.length>0){const s={__data__unit:this.name,__record__id:t.record__id,__sub__changes:e};return i&&Object.keys(i).forEach((()=>{})),s}}getSubChanges(t){const s=[];return this._records&&this._records.filter((s=>s.parent__record__id===t)).forEach((t=>{const i=this.buildChange(t);i&&s.push(i)})),s}getChangesToSave(){let t=[];return this._records&&this._records.forEach((s=>{const i=this.buildChange(s);i&&t.push(i)})),t}save(){if(!this.validateRecords("SAVE"))return;let s;this._store.dispatch({type:"FORM/SAVINGCHANGES",payload:{dataUnit:this.name}}),this.saveExecutor&&(s=this.saveExecutor(this.getChangesToSave())),s instanceof Promise?s.then((t=>this.processSaveResult(t))).catch((s=>{this._store.dispatch(a(this.name)),t.error("Falha ao tentar salvar",s)})):this.processSaveResult(s)}load(){let t;this._store.dispatch({type:"FORM/DATALOADING",payload:{dataUnit:this.name}}),this.loadExecutor&&(t=this.loadExecutor({dataUnit:this.name})),t instanceof Promise?t.then((t=>this.processLoadResult(t))):this.processLoadResult(t)}remove(){const t=u(this._store.getState(),this.name);let s;if(this._store.dispatch({type:"FORM/REMOVINGRECORD",payload:{dataUnit:this.name}}),this.removeExecutor){const t=this.getCurrentRecord();s=this.removeExecutor({dataUnit:this.name,recordId:t.record__id,record:t})}else s=!0;s&&(s instanceof Promise?s.then((s=>this.processRemoveResult(s,t))):this.processRemoveResult(s,t))}processSaveResult(t){t&&(t instanceof Array?t.forEach((t=>this.processSaveResult(t))):t.__data__unit===this.name&&"1"===this.cardinality&&(this.records=[this.buildRecordFromSaveResult(this.records[0],t)])),this._store.dispatch(i(this.name,this.records.length-1)),this._store.dispatch({type:"FORM/CHANGESSAVED",payload:{dataUnit:this.name}})}buildRecordFromSaveResult(t,s){const i=t?Object.assign({},t):{record__id:""};return Object.keys(s).forEach((t=>{t.startsWith("__")||(i[t]=s[t])})),i}processLoadResult(t){this.records=t,this._store.dispatch(i(this.name,this.records.length-1)),this._store.dispatch(a(this.name))}processRemoveResult(t,s){t&&(this.records.splice(s,1),this._store.dispatch(i(this.name,this.records.length-1))),this._store.dispatch({type:"FORM/RECORDREMOVED",payload:{dataUnit:this.name}})}set records(t){this._records=t,this.parentDU&&this._records.forEach((t=>this.bindToParent(t)))}bindToParent(t){if(this.parentDU){const s=this.parentDU.getCurrentRecord();s&&(t.parent__record__id=s.record__id)}}get records(){return this._records||(this._records=[]),this._records}getCurrentRecord(){const t=u(this._store.getState(),this.name);return this.records[t]}getRecordChanges(t){return void 0===t&&(t=this.getCurrentRecord()),t?((t,s,i)=>{const e=c(t,this.name);return e?e[i]:void 0})(this._store.getState(),0,t.record__id):void 0}validateRecords(s="UNKNOWN"){if(!this.recordsValidator)return!0;const i=c(this._store.getState(),this.name),e=[];this.records.forEach(((t,s)=>{const h=i?i[t.record__id]:void 0;h&&e.push(Object.assign(Object.assign(Object.assign({},t),h),{record__index:s,record__changedfields:Object.keys(h)}))}));const h=this.recordsValidator.validateRecords(this,e,s);return h.message&&t.info(h.message),h.isValid}}var O;!function(t){t.SEARCHING="SEARCHING",t.REQUIREMENT="REQUIREMENT",t.VISIBILITY="REQUIREMENT"}(O||(O={}));export{O as D,o as a,p as b,e as c,s as d,n as e,h as f,R as g,r as i,d as s}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as a,g as o,f as r}from"./p-8f4851a6.js";import"./p-b36308e7.js";import{D as l}from"./p-c89629eb.js";import{C as s}from"./p-d1889704.js";import{A as n}from"./p-7107d7ef.js";let d=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.value=!1,this.headerSize="small",this.iconPlacement="left"}observeValue(){this.ezChange.emit()}async showHide(){this.value=!this.value}render(){return i(a,null,"right"==this.iconPlacement?i("div",{class:"collapsible-box__title"},i("label",{class:("right"==this.iconPlacement?"collapsible-box__label--icon-right ":"collapsible-box__label ")+(this.headerSize?"font--"+this.headerSize:""),onClick:()=>this.showHide(),title:this.label},this.label),i("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()})):i("div",{class:"collapsible-box__title"},i("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()}),i("label",{class:("right"==this.iconPlacement?"collapsible-box__label--icon-right ":"collapsible-box__label ")+(this.headerSize?"font--"+this.headerSize:""),onClick:()=>this.showHide(),title:this.label},this.label)),this.value?null:i("slot",null))}static get watchers(){return{value:["observeValue"]}}};d.style=':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}';let h=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.enabled=!0}setLabel(){this._textInput.label=this.label}setErrorMessage(){this._textInput.errorMessage=this.errorMessage}applyValueToInput(){this._textInput&&(this._textInput.value=this.getTextValue(this.value))}changeValue(t){t=null==t?null:l.clearTime(t),this._textInput.errorMessage="",this.getTextValue(t)!==this.getTextValue(this.value)&&(this.value=t,this.ezChange.emit())}showCalendar(){this.parseDate(),this._calendar.value=this.value,this._calendar.fitVertical(this._textInput.errorMessage?0:-17,this._elem.clientHeight)}hideCalendar(){this.changeValue(this._calendar.value),this._calendar.hide()}parseDate(){const t=this._textInput.value,e=l.strToDate(t);e||!t?this.changeValue(this.value===e?this.value:e):this._textInput.errorMessage="O valor digitado não é uma data válida"}getTextValue(t){return t?new Intl.DateTimeFormat("pt-BR").format(t):null}componentDidLoad(){s.applyVarsTextInput(this._elem,this._textInput)}render(){return i(a,null,i("ez-text-input",{ref:t=>this._textInput=t,onBlur:()=>this.parseDate(),onKeyDown:t=>{"H"!==t.key&&"h"!==t.key||this.changeValue(new Date)},label:this.label,onEzChange:t=>t.stopPropagation(),value:this.getTextValue(this.value),restrict:"0123456789/",enabled:this.enabled,errorMessage:this.errorMessage},i("button",{disabled:!this.enabled,tabindex:-1,class:"btn-open-cal",onClick:()=>this.showCalendar(),slot:"leftIcon"})),i("ez-calendar",{onEzChange:t=>{this.hideCalendar(),t.stopPropagation()},floating:!0,ref:t=>this._calendar=t}))}get _elem(){return o(this)}static get watchers(){return{label:["setLabel"],errorMessage:["setErrorMessage"],value:["applyValueToInput"]}}};h.style=':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)}';let c=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.showPopup=e(this,"showPopup",7),this.enabled=!0,this.showSelectedValue=!0,this.showOptionValue=!0}updateValue(){this._comboElement&&(this._comboElement.value=this.value)}onComboChange(t){t.stopPropagation(),this.value=t.detail,this.ezChange.emit(t.detail)}render(){return i("ez-combo-box",{ref:t=>this._comboElement=t,value:this.value,label:this.label,enabled:this.enabled,errorMessage:this.errorMessage,optionLoader:this.optionLoader,searchMode:!0,onEzChange:t=>this.onComboChange(t),showSelectedValue:this.showSelectedValue,showOptionValue:this.showOptionValue})}static get watchers(){return{value:["updateValue"]}}};c.style=":host{width:100%}";let p=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this.enabled=!0,this.rows=4}showError(){"string"==typeof this.errorMessage&&""!==this.errorMessage?(this._container.classList.add("hasError"),this._messageBoxElem.classList.add("hasError")):(this._container.classList.remove("hasError"),this._messageBoxElem.classList.remove("hasError"))}updateInputValue(){this._inputElem.value=this.value,this.handleChange(),this.adjustFloatingLabel(),this.ezChange.emit(this.value)}adjustFloatingLabel(){if(this.label){const t=this.value&&this.value.toString().length>0,e=this._labelElem.classList.contains("textarea__label--floated");t||this.isFocused()?e||this._labelElem.classList.add("textarea__label--floated"):e&&this._labelElem.classList.remove("textarea__label--floated")}}isFocused(){return null!==this._hostElement.shadowRoot.activeElement}async setFocus(){this._inputElem.focus()}async setBlur(){this._inputElem.blur()}handleFocusout(){this.adjustFloatingLabel(),this._container&&this._container.classList.contains("textarea--focus")&&this._container.classList.remove("textarea--focus")}handleChange(){this.errorMessage="",this.value=this._inputElem.value}handleFocus(){this.label&&this._labelElem&&!this._labelElem.classList.contains("textarea__label--floated")&&this._labelElem.classList.add("textarea__label--floated"),this._container&&!this._container.classList.contains("textarea--focus")&&this._container.classList.add("textarea--focus")}componentDidLoad(){this.showError(),this.adjustFloatingLabel()}render(){return i(a,null,i("div",{class:"textarea",ref:t=>this._container=t},this.label?i("label",{ref:t=>this._labelElem=t,class:this.enabled?"textarea__label":"textarea__label textarea__label--disabled",onClick:()=>this._inputElem.focus(),title:this.label},this.label):null,i("textarea",{onFocus:()=>this.handleFocus(),ref:t=>this._inputElem=t,value:this.value,disabled:!this.enabled,onInput:()=>{this.handleChange()},onFocusout:()=>{this.handleFocusout()},onKeyDown:t=>t.stopPropagation(),rows:this.rows})),i("span",{class:"message-box",ref:t=>this._messageBoxElem=t,title:this.errorMessage},this.errorMessage))}get _hostElement(){return o(this)}static get watchers(){return{errorMessage:["showError"],value:["updateInputValue"]}}};p.style=":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--large, 500);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;margin-top:calc(var(--space--medium, 12px) + 4px);width:100%;font-weight:var(--text-weight--large, 600);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);padding:0;background:none}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:2px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__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-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}";class b{constructor(t){this.file=t,this.size=t.size,this.name=t.name}abortUpload(){this._uploadingXhr&&(this._aborted=!0,this._uploadingXhr.abort(),this._uploadingXhr=void 0)}isUploading(){return void 0!==this._uploadingXhr}async upload(t,e,i){return new Promise(((a,o)=>{const r=new XMLHttpRequest;this._uploadingXhr=r,this._aborted=!1,this.progress=0,r.upload.onprogress=t=>{const e=t.loaded,a=t.total;this.progress=~~(e/a*100),i(this,e,a)},r.onreadystatechange=()=>{if(4==r.readyState){this._uploadingXhr=void 0;const t=r.status;this._aborted||(0===t?o("Servidor indisponível"):t>=500?o("Erro inesperado no servidor"):t>=400&&o("Operação não permitida"));const e=r.response;e&&a(JSON.parse(e))}},r.ontimeout=()=>{o("Tempo limite de transferência atingido.")};const l=new FormData;l.append("ARQUIVO",this.file,this.file.name),r.open("POST",t,!0),e&&e.forEach(((t,e)=>r.setRequestHeader(e,t))),r.send(l)}))}async delete(t,e,i){return new Promise(((a,o)=>{const r=new XMLHttpRequest;r.onreadystatechange=()=>{4==r.readyState&&(0===r.status?o("Servidor indisponível"):r.status>=500?o("Erro inesperado no servidor"):r.status>=400&&o("Operação não permitida"),a(!0))},r.ontimeout=()=>{o("Tempo limite de remoção atingido.")},r.open("DELETE",e,!0),i&&i.forEach(((t,e)=>r.setRequestHeader(e,t))),r.send(JSON.stringify(t))}))}}let x=class{constructor(i){t(this,i),this.ezChange=e(this,"ezChange",7),this._filePointers=new Map,this.enabled=!0}changeValue(t){t!==this._updatingValue&&(this._filePointers.forEach((t=>{this.isRemoteFile(t)&&t.abortUpload()})),this._filePointers=new Map,this.updateFilePointers()),this._updatingValue=void 0}updateFilePointers(){this.value&&this.value.forEach((t=>this._filePointers.set(t.name,t)))}normalizeRequestHeaders(){if(this._requestHeaders=new Map,"string"==typeof this.requestHeaders)try{this.requestHeaders=JSON.parse(this.requestHeaders)}catch(t){this.requestHeaders=void 0}for(var t in this.requestHeaders)this._requestHeaders.set(t,this.requestHeaders[t])}async addFiles(t){if(this.maxFiles>0){let e=this._filePointers.size;if(t.forEach((t=>{this._filePointers.has(t.name)||e++})),e>this.maxFiles)return void this.showError(`A quantidade máxima de arquivos é ${this.maxFiles}.`)}Array.prototype.forEach.call(t,this.addFile.bind(this))}async addFile(t){const e=this._filePointers.get(t.name);e?n.confirm("Substituir arquivo",`Já existe um arquivo chamado "${t.name}". Deseja substituí-lo?`).then((i=>{i&&(this.isRemoteFile(e)&&e.abortUpload(),this.doAddFile(t))})):this.doAddFile(t)}async doAddFile(t){if(this.validateFile(t)){const e=new b(t);this._filePointers.set(t.name,e),e.upload(this.urlUpload,this._requestHeaders,(t=>this.updateFeedback(t))).then((t=>t.forEach((t=>this.finishUpload(t))))).catch((t=>this.showError(t))),r(this)}}finishUpload(t){this._filePointers.set(t.name,t),this.updateValue()}updateValue(){this._updatingValue=[],this._filePointers.forEach((t=>{this.isRemoteFile(t)||this._updatingValue.push(t)})),this.value=this._updatingValue,this.ezChange.emit(this.value)}buildProgressId(t){return`PROGRESS_${t.name.replace(/[^a-z0-9_]/gi,"_")}_${t.file.lastModified}`}updateFeedback(t){window.requestAnimationFrame((()=>{if(this._host){const e=this._host.shadowRoot.querySelector("#"+this.buildProgressId(t));e&&(e.value=t.progress)}}))}validateFile(t){return!this._filePointers.has(t.name)&&this.maxFiles>0&&this._filePointers.size>=this.maxFiles?(this.showError(`A quantidade máxima de arquivos é ${this.maxFiles}.`),!1):0===t.size?(this.showError(`Erro de permissão: O arquivo "${t.name}" não pode ser enviado.`),!1):this.urlUpload?!(this.maxFileSize>=0&&t.size>this.maxFileSize&&(this.showError("O tamanho máximo dos arquivos é de "+this.formatBytes(this.maxFileSize)),1)):(this.showError("Endereço de upload não informado"),!1)}showError(t){n.alert("Enviando arquivo",t)}formatBytes(t,e=1){if(0===t)return"0 Bytes";const i=e<0?0:e,a=Math.floor(Math.log(t)/Math.log(1024));return parseFloat((t/Math.pow(1024,a)).toFixed(i))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][a]}onFileInputChange(t){this.addFiles(Array.from(t.target.files)),this._fileInput.value=""}isRemoteFile(t){return"file"in t}removeFromList(t){this._filePointers.delete(t),this.updateValue()}removeFile(t){const e=this._filePointers.get(t);if(this.isRemoteFile(e))e.abortUpload(),this.removeFromList(t);else if(this.urlDelete){const i=new b(null);this._filePointers.set(e.name,i),i.delete(e,this.urlDelete,null).then((()=>this.removeFromList(t))).catch((t=>this.showError(t)))}else this.removeFromList(t)}openFilesDialog(){this.enabled&&this._fileInput.click()}componentDidLoad(){this.enabled&&this._dropZone&&window.FileList&&window.File&&(this._dropZone.addEventListener("dragover",(t=>{t.stopPropagation(),t.preventDefault(),t.dataTransfer.dropEffect="copy",this._dropZone.style.background="#c2dbff"})),this._dropZone.addEventListener("drop",(t=>{t.stopPropagation(),t.preventDefault(),this.addFiles(Array.from(t.dataTransfer.files)),this._dropZone.style.background=""})),this._dropZone.addEventListener("dragleave",(()=>{this._dropZone.style.background=""})))}componentWillRender(){this.value&&this._filePointers.size<this.value.length&&this.updateFilePointers()}render(){return i("div",{ref:t=>this._dropZone=t,class:this.evalDisabledClass("iu","background--disabled")},i("div",{class:"iu__container",onClick:()=>this.openFilesDialog()},i("div",{class:"iu_header"},this.label?i("label",{class:this.evalDisabledClass("iu__label","text--disabled"),title:this.label},this.label):null,i("div",{class:this.evalDisabledClass("iu__icon-label","mouse-pointer--disabled")},i("button",{class:"iu__file-icon",disabled:!this.enabled}),i("div",{class:this.evalDisabledClass("text text--center text--medium text--primary","text--disabled")},this.enabled?"Arraste e solte ou clique para adicionar arquivos":"Somente leitura"))),this.buildFooter()),i("input",{ref:t=>this._fileInput=t,onChange:t=>this.onFileInputChange(t),type:"file",multiple:!0,hidden:!0}))}buildFooter(){if(0===this._filePointers.size)return null;const t=[];return this._filePointers.forEach((e=>t.push(this.buildFileItem(e)))),i("div",{class:"iu__footer"},t)}buildFileItem(t){const e=t.name,a=Number(t.progress),o=t.downloadURL,r=`${e} (${this.formatBytes(t.size)})`;return i("div",{class:"iu__item",key:e,onClick:t=>t.stopPropagation()},i("div",{class:"iu__item-label modificador"},i("div",{title:r,class:"col--stretch align--middle file__name text text--primary text--small text--ellipsis align--middle"},o?i("a",{href:o,download:!0},r):r)),isNaN(a)?null:i("div",{class:"col col--sd-4 col--stretch align--middle"},i("progress",{id:this.buildProgressId(t),value:a,max:"100"})),this.enabled?i("div",{class:"col col--stretch align--middle"},i("button",{class:"btn-cancel ",onClick:()=>this.removeFile(e)})):null)}evalDisabledClass(t,e){return this.enabled?t:`${t} ${e}`}get _host(){return o(this)}static get watchers(){return{value:["changeValue"],requestHeaders:["normalizeRequestHeaders"]}}};x.style=':host{--ez-upload--height:42px;--ez-upload--width:100%;--ez-upload__icon--width:48px;--ez-upload__container--background-color:var(--background--medium, #d2dce9);--ez-upload__color--primary:var(--color--primary, #008561);--ez-upload--padding--extra-small:var(--space--extra-small, 3px);--ez-upload--padding--small:var(--space--small, 6px);--ez-upload--padding--medium:var(--space--medium, 12px);--ez-upload--padding--large:var(--space--large, 24px);--ez-upload__border--color:var(--color-strokes, #DCE0E8);--ez-upload--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-upload--text--primary:var(--text-primary, #626e82);--ez-upload--font-size:var(--text--medium, 14px);--ez-upload--font-family:var(--font-pattern, Arial);--ez-upload--font-weight:var(--text-weight--large, 500);--ez-upload__btn__cancel-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="8x" width="8px"><path d="M 8,0.8 7.2,0 4,3.2 0.8,0 0,0.8 3.2,4 0,7.2 0.8,8 4,4.8 7.2,8 8,7.2 4.8,4 Z"/></svg>\');--ez-upload__file-icon-image:url(\'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="11x" width="9px"><path d="M 1.2272719,8.4999999 V 2.75 c 0,-1.1045695 1.4652499,-2 3.2727273,-2 1.8074777,0 3.2727281,0.8954305 3.2727281,2 V 8.9999999 C 7.7727273,9.690356 6.8569456,10.25 5.7272719,10.25 4.5975985,10.25 3.6818174,9.690356 3.6818174,8.9999999 V 3.75 c 0,-0.2761425 0.3663125,-0.5 0.8181818,-0.5 0.4518694,0 0.8181818,0.2238575 0.8181818,0.5 V 8.4999999 H 6.5454537 V 3.75 C 6.5454537,3.059644 5.6296725,2.5 4.4999992,2.5 3.3703258,2.5 2.4545446,3.059644 2.4545446,3.75 V 8.9999999 C 2.4545446,10.10457 3.9197945,11 5.7272719,11 7.5347496,11 9,10.10457 9,8.9999999 V 2.75 C 9,1.231217 6.9852809,0 4.4999992,0 2.0147181,5e-7 0,1.231217 0,2.75 v 5.7499999 z"/></svg>\');display:flex;flex-wrap:wrap;position:relative;font-family:var(--ez-upload--font-family);font-size:var(--ez-upload--font-size);width:var(--ez-upload--width);font-weight:var(--ez-upload--font-weight)}.iu{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:var(--ez-upload--padding--small);width:100%;border-radius:12px;box-sizing:border-box}.iu__container{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.iu__footer{display:flex;flex-wrap:wrap;justify-content:flex-start;width:100%;padding:0 var(--ez-upload--padding--medium) var(--ez-upload--padding--medium) var(--ez-upload--padding--medium);box-sizing:border-box}.iu__item{display:flex;width:100%;justify-content:flex-start;align-items:center;align-self:center;padding-bottom:var(--ez-upload--padding--extra-small);box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.iu__item-label{display:flex;max-width:80%;align-self:stretch;align-items:center}.file__name{font-weight:200}.box__content{width:100%;justify-content:center;align-items:center;height:100%;border:1px dashed var(--ez-upload__border--color);border-radius:6px;box-sizing:border-box}.box__container{display:flex;flex-wrap:wrap;background-color:var(--ez-upload__container--background-color);padding:6px;width:100%;border-radius:12px}a:-webkit-any-link{color:#008561;fill:#008561;cursor:pointer;text-decoration:none}progress[value]{display:flex;width:100%;appearance:none;border:1px solid var(--ez-upload__border--color);height:12px;justify-content:flex-start;align-items:center;border-radius:3px;position:relative}progress[value]::-webkit-progress-bar{display:flex;-webkit-appearance:none;width:100%;background-color:rgb(255, 255, 255);border-radius:2px;padding:2px}progress[value]::-webkit-progress-value{display:flex;width:100%;background-color:var(--ez-upload__color--primary)}.text--center{text-align:center}.align--middle{align-self:center;align-items:center}.text{font-family:"Sora", "Algerian";text-shadow:0 0 0 #353535, 0 0 1px transparent}.text--primary{color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.text--medium{font-size:14px}.text--small{font-size:12px}.btn-cancel{outline:none;border:none;background-color:unset;cursor:pointer}.btn-cancel::after{content:\'\';display:flex;background-color:var(--text--primary, #008561);width:8px;height:8px;-webkit-mask-image:var(--ez-upload__btn__cancel-image);mask-image:var(--ez-upload__btn__cancel-image)}.iu_header{display:flex;flex-direction:column;width:100%}.iu__label{padding:var(--space--small);box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-upload--font-family);font-size:var(--text--extra-small);font-weight:var(--ez-upload--font-weight);color:var(--ez-upload--text--primary);text-shadow:var(--ez-upload--text-shadow)}.iu__file-icon{outline:none;border:none;background-color:unset;cursor:pointer}.iu__file-icon:disabled{cursor:unset}.iu__file-icon::after{content:\'\';display:flex;background-color:var(--text--primary, #626e82);width:9px;height:11px;-webkit-mask-image:var(--ez-upload__file-icon-image);mask-image:var(--ez-upload__file-icon-image)}.iu__file-icon:disabled::after{background-color:var(--text--disable, #AFB6C0)}.iu__icon-label{justify-content:center;display:flex;cursor:pointer;padding:var(--ez-upload--padding--large) 0px;box-sizing:border-box}.background--disabled{background-color:var(--color--disable-secondary, #F2F5F8)}.text--disabled{color:var(--text--disable, #AFB6C0)}.mouse-pointer--disabled{cursor:unset}.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%}}';let u=class{constructor(e){t(this,e)}render(){return i(a,null)}};u.style=":host{display:flex;width:100%;height:42px;border-radius:12px;background:var(--background--medium);background-image:linear-gradient(to right, var(--background--medium) 0%, var(--background--strong) 20%, var(--background--medium) 40%, var(--background--medium) 100%);background-repeat:no-repeat;background-size:800px 1000px;animation-duration:1s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:placeholderShimmer;animation-timing-function:linear}@keyframes placeholderShimmer{0%{background-position:-800px 0}100%{background-position:800px 0}}";export{d as ez_collapsible_box,h as ez_date_input,c as ez_search,p as ez_text_area,x as ez_upload,u as place_holder}