@kosdev-code/kos-ui-plugin 2.0.41 → 2.1.1
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/documentation-generator-B8FuhDjB.js +1271 -0
- package/documentation-generator-B8FuhDjB.js.map +1 -0
- package/documentation-generator-E9tFyId_.cjs +266 -0
- package/documentation-generator-E9tFyId_.cjs.map +1 -0
- package/index.cjs +412 -4
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +2179 -64
- package/index.js.map +1 -1
- package/lib/components/dynamic-component/dynamic-component.d.ts.map +1 -1
- package/lib/components/dynamic-component/error-boundary.d.ts +17 -0
- package/lib/components/dynamic-component/error-boundary.d.ts.map +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/plugin-explorer/extension-point-list.d.ts +13 -0
- package/lib/components/plugin-explorer/extension-point-list.d.ts.map +1 -0
- package/lib/components/plugin-explorer/floating-plugin-explorer.d.ts +13 -0
- package/lib/components/plugin-explorer/floating-plugin-explorer.d.ts.map +1 -0
- package/lib/components/plugin-explorer/index.d.ts +10 -0
- package/lib/components/plugin-explorer/index.d.ts.map +1 -0
- package/lib/components/plugin-explorer/plugin-card.d.ts +10 -0
- package/lib/components/plugin-explorer/plugin-card.d.ts.map +1 -0
- package/lib/components/plugin-explorer/plugin-explorer.d.ts +12 -0
- package/lib/components/plugin-explorer/plugin-explorer.d.ts.map +1 -0
- package/lib/components/plugin-explorer/plugin-health-dashboard.d.ts +9 -0
- package/lib/components/plugin-explorer/plugin-health-dashboard.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +3 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/use-extension-component.d.ts +21 -0
- package/lib/hooks/use-extension-component.d.ts.map +1 -0
- package/lib/hooks/use-plugin-discovery.d.ts +23 -0
- package/lib/hooks/use-plugin-discovery.d.ts.map +1 -0
- package/lib/hooks/use-typed-extensions.d.ts +152 -0
- package/lib/hooks/use-typed-extensions.d.ts.map +1 -0
- package/lib/utils/discovery/documentation-generator.d.ts +85 -0
- package/lib/utils/discovery/documentation-generator.d.ts.map +1 -0
- package/lib/utils/discovery/plugin-discovery-service.d.ts +109 -0
- package/lib/utils/discovery/plugin-discovery-service.d.ts.map +1 -0
- package/lib/utils/extension-points/define-extension-point.d.ts +58 -0
- package/lib/utils/extension-points/define-extension-point.d.ts.map +1 -0
- package/lib/utils/extension-points/example-extension-point.d.ts +67 -0
- package/lib/utils/extension-points/example-extension-point.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-registry.d.ts +34 -0
- package/lib/utils/extension-points/extension-point-registry.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-schema.d.ts +9 -0
- package/lib/utils/extension-points/extension-point-schema.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-schemas.d.ts +92 -0
- package/lib/utils/extension-points/extension-point-schemas.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-transforms.d.ts +21 -0
- package/lib/utils/extension-points/extension-point-transforms.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-types.d.ts +162 -0
- package/lib/utils/extension-points/extension-point-types.d.ts.map +1 -0
- package/lib/utils/extension-points/extension-point-validation.d.ts +43 -0
- package/lib/utils/extension-points/extension-point-validation.d.ts.map +1 -0
- package/lib/utils/index.d.ts +9 -15
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/{plugin-extension-manager.d.ts → plugin-system/plugin-extension-manager.d.ts} +3 -5
- package/lib/utils/plugin-system/plugin-extension-manager.d.ts.map +1 -0
- package/lib/utils/plugin-system/plugin-extension-registry-init.d.ts +2 -0
- package/lib/utils/plugin-system/plugin-extension-registry-init.d.ts.map +1 -0
- package/lib/utils/{plugin-extension-registry.d.ts → plugin-system/plugin-extension-registry.d.ts} +1 -1
- package/lib/utils/plugin-system/plugin-extension-registry.d.ts.map +1 -0
- package/lib/utils/{plugin-reducer.d.ts → plugin-system/plugin-reducer.d.ts} +1 -1
- package/lib/utils/plugin-system/plugin-reducer.d.ts.map +1 -0
- package/lib/utils/{resolve-best-extension.d.ts → plugin-system/resolve-best-extension.d.ts} +1 -1
- package/lib/utils/plugin-system/resolve-best-extension.d.ts.map +1 -0
- package/lib/utils/processors/contribution-reducer.d.ts +5 -0
- package/lib/utils/processors/contribution-reducer.d.ts.map +1 -0
- package/lib/utils/{initialize-plugins.d.ts → processors/initialize-plugins.d.ts} +2 -2
- package/lib/utils/processors/initialize-plugins.d.ts.map +1 -0
- package/lib/utils/processors/initialize-simplified-extensions.d.ts +13 -0
- package/lib/utils/processors/initialize-simplified-extensions.d.ts.map +1 -0
- package/lib/utils/{process-kos-config.d.ts → processors/process-kos-config.d.ts} +1 -1
- package/lib/utils/processors/process-kos-config.d.ts.map +1 -0
- package/lib/utils/processors/simplified-contribution-processor.d.ts +14 -0
- package/lib/utils/processors/simplified-contribution-processor.d.ts.map +1 -0
- package/package.json +2 -7
- package/types/global.d.ts +0 -62
- package/types/plugins.d.ts +3 -127
- package/utils.cjs +1 -1
- package/utils.cjs.map +1 -1
- package/utils.js +99 -82
- package/utils.js.map +1 -1
- package/dev.cjs +0 -57
- package/dev.cjs.map +0 -1
- package/dev.js +0 -403
- package/dev.js.map +0 -1
- package/emotion-react-jsx-runtime.browser.esm-0ViwU5Kh.cjs +0 -17
- package/emotion-react-jsx-runtime.browser.esm-0ViwU5Kh.cjs.map +0 -1
- package/emotion-react-jsx-runtime.browser.esm-70CdOW1e.js +0 -1065
- package/emotion-react-jsx-runtime.browser.esm-70CdOW1e.js.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-component-view.d.ts +0 -9
- package/lib/dev/components/dynamic-view/dynamic-component-view.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-container.d.ts +0 -8
- package/lib/dev/components/dynamic-view/dynamic-container.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-basic.d.ts +0 -13
- package/lib/dev/components/dynamic-view/dynamic-view-basic.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-modal.d.ts +0 -15
- package/lib/dev/components/dynamic-view/dynamic-view-modal.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-picker.d.ts +0 -9
- package/lib/dev/components/dynamic-view/dynamic-view-picker.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-settings.d.ts +0 -15
- package/lib/dev/components/dynamic-view/dynamic-view-settings.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/dynamic-view-utilities.d.ts +0 -15
- package/lib/dev/components/dynamic-view/dynamic-view-utilities.d.ts.map +0 -1
- package/lib/dev/components/dynamic-view/index.d.ts +0 -8
- package/lib/dev/components/dynamic-view/index.d.ts.map +0 -1
- package/lib/dev/components/index.d.ts +0 -4
- package/lib/dev/components/index.d.ts.map +0 -1
- package/lib/dev/components/shell/header/header.d.ts +0 -2
- package/lib/dev/components/shell/header/header.d.ts.map +0 -1
- package/lib/dev/components/shell/header/index.d.ts +0 -2
- package/lib/dev/components/shell/header/index.d.ts.map +0 -1
- package/lib/dev/components/shell/index.d.ts +0 -3
- package/lib/dev/components/shell/index.d.ts.map +0 -1
- package/lib/dev/components/shell/shell.d.ts +0 -10
- package/lib/dev/components/shell/shell.d.ts.map +0 -1
- package/lib/dev/components/storybook/control-pour-story-container/control-pour-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/control-pour-story-container/control-pour-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/control-pour-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/control-pour-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/cui-story-container/cui-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/cui-story-container/cui-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/cui-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/cui-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/index.d.ts +0 -7
- package/lib/dev/components/storybook/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/nav-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/nav-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/nav-story-container/nav-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/nav-story-container/nav-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/setting-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/setting-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/setting-story-container/setting-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/setting-story-container/setting-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/setup-step-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/setup-step-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/setup-step-story-container/setup-step-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/setup-step-story-container/setup-step-story-container.d.ts.map +0 -1
- package/lib/dev/components/storybook/utility-story-container/index.d.ts +0 -2
- package/lib/dev/components/storybook/utility-story-container/index.d.ts.map +0 -1
- package/lib/dev/components/storybook/utility-story-container/utility-story-container.d.ts +0 -8
- package/lib/dev/components/storybook/utility-story-container/utility-story-container.d.ts.map +0 -1
- package/lib/dev/index.d.ts +0 -3
- package/lib/dev/index.d.ts.map +0 -1
- package/lib/dev/utils/index.d.ts +0 -2
- package/lib/dev/utils/index.d.ts.map +0 -1
- package/lib/dev/utils/kos-metadata-parser.d.ts +0 -6
- package/lib/dev/utils/kos-metadata-parser.d.ts.map +0 -1
- package/lib/dev/utils/normalize.d.ts +0 -2
- package/lib/dev/utils/normalize.d.ts.map +0 -1
- package/lib/utils/contribution-reducer.d.ts +0 -5
- package/lib/utils/contribution-reducer.d.ts.map +0 -1
- package/lib/utils/control-pour-reducer.d.ts +0 -5
- package/lib/utils/control-pour-reducer.d.ts.map +0 -1
- package/lib/utils/cui-reducer.d.ts +0 -7
- package/lib/utils/cui-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-detail-reducer.d.ts +0 -5
- package/lib/utils/dashboard-detail-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-pump-detail-reducer.d.ts +0 -5
- package/lib/utils/dashboard-pump-detail-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-reducer.d.ts +0 -3
- package/lib/utils/dashboard-reducer.d.ts.map +0 -1
- package/lib/utils/dashboard-summary-reducer.d.ts +0 -5
- package/lib/utils/dashboard-summary-reducer.d.ts.map +0 -1
- package/lib/utils/initialize-plugins.d.ts.map +0 -1
- package/lib/utils/nav-view-reducer.d.ts +0 -5
- package/lib/utils/nav-view-reducer.d.ts.map +0 -1
- package/lib/utils/plugin-extension-manager.d.ts.map +0 -1
- package/lib/utils/plugin-extension-registry-init.d.ts +0 -2
- package/lib/utils/plugin-extension-registry-init.d.ts.map +0 -1
- package/lib/utils/plugin-extension-registry.d.ts.map +0 -1
- package/lib/utils/plugin-reducer.d.ts.map +0 -1
- package/lib/utils/process-kos-config.d.ts.map +0 -1
- package/lib/utils/resolve-best-extension.d.ts.map +0 -1
- package/lib/utils/settings-reducer.d.ts +0 -8
- package/lib/utils/settings-reducer.d.ts.map +0 -1
- package/lib/utils/setup-reducer.d.ts +0 -7
- package/lib/utils/setup-reducer.d.ts.map +0 -1
- package/lib/utils/state-action-reducer.d.ts +0 -5
- package/lib/utils/state-action-reducer.d.ts.map +0 -1
- package/lib/utils/util-reducer.d.ts +0 -7
- package/lib/utils/util-reducer.d.ts.map +0 -1
- package/resolve-best-extension-CqHaJSdN.js +0 -590
- package/resolve-best-extension-CqHaJSdN.js.map +0 -1
- package/resolve-best-extension-DSdPcuL3.cjs +0 -2
- package/resolve-best-extension-DSdPcuL3.cjs.map +0 -1
|
@@ -1,590 +0,0 @@
|
|
|
1
|
-
var M = {}, p = {};
|
|
2
|
-
Object.defineProperty(p, "__esModule", { value: !0 });
|
|
3
|
-
p.loadRemoteModule = p.setRemoteDefinitions = p.setRemoteUrlResolver = void 0;
|
|
4
|
-
let w, j;
|
|
5
|
-
const h = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map();
|
|
6
|
-
let q = !1;
|
|
7
|
-
function te(t) {
|
|
8
|
-
j = t;
|
|
9
|
-
}
|
|
10
|
-
p.setRemoteUrlResolver = te;
|
|
11
|
-
function ne(t) {
|
|
12
|
-
w = t;
|
|
13
|
-
}
|
|
14
|
-
p.setRemoteDefinitions = ne;
|
|
15
|
-
async function ie(t, e) {
|
|
16
|
-
const n = `${t}:${e}`;
|
|
17
|
-
if (h.has(n))
|
|
18
|
-
return h.get(n);
|
|
19
|
-
const s = (await (V.has(t) ? V.get(t) : await se(t)).get(e))();
|
|
20
|
-
return h.set(n, s), s;
|
|
21
|
-
}
|
|
22
|
-
p.loadRemoteModule = ie;
|
|
23
|
-
const oe = (t, e) => new Promise((n, i) => {
|
|
24
|
-
const o = document.createElement("script");
|
|
25
|
-
o.src = t, o.type = "text/javascript", o.async = !0, o.onload = () => {
|
|
26
|
-
n({
|
|
27
|
-
get: (a) => window[e].get(a),
|
|
28
|
-
init: (a) => {
|
|
29
|
-
try {
|
|
30
|
-
window[e].init(a);
|
|
31
|
-
} catch (r) {
|
|
32
|
-
console.error(`Failed to initialize remote ${e}`, r), i(r);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}, o.onerror = () => i(new Error(`Remote ${e} not found`)), document.head.appendChild(o);
|
|
37
|
-
});
|
|
38
|
-
async function se(t) {
|
|
39
|
-
if (!j && !w)
|
|
40
|
-
throw new Error("Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.");
|
|
41
|
-
q || (q = !0, await __webpack_init_sharing__("default"));
|
|
42
|
-
const e = w ? w[t] : await j(t);
|
|
43
|
-
let n = e;
|
|
44
|
-
!e.endsWith(".mjs") && !e.endsWith(".js") && (n = `${e}${e.endsWith("/") ? "" : "/"}remoteEntry.js`);
|
|
45
|
-
const i = await oe(n, t);
|
|
46
|
-
return await i.init(__webpack_share_scopes__.default), V.set(t, i), i;
|
|
47
|
-
}
|
|
48
|
-
(function(t) {
|
|
49
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.setRemoteUrlResolver = t.setRemoteDefinitions = t.loadRemoteModule = void 0;
|
|
50
|
-
var e = p;
|
|
51
|
-
Object.defineProperty(t, "loadRemoteModule", { enumerable: !0, get: function() {
|
|
52
|
-
return e.loadRemoteModule;
|
|
53
|
-
} }), Object.defineProperty(t, "setRemoteDefinitions", { enumerable: !0, get: function() {
|
|
54
|
-
return e.setRemoteDefinitions;
|
|
55
|
-
} }), Object.defineProperty(t, "setRemoteUrlResolver", { enumerable: !0, get: function() {
|
|
56
|
-
return e.setRemoteUrlResolver;
|
|
57
|
-
} });
|
|
58
|
-
})(M);
|
|
59
|
-
const N = ({
|
|
60
|
-
contributionKey: t,
|
|
61
|
-
basePluginType: e,
|
|
62
|
-
keys: { EXTENSION_POINT: n, EXTENSION_POINT_DEF: i, EXTENSION_POINT_VIEW: o }
|
|
63
|
-
}) => (s, a) => (r, u) => {
|
|
64
|
-
const l = u, c = a[t][u], f = s[c.experienceId] || {};
|
|
65
|
-
i && (r[i] = r[i] || {}, r[i][l] = {
|
|
66
|
-
id: l,
|
|
67
|
-
type: `${e}.definition`,
|
|
68
|
-
data: c,
|
|
69
|
-
remote: c.remote,
|
|
70
|
-
sectionId: c.sectionId
|
|
71
|
-
}), f.id && o && (r[o] = r[o] || {}, r[o][l] = {
|
|
72
|
-
id: l,
|
|
73
|
-
type: `${e}.view`,
|
|
74
|
-
data: f,
|
|
75
|
-
remote: c.remote,
|
|
76
|
-
sectionId: c.sectionId
|
|
77
|
-
}), r[n] = r[n] || {};
|
|
78
|
-
const T = {
|
|
79
|
-
id: l,
|
|
80
|
-
type: `${e}`,
|
|
81
|
-
data: c,
|
|
82
|
-
view: f,
|
|
83
|
-
remote: c.remote,
|
|
84
|
-
sectionId: c.sectionId
|
|
85
|
-
};
|
|
86
|
-
return r[n][l] = T, r;
|
|
87
|
-
}, de = "cui.control.pour", re = "cui.control.pour.view", ae = "cui.control.pour.config", ue = N({
|
|
88
|
-
basePluginType: "control.pour",
|
|
89
|
-
contributionKey: "controlPourDefinitions",
|
|
90
|
-
keys: {
|
|
91
|
-
EXTENSION_POINT: ae,
|
|
92
|
-
EXTENSION_POINT_DEF: de,
|
|
93
|
-
EXTENSION_POINT_VIEW: re
|
|
94
|
-
}
|
|
95
|
-
}), y = "ddk.cui", m = "ddk.cui.view", R = "ddk.cui.settings.config", ce = (t, e) => (n, i) => {
|
|
96
|
-
const o = i, s = e[i], a = t[s.experienceId] || {};
|
|
97
|
-
n[y] = n[y] || {}, n[y][o] = {
|
|
98
|
-
id: o,
|
|
99
|
-
type: "cui.definition",
|
|
100
|
-
data: s,
|
|
101
|
-
remote: s.remote,
|
|
102
|
-
sectionId: s.sectionId
|
|
103
|
-
}, a.id && (n[m] = n[m] || {}, n[m][o] = {
|
|
104
|
-
id: o,
|
|
105
|
-
type: "cui.view",
|
|
106
|
-
data: a,
|
|
107
|
-
remote: s.remote,
|
|
108
|
-
sectionId: s.sectionId
|
|
109
|
-
}), n[R] = n[R] || {};
|
|
110
|
-
const u = {
|
|
111
|
-
id: o,
|
|
112
|
-
type: "cui",
|
|
113
|
-
data: s,
|
|
114
|
-
view: a,
|
|
115
|
-
remote: s.remote,
|
|
116
|
-
sectionId: s.sectionId
|
|
117
|
-
};
|
|
118
|
-
return n[R][o] = u, n;
|
|
119
|
-
}, le = "ddk.dashboard.detail", Ie = "ddk.dashboard.detail.view", fe = "ddk.ncui.dashboard.detail.config", Ee = N({
|
|
120
|
-
basePluginType: "dashboard.detail",
|
|
121
|
-
contributionKey: "dashboardDetailDefinitions",
|
|
122
|
-
keys: {
|
|
123
|
-
EXTENSION_POINT: fe,
|
|
124
|
-
EXTENSION_POINT_DEF: le,
|
|
125
|
-
EXTENSION_POINT_VIEW: Ie
|
|
126
|
-
}
|
|
127
|
-
}), _e = "ddk.dashboard.pump.detail", be = "ddk.dashboard.pump.detail.view", Oe = "ddk.dashboard.pump.detail.config", pe = N({
|
|
128
|
-
basePluginType: "dashboard.pump.detail",
|
|
129
|
-
contributionKey: "dashboardPumpDetailDefinitions",
|
|
130
|
-
keys: {
|
|
131
|
-
EXTENSION_POINT: Oe,
|
|
132
|
-
EXTENSION_POINT_DEF: _e,
|
|
133
|
-
EXTENSION_POINT_VIEW: be
|
|
134
|
-
}
|
|
135
|
-
}), Ne = "ddk.ncui.dashboard.config", De = N({
|
|
136
|
-
basePluginType: "dashboard",
|
|
137
|
-
contributionKey: "dashboardDefinitions",
|
|
138
|
-
keys: {
|
|
139
|
-
EXTENSION_POINT: Ne
|
|
140
|
-
}
|
|
141
|
-
}), Te = "ddk.dashboard.summary", Pe = "ddk.dashboard.summary.view", we = "ddk.ncui.dashboard.summary.config", ge = N({
|
|
142
|
-
basePluginType: "dashboard.summary",
|
|
143
|
-
contributionKey: "dashboardSummaryDefinitions",
|
|
144
|
-
keys: {
|
|
145
|
-
EXTENSION_POINT: we,
|
|
146
|
-
EXTENSION_POINT_DEF: Te,
|
|
147
|
-
EXTENSION_POINT_VIEW: Pe
|
|
148
|
-
}
|
|
149
|
-
}), he = "ddk.nav.view", ye = "ddk.nav.view.view", me = "ddk.ncui.nav.view.config", Re = N({
|
|
150
|
-
basePluginType: "nav.view",
|
|
151
|
-
contributionKey: "navViewDefinitions",
|
|
152
|
-
keys: {
|
|
153
|
-
EXTENSION_POINT: me,
|
|
154
|
-
EXTENSION_POINT_DEF: he,
|
|
155
|
-
EXTENSION_POINT_VIEW: ye
|
|
156
|
-
}
|
|
157
|
-
}), Z = [];
|
|
158
|
-
function _(t) {
|
|
159
|
-
Z.push(t);
|
|
160
|
-
}
|
|
161
|
-
function Se(t, e, n) {
|
|
162
|
-
return Z.reduce(
|
|
163
|
-
(i, o) => o(i, e, n),
|
|
164
|
-
t
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
const S = "ddk.settings", v = "ddk.settings.view", P = "ddk.settings.group", A = "ddk.ncui.settings.config", ve = (t, e, n) => (i, o) => {
|
|
168
|
-
const s = n[o];
|
|
169
|
-
return i[P] = i[P] || {}, i[P][o] = {
|
|
170
|
-
id: o,
|
|
171
|
-
type: "settings.group",
|
|
172
|
-
data: n[o],
|
|
173
|
-
remote: s.remote,
|
|
174
|
-
sectionId: s.sectionId
|
|
175
|
-
}, Object.entries(e).filter(([, r]) => r.settingsGroup === o).map(([r]) => r).forEach((r) => {
|
|
176
|
-
const u = r, l = e[r], E = t[l.experienceId] || {};
|
|
177
|
-
i[P][o].data.settings = [
|
|
178
|
-
...i[P][o].data.settings,
|
|
179
|
-
u
|
|
180
|
-
], i[S] = i[S] || {}, i[S][u] = {
|
|
181
|
-
id: u,
|
|
182
|
-
type: "settings.definition",
|
|
183
|
-
data: l,
|
|
184
|
-
remote: l.remote,
|
|
185
|
-
sectionId: l.sectionId
|
|
186
|
-
}, E.id && (i[v] = i[v] || {}, i[v][u] = {
|
|
187
|
-
id: u,
|
|
188
|
-
type: "settings.view",
|
|
189
|
-
data: E,
|
|
190
|
-
remote: l.remote,
|
|
191
|
-
sectionId: l.sectionId
|
|
192
|
-
}), i[A] = i[A] || {};
|
|
193
|
-
const f = {
|
|
194
|
-
id: u,
|
|
195
|
-
type: "settings",
|
|
196
|
-
data: l,
|
|
197
|
-
view: E,
|
|
198
|
-
remote: l.remote,
|
|
199
|
-
sectionId: l.sectionId
|
|
200
|
-
};
|
|
201
|
-
i[A][u] = f;
|
|
202
|
-
}), i;
|
|
203
|
-
}, k = "ddk.setup", C = "ddk.setup.view", x = "ddk.ncui.setup.config", Ae = (t, e) => (n, i) => {
|
|
204
|
-
const o = i, s = e[i], a = t[s.experienceId] || {};
|
|
205
|
-
n[k] = n[k] || {}, n[k][o] = {
|
|
206
|
-
id: o,
|
|
207
|
-
type: "setup.definition",
|
|
208
|
-
data: s,
|
|
209
|
-
remote: s.remote,
|
|
210
|
-
sectionId: s.sectionId
|
|
211
|
-
}, a.id && (n[C] = n[C] || {}, n[C][o] = {
|
|
212
|
-
id: o,
|
|
213
|
-
type: "setup.view",
|
|
214
|
-
data: a,
|
|
215
|
-
remote: s.remote,
|
|
216
|
-
sectionId: s.sectionId
|
|
217
|
-
}), n[x] = n[x] || {};
|
|
218
|
-
const u = {
|
|
219
|
-
id: o,
|
|
220
|
-
type: "setup",
|
|
221
|
-
data: s,
|
|
222
|
-
view: a,
|
|
223
|
-
remote: s.remote,
|
|
224
|
-
sectionId: s.sectionId
|
|
225
|
-
};
|
|
226
|
-
return n[x][o] = u, n;
|
|
227
|
-
}, ke = "ddk.trouble.action", Ce = "ddk.trouble.action.view", xe = "ddk.ncui.trouble.action.config", Ue = N({
|
|
228
|
-
basePluginType: "trouble.action",
|
|
229
|
-
contributionKey: "troubleActionDefinitions",
|
|
230
|
-
keys: {
|
|
231
|
-
EXTENSION_POINT: xe,
|
|
232
|
-
EXTENSION_POINT_DEF: ke,
|
|
233
|
-
EXTENSION_POINT_VIEW: Ce
|
|
234
|
-
}
|
|
235
|
-
}), U = "ddk.utilities", X = "ddk.utilities.view", K = "ddk.ncui.utils.config", Xe = (t, e) => (n, i) => {
|
|
236
|
-
const o = i, s = e[i], a = t[s.experienceId] || {};
|
|
237
|
-
n[U] = n[U] || {}, n[U][o] = {
|
|
238
|
-
id: o,
|
|
239
|
-
type: "utility.definition",
|
|
240
|
-
data: s,
|
|
241
|
-
remote: s.remote,
|
|
242
|
-
sectionId: s.sectionId
|
|
243
|
-
}, a.id && (n[X] = n[X] || {}, n[X][o] = {
|
|
244
|
-
id: o,
|
|
245
|
-
type: "utilities.view",
|
|
246
|
-
data: a,
|
|
247
|
-
remote: s.remote,
|
|
248
|
-
sectionId: s.sectionId
|
|
249
|
-
}), n[K] = n[K] || {};
|
|
250
|
-
const u = {
|
|
251
|
-
id: o,
|
|
252
|
-
type: "utility",
|
|
253
|
-
data: s,
|
|
254
|
-
view: a,
|
|
255
|
-
remote: s.remote,
|
|
256
|
-
sectionId: s.sectionId
|
|
257
|
-
};
|
|
258
|
-
return n[K][o] = u, n;
|
|
259
|
-
};
|
|
260
|
-
_(
|
|
261
|
-
(t, e, n) => Object.keys(e.cuiDefinitions).reduce(ce(n, e.cuiDefinitions), t)
|
|
262
|
-
);
|
|
263
|
-
_(
|
|
264
|
-
(t, e, n) => Object.keys(e.utilDefinitions).reduce(Xe(n, e.utilDefinitions), t)
|
|
265
|
-
);
|
|
266
|
-
_(
|
|
267
|
-
(t, e, n) => Object.keys(e.setupDefinitions).reduce(
|
|
268
|
-
Ae(n, e.setupDefinitions),
|
|
269
|
-
t
|
|
270
|
-
)
|
|
271
|
-
);
|
|
272
|
-
_(
|
|
273
|
-
(t, e, n) => Object.keys(e.troubleActionDefinitions).reduce(
|
|
274
|
-
Ue(n, e),
|
|
275
|
-
t
|
|
276
|
-
)
|
|
277
|
-
);
|
|
278
|
-
_(
|
|
279
|
-
(t, e, n) => Object.keys(e.navViewDefinitions).reduce(Re(n, e), t)
|
|
280
|
-
);
|
|
281
|
-
_(
|
|
282
|
-
(t, e, n) => Object.keys(e.dashboardSummaryDefinitions).reduce(
|
|
283
|
-
ge(n, e),
|
|
284
|
-
t
|
|
285
|
-
)
|
|
286
|
-
);
|
|
287
|
-
_(
|
|
288
|
-
(t, e, n) => Object.keys(e.dashboardDetailDefinitions).reduce(
|
|
289
|
-
Ee(n, e),
|
|
290
|
-
t
|
|
291
|
-
)
|
|
292
|
-
);
|
|
293
|
-
_(
|
|
294
|
-
(t, e, n) => Object.keys(e.dashboardPumpDetailDefinitions).reduce(
|
|
295
|
-
pe(n, e),
|
|
296
|
-
t
|
|
297
|
-
)
|
|
298
|
-
);
|
|
299
|
-
_(
|
|
300
|
-
(t, e, n) => Object.keys(e.dashboardDefinitions).reduce(De(n, e), t)
|
|
301
|
-
);
|
|
302
|
-
_(
|
|
303
|
-
(t, e, n) => Object.keys(e.settingsGroupDefinitions).reduce(
|
|
304
|
-
ve(n, e.settingsDefinitions, e.settingsGroupDefinitions),
|
|
305
|
-
t
|
|
306
|
-
)
|
|
307
|
-
);
|
|
308
|
-
_(
|
|
309
|
-
(t, e, n) => Object.keys(e.controlPourDefinitions).reduce(ue(n, e), t)
|
|
310
|
-
);
|
|
311
|
-
const Ke = (t = null) => (t || window.location.search.replace("?", "")).split("&").map((e) => {
|
|
312
|
-
const [n, i] = e.split("=");
|
|
313
|
-
return [n, decodeURIComponent(i || "")];
|
|
314
|
-
}).reduce((e, [n, i]) => (e[n] = i, e), {}), je = () => {
|
|
315
|
-
const t = window.location.origin, e = Ke();
|
|
316
|
-
return (e == null ? void 0 : e.host) || t;
|
|
317
|
-
}, We = async (t) => {
|
|
318
|
-
var T, g;
|
|
319
|
-
const e = je(), n = t ?? {}, {
|
|
320
|
-
pluginBaseUrl: i = e,
|
|
321
|
-
pluginApiPath: o = "/api/app/kosdev.ddk/ncui/plugins",
|
|
322
|
-
overrides: s = {},
|
|
323
|
-
pluginContext: a
|
|
324
|
-
} = n, r = !!a, u = r ? `${i}/api/kos/ui/plugins/context/${a.context}` : `${i}${o}`;
|
|
325
|
-
console.log(
|
|
326
|
-
`initialize-plugins: Using Plugin Framework: ${r}: Fetching plugins from ${u}`
|
|
327
|
-
);
|
|
328
|
-
const E = await (await fetch(u)).json(), c = r ? ((g = (T = E.data) == null ? void 0 : T.groups) == null ? void 0 : g[a.group]) ?? [] : E.data ?? [], f = c == null ? void 0 : c.reduce((O, I) => {
|
|
329
|
-
const D = (s == null ? void 0 : s[I.id]) ?? r ? `${i}${I.path}` : `${i}${I.baseUrl}`;
|
|
330
|
-
return I.descriptor ? O[I.id] = {
|
|
331
|
-
basePath: `${D}remoteEntry.js`,
|
|
332
|
-
extensions: I.descriptor.extensions,
|
|
333
|
-
contributes: I.descriptor.contributes,
|
|
334
|
-
remote: I.descriptor.id,
|
|
335
|
-
init: !!I.descriptor.init
|
|
336
|
-
} : console.error(
|
|
337
|
-
`initialize-plugins: Plugin ${I.id} does not have a descriptor`
|
|
338
|
-
), O;
|
|
339
|
-
}, {});
|
|
340
|
-
window.KosPlugins = window.KosPlugins || {}, window.KosPlugins.__dynamicRemotes = f;
|
|
341
|
-
const b = Object.keys(f).reduce((O, I) => {
|
|
342
|
-
const D = f[I].remote;
|
|
343
|
-
return O[D] = f[I].basePath, O;
|
|
344
|
-
}, {});
|
|
345
|
-
return M.setRemoteDefinitions(b), b;
|
|
346
|
-
}, Ve = (t) => (e, n) => {
|
|
347
|
-
var I, D, F, $, W, B, L, H, G, z, Y, Q;
|
|
348
|
-
e.cuiDefinitions = e.cuiDefinitions || {};
|
|
349
|
-
const i = t[n].remote, o = n;
|
|
350
|
-
(((I = t[n].contributes) == null ? void 0 : I.cui) || []).forEach((d) => {
|
|
351
|
-
e.cuiDefinitions[d.id] = {
|
|
352
|
-
...d,
|
|
353
|
-
cuiDescriptor: o,
|
|
354
|
-
remote: i,
|
|
355
|
-
sectionId: o
|
|
356
|
-
};
|
|
357
|
-
}), (((D = t[n].contributes) == null ? void 0 : D.navViews) || []).forEach((d) => {
|
|
358
|
-
e.navViewDefinitions[d.id] = {
|
|
359
|
-
...d,
|
|
360
|
-
remote: i,
|
|
361
|
-
sectionId: o
|
|
362
|
-
};
|
|
363
|
-
}), (((F = t[n].contributes) == null ? void 0 : F.utilities) || []).forEach((d) => {
|
|
364
|
-
e.utilDefinitions[d.id] = {
|
|
365
|
-
...d,
|
|
366
|
-
remote: i,
|
|
367
|
-
sectionId: o
|
|
368
|
-
};
|
|
369
|
-
}), ((($ = t[n].contributes) == null ? void 0 : $.setupStep) || []).forEach((d) => {
|
|
370
|
-
e.setupDefinitions[d.id] = {
|
|
371
|
-
...d,
|
|
372
|
-
remote: i,
|
|
373
|
-
sectionId: o
|
|
374
|
-
};
|
|
375
|
-
}), (((W = t[n].contributes) == null ? void 0 : W.troubleActions) || []).forEach((d) => {
|
|
376
|
-
e.troubleActionDefinitions[d.id] = {
|
|
377
|
-
...d,
|
|
378
|
-
remote: i,
|
|
379
|
-
sectionId: o
|
|
380
|
-
};
|
|
381
|
-
}), (((B = t[n].contributes) == null ? void 0 : B.controlPour) || []).forEach((d) => {
|
|
382
|
-
e.controlPourDefinitions[d.id] = {
|
|
383
|
-
...d,
|
|
384
|
-
remote: i,
|
|
385
|
-
sectionId: o
|
|
386
|
-
};
|
|
387
|
-
}), (((L = t[n].contributes) == null ? void 0 : L.settingsGroup) || []).forEach((d) => {
|
|
388
|
-
e.settingsGroupDefinitions[d.id] = {
|
|
389
|
-
...d,
|
|
390
|
-
settings: [],
|
|
391
|
-
remote: i,
|
|
392
|
-
sectionId: o
|
|
393
|
-
};
|
|
394
|
-
}), (((H = t[n].contributes) == null ? void 0 : H.settings) || []).forEach((d) => {
|
|
395
|
-
e.settingsDefinitions[d.id] = {
|
|
396
|
-
...d,
|
|
397
|
-
remote: i,
|
|
398
|
-
sectionId: o
|
|
399
|
-
};
|
|
400
|
-
}), (((G = t[n].contributes) == null ? void 0 : G.dashboardSummary) || []).forEach((d) => {
|
|
401
|
-
e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].summary = {
|
|
402
|
-
...d,
|
|
403
|
-
remote: i,
|
|
404
|
-
sectionId: o
|
|
405
|
-
}, e.dashboardSummaryDefinitions[d.id] = {
|
|
406
|
-
...d,
|
|
407
|
-
remote: i,
|
|
408
|
-
sectionId: o
|
|
409
|
-
};
|
|
410
|
-
}), (((z = t[n].contributes) == null ? void 0 : z.dashboardDetail) || []).forEach((d) => {
|
|
411
|
-
e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].detail = {
|
|
412
|
-
...d,
|
|
413
|
-
remote: i,
|
|
414
|
-
sectionId: o
|
|
415
|
-
}, e.dashboardDetailDefinitions[d.id] = {
|
|
416
|
-
...d,
|
|
417
|
-
remote: i,
|
|
418
|
-
sectionId: o
|
|
419
|
-
};
|
|
420
|
-
}), (((Y = t[n].contributes) == null ? void 0 : Y.dashboardPumpDetail) || []).forEach((d) => {
|
|
421
|
-
e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].pumpDetail = {
|
|
422
|
-
...d,
|
|
423
|
-
remote: i,
|
|
424
|
-
sectionId: o
|
|
425
|
-
}, e.dashboardPumpDetailDefinitions[d.id] = {
|
|
426
|
-
...d,
|
|
427
|
-
remote: i,
|
|
428
|
-
sectionId: o
|
|
429
|
-
};
|
|
430
|
-
});
|
|
431
|
-
const O = (Q = t[n].contributes) == null ? void 0 : Q.experiences;
|
|
432
|
-
return Object.keys(O).forEach((d) => {
|
|
433
|
-
const ee = O[d];
|
|
434
|
-
e.experiences[d] = {
|
|
435
|
-
...ee,
|
|
436
|
-
remote: i,
|
|
437
|
-
sectionId: o
|
|
438
|
-
};
|
|
439
|
-
}), e;
|
|
440
|
-
};
|
|
441
|
-
async function Me(t) {
|
|
442
|
-
const e = t ?? window.KosPlugins.__dynamicRemotes;
|
|
443
|
-
if (window.KosPlugins.extensions) {
|
|
444
|
-
const s = window.KosPlugins.extensions;
|
|
445
|
-
return {
|
|
446
|
-
extensionPoints: s,
|
|
447
|
-
getExtensions: (a) => s[a] || [],
|
|
448
|
-
remotes: e,
|
|
449
|
-
extensions: window.KosPlugins.__extensions
|
|
450
|
-
};
|
|
451
|
-
}
|
|
452
|
-
const n = window.KosPlugins.__extensions ?? await $e(e), i = {};
|
|
453
|
-
if (n)
|
|
454
|
-
for (const s of Object.keys(n))
|
|
455
|
-
i[s] = Object.values(
|
|
456
|
-
n[s] || {}
|
|
457
|
-
);
|
|
458
|
-
return window.KosPlugins.extensions = i, { extensionPoints: i, getExtensions: (s) => i[s] || [], remotes: e, extensions: n };
|
|
459
|
-
}
|
|
460
|
-
const J = {
|
|
461
|
-
cuiDefinitions: {},
|
|
462
|
-
controlPourDefinitions: {},
|
|
463
|
-
utilDefinitions: {},
|
|
464
|
-
setupDefinitions: {},
|
|
465
|
-
settingsGroupDefinitions: {},
|
|
466
|
-
settingsDefinitions: {},
|
|
467
|
-
dashboardSummaryDefinitions: {},
|
|
468
|
-
dashboardDetailDefinitions: {},
|
|
469
|
-
dashboardPumpDetailDefinitions: {},
|
|
470
|
-
dashboardDefinitions: {},
|
|
471
|
-
navViewDefinitions: {},
|
|
472
|
-
troubleActionDefinitions: {},
|
|
473
|
-
experiences: {}
|
|
474
|
-
};
|
|
475
|
-
function Fe(t) {
|
|
476
|
-
return t ? Object.keys(t).reduce(Ve(t), {
|
|
477
|
-
...J
|
|
478
|
-
}) : J;
|
|
479
|
-
}
|
|
480
|
-
async function $e(t) {
|
|
481
|
-
if (!t)
|
|
482
|
-
return window.KosPlugins = window.KosPlugins || {}, {};
|
|
483
|
-
const e = Fe(t), n = e.experiences, o = Se(
|
|
484
|
-
{},
|
|
485
|
-
e,
|
|
486
|
-
n
|
|
487
|
-
);
|
|
488
|
-
for (const a of Object.values(t))
|
|
489
|
-
if (a.init) {
|
|
490
|
-
const r = await M.loadRemoteModule(a.remote, "./InitPlugin");
|
|
491
|
-
if (r.default) {
|
|
492
|
-
const u = new r.default();
|
|
493
|
-
u == null || u.register();
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
const s = Object.keys(t).reduce((a, r) => {
|
|
497
|
-
var E;
|
|
498
|
-
const u = ((E = t[r].contributes) == null ? void 0 : E.views) ?? {};
|
|
499
|
-
for (const c of Object.keys(u)) {
|
|
500
|
-
const f = u[c];
|
|
501
|
-
a[c] = a[c] || {};
|
|
502
|
-
for (const b of f)
|
|
503
|
-
a[c][b.id] = {
|
|
504
|
-
id: b.id,
|
|
505
|
-
type: "view",
|
|
506
|
-
component: b.component,
|
|
507
|
-
remote: t[r].remote,
|
|
508
|
-
sectionId: r,
|
|
509
|
-
data: b
|
|
510
|
-
};
|
|
511
|
-
}
|
|
512
|
-
const l = t[r].extensions ?? [];
|
|
513
|
-
for (const c of l)
|
|
514
|
-
a[c.extensionPointId] = a[c.extensionPointId] || {}, a[c.extensionPointId][c.id] = {
|
|
515
|
-
id: c.id,
|
|
516
|
-
type: c.type,
|
|
517
|
-
component: c.component,
|
|
518
|
-
remote: t[r].remote,
|
|
519
|
-
sectionId: r,
|
|
520
|
-
data: c
|
|
521
|
-
};
|
|
522
|
-
return a;
|
|
523
|
-
}, o);
|
|
524
|
-
return window.KosPlugins = window.KosPlugins || {}, window.KosPlugins.__extensions = s, s;
|
|
525
|
-
}
|
|
526
|
-
async function Be(t) {
|
|
527
|
-
const { getExtensions: e } = await Me();
|
|
528
|
-
return e(t);
|
|
529
|
-
}
|
|
530
|
-
function Le(t, e, n = !1) {
|
|
531
|
-
return !t || Object.keys(t).length === 0 ? null : n ? e && t[e] ? t[e] : null : e && t[e] ? t[e] : Object.values(t).filter((o) => typeof o.id == "string").sort((o, s) => {
|
|
532
|
-
const a = typeof o.rank == "number" ? o.rank : 1 / 0, r = typeof s.rank == "number" ? s.rank : 1 / 0;
|
|
533
|
-
if (a === r) {
|
|
534
|
-
const u = o.id ?? "", l = s.id ?? "";
|
|
535
|
-
return u.localeCompare(l);
|
|
536
|
-
}
|
|
537
|
-
return a - r;
|
|
538
|
-
})[0] ?? null;
|
|
539
|
-
}
|
|
540
|
-
export {
|
|
541
|
-
Re as A,
|
|
542
|
-
Fe as B,
|
|
543
|
-
$e as C,
|
|
544
|
-
Be as D,
|
|
545
|
-
y as E,
|
|
546
|
-
S as F,
|
|
547
|
-
v as G,
|
|
548
|
-
P as H,
|
|
549
|
-
A as I,
|
|
550
|
-
ve as J,
|
|
551
|
-
k as K,
|
|
552
|
-
C as L,
|
|
553
|
-
x as M,
|
|
554
|
-
Ae as N,
|
|
555
|
-
ke as O,
|
|
556
|
-
Ce as P,
|
|
557
|
-
xe as Q,
|
|
558
|
-
Ue as R,
|
|
559
|
-
U as S,
|
|
560
|
-
X as T,
|
|
561
|
-
K as U,
|
|
562
|
-
Xe as V,
|
|
563
|
-
Me as a,
|
|
564
|
-
m as b,
|
|
565
|
-
Ve as c,
|
|
566
|
-
R as d,
|
|
567
|
-
ce as e,
|
|
568
|
-
le as f,
|
|
569
|
-
Ie as g,
|
|
570
|
-
fe as h,
|
|
571
|
-
We as i,
|
|
572
|
-
Ee as j,
|
|
573
|
-
_e as k,
|
|
574
|
-
be as l,
|
|
575
|
-
M as m,
|
|
576
|
-
Oe as n,
|
|
577
|
-
pe as o,
|
|
578
|
-
Ne as p,
|
|
579
|
-
De as q,
|
|
580
|
-
Le as r,
|
|
581
|
-
Te as s,
|
|
582
|
-
Pe as t,
|
|
583
|
-
we as u,
|
|
584
|
-
ge as v,
|
|
585
|
-
Ke as w,
|
|
586
|
-
he as x,
|
|
587
|
-
ye as y,
|
|
588
|
-
me as z
|
|
589
|
-
};
|
|
590
|
-
//# sourceMappingURL=resolve-best-extension-CqHaJSdN.js.map
|