@dssp/dssp 1.0.0 → 1.0.2

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 (35) hide show
  1. package/dist-client/bootstrap.d.ts +9 -0
  2. package/dist-client/bootstrap.js +304 -0
  3. package/dist-client/bootstrap.js.map +1 -0
  4. package/dist-client/entries/auth/checkin.d.ts +38 -0
  5. package/dist-client/entries/auth/checkin.js +546 -0
  6. package/dist-client/entries/auth/checkin.js.map +1 -0
  7. package/dist-client/entries/public/home.d.ts +8 -0
  8. package/dist-client/entries/public/home.js +97 -0
  9. package/dist-client/entries/public/home.js.map +1 -0
  10. package/dist-client/icons/menu-icons.d.ts +5 -0
  11. package/dist-client/icons/menu-icons.js +84 -0
  12. package/dist-client/icons/menu-icons.js.map +1 -0
  13. package/dist-client/index.d.ts +0 -0
  14. package/dist-client/index.js +2 -0
  15. package/dist-client/index.js.map +1 -0
  16. package/dist-client/menu.d.ts +1 -0
  17. package/dist-client/menu.js +4 -0
  18. package/dist-client/menu.js.map +1 -0
  19. package/dist-client/route.d.ts +1 -0
  20. package/dist-client/route.js +7 -0
  21. package/dist-client/route.js.map +1 -0
  22. package/dist-client/themes/dark.css +51 -0
  23. package/dist-client/themes/light.css +51 -0
  24. package/dist-client/tsconfig.tsbuildinfo +1 -0
  25. package/dist-client/viewparts/menu-tools.d.ts +16 -0
  26. package/dist-client/viewparts/menu-tools.js +171 -0
  27. package/dist-client/viewparts/menu-tools.js.map +1 -0
  28. package/dist-client/viewparts/user-circle.d.ts +5 -0
  29. package/dist-client/viewparts/user-circle.js +26 -0
  30. package/dist-client/viewparts/user-circle.js.map +1 -0
  31. package/dist-server/index.d.ts +0 -0
  32. package/dist-server/index.js +1 -0
  33. package/dist-server/index.js.map +1 -0
  34. package/dist-server/tsconfig.tsbuildinfo +1 -0
  35. package/package.json +6 -6
@@ -0,0 +1,9 @@
1
+ import '@things-factory/notification/dist-client';
2
+ import '@things-factory/setting-ui/dist-client';
3
+ import '@material/web/icon/icon.js';
4
+ import '@operato/i18n/ox-i18n.js';
5
+ import '@things-factory/notification';
6
+ import './viewparts/user-circle';
7
+ import './viewparts/menu-tools';
8
+ import '@dssp/project/dist-client/viewparts/domain-switch';
9
+ export default function bootstrap(): Promise<void>;
@@ -0,0 +1,304 @@
1
+ import '@things-factory/notification/dist-client'; /* for notification-setting-let */
2
+ import '@things-factory/setting-ui/dist-client'; /* for theme-mode-setting-let */
3
+ import '@material/web/icon/icon.js';
4
+ import '@operato/i18n/ox-i18n.js';
5
+ import '@things-factory/notification';
6
+ import './viewparts/user-circle';
7
+ import './viewparts/menu-tools';
8
+ import '@dssp/project/dist-client/viewparts/domain-switch';
9
+ import { html } from 'lit-html';
10
+ import { registerDefaultGroups } from '@operato/board';
11
+ import { navigate, store } from '@operato/shell';
12
+ import { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_LEVEL, VIEWPART_POSITION } from '@operato/layout';
13
+ import { APPEND_APP_TOOL } from '@things-factory/apptool-base/client';
14
+ import { setupAppToolPart } from '@things-factory/apptool-ui/dist-client';
15
+ import { setupContextUIPart } from '@things-factory/context-ui/dist-client';
16
+ import { hasPrivilege } from '@things-factory/auth-base/dist-client';
17
+ import { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client';
18
+ import { ADD_MORENDA } from '@things-factory/more-base/client';
19
+ import { ADD_SETTING } from '@things-factory/setting-base/dist-client';
20
+ console.log(`%c
21
+ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄▄
22
+ ▓ ▓ ▓ ▀ ▓ ▀ ▓ ▓
23
+ ▓ ▓ ▀▀▄▄ ▀▀▄▄ ▓▀▀
24
+ ▓ ▓ ▄ ▓ ▄ ▓ ▓
25
+ ▀▀▀ ▀▀▀ ▀▀▀ ▀
26
+ `, 'background: #222; color: #bada55');
27
+ export default async function bootstrap() {
28
+ var _a;
29
+ /* set board-modeller group and default templates */
30
+ registerDefaultGroups();
31
+ await setupAppToolPart({
32
+ toolbar: true,
33
+ busybar: true,
34
+ mdibar: false
35
+ });
36
+ await setupContextUIPart({
37
+ titlebar: 'header',
38
+ contextToolbar: 'page-footer'
39
+ });
40
+ /* append top-menu to layout */
41
+ var state = store.getState();
42
+ var width = ((_a = state.layout) === null || _a === void 0 ? void 0 : _a.width) || 'WIDE';
43
+ /* header: 현재 체크인된 테넌트(도메인/프로젝트) 표시 + 종류별 그룹핑된 도메인 스위치 */
44
+ appendViewpart({
45
+ name: 'dssp-domain-indicator',
46
+ viewpart: {
47
+ show: true,
48
+ level: VIEWPART_LEVEL.NORMAL,
49
+ template: html `
50
+ <div style="background-color: var(--md-sys-color-primary-container, rgb(215 231 241));">
51
+ <dssp-domain-switch attrname="description"></dssp-domain-switch>
52
+ </div>
53
+ `
54
+ },
55
+ position: VIEWPART_POSITION.HEADERBAR
56
+ });
57
+ appendViewpart({
58
+ name: 'dssp-topmenu',
59
+ viewpart: {
60
+ show: true,
61
+ template: html ` <menu-tools></menu-tools> `
62
+ },
63
+ position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR
64
+ });
65
+ store.subscribe(async () => {
66
+ var state = store.getState();
67
+ if (state.layout.width == width) {
68
+ return;
69
+ }
70
+ width = state.layout.width;
71
+ updateViewpart('dssp-topmenu', {
72
+ position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,
73
+ level: VIEWPART_LEVEL.TOPMOST
74
+ });
75
+ });
76
+ /* setting app-tools */
77
+ store.dispatch({
78
+ type: APPEND_APP_TOOL,
79
+ tool: {
80
+ name: 'app-brand',
81
+ template: html ` <span style="font-size: 1.2em;">AIM</span> `,
82
+ position: TOOL_POSITION.FRONT
83
+ }
84
+ });
85
+ store.dispatch({
86
+ type: APPEND_APP_TOOL,
87
+ tool: {
88
+ name: 'notification-badge',
89
+ template: html `
90
+ <notification-badge
91
+ @click=${e => {
92
+ toggleOverlay('notification', {
93
+ backdrop: true
94
+ });
95
+ }}
96
+ >
97
+ </notification-badge>
98
+ `,
99
+ position: TOOL_POSITION.REAR
100
+ }
101
+ });
102
+ appendViewpart({
103
+ name: 'notification',
104
+ viewpart: {
105
+ show: false,
106
+ hovering: 'edge',
107
+ template: html ` <notification-list style="min-width: 300px;"></notification-list> `
108
+ },
109
+ position: VIEWPART_POSITION.ASIDEBAR
110
+ });
111
+ /* add setting morenda */
112
+ store.dispatch({
113
+ type: ADD_MORENDA,
114
+ morenda: {
115
+ icon: html ` <md-icon>settings</md-icon> `,
116
+ name: html ` <ox-i18n msgid="label.setting"></ox-i18n> `,
117
+ action: () => {
118
+ navigate('setting');
119
+ }
120
+ }
121
+ });
122
+ /* set auth management menus into more-panel */
123
+ setAuthManagementMenus();
124
+ if (await hasPrivilege({
125
+ privilege: 'mutation',
126
+ category: 'user',
127
+ domainOwnerGranted: true,
128
+ superUserGranted: true
129
+ })) {
130
+ store.dispatch({
131
+ type: ADD_MORENDA,
132
+ morenda: {
133
+ icon: html ` <md-icon>vpn_key</md-icon> `,
134
+ name: html ` <ox-i18n msgid="text.oauth2-clients"></ox-i18n> `,
135
+ action: () => {
136
+ navigate('oauth2-clients');
137
+ }
138
+ }
139
+ });
140
+ }
141
+ if (await hasPrivilege({
142
+ privilege: 'mutation',
143
+ category: 'board',
144
+ domainOwnerGranted: true,
145
+ superUserGranted: true
146
+ })) {
147
+ store.dispatch({
148
+ type: ADD_MORENDA,
149
+ morenda: {
150
+ icon: html ` <md-icon>font_download</md-icon> `,
151
+ name: html ` <ox-i18n msgid="menu.fonts"></ox-i18n> `,
152
+ action: () => {
153
+ navigate('font-list');
154
+ }
155
+ }
156
+ });
157
+ store.dispatch({
158
+ type: ADD_MORENDA,
159
+ morenda: {
160
+ icon: html ` <md-icon>dvr</md-icon> `,
161
+ name: html ` <ox-i18n msgid="menu.board-list"></ox-i18n> `,
162
+ action: () => {
163
+ navigate('board-list');
164
+ }
165
+ }
166
+ });
167
+ store.dispatch({
168
+ type: ADD_MORENDA,
169
+ morenda: {
170
+ icon: html ` <md-icon>dashboard</md-icon> `,
171
+ name: html ` <ox-i18n msgid="menu.board-template"></ox-i18n> `,
172
+ action: () => {
173
+ navigate('board-template-list');
174
+ }
175
+ }
176
+ });
177
+ }
178
+ if (await hasPrivilege({
179
+ privilege: 'query',
180
+ category: 'attachment',
181
+ domainOwnerGranted: true,
182
+ superUserGranted: true
183
+ })) {
184
+ store.dispatch({
185
+ type: ADD_MORENDA,
186
+ morenda: {
187
+ icon: html ` <md-icon>attachment</md-icon> `,
188
+ name: html ` <ox-i18n msgid="menu.attachments"></ox-i18n> `,
189
+ action: () => {
190
+ navigate('attachment-list');
191
+ }
192
+ }
193
+ });
194
+ }
195
+ if (await hasPrivilege({
196
+ domainOwnerGranted: true,
197
+ superUserGranted: true
198
+ })) {
199
+ store.dispatch({
200
+ type: ADD_MORENDA,
201
+ morenda: {
202
+ icon: html ` <md-icon>code</md-icon> `,
203
+ name: html ` <ox-i18n msgid="title.code-management"></ox-i18n> `,
204
+ action: () => {
205
+ navigate('codes');
206
+ }
207
+ }
208
+ });
209
+ store.dispatch({
210
+ type: ADD_MORENDA,
211
+ morenda: {
212
+ icon: html ` <md-icon>contacts</md-icon> `,
213
+ name: html ` <ox-i18n msgid="title.contact list"></ox-i18n> `,
214
+ action: () => {
215
+ navigate('contact-list');
216
+ }
217
+ }
218
+ });
219
+ store.dispatch({
220
+ type: ADD_MORENDA,
221
+ morenda: {
222
+ icon: html ` <md-icon>account_tree</md-icon> `,
223
+ name: html ` <ox-i18n msgid="title.department list"></ox-i18n> `,
224
+ action: () => {
225
+ navigate('department-list');
226
+ }
227
+ }
228
+ });
229
+ store.dispatch({
230
+ type: ADD_MORENDA,
231
+ morenda: {
232
+ icon: html ` <md-icon>badge</md-icon> `,
233
+ name: html ` <ox-i18n msgid="title.employee list"></ox-i18n> `,
234
+ action: () => {
235
+ navigate('employee-list');
236
+ }
237
+ }
238
+ });
239
+ }
240
+ if (await hasPrivilege({ privilege: 'mutation', category: 'terminology', domainOwnerGranted: true })) {
241
+ store.dispatch({
242
+ type: ADD_MORENDA,
243
+ morenda: {
244
+ icon: html ` <md-icon>translate</md-icon> `,
245
+ name: html ` <ox-i18n msgid="title.terminology"></ox-i18n> `,
246
+ action: () => {
247
+ navigate('terminology-page');
248
+ }
249
+ }
250
+ });
251
+ }
252
+ if (await hasPrivilege({
253
+ privilege: 'mutation',
254
+ category: 'scenario',
255
+ domainOwnerGranted: true,
256
+ superUserGranted: true
257
+ })) {
258
+ store.dispatch({
259
+ type: ADD_MORENDA,
260
+ morenda: {
261
+ icon: html ` <md-icon>device_hub</md-icon> `,
262
+ name: html ` <ox-i18n msgid="text.connection"></ox-i18n> `,
263
+ action: () => {
264
+ navigate('connection');
265
+ }
266
+ }
267
+ });
268
+ store.dispatch({
269
+ type: ADD_MORENDA,
270
+ morenda: {
271
+ icon: html ` <md-icon>format_list_numbered</md-icon> `,
272
+ name: html ` <ox-i18n msgid="text.scenario"></ox-i18n> `,
273
+ action: () => {
274
+ navigate('scenario');
275
+ }
276
+ }
277
+ });
278
+ store.dispatch({
279
+ type: ADD_MORENDA,
280
+ morenda: {
281
+ icon: html ` <md-icon>hub</md-icon> `,
282
+ name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n>&nbsp;(beta)`,
283
+ action: () => {
284
+ navigate('integration-analysis');
285
+ }
286
+ }
287
+ });
288
+ }
289
+ store.dispatch({
290
+ type: ADD_SETTING,
291
+ setting: {
292
+ seq: 10,
293
+ template: html ` <theme-mode-setting-let></theme-mode-setting-let> `
294
+ }
295
+ });
296
+ store.dispatch({
297
+ type: ADD_SETTING,
298
+ setting: {
299
+ seq: 20,
300
+ template: html ` <notification-setting-let></notification-setting-let> `
301
+ }
302
+ });
303
+ }
304
+ //# sourceMappingURL=bootstrap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../client/bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,0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CAAA;QAEF,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,IAAI,CAAA,0BAA0B;gBACpC,IAAI,EAAE,IAAI,CAAA,oEAAoE;gBAC9E,MAAM,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,sBAAsB,CAAC,CAAA;gBAClC,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'\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_LEVEL, VIEWPART_POSITION } 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 /* header: 현재 체크인된 테넌트(도메인/프로젝트) 표시 + 종류별 그룹핑된 도메인 스위치 */\n appendViewpart({\n name: 'dssp-domain-indicator',\n viewpart: {\n show: true,\n level: VIEWPART_LEVEL.NORMAL,\n template: html`\n <div style=\"background-color: var(--md-sys-color-primary-container, rgb(215 231 241));\">\n <dssp-domain-switch attrname=\"description\"></dssp-domain-switch>\n </div>\n `\n },\n position: VIEWPART_POSITION.HEADERBAR\n })\n\n appendViewpart({\n name: 'dssp-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('dssp-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;\">AIM</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 store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dashboard</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n action: () => {\n navigate('board-template-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'query',\n category: 'attachment',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>attachment</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.attachments\"></ox-i18n> `,\n action: () => {\n navigate('attachment-list')\n }\n }\n })\n }\n\n\n if (\n await hasPrivilege({\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>code</md-icon> `,\n name: html` <ox-i18n msgid=\"title.code-management\"></ox-i18n> `,\n action: () => {\n navigate('codes')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>contacts</md-icon> `,\n name: html` <ox-i18n msgid=\"title.contact list\"></ox-i18n> `,\n action: () => {\n navigate('contact-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>account_tree</md-icon> `,\n name: html` <ox-i18n msgid=\"title.department list\"></ox-i18n> `,\n action: () => {\n navigate('department-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>badge</md-icon> `,\n name: html` <ox-i18n msgid=\"title.employee list\"></ox-i18n> `,\n action: () => {\n navigate('employee-list')\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 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>&nbsp;(beta)`,\n action: () => {\n navigate('integration-analysis')\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"]}
@@ -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 {};