@operato/input 9.0.5 → 9.0.8
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.
|
@@ -0,0 +1,970 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright © HatioLab Inc. All rights reserved.
|
|
3
|
+
*/
|
|
4
|
+
import { __decorate } from "tslib";
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
import '@material/web/button/elevated-button.js';
|
|
7
|
+
import '@operato/i18n/ox-i18n.js';
|
|
8
|
+
import { css, html } from 'lit';
|
|
9
|
+
import { customElement, property, query, state } from 'lit/decorators.js';
|
|
10
|
+
import { OxFormField } from '@operato/input';
|
|
11
|
+
/**
|
|
12
|
+
* Formula editor component for KPI calculations
|
|
13
|
+
*
|
|
14
|
+
* Example:
|
|
15
|
+
*
|
|
16
|
+
* <ox-input-formula
|
|
17
|
+
* .value=${formulaValue}
|
|
18
|
+
* .availableVariables=${variables}
|
|
19
|
+
* ></ox-input-formula>
|
|
20
|
+
*/
|
|
21
|
+
let KpiFormulaEditor = class KpiFormulaEditor extends OxFormField {
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.value = '';
|
|
25
|
+
this.availableVariables = [];
|
|
26
|
+
this.errorMessage = '';
|
|
27
|
+
this.isValid = true;
|
|
28
|
+
this._changingNow = false;
|
|
29
|
+
// 기본 연산자들
|
|
30
|
+
this.operators = [
|
|
31
|
+
{ symbol: '+', description: '더하기' },
|
|
32
|
+
{ symbol: '-', description: '빼기' },
|
|
33
|
+
{ symbol: '*', description: '곱하기' },
|
|
34
|
+
{ symbol: '/', description: '나누기' },
|
|
35
|
+
{ symbol: '(', description: '여는 괄호' },
|
|
36
|
+
{ symbol: ')', description: '닫는 괄호' },
|
|
37
|
+
{ symbol: '=', description: '같음' },
|
|
38
|
+
{ symbol: '>', description: '보다 큼' },
|
|
39
|
+
{ symbol: '<', description: '보다 작음' },
|
|
40
|
+
{ symbol: '>=', description: '보다 크거나 같음' },
|
|
41
|
+
{ symbol: '<=', description: '보다 작거나 같음' },
|
|
42
|
+
{ symbol: '!=', description: '다름' },
|
|
43
|
+
{ symbol: '&&', description: 'AND' },
|
|
44
|
+
{ symbol: '||', description: 'OR' }
|
|
45
|
+
];
|
|
46
|
+
// 기본 함수들 (도움말 정보 포함)
|
|
47
|
+
this.functions = [
|
|
48
|
+
{
|
|
49
|
+
name: 'SUM()',
|
|
50
|
+
description: '합계',
|
|
51
|
+
template: 'SUM({expression})',
|
|
52
|
+
syntax: 'SUM(expression)',
|
|
53
|
+
parameters: ['expression - 합계를 계산할 값 또는 변수'],
|
|
54
|
+
returnType: 'number',
|
|
55
|
+
help: '주어진 값들의 합계를 계산합니다. 숫자 배열이나 변수들을 인자로 받습니다.',
|
|
56
|
+
examples: ['SUM(metric1, metric2, metric3)', 'SUM(production_data)', 'SUM(100, 200, 300)']
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'AVG()',
|
|
60
|
+
description: '평균',
|
|
61
|
+
template: 'AVG({expression})',
|
|
62
|
+
syntax: 'AVG(expression)',
|
|
63
|
+
parameters: ['expression - 평균을 계산할 값 또는 변수'],
|
|
64
|
+
returnType: 'number',
|
|
65
|
+
help: '주어진 값들의 평균을 계산합니다. 숫자 배열이나 변수들을 인자로 받습니다.',
|
|
66
|
+
examples: ['AVG(quality_scores)', 'AVG(metric1, metric2, metric3)', 'AVG(10, 20, 30)']
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'MAX()',
|
|
70
|
+
description: '최대값',
|
|
71
|
+
template: 'MAX({expression})',
|
|
72
|
+
syntax: 'MAX(expression)',
|
|
73
|
+
parameters: ['expression - 최대값을 찾을 값 또는 변수'],
|
|
74
|
+
returnType: 'number',
|
|
75
|
+
help: '주어진 값들 중 최대값을 반환합니다.',
|
|
76
|
+
examples: ['MAX(performance_data)', 'MAX(metric1, metric2, metric3)', 'MAX(100, 200, 300)']
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'MIN()',
|
|
80
|
+
description: '최소값',
|
|
81
|
+
template: 'MIN({expression})',
|
|
82
|
+
syntax: 'MIN(expression)',
|
|
83
|
+
parameters: ['expression - 최소값을 찾을 값 또는 변수'],
|
|
84
|
+
returnType: 'number',
|
|
85
|
+
help: '주어진 값들 중 최소값을 반환합니다.',
|
|
86
|
+
examples: ['MIN(quality_scores)', 'MIN(metric1, metric2, metric3)', 'MIN(10, 20, 30)']
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'COUNT()',
|
|
90
|
+
description: '개수',
|
|
91
|
+
template: 'COUNT({expression})',
|
|
92
|
+
syntax: 'COUNT(expression)',
|
|
93
|
+
parameters: ['expression - 개수를 셀 값 또는 변수'],
|
|
94
|
+
returnType: 'number',
|
|
95
|
+
help: '주어진 값들의 개수를 반환합니다.',
|
|
96
|
+
examples: ['COUNT(active_projects)', 'COUNT(metric1, metric2, metric3)', 'COUNT(1, 2, 3, 4, 5)']
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'ROUND()',
|
|
100
|
+
description: '반올림',
|
|
101
|
+
template: 'ROUND({expression}, 2)',
|
|
102
|
+
syntax: 'ROUND(expression, decimals)',
|
|
103
|
+
parameters: ['expression - 반올림할 값', 'decimals - 소수점 자릿수 (기본값: 0)'],
|
|
104
|
+
returnType: 'number',
|
|
105
|
+
help: '주어진 값을 지정된 소수점 자릿수로 반올림합니다.',
|
|
106
|
+
examples: ['ROUND(3.14159, 2) → 3.14', 'ROUND(metric1, 0)', 'ROUND(AVG(scores), 1)']
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
name: 'ABS()',
|
|
110
|
+
description: '절대값',
|
|
111
|
+
template: 'ABS({expression})',
|
|
112
|
+
syntax: 'ABS(expression)',
|
|
113
|
+
parameters: ['expression - 절대값을 구할 값'],
|
|
114
|
+
returnType: 'number',
|
|
115
|
+
help: '주어진 값의 절대값을 반환합니다.',
|
|
116
|
+
examples: ['ABS(-10) → 10', 'ABS(metric1 - target)', 'ABS(deviation)']
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'IF()',
|
|
120
|
+
description: '조건문',
|
|
121
|
+
template: 'IF({condition}, {true_value}, {false_value})',
|
|
122
|
+
syntax: 'IF(condition, true_value, false_value)',
|
|
123
|
+
parameters: [
|
|
124
|
+
'condition - 조건식 (true/false)',
|
|
125
|
+
'true_value - 조건이 참일 때 반환할 값',
|
|
126
|
+
'false_value - 조건이 거짓일 때 반환할 값'
|
|
127
|
+
],
|
|
128
|
+
returnType: 'any',
|
|
129
|
+
help: '조건에 따라 다른 값을 반환합니다. 조건이 참이면 true_value를, 거짓이면 false_value를 반환합니다.',
|
|
130
|
+
examples: [
|
|
131
|
+
'IF(score > 80, "우수", "보통")',
|
|
132
|
+
'IF(metric1 > target, 100, 0)',
|
|
133
|
+
'IF(quality_score >= 90, "A등급", IF(quality_score >= 80, "B등급", "C등급"))'
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: 'CASE()',
|
|
138
|
+
description: '케이스문',
|
|
139
|
+
template: 'CASE {expression} WHEN {value1} THEN {result1} ELSE {default} END',
|
|
140
|
+
syntax: 'CASE expression WHEN value1 THEN result1 [WHEN value2 THEN result2]... ELSE default END',
|
|
141
|
+
parameters: [
|
|
142
|
+
'expression - 비교할 값',
|
|
143
|
+
'value1, value2... - 비교할 값들',
|
|
144
|
+
'result1, result2... - 해당 값일 때 반환할 결과들',
|
|
145
|
+
'default - 기본값'
|
|
146
|
+
],
|
|
147
|
+
returnType: 'any',
|
|
148
|
+
help: '여러 조건에 따라 다른 값을 반환합니다. IF문의 확장된 형태입니다.',
|
|
149
|
+
examples: [
|
|
150
|
+
'CASE grade WHEN "A" THEN 100 WHEN "B" THEN 80 WHEN "C" THEN 60 ELSE 0 END',
|
|
151
|
+
'CASE score WHEN 90 THEN "우수" WHEN 80 THEN "양호" WHEN 70 THEN "보통" ELSE "미흡" END'
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
}
|
|
156
|
+
static { this.styles = [
|
|
157
|
+
css `
|
|
158
|
+
:host {
|
|
159
|
+
display: flex;
|
|
160
|
+
flex-direction: column;
|
|
161
|
+
overflow: hidden;
|
|
162
|
+
margin-bottom: var(--spacing-large);
|
|
163
|
+
gap: var(--spacing-medium);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.formula-container {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
gap: var(--spacing-small);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.formula-input-container {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-direction: column;
|
|
175
|
+
gap: var(--spacing-small);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.formula-textarea {
|
|
179
|
+
min-height: 120px;
|
|
180
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
181
|
+
border-radius: 4px;
|
|
182
|
+
padding: var(--spacing-medium);
|
|
183
|
+
font-family: 'Courier New', monospace;
|
|
184
|
+
font-size: 14px;
|
|
185
|
+
line-height: 1.4;
|
|
186
|
+
resize: vertical;
|
|
187
|
+
background-color: #f8f9fa;
|
|
188
|
+
font-size: 1.3rem;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.formula-textarea:focus {
|
|
192
|
+
outline: none;
|
|
193
|
+
border-color: var(--md-sys-color-primary);
|
|
194
|
+
background-color: white;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.variables-container {
|
|
198
|
+
display: flex;
|
|
199
|
+
flex-direction: column;
|
|
200
|
+
gap: var(--spacing-small);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.variables-header {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: center;
|
|
206
|
+
gap: var(--spacing-small);
|
|
207
|
+
font-weight: 500;
|
|
208
|
+
color: var(--md-sys-color-on-surface);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.variables-grid {
|
|
212
|
+
display: grid;
|
|
213
|
+
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
214
|
+
gap: var(--spacing-small);
|
|
215
|
+
max-height: 200px;
|
|
216
|
+
overflow-y: auto;
|
|
217
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
218
|
+
border-radius: 4px;
|
|
219
|
+
padding: var(--spacing-small);
|
|
220
|
+
background-color: #f8f9fa;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.variable-item {
|
|
224
|
+
display: flex;
|
|
225
|
+
flex-direction: column;
|
|
226
|
+
padding: var(--spacing-small);
|
|
227
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
228
|
+
border-radius: 4px;
|
|
229
|
+
background-color: white;
|
|
230
|
+
cursor: pointer;
|
|
231
|
+
transition: all 0.2s ease;
|
|
232
|
+
position: relative;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.variable-item:hover {
|
|
236
|
+
border-color: var(--md-sys-color-primary);
|
|
237
|
+
background-color: var(--md-sys-color-primary-container);
|
|
238
|
+
transform: translateY(-1px);
|
|
239
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.variable-name {
|
|
243
|
+
font-weight: 500;
|
|
244
|
+
color: var(--md-sys-color-primary);
|
|
245
|
+
font-size: 12px;
|
|
246
|
+
font-family: 'Courier New', monospace;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.variable-description {
|
|
250
|
+
font-size: 11px;
|
|
251
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
252
|
+
margin-top: 2px;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.variable-type {
|
|
256
|
+
font-size: 10px;
|
|
257
|
+
color: var(--md-sys-color-outline);
|
|
258
|
+
margin-top: 2px;
|
|
259
|
+
text-transform: uppercase;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.help-icon {
|
|
263
|
+
position: absolute;
|
|
264
|
+
top: 4px;
|
|
265
|
+
right: 4px;
|
|
266
|
+
font-size: 14px;
|
|
267
|
+
color: var(--md-sys-color-outline);
|
|
268
|
+
cursor: pointer;
|
|
269
|
+
padding: 2px;
|
|
270
|
+
border-radius: 2px;
|
|
271
|
+
transition: all 0.2s ease;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.help-icon:hover {
|
|
275
|
+
color: var(--md-sys-color-primary);
|
|
276
|
+
background-color: var(--md-sys-color-primary-container);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.operators-container {
|
|
280
|
+
display: flex;
|
|
281
|
+
flex-wrap: wrap;
|
|
282
|
+
gap: var(--spacing-small);
|
|
283
|
+
margin-top: var(--spacing-small);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.operator-button {
|
|
287
|
+
padding: var(--spacing-small) var(--spacing-medium);
|
|
288
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
289
|
+
border-radius: 4px;
|
|
290
|
+
background-color: white;
|
|
291
|
+
cursor: pointer;
|
|
292
|
+
font-family: 'Courier New', monospace;
|
|
293
|
+
font-size: 12px;
|
|
294
|
+
transition: all 0.2s ease;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.operator-button:hover {
|
|
298
|
+
background-color: var(--md-sys-color-primary-container);
|
|
299
|
+
border-color: var(--md-sys-color-primary);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.functions-container {
|
|
303
|
+
display: flex;
|
|
304
|
+
flex-direction: column;
|
|
305
|
+
gap: var(--spacing-small);
|
|
306
|
+
margin-top: var(--spacing-small);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.functions-header {
|
|
310
|
+
font-weight: 500;
|
|
311
|
+
color: var(--md-sys-color-on-surface);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.functions-grid {
|
|
315
|
+
display: grid;
|
|
316
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
317
|
+
gap: var(--spacing-small);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.function-button {
|
|
321
|
+
padding: var(--spacing-small);
|
|
322
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
323
|
+
border-radius: 4px;
|
|
324
|
+
background-color: white;
|
|
325
|
+
cursor: pointer;
|
|
326
|
+
font-family: 'Courier New', monospace;
|
|
327
|
+
font-size: 11px;
|
|
328
|
+
text-align: left;
|
|
329
|
+
transition: all 0.2s ease;
|
|
330
|
+
position: relative;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.function-button:hover {
|
|
334
|
+
background-color: var(--md-sys-color-secondary-container);
|
|
335
|
+
border-color: var(--md-sys-color-secondary);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.preview-container {
|
|
339
|
+
margin-top: var(--spacing-medium);
|
|
340
|
+
padding: var(--spacing-medium);
|
|
341
|
+
background-color: #f8f9fa;
|
|
342
|
+
border-radius: 4px;
|
|
343
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.preview-title {
|
|
347
|
+
font-weight: 500;
|
|
348
|
+
margin-bottom: var(--spacing-small);
|
|
349
|
+
color: var(--md-sys-color-on-surface);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.preview-formula {
|
|
353
|
+
font-family: 'Courier New', monospace;
|
|
354
|
+
background-color: white;
|
|
355
|
+
padding: var(--spacing-small);
|
|
356
|
+
border-radius: 4px;
|
|
357
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
358
|
+
white-space: pre-wrap;
|
|
359
|
+
word-break: break-all;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.error-message {
|
|
363
|
+
color: var(--md-sys-color-error);
|
|
364
|
+
font-size: 12px;
|
|
365
|
+
margin-top: var(--spacing-small);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.info-message {
|
|
369
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
370
|
+
font-size: 12px;
|
|
371
|
+
margin-top: var(--spacing-small);
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/* 도움말 팝업 스타일 */
|
|
375
|
+
.help-popup {
|
|
376
|
+
max-width: 500px;
|
|
377
|
+
max-height: 400px;
|
|
378
|
+
overflow-y: auto;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.help-title {
|
|
382
|
+
font-size: 16px;
|
|
383
|
+
font-weight: 600;
|
|
384
|
+
margin-bottom: var(--spacing-medium);
|
|
385
|
+
color: var(--md-sys-color-primary);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.help-section {
|
|
389
|
+
margin-bottom: var(--spacing-medium);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.help-section-title {
|
|
393
|
+
font-weight: 500;
|
|
394
|
+
margin-bottom: var(--spacing-small);
|
|
395
|
+
color: var(--md-sys-color-on-surface);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.help-content {
|
|
399
|
+
font-size: 14px;
|
|
400
|
+
line-height: 1.5;
|
|
401
|
+
color: var(--md-sys-color-on-surface);
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
.help-syntax {
|
|
405
|
+
background-color: #f8f9fa;
|
|
406
|
+
padding: var(--spacing-small);
|
|
407
|
+
border-radius: 4px;
|
|
408
|
+
font-family: 'Courier New', monospace;
|
|
409
|
+
font-size: 12px;
|
|
410
|
+
margin: var(--spacing-small) 0;
|
|
411
|
+
border-left: 3px solid var(--md-sys-color-primary);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.help-example {
|
|
415
|
+
background-color: #f0f8ff;
|
|
416
|
+
padding: var(--spacing-small);
|
|
417
|
+
border-radius: 4px;
|
|
418
|
+
font-family: 'Courier New', monospace;
|
|
419
|
+
font-size: 12px;
|
|
420
|
+
margin: var(--spacing-small) 0;
|
|
421
|
+
border-left: 3px solid var(--md-sys-color-secondary);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
.help-parameters {
|
|
425
|
+
margin: var(--spacing-small) 0;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.help-parameter {
|
|
429
|
+
display: flex;
|
|
430
|
+
justify-content: space-between;
|
|
431
|
+
padding: 2px 0;
|
|
432
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.help-parameter-name {
|
|
436
|
+
font-weight: 500;
|
|
437
|
+
font-family: 'Courier New', monospace;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
.help-parameter-desc {
|
|
441
|
+
color: var(--md-sys-color-on-surface-variant);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Dialog specific styles */
|
|
445
|
+
.help-dialog {
|
|
446
|
+
border: none;
|
|
447
|
+
border-radius: 8px;
|
|
448
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
449
|
+
padding: 0;
|
|
450
|
+
max-width: 500px;
|
|
451
|
+
max-height: 80vh;
|
|
452
|
+
overflow-y: auto;
|
|
453
|
+
background-color: white;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.help-dialog::backdrop {
|
|
457
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.dialog-actions {
|
|
461
|
+
display: flex;
|
|
462
|
+
justify-content: flex-end;
|
|
463
|
+
gap: var(--spacing-small);
|
|
464
|
+
margin-top: var(--spacing-medium);
|
|
465
|
+
padding: var(--spacing-medium);
|
|
466
|
+
border-top: 1px solid var(--md-sys-color-outline);
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.close-btn {
|
|
470
|
+
padding: var(--spacing-small) var(--spacing-medium);
|
|
471
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
472
|
+
border-radius: 4px;
|
|
473
|
+
background-color: white;
|
|
474
|
+
cursor: pointer;
|
|
475
|
+
font-size: 14px;
|
|
476
|
+
transition: all 0.2s ease;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.close-btn:hover {
|
|
480
|
+
background-color: var(--md-sys-color-secondary-container);
|
|
481
|
+
border-color: var(--md-sys-color-secondary);
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
.middle-align {
|
|
485
|
+
display: flex;
|
|
486
|
+
align-items: center;
|
|
487
|
+
}
|
|
488
|
+
`
|
|
489
|
+
]; }
|
|
490
|
+
getValue() {
|
|
491
|
+
return this.value;
|
|
492
|
+
}
|
|
493
|
+
setValue(value) {
|
|
494
|
+
this.value = value;
|
|
495
|
+
this._validateFormula();
|
|
496
|
+
}
|
|
497
|
+
validate() {
|
|
498
|
+
this._validateFormula();
|
|
499
|
+
return this.isValid;
|
|
500
|
+
}
|
|
501
|
+
getErrorMessage() {
|
|
502
|
+
return this.errorMessage;
|
|
503
|
+
}
|
|
504
|
+
focus() {
|
|
505
|
+
this.editor.focus();
|
|
506
|
+
}
|
|
507
|
+
blur() {
|
|
508
|
+
this.editor.blur();
|
|
509
|
+
}
|
|
510
|
+
reset() {
|
|
511
|
+
this.value = '';
|
|
512
|
+
this.errorMessage = '';
|
|
513
|
+
this.isValid = true;
|
|
514
|
+
this._updateValue();
|
|
515
|
+
}
|
|
516
|
+
// 변수명 정규화 헬퍼 메서드
|
|
517
|
+
_normalizeVariableName(name) {
|
|
518
|
+
// 공백을 언더스코어로 변경
|
|
519
|
+
return name.replace(/\s+/g, '_');
|
|
520
|
+
}
|
|
521
|
+
firstUpdated() {
|
|
522
|
+
this.addEventListener('change', this._onChange.bind(this));
|
|
523
|
+
}
|
|
524
|
+
render() {
|
|
525
|
+
return html `
|
|
526
|
+
<div class="formula-container">
|
|
527
|
+
<div class="formula-input-container">
|
|
528
|
+
<label class="variables-header">
|
|
529
|
+
<ox-i18n msgid="label.formula"></ox-i18n>
|
|
530
|
+
</label>
|
|
531
|
+
|
|
532
|
+
<textarea
|
|
533
|
+
class="formula-textarea"
|
|
534
|
+
.value=${this.value}
|
|
535
|
+
@input=${this._onFormulaInput.bind(this)}
|
|
536
|
+
placeholder="수식을 입력하세요. 예: SUM(metric1) + AVG(metric2) * 0.5"
|
|
537
|
+
></textarea>
|
|
538
|
+
|
|
539
|
+
${this.errorMessage
|
|
540
|
+
? html `
|
|
541
|
+
<div class="error-message middle-align">
|
|
542
|
+
<md-icon>error</md-icon>
|
|
543
|
+
${this.errorMessage}
|
|
544
|
+
</div>
|
|
545
|
+
`
|
|
546
|
+
: ''}
|
|
547
|
+
${!this.errorMessage && this.value
|
|
548
|
+
? html `
|
|
549
|
+
<div class="info-message middle-align">
|
|
550
|
+
<md-icon>info</md-icon>
|
|
551
|
+
수식이 유효합니다.
|
|
552
|
+
</div>
|
|
553
|
+
`
|
|
554
|
+
: ''}
|
|
555
|
+
</div>
|
|
556
|
+
|
|
557
|
+
<div class="variables-container">
|
|
558
|
+
<div class="variables-header middle-align">
|
|
559
|
+
<md-icon>variables</md-icon>
|
|
560
|
+
<ox-i18n msgid="label.available-variables"></ox-i18n>
|
|
561
|
+
</div>
|
|
562
|
+
|
|
563
|
+
<div class="variables-grid">
|
|
564
|
+
${this.availableVariables.map(variable => html `
|
|
565
|
+
<div class="variable-item" @click=${() => this._insertVariable(variable.name)}>
|
|
566
|
+
<div class="variable-name">[${this._normalizeVariableName(variable.name)}]</div>
|
|
567
|
+
${variable.description ? html ` <div class="variable-description">${variable.description}</div> ` : ''}
|
|
568
|
+
${variable.type ? html ` <div class="variable-type">${variable.type}</div> ` : ''}
|
|
569
|
+
${variable.help
|
|
570
|
+
? html `
|
|
571
|
+
<md-icon class="help-icon" @click=${(e) => this._showVariableHelp(e, variable)}>
|
|
572
|
+
help
|
|
573
|
+
</md-icon>
|
|
574
|
+
`
|
|
575
|
+
: ''}
|
|
576
|
+
</div>
|
|
577
|
+
`)}
|
|
578
|
+
</div>
|
|
579
|
+
</div>
|
|
580
|
+
|
|
581
|
+
<div class="operators-container">
|
|
582
|
+
<div class="variables-header middle-align">
|
|
583
|
+
<md-icon>calculate</md-icon>
|
|
584
|
+
<ox-i18n msgid="label.operators"></ox-i18n>
|
|
585
|
+
</div>
|
|
586
|
+
|
|
587
|
+
${this.operators.map(op => html `
|
|
588
|
+
<button class="operator-button" @click=${() => this._insertOperator(op.symbol)} title="${op.description}">
|
|
589
|
+
${op.symbol}
|
|
590
|
+
</button>
|
|
591
|
+
`)}
|
|
592
|
+
</div>
|
|
593
|
+
|
|
594
|
+
<div class="functions-container">
|
|
595
|
+
<div class="functions-header middle-align">
|
|
596
|
+
<md-icon>functions</md-icon>
|
|
597
|
+
<ox-i18n msgid="label.functions"></ox-i18n>
|
|
598
|
+
</div>
|
|
599
|
+
|
|
600
|
+
<div class="functions-grid">
|
|
601
|
+
${this.functions.map(func => html `
|
|
602
|
+
<div class="function-button" @click=${() => this._insertFunction(func.template)}>
|
|
603
|
+
<div style="font-weight: 500;">${func.name}</div>
|
|
604
|
+
<div style="font-size: 10px; color: var(--md-sys-color-on-surface-variant);">${func.description}</div>
|
|
605
|
+
${func.help
|
|
606
|
+
? html `
|
|
607
|
+
<md-icon
|
|
608
|
+
class="help-icon"
|
|
609
|
+
@click=${(e) => this._showFunctionHelp(e, func)}
|
|
610
|
+
style="position: absolute; top: 4px; right: 4px; font-size: 12px;"
|
|
611
|
+
>
|
|
612
|
+
help
|
|
613
|
+
</md-icon>
|
|
614
|
+
`
|
|
615
|
+
: ''}
|
|
616
|
+
</div>
|
|
617
|
+
`)}
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
|
|
621
|
+
${this.value
|
|
622
|
+
? html `
|
|
623
|
+
<div class="preview-container">
|
|
624
|
+
<div class="preview-title middle-align">
|
|
625
|
+
<md-icon>preview</md-icon>
|
|
626
|
+
<ox-i18n msgid="label.formula-preview"></ox-i18n>
|
|
627
|
+
</div>
|
|
628
|
+
<div class="preview-formula">${this.value}</div>
|
|
629
|
+
</div>
|
|
630
|
+
`
|
|
631
|
+
: ''}
|
|
632
|
+
</div>
|
|
633
|
+
`;
|
|
634
|
+
}
|
|
635
|
+
updated(changes) {
|
|
636
|
+
if (changes.has('value')) {
|
|
637
|
+
this._validateFormula();
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
_onChange(e) {
|
|
641
|
+
if (this._changingNow) {
|
|
642
|
+
return;
|
|
643
|
+
}
|
|
644
|
+
this._changingNow = true;
|
|
645
|
+
this._updateValue();
|
|
646
|
+
this._changingNow = false;
|
|
647
|
+
}
|
|
648
|
+
_onFormulaInput(e) {
|
|
649
|
+
const textarea = e.target;
|
|
650
|
+
this.value = textarea.value;
|
|
651
|
+
this._validateFormula();
|
|
652
|
+
this._updateValue();
|
|
653
|
+
}
|
|
654
|
+
_insertVariable(variableName) {
|
|
655
|
+
const start = this.editor.selectionStart;
|
|
656
|
+
const end = this.editor.selectionEnd;
|
|
657
|
+
const currentValue = this.editor.value;
|
|
658
|
+
// 변수명 정규화 (공백을 언더스코어로 변경)
|
|
659
|
+
const normalizedName = this._normalizeVariableName(variableName);
|
|
660
|
+
const insertText = `[${normalizedName}]`;
|
|
661
|
+
const newValue = currentValue.substring(0, start) + insertText + currentValue.substring(end);
|
|
662
|
+
this.editor.value = newValue;
|
|
663
|
+
this.value = newValue;
|
|
664
|
+
// 커서 위치 조정
|
|
665
|
+
const newCursorPos = start + insertText.length;
|
|
666
|
+
this.editor.setSelectionRange(newCursorPos, newCursorPos);
|
|
667
|
+
this.editor.focus();
|
|
668
|
+
this._validateFormula();
|
|
669
|
+
this._updateValue();
|
|
670
|
+
}
|
|
671
|
+
_insertOperator(operator) {
|
|
672
|
+
const start = this.editor.selectionStart;
|
|
673
|
+
const end = this.editor.selectionEnd;
|
|
674
|
+
const currentValue = this.editor.value;
|
|
675
|
+
// 연산자 앞뒤에 공백 추가
|
|
676
|
+
const insertText = ` ${operator} `;
|
|
677
|
+
const newValue = currentValue.substring(0, start) + insertText + currentValue.substring(end);
|
|
678
|
+
this.editor.value = newValue;
|
|
679
|
+
this.value = newValue;
|
|
680
|
+
// 커서 위치 조정
|
|
681
|
+
const newCursorPos = start + insertText.length;
|
|
682
|
+
this.editor.setSelectionRange(newCursorPos, newCursorPos);
|
|
683
|
+
this.editor.focus();
|
|
684
|
+
this._validateFormula();
|
|
685
|
+
this._updateValue();
|
|
686
|
+
}
|
|
687
|
+
_insertFunction(template) {
|
|
688
|
+
const start = this.editor.selectionStart;
|
|
689
|
+
const end = this.editor.selectionEnd;
|
|
690
|
+
const currentValue = this.editor.value;
|
|
691
|
+
// 선택된 텍스트가 있으면 그것을 expression으로 사용
|
|
692
|
+
const selectedText = currentValue.substring(start, end);
|
|
693
|
+
const insertText = template.replace('{expression}', selectedText || 'expression');
|
|
694
|
+
const newValue = currentValue.substring(0, start) + insertText + currentValue.substring(end);
|
|
695
|
+
this.editor.value = newValue;
|
|
696
|
+
this.value = newValue;
|
|
697
|
+
// 커서 위치 조정 (expression 부분에 포커스)
|
|
698
|
+
const expressionStart = start + insertText.indexOf('expression');
|
|
699
|
+
const expressionEnd = expressionStart + 'expression'.length;
|
|
700
|
+
this.editor.setSelectionRange(expressionStart, expressionEnd);
|
|
701
|
+
this.editor.focus();
|
|
702
|
+
this._validateFormula();
|
|
703
|
+
this._updateValue();
|
|
704
|
+
}
|
|
705
|
+
_showVariableHelp(e, variable) {
|
|
706
|
+
e.stopPropagation();
|
|
707
|
+
// 간단한 테스트 버전
|
|
708
|
+
const message = `
|
|
709
|
+
변수: ${variable.name}
|
|
710
|
+
설명: ${variable.description || '없음'}
|
|
711
|
+
타입: ${variable.type || '없음'}
|
|
712
|
+
단위: ${variable.unit || '없음'}
|
|
713
|
+
예시: ${variable.example || '없음'}
|
|
714
|
+
`.trim();
|
|
715
|
+
console.log('Variable help:', message);
|
|
716
|
+
// dialog 지원 여부 확인
|
|
717
|
+
if (typeof HTMLDialogElement !== 'undefined') {
|
|
718
|
+
const dialog = document.createElement('dialog');
|
|
719
|
+
dialog.className = 'help-dialog';
|
|
720
|
+
// HTML 문자열로 직접 작성
|
|
721
|
+
dialog.innerHTML = `
|
|
722
|
+
<div class="help-popup">
|
|
723
|
+
<div class="help-title">${variable.name}</div>
|
|
724
|
+
|
|
725
|
+
${variable.description
|
|
726
|
+
? `
|
|
727
|
+
<div class="help-section">
|
|
728
|
+
<div class="help-section-title">설명</div>
|
|
729
|
+
<div class="help-content">${variable.description}</div>
|
|
730
|
+
</div>
|
|
731
|
+
`
|
|
732
|
+
: ''}
|
|
733
|
+
|
|
734
|
+
${variable.type
|
|
735
|
+
? `
|
|
736
|
+
<div class="help-section">
|
|
737
|
+
<div class="help-section-title">타입</div>
|
|
738
|
+
<div class="help-content">${variable.type}</div>
|
|
739
|
+
</div>
|
|
740
|
+
`
|
|
741
|
+
: ''}
|
|
742
|
+
|
|
743
|
+
${variable.unit
|
|
744
|
+
? `
|
|
745
|
+
<div class="help-section">
|
|
746
|
+
<div class="help-section-title">단위</div>
|
|
747
|
+
<div class="help-content">${variable.unit}</div>
|
|
748
|
+
</div>
|
|
749
|
+
`
|
|
750
|
+
: ''}
|
|
751
|
+
|
|
752
|
+
${variable.help
|
|
753
|
+
? `
|
|
754
|
+
<div class="help-section">
|
|
755
|
+
<div class="help-section-title">상세 설명</div>
|
|
756
|
+
<div class="help-content">${variable.help}</div>
|
|
757
|
+
</div>
|
|
758
|
+
`
|
|
759
|
+
: ''}
|
|
760
|
+
|
|
761
|
+
${variable.example
|
|
762
|
+
? `
|
|
763
|
+
<div class="help-section">
|
|
764
|
+
<div class="help-section-title">사용 예시</div>
|
|
765
|
+
<div class="help-example">${variable.example}</div>
|
|
766
|
+
</div>
|
|
767
|
+
`
|
|
768
|
+
: ''}
|
|
769
|
+
</div>
|
|
770
|
+
|
|
771
|
+
<div class="dialog-actions">
|
|
772
|
+
<button class="close-btn" onclick="this.closest('dialog').close()">닫기</button>
|
|
773
|
+
</div>
|
|
774
|
+
`;
|
|
775
|
+
document.body.appendChild(dialog);
|
|
776
|
+
dialog.showModal();
|
|
777
|
+
// 외부 클릭으로 닫기
|
|
778
|
+
dialog.addEventListener('click', event => {
|
|
779
|
+
const rect = dialog.getBoundingClientRect();
|
|
780
|
+
const isInDialog = event.clientX >= rect.left &&
|
|
781
|
+
event.clientX <= rect.right &&
|
|
782
|
+
event.clientY >= rect.top &&
|
|
783
|
+
event.clientY <= rect.bottom;
|
|
784
|
+
if (!isInDialog) {
|
|
785
|
+
dialog.close();
|
|
786
|
+
}
|
|
787
|
+
});
|
|
788
|
+
dialog.addEventListener('close', () => {
|
|
789
|
+
if (document.body.contains(dialog)) {
|
|
790
|
+
document.body.removeChild(dialog);
|
|
791
|
+
}
|
|
792
|
+
});
|
|
793
|
+
// ESC 키로 닫기
|
|
794
|
+
const handleEsc = (e) => {
|
|
795
|
+
if (e.key === 'Escape') {
|
|
796
|
+
dialog.close();
|
|
797
|
+
document.removeEventListener('keydown', handleEsc);
|
|
798
|
+
}
|
|
799
|
+
};
|
|
800
|
+
document.addEventListener('keydown', handleEsc);
|
|
801
|
+
}
|
|
802
|
+
else {
|
|
803
|
+
// dialog를 지원하지 않는 브라우저에서는 alert 사용
|
|
804
|
+
alert(message);
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
_showFunctionHelp(e, func) {
|
|
808
|
+
e.stopPropagation();
|
|
809
|
+
const dialog = document.createElement('dialog');
|
|
810
|
+
dialog.className = 'help-dialog';
|
|
811
|
+
// HTML 문자열로 직접 작성
|
|
812
|
+
dialog.innerHTML = `
|
|
813
|
+
<div class="help-popup">
|
|
814
|
+
<div class="help-title">${func.name}</div>
|
|
815
|
+
|
|
816
|
+
<div class="help-section">
|
|
817
|
+
<div class="help-section-title">설명</div>
|
|
818
|
+
<div class="help-content">${func.description}</div>
|
|
819
|
+
</div>
|
|
820
|
+
|
|
821
|
+
<div class="help-section">
|
|
822
|
+
<div class="help-section-title">구문</div>
|
|
823
|
+
<div class="help-syntax">${func.syntax}</div>
|
|
824
|
+
</div>
|
|
825
|
+
|
|
826
|
+
<div class="help-section">
|
|
827
|
+
<div class="help-section-title">매개변수</div>
|
|
828
|
+
<div class="help-parameters">
|
|
829
|
+
${func.parameters
|
|
830
|
+
.map(param => `
|
|
831
|
+
<div class="help-parameter">
|
|
832
|
+
<span class="help-parameter-desc">${param}</span>
|
|
833
|
+
</div>
|
|
834
|
+
`)
|
|
835
|
+
.join('')}
|
|
836
|
+
</div>
|
|
837
|
+
</div>
|
|
838
|
+
|
|
839
|
+
<div class="help-section">
|
|
840
|
+
<div class="help-section-title">반환 타입</div>
|
|
841
|
+
<div class="help-content">${func.returnType}</div>
|
|
842
|
+
</div>
|
|
843
|
+
|
|
844
|
+
${func.help
|
|
845
|
+
? `
|
|
846
|
+
<div class="help-section">
|
|
847
|
+
<div class="help-section-title">상세 설명</div>
|
|
848
|
+
<div class="help-content">${func.help}</div>
|
|
849
|
+
</div>
|
|
850
|
+
`
|
|
851
|
+
: ''}
|
|
852
|
+
|
|
853
|
+
${func.examples && func.examples.length > 0
|
|
854
|
+
? `
|
|
855
|
+
<div class="help-section">
|
|
856
|
+
<div class="help-section-title">사용 예시</div>
|
|
857
|
+
${func.examples
|
|
858
|
+
.map(example => `
|
|
859
|
+
<div class="help-example">${example}</div>
|
|
860
|
+
`)
|
|
861
|
+
.join('')}
|
|
862
|
+
</div>
|
|
863
|
+
`
|
|
864
|
+
: ''}
|
|
865
|
+
</div>
|
|
866
|
+
|
|
867
|
+
<div class="dialog-actions">
|
|
868
|
+
<button class="close-btn" onclick="this.closest('dialog').close()">닫기</button>
|
|
869
|
+
</div>
|
|
870
|
+
`;
|
|
871
|
+
document.body.appendChild(dialog);
|
|
872
|
+
dialog.showModal();
|
|
873
|
+
// 외부 클릭으로 닫기
|
|
874
|
+
dialog.addEventListener('click', event => {
|
|
875
|
+
const rect = dialog.getBoundingClientRect();
|
|
876
|
+
const isInDialog = event.clientX >= rect.left &&
|
|
877
|
+
event.clientX <= rect.right &&
|
|
878
|
+
event.clientY >= rect.top &&
|
|
879
|
+
event.clientY <= rect.bottom;
|
|
880
|
+
if (!isInDialog) {
|
|
881
|
+
dialog.close();
|
|
882
|
+
}
|
|
883
|
+
});
|
|
884
|
+
dialog.addEventListener('close', () => {
|
|
885
|
+
if (document.body.contains(dialog)) {
|
|
886
|
+
document.body.removeChild(dialog);
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
// ESC 키로 닫기
|
|
890
|
+
const handleEsc = (e) => {
|
|
891
|
+
if (e.key === 'Escape') {
|
|
892
|
+
dialog.close();
|
|
893
|
+
document.removeEventListener('keydown', handleEsc);
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
document.addEventListener('keydown', handleEsc);
|
|
897
|
+
}
|
|
898
|
+
_validateFormula() {
|
|
899
|
+
// 기본적인 수식 유효성 검사
|
|
900
|
+
const formula = this.value.trim();
|
|
901
|
+
if (!formula) {
|
|
902
|
+
this.errorMessage = '';
|
|
903
|
+
this.isValid = true;
|
|
904
|
+
return;
|
|
905
|
+
}
|
|
906
|
+
// 괄호 균형 검사
|
|
907
|
+
const openBrackets = (formula.match(/\(/g) || []).length;
|
|
908
|
+
const closeBrackets = (formula.match(/\)/g) || []).length;
|
|
909
|
+
if (openBrackets !== closeBrackets) {
|
|
910
|
+
this.errorMessage = '괄호가 균형을 이루지 않습니다.';
|
|
911
|
+
this.isValid = false;
|
|
912
|
+
return;
|
|
913
|
+
}
|
|
914
|
+
// 변수 참조 검증 ([변수명] 형태)
|
|
915
|
+
const variableRefs = formula.match(/\[([^\]]+)\]/g) || [];
|
|
916
|
+
for (const ref of variableRefs) {
|
|
917
|
+
const varName = ref.slice(1, -1); // [변수명]에서 변수명 추출
|
|
918
|
+
const normalizedVarName = this._normalizeVariableName(varName);
|
|
919
|
+
const availableVarNames = this.availableVariables.map(v => this._normalizeVariableName(v.name));
|
|
920
|
+
if (!availableVarNames.includes(normalizedVarName)) {
|
|
921
|
+
this.errorMessage = `알 수 없는 변수: ${varName}`;
|
|
922
|
+
this.isValid = false;
|
|
923
|
+
return;
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
// 기본 문법 검사
|
|
927
|
+
const invalidPatterns = [
|
|
928
|
+
/[+\-*/]{2,}/, // 연속된 연산자
|
|
929
|
+
/[+\-*/]\s*$/, // 끝에 연산자
|
|
930
|
+
/^\s*[+\-*/]/, // 시작에 연산자
|
|
931
|
+
/\(\s*\)/ // 빈 괄호
|
|
932
|
+
];
|
|
933
|
+
for (const pattern of invalidPatterns) {
|
|
934
|
+
if (pattern.test(formula)) {
|
|
935
|
+
this.errorMessage = '수식 문법이 올바르지 않습니다.';
|
|
936
|
+
this.isValid = false;
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
this.errorMessage = '';
|
|
941
|
+
this.isValid = true;
|
|
942
|
+
}
|
|
943
|
+
_updateValue() {
|
|
944
|
+
this.dispatchEvent(new CustomEvent('change', {
|
|
945
|
+
bubbles: true,
|
|
946
|
+
composed: true,
|
|
947
|
+
detail: this.value
|
|
948
|
+
}));
|
|
949
|
+
}
|
|
950
|
+
};
|
|
951
|
+
__decorate([
|
|
952
|
+
property({ type: String })
|
|
953
|
+
], KpiFormulaEditor.prototype, "value", void 0);
|
|
954
|
+
__decorate([
|
|
955
|
+
property({ type: Array })
|
|
956
|
+
], KpiFormulaEditor.prototype, "availableVariables", void 0);
|
|
957
|
+
__decorate([
|
|
958
|
+
state()
|
|
959
|
+
], KpiFormulaEditor.prototype, "errorMessage", void 0);
|
|
960
|
+
__decorate([
|
|
961
|
+
state()
|
|
962
|
+
], KpiFormulaEditor.prototype, "isValid", void 0);
|
|
963
|
+
__decorate([
|
|
964
|
+
query('.formula-textarea')
|
|
965
|
+
], KpiFormulaEditor.prototype, "editor", void 0);
|
|
966
|
+
KpiFormulaEditor = __decorate([
|
|
967
|
+
customElement('ox-input-formula')
|
|
968
|
+
], KpiFormulaEditor);
|
|
969
|
+
export { KpiFormulaEditor };
|
|
970
|
+
//# sourceMappingURL=ox-input-formula.js.map
|