@airpower/web 0.2.24 → 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,23 +24,23 @@ 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;
|
|
35
35
|
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
37
36
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
38
37
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
|
|
38
|
+
readonly onChanged?: ((...args: any[]) => any) | undefined;
|
|
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>>;
|
|
43
|
-
emit: (event: "clear" | "blur" | "
|
|
43
|
+
emit: (event: "clear" | "blur" | "update:modelValue" | "focus" | "changed", ...args: any[]) => void;
|
|
44
44
|
}>) => import('vue').VNode & {
|
|
45
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
46
46
|
};
|
|
@@ -4,12 +4,12 @@ import { QueryResponsePage } from '../../model/query/QueryResponsePage';
|
|
|
4
4
|
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<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly response: QueryResponsePage<E>;
|
|
7
|
-
readonly
|
|
8
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "
|
|
7
|
+
readonly onChanged?: ((page: QueryPage) => any) | undefined;
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChanged" | "response"> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
9
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
10
10
|
attrs: any;
|
|
11
11
|
slots: {};
|
|
12
|
-
emit: (evt: "
|
|
12
|
+
emit: (evt: "changed", page: QueryPage) => void;
|
|
13
13
|
}>) => import('vue').VNode & {
|
|
14
14
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
15
15
|
};
|
|
@@ -29,15 +29,15 @@ declare const _default: <T extends IPayload>(__VLS_props: NonNullable<Awaited<ty
|
|
|
29
29
|
readonly clearLabel: string;
|
|
30
30
|
readonly selector: Component;
|
|
31
31
|
readonly onClear?: (() => any) | undefined;
|
|
32
|
-
readonly onChange?: ((data: T | undefined) => any) | undefined;
|
|
33
32
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
34
|
-
|
|
33
|
+
readonly onChanged?: ((data: T | undefined) => any) | undefined;
|
|
34
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "default" | "param" | "placeholder" | "selectLabel" | "clearLabel">, "onClear" | "onUpdate:modelValue" | "onChanged" | "selector" | ("disabled" | "default" | "param" | "placeholder" | "selectLabel" | "clearLabel")> & {
|
|
35
35
|
modelValue?: T;
|
|
36
36
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
37
37
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
38
38
|
attrs: any;
|
|
39
39
|
slots: {};
|
|
40
|
-
emit: (((evt: "clear") => void) & ((evt: "
|
|
40
|
+
emit: (((evt: "clear") => void) & ((evt: "changed", data: T | undefined) => void)) & ((evt: "update:modelValue", value: T) => void);
|
|
41
41
|
}>) => import('vue').VNode & {
|
|
42
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
43
|
};
|
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 = {}) {
|
|
@@ -13795,7 +13795,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13795
13795
|
emits: [
|
|
13796
13796
|
"blur",
|
|
13797
13797
|
"focus",
|
|
13798
|
-
"
|
|
13798
|
+
"changed",
|
|
13799
13799
|
"update:modelValue",
|
|
13800
13800
|
"clear"
|
|
13801
13801
|
],
|
|
@@ -13804,7 +13804,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
13804
13804
|
const emits = __emit;
|
|
13805
13805
|
const value = ref(props.modelValue);
|
|
13806
13806
|
function emitChange() {
|
|
13807
|
-
emits("
|
|
13807
|
+
emits("changed", value.value);
|
|
13808
13808
|
}
|
|
13809
13809
|
function emitBlur() {
|
|
13810
13810
|
emits("blur");
|
|
@@ -14369,7 +14369,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14369
14369
|
required: true
|
|
14370
14370
|
}
|
|
14371
14371
|
},
|
|
14372
|
-
emits: ["
|
|
14372
|
+
emits: ["changed"],
|
|
14373
14373
|
setup(__props, { emit: __emit }) {
|
|
14374
14374
|
const props = __props;
|
|
14375
14375
|
const emits = __emit;
|
|
@@ -14377,7 +14377,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14377
14377
|
const currentPage = ref(page.value.pageNum);
|
|
14378
14378
|
function emitChange() {
|
|
14379
14379
|
currentPage.value = page.value.pageNum;
|
|
14380
|
-
emits("
|
|
14380
|
+
emits("changed", page.value);
|
|
14381
14381
|
}
|
|
14382
14382
|
function pageChanged(num) {
|
|
14383
14383
|
page.value.pageNum = Number.parseInt(num.toString(), 10);
|
|
@@ -16705,7 +16705,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16705
16705
|
"modelValue": {},
|
|
16706
16706
|
"modelModifiers": {}
|
|
16707
16707
|
}),
|
|
16708
|
-
emits: /* @__PURE__ */ mergeModels(["
|
|
16708
|
+
emits: /* @__PURE__ */ mergeModels(["changed", "clear"], ["update:modelValue"]),
|
|
16709
16709
|
setup(__props, { emit: __emit }) {
|
|
16710
16710
|
const props = __props;
|
|
16711
16711
|
const emits = __emit;
|
|
@@ -16716,11 +16716,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16716
16716
|
});
|
|
16717
16717
|
async function onSelect() {
|
|
16718
16718
|
result.value = await DialogUtil.show(props.selector, props.param);
|
|
16719
|
-
emits("
|
|
16719
|
+
emits("changed", result.value);
|
|
16720
16720
|
}
|
|
16721
16721
|
async function onClear() {
|
|
16722
16722
|
result.value = void 0;
|
|
16723
|
-
emits("
|
|
16723
|
+
emits("changed", result.value);
|
|
16724
16724
|
emits("clear");
|
|
16725
16725
|
}
|
|
16726
16726
|
return (_ctx, _cache) => {
|
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",
|