@pitcher/canvas-ui 2025.12.11-123953-beta → 2025.12.11-125833
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 +374 -216
- 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,20 +95229,14 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
95227
95229
|
if (!searchQuery.value || searchQuery.value.trim() === "/") {
|
|
95228
95230
|
return "";
|
|
95229
95231
|
}
|
|
95230
|
-
|
|
95231
|
-
|
|
95232
|
+
if (!item._snippetResult?.searchable_content?.value) {
|
|
95233
|
+
return "";
|
|
95234
|
+
}
|
|
95232
95235
|
const nameMatched = item._highlightResult?.name?.matchLevel && item._highlightResult.name.matchLevel !== "none";
|
|
95233
95236
|
if (nameMatched) {
|
|
95234
95237
|
return "";
|
|
95235
95238
|
}
|
|
95236
|
-
|
|
95237
|
-
if (emIndex === -1) return "";
|
|
95238
|
-
const startChar = Math.max(0, emIndex - 100);
|
|
95239
|
-
const endChar = Math.min(highlightValue.length, emIndex + 100);
|
|
95240
|
-
let truncated = highlightValue.substring(startChar, endChar);
|
|
95241
|
-
if (startChar > 0) truncated = "..." + truncated;
|
|
95242
|
-
if (endChar < highlightValue.length) truncated = truncated + "...";
|
|
95243
|
-
return sanitizeHtml(truncated);
|
|
95239
|
+
return sanitizeHtml(item._snippetResult.searchable_content.value);
|
|
95244
95240
|
};
|
|
95245
95241
|
const toggleCanvasFilter = (filterType) => {
|
|
95246
95242
|
if (selectedCanvasFilters.value.includes(filterType)) {
|
|
@@ -96041,7 +96037,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
|
|
|
96041
96037
|
}
|
|
96042
96038
|
});
|
|
96043
96039
|
|
|
96044
|
-
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-
|
|
96040
|
+
const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-8069f2b2"]]);
|
|
96045
96041
|
|
|
96046
96042
|
const BulletListExtended = BulletList.extend({
|
|
96047
96043
|
addOptions() {
|
|
@@ -141651,61 +141647,88 @@ const _hoisted_40$3 = { class: "block mb-1 text-sm" };
|
|
|
141651
141647
|
const _hoisted_41$3 = { key: 0 };
|
|
141652
141648
|
const _hoisted_42$3 = { class: "block mb-1 text-sm" };
|
|
141653
141649
|
const _hoisted_43$3 = ["onClick"];
|
|
141654
|
-
const _hoisted_44$3 = { class: "p-4 min-w-[400px] max-h-[400px]
|
|
141655
|
-
const _hoisted_45$3 = { class: "
|
|
141656
|
-
const _hoisted_46$3 =
|
|
141657
|
-
const _hoisted_47$3 = { class: "
|
|
141658
|
-
const _hoisted_48$3 = { class: "
|
|
141659
|
-
const _hoisted_49$3 = {
|
|
141660
|
-
|
|
141661
|
-
|
|
141662
|
-
|
|
141663
|
-
const
|
|
141664
|
-
const
|
|
141665
|
-
const
|
|
141666
|
-
const
|
|
141667
|
-
const
|
|
141668
|
-
const
|
|
141669
|
-
const
|
|
141650
|
+
const _hoisted_44$3 = { class: "p-4 min-w-[400px] max-h-[400px]" };
|
|
141651
|
+
const _hoisted_45$3 = { class: "flex gap-4 h-full" };
|
|
141652
|
+
const _hoisted_46$3 = { class: "flex-1 flex flex-col" };
|
|
141653
|
+
const _hoisted_47$3 = { class: "text-sm mb-2" };
|
|
141654
|
+
const _hoisted_48$3 = { class: "overflow-auto" };
|
|
141655
|
+
const _hoisted_49$3 = {
|
|
141656
|
+
key: 0,
|
|
141657
|
+
class: "flex-1 border-l pl-4"
|
|
141658
|
+
};
|
|
141659
|
+
const _hoisted_50$3 = { class: "text-sm font-medium mb-2" };
|
|
141660
|
+
const _hoisted_51$2 = { class: "flex flex-col gap-2" };
|
|
141661
|
+
const _hoisted_52$2 = { class: "block mb-1 text-sm" };
|
|
141662
|
+
const _hoisted_53$2 = { class: "block mb-1 text-sm" };
|
|
141663
|
+
const _hoisted_54$1 = { class: "block mb-1 text-sm" };
|
|
141664
|
+
const _hoisted_55$1 = { key: 0 };
|
|
141665
|
+
const _hoisted_56$1 = { class: "block mb-1 text-sm" };
|
|
141666
|
+
const _hoisted_57$1 = ["onClick"];
|
|
141667
|
+
const _hoisted_58$1 = { class: "p-4 min-w-[400px] max-h-[400px]" };
|
|
141668
|
+
const _hoisted_59$1 = { class: "flex gap-4 h-full" };
|
|
141669
|
+
const _hoisted_60$1 = { class: "flex-1 flex flex-col" };
|
|
141670
|
+
const _hoisted_61$1 = { class: "text-sm mb-2" };
|
|
141671
|
+
const _hoisted_62$1 = { class: "overflow-auto" };
|
|
141672
|
+
const _hoisted_63$1 = {
|
|
141673
|
+
key: 0,
|
|
141674
|
+
class: "flex-1 border-l pl-4"
|
|
141675
|
+
};
|
|
141676
|
+
const _hoisted_64$1 = { class: "text-sm font-medium mb-2" };
|
|
141677
|
+
const _hoisted_65$1 = { class: "flex flex-col gap-2" };
|
|
141678
|
+
const _hoisted_66$1 = { class: "block mb-1 text-sm" };
|
|
141679
|
+
const _hoisted_67$1 = { class: "block mb-1 text-sm" };
|
|
141680
|
+
const _hoisted_68$1 = { class: "block mb-1 text-sm" };
|
|
141681
|
+
const _hoisted_69 = { class: "block mb-1 text-sm" };
|
|
141682
|
+
const _hoisted_70 = { class: "flex justify-center mt-2" };
|
|
141683
|
+
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" };
|
|
141684
|
+
const _hoisted_72 = { class: "mb-4" };
|
|
141685
|
+
const _hoisted_73 = { class: "block mb-2" };
|
|
141686
|
+
const _hoisted_74 = { class: "mb-4" };
|
|
141687
|
+
const _hoisted_75 = { class: "block mb-2" };
|
|
141688
|
+
const _hoisted_76 = { class: "mb-4" };
|
|
141689
|
+
const _hoisted_77 = { class: "block mb-2" };
|
|
141690
|
+
const _hoisted_78 = { class: "mb-4" };
|
|
141691
|
+
const _hoisted_79 = { class: "block mb-2" };
|
|
141692
|
+
const _hoisted_80 = {
|
|
141670
141693
|
key: 2,
|
|
141671
141694
|
class: "mb-4"
|
|
141672
141695
|
};
|
|
141673
|
-
const
|
|
141674
|
-
const
|
|
141696
|
+
const _hoisted_81 = { class: "block mb-2" };
|
|
141697
|
+
const _hoisted_82 = {
|
|
141675
141698
|
key: 3,
|
|
141676
141699
|
class: "mb-4"
|
|
141677
141700
|
};
|
|
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
|
|
141699
|
-
const
|
|
141700
|
-
const
|
|
141701
|
-
const
|
|
141702
|
-
const
|
|
141703
|
-
const
|
|
141704
|
-
const
|
|
141701
|
+
const _hoisted_83 = { class: "block mb-2" };
|
|
141702
|
+
const _hoisted_84 = { class: "mb-4" };
|
|
141703
|
+
const _hoisted_85 = { class: "block mb-2" };
|
|
141704
|
+
const _hoisted_86 = { class: "mb-4" };
|
|
141705
|
+
const _hoisted_87 = { class: "block mb-2" };
|
|
141706
|
+
const _hoisted_88 = { class: "mb-4" };
|
|
141707
|
+
const _hoisted_89 = { class: "block mb-2" };
|
|
141708
|
+
const _hoisted_90 = { class: "flex items-center gap-2" };
|
|
141709
|
+
const _hoisted_91 = { class: "text-sm text-gray-500" };
|
|
141710
|
+
const _hoisted_92 = { class: "mb-4" };
|
|
141711
|
+
const _hoisted_93 = { class: "block mb-2" };
|
|
141712
|
+
const _hoisted_94 = { class: "flex flex-col gap-2" };
|
|
141713
|
+
const _hoisted_95 = { class: "flex items-center gap-2" };
|
|
141714
|
+
const _hoisted_96 = { class: "text-sm" };
|
|
141715
|
+
const _hoisted_97 = { class: "text-sm" };
|
|
141716
|
+
const _hoisted_98 = { class: "flex items-center gap-2" };
|
|
141717
|
+
const _hoisted_99 = { class: "text-sm" };
|
|
141718
|
+
const _hoisted_100 = { class: "mb-4" };
|
|
141719
|
+
const _hoisted_101 = { class: "block mb-2" };
|
|
141720
|
+
const _hoisted_102 = { class: "flex flex-col gap-3" };
|
|
141721
|
+
const _hoisted_103 = { class: "flex items-center gap-2" };
|
|
141722
|
+
const _hoisted_104 = { class: "text-sm w-16" };
|
|
141723
|
+
const _hoisted_105 = { class: "flex items-center gap-2" };
|
|
141724
|
+
const _hoisted_106 = { class: "text-sm w-16" };
|
|
141725
|
+
const _hoisted_107 = { class: "cb-data-charts-settings__preview flex-1 border-l border-[#eee] pl-4" };
|
|
141726
|
+
const _hoisted_108 = { class: "text-sm font-medium mb-4" };
|
|
141727
|
+
const _hoisted_109 = {
|
|
141705
141728
|
class: "preview-container",
|
|
141706
141729
|
style: { "height": "300px" }
|
|
141707
141730
|
};
|
|
141708
|
-
const
|
|
141731
|
+
const _hoisted_110 = { class: "flex justify-between gap-4" };
|
|
141709
141732
|
const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
141710
141733
|
__name: "DataCharts.settings",
|
|
141711
141734
|
props: {
|
|
@@ -141950,6 +141973,46 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141950
141973
|
function isArrayOrObject(value) {
|
|
141951
141974
|
return Array.isArray(value) || typeof value === "object" && value !== null;
|
|
141952
141975
|
}
|
|
141976
|
+
function parsePathIntoParts(path) {
|
|
141977
|
+
const parts = [];
|
|
141978
|
+
let current = "";
|
|
141979
|
+
for (let i = 0; i < path.length; i++) {
|
|
141980
|
+
const char = path[i];
|
|
141981
|
+
if (char === ".") {
|
|
141982
|
+
if (current) {
|
|
141983
|
+
parts.push(current);
|
|
141984
|
+
current = "";
|
|
141985
|
+
}
|
|
141986
|
+
} else if (char === "[") {
|
|
141987
|
+
if (current) {
|
|
141988
|
+
parts.push(current);
|
|
141989
|
+
current = "";
|
|
141990
|
+
}
|
|
141991
|
+
const closingIdx = path.indexOf("]", i);
|
|
141992
|
+
if (closingIdx !== -1) {
|
|
141993
|
+
parts.push(path.substring(i, closingIdx + 1));
|
|
141994
|
+
i = closingIdx;
|
|
141995
|
+
}
|
|
141996
|
+
} else {
|
|
141997
|
+
current += char;
|
|
141998
|
+
}
|
|
141999
|
+
}
|
|
142000
|
+
if (current) {
|
|
142001
|
+
parts.push(current);
|
|
142002
|
+
}
|
|
142003
|
+
return parts;
|
|
142004
|
+
}
|
|
142005
|
+
function convertBracketsToDotsPath(path) {
|
|
142006
|
+
if (!path) return "";
|
|
142007
|
+
if (!path.includes("[")) return path;
|
|
142008
|
+
const convertedPath = path.replace(/\[(\d+)\]/g, ".$1");
|
|
142009
|
+
return convertedPath.startsWith(".") ? convertedPath.slice(1) : convertedPath;
|
|
142010
|
+
}
|
|
142011
|
+
function generateHandlebarsExpression(path) {
|
|
142012
|
+
if (!path) return "";
|
|
142013
|
+
const cleanPath = convertBracketsToDotsPath(path);
|
|
142014
|
+
return `{{${cleanPath}}}`;
|
|
142015
|
+
}
|
|
141953
142016
|
function getFieldOptions(data) {
|
|
141954
142017
|
if (!data || typeof data !== "object") return [];
|
|
141955
142018
|
const firstItem = Array.isArray(data) ? data[0] : data;
|
|
@@ -141967,8 +142030,15 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141967
142030
|
if (!path) {
|
|
141968
142031
|
return;
|
|
141969
142032
|
}
|
|
141970
|
-
|
|
141971
|
-
|
|
142033
|
+
const isArray = Array.isArray(point.selectedValue);
|
|
142034
|
+
if (isArray) {
|
|
142035
|
+
point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142036
|
+
point.value = `{{#each ${path}}}{{lookup this "${point.arrayConfig.valueField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142037
|
+
} else {
|
|
142038
|
+
const cleanPath = convertBracketsToDotsPath(path);
|
|
142039
|
+
point.label = `{{${cleanPath}.${point.arrayConfig.labelField}}}`;
|
|
142040
|
+
point.value = `{{${cleanPath}.${point.arrayConfig.valueField}}}`;
|
|
142041
|
+
}
|
|
141972
142042
|
point.dynamicValue = {
|
|
141973
142043
|
path,
|
|
141974
142044
|
value: point.value
|
|
@@ -141976,20 +142046,53 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141976
142046
|
closePopover();
|
|
141977
142047
|
}
|
|
141978
142048
|
function updateXYDynamicValueExpression(point) {
|
|
141979
|
-
if (!point.
|
|
142049
|
+
if (!point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
|
|
141980
142050
|
return;
|
|
141981
142051
|
}
|
|
141982
142052
|
const isBubble = isActiveSeriesXYRChart.value;
|
|
141983
142053
|
if (isBubble && !point.arrayConfig?.rField) {
|
|
141984
142054
|
return;
|
|
141985
142055
|
}
|
|
141986
|
-
|
|
141987
|
-
|
|
142056
|
+
let selectedValue = null;
|
|
142057
|
+
let path = void 0;
|
|
142058
|
+
if (point.selectedXValue && isArrayOrObject(point.selectedXValue)) {
|
|
142059
|
+
selectedValue = point.selectedXValue;
|
|
142060
|
+
path = point.dynamicXValue?.path;
|
|
142061
|
+
} else if (point.selectedYValue && isArrayOrObject(point.selectedYValue)) {
|
|
142062
|
+
selectedValue = point.selectedYValue;
|
|
142063
|
+
path = point.dynamicYValue?.path;
|
|
142064
|
+
} else if (point.selectedRValue && isArrayOrObject(point.selectedRValue)) {
|
|
142065
|
+
selectedValue = point.selectedRValue;
|
|
142066
|
+
path = point.dynamicRValue?.path;
|
|
142067
|
+
}
|
|
142068
|
+
if (!selectedValue || !path) {
|
|
141988
142069
|
return;
|
|
141989
142070
|
}
|
|
141990
|
-
|
|
141991
|
-
|
|
141992
|
-
|
|
142071
|
+
const isArray = Array.isArray(selectedValue);
|
|
142072
|
+
if (isArray) {
|
|
142073
|
+
point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142074
|
+
point.xValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.xField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142075
|
+
point.yValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.yField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142076
|
+
if (isBubble && point.arrayConfig.rField) {
|
|
142077
|
+
point.rValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.rField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142078
|
+
point.dynamicRValue = {
|
|
142079
|
+
path,
|
|
142080
|
+
value: point.rValue
|
|
142081
|
+
};
|
|
142082
|
+
}
|
|
142083
|
+
} else {
|
|
142084
|
+
const cleanPath = convertBracketsToDotsPath(path);
|
|
142085
|
+
point.label = `{{${cleanPath}.${point.arrayConfig.labelField}}}`;
|
|
142086
|
+
point.xValue = `{{${cleanPath}.${point.arrayConfig.xField}}}`;
|
|
142087
|
+
point.yValue = `{{${cleanPath}.${point.arrayConfig.yField}}}`;
|
|
142088
|
+
if (isBubble && point.arrayConfig.rField) {
|
|
142089
|
+
point.rValue = `{{${cleanPath}.${point.arrayConfig.rField}}}`;
|
|
142090
|
+
point.dynamicRValue = {
|
|
142091
|
+
path,
|
|
142092
|
+
value: point.rValue
|
|
142093
|
+
};
|
|
142094
|
+
}
|
|
142095
|
+
}
|
|
141993
142096
|
point.dynamicXValue = {
|
|
141994
142097
|
path,
|
|
141995
142098
|
value: point.xValue
|
|
@@ -141998,37 +142101,40 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
141998
142101
|
path,
|
|
141999
142102
|
value: point.yValue
|
|
142000
142103
|
};
|
|
142001
|
-
if (isBubble && point.arrayConfig.rField) {
|
|
142002
|
-
point.rValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.rField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
|
|
142003
|
-
point.dynamicRValue = {
|
|
142004
|
-
path,
|
|
142005
|
-
value: point.rValue
|
|
142006
|
-
};
|
|
142007
|
-
}
|
|
142008
142104
|
closePopover();
|
|
142009
142105
|
}
|
|
142010
142106
|
const dynamicValueTreeData = computed(() => {
|
|
142011
|
-
function
|
|
142107
|
+
function buildPathString(pathParts) {
|
|
142108
|
+
return pathParts.reduce((acc, part, index) => {
|
|
142109
|
+
if (part.startsWith("[")) {
|
|
142110
|
+
return acc + part;
|
|
142111
|
+
}
|
|
142112
|
+
return index === 0 ? part : `${acc}.${part}`;
|
|
142113
|
+
}, "");
|
|
142114
|
+
}
|
|
142115
|
+
function processObject(obj, pathParts = []) {
|
|
142012
142116
|
const result = [];
|
|
142013
142117
|
for (const key in obj) {
|
|
142014
142118
|
if (key === "[[Prototype]]") continue;
|
|
142015
142119
|
const value = obj[key];
|
|
142016
|
-
const
|
|
142017
|
-
const pathString =
|
|
142120
|
+
const currentPathParts = [...pathParts, key];
|
|
142121
|
+
const pathString = buildPathString(currentPathParts);
|
|
142018
142122
|
if (Array.isArray(value)) {
|
|
142019
142123
|
const arrayNode = {
|
|
142020
142124
|
key: pathString,
|
|
142021
142125
|
label: key,
|
|
142022
142126
|
children: value.map((item, index) => {
|
|
142127
|
+
const arrayItemPath = [...currentPathParts.slice(0, -1), `${key}[${index}]`];
|
|
142128
|
+
const arrayItemPathString = buildPathString(arrayItemPath);
|
|
142023
142129
|
if (typeof item === "object" && item !== null) {
|
|
142024
142130
|
return {
|
|
142025
|
-
key:
|
|
142131
|
+
key: arrayItemPathString,
|
|
142026
142132
|
label: `[${index}]`,
|
|
142027
|
-
children: processObject(item,
|
|
142133
|
+
children: processObject(item, arrayItemPath)
|
|
142028
142134
|
};
|
|
142029
142135
|
}
|
|
142030
142136
|
return {
|
|
142031
|
-
key:
|
|
142137
|
+
key: arrayItemPathString,
|
|
142032
142138
|
label: `[${index}]: ${item}`,
|
|
142033
142139
|
isLeaf: true
|
|
142034
142140
|
};
|
|
@@ -142039,7 +142145,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142039
142145
|
result.push({
|
|
142040
142146
|
key: pathString,
|
|
142041
142147
|
label: key,
|
|
142042
|
-
children: processObject(value,
|
|
142148
|
+
children: processObject(value, currentPathParts)
|
|
142043
142149
|
});
|
|
142044
142150
|
} else {
|
|
142045
142151
|
result.push({
|
|
@@ -142065,25 +142171,18 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142065
142171
|
point.selectedValue = void 0;
|
|
142066
142172
|
point.dynamicValue = void 0;
|
|
142067
142173
|
point.arrayConfig = void 0;
|
|
142068
|
-
point.value = "";
|
|
142069
142174
|
} else if (field === "x") {
|
|
142070
142175
|
point.selectedXValue = void 0;
|
|
142071
142176
|
point.dynamicXValue = void 0;
|
|
142072
|
-
point.dynamicYValue = void 0;
|
|
142073
|
-
point.dynamicRValue = void 0;
|
|
142074
142177
|
point.arrayConfig = void 0;
|
|
142075
|
-
point.xValue = "";
|
|
142076
|
-
point.yValue = "";
|
|
142077
|
-
point.rValue = "";
|
|
142078
|
-
point.label = "";
|
|
142079
142178
|
} else if (field === "y") {
|
|
142080
142179
|
point.selectedYValue = void 0;
|
|
142081
142180
|
point.dynamicYValue = void 0;
|
|
142082
|
-
point.
|
|
142181
|
+
point.arrayConfig = void 0;
|
|
142083
142182
|
} else if (field === "r") {
|
|
142084
142183
|
point.selectedRValue = void 0;
|
|
142085
142184
|
point.dynamicRValue = void 0;
|
|
142086
|
-
point.
|
|
142185
|
+
point.arrayConfig = void 0;
|
|
142087
142186
|
}
|
|
142088
142187
|
activePopoverPoint.value = point;
|
|
142089
142188
|
activePopoverField.value = field;
|
|
@@ -142112,14 +142211,13 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142112
142211
|
closePopover();
|
|
142113
142212
|
return;
|
|
142114
142213
|
}
|
|
142115
|
-
const pathParts = selectedKey
|
|
142214
|
+
const pathParts = parsePathIntoParts(selectedKey);
|
|
142116
142215
|
let currentValue = crmShape.value;
|
|
142117
142216
|
for (const part of pathParts) {
|
|
142118
142217
|
if (!currentValue) break;
|
|
142119
|
-
if (part.
|
|
142120
|
-
const
|
|
142121
|
-
|
|
142122
|
-
currentValue = currentValue?.[arrayPath]?.[index];
|
|
142218
|
+
if (part.startsWith("[") && part.endsWith("]")) {
|
|
142219
|
+
const index = parseInt(part.slice(1, -1));
|
|
142220
|
+
currentValue = currentValue?.[index];
|
|
142123
142221
|
} else {
|
|
142124
142222
|
currentValue = currentValue?.[part];
|
|
142125
142223
|
}
|
|
@@ -142140,19 +142238,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142140
142238
|
};
|
|
142141
142239
|
return;
|
|
142142
142240
|
}
|
|
142143
|
-
const
|
|
142144
|
-
let expression = "";
|
|
142145
|
-
if (pathParts.length === 1) {
|
|
142146
|
-
expression = `{{${rootPart}}}`;
|
|
142147
|
-
} else {
|
|
142148
|
-
const restOfPath = pathParts.slice(1).map((part) => {
|
|
142149
|
-
if (part.includes("[") && part.includes("]")) {
|
|
142150
|
-
return part.split("[")[1].split("]")[0];
|
|
142151
|
-
}
|
|
142152
|
-
return part;
|
|
142153
|
-
});
|
|
142154
|
-
expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
|
|
142155
|
-
}
|
|
142241
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142156
142242
|
point.dynamicXValue = { path: selectedKey, value: expression };
|
|
142157
142243
|
point.xValue = expression;
|
|
142158
142244
|
closePopover();
|
|
@@ -142160,19 +142246,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142160
142246
|
}
|
|
142161
142247
|
if (field === "y") {
|
|
142162
142248
|
point.selectedYValue = currentValue;
|
|
142163
|
-
|
|
142164
|
-
|
|
142165
|
-
|
|
142166
|
-
|
|
142167
|
-
|
|
142168
|
-
|
|
142169
|
-
|
|
142170
|
-
|
|
142171
|
-
|
|
142172
|
-
|
|
142173
|
-
|
|
142174
|
-
|
|
142249
|
+
if (Array.isArray(currentValue) || typeof currentValue === "object" && currentValue !== null) {
|
|
142250
|
+
point.arrayConfig = {
|
|
142251
|
+
labelField: "",
|
|
142252
|
+
valueField: "",
|
|
142253
|
+
xField: "",
|
|
142254
|
+
yField: "",
|
|
142255
|
+
rField: ""
|
|
142256
|
+
};
|
|
142257
|
+
point.dynamicYValue = {
|
|
142258
|
+
path: selectedKey,
|
|
142259
|
+
value: ""
|
|
142260
|
+
};
|
|
142261
|
+
return;
|
|
142175
142262
|
}
|
|
142263
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142176
142264
|
point.dynamicYValue = { path: selectedKey, value: expression };
|
|
142177
142265
|
point.yValue = expression;
|
|
142178
142266
|
closePopover();
|
|
@@ -142180,19 +142268,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142180
142268
|
}
|
|
142181
142269
|
if (field === "r") {
|
|
142182
142270
|
point.selectedRValue = currentValue;
|
|
142183
|
-
|
|
142184
|
-
|
|
142185
|
-
|
|
142186
|
-
|
|
142187
|
-
|
|
142188
|
-
|
|
142189
|
-
|
|
142190
|
-
|
|
142191
|
-
|
|
142192
|
-
|
|
142193
|
-
|
|
142194
|
-
|
|
142271
|
+
if (Array.isArray(currentValue) || typeof currentValue === "object" && currentValue !== null) {
|
|
142272
|
+
point.arrayConfig = {
|
|
142273
|
+
labelField: "",
|
|
142274
|
+
valueField: "",
|
|
142275
|
+
xField: "",
|
|
142276
|
+
yField: "",
|
|
142277
|
+
rField: ""
|
|
142278
|
+
};
|
|
142279
|
+
point.dynamicRValue = {
|
|
142280
|
+
path: selectedKey,
|
|
142281
|
+
value: ""
|
|
142282
|
+
};
|
|
142283
|
+
return;
|
|
142195
142284
|
}
|
|
142285
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142196
142286
|
point.dynamicRValue = { path: selectedKey, value: expression };
|
|
142197
142287
|
point.rValue = expression;
|
|
142198
142288
|
closePopover();
|
|
@@ -142209,19 +142299,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142209
142299
|
value: ""
|
|
142210
142300
|
};
|
|
142211
142301
|
} else {
|
|
142212
|
-
const
|
|
142213
|
-
let expression = "";
|
|
142214
|
-
if (pathParts.length === 1) {
|
|
142215
|
-
expression = `{{${rootPart}}}`;
|
|
142216
|
-
} else {
|
|
142217
|
-
const restOfPath = pathParts.slice(1).map((part) => {
|
|
142218
|
-
if (part.includes("[") && part.includes("]")) {
|
|
142219
|
-
return part.split("[")[1].split("]")[0];
|
|
142220
|
-
}
|
|
142221
|
-
return part;
|
|
142222
|
-
});
|
|
142223
|
-
expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
|
|
142224
|
-
}
|
|
142302
|
+
const expression = generateHandlebarsExpression(selectedKey);
|
|
142225
142303
|
point.dynamicValue = {
|
|
142226
142304
|
path: selectedKey,
|
|
142227
142305
|
value: expression
|
|
@@ -142518,7 +142596,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142518
142596
|
onClose: _cache[16] || (_cache[16] = ($event) => unref(setComponentEditMode)(false))
|
|
142519
142597
|
}, {
|
|
142520
142598
|
footer: withCtx(() => [
|
|
142521
|
-
createElementVNode("div",
|
|
142599
|
+
createElementVNode("div", _hoisted_110, [
|
|
142522
142600
|
createVNode(CButton, { onClick: onCancel }, {
|
|
142523
142601
|
default: withCtx(() => [
|
|
142524
142602
|
createTextVNode(toDisplayString(unref(t)("canvasUI.common.cancel")), 1)
|
|
@@ -142634,14 +142712,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142634
142712
|
value: point.label,
|
|
142635
142713
|
"onUpdate:value": ($event) => point.label = $event,
|
|
142636
142714
|
class: "flex-1",
|
|
142637
|
-
disabled: !!point.arrayConfig,
|
|
142638
142715
|
placeholder: "Label"
|
|
142639
|
-
}, null, 8, ["value", "onUpdate:value"
|
|
142716
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
142640
142717
|
createVNode(unref(NInput), {
|
|
142641
142718
|
value: point.value,
|
|
142642
142719
|
"onUpdate:value": ($event) => point.value = $event,
|
|
142643
142720
|
class: "flex-1",
|
|
142644
|
-
disabled: !!point.dynamicValue,
|
|
142645
142721
|
placeholder: "Value",
|
|
142646
142722
|
type: "text"
|
|
142647
142723
|
}, {
|
|
@@ -142707,7 +142783,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142707
142783
|
}, 1032, ["show"])
|
|
142708
142784
|
]),
|
|
142709
142785
|
_: 2
|
|
142710
|
-
}, 1032, ["value", "onUpdate:value"
|
|
142786
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
142711
142787
|
createVNode(CButton, {
|
|
142712
142788
|
circle: "",
|
|
142713
142789
|
class: "bg-error2 self-center",
|
|
@@ -142736,14 +142812,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142736
142812
|
value: point.label,
|
|
142737
142813
|
"onUpdate:value": ($event) => point.label = $event,
|
|
142738
142814
|
class: "flex-1",
|
|
142739
|
-
disabled: !!point.arrayConfig,
|
|
142740
142815
|
placeholder: "Label"
|
|
142741
|
-
}, null, 8, ["value", "onUpdate:value"
|
|
142816
|
+
}, null, 8, ["value", "onUpdate:value"]),
|
|
142742
142817
|
createVNode(unref(NInput), {
|
|
142743
142818
|
value: point.xValue,
|
|
142744
142819
|
"onUpdate:value": ($event) => point.xValue = $event,
|
|
142745
142820
|
class: "flex-1",
|
|
142746
|
-
disabled: !!point.dynamicXValue,
|
|
142747
142821
|
placeholder: "X Value",
|
|
142748
142822
|
type: "text"
|
|
142749
142823
|
}, {
|
|
@@ -142825,12 +142899,11 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142825
142899
|
}, 1032, ["show"])
|
|
142826
142900
|
]),
|
|
142827
142901
|
_: 2
|
|
142828
|
-
}, 1032, ["value", "onUpdate:value"
|
|
142902
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
142829
142903
|
createVNode(unref(NInput), {
|
|
142830
142904
|
value: point.yValue,
|
|
142831
142905
|
"onUpdate:value": ($event) => point.yValue = $event,
|
|
142832
142906
|
class: "flex-1",
|
|
142833
|
-
disabled: !!point.dynamicYValue,
|
|
142834
142907
|
placeholder: "Y Value",
|
|
142835
142908
|
type: "text"
|
|
142836
142909
|
}, {
|
|
@@ -142854,28 +142927,70 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142854
142927
|
]),
|
|
142855
142928
|
default: withCtx(() => [
|
|
142856
142929
|
createElementVNode("div", _hoisted_44$3, [
|
|
142857
|
-
createElementVNode("div", _hoisted_45$3,
|
|
142858
|
-
|
|
142859
|
-
|
|
142860
|
-
|
|
142861
|
-
|
|
142862
|
-
|
|
142863
|
-
|
|
142864
|
-
|
|
142865
|
-
|
|
142930
|
+
createElementVNode("div", _hoisted_45$3, [
|
|
142931
|
+
createElementVNode("div", _hoisted_46$3, [
|
|
142932
|
+
createElementVNode("div", _hoisted_47$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
|
|
142933
|
+
createElementVNode("div", _hoisted_48$3, [
|
|
142934
|
+
createVNode(unref(NTree), {
|
|
142935
|
+
"block-line": "",
|
|
142936
|
+
class: "max-h-[300px]",
|
|
142937
|
+
data: dynamicValueTreeData.value,
|
|
142938
|
+
"render-label": renderDynamicValueTreeLabel,
|
|
142939
|
+
"selected-keys": [point.dynamicYValue?.path ?? ""],
|
|
142940
|
+
"onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "y")
|
|
142941
|
+
}, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
|
|
142942
|
+
])
|
|
142943
|
+
]),
|
|
142944
|
+
point.selectedYValue && point.arrayConfig && isArrayOrObject(point.selectedYValue) ? (openBlock(), createElementBlock("div", _hoisted_49$3, [
|
|
142945
|
+
createElementVNode("div", _hoisted_50$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.configureArrayObjectFields")), 1),
|
|
142946
|
+
createElementVNode("div", _hoisted_51$2, [
|
|
142947
|
+
createElementVNode("div", null, [
|
|
142948
|
+
createElementVNode("label", _hoisted_52$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.labelField")), 1),
|
|
142949
|
+
createVNode(unref(NSelect), {
|
|
142950
|
+
value: point.arrayConfig.labelField,
|
|
142951
|
+
"onUpdate:value": [($event) => point.arrayConfig.labelField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142952
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142953
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142954
|
+
]),
|
|
142955
|
+
createElementVNode("div", null, [
|
|
142956
|
+
createElementVNode("label", _hoisted_53$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xValueField")), 1),
|
|
142957
|
+
createVNode(unref(NSelect), {
|
|
142958
|
+
value: point.arrayConfig.xField,
|
|
142959
|
+
"onUpdate:value": [($event) => point.arrayConfig.xField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142960
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142961
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142962
|
+
]),
|
|
142963
|
+
createElementVNode("div", null, [
|
|
142964
|
+
createElementVNode("label", _hoisted_54$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yValueField")), 1),
|
|
142965
|
+
createVNode(unref(NSelect), {
|
|
142966
|
+
value: point.arrayConfig.yField,
|
|
142967
|
+
"onUpdate:value": [($event) => point.arrayConfig.yField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142968
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142969
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142970
|
+
]),
|
|
142971
|
+
isActiveSeriesXYRChart.value ? (openBlock(), createElementBlock("div", _hoisted_55$1, [
|
|
142972
|
+
createElementVNode("label", _hoisted_56$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.rValueField")), 1),
|
|
142973
|
+
createVNode(unref(NSelect), {
|
|
142974
|
+
value: point.arrayConfig.rField,
|
|
142975
|
+
"onUpdate:value": [($event) => point.arrayConfig.rField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
142976
|
+
options: getFieldOptions(point.selectedYValue)
|
|
142977
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
142978
|
+
])) : createCommentVNode("", true)
|
|
142979
|
+
])
|
|
142980
|
+
])) : createCommentVNode("", true)
|
|
142981
|
+
])
|
|
142866
142982
|
])
|
|
142867
142983
|
]),
|
|
142868
142984
|
_: 2
|
|
142869
142985
|
}, 1032, ["show"])
|
|
142870
142986
|
]),
|
|
142871
142987
|
_: 2
|
|
142872
|
-
}, 1032, ["value", "onUpdate:value"
|
|
142988
|
+
}, 1032, ["value", "onUpdate:value"]),
|
|
142873
142989
|
isActiveSeriesXYRChart.value ? (openBlock(), createBlock(unref(NInput), {
|
|
142874
142990
|
key: 0,
|
|
142875
142991
|
value: point.rValue,
|
|
142876
142992
|
"onUpdate:value": ($event) => point.rValue = $event,
|
|
142877
142993
|
class: "flex-1",
|
|
142878
|
-
disabled: !!point.dynamicRValue,
|
|
142879
142994
|
placeholder: "Size (R)",
|
|
142880
142995
|
type: "text"
|
|
142881
142996
|
}, {
|
|
@@ -142895,26 +143010,69 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142895
143010
|
class: normalizeClass(point.dynamicRValue ? "text-blue-500" : ""),
|
|
142896
143011
|
icon: "caret-down"
|
|
142897
143012
|
}, null, 8, ["class"])
|
|
142898
|
-
], 8,
|
|
143013
|
+
], 8, _hoisted_57$1)
|
|
142899
143014
|
]),
|
|
142900
143015
|
default: withCtx(() => [
|
|
142901
|
-
createElementVNode("div",
|
|
142902
|
-
createElementVNode("div",
|
|
142903
|
-
|
|
142904
|
-
|
|
142905
|
-
|
|
142906
|
-
|
|
142907
|
-
|
|
142908
|
-
|
|
142909
|
-
|
|
142910
|
-
|
|
143016
|
+
createElementVNode("div", _hoisted_58$1, [
|
|
143017
|
+
createElementVNode("div", _hoisted_59$1, [
|
|
143018
|
+
createElementVNode("div", _hoisted_60$1, [
|
|
143019
|
+
createElementVNode("div", _hoisted_61$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
|
|
143020
|
+
createElementVNode("div", _hoisted_62$1, [
|
|
143021
|
+
createVNode(unref(NTree), {
|
|
143022
|
+
"block-line": "",
|
|
143023
|
+
class: "max-h-[300px]",
|
|
143024
|
+
data: dynamicValueTreeData.value,
|
|
143025
|
+
"render-label": renderDynamicValueTreeLabel,
|
|
143026
|
+
"selected-keys": [point.dynamicRValue?.path ?? ""],
|
|
143027
|
+
"onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "r")
|
|
143028
|
+
}, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
|
|
143029
|
+
])
|
|
143030
|
+
]),
|
|
143031
|
+
point.selectedRValue && point.arrayConfig && isArrayOrObject(point.selectedRValue) ? (openBlock(), createElementBlock("div", _hoisted_63$1, [
|
|
143032
|
+
createElementVNode("div", _hoisted_64$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.configureArrayObjectFields")), 1),
|
|
143033
|
+
createElementVNode("div", _hoisted_65$1, [
|
|
143034
|
+
createElementVNode("div", null, [
|
|
143035
|
+
createElementVNode("label", _hoisted_66$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.labelField")), 1),
|
|
143036
|
+
createVNode(unref(NSelect), {
|
|
143037
|
+
value: point.arrayConfig.labelField,
|
|
143038
|
+
"onUpdate:value": [($event) => point.arrayConfig.labelField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143039
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143040
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143041
|
+
]),
|
|
143042
|
+
createElementVNode("div", null, [
|
|
143043
|
+
createElementVNode("label", _hoisted_67$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xValueField")), 1),
|
|
143044
|
+
createVNode(unref(NSelect), {
|
|
143045
|
+
value: point.arrayConfig.xField,
|
|
143046
|
+
"onUpdate:value": [($event) => point.arrayConfig.xField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143047
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143048
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143049
|
+
]),
|
|
143050
|
+
createElementVNode("div", null, [
|
|
143051
|
+
createElementVNode("label", _hoisted_68$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yValueField")), 1),
|
|
143052
|
+
createVNode(unref(NSelect), {
|
|
143053
|
+
value: point.arrayConfig.yField,
|
|
143054
|
+
"onUpdate:value": [($event) => point.arrayConfig.yField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143055
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143056
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143057
|
+
]),
|
|
143058
|
+
createElementVNode("div", null, [
|
|
143059
|
+
createElementVNode("label", _hoisted_69, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.rValueField")), 1),
|
|
143060
|
+
createVNode(unref(NSelect), {
|
|
143061
|
+
value: point.arrayConfig.rField,
|
|
143062
|
+
"onUpdate:value": [($event) => point.arrayConfig.rField = $event, ($event) => updateXYDynamicValueExpression(point)],
|
|
143063
|
+
options: getFieldOptions(point.selectedRValue)
|
|
143064
|
+
}, null, 8, ["value", "onUpdate:value", "options"])
|
|
143065
|
+
])
|
|
143066
|
+
])
|
|
143067
|
+
])) : createCommentVNode("", true)
|
|
143068
|
+
])
|
|
142911
143069
|
])
|
|
142912
143070
|
]),
|
|
142913
143071
|
_: 2
|
|
142914
143072
|
}, 1032, ["show"])
|
|
142915
143073
|
]),
|
|
142916
143074
|
_: 2
|
|
142917
|
-
}, 1032, ["value", "onUpdate:value"
|
|
143075
|
+
}, 1032, ["value", "onUpdate:value"])) : createCommentVNode("", true),
|
|
142918
143076
|
createVNode(CButton, {
|
|
142919
143077
|
circle: "",
|
|
142920
143078
|
class: "bg-error2 self-center",
|
|
@@ -142935,7 +143093,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142935
143093
|
}, 1032, ["style", "onClick"])
|
|
142936
143094
|
]);
|
|
142937
143095
|
}), 128)),
|
|
142938
|
-
createElementVNode("div",
|
|
143096
|
+
createElementVNode("div", _hoisted_70, [
|
|
142939
143097
|
createVNode(CButton, {
|
|
142940
143098
|
class: "mt-2",
|
|
142941
143099
|
"icon-placement": "left",
|
|
@@ -142955,9 +143113,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142955
143113
|
})
|
|
142956
143114
|
])
|
|
142957
143115
|
]),
|
|
142958
|
-
createElementVNode("div",
|
|
142959
|
-
createElementVNode("div",
|
|
142960
|
-
createElementVNode("label",
|
|
143116
|
+
createElementVNode("div", _hoisted_71, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSettings")), 1),
|
|
143117
|
+
createElementVNode("div", _hoisted_72, [
|
|
143118
|
+
createElementVNode("label", _hoisted_73, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartTitle")), 1),
|
|
142961
143119
|
createVNode(unref(NInput), {
|
|
142962
143120
|
value: chartTitle.value,
|
|
142963
143121
|
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => chartTitle.value = $event),
|
|
@@ -142965,24 +143123,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142965
143123
|
}, null, 8, ["value"])
|
|
142966
143124
|
]),
|
|
142967
143125
|
["bar", "line"].includes(primaryChartType.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
142968
|
-
createElementVNode("div",
|
|
142969
|
-
createElementVNode("label",
|
|
143126
|
+
createElementVNode("div", _hoisted_74, [
|
|
143127
|
+
createElementVNode("label", _hoisted_75, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xAxisLabel")), 1),
|
|
142970
143128
|
createVNode(unref(NInput), {
|
|
142971
143129
|
value: xAxisLabel.value,
|
|
142972
143130
|
"onUpdate:value": _cache[3] || (_cache[3] = ($event) => xAxisLabel.value = $event),
|
|
142973
143131
|
type: "text"
|
|
142974
143132
|
}, null, 8, ["value"])
|
|
142975
143133
|
]),
|
|
142976
|
-
createElementVNode("div",
|
|
142977
|
-
createElementVNode("label",
|
|
143134
|
+
createElementVNode("div", _hoisted_76, [
|
|
143135
|
+
createElementVNode("label", _hoisted_77, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yAxisLabel")), 1),
|
|
142978
143136
|
createVNode(unref(NInput), {
|
|
142979
143137
|
value: yAxisLabel.value,
|
|
142980
143138
|
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => yAxisLabel.value = $event),
|
|
142981
143139
|
type: "text"
|
|
142982
143140
|
}, null, 8, ["value"])
|
|
142983
143141
|
]),
|
|
142984
|
-
createElementVNode("div",
|
|
142985
|
-
createElementVNode("label",
|
|
143142
|
+
createElementVNode("div", _hoisted_78, [
|
|
143143
|
+
createElementVNode("label", _hoisted_79, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.orientation")), 1),
|
|
142986
143144
|
createVNode(unref(NSelect), {
|
|
142987
143145
|
value: orientation.value,
|
|
142988
143146
|
"onUpdate:value": _cache[5] || (_cache[5] = ($event) => orientation.value = $event),
|
|
@@ -142990,24 +143148,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
142990
143148
|
}, null, 8, ["value"])
|
|
142991
143149
|
])
|
|
142992
143150
|
], 64)) : createCommentVNode("", true),
|
|
142993
|
-
["pie", "doughnut", "polarArea"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div",
|
|
142994
|
-
createElementVNode("label",
|
|
143151
|
+
["pie", "doughnut", "polarArea"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_80, [
|
|
143152
|
+
createElementVNode("label", _hoisted_81, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.legendPosition")), 1),
|
|
142995
143153
|
createVNode(unref(NSelect), {
|
|
142996
143154
|
value: legendPosition.value,
|
|
142997
143155
|
"onUpdate:value": _cache[6] || (_cache[6] = ($event) => legendPosition.value = $event),
|
|
142998
143156
|
options: legendPositionOptions
|
|
142999
143157
|
}, null, 8, ["value"])
|
|
143000
143158
|
])) : createCommentVNode("", true),
|
|
143001
|
-
["line", "scatter", "area"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div",
|
|
143002
|
-
createElementVNode("label",
|
|
143159
|
+
["line", "scatter", "area"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_82, [
|
|
143160
|
+
createElementVNode("label", _hoisted_83, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.pointStyle")), 1),
|
|
143003
143161
|
createVNode(unref(NSelect), {
|
|
143004
143162
|
value: pointStyle.value,
|
|
143005
143163
|
"onUpdate:value": _cache[7] || (_cache[7] = ($event) => pointStyle.value = $event),
|
|
143006
143164
|
options: pointStyleOptions
|
|
143007
143165
|
}, null, 8, ["value"])
|
|
143008
143166
|
])) : createCommentVNode("", true),
|
|
143009
|
-
createElementVNode("div",
|
|
143010
|
-
createElementVNode("label",
|
|
143167
|
+
createElementVNode("div", _hoisted_84, [
|
|
143168
|
+
createElementVNode("label", _hoisted_85, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.colorScheme")), 1),
|
|
143011
143169
|
createVNode(unref(NSelect), {
|
|
143012
143170
|
value: colorSchemeType.value,
|
|
143013
143171
|
"onUpdate:value": _cache[8] || (_cache[8] = ($event) => colorSchemeType.value = $event),
|
|
@@ -143027,32 +143185,32 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143027
143185
|
"onUpdate:palette": updateChartColors
|
|
143028
143186
|
}, null, 8, ["allow-add", "allow-delete", "allow-edit", "initial-palette"]))
|
|
143029
143187
|
]),
|
|
143030
|
-
createElementVNode("div",
|
|
143031
|
-
createElementVNode("label",
|
|
143188
|
+
createElementVNode("div", _hoisted_86, [
|
|
143189
|
+
createElementVNode("label", _hoisted_87, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.animation")), 1),
|
|
143032
143190
|
createVNode(unref(NSwitch), {
|
|
143033
143191
|
value: enableAnimation.value,
|
|
143034
143192
|
"onUpdate:value": _cache[9] || (_cache[9] = ($event) => enableAnimation.value = $event)
|
|
143035
143193
|
}, null, 8, ["value"])
|
|
143036
143194
|
]),
|
|
143037
|
-
createElementVNode("div",
|
|
143038
|
-
createElementVNode("label",
|
|
143039
|
-
createElementVNode("div",
|
|
143195
|
+
createElementVNode("div", _hoisted_88, [
|
|
143196
|
+
createElementVNode("label", _hoisted_89, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplay")), 1),
|
|
143197
|
+
createElementVNode("div", _hoisted_90, [
|
|
143040
143198
|
createVNode(unref(NSwitch), {
|
|
143041
143199
|
value: percentDisplay.value,
|
|
143042
143200
|
"onUpdate:value": _cache[10] || (_cache[10] = ($event) => percentDisplay.value = $event)
|
|
143043
143201
|
}, null, 8, ["value"]),
|
|
143044
|
-
createElementVNode("span",
|
|
143202
|
+
createElementVNode("span", _hoisted_91, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplayHint")), 1)
|
|
143045
143203
|
])
|
|
143046
143204
|
]),
|
|
143047
|
-
createElementVNode("div",
|
|
143048
|
-
createElementVNode("label",
|
|
143049
|
-
createElementVNode("div",
|
|
143050
|
-
createElementVNode("div",
|
|
143205
|
+
createElementVNode("div", _hoisted_92, [
|
|
143206
|
+
createElementVNode("label", _hoisted_93, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.viewModeControls")), 1),
|
|
143207
|
+
createElementVNode("div", _hoisted_94, [
|
|
143208
|
+
createElementVNode("div", _hoisted_95, [
|
|
143051
143209
|
createVNode(unref(NSwitch), {
|
|
143052
143210
|
value: enableFullscreenBtn.value,
|
|
143053
143211
|
"onUpdate:value": _cache[11] || (_cache[11] = ($event) => enableFullscreenBtn.value = $event)
|
|
143054
143212
|
}, null, 8, ["value"]),
|
|
143055
|
-
createElementVNode("span",
|
|
143213
|
+
createElementVNode("span", _hoisted_96, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableFullscreenBtn")), 1)
|
|
143056
143214
|
]),
|
|
143057
143215
|
createVNode(unref(NTooltip), {
|
|
143058
143216
|
disabled: !isMultiSeries.value,
|
|
@@ -143067,7 +143225,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143067
143225
|
"onUpdate:value": _cache[12] || (_cache[12] = ($event) => enableChartTypeSwitcher.value = $event),
|
|
143068
143226
|
disabled: isMultiSeries.value
|
|
143069
143227
|
}, null, 8, ["value", "disabled"]),
|
|
143070
|
-
createElementVNode("span",
|
|
143228
|
+
createElementVNode("span", _hoisted_97, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableChartTypeSwitcher")), 1)
|
|
143071
143229
|
], 2)
|
|
143072
143230
|
]),
|
|
143073
143231
|
default: withCtx(() => [
|
|
@@ -143075,20 +143233,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143075
143233
|
]),
|
|
143076
143234
|
_: 1
|
|
143077
143235
|
}, 8, ["disabled"]),
|
|
143078
|
-
createElementVNode("div",
|
|
143236
|
+
createElementVNode("div", _hoisted_98, [
|
|
143079
143237
|
createVNode(unref(NSwitch), {
|
|
143080
143238
|
value: enableDataEntry.value,
|
|
143081
143239
|
"onUpdate:value": _cache[13] || (_cache[13] = ($event) => enableDataEntry.value = $event)
|
|
143082
143240
|
}, null, 8, ["value"]),
|
|
143083
|
-
createElementVNode("span",
|
|
143241
|
+
createElementVNode("span", _hoisted_99, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableDataEntry")), 1)
|
|
143084
143242
|
])
|
|
143085
143243
|
])
|
|
143086
143244
|
]),
|
|
143087
|
-
createElementVNode("div",
|
|
143088
|
-
createElementVNode("label",
|
|
143089
|
-
createElementVNode("div",
|
|
143090
|
-
createElementVNode("div",
|
|
143091
|
-
createElementVNode("label",
|
|
143245
|
+
createElementVNode("div", _hoisted_100, [
|
|
143246
|
+
createElementVNode("label", _hoisted_101, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSize")), 1),
|
|
143247
|
+
createElementVNode("div", _hoisted_102, [
|
|
143248
|
+
createElementVNode("div", _hoisted_103, [
|
|
143249
|
+
createElementVNode("label", _hoisted_104, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.height")), 1),
|
|
143092
143250
|
createVNode(unref(NInputNumber), {
|
|
143093
143251
|
value: chartHeight.value,
|
|
143094
143252
|
"onUpdate:value": _cache[14] || (_cache[14] = ($event) => chartHeight.value = $event),
|
|
@@ -143103,8 +143261,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143103
143261
|
_: 1
|
|
143104
143262
|
}, 8, ["value"])
|
|
143105
143263
|
]),
|
|
143106
|
-
createElementVNode("div",
|
|
143107
|
-
createElementVNode("label",
|
|
143264
|
+
createElementVNode("div", _hoisted_105, [
|
|
143265
|
+
createElementVNode("label", _hoisted_106, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.width")), 1),
|
|
143108
143266
|
createVNode(unref(NInputNumber), {
|
|
143109
143267
|
value: chartWidth.value,
|
|
143110
143268
|
"onUpdate:value": _cache[15] || (_cache[15] = ($event) => chartWidth.value = $event),
|
|
@@ -143124,9 +143282,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
|
|
|
143124
143282
|
])
|
|
143125
143283
|
])
|
|
143126
143284
|
]),
|
|
143127
|
-
createElementVNode("div",
|
|
143128
|
-
createElementVNode("div",
|
|
143129
|
-
createElementVNode("div",
|
|
143285
|
+
createElementVNode("div", _hoisted_107, [
|
|
143286
|
+
createElementVNode("div", _hoisted_108, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
|
|
143287
|
+
createElementVNode("div", _hoisted_109, [
|
|
143130
143288
|
createVNode(unref(NCard), { bordered: false }, {
|
|
143131
143289
|
default: withCtx(() => [
|
|
143132
143290
|
(openBlock(), createBlock(RawDataCharts, {
|