@sepveneto/dnde 0.5.2 → 0.5.3

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,9 +1,6 @@
1
1
  import type { SchemaItem } from '@sepveneto/dnde-core/class';
2
2
  type __VLS_Props = {
3
- config: SchemaItem & {
4
- attrs?: any;
5
- options?: any[];
6
- };
3
+ config: SchemaItem;
7
4
  stylesheet: boolean;
8
5
  };
9
6
  type __VLS_PublicProps = __VLS_Props & {
package/dist/editor.js CHANGED
@@ -106161,6 +106161,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
106161
106161
  const _component_ElInput = resolveComponent("ElInput");
106162
106162
  const _component_ElOption = resolveComponent("ElOption");
106163
106163
  const _component_ElSelect = resolveComponent("ElSelect");
106164
+ const _component_ElRadio = resolveComponent("ElRadio");
106165
+ const _component_ElRadioButton = resolveComponent("ElRadioButton");
106166
+ const _component_ElRadioGroup = resolveComponent("ElRadioGroup");
106164
106167
  const _component_ElInputNumber = resolveComponent("ElInputNumber");
106165
106168
  const _component_ElSwitch = resolveComponent("ElSwitch");
106166
106169
  const _component_ElDatePicker = resolveComponent("ElDatePicker");
@@ -106180,33 +106183,49 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
106180
106183
  }), 128))
106181
106184
  ]),
106182
106185
  _: 1
106183
- }, 16, ["modelValue", "append-to"])) : _ctx.config.type === "number" ? (openBlock(), createBlock(_component_ElInputNumber, mergeProps({
106186
+ }, 16, ["modelValue", "append-to"])) : _ctx.config.type === "radio" || _ctx.config.type === "radioButton" ? (openBlock(), createBlock(_component_ElRadioGroup, mergeProps({
106184
106187
  key: 2,
106185
106188
  modelValue: model.value,
106186
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => model.value = $event),
106187
- "controls-position": "right"
106188
- }, _ctx.config.attrs), null, 16, ["modelValue"])) : _ctx.config.type === "styleNumber" ? (openBlock(), createBlock(_sfc_main$9, {
106189
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => model.value = $event)
106190
+ }, _ctx.config.attrs), {
106191
+ default: withCtx(() => [
106192
+ _ctx.config.type === "radio" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(_ctx.config.options, (item) => {
106193
+ return openBlock(), createBlock(_component_ElRadio, mergeProps({
106194
+ key: String(item.value)
106195
+ }, { ref_for: true }, item), null, 16);
106196
+ }), 128)) : _ctx.config.type === "radioButton" ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(_ctx.config.options, (item) => {
106197
+ return openBlock(), createBlock(_component_ElRadioButton, mergeProps({
106198
+ key: String(item.value)
106199
+ }, { ref_for: true }, item), null, 16);
106200
+ }), 128)) : createCommentVNode("", true)
106201
+ ]),
106202
+ _: 1
106203
+ }, 16, ["modelValue"])) : _ctx.config.type === "number" ? (openBlock(), createBlock(_component_ElInputNumber, mergeProps({
106189
106204
  key: 3,
106190
106205
  modelValue: model.value,
106191
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => model.value = $event)
106192
- }, null, 8, ["modelValue"])) : _ctx.config.type === "switch" ? (openBlock(), createBlock(_component_ElSwitch, mergeProps({
106206
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => model.value = $event),
106207
+ "controls-position": "right"
106208
+ }, _ctx.config.attrs), null, 16, ["modelValue"])) : _ctx.config.type === "styleNumber" ? (openBlock(), createBlock(_sfc_main$9, {
106193
106209
  key: 4,
106194
106210
  modelValue: model.value,
106195
106211
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => model.value = $event)
106196
- }, _ctx.config.attrs), null, 16, ["modelValue"])) : _ctx.config.type === "datetimePicker" ? (openBlock(), createBlock(_component_ElDatePicker, mergeProps({
106212
+ }, null, 8, ["modelValue"])) : _ctx.config.type === "switch" ? (openBlock(), createBlock(_component_ElSwitch, mergeProps({
106197
106213
  key: 5,
106198
106214
  modelValue: model.value,
106199
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => model.value = $event),
106200
- "append-to": appendTo.value
106201
- }, _ctx.config.attrs), null, 16, ["modelValue", "append-to"])) : _ctx.config.type === "colorPicker" ? (openBlock(), createBlock(_sfc_main$a, mergeProps({
106215
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => model.value = $event)
106216
+ }, _ctx.config.attrs), null, 16, ["modelValue"])) : _ctx.config.type === "datetimePicker" ? (openBlock(), createBlock(_component_ElDatePicker, mergeProps({
106202
106217
  key: 6,
106203
106218
  modelValue: model.value,
106204
106219
  "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => model.value = $event),
106205
106220
  "append-to": appendTo.value
106206
- }, _ctx.config.attrs), null, 16, ["modelValue", "append-to"])) : (openBlock(), createBlock(resolveDynamicComponent(unref(configRender)), mergeProps({
106221
+ }, _ctx.config.attrs), null, 16, ["modelValue", "append-to"])) : _ctx.config.type === "colorPicker" ? (openBlock(), createBlock(_sfc_main$a, mergeProps({
106207
106222
  key: 7,
106208
106223
  modelValue: model.value,
106209
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value = $event),
106224
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => model.value = $event)
106225
+ }, _ctx.config.attrs, { "append-to": appendTo.value }), null, 16, ["modelValue", "append-to"])) : (openBlock(), createBlock(resolveDynamicComponent(unref(configRender)), mergeProps({
106226
+ key: 8,
106227
+ modelValue: model.value,
106228
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => model.value = $event),
106210
106229
  config: model.value,
106211
106230
  type: _ctx.config.type
106212
106231
  }, _ctx.config.attrs), null, 16, ["modelValue", "config", "type"]));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde",
3
3
  "type": "module",
4
- "version": "0.5.2",
4
+ "version": "0.5.3",
5
5
  "description": "",
6
6
  "author": "",
7
7
  "license": "GPL",