@pitcher/canvas-ui 2026.1.21-151738 → 2026.1.21-152038-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/canvas-ui.css CHANGED
@@ -873,8 +873,8 @@ button[data-v-840d4fd4]:focus {
873
873
  margin: 8px 0px;
874
874
  }td[data-v-8b32d0b5] {
875
875
  border-bottom: 1px solid var(--75c10f0a);
876
- }.template-section--has-next[data-v-963d1d99] {
877
- border-bottom: 1px solid var(--1d28f703);
876
+ }.template-section--has-next[data-v-fdc432dc] {
877
+ border-bottom: 1px solid var(--7551f622);
878
878
  }.template-management-list-item[data-v-6df1530a] {
879
879
  border-bottom: 1px solid var(--1911282a);
880
880
  }
package/canvas-ui.js CHANGED
@@ -106843,7 +106843,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
106843
106843
  emits: ["change"],
106844
106844
  setup(__props, { expose: __expose, emit: __emit }) {
106845
106845
  useCssVars((_ctx) => ({
106846
- "1d28f703": unref(themeVars).primary5
106846
+ "7551f622": unref(themeVars).primary5
106847
106847
  }));
106848
106848
  const themeVars = useThemeVars();
106849
106849
  const { t } = useI18n();
@@ -106891,23 +106891,9 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
106891
106891
  });
106892
106892
  });
106893
106893
  }
106894
- config.value = sections.reduce((acc, section) => {
106894
+ config.value = !isEmpty(filteredInitialValues) ? filteredInitialValues : sections.reduce((acc, section) => {
106895
106895
  section.fields.forEach((field) => {
106896
- const fieldExists = field.name in filteredInitialValues;
106897
- if (fieldExists) {
106898
- acc[field.name] = filteredInitialValues[field.name];
106899
- } else if (field.default == null) {
106900
- acc[field.name] = null;
106901
- } else if (field.type === MetadataTemplateFieldTypeEnum.MULTI_SELECT && Array.isArray(field.default)) {
106902
- const validOptions = new Set(field.options?.map((opt) => opt.value));
106903
- const validDefaults = field.default.filter((v) => validOptions.has(v));
106904
- acc[field.name] = validDefaults.length > 0 ? validDefaults : null;
106905
- } else if (field.type === MetadataTemplateFieldTypeEnum.SELECT) {
106906
- const validOptions = new Set(field.options?.map((opt) => opt.value));
106907
- acc[field.name] = validOptions.has(field.default) ? field.default : null;
106908
- } else {
106909
- acc[field.name] = field.default;
106910
- }
106896
+ acc[field.name] = null;
106911
106897
  });
106912
106898
  return acc;
106913
106899
  }, {});
@@ -107171,7 +107157,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
107171
107157
  }
107172
107158
  });
107173
107159
 
107174
- const CConfigEditor = /* @__PURE__ */ _export_sfc(_sfc_main$52, [["__scopeId", "data-v-963d1d99"]]);
107160
+ const CConfigEditor = /* @__PURE__ */ _export_sfc(_sfc_main$52, [["__scopeId", "data-v-fdc432dc"]]);
107175
107161
 
107176
107162
  const _sfc_main$51 = /* @__PURE__ */ defineComponent({
107177
107163
  __name: "CAttributesForm",