@unicom-cloud/ui 0.8.113 → 0.8.115
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 +1 -1
- package/BackTop.js +3 -3
- package/Badge.js +2 -2
- package/Breadcrumb.js +2 -2
- 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/ColorPicker.js +1 -1
- package/Comment.js +1 -1
- package/ConfigProvider.js +1 -1
- package/Copy.js +1 -1
- package/Countdown.js +4 -4
- package/DatePicker.js +1 -1
- package/Descriptions.js +1 -1
- package/Details.js +4 -4
- package/Development.js +1 -1
- package/Divider.js +1 -1
- package/Draggable.js +1 -1
- package/Dropdown.js +2 -2
- package/Empty.js +1 -1
- package/Flex.js +4 -4
- package/Form.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/LiquidFill.js +4 -4
- package/List.js +6 -5
- package/Loading.js +4 -4
- package/Marquee.js +7 -6
- package/Mentions.js +1 -1
- package/Menu.js +1 -1
- package/Message.js +2 -2
- package/Modal.js +1 -1
- package/Notice.js +4 -4
- package/Notification.js +2 -2
- package/OverflowEllipsis.js +1 -1
- package/PageHeader.js +1 -1
- package/Pagination.js +4 -2
- package/Popconfirm.js +1 -1
- package/Popover.js +1 -1
- package/Progress.js +1 -1
- package/QrCode.js +7 -7
- package/Radio.js +1 -1
- package/Rate.js +1 -1
- package/ResizeBox.js +2 -2
- package/Result.js +1 -1
- package/RichText.js +1 -1
- package/Segmented.js +4 -4
- package/Skeleton.js +1 -1
- package/Slider.js +2 -2
- package/Space.js +4 -4
- package/Spin.js +1 -1
- package/Statistic.js +1 -1
- package/Steps.js +1 -1
- package/Switch.js +2 -2
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +1 -1
- package/Tooltip.js +1 -1
- package/Tour.js +4 -4
- package/Transfer.js +1 -1
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +3 -3
- package/affix/index.js +2 -2
- package/alert/index.js +2 -2
- package/anchor/Anchor.js +2 -2
- package/anchor/Link.js +1 -1
- package/app/App.js +2 -2
- package/auto-complete/index.js +1 -1
- package/avatar/Avatar.js +1 -1
- package/avatar/Group.js +1 -1
- package/back-top/index.js +3 -3
- package/badge/Count.js +1 -1
- package/badge/index.js +2 -2
- package/breadcrumb/index.js +2 -2
- 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 +2 -2
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +2 -2
- package/checkbox/Group.js +2 -2
- package/checkbox/GroupBlock.js +2 -2
- package/checkbox/index.js +2 -2
- package/chunk/{C6A94b7f.js → BcWPf1id.js} +1 -1
- package/chunk/BcdTSJks.js +48 -0
- package/chunk/{RjJoagzL.js → CEAeR6xB.js} +1 -1
- package/chunk/{yWKJUe_w.js → CKojyqln.js} +4 -4
- package/chunk/{DrYaod6k.js → CRgtPpMG.js} +1 -1
- package/chunk/{3t4FwEoB.js → CVjWKHBo.js} +1 -1
- package/chunk/{DB0hUIM1.js → CYPFoLks.js} +4 -4
- package/chunk/{D0dVE1v1.js → CcH9qbbg.js} +418 -416
- package/chunk/{Bzx5BueA.js → Ch4iApRQ.js} +2 -2
- package/chunk/{CbXCgtzv.js → Cs9GrNJa.js} +5 -5
- package/chunk/CxbF1opI.js +231 -0
- package/chunk/{CRdegvoa.js → D3F0iWPu.js} +1 -1
- package/chunk/{DzlfiVe2.js → D6I1_o6O.js} +1 -1
- package/chunk/{DA5AMZwY.js → DPDyV8yt.js} +3 -3
- package/chunk/{B--6x-RL.js → DQ8_XXrH.js} +1 -1
- package/chunk/{hc_ufgVf.js → DmHIX8hU.js} +166 -121
- package/chunk/{CYDaUML7.js → DstheLSK.js} +4 -4
- package/chunk/{BHAu6wbC.js → HFPyZ48d.js} +37 -35
- package/chunk/{Bcl7dWlJ.js → efH9HX0H.js} +3 -3
- package/chunk/exc7v_Hl.js +53 -0
- package/collapse/Collapse.js +2 -2
- package/collapse/Item.js +2 -2
- package/color-picker/ControlBar.js +1 -1
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +1 -1
- package/color-picker/InputRgb.js +1 -1
- package/color-picker/Palette.js +1 -1
- package/color-picker/Panel.js +2 -2
- package/color-picker/index.js +1 -1
- package/comment/index.js +1 -1
- package/config-provider/ConfigProvider.js +1 -1
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +1 -1
- package/countdown/index.js +4 -4
- package/date-picker/Picker.js +1 -1
- package/date-picker/RangePicker.js +2 -2
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +1 -1
- package/details/index.js +4 -4
- package/development/index.js +1 -1
- package/divider/index.js +1 -1
- package/draggable/index.js +1 -1
- package/drawer/Drawer.js +89 -93
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +2 -2
- package/empty/index.js +1 -1
- package/flex/index.js +4 -4
- package/form/Control.js +115 -103
- package/form/Form.js +2 -2
- package/form/FormItem.js +2 -2
- package/form/index.js +1 -1
- package/form/promisify.js +10 -19
- package/form/store.js +3 -3
- package/form/util.js +62 -52
- package/grid/Grid.js +1 -1
- package/grid/Item.js +1 -1
- package/hooks/index.js +3 -3
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useWatermark.js +1 -1
- package/icon/addFromIconFontCn.js +1 -1
- package/icon/index.js +2 -2
- package/icon-hover/index.js +1 -1
- package/icons/file.js +1 -1
- package/image/Image.js +3 -3
- package/image/ImagePreview.js +6 -6
- package/image/ImagePreviewArrow.js +1 -1
- package/image/ImagePreviewGroup.js +1 -1
- package/image/index.js +1 -1
- package/index.js +739 -726
- package/input/Button.js +1 -1
- package/input/Group.js +1 -1
- package/input/Input.js +2 -2
- package/input/InputElement.js +1 -1
- package/input/Password.js +1 -1
- package/input/Search.js +1 -1
- package/input/Textarea.js +1 -1
- package/input/autoSizeTextAreaHeight.js +29 -20
- package/input-number/index.js +1 -1
- package/input-tag/InputTag.js +2 -2
- package/layout/Content.js +1 -1
- package/layout/Footer.js +1 -1
- package/layout/Header.js +1 -1
- package/layout/Sider.js +1 -1
- package/layout/index.js +1 -1
- package/link/index.js +1 -1
- package/liquid-fill/index.js +4 -4
- package/list/Item.js +1 -1
- package/list/Meta.js +1 -1
- package/list/index.js +2 -1
- package/loading/index.js +4 -4
- package/locale/en-US.js +5 -3
- package/locale/tr-TR.js +5 -3
- package/marquee/index.js +7 -6
- package/marquee-/index.js +7 -6
- package/mentions/index.js +1 -1
- package/menu/Menu.js +2 -2
- package/menu/OverflowWrap.js +1 -1
- package/menu/index.js +2 -2
- package/message/index.js +2 -2
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +5 -5
- package/modal/index.js +2 -2
- package/notice/index.js +4 -4
- package/notification/index.js +2 -2
- 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 +103 -31
- package/pagination/Pagination.js +38 -35
- package/pagination/index.js +2 -0
- package/picker/Input.js +1 -1
- package/picker/InputRange.js +1 -1
- package/popconfirm/index.js +1 -1
- package/popover/index.js +1 -1
- package/progress/index.js +1 -1
- package/qr-code/index.js +1233 -45
- package/radio/Group.js +2 -2
- package/radio/GroupBlock.js +2 -2
- package/radio/Radio.js +2 -2
- package/radio/index.js +2 -2
- package/rate/index.js +1 -1
- package/resize-box/ResizeTrigger.js +1 -1
- package/resize-box/Split.js +2 -2
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +2 -2
- package/result/index.js +1 -1
- package/rich-text/index.js +1 -1
- package/row-col/Col-.js +1 -1
- package/row-col/Col.js +1 -1
- package/row-col/Row.js +1 -1
- package/segmented/index.js +21 -21
- package/select/Option.js +1 -1
- package/select/Select.js +2 -2
- package/select-view/Core.js +1 -1
- package/skeleton/index.js +1 -1
- package/slider/Button.js +2 -2
- package/slider/index.js +2 -2
- package/space/index.js +4 -4
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +1 -1
- package/splitter/Panel.js +1 -1
- package/splitter/SplitBar.js +2 -2
- package/splitter/Splitter.js +2 -2
- package/statistic/index.js +1 -1
- package/steps/index.js +1 -1
- package/style.css +1 -1
- package/switch/index.js +2 -2
- package/table/Table.js +5 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +2 -2
- 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 +1 -1
- package/tour/index.js +4 -4
- package/transfer/Item.js +2 -2
- package/transfer/List.js +2 -2
- package/transfer/index.js +1 -1
- package/tree/Animation.js +3 -3
- package/tree/Node.js +3 -3
- package/tree/NodeList.js +1 -1
- package/tree/Tree.js +2 -2
- package/tree/index.js +1 -1
- package/tree-select/Select.js +2 -2
- package/tree-select/index.js +1 -1
- package/trigger/getPopupStyle.js +1 -1
- package/trigger/index.js +145 -145
- package/types/common/hooks/useWindowSize.d.ts +4 -4
- package/types/common/utils/dom.d.ts +1 -1
- package/types/common/utils/lodash.d.ts +2 -1
- package/types/common/utils/reactDOM.d.ts +10 -1
- package/types/common/utils/validate.d.ts +2 -0
- package/types/pc/form/interface.d.ts +6 -1
- package/types/pc/form/promisify.d.ts +5 -0
- package/types/pc/form/store.d.ts +1 -1
- package/types/pc/form/util.d.ts +1 -1
- package/types/pc/input/autoSizeTextAreaHeight.d.ts +4 -2
- package/types/pc/pagination/PageOption.d.ts +3 -0
- package/types/pc/pagination/index.d.ts +2 -0
- package/types/pc/pagination/interface.d.ts +5 -0
- package/types/pc/qr-code/examples/demo.d.ts +1 -0
- package/types/pc/qr-code/examples/download.d.ts +2 -0
- package/types/pc/qr-code/examples/full.d.ts +2 -0
- package/types/pc/qr-code/examples/image.d.ts +2 -0
- package/types/pc/qr-code/index.d.ts +2 -0
- package/types/pc/qr-code/src/index.d.ts +116 -0
- package/types/pc/qr-code/src/qrcodegen.d.ts +95 -0
- package/types/pc/qr-code/src/qrcodegen2.d.ts +325 -0
- package/types/pc/utils/validate.d.ts +1 -1
- package/typography/Base.js +1 -1
- package/typography/Ellipsis.js +2 -2
- package/typography/Paragraph.js +1 -1
- package/typography/Typography.js +1 -1
- package/upload/TriggerNode.js +1 -1
- package/upload/Upload.js +2 -2
- package/upload/Uploader.js +1 -1
- package/upload/request_.js +1972 -41
- package/utils/PqbCSSTransition.js +1 -1
- package/utils/contextHolder.js +1 -1
- package/utils/dom.js +1 -1
- package/utils/index.js +247 -235
- package/utils/lodash.js +33 -32
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/validate.js +15 -5
- package/verification-code/VerificationCode.js +1 -1
- package/version/index.js +1 -1
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +1 -1
- package/chunk/CXrVhA6-.js +0 -54
- package/chunk/De8RLlOK.js +0 -231
- package/chunk/d1c9z8T1.js +0 -49
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as $, jsx as v } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as j, useState as i, useLayoutEffect as k, useRef as b, useEffect as E } from "react";
|
|
3
|
-
import { a as I } from "../chunk/
|
|
3
|
+
import { a as I } from "../chunk/DstheLSK.js";
|
|
4
4
|
import z from "@unicom-cloud/utils/class-name";
|
|
5
5
|
import { r as M } from "../chunk/CHQ8c547.js";
|
|
6
6
|
import C from "./OverflowItem.js";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@unicom-cloud/ui","version":"0.8.
|
|
1
|
+
{"name":"@unicom-cloud/ui","version":"0.8.115","dependencies":{"@unicom-cloud/icons":"latest"},"peerDependencies":{"dayjs":"^1.11.18","lodash":"^4.17.21","react":"^19.1.1","react-dom":"^19.1.1"},"peerDependenciesMeta":{},"type":"module","types":"types/pc/index.d.ts","main":"./index.js","publishConfig":{"registry":"https://registry.npmjs.org/","access":"public"}}
|
package/page-header/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import D from "@unicom-cloud/icons/IconUiRight";
|
|
|
4
4
|
import f from "lodash/isArray";
|
|
5
5
|
import K, { useContext as M, useState as U, useRef as A, useImperativeHandle as F, useEffect as L } from "react";
|
|
6
6
|
import O from "../breadcrumb/index.js";
|
|
7
|
-
import { a as S, I as q } from "../chunk/
|
|
7
|
+
import { a as S, I as q } from "../chunk/DstheLSK.js";
|
|
8
8
|
import { u as G } from "../chunk/Bvxzb1wd.js";
|
|
9
9
|
import { u as J } from "../chunk/FgWHhRFz.js";
|
|
10
10
|
import t from "@unicom-cloud/utils/class-name";
|
package/pagination/PageItem.js
CHANGED
|
@@ -3,7 +3,7 @@ import M from "@unicom-cloud/icons/IconUiLeft";
|
|
|
3
3
|
import R from "@unicom-cloud/icons/IconUiMore";
|
|
4
4
|
import j from "@unicom-cloud/icons/IconUiRight";
|
|
5
5
|
import K, { useContext as h } from "react";
|
|
6
|
-
import { a as S } from "../chunk/
|
|
6
|
+
import { a as S } from "../chunk/DstheLSK.js";
|
|
7
7
|
import { u as N } from "../chunk/Bvxzb1wd.js";
|
|
8
8
|
import $ from "@unicom-cloud/utils/class-name";
|
|
9
9
|
import { StepType as b } from "./interface.js";
|
package/pagination/PageJumper.js
CHANGED
|
@@ -3,7 +3,7 @@ import j from "lodash/isFunction";
|
|
|
3
3
|
import F from "lodash/isPlainObject";
|
|
4
4
|
import h from "lodash/isUndefined";
|
|
5
5
|
import { useContext as I, useState as J, useRef as R, useEffect as T } from "react";
|
|
6
|
-
import { a as w } from "../chunk/
|
|
6
|
+
import { a as w } from "../chunk/DstheLSK.js";
|
|
7
7
|
import E from "../input/Input.js";
|
|
8
8
|
function q(n) {
|
|
9
9
|
const x = n.simple ? n.current : void 0, { locale: u } = I(w), [e, l] = J(x), c = R(void 0);
|
package/pagination/PageOption.js
CHANGED
|
@@ -1,42 +1,114 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { a as x } from "../chunk/
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import S, { useRef as h, useContext as b } from "react";
|
|
3
|
+
import { a as x } from "../chunk/DstheLSK.js";
|
|
4
|
+
import u from "../select/Select.js";
|
|
5
|
+
import "@unicom-cloud/utils/case-name";
|
|
6
|
+
import "@unicom-cloud/utils/class-name";
|
|
7
|
+
import "@unicom-cloud/utils/constant/ui";
|
|
8
|
+
import "@unicom-cloud/utils/clipboard-copy";
|
|
9
|
+
import "@unicom-cloud/utils/date";
|
|
10
|
+
import "../chunk/DS_deHpN.js";
|
|
11
|
+
import "../chunk/BcdTSJks.js";
|
|
12
|
+
import "@unicom-cloud/utils/emitter";
|
|
13
|
+
import "@unicom-cloud/utils/file/fileToURL";
|
|
14
|
+
import "lodash/escapeRegExp";
|
|
15
|
+
import "lodash/isArray";
|
|
16
|
+
import "lodash/isNumber";
|
|
17
|
+
import "lodash/isString";
|
|
18
|
+
import "lodash/isFunction";
|
|
19
|
+
import "lodash/throttle";
|
|
20
|
+
import "../chunk/DsaQZE4X.js";
|
|
21
|
+
import "lodash/camelCase";
|
|
22
|
+
import "lodash/capitalize";
|
|
23
|
+
import "lodash/cloneDeep";
|
|
24
|
+
import "lodash/debounce";
|
|
25
|
+
import "lodash/defaultsDeep";
|
|
26
|
+
import "lodash/get";
|
|
27
|
+
import "lodash/has";
|
|
28
|
+
import "lodash/kebabCase";
|
|
29
|
+
import "lodash/merge";
|
|
30
|
+
import "lodash/mergeWith";
|
|
31
|
+
import "lodash/set";
|
|
32
|
+
import "lodash/setWith";
|
|
33
|
+
import "lodash/snakeCase";
|
|
34
|
+
import "lodash/startCase";
|
|
35
|
+
import "lodash/uniq";
|
|
36
|
+
import "lodash/upperFirst";
|
|
37
|
+
import "@unicom-cloud/utils/math";
|
|
38
|
+
import "lodash/isPlainObject";
|
|
39
|
+
import "@unicom-cloud/utils/pinyin";
|
|
40
|
+
import "../chunk/BJ9_azwQ.js";
|
|
41
|
+
import "../chunk/exc7v_Hl.js";
|
|
42
|
+
import "../utils/responsiveObserve.js";
|
|
43
|
+
import "@unicom-cloud/utils/file/saveAs";
|
|
44
|
+
import "@unicom-cloud/utils/screenfull";
|
|
45
|
+
import "@unicom-cloud/utils/tinycolor";
|
|
46
|
+
import "@unicom-cloud/utils/ui-color";
|
|
47
|
+
import "@unicom-cloud/utils/constant/ui.js";
|
|
48
|
+
import "react-is";
|
|
49
|
+
import "@unicom-cloud/utils/tree";
|
|
50
|
+
import { isBoolean as z, isNumber as v } from "@unicom-cloud/utils/is";
|
|
51
|
+
import "uuid";
|
|
52
|
+
import "../chunk/DmHIX8hU.js";
|
|
53
|
+
import "@unicom-cloud/utils/constant/keyboardCode";
|
|
54
|
+
const w = [10, 20, 30, 40, 50];
|
|
55
|
+
function I(f) {
|
|
56
|
+
const c = () => {
|
|
57
|
+
}, a = h(null), { locale: n } = b(x), {
|
|
58
|
+
onPageSizeChange: g = c,
|
|
59
|
+
rootPrefixCls: P,
|
|
60
|
+
sizeOptions: t = w,
|
|
61
|
+
pageSize: p = 10,
|
|
62
|
+
size: C,
|
|
63
|
+
selectProps: l,
|
|
64
|
+
disabled: d,
|
|
65
|
+
allowCreate: O
|
|
66
|
+
} = f;
|
|
67
|
+
let i = t[0], r = O ?? l.allowCreate;
|
|
68
|
+
r ? (z(r) && (r = {
|
|
69
|
+
formatter(o, N) {
|
|
70
|
+
let e = +o;
|
|
71
|
+
return v(e) || (e = t[0]), {
|
|
72
|
+
value: e,
|
|
73
|
+
label: s(e)
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}), i = p) : t.indexOf(p) === -1 || (i = p), i ??= t[0];
|
|
77
|
+
function s(o) {
|
|
78
|
+
return `${o} ${n?.Pagination?.countPerPage}`;
|
|
79
|
+
}
|
|
80
|
+
return /* @__PURE__ */ m(
|
|
17
81
|
"div",
|
|
18
82
|
{
|
|
19
|
-
ref:
|
|
20
|
-
className: `${
|
|
21
|
-
"aria-label":
|
|
22
|
-
children: /* @__PURE__ */
|
|
23
|
-
|
|
83
|
+
ref: a,
|
|
84
|
+
className: `${P}-option`,
|
|
85
|
+
"aria-label": n?.Pagination?.pageSize,
|
|
86
|
+
children: /* @__PURE__ */ m(
|
|
87
|
+
u,
|
|
24
88
|
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
89
|
+
defaultValue: t[0],
|
|
90
|
+
value: i,
|
|
91
|
+
size: C,
|
|
92
|
+
getPopupContainer: () => a.current,
|
|
93
|
+
disabled: d,
|
|
94
|
+
triggerProps: {
|
|
95
|
+
autoAlignPopupWidth: !1,
|
|
96
|
+
autoAlignPopupMinWidth: !0,
|
|
97
|
+
position: "bl"
|
|
98
|
+
},
|
|
99
|
+
onChange: (o) => {
|
|
100
|
+
g(o);
|
|
28
101
|
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
...m,
|
|
33
|
-
children: o.map((e) => /* @__PURE__ */ n(r.Option, { value: e, children: `${e} ${i?.Pagination?.countPerPage}` }, e))
|
|
102
|
+
...l,
|
|
103
|
+
allowCreate: r,
|
|
104
|
+
children: t.map((o) => /* @__PURE__ */ m(u.Option, { value: o, children: s(o) }, o))
|
|
34
105
|
}
|
|
35
106
|
)
|
|
36
107
|
}
|
|
37
108
|
);
|
|
38
109
|
}
|
|
39
|
-
const
|
|
110
|
+
const $o = S.memo(I);
|
|
40
111
|
export {
|
|
41
|
-
|
|
112
|
+
w as PAGE_SIZE_OPTIONS,
|
|
113
|
+
$o as default
|
|
42
114
|
};
|
package/pagination/Pagination.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsxs as O, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import D, { forwardRef as
|
|
3
|
-
import { a as
|
|
4
|
-
import { u as
|
|
2
|
+
import D, { forwardRef as Ne, useContext as $e, useEffect as W, createElement as P } from "react";
|
|
3
|
+
import { a as ve } from "../chunk/DstheLSK.js";
|
|
4
|
+
import { u as be } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import { u as q } from "../chunk/2vdCeheu.js";
|
|
6
|
-
import
|
|
7
|
-
import { a as
|
|
6
|
+
import Me from "@unicom-cloud/utils/class-name";
|
|
7
|
+
import { a as je } from "../chunk/ClqoGc3r.js";
|
|
8
8
|
import N, { StepPager as $, JumpPager as E } from "./PageItem.js";
|
|
9
9
|
import G from "./PageJumper.js";
|
|
10
|
-
import
|
|
10
|
+
import ke from "./PageOption.js";
|
|
11
11
|
import { StepType as m } from "./interface.js";
|
|
12
|
-
const
|
|
12
|
+
const Je = 1, K = 10;
|
|
13
13
|
function R(g = K, d) {
|
|
14
14
|
return Math.ceil(d / g);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function Ae(g, d) {
|
|
17
17
|
const v = Math.floor(d / 2) - 1, b = Math.max(g, 0);
|
|
18
18
|
return Math.min(b, v);
|
|
19
19
|
}
|
|
20
20
|
function H(g) {
|
|
21
21
|
return g && g.length ? g[0] : K;
|
|
22
22
|
}
|
|
23
|
-
const
|
|
23
|
+
const Oe = {
|
|
24
24
|
total: 0,
|
|
25
25
|
pageSizeChangeResetCurrent: !0,
|
|
26
26
|
bufferSize: 2
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function Ee(g, d) {
|
|
29
29
|
const {
|
|
30
30
|
getPrefixCls: F,
|
|
31
31
|
size: v,
|
|
32
32
|
locale: b,
|
|
33
33
|
componentConfig: Q,
|
|
34
34
|
rtl: U
|
|
35
|
-
} =
|
|
35
|
+
} = $e(ve), i = be(
|
|
36
36
|
g,
|
|
37
|
-
|
|
37
|
+
Oe,
|
|
38
38
|
Q?.Pagination
|
|
39
39
|
), {
|
|
40
40
|
className: X,
|
|
@@ -59,9 +59,11 @@ function Oe(g, d) {
|
|
|
59
59
|
pageSizeChangeResetCurrent: T,
|
|
60
60
|
defaultCurrent: ce,
|
|
61
61
|
defaultPageSize: pe,
|
|
62
|
-
showPageOption: ge
|
|
62
|
+
showPageOption: ge,
|
|
63
63
|
// 潘启宝添加
|
|
64
|
-
|
|
64
|
+
allowCreate: fe
|
|
65
|
+
// 潘启宝添加
|
|
66
|
+
} = i, me = C ? !1 : ge, [e, j] = q(Je, {
|
|
65
67
|
defaultValue: ce,
|
|
66
68
|
value: I
|
|
67
69
|
}), [f, V] = q(
|
|
@@ -70,11 +72,11 @@ function Oe(g, d) {
|
|
|
70
72
|
defaultValue: pe,
|
|
71
73
|
value: le
|
|
72
74
|
}
|
|
73
|
-
), h = ie,
|
|
75
|
+
), h = ie, he = !!ue;
|
|
74
76
|
I && !i.onChange && console.warn(
|
|
75
77
|
"Warning: you have provide current prop for pagination but without onChange handler , this will cause no-change when you change page. "
|
|
76
78
|
);
|
|
77
|
-
function
|
|
79
|
+
function Pe(t, l) {
|
|
78
80
|
const n = R(t, l);
|
|
79
81
|
return e > n ? n : e;
|
|
80
82
|
}
|
|
@@ -84,20 +86,20 @@ function Oe(g, d) {
|
|
|
84
86
|
"pageSize" in i || V(l);
|
|
85
87
|
}
|
|
86
88
|
}, [S]), W(() => {
|
|
87
|
-
const t =
|
|
89
|
+
const t = Pe(f, h);
|
|
88
90
|
t !== e && !("current" in i) && j(t);
|
|
89
91
|
}, [h, e, f]);
|
|
90
92
|
const B = (t = e, l = f) => {
|
|
91
93
|
const { onChange: n } = i;
|
|
92
94
|
n?.(t, l);
|
|
93
|
-
},
|
|
95
|
+
}, de = (t) => {
|
|
94
96
|
const { onPageSizeChange: l } = i, n = R(t, h), a = {
|
|
95
97
|
pageSize: t
|
|
96
98
|
};
|
|
97
99
|
T ? a.current = 1 : a.current = e > n ? n : e, "pageSize" in i || V(a.pageSize), !("current" in i) && e !== a.current && j(a.current), l?.(t, a.current), B(T ? 1 : a.current, t);
|
|
98
100
|
}, k = (t) => {
|
|
99
101
|
"current" in i || j(t), B(t);
|
|
100
|
-
},
|
|
102
|
+
}, Ce = i.size || v, o = F?.("pagination"), y = ne ? "mini" : Ce, ze = Me(
|
|
101
103
|
o,
|
|
102
104
|
`${o}-size-${y}`,
|
|
103
105
|
{
|
|
@@ -108,7 +110,7 @@ function Oe(g, d) {
|
|
|
108
110
|
X
|
|
109
111
|
);
|
|
110
112
|
let J;
|
|
111
|
-
const r = [], s = R(f, h), p =
|
|
113
|
+
const r = [], s = R(f, h), p = Ae(i.bufferSize, s);
|
|
112
114
|
if (se && s <= 1)
|
|
113
115
|
return null;
|
|
114
116
|
const u = {
|
|
@@ -156,7 +158,7 @@ function Oe(g, d) {
|
|
|
156
158
|
e > t && e < l ? (a = e + p, n = e - p) : e <= t ? (L = !1, n = 1, a = Math.max(t, p + e)) : e >= l && (_ = !1, a = s, n = Math.min(l, e - p));
|
|
157
159
|
for (let w = n; w <= a; w++)
|
|
158
160
|
r.push(/* @__PURE__ */ c(N, { pageNum: w, ...u }, w));
|
|
159
|
-
const
|
|
161
|
+
const Se = /* @__PURE__ */ P(
|
|
160
162
|
E,
|
|
161
163
|
{
|
|
162
164
|
...u,
|
|
@@ -164,7 +166,7 @@ function Oe(g, d) {
|
|
|
164
166
|
type: m.previous,
|
|
165
167
|
jumpPage: -(p * 2 + 1)
|
|
166
168
|
}
|
|
167
|
-
),
|
|
169
|
+
), xe = /* @__PURE__ */ P(
|
|
168
170
|
E,
|
|
169
171
|
{
|
|
170
172
|
...u,
|
|
@@ -172,20 +174,20 @@ function Oe(g, d) {
|
|
|
172
174
|
type: m.next,
|
|
173
175
|
jumpPage: p * 2 + 1
|
|
174
176
|
}
|
|
175
|
-
),
|
|
177
|
+
), ye = /* @__PURE__ */ c(N, { pageNum: 1, ...u }, 1), we = /* @__PURE__ */ P(N, { ...u, key: s, pageNum: s });
|
|
176
178
|
L && (r[0] = D.cloneElement(r[0], {
|
|
177
179
|
className: `${o}-item-after-pre`
|
|
178
|
-
}), r.unshift(
|
|
180
|
+
}), r.unshift(Se), r.unshift(ye)), _ && (r[r.length - 1] = D.cloneElement(
|
|
179
181
|
r[r.length - 1],
|
|
180
182
|
{
|
|
181
183
|
className: `${o}-item-before-next`
|
|
182
184
|
}
|
|
183
|
-
), r.push(
|
|
185
|
+
), r.push(xe), r.push(we));
|
|
184
186
|
}
|
|
185
187
|
J = /* @__PURE__ */ O("ul", { className: `${o}-list`, children: [
|
|
186
188
|
/* @__PURE__ */ P($, { ...u, key: "previous", type: m.previous }),
|
|
187
189
|
r,
|
|
188
|
-
|
|
190
|
+
he && /* @__PURE__ */ P(
|
|
189
191
|
E,
|
|
190
192
|
{
|
|
191
193
|
...u,
|
|
@@ -201,23 +203,24 @@ function Oe(g, d) {
|
|
|
201
203
|
return typeof x == "boolean" && x && (A = /* @__PURE__ */ c("div", { className: `${o}-total-text`, children: b?.Pagination?.total?.replace?.("{0}", h) })), typeof x == "function" && (A = /* @__PURE__ */ c("div", { className: `${o}-total-text`, children: x(h, [(e - 1) * f + 1, e * f]) })), /* @__PURE__ */ O(
|
|
202
204
|
"div",
|
|
203
205
|
{
|
|
204
|
-
...
|
|
205
|
-
className:
|
|
206
|
+
...je(i),
|
|
207
|
+
className: ze,
|
|
206
208
|
style: Y,
|
|
207
209
|
ref: d,
|
|
208
210
|
children: [
|
|
209
211
|
A,
|
|
210
212
|
J,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
+
me !== !1 && /* @__PURE__ */ c(
|
|
214
|
+
ke,
|
|
213
215
|
{
|
|
214
216
|
disabled: z,
|
|
215
217
|
rootPrefixCls: o,
|
|
216
218
|
sizeOptions: te,
|
|
217
|
-
onPageSizeChange:
|
|
219
|
+
onPageSizeChange: de,
|
|
218
220
|
pageSize: f,
|
|
219
221
|
size: y,
|
|
220
|
-
selectProps: oe
|
|
222
|
+
selectProps: oe,
|
|
223
|
+
allowCreate: fe
|
|
221
224
|
}
|
|
222
225
|
),
|
|
223
226
|
!C && M && /* @__PURE__ */ c(
|
|
@@ -235,8 +238,8 @@ function Oe(g, d) {
|
|
|
235
238
|
}
|
|
236
239
|
);
|
|
237
240
|
}
|
|
238
|
-
const
|
|
239
|
-
|
|
241
|
+
const Re = Ne(Ee);
|
|
242
|
+
Re.displayName = "Pagination";
|
|
240
243
|
export {
|
|
241
|
-
|
|
244
|
+
Re as default
|
|
242
245
|
};
|
package/pagination/index.js
CHANGED
package/picker/Input.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as p, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import J from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import Q from "lodash/isArray";
|
|
4
4
|
import { forwardRef as T, useContext as V, useRef as $, useState as X, useImperativeHandle as Y } from "react";
|
|
5
|
-
import { a as Z, I as _ } from "../chunk/
|
|
5
|
+
import { a as Z, I as _ } from "../chunk/DstheLSK.js";
|
|
6
6
|
import h from "@unicom-cloud/utils/class-name";
|
|
7
7
|
import { Enter as P } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
8
8
|
import { o as ee } from "../chunk/BKKEev13.js";
|
package/picker/InputRange.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as O, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import so from "@unicom-cloud/icons/IconUiClose";
|
|
3
3
|
import $ from "lodash/isArray";
|
|
4
4
|
import { forwardRef as co, useContext as ao, useRef as p, useState as lo, useImperativeHandle as io } from "react";
|
|
5
|
-
import { a as uo, I as fo } from "../chunk/
|
|
5
|
+
import { a as uo, I as fo } from "../chunk/DstheLSK.js";
|
|
6
6
|
import S from "@unicom-cloud/utils/class-name";
|
|
7
7
|
import { Enter as mo, Tab as ho } from "@unicom-cloud/utils/constant/keyboardCode";
|
|
8
8
|
import { o as Co } from "../chunk/BKKEev13.js";
|
package/popconfirm/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import x from "lodash/isFunction";
|
|
|
4
4
|
import J from "lodash/isNil";
|
|
5
5
|
import { forwardRef as K, useContext as Q, useState as X, useImperativeHandle as Y, useEffect as Z } from "react";
|
|
6
6
|
import b from "../button/index.js";
|
|
7
|
-
import { a as _ } from "../chunk/
|
|
7
|
+
import { a as _ } from "../chunk/DstheLSK.js";
|
|
8
8
|
import { u as oo } from "../chunk/FgWHhRFz.js";
|
|
9
9
|
import { u as eo } from "../chunk/2vdCeheu.js";
|
|
10
10
|
import no from "../tooltip/index.js";
|
package/popover/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as j, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import a from "lodash/isFunction";
|
|
3
3
|
import { forwardRef as O, useContext as R } from "react";
|
|
4
|
-
import { a as T } from "../chunk/
|
|
4
|
+
import { a as T } from "../chunk/DstheLSK.js";
|
|
5
5
|
import { u as w } from "../chunk/FgWHhRFz.js";
|
|
6
6
|
import F from "../tooltip/index.js";
|
|
7
7
|
import H from "@unicom-cloud/utils/class-name";
|
package/progress/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as w, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as y, useContext as $ } from "react";
|
|
3
|
-
import { a as k } from "../chunk/
|
|
3
|
+
import { a as k } from "../chunk/DstheLSK.js";
|
|
4
4
|
import { u as N } from "../chunk/FgWHhRFz.js";
|
|
5
5
|
import S from "@unicom-cloud/utils/class-name";
|
|
6
6
|
import { o as T } from "../chunk/BKKEev13.js";
|