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