@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-kb-67792.0 → 0.0.0-bugfix-dev-kb-67792.2
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-0a690675.js → ConfigStorage-e49214c6.js} +1 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-f79d220c.js → IExporterProvider-10b7fed5.js} +94 -4
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-d6d5db6d.js → SnkFormConfigManager-beebf47a.js} +8 -7
- package/dist/cjs/{SnkMessageBuilder-96b0f549.js → SnkMessageBuilder-cceebbae.js} +9 -13
- package/dist/cjs/{pesquisa-fetcher-cba1b3d0.js → dataunit-fetcher-d4873076.js} +87 -180
- package/dist/cjs/{index-0922807b.js → index-1dfc7a6e.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-fetcher-a1d0353f.js +166 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -3
- package/dist/cjs/snk-application.cjs.entry.js +35 -12
- package/dist/cjs/snk-attach.cjs.entry.js +71 -46
- package/dist/cjs/snk-crud.cjs.entry.js +101 -10
- package/dist/cjs/snk-data-exporter.cjs.entry.js +315 -85
- package/dist/cjs/snk-data-unit-f0221097.js +690 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +12 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +50 -10
- package/dist/cjs/snk-filter-bar.cjs.entry.js +6 -2
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +67 -0
- package/dist/cjs/snk-form.cjs.entry.js +52 -7
- package/dist/cjs/snk-grid.cjs.entry.js +168 -111
- package/dist/cjs/{snk-guides-viewer-bfcad2d6.js → snk-guides-viewer-aafc3073.js} +43 -10
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +269 -40
- package/dist/cjs/snk-taskbar.cjs.entry.js +4 -3
- package/dist/cjs/{taskbar-elements-3ecd1278.js → taskbar-elements-9ad1f9c0.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +35 -11
- package/dist/collection/components/snk-attach/snk-attach.js +67 -44
- package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +1 -0
- package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +1 -0
- package/dist/collection/components/snk-crud/snk-crud.js +305 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +136 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +161 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +134 -7
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +97 -0
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +74 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +54 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +1 -0
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +58 -0
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +55 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +59 -52
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +62 -0
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +88 -0
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +20 -0
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +38 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +540 -219
- package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +24 -0
- package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +18 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +22 -1
- package/dist/collection/components/snk-form/snk-form.js +102 -5
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +7 -6
- package/dist/collection/components/snk-form-config/snk-form-config.js +1 -1
- package/dist/collection/components/snk-grid/snk-grid.css +2 -0
- package/dist/collection/components/snk-grid/snk-grid.js +242 -103
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +407 -20
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +2 -1
- package/dist/collection/lib/@types/index.js +5 -0
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +35 -0
- package/dist/collection/lib/configs/ConfigStorage.js +1 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +7 -3
- package/dist/collection/lib/dataUnit/ValueFormatter.js +4 -0
- package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +4 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +11 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +53 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +22 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
- package/dist/collection/lib/message/SnkMessageBuilder.js +5 -12
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -0
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +2 -1
- package/dist/components/ConfigStorage.js +1 -0
- package/dist/components/{field-search.js → IExporterProvider.js} +93 -6
- package/dist/components/ISave.js +47 -0
- package/dist/components/SnkFormConfigManager.js +7 -6
- package/dist/components/SnkMessageBuilder.js +9 -13
- package/dist/components/dataunit-fetcher.js +84 -182
- package/dist/components/index2.js +198 -33
- package/dist/components/pesquisa-fetcher.js +164 -0
- package/dist/components/snk-actions-button2.js +4 -11
- package/dist/components/snk-application2.js +31 -9
- package/dist/components/snk-attach2.js +65 -41
- package/dist/components/snk-crud.js +110 -11
- package/dist/components/snk-data-exporter2.js +309 -85
- package/dist/components/snk-data-unit2.js +487 -217
- package/dist/components/snk-detail-view2.js +96 -14
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +6 -1
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-form-view2.js +72 -1
- package/dist/components/snk-form.js +53 -6
- package/dist/components/snk-grid2.js +171 -109
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +264 -25
- package/dist/components/snk-taskbar2.js +6 -5
- package/dist/esm/{ConfigStorage-8c2ddac8.js → ConfigStorage-e476378d.js} +1 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-a4805051.js → IExporterProvider-d597f27d.js} +93 -5
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-c01b9d9d.js → SnkFormConfigManager-298cd647.js} +8 -7
- package/dist/esm/{SnkMessageBuilder-72423074.js → SnkMessageBuilder-ae87b754.js} +9 -13
- package/dist/esm/{pesquisa-fetcher-34a8b8be.js → dataunit-fetcher-3d2ec959.js} +83 -181
- package/dist/esm/{index-0ece87a6.js → index-3aa4977a.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-fetcher-a87445a0.js +164 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -3
- package/dist/esm/snk-application.entry.js +34 -11
- package/dist/esm/snk-attach.entry.js +66 -41
- package/dist/esm/snk-crud.entry.js +101 -10
- package/dist/esm/snk-data-exporter.entry.js +316 -86
- package/dist/esm/snk-data-unit-1ef94aef.js +688 -0
- package/dist/esm/snk-data-unit.entry.js +12 -2
- package/dist/esm/snk-detail-view.entry.js +50 -10
- package/dist/esm/snk-filter-bar.entry.js +6 -2
- package/dist/esm/snk-filter-modal-item.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +67 -0
- package/dist/esm/snk-form.entry.js +52 -7
- package/dist/esm/snk-grid.entry.js +166 -109
- package/dist/esm/{snk-guides-viewer-edeac29f.js → snk-guides-viewer-62124f3d.js} +43 -10
- package/dist/esm/snk-guides-viewer.entry.js +9 -7
- package/dist/esm/snk-personalized-filter.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +257 -28
- package/dist/esm/snk-taskbar.entry.js +4 -3
- package/dist/esm/{taskbar-elements-2473c8ac.js → taskbar-elements-d59867f1.js} +3 -3
- package/dist/sankhyablocks/p-08c28ddd.entry.js +1 -0
- package/dist/sankhyablocks/p-091ce761.js +60 -0
- package/dist/sankhyablocks/p-094eebf6.entry.js +1 -0
- package/dist/sankhyablocks/p-0c68f40f.entry.js +1 -0
- package/dist/sankhyablocks/p-162b9a59.entry.js +11 -0
- package/dist/sankhyablocks/p-1db45d26.entry.js +1 -0
- package/dist/sankhyablocks/p-25f1fc39.js +6 -0
- package/dist/sankhyablocks/p-2e9c764c.entry.js +1 -0
- package/dist/sankhyablocks/p-30cf616e.js +1 -0
- package/dist/sankhyablocks/{p-96621231.js → p-3287a6cc.js} +1 -1
- package/dist/sankhyablocks/p-421bec84.entry.js +1 -0
- package/dist/sankhyablocks/p-42f7b05d.entry.js +1 -0
- package/dist/sankhyablocks/p-51999ab5.entry.js +1 -0
- package/dist/sankhyablocks/p-5f016aed.js +1 -0
- package/dist/sankhyablocks/p-6c364d25.entry.js +1 -0
- package/dist/sankhyablocks/p-70001ac1.js +1 -0
- package/dist/sankhyablocks/p-74c665d5.entry.js +1 -0
- package/dist/sankhyablocks/p-76a65660.js +1 -0
- package/dist/sankhyablocks/p-7c4aabe2.js +1 -0
- package/dist/sankhyablocks/{p-ae4fc9a9.js → p-7e7a7473.js} +1 -1
- package/dist/sankhyablocks/p-8c1ff936.entry.js +1 -0
- package/dist/sankhyablocks/p-939e15d3.entry.js +1 -0
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/{p-41c2c191.entry.js → p-9dfda04a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2ae0fab.entry.js → p-bd008859.entry.js} +1 -1
- package/dist/sankhyablocks/p-c273d6ee.js +1 -0
- package/dist/sankhyablocks/p-d65d98ed.entry.js +1 -0
- package/dist/sankhyablocks/p-f2809746.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +7 -3
- package/dist/types/components/snk-attach/snk-attach.d.ts +11 -9
- package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +4 -0
- package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +4 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +45 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +23 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +28 -3
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +24 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +14 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +12 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +24 -4
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +5 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -1
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +21 -0
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +77 -0
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +4 -0
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +67 -3
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +3 -0
- package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +3 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -0
- package/dist/types/components/snk-form/snk-form.d.ts +14 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +2 -2
- package/dist/types/components/snk-grid/snk-grid.d.ts +46 -6
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +62 -4
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +261 -4
- package/dist/types/lib/@types/index.d.ts +5 -0
- package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +11 -0
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +2 -1
- package/dist/types/lib/dataUnit/ValueFormatter.d.ts +2 -0
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +10 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +20 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/snk-data-unit-559ac55c.js +0 -462
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/index3.js +0 -199
- package/dist/esm/snk-data-unit-44215df7.js +0 -460
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +0 -1
- package/dist/sankhyablocks/p-176c3491.entry.js +0 -1
- package/dist/sankhyablocks/p-37e5d563.js +0 -65
- package/dist/sankhyablocks/p-38289a55.js +0 -1
- package/dist/sankhyablocks/p-46e55a95.entry.js +0 -1
- package/dist/sankhyablocks/p-4e728357.entry.js +0 -1
- package/dist/sankhyablocks/p-5571bdfe.js +0 -1
- package/dist/sankhyablocks/p-5630574e.js +0 -1
- package/dist/sankhyablocks/p-5f8c0426.entry.js +0 -1
- package/dist/sankhyablocks/p-80c64add.entry.js +0 -1
- package/dist/sankhyablocks/p-86af4cc2.js +0 -1
- package/dist/sankhyablocks/p-8b690717.js +0 -1
- package/dist/sankhyablocks/p-a1832166.entry.js +0 -1
- package/dist/sankhyablocks/p-a809d944.entry.js +0 -1
- package/dist/sankhyablocks/p-a97226f6.entry.js +0 -1
- package/dist/sankhyablocks/p-add17f6a.entry.js +0 -1
- package/dist/sankhyablocks/p-c5a9a5d9.entry.js +0 -1
- package/dist/sankhyablocks/p-c5aa7d70.entry.js +0 -11
- package/dist/sankhyablocks/p-cb0147ab.entry.js +0 -1
- package/dist/sankhyablocks/p-f0145e3b.js +0 -1
- package/dist/sankhyablocks/p-f03e4199.entry.js +0 -1
- package/dist/sankhyablocks/p-f607db63.entry.js +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
|
@@ -2,11 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
5
|
+
const snkDataUnit = require('./snk-data-unit-f0221097.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./SnkMessageBuilder-
|
|
9
|
+
require('./SnkMessageBuilder-cceebbae.js');
|
|
10
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
11
|
+
require('./DataFetcher-77729a93.js');
|
|
12
|
+
require('./PrintUtils-bcaeb82f.js');
|
|
13
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
+
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
|
+
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
16
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
17
|
+
require('./ResourceIDUtils-5ff86aa7.js');
|
|
18
|
+
require('./RecordIDUtils-3735135c.js');
|
|
19
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
20
|
|
|
11
21
|
|
|
12
22
|
|
|
@@ -4,23 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
9
|
require('./DataFetcher-77729a93.js');
|
|
10
|
-
require('./pesquisa-fetcher-
|
|
11
|
-
const index$1 = require('./index-
|
|
10
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
11
|
+
const index$1 = require('./index-1dfc7a6e.js');
|
|
12
12
|
require('./ISave-e91b70a7.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
15
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
17
|
require('./form-config-fetcher-feb08214.js');
|
|
17
|
-
const taskbarElements = require('./taskbar-elements-
|
|
18
|
+
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
18
19
|
const constants = require('./constants-35ddd366.js');
|
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
20
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
|
21
|
-
require('./ConfigStorage-
|
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-aafc3073.js');
|
|
21
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-cceebbae.js');
|
|
22
|
+
require('./ConfigStorage-e49214c6.js');
|
|
22
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
24
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
25
27
|
require('./index-102ba62d.js');
|
|
26
28
|
require('./field-search-f56aa7d6.js');
|
|
@@ -93,6 +95,8 @@ const SnkDetailView = class {
|
|
|
93
95
|
this.branchGuide = undefined;
|
|
94
96
|
this.canEdit = true;
|
|
95
97
|
this.taskbarCustomContainerId = undefined;
|
|
98
|
+
this.customEditors = undefined;
|
|
99
|
+
this.customRenders = undefined;
|
|
96
100
|
}
|
|
97
101
|
observeDataUnit(newDataUnit, oldDataUnit) {
|
|
98
102
|
newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
@@ -160,10 +164,38 @@ const SnkDetailView = class {
|
|
|
160
164
|
this._snkGrid.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
161
165
|
}
|
|
162
166
|
}
|
|
167
|
+
/**
|
|
168
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
169
|
+
*/
|
|
170
|
+
async addCustomEditor(fieldName, customEditor) {
|
|
171
|
+
var _a;
|
|
172
|
+
const detailContext = this.normalizeBranchGuideId((_a = this.branchGuide) === null || _a === void 0 ? void 0 : _a.id);
|
|
173
|
+
this._snkGrid.addCustomEditor(fieldName, customEditor, detailContext);
|
|
174
|
+
this._snkFormView.addCustomEditor(fieldName, customEditor, detailContext);
|
|
175
|
+
}
|
|
176
|
+
async observerPropsCustomEditor(newValue) {
|
|
177
|
+
for (const fieldName in newValue) {
|
|
178
|
+
await this.addCustomEditor(fieldName, newValue[fieldName]);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Registra um render customizado para colunas da grid.
|
|
183
|
+
*/
|
|
184
|
+
async addGridCustomRender(fieldName, customRender) {
|
|
185
|
+
var _a;
|
|
186
|
+
const detailContext = this.normalizeBranchGuideId((_a = this.branchGuide) === null || _a === void 0 ? void 0 : _a.id);
|
|
187
|
+
await this._snkGrid.addGridCustomRender(fieldName, customRender, detailContext);
|
|
188
|
+
}
|
|
163
189
|
onContentCardChanged(evt) {
|
|
164
190
|
snkGuidesViewer.SnkGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this.formConfigManager).then(() => index.forceUpdate(this));
|
|
165
191
|
evt.stopPropagation();
|
|
166
192
|
}
|
|
193
|
+
async observeCustomRenders(newValue) {
|
|
194
|
+
for (const field in newValue) {
|
|
195
|
+
const customRender = newValue[field];
|
|
196
|
+
await this.addGridCustomRender(field, customRender);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
167
199
|
updateLabel() {
|
|
168
200
|
const guideItemPathSize = this.guideItemPath ? this.guideItemPath.length : 0;
|
|
169
201
|
if (guideItemPathSize > 0) {
|
|
@@ -195,14 +227,13 @@ const SnkDetailView = class {
|
|
|
195
227
|
return guideId.replace(SnkDetailView.REGEX_FORM_ID, "");
|
|
196
228
|
}
|
|
197
229
|
loadMetadata() {
|
|
198
|
-
var _a;
|
|
199
230
|
if (!this.dataUnit) {
|
|
200
231
|
return;
|
|
201
232
|
}
|
|
202
233
|
if (!this.formConfigManager.isLoaded) {
|
|
203
234
|
return;
|
|
204
235
|
}
|
|
205
|
-
const formConfig = this.formConfigManager.getConfig(
|
|
236
|
+
const formConfig = this.formConfigManager.getConfig(this.dataUnit);
|
|
206
237
|
//this._cardsState = formConfig?.cardsState;
|
|
207
238
|
this._formMetadata = form.buildFormMetadata(formConfig == undefined || formConfig.fields.length === 0 ? undefined : formConfig, this.dataUnit, true);
|
|
208
239
|
}
|
|
@@ -266,6 +297,10 @@ const SnkDetailView = class {
|
|
|
266
297
|
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder(this.entityName);
|
|
267
298
|
}
|
|
268
299
|
}
|
|
300
|
+
async componentDidLoad() {
|
|
301
|
+
await this.observerPropsCustomEditor(this.customEditors);
|
|
302
|
+
await this.observeCustomRenders(this.customRenders);
|
|
303
|
+
}
|
|
269
304
|
async dataUnitActionHandler(action) {
|
|
270
305
|
if (action.type === core.Action.FIELD_INVALIDATED) {
|
|
271
306
|
this.addErrorBadgeToBranchGuide();
|
|
@@ -275,6 +310,9 @@ const SnkDetailView = class {
|
|
|
275
310
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
|
276
311
|
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
|
277
312
|
}
|
|
313
|
+
normalizeBranchGuideId(id) {
|
|
314
|
+
return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
|
|
315
|
+
}
|
|
278
316
|
render() {
|
|
279
317
|
this.updateLabel();
|
|
280
318
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
|
@@ -282,7 +320,9 @@ const SnkDetailView = class {
|
|
|
282
320
|
}
|
|
283
321
|
static get watchers() { return {
|
|
284
322
|
"dataUnit": ["observeDataUnit"],
|
|
285
|
-
"dataState": ["observerDataState"]
|
|
323
|
+
"dataState": ["observerDataState"],
|
|
324
|
+
"customEditors": ["observerPropsCustomEditor"],
|
|
325
|
+
"customRenders": ["observeCustomRenders"]
|
|
286
326
|
}; }
|
|
287
327
|
};
|
|
288
328
|
SnkDetailView.REGEX_FORM_ID = /__FORM:[^:]+/g;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
10
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
const index = require('./index-c5771aba.js');
|
|
@@ -286,6 +286,7 @@ const SnkFilterBar = class {
|
|
|
286
286
|
this.messagesBuilder = undefined;
|
|
287
287
|
this.disablePersonalizedFilter = undefined;
|
|
288
288
|
this.filterBarLegacyConfigName = undefined;
|
|
289
|
+
this.autoLoad = undefined;
|
|
289
290
|
this.allowDefault = undefined;
|
|
290
291
|
this.scrollerLocked = false;
|
|
291
292
|
this.showPersonalizedFilter = false;
|
|
@@ -440,7 +441,10 @@ const SnkFilterBar = class {
|
|
|
440
441
|
}
|
|
441
442
|
async doLoadData(forceReload = false) {
|
|
442
443
|
try {
|
|
443
|
-
if (this._firstLoad &&
|
|
444
|
+
if (this._firstLoad && this.autoLoad === false) {
|
|
445
|
+
return;
|
|
446
|
+
}
|
|
447
|
+
if (this._firstLoad && !forceReload && this.autoLoad === undefined) {
|
|
444
448
|
let autoLoad = await this._application.getBooleanParam("global.carregar.registros.iniciar.tela");
|
|
445
449
|
if (!autoLoad) {
|
|
446
450
|
return;
|
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
|
11
11
|
require('./form-config-fetcher-feb08214.js');
|
|
12
12
|
require('./DataFetcher-77729a93.js');
|
|
@@ -80,7 +80,7 @@ const SnkFormConfig = class {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
getConfig() {
|
|
83
|
-
let config = this.configManager.getConfig(
|
|
83
|
+
let config = this.configManager.getConfig(this.dataUnit);
|
|
84
84
|
if (config.fields && config.fields.length === 0) {
|
|
85
85
|
config = undefined;
|
|
86
86
|
}
|
|
@@ -14,6 +14,8 @@ const SnkFormView = class {
|
|
|
14
14
|
this.snkContentCardChanged = index.createEvent(this, "snkContentCardChanged", 7);
|
|
15
15
|
this.snkRequestClearFieldToFocus = index.createEvent(this, "snkRequestClearFieldToFocus", 7);
|
|
16
16
|
this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
|
|
17
|
+
this._customEditors = new Map();
|
|
18
|
+
this._fieldProps = new Map();
|
|
17
19
|
this.levelPath = undefined;
|
|
18
20
|
this.label = undefined;
|
|
19
21
|
this.name = undefined;
|
|
@@ -27,12 +29,47 @@ const SnkFormView = class {
|
|
|
27
29
|
this.canFix = true;
|
|
28
30
|
this.recordsValidator = undefined;
|
|
29
31
|
this.fieldToFocus = undefined;
|
|
32
|
+
this.customEditors = undefined;
|
|
33
|
+
this.fieldsProps = undefined;
|
|
30
34
|
}
|
|
31
35
|
async showUp() {
|
|
32
36
|
if (this._formView) {
|
|
33
37
|
this._formView.showUp();
|
|
34
38
|
}
|
|
35
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Registra um editor customizado para campos da grade e formulário
|
|
42
|
+
*/
|
|
43
|
+
async addCustomEditor(fieldName, customEditor, detailContext) {
|
|
44
|
+
if (this._formView) {
|
|
45
|
+
this._formView.addCustomEditor(fieldName, customEditor, detailContext);
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const newCustomEditors = new Map(this._customEditors);
|
|
49
|
+
newCustomEditors.set(fieldName, { customEditor, detailContext });
|
|
50
|
+
this._customEditors = newCustomEditors;
|
|
51
|
+
}
|
|
52
|
+
observePropsCustomEditor(newValue) {
|
|
53
|
+
for (const fieldName in newValue) {
|
|
54
|
+
this.addCustomEditor(fieldName, newValue[fieldName]);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
59
|
+
*/
|
|
60
|
+
async setFieldProp(fieldName, propName, value) {
|
|
61
|
+
const props = this._fieldProps.get(fieldName) || [];
|
|
62
|
+
this._fieldProps.set(fieldName, [...props, { propName, value }]);
|
|
63
|
+
}
|
|
64
|
+
async observeFieldsProps(newValue) {
|
|
65
|
+
for (const field in newValue) {
|
|
66
|
+
const fieldProps = newValue[field];
|
|
67
|
+
const propNames = Object.keys(fieldProps);
|
|
68
|
+
for (const propName of propNames) {
|
|
69
|
+
await this.setFieldProp(field, propName, fieldProps[propName]);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
36
73
|
changeFix() {
|
|
37
74
|
this.fixed = !this.fixed;
|
|
38
75
|
this.emitEvent("fixed");
|
|
@@ -91,7 +128,13 @@ const SnkFormView = class {
|
|
|
91
128
|
this._dataBinder.onDisconnectedCallback();
|
|
92
129
|
}
|
|
93
130
|
}
|
|
131
|
+
componentDidLoad() {
|
|
132
|
+
this.observePropsCustomEditor(this.customEditors);
|
|
133
|
+
this.observeFieldsProps(this.fieldsProps);
|
|
134
|
+
}
|
|
94
135
|
componentDidRender() {
|
|
136
|
+
this.setCustomEditors();
|
|
137
|
+
this.setFieldProps();
|
|
95
138
|
if (this.fieldToFocus == undefined) {
|
|
96
139
|
return;
|
|
97
140
|
}
|
|
@@ -103,6 +146,26 @@ const SnkFormView = class {
|
|
|
103
146
|
this.snkRequestClearFieldToFocus.emit();
|
|
104
147
|
});
|
|
105
148
|
}
|
|
149
|
+
setCustomEditors() {
|
|
150
|
+
if (!this._formView) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
for (const [fieldName, customEditorProps] of this._customEditors) {
|
|
154
|
+
this._formView.addCustomEditor(fieldName, customEditorProps.customEditor, customEditorProps.detailContext);
|
|
155
|
+
this._customEditors.delete(fieldName);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
setFieldProps() {
|
|
159
|
+
if (!this._formView) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
for (const [fieldName, propsToChange] of this._fieldProps) {
|
|
163
|
+
propsToChange.forEach(prop => {
|
|
164
|
+
this._formView.setFieldProp(fieldName, prop.propName, prop.value);
|
|
165
|
+
this._fieldProps.delete(fieldName);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
106
169
|
render() {
|
|
107
170
|
return (index.h(index.Host, { class: "ez-box__container" }, index.h("div", { class: "summary-header ez-flex ez-size-width--full" }, index.h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? index.h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), index.h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
|
|
108
171
|
index.h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": core.ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
|
|
@@ -112,6 +175,10 @@ const SnkFormView = class {
|
|
|
112
175
|
:
|
|
113
176
|
index.h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event) })));
|
|
114
177
|
}
|
|
178
|
+
static get watchers() { return {
|
|
179
|
+
"customEditors": ["observePropsCustomEditor"],
|
|
180
|
+
"fieldsProps": ["observeFieldsProps"]
|
|
181
|
+
}; }
|
|
115
182
|
};
|
|
116
183
|
SnkFormView.style = snkFormViewCss;
|
|
117
184
|
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
|
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
9
|
-
require('./ConfigStorage-
|
|
9
|
+
require('./ConfigStorage-e49214c6.js');
|
|
10
10
|
require('./form-config-fetcher-feb08214.js');
|
|
11
11
|
require('./DataFetcher-77729a93.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -21,6 +21,7 @@ const SnkForm = class {
|
|
|
21
21
|
this.exit = index.createEvent(this, "exit", 7);
|
|
22
22
|
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
23
23
|
this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
|
|
24
|
+
this._customEditors = new Map();
|
|
24
25
|
this._dataUnit = undefined;
|
|
25
26
|
this._dataState = undefined;
|
|
26
27
|
this._showFormConfig = false;
|
|
@@ -43,6 +44,24 @@ const SnkForm = class {
|
|
|
43
44
|
async hideConfig() {
|
|
44
45
|
this._showFormConfig = false;
|
|
45
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
49
|
+
*/
|
|
50
|
+
async addCustomEditor(fieldName, customEditor) {
|
|
51
|
+
if (this._form) {
|
|
52
|
+
this._form.addCustomEditor(fieldName, customEditor);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
const newCustomEditors = new Map(this._customEditors);
|
|
56
|
+
newCustomEditors.set(fieldName, customEditor);
|
|
57
|
+
this._customEditors = newCustomEditors;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
61
|
+
*/
|
|
62
|
+
async setFieldProp(fieldName, propName, value) {
|
|
63
|
+
await this._form.setFieldProp(fieldName, propName, value);
|
|
64
|
+
}
|
|
46
65
|
closeConfig() {
|
|
47
66
|
this.hideConfig();
|
|
48
67
|
}
|
|
@@ -50,6 +69,18 @@ const SnkForm = class {
|
|
|
50
69
|
const dataInfo = { dataUnit: this._dataUnit };
|
|
51
70
|
core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
52
71
|
}
|
|
72
|
+
setCustomEditors() {
|
|
73
|
+
if (!this._form) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
for (const [fieldName, customEditor] of this._customEditors) {
|
|
77
|
+
this._form.addCustomEditor(fieldName, customEditor);
|
|
78
|
+
this._customEditors.delete(fieldName);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async componentDidRender() {
|
|
82
|
+
this.setCustomEditors();
|
|
83
|
+
}
|
|
53
84
|
async componentWillLoad() {
|
|
54
85
|
let parent = this._element.parentElement;
|
|
55
86
|
while (parent) {
|
|
@@ -65,9 +96,7 @@ const SnkForm = class {
|
|
|
65
96
|
this._dataUnit = evt.detail;
|
|
66
97
|
});
|
|
67
98
|
}
|
|
68
|
-
this._snkDataUnit.addEventListener("dataStateChange", (
|
|
69
|
-
this._dataState = evt.detail;
|
|
70
|
-
});
|
|
99
|
+
this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
|
|
71
100
|
break;
|
|
72
101
|
}
|
|
73
102
|
parent = parent.parentElement;
|
|
@@ -77,7 +106,23 @@ const SnkForm = class {
|
|
|
77
106
|
}
|
|
78
107
|
this._configManager = new SnkFormConfigManager.SnkFormConfigManager(this.configName, this.resourceID);
|
|
79
108
|
this.addFormLegacyConfig();
|
|
80
|
-
this._configManager.loadConfig();
|
|
109
|
+
await this._configManager.loadConfig();
|
|
110
|
+
}
|
|
111
|
+
async handleDataStateChange(evt) {
|
|
112
|
+
var _a;
|
|
113
|
+
this._dataState = evt.detail;
|
|
114
|
+
const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
|
|
115
|
+
for (const field of fieldsWithRmPrecision || []) {
|
|
116
|
+
if (!field) {
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
|
|
120
|
+
if (!rmPrecision && rmPrecision !== 0) {
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
await this.setFieldProp(field, 'precision', rmPrecision);
|
|
124
|
+
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
|
125
|
+
}
|
|
81
126
|
}
|
|
82
127
|
addFormLegacyConfig() {
|
|
83
128
|
if (this.formLegacyConfigName) {
|
|
@@ -88,7 +133,7 @@ const SnkForm = class {
|
|
|
88
133
|
if (!this._dataUnit || !this._dataState) {
|
|
89
134
|
return undefined;
|
|
90
135
|
}
|
|
91
|
-
return (index.h("section", null, index.h("div", { class: "ez-row" }, index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("ez-form", { key: "ezForm" + this._snkDataUnit.entityName, "data-element-id": "embedded", dataUnit: this._dataUnit, config: this._configManager.getConfig(this._dataState.insertionMode, this._dataUnit), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
|
|
136
|
+
return (index.h("section", null, index.h("div", { class: "ez-row" }, index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("ez-form", { ref: (ref) => this._form = ref, key: "ezForm" + this._snkDataUnit.entityName, "data-element-id": "embedded", dataUnit: this._dataUnit, config: this._configManager.getConfig(this._dataState.insertionMode, this._dataUnit), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
|
|
92
137
|
index.h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this._dataUnit, configManager: this._configManager, onConfigClose: () => this.closeConfig() })))));
|
|
93
138
|
}
|
|
94
139
|
get _element() { return index.getElement(this); }
|