x-prop-tree 0.7.13 → 0.7.14
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/components/propTree/common/base.d.ts +3 -3
- package/dist/components/propTree/common/copyPaste.d.ts +2 -2
- package/dist/components/propTree/common/index.d.ts +1 -1
- package/dist/components/propTree/common/propertyState.d.ts +16 -0
- package/dist/components/propTree/common/provideInject.d.ts +6 -6
- package/dist/components/propTree/composables/common.d.ts +3 -3
- package/dist/components/propTree/composables/uiColorPicker.d.ts +2 -2
- package/dist/components/propTree/composables/uiCompSelect.d.ts +2 -2
- package/dist/components/propTree/composables/uiDummy.d.ts +2 -2
- package/dist/components/propTree/composables/uiJsonEditor.d.ts +2 -2
- package/dist/components/propTree/composables/uiMultiTypes.d.ts +2 -2
- package/dist/components/propTree/composables/uiNumInput.d.ts +2 -2
- package/dist/components/propTree/composables/uiProp.d.ts +4 -4
- package/dist/components/propTree/composables/uiSelect.d.ts +2 -2
- package/dist/components/propTree/composables/uiStrInput.d.ts +2 -2
- package/dist/components/propTree/composables/uiSwitch.d.ts +2 -2
- package/dist/components/propTree/index.vue.d.ts +2 -2
- package/dist/index.js +266 -266
- package/package.json +4 -4
- package/dist/components/propTree/common/propState.d.ts +0 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
export type ChangeEvent = (keys: (string | number)[], value: unknown) => void;
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const unpkgProperty: (properties: ZProperty[], keys: (string | number)[]) => {
|
|
4
4
|
array?: false;
|
|
5
5
|
} & {
|
|
6
6
|
ui?: undefined;
|
|
7
|
-
children:
|
|
7
|
+
children: ZProperty[];
|
|
8
8
|
default?: undefined;
|
|
9
9
|
} & {
|
|
10
10
|
key: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const isPropCompatible: (l:
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
|
+
export declare const isPropCompatible: (l: ZProperty, r: ZProperty) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
3
|
+
import { ChangeEvent } from './base';
|
|
4
|
+
export type PropertyState = {
|
|
5
|
+
change: boolean;
|
|
6
|
+
children?: PropertyStateMap | PropertyStateArray;
|
|
7
|
+
};
|
|
8
|
+
export type PropertyStateMap = {
|
|
9
|
+
[key: string]: PropertyState;
|
|
10
|
+
};
|
|
11
|
+
export type PropertyStateArray = PropertyState[];
|
|
12
|
+
export declare const isPropertyStateChildrenMap: (children: PropertyStateMap | PropertyStateArray) => children is PropertyStateMap;
|
|
13
|
+
export declare const isPropertyStateChildrenArray: (children: PropertyStateMap | PropertyStateArray) => children is PropertyStateArray;
|
|
14
|
+
export declare const execProperty: (keys: (string | number)[], property: ZProperty, object: any, state: PropertyState, changeEvent?: ChangeEvent, arrayIndex?: number, isBranch?: boolean) => boolean;
|
|
15
|
+
export declare const rebuildPropertyState: (propertyStates: Ref<PropertyStateMap>, config: ZProperty[], object: any, changeEvent?: ChangeEvent) => void;
|
|
16
|
+
export declare const isPropertyChanged: (propertyStates: PropertyStateMap, keys: (string | number)[]) => boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { ListEntry } from 'x-group-list';
|
|
3
|
-
import {
|
|
3
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
4
4
|
import { ChangeEvent } from './base';
|
|
5
|
-
import {
|
|
5
|
+
import { PropertyStateMap } from './propertyState';
|
|
6
6
|
export declare function provideVersion(version: Ref<string>): void;
|
|
7
7
|
export declare function injectVersion(): Ref<string>;
|
|
8
|
-
export declare function provideConfig(config: Ref<
|
|
9
|
-
export declare function injectConfig(): Ref<
|
|
8
|
+
export declare function provideConfig(config: Ref<ZProperty[]>): void;
|
|
9
|
+
export declare function injectConfig(): Ref<ZProperty[]>;
|
|
10
10
|
export declare function provideObject(object: Ref<any>): void;
|
|
11
11
|
export declare function injectObject(): Ref<any>;
|
|
12
|
-
export declare function providePropStates(propStates: Ref<
|
|
13
|
-
export declare function injectPropStates(): Ref<
|
|
12
|
+
export declare function providePropStates(propStates: Ref<PropertyStateMap>): void;
|
|
13
|
+
export declare function injectPropStates(): Ref<PropertyStateMap>;
|
|
14
14
|
export declare function provideChangeEvent(changeEvent: ChangeEvent): void;
|
|
15
15
|
export declare function injectChangeEvent(): ChangeEvent;
|
|
16
16
|
export declare function provideCompList(compList: Ref<ListEntry[]>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
|
-
export declare const getModelValue: (keys: (string | number)[],
|
|
4
|
-
export declare const setModelValue: (keys: (string | number)[],
|
|
3
|
+
export declare const getModelValue: (keys: (string | number)[], property: ZProperty, object: any, changeEvent: ChangeEvent, arrayIndex?: number, isBranch?: boolean) => any;
|
|
4
|
+
export declare const setModelValue: (keys: (string | number)[], property: ZProperty, object: any, val: unknown, changeEvent: ChangeEvent, arrayIndex?: number, isBranch?: boolean) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiColorPicker(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiColorPicker: (keys: (string | number)[],
|
|
4
|
+
renderUiColorPicker: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiCompSelect(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiCompSelect: (keys: (string | number)[],
|
|
4
|
+
renderUiCompSelect: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiDummy(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiDummy: (keys: (string | number)[],
|
|
4
|
+
renderUiDummy: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => undefined;
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiJsonEditor(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiJsonEditor: (keys: (string | number)[],
|
|
4
|
+
renderUiJsonEditor: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiMultiTypes(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiMultiTypes: (keys: (string | number)[],
|
|
4
|
+
renderUiMultiTypes: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiNumInput(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiNumInput: (keys: (string | number)[],
|
|
4
|
+
renderUiNumInput: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Ref, VNode } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export declare function useUiProp(propStates: Ref<
|
|
5
|
-
renderProp: (keys: (string | number)[],
|
|
2
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
3
|
+
import { PropertyStateMap } from '../common/propertyState';
|
|
4
|
+
export declare function useUiProp(propStates: Ref<PropertyStateMap>, entryHeight: Ref<string>, entryValueWidth: Ref<string>): {
|
|
5
|
+
renderProp: (keys: (string | number)[], property: ZProperty, node: VNode) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
}>;
|
|
8
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiSelect(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiSelect: (keys: (string | number)[],
|
|
4
|
+
renderUiSelect: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiStrInput(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiStrInput: (keys: (string | number)[],
|
|
4
|
+
renderUiStrInput: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ZProperty } from 'x-runtime-lib';
|
|
2
2
|
import { ChangeEvent } from '../common';
|
|
3
3
|
export declare function useUiSwitch(changeEvent: ChangeEvent): {
|
|
4
|
-
renderUiSwitch: (keys: (string | number)[],
|
|
4
|
+
renderUiSwitch: (keys: (string | number)[], property: ZProperty, object: any, arrayIndex?: number, isBranch?: boolean) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|