@pitcher/canvas-ui 2025.12.11-125833 → 2025.12.12-072645-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.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",
@@ -141647,88 +141645,61 @@ const _hoisted_40$3 = { class: "block mb-1 text-sm" };
141647
141645
  const _hoisted_41$3 = { key: 0 };
141648
141646
  const _hoisted_42$3 = { class: "block mb-1 text-sm" };
141649
141647
  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: "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 = {
141648
+ const _hoisted_44$3 = { class: "p-4 min-w-[400px] max-h-[400px] overflow-auto" };
141649
+ const _hoisted_45$3 = { class: "text-sm mb-2" };
141650
+ const _hoisted_46$3 = ["onClick"];
141651
+ const _hoisted_47$3 = { class: "p-4 min-w-[400px] max-h-[400px] overflow-auto" };
141652
+ const _hoisted_48$3 = { class: "text-sm mb-2" };
141653
+ const _hoisted_49$3 = { class: "flex justify-center mt-2" };
141654
+ 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" };
141655
+ const _hoisted_51$2 = { class: "mb-4" };
141656
+ const _hoisted_52$2 = { class: "block mb-2" };
141657
+ const _hoisted_53$2 = { class: "mb-4" };
141658
+ const _hoisted_54$1 = { class: "block mb-2" };
141659
+ const _hoisted_55$1 = { class: "mb-4" };
141660
+ const _hoisted_56$1 = { class: "block mb-2" };
141661
+ const _hoisted_57$1 = { class: "mb-4" };
141662
+ const _hoisted_58$1 = { class: "block mb-2" };
141663
+ const _hoisted_59$1 = {
141693
141664
  key: 2,
141694
141665
  class: "mb-4"
141695
141666
  };
141696
- const _hoisted_81 = { class: "block mb-2" };
141697
- const _hoisted_82 = {
141667
+ const _hoisted_60$1 = { class: "block mb-2" };
141668
+ const _hoisted_61$1 = {
141698
141669
  key: 3,
141699
141670
  class: "mb-4"
141700
141671
  };
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 = {
141672
+ const _hoisted_62$1 = { class: "block mb-2" };
141673
+ const _hoisted_63$1 = { class: "mb-4" };
141674
+ const _hoisted_64$1 = { class: "block mb-2" };
141675
+ const _hoisted_65$1 = { class: "mb-4" };
141676
+ const _hoisted_66$1 = { class: "block mb-2" };
141677
+ const _hoisted_67$1 = { class: "mb-4" };
141678
+ const _hoisted_68$1 = { class: "block mb-2" };
141679
+ const _hoisted_69 = { class: "flex items-center gap-2" };
141680
+ const _hoisted_70 = { class: "text-sm text-gray-500" };
141681
+ const _hoisted_71 = { class: "mb-4" };
141682
+ const _hoisted_72 = { class: "block mb-2" };
141683
+ const _hoisted_73 = { class: "flex flex-col gap-2" };
141684
+ const _hoisted_74 = { class: "flex items-center gap-2" };
141685
+ const _hoisted_75 = { class: "text-sm" };
141686
+ const _hoisted_76 = { class: "text-sm" };
141687
+ const _hoisted_77 = { class: "flex items-center gap-2" };
141688
+ const _hoisted_78 = { class: "text-sm" };
141689
+ const _hoisted_79 = { class: "mb-4" };
141690
+ const _hoisted_80 = { class: "block mb-2" };
141691
+ const _hoisted_81 = { class: "flex flex-col gap-3" };
141692
+ const _hoisted_82 = { class: "flex items-center gap-2" };
141693
+ const _hoisted_83 = { class: "text-sm w-16" };
141694
+ const _hoisted_84 = { class: "flex items-center gap-2" };
141695
+ const _hoisted_85 = { class: "text-sm w-16" };
141696
+ const _hoisted_86 = { class: "cb-data-charts-settings__preview flex-1 border-l border-[#eee] pl-4" };
141697
+ const _hoisted_87 = { class: "text-sm font-medium mb-4" };
141698
+ const _hoisted_88 = {
141728
141699
  class: "preview-container",
141729
141700
  style: { "height": "300px" }
141730
141701
  };
141731
- const _hoisted_110 = { class: "flex justify-between gap-4" };
141702
+ const _hoisted_89 = { class: "flex justify-between gap-4" };
141732
141703
  const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141733
141704
  __name: "DataCharts.settings",
141734
141705
  props: {
@@ -141973,46 +141944,6 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141973
141944
  function isArrayOrObject(value) {
141974
141945
  return Array.isArray(value) || typeof value === "object" && value !== null;
141975
141946
  }
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
141947
  function getFieldOptions(data) {
142017
141948
  if (!data || typeof data !== "object") return [];
142018
141949
  const firstItem = Array.isArray(data) ? data[0] : data;
@@ -142030,15 +141961,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142030
141961
  if (!path) {
142031
141962
  return;
142032
141963
  }
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
- }
141964
+ point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
141965
+ point.value = `{{#each ${path}}}{{lookup this "${point.arrayConfig.valueField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142042
141966
  point.dynamicValue = {
142043
141967
  path,
142044
141968
  value: point.value
@@ -142046,53 +141970,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142046
141970
  closePopover();
142047
141971
  }
142048
141972
  function updateXYDynamicValueExpression(point) {
142049
- if (!point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
141973
+ if (!point.selectedXValue || !point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
142050
141974
  return;
142051
141975
  }
142052
141976
  const isBubble = isActiveSeriesXYRChart.value;
142053
141977
  if (isBubble && !point.arrayConfig?.rField) {
142054
141978
  return;
142055
141979
  }
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) {
141980
+ const path = point.dynamicXValue?.path;
141981
+ if (!path) {
142069
141982
  return;
142070
141983
  }
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
- }
141984
+ point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
141985
+ point.xValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.xField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
141986
+ point.yValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.yField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142096
141987
  point.dynamicXValue = {
142097
141988
  path,
142098
141989
  value: point.xValue
@@ -142101,40 +141992,37 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142101
141992
  path,
142102
141993
  value: point.yValue
142103
141994
  };
141995
+ if (isBubble && point.arrayConfig.rField) {
141996
+ point.rValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.rField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
141997
+ point.dynamicRValue = {
141998
+ path,
141999
+ value: point.rValue
142000
+ };
142001
+ }
142104
142002
  closePopover();
142105
142003
  }
142106
142004
  const dynamicValueTreeData = computed(() => {
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 = []) {
142005
+ function processObject(obj, path = []) {
142116
142006
  const result = [];
142117
142007
  for (const key in obj) {
142118
142008
  if (key === "[[Prototype]]") continue;
142119
142009
  const value = obj[key];
142120
- const currentPathParts = [...pathParts, key];
142121
- const pathString = buildPathString(currentPathParts);
142010
+ const currentPath = [...path, key];
142011
+ const pathString = currentPath.join(".");
142122
142012
  if (Array.isArray(value)) {
142123
142013
  const arrayNode = {
142124
142014
  key: pathString,
142125
142015
  label: key,
142126
142016
  children: value.map((item, index) => {
142127
- const arrayItemPath = [...currentPathParts.slice(0, -1), `${key}[${index}]`];
142128
- const arrayItemPathString = buildPathString(arrayItemPath);
142129
142017
  if (typeof item === "object" && item !== null) {
142130
142018
  return {
142131
- key: arrayItemPathString,
142019
+ key: `${pathString}[${index}]`,
142132
142020
  label: `[${index}]`,
142133
- children: processObject(item, arrayItemPath)
142021
+ children: processObject(item, [...currentPath, `[${index}]`])
142134
142022
  };
142135
142023
  }
142136
142024
  return {
142137
- key: arrayItemPathString,
142025
+ key: `${pathString}[${index}]`,
142138
142026
  label: `[${index}]: ${item}`,
142139
142027
  isLeaf: true
142140
142028
  };
@@ -142145,7 +142033,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142145
142033
  result.push({
142146
142034
  key: pathString,
142147
142035
  label: key,
142148
- children: processObject(value, currentPathParts)
142036
+ children: processObject(value, currentPath)
142149
142037
  });
142150
142038
  } else {
142151
142039
  result.push({
@@ -142171,18 +142059,25 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142171
142059
  point.selectedValue = void 0;
142172
142060
  point.dynamicValue = void 0;
142173
142061
  point.arrayConfig = void 0;
142062
+ point.value = "";
142174
142063
  } else if (field === "x") {
142175
142064
  point.selectedXValue = void 0;
142176
142065
  point.dynamicXValue = void 0;
142066
+ point.dynamicYValue = void 0;
142067
+ point.dynamicRValue = void 0;
142177
142068
  point.arrayConfig = void 0;
142069
+ point.xValue = "";
142070
+ point.yValue = "";
142071
+ point.rValue = "";
142072
+ point.label = "";
142178
142073
  } else if (field === "y") {
142179
142074
  point.selectedYValue = void 0;
142180
142075
  point.dynamicYValue = void 0;
142181
- point.arrayConfig = void 0;
142076
+ point.yValue = "";
142182
142077
  } else if (field === "r") {
142183
142078
  point.selectedRValue = void 0;
142184
142079
  point.dynamicRValue = void 0;
142185
- point.arrayConfig = void 0;
142080
+ point.rValue = "";
142186
142081
  }
142187
142082
  activePopoverPoint.value = point;
142188
142083
  activePopoverField.value = field;
@@ -142211,13 +142106,14 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142211
142106
  closePopover();
142212
142107
  return;
142213
142108
  }
142214
- const pathParts = parsePathIntoParts(selectedKey);
142109
+ const pathParts = selectedKey.split(/\.(?![^[]*])/) || [];
142215
142110
  let currentValue = crmShape.value;
142216
142111
  for (const part of pathParts) {
142217
142112
  if (!currentValue) break;
142218
- if (part.startsWith("[") && part.endsWith("]")) {
142219
- const index = parseInt(part.slice(1, -1));
142220
- currentValue = currentValue?.[index];
142113
+ if (part.includes("[") && part.includes("]")) {
142114
+ const arrayPath = part.split("[")[0];
142115
+ const index = parseInt(part.split("[")[1].split("]")[0]);
142116
+ currentValue = currentValue?.[arrayPath]?.[index];
142221
142117
  } else {
142222
142118
  currentValue = currentValue?.[part];
142223
142119
  }
@@ -142238,7 +142134,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142238
142134
  };
142239
142135
  return;
142240
142136
  }
142241
- const expression = generateHandlebarsExpression(selectedKey);
142137
+ const rootPart = pathParts[0];
142138
+ let expression = "";
142139
+ if (pathParts.length === 1) {
142140
+ expression = `{{${rootPart}}}`;
142141
+ } else {
142142
+ const restOfPath = pathParts.slice(1).map((part) => {
142143
+ if (part.includes("[") && part.includes("]")) {
142144
+ return part.split("[")[1].split("]")[0];
142145
+ }
142146
+ return part;
142147
+ });
142148
+ expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
142149
+ }
142242
142150
  point.dynamicXValue = { path: selectedKey, value: expression };
142243
142151
  point.xValue = expression;
142244
142152
  closePopover();
@@ -142246,21 +142154,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142246
142154
  }
142247
142155
  if (field === "y") {
142248
142156
  point.selectedYValue = currentValue;
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;
142157
+ const rootPart = pathParts[0];
142158
+ let expression = "";
142159
+ if (pathParts.length === 1) {
142160
+ expression = `{{${rootPart}}}`;
142161
+ } else {
142162
+ const restOfPath = pathParts.slice(1).map((part) => {
142163
+ if (part.includes("[") && part.includes("]")) {
142164
+ return part.split("[")[1].split("]")[0];
142165
+ }
142166
+ return part;
142167
+ });
142168
+ expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
142262
142169
  }
142263
- const expression = generateHandlebarsExpression(selectedKey);
142264
142170
  point.dynamicYValue = { path: selectedKey, value: expression };
142265
142171
  point.yValue = expression;
142266
142172
  closePopover();
@@ -142268,21 +142174,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142268
142174
  }
142269
142175
  if (field === "r") {
142270
142176
  point.selectedRValue = currentValue;
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;
142177
+ const rootPart = pathParts[0];
142178
+ let expression = "";
142179
+ if (pathParts.length === 1) {
142180
+ expression = `{{${rootPart}}}`;
142181
+ } else {
142182
+ const restOfPath = pathParts.slice(1).map((part) => {
142183
+ if (part.includes("[") && part.includes("]")) {
142184
+ return part.split("[")[1].split("]")[0];
142185
+ }
142186
+ return part;
142187
+ });
142188
+ expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
142284
142189
  }
142285
- const expression = generateHandlebarsExpression(selectedKey);
142286
142190
  point.dynamicRValue = { path: selectedKey, value: expression };
142287
142191
  point.rValue = expression;
142288
142192
  closePopover();
@@ -142299,7 +142203,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142299
142203
  value: ""
142300
142204
  };
142301
142205
  } else {
142302
- const expression = generateHandlebarsExpression(selectedKey);
142206
+ const rootPart = pathParts[0];
142207
+ let expression = "";
142208
+ if (pathParts.length === 1) {
142209
+ expression = `{{${rootPart}}}`;
142210
+ } else {
142211
+ const restOfPath = pathParts.slice(1).map((part) => {
142212
+ if (part.includes("[") && part.includes("]")) {
142213
+ return part.split("[")[1].split("]")[0];
142214
+ }
142215
+ return part;
142216
+ });
142217
+ expression = `{{lookup (lookup ${rootPart} ${restOfPath[0]}) "${restOfPath[1]}"}}`;
142218
+ }
142303
142219
  point.dynamicValue = {
142304
142220
  path: selectedKey,
142305
142221
  value: expression
@@ -142596,7 +142512,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142596
142512
  onClose: _cache[16] || (_cache[16] = ($event) => unref(setComponentEditMode)(false))
142597
142513
  }, {
142598
142514
  footer: withCtx(() => [
142599
- createElementVNode("div", _hoisted_110, [
142515
+ createElementVNode("div", _hoisted_89, [
142600
142516
  createVNode(CButton, { onClick: onCancel }, {
142601
142517
  default: withCtx(() => [
142602
142518
  createTextVNode(toDisplayString(unref(t)("canvasUI.common.cancel")), 1)
@@ -142712,12 +142628,14 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142712
142628
  value: point.label,
142713
142629
  "onUpdate:value": ($event) => point.label = $event,
142714
142630
  class: "flex-1",
142631
+ disabled: !!point.arrayConfig,
142715
142632
  placeholder: "Label"
142716
- }, null, 8, ["value", "onUpdate:value"]),
142633
+ }, null, 8, ["value", "onUpdate:value", "disabled"]),
142717
142634
  createVNode(unref(NInput), {
142718
142635
  value: point.value,
142719
142636
  "onUpdate:value": ($event) => point.value = $event,
142720
142637
  class: "flex-1",
142638
+ disabled: !!point.dynamicValue,
142721
142639
  placeholder: "Value",
142722
142640
  type: "text"
142723
142641
  }, {
@@ -142783,7 +142701,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142783
142701
  }, 1032, ["show"])
142784
142702
  ]),
142785
142703
  _: 2
142786
- }, 1032, ["value", "onUpdate:value"]),
142704
+ }, 1032, ["value", "onUpdate:value", "disabled"]),
142787
142705
  createVNode(CButton, {
142788
142706
  circle: "",
142789
142707
  class: "bg-error2 self-center",
@@ -142812,12 +142730,14 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142812
142730
  value: point.label,
142813
142731
  "onUpdate:value": ($event) => point.label = $event,
142814
142732
  class: "flex-1",
142733
+ disabled: !!point.arrayConfig,
142815
142734
  placeholder: "Label"
142816
- }, null, 8, ["value", "onUpdate:value"]),
142735
+ }, null, 8, ["value", "onUpdate:value", "disabled"]),
142817
142736
  createVNode(unref(NInput), {
142818
142737
  value: point.xValue,
142819
142738
  "onUpdate:value": ($event) => point.xValue = $event,
142820
142739
  class: "flex-1",
142740
+ disabled: !!point.dynamicXValue,
142821
142741
  placeholder: "X Value",
142822
142742
  type: "text"
142823
142743
  }, {
@@ -142899,11 +142819,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142899
142819
  }, 1032, ["show"])
142900
142820
  ]),
142901
142821
  _: 2
142902
- }, 1032, ["value", "onUpdate:value"]),
142822
+ }, 1032, ["value", "onUpdate:value", "disabled"]),
142903
142823
  createVNode(unref(NInput), {
142904
142824
  value: point.yValue,
142905
142825
  "onUpdate:value": ($event) => point.yValue = $event,
142906
142826
  class: "flex-1",
142827
+ disabled: !!point.dynamicYValue,
142907
142828
  placeholder: "Y Value",
142908
142829
  type: "text"
142909
142830
  }, {
@@ -142927,70 +142848,28 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142927
142848
  ]),
142928
142849
  default: withCtx(() => [
142929
142850
  createElementVNode("div", _hoisted_44$3, [
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
- ])
142851
+ createElementVNode("div", _hoisted_45$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
142852
+ createVNode(unref(NTree), {
142853
+ "block-line": "",
142854
+ class: "max-h-[300px]",
142855
+ data: dynamicValueTreeData.value,
142856
+ "render-label": renderDynamicValueTreeLabel,
142857
+ "selected-keys": [point.dynamicYValue?.path ?? ""],
142858
+ "onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "y")
142859
+ }, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
142982
142860
  ])
142983
142861
  ]),
142984
142862
  _: 2
142985
142863
  }, 1032, ["show"])
142986
142864
  ]),
142987
142865
  _: 2
142988
- }, 1032, ["value", "onUpdate:value"]),
142866
+ }, 1032, ["value", "onUpdate:value", "disabled"]),
142989
142867
  isActiveSeriesXYRChart.value ? (openBlock(), createBlock(unref(NInput), {
142990
142868
  key: 0,
142991
142869
  value: point.rValue,
142992
142870
  "onUpdate:value": ($event) => point.rValue = $event,
142993
142871
  class: "flex-1",
142872
+ disabled: !!point.dynamicRValue,
142994
142873
  placeholder: "Size (R)",
142995
142874
  type: "text"
142996
142875
  }, {
@@ -143010,69 +142889,26 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143010
142889
  class: normalizeClass(point.dynamicRValue ? "text-blue-500" : ""),
143011
142890
  icon: "caret-down"
143012
142891
  }, null, 8, ["class"])
143013
- ], 8, _hoisted_57$1)
142892
+ ], 8, _hoisted_46$3)
143014
142893
  ]),
143015
142894
  default: withCtx(() => [
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
- ])
142895
+ createElementVNode("div", _hoisted_47$3, [
142896
+ createElementVNode("div", _hoisted_48$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
142897
+ createVNode(unref(NTree), {
142898
+ "block-line": "",
142899
+ class: "max-h-[300px]",
142900
+ data: dynamicValueTreeData.value,
142901
+ "render-label": renderDynamicValueTreeLabel,
142902
+ "selected-keys": [point.dynamicRValue?.path ?? ""],
142903
+ "onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "r")
142904
+ }, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
143069
142905
  ])
143070
142906
  ]),
143071
142907
  _: 2
143072
142908
  }, 1032, ["show"])
143073
142909
  ]),
143074
142910
  _: 2
143075
- }, 1032, ["value", "onUpdate:value"])) : createCommentVNode("", true),
142911
+ }, 1032, ["value", "onUpdate:value", "disabled"])) : createCommentVNode("", true),
143076
142912
  createVNode(CButton, {
143077
142913
  circle: "",
143078
142914
  class: "bg-error2 self-center",
@@ -143093,7 +142929,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143093
142929
  }, 1032, ["style", "onClick"])
143094
142930
  ]);
143095
142931
  }), 128)),
143096
- createElementVNode("div", _hoisted_70, [
142932
+ createElementVNode("div", _hoisted_49$3, [
143097
142933
  createVNode(CButton, {
143098
142934
  class: "mt-2",
143099
142935
  "icon-placement": "left",
@@ -143113,9 +142949,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143113
142949
  })
143114
142950
  ])
143115
142951
  ]),
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),
142952
+ createElementVNode("div", _hoisted_50$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSettings")), 1),
142953
+ createElementVNode("div", _hoisted_51$2, [
142954
+ createElementVNode("label", _hoisted_52$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartTitle")), 1),
143119
142955
  createVNode(unref(NInput), {
143120
142956
  value: chartTitle.value,
143121
142957
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => chartTitle.value = $event),
@@ -143123,24 +142959,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143123
142959
  }, null, 8, ["value"])
143124
142960
  ]),
143125
142961
  ["bar", "line"].includes(primaryChartType.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
143126
- createElementVNode("div", _hoisted_74, [
143127
- createElementVNode("label", _hoisted_75, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xAxisLabel")), 1),
142962
+ createElementVNode("div", _hoisted_53$2, [
142963
+ createElementVNode("label", _hoisted_54$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xAxisLabel")), 1),
143128
142964
  createVNode(unref(NInput), {
143129
142965
  value: xAxisLabel.value,
143130
142966
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => xAxisLabel.value = $event),
143131
142967
  type: "text"
143132
142968
  }, null, 8, ["value"])
143133
142969
  ]),
143134
- createElementVNode("div", _hoisted_76, [
143135
- createElementVNode("label", _hoisted_77, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yAxisLabel")), 1),
142970
+ createElementVNode("div", _hoisted_55$1, [
142971
+ createElementVNode("label", _hoisted_56$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yAxisLabel")), 1),
143136
142972
  createVNode(unref(NInput), {
143137
142973
  value: yAxisLabel.value,
143138
142974
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => yAxisLabel.value = $event),
143139
142975
  type: "text"
143140
142976
  }, null, 8, ["value"])
143141
142977
  ]),
143142
- createElementVNode("div", _hoisted_78, [
143143
- createElementVNode("label", _hoisted_79, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.orientation")), 1),
142978
+ createElementVNode("div", _hoisted_57$1, [
142979
+ createElementVNode("label", _hoisted_58$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.orientation")), 1),
143144
142980
  createVNode(unref(NSelect), {
143145
142981
  value: orientation.value,
143146
142982
  "onUpdate:value": _cache[5] || (_cache[5] = ($event) => orientation.value = $event),
@@ -143148,24 +142984,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143148
142984
  }, null, 8, ["value"])
143149
142985
  ])
143150
142986
  ], 64)) : createCommentVNode("", true),
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),
142987
+ ["pie", "doughnut", "polarArea"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_59$1, [
142988
+ createElementVNode("label", _hoisted_60$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.legendPosition")), 1),
143153
142989
  createVNode(unref(NSelect), {
143154
142990
  value: legendPosition.value,
143155
142991
  "onUpdate:value": _cache[6] || (_cache[6] = ($event) => legendPosition.value = $event),
143156
142992
  options: legendPositionOptions
143157
142993
  }, null, 8, ["value"])
143158
142994
  ])) : createCommentVNode("", true),
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),
142995
+ ["line", "scatter", "area"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_61$1, [
142996
+ createElementVNode("label", _hoisted_62$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.pointStyle")), 1),
143161
142997
  createVNode(unref(NSelect), {
143162
142998
  value: pointStyle.value,
143163
142999
  "onUpdate:value": _cache[7] || (_cache[7] = ($event) => pointStyle.value = $event),
143164
143000
  options: pointStyleOptions
143165
143001
  }, null, 8, ["value"])
143166
143002
  ])) : createCommentVNode("", true),
143167
- createElementVNode("div", _hoisted_84, [
143168
- createElementVNode("label", _hoisted_85, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.colorScheme")), 1),
143003
+ createElementVNode("div", _hoisted_63$1, [
143004
+ createElementVNode("label", _hoisted_64$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.colorScheme")), 1),
143169
143005
  createVNode(unref(NSelect), {
143170
143006
  value: colorSchemeType.value,
143171
143007
  "onUpdate:value": _cache[8] || (_cache[8] = ($event) => colorSchemeType.value = $event),
@@ -143185,32 +143021,32 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143185
143021
  "onUpdate:palette": updateChartColors
143186
143022
  }, null, 8, ["allow-add", "allow-delete", "allow-edit", "initial-palette"]))
143187
143023
  ]),
143188
- createElementVNode("div", _hoisted_86, [
143189
- createElementVNode("label", _hoisted_87, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.animation")), 1),
143024
+ createElementVNode("div", _hoisted_65$1, [
143025
+ createElementVNode("label", _hoisted_66$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.animation")), 1),
143190
143026
  createVNode(unref(NSwitch), {
143191
143027
  value: enableAnimation.value,
143192
143028
  "onUpdate:value": _cache[9] || (_cache[9] = ($event) => enableAnimation.value = $event)
143193
143029
  }, null, 8, ["value"])
143194
143030
  ]),
143195
- createElementVNode("div", _hoisted_88, [
143196
- createElementVNode("label", _hoisted_89, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplay")), 1),
143197
- createElementVNode("div", _hoisted_90, [
143031
+ createElementVNode("div", _hoisted_67$1, [
143032
+ createElementVNode("label", _hoisted_68$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplay")), 1),
143033
+ createElementVNode("div", _hoisted_69, [
143198
143034
  createVNode(unref(NSwitch), {
143199
143035
  value: percentDisplay.value,
143200
143036
  "onUpdate:value": _cache[10] || (_cache[10] = ($event) => percentDisplay.value = $event)
143201
143037
  }, null, 8, ["value"]),
143202
- createElementVNode("span", _hoisted_91, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplayHint")), 1)
143038
+ createElementVNode("span", _hoisted_70, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplayHint")), 1)
143203
143039
  ])
143204
143040
  ]),
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, [
143041
+ createElementVNode("div", _hoisted_71, [
143042
+ createElementVNode("label", _hoisted_72, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.viewModeControls")), 1),
143043
+ createElementVNode("div", _hoisted_73, [
143044
+ createElementVNode("div", _hoisted_74, [
143209
143045
  createVNode(unref(NSwitch), {
143210
143046
  value: enableFullscreenBtn.value,
143211
143047
  "onUpdate:value": _cache[11] || (_cache[11] = ($event) => enableFullscreenBtn.value = $event)
143212
143048
  }, null, 8, ["value"]),
143213
- createElementVNode("span", _hoisted_96, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableFullscreenBtn")), 1)
143049
+ createElementVNode("span", _hoisted_75, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableFullscreenBtn")), 1)
143214
143050
  ]),
143215
143051
  createVNode(unref(NTooltip), {
143216
143052
  disabled: !isMultiSeries.value,
@@ -143225,7 +143061,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143225
143061
  "onUpdate:value": _cache[12] || (_cache[12] = ($event) => enableChartTypeSwitcher.value = $event),
143226
143062
  disabled: isMultiSeries.value
143227
143063
  }, null, 8, ["value", "disabled"]),
143228
- createElementVNode("span", _hoisted_97, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableChartTypeSwitcher")), 1)
143064
+ createElementVNode("span", _hoisted_76, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableChartTypeSwitcher")), 1)
143229
143065
  ], 2)
143230
143066
  ]),
143231
143067
  default: withCtx(() => [
@@ -143233,20 +143069,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143233
143069
  ]),
143234
143070
  _: 1
143235
143071
  }, 8, ["disabled"]),
143236
- createElementVNode("div", _hoisted_98, [
143072
+ createElementVNode("div", _hoisted_77, [
143237
143073
  createVNode(unref(NSwitch), {
143238
143074
  value: enableDataEntry.value,
143239
143075
  "onUpdate:value": _cache[13] || (_cache[13] = ($event) => enableDataEntry.value = $event)
143240
143076
  }, null, 8, ["value"]),
143241
- createElementVNode("span", _hoisted_99, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableDataEntry")), 1)
143077
+ createElementVNode("span", _hoisted_78, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableDataEntry")), 1)
143242
143078
  ])
143243
143079
  ])
143244
143080
  ]),
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),
143081
+ createElementVNode("div", _hoisted_79, [
143082
+ createElementVNode("label", _hoisted_80, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSize")), 1),
143083
+ createElementVNode("div", _hoisted_81, [
143084
+ createElementVNode("div", _hoisted_82, [
143085
+ createElementVNode("label", _hoisted_83, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.height")), 1),
143250
143086
  createVNode(unref(NInputNumber), {
143251
143087
  value: chartHeight.value,
143252
143088
  "onUpdate:value": _cache[14] || (_cache[14] = ($event) => chartHeight.value = $event),
@@ -143261,8 +143097,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143261
143097
  _: 1
143262
143098
  }, 8, ["value"])
143263
143099
  ]),
143264
- createElementVNode("div", _hoisted_105, [
143265
- createElementVNode("label", _hoisted_106, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.width")), 1),
143100
+ createElementVNode("div", _hoisted_84, [
143101
+ createElementVNode("label", _hoisted_85, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.width")), 1),
143266
143102
  createVNode(unref(NInputNumber), {
143267
143103
  value: chartWidth.value,
143268
143104
  "onUpdate:value": _cache[15] || (_cache[15] = ($event) => chartWidth.value = $event),
@@ -143282,9 +143118,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143282
143118
  ])
143283
143119
  ])
143284
143120
  ]),
143285
- createElementVNode("div", _hoisted_107, [
143286
- createElementVNode("div", _hoisted_108, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
143287
- createElementVNode("div", _hoisted_109, [
143121
+ createElementVNode("div", _hoisted_86, [
143122
+ createElementVNode("div", _hoisted_87, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
143123
+ createElementVNode("div", _hoisted_88, [
143288
143124
  createVNode(unref(NCard), { bordered: false }, {
143289
143125
  default: withCtx(() => [
143290
143126
  (openBlock(), createBlock(RawDataCharts, {