@unicom-cloud/ui 0.8.100 → 0.8.102
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/Badge.js +7 -54
- package/Copy.js +5 -4
- package/Details.js +13 -2
- package/Divider.js +3 -2
- package/Flex.js +14 -4
- package/LiquidFill.js +5 -4
- package/List.js +1 -1
- package/Loading.js +16 -3
- package/Marquee.js +5 -4
- package/QrCode.js +5 -4
- package/Space.js +3 -3
- package/Splitter.js +4 -3
- package/SuspenseFallbackTest.js +2 -4
- package/Tooltip.js +3 -4
- package/Tour.js +5 -4
- package/alert/index.js +60 -62
- package/anchor/Anchor.js +12 -12
- package/anchor/util.js +10 -10
- package/back-top/index.js +33 -34
- package/badge/index.js +109 -162
- package/calendar/index.js +85 -84
- package/card/index.js +63 -43
- package/color-picker/InputHex.js +3 -4
- package/color-picker/InputRgb.js +7 -8
- package/color-picker/Palette.js +3 -4
- package/color-picker/Panel.js +3 -4
- package/color-picker/colors.js +5 -5
- package/color-picker/hooks/useColorPicker.js +3 -4
- package/color-picker/utils.js +14 -15
- package/components/common/development/index.js +44 -29
- package/components/common/empty/index.js +35 -23
- package/components/common/flex/index.js +64 -0
- package/components/common/flex/interface.js +9 -0
- package/components/common/higher-order/with-speech-synthesis/index.js +79 -55
- package/components/common/space/index.js +71 -91
- package/components/common/suspense-fallback-test/index.js +16 -0
- package/components/common/utils/PqbCSSTransition.js +1 -1
- package/components/common/utils/constant.js +6 -3
- package/components/common/utils/reactDOM.js +6 -4
- package/components/common/utils/{scrollIntoView.js → scrollIntoViewIfNeeded.js} +1 -1
- package/components/common/utils/setPrimaryColor.js +18 -18
- package/components/common/utils/setTheme.js +8 -9
- package/components/common/utils/toArray.js +12 -0
- package/copy/index.js +3 -2
- package/details/index.js +102 -62
- package/dist/scroll-into-view-if-needed/compute/index.js +126 -0
- package/dist/scroll-into-view-if-needed/smooth/index.js +70 -0
- package/dist/scroll-into-view-if-needed/src/index.js +19 -19
- package/divider/index.js +27 -21
- package/empty/index.js +13 -13
- package/flex/index.js +43 -55
- package/flex/interface.js +1 -34
- package/form/FormItem.js +69 -65
- package/form/context.js +6 -7
- package/grid/Col-.js +86 -0
- package/grid/Col.js +156 -73
- package/grid/Grid.js +71 -67
- package/grid/Row.js +3 -3
- package/grid/index.js +13 -13
- package/icon/interface.js +1 -0
- package/icon-hover/interface.js +1 -0
- package/index.js +641 -663
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +7 -7
- package/liquid-fill/index.js +5 -4
- package/list/index.js +1 -1
- package/loading/index.js +72 -53
- package/loading/interface.js +1 -0
- package/marquee/index.js +5 -4
- package/menu/Item.js +9 -9
- package/modal/Modal.js +73 -74
- package/package.json +1 -1
- package/portal/interface.js +1 -0
- package/qr-code/index.js +5 -4
- package/segmented/index.js +47 -47
- package/space/index.js +41 -35
- package/speech-synthesis/interface.js +1 -0
- package/splitter/SplitBar.js +81 -79
- package/splitter/Splitter.js +92 -104
- package/splitter/hooks/useItems.js +1 -1
- package/splitter/hooks/useResizable.js +9 -18
- package/splitter/hooks/useResize.js +10 -10
- package/splitter/hooks/useSizes.js +28 -28
- package/splitter/index.js +5 -4
- package/statistic/index.js +10 -10
- package/style.css +1 -1
- package/suspense-fallback-test/index.js +2 -11
- package/suspense-fallback-test/interface.js +1 -0
- package/table/Table.js +376 -377
- package/table/hook/useThResizable.js +5 -4
- package/table/th-resizable/index.js +12 -11
- package/time-picker/util.js +8 -8
- package/tooltip/index.js +1 -2
- package/tour/index.js +5 -4
- package/tree/NodeList.js +1 -1
- package/trigger/index.js +67 -70
- package/types/common/development/index.d.ts +7 -1
- package/types/common/development/interface.d.ts +22 -0
- package/types/common/empty/index.d.ts +2 -1
- package/types/common/flex/index.d.ts +14 -0
- package/types/common/flex/interface.d.ts +62 -0
- package/types/common/higher-order/with-speech-synthesis/index.d.ts +6 -1
- package/types/common/higher-order/with-speech-synthesis/interface.d.ts +13 -0
- package/types/common/space/index.d.ts +4 -4
- package/types/common/space/interface.d.ts +10 -18
- package/types/common/suspense-fallback-test/index.d.ts +7 -0
- package/types/common/suspense-fallback-test/interface.d.ts +1 -0
- package/types/common/utils/PqbCSSTransition.d.ts +1 -1
- package/types/common/utils/constant.d.ts +1 -0
- package/types/common/utils/scrollIntoViewIfNeeded.d.ts +4 -0
- package/types/common/utils/toArray.d.ts +13 -0
- package/types/common/utils/tree.d.ts +1 -0
- package/types/common/utils/tween.d.ts +1 -0
- package/types/pc/alert/index.d.ts +2 -1
- package/types/pc/alert/interface.d.ts +7 -1
- package/types/pc/anchor/util.d.ts +1 -1
- package/types/pc/badge/Count.d.ts +1 -1
- package/types/pc/badge/interface.d.ts +2 -0
- package/types/pc/breadcrumb/Item.d.ts +1 -1
- package/types/pc/calendar/Month.d.ts +1 -1
- package/types/pc/calendar/WeekList.d.ts +1 -1
- package/types/pc/calendar/Year.d.ts +1 -1
- package/types/pc/calendar/header/Panel.d.ts +1 -1
- package/types/pc/calendar/header/index.d.ts +1 -1
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/calendar/interface.d.ts +2 -1
- package/types/pc/card/interface.d.ts +8 -0
- package/types/pc/cascader/interface.d.ts +1 -1
- package/types/pc/cascader/panel/List.d.ts +1 -1
- package/types/pc/cascader/panel/Option.d.ts +1 -1
- package/types/pc/cascader/panel/Search.d.ts +1 -1
- package/types/pc/checkbox/Group.d.ts +2 -2
- package/types/pc/checkbox/GroupBlock.d.ts +1 -1
- package/types/pc/checkbox/IconCheck.d.ts +1 -1
- package/types/pc/color-picker/InputRgb.d.ts +1 -1
- package/types/pc/color-picker/Palette.d.ts +1 -1
- package/types/pc/color-picker/hooks/useColorPicker.d.ts +7 -2
- package/types/pc/color-picker/utils.d.ts +6 -1
- package/types/pc/config-provider/ConfigProvider.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +4 -0
- package/types/pc/copy/index.d.ts +1 -1
- package/types/pc/date-picker/panel/Body.d.ts +1 -1
- package/types/pc/date-picker/panel/Footer.d.ts +1 -1
- package/types/pc/date-picker/panel/Header.d.ts +1 -1
- package/types/pc/date-picker/panel/WeekList.d.ts +1 -1
- package/types/pc/date-picker/panel/date/index.d.ts +1 -1
- package/types/pc/date-picker/panel/month/index.d.ts +1 -1
- package/types/pc/date-picker/panel/quarter/index.d.ts +1 -1
- package/types/pc/date-picker/panel/range/index.d.ts +1 -1
- package/types/pc/date-picker/panel/week/index.d.ts +1 -1
- package/types/pc/date-picker/panel/year/index.d.ts +1 -1
- package/types/pc/descriptions/index.d.ts +1 -1
- package/types/pc/details/index.d.ts +3 -2
- package/types/pc/details/interface.d.ts +16 -0
- package/types/pc/development/index.d.ts +2 -1
- package/types/pc/development/interface.d.ts +15 -0
- package/types/pc/divider/index.d.ts +7 -2
- package/types/pc/draggable/Item.d.ts +1 -1
- package/types/pc/draggable/index.d.ts +1 -1
- package/types/pc/flex/index.d.ts +4 -4
- package/types/pc/flex/interface.d.ts +8 -53
- package/types/pc/form/Control.d.ts +1 -1
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/FormList.d.ts +1 -1
- package/types/pc/form/IconSymbol.d.ts +1 -1
- package/types/pc/grid/Col-.d.ts +4 -0
- package/types/pc/grid/Col.d.ts +3 -2
- package/types/pc/grid/Grid.d.ts +2 -2
- package/types/pc/grid/Item.d.ts +3 -3
- package/types/pc/grid/Row.d.ts +2 -2
- package/types/pc/grid/hook/useResponsiveState.d.ts +2 -2
- package/types/pc/grid/interface.d.ts +13 -7
- package/types/pc/icon/addFromIconFontCn.d.ts +1 -7
- package/types/pc/icon/index.d.ts +2 -7
- package/types/pc/icon/interface.d.ts +13 -0
- package/types/pc/icon-hover/index.d.ts +2 -8
- package/types/pc/icon-hover/interface.d.ts +8 -0
- package/types/pc/image/ImageFooter.d.ts +1 -1
- package/types/pc/image/ImagePreviewArrow.d.ts +1 -1
- package/types/pc/image/TriggerForToolbar.d.ts +1 -1
- package/types/pc/index.d.ts +60 -51
- package/types/pc/loading/index.d.ts +4 -3
- package/types/pc/loading/interface.d.ts +6 -0
- package/types/pc/menu/Indent.d.ts +1 -1
- package/types/pc/menu/OverflowWrap.d.ts +1 -1
- package/types/pc/menu/sub-menu/Inline.d.ts +1 -1
- package/types/pc/menu/sub-menu/Pop.d.ts +1 -1
- package/types/pc/overflow-ellipsis/OverflowItem.d.ts +1 -1
- package/types/pc/overflow-ellipsis/index.d.ts +1 -1
- package/types/pc/pagination/PageItem.d.ts +3 -3
- package/types/pc/pagination/PageJumper.d.ts +1 -1
- package/types/pc/pagination/PageOption.d.ts +1 -1
- package/types/pc/portal/Portal.d.ts +2 -6
- package/types/pc/portal/index.d.ts +2 -9
- package/types/pc/portal/interface.d.ts +14 -0
- package/types/pc/progress/CircleProgress.d.ts +1 -1
- package/types/pc/progress/LineProgess.d.ts +1 -1
- package/types/pc/progress/StepProgress.d.ts +1 -1
- package/types/pc/radio/Group.d.ts +2 -2
- package/types/pc/radio/GroupBlock.d.ts +1 -1
- package/types/pc/radio/Radio.d.ts +1 -1
- package/types/pc/resize-box/ResizeTrigger.d.ts +1 -1
- package/types/pc/result/403.d.ts +1 -1
- package/types/pc/result/404.d.ts +1 -1
- package/types/pc/result/500.d.ts +1 -1
- package/types/pc/segmented/interface.d.ts +6 -6
- package/types/pc/skeleton/Image.d.ts +1 -1
- package/types/pc/skeleton/Text.d.ts +2 -1
- package/types/pc/slider/Button.d.ts +1 -1
- package/types/pc/slider/Input.d.ts +1 -1
- package/types/pc/slider/Tick.d.ts +1 -1
- package/types/pc/space/index.d.ts +6 -5
- package/types/pc/speech-synthesis/index.d.ts +3 -1
- package/types/pc/speech-synthesis/interface.d.ts +7 -0
- package/types/pc/spin/DotLoading.d.ts +1 -1
- package/types/pc/splitter/SplitBar.d.ts +0 -1
- package/types/pc/splitter/hooks/useResizable.d.ts +0 -1
- package/types/pc/splitter/hooks/useResize.d.ts +1 -2
- package/types/pc/splitter/index.d.ts +5 -4
- package/types/pc/splitter/interface.d.ts +16 -24
- package/types/pc/suspense-fallback-test/index.d.ts +2 -3
- package/types/pc/suspense-fallback-test/interface.d.ts +2 -0
- package/types/pc/table/ColGroup.d.ts +1 -1
- package/types/pc/table/summary/Cell.d.ts +1 -1
- package/types/pc/table/summary/Row.d.ts +1 -1
- package/types/pc/table/tbody/Td.d.ts +1 -1
- package/types/pc/table/tbody/index.d.ts +1 -1
- package/types/pc/table/tfoot/index.d.ts +1 -1
- package/types/pc/table/th-resizable/index.d.ts +1 -1
- package/types/pc/table/thead/Column.d.ts +1 -1
- package/types/pc/table/thead/index.d.ts +1 -1
- package/types/pc/tabs/TabContent.d.ts +1 -1
- package/types/pc/tabs/tab-header/DropdownIcon.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabInk.d.ts +1 -1
- package/types/pc/tabs/tab-header/TabNavIcon.d.ts +1 -1
- package/types/pc/time-picker/Picker.d.ts +1 -1
- package/types/pc/time-picker/RangePicker.d.ts +1 -1
- package/types/pc/time-picker/TimeColumn.d.ts +1 -1
- package/types/pc/time-picker/TimePicker.d.ts +1 -1
- package/types/pc/time-picker/index.d.ts +1 -1
- package/types/pc/tour/index.d.ts +1 -1
- package/types/pc/transfer/Item.d.ts +1 -1
- package/types/pc/transfer/List.d.ts +1 -1
- package/types/pc/tree/Animation.d.ts +1 -1
- package/types/pc/typography/Operations.d.ts +1 -1
- package/types/pc/upload/interface.d.ts +1 -0
- package/types/pc/upload/list/index.d.ts +1 -1
- package/types/pc/utils/constant.d.ts +1 -2
- package/types/pc/utils/dayjs.d.ts +2 -1
- package/types/pc/utils/index.d.ts +2 -5
- package/types/pc/utils/scrollIntoViewIfNeeded.d.ts +3 -0
- package/types/pc/utils/toArray.d.ts +1 -5
- package/types/pc/utils/tree.d.ts +2 -1
- package/types/pc/utils/tween.d.ts +1 -1
- package/types/pc/verification-code/VerificationCode.d.ts +1 -1
- package/types/pc/virtual-list/VirtualList.d.ts +2 -38
- package/types/pc/virtual-list/index.d.ts +2 -1
- package/types/pc/virtual-list/interface.d.ts +56 -0
- package/types/pc/watermark/Watermark.d.ts +1 -1
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +5 -4
- package/upload/request.js +12 -13
- package/upload/request_.js +2 -3
- package/utils/constant.js +5 -5
- package/utils/dayjs.js +13 -12
- package/utils/index.js +261 -284
- package/utils/scrollIntoViewIfNeeded.js +12 -0
- package/utils/toArray.js +3 -10
- package/utils/tree.js +11 -9
- package/utils/tween.js +5 -5
- package/version/index.js +1 -1
- package/virtual-list/interface.js +1 -0
- package/components/common/space/toArray.js +0 -11
- package/components/common/utils/convertToDurationBasedOnTimeUnits.js +0 -6
- package/dist/compute-scroll-into-view/src/index.js +0 -126
- package/dist/tinycolor/chunk/BOzCVdr0.js +0 -182
- package/dist/tinycolor/customize/index.js +0 -12
- package/dist/tinycolor/src/conversion.js +0 -143
- package/dist/tinycolor/src/css-color-names.js +0 -153
- package/dist/tinycolor/src/format-input.js +0 -77
- package/dist/tinycolor/src/index.js +0 -388
- package/dist/tinycolor/src/util.js +0 -32
- package/flex/utils.js +0 -13
- package/loading/style/index.module.less.js +0 -4
- package/types/common/space/toArray.d.ts +0 -3
- package/types/common/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
- package/types/common/utils/scrollIntoView.d.ts +0 -4
- package/types/common/utils/tinycolor.d.ts +0 -1
- package/types/pc/flex/utils.d.ts +0 -9
- package/types/pc/suspense-fallback-test/style/index.d.ts +0 -1
- package/types/pc/utils/color.d.ts +0 -1
- package/types/pc/utils/computeScrollIntoView.d.ts +0 -1
- package/types/pc/utils/convertToDurationBasedOnTimeUnits.d.ts +0 -3
- package/types/pc/utils/scrollIntoView.d.ts +0 -3
- package/types/pc/utils/tinycolor.d.ts +0 -1
- package/utils/color.js +0 -4
- package/utils/computeScrollIntoView.js +0 -6
- package/utils/convertToDurationBasedOnTimeUnits.js +0 -6
- package/utils/scrollIntoView.js +0 -6
- package/utils/tinycolor.js +0 -29
- /package/{suspense-fallback-test/style/index.less.js → development/interface.js} +0 -0
package/utils/index.js
CHANGED
|
@@ -1,287 +1,264 @@
|
|
|
1
|
-
|
|
2
|
-
import { default as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { contains as pe, getScrollElements as le, isScrollElement as ne, isServerRendering as de, off as xe, on as ue } from "../components/common/utils/dom.js";
|
|
16
|
-
import { default as ge } from "@unicom-cloud/utils/file/fileToURL";
|
|
17
|
-
import { fillNBSP as Te } from "../components/common/utils/fillNBSP.js";
|
|
18
|
-
import { getHighlightText as Re } from "../components/common/utils/getHighlightText.js";
|
|
19
|
-
import { getHotkeyHandler as Ce } from "../components/common/utils/getHotkeyHandler.js";
|
|
20
|
-
import { getStringLength as Ee } from "../components/common/utils/getStringLength.js";
|
|
21
|
-
import { include as Ne } from "../components/common/utils/include.js";
|
|
1
|
+
export * from "@unicom-cloud/utils/date";
|
|
2
|
+
import { default as i } from "@unicom-cloud/utils/case-name";
|
|
3
|
+
import { default as f } from "@unicom-cloud/utils/class-name";
|
|
4
|
+
import { newArray as p, pickTriggerPropsFromRest as n } from "./constant.js";
|
|
5
|
+
import { ContextHolderElement as x } from "./contextHolder.js";
|
|
6
|
+
import { default as c, default as y } from "@unicom-cloud/utils/clipboard-copy";
|
|
7
|
+
import { dayjs as S, getDayjsValue as R, getNow as C, getSortedDayjsArray as h, getTimeFormat as T, getValueWithTime as E, isDayjsArrayChange as b, isDayjsChange as N, isValidTimeString as A, methods as M, timezoneToOffset as P, toLocal as D, toTimezone as I } from "../components/common/utils/dayjs.js";
|
|
8
|
+
import { contains as k, getScrollElements as v, isScrollElement as B, isServerRendering as w, off as V, on as F } from "../components/common/utils/dom.js";
|
|
9
|
+
import { default as L } from "@unicom-cloud/utils/file/fileToURL";
|
|
10
|
+
import { fillNBSP as _ } from "../components/common/utils/fillNBSP.js";
|
|
11
|
+
import { getHighlightText as H } from "../components/common/utils/getHighlightText.js";
|
|
12
|
+
import { getHotkeyHandler as q } from "../components/common/utils/getHotkeyHandler.js";
|
|
13
|
+
import { getStringLength as K } from "../components/common/utils/getStringLength.js";
|
|
14
|
+
import { include as Y } from "../components/common/utils/include.js";
|
|
22
15
|
import "lodash/isFunction";
|
|
23
|
-
import { default as
|
|
24
|
-
import * as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
import { div as
|
|
41
|
-
import { mergedToString as
|
|
42
|
-
import { mergeProps as
|
|
43
|
-
import { COMPONENT_NAMES as
|
|
44
|
-
import { omit as
|
|
45
|
-
import { padEnd as
|
|
46
|
-
import { pick as
|
|
47
|
-
import { PqbCSSTransition as
|
|
48
|
-
import { callbackOriginRef as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { T as
|
|
53
|
-
import { default as
|
|
54
|
-
import { responsiveArray as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { scrollIntoView as
|
|
58
|
-
import { removeDarkTheme as
|
|
59
|
-
import { setPrimaryColor as
|
|
60
|
-
import { setTheme as
|
|
61
|
-
import { fixedWidth as
|
|
62
|
-
import { throttleByRaf as
|
|
63
|
-
import { toArray as
|
|
64
|
-
import { findNodeBy as
|
|
65
|
-
import { Tween as
|
|
66
|
-
import { default as
|
|
67
|
-
import { v4 as
|
|
68
|
-
import { Schema as
|
|
69
|
-
import { d as
|
|
70
|
-
import { warning as
|
|
71
|
-
import * as
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import { isArguments as
|
|
75
|
-
import { isClassComponent as
|
|
76
|
-
import { isAsyncMode as
|
|
16
|
+
import { default as X } from "lodash/throttle";
|
|
17
|
+
import * as t from "./is.js";
|
|
18
|
+
import { default as $ } from "lodash/camelCase";
|
|
19
|
+
import { default as te } from "lodash/capitalize";
|
|
20
|
+
import { default as oe } from "lodash/cloneDeep";
|
|
21
|
+
import { default as se } from "lodash/debounce";
|
|
22
|
+
import { default as me } from "lodash/get";
|
|
23
|
+
import { default as le } from "lodash/has";
|
|
24
|
+
import { default as ne } from "lodash/kebabCase";
|
|
25
|
+
import { default as xe } from "lodash/merge";
|
|
26
|
+
import { default as ce } from "lodash/mergeWith";
|
|
27
|
+
import { default as ge } from "lodash/set";
|
|
28
|
+
import { default as Re } from "lodash/setWith";
|
|
29
|
+
import { default as he } from "lodash/snakeCase";
|
|
30
|
+
import { default as Ee } from "lodash/startCase";
|
|
31
|
+
import { default as Ne } from "lodash/uniq";
|
|
32
|
+
import { default as Me } from "lodash/upperFirst";
|
|
33
|
+
import { div as De, default as Ie, minus as Oe, plus as ke, times as ve } from "@unicom-cloud/utils/math";
|
|
34
|
+
import { mergedToString as we } from "../components/common/utils/mergedToString.js";
|
|
35
|
+
import { mergeProps as Fe } from "../components/common/utils/mergeProps.js";
|
|
36
|
+
import { COMPONENT_NAMES as Le } from "./names.js";
|
|
37
|
+
import { omit as _e } from "../components/common/utils/omit.js";
|
|
38
|
+
import { padEnd as He, padStart as Ue } from "../components/common/utils/pad.js";
|
|
39
|
+
import { pick as Ge, pickDataAttributes as Ke } from "../components/common/utils/pick.js";
|
|
40
|
+
import { PqbCSSTransition as Ye } from "../components/common/utils/PqbCSSTransition.js";
|
|
41
|
+
import { callbackOriginRef as Xe, findDOMNode_ as Ze } from "../components/common/utils/reactDOM.js";
|
|
42
|
+
import { default as et } from "../dist/react-transition-group/src/CSSTransition.js";
|
|
43
|
+
import { default as rt } from "../dist/react-transition-group/src/ReplaceTransition.js";
|
|
44
|
+
import { default as at } from "../dist/react-transition-group/src/SwitchTransition.js";
|
|
45
|
+
import { T as it } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
46
|
+
import { default as ft, default as lt } from "../dist/react-transition-group/src/TransitionGroup.js";
|
|
47
|
+
import { responsiveArray as nt, responsiveMap as dt, responsiveObserve as xt } from "./responsiveObserve.js";
|
|
48
|
+
import { default as ct } from "@unicom-cloud/utils/file/saveAs";
|
|
49
|
+
import { default as gt } from "@unicom-cloud/utils/screenfull";
|
|
50
|
+
import { scrollIntoView as Rt } from "../components/common/utils/scrollIntoViewIfNeeded.js";
|
|
51
|
+
import { removeDarkTheme as ht, setDarkTheme as Tt } from "./setDarkTheme.js";
|
|
52
|
+
import { setPrimaryColor as bt } from "./setPrimaryColor.js";
|
|
53
|
+
import { setTheme as At } from "./setTheme.js";
|
|
54
|
+
import { fixedWidth as Pt, getStyle as Dt, setTransformStyle as It } from "../components/common/utils/style.js";
|
|
55
|
+
import { throttleByRaf as kt } from "../components/common/utils/throttleByRaf.js";
|
|
56
|
+
import { toArray as Bt } from "../components/common/utils/toArray.js";
|
|
57
|
+
import { findNodeBy as Vt, getChildWithParentBy as Ft, getItemBy as jt, getItemBy2 as Lt, getItemBy3 as Wt, getItemByID as _t, getLabelFromDictionaryByValue as zt, searchTree as Ht, default as Ut } from "@unicom-cloud/utils/tree";
|
|
58
|
+
import { Tween as Gt } from "../dist/tween/src/tween.js";
|
|
59
|
+
import { default as Jt } from "../dist/tween/src/easing.js";
|
|
60
|
+
import { v4 as Qt, v4 as Xt } from "uuid";
|
|
61
|
+
import { Schema as $t, default as er } from "../dist/validate/src/index.js";
|
|
62
|
+
import { d as rr } from "../dist/validate/chunk/BXTR2LmP.js";
|
|
63
|
+
import { warning as ar } from "../components/common/utils/warning.js";
|
|
64
|
+
import * as r from "@unicom-cloud/utils/constant/keyboardCode";
|
|
65
|
+
import { NOOP as ir } from "../components/common/utils/constant.js";
|
|
66
|
+
import { UI_PC_KEY as fr, UI_PC_THEME_DARK_CLASS_NAME as lr } from "@unicom-cloud/utils/constant/ui";
|
|
67
|
+
import { isArguments as nr, isArray as dr, isArrayBuffer as xr, isArrayLike as ur, isArrayLikeObject as cr, isBlob as yr, isBoolean as gr, isBuffer as Sr, isColor as Rr, isColor2 as Cr, isDate as hr, isElement as Tr, isEmpty as Er, isEmptyArray as br, isEmptyObject as Nr, isEmptyValue as Ar, isEqual as Mr, isEqualWith as Pr, isError as Dr, isFile as Ir, isFinite as Or, isFunction as kr, isInteger as vr, isJSON as Br, isLength as wr, isMap as Vr, isMatch as Fr, isMatchWith as jr, isNaN as Lr, isNative as Wr, isNil as _r, isNull as zr, isNumber as Hr, isObject as Ur, isObjectLike as qr, isPlainObject as Gr, isPromise as Kr, isReadableByteStreamControllerSupported as Jr, isReadableStream as Yr, isReadableStreamDefaultControllerSupported as Qr, isReadableStreamSupported as Xr, isReadableStreamSymbolAsyncIteratorSupported as Zr, isRegExp as $r, isSafeInteger as eo, isSet as to, isString as ro, isSymbol as oo, isTypedArray as ao, isUndefined as so, isValidColor as io, isWeakMap as mo, isWeakSet as fo } from "@unicom-cloud/utils/is";
|
|
68
|
+
import { isClassComponent as po, isDOMElement as no, isDayjs as xo, isEmptyReactNode as uo, isExist as co, isForwardRefReact as yo, isNullOrUndefined as go, isReact18 as So, isReact19 as Ro, isReactComponent as Co, isSupportRef as ho, isWindow as To, supportRef as Eo } from "../components/common/utils/is.js";
|
|
69
|
+
import { isAsyncMode as No, isConcurrentMode as Ao, isContextConsumer as Mo, isContextProvider as Po, isElement as Do, isForwardRef as Io, isFragment as Oo, isLazy as ko, isMemo as vo, isPortal as Bo, isProfiler as wo, isStrictMode as Vo, isSuspense as Fo, isValidElementType as jo } from "react-is";
|
|
70
|
+
import { compute as Wo } from "../dist/scroll-into-view-if-needed/compute/index.js";
|
|
71
|
+
import { default as zo } from "../dist/scroll-into-view-if-needed/src/index.js";
|
|
72
|
+
import { default as Uo, default as qo } from "../dist/scroll-into-view-if-needed/smooth/index.js";
|
|
77
73
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
Qe as setWith,
|
|
269
|
-
Ze as snakeCase,
|
|
270
|
-
er as startCase,
|
|
271
|
-
D as stringInputToObject,
|
|
272
|
-
$o as supportRef,
|
|
273
|
-
De as throttle,
|
|
274
|
-
lt as throttleByRaf,
|
|
275
|
-
lr as times,
|
|
276
|
-
se as timezoneToOffset,
|
|
277
|
-
dt as toArray,
|
|
278
|
-
ie as toLocal,
|
|
279
|
-
me as toTimezone,
|
|
280
|
-
Ct as tween,
|
|
281
|
-
tr as uniq,
|
|
282
|
-
ar as upperFirst,
|
|
283
|
-
Nt as uuid,
|
|
284
|
-
vt as uuidv4,
|
|
285
|
-
Ot as validate,
|
|
286
|
-
Bt as warning
|
|
74
|
+
Le as COMPONENT_NAMES,
|
|
75
|
+
et as CSSTransition,
|
|
76
|
+
x as ContextHolderElement,
|
|
77
|
+
rr as DefaultValidateMessage,
|
|
78
|
+
ir as NOOP,
|
|
79
|
+
Ye as PqbCSSTransition,
|
|
80
|
+
rt as ReplaceTransition,
|
|
81
|
+
$t as Schema,
|
|
82
|
+
at as SwitchTransition,
|
|
83
|
+
it as Transition,
|
|
84
|
+
ft as TransitionGroup,
|
|
85
|
+
Gt as Tween,
|
|
86
|
+
fr as UI_PC_KEY,
|
|
87
|
+
lr as UI_PC_THEME_DARK_CLASS_NAME,
|
|
88
|
+
Xe as callbackOriginRef,
|
|
89
|
+
$ as camelCase,
|
|
90
|
+
te as capitalize,
|
|
91
|
+
i as caseName,
|
|
92
|
+
f as className,
|
|
93
|
+
c as clipboardCopy,
|
|
94
|
+
oe as cloneDeep,
|
|
95
|
+
Wo as compute,
|
|
96
|
+
k as contains,
|
|
97
|
+
y as copy,
|
|
98
|
+
S as dayjs,
|
|
99
|
+
se as debounce,
|
|
100
|
+
De as div,
|
|
101
|
+
Jt as easing,
|
|
102
|
+
L as fileToURL,
|
|
103
|
+
_ as fillNBSP,
|
|
104
|
+
Ze as findDOMNode_,
|
|
105
|
+
Vt as findNodeBy,
|
|
106
|
+
Pt as fixedWidth,
|
|
107
|
+
me as get,
|
|
108
|
+
Ft as getChildWithParentBy,
|
|
109
|
+
R as getDayjsValue,
|
|
110
|
+
H as getHighlightText,
|
|
111
|
+
q as getHotkeyHandler,
|
|
112
|
+
jt as getItemBy,
|
|
113
|
+
Lt as getItemBy2,
|
|
114
|
+
Wt as getItemBy3,
|
|
115
|
+
_t as getItemByID,
|
|
116
|
+
zt as getLabelFromDictionaryByValue,
|
|
117
|
+
C as getNow,
|
|
118
|
+
v as getScrollElements,
|
|
119
|
+
h as getSortedDayjsArray,
|
|
120
|
+
K as getStringLength,
|
|
121
|
+
Dt as getStyle,
|
|
122
|
+
T as getTimeFormat,
|
|
123
|
+
E as getValueWithTime,
|
|
124
|
+
le as has,
|
|
125
|
+
Y as include,
|
|
126
|
+
t as is,
|
|
127
|
+
nr as isArguments,
|
|
128
|
+
dr as isArray,
|
|
129
|
+
xr as isArrayBuffer,
|
|
130
|
+
ur as isArrayLike,
|
|
131
|
+
cr as isArrayLikeObject,
|
|
132
|
+
yr as isBlob,
|
|
133
|
+
gr as isBoolean,
|
|
134
|
+
Sr as isBuffer,
|
|
135
|
+
po as isClassComponent,
|
|
136
|
+
Rr as isColor,
|
|
137
|
+
Cr as isColor2,
|
|
138
|
+
no as isDOMElement,
|
|
139
|
+
hr as isDate,
|
|
140
|
+
xo as isDayjs,
|
|
141
|
+
b as isDayjsArrayChange,
|
|
142
|
+
N as isDayjsChange,
|
|
143
|
+
Tr as isElement,
|
|
144
|
+
Er as isEmpty,
|
|
145
|
+
br as isEmptyArray,
|
|
146
|
+
Nr as isEmptyObject,
|
|
147
|
+
uo as isEmptyReactNode,
|
|
148
|
+
Ar as isEmptyValue,
|
|
149
|
+
Mr as isEqual,
|
|
150
|
+
Pr as isEqualWith,
|
|
151
|
+
Dr as isError,
|
|
152
|
+
co as isExist,
|
|
153
|
+
Ir as isFile,
|
|
154
|
+
Or as isFinite,
|
|
155
|
+
yo as isForwardRefReact,
|
|
156
|
+
kr as isFunction,
|
|
157
|
+
vr as isInteger,
|
|
158
|
+
Br as isJSON,
|
|
159
|
+
wr as isLength,
|
|
160
|
+
Vr as isMap,
|
|
161
|
+
Fr as isMatch,
|
|
162
|
+
jr as isMatchWith,
|
|
163
|
+
Lr as isNaN,
|
|
164
|
+
Wr as isNative,
|
|
165
|
+
_r as isNil,
|
|
166
|
+
zr as isNull,
|
|
167
|
+
go as isNullOrUndefined,
|
|
168
|
+
Hr as isNumber,
|
|
169
|
+
Ur as isObject,
|
|
170
|
+
qr as isObjectLike,
|
|
171
|
+
Gr as isPlainObject,
|
|
172
|
+
Kr as isPromise,
|
|
173
|
+
So as isReact18,
|
|
174
|
+
Ro as isReact19,
|
|
175
|
+
No as isReactAsyncMode,
|
|
176
|
+
Co as isReactComponent,
|
|
177
|
+
Ao as isReactConcurrentMode,
|
|
178
|
+
Mo as isReactContextConsumer,
|
|
179
|
+
Po as isReactContextProvider,
|
|
180
|
+
Do as isReactElement,
|
|
181
|
+
Io as isReactForwardRef,
|
|
182
|
+
Oo as isReactFragment,
|
|
183
|
+
ko as isReactLazy,
|
|
184
|
+
vo as isReactMemo,
|
|
185
|
+
Bo as isReactPortal,
|
|
186
|
+
wo as isReactProfiler,
|
|
187
|
+
Vo as isReactStrictMode,
|
|
188
|
+
Fo as isReactSuspense,
|
|
189
|
+
jo as isReactValidElementType,
|
|
190
|
+
Jr as isReadableByteStreamControllerSupported,
|
|
191
|
+
Yr as isReadableStream,
|
|
192
|
+
Qr as isReadableStreamDefaultControllerSupported,
|
|
193
|
+
Xr as isReadableStreamSupported,
|
|
194
|
+
Zr as isReadableStreamSymbolAsyncIteratorSupported,
|
|
195
|
+
$r as isRegExp,
|
|
196
|
+
eo as isSafeInteger,
|
|
197
|
+
B as isScrollElement,
|
|
198
|
+
w as isServerRendering,
|
|
199
|
+
to as isSet,
|
|
200
|
+
ro as isString,
|
|
201
|
+
ho as isSupportRef,
|
|
202
|
+
oo as isSymbol,
|
|
203
|
+
ao as isTypedArray,
|
|
204
|
+
so as isUndefined,
|
|
205
|
+
io as isValidColor,
|
|
206
|
+
A as isValidTimeString,
|
|
207
|
+
mo as isWeakMap,
|
|
208
|
+
fo as isWeakSet,
|
|
209
|
+
To as isWindow,
|
|
210
|
+
ne as kebabCase,
|
|
211
|
+
r as keyboardCode,
|
|
212
|
+
Ie as math,
|
|
213
|
+
xe as merge,
|
|
214
|
+
Fe as mergeProps,
|
|
215
|
+
ce as mergeWith,
|
|
216
|
+
we as mergedToString,
|
|
217
|
+
M as methods,
|
|
218
|
+
Oe as minus,
|
|
219
|
+
p as newArray,
|
|
220
|
+
V as off,
|
|
221
|
+
_e as omit,
|
|
222
|
+
F as on,
|
|
223
|
+
He as padEnd,
|
|
224
|
+
Ue as padStart,
|
|
225
|
+
Ge as pick,
|
|
226
|
+
Ke as pickDataAttributes,
|
|
227
|
+
n as pickTriggerPropsFromRest,
|
|
228
|
+
ke as plus,
|
|
229
|
+
lt as reactTransitionGroup,
|
|
230
|
+
ht as removeDarkTheme,
|
|
231
|
+
nt as responsiveArray,
|
|
232
|
+
dt as responsiveMap,
|
|
233
|
+
xt as responsiveObserve,
|
|
234
|
+
ct as saveAs,
|
|
235
|
+
gt as screenfull,
|
|
236
|
+
Rt as scrollIntoView,
|
|
237
|
+
zo as scrollIntoViewIfNeeded,
|
|
238
|
+
Uo as scrollIntoViewIfNeededSmooth,
|
|
239
|
+
Ht as searchTree,
|
|
240
|
+
ge as set,
|
|
241
|
+
Tt as setDarkTheme,
|
|
242
|
+
bt as setPrimaryColor,
|
|
243
|
+
At as setTheme,
|
|
244
|
+
It as setTransformStyle,
|
|
245
|
+
Re as setWith,
|
|
246
|
+
qo as smoothScrollIntoViewIfNeeded,
|
|
247
|
+
he as snakeCase,
|
|
248
|
+
Ee as startCase,
|
|
249
|
+
Eo as supportRef,
|
|
250
|
+
X as throttle,
|
|
251
|
+
kt as throttleByRaf,
|
|
252
|
+
ve as times,
|
|
253
|
+
P as timezoneToOffset,
|
|
254
|
+
Bt as toArray,
|
|
255
|
+
D as toLocal,
|
|
256
|
+
I as toTimezone,
|
|
257
|
+
Ut as tree,
|
|
258
|
+
Ne as uniq,
|
|
259
|
+
Me as upperFirst,
|
|
260
|
+
Qt as uuid,
|
|
261
|
+
Xt as uuidv4,
|
|
262
|
+
er as validate,
|
|
263
|
+
ar as warning
|
|
287
264
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { scrollIntoView as o } from "../components/common/utils/scrollIntoViewIfNeeded.js";
|
|
2
|
+
import { compute as l } from "../dist/scroll-into-view-if-needed/compute/index.js";
|
|
3
|
+
import { default as d } from "../dist/scroll-into-view-if-needed/src/index.js";
|
|
4
|
+
import { default as m, default as s } from "../dist/scroll-into-view-if-needed/smooth/index.js";
|
|
5
|
+
export {
|
|
6
|
+
l as compute,
|
|
7
|
+
o as default,
|
|
8
|
+
o as scrollIntoView,
|
|
9
|
+
d as scrollIntoViewIfNeeded,
|
|
10
|
+
m as scrollIntoViewIfNeededSmooth,
|
|
11
|
+
s as smoothScrollIntoViewIfNeeded
|
|
12
|
+
};
|
package/utils/toArray.js
CHANGED
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { isFragment as f } from "react-is";
|
|
3
|
-
function s(a, p = {}) {
|
|
4
|
-
const e = [];
|
|
5
|
-
return t.Children.forEach(a, (r) => {
|
|
6
|
-
r == null && !p.keepEmpty || (Array.isArray(r) ? e.push(...s(r, p)) : f(r) && "props" in r && r.props ? e.push(...s(r.props.children, p)) : t.isValidElement(r) && e.push(r));
|
|
7
|
-
}), e;
|
|
8
|
-
}
|
|
1
|
+
import { toArray as o } from "../components/common/utils/toArray.js";
|
|
9
2
|
export {
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
o as default,
|
|
4
|
+
o as toArray
|
|
12
5
|
};
|
package/utils/tree.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as a, findNodeBy as r, getChildWithParentBy as y, getItemBy as B, getItemBy2 as g, getItemBy3 as m, getItemByID as d, getLabelFromDictionaryByValue as i, searchTree as l, default as o } from "@unicom-cloud/utils/tree";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
a as default,
|
|
4
|
+
r as findNodeBy,
|
|
5
|
+
y as getChildWithParentBy,
|
|
6
|
+
B as getItemBy,
|
|
7
|
+
g as getItemBy2,
|
|
8
|
+
m as getItemBy3,
|
|
9
|
+
d as getItemByID,
|
|
10
|
+
i as getLabelFromDictionaryByValue,
|
|
11
|
+
l as searchTree,
|
|
12
|
+
o as tree
|
|
11
13
|
};
|
package/utils/tween.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Tween as
|
|
2
|
-
import { default as
|
|
1
|
+
import { Tween as f, Tween as o } from "../dist/tween/src/tween.js";
|
|
2
|
+
import { default as t } from "../dist/tween/src/easing.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
o as
|
|
6
|
-
|
|
4
|
+
f as Tween,
|
|
5
|
+
o as default,
|
|
6
|
+
t as easing
|
|
7
7
|
};
|