@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-78242.2 → 0.0.0-bugfix-dev-KB-80932.0
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/{ConfigStorage-f079f5fd.js → ConfigStorage-d024aec8.js} +2 -2
- package/dist/cjs/{ContinuousInsertUtils-64e47516.js → ContinuousInsertUtils-54d44192.js} +5 -5
- package/dist/cjs/{DataFetcher-e059eb72.js → DataFetcher-65879b2c.js} +188 -56
- package/dist/cjs/{SnkFormConfigManager-63369164.js → SnkFormConfigManager-ae3185b2.js} +2 -2
- package/dist/cjs/{auth-fetcher-4f853233.js → auth-fetcher-8480751c.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-228016f4.js → dataunit-fetcher-8ea97d88.js} +2 -2
- package/dist/cjs/{form-config-fetcher-39397ac5.js → form-config-fetcher-90126e4c.js} +38 -1
- package/dist/cjs/index-f9e81701.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-a9bfeb22.js → pesquisa-fetcher-f3454c23.js} +179 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +133 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +99 -9
- package/dist/cjs/snk-application.cjs.entry.js +144 -21
- package/dist/cjs/snk-attach.cjs.entry.js +13 -9
- package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
- package/dist/cjs/snk-crud.cjs.entry.js +8 -7
- package/dist/cjs/snk-data-exporter.cjs.entry.js +29 -18
- package/dist/cjs/{snk-data-unit-3d9b6ed4.js → snk-data-unit-72ef8777.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +27 -11
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +9 -8
- package/dist/cjs/{snk-guides-viewer-2139481c.js → snk-guides-viewer-ea5d0907.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +105 -31
- package/dist/cjs/snk-simple-crud.cjs.entry.js +27 -29
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/snk-actions-button/actions/index.js +4 -4
- package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +4 -3
- package/dist/collection/components/snk-application/snk-application.css +34 -0
- package/dist/collection/components/snk-application/snk-application.js +197 -14
- package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
- package/dist/collection/components/snk-crud/snk-crud.js +39 -20
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +11 -5
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +11 -4
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -3
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +40 -8
- package/dist/collection/components/snk-grid/snk-grid.js +39 -20
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.css +10 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +190 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.css +25 -0
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +179 -0
- package/dist/collection/components/snk-pesquisa/pesquisaHelper.js +89 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +24 -5
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +168 -32
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +56 -41
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +181 -0
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +41 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +92 -3
- package/dist/components/ContinuousInsertUtils.js +2 -3
- package/dist/components/DataFetcher.js +188 -56
- package/dist/components/ISave.js +346 -1
- package/dist/components/dataunit-fetcher.js +1 -1
- package/dist/components/form-config-fetcher.js +37 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/pesquisa-grid.d.ts +11 -0
- package/dist/components/pesquisa-grid.js +6 -0
- package/dist/components/pesquisa-grid2.js +86 -0
- package/dist/components/pesquisa-tree.d.ts +11 -0
- package/dist/components/pesquisa-tree.js +6 -0
- package/dist/components/pesquisa-tree2.js +82 -0
- package/dist/components/snk-actions-button2.js +4 -5
- package/dist/components/snk-application2.js +159 -20
- package/dist/components/snk-attach2.js +20 -35
- package/dist/components/snk-crud.js +66 -59
- package/dist/components/snk-data-exporter2.js +25 -15
- package/dist/components/snk-detail-view2.js +84 -94
- package/dist/components/snk-filter-bar2.js +23 -8
- package/dist/components/snk-filter-modal.js +3 -1
- package/dist/components/snk-grid2.js +5 -4
- package/dist/components/snk-pesquisa2.js +118 -33
- package/dist/components/snk-simple-crud2.js +35 -56
- package/dist/components/snk-simple-form-config.d.ts +11 -0
- package/dist/components/snk-simple-form-config.js +6 -0
- package/dist/components/snk-simple-form-config2.js +120 -0
- package/dist/components/teste-pesquisa.js +13 -1
- package/dist/esm/{ConfigStorage-6514d66e.js → ConfigStorage-373bb440.js} +2 -2
- package/dist/esm/{ContinuousInsertUtils-b62906f9.js → ContinuousInsertUtils-25e7bd9a.js} +5 -5
- package/dist/esm/{DataFetcher-5034df59.js → DataFetcher-5221b992.js} +188 -56
- package/dist/esm/{SnkFormConfigManager-b409c745.js → SnkFormConfigManager-b65e6db0.js} +2 -2
- package/dist/esm/{auth-fetcher-ca5d3a49.js → auth-fetcher-e32fe8a4.js} +1 -1
- package/dist/esm/{dataunit-fetcher-56cb648b.js → dataunit-fetcher-8dd93d8b.js} +2 -2
- package/dist/esm/{form-config-fetcher-a7d3e277.js → form-config-fetcher-126e2471.js} +38 -1
- package/dist/esm/index-a7d3d3f1.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-0af41f09.js} +180 -3
- package/dist/esm/pesquisa-grid_2.entry.js +128 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +99 -10
- package/dist/esm/snk-application.entry.js +146 -23
- package/dist/esm/snk-attach.entry.js +13 -9
- package/dist/esm/snk-config-options_3.entry.js +4 -4
- package/dist/esm/snk-crud.entry.js +8 -7
- package/dist/esm/snk-data-exporter.entry.js +29 -18
- package/dist/esm/{snk-data-unit-9fa7d2b9.js → snk-data-unit-11a49fc3.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +7 -7
- package/dist/esm/snk-filter-bar_4.entry.js +28 -12
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +9 -8
- package/dist/esm/{snk-guides-viewer-b7ed39eb.js → snk-guides-viewer-830f5fb9.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +105 -31
- package/dist/esm/snk-simple-crud.entry.js +27 -29
- package/dist/sankhyablocks/{p-0e206e62.js → p-05b6ff91.js} +1 -1
- package/dist/sankhyablocks/p-09067bee.entry.js +1 -0
- package/dist/sankhyablocks/p-0cda2226.entry.js +11 -0
- package/dist/sankhyablocks/p-1435701f.js +26 -0
- package/dist/sankhyablocks/{p-e97be1c8.js → p-171b7623.js} +1 -1
- package/dist/sankhyablocks/{p-9ffd9fc7.js → p-19dc71e9.js} +1 -1
- package/dist/sankhyablocks/{p-0d2a2e9e.entry.js → p-1a91d1f3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-aa003d4e.entry.js → p-1cf39cfd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bb8ef149.entry.js → p-254c59d2.entry.js} +1 -1
- package/dist/sankhyablocks/p-422eb699.entry.js +1 -0
- package/dist/sankhyablocks/{p-a2c790ac.entry.js → p-469384a2.entry.js} +1 -1
- package/dist/sankhyablocks/p-54f5354a.entry.js +1 -0
- package/dist/sankhyablocks/{p-342eeb3b.js → p-60e4db34.js} +1 -1
- package/dist/sankhyablocks/p-618a29ed.entry.js +1 -0
- package/dist/sankhyablocks/p-798386c7.js +6 -0
- package/dist/sankhyablocks/{p-fca0e5cc.entry.js → p-82ee6dc3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e4391e16.js → p-8a1ee5b5.js} +1 -1
- package/dist/sankhyablocks/p-8bd86610.entry.js +1 -0
- package/dist/sankhyablocks/p-b50a0753.entry.js +1 -0
- package/dist/sankhyablocks/p-d62228fb.js +1 -0
- package/dist/sankhyablocks/p-d92d4f91.entry.js +1 -0
- package/dist/sankhyablocks/{p-47d24ac8.js → p-ddefbbc7.js} +1 -1
- package/dist/sankhyablocks/p-e5430b29.entry.js +1 -0
- package/dist/sankhyablocks/p-f0b9303b.js +1 -0
- package/dist/sankhyablocks/p-f258690a.entry.js +1 -0
- package/dist/sankhyablocks/{p-ec43fcc8.entry.js → p-f975370f.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +22 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +8 -4
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +6 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +8 -4
- package/dist/types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.d.ts +38 -0
- package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +29 -0
- package/dist/types/components/snk-pesquisa/pesquisaHelper.d.ts +19 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +35 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +10 -4
- package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +34 -0
- package/dist/types/components.d.ts +244 -23
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +10 -1
- package/package.json +1 -1
- package/react/components.d.ts +3 -0
- package/react/components.js +3 -0
- package/react/components.js.map +1 -1
- package/dist/esm/pesquisa-fetcher-6bc2e41a.js +0 -169
- package/dist/sankhyablocks/p-00278e07.js +0 -1
- package/dist/sankhyablocks/p-0387d9d7.entry.js +0 -1
- package/dist/sankhyablocks/p-126c58ea.js +0 -26
- package/dist/sankhyablocks/p-1d3ce0d9.entry.js +0 -1
- package/dist/sankhyablocks/p-341465ce.js +0 -6
- package/dist/sankhyablocks/p-3728d2aa.entry.js +0 -11
- package/dist/sankhyablocks/p-4138da61.entry.js +0 -1
- package/dist/sankhyablocks/p-5d9788b3.entry.js +0 -1
- package/dist/sankhyablocks/p-7075b789.entry.js +0 -1
- package/dist/sankhyablocks/p-aaf94476.js +0 -1
- package/dist/sankhyablocks/p-af7f7b3e.entry.js +0 -1
- package/dist/sankhyablocks/p-d1791da2.entry.js +0 -1
- package/dist/sankhyablocks/p-eb7c9cf4.entry.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IOption } from '@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box';
|
|
2
2
|
export declare class SnkPesquisa {
|
|
3
3
|
private _textInput;
|
|
4
|
+
private _pesquisaTree;
|
|
4
5
|
private _mdByName;
|
|
5
6
|
private _startHighlightTag;
|
|
6
7
|
private _endHighlightTag;
|
|
@@ -10,26 +11,50 @@ export declare class SnkPesquisa {
|
|
|
10
11
|
private _changeDeboucingTimeout;
|
|
11
12
|
private _limitCharsToSearch;
|
|
12
13
|
private _deboucingTime;
|
|
14
|
+
private _gridMetadata;
|
|
15
|
+
private _gridDataSource;
|
|
16
|
+
private _pkField;
|
|
17
|
+
private _descriptionField;
|
|
18
|
+
private pesquisaFetcher;
|
|
13
19
|
private _element;
|
|
14
20
|
private _itemList;
|
|
15
21
|
private _startLoading;
|
|
22
|
+
private _presentationMode;
|
|
16
23
|
/**
|
|
17
24
|
* Função responsável em carregar os itens do componente snk-pesquisa.
|
|
18
25
|
*/
|
|
19
26
|
searchLoader: (text: string) => Promise<any>;
|
|
27
|
+
/**
|
|
28
|
+
* Função responsável por carregar a árvore hierárquica do componente
|
|
29
|
+
*/
|
|
30
|
+
treeLoader?: (text: string) => Promise<any>;
|
|
20
31
|
/**
|
|
21
32
|
* Função disparada ao selecionar um item.
|
|
22
33
|
*/
|
|
23
34
|
selectItem: (option: IOption) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Nome da entidade onde a pesquisa é aplicada.
|
|
37
|
+
*/
|
|
38
|
+
entityName: string;
|
|
24
39
|
/**
|
|
25
40
|
* Argumentos que serão usados ao chamar a função searchLoader.
|
|
26
41
|
*/
|
|
27
42
|
argument: string;
|
|
43
|
+
/**
|
|
44
|
+
* Define se a popup de pesquisa possuirá ou não modo Hierarquico.
|
|
45
|
+
*/
|
|
46
|
+
isHierarchyEntity: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Define se permite seleção de items não analíticos
|
|
49
|
+
*/
|
|
50
|
+
allowsNonAnalytic: boolean;
|
|
28
51
|
observeArgument(): void;
|
|
29
52
|
private clearSearch;
|
|
30
53
|
private buildDetails;
|
|
31
54
|
private buildFirstFields;
|
|
32
55
|
private doSearch;
|
|
56
|
+
private processSearchResponse;
|
|
57
|
+
private buildCardItemList;
|
|
33
58
|
private filterFieldsMetadata;
|
|
34
59
|
private removeAtIndex;
|
|
35
60
|
private removeReference;
|
|
@@ -56,6 +81,15 @@ export declare class SnkPesquisa {
|
|
|
56
81
|
private clearDeboucingTimeout;
|
|
57
82
|
private onClickSearch;
|
|
58
83
|
private getMessageView;
|
|
59
|
-
|
|
84
|
+
componentWillLoad(): Promise<void>;
|
|
85
|
+
componentDidLoad(): Promise<void>;
|
|
86
|
+
private onClickList;
|
|
87
|
+
private enableListButton;
|
|
88
|
+
private hideLimitMessage;
|
|
89
|
+
private hideRecordsMessage;
|
|
90
|
+
private renderContent;
|
|
91
|
+
private renderTree;
|
|
92
|
+
private renderCards;
|
|
93
|
+
private renderPesquisaGrid;
|
|
60
94
|
render(): any;
|
|
61
95
|
}
|
|
@@ -36,13 +36,21 @@ export declare class SnkSimpleCrud {
|
|
|
36
36
|
private _rmPrecisionCustomValueFormatter;
|
|
37
37
|
private _snkDataUnit;
|
|
38
38
|
private _continuousInsertUtils;
|
|
39
|
+
private _snkSimpleFormConfig;
|
|
39
40
|
private _element;
|
|
40
41
|
_showPopUpGridConfig: boolean;
|
|
41
|
-
_showFormConfig: boolean;
|
|
42
42
|
_currentViewMode: VIEW_MODE;
|
|
43
43
|
_config: {};
|
|
44
44
|
_fieldToGetFocus: string;
|
|
45
45
|
_customContainerId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
48
|
+
*/
|
|
49
|
+
enableLockManagerLoadingComp?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
52
|
+
*/
|
|
53
|
+
enableLockManagerTaskbarClick?: boolean;
|
|
46
54
|
dataState: DataState;
|
|
47
55
|
dataUnit: DataUnit;
|
|
48
56
|
/**
|
|
@@ -52,7 +60,6 @@ export declare class SnkSimpleCrud {
|
|
|
52
60
|
mode: SIMPLE_CRUD_MODE;
|
|
53
61
|
gridConfig: IGridConfig;
|
|
54
62
|
formConfig: IFormConfig;
|
|
55
|
-
enableLockManger?: boolean;
|
|
56
63
|
_formFields: IFieldConfig[];
|
|
57
64
|
private _fieldsProps;
|
|
58
65
|
_enableContinuousInsert: boolean;
|
|
@@ -251,14 +258,13 @@ export declare class SnkSimpleCrud {
|
|
|
251
258
|
private setGridConfig;
|
|
252
259
|
private setFormConfig;
|
|
253
260
|
private closeGridConfig;
|
|
254
|
-
private closeFormConfig;
|
|
255
261
|
private getPageSize;
|
|
256
|
-
private handleShowFormConfig;
|
|
257
262
|
private resolveResourceID;
|
|
258
263
|
private getFormConfig;
|
|
259
264
|
private updateFormConfig;
|
|
260
265
|
private handleDataUnitOnInsertionMode;
|
|
261
266
|
private initKeyboardManager;
|
|
267
|
+
private handleFormConfigSaved;
|
|
262
268
|
private renderTaskbarContent;
|
|
263
269
|
render(): any;
|
|
264
270
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ListItem } from '@sankhyalabs/ezui/dist/types/components/ez-list/ez-list';
|
|
3
|
+
import { DataUnit } from '@sankhyalabs/core';
|
|
4
|
+
export declare class SnkSimpleFormConfig {
|
|
5
|
+
private ezPopupRef;
|
|
6
|
+
private ezDoubleListRef;
|
|
7
|
+
private _formConfigFetcher;
|
|
8
|
+
private fieldsToSave;
|
|
9
|
+
/**
|
|
10
|
+
* Data unit responsável pelos campos disponíveis
|
|
11
|
+
*/
|
|
12
|
+
dataUnit: DataUnit;
|
|
13
|
+
/**
|
|
14
|
+
* Chave que representa a configuração do formulário
|
|
15
|
+
*/
|
|
16
|
+
configName: string;
|
|
17
|
+
avaliableFields: ListItem[];
|
|
18
|
+
selectedFields: ListItem[];
|
|
19
|
+
snkConfigSaved: EventEmitter<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Responsável por abrir o configurador.
|
|
22
|
+
*/
|
|
23
|
+
show(): Promise<void>;
|
|
24
|
+
private initializeFormConfig;
|
|
25
|
+
private getConfig;
|
|
26
|
+
private removeDuplicates;
|
|
27
|
+
private sortDisplayedFields;
|
|
28
|
+
private getAllVisibleFieldsFromDataUnit;
|
|
29
|
+
private close;
|
|
30
|
+
private handleResetConfigs;
|
|
31
|
+
private handleCancel;
|
|
32
|
+
private handleSave;
|
|
33
|
+
render(): any;
|
|
34
|
+
}
|