@unicom-cloud/ui 0.8.106 → 0.8.108
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/App.js +7 -0
- package/BackTop.js +2 -4
- package/Calendar.js +2 -2
- package/ColorPicker.js +15 -14
- package/Constant.js +4 -0
- package/Copy.js +4 -3
- package/Countdown.js +25 -0
- package/Grid.js +8 -10
- package/LiquidFill.js +4 -3
- package/List.js +7 -6
- package/Marquee.js +4 -3
- package/Modal.js +4 -2
- package/PageHeader.js +3 -2
- package/QrCode.js +4 -3
- package/RowCol.js +8 -0
- package/Segmented.js +14 -4
- package/Statistic.js +5 -4
- package/Tour.js +4 -3
- package/Transfer.js +4 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +26 -0
- package/app/context.js +9 -0
- package/app/index.js +9 -0
- package/app/interface.js +1 -0
- package/app/useApp.js +8 -0
- package/avatar/Group.js +1 -1
- package/back-top/index.js +44 -56
- package/button/index.js +52 -51
- package/calendar/Lunar.js +71 -0
- package/calendar/index.js +11 -11
- package/cascader/base/node.js +22 -20
- package/cascader/base/store.js +10 -10
- package/cascader/util.js +29 -27
- package/color-picker/Mode.js +8 -7
- package/color-picker/hooks/useColorPicker.js +56 -55
- package/color-picker/index.js +49 -48
- package/color-picker/utils.js +58 -57
- package/components/common/empty/index.js +2 -2
- package/components/common/flex/index.js +64 -55
- package/components/common/flex/interface.js +6 -6
- package/components/common/hooks/useInterval.js +6 -6
- package/components/common/icons/file/index.js +13 -11
- package/components/common/space/index.js +53 -53
- package/components/common/utils/dayjs.js +114 -126
- package/components/common/utils/is.js +98 -104
- package/components/common/utils/setDir.js +12 -0
- package/components/common/utils/setTheme.js +13 -13
- package/components/common/utils/toArray.js +7 -5
- package/config-provider/ConfigProvider.js +32 -30
- package/constant/index.js +4 -0
- package/copy/index.js +2 -1
- package/countdown/index.js +113 -0
- package/countdown/interface.js +1 -0
- package/countdown/util.js +29 -0
- package/descriptions/index.js +45 -45
- package/divider/index.js +28 -20
- package/dropdown/Button.js +1 -1
- package/empty/index.js +1 -1
- package/flex/index.js +30 -29
- package/form/FormItem.js +126 -122
- package/grid/Grid.js +56 -90
- package/grid/Item.js +44 -65
- package/grid/context.js +2 -6
- package/grid/index.js +6 -8
- package/grid/util.js +6 -44
- package/hooks/useResponsiveState.js +54 -0
- package/index.js +614 -605
- package/input/Button.js +12 -12
- package/input/Group.js +11 -12
- package/input/Input.js +112 -102
- package/input/InputElement.js +25 -24
- package/input/Search.js +24 -24
- package/layout/Sider.js +1 -1
- package/liquid-fill/index.js +4 -3
- package/list/Item.js +21 -21
- package/list/index.js +53 -52
- package/marquee/index.js +20 -19
- package/marquee-/index.js +4 -3
- package/mentions/util.js +9 -8
- package/modal/Confirm.js +17 -17
- package/modal/Modal.js +247 -237
- package/modal/index.js +4 -2
- package/modal/use-modal/index.js +2 -2
- package/package.json +1 -1
- package/page-header/index.js +57 -56
- package/pagination/Pagination.js +89 -92
- package/qr-code/index.js +4 -3
- package/radio/Group.js +1 -1
- package/row-col/Col-.js +88 -0
- package/row-col/Col.js +159 -0
- package/row-col/Row.js +73 -0
- package/row-col/context.js +5 -0
- package/row-col/index.js +11 -0
- package/row-col/interface.js +1 -0
- package/segmented/index.js +257 -206
- package/select/Select.js +191 -191
- package/select/util.js +50 -50
- package/select-view/Core.js +31 -28
- package/space/index.js +15 -13
- package/splitter/SplitBar.js +44 -46
- package/statistic/index.js +56 -55
- package/statistic/interface.js +4 -1
- package/style.css +1 -1
- package/table/Table.js +198 -210
- package/table/hook/useColumns.js +27 -26
- package/table/hook/useStickyClassNames.js +9 -8
- package/table/hook/useThResizable.js +4 -3
- package/table/th-resizable/index.js +2 -2
- package/table/thead/index.js +18 -16
- package/time-picker/util.js +20 -30
- package/timeline/Item.js +1 -1
- package/tour/index.js +4 -3
- package/transfer/index.js +93 -91
- package/trigger/index.js +66 -66
- package/types/common/development/interface.d.ts +3 -3
- package/types/common/flex/index.d.ts +3 -9
- package/types/common/flex/interface.d.ts +15 -4
- package/types/common/space/index.d.ts +3 -5
- package/types/common/space/interface.d.ts +2 -0
- package/types/common/utils/dayjs.d.ts +3 -1
- package/types/common/utils/is.d.ts +3 -4
- package/types/common/utils/setDir.d.ts +2 -0
- package/types/pc/app/App.d.ts +6 -0
- package/types/pc/app/context.d.ts +4 -0
- package/types/pc/app/index.d.ts +5 -0
- package/types/pc/app/interface.d.ts +17 -0
- package/types/pc/app/useApp.d.ts +3 -0
- package/types/pc/back-top/interface.d.ts +4 -17
- package/types/pc/button/interface.d.ts +2 -2
- package/types/pc/calendar/Lunar.d.ts +17 -0
- package/types/pc/calendar/index.d.ts +1 -1
- package/types/pc/config-provider/interface.d.ts +17 -12
- package/types/pc/constant/index.d.ts +1 -0
- package/types/pc/countdown/interface.d.ts +65 -0
- package/types/pc/countdown/util.d.ts +7 -0
- package/types/pc/divider/interface.d.ts +1 -0
- package/types/pc/flex/index.d.ts +8 -6
- package/types/pc/flex/interface.d.ts +3 -10
- package/types/pc/form/FormItem.d.ts +1 -1
- package/types/pc/form/interface.d.ts +1 -1
- package/types/pc/grid/Grid.d.ts +2 -4
- package/types/pc/grid/Item.d.ts +1 -5
- package/types/pc/grid/context.d.ts +4 -15
- package/types/pc/grid/index.d.ts +4 -6
- package/types/pc/grid/interface.d.ts +14 -142
- package/types/pc/grid/util.d.ts +1 -10
- package/types/pc/hooks/useResponsiveState.d.ts +3 -0
- package/types/pc/index.d.ts +10 -4
- package/types/pc/input/Button.d.ts +2 -2
- package/types/pc/list/interface.d.ts +2 -1
- package/types/pc/message/index.d.ts +1 -9
- package/types/pc/message/interface.d.ts +8 -0
- package/types/pc/message/useMessage.d.ts +1 -2
- package/types/pc/modal/Modal.d.ts +1 -0
- package/types/pc/modal/config.d.ts +1 -2
- package/types/pc/modal/index.d.ts +2 -1
- package/types/pc/modal/interface.d.ts +17 -5
- package/types/pc/notification/index.d.ts +2 -9
- package/types/pc/notification/interface.d.ts +7 -0
- package/types/pc/notification/useNotification.d.ts +1 -2
- package/types/pc/pagination/PageOption.d.ts +0 -1
- package/types/pc/pagination/interface.d.ts +5 -6
- package/types/pc/{grid → row-col}/Col-.d.ts +1 -1
- package/types/pc/{grid → row-col}/Col.d.ts +1 -2
- package/types/pc/{grid → row-col}/Row.d.ts +1 -2
- package/types/pc/row-col/context.d.ts +6 -0
- package/types/pc/row-col/index.d.ts +7 -0
- package/types/pc/row-col/interface.d.ts +112 -0
- package/types/pc/segmented/index.d.ts +3 -7
- package/types/pc/segmented/interface.d.ts +38 -5
- package/types/pc/select-view/Core.d.ts +1 -8
- package/types/pc/select-view/index.d.ts +1 -8
- package/types/pc/select-view/interface.d.ts +9 -2
- package/types/pc/space/index.d.ts +5 -7
- package/types/pc/space/interface.d.ts +3 -10
- package/types/pc/statistic/index.d.ts +1 -1
- package/types/pc/statistic/interface.d.ts +1 -49
- package/types/pc/utils/is.d.ts +1 -1
- package/types/pc/utils/names.d.ts +422 -111
- package/types/pc/utils/responsiveObserve.d.ts +8 -8
- package/typography/Ellipsis.js +5 -4
- package/typography/Operations.js +4 -3
- package/utils/dayjs.js +13 -11
- package/utils/index.js +245 -244
- package/utils/is.js +65 -66
- package/utils/names.js +309 -150
- package/utils/responsiveObserve.js +43 -36
- package/version/index.js +1 -1
- package/grid/Col-.js +0 -86
- package/grid/Col.js +0 -169
- package/grid/Row.js +0 -96
- package/grid/hook/useResponsiveState.js +0 -38
- package/statistic/Countdown.js +0 -56
- package/statistic/util.js +0 -33
- package/types/pc/grid/hook/useResponsiveState.d.ts +0 -2
- package/types/pc/statistic/util.d.ts +0 -1
- /package/types/pc/{statistic/Countdown.d.ts → countdown/index.d.ts} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
type SubscribeFunc = (screens: ScreenMap, breakpointChecked: Breakpoint | null, media: string | null) => void;
|
|
2
|
+
type MatchHandler = {
|
|
3
|
+
mql: MediaQueryList;
|
|
4
|
+
listener: (this: MediaQueryList, ev: MediaQueryListEvent) => void;
|
|
5
|
+
};
|
|
1
6
|
export type Breakpoint = 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
2
7
|
export type BreakpointMap = Record<Breakpoint, string>;
|
|
3
8
|
export type ScreenMap = Partial<Record<Breakpoint, boolean>>;
|
|
4
9
|
export declare const responsiveArray: Breakpoint[];
|
|
5
10
|
export declare const responsiveMap: BreakpointMap;
|
|
6
|
-
type SubscribeFunc = (screens: ScreenMap, breakpointChecked: Breakpoint | null) => void;
|
|
7
|
-
type MatchHandler = {
|
|
8
|
-
mql: MediaQueryList;
|
|
9
|
-
listener: (this: MediaQueryList, ev: MediaQueryListEvent) => void;
|
|
10
|
-
};
|
|
11
11
|
declare const responsiveObserve: {
|
|
12
12
|
matchHandlers: Record<string, MatchHandler>;
|
|
13
|
-
|
|
13
|
+
register(): void;
|
|
14
|
+
unregister(): void;
|
|
14
15
|
subscribe(func: SubscribeFunc): string;
|
|
15
16
|
unsubscribe(token: string): void;
|
|
16
|
-
|
|
17
|
-
register(): void;
|
|
17
|
+
dispatch(pointMap: ScreenMap, breakpointChecked: Breakpoint | null, media: any): boolean;
|
|
18
18
|
};
|
|
19
19
|
export { responsiveObserve };
|
|
20
20
|
export default responsiveObserve;
|
package/typography/Ellipsis.js
CHANGED
|
@@ -45,7 +45,7 @@ import "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
|
45
45
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
46
46
|
import "../components/common/utils/reactDOM.js";
|
|
47
47
|
import { resizeObserver as it } from "../components/common/utils/resizeObserver.js";
|
|
48
|
-
import "
|
|
48
|
+
import "../utils/responsiveObserve.js";
|
|
49
49
|
import "@unicom-cloud/utils/file/saveAs";
|
|
50
50
|
import "@unicom-cloud/utils/screenfull";
|
|
51
51
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -56,6 +56,7 @@ import { throttleByRaf as nt } from "../components/common/utils/throttleByRaf.js
|
|
|
56
56
|
import "react-is";
|
|
57
57
|
import "@unicom-cloud/utils/tree";
|
|
58
58
|
import { isPlainObject as b, isFunction as st } from "@unicom-cloud/utils/is";
|
|
59
|
+
import "uuid";
|
|
59
60
|
import "../dist/validate/src/index.js";
|
|
60
61
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
61
62
|
import lt from "../config-provider/context.js";
|
|
@@ -67,7 +68,7 @@ const pt = {
|
|
|
67
68
|
const C = U(lt), N = Z(
|
|
68
69
|
j,
|
|
69
70
|
pt,
|
|
70
|
-
C.componentConfig?.
|
|
71
|
+
C.componentConfig?.TypographyEllipsis
|
|
71
72
|
), {
|
|
72
73
|
className: A,
|
|
73
74
|
style: L,
|
|
@@ -217,7 +218,7 @@ const pt = {
|
|
|
217
218
|
I(),
|
|
218
219
|
J()
|
|
219
220
|
] });
|
|
220
|
-
},
|
|
221
|
+
}, ve = Q(at);
|
|
221
222
|
export {
|
|
222
|
-
|
|
223
|
+
ve as default
|
|
223
224
|
};
|
package/typography/Operations.js
CHANGED
|
@@ -44,7 +44,7 @@ import "../dist/react-transition-group/src/SwitchTransition.js";
|
|
|
44
44
|
import "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
45
45
|
import "../dist/react-transition-group/src/TransitionGroup.js";
|
|
46
46
|
import "../components/common/utils/reactDOM.js";
|
|
47
|
-
import "
|
|
47
|
+
import "../utils/responsiveObserve.js";
|
|
48
48
|
import "@unicom-cloud/utils/file/saveAs";
|
|
49
49
|
import "@unicom-cloud/utils/screenfull";
|
|
50
50
|
import "@unicom-cloud/utils/tinycolor";
|
|
@@ -53,9 +53,10 @@ import "@unicom-cloud/utils/constant/ui.js";
|
|
|
53
53
|
import "react-is";
|
|
54
54
|
import "@unicom-cloud/utils/tree";
|
|
55
55
|
import { isFunction as K } from "@unicom-cloud/utils/is";
|
|
56
|
+
import "uuid";
|
|
56
57
|
import "../dist/validate/src/index.js";
|
|
57
58
|
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
58
|
-
function
|
|
59
|
+
function Do(u) {
|
|
59
60
|
const {
|
|
60
61
|
children: s,
|
|
61
62
|
copyable: i,
|
|
@@ -121,5 +122,5 @@ function Bo(u) {
|
|
|
121
122
|
] });
|
|
122
123
|
}
|
|
123
124
|
export {
|
|
124
|
-
|
|
125
|
+
Do as default
|
|
125
126
|
};
|
package/utils/dayjs.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { dayjs as t, dayjs as o, getDayjsValue as s, getNow as
|
|
1
|
+
import { dayjs as t, dayjs as o, formatValue as i, getDayjsValue as s, getNow as m, getRealTime as r, getSortedDayjsArray as g, getTimeFormat as y, getValueWithTime as l, isDayjsArrayChange as d, isDayjsChange as j, isValidTimeString as T, methods as f, timezoneToOffset as n, toLocal as h, toTimezone as u } from "../components/common/utils/dayjs.js";
|
|
2
2
|
export {
|
|
3
3
|
t as dayjs,
|
|
4
4
|
o as default,
|
|
5
|
+
i as formatValue,
|
|
5
6
|
s as getDayjsValue,
|
|
6
|
-
|
|
7
|
-
r as
|
|
8
|
-
g as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
d as
|
|
12
|
-
j as
|
|
13
|
-
|
|
7
|
+
m as getNow,
|
|
8
|
+
r as getRealTime,
|
|
9
|
+
g as getSortedDayjsArray,
|
|
10
|
+
y as getTimeFormat,
|
|
11
|
+
l as getValueWithTime,
|
|
12
|
+
d as isDayjsArrayChange,
|
|
13
|
+
j as isDayjsChange,
|
|
14
|
+
T as isValidTimeString,
|
|
15
|
+
f as methods,
|
|
14
16
|
n as timezoneToOffset,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
h as toLocal,
|
|
18
|
+
u as toTimezone
|
|
17
19
|
};
|
package/utils/index.js
CHANGED
|
@@ -1,264 +1,265 @@
|
|
|
1
1
|
export * from "@unicom-cloud/utils/date";
|
|
2
2
|
import { default as i } from "@unicom-cloud/utils/case-name";
|
|
3
3
|
import { default as f } from "@unicom-cloud/utils/class-name";
|
|
4
|
-
import { newArray as p, pickTriggerPropsFromRest as
|
|
4
|
+
import { newArray as p, pickTriggerPropsFromRest as d } from "./constant.js";
|
|
5
5
|
import { ContextHolderElement as x } from "./contextHolder.js";
|
|
6
6
|
import { default as c, default as y } from "@unicom-cloud/utils/clipboard-copy";
|
|
7
|
-
import { dayjs as S,
|
|
8
|
-
import { contains as
|
|
9
|
-
import { default as
|
|
10
|
-
import { fillNBSP as
|
|
11
|
-
import { getHighlightText as
|
|
12
|
-
import { getHotkeyHandler as
|
|
13
|
-
import { getStringLength as
|
|
14
|
-
import { include as
|
|
7
|
+
import { dayjs as S, formatValue as R, getDayjsValue as C, getNow as h, getRealTime as T, getSortedDayjsArray as E, getTimeFormat as b, getValueWithTime as N, isDayjsArrayChange as A, isDayjsChange as P, isValidTimeString as D, methods as I, timezoneToOffset as M, toLocal as O, toTimezone as k } from "../components/common/utils/dayjs.js";
|
|
8
|
+
import { contains as B, getScrollElements as V, isScrollElement as w, isServerRendering as F, off as j, on as L } from "../components/common/utils/dom.js";
|
|
9
|
+
import { default as _ } from "@unicom-cloud/utils/file/fileToURL";
|
|
10
|
+
import { fillNBSP as H } from "../components/common/utils/fillNBSP.js";
|
|
11
|
+
import { getHighlightText as q } from "../components/common/utils/getHighlightText.js";
|
|
12
|
+
import { getHotkeyHandler as K } from "../components/common/utils/getHotkeyHandler.js";
|
|
13
|
+
import { getStringLength as Y } from "../components/common/utils/getStringLength.js";
|
|
14
|
+
import { include as X } from "../components/common/utils/include.js";
|
|
15
15
|
import "lodash/isFunction";
|
|
16
|
-
import { default as
|
|
16
|
+
import { default as $ } from "lodash/throttle";
|
|
17
17
|
import * as t from "./is.js";
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default 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 { div as
|
|
34
|
-
import { mergedToString as
|
|
35
|
-
import { mergeProps as
|
|
36
|
-
import { COMPONENT_NAMES as
|
|
37
|
-
import { omit as
|
|
38
|
-
import { padEnd as
|
|
39
|
-
import { pick as
|
|
40
|
-
import { PqbCSSTransition as
|
|
41
|
-
import { callbackOriginRef as
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { T as
|
|
46
|
-
import { default as
|
|
47
|
-
import { responsiveArray as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { scrollIntoView as
|
|
51
|
-
import { removeDarkTheme as
|
|
52
|
-
import { setPrimaryColor as
|
|
53
|
-
import { setTheme as
|
|
54
|
-
import { fixedWidth as
|
|
55
|
-
import { throttleByRaf as
|
|
56
|
-
import { toArray as
|
|
57
|
-
import { findNodeBy as
|
|
58
|
-
import { Tween as
|
|
59
|
-
import { default as
|
|
60
|
-
import { v4 as
|
|
61
|
-
import { Schema as
|
|
62
|
-
import { d as
|
|
63
|
-
import { warning as
|
|
18
|
+
import { default as te } from "lodash/camelCase";
|
|
19
|
+
import { default as oe } from "lodash/capitalize";
|
|
20
|
+
import { default as se } from "lodash/cloneDeep";
|
|
21
|
+
import { default as me } from "lodash/debounce";
|
|
22
|
+
import { default as le } from "lodash/get";
|
|
23
|
+
import { default as de } from "lodash/has";
|
|
24
|
+
import { default as xe } from "lodash/kebabCase";
|
|
25
|
+
import { default as ce } from "lodash/merge";
|
|
26
|
+
import { default as ge } from "lodash/mergeWith";
|
|
27
|
+
import { default as Re } from "lodash/set";
|
|
28
|
+
import { default as he } from "lodash/setWith";
|
|
29
|
+
import { default as Ee } from "lodash/snakeCase";
|
|
30
|
+
import { default as Ne } from "lodash/startCase";
|
|
31
|
+
import { default as Pe } from "lodash/uniq";
|
|
32
|
+
import { default as Ie } from "lodash/upperFirst";
|
|
33
|
+
import { div as Oe, default as ke, minus as ve, plus as Be, times as Ve } from "@unicom-cloud/utils/math";
|
|
34
|
+
import { mergedToString as Fe } from "../components/common/utils/mergedToString.js";
|
|
35
|
+
import { mergeProps as Le } from "../components/common/utils/mergeProps.js";
|
|
36
|
+
import { COMPONENT_NAMES as _e } from "./names.js";
|
|
37
|
+
import { omit as He } from "../components/common/utils/omit.js";
|
|
38
|
+
import { padEnd as qe, padStart as Ge } from "../components/common/utils/pad.js";
|
|
39
|
+
import { pick as Je, pickDataAttributes as Ye } from "../components/common/utils/pick.js";
|
|
40
|
+
import { PqbCSSTransition as Xe } from "../components/common/utils/PqbCSSTransition.js";
|
|
41
|
+
import { callbackOriginRef as $e, findDOMNode_ as et } from "../components/common/utils/reactDOM.js";
|
|
42
|
+
import { default as rt } from "../dist/react-transition-group/src/CSSTransition.js";
|
|
43
|
+
import { default as at } from "../dist/react-transition-group/src/ReplaceTransition.js";
|
|
44
|
+
import { default as it } from "../dist/react-transition-group/src/SwitchTransition.js";
|
|
45
|
+
import { T as ft } from "../dist/react-transition-group/chunk/CPfP7aNL.js";
|
|
46
|
+
import { default as pt, default as dt } from "../dist/react-transition-group/src/TransitionGroup.js";
|
|
47
|
+
import { responsiveArray as xt, responsiveMap as ut, responsiveObserve as ct } from "./responsiveObserve.js";
|
|
48
|
+
import { default as gt } from "@unicom-cloud/utils/file/saveAs";
|
|
49
|
+
import { default as Rt } from "@unicom-cloud/utils/screenfull";
|
|
50
|
+
import { scrollIntoView as ht } from "../components/common/utils/scrollIntoViewIfNeeded.js";
|
|
51
|
+
import { removeDarkTheme as Et, setDarkTheme as bt } from "./setDarkTheme.js";
|
|
52
|
+
import { setPrimaryColor as At } from "./setPrimaryColor.js";
|
|
53
|
+
import { setTheme as Dt } from "./setTheme.js";
|
|
54
|
+
import { fixedWidth as Mt, getStyle as Ot, setTransformStyle as kt } from "../components/common/utils/style.js";
|
|
55
|
+
import { throttleByRaf as Bt } from "../components/common/utils/throttleByRaf.js";
|
|
56
|
+
import { toArray as wt } from "../components/common/utils/toArray.js";
|
|
57
|
+
import { findNodeBy as jt, getChildWithParentBy as Lt, getItemBy as Wt, getItemBy2 as _t, getItemBy3 as zt, getItemByID as Ht, getLabelFromDictionaryByValue as Ut, searchTree as qt, default as Gt } from "@unicom-cloud/utils/tree";
|
|
58
|
+
import { Tween as Jt } from "../dist/tween/src/tween.js";
|
|
59
|
+
import { default as Qt } from "../dist/tween/src/easing.js";
|
|
60
|
+
import { v4 as Zt, v4 as $t } from "uuid";
|
|
61
|
+
import { Schema as tr, default as rr } from "../dist/validate/src/index.js";
|
|
62
|
+
import { d as ar } from "../dist/validate/chunk/BXTR2LmP.js";
|
|
63
|
+
import { warning as ir } from "../components/common/utils/warning.js";
|
|
64
64
|
import * as r from "@unicom-cloud/utils/constant/keyboardCode";
|
|
65
|
-
import { NOOP as
|
|
66
|
-
import { UI_PC_KEY as
|
|
67
|
-
import { isArguments as
|
|
68
|
-
import { isClassComponent as
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import { default as
|
|
65
|
+
import { NOOP as fr } from "../components/common/utils/constant.js";
|
|
66
|
+
import { UI_PC_KEY as pr, UI_PC_THEME_DARK_CLASS_NAME as dr } from "@unicom-cloud/utils/constant/ui";
|
|
67
|
+
import { isArguments as xr, isArray as ur, isArrayBuffer as cr, isArrayLike as yr, isArrayLikeObject as gr, isBlob as Sr, isBoolean as Rr, isBuffer as Cr, isColor as hr, isColor2 as Tr, isDate as Er, isElement as br, isEmpty as Nr, isEmptyArray as Ar, isEmptyObject as Pr, isEmptyValue as Dr, isEqual as Ir, isEqualWith as Mr, isError as Or, isFile as kr, isFinite as vr, isFunction as Br, isInteger as Vr, isJSON as wr, isLength as Fr, isMap as jr, isMatch as Lr, isMatchWith as Wr, isNaN as _r, isNative as zr, isNil as Hr, isNull as Ur, isNumber as qr, isObject as Gr, isObjectLike as Kr, isPlainObject as Jr, isPromise as Yr, isReadableByteStreamControllerSupported as Qr, isReadableStream as Xr, isReadableStreamDefaultControllerSupported as Zr, isReadableStreamSupported as $r, isReadableStreamSymbolAsyncIteratorSupported as eo, isRegExp as to, isSafeInteger as ro, isSet as oo, isString as ao, isSymbol as so, isTypedArray as io, isUndefined as mo, isValidColor as fo, isWeakMap as lo, isWeakSet as po } from "@unicom-cloud/utils/is";
|
|
68
|
+
import { isClassComponent as xo, isDOMElement as uo, isEmptyReactNode as co, isExist as yo, isForwardRefReact as go, isNullOrUndefined as So, isReact18 as Ro, isReact19 as Co, isReactComponent as ho, isSupportRef as To, isWindow as Eo, supportRef as bo } from "../components/common/utils/is.js";
|
|
69
|
+
import { isDayjs as Ao } from "dayjs";
|
|
70
|
+
import { isContextConsumer as Do, isContextProvider as Io, isElement as Mo, isForwardRef as Oo, isFragment as ko, isLazy as vo, isMemo as Bo, isPortal as Vo, isProfiler as wo, isStrictMode as Fo, isSuspense as jo, isValidElementType as Lo } from "react-is";
|
|
71
|
+
import { compute as _o } from "../dist/scroll-into-view-if-needed/compute/index.js";
|
|
72
|
+
import { default as Ho } from "../dist/scroll-into-view-if-needed/src/index.js";
|
|
73
|
+
import { default as qo, default as Go } from "../dist/scroll-into-view-if-needed/smooth/index.js";
|
|
73
74
|
export {
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
_e as COMPONENT_NAMES,
|
|
76
|
+
rt as CSSTransition,
|
|
76
77
|
x as ContextHolderElement,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
78
|
+
ar as DefaultValidateMessage,
|
|
79
|
+
fr as NOOP,
|
|
80
|
+
Xe as PqbCSSTransition,
|
|
81
|
+
at as ReplaceTransition,
|
|
82
|
+
tr as Schema,
|
|
83
|
+
it as SwitchTransition,
|
|
84
|
+
ft as Transition,
|
|
85
|
+
pt as TransitionGroup,
|
|
86
|
+
Jt as Tween,
|
|
87
|
+
pr as UI_PC_KEY,
|
|
88
|
+
dr as UI_PC_THEME_DARK_CLASS_NAME,
|
|
89
|
+
$e as callbackOriginRef,
|
|
90
|
+
te as camelCase,
|
|
91
|
+
oe as capitalize,
|
|
91
92
|
i as caseName,
|
|
92
93
|
f as className,
|
|
93
94
|
c as clipboardCopy,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
se as cloneDeep,
|
|
96
|
+
_o as compute,
|
|
97
|
+
B as contains,
|
|
97
98
|
y as copy,
|
|
98
99
|
S as dayjs,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
q as
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
100
|
+
me as debounce,
|
|
101
|
+
Oe as div,
|
|
102
|
+
Qt as easing,
|
|
103
|
+
_ as fileToURL,
|
|
104
|
+
H as fillNBSP,
|
|
105
|
+
et as findDOMNode_,
|
|
106
|
+
jt as findNodeBy,
|
|
107
|
+
Mt as fixedWidth,
|
|
108
|
+
R as formatValue,
|
|
109
|
+
le as get,
|
|
110
|
+
Lt as getChildWithParentBy,
|
|
111
|
+
C as getDayjsValue,
|
|
112
|
+
q as getHighlightText,
|
|
113
|
+
K as getHotkeyHandler,
|
|
114
|
+
Wt as getItemBy,
|
|
115
|
+
_t as getItemBy2,
|
|
116
|
+
zt as getItemBy3,
|
|
117
|
+
Ht as getItemByID,
|
|
118
|
+
Ut as getLabelFromDictionaryByValue,
|
|
119
|
+
h as getNow,
|
|
120
|
+
T as getRealTime,
|
|
121
|
+
V as getScrollElements,
|
|
122
|
+
E as getSortedDayjsArray,
|
|
123
|
+
Y as getStringLength,
|
|
124
|
+
Ot as getStyle,
|
|
125
|
+
b as getTimeFormat,
|
|
126
|
+
N as getValueWithTime,
|
|
127
|
+
de as has,
|
|
128
|
+
X as include,
|
|
126
129
|
t as is,
|
|
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
|
-
Mo as
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
vo as isReactMemo,
|
|
185
|
-
Bo as isReactPortal,
|
|
130
|
+
xr as isArguments,
|
|
131
|
+
ur as isArray,
|
|
132
|
+
cr as isArrayBuffer,
|
|
133
|
+
yr as isArrayLike,
|
|
134
|
+
gr as isArrayLikeObject,
|
|
135
|
+
Sr as isBlob,
|
|
136
|
+
Rr as isBoolean,
|
|
137
|
+
Cr as isBuffer,
|
|
138
|
+
xo as isClassComponent,
|
|
139
|
+
hr as isColor,
|
|
140
|
+
Tr as isColor2,
|
|
141
|
+
uo as isDOMElement,
|
|
142
|
+
Er as isDate,
|
|
143
|
+
Ao as isDayjs,
|
|
144
|
+
A as isDayjsArrayChange,
|
|
145
|
+
P as isDayjsChange,
|
|
146
|
+
br as isElement,
|
|
147
|
+
Nr as isEmpty,
|
|
148
|
+
Ar as isEmptyArray,
|
|
149
|
+
Pr as isEmptyObject,
|
|
150
|
+
co as isEmptyReactNode,
|
|
151
|
+
Dr as isEmptyValue,
|
|
152
|
+
Ir as isEqual,
|
|
153
|
+
Mr as isEqualWith,
|
|
154
|
+
Or as isError,
|
|
155
|
+
yo as isExist,
|
|
156
|
+
kr as isFile,
|
|
157
|
+
vr as isFinite,
|
|
158
|
+
go as isForwardRefReact,
|
|
159
|
+
Br as isFunction,
|
|
160
|
+
Vr as isInteger,
|
|
161
|
+
wr as isJSON,
|
|
162
|
+
Fr as isLength,
|
|
163
|
+
jr as isMap,
|
|
164
|
+
Lr as isMatch,
|
|
165
|
+
Wr as isMatchWith,
|
|
166
|
+
_r as isNaN,
|
|
167
|
+
zr as isNative,
|
|
168
|
+
Hr as isNil,
|
|
169
|
+
Ur as isNull,
|
|
170
|
+
So as isNullOrUndefined,
|
|
171
|
+
qr as isNumber,
|
|
172
|
+
Gr as isObject,
|
|
173
|
+
Kr as isObjectLike,
|
|
174
|
+
Jr as isPlainObject,
|
|
175
|
+
Yr as isPromise,
|
|
176
|
+
Ro as isReact18,
|
|
177
|
+
Co as isReact19,
|
|
178
|
+
ho as isReactComponent,
|
|
179
|
+
Do as isReactContextConsumer,
|
|
180
|
+
Io as isReactContextProvider,
|
|
181
|
+
Mo as isReactElement,
|
|
182
|
+
Oo as isReactForwardRef,
|
|
183
|
+
ko as isReactFragment,
|
|
184
|
+
vo as isReactLazy,
|
|
185
|
+
Bo as isReactMemo,
|
|
186
|
+
Vo as isReactPortal,
|
|
186
187
|
wo as isReactProfiler,
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
188
|
+
Fo as isReactStrictMode,
|
|
189
|
+
jo as isReactSuspense,
|
|
190
|
+
Lo as isReactValidElementType,
|
|
191
|
+
Qr as isReadableByteStreamControllerSupported,
|
|
192
|
+
Xr as isReadableStream,
|
|
193
|
+
Zr as isReadableStreamDefaultControllerSupported,
|
|
194
|
+
$r as isReadableStreamSupported,
|
|
195
|
+
eo as isReadableStreamSymbolAsyncIteratorSupported,
|
|
196
|
+
to as isRegExp,
|
|
197
|
+
ro as isSafeInteger,
|
|
198
|
+
w as isScrollElement,
|
|
199
|
+
F as isServerRendering,
|
|
200
|
+
oo as isSet,
|
|
201
|
+
ao as isString,
|
|
202
|
+
To as isSupportRef,
|
|
203
|
+
so as isSymbol,
|
|
204
|
+
io as isTypedArray,
|
|
205
|
+
mo as isUndefined,
|
|
206
|
+
fo as isValidColor,
|
|
207
|
+
D as isValidTimeString,
|
|
208
|
+
lo as isWeakMap,
|
|
209
|
+
po as isWeakSet,
|
|
210
|
+
Eo as isWindow,
|
|
211
|
+
xe as kebabCase,
|
|
211
212
|
r as keyboardCode,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
ke as math,
|
|
214
|
+
ce as merge,
|
|
215
|
+
Le as mergeProps,
|
|
216
|
+
ge as mergeWith,
|
|
217
|
+
Fe as mergedToString,
|
|
218
|
+
I as methods,
|
|
219
|
+
ve as minus,
|
|
219
220
|
p as newArray,
|
|
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
|
-
|
|
221
|
+
j as off,
|
|
222
|
+
He as omit,
|
|
223
|
+
L as on,
|
|
224
|
+
qe as padEnd,
|
|
225
|
+
Ge as padStart,
|
|
226
|
+
Je as pick,
|
|
227
|
+
Ye as pickDataAttributes,
|
|
228
|
+
d as pickTriggerPropsFromRest,
|
|
229
|
+
Be as plus,
|
|
230
|
+
dt as reactTransitionGroup,
|
|
231
|
+
Et as removeDarkTheme,
|
|
232
|
+
xt as responsiveArray,
|
|
233
|
+
ut as responsiveMap,
|
|
234
|
+
ct as responsiveObserve,
|
|
235
|
+
gt as saveAs,
|
|
236
|
+
Rt as screenfull,
|
|
237
|
+
ht as scrollIntoView,
|
|
238
|
+
Ho as scrollIntoViewIfNeeded,
|
|
239
|
+
qo as scrollIntoViewIfNeededSmooth,
|
|
240
|
+
qt as searchTree,
|
|
241
|
+
Re as set,
|
|
242
|
+
bt as setDarkTheme,
|
|
243
|
+
At as setPrimaryColor,
|
|
244
|
+
Dt as setTheme,
|
|
245
|
+
kt as setTransformStyle,
|
|
246
|
+
he as setWith,
|
|
247
|
+
Go as smoothScrollIntoViewIfNeeded,
|
|
248
|
+
Ee as snakeCase,
|
|
249
|
+
Ne as startCase,
|
|
250
|
+
bo as supportRef,
|
|
251
|
+
$ as throttle,
|
|
252
|
+
Bt as throttleByRaf,
|
|
253
|
+
Ve as times,
|
|
254
|
+
M as timezoneToOffset,
|
|
255
|
+
wt as toArray,
|
|
256
|
+
O as toLocal,
|
|
257
|
+
k as toTimezone,
|
|
258
|
+
Gt as tree,
|
|
259
|
+
Pe as uniq,
|
|
260
|
+
Ie as upperFirst,
|
|
261
|
+
Zt as uuid,
|
|
262
|
+
$t as uuidv4,
|
|
263
|
+
rr as validate,
|
|
264
|
+
ir as warning
|
|
264
265
|
};
|