@sankhyalabs/ezui 1.1.4 → 1.1.8

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 (186) hide show
  1. package/README.md +72 -72
  2. package/dist/{ezui/DataUnit-285bec19.js → cjs/DataUnit-28b290cb.js} +382 -369
  3. package/dist/{ezui/index-919090de.js → cjs/RequestMetadata-2cd01e8a.js} +4 -383
  4. package/dist/cjs/ez-action-chip.cjs.entry.js +52 -0
  5. package/dist/cjs/ez-button_14.cjs.entry.js +3341 -0
  6. package/dist/cjs/ez-label-chip.cjs.entry.js +131 -0
  7. package/dist/cjs/ez-modal.cjs.entry.js +115 -0
  8. package/dist/cjs/ez-number-input.cjs.entry.js +248 -0
  9. package/dist/cjs/ez-time-input.cjs.entry.js +180 -0
  10. package/dist/cjs/ezui.cjs.js +19 -0
  11. package/dist/cjs/form-metadata.cjs.entry.js +74 -0
  12. package/dist/cjs/index-9403fe8f.js +1322 -0
  13. package/dist/cjs/index.cjs.js +2 -0
  14. package/dist/cjs/loader.cjs.js +21 -0
  15. package/dist/collection/collection-manifest.json +31 -0
  16. package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -0
  17. package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -0
  18. package/dist/collection/components/ez-button/ez-button.css +94 -0
  19. package/dist/collection/components/ez-button/ez-button.js +125 -0
  20. package/dist/collection/components/ez-calendar/ez-calendar.css +210 -0
  21. package/dist/collection/components/ez-calendar/ez-calendar.js +215 -0
  22. package/dist/collection/components/ez-check/ez-check.css +266 -0
  23. package/dist/collection/components/ez-check/ez-check.js +168 -0
  24. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +68 -0
  25. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -0
  26. package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -0
  27. package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -0
  28. package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -0
  29. package/dist/collection/components/ez-date-input/ez-date-input.css +39 -0
  30. package/dist/collection/components/ez-date-input/ez-date-input.js +172 -0
  31. package/dist/collection/components/ez-form/ez-form.css +19 -0
  32. package/dist/collection/components/ez-form/ez-form.js +368 -0
  33. package/dist/collection/components/ez-form/store/Form.actions.js +132 -0
  34. package/dist/collection/components/ez-form/store/Form.reducer.js +194 -0
  35. package/dist/collection/components/ez-form/store/Form.selectors.js +44 -0
  36. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +207 -0
  37. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -0
  38. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +24 -0
  39. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -0
  40. package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -0
  41. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -0
  42. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -0
  43. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -0
  44. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -0
  45. package/dist/collection/components/ez-icon/ez-icon.css +37 -0
  46. package/dist/collection/components/ez-icon/ez-icon.js +56 -0
  47. package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -0
  48. package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -0
  49. package/dist/collection/components/ez-modal/ez-modal.css +87 -0
  50. package/dist/collection/components/ez-modal/ez-modal.js +224 -0
  51. package/dist/collection/components/ez-number-input/ez-number-input.css +144 -0
  52. package/dist/collection/components/ez-number-input/ez-number-input.js +465 -0
  53. package/dist/collection/components/ez-popover/ez-popover.css +39 -0
  54. package/dist/collection/components/ez-popover/ez-popover.js +323 -0
  55. package/dist/collection/components/ez-search/ez-search.css +296 -0
  56. package/dist/{ezui/ez-search.entry.js → collection/components/ez-search/ez-search.js} +527 -334
  57. package/dist/collection/components/ez-tabselector/ez-tabselector.css +126 -0
  58. package/dist/{ezui/ez-tabselector.entry.js → collection/components/ez-tabselector/ez-tabselector.js} +283 -209
  59. package/dist/collection/components/ez-text-area/ez-text-area.css +140 -0
  60. package/dist/collection/components/ez-text-area/ez-text-area.js +267 -0
  61. package/dist/collection/components/ez-text-input/ez-text-input.css +170 -0
  62. package/dist/collection/components/ez-text-input/ez-text-input.js +395 -0
  63. package/dist/collection/components/ez-time-input/ez-time-input.css +155 -0
  64. package/dist/collection/components/ez-time-input/ez-time-input.js +326 -0
  65. package/dist/collection/index.js +1 -0
  66. package/dist/collection/servidor.js +101 -0
  67. package/dist/collection/utils/FloatingManager.js +16 -0
  68. package/dist/collection/utils/utils.js +6 -0
  69. package/dist/custom-elements/index.js +5071 -0
  70. package/dist/esm/DataUnit-69e518fa.js +378 -0
  71. package/dist/esm/RequestMetadata-c265c9d5.js +527 -0
  72. package/dist/{ezui → esm}/ez-action-chip.entry.js +42 -42
  73. package/dist/esm/ez-button_14.entry.js +3324 -0
  74. package/dist/{ezui → esm}/ez-label-chip.entry.js +121 -121
  75. package/dist/{ezui → esm}/ez-modal.entry.js +105 -96
  76. package/dist/{ezui → esm}/ez-number-input.entry.js +238 -238
  77. package/dist/{ezui → esm}/ez-time-input.entry.js +170 -170
  78. package/dist/esm/ezui.js +17 -0
  79. package/dist/{ezui → esm}/form-metadata.entry.js +66 -66
  80. package/dist/esm/index-95bb3fd9.js +1293 -0
  81. package/dist/esm/index.js +1 -0
  82. package/dist/esm/loader.js +17 -0
  83. package/dist/esm/polyfills/core-js.js +11 -0
  84. package/dist/esm/polyfills/css-shim.js +1 -0
  85. package/dist/esm/polyfills/dom.js +79 -0
  86. package/dist/esm/polyfills/es5-html-element.js +1 -0
  87. package/dist/esm/polyfills/index.js +34 -0
  88. package/dist/esm/polyfills/system.js +6 -0
  89. package/dist/ezui/ezui.esm.js +1 -122
  90. package/dist/ezui/index.esm.js +0 -1
  91. package/dist/ezui/p-10ef58b3.js +1 -0
  92. package/dist/ezui/p-185c57f4.js +1 -0
  93. package/dist/ezui/p-22b82efb.entry.js +1 -0
  94. package/dist/ezui/p-77fdb4fd.entry.js +1 -0
  95. package/dist/ezui/p-9dfccb16.js +1 -0
  96. package/dist/ezui/p-b0974f4f.entry.js +1 -0
  97. package/dist/ezui/p-db11c600.entry.js +1 -0
  98. package/dist/ezui/p-dd4331b7.entry.js +1 -0
  99. package/dist/ezui/p-f6fd31ab.entry.js +1 -0
  100. package/dist/ezui/p-fa260f22.entry.js +1 -0
  101. package/dist/index.cjs.js +1 -0
  102. package/dist/index.js +1 -0
  103. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
  104. package/dist/types/components/ez-button/ez-button.d.ts +20 -20
  105. package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
  106. package/dist/types/components/ez-check/ez-check.d.ts +32 -32
  107. package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
  108. package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
  109. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
  110. package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
  111. package/dist/types/components/ez-form/ez-form.d.ts +31 -27
  112. package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
  113. package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
  114. package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
  115. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +55 -48
  116. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
  117. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
  118. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
  119. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
  120. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
  121. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
  122. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
  123. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
  124. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
  125. package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
  126. package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
  127. package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
  128. package/dist/types/components/ez-search/ez-search.d.ts +95 -95
  129. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
  130. package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
  131. package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
  132. package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
  133. package/dist/types/components.d.ts +8 -0
  134. package/dist/types/index.d.ts +1 -1
  135. package/dist/types/utils/utils.d.ts +2 -2
  136. package/loader/cdn.js +3 -0
  137. package/loader/index.cjs.js +3 -0
  138. package/loader/index.d.ts +13 -0
  139. package/loader/index.es2017.js +3 -0
  140. package/loader/index.js +4 -0
  141. package/loader/package.json +10 -0
  142. package/package.json +114 -114
  143. package/react/components.d.ts +22 -0
  144. package/react/components.js +25 -0
  145. package/react/components.js.map +1 -0
  146. package/react/react-component-lib/createComponent.d.ts +10 -0
  147. package/react/react-component-lib/createComponent.js +59 -0
  148. package/react/react-component-lib/createComponent.js.map +1 -0
  149. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  150. package/react/react-component-lib/createOverlayComponent.js +89 -0
  151. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  152. package/react/react-component-lib/index.d.ts +2 -0
  153. package/react/react-component-lib/index.js +3 -0
  154. package/react/react-component-lib/index.js.map +1 -0
  155. package/react/react-component-lib/interfaces.d.ts +29 -0
  156. package/react/react-component-lib/interfaces.js +1 -0
  157. package/react/react-component-lib/interfaces.js.map +1 -0
  158. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  159. package/react/react-component-lib/utils/attachProps.js +96 -0
  160. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  161. package/react/react-component-lib/utils/case.d.ts +2 -0
  162. package/react/react-component-lib/utils/case.js +7 -0
  163. package/react/react-component-lib/utils/case.js.map +1 -0
  164. package/react/react-component-lib/utils/dev.d.ts +2 -0
  165. package/react/react-component-lib/utils/dev.js +13 -0
  166. package/react/react-component-lib/utils/dev.js.map +1 -0
  167. package/react/react-component-lib/utils/index.d.ts +7 -0
  168. package/react/react-component-lib/utils/index.js +21 -0
  169. package/react/react-component-lib/utils/index.js.map +1 -0
  170. package/dist/ezui/app-globals-0f993ce5.js +0 -3
  171. package/dist/ezui/css-shim-003e9264.js +0 -4
  172. package/dist/ezui/dom-1b195079.js +0 -73
  173. package/dist/ezui/ez-button.entry.js +0 -47
  174. package/dist/ezui/ez-calendar.entry.js +0 -102
  175. package/dist/ezui/ez-check.entry.js +0 -62
  176. package/dist/ezui/ez-collapsable-box.entry.js +0 -32
  177. package/dist/ezui/ez-combo-box.entry.js +0 -181
  178. package/dist/ezui/ez-date-input.entry.js +0 -77
  179. package/dist/ezui/ez-form.entry.js +0 -1907
  180. package/dist/ezui/ez-icon.entry.js +0 -17
  181. package/dist/ezui/ez-popover.entry.js +0 -112
  182. package/dist/ezui/ez-text-area.entry.js +0 -105
  183. package/dist/ezui/ez-text-input.entry.js +0 -202
  184. package/dist/ezui/index-39044be2.js +0 -2832
  185. package/dist/ezui/place-holder.entry.js +0 -15
  186. package/dist/ezui/shadow-css-c1ad5fdc.js +0 -383
@@ -0,0 +1,323 @@
1
+ import { Component, h, Method, Element, Host, Prop } from '@stencil/core';
2
+ import { FloatingManager } from '@sankhyalabs/core';
3
+ export class EzPopover {
4
+ constructor() {
5
+ this._firstRender = true;
6
+ /**
7
+ * No modo floating = false o popover só se tornará visível
8
+ * quando o método show() for acionado.
9
+ */
10
+ this.autoclose = true;
11
+ /**
12
+ * Offset top do popover em relação ao componente pai
13
+ */
14
+ this.top = '0px';
15
+ /**
16
+ * Offset left do popover em relação ao componente pai
17
+ */
18
+ this.left = '0px';
19
+ /**
20
+ * Offset bottom do popover em relação ao componente pai
21
+ */
22
+ this.bottom = '0px';
23
+ /**
24
+ * Offset right do popover em relação ao componente pai
25
+ */
26
+ this.right = '0px';
27
+ /**
28
+ * Ajusta o comportamento da largura do popover.
29
+ * Opções: "100% e "fit-content" (default)
30
+ */
31
+ this.boxwidth = 'fit-content';
32
+ }
33
+ /**
34
+ * Atualiza a posição do popover em relação ao componente pai.
35
+ */
36
+ async updatePosition(top = this.top, left = this.left, bottom = this.bottom, right = this.right) {
37
+ const floatingOptions = {
38
+ autoClose: this.autoclose,
39
+ top,
40
+ left,
41
+ bottom,
42
+ right,
43
+ innerClickTest: (_container, node) => {
44
+ if (_container.contains(node)) {
45
+ return true;
46
+ }
47
+ if (_container.shadowRoot && _container.shadowRoot.contains(node)) {
48
+ return true;
49
+ }
50
+ //Here: we pass this._box as parameter but we need to change to _host
51
+ //because we need to get the lasChild (inner content to put in slot)
52
+ _container = this._host;
53
+ return !_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node);
54
+ }
55
+ };
56
+ FloatingManager.updateFloatPosition(this._box, this._container, floatingOptions);
57
+ }
58
+ /**
59
+ * Faz com que o popover seja renderizado na DOM.
60
+ *
61
+ */
62
+ async show(top = this.top, left = this.left, bottom = this.bottom, right = this.right) {
63
+ const floatingOptions = {
64
+ autoClose: this.autoclose,
65
+ top,
66
+ left,
67
+ bottom,
68
+ right,
69
+ innerClickTest: (_container, node) => {
70
+ if (_container.contains(node)) {
71
+ return true;
72
+ }
73
+ if (_container.shadowRoot && _container.shadowRoot.contains(node)) {
74
+ return true;
75
+ }
76
+ // Here: we pass this._box as parameter but we need to change to _host
77
+ // because we need to get the lasChild (inner content to put in slot)
78
+ _container = this._host;
79
+ return !_container.lastElementChild.shadowRoot ? _container.contains(node) : _container.lastElementChild.shadowRoot.contains(node);
80
+ }
81
+ };
82
+ this._floatingID = FloatingManager.float(this._box, this._container, floatingOptions);
83
+ this.isOpened = true;
84
+ }
85
+ /**
86
+ * Usado no modo floating. Faz com que o componente seja ocultado.
87
+ */
88
+ async hide() {
89
+ if (this._floatingID !== undefined) {
90
+ FloatingManager.close(this._floatingID);
91
+ this._floatingID = undefined;
92
+ this.isOpened = false;
93
+ }
94
+ }
95
+ componentDidRender() {
96
+ if (this._firstRender) {
97
+ this._box.remove();
98
+ this._firstRender = false;
99
+ }
100
+ }
101
+ render() {
102
+ return (h(Host, null,
103
+ h("section", { ref: el => this._container = el },
104
+ h("div", { class: `box ${this.boxwidth === 'fit-content' ? 'box--fit-content' : 'box--full-width'}`, ref: el => this._box = el },
105
+ h("slot", null)))));
106
+ }
107
+ static get is() { return "ez-popover"; }
108
+ static get encapsulation() { return "shadow"; }
109
+ static get originalStyleUrls() { return {
110
+ "$": ["ez-popover.css"]
111
+ }; }
112
+ static get styleUrls() { return {
113
+ "$": ["ez-popover.css"]
114
+ }; }
115
+ static get properties() { return {
116
+ "autoclose": {
117
+ "type": "boolean",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "boolean",
121
+ "resolved": "boolean",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": "No modo floating = false o popover s\u00F3 se tornar\u00E1 vis\u00EDvel\nquando o m\u00E9todo show() for acionado."
129
+ },
130
+ "attribute": "autoclose",
131
+ "reflect": true,
132
+ "defaultValue": "true"
133
+ },
134
+ "top": {
135
+ "type": "string",
136
+ "mutable": true,
137
+ "complexType": {
138
+ "original": "string",
139
+ "resolved": "string",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": "Offset top do popover em rela\u00E7\u00E3o ao componente pai"
147
+ },
148
+ "attribute": "top",
149
+ "reflect": true,
150
+ "defaultValue": "'0px'"
151
+ },
152
+ "left": {
153
+ "type": "string",
154
+ "mutable": true,
155
+ "complexType": {
156
+ "original": "string",
157
+ "resolved": "string",
158
+ "references": {}
159
+ },
160
+ "required": false,
161
+ "optional": false,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": "Offset left do popover em rela\u00E7\u00E3o ao componente pai"
165
+ },
166
+ "attribute": "left",
167
+ "reflect": true,
168
+ "defaultValue": "'0px'"
169
+ },
170
+ "bottom": {
171
+ "type": "string",
172
+ "mutable": true,
173
+ "complexType": {
174
+ "original": "string",
175
+ "resolved": "string",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": false,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "Offset bottom do popover em rela\u00E7\u00E3o ao componente pai"
183
+ },
184
+ "attribute": "bottom",
185
+ "reflect": true,
186
+ "defaultValue": "'0px'"
187
+ },
188
+ "right": {
189
+ "type": "string",
190
+ "mutable": true,
191
+ "complexType": {
192
+ "original": "string",
193
+ "resolved": "string",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": false,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": "Offset right do popover em rela\u00E7\u00E3o ao componente pai"
201
+ },
202
+ "attribute": "right",
203
+ "reflect": true,
204
+ "defaultValue": "'0px'"
205
+ },
206
+ "boxwidth": {
207
+ "type": "string",
208
+ "mutable": false,
209
+ "complexType": {
210
+ "original": "string",
211
+ "resolved": "string",
212
+ "references": {}
213
+ },
214
+ "required": false,
215
+ "optional": false,
216
+ "docs": {
217
+ "tags": [],
218
+ "text": "Ajusta o comportamento da largura do popover.\nOp\u00E7\u00F5es: \"100% e \"fit-content\" (default)"
219
+ },
220
+ "attribute": "boxwidth",
221
+ "reflect": true,
222
+ "defaultValue": "'fit-content'"
223
+ },
224
+ "isOpened": {
225
+ "type": "boolean",
226
+ "mutable": true,
227
+ "complexType": {
228
+ "original": "boolean",
229
+ "resolved": "boolean",
230
+ "references": {}
231
+ },
232
+ "required": false,
233
+ "optional": false,
234
+ "docs": {
235
+ "tags": [],
236
+ "text": "Externaliza estado atual do componente."
237
+ },
238
+ "attribute": "is-opened",
239
+ "reflect": true
240
+ }
241
+ }; }
242
+ static get methods() { return {
243
+ "updatePosition": {
244
+ "complexType": {
245
+ "signature": "(top?: string, left?: string, bottom?: string, right?: string) => Promise<void>",
246
+ "parameters": [{
247
+ "tags": [],
248
+ "text": ""
249
+ }, {
250
+ "tags": [],
251
+ "text": ""
252
+ }, {
253
+ "tags": [],
254
+ "text": ""
255
+ }, {
256
+ "tags": [],
257
+ "text": ""
258
+ }],
259
+ "references": {
260
+ "Promise": {
261
+ "location": "global"
262
+ },
263
+ "HTMLElement": {
264
+ "location": "global"
265
+ }
266
+ },
267
+ "return": "Promise<void>"
268
+ },
269
+ "docs": {
270
+ "text": "Atualiza a posi\u00E7\u00E3o do popover em rela\u00E7\u00E3o ao componente pai.",
271
+ "tags": []
272
+ }
273
+ },
274
+ "show": {
275
+ "complexType": {
276
+ "signature": "(top?: string, left?: string, bottom?: string, right?: string) => Promise<void>",
277
+ "parameters": [{
278
+ "tags": [],
279
+ "text": ""
280
+ }, {
281
+ "tags": [],
282
+ "text": ""
283
+ }, {
284
+ "tags": [],
285
+ "text": ""
286
+ }, {
287
+ "tags": [],
288
+ "text": ""
289
+ }],
290
+ "references": {
291
+ "Promise": {
292
+ "location": "global"
293
+ },
294
+ "HTMLElement": {
295
+ "location": "global"
296
+ }
297
+ },
298
+ "return": "Promise<void>"
299
+ },
300
+ "docs": {
301
+ "text": "Faz com que o popover seja renderizado na DOM.",
302
+ "tags": []
303
+ }
304
+ },
305
+ "hide": {
306
+ "complexType": {
307
+ "signature": "() => Promise<void>",
308
+ "parameters": [],
309
+ "references": {
310
+ "Promise": {
311
+ "location": "global"
312
+ }
313
+ },
314
+ "return": "Promise<void>"
315
+ },
316
+ "docs": {
317
+ "text": "Usado no modo floating. Faz com que o componente seja ocultado.",
318
+ "tags": []
319
+ }
320
+ }
321
+ }; }
322
+ static get elementRef() { return "_host"; }
323
+ }
@@ -0,0 +1,296 @@
1
+ :host {
2
+ /* dimensions */
3
+ --srch--height: 42px;
4
+ --srch--width: 100%;
5
+ --srch__icon--width: 48px;
6
+ /* general */
7
+ --srch--border-radius: var(--border--radius-medium, 12px);
8
+ --srch--border-radius-small: var(--border--radius-small, 6px);
9
+ --srch--font-size: var(--text--medium, 14px);
10
+ --srch--font-family: var(--font-pattern, Arial);
11
+ --srch--font-weight--large: var(--text-weight--large, 500);
12
+ --srch--font-weight--medium: var(--text-weight--medium, 400);
13
+ --srch--space--medium: var(--space--medium, 12px);
14
+ --srch--space--small: var(--space--small, 6px);
15
+ --srch--shadow: var(--shadow, 0px 0px 16px 0px rgba(0, 38, 111, .12));
16
+ --srch--background-color--xlight: var(--background--xlight,#fff);
17
+ --srch__list-z-index: var(--more-visible, 1);
18
+
19
+ /* input */
20
+ --srch__input--background-color: var(--background--medium, #e0e0e0);
21
+ --srch__input--border: var(--border--medium, 2px solid);
22
+ --srch__input--border-color: var(--srch__input--background-color);
23
+ /*no modo normal usamos a borda com a mesma cor do bg*/
24
+ --srch__input--focus--border-color: var(--color--primary, #008561);
25
+ --srch__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
26
+ --srch__input--disabled--color: var(--text--disable, #AFB6C0);
27
+ --srch__input--error--border-color: #CC2936;
28
+ /* label */
29
+ --srch__label--color: var(--title--primary, #919191);
30
+ /* message box */
31
+ --srch__message_box--font-size: var(--text--small, 12px);
32
+ --srch__message_box--info--color: var(--color--success, #22085d);
33
+ --srch__message_box--error--color: var(--color--error, #FF0000);
34
+
35
+ /* list */
36
+ --srch__list-text--primary:var(--text--primary,#626e82);
37
+ --srch__list-text--secondary:var(--text--secondary,#a2abb9);
38
+ --srch__list-height:calc(4px + var(--srch--font-size) + var(--srch--space--medium));
39
+
40
+ /***************
41
+ host style
42
+ ***************/
43
+ /*private*/
44
+ display: flex;
45
+ flex-wrap: wrap;
46
+ position: relative;
47
+ /*public*/
48
+ width: var(--srch--width);
49
+ }
50
+
51
+ /* ////// */
52
+
53
+ ez-text-input{
54
+ --it__input--background-color: var(--srch__input--background-color, #FFFFFF);
55
+ --it__input--border-color: var(--srch__input--border-color, #DCE0E8);
56
+ }
57
+
58
+ input {
59
+ /*private*/
60
+ width: 100%;
61
+ box-sizing: border-box;
62
+ padding: var(--space--medium);
63
+ /*public*/
64
+ height: var(--srch--height);
65
+ border-radius: var(--srch--border-radius);
66
+ font-family: var(--srch--font-family);
67
+ font-size: var(--srch--font-size);
68
+ border: var(--srch__input--border);
69
+ border-color: var(--srch__input--border-color);
70
+ background-color: var(--srch__input--background-color);
71
+ font-weight: var(--text-weight--large);
72
+ }
73
+
74
+ input:disabled {
75
+ /*public*/
76
+ background-color: var(--srch__input--disabled--background-color);
77
+ color: var(--srch__input--disabled--color);
78
+ }
79
+
80
+ input:focus {
81
+ /*private*/
82
+ outline: none;
83
+ /*public*/
84
+ border-color: var(--srch__input--focus--border-color);
85
+ }
86
+
87
+ input.icon--left {
88
+ padding-left: var(--srch__icon--width);
89
+ }
90
+
91
+ input.icon--right {
92
+ padding-right: var(--srch__icon--width);
93
+ }
94
+
95
+ input::placeholder {
96
+ color: var(--srch__placeholder--color);
97
+ font-weight: var(--srch__placeholder--font-weight);
98
+ }
99
+
100
+ input:disabled::placeholder {
101
+ color: var(--srch__placeholder--disabled--color);
102
+ }
103
+
104
+ input.hasError {
105
+ color: inherit;
106
+ border-color: var(--srch__input--error--border-color);
107
+ }
108
+
109
+ input.text--right {
110
+ text-align: right;
111
+ }
112
+
113
+ ez-text-input {
114
+ --it__input--background-color: var(--srch__input--background-color, #FFFFFF);
115
+ --it__input--border-color: var(--srch__input--border-color, #DCE0E8);
116
+ }
117
+
118
+
119
+ .message-box {
120
+ /*private*/
121
+ min-height: 0;
122
+ min-width: 100%;
123
+ margin-top: 2px;
124
+ line-height: 12px;
125
+ /*public*/
126
+ font-family: var(--srch--font-family);
127
+ font-size: var(--srch__message_box--font-size);
128
+ color: var(--srch__message_box--info--color);
129
+ }
130
+
131
+ .hasError {
132
+ /*public*/
133
+ min-height: 16px;
134
+ color: var(--srch__message_box--error--color);
135
+ }
136
+
137
+ .input__label {
138
+ /*public*/
139
+ font-size: var(--text--medium);
140
+ font-weight: var(--text-weight--large);
141
+ left: var(--space--medium);
142
+ position: absolute;
143
+ color: var(--title--primary);
144
+ top: var(--space--medium);
145
+ font-family: var(--srch--font-family);
146
+ -webkit-transition: font-size .3s, top .3s;
147
+ transition: font-size .3s, top .3s;
148
+ z-index: var(--visible);
149
+ }
150
+
151
+ .input__label--floated {
152
+ font-family: var(--srch--font-family);
153
+ font-size: var(--text--extra-small);
154
+ top: var(--space--small);
155
+ color: var(--text--primary);
156
+ }
157
+
158
+ .input__label--left {
159
+ /*public*/
160
+ left: var(--srch__icon--width);
161
+ }
162
+
163
+ .input--with--label {
164
+ /*public*/
165
+ padding-bottom: 0;
166
+ }
167
+
168
+ /* ////// */
169
+
170
+
171
+ .message-box {
172
+ /*private*/
173
+ min-height: 16px;
174
+ min-width: 100%;
175
+ margin-top: 2px;
176
+ line-height: 12px;
177
+ /*public*/
178
+ font-family: var(--srch--font-family);
179
+ font-size: var(--srch__message_box--font-size);
180
+ color: var(--srch__message_box--info--color);
181
+ }
182
+
183
+ .hasError {
184
+ /*public*/
185
+ color: var(--srch__message_box--error--color);
186
+ }
187
+
188
+
189
+
190
+
191
+ .list-container{
192
+ z-index: var(--srch__list-z-index);
193
+ padding: var(--srch--space--small);
194
+ background: var(--srch--background-color--xlight);
195
+ border-radius: var(--srch--border-radius);
196
+ width: 100%;
197
+ overflow: auto;
198
+ box-sizing: border-box;
199
+ /* height of 4 internal elements plus upper and down padding */
200
+ max-height: calc(4*var(--srch__list-height) + 2*var(--srch--space--small));
201
+ }
202
+
203
+ li{
204
+
205
+ list-style-type: none;
206
+ border-radius: var(--srch--border-radius-small);
207
+ padding: 0 var(--srch--space--small);
208
+ display: flex;
209
+ justify-content: space-between;
210
+ align-items: center;
211
+
212
+ }
213
+
214
+ li:hover{
215
+ background-color: var(--background--medium);
216
+ }
217
+
218
+ .--li__spanlabel{
219
+ color: var(--srch__list-text--primary);
220
+ border-radius: var(--srch--border-radius-small);
221
+ padding: 0 var(--srch--space--small);
222
+ height: var(--srch__list-height);
223
+ font-weight: var(--srch--font-weight--large);
224
+ font-family: var(--srch--font-family);
225
+ line-height: var(--srch__list-height);
226
+ vertical-align: middle;
227
+ text-overflow: ellipsis;
228
+ width: 80%;
229
+ min-width: 30px;
230
+ overflow-x: hidden;
231
+ text-align: left;
232
+ }
233
+
234
+ .--li__spanlabel--full-width{
235
+ color: var(--srch__list-text--primary);
236
+ border-radius: var(--srch--border-radius-small);
237
+ padding: 0 var(--srch--space--small);
238
+ height: var(--srch__list-height);
239
+ font-weight: var(--srch--font-weight--large);
240
+ font-family: var(--srch--font-family);
241
+ line-height: var(--srch__list-height);
242
+ vertical-align: middle;
243
+ text-overflow: ellipsis;
244
+ width: 100%;
245
+ min-width: 30px;
246
+ overflow-x: hidden;
247
+ text-align: left;
248
+ }
249
+
250
+ .--li__spanvalue{
251
+ color: var(--srch__list-text--secondary);
252
+ border-radius: var(--srch--border-radius-small);
253
+ padding: 0 var(--srch--space--small);
254
+ height: var(--srch__list-height);
255
+ font-weight: var(--srch--font-weight--medium);
256
+ font-family: var(--srch--font-family);
257
+ line-height: var(--srch__list-height);
258
+ vertical-align: middle;
259
+ text-overflow: ellipsis;
260
+ width: 20%;
261
+ min-width: 20px;
262
+ overflow-x: hidden;
263
+ text-align: right;
264
+ }
265
+
266
+
267
+ .btn-open-search{
268
+ outline: none;
269
+ border: none;
270
+ background-color: unset;
271
+ cursor: pointer;
272
+ }
273
+
274
+ .btn-open-search:disabled{
275
+ cursor: unset;
276
+ }
277
+
278
+ .btn-open-search::after{
279
+ content: '';
280
+ display: flex;
281
+ background-color: var(--text--primary, #008561);
282
+ width: 22px;
283
+ height: 22px;
284
+ clip-path: path("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");
285
+ }
286
+ .btn-open-search:disabled:after{
287
+ background-color: var(--text--disable, #AFB6C0);
288
+ }
289
+
290
+ .btn-open-search:enabled:hover::after{
291
+ background-color: var(--color--primary, #4e4e4e);
292
+ }
293
+
294
+ .--li--preselected{
295
+ background-color: var(--background--strong);
296
+ }