@unicom-cloud/ui 0.8.72 → 0.8.73
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/Affix.js +2 -2
- package/Alert.js +2 -2
- package/AutoComplete.js +2 -2
- package/BackTop.js +2 -2
- package/Badge.js +2 -2
- package/Breadcrumb.js +3 -3
- package/Button.js +1 -1
- package/Calendar.js +1 -1
- package/Card.js +1 -1
- package/Carousel.js +1 -1
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +4 -4
- package/Empty.js +1 -1
- package/Icon.js +1 -1
- package/IconHover.js +1 -1
- package/Image.js +1 -1
- package/InputNumber.js +1 -1
- package/Layout.js +1 -1
- package/Link.js +1 -1
- package/List.js +2 -2
- package/Mentions.js +2 -2
- package/Menu.js +1 -1
- package/Message.js +6 -5
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +7 -6
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Popconfirm.js +2 -2
- package/Popover.js +2 -2
- package/Progress.js +1 -1
- package/Radio.js +1 -1
- package/Rate.js +2 -2
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/SelectView.js +4 -3
- package/Skeleton.js +1 -1
- package/Slider.js +3 -3
- package/Space.js +1 -1
- package/SpeechSynthesis.js +20 -20
- package/Spin.js +2 -2
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +7 -5
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +3 -3
- package/Transfer.js +2 -2
- package/Tree.js +1 -1
- package/Trigger.js +8 -7
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +53 -50
- package/anchor/Link.js +1 -1
- package/anchor/util.js +1 -1
- package/auto-complete/index.js +2 -2
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +2 -2
- package/badge/Count.js +1 -1
- package/badge/index.js +50 -48
- package/breadcrumb/index.js +3 -3
- package/button/Group.js +1 -1
- package/button/index.js +1 -1
- package/calendar/index.js +2 -2
- package/card/Grid.js +1 -1
- package/card/Meta.js +1 -1
- package/card/index.js +1 -1
- package/carousel/Arrow.js +1 -1
- package/carousel/Indicator.js +1 -1
- package/carousel/index.js +1 -1
- package/cascader/Cascader.js +4 -4
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +3 -3
- package/checkbox/Group.js +3 -3
- package/checkbox/index.js +1 -1
- package/chunk/{BnWo0OJ0.js → 7HDzVe32.js} +7 -7
- package/chunk/{6nKl68Er.js → B0UZ1Ee2.js} +3 -3
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{BDHuWwhT.js → B7hulkj9.js} +2 -2
- package/chunk/Bj4EV0eG.js +27 -0
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/{Cgbja_v_.js → Byd0ztYY.js} +13 -12
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/{B4JiMp8I.js → CCVU-Kst.js} +8 -2
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/CiY7w1ZO.js +647 -0
- package/chunk/{fFjj2KuF.js → Cj2SQJiO.js} +392 -414
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{CAVVFFyZ.js → D2LLXZQX.js} +5 -7
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{Cf4qn5jY.js → DJDOFlqC.js} +2 -2
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{IUjEMHU1.js → DejjIa3N.js} +176 -173
- package/chunk/{y9unmTx_.js → Dg0M2OmF.js} +125 -125
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{rp1MtSd0.js → UDX9U6M7.js} +3 -3
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/{CP7Ac47f.js → oHDWCJnz.js} +3 -3
- package/chunk/{CdAuhef7.js → uH6uxyao.js} +1 -1
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +3 -3
- package/collapse/Item.js +3 -3
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +8 -8
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +16 -16
- package/color-picker/colors.js +4 -4
- package/color-picker/index.js +3 -3
- package/color-picker/utils.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/date-picker/Picker.js +1 -1
- package/date-picker/PickerRange.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +2 -2
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +121 -111
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +4 -4
- package/empty/index.js +1 -1
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +1 -1
- package/grid/Row.js +2 -2
- package/grid/grid-item.js +2 -2
- package/grid/grid.js +2 -2
- package/hooks/index.js +5 -5
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/icon/index.js +1 -1
- package/icon-hover/index.js +1 -1
- package/image/Image.js +4 -4
- package/image/ImagePreview.js +8 -8
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +2 -2
- package/image/index.js +1 -1
- package/index.js +591 -571
- package/input/Group.js +1 -1
- package/input/Input.js +47 -46
- package/input/InputElement.js +3 -3
- package/input/Password.js +2 -2
- package/input/Search.js +2 -2
- package/input/Textarea.js +6 -5
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +52 -50
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +3 -3
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -2
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +2 -2
- package/menu/Item.js +1 -1
- package/menu/Menu.js +3 -3
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +6 -5
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +8 -7
- package/modal/index.js +1 -1
- package/notice/index.js +4 -4
- package/notification/index.js +7 -6
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +1 -1
- package/overflow-ellipsis/index.js +1 -1
- package/package.json +1 -1
- package/page-header/index.js +1 -1
- package/pagination/PageItem.js +1 -1
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +2 -2
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +2 -2
- package/popover/index.js +2 -2
- package/progress/index.js +1 -1
- package/radio/Group.js +3 -3
- package/radio/Radio.js +3 -3
- package/radio/index.js +2 -2
- package/rate/index.js +26 -26
- package/resize-box/ResizeTrigger.js +21 -20
- package/resize-box/Split.js +1 -1
- package/resize-box/SplitGroup.js +1 -1
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/select/Option.js +1 -1
- package/select/Select.js +5 -4
- package/select/util.js +12 -12
- package/select-view/Core.js +3 -3
- package/select-view/index.js +2 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/Tick.js +1 -1
- package/slider/index.js +19 -19
- package/slider/util.js +8 -8
- package/space/index.js +1 -1
- package/speech-synthesis/index.js +20 -20
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +2 -2
- package/statistic/Countdown.js +1 -1
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +16 -14
- package/table/Table.js +2 -2
- package/table/index.js +3 -3
- package/tabs/Tab.js +3 -3
- package/tabs/TabContent.js +2 -2
- package/tabs/TabPane.js +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.js +1 -1
- package/time-picker/Picker.js +1 -1
- package/time-picker/TimePicker.js +1 -1
- package/timeline/Item.js +1 -1
- package/timeline/Timeline.js +1 -1
- package/tooltip/index.js +3 -3
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +2 -2
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +3 -3
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +7 -6
- package/types/badge/interface.d.ts +1 -0
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/drawer/interface.d.ts +10 -0
- package/types/index.d.ts +0 -7
- package/types/modal/Confirm.d.ts +1 -0
- package/types/utils/PqbCSSTransition.d.ts +3 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/computeScrollIntoView.d.ts +1 -0
- package/types/utils/contextHolder.d.ts +1 -0
- package/types/utils/copy.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +1 -0
- package/types/utils/getHighlightText.d.ts +1 -0
- package/types/utils/getHotkeyHandler.d.ts +1 -0
- package/types/utils/getStringLength.d.ts +1 -0
- package/types/utils/include.d.ts +1 -0
- package/types/utils/index.d.ts +29 -25
- package/types/utils/is.d.ts +1 -1
- package/types/utils/keyboardCode.d.ts +1 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +1 -0
- package/types/utils/mergedToString.d.ts +1 -0
- package/types/utils/names.d.ts +497 -81
- package/types/utils/omit.d.ts +1 -0
- package/types/utils/pick.d.ts +1 -1
- package/types/utils/reactTransitionGroup.d.ts +1 -0
- package/types/utils/responsiveObserve.d.ts +1 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoView.d.ts +1 -0
- package/types/utils/tinycolor.d.ts +1 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/version/index.d.ts +1 -1
- package/typography/Base.js +6 -5
- package/typography/Ellipsis.js +30 -29
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/typography/index.js +28 -27
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +60 -58
- package/upload/Uploader.js +21 -21
- package/upload/request_.js +4 -3
- package/utils/PqbCSSTransition.js +5 -0
- package/utils/caseName.js +3 -2
- package/utils/className.js +3 -2
- package/{chunk/B6X4lnd0.js → utils/color.js} +55 -53
- package/utils/computeScrollIntoView.js +128 -0
- package/utils/contextHolder.js +3 -2
- package/utils/copy.js +4 -2
- package/utils/fileToURL.js +3 -2
- package/utils/fillNBSP.js +2 -1
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +302 -249
- package/utils/is.js +104 -101
- package/utils/keyboardCode.js +2 -1
- package/utils/math.js +35 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/names.js +332 -81
- package/utils/omit.js +2 -1
- package/utils/pick.js +1 -0
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/reactTransitionGroup.js +10 -0
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +3 -2
- package/utils/screenfull.js +2 -1
- package/utils/scrollIntoView.js +4 -2
- package/utils/tinycolor.js +30 -0
- package/utils/tree.js +87 -0
- package/utils/tween.js +6 -0
- package/utils/uuid.js +5 -0
- package/utils/validate.js +7 -0
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/DVfOiRp-.js +0 -629
- package/chunk/DxxOUMSa.js +0 -98
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { compute as r } from "../utils/computeScrollIntoView.js";
|
|
2
|
+
const f = (t) => t === Object(t) && Object.keys(t).length !== 0, p = (t) => typeof t == "object" ? typeof t.behavior == "function" : !1, d = (t) => t === !1 ? { block: "end", inline: "nearest" } : f(t) ? t : { block: "start", inline: "nearest" }, u = (t) => {
|
|
3
|
+
const o = window.getComputedStyle(t);
|
|
4
|
+
return {
|
|
5
|
+
top: parseFloat(o.scrollMarginTop) || 0,
|
|
6
|
+
right: parseFloat(o.scrollMarginRight) || 0,
|
|
7
|
+
bottom: parseFloat(o.scrollMarginBottom) || 0,
|
|
8
|
+
left: parseFloat(o.scrollMarginLeft) || 0
|
|
9
|
+
};
|
|
10
|
+
}, b = (t) => {
|
|
11
|
+
let o = t;
|
|
12
|
+
for (; o && o.parentNode; ) {
|
|
13
|
+
if (o.parentNode === document)
|
|
14
|
+
return !0;
|
|
15
|
+
o.parentNode instanceof ShadowRoot ? o = o.parentNode.host : o = o.parentNode;
|
|
16
|
+
}
|
|
17
|
+
return !1;
|
|
18
|
+
};
|
|
19
|
+
function g(t, o) {
|
|
20
|
+
if (!t.isConnected || !b(t))
|
|
21
|
+
return;
|
|
22
|
+
const e = u(t);
|
|
23
|
+
if (p(o))
|
|
24
|
+
return o.behavior(r(t, o));
|
|
25
|
+
const n = typeof o == "boolean" || o == null ? void 0 : o.behavior;
|
|
26
|
+
for (const { el: l, top: a, left: i } of r(t, d(o))) {
|
|
27
|
+
const s = a - e.top + e.bottom, c = i - e.left + e.right;
|
|
28
|
+
l.scroll({ top: s, left: c, behavior: n });
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
g as p
|
|
33
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as c, y as x, S as w } from "./C0pRaDCf.js";
|
|
2
2
|
import b from "lodash/isObject.js";
|
|
3
3
|
import p from "lodash/isArray.js";
|
|
4
4
|
import M from "lodash/isString.js";
|
|
5
5
|
import _ from "lodash/isNumber.js";
|
|
6
6
|
import E from "lodash/isEqual.js";
|
|
7
7
|
import O from "lodash/isBoolean.js";
|
|
8
|
-
import
|
|
9
|
-
const
|
|
8
|
+
import S from "lodash/isFunction.js";
|
|
9
|
+
const k = {
|
|
10
10
|
required: "#{field} 是必填项",
|
|
11
11
|
type: {
|
|
12
12
|
string: "#{field} 不是合法的文本类型",
|
|
@@ -60,7 +60,7 @@ const S = {
|
|
|
60
60
|
...n
|
|
61
61
|
} : n || s;
|
|
62
62
|
}), e;
|
|
63
|
-
},
|
|
63
|
+
}, z = (r, t) => {
|
|
64
64
|
const e = t.split(".");
|
|
65
65
|
let i = r;
|
|
66
66
|
for (let s = 0; s < e.length; s++)
|
|
@@ -77,8 +77,8 @@ class m {
|
|
|
77
77
|
value: this.obj,
|
|
78
78
|
field: this.field,
|
|
79
79
|
type: this.type
|
|
80
|
-
}, a =
|
|
81
|
-
return
|
|
80
|
+
}, a = z(this.validateMessages, i);
|
|
81
|
+
return S(a) ? a(n) : M(a) ? a.replace(/#\{.+?\}/g, (g) => {
|
|
82
82
|
const d = g.slice(2, -1);
|
|
83
83
|
if (d in n) {
|
|
84
84
|
if (b(n[d]) || p(n[d]))
|
|
@@ -92,7 +92,7 @@ class m {
|
|
|
92
92
|
return g;
|
|
93
93
|
}) : a;
|
|
94
94
|
}), b(e) && M(t) && e.trim ? this.obj = t.trim() : b(e) && e.ignoreEmptyString && t === "" ? this.obj = void 0 : this.obj = t, this.message = e.message, this.type = e.type, this.error = null, this.field = e.field || e.type, this.validateMessages = V(
|
|
95
|
-
|
|
95
|
+
k,
|
|
96
96
|
e.validateMessages
|
|
97
97
|
);
|
|
98
98
|
}
|
|
@@ -271,7 +271,7 @@ class D extends m {
|
|
|
271
271
|
return c(this.obj) ? this : this.validate(this.obj < 0, this.getValidateMsg("number.negative"));
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
class
|
|
274
|
+
class I extends m {
|
|
275
275
|
constructor(t, e) {
|
|
276
276
|
super(t, {
|
|
277
277
|
...e,
|
|
@@ -300,7 +300,7 @@ class H extends m {
|
|
|
300
300
|
);
|
|
301
301
|
}
|
|
302
302
|
}
|
|
303
|
-
class
|
|
303
|
+
class T extends m {
|
|
304
304
|
constructor(t, e) {
|
|
305
305
|
super(t, {
|
|
306
306
|
...e,
|
|
@@ -348,11 +348,11 @@ class I extends m {
|
|
|
348
348
|
) : this;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
const
|
|
351
|
+
const Z = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, A = new RegExp(
|
|
352
352
|
"^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
|
|
353
353
|
"i"
|
|
354
|
-
),
|
|
355
|
-
class
|
|
354
|
+
), U = /^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/;
|
|
355
|
+
class $ extends m {
|
|
356
356
|
constructor(t, e) {
|
|
357
357
|
super(t, {
|
|
358
358
|
...e,
|
|
@@ -361,19 +361,19 @@ class A extends m {
|
|
|
361
361
|
}
|
|
362
362
|
get email() {
|
|
363
363
|
return this.type = "email", this.validate(
|
|
364
|
-
this.obj === void 0 ||
|
|
364
|
+
this.obj === void 0 || Z.test(this.obj),
|
|
365
365
|
this.getValidateMsg("type.email")
|
|
366
366
|
);
|
|
367
367
|
}
|
|
368
368
|
get url() {
|
|
369
369
|
return this.type = "url", this.validate(
|
|
370
|
-
this.obj === void 0 ||
|
|
370
|
+
this.obj === void 0 || A.test(this.obj),
|
|
371
371
|
this.getValidateMsg("type.url")
|
|
372
372
|
);
|
|
373
373
|
}
|
|
374
374
|
get ip() {
|
|
375
375
|
return this.type = "ip", this.validate(
|
|
376
|
-
this.obj === void 0 ||
|
|
376
|
+
this.obj === void 0 || U.test(this.obj),
|
|
377
377
|
this.getValidateMsg("type.ip")
|
|
378
378
|
);
|
|
379
379
|
}
|
|
@@ -394,7 +394,7 @@ class q {
|
|
|
394
394
|
e.validateMessages
|
|
395
395
|
)
|
|
396
396
|
};
|
|
397
|
-
this.string = new
|
|
397
|
+
this.string = new T(t, s), this.number = new D(t, s), this.array = new R(t, s), this.object = new I(t, s), this.boolean = new K(t, s), this.type = new $(t, s), this.custom = new P(t, s);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
class X {
|
|
@@ -460,6 +460,6 @@ class X {
|
|
|
460
460
|
}
|
|
461
461
|
export {
|
|
462
462
|
X as H,
|
|
463
|
-
|
|
463
|
+
k as e,
|
|
464
464
|
f as m
|
|
465
465
|
};
|
|
@@ -5,12 +5,12 @@ import Z from "@unicom-cloud/icons/IconUiFile";
|
|
|
5
5
|
import ee from "@unicom-cloud/icons/IconUiLoading";
|
|
6
6
|
import p from "lodash/isFunction";
|
|
7
7
|
import ne, { useContext as _, useRef as j, useEffect as U, useMemo as Y, forwardRef as te, useState as ie, useCallback as S } from "react";
|
|
8
|
-
import { C as ae } from "./
|
|
9
|
-
import { a as B, I as re } from "./
|
|
8
|
+
import { C as ae } from "./B7hulkj9.js";
|
|
9
|
+
import { a as B, I as re } from "./Byd0ztYY.js";
|
|
10
10
|
import { m as O } from "./JPPo5nY_.js";
|
|
11
11
|
import oe from "../utils/throttleByRaf.js";
|
|
12
12
|
import se from "lodash/isNumber";
|
|
13
|
-
import { P as le } from "./
|
|
13
|
+
import { P as le } from "./Bj4EV0eG.js";
|
|
14
14
|
import ce from "../virtual-list/VirtualList.js";
|
|
15
15
|
import { TreeContext as V } from "../tree/Context.js";
|
|
16
16
|
function de(e) {
|
|
@@ -69,14 +69,12 @@ const ge = (e) => {
|
|
|
69
69
|
exit: 0
|
|
70
70
|
},
|
|
71
71
|
onEnter: (a) => {
|
|
72
|
-
if (!a)
|
|
73
|
-
return;
|
|
72
|
+
if (!a) return;
|
|
74
73
|
const d = a.scrollHeight;
|
|
75
74
|
a.style.height = h ? 0 : `${Math.min(m || d, a.scrollHeight)}px`;
|
|
76
75
|
},
|
|
77
76
|
onEntering: (a) => {
|
|
78
|
-
if (!a)
|
|
79
|
-
return;
|
|
77
|
+
if (!a) return;
|
|
80
78
|
const d = a.scrollHeight;
|
|
81
79
|
a.style.height = h ? `${Math.min(m || d, d)}px` : 0;
|
|
82
80
|
},
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import "./C0pRaDCf.js";
|
|
2
|
+
import { isDayjs as $ } from "dayjs";
|
|
3
|
+
import { isValidElement as a } from "react";
|
|
4
|
+
import u from "react-dom";
|
|
5
|
+
import { isForwardRef as p, ForwardRef as i, Memo as E } from "react-is";
|
|
6
|
+
import l from "lodash/isPlainObject.js";
|
|
7
|
+
function A(r) {
|
|
8
|
+
return r == null;
|
|
9
|
+
}
|
|
10
|
+
function O(r, s) {
|
|
11
|
+
return r == null || r === !1 || typeof r == "string" && (s ? r.trim() === "" : r === "");
|
|
12
|
+
}
|
|
13
|
+
function P(r) {
|
|
14
|
+
return r || r === 0;
|
|
15
|
+
}
|
|
16
|
+
function S(r) {
|
|
17
|
+
return r === window;
|
|
18
|
+
}
|
|
19
|
+
function g(r) {
|
|
20
|
+
return r && $(r) && typeof r.isValid == "function" && r.isValid() && l(r) && "$y" in r && "$M" in r && "$D" in r && "$d" in r && "$H" in r && "$m" in r && "$s" in r;
|
|
21
|
+
}
|
|
22
|
+
const e = (r) => r && a(r) && typeof r.type == "function", R = (r) => {
|
|
23
|
+
var s;
|
|
24
|
+
return e(r) && !!((s = r.type.prototype) != null && s.isReactComponent);
|
|
25
|
+
}, d = (r) => a(r) && typeof r.type == "string";
|
|
26
|
+
var n;
|
|
27
|
+
const V = Number((n = u.version) == null ? void 0 : n.split(".")[0]) > 17;
|
|
28
|
+
var f;
|
|
29
|
+
const T = Number((f = u.version) == null ? void 0 : f.split(".")[0]) > 18, _ = (r) => {
|
|
30
|
+
if (!T)
|
|
31
|
+
return p(r);
|
|
32
|
+
const s = Symbol.for("react.element"), y = Symbol.for("react.transitional.element"), c = Symbol.for("react.forward_ref");
|
|
33
|
+
if (typeof r == "object" && r !== null) {
|
|
34
|
+
const t = r.$$typeof;
|
|
35
|
+
if (t === s || t === y) {
|
|
36
|
+
const o = r.type;
|
|
37
|
+
return (o && o.$$typeof) === c;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return !1;
|
|
41
|
+
}, w = (r) => {
|
|
42
|
+
var s;
|
|
43
|
+
return r ? d(r) || _(r) || p(r) || r.$$typeof === i ? !0 : r.$$typeof === E ? ((s = r.type) == null ? void 0 : s.$$typeof) === i : e(r) ? R(r) : !1 : !1;
|
|
44
|
+
}, W = w;
|
|
45
|
+
export {
|
|
46
|
+
g as a,
|
|
47
|
+
d as b,
|
|
48
|
+
O as c,
|
|
49
|
+
P as d,
|
|
50
|
+
_ as e,
|
|
51
|
+
A as f,
|
|
52
|
+
V as g,
|
|
53
|
+
T as h,
|
|
54
|
+
R as i,
|
|
55
|
+
e as j,
|
|
56
|
+
W as k,
|
|
57
|
+
S as l,
|
|
58
|
+
w as s
|
|
59
|
+
};
|
|
@@ -2,9 +2,9 @@ import { jsx as i, jsxs as z, Fragment as H } from "react/jsx-runtime";
|
|
|
2
2
|
import _ from "lodash/isFunction";
|
|
3
3
|
import L from "lodash/isNil";
|
|
4
4
|
import Q, { createContext as S, useContext as G, useRef as T } from "react";
|
|
5
|
-
import { a as j, I as q } from "./
|
|
5
|
+
import { a as j, I as q } from "./Byd0ztYY.js";
|
|
6
6
|
import { u as A } from "./BFTV6myl.js";
|
|
7
|
-
import { u as D } from "./
|
|
7
|
+
import { u as D } from "./DeV0v__J.js";
|
|
8
8
|
import { m as F } from "./JPPo5nY_.js";
|
|
9
9
|
import { o as E } from "./BKKEev13.js";
|
|
10
10
|
import J from "lodash/isArray";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useRef as d, useEffect as f } from "react";
|
|
2
|
+
function a(o, { hidden: s }) {
|
|
3
|
+
const c = d(!1), r = d({}), u = (t) => {
|
|
4
|
+
var e, n;
|
|
5
|
+
return t === document.body || ((n = (e = t.tagName) == null ? void 0 : e.toLowerCase) == null ? void 0 : n.call(e)) === "body" ? window.innerWidth - (document.body.clientWidth || document.documentElement.clientWidth) : t.offsetWidth - t.clientWidth;
|
|
6
|
+
}, l = () => {
|
|
7
|
+
const t = o();
|
|
8
|
+
if (t && t.style.overflow !== "hidden") {
|
|
9
|
+
const e = t.style;
|
|
10
|
+
c.current = !0;
|
|
11
|
+
const n = u(t);
|
|
12
|
+
n && (r.current.width = e.width, t.style.width = `calc(${t.style.width || "100%"} - ${n}px)`), r.current.overflow = e.overflow, t.style.overflow = "hidden";
|
|
13
|
+
}
|
|
14
|
+
}, i = () => {
|
|
15
|
+
if (c.current && o()) {
|
|
16
|
+
const t = o(), e = r.current;
|
|
17
|
+
Object.keys(e).forEach(
|
|
18
|
+
(n) => t.style[n] = e[n]
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
c.current = !1, r.current = {};
|
|
22
|
+
};
|
|
23
|
+
return f(() => (s ? l() : i(), () => {
|
|
24
|
+
i();
|
|
25
|
+
}), [o, s]), [i, l];
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
a as u
|
|
29
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef as i, useState as l, useEffect as m } from "react";
|
|
2
|
-
import "./
|
|
2
|
+
import "./DAAff-FT.js";
|
|
3
3
|
import { u as c } from "./VSe_Wq1g.js";
|
|
4
|
-
import "./
|
|
4
|
+
import "./C0pRaDCf.js";
|
|
5
5
|
import t from "lodash/isUndefined.js";
|
|
6
6
|
function P(a, f) {
|
|
7
7
|
const { defaultValue: r, value: e } = f || {}, u = i(!0), n = c(e), [s, o] = l(
|