@sepveneto/dnde 0.5.6 → 0.5.7

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.
@@ -1,5 +1,7 @@
1
+ import type { SchemaItem } from '@sepveneto/dnde-core/class';
1
2
  type __VLS_Props = {
2
- config: Record<string, any>;
3
+ data: Record<string, any>;
4
+ config: SchemaItem;
3
5
  stylesheet: boolean;
4
6
  };
5
7
  type __VLS_PublicProps = __VLS_Props & {
package/dist/editor.js CHANGED
@@ -106142,6 +106142,7 @@ const _hoisted_1$4 = { key: 9 };
106142
106142
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
106143
106143
  __name: "ConfigRender",
106144
106144
  props: /* @__PURE__ */ mergeModels({
106145
+ data: { type: Object },
106145
106146
  config: { type: Object },
106146
106147
  stylesheet: { type: Boolean }
106147
106148
  }, {
@@ -106228,8 +106229,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
106228
106229
  modelValue: model.value,
106229
106230
  "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value = $event),
106230
106231
  config: _ctx.config,
106231
- type: _ctx.config.name
106232
- }, _ctx.config.attrs), null, 16, ["modelValue", "config", "type"])) : (openBlock(), createElementBlock("div", _hoisted_1$4, " unknown type: " + toDisplayString(_ctx.config.type), 1));
106232
+ type: _ctx.config.name,
106233
+ data: _ctx.data
106234
+ }, _ctx.config.attrs), null, 16, ["modelValue", "config", "type", "data"])) : (openBlock(), createElementBlock("div", _hoisted_1$4, " unknown type: " + toDisplayString(_ctx.config.type), 1));
106233
106235
  };
106234
106236
  }
106235
106237
  });
@@ -106301,9 +106303,10 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
106301
106303
  createVNode(_sfc_main$8, {
106302
106304
  "model-value": getData(form.value, item.key),
106303
106305
  stylesheet: "",
106304
- config: form.value,
106306
+ config: item,
106307
+ data: form.value,
106305
106308
  "onUpdate:modelValue": ($event) => updateData(item.key, $event)
106306
- }, null, 8, ["model-value", "config", "onUpdate:modelValue"])
106309
+ }, null, 8, ["model-value", "config", "data", "onUpdate:modelValue"])
106307
106310
  ]),
106308
106311
  _: 2
106309
106312
  }, 1032, ["label", "prop", "rules", "label-width"]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde",
3
3
  "type": "module",
4
- "version": "0.5.6",
4
+ "version": "0.5.7",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "GPL",