@sepveneto/dnde-core 0.4.6 → 0.4.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.
@@ -17,7 +17,14 @@ var schema = {
17
17
  rules: normalizeRules(config),
18
18
  attrs: config.attrs
19
19
  };
20
- return base;
20
+ switch (type) {
21
+ case "select":
22
+ case "radio":
23
+ case "radioButton":
24
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options });
25
+ default:
26
+ return base;
27
+ }
21
28
  },
22
29
  input(config) {
23
30
  return this._create("input", config);
@@ -93,7 +93,14 @@ var schema = {
93
93
  rules: normalizeRules(config),
94
94
  attrs: config.attrs
95
95
  };
96
- return base;
96
+ switch (type) {
97
+ case "select":
98
+ case "radio":
99
+ case "radioButton":
100
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options });
101
+ default:
102
+ return base;
103
+ }
97
104
  },
98
105
  input(config) {
99
106
  return this._create("input", config);
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-W776G2UQ.js";
5
5
  import {
6
6
  schema
7
- } from "../chunk-2KTF7TW7.js";
7
+ } from "../chunk-M7DQRYCX.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -57,7 +57,14 @@ var schema = {
57
57
  rules: normalizeRules(config),
58
58
  attrs: config.attrs
59
59
  };
60
- return base;
60
+ switch (type) {
61
+ case "select":
62
+ case "radio":
63
+ case "radioButton":
64
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options });
65
+ default:
66
+ return base;
67
+ }
61
68
  },
62
69
  input(config) {
63
70
  return this._create("input", config);
@@ -14,6 +14,7 @@ interface BaseConfig {
14
14
  declare const schema: {
15
15
  _create(type: any, config: BaseConfig & {
16
16
  attrs?: any;
17
+ options?: any;
17
18
  }): SchemaItem;
18
19
  input(config: BaseConfig & {
19
20
  attrs?: InputInstance["$props"];
@@ -14,6 +14,7 @@ interface BaseConfig {
14
14
  declare const schema: {
15
15
  _create(type: any, config: BaseConfig & {
16
16
  attrs?: any;
17
+ options?: any;
17
18
  }): SchemaItem;
18
19
  input(config: BaseConfig & {
19
20
  attrs?: InputInstance["$props"];
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-2KTF7TW7.js";
3
+ } from "../chunk-M7DQRYCX.js";
4
4
  import "../chunk-XJ2IJHKH.js";
5
5
  import "../chunk-6FNC3XMI.js";
6
6
  export {
package/dist/index.cjs CHANGED
@@ -97,7 +97,14 @@ var schema = {
97
97
  rules: normalizeRules(config),
98
98
  attrs: config.attrs
99
99
  };
100
- return base;
100
+ switch (type) {
101
+ case "select":
102
+ case "radio":
103
+ case "radioButton":
104
+ return __spreadProps(__spreadValues({}, base), { type, options: config.options });
105
+ default:
106
+ return base;
107
+ }
101
108
  },
102
109
  input(config) {
103
110
  return this._create("input", config);
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-W776G2UQ.js";
5
5
  import {
6
6
  schema
7
- } from "./chunk-2KTF7TW7.js";
7
+ } from "./chunk-M7DQRYCX.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde-core",
3
3
  "type": "module",
4
- "version": "0.4.6",
4
+ "version": "0.4.7",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",