@sankhyalabs/sankhyablocks 8.15.0-rc.1 → 8.15.0-rc.11
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-302bbbd4.js → ConfigStorage-34be11ce.js} +70 -7
- package/dist/cjs/{DataFetcher-ba94ed5b.js → DataFetcher-99f0f6ed.js} +5 -3
- package/dist/cjs/{SnkFormConfigManager-71c4768e.js → SnkFormConfigManager-531a191c.js} +21 -13
- package/dist/cjs/{SnkMessageBuilder-e7dcf408.js → SnkMessageBuilder-141aa18d.js} +2 -1
- package/dist/cjs/SnkMultiSelectionListDataSource-5213120b.js +140 -0
- package/dist/cjs/{auth-fetcher-c8467c07.js → auth-fetcher-5161d082.js} +1 -1
- package/dist/cjs/{form-config-fetcher-df043d3d.js → form-config-fetcher-9f1a13ca.js} +1 -1
- package/dist/cjs/index-f9e81701.js +2 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-e4a7c4c3.js → pesquisa-fetcher-94f6b316.js} +235 -24
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +520 -5
- package/dist/cjs/snk-application.cjs.entry.js +34 -8
- package/dist/cjs/snk-attach.cjs.entry.js +7 -8
- package/dist/cjs/snk-crud.cjs.entry.js +16 -10
- package/dist/cjs/snk-data-exporter.cjs.entry.js +8 -4
- package/dist/cjs/{snk-data-unit-82c08a8c.js → snk-data-unit-6026a9f7.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +9 -10
- package/dist/cjs/snk-entity-list.cjs.entry.js +5 -3
- package/dist/cjs/snk-filter-bar.cjs.entry.js +36 -7
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +47 -27
- package/dist/cjs/snk-form.cjs.entry.js +11 -4
- package/dist/cjs/snk-grid.cjs.entry.js +40 -22
- package/dist/cjs/{snk-guides-viewer-d32c096f.js → snk-guides-viewer-76b4c346.js} +15 -9
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -8
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +3 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +215 -23
- package/dist/cjs/snk-taskbar.cjs.entry.js +100 -14
- package/dist/cjs/{taskbar-elements-01b85b99.js → taskbar-elements-3ecd1278.js} +9 -9
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/snk-application/__mocks__/snk-application.js +7 -0
- package/dist/collection/components/snk-application/snk-application.js +51 -11
- package/dist/collection/components/snk-crud/snk-crud.js +95 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +11 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +27 -3
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +5 -1
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +5 -3
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +23 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +116 -4
- package/dist/collection/components/snk-form/snk-form.js +25 -1
- package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +20 -12
- package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +50 -30
- package/dist/collection/components/snk-grid/snk-grid.js +103 -16
- package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
- package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
- package/dist/collection/components/snk-simple-crud/regular-buttons.js +3 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +5 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +344 -17
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -9
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +17 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +139 -13
- package/dist/collection/lib/configs/ConfigStorage.js +63 -3
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +5 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +21 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +6 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -11
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -1
- package/dist/collection/lib/utils/CrudUtils.js +13 -1
- package/dist/components/ConfigStorage.js +68 -5
- package/dist/components/DataFetcher.js +5 -3
- package/dist/components/SnkFormConfigManager.js +19 -11
- package/dist/components/SnkMessageBuilder.js +2 -1
- package/dist/components/dataunit-fetcher.js +4 -11
- package/dist/components/field-search.js +93 -3
- package/dist/components/index.d.ts +6 -6
- package/dist/components/snk-application2.js +30 -1
- package/dist/components/snk-attach2.js +54 -12
- package/dist/components/snk-crud.js +15 -3
- package/dist/components/snk-data-exporter2.js +5 -1
- package/dist/components/snk-detail-view2.js +40 -7
- package/dist/components/snk-entity-list.js +5 -3
- package/dist/components/snk-filter-bar2.js +38 -5
- package/dist/components/snk-form-config2.js +46 -26
- package/dist/components/snk-form.js +8 -0
- package/dist/components/snk-grid-config2.js +128 -102
- package/dist/components/snk-grid2.js +41 -17
- package/dist/components/snk-personalized-filter-editor.js +3 -1
- package/dist/components/snk-simple-crud2.js +272 -28
- package/dist/components/snk-taskbar2.js +114 -24
- package/dist/components/taskbar-actions-button2.js +1 -1
- package/dist/esm/{ConfigStorage-4151acc8.js → ConfigStorage-101a2b4c.js} +70 -7
- package/dist/esm/{DataFetcher-aa159c5a.js → DataFetcher-a650ae58.js} +5 -3
- package/dist/esm/{SnkFormConfigManager-5c7d3771.js → SnkFormConfigManager-02ecf57f.js} +21 -13
- package/dist/esm/{SnkMessageBuilder-0fb796b9.js → SnkMessageBuilder-9747ddd2.js} +2 -1
- package/dist/esm/SnkMultiSelectionListDataSource-7e7eada5.js +133 -0
- package/dist/esm/{auth-fetcher-c05dc474.js → auth-fetcher-17dc5b5e.js} +1 -1
- package/dist/esm/{form-config-fetcher-36219cd3.js → form-config-fetcher-f121f880.js} +1 -1
- package/dist/esm/index-a7d3d3f1.js +2 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-fa0c2540.js → pesquisa-fetcher-f05a12ca.js} +226 -16
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +519 -6
- package/dist/esm/snk-application.entry.js +34 -8
- package/dist/esm/snk-attach.entry.js +6 -7
- package/dist/esm/snk-crud.entry.js +16 -10
- package/dist/esm/snk-data-exporter.entry.js +8 -4
- package/dist/esm/{snk-data-unit-5d201fb3.js → snk-data-unit-4c343635.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +9 -10
- package/dist/esm/snk-entity-list.entry.js +5 -3
- package/dist/esm/snk-filter-bar.entry.js +36 -7
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +48 -28
- package/dist/esm/snk-form.entry.js +11 -4
- package/dist/esm/snk-grid.entry.js +41 -23
- package/dist/esm/{snk-guides-viewer-f49613c6.js → snk-guides-viewer-90ca9105.js} +15 -9
- package/dist/esm/snk-guides-viewer.entry.js +7 -8
- package/dist/esm/snk-personalized-filter-editor.entry.js +3 -1
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +216 -24
- package/dist/esm/snk-taskbar.entry.js +101 -15
- package/dist/esm/{taskbar-elements-d4d0b424.js → taskbar-elements-2473c8ac.js} +9 -9
- package/dist/sankhyablocks/p-1f3174cb.entry.js +1 -0
- package/dist/sankhyablocks/p-1fa5a18c.entry.js +11 -0
- package/dist/sankhyablocks/p-20b46647.entry.js +1 -0
- package/dist/sankhyablocks/p-2897fb8c.js +1 -0
- package/dist/sankhyablocks/{p-05243555.js → p-2936303b.js} +1 -1
- package/dist/sankhyablocks/p-2cfe0c2c.entry.js +1 -0
- package/dist/sankhyablocks/p-33718dfc.entry.js +1 -0
- package/dist/sankhyablocks/p-384fd6ae.js +1 -0
- package/dist/sankhyablocks/p-50783a8b.js +1 -0
- package/dist/sankhyablocks/p-5c0b53ce.js +56 -0
- package/dist/sankhyablocks/p-663ff67b.entry.js +1 -0
- package/dist/sankhyablocks/{p-7f3c7b09.entry.js → p-6b28cc74.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e0fd9555.entry.js → p-7ddd95b6.entry.js} +1 -1
- package/dist/sankhyablocks/p-7e05bd83.entry.js +1 -0
- package/dist/sankhyablocks/p-7f97fee2.entry.js +1 -0
- package/dist/sankhyablocks/p-8111f63f.entry.js +1 -0
- package/dist/sankhyablocks/{p-f3d1c48e.js → p-9a5d1b39.js} +1 -1
- package/dist/sankhyablocks/{p-0d7863ed.js → p-a13ccb86.js} +1 -1
- package/dist/sankhyablocks/p-a83487a0.entry.js +1 -0
- package/dist/sankhyablocks/p-ae4fc9a9.js +1 -0
- package/dist/sankhyablocks/p-b11aa1e0.entry.js +1 -0
- package/dist/sankhyablocks/p-b41a622a.entry.js +1 -0
- package/dist/sankhyablocks/p-ba4871b5.entry.js +1 -0
- package/dist/sankhyablocks/{p-9695f78b.js → p-be75153c.js} +1 -1
- package/dist/sankhyablocks/p-d01ceda6.entry.js +1 -0
- package/dist/sankhyablocks/p-d304659d.entry.js +1 -0
- package/dist/sankhyablocks/p-d78d4062.js +65 -0
- package/dist/sankhyablocks/p-e7dbe53a.entry.js +1 -0
- package/dist/sankhyablocks/p-fad4c2fe.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
- package/dist/types/components/snk-application/__mocks__/snk-application.d.ts +3 -0
- package/dist/types/components/snk-application/snk-application.d.ts +8 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +21 -0
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +6 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +19 -1
- package/dist/types/components/snk-form/snk-form.d.ts +6 -1
- package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +2 -1
- package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +5 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +20 -1
- package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
- package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/regular-buttons.d.ts +3 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +65 -3
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +28 -1
- package/dist/types/components.d.ts +201 -12
- package/dist/types/lib/configs/ConfigStorage.d.ts +21 -1
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +2 -1
- package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
- package/package.json +9 -2
- package/dist/cjs/PreloadManager-84466da6.js +0 -224
- package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
- package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
- package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
- package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
- package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
- package/dist/esm/snk-grid-config.entry.js +0 -479
- package/dist/esm/snk-select-box.entry.js +0 -21
- package/dist/sankhyablocks/p-02e3a45b.entry.js +0 -1
- package/dist/sankhyablocks/p-094c30cb.js +0 -1
- package/dist/sankhyablocks/p-0ec5b2e5.js +0 -1
- package/dist/sankhyablocks/p-1d75d9f9.entry.js +0 -1
- package/dist/sankhyablocks/p-2582537c.entry.js +0 -1
- package/dist/sankhyablocks/p-282789a6.entry.js +0 -1
- package/dist/sankhyablocks/p-374d03f6.js +0 -1
- package/dist/sankhyablocks/p-3b0e4e08.js +0 -65
- package/dist/sankhyablocks/p-40915359.entry.js +0 -1
- package/dist/sankhyablocks/p-573a07c5.js +0 -1
- package/dist/sankhyablocks/p-62896624.entry.js +0 -1
- package/dist/sankhyablocks/p-69efa80d.entry.js +0 -1
- package/dist/sankhyablocks/p-761ed32f.entry.js +0 -1
- package/dist/sankhyablocks/p-98674137.entry.js +0 -1
- package/dist/sankhyablocks/p-9b5944a4.entry.js +0 -1
- package/dist/sankhyablocks/p-9bdbc7d8.entry.js +0 -1
- package/dist/sankhyablocks/p-aa95fb2c.js +0 -56
- package/dist/sankhyablocks/p-ac384baf.entry.js +0 -1
- package/dist/sankhyablocks/p-b05ab13d.entry.js +0 -1
- package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
- package/dist/sankhyablocks/p-c4874327.entry.js +0 -1
- package/dist/sankhyablocks/p-c758265f.entry.js +0 -1
- package/dist/sankhyablocks/p-cb7419e0.entry.js +0 -1
- package/dist/sankhyablocks/p-d4f9ee17.entry.js +0 -1
- package/dist/sankhyablocks/p-e6380c60.js +0 -1
- package/dist/sankhyablocks/p-e817f254.entry.js +0 -11
- /package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -0
@@ -4,21 +4,20 @@ 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 DataFetcher = require('./DataFetcher-
|
8
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
7
|
+
const DataFetcher = require('./DataFetcher-99f0f6ed.js');
|
8
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-94f6b316.js');
|
9
9
|
require('./index-0922807b.js');
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
12
|
-
require('./form-config-fetcher-
|
12
|
+
require('./form-config-fetcher-9f1a13ca.js');
|
13
13
|
const constants = require('./constants-35ddd366.js');
|
14
|
-
const
|
15
|
-
const
|
16
|
-
const taskbarElements = require('./taskbar-elements-01b85b99.js');
|
14
|
+
const authFetcher = require('./auth-fetcher-5161d082.js');
|
15
|
+
const taskbarElements = require('./taskbar-elements-3ecd1278.js');
|
17
16
|
require('./PrintUtils-bcaeb82f.js');
|
18
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
18
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
20
|
-
require('./ResourceIDUtils-5ff86aa7.js');
|
21
19
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
20
|
+
require('./ResourceIDUtils-5ff86aa7.js');
|
22
21
|
require('./index-102ba62d.js');
|
23
22
|
|
24
23
|
const SERVICE$1 = {
|
@@ -314,7 +313,7 @@ class AnexoSistemaDataUnitFactory {
|
|
314
313
|
const { records } = dataUnit.getSelectionInfo();
|
315
314
|
const recordToDelete = records[0];
|
316
315
|
fetcher.delete(recordToDelete).then(() => {
|
317
|
-
|
316
|
+
pesquisaFetcher.PreloadManager.removeRecords(dataUnit, [recordToDelete]);
|
318
317
|
return resolve(ids);
|
319
318
|
});
|
320
319
|
});
|
@@ -4,22 +4,21 @@ 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 taskbarElements = require('./taskbar-elements-
|
8
|
-
require('./DataFetcher-
|
9
|
-
require('./pesquisa-fetcher-
|
7
|
+
const taskbarElements = require('./taskbar-elements-3ecd1278.js');
|
8
|
+
require('./DataFetcher-99f0f6ed.js');
|
9
|
+
require('./pesquisa-fetcher-94f6b316.js');
|
10
10
|
const index$1 = require('./index-0922807b.js');
|
11
11
|
require('./ISave-e91b70a7.js');
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
|
-
require('./PreloadManager-84466da6.js');
|
15
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./form-config-fetcher-
|
15
|
+
require('./form-config-fetcher-9f1a13ca.js');
|
17
16
|
const constants = require('./constants-35ddd366.js');
|
18
|
-
const authFetcher = require('./auth-fetcher-
|
17
|
+
const authFetcher = require('./auth-fetcher-5161d082.js');
|
19
18
|
require('./index-102ba62d.js');
|
20
19
|
require('./PrintUtils-bcaeb82f.js');
|
21
|
-
require('./ResourceIDUtils-5ff86aa7.js');
|
22
20
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
21
|
+
require('./ResourceIDUtils-5ff86aa7.js');
|
23
22
|
|
24
23
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
25
24
|
|
@@ -39,6 +38,7 @@ const SnkCrud = class {
|
|
39
38
|
this._canEdit = undefined;
|
40
39
|
this._resourceID = undefined;
|
41
40
|
this.configName = undefined;
|
41
|
+
this.filterBarTitle = undefined;
|
42
42
|
this.selectionToastConfig = undefined;
|
43
43
|
this.showActionButtons = false;
|
44
44
|
this.actionsList = undefined;
|
@@ -49,6 +49,10 @@ const SnkCrud = class {
|
|
49
49
|
this.presentationMode = index$1.PresentationMode.PRIMARY;
|
50
50
|
this.messagesBuilder = undefined;
|
51
51
|
this.useEnterLikeTab = false;
|
52
|
+
this.gridLegacyConfigName = undefined;
|
53
|
+
this.filterBarLegacyConfigName = undefined;
|
54
|
+
this.formLegacyConfigName = undefined;
|
55
|
+
this.disablePersonalizedFilter = undefined;
|
52
56
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
|
53
57
|
}
|
54
58
|
/**
|
@@ -181,7 +185,8 @@ const SnkCrud = class {
|
|
181
185
|
window.removeEventListener("keydown", this._keyDownHandler);
|
182
186
|
}
|
183
187
|
async initKeyboardManager() {
|
184
|
-
|
188
|
+
var _a;
|
189
|
+
const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
|
185
190
|
if (keyboardManager) {
|
186
191
|
const dataUnit = this._dataUnit || await this._snkDataUnit.getDataUnit();
|
187
192
|
async function saveDataUnitHandlingFocus() {
|
@@ -230,7 +235,8 @@ const SnkCrud = class {
|
|
230
235
|
}
|
231
236
|
}
|
232
237
|
async removeShortcuts() {
|
233
|
-
|
238
|
+
var _a;
|
239
|
+
const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
|
234
240
|
if (keyboardManager) {
|
235
241
|
keyboardManager
|
236
242
|
.unbind("F6")
|
@@ -297,7 +303,7 @@ const SnkCrud = class {
|
|
297
303
|
return;
|
298
304
|
}
|
299
305
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === constants.VIEW_MODE.GRID;
|
300
|
-
return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.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, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.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, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.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 })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
306
|
+
return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "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, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.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, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.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 })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
301
307
|
}
|
302
308
|
get _element() { return index.getElement(this); }
|
303
309
|
static get watchers() { return {
|
@@ -7,11 +7,11 @@ 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-
|
10
|
+
const DataFetcher = require('./DataFetcher-99f0f6ed.js');
|
11
|
+
const snkDataUnit = require('./snk-data-unit-6026a9f7.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
|
-
require('./SnkMessageBuilder-
|
14
|
+
require('./SnkMessageBuilder-141aa18d.js');
|
15
15
|
|
16
16
|
class ItemBuilder {
|
17
17
|
constructor(getMessage, selectedNumber) {
|
@@ -328,7 +328,11 @@ const SnkDataExporter = class {
|
|
328
328
|
}
|
329
329
|
fetchDataExporter(params)
|
330
330
|
.then((result) => callbackResolver(result))
|
331
|
-
.catch((exception) =>
|
331
|
+
.catch((exception) => {
|
332
|
+
console.error(exception);
|
333
|
+
let { title, message, statusMessage } = exception || {};
|
334
|
+
utils.ApplicationUtils.error(title || this.getMessage("snkDataExporter.message.exportError"), statusMessage || message || this.getMessage("snkDataExporter.message.unknownFailure"));
|
335
|
+
});
|
332
336
|
}
|
333
337
|
getOptionKey(option) {
|
334
338
|
return Object.keys(index.DataExporterOption)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
6
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
6
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-141aa18d.js');
|
7
7
|
|
8
8
|
const SnkDataUnit = class {
|
9
9
|
constructor(hostRef) {
|
@@ -2,11 +2,11 @@
|
|
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-6026a9f7.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
require('./SnkMessageBuilder-
|
9
|
+
require('./SnkMessageBuilder-141aa18d.js');
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -4,25 +4,24 @@ 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-531a191c.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
|
-
require('./DataFetcher-
|
10
|
-
require('./pesquisa-fetcher-
|
9
|
+
require('./DataFetcher-99f0f6ed.js');
|
10
|
+
require('./pesquisa-fetcher-94f6b316.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('./PreloadManager-84466da6.js');
|
16
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./form-config-fetcher-
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
16
|
+
require('./form-config-fetcher-9f1a13ca.js');
|
17
|
+
const taskbarElements = require('./taskbar-elements-3ecd1278.js');
|
19
18
|
const constants = require('./constants-35ddd366.js');
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
21
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
22
|
-
require('./ConfigStorage-
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-76b4c346.js');
|
20
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-141aa18d.js');
|
21
|
+
require('./ConfigStorage-34be11ce.js');
|
23
22
|
require('./PrintUtils-bcaeb82f.js');
|
24
|
-
require('./ResourceIDUtils-5ff86aa7.js');
|
25
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
24
|
+
require('./ResourceIDUtils-5ff86aa7.js');
|
26
25
|
require('./index-102ba62d.js');
|
27
26
|
require('./field-search-f56aa7d6.js');
|
28
27
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
@@ -65,16 +65,18 @@ const SnkEntityList = class {
|
|
65
65
|
this.loadListSource();
|
66
66
|
}
|
67
67
|
optionLoader(searchArgument) {
|
68
|
-
var _a, _b, _c, _d;
|
68
|
+
var _a, _b, _c, _d, _e, _f;
|
69
69
|
const { mode, argument } = searchArgument;
|
70
70
|
if (this._application === undefined) {
|
71
71
|
return;
|
72
72
|
}
|
73
73
|
const searchOptions = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.props) === null || _b === void 0 ? void 0 : _b.searchContext) === null || _c === void 0 ? void 0 : _c.searchOptions;
|
74
|
+
const criteria = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.props) === null || _e === void 0 ? void 0 : _e.criteria;
|
74
75
|
const options = {
|
75
|
-
entityDescription: (
|
76
|
+
entityDescription: (_f = this.config) === null || _f === void 0 ? void 0 : _f.label,
|
76
77
|
entity: this._entityName,
|
77
|
-
searchOptions: searchOptions
|
78
|
+
searchOptions: searchOptions,
|
79
|
+
criteria,
|
78
80
|
};
|
79
81
|
return this._application.executePreparedSearch(mode, argument, options);
|
80
82
|
}
|
@@ -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-34be11ce.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-9f1a13ca.js');
|
16
|
+
require('./DataFetcher-99f0f6ed.js');
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
19
|
|
@@ -252,7 +252,7 @@ class SnkFilterModalFactory {
|
|
252
252
|
}
|
253
253
|
}
|
254
254
|
|
255
|
-
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 3px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-self:center}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
|
255
|
+
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:8px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{display:none}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 3px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-self:center}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
|
256
256
|
|
257
257
|
const SnkFilterBar = class {
|
258
258
|
constructor(hostRef) {
|
@@ -261,6 +261,7 @@ const SnkFilterBar = class {
|
|
261
261
|
this._updateSequence = [];
|
262
262
|
this._loadingPending = false;
|
263
263
|
this._configUpdated = false;
|
264
|
+
this._firstLoad = true;
|
264
265
|
this._pendingVariables = false;
|
265
266
|
this._customfiltersToBeUpdated = [];
|
266
267
|
this._calculateSortIndex = (item) => {
|
@@ -277,11 +278,14 @@ const SnkFilterBar = class {
|
|
277
278
|
return this._calculateSortIndex(b) - this._calculateSortIndex(a);
|
278
279
|
};
|
279
280
|
this.dataUnit = undefined;
|
281
|
+
this.title = undefined;
|
280
282
|
this.configName = undefined;
|
281
283
|
this.resourceID = undefined;
|
284
|
+
this.mode = "regular";
|
282
285
|
this.filterConfig = undefined;
|
283
286
|
this.messagesBuilder = undefined;
|
284
287
|
this.disablePersonalizedFilter = undefined;
|
288
|
+
this.filterBarLegacyConfigName = undefined;
|
285
289
|
this.allowDefault = undefined;
|
286
290
|
this.scrollerLocked = false;
|
287
291
|
this.showPersonalizedFilter = false;
|
@@ -414,13 +418,27 @@ const SnkFilterBar = class {
|
|
414
418
|
return;
|
415
419
|
}
|
416
420
|
this._loadingPending = false;
|
417
|
-
this.dataUnit.
|
421
|
+
this.doLoadData(this.dataUnit.getLastLoadRequest() != undefined);
|
418
422
|
}
|
419
423
|
if (this._configUpdated) {
|
420
424
|
this._configUpdated = false;
|
421
425
|
ConfigStorage.ConfigStorage.saveFilterBarConfig(this.filterConfig, this.configName, this.resourceID);
|
422
426
|
}
|
423
427
|
}
|
428
|
+
async doLoadData(forceReload = false) {
|
429
|
+
try {
|
430
|
+
if (this._firstLoad && !forceReload) {
|
431
|
+
let autoLoad = await this._application.getBooleanParam("global.carregar.registros.iniciar.tela");
|
432
|
+
if (!autoLoad) {
|
433
|
+
return;
|
434
|
+
}
|
435
|
+
}
|
436
|
+
this.dataUnit.loadData(undefined, undefined, true);
|
437
|
+
}
|
438
|
+
finally {
|
439
|
+
this._firstLoad = false;
|
440
|
+
}
|
441
|
+
}
|
424
442
|
/**
|
425
443
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
426
444
|
* através de um pequeno modulo na estrutura da aplicação:
|
@@ -458,7 +476,7 @@ const SnkFilterBar = class {
|
|
458
476
|
registryFilterProvider() {
|
459
477
|
this.dataUnit.addFilterProvider(this);
|
460
478
|
if (this.filterConfig) {
|
461
|
-
this.
|
479
|
+
this.doLoadData();
|
462
480
|
}
|
463
481
|
}
|
464
482
|
itemFocused(selectedItem) {
|
@@ -535,6 +553,11 @@ const SnkFilterBar = class {
|
|
535
553
|
loadPermitions() {
|
536
554
|
this._application.isUserSup().then(value => this.allowDefault = value);
|
537
555
|
}
|
556
|
+
addFilterBarLegacyConfigName() {
|
557
|
+
if (this.filterBarLegacyConfigName && this.configName) {
|
558
|
+
ConfigStorage.ConfigStorage.addFilterBarLegacyConfig(this.configName, this.filterBarLegacyConfigName);
|
559
|
+
}
|
560
|
+
}
|
538
561
|
async loadConfigFromStorage(clearCache) {
|
539
562
|
if (clearCache) {
|
540
563
|
await ConfigStorage.ConfigStorage.deleteFilterBarConfigCache(this.configName, this.resourceID);
|
@@ -581,6 +604,9 @@ const SnkFilterBar = class {
|
|
581
604
|
filterChangeListener(evt) {
|
582
605
|
this.updateFilter(evt.detail);
|
583
606
|
}
|
607
|
+
/**
|
608
|
+
* Abre o modal de filtros
|
609
|
+
*/
|
584
610
|
async showFilterModal() {
|
585
611
|
const callbackOnApplyFilter = (filters) => {
|
586
612
|
this.filterConfig = filters.map(this.normalizeItem).sort((a, b) => this._filtersComparator(a, b));
|
@@ -638,6 +664,7 @@ const SnkFilterBar = class {
|
|
638
664
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
639
665
|
if (this._application) {
|
640
666
|
this.loadPermitions();
|
667
|
+
this.addFilterBarLegacyConfigName();
|
641
668
|
this.loadConfigFromStorage();
|
642
669
|
}
|
643
670
|
this.attachDataUnit();
|
@@ -652,7 +679,9 @@ const SnkFilterBar = class {
|
|
652
679
|
if (this.showPersonalizedFilter) {
|
653
680
|
return index$1.h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
|
654
681
|
}
|
655
|
-
|
682
|
+
if (this.mode === "button")
|
683
|
+
return (index$1.h(index$1.Host, { "data-mode": this.mode }, index$1.h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) })));
|
684
|
+
return (index$1.h(index$1.Host, { "data-mode": this.mode }, index$1.h("div", null, index$1.h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
|
656
685
|
}
|
657
686
|
get _element() { return index$1.getElement(this); }
|
658
687
|
static get watchers() { return {
|
@@ -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-34be11ce.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-9f1a13ca.js');
|
12
|
+
require('./DataFetcher-99f0f6ed.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-9f1a13ca.js');
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
12
|
-
require('./DataFetcher-
|
12
|
+
require('./DataFetcher-99f0f6ed.js');
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
15
|
|
@@ -38,6 +38,7 @@ const SnkFormConfig = class {
|
|
38
38
|
this._formFieldsStyle = "ez-col ez-col--sd-12 ez-col--tb-4 ez-padding-right--small ez-padding-bottom--medium sc-snk-form-config";
|
39
39
|
this._fieldsAvailableStyle = "ez-col ez-col--sd-12 ez-col--tb-12 ez-margin-bottom--medium ez-margin-right--medium sc-snk-form-config";
|
40
40
|
this._fieldFloatingStyle = "form-config__field-config--dragged";
|
41
|
+
this._sortableTimer = 100;
|
41
42
|
this._formConfigOptions = [];
|
42
43
|
this._fieldConfigSelected = undefined;
|
43
44
|
this._layoutFormConfig = undefined;
|
@@ -52,20 +53,27 @@ const SnkFormConfig = class {
|
|
52
53
|
this.messagesBuilder = undefined;
|
53
54
|
}
|
54
55
|
observeConfigManager() {
|
55
|
-
this.loadConfig();
|
56
|
+
this.loadConfig(this._sortableTimer);
|
56
57
|
}
|
57
|
-
loadFields() {
|
58
|
+
loadFields(updateTimer = 0) {
|
58
59
|
this._layoutFormConfig = [];
|
59
|
-
|
60
|
+
if (updateTimer > 0) {
|
61
|
+
setTimeout(() => {
|
62
|
+
this.buildFields();
|
63
|
+
}, updateTimer);
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
this.buildFields();
|
67
|
+
}
|
60
68
|
}
|
61
69
|
buildFields() {
|
62
70
|
this.buildFormConfig();
|
63
71
|
this.buildAvailableFields();
|
64
72
|
}
|
65
|
-
loadFormConfig() {
|
73
|
+
loadFormConfig(updateTimer) {
|
66
74
|
var _a;
|
67
75
|
this._formConfig = this.getConfig();
|
68
|
-
this.loadFields();
|
76
|
+
this.loadFields(updateTimer);
|
69
77
|
this.controlFieldConfig();
|
70
78
|
if (((_a = this._filterFieldsAvailable) === null || _a === void 0 ? void 0 : _a.value) != undefined) {
|
71
79
|
this._filterFieldsAvailable.value = "";
|
@@ -108,12 +116,12 @@ const SnkFormConfig = class {
|
|
108
116
|
}
|
109
117
|
}
|
110
118
|
resetChangeConfig() {
|
111
|
-
this.loadFormConfig();
|
119
|
+
this.loadFormConfig(this._sortableTimer);
|
112
120
|
this.clearTempGroups();
|
113
121
|
}
|
114
122
|
resetChangeOptionConfig() {
|
115
123
|
this._formConfigChanged = false;
|
116
|
-
this.loadConfig();
|
124
|
+
this.loadConfig(this._sortableTimer);
|
117
125
|
this.clearTempGroups();
|
118
126
|
}
|
119
127
|
getTabsToSave() {
|
@@ -328,7 +336,9 @@ const SnkFormConfig = class {
|
|
328
336
|
&& oldContainer.id === newContainer.id) {
|
329
337
|
evt.cancel();
|
330
338
|
this._fieldsAvailable = [];
|
331
|
-
|
339
|
+
setTimeout(() => {
|
340
|
+
this.buildAvailableFields();
|
341
|
+
}, this._sortableTimer);
|
332
342
|
return true;
|
333
343
|
}
|
334
344
|
return false;
|
@@ -371,7 +381,11 @@ const SnkFormConfig = class {
|
|
371
381
|
if (isNewGroup) {
|
372
382
|
this.clearTempGroups(true);
|
373
383
|
}
|
374
|
-
|
384
|
+
const sortableTimer = oldContainer.dataset.groupName !== newContainer.dataset.groupName
|
385
|
+
|| (newContainer.id === CONTAINER_ID.withoutGroup && oldContainer.id === CONTAINER_ID.fieldsAvailable)
|
386
|
+
? this._sortableTimer
|
387
|
+
: 0;
|
388
|
+
this.updateFieldsToSave(sortableTimer);
|
375
389
|
}, this._renderTimer);
|
376
390
|
return true;
|
377
391
|
}
|
@@ -401,12 +415,12 @@ const SnkFormConfig = class {
|
|
401
415
|
return;
|
402
416
|
}
|
403
417
|
}
|
404
|
-
updateFieldsToSave() {
|
418
|
+
updateFieldsToSave(updateTimer = 0) {
|
405
419
|
const fields = this.getFieldsToSave();
|
406
420
|
if ((fields === null || fields === void 0 ? void 0 : fields.length) > 0) {
|
407
421
|
this._formConfig.fields = fields;
|
408
422
|
}
|
409
|
-
this.loadFields();
|
423
|
+
this.loadFields(updateTimer);
|
410
424
|
this._formConfigChanged = true;
|
411
425
|
}
|
412
426
|
controlSortableField() {
|
@@ -436,7 +450,7 @@ const SnkFormConfig = class {
|
|
436
450
|
controlStopDraggingGroup(evt) {
|
437
451
|
if (evt.data.newIndex !== evt.data.oldIndex) {
|
438
452
|
setTimeout(() => {
|
439
|
-
this.updateFieldsToSave();
|
453
|
+
this.updateFieldsToSave(this._sortableTimer);
|
440
454
|
}, this._renderTimer);
|
441
455
|
}
|
442
456
|
}
|
@@ -509,7 +523,7 @@ const SnkFormConfig = class {
|
|
509
523
|
});
|
510
524
|
if (tabs.length > 0) {
|
511
525
|
this._formConfig.tabs = tabs;
|
512
|
-
this.loadFields();
|
526
|
+
this.loadFields(this._sortableTimer);
|
513
527
|
this.controlFieldConfig();
|
514
528
|
this._formConfigChanged = true;
|
515
529
|
}
|
@@ -533,13 +547,13 @@ const SnkFormConfig = class {
|
|
533
547
|
if (config != undefined) {
|
534
548
|
this._formConfig = config;
|
535
549
|
this._tabSelected = 1;
|
536
|
-
this.loadFields();
|
550
|
+
this.loadFields(this._sortableTimer);
|
537
551
|
this.controlFieldConfig();
|
538
552
|
this.clearTempGroups();
|
539
553
|
}
|
540
554
|
}
|
541
|
-
loadConfig() {
|
542
|
-
this.loadFormConfig();
|
555
|
+
loadConfig(updateTimer = 0) {
|
556
|
+
this.loadFormConfig(updateTimer);
|
543
557
|
this.loadUserConfig();
|
544
558
|
}
|
545
559
|
addNewGroup() {
|
@@ -580,7 +594,7 @@ const SnkFormConfig = class {
|
|
580
594
|
});
|
581
595
|
}
|
582
596
|
else {
|
583
|
-
this.updateFieldsToSave();
|
597
|
+
this.updateFieldsToSave(this._sortableTimer);
|
584
598
|
}
|
585
599
|
}
|
586
600
|
checkGroupExists(newLabel, indexGroup, isTempGroup = false) {
|
@@ -626,7 +640,7 @@ const SnkFormConfig = class {
|
|
626
640
|
field.group = newLabel;
|
627
641
|
}
|
628
642
|
});
|
629
|
-
this.loadFields();
|
643
|
+
this.loadFields(this._sortableTimer);
|
630
644
|
this.controlFieldConfig();
|
631
645
|
this._formConfigChanged = true;
|
632
646
|
}
|
@@ -840,14 +854,14 @@ const SnkFormConfig = class {
|
|
840
854
|
this._formConfigChanged = true;
|
841
855
|
this.resetSortables();
|
842
856
|
}
|
843
|
-
controlRemoveFieldConfig(fieldConfig) {
|
857
|
+
controlRemoveFieldConfig(fieldConfig, updateTimer) {
|
844
858
|
var _a;
|
845
859
|
this._formConfigChanged = false;
|
846
860
|
if (fieldConfig == undefined) {
|
847
861
|
return;
|
848
862
|
}
|
849
863
|
this._formConfig.fields = (_a = this._formConfig.fields) === null || _a === void 0 ? void 0 : _a.filter((field) => field.name !== fieldConfig.name);
|
850
|
-
this.loadFields();
|
864
|
+
this.loadFields(updateTimer);
|
851
865
|
this.controlFieldConfig();
|
852
866
|
this._formConfigChanged = true;
|
853
867
|
this.resetSortables();
|
@@ -856,14 +870,14 @@ const SnkFormConfig = class {
|
|
856
870
|
this.controlSortableField();
|
857
871
|
this.controlSortableGroup();
|
858
872
|
}
|
859
|
-
handleFieldConfigChange(evt) {
|
873
|
+
handleFieldConfigChange(evt, updateTimer = 0) {
|
860
874
|
const { field: fieldConfig, type: actionType } = evt.detail;
|
861
875
|
if (actionType === constants.ACTION_CONFIG.configuration) {
|
862
876
|
this.controlFieldConfig(fieldConfig);
|
863
877
|
return;
|
864
878
|
}
|
865
879
|
if (actionType === constants.ACTION_CONFIG.remove) {
|
866
|
-
this.controlRemoveFieldConfig(fieldConfig);
|
880
|
+
this.controlRemoveFieldConfig(fieldConfig, updateTimer);
|
867
881
|
return;
|
868
882
|
}
|
869
883
|
if (actionType === constants.ACTION_CONFIG.add) {
|
@@ -884,7 +898,7 @@ const SnkFormConfig = class {
|
|
884
898
|
tab.label = newLabel;
|
885
899
|
}
|
886
900
|
});
|
887
|
-
this.loadFields();
|
901
|
+
this.loadFields(this._sortableTimer);
|
888
902
|
this.controlFieldConfig();
|
889
903
|
this._formConfigChanged = true;
|
890
904
|
}
|
@@ -904,7 +918,7 @@ const SnkFormConfig = class {
|
|
904
918
|
this._formConfig.tabs = (_a = this._formConfig.tabs) === null || _a === void 0 ? void 0 : _a.filter((tab) => {
|
905
919
|
return tab.label !== tabSelected.detail.label;
|
906
920
|
});
|
907
|
-
this.loadFields();
|
921
|
+
this.loadFields(this._sortableTimer);
|
908
922
|
this.controlFieldConfig();
|
909
923
|
this._formConfigChanged = true;
|
910
924
|
}
|
@@ -917,7 +931,7 @@ const SnkFormConfig = class {
|
|
917
931
|
tab.visible = !tab.visible;
|
918
932
|
}
|
919
933
|
});
|
920
|
-
this.loadFields();
|
934
|
+
this.loadFields(this._sortableTimer);
|
921
935
|
this.controlFieldConfig();
|
922
936
|
this._formConfigChanged = true;
|
923
937
|
}
|
@@ -942,6 +956,12 @@ const SnkFormConfig = class {
|
|
942
956
|
this.controlSortableField();
|
943
957
|
this.controlSortableGroup();
|
944
958
|
}
|
959
|
+
async componentWillRender() {
|
960
|
+
if (this.messagesBuilder == undefined) {
|
961
|
+
const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
962
|
+
this.messagesBuilder = application.messagesBuilder;
|
963
|
+
}
|
964
|
+
}
|
945
965
|
componentWillLoad() {
|
946
966
|
this.loadConfig();
|
947
967
|
}
|