@pinnacle0/web-ui 0.5.83 → 0.6.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/admin/AdminApp/Default/NavigatorSide/index.js +14 -50
- package/admin/AdminApp/Default/NavigatorSide/index.js.map +1 -1
- package/admin/AdminApp/Default/SoundSwitch.js +15 -34
- package/admin/AdminApp/Default/SoundSwitch.js.map +1 -1
- package/admin/AdminApp/Default/SquareLogo/index.js +8 -29
- package/admin/AdminApp/Default/SquareLogo/index.js.map +1 -1
- package/admin/AdminApp/Menu.js +40 -82
- package/admin/AdminApp/Menu.js.map +1 -1
- package/admin/AdminApp/Navigator.js +57 -83
- package/admin/AdminApp/Navigator.js.map +1 -1
- package/admin/AdminApp/NotFound.js +8 -30
- package/admin/AdminApp/NotFound.js.map +1 -1
- package/admin/AdminApp/RouteSwitch.js +21 -53
- package/admin/AdminApp/RouteSwitch.js.map +1 -1
- package/admin/AdminApp/WithErrorBoundary.js +13 -33
- package/admin/AdminApp/WithErrorBoundary.js.map +1 -1
- package/admin/AdminApp/context.js +3 -3
- package/admin/AdminApp/context.js.map +1 -1
- package/admin/AdminApp/index.js +26 -43
- package/admin/AdminApp/index.js.map +1 -1
- package/admin/AdminPage/Filter.js +20 -38
- package/admin/AdminPage/Filter.js.map +1 -1
- package/admin/AdminPage/Result.js +15 -62
- package/admin/AdminPage/Result.js.map +1 -1
- package/admin/AdminPage/SaveBar.js +7 -28
- package/admin/AdminPage/SaveBar.js.map +1 -1
- package/admin/AdminPage/Summary.js +6 -27
- package/admin/AdminPage/Summary.js.map +1 -1
- package/admin/AdminPage/TopBar.js +6 -27
- package/admin/AdminPage/TopBar.js.map +1 -1
- package/admin/AdminPage/index.js +11 -32
- package/admin/AdminPage/index.js.map +1 -1
- package/admin/AdminPermissionSelector.js +147 -195
- package/admin/AdminPermissionSelector.js.map +1 -1
- package/core/Amount/AmountPercentage.js +7 -50
- package/core/Amount/AmountPercentage.js.map +1 -1
- package/core/Amount/index.js +15 -36
- package/core/Amount/index.js.map +1 -1
- package/core/AmountConditionInput.js +27 -74
- package/core/AmountConditionInput.js.map +1 -1
- package/core/AmountRangeInput.js +17 -75
- package/core/AmountRangeInput.js.map +1 -1
- package/core/Animated/AnimatePresence.js +35 -87
- package/core/Animated/AnimatePresence.js.map +1 -1
- package/core/Animated/createAnimatedComponent.js +28 -50
- package/core/Animated/createAnimatedComponent.js.map +1 -1
- package/core/Animated/index.js +5 -5
- package/core/Animated/index.js.map +1 -1
- package/core/AuthenticationCodeInput/index.js +48 -136
- package/core/AuthenticationCodeInput/index.js.map +1 -1
- package/core/AutoCompleteInput.js +6 -38
- package/core/AutoCompleteInput.js.map +1 -1
- package/core/Badge.js +2 -13
- package/core/Badge.js.map +1 -1
- package/core/BoolRadio.js +16 -64
- package/core/BoolRadio.js.map +1 -1
- package/core/BoolSelect.js +16 -63
- package/core/BoolSelect.js.map +1 -1
- package/core/BoolSwitch.js +16 -48
- package/core/BoolSwitch.js.map +1 -1
- package/core/Breadcrumb/index.js +18 -66
- package/core/Breadcrumb/index.js.map +1 -1
- package/core/Button.js +2 -25
- package/core/Button.js.map +1 -1
- package/core/Card.js +6 -38
- package/core/Card.js.map +1 -1
- package/core/Carousel.js +6 -49
- package/core/Carousel.js.map +1 -1
- package/core/Carousel3D/index.js +64 -83
- package/core/Carousel3D/index.js.map +1 -1
- package/core/Cascader/InitialNullable.js +7 -50
- package/core/Cascader/InitialNullable.js.map +1 -1
- package/core/Cascader/Nullable.js +11 -81
- package/core/Cascader/Nullable.js.map +1 -1
- package/core/Cascader/index.js +38 -109
- package/core/Cascader/index.js.map +1 -1
- package/core/Checkbox.js +9 -67
- package/core/Checkbox.js.map +1 -1
- package/core/Collapse.js +5 -37
- package/core/Collapse.js.map +1 -1
- package/core/Countdown/SlidingDigit.js +12 -32
- package/core/Countdown/SlidingDigit.js.map +1 -1
- package/core/Countdown/index.js +56 -74
- package/core/Countdown/index.js.map +1 -1
- package/core/DarkOverlay/index.js +6 -27
- package/core/DarkOverlay/index.js.map +1 -1
- package/core/DateCalendar.js +48 -96
- package/core/DateCalendar.js.map +1 -1
- package/core/DatePicker.js +26 -73
- package/core/DatePicker.js.map +1 -1
- package/core/DateRangePicker.js +44 -64
- package/core/DateRangePicker.js.map +1 -1
- package/core/DateTimePicker.js +30 -78
- package/core/DateTimePicker.js.map +1 -1
- package/core/DateTimeRangePicker/index.js +48 -68
- package/core/DateTimeRangePicker/index.js.map +1 -1
- package/core/Descriptions/index.js +11 -69
- package/core/Descriptions/index.js.map +1 -1
- package/core/DocumentTitle.js +25 -43
- package/core/DocumentTitle.js.map +1 -1
- package/core/Drawer.js +4 -36
- package/core/Drawer.js.map +1 -1
- package/core/Dropdown.js +3 -7
- package/core/Dropdown.js.map +1 -1
- package/core/EnumCheckboxGroup/Map.js +8 -51
- package/core/EnumCheckboxGroup/Map.js.map +1 -1
- package/core/EnumCheckboxGroup/index.js +8 -29
- package/core/EnumCheckboxGroup/index.js.map +1 -1
- package/core/EnumRadio/InitialNullable.js +9 -78
- package/core/EnumRadio/InitialNullable.js.map +1 -1
- package/core/EnumRadio/Map.js +8 -51
- package/core/EnumRadio/Map.js.map +1 -1
- package/core/EnumRadio/Nullable.js +13 -83
- package/core/EnumRadio/Nullable.js.map +1 -1
- package/core/EnumRadio/index.js +16 -63
- package/core/EnumRadio/index.js.map +1 -1
- package/core/EnumSelect/InitialNullable.js +7 -50
- package/core/EnumSelect/InitialNullable.js.map +1 -1
- package/core/EnumSelect/Map.js +8 -51
- package/core/EnumSelect/Map.js.map +1 -1
- package/core/EnumSelect/Nullable.js +13 -83
- package/core/EnumSelect/Nullable.js.map +1 -1
- package/core/EnumSelect/index.js +37 -86
- package/core/EnumSelect/index.js.map +1 -1
- package/core/FlatList/Content/Footer/index.js +5 -6
- package/core/FlatList/Content/Footer/index.js.map +1 -1
- package/core/FlatList/Content/index.js +28 -51
- package/core/FlatList/Content/index.js.map +1 -1
- package/core/FlatList/FloatingLoader/index.js +2 -3
- package/core/FlatList/FloatingLoader/index.js.map +1 -1
- package/core/FlatList/Refresh/index.js +2 -3
- package/core/FlatList/Refresh/index.js.map +1 -1
- package/core/FlatList/hook/useRefreshing.js +7 -23
- package/core/FlatList/hook/useRefreshing.js.map +1 -1
- package/core/FlatList/hook/useScrollListSwipe.js +22 -40
- package/core/FlatList/hook/useScrollListSwipe.js.map +1 -1
- package/core/FlatList/index.js +19 -52
- package/core/FlatList/index.js.map +1 -1
- package/core/FlatList/shared/Loader/index.js +1 -1
- package/core/FlatList/shared/Loader/index.js.map +1 -1
- package/core/Form/Item.js +31 -91
- package/core/Form/Item.js.map +1 -1
- package/core/Form/context.js +4 -4
- package/core/Form/context.js.map +1 -1
- package/core/Form/index.js +52 -124
- package/core/Form/index.js.map +1 -1
- package/core/Grid.js +2 -2
- package/core/Grid.js.map +1 -1
- package/core/HTMLContent/index.js +6 -27
- package/core/HTMLContent/index.js.map +1 -1
- package/core/Image.js +5 -37
- package/core/Image.js.map +1 -1
- package/core/ImageUploader/index.js +44 -156
- package/core/ImageUploader/index.js.map +1 -1
- package/core/Input.js +34 -120
- package/core/Input.js.map +1 -1
- package/core/LabelledSelect.js +6 -38
- package/core/LabelledSelect.js.map +1 -1
- package/core/Link.js +7 -28
- package/core/Link.js.map +1 -1
- package/core/LocalImporter.js +22 -84
- package/core/LocalImporter.js.map +1 -1
- package/core/LocaleSelect.js +17 -64
- package/core/LocaleSelect.js.map +1 -1
- package/core/Markdown/index.js +30 -78
- package/core/Markdown/index.js.map +1 -1
- package/core/Modal/index.js +11 -54
- package/core/Modal/index.js.map +1 -1
- package/core/MultipleCascader/index.js +55 -135
- package/core/MultipleCascader/index.js.map +1 -1
- package/core/MultipleEnumSelect.js +13 -60
- package/core/MultipleEnumSelect.js.map +1 -1
- package/core/MultipleSelector/TablePopover.js +37 -85
- package/core/MultipleSelector/TablePopover.js.map +1 -1
- package/core/MultipleSelector/index.js +41 -88
- package/core/MultipleSelector/index.js.map +1 -1
- package/core/MutableTable/index.js +71 -125
- package/core/MutableTable/index.js.map +1 -1
- package/core/NumberInput/NumberInputPercentage.js +24 -93
- package/core/NumberInput/NumberInputPercentage.js.map +1 -1
- package/core/NumberInput/index.js +80 -115
- package/core/NumberInput/index.js.map +1 -1
- package/core/NumberInput/util.js +9 -9
- package/core/NumberInput/util.js.map +1 -1
- package/core/OrientationContext.js +4 -21
- package/core/OrientationContext.js.map +1 -1
- package/core/OverflowableText/index.js +19 -49
- package/core/OverflowableText/index.js.map +1 -1
- package/core/PagedList/index.js +18 -35
- package/core/PagedList/index.js.map +1 -1
- package/core/Pagination/index.js +19 -66
- package/core/Pagination/index.js.map +1 -1
- package/core/Popover/index.js +7 -29
- package/core/Popover/index.js.map +1 -1
- package/core/Progress/index.js +5 -37
- package/core/Progress/index.js.map +1 -1
- package/core/Progress.js +5 -37
- package/core/Progress.js.map +1 -1
- package/core/Radio.d.ts +2 -2
- package/core/Radio.js +7 -39
- package/core/Radio.js.map +1 -1
- package/core/RelativeTime.js +27 -45
- package/core/RelativeTime.js.map +1 -1
- package/core/Resizable/Resizer.js +4 -16
- package/core/Resizable/Resizer.js.map +1 -1
- package/core/Resizable/index.js +32 -55
- package/core/Resizable/index.js.map +1 -1
- package/core/SearchableSelect.js +6 -38
- package/core/SearchableSelect.js.map +1 -1
- package/core/Select.js +7 -39
- package/core/Select.js.map +1 -1
- package/core/SignedAmountInput.js +23 -70
- package/core/SignedAmountInput.js.map +1 -1
- package/core/Skeleton.js +6 -49
- package/core/Skeleton.js.map +1 -1
- package/core/Slider/RangeSlider.js +6 -49
- package/core/Slider/RangeSlider.js.map +1 -1
- package/core/Slider/index.js +24 -94
- package/core/Slider/index.js.map +1 -1
- package/core/Space.js +6 -38
- package/core/Space.js.map +1 -1
- package/core/Spin.js +6 -49
- package/core/Spin.js.map +1 -1
- package/core/StepFormContainer/index.js +17 -64
- package/core/StepFormContainer/index.js.map +1 -1
- package/core/Steps.js +5 -37
- package/core/Steps.js.map +1 -1
- package/core/Table.js +83 -116
- package/core/Table.js.map +1 -1
- package/core/Tabs/Single.js +6 -49
- package/core/Tabs/Single.js.map +1 -1
- package/core/Tabs/index.js +29 -100
- package/core/Tabs/index.js.map +1 -1
- package/core/Tag.js +5 -37
- package/core/Tag.js.map +1 -1
- package/core/TagInput/index.js +50 -95
- package/core/TagInput/index.js.map +1 -1
- package/core/Tags.js +13 -60
- package/core/Tags.js.map +1 -1
- package/core/TimePicker.js +17 -64
- package/core/TimePicker.js.map +1 -1
- package/core/TimeRangePicker.js +28 -47
- package/core/TimeRangePicker.js.map +1 -1
- package/core/Tooltip.js +7 -29
- package/core/Tooltip.js.map +1 -1
- package/core/TypedTabs/index.js +13 -75
- package/core/TypedTabs/index.js.map +1 -1
- package/core/UIProvider.js +4 -27
- package/core/UIProvider.js.map +1 -1
- package/core/Uploader.js +54 -85
- package/core/Uploader.js.map +1 -1
- package/core/VerticalMarquee/index.js +18 -35
- package/core/VerticalMarquee/index.js.map +1 -1
- package/core/VirtualList/index.js +19 -20
- package/core/VirtualList/index.js.map +1 -1
- package/core/VirtualTable/TableHeader.js +7 -9
- package/core/VirtualTable/TableHeader.js.map +1 -1
- package/core/VirtualTable/TableRow.js +12 -13
- package/core/VirtualTable/TableRow.js.map +1 -1
- package/core/VirtualTable/hooks/useColumnWidths.js +20 -36
- package/core/VirtualTable/hooks/useColumnWidths.js.map +1 -1
- package/core/VirtualTable/hooks/useColumnsStickyPosition.js +9 -9
- package/core/VirtualTable/hooks/useColumnsStickyPosition.js.map +1 -1
- package/core/VirtualTable/hooks/useRowSelection.js +28 -54
- package/core/VirtualTable/hooks/useRowSelection.js.map +1 -1
- package/core/VirtualTable/hooks/useScroll.js +13 -29
- package/core/VirtualTable/hooks/useScroll.js.map +1 -1
- package/core/VirtualTable/hooks/useScrollBarSize.js +6 -22
- package/core/VirtualTable/hooks/useScrollBarSize.js.map +1 -1
- package/core/VirtualTable/index.js +24 -25
- package/core/VirtualTable/index.js.map +1 -1
- package/core/WithExplanation/index.js +11 -32
- package/core/WithExplanation/index.js.map +1 -1
- package/core/WithTooltipList.js +17 -66
- package/core/WithTooltipList.js.map +1 -1
- package/core/YearMonthSelector.js +28 -76
- package/core/YearMonthSelector.js.map +1 -1
- package/hooks/useAPI.js +8 -44
- package/hooks/useAPI.js.map +1 -1
- package/hooks/useBool.js +4 -21
- package/hooks/useBool.js.map +1 -1
- package/hooks/useCompositeRef.js +4 -8
- package/hooks/useCompositeRef.js.map +1 -1
- package/hooks/useDebounce.js +6 -35
- package/hooks/useDebounce.js.map +1 -1
- package/hooks/useDelayed.js +7 -8
- package/hooks/useDelayed.js.map +1 -1
- package/hooks/useDidMountEffect.js +1 -1
- package/hooks/useDidMountEffect.js.map +1 -1
- package/hooks/useDraggable/DragController.js +37 -45
- package/hooks/useDraggable/DragController.js.map +1 -1
- package/hooks/useDraggable/index.js +25 -53
- package/hooks/useDraggable/index.js.map +1 -1
- package/hooks/useDraggable/useDrag.js +5 -5
- package/hooks/useDraggable/useDrag.js.map +1 -1
- package/hooks/useExtended.js +8 -8
- package/hooks/useExtended.js.map +1 -1
- package/hooks/useForceUpdate.js +2 -18
- package/hooks/useForceUpdate.js.map +1 -1
- package/hooks/useOrientation.js +2 -18
- package/hooks/useOrientation.js.map +1 -1
- package/hooks/usePrevious.js +1 -1
- package/hooks/usePrevious.js.map +1 -1
- package/hooks/useResizeObserver.js +7 -9
- package/hooks/useResizeObserver.js.map +1 -1
- package/hooks/useSwipe/controller.js +68 -75
- package/hooks/useSwipe/controller.js.map +1 -1
- package/hooks/useSwipe/index.js +6 -14
- package/hooks/useSwipe/index.js.map +1 -1
- package/hooks/useThunk.js +9 -36
- package/hooks/useThunk.js.map +1 -1
- package/hooks/useTransform.js +18 -30
- package/hooks/useTransform.js.map +1 -1
- package/hooks/useWhyDidYouUpdate.js +10 -19
- package/hooks/useWhyDidYouUpdate.js.map +1 -1
- package/hooks/useWillUnmountEffect.js +1 -1
- package/hooks/useWillUnmountEffect.js.map +1 -1
- package/internal/ArrayUtil.js +13 -38
- package/internal/ArrayUtil.js.map +1 -1
- package/internal/ExpirableLocalStorage.js +70 -74
- package/internal/ExpirableLocalStorage.js.map +1 -1
- package/internal/NumberUtil.js +11 -11
- package/internal/NumberUtil.js.map +1 -1
- package/internal/StorageHelper.js +62 -65
- package/internal/StorageHelper.js.map +1 -1
- package/internal/TextUtil.js +6 -10
- package/internal/TextUtil.js.map +1 -1
- package/internal/i18n/admin/en.js +1 -1
- package/internal/i18n/admin/en.js.map +1 -1
- package/internal/i18n/admin/index.js +3 -3
- package/internal/i18n/admin/index.js.map +1 -1
- package/internal/i18n/admin/zh.js +1 -1
- package/internal/i18n/admin/zh.js.map +1 -1
- package/internal/i18n/core/en.js +1 -1
- package/internal/i18n/core/en.js.map +1 -1
- package/internal/i18n/core/index.js +3 -3
- package/internal/i18n/core/index.js.map +1 -1
- package/internal/i18n/core/zh.js +1 -1
- package/internal/i18n/core/zh.js.map +1 -1
- package/internal/i18n/util/en.js +1 -1
- package/internal/i18n/util/en.js.map +1 -1
- package/internal/i18n/util/index.js +3 -3
- package/internal/i18n/util/index.js.map +1 -1
- package/internal/i18n/util/zh.js +1 -1
- package/internal/i18n/util/zh.js.map +1 -1
- package/package.json +6 -6
- package/util/AdminNavigationUtil.js +22 -64
- package/util/AdminNavigationUtil.js.map +1 -1
- package/util/BrowserBookmarkUtil.js +5 -5
- package/util/BrowserBookmarkUtil.js.map +1 -1
- package/util/BrowserUtil/index.d.ts +0 -1
- package/util/BrowserUtil/index.js +29 -80
- package/util/BrowserUtil/index.js.map +1 -1
- package/util/CanvasUtil.js +22 -61
- package/util/CanvasUtil.js.map +1 -1
- package/util/Clipboard.js +25 -85
- package/util/Clipboard.js.map +1 -1
- package/util/ExpirableLocalStorageUtil.js +1 -1
- package/util/ExpirableLocalStorageUtil.js.map +1 -1
- package/util/ExportUtil.js +13 -13
- package/util/ExportUtil.js.map +1 -1
- package/util/ImportUtil.js +34 -86
- package/util/ImportUtil.js.map +1 -1
- package/util/LocalStorageUtil.js +1 -1
- package/util/LocalStorageUtil.js.map +1 -1
- package/util/LocaleUtil.js +16 -19
- package/util/LocaleUtil.js.map +1 -1
- package/util/MediaUtil/index.js +15 -15
- package/util/MediaUtil/index.js.map +1 -1
- package/util/MessageUtil.js +5 -16
- package/util/MessageUtil.js.map +1 -1
- package/util/ModalUtil/index.js +46 -68
- package/util/ModalUtil/index.js.map +1 -1
- package/util/NotificationUtil.js +8 -24
- package/util/NotificationUtil.js.map +1 -1
- package/util/OrientationUtil.js +8 -8
- package/util/OrientationUtil.js.map +1 -1
- package/util/PromptUtil/PromptBody.js +24 -88
- package/util/PromptUtil/PromptBody.js.map +1 -1
- package/util/PromptUtil/index.js +20 -33
- package/util/PromptUtil/index.js.map +1 -1
- package/util/ReactUtil.js +20 -54
- package/util/ReactUtil.js.map +1 -1
- package/util/RecentUsedStorageUtil/index.js +14 -15
- package/util/RecentUsedStorageUtil/index.js.map +1 -1
- package/util/RecentUsedStorageUtil/pushToList.js +3 -28
- package/util/RecentUsedStorageUtil/pushToList.js.map +1 -1
- package/util/SessionStorageUtil.js +1 -1
- package/util/SessionStorageUtil.js.map +1 -1
- package/util/SwipeUtil.js +9 -9
- package/util/SwipeUtil.js.map +1 -1
- package/util/UploadUtil/index.js +29 -30
- package/util/UploadUtil/index.js.map +1 -1
package/core/DateRangePicker.js
CHANGED
|
@@ -1,76 +1,56 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
1
|
import React from "react";
|
|
17
2
|
import dayjs from "dayjs";
|
|
18
3
|
import DatePicker from "antd/es/date-picker";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var _a, _b;
|
|
26
|
-
if (!current) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* This is for compatibility of MySQL.
|
|
31
|
-
* MySQL TIMESTAMP data type is used for values that contain both date and time parts.
|
|
32
|
-
* TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC.
|
|
33
|
-
*/
|
|
34
|
-
if (current.valueOf() >= new Date(2038, 0).valueOf()) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
var diffToToday = Math.floor(current.diff(dayjs().startOf("day"), "day", true));
|
|
38
|
-
return ((_b = (_a = _this.props).disabledRange) === null || _b === void 0 ? void 0 : _b.call(_a, diffToToday, current.toDate())) || false;
|
|
39
|
-
};
|
|
40
|
-
_this.onChange = function (dates) {
|
|
41
|
-
var typedOnChange = _this.props.onChange;
|
|
42
|
-
if (dates) {
|
|
43
|
-
var start = dates[0];
|
|
44
|
-
var end = dates[1];
|
|
45
|
-
typedOnChange([start ? start.format(_this.dateFormatter) : null, end ? end.format(_this.dateFormatter) : null]);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
typedOnChange([null, null]);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
_this.onOpenChange = function (open) {
|
|
52
|
-
_this.setState({ shouldCheckDateRangeValid: !open });
|
|
53
|
-
};
|
|
54
|
-
_this.state = { shouldCheckDateRangeValid: false };
|
|
55
|
-
return _this;
|
|
4
|
+
export class DateRangePicker extends React.PureComponent {
|
|
5
|
+
static displayName = "DateRangePicker";
|
|
6
|
+
dateFormatter = "YYYY-MM-DD";
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
this.state = { shouldCheckDateRangeValid: false };
|
|
56
10
|
}
|
|
57
|
-
|
|
11
|
+
isDateDisabled = (current) => {
|
|
12
|
+
if (!current) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* This is for compatibility of MySQL.
|
|
17
|
+
* MySQL TIMESTAMP data type is used for values that contain both date and time parts.
|
|
18
|
+
* TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC.
|
|
19
|
+
*/
|
|
20
|
+
if (current.valueOf() >= new Date(2038, 0).valueOf()) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
const diffToToday = Math.floor(current.diff(dayjs().startOf("day"), "day", true));
|
|
24
|
+
return this.props.disabledRange?.(diffToToday, current.toDate()) || false;
|
|
25
|
+
};
|
|
26
|
+
onChange = (dates) => {
|
|
27
|
+
const typedOnChange = this.props.onChange;
|
|
28
|
+
if (dates) {
|
|
29
|
+
const start = dates[0];
|
|
30
|
+
const end = dates[1];
|
|
31
|
+
typedOnChange([start ? start.format(this.dateFormatter) : null, end ? end.format(this.dateFormatter) : null]);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
typedOnChange([null, null]);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
onOpenChange = (open) => {
|
|
38
|
+
this.setState({ shouldCheckDateRangeValid: !open });
|
|
39
|
+
};
|
|
40
|
+
componentDidUpdate() {
|
|
58
41
|
if (this.state.shouldCheckDateRangeValid && this.props.value[0] && this.props.value[1]) {
|
|
59
|
-
|
|
60
|
-
|
|
42
|
+
const dates = this.props.value;
|
|
43
|
+
const typedOnChange = this.props.onChange;
|
|
61
44
|
if (dayjs(dates[0]).isAfter(dayjs(dates[1]))) {
|
|
62
45
|
typedOnChange([dates[1], dates[0]]);
|
|
63
46
|
}
|
|
64
47
|
this.setState({ shouldCheckDateRangeValid: false });
|
|
65
48
|
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
}
|
|
50
|
+
render() {
|
|
51
|
+
const { value, allowNull, disabled, className, presets, preserveInvalidOnBlur = true } = this.props;
|
|
52
|
+
const parsedValue = [value[0] ? dayjs(value[0]) : null, value[1] ? dayjs(value[1]) : null];
|
|
70
53
|
return (React.createElement(DatePicker.RangePicker, { disabledDate: this.isDateDisabled, className: className, showTime: false, value: parsedValue, onCalendarChange: this.onChange, allowClear: allowNull, disabled: disabled, presets: presets, preserveInvalidOnBlur: preserveInvalidOnBlur, onOpenChange: this.onOpenChange }));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return DateRangePicker;
|
|
74
|
-
}(React.PureComponent));
|
|
75
|
-
export { DateRangePicker };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
76
56
|
//# sourceMappingURL=DateRangePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangePicker.js","sourceRoot":"","sources":["../../src/core/DateRangePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateRangePicker.js","sourceRoot":"","sources":["../../src/core/DateRangePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAe7C,MAAM,OAAO,eAAmC,SAAQ,KAAK,CAAC,aAA8B;IACxF,MAAM,CAAC,WAAW,GAAG,iBAAiB,CAAC;IAEtB,aAAa,GAAG,YAAY,CAAC;IAE9C,YAAY,KAAe;QACvB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAC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,IAAI,CAAC,cAAc,EACjC,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,WAAW,EAClB,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAC/B,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,YAAY,EAAE,IAAI,CAAC,YAAY,GACjC,CACL,CAAC;IACN,CAAC"}
|
package/core/DateTimePicker.js
CHANGED
|
@@ -1,83 +1,35 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
17
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
18
|
-
if (!m) return o;
|
|
19
|
-
var i = m.call(o), r, ar = [], e;
|
|
20
|
-
try {
|
|
21
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
22
|
-
}
|
|
23
|
-
catch (error) { e = { error: error }; }
|
|
24
|
-
finally {
|
|
25
|
-
try {
|
|
26
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
27
|
-
}
|
|
28
|
-
finally { if (e) throw e.error; }
|
|
29
|
-
}
|
|
30
|
-
return ar;
|
|
31
|
-
};
|
|
32
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
33
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
34
|
-
if (ar || !(i in from)) {
|
|
35
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
36
|
-
ar[i] = from[i];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
40
|
-
};
|
|
41
1
|
import React from "react";
|
|
42
2
|
import DatePicker from "antd/es/date-picker";
|
|
43
3
|
import dayjs from "dayjs";
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
else {
|
|
70
|
-
typedOnChange(null);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
return _this;
|
|
74
|
-
}
|
|
75
|
-
DateTimePicker.prototype.render = function () {
|
|
76
|
-
var _a = this.props, value = _a.value, allowNull = _a.allowNull, disabled = _a.disabled, showNow = _a.showNow, className = _a.className, placeholder = _a.placeholder, _b = _a.preserveInvalidOnBlur, preserveInvalidOnBlur = _b === void 0 ? true : _b;
|
|
77
|
-
return (React.createElement(DatePicker, { className: className, placeholder: placeholder, disabledDate: this.isDateDisabled, value: value ? dayjs(value) : null, onChange: this.onChange, allowClear: allowNull, disabled: disabled, showTime: true, showNow: showNow, preserveInvalidOnBlur: preserveInvalidOnBlur, needConfirm: false }));
|
|
4
|
+
export class DateTimePicker extends React.PureComponent {
|
|
5
|
+
static displayName = "DateTimePicker";
|
|
6
|
+
isDateDisabled = (current) => {
|
|
7
|
+
if (!current) {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This is for compatibility of MySQL.
|
|
12
|
+
* MySQL TIMESTAMP data type is used for values that contain both date and time parts.
|
|
13
|
+
* TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC.
|
|
14
|
+
*/
|
|
15
|
+
if (current.valueOf() >= new Date(2038, 0).valueOf()) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
const diffHourToToday = Math.floor(current.diff(dayjs().startOf("hour"), "hour", true));
|
|
19
|
+
return this.props.disabledRange?.(diffHourToToday, current.toDate()) || false;
|
|
20
|
+
};
|
|
21
|
+
onChange = (date) => {
|
|
22
|
+
const typedOnChange = this.props.onChange;
|
|
23
|
+
if (date) {
|
|
24
|
+
typedOnChange(date.toDate());
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
typedOnChange(null);
|
|
28
|
+
}
|
|
78
29
|
};
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
30
|
+
render() {
|
|
31
|
+
const { value, allowNull, disabled, showNow, className, placeholder, preserveInvalidOnBlur = true } = this.props;
|
|
32
|
+
return (React.createElement(DatePicker, { className: className, placeholder: placeholder, disabledDate: this.isDateDisabled, value: value ? dayjs(value) : null, onChange: this.onChange, allowClear: allowNull, disabled: disabled, showTime: true, showNow: showNow, preserveInvalidOnBlur: preserveInvalidOnBlur, needConfirm: false }));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
83
35
|
//# sourceMappingURL=DateTimePicker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateTimePicker.js","sourceRoot":"","sources":["../../src/core/DateTimePicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateTimePicker.js","sourceRo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AAG,IAAI,CAAC,KAAK,CAAC;QAC/G,OAAO,CACH,oBAAC,UAAU,IACP,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,IAAI,CAAC,cAAc,EACjC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAClC,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,QACR,OAAO,EAAE,OAAO,EAChB,qBAAqB,EAAE,qBAAqB,EAC5C,WAAW,EAAE,KAAK,GACpB,CACL,CAAC;IACN,CAAC"}
|
|
@@ -1,81 +1,61 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
1
|
import React from "react";
|
|
17
2
|
import dayjs from "dayjs";
|
|
18
3
|
import DatePicker from "antd/es/date-picker";
|
|
19
4
|
import "./index.less";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* This is for compatibility of MySQL.
|
|
30
|
-
* MySQL TIMESTAMP data type is used for values that contain both date and time parts.
|
|
31
|
-
* TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC.
|
|
32
|
-
*/
|
|
33
|
-
if (current.valueOf() >= new Date(2038, 0).valueOf())
|
|
34
|
-
return true;
|
|
35
|
-
var diffToToday = Math.floor(current.diff(dayjs().startOf("day"), "day", true));
|
|
36
|
-
return ((_b = (_a = _this.props).disabledRange) === null || _b === void 0 ? void 0 : _b.call(_a, diffToToday, current.toDate())) || false;
|
|
37
|
-
};
|
|
38
|
-
_this.onChange = function (dates) {
|
|
39
|
-
var typedOnChange = _this.props.onChange;
|
|
40
|
-
if (dates) {
|
|
41
|
-
// need manually reset the min/max millisecond
|
|
42
|
-
// otherwise, from/to will use now's millisecond value, which is inaccurate
|
|
43
|
-
var start = dates[0];
|
|
44
|
-
var end = dates[1];
|
|
45
|
-
var from = start ? start.millisecond(0).toDate() : null;
|
|
46
|
-
var to = end ? end.millisecond(999).toDate() : null;
|
|
47
|
-
typedOnChange([from, to]);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
typedOnChange([null, null]);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
_this.onOpenChange = function (open) {
|
|
54
|
-
_this.setState({ shouldCheckDateRangeValid: !open });
|
|
55
|
-
};
|
|
56
|
-
_this.state = { shouldCheckDateRangeValid: false };
|
|
57
|
-
return _this;
|
|
5
|
+
export class DateTimeRangePicker extends React.PureComponent {
|
|
6
|
+
static displayName = "DateTimeRangePicker";
|
|
7
|
+
static showTime = {
|
|
8
|
+
defaultValue: [dayjs().startOf("day"), dayjs().endOf("day")],
|
|
9
|
+
};
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.state = { shouldCheckDateRangeValid: false };
|
|
58
13
|
}
|
|
59
|
-
|
|
14
|
+
isDateDisabled = (current) => {
|
|
15
|
+
if (!current)
|
|
16
|
+
return false;
|
|
17
|
+
/**
|
|
18
|
+
* This is for compatibility of MySQL.
|
|
19
|
+
* MySQL TIMESTAMP data type is used for values that contain both date and time parts.
|
|
20
|
+
* TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to '2038-01-19 03:14:07' UTC.
|
|
21
|
+
*/
|
|
22
|
+
if (current.valueOf() >= new Date(2038, 0).valueOf())
|
|
23
|
+
return true;
|
|
24
|
+
const diffToToday = Math.floor(current.diff(dayjs().startOf("day"), "day", true));
|
|
25
|
+
return this.props.disabledRange?.(diffToToday, current.toDate()) || false;
|
|
26
|
+
};
|
|
27
|
+
onChange = (dates) => {
|
|
28
|
+
const typedOnChange = this.props.onChange;
|
|
29
|
+
if (dates) {
|
|
30
|
+
// need manually reset the min/max millisecond
|
|
31
|
+
// otherwise, from/to will use now's millisecond value, which is inaccurate
|
|
32
|
+
const start = dates[0];
|
|
33
|
+
const end = dates[1];
|
|
34
|
+
const from = start ? start.millisecond(0).toDate() : null;
|
|
35
|
+
const to = end ? end.millisecond(999).toDate() : null;
|
|
36
|
+
typedOnChange([from, to]);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
typedOnChange([null, null]);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
onOpenChange = (open) => {
|
|
43
|
+
this.setState({ shouldCheckDateRangeValid: !open });
|
|
44
|
+
};
|
|
45
|
+
componentDidUpdate() {
|
|
60
46
|
if (this.state.shouldCheckDateRangeValid && this.props.value[0] && this.props.value[1]) {
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
const dates = this.props.value;
|
|
48
|
+
const typedOnChange = this.props.onChange;
|
|
63
49
|
if (dayjs(dates[0]).isAfter(dayjs(dates[1]))) {
|
|
64
50
|
typedOnChange([dates[1], dates[0]]);
|
|
65
51
|
}
|
|
66
52
|
this.setState({ shouldCheckDateRangeValid: false });
|
|
67
53
|
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
54
|
+
}
|
|
55
|
+
render() {
|
|
56
|
+
const { value, allowNull, disabled, className, presets, preserveInvalidOnBlur = true } = this.props;
|
|
57
|
+
const parsedValue = [value[0] ? dayjs(value[0]) : null, value[1] ? dayjs(value[1]) : null];
|
|
72
58
|
return (React.createElement(DatePicker.RangePicker, { className: className, value: parsedValue, onCalendarChange: this.onChange, disabledDate: this.isDateDisabled, allowClear: allowNull, disabled: disabled, presets: presets, showTime: DateTimeRangePicker.showTime, preserveInvalidOnBlur: preserveInvalidOnBlur, onOpenChange: this.onOpenChange }));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
DateTimeRangePicker.showTime = {
|
|
76
|
-
defaultValue: [dayjs().startOf("day"), dayjs().endOf("day")],
|
|
77
|
-
};
|
|
78
|
-
return DateTimeRangePicker;
|
|
79
|
-
}(React.PureComponent));
|
|
80
|
-
export { DateTimeRangePicker };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
81
61
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/DateTimeRangePicker/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/DateTimeRangePicker/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,qBAAqB,CAAC;AAG7C,OAAO,cAAc,CAAC;AAetB,MAAM,OAAO,mBAAuC,SAAQ,KAAK,CAAC,aAA8B;IAC5F,MAAM,CAAC,WAAW,GAAG,qBAAqB,CAAC;IAC3C,MAAM,CAAC,QAAQ,GAAG;QACd,YAAY,EAAE,CAAC,KAAK,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KAC/D,CAAC;IAEF,YAAY,KAAe;QACvB,KAAK,CAAC,K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AK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACzH,OAAO,CACH,oBAAC,UAAU,CAAC,WAAW,IACnB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,WAAW,EAClB,gBAAgB,EAAE,IAAI,CAAC,QAAQ,EAC/B,YAAY,EAAE,IAAI,CAAC,cAAc,EACjC,UAAU,EAAE,SAAS,EACrB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,EACtC,qBAAqB,EAAE,qBAAqB,EAC5C,YAAY,EAAE,IAAI,CAAC,YAAY,GACjC,CACL,CAAC;IACN,CAAC"}
|
|
@@ -1,75 +1,17 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
var __assign = (this && this.__assign) || function () {
|
|
17
|
-
__assign = Object.assign || function(t) {
|
|
18
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
19
|
-
s = arguments[i];
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
}
|
|
23
|
-
return t;
|
|
24
|
-
};
|
|
25
|
-
return __assign.apply(this, arguments);
|
|
26
|
-
};
|
|
27
|
-
var __read = (this && this.__read) || function (o, n) {
|
|
28
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
29
|
-
if (!m) return o;
|
|
30
|
-
var i = m.call(o), r, ar = [], e;
|
|
31
|
-
try {
|
|
32
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
33
|
-
}
|
|
34
|
-
catch (error) { e = { error: error }; }
|
|
35
|
-
finally {
|
|
36
|
-
try {
|
|
37
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
38
|
-
}
|
|
39
|
-
finally { if (e) throw e.error; }
|
|
40
|
-
}
|
|
41
|
-
return ar;
|
|
42
|
-
};
|
|
43
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
44
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
45
|
-
if (ar || !(i in from)) {
|
|
46
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
47
|
-
ar[i] = from[i];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
51
|
-
};
|
|
52
1
|
import React from "react";
|
|
53
2
|
import AntDescriptions from "antd/es/descriptions";
|
|
54
3
|
import "./index.less";
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
function Descriptions() {
|
|
58
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
|
|
59
|
-
_this.containerStyle = { marginBottom: 15 };
|
|
60
|
-
return _this;
|
|
61
|
-
}
|
|
62
|
-
Descriptions.prototype.render = function () {
|
|
63
|
-
var _a = this.props, horizontal = _a.horizontal, column = _a.column, title = _a.title, children = _a.children, className = _a.className, style = _a.style, bordered = _a.bordered;
|
|
64
|
-
var columnCount = column || React.Children.count(children);
|
|
65
|
-
return (React.createElement(AntDescriptions, { style: __assign(__assign({}, this.containerStyle), style), className: className, layout: horizontal ? "horizontal" : "vertical", bordered: bordered, title: title, column: columnCount }, children));
|
|
66
|
-
};
|
|
67
|
-
Descriptions.defaultProps = {
|
|
4
|
+
export class Descriptions extends React.PureComponent {
|
|
5
|
+
static defaultProps = {
|
|
68
6
|
bordered: true,
|
|
69
7
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
8
|
+
static displayName = "Descriptions";
|
|
9
|
+
static Item = (props) => React.createElement(AntDescriptions.Item, { ...props });
|
|
10
|
+
containerStyle = { marginBottom: 15 };
|
|
11
|
+
render() {
|
|
12
|
+
const { horizontal, column, title, children, className, style, bordered } = this.props;
|
|
13
|
+
const columnCount = column || React.Children.count(children);
|
|
14
|
+
return (React.createElement(AntDescriptions, { style: { ...this.containerStyle, ...style }, className: className, layout: horizontal ? "horizontal" : "vertical", bordered: bordered, title: title, column: columnCount }, children));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
75
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Descriptions/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/Descriptions/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,sBAAsB,CAAC;AAEnD,OAAO,cAAc,CAAC;AAoBtB,MAAM,OAAO,YAAa,SAAQ,KAAK,CAAC,aAAoB;IACxD,MAAM,CAAC,YAAY,GAAwB;QACvC,QAAQ,EAAE,IAAI;KACjB,CAAC;IAEF,MAAM,CAAC,WAAW,GAAG,cAAc,CAAC;IAEpC,MAAM,CAAC,IAAI,GAAG,CAAC,KAA4B,EAAE,EAAE,CAAC,oBAAC,eAAe,CAAC,IAAI,OAAK,KAAK,GAAI,CAAC;IAEnE,cAAc,GAAwB,EAAC,YAAY,EAAE,EAAE,EAAC,CAAC;IAE1E,MAAM;QACF,MAAM,EAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACrF,MAAM,WAAW,GAAG,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC7D,OAAO,CACH,oBAAC,eAAe,IAAC,KAAK,EAAE,EAAC,GAAG,IAAI,CAAC,cAAc,EAAE,GAAG,KAAK,EAAC,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,IAClL,QAAQ,CACK,CACrB,CAAC;IACN,CAAC"}
|
package/core/DocumentTitle.js
CHANGED
|
@@ -1,53 +1,35 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
if (typeof b !== "function" && b !== null)
|
|
10
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
11
|
-
extendStatics(d, b);
|
|
12
|
-
function __() { this.constructor = d; }
|
|
13
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
1
|
import React from "react";
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return _this;
|
|
2
|
+
export class DocumentTitle extends React.PureComponent {
|
|
3
|
+
static displayName = "DocumentTitle";
|
|
4
|
+
static baseOption = {
|
|
5
|
+
baseTitle: "<Document Title Unset>",
|
|
6
|
+
separator: "-",
|
|
7
|
+
};
|
|
8
|
+
static register = (option) => Object.assign(DocumentTitle.baseOption, option);
|
|
9
|
+
prevTitle;
|
|
10
|
+
constructor(props) {
|
|
11
|
+
super(props);
|
|
12
|
+
this.prevTitle = document.title;
|
|
29
13
|
}
|
|
30
|
-
|
|
14
|
+
componentDidMount() {
|
|
31
15
|
this.updateTitle();
|
|
32
|
-
}
|
|
33
|
-
|
|
16
|
+
}
|
|
17
|
+
componentDidUpdate(prevProps) {
|
|
34
18
|
if (prevProps.title !== this.props.title) {
|
|
35
19
|
this.updateTitle();
|
|
36
20
|
}
|
|
37
|
-
}
|
|
38
|
-
|
|
21
|
+
}
|
|
22
|
+
componentWillUnmount() {
|
|
39
23
|
document.title = this.prevTitle;
|
|
24
|
+
}
|
|
25
|
+
updateTitle = () => {
|
|
26
|
+
const { title } = this.props;
|
|
27
|
+
const { baseTitle, separator } = DocumentTitle.baseOption;
|
|
28
|
+
const fullTitle = title ? `${baseTitle} ${separator} ${title}` : baseTitle;
|
|
29
|
+
document.title = fullTitle;
|
|
40
30
|
};
|
|
41
|
-
|
|
31
|
+
render() {
|
|
42
32
|
return this.props.children;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
DocumentTitle.baseOption = {
|
|
46
|
-
baseTitle: "<Document Title Unset>",
|
|
47
|
-
separator: "-",
|
|
48
|
-
};
|
|
49
|
-
DocumentTitle.register = function (option) { return Object.assign(DocumentTitle.baseOption, option); };
|
|
50
|
-
return DocumentTitle;
|
|
51
|
-
}(React.PureComponent));
|
|
52
|
-
export { DocumentTitle };
|
|
33
|
+
}
|
|
34
|
+
}
|
|
53
35
|
//# sourceMappingURL=DocumentTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentTitle.js","sourceRoot":"","sources":["../../src/core/DocumentTitle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentTitle.js","sourceRoot":"","sources":["../../src/core/DocumentTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,MAAM,OAAO,aAAc,SAAQ,KAAK,CAAC,aAAoB;IACzD,MAAM,CAAC,WAAW,GAAG,eAAe,CAAC;IACrC,MAAM,CAAC,UAAU,GAAe;QAC5B,SAAS,EAAE,wBAAwB;QACnC,SAAS,EAAE,GAAG;KACjB,CAAC;IACF,MAAM,CAAC,QAAQ,GAAG,CAA6B,MAAwC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAE3H,SAAS,CAAS;IAEnC,YAAY,KAAY;QACpB,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC;IACpC,CAAC;IAED,iBAAiB;QACb,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAED,kBAAkB,CAAC,SAA0B;QACzC,IAAI,SAAS,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;YACvC,IAAI,CAAC,WAAW,EAAE,CAAC;QACvB,CAAC;IACL,CAAC;IAED,oBAAoB;QAChB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC;IACpC,CAAC;IAED,WAAW,GAAG,GAAG,EAAE;QACf,MAAM,EAAC,KAAK,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC3B,MAAM,EAAC,SAAS,EAAE,SAAS,EAAC,GAAG,aAAa,CAAC,UAAU,CAAC;QACxD,MAAM,SAAS,GAAG,KA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