@sankhyalabs/sankhyablocks 8.16.0-dev.63 → 8.16.0-dev.65
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/{ContinuousInsertUtils-414b772c.js → ContinuousInsertUtils-a6139f3d.js} +2 -2
- package/dist/cjs/{dataunit-fetcher-228016f4.js → dataunit-fetcher-0121621c.js} +1 -1
- package/dist/cjs/index-f9e81701.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-2ec4811b.js → pesquisa-fetcher-a85d6935.js} +175 -0
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +127 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_5.cjs.entry.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +140 -17
- package/dist/cjs/snk-attach.cjs.entry.js +2 -2
- package/dist/cjs/snk-crud.cjs.entry.js +5 -4
- package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -3
- package/dist/cjs/{snk-data-unit-3d9b6ed4.js → snk-data-unit-c699179d.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +21 -7
- package/dist/cjs/snk-grid.cjs.entry.js +6 -5
- package/dist/cjs/{snk-guides-viewer-421555af.js → snk-guides-viewer-575596a2.js} +2 -2
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +105 -31
- package/dist/cjs/snk-simple-crud.cjs.entry.js +6 -5
- package/dist/collection/collection-manifest.json +2 -0
- 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-crud/snk-crud.js +39 -20
- 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 +173 -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 +39 -20
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +89 -3
- package/dist/components/ContinuousInsertUtils.js +1 -2
- package/dist/components/ISave.js +346 -1
- package/dist/components/dataunit-fetcher.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -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 +76 -0
- package/dist/components/snk-actions-button2.js +0 -1
- package/dist/components/snk-application2.js +159 -20
- package/dist/components/snk-attach2.js +0 -1
- package/dist/components/snk-crud.js +5 -4
- package/dist/components/snk-data-exporter2.js +1 -2
- package/dist/components/snk-detail-view2.js +0 -1
- package/dist/components/snk-filter-bar2.js +23 -8
- package/dist/components/snk-grid2.js +5 -4
- package/dist/components/snk-pesquisa2.js +118 -33
- package/dist/components/snk-simple-crud2.js +6 -5
- package/dist/components/snk-simple-form-config2.js +1 -2
- package/dist/components/teste-pesquisa.js +13 -1
- package/dist/esm/{ContinuousInsertUtils-bab45060.js → ContinuousInsertUtils-15b5f1da.js} +2 -2
- package/dist/esm/{dataunit-fetcher-56cb648b.js → dataunit-fetcher-481e159d.js} +1 -1
- package/dist/esm/index-a7d3d3f1.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-24e5bba0.js → pesquisa-fetcher-c437c9b1.js} +176 -2
- package/dist/esm/pesquisa-grid_2.entry.js +122 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_5.entry.js +2 -2
- package/dist/esm/snk-application.entry.js +142 -19
- package/dist/esm/snk-attach.entry.js +2 -2
- package/dist/esm/snk-crud.entry.js +5 -4
- package/dist/esm/snk-data-exporter.entry.js +3 -3
- package/dist/esm/{snk-data-unit-9fa7d2b9.js → snk-data-unit-d4ba54d7.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +3 -3
- package/dist/esm/snk-filter-bar_4.entry.js +22 -8
- package/dist/esm/snk-grid.entry.js +6 -5
- package/dist/esm/{snk-guides-viewer-b740a1fe.js → snk-guides-viewer-3043422d.js} +2 -2
- package/dist/esm/snk-guides-viewer.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +105 -31
- package/dist/esm/snk-simple-crud.entry.js +6 -5
- package/dist/sankhyablocks/{p-c629c07a.entry.js → p-08242e3f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-342eeb3b.js → p-0f3b2a32.js} +1 -1
- package/dist/sankhyablocks/{p-72a451c8.js → p-229c3615.js} +1 -1
- package/dist/sankhyablocks/p-22d04eac.entry.js +1 -0
- package/dist/sankhyablocks/{p-b619ee23.js → p-36598f95.js} +1 -1
- package/dist/sankhyablocks/p-4895f6e4.entry.js +1 -0
- package/dist/sankhyablocks/p-4be4cdac.js +6 -0
- package/dist/sankhyablocks/{p-47d24ac8.js → p-58fd3017.js} +1 -1
- package/dist/sankhyablocks/p-70cb4e36.entry.js +11 -0
- package/dist/sankhyablocks/{p-64ff0fb6.entry.js → p-73fc8ec5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-50306605.entry.js → p-7d09f66c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-53ae0296.entry.js → p-a33e803a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-89da2953.entry.js → p-b299dc14.entry.js} +1 -1
- package/dist/sankhyablocks/p-badbd2ca.entry.js +1 -0
- package/dist/sankhyablocks/p-c9bd54e6.entry.js +1 -0
- package/dist/sankhyablocks/{p-0d2a2e9e.entry.js → p-e2bd42c0.entry.js} +1 -1
- package/dist/sankhyablocks/p-e8512d4b.entry.js +1 -0
- package/dist/sankhyablocks/p-f71d043b.entry.js +1 -0
- 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-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 +28 -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 +8 -1
- package/dist/types/components.d.ts +206 -23
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +10 -1
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/components/pesquisa-fetcher.js +0 -172
- package/dist/sankhyablocks/p-0c55538b.entry.js +0 -1
- package/dist/sankhyablocks/p-65650e05.entry.js +0 -1
- package/dist/sankhyablocks/p-690b4311.entry.js +0 -1
- package/dist/sankhyablocks/p-8cf0a9fe.entry.js +0 -1
- package/dist/sankhyablocks/p-d1791da2.entry.js +0 -1
- package/dist/sankhyablocks/p-e6683406.js +0 -6
- package/dist/sankhyablocks/p-eda55eef.entry.js +0 -11
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { ITreeItem } from '@sankhyalabs/ezui/.diststorybook/types/components/ez-tree/interfaces/ITreeItem';
|
|
3
|
+
import { IOption } from '@sankhyalabs/ezui/.diststorybook/types/components/ez-combo-box/ez-combo-box';
|
|
4
|
+
export declare class PesquisaTree {
|
|
5
|
+
private _tree;
|
|
6
|
+
/**
|
|
7
|
+
* Função responsável por carregar a árvore hierárquica do componente
|
|
8
|
+
*/
|
|
9
|
+
treeLoader?: (text: string) => Promise<Array<ITreeItem>>;
|
|
10
|
+
/**
|
|
11
|
+
* Argumentos que serão usados ao chamar a função treeLoader.
|
|
12
|
+
*/
|
|
13
|
+
argument: string;
|
|
14
|
+
/**
|
|
15
|
+
* Define se permite seleção de items não analíticos
|
|
16
|
+
*/
|
|
17
|
+
allowsNonAnalytic: boolean;
|
|
18
|
+
pesquisaTreeSelectItem: EventEmitter<IOption>;
|
|
19
|
+
items: ITreeItem[];
|
|
20
|
+
applyFilter(): Promise<void>;
|
|
21
|
+
private loadTree;
|
|
22
|
+
private expandOrCloseAllItems;
|
|
23
|
+
private handleExpandAll;
|
|
24
|
+
private handleCloseAll;
|
|
25
|
+
private handleDbClick;
|
|
26
|
+
componentWillLoad(): Promise<void>;
|
|
27
|
+
render(): any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { UnitMetadata } from '@sankhyalabs/core';
|
|
2
|
+
import { ITreeItem } from '@sankhyalabs/ezui/src/components/ez-tree/interfaces/ITreeItem';
|
|
3
|
+
import { IGridConfig } from '@sankhyalabs/ezui/.diststorybook/types/components/ez-grid/controller/EzGridController';
|
|
4
|
+
export declare function buildGridMetadata(rawValue: any): UnitMetadata;
|
|
5
|
+
export declare function parseLegacyTree(legacy: LegacyTree): ITreeItem[];
|
|
6
|
+
export interface LegacyTreeItem {
|
|
7
|
+
caminho: string;
|
|
8
|
+
codigo: string;
|
|
9
|
+
descricao: string;
|
|
10
|
+
analitico: string;
|
|
11
|
+
no?: LegacyTreeItem[];
|
|
12
|
+
}
|
|
13
|
+
export interface LegacyTree {
|
|
14
|
+
arvore: LegacyNode;
|
|
15
|
+
}
|
|
16
|
+
export interface LegacyNode {
|
|
17
|
+
no: LegacyTreeItem[];
|
|
18
|
+
}
|
|
19
|
+
export declare function parseGridConfig(rawConfig: any): IGridConfig | undefined;
|
|
@@ -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
|
}
|
|
@@ -43,6 +43,14 @@ export declare class SnkSimpleCrud {
|
|
|
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;
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { DataUnit, Filter, KeyboardManager, Record, UnitMetadata } from "@sankhyalabs/core";
|
|
9
|
+
import { IOption } from "@sankhyalabs/ezui/.diststorybook/types/components/ez-combo-box/ez-combo-box";
|
|
10
|
+
import { ITreeItem } from "@sankhyalabs/ezui/.diststorybook/types/components/ez-tree/interfaces/ITreeItem";
|
|
8
11
|
import { IAction } from "./components/snk-actions-button/actions/interfaces/IAction";
|
|
9
12
|
import { SnkMessageBuilder } from "./lib/message/SnkMessageBuilder";
|
|
10
|
-
import { DataUnit, Filter, KeyboardManager, Record, UnitMetadata } from "@sankhyalabs/core";
|
|
11
13
|
import { DataFetcher, Options } from "./lib/http/data-fetcher/DataFetcher";
|
|
12
14
|
import { AutorizationType } from "./lib/http/data-fetcher/fetchers/auth-fetcher";
|
|
13
15
|
import { AlertItem } from "@sankhyalabs/ezui/dist/types/components/ez-alert-list/ez-alert-list";
|
|
@@ -15,7 +17,7 @@ import { IAppletCallerParams } from "./lib/applet-caller/applet-caller";
|
|
|
15
17
|
import { IClientEventResponse } from "./lib/http/data-fetcher/interfaces/IClientEventResponse";
|
|
16
18
|
import { IDataFetcherRecaller } from "./lib/http/data-fetcher/recaller/IDataFetcherRecaller";
|
|
17
19
|
import { DialogType, MessageOptions } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
18
|
-
import { IOption, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search";
|
|
20
|
+
import { IOption as IOption1, ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search";
|
|
19
21
|
import { IRemoveSearchListener, ISearchListener, SearchCriteria } from "./lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
|
20
22
|
import { TFetcherType } from "./components/snk-attach/interfaces/TFetcherType";
|
|
21
23
|
import { AttachFetcherFacadeInterface, PresentationMode } from "./lib";
|
|
@@ -49,7 +51,7 @@ import { FilterFieldsDataSource, IFilterField, IFilterLink } from "./components/
|
|
|
49
51
|
import { IEzPopoverAnchorOptions } from "@sankhyalabs/ezui/dist/types/components/ez-popover/ez-popover";
|
|
50
52
|
import { SnkFilterItemConfig as SnkFilterItemConfig1 } from "./components/snk-filter-bar/filter-item/snk-filter-item";
|
|
51
53
|
import { ListItem as ListItem1 } from "./components/snk-filter-bar/filter-list/snk-filter-list";
|
|
52
|
-
import { IOption as
|
|
54
|
+
import { IOption as IOption2 } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
|
53
55
|
import { IFormViewField } from "@sankhyalabs/ezui/dist/types/components/ez-form-view/interfaces/IFormViewField";
|
|
54
56
|
import { FormMetadata } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
|
55
57
|
import { ICustomEditor as ICustomEditor1 } from "@sankhyalabs/ezui/dist/types/utils/customEditor/interfaces/ICustomEditor";
|
|
@@ -61,6 +63,43 @@ import { IBreadcrumbItem } from "@sankhyalabs/ezui/dist/types/components/ez-brea
|
|
|
61
63
|
import { ITab } from "./components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config";
|
|
62
64
|
import { Action as Action1, CustomButton } from "./components/snk-taskbar/snk-taskbar";
|
|
63
65
|
export namespace Components {
|
|
66
|
+
interface PesquisaGrid {
|
|
67
|
+
/**
|
|
68
|
+
* Registros da grade
|
|
69
|
+
*/
|
|
70
|
+
"dataSource": Record[];
|
|
71
|
+
/**
|
|
72
|
+
* Campo que representa a descrição do registro
|
|
73
|
+
*/
|
|
74
|
+
"descriptionField": string;
|
|
75
|
+
/**
|
|
76
|
+
* Nome da entidade representada na grade
|
|
77
|
+
*/
|
|
78
|
+
"entityName": string;
|
|
79
|
+
/**
|
|
80
|
+
* Campos que representam as colunas da grade.
|
|
81
|
+
*/
|
|
82
|
+
"metadata": UnitMetadata;
|
|
83
|
+
/**
|
|
84
|
+
* Campo que representa a chave primária do registro
|
|
85
|
+
*/
|
|
86
|
+
"pkField": string;
|
|
87
|
+
}
|
|
88
|
+
interface PesquisaTree {
|
|
89
|
+
/**
|
|
90
|
+
* Define se permite seleção de items não analíticos
|
|
91
|
+
*/
|
|
92
|
+
"allowsNonAnalytic": boolean;
|
|
93
|
+
"applyFilter": () => Promise<void>;
|
|
94
|
+
/**
|
|
95
|
+
* Argumentos que serão usados ao chamar a função treeLoader.
|
|
96
|
+
*/
|
|
97
|
+
"argument": string;
|
|
98
|
+
/**
|
|
99
|
+
* Função responsável por carregar a árvore hierárquica do componente
|
|
100
|
+
*/
|
|
101
|
+
"treeLoader"?: (text: string) => Promise<Array<ITreeItem>>;
|
|
102
|
+
}
|
|
64
103
|
interface SnkActionsButton {
|
|
65
104
|
}
|
|
66
105
|
interface SnkActionsForm {
|
|
@@ -84,6 +123,7 @@ export namespace Components {
|
|
|
84
123
|
* @param handler - Função de callback que será chamada quando o client event ocorrer.
|
|
85
124
|
*/
|
|
86
125
|
"addClientEvent": (eventID: String, handler: (clientEvent: IClientEventResponse, dataFetcherReacaller: IDataFetcherRecaller) => void) => Promise<void>;
|
|
126
|
+
"addLoadingLock": (forceReady?: boolean) => Promise<() => void>;
|
|
87
127
|
/**
|
|
88
128
|
* Adiciona uma ação pendente que deve ser executada por um determinado locker.
|
|
89
129
|
* @param actionsLocker nome do locker da ação que será adicionada
|
|
@@ -125,6 +165,10 @@ export namespace Components {
|
|
|
125
165
|
* Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
|
|
126
166
|
*/
|
|
127
167
|
"createDataunit": (entityName: string, dataUnitName?: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>;
|
|
168
|
+
/**
|
|
169
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
170
|
+
*/
|
|
171
|
+
"enableLockManagerLoadingApp": boolean;
|
|
128
172
|
/**
|
|
129
173
|
* Exibe o diálogo de erro de acordo com os parâmetros passados.
|
|
130
174
|
*/
|
|
@@ -132,11 +176,11 @@ export namespace Components {
|
|
|
132
176
|
/**
|
|
133
177
|
* Obtém as opções em componentes de pesquisa Ex.: snk-config-options
|
|
134
178
|
*/
|
|
135
|
-
"executePreparedSearch": (mode: string, argument: string, options: any) => Promise<Array<
|
|
179
|
+
"executePreparedSearch": (mode: string, argument: string, options: any) => Promise<Array<IOption1> | IOption1>;
|
|
136
180
|
/**
|
|
137
181
|
* Obtém as opções em componentes de pesquisa Ex.: snk-config-options
|
|
138
182
|
*/
|
|
139
|
-
"executeSearch": (searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit) => Promise<Array<
|
|
183
|
+
"executeSearch": (searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit, ctxOptions?: any) => Promise<Array<IOption1> | IOption1>;
|
|
140
184
|
/**
|
|
141
185
|
* Com base em um campo realiza um "select distinct" respeitando os filtros atuais do dataUnit e um critério de filtro para a própria coluna.
|
|
142
186
|
*/
|
|
@@ -251,6 +295,7 @@ export namespace Components {
|
|
|
251
295
|
* Obtém os totalizadores da grade.
|
|
252
296
|
*/
|
|
253
297
|
"loadTotals": (name: string, resourceID: string, filters: Array<Filter>) => Promise<Map<string, number>>;
|
|
298
|
+
"markToReload": () => Promise<void>;
|
|
254
299
|
/**
|
|
255
300
|
* Exibe um diálogo de mensagem comum
|
|
256
301
|
*/
|
|
@@ -469,9 +514,13 @@ export namespace Components {
|
|
|
469
514
|
*/
|
|
470
515
|
"enableGridInsert"?: boolean;
|
|
471
516
|
/**
|
|
472
|
-
*
|
|
517
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
518
|
+
*/
|
|
519
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
520
|
+
/**
|
|
521
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
473
522
|
*/
|
|
474
|
-
"
|
|
523
|
+
"enableLockManagerTaskbarClick"?: boolean;
|
|
475
524
|
/**
|
|
476
525
|
* Chave da configuração legado da barra de filtros.
|
|
477
526
|
*/
|
|
@@ -867,6 +916,10 @@ export namespace Components {
|
|
|
867
916
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
|
868
917
|
*/
|
|
869
918
|
"disablePersonalizedFilter": boolean;
|
|
919
|
+
/**
|
|
920
|
+
* Define se o componente deve usar o LockManager para controle de carregamento
|
|
921
|
+
*/
|
|
922
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
870
923
|
/**
|
|
871
924
|
* Chave da configuração legado da barra de filtros.
|
|
872
925
|
*/
|
|
@@ -1172,7 +1225,7 @@ export namespace Components {
|
|
|
1172
1225
|
/**
|
|
1173
1226
|
* Define o valor do componente snk-filter-search
|
|
1174
1227
|
*/
|
|
1175
|
-
"value":
|
|
1228
|
+
"value": IOption2;
|
|
1176
1229
|
}
|
|
1177
1230
|
interface SnkFilterText {
|
|
1178
1231
|
/**
|
|
@@ -1365,9 +1418,13 @@ export namespace Components {
|
|
|
1365
1418
|
*/
|
|
1366
1419
|
"enableGridInsert"?: boolean;
|
|
1367
1420
|
/**
|
|
1368
|
-
*
|
|
1421
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
1422
|
+
*/
|
|
1423
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
1424
|
+
/**
|
|
1425
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
1369
1426
|
*/
|
|
1370
|
-
"
|
|
1427
|
+
"enableLockManagerTaskbarClick"?: boolean;
|
|
1371
1428
|
/**
|
|
1372
1429
|
* Chave da configuração legado da barra de filtros.
|
|
1373
1430
|
*/
|
|
@@ -1633,13 +1690,25 @@ export namespace Components {
|
|
|
1633
1690
|
/**
|
|
1634
1691
|
* Controla o valor do componente.
|
|
1635
1692
|
*/
|
|
1636
|
-
"value": Array<
|
|
1693
|
+
"value": Array<IOption2|boolean|string|number|Date>;
|
|
1637
1694
|
}
|
|
1638
1695
|
interface SnkPesquisa {
|
|
1696
|
+
/**
|
|
1697
|
+
* Define se permite seleção de items não analíticos
|
|
1698
|
+
*/
|
|
1699
|
+
"allowsNonAnalytic": boolean;
|
|
1639
1700
|
/**
|
|
1640
1701
|
* Argumentos que serão usados ao chamar a função searchLoader.
|
|
1641
1702
|
*/
|
|
1642
1703
|
"argument": string;
|
|
1704
|
+
/**
|
|
1705
|
+
* Nome da entidade onde a pesquisa é aplicada.
|
|
1706
|
+
*/
|
|
1707
|
+
"entityName": string;
|
|
1708
|
+
/**
|
|
1709
|
+
* Define se a popup de pesquisa possuirá ou não modo Hierarquico.
|
|
1710
|
+
*/
|
|
1711
|
+
"isHierarchyEntity": boolean;
|
|
1643
1712
|
/**
|
|
1644
1713
|
* Função responsável em carregar os itens do componente snk-pesquisa.
|
|
1645
1714
|
*/
|
|
@@ -1647,7 +1716,11 @@ export namespace Components {
|
|
|
1647
1716
|
/**
|
|
1648
1717
|
* Função disparada ao selecionar um item.
|
|
1649
1718
|
*/
|
|
1650
|
-
"selectItem": (option:
|
|
1719
|
+
"selectItem": (option: IOption2) => void;
|
|
1720
|
+
/**
|
|
1721
|
+
* Função responsável por carregar a árvore hierárquica do componente
|
|
1722
|
+
*/
|
|
1723
|
+
"treeLoader"?: (text: string) => Promise<any>;
|
|
1651
1724
|
}
|
|
1652
1725
|
interface SnkPrintSelector {
|
|
1653
1726
|
"openPrintSelector": (printJobData: PendingPrintJobData) => Promise<PrintSelectorResponse>;
|
|
@@ -1656,7 +1729,7 @@ export namespace Components {
|
|
|
1656
1729
|
/**
|
|
1657
1730
|
* Determina a opção selecionada.
|
|
1658
1731
|
*/
|
|
1659
|
-
"selectedOption":
|
|
1732
|
+
"selectedOption": IOption2 | string;
|
|
1660
1733
|
}
|
|
1661
1734
|
interface SnkSimpleBar {
|
|
1662
1735
|
/**
|
|
@@ -1715,7 +1788,14 @@ export namespace Components {
|
|
|
1715
1788
|
* Ativa inserção de registros no modo grade.
|
|
1716
1789
|
*/
|
|
1717
1790
|
"enableGridInsert"?: boolean;
|
|
1718
|
-
|
|
1791
|
+
/**
|
|
1792
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
1793
|
+
*/
|
|
1794
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
1795
|
+
/**
|
|
1796
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
1797
|
+
*/
|
|
1798
|
+
"enableLockManagerTaskbarClick"?: boolean;
|
|
1719
1799
|
/**
|
|
1720
1800
|
* Define o nome da entidade que o componente vai utilizar para fazer as operações de CRUD
|
|
1721
1801
|
*/
|
|
@@ -1912,6 +1992,14 @@ export namespace Components {
|
|
|
1912
1992
|
interface TestePesquisa {
|
|
1913
1993
|
}
|
|
1914
1994
|
}
|
|
1995
|
+
export interface PesquisaGridCustomEvent<T> extends CustomEvent<T> {
|
|
1996
|
+
detail: T;
|
|
1997
|
+
target: HTMLPesquisaGridElement;
|
|
1998
|
+
}
|
|
1999
|
+
export interface PesquisaTreeCustomEvent<T> extends CustomEvent<T> {
|
|
2000
|
+
detail: T;
|
|
2001
|
+
target: HTMLPesquisaTreeElement;
|
|
2002
|
+
}
|
|
1915
2003
|
export interface SnkApplicationCustomEvent<T> extends CustomEvent<T> {
|
|
1916
2004
|
detail: T;
|
|
1917
2005
|
target: HTMLSnkApplicationElement;
|
|
@@ -2081,6 +2169,18 @@ export interface TaskbarActionsButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
2081
2169
|
target: HTMLTaskbarActionsButtonElement;
|
|
2082
2170
|
}
|
|
2083
2171
|
declare global {
|
|
2172
|
+
interface HTMLPesquisaGridElement extends Components.PesquisaGrid, HTMLStencilElement {
|
|
2173
|
+
}
|
|
2174
|
+
var HTMLPesquisaGridElement: {
|
|
2175
|
+
prototype: HTMLPesquisaGridElement;
|
|
2176
|
+
new (): HTMLPesquisaGridElement;
|
|
2177
|
+
};
|
|
2178
|
+
interface HTMLPesquisaTreeElement extends Components.PesquisaTree, HTMLStencilElement {
|
|
2179
|
+
}
|
|
2180
|
+
var HTMLPesquisaTreeElement: {
|
|
2181
|
+
prototype: HTMLPesquisaTreeElement;
|
|
2182
|
+
new (): HTMLPesquisaTreeElement;
|
|
2183
|
+
};
|
|
2084
2184
|
interface HTMLSnkActionsButtonElement extends Components.SnkActionsButton, HTMLStencilElement {
|
|
2085
2185
|
}
|
|
2086
2186
|
var HTMLSnkActionsButtonElement: {
|
|
@@ -2400,6 +2500,8 @@ declare global {
|
|
|
2400
2500
|
new (): HTMLTestePesquisaElement;
|
|
2401
2501
|
};
|
|
2402
2502
|
interface HTMLElementTagNameMap {
|
|
2503
|
+
"pesquisa-grid": HTMLPesquisaGridElement;
|
|
2504
|
+
"pesquisa-tree": HTMLPesquisaTreeElement;
|
|
2403
2505
|
"snk-actions-button": HTMLSnkActionsButtonElement;
|
|
2404
2506
|
"snk-actions-form": HTMLSnkActionsFormElement;
|
|
2405
2507
|
"snk-application": HTMLSnkApplicationElement;
|
|
@@ -2456,6 +2558,44 @@ declare global {
|
|
|
2456
2558
|
}
|
|
2457
2559
|
}
|
|
2458
2560
|
declare namespace LocalJSX {
|
|
2561
|
+
interface PesquisaGrid {
|
|
2562
|
+
/**
|
|
2563
|
+
* Registros da grade
|
|
2564
|
+
*/
|
|
2565
|
+
"dataSource"?: Record[];
|
|
2566
|
+
/**
|
|
2567
|
+
* Campo que representa a descrição do registro
|
|
2568
|
+
*/
|
|
2569
|
+
"descriptionField"?: string;
|
|
2570
|
+
/**
|
|
2571
|
+
* Nome da entidade representada na grade
|
|
2572
|
+
*/
|
|
2573
|
+
"entityName"?: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* Campos que representam as colunas da grade.
|
|
2576
|
+
*/
|
|
2577
|
+
"metadata"?: UnitMetadata;
|
|
2578
|
+
"onPesquisaGridSelectItem"?: (event: PesquisaGridCustomEvent<IOption>) => void;
|
|
2579
|
+
/**
|
|
2580
|
+
* Campo que representa a chave primária do registro
|
|
2581
|
+
*/
|
|
2582
|
+
"pkField"?: string;
|
|
2583
|
+
}
|
|
2584
|
+
interface PesquisaTree {
|
|
2585
|
+
/**
|
|
2586
|
+
* Define se permite seleção de items não analíticos
|
|
2587
|
+
*/
|
|
2588
|
+
"allowsNonAnalytic"?: boolean;
|
|
2589
|
+
/**
|
|
2590
|
+
* Argumentos que serão usados ao chamar a função treeLoader.
|
|
2591
|
+
*/
|
|
2592
|
+
"argument"?: string;
|
|
2593
|
+
"onPesquisaTreeSelectItem"?: (event: PesquisaTreeCustomEvent<IOption>) => void;
|
|
2594
|
+
/**
|
|
2595
|
+
* Função responsável por carregar a árvore hierárquica do componente
|
|
2596
|
+
*/
|
|
2597
|
+
"treeLoader"?: (text: string) => Promise<Array<ITreeItem>>;
|
|
2598
|
+
}
|
|
2459
2599
|
interface SnkActionsButton {
|
|
2460
2600
|
}
|
|
2461
2601
|
interface SnkActionsForm {
|
|
@@ -2473,6 +2613,10 @@ declare namespace LocalJSX {
|
|
|
2473
2613
|
* Usado para salvar as configurações dos blocos de construção.
|
|
2474
2614
|
*/
|
|
2475
2615
|
"configName"?: string;
|
|
2616
|
+
/**
|
|
2617
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
2618
|
+
*/
|
|
2619
|
+
"enableLockManagerLoadingApp"?: boolean;
|
|
2476
2620
|
/**
|
|
2477
2621
|
* Chave da configuração legado do formulário.
|
|
2478
2622
|
*/
|
|
@@ -2641,9 +2785,13 @@ declare namespace LocalJSX {
|
|
|
2641
2785
|
*/
|
|
2642
2786
|
"enableGridInsert"?: boolean;
|
|
2643
2787
|
/**
|
|
2644
|
-
*
|
|
2788
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
2789
|
+
*/
|
|
2790
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
2791
|
+
/**
|
|
2792
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
2645
2793
|
*/
|
|
2646
|
-
"
|
|
2794
|
+
"enableLockManagerTaskbarClick"?: boolean;
|
|
2647
2795
|
/**
|
|
2648
2796
|
* Chave da configuração legado da barra de filtros.
|
|
2649
2797
|
*/
|
|
@@ -3057,6 +3205,10 @@ declare namespace LocalJSX {
|
|
|
3057
3205
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
|
3058
3206
|
*/
|
|
3059
3207
|
"disablePersonalizedFilter"?: boolean;
|
|
3208
|
+
/**
|
|
3209
|
+
* Define se o componente deve usar o LockManager para controle de carregamento
|
|
3210
|
+
*/
|
|
3211
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
3060
3212
|
/**
|
|
3061
3213
|
* Chave da configuração legado da barra de filtros.
|
|
3062
3214
|
*/
|
|
@@ -3332,7 +3484,7 @@ declare namespace LocalJSX {
|
|
|
3332
3484
|
/**
|
|
3333
3485
|
* Define o valor do componente snk-filter-search
|
|
3334
3486
|
*/
|
|
3335
|
-
"value"?:
|
|
3487
|
+
"value"?: IOption2;
|
|
3336
3488
|
}
|
|
3337
3489
|
interface SnkFilterText {
|
|
3338
3490
|
/**
|
|
@@ -3524,9 +3676,13 @@ declare namespace LocalJSX {
|
|
|
3524
3676
|
*/
|
|
3525
3677
|
"enableGridInsert"?: boolean;
|
|
3526
3678
|
/**
|
|
3527
|
-
*
|
|
3679
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
3680
|
+
*/
|
|
3681
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
3682
|
+
/**
|
|
3683
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
3528
3684
|
*/
|
|
3529
|
-
"
|
|
3685
|
+
"enableLockManagerTaskbarClick"?: boolean;
|
|
3530
3686
|
/**
|
|
3531
3687
|
* Chave da configuração legado da barra de filtros.
|
|
3532
3688
|
*/
|
|
@@ -3768,13 +3924,25 @@ declare namespace LocalJSX {
|
|
|
3768
3924
|
/**
|
|
3769
3925
|
* Controla o valor do componente.
|
|
3770
3926
|
*/
|
|
3771
|
-
"value"?: Array<
|
|
3927
|
+
"value"?: Array<IOption2|boolean|string|number|Date>;
|
|
3772
3928
|
}
|
|
3773
3929
|
interface SnkPesquisa {
|
|
3930
|
+
/**
|
|
3931
|
+
* Define se permite seleção de items não analíticos
|
|
3932
|
+
*/
|
|
3933
|
+
"allowsNonAnalytic"?: boolean;
|
|
3774
3934
|
/**
|
|
3775
3935
|
* Argumentos que serão usados ao chamar a função searchLoader.
|
|
3776
3936
|
*/
|
|
3777
3937
|
"argument"?: string;
|
|
3938
|
+
/**
|
|
3939
|
+
* Nome da entidade onde a pesquisa é aplicada.
|
|
3940
|
+
*/
|
|
3941
|
+
"entityName"?: string;
|
|
3942
|
+
/**
|
|
3943
|
+
* Define se a popup de pesquisa possuirá ou não modo Hierarquico.
|
|
3944
|
+
*/
|
|
3945
|
+
"isHierarchyEntity"?: boolean;
|
|
3778
3946
|
/**
|
|
3779
3947
|
* Função responsável em carregar os itens do componente snk-pesquisa.
|
|
3780
3948
|
*/
|
|
@@ -3782,7 +3950,11 @@ declare namespace LocalJSX {
|
|
|
3782
3950
|
/**
|
|
3783
3951
|
* Função disparada ao selecionar um item.
|
|
3784
3952
|
*/
|
|
3785
|
-
"selectItem"?: (option:
|
|
3953
|
+
"selectItem"?: (option: IOption2) => void;
|
|
3954
|
+
/**
|
|
3955
|
+
* Função responsável por carregar a árvore hierárquica do componente
|
|
3956
|
+
*/
|
|
3957
|
+
"treeLoader"?: (text: string) => Promise<any>;
|
|
3786
3958
|
}
|
|
3787
3959
|
interface SnkPrintSelector {
|
|
3788
3960
|
}
|
|
@@ -3794,7 +3966,7 @@ declare namespace LocalJSX {
|
|
|
3794
3966
|
/**
|
|
3795
3967
|
* Determina a opção selecionada.
|
|
3796
3968
|
*/
|
|
3797
|
-
"selectedOption"?:
|
|
3969
|
+
"selectedOption"?: IOption2 | string;
|
|
3798
3970
|
}
|
|
3799
3971
|
interface SnkSimpleBar {
|
|
3800
3972
|
/**
|
|
@@ -3845,7 +4017,14 @@ declare namespace LocalJSX {
|
|
|
3845
4017
|
* Ativa inserção de registros no modo grade.
|
|
3846
4018
|
*/
|
|
3847
4019
|
"enableGridInsert"?: boolean;
|
|
3848
|
-
|
|
4020
|
+
/**
|
|
4021
|
+
* Define se o componente deve usar o LockManager para controle de carregamento da aplicação
|
|
4022
|
+
*/
|
|
4023
|
+
"enableLockManagerLoadingComp"?: boolean;
|
|
4024
|
+
/**
|
|
4025
|
+
* Ativa o gerenciamento de locks na grade pela Taskbar.
|
|
4026
|
+
*/
|
|
4027
|
+
"enableLockManagerTaskbarClick"?: boolean;
|
|
3849
4028
|
/**
|
|
3850
4029
|
* Define o nome da entidade que o componente vai utilizar para fazer as operações de CRUD
|
|
3851
4030
|
*/
|
|
@@ -4079,6 +4258,8 @@ declare namespace LocalJSX {
|
|
|
4079
4258
|
interface TestePesquisa {
|
|
4080
4259
|
}
|
|
4081
4260
|
interface IntrinsicElements {
|
|
4261
|
+
"pesquisa-grid": PesquisaGrid;
|
|
4262
|
+
"pesquisa-tree": PesquisaTree;
|
|
4082
4263
|
"snk-actions-button": SnkActionsButton;
|
|
4083
4264
|
"snk-actions-form": SnkActionsForm;
|
|
4084
4265
|
"snk-application": SnkApplication;
|
|
@@ -4138,6 +4319,8 @@ export { LocalJSX as JSX };
|
|
|
4138
4319
|
declare module "@stencil/core" {
|
|
4139
4320
|
export namespace JSX {
|
|
4140
4321
|
interface IntrinsicElements {
|
|
4322
|
+
"pesquisa-grid": LocalJSX.PesquisaGrid & JSXBase.HTMLAttributes<HTMLPesquisaGridElement>;
|
|
4323
|
+
"pesquisa-tree": LocalJSX.PesquisaTree & JSXBase.HTMLAttributes<HTMLPesquisaTreeElement>;
|
|
4141
4324
|
"snk-actions-button": LocalJSX.SnkActionsButton & JSXBase.HTMLAttributes<HTMLSnkActionsButtonElement>;
|
|
4142
4325
|
"snk-actions-form": LocalJSX.SnkActionsForm & JSXBase.HTMLAttributes<HTMLSnkActionsFormElement>;
|
|
4143
4326
|
"snk-application": LocalJSX.SnkApplication & JSXBase.HTMLAttributes<HTMLSnkApplicationElement>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IGridConfig } from '@sankhyalabs/ezui/.diststorybook/types/components/ez-grid/controller/EzGridController';
|
|
2
|
+
import { EzGridColumnConfig } from '@sankhyalabs/ezui/src/components/ez-grid/controller/EzGridController';
|
|
3
|
+
import { ITreeItem } from '@sankhyalabs/ezui/src/components/ez-tree/interfaces/ITreeItem';
|
|
4
|
+
import { DataType } from '@sankhyalabs/core';
|
|
2
5
|
export declare class PesquisaFetcher {
|
|
3
6
|
private _defaultPageSize;
|
|
4
7
|
private _templateByQuery;
|
|
@@ -9,6 +12,12 @@ export declare class PesquisaFetcher {
|
|
|
9
12
|
loadAdvancedSearch(entityName: string, argument: string, criteria?: SearchCriteria, searchOptions?: SearchOptions): Promise<any>;
|
|
10
13
|
addSearchListener(entityName: string, dataUnitID: DataUnitID, listener: ISearchListener): IRemoveSearchListener;
|
|
11
14
|
private applySearchListener;
|
|
15
|
+
loadPresentationConfig(entityName: string): Promise<string>;
|
|
16
|
+
savePresentationConfig(entityName: string, lastUsedMode: string): Promise<void>;
|
|
17
|
+
loadPesquisaGridConfig(entityName: string): Promise<IGridConfig | undefined>;
|
|
18
|
+
savePesquisaGridConfig(entityName: string, columns: Array<EzGridColumnConfig>): Promise<void>;
|
|
19
|
+
loadTree(entityName: string, argument: string, criteria?: SearchCriteria, searchOptions?: SearchOptions): Promise<Array<ITreeItem>>;
|
|
20
|
+
private buildLoadTreeRequestBody;
|
|
12
21
|
}
|
|
13
22
|
export interface SearchCriteria {
|
|
14
23
|
expression: string;
|
package/package.json
CHANGED
package/react/components.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { JSX } from '@sankhyalabs/sankhyablocks';
|
|
3
|
+
export declare const PesquisaGrid: import("react").ForwardRefExoticComponent<JSX.PesquisaGrid & Omit<import("react").HTMLAttributes<HTMLPesquisaGridElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPesquisaGridElement>>;
|
|
4
|
+
export declare const PesquisaTree: import("react").ForwardRefExoticComponent<JSX.PesquisaTree & Omit<import("react").HTMLAttributes<HTMLPesquisaTreeElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPesquisaTreeElement>>;
|
|
3
5
|
export declare const SnkActionsButton: import("react").ForwardRefExoticComponent<JSX.SnkActionsButton & Omit<import("react").HTMLAttributes<HTMLSnkActionsButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSnkActionsButtonElement>>;
|
|
4
6
|
export declare const SnkActionsForm: import("react").ForwardRefExoticComponent<JSX.SnkActionsForm & Omit<import("react").HTMLAttributes<HTMLSnkActionsFormElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSnkActionsFormElement>>;
|
|
5
7
|
export declare const SnkApplication: import("react").ForwardRefExoticComponent<JSX.SnkApplication & Omit<import("react").HTMLAttributes<HTMLSnkApplicationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSnkApplicationElement>>;
|
package/react/components.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* auto-generated react proxies */
|
|
4
4
|
import { createReactComponent } from './react-component-lib';
|
|
5
|
+
export const PesquisaGrid = /*@__PURE__*/ createReactComponent('pesquisa-grid');
|
|
6
|
+
export const PesquisaTree = /*@__PURE__*/ createReactComponent('pesquisa-tree');
|
|
5
7
|
export const SnkActionsButton = /*@__PURE__*/ createReactComponent('snk-actions-button');
|
|
6
8
|
export const SnkActionsForm = /*@__PURE__*/ createReactComponent('snk-actions-form');
|
|
7
9
|
export const SnkApplication = /*@__PURE__*/ createReactComponent('snk-application');
|