@pitcher/canvas-ui 2025.12.12-074331-beta → 2025.12.12-75200
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/canvas-ui.css +17 -17
- package/canvas-ui.js +380 -210
- package/canvas-ui.js.map +1 -1
- package/lib/types/canvases.d.ts +1 -0
- package/package.json +1 -1
package/canvas-ui.js
CHANGED
|
@@ -88061,6 +88061,8 @@ const defaultSkipKeys = [
|
|
|
88061
88061
|
"id__in",
|
|
88062
88062
|
"tags__in",
|
|
88063
88063
|
"tags__not_in",
|
|
88064
|
+
"template__id",
|
|
88065
|
+
"template__id__in",
|
|
88064
88066
|
"modified_at__gtr",
|
|
88065
88067
|
"created_at__gtr",
|
|
88066
88068
|
"end_at__lt",
|
|
@@ -95227,14 +95229,20 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
95227
95229
|
if (!searchQuery.value || searchQuery.value.trim() === "/") {
|
|
95228
95230
|
return "";
|
|
95229
95231
|
}
|
|
95230
|
-
|
|
95231
|
-
|
|
95232
|
-
}
|
|
95232
|
+
const highlightValue = item._highlightResult?.searchable_content?.value;
|
|
95233
|
+
if (!highlightValue) return "";
|
|
95233
95234
|
const nameMatched = item._highlightResult?.name?.matchLevel && item._highlightResult.name.matchLevel !== "none";
|
|
95234
95235
|
if (nameMatched) {
|
|
95235
95236
|
return "";
|
|
95236
95237
|
}
|
|
95237
|
-
|
|
95238
|
+
const emIndex = highlightValue.indexOf("<em>");
|
|
95239
|
+
if (emIndex === -1) return "";
|
|
95240
|
+
const startChar = Math.max(0, emIndex - 100);
|
|
95241
|
+
const endChar = Math.min(highlightValue.length, emIndex + 100);
|
|
95242
|
+
let truncated = highlightValue.substring(startChar, endChar);
|
|
95243
|
+
if (startChar > 0) truncated = "..." + truncated;
|
|
95244
|
+
if (endChar < highlightValue.length) truncated = truncated + "...";
|
|
95245
|
+
return sanitizeHtml(truncated);
|
|
95238
95246
|
};
|
|
95239
95247
|
const toggleCanvasFilter = (filterType) => {
|
|
95240
95248
|
if (selectedCanvasFilters.value.includes(filterType)) {
|
|
@@ -96035,7 +96043,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96035
96043
|
}
|
|
96036
96044
|
});
|
|
96037
96045
|
|
|
96038
|
-
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-
|
|
96046
|
+
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-338ca99c"]]);
|
|
96039
96047
|
|
|
96040
96048
|
const BulletListExtended = BulletList.extend({
|
|
96041
96049
|
addOptions() {
|
|
@@ -141645,61 +141653,88 @@ const _hoisted_40$3 = { class: "block mb-1 text-sm" };
|
|
|
141645
141653
|
const _hoisted_41$3 = { key: 0 };
|
|
141646
141654
|
const _hoisted_42$3 = { class: "block mb-1 text-sm" };
|
|
141647
141655
|
const _hoisted_43$3 = ["onClick"];
|
|
141648
|
-
const _hoisted_44$3 = { class: "p-4 min-w-[400px] max-h-[400px]
|
|
141649
|
-
const _hoisted_45$3 = { class: "
|
|
141650
|
-
const _hoisted_46$3 =
|
|
141651
|
-
const _hoisted_47$3 = { class: "
|
|
141652
|
-
const _hoisted_48$3 = { class: "
|
|
141653
|
-
const _hoisted_49$3 = {
|
|
141654
|
-
|
|
141655
|
-
|
|
141656
|
-
|
|
141657
|
-
const
|
|
141658
|
-
const
|
|
141659
|
-
const
|
|
141660
|
-
const
|
|
141661
|
-
const
|
|
141662
|
-
const
|
|
141663
|
-
const
|
|
141656
|
+
const _hoisted_44$3 = { class: "p-4 min-w-[400px] max-h-[400px]" };
|
|
141657
|
+
const _hoisted_45$3 = { class: "flex gap-4 h-full" };
|
|
141658
|
+
const _hoisted_46$3 = { class: "flex-1 flex flex-col" };
|
|
141659
|
+
const _hoisted_47$3 = { class: "text-sm mb-2" };
|
|
141660
|
+
const _hoisted_48$3 = { class: "overflow-auto" };
|
|
141661
|
+
const _hoisted_49$3 = {
|
|
141662
|
+
key: 0,
|
|
141663
|
+
class: "flex-1 border-l pl-4"
|
|
141664
|
+
};
|
|
141665
|
+
const _hoisted_50$3 = { class: "text-sm font-medium mb-2" };
|
|
141666
|
+
const _hoisted_51$2 = { class: "flex flex-col gap-2" };
|
|
141667
|
+
const _hoisted_52$2 = { class: "block mb-1 text-sm" };
|
|
141668
|
+
const _hoisted_53$2 = { class: "block mb-1 text-sm" };
|
|
141669
|
+
const _hoisted_54$1 = { class: "block mb-1 text-sm" };
|
|
141670
|
+
const _hoisted_55$1 = { key: 0 };
|
|
141671
|
+
const _hoisted_56$1 = { class: "block mb-1 text-sm" };
|
|
141672
|
+
const _hoisted_57$1 = ["onClick"];
|
|
141673
|
+
const _hoisted_58$1 = { class: "p-4 min-w-[400px] max-h-[400px]" };
|
|
141674
|
+
const _hoisted_59$1 = { class: "flex gap-4 h-full" };
|
|
141675
|
+
const _hoisted_60$1 = { class: "flex-1 flex flex-col" };
|
|
141676
|
+
const _hoisted_61$1 = { class: "text-sm mb-2" };
|
|
141677
|
+
const _hoisted_62$1 = { class: "overflow-auto" };
|
|
141678
|
+
const _hoisted_63$1 = {
|
|
141679
|
+
key: 0,
|
|
141680
|
+
class: "flex-1 border-l pl-4"
|
|
141681
|
+
};
|
|
141682
|
+
const _hoisted_64$1 = { class: "text-sm font-medium mb-2" };
|
|
141683
|
+
const _hoisted_65$1 = { class: "flex flex-col gap-2" };
|
|
141684
|
+
const _hoisted_66$1 = { class: "block mb-1 text-sm" };
|
|
141685
|
+
const _hoisted_67$1 = { class: "block mb-1 text-sm" };
|
|
141686
|
+
const _hoisted_68$1 = { class: "block mb-1 text-sm" };
|
|
141687
|
+
const _hoisted_69 = { class: "block mb-1 text-sm" };
|
|
141688
|
+
const _hoisted_70 = { class: "flex justify-center mt-2" };
|
|
141689
|
+
const _hoisted_71 = { class: "text-sm font-semibold mb-3 mt-6 text-gray-600 dark:text-gray-400 uppercase tracking-wide border-t border-gray-200 dark:border-gray-700 pt-6" };
|
|
141690
|
+
const _hoisted_72 = { class: "mb-4" };
|
|
141691
|
+
const _hoisted_73 = { class: "block mb-2" };
|
|
141692
|
+
const _hoisted_74 = { class: "mb-4" };
|
|
141693
|
+
const _hoisted_75 = { class: "block mb-2" };
|
|
141694
|
+
const _hoisted_76 = { class: "mb-4" };
|
|
141695
|
+
const _hoisted_77 = { class: "block mb-2" };
|
|
141696
|
+
const _hoisted_78 = { class: "mb-4" };
|
|
141697
|
+
const _hoisted_79 = { class: "block mb-2" };
|
|
141698
|
+
const _hoisted_80 = {
|
|
141664
141699
|
key: 2,
|
|
141665
141700
|
class: "mb-4"
|
|
141666
141701
|
};
|
|
141667
|
-
const
|
|
141668
|
-
const
|
|
141702
|
+
const _hoisted_81 = { class: "block mb-2" };
|
|
141703
|
+
const _hoisted_82 = {
|
|
141669
141704
|
key: 3,
|
|
141670
141705
|
class: "mb-4"
|
|
141671
141706
|
};
|
|
141672
|
-
const
|
|
141673
|
-
const
|
|
141674
|
-
const
|
|
141675
|
-
const
|
|
141676
|
-
const
|
|
141677
|
-
const
|
|
141678
|
-
const
|
|
141679
|
-
const
|
|
141680
|
-
const
|
|
141681
|
-
const
|
|
141682
|
-
const
|
|
141683
|
-
const
|
|
141684
|
-
const
|
|
141685
|
-
const
|
|
141686
|
-
const
|
|
141687
|
-
const
|
|
141688
|
-
const
|
|
141689
|
-
const
|
|
141690
|
-
const
|
|
141691
|
-
const
|
|
141692
|
-
const
|
|
141693
|
-
const
|
|
141694
|
-
const
|
|
141695
|
-
const
|
|
141696
|
-
const
|
|
141697
|
-
const
|
|
141698
|
-
const
|
|
141707
|
+
const _hoisted_83 = { class: "block mb-2" };
|
|
141708
|
+
const _hoisted_84 = { class: "mb-4" };
|
|
141709
|
+
const _hoisted_85 = { class: "block mb-2" };
|
|
141710
|
+
const _hoisted_86 = { class: "mb-4" };
|
|
141711
|
+
const _hoisted_87 = { class: "block mb-2" };
|
|
141712
|
+
const _hoisted_88 = { class: "mb-4" };
|
|
141713
|
+
const _hoisted_89 = { class: "block mb-2" };
|
|
141714
|
+
const _hoisted_90 = { class: "flex items-center gap-2" };
|
|
141715
|
+
const _hoisted_91 = { class: "text-sm text-gray-500" };
|
|
141716
|
+
const _hoisted_92 = { class: "mb-4" };
|
|
141717
|
+
const _hoisted_93 = { class: "block mb-2" };
|
|
141718
|
+
const _hoisted_94 = { class: "flex flex-col gap-2" };
|
|
141719
|
+
const _hoisted_95 = { class: "flex items-center gap-2" };
|
|
141720
|
+
const _hoisted_96 = { class: "text-sm" };
|
|
141721
|
+
const _hoisted_97 = { class: "text-sm" };
|
|
141722
|
+
const _hoisted_98 = { class: "flex items-center gap-2" };
|
|
141723
|
+
const _hoisted_99 = { class: "text-sm" };
|
|
141724
|
+
const _hoisted_100 = { class: "mb-4" };
|
|
141725
|
+
const _hoisted_101 = { class: "block mb-2" };
|
|
141726
|
+
const _hoisted_102 = { class: "flex flex-col gap-3" };
|
|
141727
|
+
const _hoisted_103 = { class: "flex items-center gap-2" };
|
|
141728
|
+
const _hoisted_104 = { class: "text-sm w-16" };
|
|
141729
|
+
const _hoisted_105 = { class: "flex items-center gap-2" };
|
|
141730
|
+
const _hoisted_106 = { class: "text-sm w-16" };
|
|
141731
|
+
const _hoisted_107 = { class: "cb-data-charts-settings__preview flex-1 border-l border-[#eee] pl-4" };
|
|
141732
|
+
const _hoisted_108 = { class: "text-sm font-medium mb-4" };
|
|
141733
|
+
const _hoisted_109 = {
|
|
141699
141734
|
class: "preview-container",
|
|
141700
141735
|
style: { "height": "300px" }
|
|
141701
141736
|
};
|
|
141702
|
-
const
|
|
141737
|
+
const _hoisted_110 = { class: "flex justify-between gap-4" };
|
|
141703
141738
|
const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
141704
141739
|
__name: "DataCharts.settings",
|
|
141705
141740
|
props: {
|
|
@@ -141944,6 +141979,46 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141944
141979
|
function isArrayOrObject(value) {
|
|
141945
141980
|
return Array.isArray(value) || typeof value === "object" && value !== null;
|
|
141946
141981
|
}
|
|
141982
|
+
function parsePathIntoParts(path) {
|
|
141983
|
+
const parts = [];
|
|
141984
|
+
let current = "";
|
|
141985
|
+
for (let i = 0; i < path.length; i++) {
|
|
141986
|
+
const char = path[i];
|
|
141987
|
+
if (char === ".") {
|
|
141988
|
+
if (current) {
|
|
141989
|
+
parts.push(current);
|
|
141990
|
+
current = "";
|
|
141991
|
+
}
|
|
141992
|
+
} else if (char === "[") {
|
|
141993
|
+
if (current) {
|
|
141994
|
+
parts.push(current);
|
|
141995
|
+
current = "";
|
|
141996
|
+
}
|
|
141997
|
+
const closingIdx = path.indexOf("]", i);
|
|
141998
|
+
if (closingIdx !== -1) {
|
|
141999
|
+
parts.push(path.substring(i, closingIdx + 1));
|
|
142000
|
+
i = closingIdx;
|
|
142001
|
+
}
|
|
142002
|
+
} else {
|
|
142003
|
+
current += char;
|
|
142004
|
+
}
|
|
142005
|
+
}
|
|
142006
|
+
if (current) {
|
|
142007
|
+
parts.push(current);
|
|
142008
|
+
}
|
|
142009
|
+
return parts;
|
|
142010
|
+
}
|
|
142011
|
+
function convertBracketsToDotsPath(path) {
|
|
142012
|
+
if (!path) return "";
|
|
142013
|
+
if (!path.includes("[")) return path;
|
|
142014
|
+
const convertedPath = path.replace(/\[(\d+)\]/g, ".$1");
|
|
142015
|
+
return convertedPath.startsWith(".") ? convertedPath.slice(1) : convertedPath;
|
|
142016
|
+
}
|
|
142017
|
+
function generateHandlebarsExpression(path) {
|
|
142018
|
+
if (!path) return "";
|
|
142019
|
+
const cleanPath = convertBracketsToDotsPath(path);
|
|
142020
|
+
return `{{${cleanPath}}}`;
|
|
142021
|
+
}
|
|
141947
142022
|
function getFieldOptions(data) {
|
|
141948
142023
|
if (!data || typeof data !== "object") return [];
|
|
141949
142024
|
const firstItem = Array.isArray(data) ? data[0] : data;
|
|
@@ -141961,8 +142036,15 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141961
142036
|
if (!path) {
|
|
141962
142037
|
return;
|
|
141963
142038
|
}
|
|
141964
|
-
|
|
141965
|
-
|
|
142039
|
+
const isArray = Array.isArray(point.selectedValue);
|
|
142040
|
+
if (isArray) {
|
|
142041
|
+
point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142042
|
+
point.value = `{{#each ${path}}}{{lookup this "${point.arrayConfig.valueField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142043
|
+
} else {
|
|
142044
|
+
const cleanPath = convertBracketsToDotsPath(path);
|
|
142045
|
+
point.label = `{{${cleanPath}.${point.arrayConfig.labelField}}}`;
|
|
142046
|
+
point.value = `{{${cleanPath}.${point.arrayConfig.valueField}}}`;
|
|
142047
|
+
}
|
|
141966
142048
|
point.dynamicValue = {
|
|
141967
142049
|
path,
|
|
141968
142050
|
value: point.value
|
|
@@ -141970,20 +142052,53 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141970
142052
|
closePopover();
|
|
141971
142053
|
}
|
|
141972
142054
|
function updateXYDynamicValueExpression(point) {
|
|
141973
|
-
if (!point.
|
|
142055
|
+
if (!point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
|
|
141974
142056
|
return;
|
|
141975
142057
|
}
|
|
141976
142058
|
const isBubble = isActiveSeriesXYRChart.value;
|
|
141977
142059
|
if (isBubble && !point.arrayConfig?.rField) {
|
|
141978
142060
|
return;
|
|
141979
142061
|
}
|
|
141980
|
-
|
|
141981
|
-
|
|
142062
|
+
let selectedValue = null;
|
|
142063
|
+
let path = void 0;
|
|
142064
|
+
if (point.selectedXValue && isArrayOrObject(point.selectedXValue)) {
|
|
142065
|
+
selectedValue = point.selectedXValue;
|
|
142066
|
+
path = point.dynamicXValue?.path;
|
|
142067
|
+
} else if (point.selectedYValue && isArrayOrObject(point.selectedYValue)) {
|
|
142068
|
+
selectedValue = point.selectedYValue;
|
|
142069
|
+
path = point.dynamicYValue?.path;
|
|
142070
|
+
} else if (point.selectedRValue && isArrayOrObject(point.selectedRValue)) {
|
|
142071
|
+
selectedValue = point.selectedRValue;
|
|
142072
|
+
path = point.dynamicRValue?.path;
|
|
142073
|
+
}
|
|
142074
|
+
if (!selectedValue || !path) {
|
|
141982
142075
|
return;
|
|
141983
142076
|
}
|
|
141984
|
-
|
|
141985
|
-
|
|
141986
|
-
|
|
142077
|
+
const isArray = Array.isArray(selectedValue);
|
|
142078
|
+
if (isArray) {
|
|
142079
|
+
point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142080
|
+
point.xValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.xField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142081
|
+
point.yValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.yField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142082
|
+
if (isBubble && point.arrayConfig.rField) {
|
|
142083
|
+
point.rValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.rField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142084
|
+
point.dynamicRValue = {
|
|
142085
|
+
path,
|
|
142086
|
+
value: point.rValue
|
|
142087
|
+
};
|
|
142088
|
+
}
|
|
142089
|
+
} else {
|
|
142090
|
+
const cleanPath = convertBracketsToDotsPath(path);
|
|
142091
|
+
point.label = `{{${cleanPath}.${point.arrayConfig.labelField}}}`;
|
|
142092
|
+
point.xValue = `{{${cleanPath}.${point.arrayConfig.xField}}}`;
|
|
142093
|
+
point.yValue = `{{${cleanPath}.${point.arrayConfig.yField}}}`;
|
|
142094
|
+
if (isBubble && point.arrayConfig.rField) {
|
|
142095
|
+
point.rValue = `{{${cleanPath}.${point.arrayConfig.rField}}}`;
|
|
142096
|
+
point.dynamicRValue = {
|
|
142097
|
+
path,
|
|
142098
|
+
value: point.rValue
|
|
142099
|
+
};
|
|
142100
|
+
}
|
|
142101
|
+
}
|
|
141987
142102
|
point.dynamicXValue = {
|
|
141988
142103
|
path,
|
|
141989
142104
|
value: point.xValue
|
|
@@ -141992,37 +142107,40 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141992
142107
|
path,
|
|
141993
142108
|
value: point.yValue
|
|
141994
142109
|
};
|
|
141995
|
-
if (isBubble && point.arrayConfig.rField) {
|
|
141996
|
-
point.rValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.rField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
141997
|
-
point.dynamicRValue = {
|
|
141998
|
-
path,
|
|
141999
|
-
value: point.rValue
|
|
142000
|
-
};
|
|
142001
|
-
}
|
|
142002
142110
|
closePopover();
|
|
142003
142111
|
}
|
|
142004
142112
|
const dynamicValueTreeData = computed(() => {
|
|
142005
|
-
function
|
|
142113
|
+
function buildPathString(pathParts) {
|
|
142114
|
+
return pathParts.reduce((acc, part, index) => {
|
|
142115
|
+
if (part.startsWith("[")) {
|
|
142116
|
+
return acc + part;
|
|
142117
|
+
}
|
|
142118
|
+
return index === 0 ? part : `${acc}.${part}`;
|
|
142119
|
+
}, "");
|
|
142120
|
+
}
|
|
142121
|
+
function processObject(obj, pathParts = []) {
|
|
142006
142122
|
const result = [];
|
|
142007
142123
|
for (const key in obj) {
|
|
142008
142124
|
if (key === "[[Prototype]]") continue;
|
|
142009
142125
|
const value = obj[key];
|
|
142010
|
-
const
|
|
142011
|
-
const pathString =
|
|
142126
|
+
const currentPathParts = [...pathParts, key];
|
|
142127
|
+
const pathString = buildPathString(currentPathParts);
|
|
142012
142128
|
if (Array.isArray(value)) {
|
|
142013
142129
|
const arrayNode = {
|
|
142014
142130
|
key: pathString,
|
|
142015
142131
|
label: key,
|
|
142016
142132
|
children: value.map((item, index) => {
|
|
142133
|
+
const arrayItemPath = [...currentPathParts.slice(0, -1), `${key}[${index}]`];
|
|
142134
|
+
const arrayItemPathString = buildPathString(arrayItemPath);
|
|
142017
142135
|
if (typeof item === "object" && item !== null) {
|
|
142018
142136
|
return {
|
|
142019
|
-
key:
|
|
142137
|
+
key: arrayItemPathString,
|
|
142020
142138
|
label: `[${index}]`,
|
|
142021
|
-
children: processObject(item,
|
|
142139
|
+
children: processObject(item, arrayItemPath)
|
|
142022
142140
|
};
|
|
142023
142141
|
}
|
|
142024
142142
|
return {
|
|
142025
|
-
key:
|
|
142143
|
+
key: arrayItemPathString,
|
|
142026
142144
|
label: `[${index}]: ${item}`,
|
|
142027
142145
|
isLeaf: true
|
|
142028
142146
|
};
|
|
@@ -142033,7 +142151,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142033
142151
|
result.push({
|
|
142034
142152
|
key: pathString,
|
|
142035
142153
|
label: key,
|
|
142036
|
-
children: processObject(value,
|
|
142154
|
+
children: processObject(value, currentPathParts)
|
|
142037
142155
|
});
|
|
142038
142156
|
} else {
|
|
142039
142157
|
result.push({
|
|
@@ -142059,25 +142177,18 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142059
142177
|
point.selectedValue = void 0;
|
|
142060
142178
|
point.dynamicValue = void 0;
|
|
142061
142179
|
point.arrayConfig = void 0;
|
|
142062
|
-
point.value = "";
|
|
142063
142180
|
} else if (field === "x") {
|
|
142064
142181
|
point.selectedXValue = void 0;
|
|
142065
142182
|
point.dynamicXValue = void 0;
|
|
142066
|
-
point.dynamicYValue = void 0;
|
|
142067
|
-
point.dynamicRValue = void 0;
|
|
142068
142183
|
point.arrayConfig = void 0;
|
|
142069
|
-
point.xValue = "";
|
|
142070
|
-
point.yValue = "";
|
|
142071
|
-
point.rValue = "";
|
|
142072
|
-
point.label = "";
|
|
142073
142184
|
} else if (field === "y") {
|
|
142074
142185
|
point.selectedYValue = void 0;
|
|
142075
142186
|
point.dynamicYValue = void 0;
|
|
142076
|
-
point.
|
|
142187
|
+
point.arrayConfig = void 0;
|
|
142077
142188
|
} else if (field === "r") {
|
|
142078
142189
|
point.selectedRValue = void 0;
|
|
142079
142190
|
point.dynamicRValue = void 0;
|
|
142080
|
-
point.
|
|
142191
|
+
point.arrayConfig = void 0;
|
|
142081
142192
|
}
|
|
142082
142193
|
activePopoverPoint.value = point;
|
|
142083
142194
|
activePopoverField.value = field;
|
|
@@ -142106,14 +142217,13 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142106
142217
|
closePopover();
|
|
142107
142218
|
return;
|
|
142108
142219
|
}
|
|
142109
|
-
const pathParts = selectedKey
|
|
142220
|
+
const pathParts = parsePathIntoParts(selectedKey);
|
|
142110
142221
|
let currentValue = crmShape.value;
|
|
142111
142222
|
for (const part of pathParts) {
|
|
142112
142223
|
if (!currentValue) break;
|
|
142113
|
-
if (part.
|
|
142114
|
-
const
|
|
142115
|
-
|
|
142116
|
-
currentValue = currentValue?.[arrayPath]?.[index];
|
|
142224
|
+
if (part.startsWith("[") && part.endsWith("]")) {
|
|
142225
|
+
const index = parseInt(part.slice(1, -1));
|
|
142226
|
+
currentValue = currentValue?.[index];
|
|
142117
142227
|
} else {
|
|
142118
142228
|
currentValue = currentValue?.[part];
|
|
142119
142229
|
}
|
|
@@ -142134,19 +142244,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142134
142244
|
};
|
|
142135
142245
|
return;
|
|
142136
142246
|
}
|
|
142137
|
-
const
|
|
142138
|
-
let expression = "";
|
|
142139
|
-
if (pathParts.length === 1) {
|
|
142140
|
-
expression = `{{${rootPart}}}`;
|
|
142141
|
-
} else {
|
|
142142
|
-
const restOfPath = pathParts.slice(1).map((part) => {
|
|
142143
|
-
if (part.includes("[") && part.includes("]")) {
|
|
142144
|
-
return part.split("[")[1].split("]")[0];
|
|
142145
|
-
}
|
|
142146
|
-
return part;
|
|
142147
|
-
});
|
|
142148
|
-
expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
|
|
142149
|
-
}
|
|
142247
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142150
142248
|
point.dynamicXValue = { path: selectedKey, value: expression };
|
|
142151
142249
|
point.xValue = expression;
|
|
142152
142250
|
closePopover();
|
|
@@ -142154,19 +142252,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142154
142252
|
}
|
|
142155
142253
|
if (field === "y") {
|
|
142156
142254
|
point.selectedYValue = currentValue;
|
|
142157
|
-
|
|
142158
|
-
|
|
142159
|
-
|
|
142160
|
-
|
|
142161
|
-
|
|
142162
|
-
|
|
142163
|
-
|
|
142164
|
-
|
|
142165
|
-
|
|
142166
|
-
|
|
142167
|
-
|
|
142168
|
-
|
|
142255
|
+
if (Array.isArray(currentValue) || typeof currentValue === "object" && currentValue !== null) {
|
|
142256
|
+
point.arrayConfig = {
|
|
142257
|
+
labelField: "",
|
|
142258
|
+
valueField: "",
|
|
142259
|
+
xField: "",
|
|
142260
|
+
yField: "",
|
|
142261
|
+
rField: ""
|
|
142262
|
+
};
|
|
142263
|
+
point.dynamicYValue = {
|
|
142264
|
+
path: selectedKey,
|
|
142265
|
+
value: ""
|
|
142266
|
+
};
|
|
142267
|
+
return;
|
|
142169
142268
|
}
|
|
142269
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142170
142270
|
point.dynamicYValue = { path: selectedKey, value: expression };
|
|
142171
142271
|
point.yValue = expression;
|
|
142172
142272
|
closePopover();
|
|
@@ -142174,19 +142274,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142174
142274
|
}
|
|
142175
142275
|
if (field === "r") {
|
|
142176
142276
|
point.selectedRValue = currentValue;
|
|
142177
|
-
|
|
142178
|
-
|
|
142179
|
-
|
|
142180
|
-
|
|
142181
|
-
|
|
142182
|
-
|
|
142183
|
-
|
|
142184
|
-
|
|
142185
|
-
|
|
142186
|
-
|
|
142187
|
-
|
|
142188
|
-
|
|
142277
|
+
if (Array.isArray(currentValue) || typeof currentValue === "object" && currentValue !== null) {
|
|
142278
|
+
point.arrayConfig = {
|
|
142279
|
+
labelField: "",
|
|
142280
|
+
valueField: "",
|
|
142281
|
+
xField: "",
|
|
142282
|
+
yField: "",
|
|
142283
|
+
rField: ""
|
|
142284
|
+
};
|
|
142285
|
+
point.dynamicRValue = {
|
|
142286
|
+
path: selectedKey,
|
|
142287
|
+
value: ""
|
|
142288
|
+
};
|
|
142289
|
+
return;
|
|
142189
142290
|
}
|
|
142291
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142190
142292
|
point.dynamicRValue = { path: selectedKey, value: expression };
|
|
142191
142293
|
point.rValue = expression;
|
|
142192
142294
|
closePopover();
|
|
@@ -142203,19 +142305,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142203
142305
|
value: ""
|
|
142204
142306
|
};
|
|
142205
142307
|
} else {
|
|
142206
|
-
const
|
|
142207
|
-
let expression = "";
|
|
142208
|
-
if (pathParts.length === 1) {
|
|
142209
|
-
expression = `{{${rootPart}}}`;
|
|
142210
|
-
} else {
|
|
142211
|
-
const restOfPath = pathParts.slice(1).map((part) => {
|
|
142212
|
-
if (part.includes("[") && part.includes("]")) {
|
|
142213
|
-
return part.split("[")[1].split("]")[0];
|
|
142214
|
-
}
|
|
142215
|
-
return part;
|
|
142216
|
-
});
|
|
142217
|
-
expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
|
|
142218
|
-
}
|
|
142308
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142219
142309
|
point.dynamicValue = {
|
|
142220
142310
|
path: selectedKey,
|
|
142221
142311
|
value: expression
|
|
@@ -142512,7 +142602,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142512
142602
|
onClose: _cache[16] || (_cache[16] = ($event) => unref(setComponentEditMode)(false))
|
|
142513
142603
|
}, {
|
|
142514
142604
|
footer: withCtx(() => [
|
|
142515
|
-
createElementVNode("div",
|
|
142605
|
+
createElementVNode("div", _hoisted_110, [
|
|
142516
142606
|
createVNode(CButton, { onClick: onCancel }, {
|
|
142517
142607
|
default: withCtx(() => [
|
|
142518
142608
|
createTextVNode(toDisplayString(unref(t)("canvasUI.common.cancel")), 1)
|
|
@@ -142628,14 +142718,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142628
142718
|
value: point.label,
|
|
142629
142719
|
"onUpdate:value": ($event) => point.label = $event,
|
|
142630
142720
|
class: "flex-1",
|
|
142631
|
-
disabled: !!point.arrayConfig,
|
|
142632
142721
|
placeholder: "Label"
|
|
142633
|
-
}, null, 8, ["value", "onUpdate:value"
|
|
142722
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
142634
142723
|
createVNode(unref(NInput), {
|
|
142635
142724
|
value: point.value,
|
|
142636
142725
|
"onUpdate:value": ($event) => point.value = $event,
|
|
142637
142726
|
class: "flex-1",
|
|
142638
|
-
disabled: !!point.dynamicValue,
|
|
142639
142727
|
placeholder: "Value",
|
|
142640
142728
|
type: "text"
|
|
142641
142729
|
}, {
|
|
@@ -142701,7 +142789,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142701
142789
|
}, 1032, ["show"])
|
|
142702
142790
|
]),
|
|
142703
142791
|
_: 2
|
|
142704
|
-
}, 1032, ["value", "onUpdate:value"
|
|
142792
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
142705
142793
|
createVNode(CButton, {
|
|
142706
142794
|
circle: "",
|
|
142707
142795
|
class: "bg-error2 self-center",
|
|
@@ -142730,14 +142818,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142730
142818
|
value: point.label,
|
|
142731
142819
|
"onUpdate:value": ($event) => point.label = $event,
|
|
142732
142820
|
class: "flex-1",
|
|
142733
|
-
disabled: !!point.arrayConfig,
|
|
142734
142821
|
placeholder: "Label"
|
|
142735
|
-
}, null, 8, ["value", "onUpdate:value"
|
|
142822
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
142736
142823
|
createVNode(unref(NInput), {
|
|
142737
142824
|
value: point.xValue,
|
|
142738
142825
|
"onUpdate:value": ($event) => point.xValue = $event,
|
|
142739
142826
|
class: "flex-1",
|
|
142740
|
-
disabled: !!point.dynamicXValue,
|
|
142741
142827
|
placeholder: "X Value",
|
|
142742
142828
|
type: "text"
|
|
142743
142829
|
}, {
|
|
@@ -142819,12 +142905,11 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142819
142905
|
}, 1032, ["show"])
|
|
142820
142906
|
]),
|
|
142821
142907
|
_: 2
|
|
142822
|
-
}, 1032, ["value", "onUpdate:value"
|
|
142908
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
142823
142909
|
createVNode(unref(NInput), {
|
|
142824
142910
|
value: point.yValue,
|
|
142825
142911
|
"onUpdate:value": ($event) => point.yValue = $event,
|
|
142826
142912
|
class: "flex-1",
|
|
142827
|
-
disabled: !!point.dynamicYValue,
|
|
142828
142913
|
placeholder: "Y Value",
|
|
142829
142914
|
type: "text"
|
|
142830
142915
|
}, {
|
|
@@ -142848,28 +142933,70 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142848
142933
|
]),
|
|
142849
142934
|
default: withCtx(() => [
|
|
142850
142935
|
createElementVNode("div", _hoisted_44$3, [
|
|
142851
|
-
createElementVNode("div", _hoisted_45$3,
|
|
142852
|
-
|
|
142853
|
-
|
|
142854
|
-
|
|
142855
|
-
|
|
142856
|
-
|
|
142857
|
-
|
|
142858
|
-
|
|
142859
|
-
|
|
142936
|
+
createElementVNode("div", _hoisted_45$3, [
|
|
142937
|
+
createElementVNode("div", _hoisted_46$3, [
|
|
142938
|
+
createElementVNode("div", _hoisted_47$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
|
|
142939
|
+
createElementVNode("div", _hoisted_48$3, [
|
|
142940
|
+
createVNode(unref(NTree), {
|
|
142941
|
+
"block-line": "",
|
|
142942
|
+
class: "max-h-[300px]",
|
|
142943
|
+
data: dynamicValueTreeData.value,
|
|
142944
|
+
"render-label": renderDynamicValueTreeLabel,
|
|
142945
|
+
"selected-keys": [point.dynamicYValue?.path ?? ""],
|
|
142946
|
+
"onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "y")
|
|
142947
|
+
}, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
|
|
142948
|
+
])
|
|
142949
|
+
]),
|
|
142950
|
+
point.selectedYValue && point.arrayConfig && isArrayOrObject(point.selectedYValue) ? (openBlock(), createElementBlock("div", _hoisted_49$3, [
|
|
142951
|
+
createElementVNode("div", _hoisted_50$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.configureArrayObjectFields")), 1),
|
|
142952
|
+
createElementVNode("div", _hoisted_51$2, [
|
|
142953
|
+
createElementVNode("div", null, [
|
|
142954
|
+
createElementVNode("label", _hoisted_52$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.labelField")), 1),
|
|
142955
|
+
createVNode(unref(NSelect), {
|
|
142956
|
+
value: point.arrayConfig.labelField,
|
|
142957
|
+
"onUpdate:value": [($event) => point.arrayConfig.labelField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142958
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142959
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142960
|
+
]),
|
|
142961
|
+
createElementVNode("div", null, [
|
|
142962
|
+
createElementVNode("label", _hoisted_53$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xValueField")), 1),
|
|
142963
|
+
createVNode(unref(NSelect), {
|
|
142964
|
+
value: point.arrayConfig.xField,
|
|
142965
|
+
"onUpdate:value": [($event) => point.arrayConfig.xField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142966
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142967
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142968
|
+
]),
|
|
142969
|
+
createElementVNode("div", null, [
|
|
142970
|
+
createElementVNode("label", _hoisted_54$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yValueField")), 1),
|
|
142971
|
+
createVNode(unref(NSelect), {
|
|
142972
|
+
value: point.arrayConfig.yField,
|
|
142973
|
+
"onUpdate:value": [($event) => point.arrayConfig.yField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142974
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142975
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142976
|
+
]),
|
|
142977
|
+
isActiveSeriesXYRChart.value ? (openBlock(), createElementBlock("div", _hoisted_55$1, [
|
|
142978
|
+
createElementVNode("label", _hoisted_56$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.rValueField")), 1),
|
|
142979
|
+
createVNode(unref(NSelect), {
|
|
142980
|
+
value: point.arrayConfig.rField,
|
|
142981
|
+
"onUpdate:value": [($event) => point.arrayConfig.rField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142982
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142983
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142984
|
+
])) : createCommentVNode("", true)
|
|
142985
|
+
])
|
|
142986
|
+
])) : createCommentVNode("", true)
|
|
142987
|
+
])
|
|
142860
142988
|
])
|
|
142861
142989
|
]),
|
|
142862
142990
|
_: 2
|
|
142863
142991
|
}, 1032, ["show"])
|
|
142864
142992
|
]),
|
|
142865
142993
|
_: 2
|
|
142866
|
-
}, 1032, ["value", "onUpdate:value"
|
|
142994
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
142867
142995
|
isActiveSeriesXYRChart.value ? (openBlock(), createBlock(unref(NInput), {
|
|
142868
142996
|
key: 0,
|
|
142869
142997
|
value: point.rValue,
|
|
142870
142998
|
"onUpdate:value": ($event) => point.rValue = $event,
|
|
142871
142999
|
class: "flex-1",
|
|
142872
|
-
disabled: !!point.dynamicRValue,
|
|
142873
143000
|
placeholder: "Size (R)",
|
|
142874
143001
|
type: "text"
|
|
142875
143002
|
}, {
|
|
@@ -142889,26 +143016,69 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142889
143016
|
class: normalizeClass(point.dynamicRValue ? "text-blue-500" : ""),
|
|
142890
143017
|
icon: "caret-down"
|
|
142891
143018
|
}, null, 8, ["class"])
|
|
142892
|
-
], 8,
|
|
143019
|
+
], 8, _hoisted_57$1)
|
|
142893
143020
|
]),
|
|
142894
143021
|
default: withCtx(() => [
|
|
142895
|
-
createElementVNode("div",
|
|
142896
|
-
createElementVNode("div",
|
|
142897
|
-
|
|
142898
|
-
|
|
142899
|
-
|
|
142900
|
-
|
|
142901
|
-
|
|
142902
|
-
|
|
142903
|
-
|
|
142904
|
-
|
|
143022
|
+
createElementVNode("div", _hoisted_58$1, [
|
|
143023
|
+
createElementVNode("div", _hoisted_59$1, [
|
|
143024
|
+
createElementVNode("div", _hoisted_60$1, [
|
|
143025
|
+
createElementVNode("div", _hoisted_61$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
|
|
143026
|
+
createElementVNode("div", _hoisted_62$1, [
|
|
143027
|
+
createVNode(unref(NTree), {
|
|
143028
|
+
"block-line": "",
|
|
143029
|
+
class: "max-h-[300px]",
|
|
143030
|
+
data: dynamicValueTreeData.value,
|
|
143031
|
+
"render-label": renderDynamicValueTreeLabel,
|
|
143032
|
+
"selected-keys": [point.dynamicRValue?.path ?? ""],
|
|
143033
|
+
"onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "r")
|
|
143034
|
+
}, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
|
|
143035
|
+
])
|
|
143036
|
+
]),
|
|
143037
|
+
point.selectedRValue && point.arrayConfig && isArrayOrObject(point.selectedRValue) ? (openBlock(), createElementBlock("div", _hoisted_63$1, [
|
|
143038
|
+
createElementVNode("div", _hoisted_64$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.configureArrayObjectFields")), 1),
|
|
143039
|
+
createElementVNode("div", _hoisted_65$1, [
|
|
143040
|
+
createElementVNode("div", null, [
|
|
143041
|
+
createElementVNode("label", _hoisted_66$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.labelField")), 1),
|
|
143042
|
+
createVNode(unref(NSelect), {
|
|
143043
|
+
value: point.arrayConfig.labelField,
|
|
143044
|
+
"onUpdate:value": [($event) => point.arrayConfig.labelField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143045
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143046
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143047
|
+
]),
|
|
143048
|
+
createElementVNode("div", null, [
|
|
143049
|
+
createElementVNode("label", _hoisted_67$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xValueField")), 1),
|
|
143050
|
+
createVNode(unref(NSelect), {
|
|
143051
|
+
value: point.arrayConfig.xField,
|
|
143052
|
+
"onUpdate:value": [($event) => point.arrayConfig.xField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143053
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143054
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143055
|
+
]),
|
|
143056
|
+
createElementVNode("div", null, [
|
|
143057
|
+
createElementVNode("label", _hoisted_68$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yValueField")), 1),
|
|
143058
|
+
createVNode(unref(NSelect), {
|
|
143059
|
+
value: point.arrayConfig.yField,
|
|
143060
|
+
"onUpdate:value": [($event) => point.arrayConfig.yField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143061
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143062
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143063
|
+
]),
|
|
143064
|
+
createElementVNode("div", null, [
|
|
143065
|
+
createElementVNode("label", _hoisted_69, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.rValueField")), 1),
|
|
143066
|
+
createVNode(unref(NSelect), {
|
|
143067
|
+
value: point.arrayConfig.rField,
|
|
143068
|
+
"onUpdate:value": [($event) => point.arrayConfig.rField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143069
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143070
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143071
|
+
])
|
|
143072
|
+
])
|
|
143073
|
+
])) : createCommentVNode("", true)
|
|
143074
|
+
])
|
|
142905
143075
|
])
|
|
142906
143076
|
]),
|
|
142907
143077
|
_: 2
|
|
142908
143078
|
}, 1032, ["show"])
|
|
142909
143079
|
]),
|
|
142910
143080
|
_: 2
|
|
142911
|
-
}, 1032, ["value", "onUpdate:value"
|
|
143081
|
+
}, 1032, ["value", "onUpdate:value"])) : createCommentVNode("", true),
|
|
142912
143082
|
createVNode(CButton, {
|
|
142913
143083
|
circle: "",
|
|
142914
143084
|
class: "bg-error2 self-center",
|
|
@@ -142929,7 +143099,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142929
143099
|
}, 1032, ["style", "onClick"])
|
|
142930
143100
|
]);
|
|
142931
143101
|
}), 128)),
|
|
142932
|
-
createElementVNode("div",
|
|
143102
|
+
createElementVNode("div", _hoisted_70, [
|
|
142933
143103
|
createVNode(CButton, {
|
|
142934
143104
|
class: "mt-2",
|
|
142935
143105
|
"icon-placement": "left",
|
|
@@ -142949,9 +143119,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142949
143119
|
})
|
|
142950
143120
|
])
|
|
142951
143121
|
]),
|
|
142952
|
-
createElementVNode("div",
|
|
142953
|
-
createElementVNode("div",
|
|
142954
|
-
createElementVNode("label",
|
|
143122
|
+
createElementVNode("div", _hoisted_71, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSettings")), 1),
|
|
143123
|
+
createElementVNode("div", _hoisted_72, [
|
|
143124
|
+
createElementVNode("label", _hoisted_73, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartTitle")), 1),
|
|
142955
143125
|
createVNode(unref(NInput), {
|
|
142956
143126
|
value: chartTitle.value,
|
|
142957
143127
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => chartTitle.value = $event),
|
|
@@ -142959,24 +143129,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142959
143129
|
}, null, 8, ["value"])
|
|
142960
143130
|
]),
|
|
142961
143131
|
["bar", "line"].includes(primaryChartType.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
142962
|
-
createElementVNode("div",
|
|
142963
|
-
createElementVNode("label",
|
|
143132
|
+
createElementVNode("div", _hoisted_74, [
|
|
143133
|
+
createElementVNode("label", _hoisted_75, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xAxisLabel")), 1),
|
|
142964
143134
|
createVNode(unref(NInput), {
|
|
142965
143135
|
value: xAxisLabel.value,
|
|
142966
143136
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => xAxisLabel.value = $event),
|
|
142967
143137
|
type: "text"
|
|
142968
143138
|
}, null, 8, ["value"])
|
|
142969
143139
|
]),
|
|
142970
|
-
createElementVNode("div",
|
|
142971
|
-
createElementVNode("label",
|
|
143140
|
+
createElementVNode("div", _hoisted_76, [
|
|
143141
|
+
createElementVNode("label", _hoisted_77, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yAxisLabel")), 1),
|
|
142972
143142
|
createVNode(unref(NInput), {
|
|
142973
143143
|
value: yAxisLabel.value,
|
|
142974
143144
|
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => yAxisLabel.value = $event),
|
|
142975
143145
|
type: "text"
|
|
142976
143146
|
}, null, 8, ["value"])
|
|
142977
143147
|
]),
|
|
142978
|
-
createElementVNode("div",
|
|
142979
|
-
createElementVNode("label",
|
|
143148
|
+
createElementVNode("div", _hoisted_78, [
|
|
143149
|
+
createElementVNode("label", _hoisted_79, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.orientation")), 1),
|
|
142980
143150
|
createVNode(unref(NSelect), {
|
|
142981
143151
|
value: orientation.value,
|
|
142982
143152
|
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => orientation.value = $event),
|
|
@@ -142984,24 +143154,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142984
143154
|
}, null, 8, ["value"])
|
|
142985
143155
|
])
|
|
142986
143156
|
], 64)) : createCommentVNode("", true),
|
|
142987
|
-
["pie", "doughnut", "polarArea"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div",
|
|
142988
|
-
createElementVNode("label",
|
|
143157
|
+
["pie", "doughnut", "polarArea"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_80, [
|
|
143158
|
+
createElementVNode("label", _hoisted_81, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.legendPosition")), 1),
|
|
142989
143159
|
createVNode(unref(NSelect), {
|
|
142990
143160
|
value: legendPosition.value,
|
|
142991
143161
|
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => legendPosition.value = $event),
|
|
142992
143162
|
options: legendPositionOptions
|
|
142993
143163
|
}, null, 8, ["value"])
|
|
142994
143164
|
])) : createCommentVNode("", true),
|
|
142995
|
-
["line", "scatter", "area"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div",
|
|
142996
|
-
createElementVNode("label",
|
|
143165
|
+
["line", "scatter", "area"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_82, [
|
|
143166
|
+
createElementVNode("label", _hoisted_83, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.pointStyle")), 1),
|
|
142997
143167
|
createVNode(unref(NSelect), {
|
|
142998
143168
|
value: pointStyle.value,
|
|
142999
143169
|
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => pointStyle.value = $event),
|
|
143000
143170
|
options: pointStyleOptions
|
|
143001
143171
|
}, null, 8, ["value"])
|
|
143002
143172
|
])) : createCommentVNode("", true),
|
|
143003
|
-
createElementVNode("div",
|
|
143004
|
-
createElementVNode("label",
|
|
143173
|
+
createElementVNode("div", _hoisted_84, [
|
|
143174
|
+
createElementVNode("label", _hoisted_85, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.colorScheme")), 1),
|
|
143005
143175
|
createVNode(unref(NSelect), {
|
|
143006
143176
|
value: colorSchemeType.value,
|
|
143007
143177
|
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => colorSchemeType.value = $event),
|
|
@@ -143021,32 +143191,32 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143021
143191
|
"onUpdate:palette": updateChartColors
|
|
143022
143192
|
}, null, 8, ["allow-add", "allow-delete", "allow-edit", "initial-palette"]))
|
|
143023
143193
|
]),
|
|
143024
|
-
createElementVNode("div",
|
|
143025
|
-
createElementVNode("label",
|
|
143194
|
+
createElementVNode("div", _hoisted_86, [
|
|
143195
|
+
createElementVNode("label", _hoisted_87, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.animation")), 1),
|
|
143026
143196
|
createVNode(unref(NSwitch), {
|
|
143027
143197
|
value: enableAnimation.value,
|
|
143028
143198
|
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => enableAnimation.value = $event)
|
|
143029
143199
|
}, null, 8, ["value"])
|
|
143030
143200
|
]),
|
|
143031
|
-
createElementVNode("div",
|
|
143032
|
-
createElementVNode("label",
|
|
143033
|
-
createElementVNode("div",
|
|
143201
|
+
createElementVNode("div", _hoisted_88, [
|
|
143202
|
+
createElementVNode("label", _hoisted_89, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplay")), 1),
|
|
143203
|
+
createElementVNode("div", _hoisted_90, [
|
|
143034
143204
|
createVNode(unref(NSwitch), {
|
|
143035
143205
|
value: percentDisplay.value,
|
|
143036
143206
|
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => percentDisplay.value = $event)
|
|
143037
143207
|
}, null, 8, ["value"]),
|
|
143038
|
-
createElementVNode("span",
|
|
143208
|
+
createElementVNode("span", _hoisted_91, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplayHint")), 1)
|
|
143039
143209
|
])
|
|
143040
143210
|
]),
|
|
143041
|
-
createElementVNode("div",
|
|
143042
|
-
createElementVNode("label",
|
|
143043
|
-
createElementVNode("div",
|
|
143044
|
-
createElementVNode("div",
|
|
143211
|
+
createElementVNode("div", _hoisted_92, [
|
|
143212
|
+
createElementVNode("label", _hoisted_93, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.viewModeControls")), 1),
|
|
143213
|
+
createElementVNode("div", _hoisted_94, [
|
|
143214
|
+
createElementVNode("div", _hoisted_95, [
|
|
143045
143215
|
createVNode(unref(NSwitch), {
|
|
143046
143216
|
value: enableFullscreenBtn.value,
|
|
143047
143217
|
"onUpdate:value": _cache[11] || (_cache[11] = ($event) => enableFullscreenBtn.value = $event)
|
|
143048
143218
|
}, null, 8, ["value"]),
|
|
143049
|
-
createElementVNode("span",
|
|
143219
|
+
createElementVNode("span", _hoisted_96, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableFullscreenBtn")), 1)
|
|
143050
143220
|
]),
|
|
143051
143221
|
createVNode(unref(NTooltip), {
|
|
143052
143222
|
disabled: !isMultiSeries.value,
|
|
@@ -143061,7 +143231,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143061
143231
|
"onUpdate:value": _cache[12] || (_cache[12] = ($event) => enableChartTypeSwitcher.value = $event),
|
|
143062
143232
|
disabled: isMultiSeries.value
|
|
143063
143233
|
}, null, 8, ["value", "disabled"]),
|
|
143064
|
-
createElementVNode("span",
|
|
143234
|
+
createElementVNode("span", _hoisted_97, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableChartTypeSwitcher")), 1)
|
|
143065
143235
|
], 2)
|
|
143066
143236
|
]),
|
|
143067
143237
|
default: withCtx(() => [
|
|
@@ -143069,20 +143239,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143069
143239
|
]),
|
|
143070
143240
|
_: 1
|
|
143071
143241
|
}, 8, ["disabled"]),
|
|
143072
|
-
createElementVNode("div",
|
|
143242
|
+
createElementVNode("div", _hoisted_98, [
|
|
143073
143243
|
createVNode(unref(NSwitch), {
|
|
143074
143244
|
value: enableDataEntry.value,
|
|
143075
143245
|
"onUpdate:value": _cache[13] || (_cache[13] = ($event) => enableDataEntry.value = $event)
|
|
143076
143246
|
}, null, 8, ["value"]),
|
|
143077
|
-
createElementVNode("span",
|
|
143247
|
+
createElementVNode("span", _hoisted_99, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableDataEntry")), 1)
|
|
143078
143248
|
])
|
|
143079
143249
|
])
|
|
143080
143250
|
]),
|
|
143081
|
-
createElementVNode("div",
|
|
143082
|
-
createElementVNode("label",
|
|
143083
|
-
createElementVNode("div",
|
|
143084
|
-
createElementVNode("div",
|
|
143085
|
-
createElementVNode("label",
|
|
143251
|
+
createElementVNode("div", _hoisted_100, [
|
|
143252
|
+
createElementVNode("label", _hoisted_101, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSize")), 1),
|
|
143253
|
+
createElementVNode("div", _hoisted_102, [
|
|
143254
|
+
createElementVNode("div", _hoisted_103, [
|
|
143255
|
+
createElementVNode("label", _hoisted_104, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.height")), 1),
|
|
143086
143256
|
createVNode(unref(NInputNumber), {
|
|
143087
143257
|
value: chartHeight.value,
|
|
143088
143258
|
"onUpdate:value": _cache[14] || (_cache[14] = ($event) => chartHeight.value = $event),
|
|
@@ -143097,8 +143267,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143097
143267
|
_: 1
|
|
143098
143268
|
}, 8, ["value"])
|
|
143099
143269
|
]),
|
|
143100
|
-
createElementVNode("div",
|
|
143101
|
-
createElementVNode("label",
|
|
143270
|
+
createElementVNode("div", _hoisted_105, [
|
|
143271
|
+
createElementVNode("label", _hoisted_106, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.width")), 1),
|
|
143102
143272
|
createVNode(unref(NInputNumber), {
|
|
143103
143273
|
value: chartWidth.value,
|
|
143104
143274
|
"onUpdate:value": _cache[15] || (_cache[15] = ($event) => chartWidth.value = $event),
|
|
@@ -143118,9 +143288,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143118
143288
|
])
|
|
143119
143289
|
])
|
|
143120
143290
|
]),
|
|
143121
|
-
createElementVNode("div",
|
|
143122
|
-
createElementVNode("div",
|
|
143123
|
-
createElementVNode("div",
|
|
143291
|
+
createElementVNode("div", _hoisted_107, [
|
|
143292
|
+
createElementVNode("div", _hoisted_108, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
|
|
143293
|
+
createElementVNode("div", _hoisted_109, [
|
|
143124
143294
|
createVNode(unref(NCard), { bordered: false }, {
|
|
143125
143295
|
default: withCtx(() => [
|
|
143126
143296
|
(openBlock(), createBlock(RawDataCharts, {
|