@things-factory/operato-board 7.0.0-y.0 → 7.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.
Files changed (37) hide show
  1. package/_index.html +7 -3
  2. package/config/config.development.js +23 -0
  3. package/config/config.production.js +23 -1
  4. package/dist-client/bootstrap.d.ts +1 -1
  5. package/dist-client/bootstrap.js +24 -17
  6. package/dist-client/bootstrap.js.map +1 -1
  7. package/dist-client/pages/connection-list-page.js.map +1 -1
  8. package/dist-client/pages/scenario-list-page.d.ts +1 -1
  9. package/dist-client/route.js.map +1 -1
  10. package/dist-client/themes/board-app-menu-tools-theme.css +2 -2
  11. package/dist-client/themes/dark.css +51 -0
  12. package/dist-client/themes/light.css +51 -0
  13. package/dist-client/tsconfig.tsbuildinfo +1 -1
  14. package/dist-client/viewparts/menu-tools.d.ts +1 -1
  15. package/dist-client/viewparts/menu-tools.js +10 -8
  16. package/dist-client/viewparts/menu-tools.js.map +1 -1
  17. package/dist-server/index.d.ts +2 -0
  18. package/dist-server/index.js +0 -1
  19. package/dist-server/index.js.map +1 -1
  20. package/dist-server/middlewares/index.d.ts +1 -0
  21. package/dist-server/middlewares/index.js +1 -2
  22. package/dist-server/middlewares/index.js.map +1 -1
  23. package/dist-server/migrations/1610516350460-SeedRole.d.ts +7 -0
  24. package/dist-server/migrations/1610516350460-SeedRole.js.map +1 -1
  25. package/dist-server/migrations/index.d.ts +1 -0
  26. package/dist-server/tsconfig.tsbuildinfo +1 -1
  27. package/package.json +84 -78
  28. package/schema.graphql +76 -40
  29. package/views/auth-page.html +5 -3
  30. package/views/public/home.html +6 -4
  31. package/dist-client/themes/app-theme.css +0 -145
  32. package/dist-client/themes/grist-theme.css +0 -217
  33. package/dist-client/themes/layout-theme.css +0 -92
  34. package/dist-client/themes/oops-theme.css +0 -26
  35. package/dist-client/themes/report-theme.css +0 -47
  36. package/dist-server/routes.js +0 -2
  37. package/dist-server/routes.js.map +0 -1
package/_index.html CHANGED
@@ -1,4 +1,4 @@
1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8" />
@@ -52,6 +52,9 @@
52
52
  <!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
53
53
  <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
54
54
  <link href="/node_modules/@material-design-icons/font/index.css" rel="stylesheet" />
55
+ <link href="/node_modules/material-symbols/index.css" rel="stylesheet" />
56
+ <link href="/node_modules/@fontsource/roboto/index.css" rel="stylesheet" />
57
+ <link rel="stylesheet" href="/theme.css" />
55
58
 
56
59
  <style>
57
60
  html,
@@ -67,7 +70,8 @@
67
70
  line-height: 1.5;
68
71
  -webkit-font-smoothing: antialiased;
69
72
 
70
- accent-color: var(--primary-color);
73
+ accent-color: var(--md-sys-color-primary);
74
+ background-color: var(--md-sys-color-background);
71
75
  }
72
76
  </style>
73
77
 
@@ -91,7 +95,7 @@
91
95
  }
92
96
  </script>
93
97
  </head>
94
- <body>
98
+ <body class="light">
95
99
  <things-app></things-app>
96
100
  <noscript> Please enable JavaScript to view this website. </noscript>
97
101
  <!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
@@ -11,5 +11,28 @@ module.exports = {
11
11
  https://github.com/node-fetch/node-fetch/issues/1624
12
12
  */
13
13
  endpoint: 'http://127.0.0.1:9902'
14
+ },
15
+ i18n: {
16
+ languages: [
17
+ {
18
+ code: 'en-US',
19
+ display: 'English'
20
+ },
21
+ {
22
+ code: 'ko-KR',
23
+ display: '한국어'
24
+ },
25
+ {
26
+ code: 'zh-CN',
27
+ display: '中文'
28
+ },
29
+ {
30
+ code: 'ja-JP',
31
+ display: 'にほんご'
32
+ }
33
+ ],
34
+ defaultLanguage: 'en-US',
35
+ disableUserFavoredLanguage: false,
36
+ disableCustomTerminologyFeature: false
14
37
  }
15
38
  }
@@ -1,5 +1,4 @@
1
1
  module.exports = {
2
- protocol: 'https',
3
2
  accessTokenCookieKey: 'access_token.board',
4
3
  scheduler: {
5
4
  /* Name to be used for setting client's "application" properties when registering a schedule */
@@ -26,6 +25,29 @@ module.exports = {
26
25
  ciphers: 'SSLv3'
27
26
  }
28
27
  },
28
+ i18n: {
29
+ languages: [
30
+ {
31
+ code: 'en-US',
32
+ display: 'English'
33
+ },
34
+ {
35
+ code: 'ko-KR',
36
+ display: '한국어'
37
+ },
38
+ {
39
+ code: 'zh-CN',
40
+ display: '中文'
41
+ },
42
+ {
43
+ code: 'ja-JP',
44
+ display: 'にほんご'
45
+ }
46
+ ],
47
+ defaultLanguage: 'en-US',
48
+ disableUserFavoredLanguage: false,
49
+ disableCustomTerminologyFeature: false
50
+ },
29
51
  logger: {
30
52
  file: {
31
53
  filename: 'logs/application-%DATE%.log',
@@ -3,6 +3,6 @@ import '@things-factory/board-ui';
3
3
  import '@operato/help/ox-help-panel.js';
4
4
  import '@operato/i18n/ox-i18n.js';
5
5
  import '@things-factory/auth-ui/dist-client';
6
+ import '@things-factory/setting-ui/dist-client';
6
7
  import './viewparts/menu-tools';
7
- import '@things-factory/setting-ui';
8
8
  export default function bootstrap(): Promise<void>;
@@ -3,18 +3,18 @@ import '@things-factory/board-ui';
3
3
  import '@operato/help/ox-help-panel.js';
4
4
  import '@operato/i18n/ox-i18n.js';
5
5
  import '@things-factory/auth-ui/dist-client'; /* for domain-switch */
6
+ import '@things-factory/setting-ui/dist-client'; /* secure-iplist-setting-let, theme-mode-setting-let */
6
7
  import './viewparts/menu-tools';
7
- import '@things-factory/setting-ui'; /* secure-iplist-setting-let */
8
8
  import { html } from 'lit-html';
9
9
  import { registerDefaultGroups } from '@operato/board/register-default-groups.js';
10
10
  import { appendViewpart, toggleOverlay, TOOL_POSITION, updateViewpart, VIEWPART_LEVEL, VIEWPART_POSITION } from '@operato/layout';
11
11
  import { hasPrivilege } from '@things-factory/auth-base/dist-client';
12
- import { APPEND_APP_TOOL } from '@things-factory/apptool-base';
13
- import { setupAppToolPart } from '@things-factory/apptool-ui';
14
- import { setAuthManagementMenus } from '@things-factory/auth-ui';
15
- import { setupContextUIPart } from '@things-factory/context-ui';
16
- import { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base';
17
- import { ADD_SETTING } from '@things-factory/setting-base';
12
+ import { APPEND_APP_TOOL } from '@things-factory/apptool-base/client';
13
+ import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client';
14
+ import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client';
15
+ import { setupContextUIPart } from '@things-factory/context-ui/dist-client';
16
+ import { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base/client';
17
+ import { ADD_SETTING } from '@things-factory/setting-base/dist-client';
18
18
  import { navigate, store, UPDATE_BASE_URL } from '@operato/shell';
19
19
  export default async function bootstrap() {
20
20
  var _a;
@@ -60,7 +60,7 @@ export default async function bootstrap() {
60
60
  store.dispatch({
61
61
  type: ADD_MORENDA,
62
62
  morenda: {
63
- icon: html ` <mwc-icon>settings</mwc-icon> `,
63
+ icon: html ` <md-icon>settings</md-icon> `,
64
64
  name: html ` <ox-i18n msgid="label.setting"></ox-i18n> `,
65
65
  action: () => {
66
66
  navigate('setting');
@@ -72,7 +72,7 @@ export default async function bootstrap() {
72
72
  store.dispatch({
73
73
  type: ADD_MORENDA,
74
74
  morenda: {
75
- icon: html ` <mwc-icon>vpn_key</mwc-icon> `,
75
+ icon: html ` <md-icon>vpn_key</md-icon> `,
76
76
  name: html ` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
77
77
  action: () => {
78
78
  navigate('oauth2-clients');
@@ -83,7 +83,7 @@ export default async function bootstrap() {
83
83
  store.dispatch({
84
84
  type: ADD_MORENDA,
85
85
  morenda: {
86
- icon: html ` <mwc-icon>extension</mwc-icon> `,
86
+ icon: html ` <md-icon>extension</md-icon> `,
87
87
  name: html ` <ox-i18n msgid="text.api-sandbox"></ox-i18n> `,
88
88
  action: () => {
89
89
  navigate('api-swagger');
@@ -93,7 +93,7 @@ export default async function bootstrap() {
93
93
  store.dispatch({
94
94
  type: ADD_MORENDA,
95
95
  morenda: {
96
- icon: html ` <mwc-icon>hub</mwc-icon> `,
96
+ icon: html ` <md-icon>hub</md-icon> `,
97
97
  name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n>&nbsp;(beta)`,
98
98
  action: () => {
99
99
  navigate('integration-analysis');
@@ -103,7 +103,7 @@ export default async function bootstrap() {
103
103
  store.dispatch({
104
104
  type: ADD_MORENDA,
105
105
  morenda: {
106
- icon: html ` <mwc-icon>help</mwc-icon> `,
106
+ icon: html ` <md-icon>help</md-icon> `,
107
107
  name: html ` <ox-i18n msgid="text.help"></ox-i18n> `,
108
108
  action: () => {
109
109
  navigate('help');
@@ -114,7 +114,7 @@ export default async function bootstrap() {
114
114
  store.dispatch({
115
115
  type: ADD_MORENDA,
116
116
  morenda: {
117
- icon: html ` <mwc-icon>app_registration</mwc-icon> `,
117
+ icon: html ` <md-icon>app_registration</md-icon> `,
118
118
  name: html ` <ox-i18n msgid="title.state-register"></ox-i18n> `,
119
119
  action: () => {
120
120
  navigate('state-register-page');
@@ -126,7 +126,7 @@ export default async function bootstrap() {
126
126
  store.dispatch({
127
127
  type: ADD_MORENDA,
128
128
  morenda: {
129
- icon: html ` <mwc-icon>font_download</mwc-icon> `,
129
+ icon: html ` <md-icon>font_download</md-icon> `,
130
130
  name: html ` <ox-i18n msgid="menu.fonts"></ox-i18n> `,
131
131
  action: () => {
132
132
  navigate('font-list');
@@ -136,7 +136,7 @@ export default async function bootstrap() {
136
136
  // store.dispatch({
137
137
  // type: ADD_MORENDA,
138
138
  // morenda: {
139
- // icon: html` <mwc-icon>draw</mwc-icon> `,
139
+ // icon: html` <md-icon>draw</md-icon> `,
140
140
  // name: html` <ox-i18n msgid="text.theme"></ox-i18n> `,
141
141
  // action: () => {
142
142
  // navigate('theme-list')
@@ -147,7 +147,7 @@ export default async function bootstrap() {
147
147
  // store.dispatch({
148
148
  // type: ADD_MORENDA,
149
149
  // morenda: {
150
- // icon: html` <mwc-icon>dashboard</mwc-icon> `,
150
+ // icon: html` <md-icon>dashboard</md-icon> `,
151
151
  // name: html` <ox-i18n msgid="menu.board-template"></ox-i18n> `,
152
152
  // action: () => {
153
153
  // navigate('board-template-list')
@@ -156,7 +156,7 @@ export default async function bootstrap() {
156
156
  // })
157
157
  store.dispatch({
158
158
  type: ADD_MORENDA_TAIL,
159
- template: html ` <domain-switch slot="tail"></domain-switch> `
159
+ template: html ` <domain-switch attrname="description" slot="tail"></domain-switch> `
160
160
  });
161
161
  /* append favorite tool to app-tools */
162
162
  var acceptedPages = ['board-viewer'];
@@ -195,6 +195,13 @@ export default async function bootstrap() {
195
195
  },
196
196
  position: VIEWPART_POSITION.ASIDEBAR
197
197
  });
198
+ store.dispatch({
199
+ type: ADD_SETTING,
200
+ setting: {
201
+ seq: 10,
202
+ template: html ` <theme-mode-setting-let></theme-mode-setting-let> `
203
+ }
204
+ });
198
205
  store.dispatch({
199
206
  type: ADD_SETTING,
200
207
  setting: {
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,0BAA0B,CAAA;AACjC,OAAO,gCAAgC,CAAA;AACvC,OAAO,0BAA0B,CAAA;AACjC,OAAO,qCAAqC,CAAA,CAAC,uBAAuB;AACpE,OAAO,wBAAwB,CAAA;AAC/B,OAAO,4BAA4B,CAAA,CAAC,+BAA+B;AAEnE,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EACL,cAAc,EACd,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,C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AM;YAChB,QAAQ,EAAE,IAAI,CAAA,qEAAqE;SACpF;QACD,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;KACrC,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;IAEF,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,IACE,MAAM,YAAY,CAAC;QACjB,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,UAAU;QACpB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE,IAAI;KACvB,CAAC,EACF;QACA,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,2DAA2D;aAC1E;SACF,CAAC,CAAA;KACH;AACH,CAAC","sourcesContent":["import '@things-factory/notification'\nimport '@things-factory/board-ui'\nimport '@operato/help/ox-help-panel.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/auth-ui/dist-client' /* for domain-switch */\nimport './viewparts/menu-tools'\nimport '@things-factory/setting-ui' /* secure-iplist-setting-let */\n\nimport { html } from 'lit-html'\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport {\n appendViewpart,\n toggleOverlay,\n TOOL_POSITION,\n updateViewpart,\n VIEWPART_LEVEL,\n VIEWPART_POSITION\n} from '@operato/layout'\n\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base'\nimport { setupAppToolPart } from '@things-factory/apptool-ui'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui'\nimport { setupContextUIPart } from '@things-factory/context-ui'\nimport { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base'\nimport { ADD_SETTING } from '@things-factory/setting-base'\nimport { navigate, store, UPDATE_BASE_URL } from '@operato/shell'\n\nexport default async function bootstrap() {\n /* \n set board-modeller group and default templates - should be called befor BoardModeller open \n */\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 store.dispatch({\n type: UPDATE_BASE_URL\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: 'board-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('board-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>settings</mwc-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n setAuthManagementMenus()\n\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'user', domainOwnerGranted: true, superUserGranted: true })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>vpn_key</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>extension</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.api-sandbox\"></ox-i18n> `,\n action: () => {\n navigate('api-swagger')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>hub</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n>&nbsp;(beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>help</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\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` <mwc-icon>app_registration</mwc-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 if (await hasPrivilege({ privilege: 'mutation', category: 'board', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>font_download</mwc-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` <mwc-icon>draw</mwc-icon> `,\n // name: html` <ox-i18n msgid=\"text.theme\"></ox-i18n> `,\n // action: () => {\n // navigate('theme-list')\n // }\n // }\n // })\n }\n\n // store.dispatch({\n // type: ADD_MORENDA,\n // morenda: {\n // icon: html` <mwc-icon>dashboard</mwc-icon> `,\n // name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n // action: () => {\n // navigate('board-template-list')\n // }\n // }\n // })\n\n store.dispatch({\n type: ADD_MORENDA_TAIL,\n template: html` <domain-switch slot=\"tail\"></domain-switch> `\n })\n\n /* append favorite tool to app-tools */\n var acceptedPages = ['board-viewer']\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'favorite-tool',\n template: html` <favorite-tool .acceptedPages=${acceptedPages}></favorite-tool> `,\n position: TOOL_POSITION.REAR\n }\n })\n\n /* setting app-tools */\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 store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <notification-setting-let></notification-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 21,\n template: html` <board-view-setting-let></board-view-setting-let> `\n }\n })\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'security',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 31,\n template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `\n }\n })\n }\n}\n"]}
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,8BAA8B,CAAA;AACrC,OAAO,0BAA0B,CAAA;AACjC,OAAO,gCAAgC,CAAA;AACvC,OAAO,0BAA0B,CAAA;AACjC,OAAO,qCAAqC,CAAA,CAAC,uBAAuB;AACpE,OAAO,wCAAwC,CAAA,CAAC,uDAAuD;AACvG,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAC/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AACjF,OAAO,EACL,cAAc,EACd,aA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,EAAE,IAAI;iBACf,CAAC,CAAA;YACJ,CAAC;;;OAGJ;YACD,QAAQ,EAAE,aAAa,CAAC,IAAI;SAC7B;KACF,CAAC,CAAA;IAEF,cAAc,CAAC;QACb,IAAI,EAAE,cAAc;QACpB,QAAQ,EAAE;YACR,IAAI,EAAE,KAAK;YACX,QAAQ,EAAE,MAAM;YAChB,QAAQ,EAAE,IAAI,CAAA,qEAAqE;SACpF;QACD,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;KACrC,CAAC,CAAA;IAEF,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;IAEF,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,IACE,MAAM,YAAY,CAAC;QACjB,SAAS,EAAE,UAAU;QACrB,QAAQ,EAAE,UAAU;QACpB,kBAAkB,EAAE,IAAI;QACxB,gBAAgB,EAAE,IAAI;KACvB,CAAC,EACF,CAAC;QACD,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,2DAA2D;aAC1E;SACF,CAAC,CAAA;IACJ,CAAC;AACH,CAAC","sourcesContent":["import '@things-factory/notification'\nimport '@things-factory/board-ui'\nimport '@operato/help/ox-help-panel.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/auth-ui/dist-client' /* for domain-switch */\nimport '@things-factory/setting-ui/dist-client' /* secure-iplist-setting-let, theme-mode-setting-let */\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit-html'\nimport { registerDefaultGroups } from '@operato/board/register-default-groups.js'\nimport {\n appendViewpart,\n toggleOverlay,\n TOOL_POSITION,\n updateViewpart,\n VIEWPART_LEVEL,\n VIEWPART_POSITION\n} from '@operato/layout'\n\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { ADD_MORENDA, ADD_MORENDA_TAIL } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\nimport { navigate, store, UPDATE_BASE_URL } from '@operato/shell'\n\nexport default async function bootstrap() {\n /* \n set board-modeller group and default templates - should be called befor BoardModeller open \n */\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 store.dispatch({\n type: UPDATE_BASE_URL\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: 'board-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('board-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\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 setAuthManagementMenus()\n\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'user', domainOwnerGranted: true, superUserGranted: true })\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 store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>extension</md-icon> `,\n name: html` <ox-i18n msgid=\"text.api-sandbox\"></ox-i18n> `,\n action: () => {\n navigate('api-swagger')\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>&nbsp;(beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>help</md-icon> `,\n name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n action: () => {\n navigate('help')\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 if (await hasPrivilege({ privilege: 'mutation', category: 'board', domainOwnerGranted: true })) {\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>draw</md-icon> `,\n // name: html` <ox-i18n msgid=\"text.theme\"></ox-i18n> `,\n // action: () => {\n // navigate('theme-list')\n // }\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 store.dispatch({\n type: ADD_MORENDA_TAIL,\n template: html` <domain-switch attrname=\"description\" slot=\"tail\"></domain-switch> `\n })\n\n /* append favorite tool to app-tools */\n var acceptedPages = ['board-viewer']\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'favorite-tool',\n template: html` <favorite-tool .acceptedPages=${acceptedPages}></favorite-tool> `,\n position: TOOL_POSITION.REAR\n }\n })\n\n /* setting app-tools */\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 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 store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 21,\n template: html` <board-view-setting-let></board-view-setting-let> `\n }\n })\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'security',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 31,\n template: html` <secure-iplist-setting-let></secure-iplist-setting-let> `\n }\n })\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"connection-list-page.js","sourceRoot":"","sources":["../../client/pages/connection-list-page.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAGjF,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAChD,IAAI,OAAO;QACT,uCACK,KAAK,CAAC,OAAO,KAChB,aAAa,EAAE,IAAI,IACpB;IACH,CAAC;CACF,CAAA;AAPY,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAO9B;SAPY,kBAAkB","sourcesContent":["import { customElement } from 'lit/decorators.js'\nimport { Connection } from '@things-factory/integration-ui/dist-client/pages/connection'\n\n@customElement('connection-list-page')\nexport class ConnectionListPage extends Connection {\n get context() {\n return {\n ...super.context,\n board_topmenu: true\n }\n }\n}\n"]}
1
+ {"version":3,"file":"connection-list-page.js","sourceRoot":"","sources":["../../client/pages/connection-list-page.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AAGjF,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAChD,IAAI,OAAO;QACT,uCACK,KAAK,CAAC,OAAO,KAChB,aAAa,EAAE,IAAI,IACpB;IACH,CAAC;CACF,CAAA;AAPY,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAO9B","sourcesContent":["import { customElement } from 'lit/decorators.js'\nimport { Connection } from '@things-factory/integration-ui/dist-client/pages/connection'\n\n@customElement('connection-list-page')\nexport class ConnectionListPage extends Connection {\n get context() {\n return {\n ...super.context,\n board_topmenu: true\n }\n }\n}\n"]}
@@ -27,4 +27,4 @@ export class ScenarioListPage extends Scenario {
27
27
  };
28
28
  };
29
29
  }
30
- import { Scenario } from "@things-factory/integration-ui/dist-client/pages/scenario.js";
30
+ import { Scenario } from '@things-factory/integration-ui/dist-client/pages/scenario.js';
@@ -1 +1 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE;QACZ,KAAK,EAAE;YACL,uCAAuC;YACvC,OAAO,aAAa,CAAA;QAEtB,KAAK,cAAc;YACjB,0BAA0B;YAC1B,MAAM,CAAC,+BAA+B,CAAC,CAAA;YACvC,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,0BAA0B;YAC1B,MAAM,CAAC,+BAA+B,CAAC,CAAA;YACvC,OAAO,IAAI,CAAA;QAEb,KAAK,iBAAiB;YACpB,MAAM,CAAC,8BAA8B,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;QAEb,KAAK,eAAe;YAClB,MAAM,CAAC,4BAA4B,CAAC,CAAA;YACpC,OAAO,IAAI,CAAA;KACd;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case '':\n /* board-list 페이지를 default page로 한다. */\n return '/board-list'\n\n case 'board-viewer':\n /* overide board-viewer */\n import('./pages/app-board-viewer-page')\n return page\n\n case 'board-player':\n /* overide board-player */\n import('./pages/app-board-player-page')\n return page\n\n case 'connection-list':\n import('./pages/connection-list-page')\n return page\n\n case 'scenario-list':\n import('./pages/scenario-list-page')\n return page\n }\n}\n"]}
1
+ {"version":3,"file":"route.js","sourceRoot":"","sources":["../client/route.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,KAAK,CAAC,IAAI;IAChC,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,EAAE;YACL,uCAAuC;YACvC,OAAO,aAAa,CAAA;QAEtB,KAAK,cAAc;YACjB,0BAA0B;YAC1B,MAAM,CAAC,+BAA+B,CAAC,CAAA;YACvC,OAAO,IAAI,CAAA;QAEb,KAAK,cAAc;YACjB,0BAA0B;YAC1B,MAAM,CAAC,+BAA+B,CAAC,CAAA;YACvC,OAAO,IAAI,CAAA;QAEb,KAAK,iBAAiB;YACpB,MAAM,CAAC,8BAA8B,CAAC,CAAA;YACtC,OAAO,IAAI,CAAA;QAEb,KAAK,eAAe;YAClB,MAAM,CAAC,4BAA4B,CAAC,CAAA;YACpC,OAAO,IAAI,CAAA;IACf,CAAC;AACH,CAAC","sourcesContent":["export default function route(page) {\n switch (page) {\n case '':\n /* board-list 페이지를 default page로 한다. */\n return '/board-list'\n\n case 'board-viewer':\n /* overide board-viewer */\n import('./pages/app-board-viewer-page')\n return page\n\n case 'board-player':\n /* overide board-player */\n import('./pages/app-board-player-page')\n return page\n\n case 'connection-list':\n import('./pages/connection-list-page')\n return page\n\n case 'scenario-list':\n import('./pages/scenario-list-page')\n return page\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  body {
2
- --menu-tools-background-color: rgba(var(--secondary-color-rgb), 0.6);
2
+ --menu-tools-background-color: var(--md-sys-color-secondary);
3
3
  --menu-tools-iconbutton-size: var(--icon-tiny-size);
4
- --menu-tools-color: rgba(255, 255, 255, 0.7);
4
+ --menu-tools-color: var(--md-sys-color-on-secondary);
5
5
  --menu-tools-active-color: var(--google-yellow-100);
6
6
  }
@@ -0,0 +1,51 @@
1
+ .dark {
2
+ --md-sys-color-primary: rgb(223 192 181);
3
+ --md-sys-color-surface-tint: rgb(223 192 181);
4
+ --md-sys-color-on-primary: rgb(63 44 37);
5
+ --md-sys-color-primary-container: rgb(120 96 87);
6
+ --md-sys-color-on-primary-container: rgb(255 255 255);
7
+ --md-sys-color-secondary: rgb(198 197 211);
8
+ --md-sys-color-on-secondary: rgb(47 47 59);
9
+ --md-sys-color-secondary-container: rgb(69 69 81);
10
+ --md-sys-color-on-secondary-container: rgb(223 221 236);
11
+ --md-sys-color-tertiary: rgb(255 240 198);
12
+ --md-sys-color-on-tertiary: rgb(59 47 0);
13
+ --md-sys-color-tertiary-container: rgb(232 196 49);
14
+ --md-sys-color-on-tertiary-container: rgb(66 53 0);
15
+ --md-sys-color-error: rgb(255 180 171);
16
+ --md-sys-color-on-error: rgb(105 0 5);
17
+ --md-sys-color-error-container: rgb(147 0 10);
18
+ --md-sys-color-on-error-container: rgb(255 218 214);
19
+ --md-sys-color-background: rgb(21 19 18);
20
+ --md-sys-color-on-background: rgb(232 225 223);
21
+ --md-sys-color-surface: rgb(21 19 18);
22
+ --md-sys-color-on-surface: rgb(232 225 223);
23
+ --md-sys-color-surface-variant: rgb(79 68 65);
24
+ --md-sys-color-on-surface-variant: rgb(211 195 190);
25
+ --md-sys-color-outline: rgb(156 142 137);
26
+ --md-sys-color-outline-variant: rgb(79 68 65);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(232 225 223);
30
+ --md-sys-color-inverse-on-surface: rgb(51 48 47);
31
+ --md-sys-color-inverse-primary: rgb(113 89 81);
32
+ --md-sys-color-primary-fixed: rgb(252 220 208);
33
+ --md-sys-color-on-primary-fixed: rgb(40 23 17);
34
+ --md-sys-color-primary-fixed-dim: rgb(223 192 181);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(88 66 58);
36
+ --md-sys-color-secondary-fixed: rgb(227 225 240);
37
+ --md-sys-color-on-secondary-fixed: rgb(26 27 37);
38
+ --md-sys-color-secondary-fixed-dim: rgb(198 197 211);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(70 70 81);
40
+ --md-sys-color-tertiary-fixed: rgb(255 225 120);
41
+ --md-sys-color-on-tertiary-fixed: rgb(35 27 0);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(232 196 49);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(85 69 0);
44
+ --md-sys-color-surface-dim: rgb(21 19 18);
45
+ --md-sys-color-surface-bright: rgb(60 56 55);
46
+ --md-sys-color-surface-container-lowest: rgb(16 14 13);
47
+ --md-sys-color-surface-container-low: rgb(30 27 26);
48
+ --md-sys-color-surface-container: rgb(34 31 30);
49
+ --md-sys-color-surface-container-high: rgb(44 41 40);
50
+ --md-sys-color-surface-container-highest: rgb(55 52 51);
51
+ }
@@ -0,0 +1,51 @@
1
+ .light {
2
+ --md-sys-color-primary: rgb(91 69 61);
3
+ --md-sys-color-surface-tint: rgb(113 89 81);
4
+ --md-sys-color-on-primary: rgb(255 255 255);
5
+ --md-sys-color-primary-container: rgb(130 105 96);
6
+ --md-sys-color-on-primary-container: rgb(255 255 255);
7
+ --md-sys-color-secondary: rgb(58 58 70);
8
+ --md-sys-color-on-secondary: rgb(255 255 255);
9
+ --md-sys-color-secondary-container: rgb(93 93 105);
10
+ --md-sys-color-on-secondary-container: rgb(255 255 255);
11
+ --md-sys-color-tertiary: rgb(113 93 0);
12
+ --md-sys-color-on-tertiary: rgb(255 255 255);
13
+ --md-sys-color-tertiary-container: rgb(244 207 61);
14
+ --md-sys-color-on-tertiary-container: rgb(75 60 0);
15
+ --md-sys-color-error: rgb(186 26 26);
16
+ --md-sys-color-on-error: rgb(255 255 255);
17
+ --md-sys-color-error-container: rgb(255 218 214);
18
+ --md-sys-color-on-error-container: rgb(65 0 2);
19
+ --md-sys-color-background: rgb(255 248 246);
20
+ --md-sys-color-on-background: rgb(30 27 26);
21
+ --md-sys-color-surface: rgb(255 248 246);
22
+ --md-sys-color-on-surface: rgb(30 27 26);
23
+ --md-sys-color-surface-variant: rgb(240 223 218);
24
+ --md-sys-color-on-surface-variant: rgb(79 68 65);
25
+ --md-sys-color-outline: rgb(129 116 112);
26
+ --md-sys-color-outline-variant: rgb(211 195 190);
27
+ --md-sys-color-shadow: rgb(0 0 0);
28
+ --md-sys-color-scrim: rgb(0 0 0);
29
+ --md-sys-color-inverse-surface: rgb(51 48 47);
30
+ --md-sys-color-inverse-on-surface: rgb(246 239 237);
31
+ --md-sys-color-inverse-primary: rgb(223 192 181);
32
+ --md-sys-color-primary-fixed: rgb(252 220 208);
33
+ --md-sys-color-on-primary-fixed: rgb(40 23 17);
34
+ --md-sys-color-primary-fixed-dim: rgb(223 192 181);
35
+ --md-sys-color-on-primary-fixed-variant: rgb(88 66 58);
36
+ --md-sys-color-secondary-fixed: rgb(227 225 240);
37
+ --md-sys-color-on-secondary-fixed: rgb(26 27 37);
38
+ --md-sys-color-secondary-fixed-dim: rgb(198 197 211);
39
+ --md-sys-color-on-secondary-fixed-variant: rgb(70 70 81);
40
+ --md-sys-color-tertiary-fixed: rgb(255 225 120);
41
+ --md-sys-color-on-tertiary-fixed: rgb(35 27 0);
42
+ --md-sys-color-tertiary-fixed-dim: rgb(232 196 49);
43
+ --md-sys-color-on-tertiary-fixed-variant: rgb(85 69 0);
44
+ --md-sys-color-surface-dim: rgb(223 217 215);
45
+ --md-sys-color-surface-bright: rgb(255 248 246);
46
+ --md-sys-color-surface-container-lowest: rgb(255 255 255);
47
+ --md-sys-color-surface-container-low: rgb(249 242 240);
48
+ --md-sys-color-surface-container: rgb(243 236 234);
49
+ --md-sys-color-surface-container-high: rgb(238 231 229);
50
+ --md-sys-color-surface-container-highest: rgb(232 225 223);
51
+ }