@dssp/dcsp 1.0.0-alpha.8 → 1.0.0-alpha.81
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 +0 -5
- package/config/config.development.js +2 -1
- package/config/config.production.js +2 -1
- package/dist-client/bootstrap.d.ts +2 -0
- package/dist-client/bootstrap.js +89 -16
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/entries/auth/checkin.d.ts +38 -0
- package/dist-client/entries/auth/checkin.js +546 -0
- package/dist-client/entries/auth/checkin.js.map +1 -0
- package/dist-client/pages/sv-user-management.d.ts +1 -0
- package/dist-client/pages/sv-user-management.js +5 -0
- package/dist-client/pages/sv-user-management.js.map +1 -1
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +12 -2
- package/dist-client/route.js.map +1 -1
- package/dist-client/themes/light.css +1 -1
- package/dist-client/themes/popup-theme.css +18 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/viewparts/menu-tools.d.ts +1 -2
- package/dist-client/viewparts/menu-tools.js +2 -3
- package/dist-client/viewparts/menu-tools.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +56 -54
- package/schema.graphql +9121 -3446
- package/translations/en.json +5 -1
- package/translations/ko.json +5 -1
- package/views/auth-page.html +0 -1
- package/views/public/home.html +0 -1
package/_index.html
CHANGED
|
@@ -61,10 +61,5 @@
|
|
|
61
61
|
<body class="light">
|
|
62
62
|
<things-app></things-app>
|
|
63
63
|
<noscript> Please enable JavaScript to view this website. </noscript>
|
|
64
|
-
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
|
|
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
|
-
<script src="/node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
|
|
68
|
-
<!-- Built with love using PWA Starter Kit -->
|
|
69
64
|
</body>
|
|
70
65
|
</html>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
subdomain:
|
|
2
|
+
subdomain: null,
|
|
3
|
+
domainTypes: ['domain', 'project'],
|
|
3
4
|
applianceJwtExpiresIn: '10y',
|
|
4
5
|
/* database field encryption key : 32 bytes - must be changed by every installation */
|
|
5
6
|
dataEncryptionKey: 'V6g5oHJZb7KcazJyL6cM95XvIDouon5b',
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
subdomain:
|
|
2
|
+
subdomain: null,
|
|
3
|
+
domainTypes: ['domain', 'project'],
|
|
3
4
|
applianceJwtExpiresIn: '10y',
|
|
4
5
|
/* database field encryption key : 32 bytes - must be changed by every installation */
|
|
5
6
|
dataEncryptionKey: 'V6g5oHJZb7KcazJyL6cM95XvIDouon5b',
|
|
@@ -5,4 +5,6 @@ import '@operato/i18n/ox-i18n.js';
|
|
|
5
5
|
import '@things-factory/notification';
|
|
6
6
|
import './viewparts/user-circle';
|
|
7
7
|
import './viewparts/menu-tools';
|
|
8
|
+
import '@dssp/project/client/pages/lib/chatbot-widget';
|
|
9
|
+
import '@dssp/project/dist-client/viewparts/domain-switch';
|
|
8
10
|
export default function bootstrap(): Promise<void>;
|
package/dist-client/bootstrap.js
CHANGED
|
@@ -5,6 +5,8 @@ import '@operato/i18n/ox-i18n.js';
|
|
|
5
5
|
import '@things-factory/notification';
|
|
6
6
|
import './viewparts/user-circle';
|
|
7
7
|
import './viewparts/menu-tools';
|
|
8
|
+
import '@dssp/project/client/pages/lib/chatbot-widget';
|
|
9
|
+
import '@dssp/project/dist-client/viewparts/domain-switch';
|
|
8
10
|
import { html } from 'lit-html';
|
|
9
11
|
import { registerDefaultGroups } from '@operato/board';
|
|
10
12
|
import { navigate, store } from '@operato/shell';
|
|
@@ -24,7 +26,7 @@ console.log(`%c
|
|
|
24
26
|
▀▀▀ ▀▀ ▀▀▀ ▀
|
|
25
27
|
`, 'background: #222; color: #bada55');
|
|
26
28
|
export default async function bootstrap() {
|
|
27
|
-
var _a;
|
|
29
|
+
var _a, _b;
|
|
28
30
|
/* set board-modeller group and default templates */
|
|
29
31
|
registerDefaultGroups();
|
|
30
32
|
await setupAppToolPart({
|
|
@@ -36,34 +38,48 @@ export default async function bootstrap() {
|
|
|
36
38
|
titlebar: 'header',
|
|
37
39
|
contextToolbar: 'page-footer'
|
|
38
40
|
});
|
|
39
|
-
/* append top-menu to layout */
|
|
41
|
+
/* append top-menu to layout (프로젝트 테넌트에서는 메뉴 숨김) */
|
|
40
42
|
var state = store.getState();
|
|
41
43
|
var width = ((_a = state.layout) === null || _a === void 0 ? void 0 : _a.width) || 'WIDE';
|
|
44
|
+
const domainType = ((_b = window.location.pathname.match(/^\/([^/]+)\/[^/]+/)) === null || _b === void 0 ? void 0 : _b[1]) || 'domain';
|
|
45
|
+
const isProjectTenant = domainType === 'project';
|
|
46
|
+
/* header: 현재 체크인된 테넌트(도메인/프로젝트) 표시 + 종류별 그룹핑된 도메인 스위치 */
|
|
42
47
|
appendViewpart({
|
|
43
|
-
name: 'dcsp-
|
|
48
|
+
name: 'dcsp-domain-indicator',
|
|
44
49
|
viewpart: {
|
|
45
50
|
show: true,
|
|
46
|
-
|
|
51
|
+
level: VIEWPART_LEVEL.NORMAL,
|
|
52
|
+
template: html ` <dssp-domain-switch attrname="description"></dssp-domain-switch> `
|
|
47
53
|
},
|
|
48
|
-
position:
|
|
54
|
+
position: VIEWPART_POSITION.HEADERBAR
|
|
49
55
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
|
|
58
|
-
level: VIEWPART_LEVEL.TOPMOST
|
|
56
|
+
if (!isProjectTenant) {
|
|
57
|
+
appendViewpart({
|
|
58
|
+
name: 'dcsp-topmenu',
|
|
59
|
+
viewpart: {
|
|
60
|
+
show: true,
|
|
61
|
+
template: html ` <menu-tools></menu-tools> `
|
|
62
|
+
},
|
|
63
|
+
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
|
|
59
64
|
});
|
|
60
|
-
|
|
65
|
+
store.subscribe(async () => {
|
|
66
|
+
const currentState = store.getState();
|
|
67
|
+
if (currentState.layout.width == width) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
width = state.layout.width;
|
|
71
|
+
updateViewpart('dcsp-topmenu', {
|
|
72
|
+
position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,
|
|
73
|
+
level: VIEWPART_LEVEL.TOPMOST
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
}
|
|
61
77
|
/* setting app-tools */
|
|
62
78
|
store.dispatch({
|
|
63
79
|
type: APPEND_APP_TOOL,
|
|
64
80
|
tool: {
|
|
65
81
|
name: 'app-brand',
|
|
66
|
-
template: html ` <span style="font-size: 1.2em;">
|
|
82
|
+
template: html ` <span style="font-size: 1.2em;">CSP</span> `,
|
|
67
83
|
position: TOOL_POSITION.FRONT
|
|
68
84
|
}
|
|
69
85
|
});
|
|
@@ -179,6 +195,55 @@ export default async function bootstrap() {
|
|
|
179
195
|
}
|
|
180
196
|
});
|
|
181
197
|
}
|
|
198
|
+
if (await hasPrivilege({
|
|
199
|
+
privilege: 'mutation',
|
|
200
|
+
category: 'scenario',
|
|
201
|
+
domainOwnerGranted: true,
|
|
202
|
+
superUserGranted: true
|
|
203
|
+
})) {
|
|
204
|
+
store.dispatch({
|
|
205
|
+
type: ADD_MORENDA,
|
|
206
|
+
morenda: {
|
|
207
|
+
icon: html ` <md-icon>device_hub</md-icon> `,
|
|
208
|
+
name: html ` <ox-i18n msgid="text.connection"></ox-i18n> `,
|
|
209
|
+
action: () => {
|
|
210
|
+
navigate('connection');
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
store.dispatch({
|
|
215
|
+
type: ADD_MORENDA,
|
|
216
|
+
morenda: {
|
|
217
|
+
icon: html ` <md-icon>format_list_numbered</md-icon> `,
|
|
218
|
+
name: html ` <ox-i18n msgid="text.scenario"></ox-i18n> `,
|
|
219
|
+
action: () => {
|
|
220
|
+
navigate('scenario');
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
store.dispatch({
|
|
225
|
+
type: ADD_MORENDA,
|
|
226
|
+
morenda: {
|
|
227
|
+
icon: html ` <md-icon>hub</md-icon> `,
|
|
228
|
+
name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n> (beta)`,
|
|
229
|
+
action: () => {
|
|
230
|
+
navigate('integration-analysis');
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {
|
|
236
|
+
store.dispatch({
|
|
237
|
+
type: ADD_MORENDA,
|
|
238
|
+
morenda: {
|
|
239
|
+
icon: html ` <md-icon>app_registration</md-icon> `,
|
|
240
|
+
name: html ` <ox-i18n msgid="title.state-register"></ox-i18n> `,
|
|
241
|
+
action: () => {
|
|
242
|
+
navigate('state-register-page');
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}
|
|
182
247
|
store.dispatch({
|
|
183
248
|
type: ADD_SETTING,
|
|
184
249
|
setting: {
|
|
@@ -193,5 +258,13 @@ export default async function bootstrap() {
|
|
|
193
258
|
template: html ` <notification-setting-let></notification-setting-let> `
|
|
194
259
|
}
|
|
195
260
|
});
|
|
261
|
+
appendViewpart({
|
|
262
|
+
name: 'chatbot-widget-viewpart',
|
|
263
|
+
viewpart: {
|
|
264
|
+
show: true,
|
|
265
|
+
template: html ` <chatbot-widget></chatbot-widget> `
|
|
266
|
+
},
|
|
267
|
+
position: VIEWPART_POSITION.FOOTERBAR
|
|
268
|
+
});
|
|
196
269
|
}
|
|
197
270
|
//# sourceMappingURL=bootstrap.js.map
|
|
@@ -1 +1 @@
|
|
|
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;AACjC,OAAO,8BAA8B,CAAA;AACrC,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAE/B,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;AAEhD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACjI,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAA;AAEtE,OAAO,CAAC,GAAG,CACT;;;;;;CAMD,EACC,kCAAkC,CACnC,CAAA;AAED,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,SAAS;;IACrC,oDAAoD;IACpD,qBAAqB,EAAE,CAAA;IAEvB,MAAM,gBAAg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,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QAClG,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,IAAI,CAAA,gCAAgC;gBAC1C,IAAI,EAAE,IAAI,CAAA,mDAAmD;gBAC7D,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: 'dcsp-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('dcsp-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;\">CSL</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 /* 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\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 (await hasPrivilege({ privilege: 'mutation', category: 'scenario', domainOwnerGranted: true })) {\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 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
|
+
{"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;AACjC,OAAO,8BAA8B,CAAA;AACrC,OAAO,yBAAyB,CAAA;AAChC,OAAO,wBAAwB,CAAA;AAC/B,OAAO,+CAA+C,CAAA;AACtD,OAAO,mDAAmD,CAAA;AAE1D,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;AAEhD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACjI,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAA;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAA;AAEtE,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;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,cAAc,CAAC;QACb,IAAI,EAAE,yBAAyB;QAC/B,QAAQ,EAAE;YACR,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI,CAAA,qCAAqC;SACpD;QACD,QAAQ,EAAE,iBAAiB,CAAC,SAAS;KACtC,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'\nimport '@dssp/project/client/pages/lib/chatbot-widget'\nimport '@dssp/project/dist-client/viewparts/domain-switch'\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 const domainType = window.location.pathname.match(/^\\/([^/]+)\\/[^/]+/)?.[1] || 'domain'\n const isProjectTenant = domainType === 'project'\n\n /* header: 현재 체크인된 테넌트(도메인/프로젝트) 표시 + 종류별 그룹핑된 도메인 스위치 */\n appendViewpart({\n name: 'dcsp-domain-indicator',\n viewpart: {\n show: true,\n level: VIEWPART_LEVEL.NORMAL,\n template: html` <dssp-domain-switch attrname=\"description\"></dssp-domain-switch> `\n },\n position: VIEWPART_POSITION.HEADERBAR\n })\n\n if (!isProjectTenant) {\n appendViewpart({\n name: 'dcsp-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 const currentState = store.getState() as any\n\n if (currentState.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n updateViewpart('dcsp-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\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;\">CSP</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 /* 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\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 (await hasPrivilege({ privilege: 'mutation', category: 'scenario', domainOwnerGranted: true })) {\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 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 appendViewpart({\n name: 'chatbot-widget-viewpart',\n viewpart: {\n show: true,\n template: html` <chatbot-widget></chatbot-widget> `\n },\n position: VIEWPART_POSITION.FOOTERBAR\n })\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
|
+
import '@material/web/button/elevated-button.js';
|
|
3
|
+
import '@operato/lottie-player';
|
|
4
|
+
import { LitElement } from 'lit';
|
|
5
|
+
declare const AuthCheckIn_base: (new (...args: any[]) => LitElement) & typeof LitElement;
|
|
6
|
+
export declare class AuthCheckIn extends AuthCheckIn_base {
|
|
7
|
+
static styles: import("lit").CSSResult[];
|
|
8
|
+
data: any;
|
|
9
|
+
domains: any[];
|
|
10
|
+
domainTypes?: string[];
|
|
11
|
+
user: any;
|
|
12
|
+
searchValue: string;
|
|
13
|
+
collapsedSections: Record<string, boolean>;
|
|
14
|
+
private _applicationMeta?;
|
|
15
|
+
private redirectTo?;
|
|
16
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
+
private _renderCategory;
|
|
18
|
+
/**
|
|
19
|
+
* groups 를 CATEGORY_ORDER 에 따라 정렬한 [category, items][] 로 반환.
|
|
20
|
+
* 정의된 순서대로 먼저 나열, 정의 안 된 카테고리는 마지막에 insertion 순으로 붙는다.
|
|
21
|
+
*/
|
|
22
|
+
private _orderedEntries;
|
|
23
|
+
/**
|
|
24
|
+
* 도메인들을 extType 별로 그룹핑하고 검색어로 필터링한다.
|
|
25
|
+
* 매치 0건인 카테고리는 결과에서 자동 제외 — 빈 섹션은 화면에 노출되지 않는다.
|
|
26
|
+
*/
|
|
27
|
+
private _groupAndFilter;
|
|
28
|
+
private _select;
|
|
29
|
+
private _toggleSection;
|
|
30
|
+
private _categoryLabel;
|
|
31
|
+
updated(changed: Map<string, unknown>): void;
|
|
32
|
+
get applicationMeta(): {
|
|
33
|
+
icon?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export {};
|