@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-81596.1 → 0.0.0-bugfix-dev-KB-83517.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-5fff8770.js → ClientSideExporterProvider-cc82b68a.js} +24 -20
- package/dist/cjs/{ConfigStorage-df09fb78.js → ConfigStorage-2235f35e.js} +2 -2
- package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-875371e9.js} +2 -14
- package/dist/cjs/{ISave-c76e2c51.js → ISave-62fbb1dd.js} +3 -27
- package/dist/cjs/{SnkFormConfigManager-45a8d7b7.js → SnkFormConfigManager-6637cd6b.js} +3 -3
- package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-abad589f.js} +1 -1
- package/dist/cjs/{constants-77c1b8bd.js → constants-241934b3.js} +0 -1
- package/dist/cjs/{dataunit-fetcher-4a5d491a.js → dataunit-fetcher-b95768e8.js} +6 -7
- package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-db332748.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 -10
- package/dist/cjs/snk-application.cjs.entry.js +12 -132
- package/dist/cjs/snk-attach.cjs.entry.js +6 -6
- package/dist/cjs/snk-config-options_3.cjs.entry.js +8 -10
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +6 -6
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-4b510d6e.js → snk-data-unit-33937ffe.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 +5 -18
- package/dist/cjs/snk-grid.cjs.entry.js +7 -7
- package/dist/cjs/{snk-guides-viewer-e8e5f7b4.js → snk-guides-viewer-0e4f3b1a.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 +8 -8
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +2 -5
- package/dist/collection/components/snk-application/snk-application.js +4 -85
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +19 -15
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +5 -18
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +3 -5
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +0 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +13 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +2 -14
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +5 -6
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +2 -26
- package/dist/collection/lib/utils/constants.js +0 -1
- package/dist/components/ContinuousInsertUtils.js +19 -15
- package/dist/components/DataFetcher.js +2 -14
- package/dist/components/ISave.js +2 -26
- package/dist/components/constants.js +0 -1
- package/dist/components/dataunit-fetcher.js +5 -6
- package/dist/components/snk-application2.js +6 -129
- package/dist/components/snk-config-options2.js +3 -5
- package/dist/components/snk-filter-search.js +5 -18
- package/dist/components/snk-grid-config2.js +0 -2
- package/dist/components/taskbar-actions-button2.js +2 -2
- package/dist/esm/{ClientSideExporterProvider-da9935ed.js → ClientSideExporterProvider-8191676b.js} +24 -20
- package/dist/esm/{ConfigStorage-71e6766f.js → ConfigStorage-9bd805d6.js} +2 -2
- package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-ecf5f903.js} +2 -14
- package/dist/esm/{ISave-5efafc97.js → ISave-7d546dce.js} +3 -27
- package/dist/esm/{SnkFormConfigManager-be490a33.js → SnkFormConfigManager-fbc6a9a8.js} +3 -3
- package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-07d33333.js} +1 -1
- package/dist/esm/{constants-7db1128a.js → constants-75abb876.js} +0 -1
- package/dist/esm/{dataunit-fetcher-1d02ecfc.js → dataunit-fetcher-ed6e65ef.js} +6 -7
- package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-ac17cff4.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 -10
- package/dist/esm/snk-application.entry.js +13 -133
- package/dist/esm/snk-attach.entry.js +6 -6
- package/dist/esm/snk-config-options_3.entry.js +8 -10
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +6 -6
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-7d0ce406.js → snk-data-unit-6258b8ae.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 +5 -18
- package/dist/esm/snk-grid.entry.js +7 -7
- package/dist/esm/{snk-guides-viewer-c44b3839.js → snk-guides-viewer-80a8709c.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 +8 -8
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/sankhyablocks/{p-601b252b.js → p-01512409.js} +1 -1
- package/dist/sankhyablocks/{p-3b190fb1.entry.js → p-02c6dc9f.entry.js} +1 -1
- package/dist/sankhyablocks/p-07afb345.entry.js +1 -0
- package/dist/sankhyablocks/{p-490b75b5.entry.js → p-0bcd4757.entry.js} +1 -1
- package/dist/sankhyablocks/p-108fee57.js +6 -0
- package/dist/sankhyablocks/{p-03b68a74.js → p-13f17dab.js} +1 -1
- package/dist/sankhyablocks/{p-9261d8a0.js → p-1d19a5b0.js} +1 -1
- package/dist/sankhyablocks/{p-c0eb761b.entry.js → p-23cd6abf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b2a2a83e.entry.js → p-2746d606.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3749dffb.entry.js → p-2953c481.entry.js} +1 -1
- package/dist/sankhyablocks/{p-165cde3b.entry.js → p-340e2447.entry.js} +1 -1
- package/dist/sankhyablocks/p-35fcf37e.js +1 -0
- package/dist/sankhyablocks/{p-90684a75.entry.js → p-3a36d4b3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-73285a8a.js → p-48729c8c.js} +1 -1
- package/dist/sankhyablocks/{p-d9fdb018.entry.js → p-513af002.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fbba7e3d.js → p-5a7e18f4.js} +1 -1
- package/dist/sankhyablocks/{p-60137b7a.entry.js → p-5fea0816.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a8be1d67.js → p-7e0a0aae.js} +1 -1
- package/dist/sankhyablocks/{p-ef6f0a1b.entry.js → p-950e3cbe.entry.js} +1 -1
- package/dist/sankhyablocks/p-9907cf67.entry.js +1 -0
- package/dist/sankhyablocks/{p-6e0a5314.js → p-abd9681c.js} +1 -1
- package/dist/sankhyablocks/p-c5acb7ba.entry.js +11 -0
- package/dist/sankhyablocks/{p-092078e3.entry.js → p-c7c6eab7.entry.js} +1 -1
- package/dist/sankhyablocks/p-c8622597.entry.js +1 -0
- package/dist/sankhyablocks/{p-ebdb9d89.js → p-cb9d725a.js} +1 -1
- package/dist/sankhyablocks/{p-92778d5a.js → p-d1f04e2c.js} +1 -1
- package/dist/sankhyablocks/{p-00796b12.entry.js → p-d2065bb4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-35f85998.entry.js → p-dc617b0c.entry.js} +1 -1
- package/dist/sankhyablocks/p-e5d8891d.entry.js +1 -0
- package/dist/sankhyablocks/{p-5ffa0493.entry.js → p-f467153c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-38e3ffda.entry.js → p-f861bfcb.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +2 -7
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +3 -5
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +0 -1
- package/dist/types/components.d.ts +0 -6
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -4
- package/dist/types/lib/utils/constants.d.ts +0 -1
- package/package.json +1 -1
- package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +0 -107
- package/dist/sankhyablocks/p-4ad638be.js +0 -1
- package/dist/sankhyablocks/p-5503e89f.entry.js +0 -1
- package/dist/sankhyablocks/p-5cc206bb.entry.js +0 -1
- package/dist/sankhyablocks/p-6293ded9.entry.js +0 -11
- package/dist/sankhyablocks/p-6dd38d7b.js +0 -6
- package/dist/sankhyablocks/p-893b9483.entry.js +0 -1
- package/dist/sankhyablocks/p-b6200d32.entry.js +0 -1
- package/dist/types/components/snk-application/search-strategy/exec-prepared-search-plus.d.ts +0 -5
|
@@ -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-0e4f3b1a.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-6637cd6b.js');
|
|
9
|
+
require('./ConfigStorage-2235f35e.js');
|
|
10
|
+
require('./form-config-fetcher-db332748.js');
|
|
11
|
+
require('./DataFetcher-875371e9.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-241934b3.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-62fbb1dd.js');
|
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
23
|
-
require('./dataunit-fetcher-
|
|
23
|
+
require('./dataunit-fetcher-b95768e8.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-2235f35e.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-db332748.js');
|
|
14
|
+
require('./DataFetcher-875371e9.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-62fbb1dd.js');
|
|
8
|
+
require('./DataFetcher-875371e9.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-b95768e8.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
15
|
-
require('./constants-
|
|
14
|
+
require('./form-config-fetcher-db332748.js');
|
|
15
|
+
require('./constants-241934b3.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-241934b3.js');
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./ISave-
|
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
|
10
|
+
require('./DataFetcher-875371e9.js');
|
|
11
|
+
require('./ISave-62fbb1dd.js');
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-cc82b68a.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-b95768e8.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
18
|
+
const formConfigFetcher = require('./form-config-fetcher-db332748.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-2235f35e.js');
|
|
21
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-6637cd6b.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');
|
|
@@ -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-241934b3.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
|
|
1
|
+
import { WarningException, WaitingChangeException, ErrorException, ObjectUtils } from "@sankhyalabs/core";
|
|
2
2
|
export class SnkErrorHandler {
|
|
3
3
|
constructor(app) {
|
|
4
4
|
this._app = app;
|
|
@@ -33,10 +33,7 @@ export class SnkErrorHandler {
|
|
|
33
33
|
if (exception.errorCode) {
|
|
34
34
|
exception.message += this.buildErrorCodeHTML(exception.errorCode);
|
|
35
35
|
}
|
|
36
|
-
if (exception instanceof
|
|
37
|
-
console.warn("SilentException ignorada", exception);
|
|
38
|
-
}
|
|
39
|
-
else if (exception instanceof WaitingChangeException) {
|
|
36
|
+
if (exception instanceof WaitingChangeException) {
|
|
40
37
|
this._app.alert(exception.title, exception.message);
|
|
41
38
|
}
|
|
42
39
|
else if (exception instanceof WarningException) {
|
|
@@ -18,7 +18,6 @@ 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";
|
|
22
21
|
import { LayoutFormConfig } from "../../lib/configs/LayoutFormConfig";
|
|
23
22
|
import { FormConfigFetcher } from "../../lib";
|
|
24
23
|
/**
|
|
@@ -656,7 +655,7 @@ export class SnkApplication {
|
|
|
656
655
|
searchOptions,
|
|
657
656
|
allowsNonAnalytic
|
|
658
657
|
};
|
|
659
|
-
return
|
|
658
|
+
return this.executePreparedSearch(mode, argument, options);
|
|
660
659
|
}
|
|
661
660
|
}
|
|
662
661
|
filterInvalidFields(resp, item, mdByName) {
|
|
@@ -700,23 +699,13 @@ export class SnkApplication {
|
|
|
700
699
|
};
|
|
701
700
|
return exibitionItem;
|
|
702
701
|
}
|
|
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
|
-
}
|
|
710
702
|
/**
|
|
711
703
|
* Obtém as opções em componentes de pesquisa
|
|
712
704
|
* Ex.: snk-config-options
|
|
713
705
|
*/
|
|
714
706
|
async executePreparedSearch(mode, argument, options) {
|
|
715
707
|
const mdByName = {};
|
|
716
|
-
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic
|
|
717
|
-
if (useSearchPlus) {
|
|
718
|
-
return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
|
|
719
|
-
}
|
|
708
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
|
|
720
709
|
if (mode === "ADVANCED") {
|
|
721
710
|
return new Promise((accept, reject) => {
|
|
722
711
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
@@ -866,10 +855,10 @@ export class SnkApplication {
|
|
|
866
855
|
});
|
|
867
856
|
}
|
|
868
857
|
}
|
|
869
|
-
|
|
858
|
+
clearPopUpTitle() {
|
|
870
859
|
this._popUp.ezTitle = "";
|
|
871
860
|
}
|
|
872
|
-
|
|
861
|
+
setPopUpTitle(title) {
|
|
873
862
|
this._popUp.ezTitle = title;
|
|
874
863
|
}
|
|
875
864
|
async pkChangeListener() {
|
|
@@ -1039,9 +1028,6 @@ export class SnkApplication {
|
|
|
1039
1028
|
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
|
1040
1029
|
return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
|
|
1041
1030
|
});
|
|
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
|
-
});
|
|
1045
1031
|
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
|
1046
1032
|
this.registerPkChangeListener();
|
|
1047
1033
|
ErrorTracking.init();
|
|
@@ -2540,38 +2526,6 @@ export class SnkApplication {
|
|
|
2540
2526
|
"tags": []
|
|
2541
2527
|
}
|
|
2542
2528
|
},
|
|
2543
|
-
"executePreparedSearchPlus": {
|
|
2544
|
-
"complexType": {
|
|
2545
|
-
"signature": "(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>",
|
|
2546
|
-
"parameters": [{
|
|
2547
|
-
"tags": [],
|
|
2548
|
-
"text": ""
|
|
2549
|
-
}, {
|
|
2550
|
-
"tags": [],
|
|
2551
|
-
"text": ""
|
|
2552
|
-
}, {
|
|
2553
|
-
"tags": [],
|
|
2554
|
-
"text": ""
|
|
2555
|
-
}],
|
|
2556
|
-
"references": {
|
|
2557
|
-
"Promise": {
|
|
2558
|
-
"location": "global"
|
|
2559
|
-
},
|
|
2560
|
-
"IOption": {
|
|
2561
|
-
"location": "import",
|
|
2562
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
|
|
2563
|
-
},
|
|
2564
|
-
"Array": {
|
|
2565
|
-
"location": "global"
|
|
2566
|
-
}
|
|
2567
|
-
},
|
|
2568
|
-
"return": "Promise<IOption | IOption[]>"
|
|
2569
|
-
},
|
|
2570
|
-
"docs": {
|
|
2571
|
-
"text": "Realiza a pesquisa de registros\nEx.: snk-config-options",
|
|
2572
|
-
"tags": []
|
|
2573
|
-
}
|
|
2574
|
-
},
|
|
2575
2529
|
"executePreparedSearch": {
|
|
2576
2530
|
"complexType": {
|
|
2577
2531
|
"signature": "(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>",
|
|
@@ -2831,41 +2785,6 @@ export class SnkApplication {
|
|
|
2831
2785
|
}]
|
|
2832
2786
|
}
|
|
2833
2787
|
},
|
|
2834
|
-
"clearPopUpTitle": {
|
|
2835
|
-
"complexType": {
|
|
2836
|
-
"signature": "() => Promise<void>",
|
|
2837
|
-
"parameters": [],
|
|
2838
|
-
"references": {
|
|
2839
|
-
"Promise": {
|
|
2840
|
-
"location": "global"
|
|
2841
|
-
}
|
|
2842
|
-
},
|
|
2843
|
-
"return": "Promise<void>"
|
|
2844
|
-
},
|
|
2845
|
-
"docs": {
|
|
2846
|
-
"text": "",
|
|
2847
|
-
"tags": []
|
|
2848
|
-
}
|
|
2849
|
-
},
|
|
2850
|
-
"setPopUpTitle": {
|
|
2851
|
-
"complexType": {
|
|
2852
|
-
"signature": "(title: string) => Promise<void>",
|
|
2853
|
-
"parameters": [{
|
|
2854
|
-
"tags": [],
|
|
2855
|
-
"text": ""
|
|
2856
|
-
}],
|
|
2857
|
-
"references": {
|
|
2858
|
-
"Promise": {
|
|
2859
|
-
"location": "global"
|
|
2860
|
-
}
|
|
2861
|
-
},
|
|
2862
|
-
"return": "Promise<void>"
|
|
2863
|
-
},
|
|
2864
|
-
"docs": {
|
|
2865
|
-
"text": "",
|
|
2866
|
-
"tags": []
|
|
2867
|
-
}
|
|
2868
|
-
},
|
|
2869
2788
|
"showScrimApp": {
|
|
2870
2789
|
"complexType": {
|
|
2871
2790
|
"signature": "(active: boolean) => Promise<void>",
|
|
@@ -40,21 +40,25 @@ 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
|
-
|
|
43
|
+
if (isUserInterfaceSEARCH) {
|
|
44
|
+
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
|
45
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
|
46
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
|
47
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
|
48
|
+
descriptionColumn = {
|
|
49
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
|
50
|
+
label: labelDescription,
|
|
51
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
|
52
|
+
type: DataType.TEXT,
|
|
53
|
+
userInterface: UserInterface.LONGTEXT,
|
|
54
|
+
descriptionFrom: fieldData.name
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
if (descriptionColumn) {
|
|
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
|
+
}
|
|
58
62
|
}
|
|
59
63
|
columnsMetadata.push(columnData);
|
|
60
64
|
if (descriptionColumn)
|
|
@@ -3,20 +3,14 @@ import { h } from '@stencil/core';
|
|
|
3
3
|
import FilterItemType from '../filter-item-type.enum';
|
|
4
4
|
export class SnkFilterSearch {
|
|
5
5
|
constructor() {
|
|
6
|
-
this._isSearchPlus = false;
|
|
7
6
|
this.config = undefined;
|
|
8
7
|
this.value = undefined;
|
|
9
8
|
}
|
|
10
9
|
/**
|
|
11
10
|
* Emitido quando acontece a alteração de valor do componente snk-filter-search
|
|
12
11
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.value = await this._searchInput.getValueAsync();
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
this.value = this._searchInput.value;
|
|
19
|
-
}
|
|
12
|
+
ezChangeListener(_evt) {
|
|
13
|
+
this.value = this._searchInput.value;
|
|
20
14
|
this.valueChanged.emit(this.value);
|
|
21
15
|
}
|
|
22
16
|
componentDidLoad() {
|
|
@@ -24,11 +18,10 @@ export class SnkFilterSearch {
|
|
|
24
18
|
ElementIDUtils.addIDInfo(this._element, 'filterContentEditor');
|
|
25
19
|
}
|
|
26
20
|
}
|
|
27
|
-
doSearch(mode, argument
|
|
21
|
+
doSearch(mode, argument) {
|
|
28
22
|
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
29
|
-
const loader = isSearchPlus ? application.executePreparedSearchPlus : application.executePreparedSearch;
|
|
30
23
|
return new Promise((resolve, reject) => {
|
|
31
|
-
|
|
24
|
+
application.executePreparedSearch(mode, argument, this.config.props.searchContext)
|
|
32
25
|
.then(result => {
|
|
33
26
|
resolve(result);
|
|
34
27
|
}).catch(reason => {
|
|
@@ -42,17 +35,11 @@ export class SnkFilterSearch {
|
|
|
42
35
|
async show() {
|
|
43
36
|
this._searchInput.setFocus();
|
|
44
37
|
}
|
|
45
|
-
getInputItem() {
|
|
46
|
-
var _a;
|
|
47
|
-
this._isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
|
|
48
|
-
const TagName = this._isSearchPlus ? "ez-search-plus" : "ez-search";
|
|
49
|
-
return (h(TagName, { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, this._isSearchPlus) }));
|
|
50
|
-
}
|
|
51
38
|
render() {
|
|
52
39
|
if (!this.config || this.config.type !== FilterItemType.SEARCH) {
|
|
53
40
|
return undefined;
|
|
54
41
|
}
|
|
55
|
-
return this.
|
|
42
|
+
return (h("ez-search", { id: this.config.id, suppressEmptyOption: true, value: this.config.value, label: this.config.label, ref: ref => this._searchInput = ref, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument) }));
|
|
56
43
|
}
|
|
57
44
|
static get is() { return "snk-filter-search"; }
|
|
58
45
|
static get properties() {
|
|
@@ -136,13 +136,11 @@ export class SnkConfigOptions {
|
|
|
136
136
|
return h(TagName, Object.assign({ value: value, enabled: enabled, label: label, "data-field-name": name, key: name, onEzChange: (evt) => this.onChange(evt === null || evt === void 0 ? void 0 : evt.detail) }, (this.getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode))));
|
|
137
137
|
}
|
|
138
138
|
getConditionalAttributes(userInterface, required, options, precision, prettyPrecision, mode) {
|
|
139
|
-
const useSearchPlus = userInterface == UserInterface.SEARCHPLUS;
|
|
140
139
|
switch (userInterface) {
|
|
141
140
|
case UserInterface.SEARCH:
|
|
142
|
-
case UserInterface.SEARCHPLUS:
|
|
143
141
|
return {
|
|
144
142
|
suppressEmptyOption: required,
|
|
145
|
-
optionLoader: (searchArgument) => this.onSearch(searchArgument
|
|
143
|
+
optionLoader: (searchArgument) => this.onSearch(searchArgument)
|
|
146
144
|
};
|
|
147
145
|
case UserInterface.OPTIONSELECTOR:
|
|
148
146
|
return {
|
|
@@ -175,9 +173,9 @@ export class SnkConfigOptions {
|
|
|
175
173
|
this.fieldConfig.defaultValue.value = this.getValidatedValue(fieldValue);
|
|
176
174
|
this.configOptionsChanged.emit(this.fieldConfig);
|
|
177
175
|
}
|
|
178
|
-
onSearch(searchArgument
|
|
176
|
+
onSearch(searchArgument) {
|
|
179
177
|
if (this._application != undefined && this.fieldConfig != undefined) {
|
|
180
|
-
return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit
|
|
178
|
+
return this._application.executeSearch(searchArgument, this.fieldConfig.name, this.dataUnit);
|
|
181
179
|
}
|
|
182
180
|
}
|
|
183
181
|
buildField(descriptor, config) {
|
|
@@ -258,7 +258,6 @@ export class SnkGridConfig {
|
|
|
258
258
|
delete _newColumnConfig.ascending;
|
|
259
259
|
_newColumnConfig.orderIndex = 0;
|
|
260
260
|
}
|
|
261
|
-
_newColumnConfig.configVersion = SnkGridConfig.CURRENT_CONFIG_VERSION;
|
|
262
261
|
_newColumnConfigList.push(_newColumnConfig);
|
|
263
262
|
}
|
|
264
263
|
});
|
|
@@ -640,4 +639,3 @@ export class SnkGridConfig {
|
|
|
640
639
|
}
|
|
641
640
|
static get elementRef() { return "_element"; }
|
|
642
641
|
}
|
|
643
|
-
SnkGridConfig.CURRENT_CONFIG_VERSION = 1;
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
:host {
|
|
2
|
+
/*@doc Define a largura mínima do componente.*/
|
|
3
|
+
--ez-dropdown--min-width: 150px;
|
|
2
4
|
/*private*/
|
|
3
5
|
display: flex;
|
|
4
6
|
width: fit-content;
|
|
5
7
|
height: fit-content;
|
|
6
8
|
}
|
|
9
|
+
|
|
10
|
+
.ez-dropdown-container {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.ez-dropdown--sticky {
|
|
16
|
+
position: absolute;
|
|
17
|
+
display: block;
|
|
18
|
+
min-width: var(--ez-dropdown--min-width);
|
|
19
|
+
}
|
|
@@ -118,7 +118,7 @@ export class TaskbarActionsButton {
|
|
|
118
118
|
this.taskbarActionsButtonDisconnected.emit();
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, null, h("div", { class: `${this.canShowDropdown() ? ' ez-elevation--16' : ''}` }, h("ez-button", { title: this.title, mode: 'icon', iconName: 'dots-vertical', size: 'small', enabled: this.enabled, onClick: () => this.controlDropdown() }), this.canShowDropdown() && h("ez-dropdown", { items: this.loadItems(), onEzClick: (evt) => this.onSelectAction(evt.detail), onEzOutsideClick: () => this._showDropdown = false, itemBuilder: (item, level) => this.dropdownItemBuilder(item, level) }))));
|
|
121
|
+
return (h(Host, null, h("div", { class: `${this.canShowDropdown() ? ' ez-elevation--16' : ''} ez-dropdown-container` }, h("ez-button", { title: this.title, mode: 'icon', iconName: 'dots-vertical', size: 'small', enabled: this.enabled, onClick: () => this.controlDropdown() }), this.canShowDropdown() && h("ez-dropdown", { class: `ez-dropdown--sticky`, items: this.loadItems(), onEzClick: (evt) => this.onSelectAction(evt.detail), onEzOutsideClick: () => this._showDropdown = false, itemBuilder: (item, level) => this.dropdownItemBuilder(item, level) }))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "taskbar-actions-button"; }
|
|
124
124
|
static get encapsulation() { return "scoped"; }
|
|
@@ -61,13 +61,7 @@ export class DataFetcher {
|
|
|
61
61
|
if (error.length > 0) { //As informações do erro vem no primeiro indice de um array
|
|
62
62
|
const errorInfo = error[POSITION_ERROR_INFO];
|
|
63
63
|
const errorMessage = (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message) ? errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.message : "Não há mensagem de erro";
|
|
64
|
-
|
|
65
|
-
No HTML5, todos os erros de Troubleshooting são considerados alerta,
|
|
66
|
-
pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
|
|
67
|
-
Motivo: - errorLevel é uma string "ERROR" por exemplo
|
|
68
|
-
- ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
|
|
69
|
-
*/
|
|
70
|
-
const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? "WARNING" : "ERROR";
|
|
64
|
+
const errorLevel = ((_a = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _a === void 0 ? void 0 : _a.level) ? errorInfo.extensions.level : "ERROR";
|
|
71
65
|
const errorCode = ((_b = errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.extensions) === null || _b === void 0 ? void 0 : _b.code) ? errorInfo.extensions.code : "";
|
|
72
66
|
switch (errorLevel) {
|
|
73
67
|
case "WARNING":
|
|
@@ -89,13 +83,7 @@ export class DataFetcher {
|
|
|
89
83
|
let tsErrorCode, tsErrorLevel;
|
|
90
84
|
if (tsError) {
|
|
91
85
|
tsErrorCode = tsError.tsErrorCode;
|
|
92
|
-
|
|
93
|
-
No HTML5, todos os erros de Troubleshooting são considerados alerta,
|
|
94
|
-
pois a comparação errorLevel == ServiceProxyConstants.LEVEL.ERROR sempre é falsa
|
|
95
|
-
Motivo: - errorLevel é uma string "ERROR" por exemplo
|
|
96
|
-
- ServiceProxyConstants.LEVEL.ERROR é um numero 1, por exemplo
|
|
97
|
-
*/
|
|
98
|
-
tsErrorLevel = "WARNING";
|
|
86
|
+
tsErrorLevel = tsError.tsErrorLevel;
|
|
99
87
|
}
|
|
100
88
|
if (tsErrorLevel === "WARNING") {
|
|
101
89
|
return new WarningException(title, statusMessage, tsErrorCode);
|
package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js
CHANGED
|
@@ -227,12 +227,11 @@ export class DatasetStrategy {
|
|
|
227
227
|
return InMemoryLoader.getConvertedValue(descriptor, strValue);
|
|
228
228
|
}
|
|
229
229
|
getSearchDescriptionField(descriptor) {
|
|
230
|
-
if (
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return mergedFrom != undefined ? `${mergedFrom}.${ENTITYNAME}.${DESCRIPTIONFIELD}` : `${ENTITYNAME}.${DESCRIPTIONFIELD}`;
|
|
230
|
+
if (descriptor.userInterface === UserInterface.SEARCH) {
|
|
231
|
+
const { ENTITYNAME, mergedFrom, DESCRIPTIONFIELD } = descriptor.properties;
|
|
232
|
+
if (!StringUtils.isEmpty(DESCRIPTIONFIELD)) {
|
|
233
|
+
return mergedFrom != undefined ? `${mergedFrom}.${ENTITYNAME}.${DESCRIPTIONFIELD}` : `${ENTITYNAME}.${DESCRIPTIONFIELD}`;
|
|
234
|
+
}
|
|
236
235
|
}
|
|
237
236
|
return undefined;
|
|
238
237
|
}
|
|
@@ -50,20 +50,7 @@ export class PesquisaFetcher {
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
|
|
54
|
-
return `${entityName}__${codeValue}`;
|
|
55
|
-
}
|
|
56
|
-
async loadByCode(entityName, codeValue, criteria, searchOptions) {
|
|
57
|
-
const cacheKey = this.buildDescriptionCacheKey(entityName, codeValue);
|
|
58
|
-
const cachedValue = PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey];
|
|
59
|
-
if (cachedValue) {
|
|
60
|
-
return Promise.resolve(cachedValue);
|
|
61
|
-
}
|
|
62
|
-
const result = await this.loadAdvancedSearch(entityName, undefined, criteria, searchOptions, codeValue);
|
|
63
|
-
PesquisaFetcher.DESCRIPTIONS_BY_CODE[cacheKey] = result;
|
|
64
|
-
return result;
|
|
65
|
-
}
|
|
66
|
-
loadAdvancedSearch(entityName, argument, criteria, searchOptions, codeValue) {
|
|
53
|
+
loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
|
|
67
54
|
var _a, _b, _c, _d, _e;
|
|
68
55
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
|
69
56
|
const values = {
|
|
@@ -107,22 +94,12 @@ export class PesquisaFetcher {
|
|
|
107
94
|
const reqBody = {
|
|
108
95
|
"serviceName": serviceName,
|
|
109
96
|
"requestBody": {
|
|
110
|
-
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
|
97
|
+
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
|
111
98
|
"clientEventList": {
|
|
112
99
|
"clientEvent": []
|
|
113
100
|
}
|
|
114
101
|
}
|
|
115
102
|
};
|
|
116
|
-
if (codeValue == undefined) {
|
|
117
|
-
reqBody.requestBody.criteria.query = {
|
|
118
|
-
"$": argument
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
reqBody.requestBody.criteria.pk = {
|
|
123
|
-
"$": codeValue
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
103
|
const urlOptions = {
|
|
127
104
|
urlParams: {
|
|
128
105
|
"quietMode": true
|
|
@@ -232,7 +209,6 @@ export class PesquisaFetcher {
|
|
|
232
209
|
return params;
|
|
233
210
|
}
|
|
234
211
|
}
|
|
235
|
-
PesquisaFetcher.DESCRIPTIONS_BY_CODE = {};
|
|
236
212
|
function buildLoadGridConfigPayload(entityName) {
|
|
237
213
|
return {
|
|
238
214
|
'gridConfig': {
|
|
@@ -298,21 +298,25 @@ class CommonsExporter {
|
|
|
298
298
|
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
|
|
299
299
|
customFormatter
|
|
300
300
|
};
|
|
301
|
-
if (isUserInterfaceSEARCH
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
301
|
+
if (isUserInterfaceSEARCH) {
|
|
302
|
+
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
|
303
|
+
const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
|
|
304
|
+
const mergedFrom = fieldData.properties.mergedFrom;
|
|
305
|
+
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
|
306
|
+
descriptionColumn = {
|
|
307
|
+
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
|
308
|
+
label: labelDescription,
|
|
309
|
+
width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
|
|
310
|
+
type: DataType.TEXT,
|
|
311
|
+
userInterface: UserInterface$1.LONGTEXT,
|
|
312
|
+
descriptionFrom: fieldData.name
|
|
313
|
+
};
|
|
314
|
+
}
|
|
315
|
+
if (descriptionColumn) {
|
|
316
|
+
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);
|
|
317
|
+
columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
|
|
318
|
+
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) });
|
|
319
|
+
}
|
|
316
320
|
}
|
|
317
321
|
columnsMetadata.push(columnData);
|
|
318
322
|
if (descriptionColumn)
|