@pitcher/canvas-ui 2025.12.11-123953-beta → 2025.12.11-143850

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