@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-50737.1 → 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 +7 -3
- 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 +27 -4
- 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/snk-filter-bar.js +5 -0
- 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 +30 -3
- 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 +5 -0
- 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 +33 -8
- 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 +7 -3
- 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 +27 -4
- 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-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-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/snk-filter-bar.d.ts +1 -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/snk-taskbar/snk-taskbar.d.ts +6 -0
- package/dist/types/components.d.ts +17 -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-6c9adfca.js +0 -1
- package/dist/sankhyablocks/p-85af23fe.entry.js +0 -1
- package/dist/sankhyablocks/p-85ba3d6b.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-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-d304659d.entry.js +0 -1
- package/dist/sankhyablocks/p-d5cb4b5a.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
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
|
2
|
-
import { ApplicationContext, ObjectUtils, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
|
2
|
+
import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType } from './index-0ece87a6.js';
|
|
5
5
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-8457af36.js';
|
|
6
|
-
import { D as DataFetcher } from './
|
|
7
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
|
8
|
-
import './
|
|
6
|
+
import { D as DataFetcher } from './form-config-fetcher-13cd3285.js';
|
|
7
|
+
import { S as SnkDataUnit } from './snk-data-unit-29eba11a.js';
|
|
8
|
+
import './pesquisa-fetcher-d785663b.js';
|
|
9
|
+
import './ISave-d8c8bc59.js';
|
|
10
|
+
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
9
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
|
-
import './
|
|
12
|
+
import './filter-item-type.enum-d45e026f.js';
|
|
13
|
+
import './PrintUtils-3e4ff0f5.js';
|
|
14
|
+
import './SnkMessageBuilder-0a4becdd.js';
|
|
15
|
+
import './RecordIDUtils-87d02110.js';
|
|
16
|
+
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
17
|
+
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
18
|
+
import './ResourceIDUtils-a114189a.js';
|
|
11
19
|
|
|
12
20
|
class ItemBuilder {
|
|
13
21
|
constructor(getMessage, selectedNumber) {
|
|
@@ -149,38 +157,6 @@ class ItemBuilder {
|
|
|
149
157
|
}
|
|
150
158
|
}
|
|
151
159
|
|
|
152
|
-
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
153
|
-
var t = {};
|
|
154
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
155
|
-
t[p] = s[p];
|
|
156
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
157
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
158
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
159
|
-
t[p[i]] = s[p[i]];
|
|
160
|
-
}
|
|
161
|
-
return t;
|
|
162
|
-
};
|
|
163
|
-
function fetchDataExporter(_a) {
|
|
164
|
-
var { methodName } = _a, requestBody = __rest(_a, ["methodName"]);
|
|
165
|
-
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
166
|
-
const serviceName = `${application.getModuleName()}@DataExporterSPBean.${methodName}`;
|
|
167
|
-
const payload = { serviceName, requestBody };
|
|
168
|
-
return new Promise((resolve, reject) => {
|
|
169
|
-
DataFetcher.get()
|
|
170
|
-
.callServiceBroker(serviceName, ObjectUtils.objectToString(payload))
|
|
171
|
-
.then(result => resolve(getFormatResponse$1(result)))
|
|
172
|
-
.catch(error => reject(error));
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
function getFormatResponse$1(result) {
|
|
176
|
-
var _a;
|
|
177
|
-
const response = (_a = result === null || result === void 0 ? void 0 : result.json) === null || _a === void 0 ? void 0 : _a.$;
|
|
178
|
-
if (response == undefined) {
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
return ObjectUtils.stringToObject(response);
|
|
182
|
-
}
|
|
183
|
-
|
|
184
160
|
function getMessage(application, key, params) {
|
|
185
161
|
var _a;
|
|
186
162
|
return (_a = application === null || application === void 0 ? void 0 : application.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params);
|
|
@@ -209,16 +185,165 @@ function getFormatResponse(result) {
|
|
|
209
185
|
return ObjectUtils.stringToObject(response);
|
|
210
186
|
}
|
|
211
187
|
|
|
188
|
+
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
189
|
+
var t = {};
|
|
190
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
191
|
+
t[p] = s[p];
|
|
192
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
193
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
194
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
195
|
+
t[p[i]] = s[p[i]];
|
|
196
|
+
}
|
|
197
|
+
return t;
|
|
198
|
+
};
|
|
199
|
+
class ServerSideExporterStrategy {
|
|
200
|
+
constructor(provider) {
|
|
201
|
+
this._provider = provider;
|
|
202
|
+
}
|
|
203
|
+
async getParams(resolveProps) {
|
|
204
|
+
var _a, _b, _c, _d, _e, _f;
|
|
205
|
+
const filters = (_b = (_a = this._provider).getFilters) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
206
|
+
const columns = await this._provider.getColumnsMetadata();
|
|
207
|
+
const sort = (_d = (_c = this._provider).getOrders) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
208
|
+
const resourceURI = (_f = (_e = this._provider).getResourceURI) === null || _f === void 0 ? void 0 : _f.call(_e);
|
|
209
|
+
const selectedIDs = this._provider.getSelectedIDs();
|
|
210
|
+
const option = resolveProps.exportOption;
|
|
211
|
+
const currentPageOptions = [
|
|
212
|
+
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
213
|
+
DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
214
|
+
];
|
|
215
|
+
delete resolveProps.exportOption;
|
|
216
|
+
let params = Object.assign({ filters,
|
|
217
|
+
columns,
|
|
218
|
+
sort,
|
|
219
|
+
resourceURI, selectedIDs: selectedIDs.slice(0, this._provider.getExportLimit()) }, resolveProps);
|
|
220
|
+
if (currentPageOptions.includes(option) || resolveProps.type == "page") {
|
|
221
|
+
const offset = this._provider.getOffset();
|
|
222
|
+
const limit = this._provider.getPageSize();
|
|
223
|
+
params = Object.assign(Object.assign({}, params), { offset,
|
|
224
|
+
limit, selectedIDs: [] });
|
|
225
|
+
}
|
|
226
|
+
else if (resolveProps.type == "all") {
|
|
227
|
+
params = Object.assign(Object.assign({}, params), { offset: 0, limit: this._provider.getExportLimit(), selectedIDs: [] });
|
|
228
|
+
}
|
|
229
|
+
return Promise.resolve(params);
|
|
230
|
+
}
|
|
231
|
+
async executeExport(resolveProps) {
|
|
232
|
+
const _a = await this.getParams(resolveProps), { methodName } = _a, requestBody = __rest(_a, ["methodName"]);
|
|
233
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
234
|
+
const serviceName = `${application.getModuleName()}@DataExporterSPBean.${methodName}`;
|
|
235
|
+
const payload = { serviceName, requestBody };
|
|
236
|
+
return new Promise((resolve, reject) => {
|
|
237
|
+
DataFetcher.get()
|
|
238
|
+
.callServiceBroker(serviceName, ObjectUtils.objectToString(payload))
|
|
239
|
+
.then(result => resolve(this.getFormatResponse(result)))
|
|
240
|
+
.catch(error => reject(error));
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
getFormatResponse(result) {
|
|
244
|
+
var _a;
|
|
245
|
+
const response = (_a = result === null || result === void 0 ? void 0 : result.json) === null || _a === void 0 ? void 0 : _a.$;
|
|
246
|
+
if (response == undefined) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
return ObjectUtils.stringToObject(response);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
class ClientSideExporterStrategy {
|
|
254
|
+
constructor(provider) {
|
|
255
|
+
this._provider = provider;
|
|
256
|
+
}
|
|
257
|
+
async executeExport(resolveProps) {
|
|
258
|
+
const { methodName, titleGrid } = resolveProps;
|
|
259
|
+
const records = await this._provider.getRecords();
|
|
260
|
+
const columns = await this._provider.getColumnsMetadata();
|
|
261
|
+
const [serviceName, processor] = this.getExecutor(methodName);
|
|
262
|
+
const payload = {
|
|
263
|
+
serviceName,
|
|
264
|
+
requestBody: {
|
|
265
|
+
grid: {
|
|
266
|
+
titleGrid,
|
|
267
|
+
columns: this.buildColumnsObject(columns),
|
|
268
|
+
rows: this.buildRowsObject(columns, records),
|
|
269
|
+
customOptions: { xlsxExtension: false }
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
};
|
|
273
|
+
return new Promise((resolve, reject) => {
|
|
274
|
+
DataFetcher.get()
|
|
275
|
+
.callServiceBroker(serviceName, payload)
|
|
276
|
+
.then(result => resolve(processor(result)))
|
|
277
|
+
.catch(error => reject(error));
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
getExecutor(methodName) {
|
|
281
|
+
if (methodName === "exportToPDF") {
|
|
282
|
+
return [
|
|
283
|
+
"GridPDFBuilderSP.buildPDFFromJson",
|
|
284
|
+
responseBody => ({
|
|
285
|
+
fileSessionKey: responseBody.chavePDF.valor,
|
|
286
|
+
canPrint: responseBody.permiteImprimir.valor === "S",
|
|
287
|
+
canExport: responseBody.permiteExportar.valor === "S",
|
|
288
|
+
canSendEmail: responseBody.canSendEmail.valor === "S",
|
|
289
|
+
useAppPrint: true
|
|
290
|
+
})
|
|
291
|
+
];
|
|
292
|
+
}
|
|
293
|
+
return [
|
|
294
|
+
"GridXLSBuilderSP.buildXLSFromJson",
|
|
295
|
+
responseBody => ({
|
|
296
|
+
fileSessionKey: responseBody.chaveXLS.valor,
|
|
297
|
+
canPrint: false,
|
|
298
|
+
canExport: false,
|
|
299
|
+
useAppPrint: false,
|
|
300
|
+
canSendEmail: false
|
|
301
|
+
})
|
|
302
|
+
];
|
|
303
|
+
}
|
|
304
|
+
buildColumnsObject(columns) {
|
|
305
|
+
return {
|
|
306
|
+
column: columns.map((column, index) => {
|
|
307
|
+
const { label, id, width, userInterface } = column;
|
|
308
|
+
return Object.assign({ index: index + 1, id,
|
|
309
|
+
label,
|
|
310
|
+
width, presentationType: "P" }, (TYPE_MAP[userInterface] || { type: "S", align: "left" }));
|
|
311
|
+
})
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
buildRowsObject(columns, records) {
|
|
315
|
+
return {
|
|
316
|
+
row: records.map(rawRecord => {
|
|
317
|
+
const record = {};
|
|
318
|
+
columns.forEach((column, index) => record["c" + (index + 1)] = { $: this.formatValue(rawRecord, column) });
|
|
319
|
+
return record;
|
|
320
|
+
})
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
formatValue(record, column) {
|
|
324
|
+
if (this._provider.formatValue != undefined) {
|
|
325
|
+
return this._provider.formatValue(record, column);
|
|
326
|
+
}
|
|
327
|
+
return record[column.id] || "";
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
const TYPE_MAP = {
|
|
331
|
+
[UserInterface.DATE]: { type: "D", align: "center" },
|
|
332
|
+
[UserInterface.DATETIME]: { type: "H", align: "center" },
|
|
333
|
+
[UserInterface.TIME]: { type: "I", align: "right" },
|
|
334
|
+
[UserInterface.ELAPSEDTIME]: { type: "I", align: "right" },
|
|
335
|
+
[UserInterface.DECIMALNUMBER]: { type: "F", align: "right" },
|
|
336
|
+
[UserInterface.INTEGERNUMBER]: { type: "I", align: "right" },
|
|
337
|
+
[UserInterface.SEARCH]: { type: "S", align: "right" }
|
|
338
|
+
};
|
|
339
|
+
|
|
212
340
|
const snkDataExporterCss = ".sc-snk-data-exporter-h{display:flex;width:fit-content;height:fit-content}.snk-data-exporter.sc-snk-data-exporter{display:flex;width:fit-content;height:fit-content}.snk-data-exporter__dropdown.sc-snk-data-exporter{display:none}.snk-data-exporter__dropdown--show.sc-snk-data-exporter{display:flex;flex-direction:column;position:fixed}.snk-data-exporter__dropdown.sc-snk-data-exporter>ez-dropdown.sc-snk-data-exporter{position:relative}";
|
|
213
341
|
|
|
214
|
-
const LIMIT_PER_EXPORT = 5000;
|
|
215
342
|
const SnkDataExporter = class {
|
|
216
343
|
constructor(hostRef) {
|
|
217
344
|
registerInstance(this, hostRef);
|
|
218
345
|
this._selectedNumber = 0;
|
|
219
346
|
this._customPrefix = "$custom$";
|
|
220
|
-
this._items = [];
|
|
221
|
-
this._showDropdown = false;
|
|
222
347
|
this._releasedToExport = [
|
|
223
348
|
DataExporterOption.EXPORT_TO_PDF,
|
|
224
349
|
DataExporterOption.EXPORT_TO_XLS,
|
|
@@ -228,6 +353,8 @@ const SnkDataExporter = class {
|
|
|
228
353
|
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
229
354
|
DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
230
355
|
];
|
|
356
|
+
this._items = [];
|
|
357
|
+
this._showDropdown = false;
|
|
231
358
|
this.provider = null;
|
|
232
359
|
this.messagesBuilder = undefined;
|
|
233
360
|
}
|
|
@@ -298,31 +425,7 @@ const SnkDataExporter = class {
|
|
|
298
425
|
if (this.provider == undefined || resolveProps == undefined || callbackResolver == undefined) {
|
|
299
426
|
return;
|
|
300
427
|
}
|
|
301
|
-
|
|
302
|
-
const columns = await this.provider.getColumnsMetadata();
|
|
303
|
-
const sort = this.provider.getOrders();
|
|
304
|
-
const resourceURI = this.provider.getResourceURI();
|
|
305
|
-
const selectedIDs = this.provider.getSelectedIDs();
|
|
306
|
-
const option = resolveProps.exportOption;
|
|
307
|
-
const currentPageOptions = [
|
|
308
|
-
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
309
|
-
DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
310
|
-
];
|
|
311
|
-
delete resolveProps.exportOption;
|
|
312
|
-
let params = Object.assign({ filters,
|
|
313
|
-
columns,
|
|
314
|
-
sort,
|
|
315
|
-
resourceURI, selectedIDs: selectedIDs.slice(0, LIMIT_PER_EXPORT) }, resolveProps);
|
|
316
|
-
if (currentPageOptions.includes(option) || resolveProps.type == "page") {
|
|
317
|
-
const offset = this.provider.getOffset();
|
|
318
|
-
const limit = this.provider.getLimit();
|
|
319
|
-
params = Object.assign(Object.assign({}, params), { offset,
|
|
320
|
-
limit, selectedIDs: [] });
|
|
321
|
-
}
|
|
322
|
-
else if (resolveProps.type == "all") {
|
|
323
|
-
params = Object.assign(Object.assign({}, params), { offset: 0, limit: LIMIT_PER_EXPORT, selectedIDs: [] });
|
|
324
|
-
}
|
|
325
|
-
fetchDataExporter(params)
|
|
428
|
+
this.getExporterStrategy().executeExport(resolveProps)
|
|
326
429
|
.then((result) => callbackResolver(result))
|
|
327
430
|
.catch((exception) => {
|
|
328
431
|
console.error(exception);
|
|
@@ -330,6 +433,9 @@ const SnkDataExporter = class {
|
|
|
330
433
|
ApplicationUtils.error(title || this.getMessage("snkDataExporter.message.exportError"), statusMessage || message || this.getMessage("snkDataExporter.message.unknownFailure"));
|
|
331
434
|
});
|
|
332
435
|
}
|
|
436
|
+
getExporterStrategy() {
|
|
437
|
+
return this.provider.getRecords == undefined ? new ServerSideExporterStrategy(this.provider) : new ClientSideExporterStrategy(this.provider);
|
|
438
|
+
}
|
|
333
439
|
getOptionKey(option) {
|
|
334
440
|
return Object.keys(DataExporterOption)
|
|
335
441
|
.find((key) => {
|
|
@@ -337,7 +443,7 @@ const SnkDataExporter = class {
|
|
|
337
443
|
});
|
|
338
444
|
}
|
|
339
445
|
dispatchExporter(option) {
|
|
340
|
-
var _a;
|
|
446
|
+
var _a, _b, _c;
|
|
341
447
|
const optionKey = this.getOptionKey(option);
|
|
342
448
|
const fileType = (_a = DataExporterType[optionKey]) !== null && _a !== void 0 ? _a : DataExporterType.EXPORT_TO_PDF;
|
|
343
449
|
const isDownload = DataExporterType[optionKey] === DataExporterType.EXPORT_TO_XLS;
|
|
@@ -346,7 +452,7 @@ const SnkDataExporter = class {
|
|
|
346
452
|
fileName: this._appLabel,
|
|
347
453
|
titleGrid: this._appLabel,
|
|
348
454
|
exportOption: option,
|
|
349
|
-
limit:
|
|
455
|
+
limit: (_c = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getExportLimit) === null || _c === void 0 ? void 0 : _c.call(_b)
|
|
350
456
|
};
|
|
351
457
|
this.resolveExporter(params, (response) => {
|
|
352
458
|
fileViewer(Object.assign(Object.assign({}, response), { fileType,
|
|
@@ -354,7 +460,7 @@ const SnkDataExporter = class {
|
|
|
354
460
|
});
|
|
355
461
|
}
|
|
356
462
|
async processExporter(evt) {
|
|
357
|
-
var _a, _b, _c, _d;
|
|
463
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
358
464
|
const item = evt === null || evt === void 0 ? void 0 : evt.detail;
|
|
359
465
|
const exportCurrentPageOptions = [DataExporterOption.EXPORT_PAGE_TO_PDF, DataExporterOption.EXPORT_PAGE_TO_XLS];
|
|
360
466
|
const isCustomReport = (_a = item === null || item === void 0 ? void 0 : item.id) === null || _a === void 0 ? void 0 : _a.includes(this._customPrefix);
|
|
@@ -362,18 +468,19 @@ const SnkDataExporter = class {
|
|
|
362
468
|
return;
|
|
363
469
|
const selectedRecords = (_b = this.provider) === null || _b === void 0 ? void 0 : _b.getSelectedIDs();
|
|
364
470
|
const totalRecords = (_c = this.provider) === null || _c === void 0 ? void 0 : _c.getTotalRecords();
|
|
365
|
-
const totalPerPage = (_d = this.provider) === null || _d === void 0 ? void 0 : _d.
|
|
471
|
+
const totalPerPage = (_e = (_d = this.provider) === null || _d === void 0 ? void 0 : _d.getPageSize) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
472
|
+
const exportLimit = (_g = (_f = this.provider) === null || _f === void 0 ? void 0 : _f.getExportLimit) === null || _g === void 0 ? void 0 : _g.call(_f);
|
|
366
473
|
let limitExceeded = false;
|
|
367
|
-
if ((exportCurrentPageOptions.includes(item === null || item === void 0 ? void 0 : item.id) && totalPerPage <=
|
|
474
|
+
if ((exportCurrentPageOptions.includes(item === null || item === void 0 ? void 0 : item.id) && totalPerPage <= exportLimit) || isCustomReport) {
|
|
368
475
|
limitExceeded = false;
|
|
369
476
|
}
|
|
370
477
|
else if (selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) {
|
|
371
|
-
limitExceeded = selectedRecords.length >
|
|
478
|
+
limitExceeded = selectedRecords.length > exportLimit;
|
|
372
479
|
}
|
|
373
|
-
else if (totalRecords >
|
|
480
|
+
else if (totalRecords > exportLimit)
|
|
374
481
|
limitExceeded = true;
|
|
375
482
|
if (limitExceeded) {
|
|
376
|
-
const formattedLimit =
|
|
483
|
+
const formattedLimit = exportLimit.toLocaleString('pt-BR', { minimumFractionDigits: 0 });
|
|
377
484
|
const limitModalMessages = {
|
|
378
485
|
title: this.getMessage("snkDataExporter.limitExceeded.title"),
|
|
379
486
|
description: `
|
|
@@ -398,7 +505,7 @@ const SnkDataExporter = class {
|
|
|
398
505
|
this._showDropdown = false;
|
|
399
506
|
return;
|
|
400
507
|
}
|
|
401
|
-
if (!this.
|
|
508
|
+
if (!this.getFilteredReleasedToExport().includes(item === null || item === void 0 ? void 0 : item.id)) {
|
|
402
509
|
return;
|
|
403
510
|
}
|
|
404
511
|
if (item.id === DataExporterOption.EXPORT_BY_EMAIL) {
|
|
@@ -409,9 +516,20 @@ const SnkDataExporter = class {
|
|
|
409
516
|
}
|
|
410
517
|
this._showDropdown = false;
|
|
411
518
|
}
|
|
519
|
+
getFilteredReleasedToExport() {
|
|
520
|
+
var _a, _b;
|
|
521
|
+
if (this.provider == undefined) {
|
|
522
|
+
return this._releasedToExport;
|
|
523
|
+
}
|
|
524
|
+
const hiddenOptions = (_b = (_a = this.provider).getHiddenOptions) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
525
|
+
if (hiddenOptions == undefined) {
|
|
526
|
+
return this._releasedToExport;
|
|
527
|
+
}
|
|
528
|
+
return this._releasedToExport.filter(option => !hiddenOptions.includes(option));
|
|
529
|
+
}
|
|
412
530
|
loadItems() {
|
|
413
531
|
const items = [];
|
|
414
|
-
this.
|
|
532
|
+
this.getFilteredReleasedToExport()
|
|
415
533
|
.forEach((option) => {
|
|
416
534
|
var _a;
|
|
417
535
|
(_a = this._itemBuilder) === null || _a === void 0 ? void 0 : _a.setExportOption(option, items);
|
|
@@ -419,8 +537,8 @@ const SnkDataExporter = class {
|
|
|
419
537
|
this.loadPersonalizedItems(items);
|
|
420
538
|
}
|
|
421
539
|
async loadPersonalizedItems(items) {
|
|
422
|
-
var _a;
|
|
423
|
-
const recordID = (_a = this.provider) === null || _a === void 0 ? void 0 : _a.getRecordID();
|
|
540
|
+
var _a, _b;
|
|
541
|
+
const recordID = (_b = (_a = this.provider) === null || _a === void 0 ? void 0 : _a.getRecordID) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
424
542
|
if (recordID == undefined) {
|
|
425
543
|
this._items = items;
|
|
426
544
|
return;
|
|
@@ -436,18 +554,18 @@ const SnkDataExporter = class {
|
|
|
436
554
|
this._items = items;
|
|
437
555
|
}
|
|
438
556
|
openPersonalizedReports(option) {
|
|
439
|
-
var _a;
|
|
557
|
+
var _a, _b;
|
|
440
558
|
const pkObject = [];
|
|
441
559
|
const appId = (option === null || option === void 0 ? void 0 : option.replace(this._customPrefix, "")) || "";
|
|
442
|
-
(_a = this.provider) === null || _a === void 0 ? void 0 : _a.getSelectedIDs().forEach(({ name, type, value }, index) => {
|
|
443
|
-
const fields =
|
|
560
|
+
(_b = (_a = this.provider) === null || _a === void 0 ? void 0 : _a.getSelectedIDs) === null || _b === void 0 ? void 0 : _b.call(_a).forEach(({ name, type, value }, index) => {
|
|
561
|
+
const fields = {};
|
|
444
562
|
fields['fields'] = [];
|
|
445
563
|
// Se for o primeiro elemento, adiciona essa primeira PK
|
|
446
564
|
if (index === 0) {
|
|
447
565
|
pkObject[`PK_${name}`] = { type: this.parseDataType(type), value };
|
|
448
566
|
pkObject['pks'] = [];
|
|
449
567
|
}
|
|
450
|
-
const dataFields = { nome: name
|
|
568
|
+
const dataFields = { nome: `PK_${name}`, tipo: this.parseDataType(type), valor: value };
|
|
451
569
|
fields['fields'].push(dataFields);
|
|
452
570
|
pkObject['pks'].push(fields);
|
|
453
571
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-a7d3d3f1.js';
|
|
2
|
-
import { Action, ObjectUtils,
|
|
2
|
+
import { Action, ObjectUtils, DataUnitAction, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-
|
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
|
5
|
+
import { g as getSelectedIDs } from './RecordIDUtils-87d02110.js';
|
|
5
6
|
|
|
6
7
|
const SnkDataUnit = class {
|
|
7
8
|
constructor(hostRef) {
|
|
@@ -124,43 +125,7 @@ const SnkDataUnit = class {
|
|
|
124
125
|
* @returns Retorna a lista de IDs dos registros selecionados.
|
|
125
126
|
*/
|
|
126
127
|
async getSelectedRecordsIDsInfo() {
|
|
127
|
-
|
|
128
|
-
const selectionInfo = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo();
|
|
129
|
-
if (selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isAllRecords()) {
|
|
130
|
-
return [];
|
|
131
|
-
}
|
|
132
|
-
const selectedRecordsIDsInfo = [];
|
|
133
|
-
const selectedRecords = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.records;
|
|
134
|
-
if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 0) {
|
|
135
|
-
selectedRecords.forEach(({ __record__id__ }) => {
|
|
136
|
-
if (!this.dataUnit.isNewRecord(__record__id__)) {
|
|
137
|
-
/*
|
|
138
|
-
Esse if foi necessário para tratar corretamente o ID
|
|
139
|
-
do record quando está sendo utilizado no modo standAlone
|
|
140
|
-
isso não faz a exportação da grid funcionar no modo standAlone
|
|
141
|
-
mas deixa de causar erro nas oprações de CRUD.
|
|
142
|
-
*/
|
|
143
|
-
if (!JSUtils.isBase64(__record__id__)) {
|
|
144
|
-
selectedRecordsIDsInfo.push({
|
|
145
|
-
name: "__record__id__",
|
|
146
|
-
type: DataType.TEXT,
|
|
147
|
-
value: __record__id__
|
|
148
|
-
});
|
|
149
|
-
return;
|
|
150
|
-
}
|
|
151
|
-
const revertBase64ToObject = JSON.parse(window.atob(__record__id__));
|
|
152
|
-
Object.entries(revertBase64ToObject).forEach(([name, value]) => {
|
|
153
|
-
var _a;
|
|
154
|
-
const metadataField = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(name);
|
|
155
|
-
if (metadataField == undefined) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
selectedRecordsIDsInfo.push(Object.assign({ name, type: metadataField.dataType }, value));
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return selectedRecordsIDsInfo;
|
|
128
|
+
return Promise.resolve(getSelectedIDs(this.dataUnit));
|
|
164
129
|
}
|
|
165
130
|
getCleanOnCopyFields() {
|
|
166
131
|
var _a;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-29eba11a.js';
|
|
2
2
|
import './index-a7d3d3f1.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
|
-
import './SnkMessageBuilder-
|
|
5
|
+
import './SnkMessageBuilder-0a4becdd.js';
|
|
6
|
+
import './RecordIDUtils-87d02110.js';
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-a7d3d3f1.js';
|
|
2
2
|
import { Action } from '@sankhyalabs/core';
|
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-7edda7eb.js';
|
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
|
-
import './
|
|
6
|
-
import './pesquisa-fetcher-
|
|
5
|
+
import './form-config-fetcher-13cd3285.js';
|
|
6
|
+
import './pesquisa-fetcher-d785663b.js';
|
|
7
7
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
|
8
8
|
import './ISave-d8c8bc59.js';
|
|
9
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
10
10
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
12
|
-
import './
|
|
13
|
-
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
|
12
|
+
import { T as TaskbarElement } from './taskbar-elements-ad766858.js';
|
|
14
13
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
|
16
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
|
17
|
-
import './ConfigStorage-
|
|
14
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-8fc16590.js';
|
|
15
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
|
16
|
+
import './ConfigStorage-cc3f3dd3.js';
|
|
18
17
|
import './PrintUtils-3e4ff0f5.js';
|
|
19
18
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
19
|
+
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
20
20
|
import './ResourceIDUtils-a114189a.js';
|
|
21
21
|
import './index-bdf75557.js';
|
|
22
22
|
import './field-search-efbe307f.js';
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
|
2
2
|
import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
|
|
4
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
|
4
|
+
import { C as ConfigStorage } from './ConfigStorage-cc3f3dd3.js';
|
|
5
5
|
import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
6
6
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
|
7
7
|
import { F as FilterOperand } from './index-ae591a44.js';
|
|
8
8
|
import { F as FilterNumberVariation } from './filterNumberVariation-8cee02ea.js';
|
|
9
9
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
10
10
|
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
|
|
11
|
-
import './form-config-fetcher-
|
|
12
|
-
import './DataFetcher-a650ae58.js';
|
|
11
|
+
import './form-config-fetcher-13cd3285.js';
|
|
13
12
|
import './PrintUtils-3e4ff0f5.js';
|
|
14
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
15
14
|
|
|
@@ -288,6 +287,11 @@ const SnkFilterBar = class {
|
|
|
288
287
|
this.personalizedFilterId = undefined;
|
|
289
288
|
}
|
|
290
289
|
observeFilterConfig(newValue, oldValue) {
|
|
290
|
+
if (ObjectUtils.equals(newValue, oldValue))
|
|
291
|
+
return;
|
|
292
|
+
this.handleFilterConfigsChanged(oldValue, newValue);
|
|
293
|
+
}
|
|
294
|
+
handleFilterConfigsChanged(oldValue, newValue) {
|
|
291
295
|
if (oldValue != undefined && newValue == undefined) {
|
|
292
296
|
this._loadingPending = true;
|
|
293
297
|
this._configUpdated = true;
|
|
@@ -2,10 +2,9 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
|
2
2
|
import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
|
4
4
|
import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
|
|
5
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
|
5
|
+
import { C as ConfigStorage } from './ConfigStorage-cc3f3dd3.js';
|
|
6
6
|
import { F as FilterType } from './filter-type.enum-a80c1b6b.js';
|
|
7
|
-
import './form-config-fetcher-
|
|
8
|
-
import './DataFetcher-a650ae58.js';
|
|
7
|
+
import './form-config-fetcher-13cd3285.js';
|
|
9
8
|
import './PrintUtils-3e4ff0f5.js';
|
|
10
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
10
|
|
|
@@ -3,9 +3,8 @@ import { S as Sortable } from './Sortable-83960219.js';
|
|
|
3
3
|
import { ObjectUtils, ElementIDUtils, ArrayUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
4
4
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
5
|
import { C as CONFIG_EVENTS, a as CONFIG_SORTABLE_EVENTS, T as TAB_NAMES, A as ACTION_CONFIG, D as DEFAULT_TYPE } from './constants-8457af36.js';
|
|
6
|
-
import {
|
|
6
|
+
import { a as UserConfigType } from './form-config-fetcher-13cd3285.js';
|
|
7
7
|
import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
8
|
-
import './DataFetcher-a650ae58.js';
|
|
9
8
|
import './PrintUtils-3e4ff0f5.js';
|
|
10
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
10
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-7edda7eb.js';
|
|
4
4
|
import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
|
|
5
|
-
import './ConfigStorage-
|
|
6
|
-
import './form-config-fetcher-
|
|
7
|
-
import './DataFetcher-a650ae58.js';
|
|
5
|
+
import './ConfigStorage-cc3f3dd3.js';
|
|
6
|
+
import './form-config-fetcher-13cd3285.js';
|
|
8
7
|
import './PrintUtils-3e4ff0f5.js';
|
|
9
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
9
|
import './filter-item-type.enum-d45e026f.js';
|