@sankhyalabs/sankhyablocks 10.1.0-dev.37 → 10.1.0-dev.39
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-e384fb7b.js → ConfigStorage-a1fab5ca.js} +2 -2
- package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
- package/dist/cjs/{DataFetcher-3a8ea521.js → DataFetcher-384d2ce8.js} +1 -1
- package/dist/cjs/{ISave-a66bb65e.js → ISave-ecbe9336.js} +1 -1
- package/dist/cjs/{ImageUtils-5e3f406b.js → ImageUtils-c46f2d11.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-73df0f8b.js → SnkFormConfigManager-44386305.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-d9558dba.js → SnkMessageBuilder-a9300ebe.js} +24 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-016393f3.js → SnkMultiSelectionListDataSource-b951ed91.js} +61 -47
- package/dist/cjs/{auth-fetcher-80e608b0.js → auth-fetcher-6b134ec4.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-6febd6c4.js → dataunit-fetcher-93f53260.js} +2 -2
- package/dist/cjs/{form-config-fetcher-81cbd405.js → form-config-fetcher-45d1964c.js} +1 -1
- package/dist/cjs/index-1894343a.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_8.cjs.entry.js → snk-actions-button_9.cjs.entry.js} +52 -12
- package/dist/cjs/snk-application.cjs.entry.js +7 -7
- package/dist/cjs/snk-attach.cjs.entry.js +50 -24
- package/dist/cjs/snk-crud.cjs.entry.js +344 -109
- package/dist/cjs/snk-data-exporter.cjs.entry.js +8 -7
- package/dist/cjs/{snk-data-unit-94757628.js → snk-data-unit-6abc5efc.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +11 -16
- package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +39 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +106 -95
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -4
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +5 -5
- package/dist/cjs/snk-grid.cjs.entry.js +40 -17
- package/dist/cjs/{snk-guides-viewer-688c4398.js → snk-guides-viewer-b4ca3437.js} +37 -153
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -17
- package/dist/cjs/snk-image-input.cjs.entry.js +2 -2
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +5 -5
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +5 -5
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +12 -12
- package/dist/cjs/snk-taskbar.cjs.entry.js +181 -124
- package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
- package/dist/collection/components/snk-attach/snk-attach.css +29 -7
- package/dist/collection/components/snk-attach/snk-attach.js +81 -18
- package/dist/collection/components/snk-crud/snk-crud.css +46 -0
- package/dist/collection/components/snk-crud/snk-crud.js +143 -94
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -5
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +35 -144
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +23 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +6 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +8 -5
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +139 -84
- package/dist/collection/components/snk-grid/snk-grid.css +12 -3
- package/dist/collection/components/snk-grid/snk-grid.js +148 -4
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +1 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +51 -35
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
- package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +248 -132
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +8 -0
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +8 -0
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +8 -0
- package/dist/components/ContinuousInsertUtils.js +1 -1
- package/dist/components/SnkMessageBuilder.js +24 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/snk-actions-button2.js +6 -3
- package/dist/components/snk-attach2.js +56 -27
- package/dist/components/snk-crud.js +422 -175
- package/dist/components/snk-data-exporter2.js +3 -1
- package/dist/components/snk-detail-view2.js +158 -258
- package/dist/components/snk-entity-search.d.ts +11 -0
- package/dist/components/snk-entity-search.js +6 -0
- package/dist/components/snk-entity-search2.js +231 -0
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +94 -85
- package/dist/components/snk-filter-item2.js +4 -2
- package/dist/components/snk-filter-modal2.js +8 -5
- package/dist/components/snk-grid2.js +82 -47
- package/dist/components/snk-image-input2.js +1 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +29 -23
- package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
- package/dist/components/snk-taskbar-skeleton.js +6 -0
- package/dist/components/snk-taskbar-skeleton2.js +29 -0
- package/dist/components/snk-taskbar2.js +253 -174
- package/dist/components/taskbar-actions-button2.js +21 -2
- package/dist/components/taskbar-split-button2.js +10 -1
- package/dist/esm/{ConfigStorage-82ff76fb.js → ConfigStorage-76872695.js} +2 -2
- package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
- package/dist/esm/{DataFetcher-1dd7e8c0.js → DataFetcher-e60f8d53.js} +1 -1
- package/dist/esm/{ISave-498c4831.js → ISave-4929c071.js} +1 -1
- package/dist/esm/{ImageUtils-8fc8d905.js → ImageUtils-7f3a4149.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-e8ae1561.js → SnkFormConfigManager-83f6b22f.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-c0bc4424.js → SnkMessageBuilder-1eb7a1af.js} +24 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-ec783ded.js → SnkMultiSelectionListDataSource-7fe25a58.js} +55 -41
- package/dist/esm/{auth-fetcher-38a83f5e.js → auth-fetcher-1a31c1e4.js} +1 -1
- package/dist/esm/{dataunit-fetcher-21c43ec7.js → dataunit-fetcher-050b6d31.js} +2 -2
- package/dist/esm/{form-config-fetcher-24eb587c.js → form-config-fetcher-b44b2727.js} +1 -1
- package/dist/esm/index-04f73a26.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +5 -5
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_8.entry.js → snk-actions-button_9.entry.js} +52 -13
- package/dist/esm/snk-application.entry.js +7 -7
- package/dist/esm/snk-attach.entry.js +50 -24
- package/dist/esm/snk-crud.entry.js +333 -98
- package/dist/esm/snk-data-exporter.entry.js +8 -7
- package/dist/esm/{snk-data-unit-3b06a0f3.js → snk-data-unit-ca2c9858.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-detail-view.entry.js +11 -16
- package/dist/esm/snk-entity-search.entry.js +207 -0
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +40 -3
- package/dist/esm/snk-filter-bar_4.entry.js +107 -96
- package/dist/esm/snk-filter-modal-item.entry.js +4 -4
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-form_2.entry.js +5 -5
- package/dist/esm/snk-grid.entry.js +37 -14
- package/dist/esm/{snk-guides-viewer-6ddc7e6a.js → snk-guides-viewer-cc37535b.js} +38 -154
- package/dist/esm/snk-guides-viewer.entry.js +9 -17
- package/dist/esm/snk-image-input.entry.js +2 -2
- package/dist/esm/snk-layout-form-config.entry.js +5 -5
- package/dist/esm/snk-personalized-filter.entry.js +5 -5
- package/dist/esm/snk-pesquisa.entry.js +5 -5
- package/dist/esm/snk-simple-crud.entry.js +10 -10
- package/dist/esm/snk-taskbar.entry.js +182 -125
- package/dist/esm/taskbar-elements-63651ca7.js +149 -0
- package/dist/sankhyablocks/p-09ba6bd4.js +1 -0
- package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
- package/dist/sankhyablocks/{p-54f5c36d.entry.js → p-20af4b6a.entry.js} +1 -1
- package/dist/sankhyablocks/p-225f92cf.entry.js +1 -0
- package/dist/sankhyablocks/{p-605a2a99.entry.js → p-251aee41.entry.js} +1 -1
- package/dist/sankhyablocks/p-2af815bb.entry.js +1 -0
- package/dist/sankhyablocks/{p-bdf0077f.js → p-2af8aca3.js} +1 -1
- package/dist/sankhyablocks/p-3072136e.js +1 -0
- package/dist/sankhyablocks/p-33492640.entry.js +1 -0
- package/dist/sankhyablocks/{p-f208ec52.entry.js → p-35317d9a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6753f16e.js → p-3704bf1b.js} +1 -1
- package/dist/sankhyablocks/{p-2d606189.js → p-3870748a.js} +1 -1
- package/dist/sankhyablocks/{p-e057ecb6.js → p-3c990841.js} +1 -1
- package/dist/sankhyablocks/{p-4ff3b494.js → p-420b39b5.js} +1 -1
- package/dist/sankhyablocks/{p-8bb4e86b.entry.js → p-46f75667.entry.js} +1 -1
- package/dist/sankhyablocks/{p-32ad76cc.js → p-4f7adf97.js} +2 -2
- package/dist/sankhyablocks/p-554c0e54.js +1 -0
- package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
- package/dist/sankhyablocks/p-771b137e.js +1 -0
- package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
- package/dist/sankhyablocks/p-7c8bf699.entry.js +1 -0
- package/dist/sankhyablocks/{p-d34a41ec.entry.js → p-8a8900a9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e484913b.entry.js → p-95af0bb1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-10cad767.entry.js → p-98241c21.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f5b929c2.entry.js → p-ab12f544.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ef8cf0e2.js → p-ab5e12fa.js} +1 -1
- package/dist/sankhyablocks/p-ac384a1e.entry.js +1 -0
- package/dist/sankhyablocks/{p-3a98c337.entry.js → p-aff2d081.entry.js} +1 -1
- package/dist/sankhyablocks/p-b3b51693.entry.js +1 -0
- package/dist/sankhyablocks/{p-08415ef7.entry.js → p-bab4cde4.entry.js} +1 -1
- package/dist/sankhyablocks/p-ce3b284c.entry.js +1 -0
- package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
- package/dist/sankhyablocks/{p-b9970342.js → p-d972a9c1.js} +1 -1
- package/dist/sankhyablocks/p-e5a3711f.js +1 -0
- package/dist/sankhyablocks/{p-2b882835.entry.js → p-e737fd5a.entry.js} +1 -1
- package/dist/sankhyablocks/p-efd18bc2.entry.js +1 -0
- package/dist/sankhyablocks/{p-362e6e8c.js → p-f185d5ad.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +20 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +28 -10
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +4 -18
- package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +32 -20
- package/dist/types/components/snk-grid/snk-grid.d.ts +28 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
- package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +32 -21
- package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
- package/dist/types/components.d.ts +197 -4
- package/package.json +2 -2
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
- package/dist/cjs/taskbar-elements-a94d4318.js +0 -133
- package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
- package/dist/esm/snk-simple-bar.entry.js +0 -41
- package/dist/esm/taskbar-elements-97541bdd.js +0 -130
- package/dist/esm/taskbar-processor-3436124c.js +0 -51
- package/dist/sankhyablocks/p-07aa8192.entry.js +0 -1
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-27aea149.entry.js +0 -1
- package/dist/sankhyablocks/p-27d6590e.js +0 -1
- package/dist/sankhyablocks/p-449e36d2.entry.js +0 -1
- package/dist/sankhyablocks/p-615655bd.entry.js +0 -1
- package/dist/sankhyablocks/p-62e17eea.entry.js +0 -1
- package/dist/sankhyablocks/p-6e1a7929.entry.js +0 -1
- package/dist/sankhyablocks/p-72d62f22.js +0 -1
- package/dist/sankhyablocks/p-9c1ff75e.entry.js +0 -1
- package/dist/sankhyablocks/p-a8c5ebf1.entry.js +0 -1
- package/dist/sankhyablocks/p-b25777fa.entry.js +0 -1
- package/dist/sankhyablocks/p-b6d47f08.entry.js +0 -1
- package/dist/sankhyablocks/p-b8453e18.js +0 -1
- package/dist/sankhyablocks/p-c8043a53.entry.js +0 -1
- package/dist/sankhyablocks/p-f0c9969e.entry.js +0 -1
- package/dist/sankhyablocks/p-fc5938fb.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataUnit, KeyboardManager } from '@sankhyalabs/core';
|
|
2
|
-
import { IGridConfig, IStatusResolver, StatusResolverFunction } from '@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController';
|
|
2
|
+
import { EzGridColumn, IGridConfig, IStatusResolver, StatusResolverFunction } from '@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController';
|
|
3
3
|
import { ICustomFormatter, ISelectionToastConfig } from '@sankhyalabs/ezui/dist/types/components/ez-grid/interfaces';
|
|
4
4
|
import { IMultiSelectionListDataSource } from '@sankhyalabs/ezui/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource';
|
|
5
5
|
import { ICustomEditor, ICustomRender } from '@sankhyalabs/ezui/dist/types/utils';
|
|
@@ -210,6 +210,21 @@ export declare class SnkGrid {
|
|
|
210
210
|
* @returns {Array<SnkFilterItemConfig>} Retorna a lista de configurações de filtros.
|
|
211
211
|
*/
|
|
212
212
|
filterCustomConfigInterceptor?: (config: Array<SnkFilterItemConfig>) => Array<SnkFilterItemConfig>;
|
|
213
|
+
/**
|
|
214
|
+
* Oculta a paginação da grade.
|
|
215
|
+
* @default false
|
|
216
|
+
*/
|
|
217
|
+
hidePagination: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Oculta o cabeçalho da grade (filtros e taskbar superior).
|
|
220
|
+
* @default false
|
|
221
|
+
*/
|
|
222
|
+
hideHeader: boolean;
|
|
223
|
+
/**
|
|
224
|
+
* Oculta a barra de tarefas interna da grade.
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
hideGridTaskbar: boolean;
|
|
213
228
|
/**
|
|
214
229
|
* Emitido ao clicar em um botão de ação ou item de menu.
|
|
215
230
|
* @description Este evento é acionado quando o usuário clica em um botão de ação ou item de menu na grade, permitindo a execução de ações específicas.
|
|
@@ -311,6 +326,18 @@ export declare class SnkGrid {
|
|
|
311
326
|
* @returns {Promise<void>} Uma promessa que é resolvida quando o foco é atribuído.
|
|
312
327
|
*/
|
|
313
328
|
setFocus(): Promise<void>;
|
|
329
|
+
/**
|
|
330
|
+
* Manipula a mudança de página da grid.
|
|
331
|
+
*/
|
|
332
|
+
handlePageChange(): Promise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* Localiza determinada coluna tornando-a visível.
|
|
335
|
+
*/
|
|
336
|
+
locateColumn(columnName: string): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Usa um argumento para filtrar as colunas por label
|
|
339
|
+
*/
|
|
340
|
+
filterColumns(search: string): Promise<EzGridColumn[]>;
|
|
314
341
|
handleClick(event: MouseEvent): Promise<void>;
|
|
315
342
|
private hasToBlockEvent;
|
|
316
343
|
handleGridLegacyConfigName(newLegacyConfig: string, oldLegacyConfig: string): Promise<void>;
|
|
@@ -3,6 +3,7 @@ import { Action } from '../../snk-taskbar';
|
|
|
3
3
|
export declare class TaskbarActionsButton {
|
|
4
4
|
private _element;
|
|
5
5
|
private _showDropdown;
|
|
6
|
+
private _openToLeft;
|
|
6
7
|
/**
|
|
7
8
|
* Texto que será exibido no botão
|
|
8
9
|
*/
|
|
@@ -15,6 +16,10 @@ export declare class TaskbarActionsButton {
|
|
|
15
16
|
* Define a lista de ações.
|
|
16
17
|
*/
|
|
17
18
|
actions: Array<Action>;
|
|
19
|
+
/**
|
|
20
|
+
* Define o tamanho do botão, podendo ser 'small', 'medium' ou 'large'.
|
|
21
|
+
*/
|
|
22
|
+
size: 'small' | 'medium' | 'large';
|
|
18
23
|
/**
|
|
19
24
|
* Emitido ao selecionar uma ação
|
|
20
25
|
*/
|
|
@@ -42,6 +47,7 @@ export declare class TaskbarActionsButton {
|
|
|
42
47
|
*/
|
|
43
48
|
taskbarActionsButtonDisconnected: EventEmitter<void>;
|
|
44
49
|
private controlDropdown;
|
|
50
|
+
private checkDropdownPosition;
|
|
45
51
|
private loadItems;
|
|
46
52
|
private canShowDropdown;
|
|
47
53
|
private onSelectAction;
|
|
@@ -14,6 +14,7 @@ export declare enum TaskbarElement {
|
|
|
14
14
|
FORM_MODE = "FORM_MODE",
|
|
15
15
|
MORE_OPTIONS = "MORE_OPTIONS",
|
|
16
16
|
DIVIDER = "DIVIDER",
|
|
17
|
+
SPACER = "SPACER",
|
|
17
18
|
CONFIGURATOR = "CONFIGURATOR",
|
|
18
19
|
DATA_EXPORTER = "DATA_EXPORTER",
|
|
19
20
|
ATTACH = "ATTACH",
|
|
@@ -30,5 +31,31 @@ export declare enum AuthorizationElements {
|
|
|
30
31
|
export declare enum VisibleWhenForbidden {
|
|
31
32
|
CONFIGURATOR = "CONFIGURATOR"
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
interface TaskbarCustomElement {
|
|
35
|
+
def: CustomButton;
|
|
36
|
+
className: string | {
|
|
37
|
+
[className: string]: boolean;
|
|
38
|
+
};
|
|
39
|
+
dataElementId: string;
|
|
40
|
+
action: (name: string) => void;
|
|
41
|
+
isEnabled: (name: string) => boolean;
|
|
42
|
+
size?: "small" | "medium" | "large";
|
|
43
|
+
}
|
|
44
|
+
export declare const buildCustomButton: ({ def, className, dataElementId, action, isEnabled, size }: TaskbarCustomElement) => HTMLElement;
|
|
45
|
+
interface TaskbarElementDefinition {
|
|
46
|
+
element: TaskbarElement;
|
|
47
|
+
className: string | {
|
|
48
|
+
[className: string]: boolean;
|
|
49
|
+
};
|
|
50
|
+
dataElementId: string;
|
|
51
|
+
getTitle: (name: TaskbarElement) => string;
|
|
52
|
+
action: (name: string) => void;
|
|
53
|
+
isEnabled: (name: string) => boolean;
|
|
54
|
+
actions: Array<Action>;
|
|
55
|
+
dataExporterStoreKey: string;
|
|
56
|
+
presentationMode: PresentationMode;
|
|
57
|
+
variant?: "primary" | "secondary" | "tertiary";
|
|
58
|
+
size?: "small" | "medium" | "large";
|
|
59
|
+
}
|
|
60
|
+
export declare const buildElem: ({ element, className, dataElementId, getTitle, action, isEnabled, actions, dataExporterStoreKey, presentationMode, variant, size }: TaskbarElementDefinition) => HTMLElement;
|
|
61
|
+
export {};
|
package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts
CHANGED
|
@@ -36,9 +36,14 @@ export declare class TaskbarSplitButton {
|
|
|
36
36
|
* Define a lista de ações disponíveis no dropdown do botão.
|
|
37
37
|
*/
|
|
38
38
|
actions: Array<Action>;
|
|
39
|
+
/**
|
|
40
|
+
* Define o tamanho do botão, podendo ser 'small', 'medium' ou 'large'.
|
|
41
|
+
*/
|
|
42
|
+
size: 'small' | 'medium' | 'large';
|
|
39
43
|
private initializeEagerItems;
|
|
40
44
|
componentDidLoad(): void;
|
|
41
45
|
private dropdownItemBuilder;
|
|
42
46
|
private loadItems;
|
|
47
|
+
private ajustSizeButton;
|
|
43
48
|
render(): any;
|
|
44
49
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { DataState } from '../../snk-data-unit/snk-data-unit';
|
|
2
|
+
import { CustomButton, TaskbarManager } from '../snk-taskbar';
|
|
3
|
+
export default class SimpleTaskbarProcessor {
|
|
4
|
+
private _defaultButtons;
|
|
5
|
+
/** ID da taskbar sendo processada */
|
|
6
|
+
taskbarID: string;
|
|
7
|
+
/** String com nomes dos botões separados por vírgula */
|
|
8
|
+
buttons: string;
|
|
9
|
+
/** Array com nomes dos botões visíveis */
|
|
10
|
+
buttonsArray: Array<string>;
|
|
11
|
+
/** Array com nomes dos botões desabilitados */
|
|
12
|
+
disabledButtons: Array<string>;
|
|
13
|
+
/** Mapa com os botões customizados indexados por nome */
|
|
14
|
+
customButtons: Map<string, CustomButton>;
|
|
15
|
+
/**
|
|
16
|
+
* Cria uma nova instância do processador de taskbar.
|
|
17
|
+
* @param defaultButtons - Array com os botões padrão a serem exibidos
|
|
18
|
+
*/
|
|
19
|
+
constructor(defaultButtons: Array<string>);
|
|
20
|
+
/**
|
|
21
|
+
* Processa a taskbar aplicando regras de visibilidade e habilitação.
|
|
22
|
+
* @param taskbarID - Identificador único da taskbar
|
|
23
|
+
* @param taskbarManager - Gerenciador de taskbar com regras customizadas
|
|
24
|
+
* @param dataState - Estado atual dos dados
|
|
25
|
+
* @param disabledButtons - Array de botões desabilitados
|
|
26
|
+
* @param invisibleButtons - Array de botões invisíveis
|
|
27
|
+
*/
|
|
28
|
+
process(taskbarID: string, taskbarManager: TaskbarManager, dataState: DataState, disabledButtons?: Array<string>, invisibleButtons?: Array<string>): void;
|
|
29
|
+
private getButtonsArray;
|
|
30
|
+
private isEnabled;
|
|
31
|
+
}
|
|
@@ -17,16 +17,17 @@ export declare class SnkTaskbar {
|
|
|
17
17
|
_definitions: Array<string>;
|
|
18
18
|
_overFlowWatcher: OverflowWatcher;
|
|
19
19
|
_dataUnitInitialized: boolean;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
_permissions: {
|
|
21
|
+
[key: string]: boolean;
|
|
22
|
+
};
|
|
23
23
|
_customElements: Map<string, any>;
|
|
24
24
|
_customElementsId: Array<string>;
|
|
25
25
|
_slotContainer: Element;
|
|
26
|
+
_overFlowedElements: HTMLElement[];
|
|
27
|
+
private _element;
|
|
26
28
|
_hiddenActionsList: Array<Action>;
|
|
27
|
-
_lastWidth: number | undefined;
|
|
28
|
-
_hasToUpdateOverFlow: boolean;
|
|
29
29
|
_isWaitingForSave: boolean;
|
|
30
|
+
_isLoading: boolean;
|
|
30
31
|
/**
|
|
31
32
|
* @description Define o alinhamento dos itens da barra de tarefas à direita.
|
|
32
33
|
*/
|
|
@@ -74,6 +75,10 @@ export declare class SnkTaskbar {
|
|
|
74
75
|
* @description Lista de ações que devem ser usadas no botão "Mais opções" do componente snk-taskbar.
|
|
75
76
|
*/
|
|
76
77
|
actionsSettingsList: Array<Action>;
|
|
78
|
+
/**
|
|
79
|
+
* @description Lista de ações personalizadas que devem ser usadas no botão "Mais opções".
|
|
80
|
+
*/
|
|
81
|
+
customActionsList: Array<Action>;
|
|
77
82
|
/**
|
|
78
83
|
* @description Define qual botão deve ter a aparência de destaque (primário).
|
|
79
84
|
*/
|
|
@@ -94,6 +99,14 @@ export declare class SnkTaskbar {
|
|
|
94
99
|
* @description Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
|
95
100
|
*/
|
|
96
101
|
messagesBuilder: SnkMessageBuilder;
|
|
102
|
+
/**
|
|
103
|
+
* @description Se verdadeiro, desabilita a exibição do esqueleto de carregamento da barra de tarefas.
|
|
104
|
+
*/
|
|
105
|
+
disableSkeleton: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* @description Define o tamanho dos botões da barra de tarefas, podendo ser 'small', 'medium' ou 'large'.
|
|
108
|
+
*/
|
|
109
|
+
sizeButtons: 'small' | 'medium' | 'large';
|
|
97
110
|
/**
|
|
98
111
|
* @description Emitido sempre que um botão ou uma ação da barra de tarefas é clicado.
|
|
99
112
|
* @eventProperty
|
|
@@ -132,10 +145,9 @@ export declare class SnkTaskbar {
|
|
|
132
145
|
};
|
|
133
146
|
observeButtons(): void;
|
|
134
147
|
observeDisabledButtons(): void;
|
|
135
|
-
|
|
136
|
-
observeIsWaitingForSave(newValue: any, oldValue: any): void;
|
|
148
|
+
observeIsWaitingForSave(newValue: boolean, oldValue: boolean): void;
|
|
137
149
|
observeDataUnit(newValue: DataUnit): void;
|
|
138
|
-
initializeDataUnit(dataUnit
|
|
150
|
+
initializeDataUnit(dataUnit?: DataUnit): void;
|
|
139
151
|
elementsFromString(strButtons: string): Array<TaskbarElement>;
|
|
140
152
|
private isAllowed;
|
|
141
153
|
/**
|
|
@@ -147,8 +159,8 @@ export declare class SnkTaskbar {
|
|
|
147
159
|
private getTitle;
|
|
148
160
|
private elementClick;
|
|
149
161
|
private isEnabled;
|
|
150
|
-
private validatePresentationMode;
|
|
151
162
|
getElement(index: number, def: TaskbarElement | CustomButton): HTMLElement;
|
|
163
|
+
private buildDivider;
|
|
152
164
|
buildDynamicActionsList(): Array<Action>;
|
|
153
165
|
buildActionsSettingsList(): Array<Action>;
|
|
154
166
|
getIdElemBtnNative(taskbarElem: TaskbarElement): string;
|
|
@@ -160,28 +172,27 @@ export declare class SnkTaskbar {
|
|
|
160
172
|
private getCustomElements;
|
|
161
173
|
private buildSlotContainer;
|
|
162
174
|
private onSaveEvent;
|
|
163
|
-
componentWillLoad(): void;
|
|
164
|
-
componentWillRender(): void;
|
|
165
|
-
private handleDefinitions;
|
|
166
|
-
private updateOverFlowIfNeeded;
|
|
167
175
|
private handleOverFlow;
|
|
168
176
|
private resetOverFlowedElements;
|
|
169
177
|
private doOverFlowElements;
|
|
178
|
+
private getAttributeFromName;
|
|
170
179
|
private addItemToActionList;
|
|
171
|
-
private
|
|
172
|
-
private getTaskbarElementIcon;
|
|
173
|
-
private getTaskbarElementLabel;
|
|
180
|
+
private getIconName;
|
|
174
181
|
private hasToIgnoreOverFlow;
|
|
175
182
|
private handleOverFlowStrategy;
|
|
176
183
|
private buildOverFlowWatcherParams;
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
private updateLastWidth;
|
|
180
|
-
disconnectedCallback(): void;
|
|
184
|
+
private handleDefinitions;
|
|
185
|
+
private getAccess;
|
|
181
186
|
private unlinkAllCustomElements;
|
|
182
187
|
private unlinkCustomElementFromTaskbar;
|
|
183
|
-
render(): any;
|
|
184
188
|
private getHostClasses;
|
|
189
|
+
connectedCallback(): void;
|
|
190
|
+
componentWillLoad(): Promise<void>;
|
|
191
|
+
componentDidRender(): void;
|
|
192
|
+
disconnectedCallback(): void;
|
|
193
|
+
private renderTaskbarElement;
|
|
194
|
+
private renderElements;
|
|
195
|
+
render(): any;
|
|
185
196
|
}
|
|
186
197
|
export interface Action extends IAction {
|
|
187
198
|
type?: 'divider' | 'item';
|