@dssp/dkpi 1.0.0-alpha.5 → 1.0.0-alpha.50
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/assets/favicon.ico +0 -0
- package/assets/manifest/apple-1024.png +0 -0
- package/assets/manifest/apple-120.png +0 -0
- package/assets/manifest/apple-152.png +0 -0
- package/assets/manifest/apple-167.png +0 -0
- package/assets/manifest/apple-180.png +0 -0
- package/assets/manifest/apple-touch-icon.png +0 -0
- package/assets/manifest/badge-128x128.png +0 -0
- package/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
- package/assets/manifest/chrome-touch-icon-192x192.png +0 -0
- package/assets/manifest/icon-128x128.png +0 -0
- package/assets/manifest/icon-192x192.png +0 -0
- package/assets/manifest/icon-512x512.png +0 -0
- package/assets/manifest/icon-72x72.png +0 -0
- package/assets/manifest/icon-96x96.png +0 -0
- package/assets/manifest/image-metaog.png +0 -0
- package/assets/manifest/maskable_icon.png +0 -0
- package/assets/manifest/ms-icon-144x144.png +0 -0
- package/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
- package/assets/videos/intro.mp4 +0 -0
- package/dist-client/bootstrap.js +64 -4
- package/dist-client/bootstrap.js.map +1 -1
- package/dist-client/components/kpi-single-boxplot-chart.d.ts +24 -0
- package/dist-client/components/kpi-single-boxplot-chart.js +317 -0
- package/dist-client/components/kpi-single-boxplot-chart.js.map +1 -0
- package/dist-client/components/sv-pagenation-control.d.ts +18 -0
- package/dist-client/components/sv-pagenation-control.js +142 -0
- package/dist-client/components/sv-pagenation-control.js.map +1 -0
- package/dist-client/icons/menu-icons.d.ts +6 -0
- package/dist-client/icons/menu-icons.js +42 -0
- package/dist-client/icons/menu-icons.js.map +1 -1
- package/dist-client/menu.d.ts +23 -1
- package/dist-client/menu.js +57 -2
- package/dist-client/menu.js.map +1 -1
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-editor-page.d.ts +58 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-editor-page.js +731 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-editor-page.js.map +1 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-importer.d.ts +23 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-importer.js +76 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-importer.js.map +1 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-list-page.d.ts +69 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-list-page.js +385 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-list-page.js.map +1 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.d.ts +12 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.js +174 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.js.map +1 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.d.ts +41 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.js +191 -0
- package/dist-client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.js.map +1 -0
- package/dist-client/pages/kpi-value/kpi-value-importer.d.ts +23 -0
- package/dist-client/pages/kpi-value/kpi-value-importer.js +93 -0
- package/dist-client/pages/kpi-value/kpi-value-importer.js.map +1 -0
- package/dist-client/pages/kpi-value/kpi-value-list-page.d.ts +72 -0
- package/dist-client/pages/kpi-value/kpi-value-list-page.js +465 -0
- package/dist-client/pages/kpi-value/kpi-value-list-page.js.map +1 -0
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.d.ts +13 -0
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.js +248 -0
- package/dist-client/pages/project-complete-tabs/pc-tab1-plan.js.map +1 -0
- package/dist-client/pages/project-complete-tabs/pc-tab2-rating.d.ts +10 -0
- package/dist-client/pages/project-complete-tabs/pc-tab2-rating.js +229 -0
- package/dist-client/pages/project-complete-tabs/pc-tab2-rating.js.map +1 -0
- package/dist-client/pages/project-complete-tabs/pc-tab3-upload.d.ts +12 -0
- package/dist-client/pages/project-complete-tabs/pc-tab3-upload.js +213 -0
- package/dist-client/pages/project-complete-tabs/pc-tab3-upload.js.map +1 -0
- package/dist-client/pages/sv-project-complete.d.ts +22 -0
- package/dist-client/pages/sv-project-complete.js +213 -0
- package/dist-client/pages/sv-project-complete.js.map +1 -0
- package/dist-client/pages/sv-project-completed-list.d.ts +24 -0
- package/dist-client/pages/sv-project-completed-list.js +357 -0
- package/dist-client/pages/sv-project-completed-list.js.map +1 -0
- package/dist-client/pages/sv-project-detail.d.ts +13 -0
- package/dist-client/pages/sv-project-detail.js +494 -0
- package/dist-client/pages/sv-project-detail.js.map +1 -0
- package/dist-client/pages/sv-project-list.d.ts +157 -0
- package/dist-client/pages/sv-project-list.js +431 -0
- package/dist-client/pages/sv-project-list.js.map +1 -0
- package/dist-client/route.d.ts +1 -1
- package/dist-client/route.js +22 -1
- package/dist-client/route.js.map +1 -1
- package/dist-client/shared/complete-api.d.ts +5 -0
- package/dist-client/shared/complete-api.js +125 -0
- package/dist-client/shared/complete-api.js.map +1 -0
- package/dist-client/shared/func.d.ts +2 -0
- package/dist-client/shared/func.js +22 -0
- package/dist-client/shared/func.js.map +1 -0
- package/dist-client/themes/dark.css +24 -24
- package/dist-client/themes/light.css +23 -23
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-client/viewparts/menu-tools.d.ts +37 -1
- package/dist-client/viewparts/menu-tools.js +348 -15
- package/dist-client/viewparts/menu-tools.js.map +1 -1
- package/dist-server/index.d.ts +2 -0
- package/dist-server/index.js +5 -0
- package/dist-server/index.js.map +1 -1
- package/dist-server/migrations/index.d.ts +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/scripts/calculate-kpi-scores.d.ts +10 -0
- package/dist-server/scripts/calculate-kpi-scores.js +271 -0
- package/dist-server/scripts/calculate-kpi-scores.js.map +1 -0
- package/dist-server/scripts/load-grade-data-migration.d.ts +10 -0
- package/dist-server/scripts/load-grade-data-migration.js +194 -0
- package/dist-server/scripts/load-grade-data-migration.js.map +1 -0
- package/dist-server/scripts/propagate-parent-kpi-values.d.ts +10 -0
- package/dist-server/scripts/propagate-parent-kpi-values.js +440 -0
- package/dist-server/scripts/propagate-parent-kpi-values.js.map +1 -0
- package/dist-server/service/index.d.ts +6 -0
- package/dist-server/service/index.js +21 -0
- package/dist-server/service/index.js.map +1 -0
- package/dist-server/service/kpi-metric-value/index.d.ts +4 -0
- package/dist-server/service/kpi-metric-value/index.js +8 -0
- package/dist-server/service/kpi-metric-value/index.js.map +1 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.d.ts +7 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.js +112 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-mutation.js.map +1 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-query.d.ts +7 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-query.js +47 -0
- package/dist-server/service/kpi-metric-value/kpi-metric-value-query.js.map +1 -0
- package/dist-server/service/kpi-value/index.d.ts +3 -0
- package/dist-server/service/kpi-value/index.js +7 -0
- package/dist-server/service/kpi-value/index.js.map +1 -0
- package/dist-server/service/kpi-value/kpi-value-query.d.ts +7 -0
- package/dist-server/service/kpi-value/kpi-value-query.js +47 -0
- package/dist-server/service/kpi-value/kpi-value-query.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +62 -51
- package/schema.graphql +11497 -3215
- package/things-factory.config.js +7 -1
package/assets/favicon.ico
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/assets/videos/intro.mp4
CHANGED
|
Binary file
|
package/dist-client/bootstrap.js
CHANGED
|
@@ -104,6 +104,19 @@ export default async function bootstrap() {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
|
+
/* add env-var morenda */
|
|
108
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'env-var', domainOwnerGranted: true, superUserGranted: true })) {
|
|
109
|
+
store.dispatch({
|
|
110
|
+
type: ADD_MORENDA,
|
|
111
|
+
morenda: {
|
|
112
|
+
icon: html ` <md-icon>variables</md-icon> `,
|
|
113
|
+
name: html ` <ox-i18n msgid="label.env-var"></ox-i18n> `,
|
|
114
|
+
action: () => {
|
|
115
|
+
navigate('env-vars');
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
}
|
|
107
120
|
/* set auth management menus into more-panel */
|
|
108
121
|
setAuthManagementMenus();
|
|
109
122
|
if (await hasPrivilege({
|
|
@@ -149,6 +162,16 @@ export default async function bootstrap() {
|
|
|
149
162
|
}
|
|
150
163
|
}
|
|
151
164
|
});
|
|
165
|
+
store.dispatch({
|
|
166
|
+
type: ADD_MORENDA,
|
|
167
|
+
morenda: {
|
|
168
|
+
icon: html ` <md-icon>dashboard</md-icon> `,
|
|
169
|
+
name: html ` <ox-i18n msgid="menu.board-template"></ox-i18n> `,
|
|
170
|
+
action: () => {
|
|
171
|
+
navigate('board-template-list');
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
});
|
|
152
175
|
}
|
|
153
176
|
if (await hasPrivilege({
|
|
154
177
|
privilege: 'query',
|
|
@@ -167,14 +190,51 @@ export default async function bootstrap() {
|
|
|
167
190
|
}
|
|
168
191
|
});
|
|
169
192
|
}
|
|
170
|
-
if (await hasPrivilege({
|
|
193
|
+
if (await hasPrivilege({
|
|
194
|
+
privilege: 'mutation',
|
|
195
|
+
category: 'scenario',
|
|
196
|
+
domainOwnerGranted: true,
|
|
197
|
+
superUserGranted: true
|
|
198
|
+
})) {
|
|
171
199
|
store.dispatch({
|
|
172
200
|
type: ADD_MORENDA,
|
|
173
201
|
morenda: {
|
|
174
|
-
icon: html ` <md-icon>
|
|
175
|
-
name: html ` <ox-i18n msgid="
|
|
202
|
+
icon: html ` <md-icon>device_hub</md-icon> `,
|
|
203
|
+
name: html ` <ox-i18n msgid="text.connection"></ox-i18n> `,
|
|
176
204
|
action: () => {
|
|
177
|
-
navigate('
|
|
205
|
+
navigate('connection');
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
store.dispatch({
|
|
210
|
+
type: ADD_MORENDA,
|
|
211
|
+
morenda: {
|
|
212
|
+
icon: html ` <md-icon>format_list_numbered</md-icon> `,
|
|
213
|
+
name: html ` <ox-i18n msgid="text.scenario"></ox-i18n> `,
|
|
214
|
+
action: () => {
|
|
215
|
+
navigate('scenario');
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
store.dispatch({
|
|
220
|
+
type: ADD_MORENDA,
|
|
221
|
+
morenda: {
|
|
222
|
+
icon: html ` <md-icon>hub</md-icon> `,
|
|
223
|
+
name: html ` <ox-i18n msgid="text.integration analysis"></ox-i18n> (beta)`,
|
|
224
|
+
action: () => {
|
|
225
|
+
navigate('integration-analysis');
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {
|
|
231
|
+
store.dispatch({
|
|
232
|
+
type: ADD_MORENDA,
|
|
233
|
+
morenda: {
|
|
234
|
+
icon: html ` <md-icon>app_registration</md-icon> `,
|
|
235
|
+
name: html ` <ox-i18n msgid="title.state-register"></ox-i18n> `,
|
|
236
|
+
action: () => {
|
|
237
|
+
navigate('state-register-page');
|
|
178
238
|
}
|
|
179
239
|
}
|
|
180
240
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceR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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: 'dkpi-topmenu',\n viewpart: {\n show: true,\n template: html` <menu-tools></menu-tools> `\n },\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n\n store.subscribe(async () => {\n var state = store.getState() as any\n\n if (state.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n updateViewpart('dkpi-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">KPI</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'notification-badge',\n template: html`\n <notification-badge\n @click=${e => {\n toggleOverlay('notification', {\n backdrop: true\n })\n }}\n >\n </notification-badge>\n `,\n position: TOOL_POSITION.REAR\n }\n })\n\n appendViewpart({\n name: 'notification',\n viewpart: {\n show: false,\n hovering: 'edge',\n template: html` <notification-list style=\"min-width: 300px;\"></notification-list> `\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n /* 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;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,gBAAgB,CAAC;QACrB,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,M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AAC,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,IAAI,MAAM,YAAY,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC;QACxG,KAAK,CAAC,QAAQ,CAAC;YACb,IAAI,EAAE,WAAW;YACjB,OAAO,EAAE;gBACP,IAAI,EAAE,IAAI,CAAA,uCAAuC;gBACjD,IAAI,EAAE,IAAI,CAAA,oDAAoD;gBAC9D,MAAM,EAAE,GAAG,EAAE;oBACX,QAAQ,CAAC,qBAAqB,CAAC,CAAA;gBACjC,CAAC;aACF;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,qDAAqD;SACpE;KACF,CAAC,CAAA;IAEF,KAAK,CAAC,QAAQ,CAAC;QACb,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE;YACP,GAAG,EAAE,EAAE;YACP,QAAQ,EAAE,IAAI,CAAA,yDAAyD;SACxE;KACF,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import '@things-factory/notification/dist-client' /* for notification-setting-let */\nimport '@things-factory/setting-ui/dist-client' /* for theme-mode-setting-let */\n\nimport '@material/web/icon/icon.js'\nimport '@operato/i18n/ox-i18n.js'\nimport '@things-factory/notification'\nimport './viewparts/user-circle'\nimport './viewparts/menu-tools'\n\nimport { html } from 'lit-html'\n\nimport { registerDefaultGroups } from '@operato/board'\nimport { navigate, store } from '@operato/shell'\n\nimport { appendViewpart, updateViewpart, toggleOverlay, TOOL_POSITION, VIEWPART_POSITION, VIEWPART_LEVEL } from '@operato/layout'\nimport { APPEND_APP_TOOL } from '@things-factory/apptool-base/client'\nimport { setupAppToolPart } from '@things-factory/apptool-ui/dist-client'\nimport { setupContextUIPart } from '@things-factory/context-ui/dist-client'\nimport { hasPrivilege } from '@things-factory/auth-base/dist-client'\nimport { setAuthManagementMenus } from '@things-factory/auth-ui/dist-client'\nimport { ADD_MORENDA } from '@things-factory/more-base/client'\nimport { ADD_SETTING } from '@things-factory/setting-base/dist-client'\n\nconsole.log(\n `%c\n▄▄▄ ▄ ▄▄ ▄▄▄ ▄\n▓ ▓ ▓ ▓ ▓ ▓ ▀\n▓ ▓ ▓▓ ▓▀▀ ▓\n▓ ▓ ▓ ▓ ▓ ▓\n▀▀▀ ▀ ▀▀ ▀ ▀\n`,\n 'background: #222; color: #bada55'\n)\n\nexport default async function bootstrap() {\n /* set board-modeller group and default templates */\n registerDefaultGroups()\n\n await setupAppToolPart({\n toolbar: true,\n busybar: true,\n mdibar: false\n })\n\n await setupContextUIPart({\n titlebar: 'header',\n contextToolbar: 'page-footer'\n })\n\n /* append top-menu to layout */\n var state = store.getState() as any\n var width = state.layout?.width || 'WIDE'\n\n appendViewpart({\n name: 'dkpi-topmenu',\n viewpart: {\n show: true,\n template: html` <menu-tools></menu-tools> `\n },\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR\n })\n\n store.subscribe(async () => {\n var state = store.getState() as any\n\n if (state.layout.width == width) {\n return\n }\n\n width = state.layout.width\n\n updateViewpart('dkpi-topmenu', {\n position: width == 'WIDE' ? VIEWPART_POSITION.NAVBAR : VIEWPART_POSITION.FOOTERBAR,\n level: VIEWPART_LEVEL.TOPMOST\n })\n })\n\n /* setting app-tools */\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'app-brand',\n template: html` <span style=\"font-size: 1.2em;\">KPI</span> `,\n position: TOOL_POSITION.FRONT\n }\n })\n\n store.dispatch({\n type: APPEND_APP_TOOL,\n tool: {\n name: 'notification-badge',\n template: html`\n <notification-badge\n @click=${e => {\n toggleOverlay('notification', {\n backdrop: true\n })\n }}\n >\n </notification-badge>\n `,\n position: TOOL_POSITION.REAR\n }\n })\n\n appendViewpart({\n name: 'notification',\n viewpart: {\n show: false,\n hovering: 'edge',\n template: html` <notification-list style=\"min-width: 300px;\"></notification-list> `\n },\n position: VIEWPART_POSITION.ASIDEBAR\n })\n\n /* add setting morenda */\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>settings</md-icon> `,\n name: html` <ox-i18n msgid=\"label.setting\"></ox-i18n> `,\n action: () => {\n navigate('setting')\n }\n }\n })\n\n /* add env-var morenda */\n if (await hasPrivilege({ privilege: 'mutation', category: 'env-var', domainOwnerGranted: true, superUserGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>variables</md-icon> `,\n name: html` <ox-i18n msgid=\"label.env-var\"></ox-i18n> `,\n action: () => {\n navigate('env-vars')\n }\n }\n })\n }\n\n /* set auth management menus into more-panel */\n setAuthManagementMenus()\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'user',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>vpn_key</md-icon> `,\n name: html` <ox-i18n msgid=\"text.oauth2-clients\"></ox-i18n> `,\n action: () => {\n navigate('oauth2-clients')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'board',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>font_download</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.fonts\"></ox-i18n> `,\n action: () => {\n navigate('font-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dvr</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-list\"></ox-i18n> `,\n action: () => {\n navigate('board-list')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>dashboard</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.board-template\"></ox-i18n> `,\n action: () => {\n navigate('board-template-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'query',\n category: 'attachment',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>attachment</md-icon> `,\n name: html` <ox-i18n msgid=\"menu.attachments\"></ox-i18n> `,\n action: () => {\n navigate('attachment-list')\n }\n }\n })\n }\n\n if (\n await hasPrivilege({\n privilege: 'mutation',\n category: 'scenario',\n domainOwnerGranted: true,\n superUserGranted: true\n })\n ) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>device_hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.connection\"></ox-i18n> `,\n action: () => {\n navigate('connection')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>format_list_numbered</md-icon> `,\n name: html` <ox-i18n msgid=\"text.scenario\"></ox-i18n> `,\n action: () => {\n navigate('scenario')\n }\n }\n })\n\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>hub</md-icon> `,\n name: html` <ox-i18n msgid=\"text.integration analysis\"></ox-i18n> (beta)`,\n action: () => {\n navigate('integration-analysis')\n }\n }\n })\n }\n\n if (await hasPrivilege({ privilege: 'mutation', category: 'state-register', domainOwnerGranted: true })) {\n store.dispatch({\n type: ADD_MORENDA,\n morenda: {\n icon: html` <md-icon>app_registration</md-icon> `,\n name: html` <ox-i18n msgid=\"title.state-register\"></ox-i18n> `,\n action: () => {\n navigate('state-register-page')\n }\n }\n })\n }\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 10,\n template: html` <theme-mode-setting-let></theme-mode-setting-let> `\n }\n })\n\n store.dispatch({\n type: ADD_SETTING,\n setting: {\n seq: 20,\n template: html` <notification-setting-let></notification-setting-let> `\n }\n })\n}\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class KpiSingleBoxplotChart extends LitElement {
|
|
3
|
+
data: any;
|
|
4
|
+
minKey: string;
|
|
5
|
+
maxKey: string;
|
|
6
|
+
meanKey: string;
|
|
7
|
+
medianKey: string;
|
|
8
|
+
q1Key: string;
|
|
9
|
+
q3Key: string;
|
|
10
|
+
valueKey: string;
|
|
11
|
+
color: string;
|
|
12
|
+
vertical: boolean;
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
private chartWidth;
|
|
15
|
+
private chartHeight;
|
|
16
|
+
private resizeObserver?;
|
|
17
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
updated(): void;
|
|
21
|
+
private drawSingleBoxplot;
|
|
22
|
+
private drawVerticalBoxplot;
|
|
23
|
+
private drawHorizontalBoxplot;
|
|
24
|
+
}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { LitElement, html, css } from 'lit';
|
|
3
|
+
import { customElement, property } from 'lit/decorators.js';
|
|
4
|
+
import * as d3 from 'd3';
|
|
5
|
+
let KpiSingleBoxplotChart = class KpiSingleBoxplotChart extends LitElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.data = {};
|
|
9
|
+
this.minKey = 'min';
|
|
10
|
+
this.maxKey = 'max';
|
|
11
|
+
this.meanKey = 'mean';
|
|
12
|
+
this.medianKey = 'median';
|
|
13
|
+
this.q1Key = 'q1';
|
|
14
|
+
this.q3Key = 'q3';
|
|
15
|
+
this.valueKey = 'value';
|
|
16
|
+
this.color = '#2196f3';
|
|
17
|
+
this.vertical = true; // true: 세로형, false: 가로형
|
|
18
|
+
this.chartWidth = 0;
|
|
19
|
+
this.chartHeight = 0;
|
|
20
|
+
}
|
|
21
|
+
render() {
|
|
22
|
+
return html `
|
|
23
|
+
<svg
|
|
24
|
+
id="single-boxplot"
|
|
25
|
+
width=${this.chartWidth}
|
|
26
|
+
height=${this.chartHeight}
|
|
27
|
+
viewBox="0 0 ${this.chartWidth} ${this.chartHeight}"
|
|
28
|
+
preserveAspectRatio="xMidYMid meet"
|
|
29
|
+
></svg>
|
|
30
|
+
`;
|
|
31
|
+
}
|
|
32
|
+
connectedCallback() {
|
|
33
|
+
super.connectedCallback();
|
|
34
|
+
this.resizeObserver = new ResizeObserver(entries => {
|
|
35
|
+
for (const entry of entries) {
|
|
36
|
+
const rect = entry.contentRect;
|
|
37
|
+
this.chartWidth = rect.width;
|
|
38
|
+
this.chartHeight = rect.height;
|
|
39
|
+
this.requestUpdate();
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
this.resizeObserver.observe(this);
|
|
43
|
+
}
|
|
44
|
+
disconnectedCallback() {
|
|
45
|
+
var _a;
|
|
46
|
+
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
47
|
+
super.disconnectedCallback();
|
|
48
|
+
}
|
|
49
|
+
updated() {
|
|
50
|
+
this.drawSingleBoxplot();
|
|
51
|
+
}
|
|
52
|
+
drawSingleBoxplot() {
|
|
53
|
+
const svg = d3.select(this.renderRoot.querySelector('#single-boxplot'));
|
|
54
|
+
svg.selectAll('*').remove();
|
|
55
|
+
// 데이터 검증
|
|
56
|
+
if (!this.data || Object.keys(this.data).length === 0) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
const w = this.chartWidth || 200;
|
|
60
|
+
const h = this.chartHeight || 200;
|
|
61
|
+
const margin = 20;
|
|
62
|
+
const plotW = w - margin * 2;
|
|
63
|
+
const plotH = h - margin * 2;
|
|
64
|
+
// 필수 필드 검증
|
|
65
|
+
const requiredFields = [this.minKey, this.maxKey, this.q1Key, this.q3Key, this.medianKey, this.meanKey];
|
|
66
|
+
const missingFields = requiredFields.filter(field => this.data[field] == null);
|
|
67
|
+
if (missingFields.length > 0) {
|
|
68
|
+
console.warn('Missing required fields:', missingFields);
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const values = [
|
|
72
|
+
this.data[this.minKey],
|
|
73
|
+
this.data[this.maxKey],
|
|
74
|
+
this.data[this.q1Key],
|
|
75
|
+
this.data[this.q3Key],
|
|
76
|
+
this.data[this.medianKey],
|
|
77
|
+
this.data[this.meanKey]
|
|
78
|
+
];
|
|
79
|
+
if (this.data[this.valueKey] != null) {
|
|
80
|
+
values.push(this.data[this.valueKey]);
|
|
81
|
+
}
|
|
82
|
+
const g = svg
|
|
83
|
+
.attr('width', w)
|
|
84
|
+
.attr('height', h)
|
|
85
|
+
.append('g')
|
|
86
|
+
.attr('transform', `translate(${margin}, ${margin})`);
|
|
87
|
+
if (this.vertical) {
|
|
88
|
+
// 세로형 boxplot (기본)
|
|
89
|
+
this.drawVerticalBoxplot(g, plotW, plotH, values);
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
// 가로형 boxplot
|
|
93
|
+
this.drawHorizontalBoxplot(g, plotW, plotH, values);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
drawVerticalBoxplot(g, plotW, plotH, values) {
|
|
97
|
+
var _a, _b;
|
|
98
|
+
const y = d3
|
|
99
|
+
.scaleLinear()
|
|
100
|
+
.domain([(_a = d3.min(values)) !== null && _a !== void 0 ? _a : 0, (_b = d3.max(values)) !== null && _b !== void 0 ? _b : 1])
|
|
101
|
+
.nice()
|
|
102
|
+
.range([plotH, 0]);
|
|
103
|
+
const boxWidth = Math.min(plotW * 0.6, 60); // 박스 너비 제한
|
|
104
|
+
const boxX = (plotW - boxWidth) / 2; // 중앙 정렬
|
|
105
|
+
// Outlier 계산
|
|
106
|
+
const iqr = this.data[this.q3Key] - this.data[this.q1Key];
|
|
107
|
+
const lowerFence = this.data[this.q1Key] - 1.5 * iqr;
|
|
108
|
+
const upperFence = this.data[this.q3Key] + 1.5 * iqr;
|
|
109
|
+
const actualMin = Math.max(this.data[this.minKey], lowerFence);
|
|
110
|
+
const actualMax = Math.min(this.data[this.maxKey], upperFence);
|
|
111
|
+
// 박스
|
|
112
|
+
g.append('rect')
|
|
113
|
+
.attr('x', boxX)
|
|
114
|
+
.attr('y', y(Math.max(this.data[this.q1Key], this.data[this.q3Key])))
|
|
115
|
+
.attr('width', boxWidth)
|
|
116
|
+
.attr('height', Math.abs(y(this.data[this.q1Key]) - y(this.data[this.q3Key])))
|
|
117
|
+
.attr('fill', this.color)
|
|
118
|
+
.attr('opacity', 0.6)
|
|
119
|
+
.attr('stroke', '#333')
|
|
120
|
+
.attr('stroke-width', 1);
|
|
121
|
+
// 중앙선(중앙값)
|
|
122
|
+
g.append('line')
|
|
123
|
+
.attr('x1', boxX)
|
|
124
|
+
.attr('x2', boxX + boxWidth)
|
|
125
|
+
.attr('y1', y(this.data[this.medianKey]))
|
|
126
|
+
.attr('y2', y(this.data[this.medianKey]))
|
|
127
|
+
.attr('stroke', '#333')
|
|
128
|
+
.attr('stroke-width', 2);
|
|
129
|
+
// 수염
|
|
130
|
+
const centerX = boxX + boxWidth / 2;
|
|
131
|
+
g.append('line')
|
|
132
|
+
.attr('x1', centerX)
|
|
133
|
+
.attr('x2', centerX)
|
|
134
|
+
.attr('y1', y(actualMin))
|
|
135
|
+
.attr('y2', y(actualMax))
|
|
136
|
+
.attr('stroke', '#333')
|
|
137
|
+
.attr('stroke-width', 1);
|
|
138
|
+
// min/max 선
|
|
139
|
+
const capWidth = boxWidth / 3;
|
|
140
|
+
g.append('line')
|
|
141
|
+
.attr('x1', centerX - capWidth / 2)
|
|
142
|
+
.attr('x2', centerX + capWidth / 2)
|
|
143
|
+
.attr('y1', y(actualMin))
|
|
144
|
+
.attr('y2', y(actualMin))
|
|
145
|
+
.attr('stroke', '#333')
|
|
146
|
+
.attr('stroke-width', 1);
|
|
147
|
+
g.append('line')
|
|
148
|
+
.attr('x1', centerX - capWidth / 2)
|
|
149
|
+
.attr('x2', centerX + capWidth / 2)
|
|
150
|
+
.attr('y1', y(actualMax))
|
|
151
|
+
.attr('y2', y(actualMax))
|
|
152
|
+
.attr('stroke', '#333')
|
|
153
|
+
.attr('stroke-width', 1);
|
|
154
|
+
// Outliers
|
|
155
|
+
if (this.data[this.minKey] < lowerFence) {
|
|
156
|
+
g.append('circle')
|
|
157
|
+
.attr('cx', centerX)
|
|
158
|
+
.attr('cy', y(this.data[this.minKey]))
|
|
159
|
+
.attr('r', 4.5)
|
|
160
|
+
.attr('fill', '#ff4444');
|
|
161
|
+
}
|
|
162
|
+
if (this.data[this.maxKey] > upperFence) {
|
|
163
|
+
g.append('circle')
|
|
164
|
+
.attr('cx', centerX)
|
|
165
|
+
.attr('cy', y(this.data[this.maxKey]))
|
|
166
|
+
.attr('r', 4.5)
|
|
167
|
+
.attr('fill', '#ff4444');
|
|
168
|
+
}
|
|
169
|
+
// 현재값 (있는 경우)
|
|
170
|
+
if (this.data[this.valueKey] != null) {
|
|
171
|
+
g.append('circle')
|
|
172
|
+
.attr('cx', centerX)
|
|
173
|
+
.attr('cy', y(this.data[this.valueKey]))
|
|
174
|
+
.attr('r', 3)
|
|
175
|
+
.attr('fill', '#ff4444');
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
drawHorizontalBoxplot(g, plotW, plotH, values) {
|
|
179
|
+
var _a, _b;
|
|
180
|
+
const x = d3
|
|
181
|
+
.scaleLinear()
|
|
182
|
+
.domain([(_a = d3.min(values)) !== null && _a !== void 0 ? _a : 0, (_b = d3.max(values)) !== null && _b !== void 0 ? _b : 1])
|
|
183
|
+
.nice()
|
|
184
|
+
.range([0, plotW]);
|
|
185
|
+
const boxHeight = Math.min(plotH * 0.6, 60);
|
|
186
|
+
const boxY = (plotH - boxHeight) / 2;
|
|
187
|
+
// Outlier 계산
|
|
188
|
+
const iqr = this.data[this.q3Key] - this.data[this.q1Key];
|
|
189
|
+
const lowerFence = this.data[this.q1Key] - 1.5 * iqr;
|
|
190
|
+
const upperFence = this.data[this.q3Key] + 1.5 * iqr;
|
|
191
|
+
const actualMin = Math.max(this.data[this.minKey], lowerFence);
|
|
192
|
+
const actualMax = Math.min(this.data[this.maxKey], upperFence);
|
|
193
|
+
// 박스 (가로)
|
|
194
|
+
g.append('rect')
|
|
195
|
+
.attr('x', x(Math.min(this.data[this.q1Key], this.data[this.q3Key])))
|
|
196
|
+
.attr('y', boxY)
|
|
197
|
+
.attr('width', Math.abs(x(this.data[this.q3Key]) - x(this.data[this.q1Key])))
|
|
198
|
+
.attr('height', boxHeight)
|
|
199
|
+
.attr('fill', this.color)
|
|
200
|
+
.attr('opacity', 0.6)
|
|
201
|
+
.attr('stroke', '#333')
|
|
202
|
+
.attr('stroke-width', 1);
|
|
203
|
+
// 중앙선 (가로)
|
|
204
|
+
g.append('line')
|
|
205
|
+
.attr('x1', x(this.data[this.medianKey]))
|
|
206
|
+
.attr('x2', x(this.data[this.medianKey]))
|
|
207
|
+
.attr('y1', boxY)
|
|
208
|
+
.attr('y2', boxY + boxHeight)
|
|
209
|
+
.attr('stroke', '#333')
|
|
210
|
+
.attr('stroke-width', 2);
|
|
211
|
+
// 수염 (가로)
|
|
212
|
+
const centerY = boxY + boxHeight / 2;
|
|
213
|
+
g.append('line')
|
|
214
|
+
.attr('x1', x(actualMin))
|
|
215
|
+
.attr('x2', x(actualMax))
|
|
216
|
+
.attr('y1', centerY)
|
|
217
|
+
.attr('y2', centerY)
|
|
218
|
+
.attr('stroke', '#333')
|
|
219
|
+
.attr('stroke-width', 1);
|
|
220
|
+
// min/max 선 (가로)
|
|
221
|
+
const capHeight = boxHeight / 3;
|
|
222
|
+
g.append('line')
|
|
223
|
+
.attr('x1', x(actualMin))
|
|
224
|
+
.attr('x2', x(actualMin))
|
|
225
|
+
.attr('y1', centerY - capHeight / 2)
|
|
226
|
+
.attr('y2', centerY + capHeight / 2)
|
|
227
|
+
.attr('stroke', '#333')
|
|
228
|
+
.attr('stroke-width', 1);
|
|
229
|
+
g.append('line')
|
|
230
|
+
.attr('x1', x(actualMax))
|
|
231
|
+
.attr('x2', x(actualMax))
|
|
232
|
+
.attr('y1', centerY - capHeight / 2)
|
|
233
|
+
.attr('y2', centerY + capHeight / 2)
|
|
234
|
+
.attr('stroke', '#333')
|
|
235
|
+
.attr('stroke-width', 1);
|
|
236
|
+
// Outliers (가로)
|
|
237
|
+
if (this.data[this.minKey] < lowerFence) {
|
|
238
|
+
g.append('circle')
|
|
239
|
+
.attr('cx', x(this.data[this.minKey]))
|
|
240
|
+
.attr('cy', centerY)
|
|
241
|
+
.attr('r', 4.5)
|
|
242
|
+
.attr('fill', '#ff4444');
|
|
243
|
+
}
|
|
244
|
+
if (this.data[this.maxKey] > upperFence) {
|
|
245
|
+
g.append('circle')
|
|
246
|
+
.attr('cx', x(this.data[this.maxKey]))
|
|
247
|
+
.attr('cy', centerY)
|
|
248
|
+
.attr('r', 4.5)
|
|
249
|
+
.attr('fill', '#ff4444');
|
|
250
|
+
}
|
|
251
|
+
// 현재값 (가로)
|
|
252
|
+
if (this.data[this.valueKey] != null) {
|
|
253
|
+
g.append('circle')
|
|
254
|
+
.attr('cx', x(this.data[this.valueKey]))
|
|
255
|
+
.attr('cy', centerY)
|
|
256
|
+
.attr('r', 3)
|
|
257
|
+
.attr('fill', '#ff4444');
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
};
|
|
261
|
+
KpiSingleBoxplotChart.styles = css `
|
|
262
|
+
:host {
|
|
263
|
+
display: block;
|
|
264
|
+
width: 100%;
|
|
265
|
+
height: 100%;
|
|
266
|
+
}
|
|
267
|
+
svg {
|
|
268
|
+
width: 100%;
|
|
269
|
+
height: 100%;
|
|
270
|
+
display: block;
|
|
271
|
+
}
|
|
272
|
+
`;
|
|
273
|
+
__decorate([
|
|
274
|
+
property({ type: Object }),
|
|
275
|
+
__metadata("design:type", Object)
|
|
276
|
+
], KpiSingleBoxplotChart.prototype, "data", void 0);
|
|
277
|
+
__decorate([
|
|
278
|
+
property({ type: String }),
|
|
279
|
+
__metadata("design:type", String)
|
|
280
|
+
], KpiSingleBoxplotChart.prototype, "minKey", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
property({ type: String }),
|
|
283
|
+
__metadata("design:type", String)
|
|
284
|
+
], KpiSingleBoxplotChart.prototype, "maxKey", void 0);
|
|
285
|
+
__decorate([
|
|
286
|
+
property({ type: String }),
|
|
287
|
+
__metadata("design:type", String)
|
|
288
|
+
], KpiSingleBoxplotChart.prototype, "meanKey", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
property({ type: String }),
|
|
291
|
+
__metadata("design:type", String)
|
|
292
|
+
], KpiSingleBoxplotChart.prototype, "medianKey", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
property({ type: String }),
|
|
295
|
+
__metadata("design:type", String)
|
|
296
|
+
], KpiSingleBoxplotChart.prototype, "q1Key", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
property({ type: String }),
|
|
299
|
+
__metadata("design:type", String)
|
|
300
|
+
], KpiSingleBoxplotChart.prototype, "q3Key", void 0);
|
|
301
|
+
__decorate([
|
|
302
|
+
property({ type: String }),
|
|
303
|
+
__metadata("design:type", String)
|
|
304
|
+
], KpiSingleBoxplotChart.prototype, "valueKey", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
property({ type: String }),
|
|
307
|
+
__metadata("design:type", String)
|
|
308
|
+
], KpiSingleBoxplotChart.prototype, "color", void 0);
|
|
309
|
+
__decorate([
|
|
310
|
+
property({ type: Boolean }),
|
|
311
|
+
__metadata("design:type", Boolean)
|
|
312
|
+
], KpiSingleBoxplotChart.prototype, "vertical", void 0);
|
|
313
|
+
KpiSingleBoxplotChart = __decorate([
|
|
314
|
+
customElement('kpi-single-boxplot-chart')
|
|
315
|
+
], KpiSingleBoxplotChart);
|
|
316
|
+
export { KpiSingleBoxplotChart };
|
|
317
|
+
//# sourceMappingURL=kpi-single-boxplot-chart.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-single-boxplot-chart.js","sourceRoot":"","sources":["../../client/components/kpi-single-boxplot-chart.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AAGjB,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,UAAU;IAA9C;;QACuB,SAAI,GAAQ,EAAE,CAAA;QACd,WAAM,GAAW,KAAK,CAAA;QACtB,WAAM,GAAW,KAAK,CAAA;QACtB,YAAO,GAAW,MAAM,CAAA;QACxB,cAAS,GAAW,QAAQ,CAAA;QAC5B,UAAK,GAAW,IAAI,CAAA;QACpB,UAAK,GAAW,IAAI,CAAA;QACpB,aAAQ,GAAW,OAAO,CAAA;QAC1B,UAAK,GAAW,SAAS,CAAA;QACxB,aAAQ,GAAY,IAAI,CAAA,CAAC,wBAAwB;QAetE,eAAU,GAAG,CAAC,CAAA;QACd,gBAAW,GAAG,CAAC,CAAA;IAmRzB,CAAC;IAhRC,MAAM;QACJ,OAAO,IAAI,CAAA;;;gBAGC,IAAI,CAAC,UAAU;iBACd,IAAI,CAAC,WAAW;uBACV,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,WAAW;;;KAGrD,CAAA;IACH,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAA;QACzB,IAAI,CAAC,cAAc,GAAG,IAAI,cAAc,CAAC,OAAO,CAAC,EAAE;YACjD,KAAK,MAA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AAE,CAAC;;qDAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;sDAAyB;AACxB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;wDAA6B;AAC5B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAqB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDAA2B;AAC1B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAA0B;AACxB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;uDAAyB;AAV1C,qBAAqB;IADjC,aAAa,CAAC,0BAA0B,CAAC;GAC7B,qBAAqB,CA6SjC","sourcesContent":["import { LitElement, html, css } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport * as d3 from 'd3'\n\n@customElement('kpi-single-boxplot-chart')\nexport class KpiSingleBoxplotChart extends LitElement {\n @property({ type: Object }) data: any = {}\n @property({ type: String }) minKey: string = 'min'\n @property({ type: String }) maxKey: string = 'max'\n @property({ type: String }) meanKey: string = 'mean'\n @property({ type: String }) medianKey: string = 'median'\n @property({ type: String }) q1Key: string = 'q1'\n @property({ type: String }) q3Key: string = 'q3'\n @property({ type: String }) valueKey: string = 'value'\n @property({ type: String }) color: string = '#2196f3'\n @property({ type: Boolean }) vertical: boolean = true // true: 세로형, false: 가로형\n\n static styles = css`\n :host {\n display: block;\n width: 100%;\n height: 100%;\n }\n svg {\n width: 100%;\n height: 100%;\n display: block;\n }\n `\n\n private chartWidth = 0\n private chartHeight = 0\n private resizeObserver?: ResizeObserver\n\n render() {\n return html`\n <svg\n id=\"single-boxplot\"\n width=${this.chartWidth}\n height=${this.chartHeight}\n viewBox=\"0 0 ${this.chartWidth} ${this.chartHeight}\"\n preserveAspectRatio=\"xMidYMid meet\"\n ></svg>\n `\n }\n\n connectedCallback() {\n super.connectedCallback()\n this.resizeObserver = new ResizeObserver(entries => {\n for (const entry of entries) {\n const rect = entry.contentRect\n this.chartWidth = rect.width\n this.chartHeight = rect.height\n this.requestUpdate()\n }\n })\n this.resizeObserver.observe(this)\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect()\n super.disconnectedCallback()\n }\n\n updated() {\n this.drawSingleBoxplot()\n }\n\n private drawSingleBoxplot() {\n const svg = d3.select(this.renderRoot.querySelector('#single-boxplot'))\n svg.selectAll('*').remove()\n\n // 데이터 검증\n if (!this.data || Object.keys(this.data).length === 0) {\n return\n }\n\n const w = this.chartWidth || 200\n const h = this.chartHeight || 200\n const margin = 20\n const plotW = w - margin * 2\n const plotH = h - margin * 2\n\n // 필수 필드 검증\n const requiredFields = [this.minKey, this.maxKey, this.q1Key, this.q3Key, this.medianKey, this.meanKey]\n const missingFields = requiredFields.filter(field => this.data[field] == null)\n if (missingFields.length > 0) {\n console.warn('Missing required fields:', missingFields)\n return\n }\n\n const values = [\n this.data[this.minKey],\n this.data[this.maxKey],\n this.data[this.q1Key],\n this.data[this.q3Key],\n this.data[this.medianKey],\n this.data[this.meanKey]\n ]\n\n if (this.data[this.valueKey] != null) {\n values.push(this.data[this.valueKey])\n }\n\n const g = svg\n .attr('width', w)\n .attr('height', h)\n .append('g')\n .attr('transform', `translate(${margin}, ${margin})`)\n\n if (this.vertical) {\n // 세로형 boxplot (기본)\n this.drawVerticalBoxplot(g, plotW, plotH, values)\n } else {\n // 가로형 boxplot\n this.drawHorizontalBoxplot(g, plotW, plotH, values)\n }\n }\n\n private drawVerticalBoxplot(g: any, plotW: number, plotH: number, values: number[]) {\n const y = d3\n .scaleLinear()\n .domain([d3.min(values) ?? 0, d3.max(values) ?? 1])\n .nice()\n .range([plotH, 0])\n\n const boxWidth = Math.min(plotW * 0.6, 60) // 박스 너비 제한\n const boxX = (plotW - boxWidth) / 2 // 중앙 정렬\n\n // Outlier 계산\n const iqr = this.data[this.q3Key] - this.data[this.q1Key]\n const lowerFence = this.data[this.q1Key] - 1.5 * iqr\n const upperFence = this.data[this.q3Key] + 1.5 * iqr\n\n const actualMin = Math.max(this.data[this.minKey], lowerFence)\n const actualMax = Math.min(this.data[this.maxKey], upperFence)\n\n // 박스\n g.append('rect')\n .attr('x', boxX)\n .attr('y', y(Math.max(this.data[this.q1Key], this.data[this.q3Key])))\n .attr('width', boxWidth)\n .attr('height', Math.abs(y(this.data[this.q1Key]) - y(this.data[this.q3Key])))\n .attr('fill', this.color)\n .attr('opacity', 0.6)\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n // 중앙선(중앙값)\n g.append('line')\n .attr('x1', boxX)\n .attr('x2', boxX + boxWidth)\n .attr('y1', y(this.data[this.medianKey]))\n .attr('y2', y(this.data[this.medianKey]))\n .attr('stroke', '#333')\n .attr('stroke-width', 2)\n\n // 수염\n const centerX = boxX + boxWidth / 2\n g.append('line')\n .attr('x1', centerX)\n .attr('x2', centerX)\n .attr('y1', y(actualMin))\n .attr('y2', y(actualMax))\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n // min/max 선\n const capWidth = boxWidth / 3\n g.append('line')\n .attr('x1', centerX - capWidth / 2)\n .attr('x2', centerX + capWidth / 2)\n .attr('y1', y(actualMin))\n .attr('y2', y(actualMin))\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n g.append('line')\n .attr('x1', centerX - capWidth / 2)\n .attr('x2', centerX + capWidth / 2)\n .attr('y1', y(actualMax))\n .attr('y2', y(actualMax))\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n // Outliers\n if (this.data[this.minKey] < lowerFence) {\n g.append('circle')\n .attr('cx', centerX)\n .attr('cy', y(this.data[this.minKey]))\n .attr('r', 4.5)\n .attr('fill', '#ff4444')\n }\n\n if (this.data[this.maxKey] > upperFence) {\n g.append('circle')\n .attr('cx', centerX)\n .attr('cy', y(this.data[this.maxKey]))\n .attr('r', 4.5)\n .attr('fill', '#ff4444')\n }\n\n\n // 현재값 (있는 경우)\n if (this.data[this.valueKey] != null) {\n g.append('circle')\n .attr('cx', centerX)\n .attr('cy', y(this.data[this.valueKey]))\n .attr('r', 3)\n .attr('fill', '#ff4444')\n }\n }\n\n private drawHorizontalBoxplot(g: any, plotW: number, plotH: number, values: number[]) {\n const x = d3\n .scaleLinear()\n .domain([d3.min(values) ?? 0, d3.max(values) ?? 1])\n .nice()\n .range([0, plotW])\n\n const boxHeight = Math.min(plotH * 0.6, 60)\n const boxY = (plotH - boxHeight) / 2\n\n // Outlier 계산\n const iqr = this.data[this.q3Key] - this.data[this.q1Key]\n const lowerFence = this.data[this.q1Key] - 1.5 * iqr\n const upperFence = this.data[this.q3Key] + 1.5 * iqr\n\n const actualMin = Math.max(this.data[this.minKey], lowerFence)\n const actualMax = Math.min(this.data[this.maxKey], upperFence)\n\n // 박스 (가로)\n g.append('rect')\n .attr('x', x(Math.min(this.data[this.q1Key], this.data[this.q3Key])))\n .attr('y', boxY)\n .attr('width', Math.abs(x(this.data[this.q3Key]) - x(this.data[this.q1Key])))\n .attr('height', boxHeight)\n .attr('fill', this.color)\n .attr('opacity', 0.6)\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n // 중앙선 (가로)\n g.append('line')\n .attr('x1', x(this.data[this.medianKey]))\n .attr('x2', x(this.data[this.medianKey]))\n .attr('y1', boxY)\n .attr('y2', boxY + boxHeight)\n .attr('stroke', '#333')\n .attr('stroke-width', 2)\n\n // 수염 (가로)\n const centerY = boxY + boxHeight / 2\n g.append('line')\n .attr('x1', x(actualMin))\n .attr('x2', x(actualMax))\n .attr('y1', centerY)\n .attr('y2', centerY)\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n // min/max 선 (가로)\n const capHeight = boxHeight / 3\n g.append('line')\n .attr('x1', x(actualMin))\n .attr('x2', x(actualMin))\n .attr('y1', centerY - capHeight / 2)\n .attr('y2', centerY + capHeight / 2)\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n g.append('line')\n .attr('x1', x(actualMax))\n .attr('x2', x(actualMax))\n .attr('y1', centerY - capHeight / 2)\n .attr('y2', centerY + capHeight / 2)\n .attr('stroke', '#333')\n .attr('stroke-width', 1)\n\n // Outliers (가로)\n if (this.data[this.minKey] < lowerFence) {\n g.append('circle')\n .attr('cx', x(this.data[this.minKey]))\n .attr('cy', centerY)\n .attr('r', 4.5)\n .attr('fill', '#ff4444')\n }\n\n if (this.data[this.maxKey] > upperFence) {\n g.append('circle')\n .attr('cx', x(this.data[this.maxKey]))\n .attr('cy', centerY)\n .attr('r', 4.5)\n .attr('fill', '#ff4444')\n }\n\n\n // 현재값 (가로)\n if (this.data[this.valueKey] != null) {\n g.append('circle')\n .attr('cx', x(this.data[this.valueKey]))\n .attr('cy', centerY)\n .attr('r', 3)\n .attr('fill', '#ff4444')\n }\n }\n}"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import '@material/web/button/outlined-button.js';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
export declare class SvPagenationControl extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
currentPage: number;
|
|
7
|
+
totalItems: number;
|
|
8
|
+
pageLimit: number;
|
|
9
|
+
private get totalPages();
|
|
10
|
+
private get pageBlock();
|
|
11
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
+
private _emitPageChange;
|
|
13
|
+
private _numberButtons;
|
|
14
|
+
private _onFirst;
|
|
15
|
+
private _onPrev;
|
|
16
|
+
private _onNext;
|
|
17
|
+
private _onLast;
|
|
18
|
+
}
|