@fonderie/vue-admin-screens 1.6.1 → 1.6.2

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/dist/index.cjs CHANGED
@@ -3026,6 +3026,7 @@ var AdminShell = (0, import_vue18.defineComponent)({
3026
3026
  ...loc,
3027
3027
  ...e.type ? { type: e.type } : {},
3028
3028
  ...e.locales ? { locales: e.locales } : {},
3029
+ ...e.defaultLocale ? { defaultLocale: e.defaultLocale } : {},
3029
3030
  onCreated: (c2) => editing.value = {
3030
3031
  kind: "template",
3031
3032
  type: c2.type,
@@ -3048,7 +3049,12 @@ var AdminShell = (0, import_vue18.defineComponent)({
3048
3049
  localeTabs: true,
3049
3050
  onSaved: () => editing.value = null,
3050
3051
  onDeleted: () => editing.value = null,
3051
- "onAdd-locale": (type, c2) => editing.value = { kind: "template-new", type, locales: c2.locales },
3052
+ "onAdd-locale": (type, c2) => editing.value = {
3053
+ kind: "template-new",
3054
+ type,
3055
+ locales: c2.locales,
3056
+ ...c2.defaultLocale ? { defaultLocale: c2.defaultLocale } : {}
3057
+ },
3052
3058
  "onSelect-locale": (tpl) => editing.value = {
3053
3059
  kind: "template",
3054
3060
  type: tpl.type,
@@ -3064,8 +3070,8 @@ var AdminShell = (0, import_vue18.defineComponent)({
3064
3070
  "onSelect-template": (t3) => editing.value = {
3065
3071
  kind: "template",
3066
3072
  type: t3.type,
3067
- locale: t3.locale ?? null,
3068
- system: t3.system === true
3073
+ locale: t3.locale,
3074
+ system: t3.system
3069
3075
  },
3070
3076
  "onCreate-template": (c2) => editing.value = { kind: "template-new", locales: c2.locales }
3071
3077
  });