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