@kosdev-code/kos-ui-plugin 2.0.24 → 2.0.25
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/lib/utils/process-kos-config.d.ts +17 -6
- package/lib/utils/process-kos-config.d.ts.map +1 -1
- package/package.json +2 -2
- package/utils.cjs +1 -1
- package/utils.cjs.map +1 -1
- package/utils.js +260 -259
- package/utils.js.map +1 -1
package/utils.js
CHANGED
|
@@ -1,324 +1,325 @@
|
|
|
1
|
-
import { a as N, m as
|
|
2
|
-
import { c as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
t[
|
|
6
|
-
id:
|
|
1
|
+
import { a as N, m as X } from "./resolve-best-extension-DAJIkfJh.js";
|
|
2
|
+
import { c as _e, g as Oe, b as Te, i as me, l as be, r as ke } from "./resolve-best-extension-DAJIkfJh.js";
|
|
3
|
+
const m = "ddk.cui", b = "ddk.cui.view", k = "ddk.cui.settings.config", R = (s, e) => (t, i) => {
|
|
4
|
+
const n = i, o = e[i], r = s[o.experienceId] || {};
|
|
5
|
+
t[m] = t[m] || {}, t[m][n] = {
|
|
6
|
+
id: n,
|
|
7
7
|
type: "cui.definition",
|
|
8
|
-
data:
|
|
9
|
-
remote:
|
|
10
|
-
sectionId:
|
|
11
|
-
},
|
|
12
|
-
id:
|
|
8
|
+
data: o,
|
|
9
|
+
remote: o.remote,
|
|
10
|
+
sectionId: o.sectionId
|
|
11
|
+
}, r.id && (t[b] = t[b] || {}, t[b][n] = {
|
|
12
|
+
id: n,
|
|
13
13
|
type: "cui.view",
|
|
14
|
-
data:
|
|
15
|
-
remote:
|
|
16
|
-
sectionId:
|
|
17
|
-
}), t[
|
|
14
|
+
data: r,
|
|
15
|
+
remote: o.remote,
|
|
16
|
+
sectionId: o.sectionId
|
|
17
|
+
}), t[k] = t[k] || {};
|
|
18
18
|
const a = {
|
|
19
|
-
id:
|
|
19
|
+
id: n,
|
|
20
20
|
type: "cui",
|
|
21
|
-
data:
|
|
22
|
-
view:
|
|
23
|
-
remote:
|
|
24
|
-
sectionId:
|
|
21
|
+
data: o,
|
|
22
|
+
view: r,
|
|
23
|
+
remote: o.remote,
|
|
24
|
+
sectionId: o.sectionId
|
|
25
25
|
};
|
|
26
|
-
return t[
|
|
27
|
-
},
|
|
28
|
-
contributionKey:
|
|
26
|
+
return t[k][n] = a, t;
|
|
27
|
+
}, E = ({
|
|
28
|
+
contributionKey: s,
|
|
29
29
|
basePluginType: e,
|
|
30
|
-
keys: { EXTENSION_POINT: t, EXTENSION_POINT_DEF:
|
|
31
|
-
}) => (
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
id:
|
|
30
|
+
keys: { EXTENSION_POINT: t, EXTENSION_POINT_DEF: i, EXTENSION_POINT_VIEW: n }
|
|
31
|
+
}) => (o, r) => (d, a) => {
|
|
32
|
+
const l = a, u = r[s][a], c = o[u.experienceId] || {};
|
|
33
|
+
i && (d[i] = d[i] || {}, d[i][l] = {
|
|
34
|
+
id: l,
|
|
35
35
|
type: `${e}.definition`,
|
|
36
|
-
data:
|
|
37
|
-
remote:
|
|
38
|
-
sectionId:
|
|
39
|
-
}),
|
|
40
|
-
id:
|
|
36
|
+
data: u,
|
|
37
|
+
remote: u.remote,
|
|
38
|
+
sectionId: u.sectionId
|
|
39
|
+
}), c.id && n && (d[n] = d[n] || {}, d[n][l] = {
|
|
40
|
+
id: l,
|
|
41
41
|
type: `${e}.view`,
|
|
42
|
-
data:
|
|
43
|
-
remote:
|
|
44
|
-
sectionId:
|
|
45
|
-
}),
|
|
42
|
+
data: c,
|
|
43
|
+
remote: u.remote,
|
|
44
|
+
sectionId: u.sectionId
|
|
45
|
+
}), d[t] = d[t] || {};
|
|
46
46
|
const g = {
|
|
47
|
-
id:
|
|
47
|
+
id: l,
|
|
48
48
|
type: `${e}`,
|
|
49
|
-
data:
|
|
50
|
-
view:
|
|
51
|
-
remote:
|
|
52
|
-
sectionId:
|
|
49
|
+
data: u,
|
|
50
|
+
view: c,
|
|
51
|
+
remote: u.remote,
|
|
52
|
+
sectionId: u.sectionId
|
|
53
53
|
};
|
|
54
|
-
return
|
|
55
|
-
},
|
|
54
|
+
return d[t][l] = g, d;
|
|
55
|
+
}, A = "ddk.dashboard.detail", $ = "ddk.dashboard.detail.view", U = "ddk.ncui.dashboard.detail.config", q = E({
|
|
56
56
|
basePluginType: "dashboard.detail",
|
|
57
57
|
contributionKey: "dashboardDetailDefinitions",
|
|
58
58
|
keys: {
|
|
59
|
-
EXTENSION_POINT:
|
|
60
|
-
EXTENSION_POINT_DEF:
|
|
61
|
-
EXTENSION_POINT_VIEW:
|
|
59
|
+
EXTENSION_POINT: U,
|
|
60
|
+
EXTENSION_POINT_DEF: A,
|
|
61
|
+
EXTENSION_POINT_VIEW: $
|
|
62
62
|
}
|
|
63
|
-
}),
|
|
63
|
+
}), x = "ddk.dashboard.pump.detail", K = "ddk.dashboard.pump.detail.view", F = "ddk.dashboard.pump.detail.config", W = E({
|
|
64
64
|
basePluginType: "dashboard.pump.detail",
|
|
65
65
|
contributionKey: "dashboardPumpDetailDefinitions",
|
|
66
66
|
keys: {
|
|
67
|
-
EXTENSION_POINT:
|
|
68
|
-
EXTENSION_POINT_DEF:
|
|
69
|
-
EXTENSION_POINT_VIEW:
|
|
67
|
+
EXTENSION_POINT: F,
|
|
68
|
+
EXTENSION_POINT_DEF: x,
|
|
69
|
+
EXTENSION_POINT_VIEW: K
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
71
|
+
}), B = "ddk.ncui.dashboard.config", L = E({
|
|
72
72
|
basePluginType: "dashboard",
|
|
73
73
|
contributionKey: "dashboardDefinitions",
|
|
74
74
|
keys: {
|
|
75
|
-
EXTENSION_POINT:
|
|
75
|
+
EXTENSION_POINT: B
|
|
76
76
|
}
|
|
77
|
-
}),
|
|
77
|
+
}), H = "ddk.dashboard.summary", j = "ddk.dashboard.summary.view", M = "ddk.ncui.dashboard.summary.config", G = E({
|
|
78
78
|
basePluginType: "dashboard.summary",
|
|
79
79
|
contributionKey: "dashboardSummaryDefinitions",
|
|
80
80
|
keys: {
|
|
81
|
-
EXTENSION_POINT:
|
|
82
|
-
EXTENSION_POINT_DEF:
|
|
83
|
-
EXTENSION_POINT_VIEW:
|
|
81
|
+
EXTENSION_POINT: M,
|
|
82
|
+
EXTENSION_POINT_DEF: H,
|
|
83
|
+
EXTENSION_POINT_VIEW: j
|
|
84
84
|
}
|
|
85
|
-
}),
|
|
85
|
+
}), z = "cui.control.pour", Y = "cui.control.pour.view", Q = "cui.control.pour.config", J = E({
|
|
86
86
|
basePluginType: "control.pour",
|
|
87
87
|
contributionKey: "controlPourDefinitions",
|
|
88
88
|
keys: {
|
|
89
|
-
EXTENSION_POINT:
|
|
90
|
-
EXTENSION_POINT_DEF:
|
|
91
|
-
EXTENSION_POINT_VIEW:
|
|
89
|
+
EXTENSION_POINT: Q,
|
|
90
|
+
EXTENSION_POINT_DEF: z,
|
|
91
|
+
EXTENSION_POINT_VIEW: Y
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
93
|
+
}), Z = "ddk.nav.view", ee = "ddk.nav.view.view", te = "ddk.ncui.nav.view.config", ie = E({
|
|
94
94
|
basePluginType: "nav.view",
|
|
95
95
|
contributionKey: "navViewDefinitions",
|
|
96
96
|
keys: {
|
|
97
|
-
EXTENSION_POINT:
|
|
98
|
-
EXTENSION_POINT_DEF:
|
|
99
|
-
EXTENSION_POINT_VIEW:
|
|
97
|
+
EXTENSION_POINT: te,
|
|
98
|
+
EXTENSION_POINT_DEF: Z,
|
|
99
|
+
EXTENSION_POINT_VIEW: ee
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
102
|
-
const
|
|
103
|
-
return
|
|
104
|
-
id:
|
|
101
|
+
}), y = "ddk.settings", P = "ddk.settings.view", _ = "ddk.settings.group", V = "ddk.ncui.settings.config", se = (s, e, t) => (i, n) => {
|
|
102
|
+
const o = t[n];
|
|
103
|
+
return i[_] = i[_] || {}, i[_][n] = {
|
|
104
|
+
id: n,
|
|
105
105
|
type: "settings.group",
|
|
106
|
-
data: t[
|
|
107
|
-
remote:
|
|
108
|
-
sectionId:
|
|
109
|
-
}, Object.entries(e).filter(([,
|
|
110
|
-
const a =
|
|
111
|
-
|
|
112
|
-
...
|
|
106
|
+
data: t[n],
|
|
107
|
+
remote: o.remote,
|
|
108
|
+
sectionId: o.sectionId
|
|
109
|
+
}, Object.entries(e).filter(([, d]) => d.settingsGroup === n).map(([d]) => d).forEach((d) => {
|
|
110
|
+
const a = d, l = e[d], f = s[l.experienceId] || {};
|
|
111
|
+
i[_][n].data.settings = [
|
|
112
|
+
...i[_][n].data.settings,
|
|
113
113
|
a
|
|
114
|
-
],
|
|
114
|
+
], i[y] = i[y] || {}, i[y][a] = {
|
|
115
115
|
id: a,
|
|
116
116
|
type: "settings.definition",
|
|
117
|
-
data:
|
|
118
|
-
remote:
|
|
119
|
-
sectionId:
|
|
120
|
-
},
|
|
117
|
+
data: l,
|
|
118
|
+
remote: l.remote,
|
|
119
|
+
sectionId: l.sectionId
|
|
120
|
+
}, f.id && (i[P] = i[P] || {}, i[P][a] = {
|
|
121
121
|
id: a,
|
|
122
122
|
type: "settings.view",
|
|
123
|
-
data:
|
|
124
|
-
remote:
|
|
125
|
-
sectionId:
|
|
126
|
-
}),
|
|
127
|
-
const
|
|
123
|
+
data: f,
|
|
124
|
+
remote: l.remote,
|
|
125
|
+
sectionId: l.sectionId
|
|
126
|
+
}), i[V] = i[V] || {};
|
|
127
|
+
const c = {
|
|
128
128
|
id: a,
|
|
129
129
|
type: "settings",
|
|
130
|
-
data:
|
|
131
|
-
view:
|
|
132
|
-
remote:
|
|
133
|
-
sectionId:
|
|
130
|
+
data: l,
|
|
131
|
+
view: f,
|
|
132
|
+
remote: l.remote,
|
|
133
|
+
sectionId: l.sectionId
|
|
134
134
|
};
|
|
135
|
-
|
|
136
|
-
}),
|
|
137
|
-
}, D = "ddk.setup", S = "ddk.setup.view", h = "ddk.ncui.setup.config",
|
|
138
|
-
const
|
|
139
|
-
t[D] = t[D] || {}, t[D][
|
|
140
|
-
id:
|
|
135
|
+
i[V][a] = c;
|
|
136
|
+
}), i;
|
|
137
|
+
}, D = "ddk.setup", S = "ddk.setup.view", h = "ddk.ncui.setup.config", ne = (s, e) => (t, i) => {
|
|
138
|
+
const n = i, o = e[i], r = s[o.experienceId] || {};
|
|
139
|
+
t[D] = t[D] || {}, t[D][n] = {
|
|
140
|
+
id: n,
|
|
141
141
|
type: "setup.definition",
|
|
142
|
-
data:
|
|
143
|
-
remote:
|
|
144
|
-
sectionId:
|
|
145
|
-
},
|
|
146
|
-
id:
|
|
142
|
+
data: o,
|
|
143
|
+
remote: o.remote,
|
|
144
|
+
sectionId: o.sectionId
|
|
145
|
+
}, r.id && (t[S] = t[S] || {}, t[S][n] = {
|
|
146
|
+
id: n,
|
|
147
147
|
type: "setup.view",
|
|
148
|
-
data:
|
|
149
|
-
remote:
|
|
150
|
-
sectionId:
|
|
148
|
+
data: r,
|
|
149
|
+
remote: o.remote,
|
|
150
|
+
sectionId: o.sectionId
|
|
151
151
|
}), t[h] = t[h] || {};
|
|
152
152
|
const a = {
|
|
153
|
-
id:
|
|
153
|
+
id: n,
|
|
154
154
|
type: "setup",
|
|
155
|
-
data:
|
|
156
|
-
view:
|
|
157
|
-
remote:
|
|
158
|
-
sectionId:
|
|
155
|
+
data: o,
|
|
156
|
+
view: r,
|
|
157
|
+
remote: o.remote,
|
|
158
|
+
sectionId: o.sectionId
|
|
159
159
|
};
|
|
160
|
-
return t[h][
|
|
161
|
-
},
|
|
160
|
+
return t[h][n] = a, t;
|
|
161
|
+
}, oe = "ddk.trouble.action", re = "ddk.trouble.action.view", de = "ddk.ncui.trouble.action.config", ae = E({
|
|
162
162
|
basePluginType: "trouble.action",
|
|
163
163
|
contributionKey: "troubleActionDefinitions",
|
|
164
164
|
keys: {
|
|
165
|
-
EXTENSION_POINT:
|
|
166
|
-
EXTENSION_POINT_DEF:
|
|
167
|
-
EXTENSION_POINT_VIEW:
|
|
165
|
+
EXTENSION_POINT: de,
|
|
166
|
+
EXTENSION_POINT_DEF: oe,
|
|
167
|
+
EXTENSION_POINT_VIEW: re
|
|
168
168
|
}
|
|
169
|
-
}),
|
|
170
|
-
const
|
|
171
|
-
t[
|
|
172
|
-
id:
|
|
169
|
+
}), p = "ddk.utilities", v = "ddk.utilities.view", w = "ddk.ncui.utils.config", ue = (s, e) => (t, i) => {
|
|
170
|
+
const n = i, o = e[i], r = s[o.experienceId] || {};
|
|
171
|
+
t[p] = t[p] || {}, t[p][n] = {
|
|
172
|
+
id: n,
|
|
173
173
|
type: "utility.definition",
|
|
174
|
-
data:
|
|
175
|
-
remote:
|
|
176
|
-
sectionId:
|
|
177
|
-
},
|
|
178
|
-
id:
|
|
174
|
+
data: o,
|
|
175
|
+
remote: o.remote,
|
|
176
|
+
sectionId: o.sectionId
|
|
177
|
+
}, r.id && (t[v] = t[v] || {}, t[v][n] = {
|
|
178
|
+
id: n,
|
|
179
179
|
type: "utilities.view",
|
|
180
|
-
data:
|
|
181
|
-
remote:
|
|
182
|
-
sectionId:
|
|
183
|
-
}), t[
|
|
180
|
+
data: r,
|
|
181
|
+
remote: o.remote,
|
|
182
|
+
sectionId: o.sectionId
|
|
183
|
+
}), t[w] = t[w] || {};
|
|
184
184
|
const a = {
|
|
185
|
-
id:
|
|
185
|
+
id: n,
|
|
186
186
|
type: "utility",
|
|
187
|
-
data:
|
|
188
|
-
view:
|
|
189
|
-
remote:
|
|
190
|
-
sectionId:
|
|
187
|
+
data: o,
|
|
188
|
+
view: r,
|
|
189
|
+
remote: o.remote,
|
|
190
|
+
sectionId: o.sectionId
|
|
191
191
|
};
|
|
192
|
-
return t[
|
|
192
|
+
return t[w][n] = a, t;
|
|
193
193
|
};
|
|
194
194
|
N(
|
|
195
|
-
(
|
|
195
|
+
(s, e, t) => Object.keys(e.cuiDefinitions).reduce(R(t, e.cuiDefinitions), s)
|
|
196
196
|
);
|
|
197
197
|
N(
|
|
198
|
-
(
|
|
198
|
+
(s, e, t) => Object.keys(e.utilDefinitions).reduce(ue(t, e.utilDefinitions), s)
|
|
199
199
|
);
|
|
200
200
|
N(
|
|
201
|
-
(
|
|
202
|
-
|
|
203
|
-
|
|
201
|
+
(s, e, t) => Object.keys(e.setupDefinitions).reduce(
|
|
202
|
+
ne(t, e.setupDefinitions),
|
|
203
|
+
s
|
|
204
204
|
)
|
|
205
205
|
);
|
|
206
206
|
N(
|
|
207
|
-
(
|
|
208
|
-
|
|
209
|
-
|
|
207
|
+
(s, e, t) => Object.keys(e.troubleActionDefinitions).reduce(
|
|
208
|
+
ae(t, e),
|
|
209
|
+
s
|
|
210
210
|
)
|
|
211
211
|
);
|
|
212
212
|
N(
|
|
213
|
-
(
|
|
213
|
+
(s, e, t) => Object.keys(e.navViewDefinitions).reduce(ie(t, e), s)
|
|
214
214
|
);
|
|
215
215
|
N(
|
|
216
|
-
(
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
(s, e, t) => Object.keys(e.dashboardSummaryDefinitions).reduce(
|
|
217
|
+
G(t, e),
|
|
218
|
+
s
|
|
219
219
|
)
|
|
220
220
|
);
|
|
221
221
|
N(
|
|
222
|
-
(
|
|
223
|
-
|
|
224
|
-
|
|
222
|
+
(s, e, t) => Object.keys(e.dashboardDetailDefinitions).reduce(
|
|
223
|
+
q(t, e),
|
|
224
|
+
s
|
|
225
225
|
)
|
|
226
226
|
);
|
|
227
227
|
N(
|
|
228
|
-
(
|
|
229
|
-
|
|
230
|
-
|
|
228
|
+
(s, e, t) => Object.keys(e.dashboardPumpDetailDefinitions).reduce(
|
|
229
|
+
W(t, e),
|
|
230
|
+
s
|
|
231
231
|
)
|
|
232
232
|
);
|
|
233
233
|
N(
|
|
234
|
-
(
|
|
234
|
+
(s, e, t) => Object.keys(e.dashboardDefinitions).reduce(L(t, e), s)
|
|
235
235
|
);
|
|
236
236
|
N(
|
|
237
|
-
(
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
(s, e, t) => Object.keys(e.settingsGroupDefinitions).reduce(
|
|
238
|
+
se(t, e.settingsDefinitions, e.settingsGroupDefinitions),
|
|
239
|
+
s
|
|
240
240
|
)
|
|
241
241
|
);
|
|
242
242
|
N(
|
|
243
|
-
(
|
|
243
|
+
(s, e, t) => Object.keys(e.controlPourDefinitions).reduce(J(t, e), s)
|
|
244
244
|
);
|
|
245
|
-
const
|
|
246
|
-
const [t,
|
|
247
|
-
return [t, decodeURIComponent(
|
|
248
|
-
}).reduce((e, [t,
|
|
249
|
-
const
|
|
250
|
-
return (e == null ? void 0 : e.host) ||
|
|
251
|
-
},
|
|
252
|
-
const e =
|
|
253
|
-
pluginBaseUrl:
|
|
254
|
-
pluginApiPath:
|
|
255
|
-
overrides:
|
|
256
|
-
pluginContext:
|
|
257
|
-
} = t,
|
|
245
|
+
const le = (s = null) => (s || window.location.search.replace("?", "")).split("&").map((e) => {
|
|
246
|
+
const [t, i] = e.split("=");
|
|
247
|
+
return [t, decodeURIComponent(i || "")];
|
|
248
|
+
}).reduce((e, [t, i]) => (e[t] = i, e), {}), ce = () => {
|
|
249
|
+
const s = window.location.origin, e = le();
|
|
250
|
+
return (e == null ? void 0 : e.host) || s;
|
|
251
|
+
}, Ne = async (s) => {
|
|
252
|
+
const e = ce(), t = s ?? {}, {
|
|
253
|
+
pluginBaseUrl: i = e,
|
|
254
|
+
pluginApiPath: n = "/api/app/kosdev.ddk/ncui/plugins",
|
|
255
|
+
overrides: o = {},
|
|
256
|
+
pluginContext: r
|
|
257
|
+
} = t, d = !!r, a = d ? `${i}/api/kos/ui/plugins/context/${r.context}` : `${i}${n}`;
|
|
258
258
|
console.log(
|
|
259
|
-
`initialize-plugins: Using Plugin Framework: ${
|
|
259
|
+
`initialize-plugins: Using Plugin Framework: ${d}: Fetching plugins from ${a}`
|
|
260
260
|
);
|
|
261
|
-
const
|
|
262
|
-
const
|
|
263
|
-
return
|
|
264
|
-
basePath: `${
|
|
265
|
-
extensions:
|
|
266
|
-
contributes:
|
|
267
|
-
remote:
|
|
268
|
-
init: !!
|
|
261
|
+
const f = await (await fetch(a)).json(), c = (d ? f.data.groups[r.group] : f.data).reduce((g, I) => {
|
|
262
|
+
const T = (o == null ? void 0 : o[I.id]) ?? d ? `${i}${I.path}` : `${i}${I.baseUrl}`;
|
|
263
|
+
return I.descriptor ? g[I.id] = {
|
|
264
|
+
basePath: `${T}remoteEntry.js`,
|
|
265
|
+
extensions: I.descriptor.extensions,
|
|
266
|
+
contributes: I.descriptor.contributes,
|
|
267
|
+
remote: I.descriptor.id,
|
|
268
|
+
init: !!I.descriptor.init
|
|
269
269
|
} : console.error(
|
|
270
|
-
`initialize-plugins: Plugin ${
|
|
270
|
+
`initialize-plugins: Plugin ${I.id} does not have a descriptor`
|
|
271
271
|
), g;
|
|
272
272
|
}, {});
|
|
273
|
-
window.KosPlugins = window.KosPlugins || {}, window.KosPlugins.__dynamicRemotes =
|
|
274
|
-
const O = Object.keys(
|
|
275
|
-
const
|
|
276
|
-
return g[
|
|
273
|
+
window.KosPlugins = window.KosPlugins || {}, window.KosPlugins.__dynamicRemotes = c;
|
|
274
|
+
const O = Object.keys(c).reduce((g, I) => {
|
|
275
|
+
const T = c[I].remote;
|
|
276
|
+
return g[T] = c[I].basePath, g;
|
|
277
277
|
}, {});
|
|
278
|
-
return
|
|
278
|
+
return X.setRemoteDefinitions(O), O;
|
|
279
279
|
};
|
|
280
|
-
function
|
|
281
|
-
const e =
|
|
280
|
+
function C(s) {
|
|
281
|
+
const e = s.match(/^(\d+)\.(\d+)\.\d+(?:-\S+)?$/);
|
|
282
282
|
if (!e)
|
|
283
|
-
throw new Error(`Invalid version format: ${
|
|
284
|
-
const [t,
|
|
285
|
-
return `${
|
|
283
|
+
throw new Error(`Invalid version format: ${s}`);
|
|
284
|
+
const [t, i, n] = e;
|
|
285
|
+
return `${i}.${n}.0`;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
var
|
|
287
|
+
function fe(s, e) {
|
|
288
|
+
var l, f;
|
|
289
289
|
e != null && e.sdkVersion && console.log("sdkVersion", e.sdkVersion), e != null && e.ddkVersion && console.log("ddkVersion", e.ddkVersion);
|
|
290
|
-
const t =
|
|
291
|
-
console.log(`Using DDK version: ${
|
|
292
|
-
const
|
|
293
|
-
if (!
|
|
290
|
+
const t = C((e == null ? void 0 : e.sdkVersion) || "0.2.0"), i = C((e == null ? void 0 : e.ddkVersion) || "0.2.0");
|
|
291
|
+
console.log(`Using DDK version: ${i}`), console.log(`Using SDK version: ${t}`);
|
|
292
|
+
const n = s == null ? void 0 : s.name;
|
|
293
|
+
if (!n)
|
|
294
294
|
throw new Error(
|
|
295
295
|
"KOS Configuration should be added. Project name not found in config"
|
|
296
296
|
);
|
|
297
|
-
const
|
|
298
|
-
if (!
|
|
297
|
+
const r = ((e == null ? void 0 : e.pluginPath) || "kosdev.ddk.ncui.plugin").split(".").reduce((u, c) => (console.log(`Accessing key: ${c}`), u && u[c] ? u[c] : void 0), s), d = r == null ? void 0 : r.id;
|
|
298
|
+
if (!d)
|
|
299
299
|
throw new Error(
|
|
300
300
|
"KOS Configuration should be added. Plugin ID not found in config"
|
|
301
301
|
);
|
|
302
|
-
const
|
|
303
|
-
(
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
302
|
+
const a = Object.keys(((l = r == null ? void 0 : r.contributes) == null ? void 0 : l.views) || {}).reduce(
|
|
303
|
+
(u, c) => (r.contributes.views[c].forEach((g) => {
|
|
304
|
+
u[`./${g.component}`] = g.location;
|
|
305
|
+
}), u),
|
|
306
|
+
{}
|
|
307
|
+
);
|
|
308
|
+
return Object.values(((f = r == null ? void 0 : r.contributes) == null ? void 0 : f.experiences) || {}).forEach(
|
|
309
|
+
(u) => {
|
|
310
|
+
a[`./${u.component}`] = u.location;
|
|
311
|
+
}
|
|
312
|
+
), r != null && r.init && (a["./InitPlugin"] = "./src/app/init.ts"), {
|
|
313
|
+
name: n,
|
|
314
|
+
exposes: a,
|
|
315
|
+
library: { type: "var", name: d },
|
|
315
316
|
additionalShared: [
|
|
316
317
|
{
|
|
317
318
|
libraryName: "@kosdev-code/kos-ui-plugin",
|
|
318
319
|
sharedConfig: {
|
|
319
320
|
singleton: !0,
|
|
320
321
|
eager: !1,
|
|
321
|
-
requiredVersion: `~${
|
|
322
|
+
requiredVersion: `~${i}`
|
|
322
323
|
}
|
|
323
324
|
},
|
|
324
325
|
{
|
|
@@ -372,7 +373,7 @@ function Ve(i, e) {
|
|
|
372
373
|
singleton: !0,
|
|
373
374
|
eager: !1,
|
|
374
375
|
strictVersion: !1,
|
|
375
|
-
requiredVersion: `~${
|
|
376
|
+
requiredVersion: `~${i}`
|
|
376
377
|
}
|
|
377
378
|
},
|
|
378
379
|
{
|
|
@@ -381,7 +382,7 @@ function Ve(i, e) {
|
|
|
381
382
|
singleton: !0,
|
|
382
383
|
eager: !1,
|
|
383
384
|
strictVersion: !1,
|
|
384
|
-
requiredVersion: `~${
|
|
385
|
+
requiredVersion: `~${i}`
|
|
385
386
|
}
|
|
386
387
|
},
|
|
387
388
|
{
|
|
@@ -390,7 +391,7 @@ function Ve(i, e) {
|
|
|
390
391
|
singleton: !0,
|
|
391
392
|
eager: !1,
|
|
392
393
|
strictVersion: !1,
|
|
393
|
-
requiredVersion: `~${
|
|
394
|
+
requiredVersion: `~${i}`
|
|
394
395
|
}
|
|
395
396
|
},
|
|
396
397
|
{
|
|
@@ -399,7 +400,7 @@ function Ve(i, e) {
|
|
|
399
400
|
singleton: !0,
|
|
400
401
|
eager: !1,
|
|
401
402
|
strictVersion: !1,
|
|
402
|
-
requiredVersion: `~${
|
|
403
|
+
requiredVersion: `~${i}`
|
|
403
404
|
}
|
|
404
405
|
},
|
|
405
406
|
{
|
|
@@ -408,7 +409,7 @@ function Ve(i, e) {
|
|
|
408
409
|
singleton: !0,
|
|
409
410
|
eager: !1,
|
|
410
411
|
strictVersion: !1,
|
|
411
|
-
requiredVersion: `~${
|
|
412
|
+
requiredVersion: `~${i}`
|
|
412
413
|
}
|
|
413
414
|
},
|
|
414
415
|
{
|
|
@@ -523,53 +524,53 @@ function Ve(i, e) {
|
|
|
523
524
|
};
|
|
524
525
|
}
|
|
525
526
|
export {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
527
|
+
k as EXTENSION_POINT_CUI,
|
|
528
|
+
m as EXTENSION_POINT_CUI_DEF,
|
|
529
|
+
b as EXTENSION_POINT_CUI_VIEW,
|
|
530
|
+
B as EXTENSION_POINT_DASHBOARD,
|
|
531
|
+
U as EXTENSION_POINT_DASHBOARD_DETAIL,
|
|
532
|
+
A as EXTENSION_POINT_DASHBOARD_DETAIL_DEF,
|
|
533
|
+
$ as EXTENSION_POINT_DASHBOARD_DETAIL_VIEW,
|
|
534
|
+
F as EXTENSION_POINT_DASHBOARD_PUMP_DETAIL,
|
|
535
|
+
x as EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_DEF,
|
|
536
|
+
K as EXTENSION_POINT_DASHBOARD_PUMP_DETAIL_VIEW,
|
|
537
|
+
M as EXTENSION_POINT_DASHBOARD_SUMMARY,
|
|
538
|
+
H as EXTENSION_POINT_DASHBOARD_SUMMARY_DEF,
|
|
539
|
+
j as EXTENSION_POINT_DASHBOARD_SUMMARY_VIEW,
|
|
540
|
+
te as EXTENSION_POINT_NAV_VIEW,
|
|
541
|
+
Z as EXTENSION_POINT_NAV_VIEW_DEF,
|
|
542
|
+
ee as EXTENSION_POINT_NAV_VIEW_VIEW,
|
|
542
543
|
V as EXTENSION_POINT_SETTINGS,
|
|
543
|
-
|
|
544
|
-
|
|
544
|
+
y as EXTENSION_POINT_SETTINGS_DEF,
|
|
545
|
+
_ as EXTENSION_POINT_SETTINGS_GROUP_DEF,
|
|
545
546
|
P as EXTENSION_POINT_SETTINGS_VIEW,
|
|
546
547
|
h as EXTENSION_POINT_SETUP,
|
|
547
548
|
D as EXTENSION_POINT_SETUP_DEF,
|
|
548
549
|
S as EXTENSION_POINT_SETUP_VIEW,
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
550
|
+
de as EXTENSION_POINT_TROUBLE_ACTION,
|
|
551
|
+
oe as EXTENSION_POINT_TROUBLE_ACTION_DEF,
|
|
552
|
+
re as EXTENSION_POINT_TROUBLE_ACTION_VIEW,
|
|
553
|
+
w as EXTENSION_POINT_UTIL,
|
|
554
|
+
p as EXTENSION_POINT_UTIL_DEF,
|
|
555
|
+
v as EXTENSION_POINT_UTIL_VIEW,
|
|
556
|
+
_e as contributionReducer,
|
|
557
|
+
R as cuiReducer,
|
|
558
|
+
q as dashboardDetailReducer,
|
|
559
|
+
W as dashboardPumpDetailReducer,
|
|
560
|
+
L as dashboardReducer,
|
|
561
|
+
G as dashboardSummaryReducer,
|
|
562
|
+
fe as generatePluginConfiguration,
|
|
563
|
+
Oe as getContributions,
|
|
564
|
+
Te as getExtensions,
|
|
565
|
+
le as getQueryParams,
|
|
566
|
+
me as initPluginManager,
|
|
567
|
+
Ne as initializeKosPlugins,
|
|
568
|
+
be as loadExtensions,
|
|
569
|
+
ie as navViewReducer,
|
|
570
|
+
ke as resolveBestExtension,
|
|
571
|
+
se as settingsReducer,
|
|
572
|
+
ne as setupReducer,
|
|
573
|
+
ae as troubleActionReducer,
|
|
574
|
+
ue as utilReducer
|
|
574
575
|
};
|
|
575
576
|
//# sourceMappingURL=utils.js.map
|