@dssp/dkpi 1.0.0-alpha.39 → 1.0.0-alpha.41
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/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/route.d.ts +1 -1
- package/dist-client/route.js +9 -0
- package/dist-client/route.js.map +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/index.d.ts +1 -0
- package/dist-server/index.js +1 -0
- package/dist-server/index.js.map +1 -1
- 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 +3 -0
- package/dist-server/service/kpi-metric-value/index.js +7 -0
- package/dist-server/service/kpi-metric-value/index.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 +6 -3
- package/schema.graphql +2063 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-metric-value-list-page.js","sourceRoot":"","sources":["../../../client/pages/kpi-metric-value/kpi-metric-value-list-page.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,yCAAyC,CAAA;AAChD,OAAO,iCAAiC,CAAA;AACxC,OAAO,wCAAwC,CAAA;AAC/C,OAAO,0CAA0C,CAAA;AACjD,mDAAmD;AAEnD,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAC5G,OAAO,EAAE,QAAQ,EAAE,K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BACf,WAAW,CAAC,SAAS;mBACzB,WAAW,CAAC,KAAK;iBACnB,WAAW,CAAC,GAAG;kBACd,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;mBACvD,GAAG,EAAE;YACZ,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAA;YAClB,KAAK,CAAC,KAAK,EAAE,CAAA;QACf,CAAC;;OAEJ,EACD;YACE,KAAK,EAAE,GAAG,CAAA,MAAA,WAAW,CAAC,MAAM,0CAAE,IAAI,KAAI,EAAE,OAAO;YAC/C,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;SACf,CACF,CAAA;IACH,CAAC;IAED,KAAK,CAAC,WAAW;QACf,MAAM,EAAE,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAAC,mCAAmC,CAAC,CAAA;QACtF,MAAM,SAAS,CACb,IAAI,CAAA;SACD,wBAAwB,MAAM,wBAAwB;KAC1D,EACC;YACE,OAAO,EAAE,IAAI;SACd,CACF,CAAA;IACH,CAAC;;AArXM,6BAAM,GAAG;IACd,eAAe;IACf,iBAAiB;IACjB,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;;;;KAYF;CACF,AAjBY,CAiBZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;2DAAiB;AAChB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;oDAAoE;AACpE;IAA1B,KAAK,CAAC,UAAU,CAAC;8BAAiB,SAAS;qDAAA;AAtBjC,sBAAsB;IADlC,aAAa,CAAC,4BAA4B,CAAC;GAC/B,sBAAsB,CAuXlC","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@material/web/button/elevated-button.js'\nimport '@operato/data-grist/ox-grist.js'\nimport '@operato/data-grist/ox-filters-form.js'\nimport '@operato/data-grist/ox-record-creator.js'\n// import './kpi-metric-value-manual-entry-form.js'\n\nimport { CommonButtonStyles, CommonHeaderStyles, CommonGristStyles, ScrollbarStyles } from '@operato/styles'\nimport { PageView, store } from '@operato/shell'\nimport { css, html } from 'lit'\nimport { customElement, property, query } from 'lit/decorators.js'\nimport { ScopedElementsMixin } from '@open-wc/scoped-elements'\nimport { ColumnConfig, DataGrist, FetchOption } from '@operato/data-grist'\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { notify, openPopup } from '@operato/layout'\nimport { OxPopup, OxPrompt } from '@operato/popup'\nimport { isMobileDevice } from '@operato/utils'\nimport { p13n } from '@operato/p13n'\n\nimport { connect } from 'pwa-helpers/connect-mixin'\nimport gql from 'graphql-tag'\n\n@customElement('kpi-metric-value-list-page')\nexport class KpiMetricValueListPage extends connect(store)(p13n(localize(i18next)(ScopedElementsMixin(PageView)))) {\n static styles = [\n ScrollbarStyles,\n CommonGristStyles,\n CommonHeaderStyles,\n css`\n :host {\n display: flex;\n width: 100%;\n }\n ox-grist {\n overflow-y: auto;\n flex: 1;\n }\n ox-filters-form {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Object }) gristConfig: any\n @property({ type: String }) mode: 'CARD' | 'GRID' | 'LIST' = isMobileDevice() ? 'CARD' : 'GRID'\n @query('ox-grist') private grist!: DataGrist\n\n get context() {\n return {\n title: i18next.t('title.kpi metric value list'),\n search: {\n handler: (search: string) => {\n this.grist.searchText = search\n },\n value: this.grist.searchText\n },\n filter: {\n handler: () => {\n this.grist.toggleHeadroom()\n }\n },\n help: 'kpi/kpi-metric-value',\n actions: [\n {\n title: i18next.t('button.bulk edit'),\n action: this._openEditor.bind(this),\n ...CommonButtonStyles.edit\n },\n {\n title: i18next.t('button.save'),\n action: this._updateKpiMetricValue.bind(this),\n ...CommonButtonStyles.save\n },\n {\n title: i18next.t('button.delete'),\n action: this._deleteKpiMetricValue.bind(this),\n ...CommonButtonStyles.delete\n }\n ],\n exportable: {\n name: i18next.t('title.kpi metric value list'),\n data: this.exportHandler.bind(this)\n },\n importable: {\n handler: this.importHandler.bind(this)\n }\n }\n }\n\n render() {\n const mode = this.mode || (isMobileDevice() ? 'CARD' : 'GRID')\n return html`\n <ox-grist\n .mode=${mode}\n .config=${this.gristConfig}\n .fetchHandler=${this.fetchHandler.bind(this)}\n .personalConfigProvider=${this.getPagePreferenceProvider('ox-grist')!}\n >\n <div slot=\"headroom\" class=\"header\">\n <div class=\"filters\">\n <ox-filters-form autofocus without-search></ox-filters-form>\n <div id=\"modes\">\n <md-icon @click=${() => (this.mode = 'GRID')} ?active=${mode == 'GRID'}>grid_on</md-icon>\n <md-icon @click=${() => (this.mode = 'LIST')} ?active=${mode == 'LIST'}>format_list_bulleted</md-icon>\n <md-icon @click=${() => (this.mode = 'CARD')} ?active=${mode == 'CARD'}>apps</md-icon>\n </div>\n <ox-record-creator id=\"add\" .callback=${this.creationCallback.bind(this)}>\n <button>\n <md-icon>add</md-icon>\n </button>\n </ox-record-creator>\n </div>\n </div>\n\n <ox-grist-personalizer slot=\"setting\"></ox-grist-personalizer>\n </ox-grist>\n `\n }\n\n async pageInitialized() {\n this.gristConfig = {\n list: {\n fields: ['metric', 'valueDate', 'value', 'org', 'meta', 'createdAt', 'updatedAt', 'creator', 'updater'],\n details: ['metric', 'valueDate', 'value', 'org', 'meta', 'createdAt', 'updatedAt', 'creator', 'updater']\n },\n columns: [\n { type: 'gutter', gutterName: 'sequence' },\n { type: 'gutter', gutterName: 'row-selector', multiple: true },\n // KPI Metric Value 수정 버튼 추가\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'edit',\n title: '수정',\n handlers: {\n click: (columns, data, column, record, rowIndex) => {\n this._editKpiMetricValue(record)\n }\n }\n },\n {\n type: 'resource-object',\n name: 'org',\n header: '프로젝트',\n record: {\n editable: false,\n options: {\n title: i18next.t('title.lookup project'),\n queryName: 'projects',\n columns: [\n { name: 'id', hidden: true },\n { name: 'name', header: i18next.t('field.name'), filter: 'search' },\n { name: 'startDate', header: i18next.t('field.start-date') },\n { name: 'endDate', header: i18next.t('field.end-date') }\n ],\n list: { fields: ['name', 'startDate', 'endDate'] },\n filterValueField: 'id',\n nameField: 'name',\n descriptionField: ''\n },\n renderer: (value, column, record, rowIndex, field) => {\n return record.project?.name || ''\n }\n },\n filter: true,\n width: 120\n },\n {\n type: 'string',\n name: 'metric',\n header: 'Metric',\n record: { editable: false, renderer: (v, c, r) => r.metric?.name },\n width: 150\n },\n { type: 'string', name: 'valueDate', header: '날짜', record: { editable: true }, width: 120 },\n { type: 'number', name: 'value', header: '값', record: { editable: true }, width: 120 },\n { type: 'string', name: 'org', header: '조직', record: { editable: false }, width: 120 },\n { type: 'object', name: 'meta', header: '메타', record: { editable: false }, width: 120 },\n { type: 'datetime', name: 'createdAt', header: '생성일', record: { editable: false }, width: 180 },\n { type: 'datetime', name: 'updatedAt', header: '수정일', record: { editable: false }, width: 180 },\n {\n type: 'resource-object',\n name: 'creator',\n header: '생성자',\n record: { editable: false, renderer: (v, c, r) => r.creator?.name },\n width: 120\n },\n {\n type: 'resource-object',\n name: 'updater',\n header: '수정자',\n record: { editable: false, renderer: (v, c, r) => r.updater?.name },\n width: 120\n }\n ],\n rows: {\n appendable: false,\n selectable: {\n multiple: true\n }\n },\n sorters: [{ name: 'valueDate' }]\n }\n }\n\n pageUpdated(changes: any, lifecycle: any) {\n if (this.active) {\n this.grist.fetch()\n }\n }\n\n async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }: FetchOption) {\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {\n responses: kpiMetricValues(filters: $filters, pagination: $pagination, sortings: $sortings) {\n items {\n id\n metric {\n id\n name\n }\n valueDate\n value\n meta\n org\n project {\n id\n name\n }\n updater {\n id\n name\n }\n updatedAt\n creator {\n id\n name\n }\n createdAt\n }\n total\n }\n }\n `,\n variables: {\n filters,\n pagination: { page, limit },\n sortings\n }\n })\n return {\n total: response.data.responses.total || 0,\n records: response.data.responses.items || []\n }\n }\n\n async _deleteKpiMetricValue() {\n if (\n await OxPrompt.open({\n title: i18next.t('text.are_you_sure'),\n text: i18next.t('text.sure_to_x', { x: i18next.t('text.delete') }),\n confirmButton: { text: i18next.t('button.confirm') },\n cancelButton: { text: i18next.t('button.cancel') }\n })\n ) {\n const ids = this.grist.selected.map(record => record.id)\n if (ids && ids.length > 0) {\n const response = await client.mutate({\n mutation: gql`\n mutation ($ids: [String!]!) {\n deleteKpiMetricValues(ids: $ids)\n }\n `,\n variables: { ids }\n })\n if (!response.errors) {\n this.grist.fetch()\n notify({ message: i18next.t('text.info_x_successfully', { x: i18next.t('text.delete') }) })\n }\n }\n }\n }\n\n async _updateKpiMetricValue() {\n let patches = this.grist.dirtyRecords\n if (patches && patches.length) {\n patches = patches.map(patch => {\n let patchField: any = patch.id ? { id: patch.id } : {}\n const dirtyFields = patch.__dirtyfields__\n for (let key in dirtyFields) {\n patchField[key] = dirtyFields[key].after\n }\n patchField.cuFlag = patch.__dirty__\n return patchField\n })\n const response = await client.mutate({\n mutation: gql`\n mutation ($patches: [KpiMetricValuePatch!]!) {\n updateMultipleKpiMetricValue(patches: $patches) {\n id\n metric {\n id\n name\n }\n org\n project {\n id\n name\n }\n valueDate\n value\n }\n }\n `,\n variables: { patches }\n })\n if (!response.errors) {\n this.grist.fetch()\n }\n }\n }\n\n async creationCallback(metricValue) {\n try {\n const response = await client.mutate({\n mutation: gql`\n mutation ($metricValue: NewKpiMetricValue!) {\n createKpiMetricValue(metricValue: $metricValue) {\n id\n }\n }\n `,\n variables: { metricValue },\n context: { hasUpload: true }\n })\n if (!response.errors) {\n this.grist.fetch()\n document.dispatchEvent(new CustomEvent('notify', { detail: { message: i18next.t('text.data_created_successfully') } }))\n }\n return true\n } catch (ex) {\n console.error(ex)\n document.dispatchEvent(new CustomEvent('notify', { detail: { type: 'error', message: i18next.t('text.error') } }))\n return false\n }\n }\n\n async exportHandler() {\n const exportTargets = this.grist.selected.length ? this.grist.selected : this.grist.dirtyData.records\n const targetFieldSet = new Set(['id', 'metric', 'valueDate', 'value', 'org', 'meta'])\n return exportTargets.map(metricValue => {\n let tempObj = {}\n for (const field of targetFieldSet) {\n tempObj[field] = metricValue[field]\n }\n return tempObj\n })\n }\n\n async importHandler(records) {\n // 임포트 팝업 등은 추후 구현\n }\n\n async _editKpiMetricValue(metricValue) {\n const popup = await openPopup(\n html`\n <kpi-metric-value-manual-entry-form\n .metric=${metricValue.metric}\n .valueDate=${metricValue.valueDate}\n .value=${metricValue.value}\n .org=${metricValue.org}\n .meta=${metricValue.meta ? JSON.stringify(metricValue.meta) : ''}\n @saved=${() => {\n this.grist.fetch()\n popup.close()\n }}\n ></kpi-metric-value-manual-entry-form>\n `,\n {\n title: `${metricValue.metric?.name || ''} 값 수정`,\n size: 'medium',\n backdrop: true\n }\n )\n }\n\n async _openEditor() {\n const { KpiMetricValueEditorPage } = await import('./kpi-metric-value-editor-page.js')\n await openPopup(\n html`\n <${KpiMetricValueEditorPage}></${KpiMetricValueEditorPage}>\n `,\n {\n movable: true\n }\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class KpiMetricValueManualEntryForm extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult[];
|
|
4
|
+
metric: any;
|
|
5
|
+
valueDate: string;
|
|
6
|
+
value: string;
|
|
7
|
+
org: string;
|
|
8
|
+
meta: string;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
+
save(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import { html, LitElement, css } from 'lit';
|
|
3
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
4
|
+
import { client } from '@operato/graphql';
|
|
5
|
+
import { notify } from '@operato/layout';
|
|
6
|
+
import gql from 'graphql-tag';
|
|
7
|
+
import { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles';
|
|
8
|
+
let KpiMetricValueManualEntryForm = class KpiMetricValueManualEntryForm extends LitElement {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.valueDate = new Date().toISOString().slice(0, 10);
|
|
12
|
+
this.value = '';
|
|
13
|
+
this.org = '';
|
|
14
|
+
this.meta = '';
|
|
15
|
+
this.loading = false;
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
var _a;
|
|
19
|
+
return html `
|
|
20
|
+
<form style="display:flex;flex-direction:column;height:100%;">
|
|
21
|
+
<div class="form-card">
|
|
22
|
+
<div style="font-size:1.1em;font-weight:bold;margin-bottom:16px;"><b>Metric:</b> ${(_a = this.metric) === null || _a === void 0 ? void 0 : _a.name}</div>
|
|
23
|
+
<label>
|
|
24
|
+
날짜
|
|
25
|
+
<input type="date" .value=${this.valueDate} @input=${e => (this.valueDate = e.target.value)} required />
|
|
26
|
+
</label>
|
|
27
|
+
<label>
|
|
28
|
+
값
|
|
29
|
+
<input type="number" .value=${this.value} @input=${e => (this.value = e.target.value)} required />
|
|
30
|
+
</label>
|
|
31
|
+
<label>
|
|
32
|
+
그룹 (선택)
|
|
33
|
+
<input type="text" .value=${this.org} @input=${e => (this.org = e.target.value)} />
|
|
34
|
+
</label>
|
|
35
|
+
<label>
|
|
36
|
+
메타정보 (선택, JSON)
|
|
37
|
+
<textarea .value=${this.meta} @input=${e => (this.meta = e.target.value)}></textarea>
|
|
38
|
+
</label>
|
|
39
|
+
<div class="desc">입력방식: MANUAL, Source: MANUAL (자동 지정)</div>
|
|
40
|
+
</div>
|
|
41
|
+
</form>
|
|
42
|
+
<div class="footer">
|
|
43
|
+
<div filler></div>
|
|
44
|
+
<button type="button" ?disabled=${this.loading} done @click=${this.save}><md-icon>save</md-icon>저장</button>
|
|
45
|
+
</div>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
async save() {
|
|
49
|
+
this.loading = true;
|
|
50
|
+
let parsedMeta = undefined;
|
|
51
|
+
if (this.meta) {
|
|
52
|
+
try {
|
|
53
|
+
parsedMeta = JSON.parse(this.meta);
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
notify({ message: '메타정보는 올바른 JSON이어야 합니다.', level: 'error' });
|
|
57
|
+
this.loading = false;
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
try {
|
|
62
|
+
await client.mutate({
|
|
63
|
+
mutation: gql `
|
|
64
|
+
mutation ($metricName: String!, $value: Float!, $org: String, $meta: Object) {
|
|
65
|
+
recordKpiMetricValue(metricName: $metricName, value: $value, meta: $meta, org: $org) {
|
|
66
|
+
id
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
`,
|
|
70
|
+
variables: {
|
|
71
|
+
metricName: this.metric.name,
|
|
72
|
+
value: parseFloat(this.value),
|
|
73
|
+
org: this.org || undefined,
|
|
74
|
+
meta: parsedMeta
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
notify({ message: 'Metric 값이 저장되었습니다.' });
|
|
78
|
+
this.dispatchEvent(new CustomEvent('saved', { bubbles: true, composed: true }));
|
|
79
|
+
let el = this.parentElement;
|
|
80
|
+
while (el) {
|
|
81
|
+
if (typeof el.close === 'function') {
|
|
82
|
+
el.close();
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
el = el.parentElement;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
catch (err) {
|
|
89
|
+
notify({ message: '저장 실패: ' + ((err === null || err === void 0 ? void 0 : err.message) || err), level: 'error' });
|
|
90
|
+
}
|
|
91
|
+
finally {
|
|
92
|
+
this.loading = false;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
KpiMetricValueManualEntryForm.styles = [
|
|
97
|
+
CommonHeaderStyles,
|
|
98
|
+
ScrollbarStyles,
|
|
99
|
+
css `
|
|
100
|
+
:host {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
background-color: var(--md-sys-color-surface, #f4f6fa);
|
|
104
|
+
}
|
|
105
|
+
form {
|
|
106
|
+
flex: 1;
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
overflow-y: auto;
|
|
110
|
+
}
|
|
111
|
+
.form-card {
|
|
112
|
+
flex: 1;
|
|
113
|
+
display: flex;
|
|
114
|
+
flex-direction: column;
|
|
115
|
+
padding: 32px 32px 0 32px;
|
|
116
|
+
background: #fff;
|
|
117
|
+
}
|
|
118
|
+
label {
|
|
119
|
+
font-weight: 500;
|
|
120
|
+
margin-bottom: 4px;
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: 2px;
|
|
124
|
+
}
|
|
125
|
+
input,
|
|
126
|
+
textarea {
|
|
127
|
+
font-size: 1em;
|
|
128
|
+
padding: 6px 8px;
|
|
129
|
+
border: 1px solid #ccc;
|
|
130
|
+
margin-top: 2px;
|
|
131
|
+
resize: none;
|
|
132
|
+
}
|
|
133
|
+
.desc {
|
|
134
|
+
font-size: 0.95em;
|
|
135
|
+
color: #888;
|
|
136
|
+
margin-top: 8px;
|
|
137
|
+
}
|
|
138
|
+
.footer span {
|
|
139
|
+
font-size: 0.8em;
|
|
140
|
+
color: var(--md-sys-color-on-surface);
|
|
141
|
+
line-height: 1.5;
|
|
142
|
+
padding: 10px;
|
|
143
|
+
}
|
|
144
|
+
`
|
|
145
|
+
];
|
|
146
|
+
__decorate([
|
|
147
|
+
property({ type: Object }),
|
|
148
|
+
__metadata("design:type", Object)
|
|
149
|
+
], KpiMetricValueManualEntryForm.prototype, "metric", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
state(),
|
|
152
|
+
__metadata("design:type", Object)
|
|
153
|
+
], KpiMetricValueManualEntryForm.prototype, "valueDate", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
state(),
|
|
156
|
+
__metadata("design:type", Object)
|
|
157
|
+
], KpiMetricValueManualEntryForm.prototype, "value", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
state(),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], KpiMetricValueManualEntryForm.prototype, "org", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
state(),
|
|
164
|
+
__metadata("design:type", Object)
|
|
165
|
+
], KpiMetricValueManualEntryForm.prototype, "meta", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
state(),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], KpiMetricValueManualEntryForm.prototype, "loading", void 0);
|
|
170
|
+
KpiMetricValueManualEntryForm = __decorate([
|
|
171
|
+
customElement('kpi-metric-value-manual-entry-form')
|
|
172
|
+
], KpiMetricValueManualEntryForm);
|
|
173
|
+
export { KpiMetricValueManualEntryForm };
|
|
174
|
+
//# sourceMappingURL=kpi-metric-value-manual-entry-form.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-metric-value-manual-entry-form.js","sourceRoot":"","sources":["../../../client/pages/kpi-metric-value/kpi-metric-value-manual-entry-form.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AACxC,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAG9D,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU;IAAtD;;QAqDI,cAAS,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,KAAK,CAA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A6CF;CACF,AAjDY,CAiDZ;AAE2B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;6DAAY;AAC9B;IAAR,KAAK,EAAE;;gEAAkD;AACjD;IAAR,KAAK,EAAE;;4DAAW;AACV;IAAR,KAAK,EAAE;;0DAAS;AACR;IAAR,KAAK,EAAE;;2DAAU;AACT;IAAR,KAAK,EAAE;;8DAAgB;AAzDb,6BAA6B;IADzC,aAAa,CAAC,oCAAoC,CAAC;GACvC,6BAA6B,CAsIzC","sourcesContent":["import { html, LitElement, css } from 'lit'\nimport { customElement, property, state } from 'lit/decorators.js'\nimport { client } from '@operato/graphql'\nimport { notify } from '@operato/layout'\nimport gql from 'graphql-tag'\nimport { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles'\n\n@customElement('kpi-metric-value-manual-entry-form')\nexport class KpiMetricValueManualEntryForm extends LitElement {\n static styles = [\n CommonHeaderStyles,\n ScrollbarStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n background-color: var(--md-sys-color-surface, #f4f6fa);\n }\n form {\n flex: 1;\n display: flex;\n flex-direction: column;\n overflow-y: auto;\n }\n .form-card {\n flex: 1;\n display: flex;\n flex-direction: column;\n padding: 32px 32px 0 32px;\n background: #fff;\n }\n label {\n font-weight: 500;\n margin-bottom: 4px;\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n input,\n textarea {\n font-size: 1em;\n padding: 6px 8px;\n border: 1px solid #ccc;\n margin-top: 2px;\n resize: none;\n }\n .desc {\n font-size: 0.95em;\n color: #888;\n margin-top: 8px;\n }\n .footer span {\n font-size: 0.8em;\n color: var(--md-sys-color-on-surface);\n line-height: 1.5;\n padding: 10px;\n }\n `\n ]\n\n @property({ type: Object }) metric: any\n @state() valueDate = new Date().toISOString().slice(0, 10)\n @state() value = ''\n @state() org = ''\n @state() meta = ''\n @state() loading = false\n\n render() {\n return html`\n <form style=\"display:flex;flex-direction:column;height:100%;\">\n <div class=\"form-card\">\n <div style=\"font-size:1.1em;font-weight:bold;margin-bottom:16px;\"><b>Metric:</b> ${this.metric?.name}</div>\n <label>\n 날짜\n <input type=\"date\" .value=${this.valueDate} @input=${e => (this.valueDate = e.target.value)} required />\n </label>\n <label>\n 값\n <input type=\"number\" .value=${this.value} @input=${e => (this.value = e.target.value)} required />\n </label>\n <label>\n 그룹 (선택)\n <input type=\"text\" .value=${this.org} @input=${e => (this.org = e.target.value)} />\n </label>\n <label>\n 메타정보 (선택, JSON)\n <textarea .value=${this.meta} @input=${e => (this.meta = e.target.value)}></textarea>\n </label>\n <div class=\"desc\">입력방식: MANUAL, Source: MANUAL (자동 지정)</div>\n </div>\n </form>\n <div class=\"footer\">\n <div filler></div>\n <button type=\"button\" ?disabled=${this.loading} done @click=${this.save}><md-icon>save</md-icon>저장</button>\n </div>\n `\n }\n\n async save() {\n this.loading = true\n let parsedMeta = undefined\n if (this.meta) {\n try {\n parsedMeta = JSON.parse(this.meta)\n } catch (err) {\n notify({ message: '메타정보는 올바른 JSON이어야 합니다.', level: 'error' })\n this.loading = false\n return\n }\n }\n try {\n await client.mutate({\n mutation: gql`\n mutation ($metricName: String!, $value: Float!, $org: String, $meta: Object) {\n recordKpiMetricValue(metricName: $metricName, value: $value, meta: $meta, org: $org) {\n id\n }\n }\n `,\n variables: {\n metricName: this.metric.name,\n value: parseFloat(this.value),\n org: this.org || undefined,\n meta: parsedMeta\n }\n })\n notify({ message: 'Metric 값이 저장되었습니다.' })\n this.dispatchEvent(new CustomEvent('saved', { bubbles: true, composed: true }))\n let el: any = this.parentElement\n while (el) {\n if (typeof el.close === 'function') {\n el.close()\n break\n }\n el = el.parentElement\n }\n } catch (err: any) {\n notify({ message: '저장 실패: ' + (err?.message || err), level: 'error' })\n } finally {\n this.loading = false\n }\n }\n}\n"]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
|
+
import '@operato/data-grist';
|
|
3
|
+
import './kpi-metric-value-manual-entry-form.js';
|
|
4
|
+
import { PageView } from '@operato/shell';
|
|
5
|
+
declare const KpiMetricValueManualEntryPage_base: (new (...args: any[]) => {
|
|
6
|
+
_storeUnsubscribe: import("redux").Unsubscribe;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
9
|
+
stateChanged(_state: unknown): void;
|
|
10
|
+
readonly isConnected: boolean;
|
|
11
|
+
}) & (new (...args: any[]) => import("lit").LitElement) & typeof PageView;
|
|
12
|
+
export declare class KpiMetricValueManualEntryPage extends KpiMetricValueManualEntryPage_base {
|
|
13
|
+
static styles: import("lit").CSSResult[];
|
|
14
|
+
get context(): {
|
|
15
|
+
title: string;
|
|
16
|
+
search: {
|
|
17
|
+
handler: (search: string) => void;
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
filter: {
|
|
21
|
+
handler: () => void;
|
|
22
|
+
};
|
|
23
|
+
help: string;
|
|
24
|
+
};
|
|
25
|
+
private gristConfig;
|
|
26
|
+
private metrics;
|
|
27
|
+
private grist;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
pageInitialized(): Promise<void>;
|
|
30
|
+
fetchHandler({ page, limit, sortings, filters }: {
|
|
31
|
+
page?: number | undefined;
|
|
32
|
+
limit?: number | undefined;
|
|
33
|
+
sortings?: never[] | undefined;
|
|
34
|
+
filters?: never[] | undefined;
|
|
35
|
+
}): Promise<{
|
|
36
|
+
total: any;
|
|
37
|
+
records: any;
|
|
38
|
+
}>;
|
|
39
|
+
openManualEntryForm(metric: any): void;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@operato/data-grist';
|
|
4
|
+
import './kpi-metric-value-manual-entry-form.js';
|
|
5
|
+
import { css, html } from 'lit';
|
|
6
|
+
import { customElement, query, state } from 'lit/decorators.js';
|
|
7
|
+
import { connect } from 'pwa-helpers/connect-mixin';
|
|
8
|
+
import { DataGrist } from '@operato/data-grist';
|
|
9
|
+
import { client } from '@operato/graphql';
|
|
10
|
+
import { i18next, localize } from '@operato/i18n';
|
|
11
|
+
import { openPopup } from '@operato/layout';
|
|
12
|
+
import { PageView, store } from '@operato/shell';
|
|
13
|
+
import { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles';
|
|
14
|
+
import gql from 'graphql-tag';
|
|
15
|
+
let KpiMetricValueManualEntryPage = class KpiMetricValueManualEntryPage extends connect(store)(localize(i18next)(PageView)) {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.metrics = [];
|
|
19
|
+
}
|
|
20
|
+
get context() {
|
|
21
|
+
return {
|
|
22
|
+
title: i18next.t('title.kpi metric value manual entry'),
|
|
23
|
+
search: {
|
|
24
|
+
handler: (search) => {
|
|
25
|
+
this.grist.searchText = search;
|
|
26
|
+
},
|
|
27
|
+
value: this.grist.searchText
|
|
28
|
+
},
|
|
29
|
+
filter: {
|
|
30
|
+
handler: () => {
|
|
31
|
+
this.grist.toggleHeadroom();
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
help: 'kpi/kpi-metric-value'
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
return html ` <ox-grist mode="CARD" .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}></ox-grist> `;
|
|
39
|
+
}
|
|
40
|
+
async pageInitialized() {
|
|
41
|
+
this.gristConfig = {
|
|
42
|
+
list: {
|
|
43
|
+
fields: ['name', 'description'],
|
|
44
|
+
details: ['periodType', 'active']
|
|
45
|
+
},
|
|
46
|
+
columns: [
|
|
47
|
+
{
|
|
48
|
+
type: 'gutter',
|
|
49
|
+
gutterName: 'button',
|
|
50
|
+
icon: 'note_alt',
|
|
51
|
+
iconOnly: false,
|
|
52
|
+
width: 96,
|
|
53
|
+
fixed: true,
|
|
54
|
+
title: () => i18next.t('button.enter-kpi-metric-value'),
|
|
55
|
+
handlers: {
|
|
56
|
+
click: (columns, data, column, record, rowIndex) => {
|
|
57
|
+
this.openManualEntryForm(record);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
type: 'string',
|
|
63
|
+
name: 'name',
|
|
64
|
+
header: i18next.t('field.name'),
|
|
65
|
+
record: { editable: false },
|
|
66
|
+
filter: 'search',
|
|
67
|
+
sortable: true,
|
|
68
|
+
width: 150
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
type: 'string',
|
|
72
|
+
name: 'description',
|
|
73
|
+
header: i18next.t('field.description'),
|
|
74
|
+
record: { editable: false },
|
|
75
|
+
width: 200
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: 'select',
|
|
79
|
+
name: 'periodType',
|
|
80
|
+
header: '주기',
|
|
81
|
+
record: {
|
|
82
|
+
editable: true,
|
|
83
|
+
options: [
|
|
84
|
+
{ value: '', display: '' },
|
|
85
|
+
{ value: 'DAY', display: '일' },
|
|
86
|
+
{ value: 'WEEK', display: '주' },
|
|
87
|
+
{ value: 'MONTH', display: '월' },
|
|
88
|
+
{ value: 'QUARTER', display: '분기' },
|
|
89
|
+
{ value: 'YEAR', display: '년' },
|
|
90
|
+
{ value: 'RANGE', display: '범위' },
|
|
91
|
+
{ value: 'ALLTIME', display: '전체' }
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
width: 80
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'checkbox',
|
|
98
|
+
name: 'active',
|
|
99
|
+
label: true,
|
|
100
|
+
header: 'Active',
|
|
101
|
+
record: { editable: false },
|
|
102
|
+
width: 60
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
rows: {
|
|
106
|
+
appendable: false,
|
|
107
|
+
editable: false,
|
|
108
|
+
selectable: {
|
|
109
|
+
multiple: false
|
|
110
|
+
},
|
|
111
|
+
classifier: function (record, rowIndex) { }
|
|
112
|
+
},
|
|
113
|
+
sorters: [
|
|
114
|
+
{
|
|
115
|
+
name: 'name'
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }) {
|
|
121
|
+
const response = await client.query({
|
|
122
|
+
query: gql `
|
|
123
|
+
query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {
|
|
124
|
+
responses: kpiMetrics(filters: $filters, pagination: $pagination, sortings: $sortings) {
|
|
125
|
+
items {
|
|
126
|
+
id
|
|
127
|
+
name
|
|
128
|
+
description
|
|
129
|
+
periodType
|
|
130
|
+
active
|
|
131
|
+
}
|
|
132
|
+
total
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`,
|
|
136
|
+
variables: {
|
|
137
|
+
filters,
|
|
138
|
+
pagination: { page, limit },
|
|
139
|
+
sortings
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
return {
|
|
143
|
+
total: response.data.responses.total || 0,
|
|
144
|
+
records: response.data.responses.items || []
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
openManualEntryForm(metric) {
|
|
148
|
+
openPopup(html `
|
|
149
|
+
<kpi-metric-value-manual-entry-form
|
|
150
|
+
.metric=${metric}
|
|
151
|
+
@saved=${() => this.grist.fetch()}
|
|
152
|
+
></kpi-metric-value-manual-entry-form>
|
|
153
|
+
`, {
|
|
154
|
+
backdrop: true,
|
|
155
|
+
size: 'medium',
|
|
156
|
+
movable: true,
|
|
157
|
+
title: `${metric.name} - Metric 값 수동 입력`
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
KpiMetricValueManualEntryPage.styles = [
|
|
162
|
+
ScrollbarStyles,
|
|
163
|
+
CommonHeaderStyles,
|
|
164
|
+
css `
|
|
165
|
+
:host {
|
|
166
|
+
display: flex;
|
|
167
|
+
width: 100%;
|
|
168
|
+
}
|
|
169
|
+
ox-grist {
|
|
170
|
+
overflow-y: auto;
|
|
171
|
+
flex: 1;
|
|
172
|
+
}
|
|
173
|
+
`
|
|
174
|
+
];
|
|
175
|
+
__decorate([
|
|
176
|
+
state(),
|
|
177
|
+
__metadata("design:type", Object)
|
|
178
|
+
], KpiMetricValueManualEntryPage.prototype, "gristConfig", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
state(),
|
|
181
|
+
__metadata("design:type", Array)
|
|
182
|
+
], KpiMetricValueManualEntryPage.prototype, "metrics", void 0);
|
|
183
|
+
__decorate([
|
|
184
|
+
query('ox-grist'),
|
|
185
|
+
__metadata("design:type", DataGrist)
|
|
186
|
+
], KpiMetricValueManualEntryPage.prototype, "grist", void 0);
|
|
187
|
+
KpiMetricValueManualEntryPage = __decorate([
|
|
188
|
+
customElement('kpi-metric-value-manual-entry-page')
|
|
189
|
+
], KpiMetricValueManualEntryPage);
|
|
190
|
+
export { KpiMetricValueManualEntryPage };
|
|
191
|
+
//# sourceMappingURL=kpi-metric-value-manual-entry-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-metric-value-manual-entry-page.js","sourceRoot":"","sources":["../../../client/pages/kpi-metric-value/kpi-metric-value-manual-entry-page.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,qBAAqB,CAAA;AAC5B,OAAO,yCAAyC,CAAA;AAEhD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAA;AAC/B,OAAO,EAAE,aAAa,EAAY,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,C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AA;IACH,CAAC;IAED,mBAAmB,CAAC,MAAM;QACxB,SAAS,CACP,IAAI,CAAA;;oBAEU,MAAM;mBACP,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;;OAEpC,EACD;YACE,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,GAAG,MAAM,CAAC,IAAI,mBAAmB;SACzC,CACF,CAAA;IACH,CAAC;;AArKM,oCAAM,GAAG;IACd,eAAe;IACf,kBAAkB;IAClB,GAAG,CAAA;;;;;;;;;KASF;CACF,AAbY,CAaZ;AAoBgB;IAAhB,KAAK,EAAE;;kEAAyB;AAChB;IAAhB,KAAK,EAAE;;8DAA4B;AACT;IAA1B,KAAK,CAAC,UAAU,CAAC;8BAAiB,SAAS;4DAAA;AApCjC,6BAA6B;IADzC,aAAa,CAAC,oCAAoC,CAAC;GACvC,6BAA6B,CAuKzC","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/data-grist'\nimport './kpi-metric-value-manual-entry-form.js'\n\nimport { css, html } from 'lit'\nimport { customElement, property, query, state } from 'lit/decorators.js'\nimport { connect } from 'pwa-helpers/connect-mixin'\nimport { DataGrist } from '@operato/data-grist'\nimport { client } from '@operato/graphql'\nimport { i18next, localize } from '@operato/i18n'\nimport { openPopup, notify } from '@operato/layout'\nimport { PageView, store } from '@operato/shell'\nimport { CommonHeaderStyles, ScrollbarStyles } from '@operato/styles'\nimport gql from 'graphql-tag'\n\n@customElement('kpi-metric-value-manual-entry-page')\nexport class KpiMetricValueManualEntryPage extends connect(store)(localize(i18next)(PageView)) {\n static styles = [\n ScrollbarStyles,\n CommonHeaderStyles,\n css`\n :host {\n display: flex;\n width: 100%;\n }\n ox-grist {\n overflow-y: auto;\n flex: 1;\n }\n `\n ]\n\n get context() {\n return {\n title: i18next.t('title.kpi metric value manual entry'),\n search: {\n handler: (search: string) => {\n this.grist.searchText = search\n },\n value: this.grist.searchText\n },\n filter: {\n handler: () => {\n this.grist.toggleHeadroom()\n }\n },\n help: 'kpi/kpi-metric-value'\n }\n }\n\n @state() private gristConfig: any\n @state() private metrics: any[] = []\n @query('ox-grist') private grist!: DataGrist\n\n render() {\n return html` <ox-grist mode=\"CARD\" .config=${this.gristConfig} .fetchHandler=${this.fetchHandler.bind(this)}></ox-grist> `\n }\n\n async pageInitialized() {\n this.gristConfig = {\n list: {\n fields: ['name', 'description'],\n details: ['periodType', 'active']\n },\n columns: [\n {\n type: 'gutter',\n gutterName: 'button',\n icon: 'note_alt',\n iconOnly: false,\n width: 96,\n fixed: true,\n title: () => i18next.t('button.enter-kpi-metric-value'),\n handlers: {\n click: (columns, data, column, record, rowIndex) => {\n this.openManualEntryForm(record)\n }\n }\n },\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n record: { editable: false },\n filter: 'search',\n sortable: true,\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n record: { editable: false },\n width: 200\n },\n {\n type: 'select',\n name: 'periodType',\n header: '주기',\n record: {\n editable: true,\n options: [\n { value: '', display: '' },\n { value: 'DAY', display: '일' },\n { value: 'WEEK', display: '주' },\n { value: 'MONTH', display: '월' },\n { value: 'QUARTER', display: '분기' },\n { value: 'YEAR', display: '년' },\n { value: 'RANGE', display: '범위' },\n { value: 'ALLTIME', display: '전체' }\n ]\n },\n width: 80\n },\n {\n type: 'checkbox',\n name: 'active',\n label: true,\n header: 'Active',\n record: { editable: false },\n width: 60\n }\n ],\n rows: {\n appendable: false,\n editable: false,\n selectable: {\n multiple: false\n },\n classifier: function (record, rowIndex) {}\n },\n sorters: [\n {\n name: 'name'\n }\n ]\n }\n }\n\n async fetchHandler({ page = 1, limit = 100, sortings = [], filters = [] }) {\n const response = await client.query({\n query: gql`\n query ($filters: [Filter!], $pagination: Pagination, $sortings: [Sorting!]) {\n responses: kpiMetrics(filters: $filters, pagination: $pagination, sortings: $sortings) {\n items {\n id\n name\n description\n periodType\n active\n }\n total\n }\n }\n `,\n variables: {\n filters,\n pagination: { page, limit },\n sortings\n }\n })\n return {\n total: response.data.responses.total || 0,\n records: response.data.responses.items || []\n }\n }\n\n openManualEntryForm(metric) {\n openPopup(\n html`\n <kpi-metric-value-manual-entry-form\n .metric=${metric}\n @saved=${() => this.grist.fetch()}\n ></kpi-metric-value-manual-entry-form>\n `,\n {\n backdrop: true,\n size: 'medium',\n movable: true,\n title: `${metric.name} - Metric 값 수동 입력`\n }\n )\n }\n}\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import '@material/web/icon/icon.js';
|
|
2
|
+
import '@operato/data-grist';
|
|
3
|
+
import { LitElement } from 'lit';
|
|
4
|
+
export declare class KpiValueImporter extends LitElement {
|
|
5
|
+
static styles: import("lit").CSSResult[];
|
|
6
|
+
kpiValues: any[];
|
|
7
|
+
columns: {
|
|
8
|
+
list: {
|
|
9
|
+
fields: string[];
|
|
10
|
+
};
|
|
11
|
+
pagination: {
|
|
12
|
+
infinite: boolean;
|
|
13
|
+
};
|
|
14
|
+
columns: {
|
|
15
|
+
type: string;
|
|
16
|
+
name: string;
|
|
17
|
+
header: string;
|
|
18
|
+
width: number;
|
|
19
|
+
}[];
|
|
20
|
+
};
|
|
21
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
+
save(): Promise<void>;
|
|
23
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { __decorate, __metadata } from "tslib";
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '@operato/data-grist';
|
|
4
|
+
import gql from 'graphql-tag';
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
|
+
import { property } from 'lit/decorators.js';
|
|
7
|
+
import { client } from '@operato/graphql';
|
|
8
|
+
import { i18next } from '@operato/i18n';
|
|
9
|
+
import { isMobileDevice } from '@operato/utils';
|
|
10
|
+
import { ButtonContainerStyles } from '@operato/styles';
|
|
11
|
+
export class KpiValueImporter extends LitElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.kpiValues = [];
|
|
15
|
+
this.columns = {
|
|
16
|
+
list: { fields: ['name', 'description'] },
|
|
17
|
+
pagination: { infinite: true },
|
|
18
|
+
columns: [
|
|
19
|
+
{
|
|
20
|
+
type: 'string',
|
|
21
|
+
name: 'name',
|
|
22
|
+
header: i18next.t('field.name'),
|
|
23
|
+
width: 150
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
type: 'string',
|
|
27
|
+
name: 'description',
|
|
28
|
+
header: i18next.t('field.description'),
|
|
29
|
+
width: 200
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
type: 'checkbox',
|
|
33
|
+
name: 'active',
|
|
34
|
+
header: i18next.t('field.active'),
|
|
35
|
+
width: 60
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
render() {
|
|
41
|
+
return html `
|
|
42
|
+
<ox-grist
|
|
43
|
+
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
44
|
+
.config=${this.columns}
|
|
45
|
+
.data=${{
|
|
46
|
+
records: this.kpiValues
|
|
47
|
+
}}
|
|
48
|
+
></ox-grist>
|
|
49
|
+
|
|
50
|
+
<div class="button-container">
|
|
51
|
+
<button @click="${this.save.bind(this)}"><md-icon>save</md-icon>${i18next.t('button.save')}</button>
|
|
52
|
+
</div>
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
async save() {
|
|
56
|
+
var _a;
|
|
57
|
+
const response = await client.mutate({
|
|
58
|
+
mutation: gql `
|
|
59
|
+
mutation importKpiValues($kpiValues: [KpiValuePatch!]!) {
|
|
60
|
+
importKpiValues(kpiValues: $kpiValues)
|
|
61
|
+
}
|
|
62
|
+
`,
|
|
63
|
+
variables: { kpiValues: this.kpiValues }
|
|
64
|
+
});
|
|
65
|
+
if ((_a = response.errors) === null || _a === void 0 ? void 0 : _a.length)
|
|
66
|
+
return;
|
|
67
|
+
this.dispatchEvent(new CustomEvent('imported'));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
KpiValueImporter.styles = [
|
|
71
|
+
ButtonContainerStyles,
|
|
72
|
+
css `
|
|
73
|
+
:host {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
|
|
77
|
+
background-color: #fff;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
ox-grist {
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
83
|
+
`
|
|
84
|
+
];
|
|
85
|
+
__decorate([
|
|
86
|
+
property({ type: Array }),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], KpiValueImporter.prototype, "kpiValues", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
property({ type: Object }),
|
|
91
|
+
__metadata("design:type", Object)
|
|
92
|
+
], KpiValueImporter.prototype, "columns", void 0);
|
|
93
|
+
//# sourceMappingURL=kpi-value-importer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kpi-value-importer.js","sourceRoot":"","sources":["../../../client/pages/kpi-value/kpi-value-importer.ts"],"names":[],"mappings":";AAAA,OAAO,4BAA4B,CAAA;AACnC,OAAO,qBAAqB,CAAA;AAE5B,OAAO,GAAG,MAAM,aAAa,CAAA;AAC7B,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAE5C,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEvD,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAAhD;;QAiB6B,cAAS,GAA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C,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC,CAAA;IACjD,CAAC;;AA1EM,uBAAM,GAAG;IACd,qBAAqB;IACrB,GAAG,CAAA;;;;;;;;;;;KAWF;CACF,AAdY,CAcZ;AAE0B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;;mDAAsB;AACpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;iDAuB1B","sourcesContent":["import '@material/web/icon/icon.js'\nimport '@operato/data-grist'\n\nimport gql from 'graphql-tag'\nimport { css, html, LitElement } from 'lit'\nimport { property } from 'lit/decorators.js'\n\nimport { client } from '@operato/graphql'\nimport { i18next } from '@operato/i18n'\nimport { isMobileDevice } from '@operato/utils'\nimport { ButtonContainerStyles } from '@operato/styles'\n\nexport class KpiValueImporter extends LitElement {\n static styles = [\n ButtonContainerStyles,\n css`\n :host {\n display: flex;\n flex-direction: column;\n\n background-color: #fff;\n }\n\n ox-grist {\n flex: 1;\n }\n `\n ]\n\n @property({ type: Array }) kpiValues: any[] = []\n @property({ type: Object }) columns = {\n list: { fields: ['name', 'description'] },\n pagination: { infinite: true },\n columns: [\n {\n type: 'string',\n name: 'name',\n header: i18next.t('field.name'),\n width: 150\n },\n {\n type: 'string',\n name: 'description',\n header: i18next.t('field.description'),\n width: 200\n },\n {\n type: 'checkbox',\n name: 'active',\n header: i18next.t('field.active'),\n width: 60\n }\n ]\n }\n\n\n render() {\n return html`\n <ox-grist\n .mode=${isMobileDevice() ? 'LIST' : 'GRID'}\n .config=${this.columns}\n .data=${\n { \n records: this.kpiValues \n }\n }\n ></ox-grist>\n\n <div class=\"button-container\">\n <button @click=\"${this.save.bind(this)}\"><md-icon>save</md-icon>${i18next.t('button.save')}</button>\n </div>\n `\n }\n\n async save() {\n const response = await client.mutate({\n mutation: gql`\n mutation importKpiValues($kpiValues: [KpiValuePatch!]!) {\n importKpiValues(kpiValues: $kpiValues)\n }\n `,\n variables: { kpiValues: this.kpiValues }\n })\n\n if (response.errors?.length) return\n\n this.dispatchEvent(new CustomEvent('imported'))\n }\n}\n\n"]}
|