@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-81085.0 → 0.0.0-bugfix-dev-KB-74406.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/{ContinuousInsertUtils-aa63f0a9.js → ClientSideExporterProvider-6b781452.js} +71 -2
- package/dist/cjs/IFetchDataExporterParams-e78ec415.js +8 -0
- package/dist/cjs/{dataunit-fetcher-c32fdff7.js → dataunit-fetcher-8291ac21.js} +21 -7
- package/dist/cjs/{index-1dfc7a6e.js → index-e3e39724.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_5.cjs.entry.js +3 -3
- package/dist/cjs/snk-application.cjs.entry.js +9 -2
- package/dist/cjs/snk-attach.cjs.entry.js +3 -3
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +3 -14
- package/dist/cjs/snk-data-exporter.cjs.entry.js +13 -16
- package/dist/cjs/{snk-data-unit-2c7c1964.js → snk-data-unit-d75e6220.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +4 -4
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +9 -8
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +34 -16
- package/dist/cjs/{snk-guides-viewer-c1c56eca.js → snk-guides-viewer-a029ff50.js} +3 -3
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +4 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +25 -79
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-7e19882d.js} +1 -1
- package/dist/collection/components/snk-application/snk-application.js +8 -1
- package/dist/collection/components/snk-configurator/snk-configurator.css +1 -1
- package/dist/collection/components/snk-crud/snk-crud.js +0 -11
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +3 -9
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +17 -5
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +7 -4
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +3 -3
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +4 -3
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +2 -2
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +1 -1
- package/dist/collection/components/snk-grid/snk-grid.css +6 -0
- package/dist/collection/components/snk-grid/snk-grid.js +47 -6
- package/dist/collection/components/snk-grid-config/snk-grid-config.css +1 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +1 -1
- package/dist/collection/lib/@types/index.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +21 -7
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +6 -1
- package/dist/components/ContinuousInsertUtils.js +70 -2
- package/dist/components/ISave.js +6 -1
- package/dist/components/dataunit-fetcher.js +21 -7
- package/dist/components/snk-application2.js +8 -1
- package/dist/components/snk-configurator2.js +1 -1
- package/dist/components/snk-crud.js +0 -11
- package/dist/components/snk-data-exporter2.js +17 -14
- package/dist/components/snk-filter-bar2.js +5 -5
- package/dist/components/snk-filter-item2.js +4 -3
- package/dist/components/snk-filter-number.js +1 -1
- package/dist/components/snk-grid-config2.js +1 -1
- package/dist/components/snk-grid2.js +26 -8
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-simple-crud2.js +3 -59
- package/dist/esm/{ContinuousInsertUtils-af683684.js → ClientSideExporterProvider-ff89c7e9.js} +71 -3
- package/dist/esm/IFetchDataExporterParams-d73bed3d.js +8 -0
- package/dist/esm/{dataunit-fetcher-26c2bed4.js → dataunit-fetcher-5247a708.js} +21 -7
- package/dist/esm/{index-3aa4977a.js → index-b40568ff.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +2 -2
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_5.entry.js +3 -3
- package/dist/esm/snk-application.entry.js +9 -2
- package/dist/esm/snk-attach.entry.js +3 -3
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +3 -14
- package/dist/esm/snk-data-exporter.entry.js +13 -16
- package/dist/esm/{snk-data-unit-a36df23f.js → snk-data-unit-bfd10c71.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +4 -4
- package/dist/esm/snk-filter-bar_4.entry.js +9 -8
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +28 -10
- package/dist/esm/{snk-guides-viewer-2b96b7f7.js → snk-guides-viewer-fa45714d.js} +3 -3
- package/dist/esm/snk-guides-viewer.entry.js +4 -4
- package/dist/esm/snk-pesquisa.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +7 -61
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-d2353c64.js} +1 -1
- package/dist/sankhyablocks/{p-7d0627f4.entry.js → p-0b00d69c.entry.js} +1 -1
- package/dist/sankhyablocks/p-0f3698af.js +1 -0
- package/dist/sankhyablocks/{p-c4d87e71.entry.js → p-172848d4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c9eb2bf5.entry.js → p-29d08446.entry.js} +1 -1
- package/dist/sankhyablocks/p-38179225.js +60 -0
- package/dist/sankhyablocks/{p-7e7a7473.js → p-3fc82614.js} +1 -1
- package/dist/sankhyablocks/p-40e323f9.js +1 -0
- package/dist/sankhyablocks/{p-f4ceb72c.entry.js → p-4c9adf1c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-70ae0779.js → p-655bdd60.js} +1 -1
- package/dist/sankhyablocks/p-700a4cc3.entry.js +1 -0
- package/dist/sankhyablocks/p-79f823f3.entry.js +1 -0
- package/dist/sankhyablocks/p-8f3f2306.js +1 -0
- package/dist/sankhyablocks/{p-28ca3908.entry.js → p-a962a3e4.entry.js} +1 -1
- package/dist/sankhyablocks/p-aa1a0f3e.entry.js +1 -0
- package/dist/sankhyablocks/{p-80dd8976.entry.js → p-b02e58fd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d5687306.entry.js → p-b0ff53b7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-538b3174.entry.js → p-c82deea7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-31c3c9d0.entry.js → p-d2d0535f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c6aefba8.js → p-de9da2f2.js} +1 -1
- package/dist/sankhyablocks/p-e10faff0.entry.js +11 -0
- package/dist/sankhyablocks/p-e36f89d1.entry.js +1 -0
- package/dist/sankhyablocks/{p-045398fb.entry.js → p-f8db6795.entry.js} +1 -1
- package/dist/sankhyablocks/p-fa0cf19c.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-exporter/data/export-result.d.ts +2 -1
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +0 -1
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +2 -1
- package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +3 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +7 -0
- package/dist/types/components.d.ts +9 -1
- package/dist/types/lib/@types/index.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +5 -1
- package/package.json +1 -1
- package/dist/sankhyablocks/p-01ba23cd.entry.js +0 -1
- package/dist/sankhyablocks/p-0c50ba37.entry.js +0 -11
- package/dist/sankhyablocks/p-15f5f702.js +0 -1
- package/dist/sankhyablocks/p-30cf616e.js +0 -1
- package/dist/sankhyablocks/p-43d58b74.entry.js +0 -1
- package/dist/sankhyablocks/p-78d49c74.js +0 -60
- package/dist/sankhyablocks/p-bf6bc973.entry.js +0 -1
- package/dist/sankhyablocks/p-d434bb9a.entry.js +0 -1
- package/dist/sankhyablocks/p-edbe8e15.entry.js +0 -1
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const taskbarElements = require('./taskbar-elements-
|
|
7
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
8
8
|
require('./DataFetcher-65879b2c.js');
|
|
9
9
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
10
|
-
const index$1 = require('./index-
|
|
10
|
+
const index$1 = require('./index-e3e39724.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./dataunit-fetcher-
|
|
14
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
require('./form-config-fetcher-90126e4c.js');
|
|
17
17
|
const constants = require('./constants-241934b3.js');
|
|
@@ -317,15 +317,6 @@ const SnkCrud = class {
|
|
|
317
317
|
.bind("F8", handleAddRecord.bind(this), { description: "Adiciona um novo registro.", element: this._element })
|
|
318
318
|
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
|
319
319
|
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
|
|
320
|
-
.bind("ctrl + .", () => {
|
|
321
|
-
if (dataUnit.getSelectionInfo().records.length === 0) {
|
|
322
|
-
return dataUnit.selectFirst();
|
|
323
|
-
}
|
|
324
|
-
return dataUnit.nextRecord();
|
|
325
|
-
}, {
|
|
326
|
-
description: "Avança para o próximo registro.", element: this._element
|
|
327
|
-
})
|
|
328
|
-
.bind("ctrl + ,", dataUnit.previousRecord.bind(dataUnit), { description: "Retorna ao registro anterior.", element: this._element })
|
|
329
320
|
.bind("F5", async () => {
|
|
330
321
|
const currentView = await this._viewStack.getSelectedIndex();
|
|
331
322
|
if (constants.VIEW_MODE.GRID === currentView) {
|
|
@@ -353,8 +344,6 @@ const SnkCrud = class {
|
|
|
353
344
|
.unbind("F8")
|
|
354
345
|
.unbind("F9")
|
|
355
346
|
.unbind("ctrl + F9")
|
|
356
|
-
.unbind("ctrl + .")
|
|
357
|
-
.unbind("ctrl + ,")
|
|
358
347
|
.unbind("F5")
|
|
359
348
|
.unbind("Escape");
|
|
360
349
|
}
|
|
@@ -5,15 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
|
-
const
|
|
8
|
+
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
|
9
|
+
const index = require('./index-e3e39724.js');
|
|
9
10
|
const constants = require('./constants-241934b3.js');
|
|
10
11
|
const DataFetcher = require('./DataFetcher-65879b2c.js');
|
|
11
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
12
|
+
const snkDataUnit = require('./snk-data-unit-d75e6220.js');
|
|
12
13
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
13
14
|
require('./ISave-e91b70a7.js');
|
|
14
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
17
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
17
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
19
|
require('./form-config-fetcher-90126e4c.js');
|
|
19
20
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -360,17 +361,11 @@ class ClientSideExporterStrategy {
|
|
|
360
361
|
const visibleColumns = getVisibleColumns(columns);
|
|
361
362
|
return visibleColumns;
|
|
362
363
|
}
|
|
363
|
-
async getColumns(resolveProps) {
|
|
364
|
-
var _a;
|
|
365
|
-
if ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) {
|
|
366
|
-
return await this.getParsedColumns();
|
|
367
|
-
}
|
|
368
|
-
return await this._provider.getColumnsMetadata();
|
|
369
|
-
}
|
|
370
364
|
async executeExport(resolveProps) {
|
|
365
|
+
var _a;
|
|
371
366
|
const { methodName, gridTitle } = resolveProps;
|
|
372
|
-
const records = await this._provider.getRecords();
|
|
373
|
-
const columns = await this.
|
|
367
|
+
const records = await this._provider.getRecords(resolveProps.type);
|
|
368
|
+
const columns = ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
|
|
374
369
|
const [serviceName, processor] = this.getExecutor(methodName);
|
|
375
370
|
const payload = {
|
|
376
371
|
serviceName,
|
|
@@ -549,7 +544,9 @@ const SnkDataExporter = class {
|
|
|
549
544
|
});
|
|
550
545
|
}
|
|
551
546
|
getExporterStrategy() {
|
|
552
|
-
return this.provider.getRecords == undefined
|
|
547
|
+
return this.provider.getRecords == undefined
|
|
548
|
+
? new ServerSideExporterStrategy(this.provider)
|
|
549
|
+
: new ClientSideExporterStrategy(this.provider);
|
|
553
550
|
}
|
|
554
551
|
getOptionKey(option) {
|
|
555
552
|
return Object.keys(index.DataExporterOption)
|
|
@@ -559,12 +556,12 @@ const SnkDataExporter = class {
|
|
|
559
556
|
}
|
|
560
557
|
getExportType(option) {
|
|
561
558
|
if (option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === index.DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
562
|
-
return
|
|
559
|
+
return IFetchDataExporterParams.IExportType.ALL;
|
|
563
560
|
}
|
|
564
561
|
if (option === index.DataExporterOption.EXPORT_PAGE_TO_PDF || option === index.DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
565
|
-
return
|
|
562
|
+
return IFetchDataExporterParams.IExportType.PAGE;
|
|
566
563
|
}
|
|
567
|
-
return
|
|
564
|
+
return IFetchDataExporterParams.IExportType.SELECTION;
|
|
568
565
|
}
|
|
569
566
|
async dispatchExporter(option) {
|
|
570
567
|
var _a, _b, _c;
|
|
@@ -4,7 +4,7 @@ const index = require('./index-f9e81701.js');
|
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
6
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-8291ac21.js');
|
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
10
10
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
5
|
+
const snkDataUnit = require('./snk-data-unit-d75e6220.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
require('./SnkMessageBuilder-bae64d0d.js');
|
|
10
|
-
require('./dataunit-fetcher-
|
|
10
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
11
11
|
require('./DataFetcher-65879b2c.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -8,16 +8,16 @@ const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
|
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
9
|
require('./DataFetcher-65879b2c.js');
|
|
10
10
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
11
|
-
const index$1 = require('./index-
|
|
11
|
+
const index$1 = require('./index-e3e39724.js');
|
|
12
12
|
require('./ISave-e91b70a7.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
|
-
require('./dataunit-fetcher-
|
|
15
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
17
|
require('./form-config-fetcher-90126e4c.js');
|
|
18
18
|
const constants = require('./constants-241934b3.js');
|
|
19
|
-
const taskbarElements = require('./taskbar-elements-
|
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
19
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-a029ff50.js');
|
|
21
21
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
|
22
22
|
require('./ConfigStorage-d024aec8.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -140,7 +140,7 @@ function buildNumber(item) {
|
|
|
140
140
|
const variation = props.variation;
|
|
141
141
|
if (variation === filterNumberVariation.FilterNumberVariation.INTERVAL) {
|
|
142
142
|
const { start, end } = value !== null && value !== void 0 ? value : { start: 0, end: 0 };
|
|
143
|
-
if (start && end) {
|
|
143
|
+
if (!isNaN(start) && !isNaN(end)) {
|
|
144
144
|
return {
|
|
145
145
|
name: id,
|
|
146
146
|
expression: props.intervalExpression.fullfill,
|
|
@@ -150,7 +150,7 @@ function buildNumber(item) {
|
|
|
150
150
|
]
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
if (start) {
|
|
153
|
+
if (!isNaN(start)) {
|
|
154
154
|
return {
|
|
155
155
|
name: id,
|
|
156
156
|
expression: props.intervalExpression.onlystart,
|
|
@@ -159,7 +159,7 @@ function buildNumber(item) {
|
|
|
159
159
|
]
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
if (end) {
|
|
162
|
+
if (!isNaN(end)) {
|
|
163
163
|
return {
|
|
164
164
|
name: id,
|
|
165
165
|
expression: props.intervalExpression.onlyend,
|
|
@@ -254,7 +254,7 @@ class SnkFilterModalFactory {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
-
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:
|
|
257
|
+
const snkFilterBarCss = ".sc-snk-filter-bar-h{display:grid;grid-template-columns:1fr minmax(100px, 100%) 1fr 1fr;--snk-personalized-filter--z-index:var(--elevation--20, 20);--snk-personalized-filter--background-color:var(--background--xlight, #fff)}.snk-filter-bar__title.sc-snk-filter-bar{max-width:260px;display:inline-block;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-size:16px;font-family:var(--font-pattern, Arial);font-weight:var(--text-weight--large, 600);color:var(--color--title-primary, #2B3A54);margin-top:12px}[data-mode=\"hidden\"].sc-snk-filter-bar-h{width:0px;height:0px}[data-mode=\"button\"].sc-snk-filter-bar-h{grid-template-columns:1fr;width:fit-content}.snk-filter__popover-container.sc-snk-filter-bar{display:flex;cursor:auto}.filter-bar__personalized-filter.sc-snk-filter-bar{display:flex;flex-direction:column;position:fixed;top:0;left:0;width:100%;height:100%;overflow:auto;z-index:var(--snk-personalized-filter--z-index);background-color:var(--snk-personalized-filter--background-color)}.snk-filter__popover.sc-snk-filter-bar{display:flex;flex-direction:column;position:absolute;width:fit-content;height:fit-content;min-width:265px;background-color:var(--background--xlight, #fff);border-radius:var(--border--radius-medium, 12px);box-shadow:var(--shadow, 0px 0px 16px 0px #000)}.snk-filter-item__editor-header.sc-snk-filter-bar{flex-grow:1;font-weight:var(--text-weight--medium, 400);color:var(--color--title-primary, #2B3A54)}.snk-filter__popover-rule.sc-snk-filter-bar{border-style:solid;border-color:var(--color--disable-secondary, #F2F5F8);border-radius:1px;border-width:1px;width:100%}.editor__ez-check.sc-snk-filter-bar{--ez-check__label--padding-left:0}.snk-filter-item__editor-header-button.sc-snk-filter-bar{cursor:pointer;background-color:transparent;border:none;padding:3px;outline-color:var(--color--primary)}.snk-filter-bar__divider.sc-snk-filter-bar{margin-bottom:var(--space--small)}.snk-filter-bar__scroller.sc-snk-filter-bar{height:calc(100% + var(--space-extra-small, 0px))}.snk-filter-bar__filter-item-container.sc-snk-filter-bar{display:flex;align-items:start}.snk-filter-bar__scroller.sc-snk-filter-bar .sc-snk-filter-bar:first-child{margin-left:var(--space-extra-small, 3px)}.snk-filter-bar__filter-list-items-container.sc-snk-filter-bar{overflow-y:auto;max-height:360px;margin-top:var(--space--small, 6px)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar{cursor:pointer;border-radius:var(--border--radius-small, 6px);border:none;background-color:transparent}.snk-filter-bar__filter-list-item__label.sc-snk-filter-bar{color:var(--title--primary)}.snk-filter-bar__filter-list-item__label--secondary.sc-snk-filter-bar{color:var(--text--primary)}.snk-filter-bar__filter-list-item__icon.sc-snk-filter-bar{--ez-icon--color:var(--title--primary)}.snk-filter-bar__filter-list-item__icon--secondary.sc-snk-filter-bar{--ez-icon--color:var(--text--secondary)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:focus-visible{outline:none;background-color:var(--background--medium)}.snk-filter-bar__filter-list-item.sc-snk-filter-bar:hover{background-color:var(--background--medium)}.snk-filter-bar__filter-list-items-container--empty.sc-snk-filter-bar{width:100%;height:100px;display:flex;justify-content:center;align-self:center;align-items:center}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar{position:relative}.snk-filter-bar__filter-list-items-button--active.sc-snk-filter-bar::after{display:flex;position:absolute;content:\"\";width:8px;height:8px;top:7px;left:17px;background-color:var(--icon--alert--color, #008561);border-radius:50%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar{--modal-item-border-width:2px;display:flex;flex-direction:row;margin-left:var(--modal-item-border-width);border-radius:var(--border--radius-medium, 12px);background-color:var(--background--medium, #f0f3f7);border:none;width:100%}.snk-filter-bar__filter-modal-item.sc-snk-filter-bar:focus-visible{outline:var(--color--primary) solid var(--modal-item-border-width)}.snk-filter-bar__filter-modal-item__check.sc-snk-filter-bar{width:auto}.snk-filter-bar__filter-modal-item__label.sc-snk-filter-bar{font-weight:var(--text-weight--medium)}.snk-filter-bar__filter-modal-content.sc-snk-filter-bar{display:grid;grid-template-rows:auto auto 1fr auto;width:99%;height:100%}";
|
|
258
258
|
|
|
259
259
|
const SnkFilterBar = class {
|
|
260
260
|
constructor(hostRef) {
|
|
@@ -735,7 +735,7 @@ const SnkFilterBar = class {
|
|
|
735
735
|
if (this.mode !== "regular") {
|
|
736
736
|
return (index$1.h(index$1.Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (index$1.h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }))));
|
|
737
737
|
}
|
|
738
|
-
return (index$1.h(index$1.Host, null, index$1.h("div", null, index$1.h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
|
|
738
|
+
return (index$1.h(index$1.Host, null, index$1.h("div", null, index$1.h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), index$1.h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, index$1.h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), index$1.h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, 'Filtros'), onClick: this.showFilterModal.bind(this) }, index$1.h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
|
|
739
739
|
}
|
|
740
740
|
get _element() { return index$1.getElement(this); }
|
|
741
741
|
static get watchers() { return {
|
|
@@ -772,6 +772,7 @@ const SnkFilterItem = class {
|
|
|
772
772
|
this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
|
|
773
773
|
if (open) {
|
|
774
774
|
this._closeCallback = resolve;
|
|
775
|
+
this._chipElement.blur();
|
|
775
776
|
window.requestAnimationFrame(() => {
|
|
776
777
|
this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, this.getFloatOptions());
|
|
777
778
|
this._popover.show();
|
|
@@ -946,13 +947,13 @@ const SnkFilterItem = class {
|
|
|
946
947
|
}
|
|
947
948
|
if (type === filterItemType_enum.FilterItemType.NUMBER && props.variation === filterNumberVariation.FilterNumberVariation.INTERVAL) {
|
|
948
949
|
const { start, end } = value;
|
|
949
|
-
if (start && end) {
|
|
950
|
+
if (!isNaN(start) && !isNaN(end)) {
|
|
950
951
|
return this.getMessage('snkFilterBar.fullIntervalTooltip', { LABEL: label, START_LABEL: start, END_LABEL: end });
|
|
951
952
|
}
|
|
952
|
-
if (start) {
|
|
953
|
+
if (!isNaN(start)) {
|
|
953
954
|
return `${label}: ${this.getMessage('snkFilterBar.onlyStartToltip')} ${Number(start)}`;
|
|
954
955
|
}
|
|
955
|
-
if (end) {
|
|
956
|
+
if (!isNaN(end)) {
|
|
956
957
|
return `${label}: ${this.getMessage('snkFilterBar.onlyEndToltip')} ${Number(end)}`;
|
|
957
958
|
}
|
|
958
959
|
}
|
|
@@ -26,7 +26,7 @@ const SnkFilterPeriod = class {
|
|
|
26
26
|
if (this.getVariation() === filterNumberVariation.FilterNumberVariation.INTERVAL) {
|
|
27
27
|
const start = this._startInterval.value;
|
|
28
28
|
const end = this._endInterval.value;
|
|
29
|
-
this.value = (start || end ? { start, end } : undefined);
|
|
29
|
+
this.value = (!isNaN(start) || !isNaN(end) ? { start, end } : undefined);
|
|
30
30
|
this.valueChanged.emit(this.value);
|
|
31
31
|
return;
|
|
32
32
|
}
|
|
@@ -4,30 +4,31 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const taskbarElements = require('./taskbar-elements-
|
|
7
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
8
8
|
const ConfigStorage = require('./ConfigStorage-d024aec8.js');
|
|
9
|
-
const index$1 = require('./index-
|
|
9
|
+
const index$1 = require('./index-e3e39724.js');
|
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-6b781452.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
14
|
require('./DataFetcher-65879b2c.js');
|
|
15
15
|
require('./pesquisa-fetcher-5c583c93.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');
|
|
19
|
-
require('./dataunit-fetcher-
|
|
19
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
20
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
21
21
|
require('./form-config-fetcher-90126e4c.js');
|
|
22
22
|
require('./constants-241934b3.js');
|
|
23
23
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
25
|
+
require('./IFetchDataExporterParams-e78ec415.js');
|
|
25
26
|
require('./PrintUtils-bcaeb82f.js');
|
|
26
27
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
27
28
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
28
29
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
29
30
|
|
|
30
|
-
class ServerSideExporterProvider extends
|
|
31
|
+
class ServerSideExporterProvider extends ClientSideExporterProvider.CommonsExporter {
|
|
31
32
|
getFilters() {
|
|
32
33
|
var _a;
|
|
33
34
|
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
|
@@ -81,7 +82,7 @@ class ServerSideExporterProvider extends ContinuousInsertUtils.CommonsExporter {
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding)}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}";
|
|
85
|
+
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--small)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding)}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}.snk-grid-container__footer.sc-snk-grid{background-color:var(--background--xlight, #FFF);border-radius:0 0 var(--border--radius-medium) var(--border--radius-medium);box-shadow:var(--shadow--small)}";
|
|
85
86
|
|
|
86
87
|
const SnkGrid = class {
|
|
87
88
|
constructor(hostRef) {
|
|
@@ -123,7 +124,7 @@ const SnkGrid = class {
|
|
|
123
124
|
this._popUpGridConfig = false;
|
|
124
125
|
this._showSnkFilterBar = true;
|
|
125
126
|
this._enableContinuousInsert = false;
|
|
126
|
-
this.columnFilterDataSource = new
|
|
127
|
+
this.columnFilterDataSource = new ClientSideExporterProvider.SnkMultiSelectionListDataSource();
|
|
127
128
|
this.enableLockManagerLoadingComp = false;
|
|
128
129
|
this.enableLockManagerTaskbarClick = false;
|
|
129
130
|
this.configName = undefined;
|
|
@@ -150,6 +151,7 @@ const SnkGrid = class {
|
|
|
150
151
|
this.autoFocus = true;
|
|
151
152
|
this.enableGridInsert = false;
|
|
152
153
|
this.outlineMode = false;
|
|
154
|
+
this.strategyExporter = index$1.ExporterStrategy.SERVER_SIDE;
|
|
153
155
|
}
|
|
154
156
|
reloadConfig() {
|
|
155
157
|
this.loadConfig();
|
|
@@ -283,12 +285,26 @@ const SnkGrid = class {
|
|
|
283
285
|
}
|
|
284
286
|
setGridConfig(config) {
|
|
285
287
|
this._gridConfig = config;
|
|
286
|
-
|
|
288
|
+
ClientSideExporterProvider.CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
|
289
|
+
}
|
|
290
|
+
fixColumNameCharset(columnName) {
|
|
291
|
+
try {
|
|
292
|
+
return decodeURIComponent(escape(columnName));
|
|
293
|
+
}
|
|
294
|
+
catch (e) {
|
|
295
|
+
return columnName;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
normalizeGridConfig(config) {
|
|
299
|
+
if (!config)
|
|
300
|
+
return config;
|
|
301
|
+
const columnsMapped = config.columns.map(column => (Object.assign(Object.assign({}, column), { name: this.fixColumNameCharset(column.name) })));
|
|
302
|
+
return Object.assign(Object.assign({}, config), { columns: columnsMapped });
|
|
287
303
|
}
|
|
288
304
|
loadConfig() {
|
|
289
305
|
ConfigStorage.ConfigStorage.loadGridConfig(this.configName, this.resourceID)
|
|
290
306
|
.then((config) => {
|
|
291
|
-
this.setGridConfig(config);
|
|
307
|
+
this.setGridConfig(this.normalizeGridConfig(config));
|
|
292
308
|
})
|
|
293
309
|
.catch((error) => {
|
|
294
310
|
console.warn(error);
|
|
@@ -300,12 +316,12 @@ const SnkGrid = class {
|
|
|
300
316
|
}
|
|
301
317
|
}
|
|
302
318
|
gridConfigChangeHandler(evt) {
|
|
303
|
-
const config = evt.detail;
|
|
319
|
+
const config = this.normalizeGridConfig(evt.detail);
|
|
304
320
|
ConfigStorage.ConfigStorage.saveGridConfig(config, this.configName, this.resourceID);
|
|
305
321
|
evt.stopPropagation();
|
|
306
322
|
}
|
|
307
323
|
modalConfigChangeHandler(evt) {
|
|
308
|
-
const config = evt.detail;
|
|
324
|
+
const config = this.normalizeGridConfig(evt.detail);
|
|
309
325
|
this._grid.setColumnsState(config.columns)
|
|
310
326
|
.then(() => {
|
|
311
327
|
this.setGridConfig(config);
|
|
@@ -315,7 +331,9 @@ const SnkGrid = class {
|
|
|
315
331
|
evt.stopPropagation();
|
|
316
332
|
}
|
|
317
333
|
async dataExporterProviderStore() {
|
|
318
|
-
const dataExporterProvider =
|
|
334
|
+
const dataExporterProvider = this.strategyExporter === index$1.ExporterStrategy.SERVER_SIDE
|
|
335
|
+
? new ServerSideExporterProvider(this._dataUnit, this._grid)
|
|
336
|
+
: new ClientSideExporterProvider.ClientSideExporterProvider(this._dataUnit, this._grid);
|
|
319
337
|
index$2.store.set("exporterProviders", Object.assign(Object.assign({}, index$2.store.get("exporterProviders")), { [this.configName]: dataExporterProvider }));
|
|
320
338
|
}
|
|
321
339
|
addElementID() {
|
|
@@ -339,7 +357,7 @@ const SnkGrid = class {
|
|
|
339
357
|
}
|
|
340
358
|
finishLoading() {
|
|
341
359
|
this._dataUnit.addInterceptor(this.dataUnitInterceptor);
|
|
342
|
-
|
|
360
|
+
ClientSideExporterProvider.CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
|
343
361
|
this.addElementID();
|
|
344
362
|
if (this.columnFilterDataSource != undefined) {
|
|
345
363
|
this.columnFilterDataSource.setApplication(this._application);
|
|
@@ -394,10 +412,10 @@ const SnkGrid = class {
|
|
|
394
412
|
}
|
|
395
413
|
parent = parent.parentElement;
|
|
396
414
|
}
|
|
397
|
-
this._rmPrecisionCustomValueFormatter = new
|
|
415
|
+
this._rmPrecisionCustomValueFormatter = new ClientSideExporterProvider.RmPrecisionCustomValueFormatter();
|
|
398
416
|
this.addGridLegacyConfigName();
|
|
399
417
|
this.loadConfig();
|
|
400
|
-
this._continuousInsertUtils = new
|
|
418
|
+
this._continuousInsertUtils = new ClientSideExporterProvider.ContinuousInsertUtils(this._application, this.resourceID, this.configName);
|
|
401
419
|
if (this.enableGridInsert) {
|
|
402
420
|
this._continuousInsertUtils.getConfig().then(value => this._enableContinuousInsert = value);
|
|
403
421
|
}
|
|
@@ -541,7 +559,7 @@ const SnkGrid = class {
|
|
|
541
559
|
return undefined;
|
|
542
560
|
}
|
|
543
561
|
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
|
|
544
|
-
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
|
562
|
+
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
|
545
563
|
}
|
|
546
564
|
get _element() { return index.getElement(this); }
|
|
547
565
|
static get watchers() { return {
|
|
@@ -5,15 +5,15 @@ const core = require('@sankhyalabs/core');
|
|
|
5
5
|
const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
|
8
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
9
9
|
const constants = require('./constants-241934b3.js');
|
|
10
10
|
require('./DataFetcher-65879b2c.js');
|
|
11
11
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
12
|
-
const index$1 = require('./index-
|
|
12
|
+
const index$1 = require('./index-e3e39724.js');
|
|
13
13
|
require('./ISave-e91b70a7.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
16
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
18
|
require('./form-config-fetcher-90126e4c.js');
|
|
19
19
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
@@ -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-a029ff50.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('./SnkFormConfigManager-c11d8468.js');
|
|
@@ -15,13 +15,13 @@ require('./filter-item-type.enum-a7ffdaa6.js');
|
|
|
15
15
|
require('./constants-241934b3.js');
|
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
17
17
|
require('./field-search-68e34bf4.js');
|
|
18
|
-
require('./taskbar-elements-
|
|
19
|
-
require('./index-
|
|
18
|
+
require('./taskbar-elements-7e19882d.js');
|
|
19
|
+
require('./index-e3e39724.js');
|
|
20
20
|
require('./index-102ba62d.js');
|
|
21
21
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
22
22
|
require('./ISave-e91b70a7.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
24
|
-
require('./dataunit-fetcher-
|
|
24
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
25
25
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
26
26
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
27
27
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
@@ -6,11 +6,11 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const pesquisaFetcher = require('./pesquisa-fetcher-5c583c93.js');
|
|
8
8
|
require('./DataFetcher-65879b2c.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-e3e39724.js');
|
|
10
10
|
require('./ISave-e91b70a7.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
|
-
require('./dataunit-fetcher-
|
|
13
|
+
require('./dataunit-fetcher-8291ac21.js');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
15
|
require('./form-config-fetcher-90126e4c.js');
|
|
16
16
|
require('./constants-241934b3.js');
|
|
@@ -19,7 +19,7 @@ require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
|
19
19
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
20
20
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
21
21
|
|
|
22
|
-
const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--color-secondary:var(--text--secondary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--
|
|
22
|
+
const snkPesquisaCss = ".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--color-secondary:var(--text--secondary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--small, 6px);height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right);height:100vh}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.snk-pesquisa__records-label.sc-snk-pesquisa{display:flex;flex-direction:row;justify-content:space-between;font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__records-label.hidden.sc-snk-pesquisa{display:none}.snk-pesquisa__records.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color)}.snk-pesquisa__records-limit.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color-secondary)}.snk-pesquisa__records-limit.hidden.sc-snk-pesquisa,.snk-pesquisa__records.hidden.sc-snk-pesquisa{visibility:hidden}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}.snk-pesquisa__cards-container.sc-snk-pesquisa{height:100%;overflow-y:auto}";
|
|
23
23
|
|
|
24
24
|
const SnkPesquisa = class {
|
|
25
25
|
constructor(hostRef) {
|