antd-mobile 5.29.0 → 5.29.1
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/2x/bundle/antd-mobile.cjs.development.js +27 -25
- package/2x/bundle/antd-mobile.cjs.js +3 -3
- package/2x/bundle/antd-mobile.es.development.js +27 -25
- package/2x/bundle/antd-mobile.es.js +22 -8
- package/2x/bundle/antd-mobile.umd.development.js +27 -25
- package/2x/bundle/antd-mobile.umd.js +3 -3
- package/2x/cjs/components/calendar/calendar.js +1 -1
- package/2x/cjs/components/number-keyboard/number-keyboard.js +5 -3
- package/2x/cjs/components/popup/popup.js +13 -11
- package/2x/cjs/components/text-area/text-area.js +1 -0
- package/2x/cjs/components/virtual-input/virtual-input.js +1 -2
- package/2x/cjs/locales/da-DK.d.ts +134 -0
- package/2x/cjs/locales/da-DK.js +132 -0
- package/2x/cjs/locales/it-IT.d.ts +134 -0
- package/2x/cjs/locales/it-IT.js +144 -0
- package/2x/cjs/locales/nb-NO.d.ts +134 -0
- package/2x/cjs/locales/nb-NO.js +144 -0
- package/2x/cjs/locales/nl-NL.d.ts +134 -0
- package/2x/cjs/locales/nl-NL.js +144 -0
- package/2x/es/components/calendar/calendar.js +1 -1
- package/2x/es/components/number-keyboard/number-keyboard.js +5 -3
- package/2x/es/components/popup/popup.js +13 -11
- package/2x/es/components/text-area/text-area.js +1 -0
- package/2x/es/components/virtual-input/virtual-input.js +1 -2
- package/2x/es/locales/da-DK.d.ts +134 -0
- package/2x/es/locales/da-DK.js +125 -0
- package/2x/es/locales/it-IT.d.ts +134 -0
- package/2x/es/locales/it-IT.js +137 -0
- package/2x/es/locales/nb-NO.d.ts +134 -0
- package/2x/es/locales/nb-NO.js +137 -0
- package/2x/es/locales/nl-NL.d.ts +134 -0
- package/2x/es/locales/nl-NL.js +137 -0
- package/2x/package.json +1 -1
- package/bundle/antd-mobile.cjs.development.js +27 -25
- package/bundle/antd-mobile.cjs.js +3 -3
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +27 -25
- package/bundle/antd-mobile.es.js +22 -8
- package/bundle/antd-mobile.umd.development.js +27 -25
- package/bundle/antd-mobile.umd.js +3 -3
- package/cjs/components/calendar/calendar.js +1 -1
- package/cjs/components/number-keyboard/number-keyboard.js +5 -3
- package/cjs/components/popup/popup.js +13 -11
- package/cjs/components/text-area/text-area.js +1 -0
- package/cjs/components/virtual-input/virtual-input.js +1 -2
- package/cjs/locales/da-DK.d.ts +134 -0
- package/cjs/locales/da-DK.js +132 -0
- package/cjs/locales/it-IT.d.ts +134 -0
- package/cjs/locales/it-IT.js +144 -0
- package/cjs/locales/nb-NO.d.ts +134 -0
- package/cjs/locales/nb-NO.js +144 -0
- package/cjs/locales/nl-NL.d.ts +134 -0
- package/cjs/locales/nl-NL.js +144 -0
- package/es/components/calendar/calendar.js +1 -1
- package/es/components/number-keyboard/number-keyboard.js +5 -3
- package/es/components/popup/popup.js +13 -11
- package/es/components/text-area/text-area.js +1 -0
- package/es/components/virtual-input/virtual-input.js +1 -2
- package/es/locales/da-DK.d.ts +134 -0
- package/es/locales/da-DK.js +125 -0
- package/es/locales/it-IT.d.ts +134 -0
- package/es/locales/it-IT.js +137 -0
- package/es/locales/nb-NO.d.ts +134 -0
- package/es/locales/nb-NO.js +137 -0
- package/es/locales/nl-NL.d.ts +134 -0
- package/es/locales/nl-NL.js +137 -0
- package/package.json +1 -1
- package/umd/antd-mobile.js +1 -1
|
@@ -7558,17 +7558,19 @@ const Popup$1 = (p) => {
|
|
|
7558
7558
|
className: bodyCls,
|
|
7559
7559
|
style: Object.assign(Object.assign({}, props.bodyStyle), {
|
|
7560
7560
|
transform: percent.to((v) => {
|
|
7561
|
-
if (
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7561
|
+
if (v) {
|
|
7562
|
+
if (props.position === "bottom") {
|
|
7563
|
+
return `translate(0, ${v}%)`;
|
|
7564
|
+
}
|
|
7565
|
+
if (props.position === "top") {
|
|
7566
|
+
return `translate(0, -${v}%)`;
|
|
7567
|
+
}
|
|
7568
|
+
if (props.position === "left") {
|
|
7569
|
+
return `translate(-${v}%, 0)`;
|
|
7570
|
+
}
|
|
7571
|
+
if (props.position === "right") {
|
|
7572
|
+
return `translate(${v}%, 0)`;
|
|
7573
|
+
}
|
|
7572
7574
|
}
|
|
7573
7575
|
return "none";
|
|
7574
7576
|
})
|
|
@@ -8361,7 +8363,7 @@ const Calendar$1 = forwardRef((p, ref) => {
|
|
|
8361
8363
|
return;
|
|
8362
8364
|
}
|
|
8363
8365
|
}
|
|
8364
|
-
setCurrent(
|
|
8366
|
+
setCurrent(nxtCurrent);
|
|
8365
8367
|
};
|
|
8366
8368
|
const header = React__default.createElement("div", {
|
|
8367
8369
|
className: `${classPrefix$1b}-header`
|
|
@@ -20056,16 +20058,14 @@ function getClippingElementAncestors(element, cache) {
|
|
|
20056
20058
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
20057
20059
|
const computedStyle = getComputedStyle$1(currentNode);
|
|
20058
20060
|
const containingBlock = isContainingBlock(currentNode);
|
|
20059
|
-
|
|
20060
|
-
if (shouldIgnoreCurrentNode) {
|
|
20061
|
+
if (computedStyle.position === "fixed") {
|
|
20061
20062
|
currentContainingBlockComputedStyle = null;
|
|
20063
|
+
}
|
|
20064
|
+
const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
|
|
20065
|
+
if (shouldDropCurrentNode) {
|
|
20066
|
+
result2 = result2.filter((ancestor) => ancestor !== currentNode);
|
|
20062
20067
|
} else {
|
|
20063
|
-
|
|
20064
|
-
if (shouldDropCurrentNode) {
|
|
20065
|
-
result2 = result2.filter((ancestor) => ancestor !== currentNode);
|
|
20066
|
-
} else {
|
|
20067
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
20068
|
-
}
|
|
20068
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
20069
20069
|
}
|
|
20070
20070
|
currentNode = getParentNode(currentNode);
|
|
20071
20071
|
}
|
|
@@ -22452,7 +22452,7 @@ const NumberKeyboard$1 = (p) => {
|
|
|
22452
22452
|
var _a;
|
|
22453
22453
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
22454
22454
|
},
|
|
22455
|
-
role: "
|
|
22455
|
+
role: "grid",
|
|
22456
22456
|
title: "CLOSE",
|
|
22457
22457
|
tabIndex: -1
|
|
22458
22458
|
}, React__default.createElement(DownOutline, null)));
|
|
@@ -22519,11 +22519,13 @@ const NumberKeyboard$1 = (p) => {
|
|
|
22519
22519
|
onBackspacePressEnd();
|
|
22520
22520
|
},
|
|
22521
22521
|
title: "BACKSPACE",
|
|
22522
|
-
role: "
|
|
22522
|
+
role: "grid",
|
|
22523
|
+
tabIndex: -1
|
|
22523
22524
|
}, React__default.createElement(TextDeletionOutline, null)), React__default.createElement("div", {
|
|
22524
22525
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
|
|
22525
22526
|
onTouchEnd: (e) => onKeyPress(e, "OK"),
|
|
22526
|
-
role: "
|
|
22527
|
+
role: "grid",
|
|
22528
|
+
tabIndex: -1,
|
|
22527
22529
|
"aria-label": confirmText
|
|
22528
22530
|
}, confirmText))), props.safeArea && React__default.createElement("div", {
|
|
22529
22531
|
className: `${classPrefix$w}-footer`
|
|
@@ -25473,6 +25475,7 @@ const TextArea$1 = forwardRef((p, ref) => {
|
|
|
25473
25475
|
ref: hiddenTextAreaRef,
|
|
25474
25476
|
className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
|
|
25475
25477
|
value,
|
|
25478
|
+
rows: props.rows,
|
|
25476
25479
|
"aria-hidden": true,
|
|
25477
25480
|
readOnly: true
|
|
25478
25481
|
})));
|
|
@@ -26026,14 +26029,13 @@ const VirtualInput$1 = forwardRef((p, ref) => {
|
|
|
26026
26029
|
[`${classPrefix$2}-disabled`]: props.disabled
|
|
26027
26030
|
}),
|
|
26028
26031
|
tabIndex: props.disabled ? void 0 : 0,
|
|
26032
|
+
role: "option",
|
|
26029
26033
|
onFocus,
|
|
26030
26034
|
onBlur,
|
|
26031
26035
|
onClick: props.onClick
|
|
26032
26036
|
}, React__default.createElement("div", {
|
|
26033
26037
|
className: `${classPrefix$2}-content`,
|
|
26034
26038
|
ref: contentRef,
|
|
26035
|
-
role: "option",
|
|
26036
|
-
tabIndex: props.disabled ? void 0 : 0,
|
|
26037
26039
|
"aria-disabled": props.disabled,
|
|
26038
26040
|
"aria-label": props.placeholder
|
|
26039
26041
|
}, value, React__default.createElement("div", {
|
|
@@ -5204,7 +5204,19 @@ const Vi = "adm-popup", sy = Object.assign(Object.assign({}, s1), {
|
|
|
5204
5204
|
}), l.createElement(ue.div, {
|
|
5205
5205
|
className: r,
|
|
5206
5206
|
style: Object.assign(Object.assign({}, t.bodyStyle), {
|
|
5207
|
-
transform: c.to((f) =>
|
|
5207
|
+
transform: c.to((f) => {
|
|
5208
|
+
if (f) {
|
|
5209
|
+
if (t.position === "bottom")
|
|
5210
|
+
return `translate(0, ${f}%)`;
|
|
5211
|
+
if (t.position === "top")
|
|
5212
|
+
return `translate(0, -${f}%)`;
|
|
5213
|
+
if (t.position === "left")
|
|
5214
|
+
return `translate(-${f}%, 0)`;
|
|
5215
|
+
if (t.position === "right")
|
|
5216
|
+
return `translate(${f}%, 0)`;
|
|
5217
|
+
}
|
|
5218
|
+
return "none";
|
|
5219
|
+
})
|
|
5208
5220
|
}),
|
|
5209
5221
|
ref: o
|
|
5210
5222
|
}, t.showCloseButton && l.createElement("a", {
|
|
@@ -5831,7 +5843,7 @@ const ce = "adm-calendar", Wy = {
|
|
|
5831
5843
|
if (x.isAfter(k, E))
|
|
5832
5844
|
return;
|
|
5833
5845
|
}
|
|
5834
|
-
f(
|
|
5846
|
+
f(x);
|
|
5835
5847
|
}, g = l.createElement("div", {
|
|
5836
5848
|
className: `${ce}-header`
|
|
5837
5849
|
}, l.createElement("a", {
|
|
@@ -14044,7 +14056,7 @@ function xx(e, t) {
|
|
|
14044
14056
|
let o = a ? di(e) : e;
|
|
14045
14057
|
for (; mt(o) && !ic(o); ) {
|
|
14046
14058
|
const s = _t(o), c = nc(o);
|
|
14047
|
-
s.position === "fixed"
|
|
14059
|
+
s.position === "fixed" && (i = null), (a ? !c && !i : !c && s.position === "static" && !!i && ["absolute", "fixed"].includes(i.position)) ? r = r.filter((d) => d !== o) : i = s, o = di(o);
|
|
14048
14060
|
}
|
|
14049
14061
|
return t.set(e, r), r;
|
|
14050
14062
|
}
|
|
@@ -15825,7 +15837,7 @@ const ye = "adm-number-keyboard", O$ = {
|
|
|
15825
15837
|
var y;
|
|
15826
15838
|
(y = t.onClose) === null || y === void 0 || y.call(t);
|
|
15827
15839
|
},
|
|
15828
|
-
role: "
|
|
15840
|
+
role: "grid",
|
|
15829
15841
|
title: "CLOSE",
|
|
15830
15842
|
tabIndex: -1
|
|
15831
15843
|
}, l.createElement(i1, null))), b = (y, E) => {
|
|
@@ -15882,11 +15894,13 @@ const ye = "adm-number-keyboard", O$ = {
|
|
|
15882
15894
|
w(y, "BACKSPACE"), v();
|
|
15883
15895
|
},
|
|
15884
15896
|
title: "BACKSPACE",
|
|
15885
|
-
role: "
|
|
15897
|
+
role: "grid",
|
|
15898
|
+
tabIndex: -1
|
|
15886
15899
|
}, l.createElement(Cu, null)), l.createElement("div", {
|
|
15887
15900
|
className: `${ye}-key ${ye}-key-extra ${ye}-key-ok`,
|
|
15888
15901
|
onTouchEnd: (y) => w(y, "OK"),
|
|
15889
|
-
role: "
|
|
15902
|
+
role: "grid",
|
|
15903
|
+
tabIndex: -1,
|
|
15890
15904
|
"aria-label": a
|
|
15891
15905
|
}, a))), t.safeArea && l.createElement("div", {
|
|
15892
15906
|
className: `${ye}-footer`
|
|
@@ -18098,6 +18112,7 @@ const jr = "adm-text-area", vm = {
|
|
|
18098
18112
|
ref: d,
|
|
18099
18113
|
className: `${jr}-element ${jr}-element-hidden`,
|
|
18100
18114
|
value: o,
|
|
18115
|
+
rows: n.rows,
|
|
18101
18116
|
"aria-hidden": !0,
|
|
18102
18117
|
readOnly: !0
|
|
18103
18118
|
})));
|
|
@@ -18471,14 +18486,13 @@ const wn = "adm-virtual-input", dk = {
|
|
|
18471
18486
|
[`${wn}-disabled`]: n.disabled
|
|
18472
18487
|
}),
|
|
18473
18488
|
tabIndex: n.disabled ? void 0 : 0,
|
|
18489
|
+
role: "option",
|
|
18474
18490
|
onFocus: f,
|
|
18475
18491
|
onBlur: m,
|
|
18476
18492
|
onClick: n.onClick
|
|
18477
18493
|
}, l.createElement("div", {
|
|
18478
18494
|
className: `${wn}-content`,
|
|
18479
18495
|
ref: o,
|
|
18480
|
-
role: "option",
|
|
18481
|
-
tabIndex: n.disabled ? void 0 : 0,
|
|
18482
18496
|
"aria-disabled": n.disabled,
|
|
18483
18497
|
"aria-label": n.placeholder
|
|
18484
18498
|
}, r, l.createElement("div", {
|
|
@@ -7580,17 +7580,19 @@
|
|
|
7580
7580
|
className: bodyCls,
|
|
7581
7581
|
style: Object.assign(Object.assign({}, props.bodyStyle), {
|
|
7582
7582
|
transform: percent.to((v) => {
|
|
7583
|
-
if (
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7583
|
+
if (v) {
|
|
7584
|
+
if (props.position === "bottom") {
|
|
7585
|
+
return `translate(0, ${v}%)`;
|
|
7586
|
+
}
|
|
7587
|
+
if (props.position === "top") {
|
|
7588
|
+
return `translate(0, -${v}%)`;
|
|
7589
|
+
}
|
|
7590
|
+
if (props.position === "left") {
|
|
7591
|
+
return `translate(-${v}%, 0)`;
|
|
7592
|
+
}
|
|
7593
|
+
if (props.position === "right") {
|
|
7594
|
+
return `translate(${v}%, 0)`;
|
|
7595
|
+
}
|
|
7594
7596
|
}
|
|
7595
7597
|
return "none";
|
|
7596
7598
|
})
|
|
@@ -8383,7 +8385,7 @@
|
|
|
8383
8385
|
return;
|
|
8384
8386
|
}
|
|
8385
8387
|
}
|
|
8386
|
-
setCurrent(
|
|
8388
|
+
setCurrent(nxtCurrent);
|
|
8387
8389
|
};
|
|
8388
8390
|
const header = React__default.default.createElement("div", {
|
|
8389
8391
|
className: `${classPrefix$1b}-header`
|
|
@@ -20078,16 +20080,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20078
20080
|
while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
|
|
20079
20081
|
const computedStyle = getComputedStyle$1(currentNode);
|
|
20080
20082
|
const containingBlock = isContainingBlock(currentNode);
|
|
20081
|
-
|
|
20082
|
-
if (shouldIgnoreCurrentNode) {
|
|
20083
|
+
if (computedStyle.position === "fixed") {
|
|
20083
20084
|
currentContainingBlockComputedStyle = null;
|
|
20085
|
+
}
|
|
20086
|
+
const shouldDropCurrentNode = elementIsFixed ? !containingBlock && !currentContainingBlockComputedStyle : !containingBlock && computedStyle.position === "static" && !!currentContainingBlockComputedStyle && ["absolute", "fixed"].includes(currentContainingBlockComputedStyle.position);
|
|
20087
|
+
if (shouldDropCurrentNode) {
|
|
20088
|
+
result2 = result2.filter((ancestor) => ancestor !== currentNode);
|
|
20084
20089
|
} else {
|
|
20085
|
-
|
|
20086
|
-
if (shouldDropCurrentNode) {
|
|
20087
|
-
result2 = result2.filter((ancestor) => ancestor !== currentNode);
|
|
20088
|
-
} else {
|
|
20089
|
-
currentContainingBlockComputedStyle = computedStyle;
|
|
20090
|
-
}
|
|
20090
|
+
currentContainingBlockComputedStyle = computedStyle;
|
|
20091
20091
|
}
|
|
20092
20092
|
currentNode = getParentNode(currentNode);
|
|
20093
20093
|
}
|
|
@@ -22474,7 +22474,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22474
22474
|
var _a;
|
|
22475
22475
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
22476
22476
|
},
|
|
22477
|
-
role: "
|
|
22477
|
+
role: "grid",
|
|
22478
22478
|
title: "CLOSE",
|
|
22479
22479
|
tabIndex: -1
|
|
22480
22480
|
}, React__default.default.createElement(DownOutline, null)));
|
|
@@ -22541,11 +22541,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22541
22541
|
onBackspacePressEnd();
|
|
22542
22542
|
},
|
|
22543
22543
|
title: "BACKSPACE",
|
|
22544
|
-
role: "
|
|
22544
|
+
role: "grid",
|
|
22545
|
+
tabIndex: -1
|
|
22545
22546
|
}, React__default.default.createElement(TextDeletionOutline, null)), React__default.default.createElement("div", {
|
|
22546
22547
|
className: `${classPrefix$w}-key ${classPrefix$w}-key-extra ${classPrefix$w}-key-ok`,
|
|
22547
22548
|
onTouchEnd: (e) => onKeyPress(e, "OK"),
|
|
22548
|
-
role: "
|
|
22549
|
+
role: "grid",
|
|
22550
|
+
tabIndex: -1,
|
|
22549
22551
|
"aria-label": confirmText
|
|
22550
22552
|
}, confirmText))), props.safeArea && React__default.default.createElement("div", {
|
|
22551
22553
|
className: `${classPrefix$w}-footer`
|
|
@@ -25495,6 +25497,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
25495
25497
|
ref: hiddenTextAreaRef,
|
|
25496
25498
|
className: `${classPrefix$6}-element ${classPrefix$6}-element-hidden`,
|
|
25497
25499
|
value,
|
|
25500
|
+
rows: props.rows,
|
|
25498
25501
|
"aria-hidden": true,
|
|
25499
25502
|
readOnly: true
|
|
25500
25503
|
})));
|
|
@@ -26048,14 +26051,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
26048
26051
|
[`${classPrefix$2}-disabled`]: props.disabled
|
|
26049
26052
|
}),
|
|
26050
26053
|
tabIndex: props.disabled ? void 0 : 0,
|
|
26054
|
+
role: "option",
|
|
26051
26055
|
onFocus,
|
|
26052
26056
|
onBlur,
|
|
26053
26057
|
onClick: props.onClick
|
|
26054
26058
|
}, React__default.default.createElement("div", {
|
|
26055
26059
|
className: `${classPrefix$2}-content`,
|
|
26056
26060
|
ref: contentRef,
|
|
26057
|
-
role: "option",
|
|
26058
|
-
tabIndex: props.disabled ? void 0 : 0,
|
|
26059
26061
|
"aria-disabled": props.disabled,
|
|
26060
26062
|
"aria-label": props.placeholder
|
|
26061
26063
|
}, value, React__default.default.createElement("div", {
|