vant 3.4.6 → 3.4.7
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/changelog.generated.md +39 -50
- package/es/address-list/AddressListItem.d.ts +3 -2
- package/es/address-list/AddressListItem.js +1 -1
- package/es/badge/Badge.d.ts +4 -3
- package/es/badge/index.d.ts +2 -2
- package/es/calendar/Calendar.js +1 -1
- package/es/calendar/types.d.ts +2 -1
- package/es/cascader/types.d.ts +2 -1
- package/es/checkbox/Checker.d.ts +2 -1
- package/es/collapse/Collapse.d.ts +7 -6
- package/es/collapse/index.d.ts +3 -3
- package/es/composables/use-touch.js +1 -1
- package/es/config-provider/ConfigProvider.d.ts +4 -3
- package/es/config-provider/index.d.ts +2 -2
- package/es/contact-list/ContactList.d.ts +3 -2
- package/es/coupon/Coupon.d.ts +2 -1
- package/es/coupon-list/CouponList.d.ts +3 -13
- package/es/coupon-list/CouponList.js +9 -7
- package/es/coupon-list/index.css +1 -1
- package/es/coupon-list/index.d.ts +2 -9
- package/es/coupon-list/index.less +4 -16
- package/es/coupon-list/style/index.js +1 -0
- package/es/coupon-list/style/less.js +1 -0
- package/es/coupon-list/var.less +0 -1
- package/es/datetime-picker/DatePicker.js +1 -2
- package/es/dialog/types.d.ts +2 -2
- package/es/dropdown-item/types.d.ts +2 -1
- package/es/index-bar/IndexBar.d.ts +5 -4
- package/es/index-bar/IndexBar.js +25 -4
- package/es/index-bar/index.d.ts +3 -3
- package/es/index-bar/types.d.ts +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/locale/lang/is-IS.d.ts +64 -0
- package/es/locale/lang/is-IS.js +74 -0
- package/es/locale/lang/la-LA.d.ts +64 -0
- package/es/locale/lang/la-LA.js +66 -0
- package/es/locale/lang/sv-SE.d.ts +64 -0
- package/es/locale/lang/sv-SE.js +66 -0
- package/es/notify/types.d.ts +2 -1
- package/es/number-keyboard/NumberKeyboard.js +10 -1
- package/es/picker/types.d.ts +3 -2
- package/es/progress/Progress.d.ts +4 -3
- package/es/progress/index.d.ts +2 -2
- package/es/skeleton/Skeleton.d.ts +5 -4
- package/es/skeleton/index.d.ts +3 -3
- package/es/tabbar/Tabbar.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/Tabs.js +1 -0
- package/es/tabs/types.d.ts +5 -4
- package/es/toast/types.d.ts +3 -2
- package/es/tree-select/TreeSelect.d.ts +7 -6
- package/es/tree-select/index.d.ts +3 -3
- package/es/uploader/Uploader.d.ts +4 -4
- package/es/uploader/Uploader.js +2 -2
- package/es/uploader/UploaderPreviewItem.d.ts +3 -3
- package/es/uploader/UploaderPreviewItem.js +9 -6
- package/es/uploader/index.d.ts +2 -2
- package/es/uploader/types.d.ts +5 -5
- package/es/utils/basic.d.ts +1 -0
- package/es/utils/format.d.ts +7 -6
- package/es/utils/format.js +6 -0
- package/es/utils/validate.d.ts +2 -1
- package/lib/address-list/AddressListItem.d.ts +3 -2
- package/lib/badge/Badge.d.ts +4 -3
- package/lib/badge/index.d.ts +2 -2
- package/lib/calendar/Calendar.js +1 -1
- package/lib/calendar/types.d.ts +2 -1
- package/lib/cascader/types.d.ts +2 -1
- package/lib/checkbox/Checker.d.ts +2 -1
- package/lib/collapse/Collapse.d.ts +7 -6
- package/lib/collapse/index.d.ts +3 -3
- package/lib/composables/use-touch.js +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +4 -3
- package/lib/config-provider/index.d.ts +2 -2
- package/lib/contact-list/ContactList.d.ts +3 -2
- package/lib/coupon/Coupon.d.ts +2 -1
- package/lib/coupon-list/CouponList.d.ts +3 -13
- package/lib/coupon-list/CouponList.js +9 -7
- package/lib/coupon-list/index.css +1 -1
- package/lib/coupon-list/index.d.ts +2 -9
- package/lib/coupon-list/index.less +4 -16
- package/lib/coupon-list/style/index.js +1 -0
- package/lib/coupon-list/style/less.js +1 -0
- package/lib/coupon-list/var.less +0 -1
- package/lib/datetime-picker/DatePicker.js +1 -2
- package/lib/dialog/types.d.ts +2 -2
- package/lib/dropdown-item/types.d.ts +2 -1
- package/lib/index-bar/IndexBar.d.ts +5 -4
- package/lib/index-bar/IndexBar.js +25 -4
- package/lib/index-bar/index.d.ts +3 -3
- package/lib/index-bar/types.d.ts +2 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.less +2 -2
- package/lib/locale/lang/is-IS.d.ts +64 -0
- package/lib/locale/lang/is-IS.js +98 -0
- package/lib/locale/lang/la-LA.d.ts +64 -0
- package/lib/locale/lang/la-LA.js +90 -0
- package/lib/locale/lang/sv-SE.d.ts +64 -0
- package/lib/locale/lang/sv-SE.js +90 -0
- package/lib/notify/types.d.ts +2 -1
- package/lib/number-keyboard/NumberKeyboard.js +10 -1
- package/lib/picker/types.d.ts +3 -2
- package/lib/progress/Progress.d.ts +4 -3
- package/lib/progress/index.d.ts +2 -2
- package/lib/skeleton/Skeleton.d.ts +5 -4
- package/lib/skeleton/index.d.ts +3 -3
- package/lib/tabbar/Tabbar.d.ts +2 -2
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/Tabs.js +1 -0
- package/lib/tabs/types.d.ts +5 -4
- package/lib/toast/types.d.ts +3 -2
- package/lib/tree-select/TreeSelect.d.ts +7 -6
- package/lib/tree-select/index.d.ts +3 -3
- package/lib/uploader/Uploader.d.ts +4 -4
- package/lib/uploader/Uploader.js +1 -1
- package/lib/uploader/UploaderPreviewItem.d.ts +3 -3
- package/lib/uploader/UploaderPreviewItem.js +9 -6
- package/lib/uploader/index.d.ts +2 -2
- package/lib/uploader/types.d.ts +5 -5
- package/lib/utils/basic.d.ts +1 -0
- package/lib/utils/format.d.ts +7 -6
- package/lib/utils/format.js +6 -0
- package/lib/utils/validate.d.ts +2 -1
- package/lib/vant.cjs.js +269 -229
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +269 -229
- package/lib/vant.es.min.js +269 -229
- package/lib/vant.js +269 -229
- package/lib/vant.min.js +1 -1
- package/package.json +1 -1
- package/vetur/attributes.json +641 -638
- package/vetur/tags.json +227 -227
- package/vetur/web-types.json +2160 -2158
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
import { IndexBarProvide } from './types';
|
3
4
|
declare function genAlphabet(): string[];
|
4
5
|
declare const indexBarProps: {
|
@@ -14,7 +15,7 @@ declare const indexBarProps: {
|
|
14
15
|
default: number;
|
15
16
|
};
|
16
17
|
indexList: {
|
17
|
-
type: PropType<
|
18
|
+
type: PropType<Numeric[]>;
|
18
19
|
default: typeof genAlphabet;
|
19
20
|
};
|
20
21
|
};
|
@@ -33,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
34
|
default: number;
|
34
35
|
};
|
35
36
|
indexList: {
|
36
|
-
type: PropType<
|
37
|
+
type: PropType<Numeric[]>;
|
37
38
|
default: typeof genAlphabet;
|
38
39
|
};
|
39
40
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
@@ -49,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
50
|
default: number;
|
50
51
|
};
|
51
52
|
indexList: {
|
52
|
-
type: PropType<
|
53
|
+
type: PropType<Numeric[]>;
|
53
54
|
default: typeof genAlphabet;
|
54
55
|
};
|
55
56
|
}>> & {
|
@@ -58,6 +59,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
58
59
|
}, {
|
59
60
|
sticky: boolean;
|
60
61
|
stickyOffsetTop: number;
|
61
|
-
indexList:
|
62
|
+
indexList: Numeric[];
|
62
63
|
}>;
|
63
64
|
export default _default;
|
package/es/index-bar/IndexBar.js
CHANGED
@@ -38,6 +38,7 @@ var stdin_default = defineComponent({
|
|
38
38
|
children,
|
39
39
|
linkChildren
|
40
40
|
} = useChildren(INDEX_BAR_KEY);
|
41
|
+
let selectActiveIndex;
|
41
42
|
linkChildren({
|
42
43
|
props
|
43
44
|
});
|
@@ -65,6 +66,7 @@ var stdin_default = defineComponent({
|
|
65
66
|
}
|
66
67
|
return -1;
|
67
68
|
};
|
69
|
+
const getMatchAnchor = (index) => children.find((item) => String(item.index) === index);
|
68
70
|
const onScroll = () => {
|
69
71
|
if (isHidden(root)) {
|
70
72
|
return;
|
@@ -76,7 +78,16 @@ var stdin_default = defineComponent({
|
|
76
78
|
const scrollTop = getScrollTop(scrollParent.value);
|
77
79
|
const scrollParentRect = useRect(scrollParent);
|
78
80
|
const rects = children.map((item) => item.getRect(scrollParent.value, scrollParentRect));
|
79
|
-
|
81
|
+
let active = -1;
|
82
|
+
if (selectActiveIndex) {
|
83
|
+
const match = getMatchAnchor(selectActiveIndex);
|
84
|
+
if (match) {
|
85
|
+
const rect = match.getRect(scrollParent.value, scrollParentRect);
|
86
|
+
active = getActiveAnchor(rect.top, rects);
|
87
|
+
}
|
88
|
+
} else {
|
89
|
+
active = getActiveAnchor(scrollTop, rects);
|
90
|
+
}
|
80
91
|
activeAnchor.value = indexList[active];
|
81
92
|
if (sticky) {
|
82
93
|
children.forEach((item, index) => {
|
@@ -95,7 +106,7 @@ var stdin_default = defineComponent({
|
|
95
106
|
if (index === active) {
|
96
107
|
state.active = true;
|
97
108
|
state.top = Math.max(props.stickyOffsetTop, rects[index].top - scrollTop) + scrollParentRect.top;
|
98
|
-
} else if (index === active - 1) {
|
109
|
+
} else if (index === active - 1 && selectActiveIndex === "") {
|
99
110
|
const activeItemTop = rects[active].top - scrollTop;
|
100
111
|
state.active = activeItemTop > 0;
|
101
112
|
state.top = activeItemTop + scrollParentRect.top - rects[index].height;
|
@@ -104,6 +115,7 @@ var stdin_default = defineComponent({
|
|
104
115
|
}
|
105
116
|
});
|
106
117
|
}
|
118
|
+
selectActiveIndex = "";
|
107
119
|
};
|
108
120
|
const init = () => {
|
109
121
|
nextTick(onScroll);
|
@@ -129,9 +141,18 @@ var stdin_default = defineComponent({
|
|
129
141
|
}, [index]);
|
130
142
|
});
|
131
143
|
const scrollTo = (index) => {
|
132
|
-
|
133
|
-
const match =
|
144
|
+
selectActiveIndex = String(index);
|
145
|
+
const match = getMatchAnchor(selectActiveIndex);
|
134
146
|
if (match) {
|
147
|
+
const scrollTop = getScrollTop(scrollParent.value);
|
148
|
+
const scrollParentRect = useRect(scrollParent);
|
149
|
+
const {
|
150
|
+
offsetHeight
|
151
|
+
} = document.documentElement;
|
152
|
+
if (scrollTop === offsetHeight - scrollParentRect.height) {
|
153
|
+
onScroll();
|
154
|
+
return;
|
155
|
+
}
|
135
156
|
match.$el.scrollIntoView();
|
136
157
|
if (props.sticky && props.stickyOffsetTop) {
|
137
158
|
setRootScrollTop(getRootScrollTop() - props.stickyOffsetTop);
|
package/es/index-bar/index.d.ts
CHANGED
@@ -12,7 +12,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
12
12
|
default: number;
|
13
13
|
};
|
14
14
|
indexList: {
|
15
|
-
type: import("vue").PropType<(
|
15
|
+
type: import("vue").PropType<import("../utils").Numeric[]>;
|
16
16
|
default: () => string[];
|
17
17
|
};
|
18
18
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change")[], "select" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -28,7 +28,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
28
28
|
default: number;
|
29
29
|
};
|
30
30
|
indexList: {
|
31
|
-
type: import("vue").PropType<(
|
31
|
+
type: import("vue").PropType<import("../utils").Numeric[]>;
|
32
32
|
default: () => string[];
|
33
33
|
};
|
34
34
|
}>> & {
|
@@ -37,7 +37,7 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
|
|
37
37
|
}, {
|
38
38
|
sticky: boolean;
|
39
39
|
stickyOffsetTop: number;
|
40
|
-
indexList: (
|
40
|
+
indexList: import("../utils").Numeric[];
|
41
41
|
}>>;
|
42
42
|
export default IndexBar;
|
43
43
|
export type { IndexBarProps };
|
package/es/index-bar/types.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { Numeric } from '../utils';
|
2
3
|
import type { IndexBarProps } from './IndexBar';
|
3
4
|
export declare type IndexBarProvide = {
|
4
5
|
props: IndexBarProps;
|
5
6
|
};
|
6
7
|
export declare type IndexBarExpose = {
|
7
|
-
scrollTo: (index:
|
8
|
+
scrollTo: (index: Numeric) => void;
|
8
9
|
};
|
9
10
|
export declare type IndexBarInstance = ComponentPublicInstance<IndexBarProps, IndexBarExpose>;
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
@@ -83,7 +83,7 @@ import { Tag } from "./tag";
|
|
83
83
|
import { Toast } from "./toast";
|
84
84
|
import { TreeSelect } from "./tree-select";
|
85
85
|
import { Uploader } from "./uploader";
|
86
|
-
const version = "3.4.
|
86
|
+
const version = "3.4.7";
|
87
87
|
function install(app) {
|
88
88
|
const components = [
|
89
89
|
ActionBar,
|
@@ -0,0 +1,64 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
postal: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
postalEmpty: string;
|
57
|
+
addressDetail: string;
|
58
|
+
defaultAddress: string;
|
59
|
+
};
|
60
|
+
vanAddressList: {
|
61
|
+
add: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
export default _default;
|
@@ -0,0 +1,74 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "Nafn",
|
3
|
+
tel: "S\xEDmi",
|
4
|
+
save: "Vista",
|
5
|
+
confirm: "Sta\xF0festa",
|
6
|
+
cancel: "h\xE6tta vi\xF0",
|
7
|
+
delete: "Ey\xF0a",
|
8
|
+
loading: "Hle\xF0ur...",
|
9
|
+
noCoupon: "Engin afsl\xE1ttarmi\xF0a",
|
10
|
+
nameEmpty: "Vinsamlegast fylltu \xFAt nafn",
|
11
|
+
addContact: "B\xE6ta vi\xF0 tengili\xF0",
|
12
|
+
telInvalid: "Ganga\xF0 s\xEDman\xFAmer",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "Enda",
|
15
|
+
start: "Byrja",
|
16
|
+
title: "Dagatal",
|
17
|
+
weekdays: [
|
18
|
+
"sunnudag",
|
19
|
+
"M\xE1nudagur",
|
20
|
+
"\xFEri\xF0judag",
|
21
|
+
"mi\xF0vikudag",
|
22
|
+
"fimmtudag",
|
23
|
+
"f\xF6studag",
|
24
|
+
"laugardag"
|
25
|
+
],
|
26
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
27
|
+
rangePrompt: (maxRange) => `Veldu ekki fleiri en ${maxRange} daga`
|
28
|
+
},
|
29
|
+
vanCascader: {
|
30
|
+
select: "Velja"
|
31
|
+
},
|
32
|
+
vanPagination: {
|
33
|
+
prev: "Fyrri",
|
34
|
+
next: "N\xE6st"
|
35
|
+
},
|
36
|
+
vanPullRefresh: {
|
37
|
+
pulling: "Dreg\xF0u til a\xF0 endurn\xFDja...",
|
38
|
+
loosing: "Loose to refresh..."
|
39
|
+
},
|
40
|
+
vanSubmitBar: {
|
41
|
+
label: "Samtals:"
|
42
|
+
},
|
43
|
+
vanCoupon: {
|
44
|
+
unlimited: "\xD3takmarka\xF0",
|
45
|
+
discount: (discount) => `${discount * 10}% afsl\xE1ttur`,
|
46
|
+
condition: (condition) => `A\xF0 minnsta kosti ${condition}`
|
47
|
+
},
|
48
|
+
vanCouponCell: {
|
49
|
+
title: "Afsl\xE1ttarmi\xF0i",
|
50
|
+
count: (count) => `\xDE\xFA \xE1tt ${count} afsl\xE1ttarmi\xF0a`
|
51
|
+
},
|
52
|
+
vanCouponList: {
|
53
|
+
exchange: "Skipti",
|
54
|
+
close: "Loka",
|
55
|
+
enable: "Laus",
|
56
|
+
disabled: "\xD3tilt\xE6kt",
|
57
|
+
placeholder: "Afsl\xE1ttarmi\xF0ak\xF3\xF0i"
|
58
|
+
},
|
59
|
+
vanAddressEdit: {
|
60
|
+
area: "Sv\xE6\xF0i",
|
61
|
+
postal: "p\xF3stur",
|
62
|
+
areaEmpty: "Vinsamlega veldu m\xF3tt\xF6kusv\xE6\xF0i",
|
63
|
+
addressEmpty: "Heimilisfang m\xE1 ekki vera t\xF3mt",
|
64
|
+
postalEmpty: "Rangt p\xF3stn\xFAmer",
|
65
|
+
addressDetail: "Heimilisfang",
|
66
|
+
defaultAddress: "Setja sem sj\xE1lfgefi\xF0 heimilisfang"
|
67
|
+
},
|
68
|
+
vanAddressList: {
|
69
|
+
add: "B\xE6ta vi\xF0 n\xFDju heimilisfangi"
|
70
|
+
}
|
71
|
+
};
|
72
|
+
export {
|
73
|
+
stdin_default as default
|
74
|
+
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
postal: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
postalEmpty: string;
|
57
|
+
addressDetail: string;
|
58
|
+
defaultAddress: string;
|
59
|
+
};
|
60
|
+
vanAddressList: {
|
61
|
+
add: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
export default _default;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "\u0E8A\u0EB7\u0EC8",
|
3
|
+
tel: "\u0EC2\u0E97\u0EA5\u0EB0\u0EAA\u0EB1\u0E9A",
|
4
|
+
save: "\u0E9A\u0EB1\u0E99\u0E97\u0EB6\u0E81",
|
5
|
+
confirm: "\u0EA2\u0EB6\u0E99\u0EA2\u0EB1\u0E99",
|
6
|
+
cancel: "\u0E8D\u0EBB\u0E81\u0EC0\u0EA5\u0EB5\u0E81",
|
7
|
+
delete: "\u0EA5\u0EB7\u0E9A",
|
8
|
+
loading: "\u0E81\u0EB3\u0EA5\u0EB1\u0E87\u0EC2\u0EAB\u0EBC\u0E94...",
|
9
|
+
noCoupon: "\u0E9A\u0ECD\u0EC8\u0EA1\u0EB5\u0E84\u0EB9\u0E9B\u0EAD\u0E87",
|
10
|
+
nameEmpty: "\u0E81\u0EB0\u0EA5\u0EB8\u0E99\u0EB2\u0E9B\u0EC9\u0EAD\u0E99\u0E8A\u0EB7\u0EC8",
|
11
|
+
addContact: "\u0EC0\u0E9E\u0EB5\u0EC8\u0EA1\u0E9C\u0EB9\u0EC9\u0E95\u0EB4\u0E94\u0E95\u0ECD\u0EC8",
|
12
|
+
telInvalid: "\u0EC0\u0E9A\u0EB5\u0EC2\u0E97\u0EA5\u0EB0\u0EAA\u0EB1\u0E9A\u0E9A\u0ECD\u0EC8\u0E96\u0EB7\u0E81\u0E95\u0EC9\u0EAD\u0E87",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "\u0E88\u0EBB\u0E9A",
|
15
|
+
start: "\u0EC0\u0EA5\u0EB5\u0EC8\u0EA1",
|
16
|
+
title: "\u0E81\u0EB2\u0E99\u0EC0\u0EA5\u0EB7\u0EAD\u0E81\u0EA7\u0EB1\u0E99\u0E97\u0EB5\u0EC8",
|
17
|
+
weekdays: ["\u0EAD\u0EB2", "\u0E88", "\u0EAD", "\u0E9E", "\u0E9E\u0EAB", "\u0EAA", "\u0EAA"],
|
18
|
+
monthTitle: (year, month) => `${year}\u0E9B\u0EB5${month}\u0EC0\u0E94\u0EB7\u0EAD\u0E99`,
|
19
|
+
rangePrompt: (maxRange) => `\u0E88\u0EB3\u0E99\u0EAD\u0E99\u0EA7\u0EB1\u0E99\u0E97\u0EB5\u0EC8\u0EC0\u0EA5\u0EB7\u0EAD\u0E81\u0E95\u0EC9\u0EAD\u0E87\u0E9A\u0ECD\u0EC8\u0EC0\u0E81\u0EB5\u0E99 ${maxRange} \u0EA7\u0EB1\u0E99`
|
20
|
+
},
|
21
|
+
vanCascader: {
|
22
|
+
select: "\u0E81\u0EB0\u0EA5\u0EB8\u0E99\u0EB2\u0EC0\u0EA5\u0EB7\u0EAD\u0E81"
|
23
|
+
},
|
24
|
+
vanPagination: {
|
25
|
+
prev: "\u0EDC\u0EC9\u0EB2\u0E97\u0EB5\u0EC8\u0EC1\u0EA5\u0EC9\u0EA7",
|
26
|
+
next: "\u0EDC\u0EC9\u0EB2\u0E95\u0ECD\u0EC8\u0EC4\u0E9B"
|
27
|
+
},
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: "\u0E94\u0EB7\u0E87\u0EA5\u0EBB\u0E87\u0EC0\u0E9E\u0EB7\u0EC8\u0EAD\u0EA3\u0EB5\u0EC0\u0E9F\u0EAA...",
|
30
|
+
loosing: "\u0E9B\u0EC8\u0EAD\u0E8D\u0EC0\u0E9E\u0EB7\u0EC8\u0EAD\u0EA3\u0EB5\u0EC0\u0E9F\u0EAA..."
|
31
|
+
},
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: "\u0EA5\u0EA7\u0EA1:"
|
34
|
+
},
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: "\u0E9A\u0ECD\u0EC8 \u0E88\u0EB3\u0E81\u0EB1\u0E94",
|
37
|
+
discount: (discount) => `\u0EA5\u0EBB\u0E94${discount}`,
|
38
|
+
condition: (condition) => `\u0EA1\u0EB5\u0E88\u0EB3\u0EDC\u0EC8\u0EB2\u0E8D\u0EC3\u0E99\u0EA5\u0EB2\u0E84\u0EB2 ${condition} \u0E81\u0EA7\u0EC8\u0EB2\u0EAB\u0E8D\u0EA7\u0E99`
|
39
|
+
},
|
40
|
+
vanCouponCell: {
|
41
|
+
title: "\u0E84\u0EB9\u0E9B\u0EAD\u0E87",
|
42
|
+
count: (count) => `\u0EA1\u0EB5\u0EAE\u0EB9\u0E9A\u0E9E\u0EB2\u0E9A ${count} \u0EAE\u0EB9\u0E9A`
|
43
|
+
},
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: "\u0EC1\u0EA5\u0E81\u0E9B\u0EC8\u0EBD\u0E99",
|
46
|
+
close: "\u0E9A\u0ECD\u0EC8\u0EC4\u0E94\u0EC9\u0EC3\u0E8A\u0EC9",
|
47
|
+
enable: "\u0E9E\u0EC9\u0EAD\u0EA1\u0EC3\u0E8A\u0EC9\u0E87\u0EB2\u0E99",
|
48
|
+
disabled: "\u0E9A\u0ECD\u0EC8\u0E9E\u0EC9\u0EAD\u0EA1\u0EC3\u0E8A\u0EC9\u0E87\u0EB2\u0E99",
|
49
|
+
placeholder: "\u0E81\u0EB0\u0EA5\u0EB8\u0E99\u0EB2\u0E9B\u0EC9\u0EAD\u0E99\u0E84\u0EB9\u0E9B\u0EAD\u0E87"
|
50
|
+
},
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: "\u0E9E\u0EB7\u0EC9\u0E99\u0E97\u0EB5\u0EC8",
|
53
|
+
postal: "\u0EA5\u0EB0\u0EAB\u0EB1\u0E94\u0EC4\u0E9B\u0EAA\u0EB0\u0E99\u0EB5",
|
54
|
+
areaEmpty: "\u0E81\u0EB0\u0EA5\u0EB8\u0E99\u0EB2\u0EC0\u0EA5\u0EB7\u0EAD\u0E81\u0E9E\u0EB7\u0EC9\u0E99\u0E97\u0EB5\u0EC8",
|
55
|
+
addressEmpty: "\u0E81\u0EB0\u0EA5\u0EB8\u0E99\u0EB2\u0E9B\u0EC9\u0EAD\u0E99\u0E97\u0EB5\u0EC8\u0EA2\u0EB9\u0EC8",
|
56
|
+
postalEmpty: "\u0E81\u0EB0\u0EA5\u0EB8\u0E99\u0EB2\u0E9B\u0EC9\u0EAD\u0E99\u0EA5\u0EB0\u0EAB\u0EB1\u0E94\u0EC4\u0E9B\u0EAA\u0EB0\u0E99\u0EB5",
|
57
|
+
addressDetail: "\u0E97\u0EB5\u0EC8\u0EA2\u0EB9\u0EC8",
|
58
|
+
defaultAddress: "\u0E95\u0EB1\u0EC9\u0E87\u0EC0\u0E9B\u0EB1\u0E99\u0E97\u0EB5\u0EC8\u0EA2\u0EB9\u0EC8\u0EC0\u0EA5\u0EB5\u0EC8\u0EA1\u0E95\u0EBB\u0EC9\u0E99"
|
59
|
+
},
|
60
|
+
vanAddressList: {
|
61
|
+
add: "\u0EC0\u0E9E\u0EB5\u0EC8\u0EA1\u0E97\u0EB5\u0EC8\u0EA2\u0EB9\u0EC8"
|
62
|
+
}
|
63
|
+
};
|
64
|
+
export {
|
65
|
+
stdin_default as default
|
66
|
+
};
|
@@ -0,0 +1,64 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
confirm: string;
|
6
|
+
cancel: string;
|
7
|
+
delete: string;
|
8
|
+
loading: string;
|
9
|
+
noCoupon: string;
|
10
|
+
nameEmpty: string;
|
11
|
+
addContact: string;
|
12
|
+
telInvalid: string;
|
13
|
+
vanCalendar: {
|
14
|
+
end: string;
|
15
|
+
start: string;
|
16
|
+
title: string;
|
17
|
+
weekdays: string[];
|
18
|
+
monthTitle: (year: number, month: number) => string;
|
19
|
+
rangePrompt: (maxRange: number) => string;
|
20
|
+
};
|
21
|
+
vanCascader: {
|
22
|
+
select: string;
|
23
|
+
};
|
24
|
+
vanPagination: {
|
25
|
+
prev: string;
|
26
|
+
next: string;
|
27
|
+
};
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: string;
|
30
|
+
loosing: string;
|
31
|
+
};
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: string;
|
34
|
+
};
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: string;
|
37
|
+
discount: (discount: number) => string;
|
38
|
+
condition: (condition: number) => string;
|
39
|
+
};
|
40
|
+
vanCouponCell: {
|
41
|
+
title: string;
|
42
|
+
count: (count: number) => string;
|
43
|
+
};
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: string;
|
46
|
+
close: string;
|
47
|
+
enable: string;
|
48
|
+
disabled: string;
|
49
|
+
placeholder: string;
|
50
|
+
};
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: string;
|
53
|
+
postal: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
postalEmpty: string;
|
57
|
+
addressDetail: string;
|
58
|
+
defaultAddress: string;
|
59
|
+
};
|
60
|
+
vanAddressList: {
|
61
|
+
add: string;
|
62
|
+
};
|
63
|
+
};
|
64
|
+
export default _default;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "Namn",
|
3
|
+
tel: "Telefon",
|
4
|
+
save: "Spara",
|
5
|
+
confirm: "Bekr\xE4fta",
|
6
|
+
cancel: "Avbryt",
|
7
|
+
delete: "Radera",
|
8
|
+
loading: "Laddar...",
|
9
|
+
noCoupon: "Inga kuponger",
|
10
|
+
nameEmpty: "V\xE4nligen fyll i namnet",
|
11
|
+
addContact: "L\xE4gg till kontakt",
|
12
|
+
telInvalid: "Felformat telefonnummer",
|
13
|
+
vanCalendar: {
|
14
|
+
end: "Slut",
|
15
|
+
start: "Start",
|
16
|
+
title: "Kalender",
|
17
|
+
weekdays: ["s\xF6n", "m\xE5n", "tis", "ons", "tors", "fre", "l\xF6r"],
|
18
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
19
|
+
rangePrompt: (maxRange) => `V\xE4lj h\xF6gst ${maxRange} dagar`
|
20
|
+
},
|
21
|
+
vanCascader: {
|
22
|
+
select: "V\xE4lj"
|
23
|
+
},
|
24
|
+
vanPagination: {
|
25
|
+
prev: "F\xF6reg\xE5ende",
|
26
|
+
next: "N\xE4sta"
|
27
|
+
},
|
28
|
+
vanPullRefresh: {
|
29
|
+
pulling: "Dra f\xF6r att uppdatera...",
|
30
|
+
loosing: "L\xF6s f\xF6r att uppdatera..."
|
31
|
+
},
|
32
|
+
vanSubmitBar: {
|
33
|
+
label: "Totalt:"
|
34
|
+
},
|
35
|
+
vanCoupon: {
|
36
|
+
unlimited: "Obegr\xE4nsat",
|
37
|
+
discount: (discount) => `${discount * 10}% rabatt`,
|
38
|
+
condition: (condition) => `Minst ${condition}`
|
39
|
+
},
|
40
|
+
vanCouponCell: {
|
41
|
+
title: "Kupong",
|
42
|
+
count: (count) => `Du har ${count} kuponger`
|
43
|
+
},
|
44
|
+
vanCouponList: {
|
45
|
+
exchange: "Utbyta",
|
46
|
+
close: "St\xE4ng",
|
47
|
+
enable: "Tillg\xE4ngliga",
|
48
|
+
disabled: "Inte tillg\xE4nglig",
|
49
|
+
placeholder: "Kupongkod"
|
50
|
+
},
|
51
|
+
vanAddressEdit: {
|
52
|
+
area: "Omr\xE5de",
|
53
|
+
postal: "Post",
|
54
|
+
areaEmpty: "V\xE4lj ett mottagningsomr\xE5de",
|
55
|
+
addressEmpty: "Adressen f\xE5r inte vara tom",
|
56
|
+
postalEmpty: "Fel postnummer",
|
57
|
+
addressDetail: "Adress",
|
58
|
+
defaultAddress: "Ange som standardadress"
|
59
|
+
},
|
60
|
+
vanAddressList: {
|
61
|
+
add: "L\xE4gg till ny adress"
|
62
|
+
}
|
63
|
+
};
|
64
|
+
export {
|
65
|
+
stdin_default as default
|
66
|
+
};
|
package/es/notify/types.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Notify } from './function-call';
|
2
|
-
|
2
|
+
import type { Numeric } from '../utils';
|
3
|
+
export declare type NotifyMessage = Numeric;
|
3
4
|
export declare type NotifyType = 'primary' | 'success' | 'danger' | 'warning';
|
4
5
|
export declare type NotifyPosition = 'top' | 'bottom';
|
5
6
|
export declare type NotifyOptions = {
|
@@ -26,6 +26,15 @@ const numberKeyboardProps = {
|
|
26
26
|
default: ""
|
27
27
|
}
|
28
28
|
};
|
29
|
+
function shuffle(array) {
|
30
|
+
for (let i = array.length - 1; i > 0; i--) {
|
31
|
+
const j = Math.floor(Math.random() * (i + 1));
|
32
|
+
const temp = array[i];
|
33
|
+
array[i] = array[j];
|
34
|
+
array[j] = temp;
|
35
|
+
}
|
36
|
+
return array;
|
37
|
+
}
|
29
38
|
var stdin_default = defineComponent({
|
30
39
|
name,
|
31
40
|
props: numberKeyboardProps,
|
@@ -40,7 +49,7 @@ var stdin_default = defineComponent({
|
|
40
49
|
text: i + 1
|
41
50
|
}));
|
42
51
|
if (props.randomKeyOrder) {
|
43
|
-
keys2
|
52
|
+
shuffle(keys2);
|
44
53
|
}
|
45
54
|
return keys2;
|
46
55
|
};
|
package/es/picker/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { ComponentPublicInstance } from 'vue';
|
2
|
+
import type { Numeric } from '../utils';
|
2
3
|
import type { PickerProps } from './Picker';
|
3
4
|
export declare type PickerToolbarPosition = 'top' | 'bottom';
|
4
5
|
export declare type PickerFieldNames = {
|
@@ -7,11 +8,11 @@ export declare type PickerFieldNames = {
|
|
7
8
|
children?: string;
|
8
9
|
};
|
9
10
|
export declare type PickerObjectOption = {
|
10
|
-
text?:
|
11
|
+
text?: Numeric;
|
11
12
|
disabled?: boolean;
|
12
13
|
[key: PropertyKey]: any;
|
13
14
|
};
|
14
|
-
export declare type PickerOption =
|
15
|
+
export declare type PickerOption = Numeric | PickerObjectOption;
|
15
16
|
export declare type PickerObjectColumn = {
|
16
17
|
values?: PickerOption[];
|
17
18
|
children?: PickerColumn;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { type ExtractPropTypes } from 'vue';
|
2
|
+
import { type Numeric } from '../utils';
|
2
3
|
declare const progressProps: {
|
3
4
|
color: StringConstructor;
|
4
5
|
inactive: BooleanConstructor;
|
@@ -14,7 +15,7 @@ declare const progressProps: {
|
|
14
15
|
percentage: {
|
15
16
|
type: (NumberConstructor | StringConstructor)[];
|
16
17
|
default: number;
|
17
|
-
validator: (value:
|
18
|
+
validator: (value: Numeric) => boolean;
|
18
19
|
};
|
19
20
|
};
|
20
21
|
export declare type ProgressProps = ExtractPropTypes<typeof progressProps>;
|
@@ -33,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
33
34
|
percentage: {
|
34
35
|
type: (NumberConstructor | StringConstructor)[];
|
35
36
|
default: number;
|
36
|
-
validator: (value:
|
37
|
+
validator: (value: Numeric) => boolean;
|
37
38
|
};
|
38
39
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
39
40
|
color: StringConstructor;
|
@@ -50,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
50
51
|
percentage: {
|
51
52
|
type: (NumberConstructor | StringConstructor)[];
|
52
53
|
default: number;
|
53
|
-
validator: (value:
|
54
|
+
validator: (value: Numeric) => boolean;
|
54
55
|
};
|
55
56
|
}>>, {
|
56
57
|
inactive: boolean;
|
package/es/progress/index.d.ts
CHANGED
@@ -14,7 +14,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
14
14
|
percentage: {
|
15
15
|
type: (NumberConstructor | StringConstructor)[];
|
16
16
|
default: number;
|
17
|
-
validator: (value:
|
17
|
+
validator: (value: import("../utils").Numeric) => boolean;
|
18
18
|
};
|
19
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
20
20
|
color: StringConstructor;
|
@@ -31,7 +31,7 @@ export declare const Progress: import("../utils").WithInstall<import("vue").Defi
|
|
31
31
|
percentage: {
|
32
32
|
type: (NumberConstructor | StringConstructor)[];
|
33
33
|
default: number;
|
34
|
-
validator: (value:
|
34
|
+
validator: (value: import("../utils").Numeric) => boolean;
|
35
35
|
};
|
36
36
|
}>>, {
|
37
37
|
inactive: boolean;
|