@sankhyalabs/sankhyablocks 8.1.0 → 8.2.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-73e7afff.js → ConfigStorage-12397f18.js} +163 -51
- package/dist/cjs/{DataFetcher-004811c6.js → DataFetcher-f2da1f79.js} +68 -30
- package/dist/cjs/ISave-d68ce3cd.js +8 -0
- package/dist/cjs/ResourceIDUtils-5ff86aa7.js +12 -0
- package/dist/cjs/{SnkFormConfigManager-d1f1a222.js → SnkFormConfigManager-13f79e37.js} +19 -21
- package/dist/cjs/auth-fetcher-319a4cb2.js +34 -0
- package/dist/cjs/{dataunit-fetcher-029eafbd.js → dataunit-fetcher-e72068c1.js} +1 -1
- package/dist/cjs/{form-config-fetcher-181767c9.js → form-config-fetcher-5d62ab62.js} +66 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-9a97994a.js → pesquisa-fetcher-8c363096.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button.cjs.entry.js +18 -11
- package/dist/cjs/snk-application.cjs.entry.js +51 -73
- package/dist/cjs/snk-attach.cjs.entry.js +7 -13
- package/dist/cjs/snk-configurator.cjs.entry.js +2 -1
- package/dist/cjs/snk-crud.cjs.entry.js +28 -9
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
- package/dist/cjs/{snk-data-unit-d5109a08.js → snk-data-unit-80a00ae4.js} +8 -6
- package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +18 -25
- package/dist/cjs/snk-entity-list.cjs.entry.js +0 -4
- package/dist/cjs/snk-filter-bar.cjs.entry.js +14 -17
- package/dist/cjs/snk-filter-detail.cjs.entry.js +1 -15
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -19
- package/dist/cjs/snk-form-config.cjs.entry.js +6 -17
- package/dist/cjs/snk-form-view.cjs.entry.js +6 -1
- package/dist/cjs/snk-form.cjs.entry.js +12 -8
- package/dist/cjs/snk-grid-config.cjs.entry.js +5 -6
- package/dist/cjs/snk-grid.cjs.entry.js +20 -20
- package/dist/cjs/{snk-guides-viewer-aa3e3bfa.js → snk-guides-viewer-a7cd6fda.js} +18 -9
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +13 -16
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +22 -80
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -1
- package/dist/collection/components/snk-actions-button/actions/index.js +3 -4
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +8 -4
- package/dist/collection/components/snk-application/snk-application.js +60 -65
- package/dist/collection/components/snk-configurator/snk-configurator.js +19 -1
- package/dist/collection/components/snk-crud/snk-crud.js +63 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +65 -15
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +27 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +66 -30
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +42 -7
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +0 -23
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +2 -12
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +21 -16
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +28 -12
- package/dist/collection/components/snk-form/SnkFormConfigManager.js +17 -19
- package/dist/collection/components/snk-form/snk-form.js +46 -2
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +5 -15
- package/dist/collection/components/snk-grid/snk-grid.js +110 -16
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +19 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +28 -12
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +43 -9
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +19 -1
- package/dist/collection/lib/configs/ConfigStorage.js +33 -44
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -59
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +39 -30
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +0 -24
- package/dist/collection/lib/index.js +10 -0
- package/dist/collection/lib/resourceid/ResourceIDUtils.js +7 -0
- package/dist/collection/lib/utils/urlutils.js +29 -0
- package/dist/components/ConfigStorage.js +161 -48
- package/dist/components/DataFetcher.js +68 -30
- package/dist/components/ResourceIDUtils.js +10 -0
- package/dist/components/SnkFormConfigManager.js +17 -19
- package/dist/components/auth-fetcher.js +32 -0
- package/dist/components/form-config-fetcher.js +64 -2
- package/dist/components/snk-actions-button2.js +23 -9
- package/dist/components/snk-application2.js +132 -154
- package/dist/components/snk-attach2.js +1 -8
- package/dist/components/snk-configurator2.js +3 -1
- package/dist/components/snk-crud.js +29 -7
- package/dist/components/snk-data-unit2.js +10 -6
- package/dist/components/snk-detail-view2.js +28 -23
- package/dist/components/snk-entity-list.js +0 -4
- package/dist/components/snk-filter-bar2.js +12 -12
- package/dist/components/snk-filter-detail2.js +2 -12
- package/dist/components/snk-filter-modal-item2.js +5 -16
- package/dist/components/snk-form-config2.js +5 -15
- package/dist/components/snk-form-view2.js +6 -1
- package/dist/components/snk-form.js +9 -2
- package/dist/components/snk-grid-config2.js +4 -2
- package/dist/components/snk-grid2.js +23 -16
- package/dist/components/snk-personalized-filter2.js +11 -11
- package/dist/components/snk-simple-crud2.js +12 -69
- package/dist/components/snk-taskbar2.js +3 -1
- package/dist/esm/{ConfigStorage-19a7260b.js → ConfigStorage-932ab366.js} +162 -49
- package/dist/esm/{DataFetcher-e0fc5549.js → DataFetcher-7e18aa30.js} +68 -30
- package/dist/esm/ISave-4412b20c.js +8 -0
- package/dist/esm/ResourceIDUtils-a114189a.js +10 -0
- package/dist/esm/{SnkFormConfigManager-1a42eb02.js → SnkFormConfigManager-bb9afc3f.js} +19 -21
- package/dist/esm/auth-fetcher-6d9664b7.js +32 -0
- package/dist/esm/{dataunit-fetcher-6a695723.js → dataunit-fetcher-91a4eb82.js} +1 -1
- package/dist/esm/{form-config-fetcher-9e167008.js → form-config-fetcher-aaaa79a6.js} +65 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-9118eb7a.js → pesquisa-fetcher-56b30fb4.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button.entry.js +18 -11
- package/dist/esm/snk-application.entry.js +49 -71
- package/dist/esm/snk-attach.entry.js +3 -9
- package/dist/esm/snk-configurator.entry.js +2 -1
- package/dist/esm/snk-crud.entry.js +28 -9
- package/dist/esm/snk-data-exporter.entry.js +2 -2
- package/dist/esm/{snk-data-unit-3a0bbfcb.js → snk-data-unit-3ab57d1a.js} +8 -6
- package/dist/esm/snk-data-unit.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +18 -25
- package/dist/esm/snk-entity-list.entry.js +0 -4
- package/dist/esm/snk-filter-bar.entry.js +14 -17
- package/dist/esm/snk-filter-detail.entry.js +2 -16
- package/dist/esm/snk-filter-modal-item.entry.js +6 -20
- package/dist/esm/snk-form-config.entry.js +7 -18
- package/dist/esm/snk-form-view.entry.js +6 -1
- package/dist/esm/snk-form.entry.js +12 -8
- package/dist/esm/snk-grid-config.entry.js +5 -6
- package/dist/esm/snk-grid.entry.js +20 -20
- package/dist/esm/{snk-guides-viewer-aa386f6e.js → snk-guides-viewer-cc709b5f.js} +18 -9
- package/dist/esm/snk-guides-viewer.entry.js +8 -8
- package/dist/esm/snk-personalized-filter.entry.js +13 -16
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +13 -71
- package/dist/esm/snk-taskbar.entry.js +2 -1
- package/dist/sankhyablocks/p-01739b21.entry.js +1 -0
- package/dist/sankhyablocks/{p-e7e54737.entry.js → p-03bb1aea.entry.js} +1 -1
- package/dist/sankhyablocks/p-05dbc70e.entry.js +1 -0
- package/dist/sankhyablocks/{p-0a4c753d.js → p-14eac6fe.js} +1 -1
- package/dist/sankhyablocks/{p-2ac9c585.js → p-2d333d22.js} +1 -1
- package/dist/sankhyablocks/p-41e897f1.js +56 -0
- package/dist/sankhyablocks/p-48a40939.js +1 -0
- package/dist/sankhyablocks/p-611aa624.entry.js +1 -0
- package/dist/sankhyablocks/p-66bb8c20.entry.js +1 -0
- package/dist/sankhyablocks/p-688dcb4c.js +1 -0
- package/dist/sankhyablocks/p-6f154396.entry.js +1 -0
- package/dist/sankhyablocks/p-787071a8.js +1 -0
- package/dist/sankhyablocks/p-8481bb59.entry.js +1 -0
- package/dist/sankhyablocks/p-8818d8f6.entry.js +1 -0
- package/dist/sankhyablocks/p-93f6ca04.entry.js +1 -0
- package/dist/sankhyablocks/p-9a270401.entry.js +1 -0
- package/dist/sankhyablocks/p-9e7d65a4.js +1 -0
- package/dist/sankhyablocks/p-a52a6c9d.js +26 -0
- package/dist/sankhyablocks/p-b6003974.entry.js +1 -0
- package/dist/sankhyablocks/p-c555075c.entry.js +1 -0
- package/dist/sankhyablocks/{p-7c7764bf.entry.js → p-d13c00b6.entry.js} +1 -1
- package/dist/sankhyablocks/p-d4f9ee17.entry.js +1 -0
- package/dist/sankhyablocks/p-d53a9169.entry.js +1 -0
- package/dist/sankhyablocks/p-d7638f45.entry.js +11 -0
- package/dist/sankhyablocks/p-e086cc2a.entry.js +1 -0
- package/dist/sankhyablocks/p-e64f3e17.entry.js +1 -0
- package/dist/sankhyablocks/p-ed41b38c.js +1 -0
- package/dist/sankhyablocks/p-ed705cbb.entry.js +1 -0
- package/dist/sankhyablocks/p-efc10705.entry.js +1 -0
- package/dist/sankhyablocks/p-f74fe358.js +1 -0
- package/dist/sankhyablocks/{p-df8621b4.js → p-f8e6b97e.js} +1 -1
- package/dist/sankhyablocks/p-f91e0c5d.entry.js +1 -0
- package/dist/sankhyablocks/p-fa523d6b.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/actions/index.d.ts +2 -1
- package/dist/types/components/snk-application/snk-application.d.ts +8 -13
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +4 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +10 -0
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +13 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +5 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +13 -2
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +8 -0
- package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +0 -4
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +0 -3
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.d.ts +5 -4
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -0
- package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +5 -4
- package/dist/types/components/snk-form/snk-form.d.ts +9 -1
- package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +0 -2
- package/dist/types/components/snk-grid/snk-grid.d.ts +18 -1
- package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +5 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +8 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +4 -0
- package/dist/types/components.d.ts +189 -21
- package/dist/types/lib/configs/ConfigStorage.d.ts +11 -13
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +0 -7
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +0 -1
- package/dist/types/lib/index.d.ts +11 -0
- package/dist/types/lib/resourceid/ResourceIDUtils.d.ts +3 -0
- package/dist/types/lib/utils/urlutils.d.ts +14 -0
- package/package.json +2 -2
- package/dist/cjs/filter-bar-config-fetcher-2b8ed9d0.js +0 -155
- package/dist/cjs/resource-fetcher-c0332609.js +0 -68
- package/dist/components/filter-bar-config-fetcher.js +0 -153
- package/dist/components/resource-fetcher.js +0 -66
- package/dist/esm/filter-bar-config-fetcher-06e02851.js +0 -153
- package/dist/esm/resource-fetcher-768d5556.js +0 -66
- package/dist/sankhyablocks/p-0a94fdbd.entry.js +0 -1
- package/dist/sankhyablocks/p-0ed0fc02.entry.js +0 -1
- package/dist/sankhyablocks/p-1e0189ff.entry.js +0 -1
- package/dist/sankhyablocks/p-216f081a.entry.js +0 -1
- package/dist/sankhyablocks/p-50d72261.entry.js +0 -1
- package/dist/sankhyablocks/p-6759adae.entry.js +0 -1
- package/dist/sankhyablocks/p-7b8b8ae9.js +0 -10
- package/dist/sankhyablocks/p-815a42c0.entry.js +0 -1
- package/dist/sankhyablocks/p-8a41172a.entry.js +0 -1
- package/dist/sankhyablocks/p-8f8184ff.js +0 -56
- package/dist/sankhyablocks/p-8fdc3108.js +0 -1
- package/dist/sankhyablocks/p-976e56e9.js +0 -1
- package/dist/sankhyablocks/p-98f9d076.js +0 -17
- package/dist/sankhyablocks/p-9edad923.js +0 -1
- package/dist/sankhyablocks/p-abdcac04.entry.js +0 -1
- package/dist/sankhyablocks/p-b0847056.entry.js +0 -1
- package/dist/sankhyablocks/p-bc735728.entry.js +0 -1
- package/dist/sankhyablocks/p-be684b38.entry.js +0 -1
- package/dist/sankhyablocks/p-befbc9ee.entry.js +0 -1
- package/dist/sankhyablocks/p-c0f656af.entry.js +0 -1
- package/dist/sankhyablocks/p-c6380ea2.entry.js +0 -1
- package/dist/sankhyablocks/p-ccbfb1cf.entry.js +0 -1
- package/dist/sankhyablocks/p-d1b89765.js +0 -1
- package/dist/sankhyablocks/p-de69b4b0.entry.js +0 -1
- package/dist/sankhyablocks/p-e28129aa.entry.js +0 -1
- package/dist/sankhyablocks/p-f31bfdee.entry.js +0 -1
- package/dist/sankhyablocks/p-f92fda53.entry.js +0 -11
@@ -8,13 +8,14 @@ const ENTITY_NAME_PROPERTY = '__ENTITY_NAME__';
|
|
8
8
|
const NUFIN_COLUMN = 'NUFIN';
|
9
9
|
const SERVICE_GET_CONFIGURATIONS = 'SystemUtilsSP.getConf';
|
10
10
|
export default class Actions {
|
11
|
-
constructor(actionsExecuteInterface, dataUnit) {
|
11
|
+
constructor(actionsExecuteInterface, dataUnit, appResourceId) {
|
12
12
|
var _a;
|
13
13
|
this._lastValuesCache = {};
|
14
14
|
this._actionsExecuteInterface = actionsExecuteInterface;
|
15
15
|
this._dataUnit = dataUnit;
|
16
16
|
this._selectedRows = ((_a = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getSelectionInfo()) === null || _a === void 0 ? void 0 : _a.isAllRecords()) ? [] : dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getSelectionInfo().records;
|
17
17
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
18
|
+
this._appResourceId = appResourceId;
|
18
19
|
}
|
19
20
|
apply(action, hasParamsToSave) {
|
20
21
|
this._application.closePopUp();
|
@@ -277,9 +278,7 @@ export default class Actions {
|
|
277
278
|
}
|
278
279
|
}
|
279
280
|
async buildResourceId(actionId) {
|
280
|
-
|
281
|
-
appResId = await this._application.getResourceID();
|
282
|
-
return appResId + '.actionconfig.' + actionId;
|
281
|
+
return this._appResourceId + '.actionconfig.' + actionId;
|
283
282
|
}
|
284
283
|
prepareAndExecute(execSource, executeAction) {
|
285
284
|
this.addRows(execSource);
|
@@ -4,13 +4,14 @@ import { DataFetcher } from '../../lib/http/data-fetcher/DataFetcher';
|
|
4
4
|
import ExecutorFactory from './actions/factory/executor.factory';
|
5
5
|
import Actions from './actions';
|
6
6
|
import ClientEventConfirm from './clientEvent';
|
7
|
+
import ResourceIDUtils from '../../lib/resourceid/ResourceIDUtils';
|
7
8
|
export class SnkActionsButton {
|
8
9
|
constructor() {
|
9
10
|
this.CLIENT_EVENT_CONFIRM_NAME = "br.com.sankhya.actionbutton.clientconfirm";
|
10
11
|
this.handleClick = (evt) => {
|
11
12
|
const selectedAction = this._actions.find((action) => action.actionID == evt.detail.id);
|
12
13
|
const executor = new ExecutorFactory(selectedAction.type).executor;
|
13
|
-
const action = new Actions(executor, this._dataUnit);
|
14
|
+
const action = new Actions(executor, this._dataUnit, this._resourceID);
|
14
15
|
action.execute(Object.assign({}, selectedAction));
|
15
16
|
this._showDropdown = false;
|
16
17
|
};
|
@@ -68,12 +69,15 @@ export class SnkActionsButton {
|
|
68
69
|
document.addEventListener("scroll", this.positionDropdown.bind(this));
|
69
70
|
}
|
70
71
|
async componentWillLoad() {
|
71
|
-
var _a;
|
72
72
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
73
|
-
this._resourceID = await this._application.getResourceID();
|
74
73
|
this._isOrderActions = await this._application.getBooleanParam('global.ordenar.acoes.personalizadas');
|
75
|
-
|
74
|
+
const snkDataUnit = this._element.parentElement;
|
75
|
+
this._dataUnit = snkDataUnit === null || snkDataUnit === void 0 ? void 0 : snkDataUnit.dataUnit;
|
76
|
+
this._resourceID = snkDataUnit === null || snkDataUnit === void 0 ? void 0 : snkDataUnit.resourceID;
|
76
77
|
this._entityName = this._dataUnit.name.split('/')[2];
|
78
|
+
if (this._resourceID == undefined) {
|
79
|
+
this._resourceID = await ResourceIDUtils.getResourceID();
|
80
|
+
}
|
77
81
|
this.setEvents();
|
78
82
|
this.getActions().then(() => {
|
79
83
|
this.loadItems();
|
@@ -13,7 +13,6 @@ import Workspace from "../../lib/workspace/workspace";
|
|
13
13
|
import AppletCaller from "../../lib/applet-caller/applet-caller";
|
14
14
|
import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
|
15
15
|
import MGEAuthorization from '../../lib/auth/mgeauthorization.module';
|
16
|
-
import GridConfigFetcher from "../../lib/http/data-fetcher/fetchers/grid-config-fetcher";
|
17
16
|
import AuthFetcher, { AutorizationType } from "../../lib/http/data-fetcher/fetchers/auth-fetcher";
|
18
17
|
import { SnkMessageBuilder } from "../../lib/message/SnkMessageBuilder";
|
19
18
|
/**
|
@@ -36,16 +35,21 @@ export class SnkApplication {
|
|
36
35
|
}
|
37
36
|
return this._parameters;
|
38
37
|
}
|
39
|
-
|
40
|
-
if (
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
38
|
+
async getAuth(resourceID) {
|
39
|
+
if (resourceID == undefined) {
|
40
|
+
return this.getApplicationAuth();
|
41
|
+
}
|
42
|
+
else {
|
43
|
+
return new Promise((resolve, reject) => {
|
44
|
+
this.authFetcher.getData(resourceID).then((authList) => {
|
45
|
+
resolve(authList);
|
46
|
+
}).catch(error => {
|
47
|
+
reject(error);
|
48
|
+
});
|
49
|
+
});
|
45
50
|
}
|
46
|
-
return this._resourceID;
|
47
51
|
}
|
48
|
-
|
52
|
+
async getApplicationAuth() {
|
49
53
|
if (this._auth) {
|
50
54
|
return Promise.resolve(this._auth);
|
51
55
|
}
|
@@ -54,7 +58,7 @@ export class SnkApplication {
|
|
54
58
|
const waitingAuth = this._authPromises.length > 0;
|
55
59
|
this._authPromises.push(new PendingPromise(resolve, reject));
|
56
60
|
if (!waitingAuth) {
|
57
|
-
this.authFetcher.getData(this.
|
61
|
+
this.authFetcher.getData(this.applicationResourceID).then((authList) => {
|
58
62
|
this._auth = authList;
|
59
63
|
while (this._authPromises.length > 0) {
|
60
64
|
this._authPromises.pop().resolve(this._auth);
|
@@ -73,7 +77,7 @@ export class SnkApplication {
|
|
73
77
|
*/
|
74
78
|
async isUserSup() {
|
75
79
|
return new Promise((resolve, reject) => {
|
76
|
-
this.
|
80
|
+
this.getAuth().then((authorization) => {
|
77
81
|
this.getAuthList(authorization).then((auths) => {
|
78
82
|
resolve(auths.isSup);
|
79
83
|
}).catch(error => reject(error));
|
@@ -87,9 +91,9 @@ export class SnkApplication {
|
|
87
91
|
/**
|
88
92
|
* Obtém `true` caso o usuário logado tem permissão pra determinada ação.
|
89
93
|
*/
|
90
|
-
async hasAccess(access) {
|
94
|
+
async hasAccess(access, resourceID) {
|
91
95
|
return new Promise((resolve, reject) => {
|
92
|
-
this.
|
96
|
+
this.getAuth(resourceID).then((authorization) => {
|
93
97
|
this.getAuthList(authorization).then((auths) => {
|
94
98
|
resolve(auths.isSup || auths.actions[access]);
|
95
99
|
}).catch(error => reject(error));
|
@@ -99,9 +103,9 @@ export class SnkApplication {
|
|
99
103
|
/**
|
100
104
|
* Obtém todos os acessos do usuário logado.
|
101
105
|
*/
|
102
|
-
async getAllAccess() {
|
106
|
+
async getAllAccess(resourceID) {
|
103
107
|
return new Promise((resolve, reject) => {
|
104
|
-
this.
|
108
|
+
this.getAuth(resourceID).then((authorization) => {
|
105
109
|
this.getAuthList(authorization).then((auths) => {
|
106
110
|
const allAccess = {};
|
107
111
|
allAccess['isSup'] = auths.isSup;
|
@@ -285,13 +289,16 @@ export class SnkApplication {
|
|
285
289
|
* Cria o DataUnit a partir do nome da entidade. É possível armazená-lo no cache
|
286
290
|
* passando o dataUnitName, assim, se mais de uma chamada for feita, o mesmo DataUnit será usado.
|
287
291
|
*/
|
288
|
-
async createDataunit(entityName, dataUnitName, parentDataUnit, configName) {
|
292
|
+
async createDataunit(entityName, dataUnitName, parentDataUnit, configName, resourceID) {
|
293
|
+
if (resourceID == undefined) {
|
294
|
+
resourceID = this.applicationResourceID;
|
295
|
+
}
|
289
296
|
return new Promise((resolve, reject) => {
|
290
297
|
const duPromisses = this.getDuPromissesStack(dataUnitName);
|
291
298
|
const waitingDu = duPromisses.length > 0;
|
292
299
|
duPromisses.push(new PendingPromise(resolve, reject));
|
293
300
|
if (!waitingDu) {
|
294
|
-
const dataUnit = this.dataUnitFetcher.getDataUnit(entityName,
|
301
|
+
const dataUnit = this.dataUnitFetcher.getDataUnit(entityName, resourceID, parentDataUnit, configName);
|
295
302
|
dataUnit.loadMetadata().then(() => {
|
296
303
|
if (dataUnitName) {
|
297
304
|
this.updateDataunitCache(undefined, dataUnitName, dataUnit);
|
@@ -322,14 +329,14 @@ export class SnkApplication {
|
|
322
329
|
/**
|
323
330
|
* Obtem um DataUnit do cache ou cria um caso ainda não tenha sido criado.
|
324
331
|
*/
|
325
|
-
async getDataUnit(entityName, dataUnitName, parentDataUnit, configName) {
|
332
|
+
async getDataUnit(entityName, dataUnitName, parentDataUnit, configName, resourceID) {
|
326
333
|
return new Promise((resolve, reject) => {
|
327
334
|
const dataUnit = this._duCache.get(dataUnitName);
|
328
335
|
if (dataUnit) {
|
329
336
|
resolve(dataUnit);
|
330
337
|
}
|
331
338
|
else {
|
332
|
-
this.createDataunit(entityName, dataUnitName, parentDataUnit, configName).then(dataUnit => {
|
339
|
+
this.createDataunit(entityName, dataUnitName, parentDataUnit, configName, resourceID).then(dataUnit => {
|
333
340
|
resolve(dataUnit);
|
334
341
|
}).catch(reason => reject(reason));
|
335
342
|
}
|
@@ -378,11 +385,20 @@ export class SnkApplication {
|
|
378
385
|
async callServiceBroker(serviceName, payload, options) {
|
379
386
|
return DataFetcher.get().callServiceBroker(serviceName, payload, options);
|
380
387
|
}
|
388
|
+
get applicationResourceID() {
|
389
|
+
if (!this._applicationResourceID) {
|
390
|
+
this._applicationResourceID = this.urlParams.get("workspaceResourceID") ||
|
391
|
+
this.urlParams.get("resourceID") ||
|
392
|
+
Workspace.resourceID ||
|
393
|
+
"unknown.resource.id";
|
394
|
+
}
|
395
|
+
return this._applicationResourceID;
|
396
|
+
}
|
381
397
|
/**
|
382
398
|
* Obtém o resourceID da tela em questão.
|
383
399
|
*/
|
384
400
|
async getResourceID() {
|
385
|
-
return Promise.resolve(this.
|
401
|
+
return Promise.resolve(this.applicationResourceID);
|
386
402
|
}
|
387
403
|
/**
|
388
404
|
* Obtém o UserId da tela em questão.
|
@@ -426,20 +442,14 @@ export class SnkApplication {
|
|
426
442
|
async info(message, options) {
|
427
443
|
return ApplicationUtils.info(message, options);
|
428
444
|
}
|
429
|
-
/**
|
430
|
-
* Obtém a configuração de grade.
|
431
|
-
*/
|
432
|
-
async loadGridConfig(name) {
|
433
|
-
return this.gridConfigFetcher.getConfig(name, this.resourceID);
|
434
|
-
}
|
435
445
|
/**
|
436
446
|
* Obtém os totalizadores da grade.
|
437
447
|
*/
|
438
448
|
async loadTotals(name, resourceID, filters) {
|
439
449
|
return this.totalsFetcher.fetchTotals(name, resourceID, filters);
|
440
450
|
}
|
441
|
-
async getAuthList(
|
442
|
-
return await (new MGEAuthorization()).parseFromJSON(
|
451
|
+
async getAuthList(auth) {
|
452
|
+
return await (new MGEAuthorization()).parseFromJSON(auth);
|
443
453
|
}
|
444
454
|
get urlParams() {
|
445
455
|
if (!this._urlParams) {
|
@@ -453,12 +463,6 @@ export class SnkApplication {
|
|
453
463
|
}
|
454
464
|
return this._dataUnitFetcher;
|
455
465
|
}
|
456
|
-
get gridConfigFetcher() {
|
457
|
-
if (!this._gridConfigFetcher) {
|
458
|
-
this._gridConfigFetcher = new GridConfigFetcher();
|
459
|
-
}
|
460
|
-
return this._gridConfigFetcher;
|
461
|
-
}
|
462
466
|
get totalsFetcher() {
|
463
467
|
if (!this._totalsFetcher) {
|
464
468
|
this._totalsFetcher = new TotalsFetcher();
|
@@ -558,7 +562,7 @@ export class SnkApplication {
|
|
558
562
|
* Obtém o nome das telas da aplicação
|
559
563
|
*/
|
560
564
|
async getAppLabel() {
|
561
|
-
return Workspace.getAppLabel(this.
|
565
|
+
return Workspace.getAppLabel(this.applicationResourceID);
|
562
566
|
}
|
563
567
|
/**
|
564
568
|
* Adiciona um listener no fetcher de Pesquisa
|
@@ -630,6 +634,7 @@ export class SnkApplication {
|
|
630
634
|
this._popUp.ezTitle = title;
|
631
635
|
}
|
632
636
|
componentWillLoad() {
|
637
|
+
ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
|
633
638
|
this._errorHandler = new SnkErrorHandler(this);
|
634
639
|
this.messagesBuilder = new SnkMessageBuilder();
|
635
640
|
ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
|
@@ -638,7 +643,7 @@ export class SnkApplication {
|
|
638
643
|
});
|
639
644
|
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
640
645
|
ErrorTracking.init();
|
641
|
-
ConfigStorage.
|
646
|
+
ConfigStorage.preload(this.applicationResourceID, this.configName);
|
642
647
|
}
|
643
648
|
connectedCallback() {
|
644
649
|
ApplicationContext.setContextValue("__SNK__APPLICATION__", this);
|
@@ -650,9 +655,10 @@ export class SnkApplication {
|
|
650
655
|
componentDidLoad() {
|
651
656
|
this.applicationLoading.emit(true);
|
652
657
|
window.requestAnimationFrame(() => {
|
658
|
+
ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", false);
|
653
659
|
this.applicationLoaded.emit(true);
|
654
660
|
});
|
655
|
-
ElementIDUtils.addIDInfo(this._element, `resource_${this.
|
661
|
+
ElementIDUtils.addIDInfo(this._element, `resource_${this.applicationResourceID}`);
|
656
662
|
}
|
657
663
|
render() {
|
658
664
|
return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
|
@@ -782,10 +788,13 @@ export class SnkApplication {
|
|
782
788
|
},
|
783
789
|
"hasAccess": {
|
784
790
|
"complexType": {
|
785
|
-
"signature": "(access: AutorizationType) => Promise<boolean>",
|
791
|
+
"signature": "(access: AutorizationType, resourceID?: string) => Promise<boolean>",
|
786
792
|
"parameters": [{
|
787
793
|
"tags": [],
|
788
794
|
"text": ""
|
795
|
+
}, {
|
796
|
+
"tags": [],
|
797
|
+
"text": ""
|
789
798
|
}],
|
790
799
|
"references": {
|
791
800
|
"Promise": {
|
@@ -805,8 +814,11 @@ export class SnkApplication {
|
|
805
814
|
},
|
806
815
|
"getAllAccess": {
|
807
816
|
"complexType": {
|
808
|
-
"signature": "() => Promise<any>",
|
809
|
-
"parameters": [
|
817
|
+
"signature": "(resourceID?: string) => Promise<any>",
|
818
|
+
"parameters": [{
|
819
|
+
"tags": [],
|
820
|
+
"text": ""
|
821
|
+
}],
|
810
822
|
"references": {
|
811
823
|
"Promise": {
|
812
824
|
"location": "global"
|
@@ -1155,7 +1167,7 @@ export class SnkApplication {
|
|
1155
1167
|
},
|
1156
1168
|
"createDataunit": {
|
1157
1169
|
"complexType": {
|
1158
|
-
"signature": "(entityName: string, dataUnitName?: string, parentDataUnit?: DataUnit, configName?: string) => Promise<DataUnit>",
|
1170
|
+
"signature": "(entityName: string, dataUnitName?: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>",
|
1159
1171
|
"parameters": [{
|
1160
1172
|
"tags": [],
|
1161
1173
|
"text": ""
|
@@ -1168,6 +1180,9 @@ export class SnkApplication {
|
|
1168
1180
|
}, {
|
1169
1181
|
"tags": [],
|
1170
1182
|
"text": ""
|
1183
|
+
}, {
|
1184
|
+
"tags": [],
|
1185
|
+
"text": ""
|
1171
1186
|
}],
|
1172
1187
|
"references": {
|
1173
1188
|
"Promise": {
|
@@ -1234,7 +1249,7 @@ export class SnkApplication {
|
|
1234
1249
|
},
|
1235
1250
|
"getDataUnit": {
|
1236
1251
|
"complexType": {
|
1237
|
-
"signature": "(entityName: string, dataUnitName: string, parentDataUnit?: DataUnit, configName?: string) => Promise<DataUnit>",
|
1252
|
+
"signature": "(entityName: string, dataUnitName: string, parentDataUnit?: DataUnit, configName?: string, resourceID?: string) => Promise<DataUnit>",
|
1238
1253
|
"parameters": [{
|
1239
1254
|
"tags": [],
|
1240
1255
|
"text": ""
|
@@ -1247,6 +1262,9 @@ export class SnkApplication {
|
|
1247
1262
|
}, {
|
1248
1263
|
"tags": [],
|
1249
1264
|
"text": ""
|
1265
|
+
}, {
|
1266
|
+
"tags": [],
|
1267
|
+
"text": ""
|
1250
1268
|
}],
|
1251
1269
|
"references": {
|
1252
1270
|
"Promise": {
|
@@ -1640,29 +1658,6 @@ export class SnkApplication {
|
|
1640
1658
|
"tags": []
|
1641
1659
|
}
|
1642
1660
|
},
|
1643
|
-
"loadGridConfig": {
|
1644
|
-
"complexType": {
|
1645
|
-
"signature": "(name: string) => Promise<IGridConfig>",
|
1646
|
-
"parameters": [{
|
1647
|
-
"tags": [],
|
1648
|
-
"text": ""
|
1649
|
-
}],
|
1650
|
-
"references": {
|
1651
|
-
"Promise": {
|
1652
|
-
"location": "global"
|
1653
|
-
},
|
1654
|
-
"IGridConfig": {
|
1655
|
-
"location": "import",
|
1656
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController"
|
1657
|
-
}
|
1658
|
-
},
|
1659
|
-
"return": "Promise<IGridConfig>"
|
1660
|
-
},
|
1661
|
-
"docs": {
|
1662
|
-
"text": "Obt\u00E9m a configura\u00E7\u00E3o de grade.",
|
1663
|
-
"tags": []
|
1664
|
-
}
|
1665
|
-
},
|
1666
1661
|
"loadTotals": {
|
1667
1662
|
"complexType": {
|
1668
1663
|
"signature": "(name: string, resourceID: string, filters: Array<Filter>) => Promise<Map<string, number>>",
|
@@ -8,6 +8,7 @@ export class SnkConfigurator {
|
|
8
8
|
this._permissions = undefined;
|
9
9
|
this.showActionButtons = false;
|
10
10
|
this.configName = undefined;
|
11
|
+
this.resourceID = undefined;
|
11
12
|
this.viewMode = VIEW_MODE.GRID;
|
12
13
|
this.messagesBuilder = undefined;
|
13
14
|
}
|
@@ -72,7 +73,7 @@ export class SnkConfigurator {
|
|
72
73
|
componentWillLoad() {
|
73
74
|
this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
74
75
|
if (this._application) {
|
75
|
-
this._application.getAllAccess().then(access => (this._permissions = access));
|
76
|
+
this._application.getAllAccess(this.resourceID).then(access => (this._permissions = access));
|
76
77
|
}
|
77
78
|
else {
|
78
79
|
this._permissions = {};
|
@@ -130,6 +131,23 @@ export class SnkConfigurator {
|
|
130
131
|
"attribute": "config-name",
|
131
132
|
"reflect": false
|
132
133
|
},
|
134
|
+
"resourceID": {
|
135
|
+
"type": "string",
|
136
|
+
"mutable": false,
|
137
|
+
"complexType": {
|
138
|
+
"original": "string",
|
139
|
+
"resolved": "string",
|
140
|
+
"references": {}
|
141
|
+
},
|
142
|
+
"required": false,
|
143
|
+
"optional": false,
|
144
|
+
"docs": {
|
145
|
+
"tags": [],
|
146
|
+
"text": "Identificador de recursos como configura\u00E7\u00F5es e acesso."
|
147
|
+
},
|
148
|
+
"attribute": "resource-i-d",
|
149
|
+
"reflect": false
|
150
|
+
},
|
133
151
|
"viewMode": {
|
134
152
|
"type": "number",
|
135
153
|
"mutable": false,
|
@@ -3,7 +3,7 @@ import { ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
|
4
4
|
import { PresentationMode } from '../../lib';
|
5
5
|
import { VIEW_MODE } from '../../lib/utils/constants';
|
6
|
-
|
6
|
+
import { AutorizationType } from '../../lib/http/data-fetcher/fetchers/auth-fetcher';
|
7
7
|
/**
|
8
8
|
* É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
|
9
9
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
@@ -16,6 +16,8 @@ export class SnkCrud {
|
|
16
16
|
this._dataState = undefined;
|
17
17
|
this.attachmentRegisterKey = undefined;
|
18
18
|
this._currentViewMode = VIEW_MODE.GRID;
|
19
|
+
this._canEdit = undefined;
|
20
|
+
this._resourceID = undefined;
|
19
21
|
this.configName = undefined;
|
20
22
|
this.selectionToastConfig = undefined;
|
21
23
|
this.showActionButtons = false;
|
@@ -26,6 +28,7 @@ export class SnkCrud {
|
|
26
28
|
this.multipleSelection = true;
|
27
29
|
this.presentationMode = PresentationMode.PRIMARY;
|
28
30
|
this.messagesBuilder = undefined;
|
31
|
+
this.useEnterLikeTab = false;
|
29
32
|
}
|
30
33
|
/**
|
31
34
|
* Usado para alternar a visão entre GRID e FORM externamente.
|
@@ -109,7 +112,7 @@ export class SnkCrud {
|
|
109
112
|
}
|
110
113
|
componentWillLoad() {
|
111
114
|
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
112
|
-
|
115
|
+
application.hasAccess(AutorizationType.UPDATE, this._resourceID).then(canEdit => this._canEdit = canEdit);
|
113
116
|
let parent = this._element.parentElement;
|
114
117
|
while (parent) {
|
115
118
|
if (parent.tagName.toUpperCase() === "SNK-DATA-UNIT") {
|
@@ -121,11 +124,11 @@ export class SnkCrud {
|
|
121
124
|
if (!this._dataUnit) {
|
122
125
|
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
123
126
|
this._dataUnit = evt.detail;
|
124
|
-
this.initDataUnit();
|
127
|
+
this.initDataUnit(application);
|
125
128
|
});
|
126
129
|
}
|
127
130
|
else {
|
128
|
-
this.initDataUnit();
|
131
|
+
this.initDataUnit(application);
|
129
132
|
}
|
130
133
|
this._snkDataUnit.addEventListener("dataStateChange", async ({ detail: dataState }) => {
|
131
134
|
this._dataState = dataState;
|
@@ -141,11 +144,18 @@ export class SnkCrud {
|
|
141
144
|
this.configName = application.configName;
|
142
145
|
}
|
143
146
|
}
|
144
|
-
initDataUnit() {
|
147
|
+
async initDataUnit(application) {
|
145
148
|
this.addDataElementID();
|
146
149
|
if (!this.messagesBuilder) {
|
147
150
|
this.messagesBuilder = this._snkDataUnit.messagesBuilder;
|
148
151
|
}
|
152
|
+
if (this._resourceID == undefined) {
|
153
|
+
//Tenta pegar o resourceID do snkDataUnit;
|
154
|
+
this._resourceID = this._snkDataUnit.resourceID;
|
155
|
+
if (this._resourceID == undefined) {
|
156
|
+
this._resourceID = await application.getResourceID();
|
157
|
+
}
|
158
|
+
}
|
149
159
|
}
|
150
160
|
handleConfiguratorEvent(evt, type) {
|
151
161
|
evt.stopImmediatePropagation();
|
@@ -156,8 +166,11 @@ export class SnkCrud {
|
|
156
166
|
this.configuratorCancel.emit();
|
157
167
|
}
|
158
168
|
render() {
|
159
|
-
|
160
|
-
|
169
|
+
if (this._resourceID == undefined) {
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
173
|
+
return (h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID }, h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, resourceID: this._resourceID }, h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID }, h("div", { slot: "SnkConfigContainerSlot" }, h("slot", { name: "SnkConfigContainerSlot" })))));
|
161
174
|
}
|
162
175
|
static get is() { return "snk-crud"; }
|
163
176
|
static get encapsulation() { return "scoped"; }
|
@@ -375,6 +388,24 @@ export class SnkCrud {
|
|
375
388
|
"tags": [],
|
376
389
|
"text": "Respons\u00E1vel por flexibilizar e padronizar o uso de mensagens nos blocos de constru\u00E7\u00E3o."
|
377
390
|
}
|
391
|
+
},
|
392
|
+
"useEnterLikeTab": {
|
393
|
+
"type": "boolean",
|
394
|
+
"mutable": false,
|
395
|
+
"complexType": {
|
396
|
+
"original": "boolean",
|
397
|
+
"resolved": "boolean",
|
398
|
+
"references": {}
|
399
|
+
},
|
400
|
+
"required": false,
|
401
|
+
"optional": false,
|
402
|
+
"docs": {
|
403
|
+
"tags": [],
|
404
|
+
"text": "Quando verdadeiro, o ENTER far\u00E1 a navega\u00E7\u00E3o como se fosse a tecla TAB na grade."
|
405
|
+
},
|
406
|
+
"attribute": "use-enter-like-tab",
|
407
|
+
"reflect": false,
|
408
|
+
"defaultValue": "false"
|
378
409
|
}
|
379
410
|
};
|
380
411
|
}
|
@@ -383,7 +414,9 @@ export class SnkCrud {
|
|
383
414
|
"_dataUnit": {},
|
384
415
|
"_dataState": {},
|
385
416
|
"attachmentRegisterKey": {},
|
386
|
-
"_currentViewMode": {}
|
417
|
+
"_currentViewMode": {},
|
418
|
+
"_canEdit": {},
|
419
|
+
"_resourceID": {}
|
387
420
|
};
|
388
421
|
}
|
389
422
|
static get events() {
|
@@ -432,6 +465,28 @@ export class SnkCrud {
|
|
432
465
|
"resolved": "any",
|
433
466
|
"references": {}
|
434
467
|
}
|
468
|
+
}, {
|
469
|
+
"method": "formItemsReady",
|
470
|
+
"name": "formItemsReady",
|
471
|
+
"bubbles": true,
|
472
|
+
"cancelable": true,
|
473
|
+
"composed": true,
|
474
|
+
"docs": {
|
475
|
+
"tags": [],
|
476
|
+
"text": "Respons\u00E1vel por notificar quando ocorrer a renderiza\u00E7\u00E3o de itens do formul\u00E1rio."
|
477
|
+
},
|
478
|
+
"complexType": {
|
479
|
+
"original": "Array<HTMLElement>",
|
480
|
+
"resolved": "HTMLElement[]",
|
481
|
+
"references": {
|
482
|
+
"Array": {
|
483
|
+
"location": "global"
|
484
|
+
},
|
485
|
+
"HTMLElement": {
|
486
|
+
"location": "global"
|
487
|
+
}
|
488
|
+
}
|
489
|
+
}
|
435
490
|
}];
|
436
491
|
}
|
437
492
|
static get methods() {
|