@noah-libjs/components 0.0.23 → 0.0.42
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/README.md +1 -1
- package/dist/ArrayInput/DispalyInner.d.ts +4 -0
- package/dist/ArrayInput/Inner.d.ts +4 -0
- package/dist/ArrayInput/components.d.ts +201 -0
- package/dist/ArrayInput/index.d.ts +4 -0
- package/dist/ArrayInput/types.d.ts +77 -0
- package/dist/ArrayInput/utils.d.ts +3 -0
- package/dist/ArraySingle/DispalyInner.d.ts +4 -0
- package/dist/ArraySingle/Inner.d.ts +4 -0
- package/dist/ArraySingle/index.d.ts +4 -0
- package/dist/ArraySingle/types.d.ts +16 -0
- package/dist/ContainerDimensions/index.d.ts +9 -0
- package/dist/GlobalModal/index.d.ts +8 -0
- package/dist/GlobalModal/utils.d.ts +65 -0
- package/dist/LazyAntd/AutoComplete/Inner.d.ts +3 -0
- package/dist/LazyAntd/AutoComplete/index.d.ts +9 -0
- package/dist/LazyAntd/Checkbox/GroupInner.d.ts +3 -0
- package/dist/LazyAntd/Checkbox/Inner.d.ts +2 -0
- package/dist/LazyAntd/Checkbox/index.d.ts +9 -0
- package/dist/LazyAntd/ColorPicker/Inner.d.ts +3 -0
- package/dist/LazyAntd/ColorPicker/index.d.ts +42 -0
- package/dist/LazyAntd/DatePicker/Base/Calendar.d.ts +3 -0
- package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +37 -0
- package/dist/LazyAntd/DatePicker/Base/index.d.ts +62 -0
- package/dist/LazyAntd/DatePicker/Calendar.d.ts +5 -0
- package/dist/LazyAntd/DatePicker/DatePicker.d.ts +12 -0
- package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +11 -0
- package/dist/LazyAntd/DatePicker/RangePicker.d.ts +19 -0
- package/dist/LazyAntd/DatePicker/TimePicker.d.ts +12 -0
- package/dist/LazyAntd/DatePicker/index.d.ts +5 -0
- package/dist/LazyAntd/Dropdown/Button.d.ts +2 -0
- package/dist/LazyAntd/Dropdown/Inner.d.ts +2 -0
- package/dist/LazyAntd/Dropdown/index.d.ts +10 -0
- package/dist/LazyAntd/Form/FormItemInner.d.ts +2 -0
- package/dist/LazyAntd/Form/Inner.d.ts +2 -0
- package/dist/LazyAntd/Form/index.d.ts +9 -0
- package/dist/LazyAntd/Modal/Inner.d.ts +3 -0
- package/dist/LazyAntd/Modal/index.d.ts +3 -0
- package/dist/LazyAntd/Pagination/Inner.d.ts +2 -0
- package/dist/LazyAntd/Pagination/index.d.ts +3 -0
- package/dist/LazyAntd/QRCode/Inner.d.ts +3 -0
- package/dist/LazyAntd/QRCode/index.d.ts +2 -0
- package/dist/LazyAntd/Select/Inner.d.ts +2 -0
- package/dist/LazyAntd/Select/OptionInner.d.ts +1 -0
- package/dist/LazyAntd/Select/index.d.ts +9 -0
- package/dist/LazyAntd/Switch/index.d.ts +1 -0
- package/dist/LazyAntd/Table/Inner.d.ts +2 -0
- package/dist/LazyAntd/Table/index.d.ts +3 -0
- package/dist/LazyAntd/Tree/DirectoryTreeInner.d.ts +2 -0
- package/dist/LazyAntd/Tree/Inner.d.ts +3 -0
- package/dist/LazyAntd/Tree/TreeNodeInner.d.ts +3 -0
- package/dist/LazyAntd/Tree/index.d.ts +14 -0
- package/dist/LazyAntd/TreeSelect/Inner.d.ts +2 -0
- package/dist/LazyAntd/TreeSelect/index.d.ts +3 -0
- package/dist/LazyAntd/index.d.ts +14 -0
- package/dist/Monaco/Inner.d.ts +4 -0
- package/dist/Monaco/index.d.ts +6 -0
- package/dist/Monaco/types.d.ts +9 -0
- package/dist/MyAutoComplete/Inner.d.ts +3 -0
- package/dist/MyAutoComplete/index.d.ts +5 -0
- package/dist/MyAutoComplete/types.d.ts +25 -0
- package/dist/MyAutoComplete/useConfig.d.ts +11 -0
- package/dist/MyButton/index.d.ts +10 -0
- package/dist/MyCheckbox/Display.d.ts +6 -0
- package/dist/MyCheckbox/Inner.d.ts +5 -0
- package/dist/MyCheckbox/components.d.ts +201 -0
- package/dist/MyCheckbox/index.d.ts +6 -0
- package/dist/MyCheckbox/types.d.ts +65 -0
- package/dist/MyCheckbox/utils.d.ts +3 -0
- package/dist/MyColor/index.d.ts +4 -0
- package/dist/MyColor/types.d.ts +6 -0
- package/dist/MyDatePicker/Display.d.ts +3 -0
- package/dist/MyDatePicker/Inner.d.ts +5 -0
- package/dist/MyDatePicker/index.d.ts +8 -0
- package/dist/MyDatePicker/utils.d.ts +26 -0
- package/dist/MyIconSelect/MyIcon.d.ts +2 -0
- package/dist/MyIconSelect/MyIconSelect.d.ts +5 -0
- package/dist/MyIconSelect/index.d.ts +6 -0
- package/dist/MyIconSelect/types.d.ts +16 -0
- package/dist/MyIconSelect/utils.d.ts +7 -0
- package/dist/MyInput/index.d.ts +5 -0
- package/dist/MyInput/types.d.ts +7 -0
- package/dist/MyInputNumber/index.d.ts +5 -0
- package/dist/MyInputNumber/types.d.ts +9 -0
- package/dist/MyLazyComponent/index.d.ts +6 -0
- package/dist/MyRangeDate/Display.d.ts +2 -0
- package/dist/MyRangeDate/Inner.d.ts +6 -0
- package/dist/MyRangeDate/index.d.ts +7 -0
- package/dist/MyRangeDate/utils.d.ts +40 -0
- package/dist/MySelect/Display.d.ts +3 -0
- package/dist/MySelect/Inner.d.ts +4 -0
- package/dist/MySelect/components.d.ts +201 -0
- package/dist/MySelect/index.d.ts +8 -0
- package/dist/MySelect/types.d.ts +29 -0
- package/dist/MySelect/utils.d.ts +1 -0
- package/dist/MySwitch/index.d.ts +4 -0
- package/dist/MySwitch/types.d.ts +10 -0
- package/dist/a_chunks/ArrayInput.DispalyInner.js +78 -0
- package/dist/a_chunks/ArrayInput.Inner.js +129 -0
- package/dist/a_chunks/ArraySingle.DispalyInner.js +15 -0
- package/dist/a_chunks/ArraySingle.Inner.js +166 -0
- package/dist/a_chunks/Base.Calendar.js +4 -0
- package/dist/a_chunks/Base.DatePicker.js +5 -0
- package/dist/a_chunks/Checkbox.GroupInner.js +9 -0
- package/dist/a_chunks/Checkbox.Inner.js +9 -0
- package/dist/a_chunks/ColorPicker.Inner.js +9 -0
- package/dist/a_chunks/Dropdown.Button.js +9 -0
- package/dist/a_chunks/Dropdown.Inner.js +9 -0
- package/dist/a_chunks/Form.FormItemInner.js +9 -0
- package/dist/a_chunks/Form.Inner.js +9 -0
- package/dist/a_chunks/Modal.Inner.js +9 -0
- package/dist/a_chunks/Monaco.Inner.js +37 -0
- package/dist/a_chunks/MyAutoComplete.Inner.js +212 -0
- package/dist/a_chunks/MyCheckbox.Display.js +18 -0
- package/dist/a_chunks/MyCheckbox.Inner.js +245 -0
- package/dist/a_chunks/MyDatePicker.Inner.js +117 -0
- package/dist/a_chunks/MyIconSelect.MyIcon.js +8 -0
- package/dist/a_chunks/MyIconSelect.MyIconSelect.js +68 -0
- package/dist/a_chunks/MyRangeDate.Inner.js +66 -0
- package/dist/a_chunks/MySelect.Inner.js +172 -0
- package/dist/a_chunks/Pagination.Inner.js +19 -0
- package/dist/a_chunks/QRCode.Inner.js +9 -0
- package/dist/a_chunks/Select.Inner.js +9 -0
- package/dist/a_chunks/Table.Inner.js +9 -0
- package/dist/a_chunks/Tree.DirectoryTreeInner.js +9 -0
- package/dist/a_chunks/Tree.Inner.js +11 -0
- package/dist/a_chunks/TreeSelect.Inner.js +9 -0
- package/dist/a_chunks/components.js +7 -0
- package/dist/a_chunks/index.js +1414 -0
- package/dist/a_chunks/index.module.js +10 -0
- package/dist/a_chunks/utils.js +59 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/packs.d.ts +215 -0
- package/dist/util-types/comp.d.ts +12 -0
- package/dist/util-types/fd/FormItemLayout.d.ts +5 -0
- package/dist/util-types/fd/InputType.d.ts +1 -0
- package/dist/util-types/fd/Rules.d.ts +4 -0
- package/dist/util-types/fd/SpecialConfig.d.ts +33 -0
- package/dist/util-types/fd/TranferRules.d.ts +9 -0
- package/dist/util-types/fd/index.d.ts +230 -0
- package/dist/util-types/index.d.ts +2 -0
- package/dist/utils/getInputStyle.d.ts +14 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/msmc.d.ts +50 -0
- package/dist/utils/new.d.ts +18 -0
- package/dist/utils/other.d.ts +4 -0
- package/dist/utils/use_array_marshal.d.ts +5 -0
- package/package.json +4 -4
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TCommonComponent } from '../util-types';
|
|
2
|
+
import { IMyDatePickerProps } from './utils';
|
|
3
|
+
export { IMyDatePickerProps as ICusDatePickerProps, UNKNOWN_TIME_SYMBOL } from './utils';
|
|
4
|
+
declare const MyDatePickerInner: TCommonComponent<IMyDatePickerProps, string>;
|
|
5
|
+
export default MyDatePickerInner;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TCommonComponent } from '../util-types';
|
|
2
|
+
import { IMyDatePickerProps } from './utils';
|
|
3
|
+
export { formatDatePickerProps } from './utils';
|
|
4
|
+
export { IMyDatePickerProps as ICusDatePickerProps, UNKNOWN_TIME_SYMBOL } from './utils';
|
|
5
|
+
export { TMyDatePicker };
|
|
6
|
+
type TMyDatePicker = TCommonComponent<IMyDatePickerProps, string>;
|
|
7
|
+
declare const MyDatePicker: TMyDatePicker;
|
|
8
|
+
export default MyDatePicker;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DatePickerProps } from 'src/LazyAntd';
|
|
2
|
+
export declare const defaultGetPopupContainer: () => HTMLElement;
|
|
3
|
+
export declare function areEqual(prevProps: any, nextProps: any): boolean;
|
|
4
|
+
export declare const UNKNOWN_TIME_SYMBOL = "1970-01-01 00:00:00";
|
|
5
|
+
export type IMyDatePickerProps = {
|
|
6
|
+
time_only?: boolean;
|
|
7
|
+
value?: any;
|
|
8
|
+
onChange?: any;
|
|
9
|
+
valueType?: any;
|
|
10
|
+
minDate?: any;
|
|
11
|
+
maxDate?: any;
|
|
12
|
+
validDate?: any;
|
|
13
|
+
getPopupContainer?: any;
|
|
14
|
+
format?: any;
|
|
15
|
+
showUnknown?: boolean;
|
|
16
|
+
unknown?: boolean;
|
|
17
|
+
} & Omit<DatePickerProps, 'value'>;
|
|
18
|
+
export type ICommonProps = {
|
|
19
|
+
format?: any;
|
|
20
|
+
time_only?: boolean;
|
|
21
|
+
showTime?: any;
|
|
22
|
+
getPopupContainer?: any;
|
|
23
|
+
};
|
|
24
|
+
export declare function formatDatePickerProps<T extends ICommonProps>(props: T): T;
|
|
25
|
+
export declare function getIsUnknown(props: IMyDatePickerProps): boolean | undefined;
|
|
26
|
+
export declare const handleChangeValue: ({ valueType, format }: IMyDatePickerProps, date?: any) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TCommonComponent } from '../util-types';
|
|
2
|
+
import { IMyIconSelectProps } from './types';
|
|
3
|
+
export * from './types';
|
|
4
|
+
declare const MyIcon: import("react").LazyExoticComponent<typeof import("./MyIcon").default>;
|
|
5
|
+
declare const MyIconSelect: TCommonComponent<IMyIconSelectProps, string>;
|
|
6
|
+
export { MyIcon, 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 {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IconComponentProps } from '@ant-design/icons/lib/components/Icon';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { IMyIconSelectProps } from './types';
|
|
4
|
+
export declare function use_icon(props: IMyIconSelectProps): {
|
|
5
|
+
all_keys: string[];
|
|
6
|
+
render_Icon: (t?: string, p?: IconComponentProps) => React.JSX.Element | null;
|
|
7
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InputNumberProps } from 'antd';
|
|
2
|
+
export type { InputNumberProps as RcInputNumberProps, ValueType } from 'rc-input-number';
|
|
3
|
+
export type * from '@rc-component/mini-decimal/es/interface';
|
|
4
|
+
export type IMyInputNumberProps = Omit<InputNumberProps, 'onChange' | 'value'> & {
|
|
5
|
+
unknown?: boolean;
|
|
6
|
+
warning?: boolean;
|
|
7
|
+
value?: any;
|
|
8
|
+
onChange?: (v: any) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IMyRangePickerProps } from './utils';
|
|
3
|
+
export { IMyRangePickerProps } from './utils';
|
|
4
|
+
declare function MyRangePickerInner(_props: IMyRangePickerProps): React.JSX.Element;
|
|
5
|
+
declare const RangePicker_: typeof MyRangePickerInner;
|
|
6
|
+
export default RangePicker_;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TCommonComponent } from '../util-types';
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AnyObject } from '@noah-libjs/utils';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export declare const defaultGetPopupContainer: () => HTMLElement;
|
|
5
|
+
export declare function areEqual(prevProps: IMyRangePickerProps, nextProps: IMyRangePickerProps): boolean;
|
|
6
|
+
type RangeValue<T> = any[];
|
|
7
|
+
export type MyValue = RangeValue<Dayjs | string | null | undefined> | string | null | undefined;
|
|
8
|
+
export type IMyRangePickerProps = {
|
|
9
|
+
marshal?: number;
|
|
10
|
+
value?: MyValue;
|
|
11
|
+
onChange?: (value: MyValue) => void;
|
|
12
|
+
linker?: string;
|
|
13
|
+
minDate?: any;
|
|
14
|
+
maxDate?: any;
|
|
15
|
+
validDate?: any;
|
|
16
|
+
getPopupContainer?: any;
|
|
17
|
+
format?: any;
|
|
18
|
+
showUnknown?: boolean;
|
|
19
|
+
placeholder?: any;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
showTime?: AnyObject<Dayjs[]>;
|
|
22
|
+
};
|
|
23
|
+
export declare function process_value_remote(value: MyValue, marshal: number, linker: string): any[];
|
|
24
|
+
export declare function format_range_props(props: IMyRangePickerProps): {
|
|
25
|
+
marshal?: number;
|
|
26
|
+
value?: MyValue;
|
|
27
|
+
onChange?: (value: MyValue) => void;
|
|
28
|
+
linker?: string;
|
|
29
|
+
minDate?: any;
|
|
30
|
+
maxDate?: any;
|
|
31
|
+
validDate?: any;
|
|
32
|
+
getPopupContainer?: any;
|
|
33
|
+
format?: any;
|
|
34
|
+
showUnknown?: boolean;
|
|
35
|
+
placeholder?: any;
|
|
36
|
+
style?: React.CSSProperties;
|
|
37
|
+
showTime?: AnyObject<Dayjs[]>;
|
|
38
|
+
};
|
|
39
|
+
export declare const handleChangeValue: ({ format, marshal, linker }: IMyRangePickerProps, date?: (Dayjs | null)[]) => string | (string | null)[] | null;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
export declare const componentMap: {
|
|
2
|
+
Divider: import("react").FC<import("antd").DividerProps>;
|
|
3
|
+
MyIconSelect: import("..").TCommonComponent<import("src/packs").IMyIconSelectProps, string>;
|
|
4
|
+
MI: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
|
|
5
|
+
input: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
|
|
6
|
+
Input: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
|
|
7
|
+
MyInput: import("..").TCommonComponent<import("src/packs").IMyInputProps, string>;
|
|
8
|
+
MyInputNumber: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
|
|
9
|
+
InputNumber: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
|
|
10
|
+
input_number: import("..").TCommonComponent<import("../MyInputNumber").IMyInputNumberProps>;
|
|
11
|
+
MyDatePicker: import("src/packs").TMyDatePicker;
|
|
12
|
+
DatePicker: import("src/packs").TMyDatePicker;
|
|
13
|
+
DP: import("src/packs").TMyDatePicker;
|
|
14
|
+
single_date_picker: import("src/packs").TMyDatePicker;
|
|
15
|
+
CusDatePicker: import("src/packs").TMyDatePicker;
|
|
16
|
+
date: import("src/packs").TMyDatePicker;
|
|
17
|
+
MyRangePicker: import("react").FunctionComponent<{
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
20
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
21
|
+
isDisplay?: boolean;
|
|
22
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
23
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
26
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
27
|
+
isDisplay?: boolean;
|
|
28
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
29
|
+
};
|
|
30
|
+
RangePicker: import("react").FunctionComponent<{
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
33
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
34
|
+
isDisplay?: boolean;
|
|
35
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
36
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
39
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
40
|
+
isDisplay?: boolean;
|
|
41
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
42
|
+
};
|
|
43
|
+
rangePicker: import("react").FunctionComponent<{
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
46
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
47
|
+
isDisplay?: boolean;
|
|
48
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
49
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
52
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
53
|
+
isDisplay?: boolean;
|
|
54
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
55
|
+
};
|
|
56
|
+
range_picker: import("react").FunctionComponent<{
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
59
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
60
|
+
isDisplay?: boolean;
|
|
61
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
62
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
65
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
66
|
+
isDisplay?: boolean;
|
|
67
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
68
|
+
};
|
|
69
|
+
MyRangeDate: import("react").FunctionComponent<{
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
72
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
73
|
+
isDisplay?: boolean;
|
|
74
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
75
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
78
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
79
|
+
isDisplay?: boolean;
|
|
80
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
81
|
+
};
|
|
82
|
+
RangeDate: import("react").FunctionComponent<{
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
85
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
86
|
+
isDisplay?: boolean;
|
|
87
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
88
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
91
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
92
|
+
isDisplay?: boolean;
|
|
93
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
94
|
+
};
|
|
95
|
+
rangeDate: import("react").FunctionComponent<{
|
|
96
|
+
disabled?: boolean;
|
|
97
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
98
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
99
|
+
isDisplay?: boolean;
|
|
100
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
101
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
104
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
105
|
+
isDisplay?: boolean;
|
|
106
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
107
|
+
};
|
|
108
|
+
range_date: import("react").FunctionComponent<{
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
111
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
112
|
+
isDisplay?: boolean;
|
|
113
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
114
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
115
|
+
disabled?: boolean;
|
|
116
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
117
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
118
|
+
isDisplay?: boolean;
|
|
119
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
120
|
+
};
|
|
121
|
+
MyRangeDateTime: import("react").FunctionComponent<{
|
|
122
|
+
disabled?: boolean;
|
|
123
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
124
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
125
|
+
isDisplay?: boolean;
|
|
126
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
127
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
128
|
+
disabled?: boolean;
|
|
129
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
130
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
131
|
+
isDisplay?: boolean;
|
|
132
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
133
|
+
};
|
|
134
|
+
RangeDateTime: import("react").FunctionComponent<{
|
|
135
|
+
disabled?: boolean;
|
|
136
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
137
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
138
|
+
isDisplay?: boolean;
|
|
139
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
140
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
141
|
+
disabled?: boolean;
|
|
142
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
143
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
144
|
+
isDisplay?: boolean;
|
|
145
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
146
|
+
};
|
|
147
|
+
rangeDateTime: import("react").FunctionComponent<{
|
|
148
|
+
disabled?: boolean;
|
|
149
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
150
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
151
|
+
isDisplay?: boolean;
|
|
152
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
153
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
154
|
+
disabled?: boolean;
|
|
155
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
156
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
157
|
+
isDisplay?: boolean;
|
|
158
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
159
|
+
};
|
|
160
|
+
range_date_time: import("react").FunctionComponent<{
|
|
161
|
+
disabled?: boolean;
|
|
162
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
163
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
164
|
+
isDisplay?: boolean;
|
|
165
|
+
} & import("src/packs").IMyRangePickerProps> & {
|
|
166
|
+
DisplayFC?: import("react").FunctionComponent<{
|
|
167
|
+
disabled?: boolean;
|
|
168
|
+
value?: import("../MyRangeDate/utils").MyValue;
|
|
169
|
+
onChange?(v: import("../MyRangeDate/utils").MyValue, v2?: any): void;
|
|
170
|
+
isDisplay?: boolean;
|
|
171
|
+
} & import("src/packs").IMyRangePickerProps> | undefined;
|
|
172
|
+
};
|
|
173
|
+
MyColor: import("..").TCommonComponent<import("../MyColor/types").IMyColorProps>;
|
|
174
|
+
MySwitch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
|
|
175
|
+
switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
|
|
176
|
+
Switch: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
|
|
177
|
+
MSW: import("..").TCommonComponent<import("../MySwitch/types").IMySwitchProps, boolean>;
|
|
178
|
+
ArrayInput: import("..").TCommonComponent<import("src/packs").IArrayInputProps, string>;
|
|
179
|
+
ArraySingle: import("..").TCommonComponent<import("src/packs").IArraySingleProps, string>;
|
|
180
|
+
MySelect: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
|
|
181
|
+
DisplayFC: typeof import("./Display").DisplayFC;
|
|
182
|
+
};
|
|
183
|
+
MS: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
|
|
184
|
+
DisplayFC: typeof import("./Display").DisplayFC;
|
|
185
|
+
};
|
|
186
|
+
Select: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
|
|
187
|
+
DisplayFC: typeof import("./Display").DisplayFC;
|
|
188
|
+
};
|
|
189
|
+
select: import("react").LazyExoticComponent<import("..").TCommonComponent<import("src/packs").IMySelectProps, string | number>> & {
|
|
190
|
+
DisplayFC: typeof import("./Display").DisplayFC;
|
|
191
|
+
};
|
|
192
|
+
MyCheckbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
|
|
193
|
+
Checkbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
|
|
194
|
+
MC: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
|
|
195
|
+
checkbox: import("..").TCommonComponent<import("src/packs").IMyCheckboxProps>;
|
|
196
|
+
MyButton: typeof import("src/packs").MyButton;
|
|
197
|
+
MyAutoComplete: import("..").TCommonComponent<import("src/packs").MyAutoCompleteProps>;
|
|
198
|
+
MA: import("..").TCommonComponent<import("src/packs").MyAutoCompleteProps>;
|
|
199
|
+
AutoComplete: import("..").TCommonComponent<import("src/packs").MyAutoCompleteProps>;
|
|
200
|
+
autocomplete: import("..").TCommonComponent<import("src/packs").MyAutoCompleteProps>;
|
|
201
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IMySelectProps } from './types';
|
|
2
|
+
import { DisplayFC } from './Display';
|
|
3
|
+
export { IMySelectProps };
|
|
4
|
+
declare const Inner: import("react").LazyExoticComponent<import("..").TCommonComponent<IMySelectProps, string | number>>;
|
|
5
|
+
type IMySelect = typeof Inner & {
|
|
6
|
+
DisplayFC: typeof DisplayFC;
|
|
7
|
+
};
|
|
8
|
+
export declare const MySelect: IMySelect;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AutoCompleteProps, SelectProps } from 'antd';
|
|
2
|
+
import { IMyCheckboxProps } from '../MyCheckbox';
|
|
3
|
+
import { IMyDatePickerProps } from '../MyDatePicker/utils';
|
|
4
|
+
import { IMyInputProps } from '../MyInput';
|
|
5
|
+
import { IMyInputNumberProps } from '../MyInputNumber';
|
|
6
|
+
import { TMarshal, TMode } from '../utils';
|
|
7
|
+
import { TOptions } from '../util-types';
|
|
8
|
+
import { T_FETCH_OPTIONS } from '@noah-libjs/request';
|
|
9
|
+
interface IBase<T, P> {
|
|
10
|
+
inputType: T;
|
|
11
|
+
props: P;
|
|
12
|
+
text: string;
|
|
13
|
+
}
|
|
14
|
+
export type TOption = IBase<'AutoComplete', AutoCompleteProps> | IBase<'CusDatePicker', IMyDatePickerProps> | IBase<'DatePicker', IMyDatePickerProps> | IBase<'MyInput', IMyInputProps> | IBase<'InputNumber', IMyInputNumberProps> | IBase<'Checkbox', IMyCheckboxProps> | IBase<'MyCheckbox', IMyCheckboxProps> | IBase<'MC', IMyCheckboxProps>;
|
|
15
|
+
export interface IMySelectProps extends Omit<SelectProps<any>, 'options'> {
|
|
16
|
+
type?: TMode;
|
|
17
|
+
options?: TOptions | (() => TOptions);
|
|
18
|
+
optionKey?: string;
|
|
19
|
+
uniqueKey?: string;
|
|
20
|
+
value?: any;
|
|
21
|
+
onChange?(v: any): void;
|
|
22
|
+
marshal?: TMarshal;
|
|
23
|
+
startIndex?: number;
|
|
24
|
+
useString?: boolean;
|
|
25
|
+
useDefault?: boolean;
|
|
26
|
+
fetch_options?: T_FETCH_OPTIONS;
|
|
27
|
+
fetch_options_on_open?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SwitchProps } from "antd";
|
|
2
|
+
import { SizeType } from "antd/lib/config-provider/SizeContext";
|
|
3
|
+
export type IMySwitchProps = SwitchProps & {
|
|
4
|
+
size?: SizeType;
|
|
5
|
+
checked_value?: any;
|
|
6
|
+
unchecked_value?: any;
|
|
7
|
+
checked_text?: string;
|
|
8
|
+
unchecked_text?: string;
|
|
9
|
+
switch_type?: 'switch' | 'checkbox';
|
|
10
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import React__default, { useEffect } from 'react';
|
|
5
|
+
import { c as componentMap } from './components.js';
|
|
6
|
+
import { u as use_options } from './index.js';
|
|
7
|
+
import '@noah-libjs/utils';
|
|
8
|
+
import 'antd';
|
|
9
|
+
import 'dayjs';
|
|
10
|
+
import 'rc-select';
|
|
11
|
+
import 'rc-tree';
|
|
12
|
+
import '@noah-libjs/request';
|
|
13
|
+
var DisplayFC = function DisplayFC(props) {
|
|
14
|
+
var value = props.value,
|
|
15
|
+
_props$separator = props.separator,
|
|
16
|
+
separator = _props$separator === void 0 ? ',' : _props$separator,
|
|
17
|
+
_props$marshal = props.marshal,
|
|
18
|
+
marshal = _props$marshal === void 0 ? 1 : _props$marshal;
|
|
19
|
+
// const _options = parse_MC_option(props)
|
|
20
|
+
// const [_value, set_value] = useState<any[]>([])
|
|
21
|
+
var _use_options = use_options(props),
|
|
22
|
+
_options = _use_options.options,
|
|
23
|
+
loading = _use_options.loading,
|
|
24
|
+
_value = _use_options.data,
|
|
25
|
+
setData = _use_options.setData;
|
|
26
|
+
useEffect(function () {
|
|
27
|
+
// const arr = nMarshal == 0 ? value?.split(',') : (nMarshal === 1 ? safe_json_parse_arr(value) : value)
|
|
28
|
+
// const v = Array.isArray(arr) ? arr : []
|
|
29
|
+
// set_value(v)
|
|
30
|
+
return function () {};
|
|
31
|
+
}, [value]);
|
|
32
|
+
var isEmpty = _value.every(function (_) {
|
|
33
|
+
return !_;
|
|
34
|
+
});
|
|
35
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
36
|
+
style: {
|
|
37
|
+
display: 'inline-block'
|
|
38
|
+
}
|
|
39
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
40
|
+
style: {
|
|
41
|
+
display: 'flex',
|
|
42
|
+
alignItems: 'center'
|
|
43
|
+
}
|
|
44
|
+
}, isEmpty ? '--' : _options.map(function (o, idx) {
|
|
45
|
+
var _componentMap$o$input, _o$props, _ref;
|
|
46
|
+
var C = componentMap[o.inputType];
|
|
47
|
+
var _DisplayFC = (_componentMap$o$input = componentMap[o.inputType]) === null || _componentMap$o$input === void 0 ? void 0 : _componentMap$o$input.DisplayFC;
|
|
48
|
+
var props = (_o$props = o.props) !== null && _o$props !== void 0 ? _o$props : {};
|
|
49
|
+
var DisplayFC = (_ref = _DisplayFC !== null && _DisplayFC !== void 0 ? _DisplayFC : C === null || C === void 0 ? void 0 : C.DisplayFC) !== null && _ref !== void 0 ? _ref : function (_ref2) {
|
|
50
|
+
var value = _ref2.value;
|
|
51
|
+
return /*#__PURE__*/React__default.createElement("span", null, value !== null && value !== void 0 ? value : '--');
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
54
|
+
key: o.value,
|
|
55
|
+
style: {
|
|
56
|
+
display: 'flex',
|
|
57
|
+
alignItems: 'center'
|
|
58
|
+
}
|
|
59
|
+
}, o.prefix ? /*#__PURE__*/React__default.createElement("span", {
|
|
60
|
+
style: {
|
|
61
|
+
margin: '0 2px',
|
|
62
|
+
whiteSpace: 'nowrap'
|
|
63
|
+
}
|
|
64
|
+
}, o.prefix) : null, /*#__PURE__*/React__default.createElement(DisplayFC, _objectSpread({
|
|
65
|
+
value: _value[idx]
|
|
66
|
+
}, props)), o.suffix ? /*#__PURE__*/React__default.createElement("span", {
|
|
67
|
+
style: {
|
|
68
|
+
margin: '0 2px',
|
|
69
|
+
whiteSpace: 'nowrap'
|
|
70
|
+
}
|
|
71
|
+
}, o.suffix) : null, idx === _options.length - 1 ? null : /*#__PURE__*/React__default.createElement("span", {
|
|
72
|
+
style: {
|
|
73
|
+
margin: '0 2px'
|
|
74
|
+
}
|
|
75
|
+
}, separator));
|
|
76
|
+
})));
|
|
77
|
+
};
|
|
78
|
+
export { DisplayFC as default };
|