x-prop-tree 0.5.11 → 0.5.13

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 (22) hide show
  1. package/dist/components/propTree/common/copyPaste.d.ts +2 -0
  2. package/dist/components/propTree/common/index.d.ts +1 -0
  3. package/dist/components/propTree/common/provideInject.d.ts +4 -1
  4. package/dist/components/propTree/components/common/entry.vue.d.ts +3 -2
  5. package/dist/components/propTree/components/common/title.vue.d.ts +1 -1
  6. package/dist/components/propTree/components/values/colorPicker.vue.d.ts +4 -2
  7. package/dist/components/propTree/components/values/compSelect/compList/group.vue.d.ts +12 -0
  8. package/dist/components/propTree/components/values/compSelect/compList/index.vue.d.ts +12 -0
  9. package/dist/components/propTree/components/values/compSelect/compList/item.vue.d.ts +10 -0
  10. package/dist/components/propTree/components/values/compSelect/index.vue.d.ts +9 -0
  11. package/dist/components/propTree/components/values/multiTypes.vue.d.ts +5 -3
  12. package/dist/components/propTree/components/values/numInput.vue.d.ts +5 -3
  13. package/dist/components/propTree/components/values/select.vue.d.ts +5 -3
  14. package/dist/components/propTree/components/values/strInput.vue.d.ts +5 -3
  15. package/dist/components/propTree/components/values/switch.vue.d.ts +5 -3
  16. package/dist/i18n/locales/en/index.d.ts +7 -0
  17. package/dist/i18n/locales/zhHans/index.d.ts +7 -0
  18. package/dist/{i18n-en-eyioipy9.js → i18n-en-nonohi4u.js} +7 -0
  19. package/dist/{i18n-zhHans-mtvnapj8.js → i18n-zhHans-gdfh4wwz.js} +7 -0
  20. package/dist/index.js +1283 -978
  21. package/package.json +6 -4
  22. package/dist/components/propTree/components/values/compSelect.vue.d.ts +0 -2
@@ -0,0 +1,2 @@
1
+ import { ZProp } from 'x-runtime-lib';
2
+ export declare const isPropCompatible: (l: ZProp, r: ZProp) => boolean;
@@ -1,4 +1,5 @@
1
1
  export * from './base';
2
2
  export * from './branch';
3
+ export * from './copyPaste';
3
4
  export * from './propState';
4
5
  export * from './provideInject';
@@ -1,7 +1,8 @@
1
1
  import { Ref } from 'vue';
2
- import { PropStateMap } from './propState';
2
+ import { ListEntry } from 'x-group-list';
3
3
  import { ZProp } from 'x-runtime-lib';
4
4
  import { ChangeEvent } from './base';
5
+ import { PropStateMap } from './propState';
5
6
  export declare function provideConfig(config: Ref<ZProp[]>): void;
6
7
  export declare function injectConfig(): Ref<ZProp[]>;
7
8
  export declare function provideObject(object: Ref<any>): void;
@@ -10,3 +11,5 @@ export declare function providePropStates(propStates: Ref<PropStateMap>): void;
10
11
  export declare function injectPropStates(): Ref<PropStateMap>;
11
12
  export declare function provideChangeEvent(changeEvent: ChangeEvent): void;
12
13
  export declare function injectChangeEvent(): ChangeEvent;
14
+ export declare function provideCompList(compList: Ref<ListEntry[]>): void;
15
+ export declare function injectCompList(): Ref<ListEntry[]>;
@@ -2,18 +2,19 @@ interface Props {
2
2
  minHeight: string;
3
3
  }
4
4
  declare function __VLS_template(): {
5
+ attrs: Partial<{}>;
5
6
  slots: {
6
7
  default?(_: {}): any;
7
8
  };
8
9
  refs: {};
9
- attrs: Partial<{}>;
10
+ rootEl: HTMLDivElement;
10
11
  };
11
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
13
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
14
  menu: (...args: any[]) => void;
14
15
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
15
16
  onMenu?: ((...args: any[]) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
17
18
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
19
  export default _default;
19
20
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -15,5 +15,5 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
15
15
  onCollapse?: ((...args: any[]) => any) | undefined;
16
16
  onCreate?: ((...args: any[]) => any) | undefined;
17
17
  onDelete?: ((...args: any[]) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
19
19
  export default _default;
@@ -2,13 +2,15 @@ interface Props {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
4
  }
5
- declare let __VLS_typeProps: Props;
5
+ type __VLS_Props = Props;
6
6
  type __VLS_PublicProps = {
7
7
  modelValue?: string;
8
- } & typeof __VLS_typeProps;
8
+ } & __VLS_Props;
9
9
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  delete: (...args: any[]) => void;
11
+ "update:modelValue": (value: string) => void;
11
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
13
  onDelete?: ((...args: any[]) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
13
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
16
  export default _default;
@@ -0,0 +1,12 @@
1
+ interface Props {
2
+ id: string;
3
+ title: string;
4
+ collapse: boolean;
5
+ count: number;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ "x-click": (...args: any[]) => void;
9
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
10
+ "onX-click"?: ((...args: any[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
12
+ export default _default;
@@ -0,0 +1,12 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue: string;
3
+ 'open': boolean;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:modelValue": (value: string) => any;
7
+ "update:open": (value: boolean) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
10
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ export default _default;
@@ -0,0 +1,10 @@
1
+ interface Props {
2
+ id: string;
3
+ title: string;
4
+ }
5
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "x-click": (...args: any[]) => void;
7
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
8
+ "onX-click"?: ((...args: any[]) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
10
+ export default _default;
@@ -0,0 +1,9 @@
1
+ type __VLS_PublicProps = {
2
+ modelValue: string;
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
+ "update:modelValue": (value: string) => any;
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -3,13 +3,15 @@ interface Props {
3
3
  hasDelete?: boolean;
4
4
  types: ZType[];
5
5
  }
6
- declare let __VLS_typeProps: Props;
6
+ type __VLS_Props = Props;
7
7
  type __VLS_PublicProps = {
8
8
  modelValue?: string;
9
- } & typeof __VLS_typeProps;
9
+ } & __VLS_Props;
10
10
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
11
  delete: (...args: any[]) => void;
12
+ "update:modelValue": (value: string) => void;
12
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
14
  onDelete?: ((...args: any[]) => any) | undefined;
14
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
15
17
  export default _default;
@@ -6,13 +6,15 @@ interface Props {
6
6
  step?: number;
7
7
  readonly?: boolean;
8
8
  }
9
- declare let __VLS_typeProps: Props;
9
+ type __VLS_Props = Props;
10
10
  type __VLS_PublicProps = {
11
11
  modelValue?: number;
12
- } & typeof __VLS_typeProps;
12
+ } & __VLS_Props;
13
13
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  delete: (...args: any[]) => void;
15
+ "update:modelValue": (value: number) => void;
15
16
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
17
  onDelete?: ((...args: any[]) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
18
20
  export default _default;
@@ -6,13 +6,15 @@ interface Props {
6
6
  value: string;
7
7
  }[];
8
8
  }
9
- declare let __VLS_typeProps: Props;
9
+ type __VLS_Props = Props;
10
10
  type __VLS_PublicProps = {
11
11
  modelValue?: string;
12
- } & typeof __VLS_typeProps;
12
+ } & __VLS_Props;
13
13
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  delete: (...args: any[]) => void;
15
+ "update:modelValue": (value: string) => void;
15
16
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
17
  onDelete?: ((...args: any[]) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
18
20
  export default _default;
@@ -2,13 +2,15 @@ interface Props {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
4
  }
5
- declare let __VLS_typeProps: Props;
5
+ type __VLS_Props = Props;
6
6
  type __VLS_PublicProps = {
7
7
  modelValue?: string;
8
- } & typeof __VLS_typeProps;
8
+ } & __VLS_Props;
9
9
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  delete: (...args: any[]) => void;
11
+ "update:modelValue": (value: string) => void;
11
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
13
  onDelete?: ((...args: any[]) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
14
16
  export default _default;
@@ -2,13 +2,15 @@ interface Props {
2
2
  hasDelete?: boolean;
3
3
  readonly?: boolean;
4
4
  }
5
- declare let __VLS_typeProps: Props;
5
+ type __VLS_Props = Props;
6
6
  type __VLS_PublicProps = {
7
7
  modelValue?: boolean;
8
- } & typeof __VLS_typeProps;
8
+ } & __VLS_Props;
9
9
  declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
10
  delete: (...args: any[]) => void;
11
+ "update:modelValue": (value: boolean) => void;
11
12
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
13
  onDelete?: ((...args: any[]) => any) | undefined;
13
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
14
16
  export default _default;
@@ -1,7 +1,14 @@
1
1
  declare const _default: {
2
2
  'x-prop-tree': {
3
3
  copy: string;
4
+ dlg: {
5
+ compSelect: {
6
+ title: string;
7
+ };
8
+ };
4
9
  entry: string;
10
+ noComp: string;
11
+ notSet: string;
5
12
  paste: string;
6
13
  reset: string;
7
14
  };
@@ -1,7 +1,14 @@
1
1
  declare const _default: {
2
2
  'x-prop-tree': {
3
3
  copy: string;
4
+ dlg: {
5
+ compSelect: {
6
+ title: string;
7
+ };
8
+ };
4
9
  entry: string;
10
+ noComp: string;
11
+ notSet: string;
5
12
  paste: string;
6
13
  reset: string;
7
14
  };
@@ -1,7 +1,14 @@
1
1
  const e = {
2
2
  "x-prop-tree": {
3
3
  copy: "Copy",
4
+ dlg: {
5
+ compSelect: {
6
+ title: "Select Comp"
7
+ }
8
+ },
4
9
  entry: "Entry {index}",
10
+ noComp: "No Comp",
11
+ notSet: "Not Set",
5
12
  paste: "Paste",
6
13
  reset: "Reset"
7
14
  }
@@ -1,7 +1,14 @@
1
1
  const e = {
2
2
  "x-prop-tree": {
3
3
  copy: "复制",
4
+ dlg: {
5
+ compSelect: {
6
+ title: "选择组件"
7
+ }
8
+ },
4
9
  entry: "条目{index}",
10
+ noComp: "没有组件",
11
+ notSet: "未设置",
5
12
  paste: "黏贴",
6
13
  reset: "重置"
7
14
  }