@kosdev-code/kos-ui-plugin 2.0.0
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/dev.cjs +57 -0
- package/dev.cjs.map +1 -0
- package/dev.js +400 -0
- package/dev.js.map +1 -0
- package/emotion-react-jsx-runtime.browser.esm-UFFvJLiS.cjs +27 -0
- package/emotion-react-jsx-runtime.browser.esm-UFFvJLiS.cjs.map +1 -0
- package/emotion-react-jsx-runtime.browser.esm-vwuMB3sI.js +1161 -0
- package/emotion-react-jsx-runtime.browser.esm-vwuMB3sI.js.map +1 -0
- package/index.cjs +29 -0
- package/index.cjs.map +1 -0
- package/index.d.ts +5 -0
- package/index.d.ts.map +1 -0
- package/index.js +109 -0
- package/index.js.map +1 -0
- package/lib/components/dynamic-component/dynamic-component.d.ts +11 -0
- package/lib/components/dynamic-component/dynamic-component.d.ts.map +1 -0
- package/lib/components/dynamic-component/index.d.ts +2 -0
- package/lib/components/dynamic-component/index.d.ts.map +1 -0
- package/lib/components/dynamic-container/dynamic-container.d.ts +12 -0
- package/lib/components/dynamic-container/dynamic-container.d.ts.map +1 -0
- package/lib/components/dynamic-container/index.d.ts +2 -0
- package/lib/components/dynamic-container/index.d.ts.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/contexts/index.d.ts +2 -0
- package/lib/contexts/index.d.ts.map +1 -0
- package/lib/contexts/plugins-provider/index.d.ts +2 -0
- package/lib/contexts/plugins-provider/index.d.ts.map +1 -0
- package/lib/contexts/plugins-provider/plugins-provider.d.ts +32 -0
- package/lib/contexts/plugins-provider/plugins-provider.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-component-view.d.ts +9 -0
- package/lib/dev/components/dynamic-view/dynamic-component-view.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-container.d.ts +8 -0
- package/lib/dev/components/dynamic-view/dynamic-container.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-view-basic.d.ts +13 -0
- package/lib/dev/components/dynamic-view/dynamic-view-basic.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-view-modal.d.ts +15 -0
- package/lib/dev/components/dynamic-view/dynamic-view-modal.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-view-picker.d.ts +9 -0
- package/lib/dev/components/dynamic-view/dynamic-view-picker.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-view-settings.d.ts +15 -0
- package/lib/dev/components/dynamic-view/dynamic-view-settings.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/dynamic-view-utilities.d.ts +15 -0
- package/lib/dev/components/dynamic-view/dynamic-view-utilities.d.ts.map +1 -0
- package/lib/dev/components/dynamic-view/index.d.ts +8 -0
- package/lib/dev/components/dynamic-view/index.d.ts.map +1 -0
- package/lib/dev/components/index.d.ts +4 -0
- package/lib/dev/components/index.d.ts.map +1 -0
- package/lib/dev/components/shell/header/header.d.ts +2 -0
- package/lib/dev/components/shell/header/header.d.ts.map +1 -0
- package/lib/dev/components/shell/header/index.d.ts +2 -0
- package/lib/dev/components/shell/header/index.d.ts.map +1 -0
- package/lib/dev/components/shell/index.d.ts +3 -0
- package/lib/dev/components/shell/index.d.ts.map +1 -0
- package/lib/dev/components/shell/shell.d.ts +10 -0
- package/lib/dev/components/shell/shell.d.ts.map +1 -0
- package/lib/dev/components/storybook/cui-story-container/cui-story-container.d.ts +8 -0
- package/lib/dev/components/storybook/cui-story-container/cui-story-container.d.ts.map +1 -0
- package/lib/dev/components/storybook/cui-story-container/index.d.ts +2 -0
- package/lib/dev/components/storybook/cui-story-container/index.d.ts.map +1 -0
- package/lib/dev/components/storybook/index.d.ts +6 -0
- package/lib/dev/components/storybook/index.d.ts.map +1 -0
- package/lib/dev/components/storybook/nav-story-container/index.d.ts +2 -0
- package/lib/dev/components/storybook/nav-story-container/index.d.ts.map +1 -0
- package/lib/dev/components/storybook/nav-story-container/nav-story-container.d.ts +8 -0
- package/lib/dev/components/storybook/nav-story-container/nav-story-container.d.ts.map +1 -0
- package/lib/dev/components/storybook/setting-story-container/index.d.ts +2 -0
- package/lib/dev/components/storybook/setting-story-container/index.d.ts.map +1 -0
- package/lib/dev/components/storybook/setting-story-container/setting-story-container.d.ts +8 -0
- package/lib/dev/components/storybook/setting-story-container/setting-story-container.d.ts.map +1 -0
- package/lib/dev/components/storybook/setup-step-story-container/index.d.ts +2 -0
- package/lib/dev/components/storybook/setup-step-story-container/index.d.ts.map +1 -0
- package/lib/dev/components/storybook/setup-step-story-container/setup-step-story-container.d.ts +8 -0
- package/lib/dev/components/storybook/setup-step-story-container/setup-step-story-container.d.ts.map +1 -0
- package/lib/dev/components/storybook/utility-story-container/index.d.ts +2 -0
- package/lib/dev/components/storybook/utility-story-container/index.d.ts.map +1 -0
- package/lib/dev/components/storybook/utility-story-container/utility-story-container.d.ts +8 -0
- package/lib/dev/components/storybook/utility-story-container/utility-story-container.d.ts.map +1 -0
- package/lib/dev/index.d.ts +3 -0
- package/lib/dev/index.d.ts.map +1 -0
- package/lib/dev/utils/index.d.ts +2 -0
- package/lib/dev/utils/index.d.ts.map +1 -0
- package/lib/dev/utils/kos-metadata-parser.d.ts +6 -0
- package/lib/dev/utils/kos-metadata-parser.d.ts.map +1 -0
- package/lib/dev/utils/normalize.d.ts +2 -0
- package/lib/dev/utils/normalize.d.ts.map +1 -0
- package/lib/hooks/index.d.ts +2 -0
- package/lib/hooks/index.d.ts.map +1 -0
- package/lib/hooks/use-dynamic-component.d.ts +14 -0
- package/lib/hooks/use-dynamic-component.d.ts.map +1 -0
- package/lib/utils/contribution-reducer.d.ts +5 -0
- package/lib/utils/contribution-reducer.d.ts.map +1 -0
- package/lib/utils/cui-reducer.d.ts +7 -0
- package/lib/utils/cui-reducer.d.ts.map +1 -0
- package/lib/utils/dashboard-detail-reducer.d.ts +5 -0
- package/lib/utils/dashboard-detail-reducer.d.ts.map +1 -0
- package/lib/utils/dashboard-pump-detail-reducer.d.ts +5 -0
- package/lib/utils/dashboard-pump-detail-reducer.d.ts.map +1 -0
- package/lib/utils/dashboard-reducer.d.ts +3 -0
- package/lib/utils/dashboard-reducer.d.ts.map +1 -0
- package/lib/utils/dashboard-summary-reducer.d.ts +5 -0
- package/lib/utils/dashboard-summary-reducer.d.ts.map +1 -0
- package/lib/utils/index.d.ts +15 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/initialize-plugins.d.ts +36 -0
- package/lib/utils/initialize-plugins.d.ts.map +1 -0
- package/lib/utils/nav-view-reducer.d.ts +5 -0
- package/lib/utils/nav-view-reducer.d.ts.map +1 -0
- package/lib/utils/plugin-extension-manager.d.ts +17 -0
- package/lib/utils/plugin-extension-manager.d.ts.map +1 -0
- package/lib/utils/plugin-reducer.d.ts +17 -0
- package/lib/utils/plugin-reducer.d.ts.map +1 -0
- package/lib/utils/process-kos-config.d.ts +23 -0
- package/lib/utils/process-kos-config.d.ts.map +1 -0
- package/lib/utils/settings-reducer.d.ts +8 -0
- package/lib/utils/settings-reducer.d.ts.map +1 -0
- package/lib/utils/setup-reducer.d.ts +7 -0
- package/lib/utils/setup-reducer.d.ts.map +1 -0
- package/lib/utils/state-action-reducer.d.ts +5 -0
- package/lib/utils/state-action-reducer.d.ts.map +1 -0
- package/lib/utils/util-reducer.d.ts +7 -0
- package/lib/utils/util-reducer.d.ts.map +1 -0
- package/lib/webpack/index.d.ts +2 -0
- package/lib/webpack/index.d.ts.map +1 -0
- package/lib/webpack/with-kos-config.d.ts +2 -0
- package/lib/webpack/with-kos-config.d.ts.map +1 -0
- package/package.json +35 -0
- package/plugin-extension-manager-7xDx0VSt.js +524 -0
- package/plugin-extension-manager-7xDx0VSt.js.map +1 -0
- package/plugin-extension-manager-D9aw-mUM.cjs +2 -0
- package/plugin-extension-manager-D9aw-mUM.cjs.map +1 -0
- package/types/global.d.ts +95 -0
- package/types/plugins.d.ts +161 -0
- package/utils.cjs +2 -0
- package/utils.cjs.map +1 -0
- package/utils.js +327 -0
- package/utils.js.map +1 -0
- package/webpack.cjs +13 -0
- package/webpack.cjs.map +1 -0
- package/webpack.js +842 -0
- package/webpack.js.map +1 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PluginExtensionsType, ProcessedContributions } from '../../types/plugins';
|
|
2
|
+
|
|
3
|
+
export declare const EXTENSION_POINT_SETUP_DEF = "ddk.setup";
|
|
4
|
+
export declare const EXTENSION_POINT_SETUP_VIEW = "ddk.setup.view";
|
|
5
|
+
export declare const EXTENSION_POINT_SETUP = "ddk.ncui.setup.config";
|
|
6
|
+
interface PluginReducer {
|
|
7
|
+
contributionKey: string;
|
|
8
|
+
basePluginType: string;
|
|
9
|
+
keys: {
|
|
10
|
+
EXTENSION_POINT_DEF?: string;
|
|
11
|
+
EXTENSION_POINT_VIEW?: string;
|
|
12
|
+
EXTENSION_POINT: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const pluginReducer: ({ contributionKey, basePluginType, keys: { EXTENSION_POINT, EXTENSION_POINT_DEF, EXTENSION_POINT_VIEW }, }: PluginReducer) => (experiences: ProcessedContributions["experiences"], contributions: ProcessedContributions) => (acc: PluginExtensionsType, key: string) => PluginExtensionsType;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=plugin-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-reducer.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/utils/plugin-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,0BAA0B,mBAAmB,CAAC;AAC3D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,UAAU,aAAa;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE;QACJ,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AACD,eAAO,MAAM,aAAa,+GAKrB,aAAa,mBAED,sBAAsB,CAAC,aAAa,CAAC,iBACnC,sBAAsB,WAEjC,oBAAoB,OAAO,MAAM,yBAsCtC,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Contributions } from '../../types/global';
|
|
2
|
+
|
|
3
|
+
interface KosConfig {
|
|
4
|
+
name: string;
|
|
5
|
+
kosdev: {
|
|
6
|
+
ddk: {
|
|
7
|
+
ncui: {
|
|
8
|
+
plugin: {
|
|
9
|
+
id: string;
|
|
10
|
+
init?: boolean;
|
|
11
|
+
contributes: Contributions;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface PluginOptions {
|
|
18
|
+
sdkVersion?: string;
|
|
19
|
+
ddkVersion?: string;
|
|
20
|
+
}
|
|
21
|
+
export declare function generatePluginConfiguration(config: KosConfig, options?: PluginOptions): any;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=process-kos-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-kos-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/utils/process-kos-config.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQxD,UAAU,SAAS;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,GAAG,EAAE;YACH,IAAI,EAAE;gBACJ,MAAM,EAAE;oBACN,EAAE,EAAE,MAAM,CAAC;oBACX,IAAI,CAAC,EAAE,OAAO,CAAC;oBACf,WAAW,EAAE,aAAa,CAAC;iBAC5B,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH;AAWD,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AACD,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,SAAS,EACjB,OAAO,CAAC,EAAE,aAAa,GACtB,GAAG,CAoQL"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PluginExtensionsType, ProcessedContributions } from '../../types/plugins';
|
|
2
|
+
|
|
3
|
+
export declare const EXTENSION_POINT_SETTINGS_DEF = "ddk.settings";
|
|
4
|
+
export declare const EXTENSION_POINT_SETTINGS_VIEW = "ddk.settings.view";
|
|
5
|
+
export declare const EXTENSION_POINT_SETTINGS_GROUP_DEF = "ddk.settings.group";
|
|
6
|
+
export declare const EXTENSION_POINT_SETTINGS = "ddk.ncui.settings.config";
|
|
7
|
+
export declare const settingsReducer: (experiences: ProcessedContributions["experiences"], settingDefinition: ProcessedContributions["settingsDefinitions"], settingsGroupDefinition: ProcessedContributions["settingsGroupDefinitions"]) => (acc: PluginExtensionsType, group: string) => PluginExtensionsType;
|
|
8
|
+
//# sourceMappingURL=settings-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-reducer.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/utils/settings-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,4BAA4B,iBAAiB,CAAC;AAC3D,eAAO,MAAM,6BAA6B,sBAAsB,CAAC;AACjE,eAAO,MAAM,kCAAkC,uBAAuB,CAAC;AACvE,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,eAAe,gBAEX,sBAAsB,CAAC,aAAa,CAAC,qBAC/B,sBAAsB,CAAC,qBAAqB,CAAC,2BACvC,sBAAsB,CAAC,0BAA0B,CAAC,WAEvE,oBAAoB,SAAS,MAAM,yBA4DxC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PluginExtensionsType, ProcessedContributions } from '../../types/plugins';
|
|
2
|
+
|
|
3
|
+
export declare const EXTENSION_POINT_SETUP_DEF = "ddk.setup";
|
|
4
|
+
export declare const EXTENSION_POINT_SETUP_VIEW = "ddk.setup.view";
|
|
5
|
+
export declare const EXTENSION_POINT_SETUP = "ddk.ncui.setup.config";
|
|
6
|
+
export declare const setupReducer: (experiences: ProcessedContributions["experiences"], setupDefinitions: ProcessedContributions["setupDefinitions"]) => (acc: PluginExtensionsType, key: string) => PluginExtensionsType;
|
|
7
|
+
//# sourceMappingURL=setup-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"setup-reducer.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/utils/setup-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,yBAAyB,cAAc,CAAC;AACrD,eAAO,MAAM,0BAA0B,mBAAmB,CAAC;AAC3D,eAAO,MAAM,qBAAqB,0BAA0B,CAAC;AAE7D,eAAO,MAAM,YAAY,gBAER,sBAAsB,CAAC,aAAa,CAAC,oBAChC,sBAAsB,CAAC,kBAAkB,CAAC,WAExD,oBAAoB,OAAO,MAAM,yBAmCtC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const EXTENSION_POINT_TROUBLE_ACTION_DEF = "ddk.trouble.action";
|
|
2
|
+
export declare const EXTENSION_POINT_TROUBLE_ACTION_VIEW = "ddk.trouble.action.view";
|
|
3
|
+
export declare const EXTENSION_POINT_TROUBLE_ACTION = "ddk.ncui.trouble.action.config";
|
|
4
|
+
export declare const troubleActionReducer: (experiences: Record<string, any>, contributions: import('../../types/plugins').ProcessedContributions) => (acc: import('../..').PluginExtensionsType, key: string) => import('../..').PluginExtensionsType;
|
|
5
|
+
//# sourceMappingURL=state-action-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state-action-reducer.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/utils/state-action-reducer.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kCAAkC,uBAAuB,CAAC;AACvE,eAAO,MAAM,mCAAmC,4BAA4B,CAAC;AAC7E,eAAO,MAAM,8BAA8B,mCAAmC,CAAC;AAE/E,eAAO,MAAM,oBAAoB,6MAQ/B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PluginExtensionsType, ProcessedContributions } from '../../types/plugins';
|
|
2
|
+
|
|
3
|
+
export declare const EXTENSION_POINT_UTIL_DEF = "ddk.utilities";
|
|
4
|
+
export declare const EXTENSION_POINT_UTIL_VIEW = "ddk.utilities.view";
|
|
5
|
+
export declare const EXTENSION_POINT_UTIL = "ddk.ncui.utils.config";
|
|
6
|
+
export declare const utilReducer: (experiences: ProcessedContributions["experiences"], utilDefinitions: ProcessedContributions["utilDefinitions"]) => (acc: PluginExtensionsType, key: string) => PluginExtensionsType;
|
|
7
|
+
//# sourceMappingURL=util-reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util-reducer.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/utils/util-reducer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,sBAAsB,EAEvB,MAAM,qBAAqB,CAAC;AAE7B,eAAO,MAAM,wBAAwB,kBAAkB,CAAC;AACxD,eAAO,MAAM,yBAAyB,uBAAuB,CAAC;AAC9D,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,WAAW,gBAEP,sBAAsB,CAAC,aAAa,CAAC,mBACjC,sBAAsB,CAAC,iBAAiB,CAAC,WAEtD,oBAAoB,OAAO,MAAM,yBAoCtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/webpack/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-kos-config.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-ui-plugin/src/lib/webpack/with-kos-config.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,aAAa,wCAczB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kosdev-code/kos-ui-plugin",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"import": "./index.js",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"require": "./index.cjs"
|
|
10
|
+
},
|
|
11
|
+
"./utilities": {
|
|
12
|
+
"import": "./utils.js",
|
|
13
|
+
"types": "./lib/utils/index.d.ts",
|
|
14
|
+
"require": "./utils.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./webpack": {
|
|
17
|
+
"import": "./webpack.js",
|
|
18
|
+
"types": "./lib/webpack/index.d.ts",
|
|
19
|
+
"require": "./webpack.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./dev": {
|
|
22
|
+
"import": "./dev.js",
|
|
23
|
+
"types": "./lib/dev/index.d.ts",
|
|
24
|
+
"require": "./dev.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"kos": {
|
|
28
|
+
"build": {
|
|
29
|
+
"gitHash": "c4ca7cd3221751dacae28d4c039983dede1f6b95"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"registry": "https://registry.npmjs.org/"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
var it = {}, _ = {};
|
|
2
|
+
Object.defineProperty(_, "__esModule", { value: !0 });
|
|
3
|
+
_.loadRemoteModule = _.setRemoteDefinitions = _.setRemoteUrlResolver = void 0;
|
|
4
|
+
let C, z;
|
|
5
|
+
const k = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Map();
|
|
6
|
+
let tt = !1;
|
|
7
|
+
function st(i) {
|
|
8
|
+
z = i;
|
|
9
|
+
}
|
|
10
|
+
_.setRemoteUrlResolver = st;
|
|
11
|
+
function ot(i) {
|
|
12
|
+
C = i;
|
|
13
|
+
}
|
|
14
|
+
_.setRemoteDefinitions = ot;
|
|
15
|
+
async function dt(i, e) {
|
|
16
|
+
const t = `${i}:${e}`;
|
|
17
|
+
if (k.has(t))
|
|
18
|
+
return k.get(t);
|
|
19
|
+
const o = (await (q.has(i) ? q.get(i) : await at(i)).get(e))();
|
|
20
|
+
return k.set(t, o), o;
|
|
21
|
+
}
|
|
22
|
+
_.loadRemoteModule = dt;
|
|
23
|
+
const rt = (i, e) => new Promise((t, n) => {
|
|
24
|
+
const s = document.createElement("script");
|
|
25
|
+
s.src = i, s.type = "text/javascript", s.async = !0, s.onload = () => {
|
|
26
|
+
t({
|
|
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), n(r);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}, s.onerror = () => n(new Error(`Remote ${e} not found`)), document.head.appendChild(s);
|
|
37
|
+
});
|
|
38
|
+
async function at(i) {
|
|
39
|
+
if (!z && !C)
|
|
40
|
+
throw new Error("Call setRemoteDefinitions or setRemoteUrlResolver to allow Dynamic Federation to find the remote apps correctly.");
|
|
41
|
+
tt || (tt = !0, await __webpack_init_sharing__("default"));
|
|
42
|
+
const e = C ? C[i] : await z(i);
|
|
43
|
+
let t = e;
|
|
44
|
+
!e.endsWith(".mjs") && !e.endsWith(".js") && (t = `${e}${e.endsWith("/") ? "" : "/"}remoteEntry.js`);
|
|
45
|
+
const n = await rt(t, i);
|
|
46
|
+
return await n.init(__webpack_share_scopes__.default), q.set(i, n), n;
|
|
47
|
+
}
|
|
48
|
+
(function(i) {
|
|
49
|
+
Object.defineProperty(i, "__esModule", { value: !0 }), i.setRemoteUrlResolver = i.setRemoteDefinitions = i.loadRemoteModule = void 0;
|
|
50
|
+
var e = _;
|
|
51
|
+
Object.defineProperty(i, "loadRemoteModule", { enumerable: !0, get: function() {
|
|
52
|
+
return e.loadRemoteModule;
|
|
53
|
+
} }), Object.defineProperty(i, "setRemoteDefinitions", { enumerable: !0, get: function() {
|
|
54
|
+
return e.setRemoteDefinitions;
|
|
55
|
+
} }), Object.defineProperty(i, "setRemoteUrlResolver", { enumerable: !0, get: function() {
|
|
56
|
+
return e.setRemoteUrlResolver;
|
|
57
|
+
} });
|
|
58
|
+
})(it);
|
|
59
|
+
const ut = (i) => (e, t) => {
|
|
60
|
+
var w, y, S, g, R, v, x, A, p, O, f;
|
|
61
|
+
e.cuiDefinitions = e.cuiDefinitions || {};
|
|
62
|
+
const n = i[t].remote, s = t;
|
|
63
|
+
(((w = i[t].contributes) == null ? void 0 : w.cui) || []).forEach((d) => {
|
|
64
|
+
e.cuiDefinitions[d.id] = {
|
|
65
|
+
...d,
|
|
66
|
+
cuiDescriptor: s,
|
|
67
|
+
remote: n,
|
|
68
|
+
sectionId: s
|
|
69
|
+
};
|
|
70
|
+
}), (((y = i[t].contributes) == null ? void 0 : y.navViews) || []).forEach((d) => {
|
|
71
|
+
e.navViewDefinitions[d.id] = {
|
|
72
|
+
...d,
|
|
73
|
+
remote: n,
|
|
74
|
+
sectionId: s
|
|
75
|
+
};
|
|
76
|
+
}), (((S = i[t].contributes) == null ? void 0 : S.utilities) || []).forEach((d) => {
|
|
77
|
+
e.utilDefinitions[d.id] = {
|
|
78
|
+
...d,
|
|
79
|
+
remote: n,
|
|
80
|
+
sectionId: s
|
|
81
|
+
};
|
|
82
|
+
}), (((g = i[t].contributes) == null ? void 0 : g.setupStep) || []).forEach((d) => {
|
|
83
|
+
e.setupDefinitions[d.id] = {
|
|
84
|
+
...d,
|
|
85
|
+
remote: n,
|
|
86
|
+
sectionId: s
|
|
87
|
+
};
|
|
88
|
+
}), (((R = i[t].contributes) == null ? void 0 : R.troubleActions) || []).forEach((d) => {
|
|
89
|
+
e.troubleActionDefinitions[d.id] = {
|
|
90
|
+
...d,
|
|
91
|
+
remote: n,
|
|
92
|
+
sectionId: s
|
|
93
|
+
};
|
|
94
|
+
}), (((v = i[t].contributes) == null ? void 0 : v.settingsGroup) || []).forEach((d) => {
|
|
95
|
+
e.settingsGroupDefinitions[d.id] = {
|
|
96
|
+
...d,
|
|
97
|
+
settings: [],
|
|
98
|
+
remote: n,
|
|
99
|
+
sectionId: s
|
|
100
|
+
};
|
|
101
|
+
}), (((x = i[t].contributes) == null ? void 0 : x.settings) || []).forEach((d) => {
|
|
102
|
+
e.settingsDefinitions[d.id] = {
|
|
103
|
+
...d,
|
|
104
|
+
remote: n,
|
|
105
|
+
sectionId: s
|
|
106
|
+
};
|
|
107
|
+
}), (((A = i[t].contributes) == null ? void 0 : A.dashboardSummary) || []).forEach((d) => {
|
|
108
|
+
e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].summary = {
|
|
109
|
+
...d,
|
|
110
|
+
remote: n,
|
|
111
|
+
sectionId: s
|
|
112
|
+
}, e.dashboardSummaryDefinitions[d.id] = {
|
|
113
|
+
...d,
|
|
114
|
+
remote: n,
|
|
115
|
+
sectionId: s
|
|
116
|
+
};
|
|
117
|
+
}), (((p = i[t].contributes) == null ? void 0 : p.dashboardDetail) || []).forEach((d) => {
|
|
118
|
+
e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].detail = {
|
|
119
|
+
...d,
|
|
120
|
+
remote: n,
|
|
121
|
+
sectionId: s
|
|
122
|
+
}, e.dashboardDetailDefinitions[d.id] = {
|
|
123
|
+
...d,
|
|
124
|
+
remote: n,
|
|
125
|
+
sectionId: s
|
|
126
|
+
};
|
|
127
|
+
}), (((O = i[t].contributes) == null ? void 0 : O.dashboardPumpDetail) || []).forEach((d) => {
|
|
128
|
+
e.dashboardDefinitions[d.dashboardKey] = e.dashboardDefinitions[d.dashboardKey] || {}, e.dashboardDefinitions[d.dashboardKey].pumpDetail = {
|
|
129
|
+
...d,
|
|
130
|
+
remote: n,
|
|
131
|
+
sectionId: s
|
|
132
|
+
}, e.dashboardPumpDetailDefinitions[d.id] = {
|
|
133
|
+
...d,
|
|
134
|
+
remote: n,
|
|
135
|
+
sectionId: s
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
const P = (f = i[t].contributes) == null ? void 0 : f.experiences;
|
|
139
|
+
return Object.keys(P).forEach((d) => {
|
|
140
|
+
const N = P[d];
|
|
141
|
+
e.experiences[d] = {
|
|
142
|
+
...N,
|
|
143
|
+
remote: n,
|
|
144
|
+
sectionId: s
|
|
145
|
+
};
|
|
146
|
+
}), e;
|
|
147
|
+
}, K = "ddk.cui", M = "ddk.cui.view", j = "ddk.cui.settings.config", ct = (i, e) => (t, n) => {
|
|
148
|
+
const s = n, o = e[n], a = i[o.experienceId] || {};
|
|
149
|
+
t[K] = t[K] || {}, t[K][s] = {
|
|
150
|
+
id: s,
|
|
151
|
+
type: "cui.definition",
|
|
152
|
+
data: o,
|
|
153
|
+
remote: o.remote,
|
|
154
|
+
sectionId: o.sectionId
|
|
155
|
+
}, a.id && (t[M] = t[M] || {}, t[M][s] = {
|
|
156
|
+
id: s,
|
|
157
|
+
type: "cui.view",
|
|
158
|
+
data: a,
|
|
159
|
+
remote: o.remote,
|
|
160
|
+
sectionId: o.sectionId
|
|
161
|
+
}), t[j] = t[j] || {};
|
|
162
|
+
const u = {
|
|
163
|
+
id: s,
|
|
164
|
+
type: "cui",
|
|
165
|
+
data: o,
|
|
166
|
+
view: a,
|
|
167
|
+
remote: o.remote,
|
|
168
|
+
sectionId: o.sectionId
|
|
169
|
+
};
|
|
170
|
+
return t[j][s] = u, t;
|
|
171
|
+
}, T = ({
|
|
172
|
+
contributionKey: i,
|
|
173
|
+
basePluginType: e,
|
|
174
|
+
keys: { EXTENSION_POINT: t, EXTENSION_POINT_DEF: n, EXTENSION_POINT_VIEW: s }
|
|
175
|
+
}) => (o, a) => (r, u) => {
|
|
176
|
+
const c = u, I = a[i][u], b = o[I.experienceId] || {};
|
|
177
|
+
n && (r[n] = r[n] || {}, r[n][c] = {
|
|
178
|
+
id: c,
|
|
179
|
+
type: `${e}.definition`,
|
|
180
|
+
data: I,
|
|
181
|
+
remote: I.remote,
|
|
182
|
+
sectionId: I.sectionId
|
|
183
|
+
}), b.id && s && (r[s] = r[s] || {}, r[s][c] = {
|
|
184
|
+
id: c,
|
|
185
|
+
type: `${e}.view`,
|
|
186
|
+
data: b,
|
|
187
|
+
remote: I.remote,
|
|
188
|
+
sectionId: I.sectionId
|
|
189
|
+
}), r[t] = r[t] || {};
|
|
190
|
+
const h = {
|
|
191
|
+
id: c,
|
|
192
|
+
type: `${e}`,
|
|
193
|
+
data: I,
|
|
194
|
+
view: b,
|
|
195
|
+
remote: I.remote,
|
|
196
|
+
sectionId: I.sectionId
|
|
197
|
+
};
|
|
198
|
+
return r[t][c] = h, r;
|
|
199
|
+
}, It = "ddk.dashboard.detail", Et = "ddk.dashboard.detail.view", lt = "ddk.ncui.dashboard.detail.config", ft = T({
|
|
200
|
+
basePluginType: "dashboard.detail",
|
|
201
|
+
contributionKey: "dashboardDetailDefinitions",
|
|
202
|
+
keys: {
|
|
203
|
+
EXTENSION_POINT: lt,
|
|
204
|
+
EXTENSION_POINT_DEF: It,
|
|
205
|
+
EXTENSION_POINT_VIEW: Et
|
|
206
|
+
}
|
|
207
|
+
}), bt = "ddk.dashboard.pump.detail", _t = "ddk.dashboard.pump.detail.view", Dt = "ddk.dashboard.pump.detail.config", Ot = T({
|
|
208
|
+
basePluginType: "dashboard.pump.detail",
|
|
209
|
+
contributionKey: "dashboardPumpDetailDefinitions",
|
|
210
|
+
keys: {
|
|
211
|
+
EXTENSION_POINT: Dt,
|
|
212
|
+
EXTENSION_POINT_DEF: bt,
|
|
213
|
+
EXTENSION_POINT_VIEW: _t
|
|
214
|
+
}
|
|
215
|
+
}), Nt = "ddk.ncui.dashboard.config", Tt = T({
|
|
216
|
+
basePluginType: "dashboard",
|
|
217
|
+
contributionKey: "dashboardDefinitions",
|
|
218
|
+
keys: {
|
|
219
|
+
EXTENSION_POINT: Nt
|
|
220
|
+
}
|
|
221
|
+
}), pt = "ddk.dashboard.summary", mt = "ddk.dashboard.summary.view", ht = "ddk.ncui.dashboard.summary.config", Pt = T({
|
|
222
|
+
basePluginType: "dashboard.summary",
|
|
223
|
+
contributionKey: "dashboardSummaryDefinitions",
|
|
224
|
+
keys: {
|
|
225
|
+
EXTENSION_POINT: ht,
|
|
226
|
+
EXTENSION_POINT_DEF: pt,
|
|
227
|
+
EXTENSION_POINT_VIEW: mt
|
|
228
|
+
}
|
|
229
|
+
}), wt = "ddk.nav.view", yt = "ddk.nav.view.view", St = "ddk.ncui.nav.view.config", gt = T({
|
|
230
|
+
basePluginType: "nav.view",
|
|
231
|
+
contributionKey: "navViewDefinitions",
|
|
232
|
+
keys: {
|
|
233
|
+
EXTENSION_POINT: St,
|
|
234
|
+
EXTENSION_POINT_DEF: wt,
|
|
235
|
+
EXTENSION_POINT_VIEW: yt
|
|
236
|
+
}
|
|
237
|
+
}), V = "ddk.settings", F = "ddk.settings.view", m = "ddk.settings.group", W = "ddk.ncui.settings.config", Rt = (i, e, t) => (n, s) => {
|
|
238
|
+
const o = t[s];
|
|
239
|
+
return n[m] = n[m] || {}, n[m][s] = {
|
|
240
|
+
id: s,
|
|
241
|
+
type: "settings.group",
|
|
242
|
+
data: t[s],
|
|
243
|
+
remote: o.remote,
|
|
244
|
+
sectionId: o.sectionId
|
|
245
|
+
}, Object.entries(e).filter(([, r]) => r.settingsGroup === s).map(([r]) => r).forEach((r) => {
|
|
246
|
+
const u = r, c = e[r], D = i[c.experienceId] || {};
|
|
247
|
+
n[m][s].data.settings = [
|
|
248
|
+
...n[m][s].data.settings,
|
|
249
|
+
u
|
|
250
|
+
], n[V] = n[V] || {}, n[V][u] = {
|
|
251
|
+
id: u,
|
|
252
|
+
type: "settings.definition",
|
|
253
|
+
data: c,
|
|
254
|
+
remote: c.remote,
|
|
255
|
+
sectionId: c.sectionId
|
|
256
|
+
}, D.id && (n[F] = n[F] || {}, n[F][u] = {
|
|
257
|
+
id: u,
|
|
258
|
+
type: "settings.view",
|
|
259
|
+
data: D,
|
|
260
|
+
remote: c.remote,
|
|
261
|
+
sectionId: c.sectionId
|
|
262
|
+
}), n[W] = n[W] || {};
|
|
263
|
+
const b = {
|
|
264
|
+
id: u,
|
|
265
|
+
type: "settings",
|
|
266
|
+
data: c,
|
|
267
|
+
view: D,
|
|
268
|
+
remote: c.remote,
|
|
269
|
+
sectionId: c.sectionId
|
|
270
|
+
};
|
|
271
|
+
n[W][u] = b;
|
|
272
|
+
}), n;
|
|
273
|
+
}, B = "ddk.setup", L = "ddk.setup.view", G = "ddk.ncui.setup.config", vt = (i, e) => (t, n) => {
|
|
274
|
+
const s = n, o = e[n], a = i[o.experienceId] || {};
|
|
275
|
+
t[B] = t[B] || {}, t[B][s] = {
|
|
276
|
+
id: s,
|
|
277
|
+
type: "setup.definition",
|
|
278
|
+
data: o,
|
|
279
|
+
remote: o.remote,
|
|
280
|
+
sectionId: o.sectionId
|
|
281
|
+
}, a.id && (t[L] = t[L] || {}, t[L][s] = {
|
|
282
|
+
id: s,
|
|
283
|
+
type: "setup.view",
|
|
284
|
+
data: a,
|
|
285
|
+
remote: o.remote,
|
|
286
|
+
sectionId: o.sectionId
|
|
287
|
+
}), t[G] = t[G] || {};
|
|
288
|
+
const u = {
|
|
289
|
+
id: s,
|
|
290
|
+
type: "setup",
|
|
291
|
+
data: o,
|
|
292
|
+
view: a,
|
|
293
|
+
remote: o.remote,
|
|
294
|
+
sectionId: o.sectionId
|
|
295
|
+
};
|
|
296
|
+
return t[G][s] = u, t;
|
|
297
|
+
}, xt = "ddk.trouble.action", At = "ddk.trouble.action.view", Ct = "ddk.ncui.trouble.action.config", Xt = T({
|
|
298
|
+
basePluginType: "trouble.action",
|
|
299
|
+
contributionKey: "troubleActionDefinitions",
|
|
300
|
+
keys: {
|
|
301
|
+
EXTENSION_POINT: Ct,
|
|
302
|
+
EXTENSION_POINT_DEF: xt,
|
|
303
|
+
EXTENSION_POINT_VIEW: At
|
|
304
|
+
}
|
|
305
|
+
}), H = "ddk.utilities", $ = "ddk.utilities.view", Y = "ddk.ncui.utils.config", Ut = (i, e) => (t, n) => {
|
|
306
|
+
const s = n, o = e[n], a = i[o.experienceId] || {};
|
|
307
|
+
t[H] = t[H] || {}, t[H][s] = {
|
|
308
|
+
id: s,
|
|
309
|
+
type: "utility.definition",
|
|
310
|
+
data: o,
|
|
311
|
+
remote: o.remote,
|
|
312
|
+
sectionId: o.sectionId
|
|
313
|
+
}, a.id && (t[$] = t[$] || {}, t[$][s] = {
|
|
314
|
+
id: s,
|
|
315
|
+
type: "utilities.view",
|
|
316
|
+
data: a,
|
|
317
|
+
remote: o.remote,
|
|
318
|
+
sectionId: o.sectionId
|
|
319
|
+
}), t[Y] = t[Y] || {};
|
|
320
|
+
const u = {
|
|
321
|
+
id: s,
|
|
322
|
+
type: "utility",
|
|
323
|
+
data: o,
|
|
324
|
+
view: a,
|
|
325
|
+
remote: o.remote,
|
|
326
|
+
sectionId: o.sectionId
|
|
327
|
+
};
|
|
328
|
+
return t[Y][s] = u, t;
|
|
329
|
+
};
|
|
330
|
+
async function kt(i) {
|
|
331
|
+
const e = i ?? window.KosPlugins.__dynamicRemotes;
|
|
332
|
+
if (window.KosPlugins.extensions) {
|
|
333
|
+
const o = window.KosPlugins.extensions;
|
|
334
|
+
return {
|
|
335
|
+
extensionPoints: o,
|
|
336
|
+
getExtensions: (a) => o[a] || [],
|
|
337
|
+
remotes: e,
|
|
338
|
+
extensions: window.KosPlugins.__extensions
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
const t = window.KosPlugins.__extensions ?? await Mt(e);
|
|
342
|
+
let n = {};
|
|
343
|
+
return t && (n = Object.keys(t).reduce((o, a) => {
|
|
344
|
+
const r = a;
|
|
345
|
+
return o[r] = o[r] || [], Object.keys(t[r]).forEach((u) => {
|
|
346
|
+
o[r].push(t[a][u]);
|
|
347
|
+
}), o;
|
|
348
|
+
}, n)), window.KosPlugins.extensions = n, { extensionPoints: n, getExtensions: (o) => n[o] || [], remotes: e, extensions: t };
|
|
349
|
+
}
|
|
350
|
+
const et = {
|
|
351
|
+
cuiDefinitions: {},
|
|
352
|
+
utilDefinitions: {},
|
|
353
|
+
setupDefinitions: {},
|
|
354
|
+
settingsGroupDefinitions: {},
|
|
355
|
+
settingsDefinitions: {},
|
|
356
|
+
dashboardSummaryDefinitions: {},
|
|
357
|
+
dashboardDetailDefinitions: {},
|
|
358
|
+
dashboardPumpDetailDefinitions: {},
|
|
359
|
+
dashboardDefinitions: {},
|
|
360
|
+
navViewDefinitions: {},
|
|
361
|
+
troubleActionDefinitions: {},
|
|
362
|
+
experiences: {}
|
|
363
|
+
};
|
|
364
|
+
function Kt(i) {
|
|
365
|
+
return i ? Object.keys(i).reduce(
|
|
366
|
+
ut(i),
|
|
367
|
+
et
|
|
368
|
+
) : et;
|
|
369
|
+
}
|
|
370
|
+
async function Mt(i) {
|
|
371
|
+
if (i) {
|
|
372
|
+
const e = Kt(i), {
|
|
373
|
+
cuiDefinitions: t,
|
|
374
|
+
utilDefinitions: n,
|
|
375
|
+
setupDefinitions: s,
|
|
376
|
+
settingsDefinitions: o,
|
|
377
|
+
settingsGroupDefinitions: a,
|
|
378
|
+
troubleActionDefinitions: r,
|
|
379
|
+
dashboardDetailDefinitions: u,
|
|
380
|
+
dashboardSummaryDefinitions: c,
|
|
381
|
+
dashboardPumpDetailDefinitions: D,
|
|
382
|
+
dashboardDefinitions: I,
|
|
383
|
+
navViewDefinitions: b,
|
|
384
|
+
experiences: l
|
|
385
|
+
} = e, h = Object.keys(t).reduce(
|
|
386
|
+
ct(l, t),
|
|
387
|
+
{}
|
|
388
|
+
), P = Object.keys(n).reduce(
|
|
389
|
+
Ut(l, n),
|
|
390
|
+
h
|
|
391
|
+
), w = Object.keys(s).reduce(
|
|
392
|
+
vt(l, s),
|
|
393
|
+
P
|
|
394
|
+
), y = Object.keys(
|
|
395
|
+
r
|
|
396
|
+
).reduce(
|
|
397
|
+
Xt(l, e),
|
|
398
|
+
w
|
|
399
|
+
), S = Object.keys(b).reduce(
|
|
400
|
+
gt(l, e),
|
|
401
|
+
y
|
|
402
|
+
), g = Object.keys(
|
|
403
|
+
c
|
|
404
|
+
).reduce(
|
|
405
|
+
Pt(l, e),
|
|
406
|
+
S
|
|
407
|
+
), R = Object.keys(
|
|
408
|
+
u
|
|
409
|
+
).reduce(
|
|
410
|
+
ft(l, e),
|
|
411
|
+
g
|
|
412
|
+
), v = Object.keys(
|
|
413
|
+
D
|
|
414
|
+
).reduce(
|
|
415
|
+
Ot(l, e),
|
|
416
|
+
R
|
|
417
|
+
), x = Object.keys(I).reduce(
|
|
418
|
+
Tt(l, e),
|
|
419
|
+
v
|
|
420
|
+
), A = Object.keys(a).reduce(
|
|
421
|
+
Rt(
|
|
422
|
+
l,
|
|
423
|
+
o,
|
|
424
|
+
a
|
|
425
|
+
),
|
|
426
|
+
x
|
|
427
|
+
);
|
|
428
|
+
for (const O of Object.values(i))
|
|
429
|
+
if (O.init) {
|
|
430
|
+
const f = await it.loadRemoteModule(
|
|
431
|
+
O.remote,
|
|
432
|
+
"./InitPlugin"
|
|
433
|
+
);
|
|
434
|
+
if (f.default) {
|
|
435
|
+
const d = new f.default();
|
|
436
|
+
d == null || d.register();
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
const p = Object.keys(i).reduce((O, f) => {
|
|
440
|
+
var J;
|
|
441
|
+
const d = (J = i[f].contributes) == null ? void 0 : J.views, N = Object.keys(d).reduce(
|
|
442
|
+
(E, Q) => {
|
|
443
|
+
const nt = d[Q], X = Q;
|
|
444
|
+
return nt.forEach((U) => {
|
|
445
|
+
const Z = U.id;
|
|
446
|
+
E[X] = E[X] || {}, E[X][Z] = {
|
|
447
|
+
id: Z,
|
|
448
|
+
type: "view",
|
|
449
|
+
component: U.component,
|
|
450
|
+
remote: i[f].remote,
|
|
451
|
+
sectionId: f,
|
|
452
|
+
data: U
|
|
453
|
+
};
|
|
454
|
+
}), E;
|
|
455
|
+
},
|
|
456
|
+
O
|
|
457
|
+
);
|
|
458
|
+
return i[f].extensions.forEach((E) => {
|
|
459
|
+
N[E.extensionPointId] = N[E.extensionPointId] || {}, N[E.extensionPointId][E.id] = {
|
|
460
|
+
id: E.id,
|
|
461
|
+
type: E.type,
|
|
462
|
+
component: E.component,
|
|
463
|
+
remote: i[f].remote,
|
|
464
|
+
sectionId: f,
|
|
465
|
+
data: E
|
|
466
|
+
};
|
|
467
|
+
}), N;
|
|
468
|
+
}, A);
|
|
469
|
+
return window.KosPlugins = window.KosPlugins || {}, window.KosPlugins.__extensions = p, p;
|
|
470
|
+
}
|
|
471
|
+
return window.KosPlugins = window.KosPlugins || {}, {};
|
|
472
|
+
}
|
|
473
|
+
async function Vt(i) {
|
|
474
|
+
const { getExtensions: e } = await kt();
|
|
475
|
+
return e(i);
|
|
476
|
+
}
|
|
477
|
+
export {
|
|
478
|
+
Vt as A,
|
|
479
|
+
V as B,
|
|
480
|
+
F as C,
|
|
481
|
+
m as D,
|
|
482
|
+
K as E,
|
|
483
|
+
W as F,
|
|
484
|
+
Rt as G,
|
|
485
|
+
B as H,
|
|
486
|
+
L as I,
|
|
487
|
+
G as J,
|
|
488
|
+
vt as K,
|
|
489
|
+
xt as L,
|
|
490
|
+
At as M,
|
|
491
|
+
Ct as N,
|
|
492
|
+
Xt as O,
|
|
493
|
+
H as P,
|
|
494
|
+
$ as Q,
|
|
495
|
+
Y as R,
|
|
496
|
+
Ut as S,
|
|
497
|
+
M as a,
|
|
498
|
+
j as b,
|
|
499
|
+
ut as c,
|
|
500
|
+
ct as d,
|
|
501
|
+
It as e,
|
|
502
|
+
Et as f,
|
|
503
|
+
lt as g,
|
|
504
|
+
ft as h,
|
|
505
|
+
kt as i,
|
|
506
|
+
bt as j,
|
|
507
|
+
_t as k,
|
|
508
|
+
Dt as l,
|
|
509
|
+
it as m,
|
|
510
|
+
Ot as n,
|
|
511
|
+
Nt as o,
|
|
512
|
+
Tt as p,
|
|
513
|
+
pt as q,
|
|
514
|
+
mt as r,
|
|
515
|
+
ht as s,
|
|
516
|
+
Pt as t,
|
|
517
|
+
wt as u,
|
|
518
|
+
yt as v,
|
|
519
|
+
St as w,
|
|
520
|
+
gt as x,
|
|
521
|
+
Kt as y,
|
|
522
|
+
Mt as z
|
|
523
|
+
};
|
|
524
|
+
//# sourceMappingURL=plugin-extension-manager-7xDx0VSt.js.map
|