@sankhyalabs/sankhyablocks 8.5.0 → 8.5.2-dev.1
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-c26705cc.js → ConfigStorage-bbffce76.js} +2 -2
- package/dist/cjs/{DataFetcher-3f9e6ee2.js → DataFetcher-0cc561bc.js} +2 -2
- package/dist/cjs/{SnkFormConfigManager-12cd719b.js → SnkFormConfigManager-c49af777.js} +2 -2
- package/dist/cjs/{auth-fetcher-8ba4a15e.js → auth-fetcher-fff2319e.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-f4023df4.js → dataunit-fetcher-16b32d96.js} +1 -1
- package/dist/cjs/{form-config-fetcher-037d16de.js → form-config-fetcher-35752aad.js} +1 -1
- package/dist/cjs/index-f9e81701.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-b5b42098.js → pesquisa-fetcher-415eab63.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button.cjs.entry.js +3 -3
- package/dist/cjs/snk-application.cjs.entry.js +16 -9
- package/dist/cjs/snk-attach.cjs.entry.js +2 -2
- package/dist/cjs/snk-configurator.cjs.entry.js +16 -1
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +20 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +6 -6
- package/dist/cjs/snk-filter-bar.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
- package/dist/cjs/snk-form.cjs.entry.js +4 -4
- package/dist/cjs/snk-grid-config.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +3 -3
- package/dist/cjs/{snk-guides-viewer-2c68848e.js → snk-guides-viewer-36b39c9c.js} +4 -4
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -6
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +3 -3
- package/dist/cjs/snk-taskbar.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +10 -3
- package/dist/collection/components/snk-configurator/snk-configurator.js +33 -1
- package/dist/collection/components/snk-crud/snk-crud.js +1 -1
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +3 -0
- package/dist/collection/components/{snk-taskbar/snk-taskbar-custom-elements.js → snk-custom-slot-elements/snk-custom-slot-elements.js} +10 -10
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +0 -4
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +2 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +3 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +3 -2
- package/dist/components/DataFetcher.js +2 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/snk-application2.js +10 -3
- package/dist/components/snk-configurator2.js +18 -2
- package/dist/components/snk-crud.js +1 -1
- package/dist/components/snk-custom-slot-elements.d.ts +11 -0
- package/dist/components/snk-custom-slot-elements.js +35 -0
- package/dist/components/snk-data-exporter2.js +5 -3
- package/dist/components/snk-taskbar2.js +1 -1
- package/dist/esm/{ConfigStorage-a4720a6a.js → ConfigStorage-80ca14d5.js} +2 -2
- package/dist/esm/{DataFetcher-bc95bc22.js → DataFetcher-044e3988.js} +2 -2
- package/dist/esm/{SnkFormConfigManager-c470c66a.js → SnkFormConfigManager-1a8b3a44.js} +2 -2
- package/dist/esm/{auth-fetcher-c76146d0.js → auth-fetcher-1b378f8e.js} +1 -1
- package/dist/esm/{dataunit-fetcher-b64f839d.js → dataunit-fetcher-e0361781.js} +1 -1
- package/dist/esm/{form-config-fetcher-5df96b19.js → form-config-fetcher-c702e9e3.js} +1 -1
- package/dist/esm/index-a7d3d3f1.js +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-7e282f7e.js → pesquisa-fetcher-d1b4e5a2.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button.entry.js +3 -3
- package/dist/esm/snk-application.entry.js +16 -9
- package/dist/esm/snk-attach.entry.js +2 -2
- package/dist/esm/snk-configurator.entry.js +17 -2
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-custom-slot-elements.entry.js +16 -0
- package/dist/esm/snk-data-exporter.entry.js +6 -4
- package/dist/esm/snk-detail-view.entry.js +6 -6
- package/dist/esm/snk-filter-bar.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +2 -2
- package/dist/esm/snk-form.entry.js +4 -4
- package/dist/esm/snk-grid-config.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +3 -3
- package/dist/esm/{snk-guides-viewer-b2b75165.js → snk-guides-viewer-767ad354.js} +4 -4
- package/dist/esm/snk-guides-viewer.entry.js +6 -6
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +3 -3
- package/dist/esm/snk-taskbar.entry.js +1 -1
- package/dist/sankhyablocks/{p-a78a4c71.entry.js → p-15578509.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1386c7f8.js → p-2043a64f.js} +1 -1
- package/dist/sankhyablocks/{p-62e95771.entry.js → p-251985c1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5f0a3361.entry.js → p-3c1759ba.entry.js} +1 -1
- package/dist/sankhyablocks/{p-35ae5f31.entry.js → p-3ef37b31.entry.js} +1 -1
- package/dist/sankhyablocks/{p-38faeb78.js → p-473c7df4.js} +1 -1
- package/dist/sankhyablocks/p-69754d94.entry.js +1 -0
- package/dist/sankhyablocks/{p-e0c68cfc.entry.js → p-7125c08e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ff7002d5.entry.js → p-727b8cbe.entry.js} +1 -1
- package/dist/sankhyablocks/p-73d3daa8.entry.js +1 -0
- package/dist/sankhyablocks/{p-c5cb4981.js → p-76926391.js} +2 -2
- package/dist/sankhyablocks/{p-d567e5ce.js → p-77aebc26.js} +1 -1
- package/dist/sankhyablocks/{p-c203ce53.entry.js → p-845c7480.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b28f0ae0.js → p-867e9b79.js} +1 -1
- package/dist/sankhyablocks/{p-267e8015.entry.js → p-8d1602f2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2d31c988.entry.js → p-90c07587.entry.js} +1 -1
- package/dist/sankhyablocks/{p-45547a32.entry.js → p-98ae8ddc.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ccffe6f0.entry.js → p-9de24cf3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-761ccda4.js → p-a2c7c45f.js} +1 -1
- package/dist/sankhyablocks/{p-5bff3564.js → p-af86752b.js} +1 -1
- package/dist/sankhyablocks/p-b6d54b6c.entry.js +1 -0
- package/dist/sankhyablocks/p-cd3171a8.entry.js +1 -0
- package/dist/sankhyablocks/{p-648a7c72.entry.js → p-d4fb9642.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1d63beb6.js → p-d5b11196.js} +1 -1
- package/dist/sankhyablocks/{p-34674758.entry.js → p-e46dd27b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7b66470d.entry.js → p-e51dd622.entry.js} +2 -2
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +5 -1
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +7 -0
- package/dist/types/components.d.ts +29 -21
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
- package/package.json +1 -1
- package/react/components.d.ts +1 -1
- package/react/components.js +1 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +0 -20
- package/dist/components/snk-taskbar-custom-elements.d.ts +0 -11
- package/dist/components/snk-taskbar-custom-elements.js +0 -35
- package/dist/esm/snk-taskbar-custom-elements.entry.js +0 -16
- package/dist/sankhyablocks/p-34604220.entry.js +0 -1
- package/dist/sankhyablocks/p-376c885b.entry.js +0 -1
- package/dist/sankhyablocks/p-9a270401.entry.js +0 -1
- package/dist/sankhyablocks/p-dff866ca.entry.js +0 -1
- package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +0 -7
@@ -7,10 +7,10 @@ const draggable_bundle = require('./draggable.bundle-82a25c06.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
9
9
|
const constants = require('./constants-d187e03e.js');
|
10
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
10
|
+
const formConfigFetcher = require('./form-config-fetcher-35752aad.js');
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
12
12
|
require('./_commonjsHelpers-537d719a.js');
|
13
|
-
require('./DataFetcher-
|
13
|
+
require('./DataFetcher-0cc561bc.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
16
16
|
|
@@ -4,11 +4,11 @@ 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-c49af777.js');
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
9
|
-
require('./ConfigStorage-
|
10
|
-
require('./form-config-fetcher-
|
11
|
-
require('./DataFetcher-
|
9
|
+
require('./ConfigStorage-bbffce76.js');
|
10
|
+
require('./form-config-fetcher-35752aad.js');
|
11
|
+
require('./DataFetcher-0cc561bc.js');
|
12
12
|
require('./_commonjsHelpers-537d719a.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -6,10 +6,10 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
8
|
const CheckMode = require('@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode');
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
9
|
+
const ConfigStorage = require('./ConfigStorage-bbffce76.js');
|
10
10
|
const constants = require('./constants-d187e03e.js');
|
11
|
-
require('./form-config-fetcher-
|
12
|
-
require('./DataFetcher-
|
11
|
+
require('./form-config-fetcher-35752aad.js');
|
12
|
+
require('./DataFetcher-0cc561bc.js');
|
13
13
|
require('./_commonjsHelpers-537d719a.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -6,14 +6,14 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
8
8
|
const taskbarElements = require('./taskbar-elements-39949c7a.js');
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
9
|
+
const ConfigStorage = require('./ConfigStorage-bbffce76.js');
|
10
10
|
const index$1 = require('./index-0e663819.js');
|
11
11
|
const taskbarProcessor = require('./taskbar-processor-bce3f499.js');
|
12
12
|
const index$2 = require('./index-102ba62d.js');
|
13
13
|
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-804ff4c7.js');
|
14
14
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
15
|
-
require('./form-config-fetcher-
|
16
|
-
require('./DataFetcher-
|
15
|
+
require('./form-config-fetcher-35752aad.js');
|
16
|
+
require('./DataFetcher-0cc561bc.js');
|
17
17
|
require('./_commonjsHelpers-537d719a.js');
|
18
18
|
require('./PrintUtils-bcaeb82f.js');
|
19
19
|
require('./filter-item-type.enum-aa823a00.js');
|
@@ -2,19 +2,19 @@
|
|
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-c49af777.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const taskbarProcessor = require('./taskbar-processor-bce3f499.js');
|
8
8
|
const taskbarElements = require('./taskbar-elements-39949c7a.js');
|
9
9
|
const constants = require('./constants-d187e03e.js');
|
10
|
-
require('./DataFetcher-
|
11
|
-
require('./pesquisa-fetcher-
|
10
|
+
require('./DataFetcher-0cc561bc.js');
|
11
|
+
require('./pesquisa-fetcher-415eab63.js');
|
12
12
|
const index$1 = require('./index-0e663819.js');
|
13
13
|
require('./ISave-d68ce3cd.js');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
16
16
|
require('./filter-item-type.enum-aa823a00.js');
|
17
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-35752aad.js');
|
18
18
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
19
19
|
|
20
20
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--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-medium);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-medium)}.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-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.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-36b39c9c.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-c49af777.js');
|
9
|
+
require('./ConfigStorage-bbffce76.js');
|
10
|
+
require('./form-config-fetcher-35752aad.js');
|
11
|
+
require('./DataFetcher-0cc561bc.js');
|
12
12
|
require('./_commonjsHelpers-537d719a.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -19,7 +19,7 @@ require('./taskbar-elements-39949c7a.js');
|
|
19
19
|
require('./index-0e663819.js');
|
20
20
|
require('./index-102ba62d.js');
|
21
21
|
require('./constants-d187e03e.js');
|
22
|
-
require('./pesquisa-fetcher-
|
22
|
+
require('./pesquisa-fetcher-415eab63.js');
|
23
23
|
require('./ISave-d68ce3cd.js');
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
25
25
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
@@ -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-1aeb625d.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-bbffce76.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-aa823a00.js');
|
13
|
-
require('./form-config-fetcher-
|
14
|
-
require('./DataFetcher-
|
13
|
+
require('./form-config-fetcher-35752aad.js');
|
14
|
+
require('./DataFetcher-0cc561bc.js');
|
15
15
|
require('./_commonjsHelpers-537d719a.js');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -6,14 +6,14 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const constants = require('./constants-d187e03e.js');
|
8
8
|
const taskbarElements = require('./taskbar-elements-39949c7a.js');
|
9
|
-
require('./DataFetcher-
|
10
|
-
require('./pesquisa-fetcher-
|
9
|
+
require('./DataFetcher-0cc561bc.js');
|
10
|
+
require('./pesquisa-fetcher-415eab63.js');
|
11
11
|
const index$1 = require('./index-0e663819.js');
|
12
12
|
require('./ISave-d68ce3cd.js');
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
15
|
require('./filter-item-type.enum-aa823a00.js');
|
16
|
-
require('./form-config-fetcher-
|
16
|
+
require('./form-config-fetcher-35752aad.js');
|
17
17
|
const taskbarProcessor = require('./taskbar-processor-bce3f499.js');
|
18
18
|
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-804ff4c7.js');
|
19
19
|
require('./index-102ba62d.js');
|
@@ -9,7 +9,7 @@ const taskbarElements = require('./taskbar-elements-39949c7a.js');
|
|
9
9
|
const index$1 = require('./index-0e663819.js');
|
10
10
|
require('./index-102ba62d.js');
|
11
11
|
|
12
|
-
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}
|
12
|
+
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}";
|
13
13
|
|
14
14
|
const SnkTaskbar = class {
|
15
15
|
constructor(hostRef) {
|
@@ -16,6 +16,7 @@
|
|
16
16
|
"./components/snk-crud/subcomponents/snk-form-view.js",
|
17
17
|
"./components/snk-crud/subcomponents/snk-guides-viewer.js",
|
18
18
|
"./components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js",
|
19
|
+
"./components/snk-custom-slot-elements/snk-custom-slot-elements.js",
|
19
20
|
"./components/snk-data-exporter/snk-data-exporter.js",
|
20
21
|
"./components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js",
|
21
22
|
"./components/snk-entity-list/snk-entity-list.js",
|
@@ -48,7 +49,6 @@
|
|
48
49
|
"./components/snk-print-selector/snk-print-selector.js",
|
49
50
|
"./components/snk-simple-bar/snk-simple-bar.js",
|
50
51
|
"./components/snk-simple-crud/snk-simple-crud.js",
|
51
|
-
"./components/snk-taskbar/snk-taskbar-custom-elements.js",
|
52
52
|
"./components/teste-pesquisa/teste-pesquisa.js"
|
53
53
|
],
|
54
54
|
"compiler": {
|
@@ -604,16 +604,23 @@ export class SnkApplication {
|
|
604
604
|
});
|
605
605
|
}
|
606
606
|
/**
|
607
|
-
|
607
|
+
* Retorna o path relativo da aplicação.
|
608
608
|
*/
|
609
|
-
getApplicationPath() {
|
609
|
+
async getApplicationPath() {
|
610
610
|
return new Promise((resolve) => {
|
611
611
|
if (window['applicationenv'] !== "dev") {
|
612
|
-
resolve(`/${
|
612
|
+
resolve(`/${this.getModuleName()}/labsApps/${window["APPLICATION_NAME"]}/build`);
|
613
|
+
return;
|
613
614
|
}
|
614
615
|
resolve('');
|
615
616
|
});
|
616
617
|
}
|
618
|
+
/**
|
619
|
+
* Retorna o contexto Sankhya-om da aplicação.
|
620
|
+
*/
|
621
|
+
getModuleName() {
|
622
|
+
return window["MGE_MODULE_NAME"] || 'mgefin-bff';
|
623
|
+
}
|
617
624
|
/**
|
618
625
|
* Com base em um campo realiza um "select distinct" respeitando os
|
619
626
|
* filtros atuais do dataUnit e um critério de filtro para a própria
|
@@ -10,6 +10,7 @@ export class SnkConfigurator {
|
|
10
10
|
this.configName = undefined;
|
11
11
|
this.resourceID = undefined;
|
12
12
|
this.viewMode = VIEW_MODE.GRID;
|
13
|
+
this.customContainerId = undefined;
|
13
14
|
this.messagesBuilder = undefined;
|
14
15
|
}
|
15
16
|
/**
|
@@ -79,8 +80,21 @@ export class SnkConfigurator {
|
|
79
80
|
this._permissions = {};
|
80
81
|
}
|
81
82
|
}
|
83
|
+
componentDidRender() {
|
84
|
+
if (!this.customContainerId)
|
85
|
+
return;
|
86
|
+
const container = document.querySelector(`#${this.customContainerId}`);
|
87
|
+
const customElements = container === null || container === void 0 ? void 0 : container.querySelector('#SnkConfigContainerSlot');
|
88
|
+
if (!customElements)
|
89
|
+
return;
|
90
|
+
const configuratorCustomElement = customElements.firstChild;
|
91
|
+
if (!configuratorCustomElement)
|
92
|
+
return;
|
93
|
+
const insideCustomElementsContainer = this._element.querySelector("#slotContainer");
|
94
|
+
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
95
|
+
}
|
82
96
|
render() {
|
83
|
-
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), h("div", {
|
97
|
+
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), h("ez-button", { label: "Salvar", onClick: () => this.save.emit(), class: "ez-button--primary" }))))));
|
84
98
|
}
|
85
99
|
static get is() { return "snk-configurator"; }
|
86
100
|
static get encapsulation() { return "scoped"; }
|
@@ -171,6 +185,23 @@ export class SnkConfigurator {
|
|
171
185
|
"reflect": false,
|
172
186
|
"defaultValue": "VIEW_MODE.GRID"
|
173
187
|
},
|
188
|
+
"customContainerId": {
|
189
|
+
"type": "string",
|
190
|
+
"mutable": false,
|
191
|
+
"complexType": {
|
192
|
+
"original": "string",
|
193
|
+
"resolved": "string",
|
194
|
+
"references": {}
|
195
|
+
},
|
196
|
+
"required": false,
|
197
|
+
"optional": false,
|
198
|
+
"docs": {
|
199
|
+
"tags": [],
|
200
|
+
"text": "ID do container que cont\u00E9m os elementos customizados do configurator."
|
201
|
+
},
|
202
|
+
"attribute": "custom-container-id",
|
203
|
+
"reflect": false
|
204
|
+
},
|
174
205
|
"messagesBuilder": {
|
175
206
|
"type": "unknown",
|
176
207
|
"mutable": true,
|
@@ -308,4 +339,5 @@ export class SnkConfigurator {
|
|
308
339
|
}
|
309
340
|
};
|
310
341
|
}
|
342
|
+
static get elementRef() { return "_element"; }
|
311
343
|
}
|
@@ -171,7 +171,7 @@ export class SnkCrud {
|
|
171
171
|
return;
|
172
172
|
}
|
173
173
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
174
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID }, h("div", {
|
174
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
175
175
|
}
|
176
176
|
static get is() { return "snk-crud"; }
|
177
177
|
static get encapsulation() { return "scoped"; }
|
@@ -1,26 +1,26 @@
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
2
|
-
export class
|
2
|
+
export class SnkCustomSlotElements {
|
3
3
|
constructor() {
|
4
|
-
this.
|
4
|
+
this.slotName = 'CUSTOM_SLOT_ELEMENTS';
|
5
5
|
}
|
6
6
|
render() {
|
7
|
-
return (h(Host, { slot: this.
|
7
|
+
return (h(Host, { slot: this.slotName }, h("div", { id: this.slotName, class: "custom-slot-elements-container" }, h("slot", null))));
|
8
8
|
}
|
9
|
-
static get is() { return "snk-
|
9
|
+
static get is() { return "snk-custom-slot-elements"; }
|
10
10
|
static get encapsulation() { return "scoped"; }
|
11
11
|
static get originalStyleUrls() {
|
12
12
|
return {
|
13
|
-
"$": ["snk-
|
13
|
+
"$": ["snk-custom-slot-elements.css"]
|
14
14
|
};
|
15
15
|
}
|
16
16
|
static get styleUrls() {
|
17
17
|
return {
|
18
|
-
"$": ["snk-
|
18
|
+
"$": ["snk-custom-slot-elements.css"]
|
19
19
|
};
|
20
20
|
}
|
21
21
|
static get properties() {
|
22
22
|
return {
|
23
|
-
"
|
23
|
+
"slotName": {
|
24
24
|
"type": "string",
|
25
25
|
"mutable": false,
|
26
26
|
"complexType": {
|
@@ -32,11 +32,11 @@ export class SnkTaskbarCustomElements {
|
|
32
32
|
"optional": false,
|
33
33
|
"docs": {
|
34
34
|
"tags": [],
|
35
|
-
"text": "Nome do slot
|
35
|
+
"text": "Nome do slot onde os elementos customizados dever\u00E3o aparecer."
|
36
36
|
},
|
37
|
-
"attribute": "slot",
|
37
|
+
"attribute": "slot-name",
|
38
38
|
"reflect": false,
|
39
|
-
"defaultValue": "'
|
39
|
+
"defaultValue": "'CUSTOM_SLOT_ELEMENTS'"
|
40
40
|
}
|
41
41
|
};
|
42
42
|
}
|
@@ -15,7 +15,6 @@ import { GraphQLRecaller } from './recaller/GraphQLRecaller';
|
|
15
15
|
import { PrintUtils } from '../../utils/PrintUtils';
|
16
16
|
export class DataFetcher {
|
17
17
|
constructor() {
|
18
|
-
this.GRAPHQL_PATH = `/${window.MGE_MODULE_NAME || 'mgefin-bff'}/graphql`;
|
19
18
|
this.ready = true;
|
20
19
|
this.watingRequestsById = new Map();
|
21
20
|
}
|
@@ -35,6 +34,7 @@ export class DataFetcher {
|
|
35
34
|
}
|
36
35
|
}
|
37
36
|
this.instance.application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
37
|
+
this.instance.graphqlPath = `/${this.instance.application.getModuleName()}/graphql`;
|
38
38
|
return this.instance;
|
39
39
|
}
|
40
40
|
static addRequestListener(listener) {
|
@@ -376,7 +376,7 @@ export class DataFetcher {
|
|
376
376
|
let res = undefined;
|
377
377
|
let dataResponse = [];
|
378
378
|
let errorsResponse = [];
|
379
|
-
let url = `${this.resolveURL() + this.
|
379
|
+
let url = `${this.resolveURL() + this.graphqlPath}`;
|
380
380
|
const responseExtensions = [];
|
381
381
|
if (window['mgeSession']) {
|
382
382
|
url += `?mgeSession=${window['mgeSession']}`;
|
@@ -10,11 +10,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
10
10
|
}
|
11
11
|
return t;
|
12
12
|
};
|
13
|
-
import { ObjectUtils } from "@sankhyalabs/core";
|
13
|
+
import { ApplicationContext, ObjectUtils } from "@sankhyalabs/core";
|
14
14
|
import { DataFetcher } from '../../DataFetcher';
|
15
15
|
export default function fetchDataExporter(_a) {
|
16
16
|
var { methodName } = _a, requestBody = __rest(_a, ["methodName"]);
|
17
|
-
const
|
17
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
18
|
+
const serviceName = `${application.getModuleName()}@DataExporterSPBean.${methodName}`;
|
18
19
|
const payload = { serviceName, requestBody };
|
19
20
|
return new Promise((resolve, reject) => {
|
20
21
|
DataFetcher.get()
|
@@ -1,7 +1,8 @@
|
|
1
|
-
import { ObjectUtils } from '@sankhyalabs/core';
|
1
|
+
import { ApplicationContext, ObjectUtils } from '@sankhyalabs/core';
|
2
2
|
import { DataFetcher } from '../../DataFetcher';
|
3
3
|
export default function getPersonalizedReports(requestBody) {
|
4
|
-
const
|
4
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
5
|
+
const serviceName = `${application.getModuleName()}@DataExporterSPBean.getPersonalizedReports`;
|
5
6
|
const payload = { serviceName, requestBody };
|
6
7
|
return new Promise((resolve, reject) => (DataFetcher.get()
|
7
8
|
.callServiceBroker(serviceName, ObjectUtils.objectToString(payload))
|
@@ -6522,7 +6522,6 @@ var __asyncValues = (undefined && undefined.__asyncValues) || function (o) {
|
|
6522
6522
|
};
|
6523
6523
|
class DataFetcher {
|
6524
6524
|
constructor() {
|
6525
|
-
this.GRAPHQL_PATH = `/${window.MGE_MODULE_NAME || 'mgefin-bff'}/graphql`;
|
6526
6525
|
this.ready = true;
|
6527
6526
|
this.watingRequestsById = new Map();
|
6528
6527
|
}
|
@@ -6542,6 +6541,7 @@ class DataFetcher {
|
|
6542
6541
|
}
|
6543
6542
|
}
|
6544
6543
|
this.instance.application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
6544
|
+
this.instance.graphqlPath = `/${this.instance.application.getModuleName()}/graphql`;
|
6545
6545
|
return this.instance;
|
6546
6546
|
}
|
6547
6547
|
static addRequestListener(listener) {
|
@@ -6871,7 +6871,7 @@ class DataFetcher {
|
|
6871
6871
|
let res = undefined;
|
6872
6872
|
let dataResponse = [];
|
6873
6873
|
let errorsResponse = [];
|
6874
|
-
let url = `${this.resolveURL() + this.
|
6874
|
+
let url = `${this.resolveURL() + this.graphqlPath}`;
|
6875
6875
|
const responseExtensions = [];
|
6876
6876
|
if (window['mgeSession']) {
|
6877
6877
|
url += `?mgeSession=${window['mgeSession']}`;
|
@@ -7,6 +7,7 @@ export { SnkActionsForm as SnkClientConfirm } from '../types/components/snk-acti
|
|
7
7
|
export { SnkConfigOptions as SnkConfigOptions } from '../types/components/snk-form/subcomponents/snk-config-options/snk-config-options';
|
8
8
|
export { SnkConfigurator as SnkConfigurator } from '../types/components/snk-configurator/snk-configurator';
|
9
9
|
export { SnkCrud as SnkCrud } from '../types/components/snk-crud/snk-crud';
|
10
|
+
export { SnkCustomSlotElements as SnkCustomSlotElements } from '../types/components/snk-custom-slot-elements/snk-custom-slot-elements';
|
10
11
|
export { SnkDataExporter as SnkDataExporter } from '../types/components/snk-data-exporter/snk-data-exporter';
|
11
12
|
export { SnkDataUnit as SnkDataUnit } from '../types/components/snk-data-unit/snk-data-unit';
|
12
13
|
export { SnkDetailView as SnkDetailView } from '../types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view';
|
@@ -47,7 +48,6 @@ export { SnkSimpleBar as SnkSimpleBar } from '../types/components/snk-simple-bar
|
|
47
48
|
export { SnkSimpleCrud as SnkSimpleCrud } from '../types/components/snk-simple-crud/snk-simple-crud';
|
48
49
|
export { SnkTabConfig as SnkTabConfig } from '../types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config';
|
49
50
|
export { SnkTaskbar as SnkTaskbar } from '../types/components/snk-taskbar/snk-taskbar';
|
50
|
-
export { SnkTaskbarCustomElements as SnkTaskbarCustomElements } from '../types/components/snk-taskbar/snk-taskbar-custom-elements';
|
51
51
|
export { TestePesquisa as TestePesquisa } from '../types/components/teste-pesquisa/teste-pesquisa';
|
52
52
|
|
53
53
|
/**
|
package/dist/components/index.js
CHANGED
@@ -7,6 +7,7 @@ export { SnkClientConfirm, defineCustomElement as defineCustomElementSnkClientCo
|
|
7
7
|
export { SnkConfigOptions, defineCustomElement as defineCustomElementSnkConfigOptions } from './snk-config-options.js';
|
8
8
|
export { SnkConfigurator, defineCustomElement as defineCustomElementSnkConfigurator } from './snk-configurator.js';
|
9
9
|
export { SnkCrud, defineCustomElement as defineCustomElementSnkCrud } from './snk-crud.js';
|
10
|
+
export { SnkCustomSlotElements, defineCustomElement as defineCustomElementSnkCustomSlotElements } from './snk-custom-slot-elements.js';
|
10
11
|
export { SnkDataExporter, defineCustomElement as defineCustomElementSnkDataExporter } from './snk-data-exporter.js';
|
11
12
|
export { SnkDataUnit, defineCustomElement as defineCustomElementSnkDataUnit } from './snk-data-unit.js';
|
12
13
|
export { SnkDetailView, defineCustomElement as defineCustomElementSnkDetailView } from './snk-detail-view.js';
|
@@ -47,5 +48,4 @@ export { SnkSimpleBar, defineCustomElement as defineCustomElementSnkSimpleBar }
|
|
47
48
|
export { SnkSimpleCrud, defineCustomElement as defineCustomElementSnkSimpleCrud } from './snk-simple-crud.js';
|
48
49
|
export { SnkTabConfig, defineCustomElement as defineCustomElementSnkTabConfig } from './snk-tab-config.js';
|
49
50
|
export { SnkTaskbar, defineCustomElement as defineCustomElementSnkTaskbar } from './snk-taskbar.js';
|
50
|
-
export { SnkTaskbarCustomElements, defineCustomElement as defineCustomElementSnkTaskbarCustomElements } from './snk-taskbar-custom-elements.js';
|
51
51
|
export { TestePesquisa, defineCustomElement as defineCustomElementTestePesquisa } from './teste-pesquisa.js';
|
@@ -814,16 +814,23 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
814
814
|
});
|
815
815
|
}
|
816
816
|
/**
|
817
|
-
|
817
|
+
* Retorna o path relativo da aplicação.
|
818
818
|
*/
|
819
|
-
getApplicationPath() {
|
819
|
+
async getApplicationPath() {
|
820
820
|
return new Promise((resolve) => {
|
821
821
|
if (window['applicationenv'] !== "dev") {
|
822
|
-
resolve(`/${
|
822
|
+
resolve(`/${this.getModuleName()}/labsApps/${window["APPLICATION_NAME"]}/build`);
|
823
|
+
return;
|
823
824
|
}
|
824
825
|
resolve('');
|
825
826
|
});
|
826
827
|
}
|
828
|
+
/**
|
829
|
+
* Retorna o contexto Sankhya-om da aplicação.
|
830
|
+
*/
|
831
|
+
getModuleName() {
|
832
|
+
return window["MGE_MODULE_NAME"] || 'mgefin-bff';
|
833
|
+
}
|
827
834
|
/**
|
828
835
|
* Com base em um campo realiza um "select distinct" respeitando os
|
829
836
|
* filtros atuais do dataUnit e um critério de filtro para a própria
|
@@ -19,6 +19,7 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
19
19
|
this.configName = undefined;
|
20
20
|
this.resourceID = undefined;
|
21
21
|
this.viewMode = VIEW_MODE.GRID;
|
22
|
+
this.customContainerId = undefined;
|
22
23
|
this.messagesBuilder = undefined;
|
23
24
|
}
|
24
25
|
/**
|
@@ -88,15 +89,30 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
88
89
|
this._permissions = {};
|
89
90
|
}
|
90
91
|
}
|
92
|
+
componentDidRender() {
|
93
|
+
if (!this.customContainerId)
|
94
|
+
return;
|
95
|
+
const container = document.querySelector(`#${this.customContainerId}`);
|
96
|
+
const customElements = container === null || container === void 0 ? void 0 : container.querySelector('#SnkConfigContainerSlot');
|
97
|
+
if (!customElements)
|
98
|
+
return;
|
99
|
+
const configuratorCustomElement = customElements.firstChild;
|
100
|
+
if (!configuratorCustomElement)
|
101
|
+
return;
|
102
|
+
const insideCustomElementsContainer = this._element.querySelector("#slotContainer");
|
103
|
+
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
104
|
+
}
|
91
105
|
render() {
|
92
|
-
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), h("div", {
|
106
|
+
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), h("ez-button", { label: "Salvar", onClick: () => this.save.emit(), class: "ez-button--primary" }))))));
|
93
107
|
}
|
108
|
+
get _element() { return this; }
|
94
109
|
static get style() { return snkConfiguratorCss; }
|
95
|
-
}, [
|
110
|
+
}, [2, "snk-configurator", {
|
96
111
|
"showActionButtons": [4, "show-action-buttons"],
|
97
112
|
"configName": [1, "config-name"],
|
98
113
|
"resourceID": [1, "resource-i-d"],
|
99
114
|
"viewMode": [2, "view-mode"],
|
115
|
+
"customContainerId": [1, "custom-container-id"],
|
100
116
|
"messagesBuilder": [1040],
|
101
117
|
"_opened": [32],
|
102
118
|
"_permissions": [32],
|
@@ -209,7 +209,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
209
209
|
return;
|
210
210
|
}
|
211
211
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
212
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID }, h("div", {
|
212
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
213
213
|
}
|
214
214
|
get _element() { return this; }
|
215
215
|
static get watchers() { return {
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface SnkCustomSlotElements extends Components.SnkCustomSlotElements, HTMLElement {}
|
4
|
+
export const SnkCustomSlotElements: {
|
5
|
+
prototype: SnkCustomSlotElements;
|
6
|
+
new (): SnkCustomSlotElements;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|