@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
@@ -3,20 +3,22 @@
3
3
  /* auto-generated react proxies */
4
4
  import { createReactComponent } from './react-component-lib';
5
5
  export const EzActionChip = /*@__PURE__*/ createReactComponent('ez-action-chip');
6
+ export const EzApplication = /*@__PURE__*/ createReactComponent('ez-application');
6
7
  export const EzButton = /*@__PURE__*/ createReactComponent('ez-button');
7
8
  export const EzCalendar = /*@__PURE__*/ createReactComponent('ez-calendar');
8
9
  export const EzCheck = /*@__PURE__*/ createReactComponent('ez-check');
9
10
  export const EzCollapsibleBox = /*@__PURE__*/ createReactComponent('ez-collapsible-box');
10
11
  export const EzComboBox = /*@__PURE__*/ createReactComponent('ez-combo-box');
11
12
  export const EzDateInput = /*@__PURE__*/ createReactComponent('ez-date-input');
13
+ export const EzDateTimeInput = /*@__PURE__*/ createReactComponent('ez-date-time-input');
12
14
  export const EzDialog = /*@__PURE__*/ createReactComponent('ez-dialog');
13
15
  export const EzForm = /*@__PURE__*/ createReactComponent('ez-form');
16
+ export const EzGrid = /*@__PURE__*/ createReactComponent('ez-grid');
14
17
  export const EzIcon = /*@__PURE__*/ createReactComponent('ez-icon');
15
18
  export const EzLabelChip = /*@__PURE__*/ createReactComponent('ez-label-chip');
16
19
  export const EzList = /*@__PURE__*/ createReactComponent('ez-list');
17
20
  export const EzModal = /*@__PURE__*/ createReactComponent('ez-modal');
18
21
  export const EzNumberInput = /*@__PURE__*/ createReactComponent('ez-number-input');
19
- export const EzNumericInput = /*@__PURE__*/ createReactComponent('ez-numeric-input');
20
22
  export const EzPopover = /*@__PURE__*/ createReactComponent('ez-popover');
21
23
  export const EzPopup = /*@__PURE__*/ createReactComponent('ez-popup');
22
24
  export const EzSearch = /*@__PURE__*/ createReactComponent('ez-search');
@@ -27,5 +29,8 @@ export const EzTimeInput = /*@__PURE__*/ createReactComponent('ez-time-input');
27
29
  export const EzToast = /*@__PURE__*/ createReactComponent('ez-toast');
28
30
  export const EzUpload = /*@__PURE__*/ createReactComponent('ez-upload');
29
31
  export const FormMetadata = /*@__PURE__*/ createReactComponent('form-metadata');
32
+ export const GridConfig = /*@__PURE__*/ createReactComponent('grid-config');
30
33
  export const PlaceHolder = /*@__PURE__*/ createReactComponent('place-holder');
34
+ export const SelectBox = /*@__PURE__*/ createReactComponent('select-box');
35
+ export const TestDu = /*@__PURE__*/ createReactComponent('test-du');
31
36
  //# sourceMappingURL=components.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.js","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB,oBAAoB;AACpB,kCAAkC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAM7D,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,gBAAgB,CAAC,CAAC;AAC3H,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB,CAAoC,WAAW,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,gBAAgB,GAAG,aAAa,CAAA,oBAAoB,CAAoD,oBAAoB,C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aAAa,CAAA,oBAAoB,CAAwC,cAAc,CAAC,CAAC;AACnH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,eAAe,CAAC,CAAC;AACvH,MAAM,CAAC,MAAM,OAAO,GAAG,aAAa,CAAA,oBAAoB,CAAkC,UAAU,CAAC,CAAC;AACtG,MAAM,CAAC,MAAM,QAAQ,GAAG,aAAa,CAAA,oBAAoB,CAAoC,WAAW,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAA,oBAAoB,CAA4C,eAAe,CAAC,CAAC;AAC1H,MAAM,CAAC,MAAM,UAAU,GAAG,aAAa,CAAA,oBAAoB,CAAwC,aAAa,CAAC,CAAC;AAClH,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAA,oBAAoB,CAA0C,cAAc,CAAC,CAAC;AACtH,MAAM,CAAC,MAAM,SAAS,GAAG,aAAa,CAAA,oBAAoB,CAAsC,YAAY,CAAC,CAAC;AAC9G,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAA,oBAAoB,CAAgC,SAAS,CAAC,CAAC"}
@@ -1,18 +0,0 @@
1
- 'use strict';
2
-
3
- class CSSVarsUtils {
4
- static applyVarsTextInput(host, textInput) {
5
- if (textInput) {
6
- CSSVarsUtils.applyIfExists(host, textInput, '--text-input__input--background-color');
7
- CSSVarsUtils.applyIfExists(host, textInput, '--text-input__input--border-color');
8
- }
9
- }
10
- static applyIfExists(host, textInput, varName) {
11
- const prop = getComputedStyle(host).getPropertyValue(varName);
12
- if (prop) {
13
- textInput.style.setProperty(varName, prop);
14
- }
15
- }
16
- }
17
-
18
- exports.CSSVarsUtils = CSSVarsUtils;
@@ -1,531 +0,0 @@
1
- 'use strict';
2
-
3
- const NUMBERINPUTS_REGEX_SCIENTIFIC_PARTS = /^([+-])?(\d+).?(\d*)[eE]([-+]?\d+)$/;
4
- /**
5
- * `NumberUtils` é uma biblioteca para manipulação de números
6
- *
7
- * `Métodos`:
8
- *
9
- * @stringToNumber: converte um número em formato de string em um valor numérico nativo do javascript
10
- * @format: arredonda um número em formato de string baseado nos parâmetros "presision" e "prettyPrecision";
11
- */
12
- class NumberUtils {
13
- }
14
- /**
15
- * @stringToNumber: converte um numero em formato de string em numero
16
- *
17
- * @param value numero em formato de string a ser convertido (Importante: formato PT-BR ou já em formato numérico: ######.##)
18
- *
19
- * @returns string based number
20
- *
21
- * @Exemples
22
- * @"100,12" | 100.12
23
- * @"100.12" | 100.12
24
- * @"-100,12" | -100.12
25
- * @"R$100,12" | 100.12
26
- * @"-R$100,12" | -100.12
27
- * @"string" | NaN
28
- */
29
- NumberUtils.stringToNumber = (value) => {
30
- if (value === '' || value === null || value === undefined) {
31
- return NaN;
32
- }
33
- if (value) {
34
- value = value.toString();
35
- var negative = (value.charAt(0) === '-');
36
- if (!NUMBERINPUTS_REGEX_SCIENTIFIC_PARTS.test(value)) {
37
- value = value.replace(/[^\d.,]/g, '');
38
- }
39
- else {
40
- value = value.replace(/^-/g, '');
41
- }
42
- //In case of simple string such as: "@@@@@@@"
43
- if (value === '') {
44
- return Number(NaN);
45
- }
46
- var indexV = value.indexOf(',');
47
- var indexP = value.indexOf('.');
48
- if (indexP > indexV) {
49
- value = value.replace(',', '');
50
- }
51
- else if (indexP < indexV) {
52
- value = value.replace(/\./g, '@').replace(',', '.').replace(/@/g, '');
53
- }
54
- if (negative) {
55
- value = '-' + value;
56
- }
57
- }
58
- return Number(value);
59
- };
60
- /**
61
- * @format: converte um numero em formato de string em um numero em formato de string formatado de acordo com os parametros de "precision" e "prettyPrecision"
62
- *
63
- * @param value numero em formato de string a ser convertido (Importante: formato PT-BR ou já em formato numérico<sem separadors de milhares>: ######.##)
64
- * @param precision (numero de decimais)
65
- * @param prettyPrecision (numero de zeros nos decimais)
66
- *
67
- * @returns numero em formato de string formatado em PT-BR
68
- */
69
- NumberUtils.format = (value, precision, prettyPrecision = NaN) => {
70
- if (value === '' || value === undefined || value === "NaN") {
71
- return NaN.toString();
72
- }
73
- let newValue = NumberUtils.stringToNumber(value);
74
- if (newValue === NaN) {
75
- return NaN.toString();
76
- }
77
- //Validation "precision":
78
- // Case1: precision < 0 => does not use precision
79
- // Case2: presicion not int => does not use precision
80
- if (precision < 0 || Math.abs(Math.round(precision * 1) / 1) !== precision) {
81
- //Once stringToNumber returns number format, we need to change to pt-br
82
- return NumberUtils.changeFormat(newValue.toString());
83
- }
84
- //Validation "prettyPrecision"
85
- let prettyPrecisionInternal = 0;
86
- // Case1: prettyPrecision < 0 => prettyPrecision does not change de format that means: prettyPrecisionInternal = precision;
87
- // Case2: prettyPrecision not int => prettyPrecision does not change de format that means: prettyPrecisionInternal = precision;
88
- if (prettyPrecision === NaN || Math.abs(Math.round(prettyPrecision * 1) / 1) !== prettyPrecision) {
89
- prettyPrecisionInternal = precision;
90
- }
91
- else {
92
- prettyPrecisionInternal = prettyPrecision;
93
- }
94
- let newValueStr;
95
- newValueStr = (Math.round(newValue * Math.pow(10, precision)) / Math.pow(10, precision)).toLocaleString('pt-br', { minimumFractionDigits: precision });
96
- //prettyPrecision
97
- const varSettingPP = precision - prettyPrecisionInternal;
98
- if (varSettingPP > 0) {
99
- for (let i = 0; i < varSettingPP; i++) {
100
- if (newValueStr.substring(newValueStr.length - 1) == "0" && precision > 0) {
101
- newValueStr = newValueStr.substring(0, newValueStr.length - 1);
102
- }
103
- }
104
- }
105
- //in Case "." or "," in the end of the string
106
- if (newValueStr.substring(newValueStr.length - 1) == "." || newValueStr.substring(newValueStr.length - 1) == ",") {
107
- newValueStr = newValueStr.substring(0, newValueStr.length - 1);
108
- }
109
- return newValueStr;
110
- };
111
- /**
112
- * @keepOnlyDecimalSeparator: retira os separadores de milhar de um número em formato de string
113
- *
114
- * @param value numero em formato de string a ser convertido
115
- * @param formatnumber (formatação de ENTRADA e SAÍDA do utilitário: pt-BR="###.###,##" en-US="###,###.##"; Default: "pt-BR")
116
- *
117
- * @returns numero em formato de string formatado apenas com separador decimal
118
- */
119
- NumberUtils.keepOnlyDecimalSeparator = (value, formatnumber = 'pt-BR') => {
120
- //Formatting formatnumber to be able to get lowercases
121
- formatnumber = formatnumber.toUpperCase();
122
- //Formatting value following formatnumber parameter
123
- //keep only decimal character in order to correct format the string
124
- //This transformation is due the "stringtoNumber" method is a general method that tries to convert all formated strings
125
- if (formatnumber === 'EN-US') {
126
- value = value.replace(/\,/g, '');
127
- }
128
- else {
129
- value = value.replace(/\./g, '');
130
- }
131
- return value;
132
- };
133
- /**
134
- * @changeFormat: troca o formato do numero string de "PT-BR" para "EN-US" e vice-versa
135
- *
136
- * @param value numero em formato de string a ser convertido
137
- *
138
- * @returns numero em formato de string formatado de "PT-BR" para "EN-US" e vice-versa
139
- */
140
- NumberUtils.changeFormat = (value) => {
141
- //Formatting output following formatnumber
142
- return value.replace(/\./g, '_').replace(/\,/g, '.').replace(/\_/g, ',');
143
- };
144
-
145
- /**
146
- * `MaskFormatter` é usado para formatar strings. Seu comportamento
147
- * é controlado pela formato do atributo `mask` que especifica quais
148
- * caracteres são válidos e onde devem estar posicionados, intercalando-os
149
- * com eventuais caracteres literais expressados no padrão informado.
150
- * Sua implementação é inspirada pela implementação em Java do [MaskFormatter](https://docs.oracle.com/javase/7/docs/api/javax/swing/text/MaskFormatter.html).
151
- *
152
- * Para o padrão da máscara podem ser usados os seguintes caracteres especiais:
153
- *
154
- * | Caractere | Comportamento |
155
- * |:---------:|-------------------------------------------------------------------------------------------------------------|
156
- * | # | Qualquer número |
157
- * | ' | "Escapa" o caractere que vem na sequência. Útil quando desejamos converter um caractere especial em literal.|
158
- * | U | Qualquer letra. Transforma letras maiúsculas em maiúsculas. |
159
- * | L | Qualquer letra. Transforma letras maiúsculas em minúsculas. |
160
- * | A | Qualquer letra ou número. |
161
- * | ? | Qualquer letra. Preserva maiúsculas e minúsculas. |
162
- * | * | Qualquer caractere. |
163
- *
164
- * Os demais caracteres presentes no padrão serão tratados como literais, isto é,
165
- * serão apenas inseridos naquela posição.
166
- *
167
- * Quando o o valor a ser formatado é menor que a máscara um 'placeHolder'
168
- * será inserido em cada posição ausente, completando a formatação.
169
- * Por padrão será usado um espaço em branco como 'placeHolder' mas
170
- * esse valor pode ser alterado.
171
- *
172
- * For por exemplo:
173
- * '''
174
- * const formatter: MaskFormatter = new MaskFormatter("###-####");
175
- * formatter.placeholder = '_';
176
- * console.log(formatter.format("123"));
177
- * '''
178
- * resultaria na string '123-____'.
179
- *
180
- * ##Veja mais alguns exemplos:
181
- * |Padrão |Máscara |Entrada |Saída |
182
- * |----------------|------------------|--------------|------------------|
183
- * |Telefone |(##) ####-#### |3432192515 |(34) 3219-2515 |
184
- * |CPF |###.###.###-## |12345678901 |123.456.789-01 |
185
- * |CNPJ |##.###.###/####-##|12345678901234|12.345.678/9012-34|
186
- * |CEP |##.###-### |12345678 |12.345-678 |
187
- * |PLACA (veículo) |UUU-#### |abc1234 |ABC-1234 |
188
- * |Cor RGB |'#AAAAAA |00000F0 |#0000F0 |
189
- *
190
- */
191
- class MaskFormatter {
192
- constructor(mask) {
193
- this._mask = '';
194
- this._maskChars = new Array();
195
- /**
196
- * Determina qual caractere será usado dos caracteres não presentes no valor
197
- * ou seja, aqueles que o usuário ainda não informou. Por padrão usamos um espaço
198
- */
199
- this.placeholder = ' ';
200
- this.mask = mask;
201
- }
202
- /**
203
- * Setter para mask. Trata-se do padrão que se espera ao formatar o texto.
204
- */
205
- set mask(mask) {
206
- this._mask = mask;
207
- this.updateInternalMask();
208
- }
209
- /**
210
- * Getter para mask
211
- *
212
- * @return A última máscara informada.
213
- */
214
- get mask() {
215
- return this._mask;
216
- }
217
- /**
218
- * Formata a string passada baseada na máscara definda pelo atributo mask.
219
- *
220
- * @param value Valor a ser formatado
221
- * @return O valor processado de acordo com o padrão
222
- */
223
- format(value) {
224
- let result = '';
225
- const index = [0];
226
- let counter = 0;
227
- const maxCounter = this._maskChars.length;
228
- while (counter < maxCounter) {
229
- result = this._maskChars[counter].append(result, value, index);
230
- counter++;
231
- }
232
- return result;
233
- }
234
- /**
235
- * Preparamos a formatação internamente de acordo com o padrão.
236
- */
237
- updateInternalMask() {
238
- this._maskChars.length = 0;
239
- if (this.mask != null) {
240
- let counter = 0;
241
- const maxCounter = this.mask.length;
242
- while (counter < maxCounter) {
243
- let maskChar = this.mask.charAt(counter);
244
- switch (maskChar) {
245
- case MaskFormatter.DIGIT_KEY:
246
- this._maskChars.push(new MaskFormatter.DigitMaskCharacter(this, maskChar));
247
- break;
248
- case MaskFormatter.LITERAL_KEY:
249
- if (++counter < maxCounter) {
250
- maskChar = this.mask.charAt(counter);
251
- this._maskChars.push(new MaskFormatter.LiteralCharacter(this, maskChar));
252
- }
253
- break;
254
- case MaskFormatter.UPPERCASE_KEY:
255
- this._maskChars.push(new MaskFormatter.UpperCaseCharacter(this, maskChar));
256
- break;
257
- case MaskFormatter.LOWERCASE_KEY:
258
- this._maskChars.push(new MaskFormatter.LowerCaseCharacter(this, maskChar));
259
- break;
260
- case MaskFormatter.ALPHA_NUMERIC_KEY:
261
- this._maskChars.push(new MaskFormatter.AlphaNumericCharacter(this, maskChar));
262
- break;
263
- case MaskFormatter.CHARACTER_KEY:
264
- this._maskChars.push(new MaskFormatter.CharCharacter(this, maskChar));
265
- break;
266
- case MaskFormatter.ANYTHING_KEY:
267
- this._maskChars.push(new MaskFormatter.MaskCharacter(this, maskChar));
268
- break;
269
- default:
270
- this._maskChars.push(new MaskFormatter.LiteralCharacter(this, maskChar));
271
- break;
272
- }
273
- counter++;
274
- }
275
- }
276
- }
277
- }
278
- MaskFormatter.DIGIT_KEY = "#";
279
- MaskFormatter.LITERAL_KEY = "'";
280
- MaskFormatter.UPPERCASE_KEY = "U";
281
- MaskFormatter.LOWERCASE_KEY = "L";
282
- MaskFormatter.ALPHA_NUMERIC_KEY = "A";
283
- MaskFormatter.CHARACTER_KEY = "?";
284
- MaskFormatter.ANYTHING_KEY = "*";
285
- //
286
- // Classes internas usadas para representar a máscara.
287
- //
288
- MaskFormatter.MaskCharacter = class {
289
- constructor(maskFormatter, type) {
290
- this.maskFormatter = maskFormatter;
291
- this.type = type;
292
- }
293
- /**
294
- * Cada subclasse deve sobrescrever o retornando true, caso represente
295
- * um caractere literal. Por padrão o retorno é false.
296
- */
297
- isLiteral() {
298
- return false;
299
- }
300
- /**
301
- * Returns true if <code>aChar</code> is a valid reprensentation of
302
- * the receiver. The default implementation returns true if the
303
- * receiver represents a literal character and <code>getChar</code>
304
- * == aChar. Otherwise, this will return true is <code>aChar</code>
305
- * is contained in the valid characters and not contained
306
- * in the invalid characters.
307
- */
308
- isValidCharacter(aChar) {
309
- if (this.isLiteral()) {
310
- return (this.getChar(aChar) == aChar);
311
- }
312
- aChar = this.getChar(aChar);
313
- return true;
314
- }
315
- /**
316
- * Returns the character to insert for <code>aChar</code>. The
317
- * default implementation returns <code>aChar</code>. Subclasses
318
- * that wish to do some sort of mapping, perhaps lower case to upper
319
- * case should override this and do the necessary mapping.
320
- */
321
- getChar(aChar) {
322
- return aChar;
323
- }
324
- /**
325
- * Appends the necessary character in <code>formatting</code> at
326
- * <code>index</code> to <code>buff</code>.
327
- */
328
- append(result, formatting, index) {
329
- const inString = index[0] < formatting.length;
330
- const aChar = inString ? formatting.charAt(index[0]) : '';
331
- if (this.isLiteral()) {
332
- const literal = this.getChar(aChar);
333
- result += literal;
334
- if (literal === aChar) {
335
- index[0] = index[0] + 1;
336
- }
337
- }
338
- else if (index[0] >= formatting.length) {
339
- result += this.maskFormatter.placeholder;
340
- index[0] = index[0] + 1;
341
- }
342
- else if (this.isValidCharacter(aChar)) {
343
- result += this.getChar(aChar);
344
- index[0] = index[0] + 1;
345
- }
346
- else {
347
- throw new Error(`Valor inválido: "${aChar}". Na posição ${index[0] + 1} espera-se ${this.getFormatMessage()}.`);
348
- }
349
- return result;
350
- }
351
- getFormatMessage() {
352
- let message;
353
- switch (this.type) {
354
- case MaskFormatter.UPPERCASE_KEY:
355
- case MaskFormatter.LOWERCASE_KEY:
356
- case MaskFormatter.CHARACTER_KEY:
357
- message = 'uma letra';
358
- break;
359
- case MaskFormatter.DIGIT_KEY:
360
- message = 'um número';
361
- break;
362
- case MaskFormatter.ALPHA_NUMERIC_KEY:
363
- message = 'uma letra ou um número';
364
- break;
365
- default:
366
- message = '';
367
- }
368
- return message;
369
- }
370
- };
371
- MaskFormatter.LiteralCharacter = class extends MaskFormatter.MaskCharacter {
372
- constructor(maskFormatter, fixedChar) {
373
- super(maskFormatter, fixedChar);
374
- this._fixedChar = fixedChar;
375
- }
376
- isLiteral() {
377
- return true;
378
- }
379
- getChar(aChar) {
380
- return this._fixedChar;
381
- }
382
- };
383
- MaskFormatter.DigitMaskCharacter = class extends MaskFormatter.MaskCharacter {
384
- isValidCharacter(aChar) {
385
- return (this.isDigit(aChar) && super.isValidCharacter(aChar));
386
- }
387
- isDigit(char) {
388
- return char >= '0' && char <= '9';
389
- }
390
- };
391
- MaskFormatter.UpperCaseCharacter = class extends MaskFormatter.MaskCharacter {
392
- isValidCharacter(aChar) {
393
- return (/[a-z]/i.test(aChar) && super.isValidCharacter(aChar));
394
- }
395
- getChar(aChar) {
396
- return aChar.toUpperCase();
397
- }
398
- };
399
- MaskFormatter.LowerCaseCharacter = class extends MaskFormatter.MaskCharacter {
400
- isValidCharacter(aChar) {
401
- return (/[a-z]/i.test(aChar) && super.isValidCharacter(aChar));
402
- }
403
- getChar(aChar) {
404
- return aChar.toLocaleLowerCase();
405
- }
406
- };
407
- MaskFormatter.AlphaNumericCharacter = class extends MaskFormatter.MaskCharacter {
408
- isValidCharacter(aChar) {
409
- //FIXME: talvez seja problema usar regex aqui... avaliar se existe forma mais barata
410
- return (/[a-z0-9]/i.test(aChar)) && super.isValidCharacter(aChar);
411
- }
412
- };
413
- MaskFormatter.CharCharacter = class extends MaskFormatter.MaskCharacter {
414
- isValidCharacter(aChar) {
415
- //FIXME: talvez seja problema usar regex aqui... avaliar se existe forma mais barata
416
- return (/[a-z]/i.test(aChar) && super.isValidCharacter(aChar));
417
- }
418
- };
419
-
420
- /**
421
- * `TimeFormatter` é um utilitário para formatação de strings desformatadas em strings válidas de horários
422
- */
423
- class TimeFormatter {
424
- /**
425
- * @prepareValue: converts an unformated time string into a formatted time.
426
- *
427
- * @param value unformated time string to convert
428
- *
429
- * @returns formatted time string
430
- *
431
- * @Exemples
432
- * @"1012" | "10:12"
433
- * @"10:12" | "10:12:00"
434
- * @"100112" | "10:01:12"
435
- */
436
- static prepareValue(value, showSeconds) {
437
- if (value && value.length > 0 && value != "NaN") {
438
- let validationValue = value.replace(/:/g, "");
439
- if (showSeconds) {
440
- this._maskFormatter.mask = "##:##:##";
441
- if (validationValue.length < 6) {
442
- while (validationValue.length < 6) {
443
- validationValue = "0".concat(validationValue);
444
- }
445
- }
446
- }
447
- else {
448
- this._maskFormatter.mask = "##:##";
449
- if (validationValue.length < 4) {
450
- while (validationValue.length < 4) {
451
- validationValue = "0".concat(validationValue);
452
- }
453
- }
454
- }
455
- if (this._maskFormatter) {
456
- try {
457
- value = this._maskFormatter.format(validationValue);
458
- return value;
459
- }
460
- catch (e) {
461
- throw new Error(e.message);
462
- }
463
- }
464
- }
465
- return '';
466
- }
467
- /**
468
- * @validateTime: validates if an input string has the corect time format.
469
- *
470
- * @param value input string to validate
471
- *
472
- * @returns true or false
473
- *
474
- * @Exemples
475
- * @"1012" | true
476
- * @"14e4" | false
477
- * @"2624" | false
478
- */
479
- static validateTime(value, showSeconds) {
480
- let isValid = true;
481
- if (value) {
482
- let validationValue = value.replace(/:/g, "");
483
- if (showSeconds) {
484
- if (!["1", "2", "0"].includes(validationValue[0])) {
485
- isValid = false;
486
- }
487
- if (!["0", "1", "2", "3", "4", "5"].includes(validationValue[2])) {
488
- isValid = false;
489
- }
490
- if (!["0", "1", "2", "3", "4", "5"].includes(validationValue[4])) {
491
- isValid = false;
492
- }
493
- if (validationValue[0] == "2" && !["0", "1", "2", "3"].includes(validationValue[1])) {
494
- isValid = false;
495
- }
496
- }
497
- else {
498
- if (!["1", "2", "0"].includes(validationValue[0])) {
499
- isValid = false;
500
- }
501
- if (!["0", "1", "2", "3", "4", "5"].includes(validationValue[2])) {
502
- isValid = false;
503
- }
504
- if (validationValue[0] == "2" && !["0", "1", "2", "3"].includes(validationValue[1])) {
505
- isValid = false;
506
- }
507
- }
508
- }
509
- else {
510
- isValid = false;
511
- }
512
- return isValid;
513
- }
514
- }
515
- TimeFormatter._maskFormatter = new MaskFormatter("##:##");
516
-
517
- /**
518
- * Representa as propriedades necessárias para se executar uma requisição.
519
- */
520
- /** Representa os verbos HTTP suportados */
521
- var Method;
522
- (function (Method) {
523
- Method[Method["GET"] = 0] = "GET";
524
- Method[Method["PUT"] = 1] = "PUT";
525
- Method[Method["POST"] = 2] = "POST";
526
- Method[Method["DELETE"] = 3] = "DELETE";
527
- })(Method || (Method = {}));
528
-
529
- exports.MaskFormatter = MaskFormatter;
530
- exports.NumberUtils = NumberUtils;
531
- exports.TimeFormatter = TimeFormatter;