@sdata-plugin-adapter/react 0.0.0-alpha.3 → 0.0.0-alpha.4
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/export-CuNiopMp.js +2 -0
- package/dist/export-CuNiopMp.js.map +1 -0
- package/dist/index-BV9RX_Ka.js +92 -0
- package/dist/index-BV9RX_Ka.js.map +1 -0
- package/dist/index-CC9uxwpR.js +4586 -0
- package/dist/index-CC9uxwpR.js.map +1 -0
- package/dist/index-CUpP0oMu.js +56 -0
- package/dist/index-CUpP0oMu.js.map +1 -0
- package/dist/index-CqtMUNRo.js +13 -0
- package/dist/index-CqtMUNRo.js.map +1 -0
- package/dist/index-D8cPmNOG.js +59 -0
- package/dist/index-D8cPmNOG.js.map +1 -0
- package/dist/index-DQLM9I3g.js +71 -0
- package/dist/index-DQLM9I3g.js.map +1 -0
- package/dist/index-bwVa5yZu.js +24 -0
- package/dist/index-bwVa5yZu.js.map +1 -0
- package/dist/index.d.ts +10 -2
- package/dist/index.js +18 -5557
- package/dist/index.js.map +1 -1
- package/dist/start-KvBmIDZs.js +695 -0
- package/dist/start-KvBmIDZs.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { generateUUID as h, setDomAttributes as D } from "@sdata-plugin-adapter/utils";
|
|
2
|
+
import N from "configJson";
|
|
3
|
+
import { D as d } from "./index-bwVa5yZu.js";
|
|
4
|
+
import "./export-CuNiopMp.js";
|
|
5
|
+
import { c as P } from "./start-KvBmIDZs.js";
|
|
6
|
+
const A = !0, { "online-development-mode": C, "requirement-number": J } = N ?? {}, y = (e) => {
|
|
7
|
+
const { useEffect: p, useRef: l } = window.React, E = !!(C != null && C.open), { isConfig: w, customConfig: m, configType: g, onConfigChange: I, appTriggerEvent: f } = e, n = { ...e }, o = n.componentId = m.componentId;
|
|
8
|
+
return (A || E) && (w && (n.changeCustomConfig = (t) => {
|
|
9
|
+
if (typeof t == "string")
|
|
10
|
+
try {
|
|
11
|
+
t = JSON.parse(t);
|
|
12
|
+
} catch (r) {
|
|
13
|
+
throw new Error(`changeCustomConfig 时 customConfig JSON.parse失败 ${r}`);
|
|
14
|
+
}
|
|
15
|
+
I(t);
|
|
16
|
+
}), g ? d[g] ? n.type = d[g] : n.type = d.default : n.type = w ? "designConfiguration" : "main"), n.triggerEvent = (t, r = {}) => {
|
|
17
|
+
var s, c;
|
|
18
|
+
typeof f == "function" ? f == null || f({
|
|
19
|
+
componentId: o,
|
|
20
|
+
event: t,
|
|
21
|
+
payload: r
|
|
22
|
+
}) : o && ((c = (s = window.eventCenter) == null ? void 0 : s.triggerEventNew) == null || c.call(s, {
|
|
23
|
+
objectId: m == null ? void 0 : m.appId,
|
|
24
|
+
componentId: o,
|
|
25
|
+
type: "app",
|
|
26
|
+
event: t,
|
|
27
|
+
payload: r
|
|
28
|
+
}));
|
|
29
|
+
}, n.useRegisterComponent = (t) => {
|
|
30
|
+
const { actions: r = {}, eventActionDefinitions: s } = t, { customConfig: c } = e, _ = Object.keys(r).reduce((i, a) => (i[`do_EventCenter_${a}`] = r[a], i), {}) || {};
|
|
31
|
+
let b = l({ Event_Center_getName: () => c.id || J || h(), ..._ });
|
|
32
|
+
p(() => {
|
|
33
|
+
var i, a;
|
|
34
|
+
return o && ((a = (i = window.componentCenter) == null ? void 0 : i.register) == null || a.call(
|
|
35
|
+
i,
|
|
36
|
+
o,
|
|
37
|
+
"comp",
|
|
38
|
+
b.current,
|
|
39
|
+
s ?? {}
|
|
40
|
+
)), () => {
|
|
41
|
+
var u, v;
|
|
42
|
+
o && ((v = (u = window.componentCenter) == null ? void 0 : u.removeInstance) == null || v.call(u, o));
|
|
43
|
+
};
|
|
44
|
+
}, [o, c, r, s]);
|
|
45
|
+
}, n;
|
|
46
|
+
}, O = async (e, p) => {
|
|
47
|
+
D(e, p, y);
|
|
48
|
+
}, x = async (e) => {
|
|
49
|
+
P({ ...e, setAttributes: O, adapter: R });
|
|
50
|
+
}, R = (e) => y(e);
|
|
51
|
+
export {
|
|
52
|
+
R as adapter,
|
|
53
|
+
O as setAttributes,
|
|
54
|
+
x as start
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=index-CUpP0oMu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CUpP0oMu.js","sources":["../src/plugins/app/adapter.ts","../src/plugins/app/index.ts"],"sourcesContent":["import { generateUUID } from '@sdata-plugin-adapter/utils';\r\nimport configJson from 'configJson';\r\nimport type {\r\n UseRegisterComponentParams,\r\n BaseAppProps,\r\n AppAdapterProps,\r\n CustomConfig,\r\n ActionsFunction,\r\n EventActionDefinitions,\r\n} from '@sdata-plugin-adapter/types';\r\nimport { DesignConfigurationMap } from '@/enmu';\r\n\r\nconst isEnvProd = import.meta.env.PROD;\r\n\r\nconst { 'online-development-mode': onlineDevMode, 'requirement-number': requirMNumber } =\r\n configJson ?? {};\r\n\r\nconst adapterProps = (props: BaseAppProps): AppAdapterProps => {\r\n const { useEffect, useRef } = window.React;\r\n const onlineDevelopmentMode: boolean = !!onlineDevMode?.open;\r\n const { isConfig, customConfig, configType, onConfigChange, appTriggerEvent } = props;\r\n // 透传给二开的props\r\n const adapterProps = { ...props } as AppAdapterProps;\r\n /**\r\n * 扩展 props API: 仅限在宿主环境为smdata平台\r\n */\r\n const componentId = (adapterProps.componentId = customConfig.componentId as string);\r\n if (isEnvProd || onlineDevelopmentMode) {\r\n if (isConfig) {\r\n // 配置态下 配置项扩展API\r\n adapterProps.changeCustomConfig = (cmptConfig: string | CustomConfig) => {\r\n if (typeof cmptConfig === 'string') {\r\n try {\r\n cmptConfig = JSON.parse(cmptConfig);\r\n } catch (e) {\r\n throw new Error(`changeCustomConfig 时 customConfig JSON.parse失败 ${e}`);\r\n }\r\n }\r\n onConfigChange(cmptConfig as CustomConfig);\r\n };\r\n }\r\n\r\n // 渲染不同的二开配置类型\r\n if (configType) {\r\n if (DesignConfigurationMap[configType]) {\r\n adapterProps.type = DesignConfigurationMap[configType];\r\n } else {\r\n adapterProps.type = DesignConfigurationMap.default;\r\n }\r\n } else {\r\n adapterProps.type = isConfig ? 'designConfiguration' : 'main';\r\n }\r\n /**\r\n * 封装smardaten触发事件的方法\r\n * @param {String} eventName 事件名\r\n * @param {Object} payload 事件传参\r\n * @example\r\n * triggerEvent(\"click\",{value:\"123\"})\r\n *\r\n */\r\n }\r\n /**\r\n * 逻辑控制通信API\r\n * 1、triggerEvent: 用来触发组件事件\r\n * @param {String} eventName 事件名\r\n * @param {Object} payload 事件传参\r\n * @example\r\n * triggerEvent(\"click\",{value:\"123\"})\r\n *\r\n * 2、useRegisterComponent: 用来注册组件的动作和事件\r\n */\r\n adapterProps.triggerEvent = (eventName: string, payload: Record<string, any> = {}) => {\r\n if (typeof appTriggerEvent === 'function') {\r\n appTriggerEvent?.({\r\n componentId: componentId,\r\n event: eventName,\r\n payload,\r\n });\r\n } else {\r\n componentId &&\r\n window.eventCenter?.triggerEventNew?.({\r\n objectId: customConfig?.appId,\r\n componentId: componentId,\r\n type: 'app',\r\n event: eventName,\r\n payload,\r\n });\r\n }\r\n };\r\n adapterProps.useRegisterComponent = (params: UseRegisterComponentParams) => {\r\n const { actions = {}, eventActionDefinitions } = params;\r\n const { customConfig } = props;\r\n\r\n const _actions =\r\n Object.keys(actions).reduce((acc, key: string) => {\r\n acc[`do_EventCenter_${key}`] = actions[key];\r\n return acc;\r\n }, {} as ActionsFunction) || {};\r\n\r\n const Event_Center_getName = () => {\r\n return customConfig.id || requirMNumber || generateUUID();\r\n };\r\n let ref = useRef({ Event_Center_getName, ..._actions });\r\n useEffect(() => {\r\n componentId &&\r\n window.componentCenter?.register?.(\r\n componentId,\r\n 'comp',\r\n ref.current,\r\n eventActionDefinitions ?? ({} as EventActionDefinitions),\r\n );\r\n return () => {\r\n componentId && window.componentCenter?.removeInstance?.(componentId);\r\n };\r\n }, [componentId, customConfig, actions, eventActionDefinitions]);\r\n };\r\n\r\n // return\r\n return adapterProps as AppAdapterProps;\r\n};\r\n\r\nexport { adapterProps };\r\n","import { setDomAttributes } from '@sdata-plugin-adapter/utils';\r\nimport { adapterProps } from './adapter';\r\nimport { createPlugin } from '@/common/export';\r\nimport type {\r\n AppAdapterProps,\r\n BaseAppProps,\r\n SetAttributes,\r\n StartOptions,\r\n} from '@sdata-plugin-adapter/types';\r\n\r\nexport const setAttributes: SetAttributes<BaseAppProps> = async (dom, props) => {\r\n setDomAttributes(dom, props, adapterProps);\r\n};\r\n\r\nexport const start = async (options: StartOptions<AppAdapterProps>) => {\r\n createPlugin<BaseAppProps, AppAdapterProps>({ ...options, setAttributes, adapter });\r\n};\r\n\r\nexport const adapter = (props: BaseAppProps): AppAdapterProps => {\r\n return adapterProps(props);\r\n};\r\n"],"names":["isEnvProd","onlineDevMode","requirMNumber","configJson","adapterProps","props","useEffect","useRef","onlineDevelopmentMode","isConfig","customConfig","configType","onConfigChange","appTriggerEvent","componentId","cmptConfig","e","DesignConfigurationMap","eventName","payload","_b","_a","params","actions","eventActionDefinitions","_actions","acc","key","ref","generateUUID","setAttributes","dom","setDomAttributes","start","options","createPlugin","adapter"],"mappings":";;;;;AAYA,MAAMA,IAAY,IAEZ,EAAE,2BAA2BC,GAAe,sBAAsBC,EAAA,IACtEC,KAAc,CAAA,GAEVC,IAAe,CAACC,MAAyC;AAC7D,QAAM,EAAE,WAAAC,GAAW,QAAAC,EAAA,IAAW,OAAO,OAC/BC,IAAiC,CAAC,EAACP,KAAA,QAAAA,EAAe,OAClD,EAAE,UAAAQ,GAAU,cAAAC,GAAc,YAAAC,GAAY,gBAAAC,GAAgB,iBAAAC,MAAoBR,GAE1ED,IAAe,EAAE,GAAGC,EAAA,GAIpBS,IAAeV,EAAa,cAAcM,EAAa;AAC7D,UAAIV,KAAaQ,OACXC,MAEFL,EAAa,qBAAqB,CAACW,MAAsC;AACvE,QAAI,OAAOA,KAAe;AACxB,UAAI;AACF,QAAAA,IAAa,KAAK,MAAMA,CAAU;AAAA,MACpC,SAASC,GAAG;AACV,cAAM,IAAI,MAAM,kDAAkDA,CAAC,EAAE;AAAA,MACvE;AAEF,IAAAJ,EAAeG,CAA0B;AAAA,EAC3C,IAIEJ,IACEM,EAAuBN,CAAU,IACnCP,EAAa,OAAOa,EAAuBN,CAAU,IAErDP,EAAa,OAAOa,EAAuB,UAG7Cb,EAAa,OAAOK,IAAW,wBAAwB,SAqB3DL,EAAa,eAAe,CAACc,GAAmBC,IAA+B,CAAA,MAAO;;AACpF,IAAI,OAAON,KAAoB,aAC7BA,KAAA,QAAAA,EAAkB;AAAA,MAChB,aAAAC;AAAA,MACA,OAAOI;AAAA,MACP,SAAAC;AAAA,IAAA,KAGFL,OACEM,KAAAC,IAAA,OAAO,gBAAP,gBAAAA,EAAoB,oBAApB,QAAAD,EAAA,KAAAC,GAAsC;AAAA,MACpC,UAAUX,KAAA,gBAAAA,EAAc;AAAA,MACxB,aAAAI;AAAA,MACA,MAAM;AAAA,MACN,OAAOI;AAAA,MACP,SAAAC;AAAA,IAAA;AAAA,EAGR,GACAf,EAAa,uBAAuB,CAACkB,MAAuC;AAC1E,UAAM,EAAE,SAAAC,IAAU,IAAI,wBAAAC,MAA2BF,GAC3C,EAAE,cAAAZ,EAAAA,IAAiBL,GAEnBoB,IACJ,OAAO,KAAKF,CAAO,EAAE,OAAO,CAACG,GAAKC,OAChCD,EAAI,kBAAkBC,CAAG,EAAE,IAAIJ,EAAQI,CAAG,GACnCD,IACN,CAAA,CAAqB,KAAK,CAAA;AAK/B,QAAIE,IAAMrB,EAAO,EAAE,sBAHU,MACpBG,EAAa,MAAMR,KAAiB2B,EAAA,GAEJ,GAAGJ,GAAU;AACtD,IAAAnB,EAAU,MAAM;;AACd,aAAAQ,OACEM,KAAAC,IAAA,OAAO,oBAAP,gBAAAA,EAAwB,aAAxB,QAAAD,EAAA;AAAA,QAAAC;AAAA,QACEP;AAAA,QACA;AAAA,QACAc,EAAI;AAAA,QACJJ,KAA2B,CAAA;AAAA,UAExB,MAAM;;AACX,QAAAV,OAAeM,KAAAC,IAAA,OAAO,oBAAP,gBAAAA,EAAwB,mBAAxB,QAAAD,EAAA,KAAAC,GAAyCP;AAAA,MAC1D;AAAA,IACF,GAAG,CAACA,GAAaJ,GAAca,GAASC,CAAsB,CAAC;AAAA,EACjE,GAGOpB;AACT,GC7Ga0B,IAA6C,OAAOC,GAAK1B,MAAU;AAC9E,EAAA2B,EAAiBD,GAAK1B,GAAOD,CAAY;AAC3C,GAEa6B,IAAQ,OAAOC,MAA2C;AACrE,EAAAC,EAA4C,EAAE,GAAGD,GAAS,eAAAJ,GAAe,SAAAM,GAAS;AACpF,GAEaA,IAAU,CAAC/B,MACfD,EAAaC,CAAK;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { setDomAttributes as c } from "@sdata-plugin-adapter/utils";
|
|
2
|
+
import { c as o } from "./start-KvBmIDZs.js";
|
|
3
|
+
const u = async (s) => {
|
|
4
|
+
const { adapter: e } = s;
|
|
5
|
+
o({ ...s, setAttributes: async (r, t) => {
|
|
6
|
+
const a = e ? e(t) : t;
|
|
7
|
+
c(r, t, a);
|
|
8
|
+
} });
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
u as start
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=index-CqtMUNRo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CqtMUNRo.js","sources":["../src/common/index.ts"],"sourcesContent":["import type { BaseProps, CreatePluginOptions } from '@sdata-plugin-adapter/types';\nimport { setDomAttributes } from '@sdata-plugin-adapter/utils';\nimport { createPlugin } from './start';\n\nexport const start = async (options: CreatePluginOptions<BaseProps, any>) => {\n const { adapter } = options;\n const setAttributes = async (dom: Element, props: BaseProps) => {\n const adaptedProps = adapter ? adapter(props) : props;\n setDomAttributes(dom, props, adaptedProps);\n };\n createPlugin({ ...options, setAttributes });\n};\n"],"names":["start","options","adapter","createPlugin","dom","props","adaptedProps","setDomAttributes"],"mappings":";;AAIO,MAAMA,IAAQ,OAAOC,MAAiD;AAC3E,QAAM,EAAE,SAAAC,MAAYD;AAKpB,EAAAE,EAAa,EAAE,GAAGF,GAAS,eAJL,OAAOG,GAAcC,MAAqB;AAC9D,UAAMC,IAAeJ,IAAUA,EAAQG,CAAK,IAAIA;AAChD,IAAAE,EAAiBH,GAAKC,GAAOC,CAAY;AAAA,EAC3C,GAC0C;AAC5C;"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { generateUUID as A, setDomAttributes as N } from "@sdata-plugin-adapter/utils";
|
|
2
|
+
import P from "configJson";
|
|
3
|
+
import "./export-CuNiopMp.js";
|
|
4
|
+
import { c as D } from "./start-KvBmIDZs.js";
|
|
5
|
+
const R = !0, { "online-development-mode": m, "requirement-number": T } = P ?? {}, y = (n) => {
|
|
6
|
+
var v;
|
|
7
|
+
const { useEffect: d, useRef: b } = window.React, I = !!(m != null && m.open), {
|
|
8
|
+
viewId: g,
|
|
9
|
+
pluginId: E,
|
|
10
|
+
type: f,
|
|
11
|
+
allComponentList: i,
|
|
12
|
+
pluginConfig: _,
|
|
13
|
+
configuration: w,
|
|
14
|
+
changeConfiguration: C
|
|
15
|
+
} = n, e = { ...n }, l = e.componentId = E;
|
|
16
|
+
return (R || I) && (e.type = f === "designConfiguration" ? "designConfiguration" : "main", C && (e.changeCustomConfig = C), f === "designConfiguration" ? (e.customConfig = w ? JSON.parse(w) : {}, Array.isArray(i) && (e.columnList = ((v = i == null ? void 0 : i.map) == null ? void 0 : v.call(i, (t) => {
|
|
17
|
+
var c, s, p;
|
|
18
|
+
const o = ((c = t.componentConfig) == null ? void 0 : c.title) || t.showType, r = ((p = (s = window == null ? void 0 : window.appSdk) == null ? void 0 : s.intlGetKey) == null ? void 0 : p.call(s, o)) ?? o;
|
|
19
|
+
return {
|
|
20
|
+
showType: t.showType,
|
|
21
|
+
value: t.id,
|
|
22
|
+
label: r
|
|
23
|
+
};
|
|
24
|
+
})) ?? [])) : e.customConfig = _), e.triggerEvent = (t, o = {}) => {
|
|
25
|
+
var r;
|
|
26
|
+
l && ((r = window.eventCenter) == null || r.triggerEventNew({
|
|
27
|
+
objectId: g,
|
|
28
|
+
componentId: g + ",listLoading",
|
|
29
|
+
type: "viewer",
|
|
30
|
+
event: t,
|
|
31
|
+
payload: o
|
|
32
|
+
}));
|
|
33
|
+
}, e.useRegisterComponent = (t) => {
|
|
34
|
+
const { actions: o = {}, eventActionDefinitions: r } = t, { customConfig: c } = e, s = Object.keys(o).reduce((a, u) => (a[`do_EventCenter_${u}`] = o[u], a), {}) || {};
|
|
35
|
+
let h = b({ Event_Center_getName: () => c.id || T || A(), ...s });
|
|
36
|
+
d(() => {
|
|
37
|
+
var a;
|
|
38
|
+
return (a = window.componentCenter) == null || a.register(
|
|
39
|
+
g + ",listLoading",
|
|
40
|
+
"comp",
|
|
41
|
+
h.current,
|
|
42
|
+
r ?? {}
|
|
43
|
+
), () => {
|
|
44
|
+
var u;
|
|
45
|
+
(u = window.componentCenter) == null || u.removeInstance(g + ",listLoading");
|
|
46
|
+
};
|
|
47
|
+
}, [l, c, o, r]);
|
|
48
|
+
}, e;
|
|
49
|
+
}, j = async (n, d) => {
|
|
50
|
+
N(n, d, y);
|
|
51
|
+
}, k = async (n) => {
|
|
52
|
+
D({ ...n, setAttributes: j, adapter: q });
|
|
53
|
+
}, q = (n) => y(n);
|
|
54
|
+
export {
|
|
55
|
+
q as adapter,
|
|
56
|
+
j as setAttributes,
|
|
57
|
+
k as start
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=index-D8cPmNOG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-D8cPmNOG.js","sources":["../src/plugins/dataFormList/adapter.ts","../src/plugins/dataFormList/index.ts"],"sourcesContent":["import { generateUUID } from '@sdata-plugin-adapter/utils';\r\nimport configJson from 'configJson';\r\nimport type {\r\n UseRegisterComponentParams,\r\n BaseDFListProps,\r\n DFListAdapterProps,\r\n ActionsFunction,\r\n EventActionDefinitions,\r\n} from '@sdata-plugin-adapter/types';\r\n\r\nconst isEnvProd = import.meta.env.PROD;\r\n\r\nconst { 'online-development-mode': onlineDevMode, 'requirement-number': requirMNumber } =\r\n configJson ?? {};\r\n\r\nconst adapterProps = (props: BaseDFListProps): DFListAdapterProps => {\r\n const { useEffect, useRef } = window.React;\r\n const onlineDevelopmentMode: boolean = !!onlineDevMode?.open;\r\n const {\r\n viewId,\r\n pluginId,\r\n type,\r\n allComponentList,\r\n pluginConfig,\r\n configuration,\r\n changeConfiguration,\r\n } = props;\r\n // 透传给二开的props\r\n const adapterProps = { ...props } as DFListAdapterProps;\r\n /**\r\n * 扩展 props API: 仅限在宿主环境为smdata平台\r\n */\r\n const componentId = (adapterProps.componentId = pluginId);\r\n if (isEnvProd || onlineDevelopmentMode) {\r\n adapterProps.type = type === 'designConfiguration' ? 'designConfiguration' : 'main';\r\n // 重命名 changeConfiguration\r\n if (changeConfiguration) {\r\n adapterProps.changeCustomConfig = changeConfiguration;\r\n }\r\n\r\n if (type === 'designConfiguration') {\r\n adapterProps.customConfig = configuration ? JSON.parse(configuration) : {};\r\n if (Array.isArray(allComponentList)) {\r\n adapterProps.columnList =\r\n allComponentList?.map?.((item) => {\r\n const labelValue = item.componentConfig?.title || item.showType;\r\n const label = window?.appSdk?.intlGetKey?.(labelValue) ?? labelValue;\r\n return {\r\n showType: item.showType,\r\n value: item.id,\r\n label,\r\n };\r\n }) ?? [];\r\n }\r\n } else {\r\n adapterProps.customConfig = pluginConfig;\r\n }\r\n }\r\n /**\r\n * 逻辑控制通信API\r\n * 1、triggerEvent: 用来触发组件事件\r\n * @param {String} eventName 事件名\r\n * @param {Object} payload 事件传参\r\n * @example\r\n * triggerEvent(\"click\",{value:\"123\"})\r\n *\r\n * 2、useRegisterComponent: 用来注册组件的动作和事件\r\n */\r\n adapterProps.triggerEvent = (eventName: string, payload: Record<string, any> = {}) => {\r\n componentId &&\r\n window.eventCenter?.triggerEventNew({\r\n objectId: viewId,\r\n componentId: viewId + ',listLoading',\r\n type: 'viewer',\r\n event: eventName,\r\n payload,\r\n });\r\n };\r\n adapterProps.useRegisterComponent = (params: UseRegisterComponentParams) => {\r\n const { actions = {}, eventActionDefinitions } = params;\r\n const { customConfig } = adapterProps;\r\n\r\n const _actions =\r\n Object.keys(actions).reduce((acc, key: string) => {\r\n acc[`do_EventCenter_${key}`] = actions[key];\r\n return acc;\r\n }, {} as ActionsFunction) || {};\r\n\r\n const Event_Center_getName = () => {\r\n return customConfig.id || requirMNumber || generateUUID();\r\n };\r\n let ref = useRef({ Event_Center_getName, ..._actions });\r\n useEffect(() => {\r\n window.componentCenter?.register(\r\n viewId + ',listLoading',\r\n 'comp',\r\n ref.current,\r\n eventActionDefinitions ?? ({} as EventActionDefinitions),\r\n );\r\n return () => {\r\n window.componentCenter?.removeInstance(viewId + ',listLoading');\r\n };\r\n }, [componentId, customConfig, actions, eventActionDefinitions]);\r\n };\r\n\r\n return adapterProps;\r\n};\r\n\r\nexport { adapterProps };\r\n","import { setDomAttributes } from '@sdata-plugin-adapter/utils';\r\nimport { adapterProps } from './adapter';\r\nimport { createPlugin } from '@/common/export';\r\nimport type {\r\n BaseDFListProps,\r\n DFListAdapterProps,\r\n SetAttributes,\r\n StartOptions,\r\n} from '@sdata-plugin-adapter/types';\r\n\r\nexport const setAttributes: SetAttributes<BaseDFListProps> = async (dom, props) => {\r\n setDomAttributes(dom, props, adapterProps);\r\n};\r\n\r\nexport const start = async (options: StartOptions<DFListAdapterProps>) => {\r\n createPlugin<BaseDFListProps, DFListAdapterProps>({ ...options, setAttributes, adapter });\r\n};\r\n\r\nexport const adapter = (props: BaseDFListProps) => {\r\n return adapterProps(props);\r\n};\r\n"],"names":["isEnvProd","onlineDevMode","requirMNumber","configJson","adapterProps","props","useEffect","useRef","onlineDevelopmentMode","viewId","pluginId","type","allComponentList","pluginConfig","configuration","changeConfiguration","componentId","_a","item","labelValue","label","_c","_b","eventName","payload","params","actions","eventActionDefinitions","customConfig","_actions","acc","key","ref","generateUUID","setAttributes","dom","setDomAttributes","start","options","createPlugin","adapter"],"mappings":";;;;AAUA,MAAMA,IAAY,IAEZ,EAAE,2BAA2BC,GAAe,sBAAsBC,EAAA,IACtEC,KAAc,CAAA,GAEVC,IAAe,CAACC,MAA+C;;AACnE,QAAM,EAAE,WAAAC,GAAW,QAAAC,EAAA,IAAW,OAAO,OAC/BC,IAAiC,CAAC,EAACP,KAAA,QAAAA,EAAe,OAClD;AAAA,IACJ,QAAAQ;AAAA,IACA,UAAAC;AAAA,IACA,MAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,qBAAAC;AAAA,EAAA,IACEV,GAEED,IAAe,EAAE,GAAGC,EAAA,GAIpBW,IAAeZ,EAAa,cAAcM;AAChD,UAAIV,KAAaQ,OACfJ,EAAa,OAAOO,MAAS,wBAAwB,wBAAwB,QAEzEI,MACFX,EAAa,qBAAqBW,IAGhCJ,MAAS,yBACXP,EAAa,eAAeU,IAAgB,KAAK,MAAMA,CAAa,IAAI,CAAA,GACpE,MAAM,QAAQF,CAAgB,MAChCR,EAAa,eACXa,IAAAL,KAAA,gBAAAA,EAAkB,QAAlB,gBAAAK,EAAA,KAAAL,GAAwB,CAACM,MAAS;;AAChC,UAAMC,MAAaF,IAAAC,EAAK,oBAAL,gBAAAD,EAAsB,UAASC,EAAK,UACjDE,MAAQC,KAAAC,IAAA,iCAAQ,WAAR,gBAAAA,EAAgB,eAAhB,gBAAAD,EAAA,KAAAC,GAA6BH,OAAeA;AAC1D,WAAO;AAAA,MACL,UAAUD,EAAK;AAAA,MACf,OAAOA,EAAK;AAAA,MACZ,OAAAE;AAAA,IAAA;AAAA,EAEJ,OAAM,CAAA,MAGVhB,EAAa,eAAeS,IAahCT,EAAa,eAAe,CAACmB,GAAmBC,IAA+B,CAAA,MAAO;;AACpF,IAAAR,OACEC,IAAA,OAAO,gBAAP,QAAAA,EAAoB,gBAAgB;AAAA,MAClC,UAAUR;AAAA,MACV,aAAaA,IAAS;AAAA,MACtB,MAAM;AAAA,MACN,OAAOc;AAAA,MACP,SAAAC;AAAA,IAAA;AAAA,EAEN,GACApB,EAAa,uBAAuB,CAACqB,MAAuC;AAC1E,UAAM,EAAE,SAAAC,IAAU,IAAI,wBAAAC,MAA2BF,GAC3C,EAAE,cAAAG,MAAiBxB,GAEnByB,IACJ,OAAO,KAAKH,CAAO,EAAE,OAAO,CAACI,GAAKC,OAChCD,EAAI,kBAAkBC,CAAG,EAAE,IAAIL,EAAQK,CAAG,GACnCD,IACN,CAAA,CAAqB,KAAK,CAAA;AAK/B,QAAIE,IAAMzB,EAAO,EAAE,sBAHU,MACpBqB,EAAa,MAAM1B,KAAiB+B,EAAA,GAEJ,GAAGJ,GAAU;AACtD,IAAAvB,EAAU,MAAM;;AACd,cAAAW,IAAA,OAAO,oBAAP,QAAAA,EAAwB;AAAA,QACtBR,IAAS;AAAA,QACT;AAAA,QACAuB,EAAI;AAAA,QACJL,KAA2B,CAAA;AAAA,SAEtB,MAAM;;AACX,SAAAV,IAAA,OAAO,oBAAP,QAAAA,EAAwB,eAAeR,IAAS;AAAA,MAClD;AAAA,IACF,GAAG,CAACO,GAAaY,GAAcF,GAASC,CAAsB,CAAC;AAAA,EACjE,GAEOvB;AACT,GChGa8B,IAAgD,OAAOC,GAAK9B,MAAU;AACjF,EAAA+B,EAAiBD,GAAK9B,GAAOD,CAAY;AAC3C,GAEaiC,IAAQ,OAAOC,MAA8C;AACxE,EAAAC,EAAkD,EAAE,GAAGD,GAAS,eAAAJ,GAAe,SAAAM,GAAS;AAC1F,GAEaA,IAAU,CAACnC,MACfD,EAAaC,CAAK;"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { generateUUID as E, setDomAttributes as z } from "@sdata-plugin-adapter/utils";
|
|
2
|
+
import N from "configJson";
|
|
3
|
+
import "./export-CuNiopMp.js";
|
|
4
|
+
import { c as J } from "./start-KvBmIDZs.js";
|
|
5
|
+
const O = !0, { "online-development-mode": g, "requirement-number": S } = N ?? {}, _ = (t) => {
|
|
6
|
+
const { useEffect: f, useRef: l } = window.React, y = !!(g != null && g.open), { type: d, componentId: i, options: a, configuration: s, changeConfiguration: C } = t, r = { ...t };
|
|
7
|
+
if (O || y) {
|
|
8
|
+
if (r.type = d || "main", d === "designConfiguration") {
|
|
9
|
+
let n = s == null ? void 0 : s.analyzer_secondary_configuration;
|
|
10
|
+
n || (n = "{}");
|
|
11
|
+
try {
|
|
12
|
+
const e = JSON.parse(n);
|
|
13
|
+
r.customConfig = e;
|
|
14
|
+
} catch {
|
|
15
|
+
throw new Error(
|
|
16
|
+
"analyzer类型,JSON.parse解析失败,analyzer_secondary_configuration不是JSON字符串"
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
r.changeCustomConfig = (e) => {
|
|
20
|
+
s.analyzer_secondary_configuration = e, C(s);
|
|
21
|
+
};
|
|
22
|
+
} else {
|
|
23
|
+
let n = a == null ? void 0 : a.analyzer_secondary_configuration;
|
|
24
|
+
n || (n = "{}");
|
|
25
|
+
try {
|
|
26
|
+
const e = JSON.parse(n);
|
|
27
|
+
r.customConfig = e;
|
|
28
|
+
} catch {
|
|
29
|
+
throw new Error(
|
|
30
|
+
"analyzer类型,JSON.parse解析失败,analyzer_secondary_configuration不是JSON字符串"
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
r.customOptions = (a == null ? void 0 : a.externalVariables) || {};
|
|
34
|
+
}
|
|
35
|
+
r.data = t.dataSource || t.data;
|
|
36
|
+
}
|
|
37
|
+
return r.triggerEvent = (n, e = {}) => {
|
|
38
|
+
var u;
|
|
39
|
+
i && ((u = window.eventCenter) == null || u.triggerEvent(
|
|
40
|
+
i,
|
|
41
|
+
n,
|
|
42
|
+
//payload需为一个object
|
|
43
|
+
e
|
|
44
|
+
));
|
|
45
|
+
}, r.useRegisterComponent = (n) => {
|
|
46
|
+
const { actions: e = {}, eventActionDefinitions: u } = n, { customOptions: m, customConfig: p } = r, w = Object.keys(e).reduce((c, o) => (o.includes("do_EventCenter_") ? c[o] = e[o] : c[`do_EventCenter_${o}`] = e[o], c), {});
|
|
47
|
+
let v = l({ Event_Center_getName: () => (m == null ? void 0 : m.id) || S || E(), ...w });
|
|
48
|
+
f(() => {
|
|
49
|
+
var c;
|
|
50
|
+
return (c = window.componentCenter) == null || c.register(
|
|
51
|
+
i,
|
|
52
|
+
"comp",
|
|
53
|
+
v.current,
|
|
54
|
+
u
|
|
55
|
+
), () => {
|
|
56
|
+
var o;
|
|
57
|
+
(o = window.componentCenter) == null || o.removeInstance(i);
|
|
58
|
+
};
|
|
59
|
+
}, [i, p, e, u]);
|
|
60
|
+
}, r;
|
|
61
|
+
}, b = async (t, f) => {
|
|
62
|
+
z(t, f, _);
|
|
63
|
+
}, q = async (t) => {
|
|
64
|
+
J({ ...t, setAttributes: b, adapter: h });
|
|
65
|
+
}, h = (t) => _(t);
|
|
66
|
+
export {
|
|
67
|
+
h as adapter,
|
|
68
|
+
b as setAttributes,
|
|
69
|
+
q as start
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=index-DQLM9I3g.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-DQLM9I3g.js","sources":["../src/plugins/analyzer/adapter.ts","../src/plugins/analyzer/index.ts"],"sourcesContent":["import { generateUUID } from '@sdata-plugin-adapter/utils';\r\nimport configJson from 'configJson';\r\nimport type {\r\n UseRegisterComponentParams,\r\n BaseAnalyzerProps,\r\n AnalyzerAdapterProps,\r\n CustomConfig,\r\n ActionsFunction,\r\n EventActionDefinitions,\r\n} from '@sdata-plugin-adapter/types';\r\n\r\nconst isEnvProd = import.meta.env.PROD;\r\n\r\nconst { 'online-development-mode': onlineDevMode, 'requirement-number': requirMNumber } =\r\n configJson ?? {};\r\n\r\nconst adapterProps = (props: BaseAnalyzerProps): AnalyzerAdapterProps => {\r\n const { useEffect, useRef } = window.React;\r\n const onlineDevelopmentMode: boolean = !!onlineDevMode?.open;\r\n const { type, componentId, options, configuration, changeConfiguration } = props;\r\n // 透传给二开的props\r\n const adapterProps = { ...props } as AnalyzerAdapterProps;\r\n /**\r\n * 扩展 props API: 仅限在宿主环境为smdata平台\r\n */\r\n if (isEnvProd || onlineDevelopmentMode) {\r\n adapterProps.type = type || 'main';\r\n if (type === 'designConfiguration') {\r\n let analyzer_secondary_configuration = configuration?.analyzer_secondary_configuration;\r\n if (!analyzer_secondary_configuration) {\r\n analyzer_secondary_configuration = '{}';\r\n }\r\n try {\r\n const customConfig = JSON.parse(analyzer_secondary_configuration);\r\n adapterProps.customConfig = customConfig;\r\n } catch (e) {\r\n throw new Error(\r\n 'analyzer类型,JSON.parse解析失败,analyzer_secondary_configuration不是JSON字符串',\r\n );\r\n }\r\n adapterProps.changeCustomConfig = (customConfig) => {\r\n configuration.analyzer_secondary_configuration = customConfig;\r\n changeConfiguration(configuration);\r\n };\r\n } else {\r\n let analyzer_secondary_configuration = options?.analyzer_secondary_configuration;\r\n if (!analyzer_secondary_configuration) {\r\n analyzer_secondary_configuration = '{}';\r\n }\r\n try {\r\n const customConfig = JSON.parse(analyzer_secondary_configuration);\r\n adapterProps.customConfig = customConfig;\r\n } catch (e) {\r\n throw new Error(\r\n 'analyzer类型,JSON.parse解析失败,analyzer_secondary_configuration不是JSON字符串',\r\n );\r\n }\r\n adapterProps.customOptions = options?.externalVariables || {};\r\n }\r\n adapterProps.data = props.dataSource || props.data;\r\n }\r\n\r\n /**\r\n * 逻辑控制通信API\r\n * 1、triggerEvent: 用来触发组件事件\r\n * @param {String} eventName 事件名\r\n * @param {Object} payload 事件传参\r\n * @example\r\n * triggerEvent(\"click\",{value:\"123\"})\r\n *\r\n * 2、useRegisterComponent: 用来注册组件的动作和事件\r\n */\r\n adapterProps.triggerEvent = (eventName: string, payload: Record<string, any> = {}) => {\r\n if (componentId) {\r\n window.eventCenter?.triggerEvent(\r\n componentId,\r\n eventName,\r\n //payload需为一个object\r\n payload,\r\n );\r\n }\r\n };\r\n\r\n adapterProps.useRegisterComponent = (params: UseRegisterComponentParams) => {\r\n const { actions = {}, eventActionDefinitions } = params;\r\n const { customOptions, customConfig } = adapterProps;\r\n\r\n const _actions = Object.keys(actions).reduce((acc, key) => {\r\n if (key.includes('do_EventCenter_')) {\r\n acc[key] = actions[key];\r\n } else {\r\n acc[`do_EventCenter_${key}`] = actions[key];\r\n }\r\n return acc;\r\n }, {} as ActionsFunction);\r\n\r\n const Event_Center_getName = () => {\r\n return customOptions?.id || requirMNumber || generateUUID();\r\n };\r\n let ref = useRef({ Event_Center_getName, ..._actions });\r\n useEffect(() => {\r\n window.componentCenter?.register(\r\n componentId,\r\n 'comp',\r\n ref.current,\r\n eventActionDefinitions as EventActionDefinitions,\r\n );\r\n return () => {\r\n window.componentCenter?.removeInstance(componentId);\r\n };\r\n }, [componentId, customConfig, actions, eventActionDefinitions]);\r\n };\r\n\r\n // return\r\n return adapterProps;\r\n};\r\n\r\nexport { adapterProps };\r\n","import { setDomAttributes } from '@sdata-plugin-adapter/utils';\r\nimport { adapterProps } from './adapter';\r\nimport { createPlugin } from '@/common/export';\r\nimport type {\r\n AnalyzerAdapterProps,\r\n BaseAnalyzerProps,\r\n SetAttributes,\r\n StartOptions,\r\n} from '@sdata-plugin-adapter/types';\r\n\r\nexport const setAttributes: SetAttributes<BaseAnalyzerProps> = async (dom, props) => {\r\n setDomAttributes(dom, props, adapterProps);\r\n};\r\n\r\nexport const start = async (options: StartOptions<AnalyzerAdapterProps>) => {\r\n createPlugin<BaseAnalyzerProps, AnalyzerAdapterProps>({ ...options, setAttributes, adapter });\r\n};\r\n\r\nexport const adapter = (props: BaseAnalyzerProps): AnalyzerAdapterProps => {\r\n return adapterProps(props);\r\n};\r\n"],"names":["isEnvProd","onlineDevMode","requirMNumber","configJson","adapterProps","props","useEffect","useRef","onlineDevelopmentMode","type","componentId","options","configuration","changeConfiguration","analyzer_secondary_configuration","customConfig","eventName","payload","_a","params","actions","eventActionDefinitions","customOptions","_actions","acc","key","ref","generateUUID","setAttributes","dom","setDomAttributes","start","createPlugin","adapter"],"mappings":";;;;AAWA,MAAMA,IAAY,IAEZ,EAAE,2BAA2BC,GAAe,sBAAsBC,EAAA,IACtEC,KAAc,CAAA,GAEVC,IAAe,CAACC,MAAmD;AACvE,QAAM,EAAE,WAAAC,GAAW,QAAAC,EAAA,IAAW,OAAO,OAC/BC,IAAiC,CAAC,EAACP,KAAA,QAAAA,EAAe,OAClD,EAAE,MAAAQ,GAAM,aAAAC,GAAa,SAAAC,GAAS,eAAAC,GAAe,qBAAAC,MAAwBR,GAErED,IAAe,EAAE,GAAGC,EAAA;AAI1B,MAAIL,KAAaQ,GAAuB;AAEtC,QADAJ,EAAa,OAAOK,KAAQ,QACxBA,MAAS,uBAAuB;AAClC,UAAIK,IAAmCF,KAAA,gBAAAA,EAAe;AACtD,MAAKE,MACHA,IAAmC;AAErC,UAAI;AACF,cAAMC,IAAe,KAAK,MAAMD,CAAgC;AAChEV,QAAAA,EAAa,eAAeW;AAAA,MAC9B,QAAY;AACV,cAAM,IAAI;AAAA,UACR;AAAA,QAAA;AAAA,MAEJ;AACAX,MAAAA,EAAa,qBAAqB,CAACW,MAAiB;AAClD,QAAAH,EAAc,mCAAmCG,GACjDF,EAAoBD,CAAa;AAAA,MACnC;AAAA,IACF,OAAO;AACL,UAAIE,IAAmCH,KAAA,gBAAAA,EAAS;AAChD,MAAKG,MACHA,IAAmC;AAErC,UAAI;AACF,cAAMC,IAAe,KAAK,MAAMD,CAAgC;AAChEV,QAAAA,EAAa,eAAeW;AAAA,MAC9B,QAAY;AACV,cAAM,IAAI;AAAA,UACR;AAAA,QAAA;AAAA,MAEJ;AACAX,MAAAA,EAAa,iBAAgBO,KAAA,gBAAAA,EAAS,sBAAqB,CAAA;AAAA,IAC7D;AACAP,IAAAA,EAAa,OAAOC,EAAM,cAAcA,EAAM;AAAA,EAChD;AAYAD,SAAAA,EAAa,eAAe,CAACY,GAAmBC,IAA+B,CAAA,MAAO;;AACpF,IAAIP,OACFQ,IAAA,OAAO,gBAAP,QAAAA,EAAoB;AAAA,MAClBR;AAAA,MACAM;AAAA;AAAA,MAEAC;AAAA;AAAA,EAGN,GAEAb,EAAa,uBAAuB,CAACe,MAAuC;AAC1E,UAAM,EAAE,SAAAC,IAAU,IAAI,wBAAAC,MAA2BF,GAC3C,EAAE,eAAAG,GAAe,cAAAP,EAAA,IAAiBX,GAElCmB,IAAW,OAAO,KAAKH,CAAO,EAAE,OAAO,CAACI,GAAKC,OAC7CA,EAAI,SAAS,iBAAiB,IAChCD,EAAIC,CAAG,IAAIL,EAAQK,CAAG,IAEtBD,EAAI,kBAAkBC,CAAG,EAAE,IAAIL,EAAQK,CAAG,GAErCD,IACN,CAAA,CAAqB;AAKxB,QAAIE,IAAMnB,EAAO,EAAE,sBAHU,OACpBe,KAAA,gBAAAA,EAAe,OAAMpB,KAAiByB,EAAA,GAEN,GAAGJ,GAAU;AACtD,IAAAjB,EAAU,MAAM;;AACd,cAAAY,IAAA,OAAO,oBAAP,QAAAA,EAAwB;AAAA,QACtBR;AAAA,QACA;AAAA,QACAgB,EAAI;AAAA,QACJL;AAAA,SAEK,MAAM;;AACX,SAAAH,IAAA,OAAO,oBAAP,QAAAA,EAAwB,eAAeR;AAAA,MACzC;AAAA,IACF,GAAG,CAACA,GAAaK,GAAcK,GAASC,CAAsB,CAAC;AAAA,EACjE,GAGOjB;AACT,GCzGawB,IAAkD,OAAOC,GAAKxB,MAAU;AACnF,EAAAyB,EAAiBD,GAAKxB,GAAOD,CAAY;AAC3C,GAEa2B,IAAQ,OAAOpB,MAAgD;AAC1E,EAAAqB,EAAsD,EAAE,GAAGrB,GAAS,eAAAiB,GAAe,SAAAK,GAAS;AAC9F,GAEaA,IAAU,CAAC5B,MACfD,EAAaC,CAAK;"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const o = {
|
|
2
|
+
default: "designConfiguration",
|
|
3
|
+
data: "designConfigurationForData",
|
|
4
|
+
style: "designConfigurationForStyle",
|
|
5
|
+
interaction: "designConfigurationForInteraction"
|
|
6
|
+
}, t = [
|
|
7
|
+
"childtable",
|
|
8
|
+
// 普通子表
|
|
9
|
+
"controlled_child_table",
|
|
10
|
+
// 受控子表
|
|
11
|
+
"pop_up_copy_child_table",
|
|
12
|
+
// 弹窗复制子表
|
|
13
|
+
"pop_up_selection_child_table",
|
|
14
|
+
// 弹窗选择子表
|
|
15
|
+
"correlation_child_table",
|
|
16
|
+
// 弹窗编辑子表
|
|
17
|
+
"loop_table"
|
|
18
|
+
// 弹窗编辑子表
|
|
19
|
+
];
|
|
20
|
+
export {
|
|
21
|
+
o as D,
|
|
22
|
+
t as S
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=index-bwVa5yZu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-bwVa5yZu.js","sources":["../src/enmu/index.ts"],"sourcesContent":["// 枚举 app\nexport const DesignConfigurationMap = {\n default: 'designConfiguration',\n data: 'designConfigurationForData',\n style: 'designConfigurationForStyle',\n interaction: 'designConfigurationForInteraction',\n} as const;\n\n// 枚举 report\nexport const SHOW_TYPE_TABLES = [\n 'childtable', // 普通子表\n 'controlled_child_table', // 受控子表\n 'pop_up_copy_child_table', // 弹窗复制子表\n 'pop_up_selection_child_table', // 弹窗选择子表\n 'correlation_child_table', // 弹窗编辑子表\n 'loop_table', // 弹窗编辑子表\n] as const;\n\nexport type ShowType = (typeof SHOW_TYPE_TABLES)[number];\n"],"names":["DesignConfigurationMap","SHOW_TYPE_TABLES"],"mappings":"AACO,MAAMA,IAAyB;AAAA,EACpC,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO;AAAA,EACP,aAAa;AACf,GAGaC,IAAmB;AAAA,EAC9B;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AAAA,EACA;AAAA;AACF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export declare const start: (options: any) => Promise<void>;
|
|
2
2
|
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const startAnalyzer: (options: any) => Promise<void>;
|
|
4
|
+
|
|
5
|
+
export declare const startApp: (options: any) => Promise<void>;
|
|
6
|
+
|
|
7
|
+
export declare const startBScreen: (options: any) => Promise<void>;
|
|
8
|
+
|
|
9
|
+
export declare const startDFList: (options: any) => Promise<void>;
|
|
10
|
+
|
|
11
|
+
export declare const startReport: (options: any) => Promise<void>;
|
|
4
12
|
|
|
5
13
|
export { }
|