@vtj/designer 0.7.29 → 0.7.31

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.
Files changed (140) hide show
  1. package/dist/index.cjs +53 -48
  2. package/dist/index.mjs +3372 -3083
  3. package/dist/style.css +1 -1
  4. package/package.json +10 -8
  5. package/types/components/binders/event.d.ts +4 -3
  6. package/types/components/binders/index.d.ts +3 -2
  7. package/types/components/binders/variable.d.ts +3 -2
  8. package/types/components/editor/Editor.d.ts +2 -1
  9. package/types/components/editor/index.d.ts +5 -6
  10. package/types/components/hooks/useAssets.d.ts +3 -2
  11. package/types/components/hooks/useBinder.d.ts +3 -2
  12. package/types/components/hooks/useBlocks.d.ts +1 -1
  13. package/types/components/hooks/useCurrent.d.ts +2 -2
  14. package/types/components/hooks/useDataSources.d.ts +2 -2
  15. package/types/components/hooks/useDeps.d.ts +2 -2
  16. package/types/components/hooks/useDesigner.d.ts +8 -7
  17. package/types/components/hooks/useDirectives.d.ts +5 -4
  18. package/types/components/hooks/useHistory.d.ts +1 -1
  19. package/types/components/hooks/useNodeEvents.d.ts +4 -3
  20. package/types/components/hooks/useNodeProps.d.ts +5 -4
  21. package/types/components/hooks/useProject.d.ts +1 -1
  22. package/types/components/hooks/useRegion.d.ts +4 -3
  23. package/types/components/hooks/useSelected.d.ts +3 -2
  24. package/types/components/index.d.ts +6 -5
  25. package/types/components/regions/actions.d.ts +4 -3
  26. package/types/components/regions/apps.d.ts +4 -3
  27. package/types/components/regions/brand.d.ts +4 -3
  28. package/types/components/regions/empty.d.ts +1 -1
  29. package/types/components/regions/index.d.ts +17 -17
  30. package/types/components/regions/preview.d.ts +4 -3
  31. package/types/components/regions/settings.d.ts +4 -3
  32. package/types/components/regions/status.d.ts +4 -3
  33. package/types/components/regions/toolbar.d.ts +4 -3
  34. package/types/components/regions/workspace.d.ts +4 -3
  35. package/types/components/setter.d.ts +4 -4
  36. package/types/components/setters/boolean.d.ts +1 -1
  37. package/types/components/setters/color.d.ts +1 -1
  38. package/types/components/setters/expression.d.ts +4 -3
  39. package/types/components/setters/function.d.ts +3 -2
  40. package/types/components/setters/icon.d.ts +1 -1
  41. package/types/components/setters/image.d.ts +3 -1
  42. package/types/components/setters/index.d.ts +17 -15
  43. package/types/components/setters/json.d.ts +1 -1
  44. package/types/components/setters/number.d.ts +1 -1
  45. package/types/components/setters/radio.d.ts +1 -1
  46. package/types/components/setters/section.d.ts +1 -1
  47. package/types/components/setters/select.d.ts +1 -1
  48. package/types/components/setters/size.d.ts +1 -1
  49. package/types/components/setters/slider.d.ts +1 -1
  50. package/types/components/setters/string.d.ts +1 -1
  51. package/types/components/setters/tag.d.ts +1 -1
  52. package/types/components/shared/Icon.d.ts +3 -2
  53. package/types/components/shared/binder.d.ts +4 -3
  54. package/types/components/shared/box.d.ts +1 -1
  55. package/types/components/shared/index.d.ts +10 -9
  56. package/types/components/shared/item.d.ts +11 -11
  57. package/types/components/shared/panel.d.ts +2 -2
  58. package/types/components/shared/slots.d.ts +3 -2
  59. package/types/components/shared/tabs.d.ts +4 -3
  60. package/types/components/shared/viewer.d.ts +3 -2
  61. package/types/components/shared/viewport.d.ts +2 -2
  62. package/types/components/skeleton.d.ts +1 -1
  63. package/types/components/widgets/about/index.d.ts +1 -1
  64. package/types/components/widgets/actions/index.d.ts +1 -1
  65. package/types/components/widgets/apis/base-info.d.ts +3 -0
  66. package/types/components/widgets/apis/form.d.ts +18 -0
  67. package/types/components/widgets/apis/index.d.ts +1 -1
  68. package/types/components/widgets/apis/jsonp-options.d.ts +3 -0
  69. package/types/components/widgets/apis/mock-template.d.ts +3 -0
  70. package/types/components/widgets/apis/request-settings.d.ts +3 -0
  71. package/types/components/widgets/blocks/index.d.ts +1 -1
  72. package/types/components/widgets/components/index.d.ts +1 -1
  73. package/types/components/widgets/css/index.d.ts +1 -1
  74. package/types/components/widgets/data-sources/form.d.ts +4 -3
  75. package/types/components/widgets/data-sources/index.d.ts +1 -1
  76. package/types/components/widgets/defined/events.d.ts +4 -3
  77. package/types/components/widgets/defined/index.d.ts +1 -1
  78. package/types/components/widgets/defined/injects.d.ts +4 -3
  79. package/types/components/widgets/defined/props.d.ts +4 -3
  80. package/types/components/widgets/defined/slots.d.ts +4 -3
  81. package/types/components/widgets/deps/index.d.ts +1 -1
  82. package/types/components/widgets/designer/actions.d.ts +2 -1
  83. package/types/components/widgets/designer/index.d.ts +2 -2
  84. package/types/components/widgets/directives/index.d.ts +1 -1
  85. package/types/components/widgets/docs/index.d.ts +1 -1
  86. package/types/components/widgets/empty/index.d.ts +1 -1
  87. package/types/components/widgets/events/index.d.ts +3 -2
  88. package/types/components/widgets/history/index.d.ts +1 -1
  89. package/types/components/widgets/index.d.ts +29 -31
  90. package/types/components/widgets/logo/index.d.ts +1 -4
  91. package/types/components/widgets/node-path/index.d.ts +1 -1
  92. package/types/components/widgets/outline/index.d.ts +4 -2
  93. package/types/components/widgets/pages/form.d.ts +3 -2
  94. package/types/components/widgets/pages/index.d.ts +1 -1
  95. package/types/components/widgets/previewer/index.d.ts +3 -2
  96. package/types/components/widgets/project-config/index.d.ts +3 -0
  97. package/types/components/widgets/properties/index.d.ts +1 -1
  98. package/types/components/widgets/properties/setters.d.ts +4 -3
  99. package/types/components/widgets/raw/index.d.ts +1 -1
  100. package/types/components/widgets/schema/index.d.ts +1 -1
  101. package/types/components/widgets/scripts/computed.d.ts +3 -2
  102. package/types/components/widgets/scripts/group.d.ts +4 -3
  103. package/types/components/widgets/scripts/index.d.ts +1 -1
  104. package/types/components/widgets/scripts/lifeCycles.d.ts +3 -2
  105. package/types/components/widgets/scripts/methods.d.ts +3 -2
  106. package/types/components/widgets/scripts/state.d.ts +3 -2
  107. package/types/components/widgets/scripts/watch.d.ts +3 -2
  108. package/types/components/widgets/style/JsonMode.d.ts +1 -1
  109. package/types/components/widgets/style/backgound.d.ts +1 -1
  110. package/types/components/widgets/style/border.d.ts +1 -1
  111. package/types/components/widgets/style/effect.d.ts +1 -1
  112. package/types/components/widgets/style/index.d.ts +1 -1
  113. package/types/components/widgets/style/layout.d.ts +1 -1
  114. package/types/components/widgets/style/positioning.d.ts +1 -1
  115. package/types/components/widgets/style/sizing.d.ts +1 -1
  116. package/types/components/widgets/style/spacing-input.d.ts +1 -1
  117. package/types/components/widgets/style/spacing.d.ts +1 -1
  118. package/types/components/widgets/style/texting.d.ts +1 -1
  119. package/types/components/widgets/switcher/index.d.ts +1 -1
  120. package/types/components/widgets/toolbar/index.d.ts +1 -1
  121. package/types/framework/assets.d.ts +3 -2
  122. package/types/framework/designer.d.ts +5 -4
  123. package/types/framework/engine.d.ts +6 -5
  124. package/types/framework/renderer.d.ts +5 -4
  125. package/types/framework/simulator.d.ts +6 -5
  126. package/types/framework/types.d.ts +3 -2
  127. package/types/index.d.ts +1 -0
  128. package/types/managers/built-in/deps.d.ts +2 -1
  129. package/types/managers/built-in/materials.d.ts +2 -1
  130. package/types/managers/built-in/setters.d.ts +2 -1
  131. package/types/managers/built-in/widgets.d.ts +2 -1
  132. package/types/managers/deps.d.ts +2 -1
  133. package/types/managers/setter.d.ts +3 -2
  134. package/types/managers/widget.d.ts +2 -1
  135. package/types/utils.d.ts +2 -1
  136. package/types/version.d.ts +2 -2
  137. package/types/wrappers/region.d.ts +3 -2
  138. package/types/wrappers/setter.d.ts +6 -6
  139. package/types/wrappers/skeleton.d.ts +8 -7
  140. package/types/wrappers/widget.d.ts +4 -3
@@ -6,7 +6,7 @@ export declare const regions: {
6
6
  type: PropType<string>;
7
7
  required: true;
8
8
  };
9
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
9
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
10
10
  region: {
11
11
  type: PropType<string>;
12
12
  required: true;
@@ -18,9 +18,9 @@ export declare const regions: {
18
18
  required: true;
19
19
  };
20
20
  }, {
21
- widgets: ComputedRef<Widget[]>;
21
+ widgets: ComputedRef< Widget[]>;
22
22
  widgetsRef: Ref<any>;
23
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
23
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
24
24
  region: {
25
25
  type: PropType<RegionType>;
26
26
  required: true;
@@ -35,9 +35,9 @@ export declare const regions: {
35
35
  type: PropType<boolean>;
36
36
  };
37
37
  }, {
38
- widgets: ComputedRef<Widget[]>;
38
+ widgets: ComputedRef< Widget[]>;
39
39
  widgetsRef: Ref<any>;
40
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
40
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
41
41
  region: {
42
42
  type: PropType<RegionType>;
43
43
  required: true;
@@ -52,9 +52,9 @@ export declare const regions: {
52
52
  required: true;
53
53
  };
54
54
  }, {
55
- widgets: ComputedRef<Widget[]>;
55
+ widgets: ComputedRef< Widget[]>;
56
56
  widgetsRef: Ref<any>;
57
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
57
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
58
58
  region: {
59
59
  type: PropType<RegionType>;
60
60
  required: true;
@@ -70,10 +70,10 @@ export declare const regions: {
70
70
  default: number;
71
71
  };
72
72
  }, {
73
- widgets: ComputedRef<Widget[]>;
73
+ widgets: ComputedRef< Widget[]>;
74
74
  widgetsRef: Ref<any>;
75
75
  setActive: (name: string) => void;
76
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
76
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
77
77
  region: {
78
78
  type: PropType<RegionType>;
79
79
  required: true;
@@ -92,10 +92,10 @@ export declare const regions: {
92
92
  };
93
93
  }, {
94
94
  currentTab: Ref<string>;
95
- widgets: ComputedRef<Widget[]>;
95
+ widgets: ComputedRef< Widget[]>;
96
96
  widgetsRef: Ref<any>;
97
97
  openTab: (name: string, props?: Record<string, any>) => void;
98
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
98
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
99
99
  region: {
100
100
  type: PropType<RegionType>;
101
101
  required: true;
@@ -107,9 +107,9 @@ export declare const regions: {
107
107
  required: true;
108
108
  };
109
109
  }, {
110
- widgets: ComputedRef<Widget[]>;
110
+ widgets: ComputedRef< Widget[]>;
111
111
  widgetsRef: Ref<any>;
112
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
112
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
113
113
  region: {
114
114
  type: PropType<RegionType>;
115
115
  required: true;
@@ -121,9 +121,9 @@ export declare const regions: {
121
121
  required: true;
122
122
  };
123
123
  }, {
124
- widgets: ComputedRef<Widget[]>;
124
+ widgets: ComputedRef< Widget[]>;
125
125
  widgetsRef: Ref<any>;
126
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
126
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
127
127
  region: {
128
128
  type: PropType<RegionType>;
129
129
  required: true;
@@ -136,9 +136,9 @@ export declare const regions: {
136
136
  };
137
137
  }, {
138
138
  currentTab: Ref<string>;
139
- widgets: ComputedRef<Widget[]>;
139
+ widgets: ComputedRef< Widget[]>;
140
140
  widgetsRef: Ref<any>;
141
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
141
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
142
142
  region: {
143
143
  type: PropType<RegionType>;
144
144
  required: true;
@@ -1,13 +1,14 @@
1
1
  import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Widget, RegionType } from '../../framework';
2
+ import { RegionType, Widget } from '../../framework';
3
+
3
4
  export interface Props {
4
5
  region: RegionType;
5
6
  }
6
7
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
7
8
  currentTab: Ref<string>;
8
- widgets: ComputedRef<Widget[]>;
9
+ widgets: ComputedRef< Widget[]>;
9
10
  widgetsRef: Ref<any>;
10
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
11
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
11
12
  export default _default;
12
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
14
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,12 +1,13 @@
1
1
  import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Widget, RegionType } from '../../framework';
2
+ import { RegionType, Widget } from '../../framework';
3
+
3
4
  export interface Props {
4
5
  region: RegionType;
5
6
  }
6
7
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
7
- widgets: ComputedRef<Widget[]>;
8
+ widgets: ComputedRef< Widget[]>;
8
9
  widgetsRef: Ref<any>;
9
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
10
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
10
11
  export default _default;
11
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
13
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,12 +1,13 @@
1
1
  import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Widget, RegionType } from '../../framework';
2
+ import { RegionType, Widget } from '../../framework';
3
+
3
4
  export interface Props {
4
5
  region: RegionType;
5
6
  }
6
7
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
7
- widgets: ComputedRef<Widget[]>;
8
+ widgets: ComputedRef< Widget[]>;
8
9
  widgetsRef: Ref<any>;
9
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
10
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
10
11
  export default _default;
11
12
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
13
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,13 +1,14 @@
1
1
  import { DefineComponent, ComputedRef, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Widget, RegionType } from '../../framework';
2
+ import { RegionType, Widget } from '../../framework';
3
+
3
4
  export interface Props {
4
5
  region: RegionType;
5
6
  preview?: boolean;
6
7
  }
7
8
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
8
- widgets: ComputedRef<Widget[]>;
9
+ widgets: ComputedRef< Widget[]>;
9
10
  widgetsRef: Ref<any>;
10
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
11
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
11
12
  export default _default;
12
13
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
14
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,14 +1,15 @@
1
1
  import { DefineComponent, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { Widget, RegionType } from '../../framework';
2
+ import { RegionType, Widget } from '../../framework';
3
+
3
4
  export interface Props {
4
5
  region: RegionType;
5
6
  }
6
7
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {
7
8
  currentTab: Ref<string>;
8
- widgets: ComputedRef<Widget[]>;
9
+ widgets: ComputedRef< Widget[]>;
9
10
  widgetsRef: Ref<any>;
10
11
  openTab: (name: string, props?: Record<string, any>) => void;
11
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
12
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
12
13
  export default _default;
13
14
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
15
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,7 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type MaterialSetter } from '@vtj/core';
3
- import { type Context } from '@vtj/renderer';
4
- import { BlockModel } from '@vtj/core';
2
+ import { Context } from '@vtj/renderer';
3
+ import { MaterialSetter, BlockModel } from '@vtj/core';
4
+
5
5
  export interface Props {
6
6
  context: Context | null;
7
7
  current: BlockModel | null;
@@ -22,7 +22,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
22
22
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
23
23
  change: (...args: any[]) => void;
24
24
  remove: (...args: any[]) => void;
25
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
25
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
26
  label: string;
27
27
  options: () => never[];
28
28
  variable: boolean;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
3
  export default _default;
@@ -1,13 +1,14 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type JSExpression } from '@vtj/core';
3
- import { type Context } from '@vtj/renderer';
2
+ import { Context } from '@vtj/renderer';
3
+ import { JSExpression } from '@vtj/core';
4
+
4
5
  export interface Props {
5
6
  modelValue?: JSExpression | string;
6
7
  context?: Context;
7
8
  }
8
9
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
10
  change: (...args: any[]) => void;
10
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
11
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
11
12
  onChange?: ((...args: any[]) => any) | undefined;
12
13
  }, {}, {}>;
13
14
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type JSFunction } from '@vtj/core';
2
+ import { JSFunction } from '@vtj/core';
3
+
3
4
  export interface Props {
4
5
  modelValue?: JSFunction;
5
6
  }
@@ -10,7 +11,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
10
11
  };
11
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
12
13
  change: (...args: any[]) => void;
13
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
15
  modelValue: () => {
15
16
  type: string;
16
17
  value: string;
@@ -9,7 +9,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
9
9
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
10
  change: (...args: any[]) => void;
11
11
  "update:modelValue": (...args: any[]) => void;
12
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
13
  modelValue: string;
14
14
  size: string;
15
15
  }>>> & {
@@ -7,10 +7,12 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
7
7
  limit: number;
8
8
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
9
  change: (...args: any[]) => void;
10
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ "update:modelValue": (...args: any[]) => void;
11
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
12
  limit: number;
12
13
  }>>> & {
13
14
  onChange?: ((...args: any[]) => any) | undefined;
15
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14
16
  }, {
15
17
  limit: number;
16
18
  }, {}>;
@@ -2,8 +2,8 @@ import { Context } from '@vtj/renderer';
2
2
  import { JSExpression, JSFunction } from '@vtj/core';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
4
4
  export declare const setters: {
5
- StringSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
6
- BooleanSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
5
+ StringSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
6
+ BooleanSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
7
7
  ExpressionSetter: DefineComponent<{
8
8
  modelValue: {
9
9
  type: PropType<string | JSExpression>;
@@ -13,7 +13,7 @@ export declare const setters: {
13
13
  };
14
14
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
15
  change: (...args: any[]) => void;
16
- }, string, PublicProps, Readonly<ExtractPropTypes<{
16
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
17
17
  modelValue: {
18
18
  type: PropType<string | JSExpression>;
19
19
  };
@@ -31,7 +31,7 @@ export declare const setters: {
31
31
  }[]>;
32
32
  default: () => never[];
33
33
  };
34
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
34
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
35
35
  options: {
36
36
  type: PropType<{
37
37
  label: string;
@@ -51,14 +51,14 @@ export declare const setters: {
51
51
  };
52
52
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
53
53
  change: (...args: any[]) => void;
54
- }, string, PublicProps, Readonly<ExtractPropTypes<{
54
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
55
55
  modelValue: {
56
56
  type: PropType<any>;
57
57
  };
58
58
  }>> & {
59
59
  onChange?: ((...args: any[]) => any) | undefined;
60
60
  }, {}, {}>;
61
- ColorSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
61
+ ColorSetter: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
62
62
  IconSetter: DefineComponent<{
63
63
  size: {
64
64
  type: PropType<"" | "default" | "small" | "large">;
@@ -71,7 +71,7 @@ export declare const setters: {
71
71
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
72
72
  change: (...args: any[]) => void;
73
73
  "update:modelValue": (...args: any[]) => void;
74
- }, string, PublicProps, Readonly<ExtractPropTypes<{
74
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
75
75
  size: {
76
76
  type: PropType<"" | "default" | "small" | "large">;
77
77
  default: string;
@@ -98,7 +98,7 @@ export declare const setters: {
98
98
  };
99
99
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
100
100
  change: (...args: any[]) => void;
101
- }, string, PublicProps, Readonly<ExtractPropTypes<{
101
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
102
102
  type: {
103
103
  type: PropType<"Array" | "Object" | "JSON">;
104
104
  default: string;
@@ -123,7 +123,7 @@ export declare const setters: {
123
123
  };
124
124
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
125
125
  change: (...args: any[]) => void;
126
- }, string, PublicProps, Readonly<ExtractPropTypes<{
126
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
127
127
  modelValue: {
128
128
  type: PropType<JSFunction>;
129
129
  default: () => {
@@ -145,7 +145,7 @@ export declare const setters: {
145
145
  }[]>;
146
146
  default: () => never[];
147
147
  };
148
- }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
148
+ }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
149
149
  options: {
150
150
  type: PropType<{
151
151
  label: string;
@@ -176,7 +176,7 @@ export declare const setters: {
176
176
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
177
177
  change: (...args: any[]) => void;
178
178
  "update:modelValue": (...args: any[]) => void;
179
- }, string, PublicProps, Readonly<ExtractPropTypes<{
179
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
180
180
  modelValue: {
181
181
  type: PropType<any>;
182
182
  };
@@ -204,7 +204,7 @@ export declare const setters: {
204
204
  };
205
205
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
206
206
  change: (...args: any[]) => void;
207
- }, string, PublicProps, Readonly<ExtractPropTypes<{
207
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
208
208
  modelValue: {
209
209
  type: PropType<string>;
210
210
  };
@@ -221,7 +221,8 @@ export declare const setters: {
221
221
  };
222
222
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
223
223
  change: (...args: any[]) => void;
224
- }, string, PublicProps, Readonly<ExtractPropTypes<{
224
+ "update:modelValue": (...args: any[]) => void;
225
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
225
226
  modelValue: {
226
227
  type: PropType<any>;
227
228
  };
@@ -231,6 +232,7 @@ export declare const setters: {
231
232
  };
232
233
  }>> & {
233
234
  onChange?: ((...args: any[]) => any) | undefined;
235
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
234
236
  }, {
235
237
  limit: number;
236
238
  }, {}>;
@@ -244,7 +246,7 @@ export declare const setters: {
244
246
  };
245
247
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
246
248
  change: (...args: any[]) => void;
247
- }, string, PublicProps, Readonly<ExtractPropTypes<{
249
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
248
250
  modelValue: {
249
251
  type: PropType<string>;
250
252
  };
@@ -265,7 +267,7 @@ export declare const setters: {
265
267
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
266
268
  change: (...args: any[]) => void;
267
269
  "update:modelValue": (...args: any[]) => void;
268
- }, string, PublicProps, Readonly<ExtractPropTypes<{
270
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
269
271
  modelValue: {
270
272
  type: PropType<number | number[]>;
271
273
  default: undefined;
@@ -8,7 +8,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
8
8
  type: string;
9
9
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
10
10
  change: (...args: any[]) => void;
11
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
12
  modelValue: undefined;
13
13
  type: string;
14
14
  }>>> & {
@@ -4,7 +4,7 @@ export interface Props {
4
4
  }
5
5
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
6
  change: (...args: any[]) => void;
7
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
7
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
8
8
  onChange?: ((...args: any[]) => any) | undefined;
9
9
  }, {}, {}>;
10
10
  export default _default;
@@ -8,7 +8,7 @@ export interface Props {
8
8
  }
9
9
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
10
  options: () => never[];
11
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
12
  options: () => never[];
13
13
  }>>>, {
14
14
  options: {
@@ -7,7 +7,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
7
7
  sections: number;
8
8
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
9
9
  change: (...args: any[]) => void;
10
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
11
  sections: number;
12
12
  }>>> & {
13
13
  onChange?: ((...args: any[]) => any) | undefined;
@@ -7,7 +7,7 @@ export interface Props {
7
7
  }
8
8
  declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
9
  options: () => never[];
10
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
11
  options: () => never[];
12
12
  }>>>, {
13
13
  options: {
@@ -4,7 +4,7 @@ export interface Props {
4
4
  }
5
5
  declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
6
6
  change: (...args: any[]) => void;
7
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
7
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
8
8
  onChange?: ((...args: any[]) => any) | undefined;
9
9
  }, {}, {}>;
10
10
  export default _default;
@@ -7,7 +7,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
7
7
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
8
8
  change: (...args: any[]) => void;
9
9
  "update:modelValue": (...args: any[]) => void;
10
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
11
  modelValue: undefined;
12
12
  }>>> & {
13
13
  onChange?: ((...args: any[]) => any) | undefined;
@@ -1,3 +1,3 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
- declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{}>>, {}, {}>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
3
3
  export default _default;
@@ -12,7 +12,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
12
12
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
13
  change: (...args: any[]) => void;
14
14
  "update:modelValue": (...args: any[]) => void;
15
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
16
  options: () => never[];
17
17
  }>>> & {
18
18
  onChange?: ((...args: any[]) => any) | undefined;
@@ -1,5 +1,6 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import type { VueComponent } from '../../framework';
2
+ import { VueComponent } from '../../framework';
3
+
3
4
  export interface Props {
4
5
  icon?: VueComponent;
5
6
  label?: string;
@@ -11,7 +12,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
11
12
  open: boolean;
12
13
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
13
14
  click: (...args: any[]) => void;
14
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
16
  active: boolean;
16
17
  open: boolean;
17
18
  }>>> & {
@@ -1,6 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
- import { type Context } from '@vtj/renderer';
3
2
  import { BlockModel } from '@vtj/core';
3
+ import { Context } from '@vtj/renderer';
4
+
4
5
  export interface Props {
5
6
  title: string;
6
7
  context: Context | null;
@@ -11,14 +12,14 @@ export interface Props {
11
12
  submitMethod?: (model: Record<string, any>) => Promise<boolean>;
12
13
  unbindEnabled?: boolean;
13
14
  }
14
- declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
16
  cancel: (...args: any[]) => void;
16
17
  "update:modelValue": (...args: any[]) => void;
17
18
  close: (...args: any[]) => void;
18
19
  submit: (...args: any[]) => void;
19
20
  unbind: (...args: any[]) => void;
20
21
  pick: (...args: any[]) => void;
21
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
22
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
22
23
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
23
24
  onSubmit?: ((...args: any[]) => any) | undefined;
24
25
  onClose?: ((...args: any[]) => any) | undefined;
@@ -11,7 +11,7 @@ declare const _default: DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}
11
11
  edit: (...args: any[]) => void;
12
12
  dragstart: (...args: any[]) => void;
13
13
  dragend: (...args: any[]) => void;
14
- }, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
14
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
15
15
  onDragend?: ((...args: any[]) => any) | undefined;
16
16
  onDragstart?: ((...args: any[]) => any) | undefined;
17
17
  onRemove?: ((...args: any[]) => any) | undefined;
@@ -1,11 +1,12 @@
1
- import Icon from "./Icon";
2
- import Panel from "./panel";
3
- import Tabs from "./tabs";
4
- import Item from "./item";
5
- import Box from "./box";
6
- import Binder from "./binder";
7
- import Viewer from "./viewer";
8
- import SlotsPicker from "./slots";
9
- import Viewport from "./viewport";
1
+ import { default as Viewport } from "./viewport";
2
+ import { default as SlotsPicker } from "./slots";
3
+ import { default as Viewer } from "./viewer";
4
+ import { default as Binder } from "./binder";
5
+ import { default as Box } from "./box";
6
+ import { default as Item } from "./item";
7
+ import { default as Tabs } from "./tabs";
8
+ import { default as Panel } from "./panel";
9
+ import { default as Icon } from "./Icon";
10
+
10
11
  export * from './types';
11
12
  export { Icon, Panel, Tabs, Item, Box, Binder, Viewer, SlotsPicker, Viewport };