@sankhyalabs/sankhyablocks 9.2.0-dev.2 → 9.2.0-dev.20
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-1931defc.js → ConfigStorage-8b6def32.js} +2 -2
- package/dist/cjs/{DataFetcher-ad9fb3bb.js → DataFetcher-2c37b6a1.js} +52 -1
- package/dist/cjs/{ISave-18ffb73e.js → ISave-b22b3cf0.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-65e5288e.js → SnkFormConfigManager-477a27de.js} +2 -2
- package/dist/cjs/{ClientSideExporterProvider-994f6e26.js → SnkMultiSelectionListDataSource-b7ab26ba.js} +82 -79
- package/dist/cjs/{auth-fetcher-afbe69ab.js → auth-fetcher-78a90b36.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-c7253b02.js → dataunit-fetcher-877944a9.js} +1 -1
- package/dist/cjs/filter-validate-6993f6f2.js +30 -0
- package/dist/cjs/{form-config-fetcher-f6e66d64.js → form-config-fetcher-dee08eb4.js} +1 -1
- package/dist/cjs/{index-0ad2baeb.js → index-13d05f03.js} +21 -5
- package/dist/cjs/index-1cf293c1.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -9
- package/dist/cjs/snk-attach.cjs.entry.js +7 -7
- package/dist/cjs/snk-crud.cjs.entry.js +7 -7
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
- package/dist/cjs/{snk-data-unit-448fce74.js → snk-data-unit-6b0101fe.js} +13 -3
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +9 -9
- package/dist/cjs/snk-entity-list.cjs.entry.js +10 -3
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +189 -115
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +23 -2
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +20 -2
- package/dist/cjs/snk-filter-detail.cjs.entry.js +25 -8
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +9 -14
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +16 -3
- package/dist/cjs/snk-filter-number.cjs.entry.js +34 -3
- package/dist/cjs/snk-filter-period.cjs.entry.js +59 -14
- package/dist/cjs/snk-filter-search.cjs.entry.js +14 -3
- package/dist/cjs/snk-filter-text.cjs.entry.js +18 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +31 -5
- package/dist/cjs/snk-grid.cjs.entry.js +158 -66
- package/dist/cjs/{snk-guides-viewer-c23ed218.js → snk-guides-viewer-38277265.js} +6 -6
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -9
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +14 -6
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
- package/dist/cjs/snk-simple-bar.cjs.entry.js +5 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +60 -23
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-3b74cd21.js → taskbar-elements-fb5d1e08.js} +1 -1
- package/dist/collection/components/snk-application/snk-application.js +0 -2
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +4 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +173 -28
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +28 -4
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +72 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +73 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +51 -5
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +83 -3
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +118 -27
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +49 -5
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +71 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +62 -11
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +70 -8
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +0 -4
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +112 -16
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +8 -16
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +315 -114
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
- package/dist/collection/components/snk-filter-bar/utils/filter-validate.js +24 -0
- package/dist/collection/components/snk-form/snk-form.js +133 -22
- package/dist/collection/components/snk-grid/snk-grid.js +488 -133
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +83 -21
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +80 -14
- package/dist/collection/components/snk-simple-bar/snk-simple-bar.js +9 -9
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +414 -119
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +102 -36
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -0
- package/dist/collection/lib/http/data-fetcher/custom-xhr-override.js +39 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +1 -0
- package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +4 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +1 -0
- package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +4 -0
- package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +1 -0
- package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +4 -0
- package/dist/components/ContinuousInsertUtils.js +4 -1
- package/dist/components/DataFetcher.js +52 -1
- package/dist/components/index2.js +21 -5
- package/dist/components/snk-application2.js +0 -3
- package/dist/components/snk-crud.js +62 -44
- package/dist/components/snk-data-unit2.js +11 -1
- package/dist/components/snk-detail-view2.js +89 -56
- package/dist/components/snk-entity-list.js +11 -3
- package/dist/components/snk-filter-bar2.js +103 -108
- package/dist/components/snk-filter-binary-select.js +27 -3
- package/dist/components/snk-filter-checkbox-list.js +24 -3
- package/dist/components/snk-filter-detail2.js +28 -9
- package/dist/components/snk-filter-item2.js +70 -8
- package/dist/components/snk-filter-modal-item2.js +7 -12
- package/dist/components/snk-filter-modal.js +1 -325
- package/dist/components/snk-filter-modal2.js +391 -0
- package/dist/components/snk-filter-multi-select.js +19 -4
- package/dist/components/snk-filter-number.js +38 -4
- package/dist/components/snk-filter-period.js +64 -16
- package/dist/components/snk-filter-search.js +17 -4
- package/dist/components/snk-filter-text.js +22 -2
- package/dist/components/snk-form.js +29 -2
- package/dist/components/snk-grid2.js +188 -75
- package/dist/components/snk-personalized-filter2.js +10 -2
- package/dist/components/snk-simple-bar2.js +5 -5
- package/dist/components/snk-simple-crud2.js +45 -8
- package/dist/esm/{ConfigStorage-b5a1dba3.js → ConfigStorage-22eace3a.js} +2 -2
- package/dist/esm/{DataFetcher-6f6de657.js → DataFetcher-f6b2961a.js} +52 -1
- package/dist/esm/{ISave-7ecdca20.js → ISave-6b7b0423.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-34fc1dc7.js → SnkFormConfigManager-968b97e7.js} +2 -2
- package/dist/esm/{ClientSideExporterProvider-7c2781f4.js → SnkMultiSelectionListDataSource-1136c4e7.js} +87 -84
- package/dist/esm/{auth-fetcher-7332a9a9.js → auth-fetcher-cf39e42b.js} +1 -1
- package/dist/esm/{dataunit-fetcher-f21cbad0.js → dataunit-fetcher-6314b19d.js} +1 -1
- package/dist/esm/filter-validate-d765d450.js +27 -0
- package/dist/esm/{form-config-fetcher-6ab4e805.js → form-config-fetcher-bc6f0f1f.js} +1 -1
- package/dist/esm/{index-b72af127.js → index-446f9341.js} +21 -5
- package/dist/esm/index-479e1293.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +4 -4
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_8.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -9
- package/dist/esm/snk-attach.entry.js +7 -7
- package/dist/esm/snk-crud.entry.js +7 -7
- package/dist/esm/snk-data-exporter.entry.js +5 -5
- package/dist/esm/{snk-data-unit-b7e6e7a6.js → snk-data-unit-d4a42b59.js} +13 -3
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +9 -9
- package/dist/esm/snk-entity-list.entry.js +10 -3
- package/dist/esm/snk-expression-group_2.entry.js +1 -1
- package/dist/esm/snk-filter-bar_4.entry.js +190 -116
- package/dist/esm/snk-filter-binary-select.entry.js +23 -2
- package/dist/esm/snk-filter-checkbox-list.entry.js +20 -2
- package/dist/esm/snk-filter-detail.entry.js +25 -8
- package/dist/esm/snk-filter-modal-item.entry.js +9 -14
- package/dist/esm/snk-filter-multi-select.entry.js +16 -3
- package/dist/esm/snk-filter-number.entry.js +34 -3
- package/dist/esm/snk-filter-period.entry.js +59 -14
- package/dist/esm/snk-filter-search.entry.js +14 -3
- package/dist/esm/snk-filter-text.entry.js +18 -1
- package/dist/esm/snk-form_2.entry.js +31 -5
- package/dist/esm/snk-grid.entry.js +152 -60
- package/dist/esm/{snk-guides-viewer-fbfece85.js → snk-guides-viewer-19cb7f1f.js} +6 -6
- package/dist/esm/snk-guides-viewer.entry.js +9 -9
- package/dist/esm/snk-personalized-filter.entry.js +14 -6
- package/dist/esm/snk-pesquisa.entry.js +4 -4
- package/dist/esm/snk-simple-bar.entry.js +5 -5
- package/dist/esm/snk-simple-crud.entry.js +55 -18
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-171476d4.js → taskbar-elements-faaf5d8f.js} +1 -1
- package/dist/sankhyablocks/{p-0e495575.js → p-0237c565.js} +1 -1
- package/dist/sankhyablocks/p-093f58fa.entry.js +1 -0
- package/dist/sankhyablocks/{p-8d1508aa.entry.js → p-0affc07a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ad2ae575.entry.js → p-0e1f0344.entry.js} +1 -1
- package/dist/sankhyablocks/p-29cacaf3.entry.js +1 -0
- package/dist/sankhyablocks/{p-eb0616d3.entry.js → p-32450ea2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b49281be.entry.js → p-3c29939c.entry.js} +1 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +1 -0
- package/dist/sankhyablocks/{p-4872dc3a.entry.js → p-44c5ec49.entry.js} +1 -1
- package/dist/sankhyablocks/p-49ddc27a.entry.js +1 -0
- package/dist/sankhyablocks/p-4c763b10.entry.js +1 -0
- package/dist/sankhyablocks/p-4eeb06fc.js +1 -0
- package/dist/sankhyablocks/p-505172c8.entry.js +1 -0
- package/dist/sankhyablocks/p-55798617.js +1 -0
- package/dist/sankhyablocks/{p-158adf33.entry.js → p-605ef7b2.entry.js} +1 -1
- package/dist/sankhyablocks/p-658f67a5.js +1 -0
- package/dist/sankhyablocks/p-72a9285d.entry.js +1 -0
- package/dist/sankhyablocks/p-7f7fe6c4.entry.js +1 -0
- package/dist/sankhyablocks/p-88b7bc09.js +1 -0
- package/dist/sankhyablocks/{p-c6331595.js → p-8d256def.js} +1 -1
- package/dist/sankhyablocks/p-8f37b75b.entry.js +1 -0
- package/dist/sankhyablocks/{p-b35574b5.js → p-9062d640.js} +1 -1
- package/dist/sankhyablocks/{p-72c8c847.entry.js → p-95c71f5e.entry.js} +1 -1
- package/dist/sankhyablocks/p-96d45943.entry.js +1 -0
- package/dist/sankhyablocks/{p-eacff4b7.entry.js → p-b2d7f4cd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a015ba2.js → p-b7f5caf6.js} +1 -1
- package/dist/sankhyablocks/p-b9200e77.entry.js +11 -0
- package/dist/sankhyablocks/{p-7de79adf.js → p-b987e15d.js} +1 -1
- package/dist/sankhyablocks/{p-ba4979b4.js → p-bf017a1f.js} +1 -1
- package/dist/sankhyablocks/{p-735a1175.entry.js → p-c3dbf441.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3dba3468.js → p-c71dcb2d.js} +1 -1
- package/dist/sankhyablocks/{p-5e282b33.entry.js → p-c95f20d9.entry.js} +1 -1
- package/dist/sankhyablocks/p-c98e2085.js +1 -0
- package/dist/sankhyablocks/p-cb4343c4.entry.js +1 -0
- package/dist/sankhyablocks/p-d03ae54e.entry.js +1 -0
- package/dist/sankhyablocks/p-d235314c.entry.js +1 -0
- package/dist/sankhyablocks/p-d75a732c.js +1 -0
- package/dist/sankhyablocks/{p-f39b0ebe.entry.js → p-df7979fd.entry.js} +1 -1
- package/dist/sankhyablocks/p-e258de96.entry.js +1 -0
- package/dist/sankhyablocks/{p-d377aa7a.entry.js → p-f8e87cf1.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +46 -3
- package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +12 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +16 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +17 -3
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +10 -2
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +12 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +8 -3
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +27 -4
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +17 -3
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +2 -3
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +60 -30
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +4 -2
- package/dist/types/components/snk-filter-bar/utils/filter-validate.d.ts +11 -0
- package/dist/types/components/snk-form/snk-form.d.ts +29 -4
- package/dist/types/components/snk-grid/snk-grid.d.ts +132 -58
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +53 -5
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +44 -6
- package/dist/types/components/snk-simple-bar/snk-simple-bar.d.ts +15 -15
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +100 -43
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +23 -21
- package/dist/types/components.d.ts +771 -255
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/package.json +4 -3
- package/dist/collection/lib/licenses/sankhyalicense.module.js +0 -1
- package/dist/sankhyablocks/p-012208e0.entry.js +0 -1
- package/dist/sankhyablocks/p-07b14811.entry.js +0 -1
- package/dist/sankhyablocks/p-0dac8fef.js +0 -1
- package/dist/sankhyablocks/p-1210500e.js +0 -1
- package/dist/sankhyablocks/p-16fc4acd.js +0 -1
- package/dist/sankhyablocks/p-25209340.entry.js +0 -1
- package/dist/sankhyablocks/p-295b83ae.entry.js +0 -1
- package/dist/sankhyablocks/p-398cdd67.entry.js +0 -1
- package/dist/sankhyablocks/p-4e63ffed.entry.js +0 -1
- package/dist/sankhyablocks/p-5bab470d.entry.js +0 -1
- package/dist/sankhyablocks/p-5c7af8a9.entry.js +0 -1
- package/dist/sankhyablocks/p-81769310.entry.js +0 -11
- package/dist/sankhyablocks/p-9fd87bfd.entry.js +0 -1
- package/dist/sankhyablocks/p-a349689a.js +0 -1
- package/dist/sankhyablocks/p-a76e6d51.entry.js +0 -1
- package/dist/sankhyablocks/p-a86eee47.entry.js +0 -1
- package/dist/sankhyablocks/p-c6a8a8bc.entry.js +0 -1
- package/dist/sankhyablocks/p-c9e6d720.js +0 -1
- package/dist/sankhyablocks/p-dff65083.entry.js +0 -1
- package/dist/sankhyablocks/p-fa18530e.entry.js +0 -1
@@ -4,31 +4,32 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-1931defc.js');
|
9
|
-
const index$1 = require('./index-e3e39724.js');
|
10
|
-
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
11
|
-
const index$2 = require('./index-0ad2baeb.js');
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-994f6e26.js');
|
13
7
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
14
|
-
require('
|
15
|
-
require('./
|
8
|
+
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
+
require('./DataFetcher-2c37b6a1.js');
|
10
|
+
require('./ISave-b22b3cf0.js');
|
11
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-b7ab26ba.js');
|
12
|
+
const index$1 = require('./index-e3e39724.js');
|
16
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
17
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
18
|
-
require('./dataunit-fetcher-
|
15
|
+
require('./dataunit-fetcher-877944a9.js');
|
19
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
20
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-dee08eb4.js');
|
21
18
|
require('./constants-6d82e405.js');
|
19
|
+
const ConfigStorage = require('./ConfigStorage-8b6def32.js');
|
20
|
+
const index$2 = require('./index-13d05f03.js');
|
22
21
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
23
|
-
const
|
24
|
-
require('
|
25
|
-
require('./
|
22
|
+
const filterValidate = require('./filter-validate-6993f6f2.js');
|
23
|
+
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
24
|
+
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
26
25
|
require('./PrintUtils-bcaeb82f.js');
|
26
|
+
require('./IFetchDataExporterParams-e78ec415.js');
|
27
|
+
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
27
28
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
28
29
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
29
30
|
require('./ResourceIDUtils-5ff86aa7.js');
|
30
31
|
|
31
|
-
class ServerSideExporterProvider extends
|
32
|
+
class ServerSideExporterProvider extends SnkMultiSelectionListDataSource.CommonsExporter {
|
32
33
|
getFilters() {
|
33
34
|
var _a;
|
34
35
|
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
@@ -94,31 +95,34 @@ const SnkGrid = class {
|
|
94
95
|
this._customRenders = new Map();
|
95
96
|
this._keyboardManager = new core.KeyboardManager();
|
96
97
|
this._topTaskbarProcessor = new taskbarProcessor.TaskbarProcessor({
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
98
|
+
'snkGridTopTaskbar.regular': ['FORM_MODE', 'CONFIGURATOR', 'INSERT'],
|
99
|
+
'snkGridTopTaskbar.regular.secondary': ['FORM_MODE', 'CONFIGURATOR', 'INSERT'],
|
100
|
+
'snkGridTopTaskbar.regular.singleTaskbar': [],
|
101
|
+
'snkGridTopTaskbar.finish_edition': ['CANCEL', 'SAVE', this.handleAddFormMode()],
|
102
|
+
'snkGridTopTaskbar.finish_edition.secondary': [],
|
103
|
+
'snkGridTopTaskbar.finish_edition.singleTaskbar': [],
|
103
104
|
});
|
104
105
|
this._headerTaskbarProcessor = new taskbarProcessor.TaskbarProcessor({
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
106
|
+
'snkGridHeaderTaskbar.unselected': ['REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
|
107
|
+
'snkGridHeaderTaskbar.selected': this.getGridHeaderSelectedBtns(),
|
108
|
+
'snkGridHeaderTaskbar.detail.unselected': ['REFRESH', 'MORE_OPTIONS'],
|
109
|
+
'snkGridHeaderTaskbar.detail.selected': ['UPDATE', 'ATTACH', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'REFRESH'],
|
110
|
+
'snkGridHeaderTaskbar.singleTaskbar.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON', 'MORE_OPTIONS'],
|
111
|
+
'snkGridHeaderTaskbar.singleTaskbar.selected': ['UPDATE', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'ATTACH', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'DATA_EXPORTER', 'ACTIONS_BUTTON'],
|
112
|
+
'snkGridHeaderTaskbar.singleTaskbar.detail.unselected': ['INSERT', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH', 'MORE_OPTIONS'],
|
113
|
+
'snkGridHeaderTaskbar.singleTaskbar.detail.selected': ['UPDATE', 'ATTACH', 'CLONE', 'REMOVE', 'MORE_OPTIONS', 'DIVIDER', 'FORM_MODE', 'CONFIGURATOR', 'REFRESH'],
|
114
|
+
'snkGridHeaderTaskbar.singleTaskbar.finish_edition': ['CANCEL', 'SAVE', this.handleAddFormMode()],
|
114
115
|
});
|
115
116
|
this.dataUnitInterceptor = {
|
116
117
|
interceptAction: async (action) => {
|
117
118
|
if (action.type === core.Action.METADATA_LOADED) {
|
118
119
|
return await this.interceptMetadataLoaded(action);
|
119
120
|
}
|
121
|
+
if (action.type === core.Action.LOADING_DATA) {
|
122
|
+
return await this.interceptLoadData(action);
|
123
|
+
}
|
120
124
|
return action;
|
121
|
-
}
|
125
|
+
},
|
122
126
|
};
|
123
127
|
this._dataUnit = undefined;
|
124
128
|
this._dataState = undefined;
|
@@ -126,7 +130,7 @@ const SnkGrid = class {
|
|
126
130
|
this._popUpGridConfig = false;
|
127
131
|
this._showSnkFilterBar = true;
|
128
132
|
this._enableContinuousInsert = false;
|
129
|
-
this.columnFilterDataSource = new
|
133
|
+
this.columnFilterDataSource = new SnkMultiSelectionListDataSource.SnkMultiSelectionListDataSource();
|
130
134
|
this.enableLockManagerLoadingComp = false;
|
131
135
|
this.enableLockManagerTaskbarClick = false;
|
132
136
|
this.configName = undefined;
|
@@ -159,23 +163,36 @@ const SnkGrid = class {
|
|
159
163
|
this.multipleEditionEnabled = true;
|
160
164
|
this.paginationCounterMode = 'auto';
|
161
165
|
this.suppressCheckboxColumn = undefined;
|
166
|
+
this.suppressFilterColumn = false;
|
162
167
|
this.compact = undefined;
|
168
|
+
this.filterCustomConfig = undefined;
|
169
|
+
this.filterCustomConfigInterceptor = undefined;
|
163
170
|
}
|
164
171
|
getGridHeaderSelectedBtns() {
|
165
172
|
const btns = [
|
166
173
|
taskbarElements.TaskbarElement.UPDATE, taskbarElements.TaskbarElement.CLONE, taskbarElements.TaskbarElement.REMOVE,
|
167
174
|
taskbarElements.TaskbarElement.MORE_OPTIONS, taskbarElements.TaskbarElement.DIVIDER, taskbarElements.TaskbarElement.ATTACH, taskbarElements.TaskbarElement.FORM_MODE,
|
168
|
-
taskbarElements.TaskbarElement.CONFIGURATOR, taskbarElements.TaskbarElement.REFRESH, taskbarElements.TaskbarElement.DATA_EXPORTER, taskbarElements.TaskbarElement.ACTIONS_BUTTON
|
175
|
+
taskbarElements.TaskbarElement.CONFIGURATOR, taskbarElements.TaskbarElement.REFRESH, taskbarElements.TaskbarElement.DATA_EXPORTER, taskbarElements.TaskbarElement.ACTIONS_BUTTON,
|
169
176
|
];
|
170
177
|
if (this.multipleEditionEnabled)
|
171
178
|
btns.unshift(taskbarElements.TaskbarElement.UPDATE_MULTIPLE);
|
172
179
|
return btns;
|
173
180
|
}
|
181
|
+
async refreshColumnFilterDataSource() {
|
182
|
+
await this._grid.refreshColumnFilterDataSource();
|
183
|
+
}
|
184
|
+
/**
|
185
|
+
* Recarrega a configuração da grade.
|
186
|
+
* @description Este método força o recarregamento da configuração da grade a partir do `ConfigStorage`. A operação é assíncrona, mas o método não aguarda sua conclusão.
|
187
|
+
*/
|
174
188
|
reloadConfig() {
|
175
189
|
this.loadConfig();
|
176
190
|
}
|
177
191
|
/**
|
178
192
|
* Exibe a janela de configurações da grade.
|
193
|
+
* @async
|
194
|
+
* @description Este método abre o pop-up de configuração de colunas da grade, permitindo ao usuário ajustar a visibilidade, ordem e largura das colunas.
|
195
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando a janela de configuração é exibida.
|
179
196
|
*/
|
180
197
|
async showConfig() {
|
181
198
|
if (this._grid == undefined) {
|
@@ -185,6 +202,9 @@ const SnkGrid = class {
|
|
185
202
|
}
|
186
203
|
/**
|
187
204
|
* Fecha a janela de configurações da grade.
|
205
|
+
* @async
|
206
|
+
* @description Este método fecha o pop-up de configuração de colunas da grade.
|
207
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando a janela de configuração é fechada.
|
188
208
|
*/
|
189
209
|
async hideConfig() {
|
190
210
|
if (this._grid == undefined) {
|
@@ -193,26 +213,42 @@ const SnkGrid = class {
|
|
193
213
|
this.closeGridConfig();
|
194
214
|
}
|
195
215
|
/**
|
196
|
-
*
|
216
|
+
* Define a configuração da grade.
|
217
|
+
* @async
|
218
|
+
* @description Aplica uma nova configuração de colunas e ordenação à grade.
|
219
|
+
* @param {IGridConfig} config O objeto de configuração a ser aplicado na grade.
|
220
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando a configuração é aplicada.
|
197
221
|
*/
|
198
222
|
async setConfig(config) {
|
199
223
|
this.setGridConfig(config);
|
200
224
|
}
|
201
225
|
/**
|
202
|
-
*
|
226
|
+
* Recarrega a barra de filtros da grade, buscando o estado do servidor.
|
227
|
+
* @async
|
228
|
+
* @description Força o recarregamento da barra de filtros, atualizando suas configurações e filtros a partir do servidor.
|
229
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando a barra de filtros é recarregada.
|
203
230
|
*/
|
204
231
|
async reloadFilterBar() {
|
205
232
|
var _a;
|
206
233
|
(_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.reload();
|
207
234
|
}
|
208
235
|
/**
|
209
|
-
* Retorna o elemento da
|
236
|
+
* Retorna o elemento da barra de filtros da grade.
|
237
|
+
* @async
|
238
|
+
* @description Este método permite acessar o elemento da barra de filtros, que pode ser útil para manipulações adicionais ou para obter o estado atual dos filtros aplicados.
|
239
|
+
* @returns {Promise<HTMLSnkFilterBarElement>} O elemento da barra de filtros.
|
210
240
|
*/
|
211
241
|
async getFilterBar() {
|
212
242
|
return this._snkFilterBar;
|
213
243
|
}
|
214
244
|
/**
|
215
|
-
* Registra um editor customizado para
|
245
|
+
* Registra um editor customizado para um campo da grade ou formulário.
|
246
|
+
* @async
|
247
|
+
* @description Adiciona um componente de edição personalizado para um campo específico. Este editor será usado tanto na edição em linha na grade quanto em formulários de detalhe.
|
248
|
+
* @param {string} fieldName O nome do campo que receberá o editor customizado.
|
249
|
+
* @param {ICustomEditor} customEditor A instância do editor customizado.
|
250
|
+
* @param {string} [detailContext] O contexto de detalhe onde o editor será aplicado (opcional).
|
251
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando o editor é registrado.
|
216
252
|
*/
|
217
253
|
async addCustomEditor(fieldName, customEditor, detailContext) {
|
218
254
|
if (this._grid) {
|
@@ -224,7 +260,13 @@ const SnkGrid = class {
|
|
224
260
|
this._customEditors = newCustomEditors;
|
225
261
|
}
|
226
262
|
/**
|
227
|
-
* Registra um
|
263
|
+
* Registra um renderizador customizado para uma coluna da grade.
|
264
|
+
* @async
|
265
|
+
* @description Adiciona um componente de renderização personalizado para uma coluna específica, permitindo a exibição de conteúdo customizado nas células.
|
266
|
+
* @param {string} fieldName O nome do campo (coluna) que receberá o renderizador customizado.
|
267
|
+
* @param {ICustomRender} customRender A instância do renderizador customizado.
|
268
|
+
* @param {string} [detailContext] O contexto de detalhe onde o renderizador será aplicado (opcional).
|
269
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando o renderizador é registrado.
|
228
270
|
*/
|
229
271
|
async addGridCustomRender(fieldName, customRender, detailContext) {
|
230
272
|
if (this._grid) {
|
@@ -236,19 +278,31 @@ const SnkGrid = class {
|
|
236
278
|
this._customRenders = newCustomRenders;
|
237
279
|
}
|
238
280
|
/**
|
239
|
-
* Registra um formatador de
|
281
|
+
* Registra um formatador de valor customizado para uma coluna da grade.
|
282
|
+
* @async
|
283
|
+
* @description Adiciona uma função de formatação personalizada para os valores de uma coluna específica, afetando como os dados são exibidos.
|
284
|
+
* @param {string} columnName O nome da coluna que receberá o formatador.
|
285
|
+
* @param {ICustomFormatter} customFormatter A instância do formatador de valor.
|
286
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando o formatador é registrado.
|
240
287
|
*/
|
241
288
|
async addCustomValueFormatter(columnName, customFormatter) {
|
242
289
|
this._grid.addCustomValueFormatter(columnName, customFormatter);
|
243
290
|
}
|
244
291
|
/**
|
245
|
-
* Remove
|
292
|
+
* Remove um formatador de valor customizado de uma coluna da grade.
|
293
|
+
* @async
|
294
|
+
* @description Remove uma função de formatação personalizada previamente registrada para uma coluna.
|
295
|
+
* @param {string} columnName O nome da coluna da qual o formatador será removido.
|
296
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando o formatador é removido.
|
246
297
|
*/
|
247
298
|
async removeCustomValueFormatter(columnName) {
|
248
299
|
this._grid.removeCustomValueFormatter(columnName);
|
249
300
|
}
|
250
301
|
/**
|
251
302
|
* Atribui o foco para a grade.
|
303
|
+
* @async
|
304
|
+
* @description Move o foco do navegador para o componente da grade, permitindo a navegação por teclado.
|
305
|
+
* @returns {Promise<void>} Uma promessa que é resolvida quando o foco é atribuído.
|
252
306
|
*/
|
253
307
|
async setFocus() {
|
254
308
|
this._grid.setFocus();
|
@@ -282,7 +336,7 @@ const SnkGrid = class {
|
|
282
336
|
this.loadConfig();
|
283
337
|
}
|
284
338
|
handleAddFormMode() {
|
285
|
-
return this.enableGridInsert ? taskbarElements.TaskbarElement.FORM_MODE :
|
339
|
+
return this.enableGridInsert ? taskbarElements.TaskbarElement.FORM_MODE : '';
|
286
340
|
}
|
287
341
|
openGridConfig() {
|
288
342
|
this._grid.getColumnsState()
|
@@ -296,7 +350,7 @@ const SnkGrid = class {
|
|
296
350
|
}
|
297
351
|
setGridConfig(config) {
|
298
352
|
this._gridConfig = config;
|
299
|
-
|
353
|
+
SnkMultiSelectionListDataSource.CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
300
354
|
}
|
301
355
|
fixColumNameCharset(columnName) {
|
302
356
|
try {
|
@@ -326,6 +380,17 @@ const SnkGrid = class {
|
|
326
380
|
ConfigStorage.ConfigStorage.addGridLegacyConfig(this.configName, this.gridLegacyConfigName);
|
327
381
|
}
|
328
382
|
}
|
383
|
+
hasCalculatedFields(columnNames) {
|
384
|
+
let hasCalculatedFields = false;
|
385
|
+
columnNames.forEach(name => {
|
386
|
+
var _a;
|
387
|
+
const field = this._dataUnit.getField(name);
|
388
|
+
if (((_a = field.properties) === null || _a === void 0 ? void 0 : _a.calculated) === 'true') {
|
389
|
+
hasCalculatedFields = true;
|
390
|
+
}
|
391
|
+
});
|
392
|
+
return hasCalculatedFields;
|
393
|
+
}
|
329
394
|
gridConfigChangeHandler(evt) {
|
330
395
|
const config = this.normalizeGridConfig(evt.detail);
|
331
396
|
ConfigStorage.ConfigStorage.saveGridConfig(config, this.configName, this.resourceID);
|
@@ -341,11 +406,25 @@ const SnkGrid = class {
|
|
341
406
|
});
|
342
407
|
evt.stopPropagation();
|
343
408
|
}
|
409
|
+
async hasToForceClientSideExporter() {
|
410
|
+
if (!this._grid) {
|
411
|
+
return false;
|
412
|
+
}
|
413
|
+
const filters = await this._grid.getAppliedColumnFilters();
|
414
|
+
const columnNames = filters.map(filter => filter.name.replace('FILTRO_COLUNA_', ''));
|
415
|
+
return this.hasCalculatedFields(columnNames);
|
416
|
+
}
|
344
417
|
async dataExporterProviderStore() {
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
418
|
+
/**
|
419
|
+
* O ServerSideExporterProvider do SankhyaOm não suporta a filtragem de campos calculados.
|
420
|
+
* Por esse motivo, precisamos verificar os filtros aplicados no momento e recriar o dataExporterProvider conforme necessário.
|
421
|
+
* Se houver campos calculados, forçamos o uso do clientSide, caso contrário é seguido o fluxo padrão.
|
422
|
+
*/
|
423
|
+
const forceClientSide = await this.hasToForceClientSideExporter();
|
424
|
+
const dataExporterProvider = (forceClientSide || this.strategyExporter === index$1.ExporterStrategy.CLIENT_SIDE)
|
425
|
+
? new SnkMultiSelectionListDataSource.ClientSideExporterProvider(this._dataUnit, this._grid)
|
426
|
+
: new ServerSideExporterProvider(this._dataUnit, this._grid);
|
427
|
+
index$2.store.set('exporterProviders', Object.assign(Object.assign({}, index$2.store.get('exporterProviders')), { [this.configName]: dataExporterProvider }));
|
349
428
|
}
|
350
429
|
addElementID() {
|
351
430
|
const dataInfo = { dataUnit: this._dataUnit };
|
@@ -366,9 +445,20 @@ const SnkGrid = class {
|
|
366
445
|
this.loadGridCustomFormatters(action.payload.fields);
|
367
446
|
return action;
|
368
447
|
}
|
448
|
+
async interceptLoadData(action) {
|
449
|
+
var _a;
|
450
|
+
const hasInvalidFilters = !filterValidate.validateFilters((_a = this._snkFilterBar) === null || _a === void 0 ? void 0 : _a.filterConfig);
|
451
|
+
if (hasInvalidFilters) {
|
452
|
+
const errorTitle = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.title", {});
|
453
|
+
const errorMessage = this.messagesBuilder.getMessage("snkGrid.requiredFiltersNotFilled.message", {});
|
454
|
+
await this._application.error(errorTitle, errorMessage);
|
455
|
+
return;
|
456
|
+
}
|
457
|
+
return action;
|
458
|
+
}
|
369
459
|
finishLoading() {
|
370
460
|
this._dataUnit.addInterceptor(this.dataUnitInterceptor);
|
371
|
-
|
461
|
+
SnkMultiSelectionListDataSource.CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
372
462
|
this.addElementID();
|
373
463
|
if (this.columnFilterDataSource != undefined) {
|
374
464
|
this.columnFilterDataSource.setApplication(this._application);
|
@@ -394,15 +484,15 @@ const SnkGrid = class {
|
|
394
484
|
}
|
395
485
|
}
|
396
486
|
componentWillLoad() {
|
397
|
-
this._application = core.ApplicationContext.getContextValue(
|
487
|
+
this._application = core.ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
398
488
|
//TODO: substituir pelo metodo nativo closest
|
399
489
|
let parent = this._element.parentElement;
|
400
490
|
while (parent) {
|
401
|
-
if (parent.tagName.toUpperCase() ===
|
491
|
+
if (parent.tagName.toUpperCase() === 'SNK-DATA-UNIT') {
|
402
492
|
this._snkDataUnit = parent;
|
403
493
|
this._dataUnit = this._snkDataUnit.dataUnit;
|
404
494
|
if (!this._dataUnit) {
|
405
|
-
this._snkDataUnit.addEventListener(
|
495
|
+
this._snkDataUnit.addEventListener('dataUnitReady', (evt) => {
|
406
496
|
this._dataUnit = evt.detail;
|
407
497
|
this.finishLoading();
|
408
498
|
});
|
@@ -412,8 +502,8 @@ const SnkGrid = class {
|
|
412
502
|
}
|
413
503
|
if (!this.messagesBuilder)
|
414
504
|
this.messagesBuilder = this._snkDataUnit.messagesBuilder;
|
415
|
-
this._snkDataUnit.addEventListener(
|
416
|
-
this._snkDataUnit.addEventListener(
|
505
|
+
this._snkDataUnit.addEventListener('dataStateChange', this.handleDataStateChange.bind(this));
|
506
|
+
this._snkDataUnit.addEventListener('cancelEdition', () => {
|
417
507
|
var _a;
|
418
508
|
if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.recordsIsEmpty) {
|
419
509
|
this._dataUnit.clearSelection();
|
@@ -423,10 +513,10 @@ const SnkGrid = class {
|
|
423
513
|
}
|
424
514
|
parent = parent.parentElement;
|
425
515
|
}
|
426
|
-
this._rmPrecisionCustomValueFormatter = new
|
516
|
+
this._rmPrecisionCustomValueFormatter = new SnkMultiSelectionListDataSource.RmPrecisionCustomValueFormatter();
|
427
517
|
this.addGridLegacyConfigName();
|
428
518
|
this.loadConfig();
|
429
|
-
this._continuousInsertUtils = new
|
519
|
+
this._continuousInsertUtils = new SnkMultiSelectionListDataSource.ContinuousInsertUtils(this._application, this.resourceID, this.configName);
|
430
520
|
if (this.enableGridInsert) {
|
431
521
|
this._continuousInsertUtils.getConfig().then(value => this._enableContinuousInsert = value);
|
432
522
|
}
|
@@ -476,23 +566,23 @@ const SnkGrid = class {
|
|
476
566
|
var _a, _b;
|
477
567
|
const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
|
478
568
|
const taskbarIdPrefixLookup = {
|
479
|
-
primary: this.isDetail ?
|
480
|
-
secondary: this.isDetail ?
|
481
|
-
singleTaskbar: this.isDetail ?
|
569
|
+
primary: this.isDetail ? 'snkGridHeaderTaskbar.detail' : 'snkGridHeaderTaskbar',
|
570
|
+
secondary: this.isDetail ? 'snkGridHeaderTaskbar.detail' : 'snkGridHeaderTaskbar',
|
571
|
+
singleTaskbar: this.isDetail ? 'snkGridHeaderTaskbar.singleTaskbar.detail' : 'snkGridHeaderTaskbar.singleTaskbar',
|
482
572
|
};
|
483
573
|
const taskbarIdPrefix = taskbarIdPrefixLookup[this.presentationMode];
|
484
574
|
let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
|
485
575
|
if (((_b = this._dataState) === null || _b === void 0 ? void 0 : _b.isDirty) && this.presentationMode === index$1.PresentationMode.SINGLE_TASKBAR) {
|
486
|
-
headerTaskbarId =
|
576
|
+
headerTaskbarId = 'snkGridHeaderTaskbar.singleTaskbar.finish_edition';
|
487
577
|
}
|
488
578
|
return headerTaskbarId;
|
489
579
|
}
|
490
580
|
getTopTaskBarId() {
|
491
581
|
var _a;
|
492
582
|
const suffixLookup = {
|
493
|
-
primary:
|
494
|
-
secondary:
|
495
|
-
singleTaskbar:
|
583
|
+
primary: '',
|
584
|
+
secondary: '.secondary',
|
585
|
+
singleTaskbar: '.singleTaskbar',
|
496
586
|
};
|
497
587
|
const sufix = suffixLookup[this.presentationMode];
|
498
588
|
if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
@@ -502,9 +592,9 @@ const SnkGrid = class {
|
|
502
592
|
}
|
503
593
|
getPrimaryButton() {
|
504
594
|
const primaryButtonLookup = {
|
505
|
-
primary:
|
506
|
-
secondary:
|
507
|
-
singleTaskbar:
|
595
|
+
primary: 'INSERT',
|
596
|
+
secondary: '',
|
597
|
+
singleTaskbar: 'INSERT',
|
508
598
|
};
|
509
599
|
return primaryButtonLookup[this.presentationMode];
|
510
600
|
}
|
@@ -544,10 +634,10 @@ const SnkGrid = class {
|
|
544
634
|
getActionsSettingsList() {
|
545
635
|
const hardList = [{
|
546
636
|
value: core.StringUtils.generateUUID(),
|
547
|
-
label: this.messagesBuilder.getMessage(
|
637
|
+
label: this.messagesBuilder.getMessage('snkGrid.findColumn', {}),
|
548
638
|
disableCloseOnSelect: true,
|
549
639
|
eagerInitialize: true,
|
550
|
-
itemBuilder: (_, item) => this.getColumnSearch(item)
|
640
|
+
itemBuilder: (_, item) => this.getColumnSearch(item),
|
551
641
|
}];
|
552
642
|
return hardList;
|
553
643
|
}
|
@@ -575,7 +665,9 @@ const SnkGrid = class {
|
|
575
665
|
return undefined;
|
576
666
|
}
|
577
667
|
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large ez-box--no-outline", tabindex: "0" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
|
578
|
-
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ?
|
668
|
+
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, filterCustomConfig: this.filterCustomConfig, filterCustomConfigInterceptor: this.filterCustomConfigInterceptor }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? 'snk-grid-container__without-shadow ' : '') + 'snk-grid__table', "data-element-id": "embedded", dataUnit: this._dataUnit, key: 'grid-' + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => {
|
669
|
+
this.gridConfigChangeHandler(evt);
|
670
|
+
}, onEzColumnFilterChanged: async () => await this.dataExporterProviderStore(), onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, suppressFilterColumn: this.suppressFilterColumn, compact: this.compact }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
579
671
|
}
|
580
672
|
get _element() { return index.getElement(this); }
|
581
673
|
static get watchers() { return {
|
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
const index = require('./index-1cf293c1.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-477a27de.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
8
|
+
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
9
9
|
const constants = require('./constants-6d82e405.js');
|
10
|
-
require('./DataFetcher-
|
11
|
-
require('./ISave-
|
10
|
+
require('./DataFetcher-2c37b6a1.js');
|
11
|
+
require('./ISave-b22b3cf0.js');
|
12
12
|
const index$1 = require('./index-e3e39724.js');
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
|
-
require('./dataunit-fetcher-
|
15
|
+
require('./dataunit-fetcher-877944a9.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-dee08eb4.js');
|
18
18
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
19
19
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
20
20
|
|
@@ -2,25 +2,25 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-38277265.js');
|
6
6
|
require('./index-1cf293c1.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
9
|
-
require('./ConfigStorage-
|
10
|
-
require('./form-config-fetcher-
|
11
|
-
require('./DataFetcher-
|
8
|
+
require('./SnkFormConfigManager-477a27de.js');
|
9
|
+
require('./ConfigStorage-8b6def32.js');
|
10
|
+
require('./form-config-fetcher-dee08eb4.js');
|
11
|
+
require('./DataFetcher-2c37b6a1.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
15
|
require('./constants-6d82e405.js');
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
17
17
|
require('./taskbar-processor-2fba34a8.js');
|
18
|
-
require('./taskbar-elements-
|
18
|
+
require('./taskbar-elements-fb5d1e08.js');
|
19
19
|
require('./index-e3e39724.js');
|
20
|
-
require('./index-
|
21
|
-
require('./ISave-
|
20
|
+
require('./index-13d05f03.js');
|
21
|
+
require('./ISave-b22b3cf0.js');
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
23
|
-
require('./dataunit-fetcher-
|
23
|
+
require('./dataunit-fetcher-877944a9.js');
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
26
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-8b6def32.js');
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
10
10
|
const index$1 = require('./index-62760a9c.js');
|
11
|
-
const index$2 = require('./index-
|
11
|
+
const index$2 = require('./index-13d05f03.js');
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
13
|
-
require('./form-config-fetcher-
|
14
|
-
require('./DataFetcher-
|
13
|
+
require('./form-config-fetcher-dee08eb4.js');
|
14
|
+
require('./DataFetcher-2c37b6a1.js');
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
17
|
|
@@ -47,8 +47,10 @@ const SnkPersonalizedFilter = class {
|
|
47
47
|
this.resourceID = undefined;
|
48
48
|
this.isDefaultFilter = false;
|
49
49
|
}
|
50
|
-
|
51
|
-
* Cria um novo filtro
|
50
|
+
/**
|
51
|
+
* Cria um novo filtro personalizado caso não exista nenhum.
|
52
|
+
* @method
|
53
|
+
* @returns {Promise<void>}
|
52
54
|
*/
|
53
55
|
async createPersonalizedFilter() {
|
54
56
|
const newPersonalizedFilter = {
|
@@ -84,6 +86,12 @@ const SnkPersonalizedFilter = class {
|
|
84
86
|
this._originalFilterAssistent = core.ObjectUtils.copy(newPersonalizedFilter);
|
85
87
|
this._filterAssistent = core.ObjectUtils.copy(newPersonalizedFilter);
|
86
88
|
}
|
89
|
+
/**
|
90
|
+
* Carrega o filtro personalizado com base no identificador informado.
|
91
|
+
* @watch filterId
|
92
|
+
* @param newValue Novo valor do filtroId.
|
93
|
+
* @param oldValue Valor anterior do filtroId.
|
94
|
+
*/
|
87
95
|
loadFilter(newValue, oldValue) {
|
88
96
|
if (newValue == null || oldValue == newValue || this.resourceID == undefined) {
|
89
97
|
return;
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const ISave = require('./ISave-
|
8
|
-
require('./DataFetcher-
|
7
|
+
const ISave = require('./ISave-b22b3cf0.js');
|
8
|
+
require('./DataFetcher-2c37b6a1.js');
|
9
9
|
require('./index-e3e39724.js');
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
12
|
-
require('./dataunit-fetcher-
|
12
|
+
require('./dataunit-fetcher-877944a9.js');
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
14
|
-
require('./form-config-fetcher-
|
14
|
+
require('./form-config-fetcher-dee08eb4.js');
|
15
15
|
require('./constants-6d82e405.js');
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -17,11 +17,11 @@ const SnkSimpleBar = class {
|
|
17
17
|
this.messagesBuilder = undefined;
|
18
18
|
}
|
19
19
|
/**
|
20
|
-
*
|
21
|
-
* através de um pequeno
|
22
|
-
* -
|
23
|
-
* Para conhecer os detalhes do módulo,
|
24
|
-
|
20
|
+
* Permite customizar as mensagens dos blocos de construção
|
21
|
+
* através de um pequeno módulo na estrutura da aplicação:
|
22
|
+
* - Crie um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
23
|
+
* Para conhecer os detalhes do módulo, veja o arquivo neste projeto: "/src/lib/message/resources/snk-simple-bar.msg.ts"
|
24
|
+
*/
|
25
25
|
getMessage(key, params) {
|
26
26
|
var _a;
|
27
27
|
if (this.messagesBuilder)
|