@sankhyalabs/ezui 1.1.74 → 1.1.77

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/dist/cjs/ApplicationUtils-d1c1db56.js +35 -0
  2. package/dist/cjs/AssetsUtils-dd585fba.js +24 -0
  3. package/dist/cjs/DataUnit-fdd7c70e.js +474 -0
  4. package/dist/cjs/DateUtils-716769e0.js +46 -0
  5. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-application.cjs.entry.js +28 -0
  7. package/dist/cjs/ez-button_11.cjs.entry.js +111771 -0
  8. package/dist/cjs/ez-calendar.cjs.entry.js +212 -0
  9. package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +630 -0
  10. package/dist/cjs/ez-combo-box.cjs.entry.js +250 -0
  11. package/dist/cjs/ez-date-time-input.cjs.entry.js +144 -0
  12. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-form.cjs.entry.js +1838 -0
  14. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-number-input.cjs.entry.js +61 -190
  16. package/dist/cjs/ez-popover.cjs.entry.js +3 -3
  17. package/dist/cjs/ez-popup.cjs.entry.js +2 -2
  18. package/dist/cjs/ez-time-input.cjs.entry.js +9 -8
  19. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  20. package/dist/cjs/ezui.cjs.js +3 -3
  21. package/dist/cjs/form-metadata.cjs.entry.js +129 -0
  22. package/dist/cjs/index-262d703b.js +7442 -0
  23. package/dist/cjs/{index-4d2896bb.js → index-4e4bae01.js} +3 -5
  24. package/dist/cjs/loader.cjs.js +3 -3
  25. package/dist/collection/collection-manifest.json +8 -3
  26. package/dist/collection/components/ez-application/ez-application.css +3 -0
  27. package/dist/collection/components/ez-application/ez-application.js +37 -0
  28. package/dist/collection/components/ez-button/ez-button.css +78 -44
  29. package/dist/collection/components/ez-button/ez-button.js +36 -4
  30. package/dist/collection/components/ez-calendar/ez-calendar.css +132 -65
  31. package/dist/collection/components/ez-calendar/ez-calendar.js +180 -33
  32. package/dist/collection/components/ez-check/ez-check.css +78 -78
  33. package/dist/collection/components/ez-check/ez-check.js +3 -3
  34. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +34 -34
  35. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -12
  36. package/dist/collection/components/ez-combo-box/ez-combo-box.css +67 -51
  37. package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -0
  38. package/dist/collection/components/ez-date-input/ez-date-input.css +17 -3
  39. package/dist/collection/components/ez-date-input/ez-date-input.js +2 -2
  40. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +49 -0
  41. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +254 -0
  42. package/dist/collection/components/ez-form/ez-form.js +37 -35
  43. package/dist/collection/components/ez-form/store/Form.actions.js +16 -16
  44. package/dist/collection/components/ez-form/store/Form.reducer.js +17 -17
  45. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +11 -11
  46. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +12 -12
  47. package/dist/collection/components/ez-form/subcomponents/place-holder.js +1 -1
  48. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +22 -22
  49. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
  50. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +9 -9
  51. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +21 -0
  52. package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
  53. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +203 -0
  54. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +41 -0
  55. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
  56. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
  57. package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +12 -0
  58. package/dist/collection/components/ez-grid/ez-grid.css +15 -0
  59. package/dist/collection/components/ez-grid/ez-grid.js +414 -0
  60. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +105 -0
  61. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +354 -0
  62. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +7 -0
  63. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +66 -0
  64. package/dist/collection/components/ez-icon/ez-icon.css +1 -1
  65. package/dist/collection/components/ez-list/ez-list.css +227 -44
  66. package/dist/collection/components/ez-list/ez-list.js +529 -149
  67. package/dist/collection/components/ez-modal/ez-modal.css +4 -4
  68. package/dist/collection/components/ez-modal/ez-modal.js +1 -1
  69. package/dist/collection/components/ez-number-input/ez-number-input.css +7 -162
  70. package/dist/collection/components/ez-number-input/ez-number-input.js +90 -281
  71. package/dist/collection/components/ez-popover/ez-popover.css +10 -6
  72. package/dist/collection/components/ez-popup/ez-popup.css +25 -27
  73. package/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -1
  74. package/dist/collection/components/ez-tabselector/ez-tabselector.js +3 -3
  75. package/dist/collection/components/ez-text-area/ez-text-area.js +1 -0
  76. package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
  77. package/dist/collection/components/ez-text-input/ez-text-input.js +17 -16
  78. package/dist/collection/components/ez-time-input/ez-time-input.js +3 -2
  79. package/dist/collection/components/ez-upload/ez-upload.css +41 -41
  80. package/dist/collection/components/ez-upload/ez-upload.js +55 -52
  81. package/dist/collection/components/test-du/test-du.css +3 -0
  82. package/dist/collection/components/test-du/test-du.js +45 -0
  83. package/dist/collection/servidor.js +94 -94
  84. package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
  85. package/dist/collection/utils/AssetsUtils.js +19 -0
  86. package/dist/custom-elements/index.d.ts +36 -6
  87. package/dist/custom-elements/index.js +121017 -3022
  88. package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
  89. package/dist/esm/AssetsUtils-3803e935.js +22 -0
  90. package/dist/esm/DataUnit-1cd45202.js +464 -0
  91. package/dist/esm/DateUtils-0a1bbd7a.js +44 -0
  92. package/dist/esm/ez-action-chip.entry.js +1 -1
  93. package/dist/esm/ez-application.entry.js +24 -0
  94. package/dist/esm/ez-button_11.entry.js +111757 -0
  95. package/dist/esm/ez-calendar.entry.js +208 -0
  96. package/dist/esm/ez-collapsible-box_6.entry.js +621 -0
  97. package/dist/esm/ez-combo-box.entry.js +246 -0
  98. package/dist/esm/ez-date-time-input.entry.js +140 -0
  99. package/dist/esm/ez-dialog.entry.js +1 -1
  100. package/dist/esm/ez-form.entry.js +1834 -0
  101. package/dist/esm/ez-label-chip.entry.js +1 -1
  102. package/dist/esm/ez-number-input.entry.js +61 -190
  103. package/dist/esm/ez-popover.entry.js +3 -3
  104. package/dist/esm/ez-popup.entry.js +2 -2
  105. package/dist/esm/ez-time-input.entry.js +4 -3
  106. package/dist/esm/ez-toast.entry.js +1 -1
  107. package/dist/esm/ezui.js +3 -3
  108. package/dist/esm/form-metadata.entry.js +125 -0
  109. package/dist/esm/{index-33153059.js → index-1dacecd3.js} +3 -6
  110. package/dist/esm/index-cfd5e193.js +7433 -0
  111. package/dist/esm/loader.js +3 -3
  112. package/dist/ezui/ezui.esm.js +1 -1
  113. package/dist/ezui/p-1ea8187e.entry.js +369 -0
  114. package/dist/ezui/p-37a611ea.js +1 -0
  115. package/dist/ezui/p-45689464.entry.js +1 -0
  116. package/dist/ezui/{p-34d288d0.entry.js → p-516d0e0f.entry.js} +1 -1
  117. package/dist/ezui/p-57291f97.entry.js +1 -0
  118. package/dist/ezui/{p-0d476efb.entry.js → p-5a86e18a.entry.js} +1 -1
  119. package/dist/ezui/{p-47406a6e.entry.js → p-5da66d3e.entry.js} +1 -1
  120. package/dist/ezui/p-69416bec.entry.js +1 -0
  121. package/dist/ezui/p-7107d7ef.js +1 -0
  122. package/dist/ezui/p-7ef97c5f.entry.js +1 -0
  123. package/dist/ezui/p-88f45a83.entry.js +1 -0
  124. package/dist/ezui/p-8c51a6aa.entry.js +1 -0
  125. package/dist/ezui/p-8f4851a6.js +1 -0
  126. package/dist/ezui/p-9dfd537e.js +1 -0
  127. package/dist/ezui/{p-8818da66.entry.js → p-a18a2d7b.entry.js} +1 -1
  128. package/dist/ezui/p-a223eed8.entry.js +1 -0
  129. package/dist/ezui/p-b36308e7.js +1 -0
  130. package/dist/ezui/p-c0af195b.entry.js +1 -0
  131. package/dist/ezui/p-c6d469fc.entry.js +1 -0
  132. package/dist/ezui/p-c89629eb.js +1 -0
  133. package/dist/ezui/p-e7ee2836.entry.js +1 -0
  134. package/dist/ezui/p-f7b835cf.entry.js +1 -0
  135. package/dist/types/components/ez-application/ez-application.d.ts +12 -0
  136. package/dist/types/components/ez-button/ez-button.d.ts +5 -0
  137. package/dist/types/components/ez-calendar/ez-calendar.d.ts +25 -1
  138. package/dist/types/components/ez-check/ez-check.d.ts +1 -1
  139. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +3 -3
  140. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +42 -0
  141. package/dist/types/components/ez-form/ez-form.d.ts +9 -9
  142. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +1 -1
  143. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +1 -1
  144. package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +8 -0
  145. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +195 -0
  146. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +34 -0
  147. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +11 -0
  148. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
  149. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
  150. package/dist/types/components/ez-grid/ez-grid.d.ts +78 -0
  151. package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +30 -0
  152. package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +9 -0
  153. package/dist/types/components/ez-list/ez-list.d.ts +70 -17
  154. package/dist/types/components/ez-number-input/ez-number-input.d.ts +33 -50
  155. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
  156. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -1
  157. package/dist/types/components/ez-upload/ez-upload.d.ts +10 -7
  158. package/dist/types/components/test-du/test-du.d.ts +6 -0
  159. package/dist/types/components.d.ts +321 -149
  160. package/dist/types/stencil-public-runtime.d.ts +6 -4
  161. package/dist/types/utils/{Application.d.ts → ApplicationUtils.d.ts} +1 -1
  162. package/dist/types/utils/AssetsUtils.d.ts +1 -0
  163. package/package.json +10 -8
  164. package/react/components.d.ts +6 -1
  165. package/react/components.js +6 -1
  166. package/react/components.js.map +1 -1
  167. package/dist/cjs/RequestMetadata-2cd01e8a.js +0 -531
  168. package/dist/cjs/ez-button_16.cjs.entry.js +0 -4065
  169. package/dist/cjs/ez-list.cjs.entry.js +0 -174
  170. package/dist/cjs/ez-modal.cjs.entry.js +0 -65
  171. package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +0 -13
  172. package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +0 -185
  173. package/dist/esm/RequestMetadata-c265c9d5.js +0 -527
  174. package/dist/esm/ez-button_16.entry.js +0 -4046
  175. package/dist/esm/ez-list.entry.js +0 -170
  176. package/dist/esm/ez-modal.entry.js +0 -61
  177. package/dist/ezui/p-061d21ba.entry.js +0 -1
  178. package/dist/ezui/p-15743b09.entry.js +0 -1
  179. package/dist/ezui/p-25953d44.entry.js +0 -1
  180. package/dist/ezui/p-4df6f855.js +0 -1
  181. package/dist/ezui/p-50464bdf.entry.js +0 -1
  182. package/dist/ezui/p-67410dfa.entry.js +0 -1
  183. package/dist/ezui/p-7f3bc6d9.entry.js +0 -1
  184. package/dist/ezui/p-907de194.entry.js +0 -1
  185. package/dist/ezui/p-9dfccb16.js +0 -1
  186. package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
@@ -2,33 +2,33 @@
2
2
  display: flex;
3
3
  /* General */
4
4
  /*@doc Define a camada em que o componente será exibido.*/
5
- --popup-z-index: var(--most-visible, 3);
5
+ --ez-popup-z-index: var(--most-visible, 3);
6
6
 
7
7
  /* Popup */
8
8
  /*@doc Define a cor do texto do container do popup.*/
9
- --popup__container--color: var(--title--primary, #2b3a54);
9
+ --ez-popup__container--color: var(--title--primary, #2b3a54);
10
10
  /*@doc Define o espaçamento do container do popup.*/
11
- --popup__container--padding: var(--space--large, 24px);
11
+ --ez-popup__container--padding: var(--space--large, 24px);
12
12
 
13
13
  /* Popup Header */
14
14
  /*@doc Define o espaçamento inferior do cabeçalho do popup.*/
15
- --popup__header--padding-bottom: var(--space--medium, 12px);
15
+ --ez-popup__header--padding-bottom: var(--space--medium, 12px);
16
16
 
17
17
  /* Title */
18
18
  /*@doc Define a família da fonte do título do popup.*/
19
- --popup__title--font-family: var(--font-pattern, "'Sora', 'Algerian'");
19
+ --ez-popup__title--font-family: var(--font-pattern, "'Sora', 'Algerian'");
20
20
  /*@doc Define o tamanho da fonte do título do popup.*/
21
- --popup__title--font-size: var(--title--extra-large, 24px);
21
+ --ez-popup__title--font-size: var(--title--extra-large, 24px);
22
22
  /*@doc Define a cor da fonte do título do popup.*/
23
- --popup__title--color: var(--title--primary, #2b3a54);
23
+ --ez-popup__title--color: var(--title--primary, #2b3a54);
24
24
  /*@doc Define o peso da fonte do título do popup.*/
25
- --popup__title--font-weight: var(--text-weight--large, 600);
25
+ --ez-popup__title--font-weight: var(--text-weight--large, 600);
26
26
 
27
27
  /* Buttons */
28
28
  /* @doc Define a cor do ícone do botão de fechamento. */
29
- --popup__btn__close--icon-color: var(--title--primary, #2b3a54);
29
+ --ez-popup__btn__close--icon-color: var(--title--primary, #2b3a54);
30
30
  /* @doc Contém o ícone do botão de fechamento. */
31
- --popup__btn__close--icon: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z"/></svg>');
31
+ --ez-popup__btn__close--icon: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z"/></svg>');
32
32
 
33
33
  }
34
34
 
@@ -36,7 +36,7 @@
36
36
  position: fixed;
37
37
  display: flex;
38
38
  top: 0px;
39
- z-index: var(--popup-z-index);
39
+ z-index: var(--ez-popup-z-index);
40
40
  left: 0px;
41
41
  width: 100%;
42
42
  align-items: center;
@@ -58,37 +58,35 @@
58
58
  .popup__container {
59
59
  width: 100%;
60
60
  max-height: 90%;
61
+ height: 100%;
61
62
  display: flex;
62
63
  flex-wrap: wrap;
63
64
  overflow: hidden;
64
65
  background: #FFFF;
65
- color: var(--popup__container--color);
66
+ color: var(--ez-popup__container--color);
66
67
  border-radius: 12px;
67
68
  box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);
68
69
  box-sizing: border-box;
69
- padding: var(--popup__container--padding)
70
+ padding: var(--ez-popup__container--padding)
70
71
  }
71
72
 
72
73
  .popup__content {
73
74
  box-sizing: border-box;
74
75
  max-height: 100%;
75
76
  width: 100%;
76
- display: flex;
77
- flex-wrap: wrap;
77
+ display: grid;
78
+ grid-template-rows: auto 1fr;
78
79
  }
79
80
 
80
81
  .popup__expandable-content {
81
82
  box-sizing: border-box;
82
83
  overflow-y: auto;
84
+ height: 100%;
83
85
  width: 100%;
84
- display: flex;
85
- flex-wrap: wrap;
86
- max-height: 80vh;
87
- content-visibility: auto;
88
86
  }
89
87
 
90
88
  .popup__header {
91
- padding-bottom: var(--popup__header--padding-bottom);
89
+ padding-bottom: var(--ez-popup__header--padding-bottom);
92
90
  width: 100%;
93
91
  display: flex;
94
92
  }
@@ -97,10 +95,10 @@
97
95
  display: flex;
98
96
  margin: 0;
99
97
  width: 100%;
100
- font-family: var(--popup__title--font-family);
101
- font-size: var(--popup__title--font-size);
102
- font-weight: var(--popup__title--font-weight);
103
- color: var(--popup__title--color);
98
+ font-family: var(--ez-popup__title--font-family);
99
+ font-size: var(--ez-popup__title--font-size);
100
+ font-weight: var(--ez-popup__title--font-weight);
101
+ color: var(--ez-popup__title--color);
104
102
  line-height: 1.3;
105
103
  }
106
104
 
@@ -118,11 +116,11 @@
118
116
  .btn-close::after {
119
117
  content: '';
120
118
  display: flex;
121
- background-color: var(--popup__btn__close--icon-color);
119
+ background-color: var(--ez-popup__btn__close--icon-color);
122
120
  width: 14px;
123
121
  height: 14px;
124
- -webkit-mask-image: var(--popup__btn__close--icon);
125
- mask-image: var(--popup__btn__close--icon);
122
+ -webkit-mask-image: var(--ez-popup__btn__close--icon);
123
+ mask-image: var(--ez-popup__btn__close--icon);
126
124
  }
127
125
 
128
126
  .btn-close--solo {
@@ -13,7 +13,6 @@
13
13
  position: relative;
14
14
  width: 100%;
15
15
  overflow: hidden;
16
- margin-bottom: var(--space--large, 24px);
17
16
  /* @doc Define a sombra do box da aba. */
18
17
  /* --tabselector__box--box-shadow: var(--shadow, 0px 0px 8px 0px #000); */
19
18
  /*@doc Contém o ícone de voltar para a aba anterior.*/
@@ -45,7 +45,7 @@ export class EzTabselector {
45
45
  }
46
46
  this.setFocusedBtn(true, this.focusedIndex);
47
47
  this.setFocusedTab(this.focusedIndex);
48
- this.ezChange.emit();
48
+ this.ezChange.emit(this.selectedTab);
49
49
  }
50
50
  else if (ev.key === "Tab" || ev.key === "Escape") {
51
51
  this.focusedIndex = undefined;
@@ -61,7 +61,7 @@ export class EzTabselector {
61
61
  this.selectedIndex = index.toString();
62
62
  this.focusedIndex = undefined;
63
63
  this.selectedTab = tab;
64
- this.ezChange.emit();
64
+ this.ezChange.emit(this.selectedTab);
65
65
  this.setFocusedBtn(false, this.selectedIndex);
66
66
  }
67
67
  componentWillRender() {
@@ -261,7 +261,7 @@ export class EzTabselector {
261
261
  "composed": true,
262
262
  "docs": {
263
263
  "tags": [],
264
- "text": "Evento emitido ao clicar para abrir o popup (onChange)."
264
+ "text": "Evento emitido ao clicar para abrir o popup (ezChange)."
265
265
  },
266
266
  "complexType": {
267
267
  "original": "string",
@@ -71,6 +71,7 @@ export class EzTextArea {
71
71
  }
72
72
  }
73
73
  handleChange() {
74
+ this.errorMessage = "";
74
75
  this.value = this._inputElem.value;
75
76
  }
76
77
  handleFocus() {
@@ -1,58 +1,58 @@
1
1
  :host {
2
2
  /* dimensions */
3
3
  /*@doc Define a altura do componente.*/
4
- --text-input--height: 42px;
4
+ --ez-text-input--height: 42px;
5
5
  /*@doc Define a largura do componente.*/
6
- --text-input--width: 100%;
6
+ --ez-text-input--width: 100%;
7
7
  /*@doc Define a largura do slot que contém o ícone.*/
8
- --text-input__icon--width: 48px;
8
+ --ez-text-input__icon--width: 48px;
9
9
 
10
10
  /* general */
11
11
  /*@doc Define o raio da borda do input do componente.*/
12
- --text-input--border-radius: var(--border--radius-medium, 12px);
12
+ --ez-text-input--border-radius: var(--border--radius-medium, 12px);
13
13
  /*@doc Define o tamanho da fonte do input e label do componente.*/
14
- --text-input--font-size: var(--text--medium, 14px);
14
+ --ez-text-input--font-size: var(--text--medium, 14px);
15
15
  /*@doc Define a família da fonte do input, label e caixa de mensagem do componente.*/
16
- --text-input--font-family: var(--font-pattern, Arial);
16
+ --ez-text-input--font-family: var(--font-pattern, Arial);
17
17
  /*@doc Define o peso da fonte do label do componente.*/
18
- --text-input--font-weight: var(--text-weight--large, 500);
18
+ --ez-text-input--font-weight: var(--text-weight--large, 500);
19
19
  /*@doc Define a cor da fonte do input e label do componente.*/
20
- --text-input--color: var(--title--primary, #000);
20
+ --ez-text-input--color: var(--title--primary, #000);
21
21
 
22
22
  /* input */
23
23
  /*@doc Define a cor de fundo do input.*/
24
- --text-input__input--background-color: var(--background--medium, #e0e0e0);
24
+ --ez-text-input__input--background-color: var(--background--medium, #e0e0e0);
25
25
  /*@doc Define o estilo da borda do input.*/
26
- --text-input__input--border: var(--border--medium, 2px solid);
26
+ --ez-text-input__input--border: var(--border--medium, 2px solid);
27
27
  /*@doc Define a cor da borda do input.*/
28
- --text-input__input--border-color: var(--text-input__input--background-color);
28
+ --ez-text-input__input--border-color: var(--ez-text-input__input--background-color);
29
29
  /*no modo normal usamos a borda com a mesma cor do bg*/
30
30
  /*@doc Define a cor da borda do input quando focado.*/
31
- --text-input__input--focus--border-color: var(--color--alert-cold-800, #042EFF);
31
+ --ez-text-input__input--focus--border-color: var(--color--alert-cold-800, #042EFF);
32
32
  /*@doc Define a cor de fundo do input quando desabilitado.*/
33
- --text-input__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
33
+ --ez-text-input__input--disabled--background-color: var(--color--disable-secondary, #F2F5F8);
34
34
  /*@doc Define a cor do texto do input.*/
35
- --text-input__input--disabled--color: var(--text--disable, #AFB6C0);
35
+ --ez-text-input__input--disabled--color: var(--text--disable, #AFB6C0);
36
36
  /*@doc Define a cor da borda do input quando com erro.*/
37
- --text-input__input--error--border-color: #CC2936;
37
+ --ez-text-input__input--error--border-color: #CC2936;
38
38
 
39
39
  /* message box */
40
40
  /*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
41
- --text-input__message_box--font-size: var(--text--small, 12px);
41
+ --ez-text-input__message_box--font-size: var(--text--small, 12px);
42
42
  /*@doc Define a cor da fonte da mensagem quando info.*/
43
- --text-input__message_box--info--color: var(--color--success, #22085d);
43
+ --ez-text-input__message_box--info--color: var(--color--success, #22085d);
44
44
  /*@doc Define a cor da fonte da mensagem quando erro.*/
45
- --text-input__message_box--error--color: var(--color--error, #FF0000);
45
+ --ez-text-input__message_box--error--color: var(--color--error, #FF0000);
46
46
 
47
47
  /* label */
48
48
  /*@doc Define o posicionamento do label.*/
49
- --text-input__label--floating--top: 6px;
49
+ --ez-text-input__label--floating--top: 6px;
50
50
  /*@doc Define o posicionamento do label.*/
51
- --text-input__label--padding-top: 12px;
51
+ --ez-text-input__label--padding-top: 12px;
52
52
  /*@doc Define o espaçamento esquerdo do label.*/
53
- --text-input__label--padding-left: 14px;
53
+ --ez-text-input__label--padding-left: 14px;
54
54
  /*@doc Define o espaçamento direito do label.*/
55
- --text-input__label--padding-right: 12px;
55
+ --ez-text-input__label--padding-right: 12px;
56
56
 
57
57
 
58
58
  /***************
@@ -63,7 +63,7 @@
63
63
  flex-wrap: wrap;
64
64
  position: relative;
65
65
  /*public*/
66
- width: var(--text-input--width);
66
+ width: var(--ez-text-input--width);
67
67
  }
68
68
 
69
69
  input {
@@ -74,40 +74,40 @@ input {
74
74
  font-weight: var(--text-weight--large, 600);
75
75
 
76
76
  /*public*/
77
- height: var(--text-input--height);
78
- border-radius: var(--text-input--border-radius);
79
- font-family: var(--text-input--font-family);
80
- font-size: var(--text-input--font-size);
81
- border: var(--text-input__input--border);
82
- border-color: var(--text-input__input--border-color);
83
- background-color: var(--text-input__input--background-color);
84
- color: var(--text-input--color);
77
+ height: var(--ez-text-input--height);
78
+ border-radius: var(--ez-text-input--border-radius);
79
+ font-family: var(--ez-text-input--font-family);
80
+ font-size: var(--ez-text-input--font-size);
81
+ border: var(--ez-text-input__input--border);
82
+ border-color: var(--ez-text-input__input--border-color);
83
+ background-color: var(--ez-text-input__input--background-color);
84
+ color: var(--ez-text-input--color);
85
85
  }
86
86
 
87
87
  input:disabled {
88
88
  /*public*/
89
- background-color: var(--text-input__input--disabled--background-color);
90
- color: var(--text-input__input--disabled--color);
89
+ background-color: var(--ez-text-input__input--disabled--background-color);
90
+ color: var(--ez-text-input__input--disabled--color);
91
91
  }
92
92
 
93
93
  input:focus {
94
94
  /*private*/
95
95
  outline: none;
96
96
  /*public*/
97
- border-color: var(--text-input__input--focus--border-color);
97
+ border-color: var(--ez-text-input__input--focus--border-color);
98
98
  }
99
99
 
100
100
  input.icon--left {
101
- padding-left: var(--text-input__icon--width);
101
+ padding-left: var(--ez-text-input__icon--width);
102
102
  }
103
103
 
104
104
  input.icon--right {
105
- padding-right: var(--text-input__icon--width);
105
+ padding-right: var(--ez-text-input__icon--width);
106
106
  }
107
107
 
108
108
  input.hasError {
109
- color: var(--text-input--color);
110
- border-color: var(--text-input__input--error--border-color);
109
+ color: var(--ez-text-input--color);
110
+ border-color: var(--ez-text-input__input--error--border-color);
111
111
  }
112
112
 
113
113
  input.text--right {
@@ -126,14 +126,14 @@ input.text--right {
126
126
  white-space: nowrap;
127
127
 
128
128
  /*public*/
129
- font-family: var(--text-input--font-family);
130
- font-size: var(--text-input__message_box--font-size);
131
- color: var(--text-input__message_box--info--color);
129
+ font-family: var(--ez-text-input--font-family);
130
+ font-size: var(--ez-text-input__message_box--font-size);
131
+ color: var(--ez-text-input__message_box--info--color);
132
132
  }
133
133
 
134
134
  .hasError {
135
135
  /*public*/
136
- color: var(--text-input__message_box--error--color);
136
+ color: var(--ez-text-input__message_box--error--color);
137
137
  }
138
138
 
139
139
  .input__label {
@@ -146,49 +146,49 @@ input.text--right {
146
146
  white-space: nowrap;
147
147
  -webkit-transition: font-size .05s, top .05s;
148
148
  transition: font-size .05s, top .05s;
149
- width: calc(100% - var(--text-input__label--padding-right));
150
- left: var(--text-input--space--medium);
149
+ width: calc(100% - var(--ez-text-input__label--padding-right));
150
+ left: var(--ez-text-input--space--medium);
151
151
 
152
152
  /*public*/
153
- font-family: var(--text-input--font-family);
154
- font-size: var(--text-input--font-size);
155
- font-weight: var(--text-input--font-weight);
156
- color: var(--text-input--color);
157
- top: var(--text-input__label--padding-top);
158
- left: var(--text-input__label--padding-left);
159
- padding-right: var(--text-input__label--padding-right);
153
+ font-family: var(--ez-text-input--font-family);
154
+ font-size: var(--ez-text-input--font-size);
155
+ font-weight: var(--ez-text-input--font-weight);
156
+ color: var(--ez-text-input--color);
157
+ top: var(--ez-text-input__label--padding-top);
158
+ left: var(--ez-text-input__label--padding-left);
159
+ padding-right: var(--ez-text-input__label--padding-right);
160
160
  }
161
161
 
162
162
  .input__label--floated {
163
- font-family: var(--text-input--font-family);
163
+ font-family: var(--ez-text-input--font-family);
164
164
  font-size: var(--text--extra-small);
165
165
  color: var(--text--primary);
166
- top: var(--text-input__label--floating--top);
166
+ top: var(--ez-text-input__label--floating--top);
167
167
  }
168
168
 
169
169
  .input__label--disabled {
170
- color: var(--text-input__input--disabled--color);
170
+ color: var(--ez-text-input__input--disabled--color);
171
171
  }
172
172
 
173
173
  .input__label--left {
174
174
  /*public*/
175
175
  text-align: left;
176
- left: calc(var(--text-input__icon--width) + 2px);
176
+ left: calc(var(--ez-text-input__icon--width) + 2px);
177
177
  /*borda*/
178
- width: calc(100% - var(--text-input__icon--width));
178
+ width: calc(100% - var(--ez-text-input__icon--width));
179
179
  }
180
180
 
181
181
  .input__label--right {
182
182
  /*public*/
183
- right: var(--text-input__icon--width);
184
- width: calc(100% - var(--text-input__icon--width));
183
+ right: var(--ez-text-input__icon--width);
184
+ width: calc(100% - var(--ez-text-input__icon--width));
185
185
  }
186
186
 
187
187
  /* ISSO TA ERRADO CRIAR INPUT__LABEL--BOTH */
188
188
  .input__label--left.input__label--right {
189
- left: calc(var(--text-input__icon--width) + 2px);
189
+ left: calc(var(--ez-text-input__icon--width) + 2px);
190
190
  /*borda*/
191
- width: calc(100% - var(--text-input__icon--width) * 2);
191
+ width: calc(100% - var(--ez-text-input__icon--width) * 2);
192
192
  }
193
193
 
194
194
  .input--with--label {
@@ -1,5 +1,5 @@
1
- import { Component, Prop, h, Watch, Host, Method, Event, Element } from '@stencil/core';
2
- import { MaskFormatter } from '@sankhyalabs/core';
1
+ import { Component, Prop, h, Watch, Host, Method, Event, Element } from "@stencil/core";
2
+ import { MaskFormatter } from "@sankhyalabs/core";
3
3
  export class EzTextInput {
4
4
  constructor() {
5
5
  /**
@@ -8,14 +8,14 @@ export class EzTextInput {
8
8
  this.enabled = true;
9
9
  }
10
10
  showError() {
11
- const hasError = typeof this.errorMessage === 'string' && this.errorMessage !== '';
11
+ const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
12
12
  if (hasError) {
13
- this._inputElem.classList.add('hasError');
14
- this._messageBoxElem.classList.add('hasError');
13
+ this._inputElem.classList.add("hasError");
14
+ this._messageBoxElem.classList.add("hasError");
15
15
  }
16
16
  else {
17
- this._inputElem.classList.remove('hasError');
18
- this._messageBoxElem.classList.remove('hasError');
17
+ this._inputElem.classList.remove("hasError");
18
+ this._messageBoxElem.classList.remove("hasError");
19
19
  }
20
20
  }
21
21
  prepareMask() {
@@ -33,7 +33,8 @@ export class EzTextInput {
33
33
  this._inputElem.value = this.value;
34
34
  }
35
35
  this.handleChange();
36
- this.ezChange.emit();
36
+ this.errorMessage = "";
37
+ this.ezChange.emit(this.value);
37
38
  this.adjustFloatingLabel();
38
39
  }
39
40
  adjustFloatingLabel() {
@@ -118,22 +119,22 @@ export class EzTextInput {
118
119
  content.style.justifyContent = "center";
119
120
  content.style.overflow = "hidden";
120
121
  content.style.top = "0px";
121
- content.style.width = "var(--text-input__icon--width)";
122
- content.style.height = "var(--text-input--height)";
122
+ content.style.width = "var(--ez-text-input__icon--width)";
123
+ content.style.height = "var(--ez-text-input--height)";
123
124
  if (slot.name == "leftIcon") {
124
125
  content.style.left = "0px";
125
- content.style.borderRadius = "var(--text-input--border-radius) 0 0 var(--text-input--border-radius)";
126
- this._inputElem.classList.add('icon--left');
126
+ content.style.borderRadius = "var(--ez-text-input--border-radius) 0 0 var(--ez-text-input--border-radius)";
127
+ this._inputElem.classList.add("icon--left");
127
128
  if (this._labelElem) {
128
- this._labelElem.classList.add('input__label--left');
129
+ this._labelElem.classList.add("input__label--left");
129
130
  }
130
131
  }
131
132
  else if (slot.name == "rightIcon") {
132
133
  content.style.right = "0px";
133
- content.style.borderRadius = "0 var(--text-input--border-radius) var(--text-input--border-radius) 0";
134
- this._inputElem.classList.add('icon--right');
134
+ content.style.borderRadius = "0 var(--ez-text-input--border-radius) var(--ez-text-input--border-radius) 0";
135
+ this._inputElem.classList.add("icon--right");
135
136
  if (this._labelElem) {
136
- this._labelElem.classList.add('input__label--right');
137
+ this._labelElem.classList.add("input__label--right");
137
138
  }
138
139
  }
139
140
  }
@@ -1,6 +1,7 @@
1
- import { Element, Component, Prop, h, Watch, Host, Method, getAssetPath } from "@stencil/core";
1
+ import { Element, Component, Prop, h, Watch, Host, Method } from "@stencil/core";
2
2
  import { TimeFormatter, MaskFormatter, NumberUtils } from "@sankhyalabs/core";
3
3
  import CSSVarsUtils from "../../utils/CSSVarsUtils";
4
+ import { getSpritePath } from "../../utils/AssetsUtils";
4
5
  export class EzTimeInput {
5
6
  constructor() {
6
7
  /**
@@ -97,7 +98,7 @@ export class EzTimeInput {
97
98
  render() {
98
99
  return (h(Host, null,
99
100
  h("ez-text-input", { ref: (el) => this._inputElem = el, value: this.viewValue, enabled: this.enabled, label: this.label, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, errorMessage: this.errorMessage },
100
- h("ez-icon", { slot: "leftIcon", href: getAssetPath("./assets/actions-sprite.svg") + "#timer-outline" }))));
101
+ h("ez-icon", { slot: "leftIcon", href: getSpritePath("timer-outline") }))));
101
102
  }
102
103
  static get is() { return "ez-time-input"; }
103
104
  static get encapsulation() { return "shadow"; }