@sepveneto/dnde-core 0.5.0 → 0.5.1

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.
@@ -130,10 +130,12 @@ interface EditorData {
130
130
  settings?: EditorSettings;
131
131
  }
132
132
 
133
- type Option = InstanceType<typeof ElOption>;
134
- type RadioOption = InstanceType<typeof ElRadio>;
135
- type RadioButtonOption = InstanceType<typeof ElRadioButton>;
133
+ type Option = InstanceType<typeof ElOption>['$props'];
134
+ type RadioOption = InstanceType<typeof ElRadio>['$props'];
135
+ type RadioButtonOption = InstanceType<typeof ElRadioButton>['$props'];
136
136
  interface SchemaItemBase {
137
+ /** @private */
138
+ _role?: string;
137
139
  label: string;
138
140
  key: string;
139
141
  formItem?: Partial<FormItemProps>;
@@ -130,10 +130,12 @@ interface EditorData {
130
130
  settings?: EditorSettings;
131
131
  }
132
132
 
133
- type Option = InstanceType<typeof ElOption>;
134
- type RadioOption = InstanceType<typeof ElRadio>;
135
- type RadioButtonOption = InstanceType<typeof ElRadioButton>;
133
+ type Option = InstanceType<typeof ElOption>['$props'];
134
+ type RadioOption = InstanceType<typeof ElRadio>['$props'];
135
+ type RadioButtonOption = InstanceType<typeof ElRadioButton>['$props'];
136
136
  interface SchemaItemBase {
137
+ /** @private */
138
+ _role?: string;
137
139
  label: string;
138
140
  key: string;
139
141
  formItem?: Partial<FormItemProps>;
@@ -10,6 +10,7 @@ import {
10
10
  var schema = {
11
11
  _create(type, config) {
12
12
  const base = {
13
+ _role: config._role,
13
14
  label: config.label,
14
15
  key: config.key,
15
16
  type,
@@ -62,6 +63,9 @@ var schema = {
62
63
  },
63
64
  styleNumber(config) {
64
65
  return this._create("styleNumber", config);
66
+ },
67
+ topbar(config) {
68
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
65
69
  }
66
70
  };
67
71
  function normalizeRules(config) {
@@ -1,4 +1,4 @@
1
- import { m as Widget, I as IWidget } from '../Widget-C7n5dKys.cjs';
1
+ import { m as Widget, I as IWidget } from '../Widget-B-BAQlzv.cjs';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { m as Widget, I as IWidget } from '../Widget-C7n5dKys.js';
1
+ import { m as Widget, I as IWidget } from '../Widget-B-BAQlzv.js';
2
2
  import 'element-plus';
3
3
  import 'vue';
4
4
  import 'async-validator';
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { m as Widget } from '../Widget-C7n5dKys.cjs';
2
+ import { m as Widget } from '../Widget-B-BAQlzv.cjs';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties } from 'vue';
2
- import { m as Widget } from '../Widget-C7n5dKys.js';
2
+ import { m as Widget } from '../Widget-B-BAQlzv.js';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
5
5
 
@@ -1,4 +1,4 @@
1
- export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.cjs';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.cjs';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.js';
1
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.js';
2
2
  import 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,6 +1,6 @@
1
1
  export { Container } from './Container.cjs';
2
2
  export { Node, RootNode } from './Node.cjs';
3
- export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.cjs';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.cjs';
4
4
  import 'vue';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
@@ -1,6 +1,6 @@
1
1
  export { Container } from './Container.js';
2
2
  export { Node, RootNode } from './Node.js';
3
- export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-C7n5dKys.js';
3
+ export { O as Option, j as RadioButtonOption, R as RadioOption, l as SchemaItem, k as SchemaItemCustom, m as Widget } from '../Widget-B-BAQlzv.js';
4
4
  import 'vue';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
@@ -86,6 +86,7 @@ function likeArray(val) {
86
86
  var schema = {
87
87
  _create(type, config) {
88
88
  const base = {
89
+ _role: config._role,
89
90
  label: config.label,
90
91
  key: config.key,
91
92
  type,
@@ -138,6 +139,9 @@ var schema = {
138
139
  },
139
140
  styleNumber(config) {
140
141
  return this._create("styleNumber", config);
142
+ },
143
+ topbar(config) {
144
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
141
145
  }
142
146
  };
143
147
  function normalizeRules(config) {
@@ -2,6 +2,6 @@ export { EventEmitter } from './EventEmitter.cjs';
2
2
  export { schema } from './schema.cjs';
3
3
  export { widget, widgetType } from './widget.cjs';
4
4
  import 'element-plus';
5
- import '../Widget-C7n5dKys.cjs';
5
+ import '../Widget-B-BAQlzv.cjs';
6
6
  import 'vue';
7
7
  import 'async-validator';
@@ -2,6 +2,6 @@ export { EventEmitter } from './EventEmitter.js';
2
2
  export { schema } from './schema.js';
3
3
  export { widget, widgetType } from './widget.js';
4
4
  import 'element-plus';
5
- import '../Widget-C7n5dKys.js';
5
+ import '../Widget-B-BAQlzv.js';
6
6
  import 'vue';
7
7
  import 'async-validator';
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-W776G2UQ.js";
5
5
  import {
6
6
  schema
7
- } from "../chunk-3C7FYUNE.js";
7
+ } from "../chunk-PRK4NPVH.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -50,6 +50,7 @@ function likeArray(val) {
50
50
  var schema = {
51
51
  _create(type, config) {
52
52
  const base = {
53
+ _role: config._role,
53
54
  label: config.label,
54
55
  key: config.key,
55
56
  type,
@@ -102,6 +103,9 @@ var schema = {
102
103
  },
103
104
  styleNumber(config) {
104
105
  return this._create("styleNumber", config);
106
+ },
107
+ topbar(config) {
108
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
105
109
  }
106
110
  };
107
111
  function normalizeRules(config) {
@@ -1,9 +1,11 @@
1
1
  import { FormItemProps, InputProps, InputNumberProps, CheckboxProps, SelectProps, RadioProps, RadioButtonProps, SwitchProps, DatePickerProps, ColorPickerProps } from 'element-plus';
2
- import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-C7n5dKys.cjs';
2
+ import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-B-BAQlzv.cjs';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
6
6
  interface BaseConfig {
7
+ /** @private */
8
+ _role?: string;
7
9
  label: SchemaItem['label'];
8
10
  key: SchemaItem['key'];
9
11
  tips?: string;
@@ -55,6 +57,11 @@ declare const schema: {
55
57
  type: string;
56
58
  }): SchemaItem;
57
59
  styleNumber(config: BaseConfig): SchemaItem;
60
+ topbar(config: BaseConfig & {
61
+ attrs?: RadioProps;
62
+ options?: RadioOption[];
63
+ link?: Record<string, SchemaItem[]>;
64
+ }): SchemaItem;
58
65
  };
59
66
 
60
67
  export { schema };
@@ -1,9 +1,11 @@
1
1
  import { FormItemProps, InputProps, InputNumberProps, CheckboxProps, SelectProps, RadioProps, RadioButtonProps, SwitchProps, DatePickerProps, ColorPickerProps } from 'element-plus';
2
- import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-C7n5dKys.js';
2
+ import { l as SchemaItem, O as Option, R as RadioOption, j as RadioButtonOption } from '../Widget-B-BAQlzv.js';
3
3
  import 'vue';
4
4
  import 'async-validator';
5
5
 
6
6
  interface BaseConfig {
7
+ /** @private */
8
+ _role?: string;
7
9
  label: SchemaItem['label'];
8
10
  key: SchemaItem['key'];
9
11
  tips?: string;
@@ -55,6 +57,11 @@ declare const schema: {
55
57
  type: string;
56
58
  }): SchemaItem;
57
59
  styleNumber(config: BaseConfig): SchemaItem;
60
+ topbar(config: BaseConfig & {
61
+ attrs?: RadioProps;
62
+ options?: RadioOption[];
63
+ link?: Record<string, SchemaItem[]>;
64
+ }): SchemaItem;
58
65
  };
59
66
 
60
67
  export { schema };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  schema
3
- } from "../chunk-3C7FYUNE.js";
3
+ } from "../chunk-PRK4NPVH.js";
4
4
  import "../chunk-XJ2IJHKH.js";
5
5
  import "../chunk-6FNC3XMI.js";
6
6
  export {
@@ -1,4 +1,4 @@
1
- import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-C7n5dKys.cjs';
1
+ import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-B-BAQlzv.cjs';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
@@ -1,4 +1,4 @@
1
- import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-C7n5dKys.js';
1
+ import { I as IWidget, l as SchemaItem, W as WidgetPos, B as Base } from '../Widget-B-BAQlzv.js';
2
2
  import * as vue from 'vue';
3
3
  import 'element-plus';
4
4
  import 'async-validator';
package/dist/index.cjs CHANGED
@@ -90,6 +90,7 @@ function likeArray(val) {
90
90
  var schema = {
91
91
  _create(type, config) {
92
92
  const base = {
93
+ _role: config._role,
93
94
  label: config.label,
94
95
  key: config.key,
95
96
  type,
@@ -142,6 +143,9 @@ var schema = {
142
143
  },
143
144
  styleNumber(config) {
144
145
  return this._create("styleNumber", config);
146
+ },
147
+ topbar(config) {
148
+ return this.radio(__spreadProps(__spreadValues({}, config), { _role: "topbar" }));
145
149
  }
146
150
  };
147
151
  function normalizeRules(config) {
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ export { schema } from './helper/schema.cjs';
3
3
  export { widget, widgetType } from './helper/widget.cjs';
4
4
  export { createCopy, createDelete } from './internal.cjs';
5
5
  export { EditorContext, editorContextKey } from './tokens.cjs';
6
- export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-C7n5dKys.cjs';
6
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-B-BAQlzv.cjs';
7
7
  import 'element-plus';
8
8
  import 'vue';
9
9
  import './class/Node.cjs';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { schema } from './helper/schema.js';
3
3
  export { widget, widgetType } from './helper/widget.js';
4
4
  export { createCopy, createDelete } from './internal.js';
5
5
  export { EditorContext, editorContextKey } from './tokens.js';
6
- export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-C7n5dKys.js';
6
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-B-BAQlzv.js';
7
7
  import 'element-plus';
8
8
  import 'vue';
9
9
  import './class/Node.js';
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-3C7FYUNE.js";
7
+ } from "./chunk-PRK4NPVH.js";
8
8
  import {
9
9
  widget,
10
10
  widgetType
@@ -1,6 +1,6 @@
1
1
  import { Node } from './class/Node.cjs';
2
2
  import 'vue';
3
- import './Widget-C7n5dKys.cjs';
3
+ import './Widget-B-BAQlzv.cjs';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { Node } from './class/Node.js';
2
2
  import 'vue';
3
- import './Widget-C7n5dKys.js';
3
+ import './Widget-B-BAQlzv.js';
4
4
  import 'element-plus';
5
5
  import 'async-validator';
6
6
 
package/dist/tokens.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { InjectionKey } from 'vue';
2
2
  import { EventEmitter } from './helper/EventEmitter.cjs';
3
3
  import { Node } from './class/Node.cjs';
4
- import './Widget-C7n5dKys.cjs';
4
+ import './Widget-B-BAQlzv.cjs';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
7
7
 
package/dist/tokens.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { InjectionKey } from 'vue';
2
2
  import { EventEmitter } from './helper/EventEmitter.js';
3
3
  import { Node } from './class/Node.js';
4
- import './Widget-C7n5dKys.js';
4
+ import './Widget-B-BAQlzv.js';
5
5
  import 'element-plus';
6
6
  import 'async-validator';
7
7
 
package/dist/types.d.cts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'element-plus';
2
2
  import 'vue';
3
- export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-C7n5dKys.cjs';
3
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-B-BAQlzv.cjs';
4
4
  import 'async-validator';
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  import 'element-plus';
2
2
  import 'vue';
3
- export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-C7n5dKys.js';
3
+ export { B as Base, D as DisabledItemFn, E as EditorConfig, h as EditorData, e as EditorRoute, c as EditorSchema, g as EditorSettings, d as EditorWidget, f as EditorWidgets, b as ISchema, I as IWidget, a as SchemaBox, S as SchemaOther, W as WidgetPos, i as isBox } from './Widget-B-BAQlzv.js';
4
4
  import 'async-validator';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sepveneto/dnde-core",
3
3
  "type": "module",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "description": "",
6
6
  "author": "sepveneto",
7
7
  "license": "MIT",