@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-50122.0 → 0.0.0-bugfix-dev-KB-53946.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-8d4e9d53.js → ConfigStorage-085c7117.js} +11 -12
- package/dist/cjs/{SnkMultiSelectionListDataSource-1438f8f2.js → IExporterProvider-f50b6846.js} +52 -5
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-33995e92.js → SnkFormConfigManager-8986431f.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-141aa18d.js → SnkMessageBuilder-66aa2557.js} +4 -0
- package/dist/cjs/{auth-fetcher-bb8e9ae4.js → auth-fetcher-eddaf17f.js} +1 -1
- package/dist/cjs/{DataFetcher-99f0f6ed.js → form-config-fetcher-cdd644a7.js} +251 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-94f6b316.js → pesquisa-fetcher-90b801fb.js} +79 -55
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +9 -9
- package/dist/cjs/snk-application.cjs.entry.js +24 -24
- package/dist/cjs/snk-attach.cjs.entry.js +73 -52
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +199 -81
- package/dist/cjs/{snk-data-unit-6026a9f7.js → snk-data-unit-abd2113f.js} +3 -38
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-filter-bar.cjs.entry.js +23 -7
- package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -1
- package/dist/cjs/snk-filter-item.cjs.entry.js +10 -6
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +1 -2
- package/dist/cjs/snk-form.cjs.entry.js +3 -4
- package/dist/cjs/snk-grid.cjs.entry.js +66 -102
- package/dist/cjs/{snk-guides-viewer-25721856.js → snk-guides-viewer-e4c8ee66.js} +4 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +144 -36
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -2
- package/dist/cjs/{taskbar-elements-3ecd1278.js → taskbar-elements-d9392685.js} +2 -2
- package/dist/collection/components/snk-attach/snk-attach.js +39 -24
- package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +1 -1
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +29 -22
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +90 -0
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +68 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +48 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +1 -0
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +53 -0
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +55 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +37 -47
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +88 -0
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +38 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +3 -42
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +22 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +2 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +20 -3
- package/dist/collection/components/snk-grid/snk-grid.js +3 -94
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +5 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +126 -14
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +2 -1
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +10 -41
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +33 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +4 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +10 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +1 -0
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
- package/dist/components/ConfigStorage.js +1 -2
- package/dist/components/{field-search.js → IExporterProvider.js} +52 -7
- package/dist/components/ISave.js +42 -0
- package/dist/components/SnkMessageBuilder.js +4 -0
- package/dist/components/dataunit-fetcher.js +61 -44
- package/dist/components/form-config-fetcher.js +7022 -3
- package/dist/components/index2.js +198 -33
- package/dist/components/snk-actions-button2.js +3 -12
- package/dist/components/snk-application2.js +1 -1
- package/dist/components/snk-attach2.js +64 -44
- package/dist/components/snk-crud.js +3 -4
- package/dist/components/snk-data-exporter2.js +194 -81
- package/dist/components/snk-data-unit2.js +41 -39
- package/dist/components/snk-detail-view2.js +4 -5
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +21 -4
- package/dist/components/snk-filter-detail2.js +5 -1
- package/dist/components/snk-filter-item2.js +11 -6
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-grid2.js +63 -100
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +133 -23
- package/dist/components/snk-taskbar2.js +6 -5
- package/dist/esm/{ConfigStorage-6e241cd7.js → ConfigStorage-cc3f3dd3.js} +1 -2
- package/dist/esm/{SnkMultiSelectionListDataSource-aad5d4ff.js → IExporterProvider-9e6e0071.js} +52 -6
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-7a4e678f.js → SnkFormConfigManager-7edda7eb.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-9747ddd2.js → SnkMessageBuilder-0a4becdd.js} +4 -0
- package/dist/esm/{auth-fetcher-8ec448b0.js → auth-fetcher-11dd9cae.js} +1 -1
- package/dist/esm/{DataFetcher-a650ae58.js → form-config-fetcher-13cd3285.js} +250 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-f05a12ca.js → pesquisa-fetcher-d785663b.js} +61 -44
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +4 -4
- package/dist/esm/snk-application.entry.js +6 -6
- package/dist/esm/snk-attach.entry.js +65 -44
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-data-exporter.entry.js +199 -81
- package/dist/esm/{snk-data-unit-4c343635.js → snk-data-unit-29eba11a.js} +4 -39
- package/dist/esm/snk-data-unit.entry.js +3 -2
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-filter-bar.entry.js +23 -7
- package/dist/esm/snk-filter-detail.entry.js +4 -1
- package/dist/esm/snk-filter-item.entry.js +10 -6
- package/dist/esm/snk-filter-modal-item.entry.js +2 -3
- package/dist/esm/snk-form-config.entry.js +1 -2
- package/dist/esm/snk-form.entry.js +3 -4
- package/dist/esm/snk-grid.entry.js +64 -100
- package/dist/esm/{snk-guides-viewer-b94752f2.js → snk-guides-viewer-8fc16590.js} +4 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +2 -3
- package/dist/esm/snk-simple-crud.entry.js +132 -24
- package/dist/esm/snk-taskbar.entry.js +3 -2
- package/dist/esm/{taskbar-elements-2473c8ac.js → taskbar-elements-ad766858.js} +2 -2
- package/dist/sankhyablocks/p-07825198.js +1 -0
- package/dist/sankhyablocks/p-0ba97458.js +65 -0
- package/dist/sankhyablocks/p-1650f66b.entry.js +1 -0
- package/dist/sankhyablocks/p-1d1aa052.js +1 -0
- package/dist/sankhyablocks/p-1d9d07b4.entry.js +1 -0
- package/dist/sankhyablocks/p-250149af.entry.js +1 -0
- package/dist/sankhyablocks/p-2cfa05b0.entry.js +1 -0
- package/dist/sankhyablocks/{p-400097f2.entry.js → p-2daa70f9.entry.js} +3 -3
- package/dist/sankhyablocks/p-32556aa6.js +1 -0
- package/dist/sankhyablocks/p-33a6728e.js +26 -0
- package/dist/sankhyablocks/p-54a5d52a.entry.js +1 -0
- package/dist/sankhyablocks/p-5b6c4f46.entry.js +1 -0
- package/dist/sankhyablocks/p-5d9456dc.js +1 -0
- package/dist/sankhyablocks/{p-0624f62d.js → p-8a4c4b54.js} +6 -6
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/{p-125bb902.js → p-99b51d06.js} +1 -1
- package/dist/sankhyablocks/p-9c283890.entry.js +1 -0
- package/dist/sankhyablocks/p-9ee96756.entry.js +1 -0
- package/dist/sankhyablocks/p-a4c94582.entry.js +1 -0
- package/dist/sankhyablocks/p-c2e3a71c.entry.js +1 -0
- package/dist/sankhyablocks/p-c2f3ebf3.entry.js +1 -0
- package/dist/sankhyablocks/p-ce37e3d3.entry.js +1 -0
- package/dist/sankhyablocks/p-cfb98f51.entry.js +1 -0
- package/dist/sankhyablocks/{p-efeca7ba.js → p-d24c9dc6.js} +1 -1
- package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
- package/dist/sankhyablocks/p-edd9dd1c.entry.js +1 -0
- package/dist/sankhyablocks/p-f51af6dd.entry.js +1 -0
- package/dist/sankhyablocks/p-fa84e72f.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +2 -1
- package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +10 -1
- package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +5 -4
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +13 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +11 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +21 -4
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +5 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +3 -1
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +77 -0
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +6 -2
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +3 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +0 -3
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +17 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +33 -0
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +0 -2
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/form-config-fetcher-d73f4449.js +0 -256
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/DataFetcher.js +0 -7023
- package/dist/components/index3.js +0 -199
- package/dist/esm/form-config-fetcher-765b8498.js +0 -253
- package/dist/sankhyablocks/p-004c356e.js +0 -26
- package/dist/sankhyablocks/p-0bba5c9f.entry.js +0 -1
- package/dist/sankhyablocks/p-1048bd26.entry.js +0 -1
- package/dist/sankhyablocks/p-20b46647.entry.js +0 -1
- package/dist/sankhyablocks/p-24ed6ad6.entry.js +0 -1
- package/dist/sankhyablocks/p-2936303b.js +0 -1
- package/dist/sankhyablocks/p-2d919e32.entry.js +0 -1
- package/dist/sankhyablocks/p-6c9adfca.js +0 -1
- package/dist/sankhyablocks/p-85ba3d6b.entry.js +0 -1
- package/dist/sankhyablocks/p-86801b08.entry.js +0 -1
- package/dist/sankhyablocks/p-88b29791.js +0 -1
- package/dist/sankhyablocks/p-9a5d1b39.js +0 -1
- package/dist/sankhyablocks/p-9e8618ec.entry.js +0 -1
- package/dist/sankhyablocks/p-a043314f.entry.js +0 -1
- package/dist/sankhyablocks/p-a1642e7c.entry.js +0 -1
- package/dist/sankhyablocks/p-ac77949b.entry.js +0 -1
- package/dist/sankhyablocks/p-b10b9934.entry.js +0 -1
- package/dist/sankhyablocks/p-b47c2963.entry.js +0 -1
- package/dist/sankhyablocks/p-be75153c.js +0 -1
- package/dist/sankhyablocks/p-bf39bdb8.entry.js +0 -1
- package/dist/sankhyablocks/p-d5cb4b5a.entry.js +0 -1
- package/dist/sankhyablocks/p-d6317851.entry.js +0 -1
- package/dist/sankhyablocks/p-d78d4062.js +0 -65
- package/dist/sankhyablocks/p-e7dbe53a.entry.js +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
- /package/dist/sankhyablocks/{p-ae4fc9a9.js → p-61dd89eb.js} +0 -0
|
@@ -22,6 +22,7 @@ const SnkFilterItem = class {
|
|
|
22
22
|
this.detailIsVisible = undefined;
|
|
23
23
|
this.config = undefined;
|
|
24
24
|
this.getMessage = undefined;
|
|
25
|
+
this.showChips = true;
|
|
25
26
|
}
|
|
26
27
|
observeDetailIsVisible(value) {
|
|
27
28
|
this.visibleChanged.emit(value);
|
|
@@ -53,19 +54,22 @@ const SnkFilterItem = class {
|
|
|
53
54
|
autoClose: true,
|
|
54
55
|
innerClickTest: this.innerClickCheck,
|
|
55
56
|
backClickListener: () => this.onDetailCloseCallback(),
|
|
56
|
-
left: this.
|
|
57
|
-
top: this.
|
|
57
|
+
left: this.getOffsetLeft(),
|
|
58
|
+
top: this.getOffsetTop(),
|
|
58
59
|
useOverlay: true,
|
|
59
60
|
overlayClassName: 'ez-scrim ez-scrim--light',
|
|
60
61
|
isFixed: true
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
+
getOffsetLeft() {
|
|
64
65
|
const padding = getComputedStyle(this._filterItemElement).getPropertyValue("padding-left");
|
|
65
66
|
const rect = this._filterItemElement.getBoundingClientRect();
|
|
66
|
-
|
|
67
|
+
// Width baseado no conteudo do snk-filter-detail. Nesse momento ele retorna 0px pois ainda não foi criado em tela.
|
|
68
|
+
const filterDetailWidth = 430;
|
|
69
|
+
const adjustRightPosition = filterDetailWidth - (document.body.clientWidth - rect.left);
|
|
70
|
+
return `calc(${rect.x}px + ${padding} - ${adjustRightPosition > 0 ? adjustRightPosition : 0}px)`;
|
|
67
71
|
}
|
|
68
|
-
|
|
72
|
+
getOffsetTop() {
|
|
69
73
|
const rect = this._filterItemElement.getBoundingClientRect();
|
|
70
74
|
return (rect.y + rect.height) + "px";
|
|
71
75
|
}
|
|
@@ -297,7 +301,7 @@ const SnkFilterItem = class {
|
|
|
297
301
|
}
|
|
298
302
|
render() {
|
|
299
303
|
const leftIcon = this.getLeftIconName();
|
|
300
|
-
return (index.h(index.Host, null, index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon
|
|
304
|
+
return (index.h(index.Host, null, this.showChips && (index.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon && (index.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), index.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" }))), index.h("section", { class: "ez-margin-top--small sc-snk-filter-bar snk-filter__popover-container", ref: elem => this._popoverContainer = elem }, index.h("snk-filter-detail", { config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", ref: elem => this._popover = elem, key: this.config.id, "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
|
|
301
305
|
}
|
|
302
306
|
get _filterItemElement() { return index.getElement(this); }
|
|
303
307
|
static get watchers() { return {
|
|
@@ -6,10 +6,9 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
+
const ConfigStorage = require('./ConfigStorage-085c7117.js');
|
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
|
11
|
-
require('./form-config-fetcher-
|
|
12
|
-
require('./DataFetcher-99f0f6ed.js');
|
|
11
|
+
require('./form-config-fetcher-cdd644a7.js');
|
|
13
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
14
|
|
|
@@ -7,9 +7,8 @@ const Sortable = require('./Sortable-fb1c4cbb.js');
|
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
10
|
+
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
12
|
-
require('./DataFetcher-99f0f6ed.js');
|
|
13
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
14
|
|
|
@@ -4,11 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-8986431f.js');
|
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
9
|
-
require('./ConfigStorage-
|
|
10
|
-
require('./form-config-fetcher-
|
|
11
|
-
require('./DataFetcher-99f0f6ed.js');
|
|
9
|
+
require('./ConfigStorage-085c7117.js');
|
|
10
|
+
require('./form-config-fetcher-cdd644a7.js');
|
|
12
11
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -4,25 +4,80 @@ 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
|
|
8
|
-
const
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-8d4e9d53.js');
|
|
7
|
+
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-085c7117.js');
|
|
10
9
|
const index$1 = require('./index-0922807b.js');
|
|
11
10
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
12
11
|
const index$2 = require('./index-102ba62d.js');
|
|
13
|
-
const
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-f50b6846.js');
|
|
14
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
15
|
-
require('./
|
|
16
|
-
require('./pesquisa-fetcher-
|
|
14
|
+
require('./form-config-fetcher-cdd644a7.js');
|
|
15
|
+
require('./pesquisa-fetcher-90b801fb.js');
|
|
17
16
|
require('./ISave-e91b70a7.js');
|
|
18
17
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
18
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
19
19
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
20
|
-
require('./
|
|
20
|
+
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
21
21
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
24
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
24
25
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
25
26
|
|
|
27
|
+
class ServerSideExporterProvider extends IExporterProvider.CommonsExporter {
|
|
28
|
+
getFilters() {
|
|
29
|
+
var _a;
|
|
30
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
|
31
|
+
}
|
|
32
|
+
getOrders() {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSort();
|
|
35
|
+
}
|
|
36
|
+
getResourceURI() {
|
|
37
|
+
var _a;
|
|
38
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.name;
|
|
39
|
+
}
|
|
40
|
+
getSelectedNumber() {
|
|
41
|
+
return this.dataUnit.getSelectionInfo().length;
|
|
42
|
+
}
|
|
43
|
+
getTotalRecords() {
|
|
44
|
+
var _a, _b, _c;
|
|
45
|
+
const { total } = ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
|
|
46
|
+
return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
|
|
47
|
+
}
|
|
48
|
+
getSelectedIDs() {
|
|
49
|
+
return RecordIDUtils.getSelectedIDs(this.dataUnit);
|
|
50
|
+
}
|
|
51
|
+
getOffset() {
|
|
52
|
+
return this.getExporterOffset(this.getPaginationInfo());
|
|
53
|
+
}
|
|
54
|
+
getPageSize() {
|
|
55
|
+
var _a;
|
|
56
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.pageSize;
|
|
57
|
+
}
|
|
58
|
+
getExportLimit() {
|
|
59
|
+
return 5000;
|
|
60
|
+
}
|
|
61
|
+
getRecordID() {
|
|
62
|
+
var _a, _b, _c;
|
|
63
|
+
return (_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
|
|
64
|
+
}
|
|
65
|
+
getPaginationInfo() {
|
|
66
|
+
var _a;
|
|
67
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo();
|
|
68
|
+
}
|
|
69
|
+
getExporterOffset(paginationInfo) {
|
|
70
|
+
if (paginationInfo == undefined) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const offset = paginationInfo.firstRecord;
|
|
74
|
+
if (offset > 0) {
|
|
75
|
+
return (offset - 1);
|
|
76
|
+
}
|
|
77
|
+
return offset;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
26
81
|
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}";
|
|
27
82
|
|
|
28
83
|
const SnkGrid = class {
|
|
@@ -54,7 +109,7 @@ const SnkGrid = class {
|
|
|
54
109
|
this._gridConfig = undefined;
|
|
55
110
|
this._popUpGridConfig = false;
|
|
56
111
|
this._showSnkFilterBar = true;
|
|
57
|
-
this.columnFilterDataSource = new
|
|
112
|
+
this.columnFilterDataSource = new IExporterProvider.SnkMultiSelectionListDataSource();
|
|
58
113
|
this.configName = undefined;
|
|
59
114
|
this.filterBarTitle = undefined;
|
|
60
115
|
this.resourceID = undefined;
|
|
@@ -142,7 +197,7 @@ const SnkGrid = class {
|
|
|
142
197
|
}
|
|
143
198
|
setGridConfig(config) {
|
|
144
199
|
this._gridConfig = config;
|
|
145
|
-
|
|
200
|
+
IExporterProvider.CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
|
146
201
|
}
|
|
147
202
|
loadConfig() {
|
|
148
203
|
ConfigStorage.ConfigStorage.loadGridConfig(this.configName, this.resourceID)
|
|
@@ -173,99 +228,8 @@ const SnkGrid = class {
|
|
|
173
228
|
});
|
|
174
229
|
evt.stopPropagation();
|
|
175
230
|
}
|
|
176
|
-
buildColumnsMetadata(gridColumns) {
|
|
177
|
-
const columnsMetadata = [];
|
|
178
|
-
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach((column) => {
|
|
179
|
-
var _a, _b;
|
|
180
|
-
/**
|
|
181
|
-
* TODO: Analisar e criar uma melhor forma de tratar essa validação do "RECDESP".
|
|
182
|
-
*/
|
|
183
|
-
if (column.hidden && column.name !== "RECDESP") {
|
|
184
|
-
return;
|
|
185
|
-
}
|
|
186
|
-
const fieldData = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
|
|
187
|
-
const columnData = {
|
|
188
|
-
label: column.label,
|
|
189
|
-
id: column.name,
|
|
190
|
-
width: column.width,
|
|
191
|
-
type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
|
|
192
|
-
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface
|
|
193
|
-
};
|
|
194
|
-
columnsMetadata.push(columnData);
|
|
195
|
-
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
|
196
|
-
const mergedFrom = fieldData.properties.mergedFrom;
|
|
197
|
-
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
|
198
|
-
const descriptionColumn = {
|
|
199
|
-
label: fieldData.properties.DESCRIPTIONENTITY,
|
|
200
|
-
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
|
201
|
-
width: 200,
|
|
202
|
-
type: core.DataType.TEXT,
|
|
203
|
-
userInterface: UnitMetadata.UserInterface.LONGTEXT
|
|
204
|
-
};
|
|
205
|
-
columnsMetadata.push(descriptionColumn);
|
|
206
|
-
}
|
|
207
|
-
});
|
|
208
|
-
return columnsMetadata || [];
|
|
209
|
-
}
|
|
210
|
-
getPaginationInfo() {
|
|
211
|
-
var _a;
|
|
212
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo();
|
|
213
|
-
}
|
|
214
|
-
getExporterOffset(paginationInfo) {
|
|
215
|
-
if (paginationInfo == undefined) {
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
const offset = paginationInfo.firstRecord;
|
|
219
|
-
if (offset > 0) {
|
|
220
|
-
return (offset - 1);
|
|
221
|
-
}
|
|
222
|
-
return offset;
|
|
223
|
-
}
|
|
224
231
|
async dataExporterProviderStore() {
|
|
225
|
-
|
|
226
|
-
const selectedIDs = await ((_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecordsIDsInfo());
|
|
227
|
-
const dataExporterProvider = {
|
|
228
|
-
getFilters: () => {
|
|
229
|
-
var _a;
|
|
230
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
|
231
|
-
},
|
|
232
|
-
getColumnsMetadata: async () => {
|
|
233
|
-
var _a;
|
|
234
|
-
const columnsState = await ((_a = this._grid) === null || _a === void 0 ? void 0 : _a.getColumnsState());
|
|
235
|
-
return this.buildColumnsMetadata(columnsState);
|
|
236
|
-
},
|
|
237
|
-
getOrders: () => {
|
|
238
|
-
var _a;
|
|
239
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSort();
|
|
240
|
-
},
|
|
241
|
-
getResourceURI: () => {
|
|
242
|
-
var _a;
|
|
243
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.name;
|
|
244
|
-
},
|
|
245
|
-
getSelectedNumber: () => {
|
|
246
|
-
var _a, _b;
|
|
247
|
-
return (_b = (_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) === null || _b === void 0 ? void 0 : _b.length;
|
|
248
|
-
},
|
|
249
|
-
getTotalRecords: () => {
|
|
250
|
-
var _a, _b, _c;
|
|
251
|
-
const { total } = ((_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
|
|
252
|
-
return total !== null && total !== void 0 ? total : (_c = (_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
|
|
253
|
-
},
|
|
254
|
-
getSelectedIDs: () => {
|
|
255
|
-
return selectedIDs || [];
|
|
256
|
-
},
|
|
257
|
-
getOffset: () => {
|
|
258
|
-
return this.getExporterOffset(this.getPaginationInfo());
|
|
259
|
-
},
|
|
260
|
-
getLimit: () => {
|
|
261
|
-
var _a;
|
|
262
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.pageSize;
|
|
263
|
-
},
|
|
264
|
-
getRecordID: () => {
|
|
265
|
-
var _a, _b, _c;
|
|
266
|
-
return (_c = (_b = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
|
|
267
|
-
}
|
|
268
|
-
};
|
|
232
|
+
const dataExporterProvider = new ServerSideExporterProvider(this._dataUnit, this._grid);
|
|
269
233
|
index$2.store.set("exporterProviders", Object.assign(Object.assign({}, index$2.store.get("exporterProviders")), { [this.configName]: dataExporterProvider }));
|
|
270
234
|
}
|
|
271
235
|
addElementID() {
|
|
@@ -273,7 +237,7 @@ const SnkGrid = class {
|
|
|
273
237
|
core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
274
238
|
}
|
|
275
239
|
finshLoading() {
|
|
276
|
-
|
|
240
|
+
IExporterProvider.CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
|
277
241
|
this.addElementID();
|
|
278
242
|
if (this.columnFilterDataSource != undefined) {
|
|
279
243
|
this.columnFilterDataSource.setApplication(this._application);
|
|
@@ -2,19 +2,18 @@
|
|
|
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-8986431f.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
|
8
|
+
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
require('./form-config-fetcher-cdd644a7.js');
|
|
11
|
+
require('./pesquisa-fetcher-90b801fb.js');
|
|
12
12
|
const index$1 = require('./index-0922807b.js');
|
|
13
13
|
require('./ISave-e91b70a7.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-d73f4449.js');
|
|
18
17
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
19
18
|
|
|
20
19
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-medium);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-medium)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
@@ -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-e4c8ee66.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-99f0f6ed.js');
|
|
8
|
+
require('./SnkFormConfigManager-8986431f.js');
|
|
9
|
+
require('./ConfigStorage-085c7117.js');
|
|
10
|
+
require('./form-config-fetcher-cdd644a7.js');
|
|
12
11
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
14
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
16
15
|
require('./field-search-f56aa7d6.js');
|
|
17
|
-
require('./taskbar-elements-
|
|
16
|
+
require('./taskbar-elements-d9392685.js');
|
|
18
17
|
require('./index-0922807b.js');
|
|
19
18
|
require('./index-102ba62d.js');
|
|
20
19
|
require('./constants-35ddd366.js');
|
|
21
|
-
require('./pesquisa-fetcher-
|
|
20
|
+
require('./pesquisa-fetcher-90b801fb.js');
|
|
22
21
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
23
22
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
23
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
24
24
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
25
25
|
require('./ISave-e91b70a7.js');
|
|
26
26
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
@@ -5,13 +5,12 @@ 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-085c7117.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-99f0f6ed.js');
|
|
13
|
+
require('./form-config-fetcher-cdd644a7.js');
|
|
15
14
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
16
|
|