@pitcher/canvas-ui 2025.12.12-074331-beta → 2025.12.12-135125-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
@@ -80326,7 +80326,8 @@ function useMetadataSearch(options = {}) {
80326
80326
  threshold = void 0,
80327
80327
  // only used for fuzzy search
80328
80328
  fetchAllUnique = false,
80329
- contentType = void 0
80329
+ contentType = void 0,
80330
+ tagsNotIn = void 0
80330
80331
  } = {}) {
80331
80332
  if (!metadataSearch || !searchTerm) {
80332
80333
  return [];
@@ -80346,7 +80347,8 @@ function useMetadataSearch(options = {}) {
80346
80347
  searchMode,
80347
80348
  threshold,
80348
80349
  fetch_all_unique: fetchAllUnique,
80349
- content_type: contentType
80350
+ content_type: contentType,
80351
+ tags_not_in: tagsNotIn?.length ? tagsNotIn.join(",") : void 0
80350
80352
  });
80351
80353
  const autocompleteOptions = [];
80352
80354
  const addedValues = /* @__PURE__ */ new Set();
@@ -80396,7 +80398,8 @@ function useMetadataSearch(options = {}) {
80396
80398
  key = "search_data",
80397
80399
  ownerId = null,
80398
80400
  limit = 100,
80399
- and = []
80401
+ and = [],
80402
+ tagsNotIn = void 0
80400
80403
  } = {}) {
80401
80404
  if (!entity) {
80402
80405
  return { popular: [], all: [] };
@@ -80416,7 +80419,8 @@ function useMetadataSearch(options = {}) {
80416
80419
  include_draft_values: includeDraftValues,
80417
80420
  owner_id: ownerId?.toString(),
80418
80421
  page_size: limit,
80419
- and
80422
+ and,
80423
+ tags__not_in: tagsNotIn?.length ? tagsNotIn.join(",") : void 0
80420
80424
  });
80421
80425
  if (response?.results && Array.isArray(response.results)) {
80422
80426
  return {
@@ -88061,6 +88065,8 @@ const defaultSkipKeys = [
88061
88065
  "id__in",
88062
88066
  "tags__in",
88063
88067
  "tags__not_in",
88068
+ "template__id",
88069
+ "template__id__in",
88064
88070
  "modified_at__gtr",
88065
88071
  "created_at__gtr",
88066
88072
  "end_at__lt",
@@ -95227,14 +95233,20 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
95227
95233
  if (!searchQuery.value || searchQuery.value.trim() === "/") {
95228
95234
  return "";
95229
95235
  }
95230
- if (!item._snippetResult?.searchable_content?.value) {
95231
- return "";
95232
- }
95236
+ const highlightValue = item._highlightResult?.searchable_content?.value;
95237
+ if (!highlightValue) return "";
95233
95238
  const nameMatched = item._highlightResult?.name?.matchLevel && item._highlightResult.name.matchLevel !== "none";
95234
95239
  if (nameMatched) {
95235
95240
  return "";
95236
95241
  }
95237
- return sanitizeHtml(item._snippetResult.searchable_content.value);
95242
+ const emIndex = highlightValue.indexOf("<em>");
95243
+ if (emIndex === -1) return "";
95244
+ const startChar = Math.max(0, emIndex - 100);
95245
+ const endChar = Math.min(highlightValue.length, emIndex + 100);
95246
+ let truncated = highlightValue.substring(startChar, endChar);
95247
+ if (startChar > 0) truncated = "..." + truncated;
95248
+ if (endChar < highlightValue.length) truncated = truncated + "...";
95249
+ return sanitizeHtml(truncated);
95238
95250
  };
95239
95251
  const toggleCanvasFilter = (filterType) => {
95240
95252
  if (selectedCanvasFilters.value.includes(filterType)) {
@@ -96035,7 +96047,7 @@ const _sfc_main$5K = /* @__PURE__ */ defineComponent({
96035
96047
  }
96036
96048
  });
96037
96049
 
96038
- const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-8069f2b2"]]);
96050
+ const CAlgoliaSearch = /* @__PURE__ */ _export_sfc(_sfc_main$5K, [["__scopeId", "data-v-338ca99c"]]);
96039
96051
 
96040
96052
  const BulletListExtended = BulletList.extend({
96041
96053
  addOptions() {
@@ -100949,7 +100961,8 @@ function useFilterSuggestions(options = {}) {
100949
100961
  include_draft_values: options.includeDraftValues,
100950
100962
  owner_id: options.ownerId?.toString(),
100951
100963
  page_size: options.limit || 100,
100952
- and: constraints
100964
+ and: constraints,
100965
+ tags__not_in: options.tagsNotIn?.length ? options.tagsNotIn.join(",") : void 0
100953
100966
  });
100954
100967
  const result = {
100955
100968
  suggestions: response.results?.map((item) => ({
@@ -101041,7 +101054,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101041
101054
  limit: { default: 100 },
101042
101055
  externalFilters: { default: () => ({}) },
101043
101056
  isDependentField: { type: Boolean, default: false },
101044
- systemFilteredIds: { default: void 0 }
101057
+ systemFilteredIds: { default: void 0 },
101058
+ tagsNotIn: { default: () => [] }
101045
101059
  },
101046
101060
  emits: ["update:modelValue", "clear"],
101047
101061
  setup(__props, { emit: __emit }) {
@@ -101067,7 +101081,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101067
101081
  isSection: props.isSection,
101068
101082
  isTemplate: props.isTemplate,
101069
101083
  ownerId: props.ownerId,
101070
- limit: props.limit
101084
+ limit: props.limit,
101085
+ tagsNotIn: props.tagsNotIn
101071
101086
  });
101072
101087
  const { isEnabled, debouncedFetch, cleanup, isLoading } = filterSuggestions;
101073
101088
  const { handleFetch } = useMetadataSearch({ includeSearchTermAsOption: true });
@@ -101145,7 +101160,8 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101145
101160
  isTemplate: props.isTemplate,
101146
101161
  key: props.filterKey,
101147
101162
  ownerId: props.ownerId,
101148
- fetchAllUnique: true
101163
+ fetchAllUnique: true,
101164
+ tagsNotIn: props.tagsNotIn
101149
101165
  });
101150
101166
  return searchResults;
101151
101167
  }
@@ -101381,7 +101397,7 @@ const _sfc_main$5j = /* @__PURE__ */ defineComponent({
101381
101397
  }
101382
101398
  });
101383
101399
 
101384
- const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-06d0d22c"]]);
101400
+ const CSearchFilter = /* @__PURE__ */ _export_sfc(_sfc_main$5j, [["__scopeId", "data-v-14ceb850"]]);
101385
101401
 
101386
101402
  const _hoisted_1$4h = ["v-bind"];
101387
101403
  const _hoisted_2$38 = { class: "flex items-center gap-2 px-6 font-size-4" };
@@ -103161,7 +103177,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103161
103177
  customFilterComponents: {},
103162
103178
  enableDependentFilters: { type: Boolean },
103163
103179
  dependentFiltersEntity: { default: "file" },
103164
- contentType: {}
103180
+ contentType: {},
103181
+ tagsNotIn: { default: () => [] }
103165
103182
  },
103166
103183
  emits: ["update:filters", "update:search", "update:searchIn"],
103167
103184
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -103346,7 +103363,8 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103346
103363
  searchMode: "fuzzy",
103347
103364
  threshold: 0.3,
103348
103365
  fetchAllUnique: true,
103349
- contentType: props.contentType
103366
+ contentType: props.contentType,
103367
+ tagsNotIn: props.tagsNotIn
103350
103368
  });
103351
103369
  }
103352
103370
  function onUpdateModelValue(f, value) {
@@ -103580,8 +103598,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103580
103598
  options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
103581
103599
  "owner-id": _ctx.ownerId,
103582
103600
  "system-filtered-ids": systemFilteredIds.value,
103601
+ "tags-not-in": _ctx.tagsNotIn,
103583
103602
  "onUpdate:modelValue": (v) => onUpdateDependentField(f, v)
103584
- }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
103603
+ }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
103585
103604
  }), 128)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
103586
103605
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedCustomFilterComponents.value, (cc) => {
103587
103606
  return openBlock(), createBlock(resolveDynamicComponent(componentMap[cc.componentName]), {
@@ -103602,8 +103621,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103602
103621
  options: cc.options ?? unref(getFilterOptions)(cc.type, cc.options),
103603
103622
  "owner-id": _ctx.ownerId,
103604
103623
  "system-filtered-ids": systemFilteredIds.value,
103624
+ "tags-not-in": _ctx.tagsNotIn,
103605
103625
  "onUpdate:modelValue": (v) => onUpdateModelValue(cc, v)
103606
- }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-custom", "is-dependent-field", "is-section", "is-template", "modelValue", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
103626
+ }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-custom", "is-dependent-field", "is-section", "is-template", "modelValue", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
103607
103627
  }), 128)),
103608
103628
  (openBlock(true), createElementBlock(Fragment, null, renderList(computedFilters.value, (f) => {
103609
103629
  return openBlock(), createBlock(resolveDynamicComponent(componentMap[f.componentName]), {
@@ -103624,8 +103644,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103624
103644
  options: unref(getFilterOptions)(f.type, f.options),
103625
103645
  "owner-id": _ctx.ownerId,
103626
103646
  "system-filtered-ids": systemFilteredIds.value,
103647
+ "tags-not-in": _ctx.tagsNotIn,
103627
103648
  "onUpdate:modelValue": (v) => onUpdateModelValue(f, v)
103628
- }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
103649
+ }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
103629
103650
  }), 128))
103630
103651
  ], 64))
103631
103652
  ], 64)) : createCommentVNode("", true),
@@ -103702,8 +103723,9 @@ const _sfc_main$59 = /* @__PURE__ */ defineComponent({
103702
103723
  options: f.type === "checkbox" ? unref(getFilterOptions)(f.type, f.options, f.available_values) : unref(getFilterOptions)(f.type, f.options),
103703
103724
  "owner-id": _ctx.ownerId,
103704
103725
  "system-filtered-ids": systemFilteredIds.value,
103726
+ "tags-not-in": _ctx.tagsNotIn,
103705
103727
  "onUpdate:modelValue": (v) => section.are_fields_dependent ? onUpdateDependentField(f, v) : onUpdateModelValue(f, v)
103706
- }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "onUpdate:modelValue"]);
103728
+ }, null, 8, ["allow-custom-date-range", "disabled", "entity", "external-filters", "filter-key", "include-draft-values", "is-dependent-field", "is-section", "is-template", "modelValue", "multiple", "name", "numeric", "options", "owner-id", "system-filtered-ids", "tags-not-in", "onUpdate:modelValue"]);
103707
103729
  }), 128))
103708
103730
  ]),
103709
103731
  _: 2
@@ -111920,7 +111942,10 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
111920
111942
  order: 'asc'
111921
111943
  })
111922
111944
  },
111923
- viewMode: {}
111945
+ viewMode: {},
111946
+ excludedTags: {
111947
+ default: () => []
111948
+ }
111924
111949
  },
111925
111950
  emits: ["search", "create:template", "create:folder", "convert", "update:filter-values", "breadcrumb:click", "move", "select", "restoreColumns", "sort-changed", "toggle-view-mode"],
111926
111951
  setup(__props, {
@@ -112184,11 +112209,12 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
112184
112209
  "initial-search-value": _ctx.search,
112185
112210
  "is-section": _ctx.canvasType === 'section-template',
112186
112211
  "is-template": "",
112187
- placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
112212
+ placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
112213
+ "tags-not-in": _ctx.excludedTags
112188
112214
  }, popularityProps.value, {
112189
112215
  "onUpdate:filters": _cache[4] || (_cache[4] = $event => emit('update:filter-values', $event)),
112190
112216
  "onUpdate:search": _cache[5] || (_cache[5] = $event => emit('search', $event))
112191
- }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder"])]), createElementVNode("div", _hoisted_6$1m, [unref(launchDarkly).enable_template_folders && _ctx.canvasType !== 'section-template' ? withDirectives((openBlock(), createBlock(CButton, {
112217
+ }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder", "tags-not-in"])]), createElementVNode("div", _hoisted_6$1m, [unref(launchDarkly).enable_template_folders && _ctx.canvasType !== 'section-template' ? withDirectives((openBlock(), createBlock(CButton, {
112192
112218
  key: 0,
112193
112219
  circle: "",
112194
112220
  onClick: _cache[6] || (_cache[6] = $event => _ctx.$emit('toggle-view-mode'))
@@ -112247,11 +112273,12 @@ const _sfc_main$4M = /*@__PURE__*/defineComponent({
112247
112273
  "initial-search-value": _ctx.search,
112248
112274
  "is-section": _ctx.canvasType === 'section-template',
112249
112275
  "is-template": "",
112250
- placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags')
112276
+ placeholder: unref(t)('canvasUI.components.templates.CTemplateManagementToolbar.searchInNameOrTags'),
112277
+ "tags-not-in": _ctx.excludedTags
112251
112278
  }, popularityProps.value, {
112252
112279
  "onUpdate:filters": _cache[12] || (_cache[12] = $event => emit('update:filter-values', $event)),
112253
112280
  "onUpdate:search": _cache[13] || (_cache[13] = $event => emit('search', $event))
112254
- }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder"])]))], 2);
112281
+ }), null, 16, ["customFilterComponents", "disabled", "filters", "hide-metadata-filters", "include-draft-values", "initial-search-value", "is-section", "placeholder", "tags-not-in"])]))], 2);
112255
112282
  };
112256
112283
  }
112257
112284
  });
@@ -114384,6 +114411,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
114384
114411
  }),
114385
114412
  currentSort: currentSort.value,
114386
114413
  "custom-filter-components": unref(dataFilterComponents),
114414
+ "excluded-tags": _ctx.excludedTags,
114387
114415
  "hide-convert": isImpact.value || _ctx.hideConvert,
114388
114416
  "hide-create": isImpact.value,
114389
114417
  "hide-view": !unref(launchDarkly).allow_canvases_tables_columns_settings,
@@ -114405,7 +114433,7 @@ const _sfc_main$4G = /*@__PURE__*/defineComponent({
114405
114433
  onSortChanged: onSortChanged,
114406
114434
  onToggleViewMode: toggleViewMode,
114407
114435
  "onUpdate:filterValues": _cache[5] || (_cache[5] = $event => onTableChange('filterValuesChanged', $event))
114408
- }, null, 8, ["breadcrumbs", "canvas-type", "class", "currentSort", "custom-filter-components", "hide-convert", "hide-create", "hide-view", "is-loading-items", "is-template-folder-enabled", "metadata-filter-values", "recommended-ids", "search", "tableColumnsSettings", "viewMode", "onMove", "onRestoreColumns", "onSelect"]), [[vShow, !showBulkToolbar.value]]), (isFetchingData.value || isLoadingTable.value) && isTemplateFolderEnabled.value && unref(viewMode) === 'list' ? (openBlock(), createElementBlock("div", {
114436
+ }, null, 8, ["breadcrumbs", "canvas-type", "class", "currentSort", "custom-filter-components", "excluded-tags", "hide-convert", "hide-create", "hide-view", "is-loading-items", "is-template-folder-enabled", "metadata-filter-values", "recommended-ids", "search", "tableColumnsSettings", "viewMode", "onMove", "onRestoreColumns", "onSelect"]), [[vShow, !showBulkToolbar.value]]), (isFetchingData.value || isLoadingTable.value) && isTemplateFolderEnabled.value && unref(viewMode) === 'list' ? (openBlock(), createElementBlock("div", {
114409
114437
  key: 0,
114410
114438
  class: "flex bg-base rounded-2 mr-3",
114411
114439
  style: normalizeStyle({
@@ -141645,61 +141673,88 @@ const _hoisted_40$3 = { class: "block mb-1 text-sm" };
141645
141673
  const _hoisted_41$3 = { key: 0 };
141646
141674
  const _hoisted_42$3 = { class: "block mb-1 text-sm" };
141647
141675
  const _hoisted_43$3 = ["onClick"];
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 = {
141676
+ const _hoisted_44$3 = { class: "p-4 min-w-[400px] max-h-[400px]" };
141677
+ const _hoisted_45$3 = { class: "flex gap-4 h-full" };
141678
+ const _hoisted_46$3 = { class: "flex-1 flex flex-col" };
141679
+ const _hoisted_47$3 = { class: "text-sm mb-2" };
141680
+ const _hoisted_48$3 = { class: "overflow-auto" };
141681
+ const _hoisted_49$3 = {
141682
+ key: 0,
141683
+ class: "flex-1 border-l pl-4"
141684
+ };
141685
+ const _hoisted_50$3 = { class: "text-sm font-medium mb-2" };
141686
+ const _hoisted_51$2 = { class: "flex flex-col gap-2" };
141687
+ const _hoisted_52$2 = { class: "block mb-1 text-sm" };
141688
+ const _hoisted_53$2 = { class: "block mb-1 text-sm" };
141689
+ const _hoisted_54$1 = { class: "block mb-1 text-sm" };
141690
+ const _hoisted_55$1 = { key: 0 };
141691
+ const _hoisted_56$1 = { class: "block mb-1 text-sm" };
141692
+ const _hoisted_57$1 = ["onClick"];
141693
+ const _hoisted_58$1 = { class: "p-4 min-w-[400px] max-h-[400px]" };
141694
+ const _hoisted_59$1 = { class: "flex gap-4 h-full" };
141695
+ const _hoisted_60$1 = { class: "flex-1 flex flex-col" };
141696
+ const _hoisted_61$1 = { class: "text-sm mb-2" };
141697
+ const _hoisted_62$1 = { class: "overflow-auto" };
141698
+ const _hoisted_63$1 = {
141699
+ key: 0,
141700
+ class: "flex-1 border-l pl-4"
141701
+ };
141702
+ const _hoisted_64$1 = { class: "text-sm font-medium mb-2" };
141703
+ const _hoisted_65$1 = { class: "flex flex-col gap-2" };
141704
+ const _hoisted_66$1 = { class: "block mb-1 text-sm" };
141705
+ const _hoisted_67$1 = { class: "block mb-1 text-sm" };
141706
+ const _hoisted_68$1 = { class: "block mb-1 text-sm" };
141707
+ const _hoisted_69 = { class: "block mb-1 text-sm" };
141708
+ const _hoisted_70 = { class: "flex justify-center mt-2" };
141709
+ 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" };
141710
+ const _hoisted_72 = { class: "mb-4" };
141711
+ const _hoisted_73 = { class: "block mb-2" };
141712
+ const _hoisted_74 = { class: "mb-4" };
141713
+ const _hoisted_75 = { class: "block mb-2" };
141714
+ const _hoisted_76 = { class: "mb-4" };
141715
+ const _hoisted_77 = { class: "block mb-2" };
141716
+ const _hoisted_78 = { class: "mb-4" };
141717
+ const _hoisted_79 = { class: "block mb-2" };
141718
+ const _hoisted_80 = {
141664
141719
  key: 2,
141665
141720
  class: "mb-4"
141666
141721
  };
141667
- const _hoisted_60$1 = { class: "block mb-2" };
141668
- const _hoisted_61$1 = {
141722
+ const _hoisted_81 = { class: "block mb-2" };
141723
+ const _hoisted_82 = {
141669
141724
  key: 3,
141670
141725
  class: "mb-4"
141671
141726
  };
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 = {
141727
+ const _hoisted_83 = { class: "block mb-2" };
141728
+ const _hoisted_84 = { class: "mb-4" };
141729
+ const _hoisted_85 = { class: "block mb-2" };
141730
+ const _hoisted_86 = { class: "mb-4" };
141731
+ const _hoisted_87 = { class: "block mb-2" };
141732
+ const _hoisted_88 = { class: "mb-4" };
141733
+ const _hoisted_89 = { class: "block mb-2" };
141734
+ const _hoisted_90 = { class: "flex items-center gap-2" };
141735
+ const _hoisted_91 = { class: "text-sm text-gray-500" };
141736
+ const _hoisted_92 = { class: "mb-4" };
141737
+ const _hoisted_93 = { class: "block mb-2" };
141738
+ const _hoisted_94 = { class: "flex flex-col gap-2" };
141739
+ const _hoisted_95 = { class: "flex items-center gap-2" };
141740
+ const _hoisted_96 = { class: "text-sm" };
141741
+ const _hoisted_97 = { class: "text-sm" };
141742
+ const _hoisted_98 = { class: "flex items-center gap-2" };
141743
+ const _hoisted_99 = { class: "text-sm" };
141744
+ const _hoisted_100 = { class: "mb-4" };
141745
+ const _hoisted_101 = { class: "block mb-2" };
141746
+ const _hoisted_102 = { class: "flex flex-col gap-3" };
141747
+ const _hoisted_103 = { class: "flex items-center gap-2" };
141748
+ const _hoisted_104 = { class: "text-sm w-16" };
141749
+ const _hoisted_105 = { class: "flex items-center gap-2" };
141750
+ const _hoisted_106 = { class: "text-sm w-16" };
141751
+ const _hoisted_107 = { class: "cb-data-charts-settings__preview flex-1 border-l border-[#eee] pl-4" };
141752
+ const _hoisted_108 = { class: "text-sm font-medium mb-4" };
141753
+ const _hoisted_109 = {
141699
141754
  class: "preview-container",
141700
141755
  style: { "height": "300px" }
141701
141756
  };
141702
- const _hoisted_89 = { class: "flex justify-between gap-4" };
141757
+ const _hoisted_110 = { class: "flex justify-between gap-4" };
141703
141758
  const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141704
141759
  __name: "DataCharts.settings",
141705
141760
  props: {
@@ -141944,6 +141999,46 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141944
141999
  function isArrayOrObject(value) {
141945
142000
  return Array.isArray(value) || typeof value === "object" && value !== null;
141946
142001
  }
142002
+ function parsePathIntoParts(path) {
142003
+ const parts = [];
142004
+ let current = "";
142005
+ for (let i = 0; i < path.length; i++) {
142006
+ const char = path[i];
142007
+ if (char === ".") {
142008
+ if (current) {
142009
+ parts.push(current);
142010
+ current = "";
142011
+ }
142012
+ } else if (char === "[") {
142013
+ if (current) {
142014
+ parts.push(current);
142015
+ current = "";
142016
+ }
142017
+ const closingIdx = path.indexOf("]", i);
142018
+ if (closingIdx !== -1) {
142019
+ parts.push(path.substring(i, closingIdx + 1));
142020
+ i = closingIdx;
142021
+ }
142022
+ } else {
142023
+ current += char;
142024
+ }
142025
+ }
142026
+ if (current) {
142027
+ parts.push(current);
142028
+ }
142029
+ return parts;
142030
+ }
142031
+ function convertBracketsToDotsPath(path) {
142032
+ if (!path) return "";
142033
+ if (!path.includes("[")) return path;
142034
+ const convertedPath = path.replace(/\[(\d+)\]/g, ".$1");
142035
+ return convertedPath.startsWith(".") ? convertedPath.slice(1) : convertedPath;
142036
+ }
142037
+ function generateHandlebarsExpression(path) {
142038
+ if (!path) return "";
142039
+ const cleanPath = convertBracketsToDotsPath(path);
142040
+ return `{{${cleanPath}}}`;
142041
+ }
141947
142042
  function getFieldOptions(data) {
141948
142043
  if (!data || typeof data !== "object") return [];
141949
142044
  const firstItem = Array.isArray(data) ? data[0] : data;
@@ -141961,8 +142056,15 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141961
142056
  if (!path) {
141962
142057
  return;
141963
142058
  }
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}}`;
142059
+ const isArray = Array.isArray(point.selectedValue);
142060
+ if (isArray) {
142061
+ point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142062
+ point.value = `{{#each ${path}}}{{lookup this "${point.arrayConfig.valueField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142063
+ } else {
142064
+ const cleanPath = convertBracketsToDotsPath(path);
142065
+ point.label = `{{${cleanPath}.${point.arrayConfig.labelField}}}`;
142066
+ point.value = `{{${cleanPath}.${point.arrayConfig.valueField}}}`;
142067
+ }
141966
142068
  point.dynamicValue = {
141967
142069
  path,
141968
142070
  value: point.value
@@ -141970,20 +142072,53 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141970
142072
  closePopover();
141971
142073
  }
141972
142074
  function updateXYDynamicValueExpression(point) {
141973
- if (!point.selectedXValue || !point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
142075
+ if (!point.arrayConfig?.labelField || !point.arrayConfig?.xField || !point.arrayConfig?.yField) {
141974
142076
  return;
141975
142077
  }
141976
142078
  const isBubble = isActiveSeriesXYRChart.value;
141977
142079
  if (isBubble && !point.arrayConfig?.rField) {
141978
142080
  return;
141979
142081
  }
141980
- const path = point.dynamicXValue?.path;
141981
- if (!path) {
142082
+ let selectedValue = null;
142083
+ let path = void 0;
142084
+ if (point.selectedXValue && isArrayOrObject(point.selectedXValue)) {
142085
+ selectedValue = point.selectedXValue;
142086
+ path = point.dynamicXValue?.path;
142087
+ } else if (point.selectedYValue && isArrayOrObject(point.selectedYValue)) {
142088
+ selectedValue = point.selectedYValue;
142089
+ path = point.dynamicYValue?.path;
142090
+ } else if (point.selectedRValue && isArrayOrObject(point.selectedRValue)) {
142091
+ selectedValue = point.selectedRValue;
142092
+ path = point.dynamicRValue?.path;
142093
+ }
142094
+ if (!selectedValue || !path) {
141982
142095
  return;
141983
142096
  }
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}}`;
142097
+ const isArray = Array.isArray(selectedValue);
142098
+ if (isArray) {
142099
+ point.label = `{{#each ${path}}}{{lookup this "${point.arrayConfig.labelField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142100
+ point.xValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.xField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142101
+ point.yValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.yField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142102
+ if (isBubble && point.arrayConfig.rField) {
142103
+ point.rValue = `{{#each ${path}}}{{lookup this "${point.arrayConfig.rField}"}}{{#unless @last}},{{/unless}}{{/each}}`;
142104
+ point.dynamicRValue = {
142105
+ path,
142106
+ value: point.rValue
142107
+ };
142108
+ }
142109
+ } else {
142110
+ const cleanPath = convertBracketsToDotsPath(path);
142111
+ point.label = `{{${cleanPath}.${point.arrayConfig.labelField}}}`;
142112
+ point.xValue = `{{${cleanPath}.${point.arrayConfig.xField}}}`;
142113
+ point.yValue = `{{${cleanPath}.${point.arrayConfig.yField}}}`;
142114
+ if (isBubble && point.arrayConfig.rField) {
142115
+ point.rValue = `{{${cleanPath}.${point.arrayConfig.rField}}}`;
142116
+ point.dynamicRValue = {
142117
+ path,
142118
+ value: point.rValue
142119
+ };
142120
+ }
142121
+ }
141987
142122
  point.dynamicXValue = {
141988
142123
  path,
141989
142124
  value: point.xValue
@@ -141992,37 +142127,40 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
141992
142127
  path,
141993
142128
  value: point.yValue
141994
142129
  };
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
- }
142002
142130
  closePopover();
142003
142131
  }
142004
142132
  const dynamicValueTreeData = computed(() => {
142005
- function processObject(obj, path = []) {
142133
+ function buildPathString(pathParts) {
142134
+ return pathParts.reduce((acc, part, index) => {
142135
+ if (part.startsWith("[")) {
142136
+ return acc + part;
142137
+ }
142138
+ return index === 0 ? part : `${acc}.${part}`;
142139
+ }, "");
142140
+ }
142141
+ function processObject(obj, pathParts = []) {
142006
142142
  const result = [];
142007
142143
  for (const key in obj) {
142008
142144
  if (key === "[[Prototype]]") continue;
142009
142145
  const value = obj[key];
142010
- const currentPath = [...path, key];
142011
- const pathString = currentPath.join(".");
142146
+ const currentPathParts = [...pathParts, key];
142147
+ const pathString = buildPathString(currentPathParts);
142012
142148
  if (Array.isArray(value)) {
142013
142149
  const arrayNode = {
142014
142150
  key: pathString,
142015
142151
  label: key,
142016
142152
  children: value.map((item, index) => {
142153
+ const arrayItemPath = [...currentPathParts.slice(0, -1), `${key}[${index}]`];
142154
+ const arrayItemPathString = buildPathString(arrayItemPath);
142017
142155
  if (typeof item === "object" && item !== null) {
142018
142156
  return {
142019
- key: `${pathString}[${index}]`,
142157
+ key: arrayItemPathString,
142020
142158
  label: `[${index}]`,
142021
- children: processObject(item, [...currentPath, `[${index}]`])
142159
+ children: processObject(item, arrayItemPath)
142022
142160
  };
142023
142161
  }
142024
142162
  return {
142025
- key: `${pathString}[${index}]`,
142163
+ key: arrayItemPathString,
142026
142164
  label: `[${index}]: ${item}`,
142027
142165
  isLeaf: true
142028
142166
  };
@@ -142033,7 +142171,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142033
142171
  result.push({
142034
142172
  key: pathString,
142035
142173
  label: key,
142036
- children: processObject(value, currentPath)
142174
+ children: processObject(value, currentPathParts)
142037
142175
  });
142038
142176
  } else {
142039
142177
  result.push({
@@ -142059,25 +142197,18 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142059
142197
  point.selectedValue = void 0;
142060
142198
  point.dynamicValue = void 0;
142061
142199
  point.arrayConfig = void 0;
142062
- point.value = "";
142063
142200
  } else if (field === "x") {
142064
142201
  point.selectedXValue = void 0;
142065
142202
  point.dynamicXValue = void 0;
142066
- point.dynamicYValue = void 0;
142067
- point.dynamicRValue = void 0;
142068
142203
  point.arrayConfig = void 0;
142069
- point.xValue = "";
142070
- point.yValue = "";
142071
- point.rValue = "";
142072
- point.label = "";
142073
142204
  } else if (field === "y") {
142074
142205
  point.selectedYValue = void 0;
142075
142206
  point.dynamicYValue = void 0;
142076
- point.yValue = "";
142207
+ point.arrayConfig = void 0;
142077
142208
  } else if (field === "r") {
142078
142209
  point.selectedRValue = void 0;
142079
142210
  point.dynamicRValue = void 0;
142080
- point.rValue = "";
142211
+ point.arrayConfig = void 0;
142081
142212
  }
142082
142213
  activePopoverPoint.value = point;
142083
142214
  activePopoverField.value = field;
@@ -142106,14 +142237,13 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142106
142237
  closePopover();
142107
142238
  return;
142108
142239
  }
142109
- const pathParts = selectedKey.split(/\.(?![^[]*])/) || [];
142240
+ const pathParts = parsePathIntoParts(selectedKey);
142110
142241
  let currentValue = crmShape.value;
142111
142242
  for (const part of pathParts) {
142112
142243
  if (!currentValue) break;
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];
142244
+ if (part.startsWith("[") && part.endsWith("]")) {
142245
+ const index = parseInt(part.slice(1, -1));
142246
+ currentValue = currentValue?.[index];
142117
142247
  } else {
142118
142248
  currentValue = currentValue?.[part];
142119
142249
  }
@@ -142134,19 +142264,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142134
142264
  };
142135
142265
  return;
142136
142266
  }
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
- }
142267
+ const expression = generateHandlebarsExpression(selectedKey);
142150
142268
  point.dynamicXValue = { path: selectedKey, value: expression };
142151
142269
  point.xValue = expression;
142152
142270
  closePopover();
@@ -142154,19 +142272,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142154
142272
  }
142155
142273
  if (field === "y") {
142156
142274
  point.selectedYValue = currentValue;
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]}"}}`;
142275
+ if (Array.isArray(currentValue) || typeof currentValue === "object" && currentValue !== null) {
142276
+ point.arrayConfig = {
142277
+ labelField: "",
142278
+ valueField: "",
142279
+ xField: "",
142280
+ yField: "",
142281
+ rField: ""
142282
+ };
142283
+ point.dynamicYValue = {
142284
+ path: selectedKey,
142285
+ value: ""
142286
+ };
142287
+ return;
142169
142288
  }
142289
+ const expression = generateHandlebarsExpression(selectedKey);
142170
142290
  point.dynamicYValue = { path: selectedKey, value: expression };
142171
142291
  point.yValue = expression;
142172
142292
  closePopover();
@@ -142174,19 +142294,21 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142174
142294
  }
142175
142295
  if (field === "r") {
142176
142296
  point.selectedRValue = currentValue;
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]}"}}`;
142297
+ if (Array.isArray(currentValue) || typeof currentValue === "object" && currentValue !== null) {
142298
+ point.arrayConfig = {
142299
+ labelField: "",
142300
+ valueField: "",
142301
+ xField: "",
142302
+ yField: "",
142303
+ rField: ""
142304
+ };
142305
+ point.dynamicRValue = {
142306
+ path: selectedKey,
142307
+ value: ""
142308
+ };
142309
+ return;
142189
142310
  }
142311
+ const expression = generateHandlebarsExpression(selectedKey);
142190
142312
  point.dynamicRValue = { path: selectedKey, value: expression };
142191
142313
  point.rValue = expression;
142192
142314
  closePopover();
@@ -142203,19 +142325,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142203
142325
  value: ""
142204
142326
  };
142205
142327
  } else {
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
- }
142328
+ const expression = generateHandlebarsExpression(selectedKey);
142219
142329
  point.dynamicValue = {
142220
142330
  path: selectedKey,
142221
142331
  value: expression
@@ -142512,7 +142622,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142512
142622
  onClose: _cache[16] || (_cache[16] = ($event) => unref(setComponentEditMode)(false))
142513
142623
  }, {
142514
142624
  footer: withCtx(() => [
142515
- createElementVNode("div", _hoisted_89, [
142625
+ createElementVNode("div", _hoisted_110, [
142516
142626
  createVNode(CButton, { onClick: onCancel }, {
142517
142627
  default: withCtx(() => [
142518
142628
  createTextVNode(toDisplayString(unref(t)("canvasUI.common.cancel")), 1)
@@ -142628,14 +142738,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142628
142738
  value: point.label,
142629
142739
  "onUpdate:value": ($event) => point.label = $event,
142630
142740
  class: "flex-1",
142631
- disabled: !!point.arrayConfig,
142632
142741
  placeholder: "Label"
142633
- }, null, 8, ["value", "onUpdate:value", "disabled"]),
142742
+ }, null, 8, ["value", "onUpdate:value"]),
142634
142743
  createVNode(unref(NInput), {
142635
142744
  value: point.value,
142636
142745
  "onUpdate:value": ($event) => point.value = $event,
142637
142746
  class: "flex-1",
142638
- disabled: !!point.dynamicValue,
142639
142747
  placeholder: "Value",
142640
142748
  type: "text"
142641
142749
  }, {
@@ -142701,7 +142809,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142701
142809
  }, 1032, ["show"])
142702
142810
  ]),
142703
142811
  _: 2
142704
- }, 1032, ["value", "onUpdate:value", "disabled"]),
142812
+ }, 1032, ["value", "onUpdate:value"]),
142705
142813
  createVNode(CButton, {
142706
142814
  circle: "",
142707
142815
  class: "bg-error2 self-center",
@@ -142730,14 +142838,12 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142730
142838
  value: point.label,
142731
142839
  "onUpdate:value": ($event) => point.label = $event,
142732
142840
  class: "flex-1",
142733
- disabled: !!point.arrayConfig,
142734
142841
  placeholder: "Label"
142735
- }, null, 8, ["value", "onUpdate:value", "disabled"]),
142842
+ }, null, 8, ["value", "onUpdate:value"]),
142736
142843
  createVNode(unref(NInput), {
142737
142844
  value: point.xValue,
142738
142845
  "onUpdate:value": ($event) => point.xValue = $event,
142739
142846
  class: "flex-1",
142740
- disabled: !!point.dynamicXValue,
142741
142847
  placeholder: "X Value",
142742
142848
  type: "text"
142743
142849
  }, {
@@ -142819,12 +142925,11 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142819
142925
  }, 1032, ["show"])
142820
142926
  ]),
142821
142927
  _: 2
142822
- }, 1032, ["value", "onUpdate:value", "disabled"]),
142928
+ }, 1032, ["value", "onUpdate:value"]),
142823
142929
  createVNode(unref(NInput), {
142824
142930
  value: point.yValue,
142825
142931
  "onUpdate:value": ($event) => point.yValue = $event,
142826
142932
  class: "flex-1",
142827
- disabled: !!point.dynamicYValue,
142828
142933
  placeholder: "Y Value",
142829
142934
  type: "text"
142830
142935
  }, {
@@ -142848,28 +142953,70 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142848
142953
  ]),
142849
142954
  default: withCtx(() => [
142850
142955
  createElementVNode("div", _hoisted_44$3, [
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"])
142956
+ createElementVNode("div", _hoisted_45$3, [
142957
+ createElementVNode("div", _hoisted_46$3, [
142958
+ createElementVNode("div", _hoisted_47$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
142959
+ createElementVNode("div", _hoisted_48$3, [
142960
+ createVNode(unref(NTree), {
142961
+ "block-line": "",
142962
+ class: "max-h-[300px]",
142963
+ data: dynamicValueTreeData.value,
142964
+ "render-label": renderDynamicValueTreeLabel,
142965
+ "selected-keys": [point.dynamicYValue?.path ?? ""],
142966
+ "onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "y")
142967
+ }, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
142968
+ ])
142969
+ ]),
142970
+ point.selectedYValue && point.arrayConfig && isArrayOrObject(point.selectedYValue) ? (openBlock(), createElementBlock("div", _hoisted_49$3, [
142971
+ createElementVNode("div", _hoisted_50$3, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.configureArrayObjectFields")), 1),
142972
+ createElementVNode("div", _hoisted_51$2, [
142973
+ createElementVNode("div", null, [
142974
+ createElementVNode("label", _hoisted_52$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.labelField")), 1),
142975
+ createVNode(unref(NSelect), {
142976
+ value: point.arrayConfig.labelField,
142977
+ "onUpdate:value": [($event) => point.arrayConfig.labelField = $event, ($event) => updateXYDynamicValueExpression(point)],
142978
+ options: getFieldOptions(point.selectedYValue)
142979
+ }, null, 8, ["value", "onUpdate:value", "options"])
142980
+ ]),
142981
+ createElementVNode("div", null, [
142982
+ createElementVNode("label", _hoisted_53$2, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xValueField")), 1),
142983
+ createVNode(unref(NSelect), {
142984
+ value: point.arrayConfig.xField,
142985
+ "onUpdate:value": [($event) => point.arrayConfig.xField = $event, ($event) => updateXYDynamicValueExpression(point)],
142986
+ options: getFieldOptions(point.selectedYValue)
142987
+ }, null, 8, ["value", "onUpdate:value", "options"])
142988
+ ]),
142989
+ createElementVNode("div", null, [
142990
+ createElementVNode("label", _hoisted_54$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yValueField")), 1),
142991
+ createVNode(unref(NSelect), {
142992
+ value: point.arrayConfig.yField,
142993
+ "onUpdate:value": [($event) => point.arrayConfig.yField = $event, ($event) => updateXYDynamicValueExpression(point)],
142994
+ options: getFieldOptions(point.selectedYValue)
142995
+ }, null, 8, ["value", "onUpdate:value", "options"])
142996
+ ]),
142997
+ isActiveSeriesXYRChart.value ? (openBlock(), createElementBlock("div", _hoisted_55$1, [
142998
+ createElementVNode("label", _hoisted_56$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.rValueField")), 1),
142999
+ createVNode(unref(NSelect), {
143000
+ value: point.arrayConfig.rField,
143001
+ "onUpdate:value": [($event) => point.arrayConfig.rField = $event, ($event) => updateXYDynamicValueExpression(point)],
143002
+ options: getFieldOptions(point.selectedYValue)
143003
+ }, null, 8, ["value", "onUpdate:value", "options"])
143004
+ ])) : createCommentVNode("", true)
143005
+ ])
143006
+ ])) : createCommentVNode("", true)
143007
+ ])
142860
143008
  ])
142861
143009
  ]),
142862
143010
  _: 2
142863
143011
  }, 1032, ["show"])
142864
143012
  ]),
142865
143013
  _: 2
142866
- }, 1032, ["value", "onUpdate:value", "disabled"]),
143014
+ }, 1032, ["value", "onUpdate:value"]),
142867
143015
  isActiveSeriesXYRChart.value ? (openBlock(), createBlock(unref(NInput), {
142868
143016
  key: 0,
142869
143017
  value: point.rValue,
142870
143018
  "onUpdate:value": ($event) => point.rValue = $event,
142871
143019
  class: "flex-1",
142872
- disabled: !!point.dynamicRValue,
142873
143020
  placeholder: "Size (R)",
142874
143021
  type: "text"
142875
143022
  }, {
@@ -142889,26 +143036,69 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142889
143036
  class: normalizeClass(point.dynamicRValue ? "text-blue-500" : ""),
142890
143037
  icon: "caret-down"
142891
143038
  }, null, 8, ["class"])
142892
- ], 8, _hoisted_46$3)
143039
+ ], 8, _hoisted_57$1)
142893
143040
  ]),
142894
143041
  default: withCtx(() => [
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"])
143042
+ createElementVNode("div", _hoisted_58$1, [
143043
+ createElementVNode("div", _hoisted_59$1, [
143044
+ createElementVNode("div", _hoisted_60$1, [
143045
+ createElementVNode("div", _hoisted_61$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.selectDynamicValue")), 1),
143046
+ createElementVNode("div", _hoisted_62$1, [
143047
+ createVNode(unref(NTree), {
143048
+ "block-line": "",
143049
+ class: "max-h-[300px]",
143050
+ data: dynamicValueTreeData.value,
143051
+ "render-label": renderDynamicValueTreeLabel,
143052
+ "selected-keys": [point.dynamicRValue?.path ?? ""],
143053
+ "onUpdate:selectedKeys": (keys) => handleDynamicValueSelect(keys, point, "r")
143054
+ }, null, 8, ["data", "selected-keys", "onUpdate:selectedKeys"])
143055
+ ])
143056
+ ]),
143057
+ point.selectedRValue && point.arrayConfig && isArrayOrObject(point.selectedRValue) ? (openBlock(), createElementBlock("div", _hoisted_63$1, [
143058
+ createElementVNode("div", _hoisted_64$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.configureArrayObjectFields")), 1),
143059
+ createElementVNode("div", _hoisted_65$1, [
143060
+ createElementVNode("div", null, [
143061
+ createElementVNode("label", _hoisted_66$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.labelField")), 1),
143062
+ createVNode(unref(NSelect), {
143063
+ value: point.arrayConfig.labelField,
143064
+ "onUpdate:value": [($event) => point.arrayConfig.labelField = $event, ($event) => updateXYDynamicValueExpression(point)],
143065
+ options: getFieldOptions(point.selectedRValue)
143066
+ }, null, 8, ["value", "onUpdate:value", "options"])
143067
+ ]),
143068
+ createElementVNode("div", null, [
143069
+ createElementVNode("label", _hoisted_67$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xValueField")), 1),
143070
+ createVNode(unref(NSelect), {
143071
+ value: point.arrayConfig.xField,
143072
+ "onUpdate:value": [($event) => point.arrayConfig.xField = $event, ($event) => updateXYDynamicValueExpression(point)],
143073
+ options: getFieldOptions(point.selectedRValue)
143074
+ }, null, 8, ["value", "onUpdate:value", "options"])
143075
+ ]),
143076
+ createElementVNode("div", null, [
143077
+ createElementVNode("label", _hoisted_68$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yValueField")), 1),
143078
+ createVNode(unref(NSelect), {
143079
+ value: point.arrayConfig.yField,
143080
+ "onUpdate:value": [($event) => point.arrayConfig.yField = $event, ($event) => updateXYDynamicValueExpression(point)],
143081
+ options: getFieldOptions(point.selectedRValue)
143082
+ }, null, 8, ["value", "onUpdate:value", "options"])
143083
+ ]),
143084
+ createElementVNode("div", null, [
143085
+ createElementVNode("label", _hoisted_69, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.rValueField")), 1),
143086
+ createVNode(unref(NSelect), {
143087
+ value: point.arrayConfig.rField,
143088
+ "onUpdate:value": [($event) => point.arrayConfig.rField = $event, ($event) => updateXYDynamicValueExpression(point)],
143089
+ options: getFieldOptions(point.selectedRValue)
143090
+ }, null, 8, ["value", "onUpdate:value", "options"])
143091
+ ])
143092
+ ])
143093
+ ])) : createCommentVNode("", true)
143094
+ ])
142905
143095
  ])
142906
143096
  ]),
142907
143097
  _: 2
142908
143098
  }, 1032, ["show"])
142909
143099
  ]),
142910
143100
  _: 2
142911
- }, 1032, ["value", "onUpdate:value", "disabled"])) : createCommentVNode("", true),
143101
+ }, 1032, ["value", "onUpdate:value"])) : createCommentVNode("", true),
142912
143102
  createVNode(CButton, {
142913
143103
  circle: "",
142914
143104
  class: "bg-error2 self-center",
@@ -142929,7 +143119,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142929
143119
  }, 1032, ["style", "onClick"])
142930
143120
  ]);
142931
143121
  }), 128)),
142932
- createElementVNode("div", _hoisted_49$3, [
143122
+ createElementVNode("div", _hoisted_70, [
142933
143123
  createVNode(CButton, {
142934
143124
  class: "mt-2",
142935
143125
  "icon-placement": "left",
@@ -142949,9 +143139,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142949
143139
  })
142950
143140
  ])
142951
143141
  ]),
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),
143142
+ createElementVNode("div", _hoisted_71, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSettings")), 1),
143143
+ createElementVNode("div", _hoisted_72, [
143144
+ createElementVNode("label", _hoisted_73, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartTitle")), 1),
142955
143145
  createVNode(unref(NInput), {
142956
143146
  value: chartTitle.value,
142957
143147
  "onUpdate:value": _cache[2] || (_cache[2] = ($event) => chartTitle.value = $event),
@@ -142959,24 +143149,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142959
143149
  }, null, 8, ["value"])
142960
143150
  ]),
142961
143151
  ["bar", "line"].includes(primaryChartType.value) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
142962
- createElementVNode("div", _hoisted_53$2, [
142963
- createElementVNode("label", _hoisted_54$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xAxisLabel")), 1),
143152
+ createElementVNode("div", _hoisted_74, [
143153
+ createElementVNode("label", _hoisted_75, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.xAxisLabel")), 1),
142964
143154
  createVNode(unref(NInput), {
142965
143155
  value: xAxisLabel.value,
142966
143156
  "onUpdate:value": _cache[3] || (_cache[3] = ($event) => xAxisLabel.value = $event),
142967
143157
  type: "text"
142968
143158
  }, null, 8, ["value"])
142969
143159
  ]),
142970
- createElementVNode("div", _hoisted_55$1, [
142971
- createElementVNode("label", _hoisted_56$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yAxisLabel")), 1),
143160
+ createElementVNode("div", _hoisted_76, [
143161
+ createElementVNode("label", _hoisted_77, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.yAxisLabel")), 1),
142972
143162
  createVNode(unref(NInput), {
142973
143163
  value: yAxisLabel.value,
142974
143164
  "onUpdate:value": _cache[4] || (_cache[4] = ($event) => yAxisLabel.value = $event),
142975
143165
  type: "text"
142976
143166
  }, null, 8, ["value"])
142977
143167
  ]),
142978
- createElementVNode("div", _hoisted_57$1, [
142979
- createElementVNode("label", _hoisted_58$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.orientation")), 1),
143168
+ createElementVNode("div", _hoisted_78, [
143169
+ createElementVNode("label", _hoisted_79, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.orientation")), 1),
142980
143170
  createVNode(unref(NSelect), {
142981
143171
  value: orientation.value,
142982
143172
  "onUpdate:value": _cache[5] || (_cache[5] = ($event) => orientation.value = $event),
@@ -142984,24 +143174,24 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
142984
143174
  }, null, 8, ["value"])
142985
143175
  ])
142986
143176
  ], 64)) : createCommentVNode("", true),
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),
143177
+ ["pie", "doughnut", "polarArea"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_80, [
143178
+ createElementVNode("label", _hoisted_81, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.legendPosition")), 1),
142989
143179
  createVNode(unref(NSelect), {
142990
143180
  value: legendPosition.value,
142991
143181
  "onUpdate:value": _cache[6] || (_cache[6] = ($event) => legendPosition.value = $event),
142992
143182
  options: legendPositionOptions
142993
143183
  }, null, 8, ["value"])
142994
143184
  ])) : createCommentVNode("", true),
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),
143185
+ ["line", "scatter", "area"].includes(primaryChartType.value) ? (openBlock(), createElementBlock("div", _hoisted_82, [
143186
+ createElementVNode("label", _hoisted_83, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.pointStyle")), 1),
142997
143187
  createVNode(unref(NSelect), {
142998
143188
  value: pointStyle.value,
142999
143189
  "onUpdate:value": _cache[7] || (_cache[7] = ($event) => pointStyle.value = $event),
143000
143190
  options: pointStyleOptions
143001
143191
  }, null, 8, ["value"])
143002
143192
  ])) : createCommentVNode("", true),
143003
- createElementVNode("div", _hoisted_63$1, [
143004
- createElementVNode("label", _hoisted_64$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.colorScheme")), 1),
143193
+ createElementVNode("div", _hoisted_84, [
143194
+ createElementVNode("label", _hoisted_85, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.colorScheme")), 1),
143005
143195
  createVNode(unref(NSelect), {
143006
143196
  value: colorSchemeType.value,
143007
143197
  "onUpdate:value": _cache[8] || (_cache[8] = ($event) => colorSchemeType.value = $event),
@@ -143021,32 +143211,32 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143021
143211
  "onUpdate:palette": updateChartColors
143022
143212
  }, null, 8, ["allow-add", "allow-delete", "allow-edit", "initial-palette"]))
143023
143213
  ]),
143024
- createElementVNode("div", _hoisted_65$1, [
143025
- createElementVNode("label", _hoisted_66$1, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.animation")), 1),
143214
+ createElementVNode("div", _hoisted_86, [
143215
+ createElementVNode("label", _hoisted_87, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.animation")), 1),
143026
143216
  createVNode(unref(NSwitch), {
143027
143217
  value: enableAnimation.value,
143028
143218
  "onUpdate:value": _cache[9] || (_cache[9] = ($event) => enableAnimation.value = $event)
143029
143219
  }, null, 8, ["value"])
143030
143220
  ]),
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, [
143221
+ createElementVNode("div", _hoisted_88, [
143222
+ createElementVNode("label", _hoisted_89, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplay")), 1),
143223
+ createElementVNode("div", _hoisted_90, [
143034
143224
  createVNode(unref(NSwitch), {
143035
143225
  value: percentDisplay.value,
143036
143226
  "onUpdate:value": _cache[10] || (_cache[10] = ($event) => percentDisplay.value = $event)
143037
143227
  }, null, 8, ["value"]),
143038
- createElementVNode("span", _hoisted_70, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplayHint")), 1)
143228
+ createElementVNode("span", _hoisted_91, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.percentDisplayHint")), 1)
143039
143229
  ])
143040
143230
  ]),
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, [
143231
+ createElementVNode("div", _hoisted_92, [
143232
+ createElementVNode("label", _hoisted_93, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.viewModeControls")), 1),
143233
+ createElementVNode("div", _hoisted_94, [
143234
+ createElementVNode("div", _hoisted_95, [
143045
143235
  createVNode(unref(NSwitch), {
143046
143236
  value: enableFullscreenBtn.value,
143047
143237
  "onUpdate:value": _cache[11] || (_cache[11] = ($event) => enableFullscreenBtn.value = $event)
143048
143238
  }, null, 8, ["value"]),
143049
- createElementVNode("span", _hoisted_75, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableFullscreenBtn")), 1)
143239
+ createElementVNode("span", _hoisted_96, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableFullscreenBtn")), 1)
143050
143240
  ]),
143051
143241
  createVNode(unref(NTooltip), {
143052
143242
  disabled: !isMultiSeries.value,
@@ -143061,7 +143251,7 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143061
143251
  "onUpdate:value": _cache[12] || (_cache[12] = ($event) => enableChartTypeSwitcher.value = $event),
143062
143252
  disabled: isMultiSeries.value
143063
143253
  }, null, 8, ["value", "disabled"]),
143064
- createElementVNode("span", _hoisted_76, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableChartTypeSwitcher")), 1)
143254
+ createElementVNode("span", _hoisted_97, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableChartTypeSwitcher")), 1)
143065
143255
  ], 2)
143066
143256
  ]),
143067
143257
  default: withCtx(() => [
@@ -143069,20 +143259,20 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143069
143259
  ]),
143070
143260
  _: 1
143071
143261
  }, 8, ["disabled"]),
143072
- createElementVNode("div", _hoisted_77, [
143262
+ createElementVNode("div", _hoisted_98, [
143073
143263
  createVNode(unref(NSwitch), {
143074
143264
  value: enableDataEntry.value,
143075
143265
  "onUpdate:value": _cache[13] || (_cache[13] = ($event) => enableDataEntry.value = $event)
143076
143266
  }, null, 8, ["value"]),
143077
- createElementVNode("span", _hoisted_78, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableDataEntry")), 1)
143267
+ createElementVNode("span", _hoisted_99, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.enableDataEntry")), 1)
143078
143268
  ])
143079
143269
  ])
143080
143270
  ]),
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),
143271
+ createElementVNode("div", _hoisted_100, [
143272
+ createElementVNode("label", _hoisted_101, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.chartSize")), 1),
143273
+ createElementVNode("div", _hoisted_102, [
143274
+ createElementVNode("div", _hoisted_103, [
143275
+ createElementVNode("label", _hoisted_104, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.height")), 1),
143086
143276
  createVNode(unref(NInputNumber), {
143087
143277
  value: chartHeight.value,
143088
143278
  "onUpdate:value": _cache[14] || (_cache[14] = ($event) => chartHeight.value = $event),
@@ -143097,8 +143287,8 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143097
143287
  _: 1
143098
143288
  }, 8, ["value"])
143099
143289
  ]),
143100
- createElementVNode("div", _hoisted_84, [
143101
- createElementVNode("label", _hoisted_85, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.width")), 1),
143290
+ createElementVNode("div", _hoisted_105, [
143291
+ createElementVNode("label", _hoisted_106, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.width")), 1),
143102
143292
  createVNode(unref(NInputNumber), {
143103
143293
  value: chartWidth.value,
143104
143294
  "onUpdate:value": _cache[15] || (_cache[15] = ($event) => chartWidth.value = $event),
@@ -143118,9 +143308,9 @@ const _sfc_main$2E = /* @__PURE__ */ defineComponent({
143118
143308
  ])
143119
143309
  ])
143120
143310
  ]),
143121
- createElementVNode("div", _hoisted_86, [
143122
- createElementVNode("div", _hoisted_87, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
143123
- createElementVNode("div", _hoisted_88, [
143311
+ createElementVNode("div", _hoisted_107, [
143312
+ createElementVNode("div", _hoisted_108, toDisplayString(unref(t)("canvasUI.canvasBuilder.dataCharts.preview")), 1),
143313
+ createElementVNode("div", _hoisted_109, [
143124
143314
  createVNode(unref(NCard), { bordered: false }, {
143125
143315
  default: withCtx(() => [
143126
143316
  (openBlock(), createBlock(RawDataCharts, {