@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-53946.1 → 0.0.0-bugfix-dev-KB-53946.2
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/{IExporterProvider-f50b6846.js → IExporterProvider-195ad53d.js} +1 -1
- package/dist/cjs/{pesquisa-fetcher-90b801fb.js → pesquisa-fetcher-0c2e5913.js} +3 -13
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-attach.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid.cjs.entry.js +2 -2
- package/dist/cjs/{snk-guides-viewer-e4c8ee66.js → snk-guides-viewer-7061ca14.js} +1 -1
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +2 -2
- package/dist/cjs/snk-simple-crud.cjs.entry.js +2 -2
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +2 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +3 -13
- package/dist/components/dataunit-fetcher.js +4 -14
- package/dist/esm/{IExporterProvider-9e6e0071.js → IExporterProvider-abf571cf.js} +1 -1
- package/dist/esm/{pesquisa-fetcher-d785663b.js → pesquisa-fetcher-6e15945b.js} +4 -14
- package/dist/esm/snk-actions-button_4.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-attach.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +2 -2
- package/dist/esm/snk-grid.entry.js +2 -2
- package/dist/esm/{snk-guides-viewer-8fc16590.js → snk-guides-viewer-8029363d.js} +1 -1
- package/dist/esm/snk-guides-viewer.entry.js +2 -2
- package/dist/esm/snk-simple-crud.entry.js +2 -2
- package/dist/sankhyablocks/{p-f51af6dd.entry.js → p-0df62c04.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5b6c4f46.entry.js → p-31a82214.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2cfa05b0.entry.js → p-31c92889.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2e3a71c.entry.js → p-50b8697b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9c283890.entry.js → p-5ffcfbb5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ce37e3d3.entry.js → p-98297a52.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5d9456dc.js → p-b76b0ed3.js} +1 -1
- package/dist/sankhyablocks/{p-250149af.entry.js → p-c629f714.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1650f66b.entry.js → p-cb76d738.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2daa70f9.entry.js → p-cdd6f62a.entry.js} +1 -1
- package/dist/sankhyablocks/p-edfc9393.js +65 -0
- package/dist/sankhyablocks/{p-1d1aa052.js → p-f23f6dcb.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/package.json +1 -1
- package/dist/sankhyablocks/p-0ba97458.js +0 -65
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
4
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
4
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-0c2e5913.js');
|
|
5
5
|
const core = require('@sankhyalabs/core');
|
|
6
6
|
require('./index-0922807b.js');
|
|
7
7
|
require('./ISave-e91b70a7.js');
|
|
@@ -115,17 +115,7 @@ class PreloadManager {
|
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
static getSortingFunction(dataUnit, sorting) {
|
|
118
|
-
|
|
119
|
-
return undefined;
|
|
120
|
-
}
|
|
121
|
-
return (recordA, recordB) => {
|
|
122
|
-
for (const sort of sorting) {
|
|
123
|
-
const result = core.FieldComparator.compare(dataUnit.getField(sort.field), recordA, recordB, sort.mode === core.SortMode.ASC);
|
|
124
|
-
if (result != 0) {
|
|
125
|
-
return result;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
};
|
|
118
|
+
return SortingUtils__default['default'].getSortingFunction(dataUnit, sorting);
|
|
129
119
|
}
|
|
130
120
|
static async getDistinct(dataUnit, fieldName) {
|
|
131
121
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
@@ -216,7 +206,7 @@ class PreloadManager {
|
|
|
216
206
|
const columnFilters = utils.ColumnFilterManager.getColumnFilters(request.filters, "");
|
|
217
207
|
const { limit, offset, sort } = request;
|
|
218
208
|
PreloadManager.getRepository(dataUnit)
|
|
219
|
-
.load(utils.ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())),
|
|
209
|
+
.load(utils.ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())), PreloadManager.getSortingFunction(dataUnit, sort), offset, limit)
|
|
220
210
|
.then(loadResult => {
|
|
221
211
|
const stillLoading = PreloadManager._loadingStatus.get(dataUnit.name);
|
|
222
212
|
const { count, result: records } = loadResult;
|
|
@@ -255,7 +245,7 @@ function applySorting(records, dataUnit, sorting) {
|
|
|
255
245
|
if (sorting == undefined || sorting.length == 0) {
|
|
256
246
|
return records;
|
|
257
247
|
}
|
|
258
|
-
const sortingFunction =
|
|
248
|
+
const sortingFunction = PreloadManager.getSortingFunction(dataUnit, sorting);
|
|
259
249
|
if (sortingFunction == undefined) {
|
|
260
250
|
return records;
|
|
261
251
|
}
|
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
8
8
|
const ParamType = require('./ParamType-90b440a0.js');
|
|
9
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./pesquisa-fetcher-0c2e5913.js');
|
|
10
10
|
require('./index-0922807b.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -8,7 +8,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const ConfigStorage = require('./ConfigStorage-085c7117.js');
|
|
9
9
|
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
10
10
|
const authFetcher = require('./auth-fetcher-eddaf17f.js');
|
|
11
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
11
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-0c2e5913.js');
|
|
12
12
|
const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
14
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
8
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
8
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-0c2e5913.js');
|
|
9
9
|
require('./index-0922807b.js');
|
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
8
8
|
require('./form-config-fetcher-cdd644a7.js');
|
|
9
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./pesquisa-fetcher-0c2e5913.js');
|
|
10
10
|
const index$1 = require('./index-0922807b.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -9,7 +9,7 @@ const index = require('./index-0922807b.js');
|
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
10
|
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
11
11
|
const snkDataUnit = require('./snk-data-unit-abd2113f.js');
|
|
12
|
-
require('./pesquisa-fetcher-
|
|
12
|
+
require('./pesquisa-fetcher-0c2e5913.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');
|
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const SnkFormConfigManager = require('./SnkFormConfigManager-8986431f.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
9
|
require('./form-config-fetcher-cdd644a7.js');
|
|
10
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
require('./pesquisa-fetcher-0c2e5913.js');
|
|
11
11
|
const index$1 = require('./index-0922807b.js');
|
|
12
12
|
require('./ISave-e91b70a7.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -15,7 +15,7 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
17
17
|
const constants = require('./constants-35ddd366.js');
|
|
18
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
18
|
+
const snkGuidesViewer = require('./snk-guides-viewer-7061ca14.js');
|
|
19
19
|
const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
|
|
20
20
|
require('./ConfigStorage-085c7117.js');
|
|
21
21
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -9,10 +9,10 @@ const ConfigStorage = require('./ConfigStorage-085c7117.js');
|
|
|
9
9
|
const index$1 = require('./index-0922807b.js');
|
|
10
10
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const IExporterProvider = require('./IExporterProvider-
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-195ad53d.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
14
|
require('./form-config-fetcher-cdd644a7.js');
|
|
15
|
-
require('./pesquisa-fetcher-
|
|
15
|
+
require('./pesquisa-fetcher-0c2e5913.js');
|
|
16
16
|
require('./ISave-e91b70a7.js');
|
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -8,7 +8,7 @@ const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
10
|
require('./form-config-fetcher-cdd644a7.js');
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
11
|
+
require('./pesquisa-fetcher-0c2e5913.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');
|
|
@@ -2,7 +2,7 @@
|
|
|
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-7061ca14.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('./SnkFormConfigManager-8986431f.js');
|
|
@@ -17,7 +17,7 @@ require('./taskbar-elements-d9392685.js');
|
|
|
17
17
|
require('./index-0922807b.js');
|
|
18
18
|
require('./index-102ba62d.js');
|
|
19
19
|
require('./constants-35ddd366.js');
|
|
20
|
-
require('./pesquisa-fetcher-
|
|
20
|
+
require('./pesquisa-fetcher-0c2e5913.js');
|
|
21
21
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
23
23
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -8,8 +8,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const constants = require('./constants-35ddd366.js');
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
10
10
|
const formConfigFetcher = require('./form-config-fetcher-cdd644a7.js');
|
|
11
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
12
|
-
const IExporterProvider = require('./IExporterProvider-
|
|
11
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-0c2e5913.js');
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-195ad53d.js');
|
|
13
13
|
const index = require('./index-0922807b.js');
|
|
14
14
|
require('./ISave-e91b70a7.js');
|
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SortingUtils from '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
2
1
|
import { ColumnFilterManager } from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
2
|
+
import PreloadManager from '../http/data-fetcher/fetchers/data-unit/cache/PreloadManager';
|
|
3
3
|
export function applyFilter(records, dataUnit, filters) {
|
|
4
4
|
const columnFilters = ColumnFilterManager.getColumnFilters(filters, "");
|
|
5
5
|
if (!(columnFilters === null || columnFilters === void 0 ? void 0 : columnFilters.size)) {
|
|
@@ -15,7 +15,7 @@ export function applySorting(records, dataUnit, sorting) {
|
|
|
15
15
|
if (sorting == undefined || sorting.length == 0) {
|
|
16
16
|
return records;
|
|
17
17
|
}
|
|
18
|
-
const sortingFunction =
|
|
18
|
+
const sortingFunction = PreloadManager.getSortingFunction(dataUnit, sorting);
|
|
19
19
|
if (sortingFunction == undefined) {
|
|
20
20
|
return records;
|
|
21
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataUnit
|
|
1
|
+
import { DataUnit } from "@sankhyalabs/core";
|
|
2
2
|
import { ArrayRepository } from "./ArrayRepository";
|
|
3
3
|
import { ColumnFilterManager } from "@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";
|
|
4
4
|
import SortingUtils from "@sankhyalabs/core/dist/utils/SortingUtils";
|
|
@@ -21,17 +21,7 @@ export default class PreloadManager {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
static getSortingFunction(dataUnit, sorting) {
|
|
24
|
-
|
|
25
|
-
return undefined;
|
|
26
|
-
}
|
|
27
|
-
return (recordA, recordB) => {
|
|
28
|
-
for (const sort of sorting) {
|
|
29
|
-
const result = FieldComparator.compare(dataUnit.getField(sort.field), recordA, recordB, sort.mode === SortMode.ASC);
|
|
30
|
-
if (result != 0) {
|
|
31
|
-
return result;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
24
|
+
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
|
35
25
|
}
|
|
36
26
|
static async getDistinct(dataUnit, fieldName) {
|
|
37
27
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
@@ -122,7 +112,7 @@ export default class PreloadManager {
|
|
|
122
112
|
const columnFilters = ColumnFilterManager.getColumnFilters(request.filters, "");
|
|
123
113
|
const { limit, offset, sort } = request;
|
|
124
114
|
PreloadManager.getRepository(dataUnit)
|
|
125
|
-
.load(ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())),
|
|
115
|
+
.load(ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())), PreloadManager.getSortingFunction(dataUnit, sort), offset, limit)
|
|
126
116
|
.then(loadResult => {
|
|
127
117
|
const stillLoading = PreloadManager._loadingStatus.get(dataUnit.name);
|
|
128
118
|
const { count, result: records } = loadResult;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataType, ApplicationContext, ObjectUtils,
|
|
1
|
+
import { DataType, ApplicationContext, ObjectUtils, DataUnit, DateUtils, StringUtils, ChangeOperation, UserInterface, DataUnitStorage } from '@sankhyalabs/core';
|
|
2
2
|
import { d as dist, D as DataFetcher } from './form-config-fetcher.js';
|
|
3
3
|
import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
4
4
|
import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -269,17 +269,7 @@ class PreloadManager {
|
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
static getSortingFunction(dataUnit, sorting) {
|
|
272
|
-
|
|
273
|
-
return undefined;
|
|
274
|
-
}
|
|
275
|
-
return (recordA, recordB) => {
|
|
276
|
-
for (const sort of sorting) {
|
|
277
|
-
const result = FieldComparator.compare(dataUnit.getField(sort.field), recordA, recordB, sort.mode === SortMode.ASC);
|
|
278
|
-
if (result != 0) {
|
|
279
|
-
return result;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
};
|
|
272
|
+
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
|
283
273
|
}
|
|
284
274
|
static async getDistinct(dataUnit, fieldName) {
|
|
285
275
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
@@ -370,7 +360,7 @@ class PreloadManager {
|
|
|
370
360
|
const columnFilters = ColumnFilterManager.getColumnFilters(request.filters, "");
|
|
371
361
|
const { limit, offset, sort } = request;
|
|
372
362
|
PreloadManager.getRepository(dataUnit)
|
|
373
|
-
.load(ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())),
|
|
363
|
+
.load(ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())), PreloadManager.getSortingFunction(dataUnit, sort), offset, limit)
|
|
374
364
|
.then(loadResult => {
|
|
375
365
|
const stillLoading = PreloadManager._loadingStatus.get(dataUnit.name);
|
|
376
366
|
const { count, result: records } = loadResult;
|
|
@@ -409,7 +399,7 @@ function applySorting(records, dataUnit, sorting) {
|
|
|
409
399
|
if (sorting == undefined || sorting.length == 0) {
|
|
410
400
|
return records;
|
|
411
401
|
}
|
|
412
|
-
const sortingFunction =
|
|
402
|
+
const sortingFunction = PreloadManager.getSortingFunction(dataUnit, sorting);
|
|
413
403
|
if (sortingFunction == undefined) {
|
|
414
404
|
return records;
|
|
415
405
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as DataFetcher } from './form-config-fetcher-13cd3285.js';
|
|
2
|
-
import { a as PreloadManager } from './pesquisa-fetcher-
|
|
2
|
+
import { a as PreloadManager } from './pesquisa-fetcher-6e15945b.js';
|
|
3
3
|
import { SortMode, ApplicationContext, UserInterface, DateUtils, DataType } from '@sankhyalabs/core';
|
|
4
4
|
import './index-0ece87a6.js';
|
|
5
5
|
import './ISave-d8c8bc59.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectUtils,
|
|
1
|
+
import { ObjectUtils, DataUnit, DataType, DateUtils, StringUtils, ChangeOperation, ApplicationContext, UserInterface, DataUnitStorage } from '@sankhyalabs/core';
|
|
2
2
|
import { D as DataFetcher, d as dist } from './form-config-fetcher-13cd3285.js';
|
|
3
3
|
import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
4
4
|
import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -109,17 +109,7 @@ class PreloadManager {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
static getSortingFunction(dataUnit, sorting) {
|
|
112
|
-
|
|
113
|
-
return undefined;
|
|
114
|
-
}
|
|
115
|
-
return (recordA, recordB) => {
|
|
116
|
-
for (const sort of sorting) {
|
|
117
|
-
const result = FieldComparator.compare(dataUnit.getField(sort.field), recordA, recordB, sort.mode === SortMode.ASC);
|
|
118
|
-
if (result != 0) {
|
|
119
|
-
return result;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
};
|
|
112
|
+
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
|
123
113
|
}
|
|
124
114
|
static async getDistinct(dataUnit, fieldName) {
|
|
125
115
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
@@ -210,7 +200,7 @@ class PreloadManager {
|
|
|
210
200
|
const columnFilters = ColumnFilterManager.getColumnFilters(request.filters, "");
|
|
211
201
|
const { limit, offset, sort } = request;
|
|
212
202
|
PreloadManager.getRepository(dataUnit)
|
|
213
|
-
.load(ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())),
|
|
203
|
+
.load(ColumnFilterManager.getFilterFunction(dataUnit, Array.from(columnFilters.values())), PreloadManager.getSortingFunction(dataUnit, sort), offset, limit)
|
|
214
204
|
.then(loadResult => {
|
|
215
205
|
const stillLoading = PreloadManager._loadingStatus.get(dataUnit.name);
|
|
216
206
|
const { count, result: records } = loadResult;
|
|
@@ -249,7 +239,7 @@ function applySorting(records, dataUnit, sorting) {
|
|
|
249
239
|
if (sorting == undefined || sorting.length == 0) {
|
|
250
240
|
return records;
|
|
251
241
|
}
|
|
252
|
-
const sortingFunction =
|
|
242
|
+
const sortingFunction = PreloadManager.getSortingFunction(dataUnit, sorting);
|
|
253
243
|
if (sortingFunction == undefined) {
|
|
254
244
|
return records;
|
|
255
245
|
}
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent
|
|
|
2
2
|
import { ApplicationContext, StringUtils, ErrorException, WarningException, ObjectUtils, DateUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { D as DataFetcher } from './form-config-fetcher-13cd3285.js';
|
|
4
4
|
import { P as ParamType } from './ParamType-d5152b06.js';
|
|
5
|
-
import './pesquisa-fetcher-
|
|
5
|
+
import './pesquisa-fetcher-6e15945b.js';
|
|
6
6
|
import './index-0ece87a6.js';
|
|
7
7
|
import './ISave-d8c8bc59.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
@@ -4,7 +4,7 @@ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
|
4
4
|
import { C as ConfigStorage } from './ConfigStorage-cc3f3dd3.js';
|
|
5
5
|
import { d as dist, D as DataFetcher, U as UrlUtils } from './form-config-fetcher-13cd3285.js';
|
|
6
6
|
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-11dd9cae.js';
|
|
7
|
-
import { D as DataUnitFetcher, P as PesquisaFetcher } from './pesquisa-fetcher-
|
|
7
|
+
import { D as DataUnitFetcher, P as PesquisaFetcher } from './pesquisa-fetcher-6e15945b.js';
|
|
8
8
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
10
10
|
import './PrintUtils-3e4ff0f5.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
|
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
|
|
3
3
|
import { D as DataFetcher } from './form-config-fetcher-13cd3285.js';
|
|
4
|
-
import { a as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './pesquisa-fetcher-
|
|
4
|
+
import { a as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './pesquisa-fetcher-6e15945b.js';
|
|
5
5
|
import './index-0ece87a6.js';
|
|
6
6
|
import { S as SaveErrorsEnum } from './ISave-d8c8bc59.js';
|
|
7
7
|
import './filter-item-type.enum-d45e026f.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
|
3
3
|
import { T as TaskbarElement } from './taskbar-elements-ad766858.js';
|
|
4
4
|
import './form-config-fetcher-13cd3285.js';
|
|
5
|
-
import './pesquisa-fetcher-
|
|
5
|
+
import './pesquisa-fetcher-6e15945b.js';
|
|
6
6
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
|
7
7
|
import './ISave-d8c8bc59.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
@@ -5,7 +5,7 @@ import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType
|
|
|
5
5
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-8457af36.js';
|
|
6
6
|
import { D as DataFetcher } from './form-config-fetcher-13cd3285.js';
|
|
7
7
|
import { S as SnkDataUnit } from './snk-data-unit-29eba11a.js';
|
|
8
|
-
import './pesquisa-fetcher-
|
|
8
|
+
import './pesquisa-fetcher-6e15945b.js';
|
|
9
9
|
import './ISave-d8c8bc59.js';
|
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -3,7 +3,7 @@ import { Action } from '@sankhyalabs/core';
|
|
|
3
3
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager-7edda7eb.js';
|
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
5
|
import './form-config-fetcher-13cd3285.js';
|
|
6
|
-
import './pesquisa-fetcher-
|
|
6
|
+
import './pesquisa-fetcher-6e15945b.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';
|
|
@@ -11,7 +11,7 @@ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
12
12
|
import { T as TaskbarElement } from './taskbar-elements-ad766858.js';
|
|
13
13
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
|
14
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
|
14
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-8029363d.js';
|
|
15
15
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
|
16
16
|
import './ConfigStorage-cc3f3dd3.js';
|
|
17
17
|
import './PrintUtils-3e4ff0f5.js';
|
|
@@ -5,10 +5,10 @@ import { C as ConfigStorage } from './ConfigStorage-cc3f3dd3.js';
|
|
|
5
5
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
|
6
6
|
import { T as TaskbarProcessor, o as openFieldSearch, b as buildFieldSearch } from './field-search-efbe307f.js';
|
|
7
7
|
import { s as store } from './index-bdf75557.js';
|
|
8
|
-
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils } from './IExporterProvider-
|
|
8
|
+
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils } from './IExporterProvider-abf571cf.js';
|
|
9
9
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
10
10
|
import './form-config-fetcher-13cd3285.js';
|
|
11
|
-
import './pesquisa-fetcher-
|
|
11
|
+
import './pesquisa-fetcher-6e15945b.js';
|
|
12
12
|
import './ISave-d8c8bc59.js';
|
|
13
13
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
14
14
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -6,7 +6,7 @@ import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } fr
|
|
|
6
6
|
import { T as TaskbarElement } from './taskbar-elements-ad766858.js';
|
|
7
7
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
|
8
8
|
import './form-config-fetcher-13cd3285.js';
|
|
9
|
-
import './pesquisa-fetcher-
|
|
9
|
+
import './pesquisa-fetcher-6e15945b.js';
|
|
10
10
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
|
11
11
|
import './ISave-d8c8bc59.js';
|
|
12
12
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-8029363d.js';
|
|
2
2
|
import './index-a7d3d3f1.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
import './SnkFormConfigManager-7edda7eb.js';
|
|
@@ -13,7 +13,7 @@ import './taskbar-elements-ad766858.js';
|
|
|
13
13
|
import './index-0ece87a6.js';
|
|
14
14
|
import './index-bdf75557.js';
|
|
15
15
|
import './constants-8457af36.js';
|
|
16
|
-
import './pesquisa-fetcher-
|
|
16
|
+
import './pesquisa-fetcher-6e15945b.js';
|
|
17
17
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
18
18
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
19
19
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
@@ -4,8 +4,8 @@ import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
|
4
4
|
import { d as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-8457af36.js';
|
|
5
5
|
import { T as TaskbarElement } from './taskbar-elements-ad766858.js';
|
|
6
6
|
import { F as FormConfigFetcher } from './form-config-fetcher-13cd3285.js';
|
|
7
|
-
import { I as InMemoryLoader } from './pesquisa-fetcher-
|
|
8
|
-
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils } from './IExporterProvider-
|
|
7
|
+
import { I as InMemoryLoader } from './pesquisa-fetcher-6e15945b.js';
|
|
8
|
+
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils } from './IExporterProvider-abf571cf.js';
|
|
9
9
|
import { D as DataExporterOption, P as PresentationMode } from './index-0ece87a6.js';
|
|
10
10
|
import './ISave-d8c8bc59.js';
|
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as i,H as e,g as s}from"./p-d2d301a6.js";import{ApplicationContext as o,ObjectUtils as r,UserInterface as n,DataType as l,ElementIDUtils as a}from"@sankhyalabs/core";import{ApplicationUtils as d,DialogType as h}from"@sankhyalabs/ezui/dist/collection/utils";import{D as c,a as u,b as p}from"./p-38289a55.js";import{R as m}from"./p-b0ef4383.js";import{D as v}from"./p-33a6728e.js";import{S as x}from"./p-07825198.js";import"./p-0ba97458.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-ff1990ad.js";import"./p-8d884fab.js";import"./p-32556aa6.js";import"./p-9863d682.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";class f{constructor(t,i){this._selectedNumber=0,this._getMessage=t,this._selectedNumber=i}setExportOption(t,i){const e=this.getExportGroupName();t===c.EXPORT_TO_PDF&&i.push(this.getExportToPDF(e)),t===c.EXPORT_TO_XLS&&i.push(this.getExportToXLS(e)),this.setExportCurrentPage(t,i),this.setExportByEmail(t,i)}setExportCurrentPage(t,i){var e;const s=[c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS];if(t===c.EXPORT_CURRENT_PAGE&&i.push(this.getCurrentPage()),s.includes(t)){let s=i.find((t=>t.id===c.EXPORT_CURRENT_PAGE));null==s&&(i.push(this.getCurrentPage()),s=i.find((t=>t.id===c.EXPORT_CURRENT_PAGE))),(null===(e=null==s?void 0:s.children)||void 0===e?void 0:e.length)||(s.children=[]),t===c.EXPORT_PAGE_TO_PDF&&s.children.push(this.getExportPageToPDF()),t===c.EXPORT_PAGE_TO_XLS&&s.children.push(this.getExportPageToXLS())}}setExportByEmail(t,i){t===c.EXPORT_BY_EMAIL&&i.push(this.getExportByEmail())}getExportToPDF(t){return{id:c.EXPORT_TO_PDF,label:"PDF (.pdf)",group:t}}getExportToXLS(t){return{id:c.EXPORT_TO_XLS,label:`${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,group:t}}getCurrentPage(){return{id:c.EXPORT_CURRENT_PAGE,label:this._getMessage("snkDataExporter.label.currentPage"),group:this._getMessage("snkDataExporter.group.custom")}}getExportPageToPDF(){return{id:c.EXPORT_PAGE_TO_PDF,label:"PDF (.pdf)"}}getExportPageToXLS(){return{id:c.EXPORT_PAGE_TO_XLS,label:`${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`}}getExportByEmail(){return{id:c.EXPORT_BY_EMAIL,label:`${this._getMessage("snkDataExporter.label.sendByEmail")}...`}}getExportGroupName(){return 1===this._selectedNumber?this._getMessage("snkDataExporter.group.export.selectedLine"):this._selectedNumber>1?this._getMessage("snkDataExporter.group.export.multiSelected").replace("{0}",this._selectedNumber.toString()):this._getMessage("snkDataExporter.group.export.default")}}class g{constructor(t){this._provider=t}async getParams(t){var i,e,s,o,r,n;const l=null===(e=(i=this._provider).getFilters)||void 0===e?void 0:e.call(i),a=await this._provider.getColumnsMetadata(),d=null===(o=(s=this._provider).getOrders)||void 0===o?void 0:o.call(s),h=null===(n=(r=this._provider).getResourceURI)||void 0===n?void 0:n.call(r),u=this._provider.getSelectedIDs(),p=t.exportOption,m=[c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS];delete t.exportOption;let v=Object.assign({filters:l,columns:a,sort:d,resourceURI:h,selectedIDs:u.slice(0,this._provider.getExportLimit())},t);if(m.includes(p)||"page"==t.type){const t=this._provider.getOffset(),i=this._provider.getPageSize();v=Object.assign(Object.assign({},v),{offset:t,limit:i,selectedIDs:[]})}else"all"==t.type&&(v=Object.assign(Object.assign({},v),{offset:0,limit:this._provider.getExportLimit(),selectedIDs:[]}));return Promise.resolve(v)}async executeExport(t){const i=await this.getParams(t),{methodName:e}=i,s=function(t,i){var e={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&i.indexOf(s)<0&&(e[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(s=Object.getOwnPropertySymbols(t);o<s.length;o++)i.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(e[s[o]]=t[s[o]])}return e}(i,["methodName"]),n=`${o.getContextValue("__SNK__APPLICATION__").getModuleName()}@DataExporterSPBean.${e}`,l={serviceName:n,requestBody:s};return new Promise(((t,i)=>{v.get().callServiceBroker(n,r.objectToString(l)).then((i=>t(this.getFormatResponse(i)))).catch((t=>i(t)))}))}getFormatResponse(t){var i;const e=null===(i=null==t?void 0:t.json)||void 0===i?void 0:i.$;if(null!=e)return r.stringToObject(e)}}class b{constructor(t){this._provider=t}async executeExport(t){const{methodName:i,titleGrid:e}=t,s=await this._provider.getRecords(),o=await this._provider.getColumnsMetadata(),[r,n]=this.getExecutor(i),l={serviceName:r,requestBody:{grid:{titleGrid:e,columns:this.buildColumnsObject(o),rows:this.buildRowsObject(o,s),customOptions:{xlsxExtension:!1}}}};return new Promise(((t,i)=>{v.get().callServiceBroker(r,l).then((i=>t(n(i)))).catch((t=>i(t)))}))}getExecutor(t){return"exportToPDF"===t?["GridPDFBuilderSP.buildPDFFromJson",t=>({fileSessionKey:t.chavePDF.valor,canPrint:"S"===t.permiteImprimir.valor,canExport:"S"===t.permiteExportar.valor,canSendEmail:"S"===t.canSendEmail.valor,useAppPrint:!0})]:["GridXLSBuilderSP.buildXLSFromJson",t=>({fileSessionKey:t.chaveXLS.valor,canPrint:!1,canExport:!1,useAppPrint:!1,canSendEmail:!1})]}buildColumnsObject(t){return{column:t.map(((t,i)=>{const{label:e,id:s,width:o,userInterface:r}=t;return Object.assign({index:i+1,id:s,label:e,width:o,presentationType:"P"},E[r]||{type:"S",align:"left"})}))}}buildRowsObject(t,i){return{row:i.map((i=>{const e={};return t.forEach(((t,s)=>e["c"+(s+1)]={$:this.formatValue(i,t)})),e}))}}formatValue(t,i){return null!=this._provider.formatValue?this._provider.formatValue(t,i):t[i.id]||""}}const E={[n.DATE]:{type:"D",align:"center"},[n.DATETIME]:{type:"H",align:"center"},[n.TIME]:{type:"I",align:"right"},[n.ELAPSEDTIME]:{type:"I",align:"right"},[n.DECIMALNUMBER]:{type:"F",align:"right"},[n.INTEGERNUMBER]:{type:"I",align:"right"},[n.SEARCH]:{type:"S",align:"right"}},w=class{constructor(i){t(this,i),this._selectedNumber=0,this._customPrefix="$custom$",this._releasedToExport=[c.EXPORT_TO_PDF,c.EXPORT_TO_XLS,c.EXPORT_BY_EMAIL,c.EXPORT_PDF_TO_EMAIL,c.EXPORT_XLS_TO_EMAIL,c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS],this._items=[],this._showDropdown=!1,this.provider=null,this.messagesBuilder=void 0}async exportByEmail(){const t=this._selectedNumber;this._snkEmailSender.open({type:t>0?"selection":"all",selectedRows:t,email:{attachments:[{name:this._appLabel}]},resolver:({type:t,format:i,email:{to:e,subject:s,message:o}})=>{var r;const n=null!==(r=u[null==i?void 0:i.toUpperCase()])&&void 0!==r?r:u.PDF;this.resolveExporter({type:t,methodName:n,to:e,subject:s,message:o,fileName:this._appLabel,titleGrid:this._appLabel},(()=>{this._snkEmailSender.close(),d.info(this.getMessage("snkDataExporter.message.emailSuccess"),{iconName:"check"})}))}})}getMessage(t,i){if(null==this.messagesBuilder){const t=x.getNearestInstance(this._element);t&&(this.messagesBuilder=t.messagesBuilder)}return this.messagesBuilder.getMessage(t,i)}positionDropdown(){var t;const i=null===(t=this._ezButton)||void 0===t?void 0:t.getBoundingClientRect();null!=i&&null!=this._dropdownParent&&(this._dropdownParent.style.top=i.y+i.height+5+"px",this._dropdownParent.style.left=i.x+"px")}closeDropdown(t){const i=null==t?void 0:t.target;null!=i&&(i.closest(".snk-data-exporter")||(this._showDropdown=!1))}setEvents(){document.removeEventListener("click",this.closeDropdown.bind(this)),document.addEventListener("click",this.closeDropdown.bind(this)),document.removeEventListener("scroll",this.positionDropdown.bind(this)),document.addEventListener("scroll",this.positionDropdown.bind(this))}controlDropdown(){this._showDropdown=!this._showDropdown}async resolveExporter(t,i){null!=this.provider&&null!=t&&null!=i&&this.getExporterStrategy().executeExport(t).then((t=>i(t))).catch((t=>{console.error(t);let{title:i,message:e,statusMessage:s}=t||{};d.error(i||this.getMessage("snkDataExporter.message.exportError"),s||e||this.getMessage("snkDataExporter.message.unknownFailure"))}))}getExporterStrategy(){return null==this.provider.getRecords?new g(this.provider):new b(this.provider)}getOptionKey(t){return Object.keys(c).find((i=>c[i]===t))}dispatchExporter(t){var i,e,s;const r=this.getOptionKey(t),n=null!==(i=p[r])&&void 0!==i?i:p.EXPORT_TO_PDF,l=p[r]===p.EXPORT_TO_XLS,a={methodName:c[`EXPORT_TO_${n}`],fileName:this._appLabel,titleGrid:this._appLabel,exportOption:t,limit:null===(s=null===(e=this.provider)||void 0===e?void 0:e.getExportLimit)||void 0===s?void 0:s.call(e)};this.resolveExporter(a,(t=>{!function({fileSessionKey:t,isDownload:i}){const e=o.getContextValue("__SNK__APPLICATION__");window.open(`${window.location.protocol}//${window.location.hostname}:${window.location.port}/mge/visualizadorArquivos.mge?chaveArquivo=${t}${i?"&download=S":""}`),d.info(function(t){var i;return null===(i=null==t?void 0:t.messagesBuilder)||void 0===i?void 0:i.getMessage("fileViewer.message.exportSuccess",void 0)}(e),{iconName:"check"})}(Object.assign(Object.assign({},t),{fileType:n,isDownload:l}))}))}async processExporter(t){var i,e,s,o,r,n,l;const a=null==t?void 0:t.detail,u=[c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS],p=null===(i=null==a?void 0:a.id)||void 0===i?void 0:i.includes(this._customPrefix);if((null==a?void 0:a.id)===c.EXPORT_CURRENT_PAGE)return;const m=null===(e=this.provider)||void 0===e?void 0:e.getSelectedIDs(),v=null===(s=this.provider)||void 0===s?void 0:s.getTotalRecords(),x=null===(r=null===(o=this.provider)||void 0===o?void 0:o.getPageSize)||void 0===r?void 0:r.call(o),f=null===(l=null===(n=this.provider)||void 0===n?void 0:n.getExportLimit)||void 0===l?void 0:l.call(n);let g=!1;if(u.includes(null==a?void 0:a.id)&&x<=f||p?g=!1:(null==m?void 0:m.length)?g=m.length>f:v>f&&(g=!0),g){const t=f.toLocaleString("pt-BR",{minimumFractionDigits:0}),i={title:this.getMessage("snkDataExporter.limitExceeded.title"),description:`\n ${this.getMessage("snkDataExporter.limitExceeded.description",{limit:t})}\n <br/><br/>\n <b>\n ${this.getMessage("snkDataExporter.limitExceeded.subdescription")}\n </b>\n `,cancel:this.getMessage("snkDataExporter.limitExceeded.cancel"),confirm:this.getMessage("snkDataExporter.limitExceeded.continue")};if(!await d.confirm(i.title,i.description,null,h.WARN,{labelCancel:i.cancel,labelConfirm:i.confirm}))return}if(p)return this.openPersonalizedReports(a.id),void(this._showDropdown=!1);this.getFilteredReleasedToExport().includes(null==a?void 0:a.id)&&(a.id===c.EXPORT_BY_EMAIL?this.exportByEmail():this.dispatchExporter(a.id),this._showDropdown=!1)}getFilteredReleasedToExport(){var t,i;if(null==this.provider)return this._releasedToExport;const e=null===(i=(t=this.provider).getHiddenOptions)||void 0===i?void 0:i.call(t);return null==e?this._releasedToExport:this._releasedToExport.filter((t=>!e.includes(t)))}loadItems(){const t=[];this.getFilteredReleasedToExport().forEach((i=>{var e;null===(e=this._itemBuilder)||void 0===e||e.setExportOption(i,t)})),this.loadPersonalizedItems(t)}async loadPersonalizedItems(t){var i,e;const s=null===(e=null===(i=this.provider)||void 0===i?void 0:i.getRecordID)||void 0===e?void 0:e.call(i);if(null==s)return void(this._items=t);const n=await function(t){const i=`${o.getContextValue("__SNK__APPLICATION__").getModuleName()}@DataExporterSPBean.getPersonalizedReports`,e={serviceName:i,requestBody:t};return new Promise(((t,s)=>v.get().callServiceBroker(i,r.objectToString(e)).then((i=>t(function(t){var i;const e=null===(i=null==t?void 0:t.json)||void 0===i?void 0:i.$;if(null!=e)return r.stringToObject(e)}(i)))).catch((t=>s(t)))))}({recordID:s});null==n||n.forEach((i=>{t.push({id:`${this._customPrefix}_${i.ID}`,label:i.label,group:this.getMessage("snkDataExporter.group.custom")})})),this._items=t}openPersonalizedReports(t){var i,e;const s=[],o=(null==t?void 0:t.replace(this._customPrefix,""))||"";null===(e=null===(i=this.provider)||void 0===i?void 0:i.getSelectedIDs)||void 0===e||e.call(i).forEach((({name:t,type:i,value:e},o)=>{const r={fields:[]};0===o&&(s[`PK_${t}`]={type:this.parseDataType(i),value:e},s.pks=[]);const n={nome:`PK_${t}`,tipo:this.parseDataType(i),valor:e};r.fields.push(n),s.pks.push(r)})),this._application.openApp(`${m}${o}`,s)}parseDataType(t){switch(t){case l.NUMBER:return"I";case l.DATE:return"D";default:return"S"}}loadDropdown(){var t,i;this._selectedNumber=(null===(i=null===(t=this.provider)||void 0===t?void 0:t.getSelectedIDs())||void 0===i?void 0:i.length)||0,this._itemBuilder=new f(this.getMessage.bind(this),this._selectedNumber),this.loadItems()}getElementID(t){return{[a.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:a.getInternalIDInfo(t)}}canShowDropdown(){var t;return this._showDropdown&&(null===(t=this._items)||void 0===t?void 0:t.length)>0}componentWillLoad(){var t;this._application=o.getContextValue("__SNK__APPLICATION__"),null===(t=this._application)||void 0===t||t.getAppLabel().then((t=>this._appLabel=t)),this.setEvents()}componentDidLoad(){null!=this._element&&(a.addIDInfo(this._element),this.positionDropdown())}componentWillUpdate(){var t;this._showDropdown&&!(null===(t=this._items)||void 0===t?void 0:t.length)&&this.loadDropdown()}componentDidUpdate(){var t;this._showDropdown?this.positionDropdown():(null===(t=this._items)||void 0===t?void 0:t.length)>0&&(this._items=[])}render(){return i(e,null,i("div",{class:`snk-data-exporter\n ${this.canShowDropdown()?" ez-elevation--16":""}\n `},i("ez-button",Object.assign({ref:t=>this._ezButton=t,iconName:"file-download",size:"small",mode:"icon",title:this.getMessage("snkDataExporter.group.export.title"),onClick:()=>this.controlDropdown()},this.getElementID("button"))),i("div",Object.assign({ref:t=>this._dropdownParent=t,class:`snk-data-exporter__dropdown\n ${this.canShowDropdown()?"snk-data-exporter__dropdown--show":""}\n `},this.getElementID("dropdown")),this.canShowDropdown()&&i("ez-dropdown",Object.assign({items:this._items,onEzClick:t=>this.processExporter(t)},this.getElementID("dropdown"))))),this.canShowDropdown()&&i("div",Object.assign({class:"ez-scrim ez-scrim--light"},this.getElementID("ezScrim"))),i("snk-exporter-email-sender",Object.assign({ref:t=>this._snkEmailSender=t,getMessage:(t,i)=>this.getMessage(t,i)},this.getElementID("snkExporterEmailSender"))))}get _element(){return s(this)}};w.style=".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}";export{w as snk_data_exporter}
|
|
1
|
+
import{r as t,h as i,H as e,g as s}from"./p-d2d301a6.js";import{ApplicationContext as o,ObjectUtils as r,UserInterface as n,DataType as l,ElementIDUtils as a}from"@sankhyalabs/core";import{ApplicationUtils as d,DialogType as h}from"@sankhyalabs/ezui/dist/collection/utils";import{D as c,a as u,b as p}from"./p-38289a55.js";import{R as m}from"./p-b0ef4383.js";import{D as v}from"./p-33a6728e.js";import{S as x}from"./p-07825198.js";import"./p-edfc9393.js";import"./p-21749402.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-ff1990ad.js";import"./p-8d884fab.js";import"./p-32556aa6.js";import"./p-9863d682.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";class f{constructor(t,i){this._selectedNumber=0,this._getMessage=t,this._selectedNumber=i}setExportOption(t,i){const e=this.getExportGroupName();t===c.EXPORT_TO_PDF&&i.push(this.getExportToPDF(e)),t===c.EXPORT_TO_XLS&&i.push(this.getExportToXLS(e)),this.setExportCurrentPage(t,i),this.setExportByEmail(t,i)}setExportCurrentPage(t,i){var e;const s=[c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS];if(t===c.EXPORT_CURRENT_PAGE&&i.push(this.getCurrentPage()),s.includes(t)){let s=i.find((t=>t.id===c.EXPORT_CURRENT_PAGE));null==s&&(i.push(this.getCurrentPage()),s=i.find((t=>t.id===c.EXPORT_CURRENT_PAGE))),(null===(e=null==s?void 0:s.children)||void 0===e?void 0:e.length)||(s.children=[]),t===c.EXPORT_PAGE_TO_PDF&&s.children.push(this.getExportPageToPDF()),t===c.EXPORT_PAGE_TO_XLS&&s.children.push(this.getExportPageToXLS())}}setExportByEmail(t,i){t===c.EXPORT_BY_EMAIL&&i.push(this.getExportByEmail())}getExportToPDF(t){return{id:c.EXPORT_TO_PDF,label:"PDF (.pdf)",group:t}}getExportToXLS(t){return{id:c.EXPORT_TO_XLS,label:`${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`,group:t}}getCurrentPage(){return{id:c.EXPORT_CURRENT_PAGE,label:this._getMessage("snkDataExporter.label.currentPage"),group:this._getMessage("snkDataExporter.group.custom")}}getExportPageToPDF(){return{id:c.EXPORT_PAGE_TO_PDF,label:"PDF (.pdf)"}}getExportPageToXLS(){return{id:c.EXPORT_PAGE_TO_XLS,label:`${this._getMessage("snkDataExporter.label.spreadsheet")} (.xlsx)`}}getExportByEmail(){return{id:c.EXPORT_BY_EMAIL,label:`${this._getMessage("snkDataExporter.label.sendByEmail")}...`}}getExportGroupName(){return 1===this._selectedNumber?this._getMessage("snkDataExporter.group.export.selectedLine"):this._selectedNumber>1?this._getMessage("snkDataExporter.group.export.multiSelected").replace("{0}",this._selectedNumber.toString()):this._getMessage("snkDataExporter.group.export.default")}}class g{constructor(t){this._provider=t}async getParams(t){var i,e,s,o,r,n;const l=null===(e=(i=this._provider).getFilters)||void 0===e?void 0:e.call(i),a=await this._provider.getColumnsMetadata(),d=null===(o=(s=this._provider).getOrders)||void 0===o?void 0:o.call(s),h=null===(n=(r=this._provider).getResourceURI)||void 0===n?void 0:n.call(r),u=this._provider.getSelectedIDs(),p=t.exportOption,m=[c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS];delete t.exportOption;let v=Object.assign({filters:l,columns:a,sort:d,resourceURI:h,selectedIDs:u.slice(0,this._provider.getExportLimit())},t);if(m.includes(p)||"page"==t.type){const t=this._provider.getOffset(),i=this._provider.getPageSize();v=Object.assign(Object.assign({},v),{offset:t,limit:i,selectedIDs:[]})}else"all"==t.type&&(v=Object.assign(Object.assign({},v),{offset:0,limit:this._provider.getExportLimit(),selectedIDs:[]}));return Promise.resolve(v)}async executeExport(t){const i=await this.getParams(t),{methodName:e}=i,s=function(t,i){var e={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&i.indexOf(s)<0&&(e[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(s=Object.getOwnPropertySymbols(t);o<s.length;o++)i.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(t,s[o])&&(e[s[o]]=t[s[o]])}return e}(i,["methodName"]),n=`${o.getContextValue("__SNK__APPLICATION__").getModuleName()}@DataExporterSPBean.${e}`,l={serviceName:n,requestBody:s};return new Promise(((t,i)=>{v.get().callServiceBroker(n,r.objectToString(l)).then((i=>t(this.getFormatResponse(i)))).catch((t=>i(t)))}))}getFormatResponse(t){var i;const e=null===(i=null==t?void 0:t.json)||void 0===i?void 0:i.$;if(null!=e)return r.stringToObject(e)}}class b{constructor(t){this._provider=t}async executeExport(t){const{methodName:i,titleGrid:e}=t,s=await this._provider.getRecords(),o=await this._provider.getColumnsMetadata(),[r,n]=this.getExecutor(i),l={serviceName:r,requestBody:{grid:{titleGrid:e,columns:this.buildColumnsObject(o),rows:this.buildRowsObject(o,s),customOptions:{xlsxExtension:!1}}}};return new Promise(((t,i)=>{v.get().callServiceBroker(r,l).then((i=>t(n(i)))).catch((t=>i(t)))}))}getExecutor(t){return"exportToPDF"===t?["GridPDFBuilderSP.buildPDFFromJson",t=>({fileSessionKey:t.chavePDF.valor,canPrint:"S"===t.permiteImprimir.valor,canExport:"S"===t.permiteExportar.valor,canSendEmail:"S"===t.canSendEmail.valor,useAppPrint:!0})]:["GridXLSBuilderSP.buildXLSFromJson",t=>({fileSessionKey:t.chaveXLS.valor,canPrint:!1,canExport:!1,useAppPrint:!1,canSendEmail:!1})]}buildColumnsObject(t){return{column:t.map(((t,i)=>{const{label:e,id:s,width:o,userInterface:r}=t;return Object.assign({index:i+1,id:s,label:e,width:o,presentationType:"P"},E[r]||{type:"S",align:"left"})}))}}buildRowsObject(t,i){return{row:i.map((i=>{const e={};return t.forEach(((t,s)=>e["c"+(s+1)]={$:this.formatValue(i,t)})),e}))}}formatValue(t,i){return null!=this._provider.formatValue?this._provider.formatValue(t,i):t[i.id]||""}}const E={[n.DATE]:{type:"D",align:"center"},[n.DATETIME]:{type:"H",align:"center"},[n.TIME]:{type:"I",align:"right"},[n.ELAPSEDTIME]:{type:"I",align:"right"},[n.DECIMALNUMBER]:{type:"F",align:"right"},[n.INTEGERNUMBER]:{type:"I",align:"right"},[n.SEARCH]:{type:"S",align:"right"}},w=class{constructor(i){t(this,i),this._selectedNumber=0,this._customPrefix="$custom$",this._releasedToExport=[c.EXPORT_TO_PDF,c.EXPORT_TO_XLS,c.EXPORT_BY_EMAIL,c.EXPORT_PDF_TO_EMAIL,c.EXPORT_XLS_TO_EMAIL,c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS],this._items=[],this._showDropdown=!1,this.provider=null,this.messagesBuilder=void 0}async exportByEmail(){const t=this._selectedNumber;this._snkEmailSender.open({type:t>0?"selection":"all",selectedRows:t,email:{attachments:[{name:this._appLabel}]},resolver:({type:t,format:i,email:{to:e,subject:s,message:o}})=>{var r;const n=null!==(r=u[null==i?void 0:i.toUpperCase()])&&void 0!==r?r:u.PDF;this.resolveExporter({type:t,methodName:n,to:e,subject:s,message:o,fileName:this._appLabel,titleGrid:this._appLabel},(()=>{this._snkEmailSender.close(),d.info(this.getMessage("snkDataExporter.message.emailSuccess"),{iconName:"check"})}))}})}getMessage(t,i){if(null==this.messagesBuilder){const t=x.getNearestInstance(this._element);t&&(this.messagesBuilder=t.messagesBuilder)}return this.messagesBuilder.getMessage(t,i)}positionDropdown(){var t;const i=null===(t=this._ezButton)||void 0===t?void 0:t.getBoundingClientRect();null!=i&&null!=this._dropdownParent&&(this._dropdownParent.style.top=i.y+i.height+5+"px",this._dropdownParent.style.left=i.x+"px")}closeDropdown(t){const i=null==t?void 0:t.target;null!=i&&(i.closest(".snk-data-exporter")||(this._showDropdown=!1))}setEvents(){document.removeEventListener("click",this.closeDropdown.bind(this)),document.addEventListener("click",this.closeDropdown.bind(this)),document.removeEventListener("scroll",this.positionDropdown.bind(this)),document.addEventListener("scroll",this.positionDropdown.bind(this))}controlDropdown(){this._showDropdown=!this._showDropdown}async resolveExporter(t,i){null!=this.provider&&null!=t&&null!=i&&this.getExporterStrategy().executeExport(t).then((t=>i(t))).catch((t=>{console.error(t);let{title:i,message:e,statusMessage:s}=t||{};d.error(i||this.getMessage("snkDataExporter.message.exportError"),s||e||this.getMessage("snkDataExporter.message.unknownFailure"))}))}getExporterStrategy(){return null==this.provider.getRecords?new g(this.provider):new b(this.provider)}getOptionKey(t){return Object.keys(c).find((i=>c[i]===t))}dispatchExporter(t){var i,e,s;const r=this.getOptionKey(t),n=null!==(i=p[r])&&void 0!==i?i:p.EXPORT_TO_PDF,l=p[r]===p.EXPORT_TO_XLS,a={methodName:c[`EXPORT_TO_${n}`],fileName:this._appLabel,titleGrid:this._appLabel,exportOption:t,limit:null===(s=null===(e=this.provider)||void 0===e?void 0:e.getExportLimit)||void 0===s?void 0:s.call(e)};this.resolveExporter(a,(t=>{!function({fileSessionKey:t,isDownload:i}){const e=o.getContextValue("__SNK__APPLICATION__");window.open(`${window.location.protocol}//${window.location.hostname}:${window.location.port}/mge/visualizadorArquivos.mge?chaveArquivo=${t}${i?"&download=S":""}`),d.info(function(t){var i;return null===(i=null==t?void 0:t.messagesBuilder)||void 0===i?void 0:i.getMessage("fileViewer.message.exportSuccess",void 0)}(e),{iconName:"check"})}(Object.assign(Object.assign({},t),{fileType:n,isDownload:l}))}))}async processExporter(t){var i,e,s,o,r,n,l;const a=null==t?void 0:t.detail,u=[c.EXPORT_PAGE_TO_PDF,c.EXPORT_PAGE_TO_XLS],p=null===(i=null==a?void 0:a.id)||void 0===i?void 0:i.includes(this._customPrefix);if((null==a?void 0:a.id)===c.EXPORT_CURRENT_PAGE)return;const m=null===(e=this.provider)||void 0===e?void 0:e.getSelectedIDs(),v=null===(s=this.provider)||void 0===s?void 0:s.getTotalRecords(),x=null===(r=null===(o=this.provider)||void 0===o?void 0:o.getPageSize)||void 0===r?void 0:r.call(o),f=null===(l=null===(n=this.provider)||void 0===n?void 0:n.getExportLimit)||void 0===l?void 0:l.call(n);let g=!1;if(u.includes(null==a?void 0:a.id)&&x<=f||p?g=!1:(null==m?void 0:m.length)?g=m.length>f:v>f&&(g=!0),g){const t=f.toLocaleString("pt-BR",{minimumFractionDigits:0}),i={title:this.getMessage("snkDataExporter.limitExceeded.title"),description:`\n ${this.getMessage("snkDataExporter.limitExceeded.description",{limit:t})}\n <br/><br/>\n <b>\n ${this.getMessage("snkDataExporter.limitExceeded.subdescription")}\n </b>\n `,cancel:this.getMessage("snkDataExporter.limitExceeded.cancel"),confirm:this.getMessage("snkDataExporter.limitExceeded.continue")};if(!await d.confirm(i.title,i.description,null,h.WARN,{labelCancel:i.cancel,labelConfirm:i.confirm}))return}if(p)return this.openPersonalizedReports(a.id),void(this._showDropdown=!1);this.getFilteredReleasedToExport().includes(null==a?void 0:a.id)&&(a.id===c.EXPORT_BY_EMAIL?this.exportByEmail():this.dispatchExporter(a.id),this._showDropdown=!1)}getFilteredReleasedToExport(){var t,i;if(null==this.provider)return this._releasedToExport;const e=null===(i=(t=this.provider).getHiddenOptions)||void 0===i?void 0:i.call(t);return null==e?this._releasedToExport:this._releasedToExport.filter((t=>!e.includes(t)))}loadItems(){const t=[];this.getFilteredReleasedToExport().forEach((i=>{var e;null===(e=this._itemBuilder)||void 0===e||e.setExportOption(i,t)})),this.loadPersonalizedItems(t)}async loadPersonalizedItems(t){var i,e;const s=null===(e=null===(i=this.provider)||void 0===i?void 0:i.getRecordID)||void 0===e?void 0:e.call(i);if(null==s)return void(this._items=t);const n=await function(t){const i=`${o.getContextValue("__SNK__APPLICATION__").getModuleName()}@DataExporterSPBean.getPersonalizedReports`,e={serviceName:i,requestBody:t};return new Promise(((t,s)=>v.get().callServiceBroker(i,r.objectToString(e)).then((i=>t(function(t){var i;const e=null===(i=null==t?void 0:t.json)||void 0===i?void 0:i.$;if(null!=e)return r.stringToObject(e)}(i)))).catch((t=>s(t)))))}({recordID:s});null==n||n.forEach((i=>{t.push({id:`${this._customPrefix}_${i.ID}`,label:i.label,group:this.getMessage("snkDataExporter.group.custom")})})),this._items=t}openPersonalizedReports(t){var i,e;const s=[],o=(null==t?void 0:t.replace(this._customPrefix,""))||"";null===(e=null===(i=this.provider)||void 0===i?void 0:i.getSelectedIDs)||void 0===e||e.call(i).forEach((({name:t,type:i,value:e},o)=>{const r={fields:[]};0===o&&(s[`PK_${t}`]={type:this.parseDataType(i),value:e},s.pks=[]);const n={nome:`PK_${t}`,tipo:this.parseDataType(i),valor:e};r.fields.push(n),s.pks.push(r)})),this._application.openApp(`${m}${o}`,s)}parseDataType(t){switch(t){case l.NUMBER:return"I";case l.DATE:return"D";default:return"S"}}loadDropdown(){var t,i;this._selectedNumber=(null===(i=null===(t=this.provider)||void 0===t?void 0:t.getSelectedIDs())||void 0===i?void 0:i.length)||0,this._itemBuilder=new f(this.getMessage.bind(this),this._selectedNumber),this.loadItems()}getElementID(t){return{[a.DATA_ELEMENT_ID_ATTRIBUTE_NAME]:a.getInternalIDInfo(t)}}canShowDropdown(){var t;return this._showDropdown&&(null===(t=this._items)||void 0===t?void 0:t.length)>0}componentWillLoad(){var t;this._application=o.getContextValue("__SNK__APPLICATION__"),null===(t=this._application)||void 0===t||t.getAppLabel().then((t=>this._appLabel=t)),this.setEvents()}componentDidLoad(){null!=this._element&&(a.addIDInfo(this._element),this.positionDropdown())}componentWillUpdate(){var t;this._showDropdown&&!(null===(t=this._items)||void 0===t?void 0:t.length)&&this.loadDropdown()}componentDidUpdate(){var t;this._showDropdown?this.positionDropdown():(null===(t=this._items)||void 0===t?void 0:t.length)>0&&(this._items=[])}render(){return i(e,null,i("div",{class:`snk-data-exporter\n ${this.canShowDropdown()?" ez-elevation--16":""}\n `},i("ez-button",Object.assign({ref:t=>this._ezButton=t,iconName:"file-download",size:"small",mode:"icon",title:this.getMessage("snkDataExporter.group.export.title"),onClick:()=>this.controlDropdown()},this.getElementID("button"))),i("div",Object.assign({ref:t=>this._dropdownParent=t,class:`snk-data-exporter__dropdown\n ${this.canShowDropdown()?"snk-data-exporter__dropdown--show":""}\n `},this.getElementID("dropdown")),this.canShowDropdown()&&i("ez-dropdown",Object.assign({items:this._items,onEzClick:t=>this.processExporter(t)},this.getElementID("dropdown"))))),this.canShowDropdown()&&i("div",Object.assign({class:"ez-scrim ez-scrim--light"},this.getElementID("ezScrim"))),i("snk-exporter-email-sender",Object.assign({ref:t=>this._snkEmailSender=t,getMessage:(t,i)=>this.getMessage(t,i)},this.getElementID("snkExporterEmailSender"))))}get _element(){return s(this)}};w.style=".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}";export{w as snk_data_exporter}
|