@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-55396.0 → 0.0.0-bugfix-dev-KB-57523.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/{IExporterProvider-766e1681.js → IExporterProvider-c307e2b1.js} +1 -1
- package/dist/cjs/{pesquisa-fetcher-42ea15c0.js → pesquisa-fetcher-cbdaba63.js} +6 -7
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-attach.cjs.entry.js +16 -21
- package/dist/cjs/snk-crud.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid.cjs.entry.js +2 -2
- package/dist/cjs/{snk-guides-viewer-7c07f342.js → snk-guides-viewer-b0c44e0c.js} +1 -1
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +2 -2
- package/dist/cjs/snk-simple-crud.cjs.entry.js +2 -2
- package/dist/collection/components/snk-attach/snk-attach.js +21 -29
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +2 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
- package/dist/components/dataunit-fetcher.js +6 -7
- package/dist/components/snk-attach2.js +15 -20
- package/dist/esm/{IExporterProvider-c2384d12.js → IExporterProvider-e2a1195d.js} +1 -1
- package/dist/esm/{pesquisa-fetcher-8d7a86e7.js → pesquisa-fetcher-6d8e50bb.js} +6 -7
- package/dist/esm/snk-actions-button_4.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-attach.entry.js +16 -21
- package/dist/esm/snk-crud.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +2 -2
- package/dist/esm/snk-grid.entry.js +2 -2
- package/dist/esm/{snk-guides-viewer-ab10b1ea.js → snk-guides-viewer-1fd41a25.js} +1 -1
- package/dist/esm/snk-guides-viewer.entry.js +2 -2
- package/dist/esm/snk-simple-crud.entry.js +2 -2
- package/dist/sankhyablocks/{p-9800ce29.js → p-3357af48.js} +1 -1
- package/dist/sankhyablocks/{p-debcb301.js → p-3c2a1f4d.js} +3 -3
- package/dist/sankhyablocks/{p-7087c679.js → p-3e7167dd.js} +1 -1
- package/dist/sankhyablocks/{p-5d3fb87a.entry.js → p-587f9dcf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f440e50a.entry.js → p-61b6126e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9952f9be.entry.js → p-6a7bc5c8.entry.js} +1 -1
- package/dist/sankhyablocks/{p-41b2ba65.entry.js → p-6c9edfd8.entry.js} +1 -1
- package/dist/sankhyablocks/{p-950a0dfc.entry.js → p-89bde7d3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6b69a15b.entry.js → p-91dceecf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bbc3c9f6.entry.js → p-a40cbad8.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e73eb043.entry.js → p-d8ddb2a4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f50c876c.entry.js → p-f92f1f5f.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +9 -9
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const formConfigFetcher = require('./form-config-fetcher-3c4daeb5.js');
|
|
4
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
4
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-cbdaba63.js');
|
|
5
5
|
const core = require('@sankhyalabs/core');
|
|
6
6
|
require('./index-0922807b.js');
|
|
7
7
|
require('./ISave-e91b70a7.js');
|
|
@@ -380,6 +380,7 @@ class DatasetStrategy {
|
|
|
380
380
|
return false;
|
|
381
381
|
}
|
|
382
382
|
processSortingSide(request, dataUnit, serverSideFilters) {
|
|
383
|
+
var _a;
|
|
383
384
|
const localSorting = [];
|
|
384
385
|
const serverSorting = [];
|
|
385
386
|
if (request.sort != undefined) {
|
|
@@ -388,9 +389,7 @@ class DatasetStrategy {
|
|
|
388
389
|
}
|
|
389
390
|
for (const sort of request.sort) {
|
|
390
391
|
const descriptor = dataUnit.getField(sort.field);
|
|
391
|
-
const local = descriptor
|
|
392
|
-
&& descriptor.properties != undefined
|
|
393
|
-
&& (descriptor.properties.calculated === "true" || descriptor.userInterface === core.UserInterface.LONGTEXT);
|
|
392
|
+
const local = ((_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.properties) === null || _a === void 0 ? void 0 : _a.calculated) === "true" || (descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === core.UserInterface.LONGTEXT;
|
|
394
393
|
if (local) {
|
|
395
394
|
localSorting.push(sort);
|
|
396
395
|
}
|
|
@@ -1045,12 +1044,12 @@ class PesquisaFetcher {
|
|
|
1045
1044
|
});
|
|
1046
1045
|
}
|
|
1047
1046
|
loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
|
|
1048
|
-
var _a, _b, _c, _d;
|
|
1047
|
+
var _a, _b, _c, _d, _e;
|
|
1049
1048
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
|
1050
1049
|
const values = {
|
|
1051
1050
|
argument: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.argument) || argument,
|
|
1052
1051
|
criteria: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.criteria) || criteria,
|
|
1053
|
-
searchOptions: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions)
|
|
1052
|
+
searchOptions: Object.assign(Object.assign({}, searchOptions), listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions),
|
|
1054
1053
|
};
|
|
1055
1054
|
const serviceName = "PesquisaSP.getSuggestion";
|
|
1056
1055
|
const externalCriteria = {
|
|
@@ -1081,11 +1080,11 @@ class PesquisaFetcher {
|
|
|
1081
1080
|
};
|
|
1082
1081
|
}
|
|
1083
1082
|
const options = searchOptions != undefined
|
|
1084
|
-
? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
1083
|
+
? Object.assign(Object.assign({}, values === null || values === void 0 ? void 0 : values.searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
1085
1084
|
const reqBody = {
|
|
1086
1085
|
"serviceName": serviceName,
|
|
1087
1086
|
"requestBody": {
|
|
1088
|
-
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (
|
|
1087
|
+
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
|
1089
1088
|
"clientEventList": {
|
|
1090
1089
|
"clientEvent": []
|
|
1091
1090
|
}
|
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const formConfigFetcher = require('./form-config-fetcher-3c4daeb5.js');
|
|
8
8
|
const ParamType = require('./ParamType-90b440a0.js');
|
|
9
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
10
10
|
require('./index-0922807b.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -8,7 +8,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const ConfigStorage = require('./ConfigStorage-7df9d3bb.js');
|
|
9
9
|
const formConfigFetcher = require('./form-config-fetcher-3c4daeb5.js');
|
|
10
10
|
const authFetcher = require('./auth-fetcher-e6112be7.js');
|
|
11
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
11
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-cbdaba63.js');
|
|
12
12
|
const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
14
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const formConfigFetcher = require('./form-config-fetcher-3c4daeb5.js');
|
|
8
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
8
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-cbdaba63.js');
|
|
9
9
|
require('./index-0922807b.js');
|
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -652,25 +652,22 @@ const SnkAttach = class {
|
|
|
652
652
|
this._currentDataUnit = undefined;
|
|
653
653
|
this.crudConfig = undefined;
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
async initAttach() {
|
|
656
656
|
var _a, _b, _c, _d, _e, _f;
|
|
657
|
-
|
|
658
|
-
|
|
657
|
+
await this.loadAttachmentDataUnit();
|
|
658
|
+
this.returnToGridMode();
|
|
659
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
660
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
661
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
662
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
663
|
+
return;
|
|
659
664
|
}
|
|
660
|
-
if (
|
|
661
|
-
this.
|
|
662
|
-
if (
|
|
663
|
-
|
|
664
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
665
|
-
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
|
666
|
-
}
|
|
667
|
-
if (this.fetcherType === "Attach") {
|
|
668
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
669
|
-
if (hasMoreOneItem)
|
|
670
|
-
return;
|
|
671
|
-
}
|
|
672
|
-
return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
665
|
+
if (this.fetcherType === "Attach") {
|
|
666
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
667
|
+
if (hasMoreOneItem)
|
|
668
|
+
return;
|
|
673
669
|
}
|
|
670
|
+
(_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
674
671
|
}
|
|
675
672
|
/**
|
|
676
673
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -792,8 +789,9 @@ const SnkAttach = class {
|
|
|
792
789
|
}
|
|
793
790
|
});
|
|
794
791
|
}
|
|
795
|
-
componentWillLoad() {
|
|
792
|
+
async componentWillLoad() {
|
|
796
793
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
794
|
+
await this.initAttach();
|
|
797
795
|
}
|
|
798
796
|
componentWillRender() {
|
|
799
797
|
if (!this.fetcherType) {
|
|
@@ -821,9 +819,6 @@ const SnkAttach = class {
|
|
|
821
819
|
return null;
|
|
822
820
|
return (index.h("main", { class: "snk-attach__main" }, index.h("header", { class: "snk-attach__header" }, index.h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, index.h("div", { slot: "rightSlot" }, index.h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), index.h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, index.h("div", { class: "ez-box__container" }, index.h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this) }, index.h("div", { slot: "snkSimpleCrudHeader" }, index.h("div", { class: "ez-flex ez-flex--column" }, index.h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), index.h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
|
823
821
|
}
|
|
824
|
-
static get watchers() { return {
|
|
825
|
-
"registerKey": ["registerKeyWatcher"]
|
|
826
|
-
}; }
|
|
827
822
|
};
|
|
828
823
|
SnkAttach.style = snkAttachCss;
|
|
829
824
|
|
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
8
8
|
require('./form-config-fetcher-3c4daeb5.js');
|
|
9
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
10
10
|
const index$1 = require('./index-0922807b.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -9,7 +9,7 @@ const index = require('./index-0922807b.js');
|
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
10
|
const formConfigFetcher = require('./form-config-fetcher-3c4daeb5.js');
|
|
11
11
|
const snkDataUnit = require('./snk-data-unit-abd2113f.js');
|
|
12
|
-
require('./pesquisa-fetcher-
|
|
12
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
13
13
|
require('./ISave-e91b70a7.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const SnkFormConfigManager = require('./SnkFormConfigManager-4259edbe.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
9
|
require('./form-config-fetcher-3c4daeb5.js');
|
|
10
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
11
11
|
const index$1 = require('./index-0922807b.js');
|
|
12
12
|
require('./ISave-e91b70a7.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -15,7 +15,7 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
17
17
|
const constants = require('./constants-35ddd366.js');
|
|
18
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
18
|
+
const snkGuidesViewer = require('./snk-guides-viewer-b0c44e0c.js');
|
|
19
19
|
const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
|
|
20
20
|
require('./ConfigStorage-7df9d3bb.js');
|
|
21
21
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -9,10 +9,10 @@ const ConfigStorage = require('./ConfigStorage-7df9d3bb.js');
|
|
|
9
9
|
const index$1 = require('./index-0922807b.js');
|
|
10
10
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const IExporterProvider = require('./IExporterProvider-
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-c307e2b1.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
14
|
require('./form-config-fetcher-3c4daeb5.js');
|
|
15
|
-
require('./pesquisa-fetcher-
|
|
15
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
16
16
|
require('./ISave-e91b70a7.js');
|
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -8,7 +8,7 @@ const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
10
|
require('./form-config-fetcher-3c4daeb5.js');
|
|
11
|
-
require('./pesquisa-fetcher-
|
|
11
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
12
12
|
const index$1 = require('./index-0922807b.js');
|
|
13
13
|
require('./ISave-e91b70a7.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-b0c44e0c.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('./SnkFormConfigManager-4259edbe.js');
|
|
@@ -17,7 +17,7 @@ require('./taskbar-elements-d9392685.js');
|
|
|
17
17
|
require('./index-0922807b.js');
|
|
18
18
|
require('./index-102ba62d.js');
|
|
19
19
|
require('./constants-35ddd366.js');
|
|
20
|
-
require('./pesquisa-fetcher-
|
|
20
|
+
require('./pesquisa-fetcher-cbdaba63.js');
|
|
21
21
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
23
23
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -8,8 +8,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const constants = require('./constants-35ddd366.js');
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-d9392685.js');
|
|
10
10
|
const formConfigFetcher = require('./form-config-fetcher-3c4daeb5.js');
|
|
11
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
12
|
-
const IExporterProvider = require('./IExporterProvider-
|
|
11
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-cbdaba63.js');
|
|
12
|
+
const IExporterProvider = require('./IExporterProvider-c307e2b1.js');
|
|
13
13
|
const index = require('./index-0922807b.js');
|
|
14
14
|
require('./ISave-e91b70a7.js');
|
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h } from
|
|
2
|
-
import {
|
|
3
|
-
import { AnexoSistemaFetcher, AttachFetcher, DataUnitFetcher } from
|
|
4
|
-
import { VIEW_MODE } from
|
|
5
|
-
import { AnexoSistemaDataUnitFactory, AttachFetcherDataUnitFactory, buildTaskBarManager,
|
|
6
|
-
import InMemoryLoader from
|
|
1
|
+
import { h } from '@stencil/core';
|
|
2
|
+
import { Action, ApplicationContext, DataUnit } from '@sankhyalabs/core';
|
|
3
|
+
import { AnexoSistemaFetcher, AttachFetcher, DataUnitFetcher } from '../../lib';
|
|
4
|
+
import { VIEW_MODE } from '../../lib/utils/constants';
|
|
5
|
+
import { anexoSistemaCrudConfig, AnexoSistemaDataUnitFactory, attachCrudConfig, AttachFetcherDataUnitFactory, buildTaskBarManager, } from './structure';
|
|
6
|
+
import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
|
|
7
7
|
const RESOURCE_ID = 'AnexoSistema';
|
|
8
8
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
|
9
9
|
export class SnkAttach {
|
|
@@ -40,25 +40,22 @@ export class SnkAttach {
|
|
|
40
40
|
this._currentDataUnit = undefined;
|
|
41
41
|
this.crudConfig = undefined;
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
async initAttach() {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f;
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
await this.loadAttachmentDataUnit();
|
|
46
|
+
this.returnToGridMode();
|
|
47
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
48
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
49
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
50
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
51
|
+
return;
|
|
47
52
|
}
|
|
48
|
-
if (
|
|
49
|
-
this.
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
53
|
-
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
|
54
|
-
}
|
|
55
|
-
if (this.fetcherType === "Attach") {
|
|
56
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
57
|
-
if (hasMoreOneItem)
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
53
|
+
if (this.fetcherType === "Attach") {
|
|
54
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
55
|
+
if (hasMoreOneItem)
|
|
56
|
+
return;
|
|
61
57
|
}
|
|
58
|
+
(_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
62
59
|
}
|
|
63
60
|
/**
|
|
64
61
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -180,8 +177,9 @@ export class SnkAttach {
|
|
|
180
177
|
}
|
|
181
178
|
});
|
|
182
179
|
}
|
|
183
|
-
componentWillLoad() {
|
|
180
|
+
async componentWillLoad() {
|
|
184
181
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
182
|
+
await this.initAttach();
|
|
185
183
|
}
|
|
186
184
|
componentWillRender() {
|
|
187
185
|
if (!this.fetcherType) {
|
|
@@ -386,10 +384,4 @@ export class SnkAttach {
|
|
|
386
384
|
}
|
|
387
385
|
}];
|
|
388
386
|
}
|
|
389
|
-
static get watchers() {
|
|
390
|
-
return [{
|
|
391
|
-
"propName": "registerKey",
|
|
392
|
-
"methodName": "registerKeyWatcher"
|
|
393
|
-
}];
|
|
394
|
-
}
|
|
395
387
|
}
|
package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js
CHANGED
|
@@ -7,6 +7,7 @@ export class DatasetStrategy {
|
|
|
7
7
|
return false;
|
|
8
8
|
}
|
|
9
9
|
processSortingSide(request, dataUnit, serverSideFilters) {
|
|
10
|
+
var _a;
|
|
10
11
|
const localSorting = [];
|
|
11
12
|
const serverSorting = [];
|
|
12
13
|
if (request.sort != undefined) {
|
|
@@ -15,9 +16,7 @@ export class DatasetStrategy {
|
|
|
15
16
|
}
|
|
16
17
|
for (const sort of request.sort) {
|
|
17
18
|
const descriptor = dataUnit.getField(sort.field);
|
|
18
|
-
const local = descriptor
|
|
19
|
-
&& descriptor.properties != undefined
|
|
20
|
-
&& (descriptor.properties.calculated === "true" || descriptor.userInterface === UserInterface.LONGTEXT);
|
|
19
|
+
const local = ((_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.properties) === null || _a === void 0 ? void 0 : _a.calculated) === "true" || (descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.LONGTEXT;
|
|
21
20
|
if (local) {
|
|
22
21
|
localSorting.push(sort);
|
|
23
22
|
}
|
|
@@ -50,12 +50,12 @@ export class PesquisaFetcher {
|
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
|
|
53
|
-
var _a, _b, _c, _d;
|
|
53
|
+
var _a, _b, _c, _d, _e;
|
|
54
54
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
|
55
55
|
const values = {
|
|
56
56
|
argument: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.argument) || argument,
|
|
57
57
|
criteria: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.criteria) || criteria,
|
|
58
|
-
searchOptions: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions)
|
|
58
|
+
searchOptions: Object.assign(Object.assign({}, searchOptions), listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions),
|
|
59
59
|
};
|
|
60
60
|
const serviceName = "PesquisaSP.getSuggestion";
|
|
61
61
|
const externalCriteria = {
|
|
@@ -86,11 +86,11 @@ export class PesquisaFetcher {
|
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
88
|
const options = searchOptions != undefined
|
|
89
|
-
? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
89
|
+
? Object.assign(Object.assign({}, values === null || values === void 0 ? void 0 : values.searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
90
90
|
const reqBody = {
|
|
91
91
|
"serviceName": serviceName,
|
|
92
92
|
"requestBody": {
|
|
93
|
-
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (
|
|
93
|
+
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
|
94
94
|
"clientEventList": {
|
|
95
95
|
"clientEvent": []
|
|
96
96
|
}
|
|
@@ -55,12 +55,12 @@ class PesquisaFetcher {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
|
|
58
|
-
var _a, _b, _c, _d;
|
|
58
|
+
var _a, _b, _c, _d, _e;
|
|
59
59
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
|
60
60
|
const values = {
|
|
61
61
|
argument: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.argument) || argument,
|
|
62
62
|
criteria: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.criteria) || criteria,
|
|
63
|
-
searchOptions: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions)
|
|
63
|
+
searchOptions: Object.assign(Object.assign({}, searchOptions), listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions),
|
|
64
64
|
};
|
|
65
65
|
const serviceName = "PesquisaSP.getSuggestion";
|
|
66
66
|
const externalCriteria = {
|
|
@@ -91,11 +91,11 @@ class PesquisaFetcher {
|
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
93
|
const options = searchOptions != undefined
|
|
94
|
-
? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
94
|
+
? Object.assign(Object.assign({}, values === null || values === void 0 ? void 0 : values.searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
95
95
|
const reqBody = {
|
|
96
96
|
"serviceName": serviceName,
|
|
97
97
|
"requestBody": {
|
|
98
|
-
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (
|
|
98
|
+
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
|
99
99
|
"clientEventList": {
|
|
100
100
|
"clientEvent": []
|
|
101
101
|
}
|
|
@@ -534,6 +534,7 @@ class DatasetStrategy {
|
|
|
534
534
|
return false;
|
|
535
535
|
}
|
|
536
536
|
processSortingSide(request, dataUnit, serverSideFilters) {
|
|
537
|
+
var _a;
|
|
537
538
|
const localSorting = [];
|
|
538
539
|
const serverSorting = [];
|
|
539
540
|
if (request.sort != undefined) {
|
|
@@ -542,9 +543,7 @@ class DatasetStrategy {
|
|
|
542
543
|
}
|
|
543
544
|
for (const sort of request.sort) {
|
|
544
545
|
const descriptor = dataUnit.getField(sort.field);
|
|
545
|
-
const local = descriptor
|
|
546
|
-
&& descriptor.properties != undefined
|
|
547
|
-
&& (descriptor.properties.calculated === "true" || descriptor.userInterface === UserInterface.LONGTEXT);
|
|
546
|
+
const local = ((_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.properties) === null || _a === void 0 ? void 0 : _a.calculated) === "true" || (descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.LONGTEXT;
|
|
548
547
|
if (local) {
|
|
549
548
|
localSorting.push(sort);
|
|
550
549
|
}
|
|
@@ -655,25 +655,22 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
655
655
|
this._currentDataUnit = undefined;
|
|
656
656
|
this.crudConfig = undefined;
|
|
657
657
|
}
|
|
658
|
-
|
|
658
|
+
async initAttach() {
|
|
659
659
|
var _a, _b, _c, _d, _e, _f;
|
|
660
|
-
|
|
661
|
-
|
|
660
|
+
await this.loadAttachmentDataUnit();
|
|
661
|
+
this.returnToGridMode();
|
|
662
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
663
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
664
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
665
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
666
|
+
return;
|
|
662
667
|
}
|
|
663
|
-
if (
|
|
664
|
-
this.
|
|
665
|
-
if (
|
|
666
|
-
|
|
667
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
668
|
-
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
|
669
|
-
}
|
|
670
|
-
if (this.fetcherType === "Attach") {
|
|
671
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
672
|
-
if (hasMoreOneItem)
|
|
673
|
-
return;
|
|
674
|
-
}
|
|
675
|
-
return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
668
|
+
if (this.fetcherType === "Attach") {
|
|
669
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
670
|
+
if (hasMoreOneItem)
|
|
671
|
+
return;
|
|
676
672
|
}
|
|
673
|
+
(_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
677
674
|
}
|
|
678
675
|
/**
|
|
679
676
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -795,8 +792,9 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
795
792
|
}
|
|
796
793
|
});
|
|
797
794
|
}
|
|
798
|
-
componentWillLoad() {
|
|
795
|
+
async componentWillLoad() {
|
|
799
796
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
797
|
+
await this.initAttach();
|
|
800
798
|
}
|
|
801
799
|
componentWillRender() {
|
|
802
800
|
if (!this.fetcherType) {
|
|
@@ -824,9 +822,6 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
824
822
|
return null;
|
|
825
823
|
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this) }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary" }, this.getMessage("snkAttach.description")))))))));
|
|
826
824
|
}
|
|
827
|
-
static get watchers() { return {
|
|
828
|
-
"registerKey": ["registerKeyWatcher"]
|
|
829
|
-
}; }
|
|
830
825
|
static get style() { return snkAttachCss; }
|
|
831
826
|
}, [2, "snk-attach", {
|
|
832
827
|
"fetcherType": [1, "fetcher-type"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as DataFetcher } from './form-config-fetcher-e3094014.js';
|
|
2
|
-
import { a as PreloadManager } from './pesquisa-fetcher-
|
|
2
|
+
import { a as PreloadManager } from './pesquisa-fetcher-6d8e50bb.js';
|
|
3
3
|
import { SortMode, ApplicationContext, UserInterface, DateUtils, DataType } from '@sankhyalabs/core';
|
|
4
4
|
import './index-0ece87a6.js';
|
|
5
5
|
import './ISave-d8c8bc59.js';
|
|
@@ -374,6 +374,7 @@ class DatasetStrategy {
|
|
|
374
374
|
return false;
|
|
375
375
|
}
|
|
376
376
|
processSortingSide(request, dataUnit, serverSideFilters) {
|
|
377
|
+
var _a;
|
|
377
378
|
const localSorting = [];
|
|
378
379
|
const serverSorting = [];
|
|
379
380
|
if (request.sort != undefined) {
|
|
@@ -382,9 +383,7 @@ class DatasetStrategy {
|
|
|
382
383
|
}
|
|
383
384
|
for (const sort of request.sort) {
|
|
384
385
|
const descriptor = dataUnit.getField(sort.field);
|
|
385
|
-
const local = descriptor
|
|
386
|
-
&& descriptor.properties != undefined
|
|
387
|
-
&& (descriptor.properties.calculated === "true" || descriptor.userInterface === UserInterface.LONGTEXT);
|
|
386
|
+
const local = ((_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.properties) === null || _a === void 0 ? void 0 : _a.calculated) === "true" || (descriptor === null || descriptor === void 0 ? void 0 : descriptor.userInterface) === UserInterface.LONGTEXT;
|
|
388
387
|
if (local) {
|
|
389
388
|
localSorting.push(sort);
|
|
390
389
|
}
|
|
@@ -1039,12 +1038,12 @@ class PesquisaFetcher {
|
|
|
1039
1038
|
});
|
|
1040
1039
|
}
|
|
1041
1040
|
loadAdvancedSearch(entityName, argument, criteria, searchOptions) {
|
|
1042
|
-
var _a, _b, _c, _d;
|
|
1041
|
+
var _a, _b, _c, _d, _e;
|
|
1043
1042
|
const listenerResult = this.applySearchListener(SearchListenerType.beforeSearch, entityName, argument, criteria, searchOptions);
|
|
1044
1043
|
const values = {
|
|
1045
1044
|
argument: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.argument) || argument,
|
|
1046
1045
|
criteria: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.criteria) || criteria,
|
|
1047
|
-
searchOptions: (listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions)
|
|
1046
|
+
searchOptions: Object.assign(Object.assign({}, searchOptions), listenerResult === null || listenerResult === void 0 ? void 0 : listenerResult.searchOptions),
|
|
1048
1047
|
};
|
|
1049
1048
|
const serviceName = "PesquisaSP.getSuggestion";
|
|
1050
1049
|
const externalCriteria = {
|
|
@@ -1075,11 +1074,11 @@ class PesquisaFetcher {
|
|
|
1075
1074
|
};
|
|
1076
1075
|
}
|
|
1077
1076
|
const options = searchOptions != undefined
|
|
1078
|
-
? Object.assign(Object.assign({}, searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
1077
|
+
? Object.assign(Object.assign({}, values === null || values === void 0 ? void 0 : values.searchOptions), { "pkFieldName": searchOptions.codeFieldName, "label": searchOptions.descriptionFieldName, "fieldName": searchOptions.codeFieldName, "useDescriptionOptions": false, "enableRowsCounter": true }) : undefined;
|
|
1079
1078
|
const reqBody = {
|
|
1080
1079
|
"serviceName": serviceName,
|
|
1081
1080
|
"requestBody": {
|
|
1082
|
-
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (
|
|
1081
|
+
"criteria": Object.assign({ "entityName": entityName, "compacted": false, "ignoreEntityCriteria": (_d = options === null || options === void 0 ? void 0 : options.ignoreEntityCriteria) !== null && _d !== void 0 ? _d : false, "limit": this._defaultPageSize, "query": { "$": values.argument }, "orderByDesc": false, "externalCriteria": externalCriteria, "localEntityName": (_e = values.searchOptions) === null || _e === void 0 ? void 0 : _e.rootEntity }, { options }),
|
|
1083
1082
|
"clientEventList": {
|
|
1084
1083
|
"clientEvent": []
|
|
1085
1084
|
}
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, h, H as Host, g as getElement, c as createEvent
|
|
|
2
2
|
import { ApplicationContext, StringUtils, ErrorException, WarningException, ObjectUtils, DateUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { D as DataFetcher } from './form-config-fetcher-e3094014.js';
|
|
4
4
|
import { P as ParamType } from './ParamType-d5152b06.js';
|
|
5
|
-
import './pesquisa-fetcher-
|
|
5
|
+
import './pesquisa-fetcher-6d8e50bb.js';
|
|
6
6
|
import './index-0ece87a6.js';
|
|
7
7
|
import './ISave-d8c8bc59.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
@@ -4,7 +4,7 @@ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
|
4
4
|
import { C as ConfigStorage } from './ConfigStorage-928c3bf4.js';
|
|
5
5
|
import { d as dist, D as DataFetcher, U as UrlUtils } from './form-config-fetcher-e3094014.js';
|
|
6
6
|
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-e1cb288f.js';
|
|
7
|
-
import { D as DataUnitFetcher, P as PesquisaFetcher } from './pesquisa-fetcher-
|
|
7
|
+
import { D as DataUnitFetcher, P as PesquisaFetcher } from './pesquisa-fetcher-6d8e50bb.js';
|
|
8
8
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
10
10
|
import './PrintUtils-3e4ff0f5.js';
|