pukaad-ui-lib 1.39.0 → 1.40.0
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/module.json +1 -1
- package/dist/runtime/components/drawer/drawer.d.vue.ts +1 -1
- package/dist/runtime/components/drawer/drawer.vue +2 -2
- package/dist/runtime/components/drawer/drawer.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-address.d.vue.ts +1 -74
- package/dist/runtime/components/input/input-address.vue +75 -480
- package/dist/runtime/components/input/input-address.vue.d.ts +1 -74
- package/dist/runtime/components/input/input-autocomplete.vue +2 -2
- package/dist/runtime/components/input/input-combobox.d.vue.ts +4 -5
- package/dist/runtime/components/input/input-combobox.vue +131 -122
- package/dist/runtime/components/input/input-combobox.vue.d.ts +4 -5
- package/dist/runtime/components/input/input-text-field.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-text-field.vue.d.ts +1 -1
- package/dist/runtime/components/input/input-textarea.d.vue.ts +1 -1
- package/dist/runtime/components/input/input-textarea.vue.d.ts +1 -1
- package/dist/runtime/components/loading.d.vue.ts +2 -4
- package/dist/runtime/components/loading.vue +4 -8
- package/dist/runtime/components/loading.vue.d.ts +2 -4
- package/dist/runtime/components/modal/modal-share.vue +1 -1
- package/dist/runtime/components/modal/modal.d.vue.ts +2 -1
- package/dist/runtime/components/modal/modal.vue +2 -2
- package/dist/runtime/components/modal/modal.vue.d.ts +2 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.d.vue.ts +1 -1
- package/dist/runtime/components/ui/input-group/InputGroupButton.vue.d.ts +1 -1
- package/dist/runtime/components/ui/input-group/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -2,7 +2,7 @@ import type { SheetContentProps } from "@/runtime/components/ui/sheet/SheetConte
|
|
|
2
2
|
export interface DrawerProps extends SheetContentProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
5
|
-
|
|
5
|
+
loading?: boolean;
|
|
6
6
|
loadingText?: string;
|
|
7
7
|
}
|
|
8
8
|
type __VLS_Props = DrawerProps;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<ShadSheet v-model:open="isOpen">
|
|
3
3
|
<ShadSheetContent v-bind="props" v-slot="{ meta }" @submit="onSubmit">
|
|
4
|
-
<Loading :
|
|
4
|
+
<Loading :loading="props.loading" :text="props.loadingText" />
|
|
5
5
|
<ShadSheetHeader class="flex-shrink-0">
|
|
6
6
|
<slot name="header">
|
|
7
7
|
<ShadSheetTitle>{{ props.title }}</ShadSheetTitle>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
const props = defineProps({
|
|
25
25
|
title: { type: String, required: false },
|
|
26
26
|
description: { type: String, required: false },
|
|
27
|
-
|
|
27
|
+
loading: { type: Boolean, required: false },
|
|
28
28
|
loadingText: { type: String, required: false },
|
|
29
29
|
class: { type: null, required: false },
|
|
30
30
|
side: { type: String, required: false },
|
|
@@ -2,7 +2,7 @@ import type { SheetContentProps } from "@/runtime/components/ui/sheet/SheetConte
|
|
|
2
2
|
export interface DrawerProps extends SheetContentProps {
|
|
3
3
|
title?: string;
|
|
4
4
|
description?: string;
|
|
5
|
-
|
|
5
|
+
loading?: boolean;
|
|
6
6
|
loadingText?: string;
|
|
7
7
|
}
|
|
8
8
|
type __VLS_Props = DrawerProps;
|
|
@@ -1,76 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
code: number;
|
|
3
|
-
name_th: string;
|
|
4
|
-
name_en: string;
|
|
5
|
-
}
|
|
6
|
-
interface District {
|
|
7
|
-
code: number;
|
|
8
|
-
name_th: string;
|
|
9
|
-
name_en: string;
|
|
10
|
-
province_code: number;
|
|
11
|
-
}
|
|
12
|
-
interface SubDistrict {
|
|
13
|
-
code: number;
|
|
14
|
-
name_th: string;
|
|
15
|
-
name_en: string;
|
|
16
|
-
district_code: number;
|
|
17
|
-
zip_code: number;
|
|
18
|
-
}
|
|
19
|
-
export interface InputAddressValue {
|
|
20
|
-
province?: Province;
|
|
21
|
-
district?: District;
|
|
22
|
-
subDistrict?: SubDistrict;
|
|
23
|
-
zipCode?: number;
|
|
24
|
-
detail?: string;
|
|
25
|
-
fullAddress?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface InputAddressProps {
|
|
28
|
-
name?: string;
|
|
29
|
-
label?: string;
|
|
30
|
-
placeholder?: string;
|
|
31
|
-
labelDetail?: string;
|
|
32
|
-
placeholderDetail?: string;
|
|
33
|
-
required?: boolean;
|
|
34
|
-
requiredDetail?: boolean;
|
|
35
|
-
rules?: object | string | Function;
|
|
36
|
-
provinces?: Province[];
|
|
37
|
-
districts?: District[];
|
|
38
|
-
subDistricts?: SubDistrict[];
|
|
39
|
-
}
|
|
40
|
-
type __VLS_Props = InputAddressProps;
|
|
41
|
-
type __VLS_ModelProps = {
|
|
42
|
-
modelValue?: InputAddressValue;
|
|
43
|
-
};
|
|
44
|
-
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
45
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
46
|
-
validate: () => Promise<boolean>;
|
|
47
|
-
setErrors: (errMsg: string[]) => void;
|
|
48
|
-
reset: () => void;
|
|
49
|
-
addressFieldRef: import("vue").Ref<any, any>;
|
|
50
|
-
detailFieldRef: import("vue").Ref<any, any>;
|
|
51
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
52
|
-
"update:modelValue": (value: InputAddressValue) => any;
|
|
53
|
-
} & {
|
|
54
|
-
change: (value: InputAddressValue) => any;
|
|
55
|
-
selectProvince: (province: Province) => any;
|
|
56
|
-
selectDistrict: (district: District) => any;
|
|
57
|
-
selectSubDistrict: (subDistrict: SubDistrict) => any;
|
|
58
|
-
selectZipCode: (zipCode: number) => any;
|
|
59
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
60
|
-
onChange?: ((value: InputAddressValue) => any) | undefined;
|
|
61
|
-
"onUpdate:modelValue"?: ((value: InputAddressValue) => any) | undefined;
|
|
62
|
-
onSelectProvince?: ((province: Province) => any) | undefined;
|
|
63
|
-
onSelectDistrict?: ((district: District) => any) | undefined;
|
|
64
|
-
onSelectSubDistrict?: ((subDistrict: SubDistrict) => any) | undefined;
|
|
65
|
-
onSelectZipCode?: ((zipCode: number) => any) | undefined;
|
|
66
|
-
}>, {
|
|
67
|
-
label: string;
|
|
68
|
-
required: boolean;
|
|
69
|
-
name: string;
|
|
70
|
-
placeholder: string;
|
|
71
|
-
labelDetail: string;
|
|
72
|
-
placeholderDetail: string;
|
|
73
|
-
requiredDetail: boolean;
|
|
74
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
75
2
|
declare const _default: typeof __VLS_export;
|
|
76
3
|
export default _default;
|