@vtj/designer 0.16.15 → 0.16.17

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 (34) hide show
  1. package/README.md +2 -2
  2. package/dist/Editor-Cvt7c1SM.js +4 -0
  3. package/dist/{index-CoL57uQw.js → index-D1sVGKz7.js} +6295 -5907
  4. package/dist/index.mjs +12 -11
  5. package/dist/style.css +1 -1
  6. package/package.json +7 -7
  7. package/types/components/hooks/useDesigner.d.ts +3 -0
  8. package/types/components/setters/image.d.ts +3 -3
  9. package/types/components/setters/index.d.ts +3 -3
  10. package/types/components/shared/binder.d.ts +11 -11
  11. package/types/components/shared/panel.d.ts +16 -16
  12. package/types/components/widgets/about/index.d.ts +6 -1
  13. package/types/components/widgets/actions/index.d.ts +32 -2
  14. package/types/components/widgets/actions/versioner/342/200/214.d.ts +17 -0
  15. package/types/components/widgets/ai/image-input.d.ts +3 -3
  16. package/types/components/widgets/ai/index.d.ts +12 -12
  17. package/types/components/widgets/ai/json-input.d.ts +11 -11
  18. package/types/components/widgets/apis/form.d.ts +22 -22
  19. package/types/components/widgets/apis/swagger.d.ts +6 -6
  20. package/types/components/widgets/designer/index.d.ts +4 -4
  21. package/types/components/widgets/devtools/index.d.ts +17 -17
  22. package/types/components/widgets/docs/index.d.ts +12 -12
  23. package/types/components/widgets/env/index.d.ts +6 -6
  24. package/types/components/widgets/i18n/index.d.ts +6 -6
  25. package/types/components/widgets/index.d.ts +91 -63
  26. package/types/components/widgets/market/index.d.ts +12 -12
  27. package/types/components/widgets/scripts/group.d.ts +23 -23
  28. package/types/components/widgets/style/spacing-input.d.ts +4 -4
  29. package/types/framework/designer.d.ts +2 -0
  30. package/types/framework/openapi.d.ts +6 -2
  31. package/types/framework/simulator.d.ts +1 -1
  32. package/types/utils.d.ts +1 -0
  33. package/types/version.d.ts +2 -2
  34. package/dist/Editor-BhLdvXh7.js +0 -4
@@ -1,4 +1,4 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties } from 'vue';
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComputedRef, GlobalComponents, GlobalDirectives, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties } from 'vue';
2
2
  import { ContainerWrap, ContainerDirection, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent } from '@vtj/ui';
3
3
  import { OnCleanup } from '@vue/reactivity';
4
4
  export interface Props {
@@ -256,9 +256,9 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
256
256
  autoPointer: {
257
257
  type: BooleanConstructor;
258
258
  };
259
- }>> & Readonly<{}>, "padding" | "tag" | "direction" | "$vtjEl" | "inline" | "fit" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer"> & ShallowUnwrapRef<{
260
- $vtjEl: ComputedRef<any>;
261
- }> & {} & ComponentCustomProperties & {} & {
259
+ }>> & Readonly<{}>, "padding" | "tag" | "direction" | "$vtjEl" | "inline" | "fit" | "flex" | "wrap" | "justify" | "align" | "alignContent" | "grow" | "shrink" | "alignSelf" | "gap" | "autoPointer"> & {
260
+ $vtjEl: any;
261
+ } & {} & ComponentCustomProperties & {} & {
262
262
  $slots: {
263
263
  default?(_: {}): any;
264
264
  };
@@ -13,6 +13,7 @@ export interface DesignHelper {
13
13
  rect: DOMRect;
14
14
  type?: DropPosition;
15
15
  path?: Array<NodeModel | BlockModel>;
16
+ indexes?: number[];
16
17
  }
17
18
  export declare class Designer {
18
19
  engine: Engine;
@@ -46,6 +47,7 @@ export declare class Designer {
46
47
  private getNodeByElement;
47
48
  private getDropType;
48
49
  private getNodePath;
50
+ private getNodePathIndex;
49
51
  private setDslFrom;
50
52
  private createNodeDsl;
51
53
  private getElmenetByModel;
@@ -3,15 +3,18 @@ import { AITopic, AIChat } from './types';
3
3
  export interface TemplateDto {
4
4
  id: string;
5
5
  name: string;
6
+ code?: string;
6
7
  label: string;
7
8
  vip: boolean;
8
- share: boolean;
9
+ share?: boolean;
10
+ isShared?: boolean;
9
11
  cover: string;
10
12
  author: string;
11
13
  userId: string;
12
14
  category: string;
13
15
  latest: string;
14
16
  platform: string;
17
+ latestVersion?: any;
15
18
  }
16
19
  export interface DictOption {
17
20
  label: string;
@@ -22,7 +25,8 @@ export interface PublishTemplateDto {
22
25
  label: string;
23
26
  category: string;
24
27
  cover: Blob;
25
- share: boolean;
28
+ share?: boolean;
29
+ isShared?: boolean;
26
30
  version: string;
27
31
  platform: string;
28
32
  latest?: string;
@@ -6,7 +6,7 @@ import { Designer } from './designer';
6
6
  import { Engine } from './engine';
7
7
  declare global {
8
8
  interface Window {
9
- __simulator__: Simulator;
9
+ __simulator__: any;
10
10
  Vue?: any;
11
11
  VueRouter?: any;
12
12
  ElementPlus?: any;
package/types/utils.d.ts CHANGED
@@ -41,3 +41,4 @@ export declare function expressionValidate(str: JSExpression | JSFunction, self:
41
41
  export declare function getClassProperties(obj: any): string[];
42
42
  export declare function normalizedStyle(style?: Record<string, any>): Record<string, any>;
43
43
  export declare function readJsonFile(file: File): Promise<any>;
44
+ export declare function upgradeVersion(type: 'major' | 'minor' | 'patch', version?: string): string;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2026, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.16.14
5
+ * @version 0.16.16
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.16.14";
8
+ export declare const version = "0.16.16";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-CoL57uQw.js";
2
- export {
3
- f as default
4
- };