@sankhyalabs/sankhyablocks 1.1.17 → 1.1.20
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-d3250310.js → index-20a7d705.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +39 -12
- package/dist/collection/components/snk-application/snk-application.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +1 -1
- package/dist/collection/lib/utils/pesquisa.js +16 -0
- package/dist/components/snk-application.js +38 -11
- package/dist/esm/{index-781079ed.js → index-8d3572c4.js} +5 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +39 -12
- package/dist/sankhyablocks/p-4984305e.entry.js +57 -0
- package/dist/sankhyablocks/p-5fa264b9.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +1 -0
- package/dist/types/lib/utils/pesquisa.d.ts +2 -0
- package/package.json +5 -4
- package/react/components.d.ts +3 -0
- package/react/components.js +6 -0
- package/react/components.js.map +1 -0
- package/react/react-component-lib/createComponent.d.ts +10 -0
- package/react/react-component-lib/createComponent.js +75 -0
- package/react/react-component-lib/createComponent.js.map +1 -0
- package/react/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/react/react-component-lib/createOverlayComponent.js +109 -0
- package/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/react/react-component-lib/index.d.ts +2 -0
- package/react/react-component-lib/index.js +3 -0
- package/react/react-component-lib/index.js.map +1 -0
- package/react/react-component-lib/interfaces.d.ts +29 -0
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/interfaces.js.map +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +12 -0
- package/react/react-component-lib/utils/attachProps.js +98 -0
- package/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/react/react-component-lib/utils/case.d.ts +2 -0
- package/react/react-component-lib/utils/case.js +7 -0
- package/react/react-component-lib/utils/case.js.map +1 -0
- package/react/react-component-lib/utils/dev.d.ts +2 -0
- package/react/react-component-lib/utils/dev.js +13 -0
- package/react/react-component-lib/utils/dev.js.map +1 -0
- package/react/react-component-lib/utils/index.d.ts +10 -0
- package/react/react-component-lib/utils/index.js +34 -0
- package/react/react-component-lib/utils/index.js.map +1 -0
- package/dist/sankhyablocks/p-5d41973e.entry.js +0 -57
- package/dist/sankhyablocks/p-83177bdc.js +0 -1
|
@@ -305,6 +305,11 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
305
305
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
306
306
|
const instance = hostRef.$lazyInstance$ ;
|
|
307
307
|
let promise;
|
|
308
|
+
if (isInitialLoad) {
|
|
309
|
+
{
|
|
310
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
311
|
+
}
|
|
312
|
+
}
|
|
308
313
|
endSchedule();
|
|
309
314
|
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
310
315
|
};
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-20a7d705.js');
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Classe com utiliários comuns para Strings.
|
|
@@ -1153,6 +1153,7 @@ var UserInterface;
|
|
|
1153
1153
|
UserInterface["IMAGE"] = "IMAGE";
|
|
1154
1154
|
UserInterface["DATE"] = "DATE";
|
|
1155
1155
|
UserInterface["DATETIME"] = "DATETIME";
|
|
1156
|
+
UserInterface["TIME"] = "TIME";
|
|
1156
1157
|
UserInterface["ELAPSEDTIME"] = "ELAPSEDTIME";
|
|
1157
1158
|
UserInterface["CHECKBOX"] = "CHECKBOX";
|
|
1158
1159
|
UserInterface["SWITCH"] = "SWITCH";
|
|
@@ -1167,16 +1168,22 @@ var UserInterface;
|
|
|
1167
1168
|
UserInterface["HTML"] = "HTML";
|
|
1168
1169
|
})(UserInterface || (UserInterface = {}));
|
|
1169
1170
|
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1171
|
+
class ApplicationContext {
|
|
1172
|
+
static getContextValue(key) {
|
|
1173
|
+
return ApplicationContext.getCtx()[key].deref();
|
|
1174
|
+
}
|
|
1175
|
+
static setContextValue(key, value) {
|
|
1176
|
+
ApplicationContext.getCtx()[key] = new WeakRef(value);
|
|
1177
|
+
}
|
|
1178
|
+
static getCtx() {
|
|
1179
|
+
let ctx = window.___snkcore___ctx___;
|
|
1180
|
+
if (!ctx) {
|
|
1181
|
+
ctx = {};
|
|
1182
|
+
window.___snkcore___ctx___ = ctx;
|
|
1183
|
+
}
|
|
1184
|
+
return ctx;
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1180
1187
|
|
|
1181
1188
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1182
1189
|
|
|
@@ -7794,7 +7801,7 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
7794
7801
|
const config = JSON.parse(configAsString);
|
|
7795
7802
|
const { tabs, fields } = config;
|
|
7796
7803
|
if (tabs) {
|
|
7797
|
-
const allTabs = new Map(tabs.map(t => [t.
|
|
7804
|
+
const allTabs = new Map(tabs.map(t => [t.label, t]));
|
|
7798
7805
|
fields.forEach(f => f.tab = allTabs.get(f.tab));
|
|
7799
7806
|
}
|
|
7800
7807
|
accept(fields);
|
|
@@ -7810,6 +7817,23 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
7810
7817
|
}
|
|
7811
7818
|
}
|
|
7812
7819
|
|
|
7820
|
+
const mockByEntity = {
|
|
7821
|
+
"ImplantacaoSaldoConta": [{ "value": 6, "label": "Conta Financeiro" }, { "value": 7, "label": "Conta Banco do Brasil" }],
|
|
7822
|
+
"HistoricoBancario": [{ "value": 9, "label": "Lanç. Origem" }, { "value": 8, "label": "Lanç. Origem 2" }],
|
|
7823
|
+
"ContaDestino": [{ "value": 10, "label": "Conta BB" }, { "value": 7, "label": "Conta Santander" }],
|
|
7824
|
+
"HistoricoBancarioDestino": [{ "value": 11, "label": "Contra Bradesco" }, { "value": 13, "label": "Contra Destino" }],
|
|
7825
|
+
"Usuario": [{ "value": 0, "label": "SUP" }],
|
|
7826
|
+
"ContaBancaria": [{ "value": 10, "label": "Conta 10" }, { "value": 17, "label": "Conta 17" }],
|
|
7827
|
+
"TipoOperacao": [{ "value": 4, "label": "Entrada NFse" }, { "value": 5, "label": "Outra top" }, { "value": 6, "label": "Top 6" }]
|
|
7828
|
+
};
|
|
7829
|
+
const pesquisaLoadOptions = (searchArgument, fieldName, dataUnit) => {
|
|
7830
|
+
var _a;
|
|
7831
|
+
console.log(searchArgument);
|
|
7832
|
+
const field = dataUnit.getField(fieldName);
|
|
7833
|
+
const entityName = (_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME;
|
|
7834
|
+
return (mockByEntity[entityName] || []);
|
|
7835
|
+
};
|
|
7836
|
+
|
|
7813
7837
|
const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
|
|
7814
7838
|
|
|
7815
7839
|
const SnkApplication = class {
|
|
@@ -7920,6 +7944,9 @@ const SnkApplication = class {
|
|
|
7920
7944
|
}
|
|
7921
7945
|
return this._formConfigFetcher;
|
|
7922
7946
|
}
|
|
7947
|
+
componentWillLoad() {
|
|
7948
|
+
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", pesquisaLoadOptions);
|
|
7949
|
+
}
|
|
7923
7950
|
componentDidLoad() {
|
|
7924
7951
|
this.applicationLoading.emit(true);
|
|
7925
7952
|
window.requestAnimationFrame(() => {
|
|
@@ -7,6 +7,8 @@ import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-f
|
|
|
7
7
|
//incluída no pacote. Isso deve ser resolvido nas proximas entregas e então ajustado aqui
|
|
8
8
|
import ApplicationUtils from "../../temp/ApplicationUtils";
|
|
9
9
|
import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
10
|
+
import { ApplicationContext } from "@sankhyalabs/core";
|
|
11
|
+
import { pesquisaLoadOptions } from "../../lib/utils/pesquisa";
|
|
10
12
|
export class SnkApplication {
|
|
11
13
|
get parameters() {
|
|
12
14
|
if (!this._parameters) {
|
|
@@ -110,6 +112,9 @@ export class SnkApplication {
|
|
|
110
112
|
}
|
|
111
113
|
return this._formConfigFetcher;
|
|
112
114
|
}
|
|
115
|
+
componentWillLoad() {
|
|
116
|
+
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", pesquisaLoadOptions);
|
|
117
|
+
}
|
|
113
118
|
componentDidLoad() {
|
|
114
119
|
this.applicationLoading.emit(true);
|
|
115
120
|
window.requestAnimationFrame(() => {
|
|
@@ -8,7 +8,7 @@ export class FormConfigFetcher extends ResourceFetcher {
|
|
|
8
8
|
const config = JSON.parse(configAsString);
|
|
9
9
|
const { tabs, fields } = config;
|
|
10
10
|
if (tabs) {
|
|
11
|
-
const allTabs = new Map(tabs.map(t => [t.
|
|
11
|
+
const allTabs = new Map(tabs.map(t => [t.label, t]));
|
|
12
12
|
fields.forEach(f => f.tab = allTabs.get(f.tab));
|
|
13
13
|
}
|
|
14
14
|
accept(fields);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const mockByEntity = {
|
|
2
|
+
"ImplantacaoSaldoConta": [{ "value": 6, "label": "Conta Financeiro" }, { "value": 7, "label": "Conta Banco do Brasil" }],
|
|
3
|
+
"HistoricoBancario": [{ "value": 9, "label": "Lanç. Origem" }, { "value": 8, "label": "Lanç. Origem 2" }],
|
|
4
|
+
"ContaDestino": [{ "value": 10, "label": "Conta BB" }, { "value": 7, "label": "Conta Santander" }],
|
|
5
|
+
"HistoricoBancarioDestino": [{ "value": 11, "label": "Contra Bradesco" }, { "value": 13, "label": "Contra Destino" }],
|
|
6
|
+
"Usuario": [{ "value": 0, "label": "SUP" }],
|
|
7
|
+
"ContaBancaria": [{ "value": 10, "label": "Conta 10" }, { "value": 17, "label": "Conta 17" }],
|
|
8
|
+
"TipoOperacao": [{ "value": 4, "label": "Entrada NFse" }, { "value": 5, "label": "Outra top" }, { "value": 6, "label": "Top 6" }]
|
|
9
|
+
};
|
|
10
|
+
export const pesquisaLoadOptions = (searchArgument, fieldName, dataUnit) => {
|
|
11
|
+
var _a;
|
|
12
|
+
console.log(searchArgument);
|
|
13
|
+
const field = dataUnit.getField(fieldName);
|
|
14
|
+
const entityName = (_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME;
|
|
15
|
+
return (mockByEntity[entityName] || []);
|
|
16
|
+
};
|
|
@@ -1149,6 +1149,7 @@ var UserInterface;
|
|
|
1149
1149
|
UserInterface["IMAGE"] = "IMAGE";
|
|
1150
1150
|
UserInterface["DATE"] = "DATE";
|
|
1151
1151
|
UserInterface["DATETIME"] = "DATETIME";
|
|
1152
|
+
UserInterface["TIME"] = "TIME";
|
|
1152
1153
|
UserInterface["ELAPSEDTIME"] = "ELAPSEDTIME";
|
|
1153
1154
|
UserInterface["CHECKBOX"] = "CHECKBOX";
|
|
1154
1155
|
UserInterface["SWITCH"] = "SWITCH";
|
|
@@ -1163,16 +1164,22 @@ var UserInterface;
|
|
|
1163
1164
|
UserInterface["HTML"] = "HTML";
|
|
1164
1165
|
})(UserInterface || (UserInterface = {}));
|
|
1165
1166
|
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1167
|
+
class ApplicationContext {
|
|
1168
|
+
static getContextValue(key) {
|
|
1169
|
+
return ApplicationContext.getCtx()[key].deref();
|
|
1170
|
+
}
|
|
1171
|
+
static setContextValue(key, value) {
|
|
1172
|
+
ApplicationContext.getCtx()[key] = new WeakRef(value);
|
|
1173
|
+
}
|
|
1174
|
+
static getCtx() {
|
|
1175
|
+
let ctx = window.___snkcore___ctx___;
|
|
1176
|
+
if (!ctx) {
|
|
1177
|
+
ctx = {};
|
|
1178
|
+
window.___snkcore___ctx___ = ctx;
|
|
1179
|
+
}
|
|
1180
|
+
return ctx;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1176
1183
|
|
|
1177
1184
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1178
1185
|
|
|
@@ -7790,7 +7797,7 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
7790
7797
|
const config = JSON.parse(configAsString);
|
|
7791
7798
|
const { tabs, fields } = config;
|
|
7792
7799
|
if (tabs) {
|
|
7793
|
-
const allTabs = new Map(tabs.map(t => [t.
|
|
7800
|
+
const allTabs = new Map(tabs.map(t => [t.label, t]));
|
|
7794
7801
|
fields.forEach(f => f.tab = allTabs.get(f.tab));
|
|
7795
7802
|
}
|
|
7796
7803
|
accept(fields);
|
|
@@ -7806,6 +7813,23 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
7806
7813
|
}
|
|
7807
7814
|
}
|
|
7808
7815
|
|
|
7816
|
+
const mockByEntity = {
|
|
7817
|
+
"ImplantacaoSaldoConta": [{ "value": 6, "label": "Conta Financeiro" }, { "value": 7, "label": "Conta Banco do Brasil" }],
|
|
7818
|
+
"HistoricoBancario": [{ "value": 9, "label": "Lanç. Origem" }, { "value": 8, "label": "Lanç. Origem 2" }],
|
|
7819
|
+
"ContaDestino": [{ "value": 10, "label": "Conta BB" }, { "value": 7, "label": "Conta Santander" }],
|
|
7820
|
+
"HistoricoBancarioDestino": [{ "value": 11, "label": "Contra Bradesco" }, { "value": 13, "label": "Contra Destino" }],
|
|
7821
|
+
"Usuario": [{ "value": 0, "label": "SUP" }],
|
|
7822
|
+
"ContaBancaria": [{ "value": 10, "label": "Conta 10" }, { "value": 17, "label": "Conta 17" }],
|
|
7823
|
+
"TipoOperacao": [{ "value": 4, "label": "Entrada NFse" }, { "value": 5, "label": "Outra top" }, { "value": 6, "label": "Top 6" }]
|
|
7824
|
+
};
|
|
7825
|
+
const pesquisaLoadOptions = (searchArgument, fieldName, dataUnit) => {
|
|
7826
|
+
var _a;
|
|
7827
|
+
console.log(searchArgument);
|
|
7828
|
+
const field = dataUnit.getField(fieldName);
|
|
7829
|
+
const entityName = (_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME;
|
|
7830
|
+
return (mockByEntity[entityName] || []);
|
|
7831
|
+
};
|
|
7832
|
+
|
|
7809
7833
|
const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
|
|
7810
7834
|
|
|
7811
7835
|
const SnkApplication$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
@@ -7917,6 +7941,9 @@ const SnkApplication$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
|
|
|
7917
7941
|
}
|
|
7918
7942
|
return this._formConfigFetcher;
|
|
7919
7943
|
}
|
|
7944
|
+
componentWillLoad() {
|
|
7945
|
+
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", pesquisaLoadOptions);
|
|
7946
|
+
}
|
|
7920
7947
|
componentDidLoad() {
|
|
7921
7948
|
this.applicationLoading.emit(true);
|
|
7922
7949
|
window.requestAnimationFrame(() => {
|
|
@@ -283,6 +283,11 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
283
283
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
284
284
|
const instance = hostRef.$lazyInstance$ ;
|
|
285
285
|
let promise;
|
|
286
|
+
if (isInitialLoad) {
|
|
287
|
+
{
|
|
288
|
+
promise = safeCall(instance, 'componentWillLoad');
|
|
289
|
+
}
|
|
290
|
+
}
|
|
286
291
|
endSchedule();
|
|
287
292
|
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
288
293
|
};
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-8d3572c4.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Classe com utiliários comuns para Strings.
|
|
@@ -1149,6 +1149,7 @@ var UserInterface;
|
|
|
1149
1149
|
UserInterface["IMAGE"] = "IMAGE";
|
|
1150
1150
|
UserInterface["DATE"] = "DATE";
|
|
1151
1151
|
UserInterface["DATETIME"] = "DATETIME";
|
|
1152
|
+
UserInterface["TIME"] = "TIME";
|
|
1152
1153
|
UserInterface["ELAPSEDTIME"] = "ELAPSEDTIME";
|
|
1153
1154
|
UserInterface["CHECKBOX"] = "CHECKBOX";
|
|
1154
1155
|
UserInterface["SWITCH"] = "SWITCH";
|
|
@@ -1163,16 +1164,22 @@ var UserInterface;
|
|
|
1163
1164
|
UserInterface["HTML"] = "HTML";
|
|
1164
1165
|
})(UserInterface || (UserInterface = {}));
|
|
1165
1166
|
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1167
|
+
class ApplicationContext {
|
|
1168
|
+
static getContextValue(key) {
|
|
1169
|
+
return ApplicationContext.getCtx()[key].deref();
|
|
1170
|
+
}
|
|
1171
|
+
static setContextValue(key, value) {
|
|
1172
|
+
ApplicationContext.getCtx()[key] = new WeakRef(value);
|
|
1173
|
+
}
|
|
1174
|
+
static getCtx() {
|
|
1175
|
+
let ctx = window.___snkcore___ctx___;
|
|
1176
|
+
if (!ctx) {
|
|
1177
|
+
ctx = {};
|
|
1178
|
+
window.___snkcore___ctx___ = ctx;
|
|
1179
|
+
}
|
|
1180
|
+
return ctx;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1176
1183
|
|
|
1177
1184
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
1178
1185
|
|
|
@@ -7790,7 +7797,7 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
7790
7797
|
const config = JSON.parse(configAsString);
|
|
7791
7798
|
const { tabs, fields } = config;
|
|
7792
7799
|
if (tabs) {
|
|
7793
|
-
const allTabs = new Map(tabs.map(t => [t.
|
|
7800
|
+
const allTabs = new Map(tabs.map(t => [t.label, t]));
|
|
7794
7801
|
fields.forEach(f => f.tab = allTabs.get(f.tab));
|
|
7795
7802
|
}
|
|
7796
7803
|
accept(fields);
|
|
@@ -7806,6 +7813,23 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
7806
7813
|
}
|
|
7807
7814
|
}
|
|
7808
7815
|
|
|
7816
|
+
const mockByEntity = {
|
|
7817
|
+
"ImplantacaoSaldoConta": [{ "value": 6, "label": "Conta Financeiro" }, { "value": 7, "label": "Conta Banco do Brasil" }],
|
|
7818
|
+
"HistoricoBancario": [{ "value": 9, "label": "Lanç. Origem" }, { "value": 8, "label": "Lanç. Origem 2" }],
|
|
7819
|
+
"ContaDestino": [{ "value": 10, "label": "Conta BB" }, { "value": 7, "label": "Conta Santander" }],
|
|
7820
|
+
"HistoricoBancarioDestino": [{ "value": 11, "label": "Contra Bradesco" }, { "value": 13, "label": "Contra Destino" }],
|
|
7821
|
+
"Usuario": [{ "value": 0, "label": "SUP" }],
|
|
7822
|
+
"ContaBancaria": [{ "value": 10, "label": "Conta 10" }, { "value": 17, "label": "Conta 17" }],
|
|
7823
|
+
"TipoOperacao": [{ "value": 4, "label": "Entrada NFse" }, { "value": 5, "label": "Outra top" }, { "value": 6, "label": "Top 6" }]
|
|
7824
|
+
};
|
|
7825
|
+
const pesquisaLoadOptions = (searchArgument, fieldName, dataUnit) => {
|
|
7826
|
+
var _a;
|
|
7827
|
+
console.log(searchArgument);
|
|
7828
|
+
const field = dataUnit.getField(fieldName);
|
|
7829
|
+
const entityName = (_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME;
|
|
7830
|
+
return (mockByEntity[entityName] || []);
|
|
7831
|
+
};
|
|
7832
|
+
|
|
7809
7833
|
const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
|
|
7810
7834
|
|
|
7811
7835
|
const SnkApplication = class {
|
|
@@ -7916,6 +7940,9 @@ const SnkApplication = class {
|
|
|
7916
7940
|
}
|
|
7917
7941
|
return this._formConfigFetcher;
|
|
7918
7942
|
}
|
|
7943
|
+
componentWillLoad() {
|
|
7944
|
+
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", pesquisaLoadOptions);
|
|
7945
|
+
}
|
|
7919
7946
|
componentDidLoad() {
|
|
7920
7947
|
this.applicationLoading.emit(true);
|
|
7921
7948
|
window.requestAnimationFrame(() => {
|