@airpower/web 0.2.23 → 0.2.25
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/image/Image.vue.d.ts +4 -4
- package/dist/components/input/Input.vue.d.ts +3 -3
- package/dist/components/page/Page.vue.d.ts +3 -3
- package/dist/components/select/Select.vue.d.ts +3 -3
- package/dist/components/tree/TreeBox.vue.d.ts +3 -4
- package/dist/main.js +12 -12
- package/package.json +1 -1
|
@@ -32,13 +32,13 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
32
32
|
readonly placeholder?: string | undefined;
|
|
33
33
|
readonly entity?: ITransformerConstructor<F> | undefined;
|
|
34
34
|
readonly src?: string | undefined;
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "data" | "placeholder" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "
|
|
35
|
+
readonly onRemoved?: (() => any) | undefined;
|
|
36
|
+
readonly onUploaded?: ((file: F) => any) | undefined;
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "data" | "placeholder" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "onRemoved" | "onUploaded" | ("width" | "data" | "placeholder" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
38
38
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
39
39
|
attrs: any;
|
|
40
40
|
slots: {};
|
|
41
|
-
emit: ((evt: "
|
|
41
|
+
emit: ((evt: "removed") => void) & ((evt: "uploaded", file: F) => void);
|
|
42
42
|
}>) => import('vue').VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
@@ -33,14 +33,14 @@ declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum
|
|
|
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" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "list" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onClear" | "onUpdate:modelValue" | "onChanged" | ("disabled" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "list" | "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
|
};
|
|
@@ -24,16 +24,15 @@ declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<
|
|
|
24
24
|
readonly treeData: T[];
|
|
25
25
|
readonly isTreeLoading: boolean;
|
|
26
26
|
readonly defaultCollapse: boolean;
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "onChange" | "treeData" | "onOnChange" | ("width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
27
|
+
readonly onChanged?: ((data: T | undefined) => any) | undefined;
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "onChanged" | "treeData" | ("width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
30
29
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
31
30
|
attrs: any;
|
|
32
31
|
slots: {
|
|
33
32
|
icon?(_: {}): any;
|
|
34
33
|
default?(_: {}): any;
|
|
35
34
|
};
|
|
36
|
-
emit: (
|
|
35
|
+
emit: (evt: "changed", data: T | undefined) => void;
|
|
37
36
|
}>) => import('vue').VNode & {
|
|
38
37
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
38
|
};
|
package/dist/main.js
CHANGED
|
@@ -13508,7 +13508,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13508
13508
|
default: void 0
|
|
13509
13509
|
}
|
|
13510
13510
|
},
|
|
13511
|
-
emits: ["
|
|
13511
|
+
emits: ["uploaded", "removed"],
|
|
13512
13512
|
setup(__props, { emit: __emit }) {
|
|
13513
13513
|
const props = __props;
|
|
13514
13514
|
const emits = __emit;
|
|
@@ -13532,7 +13532,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13532
13532
|
uploadHeader.value[WebConfig.authorizationHeaderKey] = WebConfig.getAccessToken();
|
|
13533
13533
|
function imageRemoved() {
|
|
13534
13534
|
imageUrl.value = "";
|
|
13535
|
-
emits("
|
|
13535
|
+
emits("removed");
|
|
13536
13536
|
}
|
|
13537
13537
|
function showLocalFile(file) {
|
|
13538
13538
|
const reader = new FileReader();
|
|
@@ -13573,7 +13573,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13573
13573
|
}
|
|
13574
13574
|
const entityData = Transformer.parse(response.data, props.entity);
|
|
13575
13575
|
if (entityData && entityData.url) {
|
|
13576
|
-
emits("
|
|
13576
|
+
emits("uploaded", entityData);
|
|
13577
13577
|
isUploading.value = false;
|
|
13578
13578
|
return;
|
|
13579
13579
|
}
|
|
@@ -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) => {
|
|
@@ -18424,7 +18424,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18424
18424
|
default: false
|
|
18425
18425
|
}
|
|
18426
18426
|
},
|
|
18427
|
-
emits: ["
|
|
18427
|
+
emits: ["changed"],
|
|
18428
18428
|
setup(__props, { emit: __emit }) {
|
|
18429
18429
|
const props = __props;
|
|
18430
18430
|
const emits = __emit;
|
|
@@ -18447,7 +18447,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18447
18447
|
} else {
|
|
18448
18448
|
currentData.value = row;
|
|
18449
18449
|
}
|
|
18450
|
-
emits("
|
|
18450
|
+
emits("changed", currentData.value);
|
|
18451
18451
|
}
|
|
18452
18452
|
function filterNode(value, node) {
|
|
18453
18453
|
var _a;
|