@sankhyalabs/sankhyablocks 1.3.31-beta.5 → 1.3.31-beta.7
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/{index-ebe8245e.js → index-532bcc28.js} +0 -34
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +114 -14
- package/dist/cjs/snk-data-unit.cjs.entry.js +70 -36
- package/dist/cjs/snk-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +2 -2
- package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -3
- package/dist/cjs/snk-taskbar.cjs.entry.js +15 -34
- package/dist/cjs/{taskbar-elements-589a3744.js → taskbar-elements-9d47b416.js} +4 -2
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/components/snk-application/snk-application.js +122 -40
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +103 -64
- package/dist/collection/components/snk-form/snk-form.js +5 -5
- package/dist/collection/components/snk-grid/snk-grid.js +3 -3
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +49 -10
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +5 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +17 -33
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +16 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +2 -0
- package/dist/components/snk-application2.js +114 -14
- package/dist/components/snk-data-unit.js +69 -35
- package/dist/components/snk-pesquisa2.js +5 -2
- package/dist/components/snk-taskbar2.js +14 -32
- package/dist/esm/{index-7565ae23.js → index-0b078db7.js} +0 -34
- package/dist/esm/loader.js +2 -2
- package/dist/esm/sankhyablocks.js +2 -2
- package/dist/esm/snk-application.entry.js +114 -14
- package/dist/esm/snk-data-unit.entry.js +70 -36
- package/dist/esm/snk-form.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +2 -2
- package/dist/esm/snk-pesquisa.entry.js +6 -3
- package/dist/esm/snk-taskbar.entry.js +13 -32
- package/dist/esm/{taskbar-elements-b6822601.js → taskbar-elements-3ba30bf4.js} +4 -2
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-1c19b89c.entry.js +1 -0
- package/dist/sankhyablocks/p-21c2457b.entry.js +1 -0
- package/dist/sankhyablocks/{p-bb8d8fe7.entry.js → p-560fdf54.entry.js} +1 -1
- package/dist/sankhyablocks/p-574764bf.js +1 -0
- package/dist/sankhyablocks/p-8f7b9a85.entry.js +1 -0
- package/dist/sankhyablocks/{p-e7ade160.entry.js → p-9c225717.entry.js} +1 -1
- package/dist/sankhyablocks/p-a45dba1a.js +2 -0
- package/dist/sankhyablocks/{p-bb31ea2a.entry.js → p-a8305c35.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a4b2fa10.entry.js → p-bc14f01e.entry.js} +3 -3
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +89 -12
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +2 -1
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +20 -3
- package/dist/types/components.d.ts +216 -2
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +2 -0
- package/package.json +1 -1
- package/dist/collection/components/snk-taskbar/component/snk-popup-button.js +0 -7
- package/dist/sankhyablocks/p-306224bf.entry.js +0 -1
- package/dist/sankhyablocks/p-4ee1e12b.js +0 -1
- package/dist/sankhyablocks/p-6d82d7fd.entry.js +0 -1
- package/dist/sankhyablocks/p-88278b85.entry.js +0 -1
- package/dist/sankhyablocks/p-90b832f7.js +0 -2
- package/dist/types/components/snk-taskbar/component/snk-popup-button.d.ts +0 -12
|
@@ -2,16 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-532bcc28.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const taskbarElements = require('./taskbar-elements-
|
|
8
|
-
|
|
9
|
-
const SnkPopupButton = ({ className, title, source, opened, setOpened, actionClick }) => {
|
|
10
|
-
return (index.h("div", { class: "ez-flex " + className },
|
|
11
|
-
index.h("ez-button", { id: "moreOptionsButton", title: title, mode: "icon", iconName: "dots-vertical", size: "small", onClick: () => setOpened(true) }),
|
|
12
|
-
index.h("ez-popover", { opened: opened, autoClose: true, innerElement: ["moreOptionsButton", "moreOptionsDiv"], onEzVisibilityChange: (event) => setOpened(event.detail) },
|
|
13
|
-
index.h("div", { id: "moreOptionsDiv", class: "ez-padding--small" }, source.map((option, index$1) => index.h("ez-button", { className: "btn-options", size: "small", label: option.label, key: index$1, onClick: () => actionClick(option) }))))));
|
|
14
|
-
};
|
|
7
|
+
const taskbarElements = require('./taskbar-elements-9d47b416.js');
|
|
15
8
|
|
|
16
9
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}";
|
|
17
10
|
|
|
@@ -19,7 +12,6 @@ const SnkTaskbar = class {
|
|
|
19
12
|
constructor(hostRef) {
|
|
20
13
|
index.registerInstance(this, hostRef);
|
|
21
14
|
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
22
|
-
this._moreOptionsOpened = false;
|
|
23
15
|
}
|
|
24
16
|
observeButtons() {
|
|
25
17
|
this._definitions = undefined;
|
|
@@ -92,42 +84,31 @@ const SnkTaskbar = class {
|
|
|
92
84
|
}
|
|
93
85
|
this.actionClick.emit(elem);
|
|
94
86
|
}
|
|
95
|
-
actionClickHandler(act) {
|
|
96
|
-
this._moreOptionsOpened = false;
|
|
97
|
-
this.actionClick.emit(act.key);
|
|
98
|
-
}
|
|
99
87
|
isEnabled(elem) {
|
|
100
88
|
return !(this.disabledButtons && this.disabledButtons.includes(elem));
|
|
101
89
|
}
|
|
102
|
-
getElement(index
|
|
90
|
+
getElement(index, def) {
|
|
103
91
|
let element;
|
|
104
92
|
let className = def === this.primaryButton ? "ez-button--primary " : "";
|
|
105
|
-
if (index
|
|
93
|
+
if (index > 1) {
|
|
106
94
|
className += "ez-padding-left--medium";
|
|
107
95
|
}
|
|
108
|
-
|
|
109
|
-
element = this.actionsList ? index.h(SnkPopupButton, { className: className, title: this.getTitle(def), source: this.actionsList, opened: this._moreOptionsOpened, setOpened: opened => this._moreOptionsOpened = opened, actionClick: act => this.actionClickHandler(act) }) : undefined;
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
element = taskbarElements.buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem));
|
|
113
|
-
}
|
|
96
|
+
element = taskbarElements.buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.actionsList);
|
|
114
97
|
return element;
|
|
115
98
|
}
|
|
116
99
|
// Lifecycle
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
snkApplication.getAllAccess().then(access => this._permissions = access);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
this._permissions = {};
|
|
125
|
-
}
|
|
100
|
+
componentWillLoad() {
|
|
101
|
+
const snkApplication = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
102
|
+
if (snkApplication) {
|
|
103
|
+
snkApplication.getAllAccess().then(access => this._permissions = access);
|
|
126
104
|
}
|
|
127
105
|
else {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
106
|
+
this._permissions = {};
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
componentWillRender() {
|
|
110
|
+
if (this._definitions == undefined && this._permissions) {
|
|
111
|
+
this._definitions = this.elementsFromString(this.buttons);
|
|
131
112
|
}
|
|
132
113
|
}
|
|
133
114
|
render() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-532bcc28.js');
|
|
4
4
|
|
|
5
5
|
exports.TaskbarElement = void 0;
|
|
6
6
|
(function (TaskbarElement) {
|
|
@@ -27,7 +27,7 @@ exports.AuthorizationElements = void 0;
|
|
|
27
27
|
AuthorizationElements["INSERT"] = "INSERT";
|
|
28
28
|
AuthorizationElements["CONFIG_GRID"] = "CONFIG_GRID";
|
|
29
29
|
})(exports.AuthorizationElements || (exports.AuthorizationElements = {}));
|
|
30
|
-
const buildElem = (element, className, getTitle, action, isEnabled) => {
|
|
30
|
+
const buildElem = (element, className, getTitle, action, isEnabled, actions) => {
|
|
31
31
|
switch (element) {
|
|
32
32
|
case exports.TaskbarElement.PREVIOUS:
|
|
33
33
|
return iconButton("chevron-left", element, className, getTitle, action, isEnabled);
|
|
@@ -53,6 +53,8 @@ const buildElem = (element, className, getTitle, action, isEnabled) => {
|
|
|
53
53
|
return iconButton("list", element, className, getTitle, action, isEnabled);
|
|
54
54
|
case exports.TaskbarElement.CONFIG_GRID:
|
|
55
55
|
return iconButton("settings-inverted", element, className, getTitle, action, isEnabled);
|
|
56
|
+
case exports.TaskbarElement.MORE_OPTIONS:
|
|
57
|
+
return index.h("ez-actions-button", { size: "small", class: className, enabled: isEnabled(element), onEzAction: (evt) => action(evt.detail.value), actions: actions });
|
|
56
58
|
case exports.TaskbarElement.DIVIDER:
|
|
57
59
|
return index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-horizontal--medium" });
|
|
58
60
|
}
|
|
@@ -48,6 +48,9 @@ export class SnkApplication {
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Caso o usuário logado seja o SUP.
|
|
53
|
+
*/
|
|
51
54
|
async isUserSup() {
|
|
52
55
|
return new Promise((resolve, reject) => {
|
|
53
56
|
this.auth.then((authorization) => {
|
|
@@ -57,6 +60,9 @@ export class SnkApplication {
|
|
|
57
60
|
});
|
|
58
61
|
});
|
|
59
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Se o usuário logado tem permissão pra determinada ação.
|
|
65
|
+
*/
|
|
60
66
|
async hasAccess(access) {
|
|
61
67
|
return new Promise((resolve, reject) => {
|
|
62
68
|
this.auth.then((authorization) => {
|
|
@@ -66,6 +72,9 @@ export class SnkApplication {
|
|
|
66
72
|
});
|
|
67
73
|
});
|
|
68
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Retorna todos os acessos do usuário logado.
|
|
77
|
+
*/
|
|
69
78
|
async getAllAccess() {
|
|
70
79
|
return new Promise((resolve, reject) => {
|
|
71
80
|
this.auth.then((authorization) => {
|
|
@@ -80,34 +89,54 @@ export class SnkApplication {
|
|
|
80
89
|
});
|
|
81
90
|
});
|
|
82
91
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
92
|
+
/**
|
|
93
|
+
* Retorna o valor de um parâmetro do tipo string.
|
|
94
|
+
*/
|
|
86
95
|
async getStringParam(name) {
|
|
87
96
|
return this.parameters.asString(name, this.resourceID);
|
|
88
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Retorna o valor de um parâmetro do tipo Inteiro.
|
|
100
|
+
*/
|
|
89
101
|
async getIntParam(name) {
|
|
90
102
|
return this.parameters.asInteger(name, this.resourceID);
|
|
91
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Retorna o valor de um parâmetro do tipo Decimal.
|
|
106
|
+
*/
|
|
92
107
|
async getFloatParam(name) {
|
|
93
108
|
return this.parameters.asFloat(name, this.resourceID);
|
|
94
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Retorna o valor de um parâmetro do tipo booleano.
|
|
112
|
+
*/
|
|
95
113
|
async getBooleanParam(name) {
|
|
96
114
|
return this.parameters.asBoolean(name, this.resourceID);
|
|
97
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* Retorna o valor de um parâmetro do tipo data.
|
|
118
|
+
*/
|
|
98
119
|
async getDateParam(name) {
|
|
99
120
|
return this.parameters.asDate(name, this.resourceID);
|
|
100
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Mostra o conteúdo passado em um Popup
|
|
124
|
+
*/
|
|
101
125
|
async showPopUp(content) {
|
|
126
|
+
this.clearPopUpContent();
|
|
102
127
|
this._popUp.appendChild(content);
|
|
103
|
-
this._popUp
|
|
128
|
+
this._popUp.opened = true;
|
|
104
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Fecha o popup, liberando o conteúdo.
|
|
132
|
+
*/
|
|
105
133
|
async closePopUp() {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
});
|
|
109
|
-
this._popUp["opened"] = false;
|
|
134
|
+
this.clearPopUpContent();
|
|
135
|
+
this._popUp.opened = false;
|
|
110
136
|
}
|
|
137
|
+
/**
|
|
138
|
+
* Verifica se a licença do cliente tem determinado opcional (produto)
|
|
139
|
+
*/
|
|
111
140
|
async temOpcional(opcional) {
|
|
112
141
|
const opts = opcional.split(",");
|
|
113
142
|
return new Promise((resolve, reject) => {
|
|
@@ -131,6 +160,10 @@ export class SnkApplication {
|
|
|
131
160
|
});
|
|
132
161
|
});
|
|
133
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* Retorna a configuração de um recurso por service broker
|
|
165
|
+
* Veja também o método "loadConfig"
|
|
166
|
+
*/
|
|
134
167
|
async getConfig(key) {
|
|
135
168
|
let payload = {
|
|
136
169
|
"serviceName": "SystemUtilsSP.getConf",
|
|
@@ -148,6 +181,9 @@ export class SnkApplication {
|
|
|
148
181
|
.catch(error => reject(error));
|
|
149
182
|
});
|
|
150
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* Salva a configuração de determinado recurso.
|
|
186
|
+
*/
|
|
151
187
|
async saveConfig(key, data) {
|
|
152
188
|
let payload = {
|
|
153
189
|
"serviceName": "SystemUtilsSP.saveConf",
|
|
@@ -166,19 +202,31 @@ export class SnkApplication {
|
|
|
166
202
|
.catch(error => reject(error));
|
|
167
203
|
});
|
|
168
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Acessa informações de contexto "empurrados" na abertura da tela
|
|
207
|
+
*/
|
|
169
208
|
async getAttributeFromHTMLWrapper(attribName) {
|
|
170
209
|
return Promise.resolve(window[attribName]);
|
|
171
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Abre determinada tela, repassando pkObject
|
|
213
|
+
*/
|
|
172
214
|
async openApp(resourceId, pkObject) {
|
|
173
215
|
Workspace.openAppActivity(resourceId, pkObject);
|
|
174
216
|
}
|
|
217
|
+
/**
|
|
218
|
+
* Cria o DataUnit a partir do nome da entidade.
|
|
219
|
+
*/
|
|
175
220
|
async createDataunit(entityName) {
|
|
176
221
|
return new Promise(resolve => {
|
|
177
222
|
const dataUnit = this.dataUnitFetcher.getDataUnit(entityName, this.resourceID);
|
|
178
223
|
dataUnit.loadMetadata().then(() => resolve(dataUnit));
|
|
179
224
|
});
|
|
180
225
|
}
|
|
181
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Cria e armazena o DataUnit em um cache
|
|
228
|
+
*/
|
|
229
|
+
async getDataUnit(entityName, dataUnitName) {
|
|
182
230
|
return new Promise((resolve, reject) => {
|
|
183
231
|
const dataUnit = this._duCache.get(dataUnitName);
|
|
184
232
|
if (dataUnit) {
|
|
@@ -194,30 +242,57 @@ export class SnkApplication {
|
|
|
194
242
|
}
|
|
195
243
|
});
|
|
196
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Retorna o resourceID da tela em questão.
|
|
247
|
+
*/
|
|
197
248
|
async getResourceID() {
|
|
198
249
|
return Promise.resolve(this.resourceID);
|
|
199
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* Mostra o diálogo de alerta de acordo com os parâmetros passados.
|
|
253
|
+
*/
|
|
200
254
|
async alert(title, message, icon, options) {
|
|
201
255
|
return ApplicationUtils.alert(title, message, icon, options);
|
|
202
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* Mostra o diálogo de erro de acordo com os parâmetros passados.
|
|
259
|
+
*/
|
|
203
260
|
async error(title, message, icon, options) {
|
|
204
261
|
return ApplicationUtils.error(title, message, icon, options);
|
|
205
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Exibe um diálogo de confirmação
|
|
265
|
+
*/
|
|
206
266
|
async confirm(title, message, icon, critical, options) {
|
|
207
267
|
return ApplicationUtils.confirm(title, message, icon, critical, options);
|
|
208
268
|
}
|
|
269
|
+
/**
|
|
270
|
+
* Mostra uma informação efêmera (de segundo plano).
|
|
271
|
+
*/
|
|
209
272
|
async info(message, options) {
|
|
210
273
|
return ApplicationUtils.info(message, options);
|
|
211
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* Busca a configuração de formulário.
|
|
277
|
+
*/
|
|
212
278
|
async loadFormConfig(name) {
|
|
213
279
|
return this.formConfigFetcher.loadFormConfig(name, this.resourceID);
|
|
214
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* Busca a configuração de grade.
|
|
283
|
+
*/
|
|
215
284
|
async loadGridConfig(name) {
|
|
216
285
|
return this.gridConfigFetcher.getConfig(name, this.resourceID);
|
|
217
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* Salva a configuração de grade.
|
|
289
|
+
*/
|
|
218
290
|
async saveGridConfig(config) {
|
|
219
291
|
return this.gridConfigFetcher.saveConfig(config, this.resourceID);
|
|
220
292
|
}
|
|
293
|
+
async getAuthList(_auth) {
|
|
294
|
+
return await (new MGEAuthorization()).parseFromJSON(_auth);
|
|
295
|
+
}
|
|
221
296
|
get urlParams() {
|
|
222
297
|
if (!this._urlParams) {
|
|
223
298
|
this._urlParams = UrlUtils.getQueryParams(location.search);
|
|
@@ -297,7 +372,7 @@ export class SnkApplication {
|
|
|
297
372
|
pesquisaContent.searchLoader = (text) => this.pesquisaFetcher.loadAdvancedSearch(ENTITYNAME, text, criteria, searchOptions);
|
|
298
373
|
pesquisaContent.selectItem = (option) => {
|
|
299
374
|
accept(option);
|
|
300
|
-
this.
|
|
375
|
+
this.clearPopUpTitle();
|
|
301
376
|
this.closePopUp();
|
|
302
377
|
};
|
|
303
378
|
this.setPopUpTitle(DESCRIPTIONENTITY);
|
|
@@ -314,11 +389,18 @@ export class SnkApplication {
|
|
|
314
389
|
accept(window['isDebugMode']);
|
|
315
390
|
});
|
|
316
391
|
}
|
|
317
|
-
|
|
318
|
-
this._popUp
|
|
392
|
+
clearPopUpContent() {
|
|
393
|
+
if (this._popUp) {
|
|
394
|
+
Array.from(this._popUp.children).forEach(c => {
|
|
395
|
+
this._popUp.removeChild(c);
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
clearPopUpTitle() {
|
|
400
|
+
this._popUp.ezTitle = "";
|
|
319
401
|
}
|
|
320
402
|
setPopUpTitle(title) {
|
|
321
|
-
this._popUp
|
|
403
|
+
this._popUp.ezTitle = title;
|
|
322
404
|
}
|
|
323
405
|
componentWillLoad() {
|
|
324
406
|
this._errorHandler = new SnkErrorHandler(this);
|
|
@@ -378,7 +460,7 @@ export class SnkApplication {
|
|
|
378
460
|
"composed": true,
|
|
379
461
|
"docs": {
|
|
380
462
|
"tags": [],
|
|
381
|
-
"text": "Evento"
|
|
463
|
+
"text": "Evento disparado ao iniciar a carga do componente"
|
|
382
464
|
},
|
|
383
465
|
"complexType": {
|
|
384
466
|
"original": "boolean",
|
|
@@ -399,7 +481,7 @@ export class SnkApplication {
|
|
|
399
481
|
"return": "Promise<boolean>"
|
|
400
482
|
},
|
|
401
483
|
"docs": {
|
|
402
|
-
"text": "",
|
|
484
|
+
"text": "Caso o usu\u00E1rio logado seja o SUP.",
|
|
403
485
|
"tags": []
|
|
404
486
|
}
|
|
405
487
|
},
|
|
@@ -422,7 +504,7 @@ export class SnkApplication {
|
|
|
422
504
|
"return": "Promise<boolean>"
|
|
423
505
|
},
|
|
424
506
|
"docs": {
|
|
425
|
-
"text": "",
|
|
507
|
+
"text": "Se o usu\u00E1rio logado tem permiss\u00E3o pra determinada a\u00E7\u00E3o.",
|
|
426
508
|
"tags": []
|
|
427
509
|
}
|
|
428
510
|
},
|
|
@@ -438,7 +520,7 @@ export class SnkApplication {
|
|
|
438
520
|
"return": "Promise<any>"
|
|
439
521
|
},
|
|
440
522
|
"docs": {
|
|
441
|
-
"text": "",
|
|
523
|
+
"text": "Retorna todos os acessos do usu\u00E1rio logado.",
|
|
442
524
|
"tags": []
|
|
443
525
|
}
|
|
444
526
|
},
|
|
@@ -457,7 +539,7 @@ export class SnkApplication {
|
|
|
457
539
|
"return": "Promise<string>"
|
|
458
540
|
},
|
|
459
541
|
"docs": {
|
|
460
|
-
"text": "",
|
|
542
|
+
"text": "Retorna o valor de um par\u00E2metro do tipo string.",
|
|
461
543
|
"tags": []
|
|
462
544
|
}
|
|
463
545
|
},
|
|
@@ -476,7 +558,7 @@ export class SnkApplication {
|
|
|
476
558
|
"return": "Promise<number>"
|
|
477
559
|
},
|
|
478
560
|
"docs": {
|
|
479
|
-
"text": "",
|
|
561
|
+
"text": "Retorna o valor de um par\u00E2metro do tipo Inteiro.",
|
|
480
562
|
"tags": []
|
|
481
563
|
}
|
|
482
564
|
},
|
|
@@ -495,7 +577,7 @@ export class SnkApplication {
|
|
|
495
577
|
"return": "Promise<number>"
|
|
496
578
|
},
|
|
497
579
|
"docs": {
|
|
498
|
-
"text": "",
|
|
580
|
+
"text": "Retorna o valor de um par\u00E2metro do tipo Decimal.",
|
|
499
581
|
"tags": []
|
|
500
582
|
}
|
|
501
583
|
},
|
|
@@ -514,7 +596,7 @@ export class SnkApplication {
|
|
|
514
596
|
"return": "Promise<boolean>"
|
|
515
597
|
},
|
|
516
598
|
"docs": {
|
|
517
|
-
"text": "",
|
|
599
|
+
"text": "Retorna o valor de um par\u00E2metro do tipo booleano.",
|
|
518
600
|
"tags": []
|
|
519
601
|
}
|
|
520
602
|
},
|
|
@@ -536,7 +618,7 @@ export class SnkApplication {
|
|
|
536
618
|
"return": "Promise<Date>"
|
|
537
619
|
},
|
|
538
620
|
"docs": {
|
|
539
|
-
"text": "",
|
|
621
|
+
"text": "Retorna o valor de um par\u00E2metro do tipo data.",
|
|
540
622
|
"tags": []
|
|
541
623
|
}
|
|
542
624
|
},
|
|
@@ -558,7 +640,7 @@ export class SnkApplication {
|
|
|
558
640
|
"return": "Promise<void>"
|
|
559
641
|
},
|
|
560
642
|
"docs": {
|
|
561
|
-
"text": "",
|
|
643
|
+
"text": "Mostra o conte\u00FAdo passado em um Popup",
|
|
562
644
|
"tags": []
|
|
563
645
|
}
|
|
564
646
|
},
|
|
@@ -574,7 +656,7 @@ export class SnkApplication {
|
|
|
574
656
|
"return": "Promise<void>"
|
|
575
657
|
},
|
|
576
658
|
"docs": {
|
|
577
|
-
"text": "",
|
|
659
|
+
"text": "Fecha o popup, liberando o conte\u00FAdo.",
|
|
578
660
|
"tags": []
|
|
579
661
|
}
|
|
580
662
|
},
|
|
@@ -593,7 +675,7 @@ export class SnkApplication {
|
|
|
593
675
|
"return": "Promise<boolean>"
|
|
594
676
|
},
|
|
595
677
|
"docs": {
|
|
596
|
-
"text": "",
|
|
678
|
+
"text": "Verifica se a licen\u00E7a do cliente tem determinado opcional (produto)",
|
|
597
679
|
"tags": []
|
|
598
680
|
}
|
|
599
681
|
},
|
|
@@ -612,7 +694,7 @@ export class SnkApplication {
|
|
|
612
694
|
"return": "Promise<any>"
|
|
613
695
|
},
|
|
614
696
|
"docs": {
|
|
615
|
-
"text": "",
|
|
697
|
+
"text": "Retorna a configura\u00E7\u00E3o de um recurso por service broker\nVeja tamb\u00E9m o m\u00E9todo \"loadConfig\"",
|
|
616
698
|
"tags": []
|
|
617
699
|
}
|
|
618
700
|
},
|
|
@@ -637,7 +719,7 @@ export class SnkApplication {
|
|
|
637
719
|
"return": "Promise<any>"
|
|
638
720
|
},
|
|
639
721
|
"docs": {
|
|
640
|
-
"text": "",
|
|
722
|
+
"text": "Salva a configura\u00E7\u00E3o de determinado recurso.",
|
|
641
723
|
"tags": []
|
|
642
724
|
}
|
|
643
725
|
},
|
|
@@ -656,7 +738,7 @@ export class SnkApplication {
|
|
|
656
738
|
"return": "Promise<string>"
|
|
657
739
|
},
|
|
658
740
|
"docs": {
|
|
659
|
-
"text": "",
|
|
741
|
+
"text": "Acessa informa\u00E7\u00F5es de contexto \"empurrados\" na abertura da tela",
|
|
660
742
|
"tags": []
|
|
661
743
|
}
|
|
662
744
|
},
|
|
@@ -681,7 +763,7 @@ export class SnkApplication {
|
|
|
681
763
|
"return": "Promise<void>"
|
|
682
764
|
},
|
|
683
765
|
"docs": {
|
|
684
|
-
"text": "",
|
|
766
|
+
"text": "Abre determinada tela, repassando pkObject",
|
|
685
767
|
"tags": []
|
|
686
768
|
}
|
|
687
769
|
},
|
|
@@ -704,11 +786,11 @@ export class SnkApplication {
|
|
|
704
786
|
"return": "Promise<DataUnit>"
|
|
705
787
|
},
|
|
706
788
|
"docs": {
|
|
707
|
-
"text": "",
|
|
789
|
+
"text": "Cria o DataUnit a partir do nome da entidade.",
|
|
708
790
|
"tags": []
|
|
709
791
|
}
|
|
710
792
|
},
|
|
711
|
-
"
|
|
793
|
+
"getDataUnit": {
|
|
712
794
|
"complexType": {
|
|
713
795
|
"signature": "(entityName: string, dataUnitName: string) => Promise<DataUnit>",
|
|
714
796
|
"parameters": [{
|
|
@@ -730,7 +812,7 @@ export class SnkApplication {
|
|
|
730
812
|
"return": "Promise<DataUnit>"
|
|
731
813
|
},
|
|
732
814
|
"docs": {
|
|
733
|
-
"text": "",
|
|
815
|
+
"text": "Cria e armazena o DataUnit em um cache",
|
|
734
816
|
"tags": []
|
|
735
817
|
}
|
|
736
818
|
},
|
|
@@ -746,7 +828,7 @@ export class SnkApplication {
|
|
|
746
828
|
"return": "Promise<string>"
|
|
747
829
|
},
|
|
748
830
|
"docs": {
|
|
749
|
-
"text": "",
|
|
831
|
+
"text": "Retorna o resourceID da tela em quest\u00E3o.",
|
|
750
832
|
"tags": []
|
|
751
833
|
}
|
|
752
834
|
},
|
|
@@ -778,7 +860,7 @@ export class SnkApplication {
|
|
|
778
860
|
"return": "Promise<boolean>"
|
|
779
861
|
},
|
|
780
862
|
"docs": {
|
|
781
|
-
"text": "",
|
|
863
|
+
"text": "Mostra o di\u00E1logo de alerta de acordo com os par\u00E2metros passados.",
|
|
782
864
|
"tags": []
|
|
783
865
|
}
|
|
784
866
|
},
|
|
@@ -810,7 +892,7 @@ export class SnkApplication {
|
|
|
810
892
|
"return": "Promise<boolean>"
|
|
811
893
|
},
|
|
812
894
|
"docs": {
|
|
813
|
-
"text": "",
|
|
895
|
+
"text": "Mostra o di\u00E1logo de erro de acordo com os par\u00E2metros passados.",
|
|
814
896
|
"tags": []
|
|
815
897
|
}
|
|
816
898
|
},
|
|
@@ -845,7 +927,7 @@ export class SnkApplication {
|
|
|
845
927
|
"return": "Promise<boolean>"
|
|
846
928
|
},
|
|
847
929
|
"docs": {
|
|
848
|
-
"text": "",
|
|
930
|
+
"text": "Exibe um di\u00E1logo de confirma\u00E7\u00E3o",
|
|
849
931
|
"tags": []
|
|
850
932
|
}
|
|
851
933
|
},
|
|
@@ -871,7 +953,7 @@ export class SnkApplication {
|
|
|
871
953
|
"return": "Promise<void>"
|
|
872
954
|
},
|
|
873
955
|
"docs": {
|
|
874
|
-
"text": "",
|
|
956
|
+
"text": "Mostra uma informa\u00E7\u00E3o ef\u00EAmera (de segundo plano).",
|
|
875
957
|
"tags": []
|
|
876
958
|
}
|
|
877
959
|
},
|
|
@@ -897,7 +979,7 @@ export class SnkApplication {
|
|
|
897
979
|
"return": "Promise<FieldConfig[]>"
|
|
898
980
|
},
|
|
899
981
|
"docs": {
|
|
900
|
-
"text": "",
|
|
982
|
+
"text": "Busca a configura\u00E7\u00E3o de formul\u00E1rio.",
|
|
901
983
|
"tags": []
|
|
902
984
|
}
|
|
903
985
|
},
|
|
@@ -920,7 +1002,7 @@ export class SnkApplication {
|
|
|
920
1002
|
"return": "Promise<EzGridConfig>"
|
|
921
1003
|
},
|
|
922
1004
|
"docs": {
|
|
923
|
-
"text": "",
|
|
1005
|
+
"text": "Busca a configura\u00E7\u00E3o de grade.",
|
|
924
1006
|
"tags": []
|
|
925
1007
|
}
|
|
926
1008
|
},
|
|
@@ -943,7 +1025,7 @@ export class SnkApplication {
|
|
|
943
1025
|
"return": "Promise<boolean>"
|
|
944
1026
|
},
|
|
945
1027
|
"docs": {
|
|
946
|
-
"text": "",
|
|
1028
|
+
"text": "Salva a configura\u00E7\u00E3o de grade.",
|
|
947
1029
|
"tags": []
|
|
948
1030
|
}
|
|
949
1031
|
},
|