@sankhyalabs/sankhyablocks 8.15.0 → 8.15.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{SnkMultiSelectionListDataSource-303e85d1.js → SnkMultiSelectionListDataSource-b8360102.js} +1 -1
- package/dist/cjs/{pesquisa-fetcher-213797ec.js → pesquisa-fetcher-10fdaba3.js} +1 -0
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +7 -4
- package/dist/cjs/snk-attach.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.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-4b6ecda8.js → snk-guides-viewer-e91daefc.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-application/snk-application.js +13 -4
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +1 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +20 -20
- package/dist/components/dataunit-fetcher.js +1 -0
- package/dist/components/snk-application2.js +6 -3
- package/dist/esm/{SnkMultiSelectionListDataSource-36918dbf.js → SnkMultiSelectionListDataSource-c3d2aafe.js} +1 -1
- package/dist/esm/{pesquisa-fetcher-fe6f3826.js → pesquisa-fetcher-a974596b.js} +1 -0
- package/dist/esm/snk-actions-button_4.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +7 -4
- package/dist/esm/snk-attach.entry.js +1 -1
- package/dist/esm/snk-crud.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-113be3fd.js → snk-guides-viewer-6692cf55.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-f13f7616.entry.js → p-1305ba05.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0899e0b5.entry.js → p-1e62d863.entry.js} +1 -1
- package/dist/sankhyablocks/{p-af1ac81f.entry.js → p-4c62d9e4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-cce0865d.js → p-614a34b2.js} +1 -1
- package/dist/sankhyablocks/{p-328585d0.entry.js → p-68501237.entry.js} +1 -1
- package/dist/sankhyablocks/{p-164666b1.js → p-7737e3d4.js} +1 -1
- package/dist/sankhyablocks/{p-5cb07080.js → p-877d66d8.js} +1 -1
- package/dist/sankhyablocks/{p-154a7f33.entry.js → p-8884d119.entry.js} +1 -1
- package/dist/sankhyablocks/p-b93fdbf2.entry.js +11 -0
- package/dist/sankhyablocks/{p-b4525fc0.entry.js → p-de8cb5b5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-dec65f6c.entry.js → p-ebf8f4b0.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +1 -1
- package/dist/types/components.d.ts +1 -1
- package/package.json +1 -1
- package/dist/sankhyablocks/p-47bad461.entry.js +0 -11
@@ -1,7 +1,7 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
3
|
const DataFetcher = require('./DataFetcher-313debd8.js');
|
4
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
4
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-10fdaba3.js');
|
5
5
|
const core = require('@sankhyalabs/core');
|
6
6
|
require('./index-0922807b.js');
|
7
7
|
require('./ISave-e91b70a7.js');
|
@@ -262,6 +262,7 @@ class InMemoryLoader {
|
|
262
262
|
this.metadata = metadata;
|
263
263
|
this.records = records;
|
264
264
|
this._dataUnit = new core.DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
265
|
+
this._dataUnit.pageSize = 150;
|
265
266
|
this._dataUnit.metadataLoader = () => this.metadaLoader();
|
266
267
|
this._dataUnit.dataLoader = (dataUnit, request) => this.inMemoryLoader(dataUnit, request, this.getRecordsToLoad());
|
267
268
|
this._dataUnit.saveLoader = (_dataUnit, changes) => this.saveLoader(_dataUnit, changes);
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const DataFetcher = require('./DataFetcher-313debd8.js');
|
8
8
|
const ParamType = require('./ParamType-90b440a0.js');
|
9
|
-
require('./pesquisa-fetcher-
|
9
|
+
require('./pesquisa-fetcher-10fdaba3.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-942ce74b.js');
|
9
9
|
const DataFetcher = require('./DataFetcher-313debd8.js');
|
10
10
|
const authFetcher = require('./auth-fetcher-54f5ff9d.js');
|
11
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
11
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-10fdaba3.js');
|
12
12
|
const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
|
13
13
|
require('./form-config-fetcher-2dd00e5b.js');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
@@ -468,8 +468,11 @@ const SnkApplication = class {
|
|
468
468
|
/**
|
469
469
|
* Exibe o conteúdo passado em um Popup.
|
470
470
|
*/
|
471
|
-
async showPopUp(content, size = "full", useHeader = true) {
|
471
|
+
async showPopUp(content, size = "full", useHeader = true, onCloseCallback) {
|
472
472
|
this.clearContent(this._popUp);
|
473
|
+
this._popUp.addEventListener("ezClosePopup", () => {
|
474
|
+
onCloseCallback();
|
475
|
+
}, { once: true });
|
473
476
|
this._popUp.appendChild(content);
|
474
477
|
this._popUp.opened = true;
|
475
478
|
this._popUp.heightMode = size;
|
@@ -899,7 +902,7 @@ const SnkApplication = class {
|
|
899
902
|
const mdByName = {};
|
900
903
|
const { entity, entityDescription, criteria, searchOptions } = options;
|
901
904
|
if (mode === "ADVANCED") {
|
902
|
-
return new Promise(accept => {
|
905
|
+
return new Promise((accept, reject) => {
|
903
906
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
904
907
|
pesquisaContent[core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
905
908
|
pesquisaContent.argument = argument;
|
@@ -910,7 +913,7 @@ const SnkApplication = class {
|
|
910
913
|
this.closePopUp();
|
911
914
|
};
|
912
915
|
this.setPopUpTitle(entityDescription);
|
913
|
-
this.showPopUp(pesquisaContent);
|
916
|
+
this.showPopUp(pesquisaContent, undefined, undefined, reject);
|
914
917
|
});
|
915
918
|
}
|
916
919
|
else {
|
@@ -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 DataFetcher = require('./DataFetcher-313debd8.js');
|
8
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
8
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-10fdaba3.js');
|
9
9
|
require('./index-0922807b.js');
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-3ecd1278.js');
|
8
8
|
require('./DataFetcher-313debd8.js');
|
9
|
-
require('./pesquisa-fetcher-
|
9
|
+
require('./pesquisa-fetcher-10fdaba3.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');
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
7
7
|
const SnkFormConfigManager = require('./SnkFormConfigManager-f9dc0d28.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
9
|
require('./DataFetcher-313debd8.js');
|
10
|
-
require('./pesquisa-fetcher-
|
10
|
+
require('./pesquisa-fetcher-10fdaba3.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');
|
@@ -16,7 +16,7 @@ require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
require('./form-config-fetcher-2dd00e5b.js');
|
17
17
|
const taskbarElements = require('./taskbar-elements-3ecd1278.js');
|
18
18
|
const constants = require('./constants-35ddd366.js');
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-e91daefc.js');
|
20
20
|
const SnkMessageBuilder = require('./SnkMessageBuilder-66aa2557.js');
|
21
21
|
require('./ConfigStorage-942ce74b.js');
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -10,10 +10,10 @@ const ConfigStorage = require('./ConfigStorage-942ce74b.js');
|
|
10
10
|
const index$1 = require('./index-0922807b.js');
|
11
11
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
12
12
|
const index$2 = require('./index-102ba62d.js');
|
13
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
13
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-b8360102.js');
|
14
14
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
15
15
|
require('./DataFetcher-313debd8.js');
|
16
|
-
require('./pesquisa-fetcher-
|
16
|
+
require('./pesquisa-fetcher-10fdaba3.js');
|
17
17
|
require('./ISave-e91b70a7.js');
|
18
18
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
19
19
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
@@ -8,7 +8,7 @@ const fieldSearch = require('./field-search-f56aa7d6.js');
|
|
8
8
|
const taskbarElements = require('./taskbar-elements-3ecd1278.js');
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
10
10
|
require('./DataFetcher-313debd8.js');
|
11
|
-
require('./pesquisa-fetcher-
|
11
|
+
require('./pesquisa-fetcher-10fdaba3.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-e91daefc.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('./SnkFormConfigManager-f9dc0d28.js');
|
@@ -18,7 +18,7 @@ require('./taskbar-elements-3ecd1278.js');
|
|
18
18
|
require('./index-0922807b.js');
|
19
19
|
require('./index-102ba62d.js');
|
20
20
|
require('./constants-35ddd366.js');
|
21
|
-
require('./pesquisa-fetcher-
|
21
|
+
require('./pesquisa-fetcher-10fdaba3.js');
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
24
24
|
require('./ResourceIDUtils-5ff86aa7.js');
|
@@ -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-3ecd1278.js');
|
10
10
|
require('./DataFetcher-313debd8.js');
|
11
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
12
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
11
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-10fdaba3.js');
|
12
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-b8360102.js');
|
13
13
|
const index$1 = require('./index-0922807b.js');
|
14
14
|
require('./ISave-e91b70a7.js');
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -200,8 +200,11 @@ export class SnkApplication {
|
|
200
200
|
/**
|
201
201
|
* Exibe o conteúdo passado em um Popup.
|
202
202
|
*/
|
203
|
-
async showPopUp(content, size = "full", useHeader = true) {
|
203
|
+
async showPopUp(content, size = "full", useHeader = true, onCloseCallback) {
|
204
204
|
this.clearContent(this._popUp);
|
205
|
+
this._popUp.addEventListener("ezClosePopup", () => {
|
206
|
+
onCloseCallback();
|
207
|
+
}, { once: true });
|
205
208
|
this._popUp.appendChild(content);
|
206
209
|
this._popUp.opened = true;
|
207
210
|
this._popUp.heightMode = size;
|
@@ -633,7 +636,7 @@ export class SnkApplication {
|
|
633
636
|
const mdByName = {};
|
634
637
|
const { entity, entityDescription, criteria, searchOptions } = options;
|
635
638
|
if (mode === "ADVANCED") {
|
636
|
-
return new Promise(accept => {
|
639
|
+
return new Promise((accept, reject) => {
|
637
640
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
638
641
|
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
639
642
|
pesquisaContent.argument = argument;
|
@@ -644,7 +647,7 @@ export class SnkApplication {
|
|
644
647
|
this.closePopUp();
|
645
648
|
};
|
646
649
|
this.setPopUpTitle(entityDescription);
|
647
|
-
this.showPopUp(pesquisaContent);
|
650
|
+
this.showPopUp(pesquisaContent, undefined, undefined, reject);
|
648
651
|
});
|
649
652
|
}
|
650
653
|
else {
|
@@ -1416,7 +1419,7 @@ export class SnkApplication {
|
|
1416
1419
|
},
|
1417
1420
|
"showPopUp": {
|
1418
1421
|
"complexType": {
|
1419
|
-
"signature": "(content: HTMLElement, size?: \"auto\" | \"full\", useHeader?: boolean) => Promise<void>",
|
1422
|
+
"signature": "(content: HTMLElement, size?: \"auto\" | \"full\", useHeader?: boolean, onCloseCallback?: Function) => Promise<void>",
|
1420
1423
|
"parameters": [{
|
1421
1424
|
"tags": [],
|
1422
1425
|
"text": ""
|
@@ -1426,6 +1429,9 @@ export class SnkApplication {
|
|
1426
1429
|
}, {
|
1427
1430
|
"tags": [],
|
1428
1431
|
"text": ""
|
1432
|
+
}, {
|
1433
|
+
"tags": [],
|
1434
|
+
"text": ""
|
1429
1435
|
}],
|
1430
1436
|
"references": {
|
1431
1437
|
"Promise": {
|
@@ -1433,6 +1439,9 @@ export class SnkApplication {
|
|
1433
1439
|
},
|
1434
1440
|
"HTMLElement": {
|
1435
1441
|
"location": "global"
|
1442
|
+
},
|
1443
|
+
"Function": {
|
1444
|
+
"location": "global"
|
1436
1445
|
}
|
1437
1446
|
},
|
1438
1447
|
"return": "Promise<void>"
|
@@ -5,6 +5,7 @@ export default class InMemoryLoader {
|
|
5
5
|
this.metadata = metadata;
|
6
6
|
this.records = records;
|
7
7
|
this._dataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
8
|
+
this._dataUnit.pageSize = 150;
|
8
9
|
this._dataUnit.metadataLoader = () => this.metadaLoader();
|
9
10
|
this._dataUnit.dataLoader = (dataUnit, request) => this.inMemoryLoader(dataUnit, request, this.getRecordsToLoad());
|
10
11
|
this._dataUnit.saveLoader = (_dataUnit, changes) => this.saveLoader(_dataUnit, changes);
|
@@ -1,24 +1,24 @@
|
|
1
|
-
import snkDataUnitMessages from "./resources/snk-data-unit.msg
|
2
|
-
import snkFilterBarMessages from "./resources/snk-filter-bar.msg
|
3
|
-
import snkTaskbarMessages from "./resources/snk-taskbar.msg
|
4
|
-
import crudUtilsMessages from "./resources/crud-utils.msg
|
5
|
-
import snkExporterMessages from "./resources/snk-exporter.msg
|
6
|
-
import snkCrudMessages from "./resources/snk-crud.msg
|
7
|
-
import snkSimpleCrudMessages from "./resources/snk-simple-crud.msg
|
8
|
-
import fileViewerMessages from "./resources/file-viewer.msg
|
9
|
-
import snkApplicationMessages from "./resources/snk-application.msg
|
10
|
-
import { snkFormConfigMessages, snkConfigOptionsMessages, snkFieldConfigMessages, snkTabConfigMessages } from "./resources/snk-form.msg
|
11
|
-
import { snkConfiguratorMessages } from "./resources/snk-configurator.msg
|
12
|
-
import { snkGridMessages, snkGridConfigMessages } from "./resources/snk-grid.msg
|
13
|
-
import { snkDataExporterMessages } from "./resources/snk-data-exporter.msg
|
14
|
-
import { snkFilterParamConfigMessages } from "./resources/snk-filter-param-config.msg
|
15
|
-
import { snkFilterFieldSearchMessages } from "./resources/snk-filter-field-search.msg
|
16
|
-
import { snkSimpleBarMessages } from './resources/snk-simple-bar.msg
|
1
|
+
import snkDataUnitMessages from "./resources/snk-data-unit.msg";
|
2
|
+
import snkFilterBarMessages from "./resources/snk-filter-bar.msg";
|
3
|
+
import snkTaskbarMessages from "./resources/snk-taskbar.msg";
|
4
|
+
import crudUtilsMessages from "./resources/crud-utils.msg";
|
5
|
+
import snkExporterMessages from "./resources/snk-exporter.msg";
|
6
|
+
import snkCrudMessages from "./resources/snk-crud.msg";
|
7
|
+
import snkSimpleCrudMessages from "./resources/snk-simple-crud.msg";
|
8
|
+
import fileViewerMessages from "./resources/file-viewer.msg";
|
9
|
+
import snkApplicationMessages from "./resources/snk-application.msg";
|
10
|
+
import { snkFormConfigMessages, snkConfigOptionsMessages, snkFieldConfigMessages, snkTabConfigMessages } from "./resources/snk-form.msg";
|
11
|
+
import { snkConfiguratorMessages } from "./resources/snk-configurator.msg";
|
12
|
+
import { snkGridMessages, snkGridConfigMessages } from "./resources/snk-grid.msg";
|
13
|
+
import { snkDataExporterMessages } from "./resources/snk-data-exporter.msg";
|
14
|
+
import { snkFilterParamConfigMessages } from "./resources/snk-filter-param-config.msg";
|
15
|
+
import { snkFilterFieldSearchMessages } from "./resources/snk-filter-field-search.msg";
|
16
|
+
import { snkSimpleBarMessages } from './resources/snk-simple-bar.msg';
|
17
17
|
import { snkAttachMessages } from "./resources/snk-attach.msg";
|
18
|
-
import { snkPersonalizedFilterMessages } from "./resources/snk-personalized-filter.msg
|
19
|
-
import { snkEntityListMessages } from "./resources/snk-entity-list.msg
|
20
|
-
import { snkActionsButtonMessages } from "./resources/snk-actions-button.msg
|
21
|
-
import { snkPrintSelectorMessages } from "./resources/snk-print-selector.msg
|
18
|
+
import { snkPersonalizedFilterMessages } from "./resources/snk-personalized-filter.msg";
|
19
|
+
import { snkEntityListMessages } from "./resources/snk-entity-list.msg";
|
20
|
+
import { snkActionsButtonMessages } from "./resources/snk-actions-button.msg";
|
21
|
+
import { snkPrintSelectorMessages } from "./resources/snk-print-selector.msg";
|
22
22
|
import { ApplicationContext } from "@sankhyalabs/core";
|
23
23
|
export class SnkMessageBuilder {
|
24
24
|
constructor(domainName) {
|
@@ -420,6 +420,7 @@ class InMemoryLoader {
|
|
420
420
|
this.metadata = metadata;
|
421
421
|
this.records = records;
|
422
422
|
this._dataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
423
|
+
this._dataUnit.pageSize = 150;
|
423
424
|
this._dataUnit.metadataLoader = () => this.metadaLoader();
|
424
425
|
this._dataUnit.dataLoader = (dataUnit, request) => this.inMemoryLoader(dataUnit, request, this.getRecordsToLoad());
|
425
426
|
this._dataUnit.saveLoader = (_dataUnit, changes) => this.saveLoader(_dataUnit, changes);
|
@@ -459,8 +459,11 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
459
459
|
/**
|
460
460
|
* Exibe o conteúdo passado em um Popup.
|
461
461
|
*/
|
462
|
-
async showPopUp(content, size = "full", useHeader = true) {
|
462
|
+
async showPopUp(content, size = "full", useHeader = true, onCloseCallback) {
|
463
463
|
this.clearContent(this._popUp);
|
464
|
+
this._popUp.addEventListener("ezClosePopup", () => {
|
465
|
+
onCloseCallback();
|
466
|
+
}, { once: true });
|
464
467
|
this._popUp.appendChild(content);
|
465
468
|
this._popUp.opened = true;
|
466
469
|
this._popUp.heightMode = size;
|
@@ -890,7 +893,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
890
893
|
const mdByName = {};
|
891
894
|
const { entity, entityDescription, criteria, searchOptions } = options;
|
892
895
|
if (mode === "ADVANCED") {
|
893
|
-
return new Promise(accept => {
|
896
|
+
return new Promise((accept, reject) => {
|
894
897
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
895
898
|
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
896
899
|
pesquisaContent.argument = argument;
|
@@ -901,7 +904,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
901
904
|
this.closePopUp();
|
902
905
|
};
|
903
906
|
this.setPopUpTitle(entityDescription);
|
904
|
-
this.showPopUp(pesquisaContent);
|
907
|
+
this.showPopUp(pesquisaContent, undefined, undefined, reject);
|
905
908
|
});
|
906
909
|
}
|
907
910
|
else {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { D as DataFetcher } from './DataFetcher-c1baf61d.js';
|
2
|
-
import { a as PreloadManager } from './pesquisa-fetcher-
|
2
|
+
import { a as PreloadManager } from './pesquisa-fetcher-a974596b.js';
|
3
3
|
import { SortMode, ApplicationContext, UserInterface, DateUtils } from '@sankhyalabs/core';
|
4
4
|
import './index-0ece87a6.js';
|
5
5
|
import './ISave-d8c8bc59.js';
|
@@ -260,6 +260,7 @@ class InMemoryLoader {
|
|
260
260
|
this.metadata = metadata;
|
261
261
|
this.records = records;
|
262
262
|
this._dataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
263
|
+
this._dataUnit.pageSize = 150;
|
263
264
|
this._dataUnit.metadataLoader = () => this.metadaLoader();
|
264
265
|
this._dataUnit.dataLoader = (dataUnit, request) => this.inMemoryLoader(dataUnit, request, this.getRecordsToLoad());
|
265
266
|
this._dataUnit.saveLoader = (_dataUnit, changes) => this.saveLoader(_dataUnit, changes);
|
@@ -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 './DataFetcher-c1baf61d.js';
|
4
4
|
import { P as ParamType } from './ParamType-d5152b06.js';
|
5
|
-
import './pesquisa-fetcher-
|
5
|
+
import './pesquisa-fetcher-a974596b.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-86187da3.js';
|
5
5
|
import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-c1baf61d.js';
|
6
6
|
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-039abba3.js';
|
7
|
-
import { D as DataUnitFetcher, P as PesquisaFetcher } from './pesquisa-fetcher-
|
7
|
+
import { D as DataUnitFetcher, P as PesquisaFetcher } from './pesquisa-fetcher-a974596b.js';
|
8
8
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
9
9
|
import './form-config-fetcher-30fb808f.js';
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
@@ -464,8 +464,11 @@ const SnkApplication = class {
|
|
464
464
|
/**
|
465
465
|
* Exibe o conteúdo passado em um Popup.
|
466
466
|
*/
|
467
|
-
async showPopUp(content, size = "full", useHeader = true) {
|
467
|
+
async showPopUp(content, size = "full", useHeader = true, onCloseCallback) {
|
468
468
|
this.clearContent(this._popUp);
|
469
|
+
this._popUp.addEventListener("ezClosePopup", () => {
|
470
|
+
onCloseCallback();
|
471
|
+
}, { once: true });
|
469
472
|
this._popUp.appendChild(content);
|
470
473
|
this._popUp.opened = true;
|
471
474
|
this._popUp.heightMode = size;
|
@@ -895,7 +898,7 @@ const SnkApplication = class {
|
|
895
898
|
const mdByName = {};
|
896
899
|
const { entity, entityDescription, criteria, searchOptions } = options;
|
897
900
|
if (mode === "ADVANCED") {
|
898
|
-
return new Promise(accept => {
|
901
|
+
return new Promise((accept, reject) => {
|
899
902
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
900
903
|
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
901
904
|
pesquisaContent.argument = argument;
|
@@ -906,7 +909,7 @@ const SnkApplication = class {
|
|
906
909
|
this.closePopUp();
|
907
910
|
};
|
908
911
|
this.setPopUpTitle(entityDescription);
|
909
|
-
this.showPopUp(pesquisaContent);
|
912
|
+
this.showPopUp(pesquisaContent, undefined, undefined, reject);
|
910
913
|
});
|
911
914
|
}
|
912
915
|
else {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
|
3
3
|
import { D as DataFetcher } from './DataFetcher-c1baf61d.js';
|
4
|
-
import { a as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './pesquisa-fetcher-
|
4
|
+
import { a as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './pesquisa-fetcher-a974596b.js';
|
5
5
|
import './index-0ece87a6.js';
|
6
6
|
import { S as SaveErrorsEnum } from './ISave-d8c8bc59.js';
|
7
7
|
import './filter-item-type.enum-d45e026f.js';
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
3
3
|
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
4
4
|
import './DataFetcher-c1baf61d.js';
|
5
|
-
import './pesquisa-fetcher-
|
5
|
+
import './pesquisa-fetcher-a974596b.js';
|
6
6
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
7
7
|
import './ISave-d8c8bc59.js';
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
@@ -3,7 +3,7 @@ import { Action } from '@sankhyalabs/core';
|
|
3
3
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager-f53f9f87.js';
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
5
|
import './DataFetcher-c1baf61d.js';
|
6
|
-
import './pesquisa-fetcher-
|
6
|
+
import './pesquisa-fetcher-a974596b.js';
|
7
7
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
8
8
|
import './ISave-d8c8bc59.js';
|
9
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
@@ -12,7 +12,7 @@ import './filter-item-type.enum-d45e026f.js';
|
|
12
12
|
import './form-config-fetcher-30fb808f.js';
|
13
13
|
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
14
14
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-6692cf55.js';
|
16
16
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-0a4becdd.js';
|
17
17
|
import './ConfigStorage-86187da3.js';
|
18
18
|
import './PrintUtils-3e4ff0f5.js';
|
@@ -6,10 +6,10 @@ import { C as ConfigStorage } from './ConfigStorage-86187da3.js';
|
|
6
6
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
7
7
|
import { T as TaskbarProcessor, o as openFieldSearch, b as buildFieldSearch } from './field-search-efbe307f.js';
|
8
8
|
import { s as store } from './index-bdf75557.js';
|
9
|
-
import { S as SnkMultiSelectionListDataSource, C as CrudUtils } from './SnkMultiSelectionListDataSource-
|
9
|
+
import { S as SnkMultiSelectionListDataSource, C as CrudUtils } from './SnkMultiSelectionListDataSource-c3d2aafe.js';
|
10
10
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
11
11
|
import './DataFetcher-c1baf61d.js';
|
12
|
-
import './pesquisa-fetcher-
|
12
|
+
import './pesquisa-fetcher-a974596b.js';
|
13
13
|
import './ISave-d8c8bc59.js';
|
14
14
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
15
15
|
import './filter-item-type.enum-d45e026f.js';
|
@@ -6,7 +6,7 @@ import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } fr
|
|
6
6
|
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
7
7
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
8
8
|
import './DataFetcher-c1baf61d.js';
|
9
|
-
import './pesquisa-fetcher-
|
9
|
+
import './pesquisa-fetcher-a974596b.js';
|
10
10
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
11
11
|
import './ISave-d8c8bc59.js';
|
12
12
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-6692cf55.js';
|
2
2
|
import './index-a7d3d3f1.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import './SnkFormConfigManager-f53f9f87.js';
|
@@ -14,7 +14,7 @@ import './taskbar-elements-2473c8ac.js';
|
|
14
14
|
import './index-0ece87a6.js';
|
15
15
|
import './index-bdf75557.js';
|
16
16
|
import './constants-8457af36.js';
|
17
|
-
import './pesquisa-fetcher-
|
17
|
+
import './pesquisa-fetcher-a974596b.js';
|
18
18
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
19
19
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
20
20
|
import './ResourceIDUtils-a114189a.js';
|
@@ -4,8 +4,8 @@ import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { d as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-8457af36.js';
|
5
5
|
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
6
6
|
import './DataFetcher-c1baf61d.js';
|
7
|
-
import { I as InMemoryLoader } from './pesquisa-fetcher-
|
8
|
-
import { S as SnkMultiSelectionListDataSource, C as CrudUtils } from './SnkMultiSelectionListDataSource-
|
7
|
+
import { I as InMemoryLoader } from './pesquisa-fetcher-a974596b.js';
|
8
|
+
import { S as SnkMultiSelectionListDataSource, C as CrudUtils } from './SnkMultiSelectionListDataSource-c3d2aafe.js';
|
9
9
|
import { P as PresentationMode } from './index-0ece87a6.js';
|
10
10
|
import './ISave-d8c8bc59.js';
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|