@sankhyalabs/ezui 1.1.8 → 1.1.9

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 (141) hide show
  1. package/README.md +72 -72
  2. package/dist/cjs/{DataUnit-28b290cb.js → DataUnit-9a4a35ca.js} +415 -371
  3. package/dist/cjs/ez-action-chip.cjs.entry.js +41 -41
  4. package/dist/cjs/ez-button_14.cjs.entry.js +1911 -1911
  5. package/dist/cjs/ez-label-chip.cjs.entry.js +120 -120
  6. package/dist/cjs/ez-modal.cjs.entry.js +104 -104
  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/form-metadata.cjs.entry.js +65 -65
  10. package/dist/collection/components/ez-action-chip/ez-action-chip.css +82 -82
  11. package/dist/collection/components/ez-action-chip/ez-action-chip.js +109 -109
  12. package/dist/collection/components/ez-button/ez-button.css +94 -94
  13. package/dist/collection/components/ez-button/ez-button.js +125 -125
  14. package/dist/collection/components/ez-calendar/ez-calendar.css +210 -210
  15. package/dist/collection/components/ez-calendar/ez-calendar.js +215 -215
  16. package/dist/collection/components/ez-check/ez-check.css +265 -265
  17. package/dist/collection/components/ez-check/ez-check.js +168 -168
  18. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.css +67 -67
  19. package/dist/collection/components/ez-collapsable-box/ez-collapsable-box.js +108 -108
  20. package/dist/collection/components/ez-combo-box/ez-combo-box-interfaces.js +2 -2
  21. package/dist/collection/components/ez-combo-box/ez-combo-box.css +167 -167
  22. package/dist/collection/components/ez-combo-box/ez-combo-box.js +363 -363
  23. package/dist/collection/components/ez-date-input/ez-date-input.css +38 -38
  24. package/dist/collection/components/ez-date-input/ez-date-input.js +172 -172
  25. package/dist/collection/components/ez-form/ez-form.css +19 -19
  26. package/dist/collection/components/ez-form/ez-form.js +368 -368
  27. package/dist/collection/components/ez-form/store/Form.actions.js +132 -132
  28. package/dist/collection/components/ez-form/store/Form.reducer.js +194 -194
  29. package/dist/collection/components/ez-form/store/Form.selectors.js +44 -44
  30. package/dist/collection/components/ez-form/subcomponents/DataUnit.js +251 -207
  31. package/dist/collection/components/ez-form/subcomponents/FormMetadata.js +16 -16
  32. package/dist/collection/components/ez-form/subcomponents/css/place-holder.css +23 -23
  33. package/dist/collection/components/ez-form/subcomponents/form-metadata.js +173 -173
  34. package/dist/collection/components/ez-form/subcomponents/place-holder.js +14 -14
  35. package/dist/collection/components/ez-form/subcomponents/structure/Field.js +71 -71
  36. package/dist/collection/components/ez-form/subcomponents/structure/FieldSet.js +27 -27
  37. package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +40 -40
  38. package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +27 -27
  39. package/dist/collection/components/ez-icon/ez-icon.css +36 -36
  40. package/dist/collection/components/ez-icon/ez-icon.js +56 -56
  41. package/dist/collection/components/ez-label-chip/ez-label-chip.css +117 -117
  42. package/dist/collection/components/ez-label-chip/ez-label-chip.js +276 -276
  43. package/dist/collection/components/ez-modal/ez-modal.css +86 -86
  44. package/dist/collection/components/ez-modal/ez-modal.js +224 -224
  45. package/dist/collection/components/ez-number-input/ez-number-input.css +144 -144
  46. package/dist/collection/components/ez-number-input/ez-number-input.js +465 -465
  47. package/dist/collection/components/ez-popover/ez-popover.css +38 -38
  48. package/dist/collection/components/ez-popover/ez-popover.js +323 -323
  49. package/dist/collection/components/ez-search/ez-search.css +295 -295
  50. package/dist/collection/components/ez-search/ez-search.js +527 -527
  51. package/dist/collection/components/ez-tabselector/ez-tabselector.css +125 -125
  52. package/dist/collection/components/ez-tabselector/ez-tabselector.js +283 -283
  53. package/dist/collection/components/ez-text-area/ez-text-area.css +139 -139
  54. package/dist/collection/components/ez-text-area/ez-text-area.js +267 -267
  55. package/dist/collection/components/ez-text-input/ez-text-input.css +169 -169
  56. package/dist/collection/components/ez-text-input/ez-text-input.js +395 -395
  57. package/dist/collection/components/ez-time-input/ez-time-input.css +155 -155
  58. package/dist/collection/components/ez-time-input/ez-time-input.js +326 -326
  59. package/dist/collection/index.js +1 -1
  60. package/dist/collection/servidor.js +100 -100
  61. package/dist/collection/utils/FloatingManager.js +15 -15
  62. package/dist/collection/utils/utils.js +6 -6
  63. package/dist/custom-elements/index.js +3125 -3081
  64. package/dist/esm/{DataUnit-69e518fa.js → DataUnit-d5d4c9a3.js} +415 -371
  65. package/dist/esm/ez-action-chip.entry.js +41 -41
  66. package/dist/esm/ez-button_14.entry.js +1911 -1911
  67. package/dist/esm/ez-label-chip.entry.js +120 -120
  68. package/dist/esm/ez-modal.entry.js +104 -104
  69. package/dist/esm/ez-number-input.entry.js +236 -236
  70. package/dist/esm/ez-time-input.entry.js +168 -168
  71. package/dist/esm/form-metadata.entry.js +65 -65
  72. package/dist/esm/polyfills/core-js.js +0 -0
  73. package/dist/esm/polyfills/dom.js +0 -0
  74. package/dist/esm/polyfills/es5-html-element.js +0 -0
  75. package/dist/esm/polyfills/index.js +0 -0
  76. package/dist/esm/polyfills/system.js +0 -0
  77. package/dist/ezui/ezui.esm.js +1 -1
  78. package/dist/ezui/{p-b0974f4f.entry.js → p-0fcdfb51.entry.js} +1 -1
  79. package/dist/ezui/p-dac7a6c2.js +1 -0
  80. package/dist/ezui/{p-db11c600.entry.js → p-dbef7060.entry.js} +1 -1
  81. package/dist/types/components/ez-action-chip/ez-action-chip.d.ts +16 -16
  82. package/dist/types/components/ez-button/ez-button.d.ts +20 -20
  83. package/dist/types/components/ez-calendar/ez-calendar.d.ts +42 -42
  84. package/dist/types/components/ez-check/ez-check.d.ts +32 -32
  85. package/dist/types/components/ez-collapsable-box/ez-collapsable-box.d.ts +18 -18
  86. package/dist/types/components/ez-combo-box/ez-combo-box-interfaces.d.ts +4 -4
  87. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +68 -68
  88. package/dist/types/components/ez-date-input/ez-date-input.d.ts +31 -31
  89. package/dist/types/components/ez-form/ez-form.d.ts +26 -31
  90. package/dist/types/components/ez-form/store/Form.actions.d.ts +111 -111
  91. package/dist/types/components/ez-form/store/Form.reducer.d.ts +20 -20
  92. package/dist/types/components/ez-form/store/Form.selectors.d.ts +14 -14
  93. package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +60 -55
  94. package/dist/types/components/ez-form/subcomponents/FormMetadata.d.ts +41 -41
  95. package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +15 -15
  96. package/dist/types/components/ez-form/subcomponents/place-holder.d.ts +3 -3
  97. package/dist/types/components/ez-form/subcomponents/structure/Field.d.ts +10 -10
  98. package/dist/types/components/ez-form/subcomponents/structure/FieldSet.d.ts +12 -12
  99. package/dist/types/components/ez-form/subcomponents/structure/FormSheet.d.ts +13 -13
  100. package/dist/types/components/ez-form/subcomponents/structure/NavigationBar.d.ts +17 -17
  101. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -5
  102. package/dist/types/components/ez-label-chip/ez-label-chip.d.ts +40 -40
  103. package/dist/types/components/ez-modal/ez-modal.d.ts +32 -32
  104. package/dist/types/components/ez-number-input/ez-number-input.d.ts +73 -73
  105. package/dist/types/components/ez-popover/ez-popover.d.ts +52 -52
  106. package/dist/types/components/ez-search/ez-search.d.ts +95 -95
  107. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +31 -31
  108. package/dist/types/components/ez-text-area/ez-text-area.d.ts +49 -49
  109. package/dist/types/components/ez-text-input/ez-text-input.d.ts +64 -64
  110. package/dist/types/components/ez-time-input/ez-time-input.d.ts +53 -53
  111. package/dist/types/index.d.ts +1 -1
  112. package/dist/types/utils/utils.d.ts +2 -2
  113. package/package.json +114 -114
  114. package/dist/ezui/p-10ef58b3.js +0 -1
  115. package/react/components.d.ts +0 -22
  116. package/react/components.js +0 -25
  117. package/react/components.js.map +0 -1
  118. package/react/react-component-lib/createComponent.d.ts +0 -10
  119. package/react/react-component-lib/createComponent.js +0 -59
  120. package/react/react-component-lib/createComponent.js.map +0 -1
  121. package/react/react-component-lib/createOverlayComponent.d.ts +0 -20
  122. package/react/react-component-lib/createOverlayComponent.js +0 -89
  123. package/react/react-component-lib/createOverlayComponent.js.map +0 -1
  124. package/react/react-component-lib/index.d.ts +0 -2
  125. package/react/react-component-lib/index.js +0 -3
  126. package/react/react-component-lib/index.js.map +0 -1
  127. package/react/react-component-lib/interfaces.d.ts +0 -29
  128. package/react/react-component-lib/interfaces.js +0 -1
  129. package/react/react-component-lib/interfaces.js.map +0 -1
  130. package/react/react-component-lib/utils/attachProps.d.ts +0 -12
  131. package/react/react-component-lib/utils/attachProps.js +0 -96
  132. package/react/react-component-lib/utils/attachProps.js.map +0 -1
  133. package/react/react-component-lib/utils/case.d.ts +0 -2
  134. package/react/react-component-lib/utils/case.js +0 -7
  135. package/react/react-component-lib/utils/case.js.map +0 -1
  136. package/react/react-component-lib/utils/dev.d.ts +0 -2
  137. package/react/react-component-lib/utils/dev.js +0 -13
  138. package/react/react-component-lib/utils/dev.js.map +0 -1
  139. package/react/react-component-lib/utils/index.d.ts +0 -7
  140. package/react/react-component-lib/utils/index.js +0 -21
  141. package/react/react-component-lib/utils/index.js.map +0 -1
@@ -1,42 +1,42 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzCalendar {
3
- private _container;
4
- private _box;
5
- private _floatingID;
6
- private _firstRender;
7
- private _currentPosition;
8
- private _todayLabel;
9
- private _weekDayLabels;
10
- private _monthLabels;
11
- /**
12
- * A data selecionada no calendário
13
- */
14
- value: Date;
15
- /**
16
- * No modo floating o calendário só se tornará visível
17
- * quando o método show() for acionado.
18
- */
19
- floating: boolean;
20
- /**
21
- * Quando o usuário escolhe uma data, esse evento é emitido.
22
- */
23
- ezChange: EventEmitter<string>;
24
- /**
25
- * Usado no modo floating. Faz com que o componente seja exibido.
26
- * É possível determinar ajustes de posicionamento através dos parâmetros
27
- * top, left, bottom e right. Esses parâmetros devem ser informados como
28
- * strings no formato css.
29
- */
30
- show(top?: string, left?: string, bottom?: string, right?: string): Promise<void>;
31
- /**
32
- * Usado no modo floating. Faz com que o componente seja ocultado.
33
- */
34
- hide(): Promise<void>;
35
- valueChanged(): void;
36
- private getMonthLabel;
37
- private isSelectedDate;
38
- private changeMonth;
39
- private selectDate;
40
- componentDidRender(): void;
41
- render(): any;
42
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzCalendar {
3
+ private _container;
4
+ private _box;
5
+ private _floatingID;
6
+ private _firstRender;
7
+ private _currentPosition;
8
+ private _todayLabel;
9
+ private _weekDayLabels;
10
+ private _monthLabels;
11
+ /**
12
+ * A data selecionada no calendário
13
+ */
14
+ value: Date;
15
+ /**
16
+ * No modo floating o calendário só se tornará visível
17
+ * quando o método show() for acionado.
18
+ */
19
+ floating: boolean;
20
+ /**
21
+ * Quando o usuário escolhe uma data, esse evento é emitido.
22
+ */
23
+ ezChange: EventEmitter<string>;
24
+ /**
25
+ * Usado no modo floating. Faz com que o componente seja exibido.
26
+ * É possível determinar ajustes de posicionamento através dos parâmetros
27
+ * top, left, bottom e right. Esses parâmetros devem ser informados como
28
+ * strings no formato css.
29
+ */
30
+ show(top?: string, left?: string, bottom?: string, right?: string): Promise<void>;
31
+ /**
32
+ * Usado no modo floating. Faz com que o componente seja ocultado.
33
+ */
34
+ hide(): Promise<void>;
35
+ valueChanged(): void;
36
+ private getMonthLabel;
37
+ private isSelectedDate;
38
+ private changeMonth;
39
+ private selectDate;
40
+ componentDidRender(): void;
41
+ render(): any;
42
+ }
@@ -1,32 +1,32 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzCheck {
3
- private _inputElem;
4
- valueChange: EventEmitter<string>;
5
- /**
6
- * Como se trata de um componente binário, o valor alterna entre true e false (marcado / desmarcado)
7
- */
8
- value: boolean;
9
- /**
10
- * Deixa o campo disponível ou não interagir com o usuário.
11
- */
12
- enabled: boolean;
13
- /**
14
- * Existem dois modos de visualização: regular e switch.
15
- * Se esta propriedade for omitida, o componete assume o formato "regular";
16
- * No modo "regular" a visualização é a tradicional de uma caixinha marcada/desmarcada.
17
- * No modo "switch" o campo tem uma interface em formato de um pino liga/desliga.
18
- */
19
- mode: string;
20
- adjustMode(): void;
21
- /**
22
- * Devolve o modo escolhido para o componente
23
- */
24
- getMode(): Promise<string>;
25
- /**
26
- * Faz o foco no componente de input
27
- */
28
- setFocus(): Promise<void>;
29
- componentDidLoad(): void;
30
- changeValue(): void;
31
- render(): any;
32
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzCheck {
3
+ private _inputElem;
4
+ valueChange: EventEmitter<string>;
5
+ /**
6
+ * Como se trata de um componente binário, o valor alterna entre true e false (marcado / desmarcado)
7
+ */
8
+ value: boolean;
9
+ /**
10
+ * Deixa o campo disponível ou não interagir com o usuário.
11
+ */
12
+ enabled: boolean;
13
+ /**
14
+ * Existem dois modos de visualização: regular e switch.
15
+ * Se esta propriedade for omitida, o componete assume o formato "regular";
16
+ * No modo "regular" a visualização é a tradicional de uma caixinha marcada/desmarcada.
17
+ * No modo "switch" o campo tem uma interface em formato de um pino liga/desliga.
18
+ */
19
+ mode: string;
20
+ adjustMode(): void;
21
+ /**
22
+ * Devolve o modo escolhido para o componente
23
+ */
24
+ getMode(): Promise<string>;
25
+ /**
26
+ * Faz o foco no componente de input
27
+ */
28
+ setFocus(): Promise<void>;
29
+ componentDidLoad(): void;
30
+ changeValue(): void;
31
+ render(): any;
32
+ }
@@ -1,18 +1,18 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzCollapsableBox {
3
- /**
4
- * Valor externalizado que garante a exibição ou não do componente
5
- */
6
- value: boolean;
7
- /**
8
- * Label é o título do campo
9
- */
10
- label: string;
11
- ezChange: EventEmitter<string>;
12
- observeValue(): void;
13
- /**
14
- * Esconde ou revela o conteúdo do componente
15
- */
16
- showHide(): Promise<void>;
17
- render(): any;
18
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzCollapsableBox {
3
+ /**
4
+ * Valor externalizado que garante a exibição ou não do componente
5
+ */
6
+ value: boolean;
7
+ /**
8
+ * Label é o título do campo
9
+ */
10
+ label: string;
11
+ ezChange: EventEmitter<string>;
12
+ observeValue(): void;
13
+ /**
14
+ * Esconde ou revela o conteúdo do componente
15
+ */
16
+ showHide(): Promise<void>;
17
+ render(): any;
18
+ }
@@ -1,4 +1,4 @@
1
- export interface OptionsCombobox {
2
- value: string;
3
- label: string;
4
- }
1
+ export interface OptionsCombobox {
2
+ value: string;
3
+ label: string;
4
+ }
@@ -1,68 +1,68 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- import { OptionsCombobox } from './ez-combo-box-interfaces';
3
- export declare class EzComboBox {
4
- private el;
5
- private _textInput;
6
- private _popover;
7
- private _inputLabelValue;
8
- private _criteria;
9
- private _preSelection;
10
- private _visibleOptions;
11
- /**
12
- * Valor associado ao componente. Este é o valor que o componente recebe ao selecionar uma opção do combobox.
13
- * Pode ser Label ou Value de acordo com a opção "labelasindex"
14
- * Caso seja atribuído um valor ao componente que não esteja na relação das options, este vai lançar msg de erro
15
- * (executo pala valor undefined)
16
- */
17
- value: string;
18
- /**
19
- * Label é o título do campo
20
- */
21
- label: string;
22
- /**
23
- * Deixa o campo disponível ou não para digitação.
24
- */
25
- enabled: boolean;
26
- /**
27
- * Ajusta a opção de mostrar o "value" para cada "label". Como default "value" não está presente (showvalue = false)
28
- */
29
- showvalue: boolean;
30
- /**
31
- /**
32
- * Array no formato "{value: string, label: string} que alimenta as opções do Combobox"
33
- */
34
- options: Array<OptionsCombobox>;
35
- /**
36
- * Quando há um problema de validação, serve como orientação ao usuário
37
- */
38
- errormessage: string;
39
- /**
40
- * Evento que é disparado ao alterar o value do componente
41
- */
42
- ezChange: EventEmitter<string>;
43
- /**
44
- * Faz o foco no componente de textarea
45
- */
46
- setFocus(): Promise<void>;
47
- /**
48
- * Remove o foco no componente de textarea
49
- */
50
- setBlur(): Promise<void>;
51
- updateValue(): void;
52
- setErrorMessage(): void;
53
- showOptions(): void;
54
- updateSelection(): void;
55
- selectOption(opt: OptionsCombobox): void;
56
- buildItem(opt: OptionsCombobox, index: number): any;
57
- highlightMatch(label: string): any;
58
- matchOptions(): void;
59
- filterOptions(): void;
60
- nextOption(): void;
61
- previousOption(): void;
62
- scrollToOption(opt: OptionsCombobox): void;
63
- selectCurrentOption(): void;
64
- keyDownHandler(event: KeyboardEvent): void;
65
- componentWillLoad(): void;
66
- componentDidLoad(): void;
67
- render(): any;
68
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { OptionsCombobox } from './ez-combo-box-interfaces';
3
+ export declare class EzComboBox {
4
+ private el;
5
+ private _textInput;
6
+ private _popover;
7
+ private _inputLabelValue;
8
+ private _criteria;
9
+ private _preSelection;
10
+ private _visibleOptions;
11
+ /**
12
+ * Valor associado ao componente. Este é o valor que o componente recebe ao selecionar uma opção do combobox.
13
+ * Pode ser Label ou Value de acordo com a opção "labelasindex"
14
+ * Caso seja atribuído um valor ao componente que não esteja na relação das options, este vai lançar msg de erro
15
+ * (executo pala valor undefined)
16
+ */
17
+ value: string;
18
+ /**
19
+ * Label é o título do campo
20
+ */
21
+ label: string;
22
+ /**
23
+ * Deixa o campo disponível ou não para digitação.
24
+ */
25
+ enabled: boolean;
26
+ /**
27
+ * Ajusta a opção de mostrar o "value" para cada "label". Como default "value" não está presente (showvalue = false)
28
+ */
29
+ showvalue: boolean;
30
+ /**
31
+ /**
32
+ * Array no formato "{value: string, label: string} que alimenta as opções do Combobox"
33
+ */
34
+ options: Array<OptionsCombobox>;
35
+ /**
36
+ * Quando há um problema de validação, serve como orientação ao usuário
37
+ */
38
+ errormessage: string;
39
+ /**
40
+ * Evento que é disparado ao alterar o value do componente
41
+ */
42
+ ezChange: EventEmitter<string>;
43
+ /**
44
+ * Faz o foco no componente de textarea
45
+ */
46
+ setFocus(): Promise<void>;
47
+ /**
48
+ * Remove o foco no componente de textarea
49
+ */
50
+ setBlur(): Promise<void>;
51
+ updateValue(): void;
52
+ setErrorMessage(): void;
53
+ showOptions(): void;
54
+ updateSelection(): void;
55
+ selectOption(opt: OptionsCombobox): void;
56
+ buildItem(opt: OptionsCombobox, index: number): any;
57
+ highlightMatch(label: string): any;
58
+ matchOptions(): void;
59
+ filterOptions(): void;
60
+ nextOption(): void;
61
+ previousOption(): void;
62
+ scrollToOption(opt: OptionsCombobox): void;
63
+ selectCurrentOption(): void;
64
+ keyDownHandler(event: KeyboardEvent): void;
65
+ componentWillLoad(): void;
66
+ componentDidLoad(): void;
67
+ render(): any;
68
+ }
@@ -1,31 +1,31 @@
1
- import { EventEmitter } from '../../stencil-public-runtime';
2
- export declare class EzDateInput {
3
- private _calendar;
4
- private _textInput;
5
- ezChange: EventEmitter<string>;
6
- /**
7
- * Label é o título do campo
8
- */
9
- label: string;
10
- /**
11
- * A data informada pelo usuário
12
- */
13
- value: Date;
14
- /**
15
- * Deixa o campo disponível ou não para uso.
16
- */
17
- enabled: boolean;
18
- /**
19
- * Quando há um problema de validação, serve como orientação ao usuário
20
- */
21
- errormessage: string;
22
- setLabel(): void;
23
- setErrorMessage(): void;
24
- applyValueToInput(): void;
25
- changeValue(newValue: Date): void;
26
- private showCalendar;
27
- private hideCalendar;
28
- private parseDate;
29
- private getTextValue;
30
- render(): any;
31
- }
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class EzDateInput {
3
+ private _calendar;
4
+ private _textInput;
5
+ ezChange: EventEmitter<string>;
6
+ /**
7
+ * Label é o título do campo
8
+ */
9
+ label: string;
10
+ /**
11
+ * A data informada pelo usuário
12
+ */
13
+ value: Date;
14
+ /**
15
+ * Deixa o campo disponível ou não para uso.
16
+ */
17
+ enabled: boolean;
18
+ /**
19
+ * Quando há um problema de validação, serve como orientação ao usuário
20
+ */
21
+ errormessage: string;
22
+ setLabel(): void;
23
+ setErrorMessage(): void;
24
+ applyValueToInput(): void;
25
+ changeValue(newValue: Date): void;
26
+ private showCalendar;
27
+ private hideCalendar;
28
+ private parseDate;
29
+ private getTextValue;
30
+ render(): any;
31
+ }
@@ -1,31 +1,26 @@
1
- import { Form } from './subcomponents/FormMetadata';
2
- import DataUnit, { Record, RecordsValidator, ValidationResult } from './subcomponents/DataUnit';
3
- export declare class EzForm implements RecordsValidator {
4
- metadataexecutor: string | Function;
5
- loadexecutor: string | Function;
6
- saveexecutor: string | Function;
7
- removeexecutor: string | Function;
8
- fieldsearchexecutor: string | Function;
9
- metadata: Array<Form>;
10
- slavemode: boolean;
11
- private _host;
12
- private _loadDataFunction;
13
- private _saveFunction;
14
- private _removeFunction;
15
- private _loadMetadataFunction;
16
- private _fieldSearchFunction;
17
- private _dataUnits;
18
- private _store;
19
- private _requiredFieldsByDU;
20
- validate(): Promise<boolean>;
21
- getChanges(): Promise<any[]>;
22
- validateRecords(dataUnit: DataUnit, records: Array<Record>): ValidationResult;
23
- componentWillRender(): void;
24
- private loadMDFromExecutor;
25
- private loadMDFromElement;
26
- private updateMetadata;
27
- private parseExecutor;
28
- componentDidLoad(): void;
29
- buildDataUnit(dataUnit: any): DataUnit;
30
- render(): any;
31
- }
1
+ import { Form } from './subcomponents/FormMetadata';
2
+ import DataUnit, { Record, RecordsValidator, ValidationResult } from './subcomponents/DataUnit';
3
+ export declare class EzForm implements RecordsValidator {
4
+ metadataexecutor: string | Function;
5
+ loadexecutor: string | Function;
6
+ saveexecutor: string | Function;
7
+ removeexecutor: string | Function;
8
+ fieldsearchexecutor: string | Function;
9
+ metadata: Array<Form>;
10
+ slavemode: boolean;
11
+ private _host;
12
+ private _dataUnits;
13
+ private _store;
14
+ private _requiredFieldsByDU;
15
+ validate(): Promise<boolean>;
16
+ getChanges(): Promise<any[]>;
17
+ validateRecords(dataUnit: DataUnit, records: Array<Record>): ValidationResult;
18
+ componentWillRender(): void;
19
+ private loadMDFromExecutor;
20
+ private loadMDFromElement;
21
+ private updateMetadata;
22
+ private parseExecutor;
23
+ componentDidLoad(): void;
24
+ buildDataUnit(dataUnit: any, parentDataUnit: DataUnit): DataUnit;
25
+ render(): any;
26
+ }
@@ -1,111 +1,111 @@
1
- export declare function changeFieldValue(dataUnit: any, recordId: any, fieldName: any, value: any): {
2
- type: string;
3
- payload: {
4
- dataUnit: any;
5
- recordId: any;
6
- fieldName: any;
7
- value: any;
8
- };
9
- };
10
- export declare function changeTab(formId: any, index: any): {
11
- type: string;
12
- payload: {
13
- formId: any;
14
- index: any;
15
- };
16
- };
17
- export declare function clearEdition(dataUnit: any, recordsLimit: any): {
18
- type: string;
19
- payload: {
20
- dataUnit: any;
21
- recordsLimit: any;
22
- };
23
- };
24
- export declare function collapseExpandGroup(collapseId: any, collapsed: any): {
25
- type: string;
26
- payload: {
27
- collapseId: any;
28
- collapsed: any;
29
- };
30
- };
31
- export declare function previousRecord(dataUnit: string): {
32
- type: string;
33
- payload: {
34
- dataUnit: string;
35
- limit: number;
36
- backward: boolean;
37
- };
38
- };
39
- export declare function nextRecord(dataUnit: string, limit: number): {
40
- type: string;
41
- payload: {
42
- dataUnit: string;
43
- limit: number;
44
- backward: boolean;
45
- };
46
- };
47
- export declare function insertRecord(dataUnit: string, insertionIndex: number): {
48
- type: string;
49
- payload: {
50
- dataUnit: string;
51
- insertionIndex: number;
52
- };
53
- };
54
- export declare function formLoad(): {
55
- type: string;
56
- };
57
- export declare function dataLoading(dataUnit: any): {
58
- type: string;
59
- payload: {
60
- dataUnit: any;
61
- };
62
- };
63
- export declare function savingChanges(dataUnit: any): {
64
- type: string;
65
- payload: {
66
- dataUnit: any;
67
- };
68
- };
69
- export declare function dataLoaded(dataUnit: any): {
70
- type: string;
71
- payload: {
72
- dataUnit: any;
73
- };
74
- };
75
- export declare function changesSaved(dataUnit: any): {
76
- type: string;
77
- payload: {
78
- dataUnit: any;
79
- };
80
- };
81
- export declare function removingRecord(dataUnit: any): {
82
- type: string;
83
- payload: {
84
- dataUnit: any;
85
- };
86
- };
87
- export declare function recordRemoved(dataUnit: any): {
88
- type: string;
89
- payload: {
90
- dataUnit: any;
91
- };
92
- };
93
- export declare function invalidField(tabController: any, tabIndex: any, dataUnit: any, recordIndex: any, recordId: any, fieldName: any, errorMessage: any): {
94
- type: string;
95
- payload: {
96
- tabController: any;
97
- tabIndex: any;
98
- dataUnit: any;
99
- recordId: any;
100
- recordIndex: any;
101
- fieldName: any;
102
- errorMessage: any;
103
- };
104
- };
105
- export declare function showHideNavigationButtons(buttonName: any, status: any): {
106
- type: string;
107
- payload: {
108
- buttonName: any;
109
- status: any;
110
- };
111
- };
1
+ export declare function changeFieldValue(dataUnit: any, recordId: any, fieldName: any, value: any): {
2
+ type: string;
3
+ payload: {
4
+ dataUnit: any;
5
+ recordId: any;
6
+ fieldName: any;
7
+ value: any;
8
+ };
9
+ };
10
+ export declare function changeTab(formId: any, index: any): {
11
+ type: string;
12
+ payload: {
13
+ formId: any;
14
+ index: any;
15
+ };
16
+ };
17
+ export declare function clearEdition(dataUnit: any, recordsLimit: any): {
18
+ type: string;
19
+ payload: {
20
+ dataUnit: any;
21
+ recordsLimit: any;
22
+ };
23
+ };
24
+ export declare function collapseExpandGroup(collapseId: any, collapsed: any): {
25
+ type: string;
26
+ payload: {
27
+ collapseId: any;
28
+ collapsed: any;
29
+ };
30
+ };
31
+ export declare function previousRecord(dataUnit: string): {
32
+ type: string;
33
+ payload: {
34
+ dataUnit: string;
35
+ limit: number;
36
+ backward: boolean;
37
+ };
38
+ };
39
+ export declare function nextRecord(dataUnit: string, limit: number): {
40
+ type: string;
41
+ payload: {
42
+ dataUnit: string;
43
+ limit: number;
44
+ backward: boolean;
45
+ };
46
+ };
47
+ export declare function insertRecord(dataUnit: string, insertionIndex: number): {
48
+ type: string;
49
+ payload: {
50
+ dataUnit: string;
51
+ insertionIndex: number;
52
+ };
53
+ };
54
+ export declare function formLoad(): {
55
+ type: string;
56
+ };
57
+ export declare function dataLoading(dataUnit: any): {
58
+ type: string;
59
+ payload: {
60
+ dataUnit: any;
61
+ };
62
+ };
63
+ export declare function savingChanges(dataUnit: any): {
64
+ type: string;
65
+ payload: {
66
+ dataUnit: any;
67
+ };
68
+ };
69
+ export declare function dataLoaded(dataUnit: any): {
70
+ type: string;
71
+ payload: {
72
+ dataUnit: any;
73
+ };
74
+ };
75
+ export declare function changesSaved(dataUnit: any): {
76
+ type: string;
77
+ payload: {
78
+ dataUnit: any;
79
+ };
80
+ };
81
+ export declare function removingRecord(dataUnit: any): {
82
+ type: string;
83
+ payload: {
84
+ dataUnit: any;
85
+ };
86
+ };
87
+ export declare function recordRemoved(dataUnit: any): {
88
+ type: string;
89
+ payload: {
90
+ dataUnit: any;
91
+ };
92
+ };
93
+ export declare function invalidField(tabController: any, tabIndex: any, dataUnit: any, recordIndex: any, recordId: any, fieldName: any, errorMessage: any): {
94
+ type: string;
95
+ payload: {
96
+ tabController: any;
97
+ tabIndex: any;
98
+ dataUnit: any;
99
+ recordId: any;
100
+ recordIndex: any;
101
+ fieldName: any;
102
+ errorMessage: any;
103
+ };
104
+ };
105
+ export declare function showHideNavigationButtons(buttonName: any, status: any): {
106
+ type: string;
107
+ payload: {
108
+ buttonName: any;
109
+ status: any;
110
+ };
111
+ };