@sankhyalabs/ezui 1.1.6 → 1.1.10

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 (149) hide show
  1. package/README.md +72 -72
  2. package/dist/cjs/{DataUnit-09a6e7be.js → DataUnit-95368a67.js} +418 -361
  3. package/dist/cjs/ez-action-chip.cjs.entry.js +41 -41
  4. package/dist/cjs/ez-button_14.cjs.entry.js +1933 -1847
  5. package/dist/cjs/ez-label-chip.cjs.entry.js +120 -120
  6. package/dist/cjs/ez-modal.cjs.entry.js +102 -95
  7. package/dist/cjs/ez-number-input.cjs.entry.js +236 -236
  8. package/dist/cjs/ez-time-input.cjs.entry.js +168 -168
  9. package/dist/cjs/ezui.cjs.js +1 -1
  10. package/dist/cjs/form-metadata.cjs.entry.js +65 -65
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -82
  13. package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -109
  14. package/dist/collection/components/ez-button/ez-button.css +94 -94
  15. package/dist/collection/components/ez-button/ez-button.js +125 -125
  16. package/dist/collection/components/ez-calendar/ez-calendar.css +210 -210
  17. package/dist/collection/components/ez-calendar/ez-calendar.js +215 -215
  18. package/dist/collection/components/ez-check/ez-check.css +265 -265
  19. package/dist/collection/components/ez-check/ez-check.js +168 -168
  20. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +67 -67
  21. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -108
  22. package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -2
  23. package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -167
  24. package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -363
  25. package/dist/collection/components/ez-date-input/ez-date-input.css +38 -38
  26. package/dist/collection/components/ez-date-input/ez-date-input.js +172 -172
  27. package/dist/collection/components/ez-form/ez-form.css +19 -19
  28. package/dist/collection/components/ez-form/ez-form.js +390 -289
  29. package/dist/collection/components/ez-form/store/Form.actions.js +132 -123
  30. package/dist/collection/components/ez-form/store/Form.reducer.js +194 -174
  31. package/dist/collection/components/ez-form/store/Form.selectors.js +44 -43
  32. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +252 -207
  33. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -16
  34. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +23 -23
  35. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -173
  36. package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -14
  37. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -71
  38. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -27
  39. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -33
  40. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -18
  41. package/dist/collection/components/ez-icon/ez-icon.css +36 -36
  42. package/dist/collection/components/ez-icon/ez-icon.js +56 -56
  43. package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -117
  44. package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -276
  45. package/dist/collection/components/ez-modal/ez-modal.css +86 -86
  46. package/dist/collection/components/ez-modal/ez-modal.js +222 -200
  47. package/dist/collection/components/ez-number-input/ez-number-input.css +144 -144
  48. package/dist/collection/components/ez-number-input/ez-number-input.js +465 -465
  49. package/dist/collection/components/ez-popover/ez-popover.css +38 -38
  50. package/dist/collection/components/ez-popover/ez-popover.js +323 -323
  51. package/dist/collection/components/ez-search/ez-search.css +295 -295
  52. package/dist/collection/components/ez-search/ez-search.js +527 -527
  53. package/dist/collection/components/ez-tabselector/ez-tabselector.css +125 -125
  54. package/dist/collection/components/ez-tabselector/ez-tabselector.js +283 -283
  55. package/dist/collection/components/ez-text-area/ez-text-area.css +139 -139
  56. package/dist/collection/components/ez-text-area/ez-text-area.js +267 -267
  57. package/dist/collection/components/ez-text-input/ez-text-input.css +169 -169
  58. package/dist/collection/components/ez-text-input/ez-text-input.js +395 -395
  59. package/dist/collection/components/ez-time-input/ez-time-input.css +155 -155
  60. package/dist/collection/components/ez-time-input/ez-time-input.js +326 -326
  61. package/dist/collection/index.js +1 -1
  62. package/dist/collection/servidor.js +100 -100
  63. package/dist/collection/utils/FloatingManager.js +15 -15
  64. package/dist/collection/utils/utils.js +6 -6
  65. package/dist/custom-elements/index.js +3146 -2998
  66. package/dist/esm/{DataUnit-7a983910.js → DataUnit-4bb6a396.js} +417 -362
  67. package/dist/esm/ez-action-chip.entry.js +41 -41
  68. package/dist/esm/ez-button_14.entry.js +1933 -1847
  69. package/dist/esm/ez-label-chip.entry.js +120 -120
  70. package/dist/esm/ez-modal.entry.js +103 -96
  71. package/dist/esm/ez-number-input.entry.js +236 -236
  72. package/dist/esm/ez-time-input.entry.js +168 -168
  73. package/dist/esm/ezui.js +1 -1
  74. package/dist/esm/form-metadata.entry.js +65 -65
  75. package/dist/esm/loader.js +1 -1
  76. package/dist/esm/polyfills/core-js.js +0 -0
  77. package/dist/esm/polyfills/dom.js +0 -0
  78. package/dist/esm/polyfills/es5-html-element.js +0 -0
  79. package/dist/esm/polyfills/index.js +0 -0
  80. package/dist/esm/polyfills/system.js +0 -0
  81. package/dist/ezui/ezui.esm.js +1 -1
  82. package/dist/ezui/p-11d20338.js +1 -0
  83. package/dist/ezui/{p-3c3a43aa.entry.js → p-5d30e51c.entry.js} +1 -1
  84. package/dist/ezui/p-77fdb4fd.entry.js +1 -0
  85. package/dist/ezui/p-e056fb23.entry.js +1 -0
  86. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
  87. package/dist/types/components/ez-button/ez-button.d.ts +20 -20
  88. package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
  89. package/dist/types/components/ez-check/ez-check.d.ts +32 -32
  90. package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
  91. package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
  92. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
  93. package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
  94. package/dist/types/components/ez-form/ez-form.d.ts +27 -27
  95. package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -104
  96. package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -11
  97. package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -13
  98. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +61 -48
  99. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
  100. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
  101. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
  102. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
  103. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
  104. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
  105. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -7
  106. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
  107. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
  108. package/dist/types/components/ez-modal/ez-modal.d.ts +32 -26
  109. package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
  110. package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
  111. package/dist/types/components/ez-search/ez-search.d.ts +95 -95
  112. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
  113. package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
  114. package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
  115. package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
  116. package/dist/types/components.d.ts +8 -0
  117. package/dist/types/index.d.ts +1 -1
  118. package/dist/types/utils/utils.d.ts +2 -2
  119. package/package.json +114 -114
  120. package/react/components.d.ts +22 -0
  121. package/react/components.js +25 -0
  122. package/react/components.js.map +1 -0
  123. package/react/react-component-lib/createComponent.d.ts +10 -0
  124. package/react/react-component-lib/createComponent.js +59 -0
  125. package/react/react-component-lib/createComponent.js.map +1 -0
  126. package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
  127. package/react/react-component-lib/createOverlayComponent.js +89 -0
  128. package/react/react-component-lib/createOverlayComponent.js.map +1 -0
  129. package/react/react-component-lib/index.d.ts +2 -0
  130. package/react/react-component-lib/index.js +3 -0
  131. package/react/react-component-lib/index.js.map +1 -0
  132. package/react/react-component-lib/interfaces.d.ts +29 -0
  133. package/react/react-component-lib/interfaces.js +1 -0
  134. package/react/react-component-lib/interfaces.js.map +1 -0
  135. package/react/react-component-lib/utils/attachProps.d.ts +12 -0
  136. package/react/react-component-lib/utils/attachProps.js +96 -0
  137. package/react/react-component-lib/utils/attachProps.js.map +1 -0
  138. package/react/react-component-lib/utils/case.d.ts +2 -0
  139. package/react/react-component-lib/utils/case.js +7 -0
  140. package/react/react-component-lib/utils/case.js.map +1 -0
  141. package/react/react-component-lib/utils/dev.d.ts +2 -0
  142. package/react/react-component-lib/utils/dev.js +13 -0
  143. package/react/react-component-lib/utils/dev.js.map +1 -0
  144. package/react/react-component-lib/utils/index.d.ts +7 -0
  145. package/react/react-component-lib/utils/index.js +21 -0
  146. package/react/react-component-lib/utils/index.js.map +1 -0
  147. package/dist/ezui/p-5185cbf1.entry.js +0 -1
  148. package/dist/ezui/p-5d600057.entry.js +0 -1
  149. package/dist/ezui/p-9f819174.js +0 -1
@@ -1,95 +1,95 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- interface HotSearchOptions {
3
- description: string;
4
- dtRecent: string;
5
- qtd: number;
6
- }
7
- export interface OptionsPesquisa {
8
- value: string;
9
- label: string;
10
- }
11
- export interface OptionsPesquisaAjusted {
12
- value: string;
13
- label: string;
14
- ajustedValue: string;
15
- }
16
- export declare class EzSearch {
17
- private _options;
18
- private _inputElem;
19
- private _divElem;
20
- private _popover;
21
- private _changeDeboucing;
22
- private _classSelect;
23
- private _loadDataFunction;
24
- /**
25
- * Código do registro selecionado
26
- */
27
- value: string;
28
- /**
29
- * Label é o título do campo
30
- */
31
- label: string;
32
- /**
33
- * Deixa o campo disponível ou não para digitação.
34
- */
35
- enabled: boolean;
36
- /**
37
- * Quantidade máxima de itens guardados no localstorage
38
- */
39
- qtdHotItems: number;
40
- /**
41
- * Este evento emite o código do registro selecionado
42
- */
43
- ezChange: EventEmitter<OptionsPesquisa>;
44
- /**
45
- * Ajusta a opção de mostrar o "value" para cada "label". Como default "value" não está presente (showvalue = false)
46
- */
47
- showvalue: boolean;
48
- /**
49
- * Quando há um problema de validação, serve como orientação ao usuário
50
- */
51
- errormessage: string;
52
- /**
53
- * Quando há um problema de validação, serve como orientação ao usuário
54
- */
55
- loadexecutor: string | Function;
56
- /**
57
- * Define o identificador único do hotSearch, caso esta propriedade não seja preenchida, o hotSearch não funcionará.
58
- */
59
- hotsearchid: string;
60
- private _preSelection;
61
- private _visibleOptions;
62
- private el;
63
- valueChanged(): void;
64
- onInputTeste(): void;
65
- buildId: () => string;
66
- getStorageItems: (key: string) => Array<HotSearchOptions>;
67
- getElement(storageItem: Array<HotSearchOptions>, value: string): HotSearchOptions;
68
- getOnlyDate(): string;
69
- orderHotList: (list: Array<HotSearchOptions>) => Array<HotSearchOptions>;
70
- saveStorageItem: (key: string, value: string) => Array<HotSearchOptions>;
71
- onInputChange(ev: Event): void;
72
- buildDataList(): void;
73
- buildItem(opt: OptionsPesquisaAjusted, index: number): any;
74
- highlightMatch(label: string): any;
75
- showOptions(): void;
76
- nextOption(): void;
77
- previousOption(): void;
78
- scrollToOption(opt: OptionsPesquisa): void;
79
- selectCurrentOption(): void;
80
- selectOption(opt: OptionsPesquisaAjusted): void;
81
- keyDownHandler(event: KeyboardEvent): void;
82
- handleSetValueByOption(ev: Event): void;
83
- handleChange(): void;
84
- normalizeResult(data: any): void;
85
- populateOptions(serverData: any): void;
86
- buildOptions(): void;
87
- setClassForSpanLabel(): string;
88
- handleFocus(): void;
89
- adjustOptions: (arrayOptions: Array<OptionsPesquisa>) => Array<OptionsPesquisaAjusted>;
90
- sortArrayOptions: (array: any, propname: string) => any;
91
- private parseExecutor;
92
- componentDidLoad(): void;
93
- render(): any;
94
- }
95
- export {};
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ interface HotSearchOptions {
3
+ description: string;
4
+ dtRecent: string;
5
+ qtd: number;
6
+ }
7
+ export interface OptionsPesquisa {
8
+ value: string;
9
+ label: string;
10
+ }
11
+ export interface OptionsPesquisaAjusted {
12
+ value: string;
13
+ label: string;
14
+ ajustedValue: string;
15
+ }
16
+ export declare class EzSearch {
17
+ private _options;
18
+ private _inputElem;
19
+ private _divElem;
20
+ private _popover;
21
+ private _changeDeboucing;
22
+ private _classSelect;
23
+ private _loadDataFunction;
24
+ /**
25
+ * Código do registro selecionado
26
+ */
27
+ value: string;
28
+ /**
29
+ * Label é o título do campo
30
+ */
31
+ label: string;
32
+ /**
33
+ * Deixa o campo disponível ou não para digitação.
34
+ */
35
+ enabled: boolean;
36
+ /**
37
+ * Quantidade máxima de itens guardados no localstorage
38
+ */
39
+ qtdHotItems: number;
40
+ /**
41
+ * Este evento emite o código do registro selecionado
42
+ */
43
+ ezChange: EventEmitter<OptionsPesquisa>;
44
+ /**
45
+ * Ajusta a opção de mostrar o "value" para cada "label". Como default "value" não está presente (showvalue = false)
46
+ */
47
+ showvalue: boolean;
48
+ /**
49
+ * Quando há um problema de validação, serve como orientação ao usuário
50
+ */
51
+ errormessage: string;
52
+ /**
53
+ * Quando há um problema de validação, serve como orientação ao usuário
54
+ */
55
+ loadexecutor: string | Function;
56
+ /**
57
+ * Define o identificador único do hotSearch, caso esta propriedade não seja preenchida, o hotSearch não funcionará.
58
+ */
59
+ hotsearchid: string;
60
+ private _preSelection;
61
+ private _visibleOptions;
62
+ private el;
63
+ valueChanged(): void;
64
+ onInputTeste(): void;
65
+ buildId: () => string;
66
+ getStorageItems: (key: string) => Array<HotSearchOptions>;
67
+ getElement(storageItem: Array<HotSearchOptions>, value: string): HotSearchOptions;
68
+ getOnlyDate(): string;
69
+ orderHotList: (list: Array<HotSearchOptions>) => Array<HotSearchOptions>;
70
+ saveStorageItem: (key: string, value: string) => Array<HotSearchOptions>;
71
+ onInputChange(ev: Event): void;
72
+ buildDataList(): void;
73
+ buildItem(opt: OptionsPesquisaAjusted, index: number): any;
74
+ highlightMatch(label: string): any;
75
+ showOptions(): void;
76
+ nextOption(): void;
77
+ previousOption(): void;
78
+ scrollToOption(opt: OptionsPesquisa): void;
79
+ selectCurrentOption(): void;
80
+ selectOption(opt: OptionsPesquisaAjusted): void;
81
+ keyDownHandler(event: KeyboardEvent): void;
82
+ handleSetValueByOption(ev: Event): void;
83
+ handleChange(): void;
84
+ normalizeResult(data: any): void;
85
+ populateOptions(serverData: any): void;
86
+ buildOptions(): void;
87
+ setClassForSpanLabel(): string;
88
+ handleFocus(): void;
89
+ adjustOptions: (arrayOptions: Array<OptionsPesquisa>) => Array<OptionsPesquisaAjusted>;
90
+ sortArrayOptions: (array: any, propname: string) => any;
91
+ private parseExecutor;
92
+ componentDidLoad(): void;
93
+ render(): any;
94
+ }
95
+ export {};
@@ -1,31 +1,31 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzTabselector {
3
- private _hostElem;
4
- private _scrollContainer;
5
- private _backwardButton;
6
- private _forwardButton;
7
- private _startHidden;
8
- private _endHidden;
9
- private _processedTabs;
10
- private foucusedindex;
11
- private _scrollCallBackTeste;
12
- selectedindex: string;
13
- selectedtab: string;
14
- tabs: string;
15
- change: EventEmitter<string>;
16
- handleTabClick(tab: string, index: number): void;
17
- componentWillRender(): void;
18
- handleSlotChange(ev: Event): void;
19
- scrollBackward(): void;
20
- scrollFoward(): void;
21
- componentDidRender(): void;
22
- updateScroll(): void;
23
- _scrollCallBack: number;
24
- domScrollHandler(): void;
25
- setFocusedTab(index: string): void;
26
- _textMesurement: HTMLCanvasElement;
27
- getTextWidth(text: string): string;
28
- setFoucusedParam: (ev: KeyboardEvent) => void;
29
- setFoucusedBtn(visible: boolean, paramater: string): void;
30
- render(): any;
31
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzTabselector {
3
+ private _hostElem;
4
+ private _scrollContainer;
5
+ private _backwardButton;
6
+ private _forwardButton;
7
+ private _startHidden;
8
+ private _endHidden;
9
+ private _processedTabs;
10
+ private foucusedindex;
11
+ private _scrollCallBackTeste;
12
+ selectedindex: string;
13
+ selectedtab: string;
14
+ tabs: string;
15
+ change: EventEmitter<string>;
16
+ handleTabClick(tab: string, index: number): void;
17
+ componentWillRender(): void;
18
+ handleSlotChange(ev: Event): void;
19
+ scrollBackward(): void;
20
+ scrollFoward(): void;
21
+ componentDidRender(): void;
22
+ updateScroll(): void;
23
+ _scrollCallBack: number;
24
+ domScrollHandler(): void;
25
+ setFocusedTab(index: string): void;
26
+ _textMesurement: HTMLCanvasElement;
27
+ getTextWidth(text: string): string;
28
+ setFoucusedParam: (ev: KeyboardEvent) => void;
29
+ setFoucusedBtn(visible: boolean, paramater: string): void;
30
+ render(): any;
31
+ }
@@ -1,49 +1,49 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzTextArea {
3
- private _inputElem;
4
- private _labelElem;
5
- private _messageBoxElem;
6
- private _hostElement;
7
- ezChange: EventEmitter<string>;
8
- /**
9
- * Label é o título do campo
10
- */
11
- label: string;
12
- /**
13
- * Valor digitado pelo usuário. Este valor é o que fica visível no campo.
14
- */
15
- value: string;
16
- /**
17
- * Deixa o campo disponível ou não para digitação.
18
- */
19
- enabled: boolean;
20
- /**
21
- * Deixa o componente em modo "carregando".
22
- */
23
- loading: boolean;
24
- /**
25
- * Quando há um problema de validação, serve como orientação ao usuário
26
- */
27
- errormessage: string;
28
- /**
29
- * Ajusta o numero de linhas e consequentemente o height do textarea. Valor default: 4
30
- */
31
- rows: number;
32
- showError(): void;
33
- updateInputValue(): void;
34
- adjustFloatingLabel(): void;
35
- isFocused(): boolean;
36
- /**
37
- * Faz o foco no componente de input
38
- */
39
- setFocus(): Promise<void>;
40
- /**
41
- * Remove o foco no componente de input
42
- */
43
- setBlur(): Promise<void>;
44
- handleFocusout(): void;
45
- handleChange(): void;
46
- handleFocus(): void;
47
- componentDidLoad(): void;
48
- render(): any;
49
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzTextArea {
3
+ private _inputElem;
4
+ private _labelElem;
5
+ private _messageBoxElem;
6
+ private _hostElement;
7
+ ezChange: EventEmitter<string>;
8
+ /**
9
+ * Label é o título do campo
10
+ */
11
+ label: string;
12
+ /**
13
+ * Valor digitado pelo usuário. Este valor é o que fica visível no campo.
14
+ */
15
+ value: string;
16
+ /**
17
+ * Deixa o campo disponível ou não para digitação.
18
+ */
19
+ enabled: boolean;
20
+ /**
21
+ * Deixa o componente em modo "carregando".
22
+ */
23
+ loading: boolean;
24
+ /**
25
+ * Quando há um problema de validação, serve como orientação ao usuário
26
+ */
27
+ errormessage: string;
28
+ /**
29
+ * Ajusta o numero de linhas e consequentemente o height do textarea. Valor default: 4
30
+ */
31
+ rows: number;
32
+ showError(): void;
33
+ updateInputValue(): void;
34
+ adjustFloatingLabel(): void;
35
+ isFocused(): boolean;
36
+ /**
37
+ * Faz o foco no componente de input
38
+ */
39
+ setFocus(): Promise<void>;
40
+ /**
41
+ * Remove o foco no componente de input
42
+ */
43
+ setBlur(): Promise<void>;
44
+ handleFocusout(): void;
45
+ handleChange(): void;
46
+ handleFocus(): void;
47
+ componentDidLoad(): void;
48
+ render(): any;
49
+ }
@@ -1,64 +1,64 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzTextInput {
3
- private _inputElem;
4
- private _labelElem;
5
- private _messageBoxElem;
6
- private _lastValidValue;
7
- private _maskFormatter;
8
- private _hostElement;
9
- ezChange: EventEmitter<string>;
10
- /**
11
- * Label é o título do campo
12
- */
13
- label: string;
14
- /**
15
- * Valor digitado pelo usuário. Este valor é o que fica visível no campo.
16
- */
17
- value: string;
18
- /**
19
- * Deixa o campo disponível ou não para digitação.
20
- */
21
- enabled: boolean;
22
- /**
23
- * Deixa o componente em modo "carregando".
24
- */
25
- loading: boolean;
26
- /**
27
- * Quando há um problema de validação, serve como orientação ao usuário
28
- */
29
- errormessage: string;
30
- /**
31
- * Faz com que o componente só aceite números
32
- */
33
- onlynumber: boolean;
34
- /**
35
- * Aplica uma máscara no conteúdo conforme um o padrão estabelecido
36
- */
37
- mask: string;
38
- /**
39
- * Restringe o que o usuário pode digitar. Cada caractere digitado será testado
40
- * e deve estar contido nessa string ou será descartado.
41
- */
42
- restrict: string;
43
- showError(): void;
44
- prepareMask(): void;
45
- updateInputValue(): void;
46
- adjustFloatingLabel(): void;
47
- isFocused(): boolean;
48
- /**
49
- * Faz o foco no componente de input
50
- */
51
- setFocus(): Promise<void>;
52
- /**
53
- * Remove o foco no componente de input
54
- */
55
- setBlur(): Promise<void>;
56
- handleFocusout(): void;
57
- isValidValue(value: string): boolean;
58
- handleChange(): void;
59
- handleSlotChange(ev: Event): void;
60
- doFocus(): void;
61
- componentDidLoad(): void;
62
- componentWillLoad(): void;
63
- render(): any;
64
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzTextInput {
3
+ private _inputElem;
4
+ private _labelElem;
5
+ private _messageBoxElem;
6
+ private _lastValidValue;
7
+ private _maskFormatter;
8
+ private _hostElement;
9
+ ezChange: EventEmitter<string>;
10
+ /**
11
+ * Label é o título do campo
12
+ */
13
+ label: string;
14
+ /**
15
+ * Valor digitado pelo usuário. Este valor é o que fica visível no campo.
16
+ */
17
+ value: string;
18
+ /**
19
+ * Deixa o campo disponível ou não para digitação.
20
+ */
21
+ enabled: boolean;
22
+ /**
23
+ * Deixa o componente em modo "carregando".
24
+ */
25
+ loading: boolean;
26
+ /**
27
+ * Quando há um problema de validação, serve como orientação ao usuário
28
+ */
29
+ errormessage: string;
30
+ /**
31
+ * Faz com que o componente só aceite números
32
+ */
33
+ onlynumber: boolean;
34
+ /**
35
+ * Aplica uma máscara no conteúdo conforme um o padrão estabelecido
36
+ */
37
+ mask: string;
38
+ /**
39
+ * Restringe o que o usuário pode digitar. Cada caractere digitado será testado
40
+ * e deve estar contido nessa string ou será descartado.
41
+ */
42
+ restrict: string;
43
+ showError(): void;
44
+ prepareMask(): void;
45
+ updateInputValue(): void;
46
+ adjustFloatingLabel(): void;
47
+ isFocused(): boolean;
48
+ /**
49
+ * Faz o foco no componente de input
50
+ */
51
+ setFocus(): Promise<void>;
52
+ /**
53
+ * Remove o foco no componente de input
54
+ */
55
+ setBlur(): Promise<void>;
56
+ handleFocusout(): void;
57
+ isValidValue(value: string): boolean;
58
+ handleChange(): void;
59
+ handleSlotChange(ev: Event): void;
60
+ doFocus(): void;
61
+ componentDidLoad(): void;
62
+ componentWillLoad(): void;
63
+ render(): any;
64
+ }
@@ -1,53 +1,53 @@
1
- export declare class EzTimeInput {
2
- private _inputElem;
3
- private _labelElem;
4
- private _iconElement;
5
- private _messageBoxElem;
6
- private _maskFormatter;
7
- /**
8
- * Label é o título do campo
9
- */
10
- label: string;
11
- /**
12
- * Valor digitado pelo usuário. Este valor é o que fica visível no campo.
13
- */
14
- viewValue: string;
15
- /**
16
- * Valor que será transmitido para o back-end.
17
- */
18
- value: number;
19
- /**
20
- * Deixa o campo disponível ou não para digitação.
21
- */
22
- enabled: boolean;
23
- /**
24
- * Quando há um problema de validação, serve como orientação ao usuário
25
- */
26
- errormessage: string;
27
- /**
28
- * Define se o componente irá ou não considerar os segundos
29
- */
30
- showSeconds: boolean;
31
- showError(): void;
32
- prepareMask(): void;
33
- adjustFloatingLabel(): void;
34
- onValueChanged(): void;
35
- /**
36
- * Faz o foco no componente de input
37
- */
38
- setFocus(): Promise<void>;
39
- /**
40
- * Remove o foco no componente de input
41
- */
42
- setBlur(): Promise<void>;
43
- setInputElemnt(input: HTMLInputElement): void;
44
- handleFocusout(): void;
45
- prepareValue(value: string): void;
46
- clearField(): void;
47
- handleChange(): void;
48
- adjustIconStyle(): void;
49
- doFocus(): void;
50
- componentDidLoad(): void;
51
- componentWillLoad(): void;
52
- render(): any;
53
- }
1
+ export declare class EzTimeInput {
2
+ private _inputElem;
3
+ private _labelElem;
4
+ private _iconElement;
5
+ private _messageBoxElem;
6
+ private _maskFormatter;
7
+ /**
8
+ * Label é o título do campo
9
+ */
10
+ label: string;
11
+ /**
12
+ * Valor digitado pelo usuário. Este valor é o que fica visível no campo.
13
+ */
14
+ viewValue: string;
15
+ /**
16
+ * Valor que será transmitido para o back-end.
17
+ */
18
+ value: number;
19
+ /**
20
+ * Deixa o campo disponível ou não para digitação.
21
+ */
22
+ enabled: boolean;
23
+ /**
24
+ * Quando há um problema de validação, serve como orientação ao usuário
25
+ */
26
+ errormessage: string;
27
+ /**
28
+ * Define se o componente irá ou não considerar os segundos
29
+ */
30
+ showSeconds: boolean;
31
+ showError(): void;
32
+ prepareMask(): void;
33
+ adjustFloatingLabel(): void;
34
+ onValueChanged(): void;
35
+ /**
36
+ * Faz o foco no componente de input
37
+ */
38
+ setFocus(): Promise<void>;
39
+ /**
40
+ * Remove o foco no componente de input
41
+ */
42
+ setBlur(): Promise<void>;
43
+ setInputElemnt(input: HTMLInputElement): void;
44
+ handleFocusout(): void;
45
+ prepareValue(value: string): void;
46
+ clearField(): void;
47
+ handleChange(): void;
48
+ adjustIconStyle(): void;
49
+ doFocus(): void;
50
+ componentDidLoad(): void;
51
+ componentWillLoad(): void;
52
+ render(): any;
53
+ }
@@ -146,11 +146,14 @@ export namespace Components {
146
146
  }
147
147
  interface EzForm {
148
148
  "fieldsearchexecutor": string | Function;
149
+ "getChanges": () => Promise<any[]>;
149
150
  "loadexecutor": string | Function;
150
151
  "metadata": Array<Form>;
151
152
  "metadataexecutor": string | Function;
152
153
  "removeexecutor": string | Function;
153
154
  "saveexecutor": string | Function;
155
+ "slavemode": boolean;
156
+ "validate": () => Promise<boolean>;
154
157
  }
155
158
  interface EzIcon {
156
159
  "href": string;
@@ -727,6 +730,7 @@ declare namespace LocalJSX {
727
730
  "metadataexecutor"?: string | Function;
728
731
  "removeexecutor"?: string | Function;
729
732
  "saveexecutor"?: string | Function;
733
+ "slavemode"?: boolean;
730
734
  }
731
735
  interface EzIcon {
732
736
  "href"?: string;
@@ -769,6 +773,10 @@ declare namespace LocalJSX {
769
773
  * Define o tamanho do modal devem ser utilizados os tamanhos definidos de colunas como "col-sd-3"
770
774
  */
771
775
  "modalsize"?: string;
776
+ /**
777
+ * Um evento disparado quando a propriedade oppened é alterada.
778
+ */
779
+ "onEzChange"?: (event: CustomEvent<boolean>) => void;
772
780
  /**
773
781
  * Controle de exibição do Modal
774
782
  */
@@ -1 +1 @@
1
- export { Components, JSX } from './components';
1
+ export { Components, JSX } from './components';
@@ -1,2 +1,2 @@
1
- export declare function format(first: string, middle: string, last: string): string;
2
- export declare function isValidNumber(strValue: string): boolean;
1
+ export declare function format(first: string, middle: string, last: string): string;
2
+ export declare function isValidNumber(strValue: string): boolean;