@airpower/web 0.2.24 → 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.
|
@@ -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
|
};
|
package/dist/main.js
CHANGED
|
@@ -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) => {
|