@sankhyalabs/sankhyablocks 1.4.0-beta.7 → 1.4.0-beta.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.
- package/dist/cjs/{SnkMessageBuilder-b54dfb89.js → SnkMessageBuilder-6c2f7bcd.js} +87 -11
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/configurableElementsStorage-93459c72.js +20 -0
- package/dist/cjs/constants-9056ca9e.js +84 -0
- package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
- package/dist/cjs/form-config-fetcher-2de7c16a.js +6895 -0
- package/dist/cjs/{index-6fcf07f3.js → index-20e8b68a.js} +50 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +209 -6976
- package/dist/cjs/snk-config-modal.cjs.entry.js +62 -0
- package/dist/cjs/snk-config-options.cjs.entry.js +230 -0
- package/dist/cjs/{snk-filter-bar_5.cjs.entry.js → snk-configurator_6.cjs.entry.js} +194 -7
- package/dist/cjs/snk-crud.cjs.entry.js +13 -11
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-field-config_2.cjs.entry.js +135 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +3 -2
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +957 -0
- package/dist/cjs/snk-form.cjs.entry.js +146 -0
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-tab-config.cjs.entry.js +321 -0
- package/dist/cjs/{taskbar-elements-aedfeae6.js → taskbar-elements-9a4b1e19.js} +10 -6
- package/dist/cjs/taskbar-processor-6bd0d35c.js +47 -0
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +27 -1
- package/dist/collection/components/snk-application/snk-application.js +144 -23
- package/dist/collection/components/snk-configurator/snk-configurator.js +261 -0
- package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +16 -0
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +122 -0
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +137 -0
- package/dist/collection/components/snk-crud/snk-crud.js +15 -13
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +35 -4
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +3 -3
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +2 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -1
- package/dist/collection/components/snk-form/snk-form.css +4 -0
- package/dist/collection/components/snk-form/snk-form.js +108 -30
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +9 -0
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +315 -0
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +164 -0
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +140 -0
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +185 -0
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1062 -0
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +272 -0
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +476 -0
- package/dist/collection/components/snk-grid/snk-grid.js +92 -22
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -5
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +35 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +106 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +9 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +8 -1
- package/dist/collection/lib/message/resources/snk-configurator.msg.js +11 -0
- package/dist/collection/lib/message/resources/snk-form.msg.js +59 -2
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +1 -1
- package/dist/collection/lib/utils/constants.js +72 -0
- package/dist/components/SnkMessageBuilder.js +87 -11
- package/dist/components/_commonjsHelpers.js +17 -0
- package/dist/components/constants.js +74 -0
- package/dist/components/form-config-fetcher.js +6889 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +6 -0
- package/dist/components/snk-application2.js +221 -6985
- package/dist/components/snk-config-modal.d.ts +11 -0
- package/dist/components/snk-config-modal.js +6 -0
- package/dist/components/snk-config-modal2.js +91 -0
- package/dist/components/snk-config-options.d.ts +11 -0
- package/dist/components/snk-config-options.js +6 -0
- package/dist/components/snk-config-options2.js +245 -0
- package/dist/components/snk-configurator.d.ts +11 -0
- package/dist/components/snk-configurator.js +6 -0
- package/dist/components/snk-configurator2.js +212 -0
- package/dist/components/snk-crud.js +62 -25
- package/dist/components/snk-field-config.d.ts +11 -0
- package/dist/components/snk-field-config.js +6 -0
- package/dist/components/snk-field-config2.js +70 -0
- package/dist/components/snk-filter-bar2.js +1 -1
- package/dist/components/snk-filter-modal2.js +2 -1
- package/dist/components/snk-filter-personalized.js +4 -1
- package/dist/components/snk-form-config.d.ts +11 -0
- package/dist/components/snk-form-config.js +6 -0
- package/dist/components/snk-form-config2.js +996 -0
- package/dist/components/snk-form2.js +79 -29
- package/dist/components/snk-grid2.js +43 -24
- package/dist/components/snk-tab-config.d.ts +11 -0
- package/dist/components/snk-tab-config.js +6 -0
- package/dist/components/snk-tab-config2.js +7220 -0
- package/dist/components/snk-taskbar2.js +27 -9
- package/dist/esm/{SnkMessageBuilder-d440381c.js → SnkMessageBuilder-5792c260.js} +87 -11
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/configurableElementsStorage-cdc144b5.js +18 -0
- package/dist/esm/constants-c6039d3d.js +74 -0
- package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
- package/dist/esm/form-config-fetcher-96c6c2dc.js +6889 -0
- package/dist/esm/{index-81dda3cf.js → index-e4121713.js} +50 -3
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sankhyablocks.js +2 -2
- package/dist/esm/snk-application.entry.js +220 -6987
- package/dist/esm/snk-config-modal.entry.js +58 -0
- package/dist/esm/snk-config-options.entry.js +226 -0
- package/dist/esm/{snk-filter-bar_5.entry.js → snk-configurator_6.entry.js} +195 -9
- package/dist/esm/snk-crud.entry.js +13 -11
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-field-config_2.entry.js +130 -0
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +1 -1
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-filter-period.entry.js +1 -1
- package/dist/esm/snk-filter-personalized.entry.js +3 -2
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +953 -0
- package/dist/esm/snk-form.entry.js +142 -0
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-tab-config.entry.js +317 -0
- package/dist/esm/{taskbar-elements-38eb5d51.js → taskbar-elements-e2ed0536.js} +10 -6
- package/dist/esm/taskbar-processor-aa6772c9.js +45 -0
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-4574a955.entry.js → p-029ae4e4.entry.js} +1 -1
- package/dist/sankhyablocks/p-03f9c407.js +1 -0
- package/dist/sankhyablocks/p-112455b1.js +1 -0
- package/dist/sankhyablocks/p-12ad2a19.entry.js +1 -0
- package/dist/sankhyablocks/p-1feabfc7.entry.js +1 -0
- package/dist/sankhyablocks/p-21c8929b.js +1 -0
- package/dist/sankhyablocks/p-2284c850.entry.js +1 -0
- package/dist/sankhyablocks/p-2b891c4a.entry.js +1 -0
- package/dist/sankhyablocks/{p-0ea25487.entry.js → p-2dc76d79.entry.js} +1 -1
- package/dist/sankhyablocks/p-361299e8.js +26 -0
- package/dist/sankhyablocks/p-366aa0f5.entry.js +1 -0
- package/dist/sankhyablocks/p-36d2d9cf.entry.js +75 -0
- package/dist/sankhyablocks/{p-6386d720.entry.js → p-3a276f3d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0352c0e2.entry.js → p-44ce5b90.entry.js} +1 -1
- package/dist/sankhyablocks/{p-aecf3e0a.entry.js → p-6988f4a6.entry.js} +1 -1
- package/dist/sankhyablocks/p-776ff4d1.entry.js +1 -0
- package/dist/sankhyablocks/p-7b4a4a50.entry.js +1 -0
- package/dist/sankhyablocks/p-9ba3df4c.js +2 -0
- package/dist/sankhyablocks/{p-40b27004.entry.js → p-9dc4426d.entry.js} +1 -1
- package/dist/sankhyablocks/p-a17a4fca.entry.js +1 -0
- package/dist/sankhyablocks/p-a5b26df2.js +1 -0
- package/dist/sankhyablocks/p-b6d6b172.js +1 -0
- package/dist/sankhyablocks/{p-5bdb8452.entry.js → p-cc4bef9f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2e49afef.entry.js → p-d1ac09c9.entry.js} +1 -1
- package/dist/sankhyablocks/p-d50651a3.js +1 -0
- package/dist/sankhyablocks/p-d9fbb26f.js +1 -0
- package/dist/sankhyablocks/{p-49580cdd.entry.js → p-deb1f523.entry.js} +1 -1
- package/dist/sankhyablocks/p-e871aa92.entry.js +1 -0
- package/dist/sankhyablocks/{p-ba426ea9.entry.js → p-e9beab79.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +29 -14
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +46 -0
- package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +8 -0
- package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +38 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +50 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +92 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +8 -6
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +3 -3
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +40 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +65 -0
- package/dist/types/components/snk-form/snk-form.d.ts +71 -0
- package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +51 -0
- package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +32 -0
- package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +139 -0
- package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +97 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +59 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +6 -5
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -3
- package/dist/types/components.d.ts +358 -13
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +21 -3
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-form.msg.d.ts +5 -2
- package/dist/types/lib/utils/constants.d.ts +76 -0
- package/dist/types/lib/utils/pesquisa.d.ts +2 -1
- package/package.json +4 -3
- package/react/components.d.ts +6 -0
- package/react/components.js +6 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +0 -247
- package/dist/esm/snk-form_2.entry.js +0 -242
- package/dist/sankhyablocks/p-21e940aa.entry.js +0 -1
- package/dist/sankhyablocks/p-2eea7eea.js +0 -1
- package/dist/sankhyablocks/p-42036db1.entry.js +0 -84
- package/dist/sankhyablocks/p-77216252.entry.js +0 -1
- package/dist/sankhyablocks/p-86f15ffe.js +0 -1
- package/dist/sankhyablocks/p-97009a2c.entry.js +0 -1
- package/dist/sankhyablocks/p-a14c49db.entry.js +0 -1
- package/dist/sankhyablocks/p-fac2b6a9.js +0 -2
|
@@ -9,17 +9,20 @@ import { SnkMessageBuilder } from "./lib/message/SnkMessageBuilder";
|
|
|
9
9
|
import { AutorizationType } from "./lib/http/data-fetcher/fetchers/auth-fetcher";
|
|
10
10
|
import { DataUnit, Filter } from "@sankhyalabs/core";
|
|
11
11
|
import { DialogType, MessageOptions } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
12
|
-
import {
|
|
12
|
+
import { IFieldConfig, IFormConfig, IRecordValidator } from "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form";
|
|
13
13
|
import { IGridConfig, IStatusResolver } from "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController";
|
|
14
|
+
import { IUserConfig } from "./lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
14
15
|
import { SnkFilterItemConfig } from "./components/snk-filter-bar/filter-item/snk-filter-item";
|
|
15
|
-
import {
|
|
16
|
+
import { IOption, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
|
16
17
|
import { SearchCriteria } from "./lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
|
18
|
+
import { IConfigModal } from "./components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal";
|
|
17
19
|
import { Action, TaskbarManager } from "./components/snk-taskbar/snk-taskbar";
|
|
18
20
|
import { DataState } from "./components/snk-data-unit/snk-data-unit";
|
|
19
21
|
import { SnkFilterItemConfig as SnkFilterItemConfig1 } from "./components/snk-filter-bar/filter-item/snk-filter-item";
|
|
20
22
|
import { ListItem } from "./components/snk-filter-bar/filter-list/snk-filter-list";
|
|
21
23
|
import { ModalItem } from "./components/snk-filter-bar/filter-modal/snk-filter-modal";
|
|
22
24
|
import { ModalAction } from "@sankhyalabs/ezui/dist/collection/components/ez-modal-container";
|
|
25
|
+
import { ITab } from "./components/snk-form/subcomponents/snk-tab-config/snk-tab-config";
|
|
23
26
|
import { Action as Action1, CustomButton } from "./components/snk-taskbar/snk-taskbar";
|
|
24
27
|
export namespace Components {
|
|
25
28
|
interface SnkApplication {
|
|
@@ -48,8 +51,20 @@ export namespace Components {
|
|
|
48
51
|
* Mostra o diálogo de erro de acordo com os parâmetros passados.
|
|
49
52
|
*/
|
|
50
53
|
"error": (title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>;
|
|
51
|
-
"executePreparedSearch": (mode: string, argument: string, options: any) => Promise<Array<
|
|
52
|
-
"executeSearch": (searchArgument:
|
|
54
|
+
"executePreparedSearch": (mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>;
|
|
55
|
+
"executeSearch": (searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit) => Promise<Array<IOption> | IOption>;
|
|
56
|
+
/**
|
|
57
|
+
* Busca a configuração padrão de formulário.
|
|
58
|
+
*/
|
|
59
|
+
"fetchDefaultConfig": (name: string) => Promise<IFormConfig>;
|
|
60
|
+
/**
|
|
61
|
+
* Busca a configuração de formulário do usuário.
|
|
62
|
+
*/
|
|
63
|
+
"fetchLegacyConfig": (name: string) => Promise<IFormConfig>;
|
|
64
|
+
/**
|
|
65
|
+
* Busca lista de configurações de formulário do usuário.
|
|
66
|
+
*/
|
|
67
|
+
"fetchUserAvailableConfigs": (name: string) => Promise<Array<IUserConfig>>;
|
|
53
68
|
/**
|
|
54
69
|
* Retorna todos os acessos do usuário logado.
|
|
55
70
|
*/
|
|
@@ -110,7 +125,7 @@ export namespace Components {
|
|
|
110
125
|
/**
|
|
111
126
|
* Busca a configuração de formulário.
|
|
112
127
|
*/
|
|
113
|
-
"loadFormConfig": (name: string) => Promise<
|
|
128
|
+
"loadFormConfig": (name: string) => Promise<IFormConfig>;
|
|
114
129
|
/**
|
|
115
130
|
* Busca a configuração de grade.
|
|
116
131
|
*/
|
|
@@ -139,6 +154,10 @@ export namespace Components {
|
|
|
139
154
|
* Salva as configurações da barra de filtros
|
|
140
155
|
*/
|
|
141
156
|
"saveFilterBarConfig": (config: Array<SnkFilterItemConfig>, name: string) => Promise<boolean>;
|
|
157
|
+
/**
|
|
158
|
+
* Salva a configuração de formulário.
|
|
159
|
+
*/
|
|
160
|
+
"saveFormConfig": (config: IFormConfig, name: string) => Promise<boolean>;
|
|
142
161
|
/**
|
|
143
162
|
* Salva a configuração de grade.
|
|
144
163
|
*/
|
|
@@ -157,6 +176,44 @@ export namespace Components {
|
|
|
157
176
|
*/
|
|
158
177
|
"temOpcional": (opcional: string) => Promise<boolean>;
|
|
159
178
|
}
|
|
179
|
+
interface SnkConfigModal {
|
|
180
|
+
/**
|
|
181
|
+
* Nome usado para guardar/recuperar as configurações do formulário
|
|
182
|
+
*/
|
|
183
|
+
"configName": string;
|
|
184
|
+
/**
|
|
185
|
+
* Define se o modo grid está ativo.
|
|
186
|
+
*/
|
|
187
|
+
"gridMode": boolean;
|
|
188
|
+
}
|
|
189
|
+
interface SnkConfigOptions {
|
|
190
|
+
/**
|
|
191
|
+
* Repositório de dados responsável por controlar a manipulação dos dados
|
|
192
|
+
*/
|
|
193
|
+
"dataUnit": DataUnit;
|
|
194
|
+
/**
|
|
195
|
+
* Armazena as propriedades do campo
|
|
196
|
+
*/
|
|
197
|
+
"fieldConfig": IFieldConfig;
|
|
198
|
+
/**
|
|
199
|
+
* Armazena a chave de opções de configuração
|
|
200
|
+
*/
|
|
201
|
+
"idConfig": string;
|
|
202
|
+
}
|
|
203
|
+
interface SnkConfigurator {
|
|
204
|
+
/**
|
|
205
|
+
* Nome usado para guardar/recuperar as configurações do formulário
|
|
206
|
+
*/
|
|
207
|
+
"configName": string;
|
|
208
|
+
/**
|
|
209
|
+
* Define se o campo está habilitado.
|
|
210
|
+
*/
|
|
211
|
+
"enabled": boolean;
|
|
212
|
+
/**
|
|
213
|
+
* Nome do componente que será vinculado ao `data-configurator-parent` para controlar o modal de configurações.
|
|
214
|
+
*/
|
|
215
|
+
"name": string;
|
|
216
|
+
}
|
|
160
217
|
interface SnkCrud {
|
|
161
218
|
/**
|
|
162
219
|
* Ações a serem colocadas no botão "Mais opções".
|
|
@@ -173,7 +230,7 @@ export namespace Components {
|
|
|
173
230
|
/**
|
|
174
231
|
* Validador responsável por checar a integridade das informações do registro
|
|
175
232
|
*/
|
|
176
|
-
"recordsValidator":
|
|
233
|
+
"recordsValidator": IRecordValidator;
|
|
177
234
|
/**
|
|
178
235
|
* Configuração do valor da coluna de status. Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
|
|
179
236
|
*/
|
|
@@ -218,6 +275,20 @@ export namespace Components {
|
|
|
218
275
|
*/
|
|
219
276
|
"pageSize": number;
|
|
220
277
|
}
|
|
278
|
+
interface SnkFieldConfig {
|
|
279
|
+
/**
|
|
280
|
+
* Armazena as propriedades do campo
|
|
281
|
+
*/
|
|
282
|
+
"fieldConfig": IFieldConfig;
|
|
283
|
+
/**
|
|
284
|
+
* Define se o popover de configuração está ativo.
|
|
285
|
+
*/
|
|
286
|
+
"isConfigActive": Boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Define se o componente está em modo de inserção
|
|
289
|
+
*/
|
|
290
|
+
"modeInsertion": boolean;
|
|
291
|
+
}
|
|
221
292
|
interface SnkFilterBar {
|
|
222
293
|
/**
|
|
223
294
|
* Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade serve para separar a configuração de cada uma.
|
|
@@ -286,13 +357,15 @@ export namespace Components {
|
|
|
286
357
|
}
|
|
287
358
|
interface SnkFilterPersonalized {
|
|
288
359
|
"config": SnkFilterItemConfig;
|
|
360
|
+
"fix": ()=>void;
|
|
289
361
|
"show": () => Promise<void>;
|
|
290
|
-
"
|
|
362
|
+
"unfix": ()=>void;
|
|
363
|
+
"value": Array<IOption|boolean|string|number|Date>;
|
|
291
364
|
}
|
|
292
365
|
interface SnkFilterSearch {
|
|
293
366
|
"config": SnkFilterItemConfig;
|
|
294
367
|
"show": () => Promise<void>;
|
|
295
|
-
"value":
|
|
368
|
+
"value": IOption;
|
|
296
369
|
}
|
|
297
370
|
interface SnkFilterText {
|
|
298
371
|
"config": SnkFilterItemConfig;
|
|
@@ -310,12 +383,34 @@ export namespace Components {
|
|
|
310
383
|
/**
|
|
311
384
|
* Validador responsável por checar a integridade das informações do registro
|
|
312
385
|
*/
|
|
313
|
-
"recordsValidator":
|
|
386
|
+
"recordsValidator": IRecordValidator;
|
|
387
|
+
/**
|
|
388
|
+
* Método responsável por setar as configurações do form.
|
|
389
|
+
*/
|
|
390
|
+
"setConfig": (config: IFormConfig) => Promise<void>;
|
|
391
|
+
/**
|
|
392
|
+
* Método responsável em abrir ou fechar o modal de configurações do form.
|
|
393
|
+
*/
|
|
394
|
+
"setShowFormConfig": (value: boolean) => Promise<void>;
|
|
314
395
|
/**
|
|
315
396
|
* Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões.
|
|
316
397
|
*/
|
|
317
398
|
"taskbarManager": TaskbarManager;
|
|
318
399
|
}
|
|
400
|
+
interface SnkFormConfig {
|
|
401
|
+
/**
|
|
402
|
+
* Repositório de dados, controla a manipulação dos dados
|
|
403
|
+
*/
|
|
404
|
+
"dataUnit": DataUnit;
|
|
405
|
+
/**
|
|
406
|
+
* Campos de configuração de formulário.
|
|
407
|
+
*/
|
|
408
|
+
"formConfig": IFormConfig;
|
|
409
|
+
/**
|
|
410
|
+
* Representa o elemento pai do componente.
|
|
411
|
+
*/
|
|
412
|
+
"parentForm": HTMLSnkFormElement;
|
|
413
|
+
}
|
|
319
414
|
interface SnkGrid {
|
|
320
415
|
/**
|
|
321
416
|
* Lista de ações que devem ser usadas no botão "Mais opções"
|
|
@@ -325,6 +420,14 @@ export namespace Components {
|
|
|
325
420
|
* Nome usado para salvar/recuperar a configuração
|
|
326
421
|
*/
|
|
327
422
|
"configName": string;
|
|
423
|
+
/**
|
|
424
|
+
* Método responsável por setar as configurações da grade.
|
|
425
|
+
*/
|
|
426
|
+
"setConfig": (config: IGridConfig) => Promise<void>;
|
|
427
|
+
/**
|
|
428
|
+
* Método responsável em abrir ou fechar o modal de configurações da grade.
|
|
429
|
+
*/
|
|
430
|
+
"setShowGridConfig": (value: boolean) => Promise<void>;
|
|
328
431
|
/**
|
|
329
432
|
* Configuração do valor da coluna de status. Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
|
|
330
433
|
*/
|
|
@@ -339,6 +442,20 @@ export namespace Components {
|
|
|
339
442
|
"searchLoader": Function;
|
|
340
443
|
"selectItem": Function;
|
|
341
444
|
}
|
|
445
|
+
interface SnkTabConfig {
|
|
446
|
+
/**
|
|
447
|
+
* Define o index da aba selecionada.
|
|
448
|
+
*/
|
|
449
|
+
"selectedIndex": number;
|
|
450
|
+
/**
|
|
451
|
+
* Define a aba selecionada.
|
|
452
|
+
*/
|
|
453
|
+
"selectedTab": string;
|
|
454
|
+
/**
|
|
455
|
+
* Define o nome das abas do componente, separadas por vírgulas ",".
|
|
456
|
+
*/
|
|
457
|
+
"tabs": string;
|
|
458
|
+
}
|
|
342
459
|
interface SnkTaskbar {
|
|
343
460
|
/**
|
|
344
461
|
* Lista de ações que devem ser usadas no botão "Mais opções"
|
|
@@ -348,6 +465,10 @@ export namespace Components {
|
|
|
348
465
|
* Lista separada por virgula, contendo todos os elementos a serem criados
|
|
349
466
|
*/
|
|
350
467
|
"buttons": string;
|
|
468
|
+
/**
|
|
469
|
+
* Nome usado para guardar/recuperar as configurações do formulário
|
|
470
|
+
*/
|
|
471
|
+
"configName": string;
|
|
351
472
|
/**
|
|
352
473
|
* Mapa com definição de botões personalizados. A chave do mapa deve ser passada na lista "buttons" no lugar onde o botão irá aparecer.
|
|
353
474
|
*/
|
|
@@ -372,6 +493,18 @@ export interface SnkApplicationCustomEvent<T> extends CustomEvent<T> {
|
|
|
372
493
|
detail: T;
|
|
373
494
|
target: HTMLSnkApplicationElement;
|
|
374
495
|
}
|
|
496
|
+
export interface SnkConfigModalCustomEvent<T> extends CustomEvent<T> {
|
|
497
|
+
detail: T;
|
|
498
|
+
target: HTMLSnkConfigModalElement;
|
|
499
|
+
}
|
|
500
|
+
export interface SnkConfigOptionsCustomEvent<T> extends CustomEvent<T> {
|
|
501
|
+
detail: T;
|
|
502
|
+
target: HTMLSnkConfigOptionsElement;
|
|
503
|
+
}
|
|
504
|
+
export interface SnkConfiguratorCustomEvent<T> extends CustomEvent<T> {
|
|
505
|
+
detail: T;
|
|
506
|
+
target: HTMLSnkConfiguratorElement;
|
|
507
|
+
}
|
|
375
508
|
export interface SnkCrudCustomEvent<T> extends CustomEvent<T> {
|
|
376
509
|
detail: T;
|
|
377
510
|
target: HTMLSnkCrudElement;
|
|
@@ -380,6 +513,10 @@ export interface SnkDataUnitCustomEvent<T> extends CustomEvent<T> {
|
|
|
380
513
|
detail: T;
|
|
381
514
|
target: HTMLSnkDataUnitElement;
|
|
382
515
|
}
|
|
516
|
+
export interface SnkFieldConfigCustomEvent<T> extends CustomEvent<T> {
|
|
517
|
+
detail: T;
|
|
518
|
+
target: HTMLSnkFieldConfigElement;
|
|
519
|
+
}
|
|
383
520
|
export interface SnkFilterDetailCustomEvent<T> extends CustomEvent<T> {
|
|
384
521
|
detail: T;
|
|
385
522
|
target: HTMLSnkFilterDetailElement;
|
|
@@ -396,10 +533,18 @@ export interface SnkFormCustomEvent<T> extends CustomEvent<T> {
|
|
|
396
533
|
detail: T;
|
|
397
534
|
target: HTMLSnkFormElement;
|
|
398
535
|
}
|
|
536
|
+
export interface SnkFormConfigCustomEvent<T> extends CustomEvent<T> {
|
|
537
|
+
detail: T;
|
|
538
|
+
target: HTMLSnkFormConfigElement;
|
|
539
|
+
}
|
|
399
540
|
export interface SnkGridCustomEvent<T> extends CustomEvent<T> {
|
|
400
541
|
detail: T;
|
|
401
542
|
target: HTMLSnkGridElement;
|
|
402
543
|
}
|
|
544
|
+
export interface SnkTabConfigCustomEvent<T> extends CustomEvent<T> {
|
|
545
|
+
detail: T;
|
|
546
|
+
target: HTMLSnkTabConfigElement;
|
|
547
|
+
}
|
|
403
548
|
export interface SnkTaskbarCustomEvent<T> extends CustomEvent<T> {
|
|
404
549
|
detail: T;
|
|
405
550
|
target: HTMLSnkTaskbarElement;
|
|
@@ -411,6 +556,24 @@ declare global {
|
|
|
411
556
|
prototype: HTMLSnkApplicationElement;
|
|
412
557
|
new (): HTMLSnkApplicationElement;
|
|
413
558
|
};
|
|
559
|
+
interface HTMLSnkConfigModalElement extends Components.SnkConfigModal, HTMLStencilElement {
|
|
560
|
+
}
|
|
561
|
+
var HTMLSnkConfigModalElement: {
|
|
562
|
+
prototype: HTMLSnkConfigModalElement;
|
|
563
|
+
new (): HTMLSnkConfigModalElement;
|
|
564
|
+
};
|
|
565
|
+
interface HTMLSnkConfigOptionsElement extends Components.SnkConfigOptions, HTMLStencilElement {
|
|
566
|
+
}
|
|
567
|
+
var HTMLSnkConfigOptionsElement: {
|
|
568
|
+
prototype: HTMLSnkConfigOptionsElement;
|
|
569
|
+
new (): HTMLSnkConfigOptionsElement;
|
|
570
|
+
};
|
|
571
|
+
interface HTMLSnkConfiguratorElement extends Components.SnkConfigurator, HTMLStencilElement {
|
|
572
|
+
}
|
|
573
|
+
var HTMLSnkConfiguratorElement: {
|
|
574
|
+
prototype: HTMLSnkConfiguratorElement;
|
|
575
|
+
new (): HTMLSnkConfiguratorElement;
|
|
576
|
+
};
|
|
414
577
|
interface HTMLSnkCrudElement extends Components.SnkCrud, HTMLStencilElement {
|
|
415
578
|
}
|
|
416
579
|
var HTMLSnkCrudElement: {
|
|
@@ -423,6 +586,12 @@ declare global {
|
|
|
423
586
|
prototype: HTMLSnkDataUnitElement;
|
|
424
587
|
new (): HTMLSnkDataUnitElement;
|
|
425
588
|
};
|
|
589
|
+
interface HTMLSnkFieldConfigElement extends Components.SnkFieldConfig, HTMLStencilElement {
|
|
590
|
+
}
|
|
591
|
+
var HTMLSnkFieldConfigElement: {
|
|
592
|
+
prototype: HTMLSnkFieldConfigElement;
|
|
593
|
+
new (): HTMLSnkFieldConfigElement;
|
|
594
|
+
};
|
|
426
595
|
interface HTMLSnkFilterBarElement extends Components.SnkFilterBar, HTMLStencilElement {
|
|
427
596
|
}
|
|
428
597
|
var HTMLSnkFilterBarElement: {
|
|
@@ -501,6 +670,12 @@ declare global {
|
|
|
501
670
|
prototype: HTMLSnkFormElement;
|
|
502
671
|
new (): HTMLSnkFormElement;
|
|
503
672
|
};
|
|
673
|
+
interface HTMLSnkFormConfigElement extends Components.SnkFormConfig, HTMLStencilElement {
|
|
674
|
+
}
|
|
675
|
+
var HTMLSnkFormConfigElement: {
|
|
676
|
+
prototype: HTMLSnkFormConfigElement;
|
|
677
|
+
new (): HTMLSnkFormConfigElement;
|
|
678
|
+
};
|
|
504
679
|
interface HTMLSnkGridElement extends Components.SnkGrid, HTMLStencilElement {
|
|
505
680
|
}
|
|
506
681
|
var HTMLSnkGridElement: {
|
|
@@ -513,6 +688,12 @@ declare global {
|
|
|
513
688
|
prototype: HTMLSnkPesquisaElement;
|
|
514
689
|
new (): HTMLSnkPesquisaElement;
|
|
515
690
|
};
|
|
691
|
+
interface HTMLSnkTabConfigElement extends Components.SnkTabConfig, HTMLStencilElement {
|
|
692
|
+
}
|
|
693
|
+
var HTMLSnkTabConfigElement: {
|
|
694
|
+
prototype: HTMLSnkTabConfigElement;
|
|
695
|
+
new (): HTMLSnkTabConfigElement;
|
|
696
|
+
};
|
|
516
697
|
interface HTMLSnkTaskbarElement extends Components.SnkTaskbar, HTMLStencilElement {
|
|
517
698
|
}
|
|
518
699
|
var HTMLSnkTaskbarElement: {
|
|
@@ -527,8 +708,12 @@ declare global {
|
|
|
527
708
|
};
|
|
528
709
|
interface HTMLElementTagNameMap {
|
|
529
710
|
"snk-application": HTMLSnkApplicationElement;
|
|
711
|
+
"snk-config-modal": HTMLSnkConfigModalElement;
|
|
712
|
+
"snk-config-options": HTMLSnkConfigOptionsElement;
|
|
713
|
+
"snk-configurator": HTMLSnkConfiguratorElement;
|
|
530
714
|
"snk-crud": HTMLSnkCrudElement;
|
|
531
715
|
"snk-data-unit": HTMLSnkDataUnitElement;
|
|
716
|
+
"snk-field-config": HTMLSnkFieldConfigElement;
|
|
532
717
|
"snk-filter-bar": HTMLSnkFilterBarElement;
|
|
533
718
|
"snk-filter-binary-select": HTMLSnkFilterBinarySelectElement;
|
|
534
719
|
"snk-filter-detail": HTMLSnkFilterDetailElement;
|
|
@@ -542,8 +727,10 @@ declare global {
|
|
|
542
727
|
"snk-filter-search": HTMLSnkFilterSearchElement;
|
|
543
728
|
"snk-filter-text": HTMLSnkFilterTextElement;
|
|
544
729
|
"snk-form": HTMLSnkFormElement;
|
|
730
|
+
"snk-form-config": HTMLSnkFormConfigElement;
|
|
545
731
|
"snk-grid": HTMLSnkGridElement;
|
|
546
732
|
"snk-pesquisa": HTMLSnkPesquisaElement;
|
|
733
|
+
"snk-tab-config": HTMLSnkTabConfigElement;
|
|
547
734
|
"snk-taskbar": HTMLSnkTaskbarElement;
|
|
548
735
|
"teste-pesquisa": HTMLTestePesquisaElement;
|
|
549
736
|
}
|
|
@@ -567,6 +754,60 @@ declare namespace LocalJSX {
|
|
|
567
754
|
*/
|
|
568
755
|
"onApplicationLoading"?: (event: SnkApplicationCustomEvent<boolean>) => void;
|
|
569
756
|
}
|
|
757
|
+
interface SnkConfigModal {
|
|
758
|
+
/**
|
|
759
|
+
* Nome usado para guardar/recuperar as configurações do formulário
|
|
760
|
+
*/
|
|
761
|
+
"configName"?: string;
|
|
762
|
+
/**
|
|
763
|
+
* Define se o modo grid está ativo.
|
|
764
|
+
*/
|
|
765
|
+
"gridMode"?: boolean;
|
|
766
|
+
/**
|
|
767
|
+
* Evento disparado quando o modal é fechado.
|
|
768
|
+
*/
|
|
769
|
+
"onCancelConfig"?: (event: SnkConfigModalCustomEvent<void>) => void;
|
|
770
|
+
/**
|
|
771
|
+
* Evento disparado quando há alteração nas configurações.
|
|
772
|
+
*/
|
|
773
|
+
"onChangeConfig"?: (event: SnkConfigModalCustomEvent<IConfigModal>) => void;
|
|
774
|
+
}
|
|
775
|
+
interface SnkConfigOptions {
|
|
776
|
+
/**
|
|
777
|
+
* Repositório de dados responsável por controlar a manipulação dos dados
|
|
778
|
+
*/
|
|
779
|
+
"dataUnit"?: DataUnit;
|
|
780
|
+
/**
|
|
781
|
+
* Armazena as propriedades do campo
|
|
782
|
+
*/
|
|
783
|
+
"fieldConfig"?: IFieldConfig;
|
|
784
|
+
/**
|
|
785
|
+
* Armazena a chave de opções de configuração
|
|
786
|
+
*/
|
|
787
|
+
"idConfig"?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Evento disparado ao realizar alguma alteração nos campos
|
|
790
|
+
*/
|
|
791
|
+
"onConfigOptionsChanged"?: (event: SnkConfigOptionsCustomEvent<any>) => void;
|
|
792
|
+
}
|
|
793
|
+
interface SnkConfigurator {
|
|
794
|
+
/**
|
|
795
|
+
* Nome usado para guardar/recuperar as configurações do formulário
|
|
796
|
+
*/
|
|
797
|
+
"configName"?: string;
|
|
798
|
+
/**
|
|
799
|
+
* Define se o campo está habilitado.
|
|
800
|
+
*/
|
|
801
|
+
"enabled"?: boolean;
|
|
802
|
+
/**
|
|
803
|
+
* Nome do componente que será vinculado ao `data-configurator-parent` para controlar o modal de configurações.
|
|
804
|
+
*/
|
|
805
|
+
"name"?: string;
|
|
806
|
+
/**
|
|
807
|
+
* Evento disparado quando há alteração no modo de visualização.
|
|
808
|
+
*/
|
|
809
|
+
"onChangeViewMode"?: (event: SnkConfiguratorCustomEvent<string>) => void;
|
|
810
|
+
}
|
|
570
811
|
interface SnkCrud {
|
|
571
812
|
/**
|
|
572
813
|
* Ações a serem colocadas no botão "Mais opções".
|
|
@@ -583,7 +824,7 @@ declare namespace LocalJSX {
|
|
|
583
824
|
/**
|
|
584
825
|
* Validador responsável por checar a integridade das informações do registro
|
|
585
826
|
*/
|
|
586
|
-
"recordsValidator"?:
|
|
827
|
+
"recordsValidator"?: IRecordValidator;
|
|
587
828
|
/**
|
|
588
829
|
* Configuração do valor da coluna de status. Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
|
|
589
830
|
*/
|
|
@@ -639,6 +880,24 @@ declare namespace LocalJSX {
|
|
|
639
880
|
*/
|
|
640
881
|
"pageSize"?: number;
|
|
641
882
|
}
|
|
883
|
+
interface SnkFieldConfig {
|
|
884
|
+
/**
|
|
885
|
+
* Armazena as propriedades do campo
|
|
886
|
+
*/
|
|
887
|
+
"fieldConfig"?: IFieldConfig;
|
|
888
|
+
/**
|
|
889
|
+
* Define se o popover de configuração está ativo.
|
|
890
|
+
*/
|
|
891
|
+
"isConfigActive"?: Boolean;
|
|
892
|
+
/**
|
|
893
|
+
* Define se o componente está em modo de inserção
|
|
894
|
+
*/
|
|
895
|
+
"modeInsertion"?: boolean;
|
|
896
|
+
/**
|
|
897
|
+
* Evento disparado ao pressionar button icon(onEzClickIcon)
|
|
898
|
+
*/
|
|
899
|
+
"onEzClickIcon"?: (event: SnkFieldConfigCustomEvent<Object>) => void;
|
|
900
|
+
}
|
|
642
901
|
interface SnkFilterBar {
|
|
643
902
|
/**
|
|
644
903
|
* Eventualmente poderemos ter mais de uma barra de filtros. Essa propriedade serve para separar a configuração de cada uma.
|
|
@@ -702,11 +961,13 @@ declare namespace LocalJSX {
|
|
|
702
961
|
}
|
|
703
962
|
interface SnkFilterPersonalized {
|
|
704
963
|
"config"?: SnkFilterItemConfig;
|
|
705
|
-
"
|
|
964
|
+
"fix"?: ()=>void;
|
|
965
|
+
"unfix"?: ()=>void;
|
|
966
|
+
"value"?: Array<IOption|boolean|string|number|Date>;
|
|
706
967
|
}
|
|
707
968
|
interface SnkFilterSearch {
|
|
708
969
|
"config"?: SnkFilterItemConfig;
|
|
709
|
-
"value"?:
|
|
970
|
+
"value"?: IOption;
|
|
710
971
|
}
|
|
711
972
|
interface SnkFilterText {
|
|
712
973
|
"config"?: SnkFilterItemConfig;
|
|
@@ -725,6 +986,10 @@ declare namespace LocalJSX {
|
|
|
725
986
|
* Emitido sempre que houver click de botão ou ação
|
|
726
987
|
*/
|
|
727
988
|
"onActionClick"?: (event: SnkFormCustomEvent<string>) => void;
|
|
989
|
+
/**
|
|
990
|
+
* Evento disparado quando as configurações são alteradas.
|
|
991
|
+
*/
|
|
992
|
+
"onConfigChanged"?: (event: SnkFormCustomEvent<IFormConfig>) => void;
|
|
728
993
|
/**
|
|
729
994
|
* Emitido quando o botão de voltar é acionado
|
|
730
995
|
*/
|
|
@@ -732,12 +997,30 @@ declare namespace LocalJSX {
|
|
|
732
997
|
/**
|
|
733
998
|
* Validador responsável por checar a integridade das informações do registro
|
|
734
999
|
*/
|
|
735
|
-
"recordsValidator"?:
|
|
1000
|
+
"recordsValidator"?: IRecordValidator;
|
|
736
1001
|
/**
|
|
737
1002
|
* Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões.
|
|
738
1003
|
*/
|
|
739
1004
|
"taskbarManager"?: TaskbarManager;
|
|
740
1005
|
}
|
|
1006
|
+
interface SnkFormConfig {
|
|
1007
|
+
/**
|
|
1008
|
+
* Repositório de dados, controla a manipulação dos dados
|
|
1009
|
+
*/
|
|
1010
|
+
"dataUnit"?: DataUnit;
|
|
1011
|
+
/**
|
|
1012
|
+
* Campos de configuração de formulário.
|
|
1013
|
+
*/
|
|
1014
|
+
"formConfig"?: IFormConfig;
|
|
1015
|
+
/**
|
|
1016
|
+
* Evento disparado ao salvar as configurações.
|
|
1017
|
+
*/
|
|
1018
|
+
"onConfigChange"?: (event: SnkFormConfigCustomEvent<IFormConfig>) => void;
|
|
1019
|
+
/**
|
|
1020
|
+
* Representa o elemento pai do componente.
|
|
1021
|
+
*/
|
|
1022
|
+
"parentForm"?: HTMLSnkFormElement;
|
|
1023
|
+
}
|
|
741
1024
|
interface SnkGrid {
|
|
742
1025
|
/**
|
|
743
1026
|
* Lista de ações que devem ser usadas no botão "Mais opções"
|
|
@@ -751,6 +1034,10 @@ declare namespace LocalJSX {
|
|
|
751
1034
|
* Emitido sempre que houver click de botão ou ação
|
|
752
1035
|
*/
|
|
753
1036
|
"onActionClick"?: (event: SnkGridCustomEvent<string>) => void;
|
|
1037
|
+
/**
|
|
1038
|
+
* Evento disparado quando as configurações são alteradas.
|
|
1039
|
+
*/
|
|
1040
|
+
"onConfigChanged"?: (event: SnkGridCustomEvent<IGridConfig>) => void;
|
|
754
1041
|
/**
|
|
755
1042
|
* Emitido sempre que houver duplo click na grade
|
|
756
1043
|
*/
|
|
@@ -769,6 +1056,44 @@ declare namespace LocalJSX {
|
|
|
769
1056
|
"searchLoader"?: Function;
|
|
770
1057
|
"selectItem"?: Function;
|
|
771
1058
|
}
|
|
1059
|
+
interface SnkTabConfig {
|
|
1060
|
+
/**
|
|
1061
|
+
* Evento emitido ao ocultar uma aba.
|
|
1062
|
+
*/
|
|
1063
|
+
"onCanStartDrag"?: (event: SnkTabConfigCustomEvent<any>) => void;
|
|
1064
|
+
/**
|
|
1065
|
+
* Evento emitido ao deletar uma aba.
|
|
1066
|
+
*/
|
|
1067
|
+
"onDeleteTab"?: (event: SnkTabConfigCustomEvent<any>) => void;
|
|
1068
|
+
/**
|
|
1069
|
+
* Evento emitido ao salvar uma alteração realizada no título da tab
|
|
1070
|
+
*/
|
|
1071
|
+
"onEditionTitleTab"?: (event: SnkTabConfigCustomEvent<any>) => void;
|
|
1072
|
+
/**
|
|
1073
|
+
* Evento emitido ao mover a aba mudando a sua ordem.
|
|
1074
|
+
*/
|
|
1075
|
+
"onEzOrderChange"?: (event: SnkTabConfigCustomEvent<number>) => void;
|
|
1076
|
+
/**
|
|
1077
|
+
* Evento emitido ao clicar para abrir o popup (ezTabChange). O detail desse evento carrega tanto o tabKey quanto o index da aba selecionada.
|
|
1078
|
+
*/
|
|
1079
|
+
"onEzTabChange"?: (event: SnkTabConfigCustomEvent<ITab>) => void;
|
|
1080
|
+
/**
|
|
1081
|
+
* Evento emitido ao ocultar uma aba.
|
|
1082
|
+
*/
|
|
1083
|
+
"onHideTab"?: (event: SnkTabConfigCustomEvent<any>) => void;
|
|
1084
|
+
/**
|
|
1085
|
+
* Define o index da aba selecionada.
|
|
1086
|
+
*/
|
|
1087
|
+
"selectedIndex"?: number;
|
|
1088
|
+
/**
|
|
1089
|
+
* Define a aba selecionada.
|
|
1090
|
+
*/
|
|
1091
|
+
"selectedTab"?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* Define o nome das abas do componente, separadas por vírgulas ",".
|
|
1094
|
+
*/
|
|
1095
|
+
"tabs"?: string;
|
|
1096
|
+
}
|
|
772
1097
|
interface SnkTaskbar {
|
|
773
1098
|
/**
|
|
774
1099
|
* Lista de ações que devem ser usadas no botão "Mais opções"
|
|
@@ -778,6 +1103,10 @@ declare namespace LocalJSX {
|
|
|
778
1103
|
* Lista separada por virgula, contendo todos os elementos a serem criados
|
|
779
1104
|
*/
|
|
780
1105
|
"buttons"?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* Nome usado para guardar/recuperar as configurações do formulário
|
|
1108
|
+
*/
|
|
1109
|
+
"configName"?: string;
|
|
781
1110
|
/**
|
|
782
1111
|
* Mapa com definição de botões personalizados. A chave do mapa deve ser passada na lista "buttons" no lugar onde o botão irá aparecer.
|
|
783
1112
|
*/
|
|
@@ -790,6 +1119,10 @@ declare namespace LocalJSX {
|
|
|
790
1119
|
* Array contendo todos os botões a serem desabilitados
|
|
791
1120
|
*/
|
|
792
1121
|
"disabledButtons"?: Array<string>;
|
|
1122
|
+
/**
|
|
1123
|
+
* Emitido sempre que houver alteração em algum elemento aberto pelo botão de ação
|
|
1124
|
+
*/
|
|
1125
|
+
"onActionChange"?: (event: SnkTaskbarCustomEvent<any>) => void;
|
|
793
1126
|
/**
|
|
794
1127
|
* Emitido sempre que houver click de botão ou ação
|
|
795
1128
|
*/
|
|
@@ -803,8 +1136,12 @@ declare namespace LocalJSX {
|
|
|
803
1136
|
}
|
|
804
1137
|
interface IntrinsicElements {
|
|
805
1138
|
"snk-application": SnkApplication;
|
|
1139
|
+
"snk-config-modal": SnkConfigModal;
|
|
1140
|
+
"snk-config-options": SnkConfigOptions;
|
|
1141
|
+
"snk-configurator": SnkConfigurator;
|
|
806
1142
|
"snk-crud": SnkCrud;
|
|
807
1143
|
"snk-data-unit": SnkDataUnit;
|
|
1144
|
+
"snk-field-config": SnkFieldConfig;
|
|
808
1145
|
"snk-filter-bar": SnkFilterBar;
|
|
809
1146
|
"snk-filter-binary-select": SnkFilterBinarySelect;
|
|
810
1147
|
"snk-filter-detail": SnkFilterDetail;
|
|
@@ -818,8 +1155,10 @@ declare namespace LocalJSX {
|
|
|
818
1155
|
"snk-filter-search": SnkFilterSearch;
|
|
819
1156
|
"snk-filter-text": SnkFilterText;
|
|
820
1157
|
"snk-form": SnkForm;
|
|
1158
|
+
"snk-form-config": SnkFormConfig;
|
|
821
1159
|
"snk-grid": SnkGrid;
|
|
822
1160
|
"snk-pesquisa": SnkPesquisa;
|
|
1161
|
+
"snk-tab-config": SnkTabConfig;
|
|
823
1162
|
"snk-taskbar": SnkTaskbar;
|
|
824
1163
|
"teste-pesquisa": TestePesquisa;
|
|
825
1164
|
}
|
|
@@ -829,8 +1168,12 @@ declare module "@stencil/core" {
|
|
|
829
1168
|
export namespace JSX {
|
|
830
1169
|
interface IntrinsicElements {
|
|
831
1170
|
"snk-application": LocalJSX.SnkApplication & JSXBase.HTMLAttributes<HTMLSnkApplicationElement>;
|
|
1171
|
+
"snk-config-modal": LocalJSX.SnkConfigModal & JSXBase.HTMLAttributes<HTMLSnkConfigModalElement>;
|
|
1172
|
+
"snk-config-options": LocalJSX.SnkConfigOptions & JSXBase.HTMLAttributes<HTMLSnkConfigOptionsElement>;
|
|
1173
|
+
"snk-configurator": LocalJSX.SnkConfigurator & JSXBase.HTMLAttributes<HTMLSnkConfiguratorElement>;
|
|
832
1174
|
"snk-crud": LocalJSX.SnkCrud & JSXBase.HTMLAttributes<HTMLSnkCrudElement>;
|
|
833
1175
|
"snk-data-unit": LocalJSX.SnkDataUnit & JSXBase.HTMLAttributes<HTMLSnkDataUnitElement>;
|
|
1176
|
+
"snk-field-config": LocalJSX.SnkFieldConfig & JSXBase.HTMLAttributes<HTMLSnkFieldConfigElement>;
|
|
834
1177
|
"snk-filter-bar": LocalJSX.SnkFilterBar & JSXBase.HTMLAttributes<HTMLSnkFilterBarElement>;
|
|
835
1178
|
"snk-filter-binary-select": LocalJSX.SnkFilterBinarySelect & JSXBase.HTMLAttributes<HTMLSnkFilterBinarySelectElement>;
|
|
836
1179
|
"snk-filter-detail": LocalJSX.SnkFilterDetail & JSXBase.HTMLAttributes<HTMLSnkFilterDetailElement>;
|
|
@@ -844,8 +1187,10 @@ declare module "@stencil/core" {
|
|
|
844
1187
|
"snk-filter-search": LocalJSX.SnkFilterSearch & JSXBase.HTMLAttributes<HTMLSnkFilterSearchElement>;
|
|
845
1188
|
"snk-filter-text": LocalJSX.SnkFilterText & JSXBase.HTMLAttributes<HTMLSnkFilterTextElement>;
|
|
846
1189
|
"snk-form": LocalJSX.SnkForm & JSXBase.HTMLAttributes<HTMLSnkFormElement>;
|
|
1190
|
+
"snk-form-config": LocalJSX.SnkFormConfig & JSXBase.HTMLAttributes<HTMLSnkFormConfigElement>;
|
|
847
1191
|
"snk-grid": LocalJSX.SnkGrid & JSXBase.HTMLAttributes<HTMLSnkGridElement>;
|
|
848
1192
|
"snk-pesquisa": LocalJSX.SnkPesquisa & JSXBase.HTMLAttributes<HTMLSnkPesquisaElement>;
|
|
1193
|
+
"snk-tab-config": LocalJSX.SnkTabConfig & JSXBase.HTMLAttributes<HTMLSnkTabConfigElement>;
|
|
849
1194
|
"snk-taskbar": LocalJSX.SnkTaskbar & JSXBase.HTMLAttributes<HTMLSnkTaskbarElement>;
|
|
850
1195
|
"teste-pesquisa": LocalJSX.TestePesquisa & JSXBase.HTMLAttributes<HTMLTestePesquisaElement>;
|
|
851
1196
|
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFormConfig, ITabConfig } from "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form";
|
|
2
2
|
import { ResourceFetcher } from "./resource-fetcher";
|
|
3
3
|
export declare class FormConfigFetcher extends ResourceFetcher {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
private queryConfig;
|
|
5
|
+
constructor();
|
|
6
|
+
private buildTemplatesConfig;
|
|
7
|
+
loadFormConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
|
8
|
+
getTabName(tab: string | ITabConfig): string;
|
|
9
|
+
saveConfig(config: IFormConfig, formName: string, resourceID: string): Promise<boolean>;
|
|
10
|
+
fetchUserAvailableConfigs(formName: string, resourceID: string): Promise<Array<IUserConfig>>;
|
|
11
|
+
fetchLegacyConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
|
12
|
+
fetchDefaultConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
|
13
|
+
}
|
|
14
|
+
export declare enum UserConfigType {
|
|
15
|
+
USER = "USER",
|
|
16
|
+
DEFAULT = "DEFAULT",
|
|
17
|
+
SHARED = "SHARED"
|
|
18
|
+
}
|
|
19
|
+
export interface IUserConfig {
|
|
20
|
+
name: string;
|
|
21
|
+
origin: UserConfigType;
|
|
22
|
+
key: string;
|
|
23
|
+
userID: number;
|
|
6
24
|
}
|