@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-83517.0 → 0.0.0-bugfix-dev-KB-87855.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/{ClientSideExporterProvider-cc82b68a.js → ClientSideExporterProvider-e4f717b5.js} +30 -28
- package/dist/cjs/{ConfigStorage-2235f35e.js → ConfigStorage-df09fb78.js} +2 -2
- package/dist/cjs/{DataFetcher-875371e9.js → DataFetcher-1afdb18e.js} +14 -2
- package/dist/cjs/{ISave-62fbb1dd.js → ISave-c76e2c51.js} +27 -3
- package/dist/cjs/{SnkFormConfigManager-6637cd6b.js → SnkFormConfigManager-45a8d7b7.js} +3 -3
- package/dist/cjs/{auth-fetcher-abad589f.js → auth-fetcher-1687ac0a.js} +1 -1
- package/dist/cjs/{constants-241934b3.js → constants-77c1b8bd.js} +1 -0
- package/dist/cjs/{dataunit-fetcher-b95768e8.js → dataunit-fetcher-a723f0dc.js} +12 -8
- package/dist/cjs/{form-config-fetcher-db332748.js → form-config-fetcher-40d3f752.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_7.cjs.entry.js +8 -6
- package/dist/cjs/snk-application.cjs.entry.js +133 -16
- package/dist/cjs/snk-attach.cjs.entry.js +6 -6
- package/dist/cjs/snk-config-options_3.cjs.entry.js +10 -8
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +27 -39
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-33937ffe.js → snk-data-unit-bab0b78a.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- 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-filter-search.cjs.entry.js +18 -5
- package/dist/cjs/snk-grid.cjs.entry.js +7 -7
- package/dist/cjs/{snk-guides-viewer-0e4f3b1a.js → snk-guides-viewer-b9a97db8.js} +6 -6
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-simple-crud.cjs.entry.js +14 -11
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +5 -2
- package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +107 -0
- package/dist/collection/components/snk-application/snk-application.js +86 -8
- package/dist/collection/components/snk-crud/snk-crud.js +22 -34
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +15 -19
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +18 -5
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +5 -3
- package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +2 -2
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +2 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +6 -3
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +8 -2
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +14 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +5 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +6 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +26 -2
- package/dist/collection/lib/utils/constants.js +1 -0
- package/dist/components/ContinuousInsertUtils.js +25 -23
- package/dist/components/DataFetcher.js +14 -2
- package/dist/components/ISave.js +26 -2
- package/dist/components/constants.js +1 -0
- package/dist/components/dataunit-fetcher.js +11 -7
- package/dist/components/snk-application2.js +130 -10
- package/dist/components/snk-config-options2.js +5 -3
- package/dist/components/snk-crud.js +23 -35
- package/dist/components/snk-filter-search.js +18 -5
- package/dist/components/snk-grid-config2.js +2 -0
- package/dist/components/snk-simple-crud2.js +6 -3
- package/dist/esm/{ClientSideExporterProvider-8191676b.js → ClientSideExporterProvider-3b8ba474.js} +30 -28
- package/dist/esm/{ConfigStorage-9bd805d6.js → ConfigStorage-71e6766f.js} +2 -2
- package/dist/esm/{DataFetcher-ecf5f903.js → DataFetcher-88e56266.js} +14 -2
- package/dist/esm/{ISave-7d546dce.js → ISave-5efafc97.js} +27 -3
- package/dist/esm/{SnkFormConfigManager-fbc6a9a8.js → SnkFormConfigManager-be490a33.js} +3 -3
- package/dist/esm/{auth-fetcher-07d33333.js → auth-fetcher-3510520e.js} +1 -1
- package/dist/esm/{constants-75abb876.js → constants-7db1128a.js} +1 -0
- package/dist/esm/{dataunit-fetcher-ed6e65ef.js → dataunit-fetcher-0e025732.js} +12 -8
- package/dist/esm/{form-config-fetcher-ac17cff4.js → form-config-fetcher-fa208a6c.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +5 -5
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_7.entry.js +8 -6
- package/dist/esm/snk-application.entry.js +134 -17
- package/dist/esm/snk-attach.entry.js +6 -6
- package/dist/esm/snk-config-options_3.entry.js +10 -8
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +28 -40
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-6258b8ae.js → snk-data-unit-0cb53554.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-field-config.entry.js +1 -1
- 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-filter-search.entry.js +18 -5
- package/dist/esm/snk-grid.entry.js +7 -7
- package/dist/esm/{snk-guides-viewer-80a8709c.js → snk-guides-viewer-83eecbd7.js} +6 -6
- package/dist/esm/snk-guides-viewer.entry.js +8 -8
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +5 -5
- package/dist/esm/snk-simple-crud.entry.js +14 -11
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/sankhyablocks/{p-13f17dab.js → p-03b68a74.js} +1 -1
- package/dist/sankhyablocks/{p-c7c6eab7.entry.js → p-10878f04.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d1f04e2c.js → p-15784f66.js} +1 -1
- package/dist/sankhyablocks/p-15f67e59.entry.js +11 -0
- package/dist/sankhyablocks/{p-340e2447.entry.js → p-165cde3b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-abd9681c.js → p-18c460f2.js} +1 -1
- package/dist/sankhyablocks/{p-2746d606.entry.js → p-1bdc7355.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2953c481.entry.js → p-3749dffb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-950e3cbe.entry.js → p-475df998.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0bcd4757.entry.js → p-490b75b5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f467153c.entry.js → p-5ffa0493.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5fea0816.entry.js → p-60137b7a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-01512409.js → p-601b252b.js} +1 -1
- package/dist/sankhyablocks/p-6a0c8ce0.entry.js +1 -0
- package/dist/sankhyablocks/p-6dd38d7b.js +6 -0
- package/dist/sankhyablocks/{p-48729c8c.js → p-73285a8a.js} +1 -1
- package/dist/sankhyablocks/p-7993b2e3.js +60 -0
- package/dist/sankhyablocks/p-841d3c3e.entry.js +1 -0
- package/dist/sankhyablocks/{p-3a36d4b3.entry.js → p-90684a75.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1d19a5b0.js → p-9261d8a0.js} +1 -1
- package/dist/sankhyablocks/{p-dc617b0c.entry.js → p-9a7f7ca3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f861bfcb.entry.js → p-9b4c5dae.entry.js} +1 -1
- package/dist/sankhyablocks/p-af133934.entry.js +1 -0
- package/dist/sankhyablocks/p-b6200d32.entry.js +1 -0
- package/dist/sankhyablocks/{p-23cd6abf.entry.js → p-c0eb761b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-02c6dc9f.entry.js → p-d31a701e.entry.js} +1 -1
- package/dist/sankhyablocks/p-d4752c92.entry.js +1 -0
- package/dist/sankhyablocks/{p-d2065bb4.entry.js → p-dc6ad9a6.entry.js} +1 -1
- package/dist/sankhyablocks/p-e66968aa.js +1 -0
- package/dist/sankhyablocks/{p-cb9d725a.js → p-ebdb9d89.js} +1 -1
- package/dist/sankhyablocks/{p-5a7e18f4.js → p-fbba7e3d.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/search-strategy/exec-prepared-search-plus.d.ts +5 -0
- package/dist/types/components/snk-application/snk-application.d.ts +7 -2
- package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +5 -3
- package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +1 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -0
- package/dist/types/components.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +4 -1
- package/dist/types/lib/utils/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-07afb345.entry.js +0 -1
- package/dist/sankhyablocks/p-108fee57.js +0 -6
- package/dist/sankhyablocks/p-35fcf37e.js +0 -1
- package/dist/sankhyablocks/p-513af002.entry.js +0 -1
- package/dist/sankhyablocks/p-7e0a0aae.js +0 -60
- package/dist/sankhyablocks/p-9907cf67.entry.js +0 -1
- package/dist/sankhyablocks/p-c5acb7ba.entry.js +0 -11
- package/dist/sankhyablocks/p-c8622597.entry.js +0 -1
- package/dist/sankhyablocks/p-e5d8891d.entry.js +0 -1
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-df09fb78.js');
|
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-e4f717b5.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
|
-
require('./DataFetcher-
|
|
15
|
-
require('./ISave-
|
|
14
|
+
require('./DataFetcher-1afdb18e.js');
|
|
15
|
+
require('./ISave-c76e2c51.js');
|
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
17
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
18
|
-
require('./dataunit-fetcher-
|
|
18
|
+
require('./dataunit-fetcher-a723f0dc.js');
|
|
19
19
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
20
|
-
require('./form-config-fetcher-
|
|
21
|
-
require('./constants-
|
|
20
|
+
require('./form-config-fetcher-40d3f752.js');
|
|
21
|
+
require('./constants-77c1b8bd.js');
|
|
22
22
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
24
24
|
require('./IFetchDataExporterParams-e78ec415.js');
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-45a8d7b7.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
9
|
-
const constants = require('./constants-
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./ISave-
|
|
9
|
+
const constants = require('./constants-77c1b8bd.js');
|
|
10
|
+
require('./DataFetcher-1afdb18e.js');
|
|
11
|
+
require('./ISave-c76e2c51.js');
|
|
12
12
|
const index$1 = require('./index-e3e39724.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-a723f0dc.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
17
|
+
require('./form-config-fetcher-40d3f752.js');
|
|
18
18
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
19
19
|
|
|
20
20
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
@@ -2,25 +2,25 @@
|
|
|
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-b9a97db8.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-45a8d7b7.js');
|
|
9
|
+
require('./ConfigStorage-df09fb78.js');
|
|
10
|
+
require('./form-config-fetcher-40d3f752.js');
|
|
11
|
+
require('./DataFetcher-1afdb18e.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');
|
|
15
|
-
require('./constants-
|
|
15
|
+
require('./constants-77c1b8bd.js');
|
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
17
17
|
require('./field-search-68e34bf4.js');
|
|
18
18
|
require('./taskbar-elements-7e19882d.js');
|
|
19
19
|
require('./index-e3e39724.js');
|
|
20
20
|
require('./index-102ba62d.js');
|
|
21
|
-
require('./ISave-
|
|
21
|
+
require('./ISave-c76e2c51.js');
|
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
23
|
-
require('./dataunit-fetcher-
|
|
23
|
+
require('./dataunit-fetcher-a723f0dc.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
26
26
|
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-df09fb78.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-40d3f752.js');
|
|
14
|
+
require('./DataFetcher-1afdb18e.js');
|
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
17
|
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const ISave = require('./ISave-
|
|
8
|
-
require('./DataFetcher-
|
|
7
|
+
const ISave = require('./ISave-c76e2c51.js');
|
|
8
|
+
require('./DataFetcher-1afdb18e.js');
|
|
9
9
|
require('./index-e3e39724.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-a723f0dc.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
15
|
-
require('./constants-
|
|
14
|
+
require('./form-config-fetcher-40d3f752.js');
|
|
15
|
+
require('./constants-77c1b8bd.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
18
18
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -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 utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
|
-
const constants = require('./constants-
|
|
8
|
+
const constants = require('./constants-77c1b8bd.js');
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./ISave-
|
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
|
10
|
+
require('./DataFetcher-1afdb18e.js');
|
|
11
|
+
require('./ISave-c76e2c51.js');
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-e4f717b5.js');
|
|
13
13
|
const index$1 = require('./index-e3e39724.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
16
|
+
const dataunitFetcher = require('./dataunit-fetcher-a723f0dc.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
18
|
+
const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
|
|
19
19
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
20
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
21
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
20
|
+
const ConfigStorage = require('./ConfigStorage-df09fb78.js');
|
|
21
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-45a8d7b7.js');
|
|
22
22
|
const index$2 = require('./index-102ba62d.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
@@ -664,7 +664,9 @@ const SnkSimpleCrud = class {
|
|
|
664
664
|
window.addEventListener("keydown", this._keyDownHandler, { capture: true });
|
|
665
665
|
}
|
|
666
666
|
disconnectedCallback() {
|
|
667
|
+
var _a;
|
|
667
668
|
window.removeEventListener("keydown", this._keyDownHandler);
|
|
669
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
668
670
|
}
|
|
669
671
|
gridConfigChangeHandler(evt) {
|
|
670
672
|
evt.stopPropagation();
|
|
@@ -746,12 +748,12 @@ const SnkSimpleCrud = class {
|
|
|
746
748
|
}
|
|
747
749
|
async initKeyboardManager() {
|
|
748
750
|
var _a;
|
|
749
|
-
|
|
751
|
+
this._keyboardManager = new core.KeyboardManager({ propagate: false, element: this._element });
|
|
750
752
|
const dataUnit = this.dataUnit || await ((_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.getDataUnit());
|
|
751
753
|
if (dataUnit == undefined) {
|
|
752
754
|
return;
|
|
753
755
|
}
|
|
754
|
-
|
|
756
|
+
this._keyboardManager
|
|
755
757
|
.bind("F7", () => dataUnit.saveData(), { description: "Salva os dados.", element: this._element })
|
|
756
758
|
.bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro.", element: this._element })
|
|
757
759
|
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
|
@@ -761,7 +763,8 @@ const SnkSimpleCrud = class {
|
|
|
761
763
|
}
|
|
762
764
|
}, {
|
|
763
765
|
debounceTime: 1000,
|
|
764
|
-
description: "Cancela uma ação.",
|
|
766
|
+
description: "Cancela uma ação.",
|
|
767
|
+
element: this._element
|
|
765
768
|
});
|
|
766
769
|
}
|
|
767
770
|
async handleFormConfigSaved() {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const Sortable = require('./Sortable-fb1c4cbb.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
|
-
const constants = require('./constants-
|
|
8
|
+
const constants = require('./constants-77c1b8bd.js');
|
|
9
9
|
|
|
10
10
|
const snkTabConfigCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}.sc-snk-tab-config-h{--snk-tab-config--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--snk-tab-config--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--snk-tab-config__lower-bar--background-color:var(--color--disable-primary, #e5eaf0);--snk-tab-config__lower-bar--border:2px solid var(--color--disable-primary, #e5eaf0);--snk-tab-config__tab--color:var(--text--primary, #626e82);--snk-tab-config__tab--font-family:var(--font-pattern, \"Roboto\");--snk-tab-config__tab--font-size:var(--title--small, 14px);--snk-tab-config__tab--padding:var(--space--small, 6px) var(--space--medium, 12px);--snk-tab-config__tab-is-active--color:var(--color--primary, #008561);--snk-tab-config__tab-hover--color:var(--color--secondary, #383c45);--snk-tab-config__tab-is-focused--border:1px dashed var(--color--primary, #008561);--snk-tab-config__tab-label--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--snk-tab-config__tab-label--margin-bottom:var(--space--extra-small, 3px);--snk-tab-config__new-button-icon--color:var(--color--secondary-700, #1C1D22);--snk-tab-config__forward-button--background-color:var(--text--primary, #626e82);--snk-tab-config__forward-button-hover--background-color:var(--color--primary, #008561);--snk-tab-config__left-icon--padding-right:var(--space--small, 6px);--snk-tab-config__left-icon--color:var(--text--disable, #AFB6C0);--snk-tab-config__tab-label-disabled--color:var(--text--disable, #AFB6C0);--snk-tab-config__slot--margin-left:var(--space--small, 6px);display:flex;position:relative;width:100%;overflow:hidden}.tab-config__scroll.sc-snk-tab-config{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.tab-config__lower-bar.sc-snk-tab-config{position:absolute;left:0%;right:0%;top:91%;bottom:0%;border-radius:2px;background-color:var(--snk-tab-config__lower-bar--background-color);border:var(--snk-tab-config__lower-bar--border)}.tab-config__tab.sc-snk-tab-config{display:flex;border:none;background-color:unset;cursor:pointer;align-items:center;justify-content:center;min-width:fit-content;color:var(--snk-tab-config__tab--color);font-family:var(--snk-tab-config__tab--font-family);font-size:var(--snk-tab-config__tab--font-size);padding:var(--snk-tab-config__tab--padding)}.tab-config__tab.sc-snk-tab-config:focus,.tab-config__forward-button.sc-snk-tab-config,.tab-config__backward-button.sc-snk-tab-config{outline:none}.tab-config__tab--is-active.sc-snk-tab-config{position:relative;color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab.sc-snk-tab-config:hover{color:var(--snk-tab-config__tab-hover--color)}.tab-config__tab--is-active.sc-snk-tab-config:hover{color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab--is-active.sc-snk-tab-config::after{content:\"\";position:absolute;width:100%;height:100%;clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out;background-color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab--is-focused.sc-snk-tab-config{border:var(--snk-tab-config__tab-is-focused--border)}.tab-config__tab-label.sc-snk-tab-config{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--snk-tab-config__tab-label--text-shadow);margin-bottom:var(--snk-tab-config__tab-label--margin-bottom)}.tab-config__forward-button.sc-snk-tab-config,.tab-config__backward-button.sc-snk-tab-config{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.tab-config__new-button.sc-snk-tab-config{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.tab-config__new-button.sc-snk-tab-config ez-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__new-button-icon--color)}.tab-config__backward-button.sc-snk-tab-config{left:0px;box-shadow:10px 10px 5px 5px white;background:white}.tab-config__forward-button.sc-snk-tab-config{box-shadow:10px 10px 5px 20px white;background:white}.tab-config__forward-button.sc-snk-tab-config::after,.tab-config__backward-button.sc-snk-tab-config::after{content:'';display:flex;width:10px;height:16px;background-color:var(--snk-tab-config__forward-button--background-color)}.tab-config__forward-button.sc-snk-tab-config::after{-webkit-mask-image:var(--snk-tab-config--forward-icon);mask-image:var(--snk-tab-config--forward-icon)}.tab-config__backward-button.sc-snk-tab-config::after{-webkit-mask-image:var(--snk-tab-config--backward-icon);mask-image:var(--snk-tab-config--backward-icon)}.tab-config__forward-button.sc-snk-tab-config:hover::after,.tab-config__backward-button.sc-snk-tab-config:hover::after{background-color:var(--snk-tab-config__forward-button-hover--background-color)}.tab-config__new-button.sc-snk-tab-config:hover ez-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__forward-button-hover--background-color)}.tab-config__hidden.sc-snk-tab-config{display:none}.tab-config__scroll.sc-snk-tab-config::-webkit-scrollbar{display:none}.tab-config__left-icon.sc-snk-tab-config{padding-right:var(--snk-tab-config__left-icon--padding-right);--ez-icon--color:var(--snk-tab-config__left-icon--color)}.tab-config__left-icon--eye-off.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__left-icon--color)}.tab-config__right-icon.sc-snk-tab-config{visibility:hidden;padding-left:var(--snk-tab-config__left-icon--padding-right)}.tab-config__tab.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{visibility:visible}.tab-config__tab--is-active.sc-snk-tab-config .tab-config__right-icon.sc-snk-tab-config{visibility:visible;--ez-icon--color:var(--snk-tab-config__tab-is-active--color)}.tab-config__tab.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__tab-hover--color)}.tab-config__tab--is-active.sc-snk-tab-config:hover .tab-config__right-icon.sc-snk-tab-config{--ez-icon--color:var(--snk-tab-config__tab-is-active--color)}.tab-config__actions-button.sc-snk-tab-config{--ez-actions-button__btn-action--min-width:100px;visibility:hidden;opacity:0;transition:visibility 1s linear, opacity 0.3s linear}.tab-config__tab.sc-snk-tab-config:hover .tab-config__actions-button.sc-snk-tab-config{visibility:visible;opacity:1;transition:visibility 0.2s linear, opacity 0.10s linear}[data-draggable-element].sc-snk-tab-config{cursor:grab}.tab-config__tab-label-disabled.sc-snk-tab-config{color:var(--snk-tab-config__tab-label-disabled--color)}.tab-config__slot.sc-snk-tab-config{margin-left:var(--snk-tab-config__slot--margin-left)}";
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WarningException, WaitingChangeException, ErrorException, ObjectUtils } from "@sankhyalabs/core";
|
|
1
|
+
import { WarningException, WaitingChangeException, ErrorException, ObjectUtils, SilentException } from "@sankhyalabs/core";
|
|
2
2
|
export class SnkErrorHandler {
|
|
3
3
|
constructor(app) {
|
|
4
4
|
this._app = app;
|
|
@@ -33,7 +33,10 @@ export class SnkErrorHandler {
|
|
|
33
33
|
if (exception.errorCode) {
|
|
34
34
|
exception.message += this.buildErrorCodeHTML(exception.errorCode);
|
|
35
35
|
}
|
|
36
|
-
if (exception instanceof
|
|
36
|
+
if (exception instanceof SilentException) {
|
|
37
|
+
console.warn("SilentException ignorada", exception);
|
|
38
|
+
}
|
|
39
|
+
else if (exception instanceof WaitingChangeException) {
|
|
37
40
|
this._app.alert(exception.title, exception.message);
|
|
38
41
|
}
|
|
39
42
|
else if (exception instanceof WarningException) {
|
package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { ArrayUtils, ElementIDUtils, SearchUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { ObjectUtils } from "@sankhyalabs/core";
|
|
3
|
+
import { StringUtils } from "@sankhyalabs/core";
|
|
4
|
+
const QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH = 6;
|
|
5
|
+
const INVALID_CONTENT_PATTERNS = ['<img', '<svg'];
|
|
6
|
+
const executePreparedSearchPlus = async (mode, argument, options, app, pesquisaFetcher) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const mdByName = {};
|
|
9
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
|
|
10
|
+
if (mode === "ADVANCED") {
|
|
11
|
+
return new Promise((accept, reject) => {
|
|
12
|
+
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
13
|
+
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
|
14
|
+
pesquisaContent.entityName = entity;
|
|
15
|
+
pesquisaContent.argument = argument;
|
|
16
|
+
pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
|
17
|
+
pesquisaContent.isHierarchyEntity = isHierarchyEntity;
|
|
18
|
+
if (isHierarchyEntity) {
|
|
19
|
+
pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
20
|
+
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
21
|
+
}
|
|
22
|
+
pesquisaContent.selectItem = (option) => {
|
|
23
|
+
accept(option);
|
|
24
|
+
app.clearPopUpTitle();
|
|
25
|
+
app.closePopUp();
|
|
26
|
+
};
|
|
27
|
+
app.setPopUpTitle(entityDescription);
|
|
28
|
+
app.showPopUp(pesquisaContent, undefined, undefined, reject);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
else if (mode === "LOAD_DESCRIPTION") {
|
|
32
|
+
let result = await pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
|
|
33
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
34
|
+
let descriptionField = result.descriptionField;
|
|
35
|
+
const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
|
|
36
|
+
if (!option) {
|
|
37
|
+
return {
|
|
38
|
+
value: argument,
|
|
39
|
+
label: ""
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
value: argument,
|
|
44
|
+
label: option[descriptionField]
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
let codeValue;
|
|
49
|
+
let result = await pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions, codeValue);
|
|
50
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
51
|
+
let descriptionField = result.descriptionField;
|
|
52
|
+
let pkField = result.pkField;
|
|
53
|
+
const list = result.data.map((item) => {
|
|
54
|
+
let fieldsMetadata = filterInvalidFields(result, item, mdByName);
|
|
55
|
+
let fields = filterMathFields(item['__matchFields'], fieldsMetadata, QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH, mdByName);
|
|
56
|
+
return buildOptionItem(argument, item, fields, descriptionField, pkField);
|
|
57
|
+
});
|
|
58
|
+
return list;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const buildOptionItem = (argument, item, fields, descriptionField, pkField) => {
|
|
62
|
+
var _a;
|
|
63
|
+
const matchFields = item['__matchFields'];
|
|
64
|
+
const descriptionValue = (_a = item[descriptionField]) !== null && _a !== void 0 ? _a : "";
|
|
65
|
+
const pkValue = item[pkField];
|
|
66
|
+
let searchOption = {
|
|
67
|
+
value: pkValue,
|
|
68
|
+
label: descriptionValue,
|
|
69
|
+
presentationValue: StringUtils.highlightValue(argument, matchFields, pkValue, fields, true),
|
|
70
|
+
presentationLabel: descriptionField ? StringUtils.highlightValue(argument, matchFields, descriptionValue, fields, true) : "",
|
|
71
|
+
details: SearchUtils.buildDetails(argument, fields, item)
|
|
72
|
+
};
|
|
73
|
+
return searchOption;
|
|
74
|
+
};
|
|
75
|
+
const filterInvalidFields = (resp, item, mdByName) => {
|
|
76
|
+
let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
|
|
77
|
+
let accept = !StringUtils.isEmpty(item[field.fieldName]) &&
|
|
78
|
+
field.visible !== false &&
|
|
79
|
+
field.type !== 'B' &&
|
|
80
|
+
resp.pkField !== field.fieldName &&
|
|
81
|
+
resp.descriptionField !== field.fieldName &&
|
|
82
|
+
(field.isPrimaryKey || !field.isLinkField) &&
|
|
83
|
+
!(field.type === 'S' && field.presentationType === 'H');
|
|
84
|
+
if (accept) {
|
|
85
|
+
mdByName[field.fieldName] = field;
|
|
86
|
+
}
|
|
87
|
+
//Condição que trata o problema de trazer imagem no entityCard na pesquisa de registros
|
|
88
|
+
if (typeof item[field.fieldName] === 'string' && INVALID_CONTENT_PATTERNS.some(pattern => item[field.fieldName].includes(pattern))) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
return accept;
|
|
92
|
+
});
|
|
93
|
+
return fieldsMetadata;
|
|
94
|
+
};
|
|
95
|
+
const filterMathFields = (matchFields, fields, qtyFields, mdByName) => {
|
|
96
|
+
if (matchFields && Array.isArray(matchFields)) {
|
|
97
|
+
matchFields.forEach((matchField) => {
|
|
98
|
+
let fieldMD = ArrayUtils.removeReference(fields, mdByName[matchField]);
|
|
99
|
+
if (fieldMD) {
|
|
100
|
+
fields.unshift(fieldMD);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
fields = fields.slice(0, qtyFields);
|
|
105
|
+
return fields;
|
|
106
|
+
};
|
|
107
|
+
export default executePreparedSearchPlus;
|
|
@@ -18,6 +18,7 @@ import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
|
|
|
18
18
|
import RequestListenerFactory from "./request-listener/RequestListenerFactory";
|
|
19
19
|
import PreloadManager from "../../lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager";
|
|
20
20
|
import { TEMPLATES_SKELETON } from "../../lib/utils/constants";
|
|
21
|
+
import executePreparedSearchPlus from "./search-strategy/exec-prepared-search-plus";
|
|
21
22
|
import { LayoutFormConfig } from "../../lib/configs/LayoutFormConfig";
|
|
22
23
|
import { FormConfigFetcher } from "../../lib";
|
|
23
24
|
/**
|
|
@@ -655,7 +656,7 @@ export class SnkApplication {
|
|
|
655
656
|
searchOptions,
|
|
656
657
|
allowsNonAnalytic
|
|
657
658
|
};
|
|
658
|
-
return this.executePreparedSearch(mode, argument, options);
|
|
659
|
+
return (ctxOptions === null || ctxOptions === void 0 ? void 0 : ctxOptions.useSearchPlus) ? this.executePreparedSearchPlus(mode, argument, options) : this.executePreparedSearch(mode, argument, options);
|
|
659
660
|
}
|
|
660
661
|
}
|
|
661
662
|
filterInvalidFields(resp, item, mdByName) {
|
|
@@ -699,13 +700,23 @@ export class SnkApplication {
|
|
|
699
700
|
};
|
|
700
701
|
return exibitionItem;
|
|
701
702
|
}
|
|
703
|
+
/**
|
|
704
|
+
* Realiza a pesquisa de registros
|
|
705
|
+
* Ex.: snk-config-options
|
|
706
|
+
*/
|
|
707
|
+
async executePreparedSearchPlus(mode, argument, options) {
|
|
708
|
+
return await this.executePreparedSearch(mode, argument, Object.assign(Object.assign({}, options), { useSearchPlus: true }));
|
|
709
|
+
}
|
|
702
710
|
/**
|
|
703
711
|
* Obtém as opções em componentes de pesquisa
|
|
704
712
|
* Ex.: snk-config-options
|
|
705
713
|
*/
|
|
706
714
|
async executePreparedSearch(mode, argument, options) {
|
|
707
715
|
const mdByName = {};
|
|
708
|
-
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
|
|
716
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, useSearchPlus } = options;
|
|
717
|
+
if (useSearchPlus) {
|
|
718
|
+
return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
|
|
719
|
+
}
|
|
709
720
|
if (mode === "ADVANCED") {
|
|
710
721
|
return new Promise((accept, reject) => {
|
|
711
722
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
@@ -855,10 +866,10 @@ export class SnkApplication {
|
|
|
855
866
|
});
|
|
856
867
|
}
|
|
857
868
|
}
|
|
858
|
-
clearPopUpTitle() {
|
|
869
|
+
async clearPopUpTitle() {
|
|
859
870
|
this._popUp.ezTitle = "";
|
|
860
871
|
}
|
|
861
|
-
setPopUpTitle(title) {
|
|
872
|
+
async setPopUpTitle(title) {
|
|
862
873
|
this._popUp.ezTitle = title;
|
|
863
874
|
}
|
|
864
875
|
async pkChangeListener() {
|
|
@@ -1028,6 +1039,9 @@ export class SnkApplication {
|
|
|
1028
1039
|
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
|
1029
1040
|
return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
|
|
1030
1041
|
});
|
|
1042
|
+
ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
|
1043
|
+
return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
|
|
1044
|
+
});
|
|
1031
1045
|
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
|
1032
1046
|
this.registerPkChangeListener();
|
|
1033
1047
|
ErrorTracking.init();
|
|
@@ -1155,10 +1169,7 @@ export class SnkApplication {
|
|
|
1155
1169
|
.bind("F1", Workspace.openHelp.bind(this), { description: "Abrir ajuda" });
|
|
1156
1170
|
}
|
|
1157
1171
|
removeShortcuts() {
|
|
1158
|
-
this._keyboardManager
|
|
1159
|
-
.unbind("ctrl + g")
|
|
1160
|
-
.unbind("ctrl + d")
|
|
1161
|
-
.unbind("F1");
|
|
1172
|
+
this._keyboardManager.unbindAllShortcutKeys();
|
|
1162
1173
|
}
|
|
1163
1174
|
renderLoadingSkeleton() {
|
|
1164
1175
|
if (!this.enableLockManagerLoadingApp)
|
|
@@ -2526,6 +2537,38 @@ export class SnkApplication {
|
|
|
2526
2537
|
"tags": []
|
|
2527
2538
|
}
|
|
2528
2539
|
},
|
|
2540
|
+
"executePreparedSearchPlus": {
|
|
2541
|
+
"complexType": {
|
|
2542
|
+
"signature": "(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>",
|
|
2543
|
+
"parameters": [{
|
|
2544
|
+
"tags": [],
|
|
2545
|
+
"text": ""
|
|
2546
|
+
}, {
|
|
2547
|
+
"tags": [],
|
|
2548
|
+
"text": ""
|
|
2549
|
+
}, {
|
|
2550
|
+
"tags": [],
|
|
2551
|
+
"text": ""
|
|
2552
|
+
}],
|
|
2553
|
+
"references": {
|
|
2554
|
+
"Promise": {
|
|
2555
|
+
"location": "global"
|
|
2556
|
+
},
|
|
2557
|
+
"IOption": {
|
|
2558
|
+
"location": "import",
|
|
2559
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
|
|
2560
|
+
},
|
|
2561
|
+
"Array": {
|
|
2562
|
+
"location": "global"
|
|
2563
|
+
}
|
|
2564
|
+
},
|
|
2565
|
+
"return": "Promise<IOption | IOption[]>"
|
|
2566
|
+
},
|
|
2567
|
+
"docs": {
|
|
2568
|
+
"text": "Realiza a pesquisa de registros\nEx.: snk-config-options",
|
|
2569
|
+
"tags": []
|
|
2570
|
+
}
|
|
2571
|
+
},
|
|
2529
2572
|
"executePreparedSearch": {
|
|
2530
2573
|
"complexType": {
|
|
2531
2574
|
"signature": "(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>",
|
|
@@ -2785,6 +2828,41 @@ export class SnkApplication {
|
|
|
2785
2828
|
}]
|
|
2786
2829
|
}
|
|
2787
2830
|
},
|
|
2831
|
+
"clearPopUpTitle": {
|
|
2832
|
+
"complexType": {
|
|
2833
|
+
"signature": "() => Promise<void>",
|
|
2834
|
+
"parameters": [],
|
|
2835
|
+
"references": {
|
|
2836
|
+
"Promise": {
|
|
2837
|
+
"location": "global"
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
"return": "Promise<void>"
|
|
2841
|
+
},
|
|
2842
|
+
"docs": {
|
|
2843
|
+
"text": "",
|
|
2844
|
+
"tags": []
|
|
2845
|
+
}
|
|
2846
|
+
},
|
|
2847
|
+
"setPopUpTitle": {
|
|
2848
|
+
"complexType": {
|
|
2849
|
+
"signature": "(title: string) => Promise<void>",
|
|
2850
|
+
"parameters": [{
|
|
2851
|
+
"tags": [],
|
|
2852
|
+
"text": ""
|
|
2853
|
+
}],
|
|
2854
|
+
"references": {
|
|
2855
|
+
"Promise": {
|
|
2856
|
+
"location": "global"
|
|
2857
|
+
}
|
|
2858
|
+
},
|
|
2859
|
+
"return": "Promise<void>"
|
|
2860
|
+
},
|
|
2861
|
+
"docs": {
|
|
2862
|
+
"text": "",
|
|
2863
|
+
"tags": []
|
|
2864
|
+
}
|
|
2865
|
+
},
|
|
2788
2866
|
"showScrimApp": {
|
|
2789
2867
|
"complexType": {
|
|
2790
2868
|
"signature": "(active: boolean) => Promise<void>",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
|
-
import { ApplicationContext, ElementIDUtils, FloatingManager, StringUtils, JSUtils } from '@sankhyalabs/core';
|
|
2
|
+
import { ApplicationContext, ElementIDUtils, FloatingManager, StringUtils, JSUtils, KeyboardManager } from '@sankhyalabs/core';
|
|
3
3
|
import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
|
|
4
4
|
import { PresentationMode } from '../../lib';
|
|
5
5
|
import { VIEW_MODE } from '../../lib/utils/constants';
|
|
@@ -271,29 +271,28 @@ export class SnkCrud {
|
|
|
271
271
|
;
|
|
272
272
|
}
|
|
273
273
|
async initKeyboardManager() {
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
277
|
-
const
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
element.setFocus();
|
|
286
|
-
return;
|
|
287
|
-
}
|
|
288
|
-
if (!isDocumentBody)
|
|
289
|
-
element.focus();
|
|
274
|
+
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
|
|
275
|
+
const dataUnit = this._dataUnit || await this._snkDataUnit.getDataUnit();
|
|
276
|
+
async function saveDataUnitHandlingFocus() {
|
|
277
|
+
const element = document.activeElement;
|
|
278
|
+
const isDocumentBody = (element == document.body);
|
|
279
|
+
if (!isDocumentBody)
|
|
280
|
+
element.blur();
|
|
281
|
+
await dataUnit.saveData();
|
|
282
|
+
if (!isDocumentBody && element.setFocus != undefined) {
|
|
283
|
+
element.setFocus();
|
|
284
|
+
return;
|
|
290
285
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
286
|
+
if (!isDocumentBody)
|
|
287
|
+
element.focus();
|
|
288
|
+
}
|
|
289
|
+
async function handleAddRecord() {
|
|
290
|
+
if (!dataUnit.hasNewRecord()) {
|
|
291
|
+
dataUnit.addRecord();
|
|
295
292
|
}
|
|
296
|
-
|
|
293
|
+
}
|
|
294
|
+
if (this._keyboardManager) {
|
|
295
|
+
this._keyboardManager
|
|
297
296
|
.bind("F6", this.toggleView.bind(this), { description: "Alterna entre modo formulário e grade.", element: this._element })
|
|
298
297
|
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
|
|
299
298
|
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "Salva os dados.", element: this._element })
|
|
@@ -318,18 +317,7 @@ export class SnkCrud {
|
|
|
318
317
|
}
|
|
319
318
|
async removeShortcuts() {
|
|
320
319
|
var _a;
|
|
321
|
-
|
|
322
|
-
if (keyboardManager) {
|
|
323
|
-
keyboardManager
|
|
324
|
-
.unbind("F6")
|
|
325
|
-
.unbind("F7")
|
|
326
|
-
.unbind("ctrl + \\")
|
|
327
|
-
.unbind("F8")
|
|
328
|
-
.unbind("F9")
|
|
329
|
-
.unbind("ctrl + F9")
|
|
330
|
-
.unbind("F5")
|
|
331
|
-
.unbind("Escape");
|
|
332
|
-
}
|
|
320
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
333
321
|
}
|
|
334
322
|
async toggleView() {
|
|
335
323
|
const currentView = await this._viewStack.getSelectedIndex();
|
|
@@ -40,25 +40,21 @@ export class CommonsExporter {
|
|
|
40
40
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
|
41
41
|
customFormatter
|
|
42
42
|
};
|
|
43
|
-
if (isUserInterfaceSEARCH) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
|
59
|
-
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
|
60
|
-
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
|
61
|
-
}
|
|
43
|
+
if (isUserInterfaceSEARCH && ((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
|
44
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
|
45
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
|
46
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
|
47
|
+
descriptionColumn = {
|
|
48
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
|
49
|
+
label: labelDescription,
|
|
50
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
|
51
|
+
type: DataType.TEXT,
|
|
52
|
+
userInterface: UserInterface.LONGTEXT,
|
|
53
|
+
descriptionFrom: fieldData.name
|
|
54
|
+
};
|
|
55
|
+
const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
|
|
56
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
|
57
|
+
descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
|
|
62
58
|
}
|
|
63
59
|
columnsMetadata.push(columnData);
|
|
64
60
|
if (descriptionColumn)
|