@noah-libjs/components 0.0.6 → 0.0.8
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/dist/ArrayInput/components.d.ts +787 -4
- package/dist/LazyAntd/ColorPicker/index.d.ts +1 -1
- package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +3 -1
- package/dist/LazyAntd/DatePicker/Base/index.d.ts +6 -2
- package/dist/LazyAntd/DatePicker/RangePicker.d.ts +3 -1
- package/dist/LazyAntd/Tree/Inner.d.ts +2 -1
- package/dist/LazyAntd/Tree/index.d.ts +3 -2
- package/dist/MyAutoComplete/types.d.ts +4 -1
- package/dist/MyButton/index.d.ts +10 -0
- package/dist/MyCheckbox/components.d.ts +807 -24
- package/dist/MyCheckbox/types.d.ts +3 -1
- package/dist/MyDatePicker/Display.d.ts +1 -1
- package/dist/MyIconSelect/index.d.ts +7 -0
- package/dist/MyIconSelect/types.d.ts +16 -0
- package/dist/MyInput/index.d.ts +1 -1
- package/dist/MyRangeDate/Inner.d.ts +3 -5
- package/dist/MyRangeDate/index.d.ts +6 -7
- package/dist/MyRangeDate/utils.d.ts +32 -30
- package/dist/MySelect/components.d.ts +787 -4
- package/dist/MySelect/types.d.ts +1 -1
- package/dist/MySwitch/types.d.ts +5 -2
- package/dist/a_chunks/index.js +561 -91
- package/dist/a_chunks/index.module.js +1 -24
- package/dist/a_chunks/root.17.js +2 -2
- package/dist/a_chunks/root.18.js +5 -5
- package/dist/a_chunks/root.19.js +2 -1
- package/dist/a_chunks/root.20.js +2 -1
- package/dist/a_chunks/root.21.js +2 -1
- package/dist/a_chunks/root.22.js +54 -196
- package/dist/a_chunks/root.23.js +198 -95
- package/dist/a_chunks/root.24.js +118 -5
- package/dist/a_chunks/root.25.js +4 -3
- package/dist/a_chunks/root.26.js +4 -0
- package/dist/a_chunks/root.8.js +7 -5
- package/dist/index.js +2 -1
- package/dist/packs.d.ts +788 -0
- package/dist/util-types/fd/InputType.d.ts +1 -1
- package/dist/util-types/fd/index.d.ts +33 -10
- package/dist/utils/getInputStyle.d.ts +3 -2
- package/dist/utils/msmc.d.ts +8 -2
- package/dist/utils/new.d.ts +12 -0
- package/package.json +4 -4
|
@@ -17,9 +17,10 @@ export interface ICompatibleProps {
|
|
|
17
17
|
startIndex?: any;
|
|
18
18
|
value?: any;
|
|
19
19
|
uniqueKey?: string;
|
|
20
|
+
display_linker?: string;
|
|
20
21
|
}
|
|
21
22
|
export interface IMyCheckboxProps {
|
|
22
|
-
value?: string | number | ICommonOption[];
|
|
23
|
+
value?: boolean | null | string | number | ICommonOption[];
|
|
23
24
|
options?: TOptions | (() => TOptions);
|
|
24
25
|
onChange?(v?: any): void;
|
|
25
26
|
type?: TMode;
|
|
@@ -36,6 +37,7 @@ export interface IMyCheckboxProps {
|
|
|
36
37
|
startIndex?: number;
|
|
37
38
|
onBlur?(e: any): void;
|
|
38
39
|
style?: React.CSSProperties;
|
|
40
|
+
display_linker?: string;
|
|
39
41
|
}
|
|
40
42
|
type INil = Exclude<ICommonOption, 'props' | 'inputType'>;
|
|
41
43
|
interface IMyInput extends ICommonOption {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TCommonComponent } from '../util-types';
|
|
3
|
+
import { IMyIconSelectProps } from './types';
|
|
4
|
+
export * from './types';
|
|
5
|
+
declare const MyIconSelect: TCommonComponent<IMyIconSelectProps, string>;
|
|
6
|
+
export declare function MyIcon(props: IMyIconSelectProps): React.JSX.Element | null;
|
|
7
|
+
export { MyIconSelect };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { FormInstance } from 'antd';
|
|
2
|
+
import { AntdIconProps } from '@ant-design/icons/lib/components/AntdIcon';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
export type IIconMap = {
|
|
5
|
+
[x: string]: {
|
|
6
|
+
render: FC<AntdIconProps>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export interface IMyIconSelectProps extends Omit<AntdIconProps, 'value' | 'onChange' | 'form' | 'ref'> {
|
|
10
|
+
value?: T_Icon_Key;
|
|
11
|
+
onChange?(v: string | null): void;
|
|
12
|
+
form?: FormInstance;
|
|
13
|
+
icon_type?: 'Outlined';
|
|
14
|
+
}
|
|
15
|
+
type T_Icon_Key = "StepBackwardOutlined" | "StepForwardOutlined" | "FastBackwardOutlined" | "FastForwardOutlined" | "ShrinkOutlined" | "ArrowsAltOutlined" | "DownOutlined" | "UpOutlined" | "LeftOutlined" | "RightOutlined" | "CaretUpOutlined" | "CaretDownOutlined" | "CaretLeftOutlined" | "CaretRightOutlined" | "UpCircleOutlined" | "DownCircleOutlined" | "LeftCircleOutlined" | "RightCircleOutlined" | "DoubleRightOutlined" | "DoubleLeftOutlined" | "VerticalLeftOutlined" | "VerticalRightOutlined" | "VerticalAlignTopOutlined" | "VerticalAlignMiddleOutlined" | "VerticalAlignBottomOutlined" | "ForwardOutlined" | "BackwardOutlined" | "RollbackOutlined" | "EnterOutlined" | "RetweetOutlined" | "SwapOutlined" | "SwapLeftOutlined" | "SwapRightOutlined" | "ArrowUpOutlined" | "ArrowDownOutlined" | "ArrowLeftOutlined" | "ArrowRightOutlined" | "PlayCircleOutlined" | "UpSquareOutlined" | "DownSquareOutlined" | "LeftSquareOutlined" | "RightSquareOutlined" | "LoginOutlined" | "LogoutOutlined" | "MenuFoldOutlined" | "MenuUnfoldOutlined" | "BorderBottomOutlined" | "BorderHorizontalOutlined" | "BorderInnerOutlined" | "BorderOuterOutlined" | "BorderLeftOutlined" | "BorderRightOutlined" | "BorderTopOutlined" | "BorderVerticleOutlined" | "PicCenterOutlined" | "PicLeftOutlined" | "PicRightOutlined" | "RadiusBottomleftOutlined" | "RadiusBottomrightOutlined" | "RadiusUpleftOutlined" | "RadiusUprightOutlined" | "FullscreenOutlined" | "FullscreenExitOutlined" | "QuestionOutlined" | "QuestionCircleOutlined" | "PlusOutlined" | "PlusCircleOutlined" | "PauseOutlined" | "PauseCircleOutlined" | "MinusOutlined" | "MinusCircleOutlined" | "PlusSquareOutlined" | "MinusSquareOutlined" | "InfoOutlined" | "InfoCircleOutlined" | "ExclamationOutlined" | "ExclamationCircleOutlined" | "CloseOutlined" | "CloseCircleOutlined" | "CloseSquareOutlined" | "CheckOutlined" | "CheckCircleOutlined" | "CheckSquareOutlined" | "ClockCircleOutlined" | "WarningOutlined" | "IssuesCloseOutlined" | "StopOutlined" | "EditOutlined" | "FormOutlined" | "CopyOutlined" | "ScissorOutlined" | "DeleteOutlined" | "SnippetsOutlined" | "DiffOutlined" | "HighlightOutlined" | "AlignCenterOutlined" | "AlignLeftOutlined" | "AlignRightOutlined" | "BgColorsOutlined" | "BoldOutlined" | "ItalicOutlined" | "UnderlineOutlined" | "StrikethroughOutlined" | "RedoOutlined" | "UndoOutlined" | "ZoomInOutlined" | "ZoomOutOutlined" | "FontColorsOutlined" | "FontSizeOutlined" | "LineHeightOutlined" | "DashOutlined" | "SmallDashOutlined" | "SortAscendingOutlined" | "SortDescendingOutlined" | "DragOutlined" | "OrderedListOutlined" | "UnorderedListOutlined" | "RadiusSettingOutlined" | "ColumnWidthOutlined" | "ColumnHeightOutlined" | "AreaChartOutlined" | "PieChartOutlined" | "BarChartOutlined" | "DotChartOutlined" | "LineChartOutlined" | "RadarChartOutlined" | "HeatMapOutlined" | "FallOutlined" | "RiseOutlined" | "StockOutlined" | "BoxPlotOutlined" | "FundOutlined" | "SlidersOutlined" | "AndroidOutlined" | "AppleOutlined" | "WindowsOutlined" | "IeOutlined" | "ChromeOutlined" | "GithubOutlined" | "AliwangwangOutlined" | "DingdingOutlined" | "WeiboSquareOutlined" | "WeiboCircleOutlined" | "TaobaoCircleOutlined" | "Html5Outlined" | "WeiboOutlined" | "TwitterOutlined" | "WechatOutlined" | "WhatsAppOutlined" | "YoutubeOutlined" | "AlipayCircleOutlined" | "TaobaoOutlined" | "DingtalkOutlined" | "SkypeOutlined" | "QqOutlined" | "MediumWorkmarkOutlined" | "GitlabOutlined" | "MediumOutlined" | "LinkedinOutlined" | "GooglePlusOutlined" | "DropboxOutlined" | "FacebookOutlined" | "CodepenOutlined" | "CodeSandboxOutlined" | "AmazonOutlined" | "GoogleOutlined" | "CodepenCircleOutlined" | "AlipayOutlined" | "AntDesignOutlined" | "AntCloudOutlined" | "AliyunOutlined" | "ZhihuOutlined" | "SlackOutlined" | "SlackSquareOutlined" | "BehanceOutlined" | "BehanceSquareOutlined" | "DribbbleOutlined" | "DribbbleSquareOutlined" | "InstagramOutlined" | "YuqueOutlined" | "AlibabaOutlined" | "YahooOutlined" | "RedditOutlined" | "SketchOutlined" | "WechatWorkOutlined" | "OpenAIOutlined" | "DiscordOutlined" | "XOutlined" | "BilibiliOutlined" | "PinterestOutlined" | "TikTokOutlined" | "SpotifyOutlined" | "TwitchOutlined" | "LinuxOutlined" | "JavaOutlined" | "JavaScriptOutlined" | "PythonOutlined" | "RubyOutlined" | "DotNetOutlined" | "KubernetesOutlined" | "DockerOutlined" | "BaiduOutlined" | "HarmonyOSOutlined" | "AccountBookOutlined" | "AimOutlined" | "AlertOutlined" | "ApartmentOutlined" | "ApiOutlined" | "AppstoreAddOutlined" | "AppstoreOutlined" | "AudioOutlined" | "AudioMutedOutlined" | "AuditOutlined" | "BankOutlined" | "BarcodeOutlined" | "BarsOutlined" | "BellOutlined" | "BlockOutlined" | "BookOutlined" | "BorderOutlined" | "BorderlessTableOutlined" | "BranchesOutlined" | "BugOutlined" | "BuildOutlined" | "BulbOutlined" | "CalculatorOutlined" | "CalendarOutlined" | "CameraOutlined" | "CarOutlined" | "CarryOutOutlined" | "CiCircleOutlined" | "CiOutlined" | "ClearOutlined" | "CloudDownloadOutlined" | "CloudOutlined" | "CloudServerOutlined" | "CloudSyncOutlined" | "CloudUploadOutlined" | "ClusterOutlined" | "CodeOutlined" | "CoffeeOutlined" | "CommentOutlined" | "CompassOutlined" | "CompressOutlined" | "ConsoleSqlOutlined" | "ContactsOutlined" | "ContainerOutlined" | "ControlOutlined" | "CopyrightOutlined" | "CreditCardOutlined" | "CrownOutlined" | "CustomerServiceOutlined" | "DashboardOutlined" | "DatabaseOutlined" | "DeleteColumnOutlined" | "DeleteRowOutlined" | "DeliveredProcedureOutlined" | "DeploymentUnitOutlined" | "DesktopOutlined" | "DisconnectOutlined" | "DislikeOutlined" | "DollarOutlined" | "DownloadOutlined" | "EllipsisOutlined" | "EnvironmentOutlined" | "EuroCircleOutlined" | "EuroOutlined" | "ExceptionOutlined" | "ExpandAltOutlined" | "ExpandOutlined" | "ExperimentOutlined" | "ExportOutlined" | "EyeOutlined" | "EyeInvisibleOutlined" | "FieldBinaryOutlined" | "FieldNumberOutlined" | "FieldStringOutlined" | "FieldTimeOutlined" | "FileAddOutlined" | "FileDoneOutlined" | "FileExcelOutlined" | "FileExclamationOutlined" | "FileOutlined" | "FileGifOutlined" | "FileImageOutlined" | "FileJpgOutlined" | "FileMarkdownOutlined" | "FilePdfOutlined" | "FilePptOutlined" | "FileProtectOutlined" | "FileSearchOutlined" | "FileSyncOutlined" | "FileTextOutlined" | "FileUnknownOutlined" | "FileWordOutlined" | "FileZipOutlined" | "FilterOutlined" | "FireOutlined" | "FlagOutlined" | "FolderAddOutlined" | "FolderOutlined" | "FolderOpenOutlined" | "FolderViewOutlined" | "ForkOutlined" | "FormatPainterOutlined" | "FrownOutlined" | "FunctionOutlined" | "FundProjectionScreenOutlined" | "FundViewOutlined" | "FunnelPlotOutlined" | "GatewayOutlined" | "GifOutlined" | "GiftOutlined" | "GlobalOutlined" | "GoldOutlined" | "GroupOutlined" | "HddOutlined" | "HeartOutlined" | "HistoryOutlined" | "HolderOutlined" | "HomeOutlined" | "HourglassOutlined" | "IdcardOutlined" | "ImportOutlined" | "InboxOutlined" | "InsertRowAboveOutlined" | "InsertRowBelowOutlined" | "InsertRowLeftOutlined" | "InsertRowRightOutlined" | "InsuranceOutlined" | "InteractionOutlined" | "KeyOutlined" | "LaptopOutlined" | "LayoutOutlined" | "LikeOutlined" | "LineOutlined" | "LinkOutlined" | "Loading3QuartersOutlined" | "LoadingOutlined" | "LockOutlined" | "MacCommandOutlined" | "MailOutlined" | "ManOutlined" | "MedicineBoxOutlined" | "MehOutlined" | "MenuOutlined" | "MergeCellsOutlined" | "MergeOutlined" | "MessageOutlined" | "MobileOutlined" | "MoneyCollectOutlined" | "MonitorOutlined" | "MoonOutlined" | "MoreOutlined" | "MutedOutlined" | "NodeCollapseOutlined" | "NodeExpandOutlined" | "NodeIndexOutlined" | "NotificationOutlined" | "NumberOutlined" | "OneToOneOutlined" | "PaperClipOutlined" | "PartitionOutlined" | "PayCircleOutlined" | "PercentageOutlined" | "PhoneOutlined" | "PictureOutlined" | "PlaySquareOutlined" | "PoundCircleOutlined" | "PoundOutlined" | "PoweroffOutlined" | "PrinterOutlined" | "ProductOutlined" | "ProfileOutlined" | "ProjectOutlined" | "PropertySafetyOutlined" | "PullRequestOutlined" | "PushpinOutlined" | "QrcodeOutlined" | "ReadOutlined" | "ReconciliationOutlined" | "RedEnvelopeOutlined" | "ReloadOutlined" | "RestOutlined" | "RobotOutlined" | "RocketOutlined" | "RotateLeftOutlined" | "RotateRightOutlined" | "SafetyCertificateOutlined" | "SafetyOutlined" | "SaveOutlined" | "ScanOutlined" | "ScheduleOutlined" | "SearchOutlined" | "SecurityScanOutlined" | "SelectOutlined" | "SendOutlined" | "SettingOutlined" | "ShakeOutlined" | "ShareAltOutlined" | "ShopOutlined" | "ShoppingCartOutlined" | "ShoppingOutlined" | "SignatureOutlined" | "SisternodeOutlined" | "SkinOutlined" | "SmileOutlined" | "SolutionOutlined" | "SoundOutlined" | "SplitCellsOutlined" | "StarOutlined" | "SubnodeOutlined" | "SunOutlined" | "SwitcherOutlined" | "SyncOutlined" | "TableOutlined" | "TabletOutlined" | "TagOutlined" | "TagsOutlined" | "TeamOutlined" | "ThunderboltOutlined" | "ToTopOutlined" | "ToolOutlined" | "TrademarkCircleOutlined" | "TrademarkOutlined" | "TransactionOutlined" | "TranslationOutlined" | "TrophyOutlined" | "TruckOutlined" | "UngroupOutlined" | "UnlockOutlined" | "UploadOutlined" | "UsbOutlined" | "UserAddOutlined" | "UserDeleteOutlined" | "UserOutlined" | "UserSwitchOutlined" | "UsergroupAddOutlined" | "UsergroupDeleteOutlined" | "VerifiedOutlined" | "VideoCameraAddOutlined" | "VideoCameraOutlined" | "WalletOutlined" | "WifiOutlined" | "WomanOutlined";
|
|
16
|
+
export {};
|
package/dist/MyInput/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TCommonComponent } from '../util-types';
|
|
3
2
|
import { IMyRangePickerProps } from './utils';
|
|
4
|
-
export { IMyRangePickerProps
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const MyRangePicker: TCommonComponent<IMyRangePickerProps, string>;
|
|
3
|
+
export { IMyRangePickerProps } from './utils';
|
|
4
|
+
declare const RangePicker_: React.NamedExoticComponent<IMyRangePickerProps>;
|
|
5
|
+
export default RangePicker_;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { TCommonComponent } from '../util-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
declare const
|
|
8
|
-
export default MyDatePicker;
|
|
2
|
+
import { IMyRangePickerProps, MyValue } from './utils';
|
|
3
|
+
export { IMyRangePickerProps };
|
|
4
|
+
type TMyDatePicker = TCommonComponent<IMyRangePickerProps, MyValue>;
|
|
5
|
+
export declare const MyRangePicker: TMyDatePicker;
|
|
6
|
+
export declare const MyRangeDate: TMyDatePicker;
|
|
7
|
+
export declare const MyRangeDateTime: TMyDatePicker;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Dayjs } from 'dayjs';
|
|
1
|
+
import dayjs, { Dayjs } from 'dayjs';
|
|
2
2
|
import { RangePickerProps } from 'src/LazyAntd';
|
|
3
3
|
export declare const defaultGetPopupContainer: () => HTMLElement;
|
|
4
|
-
export declare function areEqual(prevProps:
|
|
5
|
-
type RangeValue<T> = [
|
|
6
|
-
type MyValue = RangeValue<string | null | undefined> | string | null;
|
|
4
|
+
export declare function areEqual(prevProps: IMyRangePickerProps, nextProps: IMyRangePickerProps): boolean;
|
|
5
|
+
type RangeValue<T> = any[];
|
|
6
|
+
export type MyValue = RangeValue<Dayjs | string | null | undefined> | string | null | undefined;
|
|
7
7
|
export type IMyRangePickerProps = {
|
|
8
8
|
marshal?: number;
|
|
9
9
|
value?: MyValue;
|
|
10
10
|
onChange?: (value: MyValue) => void;
|
|
11
|
+
linker?: string;
|
|
11
12
|
minDate?: any;
|
|
12
13
|
maxDate?: any;
|
|
13
14
|
validDate?: any;
|
|
@@ -15,10 +16,12 @@ export type IMyRangePickerProps = {
|
|
|
15
16
|
format?: any;
|
|
16
17
|
showUnknown?: boolean;
|
|
17
18
|
} & Omit<RangePickerProps, 'value' | 'disabled'>;
|
|
18
|
-
export declare function
|
|
19
|
+
export declare function process_value_remote(value: MyValue, marshal: number, linker: string): any[];
|
|
20
|
+
export declare function format_range_props(props: IMyRangePickerProps): {
|
|
19
21
|
marshal?: number;
|
|
20
22
|
value?: MyValue;
|
|
21
|
-
onChange?: (((value: MyValue) => void) & ((dates: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<Dayjs> | null, dateStrings: [string, string]) => void)) | undefined;
|
|
23
|
+
onChange?: (((value: MyValue) => void) & ((dates: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<dayjs.Dayjs> | null, dateStrings: [string, string]) => void)) | undefined;
|
|
24
|
+
linker?: string;
|
|
22
25
|
minDate?: any;
|
|
23
26
|
maxDate?: any;
|
|
24
27
|
validDate?: any;
|
|
@@ -112,13 +115,16 @@ export declare function formatProps(props: IMyRangePickerProps): {
|
|
|
112
115
|
"aria-valuenow"?: number | undefined | undefined;
|
|
113
116
|
"aria-valuetext"?: string | undefined | undefined;
|
|
114
117
|
children?: import("react").ReactNode;
|
|
115
|
-
defaultValue?: import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<Dayjs> | undefined;
|
|
118
|
+
defaultValue?: import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<dayjs.Dayjs> | undefined;
|
|
116
119
|
rootClassName?: string | undefined;
|
|
117
120
|
size?: import("antd/es/button").ButtonSize;
|
|
118
121
|
bordered?: boolean | undefined;
|
|
119
122
|
variant?: import("antd/es/config-provider").Variant | undefined;
|
|
123
|
+
styles?: import("antd/es/date-picker/generatePicker/interface").PickerStyles | undefined;
|
|
124
|
+
classNames?: import("antd/es/date-picker/generatePicker/interface").PickerClassNames | undefined;
|
|
120
125
|
status?: import("antd/es/_util/statusUtils").InputStatus | undefined;
|
|
121
126
|
popupClassName?: string | undefined;
|
|
127
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
122
128
|
hidden?: boolean | undefined | undefined;
|
|
123
129
|
color?: string | undefined | undefined;
|
|
124
130
|
content?: string | undefined | undefined;
|
|
@@ -126,11 +132,11 @@ export declare function formatProps(props: IMyRangePickerProps): {
|
|
|
126
132
|
width?: number | string | undefined | undefined;
|
|
127
133
|
name?: string | undefined | undefined;
|
|
128
134
|
key?: import("react").Key | null | undefined;
|
|
135
|
+
form?: string | undefined | undefined;
|
|
129
136
|
type?: import("react").HTMLInputTypeAttribute | undefined;
|
|
130
137
|
ref?: ((instance: import("rc-picker").PickerRef | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<import("rc-picker").PickerRef> | null | undefined;
|
|
131
138
|
list?: string | undefined | undefined;
|
|
132
139
|
step?: number | string | undefined | undefined;
|
|
133
|
-
form?: string | undefined | undefined;
|
|
134
140
|
slot?: string | undefined | undefined;
|
|
135
141
|
pattern?: string | undefined | undefined;
|
|
136
142
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -336,7 +342,7 @@ export declare function formatProps(props: IMyRangePickerProps): {
|
|
|
336
342
|
readOnly?: boolean | undefined | undefined;
|
|
337
343
|
required?: boolean | undefined | undefined;
|
|
338
344
|
src?: string | undefined | undefined;
|
|
339
|
-
onOk?: ((values: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<Dayjs>) => void) | undefined;
|
|
345
|
+
onOk?: ((values: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<dayjs.Dayjs>) => void) | undefined;
|
|
340
346
|
locale?: import("antd/es/date-picker/generatePicker").PickerLocale | undefined;
|
|
341
347
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
342
348
|
prevIcon?: import("react").ReactNode;
|
|
@@ -354,50 +360,46 @@ export declare function formatProps(props: IMyRangePickerProps): {
|
|
|
354
360
|
secondStep?: import("rc-picker/lib/interface").IntRange<1, 59> | undefined;
|
|
355
361
|
millisecondStep?: import("rc-picker/lib/interface").IntRange<1, 999> | undefined;
|
|
356
362
|
hideDisabledOptions?: boolean | undefined;
|
|
357
|
-
defaultOpenValue?: Dayjs | undefined;
|
|
363
|
+
defaultOpenValue?: dayjs.Dayjs | undefined;
|
|
358
364
|
disabledHours?: (() => number[]) | undefined;
|
|
359
365
|
disabledMinutes?: ((hour: number) => number[]) | undefined;
|
|
360
366
|
disabledSeconds?: ((hour: number, minute: number) => number[]) | undefined;
|
|
361
|
-
disabledTime?: ((date: Dayjs, range: "start" | "end", info: {
|
|
362
|
-
from?: Dayjs | undefined;
|
|
367
|
+
disabledTime?: ((date: dayjs.Dayjs, range: "start" | "end", info: {
|
|
368
|
+
from?: dayjs.Dayjs | undefined;
|
|
363
369
|
}) => import("rc-picker/lib/interface").DisabledTimes) | undefined;
|
|
364
370
|
changeOnScroll?: boolean | undefined;
|
|
365
|
-
onCalendarChange?: ((dates: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<Dayjs>, dateStrings: [string, string], info: import("rc-picker/lib/interface").BaseInfo) => void) | undefined;
|
|
366
|
-
defaultPickerValue?: Dayjs | [Dayjs, Dayjs] | null | undefined;
|
|
367
|
-
pickerValue?: Dayjs | [Dayjs, Dayjs] | null | undefined;
|
|
368
|
-
onPickerValueChange?: ((date: [Dayjs, Dayjs], info: import("rc-picker/lib/interface").BaseInfo & {
|
|
371
|
+
onCalendarChange?: ((dates: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<dayjs.Dayjs>, dateStrings: [string, string], info: import("rc-picker/lib/interface").BaseInfo) => void) | undefined;
|
|
372
|
+
defaultPickerValue?: dayjs.Dayjs | [dayjs.Dayjs, dayjs.Dayjs] | null | undefined;
|
|
373
|
+
pickerValue?: dayjs.Dayjs | [dayjs.Dayjs, dayjs.Dayjs] | null | undefined;
|
|
374
|
+
onPickerValueChange?: ((date: [dayjs.Dayjs, dayjs.Dayjs], info: import("rc-picker/lib/interface").BaseInfo & {
|
|
369
375
|
source: "reset" | "panel";
|
|
370
376
|
mode: [import("rc-picker/lib/interface").PanelMode, import("rc-picker/lib/interface").PanelMode];
|
|
371
377
|
}) => void) | undefined;
|
|
372
|
-
presets?: import("rc-picker/lib/interface").ValueDate<import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<Dayjs>>[] | undefined;
|
|
373
|
-
onPanelChange?: ((values: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<Dayjs>, modes: [startMode: import("rc-picker/lib/interface").PanelMode, endMode: import("rc-picker/lib/interface").PanelMode]) => void) | undefined;
|
|
374
|
-
|
|
375
|
-
classNames?: Partial<Record<import("rc-picker/lib/interface").SemanticStructure, string>> | undefined;
|
|
376
|
-
showTime?: boolean | import("rc-picker/lib/interface").RangeTimeProps<Dayjs> | undefined;
|
|
378
|
+
presets?: import("rc-picker/lib/interface").ValueDate<import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<dayjs.Dayjs>>[] | undefined;
|
|
379
|
+
onPanelChange?: ((values: import("rc-picker/lib/PickerInput/RangePicker").NoUndefinedRangeValueType<dayjs.Dayjs>, modes: [startMode: import("rc-picker/lib/interface").PanelMode, endMode: import("rc-picker/lib/interface").PanelMode]) => void) | undefined;
|
|
380
|
+
showTime?: boolean | import("rc-picker/lib/interface").RangeTimeProps<dayjs.Dayjs> | undefined;
|
|
377
381
|
showWeek?: boolean | undefined;
|
|
378
382
|
inputReadOnly?: boolean | undefined;
|
|
379
383
|
order?: boolean | undefined;
|
|
380
|
-
disabledDate?: import("rc-picker/lib/interface").DisabledDate<Dayjs> | undefined;
|
|
381
|
-
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
384
|
+
disabledDate?: import("rc-picker/lib/interface").DisabledDate<dayjs.Dayjs> | undefined;
|
|
382
385
|
popupAlign?: import("@rc-component/trigger").AlignType | undefined;
|
|
383
386
|
needConfirm?: boolean | undefined;
|
|
384
387
|
changeOnBlur?: boolean | undefined;
|
|
385
388
|
preserveInvalidOnBlur?: boolean | undefined;
|
|
386
|
-
components?: Partial<Record<import("rc-picker/lib/interface").InternalMode, import("react").ComponentType<import("rc-picker/lib/interface").SharedPanelProps<Dayjs>>> & {
|
|
389
|
+
components?: Partial<Record<import("rc-picker/lib/interface").InternalMode, import("react").ComponentType<import("rc-picker/lib/interface").SharedPanelProps<dayjs.Dayjs>>> & {
|
|
387
390
|
button?: React.ComponentType<any> | string;
|
|
388
391
|
input?: React.ComponentType<any> | string;
|
|
389
392
|
}> | undefined;
|
|
390
393
|
inputRender?: ((props: React.InputHTMLAttributes<HTMLInputElement>) => React.ReactNode) | undefined;
|
|
391
|
-
cellRender?: import("rc-picker/lib/interface").CellRender<Dayjs, string | number | Dayjs> | undefined;
|
|
392
|
-
dateRender?: ((currentDate: Dayjs, today: Dayjs) => React.ReactNode) | undefined;
|
|
393
|
-
monthCellRender?: ((currentDate: Dayjs, locale: import("rc-picker/lib/interface").Locale) => React.ReactNode) | undefined;
|
|
394
|
+
cellRender?: import("rc-picker/lib/interface").CellRender<dayjs.Dayjs, string | number | dayjs.Dayjs> | undefined;
|
|
395
|
+
dateRender?: ((currentDate: dayjs.Dayjs, today: dayjs.Dayjs) => React.ReactNode) | undefined;
|
|
396
|
+
monthCellRender?: ((currentDate: dayjs.Dayjs, locale: import("rc-picker/lib/interface").Locale) => React.ReactNode) | undefined;
|
|
394
397
|
showToday?: boolean | undefined;
|
|
395
398
|
panelRender?: ((originPanel: React.ReactNode) => React.ReactNode) | undefined;
|
|
396
399
|
renderExtraFooter?: ((mode: import("rc-picker/lib/interface").PanelMode) => React.ReactNode) | undefined;
|
|
397
400
|
popupStyle?: React.CSSProperties | undefined;
|
|
398
|
-
ranges?: Record<string, import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<Dayjs> | (() => import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<Dayjs>)> | undefined;
|
|
401
|
+
ranges?: Record<string, import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<dayjs.Dayjs> | (() => import("rc-picker/lib/PickerInput/RangePicker").RangeValueType<dayjs.Dayjs>)> | undefined;
|
|
399
402
|
allowEmpty?: boolean | [boolean, boolean] | undefined;
|
|
400
403
|
};
|
|
401
|
-
export declare
|
|
402
|
-
export declare const handleChangeValue: ({ format }: IMyRangePickerProps, date?: (Dayjs | null)[]) => (Dayjs | null)[] | (string | null)[];
|
|
404
|
+
export declare const handleChangeValue: ({ format, marshal, linker }: IMyRangePickerProps, date?: (Dayjs | null)[]) => string | (string | null)[] | null;
|
|
403
405
|
export {};
|