@dssp/dkpi 1.0.0-y.0 → 1.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/KPI-STATISTICS-SERVICE.md +233 -0
- package/_index.html +4 -9
- package/assets/helps/index.md +1 -1
- package/assets/images/project-image.png +0 -0
- package/assets/manifest.json +2 -2
- package/config/config.development.js +2 -1
- package/config/config.production.js +2 -1
- package/kpi-module-service-tests.md +1286 -0
- package/kpi-module-test-report.md +676 -0
- package/kpi-module-unit-test-detailed-report.md +925 -0
- package/kpi-module-unit-tests-detailed.md +1452 -0
- package/openapi/unstable.yaml +2 -2
- package/package.json +58 -54
- package/recalculate-batch.sh +64 -0
- package/recalculate-projects-range.sh +98 -0
- package/schema.graphql +1159 -55
- package/things-factory.config.js +6 -1
- package/translations/en.json +5 -1
- package/translations/ko.json +5 -1
- package/views/auth-page.html +4 -5
- package/views/public/home.html +5 -6
- package/dist-client/bootstrap.d.ts +0 -8
- package/dist-client/bootstrap.js +0 -257
- package/dist-client/bootstrap.js.map +0 -1
- package/dist-client/components/kpi-single-boxplot-chart.d.ts +0 -24
- package/dist-client/components/kpi-single-boxplot-chart.js +0 -317
- package/dist-client/components/kpi-single-boxplot-chart.js.map +0 -1
- package/dist-client/components/sv-pagenation-control.d.ts +0 -18
- package/dist-client/components/sv-pagenation-control.js +0 -142
- package/dist-client/components/sv-pagenation-control.js.map +0 -1
- package/dist-client/entries/public/home.d.ts +0 -8
- package/dist-client/entries/public/home.js +0 -97
- package/dist-client/entries/public/home.js.map +0 -1
- package/dist-client/icons/menu-icons.d.ts +0 -11
- package/dist-client/icons/menu-icons.js +0 -126
- package/dist-client/icons/menu-icons.js.map +0 -1
- package/dist-client/index.d.ts +0 -0
- package/dist-client/index.js +0 -2
- package/dist-client/index.js.map +0 -1
- package/dist-client/menu.d.ts +0 -23
- package/dist-client/menu.js +0 -59
- package/dist-client/menu.js.map +0 -1
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-editor-page.d.ts +0 -58
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-editor-page.js +0 -731
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-editor-page.js.map +0 -1
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-importer.d.ts +0 -23
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-importer.js +0 -76
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-importer.js.map +0 -1
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-list-page.d.ts +0 -69
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-list-page.js +0 -385
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-list-page.js.map +0 -1
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.d.ts +0 -12
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.js +0 -174
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.js.map +0 -1
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.d.ts +0 -41
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.js +0 -191
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.js.map +0 -1
- package/dist-client/pages/kpi-value/kpi-value-importer.d.ts +0 -23
- package/dist-client/pages/kpi-value/kpi-value-importer.js +0 -93
- package/dist-client/pages/kpi-value/kpi-value-importer.js.map +0 -1
- package/dist-client/pages/kpi-value/kpi-value-list-page.d.ts +0 -72
- package/dist-client/pages/kpi-value/kpi-value-list-page.js +0 -465
- package/dist-client/pages/kpi-value/kpi-value-list-page.js.map +0 -1
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.d.ts +0 -13
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.js +0 -248
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.js.map +0 -1
- package/dist-client/pages/project-complete-tabs/pc-tab2-rating.d.ts +0 -10
- package/dist-client/pages/project-complete-tabs/pc-tab2-rating.js +0 -229
- package/dist-client/pages/project-complete-tabs/pc-tab2-rating.js.map +0 -1
- package/dist-client/pages/project-complete-tabs/pc-tab3-upload.d.ts +0 -12
- package/dist-client/pages/project-complete-tabs/pc-tab3-upload.js +0 -213
- package/dist-client/pages/project-complete-tabs/pc-tab3-upload.js.map +0 -1
- package/dist-client/pages/sv-project-complete.d.ts +0 -22
- package/dist-client/pages/sv-project-complete.js +0 -213
- package/dist-client/pages/sv-project-complete.js.map +0 -1
- package/dist-client/pages/sv-project-completed-list.d.ts +0 -24
- package/dist-client/pages/sv-project-completed-list.js +0 -357
- package/dist-client/pages/sv-project-completed-list.js.map +0 -1
- package/dist-client/pages/sv-project-detail.d.ts +0 -13
- package/dist-client/pages/sv-project-detail.js +0 -494
- package/dist-client/pages/sv-project-detail.js.map +0 -1
- package/dist-client/pages/sv-project-list.d.ts +0 -157
- package/dist-client/pages/sv-project-list.js +0 -431
- package/dist-client/pages/sv-project-list.js.map +0 -1
- package/dist-client/pages/sv-user-management.d.ts +0 -5
- package/dist-client/pages/sv-user-management.js +0 -219
- package/dist-client/pages/sv-user-management.js.map +0 -1
- package/dist-client/route.d.ts +0 -1
- package/dist-client/route.js +0 -31
- package/dist-client/route.js.map +0 -1
- package/dist-client/shared/complete-api.d.ts +0 -5
- package/dist-client/shared/complete-api.js +0 -125
- package/dist-client/shared/complete-api.js.map +0 -1
- package/dist-client/shared/func.d.ts +0 -2
- package/dist-client/shared/func.js +0 -22
- package/dist-client/shared/func.js.map +0 -1
- package/dist-client/themes/dark.css +0 -51
- package/dist-client/themes/light.css +0 -51
- package/dist-client/tsconfig.tsbuildinfo +0 -1
- package/dist-client/viewparts/menu-tools.d.ts +0 -54
- package/dist-client/viewparts/menu-tools.js +0 -503
- package/dist-client/viewparts/menu-tools.js.map +0 -1
- package/dist-client/viewparts/user-circle.d.ts +0 -5
- package/dist-client/viewparts/user-circle.js +0 -26
- package/dist-client/viewparts/user-circle.js.map +0 -1
- package/dist-server/index.d.ts +0 -2
- package/dist-server/index.js +0 -6
- package/dist-server/index.js.map +0 -1
- package/dist-server/migrations/index.d.ts +0 -1
- package/dist-server/migrations/index.js +0 -12
- package/dist-server/migrations/index.js.map +0 -1
- package/dist-server/scripts/calculate-kpi-scores.d.ts +0 -10
- package/dist-server/scripts/calculate-kpi-scores.js +0 -271
- package/dist-server/scripts/calculate-kpi-scores.js.map +0 -1
- package/dist-server/scripts/load-grade-data-migration.d.ts +0 -10
- package/dist-server/scripts/load-grade-data-migration.js +0 -194
- package/dist-server/scripts/load-grade-data-migration.js.map +0 -1
- package/dist-server/scripts/propagate-parent-kpi-values.d.ts +0 -10
- package/dist-server/scripts/propagate-parent-kpi-values.js +0 -440
- package/dist-server/scripts/propagate-parent-kpi-values.js.map +0 -1
- package/dist-server/service/index.d.ts +0 -6
- package/dist-server/service/index.js +0 -21
- package/dist-server/service/index.js.map +0 -1
- package/dist-server/service/kpi-metric-value/index.d.ts +0 -4
- package/dist-server/service/kpi-metric-value/index.js +0 -8
- package/dist-server/service/kpi-metric-value/index.js.map +0 -1
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.d.ts +0 -7
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.js +0 -112
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.js.map +0 -1
- package/dist-server/service/kpi-metric-value/kpi-metric-value-query.d.ts +0 -7
- package/dist-server/service/kpi-metric-value/kpi-metric-value-query.js +0 -47
- package/dist-server/service/kpi-metric-value/kpi-metric-value-query.js.map +0 -1
- package/dist-server/service/kpi-value/index.d.ts +0 -3
- package/dist-server/service/kpi-value/index.js +0 -7
- package/dist-server/service/kpi-value/index.js.map +0 -1
- package/dist-server/service/kpi-value/kpi-value-query.d.ts +0 -7
- package/dist-server/service/kpi-value/kpi-value-query.js +0 -47
- package/dist-server/service/kpi-value/kpi-value-query.js.map +0 -1
- package/dist-server/tsconfig.tsbuildinfo +0 -1
package/things-factory.config.js
CHANGED
|
@@ -8,7 +8,12 @@ export default {
|
|
|
8
8
|
{ tagname: 'sv-project-list', page: 'project-list' },
|
|
9
9
|
{ tagname: 'sv-project-completed-list', page: 'project-completed-list' },
|
|
10
10
|
{ tagname: 'sv-project-detail', page: 'project-detail' },
|
|
11
|
-
{ tagname: 'sv-project-complete', page: 'project-complete' }
|
|
11
|
+
{ tagname: 'sv-project-complete', page: 'project-complete' },
|
|
12
|
+
{ tagname: 'sv-project-update', page: 'project-update' },
|
|
13
|
+
{ tagname: 'dssp-kpi-overview', page: 'kpi-overview' },
|
|
14
|
+
{ tagname: 'kpi-system-guide', page: 'kpi-system-guide' },
|
|
15
|
+
{ tagname: 'dssp-kpi-list-page', page: 'kpi-list' },
|
|
16
|
+
{ tagname: 'dssp-kpi-list-page', page: 'kpi-admin' }
|
|
12
17
|
],
|
|
13
18
|
bootstrap
|
|
14
19
|
}
|
package/translations/en.json
CHANGED
package/translations/ko.json
CHANGED
package/views/auth-page.html
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
|
-
<title>Digital KPI
|
|
5
|
+
<title>Digital platform-based KPI Navigator</title>
|
|
6
6
|
<meta name="generator" content="Things Factory Starter Kit" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
|
8
8
|
<meta name="description" content="Build Smarter with Every Metric" />
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
|
|
22
22
|
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
|
|
23
23
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
24
|
-
<meta name="application-name" content="Digital KPI
|
|
24
|
+
<meta name="application-name" content="Digital platform-based KPI Navigator" />
|
|
25
25
|
<meta name="application-description" content="Build Smarter with Every Metric" />
|
|
26
26
|
<meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
|
|
27
27
|
<link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<!-- Add to homescreen for Safari on iOS -->
|
|
30
30
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
31
31
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
32
|
-
<meta name="apple-mobile-web-app-title" content="Digital KPI
|
|
32
|
+
<meta name="apple-mobile-web-app-title" content="Digital platform-based KPI Navigator" />
|
|
33
33
|
|
|
34
34
|
<!-- Homescreen icons -->
|
|
35
35
|
<link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<meta name="twitter:card" content="summary" />
|
|
48
48
|
<meta name="twitter:site" content="@username" />
|
|
49
49
|
<meta property="og:type" content="website" />
|
|
50
|
-
<meta property="og:site_name" content="Digital KPI
|
|
50
|
+
<meta property="og:site_name" content="Digital platform-based KPI Navigator, Build Smarter with Every Metric" />
|
|
51
51
|
<meta property="og:image" content="/assets/manifest/image-metaog.png" />
|
|
52
52
|
|
|
53
53
|
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
</noscript>
|
|
70
70
|
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
|
|
71
71
|
<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
|
|
72
|
-
<script src="/node_modules/web-animations-js/web-animations-next.min.js"></script>
|
|
73
72
|
<!-- Built with love using PWA Starter Kit -->
|
|
74
73
|
|
|
75
74
|
<script src="<%- elementScript %>"></script>
|
package/views/public/home.html
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="google" content="notranslate" />
|
|
6
|
-
<title>Digital KPI
|
|
6
|
+
<title>Digital platform-based KPI Navigator</title>
|
|
7
7
|
<meta name="generator" content="Things Factory Starter Kit" />
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
|
9
|
-
<meta name="description" content="Smart Digital Digital KPI
|
|
9
|
+
<meta name="description" content="Smart Digital Digital platform-based KPI Navigator" />
|
|
10
10
|
|
|
11
11
|
<base href="/" />
|
|
12
12
|
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
|
|
21
21
|
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
|
|
22
22
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
23
|
-
<meta name="application-name" content="Digital KPI
|
|
24
|
-
<meta name="application-description" content="Smart Digital Digital KPI
|
|
23
|
+
<meta name="application-name" content="Digital platform-based KPI Navigator" />
|
|
24
|
+
<meta name="application-description" content="Smart Digital Digital platform-based KPI Navigator" />
|
|
25
25
|
<meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
|
|
26
26
|
<link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
|
|
27
27
|
|
|
28
28
|
<!-- Add to homescreen for Safari on iOS -->
|
|
29
29
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
30
30
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
31
|
-
<meta name="apple-mobile-web-app-title" content="Digital KPI
|
|
31
|
+
<meta name="apple-mobile-web-app-title" content="Digital platform-based KPI Navigator" />
|
|
32
32
|
|
|
33
33
|
<!-- Homescreen icons -->
|
|
34
34
|
<link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
<noscript> Please enable JavaScript to view this website. </noscript>
|
|
64
64
|
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
|
|
65
65
|
<script src="/node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
|
|
66
|
-
<script src="/node_modules/web-animations-js/web-animations-next.min.js"></script>
|
|
67
66
|
<!-- Built with love using PWA Starter Kit -->
|
|
68
67
|
|
|
69
68
|
<script src="/public/home.js"></script>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@things-factory/notification/dist-client';
|
|
2
|
-
import '@things-factory/setting-ui/dist-client';
|
|
3
|
-
import '@material/web/icon/icon.js';
|
|
4
|
-
import '@operato/i18n/ox-i18n.js';
|
|
5
|
-
import '@things-factory/notification';
|
|
6
|
-
import './viewparts/user-circle';
|
|
7
|
-
import './viewparts/menu-tools';
|
|
8
|
-
export default function bootstrap(): Promise<void>;
|
package/dist-client/bootstrap.js
DELETED
|
@@ -1,257 +0,0 @@
|
|
|
1
|
-
import '@things-factory/notification/dist-client'; /* for notification-setting-let */
|
|
2
|
-
import '@things-factory/setting-ui/dist-client'; /* for theme-mode-setting-let */
|
|
3
|
-
import '@material/web/icon/icon.js';
|
|
4
|
-
import '@operato/i18n/ox-i18n.js';
|
|
5
|
-
import '@things-factory/notification';
|
|
6
|
-
import './viewparts/user-circle';
|
|
7
|
-
import './viewparts/menu-tools';
|
|
8
|
-
import { html } from 'lit-html';
|
|
9
|
-
import { registerDefaultGroups } from '@operato/board';
|
|
10
|
-
import { navigate, store } from '@operato/shell';
|
|
11
|
-
import { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION, VIEWPART_LEVEL } from '@operato/layout';
|
|
12
|
-
import { APPEND_APP_TOOL } from '@things-factory/apptool-base/client';
|
|
13
|
-
import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client';
|
|
14
|
-
import { setupContextUIPart } from '@things-factory/context-ui/dist-client';
|
|
15
|
-
import { hasPrivilege } from '@things-factory/auth-base/dist-client';
|
|
16
|
-
import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client';
|
|
17
|
-
import { ADD_MORENDA } from '@things-factory/more-base/client';
|
|
18
|
-
import { ADD_SETTING } from '@things-factory/setting-base/dist-client';
|
|
19
|
-
console.log(`%c
|
|
20
|
-
▄▄▄ ▄ ▄▄ ▄▄▄ ▄
|
|
21
|
-
▓ ▓ ▓ ▓ ▓ ▓ ▀
|
|
22
|
-
▓ ▓ ▓▓ ▓▀▀ ▓
|
|
23
|
-
▓ ▓ ▓ ▓ ▓ ▓
|
|
24
|
-
▀▀▀ ▀ ▀▀ ▀ ▀
|
|
25
|
-
`, 'background: #222; color: #bada55');
|
|
26
|
-
export default async function bootstrap() {
|
|
27
|
-
var _a;
|
|
28
|
-
/* set board-modeller group and default templates */
|
|
29
|
-
registerDefaultGroups();
|
|
30
|
-
await setupAppToolPart({
|
|
31
|
-
toolbar: true,
|
|
32
|
-
busybar: true,
|
|
33
|
-
mdibar: false
|
|
34
|
-
});
|
|
35
|
-
await setupContextUIPart({
|
|
36
|
-
titlebar: 'header',
|
|
37
|
-
contextToolbar: 'page-footer'
|
|
38
|
-
});
|
|
39
|
-
/* append top-menu to layout */
|
|
40
|
-
var state = store.getState();
|
|
41
|
-
var width = ((_a = state.layout) === null || _a === void 0 ? void 0 : _a.width) || 'WIDE';
|
|
42
|
-
appendViewpart({
|
|
43
|
-
name: 'dkpi-topmenu',
|
|
44
|
-
viewpart: {
|
|
45
|
-
show: true,
|
|
46
|
-
template: html ` <menu-tools></menu-tools> `
|
|
47
|
-
},
|
|
48
|
-
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
|
|
49
|
-
});
|
|
50
|
-
store.subscribe(async () => {
|
|
51
|
-
var state = store.getState();
|
|
52
|
-
if (state.layout.width == width) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
width = state.layout.width;
|
|
56
|
-
updateViewpart('dkpi-topmenu', {
|
|
57
|
-
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,
|
|
58
|
-
level: VIEWPART_LEVEL.TOPMOST
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
/* setting app-tools */
|
|
62
|
-
store.dispatch({
|
|
63
|
-
type: APPEND_APP_TOOL,
|
|
64
|
-
tool: {
|
|
65
|
-
name: 'app-brand',
|
|
66
|
-
template: html ` <span style="font-size: 1.2em;">KPI</span> `,
|
|
67
|
-
position: TOOL_POSITION.FRONT
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
store.dispatch({
|
|
71
|
-
type: APPEND_APP_TOOL,
|
|
72
|
-
tool: {
|
|
73
|
-
name: 'notification-badge',
|
|
74
|
-
template: html `
|
|
75
|
-
<notification-badge
|
|
76
|
-
@click=${e => {
|
|
77
|
-
toggleOverlay('notification', {
|
|
78
|
-
backdrop: true
|
|
79
|
-
});
|
|
80
|
-
}}
|
|
81
|
-
>
|
|
82
|
-
</notification-badge>
|
|
83
|
-
`,
|
|
84
|
-
position: TOOL_POSITION.REAR
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
appendViewpart({
|
|
88
|
-
name: 'notification',
|
|
89
|
-
viewpart: {
|
|
90
|
-
show: false,
|
|
91
|
-
hovering: 'edge',
|
|
92
|
-
template: html ` <notification-list style="min-width: 300px;"></notification-list> `
|
|
93
|
-
},
|
|
94
|
-
position: VIEWPART_POSITION.ASIDEBAR
|
|
95
|
-
});
|
|
96
|
-
/* add setting morenda */
|
|
97
|
-
store.dispatch({
|
|
98
|
-
type: ADD_MORENDA,
|
|
99
|
-
morenda: {
|
|
100
|
-
icon: html ` <md-icon>settings</md-icon> `,
|
|
101
|
-
name: html ` <ox-i18n msgid="label.setting"></ox-i18n> `,
|
|
102
|
-
action: () => {
|
|
103
|
-
navigate('setting');
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
/* add env-var morenda */
|
|
108
|
-
if (await hasPrivilege({ privilege: 'mutation', category: 'env-var', domainOwnerGranted: true, superUserGranted: true })) {
|
|
109
|
-
store.dispatch({
|
|
110
|
-
type: ADD_MORENDA,
|
|
111
|
-
morenda: {
|
|
112
|
-
icon: html ` <md-icon>variables</md-icon> `,
|
|
113
|
-
name: html ` <ox-i18n msgid="label.env-var"></ox-i18n> `,
|
|
114
|
-
action: () => {
|
|
115
|
-
navigate('env-vars');
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
/* set auth management menus into more-panel */
|
|
121
|
-
setAuthManagementMenus();
|
|
122
|
-
if (await hasPrivilege({
|
|
123
|
-
privilege: 'mutation',
|
|
124
|
-
category: 'user',
|
|
125
|
-
domainOwnerGranted: true,
|
|
126
|
-
superUserGranted: true
|
|
127
|
-
})) {
|
|
128
|
-
store.dispatch({
|
|
129
|
-
type: ADD_MORENDA,
|
|
130
|
-
morenda: {
|
|
131
|
-
icon: html ` <md-icon>vpn_key</md-icon> `,
|
|
132
|
-
name: html ` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
|
|
133
|
-
action: () => {
|
|
134
|
-
navigate('oauth2-clients');
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if (await hasPrivilege({
|
|
140
|
-
privilege: 'mutation',
|
|
141
|
-
category: 'board',
|
|
142
|
-
domainOwnerGranted: true,
|
|
143
|
-
superUserGranted: true
|
|
144
|
-
})) {
|
|
145
|
-
store.dispatch({
|
|
146
|
-
type: ADD_MORENDA,
|
|
147
|
-
morenda: {
|
|
148
|
-
icon: html ` <md-icon>font_download</md-icon> `,
|
|
149
|
-
name: html ` <ox-i18n msgid="menu.fonts"></ox-i18n> `,
|
|
150
|
-
action: () => {
|
|
151
|
-
navigate('font-list');
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
store.dispatch({
|
|
156
|
-
type: ADD_MORENDA,
|
|
157
|
-
morenda: {
|
|
158
|
-
icon: html ` <md-icon>dvr</md-icon> `,
|
|
159
|
-
name: html ` <ox-i18n msgid="menu.board-list"></ox-i18n> `,
|
|
160
|
-
action: () => {
|
|
161
|
-
navigate('board-list');
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
store.dispatch({
|
|
166
|
-
type: ADD_MORENDA,
|
|
167
|
-
morenda: {
|
|
168
|
-
icon: html ` <md-icon>dashboard</md-icon> `,
|
|
169
|
-
name: html ` <ox-i18n msgid="menu.board-template"></ox-i18n> `,
|
|
170
|
-
action: () => {
|
|
171
|
-
navigate('board-template-list');
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
if (await hasPrivilege({
|
|
177
|
-
privilege: 'query',
|
|
178
|
-
category: 'attachment',
|
|
179
|
-
domainOwnerGranted: true,
|
|
180
|
-
superUserGranted: true
|
|
181
|
-
})) {
|
|
182
|
-
store.dispatch({
|
|
183
|
-
type: ADD_MORENDA,
|
|
184
|
-
morenda: {
|
|
185
|
-
icon: html ` <md-icon>attachment</md-icon> `,
|
|
186
|
-
name: html ` <ox-i18n msgid="menu.attachments"></ox-i18n> `,
|
|
187
|
-
action: () => {
|
|
188
|
-
navigate('attachment-list');
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
if (await hasPrivilege({
|
|
194
|
-
privilege: 'mutation',
|
|
195
|
-
category: 'scenario',
|
|
196
|
-
domainOwnerGranted: true,
|
|
197
|
-
superUserGranted: true
|
|
198
|
-
})) {
|
|
199
|
-
store.dispatch({
|
|
200
|
-
type: ADD_MORENDA,
|
|
201
|
-
morenda: {
|
|
202
|
-
icon: html ` <md-icon>device_hub</md-icon> `,
|
|
203
|
-
name: html ` <ox-i18n msgid="text.connection"></ox-i18n> `,
|
|
204
|
-
action: () => {
|
|
205
|
-
navigate('connection');
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
});
|
|
209
|
-
store.dispatch({
|
|
210
|
-
type: ADD_MORENDA,
|
|
211
|
-
morenda: {
|
|
212
|
-
icon: html ` <md-icon>format_list_numbered</md-icon> `,
|
|
213
|
-
name: html ` <ox-i18n msgid="text.scenario"></ox-i18n> `,
|
|
214
|
-
action: () => {
|
|
215
|
-
navigate('scenario');
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
store.dispatch({
|
|
220
|
-
type: ADD_MORENDA,
|
|
221
|
-
morenda: {
|
|
222
|
-
icon: html ` <md-icon>hub</md-icon> `,
|
|
223
|
-
name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n> (beta)`,
|
|
224
|
-
action: () => {
|
|
225
|
-
navigate('integration-analysis');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {
|
|
231
|
-
store.dispatch({
|
|
232
|
-
type: ADD_MORENDA,
|
|
233
|
-
morenda: {
|
|
234
|
-
icon: html ` <md-icon>app_registration</md-icon> `,
|
|
235
|
-
name: html ` <ox-i18n msgid="title.state-register"></ox-i18n> `,
|
|
236
|
-
action: () => {
|
|
237
|
-
navigate('state-register-page');
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
store.dispatch({
|
|
243
|
-
type: ADD_SETTING,
|
|
244
|
-
setting: {
|
|
245
|
-
seq: 10,
|
|
246
|
-
template: html ` <theme-mode-setting-let></theme-mode-setting-let> `
|
|
247
|
-
}
|
|
248
|
-
});
|
|
249
|
-
store.dispatch({
|
|
250
|
-
type: ADD_SETTING,
|
|
251
|
-
setting: {
|
|
252
|
-
seq: 20,
|
|
253
|
-
template: html ` <notification-setting-let></notification-setting-let> `
|
|
254
|
-
}
|
|
255
|
-
});
|
|
256
|
-
}
|
|
257
|
-
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,0CAA0C,CAAA,CAAC,kCAAkC;AACpF,OAAO,wCAAwC,CAAA,CAAC,gCAAgC;AAEhF,OAAO,4BAA4B,CAAA;AACnC,OAAO,0BAA0B,CAAA;AAC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,CAAC;IAED,IAAI,MAAM,YAAY,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QACxG,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,IAAI,CAAA,uCAAuC;gBACjD,IAAI,EAAE,IAAI,CAAA,oDAAoD;gBAC9D,MAAM,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,qBAAqB,CAAC,CAAA;gBACjC,CAAC;aACF;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,qDAAqD;SACpE;KACF,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/notification/dist-client' /* for notification-setting-let */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\n\nimport '@material/web/icon/icon.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/notification'\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit-html'\n\nimport { registerDefaultGroups } from '@operato/board'\nimport { navigate, store } from '@operato/shell'\n\nimport { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION, VIEWPART_LEVEL } from '@operato/layout'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\n\nconsole.log(\n `%c\n▄▄▄ ▄ ▄▄ ▄▄▄ ▄\n▓ ▓ ▓ ▓ ▓ ▓ ▀\n▓ ▓ ▓▓ ▓▀▀ ▓\n▓ ▓ ▓ ▓ ▓ ▓\n▀▀▀ ▀ ▀▀ ▀ ▀\n`,\n 'background: #222; color: #bada55'\n)\n\nexport default async function bootstrap() {\n /* set board-modeller group and default templates */\n registerDefaultGroups()\n\n await setupAppToolPart({\n toolbar: true,\n busybar: true,\n mdibar: false\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n appendViewpart({\n name: 'dkpi-topmenu',\n viewpart: {\n show: true,\n template: html` <menu-tools></menu-tools> `\n },\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n\n store.subscribe(async () => {\n var state = store.getState() as any\n\n if (state.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n updateViewpart('dkpi-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">KPI</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'notification-badge',\n template: html`\n <notification-badge\n @click=${e => {\n toggleOverlay('notification', {\n backdrop: true\n })\n }}\n >\n </notification-badge>\n `,\n position: TOOL_POSITION.REAR\n }\n })\n\n appendViewpart({\n name: 'notification',\n viewpart: {\n show: false,\n hovering: 'edge',\n template: html` <notification-list style=\"min-width: 300px;\"></notification-list> `\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n /* add env-var morenda */\n if (await hasPrivilege({ privilege: 'mutation', category: 'env-var', domainOwnerGranted: true, superUserGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>variables</md-icon> `,\n name: html` <ox-i18n msgid=\"label.env-var\"></ox-i18n> `,\n action: () => {\n navigate('env-vars')\n }\n }\n })\n }\n\n /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'user',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>vpn_key</md-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'board',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>font_download</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.fonts\"></ox-i18n> `,\n action: () => {\n navigate('font-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dvr</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-list\"></ox-i18n> `,\n action: () => {\n navigate('board-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dashboard</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n action: () => {\n navigate('board-template-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'query',\n category: 'attachment',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>attachment</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.attachments\"></ox-i18n> `,\n action: () => {\n navigate('attachment-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'scenario',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>device_hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.connection\"></ox-i18n> `,\n action: () => {\n navigate('connection')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>format_list_numbered</md-icon> `,\n name: html` <ox-i18n msgid=\"text.scenario\"></ox-i18n> `,\n action: () => {\n navigate('scenario')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n> (beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>app_registration</md-icon> `,\n name: html` <ox-i18n msgid=\"title.state-register\"></ox-i18n> `,\n action: () => {\n navigate('state-register-page')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 10,\n template: html` <theme-mode-setting-let></theme-mode-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <notification-setting-let></notification-setting-let> `\n }\n })\n}\n"]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export declare class KpiSingleBoxplotChart extends LitElement {
|
|
3
|
-
data: any;
|
|
4
|
-
minKey: string;
|
|
5
|
-
maxKey: string;
|
|
6
|
-
meanKey: string;
|
|
7
|
-
medianKey: string;
|
|
8
|
-
q1Key: string;
|
|
9
|
-
q3Key: string;
|
|
10
|
-
valueKey: string;
|
|
11
|
-
color: string;
|
|
12
|
-
vertical: boolean;
|
|
13
|
-
static styles: import("lit").CSSResult;
|
|
14
|
-
private chartWidth;
|
|
15
|
-
private chartHeight;
|
|
16
|
-
private resizeObserver?;
|
|
17
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
18
|
-
connectedCallback(): void;
|
|
19
|
-
disconnectedCallback(): void;
|
|
20
|
-
updated(): void;
|
|
21
|
-
private drawSingleBoxplot;
|
|
22
|
-
private drawVerticalBoxplot;
|
|
23
|
-
private drawHorizontalBoxplot;
|
|
24
|
-
}
|