@sankhyalabs/sankhyablocks 8.16.0-ms.2 → 8.16.0-ms.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/{ClientSideExporterProvider-2f5f350c.js → ClientSideExporterProvider-fe52f7cf.js} +63 -22
- package/dist/cjs/{ConfigStorage-d024aec8.js → ConfigStorage-6b633b10.js} +2 -2
- package/dist/cjs/{DataFetcher-65879b2c.js → DataFetcher-875371e9.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-c11d8468.js → SnkFormConfigManager-d680be08.js} +2 -2
- package/dist/cjs/{auth-fetcher-8480751c.js → auth-fetcher-24ba4135.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-449d51a3.js → dataunit-fetcher-b95768e8.js} +1 -1
- package/dist/cjs/{form-config-fetcher-90126e4c.js → form-config-fetcher-e0a512c3.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-5c583c93.js → pesquisa-fetcher-30cab386.js} +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_5.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -6
- package/dist/cjs/snk-attach.cjs.entry.js +5 -5
- package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-bbd384bf.js → snk-data-unit-33937ffe.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-5396062f.js → snk-guides-viewer-65964889.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +11 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +8 -8
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +51 -16
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +9 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -1
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +8 -2
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -1
- package/dist/components/ContinuousInsertUtils.js +59 -18
- package/dist/components/DataFetcher.js +1 -1
- package/dist/components/pesquisa-grid2.js +1 -1
- package/dist/components/snk-data-exporter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +9 -2
- package/dist/components/snk-simple-crud2.js +1 -1
- package/dist/esm/{ClientSideExporterProvider-3537805a.js → ClientSideExporterProvider-bd24a4b3.js} +63 -22
- package/dist/esm/{ConfigStorage-373bb440.js → ConfigStorage-e5c1f4c0.js} +2 -2
- package/dist/esm/{DataFetcher-5221b992.js → DataFetcher-ecf5f903.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-5022f87f.js → SnkFormConfigManager-1efd102b.js} +2 -2
- package/dist/esm/{auth-fetcher-e32fe8a4.js → auth-fetcher-9987c66e.js} +1 -1
- package/dist/esm/{dataunit-fetcher-91b094f2.js → dataunit-fetcher-ed6e65ef.js} +1 -1
- package/dist/esm/{form-config-fetcher-126e2471.js → form-config-fetcher-34becd23.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-4284f2a3.js → pesquisa-fetcher-e26c3295.js} +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +5 -5
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_5.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -6
- package/dist/esm/snk-attach.entry.js +5 -5
- package/dist/esm/snk-config-options_3.entry.js +4 -4
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-b03bb5cf.js → snk-data-unit-6258b8ae.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +7 -7
- package/dist/esm/snk-filter-bar_4.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-749d027c.js → snk-guides-viewer-9e43d0ca.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +11 -5
- package/dist/esm/snk-simple-crud.entry.js +8 -8
- package/dist/sankhyablocks/{p-ca316523.entry.js → p-05fda408.entry.js} +1 -1
- package/dist/sankhyablocks/p-18389343.entry.js +1 -0
- package/dist/sankhyablocks/p-1a8295af.entry.js +1 -0
- package/dist/sankhyablocks/{p-7b87d1a8.js → p-1e48864c.js} +1 -1
- package/dist/sankhyablocks/{p-1435701f.js → p-22ddc147.js} +1 -1
- package/dist/sankhyablocks/{p-44efbeed.entry.js → p-2746d606.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4d87cd45.entry.js → p-3bab7e9c.entry.js} +1 -1
- package/dist/sankhyablocks/p-3ce68be5.js +1 -0
- package/dist/sankhyablocks/{p-4be6e0e7.entry.js → p-3d424ae9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-19dc71e9.js → p-3fcb90d6.js} +1 -1
- package/dist/sankhyablocks/{p-647f9830.entry.js → p-4b01cbad.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d62228fb.js → p-5a7e18f4.js} +1 -1
- package/dist/sankhyablocks/{p-4fa79d68.entry.js → p-6b898a51.entry.js} +1 -1
- package/dist/sankhyablocks/{p-82ee6dc3.entry.js → p-6c43fcde.entry.js} +1 -1
- package/dist/sankhyablocks/{p-974fdba6.entry.js → p-6c9d1be4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3653374d.js → p-7e0a0aae.js} +1 -1
- package/dist/sankhyablocks/{p-ee53b000.entry.js → p-815b0a74.entry.js} +1 -1
- package/dist/sankhyablocks/p-91708c3d.entry.js +1 -0
- package/dist/sankhyablocks/{p-ad5e4f9d.entry.js → p-9523fc40.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f0b9303b.js → p-a77bdadc.js} +1 -1
- package/dist/sankhyablocks/{p-23b47a92.js → p-abd9681c.js} +1 -1
- package/dist/sankhyablocks/{p-1cf39cfd.entry.js → p-d3b9b377.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6234bda8.entry.js → p-db8b3536.entry.js} +1 -1
- package/dist/sankhyablocks/p-e289826a.js +1 -0
- package/dist/sankhyablocks/{p-c021a3a9.entry.js → p-e66bcb5c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-41c3bee5.js → p-ef076eea.js} +2 -2
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +7 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +1 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-13391b3d.entry.js +0 -1
- package/dist/sankhyablocks/p-389ba782.entry.js +0 -1
- package/dist/sankhyablocks/p-3ba431c9.js +0 -1
- package/dist/sankhyablocks/p-5dd7f4c7.js +0 -1
- package/dist/sankhyablocks/p-b2de1bcc.entry.js +0 -1
@@ -7,14 +7,14 @@ const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
9
|
const constants = require('./constants-241934b3.js');
|
10
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
10
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-d680be08.js');
|
11
11
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
12
12
|
const Sortable = require('./Sortable-fb1c4cbb.js');
|
13
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
13
|
+
const formConfigFetcher = require('./form-config-fetcher-e0a512c3.js');
|
14
14
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
15
|
-
require('./ConfigStorage-
|
15
|
+
require('./ConfigStorage-6b633b10.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./DataFetcher-
|
17
|
+
require('./DataFetcher-875371e9.js');
|
18
18
|
require('./PrintUtils-bcaeb82f.js');
|
19
19
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
20
20
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
8
|
-
require('./DataFetcher-
|
9
|
-
require('./pesquisa-fetcher-
|
8
|
+
require('./DataFetcher-875371e9.js');
|
9
|
+
require('./pesquisa-fetcher-30cab386.js');
|
10
10
|
const index$1 = require('./index-e3e39724.js');
|
11
11
|
require('./ISave-e91b70a7.js');
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
|
-
require('./dataunit-fetcher-
|
14
|
+
require('./dataunit-fetcher-b95768e8.js');
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./form-config-fetcher-
|
16
|
+
require('./form-config-fetcher-e0a512c3.js');
|
17
17
|
const constants = require('./constants-241934b3.js');
|
18
|
-
const authFetcher = require('./auth-fetcher-
|
18
|
+
const authFetcher = require('./auth-fetcher-24ba4135.js');
|
19
19
|
require('./index-102ba62d.js');
|
20
20
|
require('./PrintUtils-bcaeb82f.js');
|
21
21
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -8,15 +8,15 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
9
9
|
const index = require('./index-e3e39724.js');
|
10
10
|
const constants = require('./constants-241934b3.js');
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
13
|
-
require('./pesquisa-fetcher-
|
11
|
+
const DataFetcher = require('./DataFetcher-875371e9.js');
|
12
|
+
const snkDataUnit = require('./snk-data-unit-33937ffe.js');
|
13
|
+
require('./pesquisa-fetcher-30cab386.js');
|
14
14
|
require('./ISave-e91b70a7.js');
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
|
-
require('./dataunit-fetcher-
|
17
|
+
require('./dataunit-fetcher-b95768e8.js');
|
18
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
19
|
-
require('./form-config-fetcher-
|
19
|
+
require('./form-config-fetcher-e0a512c3.js');
|
20
20
|
require('./PrintUtils-bcaeb82f.js');
|
21
21
|
require('./SnkMessageBuilder-bae64d0d.js');
|
22
22
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
@@ -255,7 +255,7 @@ function getFormatResponse(result) {
|
|
255
255
|
return core.ObjectUtils.stringToObject(response);
|
256
256
|
}
|
257
257
|
|
258
|
-
const DOC_MAX_WIDTH =
|
258
|
+
const DOC_MAX_WIDTH = 860;
|
259
259
|
function getVisibleColumns(columns) {
|
260
260
|
const visibleColumns = [];
|
261
261
|
let totalWidth = 0;
|
@@ -4,7 +4,7 @@ const index = require('./index-f9e81701.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
6
6
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
10
10
|
|
@@ -2,13 +2,13 @@
|
|
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-33937ffe.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
9
9
|
require('./SnkMessageBuilder-bae64d0d.js');
|
10
|
-
require('./dataunit-fetcher-
|
11
|
-
require('./DataFetcher-
|
10
|
+
require('./dataunit-fetcher-b95768e8.js');
|
11
|
+
require('./DataFetcher-875371e9.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -4,22 +4,22 @@ 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-d680be08.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
|
-
require('./DataFetcher-
|
10
|
-
require('./pesquisa-fetcher-
|
9
|
+
require('./DataFetcher-875371e9.js');
|
10
|
+
require('./pesquisa-fetcher-30cab386.js');
|
11
11
|
const index$1 = require('./index-e3e39724.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-
|
15
|
+
require('./dataunit-fetcher-b95768e8.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-e0a512c3.js');
|
18
18
|
const constants = require('./constants-241934b3.js');
|
19
19
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-65964889.js');
|
21
21
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
22
|
-
require('./ConfigStorage-
|
22
|
+
require('./ConfigStorage-6b633b10.js');
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -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-6b633b10.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');
|
@@ -14,8 +14,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
14
14
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
15
15
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
16
16
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
17
|
-
require('./form-config-fetcher-
|
18
|
-
require('./DataFetcher-
|
17
|
+
require('./form-config-fetcher-e0a512c3.js');
|
18
|
+
require('./DataFetcher-875371e9.js');
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
20
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
21
21
|
|
@@ -6,10 +6,10 @@ 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-6b633b10.js');
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
11
|
-
require('./form-config-fetcher-
|
12
|
-
require('./DataFetcher-
|
11
|
+
require('./form-config-fetcher-e0a512c3.js');
|
12
|
+
require('./DataFetcher-875371e9.js');
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
15
|
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-6b633b10.js');
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-fe52f7cf.js');
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
14
|
-
require('./DataFetcher-
|
15
|
-
require('./pesquisa-fetcher-
|
14
|
+
require('./DataFetcher-875371e9.js');
|
15
|
+
require('./pesquisa-fetcher-30cab386.js');
|
16
16
|
require('./ISave-e91b70a7.js');
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
|
-
require('./dataunit-fetcher-
|
19
|
+
require('./dataunit-fetcher-b95768e8.js');
|
20
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
21
|
-
require('./form-config-fetcher-
|
21
|
+
require('./form-config-fetcher-e0a512c3.js');
|
22
22
|
require('./constants-241934b3.js');
|
23
23
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
@@ -2,20 +2,20 @@
|
|
2
2
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-d680be08.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
8
8
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
9
9
|
const constants = require('./constants-241934b3.js');
|
10
|
-
require('./DataFetcher-
|
11
|
-
require('./pesquisa-fetcher-
|
10
|
+
require('./DataFetcher-875371e9.js');
|
11
|
+
require('./pesquisa-fetcher-30cab386.js');
|
12
12
|
const index$1 = require('./index-e3e39724.js');
|
13
13
|
require('./ISave-e91b70a7.js');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
16
|
-
require('./dataunit-fetcher-
|
16
|
+
require('./dataunit-fetcher-b95768e8.js');
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
18
|
-
require('./form-config-fetcher-
|
18
|
+
require('./form-config-fetcher-e0a512c3.js');
|
19
19
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
20
20
|
|
21
21
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
@@ -2,13 +2,13 @@
|
|
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-65964889.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
9
|
-
require('./ConfigStorage-
|
10
|
-
require('./form-config-fetcher-
|
11
|
-
require('./DataFetcher-
|
8
|
+
require('./SnkFormConfigManager-d680be08.js');
|
9
|
+
require('./ConfigStorage-6b633b10.js');
|
10
|
+
require('./form-config-fetcher-e0a512c3.js');
|
11
|
+
require('./DataFetcher-875371e9.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');
|
@@ -18,10 +18,10 @@ require('./field-search-68e34bf4.js');
|
|
18
18
|
require('./taskbar-elements-7e19882d.js');
|
19
19
|
require('./index-e3e39724.js');
|
20
20
|
require('./index-102ba62d.js');
|
21
|
-
require('./pesquisa-fetcher-
|
21
|
+
require('./pesquisa-fetcher-30cab386.js');
|
22
22
|
require('./ISave-e91b70a7.js');
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
24
|
-
require('./dataunit-fetcher-
|
24
|
+
require('./dataunit-fetcher-b95768e8.js');
|
25
25
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
26
26
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
27
27
|
require('./ResourceIDUtils-5ff86aa7.js');
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-6b633b10.js');
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
10
10
|
const index$1 = require('./index-c5771aba.js');
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
13
|
-
require('./form-config-fetcher-
|
14
|
-
require('./DataFetcher-
|
13
|
+
require('./form-config-fetcher-e0a512c3.js');
|
14
|
+
require('./DataFetcher-875371e9.js');
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
17
|
|
@@ -4,15 +4,15 @@ 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 pesquisaFetcher = require('./pesquisa-fetcher-
|
8
|
-
require('./DataFetcher-
|
7
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-30cab386.js');
|
8
|
+
require('./DataFetcher-875371e9.js');
|
9
9
|
require('./index-e3e39724.js');
|
10
10
|
require('./ISave-e91b70a7.js');
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
13
|
-
require('./dataunit-fetcher-
|
13
|
+
require('./dataunit-fetcher-b95768e8.js');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
|
-
require('./form-config-fetcher-
|
15
|
+
require('./form-config-fetcher-e0a512c3.js');
|
16
16
|
require('./constants-241934b3.js');
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
18
18
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -39,6 +39,7 @@ const SnkPesquisa = class {
|
|
39
39
|
this._startLoading = false;
|
40
40
|
this._presentationMode = "list";
|
41
41
|
this._currentView = undefined;
|
42
|
+
this._valideDataSource = false;
|
42
43
|
this.searchLoader = undefined;
|
43
44
|
this.treeLoader = undefined;
|
44
45
|
this.selectItem = undefined;
|
@@ -309,10 +310,13 @@ const SnkPesquisa = class {
|
|
309
310
|
if (this.argument && (!isNaN(argumentNumber) || this.argument.length >= this._limitCharsToSearch)) {
|
310
311
|
this._changeDeboucingTimeout = setTimeout(() => {
|
311
312
|
this.doSearch(isNaN(argumentNumber) ? this.argument : argumentNumber.toString());
|
313
|
+
this._valideDataSource = true;
|
312
314
|
}, this._deboucingTime);
|
313
315
|
}
|
314
316
|
else {
|
315
317
|
this._itemList = undefined;
|
318
|
+
this._gridDataSource = [];
|
319
|
+
this._valideDataSource = false;
|
316
320
|
}
|
317
321
|
}
|
318
322
|
clearDeboucingTimeout() {
|
@@ -323,6 +327,7 @@ const SnkPesquisa = class {
|
|
323
327
|
}
|
324
328
|
onClickSearch() {
|
325
329
|
this.doSearch((this.argument || "").trim());
|
330
|
+
this._valideDataSource = true;
|
326
331
|
}
|
327
332
|
getMessageView() {
|
328
333
|
return this._startLoading
|
@@ -390,7 +395,8 @@ const SnkPesquisa = class {
|
|
390
395
|
var _a, _b;
|
391
396
|
return (index.h(index.Host, null, index.h("div", { class: "snk-pesquisa" }, index.h("div", { class: "snk-pesquisa__input" }, index.h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
|
392
397
|
? index.h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, index.h("ez-icon", { iconName: "close" }))
|
393
|
-
: undefined), index.h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), index.h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), index.h("div", { class: `snk-pesquisa__records-label ${this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, index.h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), index.h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), index.h("div", { class: "snk-pesquisa__content" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null,
|
398
|
+
: undefined), index.h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), index.h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), index.h("div", { class: `snk-pesquisa__records-label ${this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, index.h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), index.h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), index.h("div", { class: "snk-pesquisa__content" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, this._valideDataSource &&
|
399
|
+
index.h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), index.h("stack-item", null, index.h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
|
394
400
|
return (index.h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
|
395
401
|
}))), index.h("stack-item", null, index.h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
|
396
402
|
}
|
@@ -7,19 +7,19 @@ const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
8
|
const constants = require('./constants-241934b3.js');
|
9
9
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
10
|
-
require('./DataFetcher-
|
11
|
-
require('./pesquisa-fetcher-
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
10
|
+
require('./DataFetcher-875371e9.js');
|
11
|
+
require('./pesquisa-fetcher-30cab386.js');
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-fe52f7cf.js');
|
13
13
|
const index$1 = require('./index-e3e39724.js');
|
14
14
|
require('./ISave-e91b70a7.js');
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
17
|
+
const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
|
18
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
19
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
19
|
+
const formConfigFetcher = require('./form-config-fetcher-e0a512c3.js');
|
20
20
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
21
|
-
const ConfigStorage = require('./ConfigStorage-
|
22
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
21
|
+
const ConfigStorage = require('./ConfigStorage-6b633b10.js');
|
22
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-d680be08.js');
|
23
23
|
const index$2 = require('./index-102ba62d.js');
|
24
24
|
require('./PrintUtils-bcaeb82f.js');
|
25
25
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
@@ -777,7 +777,7 @@ const SnkSimpleCrud = class {
|
|
777
777
|
if (this.dataUnit == undefined) {
|
778
778
|
return;
|
779
779
|
}
|
780
|
-
return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail),
|
780
|
+
return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
781
781
|
? undefined
|
782
782
|
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => 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.resolveResourceID() }))));
|
783
783
|
}
|
@@ -2,6 +2,9 @@ import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMeta
|
|
2
2
|
import { DataType } from '@sankhyalabs/core';
|
3
3
|
export class CommonsExporter {
|
4
4
|
constructor(dataUnit, grid) {
|
5
|
+
this.MAX_WIDTH_COD = 60;
|
6
|
+
this.MIN_WIDTH_COD = 10;
|
7
|
+
this.DEFAULT_FONT_SIZE = 13;
|
5
8
|
this.dataUnit = dataUnit;
|
6
9
|
this.grid = grid;
|
7
10
|
}
|
@@ -14,7 +17,7 @@ export class CommonsExporter {
|
|
14
17
|
return this.columnsState;
|
15
18
|
}
|
16
19
|
async buildColumnsMetadata(gridColumns) {
|
17
|
-
var _a, _b;
|
20
|
+
var _a, _b, _c;
|
18
21
|
const columnsMetadata = [];
|
19
22
|
for (const column of gridColumns) {
|
20
23
|
/**
|
@@ -25,30 +28,62 @@ export class CommonsExporter {
|
|
25
28
|
}
|
26
29
|
const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
|
27
30
|
const customFormatter = await this.grid.getCustomValueFormatter(column.name);
|
28
|
-
const
|
29
|
-
|
31
|
+
const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface.SEARCH;
|
32
|
+
const widthColumnDefault = 60;
|
33
|
+
const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
|
34
|
+
let descriptionColumn = undefined;
|
35
|
+
let columnData = {
|
30
36
|
id: column.name,
|
31
|
-
|
37
|
+
label: labelColumn,
|
38
|
+
width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
|
32
39
|
type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
|
33
40
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
34
41
|
customFormatter
|
35
42
|
};
|
43
|
+
if (isUserInterfaceSEARCH) {
|
44
|
+
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
45
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
46
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
47
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
48
|
+
descriptionColumn = {
|
49
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
50
|
+
label: labelDescription,
|
51
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
52
|
+
type: DataType.TEXT,
|
53
|
+
userInterface: UserInterface.LONGTEXT,
|
54
|
+
descriptionFrom: fieldData.name
|
55
|
+
};
|
56
|
+
}
|
57
|
+
if (descriptionColumn) {
|
58
|
+
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
59
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
60
|
+
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
61
|
+
}
|
62
|
+
}
|
36
63
|
columnsMetadata.push(columnData);
|
37
|
-
if (
|
38
|
-
const mergedFrom = fieldData.properties.mergedFrom;
|
39
|
-
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
40
|
-
const descriptionColumn = {
|
41
|
-
label: fieldData.properties.DESCRIPTIONENTITY,
|
42
|
-
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
43
|
-
width: column.width,
|
44
|
-
type: DataType.TEXT,
|
45
|
-
userInterface: UserInterface.LONGTEXT,
|
46
|
-
descriptionFrom: fieldData.name
|
47
|
-
};
|
64
|
+
if (descriptionColumn)
|
48
65
|
columnsMetadata.push(descriptionColumn);
|
49
|
-
}
|
50
66
|
}
|
51
67
|
;
|
52
68
|
return columnsMetadata || [];
|
53
69
|
}
|
70
|
+
getWidthByMetaData(maxWidth, widthCod, widthDescription) {
|
71
|
+
const totalCurrentWidth = widthCod + widthDescription;
|
72
|
+
const codPercentage = widthCod / totalCurrentWidth;
|
73
|
+
const descPercentage = widthDescription / totalCurrentWidth;
|
74
|
+
let newWidthCod = Math.round(maxWidth * codPercentage);
|
75
|
+
let newWidthDescription = Math.round(maxWidth * descPercentage);
|
76
|
+
if (newWidthCod > this.MAX_WIDTH_COD) {
|
77
|
+
newWidthCod = this.MAX_WIDTH_COD;
|
78
|
+
newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
|
79
|
+
}
|
80
|
+
else if (newWidthCod < this.MIN_WIDTH_COD) {
|
81
|
+
newWidthCod = this.MIN_WIDTH_COD;
|
82
|
+
newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
|
83
|
+
}
|
84
|
+
return {
|
85
|
+
codWidth: newWidthCod,
|
86
|
+
descWidth: newWidthDescription
|
87
|
+
};
|
88
|
+
}
|
54
89
|
}
|
@@ -32,7 +32,7 @@ export class PesquisaGrid {
|
|
32
32
|
}
|
33
33
|
initializeDataUnit() {
|
34
34
|
var _a;
|
35
|
-
if (!this.metadata)
|
35
|
+
if (!this.metadata || this._dataunit)
|
36
36
|
return;
|
37
37
|
this._inMemoryLoader = new InMemoryLoader(this.metadata, (_a = this.dataSource) !== null && _a !== void 0 ? _a : []);
|
38
38
|
this._dataunit = this._inMemoryLoader.dataUnit;
|
@@ -19,6 +19,7 @@ export class SnkPesquisa {
|
|
19
19
|
this._startLoading = false;
|
20
20
|
this._presentationMode = "list";
|
21
21
|
this._currentView = undefined;
|
22
|
+
this._valideDataSource = false;
|
22
23
|
this.searchLoader = undefined;
|
23
24
|
this.treeLoader = undefined;
|
24
25
|
this.selectItem = undefined;
|
@@ -289,10 +290,13 @@ export class SnkPesquisa {
|
|
289
290
|
if (this.argument && (!isNaN(argumentNumber) || this.argument.length >= this._limitCharsToSearch)) {
|
290
291
|
this._changeDeboucingTimeout = setTimeout(() => {
|
291
292
|
this.doSearch(isNaN(argumentNumber) ? this.argument : argumentNumber.toString());
|
293
|
+
this._valideDataSource = true;
|
292
294
|
}, this._deboucingTime);
|
293
295
|
}
|
294
296
|
else {
|
295
297
|
this._itemList = undefined;
|
298
|
+
this._gridDataSource = [];
|
299
|
+
this._valideDataSource = false;
|
296
300
|
}
|
297
301
|
}
|
298
302
|
clearDeboucingTimeout() {
|
@@ -303,6 +307,7 @@ export class SnkPesquisa {
|
|
303
307
|
}
|
304
308
|
onClickSearch() {
|
305
309
|
this.doSearch((this.argument || "").trim());
|
310
|
+
this._valideDataSource = true;
|
306
311
|
}
|
307
312
|
getMessageView() {
|
308
313
|
return this._startLoading
|
@@ -370,7 +375,8 @@ export class SnkPesquisa {
|
|
370
375
|
var _a, _b;
|
371
376
|
return (h(Host, null, h("div", { class: "snk-pesquisa" }, h("div", { class: "snk-pesquisa__input" }, h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
|
372
377
|
? h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
373
|
-
: undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null,
|
378
|
+
: undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, this._valideDataSource &&
|
379
|
+
h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), h("stack-item", null, h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
|
374
380
|
return (h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
|
375
381
|
}))), h("stack-item", null, h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
|
376
382
|
}
|
@@ -523,7 +529,8 @@ export class SnkPesquisa {
|
|
523
529
|
"_itemList": {},
|
524
530
|
"_startLoading": {},
|
525
531
|
"_presentationMode": {},
|
526
|
-
"_currentView": {}
|
532
|
+
"_currentView": {},
|
533
|
+
"_valideDataSource": {}
|
527
534
|
};
|
528
535
|
}
|
529
536
|
static get elementRef() { return "_element"; }
|
@@ -751,7 +751,7 @@ export class SnkSimpleCrud {
|
|
751
751
|
if (this.dataUnit == undefined) {
|
752
752
|
return;
|
753
753
|
}
|
754
|
-
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail),
|
754
|
+
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
755
755
|
? undefined
|
756
756
|
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
757
757
|
}
|
@@ -24,9 +24,15 @@ export default class RmPrecisionCustomValueFormatter {
|
|
24
24
|
if (rmPrecision || rmPrecision === 0) {
|
25
25
|
return NumberUtils.format(currentValue, rmPrecision, rmPrecision);
|
26
26
|
}
|
27
|
-
|
28
|
-
|
27
|
+
const columnProps = column === null || column === void 0 ? void 0 : column.props;
|
28
|
+
if (columnProps) {
|
29
|
+
const precision = column === null || column === void 0 ? void 0 : column.props.get('precision');
|
30
|
+
const prettyPrecision = column === null || column === void 0 ? void 0 : column.props.get('prettyPrecision');
|
31
|
+
if (precision !== undefined && prettyPrecision !== undefined) {
|
32
|
+
return NumberUtils.format(currentValue, precision, prettyPrecision);
|
33
|
+
}
|
29
34
|
}
|
35
|
+
return currentValue;
|
30
36
|
}
|
31
37
|
refreshSelectedRows() {
|
32
38
|
var _a;
|
@@ -415,7 +415,7 @@ export class DataFetcher {
|
|
415
415
|
const requestId = StringUtils.generateUUID();
|
416
416
|
DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
|
417
417
|
try {
|
418
|
-
const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset
|
418
|
+
const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
|
419
419
|
response.forEach((resItem, index) => {
|
420
420
|
var _a;
|
421
421
|
if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|