@pitcher/canvas-ui 2025.12.11-143850 → 2025.12.12-073804-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",
@@ -95229,20 +95227,14 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95229
95227
  if (!searchQuery.value || searchQuery.value.trim() === "/") {
95230
95228
  return "";
95231
95229
  }
95232
- const highlightValue = item._highlightResult?.searchable_content?.value;
95233
- if (!highlightValue) return "";
95230
+ if (!item._snippetResult?.searchable_content?.value) {
95231
+ return "";
95232
+ }
95234
95233
  const nameMatched = item._highlightResult?.name?.matchLevel && item._highlightResult.name.matchLevel !== "none";
95235
95234
  if (nameMatched) {
95236
95235
  return "";
95237
95236
  }
95238
- const emIndex = highlightValue.indexOf("<em>");
95239
- if (emIndex === -1) return "";
95240
- const startChar = Math.max(0, emIndex - 100);
95241
- const endChar = Math.min(highlightValue.length, emIndex + 100);
95242
- let truncated = highlightValue.substring(startChar, endChar);
95243
- if (startChar > 0) truncated = "..." + truncated;
95244
- if (endChar < highlightValue.length) truncated = truncated + "...";
95245
- return sanitizeHtml(truncated);
95237
+ return sanitizeHtml(item._snippetResult.searchable_content.value);
95246
95238
  };
95247
95239
  const toggleCanvasFilter = (filterType) => {
95248
95240
  if (selectedCanvasFilters.value.includes(filterType)) {
@@ -96043,7 +96035,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96043
96035
  }
96044
96036
  });
96045
96037
 
96046
- const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-338ca99c"]]);
96038
+ const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-8069f2b2"]]);
96047
96039
 
96048
96040
  const BulletListExtended = BulletList.extend({
96049
96041
  addOptions() {
@@ -141653,88 +141645,61 @@ const _hoisted_40$3 = { class: "block mb-1 text-sm" };
141653
141645
  const _hoisted_41$3 = { key: 0 };
141654
141646
  const _hoisted_42$3 = { class: "block mb-1 text-sm" };
141655
141647
  const _hoisted_43$3 = ["onClick"];
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 = {
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 = {
141699
141664
  key: 2,
141700
141665
  class: "mb-4"
141701
141666
  };
141702
- const _hoisted_81 = { class: "block mb-2" };
141703
- const _hoisted_82 = {
141667
+ const _hoisted_60$1 = { class: "block mb-2" };
141668
+ const _hoisted_61$1 = {
141704
141669
  key: 3,
141705
141670
  class: "mb-4"
141706
141671
  };
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 = {
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 = {
141734
141699
  class: "preview-container",
141735
141700
  style: { "height": "300px" }
141736
141701
  };
141737
- const _hoisted_110 = { class: "flex justify-between gap-4" };
141702
+ const _hoisted_89 = { class: "flex justify-between gap-4" };
141738
141703
  const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141739
141704
  __name: "DataCharts.settings",
141740
141705
  props: {
@@ -141979,46 +141944,6 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141979
141944
  function isArrayOrObject(value) {
141980
141945
  return Array.isArray(value) || typeof value === "object" && value !== null;
141981
141946
  }
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
- }
142022
141947
  function getFieldOptions(data) {
142023
141948
  if (!data || typeof data !== "object") return [];
142024
141949
  const firstItem = Array.isArray(data) ? data[0] : data;
@@ -142036,15 +141961,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142036
141961
  if (!path) {
142037
141962
  return;
142038
141963
  }
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
- }
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}}`;
142048
141966
  point.dynamicValue = {
142049
141967
  path,
142050
141968
  value: point.value
@@ -142052,53 +141970,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142052
141970
  closePopover();
142053
141971
  }
142054
141972
  function updateXYDynamicValueExpression(point) {
142055
- if (!point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
141973
+ if (!point.selectedXValue || !point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
142056
141974
  return;
142057
141975
  }
142058
141976
  const isBubble = isActiveSeriesXYRChart.value;
142059
141977
  if (isBubble && !point.arrayConfig?.rField) {
142060
141978
  return;
142061
141979
  }
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) {
141980
+ const path = point.dynamicXValue?.path;
141981
+ if (!path) {
142075
141982
  return;
142076
141983
  }
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
- }
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}}`;
142102
141987
  point.dynamicXValue = {
142103
141988
  path,
142104
141989
  value: point.xValue
@@ -142107,40 +141992,37 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142107
141992
  path,
142108
141993
  value: point.yValue
142109
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
+ }
142110
142002
  closePopover();
142111
142003
  }
142112
142004
  const dynamicValueTreeData = computed(() => {
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 = []) {
142005
+ function processObject(obj, path = []) {
142122
142006
  const result = [];
142123
142007
  for (const key in obj) {
142124
142008
  if (key === "[[Prototype]]") continue;
142125
142009
  const value = obj[key];
142126
- const currentPathParts = [...pathParts, key];
142127
- const pathString = buildPathString(currentPathParts);
142010
+ const currentPath = [...path, key];
142011
+ const pathString = currentPath.join(".");
142128
142012
  if (Array.isArray(value)) {
142129
142013
  const arrayNode = {
142130
142014
  key: pathString,
142131
142015
  label: key,
142132
142016
  children: value.map((item, index) => {
142133
- const arrayItemPath = [...currentPathParts.slice(0, -1), `${key}[${index}]`];
142134
- const arrayItemPathString = buildPathString(arrayItemPath);
142135
142017
  if (typeof item === "object" && item !== null) {
142136
142018
  return {
142137
- key: arrayItemPathString,
142019
+ key: `${pathString}[${index}]`,
142138
142020
  label: `[${index}]`,
142139
- children: processObject(item, arrayItemPath)
142021
+ children: processObject(item, [...currentPath, `[${index}]`])
142140
142022
  };
142141
142023
  }
142142
142024
  return {
142143
- key: arrayItemPathString,
142025
+ key: `${pathString}[${index}]`,
142144
142026
  label: `[${index}]: ${item}`,
142145
142027
  isLeaf: true
142146
142028
  };
@@ -142151,7 +142033,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142151
142033
  result.push({
142152
142034
  key: pathString,
142153
142035
  label: key,
142154
- children: processObject(value, currentPathParts)
142036
+ children: processObject(value, currentPath)
142155
142037
  });
142156
142038
  } else {
142157
142039
  result.push({
@@ -142177,18 +142059,25 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142177
142059
  point.selectedValue = void 0;
142178
142060
  point.dynamicValue = void 0;
142179
142061
  point.arrayConfig = void 0;
142062
+ point.value = "";
142180
142063
  } else if (field === "x") {
142181
142064
  point.selectedXValue = void 0;
142182
142065
  point.dynamicXValue = void 0;
142066
+ point.dynamicYValue = void 0;
142067
+ point.dynamicRValue = void 0;
142183
142068
  point.arrayConfig = void 0;
142069
+ point.xValue = "";
142070
+ point.yValue = "";
142071
+ point.rValue = "";
142072
+ point.label = "";
142184
142073
  } else if (field === "y") {
142185
142074
  point.selectedYValue = void 0;
142186
142075
  point.dynamicYValue = void 0;
142187
- point.arrayConfig = void 0;
142076
+ point.yValue = "";
142188
142077
  } else if (field === "r") {
142189
142078
  point.selectedRValue = void 0;
142190
142079
  point.dynamicRValue = void 0;
142191
- point.arrayConfig = void 0;
142080
+ point.rValue = "";
142192
142081
  }
142193
142082
  activePopoverPoint.value = point;
142194
142083
  activePopoverField.value = field;
@@ -142217,13 +142106,14 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142217
142106
  closePopover();
142218
142107
  return;
142219
142108
  }
142220
- const pathParts = parsePathIntoParts(selectedKey);
142109
+ const pathParts = selectedKey.split(/\.(?![^[]*])/) || [];
142221
142110
  let currentValue = crmShape.value;
142222
142111
  for (const part of pathParts) {
142223
142112
  if (!currentValue) break;
142224
- if (part.startsWith("[") && part.endsWith("]")) {
142225
- const index = parseInt(part.slice(1, -1));
142226
- 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];
142227
142117
  } else {
142228
142118
  currentValue = currentValue?.[part];
142229
142119
  }
@@ -142244,7 +142134,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142244
142134
  };
142245
142135
  return;
142246
142136
  }
142247
- 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
+ }
142248
142150
  point.dynamicXValue = { path: selectedKey, value: expression };
142249
142151
  point.xValue = expression;
142250
142152
  closePopover();
@@ -142252,21 +142154,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142252
142154
  }
142253
142155
  if (field === "y") {
142254
142156
  point.selectedYValue = currentValue;
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;
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]}"}}`;
142268
142169
  }
142269
- const expression = generateHandlebarsExpression(selectedKey);
142270
142170
  point.dynamicYValue = { path: selectedKey, value: expression };
142271
142171
  point.yValue = expression;
142272
142172
  closePopover();
@@ -142274,21 +142174,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142274
142174
  }
142275
142175
  if (field === "r") {
142276
142176
  point.selectedRValue = currentValue;
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;
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]}"}}`;
142290
142189
  }
142291
- const expression = generateHandlebarsExpression(selectedKey);
142292
142190
  point.dynamicRValue = { path: selectedKey, value: expression };
142293
142191
  point.rValue = expression;
142294
142192
  closePopover();
@@ -142305,7 +142203,19 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142305
142203
  value: ""
142306
142204
  };
142307
142205
  } else {
142308
- 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
+ }
142309
142219
  point.dynamicValue = {
142310
142220
  path: selectedKey,
142311
142221
  value: expression
@@ -142602,7 +142512,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142602
142512
  onClose: _cache[16] || (_cache[16] = ($event) => unref(setComponentEditMode)(false))
142603
142513
  }, {
142604
142514
  footer: withCtx(() => [
142605
- createElementVNode("div", _hoisted_110, [
142515
+ createElementVNode("div", _hoisted_89, [
142606
142516
  createVNode(CButton, { onClick: onCancel }, {
142607
142517
  default: withCtx(() => [
142608
142518
  createTextVNode(toDisplayString(unref(t)("canvasUI.common.cancel")), 1)
@@ -142718,12 +142628,14 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142718
142628
  value: point.label,
142719
142629
  "onUpdate:value": ($event) => point.label = $event,
142720
142630
  class: "flex-1",
142631
+ disabled: !!point.arrayConfig,
142721
142632
  placeholder: "Label"
142722
- }, null, 8, ["value", "onUpdate:value"]),
142633
+ }, null, 8, ["value", "onUpdate:value", "disabled"]),
142723
142634
  createVNode(unref(NInput), {
142724
142635
  value: point.value,
142725
142636
  "onUpdate:value": ($event) => point.value = $event,
142726
142637
  class: "flex-1",
142638
+ disabled: !!point.dynamicValue,
142727
142639
  placeholder: "Value",
142728
142640
  type: "text"
142729
142641
  }, {
@@ -142789,7 +142701,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142789
142701
  }, 1032, ["show"])
142790
142702
  ]),
142791
142703
  _: 2
142792
- }, 1032, ["value", "onUpdate:value"]),
142704
+ }, 1032, ["value", "onUpdate:value", "disabled"]),
142793
142705
  createVNode(CButton, {
142794
142706
  circle: "",
142795
142707
  class: "bg-error2 self-center",
@@ -142818,12 +142730,14 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142818
142730
  value: point.label,
142819
142731
  "onUpdate:value": ($event) => point.label = $event,
142820
142732
  class: "flex-1",
142733
+ disabled: !!point.arrayConfig,
142821
142734
  placeholder: "Label"
142822
- }, null, 8, ["value", "onUpdate:value"]),
142735
+ }, null, 8, ["value", "onUpdate:value", "disabled"]),
142823
142736
  createVNode(unref(NInput), {
142824
142737
  value: point.xValue,
142825
142738
  "onUpdate:value": ($event) => point.xValue = $event,
142826
142739
  class: "flex-1",
142740
+ disabled: !!point.dynamicXValue,
142827
142741
  placeholder: "X Value",
142828
142742
  type: "text"
142829
142743
  }, {
@@ -142905,11 +142819,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142905
142819
  }, 1032, ["show"])
142906
142820
  ]),
142907
142821
  _: 2
142908
- }, 1032, ["value", "onUpdate:value"]),
142822
+ }, 1032, ["value", "onUpdate:value", "disabled"]),
142909
142823
  createVNode(unref(NInput), {
142910
142824
  value: point.yValue,
142911
142825
  "onUpdate:value": ($event) => point.yValue = $event,
142912
142826
  class: "flex-1",
142827
+ disabled: !!point.dynamicYValue,
142913
142828
  placeholder: "Y Value",
142914
142829
  type: "text"
142915
142830
  }, {
@@ -142933,70 +142848,28 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142933
142848
  ]),
142934
142849
  default: withCtx(() => [
142935
142850
  createElementVNode("div", _hoisted_44$3, [
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
- ])
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"])
142988
142860
  ])
142989
142861
  ]),
142990
142862
  _: 2
142991
142863
  }, 1032, ["show"])
142992
142864
  ]),
142993
142865
  _: 2
142994
- }, 1032, ["value", "onUpdate:value"]),
142866
+ }, 1032, ["value", "onUpdate:value", "disabled"]),
142995
142867
  isActiveSeriesXYRChart.value ? (openBlock(), createBlock(unref(NInput), {
142996
142868
  key: 0,
142997
142869
  value: point.rValue,
142998
142870
  "onUpdate:value": ($event) => point.rValue = $event,
142999
142871
  class: "flex-1",
142872
+ disabled: !!point.dynamicRValue,
143000
142873
  placeholder: "Size (R)",
143001
142874
  type: "text"
143002
142875
  }, {
@@ -143016,69 +142889,26 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143016
142889
  class: normalizeClass(point.dynamicRValue ? "text-blue-500" : ""),
143017
142890
  icon: "caret-down"
143018
142891
  }, null, 8, ["class"])
143019
- ], 8, _hoisted_57$1)
142892
+ ], 8, _hoisted_46$3)
143020
142893
  ]),
143021
142894
  default: withCtx(() => [
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
- ])
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"])
143075
142905
  ])
143076
142906
  ]),
143077
142907
  _: 2
143078
142908
  }, 1032, ["show"])
143079
142909
  ]),
143080
142910
  _: 2
143081
- }, 1032, ["value", "onUpdate:value"])) : createCommentVNode("", true),
142911
+ }, 1032, ["value", "onUpdate:value", "disabled"])) : createCommentVNode("", true),
143082
142912
  createVNode(CButton, {
143083
142913
  circle: "",
143084
142914
  class: "bg-error2 self-center",
@@ -143099,7 +142929,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143099
142929
  }, 1032, ["style", "onClick"])
143100
142930
  ]);
143101
142931
  }), 128)),
143102
- createElementVNode("div", _hoisted_70, [
142932
+ createElementVNode("div", _hoisted_49$3, [
143103
142933
  createVNode(CButton, {
143104
142934
  class: "mt-2",
143105
142935
  "icon-placement": "left",
@@ -143119,9 +142949,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143119
142949
  })
143120
142950
  ])
143121
142951
  ]),
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),
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),
143125
142955
  createVNode(unref(NInput), {
143126
142956
  value: chartTitle.value,
143127
142957
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => chartTitle.value = $event),
@@ -143129,24 +142959,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143129
142959
  }, null, 8, ["value"])
143130
142960
  ]),
143131
142961
  ["bar", "line"].includes(primaryChartType.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
143132
- createElementVNode("div", _hoisted_74, [
143133
- 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),
143134
142964
  createVNode(unref(NInput), {
143135
142965
  value: xAxisLabel.value,
143136
142966
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => xAxisLabel.value = $event),
143137
142967
  type: "text"
143138
142968
  }, null, 8, ["value"])
143139
142969
  ]),
143140
- createElementVNode("div", _hoisted_76, [
143141
- 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),
143142
142972
  createVNode(unref(NInput), {
143143
142973
  value: yAxisLabel.value,
143144
142974
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => yAxisLabel.value = $event),
143145
142975
  type: "text"
143146
142976
  }, null, 8, ["value"])
143147
142977
  ]),
143148
- createElementVNode("div", _hoisted_78, [
143149
- 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),
143150
142980
  createVNode(unref(NSelect), {
143151
142981
  value: orientation.value,
143152
142982
  "onUpdate:value": _cache[5] || (_cache[5] = ($event) => orientation.value = $event),
@@ -143154,24 +142984,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143154
142984
  }, null, 8, ["value"])
143155
142985
  ])
143156
142986
  ], 64)) : createCommentVNode("", true),
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),
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),
143159
142989
  createVNode(unref(NSelect), {
143160
142990
  value: legendPosition.value,
143161
142991
  "onUpdate:value": _cache[6] || (_cache[6] = ($event) => legendPosition.value = $event),
143162
142992
  options: legendPositionOptions
143163
142993
  }, null, 8, ["value"])
143164
142994
  ])) : createCommentVNode("", true),
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),
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),
143167
142997
  createVNode(unref(NSelect), {
143168
142998
  value: pointStyle.value,
143169
142999
  "onUpdate:value": _cache[7] || (_cache[7] = ($event) => pointStyle.value = $event),
143170
143000
  options: pointStyleOptions
143171
143001
  }, null, 8, ["value"])
143172
143002
  ])) : createCommentVNode("", true),
143173
- createElementVNode("div", _hoisted_84, [
143174
- 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),
143175
143005
  createVNode(unref(NSelect), {
143176
143006
  value: colorSchemeType.value,
143177
143007
  "onUpdate:value": _cache[8] || (_cache[8] = ($event) => colorSchemeType.value = $event),
@@ -143191,32 +143021,32 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143191
143021
  "onUpdate:palette": updateChartColors
143192
143022
  }, null, 8, ["allow-add", "allow-delete", "allow-edit", "initial-palette"]))
143193
143023
  ]),
143194
- createElementVNode("div", _hoisted_86, [
143195
- 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),
143196
143026
  createVNode(unref(NSwitch), {
143197
143027
  value: enableAnimation.value,
143198
143028
  "onUpdate:value": _cache[9] || (_cache[9] = ($event) => enableAnimation.value = $event)
143199
143029
  }, null, 8, ["value"])
143200
143030
  ]),
143201
- createElementVNode("div", _hoisted_88, [
143202
- createElementVNode("label", _hoisted_89, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplay")), 1),
143203
- 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, [
143204
143034
  createVNode(unref(NSwitch), {
143205
143035
  value: percentDisplay.value,
143206
143036
  "onUpdate:value": _cache[10] || (_cache[10] = ($event) => percentDisplay.value = $event)
143207
143037
  }, null, 8, ["value"]),
143208
- 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)
143209
143039
  ])
143210
143040
  ]),
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, [
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, [
143215
143045
  createVNode(unref(NSwitch), {
143216
143046
  value: enableFullscreenBtn.value,
143217
143047
  "onUpdate:value": _cache[11] || (_cache[11] = ($event) => enableFullscreenBtn.value = $event)
143218
143048
  }, null, 8, ["value"]),
143219
- 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)
143220
143050
  ]),
143221
143051
  createVNode(unref(NTooltip), {
143222
143052
  disabled: !isMultiSeries.value,
@@ -143231,7 +143061,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143231
143061
  "onUpdate:value": _cache[12] || (_cache[12] = ($event) => enableChartTypeSwitcher.value = $event),
143232
143062
  disabled: isMultiSeries.value
143233
143063
  }, null, 8, ["value", "disabled"]),
143234
- 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)
143235
143065
  ], 2)
143236
143066
  ]),
143237
143067
  default: withCtx(() => [
@@ -143239,20 +143069,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143239
143069
  ]),
143240
143070
  _: 1
143241
143071
  }, 8, ["disabled"]),
143242
- createElementVNode("div", _hoisted_98, [
143072
+ createElementVNode("div", _hoisted_77, [
143243
143073
  createVNode(unref(NSwitch), {
143244
143074
  value: enableDataEntry.value,
143245
143075
  "onUpdate:value": _cache[13] || (_cache[13] = ($event) => enableDataEntry.value = $event)
143246
143076
  }, null, 8, ["value"]),
143247
- 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)
143248
143078
  ])
143249
143079
  ])
143250
143080
  ]),
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),
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),
143256
143086
  createVNode(unref(NInputNumber), {
143257
143087
  value: chartHeight.value,
143258
143088
  "onUpdate:value": _cache[14] || (_cache[14] = ($event) => chartHeight.value = $event),
@@ -143267,8 +143097,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143267
143097
  _: 1
143268
143098
  }, 8, ["value"])
143269
143099
  ]),
143270
- createElementVNode("div", _hoisted_105, [
143271
- 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),
143272
143102
  createVNode(unref(NInputNumber), {
143273
143103
  value: chartWidth.value,
143274
143104
  "onUpdate:value": _cache[15] || (_cache[15] = ($event) => chartWidth.value = $event),
@@ -143288,9 +143118,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143288
143118
  ])
143289
143119
  ])
143290
143120
  ]),
143291
- createElementVNode("div", _hoisted_107, [
143292
- createElementVNode("div", _hoisted_108, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
143293
- 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, [
143294
143124
  createVNode(unref(NCard), { bordered: false }, {
143295
143125
  default: withCtx(() => [
143296
143126
  (openBlock(), createBlock(RawDataCharts, {