@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-33766.0 → 0.0.0-bugfix-dev-KB-38407.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/{ISave-d68ce3cd.js → ISave-e91b70a7.js} +1 -0
- package/dist/cjs/{SnkMessageBuilder-7293d0ad.js → SnkMessageBuilder-e7dcf408.js} +13 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dataunit-fetcher-bd4c52da.js → pesquisa-fetcher-977c90b1.js} +221 -25
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_2.cjs.entry.js +17 -4
- package/dist/cjs/snk-application.cjs.entry.js +12 -4
- package/dist/cjs/snk-attach.cjs.entry.js +388 -57
- package/dist/cjs/snk-crud.cjs.entry.js +3 -4
- package/dist/cjs/snk-data-exporter.cjs.entry.js +3 -3
- package/dist/cjs/{snk-data-unit-1bc69073.js → snk-data-unit-82c08a8c.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +4 -5
- package/dist/cjs/snk-filter-bar.cjs.entry.js +5 -10
- package/dist/cjs/snk-filter-item.cjs.entry.js +3 -0
- package/dist/cjs/snk-grid.cjs.entry.js +1 -8
- package/dist/cjs/{snk-guides-viewer-dce60912.js → snk-guides-viewer-5803fe92.js} +2 -3
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +4 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +43 -0
- package/dist/collection/components/snk-attach/snk-attach.js +188 -39
- package/dist/collection/components/snk-attach/structure/{crud-config-builder.js → builder/anexo-sistema-crud-config.builder.js} +1 -1
- package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +62 -0
- package/dist/collection/components/snk-attach/structure/{taskbar-builder.js → builder/taskbar-builder.js} +1 -1
- package/dist/collection/components/snk-attach/structure/fetcher/facade/fetcher.facade.js +1 -0
- package/dist/collection/components/snk-attach/structure/{data-unit-builder.js → fetcher/factory/anexo-sistema-data-unit.factory.js} +14 -11
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +111 -0
- package/dist/collection/components/snk-attach/structure/index.js +6 -3
- package/dist/collection/components/snk-crud/snk-crud.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +3 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -26
- package/dist/collection/components/snk-grid/snk-grid.js +2 -25
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +2 -4
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +15 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/{attach-fetcher.js → AttachFetcher/anexo-sistema-fetcher.js} +16 -15
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.js +90 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/index.js +2 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDelete.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/interfaces/IDownloadKey.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +16 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +37 -23
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +7 -1
- package/dist/collection/lib/index.js +1 -1
- package/dist/collection/lib/message/resources/snk-attach.msg.js +13 -0
- package/dist/components/SnkMessageBuilder.js +13 -0
- package/dist/components/dataunit-fetcher.js +60 -26
- package/dist/components/snk-actions-button2.js +1 -0
- package/dist/components/snk-application2.js +11 -1
- package/dist/components/snk-attach2.js +394 -57
- package/dist/components/snk-crud.js +1 -1
- package/dist/components/snk-data-exporter2.js +1 -1
- package/dist/components/snk-filter-bar2.js +5 -11
- package/dist/components/snk-filter-item2.js +3 -0
- package/dist/components/snk-grid2.js +1 -9
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/taskbar-actions-button2.js +15 -1
- package/dist/esm/{ISave-4412b20c.js → ISave-d8c8bc59.js} +1 -0
- package/dist/esm/{SnkMessageBuilder-ca843d1b.js → SnkMessageBuilder-0fb796b9.js} +13 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dataunit-fetcher-65714f21.js → pesquisa-fetcher-5e228b5a.js} +221 -26
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_2.entry.js +17 -4
- package/dist/esm/snk-application.entry.js +11 -3
- package/dist/esm/snk-attach.entry.js +389 -58
- package/dist/esm/snk-crud.entry.js +3 -4
- package/dist/esm/snk-data-exporter.entry.js +3 -3
- package/dist/esm/{snk-data-unit-6208ebf0.js → snk-data-unit-5d201fb3.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +4 -5
- package/dist/esm/snk-filter-bar.entry.js +5 -10
- package/dist/esm/snk-filter-item.entry.js +3 -0
- package/dist/esm/snk-grid.entry.js +1 -8
- package/dist/esm/{snk-guides-viewer-8b9564bd.js → snk-guides-viewer-c77e1c8f.js} +2 -3
- package/dist/esm/snk-guides-viewer.entry.js +3 -4
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +2 -3
- package/dist/sankhyablocks/{p-ff6064e7.js → p-05243555.js} +1 -1
- package/dist/sankhyablocks/{p-9e7d65a4.js → p-21749402.js} +1 -1
- package/dist/sankhyablocks/p-25c77ddb.js +65 -0
- package/dist/sankhyablocks/p-2dd38000.entry.js +1 -0
- package/dist/sankhyablocks/p-34156b41.entry.js +1 -0
- package/dist/sankhyablocks/p-3efca291.entry.js +1 -0
- package/dist/sankhyablocks/{p-0874adb5.entry.js → p-40915359.entry.js} +1 -1
- package/dist/sankhyablocks/p-59ce706a.entry.js +1 -0
- package/dist/sankhyablocks/p-7d8d7fe9.entry.js +1 -0
- package/dist/sankhyablocks/{p-c223b7b2.entry.js → p-86164061.entry.js} +3 -3
- package/dist/sankhyablocks/{p-6977a26c.entry.js → p-86801b08.entry.js} +1 -1
- package/dist/sankhyablocks/p-ab568a2e.entry.js +1 -0
- package/dist/sankhyablocks/p-b05ab13d.entry.js +1 -0
- package/dist/sankhyablocks/p-c4874327.entry.js +1 -0
- package/dist/sankhyablocks/p-ce4bca21.js +1 -0
- package/dist/sankhyablocks/{p-247a8b36.entry.js → p-d1791da2.entry.js} +1 -1
- package/dist/sankhyablocks/p-f39f48c2.entry.js +1 -0
- package/dist/sankhyablocks/{p-32f0935f.js → p-f3d1c48e.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +7 -0
- package/dist/types/components/snk-attach/{structure/crud-config-builder.d.ts → interfaces/ICrudConfig.d.ts} +1 -2
- package/dist/types/components/snk-attach/interfaces/TFetcherType.d.ts +1 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +27 -6
- package/dist/types/components/snk-attach/structure/builder/anexo-sistema-crud-config.builder.d.ts +2 -0
- package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +31 -0
- package/dist/types/components/snk-attach/structure/{taskbar-builder.d.ts → builder/taskbar-builder.d.ts} +1 -1
- package/dist/types/components/snk-attach/structure/fetcher/facade/fetcher.facade.d.ts +11 -0
- package/dist/types/components/snk-attach/structure/fetcher/factory/anexo-sistema-data-unit.factory.d.ts +17 -0
- package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +15 -0
- package/dist/types/components/snk-attach/structure/index.d.ts +6 -3
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +0 -4
- package/dist/types/components/snk-grid/snk-grid.d.ts +1 -5
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +1 -0
- package/dist/types/components.d.ts +43 -11
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/{attach-fetcher.d.ts → AttachFetcher/anexo-sistema-fetcher.d.ts} +3 -2
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/attach-fetcher.d.ts +11 -0
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/facade/attach-fetcher.facade.d.ts +8 -0
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/index.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/ISave.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -1
- package/package.json +7 -5
- package/dist/cjs/pesquisa-fetcher-ef050a47.js +0 -167
- package/dist/esm/pesquisa-fetcher-dd3ca0a5.js +0 -165
- package/dist/sankhyablocks/p-28564b5e.entry.js +0 -1
- package/dist/sankhyablocks/p-29804fc5.js +0 -60
- package/dist/sankhyablocks/p-4775a293.entry.js +0 -1
- package/dist/sankhyablocks/p-4a6b0528.entry.js +0 -1
- package/dist/sankhyablocks/p-55930465.entry.js +0 -1
- package/dist/sankhyablocks/p-95a3778f.entry.js +0 -1
- package/dist/sankhyablocks/p-b146a9f0.entry.js +0 -1
- package/dist/sankhyablocks/p-bedb8ad6.entry.js +0 -1
- package/dist/sankhyablocks/p-cdd66657.entry.js +0 -1
- package/dist/sankhyablocks/p-d9bb09b3.js +0 -6
- package/dist/sankhyablocks/p-ebbc17c6.js +0 -1
- package/dist/sankhyablocks/p-f4d99023.entry.js +0 -1
- package/dist/types/components/snk-attach/structure/data-unit-builder.d.ts +0 -15
- /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDelete.js → components/snk-attach/interfaces/ICrudConfig.js} +0 -0
- /package/dist/collection/{lib/http/data-fetcher/fetchers/fecthAttach/interfaces/IDownloadKey.js → components/snk-attach/interfaces/TFetcherType.js} +0 -0
- /package/dist/collection/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.js +0 -0
- /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDelete.d.ts +0 -0
- /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/IDownloadKey.d.ts +0 -0
- /package/dist/types/lib/http/data-fetcher/fetchers/{fecthAttach → AttachFetcher}/interfaces/index.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataType, FieldComparator, SortMode, DataUnit, DateUtils, StringUtils, ChangeOperation,
|
|
1
|
+
import { DataType, ApplicationContext, FieldComparator, SortMode, DataUnit, DateUtils, StringUtils, ChangeOperation, UserInterface, DataUnitStorage } from '@sankhyalabs/core';
|
|
2
2
|
import { d as dist, D as DataFetcher } from './DataFetcher.js';
|
|
3
3
|
import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
4
4
|
import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -71,6 +71,12 @@ class PesquisaFetcher {
|
|
|
71
71
|
externalCriteria.params = {
|
|
72
72
|
param: values.criteria.params.map(param => {
|
|
73
73
|
let value = param.value;
|
|
74
|
+
if (typeof value === "string") {
|
|
75
|
+
const match = /CTX\{([^}]+)\}/.exec(value);
|
|
76
|
+
if (match) {
|
|
77
|
+
value = ApplicationContext.getContextValue(`__SNK__APPLICATION__FILTER__CONTEXT(${match[1]})__`);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
74
80
|
let type = param.dataType;
|
|
75
81
|
if (type === DataType.OBJECT) {
|
|
76
82
|
value = value.value;
|
|
@@ -531,30 +537,39 @@ class DatasetStrategy {
|
|
|
531
537
|
canSlice() {
|
|
532
538
|
return false;
|
|
533
539
|
}
|
|
540
|
+
processSortingSide(request, dataUnit, serverSideFilters) {
|
|
541
|
+
const localSorting = [];
|
|
542
|
+
const serverSorting = [];
|
|
543
|
+
if (request.sort != undefined) {
|
|
544
|
+
if (serverSideFilters.length === 0) {
|
|
545
|
+
return { localSorting: request.sort, serverSorting: [] };
|
|
546
|
+
}
|
|
547
|
+
for (const sort of request.sort) {
|
|
548
|
+
const descriptor = dataUnit.getField(sort.field);
|
|
549
|
+
const local = descriptor != undefined
|
|
550
|
+
&& descriptor.properties != undefined
|
|
551
|
+
&& descriptor.properties.calculated === "true";
|
|
552
|
+
if (local) {
|
|
553
|
+
localSorting.push(sort);
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
serverSorting.push(sort);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
return { localSorting, serverSorting };
|
|
561
|
+
}
|
|
534
562
|
async load(dataUnit, request, loadingInfo) {
|
|
563
|
+
var _a, _b;
|
|
535
564
|
if (dataUnit.metadata == undefined) {
|
|
536
565
|
return Promise.resolve({ records: [], loadingInfo });
|
|
537
566
|
}
|
|
538
567
|
try {
|
|
539
|
-
const
|
|
540
|
-
const serverSorting =
|
|
541
|
-
if (request.sort != undefined) {
|
|
542
|
-
for (const sort of request.sort) {
|
|
543
|
-
const descriptor = dataUnit.getField(sort.field);
|
|
544
|
-
const local = descriptor != undefined
|
|
545
|
-
&& descriptor.properties != undefined
|
|
546
|
-
&& descriptor.properties.calculated === "true";
|
|
547
|
-
if (local) {
|
|
548
|
-
localSorting.push(sort);
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
serverSorting.push(sort);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
}
|
|
568
|
+
const serverSideFilters = (_b = (_a = request.filters) === null || _a === void 0 ? void 0 : _a.filter(filter => !filter.name.startsWith("FILTRO_COLUNA_"))) !== null && _b !== void 0 ? _b : [];
|
|
569
|
+
const { localSorting, serverSorting } = this.processSortingSide(request, dataUnit, serverSideFilters);
|
|
555
570
|
const fields = this.getFieldsList(dataUnit);
|
|
556
571
|
const serviceName = "DatasetSP.loadRecords";
|
|
557
|
-
const requestBody = this.buildRequestBody(serviceName, fields, dataUnit, request, loadingInfo, serverSorting);
|
|
572
|
+
const requestBody = this.buildRequestBody(serviceName, fields, dataUnit, request, loadingInfo, serverSorting, serverSideFilters);
|
|
558
573
|
const params = loadingInfo.quiet ? { urlParams: { quietMode: "true" } } : undefined;
|
|
559
574
|
const { result: responseRecords, pagerID: pagerId } = await DataFetcher.get().callServiceBroker(serviceName, requestBody, params);
|
|
560
575
|
const records = this.processRecords(dataUnit, fields, responseRecords);
|
|
@@ -598,7 +613,7 @@ class DatasetStrategy {
|
|
|
598
613
|
}
|
|
599
614
|
return [descriptor.name, descriptionField];
|
|
600
615
|
}
|
|
601
|
-
buildRequestBody(serviceName, fields, dataUnit, request, loadingInfo, sorting) {
|
|
616
|
+
buildRequestBody(serviceName, fields, dataUnit, request, loadingInfo, sorting, serverSideFilters) {
|
|
602
617
|
const dataSetID = dataUnit.dataUnitId;
|
|
603
618
|
const dataUnitName = dataUnit.name;
|
|
604
619
|
const entityName = DataUnitFetcher.parseDataUnitName(dataUnitName).entityName;
|
|
@@ -617,7 +632,7 @@ class DatasetStrategy {
|
|
|
617
632
|
tryJoinedFields: true,
|
|
618
633
|
parallelLoader: useParallelLoader,
|
|
619
634
|
crudListener: `br.com.sankhya.bff.${this.getModuleName()}.BFFDataUnitDatasetAdapter`,
|
|
620
|
-
txProperties: this.getTxProperties(
|
|
635
|
+
txProperties: this.getTxProperties(dataUnit, request, sorting, serverSideFilters),
|
|
621
636
|
useDefaultRowsLimit: false
|
|
622
637
|
}
|
|
623
638
|
};
|
|
@@ -628,12 +643,10 @@ class DatasetStrategy {
|
|
|
628
643
|
const moduleName = app.getModuleName();
|
|
629
644
|
return moduleName.replace("-bff", "");
|
|
630
645
|
}
|
|
631
|
-
getTxProperties(
|
|
632
|
-
var _a, _b;
|
|
646
|
+
getTxProperties(dataUnit, request, sorting, serverSideFilters) {
|
|
633
647
|
const txProperties = {
|
|
634
|
-
"__DATA_UNIT_ADAPTER__[dataUnitName]":
|
|
648
|
+
"__DATA_UNIT_ADAPTER__[dataUnitName]": dataUnit.name
|
|
635
649
|
};
|
|
636
|
-
const serverSideFilters = (_b = (_a = request.filters) === null || _a === void 0 ? void 0 : _a.filter(filter => !filter.name.startsWith("FILTRO_COLUNA_"))) !== null && _b !== void 0 ? _b : [];
|
|
637
650
|
if (serverSideFilters.length !== 0) {
|
|
638
651
|
txProperties["__DATA_UNIT_ADAPTER__[criteria]"] = JSON.stringify(serverSideFilters);
|
|
639
652
|
}
|
|
@@ -643,6 +656,13 @@ class DatasetStrategy {
|
|
|
643
656
|
if (request.parentRecordId != undefined) {
|
|
644
657
|
txProperties["__DATA_UNIT_ADAPTER__[parentRecordId]"] = request.parentRecordId;
|
|
645
658
|
}
|
|
659
|
+
const loaderProps = dataUnit.getGlobalLoaderProps();
|
|
660
|
+
if (loaderProps == undefined || loaderProps.size === 0) {
|
|
661
|
+
return txProperties;
|
|
662
|
+
}
|
|
663
|
+
Array.from(loaderProps.entries()).forEach(([name, value]) => {
|
|
664
|
+
txProperties[name] = value;
|
|
665
|
+
});
|
|
646
666
|
return txProperties;
|
|
647
667
|
}
|
|
648
668
|
processRecords(dataUnit, fields, responseRecords) {
|
|
@@ -972,6 +992,19 @@ class DataUnitFetcher {
|
|
|
972
992
|
});
|
|
973
993
|
});
|
|
974
994
|
}
|
|
995
|
+
addTransientProperties(dataUnit, updatingFields) {
|
|
996
|
+
const loaderProps = dataUnit.getGlobalLoaderProps();
|
|
997
|
+
if (loaderProps == undefined || loaderProps.size === 0) {
|
|
998
|
+
return updatingFields;
|
|
999
|
+
}
|
|
1000
|
+
if (updatingFields == undefined) {
|
|
1001
|
+
updatingFields = {};
|
|
1002
|
+
}
|
|
1003
|
+
Array.from(loaderProps.entries()).forEach(([name, value]) => {
|
|
1004
|
+
updatingFields[`transient.${name}`] = value;
|
|
1005
|
+
});
|
|
1006
|
+
return updatingFields;
|
|
1007
|
+
}
|
|
975
1008
|
saveData(dataUnit, duChanges) {
|
|
976
1009
|
const updatedRecordsIds = [];
|
|
977
1010
|
const addedRecordsIds = [];
|
|
@@ -980,7 +1013,7 @@ class DataUnitFetcher {
|
|
|
980
1013
|
const dataUnitInstance = DataUnitStorage.get(changeDU);
|
|
981
1014
|
let parsedUpdatingFields;
|
|
982
1015
|
if (updatingFields) {
|
|
983
|
-
parsedUpdatingFields = Object.entries(updatingFields).map(([fieldName, value]) => {
|
|
1016
|
+
parsedUpdatingFields = Object.entries(this.addTransientProperties(dataUnit, updatingFields)).map(([fieldName, value]) => {
|
|
984
1017
|
const descriptor = dataUnitInstance.getField(fieldName);
|
|
985
1018
|
const dataType = descriptor ? descriptor.dataType : DataType.TEXT;
|
|
986
1019
|
return { fieldName, dataType, value: dataUnitInstance.valueToString(fieldName, value) };
|
|
@@ -1027,7 +1060,8 @@ class DataUnitFetcher {
|
|
|
1027
1060
|
}
|
|
1028
1061
|
responseRecord.fields.forEach(({ name, value }) => {
|
|
1029
1062
|
var _a;
|
|
1030
|
-
|
|
1063
|
+
const valueFromString = (_a = dataUnitInstance === null || dataUnitInstance === void 0 ? void 0 : dataUnitInstance.valueFromString) === null || _a === void 0 ? void 0 : _a.call(dataUnitInstance, name, value);
|
|
1064
|
+
duRecord[name] = (valueFromString !== undefined) ? valueFromString : value;
|
|
1031
1065
|
});
|
|
1032
1066
|
dataUnitRecords.push(duRecord);
|
|
1033
1067
|
});
|
|
@@ -163,6 +163,7 @@ var SaveErrorsEnum;
|
|
|
163
163
|
SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
|
|
164
164
|
SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
|
|
165
165
|
SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
|
|
166
|
+
SaveErrorsEnum["DESCRIPTION_CANNOT_BE_CHANGED"] = "DESCRIPTION_CANNOT_BE_CHANGED";
|
|
166
167
|
})(SaveErrorsEnum || (SaveErrorsEnum = {}));
|
|
167
168
|
|
|
168
169
|
const MASTER_ROW_PROPERTY = "__MASTER_ROW__";
|
|
@@ -993,6 +993,15 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
993
993
|
this._waitingAppReady.push(() => resolve(this));
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
|
+
/**
|
|
997
|
+
* Atribui valor para parâmetros de contexto no componente de pesquisa.
|
|
998
|
+
*
|
|
999
|
+
* @param name - Nome do parâmetro
|
|
1000
|
+
* @param value - String conversível de acordo com o tipo do parâmetro
|
|
1001
|
+
*/
|
|
1002
|
+
async setSearchFilterContext(name, value) {
|
|
1003
|
+
ApplicationContext.setContextValue(`__SNK__APPLICATION__FILTER__CONTEXT(${name})__`, value);
|
|
1004
|
+
}
|
|
996
1005
|
clearContent(container) {
|
|
997
1006
|
if (container) {
|
|
998
1007
|
Array.from(container.children).forEach(child => {
|
|
@@ -1260,7 +1269,8 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
1260
1269
|
"getApplicationPath": [64],
|
|
1261
1270
|
"executeSelectDistinct": [64],
|
|
1262
1271
|
"getDataFetcher": [64],
|
|
1263
|
-
"whenApplicationReady": [64]
|
|
1272
|
+
"whenApplicationReady": [64],
|
|
1273
|
+
"setSearchFilterContext": [64]
|
|
1264
1274
|
}]);
|
|
1265
1275
|
class RequestListenerLoadingBar {
|
|
1266
1276
|
constructor() {
|