@airpower/web 0.2.25 → 0.2.26
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.
|
@@ -6,6 +6,7 @@ import { RootEntity } from '../../model/RootEntity';
|
|
|
6
6
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
8
8
|
disabled: boolean;
|
|
9
|
+
list: IEnum<number>[];
|
|
9
10
|
entity: ITransformerConstructor<E>;
|
|
10
11
|
modelValue: [{
|
|
11
12
|
type: PropType<E>;
|
|
@@ -16,7 +17,6 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
16
17
|
};
|
|
17
18
|
readonly: boolean;
|
|
18
19
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
19
|
-
list: IEnum<number>[];
|
|
20
20
|
tree: ITree[];
|
|
21
21
|
}> & Omit<{
|
|
22
22
|
readonly disabled: boolean;
|
|
@@ -30,15 +30,15 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
30
30
|
default: null;
|
|
31
31
|
};
|
|
32
32
|
readonly readonly: boolean;
|
|
33
|
-
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
34
33
|
readonly list?: IEnum<number>[] | undefined;
|
|
34
|
+
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
35
35
|
readonly tree?: ITree[] | undefined;
|
|
36
36
|
readonly onClear?: (() => any) | undefined;
|
|
37
37
|
readonly onBlur?: (() => any) | undefined;
|
|
38
38
|
readonly onChange?: ((value: E) => any) | undefined;
|
|
39
39
|
readonly "onUpdate:modelValue"?: ((value: E) => any) | undefined;
|
|
40
40
|
readonly onFocus?: (() => any) | undefined;
|
|
41
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "list" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree">, "onFocus" | "onBlur" | "onChange" | "field" | "onClear" | "onUpdate:modelValue" | ("disabled" | "list" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
42
42
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
43
43
|
attrs: any;
|
|
44
44
|
slots: {
|
|
@@ -5,13 +5,13 @@ import { RootEntity } from '../../model/RootEntity';
|
|
|
5
5
|
declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
7
7
|
disabled: boolean;
|
|
8
|
+
list: EM[];
|
|
8
9
|
placeholder: string;
|
|
9
10
|
dateShowFormatter: string;
|
|
10
11
|
entity: ITransformerConstructor<E>;
|
|
11
12
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
12
13
|
readonly: boolean;
|
|
13
14
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
14
|
-
list: EM[];
|
|
15
15
|
tree: T[];
|
|
16
16
|
modelModifiers: Record<string, any>;
|
|
17
17
|
modifier: string;
|
|
@@ -24,11 +24,11 @@ declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum
|
|
|
24
24
|
readonly modelModifiers: Record<string, any>;
|
|
25
25
|
readonly showClear: boolean;
|
|
26
26
|
readonly onSearch: Function;
|
|
27
|
+
readonly list?: EM[] | undefined;
|
|
27
28
|
readonly dateShowFormatter?: string | undefined;
|
|
28
29
|
readonly entity?: ITransformerConstructor<E> | undefined;
|
|
29
30
|
readonly modelValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
30
31
|
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
31
|
-
readonly list?: EM[] | undefined;
|
|
32
32
|
readonly tree?: T[] | undefined;
|
|
33
33
|
readonly modifier?: string | undefined;
|
|
34
34
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -36,7 +36,7 @@ declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum
|
|
|
36
36
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
readonly onChanged?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "list" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onClear" | "onUpdate:modelValue" | "onChanged" | ("disabled" | "list" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
40
40
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
41
|
attrs: any;
|
|
42
42
|
slots: Partial<Record<NonNullable<string | number | symbol>, (_: {}) => any>>;
|
package/dist/main.js
CHANGED
|
@@ -1026,14 +1026,14 @@ function Alias(alias) {
|
|
|
1026
1026
|
return (target, key) => DecoratorUtil.setFieldConfig(target, key, KEY$5, alias);
|
|
1027
1027
|
}
|
|
1028
1028
|
function getAlias(target, key) {
|
|
1029
|
-
return (DecoratorUtil.getFieldConfig(target, key, KEY$5) || "").toString();
|
|
1029
|
+
return (DecoratorUtil.getFieldConfig(target, key.toString(), KEY$5) || "").toString();
|
|
1030
1030
|
}
|
|
1031
1031
|
const KEY$4$1 = `${DecoratorUtil.DecoratorKeyPrefix}[IgnorePrefix]`;
|
|
1032
1032
|
function IgnorePrefix() {
|
|
1033
1033
|
return (target, key) => DecoratorUtil.setFieldConfig(target, key, KEY$4$1, true);
|
|
1034
1034
|
}
|
|
1035
1035
|
function getIgnorePrefix(target, key) {
|
|
1036
|
-
return !!DecoratorUtil.getFieldConfig(target, key, KEY$4$1);
|
|
1036
|
+
return !!DecoratorUtil.getFieldConfig(target, key.toString(), KEY$4$1);
|
|
1037
1037
|
}
|
|
1038
1038
|
const KEY$3$1 = `${DecoratorUtil.DecoratorKeyPrefix}[Prefix]`;
|
|
1039
1039
|
function Prefix(prefix) {
|
|
@@ -1047,14 +1047,14 @@ function ToClass(func) {
|
|
|
1047
1047
|
return (target, key) => DecoratorUtil.setFieldConfig(target, key, KEY$2$1, func);
|
|
1048
1048
|
}
|
|
1049
1049
|
function getToClass(target, key) {
|
|
1050
|
-
return DecoratorUtil.getFieldConfig(target, key, KEY$2$1);
|
|
1050
|
+
return DecoratorUtil.getFieldConfig(target, key.toString(), KEY$2$1);
|
|
1051
1051
|
}
|
|
1052
1052
|
const KEY$1$1 = `${DecoratorUtil.DecoratorKeyPrefix}[ToJson]`;
|
|
1053
1053
|
function ToJson(func) {
|
|
1054
1054
|
return (target, key) => DecoratorUtil.setFieldConfig(target, key, KEY$1$1, func);
|
|
1055
1055
|
}
|
|
1056
1056
|
function getToJson(target, key) {
|
|
1057
|
-
return DecoratorUtil.getFieldConfig(target, key, KEY$1$1);
|
|
1057
|
+
return DecoratorUtil.getFieldConfig(target, key.toString(), KEY$1$1);
|
|
1058
1058
|
}
|
|
1059
1059
|
const KEY$6 = `${DecoratorUtil.DecoratorKeyPrefix}[Type]`;
|
|
1060
1060
|
const KEY_ARRAY = `${DecoratorUtil.DecoratorKeyPrefix}[Array]`;
|
|
@@ -1067,10 +1067,10 @@ function Type(type, array = false) {
|
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
1069
|
function getType(target, key) {
|
|
1070
|
-
return DecoratorUtil.getFieldConfig(target, key, KEY$6) || void 0;
|
|
1070
|
+
return DecoratorUtil.getFieldConfig(target, key.toString(), KEY$6) || void 0;
|
|
1071
1071
|
}
|
|
1072
1072
|
function getArray(target, key) {
|
|
1073
|
-
return !!DecoratorUtil.getFieldConfig(target, key, KEY_ARRAY);
|
|
1073
|
+
return !!DecoratorUtil.getFieldConfig(target, key.toString(), KEY_ARRAY);
|
|
1074
1074
|
}
|
|
1075
1075
|
const KEY$4 = `${DecoratorUtil.DecoratorKeyPrefix}[MODEL]`;
|
|
1076
1076
|
function Model(config = {}) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@airpower/web",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.26",
|
|
5
5
|
"description": "AirPower-Web",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Hamm",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@airpower/enum": "^0.0.10",
|
|
43
43
|
"@airpower/i18n": "^0.0.4",
|
|
44
|
-
"@airpower/transformer": "^0.1.
|
|
44
|
+
"@airpower/transformer": "^0.1.2",
|
|
45
45
|
"@airpower/util": "^0.1.3",
|
|
46
46
|
"@element-plus/icons-vue": "^2.3.1",
|
|
47
47
|
"axios": "^1.8.4",
|