@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-59880.7 → 0.0.0-bugfix-dev-KB-61118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-9a53a42c.js → ConfigStorage-942ce74b.js} +2 -2
- package/dist/cjs/{DataFetcher-515bda03.js → DataFetcher-313debd8.js} +11 -4
- package/dist/cjs/{IExporterProvider-e286ef6a.js → IExporterProvider-0c814e9a.js} +4 -4
- package/dist/cjs/{SnkFormConfigManager-7b222c78.js → SnkFormConfigManager-52f99b4d.js} +2 -2
- package/dist/cjs/{auth-fetcher-5acb0335.js → auth-fetcher-54f5ff9d.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-7a08e4dd.js → dataunit-fetcher-620b29a1.js} +1 -1
- package/dist/cjs/{form-config-fetcher-3f430aee.js → form-config-fetcher-2dd00e5b.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-916a935c.js → pesquisa-fetcher-680e198f.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -6
- package/dist/cjs/snk-attach.cjs.entry.js +27 -21
- package/dist/cjs/snk-crud.cjs.entry.js +21 -15
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
- package/dist/cjs/{snk-data-unit-e07cf207.js → snk-data-unit-eca53cfc.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.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.cjs.entry.js +12 -6
- package/dist/cjs/{snk-guides-viewer-66dd6949.js → snk-guides-viewer-5d5f0f25.js} +14 -11
- 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-simple-crud.cjs.entry.js +7 -7
- package/dist/collection/components/snk-attach/snk-attach.js +22 -16
- package/dist/collection/components/snk-crud/snk-crud.js +16 -10
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +25 -6
- package/dist/collection/components/snk-grid/snk-grid.js +22 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +11 -4
- package/dist/components/DataFetcher.js +11 -4
- package/dist/components/snk-attach2.js +22 -16
- package/dist/components/snk-crud.js +16 -10
- package/dist/components/snk-detail-view2.js +11 -7
- package/dist/components/snk-grid2.js +8 -1
- package/dist/esm/{ConfigStorage-174101b9.js → ConfigStorage-86187da3.js} +2 -2
- package/dist/esm/{DataFetcher-4b4b7beb.js → DataFetcher-c1baf61d.js} +11 -4
- package/dist/esm/{IExporterProvider-cf5a56ee.js → IExporterProvider-c0194569.js} +4 -4
- package/dist/esm/{SnkFormConfigManager-3bdb3e1f.js → SnkFormConfigManager-5b0d69cd.js} +2 -2
- package/dist/esm/{auth-fetcher-9f86c346.js → auth-fetcher-039abba3.js} +1 -1
- package/dist/esm/{dataunit-fetcher-f3fa35b9.js → dataunit-fetcher-3fbf9d12.js} +1 -1
- package/dist/esm/{form-config-fetcher-5d72aaf1.js → form-config-fetcher-30fb808f.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-9cfab836.js → pesquisa-fetcher-03c8f919.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -6
- package/dist/esm/snk-attach.entry.js +27 -21
- package/dist/esm/snk-crud.entry.js +21 -15
- package/dist/esm/snk-data-exporter.entry.js +5 -5
- package/dist/esm/{snk-data-unit-df66f748.js → snk-data-unit-49b898f7.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.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.entry.js +12 -6
- package/dist/esm/{snk-guides-viewer-11cf8dc7.js → snk-guides-viewer-ef8c4eec.js} +14 -11
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +7 -7
- package/dist/sankhyablocks/p-034c0efb.entry.js +1 -0
- package/dist/sankhyablocks/{p-b27114c4.js → p-060fdb6c.js} +1 -1
- package/dist/sankhyablocks/p-0c846b5a.entry.js +1 -0
- package/dist/sankhyablocks/{p-2a84e45b.entry.js → p-14a08904.entry.js} +1 -1
- package/dist/sankhyablocks/{p-188e1432.entry.js → p-294df368.entry.js} +1 -1
- package/dist/sankhyablocks/p-2ac8bd11.entry.js +1 -0
- package/dist/sankhyablocks/{p-0a28cb19.entry.js → p-32062be4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5bd78e4c.entry.js → p-47b60deb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fde91811.js → p-672302c3.js} +1 -1
- package/dist/sankhyablocks/{p-3e4c2cfe.entry.js → p-7259f903.entry.js} +2 -2
- package/dist/sankhyablocks/{p-8171e586.entry.js → p-8582cd05.entry.js} +1 -1
- package/dist/sankhyablocks/p-913a9979.js +1 -0
- package/dist/sankhyablocks/{p-59dccb7a.entry.js → p-a1d72395.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b643f746.entry.js → p-a64baa0f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6b2be902.js → p-af8efd95.js} +1 -1
- package/dist/sankhyablocks/{p-566f5f50.js → p-aff76a53.js} +1 -1
- package/dist/sankhyablocks/{p-1c6debe6.entry.js → p-b8577312.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ffb0fbef.entry.js → p-ba05fdb8.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a97060b0.js → p-babe7665.js} +1 -1
- package/dist/sankhyablocks/p-d26365ad.js +1 -0
- package/dist/sankhyablocks/{p-010d475f.js → p-dc7c9047.js} +1 -1
- package/dist/sankhyablocks/{p-e0c27486.js → p-df5451c7.js} +1 -1
- package/dist/sankhyablocks/{p-b120d1d1.entry.js → p-e5c25e0b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-aa854fa8.entry.js → p-eae7a817.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a4e6d90a.js → p-f88cfc3c.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +5 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +4 -0
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-2cc2d8fd.entry.js +0 -1
- package/dist/sankhyablocks/p-50e72d6c.js +0 -1
- package/dist/sankhyablocks/p-a6dfa396.js +0 -1
- package/dist/sankhyablocks/p-b68918fc.entry.js +0 -1
- package/dist/sankhyablocks/p-da7c81d6.entry.js +0 -1
|
@@ -7,15 +7,15 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const index = require('./index-0922807b.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const DataFetcher = require('./DataFetcher-
|
|
11
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
12
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
const DataFetcher = require('./DataFetcher-313debd8.js');
|
|
11
|
+
const snkDataUnit = require('./snk-data-unit-eca53cfc.js');
|
|
12
|
+
require('./pesquisa-fetcher-680e198f.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-620b29a1.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-2dd00e5b.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
20
|
require('./SnkMessageBuilder-4a95fe86.js');
|
|
21
21
|
require('./RecordIDUtils-3735135c.js');
|
|
@@ -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-4a95fe86.js');
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-620b29a1.js');
|
|
8
8
|
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
9
9
|
|
|
10
10
|
const SnkDataUnit = class {
|
|
@@ -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-eca53cfc.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
require('./SnkMessageBuilder-4a95fe86.js');
|
|
10
|
-
require('./dataunit-fetcher-
|
|
11
|
-
require('./DataFetcher-
|
|
10
|
+
require('./dataunit-fetcher-620b29a1.js');
|
|
11
|
+
require('./DataFetcher-313debd8.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-52f99b4d.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
|
-
require('./DataFetcher-
|
|
10
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./DataFetcher-313debd8.js');
|
|
10
|
+
require('./pesquisa-fetcher-680e198f.js');
|
|
11
11
|
const index$1 = require('./index-0922807b.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-620b29a1.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
17
|
+
require('./form-config-fetcher-2dd00e5b.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
19
19
|
const constants = require('./constants-35ddd366.js');
|
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-5d5f0f25.js');
|
|
21
21
|
const SnkMessageBuilder = require('./SnkMessageBuilder-4a95fe86.js');
|
|
22
|
-
require('./ConfigStorage-
|
|
22
|
+
require('./ConfigStorage-942ce74b.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,15 +5,15 @@ 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-942ce74b.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');
|
|
12
12
|
const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
|
|
13
13
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
14
14
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
15
|
-
require('./form-config-fetcher-
|
|
16
|
-
require('./DataFetcher-
|
|
15
|
+
require('./form-config-fetcher-2dd00e5b.js');
|
|
16
|
+
require('./DataFetcher-313debd8.js');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
19
19
|
|
|
@@ -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-942ce74b.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-2dd00e5b.js');
|
|
12
|
+
require('./DataFetcher-313debd8.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -7,9 +7,9 @@ const Sortable = require('./Sortable-fb1c4cbb.js');
|
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
10
|
+
const formConfigFetcher = require('./form-config-fetcher-2dd00e5b.js');
|
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
12
|
-
require('./DataFetcher-
|
|
12
|
+
require('./DataFetcher-313debd8.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -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-52f99b4d.js');
|
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
9
|
-
require('./ConfigStorage-
|
|
10
|
-
require('./form-config-fetcher-
|
|
11
|
-
require('./DataFetcher-
|
|
9
|
+
require('./ConfigStorage-942ce74b.js');
|
|
10
|
+
require('./form-config-fetcher-2dd00e5b.js');
|
|
11
|
+
require('./DataFetcher-313debd8.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');
|
|
@@ -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-d9392685.js');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-942ce74b.js');
|
|
9
9
|
const index$1 = require('./index-0922807b.js');
|
|
10
10
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const IExporterProvider = require('./IExporterProvider-
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-0c814e9a.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
|
-
require('./DataFetcher-
|
|
15
|
-
require('./pesquisa-fetcher-
|
|
14
|
+
require('./DataFetcher-313debd8.js');
|
|
15
|
+
require('./pesquisa-fetcher-680e198f.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-620b29a1.js');
|
|
20
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
21
|
-
require('./form-config-fetcher-
|
|
21
|
+
require('./form-config-fetcher-2dd00e5b.js');
|
|
22
22
|
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
24
24
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -223,6 +223,12 @@ const SnkGrid = class {
|
|
|
223
223
|
async removeCustomValueFormatter(columnName) {
|
|
224
224
|
this._grid.removeCustomValueFormatter(columnName);
|
|
225
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Atribui o foco para a grade.
|
|
228
|
+
*/
|
|
229
|
+
async setFocus() {
|
|
230
|
+
this._grid.setFocus();
|
|
231
|
+
}
|
|
226
232
|
async handleGridLegacyConfigName(newLegacyConfig, oldLegacyConfig) {
|
|
227
233
|
if (!newLegacyConfig) {
|
|
228
234
|
return;
|
|
@@ -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-52f99b4d.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
require('./DataFetcher-313debd8.js');
|
|
11
|
+
require('./pesquisa-fetcher-680e198f.js');
|
|
12
12
|
const index$1 = require('./index-0922807b.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-620b29a1.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-2dd00e5b.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-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__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-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}";
|
|
@@ -104,6 +104,12 @@ const SnkGuidesViewer = class {
|
|
|
104
104
|
};
|
|
105
105
|
this._fieldsProps = Object.assign(Object.assign({}, this._fieldsProps), newFieldsProps);
|
|
106
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Atribui o foco para o componente.
|
|
109
|
+
*/
|
|
110
|
+
async setFocus() {
|
|
111
|
+
this._container.focus();
|
|
112
|
+
}
|
|
107
113
|
exitViewer() {
|
|
108
114
|
if (this.dataUnit.isDirty()) {
|
|
109
115
|
this.dataUnit.cancelEdition({ after: () => this.exit.emit() });
|
|
@@ -480,17 +486,14 @@ const SnkGuidesViewer = class {
|
|
|
480
486
|
render() {
|
|
481
487
|
var _a, _b;
|
|
482
488
|
if (this._formEditorConfigManager != undefined) {
|
|
483
|
-
return (index.h("snk-form-config", { dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
489
|
+
return (index.h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
484
490
|
}
|
|
485
|
-
if (!this.dataUnit) {
|
|
486
|
-
return;
|
|
487
|
-
}
|
|
488
|
-
if (!this._configManager.isLoaded) {
|
|
491
|
+
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
489
492
|
return;
|
|
490
493
|
}
|
|
491
494
|
this.loadTaskbarProcessor();
|
|
492
495
|
const showGuides = this._guides && (this._guides.length > 1);
|
|
493
|
-
return (index.h("section", { class: "snk-guides-viewer" }, index.h("div", { class: "ez-row snk-guides-viewer__header" }, index.h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, index.h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
496
|
+
return (index.h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, index.h("div", { class: "ez-row snk-guides-viewer__header" }, index.h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, index.h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
494
497
|
index.h("div", { class: "ez-margin-top--extra-small" }, index.h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != index$1.PresentationMode.SECONDARY && this.buildTaskBar()), index.h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
495
498
|
index.h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
496
499
|
:
|
|
@@ -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-5d5f0f25.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-52f99b4d.js');
|
|
9
|
+
require('./ConfigStorage-942ce74b.js');
|
|
10
|
+
require('./form-config-fetcher-2dd00e5b.js');
|
|
11
|
+
require('./DataFetcher-313debd8.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('./taskbar-elements-d9392685.js');
|
|
|
18
18
|
require('./index-0922807b.js');
|
|
19
19
|
require('./index-102ba62d.js');
|
|
20
20
|
require('./constants-35ddd366.js');
|
|
21
|
-
require('./pesquisa-fetcher-
|
|
21
|
+
require('./pesquisa-fetcher-680e198f.js');
|
|
22
22
|
require('./ISave-e91b70a7.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
24
|
-
require('./dataunit-fetcher-
|
|
24
|
+
require('./dataunit-fetcher-620b29a1.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-942ce74b.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-2dd00e5b.js');
|
|
14
|
+
require('./DataFetcher-313debd8.js');
|
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
17
|
|
|
@@ -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-35ddd366.js');
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
12
|
-
const IExporterProvider = require('./IExporterProvider-
|
|
10
|
+
require('./DataFetcher-313debd8.js');
|
|
11
|
+
require('./pesquisa-fetcher-680e198f.js');
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-0c814e9a.js');
|
|
13
13
|
const index = require('./index-0922807b.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-620b29a1.js');
|
|
18
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
19
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
19
|
+
const formConfigFetcher = require('./form-config-fetcher-2dd00e5b.js');
|
|
20
20
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
21
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
22
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
21
|
+
const ConfigStorage = require('./ConfigStorage-942ce74b.js');
|
|
22
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-52f99b4d.js');
|
|
23
23
|
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
24
24
|
const index$2 = require('./index-102ba62d.js');
|
|
25
25
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -42,6 +42,9 @@ export class SnkAttach {
|
|
|
42
42
|
}
|
|
43
43
|
async initAttach() {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f;
|
|
45
|
+
if (!this.fetcherType) {
|
|
46
|
+
this.fetcherType = "AnexoSistema";
|
|
47
|
+
}
|
|
45
48
|
await this.loadAttachmentDataUnit();
|
|
46
49
|
this.returnToGridMode();
|
|
47
50
|
if (this.fetcherType === "AnexoSistema") {
|
|
@@ -55,7 +58,8 @@ export class SnkAttach {
|
|
|
55
58
|
if (hasMoreOneItem)
|
|
56
59
|
return;
|
|
57
60
|
}
|
|
58
|
-
|
|
61
|
+
await ((_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata());
|
|
62
|
+
await ((_f = this._currentDataUnit) === null || _f === void 0 ? void 0 : _f.loadData(undefined, undefined, true, this.registerKey));
|
|
59
63
|
}
|
|
60
64
|
/**
|
|
61
65
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -94,14 +98,14 @@ export class SnkAttach {
|
|
|
94
98
|
if (this._crudElement)
|
|
95
99
|
this._crudElement.goToView(VIEW_MODE.GRID);
|
|
96
100
|
}
|
|
97
|
-
loadAttachmentDataUnit() {
|
|
101
|
+
async loadAttachmentDataUnit() {
|
|
98
102
|
try {
|
|
99
103
|
switch (this.fetcherType) {
|
|
100
104
|
case "AnexoSistema":
|
|
101
|
-
this.loadAnexoSistema();
|
|
105
|
+
await this.loadAnexoSistema();
|
|
102
106
|
break;
|
|
103
107
|
case "Attach":
|
|
104
|
-
this.loadAttach();
|
|
108
|
+
await this.loadAttach();
|
|
105
109
|
break;
|
|
106
110
|
default:
|
|
107
111
|
this._currentFetcher = this.fetcher;
|
|
@@ -113,12 +117,13 @@ export class SnkAttach {
|
|
|
113
117
|
throw new Error('There was an error while creating the data unit');
|
|
114
118
|
}
|
|
115
119
|
}
|
|
116
|
-
loadAnexoSistema() {
|
|
117
|
-
|
|
120
|
+
async loadAnexoSistema() {
|
|
121
|
+
var _a, _b, _c;
|
|
122
|
+
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
123
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
118
124
|
if (!this._currentDataUnit.metadata) {
|
|
119
|
-
this._currentDataUnit
|
|
120
|
-
|
|
121
|
-
.then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
|
|
125
|
+
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata());
|
|
126
|
+
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
|
122
127
|
}
|
|
123
128
|
this.initDataUnitLoaders();
|
|
124
129
|
this._currentDataUnit.addFilterProvider({
|
|
@@ -127,10 +132,12 @@ export class SnkAttach {
|
|
|
127
132
|
this._currentDataUnit.addInterceptor({
|
|
128
133
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
|
129
134
|
});
|
|
130
|
-
this._currentDataUnit.loadData()
|
|
135
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
136
|
+
this.disableEditFieldsNotInForm();
|
|
131
137
|
}
|
|
132
|
-
loadAttach() {
|
|
138
|
+
async loadAttach() {
|
|
133
139
|
var _a, _b;
|
|
140
|
+
this._currentFetcher = new AttachFetcher();
|
|
134
141
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
|
135
142
|
this.initDataUnitLoaders();
|
|
136
143
|
this._currentDataUnit.addInterceptor({
|
|
@@ -144,11 +151,10 @@ export class SnkAttach {
|
|
|
144
151
|
}
|
|
145
152
|
});
|
|
146
153
|
if (!this._currentDataUnit.metadata) {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
});
|
|
154
|
+
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
|
155
|
+
this.crudConfig = Object.assign({}, attachCrudConfig);
|
|
156
|
+
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
|
157
|
+
this.disableEditFieldsNotInForm();
|
|
152
158
|
}
|
|
153
159
|
}
|
|
154
160
|
initDataUnitLoaders() {
|
|
@@ -140,6 +140,12 @@ export class SnkCrud {
|
|
|
140
140
|
setViewMode(viewMode) {
|
|
141
141
|
this._viewStack.show(viewMode);
|
|
142
142
|
this._currentViewMode = viewMode;
|
|
143
|
+
if (viewMode === VIEW_MODE.GRID) {
|
|
144
|
+
this._snkGrid.setFocus();
|
|
145
|
+
}
|
|
146
|
+
else if (viewMode === VIEW_MODE.FORM) {
|
|
147
|
+
this._guidesViewer.setFocus();
|
|
148
|
+
}
|
|
143
149
|
}
|
|
144
150
|
openConfig(viewMode) {
|
|
145
151
|
this._snkConfigurator.close();
|
|
@@ -269,34 +275,34 @@ export class SnkCrud {
|
|
|
269
275
|
element.focus();
|
|
270
276
|
}
|
|
271
277
|
keyboardManager
|
|
272
|
-
.bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade." })
|
|
273
|
-
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados." })
|
|
274
|
-
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados." })
|
|
275
|
-
.bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro." })
|
|
276
|
-
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado." })
|
|
277
|
-
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado." })
|
|
278
|
+
.bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade.", element: this._element })
|
|
279
|
+
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
|
|
280
|
+
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
|
|
281
|
+
.bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro.", element: this._element })
|
|
282
|
+
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
|
283
|
+
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
|
278
284
|
.bind("ctrl + .", () => {
|
|
279
285
|
if (dataUnit.getSelectionInfo().records.length === 0) {
|
|
280
286
|
return dataUnit.selectFirst();
|
|
281
287
|
}
|
|
282
288
|
return dataUnit.nextRecord();
|
|
283
289
|
}, {
|
|
284
|
-
description: "Avança para o próximo registro."
|
|
290
|
+
description: "Avança para o próximo registro.", element: this._element
|
|
285
291
|
})
|
|
286
|
-
.bind("ctrl + ,", dataUnit.previousRecord.bind(dataUnit), { description: "Retorna ao registro anterior." })
|
|
292
|
+
.bind("ctrl + ,", dataUnit.previousRecord.bind(dataUnit), { description: "Retorna ao registro anterior.", element: this._element })
|
|
287
293
|
.bind("F5", async () => {
|
|
288
294
|
const currentView = await this._viewStack.getSelectedIndex();
|
|
289
295
|
if (VIEW_MODE.GRID === currentView) {
|
|
290
296
|
dataUnit.loadData();
|
|
291
297
|
}
|
|
292
|
-
}, { description: "Atualiza os dados." })
|
|
298
|
+
}, { description: "Atualiza os dados.", element: this._element })
|
|
293
299
|
.bind("Escape", () => {
|
|
294
300
|
if (dataUnit.isDirty()) {
|
|
295
301
|
dataUnit.cancelEdition();
|
|
296
302
|
}
|
|
297
303
|
}, {
|
|
298
304
|
debounceTime: 1000,
|
|
299
|
-
description: "Cancela uma ação."
|
|
305
|
+
description: "Cancela uma ação.", element: this._element
|
|
300
306
|
});
|
|
301
307
|
}
|
|
302
308
|
}
|
|
@@ -88,6 +88,12 @@ export class SnkGuidesViewer {
|
|
|
88
88
|
};
|
|
89
89
|
this._fieldsProps = Object.assign(Object.assign({}, this._fieldsProps), newFieldsProps);
|
|
90
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* Atribui o foco para o componente.
|
|
93
|
+
*/
|
|
94
|
+
async setFocus() {
|
|
95
|
+
this._container.focus();
|
|
96
|
+
}
|
|
91
97
|
exitViewer() {
|
|
92
98
|
if (this.dataUnit.isDirty()) {
|
|
93
99
|
this.dataUnit.cancelEdition({ after: () => this.exit.emit() });
|
|
@@ -464,17 +470,14 @@ export class SnkGuidesViewer {
|
|
|
464
470
|
render() {
|
|
465
471
|
var _a, _b;
|
|
466
472
|
if (this._formEditorConfigManager != undefined) {
|
|
467
|
-
return (h("snk-form-config", { dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
473
|
+
return (h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
468
474
|
}
|
|
469
|
-
if (!this.dataUnit) {
|
|
470
|
-
return;
|
|
471
|
-
}
|
|
472
|
-
if (!this._configManager.isLoaded) {
|
|
475
|
+
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
473
476
|
return;
|
|
474
477
|
}
|
|
475
478
|
this.loadTaskbarProcessor();
|
|
476
479
|
const showGuides = this._guides && (this._guides.length > 1);
|
|
477
|
-
return (h("section", { class: "snk-guides-viewer" }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
480
|
+
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
478
481
|
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
479
482
|
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
480
483
|
:
|
|
@@ -981,6 +984,22 @@ export class SnkGuidesViewer {
|
|
|
981
984
|
"text": "Altera/adiciona uma propriedade nos metadados do campo.",
|
|
982
985
|
"tags": []
|
|
983
986
|
}
|
|
987
|
+
},
|
|
988
|
+
"setFocus": {
|
|
989
|
+
"complexType": {
|
|
990
|
+
"signature": "() => Promise<void>",
|
|
991
|
+
"parameters": [],
|
|
992
|
+
"references": {
|
|
993
|
+
"Promise": {
|
|
994
|
+
"location": "global"
|
|
995
|
+
}
|
|
996
|
+
},
|
|
997
|
+
"return": "Promise<void>"
|
|
998
|
+
},
|
|
999
|
+
"docs": {
|
|
1000
|
+
"text": "Atribui o foco para o componente.",
|
|
1001
|
+
"tags": []
|
|
1002
|
+
}
|
|
984
1003
|
}
|
|
985
1004
|
};
|
|
986
1005
|
}
|
|
@@ -149,6 +149,12 @@ export class SnkGrid {
|
|
|
149
149
|
async removeCustomValueFormatter(columnName) {
|
|
150
150
|
this._grid.removeCustomValueFormatter(columnName);
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* Atribui o foco para a grade.
|
|
154
|
+
*/
|
|
155
|
+
async setFocus() {
|
|
156
|
+
this._grid.setFocus();
|
|
157
|
+
}
|
|
152
158
|
async handleGridLegacyConfigName(newLegacyConfig, oldLegacyConfig) {
|
|
153
159
|
if (!newLegacyConfig) {
|
|
154
160
|
return;
|
|
@@ -1092,6 +1098,22 @@ export class SnkGrid {
|
|
|
1092
1098
|
"text": "Remove o formatador de valores de uma coluna da grid.",
|
|
1093
1099
|
"tags": []
|
|
1094
1100
|
}
|
|
1101
|
+
},
|
|
1102
|
+
"setFocus": {
|
|
1103
|
+
"complexType": {
|
|
1104
|
+
"signature": "() => Promise<void>",
|
|
1105
|
+
"parameters": [],
|
|
1106
|
+
"references": {
|
|
1107
|
+
"Promise": {
|
|
1108
|
+
"location": "global"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
"return": "Promise<void>"
|
|
1112
|
+
},
|
|
1113
|
+
"docs": {
|
|
1114
|
+
"text": "Atribui o foco para a grade.",
|
|
1115
|
+
"tags": []
|
|
1116
|
+
}
|
|
1095
1117
|
}
|
|
1096
1118
|
};
|
|
1097
1119
|
}
|
|
@@ -364,12 +364,19 @@ export class DataFetcher {
|
|
|
364
364
|
//Reject promises with errors from query
|
|
365
365
|
errorsResponse.forEach((errorResponse) => {
|
|
366
366
|
Object.entries(errorResponse).forEach(async ([key, val]) => {
|
|
367
|
-
var _a;
|
|
368
367
|
const waitingRequest = watingRequestsById.get(val.request.variables[val.index].queryID);
|
|
369
368
|
const hasClientEvent = await this.proccesGraphQLClientEvents(extensions, waitingRequest.request, waitingRequest.resolve, waitingRequest.reject);
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
369
|
+
Promise.race([
|
|
370
|
+
waitingRequest.promise,
|
|
371
|
+
new Promise((resolve) => {
|
|
372
|
+
resolve(false);
|
|
373
|
+
})
|
|
374
|
+
]).then((data) => {
|
|
375
|
+
var _a;
|
|
376
|
+
if (!hasClientEvent || data === false) {
|
|
377
|
+
(((_a = watingRequestsById.get(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new ErrorException("Falha detectada", val.message));
|
|
378
|
+
}
|
|
379
|
+
});
|
|
373
380
|
});
|
|
374
381
|
});
|
|
375
382
|
//Resolve promises with data from query
|
|
@@ -6875,12 +6875,19 @@ class DataFetcher {
|
|
|
6875
6875
|
//Reject promises with errors from query
|
|
6876
6876
|
errorsResponse.forEach((errorResponse) => {
|
|
6877
6877
|
Object.entries(errorResponse).forEach(async ([key, val]) => {
|
|
6878
|
-
var _a;
|
|
6879
6878
|
const waitingRequest = watingRequestsById.get(val.request.variables[val.index].queryID);
|
|
6880
6879
|
const hasClientEvent = await this.proccesGraphQLClientEvents(extensions, waitingRequest.request, waitingRequest.resolve, waitingRequest.reject);
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6880
|
+
Promise.race([
|
|
6881
|
+
waitingRequest.promise,
|
|
6882
|
+
new Promise((resolve) => {
|
|
6883
|
+
resolve(false);
|
|
6884
|
+
})
|
|
6885
|
+
]).then((data) => {
|
|
6886
|
+
var _a;
|
|
6887
|
+
if (!hasClientEvent || data === false) {
|
|
6888
|
+
(((_a = watingRequestsById.get(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new ErrorException("Falha detectada", val.message));
|
|
6889
|
+
}
|
|
6890
|
+
});
|
|
6884
6891
|
});
|
|
6885
6892
|
});
|
|
6886
6893
|
//Resolve promises with data from query
|