@pitcher/canvas-ui 2026.1.21-143005-beta → 2026.1.21-144700-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 +2 -2
- package/canvas-ui.js +14 -3
- package/canvas-ui.js.map +1 -1
- package/package.json +1 -1
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-
|
|
877
|
-
border-bottom: 1px solid var(--
|
|
876
|
+
}.template-section--has-next[data-v-1ee48486] {
|
|
877
|
+
border-bottom: 1px solid var(--bad279c2);
|
|
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
|
-
"
|
|
106846
|
+
"bad279c2": unref(themeVars).primary5
|
|
106847
106847
|
}));
|
|
106848
106848
|
const themeVars = useThemeVars();
|
|
106849
106849
|
const { t } = useI18n();
|
|
@@ -106894,7 +106894,18 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
|
106894
106894
|
config.value = sections.reduce((acc, section) => {
|
|
106895
106895
|
section.fields.forEach((field) => {
|
|
106896
106896
|
const fieldExists = field.name in filteredInitialValues;
|
|
106897
|
-
|
|
106897
|
+
if (fieldExists) {
|
|
106898
|
+
acc[field.name] = filteredInitialValues[field.name];
|
|
106899
|
+
} else if (field.default == null) ; else if (field.type === MetadataTemplateFieldTypeEnum.MULTI_SELECT && Array.isArray(field.default)) {
|
|
106900
|
+
const validOptions = new Set(field.options?.map((opt) => opt.value));
|
|
106901
|
+
const validDefaults = field.default.filter((v) => validOptions.has(v));
|
|
106902
|
+
if (validDefaults.length > 0) acc[field.name] = validDefaults;
|
|
106903
|
+
} else if (field.type === MetadataTemplateFieldTypeEnum.SELECT) {
|
|
106904
|
+
const validOptions = new Set(field.options?.map((opt) => opt.value));
|
|
106905
|
+
if (validOptions.has(field.default)) acc[field.name] = field.default;
|
|
106906
|
+
} else {
|
|
106907
|
+
acc[field.name] = field.default;
|
|
106908
|
+
}
|
|
106898
106909
|
});
|
|
106899
106910
|
return acc;
|
|
106900
106911
|
}, {});
|
|
@@ -107158,7 +107169,7 @@ const _sfc_main$52 = /* @__PURE__ */ defineComponent({
|
|
|
107158
107169
|
}
|
|
107159
107170
|
});
|
|
107160
107171
|
|
|
107161
|
-
const CConfigEditor = /* @__PURE__ */ _export_sfc(_sfc_main$52, [["__scopeId", "data-v-
|
|
107172
|
+
const CConfigEditor = /* @__PURE__ */ _export_sfc(_sfc_main$52, [["__scopeId", "data-v-1ee48486"]]);
|
|
107162
107173
|
|
|
107163
107174
|
const _sfc_main$51 = /* @__PURE__ */ defineComponent({
|
|
107164
107175
|
__name: "CAttributesForm",
|