@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-68936.0 → 0.0.0-bugfix-dev-KB-65214.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-a343e418.js → ConfigStorage-e49214c6.js} +2 -2
- package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-77729a93.js} +7 -2
- package/dist/cjs/{IExporterProvider-d2a04ee7.js → IExporterProvider-10b7fed5.js} +5 -5
- package/dist/cjs/{SnkFormConfigManager-166cbd1f.js → SnkFormConfigManager-beebf47a.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-28ceaaed.js → SnkMessageBuilder-cceebbae.js} +3 -7
- package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-29bb791c.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-75f89355.js → dataunit-fetcher-d4873076.js} +3 -10
- package/dist/cjs/{field-search-68e34bf4.js → field-search-f56aa7d6.js} +1 -5
- package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-feb08214.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-680e198f.js → pesquisa-fetcher-a1d0353f.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +7 -7
- package/dist/cjs/snk-attach.cjs.entry.js +5 -5
- package/dist/cjs/snk-crud.cjs.entry.js +11 -9
- package/dist/cjs/snk-data-exporter.cjs.entry.js +8 -8
- package/dist/cjs/{snk-data-unit-bf418767.js → snk-data-unit-f0221097.js} +21 -10
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +9 -9
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
- package/dist/cjs/snk-form.cjs.entry.js +4 -4
- package/dist/cjs/snk-grid.cjs.entry.js +13 -38
- package/dist/cjs/{snk-guides-viewer-14c27834.js → snk-guides-viewer-aafc3073.js} +14 -13
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +12 -29
- package/dist/collection/components/snk-crud/snk-crud.js +48 -13
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +15 -17
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -2
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +36 -8
- package/dist/collection/components/snk-grid/snk-grid.css +2 -0
- package/dist/collection/components/snk-grid/snk-grid.js +6 -58
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +24 -41
- package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +1 -5
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +2 -9
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-grid.msg.js +1 -5
- package/dist/components/DataFetcher.js +8 -3
- package/dist/components/IExporterProvider.js +2 -6
- package/dist/components/SnkMessageBuilder.js +3 -7
- package/dist/components/dataunit-fetcher.js +2 -9
- package/dist/components/snk-crud.js +8 -5
- package/dist/components/snk-data-exporter2.js +2 -2
- package/dist/components/snk-data-unit2.js +20 -8
- package/dist/components/snk-detail-view2.js +9 -8
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-grid2.js +8 -34
- package/dist/components/snk-simple-crud2.js +5 -22
- package/dist/esm/{ConfigStorage-3806514e.js → ConfigStorage-e476378d.js} +2 -2
- package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-773a3e4b.js} +8 -3
- package/dist/esm/{IExporterProvider-b2e244b3.js → IExporterProvider-d597f27d.js} +5 -5
- package/dist/esm/{SnkFormConfigManager-31b24066.js → SnkFormConfigManager-298cd647.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-0485b99a.js → SnkMessageBuilder-ae87b754.js} +3 -7
- package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-a411f73c.js} +1 -1
- package/dist/esm/{dataunit-fetcher-6463ac8d.js → dataunit-fetcher-3d2ec959.js} +3 -10
- package/dist/esm/{field-search-f8b1d91e.js → field-search-efbe307f.js} +1 -5
- package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-e0382e5a.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-03c8f919.js → pesquisa-fetcher-a87445a0.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +7 -7
- package/dist/esm/snk-attach.entry.js +5 -5
- package/dist/esm/snk-crud.entry.js +11 -9
- package/dist/esm/snk-data-exporter.entry.js +8 -8
- package/dist/esm/{snk-data-unit-20860cfc.js → snk-data-unit-1ef94aef.js} +21 -10
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-detail-view.entry.js +9 -9
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-filter-bar.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +2 -2
- package/dist/esm/snk-form.entry.js +4 -4
- package/dist/esm/snk-grid.entry.js +13 -38
- package/dist/esm/{snk-guides-viewer-b82ec79a.js → snk-guides-viewer-62124f3d.js} +14 -13
- package/dist/esm/snk-guides-viewer.entry.js +8 -8
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +12 -29
- package/dist/sankhyablocks/{p-b4d016a3.js → p-091ce761.js} +1 -1
- package/dist/sankhyablocks/p-0c68f40f.entry.js +1 -0
- package/dist/sankhyablocks/{p-913a9979.js → p-0cd3c0a9.js} +1 -1
- package/dist/sankhyablocks/{p-74fafa0d.entry.js → p-162b9a59.entry.js} +2 -2
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/{p-df5451c7.js → p-181975f1.js} +1 -1
- package/dist/sankhyablocks/{p-af8efd95.js → p-25f1fc39.js} +1 -1
- package/dist/sankhyablocks/{p-62ba211a.entry.js → p-2e9c764c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-52920496.js → p-3287a6cc.js} +1 -1
- package/dist/sankhyablocks/{p-d0bec13f.entry.js → p-421bec84.entry.js} +1 -1
- package/dist/sankhyablocks/{p-249adf8b.entry.js → p-42f7b05d.entry.js} +1 -1
- package/dist/sankhyablocks/p-51999ab5.entry.js +1 -0
- package/dist/sankhyablocks/p-52a6a293.entry.js +1 -0
- package/dist/sankhyablocks/p-594bc21d.js +1 -0
- package/dist/sankhyablocks/{p-2a408684.js → p-5f016aed.js} +1 -1
- package/dist/sankhyablocks/{p-d6e26ea8.entry.js → p-62f34e6f.entry.js} +1 -1
- package/dist/sankhyablocks/p-684a2590.entry.js +1 -0
- package/dist/sankhyablocks/p-70001ac1.js +1 -0
- package/dist/sankhyablocks/{p-4111c6ce.entry.js → p-74c665d5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0e85d9ba.js → p-76a65660.js} +1 -1
- package/dist/sankhyablocks/p-7c4aabe2.js +1 -0
- package/dist/sankhyablocks/{p-2f978e29.entry.js → p-8c1ff936.entry.js} +1 -1
- package/dist/sankhyablocks/{p-450c60e4.entry.js → p-939e15d3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-47db7e88.entry.js → p-9dfda04a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2c68b3ae.entry.js → p-bd008859.entry.js} +1 -1
- package/dist/sankhyablocks/p-c2495304.js +1 -0
- package/dist/sankhyablocks/p-c273d6ee.js +1 -0
- package/dist/sankhyablocks/p-d65d98ed.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-crud/snk-crud.d.ts +7 -2
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +3 -3
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +6 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +0 -9
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -7
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +0 -1
- package/dist/types/components.d.ts +33 -24
- package/package.json +2 -2
- package/dist/sankhyablocks/p-14c2056a.js +0 -1
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-23736d75.js +0 -1
- package/dist/sankhyablocks/p-4238fcd4.entry.js +0 -1
- package/dist/sankhyablocks/p-6614c578.js +0 -1
- package/dist/sankhyablocks/p-6fede3d4.entry.js +0 -1
- package/dist/sankhyablocks/p-701442ef.entry.js +0 -1
- package/dist/sankhyablocks/p-950037cb.js +0 -1
- package/dist/sankhyablocks/p-95e44a9c.entry.js +0 -1
- package/dist/sankhyablocks/p-dc7c9047.js +0 -1
- package/dist/sankhyablocks/p-ebc4011a.entry.js +0 -1
|
@@ -7,17 +7,17 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const index = require('./index-1dfc7a6e.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const DataFetcher = require('./DataFetcher-
|
|
11
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
12
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
11
|
+
const snkDataUnit = require('./snk-data-unit-f0221097.js');
|
|
12
|
+
require('./pesquisa-fetcher-a1d0353f.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-d4873076.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-feb08214.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
|
-
require('./SnkMessageBuilder-
|
|
20
|
+
require('./SnkMessageBuilder-cceebbae.js');
|
|
21
21
|
require('./RecordIDUtils-3735135c.js');
|
|
22
22
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -135,7 +135,7 @@ class ItemBuilder {
|
|
|
135
135
|
getExportToXLS(groupName) {
|
|
136
136
|
return {
|
|
137
137
|
id: index.DataExporterOption.EXPORT_TO_XLS,
|
|
138
|
-
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.
|
|
138
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`,
|
|
139
139
|
group: groupName
|
|
140
140
|
};
|
|
141
141
|
}
|
|
@@ -178,7 +178,7 @@ class ItemBuilder {
|
|
|
178
178
|
getExportPageToXLS() {
|
|
179
179
|
return {
|
|
180
180
|
id: index.DataExporterOption.EXPORT_PAGE_TO_XLS,
|
|
181
|
-
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.
|
|
181
|
+
label: `${this._getMessage("snkDataExporter.label.spreadsheet")} (.xls)`
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
6
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-cceebbae.js');
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-d4873076.js');
|
|
8
8
|
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
10
|
|
|
@@ -61,6 +61,7 @@ const SnkDataUnit = class {
|
|
|
61
61
|
this.ignoreSaveMessage = undefined;
|
|
62
62
|
this.configName = undefined;
|
|
63
63
|
this.resourceID = undefined;
|
|
64
|
+
this.domainMessagesBuilder = undefined;
|
|
64
65
|
}
|
|
65
66
|
observePageSize() {
|
|
66
67
|
if (this.dataUnit) {
|
|
@@ -477,7 +478,8 @@ const SnkDataUnit = class {
|
|
|
477
478
|
if (this.ignoreSaveMessage) {
|
|
478
479
|
return;
|
|
479
480
|
}
|
|
480
|
-
const
|
|
481
|
+
const saveOperation = action.payload.changes[0]._operation.toLowerCase();
|
|
482
|
+
const msg = this.getMessage("snkDataUnit.saveInfo", action.payload.records[0], saveOperation);
|
|
481
483
|
if (msg != undefined) {
|
|
482
484
|
this.showSuccessMessage(msg);
|
|
483
485
|
}
|
|
@@ -508,10 +510,13 @@ const SnkDataUnit = class {
|
|
|
508
510
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
509
511
|
* Para conhecer os detalhes do módulo, vide o arquivo neste projeto "/src/lib/message/resources/snk-data-unit.msg.ts"
|
|
510
512
|
*/
|
|
511
|
-
getMessage(key, params = undefined) {
|
|
513
|
+
getMessage(key, params = undefined, customOperation) {
|
|
512
514
|
if (!params) {
|
|
513
515
|
params = this.getMessageParams();
|
|
514
516
|
}
|
|
517
|
+
if (customOperation) {
|
|
518
|
+
this.messagesBuilder.currentOperation = customOperation;
|
|
519
|
+
}
|
|
515
520
|
return this.messagesBuilder.getMessage(key, params);
|
|
516
521
|
}
|
|
517
522
|
getMessageParams() {
|
|
@@ -542,7 +547,7 @@ const SnkDataUnit = class {
|
|
|
542
547
|
return await this._application.getDataUnit(this.entityName, cacheName, null, this.configName, this.resourceID);
|
|
543
548
|
}
|
|
544
549
|
}
|
|
545
|
-
async loadDataUnit() {
|
|
550
|
+
async loadDataUnit(forceMetadataLoad = true) {
|
|
546
551
|
var _a;
|
|
547
552
|
if (this.dataUnit == null && this._application && this.entityName) {
|
|
548
553
|
this.dataUnit = await this.getDataUnitParentOrChild();
|
|
@@ -552,7 +557,8 @@ const SnkDataUnit = class {
|
|
|
552
557
|
this.dataUnit.unsubscribe(this._dataUnitObserver);
|
|
553
558
|
this.dataUnit.addInterceptor(this);
|
|
554
559
|
this.dataUnit.subscribe(this._dataUnitObserver);
|
|
555
|
-
|
|
560
|
+
if (forceMetadataLoad || !this.dataUnit.metadata)
|
|
561
|
+
await this.dataUnit.loadMetadata();
|
|
556
562
|
if ((_a = this.dataUnit.records) === null || _a === void 0 ? void 0 : _a.length) {
|
|
557
563
|
this.getMetadataByRow(this.dataUnit);
|
|
558
564
|
}
|
|
@@ -618,6 +624,13 @@ const SnkDataUnit = class {
|
|
|
618
624
|
parent = parent.parentElement;
|
|
619
625
|
}
|
|
620
626
|
}
|
|
627
|
+
instanceMessagesBuilder() {
|
|
628
|
+
var _a;
|
|
629
|
+
if (this.messagesBuilder) {
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
|
|
633
|
+
}
|
|
621
634
|
//---------------------------------------------
|
|
622
635
|
// Lifecycle web component
|
|
623
636
|
//---------------------------------------------
|
|
@@ -625,9 +638,7 @@ const SnkDataUnit = class {
|
|
|
625
638
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
626
639
|
this._application.getAllAccess(this.resourceID).then(access => this._permissions = access);
|
|
627
640
|
this._parentSnkDataUnit = this.getParentSnkDataUnit();
|
|
628
|
-
|
|
629
|
-
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder(this.entityName);
|
|
630
|
-
}
|
|
641
|
+
this.instanceMessagesBuilder();
|
|
631
642
|
}
|
|
632
643
|
disconnectedCallback() {
|
|
633
644
|
if (this.dataUnit) {
|
|
@@ -635,7 +646,7 @@ const SnkDataUnit = class {
|
|
|
635
646
|
}
|
|
636
647
|
}
|
|
637
648
|
async componentDidLoad() {
|
|
638
|
-
await this.loadDataUnit();
|
|
649
|
+
await this.loadDataUnit(false);
|
|
639
650
|
this.handlerLinkFields();
|
|
640
651
|
}
|
|
641
652
|
render() {
|
|
@@ -2,13 +2,13 @@
|
|
|
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-f0221097.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./SnkMessageBuilder-
|
|
10
|
-
require('./dataunit-fetcher-
|
|
11
|
-
require('./DataFetcher-
|
|
9
|
+
require('./SnkMessageBuilder-cceebbae.js');
|
|
10
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
11
|
+
require('./DataFetcher-77729a93.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -4,28 +4,28 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
|
-
require('./DataFetcher-
|
|
10
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./DataFetcher-77729a93.js');
|
|
10
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
11
11
|
const index$1 = require('./index-1dfc7a6e.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-d4873076.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
17
|
+
require('./form-config-fetcher-feb08214.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
19
19
|
const constants = require('./constants-35ddd366.js');
|
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
21
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
|
22
|
-
require('./ConfigStorage-
|
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-aafc3073.js');
|
|
21
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-cceebbae.js');
|
|
22
|
+
require('./ConfigStorage-e49214c6.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
26
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
27
27
|
require('./index-102ba62d.js');
|
|
28
|
-
require('./field-search-
|
|
28
|
+
require('./field-search-f56aa7d6.js');
|
|
29
29
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
30
30
|
|
|
31
31
|
class GuideBuilder {
|
|
@@ -20,7 +20,7 @@ const OptionsStep = ({ getMessage, changeInfo, data }) => {
|
|
|
20
20
|
const selectionCount = (data === null || data === void 0 ? void 0 : data.selectedRows) || 0;
|
|
21
21
|
const formatOptions = [
|
|
22
22
|
{ label: getMessage("snkExporter.emailSenderOptStep_formatPDF"), value: "pdf" },
|
|
23
|
-
{ label: getMessage("snkExporter.
|
|
23
|
+
{ label: getMessage("snkExporter.emailSenderOptStep_formatXLS"), value: "xls" }
|
|
24
24
|
];
|
|
25
25
|
const typeOptions = [
|
|
26
26
|
{ label: getMessage("snkExporter.emailSenderOptStep_allData"), value: "all" },
|
|
@@ -5,15 +5,15 @@ 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 EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
10
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
const index = require('./index-c5771aba.js');
|
|
12
12
|
const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
|
|
13
13
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
14
14
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
15
|
-
require('./form-config-fetcher-
|
|
16
|
-
require('./DataFetcher-
|
|
15
|
+
require('./form-config-fetcher-feb08214.js');
|
|
16
|
+
require('./DataFetcher-77729a93.js');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
19
19
|
|
|
@@ -6,10 +6,10 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
|
11
|
-
require('./form-config-fetcher-
|
|
12
|
-
require('./DataFetcher-
|
|
11
|
+
require('./form-config-fetcher-feb08214.js');
|
|
12
|
+
require('./DataFetcher-77729a93.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -7,9 +7,9 @@ const Sortable = require('./Sortable-fb1c4cbb.js');
|
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
10
|
+
const formConfigFetcher = require('./form-config-fetcher-feb08214.js');
|
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
12
|
-
require('./DataFetcher-
|
|
12
|
+
require('./DataFetcher-77729a93.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -4,11 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
|
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
9
|
-
require('./ConfigStorage-
|
|
10
|
-
require('./form-config-fetcher-
|
|
11
|
-
require('./DataFetcher-
|
|
9
|
+
require('./ConfigStorage-e49214c6.js');
|
|
10
|
+
require('./form-config-fetcher-feb08214.js');
|
|
11
|
+
require('./DataFetcher-77729a93.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
9
9
|
const index$1 = require('./index-1dfc7a6e.js');
|
|
10
|
-
const fieldSearch = require('./field-search-
|
|
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-10b7fed5.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
|
-
require('./DataFetcher-
|
|
15
|
-
require('./pesquisa-fetcher-
|
|
14
|
+
require('./DataFetcher-77729a93.js');
|
|
15
|
+
require('./pesquisa-fetcher-a1d0353f.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-d4873076.js');
|
|
20
20
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
21
|
-
require('./form-config-fetcher-
|
|
21
|
+
require('./form-config-fetcher-feb08214.js');
|
|
22
22
|
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
24
24
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -80,7 +80,7 @@ class ServerSideExporterProvider extends IExporterProvider.CommonsExporter {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100
|
|
83
|
+
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--lg)}.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}";
|
|
84
84
|
|
|
85
85
|
const SnkGrid = class {
|
|
86
86
|
constructor(hostRef) {
|
|
@@ -93,7 +93,7 @@ const SnkGrid = class {
|
|
|
93
93
|
"snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
|
94
94
|
"snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
|
95
95
|
"snkGridTopTaskbar.regular.singleTaskbar": [],
|
|
96
|
-
"snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE"
|
|
96
|
+
"snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE"],
|
|
97
97
|
"snkGridTopTaskbar.finish_edition.secondary": [],
|
|
98
98
|
"snkGridTopTaskbar.finish_edition.singleTaskbar": [],
|
|
99
99
|
});
|
|
@@ -106,7 +106,7 @@ const SnkGrid = class {
|
|
|
106
106
|
"snkGridHeaderTaskbar.singleTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
|
|
107
107
|
"snkGridHeaderTaskbar.singleTaskbar.detail.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "MORE_OPTIONS"],
|
|
108
108
|
"snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
|
|
109
|
-
"snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"
|
|
109
|
+
"snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
|
110
110
|
});
|
|
111
111
|
this.dataUnitInterceptor = {
|
|
112
112
|
interceptAction: async (action) => {
|
|
@@ -144,7 +144,6 @@ const SnkGrid = class {
|
|
|
144
144
|
this.filterBarLegacyConfigName = undefined;
|
|
145
145
|
this.autoLoad = undefined;
|
|
146
146
|
this.autoFocus = true;
|
|
147
|
-
this.enableGridInsert = false;
|
|
148
147
|
}
|
|
149
148
|
/**
|
|
150
149
|
* Exibe a janela de configurações da grade.
|
|
@@ -231,16 +230,6 @@ const SnkGrid = class {
|
|
|
231
230
|
async setFocus() {
|
|
232
231
|
this._grid.setFocus();
|
|
233
232
|
}
|
|
234
|
-
async handleClick(event) {
|
|
235
|
-
if (this.hasToBlockEvent(event)) {
|
|
236
|
-
event.preventDefault();
|
|
237
|
-
event.stopPropagation();
|
|
238
|
-
await this._dataUnit.cancelEdition();
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
hasToBlockEvent(event) {
|
|
242
|
-
return this._snkFilterBar.contains(event.target) && this.enableGridInsert && this._dataUnit.hasNewRecord();
|
|
243
|
-
}
|
|
244
233
|
async handleGridLegacyConfigName(newLegacyConfig, oldLegacyConfig) {
|
|
245
234
|
if (!newLegacyConfig) {
|
|
246
235
|
return;
|
|
@@ -251,9 +240,6 @@ const SnkGrid = class {
|
|
|
251
240
|
this.addGridLegacyConfigName();
|
|
252
241
|
this.loadConfig();
|
|
253
242
|
}
|
|
254
|
-
handleAddFormMode() {
|
|
255
|
-
return this.enableGridInsert ? taskbarElements.TaskbarElement.FORM_MODE : "";
|
|
256
|
-
}
|
|
257
243
|
openGridConfig() {
|
|
258
244
|
this._grid.getColumnsState()
|
|
259
245
|
.then((gridColumns) => {
|
|
@@ -383,9 +369,8 @@ const SnkGrid = class {
|
|
|
383
369
|
this.loadConfig();
|
|
384
370
|
}
|
|
385
371
|
componentDidRender() {
|
|
386
|
-
var _a, _b;
|
|
387
372
|
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
|
388
|
-
this.loadGridCustomFormatters(
|
|
373
|
+
this.loadGridCustomFormatters(this._dataUnit.metadata.fields);
|
|
389
374
|
this.setCustomRenders();
|
|
390
375
|
this.setCustomEditors();
|
|
391
376
|
}
|
|
@@ -483,8 +468,6 @@ const SnkGrid = class {
|
|
|
483
468
|
eagerInitialize: true,
|
|
484
469
|
itemBuilder: (actionButton, item) => this.getColumnSearch(actionButton, item)
|
|
485
470
|
}];
|
|
486
|
-
if (this.isGridInsertActive())
|
|
487
|
-
return hardList;
|
|
488
471
|
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
489
472
|
const taskbarID = this.getTopTaskBarId();
|
|
490
473
|
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this._dataState, this.actionsList));
|
|
@@ -502,20 +485,12 @@ const SnkGrid = class {
|
|
|
502
485
|
}
|
|
503
486
|
this._showSnkFilterBar = true;
|
|
504
487
|
}
|
|
505
|
-
getGridHeaderButtons() {
|
|
506
|
-
if (this.isGridInsertActive())
|
|
507
|
-
return taskbarElements.TaskbarElement.MORE_OPTIONS;
|
|
508
|
-
return this._headerTaskbarProcessor.buttons;
|
|
509
|
-
}
|
|
510
|
-
isGridInsertActive() {
|
|
511
|
-
return this.enableGridInsert && this._dataUnit.hasNewRecord();
|
|
512
|
-
}
|
|
513
488
|
render() {
|
|
514
489
|
if (!this._dataUnit) {
|
|
515
490
|
return undefined;
|
|
516
491
|
}
|
|
517
|
-
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto
|
|
518
|
-
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 }), 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
|
|
492
|
+
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
|
|
493
|
+
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 }), 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 }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, 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 }))));
|
|
519
494
|
}
|
|
520
495
|
get _element() { return index.getElement(this); }
|
|
521
496
|
static get watchers() { return {
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
|
-
const fieldSearch = require('./field-search-
|
|
7
|
+
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
require('./DataFetcher-77729a93.js');
|
|
11
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
12
12
|
const index$1 = require('./index-1dfc7a6e.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-d4873076.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-feb08214.js');
|
|
19
19
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
20
20
|
|
|
21
21
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-medium);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-medium)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
@@ -43,7 +43,7 @@ const SnkGuidesViewer = class {
|
|
|
43
43
|
this.resourceID = undefined;
|
|
44
44
|
this.detailTaskbarCustomContainerId = undefined;
|
|
45
45
|
this.formLegacyConfigName = undefined;
|
|
46
|
-
this.
|
|
46
|
+
this.getCustomTitle = undefined;
|
|
47
47
|
this._hasToCreateFieldSearch = true;
|
|
48
48
|
this._breadcrumbItems = [];
|
|
49
49
|
this._guides = undefined;
|
|
@@ -112,7 +112,7 @@ const SnkGuidesViewer = class {
|
|
|
112
112
|
this._container.focus();
|
|
113
113
|
}
|
|
114
114
|
exitViewer() {
|
|
115
|
-
if (
|
|
115
|
+
if (this.dataUnit.isDirty()) {
|
|
116
116
|
this.dataUnit.cancelEdition({ after: () => this.exit.emit() });
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
@@ -221,13 +221,10 @@ const SnkGuidesViewer = class {
|
|
|
221
221
|
const invisibleButtons = this.getInvisibleButtons();
|
|
222
222
|
this._taskbarProcessor = new fieldSearch.TaskbarProcessor({
|
|
223
223
|
"snkGuideViewer.regular": btnsRegularMode,
|
|
224
|
-
"snkGuideViewer.finish_edition": ["CANCEL", "SAVE"
|
|
224
|
+
"snkGuideViewer.finish_edition": ["CANCEL", "SAVE"],
|
|
225
225
|
});
|
|
226
226
|
this._taskbarProcessor.process(taskbarId, this.taskbarManager, this.dataState, disabledButtons, invisibleButtons);
|
|
227
227
|
}
|
|
228
|
-
handleAddGridMode() {
|
|
229
|
-
return this.enableGridInsert ? taskbarElements.TaskbarElement.GRID_MODE : "";
|
|
230
|
-
}
|
|
231
228
|
getInvisibleButtons() {
|
|
232
229
|
const invisibleButtons = [];
|
|
233
230
|
if (this.dataState && this.dataState.selectionInfo.mode === DataUnit.SelectionMode.ALL_RECORDS)
|
|
@@ -484,6 +481,10 @@ const SnkGuidesViewer = class {
|
|
|
484
481
|
}
|
|
485
482
|
return "";
|
|
486
483
|
}
|
|
484
|
+
getTitle() {
|
|
485
|
+
var _a, _b;
|
|
486
|
+
return (_b = (_a = this.getCustomTitle) === null || _a === void 0 ? void 0 : _a.call(this)) !== null && _b !== void 0 ? _b : this.getMessage("snkCrud.title");
|
|
487
|
+
}
|
|
487
488
|
componentDidLoad() {
|
|
488
489
|
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
489
490
|
}
|
|
@@ -497,7 +498,7 @@ const SnkGuidesViewer = class {
|
|
|
497
498
|
}
|
|
498
499
|
this.loadTaskbarProcessor();
|
|
499
500
|
const showGuides = this._guides && (this._guides.length > 1);
|
|
500
|
-
return (index.h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, index.h("div", { class: "ez-row snk-guides-viewer__header" }, index.h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, index.h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.
|
|
501
|
+
return (index.h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, index.h("div", { class: "ez-row snk-guides-viewer__header" }, index.h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, index.h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), index.h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getTitle()), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
501
502
|
index.h("div", { class: "ez-margin-top--extra-small" }, index.h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != index$1.PresentationMode.SECONDARY && this.buildTaskBar()), index.h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
502
503
|
index.h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
503
504
|
:
|
|
@@ -2,26 +2,26 @@
|
|
|
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-aafc3073.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
|
-
require('./SnkFormConfigManager-
|
|
9
|
-
require('./ConfigStorage-
|
|
10
|
-
require('./form-config-fetcher-
|
|
11
|
-
require('./DataFetcher-
|
|
8
|
+
require('./SnkFormConfigManager-beebf47a.js');
|
|
9
|
+
require('./ConfigStorage-e49214c6.js');
|
|
10
|
+
require('./form-config-fetcher-feb08214.js');
|
|
11
|
+
require('./DataFetcher-77729a93.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
16
|
-
require('./field-search-
|
|
16
|
+
require('./field-search-f56aa7d6.js');
|
|
17
17
|
require('./taskbar-elements-9ad1f9c0.js');
|
|
18
18
|
require('./index-1dfc7a6e.js');
|
|
19
19
|
require('./index-102ba62d.js');
|
|
20
20
|
require('./constants-35ddd366.js');
|
|
21
|
-
require('./pesquisa-fetcher-
|
|
21
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
22
22
|
require('./ISave-e91b70a7.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
24
|
-
require('./dataunit-fetcher-
|
|
24
|
+
require('./dataunit-fetcher-d4873076.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');
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
10
10
|
const index$1 = require('./index-c5771aba.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
13
|
-
require('./form-config-fetcher-
|
|
14
|
-
require('./DataFetcher-
|
|
13
|
+
require('./form-config-fetcher-feb08214.js');
|
|
14
|
+
require('./DataFetcher-77729a93.js');
|
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
17
|
|