@opsnow-mcp/opsnow-mcp-common-ui-server 1.0.40 → 1.0.42
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/build/components/all-component-tools.js +2 -0
- package/build/components/data/icon-names.generated.js +341 -0
- package/build/components/data/icon-names.js +32 -16
- package/build/components/examples/opsnow-common-chart-examples-data.js +73 -471
- package/build/components/examples/opsnow-common-forms-examples-data.js +1 -11
- package/build/components/examples/opsnow-common-grid-examples-data.js +93 -129
- package/build/components/examples/opsnow-common-layout-examples-data.js +12 -13
- package/build/components/examples/opsnow-common-popup-examples-data.js +14 -28
- package/build/components/examples/opsnow-common-progress-examples-data.js +0 -5
- package/build/components/examples/opsnow-common-select-examples-data.js +16 -0
- package/build/components/examples/opsnow-common-stepper-examples-data.js +2 -3
- package/build/components/examples/opsnow-common-storage-examples-data.js +23 -4
- package/build/components/examples/opsnow-common-tab-examples-data.js +37 -0
- package/build/components/examples/opsnow-common-tooltip-examples-data.js +1 -21
- package/build/components/opsnow-common-calendar.js +36 -15
- package/build/components/opsnow-common-chart.js +245 -156
- package/build/components/opsnow-common-coach-mark.js +3 -2
- package/build/components/opsnow-common-data-status.js +17 -11
- package/build/components/opsnow-common-dropdown.js +80 -0
- package/build/components/opsnow-common-examples.js +4 -2
- package/build/components/opsnow-common-file-upload.js +4 -1
- package/build/components/opsnow-common-forms.js +73 -36
- package/build/components/opsnow-common-grid.js +110 -79
- package/build/components/opsnow-common-icons.js +23 -39
- package/build/components/opsnow-common-jsx-helper.js +36 -0
- package/build/components/opsnow-common-layout.js +66 -25
- package/build/components/opsnow-common-notification.js +3 -2
- package/build/components/opsnow-common-pagination.js +4 -4
- package/build/components/opsnow-common-popup.js +12 -11
- package/build/components/opsnow-common-progress.js +10 -16
- package/build/components/opsnow-common-select.js +30 -15
- package/build/components/opsnow-common-stepper.js +30 -7
- package/build/components/opsnow-common-tab.js +26 -3
- package/build/components/opsnow-common-toast-popup.js +1 -0
- package/build/components/opsnow-common-tooltip.js +44 -46
- package/build/components/opsnow-common-typography.js +11 -5
- package/build/components/opsnow-common-validate-props.js +0 -0
- package/build/index.js +43 -0
- package/package.json +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import { jsxExpr } from "./opsnow-common-jsx-helper.js";
|
|
3
|
+
export const XyMultiChartSchema = z.object({
|
|
3
4
|
chartId: z.string().describe("차트의 고유 식별자"),
|
|
4
5
|
chartProps: z.object({}).describe(`
|
|
5
6
|
다음 정의된 형식 예를 보고 차트 속성을 설정하세요.
|
|
@@ -17,12 +18,8 @@ const XyMultiChartSchema = z.object({
|
|
|
17
18
|
"xAxis": {
|
|
18
19
|
"type": "date", // 축 타입: 'date' | 'category'
|
|
19
20
|
"valueField": "date", // X축 값 필드
|
|
20
|
-
"dateFormats"
|
|
21
|
-
|
|
22
|
-
"type": "day", // 날짜 단위: 'day' | 'week' | 'month' | 'year'
|
|
23
|
-
"dateFormat": "MM/dd" // amCharts5에서 지원하는 날짜 형식
|
|
24
|
-
}
|
|
25
|
-
],
|
|
21
|
+
// ⚠️ "dateFormats"는 넣지 말 것 — X축 날짜는 표기 표준이 기본 적용됨 (축: 분·시 HH:mm / 일 MM-dd / 월 yyyy-MM / 년 yyyy, 툴팁: yyyy-MM-dd(HH:mm) / yyyy-MM).
|
|
22
|
+
// dateFormats를 지정하면 축·기간변경·툴팁 포맷이 모두 그 값으로 덮어써져 표준이 깨짐 ('MM/dd' 같은 값 금지)
|
|
26
23
|
"baseInterval": { // xAxis type이 'date'일 때 사용
|
|
27
24
|
"timeUnit": "day", // 시간 단위: 'day' | 'week' | 'month' | 'year'
|
|
28
25
|
"count": 1 // 간격 수(1로 고정이며 변경 불가)
|
|
@@ -235,7 +232,7 @@ const XyMultiChartSchema = z.object({
|
|
|
235
232
|
// 범례 설정
|
|
236
233
|
"legend": {
|
|
237
234
|
"clickTarget": "none", // 범례 클릭 대상: "none" | "" (기본값: "none")
|
|
238
|
-
"useExtension": false // 범례 확장 사용 여부 (기본값: false)
|
|
235
|
+
"useExtension": false // 범례 확장 사용 여부 (기본값: false — true를 명시해야 켜짐). 켜면 범례 펼치기/접기 + 전체 선택 체크박스 사용 가능. 범례가 많아 접어야 할 때만 true
|
|
239
236
|
}
|
|
240
237
|
}
|
|
241
238
|
`),
|
|
@@ -356,6 +353,13 @@ const XyMultiChartSchema = z.object({
|
|
|
356
353
|
onSeriesPointerOver: z.string().optional().describe("시리즈 포인터 오버 이벤트"),
|
|
357
354
|
onSeriesPointerOut: z.string().optional().describe("시리즈에서 포인터가 벗어날 때 호출되는 콜백 함수(stringified). onSeriesPointerOver와 짝으로 사용합니다."),
|
|
358
355
|
chartTooltipDetailText: z.string().optional().describe("툴팁에서 보여주는 상세 텍스트"),
|
|
356
|
+
chartCustomCategoryGroup: z.array(z.object({
|
|
357
|
+
name: z.string().describe("그룹 이름"),
|
|
358
|
+
pattern: z.string().describe("이 그룹에 묶을 카테고리 이름 패턴"),
|
|
359
|
+
})).optional().describe("범례 카테고리 그룹 정의 [{ name, pattern }]"),
|
|
360
|
+
chartSelectAllLegends: z.string().optional().describe("확장 범례의 '전체 선택' 라벨 텍스트"),
|
|
361
|
+
chartUnfoldLegend: z.string().optional().describe("확장 범례 '펼치기' 버튼 텍스트"),
|
|
362
|
+
chartFoldLegend: z.string().optional().describe("확장 범례 '접기' 버튼 텍스트"),
|
|
359
363
|
// 샘플(스켈레톤) 차트 설정 — chartProps 없이 chartSample* 계열만 전달하면 실데이터 로딩 전 미리보기(스켈레톤) 차트가 렌더링됩니다.
|
|
360
364
|
chartSampleProps: z.object({}).optional().describe("샘플(스켈레톤) 차트 속성 (object, 기본값 없음). chartProps와 동일한 구조의 JSON입니다. chartProps 없이 chartSampleProps만 전달하면 차트가 샘플(미리보기/스켈레톤) 모드로 렌더링됩니다."),
|
|
361
365
|
chartSampleCategory: z.array(z.object({
|
|
@@ -392,7 +396,9 @@ const XyMultiChartSchema = z.object({
|
|
|
392
396
|
{ "vendor": "azure", "categories": ["vm_cost"] }
|
|
393
397
|
]`),
|
|
394
398
|
useOpsnowUs: z.boolean().optional().describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다."),
|
|
395
|
-
chartNoRowsText: z.string().optional().describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)")
|
|
399
|
+
chartNoRowsText: z.string().optional().describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
400
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
401
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
396
402
|
});
|
|
397
403
|
// opsnow-common-stack-chart
|
|
398
404
|
export const StackChartSchema = z.object({
|
|
@@ -414,12 +420,8 @@ export const StackChartSchema = z.object({
|
|
|
414
420
|
"xAxis": {
|
|
415
421
|
"type": "date", // 축 타입: 'date' | 'value' | 'category' (바형 차트일 경우는 value 사용)
|
|
416
422
|
"valueField": "date", // X축 값 필드 (컬럼형 차트일 경우 필수, 바형 차트일 경우 절대 생성하면 안됨)
|
|
417
|
-
"dateFormats"
|
|
418
|
-
|
|
419
|
-
"type": "day", // 날짜 단위: 'day' | 'week' | 'month' | 'year'
|
|
420
|
-
"dateFormat": "MM/dd" // amCharts5에서 지원하는 날짜 형식
|
|
421
|
-
}
|
|
422
|
-
],
|
|
423
|
+
// ⚠️ "dateFormats"는 넣지 말 것 — X축 날짜는 표기 표준이 기본 적용됨 (축: 분·시 HH:mm / 일 MM-dd / 월 yyyy-MM / 년 yyyy, 툴팁: yyyy-MM-dd(HH:mm) / yyyy-MM).
|
|
424
|
+
// dateFormats를 지정하면 축·기간변경·툴팁 포맷이 모두 그 값으로 덮어써져 표준이 깨짐 ('MM/dd' 같은 값 금지)
|
|
423
425
|
"baseInterval": { // xAxis type이 'date'일 때 사용
|
|
424
426
|
"timeUnit": "day", // 시간 단위: 'day' | 'week' | 'month' | 'year'
|
|
425
427
|
"count": 1 // 간격 수(1로 고정이며 변경 불가)
|
|
@@ -528,7 +530,7 @@ export const StackChartSchema = z.object({
|
|
|
528
530
|
// 범례 설정
|
|
529
531
|
"legend": {
|
|
530
532
|
"clickTarget": "none", // 범례 클릭 대상: "none" | "" (기본값: "none")
|
|
531
|
-
"useExtension": false // 범례 확장 사용 여부 (기본값: false)
|
|
533
|
+
"useExtension": false // 범례 확장 사용 여부 (기본값: false — true를 명시해야 켜짐). 켜면 범례 펼치기/접기 + 전체 선택 체크박스 사용 가능. 범례가 많아 접어야 할 때만 true
|
|
532
534
|
}
|
|
533
535
|
}
|
|
534
536
|
`),
|
|
@@ -728,7 +730,9 @@ export const StackChartSchema = z.object({
|
|
|
728
730
|
.describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다."),
|
|
729
731
|
chartNoRowsText: z.string()
|
|
730
732
|
.optional()
|
|
731
|
-
.describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)")
|
|
733
|
+
.describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
734
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
735
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
732
736
|
});
|
|
733
737
|
// opsnow-common-bar-chart
|
|
734
738
|
export const BarChartSchema = z.object({
|
|
@@ -750,12 +754,8 @@ export const BarChartSchema = z.object({
|
|
|
750
754
|
"xAxis": {
|
|
751
755
|
"type": "date", // 축 타입: 'date' | 'value' | 'category' (바형 차트일 경우는 value 사용)
|
|
752
756
|
"valueField": "date", // X축 값 필드 (컬럼형 차트일 경우 필수, 바형 차트일 경우 절대 생성하면 안됨)
|
|
753
|
-
"dateFormats"
|
|
754
|
-
|
|
755
|
-
"type": "day", // 날짜 단위: 'day' | 'week' | 'month' | 'year'
|
|
756
|
-
"dateFormat": "MM/dd" // amCharts5에서 지원하는 날짜 형식
|
|
757
|
-
}
|
|
758
|
-
],
|
|
757
|
+
// ⚠️ "dateFormats"는 넣지 말 것 — X축 날짜는 표기 표준이 기본 적용됨 (축: 분·시 HH:mm / 일 MM-dd / 월 yyyy-MM / 년 yyyy, 툴팁: yyyy-MM-dd(HH:mm) / yyyy-MM).
|
|
758
|
+
// dateFormats를 지정하면 축·기간변경·툴팁 포맷이 모두 그 값으로 덮어써져 표준이 깨짐 ('MM/dd' 같은 값 금지)
|
|
759
759
|
"baseInterval": { // xAxis type이 'date'일 때 사용
|
|
760
760
|
"timeUnit": "day", // 시간 단위: 'day' | 'week' | 'month' | 'year'
|
|
761
761
|
"count": 1 // 간격 수(1로 고정이며 변경 불가)
|
|
@@ -864,7 +864,7 @@ export const BarChartSchema = z.object({
|
|
|
864
864
|
// 범례 설정
|
|
865
865
|
"legend": {
|
|
866
866
|
"clickTarget": "none", // 범례 클릭 대상: "none" | "" (기본값: "none")
|
|
867
|
-
"useExtension": false // 범례 확장 사용 여부 (기본값: false)
|
|
867
|
+
"useExtension": false // 범례 확장 사용 여부 (기본값: false — true를 명시해야 켜짐). 켜면 범례 펼치기/접기 + 전체 선택 체크박스 사용 가능. 범례가 많아 접어야 할 때만 true
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
`),
|
|
@@ -1056,7 +1056,9 @@ export const BarChartSchema = z.object({
|
|
|
1056
1056
|
.describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다."),
|
|
1057
1057
|
chartNoRowsText: z.string()
|
|
1058
1058
|
.optional()
|
|
1059
|
-
.describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)")
|
|
1059
|
+
.describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
1060
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
1061
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
1060
1062
|
});
|
|
1061
1063
|
// opsnow-common-line-chart
|
|
1062
1064
|
export const LineChartSchema = z.object({
|
|
@@ -1078,12 +1080,8 @@ export const LineChartSchema = z.object({
|
|
|
1078
1080
|
"xAxis": {
|
|
1079
1081
|
"type": "category", // 축 타입: 'date' | 'value' | 'category'
|
|
1080
1082
|
"valueField": "date", // X축 값 필드
|
|
1081
|
-
"dateFormats"
|
|
1082
|
-
|
|
1083
|
-
"type": "day", // 날짜 단위: 'day' | 'week' | 'month' | 'year'
|
|
1084
|
-
"dateFormat": "MM/dd" // amCharts5에서 지원하는 날짜 형식
|
|
1085
|
-
}
|
|
1086
|
-
],
|
|
1083
|
+
// ⚠️ "dateFormats"는 넣지 말 것 — X축 날짜는 표기 표준이 기본 적용됨 (축: 분·시 HH:mm / 일 MM-dd / 월 yyyy-MM / 년 yyyy, 툴팁: yyyy-MM-dd(HH:mm) / yyyy-MM).
|
|
1084
|
+
// dateFormats를 지정하면 축·기간변경·툴팁 포맷이 모두 그 값으로 덮어써져 표준이 깨짐 ('MM/dd' 같은 값 금지)
|
|
1087
1085
|
"baseInterval": { // xAxis type이 'date'일 때 사용
|
|
1088
1086
|
"timeUnit": "day", // 시간 단위: 'day' | 'week' | 'month' | 'year'
|
|
1089
1087
|
"count": 1 // 간격 수(1로 고정이며 변경 불가)
|
|
@@ -1194,7 +1192,7 @@ export const LineChartSchema = z.object({
|
|
|
1194
1192
|
// 범례 설정
|
|
1195
1193
|
"legend": {
|
|
1196
1194
|
"clickTarget": "none", // 범례 클릭 대상: "none" | "" (기본값: "none")
|
|
1197
|
-
"useExtension": false // 범례 확장 사용 여부 (기본값: false)
|
|
1195
|
+
"useExtension": false // 범례 확장 사용 여부 (기본값: false — true를 명시해야 켜짐). 켜면 범례 펼치기/접기 + 전체 선택 체크박스 사용 가능. 범례가 많아 접어야 할 때만 true
|
|
1198
1196
|
}
|
|
1199
1197
|
}
|
|
1200
1198
|
`),
|
|
@@ -1371,7 +1369,10 @@ export const LineChartSchema = z.object({
|
|
|
1371
1369
|
]`),
|
|
1372
1370
|
useOpsnowUs: z.boolean()
|
|
1373
1371
|
.optional()
|
|
1374
|
-
.describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다.")
|
|
1372
|
+
.describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다."),
|
|
1373
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
1374
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
1375
|
+
chartNoRowsText: z.string().optional().describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
1375
1376
|
});
|
|
1376
1377
|
// opsnow-common-pie-chart
|
|
1377
1378
|
export const PieChartSchema = z.object({
|
|
@@ -1506,7 +1507,15 @@ export const PieChartSchema = z.object({
|
|
|
1506
1507
|
{ "vendor": "aws", "categories": ["ec2_cost", "s3_cost"] },
|
|
1507
1508
|
{ "vendor": "azure", "categories": ["vm_cost"] }
|
|
1508
1509
|
]`),
|
|
1509
|
-
useOpsnowUs: z.boolean().optional().describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다.")
|
|
1510
|
+
useOpsnowUs: z.boolean().optional().describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true). false면 mix 팔레트를 사용합니다. chartCategoryColorByVendor가 지정되면 그 설정이 우선합니다."),
|
|
1511
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
1512
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
1513
|
+
chartNoRowsText: z.string().optional().describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
1514
|
+
chartLocaleMessage: z.array(z.object({
|
|
1515
|
+
name: z.string().describe("차트에서 사용하는 필드의 값 전체 또는 일부"),
|
|
1516
|
+
locale: z.string().describe("치환할 다국어 텍스트")
|
|
1517
|
+
})).optional().describe("차트 특정 메시지(라벨 등)에 다국어를 적용합니다 (object[], 기본값 없음). 예: [{ name: '사용량', locale: $t('usage') }]"),
|
|
1518
|
+
langCd: z.enum(['ko', 'en', 'ja', 'zh', 'ar']).optional().describe("언어 코드"),
|
|
1510
1519
|
});
|
|
1511
1520
|
// opsnow-common-gauge-chart
|
|
1512
1521
|
export const GaugeChartSchema = z.object({
|
|
@@ -1598,6 +1607,8 @@ export const GaugeChartSchema = z.object({
|
|
|
1598
1607
|
[
|
|
1599
1608
|
{ name: '사용량', locale: $t('usage') }
|
|
1600
1609
|
]`),
|
|
1610
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
1611
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
1601
1612
|
});
|
|
1602
1613
|
// opsnow-common-heatmap-chart
|
|
1603
1614
|
export const HeatmapChartSchema = z.object({
|
|
@@ -1761,6 +1772,7 @@ export const HeatmapChartSchema = z.object({
|
|
|
1761
1772
|
]`),
|
|
1762
1773
|
langCd: z.enum(['ko', 'en', 'ja', 'zh', 'ar']).optional().describe("언어 코드"),
|
|
1763
1774
|
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부"),
|
|
1775
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
1764
1776
|
onChartClick: z.string().optional().describe('셀 클릭 시 호출되는 콜백 함수(stringified). 클릭 시 { xField, yField, valueField, from: "heatmap" } 객체를 전달합니다.'),
|
|
1765
1777
|
// 샘플(스켈레톤) 차트 설정 — chartProps 없이 chartSample* 계열만 전달하면 실데이터 로딩 전 미리보기(스켈레톤) 차트가 렌더링됩니다.
|
|
1766
1778
|
chartSampleProps: z.object({}).optional().describe("샘플(스켈레톤) 차트 속성 (object, 기본값 없음). chartProps와 동일한 구조의 JSON입니다. chartProps 없이 chartSampleProps만 전달하면 차트가 샘플(미리보기/스켈레톤) 모드로 렌더링됩니다."),
|
|
@@ -1773,7 +1785,9 @@ export const HeatmapChartSchema = z.object({
|
|
|
1773
1785
|
name: z.string(),
|
|
1774
1786
|
value: z.string(),
|
|
1775
1787
|
locale: z.string()
|
|
1776
|
-
})).optional().describe("샘플 차트 데이터 다국어 적용 목록 (object[], 기본값 없음). chartLocaleData와 동일한 구조이며 샘플(스켈레톤) 모드에서 사용됩니다.")
|
|
1788
|
+
})).optional().describe("샘플 차트 데이터 다국어 적용 목록 (object[], 기본값 없음). chartLocaleData와 동일한 구조이며 샘플(스켈레톤) 모드에서 사용됩니다."),
|
|
1789
|
+
chartNoRowsText: z.string().optional().describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
1790
|
+
chartTooltipDetailText: z.string().optional().describe("툴팁에서 보여주는 상세 텍스트"),
|
|
1777
1791
|
});
|
|
1778
1792
|
// opsnow-common-bubble-chart
|
|
1779
1793
|
export const BubbleChartSchema = z.object({
|
|
@@ -1874,7 +1888,16 @@ export const BubbleChartSchema = z.object({
|
|
|
1874
1888
|
value: z.string(),
|
|
1875
1889
|
locale: z.string()
|
|
1876
1890
|
})).optional().describe("샘플 차트 데이터 다국어 적용 목록 (object[], 기본값 없음). chartLocaleData와 동일한 구조이며 샘플(스켈레톤) 모드에서 사용됩니다."),
|
|
1877
|
-
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)")
|
|
1891
|
+
isDarkMode: z.boolean().optional().describe("다크 모드 활성화 여부 (boolean, 기본값 없음 — 미지정 시 MUI 테마의 palette.mode를 따릅니다)"),
|
|
1892
|
+
useSafeResolution: z.boolean().optional().describe("iOS 캔버스 메모리 제한 회피용 — true면 해상도 1(devicePixelRatio 무시)로 렌더링 (boolean, 기본값 false). iPhone/iPad 사파리에서 차트가 하얗게 비거나 깨질 때, 또는 한 화면에 차트가 많을 때 사용. 화질이 약간 흐려지므로 필요한 화면에만"),
|
|
1893
|
+
chartNoRowsText: z.string().optional().describe("차트 데이터가 없을 때 표시할 텍스트 (string, 기본값 없음)"),
|
|
1894
|
+
chartTooltipDetailText: z.string().optional().describe("툴팁에서 보여주는 상세 텍스트"),
|
|
1895
|
+
chartLocaleData: z.array(z.object({
|
|
1896
|
+
name: z.string().describe("chartData에 정의된 필드 이름"),
|
|
1897
|
+
value: z.string().describe("chartData에 정의된 필드 값 전체 또는 일부"),
|
|
1898
|
+
locale: z.string().describe("다국어 값")
|
|
1899
|
+
})).optional().describe("차트 데이터에 다국어를 적용합니다. 예: [{ name: 'category', value: 'ec2', locale: 'EC2' }]"),
|
|
1900
|
+
useOpsnowUs: z.boolean().optional().describe("OpsNow US 기본(basic) 색상 팔레트 사용 여부 (boolean, 기본값 true)"),
|
|
1878
1901
|
});
|
|
1879
1902
|
// Chart 컴포넌트 함수 - 배열 반환
|
|
1880
1903
|
export function createChartComponent() {
|
|
@@ -1896,17 +1919,21 @@ export function createChartComponent() {
|
|
|
1896
1919
|
if (args.chartId)
|
|
1897
1920
|
props.push(`chartId="${args.chartId}"`);
|
|
1898
1921
|
if (args.chartProps)
|
|
1899
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
1900
|
-
if (args.chartValue)
|
|
1901
|
-
props.push(`chartValue={${args.chartValue}}`);
|
|
1922
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
1923
|
+
if (args.chartValue !== undefined)
|
|
1924
|
+
props.push(`chartValue={${jsxExpr(args.chartValue)}}`);
|
|
1902
1925
|
if (args.chartSampleProps)
|
|
1903
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
1926
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
1904
1927
|
if (args.chartSampleValue !== undefined)
|
|
1905
|
-
props.push(`chartSampleValue={${args.chartSampleValue}}`);
|
|
1928
|
+
props.push(`chartSampleValue={${jsxExpr(args.chartSampleValue)}}`);
|
|
1906
1929
|
if (args.chartLocaleProps)
|
|
1907
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
1930
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
1908
1931
|
if (args.chartLocaleMessage)
|
|
1909
|
-
props.push(`chartLocaleMessage={${args.chartLocaleMessage}}`);
|
|
1932
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
1933
|
+
if (args.isDarkMode !== undefined)
|
|
1934
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
1935
|
+
if (args.useSafeResolution !== undefined)
|
|
1936
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
1910
1937
|
const code = `<OpsnowCommonGaugeChart ${props.join(' ')} />`;
|
|
1911
1938
|
return {
|
|
1912
1939
|
content: [
|
|
@@ -1936,33 +1963,47 @@ export function createChartComponent() {
|
|
|
1936
1963
|
if (args.chartId)
|
|
1937
1964
|
props.push(`chartId="${args.chartId}"`);
|
|
1938
1965
|
if (args.chartProps)
|
|
1939
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
1966
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
1940
1967
|
if (args.chartData)
|
|
1941
|
-
props.push(`chartData={${args.chartData}}`);
|
|
1968
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
1942
1969
|
else
|
|
1943
1970
|
props.push(`chartData={[]}`);
|
|
1944
1971
|
if (args.chartLocaleProps)
|
|
1945
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
1972
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
1946
1973
|
if (args.chartLocaleData)
|
|
1947
|
-
props.push(`chartLocaleData={${args.chartLocaleData}}`);
|
|
1974
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
1948
1975
|
if (args.chartCustomCategory)
|
|
1949
|
-
props.push(`chartCustomCategory={${args.chartCustomCategory}}`);
|
|
1976
|
+
props.push(`chartCustomCategory={${jsxExpr(args.chartCustomCategory)}}`);
|
|
1950
1977
|
if (args.chartSampleProps)
|
|
1951
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
1978
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
1952
1979
|
if (args.chartSampleData)
|
|
1953
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
1980
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
1954
1981
|
if (args.chartSampleCustomCategory)
|
|
1955
|
-
props.push(`chartSampleCustomCategory={${args.chartSampleCustomCategory}}`);
|
|
1982
|
+
props.push(`chartSampleCustomCategory={${jsxExpr(args.chartSampleCustomCategory)}}`);
|
|
1956
1983
|
if (args.chartSampleLocaleProps)
|
|
1957
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
1984
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
1958
1985
|
if (args.chartSampleLocaleData)
|
|
1959
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
1986
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
1960
1987
|
if (args.chartCategoryColorByVendor)
|
|
1961
|
-
props.push(`chartCategoryColorByVendor={${args.chartCategoryColorByVendor}}`);
|
|
1988
|
+
props.push(`chartCategoryColorByVendor={${jsxExpr(args.chartCategoryColorByVendor)}}`);
|
|
1962
1989
|
if (args.useOpsnowUs !== undefined)
|
|
1963
|
-
props.push(`useOpsnowUs={${args.useOpsnowUs}}`);
|
|
1990
|
+
props.push(`useOpsnowUs={${jsxExpr(args.useOpsnowUs)}}`);
|
|
1991
|
+
if (args.onChartClick)
|
|
1992
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
1993
|
+
if (args.onLegendClick)
|
|
1994
|
+
props.push(`onLegendClick={${jsxExpr(args.onLegendClick)}}`);
|
|
1964
1995
|
if (args.chartUserDefinedFunc)
|
|
1965
|
-
props.push(`chartUserDefinedFunc={${args.chartUserDefinedFunc}}`);
|
|
1996
|
+
props.push(`chartUserDefinedFunc={${jsxExpr(args.chartUserDefinedFunc)}}`);
|
|
1997
|
+
if (args.isDarkMode !== undefined)
|
|
1998
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
1999
|
+
if (args.useSafeResolution !== undefined)
|
|
2000
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2001
|
+
if (args.chartNoRowsText)
|
|
2002
|
+
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2003
|
+
if (args.chartLocaleMessage)
|
|
2004
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2005
|
+
if (args.langCd)
|
|
2006
|
+
props.push(`langCd="${args.langCd}"`);
|
|
1966
2007
|
const code = `<OpsnowCommonPieChart ${props.join(' ')} />`;
|
|
1967
2008
|
return {
|
|
1968
2009
|
content: [
|
|
@@ -1991,23 +2032,25 @@ export function createChartComponent() {
|
|
|
1991
2032
|
if (args.chartId)
|
|
1992
2033
|
props.push(`chartId="${args.chartId}"`);
|
|
1993
2034
|
if (args.chartProps)
|
|
1994
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
2035
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
1995
2036
|
if (args.chartData)
|
|
1996
|
-
props.push(`chartData={${args.chartData}}`);
|
|
2037
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
1997
2038
|
else
|
|
1998
2039
|
props.push(`chartData={[]}`);
|
|
1999
2040
|
if (args.chartCategory)
|
|
2000
|
-
props.push(`chartCategory={${args.chartCategory}}`);
|
|
2041
|
+
props.push(`chartCategory={${jsxExpr(args.chartCategory)}}`);
|
|
2001
2042
|
if (args.chartLocaleProps)
|
|
2002
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
2043
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
2003
2044
|
if (args.chartCategoryLocaleMapping)
|
|
2004
|
-
props.push(`chartCategoryLocaleMapping={${args.chartCategoryLocaleMapping}}`);
|
|
2045
|
+
props.push(`chartCategoryLocaleMapping={${jsxExpr(args.chartCategoryLocaleMapping)}}`);
|
|
2005
2046
|
if (args.chartLocaleData)
|
|
2006
|
-
props.push(`chartLocaleData={${args.chartLocaleData}}`);
|
|
2047
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
2007
2048
|
if (args.chartCustomCategory)
|
|
2008
|
-
props.push(`chartCustomCategory={${args.chartCustomCategory}}`);
|
|
2049
|
+
props.push(`chartCustomCategory={${jsxExpr(args.chartCustomCategory)}}`);
|
|
2050
|
+
if (args.chartLocaleMessage)
|
|
2051
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2009
2052
|
if (args.onChartClick)
|
|
2010
|
-
props.push(`onChartClick={${args.onChartClick}}`);
|
|
2053
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
2011
2054
|
if (args.chartTooltipDetailText)
|
|
2012
2055
|
props.push(`chartTooltipDetailText="${args.chartTooltipDetailText}"`);
|
|
2013
2056
|
if (args.chartSelectAllLegends)
|
|
@@ -2017,29 +2060,35 @@ export function createChartComponent() {
|
|
|
2017
2060
|
if (args.chartFoldLegend)
|
|
2018
2061
|
props.push(`chartFoldLegend="${args.chartFoldLegend}"`);
|
|
2019
2062
|
if (args.chartSampleProps)
|
|
2020
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
2063
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
2021
2064
|
if (args.chartSampleCategory)
|
|
2022
|
-
props.push(`chartSampleCategory={${args.chartSampleCategory}}`);
|
|
2065
|
+
props.push(`chartSampleCategory={${jsxExpr(args.chartSampleCategory)}}`);
|
|
2023
2066
|
if (args.chartSampleData)
|
|
2024
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
2067
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
2025
2068
|
if (args.chartSampleCustomCategory)
|
|
2026
|
-
props.push(`chartSampleCustomCategory={${args.chartSampleCustomCategory}}`);
|
|
2069
|
+
props.push(`chartSampleCustomCategory={${jsxExpr(args.chartSampleCustomCategory)}}`);
|
|
2027
2070
|
if (args.chartSampleLocaleProps)
|
|
2028
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
2071
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
2029
2072
|
if (args.chartSampleCategoryLocaleMapping)
|
|
2030
|
-
props.push(`chartSampleCategoryLocaleMapping={${args.chartSampleCategoryLocaleMapping}}`);
|
|
2073
|
+
props.push(`chartSampleCategoryLocaleMapping={${jsxExpr(args.chartSampleCategoryLocaleMapping)}}`);
|
|
2031
2074
|
if (args.chartSampleLocaleData)
|
|
2032
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
2075
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
2033
2076
|
if (args.chartCategoryColorByVendor)
|
|
2034
|
-
props.push(`chartCategoryColorByVendor={${args.chartCategoryColorByVendor}}`);
|
|
2077
|
+
props.push(`chartCategoryColorByVendor={${jsxExpr(args.chartCategoryColorByVendor)}}`);
|
|
2035
2078
|
if (args.useOpsnowUs !== undefined)
|
|
2036
|
-
props.push(`useOpsnowUs={${args.useOpsnowUs}}`);
|
|
2079
|
+
props.push(`useOpsnowUs={${jsxExpr(args.useOpsnowUs)}}`);
|
|
2037
2080
|
if (args.onTopNPopupDetailClick)
|
|
2038
|
-
props.push(`onTopNPopupDetailClick={${args.onTopNPopupDetailClick}}`);
|
|
2081
|
+
props.push(`onTopNPopupDetailClick={${jsxExpr(args.onTopNPopupDetailClick)}}`);
|
|
2039
2082
|
if (args.chartUserDefinedFunc)
|
|
2040
|
-
props.push(`chartUserDefinedFunc={${args.chartUserDefinedFunc}}`);
|
|
2083
|
+
props.push(`chartUserDefinedFunc={${jsxExpr(args.chartUserDefinedFunc)}}`);
|
|
2041
2084
|
if (args.langCd)
|
|
2042
2085
|
props.push(`langCd="${args.langCd}"`);
|
|
2086
|
+
if (args.isDarkMode !== undefined)
|
|
2087
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
2088
|
+
if (args.useSafeResolution !== undefined)
|
|
2089
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2090
|
+
if (args.chartNoRowsText)
|
|
2091
|
+
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2043
2092
|
const code = `<OpsnowCommonLineChart ${props.join(' ')} />`;
|
|
2044
2093
|
return {
|
|
2045
2094
|
content: [
|
|
@@ -2072,26 +2121,28 @@ export function createChartComponent() {
|
|
|
2072
2121
|
props.push(`chartId="${args.chartId}"`);
|
|
2073
2122
|
if (args.chartProps) {
|
|
2074
2123
|
// const chartProps = JSON.parse(args.chartProps);
|
|
2075
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
2124
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
2076
2125
|
}
|
|
2077
2126
|
if (args.chartData)
|
|
2078
|
-
props.push(`chartData={${args.chartData}}`);
|
|
2127
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
2079
2128
|
else
|
|
2080
2129
|
props.push(`chartData={[]}`);
|
|
2081
2130
|
if (args.chartCategory)
|
|
2082
|
-
props.push(`chartCategory={${args.chartCategory}}`);
|
|
2131
|
+
props.push(`chartCategory={${jsxExpr(args.chartCategory)}}`);
|
|
2083
2132
|
if (args.chartLocaleProps)
|
|
2084
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
2133
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
2085
2134
|
if (args.chartCategoryLocaleMapping)
|
|
2086
|
-
props.push(`chartCategoryLocaleMapping={${args.chartCategoryLocaleMapping}}`);
|
|
2135
|
+
props.push(`chartCategoryLocaleMapping={${jsxExpr(args.chartCategoryLocaleMapping)}}`);
|
|
2087
2136
|
if (args.chartLocaleData)
|
|
2088
|
-
props.push(`chartLocaleData={${args.chartLocaleData}}`);
|
|
2137
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
2089
2138
|
if (args.chartCustomCategory)
|
|
2090
|
-
props.push(`chartCustomCategory={${args.chartCustomCategory}}`);
|
|
2139
|
+
props.push(`chartCustomCategory={${jsxExpr(args.chartCustomCategory)}}`);
|
|
2091
2140
|
if (args.langCd)
|
|
2092
2141
|
props.push(`langCd="${args.langCd}"`);
|
|
2142
|
+
if (args.chartLocaleMessage)
|
|
2143
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2093
2144
|
if (args.onChartClick)
|
|
2094
|
-
props.push(`onChartClick={${args.onChartClick}}`);
|
|
2145
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
2095
2146
|
if (args.chartTooltipDetailText)
|
|
2096
2147
|
props.push(`chartTooltipDetailText="${args.chartTooltipDetailText}"`);
|
|
2097
2148
|
if (args.chartSelectAllLegends)
|
|
@@ -2101,27 +2152,31 @@ export function createChartComponent() {
|
|
|
2101
2152
|
if (args.chartFoldLegend)
|
|
2102
2153
|
props.push(`chartFoldLegend="${args.chartFoldLegend}"`);
|
|
2103
2154
|
if (args.chartSampleProps)
|
|
2104
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
2155
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
2105
2156
|
if (args.chartSampleCategory)
|
|
2106
|
-
props.push(`chartSampleCategory={${args.chartSampleCategory}}`);
|
|
2157
|
+
props.push(`chartSampleCategory={${jsxExpr(args.chartSampleCategory)}}`);
|
|
2107
2158
|
if (args.chartSampleData)
|
|
2108
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
2159
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
2109
2160
|
if (args.chartSampleCustomCategory)
|
|
2110
|
-
props.push(`chartSampleCustomCategory={${args.chartSampleCustomCategory}}`);
|
|
2161
|
+
props.push(`chartSampleCustomCategory={${jsxExpr(args.chartSampleCustomCategory)}}`);
|
|
2111
2162
|
if (args.chartSampleLocaleProps)
|
|
2112
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
2163
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
2113
2164
|
if (args.chartSampleCategoryLocaleMapping)
|
|
2114
|
-
props.push(`chartSampleCategoryLocaleMapping={${args.chartSampleCategoryLocaleMapping}}`);
|
|
2165
|
+
props.push(`chartSampleCategoryLocaleMapping={${jsxExpr(args.chartSampleCategoryLocaleMapping)}}`);
|
|
2115
2166
|
if (args.chartSampleLocaleData)
|
|
2116
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
2167
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
2117
2168
|
if (args.chartCategoryColorByVendor)
|
|
2118
|
-
props.push(`chartCategoryColorByVendor={${args.chartCategoryColorByVendor}}`);
|
|
2169
|
+
props.push(`chartCategoryColorByVendor={${jsxExpr(args.chartCategoryColorByVendor)}}`);
|
|
2119
2170
|
if (args.useOpsnowUs !== undefined)
|
|
2120
|
-
props.push(`useOpsnowUs={${args.useOpsnowUs}}`);
|
|
2171
|
+
props.push(`useOpsnowUs={${jsxExpr(args.useOpsnowUs)}}`);
|
|
2121
2172
|
if (args.chartNoRowsText)
|
|
2122
2173
|
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2123
2174
|
if (args.onTopNPopupDetailClick)
|
|
2124
|
-
props.push(`onTopNPopupDetailClick={${args.onTopNPopupDetailClick}}`);
|
|
2175
|
+
props.push(`onTopNPopupDetailClick={${jsxExpr(args.onTopNPopupDetailClick)}}`);
|
|
2176
|
+
if (args.isDarkMode !== undefined)
|
|
2177
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
2178
|
+
if (args.useSafeResolution !== undefined)
|
|
2179
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2125
2180
|
const code = `<OpsnowCommonBarChart ${props.join(' ')} />`;
|
|
2126
2181
|
return {
|
|
2127
2182
|
content: [
|
|
@@ -2150,27 +2205,29 @@ export function createChartComponent() {
|
|
|
2150
2205
|
if (args.chartId)
|
|
2151
2206
|
props.push(`chartId="${args.chartId}"`);
|
|
2152
2207
|
if (args.chartProps)
|
|
2153
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
2208
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
2154
2209
|
if (args.chartData)
|
|
2155
|
-
props.push(`chartData={${args.chartData}}`);
|
|
2210
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
2156
2211
|
else
|
|
2157
2212
|
props.push(`chartData={[]}`);
|
|
2158
2213
|
if (args.chartCategory)
|
|
2159
|
-
props.push(`chartCategory={${args.chartCategory}}`);
|
|
2214
|
+
props.push(`chartCategory={${jsxExpr(args.chartCategory)}}`);
|
|
2160
2215
|
if (args.chartLocaleProps)
|
|
2161
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
2216
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
2162
2217
|
if (args.chartCategoryLocaleMapping)
|
|
2163
|
-
props.push(`chartCategoryLocaleMapping={${args.chartCategoryLocaleMapping}}`);
|
|
2218
|
+
props.push(`chartCategoryLocaleMapping={${jsxExpr(args.chartCategoryLocaleMapping)}}`);
|
|
2164
2219
|
if (args.chartLocaleData)
|
|
2165
|
-
props.push(`chartLocaleData={${args.chartLocaleData}}`);
|
|
2220
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
2166
2221
|
if (args.chartCustomCategory)
|
|
2167
|
-
props.push(`chartCustomCategory={${args.chartCustomCategory}}`);
|
|
2222
|
+
props.push(`chartCustomCategory={${jsxExpr(args.chartCustomCategory)}}`);
|
|
2168
2223
|
if (args.chartUserDefinedFunc)
|
|
2169
|
-
props.push(`chartUserDefinedFunc={${args.chartUserDefinedFunc}}`);
|
|
2224
|
+
props.push(`chartUserDefinedFunc={${jsxExpr(args.chartUserDefinedFunc)}}`);
|
|
2170
2225
|
if (args.langCd)
|
|
2171
2226
|
props.push(`langCd="${args.langCd}"`);
|
|
2227
|
+
if (args.chartLocaleMessage)
|
|
2228
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2172
2229
|
if (args.onChartClick)
|
|
2173
|
-
props.push(`onChartClick={${args.onChartClick}}`);
|
|
2230
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
2174
2231
|
if (args.chartTooltipDetailText)
|
|
2175
2232
|
props.push(`chartTooltipDetailText="${args.chartTooltipDetailText}"`);
|
|
2176
2233
|
if (args.chartSelectAllLegends)
|
|
@@ -2180,31 +2237,35 @@ export function createChartComponent() {
|
|
|
2180
2237
|
if (args.chartFoldLegend)
|
|
2181
2238
|
props.push(`chartFoldLegend="${args.chartFoldLegend}"`);
|
|
2182
2239
|
if (args.onSeriesPointerOver)
|
|
2183
|
-
props.push(`onSeriesPointerOver={${args.onSeriesPointerOver}}`);
|
|
2240
|
+
props.push(`onSeriesPointerOver={${jsxExpr(args.onSeriesPointerOver)}}`);
|
|
2184
2241
|
if (args.onSeriesPointerOut)
|
|
2185
|
-
props.push(`onSeriesPointerOut={${args.onSeriesPointerOut}}`);
|
|
2242
|
+
props.push(`onSeriesPointerOut={${jsxExpr(args.onSeriesPointerOut)}}`);
|
|
2186
2243
|
if (args.chartSampleProps)
|
|
2187
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
2244
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
2188
2245
|
if (args.chartSampleCategory)
|
|
2189
|
-
props.push(`chartSampleCategory={${args.chartSampleCategory}}`);
|
|
2246
|
+
props.push(`chartSampleCategory={${jsxExpr(args.chartSampleCategory)}}`);
|
|
2190
2247
|
if (args.chartSampleData)
|
|
2191
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
2248
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
2192
2249
|
if (args.chartSampleCustomCategory)
|
|
2193
|
-
props.push(`chartSampleCustomCategory={${args.chartSampleCustomCategory}}`);
|
|
2250
|
+
props.push(`chartSampleCustomCategory={${jsxExpr(args.chartSampleCustomCategory)}}`);
|
|
2194
2251
|
if (args.chartSampleLocaleProps)
|
|
2195
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
2252
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
2196
2253
|
if (args.chartSampleCategoryLocaleMapping)
|
|
2197
|
-
props.push(`chartSampleCategoryLocaleMapping={${args.chartSampleCategoryLocaleMapping}}`);
|
|
2254
|
+
props.push(`chartSampleCategoryLocaleMapping={${jsxExpr(args.chartSampleCategoryLocaleMapping)}}`);
|
|
2198
2255
|
if (args.chartSampleLocaleData)
|
|
2199
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
2256
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
2200
2257
|
if (args.chartCategoryColorByVendor)
|
|
2201
|
-
props.push(`chartCategoryColorByVendor={${args.chartCategoryColorByVendor}}`);
|
|
2258
|
+
props.push(`chartCategoryColorByVendor={${jsxExpr(args.chartCategoryColorByVendor)}}`);
|
|
2202
2259
|
if (args.useOpsnowUs !== undefined)
|
|
2203
|
-
props.push(`useOpsnowUs={${args.useOpsnowUs}}`);
|
|
2260
|
+
props.push(`useOpsnowUs={${jsxExpr(args.useOpsnowUs)}}`);
|
|
2204
2261
|
if (args.chartNoRowsText)
|
|
2205
2262
|
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2206
2263
|
if (args.onTopNPopupDetailClick)
|
|
2207
|
-
props.push(`onTopNPopupDetailClick={${args.onTopNPopupDetailClick}}`);
|
|
2264
|
+
props.push(`onTopNPopupDetailClick={${jsxExpr(args.onTopNPopupDetailClick)}}`);
|
|
2265
|
+
if (args.isDarkMode !== undefined)
|
|
2266
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
2267
|
+
if (args.useSafeResolution !== undefined)
|
|
2268
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2208
2269
|
const code = `<OpsnowCommonStackChart ${props.join(' ')} />`;
|
|
2209
2270
|
return {
|
|
2210
2271
|
content: [
|
|
@@ -2236,55 +2297,67 @@ export function createChartComponent() {
|
|
|
2236
2297
|
if (args.chartId)
|
|
2237
2298
|
props.push(`chartId="${args.chartId}"`);
|
|
2238
2299
|
if (args.chartProps)
|
|
2239
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
2300
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
2240
2301
|
if (args.chartData)
|
|
2241
|
-
props.push(`chartData={${args.chartData}}`);
|
|
2302
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
2242
2303
|
else
|
|
2243
2304
|
props.push(`chartData={[]}`);
|
|
2244
2305
|
if (args.chartCategory)
|
|
2245
|
-
props.push(`chartCategory={${args.chartCategory}}`);
|
|
2306
|
+
props.push(`chartCategory={${jsxExpr(args.chartCategory)}}`);
|
|
2246
2307
|
if (args.chartLocaleProps)
|
|
2247
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
2308
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
2248
2309
|
if (args.chartLocaleMessage)
|
|
2249
|
-
props.push(`chartLocaleMessage={${args.chartLocaleMessage}}`);
|
|
2310
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2250
2311
|
if (args.chartCategoryLocaleMapping)
|
|
2251
|
-
props.push(`chartCategoryLocaleMapping={${args.chartCategoryLocaleMapping}}`);
|
|
2312
|
+
props.push(`chartCategoryLocaleMapping={${jsxExpr(args.chartCategoryLocaleMapping)}}`);
|
|
2252
2313
|
if (args.chartLocaleData)
|
|
2253
|
-
props.push(`chartLocaleData={${args.chartLocaleData}}`);
|
|
2314
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
2254
2315
|
if (args.chartCustomCategory)
|
|
2255
|
-
props.push(`chartCustomCategory={${args.chartCustomCategory}}`);
|
|
2316
|
+
props.push(`chartCustomCategory={${jsxExpr(args.chartCustomCategory)}}`);
|
|
2256
2317
|
if (args.chartUserDefinedFunc)
|
|
2257
|
-
props.push(`chartUserDefinedFunc={${args.chartUserDefinedFunc}}`);
|
|
2318
|
+
props.push(`chartUserDefinedFunc={${jsxExpr(args.chartUserDefinedFunc)}}`);
|
|
2258
2319
|
if (args.langCd)
|
|
2259
2320
|
props.push(`langCd="${args.langCd}"`);
|
|
2260
2321
|
if (args.onChartClick)
|
|
2261
|
-
props.push(`onChartClick={${args.onChartClick}}`);
|
|
2322
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
2262
2323
|
if (args.onSeriesPointerOver)
|
|
2263
|
-
props.push(`onSeriesPointerOver={${args.onSeriesPointerOver}}`);
|
|
2324
|
+
props.push(`onSeriesPointerOver={${jsxExpr(args.onSeriesPointerOver)}}`);
|
|
2264
2325
|
if (args.onSeriesPointerOut)
|
|
2265
|
-
props.push(`onSeriesPointerOut={${args.onSeriesPointerOut}}`);
|
|
2326
|
+
props.push(`onSeriesPointerOut={${jsxExpr(args.onSeriesPointerOut)}}`);
|
|
2266
2327
|
if (args.chartSampleProps)
|
|
2267
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
2328
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
2268
2329
|
if (args.chartSampleCategory)
|
|
2269
|
-
props.push(`chartSampleCategory={${args.chartSampleCategory}}`);
|
|
2330
|
+
props.push(`chartSampleCategory={${jsxExpr(args.chartSampleCategory)}}`);
|
|
2270
2331
|
if (args.chartSampleData)
|
|
2271
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
2332
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
2272
2333
|
if (args.chartSampleCustomCategory)
|
|
2273
|
-
props.push(`chartSampleCustomCategory={${args.chartSampleCustomCategory}}`);
|
|
2334
|
+
props.push(`chartSampleCustomCategory={${jsxExpr(args.chartSampleCustomCategory)}}`);
|
|
2274
2335
|
if (args.chartSampleLocaleProps)
|
|
2275
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
2336
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
2276
2337
|
if (args.chartSampleCategoryLocaleMapping)
|
|
2277
|
-
props.push(`chartSampleCategoryLocaleMapping={${args.chartSampleCategoryLocaleMapping}}`);
|
|
2338
|
+
props.push(`chartSampleCategoryLocaleMapping={${jsxExpr(args.chartSampleCategoryLocaleMapping)}}`);
|
|
2278
2339
|
if (args.chartSampleLocaleData)
|
|
2279
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
2340
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
2280
2341
|
if (args.chartCategoryColorByVendor)
|
|
2281
|
-
props.push(`chartCategoryColorByVendor={${args.chartCategoryColorByVendor}}`);
|
|
2342
|
+
props.push(`chartCategoryColorByVendor={${jsxExpr(args.chartCategoryColorByVendor)}}`);
|
|
2282
2343
|
if (args.useOpsnowUs !== undefined)
|
|
2283
|
-
props.push(`useOpsnowUs={${args.useOpsnowUs}}`);
|
|
2344
|
+
props.push(`useOpsnowUs={${jsxExpr(args.useOpsnowUs)}}`);
|
|
2284
2345
|
if (args.chartNoRowsText)
|
|
2285
2346
|
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2286
2347
|
if (args.chartTooltipDetailText)
|
|
2287
2348
|
props.push(`chartTooltipDetailText="${args.chartTooltipDetailText}"`);
|
|
2349
|
+
if (args.chartCustomCategoryGroup)
|
|
2350
|
+
props.push(`chartCustomCategoryGroup={${JSON.stringify(args.chartCustomCategoryGroup)}}`);
|
|
2351
|
+
if (args.chartSelectAllLegends)
|
|
2352
|
+
props.push(`chartSelectAllLegends="${args.chartSelectAllLegends}"`);
|
|
2353
|
+
if (args.chartUnfoldLegend)
|
|
2354
|
+
props.push(`chartUnfoldLegend="${args.chartUnfoldLegend}"`);
|
|
2355
|
+
if (args.chartFoldLegend)
|
|
2356
|
+
props.push(`chartFoldLegend="${args.chartFoldLegend}"`);
|
|
2357
|
+
if (args.isDarkMode !== undefined)
|
|
2358
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
2359
|
+
if (args.useSafeResolution !== undefined)
|
|
2360
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2288
2361
|
const code = `<OpsnowCommonXyMultiChart ${props.join(' ')} />`;
|
|
2289
2362
|
return {
|
|
2290
2363
|
content: [
|
|
@@ -2317,31 +2390,37 @@ export function createChartComponent() {
|
|
|
2317
2390
|
if (args.chartId)
|
|
2318
2391
|
props.push(`chartId="${args.chartId}"`);
|
|
2319
2392
|
if (args.chartProps)
|
|
2320
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
2393
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
2321
2394
|
if (args.chartData)
|
|
2322
|
-
props.push(`chartData={${args.chartData}}`);
|
|
2395
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
2323
2396
|
else
|
|
2324
2397
|
props.push(`chartData={[]}`);
|
|
2325
2398
|
if (args.chartLocaleProps)
|
|
2326
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
2399
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
2327
2400
|
if (args.chartLocaleData)
|
|
2328
|
-
props.push(`chartLocaleData={${args.chartLocaleData}}`);
|
|
2401
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
2329
2402
|
if (args.chartLocaleMessage)
|
|
2330
|
-
props.push(`chartLocaleMessage={${args.chartLocaleMessage}}`);
|
|
2403
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2331
2404
|
if (args.langCd)
|
|
2332
2405
|
props.push(`langCd="${args.langCd}"`);
|
|
2333
2406
|
if (args.isDarkMode !== undefined)
|
|
2334
|
-
props.push(`isDarkMode={${args.isDarkMode}}`);
|
|
2407
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
2408
|
+
if (args.useSafeResolution !== undefined)
|
|
2409
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2335
2410
|
if (args.onChartClick)
|
|
2336
|
-
props.push(`onChartClick={${args.onChartClick}}`);
|
|
2411
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
2337
2412
|
if (args.chartSampleProps)
|
|
2338
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
2413
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
2339
2414
|
if (args.chartSampleData)
|
|
2340
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
2415
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
2341
2416
|
if (args.chartSampleLocaleProps)
|
|
2342
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
2417
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
2343
2418
|
if (args.chartSampleLocaleData)
|
|
2344
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
2419
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
2420
|
+
if (args.chartNoRowsText)
|
|
2421
|
+
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2422
|
+
if (args.chartTooltipDetailText)
|
|
2423
|
+
props.push(`chartTooltipDetailText="${args.chartTooltipDetailText}"`);
|
|
2345
2424
|
const code = `<OpsnowCommonHeatmapChart ${props.join(' ')} />`;
|
|
2346
2425
|
return {
|
|
2347
2426
|
content: [
|
|
@@ -2376,29 +2455,39 @@ export function createChartComponent() {
|
|
|
2376
2455
|
if (args.chartId)
|
|
2377
2456
|
props.push(`chartId="${args.chartId}"`);
|
|
2378
2457
|
if (args.chartProps)
|
|
2379
|
-
props.push(`chartProps={${args.chartProps}}`);
|
|
2458
|
+
props.push(`chartProps={${jsxExpr(args.chartProps)}}`);
|
|
2380
2459
|
if (args.chartData)
|
|
2381
|
-
props.push(`chartData={${args.chartData}}`);
|
|
2460
|
+
props.push(`chartData={${jsxExpr(args.chartData)}}`);
|
|
2382
2461
|
else
|
|
2383
2462
|
props.push(`chartData={[]}`);
|
|
2384
2463
|
if (args.chartLocaleProps)
|
|
2385
|
-
props.push(`chartLocaleProps={${args.chartLocaleProps}}`);
|
|
2464
|
+
props.push(`chartLocaleProps={${jsxExpr(args.chartLocaleProps)}}`);
|
|
2386
2465
|
if (args.chartLocaleMessage)
|
|
2387
|
-
props.push(`chartLocaleMessage={${args.chartLocaleMessage}}`);
|
|
2466
|
+
props.push(`chartLocaleMessage={${JSON.stringify(args.chartLocaleMessage)}}`);
|
|
2388
2467
|
if (args.langCd)
|
|
2389
2468
|
props.push(`langCd="${args.langCd}"`);
|
|
2390
2469
|
if (args.onChartClick)
|
|
2391
|
-
props.push(`onChartClick={${args.onChartClick}}`);
|
|
2470
|
+
props.push(`onChartClick={${jsxExpr(args.onChartClick)}}`);
|
|
2392
2471
|
if (args.chartSampleProps)
|
|
2393
|
-
props.push(`chartSampleProps={${args.chartSampleProps}}`);
|
|
2472
|
+
props.push(`chartSampleProps={${jsxExpr(args.chartSampleProps)}}`);
|
|
2394
2473
|
if (args.chartSampleData)
|
|
2395
|
-
props.push(`chartSampleData={${args.chartSampleData}}`);
|
|
2474
|
+
props.push(`chartSampleData={${jsxExpr(args.chartSampleData)}}`);
|
|
2396
2475
|
if (args.chartSampleLocaleProps)
|
|
2397
|
-
props.push(`chartSampleLocaleProps={${args.chartSampleLocaleProps}}`);
|
|
2476
|
+
props.push(`chartSampleLocaleProps={${jsxExpr(args.chartSampleLocaleProps)}}`);
|
|
2398
2477
|
if (args.chartSampleLocaleData)
|
|
2399
|
-
props.push(`chartSampleLocaleData={${args.chartSampleLocaleData}}`);
|
|
2478
|
+
props.push(`chartSampleLocaleData={${jsxExpr(args.chartSampleLocaleData)}}`);
|
|
2400
2479
|
if (args.isDarkMode !== undefined)
|
|
2401
|
-
props.push(`isDarkMode={${args.isDarkMode}}`);
|
|
2480
|
+
props.push(`isDarkMode={${jsxExpr(args.isDarkMode)}}`);
|
|
2481
|
+
if (args.useSafeResolution !== undefined)
|
|
2482
|
+
props.push(`useSafeResolution={${jsxExpr(args.useSafeResolution)}}`);
|
|
2483
|
+
if (args.chartNoRowsText)
|
|
2484
|
+
props.push(`chartNoRowsText="${args.chartNoRowsText}"`);
|
|
2485
|
+
if (args.chartTooltipDetailText)
|
|
2486
|
+
props.push(`chartTooltipDetailText="${args.chartTooltipDetailText}"`);
|
|
2487
|
+
if (args.chartLocaleData)
|
|
2488
|
+
props.push(`chartLocaleData={${jsxExpr(args.chartLocaleData)}}`);
|
|
2489
|
+
if (args.useOpsnowUs !== undefined)
|
|
2490
|
+
props.push(`useOpsnowUs={${jsxExpr(args.useOpsnowUs)}}`);
|
|
2402
2491
|
const code = `<OpsnowCommonBubbleChart ${props.join(' ')} />`;
|
|
2403
2492
|
return {
|
|
2404
2493
|
content: [
|