@vtj/designer 0.12.39 → 0.12.41

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.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { f as e, A as E, I as r, q as t, p as i, Q as n, T as S, E as _, k as o, G as I, B as T, l as p, o as l, K as O, M as V, a as g, y as R, N as d, e as A, U as M, P as D, m as P, R as L, g as N, C as u, a5 as b, L as c, F as B, S as W, h as Y, j as m, a7 as K, J as f, i as w, a4 as x, u as y, n as C, V as F, v as G, b as U, d as k, c as H, z as v, t as J, x as X, W as Z, a6 as z, a8 as h, Y as j, Z as q, a0 as Q, X as $, aa, O as sa, $ as ea, a2 as Ea, D as ra, ad as ta, ae as ia, ab as na, af as Sa, a9 as _a, ac as oa, ag as Ia, r as Ta, a3 as pa, s as la, H as Oa, a1 as Va, w as ga } from "./index-C_VLsS28.js";
1
+ import { f as e, A as E, I as r, q as t, p as i, Q as n, T as S, E as _, k as o, G as I, B as T, l as p, o as l, K as O, M as V, a as g, y as R, N as d, e as A, U as M, P as D, m as P, R as L, g as N, C as u, a5 as b, L as c, F as B, S as W, h as Y, j as m, a7 as K, J as f, i as w, a4 as x, u as y, n as C, V as F, v as G, b as U, d as k, c as H, z as v, t as J, x as X, W as Z, a6 as z, a8 as h, Y as j, Z as q, a0 as Q, X as $, aa, O as sa, $ as ea, a2 as Ea, D as ra, ad as ta, ae as ia, ab as na, af as Sa, a9 as _a, ac as oa, ag as Ia, r as Ta, a3 as pa, s as la, H as Oa, a1 as Va, w as ga } from "./index-C2iDh0ob.js";
2
2
  export {
3
3
  e as ACCESS,
4
4
  E as API_METHOD_TYPES,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vtj/designer",
3
3
  "private": false,
4
- "version": "0.12.39",
4
+ "version": "0.12.41",
5
5
  "type": "module",
6
6
  "keywords": [
7
7
  "低代码引擎",
@@ -26,18 +26,18 @@
26
26
  "marked": "~15.0.8",
27
27
  "mockjs": "~1.1.0",
28
28
  "monaco-editor": "~0.52.0",
29
- "@vtj/renderer": "~0.12.39",
30
- "@vtj/core": "~0.12.39",
31
- "@vtj/utils": "~0.12.39",
32
- "@vtj/uni": "~0.12.39",
33
- "@vtj/icons": "~0.12.39",
34
- "@vtj/ui": "~0.12.39"
29
+ "@vtj/core": "~0.12.41",
30
+ "@vtj/ui": "~0.12.41",
31
+ "@vtj/renderer": "~0.12.41",
32
+ "@vtj/utils": "~0.12.41",
33
+ "@vtj/uni": "~0.12.41",
34
+ "@vtj/icons": "~0.12.41"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/mockjs": "~1.0.10",
38
38
  "vue": "~3.5.5",
39
39
  "vue-router": "~4.5.0",
40
- "@vtj/cli": "~0.12.4"
40
+ "@vtj/cli": "~0.12.5"
41
41
  },
42
42
  "files": [
43
43
  "dist",
@@ -0,0 +1 @@
1
+ export * from './vWheelNumber';
@@ -0,0 +1,7 @@
1
+ import { Directive } from 'vue';
2
+ export declare const vWheelNumber: Directive;
3
+ declare global {
4
+ interface HTMLElement {
5
+ _wheelHandler?: (e: WheelEvent) => void;
6
+ }
7
+ }
@@ -1,7 +1,7 @@
1
1
  import { Context } from '@vtj/renderer';
2
2
  import { BlockModel } from '@vtj/core';
3
3
  import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ExtractPropTypes, PropType, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, Ref, nextTick, DefineComponent, PublicProps } from 'vue';
4
- import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, ComponentSize, FormItemValidateState } from 'element-plus';
4
+ import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext, ComponentSize, FormItemValidateState } from 'element-plus';
5
5
  import { FormModel } from '@vtj/ui';
6
6
  import { RuleType, Rule, InternalRuleItem, ValidateError, Value, Values, ValidateOption, SyncValidateResult } from 'async-validator';
7
7
  import { OnCleanup } from '@vue/reactivity';
@@ -190,15 +190,18 @@ declare function __VLS_template(): {
190
190
  resetFields: (props?: FormItemProp | FormItemProp[]) => void;
191
191
  clearValidate: (props?: FormItemProp | FormItemProp[]) => void;
192
192
  scrollToField: (prop: FormItemProp) => void;
193
+ getField: (prop: FormItemProp) => FormItemContext | undefined;
193
194
  fields: {
194
195
  $el: HTMLDivElement | undefined;
195
196
  size: ComponentSize;
197
+ validateMessage: string;
196
198
  validateState: FormItemValidateState;
197
199
  isGroup: boolean;
198
200
  labelId: string;
199
201
  inputIds: string[];
200
202
  hasLabel: boolean;
201
203
  fieldValue: any;
204
+ propString: string;
202
205
  addInputId: (id: string) => void;
203
206
  removeInputId: (id: string) => void;
204
207
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
@@ -886,21 +889,24 @@ declare function __VLS_template(): {
886
889
  readonly disabled: BooleanConstructor;
887
890
  }>> & {
888
891
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
889
- }, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
892
+ }, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
890
893
  validate: (callback?: FormValidateCallback) => FormValidationResult;
891
894
  validateField: (props?: FormItemProp | FormItemProp[], callback?: FormValidateCallback) => FormValidationResult;
892
895
  resetFields: (props?: FormItemProp | FormItemProp[]) => void;
893
896
  clearValidate: (props?: FormItemProp | FormItemProp[]) => void;
894
897
  scrollToField: (prop: FormItemProp) => void;
898
+ getField: (prop: FormItemProp) => FormItemContext | undefined;
895
899
  fields: {
896
900
  $el: HTMLDivElement | undefined;
897
901
  size: ComponentSize;
902
+ validateMessage: string;
898
903
  validateState: FormItemValidateState;
899
904
  isGroup: boolean;
900
905
  labelId: string;
901
906
  inputIds: string[];
902
907
  hasLabel: boolean;
903
908
  fieldValue: any;
909
+ propString: string;
904
910
  addInputId: (id: string) => void;
905
911
  removeInputId: (id: string) => void;
906
912
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
@@ -1819,15 +1825,18 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
1819
1825
  resetFields: (props?: FormItemProp | FormItemProp[]) => void;
1820
1826
  clearValidate: (props?: FormItemProp | FormItemProp[]) => void;
1821
1827
  scrollToField: (prop: FormItemProp) => void;
1828
+ getField: (prop: FormItemProp) => FormItemContext | undefined;
1822
1829
  fields: {
1823
1830
  $el: HTMLDivElement | undefined;
1824
1831
  size: ComponentSize;
1832
+ validateMessage: string;
1825
1833
  validateState: FormItemValidateState;
1826
1834
  isGroup: boolean;
1827
1835
  labelId: string;
1828
1836
  inputIds: string[];
1829
1837
  hasLabel: boolean;
1830
1838
  fieldValue: any;
1839
+ propString: string;
1831
1840
  addInputId: (id: string) => void;
1832
1841
  removeInputId: (id: string) => void;
1833
1842
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
@@ -2515,21 +2524,24 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
2515
2524
  readonly disabled: BooleanConstructor;
2516
2525
  }>> & {
2517
2526
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
2518
- }, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
2527
+ }, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
2519
2528
  validate: (callback?: FormValidateCallback) => FormValidationResult;
2520
2529
  validateField: (props?: FormItemProp | FormItemProp[], callback?: FormValidateCallback) => FormValidationResult;
2521
2530
  resetFields: (props?: FormItemProp | FormItemProp[]) => void;
2522
2531
  clearValidate: (props?: FormItemProp | FormItemProp[]) => void;
2523
2532
  scrollToField: (prop: FormItemProp) => void;
2533
+ getField: (prop: FormItemProp) => FormItemContext | undefined;
2524
2534
  fields: {
2525
2535
  $el: HTMLDivElement | undefined;
2526
2536
  size: ComponentSize;
2537
+ validateMessage: string;
2527
2538
  validateState: FormItemValidateState;
2528
2539
  isGroup: boolean;
2529
2540
  labelId: string;
2530
2541
  inputIds: string[];
2531
2542
  hasLabel: boolean;
2532
2543
  fieldValue: any;
2544
+ propString: string;
2533
2545
  addInputId: (id: string) => void;
2534
2546
  removeInputId: (id: string) => void;
2535
2547
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
@@ -3,7 +3,7 @@ import { ApiSchema, ProjectModel } from '@vtj/core';
3
3
  import { BaseSize, DialogMode, DraggableOptions, IconParam, ResizableOptions, ContainerDirection, ContainerWrap, ContainerJustifyContent, ContainerAlignItems, ContainerAlignContent, HeaderProps, ContainerProps, FormModel } from '@vtj/ui';
4
4
  import { UseMouseSourceType, Position } from '@vueuse/core';
5
5
  import { OnCleanup } from '@vue/reactivity';
6
- import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, ComponentSize, FormItemValidateState } from 'element-plus';
6
+ import { ElTooltipProps, FormItemRule, FormItemProp, FormValidateCallback, FormValidationResult, FormItemContext, ComponentSize, FormItemValidateState } from 'element-plus';
7
7
  import { RuleType, Rule, InternalRuleItem, ValidateError, Value, Values, ValidateOption, SyncValidateResult } from 'async-validator';
8
8
  export interface Props {
9
9
  model?: ApiSchema;
@@ -1330,15 +1330,18 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
1330
1330
  resetFields: (props?: FormItemProp | FormItemProp[]) => void;
1331
1331
  clearValidate: (props?: FormItemProp | FormItemProp[]) => void;
1332
1332
  scrollToField: (prop: FormItemProp) => void;
1333
+ getField: (prop: FormItemProp) => FormItemContext | undefined;
1333
1334
  fields: {
1334
1335
  $el: HTMLDivElement | undefined;
1335
1336
  size: ComponentSize;
1337
+ validateMessage: string;
1336
1338
  validateState: FormItemValidateState;
1337
1339
  isGroup: boolean;
1338
1340
  labelId: string;
1339
1341
  inputIds: string[];
1340
1342
  hasLabel: boolean;
1341
1343
  fieldValue: any;
1344
+ propString: string;
1342
1345
  addInputId: (id: string) => void;
1343
1346
  removeInputId: (id: string) => void;
1344
1347
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
@@ -2026,21 +2029,24 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
2026
2029
  readonly disabled: BooleanConstructor;
2027
2030
  }>> & {
2028
2031
  onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined;
2029
- }, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField"> & ShallowUnwrapRef<{
2032
+ }, "disabled" | "inline" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "fields" | "requireAsteriskPosition" | "labelSuffix" | "statusIcon" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "validateField" | "resetFields" | "scrollToField" | "getField"> & ShallowUnwrapRef<{
2030
2033
  validate: (callback?: FormValidateCallback) => FormValidationResult;
2031
2034
  validateField: (props?: FormItemProp | FormItemProp[], callback?: FormValidateCallback) => FormValidationResult;
2032
2035
  resetFields: (props?: FormItemProp | FormItemProp[]) => void;
2033
2036
  clearValidate: (props?: FormItemProp | FormItemProp[]) => void;
2034
2037
  scrollToField: (prop: FormItemProp) => void;
2038
+ getField: (prop: FormItemProp) => FormItemContext | undefined;
2035
2039
  fields: {
2036
2040
  $el: HTMLDivElement | undefined;
2037
2041
  size: ComponentSize;
2042
+ validateMessage: string;
2038
2043
  validateState: FormItemValidateState;
2039
2044
  isGroup: boolean;
2040
2045
  labelId: string;
2041
2046
  inputIds: string[];
2042
2047
  hasLabel: boolean;
2043
2048
  fieldValue: any;
2049
+ propString: string;
2044
2050
  addInputId: (id: string) => void;
2045
2051
  removeInputId: (id: string) => void;
2046
2052
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
@@ -184,7 +184,7 @@ declare function __VLS_template(): {
184
184
  }>>, {
185
185
  size: ComputedRef<"" | "small" | "default" | "large">;
186
186
  validateMessage: Ref<string>;
187
- validateState: Ref<"" | "error" | "success" | "validating">;
187
+ validateState: Ref<"" | "error" | "validating" | "success">;
188
188
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
189
189
  clearValidate: () => void;
190
190
  resetField: () => void;
@@ -291,7 +291,7 @@ declare function __VLS_template(): {
291
291
  }>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField"> & ShallowUnwrapRef<{
292
292
  size: ComputedRef<"" | "small" | "default" | "large">;
293
293
  validateMessage: Ref<string>;
294
- validateState: Ref<"" | "error" | "success" | "validating">;
294
+ validateState: Ref<"" | "error" | "validating" | "success">;
295
295
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
296
296
  clearValidate: () => void;
297
297
  resetField: () => void;
@@ -740,7 +740,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
740
740
  }>>, {
741
741
  size: ComputedRef<"" | "small" | "default" | "large">;
742
742
  validateMessage: Ref<string>;
743
- validateState: Ref<"" | "error" | "success" | "validating">;
743
+ validateState: Ref<"" | "error" | "validating" | "success">;
744
744
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
745
745
  clearValidate: () => void;
746
746
  resetField: () => void;
@@ -847,7 +847,7 @@ declare const __VLS_component: DefineComponent<Props, {}, {}, {}, {}, ComponentO
847
847
  }>>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelWidth" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField"> & ShallowUnwrapRef<{
848
848
  size: ComputedRef<"" | "small" | "default" | "large">;
849
849
  validateMessage: Ref<string>;
850
- validateState: Ref<"" | "error" | "success" | "validating">;
850
+ validateState: Ref<"" | "error" | "validating" | "success">;
851
851
  validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
852
852
  clearValidate: () => void;
853
853
  resetField: () => void;
@@ -1,8 +1,10 @@
1
1
  import { Access } from '@vtj/renderer';
2
- import { Service } from '@vtj/core';
2
+ import { Service, ProjectModel } from '@vtj/core';
3
3
  export type ReportType = 'init' | 'online' | 'event' | 'error';
4
4
  export declare const excludeErrors: string[];
5
5
  export interface ReportData {
6
+ projectId?: string;
7
+ projectUid?: string;
6
8
  sessionId?: string;
7
9
  userId?: string;
8
10
  userName?: string;
@@ -26,7 +28,9 @@ export declare class Report {
26
28
  private remote;
27
29
  private debounceSend;
28
30
  private timer;
31
+ private project?;
29
32
  constructor(remote: string | null, access: Access, service?: Service | undefined);
33
+ setProject(project: ProjectModel): void;
30
34
  private isVtjUrl;
31
35
  private bindServerError;
32
36
  private bindGlobalError;
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2025, VTJ.PRO All rights reserved.
3
3
  * @name @vtj/designer
4
4
  * @author CHC chenhuachun1549@dingtalk.com
5
- * @version 0.12.38
5
+ * @version 0.12.40
6
6
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
7
7
  */
8
- export declare const version = "0.12.38";
8
+ export declare const version = "0.12.40";
@@ -1,4 +0,0 @@
1
- import { _ as f } from "./index-C_VLsS28.js";
2
- export {
3
- f as default
4
- };