@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-38445.1 → 0.0.0-bugfix-dev-kb-67792.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-942ce74b.js → ConfigStorage-0a690675.js} +2 -2
- package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-77729a93.js} +7 -2
- package/dist/cjs/{SnkFormConfigManager-1b13bacd.js → SnkFormConfigManager-d6d5db6d.js} +5 -8
- package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-96b0f549.js} +13 -9
- package/dist/cjs/{IExporterProvider-597949f9.js → SnkMultiSelectionListDataSource-f79d220c.js} +6 -96
- package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-29bb791c.js} +1 -1
- package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-feb08214.js} +1 -1
- package/dist/cjs/{index-1dfc7a6e.js → index-0922807b.js} +0 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dataunit-fetcher-688d3f05.js → pesquisa-fetcher-cba1b3d0.js} +181 -88
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -7
- package/dist/cjs/snk-application.cjs.entry.js +15 -38
- package/dist/cjs/snk-attach.cjs.entry.js +49 -74
- package/dist/cjs/snk-crud.cjs.entry.js +13 -99
- package/dist/cjs/snk-data-exporter.cjs.entry.js +88 -318
- package/dist/cjs/snk-data-unit-559ac55c.js +462 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -12
- package/dist/cjs/snk-detail-view.cjs.entry.js +10 -51
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar.cjs.entry.js +14 -9
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-view.cjs.entry.js +0 -67
- package/dist/cjs/snk-form.cjs.entry.js +9 -54
- package/dist/cjs/snk-grid.cjs.entry.js +112 -169
- package/dist/cjs/{snk-guides-viewer-67605336.js → snk-guides-viewer-bfcad2d6.js} +10 -38
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -11
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +40 -267
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -4
- package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-3ecd1278.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +11 -35
- package/dist/collection/components/snk-attach/snk-attach.js +44 -67
- package/dist/collection/components/snk-crud/snk-crud.js +7 -249
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +0 -135
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +0 -161
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -112
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -54
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +52 -59
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -64
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +214 -507
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +11 -23
- package/dist/collection/components/snk-form/snk-form.js +5 -102
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +3 -6
- package/dist/collection/components/snk-grid/snk-grid.css +0 -2
- package/dist/collection/components/snk-grid/snk-grid.js +102 -241
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +18 -386
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
- package/dist/collection/lib/@types/index.js +0 -5
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +3 -7
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +0 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +0 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +13 -11
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +4 -53
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +34 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
- package/dist/collection/lib/message/SnkMessageBuilder.js +12 -5
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +0 -2
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +0 -1
- package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
- package/dist/components/DataFetcher.js +8 -3
- package/dist/components/SnkFormConfigManager.js +3 -6
- package/dist/components/SnkMessageBuilder.js +13 -9
- package/dist/components/dataunit-fetcher.js +182 -84
- package/dist/components/{IExporterProvider.js → field-search.js} +6 -93
- package/dist/components/index2.js +33 -198
- package/dist/components/index3.js +199 -0
- package/dist/components/snk-actions-button2.js +11 -4
- package/dist/components/snk-application2.js +9 -31
- package/dist/components/snk-attach2.js +41 -65
- package/dist/components/snk-crud.js +11 -103
- package/dist/components/snk-data-exporter2.js +87 -311
- package/dist/components/snk-data-unit2.js +212 -470
- package/dist/components/snk-detail-view2.js +10 -87
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +11 -7
- package/dist/components/snk-form-view2.js +1 -72
- package/dist/components/snk-form.js +6 -53
- package/dist/components/snk-grid2.js +108 -170
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +23 -259
- package/dist/components/snk-taskbar2.js +5 -6
- package/dist/esm/{ConfigStorage-86187da3.js → ConfigStorage-8c2ddac8.js} +2 -2
- package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-773a3e4b.js} +8 -3
- package/dist/esm/{SnkFormConfigManager-d4554df9.js → SnkFormConfigManager-c01b9d9d.js} +5 -8
- package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-72423074.js} +13 -9
- package/dist/esm/{IExporterProvider-63a188b6.js → SnkMultiSelectionListDataSource-a4805051.js} +7 -95
- package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-a411f73c.js} +1 -1
- package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-e0382e5a.js} +1 -1
- package/dist/esm/{index-3aa4977a.js → index-0ece87a6.js} +1 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dataunit-fetcher-264191b2.js → pesquisa-fetcher-34a8b8be.js} +182 -84
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -7
- package/dist/esm/snk-application.entry.js +14 -37
- package/dist/esm/snk-attach.entry.js +44 -69
- package/dist/esm/snk-crud.entry.js +13 -99
- package/dist/esm/snk-data-exporter.entry.js +89 -319
- package/dist/esm/snk-data-unit-44215df7.js +460 -0
- package/dist/esm/snk-data-unit.entry.js +2 -12
- package/dist/esm/snk-detail-view.entry.js +10 -51
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-filter-bar.entry.js +14 -9
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +2 -2
- package/dist/esm/snk-form-view.entry.js +0 -67
- package/dist/esm/snk-form.entry.js +9 -54
- package/dist/esm/snk-grid.entry.js +110 -167
- package/dist/esm/{snk-guides-viewer-151f6091.js → snk-guides-viewer-edeac29f.js} +10 -38
- package/dist/esm/snk-guides-viewer.entry.js +9 -11
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +28 -255
- package/dist/esm/snk-taskbar.entry.js +3 -4
- package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-2473c8ac.js} +3 -3
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
- package/dist/sankhyablocks/{p-913a9979.js → p-0cd3c0a9.js} +1 -1
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-176c3491.entry.js +1 -0
- package/dist/sankhyablocks/{p-df5451c7.js → p-181975f1.js} +1 -1
- package/dist/sankhyablocks/p-37e5d563.js +65 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-a1d72395.entry.js → p-41c2c191.entry.js} +1 -1
- package/dist/sankhyablocks/p-46e55a95.entry.js +1 -0
- package/dist/sankhyablocks/p-4e728357.entry.js +1 -0
- package/dist/sankhyablocks/p-5571bdfe.js +1 -0
- package/dist/sankhyablocks/p-5630574e.js +1 -0
- package/dist/sankhyablocks/p-594bc21d.js +1 -0
- package/dist/sankhyablocks/p-5f8c0426.entry.js +1 -0
- package/dist/sankhyablocks/p-80c64add.entry.js +1 -0
- package/dist/sankhyablocks/p-86af4cc2.js +1 -0
- package/dist/sankhyablocks/p-8b690717.js +1 -0
- package/dist/sankhyablocks/{p-aff76a53.js → p-96621231.js} +1 -1
- package/dist/sankhyablocks/p-a1832166.entry.js +1 -0
- package/dist/sankhyablocks/p-a809d944.entry.js +1 -0
- package/dist/sankhyablocks/p-a97226f6.entry.js +1 -0
- package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
- package/dist/sankhyablocks/{p-7e7a7473.js → p-ae4fc9a9.js} +1 -1
- package/dist/sankhyablocks/{p-eae7a817.entry.js → p-c2ae0fab.entry.js} +1 -1
- package/dist/sankhyablocks/p-c5a9a5d9.entry.js +1 -0
- package/dist/sankhyablocks/p-c5aa7d70.entry.js +11 -0
- package/dist/sankhyablocks/p-cb0147ab.entry.js +1 -0
- package/dist/sankhyablocks/p-f0145e3b.js +1 -0
- package/dist/sankhyablocks/{p-14a08904.entry.js → p-f03e4199.entry.js} +1 -1
- package/dist/sankhyablocks/p-f607db63.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +3 -7
- package/dist/types/components/snk-attach/snk-attach.d.ts +9 -11
- package/dist/types/components/snk-crud/snk-crud.d.ts +1 -36
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -23
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +3 -28
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -19
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +4 -24
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +1 -4
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +0 -21
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -61
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +1 -4
- package/dist/types/components/snk-form/snk-form.d.ts +0 -14
- package/dist/types/components/snk-grid/snk-grid.d.ts +6 -46
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -58
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +4 -220
- package/dist/types/lib/@types/index.d.ts +0 -5
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +0 -6
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +0 -3
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/RecordIDUtils-3735135c.js +0 -43
- package/dist/cjs/pesquisa-fetcher-680e198f.js +0 -166
- package/dist/cjs/snk-data-unit-685272e7.js +0 -679
- package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +0 -1
- package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +0 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +0 -97
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +0 -74
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +0 -1
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +0 -58
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +0 -55
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +0 -88
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +0 -20
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +0 -38
- package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +0 -24
- package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +0 -18
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +0 -35
- package/dist/collection/lib/dataUnit/ValueFormatter.js +0 -4
- package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +0 -22
- package/dist/components/ISave.js +0 -47
- package/dist/components/pesquisa-fetcher.js +0 -164
- package/dist/esm/RecordIDUtils-87d02110.js +0 -41
- package/dist/esm/pesquisa-fetcher-03c8f919.js +0 -164
- package/dist/esm/snk-data-unit-63f83504.js +0 -677
- package/dist/sankhyablocks/p-14b9f964.entry.js +0 -1
- package/dist/sankhyablocks/p-19c18d06.entry.js +0 -1
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-30cf616e.js +0 -1
- package/dist/sankhyablocks/p-3a212712.js +0 -1
- package/dist/sankhyablocks/p-47b60deb.entry.js +0 -1
- package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
- package/dist/sankhyablocks/p-75f83d1d.entry.js +0 -1
- package/dist/sankhyablocks/p-7a337364.js +0 -1
- package/dist/sankhyablocks/p-829d4045.js +0 -1
- package/dist/sankhyablocks/p-82a0bfb0.entry.js +0 -11
- package/dist/sankhyablocks/p-8fc470e5.entry.js +0 -1
- package/dist/sankhyablocks/p-941bf3ef.entry.js +0 -1
- package/dist/sankhyablocks/p-9863d682.js +0 -1
- package/dist/sankhyablocks/p-af8efd95.js +0 -6
- package/dist/sankhyablocks/p-b4b21558.entry.js +0 -1
- package/dist/sankhyablocks/p-bad55caa.entry.js +0 -1
- package/dist/sankhyablocks/p-c053256c.entry.js +0 -1
- package/dist/sankhyablocks/p-c5268346.entry.js +0 -1
- package/dist/sankhyablocks/p-cefba299.js +0 -1
- package/dist/sankhyablocks/p-dc7c9047.js +0 -1
- package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
- package/dist/sankhyablocks/p-fcac4dfc.js +0 -1
- package/dist/sankhyablocks/p-fe79f83a.js +0 -60
- package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +0 -4
- package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +0 -4
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +0 -14
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +0 -12
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +0 -5
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +0 -17
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +0 -17
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +0 -77
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +0 -4
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +0 -3
- package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +0 -3
- package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +0 -11
- package/dist/types/lib/dataUnit/ValueFormatter.d.ts +0 -2
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +0 -3
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +0 -10
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +0 -7
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +0 -20
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import {
|
|
3
|
-
import { AnexoSistemaFetcher, AttachFetcher, DataUnitFetcher } from
|
|
4
|
-
import { VIEW_MODE } from
|
|
5
|
-
import {
|
|
6
|
-
import InMemoryLoader from
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { DataUnit, ApplicationContext, Action } from "@sankhyalabs/core";
|
|
3
|
+
import { AnexoSistemaFetcher, AttachFetcher, DataUnitFetcher } from "../../lib";
|
|
4
|
+
import { VIEW_MODE } from "../../lib/utils/constants";
|
|
5
|
+
import { AnexoSistemaDataUnitFactory, AttachFetcherDataUnitFactory, buildTaskBarManager, anexoSistemaCrudConfig, attachCrudConfig } from "./structure";
|
|
6
|
+
import InMemoryLoader from "../../lib/dataUnit/InMemoryLoader";
|
|
7
7
|
const RESOURCE_ID = 'AnexoSistema';
|
|
8
8
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
|
9
9
|
export class SnkAttach {
|
|
@@ -40,36 +40,25 @@ export class SnkAttach {
|
|
|
40
40
|
this._currentDataUnit = undefined;
|
|
41
41
|
this.crudConfig = undefined;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
var _a;
|
|
45
|
-
if (this._currentDataUnit
|
|
43
|
+
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
|
44
|
+
var _a, _b, _c, _d, _e, _f;
|
|
45
|
+
if (!this._currentDataUnit) {
|
|
46
46
|
this.loadAttachmentDataUnit();
|
|
47
47
|
}
|
|
48
48
|
if (oldRegisterKey !== newRegisterKey) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
62
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
63
|
-
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (this.fetcherType === "Attach") {
|
|
67
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
68
|
-
if (hasMoreOneItem)
|
|
69
|
-
return;
|
|
49
|
+
this.returnToGridMode();
|
|
50
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
51
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
52
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
53
|
+
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
|
54
|
+
}
|
|
55
|
+
if (this.fetcherType === "Attach") {
|
|
56
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
57
|
+
if (hasMoreOneItem)
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
70
61
|
}
|
|
71
|
-
await ((_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata());
|
|
72
|
-
await ((_f = this._currentDataUnit) === null || _f === void 0 ? void 0 : _f.loadData(undefined, undefined, true, this.registerKey));
|
|
73
62
|
}
|
|
74
63
|
/**
|
|
75
64
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -108,14 +97,14 @@ export class SnkAttach {
|
|
|
108
97
|
if (this._crudElement)
|
|
109
98
|
this._crudElement.goToView(VIEW_MODE.GRID);
|
|
110
99
|
}
|
|
111
|
-
|
|
100
|
+
loadAttachmentDataUnit() {
|
|
112
101
|
try {
|
|
113
102
|
switch (this.fetcherType) {
|
|
114
103
|
case "AnexoSistema":
|
|
115
|
-
|
|
104
|
+
this.loadAnexoSistema();
|
|
116
105
|
break;
|
|
117
106
|
case "Attach":
|
|
118
|
-
|
|
107
|
+
this.loadAttach();
|
|
119
108
|
break;
|
|
120
109
|
default:
|
|
121
110
|
this._currentFetcher = this.fetcher;
|
|
@@ -127,29 +116,28 @@ export class SnkAttach {
|
|
|
127
116
|
throw new Error('There was an error while creating the data unit');
|
|
128
117
|
}
|
|
129
118
|
}
|
|
130
|
-
|
|
131
|
-
var _a
|
|
132
|
-
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
119
|
+
loadAnexoSistema() {
|
|
120
|
+
var _a;
|
|
121
|
+
this._currentDataUnit = this._currentDataUnit || new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
133
122
|
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
134
123
|
if (!this._currentDataUnit.metadata) {
|
|
135
|
-
|
|
136
|
-
|
|
124
|
+
this._currentDataUnit
|
|
125
|
+
.loadMetadata()
|
|
126
|
+
.then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
|
|
137
127
|
}
|
|
138
|
-
this.
|
|
128
|
+
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
|
139
129
|
this._currentDataUnit.addFilterProvider({
|
|
140
130
|
getFilter: () => this._currentDataUnitBuilder.getFilters(this.registerKey)
|
|
141
131
|
});
|
|
142
132
|
this._currentDataUnit.addInterceptor({
|
|
143
133
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
|
144
134
|
});
|
|
145
|
-
|
|
146
|
-
this.disableEditFieldsNotInForm();
|
|
135
|
+
this._currentDataUnit.loadData().then(this.disableEditFieldsNotInForm.bind(this));
|
|
147
136
|
}
|
|
148
|
-
|
|
149
|
-
var _a, _b;
|
|
137
|
+
loadAttach() {
|
|
138
|
+
var _a, _b, _c;
|
|
150
139
|
this._currentFetcher = new AttachFetcher();
|
|
151
140
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
|
152
|
-
this.initDataUnitLoaders();
|
|
153
141
|
this._currentDataUnit.addInterceptor({
|
|
154
142
|
interceptAction: (action) => {
|
|
155
143
|
var _a;
|
|
@@ -160,26 +148,16 @@ export class SnkAttach {
|
|
|
160
148
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
|
161
149
|
}
|
|
162
150
|
});
|
|
151
|
+
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
|
152
|
+
(_a = this._currentDataUnitBuilder) === null || _a === void 0 ? void 0 : _a.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
|
153
|
+
this.returnToGridMode();
|
|
154
|
+
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
|
155
|
+
});
|
|
163
156
|
if (!this._currentDataUnit.metadata) {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
initDataUnitLoaders() {
|
|
171
|
-
var _a, _b, _c;
|
|
172
|
-
if (this.fetcherType === "AnexoSistema") {
|
|
173
|
-
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
174
|
-
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
|
175
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
176
|
-
}
|
|
177
|
-
if (this.fetcherType === "Attach") {
|
|
178
|
-
this._currentFetcher = new AttachFetcher();
|
|
179
|
-
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
|
180
|
-
(_c = this._currentDataUnitBuilder) === null || _c === void 0 ? void 0 : _c.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
|
181
|
-
this.returnToGridMode();
|
|
182
|
-
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
|
157
|
+
(_c = (_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata()) === null || _c === void 0 ? void 0 : _c.then(() => {
|
|
158
|
+
var _a, _b;
|
|
159
|
+
this.crudConfig = Object.assign({}, attachCrudConfig);
|
|
160
|
+
(_b = (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData(undefined, undefined, true, this.registerKey)) === null || _b === void 0 ? void 0 : _b.then(this.disableEditFieldsNotInForm.bind(this));
|
|
183
161
|
});
|
|
184
162
|
}
|
|
185
163
|
}
|
|
@@ -193,9 +171,8 @@ export class SnkAttach {
|
|
|
193
171
|
}
|
|
194
172
|
});
|
|
195
173
|
}
|
|
196
|
-
|
|
174
|
+
componentWillLoad() {
|
|
197
175
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
198
|
-
await this.initAttach();
|
|
199
176
|
}
|
|
200
177
|
componentWillRender() {
|
|
201
178
|
if (!this.fetcherType) {
|
|
@@ -13,8 +13,6 @@ export class SnkCrud {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
this._keyDownHandler = async (event) => this.keyDownListener(event);
|
|
15
15
|
this._viewHistory = [];
|
|
16
|
-
this._customEditors = new Map();
|
|
17
|
-
this._customRenders = new Map();
|
|
18
16
|
this._dataUnit = undefined;
|
|
19
17
|
this._dataState = undefined;
|
|
20
18
|
this.attachmentRegisterKey = undefined;
|
|
@@ -37,8 +35,6 @@ export class SnkCrud {
|
|
|
37
35
|
this.filterBarLegacyConfigName = undefined;
|
|
38
36
|
this.formLegacyConfigName = undefined;
|
|
39
37
|
this.disablePersonalizedFilter = undefined;
|
|
40
|
-
this.autoLoad = undefined;
|
|
41
|
-
this.autoFocus = true;
|
|
42
38
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
|
43
39
|
}
|
|
44
40
|
/**
|
|
@@ -74,49 +70,6 @@ export class SnkCrud {
|
|
|
74
70
|
async getFilterBar() {
|
|
75
71
|
return await this._snkGrid.getFilterBar();
|
|
76
72
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Registra um editor customizado para campos da grade e formulário.
|
|
79
|
-
*/
|
|
80
|
-
async addCustomEditor(fieldName, customEditor) {
|
|
81
|
-
if (this._guidesViewer && this._snkGrid) {
|
|
82
|
-
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
|
83
|
-
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
const newCustomEditors = new Map(this._customEditors);
|
|
87
|
-
newCustomEditors.set(fieldName, customEditor);
|
|
88
|
-
this._customEditors = newCustomEditors;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Registra um render customizado para colunas da grid.
|
|
92
|
-
*/
|
|
93
|
-
async addGridCustomRender(fieldName, customRender) {
|
|
94
|
-
if (this._snkGrid) {
|
|
95
|
-
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const newCustomRenders = new Map(this._customRenders);
|
|
99
|
-
newCustomRenders.set(fieldName, customRender);
|
|
100
|
-
this._customRenders = newCustomRenders;
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Registra um formatador de valores para uma coluna da grid.
|
|
104
|
-
*/
|
|
105
|
-
async addCustomValueFormatter(columnName, customFormatter) {
|
|
106
|
-
this._snkGrid.addCustomValueFormatter(columnName, customFormatter);
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Remove o formatador de valores de uma coluna da grid.
|
|
110
|
-
*/
|
|
111
|
-
async removeCustomValueFormatter(columnName) {
|
|
112
|
-
this._snkGrid.removeCustomValueFormatter(columnName);
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
116
|
-
*/
|
|
117
|
-
async setFieldProp(fieldName, propName, value) {
|
|
118
|
-
await this._guidesViewer.setFieldProp(fieldName, propName, value);
|
|
119
|
-
}
|
|
120
73
|
currentViewModeWatcher(currentView) {
|
|
121
74
|
this._viewHistory = [...this._viewHistory.slice(-1), currentView];
|
|
122
75
|
}
|
|
@@ -176,29 +129,6 @@ export class SnkCrud {
|
|
|
176
129
|
const joinedPrimaryKeys = recordCriteria.map(({ value }) => value).join('_');
|
|
177
130
|
return joinedPrimaryKeys;
|
|
178
131
|
}
|
|
179
|
-
setCustomRenders() {
|
|
180
|
-
if (!this._snkGrid) {
|
|
181
|
-
return;
|
|
182
|
-
}
|
|
183
|
-
for (const [fieldName, customRender] of this._customRenders) {
|
|
184
|
-
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
|
185
|
-
this._customRenders.delete(fieldName);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
setCustomEditors() {
|
|
189
|
-
if (!this._snkGrid || !this._guidesViewer) {
|
|
190
|
-
return;
|
|
191
|
-
}
|
|
192
|
-
for (const [fieldName, customEditor] of this._customEditors) {
|
|
193
|
-
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
|
194
|
-
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
|
195
|
-
this._customEditors.delete(fieldName);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
componentDidRender() {
|
|
199
|
-
this.setCustomRenders();
|
|
200
|
-
this.setCustomEditors();
|
|
201
|
-
}
|
|
202
132
|
componentWillLoad() {
|
|
203
133
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
204
134
|
let parent = this._element.parentElement;
|
|
@@ -221,7 +151,12 @@ export class SnkCrud {
|
|
|
221
151
|
else {
|
|
222
152
|
this.initDataUnit();
|
|
223
153
|
}
|
|
224
|
-
this._snkDataUnit.addEventListener("dataStateChange",
|
|
154
|
+
this._snkDataUnit.addEventListener("dataStateChange", async ({ detail: dataState }) => {
|
|
155
|
+
this._dataState = dataState;
|
|
156
|
+
if (dataState.selectedRecord !== undefined) {
|
|
157
|
+
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
|
158
|
+
}
|
|
159
|
+
});
|
|
225
160
|
break;
|
|
226
161
|
}
|
|
227
162
|
parent = parent.parentElement;
|
|
@@ -237,26 +172,6 @@ export class SnkCrud {
|
|
|
237
172
|
this.removeShortcuts();
|
|
238
173
|
window.removeEventListener("keydown", this._keyDownHandler);
|
|
239
174
|
}
|
|
240
|
-
async handleDataStateChange(evt) {
|
|
241
|
-
var _a;
|
|
242
|
-
this._dataState = evt.detail;
|
|
243
|
-
if (this._dataState.selectedRecord !== undefined) {
|
|
244
|
-
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
|
245
|
-
}
|
|
246
|
-
const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
|
|
247
|
-
for (const field of fieldsWithRmPrecision || []) {
|
|
248
|
-
if (!field) {
|
|
249
|
-
continue;
|
|
250
|
-
}
|
|
251
|
-
const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
|
|
252
|
-
if (!rmPrecision && rmPrecision !== 0) {
|
|
253
|
-
continue;
|
|
254
|
-
}
|
|
255
|
-
await this.setFieldProp(field, 'precision', rmPrecision);
|
|
256
|
-
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
|
257
|
-
}
|
|
258
|
-
;
|
|
259
|
-
}
|
|
260
175
|
async initKeyboardManager() {
|
|
261
176
|
var _a;
|
|
262
177
|
const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
|
|
@@ -376,7 +291,7 @@ export class SnkCrud {
|
|
|
376
291
|
return;
|
|
377
292
|
}
|
|
378
293
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
|
379
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName
|
|
294
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
380
295
|
}
|
|
381
296
|
static get is() { return "snk-crud"; }
|
|
382
297
|
static get encapsulation() { return "scoped"; }
|
|
@@ -697,41 +612,6 @@ export class SnkCrud {
|
|
|
697
612
|
},
|
|
698
613
|
"attribute": "disable-personalized-filter",
|
|
699
614
|
"reflect": false
|
|
700
|
-
},
|
|
701
|
-
"autoLoad": {
|
|
702
|
-
"type": "boolean",
|
|
703
|
-
"mutable": false,
|
|
704
|
-
"complexType": {
|
|
705
|
-
"original": "boolean",
|
|
706
|
-
"resolved": "boolean",
|
|
707
|
-
"references": {}
|
|
708
|
-
},
|
|
709
|
-
"required": false,
|
|
710
|
-
"optional": true,
|
|
711
|
-
"docs": {
|
|
712
|
-
"tags": [],
|
|
713
|
-
"text": "Define se a carga dos dados ser\u00E1 feita assim que o componente for carregado."
|
|
714
|
-
},
|
|
715
|
-
"attribute": "auto-load",
|
|
716
|
-
"reflect": false
|
|
717
|
-
},
|
|
718
|
-
"autoFocus": {
|
|
719
|
-
"type": "boolean",
|
|
720
|
-
"mutable": false,
|
|
721
|
-
"complexType": {
|
|
722
|
-
"original": "boolean",
|
|
723
|
-
"resolved": "boolean",
|
|
724
|
-
"references": {}
|
|
725
|
-
},
|
|
726
|
-
"required": false,
|
|
727
|
-
"optional": true,
|
|
728
|
-
"docs": {
|
|
729
|
-
"tags": [],
|
|
730
|
-
"text": "Define se a grid ser\u00E1 focada ao ser carregada."
|
|
731
|
-
},
|
|
732
|
-
"attribute": "auto-focus",
|
|
733
|
-
"reflect": false,
|
|
734
|
-
"defaultValue": "true"
|
|
735
615
|
}
|
|
736
616
|
};
|
|
737
617
|
}
|
|
@@ -903,128 +783,6 @@ export class SnkCrud {
|
|
|
903
783
|
"text": "Retorna o elemento da filter-bar da grade.",
|
|
904
784
|
"tags": []
|
|
905
785
|
}
|
|
906
|
-
},
|
|
907
|
-
"addCustomEditor": {
|
|
908
|
-
"complexType": {
|
|
909
|
-
"signature": "(fieldName: string, customEditor: ICustomEditor) => Promise<void>",
|
|
910
|
-
"parameters": [{
|
|
911
|
-
"tags": [],
|
|
912
|
-
"text": ""
|
|
913
|
-
}, {
|
|
914
|
-
"tags": [],
|
|
915
|
-
"text": ""
|
|
916
|
-
}],
|
|
917
|
-
"references": {
|
|
918
|
-
"Promise": {
|
|
919
|
-
"location": "global"
|
|
920
|
-
},
|
|
921
|
-
"ICustomEditor": {
|
|
922
|
-
"location": "import",
|
|
923
|
-
"path": "@sankhyalabs/ezui/dist/types/utils"
|
|
924
|
-
}
|
|
925
|
-
},
|
|
926
|
-
"return": "Promise<void>"
|
|
927
|
-
},
|
|
928
|
-
"docs": {
|
|
929
|
-
"text": "Registra um editor customizado para campos da grade e formul\u00E1rio.",
|
|
930
|
-
"tags": []
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
"addGridCustomRender": {
|
|
934
|
-
"complexType": {
|
|
935
|
-
"signature": "(fieldName: string, customRender: ICustomRender) => Promise<void>",
|
|
936
|
-
"parameters": [{
|
|
937
|
-
"tags": [],
|
|
938
|
-
"text": ""
|
|
939
|
-
}, {
|
|
940
|
-
"tags": [],
|
|
941
|
-
"text": ""
|
|
942
|
-
}],
|
|
943
|
-
"references": {
|
|
944
|
-
"Promise": {
|
|
945
|
-
"location": "global"
|
|
946
|
-
},
|
|
947
|
-
"ICustomRender": {
|
|
948
|
-
"location": "import",
|
|
949
|
-
"path": "@sankhyalabs/ezui/dist/types/utils"
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
|
-
"return": "Promise<void>"
|
|
953
|
-
},
|
|
954
|
-
"docs": {
|
|
955
|
-
"text": "Registra um render customizado para colunas da grid.",
|
|
956
|
-
"tags": []
|
|
957
|
-
}
|
|
958
|
-
},
|
|
959
|
-
"addCustomValueFormatter": {
|
|
960
|
-
"complexType": {
|
|
961
|
-
"signature": "(columnName: string, customFormatter: ICustomFormatter) => Promise<void>",
|
|
962
|
-
"parameters": [{
|
|
963
|
-
"tags": [],
|
|
964
|
-
"text": ""
|
|
965
|
-
}, {
|
|
966
|
-
"tags": [],
|
|
967
|
-
"text": ""
|
|
968
|
-
}],
|
|
969
|
-
"references": {
|
|
970
|
-
"Promise": {
|
|
971
|
-
"location": "global"
|
|
972
|
-
},
|
|
973
|
-
"ICustomFormatter": {
|
|
974
|
-
"location": "import",
|
|
975
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-grid/interfaces"
|
|
976
|
-
}
|
|
977
|
-
},
|
|
978
|
-
"return": "Promise<void>"
|
|
979
|
-
},
|
|
980
|
-
"docs": {
|
|
981
|
-
"text": "Registra um formatador de valores para uma coluna da grid.",
|
|
982
|
-
"tags": []
|
|
983
|
-
}
|
|
984
|
-
},
|
|
985
|
-
"removeCustomValueFormatter": {
|
|
986
|
-
"complexType": {
|
|
987
|
-
"signature": "(columnName: string) => Promise<void>",
|
|
988
|
-
"parameters": [{
|
|
989
|
-
"tags": [],
|
|
990
|
-
"text": ""
|
|
991
|
-
}],
|
|
992
|
-
"references": {
|
|
993
|
-
"Promise": {
|
|
994
|
-
"location": "global"
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
"return": "Promise<void>"
|
|
998
|
-
},
|
|
999
|
-
"docs": {
|
|
1000
|
-
"text": "Remove o formatador de valores de uma coluna da grid.",
|
|
1001
|
-
"tags": []
|
|
1002
|
-
}
|
|
1003
|
-
},
|
|
1004
|
-
"setFieldProp": {
|
|
1005
|
-
"complexType": {
|
|
1006
|
-
"signature": "(fieldName: string, propName: string, value: any) => Promise<void>",
|
|
1007
|
-
"parameters": [{
|
|
1008
|
-
"tags": [],
|
|
1009
|
-
"text": ""
|
|
1010
|
-
}, {
|
|
1011
|
-
"tags": [],
|
|
1012
|
-
"text": ""
|
|
1013
|
-
}, {
|
|
1014
|
-
"tags": [],
|
|
1015
|
-
"text": ""
|
|
1016
|
-
}],
|
|
1017
|
-
"references": {
|
|
1018
|
-
"Promise": {
|
|
1019
|
-
"location": "global"
|
|
1020
|
-
}
|
|
1021
|
-
},
|
|
1022
|
-
"return": "Promise<void>"
|
|
1023
|
-
},
|
|
1024
|
-
"docs": {
|
|
1025
|
-
"text": "Altera/adiciona uma propriedade nos metadados do campo.",
|
|
1026
|
-
"tags": []
|
|
1027
|
-
}
|
|
1028
786
|
}
|
|
1029
787
|
};
|
|
1030
788
|
}
|