@things-factory/operato-dataset 7.0.1-alpha.9 → 7.0.1-alpha.90
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/_index.html +5 -2
- package/config/config.development.js +23 -0
- package/config/config.production.js +23 -0
- package/dist-client/bootstrap.d.ts +2 -1
- package/dist-client/bootstrap.js +42 -25
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/menu.js +8 -8
- package/dist-client/menu.js.map +1 -1
- package/dist-client/themes/app-theme.css +19 -3
- package/dist-client/themes/dark.css +51 -0
- package/dist-client/themes/grist-theme.css +3 -1
- package/dist-client/themes/layout-theme.css +1 -1
- package/dist-client/themes/light.css +51 -0
- package/dist-client/themes/material-theme.css +18 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -38
- package/schema.graphql +123 -51
- package/views/auth-page.html +3 -1
- package/views/public/home.html +4 -2
package/_index.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!
|
|
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
|
<!-- Add any global styles for body, document, etc. -->
|
|
57
60
|
<style>
|
|
@@ -78,7 +81,7 @@
|
|
|
78
81
|
</script>
|
|
79
82
|
</head>
|
|
80
83
|
|
|
81
|
-
<body>
|
|
84
|
+
<body class="light">
|
|
82
85
|
<things-app></things-app>
|
|
83
86
|
<noscript> Please enable JavaScript to view this website. </noscript>
|
|
84
87
|
<!-- 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
|
}
|
|
@@ -24,6 +24,29 @@ module.exports = {
|
|
|
24
24
|
ciphers: 'SSLv3'
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
+
i18n: {
|
|
28
|
+
languages: [
|
|
29
|
+
{
|
|
30
|
+
code: 'en-US',
|
|
31
|
+
display: 'English'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
code: 'ko-KR',
|
|
35
|
+
display: '한국어'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
code: 'zh-CN',
|
|
39
|
+
display: '中文'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
code: 'ja-JP',
|
|
43
|
+
display: 'にほんご'
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
defaultLanguage: 'en-US',
|
|
47
|
+
disableUserFavoredLanguage: false,
|
|
48
|
+
disableCustomTerminologyFeature: false
|
|
49
|
+
},
|
|
27
50
|
logger: {
|
|
28
51
|
file: {
|
|
29
52
|
filename: 'logs/application-%DATE%.log',
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@operato/i18n/ox-i18n.js';
|
|
2
|
-
import '@things-factory/notification';
|
|
2
|
+
import '@things-factory/notification/dist-client';
|
|
3
3
|
import '@things-factory/auth-ui/dist-client';
|
|
4
|
+
import '@things-factory/i18n-base/dist-client/page/terminology-page.js';
|
|
4
5
|
import '@operato/dataset/usecase/ccp';
|
|
5
6
|
import '@operato/dataset/usecase/qc';
|
|
6
7
|
import '@operato/dataset/ox-property-editor-ccp-limits.js';
|
package/dist-client/bootstrap.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import '@operato/i18n/ox-i18n.js';
|
|
2
|
-
import '@things-factory/notification';
|
|
2
|
+
import '@things-factory/notification/dist-client';
|
|
3
3
|
import '@things-factory/auth-ui/dist-client'; /* for domain-switch */
|
|
4
|
+
import '@things-factory/i18n-base/dist-client/page/terminology-page.js';
|
|
4
5
|
import '@operato/dataset/usecase/ccp';
|
|
5
6
|
import '@operato/dataset/usecase/qc';
|
|
6
7
|
import '@operato/dataset/ox-property-editor-ccp-limits.js';
|
|
@@ -9,15 +10,16 @@ import { html } from 'lit-html';
|
|
|
9
10
|
import { registerDefaultGroups } from '@operato/board';
|
|
10
11
|
import { navigate, store } from '@operato/shell';
|
|
11
12
|
import { OxPropertyEditor } from '@operato/property-editor';
|
|
13
|
+
import { i18next } from '@operato/i18n';
|
|
12
14
|
import { appendViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION } from '@operato/layout';
|
|
13
|
-
import { APPEND_APP_TOOL } from '@things-factory/apptool-base';
|
|
14
15
|
import { auth, hasPrivilege } from '@things-factory/auth-base/dist-client';
|
|
15
|
-
import { setAuthManagementMenus } from '@things-factory/auth-ui';
|
|
16
|
-
import { setupMenuPart, updateMenuTemplate } from '@things-factory/lite-menu';
|
|
17
|
-
import { setupAppToolPart } from '@things-factory/apptool-ui';
|
|
18
|
-
import { setupContextUIPart } from '@things-factory/context-ui';
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
16
|
+
import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client';
|
|
17
|
+
import { setupMenuPart, updateMenuTemplate } from '@things-factory/lite-menu/dist-client';
|
|
18
|
+
import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client';
|
|
19
|
+
import { setupContextUIPart } from '@things-factory/context-ui/dist-client';
|
|
20
|
+
import { ADD_SETTING } from '@things-factory/setting-base/dist-client';
|
|
21
|
+
import { ADD_MORENDA } from '@things-factory/more-base/client';
|
|
22
|
+
import { APPEND_APP_TOOL } from '@things-factory/apptool-base/client';
|
|
21
23
|
import { getMenuTemplate } from './menu';
|
|
22
24
|
import { queryDataSets } from './query-data-sets';
|
|
23
25
|
console.log(`%c
|
|
@@ -40,7 +42,7 @@ export default async function bootstrap() {
|
|
|
40
42
|
contextToolbar: 'page-footer'
|
|
41
43
|
});
|
|
42
44
|
await setupMenuPart({
|
|
43
|
-
slotTemplate: html ` <domain-switch slot="tail"></domain-switch> `,
|
|
45
|
+
slotTemplate: html ` <domain-switch attrname="description" slot="tail"></domain-switch> `,
|
|
44
46
|
hovering: true
|
|
45
47
|
});
|
|
46
48
|
OxPropertyEditor.register({
|
|
@@ -51,7 +53,7 @@ export default async function bootstrap() {
|
|
|
51
53
|
store.dispatch({
|
|
52
54
|
type: ADD_MORENDA,
|
|
53
55
|
morenda: {
|
|
54
|
-
icon: html ` <
|
|
56
|
+
icon: html ` <md-icon>settings</md-icon> `,
|
|
55
57
|
name: html ` <ox-i18n msgid="label.setting"></ox-i18n> `,
|
|
56
58
|
action: () => {
|
|
57
59
|
navigate('setting');
|
|
@@ -63,7 +65,7 @@ export default async function bootstrap() {
|
|
|
63
65
|
store.dispatch({
|
|
64
66
|
type: ADD_MORENDA,
|
|
65
67
|
morenda: {
|
|
66
|
-
icon: html ` <
|
|
68
|
+
icon: html ` <md-icon>view_list</md-icon> `,
|
|
67
69
|
name: html ` <ox-i18n msgid="text.addon-menu management"></ox-i18n> `,
|
|
68
70
|
action: () => {
|
|
69
71
|
navigate('addon-menu-setting');
|
|
@@ -77,7 +79,7 @@ export default async function bootstrap() {
|
|
|
77
79
|
store.dispatch({
|
|
78
80
|
type: ADD_MORENDA,
|
|
79
81
|
morenda: {
|
|
80
|
-
icon: html ` <
|
|
82
|
+
icon: html ` <md-icon>vpn_key</md-icon> `,
|
|
81
83
|
name: html ` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
|
|
82
84
|
action: () => {
|
|
83
85
|
navigate('oauth2-clients');
|
|
@@ -89,7 +91,7 @@ export default async function bootstrap() {
|
|
|
89
91
|
store.dispatch({
|
|
90
92
|
type: ADD_MORENDA,
|
|
91
93
|
morenda: {
|
|
92
|
-
icon: html ` <
|
|
94
|
+
icon: html ` <md-icon>font_download</md-icon> `,
|
|
93
95
|
name: html ` <ox-i18n msgid="menu.fonts"></ox-i18n> `,
|
|
94
96
|
action: () => {
|
|
95
97
|
navigate('font-list');
|
|
@@ -99,7 +101,7 @@ export default async function bootstrap() {
|
|
|
99
101
|
store.dispatch({
|
|
100
102
|
type: ADD_MORENDA,
|
|
101
103
|
morenda: {
|
|
102
|
-
icon: html ` <
|
|
104
|
+
icon: html ` <md-icon>dvr</md-icon> `,
|
|
103
105
|
name: html ` <ox-i18n msgid="menu.board-list"></ox-i18n> `,
|
|
104
106
|
action: () => {
|
|
105
107
|
navigate('board-list');
|
|
@@ -109,7 +111,7 @@ export default async function bootstrap() {
|
|
|
109
111
|
store.dispatch({
|
|
110
112
|
type: ADD_MORENDA,
|
|
111
113
|
morenda: {
|
|
112
|
-
icon: html ` <
|
|
114
|
+
icon: html ` <md-icon>airplay</md-icon> `,
|
|
113
115
|
name: html ` <ox-i18n msgid="menu.play-groups"></ox-i18n> `,
|
|
114
116
|
action: () => {
|
|
115
117
|
navigate('play-list');
|
|
@@ -121,7 +123,7 @@ export default async function bootstrap() {
|
|
|
121
123
|
store.dispatch({
|
|
122
124
|
type: ADD_MORENDA,
|
|
123
125
|
morenda: {
|
|
124
|
-
icon: html ` <
|
|
126
|
+
icon: html ` <md-icon>attachment</md-icon> `,
|
|
125
127
|
name: html ` <ox-i18n msgid="menu.attachments"></ox-i18n> `,
|
|
126
128
|
action: () => {
|
|
127
129
|
navigate('attachment-list');
|
|
@@ -138,7 +140,7 @@ export default async function bootstrap() {
|
|
|
138
140
|
store.dispatch({
|
|
139
141
|
type: ADD_MORENDA,
|
|
140
142
|
morenda: {
|
|
141
|
-
icon: html ` <
|
|
143
|
+
icon: html ` <md-icon>device_hub</md-icon> `,
|
|
142
144
|
name: html ` <ox-i18n msgid="text.connection"></ox-i18n> `,
|
|
143
145
|
action: () => {
|
|
144
146
|
navigate('connection');
|
|
@@ -148,7 +150,7 @@ export default async function bootstrap() {
|
|
|
148
150
|
store.dispatch({
|
|
149
151
|
type: ADD_MORENDA,
|
|
150
152
|
morenda: {
|
|
151
|
-
icon: html ` <
|
|
153
|
+
icon: html ` <md-icon>format_list_numbered</md-icon> `,
|
|
152
154
|
name: html ` <ox-i18n msgid="text.scenario"></ox-i18n> `,
|
|
153
155
|
action: () => {
|
|
154
156
|
navigate('scenario');
|
|
@@ -158,7 +160,7 @@ export default async function bootstrap() {
|
|
|
158
160
|
store.dispatch({
|
|
159
161
|
type: ADD_MORENDA,
|
|
160
162
|
morenda: {
|
|
161
|
-
icon: html ` <
|
|
163
|
+
icon: html ` <md-icon>hub</md-icon> `,
|
|
162
164
|
name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n> (beta)`,
|
|
163
165
|
action: () => {
|
|
164
166
|
navigate('integration-analysis');
|
|
@@ -170,7 +172,7 @@ export default async function bootstrap() {
|
|
|
170
172
|
store.dispatch({
|
|
171
173
|
type: ADD_MORENDA,
|
|
172
174
|
morenda: {
|
|
173
|
-
icon: html ` <
|
|
175
|
+
icon: html ` <md-icon>app_registration</md-icon> `,
|
|
174
176
|
name: html ` <ox-i18n msgid="title.state-register"></ox-i18n> `,
|
|
175
177
|
action: () => {
|
|
176
178
|
navigate('state-register-page');
|
|
@@ -178,14 +180,29 @@ export default async function bootstrap() {
|
|
|
178
180
|
}
|
|
179
181
|
});
|
|
180
182
|
}
|
|
183
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'terminology', domainOwnerGranted: true })) {
|
|
184
|
+
store.dispatch({
|
|
185
|
+
type: ADD_MORENDA,
|
|
186
|
+
morenda: {
|
|
187
|
+
icon: html ` <md-icon>translate</md-icon> `,
|
|
188
|
+
name: html ` <ox-i18n msgid="title.terminology"></ox-i18n> `,
|
|
189
|
+
action: () => {
|
|
190
|
+
navigate('terminology-page');
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
181
195
|
auth.on('profile', async ({ credential }) => {
|
|
196
|
+
i18next.on('languageChanged', async () => {
|
|
197
|
+
updateMenuTemplate(getMenuTemplate(credential.owner, await queryDataSets()));
|
|
198
|
+
});
|
|
182
199
|
updateMenuTemplate(getMenuTemplate(credential.owner, await queryDataSets()));
|
|
183
200
|
if (credential.owner) {
|
|
184
201
|
store.dispatch({
|
|
185
202
|
type: ADD_MORENDA,
|
|
186
203
|
morenda: {
|
|
187
|
-
icon: html ` <
|
|
188
|
-
name: html ` <i18n
|
|
204
|
+
icon: html ` <md-icon>pending_actions</md-icon> `,
|
|
205
|
+
name: html ` <ox-i18n msgid="title.work-shift"></ox-i18n> `,
|
|
189
206
|
action: () => {
|
|
190
207
|
navigate('work-shift');
|
|
191
208
|
}
|
|
@@ -194,7 +211,7 @@ export default async function bootstrap() {
|
|
|
194
211
|
store.dispatch({
|
|
195
212
|
type: ADD_MORENDA,
|
|
196
213
|
morenda: {
|
|
197
|
-
icon: html ` <
|
|
214
|
+
icon: html ` <md-icon>device_hub</md-icon> `,
|
|
198
215
|
name: html ` <ox-i18n msgid="text.installable-activities"></ox-i18n> `,
|
|
199
216
|
action: () => {
|
|
200
217
|
navigate('installable-activity-list');
|
|
@@ -205,7 +222,7 @@ export default async function bootstrap() {
|
|
|
205
222
|
store.dispatch({
|
|
206
223
|
type: ADD_MORENDA,
|
|
207
224
|
morenda: {
|
|
208
|
-
icon: html ` <
|
|
225
|
+
icon: html ` <md-icon>extension</md-icon> `,
|
|
209
226
|
name: html ` <ox-i18n msgid="text.api-sandbox"></ox-i18n> `,
|
|
210
227
|
action: () => {
|
|
211
228
|
navigate('api-swagger');
|
|
@@ -215,7 +232,7 @@ export default async function bootstrap() {
|
|
|
215
232
|
// store.dispatch({
|
|
216
233
|
// type: ADD_MORENDA,
|
|
217
234
|
// morenda: {
|
|
218
|
-
// icon: html` <
|
|
235
|
+
// icon: html` <md-icon>help</md-icon> `,
|
|
219
236
|
// name: html` <ox-i18n msgid="text.help"></ox-i18n> `,
|
|
220
237
|
// action: () => {
|
|
221
238
|
// navigate('help')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAA;AACjC,OAAO,8BAA8B,CAAA;AACrC,OAAO,qCAAqC,CAAA,CAAC,uBAAuB;AAEpE,OAAO,8BAA8B,CAAA;AACrC,OAAO,6BAA6B,CAAA;AACpC,OAAO,mDAAmD,CAAA;AAC1D,OAAO,kDAAkD,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAE3D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,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AC,EAAE;oBACX,aAAa,CAAC,cAAc,EAAE;wBAC5B,QAAQ,EAAE,IAAI;qBACf,CAAC,CAAA;gBACJ,CAAC;;;SAGJ;gBACD,QAAQ,EAAE,aAAa,CAAC,IAAI;aAC7B;SACF,CAAC,CAAA;QAEF,cAAc,CAAC;YACb,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE;gBACR,IAAI,EAAE,KAAK;gBACX,QAAQ,EAAE,MAAM;gBAChB,QAAQ,EAAE,IAAI,CAAA,qEAAqE;aACpF;YACD,QAAQ,EAAE,iBAAiB,CAAC,QAAQ;SACrC,CAAC,CAAA;QAEF,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;aACxE;SACF,CAAC,CAAA;QAEF,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,mDAAmD;aAClE;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@operato/i18n/ox-i18n.js'\nimport '@things-factory/notification'\nimport '@things-factory/auth-ui/dist-client' /* for domain-switch */\n\nimport '@operato/dataset/usecase/ccp'\nimport '@operato/dataset/usecase/qc'\nimport '@operato/dataset/ox-property-editor-ccp-limits.js'\nimport '@operato/dataset/ox-property-editor-qc-limits.js'\n\nimport { html } from 'lit-html'\n\nimport { registerDefaultGroups } from '@operato/board'\nimport { navigate, store } from '@operato/shell'\nimport { OxPropertyEditor } from '@operato/property-editor'\n\nimport { appendViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION } from '@operato/layout'\n\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base'\nimport { auth, hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui'\nimport { setupMenuPart, updateMenuTemplate } from '@things-factory/lite-menu'\nimport { setupAppToolPart } from '@things-factory/apptool-ui'\nimport { setupContextUIPart } from '@things-factory/context-ui'\nimport { ADD_MORENDA } from '@things-factory/more-base'\nimport { ADD_SETTING } from '@things-factory/setting-base'\n\nimport { getMenuTemplate } from './menu'\nimport { queryDataSets, queryDataKeySets } from './query-data-sets'\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: true\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n await setupMenuPart({\n slotTemplate: html` <domain-switch slot=\"tail\"></domain-switch> `,\n hovering: true\n })\n\n OxPropertyEditor.register({\n 'ccp-limits': 'ox-property-editor-ccp-limits',\n 'qc-limits': 'ox-property-editor-qc-limits'\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 /* add addon-menu management page morenda */\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>view_list</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.addon-menu management\"></ox-i18n> `,\n action: () => {\n navigate('addon-menu-setting')\n }\n }\n })\n }\n\n /* set auth management menus into more-panel */\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 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>dvr</mwc-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` <mwc-icon>airplay</mwc-icon> `,\n name: html` <ox-i18n msgid=\"menu.play-groups\"></ox-i18n> `,\n action: () => {\n navigate('play-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'query', category: 'attachment', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>attachment</mwc-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` <mwc-icon>device_hub</mwc-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` <mwc-icon>format_list_numbered</mwc-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` <mwc-icon>hub</mwc-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` <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 auth.on('profile', async ({ credential }) => {\n updateMenuTemplate(getMenuTemplate(credential.owner, await queryDataSets()))\n\n if (credential.owner) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>pending_actions</mwc-icon> `,\n name: html` <i18n-msg msgid=\"title.work-shift\"></i18n-msg> `,\n action: () => {\n navigate('work-shift')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <mwc-icon>device_hub</mwc-icon> `,\n name: html` <ox-i18n msgid=\"text.installable-activities\"></ox-i18n> `,\n action: () => {\n navigate('installable-activity-list')\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>help</mwc-icon> `,\n // name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n // action: () => {\n // navigate('help')\n // }\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` <lite-menu-setting-let></lite-menu-setting-let> `\n }\n })\n })\n}\n"]}
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAA;AACjC,OAAO,0CAA0C,CAAA;AACjD,OAAO,qCAAqC,CAAA,CAAC,uBAAuB;AACpE,OAAO,gEAAgE,CAAA;AAEvE,OAAO,8BAA8B,CAAA;AACrC,OAAO,6BAA6B,CAAA;AACpC,OAAO,mDAAmD,CAAA;AAC1D,OAAO,kDAAkD,CAAA;AAEzD,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AAE/B,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAChD,OAAO,EAAE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A,yDAAyD;aACxE;SACF,CAAC,CAAA;QAEF,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,QAAQ,EAAE,IAAI,CAAA,mDAAmD;aAClE;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@operato/i18n/ox-i18n.js'\nimport '@things-factory/notification/dist-client'\nimport '@things-factory/auth-ui/dist-client' /* for domain-switch */\nimport '@things-factory/i18n-base/dist-client/page/terminology-page.js'\n\nimport '@operato/dataset/usecase/ccp'\nimport '@operato/dataset/usecase/qc'\nimport '@operato/dataset/ox-property-editor-ccp-limits.js'\nimport '@operato/dataset/ox-property-editor-qc-limits.js'\n\nimport { html } from 'lit-html'\n\nimport { registerDefaultGroups } from '@operato/board'\nimport { navigate, store } from '@operato/shell'\nimport { OxPropertyEditor } from '@operato/property-editor'\nimport { i18next } from '@operato/i18n'\n\nimport { appendViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION } from '@operato/layout'\n\nimport { auth, hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { setupMenuPart, updateMenuTemplate } from '@things-factory/lite-menu/dist-client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'\n\nimport { getMenuTemplate } from './menu'\nimport { queryDataSets } from './query-data-sets'\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: true\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n await setupMenuPart({\n slotTemplate: html` <domain-switch attrname=\"description\" slot=\"tail\"></domain-switch> `,\n hovering: true\n })\n\n OxPropertyEditor.register({\n 'ccp-limits': 'ox-property-editor-ccp-limits',\n 'qc-limits': 'ox-property-editor-qc-limits'\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 addon-menu management page morenda */\n if (\n await hasPrivilege({ privilege: 'mutation', category: 'menu', domainOwnerGranted: true, superUserGranted: true })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>view_list</md-icon> `,\n name: html` <ox-i18n msgid=\"text.addon-menu management\"></ox-i18n> `,\n action: () => {\n navigate('addon-menu-setting')\n }\n }\n })\n }\n\n /* set auth management menus into more-panel */\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 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>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>airplay</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.play-groups\"></ox-i18n> `,\n action: () => {\n navigate('play-list')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'query', category: 'attachment', domainOwnerGranted: true })) {\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 if (await hasPrivilege({ privilege: 'mutation', category: 'terminology', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>translate</md-icon> `,\n name: html` <ox-i18n msgid=\"title.terminology\"></ox-i18n> `,\n action: () => {\n navigate('terminology-page')\n }\n }\n })\n }\n\n auth.on('profile', async ({ credential }) => {\n i18next.on('languageChanged', async () => {\n updateMenuTemplate(getMenuTemplate(credential.owner, await queryDataSets()))\n })\n\n updateMenuTemplate(getMenuTemplate(credential.owner, await queryDataSets()))\n\n if (credential.owner) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>pending_actions</md-icon> `,\n name: html` <ox-i18n msgid=\"title.work-shift\"></ox-i18n> `,\n action: () => {\n navigate('work-shift')\n }\n }\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.installable-activities\"></ox-i18n> `,\n action: () => {\n navigate('installable-activity-list')\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>help</md-icon> `,\n // name: html` <ox-i18n msgid=\"text.help\"></ox-i18n> `,\n // action: () => {\n // navigate('help')\n // }\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` <lite-menu-setting-let></lite-menu-setting-let> `\n }\n })\n })\n}\n"]}
|
package/dist-client/menu.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { asyncReplace } from 'lit/directives/async-replace.js';
|
|
2
2
|
import i18next from 'i18next';
|
|
3
|
-
import { generateActivitySummary, startSubscribeActivitySummary } from '@things-factory/worklist';
|
|
3
|
+
import { generateActivitySummary, startSubscribeActivitySummary } from '@things-factory/worklist/dist-client';
|
|
4
4
|
startSubscribeActivitySummary();
|
|
5
5
|
export function getMenuTemplate(owner = false, dataSets) {
|
|
6
6
|
return [
|
|
@@ -10,7 +10,7 @@ export function getMenuTemplate(owner = false, dataSets) {
|
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
name: i18next.t('title.todo list'),
|
|
13
|
-
icon: '
|
|
13
|
+
icon: 'things_to_do',
|
|
14
14
|
path: 'todo-list',
|
|
15
15
|
badge: () => asyncReplace(generateActivitySummary('numberOfToDos')),
|
|
16
16
|
active: ({ path }) => /^activity\//.test(path)
|
|
@@ -52,12 +52,12 @@ export function getMenuTemplate(owner = false, dataSets) {
|
|
|
52
52
|
},
|
|
53
53
|
owner && {
|
|
54
54
|
name: i18next.t('title.data-set list'),
|
|
55
|
-
icon: '
|
|
55
|
+
icon: 'dataset',
|
|
56
56
|
path: 'data-set-list'
|
|
57
57
|
},
|
|
58
58
|
owner && {
|
|
59
59
|
name: i18next.t('title.data-key-set list'),
|
|
60
|
-
icon: '
|
|
60
|
+
icon: 'dataset_linked',
|
|
61
61
|
path: 'data-key-set-list'
|
|
62
62
|
},
|
|
63
63
|
owner && {
|
|
@@ -70,7 +70,7 @@ export function getMenuTemplate(owner = false, dataSets) {
|
|
|
70
70
|
type: 'group'
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
icon: '
|
|
73
|
+
icon: 'edit_square',
|
|
74
74
|
name: i18next.t('title.data-entry list'),
|
|
75
75
|
path: 'data-entry-list'
|
|
76
76
|
},
|
|
@@ -80,19 +80,19 @@ export function getMenuTemplate(owner = false, dataSets) {
|
|
|
80
80
|
},
|
|
81
81
|
owner && {
|
|
82
82
|
name: i18next.t('title.data-sample list'),
|
|
83
|
-
icon: '
|
|
83
|
+
icon: 'rule',
|
|
84
84
|
path: 'data-sample-list',
|
|
85
85
|
menus: dataSets.map(item => {
|
|
86
86
|
return {
|
|
87
87
|
name: item.name,
|
|
88
|
-
icon: '
|
|
88
|
+
icon: 'checklist_rtl',
|
|
89
89
|
path: `data-sample-search/${item.id}`
|
|
90
90
|
};
|
|
91
91
|
}) || []
|
|
92
92
|
},
|
|
93
93
|
owner && {
|
|
94
94
|
name: i18next.t('title.data-ooc list'),
|
|
95
|
-
icon: '
|
|
95
|
+
icon: 'error',
|
|
96
96
|
path: 'data-ooc-list'
|
|
97
97
|
},
|
|
98
98
|
owner && {
|
package/dist-client/menu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.js","sourceRoot":"","sources":["../client/menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AAC9D,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,u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oBACrC,IAAI,EAAE,cAAc;iBACrB;gBACD;oBACE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,qBAAqB,CAAC;oBACtC,IAAI,EAAE,eAAe;iBACtB;gBACD;oBACE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC;oBACxC,IAAI,EAAE,iBAAiB;iBACxB;gBACD;oBACE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC;oBACxC,IAAI,EAAE,iBAAiB;iBACxB;gBACD;oBACE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,sCAAsC,CAAC;oBACvD,IAAI,EAAE,iCAAiC;iBACxC;gBACD;oBACE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,0CAA0C,CAAC;oBAC3D,IAAI,EAAE,qCAAqC;iBAC5C;aACF;SACF;KACF,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;AACnB,CAAC","sourcesContent":["import { asyncReplace } from 'lit/directives/async-replace.js'\nimport i18next from 'i18next'\nimport { generateActivitySummary, startSubscribeActivitySummary } from '@things-factory/worklist/dist-client'\n\nstartSubscribeActivitySummary()\n\nexport function getMenuTemplate(owner: boolean = false, dataSets: any[]) {\n return [\n {\n name: i18next.t('title.my workspace'),\n type: 'group'\n },\n {\n name: i18next.t('title.todo list'),\n icon: 'things_to_do',\n path: 'todo-list',\n badge: () => asyncReplace(generateActivitySummary('numberOfToDos')),\n active: ({ path }) => /^activity\\//.test(path)\n },\n {\n name: i18next.t('title.approval pending list'),\n icon: 'approval',\n path: 'approval-pending-list',\n badge: () => asyncReplace(generateActivitySummary('numberOfApprovalPendings')),\n active: ({ path }) => /^approval\\//.test(path)\n },\n // {\n // name: i18next.t('title.draft list'),\n // icon: 'drive_file_rename_outline',\n // path: 'draft-list',\n // badge: () => asyncReplace(generateActivitySummary('numberOfDrafts'))\n // },\n {\n name: i18next.t('title.done list calendar'),\n icon: 'calendar_month',\n path: 'done-list-calendar',\n description: '업무와 관련된 수행 또는 결재 이력을 캘린더에서 조회할 수 있습니다.',\n menus: [\n {\n name: i18next.t('title.done list'),\n icon: 'history',\n path: 'done-list'\n },\n {\n name: i18next.t('title.approval done list'),\n icon: 'history',\n path: 'approval-done-list'\n }\n ]\n },\n owner && {\n name: 'DATASET',\n type: 'group'\n },\n owner && {\n name: i18next.t('title.data-set list'),\n icon: 'dataset',\n path: 'data-set-list'\n },\n owner && {\n name: i18next.t('title.data-key-set list'),\n icon: 'dataset_linked',\n path: 'data-key-set-list'\n },\n owner && {\n name: i18next.t('title.data-sensor list'),\n icon: 'sensors',\n path: 'data-sensor-list'\n },\n {\n name: 'DATA ENTRY',\n type: 'group'\n },\n {\n icon: 'edit_square',\n name: i18next.t('title.data-entry list'),\n path: 'data-entry-list'\n },\n {\n name: 'DATA REPORT',\n type: 'group'\n },\n owner && {\n name: i18next.t('title.data-sample list'),\n icon: 'rule',\n path: 'data-sample-list',\n menus:\n dataSets.map(item => {\n return {\n name: item.name,\n icon: 'checklist_rtl',\n path: `data-sample-search/${item.id}`\n }\n }) || []\n },\n owner && {\n name: i18next.t('title.data-ooc list'),\n icon: 'error',\n path: 'data-ooc-list'\n },\n owner && {\n name: i18next.t('title.data-summary list'),\n icon: 'functions',\n path: 'data-summary-list',\n menus:\n dataSets\n .filter(item => item.active && item.summaryPeriod)\n .map(item => {\n return {\n name: item.name,\n icon: 'checklist',\n path: `data-summary-period/${item.id}`\n }\n }) || []\n },\n {\n icon: 'newspaper',\n name: i18next.t('title.data-report-view'),\n path: 'data-report-list'\n },\n owner && {\n icon: 'archive',\n name: i18next.t('title.data-archive list'),\n path: 'data-archive-list'\n },\n owner && {\n name: i18next.t('title.organization'),\n type: 'group'\n },\n owner && {\n name: i18next.t('title.organization'),\n icon: 'account_tree',\n description: '조직 구성과 결재선 관리를 위한 메뉴 구성입니다.',\n menus: [\n {\n name: i18next.t('title.contact list'),\n path: 'contact-list'\n },\n {\n name: i18next.t('title.employee list'),\n path: 'employee-list'\n },\n {\n name: i18next.t('title.department tree'),\n path: 'department-tree'\n },\n {\n name: i18next.t('title.department list'),\n path: 'department-list'\n },\n {\n name: i18next.t('title.my-approval-line template list'),\n path: 'my-approval-line-templates-page'\n },\n {\n name: i18next.t('title.common-approval-line template list'),\n path: 'common-approval-line-templates-page'\n }\n ]\n }\n ].filter(Boolean)\n}\n"]}
|
|
@@ -82,18 +82,34 @@ body {
|
|
|
82
82
|
--mdc-button-outline-width: 1px;
|
|
83
83
|
--mdc-button-horizontal-padding: 16px;
|
|
84
84
|
|
|
85
|
+
--md-fab-container-color: var(--primary-color);
|
|
86
|
+
--md-fab-icon-color: var(--focus-color);
|
|
87
|
+
|
|
88
|
+
--md-theme-on-primary: var(--theme-white-color);
|
|
89
|
+
--md-theme-primary: var(--secondary-text-color);
|
|
90
|
+
--md-theme-on-secondary: var(--theme-white-color);
|
|
91
|
+
--md-theme-secondary: var(--primary-color);
|
|
92
|
+
--md-button-outline-color: var(--primary-color);
|
|
93
|
+
--md-danger-button-primary-color: var(--status-danger-color);
|
|
94
|
+
--md-danger-button-outline-color: var(--status-danger-color);
|
|
95
|
+
--md-button-outline-width: 1px;
|
|
96
|
+
--md-button-horizontal-padding: 16px;
|
|
97
|
+
|
|
85
98
|
/* button style */
|
|
86
99
|
--button-background-color: #fafbfc;
|
|
87
100
|
--button-background-focus-color: var(--primary-color);
|
|
88
101
|
--button-border: var(--border-dark-color);
|
|
89
102
|
--button-border-radius: var(--border-radius);
|
|
90
103
|
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
|
91
|
-
--button-padding: var(--padding-
|
|
104
|
+
--button-padding: calc(var(--padding-narrow) * 1.5) var(--padding-wide);
|
|
92
105
|
--button-color: var(--secondary-color);
|
|
93
|
-
--button-font:
|
|
106
|
+
--button-font: 600 var(--fontsize-default) var(--theme-font);
|
|
94
107
|
--button-text-transform: capitalize;
|
|
95
108
|
--button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
|
|
96
109
|
--button-activ-border: 1px solid var(--primary-color);
|
|
110
|
+
--button-activ-background-color: var(--primary-color);
|
|
111
|
+
--button-activ-color: var(--theme-white-color);
|
|
112
|
+
--iconbtn-padding: var(--padding-narrow);
|
|
97
113
|
|
|
98
114
|
--button-primary-background-color: var(--primary-color);
|
|
99
115
|
--button-primary-active-background-color: var(--status-success-color);
|
|
@@ -124,7 +140,7 @@ body {
|
|
|
124
140
|
--label-color: var(--secondary-color);
|
|
125
141
|
--label-text-transform: capitalize;
|
|
126
142
|
--input-margin: var(--margin-narrow) 0;
|
|
127
|
-
--input-padding:
|
|
143
|
+
--input-padding: 6px 2px;
|
|
128
144
|
--input-min-width: 200px;
|
|
129
145
|
--input-font: normal var(--fontsize-default) var(--theme-font);
|
|
130
146
|
--input-hint-font: normal var(--fontsize-small) var(--theme-font);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.dark {
|
|
2
|
+
--md-sys-color-primary: rgb(159 202 253);
|
|
3
|
+
--md-sys-color-surface-tint: rgb(159 202 253);
|
|
4
|
+
--md-sys-color-on-primary: rgb(0 50 87);
|
|
5
|
+
--md-sys-color-primary-container: rgb(24 73 116);
|
|
6
|
+
--md-sys-color-on-primary-container: rgb(209 228 255);
|
|
7
|
+
--md-sys-color-secondary: rgb(128 212 213);
|
|
8
|
+
--md-sys-color-on-secondary: rgb(0 55 55);
|
|
9
|
+
--md-sys-color-secondary-container: rgb(0 79 80);
|
|
10
|
+
--md-sys-color-on-secondary-container: rgb(156 241 241);
|
|
11
|
+
--md-sys-color-tertiary: rgb(136 209 235);
|
|
12
|
+
--md-sys-color-on-tertiary: rgb(0 53 67);
|
|
13
|
+
--md-sys-color-tertiary-container: rgb(0 78 96);
|
|
14
|
+
--md-sys-color-on-tertiary-container: rgb(182 234 255);
|
|
15
|
+
--md-sys-color-error: rgb(255 179 174);
|
|
16
|
+
--md-sys-color-on-error: rgb(87 30 28);
|
|
17
|
+
--md-sys-color-error-container: rgb(115 51 48);
|
|
18
|
+
--md-sys-color-on-error-container: rgb(255 218 215);
|
|
19
|
+
--md-sys-color-background: rgb(16 20 24);
|
|
20
|
+
--md-sys-color-on-background: rgb(225 226 232);
|
|
21
|
+
--md-sys-color-surface: rgb(16 20 24);
|
|
22
|
+
--md-sys-color-on-surface: rgb(225 226 232);
|
|
23
|
+
--md-sys-color-surface-variant: rgb(66 71 78);
|
|
24
|
+
--md-sys-color-on-surface-variant: rgb(195 199 207);
|
|
25
|
+
--md-sys-color-outline: rgb(141 145 153);
|
|
26
|
+
--md-sys-color-outline-variant: rgb(66 71 78);
|
|
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(225 226 232);
|
|
30
|
+
--md-sys-color-inverse-on-surface: rgb(46 49 53);
|
|
31
|
+
--md-sys-color-inverse-primary: rgb(53 97 142);
|
|
32
|
+
--md-sys-color-primary-fixed: rgb(209 228 255);
|
|
33
|
+
--md-sys-color-on-primary-fixed: rgb(0 29 53);
|
|
34
|
+
--md-sys-color-primary-fixed-dim: rgb(159 202 253);
|
|
35
|
+
--md-sys-color-on-primary-fixed-variant: rgb(24 73 116);
|
|
36
|
+
--md-sys-color-secondary-fixed: rgb(156 241 241);
|
|
37
|
+
--md-sys-color-on-secondary-fixed: rgb(0 32 32);
|
|
38
|
+
--md-sys-color-secondary-fixed-dim: rgb(128 212 213);
|
|
39
|
+
--md-sys-color-on-secondary-fixed-variant: rgb(0 79 80);
|
|
40
|
+
--md-sys-color-tertiary-fixed: rgb(182 234 255);
|
|
41
|
+
--md-sys-color-on-tertiary-fixed: rgb(0 31 40);
|
|
42
|
+
--md-sys-color-tertiary-fixed-dim: rgb(136 209 235);
|
|
43
|
+
--md-sys-color-on-tertiary-fixed-variant: rgb(0 78 96);
|
|
44
|
+
--md-sys-color-surface-dim: rgb(16 20 24);
|
|
45
|
+
--md-sys-color-surface-bright: rgb(54 57 62);
|
|
46
|
+
--md-sys-color-surface-container-lowest: rgb(11 14 19);
|
|
47
|
+
--md-sys-color-surface-container-low: rgb(25 28 32);
|
|
48
|
+
--md-sys-color-surface-container: rgb(29 32 36);
|
|
49
|
+
--md-sys-color-surface-container-high: rgb(39 42 47);
|
|
50
|
+
--md-sys-color-surface-container-highest: rgb(50 53 58);
|
|
51
|
+
}
|
|
@@ -36,6 +36,8 @@ body {
|
|
|
36
36
|
--grid-header-filter-title-font: normal 12px var(--theme-font);
|
|
37
37
|
--grid-header-filter-title-icon-color: var(--primary-color);
|
|
38
38
|
|
|
39
|
+
--grid-body-bottom-border: 1px solid rgba(var(--secondary-color-rgb), 0.2);
|
|
40
|
+
|
|
39
41
|
--grid-gutter-padding: var(--padding-default) 0;
|
|
40
42
|
|
|
41
43
|
--grid-record-background-color: var(--theme-white-color);
|
|
@@ -143,7 +145,7 @@ body {
|
|
|
143
145
|
--record-view-footer-button-border-width: 0 0 0 1px;
|
|
144
146
|
--record-view-footer-button-font: 17px;
|
|
145
147
|
--record-view-footer-button-color: var(--theme-white-color);
|
|
146
|
-
--record-view-footer-iconbutton-size:
|
|
148
|
+
--record-view-footer-iconbutton-size: 28px;
|
|
147
149
|
--record-view-footer-focus-background: var(--primary-color);
|
|
148
150
|
|
|
149
151
|
--ox-grist-padding: var(--padding-default) var(--padding-default) 0 var(--padding-default);
|
|
@@ -55,7 +55,7 @@ body {
|
|
|
55
55
|
|
|
56
56
|
/* components - resize splitter style */
|
|
57
57
|
--splitter-background-color: rgba(0, 0, 0, 0.1);
|
|
58
|
-
--splitter-hover-background-color:
|
|
58
|
+
--splitter-hover-background-color: rgba(0, 0, 0, 0.1);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
@media only screen and (max-width: 460px) {
|