@sankhyalabs/sankhyablocks 2.1.2 → 2.1.4
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/AuthorizationConfig-79ffae4b.js +7 -0
- package/dist/cjs/{form-config-fetcher-2de7c16a.js → ConfigStorage-c112de1d.js} +101 -1
- package/dist/cjs/{SnkMessageBuilder-89482d28.js → SnkMessageBuilder-61f00e7f.js} +33 -5
- package/dist/cjs/{constants-9056ca9e.js → constants-a47a5190.js} +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +32 -65
- package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
- package/dist/cjs/{snk-field-config_2.cjs.entry.js → snk-configurator_3.cjs.entry.js} +134 -13
- package/dist/cjs/snk-crud.cjs.entry.js +23 -6
- package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
- package/dist/cjs/{snk-configurator_6.cjs.entry.js → snk-filter-bar_7.cjs.entry.js} +528 -198
- package/dist/cjs/snk-form-config.cjs.entry.js +30 -24
- package/dist/cjs/snk-form.cjs.entry.js +30 -17
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/cjs/{taskbar-elements-90350a55.js → taskbar-elements-a0b857c0.js} +5 -9
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/snk-application/snk-application.js +4 -3
- package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
- package/dist/collection/components/snk-configurator/snk-configurator.css +124 -0
- package/dist/collection/components/snk-configurator/snk-configurator.js +126 -181
- package/dist/collection/components/snk-crud/snk-crud.js +23 -5
- package/dist/collection/components/snk-form/snk-form.js +37 -54
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +47 -28
- package/dist/collection/components/snk-grid/snk-grid.js +69 -20
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +166 -0
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +605 -0
- package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
- package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +5 -9
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +39 -11
- package/dist/collection/lib/configs/ConfigStorage.js +15 -15
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +1 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +5 -3
- package/dist/collection/lib/message/resources/snk-configurator.msg.js +0 -3
- package/dist/collection/lib/message/resources/snk-form.msg.js +3 -0
- package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
- package/dist/collection/lib/utils/constants.js +14 -0
- package/dist/components/AuthorizationConfig.js +7 -0
- package/dist/components/{form-config-fetcher.js → ConfigStorage.js} +100 -2
- package/dist/components/SnkMessageBuilder.js +33 -5
- package/dist/components/constants.js +15 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/components/snk-application2.js +4 -37
- package/dist/components/snk-configurator2.js +63 -165
- package/dist/components/snk-crud.js +53 -29
- package/dist/components/snk-form-config2.js +25 -19
- package/dist/components/snk-form2.js +33 -32
- package/dist/components/{snk-config-modal.d.ts → snk-grid-config.d.ts} +4 -4
- package/dist/components/snk-grid-config.js +6 -0
- package/dist/components/snk-grid-config2.js +497 -0
- package/dist/components/snk-grid2.js +65 -27
- package/dist/components/snk-select-box.d.ts +11 -0
- package/dist/components/snk-select-box.js +6 -0
- package/dist/components/snk-select-box2.js +38 -0
- package/dist/components/snk-taskbar2.js +45 -33
- package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
- package/dist/esm/{form-config-fetcher-96c6c2dc.js → ConfigStorage-99025655.js} +100 -2
- package/dist/esm/{SnkMessageBuilder-a27fc561.js → SnkMessageBuilder-f5ef87df.js} +33 -5
- package/dist/esm/{constants-c6039d3d.js → constants-babe1a08.js} +15 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +5 -38
- package/dist/esm/snk-config-options.entry.js +1 -1
- package/dist/esm/{snk-field-config_2.entry.js → snk-configurator_3.entry.js} +134 -14
- package/dist/esm/snk-crud.entry.js +23 -6
- package/dist/esm/snk-data-unit.entry.js +1 -1
- package/dist/esm/{snk-configurator_6.entry.js → snk-filter-bar_7.entry.js} +529 -200
- package/dist/esm/snk-form-config.entry.js +25 -19
- package/dist/esm/snk-form.entry.js +30 -17
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/{taskbar-elements-0f41cd77.js → taskbar-elements-4d6584cd.js} +5 -9
- package/dist/sankhyablocks/p-105cd4a8.entry.js +1 -0
- package/dist/sankhyablocks/p-4131d41e.entry.js +1 -0
- package/dist/sankhyablocks/{p-8706fe65.entry.js → p-43aff8f5.entry.js} +1 -1
- package/dist/sankhyablocks/p-53f33e9d.entry.js +1 -0
- package/dist/sankhyablocks/p-639b8f6e.entry.js +76 -0
- package/dist/sankhyablocks/{p-a5b26df2.js → p-6673c77c.js} +1 -1
- package/dist/sankhyablocks/p-6ba8f415.js +26 -0
- package/dist/sankhyablocks/{p-2517529d.js → p-877bd6cf.js} +1 -1
- package/dist/sankhyablocks/p-87896198.entry.js +1 -0
- package/dist/sankhyablocks/p-bd6d4a83.js +1 -0
- package/dist/sankhyablocks/p-cae38f51.entry.js +1 -0
- package/dist/sankhyablocks/{p-f37cdeb5.entry.js → p-cd03ea9e.entry.js} +1 -1
- package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
- package/dist/sankhyablocks/{p-92782503.entry.js → p-eb94df0b.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +0 -1
- package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +21 -24
- package/dist/types/components/snk-crud/snk-crud.d.ts +6 -0
- package/dist/types/components/snk-form/snk-form.d.ts +6 -9
- package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +7 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +13 -3
- package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +66 -0
- package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +7 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +3 -4
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +3 -1
- package/dist/types/components.d.ts +104 -74
- package/dist/types/lib/configs/ConfigStorage.d.ts +3 -3
- package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +0 -1
- package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
- package/dist/types/lib/utils/constants.d.ts +14 -0
- package/package.json +1 -1
- package/react/components.d.ts +2 -1
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/configurableElementsStorage-93459c72.js +0 -20
- package/dist/cjs/snk-config-modal.cjs.entry.js +0 -62
- package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +0 -16
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +0 -122
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +0 -137
- package/dist/components/snk-config-modal.js +0 -6
- package/dist/components/snk-config-modal2.js +0 -91
- package/dist/esm/configurableElementsStorage-cdc144b5.js +0 -18
- package/dist/esm/snk-config-modal.entry.js +0 -58
- package/dist/sankhyablocks/p-361299e8.js +0 -26
- package/dist/sankhyablocks/p-599846fb.entry.js +0 -75
- package/dist/sankhyablocks/p-59d8c47a.js +0 -1
- package/dist/sankhyablocks/p-60eef7cd.entry.js +0 -1
- package/dist/sankhyablocks/p-626cf022.entry.js +0 -1
- package/dist/sankhyablocks/p-6511d132.entry.js +0 -1
- package/dist/sankhyablocks/p-cb8d71ba.entry.js +0 -1
- package/dist/sankhyablocks/p-ce7c38a1.entry.js +0 -1
- package/dist/sankhyablocks/p-d50651a3.js +0 -1
- package/dist/sankhyablocks/p-e8591491.entry.js +0 -1
- package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +0 -8
- package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +0 -38
|
@@ -10,12 +10,11 @@ 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
12
|
import { IFieldConfig, IFormConfig, IRecordValidator } from "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form";
|
|
13
|
-
import { IGridConfig, IStatusResolver } from "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController";
|
|
13
|
+
import { EzGridColumn, IGridConfig, IStatusResolver } from "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController";
|
|
14
14
|
import { IUserConfig } from "./lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
15
15
|
import { SnkFilterItemConfig } from "./components/snk-filter-bar/filter-item/snk-filter-item";
|
|
16
16
|
import { IOption, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
|
17
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";
|
|
19
18
|
import { Action, TaskbarManager } from "./components/snk-taskbar/snk-taskbar";
|
|
20
19
|
import { DataState } from "./components/snk-data-unit/snk-data-unit";
|
|
21
20
|
import { SnkFilterItemConfig as SnkFilterItemConfig1 } from "./components/snk-filter-bar/filter-item/snk-filter-item";
|
|
@@ -78,7 +77,7 @@ export namespace Components {
|
|
|
78
77
|
*/
|
|
79
78
|
"getBooleanParam": (name: string) => Promise<boolean>;
|
|
80
79
|
/**
|
|
81
|
-
* Retorna a configuração de um recurso por service broker
|
|
80
|
+
* Retorna a configuração de um recurso por service broker
|
|
82
81
|
*/
|
|
83
82
|
"getConfig": (key: string) => Promise<any>;
|
|
84
83
|
/**
|
|
@@ -188,16 +187,6 @@ export namespace Components {
|
|
|
188
187
|
*/
|
|
189
188
|
"temOpcional": (opcional: string) => Promise<boolean>;
|
|
190
189
|
}
|
|
191
|
-
interface SnkConfigModal {
|
|
192
|
-
/**
|
|
193
|
-
* Nome usado para guardar/recuperar as configurações do formulário
|
|
194
|
-
*/
|
|
195
|
-
"configName": string;
|
|
196
|
-
/**
|
|
197
|
-
* Define se o modo grid está ativo.
|
|
198
|
-
*/
|
|
199
|
-
"gridMode": boolean;
|
|
200
|
-
}
|
|
201
190
|
interface SnkConfigOptions {
|
|
202
191
|
/**
|
|
203
192
|
* Repositório de dados responsável por controlar a manipulação dos dados
|
|
@@ -213,18 +202,16 @@ export namespace Components {
|
|
|
213
202
|
"idConfig": string;
|
|
214
203
|
}
|
|
215
204
|
interface SnkConfigurator {
|
|
205
|
+
"close": () => Promise<void>;
|
|
216
206
|
/**
|
|
217
207
|
* Nome usado para guardar/recuperar as configurações do formulário
|
|
218
208
|
*/
|
|
219
209
|
"configName": string;
|
|
210
|
+
"open": () => Promise<void>;
|
|
220
211
|
/**
|
|
221
|
-
* Define
|
|
222
|
-
*/
|
|
223
|
-
"enabled": boolean;
|
|
224
|
-
/**
|
|
225
|
-
* Nome do componente que será vinculado ao `data-configurator-parent` para controlar o modal de configurações.
|
|
212
|
+
* Define qual modo de visualização está ativo.
|
|
226
213
|
*/
|
|
227
|
-
"
|
|
214
|
+
"viewMode": string;
|
|
228
215
|
}
|
|
229
216
|
interface SnkCrud {
|
|
230
217
|
/**
|
|
@@ -401,23 +388,27 @@ export namespace Components {
|
|
|
401
388
|
*/
|
|
402
389
|
"configName": string;
|
|
403
390
|
/**
|
|
404
|
-
*
|
|
391
|
+
* Método responsável em fechar o modal de configurações do form.
|
|
405
392
|
*/
|
|
406
|
-
"
|
|
393
|
+
"hideConfig": () => Promise<void>;
|
|
407
394
|
/**
|
|
408
|
-
*
|
|
395
|
+
* Validador responsável por checar a integridade das informações do registro
|
|
409
396
|
*/
|
|
410
|
-
"
|
|
397
|
+
"recordsValidator": IRecordValidator;
|
|
411
398
|
/**
|
|
412
|
-
* Método responsável em abrir
|
|
399
|
+
* Método responsável em abrir o modal de configurações do form.
|
|
413
400
|
*/
|
|
414
|
-
"
|
|
401
|
+
"showConfig": () => Promise<void>;
|
|
415
402
|
/**
|
|
416
403
|
* Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões.
|
|
417
404
|
*/
|
|
418
405
|
"taskbarManager": TaskbarManager;
|
|
419
406
|
}
|
|
420
407
|
interface SnkFormConfig {
|
|
408
|
+
/**
|
|
409
|
+
* Nome usado para guardar/recuperar as configurações do formulário.
|
|
410
|
+
*/
|
|
411
|
+
"configName": string;
|
|
421
412
|
/**
|
|
422
413
|
* Repositório de dados, controla a manipulação dos dados
|
|
423
414
|
*/
|
|
@@ -426,10 +417,6 @@ export namespace Components {
|
|
|
426
417
|
* Campos de configuração de formulário.
|
|
427
418
|
*/
|
|
428
419
|
"formConfig": IFormConfig;
|
|
429
|
-
/**
|
|
430
|
-
* Representa o elemento pai do componente.
|
|
431
|
-
*/
|
|
432
|
-
"parentForm": HTMLSnkFormElement;
|
|
433
420
|
}
|
|
434
421
|
interface SnkGrid {
|
|
435
422
|
/**
|
|
@@ -440,6 +427,10 @@ export namespace Components {
|
|
|
440
427
|
* Nome usado para salvar/recuperar a configuração
|
|
441
428
|
*/
|
|
442
429
|
"configName": string;
|
|
430
|
+
/**
|
|
431
|
+
* Método responsável em fechar o modal de configurações da grade.
|
|
432
|
+
*/
|
|
433
|
+
"hideConfig": () => Promise<void>;
|
|
443
434
|
/**
|
|
444
435
|
* Determina se pode haver mais de uma linha selecionada
|
|
445
436
|
*/
|
|
@@ -449,9 +440,9 @@ export namespace Components {
|
|
|
449
440
|
*/
|
|
450
441
|
"setConfig": (config: IGridConfig) => Promise<void>;
|
|
451
442
|
/**
|
|
452
|
-
* Método responsável em abrir
|
|
443
|
+
* Método responsável em abrir o modal de configurações da grade.
|
|
453
444
|
*/
|
|
454
|
-
"
|
|
445
|
+
"showConfig": () => Promise<void>;
|
|
455
446
|
/**
|
|
456
447
|
* Configuração do valor da coluna de status. Exemplo: { "RECDESP": { "-1" : "#BD0025", "1" : "#157A00" } }
|
|
457
448
|
*/
|
|
@@ -461,11 +452,29 @@ export namespace Components {
|
|
|
461
452
|
*/
|
|
462
453
|
"taskbarManager": TaskbarManager;
|
|
463
454
|
}
|
|
455
|
+
interface SnkGridConfig {
|
|
456
|
+
/**
|
|
457
|
+
* Colunas da grade.
|
|
458
|
+
*/
|
|
459
|
+
"columns": Array<EzGridColumn>;
|
|
460
|
+
/**
|
|
461
|
+
* Configurações da grade.
|
|
462
|
+
*/
|
|
463
|
+
"config": IGridConfig;
|
|
464
|
+
"saveConfig": (config: IGridConfig) => Promise<void>;
|
|
465
|
+
/**
|
|
466
|
+
* Aba selecionada das configurações da grade.
|
|
467
|
+
*/
|
|
468
|
+
"selectedIndex": number;
|
|
469
|
+
}
|
|
464
470
|
interface SnkPesquisa {
|
|
465
471
|
"argument": string;
|
|
466
472
|
"searchLoader": Function;
|
|
467
473
|
"selectItem": Function;
|
|
468
474
|
}
|
|
475
|
+
interface SnkSelectBox {
|
|
476
|
+
"selectedOption": IOption | string;
|
|
477
|
+
}
|
|
469
478
|
interface SnkTabConfig {
|
|
470
479
|
/**
|
|
471
480
|
* Define o index da aba selecionada.
|
|
@@ -517,10 +526,6 @@ export interface SnkApplicationCustomEvent<T> extends CustomEvent<T> {
|
|
|
517
526
|
detail: T;
|
|
518
527
|
target: HTMLSnkApplicationElement;
|
|
519
528
|
}
|
|
520
|
-
export interface SnkConfigModalCustomEvent<T> extends CustomEvent<T> {
|
|
521
|
-
detail: T;
|
|
522
|
-
target: HTMLSnkConfigModalElement;
|
|
523
|
-
}
|
|
524
529
|
export interface SnkConfigOptionsCustomEvent<T> extends CustomEvent<T> {
|
|
525
530
|
detail: T;
|
|
526
531
|
target: HTMLSnkConfigOptionsElement;
|
|
@@ -565,6 +570,14 @@ export interface SnkGridCustomEvent<T> extends CustomEvent<T> {
|
|
|
565
570
|
detail: T;
|
|
566
571
|
target: HTMLSnkGridElement;
|
|
567
572
|
}
|
|
573
|
+
export interface SnkGridConfigCustomEvent<T> extends CustomEvent<T> {
|
|
574
|
+
detail: T;
|
|
575
|
+
target: HTMLSnkGridConfigElement;
|
|
576
|
+
}
|
|
577
|
+
export interface SnkSelectBoxCustomEvent<T> extends CustomEvent<T> {
|
|
578
|
+
detail: T;
|
|
579
|
+
target: HTMLSnkSelectBoxElement;
|
|
580
|
+
}
|
|
568
581
|
export interface SnkTabConfigCustomEvent<T> extends CustomEvent<T> {
|
|
569
582
|
detail: T;
|
|
570
583
|
target: HTMLSnkTabConfigElement;
|
|
@@ -580,12 +593,6 @@ declare global {
|
|
|
580
593
|
prototype: HTMLSnkApplicationElement;
|
|
581
594
|
new (): HTMLSnkApplicationElement;
|
|
582
595
|
};
|
|
583
|
-
interface HTMLSnkConfigModalElement extends Components.SnkConfigModal, HTMLStencilElement {
|
|
584
|
-
}
|
|
585
|
-
var HTMLSnkConfigModalElement: {
|
|
586
|
-
prototype: HTMLSnkConfigModalElement;
|
|
587
|
-
new (): HTMLSnkConfigModalElement;
|
|
588
|
-
};
|
|
589
596
|
interface HTMLSnkConfigOptionsElement extends Components.SnkConfigOptions, HTMLStencilElement {
|
|
590
597
|
}
|
|
591
598
|
var HTMLSnkConfigOptionsElement: {
|
|
@@ -706,12 +713,24 @@ declare global {
|
|
|
706
713
|
prototype: HTMLSnkGridElement;
|
|
707
714
|
new (): HTMLSnkGridElement;
|
|
708
715
|
};
|
|
716
|
+
interface HTMLSnkGridConfigElement extends Components.SnkGridConfig, HTMLStencilElement {
|
|
717
|
+
}
|
|
718
|
+
var HTMLSnkGridConfigElement: {
|
|
719
|
+
prototype: HTMLSnkGridConfigElement;
|
|
720
|
+
new (): HTMLSnkGridConfigElement;
|
|
721
|
+
};
|
|
709
722
|
interface HTMLSnkPesquisaElement extends Components.SnkPesquisa, HTMLStencilElement {
|
|
710
723
|
}
|
|
711
724
|
var HTMLSnkPesquisaElement: {
|
|
712
725
|
prototype: HTMLSnkPesquisaElement;
|
|
713
726
|
new (): HTMLSnkPesquisaElement;
|
|
714
727
|
};
|
|
728
|
+
interface HTMLSnkSelectBoxElement extends Components.SnkSelectBox, HTMLStencilElement {
|
|
729
|
+
}
|
|
730
|
+
var HTMLSnkSelectBoxElement: {
|
|
731
|
+
prototype: HTMLSnkSelectBoxElement;
|
|
732
|
+
new (): HTMLSnkSelectBoxElement;
|
|
733
|
+
};
|
|
715
734
|
interface HTMLSnkTabConfigElement extends Components.SnkTabConfig, HTMLStencilElement {
|
|
716
735
|
}
|
|
717
736
|
var HTMLSnkTabConfigElement: {
|
|
@@ -732,7 +751,6 @@ declare global {
|
|
|
732
751
|
};
|
|
733
752
|
interface HTMLElementTagNameMap {
|
|
734
753
|
"snk-application": HTMLSnkApplicationElement;
|
|
735
|
-
"snk-config-modal": HTMLSnkConfigModalElement;
|
|
736
754
|
"snk-config-options": HTMLSnkConfigOptionsElement;
|
|
737
755
|
"snk-configurator": HTMLSnkConfiguratorElement;
|
|
738
756
|
"snk-crud": HTMLSnkCrudElement;
|
|
@@ -753,7 +771,9 @@ declare global {
|
|
|
753
771
|
"snk-form": HTMLSnkFormElement;
|
|
754
772
|
"snk-form-config": HTMLSnkFormConfigElement;
|
|
755
773
|
"snk-grid": HTMLSnkGridElement;
|
|
774
|
+
"snk-grid-config": HTMLSnkGridConfigElement;
|
|
756
775
|
"snk-pesquisa": HTMLSnkPesquisaElement;
|
|
776
|
+
"snk-select-box": HTMLSnkSelectBoxElement;
|
|
757
777
|
"snk-tab-config": HTMLSnkTabConfigElement;
|
|
758
778
|
"snk-taskbar": HTMLSnkTaskbarElement;
|
|
759
779
|
"teste-pesquisa": HTMLTestePesquisaElement;
|
|
@@ -778,24 +798,6 @@ declare namespace LocalJSX {
|
|
|
778
798
|
*/
|
|
779
799
|
"onApplicationLoading"?: (event: SnkApplicationCustomEvent<boolean>) => void;
|
|
780
800
|
}
|
|
781
|
-
interface SnkConfigModal {
|
|
782
|
-
/**
|
|
783
|
-
* Nome usado para guardar/recuperar as configurações do formulário
|
|
784
|
-
*/
|
|
785
|
-
"configName"?: string;
|
|
786
|
-
/**
|
|
787
|
-
* Define se o modo grid está ativo.
|
|
788
|
-
*/
|
|
789
|
-
"gridMode"?: boolean;
|
|
790
|
-
/**
|
|
791
|
-
* Evento disparado quando o modal é fechado.
|
|
792
|
-
*/
|
|
793
|
-
"onCancelConfig"?: (event: SnkConfigModalCustomEvent<void>) => void;
|
|
794
|
-
/**
|
|
795
|
-
* Evento disparado quando há alteração nas configurações.
|
|
796
|
-
*/
|
|
797
|
-
"onChangeConfig"?: (event: SnkConfigModalCustomEvent<IConfigModal>) => void;
|
|
798
|
-
}
|
|
799
801
|
interface SnkConfigOptions {
|
|
800
802
|
/**
|
|
801
803
|
* Repositório de dados responsável por controlar a manipulação dos dados
|
|
@@ -820,17 +822,17 @@ declare namespace LocalJSX {
|
|
|
820
822
|
*/
|
|
821
823
|
"configName"?: string;
|
|
822
824
|
/**
|
|
823
|
-
*
|
|
825
|
+
* Evento disparado quando seleciona modo de visualização
|
|
824
826
|
*/
|
|
825
|
-
"
|
|
827
|
+
"onConfigSelected"?: (event: SnkConfiguratorCustomEvent<string>) => void;
|
|
826
828
|
/**
|
|
827
|
-
*
|
|
829
|
+
* Evento disparado quando clicar para abrir uma configuração
|
|
828
830
|
*/
|
|
829
|
-
"
|
|
831
|
+
"onOpenConfig"?: (event: SnkConfiguratorCustomEvent<string>) => void;
|
|
830
832
|
/**
|
|
831
|
-
*
|
|
833
|
+
* Define qual modo de visualização está ativo.
|
|
832
834
|
*/
|
|
833
|
-
"
|
|
835
|
+
"viewMode"?: string;
|
|
834
836
|
}
|
|
835
837
|
interface SnkCrud {
|
|
836
838
|
/**
|
|
@@ -1018,10 +1020,6 @@ declare namespace LocalJSX {
|
|
|
1018
1020
|
* Emitido sempre que houver click de botão ou ação
|
|
1019
1021
|
*/
|
|
1020
1022
|
"onActionClick"?: (event: SnkFormCustomEvent<string>) => void;
|
|
1021
|
-
/**
|
|
1022
|
-
* Evento disparado quando as configurações são alteradas.
|
|
1023
|
-
*/
|
|
1024
|
-
"onConfigChanged"?: (event: SnkFormCustomEvent<IFormConfig>) => void;
|
|
1025
1023
|
/**
|
|
1026
1024
|
* Emitido quando o botão de voltar é acionado
|
|
1027
1025
|
*/
|
|
@@ -1036,6 +1034,10 @@ declare namespace LocalJSX {
|
|
|
1036
1034
|
"taskbarManager"?: TaskbarManager;
|
|
1037
1035
|
}
|
|
1038
1036
|
interface SnkFormConfig {
|
|
1037
|
+
/**
|
|
1038
|
+
* Nome usado para guardar/recuperar as configurações do formulário.
|
|
1039
|
+
*/
|
|
1040
|
+
"configName"?: string;
|
|
1039
1041
|
/**
|
|
1040
1042
|
* Repositório de dados, controla a manipulação dos dados
|
|
1041
1043
|
*/
|
|
@@ -1049,9 +1051,9 @@ declare namespace LocalJSX {
|
|
|
1049
1051
|
*/
|
|
1050
1052
|
"onConfigChange"?: (event: SnkFormConfigCustomEvent<IFormConfig>) => void;
|
|
1051
1053
|
/**
|
|
1052
|
-
*
|
|
1054
|
+
* Evento disparado ao fechar as configurações.
|
|
1053
1055
|
*/
|
|
1054
|
-
"
|
|
1056
|
+
"onConfigClose"?: (event: SnkFormConfigCustomEvent<void>) => void;
|
|
1055
1057
|
}
|
|
1056
1058
|
interface SnkGrid {
|
|
1057
1059
|
/**
|
|
@@ -1087,11 +1089,37 @@ declare namespace LocalJSX {
|
|
|
1087
1089
|
*/
|
|
1088
1090
|
"taskbarManager"?: TaskbarManager;
|
|
1089
1091
|
}
|
|
1092
|
+
interface SnkGridConfig {
|
|
1093
|
+
/**
|
|
1094
|
+
* Colunas da grade.
|
|
1095
|
+
*/
|
|
1096
|
+
"columns"?: Array<EzGridColumn>;
|
|
1097
|
+
/**
|
|
1098
|
+
* Configurações da grade.
|
|
1099
|
+
*/
|
|
1100
|
+
"config"?: IGridConfig;
|
|
1101
|
+
/**
|
|
1102
|
+
* Evento disparado ao cancelar a alteração das configurações.
|
|
1103
|
+
*/
|
|
1104
|
+
"onConfigCancel"?: (event: SnkGridConfigCustomEvent<void>) => void;
|
|
1105
|
+
/**
|
|
1106
|
+
* Evento disparado ao salvar a alteração das configurações.
|
|
1107
|
+
*/
|
|
1108
|
+
"onConfigChange"?: (event: SnkGridConfigCustomEvent<IGridConfig>) => void;
|
|
1109
|
+
/**
|
|
1110
|
+
* Aba selecionada das configurações da grade.
|
|
1111
|
+
*/
|
|
1112
|
+
"selectedIndex"?: number;
|
|
1113
|
+
}
|
|
1090
1114
|
interface SnkPesquisa {
|
|
1091
1115
|
"argument"?: string;
|
|
1092
1116
|
"searchLoader"?: Function;
|
|
1093
1117
|
"selectItem"?: Function;
|
|
1094
1118
|
}
|
|
1119
|
+
interface SnkSelectBox {
|
|
1120
|
+
"onEzChange"?: (event: SnkSelectBoxCustomEvent<string>) => void;
|
|
1121
|
+
"selectedOption"?: IOption | string;
|
|
1122
|
+
}
|
|
1095
1123
|
interface SnkTabConfig {
|
|
1096
1124
|
/**
|
|
1097
1125
|
* Evento emitido ao ocultar uma aba.
|
|
@@ -1172,7 +1200,6 @@ declare namespace LocalJSX {
|
|
|
1172
1200
|
}
|
|
1173
1201
|
interface IntrinsicElements {
|
|
1174
1202
|
"snk-application": SnkApplication;
|
|
1175
|
-
"snk-config-modal": SnkConfigModal;
|
|
1176
1203
|
"snk-config-options": SnkConfigOptions;
|
|
1177
1204
|
"snk-configurator": SnkConfigurator;
|
|
1178
1205
|
"snk-crud": SnkCrud;
|
|
@@ -1193,7 +1220,9 @@ declare namespace LocalJSX {
|
|
|
1193
1220
|
"snk-form": SnkForm;
|
|
1194
1221
|
"snk-form-config": SnkFormConfig;
|
|
1195
1222
|
"snk-grid": SnkGrid;
|
|
1223
|
+
"snk-grid-config": SnkGridConfig;
|
|
1196
1224
|
"snk-pesquisa": SnkPesquisa;
|
|
1225
|
+
"snk-select-box": SnkSelectBox;
|
|
1197
1226
|
"snk-tab-config": SnkTabConfig;
|
|
1198
1227
|
"snk-taskbar": SnkTaskbar;
|
|
1199
1228
|
"teste-pesquisa": TestePesquisa;
|
|
@@ -1204,7 +1233,6 @@ declare module "@stencil/core" {
|
|
|
1204
1233
|
export namespace JSX {
|
|
1205
1234
|
interface IntrinsicElements {
|
|
1206
1235
|
"snk-application": LocalJSX.SnkApplication & JSXBase.HTMLAttributes<HTMLSnkApplicationElement>;
|
|
1207
|
-
"snk-config-modal": LocalJSX.SnkConfigModal & JSXBase.HTMLAttributes<HTMLSnkConfigModalElement>;
|
|
1208
1236
|
"snk-config-options": LocalJSX.SnkConfigOptions & JSXBase.HTMLAttributes<HTMLSnkConfigOptionsElement>;
|
|
1209
1237
|
"snk-configurator": LocalJSX.SnkConfigurator & JSXBase.HTMLAttributes<HTMLSnkConfiguratorElement>;
|
|
1210
1238
|
"snk-crud": LocalJSX.SnkCrud & JSXBase.HTMLAttributes<HTMLSnkCrudElement>;
|
|
@@ -1225,7 +1253,9 @@ declare module "@stencil/core" {
|
|
|
1225
1253
|
"snk-form": LocalJSX.SnkForm & JSXBase.HTMLAttributes<HTMLSnkFormElement>;
|
|
1226
1254
|
"snk-form-config": LocalJSX.SnkFormConfig & JSXBase.HTMLAttributes<HTMLSnkFormConfigElement>;
|
|
1227
1255
|
"snk-grid": LocalJSX.SnkGrid & JSXBase.HTMLAttributes<HTMLSnkGridElement>;
|
|
1256
|
+
"snk-grid-config": LocalJSX.SnkGridConfig & JSXBase.HTMLAttributes<HTMLSnkGridConfigElement>;
|
|
1228
1257
|
"snk-pesquisa": LocalJSX.SnkPesquisa & JSXBase.HTMLAttributes<HTMLSnkPesquisaElement>;
|
|
1258
|
+
"snk-select-box": LocalJSX.SnkSelectBox & JSXBase.HTMLAttributes<HTMLSnkSelectBoxElement>;
|
|
1229
1259
|
"snk-tab-config": LocalJSX.SnkTabConfig & JSXBase.HTMLAttributes<HTMLSnkTabConfigElement>;
|
|
1230
1260
|
"snk-taskbar": LocalJSX.SnkTaskbar & JSXBase.HTMLAttributes<HTMLSnkTaskbarElement>;
|
|
1231
1261
|
"teste-pesquisa": LocalJSX.TestePesquisa & JSXBase.HTMLAttributes<HTMLTestePesquisaElement>;
|
|
@@ -7,9 +7,9 @@ export declare class ConfigStorage {
|
|
|
7
7
|
private static gridConfigFetcher;
|
|
8
8
|
private static resourceID;
|
|
9
9
|
static get(): ConfigStorage;
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
loadFormConfig(name: string): Promise<IFormConfig>;
|
|
11
|
+
loadGridConfig(name: string): Promise<IGridConfig>;
|
|
12
12
|
static saveFormConfig(config: IFormConfig, name: string): Promise<boolean>;
|
|
13
13
|
static saveGridConfig(config: IGridConfig, name: string): Promise<boolean>;
|
|
14
|
-
private static
|
|
14
|
+
private static buildCacheID;
|
|
15
15
|
}
|
|
@@ -74,3 +74,17 @@ export declare const TAGS_BY_TYPE: {
|
|
|
74
74
|
INTEGERNUMBER: string;
|
|
75
75
|
DECIMALNUMBER: string;
|
|
76
76
|
};
|
|
77
|
+
export declare const ORDER_VALUES: {
|
|
78
|
+
none: {
|
|
79
|
+
value: string;
|
|
80
|
+
label: string;
|
|
81
|
+
};
|
|
82
|
+
asc: {
|
|
83
|
+
value: string;
|
|
84
|
+
label: string;
|
|
85
|
+
};
|
|
86
|
+
desc: {
|
|
87
|
+
value: string;
|
|
88
|
+
label: string;
|
|
89
|
+
};
|
|
90
|
+
};
|