@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-kb-74339.1 → 0.0.0-bugfix-dev-KB-76362.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-ecc0ed20.js → ConfigStorage-f079f5fd.js} +2 -2
- package/dist/cjs/{ContinuousInsertUtils-29b65619.js → ContinuousInsertUtils-64e47516.js} +29 -20
- package/dist/cjs/{DataFetcher-cadeef8e.js → DataFetcher-e059eb72.js} +7 -5
- package/dist/cjs/{SnkFormConfigManager-f1c92f79.js → SnkFormConfigManager-63369164.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-bae64d0d.js → SnkMessageBuilder-7691a2c1.js} +10 -0
- package/dist/cjs/{auth-fetcher-d68841bc.js → auth-fetcher-4f853233.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-f89461c1.js → dataunit-fetcher-228016f4.js} +3 -3
- package/dist/cjs/{form-config-fetcher-ed497282.js → form-config-fetcher-39397ac5.js} +1 -1
- package/dist/cjs/index-f9e81701.js +8 -0
- package/dist/cjs/input-distinct-search_2.cjs.entry.js +471 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-ca89181c.js → pesquisa-fetcher-a9bfeb22.js} +7 -2
- 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 +102 -60
- package/dist/cjs/snk-attach.cjs.entry.js +5 -5
- package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-668dc5e8.js → snk-data-unit-7dbdad0e.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-distinct-search.cjs.entry.js +123 -0
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-4236cb9d.js → snk-guides-viewer-eee43c8b.js} +8 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +10 -8
- package/dist/collection/collection-manifest.json +3 -0
- package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +28 -0
- package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js +16 -0
- package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js +52 -0
- package/dist/collection/components/snk-application/snk-application.js +3 -53
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +3 -0
- package/dist/collection/components/snk-distinct-search/snk-distinct-search.css +4 -0
- package/dist/collection/components/snk-distinct-search/snk-distinct-search.js +372 -0
- package/dist/collection/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.css +110 -0
- package/dist/collection/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.js +544 -0
- package/dist/collection/components/snk-distinct-search/subcomponents/search-modal/search-modal.css +28 -0
- package/dist/collection/components/snk-distinct-search/subcomponents/search-modal/search-modal.js +593 -0
- package/dist/collection/components/snk-distinct-search/types/index.js +1 -0
- package/dist/collection/components/snk-distinct-search/utils/filter-distinct-search.js +15 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +3 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -6
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +2 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/distinct-search-fetcher.js +25 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +6 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +2 -0
- package/dist/collection/lib/message/resources/snk-distinct-search.msg.js +9 -0
- package/dist/collection/lib/utils/CrudUtils.js +25 -16
- package/dist/components/ContinuousInsertUtils.js +25 -16
- package/dist/components/DataFetcher.js +7 -5
- package/dist/components/SnkMessageBuilder.js +10 -0
- package/dist/components/dataunit-fetcher.js +2 -2
- package/dist/components/filter-distinct-search.js +17 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/input-distinct-search.d.ts +11 -0
- package/dist/components/input-distinct-search.js +6 -0
- package/dist/components/input-distinct-search2.js +264 -0
- package/dist/components/pesquisa-fetcher.js +6 -1
- package/dist/components/search-modal.d.ts +11 -0
- package/dist/components/search-modal.js +6 -0
- package/dist/components/search-modal2.js +264 -0
- package/dist/components/snk-application2.js +95 -53
- package/dist/components/snk-detail-view2.js +3 -0
- package/dist/components/snk-distinct-search.d.ts +11 -0
- package/dist/components/snk-distinct-search.js +163 -0
- package/dist/components/snk-simple-crud2.js +3 -1
- package/dist/esm/{ConfigStorage-7b36d041.js → ConfigStorage-6514d66e.js} +2 -2
- package/dist/esm/{ContinuousInsertUtils-30caa626.js → ContinuousInsertUtils-b62906f9.js} +29 -20
- package/dist/esm/{DataFetcher-a9c598f2.js → DataFetcher-5034df59.js} +7 -5
- package/dist/esm/{SnkFormConfigManager-f1a0fc92.js → SnkFormConfigManager-b409c745.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-6fff4a4c.js → SnkMessageBuilder-7ace6803.js} +10 -0
- package/dist/esm/{auth-fetcher-749d880f.js → auth-fetcher-ca5d3a49.js} +1 -1
- package/dist/esm/{dataunit-fetcher-c24c76c6.js → dataunit-fetcher-56cb648b.js} +3 -3
- package/dist/esm/{form-config-fetcher-adbe5d34.js → form-config-fetcher-a7d3e277.js} +1 -1
- package/dist/esm/index-a7d3d3f1.js +8 -0
- package/dist/esm/input-distinct-search_2.entry.js +466 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-8edaa8cd.js → pesquisa-fetcher-6bc2e41a.js} +7 -2
- 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 +102 -60
- package/dist/esm/snk-attach.entry.js +5 -5
- package/dist/esm/snk-config-options_3.entry.js +4 -4
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-0fdfb6c2.js → snk-data-unit-7a579dbd.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-distinct-search.entry.js +119 -0
- package/dist/esm/snk-filter-bar_4.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-8fa1321a.js → snk-guides-viewer-e8ca764a.js} +8 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +10 -8
- package/dist/sankhyablocks/{p-f3434fc4.js → p-00278e07.js} +1 -1
- package/dist/sankhyablocks/{p-49b01ec2.entry.js → p-00f9fe5c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fadc8339.js → p-0e206e62.js} +1 -1
- package/dist/sankhyablocks/{p-ab05d5f2.entry.js → p-0e250436.entry.js} +1 -1
- package/dist/sankhyablocks/{p-06421fdb.js → p-126c58ea.js} +1 -1
- package/dist/sankhyablocks/p-154aa2a6.entry.js +11 -0
- package/dist/sankhyablocks/p-18cb1acb.entry.js +1 -0
- package/dist/sankhyablocks/{p-a75d242d.entry.js → p-1dbd5c18.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fa6c5826.entry.js → p-30ebcbe0.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1bf06cd3.js → p-341465ce.js} +2 -2
- package/dist/sankhyablocks/p-3755b46f.entry.js +1 -0
- package/dist/sankhyablocks/{p-052213ba.entry.js → p-3858a2e4.entry.js} +1 -1
- package/dist/sankhyablocks/p-42130213.entry.js +1 -0
- package/dist/sankhyablocks/{p-7ac7932c.js → p-47d24ac8.js} +2 -2
- package/dist/sankhyablocks/{p-8dfc2ba9.entry.js → p-563b7c28.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4d9549cf.js → p-9ffd9fc7.js} +1 -1
- package/dist/sankhyablocks/{p-c2e4ac99.entry.js → p-a2c790ac.entry.js} +1 -1
- package/dist/sankhyablocks/{p-212213d9.entry.js → p-aa003d4e.entry.js} +1 -1
- package/dist/sankhyablocks/p-aaf94476.js +1 -0
- package/dist/sankhyablocks/{p-2ef45894.entry.js → p-b389ed49.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5dd8cf4f.js → p-c75fae8e.js} +1 -1
- package/dist/sankhyablocks/p-d8665750.js +1 -0
- package/dist/sankhyablocks/{p-ee7023c4.js → p-e3a285a2.js} +1 -1
- package/dist/sankhyablocks/p-e4391e16.js +1 -0
- package/dist/sankhyablocks/{p-42288374.entry.js → p-f0aaad2b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b9c67e45.entry.js → p-f4e221b2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fb34e0cf.entry.js → p-fca0e5cc.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
- package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
- package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
- package/dist/types/components/snk-application/snk-application.d.ts +3 -12
- package/dist/types/components/snk-distinct-search/snk-distinct-search.d.ts +83 -0
- package/dist/types/components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.d.ts +105 -0
- package/dist/types/components/snk-distinct-search/subcomponents/search-modal/search-modal.d.ts +127 -0
- package/dist/types/components/snk-distinct-search/types/index.d.ts +12 -0
- package/dist/types/components/snk-distinct-search/utils/filter-distinct-search.d.ts +4 -0
- package/dist/types/components.d.ts +393 -1
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/distinct-search-fetcher.d.ts +6 -0
- package/dist/types/lib/message/resources/snk-distinct-search.msg.d.ts +2 -0
- package/dist/types/lib/utils/CrudUtils.d.ts +1 -0
- package/package.json +1 -1
- package/react/components.d.ts +3 -0
- package/react/components.js +3 -0
- package/react/components.js.map +1 -1
- package/dist/sankhyablocks/p-17425c72.js +0 -1
- package/dist/sankhyablocks/p-2923c1b5.js +0 -1
- package/dist/sankhyablocks/p-7281cdab.entry.js +0 -1
- package/dist/sankhyablocks/p-a42e7a1e.entry.js +0 -11
- package/dist/sankhyablocks/p-ca5ec380.js +0 -1
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
10
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
const index = require('./index-c5771aba.js');
|
|
@@ -14,8 +14,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
14
14
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
15
15
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
|
16
16
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
18
|
-
require('./DataFetcher-
|
|
17
|
+
require('./form-config-fetcher-39397ac5.js');
|
|
18
|
+
require('./DataFetcher-e059eb72.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
21
21
|
|
|
@@ -6,10 +6,10 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
+
const ConfigStorage = require('./ConfigStorage-f079f5fd.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-39397ac5.js');
|
|
12
|
+
require('./DataFetcher-e059eb72.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
|
|
9
9
|
const index$1 = require('./index-1dfc7a6e.js');
|
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const ContinuousInsertUtils = require('./ContinuousInsertUtils-
|
|
12
|
+
const ContinuousInsertUtils = require('./ContinuousInsertUtils-64e47516.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
|
-
require('./DataFetcher-
|
|
15
|
-
require('./pesquisa-fetcher-
|
|
14
|
+
require('./DataFetcher-e059eb72.js');
|
|
15
|
+
require('./pesquisa-fetcher-a9bfeb22.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-228016f4.js');
|
|
20
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
21
|
-
require('./form-config-fetcher-
|
|
21
|
+
require('./form-config-fetcher-39397ac5.js');
|
|
22
22
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
24
24
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -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-63369164.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
require('./DataFetcher-e059eb72.js');
|
|
11
|
+
require('./pesquisa-fetcher-a9bfeb22.js');
|
|
12
12
|
const index$1 = require('./index-1dfc7a6e.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-228016f4.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-39397ac5.js');
|
|
19
19
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
20
20
|
|
|
21
21
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
@@ -455,6 +455,9 @@ const SnkGuidesViewer = class {
|
|
|
455
455
|
await this.addErrorBadgeToGuide(guideName);
|
|
456
456
|
await this.openGuideNavigator(guideName);
|
|
457
457
|
}
|
|
458
|
+
if (action.type === core.Action.METADATA_LOADED) {
|
|
459
|
+
this.loadGuides(false);
|
|
460
|
+
}
|
|
458
461
|
}
|
|
459
462
|
async addErrorBadgeToGuide(guideName) {
|
|
460
463
|
var _a;
|
|
@@ -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-eee43c8b.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-63369164.js');
|
|
9
|
+
require('./ConfigStorage-f079f5fd.js');
|
|
10
|
+
require('./form-config-fetcher-39397ac5.js');
|
|
11
|
+
require('./DataFetcher-e059eb72.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -18,10 +18,10 @@ require('./field-search-68e34bf4.js');
|
|
|
18
18
|
require('./taskbar-elements-9ad1f9c0.js');
|
|
19
19
|
require('./index-1dfc7a6e.js');
|
|
20
20
|
require('./index-102ba62d.js');
|
|
21
|
-
require('./pesquisa-fetcher-
|
|
21
|
+
require('./pesquisa-fetcher-a9bfeb22.js');
|
|
22
22
|
require('./ISave-e91b70a7.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
24
|
-
require('./dataunit-fetcher-
|
|
24
|
+
require('./dataunit-fetcher-228016f4.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-f079f5fd.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-39397ac5.js');
|
|
14
|
+
require('./DataFetcher-e059eb72.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-9ad1f9c0.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
12
|
-
const ContinuousInsertUtils = require('./ContinuousInsertUtils-
|
|
10
|
+
require('./DataFetcher-e059eb72.js');
|
|
11
|
+
require('./pesquisa-fetcher-a9bfeb22.js');
|
|
12
|
+
const ContinuousInsertUtils = require('./ContinuousInsertUtils-64e47516.js');
|
|
13
13
|
const index = require('./index-1dfc7a6e.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-228016f4.js');
|
|
18
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
19
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
19
|
+
const formConfigFetcher = require('./form-config-fetcher-39397ac5.js');
|
|
20
20
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
21
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
22
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
21
|
+
const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
|
|
22
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-63369164.js');
|
|
23
23
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
24
24
|
const index$2 = require('./index-102ba62d.js');
|
|
25
25
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -724,9 +724,11 @@ const SnkSimpleCrud = class {
|
|
|
724
724
|
window.removeEventListener("keydown", this._keyDownHandler);
|
|
725
725
|
}
|
|
726
726
|
gridConfigChangeHandler(evt) {
|
|
727
|
+
evt.stopPropagation();
|
|
728
|
+
if (!this.configName)
|
|
729
|
+
return;
|
|
727
730
|
const config = evt.detail;
|
|
728
731
|
ConfigStorage.ConfigStorage.saveGridConfig(config, this.configName, this.resolveResourceID());
|
|
729
|
-
evt.stopPropagation();
|
|
730
732
|
}
|
|
731
733
|
modalConfigChangeHandler(evt) {
|
|
732
734
|
const config = evt.detail;
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"./components/snk-custom-slot-elements/snk-custom-slot-elements.js",
|
|
20
20
|
"./components/snk-data-exporter/snk-data-exporter.js",
|
|
21
21
|
"./components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js",
|
|
22
|
+
"./components/snk-distinct-search/snk-distinct-search.js",
|
|
23
|
+
"./components/snk-distinct-search/subcomponents/input-distinct-search/input-distinct-search.js",
|
|
24
|
+
"./components/snk-distinct-search/subcomponents/search-modal/search-modal.js",
|
|
22
25
|
"./components/snk-entity-list/snk-entity-list.js",
|
|
23
26
|
"./components/snk-filter-bar/snk-filter-bar.js",
|
|
24
27
|
"./components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js",
|
package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
class DebouncedRequestListener {
|
|
2
|
+
constructor() {
|
|
3
|
+
this._debounceTime = 1500;
|
|
4
|
+
this.requests = new Map();
|
|
5
|
+
this.requestsLoadingBar = [];
|
|
6
|
+
}
|
|
7
|
+
onRequestStart(param) {
|
|
8
|
+
if (param.url.includes("quietMode=true")) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
this.requestsLoadingBar.push(param.requestId);
|
|
12
|
+
const timeout = setTimeout(() => {
|
|
13
|
+
this.ezLoadingBar.show();
|
|
14
|
+
}, this._debounceTime);
|
|
15
|
+
this.requests.set(param.requestId, timeout);
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
onRequestEnd(param) {
|
|
19
|
+
const timeoutId = this.requests.get(param.requestId);
|
|
20
|
+
clearTimeout(timeoutId);
|
|
21
|
+
if (this.requestsLoadingBar.includes(param.requestId)) {
|
|
22
|
+
this.requestsLoadingBar = this.requestsLoadingBar.filter(id => id !== param.requestId);
|
|
23
|
+
!this.requestsLoadingBar.length && this.ezLoadingBar.hide();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
;
|
|
27
|
+
}
|
|
28
|
+
export default DebouncedRequestListener;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import DebouncedRequestListener from "./DebouncedRequestListener";
|
|
2
|
+
import RequestListenerLoadingBar from "./RequestListenerLoadingBar";
|
|
3
|
+
class RequestListenerFactory {
|
|
4
|
+
static create({ strategy }) {
|
|
5
|
+
switch (strategy) {
|
|
6
|
+
case 'request_name':
|
|
7
|
+
return new RequestListenerLoadingBar();
|
|
8
|
+
case 'request_time':
|
|
9
|
+
return new DebouncedRequestListener();
|
|
10
|
+
default:
|
|
11
|
+
throw new Error('Strategy not found');
|
|
12
|
+
}
|
|
13
|
+
;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export default RequestListenerFactory;
|
package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
class RequestListenerLoadingBar {
|
|
2
|
+
constructor() {
|
|
3
|
+
this._debounceTime = 1000;
|
|
4
|
+
this._ignoredNameTypes = ["totals"];
|
|
5
|
+
this._countRequest = 0;
|
|
6
|
+
}
|
|
7
|
+
onRequestStart(param) {
|
|
8
|
+
if (this.isIgnoreLoadingOnRequest(param)) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
this._countRequest++;
|
|
12
|
+
this.ezLoadingBar.show();
|
|
13
|
+
if (this._timerLoading) {
|
|
14
|
+
clearTimeout(this._timerLoading);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
;
|
|
18
|
+
onRequestEnd(param) {
|
|
19
|
+
if (this.isIgnoreLoadingOnRequest(param)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
this._countRequest--;
|
|
23
|
+
this._timerLoading = setTimeout(() => {
|
|
24
|
+
if (this._countRequest <= 0) {
|
|
25
|
+
this.ezLoadingBar.hide();
|
|
26
|
+
}
|
|
27
|
+
}, this._debounceTime);
|
|
28
|
+
}
|
|
29
|
+
;
|
|
30
|
+
isIgnoreLoadingOnRequest(param) {
|
|
31
|
+
if (param == undefined) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if (param.url.includes("quietMode=true")) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
if (param.requestBody == undefined) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
if (param.requestBody.length == 1) {
|
|
41
|
+
const { name } = param.requestBody[0].variables;
|
|
42
|
+
if (name) {
|
|
43
|
+
const nameParts = name.split(":");
|
|
44
|
+
const nameType = nameParts[0];
|
|
45
|
+
return this._ignoredNameTypes.indexOf(nameType) >= 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return false;
|
|
49
|
+
}
|
|
50
|
+
;
|
|
51
|
+
}
|
|
52
|
+
export default RequestListenerLoadingBar;
|
|
@@ -15,6 +15,7 @@ import { SnkMessageBuilder } from "../../lib/message/SnkMessageBuilder";
|
|
|
15
15
|
import UrlUtils from "../../lib/utils/urlutils";
|
|
16
16
|
import Workspace from "../../lib/workspace/workspace";
|
|
17
17
|
import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
|
|
18
|
+
import RequestListenerFactory from "./request-listener/RequestListenerFactory";
|
|
18
19
|
/**
|
|
19
20
|
* É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
|
|
20
21
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
@@ -28,7 +29,7 @@ export class SnkApplication {
|
|
|
28
29
|
this._waitingAppReady = new Array();
|
|
29
30
|
this._duCache = new Map();
|
|
30
31
|
this._duPromises = new Map();
|
|
31
|
-
this._requestListener =
|
|
32
|
+
this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
|
|
32
33
|
this._pendingActions = new Map;
|
|
33
34
|
this._loadPkParameter = null;
|
|
34
35
|
this._isLoadedByPk = false;
|
|
@@ -1004,7 +1005,7 @@ export class SnkApplication {
|
|
|
1004
1005
|
.unbind("F1");
|
|
1005
1006
|
}
|
|
1006
1007
|
render() {
|
|
1007
|
-
return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.
|
|
1008
|
+
return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.ezLoadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
|
|
1008
1009
|
}
|
|
1009
1010
|
static get is() { return "snk-application"; }
|
|
1010
1011
|
static get encapsulation() { return "scoped"; }
|
|
@@ -2513,57 +2514,6 @@ export class SnkApplication {
|
|
|
2513
2514
|
}];
|
|
2514
2515
|
}
|
|
2515
2516
|
}
|
|
2516
|
-
class RequestListenerLoadingBar {
|
|
2517
|
-
constructor() {
|
|
2518
|
-
this._debounceTime = 1000;
|
|
2519
|
-
this._ignoredNameTypes = ["totals"];
|
|
2520
|
-
this._countRequest = 0;
|
|
2521
|
-
}
|
|
2522
|
-
onRequestStart(param) {
|
|
2523
|
-
if (this.isIgnoreLoadingOnRequest(param)) {
|
|
2524
|
-
return;
|
|
2525
|
-
}
|
|
2526
|
-
this._countRequest++;
|
|
2527
|
-
this.loadingBar.show();
|
|
2528
|
-
if (this._timerLoading) {
|
|
2529
|
-
clearTimeout(this._timerLoading);
|
|
2530
|
-
}
|
|
2531
|
-
}
|
|
2532
|
-
;
|
|
2533
|
-
onRequestEnd(param) {
|
|
2534
|
-
if (this.isIgnoreLoadingOnRequest(param)) {
|
|
2535
|
-
return;
|
|
2536
|
-
}
|
|
2537
|
-
this._countRequest--;
|
|
2538
|
-
this._timerLoading = setTimeout(() => {
|
|
2539
|
-
if (this._countRequest <= 0) {
|
|
2540
|
-
this.loadingBar.hide();
|
|
2541
|
-
}
|
|
2542
|
-
}, this._debounceTime);
|
|
2543
|
-
}
|
|
2544
|
-
;
|
|
2545
|
-
isIgnoreLoadingOnRequest(param) {
|
|
2546
|
-
if (param == undefined) {
|
|
2547
|
-
return false;
|
|
2548
|
-
}
|
|
2549
|
-
if (param.url.includes("quietMode=true")) {
|
|
2550
|
-
return true;
|
|
2551
|
-
}
|
|
2552
|
-
if (param.requestBody == undefined) {
|
|
2553
|
-
return false;
|
|
2554
|
-
}
|
|
2555
|
-
if (param.requestBody.length == 1) {
|
|
2556
|
-
const { name } = param.requestBody[0].variables;
|
|
2557
|
-
if (name) {
|
|
2558
|
-
const nameParts = name.split(":");
|
|
2559
|
-
const nameType = nameParts[0];
|
|
2560
|
-
return this._ignoredNameTypes.indexOf(nameType) >= 0;
|
|
2561
|
-
}
|
|
2562
|
-
}
|
|
2563
|
-
return false;
|
|
2564
|
-
}
|
|
2565
|
-
;
|
|
2566
|
-
}
|
|
2567
2517
|
class PendingPromise {
|
|
2568
2518
|
constructor(resolve, reject) {
|
|
2569
2519
|
this.resolve = resolve;
|
|
@@ -439,6 +439,9 @@ export class SnkGuidesViewer {
|
|
|
439
439
|
await this.addErrorBadgeToGuide(guideName);
|
|
440
440
|
await this.openGuideNavigator(guideName);
|
|
441
441
|
}
|
|
442
|
+
if (action.type === DUAction.METADATA_LOADED) {
|
|
443
|
+
this.loadGuides(false);
|
|
444
|
+
}
|
|
442
445
|
}
|
|
443
446
|
async addErrorBadgeToGuide(guideName) {
|
|
444
447
|
var _a;
|