@sankhyalabs/ezui 1.1.94 → 1.1.97

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 (93) hide show
  1. package/dist/cjs/{CSSVarsUtils-66e86394.js → CSSVarsUtils-8fbdf2e0.js} +1 -0
  2. package/dist/cjs/StringUtils-0ba09df4.js +57 -0
  3. package/dist/cjs/UnitMetadata-2e11c5d3.js +1310 -0
  4. package/dist/cjs/ez-button_3.cjs.entry.js +578 -0
  5. package/dist/cjs/ez-calendar_14.cjs.entry.js +2657 -0
  6. package/dist/cjs/{ez-button_11.cjs.entry.js → ez-grid.cjs.entry.js} +27 -1501
  7. package/dist/cjs/ez-icon.cjs.entry.js +42 -0
  8. package/dist/cjs/ez-modal_2.cjs.entry.js +317 -0
  9. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-time-input.cjs.entry.js +7 -7
  11. package/dist/cjs/ezui.cjs.js +1 -1
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/collection/components/ez-check/ez-check.css +4 -3
  14. package/dist/collection/components/ez-combo-box/ez-combo-box.js +52 -3
  15. package/dist/collection/components/ez-form/DataBinder.js +13 -0
  16. package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +4 -1
  17. package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +4 -4
  18. package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +2 -2
  19. package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +2 -2
  20. package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +2 -2
  21. package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +6 -6
  22. package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +2 -2
  23. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +2 -2
  24. package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +14 -8
  25. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +3 -2
  26. package/dist/collection/components/ez-grid/ez-grid.css +8 -0
  27. package/dist/collection/components/ez-grid/ez-grid.js +3 -3
  28. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +28 -4
  29. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +6 -5
  30. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +10 -7
  31. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +12 -17
  32. package/dist/collection/components/ez-icon/ez-icon.css +5 -0
  33. package/dist/collection/components/ez-list/ez-list.js +2 -2
  34. package/dist/collection/components/ez-text-input/ez-text-input.css +2 -2
  35. package/dist/collection/components/ez-text-input/ez-text-input.js +24 -1
  36. package/dist/collection/components/test-du/test-du.js +1 -1
  37. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  38. package/dist/custom-elements/index.js +290 -6376
  39. package/dist/esm/{CSSVarsUtils-aeee9825.js → CSSVarsUtils-667e0016.js} +1 -0
  40. package/dist/esm/StringUtils-cbf10229.js +55 -0
  41. package/dist/esm/UnitMetadata-8b1bbaa2.js +1304 -0
  42. package/dist/esm/ez-button_3.entry.js +572 -0
  43. package/dist/esm/ez-calendar_14.entry.js +2640 -0
  44. package/dist/esm/{ez-button_11.entry.js → ez-grid.entry.js} +23 -1487
  45. package/dist/esm/ez-icon.entry.js +38 -0
  46. package/dist/esm/ez-modal_2.entry.js +312 -0
  47. package/dist/esm/ez-popover.entry.js +1 -1
  48. package/dist/esm/ez-time-input.entry.js +2 -2
  49. package/dist/esm/ezui.js +1 -1
  50. package/dist/esm/loader.js +1 -1
  51. package/dist/ezui/ezui.esm.js +1 -1
  52. package/dist/ezui/p-07b60fe9.js +1 -0
  53. package/dist/ezui/p-2336c9ce.entry.js +1 -0
  54. package/dist/ezui/p-2f84ba72.js +1 -0
  55. package/dist/ezui/{p-4b5c4408.entry.js → p-45a25c30.entry.js} +1 -1
  56. package/dist/ezui/{p-ca42d682.entry.js → p-532b5b24.entry.js} +46 -46
  57. package/dist/ezui/p-614fbb4e.entry.js +1 -0
  58. package/dist/ezui/p-7165ac4f.entry.js +1 -0
  59. package/dist/ezui/p-90f6d8a0.entry.js +1 -0
  60. package/dist/ezui/{p-7e1d9c29.entry.js → p-d3f87e18.entry.js} +1 -1
  61. package/dist/ezui/p-d54c157f.js +1 -0
  62. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +8 -0
  63. package/dist/types/components/ez-form/DataBinder.d.ts +1 -0
  64. package/dist/types/components/ez-form/ez-form.d.ts +6 -1
  65. package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +2 -1
  66. package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +2 -1
  67. package/dist/types/components/ez-form/fieldbuilder/tpl/FileInput.tpl.d.ts +2 -1
  68. package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +4 -2
  69. package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +2 -1
  70. package/dist/types/components/ez-form/fieldbuilder/tpl/TextArea.tpl.d.ts +2 -1
  71. package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +6 -4
  72. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  73. package/dist/types/components.d.ts +26 -2
  74. package/package.json +2 -2
  75. package/dist/cjs/ApplicationUtils-d1c1db56.js +0 -35
  76. package/dist/cjs/ez-calendar.cjs.entry.js +0 -224
  77. package/dist/cjs/ez-collapsible-box_7.cjs.entry.js +0 -853
  78. package/dist/cjs/ez-combo-box.cjs.entry.js +0 -254
  79. package/dist/cjs/ez-form.cjs.entry.js +0 -753
  80. package/dist/cjs/index-5c8eb919.js +0 -7460
  81. package/dist/esm/ApplicationUtils-01280a9d.js +0 -33
  82. package/dist/esm/ez-calendar.entry.js +0 -220
  83. package/dist/esm/ez-collapsible-box_7.entry.js +0 -843
  84. package/dist/esm/ez-combo-box.entry.js +0 -250
  85. package/dist/esm/ez-form.entry.js +0 -749
  86. package/dist/esm/index-4688c617.js +0 -7452
  87. package/dist/ezui/p-278ce681.entry.js +0 -1
  88. package/dist/ezui/p-33d1247f.entry.js +0 -1
  89. package/dist/ezui/p-5793a2e1.entry.js +0 -1
  90. package/dist/ezui/p-68f6b75e.entry.js +0 -1
  91. package/dist/ezui/p-7107d7ef.js +0 -1
  92. package/dist/ezui/p-7ff8b7f7.js +0 -1
  93. package/dist/ezui/p-8b099482.js +0 -1
@@ -5,6 +5,7 @@ class CSSVarsUtils {
5
5
  if (child) {
6
6
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
7
7
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
8
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height');
8
9
  }
9
10
  }
10
11
  static applyIfExists(host, element, varName) {
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Classe com utiliários comuns para Strings.
5
+ */
6
+ class StringUtils {
7
+ /**
8
+ * Verifica se a string está vazia.
9
+ * Valores null e undefined são considerados como vazio.
10
+ *
11
+ * @param value String para ser validada.
12
+ */
13
+ static isEmpty(value) {
14
+ if (value == undefined || value === null) {
15
+ return true;
16
+ }
17
+ value = value.toString();
18
+ value = value.trim();
19
+ if (value.length === 0) {
20
+ return true;
21
+ }
22
+ return false;
23
+ }
24
+ /**
25
+ * Remove acentos de vogais, substitui Ç por c e retorna a string em caixa alta.
26
+ *
27
+ * @param value String para ser transformada.
28
+ */
29
+ static replaceAccentuatedChars(text) {
30
+ text = text.toUpperCase();
31
+ text = text.replace(/[À]/, "A");
32
+ text = text.replace(/[Á]/, "A");
33
+ text = text.replace(/[Â]/, "A");
34
+ text = text.replace(/[Ã]/, "A");
35
+ text = text.replace(/[Ä]/, "A");
36
+ text = text.replace(/[È]/, "E");
37
+ text = text.replace(/[É]/, "E");
38
+ text = text.replace(/[Ê]/, "E");
39
+ text = text.replace(/[Ë]/, "E");
40
+ text = text.replace(/[Ì]/, "I");
41
+ text = text.replace(/[Í]/, "I");
42
+ text = text.replace(/[Î]/, "I");
43
+ text = text.replace(/[Ï]/, "I");
44
+ text = text.replace(/[Ò]/, "O");
45
+ text = text.replace(/[Ó]/, "O");
46
+ text = text.replace(/[Ô]/, "O");
47
+ text = text.replace(/[Ö]/, "O");
48
+ text = text.replace(/[Ù]/, "U");
49
+ text = text.replace(/[Ú]/, "U");
50
+ text = text.replace(/[Û]/, "U");
51
+ text = text.replace(/[Ü]/, "U");
52
+ text = text.replace(/[Ç]/, "C");
53
+ return text.replace(/[^a-z0-9]/gi, '');
54
+ }
55
+ }
56
+
57
+ exports.StringUtils = StringUtils;