@sankhyalabs/ezui 1.1.75 → 1.1.78

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 (195) hide show
  1. package/dist/cjs/ApplicationUtils-d1c1db56.js +35 -0
  2. package/dist/cjs/AssetsUtils-dd585fba.js +24 -0
  3. package/dist/cjs/CSSVarsUtils-66e86394.js +18 -0
  4. package/dist/cjs/DataUnit-fdd7c70e.js +474 -0
  5. package/dist/cjs/DateUtils-716769e0.js +46 -0
  6. package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-application.cjs.entry.js +26 -0
  8. package/dist/cjs/ez-button_11.cjs.entry.js +111771 -0
  9. package/dist/cjs/ez-calendar.cjs.entry.js +217 -0
  10. package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +634 -0
  11. package/dist/cjs/ez-combo-box.cjs.entry.js +254 -0
  12. package/dist/cjs/ez-date-time-input.cjs.entry.js +133 -0
  13. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-form.cjs.entry.js +1838 -0
  15. package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-number-input.cjs.entry.js +36 -212
  17. package/dist/cjs/ez-popover.cjs.entry.js +3 -3
  18. package/dist/cjs/ez-popup.cjs.entry.js +2 -2
  19. package/dist/cjs/ez-time-input.cjs.entry.js +10 -9
  20. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  21. package/dist/cjs/ezui.cjs.js +3 -3
  22. package/dist/cjs/form-metadata.cjs.entry.js +129 -0
  23. package/dist/cjs/index-40ebb2be.js +7422 -0
  24. package/dist/cjs/{index-4d2896bb.js → index-4e4bae01.js} +3 -5
  25. package/dist/cjs/loader.cjs.js +3 -3
  26. package/dist/collection/collection-manifest.json +8 -3
  27. package/dist/collection/components/ez-application/ez-application.css +3 -0
  28. package/dist/collection/components/ez-application/ez-application.js +35 -0
  29. package/dist/collection/components/ez-button/ez-button.css +78 -44
  30. package/dist/collection/components/ez-button/ez-button.js +36 -4
  31. package/dist/collection/components/ez-calendar/ez-calendar.css +70 -3
  32. package/dist/collection/components/ez-calendar/ez-calendar.js +173 -24
  33. package/dist/collection/components/ez-check/ez-check.css +78 -78
  34. package/dist/collection/components/ez-check/ez-check.js +3 -3
  35. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +34 -34
  36. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -12
  37. package/dist/collection/components/ez-combo-box/ez-combo-box.css +65 -54
  38. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
  39. package/dist/collection/components/ez-date-input/ez-date-input.css +17 -3
  40. package/dist/collection/components/ez-date-input/ez-date-input.js +3 -3
  41. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
  42. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +243 -0
  43. package/dist/collection/components/ez-form/ez-form.js +37 -35
  44. package/dist/collection/components/ez-form/store/Form.actions.js +16 -16
  45. package/dist/collection/components/ez-form/store/Form.reducer.js +17 -17
  46. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +11 -11
  47. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +12 -12
  48. package/dist/collection/components/ez-form/subcomponents/place-holder.js +1 -1
  49. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +21 -21
  50. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
  51. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +9 -9
  52. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +21 -0
  53. package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
  54. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +203 -0
  55. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +41 -0
  56. package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
  57. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
  58. package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +12 -0
  59. package/dist/collection/components/ez-grid/ez-grid.css +15 -0
  60. package/dist/collection/components/ez-grid/ez-grid.js +414 -0
  61. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +105 -0
  62. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +354 -0
  63. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +7 -0
  64. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +66 -0
  65. package/dist/collection/components/ez-icon/ez-icon.css +1 -1
  66. package/dist/collection/components/ez-list/ez-list.css +227 -44
  67. package/dist/collection/components/ez-list/ez-list.js +529 -149
  68. package/dist/collection/components/ez-modal/ez-modal.css +4 -4
  69. package/dist/collection/components/ez-modal/ez-modal.js +1 -1
  70. package/dist/collection/components/ez-number-input/ez-number-input.css +1 -165
  71. package/dist/collection/components/ez-number-input/ez-number-input.js +53 -339
  72. package/dist/collection/components/ez-popover/ez-popover.css +10 -6
  73. package/dist/collection/components/ez-popup/ez-popup.css +25 -27
  74. package/dist/collection/components/ez-search/ez-search.js +6 -1
  75. package/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -1
  76. package/dist/collection/components/ez-tabselector/ez-tabselector.js +3 -3
  77. package/dist/collection/components/ez-text-area/ez-text-area.js +1 -0
  78. package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
  79. package/dist/collection/components/ez-text-input/ez-text-input.js +17 -16
  80. package/dist/collection/components/ez-time-input/ez-time-input.js +3 -2
  81. package/dist/collection/components/ez-upload/ez-upload.js +3 -3
  82. package/dist/collection/components/test-du/test-du.css +3 -0
  83. package/dist/collection/components/test-du/test-du.js +45 -0
  84. package/dist/collection/servidor.js +94 -94
  85. package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
  86. package/dist/collection/utils/AssetsUtils.js +19 -0
  87. package/dist/collection/utils/CSSVarsUtils.js +6 -6
  88. package/dist/custom-elements/index.d.ts +36 -6
  89. package/dist/custom-elements/index.js +120886 -2964
  90. package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
  91. package/dist/esm/AssetsUtils-3803e935.js +22 -0
  92. package/dist/esm/CSSVarsUtils-aeee9825.js +16 -0
  93. package/dist/esm/DataUnit-1cd45202.js +464 -0
  94. package/dist/esm/DateUtils-0a1bbd7a.js +44 -0
  95. package/dist/esm/ez-action-chip.entry.js +1 -1
  96. package/dist/esm/ez-application.entry.js +22 -0
  97. package/dist/esm/ez-button_11.entry.js +111757 -0
  98. package/dist/esm/ez-calendar.entry.js +213 -0
  99. package/dist/esm/ez-collapsible-box_6.entry.js +625 -0
  100. package/dist/esm/ez-combo-box.entry.js +250 -0
  101. package/dist/esm/ez-date-time-input.entry.js +129 -0
  102. package/dist/esm/ez-dialog.entry.js +1 -1
  103. package/dist/esm/ez-form.entry.js +1834 -0
  104. package/dist/esm/ez-label-chip.entry.js +1 -1
  105. package/dist/esm/ez-number-input.entry.js +36 -212
  106. package/dist/esm/ez-popover.entry.js +3 -3
  107. package/dist/esm/ez-popup.entry.js +2 -2
  108. package/dist/esm/ez-time-input.entry.js +5 -4
  109. package/dist/esm/ez-toast.entry.js +1 -1
  110. package/dist/esm/ezui.js +3 -3
  111. package/dist/esm/form-metadata.entry.js +125 -0
  112. package/dist/esm/{index-33153059.js → index-1dacecd3.js} +3 -6
  113. package/dist/esm/index-ca8700cb.js +7414 -0
  114. package/dist/esm/loader.js +3 -3
  115. package/dist/ezui/ezui.esm.js +1 -1
  116. package/dist/ezui/p-14bee38e.entry.js +1 -0
  117. package/dist/ezui/p-37a611ea.js +1 -0
  118. package/dist/ezui/p-3a09c678.entry.js +1 -0
  119. package/dist/ezui/p-43c15c94.entry.js +1 -0
  120. package/dist/ezui/{p-34d288d0.entry.js → p-516d0e0f.entry.js} +1 -1
  121. package/dist/ezui/{p-0d476efb.entry.js → p-5a86e18a.entry.js} +1 -1
  122. package/dist/ezui/{p-47406a6e.entry.js → p-5da66d3e.entry.js} +1 -1
  123. package/dist/ezui/p-7107d7ef.js +1 -0
  124. package/dist/ezui/p-72ff3c95.entry.js +1 -0
  125. package/dist/ezui/p-74f978db.entry.js +369 -0
  126. package/dist/ezui/p-88f45a83.entry.js +1 -0
  127. package/dist/ezui/p-8b099482.js +1 -0
  128. package/dist/ezui/p-8d6cdd3e.entry.js +1 -0
  129. package/dist/ezui/p-8f4851a6.js +1 -0
  130. package/dist/ezui/p-9dfd537e.js +1 -0
  131. package/dist/ezui/p-a0331955.entry.js +1 -0
  132. package/dist/ezui/p-a15093e3.entry.js +1 -0
  133. package/dist/ezui/{p-8818da66.entry.js → p-a18a2d7b.entry.js} +1 -1
  134. package/dist/ezui/p-a19f2af3.entry.js +1 -0
  135. package/dist/ezui/p-c6d469fc.entry.js +1 -0
  136. package/dist/ezui/p-c89629eb.js +1 -0
  137. package/dist/ezui/p-da929c01.js +1 -0
  138. package/dist/ezui/p-f3c5f27e.entry.js +1 -0
  139. package/dist/types/components/ez-application/ez-application.d.ts +10 -0
  140. package/dist/types/components/ez-button/ez-button.d.ts +5 -0
  141. package/dist/types/components/ez-calendar/ez-calendar.d.ts +21 -0
  142. package/dist/types/components/ez-check/ez-check.d.ts +1 -1
  143. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +3 -3
  144. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
  145. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +42 -0
  146. package/dist/types/components/ez-form/ez-form.d.ts +9 -9
  147. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +1 -1
  148. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +1 -1
  149. package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +8 -0
  150. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +195 -0
  151. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +34 -0
  152. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +11 -0
  153. package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
  154. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
  155. package/dist/types/components/ez-grid/ez-grid.d.ts +78 -0
  156. package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +30 -0
  157. package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +9 -0
  158. package/dist/types/components/ez-list/ez-list.d.ts +70 -17
  159. package/dist/types/components/ez-number-input/ez-number-input.d.ts +29 -63
  160. package/dist/types/components/ez-search/ez-search.d.ts +2 -0
  161. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
  162. package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -1
  163. package/dist/types/components/test-du/test-du.d.ts +6 -0
  164. package/dist/types/components.d.ts +289 -139
  165. package/dist/types/stencil-public-runtime.d.ts +6 -4
  166. package/dist/types/utils/{Application.d.ts → ApplicationUtils.d.ts} +1 -1
  167. package/dist/types/utils/AssetsUtils.d.ts +1 -0
  168. package/dist/types/utils/CSSVarsUtils.d.ts +1 -1
  169. package/package.json +10 -8
  170. package/react/components.d.ts +6 -1
  171. package/react/components.js +6 -1
  172. package/react/components.js.map +1 -1
  173. package/dist/cjs/CSSVarsUtils-f8827674.js +0 -18
  174. package/dist/cjs/RequestMetadata-2cd01e8a.js +0 -531
  175. package/dist/cjs/ez-button_16.cjs.entry.js +0 -4071
  176. package/dist/cjs/ez-list.cjs.entry.js +0 -174
  177. package/dist/cjs/ez-modal.cjs.entry.js +0 -65
  178. package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +0 -13
  179. package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +0 -185
  180. package/dist/esm/CSSVarsUtils-e0128b01.js +0 -16
  181. package/dist/esm/RequestMetadata-c265c9d5.js +0 -527
  182. package/dist/esm/ez-button_16.entry.js +0 -4052
  183. package/dist/esm/ez-list.entry.js +0 -170
  184. package/dist/esm/ez-modal.entry.js +0 -61
  185. package/dist/ezui/p-061d21ba.entry.js +0 -1
  186. package/dist/ezui/p-15743b09.entry.js +0 -1
  187. package/dist/ezui/p-46d07e59.entry.js +0 -1
  188. package/dist/ezui/p-4df6f855.js +0 -1
  189. package/dist/ezui/p-50464bdf.entry.js +0 -1
  190. package/dist/ezui/p-67410dfa.entry.js +0 -1
  191. package/dist/ezui/p-7be54779.entry.js +0 -1
  192. package/dist/ezui/p-7f3bc6d9.entry.js +0 -1
  193. package/dist/ezui/p-9dfccb16.js +0 -1
  194. package/dist/ezui/p-d1889704.js +0 -1
  195. package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
@@ -1,4 +1,5 @@
1
- import { Component, Event, h, Prop, Watch } from "@stencil/core";
1
+ import { Component, Event, h, Prop, Watch, Element } from "@stencil/core";
2
+ import CSSVarsUtils from "../../utils/CSSVarsUtils";
2
3
  export class EzSearch {
3
4
  constructor() {
4
5
  /**
@@ -24,6 +25,9 @@ export class EzSearch {
24
25
  this.value = evt.detail;
25
26
  this.ezChange.emit(evt.detail);
26
27
  }
28
+ componentDidLoad() {
29
+ CSSVarsUtils.applyVarsTextInput(this._elem, this._comboElement);
30
+ }
27
31
  render() {
28
32
  return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionLoader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showSelectedValue, showOptionValue: this.showOptionValue }));
29
33
  }
@@ -203,6 +207,7 @@ export class EzSearch {
203
207
  "references": {}
204
208
  }
205
209
  }]; }
210
+ static get elementRef() { return "_elem"; }
206
211
  static get watchers() { return [{
207
212
  "propName": "value",
208
213
  "methodName": "updateValue"
@@ -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"; }
@@ -1,5 +1,5 @@
1
1
  import { Component, h, Prop, Element, Event, Method, Watch, forceUpdate } from "@stencil/core";
2
- import Application from "../../utils/Application";
2
+ import ApplicationUtils from "../../utils/ApplicationUtils";
3
3
  import RemoteFile from "./RemoteFile";
4
4
  export class EzUpload {
5
5
  constructor() {
@@ -61,7 +61,7 @@ export class EzUpload {
61
61
  async addFile(file) {
62
62
  const oldFile = this._filePointers.get(file.name);
63
63
  if (oldFile) {
64
- Application.confirm("Substituir arquivo", `Já existe um arquivo chamado "${file.name}". Deseja substituí-lo?`)
64
+ ApplicationUtils.confirm("Substituir arquivo", `Já existe um arquivo chamado "${file.name}". Deseja substituí-lo?`)
65
65
  .then(ok => {
66
66
  if (ok) {
67
67
  if (this.isRemoteFile(oldFile)) {
@@ -133,7 +133,7 @@ export class EzUpload {
133
133
  return true;
134
134
  }
135
135
  showError(message) {
136
- Application.alert("Enviando arquivo", message);
136
+ ApplicationUtils.alert("Enviando arquivo", message);
137
137
  }
138
138
  formatBytes(bytes, decimals = 1) {
139
139
  if (bytes === 0)
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: block;
3
+ }
@@ -0,0 +1,45 @@
1
+ import { Component, h } from '@stencil/core';
2
+ import { DataUnit, DataType } from '@sankhyalabs/core';
3
+ export class TestDu {
4
+ constructor() {
5
+ this._dataUnit = new DataUnit("duteste");
6
+ }
7
+ componentDidLoad() {
8
+ this._dataUnit.dataLoader = (_dataUnit, _sort, _filters) => {
9
+ return Promise.resolve([
10
+ { __record__id__: "registro1", CODPARC: 10, NOMEPARC: "Parceiro 10" },
11
+ { __record__id__: "registro2", CODPARC: 20, NOMEPARC: "Parceiro 20" }
12
+ ]);
13
+ };
14
+ this._dataUnit.metadata = {
15
+ name: "Parceiro",
16
+ label: "Parceiro",
17
+ fields: [
18
+ {
19
+ name: "CODPARC",
20
+ label: "Cód. Parceiro",
21
+ dataType: DataType.NUMBER
22
+ },
23
+ {
24
+ name: "NOMEPARC",
25
+ label: "Nome Parceiro",
26
+ dataType: DataType.TEXT
27
+ }
28
+ ]
29
+ };
30
+ }
31
+ render() {
32
+ return (h("section", { class: "padding--large" },
33
+ h("div", { class: "row margin-bottom--large" },
34
+ h("h1", { class: "title title--primary" }, "Formul\u00E1rios")),
35
+ h("div", { class: "col col--sd-12", style: { height: "600px" } },
36
+ h("ez-grid", { dataUnit: this._dataUnit, "server-url": "https://www.ag-grid.com/example-assets/row-data.json", "multiple-selection": true, "page-size": "100" }))));
37
+ }
38
+ static get is() { return "test-du"; }
39
+ static get originalStyleUrls() { return {
40
+ "$": ["test-du.css"]
41
+ }; }
42
+ static get styleUrls() { return {
43
+ "$": ["test-du.css"]
44
+ }; }
45
+ }