vant 4.6.4-beta.2 → 4.6.4
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/es/floating-panel/FloatingPanel.d.ts +13 -0
- package/es/floating-panel/FloatingPanel.mjs +2 -1
- package/es/floating-panel/index.d.ts +9 -0
- package/es/image-preview/ImagePreview.d.ts +13 -0
- package/es/image-preview/ImagePreview.mjs +2 -0
- package/es/image-preview/ImagePreviewItem.d.ts +3 -0
- package/es/image-preview/ImagePreviewItem.mjs +8 -3
- package/es/image-preview/function-call.mjs +1 -0
- package/es/image-preview/index.d.ts +9 -0
- package/es/image-preview/types.d.ts +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/list/List.d.ts +7 -4
- package/es/list/List.mjs +5 -3
- package/es/list/index.d.ts +2 -0
- package/es/locale/lang/sr-RS.d.ts +63 -0
- package/es/locale/lang/sr-RS.mjs +73 -0
- package/es/text-ellipsis/TextEllipsis.mjs +7 -7
- package/lib/floating-panel/FloatingPanel.d.ts +13 -0
- package/lib/floating-panel/FloatingPanel.js +2 -1
- package/lib/floating-panel/index.d.ts +9 -0
- package/lib/image-preview/ImagePreview.d.ts +13 -0
- package/lib/image-preview/ImagePreview.js +2 -0
- package/lib/image-preview/ImagePreviewItem.d.ts +3 -0
- package/lib/image-preview/ImagePreviewItem.js +8 -3
- package/lib/image-preview/function-call.js +1 -0
- package/lib/image-preview/index.d.ts +9 -0
- package/lib/image-preview/types.d.ts +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/list/List.d.ts +7 -4
- package/lib/list/List.js +4 -2
- package/lib/list/index.d.ts +2 -0
- package/lib/locale/lang/sr-RS.d.ts +63 -0
- package/lib/locale/lang/sr-RS.js +92 -0
- package/lib/text-ellipsis/TextEllipsis.js +7 -7
- package/lib/vant.cjs.js +25 -14
- package/lib/vant.es.js +25 -14
- package/lib/vant.js +25 -14
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
@@ -16,6 +16,10 @@ export declare const floatingPanelProps: {
|
|
16
16
|
type: BooleanConstructor;
|
17
17
|
default: true;
|
18
18
|
};
|
19
|
+
lockScroll: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: true;
|
22
|
+
};
|
19
23
|
safeAreaInsetBottom: {
|
20
24
|
type: BooleanConstructor;
|
21
25
|
default: true;
|
@@ -39,6 +43,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
43
|
type: BooleanConstructor;
|
40
44
|
default: true;
|
41
45
|
};
|
46
|
+
lockScroll: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: true;
|
49
|
+
};
|
42
50
|
safeAreaInsetBottom: {
|
43
51
|
type: BooleanConstructor;
|
44
52
|
default: true;
|
@@ -60,6 +68,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
68
|
type: BooleanConstructor;
|
61
69
|
default: true;
|
62
70
|
};
|
71
|
+
lockScroll: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
default: true;
|
74
|
+
};
|
63
75
|
safeAreaInsetBottom: {
|
64
76
|
type: BooleanConstructor;
|
65
77
|
default: true;
|
@@ -71,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
83
|
height: string | number;
|
72
84
|
safeAreaInsetBottom: boolean;
|
73
85
|
duration: string | number;
|
86
|
+
lockScroll: boolean;
|
74
87
|
anchors: number[];
|
75
88
|
contentDraggable: boolean;
|
76
89
|
}, {}>;
|
@@ -10,6 +10,7 @@ const floatingPanelProps = {
|
|
10
10
|
anchors: makeArrayProp(),
|
11
11
|
duration: makeNumericProp(0.2),
|
12
12
|
contentDraggable: truthProp,
|
13
|
+
lockScroll: truthProp,
|
13
14
|
safeAreaInsetBottom: truthProp
|
14
15
|
};
|
15
16
|
const [name, bem] = createNamespace("floating-panel");
|
@@ -92,7 +93,7 @@ var stdin_default = defineComponent({
|
|
92
93
|
}, {
|
93
94
|
immediate: true
|
94
95
|
});
|
95
|
-
useLockScroll(rootRef, () =>
|
96
|
+
useLockScroll(rootRef, () => props.lockScroll);
|
96
97
|
useEventListener("touchmove", onTouchmove, {
|
97
98
|
target: rootRef
|
98
99
|
});
|
@@ -15,6 +15,10 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
15
15
|
type: BooleanConstructor;
|
16
16
|
default: true;
|
17
17
|
};
|
18
|
+
lockScroll: {
|
19
|
+
type: BooleanConstructor;
|
20
|
+
default: true;
|
21
|
+
};
|
18
22
|
safeAreaInsetBottom: {
|
19
23
|
type: BooleanConstructor;
|
20
24
|
default: true;
|
@@ -36,6 +40,10 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
36
40
|
type: BooleanConstructor;
|
37
41
|
default: true;
|
38
42
|
};
|
43
|
+
lockScroll: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: true;
|
46
|
+
};
|
39
47
|
safeAreaInsetBottom: {
|
40
48
|
type: BooleanConstructor;
|
41
49
|
default: true;
|
@@ -47,6 +55,7 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
47
55
|
height: string | number;
|
48
56
|
safeAreaInsetBottom: boolean;
|
49
57
|
duration: string | number;
|
58
|
+
lockScroll: boolean;
|
50
59
|
anchors: number[];
|
51
60
|
contentDraggable: boolean;
|
52
61
|
}, {}>>;
|
@@ -50,6 +50,10 @@ export declare const imagePreviewProps: {
|
|
50
50
|
type: BooleanConstructor;
|
51
51
|
default: true;
|
52
52
|
};
|
53
|
+
closeOnClickOverlay: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: true;
|
56
|
+
};
|
53
57
|
closeIconPosition: {
|
54
58
|
type: PropType<PopupCloseIconPosition>;
|
55
59
|
default: PopupCloseIconPosition;
|
@@ -106,6 +110,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
110
|
type: BooleanConstructor;
|
107
111
|
default: true;
|
108
112
|
};
|
113
|
+
closeOnClickOverlay: {
|
114
|
+
type: BooleanConstructor;
|
115
|
+
default: true;
|
116
|
+
};
|
109
117
|
closeIconPosition: {
|
110
118
|
type: PropType<PopupCloseIconPosition>;
|
111
119
|
default: PopupCloseIconPosition;
|
@@ -160,6 +168,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
160
168
|
type: BooleanConstructor;
|
161
169
|
default: true;
|
162
170
|
};
|
171
|
+
closeOnClickOverlay: {
|
172
|
+
type: BooleanConstructor;
|
173
|
+
default: true;
|
174
|
+
};
|
163
175
|
closeIconPosition: {
|
164
176
|
type: PropType<PopupCloseIconPosition>;
|
165
177
|
default: PopupCloseIconPosition;
|
@@ -176,6 +188,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
176
188
|
loop: boolean;
|
177
189
|
overlay: boolean;
|
178
190
|
show: boolean;
|
191
|
+
closeOnClickOverlay: boolean;
|
179
192
|
closeIcon: string;
|
180
193
|
closeable: boolean;
|
181
194
|
closeOnPopstate: boolean;
|
@@ -28,6 +28,7 @@ const imagePreviewProps = {
|
|
28
28
|
startPosition: makeNumericProp(0),
|
29
29
|
showIndicators: Boolean,
|
30
30
|
closeOnPopstate: truthProp,
|
31
|
+
closeOnClickOverlay: truthProp,
|
31
32
|
closeIconPosition: makeStringProp("top-right"),
|
32
33
|
teleport: [String, Object]
|
33
34
|
};
|
@@ -112,6 +113,7 @@ var stdin_default = defineComponent({
|
|
112
113
|
"rootWidth": state.rootWidth,
|
113
114
|
"rootHeight": state.rootHeight,
|
114
115
|
"disableZoom": state.disableZoom,
|
116
|
+
"closeOnClickOverlay": props.closeOnClickOverlay,
|
115
117
|
"onScale": emitScale,
|
116
118
|
"onClose": emitClose,
|
117
119
|
"onLongPress": () => emit("longPress", {
|
@@ -19,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
19
19
|
required: true;
|
20
20
|
};
|
21
21
|
disableZoom: BooleanConstructor;
|
22
|
+
closeOnClickOverlay: BooleanConstructor;
|
22
23
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "scale" | "longPress")[], "close" | "scale" | "longPress", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
23
24
|
src: StringConstructor;
|
24
25
|
show: BooleanConstructor;
|
@@ -40,12 +41,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
41
|
required: true;
|
41
42
|
};
|
42
43
|
disableZoom: BooleanConstructor;
|
44
|
+
closeOnClickOverlay: BooleanConstructor;
|
43
45
|
}>> & {
|
44
46
|
onClose?: ((...args: any[]) => any) | undefined;
|
45
47
|
onScale?: ((...args: any[]) => any) | undefined;
|
46
48
|
onLongPress?: ((...args: any[]) => any) | undefined;
|
47
49
|
}, {
|
48
50
|
show: boolean;
|
51
|
+
closeOnClickOverlay: boolean;
|
49
52
|
disableZoom: boolean;
|
50
53
|
}, {}>;
|
51
54
|
export default _default;
|
@@ -22,7 +22,8 @@ var stdin_default = defineComponent({
|
|
22
22
|
maxZoom: makeRequiredProp(numericProp),
|
23
23
|
rootWidth: makeRequiredProp(Number),
|
24
24
|
rootHeight: makeRequiredProp(Number),
|
25
|
-
disableZoom: Boolean
|
25
|
+
disableZoom: Boolean,
|
26
|
+
closeOnClickOverlay: Boolean
|
26
27
|
},
|
27
28
|
emits: ["scale", "close", "longPress"],
|
28
29
|
setup(props, {
|
@@ -182,7 +183,8 @@ var stdin_default = defineComponent({
|
|
182
183
|
}
|
183
184
|
}
|
184
185
|
};
|
185
|
-
const checkTap = () => {
|
186
|
+
const checkTap = (event) => {
|
187
|
+
var _a;
|
186
188
|
if (fingerNum > 1) {
|
187
189
|
return;
|
188
190
|
}
|
@@ -199,6 +201,9 @@ var stdin_default = defineComponent({
|
|
199
201
|
doubleTapTimer = null;
|
200
202
|
toggleScale();
|
201
203
|
} else {
|
204
|
+
if (!props.closeOnClickOverlay && event.target === ((_a = swipeItem.value) == null ? void 0 : _a.$el)) {
|
205
|
+
return;
|
206
|
+
}
|
202
207
|
doubleTapTimer = setTimeout(() => {
|
203
208
|
emit("close");
|
204
209
|
doubleTapTimer = null;
|
@@ -236,7 +241,7 @@ var stdin_default = defineComponent({
|
|
236
241
|
}
|
237
242
|
}
|
238
243
|
preventDefault(event, stopPropagation);
|
239
|
-
checkTap();
|
244
|
+
checkTap(event);
|
240
245
|
touch.reset();
|
241
246
|
};
|
242
247
|
const resize = () => {
|
@@ -48,6 +48,10 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
48
48
|
type: BooleanConstructor;
|
49
49
|
default: true;
|
50
50
|
};
|
51
|
+
closeOnClickOverlay: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: true;
|
54
|
+
};
|
51
55
|
closeIconPosition: {
|
52
56
|
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
53
57
|
default: import("..").PopupCloseIconPosition;
|
@@ -102,6 +106,10 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
102
106
|
type: BooleanConstructor;
|
103
107
|
default: true;
|
104
108
|
};
|
109
|
+
closeOnClickOverlay: {
|
110
|
+
type: BooleanConstructor;
|
111
|
+
default: true;
|
112
|
+
};
|
105
113
|
closeIconPosition: {
|
106
114
|
type: import("vue").PropType<import("..").PopupCloseIconPosition>;
|
107
115
|
default: import("..").PopupCloseIconPosition;
|
@@ -118,6 +126,7 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
|
|
118
126
|
loop: boolean;
|
119
127
|
overlay: boolean;
|
120
128
|
show: boolean;
|
129
|
+
closeOnClickOverlay: boolean;
|
121
130
|
closeIcon: string;
|
122
131
|
closeable: boolean;
|
123
132
|
closeOnPopstate: boolean;
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
@@ -98,7 +98,7 @@ import { Toast } from "./toast/index.mjs";
|
|
98
98
|
import { TreeSelect } from "./tree-select/index.mjs";
|
99
99
|
import { Uploader } from "./uploader/index.mjs";
|
100
100
|
import { Watermark } from "./watermark/index.mjs";
|
101
|
-
const version = "4.6.4
|
101
|
+
const version = "4.6.4";
|
102
102
|
function install(app) {
|
103
103
|
const components = [
|
104
104
|
ActionBar,
|
package/es/list/List.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { type ExtractPropTypes } from 'vue';
|
1
|
+
import { type PropType, type ExtractPropTypes } from 'vue';
|
2
2
|
import type { ListDirection } from './types';
|
3
3
|
export declare const listProps: {
|
4
4
|
error: BooleanConstructor;
|
@@ -9,9 +9,10 @@ export declare const listProps: {
|
|
9
9
|
loading: BooleanConstructor;
|
10
10
|
disabled: BooleanConstructor;
|
11
11
|
finished: BooleanConstructor;
|
12
|
+
scroller: PropType<Element>;
|
12
13
|
errorText: StringConstructor;
|
13
14
|
direction: {
|
14
|
-
type:
|
15
|
+
type: PropType<ListDirection>;
|
15
16
|
default: ListDirection;
|
16
17
|
};
|
17
18
|
loadingText: StringConstructor;
|
@@ -31,9 +32,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
32
|
loading: BooleanConstructor;
|
32
33
|
disabled: BooleanConstructor;
|
33
34
|
finished: BooleanConstructor;
|
35
|
+
scroller: PropType<Element>;
|
34
36
|
errorText: StringConstructor;
|
35
37
|
direction: {
|
36
|
-
type:
|
38
|
+
type: PropType<ListDirection>;
|
37
39
|
default: ListDirection;
|
38
40
|
};
|
39
41
|
loadingText: StringConstructor;
|
@@ -51,9 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
53
|
loading: BooleanConstructor;
|
52
54
|
disabled: BooleanConstructor;
|
53
55
|
finished: BooleanConstructor;
|
56
|
+
scroller: PropType<Element>;
|
54
57
|
errorText: StringConstructor;
|
55
58
|
direction: {
|
56
|
-
type:
|
59
|
+
type: PropType<ListDirection>;
|
57
60
|
default: ListDirection;
|
58
61
|
};
|
59
62
|
loadingText: StringConstructor;
|
package/es/list/List.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
2
|
-
import { ref, watch, nextTick, onUpdated, onMounted, defineComponent } from "vue";
|
2
|
+
import { ref, watch, computed, nextTick, onUpdated, onMounted, defineComponent } from "vue";
|
3
3
|
import { isHidden, truthProp, makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
|
4
4
|
import { useRect, useScrollParent, useEventListener } from "@vant/use";
|
5
5
|
import { useExpose } from "../composables/use-expose.mjs";
|
@@ -12,6 +12,7 @@ const listProps = {
|
|
12
12
|
loading: Boolean,
|
13
13
|
disabled: Boolean,
|
14
14
|
finished: Boolean,
|
15
|
+
scroller: Object,
|
15
16
|
errorText: String,
|
16
17
|
direction: makeStringProp("down"),
|
17
18
|
loadingText: String,
|
@@ -31,6 +32,7 @@ var stdin_default = defineComponent({
|
|
31
32
|
const placeholder = ref();
|
32
33
|
const tabStatus = useTabStatus();
|
33
34
|
const scrollParent = useScrollParent(root);
|
35
|
+
const scroller = computed(() => props.scroller || scrollParent.value);
|
34
36
|
const check = () => {
|
35
37
|
nextTick(() => {
|
36
38
|
if (loading.value || props.finished || props.disabled || props.error || // skip check when inside an inactive tab
|
@@ -41,7 +43,7 @@ var stdin_default = defineComponent({
|
|
41
43
|
direction
|
42
44
|
} = props;
|
43
45
|
const offset = +props.offset;
|
44
|
-
const scrollParentRect = useRect(
|
46
|
+
const scrollParentRect = useRect(scroller);
|
45
47
|
if (!scrollParentRect.height || isHidden(root)) {
|
46
48
|
return;
|
47
49
|
}
|
@@ -117,7 +119,7 @@ var stdin_default = defineComponent({
|
|
117
119
|
check
|
118
120
|
});
|
119
121
|
useEventListener("scroll", check, {
|
120
|
-
target:
|
122
|
+
target: scroller,
|
121
123
|
passive: true
|
122
124
|
});
|
123
125
|
return () => {
|
package/es/list/index.d.ts
CHANGED
@@ -8,6 +8,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
8
8
|
loading: BooleanConstructor;
|
9
9
|
disabled: BooleanConstructor;
|
10
10
|
finished: BooleanConstructor;
|
11
|
+
scroller: import("vue").PropType<Element>;
|
11
12
|
errorText: StringConstructor;
|
12
13
|
direction: {
|
13
14
|
type: import("vue").PropType<import("./types").ListDirection>;
|
@@ -28,6 +29,7 @@ export declare const List: import("../utils").WithInstall<import("vue").DefineCo
|
|
28
29
|
loading: BooleanConstructor;
|
29
30
|
disabled: BooleanConstructor;
|
30
31
|
finished: BooleanConstructor;
|
32
|
+
scroller: import("vue").PropType<Element>;
|
31
33
|
errorText: StringConstructor;
|
32
34
|
direction: {
|
33
35
|
type: import("vue").PropType<import("./types").ListDirection>;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
name: string;
|
3
|
+
tel: string;
|
4
|
+
save: string;
|
5
|
+
clear: string;
|
6
|
+
cancel: string;
|
7
|
+
confirm: string;
|
8
|
+
delete: string;
|
9
|
+
loading: string;
|
10
|
+
noCoupon: string;
|
11
|
+
nameEmpty: string;
|
12
|
+
addContact: string;
|
13
|
+
telInvalid: string;
|
14
|
+
vanCalendar: {
|
15
|
+
end: string;
|
16
|
+
start: string;
|
17
|
+
title: string;
|
18
|
+
weekdays: string[];
|
19
|
+
monthTitle: (year: number, month: number) => string;
|
20
|
+
rangePrompt: (maxRange: number) => string;
|
21
|
+
};
|
22
|
+
vanCascader: {
|
23
|
+
select: string;
|
24
|
+
};
|
25
|
+
vanPagination: {
|
26
|
+
prev: string;
|
27
|
+
next: string;
|
28
|
+
};
|
29
|
+
vanPullRefresh: {
|
30
|
+
pulling: string;
|
31
|
+
loosing: string;
|
32
|
+
};
|
33
|
+
vanSubmitBar: {
|
34
|
+
label: string;
|
35
|
+
};
|
36
|
+
vanCoupon: {
|
37
|
+
unlimited: string;
|
38
|
+
discount: (discount: number) => string;
|
39
|
+
condition: (condition: number) => string;
|
40
|
+
};
|
41
|
+
vanCouponCell: {
|
42
|
+
title: string;
|
43
|
+
count: (count: number) => string;
|
44
|
+
};
|
45
|
+
vanCouponList: {
|
46
|
+
exchange: string;
|
47
|
+
close: string;
|
48
|
+
enable: string;
|
49
|
+
disabled: string;
|
50
|
+
placeholder: string;
|
51
|
+
};
|
52
|
+
vanAddressEdit: {
|
53
|
+
area: string;
|
54
|
+
areaEmpty: string;
|
55
|
+
addressEmpty: string;
|
56
|
+
addressDetail: string;
|
57
|
+
defaultAddress: string;
|
58
|
+
};
|
59
|
+
vanAddressList: {
|
60
|
+
add: string;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
export default _default;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
var stdin_default = {
|
2
|
+
name: "Ime i prezime",
|
3
|
+
tel: "Broj telefona",
|
4
|
+
save: "Sa\u010Duvaj",
|
5
|
+
clear: "Prazno",
|
6
|
+
cancel: "Otka\u017Ei",
|
7
|
+
confirm: "Potvrdi",
|
8
|
+
delete: "Brisanje",
|
9
|
+
loading: "U\u010Ditavanje...",
|
10
|
+
noCoupon: "Jo\u0161 nema kupona",
|
11
|
+
nameEmpty: "Molimo unesite ime",
|
12
|
+
addContact: "Dodaj kontakte",
|
13
|
+
telInvalid: "Molimo unesite broj telefona",
|
14
|
+
vanCalendar: {
|
15
|
+
end: "Zavr\u0161etak",
|
16
|
+
start: "Po\u010Detak",
|
17
|
+
title: "Izaberite Datum",
|
18
|
+
weekdays: [
|
19
|
+
"Nedelja",
|
20
|
+
"Ponedeljak",
|
21
|
+
"Utorak",
|
22
|
+
"Sreda",
|
23
|
+
"\u010Cetvrtak",
|
24
|
+
"Petak",
|
25
|
+
"Subota"
|
26
|
+
],
|
27
|
+
monthTitle: (year, month) => `${year}/${month}`,
|
28
|
+
rangePrompt: (maxRange) => `Izaberite do ${maxRange} dana`
|
29
|
+
},
|
30
|
+
vanCascader: {
|
31
|
+
select: "Molimo izaberite "
|
32
|
+
},
|
33
|
+
vanPagination: {
|
34
|
+
prev: "Prethodna strana",
|
35
|
+
next: "Sledec\u0301a strana"
|
36
|
+
},
|
37
|
+
vanPullRefresh: {
|
38
|
+
pulling: "Prevucite nadole da osve\u017Eite...",
|
39
|
+
loosing: "Otpustite da osve\u017Eite..."
|
40
|
+
},
|
41
|
+
vanSubmitBar: {
|
42
|
+
label: "Ukupno:"
|
43
|
+
},
|
44
|
+
vanCoupon: {
|
45
|
+
unlimited: "No threshold",
|
46
|
+
discount: (discount) => `${discount} puta`,
|
47
|
+
condition: (condition) => `Dostupno za preko ${condition} juana`
|
48
|
+
},
|
49
|
+
vanCouponCell: {
|
50
|
+
title: "Kupon",
|
51
|
+
count: (count) => `Dostupan ${count}`
|
52
|
+
},
|
53
|
+
vanCouponList: {
|
54
|
+
exchange: "Razmeni",
|
55
|
+
close: "Ne koristi",
|
56
|
+
enable: "Iskoristi",
|
57
|
+
disabled: "Nedostupno",
|
58
|
+
placeholder: "Unesite promo kod"
|
59
|
+
},
|
60
|
+
vanAddressEdit: {
|
61
|
+
area: "Region",
|
62
|
+
areaEmpty: "Molimo odaberite region",
|
63
|
+
addressEmpty: "Molimo upi\u0161ite adresu",
|
64
|
+
addressDetail: "Adresa",
|
65
|
+
defaultAddress: "Postavi kao podrazumevanu adresu za isporuku"
|
66
|
+
},
|
67
|
+
vanAddressList: {
|
68
|
+
add: "Dodaj adresu"
|
69
|
+
}
|
70
|
+
};
|
71
|
+
export {
|
72
|
+
stdin_default as default
|
73
|
+
};
|
@@ -22,7 +22,7 @@ var stdin_default = defineComponent({
|
|
22
22
|
const expanded = ref(false);
|
23
23
|
const hasAction = ref(false);
|
24
24
|
const root = ref();
|
25
|
-
const actionText = computed(() => expanded.value ? props.
|
25
|
+
const actionText = computed(() => expanded.value ? props.collapseText : props.expandText);
|
26
26
|
const pxToNum = (value) => {
|
27
27
|
if (!value)
|
28
28
|
return 0;
|
@@ -64,7 +64,7 @@ var stdin_default = defineComponent({
|
|
64
64
|
}
|
65
65
|
return dots + content.slice(right, end);
|
66
66
|
}
|
67
|
-
const middle2 = Math.round(left + right
|
67
|
+
const middle2 = Math.round((left + right) / 2);
|
68
68
|
if (position === "end") {
|
69
69
|
container2.innerText = content.slice(0, middle2) + dots + actionText.value;
|
70
70
|
} else {
|
@@ -85,11 +85,11 @@ var stdin_default = defineComponent({
|
|
85
85
|
};
|
86
86
|
const middleTail = (leftPart, rightPart) => {
|
87
87
|
if (leftPart[1] - leftPart[0] <= 1 && rightPart[1] - rightPart[0] <= 1) {
|
88
|
-
return content.slice(0, leftPart[
|
88
|
+
return content.slice(0, leftPart[0]) + dots + content.slice(rightPart[1], end);
|
89
89
|
}
|
90
|
-
const leftMiddle = Math.floor(leftPart[0] + leftPart[1]
|
91
|
-
const rightMiddle = Math.ceil(rightPart[0] + rightPart[1]
|
92
|
-
container2.innerText = props.content.slice(0, leftMiddle) + props.dots +
|
90
|
+
const leftMiddle = Math.floor((leftPart[0] + leftPart[1]) / 2);
|
91
|
+
const rightMiddle = Math.ceil((rightPart[0] + rightPart[1]) / 2);
|
92
|
+
container2.innerText = props.content.slice(0, leftMiddle) + props.dots + props.content.slice(rightMiddle, end) + props.expandText;
|
93
93
|
if (container2.offsetHeight >= maxHeight2) {
|
94
94
|
return middleTail([leftPart[0], leftMiddle], [rightMiddle, rightPart[1]]);
|
95
95
|
}
|
@@ -124,7 +124,7 @@ var stdin_default = defineComponent({
|
|
124
124
|
const renderAction = () => _createVNode("span", {
|
125
125
|
"class": bem("action"),
|
126
126
|
"onClick": onClickAction
|
127
|
-
}, [
|
127
|
+
}, [actionText.value]);
|
128
128
|
onMounted(calcEllipsised);
|
129
129
|
watch(() => [props.content, props.rows, props.position], calcEllipsised);
|
130
130
|
useEventListener("resize", calcEllipsised);
|
@@ -16,6 +16,10 @@ export declare const floatingPanelProps: {
|
|
16
16
|
type: BooleanConstructor;
|
17
17
|
default: true;
|
18
18
|
};
|
19
|
+
lockScroll: {
|
20
|
+
type: BooleanConstructor;
|
21
|
+
default: true;
|
22
|
+
};
|
19
23
|
safeAreaInsetBottom: {
|
20
24
|
type: BooleanConstructor;
|
21
25
|
default: true;
|
@@ -39,6 +43,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
43
|
type: BooleanConstructor;
|
40
44
|
default: true;
|
41
45
|
};
|
46
|
+
lockScroll: {
|
47
|
+
type: BooleanConstructor;
|
48
|
+
default: true;
|
49
|
+
};
|
42
50
|
safeAreaInsetBottom: {
|
43
51
|
type: BooleanConstructor;
|
44
52
|
default: true;
|
@@ -60,6 +68,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
60
68
|
type: BooleanConstructor;
|
61
69
|
default: true;
|
62
70
|
};
|
71
|
+
lockScroll: {
|
72
|
+
type: BooleanConstructor;
|
73
|
+
default: true;
|
74
|
+
};
|
63
75
|
safeAreaInsetBottom: {
|
64
76
|
type: BooleanConstructor;
|
65
77
|
default: true;
|
@@ -71,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
71
83
|
height: string | number;
|
72
84
|
safeAreaInsetBottom: boolean;
|
73
85
|
duration: string | number;
|
86
|
+
lockScroll: boolean;
|
74
87
|
anchors: number[];
|
75
88
|
contentDraggable: boolean;
|
76
89
|
}, {}>;
|
@@ -33,6 +33,7 @@ const floatingPanelProps = {
|
|
33
33
|
anchors: (0, import_utils.makeArrayProp)(),
|
34
34
|
duration: (0, import_utils.makeNumericProp)(0.2),
|
35
35
|
contentDraggable: import_utils.truthProp,
|
36
|
+
lockScroll: import_utils.truthProp,
|
36
37
|
safeAreaInsetBottom: import_utils.truthProp
|
37
38
|
};
|
38
39
|
const [name, bem] = (0, import_utils.createNamespace)("floating-panel");
|
@@ -115,7 +116,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
115
116
|
}, {
|
116
117
|
immediate: true
|
117
118
|
});
|
118
|
-
(0, import_use_lock_scroll.useLockScroll)(rootRef, () =>
|
119
|
+
(0, import_use_lock_scroll.useLockScroll)(rootRef, () => props.lockScroll);
|
119
120
|
(0, import_use.useEventListener)("touchmove", onTouchmove, {
|
120
121
|
target: rootRef
|
121
122
|
});
|
@@ -15,6 +15,10 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
15
15
|
type: BooleanConstructor;
|
16
16
|
default: true;
|
17
17
|
};
|
18
|
+
lockScroll: {
|
19
|
+
type: BooleanConstructor;
|
20
|
+
default: true;
|
21
|
+
};
|
18
22
|
safeAreaInsetBottom: {
|
19
23
|
type: BooleanConstructor;
|
20
24
|
default: true;
|
@@ -36,6 +40,10 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
36
40
|
type: BooleanConstructor;
|
37
41
|
default: true;
|
38
42
|
};
|
43
|
+
lockScroll: {
|
44
|
+
type: BooleanConstructor;
|
45
|
+
default: true;
|
46
|
+
};
|
39
47
|
safeAreaInsetBottom: {
|
40
48
|
type: BooleanConstructor;
|
41
49
|
default: true;
|
@@ -47,6 +55,7 @@ export declare const FloatingPanel: import("../utils").WithInstall<import("vue")
|
|
47
55
|
height: string | number;
|
48
56
|
safeAreaInsetBottom: boolean;
|
49
57
|
duration: string | number;
|
58
|
+
lockScroll: boolean;
|
50
59
|
anchors: number[];
|
51
60
|
contentDraggable: boolean;
|
52
61
|
}, {}>>;
|
@@ -50,6 +50,10 @@ export declare const imagePreviewProps: {
|
|
50
50
|
type: BooleanConstructor;
|
51
51
|
default: true;
|
52
52
|
};
|
53
|
+
closeOnClickOverlay: {
|
54
|
+
type: BooleanConstructor;
|
55
|
+
default: true;
|
56
|
+
};
|
53
57
|
closeIconPosition: {
|
54
58
|
type: PropType<PopupCloseIconPosition>;
|
55
59
|
default: PopupCloseIconPosition;
|
@@ -106,6 +110,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
106
110
|
type: BooleanConstructor;
|
107
111
|
default: true;
|
108
112
|
};
|
113
|
+
closeOnClickOverlay: {
|
114
|
+
type: BooleanConstructor;
|
115
|
+
default: true;
|
116
|
+
};
|
109
117
|
closeIconPosition: {
|
110
118
|
type: PropType<PopupCloseIconPosition>;
|
111
119
|
default: PopupCloseIconPosition;
|
@@ -160,6 +168,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
160
168
|
type: BooleanConstructor;
|
161
169
|
default: true;
|
162
170
|
};
|
171
|
+
closeOnClickOverlay: {
|
172
|
+
type: BooleanConstructor;
|
173
|
+
default: true;
|
174
|
+
};
|
163
175
|
closeIconPosition: {
|
164
176
|
type: PropType<PopupCloseIconPosition>;
|
165
177
|
default: PopupCloseIconPosition;
|
@@ -176,6 +188,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
176
188
|
loop: boolean;
|
177
189
|
overlay: boolean;
|
178
190
|
show: boolean;
|
191
|
+
closeOnClickOverlay: boolean;
|
179
192
|
closeIcon: string;
|
180
193
|
closeable: boolean;
|
181
194
|
closeOnPopstate: boolean;
|