@sankhyalabs/ezui 1.2.0-beta.2 → 1.2.0-beta.21

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 (216) hide show
  1. package/dist/cjs/{ApplicationUtils-483c0a9e.js → ApplicationUtils-edc62c5c.js} +6 -2
  2. package/dist/cjs/{CSSVarsUtils-09b431cc.js → CSSVarsUtils-af809e73.js} +17 -0
  3. package/dist/cjs/{DialogType-a1e288e6.js → DialogType-aa435c52.js} +1 -0
  4. package/dist/cjs/FieldBuilder-cd3e45ed.js +119 -0
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +67 -15
  6. package/dist/cjs/ez-button.cjs.entry.js +12 -10
  7. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-chip.cjs.entry.js +6 -6
  9. package/dist/cjs/ez-collapsible-box.cjs.entry.js +85 -6
  10. package/dist/cjs/ez-combo-box.cjs.entry.js +38 -13
  11. package/dist/cjs/ez-date-input.cjs.entry.js +9 -14
  12. package/dist/cjs/ez-date-time-input.cjs.entry.js +9 -14
  13. package/dist/cjs/ez-dialog.cjs.entry.js +42 -7
  14. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-form.cjs.entry.js +44 -133
  16. package/dist/cjs/ez-grid-config.cjs.entry.js +4 -5
  17. package/dist/cjs/ez-grid.cjs.entry.js +97 -10
  18. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-modal-container.cjs.entry.js +54 -0
  21. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-popup.cjs.entry.js +7 -3
  24. package/dist/cjs/ez-radio-button.cjs.entry.js +2 -2
  25. package/dist/cjs/ez-scroller.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-tabselector.cjs.entry.js +7 -5
  28. package/dist/cjs/ez-text-area.cjs.entry.js +6 -6
  29. package/dist/cjs/ez-text-edit.cjs.entry.js +103 -0
  30. package/dist/cjs/ez-text-input.cjs.entry.js +11 -1
  31. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-view-stack.cjs.entry.js +9 -5
  34. package/dist/cjs/ezui.cjs.js +1 -1
  35. package/dist/cjs/loader.cjs.js +1 -1
  36. package/dist/collection/collection-manifest.json +6 -4
  37. package/dist/collection/components/ez-actions-button/ez-actions-button.css +49 -20
  38. package/dist/collection/components/ez-actions-button/ez-actions-button.js +219 -23
  39. package/dist/collection/components/ez-button/ez-button.css +1 -6
  40. package/dist/collection/components/ez-button/ez-button.js +11 -9
  41. package/dist/collection/components/ez-calendar/ez-calendar.css +17 -20
  42. package/dist/collection/components/ez-chip/ez-chip.css +6 -3
  43. package/dist/collection/components/ez-chip/ez-chip.js +5 -5
  44. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +16 -0
  45. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +226 -7
  46. package/dist/collection/components/ez-combo-box/ez-combo-box.css +1 -22
  47. package/dist/collection/components/ez-combo-box/ez-combo-box.js +42 -18
  48. package/dist/collection/components/ez-date-input/ez-date-input.js +8 -13
  49. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +8 -13
  50. package/dist/collection/components/ez-dialog/DialogType.js +1 -0
  51. package/dist/collection/components/ez-dialog/ez-dialog.css +19 -25
  52. package/dist/collection/components/ez-dialog/ez-dialog.js +41 -6
  53. package/dist/collection/components/ez-form/DataBinder.js +1 -0
  54. package/dist/collection/components/ez-form/ez-form.js +22 -13
  55. package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +1 -1
  56. package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +24 -14
  57. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +3 -0
  58. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +64 -10
  59. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRenderer.js +31 -0
  60. package/dist/collection/components/ez-grid/ez-grid.js +40 -3
  61. package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.css +36 -25
  62. package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.js +1 -2
  63. package/dist/collection/components/ez-grid/subcomponents/ez-select-box/ez-select-box.js +5 -4
  64. package/dist/collection/components/ez-icon/ez-icon.css +117 -98
  65. package/dist/collection/components/ez-list/ez-list.css +9 -1
  66. package/dist/collection/components/ez-modal-container/ez-modal-container.css +38 -0
  67. package/dist/collection/components/ez-modal-container/ez-modal-container.js +166 -0
  68. package/dist/collection/components/ez-modal-container/index.js +2 -0
  69. package/dist/collection/components/ez-modal-container/modal-action.js +8 -0
  70. package/dist/collection/components/ez-modal-container/modal-button-status.js +7 -0
  71. package/dist/collection/components/ez-popover/ez-popover.css +1 -1
  72. package/dist/collection/components/ez-popup/ez-popup.css +4 -0
  73. package/dist/collection/components/ez-popup/ez-popup.js +26 -4
  74. package/dist/collection/components/ez-radio-button/ez-radio-button.css +16 -5
  75. package/dist/collection/components/ez-radio-button/ez-radio-button.js +1 -1
  76. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -2
  77. package/dist/collection/components/ez-search/ez-search.js +6 -6
  78. package/dist/collection/components/ez-tabselector/ez-tabselector.css +9 -0
  79. package/dist/collection/components/ez-tabselector/ez-tabselector.js +7 -3
  80. package/dist/collection/components/ez-text-area/ez-text-area.css +6 -3
  81. package/dist/collection/components/ez-text-area/ez-text-area.js +5 -5
  82. package/dist/collection/components/ez-text-edit/ez-text-edit.css +19 -0
  83. package/dist/collection/components/ez-text-edit/ez-text-edit.js +188 -0
  84. package/dist/collection/components/ez-text-input/ez-text-input.css +18 -2
  85. package/dist/collection/components/ez-text-input/ez-text-input.js +28 -0
  86. package/dist/collection/components/ez-view-stack/ez-view-stack.js +12 -6
  87. package/dist/collection/utils/ApplicationUtils.js +5 -1
  88. package/dist/collection/utils/CSSVarsUtils.js +17 -0
  89. package/dist/collection/utils/index.js +1 -0
  90. package/dist/custom-elements/index.d.ts +12 -0
  91. package/dist/custom-elements/index.js +728 -254
  92. package/dist/esm/{ApplicationUtils-5f87ae60.js → ApplicationUtils-205ac4bc.js} +6 -2
  93. package/dist/esm/{CSSVarsUtils-499b75c2.js → CSSVarsUtils-00f67f32.js} +17 -0
  94. package/dist/esm/{DialogType-72afa679.js → DialogType-4059dc4d.js} +1 -0
  95. package/dist/esm/FieldBuilder-9e9545fc.js +117 -0
  96. package/dist/esm/ez-actions-button.entry.js +67 -15
  97. package/dist/esm/ez-button.entry.js +12 -10
  98. package/dist/esm/ez-calendar.entry.js +1 -1
  99. package/dist/esm/ez-chip.entry.js +6 -6
  100. package/dist/esm/ez-collapsible-box.entry.js +86 -7
  101. package/dist/esm/ez-combo-box.entry.js +38 -13
  102. package/dist/esm/ez-date-input.entry.js +9 -14
  103. package/dist/esm/ez-date-time-input.entry.js +10 -15
  104. package/dist/esm/ez-dialog.entry.js +42 -7
  105. package/dist/esm/ez-filter-input.entry.js +1 -1
  106. package/dist/esm/ez-form.entry.js +43 -132
  107. package/dist/esm/ez-grid-config.entry.js +4 -5
  108. package/dist/esm/ez-grid.entry.js +97 -10
  109. package/dist/esm/ez-icon.entry.js +1 -1
  110. package/dist/esm/ez-list.entry.js +1 -1
  111. package/dist/esm/ez-modal-container.entry.js +50 -0
  112. package/dist/esm/ez-number-input.entry.js +1 -1
  113. package/dist/esm/ez-popover.entry.js +1 -1
  114. package/dist/esm/ez-popup.entry.js +7 -3
  115. package/dist/esm/ez-radio-button.entry.js +2 -2
  116. package/dist/esm/ez-scroller.entry.js +1 -1
  117. package/dist/esm/ez-search.entry.js +1 -1
  118. package/dist/esm/ez-tabselector.entry.js +7 -5
  119. package/dist/esm/ez-text-area.entry.js +6 -6
  120. package/dist/esm/ez-text-edit.entry.js +99 -0
  121. package/dist/esm/ez-text-input.entry.js +11 -1
  122. package/dist/esm/ez-time-input.entry.js +1 -1
  123. package/dist/esm/ez-upload.entry.js +2 -2
  124. package/dist/esm/ez-view-stack.entry.js +9 -5
  125. package/dist/esm/ezui.js +1 -1
  126. package/dist/esm/loader.js +1 -1
  127. package/dist/ezui/ezui.esm.js +1 -1
  128. package/dist/ezui/p-0b44cf1c.js +1 -0
  129. package/dist/ezui/p-0c7203d5.entry.js +1 -0
  130. package/dist/ezui/p-2cc6dd66.entry.js +1 -0
  131. package/dist/ezui/p-2ccad880.entry.js +1 -0
  132. package/dist/ezui/p-333d79c4.entry.js +1 -0
  133. package/dist/ezui/p-3987f8d8.entry.js +1 -0
  134. package/dist/ezui/p-3c87845d.entry.js +1 -0
  135. package/dist/ezui/{p-768053d0.entry.js → p-43bb6a59.entry.js} +1 -1
  136. package/dist/ezui/p-4a5e37a7.js +1 -0
  137. package/dist/ezui/p-4ad647fc.entry.js +1 -0
  138. package/dist/ezui/p-54ecd19a.js +1 -0
  139. package/dist/ezui/{p-03742d3e.entry.js → p-56688470.entry.js} +1 -1
  140. package/dist/ezui/{p-b901ba02.entry.js → p-5a1927a2.entry.js} +1 -1
  141. package/dist/ezui/{p-b2cf7db2.entry.js → p-63d567cc.entry.js} +1 -1
  142. package/dist/ezui/p-6befd7e4.entry.js +1 -0
  143. package/dist/ezui/p-712bd293.entry.js +1 -0
  144. package/dist/ezui/{p-d9c72ff7.entry.js → p-72c75a43.entry.js} +1 -1
  145. package/dist/ezui/{p-15d18ece.entry.js → p-744eb735.entry.js} +1 -1
  146. package/dist/ezui/{p-81eb2738.entry.js → p-802d23d9.entry.js} +1 -1
  147. package/dist/ezui/p-86daa81a.entry.js +1 -0
  148. package/dist/ezui/{p-72ab066f.entry.js → p-b706619e.entry.js} +1 -1
  149. package/dist/ezui/p-bca406db.entry.js +1 -0
  150. package/dist/ezui/p-be06251d.entry.js +1 -0
  151. package/dist/ezui/{p-e7d03a0d.entry.js → p-bffae598.entry.js} +1 -1
  152. package/dist/ezui/p-d91527dc.entry.js +1 -0
  153. package/dist/ezui/p-dd257f17.entry.js +1 -0
  154. package/dist/ezui/p-e1148f5c.js +1 -0
  155. package/dist/ezui/p-e1f2b5da.entry.js +1 -0
  156. package/dist/ezui/p-e230bfd2.entry.js +1 -0
  157. package/dist/ezui/{p-5c721278.entry.js → p-e3ee814c.entry.js} +1 -1
  158. package/dist/ezui/p-e697ffd5.entry.js +1 -0
  159. package/dist/ezui/p-ec9decf2.entry.js +1 -0
  160. package/dist/ezui/p-f36dbc21.entry.js +1 -0
  161. package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +42 -9
  162. package/dist/types/components/ez-chip/ez-chip.d.ts +1 -1
  163. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +46 -1
  164. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -5
  165. package/dist/types/components/ez-date-input/ez-date-input.d.ts +0 -1
  166. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +0 -1
  167. package/dist/types/components/ez-dialog/DialogType.d.ts +1 -0
  168. package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -0
  169. package/dist/types/components/ez-form/DataBinder.d.ts +2 -2
  170. package/dist/types/components/ez-form/ez-form.d.ts +21 -11
  171. package/dist/types/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.d.ts +3 -3
  172. package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +2 -5
  173. package/dist/types/components/ez-form/structure/FormSheetMetadata.d.ts +3 -3
  174. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +11 -0
  175. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +5 -1
  176. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRenderer.d.ts +9 -0
  177. package/dist/types/components/ez-grid/ez-grid.d.ts +8 -3
  178. package/dist/types/components/ez-grid/subcomponents/ez-select-box/ez-select-box.d.ts +2 -6
  179. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +43 -0
  180. package/dist/types/components/ez-modal-container/index.d.ts +2 -0
  181. package/dist/types/components/ez-modal-container/modal-action.d.ts +7 -0
  182. package/dist/types/components/ez-modal-container/modal-button-status.d.ts +6 -0
  183. package/dist/types/components/ez-popup/ez-popup.d.ts +4 -0
  184. package/dist/types/components/ez-search/ez-search.d.ts +3 -3
  185. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +2 -0
  186. package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +39 -0
  187. package/dist/types/components/ez-text-input/ez-text-input.d.ts +5 -0
  188. package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +5 -1
  189. package/dist/types/components.d.ts +266 -28
  190. package/dist/types/utils/ApplicationUtils.d.ts +1 -0
  191. package/dist/types/utils/CSSVarsUtils.d.ts +1 -0
  192. package/dist/types/utils/index.d.ts +1 -0
  193. package/package.json +5 -5
  194. package/react/components.d.ts +2 -0
  195. package/react/components.js +2 -0
  196. package/react/components.js.map +1 -1
  197. package/dist/ezui/p-3263a002.js +0 -1
  198. package/dist/ezui/p-3ae441ec.entry.js +0 -1
  199. package/dist/ezui/p-3ffdde40.entry.js +0 -1
  200. package/dist/ezui/p-416bedbe.entry.js +0 -1
  201. package/dist/ezui/p-47e06040.entry.js +0 -1
  202. package/dist/ezui/p-6cfe20a0.entry.js +0 -1
  203. package/dist/ezui/p-719e9ef9.entry.js +0 -1
  204. package/dist/ezui/p-787fbdfe.js +0 -1
  205. package/dist/ezui/p-7fe1ac9a.entry.js +0 -1
  206. package/dist/ezui/p-898b9906.js +0 -1
  207. package/dist/ezui/p-9c3c9da8.entry.js +0 -1
  208. package/dist/ezui/p-a27dafa4.entry.js +0 -1
  209. package/dist/ezui/p-a3ff4f0e.entry.js +0 -1
  210. package/dist/ezui/p-aba3fa6c.entry.js +0 -1
  211. package/dist/ezui/p-b3e978aa.entry.js +0 -1
  212. package/dist/ezui/p-cccd8cde.entry.js +0 -1
  213. package/dist/ezui/p-cf283c4a.entry.js +0 -1
  214. package/dist/ezui/p-d0671e14.entry.js +0 -1
  215. package/dist/ezui/p-e0f06d73.entry.js +0 -1
  216. package/dist/ezui/p-ed835b36.entry.js +0 -1
@@ -1,5 +1,9 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
2
  export declare class EzCollapsibleBox {
3
+ private _refLabel;
4
+ private _refTextEdit;
5
+ private _hostElement;
6
+ private _activeEditText;
3
7
  /**
4
8
  * Valor externalizado que garante a exibição ou não do componente.
5
9
  */
@@ -21,17 +25,58 @@ export declare class EzCollapsibleBox {
21
25
  */
22
26
  stretchTitle: boolean;
23
27
  /**
28
+ * Ativa o ícone para remoção do componente.
29
+ */
30
+ removable: boolean;
31
+ /**
32
+ * Ativa o ícone para edição do componente.
33
+ */
34
+ editable: boolean;
35
+ /**
36
+ * Define uma condição para salvar ou não uma alteração.
37
+ */
38
+ conditionalSave: Function;
39
+ /**
24
40
  * Evento disparado ao mudar o estado do componente (onEzChange).
25
41
  */
26
42
  ezChange: EventEmitter<boolean>;
27
- observeCollapsedValue(): void;
43
+ /**
44
+ * Evento disparado ao remover o componente (onEzRemove).
45
+ */
46
+ ezRemove: EventEmitter<EzCollapsibleBox>;
47
+ /**
48
+ * Evento disparado ao concluir edição da label (onEzSaveEditLabel).
49
+ */
50
+ ezSaveEditLabel: EventEmitter<CustomEvent>;
51
+ /**
52
+ * Evento disparado quando o modo de edição da label for aberto e fechado (onEzEditLabelMode).
53
+ */
54
+ ezEditLabelMode: EventEmitter<boolean>;
28
55
  /**
29
56
  * Esconde ou revela o conteúdo do componente.
30
57
  */
31
58
  showHide(): Promise<void>;
59
+ /**
60
+ * Aplica focus no campo de edição de título.
61
+ */
62
+ applyFocusTextEdit(): Promise<void>;
63
+ /**
64
+ * Fecha a edição de título.
65
+ */
66
+ cancelEdition(): Promise<void>;
67
+ observeCollapsedValue(): void;
32
68
  /**
33
69
  * Retorna o tamanho configurado do texto e do ícone.
34
70
  */
35
71
  getHeaderSize(): string;
72
+ private removeElement;
73
+ private editLabel;
74
+ private confirmRemove;
75
+ private saveEditionText;
76
+ getStyledLabel(): {
77
+ fontSize: string;
78
+ fontWeight: string;
79
+ fontFamily: string;
80
+ };
36
81
  render(): any;
37
82
  }
@@ -22,7 +22,7 @@ export declare class EzComboBox {
22
22
  /**
23
23
  * Valor selecionado no campo
24
24
  */
25
- value: Option | string;
25
+ value: IOption | string;
26
26
  /**
27
27
  * Título do campo
28
28
  */
@@ -34,7 +34,7 @@ export declare class EzComboBox {
34
34
  /**
35
35
  * Array no formato "{value: string, label: string}" que alimenta as opções do Combobox
36
36
  */
37
- options: Array<Option>;
37
+ options: Array<IOption>;
38
38
  /**
39
39
  * Quando há um problema de validação, serve como orientação ao usuário
40
40
  */
@@ -74,9 +74,9 @@ export declare class EzComboBox {
74
74
  /**
75
75
  * Evento que é disparado ao alterar o valor do componente
76
76
  */
77
- ezChange: EventEmitter<Option>;
77
+ ezChange: EventEmitter<IOption>;
78
78
  observeErrorMessage(): void;
79
- observeValue(newValue: Option | string, oldValue: Option | string): void;
79
+ observeValue(newValue: IOption | string, oldValue: IOption | string): void;
80
80
  /**
81
81
  * Realiza o foco no componente de seleção
82
82
  */
@@ -122,7 +122,17 @@ export declare class EzComboBox {
122
122
  private onTextInputFocusOutHandler;
123
123
  render(): any;
124
124
  }
125
- export interface Option {
125
+ export interface IOption {
126
126
  value: string;
127
127
  label: string;
128
128
  }
129
+ export interface ISearchArgument {
130
+ mode: SearchMode;
131
+ argument: string;
132
+ }
133
+ declare enum SearchMode {
134
+ ADVANCED = "ADVANCED",
135
+ PRELOAD = "PRELOAD",
136
+ PREDICTIVE = "PREDICTIVE"
137
+ }
138
+ export {};
@@ -59,7 +59,6 @@ export declare class EzDateInput {
59
59
  private handleBlur;
60
60
  private getTextValue;
61
61
  private handleInput;
62
- private validateValue;
63
62
  private setInputValue;
64
63
  componentDidLoad(): void;
65
64
  render(): any;
@@ -65,7 +65,6 @@ export declare class EzDateTimeInput {
65
65
  private getParsedDateTime;
66
66
  private handleBlur;
67
67
  private getTextValue;
68
- private validateValue;
69
68
  private handleInput;
70
69
  private setInputValue;
71
70
  componentDidLoad(): void;
@@ -1,5 +1,6 @@
1
1
  export declare enum DialogType {
2
2
  WARN = "warn",
3
3
  CRITICAL = "critical",
4
+ SUCCESS = "success",
4
5
  DEFAULT = "default"
5
6
  }
@@ -60,7 +60,10 @@ export declare class EzDialog {
60
60
  show(title: string, message: string, dialogType: DialogType, confirm: boolean, icon: string, labelCancel: string, labelConfirm: string, btnConfirmDanger: boolean): Promise<boolean>;
61
61
  isCritical(dialogType: DialogType): boolean;
62
62
  getIconElement(message: Message): any;
63
+ getIconClass(dialogType: DialogType): string;
64
+ getIconName(message: Message): string;
63
65
  getTypeIndicatorElement(message: Message): any;
66
+ getClassIconIndicator(dialogType: DialogType): string;
64
67
  getClassContainer(message: Message): "dialog__container dialog__container--default" | "dialog__container";
65
68
  getClassTitleLabel(message: Message): "title title__label title__label--no-icon" | "title title__label";
66
69
  componentWillRender(): void;
@@ -1,5 +1,5 @@
1
1
  import { DataUnit } from "@sankhyalabs/core";
2
- import { InvalidField } from "./ez-form";
2
+ import { IInvalidField } from "./ez-form";
3
3
  export default class DataBinder {
4
4
  private _dataUnit;
5
5
  private _fields;
@@ -7,7 +7,7 @@ export default class DataBinder {
7
7
  constructor(dataUnit: DataUnit);
8
8
  bind(fields: Array<HTMLElement>): void;
9
9
  onDisconnectedCallback(): void;
10
- markInvalid(field: InvalidField): void;
10
+ markInvalid(field: IInvalidField): void;
11
11
  private clearInvalid;
12
12
  updateValue(fieldName: string, field: HTMLElement): void;
13
13
  private updateErrorMessage;
@@ -12,11 +12,11 @@ export declare class EzForm implements DUActionInterceptor {
12
12
  /**
13
13
  * Configuração dos campos.
14
14
  */
15
- config: Array<FieldConfig>;
15
+ config: IFormConfig;
16
16
  /**
17
17
  * Validador responsável por checar a integridade das informações do registro
18
18
  */
19
- recordsValidator: RecordValidator;
19
+ recordsValidator: IRecordValidator;
20
20
  /**
21
21
  * Evento disparado quando o formulário está disponível na DOM.
22
22
  */
@@ -30,6 +30,7 @@ export declare class EzForm implements DUActionInterceptor {
30
30
  private getDynamicContent;
31
31
  private processMetadata;
32
32
  private isStatic;
33
+ private getValidatedValue;
33
34
  interceptAction(action: DataUnitAction): DataUnitAction | Promise<DataUnitAction>;
34
35
  componentWillLoad(): void;
35
36
  onDataUnitAction: (action: any) => void;
@@ -37,33 +38,42 @@ export declare class EzForm implements DUActionInterceptor {
37
38
  disconnectedCallback(): void;
38
39
  render(): any;
39
40
  }
40
- export interface FieldConfig {
41
+ export interface IFieldConfig {
41
42
  name: string;
42
43
  label?: string;
43
44
  group?: string;
44
- tab?: string | TabConfig;
45
- defaultValue?: any;
45
+ tab?: string | ITabConfig;
46
+ defaultValue?: IDefaultConfig;
46
47
  visible?: boolean;
47
48
  readOnly?: boolean;
48
49
  required?: boolean;
49
50
  cleanOnCopy?: boolean;
50
51
  }
51
- export interface TabConfig {
52
+ export interface IDefaultConfig {
53
+ type?: string;
54
+ value?: string;
55
+ }
56
+ export interface ITabConfig {
52
57
  label: string;
53
58
  visible?: boolean;
54
59
  order?: number;
55
60
  }
56
- export interface RecordValidator {
57
- validateRecord(form: EzForm, record: Record): ValidationResult;
61
+ export interface IFormConfig {
62
+ tabs?: Array<ITabConfig>;
63
+ fields: Array<IFieldConfig>;
64
+ defaultConfiguration?: boolean;
65
+ }
66
+ export interface IRecordValidator {
67
+ validateRecord(form: EzForm, record: Record): IValidationResult;
58
68
  }
59
- export interface ValidationResult {
69
+ export interface IValidationResult {
60
70
  isValid: boolean;
61
- invalidFields?: Array<InvalidField>;
71
+ invalidFields?: Array<IInvalidField>;
62
72
  errorTitle?: string;
63
73
  errorMessage?: string;
64
74
  infoMessage?: string;
65
75
  }
66
- export interface InvalidField {
76
+ export interface IInvalidField {
67
77
  name: string;
68
78
  message: string;
69
79
  }
@@ -1,3 +1,3 @@
1
- import { FieldConfig } from "../../ez-form";
2
- export declare const buildSwitch: (fieldConfig: FieldConfig) => HTMLElement;
3
- export declare const buildCheckBox: (fieldConfig: FieldConfig) => HTMLElement;
1
+ import { IFieldConfig } from "../../ez-form";
2
+ export declare const buildSwitch: (fieldConfig: IFieldConfig) => HTMLElement;
3
+ export declare const buildCheckBox: (fieldConfig: IFieldConfig) => HTMLElement;
@@ -1,8 +1,5 @@
1
- export declare const buildDecimal: ({ name, label, readOnly }: {
2
- name: any;
3
- label: any;
4
- readOnly: any;
5
- }, properties: any) => HTMLElement;
1
+ import { IFieldConfig } from "../../ez-form";
2
+ export declare const buildDecimal: ({ name, label, readOnly }: IFieldConfig, properties: any) => HTMLElement;
6
3
  export declare const buildInteger: ({ name, label, readOnly }: {
7
4
  name: any;
8
5
  label: any;
@@ -1,4 +1,4 @@
1
- import { FieldConfig } from "../ez-form";
1
+ import { IFieldConfig, IFormConfig } from "../ez-form";
2
2
  import { DataUnit, FieldDescriptor } from "@sankhyalabs/core";
3
3
  export declare class FormMetadata {
4
4
  private _sheets;
@@ -23,11 +23,11 @@ export interface FormSheetMetadata {
23
23
  }
24
24
  export interface FieldMetadata {
25
25
  descriptor?: FieldDescriptor;
26
- config?: FieldConfig;
26
+ config?: IFieldConfig;
27
27
  }
28
28
  export interface FieldSetMetadata {
29
29
  label?: string;
30
30
  items?: Array<FieldMetadata>;
31
31
  }
32
32
  export declare const buildFromDataUnit: (dataUnit: DataUnit) => FormMetadata;
33
- export declare const buildFromConfig: (fields: Array<FieldConfig>, dataUnit: DataUnit) => FormMetadata;
33
+ export declare const buildFromConfig: (config: IFormConfig, dataUnit: DataUnit) => FormMetadata;
@@ -114,7 +114,15 @@ export interface EzGridOptions {
114
114
  * Endereço do servidor para buscar os dados.
115
115
  */
116
116
  serverURL: string;
117
+ /**
118
+ * Repositório de dados, controla a manipulação dos dados.
119
+ */
117
120
  dataUnit: DataUnit;
121
+ /**
122
+ * Configuração do valor da coluna de status.
123
+ * Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
124
+ */
125
+ statusResolver: IStatusResolver;
118
126
  }
119
127
  /**
120
128
  * Representa cada coluna da grade.
@@ -228,3 +236,6 @@ export interface EzGridColumnConfig {
228
236
  */
229
237
  ascending?: boolean;
230
238
  }
239
+ export interface IStatusResolver {
240
+ [fieldName: string]: Map<String, any>;
241
+ }
@@ -1,8 +1,9 @@
1
- import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuItemDef, EzGridOptions } from "../EzGridController";
2
1
  import { Sort, SortingProvider } from "@sankhyalabs/core";
2
+ import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuItemDef, EzGridOptions } from "../EzGridController";
3
3
  export default class AgGridController implements EzGridController, SortingProvider {
4
4
  private readonly DEFAULT_ROW_HEIGHT;
5
5
  private readonly CHECK_BOX_COL_ID;
6
+ private readonly STATUS_COL_ID;
6
7
  private readonly RECORD_ARCHIVE_COL_ID;
7
8
  private readonly BLOCK_LOAD_DEBOUNCE;
8
9
  private _grid;
@@ -17,6 +18,7 @@ export default class AgGridController implements EzGridController, SortingProvid
17
18
  private _idAttribName;
18
19
  private _dataSource;
19
20
  private _colDefs;
21
+ private _statusResolver;
20
22
  constructor(enterprise: boolean);
21
23
  getSort(): Array<Sort>;
22
24
  initDatagrid(container: HTMLElement, options: EzGridOptions): void;
@@ -39,6 +41,8 @@ export default class AgGridController implements EzGridController, SortingProvid
39
41
  quickFilter(term: string): void;
40
42
  setSelectedIndex(index: number): void;
41
43
  private buildColDef;
44
+ private getInitCellStyle;
45
+ private getStyleByColumn;
42
46
  private getFormatterByColumn;
43
47
  private onCallStateChange;
44
48
  private isUIEvent;
@@ -0,0 +1,9 @@
1
+ import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
2
+ export declare class CellRenderer implements ICellRendererComp {
3
+ private _eGui;
4
+ init(params: ICellRendererParams | any): void;
5
+ refresh(params: ICellRendererParams | any): boolean;
6
+ destroy(): void;
7
+ getGui(): any;
8
+ private renderStatus;
9
+ }
@@ -1,6 +1,6 @@
1
1
  import { DataUnit } from "@sankhyalabs/core";
2
2
  import { EventEmitter } from "../../stencil-public-runtime";
3
- import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig } from "./controller/EzGridController";
3
+ import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver } from "./controller/EzGridController";
4
4
  export declare class EzGrid {
5
5
  _gridConfig: HTMLEzGridConfigElement;
6
6
  _container: HTMLElement;
@@ -38,9 +38,14 @@ export declare class EzGrid {
38
38
  */
39
39
  serverUrl: string;
40
40
  /**
41
- *
41
+ * Repositório de dados, controla a manipulação dos dados.
42
42
  */
43
43
  dataUnit: DataUnit;
44
+ /**
45
+ * Configuração do valor da coluna de status.
46
+ * Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
47
+ */
48
+ statusResolver: IStatusResolver;
44
49
  /**
45
50
  * Método responsável por receber a definição das colunas
46
51
  */
@@ -82,7 +87,7 @@ export declare class EzGrid {
82
87
  nextPage(): void;
83
88
  getPaginationControl(): Array<HTMLElement>;
84
89
  observeConfig(config: IGridConfig): void;
85
- closeGridConfig(): void;
90
+ closeGridConfig(): Promise<void>;
86
91
  openGridConfig(): Promise<void>;
87
92
  render(): any;
88
93
  }
@@ -1,11 +1,7 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
+ import { IOption } from '../../../ez-combo-box/ez-combo-box';
2
3
  export declare class SelectBox {
3
4
  ezChange: EventEmitter<string>;
4
- selectedOption: Option | string;
5
+ selectedOption: IOption | string;
5
6
  render(): any;
6
7
  }
7
- interface Option {
8
- value: string;
9
- label: string;
10
- }
11
- export {};
@@ -0,0 +1,43 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzModalContainer {
3
+ _closeButton: HTMLElement;
4
+ _okButton: HTMLEzButtonElement;
5
+ /**
6
+ * Título do modal
7
+ */
8
+ modalTitle: string;
9
+ /**
10
+ * Subtítulo (opcional), geralmente usado para orientação do usuário
11
+ */
12
+ modalSubTitle: string;
13
+ /**
14
+ * Determina o texto do botão de cancelar
15
+ */
16
+ cancelButtonLabel: string;
17
+ /**
18
+ * Determina o texto do botão de Ok
19
+ */
20
+ okButtonLabel: string;
21
+ /**
22
+ * Variação de estado do botão de cancelar: [HIDDEN|ENABLED|DISABLED]
23
+ */
24
+ cancelButtonStatus: string;
25
+ /**
26
+ * Variação de estado do botão de ok: [HIDDEN|ENABLED|DISABLED]
27
+ */
28
+ okButtonStatus: string;
29
+ /**
30
+ * Representa a interação com o usuário.
31
+ * OK - Quando o botão é acionado
32
+ * CANCEL - Quando o botão de cancelar é acionado
33
+ * CLOSE - Quando o botão de fechar é acionado.
34
+ * LOAD - Quando o modal é carregado (eventualmente pode ser usado para dar foco a um elemento específico)
35
+ */
36
+ ezModalAction: EventEmitter<string>;
37
+ private cancelIsVisible;
38
+ private okIsVisible;
39
+ componentDidLoad(): void;
40
+ focusLast(_evt: any): void;
41
+ focusFirst(_evt: any): void;
42
+ render(): any;
43
+ }
@@ -0,0 +1,2 @@
1
+ export { default as ModalAction } from './modal-action';
2
+ export { default as ModalButtonStatus } from './modal-button-status';
@@ -0,0 +1,7 @@
1
+ declare enum ModalAction {
2
+ CLOSE = "CLOSE",
3
+ OK = "OK",
4
+ CANCEL = "CANCEL",
5
+ LOAD = "LOAD"
6
+ }
7
+ export default ModalAction;
@@ -0,0 +1,6 @@
1
+ declare enum ModalButtonStatus {
2
+ ENABLED = "ENABLED",
3
+ DISABLED = "DISABLED",
4
+ HIDDEN = "HIDDEN"
5
+ }
6
+ export default ModalButtonStatus;
@@ -15,6 +15,10 @@ export declare class EzPopup {
15
15
  * Define se o componente utilizará um cabeçalho com botão de fechamento.
16
16
  */
17
17
  useHeader: boolean;
18
+ /**
19
+ * Define se o componente utilizará um cabeçalho com botão de fechamento.
20
+ */
21
+ heightMode: string;
18
22
  /**
19
23
  * Evento disparado ao clicar no botão de fechar (onEzClosePopup).
20
24
  */
@@ -1,12 +1,12 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- import { Option } from "../ez-combo-box/ez-combo-box";
2
+ import { IOption } from "../ez-combo-box/ez-combo-box";
3
3
  export declare class EzSearch {
4
4
  private _elem;
5
5
  private _comboElement;
6
6
  /**
7
7
  * Código do registro selecionado
8
8
  */
9
- value: Option | string;
9
+ value: IOption | string;
10
10
  /**
11
11
  * Título do campo
12
12
  */
@@ -18,7 +18,7 @@ export declare class EzSearch {
18
18
  /**
19
19
  * Um evento disparado quando o estado do componente é alterado (onEzChange).
20
20
  */
21
- ezChange: EventEmitter<Option>;
21
+ ezChange: EventEmitter<IOption>;
22
22
  /**
23
23
  * Evento emitido ao clicar para abrir o popup
24
24
  */
@@ -47,4 +47,6 @@ export interface Tab {
47
47
  label: string;
48
48
  tabKey: string;
49
49
  index: number;
50
+ rightIcon?: string;
51
+ leftIcon?: string;
50
52
  }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzTextEdit {
3
+ private _inputElement;
4
+ private _valueBasis;
5
+ private _newValue;
6
+ /**
7
+ * Valor manipulado pelo componente através do input
8
+ */
9
+ value: string;
10
+ /**
11
+ * Define atributos do estilo
12
+ */
13
+ styled: IStyled;
14
+ /**
15
+ * Evento emitido ao salvar uma edição
16
+ */
17
+ saveEdition: EventEmitter<any>;
18
+ /**
19
+ * Disparado ao cancelar uma edição
20
+ */
21
+ cancelEdition: EventEmitter<any>;
22
+ /**
23
+ * Aplica focus no campo.
24
+ */
25
+ applyFocusSelect(): Promise<void>;
26
+ private calcSizeInput;
27
+ private getWidthValue;
28
+ private setStyledInput;
29
+ private handleSaveEdition;
30
+ private setNewValue;
31
+ componentDidLoad(): void;
32
+ componentDidRender(): void;
33
+ render(): any;
34
+ }
35
+ export interface IStyled {
36
+ fontSize: string;
37
+ fontWeight: string;
38
+ fontFamily: string;
39
+ }
@@ -48,6 +48,10 @@ export declare class EzTextInput {
48
48
  * Define o modo do tamanho do campo; opções: slim e regular.
49
49
  */
50
50
  mode: string;
51
+ /**
52
+ * Define se o campo contará com bordas ou não
53
+ */
54
+ noBorder: boolean;
51
55
  observeErrorMessage(): void;
52
56
  observeMask(): void;
53
57
  observeValue(newValue: string, oldValue: string): void;
@@ -55,6 +59,7 @@ export declare class EzTextInput {
55
59
  private isFocused;
56
60
  private isSlaveMode;
57
61
  private adjustColorContentSlot;
62
+ private adjustBorderInput;
58
63
  /**
59
64
  * Faz o foco no componente de input
60
65
  */
@@ -3,12 +3,16 @@ export declare class EzViewStack {
3
3
  private _elemList;
4
4
  private _focusedIndex;
5
5
  private _totalStackItems;
6
+ /**
7
+ * Indetificador único do componente
8
+ */
9
+ private _dataKey;
6
10
  /**
7
11
  * Exibe a aba desejada de acordo com o index passado na tela fazendo com a ativa atual seja removida ou oculta dependendo da hidePolicy.
8
12
  */
9
13
  show(index: number): Promise<void>;
10
14
  /**
11
- * Retorna o index que est� atualmente ativo e sendo exibido.
15
+ * Retorna o index que está atualmente ativo e sendo exibido.
12
16
  */
13
17
  getSelectedIndex(): Promise<number>;
14
18
  policyHideRemove(): void;