amis-ui 6.13.0-beta.8 → 6.13.0
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/esm/components/404.d.ts +53 -0
- package/esm/components/404.js +35 -0
- package/esm/components/Alert.d.ts +615 -0
- package/esm/components/Alert.js +266 -0
- package/esm/components/Alert2.d.ts +117 -0
- package/esm/components/Alert2.js +58 -0
- package/esm/components/AlphabetIndexer.d.ts +11 -0
- package/esm/components/AlphabetIndexer.js +48 -0
- package/esm/components/AnchorNav.d.ts +162 -0
- package/esm/components/AnchorNav.js +153 -0
- package/esm/components/AnchorNavSection.d.ts +2 -0
- package/esm/components/AnchorNavSection.js +7 -0
- package/esm/components/ArrayInput.d.ts +617 -0
- package/esm/components/ArrayInput.js +147 -0
- package/esm/components/AsideNav.d.ts +142 -0
- package/esm/components/AsideNav.js +133 -0
- package/esm/components/AssociatedSelection.d.ts +564 -0
- package/esm/components/AssociatedSelection.js +107 -0
- package/esm/components/AutoFoldedList.d.ts +87 -0
- package/esm/components/AutoFoldedList.js +124 -0
- package/esm/components/AutoSizer.d.ts +2 -0
- package/esm/components/AutoSizer.js +8 -0
- package/esm/components/Avatar.d.ts +374 -0
- package/esm/components/Avatar.js +126 -0
- package/esm/components/Badge.d.ts +118 -0
- package/esm/components/Badge.js +154 -0
- package/esm/components/BaiduMapPicker.d.ts +100 -0
- package/esm/components/BaiduMapPicker.js +366 -0
- package/esm/components/BarCode.d.ts +56 -0
- package/esm/components/BarCode.js +42 -0
- package/esm/components/Breadcrumb.d.ts +115 -0
- package/esm/components/Breadcrumb.js +160 -0
- package/esm/components/Button.d.ts +147 -0
- package/esm/components/Button.js +63 -0
- package/esm/components/CalendarMobile.d.ts +431 -0
- package/esm/components/CalendarMobile.js +538 -0
- package/esm/components/Card.d.ts +444 -0
- package/esm/components/Card.js +88 -0
- package/esm/components/Cascader.d.ts +108 -0
- package/esm/components/Cascader.js +515 -0
- package/esm/components/ChainedDropdownSelection.d.ts +561 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.d.ts +554 -0
- package/esm/components/ChainedSelection.js +184 -0
- package/esm/components/Checkbox.d.ts +110 -0
- package/esm/components/Checkbox.js +87 -0
- package/esm/components/CityArea.d.ts +299 -0
- package/esm/components/CityArea.js +190 -0
- package/esm/components/CityDB.d.ts +13 -0
- package/esm/components/CityDB.js +3942 -0
- package/esm/components/CodeMirror.d.ts +29 -0
- package/esm/components/CodeMirror.js +140 -0
- package/esm/components/Collapse.d.ts +447 -0
- package/esm/components/Collapse.js +184 -0
- package/esm/components/CollapseGroup.d.ts +219 -0
- package/esm/components/CollapseGroup.js +117 -0
- package/esm/components/ColorPicker.d.ts +530 -0
- package/esm/components/ColorPicker.js +260 -0
- package/esm/components/Combo.d.ts +354 -0
- package/esm/components/Combo.js +212 -0
- package/esm/components/ConditionBuilder.d.ts +2 -0
- package/esm/components/ConditionBuilder.js +7 -0
- package/esm/components/ConfirmBox.d.ts +322 -0
- package/esm/components/ConfirmBox.js +129 -0
- package/esm/components/ContextMenu.d.ts +115 -0
- package/esm/components/ContextMenu.js +310 -0
- package/esm/components/DatePicker.d.ts +638 -0
- package/esm/components/DatePicker.js +717 -0
- package/esm/components/DateRangePicker.d.ts +1046 -0
- package/esm/components/DateRangePicker.js +1386 -0
- package/esm/components/DiffEditor.d.ts +21 -0
- package/esm/components/DiffEditor.js +119 -0
- package/esm/components/DndContainer.d.ts +205 -0
- package/esm/components/DndContainer.js +25 -0
- package/esm/components/Drawer.d.ts +159 -0
- package/esm/components/Drawer.js +272 -0
- package/esm/components/DropDownSelection.d.ts +557 -0
- package/esm/components/DropDownSelection.js +78 -0
- package/esm/components/DropdownContextMenus.d.ts +84 -0
- package/esm/components/DropdownContextMenus.js +93 -0
- package/esm/components/Editor.d.ts +681 -0
- package/esm/components/Editor.js +238 -0
- package/esm/components/Form.d.ts +31 -0
- package/esm/components/Form.js +84 -0
- package/esm/components/FormField.d.ts +287 -0
- package/esm/components/FormField.js +78 -0
- package/esm/components/FormulaPicker.d.ts +2 -0
- package/esm/components/FormulaPicker.js +7 -0
- package/esm/components/GaodeMapPicker.d.ts +89 -0
- package/esm/components/GaodeMapPicker.js +204 -0
- package/esm/components/GridNav.d.ts +53 -0
- package/esm/components/GridNav.js +125 -0
- package/esm/components/GridNavItem.d.ts +2 -0
- package/esm/components/GridNavItem.js +7 -0
- package/esm/components/GroupedSelection.d.ts +543 -0
- package/esm/components/GroupedSelection.js +138 -0
- package/esm/components/HeadCellDropDown.d.ts +2 -0
- package/esm/components/HeadCellDropDown.js +7 -0
- package/esm/components/HorizontalScroll.d.ts +75 -0
- package/esm/components/HorizontalScroll.js +271 -0
- package/esm/components/Html.d.ts +82 -0
- package/esm/components/Html.js +52 -0
- package/esm/components/Icon.d.ts +2 -0
- package/esm/components/Icon.js +7 -0
- package/esm/components/ImageGallery.d.ts +465 -0
- package/esm/components/ImageGallery.js +396 -0
- package/esm/components/Input.d.ts +18 -0
- package/esm/components/Input.js +75 -0
- package/esm/components/InputBox.d.ts +100 -0
- package/esm/components/InputBox.js +98 -0
- package/esm/components/InputBoxWithSuggestion.d.ts +272 -0
- package/esm/components/InputBoxWithSuggestion.js +69 -0
- package/esm/components/InputJSONSchema.d.ts +2 -0
- package/esm/components/InputJSONSchema.js +7 -0
- package/esm/components/InputTable.d.ts +317 -0
- package/esm/components/InputTable.js +176 -0
- package/esm/components/JSONSchemaEditor.d.ts +2 -0
- package/esm/components/JSONSchemaEditor.js +7 -0
- package/esm/components/Layout.d.ts +74 -0
- package/esm/components/Layout.js +60 -0
- package/esm/components/Link.d.ts +60 -0
- package/esm/components/Link.js +44 -0
- package/esm/components/ListGroup.d.ts +77 -0
- package/esm/components/ListGroup.js +31 -0
- package/esm/components/ListMenu.d.ts +568 -0
- package/esm/components/ListMenu.js +62 -0
- package/esm/components/LocationPicker.d.ts +467 -0
- package/esm/components/LocationPicker.js +208 -0
- package/esm/components/Markdown.d.ts +25 -0
- package/esm/components/Markdown.js +70 -0
- package/esm/components/Menu.d.ts +2 -0
- package/esm/components/Menu.js +7 -0
- package/esm/components/MixedInput.d.ts +55 -0
- package/esm/components/MixedInput.js +88 -0
- package/esm/components/MobileDevTool.d.ts +12 -0
- package/esm/components/MobileDevTool.js +312 -0
- package/esm/components/Modal.d.ts +1316 -0
- package/esm/components/Modal.js +261 -0
- package/esm/components/ModalManager.d.ts +17 -0
- package/esm/components/ModalManager.js +42 -0
- package/esm/components/MonthRangePicker.d.ts +744 -0
- package/esm/components/MultilineText.d.ts +454 -0
- package/esm/components/MultilineText.js +90 -0
- package/esm/components/NumberInput.d.ts +201 -0
- package/esm/components/NumberInput.js +274 -0
- package/esm/components/OverflowTpl.d.ts +61 -0
- package/esm/components/OverflowTpl.js +101 -0
- package/esm/components/Pagination.d.ts +812 -0
- package/esm/components/Pagination.js +377 -0
- package/esm/components/PdfViewer.d.ts +49 -0
- package/esm/components/PdfViewer.js +83 -0
- package/esm/components/Picker.d.ts +277 -0
- package/esm/components/Picker.js +73 -0
- package/esm/components/PickerColumn.d.ts +62 -0
- package/esm/components/PickerColumn.js +276 -0
- package/esm/components/PickerContainer.d.ts +291 -0
- package/esm/components/PickerContainer.js +157 -0
- package/esm/components/PopOverContainer.d.ts +59 -0
- package/esm/components/PopOverContainer.js +149 -0
- package/esm/components/PopUp.d.ts +573 -0
- package/esm/components/PopUp.js +85 -0
- package/esm/components/Progress.d.ts +311 -0
- package/esm/components/Progress.js +136 -0
- package/esm/components/PullRefresh.d.ts +79 -0
- package/esm/components/PullRefresh.js +172 -0
- package/esm/components/Radios.d.ts +170 -0
- package/esm/components/Radios.js +129 -0
- package/esm/components/Range.d.ts +131 -0
- package/esm/components/Range.js +517 -0
- package/esm/components/Rating.d.ts +227 -0
- package/esm/components/Rating.js +341 -0
- package/esm/components/ResultBox.d.ts +532 -0
- package/esm/components/ResultBox.js +195 -0
- package/esm/components/ResultList.d.ts +554 -0
- package/esm/components/ResultList.js +254 -0
- package/esm/components/ResultTableList.d.ts +786 -0
- package/esm/components/ResultTableList.js +152 -0
- package/esm/components/ResultTreeList.d.ts +425 -0
- package/esm/components/ResultTreeList.js +241 -0
- package/esm/components/RichText.d.ts +48 -0
- package/esm/components/RichText.js +271 -0
- package/esm/components/SearchBox.d.ts +625 -0
- package/esm/components/SearchBox.js +299 -0
- package/esm/components/Select.d.ts +6498 -0
- package/esm/components/Select.js +815 -0
- package/esm/components/SelectMobile.d.ts +38 -0
- package/esm/components/SelectMobile.js +370 -0
- package/esm/components/Selection.d.ts +598 -0
- package/esm/components/Selection.js +166 -0
- package/esm/components/Shape.d.ts +58 -0
- package/esm/components/Shape.js +429 -0
- package/esm/components/Signature.d.ts +279 -0
- package/esm/components/Signature.js +293 -0
- package/esm/components/Slider.d.ts +56 -0
- package/esm/components/Slider.js +140 -0
- package/esm/components/SparkLine.d.ts +397 -0
- package/esm/components/SparkLine.js +62 -0
- package/esm/components/Spinner.d.ts +266 -0
- package/esm/components/Spinner.js +202 -0
- package/esm/components/Steps.d.ts +117 -0
- package/esm/components/Steps.js +76 -0
- package/esm/components/Switch.d.ts +105 -0
- package/esm/components/Switch.js +73 -0
- package/esm/components/Tab.d.ts +2 -0
- package/esm/components/Tab.js +7 -0
- package/esm/components/Table.d.ts +2 -0
- package/esm/components/Table.js +7 -0
- package/esm/components/TableSelection.d.ts +791 -0
- package/esm/components/TableSelection.js +169 -0
- package/esm/components/Tabs.d.ts +670 -0
- package/esm/components/Tabs.js +607 -0
- package/esm/components/TabsTransfer.d.ts +423 -0
- package/esm/components/TabsTransfer.js +221 -0
- package/esm/components/TabsTransferPicker.d.ts +267 -0
- package/esm/components/TabsTransferPicker.js +81 -0
- package/esm/components/Tag.d.ts +318 -0
- package/esm/components/Tag.js +137 -0
- package/esm/components/Textarea.d.ts +564 -0
- package/esm/components/Textarea.js +147 -0
- package/esm/components/Timeline.d.ts +56 -0
- package/esm/components/Timeline.js +60 -0
- package/esm/components/TimelineItem.d.ts +1292 -0
- package/esm/components/TimelineItem.js +101 -0
- package/esm/components/Tinymce.d.ts +66 -0
- package/esm/components/Tinymce.js +632 -0
- package/esm/components/TitleBar.d.ts +123 -0
- package/esm/components/TitleBar.js +48 -0
- package/esm/components/Toast.d.ts +591 -0
- package/esm/components/Toast.js +247 -0
- package/esm/components/Tooltip.d.ts +65 -0
- package/esm/components/Tooltip.js +36 -0
- package/esm/components/TooltipWrapper.d.ts +217 -0
- package/esm/components/TooltipWrapper.js +181 -0
- package/esm/components/Transfer.d.ts +1844 -0
- package/esm/components/Transfer.js +485 -0
- package/esm/components/TransferDropDown.d.ts +634 -0
- package/esm/components/TransferDropDown.js +98 -0
- package/esm/components/TransferPicker.d.ts +275 -0
- package/esm/components/TransferPicker.js +98 -0
- package/esm/components/TransferSearch.d.ts +283 -0
- package/esm/components/TransferSearch.js +100 -0
- package/esm/components/Tree.d.ts +1953 -0
- package/esm/components/Tree.js +1220 -0
- package/esm/components/TreeSelection.d.ts +601 -0
- package/esm/components/TreeSelection.js +201 -0
- package/esm/components/UserSelect.d.ts +541 -0
- package/esm/components/UserSelect.js +674 -0
- package/esm/components/UserTabSelect.d.ts +315 -0
- package/esm/components/UserTabSelect.js +227 -0
- package/esm/components/VerificationCode.d.ts +116 -0
- package/esm/components/VerificationCode.js +172 -0
- package/esm/components/VirtualList.d.ts +2 -0
- package/esm/components/VirtualList.js +7 -0
- package/esm/components/WithRemoteConfig.d.ts +383 -0
- package/esm/components/WithRemoteConfig.js +302 -0
- package/esm/components/WithStore.d.ts +72 -0
- package/esm/components/WithStore.js +48 -0
- package/esm/components/calendar/Calendar.d.ts +83 -0
- package/esm/components/calendar/Calendar.js +529 -0
- package/esm/components/calendar/CalendarContainer.d.ts +10 -0
- package/esm/components/calendar/CalendarContainer.js +27 -0
- package/esm/components/calendar/DaysView.d.ts +184 -0
- package/esm/components/calendar/DaysView.js +528 -0
- package/esm/components/calendar/MonthsView.d.ts +133 -0
- package/esm/components/calendar/MonthsView.js +175 -0
- package/esm/components/calendar/QuartersView.d.ts +102 -0
- package/esm/components/calendar/QuartersView.js +125 -0
- package/esm/components/calendar/TimeView.d.ts +183 -0
- package/esm/components/calendar/TimeView.js +559 -0
- package/esm/components/calendar/YearsView.d.ts +102 -0
- package/esm/components/calendar/YearsView.js +122 -0
- package/esm/components/condition-builder/Expression.d.ts +292 -0
- package/esm/components/condition-builder/Expression.js +121 -0
- package/esm/components/condition-builder/Field.d.ts +272 -0
- package/esm/components/condition-builder/Field.js +32 -0
- package/esm/components/condition-builder/Formula.d.ts +261 -0
- package/esm/components/condition-builder/Func.d.ts +273 -0
- package/esm/components/condition-builder/Func.js +75 -0
- package/esm/components/condition-builder/Group.d.ts +310 -0
- package/esm/components/condition-builder/Group.js +191 -0
- package/esm/components/condition-builder/GroupOrItem.d.ts +87 -0
- package/esm/components/condition-builder/GroupOrItem.js +105 -0
- package/esm/components/condition-builder/InputSwitch.d.ts +47 -0
- package/esm/components/condition-builder/InputSwitch.js +28 -0
- package/esm/components/condition-builder/Item.d.ts +287 -0
- package/esm/components/condition-builder/Item.js +232 -0
- package/esm/components/condition-builder/Value.d.ts +274 -0
- package/esm/components/condition-builder/Value.js +114 -0
- package/esm/components/condition-builder/config.d.ts +36 -0
- package/esm/components/condition-builder/config.js +120 -0
- package/esm/components/condition-builder/index.d.ts +319 -0
- package/esm/components/condition-builder/index.js +228 -0
- package/esm/components/condition-builder/types.d.ts +116 -0
- package/esm/components/formula/CodeEditor.d.ts +92 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.d.ts +516 -0
- package/esm/components/formula/Editor.js +446 -0
- package/esm/components/formula/FuncList.d.ts +46 -0
- package/esm/components/formula/FuncList.js +64 -0
- package/esm/components/formula/Input.d.ts +292 -0
- package/esm/components/formula/Input.js +122 -0
- package/esm/components/formula/Picker.d.ts +492 -0
- package/esm/components/formula/Picker.js +454 -0
- package/esm/components/formula/VariableList.d.ts +58 -0
- package/esm/components/formula/VariableList.js +183 -0
- package/esm/components/formula/plugin.d.ts +51 -0
- package/esm/components/formula/plugin.js +372 -0
- package/esm/components/icons.d.ts +61 -0
- package/esm/components/icons.js +458 -0
- package/esm/components/index.d.ts +138 -0
- package/esm/components/json-schema/Array.d.ts +3 -0
- package/esm/components/json-schema/Array.js +129 -0
- package/esm/components/json-schema/Item.d.ts +5 -0
- package/esm/components/json-schema/Item.js +63 -0
- package/esm/components/json-schema/Object.d.ts +5 -0
- package/esm/components/json-schema/Object.js +265 -0
- package/esm/components/json-schema/index.d.ts +272 -0
- package/esm/components/json-schema/index.js +29 -0
- package/esm/components/menu/MenuContext.d.ts +83 -0
- package/esm/components/menu/MenuContext.js +25 -0
- package/esm/components/menu/MenuItem.d.ts +81 -0
- package/esm/components/menu/MenuItem.js +112 -0
- package/esm/components/menu/PanelMenu.d.ts +46 -0
- package/esm/components/menu/PanelMenu.js +68 -0
- package/esm/components/menu/SubMenu.d.ts +84 -0
- package/esm/components/menu/SubMenu.js +137 -0
- package/esm/components/menu/index.d.ts +381 -0
- package/esm/components/menu/index.js +369 -0
- package/esm/components/schema-editor/Array.d.ts +11 -0
- package/esm/components/schema-editor/Array.js +84 -0
- package/esm/components/schema-editor/Common.d.ts +61 -0
- package/esm/components/schema-editor/Common.js +161 -0
- package/esm/components/schema-editor/Item.d.ts +8 -0
- package/esm/components/schema-editor/Item.js +24 -0
- package/esm/components/schema-editor/Object.d.ts +51 -0
- package/esm/components/schema-editor/Object.js +294 -0
- package/esm/components/schema-editor/SchemaVariableList.d.ts +186 -0
- package/esm/components/schema-editor/SchemaVariableList.js +74 -0
- package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
- package/esm/components/schema-editor/SchemaVariableListPicker.js +34 -0
- package/esm/components/schema-editor/index.d.ts +797 -0
- package/esm/components/schema-editor/index.js +122 -0
- package/esm/components/table/Cell.d.ts +36 -0
- package/esm/components/table/Cell.js +43 -0
- package/esm/components/table/ColGroup.d.ts +24 -0
- package/esm/components/table/ColGroup.js +58 -0
- package/esm/components/table/Head.d.ts +45 -0
- package/esm/components/table/Head.js +150 -0
- package/esm/components/table/HeadCellDropDown.d.ts +289 -0
- package/esm/components/table/HeadCellDropDown.js +55 -0
- package/esm/components/table/HeadCellFilter.d.ts +414 -0
- package/esm/components/table/HeadCellFilter.js +131 -0
- package/esm/components/table/HeadCellSelect.d.ts +357 -0
- package/esm/components/table/HeadCellSelect.js +52 -0
- package/esm/components/table/HeadCellSort.d.ts +278 -0
- package/esm/components/table/HeadCellSort.js +88 -0
- package/esm/components/table/ItemActionsWrapper.d.ts +10 -0
- package/esm/components/table/ItemActionsWrapper.js +29 -0
- package/esm/components/table/Row.d.ts +56 -0
- package/esm/components/table/Row.js +224 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.d.ts +852 -0
- package/esm/components/table/index.js +1069 -0
- package/esm/components/table/util.d.ts +56 -0
- package/esm/components/table/util.js +276 -0
- package/esm/components/virtual-list/AutoSizer.d.ts +19 -0
- package/esm/components/virtual-list/AutoSizer.js +49 -0
- package/esm/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/esm/components/virtual-list/SizeAndPositionManager.js +216 -0
- package/esm/components/virtual-list/constants.d.ts +34 -0
- package/esm/components/virtual-list/constants.js +45 -0
- package/esm/components/virtual-list/index.d.ts +99 -0
- package/esm/components/virtual-list/index.js +288 -0
- package/esm/components/withBadge.d.ts +2 -0
- package/esm/components/withBadge.js +7 -0
- package/esm/hooks/index.d.ts +8 -0
- package/esm/hooks/use-click-away.d.ts +12 -0
- package/esm/hooks/use-click-away.js +55 -0
- package/esm/hooks/use-on-screen.d.ts +2 -0
- package/esm/hooks/use-on-screen.js +28 -0
- package/esm/hooks/use-set-state.d.ts +2 -0
- package/esm/hooks/use-set-state.js +19 -0
- package/esm/hooks/use-sub-form.d.ts +4 -0
- package/esm/hooks/use-sub-form.js +39 -0
- package/esm/hooks/use-touch.d.ts +16 -0
- package/esm/hooks/use-touch.js +77 -0
- package/esm/hooks/use-update-effect.d.ts +3 -0
- package/esm/hooks/use-update-effect.js +21 -0
- package/esm/hooks/use-validation-resolver.d.ts +7 -0
- package/esm/hooks/use-validation-resolver.js +115 -0
- package/esm/icons/alert-danger.svg.js +22 -0
- package/esm/icons/alert-info.svg.js +22 -0
- package/esm/icons/alert-success.svg.js +22 -0
- package/esm/icons/alert-warning.svg.js +22 -0
- package/esm/icons/arrow-double-left.svg.js +24 -0
- package/esm/icons/arrow-double-right.svg.js +24 -0
- package/esm/icons/back.svg.js +21 -0
- package/esm/icons/calendar.svg.js +31 -0
- package/esm/icons/caret.svg.js +21 -0
- package/esm/icons/check.svg.js +21 -0
- package/esm/icons/clock.svg.js +29 -0
- package/esm/icons/close-small.svg.js +24 -0
- package/esm/icons/close.svg.js +21 -0
- package/esm/icons/cloud-upload.svg.js +22 -0
- package/esm/icons/column-filter.svg.js +22 -0
- package/esm/icons/columns.svg.js +21 -0
- package/esm/icons/compress-alt.svg.js +21 -0
- package/esm/icons/copy.svg.js +26 -0
- package/esm/icons/date.svg.js +26 -0
- package/esm/icons/department.svg.js +52 -0
- package/esm/icons/desk-empty.svg.js +73 -0
- package/esm/icons/dot.svg.js +36 -0
- package/esm/icons/down-arrow-bold.svg.js +22 -0
- package/esm/icons/down.svg.js +23 -0
- package/esm/icons/download.svg.js +24 -0
- package/esm/icons/drag-bar.svg.js +53 -0
- package/esm/icons/drag.svg.js +22 -0
- package/esm/icons/edit.svg.js +21 -0
- package/esm/icons/ellipsis-v.svg.js +21 -0
- package/esm/icons/enter.svg.js +20 -0
- package/esm/icons/exchange.svg.js +21 -0
- package/esm/icons/expand-alt.svg.js +21 -0
- package/esm/icons/fail.svg.js +31 -0
- package/esm/icons/file.svg.js +22 -0
- package/esm/icons/filter.svg.js +21 -0
- package/esm/icons/folder.svg.js +24 -0
- package/esm/icons/fullscreen.svg.js +21 -0
- package/esm/icons/function.svg.js +21 -0
- package/esm/icons/home.svg.js +21 -0
- package/esm/icons/if.svg.js +21 -0
- package/esm/icons/image.svg.js +20 -0
- package/esm/icons/info-circle.svg.js +21 -0
- package/esm/icons/info.svg.js +27 -0
- package/esm/icons/input-clear.svg.js +20 -0
- package/esm/icons/invisible.svg.js +22 -0
- package/esm/icons/left-arrow.svg.js +23 -0
- package/esm/icons/loading-outline.svg.js +21 -0
- package/esm/icons/location.svg.js +20 -0
- package/esm/icons/menu.svg.js +20 -0
- package/esm/icons/minus.svg.js +21 -0
- package/esm/icons/move.svg.js +22 -0
- package/esm/icons/mute.svg.js +21 -0
- package/esm/icons/new-edit.svg.js +22 -0
- package/esm/icons/pause.svg.js +21 -0
- package/esm/icons/pencil.svg.js +21 -0
- package/esm/icons/play.svg.js +20 -0
- package/esm/icons/plus-cicle.svg.js +20 -0
- package/esm/icons/plus-fine.svg.js +21 -0
- package/esm/icons/plus.svg.js +21 -0
- package/esm/icons/post.svg.js +48 -0
- package/esm/icons/question-mark.svg.js +26 -0
- package/esm/icons/question.svg.js +21 -0
- package/esm/icons/question2.svg.js +34 -0
- package/esm/icons/redo.svg.js +21 -0
- package/esm/icons/refresh.svg.js +21 -0
- package/esm/icons/reload.svg.js +21 -0
- package/esm/icons/remove.svg.js +21 -0
- package/esm/icons/retry.svg.js +24 -0
- package/esm/icons/right-arrow-bold.svg.js +21 -0
- package/esm/icons/right-arrow.svg.js +23 -0
- package/esm/icons/right-double-arrow.svg.js +22 -0
- package/esm/icons/role.svg.js +43 -0
- package/esm/icons/rotate-left.svg.js +22 -0
- package/esm/icons/rotate-right.svg.js +22 -0
- package/esm/icons/rotate-screen.svg.js +21 -0
- package/esm/icons/scale-origin.svg.js +24 -0
- package/esm/icons/schedule.svg.js +24 -0
- package/esm/icons/search.svg.js +21 -0
- package/esm/icons/setting.svg.js +21 -0
- package/esm/icons/slider-handle-icon.svg.js +22 -0
- package/esm/icons/sort-asc.svg.js +21 -0
- package/esm/icons/sort-default.svg.js +21 -0
- package/esm/icons/sort-desc.svg.js +21 -0
- package/esm/icons/star.svg.js +21 -0
- package/esm/icons/status-close.svg.js +23 -0
- package/esm/icons/steps-finsh.svg.js +22 -0
- package/esm/icons/sub-plus.svg.js +20 -0
- package/esm/icons/success.svg.js +29 -0
- package/esm/icons/transparent.svg.js +38 -0
- package/esm/icons/trash.svg.js +22 -0
- package/esm/icons/tree-down.svg.js +21 -0
- package/esm/icons/undo-normal.svg.js +25 -0
- package/esm/icons/undo.svg.js +21 -0
- package/esm/icons/unfullscreen.svg.js +21 -0
- package/esm/icons/upload.svg.js +21 -0
- package/esm/icons/user-remove.svg.js +33 -0
- package/esm/icons/view.svg.js +22 -0
- package/esm/icons/volume.svg.js +24 -0
- package/esm/icons/warning-mark.svg.js +22 -0
- package/esm/icons/warning.svg.js +21 -0
- package/esm/icons/window-restore.svg.js +21 -0
- package/esm/icons/zoom-in.svg.js +21 -0
- package/esm/icons/zoom-out.svg.js +21 -0
- package/esm/index.d.ts +15 -0
- package/esm/index.js +156 -0
- package/esm/locale/de-DE.d.ts +1 -0
- package/esm/locale/de-DE.js +421 -0
- package/esm/locale/en-US.d.ts +1 -0
- package/esm/locale/en-US.js +427 -0
- package/esm/locale/zh-CN.d.ts +1 -0
- package/esm/locale/zh-CN.js +436 -0
- package/esm/themes/ang.d.ts +3 -0
- package/esm/themes/ang.js +15 -0
- package/esm/themes/antd.d.ts +1 -0
- package/esm/themes/antd.js +42 -0
- package/esm/themes/cxd.d.ts +3 -0
- package/esm/themes/cxd.js +455 -0
- package/esm/themes/dark.d.ts +3 -0
- package/esm/themes/dark.js +23 -0
- package/esm/themes/default.d.ts +4 -0
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/smoothSignature.d.ts +86 -0
- package/esm/utils/vectorComputed.d.ts +20 -0
- package/esm/utils/vectorComputed.js +75 -0
- package/esm/withRemoteConfig.d.ts +2 -0
- package/esm/withRemoteConfig.js +7 -0
- package/esm/withStore.d.ts +2 -0
- package/esm/withStore.js +7 -0
- package/lib/components/404.d.ts +53 -0
- package/lib/components/404.js +43 -0
- package/lib/components/Alert.d.ts +615 -0
- package/lib/components/Alert.js +279 -0
- package/lib/components/Alert2.d.ts +117 -0
- package/lib/components/Alert2.js +66 -0
- package/lib/components/AlphabetIndexer.d.ts +11 -0
- package/lib/components/AlphabetIndexer.js +59 -0
- package/lib/components/AnchorNav.d.ts +162 -0
- package/lib/components/AnchorNav.js +162 -0
- package/lib/components/AnchorNavSection.d.ts +2 -0
- package/lib/components/AnchorNavSection.js +14 -0
- package/lib/components/ArrayInput.d.ts +617 -0
- package/lib/components/ArrayInput.js +160 -0
- package/lib/components/AsideNav.d.ts +142 -0
- package/lib/components/AsideNav.js +140 -0
- package/lib/components/AssociatedSelection.d.ts +564 -0
- package/lib/components/AssociatedSelection.js +110 -0
- package/lib/components/AutoFoldedList.d.ts +87 -0
- package/lib/components/AutoFoldedList.js +128 -0
- package/lib/components/AutoSizer.d.ts +2 -0
- package/lib/components/AutoSizer.js +15 -0
- package/lib/components/Avatar.d.ts +374 -0
- package/lib/components/Avatar.js +154 -0
- package/lib/components/Badge.d.ts +118 -0
- package/lib/components/Badge.js +165 -0
- package/lib/components/BaiduMapPicker.d.ts +100 -0
- package/lib/components/BaiduMapPicker.js +379 -0
- package/lib/components/BarCode.d.ts +56 -0
- package/lib/components/BarCode.js +52 -0
- package/lib/components/Breadcrumb.d.ts +115 -0
- package/lib/components/Breadcrumb.js +170 -0
- package/lib/components/Button.d.ts +147 -0
- package/lib/components/Button.js +71 -0
- package/lib/components/CalendarMobile.d.ts +431 -0
- package/lib/components/CalendarMobile.js +546 -0
- package/lib/components/Card.d.ts +444 -0
- package/lib/components/Card.js +100 -0
- package/lib/components/Cascader.d.ts +108 -0
- package/lib/components/Cascader.js +527 -0
- package/lib/components/ChainedDropdownSelection.d.ts +561 -0
- package/lib/components/ChainedDropdownSelection.js +116 -0
- package/lib/components/ChainedSelection.d.ts +554 -0
- package/lib/components/ChainedSelection.js +197 -0
- package/lib/components/Checkbox.d.ts +110 -0
- package/lib/components/Checkbox.js +95 -0
- package/lib/components/CityArea.d.ts +299 -0
- package/lib/components/CityArea.js +197 -0
- package/lib/components/CityDB.d.ts +13 -0
- package/lib/components/CityDB.js +3949 -0
- package/lib/components/CodeMirror.d.ts +29 -0
- package/lib/components/CodeMirror.js +152 -0
- package/lib/components/Collapse.d.ts +447 -0
- package/lib/components/Collapse.js +192 -0
- package/lib/components/CollapseGroup.d.ts +219 -0
- package/lib/components/CollapseGroup.js +124 -0
- package/lib/components/ColorPicker.d.ts +530 -0
- package/lib/components/ColorPicker.js +267 -0
- package/lib/components/Combo.d.ts +354 -0
- package/lib/components/Combo.js +165 -0
- package/lib/components/ConditionBuilder.d.ts +2 -0
- package/lib/components/ConditionBuilder.js +14 -0
- package/lib/components/ConfirmBox.d.ts +322 -0
- package/lib/components/ConfirmBox.js +141 -0
- package/lib/components/ContextMenu.d.ts +115 -0
- package/lib/components/ContextMenu.js +327 -0
- package/lib/components/DatePicker.d.ts +638 -0
- package/lib/components/DatePicker.js +725 -0
- package/lib/components/DateRangePicker.d.ts +1046 -0
- package/lib/components/DateRangePicker.js +1398 -0
- package/lib/components/DiffEditor.d.ts +21 -0
- package/lib/components/DiffEditor.js +130 -0
- package/lib/components/DndContainer.d.ts +205 -0
- package/lib/components/DndContainer.js +32 -0
- package/lib/components/Drawer.d.ts +159 -0
- package/lib/components/Drawer.js +282 -0
- package/lib/components/DropDownSelection.d.ts +557 -0
- package/lib/components/DropDownSelection.js +85 -0
- package/lib/components/DropdownContextMenus.d.ts +84 -0
- package/lib/components/DropdownContextMenus.js +101 -0
- package/lib/components/Editor.d.ts +681 -0
- package/lib/components/Editor.js +246 -0
- package/lib/components/Form.d.ts +31 -0
- package/lib/components/Form.js +97 -0
- package/lib/components/FormField.d.ts +287 -0
- package/lib/components/FormField.js +90 -0
- package/lib/components/FormulaPicker.d.ts +2 -0
- package/lib/components/FormulaPicker.js +14 -0
- package/lib/components/GaodeMapPicker.d.ts +89 -0
- package/lib/components/GaodeMapPicker.js +217 -0
- package/lib/components/GridNav.d.ts +53 -0
- package/lib/components/GridNav.js +133 -0
- package/lib/components/GridNavItem.d.ts +2 -0
- package/lib/components/GridNavItem.js +14 -0
- package/lib/components/GroupedSelection.d.ts +543 -0
- package/lib/components/GroupedSelection.js +150 -0
- package/lib/components/HeadCellDropDown.d.ts +2 -0
- package/lib/components/HeadCellDropDown.js +14 -0
- package/lib/components/HorizontalScroll.d.ts +75 -0
- package/lib/components/HorizontalScroll.js +283 -0
- package/lib/components/Html.d.ts +82 -0
- package/lib/components/Html.js +59 -0
- package/lib/components/Icon.d.ts +2 -0
- package/lib/components/Icon.js +14 -0
- package/lib/components/ImageGallery.d.ts +465 -0
- package/lib/components/ImageGallery.js +409 -0
- package/lib/components/Input.d.ts +18 -0
- package/lib/components/Input.js +86 -0
- package/lib/components/InputBox.d.ts +100 -0
- package/lib/components/InputBox.js +110 -0
- package/lib/components/InputBoxWithSuggestion.d.ts +272 -0
- package/lib/components/InputBoxWithSuggestion.js +81 -0
- package/lib/components/InputJSONSchema.d.ts +2 -0
- package/lib/components/InputJSONSchema.js +14 -0
- package/lib/components/InputTable.d.ts +317 -0
- package/lib/components/InputTable.js +189 -0
- package/lib/components/JSONSchemaEditor.d.ts +2 -0
- package/lib/components/JSONSchemaEditor.js +14 -0
- package/lib/components/Layout.d.ts +74 -0
- package/lib/components/Layout.js +56 -0
- package/lib/components/Link.d.ts +60 -0
- package/lib/components/Link.js +56 -0
- package/lib/components/ListGroup.d.ts +77 -0
- package/lib/components/ListGroup.js +43 -0
- package/lib/components/ListMenu.d.ts +568 -0
- package/lib/components/ListMenu.js +74 -0
- package/lib/components/LocationPicker.d.ts +467 -0
- package/lib/components/LocationPicker.js +220 -0
- package/lib/components/Markdown.d.ts +25 -0
- package/lib/components/Markdown.js +83 -0
- package/lib/components/Menu.d.ts +2 -0
- package/lib/components/Menu.js +14 -0
- package/lib/components/MixedInput.d.ts +55 -0
- package/lib/components/MixedInput.js +99 -0
- package/lib/components/MobileDevTool.d.ts +12 -0
- package/lib/components/MobileDevTool.js +325 -0
- package/lib/components/Modal.d.ts +1316 -0
- package/lib/components/Modal.js +272 -0
- package/lib/components/ModalManager.d.ts +17 -0
- package/lib/components/ModalManager.js +53 -0
- package/lib/components/MonthRangePicker.d.ts +744 -0
- package/lib/components/MultilineText.d.ts +454 -0
- package/lib/components/MultilineText.js +102 -0
- package/lib/components/NumberInput.d.ts +201 -0
- package/lib/components/NumberInput.js +289 -0
- package/lib/components/OverflowTpl.d.ts +61 -0
- package/lib/components/OverflowTpl.js +109 -0
- package/lib/components/Pagination.d.ts +812 -0
- package/lib/components/Pagination.js +390 -0
- package/lib/components/PdfViewer.d.ts +49 -0
- package/lib/components/PdfViewer.js +89 -0
- package/lib/components/Picker.d.ts +277 -0
- package/lib/components/Picker.js +80 -0
- package/lib/components/PickerColumn.d.ts +62 -0
- package/lib/components/PickerColumn.js +288 -0
- package/lib/components/PickerContainer.d.ts +291 -0
- package/lib/components/PickerContainer.js +169 -0
- package/lib/components/PopOverContainer.d.ts +59 -0
- package/lib/components/PopOverContainer.js +162 -0
- package/lib/components/PopUp.d.ts +573 -0
- package/lib/components/PopUp.js +94 -0
- package/lib/components/Progress.d.ts +311 -0
- package/lib/components/Progress.js +148 -0
- package/lib/components/PullRefresh.d.ts +79 -0
- package/lib/components/PullRefresh.js +178 -0
- package/lib/components/Radios.d.ts +170 -0
- package/lib/components/Radios.js +126 -0
- package/lib/components/Range.d.ts +131 -0
- package/lib/components/Range.js +528 -0
- package/lib/components/Rating.d.ts +227 -0
- package/lib/components/Rating.js +349 -0
- package/lib/components/ResultBox.d.ts +532 -0
- package/lib/components/ResultBox.js +209 -0
- package/lib/components/ResultList.d.ts +554 -0
- package/lib/components/ResultList.js +268 -0
- package/lib/components/ResultTableList.d.ts +786 -0
- package/lib/components/ResultTableList.js +161 -0
- package/lib/components/ResultTreeList.d.ts +425 -0
- package/lib/components/ResultTreeList.js +256 -0
- package/lib/components/RichText.d.ts +48 -0
- package/lib/components/RichText.js +283 -0
- package/lib/components/SearchBox.d.ts +625 -0
- package/lib/components/SearchBox.js +315 -0
- package/lib/components/Select.d.ts +6497 -0
- package/lib/components/Select.js +832 -0
- package/lib/components/SelectMobile.d.ts +38 -0
- package/lib/components/SelectMobile.js +382 -0
- package/lib/components/Selection.d.ts +598 -0
- package/lib/components/Selection.js +176 -0
- package/lib/components/Shape.d.ts +58 -0
- package/lib/components/Shape.js +434 -0
- package/lib/components/Signature.d.ts +279 -0
- package/lib/components/Signature.js +297 -0
- package/lib/components/Slider.d.ts +56 -0
- package/lib/components/Slider.js +146 -0
- package/lib/components/SparkLine.d.ts +397 -0
- package/lib/components/SparkLine.js +74 -0
- package/lib/components/Spinner.d.ts +266 -0
- package/lib/components/Spinner.js +210 -0
- package/lib/components/Steps.d.ts +117 -0
- package/lib/components/Steps.js +84 -0
- package/lib/components/Switch.d.ts +105 -0
- package/lib/components/Switch.js +80 -0
- package/lib/components/Tab.d.ts +2 -0
- package/lib/components/Tab.js +14 -0
- package/lib/components/Table.d.ts +2 -0
- package/lib/components/Table.js +14 -0
- package/lib/components/TableSelection.d.ts +791 -0
- package/lib/components/TableSelection.js +183 -0
- package/lib/components/Tabs.d.ts +670 -0
- package/lib/components/Tabs.js +618 -0
- package/lib/components/TabsTransfer.d.ts +423 -0
- package/lib/components/TabsTransfer.js +234 -0
- package/lib/components/TabsTransferPicker.d.ts +267 -0
- package/lib/components/TabsTransferPicker.js +93 -0
- package/lib/components/Tag.d.ts +318 -0
- package/lib/components/Tag.js +146 -0
- package/lib/components/Textarea.d.ts +564 -0
- package/lib/components/Textarea.js +160 -0
- package/lib/components/Timeline.d.ts +56 -0
- package/lib/components/Timeline.js +68 -0
- package/lib/components/TimelineItem.d.ts +1292 -0
- package/lib/components/TimelineItem.js +118 -0
- package/lib/components/Tinymce.d.ts +66 -0
- package/lib/components/Tinymce.js +648 -0
- package/lib/components/TitleBar.d.ts +123 -0
- package/lib/components/TitleBar.js +51 -0
- package/lib/components/Toast.d.ts +591 -0
- package/lib/components/Toast.js +258 -0
- package/lib/components/Tooltip.d.ts +65 -0
- package/lib/components/Tooltip.js +43 -0
- package/lib/components/TooltipWrapper.d.ts +217 -0
- package/lib/components/TooltipWrapper.js +188 -0
- package/lib/components/Transfer.d.ts +1844 -0
- package/lib/components/Transfer.js +502 -0
- package/lib/components/TransferDropDown.d.ts +634 -0
- package/lib/components/TransferDropDown.js +106 -0
- package/lib/components/TransferPicker.d.ts +275 -0
- package/lib/components/TransferPicker.js +110 -0
- package/lib/components/TransferSearch.d.ts +283 -0
- package/lib/components/TransferSearch.js +113 -0
- package/lib/components/Tree.d.ts +1953 -0
- package/lib/components/Tree.js +1214 -0
- package/lib/components/TreeSelection.d.ts +601 -0
- package/lib/components/TreeSelection.js +209 -0
- package/lib/components/UserSelect.d.ts +541 -0
- package/lib/components/UserSelect.js +685 -0
- package/lib/components/UserTabSelect.d.ts +315 -0
- package/lib/components/UserTabSelect.js +235 -0
- package/lib/components/VerificationCode.d.ts +116 -0
- package/lib/components/VerificationCode.js +191 -0
- package/lib/components/VirtualList.d.ts +2 -0
- package/lib/components/VirtualList.js +14 -0
- package/lib/components/WithRemoteConfig.d.ts +382 -0
- package/lib/components/WithRemoteConfig.js +316 -0
- package/lib/components/WithStore.d.ts +72 -0
- package/lib/components/WithStore.js +61 -0
- package/lib/components/calendar/Calendar.d.ts +83 -0
- package/lib/components/calendar/Calendar.js +542 -0
- package/lib/components/calendar/CalendarContainer.d.ts +10 -0
- package/lib/components/calendar/CalendarContainer.js +38 -0
- package/lib/components/calendar/DaysView.d.ts +184 -0
- package/lib/components/calendar/DaysView.js +547 -0
- package/lib/components/calendar/MonthsView.d.ts +133 -0
- package/lib/components/calendar/MonthsView.js +188 -0
- package/lib/components/calendar/QuartersView.d.ts +102 -0
- package/lib/components/calendar/QuartersView.js +138 -0
- package/lib/components/calendar/TimeView.d.ts +183 -0
- package/lib/components/calendar/TimeView.js +574 -0
- package/lib/components/calendar/YearsView.d.ts +102 -0
- package/lib/components/calendar/YearsView.js +135 -0
- package/lib/components/condition-builder/Expression.d.ts +292 -0
- package/lib/components/condition-builder/Expression.js +133 -0
- package/lib/components/condition-builder/Field.d.ts +272 -0
- package/lib/components/condition-builder/Field.js +44 -0
- package/lib/components/condition-builder/Formula.d.ts +261 -0
- package/lib/components/condition-builder/Func.d.ts +273 -0
- package/lib/components/condition-builder/Func.js +87 -0
- package/lib/components/condition-builder/Group.d.ts +310 -0
- package/lib/components/condition-builder/Group.js +203 -0
- package/lib/components/condition-builder/GroupOrItem.d.ts +87 -0
- package/lib/components/condition-builder/GroupOrItem.js +117 -0
- package/lib/components/condition-builder/InputSwitch.d.ts +47 -0
- package/lib/components/condition-builder/InputSwitch.js +36 -0
- package/lib/components/condition-builder/Item.d.ts +287 -0
- package/lib/components/condition-builder/Item.js +244 -0
- package/lib/components/condition-builder/Value.d.ts +274 -0
- package/lib/components/condition-builder/Value.js +127 -0
- package/lib/components/condition-builder/config.d.ts +36 -0
- package/lib/components/condition-builder/config.js +125 -0
- package/lib/components/condition-builder/index.d.ts +319 -0
- package/lib/components/condition-builder/index.js +240 -0
- package/lib/components/condition-builder/types.d.ts +116 -0
- package/lib/components/formula/CodeEditor.d.ts +92 -0
- package/lib/components/formula/CodeEditor.js +110 -0
- package/lib/components/formula/Editor.d.ts +516 -0
- package/lib/components/formula/Editor.js +460 -0
- package/lib/components/formula/FuncList.d.ts +46 -0
- package/lib/components/formula/FuncList.js +76 -0
- package/lib/components/formula/Input.d.ts +292 -0
- package/lib/components/formula/Input.js +134 -0
- package/lib/components/formula/Picker.d.ts +492 -0
- package/lib/components/formula/Picker.js +467 -0
- package/lib/components/formula/VariableList.d.ts +58 -0
- package/lib/components/formula/VariableList.js +194 -0
- package/lib/components/formula/plugin.d.ts +51 -0
- package/lib/components/formula/plugin.js +381 -0
- package/lib/components/icons.d.ts +61 -0
- package/lib/components/icons.js +486 -0
- package/lib/components/index.d.ts +138 -0
- package/lib/components/json-schema/Array.d.ts +3 -0
- package/lib/components/json-schema/Array.js +140 -0
- package/lib/components/json-schema/Item.d.ts +5 -0
- package/lib/components/json-schema/Item.js +75 -0
- package/lib/components/json-schema/Object.d.ts +5 -0
- package/lib/components/json-schema/Object.js +278 -0
- package/lib/components/json-schema/index.d.ts +272 -0
- package/lib/components/json-schema/index.js +40 -0
- package/lib/components/menu/MenuContext.d.ts +83 -0
- package/lib/components/menu/MenuContext.js +29 -0
- package/lib/components/menu/MenuItem.d.ts +81 -0
- package/lib/components/menu/MenuItem.js +120 -0
- package/lib/components/menu/PanelMenu.d.ts +46 -0
- package/lib/components/menu/PanelMenu.js +74 -0
- package/lib/components/menu/SubMenu.d.ts +84 -0
- package/lib/components/menu/SubMenu.js +145 -0
- package/lib/components/menu/index.d.ts +381 -0
- package/lib/components/menu/index.js +379 -0
- package/lib/components/schema-editor/Array.d.ts +11 -0
- package/lib/components/schema-editor/Array.js +95 -0
- package/lib/components/schema-editor/Common.d.ts +61 -0
- package/lib/components/schema-editor/Common.js +174 -0
- package/lib/components/schema-editor/Item.d.ts +8 -0
- package/lib/components/schema-editor/Item.js +35 -0
- package/lib/components/schema-editor/Object.d.ts +51 -0
- package/lib/components/schema-editor/Object.js +305 -0
- package/lib/components/schema-editor/SchemaVariableList.d.ts +186 -0
- package/lib/components/schema-editor/SchemaVariableList.js +86 -0
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
- package/lib/components/schema-editor/SchemaVariableListPicker.js +46 -0
- package/lib/components/schema-editor/index.d.ts +797 -0
- package/lib/components/schema-editor/index.js +131 -0
- package/lib/components/table/Cell.d.ts +36 -0
- package/lib/components/table/Cell.js +50 -0
- package/lib/components/table/ColGroup.d.ts +24 -0
- package/lib/components/table/ColGroup.js +69 -0
- package/lib/components/table/Head.d.ts +45 -0
- package/lib/components/table/Head.js +157 -0
- package/lib/components/table/HeadCellDropDown.d.ts +289 -0
- package/lib/components/table/HeadCellDropDown.js +63 -0
- package/lib/components/table/HeadCellFilter.d.ts +414 -0
- package/lib/components/table/HeadCellFilter.js +140 -0
- package/lib/components/table/HeadCellSelect.d.ts +357 -0
- package/lib/components/table/HeadCellSelect.js +60 -0
- package/lib/components/table/HeadCellSort.d.ts +278 -0
- package/lib/components/table/HeadCellSort.js +96 -0
- package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
- package/lib/components/table/ItemActionsWrapper.js +40 -0
- package/lib/components/table/Row.d.ts +56 -0
- package/lib/components/table/Row.js +231 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/SummaryRow.js +81 -0
- package/lib/components/table/index.d.ts +852 -0
- package/lib/components/table/index.js +1083 -0
- package/lib/components/table/util.d.ts +56 -0
- package/lib/components/table/util.js +298 -0
- package/lib/components/virtual-list/AutoSizer.d.ts +19 -0
- package/lib/components/virtual-list/AutoSizer.js +76 -0
- package/lib/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/lib/components/virtual-list/SizeAndPositionManager.js +220 -0
- package/lib/components/virtual-list/constants.d.ts +34 -0
- package/lib/components/virtual-list/constants.js +53 -0
- package/lib/components/virtual-list/index.d.ts +99 -0
- package/lib/components/virtual-list/index.js +317 -0
- package/lib/components/withBadge.d.ts +2 -0
- package/lib/components/withBadge.js +14 -0
- package/lib/helper.css +47744 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/use-click-away.d.ts +12 -0
- package/lib/hooks/use-click-away.js +59 -0
- package/lib/hooks/use-on-screen.d.ts +2 -0
- package/lib/hooks/use-on-screen.js +32 -0
- package/lib/hooks/use-set-state.d.ts +2 -0
- package/lib/hooks/use-set-state.js +27 -0
- package/lib/hooks/use-sub-form.d.ts +4 -0
- package/lib/hooks/use-sub-form.js +48 -0
- package/lib/hooks/use-touch.d.ts +16 -0
- package/lib/hooks/use-touch.js +81 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-update-effect.js +25 -0
- package/lib/hooks/use-validation-resolver.d.ts +7 -0
- package/lib/hooks/use-validation-resolver.js +125 -0
- package/lib/icons/alert-danger.svg.js +29 -0
- package/lib/icons/alert-info.svg.js +29 -0
- package/lib/icons/alert-success.svg.js +29 -0
- package/lib/icons/alert-warning.svg.js +29 -0
- package/lib/icons/arrow-double-left.svg.js +31 -0
- package/lib/icons/arrow-double-right.svg.js +31 -0
- package/lib/icons/back.svg.js +28 -0
- package/lib/icons/calendar.svg.js +38 -0
- package/lib/icons/caret.svg.js +28 -0
- package/lib/icons/check.svg.js +28 -0
- package/lib/icons/clock.svg.js +36 -0
- package/lib/icons/close-small.svg.js +31 -0
- package/lib/icons/close.svg.js +28 -0
- package/lib/icons/cloud-upload.svg.js +29 -0
- package/lib/icons/column-filter.svg.js +29 -0
- package/lib/icons/columns.svg.js +28 -0
- package/lib/icons/compress-alt.svg.js +28 -0
- package/lib/icons/copy.svg.js +33 -0
- package/lib/icons/date.svg.js +33 -0
- package/lib/icons/department.svg.js +59 -0
- package/lib/icons/desk-empty.svg.js +80 -0
- package/lib/icons/dot.svg.js +43 -0
- package/lib/icons/down-arrow-bold.svg.js +29 -0
- package/lib/icons/down.svg.js +30 -0
- package/lib/icons/download.svg.js +31 -0
- package/lib/icons/drag-bar.svg.js +60 -0
- package/lib/icons/drag.svg.js +29 -0
- package/lib/icons/edit.svg.js +28 -0
- package/lib/icons/ellipsis-v.svg.js +28 -0
- package/lib/icons/enter.svg.js +27 -0
- package/lib/icons/exchange.svg.js +28 -0
- package/lib/icons/expand-alt.svg.js +28 -0
- package/lib/icons/fail.svg.js +38 -0
- package/lib/icons/file.svg.js +29 -0
- package/lib/icons/filter.svg.js +28 -0
- package/lib/icons/folder.svg.js +31 -0
- package/lib/icons/fullscreen.svg.js +28 -0
- package/lib/icons/function.svg.js +28 -0
- package/lib/icons/home.svg.js +28 -0
- package/lib/icons/if.svg.js +28 -0
- package/lib/icons/image.svg.js +27 -0
- package/lib/icons/info-circle.svg.js +28 -0
- package/lib/icons/info.svg.js +34 -0
- package/lib/icons/input-clear.svg.js +27 -0
- package/lib/icons/invisible.svg.js +29 -0
- package/lib/icons/left-arrow.svg.js +30 -0
- package/lib/icons/loading-outline.svg.js +28 -0
- package/lib/icons/location.svg.js +27 -0
- package/lib/icons/menu.svg.js +27 -0
- package/lib/icons/minus.svg.js +28 -0
- package/lib/icons/move.svg.js +29 -0
- package/lib/icons/mute.svg.js +28 -0
- package/lib/icons/new-edit.svg.js +29 -0
- package/lib/icons/pause.svg.js +28 -0
- package/lib/icons/pencil.svg.js +28 -0
- package/lib/icons/play.svg.js +27 -0
- package/lib/icons/plus-cicle.svg.js +27 -0
- package/lib/icons/plus-fine.svg.js +28 -0
- package/lib/icons/plus.svg.js +28 -0
- package/lib/icons/post.svg.js +55 -0
- package/lib/icons/question-mark.svg.js +33 -0
- package/lib/icons/question.svg.js +28 -0
- package/lib/icons/question2.svg.js +41 -0
- package/lib/icons/redo.svg.js +28 -0
- package/lib/icons/refresh.svg.js +28 -0
- package/lib/icons/reload.svg.js +28 -0
- package/lib/icons/remove.svg.js +28 -0
- package/lib/icons/retry.svg.js +31 -0
- package/lib/icons/right-arrow-bold.svg.js +28 -0
- package/lib/icons/right-arrow.svg.js +30 -0
- package/lib/icons/right-double-arrow.svg.js +29 -0
- package/lib/icons/role.svg.js +50 -0
- package/lib/icons/rotate-left.svg.js +29 -0
- package/lib/icons/rotate-right.svg.js +29 -0
- package/lib/icons/rotate-screen.svg.js +28 -0
- package/lib/icons/scale-origin.svg.js +31 -0
- package/lib/icons/schedule.svg.js +31 -0
- package/lib/icons/search.svg.js +28 -0
- package/lib/icons/setting.svg.js +28 -0
- package/lib/icons/slider-handle-icon.svg.js +29 -0
- package/lib/icons/sort-asc.svg.js +28 -0
- package/lib/icons/sort-default.svg.js +28 -0
- package/lib/icons/sort-desc.svg.js +28 -0
- package/lib/icons/star.svg.js +28 -0
- package/lib/icons/status-close.svg.js +30 -0
- package/lib/icons/steps-finsh.svg.js +29 -0
- package/lib/icons/sub-plus.svg.js +27 -0
- package/lib/icons/success.svg.js +36 -0
- package/lib/icons/transparent.svg.js +45 -0
- package/lib/icons/trash.svg.js +29 -0
- package/lib/icons/tree-down.svg.js +28 -0
- package/lib/icons/undo-normal.svg.js +32 -0
- package/lib/icons/undo.svg.js +28 -0
- package/lib/icons/unfullscreen.svg.js +28 -0
- package/lib/icons/upload.svg.js +28 -0
- package/lib/icons/user-remove.svg.js +40 -0
- package/lib/icons/view.svg.js +29 -0
- package/lib/icons/volume.svg.js +31 -0
- package/lib/icons/warning-mark.svg.js +29 -0
- package/lib/icons/warning.svg.js +28 -0
- package/lib/icons/window-restore.svg.js +28 -0
- package/lib/icons/zoom-in.svg.js +28 -0
- package/lib/icons/zoom-out.svg.js +28 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.js +348 -0
- package/lib/locale/de-DE.d.ts +1 -0
- package/lib/locale/de-DE.js +423 -0
- package/lib/locale/en-US.d.ts +1 -0
- package/lib/locale/en-US.js +429 -0
- package/lib/locale/zh-CN.d.ts +1 -0
- package/lib/locale/zh-CN.js +438 -0
- package/lib/scss/helper.scss.js +12 -0
- package/lib/scss/themes/ang.scss.js +12 -0
- package/lib/scss/themes/antd.scss.js +12 -0
- package/lib/scss/themes/cxd.scss.js +12 -0
- package/lib/scss/themes/dark.scss.js +12 -0
- package/lib/scss/themes/default.scss.js +12 -0
- package/lib/themes/ang.css +46414 -0
- package/lib/themes/ang.d.ts +3 -0
- package/lib/themes/ang.js +20 -0
- package/lib/themes/antd.css +46401 -0
- package/lib/themes/antd.d.ts +1 -0
- package/lib/themes/antd.js +44 -0
- package/lib/themes/cxd.css +46390 -0
- package/lib/themes/cxd.d.ts +3 -0
- package/lib/themes/cxd.js +459 -0
- package/lib/themes/dark.css +46421 -0
- package/lib/themes/dark.d.ts +3 -0
- package/lib/themes/dark.js +28 -0
- package/lib/themes/default.css +46390 -0
- package/lib/themes/default.d.ts +4 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/smoothSignature.d.ts +86 -0
- package/lib/utils/vectorComputed.d.ts +20 -0
- package/lib/utils/vectorComputed.js +84 -0
- package/lib/withRemoteConfig.d.ts +2 -0
- package/lib/withRemoteConfig.js +14 -0
- package/lib/withStore.d.ts +2 -0
- package/lib/withStore.js +14 -0
- package/package.json +8 -4
- package/scss/_components.scss +4 -7
- package/scss/_mixins.scss +1 -0
- package/scss/_properties.scss +1 -1
- package/scss/components/_auto-folder.scss +40 -0
- package/scss/components/_cascader.scss +22 -2
- package/scss/components/_condition-builder.scss +1 -0
- package/scss/components/_crud.scss +32 -0
- package/scss/components/_modal.scss +13 -0
- package/scss/components/_page.scss +0 -1
- package/scss/components/_pagination.scss +1 -2
- package/scss/components/_result-box.scss +15 -3
- package/scss/components/_table.scss +2 -0
- package/scss/components/form/_combo.scss +13 -0
- package/scss/components/form/_form.scss +14 -1
- package/scss/components/form/_icon-picker.scss +1 -0
- package/scss/components/form/_input-group.scss +23 -2
- package/scss/components/form/_nested-select.scss +10 -0
- package/scss/components/form/_picker.scss +33 -0
- package/scss/components/form/_select.scss +30 -4
- package/scss/components/form/_selection.scss +2 -0
- package/scss/components/form/_tree.scss +8 -9
- package/scss/layout/_layout.scss +1 -0
- package/scss/themes/_common.scss +1 -0
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v6.13.0
|
|
3
|
+
* Copyright 2018-2025 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { __extends, __spreadArray, __read, __assign, __decorate, __metadata } from 'tslib';
|
|
7
|
+
import React__default from 'react';
|
|
8
|
+
import moment from 'moment';
|
|
9
|
+
import { Icon } from './icons.js';
|
|
10
|
+
import { normalizeDate, filterDate, isExpression, FormulaExec, ucFirst, Overlay, PopOver, autobind, themeable, localeable } from 'amis-core';
|
|
11
|
+
import PopUp from './PopUp.js';
|
|
12
|
+
import Calendar from './calendar/Calendar.js';
|
|
13
|
+
import CalendarMobile from './CalendarMobile.js';
|
|
14
|
+
import Input from './Input.js';
|
|
15
|
+
import Button from './Button.js';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @file DatePicker
|
|
19
|
+
* @description 时间选择器组件
|
|
20
|
+
* @author fex
|
|
21
|
+
*/
|
|
22
|
+
var availableShortcuts = {
|
|
23
|
+
now: {
|
|
24
|
+
label: 'Date.now',
|
|
25
|
+
date: function (now) {
|
|
26
|
+
return now;
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
today: {
|
|
30
|
+
label: 'Date.today',
|
|
31
|
+
date: function (now) {
|
|
32
|
+
return now.startOf('day');
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
yesterday: {
|
|
36
|
+
label: 'Date.yesterday',
|
|
37
|
+
date: function (now) {
|
|
38
|
+
return now.add(-1, 'days').startOf('day');
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
thisweek: {
|
|
42
|
+
label: 'Date.monday',
|
|
43
|
+
date: function (now) {
|
|
44
|
+
return now.startOf('week').startOf('day');
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
thismonth: {
|
|
48
|
+
label: 'Date.startOfMonth',
|
|
49
|
+
date: function (now) {
|
|
50
|
+
return now.startOf('month');
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
prevmonth: {
|
|
54
|
+
label: 'Date.startOfLastMonth',
|
|
55
|
+
date: function (now) {
|
|
56
|
+
return now.startOf('month').add(-1, 'month');
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
prevquarter: {
|
|
60
|
+
label: 'Date.startOfLastQuarter',
|
|
61
|
+
date: function (now) {
|
|
62
|
+
return now.startOf('quarter').add(-1, 'quarter');
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
thisquarter: {
|
|
66
|
+
label: 'Date.startOfQuarter',
|
|
67
|
+
date: function (now) {
|
|
68
|
+
return now.startOf('quarter');
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
tomorrow: {
|
|
72
|
+
label: 'Date.tomorrow',
|
|
73
|
+
date: function (now) {
|
|
74
|
+
return now.add(1, 'days').startOf('day');
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
endofthisweek: {
|
|
78
|
+
label: 'Date.endOfWeek',
|
|
79
|
+
date: function (now) {
|
|
80
|
+
return now.endOf('week');
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
endofthismonth: {
|
|
84
|
+
label: 'Date.endOfMonth',
|
|
85
|
+
date: function (now) {
|
|
86
|
+
return now.endOf('month');
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
endoflastmonth: {
|
|
90
|
+
label: 'Date.endOfLastMonth',
|
|
91
|
+
date: function (now) {
|
|
92
|
+
return now.add(-1, 'month').endOf('month');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
var advancedShortcuts = [
|
|
97
|
+
{
|
|
98
|
+
regexp: /^(\d+)hoursago$/,
|
|
99
|
+
resolve: function (__, _, hours) {
|
|
100
|
+
return {
|
|
101
|
+
label: __('Date.hoursago', { hours: hours }),
|
|
102
|
+
date: function (now) {
|
|
103
|
+
return now.subtract(hours, 'hours');
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
regexp: /^(\d+)hourslater$/,
|
|
110
|
+
resolve: function (__, _, hours) {
|
|
111
|
+
return {
|
|
112
|
+
label: __('Date.hourslater', { hours: hours }),
|
|
113
|
+
date: function (now) {
|
|
114
|
+
return now.add(hours, 'hours');
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
regexp: /^(\d+)daysago$/,
|
|
121
|
+
resolve: function (__, _, days) {
|
|
122
|
+
return {
|
|
123
|
+
label: __('Date.daysago', { days: days }),
|
|
124
|
+
date: function (now) {
|
|
125
|
+
return now.subtract(days, 'days');
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
regexp: /^(\d+)dayslater$/,
|
|
132
|
+
resolve: function (__, _, days) {
|
|
133
|
+
return {
|
|
134
|
+
label: __('Date.dayslater', { days: days }),
|
|
135
|
+
date: function (now) {
|
|
136
|
+
return now.add(days, 'days');
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
regexp: /^(\d+)weeksago$/,
|
|
143
|
+
resolve: function (__, _, weeks) {
|
|
144
|
+
return {
|
|
145
|
+
label: __('Date.weeksago', { weeks: weeks }),
|
|
146
|
+
date: function (now) {
|
|
147
|
+
return now.subtract(weeks, 'weeks');
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
regexp: /^(\d+)weekslater$/,
|
|
154
|
+
resolve: function (__, _, weeks) {
|
|
155
|
+
return {
|
|
156
|
+
label: __('Date.weekslater', { weeks: weeks }),
|
|
157
|
+
date: function (now) {
|
|
158
|
+
return now.add(weeks, 'weeks');
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
regexp: /^(\d+)monthsago$/,
|
|
165
|
+
resolve: function (__, _, months) {
|
|
166
|
+
return {
|
|
167
|
+
label: __('Date.monthsago', { months: months }),
|
|
168
|
+
date: function (now) {
|
|
169
|
+
return now.subtract(months, 'months');
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
regexp: /^(\d+)monthslater$/,
|
|
176
|
+
resolve: function (__, _, months) {
|
|
177
|
+
return {
|
|
178
|
+
label: __('Date.monthslater', { months: months }),
|
|
179
|
+
date: function (now) {
|
|
180
|
+
return now.add(months, 'months');
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
regexp: /^(\d+)quartersago$/,
|
|
187
|
+
resolve: function (__, _, quarters) {
|
|
188
|
+
return {
|
|
189
|
+
label: __('Date.quartersago', { quarters: quarters }),
|
|
190
|
+
date: function (now) {
|
|
191
|
+
return now.subtract(quarters, 'quarters');
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
regexp: /^(\d+)quarterslater$/,
|
|
198
|
+
resolve: function (__, _, quarters) {
|
|
199
|
+
return {
|
|
200
|
+
label: __('Date.quarterslater', { quarters: quarters }),
|
|
201
|
+
date: function (now) {
|
|
202
|
+
return now.add(quarters, 'quarters');
|
|
203
|
+
}
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
];
|
|
208
|
+
var dateFormats = {
|
|
209
|
+
Y: { format: 'YYYY' },
|
|
210
|
+
Q: { format: 'YYYY [Q]Q' },
|
|
211
|
+
M: { format: 'YYYY-MM' },
|
|
212
|
+
D: { format: 'YYYY-MM-DD' }
|
|
213
|
+
};
|
|
214
|
+
var timeFormats = {
|
|
215
|
+
h: { format: 'HH' },
|
|
216
|
+
H: { format: 'HH' },
|
|
217
|
+
m: { format: 'mm' },
|
|
218
|
+
s: { format: 'ss' },
|
|
219
|
+
S: { format: 'ss' }
|
|
220
|
+
};
|
|
221
|
+
var DatePicker = /** @class */ (function (_super) {
|
|
222
|
+
__extends(DatePicker, _super);
|
|
223
|
+
function DatePicker(props) {
|
|
224
|
+
var _this = this;
|
|
225
|
+
var _a;
|
|
226
|
+
_this = _super.call(this, props) || this;
|
|
227
|
+
_this.domRef = function (ref) {
|
|
228
|
+
_this.dom = ref;
|
|
229
|
+
};
|
|
230
|
+
_this.inputRef = React__default.createRef();
|
|
231
|
+
_this.handleChange = _this.handleChange.bind(_this);
|
|
232
|
+
_this.selectShortcut = _this.selectShortcut.bind(_this);
|
|
233
|
+
_this.checkIsValidDate = _this.checkIsValidDate.bind(_this);
|
|
234
|
+
_this.open = _this.open.bind(_this);
|
|
235
|
+
_this.close = _this.close.bind(_this);
|
|
236
|
+
_this.handleFocus = _this.handleFocus.bind(_this);
|
|
237
|
+
_this.handleBlur = _this.handleBlur.bind(_this);
|
|
238
|
+
_this.clearValue = _this.clearValue.bind(_this);
|
|
239
|
+
_this.handleClick = _this.handleClick.bind(_this);
|
|
240
|
+
_this.handleKeyPress = _this.handleKeyPress.bind(_this);
|
|
241
|
+
_this.getParent = _this.getParent.bind(_this);
|
|
242
|
+
_this.getTarget = _this.getTarget.bind(_this);
|
|
243
|
+
_this.handlePopOverClick = _this.handlePopOverClick.bind(_this);
|
|
244
|
+
_this.renderShortCuts = _this.renderShortCuts.bind(_this);
|
|
245
|
+
_this.inputChange = _this.inputChange.bind(_this);
|
|
246
|
+
_this.onInputBlur = _this.onInputBlur.bind(_this);
|
|
247
|
+
var _b = _this.props, value = _b.value, format = _b.format, valueFormat = _b.valueFormat, displayFormat = _b.displayFormat, inputFormat = _b.inputFormat, dateFormat = _b.dateFormat, timeFormat = _b.timeFormat;
|
|
248
|
+
var curDateFormat = dateFormat !== null && dateFormat !== void 0 ? dateFormat : '';
|
|
249
|
+
var curTimeFormat = timeFormat !== null && timeFormat !== void 0 ? timeFormat : '';
|
|
250
|
+
var curTimeFormatArr = [];
|
|
251
|
+
!dateFormat &&
|
|
252
|
+
Object.keys(dateFormats).forEach(function (item) {
|
|
253
|
+
var _a;
|
|
254
|
+
if ((_a = (displayFormat || inputFormat)) === null || _a === void 0 ? void 0 : _a.includes(item)) {
|
|
255
|
+
curDateFormat = dateFormats[item].format;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
!timeFormat &&
|
|
259
|
+
Object.keys(timeFormats).forEach(function (item) {
|
|
260
|
+
var _a;
|
|
261
|
+
if ((_a = (displayFormat || inputFormat)) === null || _a === void 0 ? void 0 : _a.includes(item)) {
|
|
262
|
+
curTimeFormatArr.push(timeFormats[item].format);
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
curTimeFormat = curTimeFormatArr.length
|
|
266
|
+
? curTimeFormatArr.join(':')
|
|
267
|
+
: curTimeFormat;
|
|
268
|
+
_this.state = {
|
|
269
|
+
isOpened: false,
|
|
270
|
+
isFocused: false,
|
|
271
|
+
value: normalizeDate(value, valueFormat || format),
|
|
272
|
+
inputValue: ((_a = normalizeDate(value, valueFormat || format)) === null || _a === void 0 ? void 0 : _a.format(displayFormat || inputFormat)) || '',
|
|
273
|
+
curTimeFormat: curTimeFormat,
|
|
274
|
+
curDateFormat: curDateFormat,
|
|
275
|
+
isModified: false
|
|
276
|
+
};
|
|
277
|
+
return _this;
|
|
278
|
+
}
|
|
279
|
+
DatePicker.prototype.componentDidMount = function () {
|
|
280
|
+
var _a, _b;
|
|
281
|
+
(_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.onRef) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
282
|
+
var _c = this.props, value = _c.value, format = _c.format, valueFormat = _c.valueFormat, inputFormat = _c.inputFormat, displayFormat = _c.displayFormat, dateFormat = _c.dateFormat, timeFormat = _c.timeFormat;
|
|
283
|
+
if (value) {
|
|
284
|
+
var valueCache = normalizeDate(value, valueFormat || format);
|
|
285
|
+
this.inputValueCache =
|
|
286
|
+
(valueCache === null || valueCache === void 0 ? void 0 : valueCache.format(displayFormat || inputFormat)) || '';
|
|
287
|
+
}
|
|
288
|
+
var curDateFormat = dateFormat !== null && dateFormat !== void 0 ? dateFormat : '';
|
|
289
|
+
var curTimeFormat = timeFormat !== null && timeFormat !== void 0 ? timeFormat : '';
|
|
290
|
+
var curTimeFormatArr = [];
|
|
291
|
+
!dateFormat &&
|
|
292
|
+
Object.keys(dateFormats).forEach(function (item) {
|
|
293
|
+
var _a;
|
|
294
|
+
if ((_a = (displayFormat || inputFormat)) === null || _a === void 0 ? void 0 : _a.includes(item)) {
|
|
295
|
+
curDateFormat = dateFormats[item].format;
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
!timeFormat &&
|
|
299
|
+
Object.keys(timeFormats).forEach(function (item) {
|
|
300
|
+
var _a;
|
|
301
|
+
if ((_a = (displayFormat || inputFormat)) === null || _a === void 0 ? void 0 : _a.includes(item)) {
|
|
302
|
+
curTimeFormatArr.push(timeFormats[item].format);
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
curTimeFormat = curTimeFormatArr.length
|
|
306
|
+
? curTimeFormatArr.join(':')
|
|
307
|
+
: curTimeFormat;
|
|
308
|
+
this.setState({ curDateFormat: curDateFormat, curTimeFormat: curTimeFormat });
|
|
309
|
+
};
|
|
310
|
+
DatePicker.prototype.componentDidUpdate = function (prevProps) {
|
|
311
|
+
var _a;
|
|
312
|
+
var props = this.props;
|
|
313
|
+
var prevValue = prevProps.value;
|
|
314
|
+
if (prevValue !== props.value) {
|
|
315
|
+
var newState = {
|
|
316
|
+
value: normalizeDate(props.value, props.valueFormat || props.format, {
|
|
317
|
+
utc: props.utc
|
|
318
|
+
})
|
|
319
|
+
};
|
|
320
|
+
newState.inputValue =
|
|
321
|
+
((_a = newState.value) === null || _a === void 0 ? void 0 : _a.format(this.props.displayFormat || this.props.inputFormat)) || '';
|
|
322
|
+
this.inputValueCache = newState.inputValue;
|
|
323
|
+
this.setState(newState);
|
|
324
|
+
}
|
|
325
|
+
};
|
|
326
|
+
DatePicker.prototype.isConfirmMode = function () {
|
|
327
|
+
var _a = this.props, closeOnSelect = _a.closeOnSelect, embed = _a.embed, mobileUI = _a.mobileUI;
|
|
328
|
+
var curTimeFormat = this.state.curTimeFormat;
|
|
329
|
+
/** 日期时间选择器才支持confirm */
|
|
330
|
+
return closeOnSelect === false && !!curTimeFormat && !embed && !mobileUI;
|
|
331
|
+
};
|
|
332
|
+
DatePicker.prototype.focus = function () {
|
|
333
|
+
if (!this.dom) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
this.dom.focus();
|
|
337
|
+
};
|
|
338
|
+
DatePicker.prototype.handleFocus = function (e) {
|
|
339
|
+
this.setState({
|
|
340
|
+
isFocused: true
|
|
341
|
+
});
|
|
342
|
+
var onFocus = this.props.onFocus;
|
|
343
|
+
onFocus && onFocus(e);
|
|
344
|
+
};
|
|
345
|
+
DatePicker.prototype.handleBlur = function (e) {
|
|
346
|
+
var targetElement = e.nativeEvent.relatedTarget;
|
|
347
|
+
if (targetElement === this.dom || targetElement === this.inputRef.current) {
|
|
348
|
+
return;
|
|
349
|
+
}
|
|
350
|
+
this.setState({
|
|
351
|
+
isFocused: false
|
|
352
|
+
});
|
|
353
|
+
var onBlur = this.props.onBlur;
|
|
354
|
+
onBlur && onBlur(e);
|
|
355
|
+
};
|
|
356
|
+
DatePicker.prototype.handleKeyPress = function (e) {
|
|
357
|
+
if (e.key === ' ') {
|
|
358
|
+
this.handleClick();
|
|
359
|
+
e.preventDefault();
|
|
360
|
+
}
|
|
361
|
+
};
|
|
362
|
+
DatePicker.prototype.handleClick = function () {
|
|
363
|
+
this.state.isOpened ? this.close() : this.open();
|
|
364
|
+
};
|
|
365
|
+
DatePicker.prototype.handlePopOverClick = function (e) {
|
|
366
|
+
e.stopPropagation();
|
|
367
|
+
e.preventDefault();
|
|
368
|
+
};
|
|
369
|
+
DatePicker.prototype.open = function (fn) {
|
|
370
|
+
if (this.props.disabled) {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
373
|
+
this.setState({
|
|
374
|
+
isOpened: true
|
|
375
|
+
}, fn);
|
|
376
|
+
var input = this.inputRef.current;
|
|
377
|
+
input && input.focus();
|
|
378
|
+
};
|
|
379
|
+
DatePicker.prototype.close = function () {
|
|
380
|
+
var _a;
|
|
381
|
+
var isConfirmMode = this.isConfirmMode();
|
|
382
|
+
if (isConfirmMode) {
|
|
383
|
+
var _b = this.props, value = _b.value, valueFormat = _b.valueFormat, format = _b.format, displayFormat = _b.displayFormat, inputFormat = _b.inputFormat;
|
|
384
|
+
this.setState({
|
|
385
|
+
value: normalizeDate(value, valueFormat || format),
|
|
386
|
+
inputValue: ((_a = normalizeDate(value, valueFormat || format)) === null || _a === void 0 ? void 0 : _a.format(displayFormat || inputFormat)) || ''
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
this.setState({ isOpened: false, isModified: false });
|
|
390
|
+
};
|
|
391
|
+
DatePicker.prototype.clearValue = function (e) {
|
|
392
|
+
e.preventDefault();
|
|
393
|
+
e.stopPropagation();
|
|
394
|
+
var onChange = this.props.onChange;
|
|
395
|
+
onChange('');
|
|
396
|
+
this.setState({ inputValue: '', isModified: false });
|
|
397
|
+
};
|
|
398
|
+
// 清空
|
|
399
|
+
DatePicker.prototype.clear = function () {
|
|
400
|
+
var onChange = this.props.onChange;
|
|
401
|
+
onChange('');
|
|
402
|
+
this.setState({ inputValue: '', isModified: false });
|
|
403
|
+
};
|
|
404
|
+
// 重置
|
|
405
|
+
DatePicker.prototype.reset = function (resetValue) {
|
|
406
|
+
var _a;
|
|
407
|
+
if (!resetValue) {
|
|
408
|
+
return;
|
|
409
|
+
}
|
|
410
|
+
var _b = this.props, format = _b.format, valueFormat = _b.valueFormat, inputFormat = _b.inputFormat, displayFormat = _b.displayFormat, onChange = _b.onChange;
|
|
411
|
+
onChange(resetValue);
|
|
412
|
+
this.setState({
|
|
413
|
+
inputValue: (_a = normalizeDate(resetValue, valueFormat || format)) === null || _a === void 0 ? void 0 : _a.format(displayFormat || inputFormat || ''),
|
|
414
|
+
isModified: false
|
|
415
|
+
});
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* 如果为日期时间选择器,则单独处理时间选择事件,点击确认的时候才触发onChange
|
|
419
|
+
*/
|
|
420
|
+
DatePicker.prototype.handleConfirm = function () {
|
|
421
|
+
var _a = this.props, onChange = _a.onChange, format = _a.format, valueFormat = _a.valueFormat, minDate = _a.minDate, maxDate = _a.maxDate, inputFormat = _a.inputFormat, displayFormat = _a.displayFormat, utc = _a.utc;
|
|
422
|
+
var value = this.state.value;
|
|
423
|
+
var isConfirmMode = this.isConfirmMode();
|
|
424
|
+
if (!isConfirmMode || !value) {
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
if (minDate && value && value.isBefore(minDate, 'second')) {
|
|
428
|
+
value = minDate;
|
|
429
|
+
}
|
|
430
|
+
else if (maxDate && value && value.isAfter(maxDate, 'second')) {
|
|
431
|
+
value = maxDate;
|
|
432
|
+
}
|
|
433
|
+
onChange(utc
|
|
434
|
+
? moment.utc(value).format(valueFormat || format)
|
|
435
|
+
: value.format(valueFormat || format));
|
|
436
|
+
this.setState({
|
|
437
|
+
inputValue: utc
|
|
438
|
+
? moment.utc(value).format(displayFormat || inputFormat)
|
|
439
|
+
: value.format(displayFormat || inputFormat),
|
|
440
|
+
isOpened: false,
|
|
441
|
+
isModified: true
|
|
442
|
+
});
|
|
443
|
+
};
|
|
444
|
+
DatePicker.prototype.handleChange = function (value, viewMode) {
|
|
445
|
+
var _a = this.props, onChange = _a.onChange, format = _a.format, valueFormat = _a.valueFormat, minDate = _a.minDate, maxDate = _a.maxDate, inputFormat = _a.inputFormat, displayFormat = _a.displayFormat, closeOnSelect = _a.closeOnSelect, utc = _a.utc; _a.value;
|
|
446
|
+
var _b = this.state, curDateFormat = _b.curDateFormat, curTimeFormat = _b.curTimeFormat; _b.isModified;
|
|
447
|
+
var isConfirmMode = this.isConfirmMode();
|
|
448
|
+
if (!moment.isMoment(value)) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
if (minDate && value && value.isBefore(minDate, 'second')) {
|
|
452
|
+
value = minDate;
|
|
453
|
+
}
|
|
454
|
+
else if (maxDate && value && value.isAfter(maxDate, 'second')) {
|
|
455
|
+
value = maxDate;
|
|
456
|
+
}
|
|
457
|
+
// 这段逻辑会导致视图上看着选择了0,但实际上是选择了当前时间
|
|
458
|
+
/** 首次选择且当前未绑定值,则默认使用当前时间 */
|
|
459
|
+
// if (!defaultValue && !!curTimeFormat && !isModified) {
|
|
460
|
+
// const now = moment();
|
|
461
|
+
// const timePart: Record<MutableUnitOfTime, number> = {
|
|
462
|
+
// date: value.get('date'),
|
|
463
|
+
// hour: value.get('hour'),
|
|
464
|
+
// minute: value.get('minute'),
|
|
465
|
+
// second: value.get('second'),
|
|
466
|
+
// millisecond: value.get('millisecond')
|
|
467
|
+
// };
|
|
468
|
+
// Object.keys(timePart).forEach((unit: MutableUnitOfTime) => {
|
|
469
|
+
// /** 首次选择时间,日期使用当前时间; 将未设置过的时间字段设置为当前值 */
|
|
470
|
+
// if (
|
|
471
|
+
// (unit === 'date' && viewMode === 'time') ||
|
|
472
|
+
// (unit !== 'date' && timePart[unit] === 0)
|
|
473
|
+
// ) {
|
|
474
|
+
// timePart[unit] = now.get(unit);
|
|
475
|
+
// }
|
|
476
|
+
// });
|
|
477
|
+
// value.set(timePart);
|
|
478
|
+
// }
|
|
479
|
+
var updatedValue = utc
|
|
480
|
+
? moment.utc(value).format(valueFormat || format)
|
|
481
|
+
: value.format(valueFormat || format);
|
|
482
|
+
var updatedInputValue = value.format(displayFormat || inputFormat);
|
|
483
|
+
if (isConfirmMode) {
|
|
484
|
+
this.setState({ value: value, inputValue: updatedInputValue });
|
|
485
|
+
this.inputValueCache = updatedInputValue;
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
onChange(updatedValue);
|
|
489
|
+
if (closeOnSelect && curDateFormat && !curTimeFormat) {
|
|
490
|
+
this.close();
|
|
491
|
+
}
|
|
492
|
+
this.setState({ inputValue: updatedInputValue });
|
|
493
|
+
}
|
|
494
|
+
this.setState({ isModified: true });
|
|
495
|
+
};
|
|
496
|
+
// 手动输入日期
|
|
497
|
+
DatePicker.prototype.inputChange = function (e) {
|
|
498
|
+
var _a = this.props, onChange = _a.onChange, inputFormat = _a.inputFormat, format = _a.format, displayFormat = _a.displayFormat, valueFormat = _a.valueFormat, utc = _a.utc, minDate = _a.minDate, maxDate = _a.maxDate;
|
|
499
|
+
var value = e.currentTarget.value;
|
|
500
|
+
this.setState({ inputValue: value });
|
|
501
|
+
if (value === '') {
|
|
502
|
+
onChange('');
|
|
503
|
+
}
|
|
504
|
+
else {
|
|
505
|
+
// 将输入的格式转成正则匹配,比如 YYYY-MM-DD HH:mm:ss 改成 \d\d\d\d\-
|
|
506
|
+
// 只有匹配成功才更新
|
|
507
|
+
var inputCheckRegex = new RegExp((inputFormat || displayFormat)
|
|
508
|
+
.replace(/[ymdhs]/gi, '\\d')
|
|
509
|
+
.replace(/-/gi, '\\-'));
|
|
510
|
+
if (inputCheckRegex.test(value)) {
|
|
511
|
+
var newDate = moment(value, displayFormat || inputFormat);
|
|
512
|
+
var dateValue = utc
|
|
513
|
+
? moment.utc(newDate).format(valueFormat || format)
|
|
514
|
+
: newDate.format(valueFormat || format);
|
|
515
|
+
// 判断大小值是否是合法的日期,并且当前日期在范围内
|
|
516
|
+
var isMinDateValid = (minDate === null || minDate === void 0 ? void 0 : minDate.isValid())
|
|
517
|
+
? newDate.isSameOrAfter(minDate)
|
|
518
|
+
: true;
|
|
519
|
+
var isMaxDateValid = (maxDate === null || maxDate === void 0 ? void 0 : maxDate.isValid())
|
|
520
|
+
? newDate.isSameOrBefore(maxDate)
|
|
521
|
+
: true;
|
|
522
|
+
// 小于 0 的日期丢弃
|
|
523
|
+
if (!dateValue.startsWith('-') && isMinDateValid && isMaxDateValid) {
|
|
524
|
+
onChange(dateValue);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
DatePicker.prototype.onInputBlur = function () {
|
|
530
|
+
this.setState({
|
|
531
|
+
inputValue: this.inputValueCache
|
|
532
|
+
});
|
|
533
|
+
};
|
|
534
|
+
DatePicker.prototype.selectShortcut = function (shortcut) {
|
|
535
|
+
var _a = this.props, closeOnSelect = _a.closeOnSelect, minDateRaw = _a.minDateRaw, maxDateRaw = _a.maxDateRaw, data = _a.data, format = _a.format, valueFormat = _a.valueFormat;
|
|
536
|
+
var now = moment();
|
|
537
|
+
/** minDate和maxDate要实时计算,因为用户可能设置为${NOW()},暂时不考虑毫秒级的时间差 */
|
|
538
|
+
var minDate = minDateRaw
|
|
539
|
+
? filterDate(minDateRaw, data, valueFormat || format)
|
|
540
|
+
: undefined;
|
|
541
|
+
var maxDate = maxDateRaw
|
|
542
|
+
? filterDate(maxDateRaw, data, valueFormat || format)
|
|
543
|
+
: undefined;
|
|
544
|
+
var date = shortcut.date(now.clone());
|
|
545
|
+
if (minDate && moment.isMoment(minDate) && (minDate === null || minDate === void 0 ? void 0 : minDate.isValid())) {
|
|
546
|
+
date = moment.max(date, minDate);
|
|
547
|
+
}
|
|
548
|
+
if (maxDate && moment.isMoment(maxDate) && (maxDate === null || maxDate === void 0 ? void 0 : maxDate.isValid())) {
|
|
549
|
+
date = moment.min(maxDate, date);
|
|
550
|
+
}
|
|
551
|
+
this.handleChange(date);
|
|
552
|
+
closeOnSelect && this.close();
|
|
553
|
+
};
|
|
554
|
+
DatePicker.prototype.checkIsValidDate = function (currentDate) {
|
|
555
|
+
var _a = this.props, minDate = _a.minDate, maxDate = _a.maxDate, disabledDate = _a.disabledDate;
|
|
556
|
+
if (minDate && currentDate.isBefore(minDate, 'day')) {
|
|
557
|
+
return false;
|
|
558
|
+
}
|
|
559
|
+
else if (maxDate && currentDate.isAfter(maxDate, 'day')) {
|
|
560
|
+
return false;
|
|
561
|
+
}
|
|
562
|
+
if (typeof disabledDate === 'function') {
|
|
563
|
+
return !disabledDate(currentDate);
|
|
564
|
+
}
|
|
565
|
+
return true;
|
|
566
|
+
};
|
|
567
|
+
DatePicker.prototype.getTarget = function () {
|
|
568
|
+
return this.dom;
|
|
569
|
+
};
|
|
570
|
+
DatePicker.prototype.getParent = function () {
|
|
571
|
+
return this.dom;
|
|
572
|
+
};
|
|
573
|
+
DatePicker.prototype.getAvailableShortcuts = function (key) {
|
|
574
|
+
if (availableShortcuts[key]) {
|
|
575
|
+
return availableShortcuts[key];
|
|
576
|
+
}
|
|
577
|
+
var __ = this.props.translate;
|
|
578
|
+
for (var i = 0, len = advancedShortcuts.length; i < len; i++) {
|
|
579
|
+
var item = advancedShortcuts[i];
|
|
580
|
+
var m = item.regexp.exec(key);
|
|
581
|
+
if (m) {
|
|
582
|
+
return item.resolve.apply(item, __spreadArray([__], __read(m), false));
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
return null;
|
|
586
|
+
};
|
|
587
|
+
DatePicker.prototype.renderShortCuts = function (shortcuts) {
|
|
588
|
+
var _this = this;
|
|
589
|
+
if (!shortcuts) {
|
|
590
|
+
return null;
|
|
591
|
+
}
|
|
592
|
+
var _a = this.props; _a.classPrefix; var cx = _a.classnames, __ = _a.translate, format = _a.format, valueFormat = _a.valueFormat, data = _a.data;
|
|
593
|
+
var shortcutArr;
|
|
594
|
+
if (typeof shortcuts === 'string') {
|
|
595
|
+
shortcutArr = shortcuts.split(',');
|
|
596
|
+
}
|
|
597
|
+
else {
|
|
598
|
+
shortcutArr = shortcuts;
|
|
599
|
+
}
|
|
600
|
+
return (React__default.createElement("ul", { className: cx("DatePicker-shortcuts") }, shortcutArr.map(function (item, index) {
|
|
601
|
+
if (!item) {
|
|
602
|
+
return null;
|
|
603
|
+
}
|
|
604
|
+
var shortcut = {};
|
|
605
|
+
if (typeof item === 'string') {
|
|
606
|
+
shortcut = _this.getAvailableShortcuts(item);
|
|
607
|
+
shortcut.key = item;
|
|
608
|
+
}
|
|
609
|
+
else if (item.date) {
|
|
610
|
+
var shortcutRaw_1 = __assign({}, item);
|
|
611
|
+
shortcut = __assign(__assign({}, item), { date: function () {
|
|
612
|
+
var date = isExpression(shortcutRaw_1.date)
|
|
613
|
+
? moment(FormulaExec['formula'](shortcutRaw_1.date, data), valueFormat || format)
|
|
614
|
+
: shortcutRaw_1.date;
|
|
615
|
+
return date && moment.isMoment(date) && (date === null || date === void 0 ? void 0 : date.isValid())
|
|
616
|
+
? date
|
|
617
|
+
: item.date;
|
|
618
|
+
} });
|
|
619
|
+
}
|
|
620
|
+
return (React__default.createElement("li", { className: cx("DatePicker-shortcut"), onClick: function () { return _this.selectShortcut(shortcut); }, key: index },
|
|
621
|
+
React__default.createElement("a", null, __(shortcut.label))));
|
|
622
|
+
})));
|
|
623
|
+
};
|
|
624
|
+
DatePicker.prototype.render = function () {
|
|
625
|
+
var _a;
|
|
626
|
+
var _b = this.props, ns = _b.classPrefix, cx = _b.classnames, className = _b.className, popoverClassName = _b.popoverClassName, value = _b.value, placeholder = _b.placeholder, disabled = _b.disabled, inputFormat = _b.inputFormat, displayFormat = _b.displayFormat; _b.dateFormat; _b.timeFormat; var viewMode = _b.viewMode, timeConstraints = _b.timeConstraints, popOverContainer = _b.popOverContainer, popOverContainerSelector = _b.popOverContainerSelector, clearable = _b.clearable, shortcuts = _b.shortcuts; _b.utc; var isEndDate = _b.isEndDate, overlayPlacement = _b.overlayPlacement, locale = _b.locale, format = _b.format, valueFormat = _b.valueFormat, borderMode = _b.borderMode, embed = _b.embed, minDate = _b.minDate, mobileUI = _b.mobileUI, maxDate = _b.maxDate, schedules = _b.schedules, largeMode = _b.largeMode, scheduleClassNames = _b.scheduleClassNames, todayActiveStyle = _b.todayActiveStyle, onScheduleClick = _b.onScheduleClick, mobileCalendarMode = _b.mobileCalendarMode, label = _b.label, env = _b.env, testIdBuilder = _b.testIdBuilder, onClick = _b.onClick, onMouseEnter = _b.onMouseEnter, onMouseLeave = _b.onMouseLeave, inputForbid = _b.inputForbid; _b.closeOnSelect;
|
|
627
|
+
var __ = this.props.translate;
|
|
628
|
+
var _c = this.state, curTimeFormat = _c.curTimeFormat, curDateFormat = _c.curDateFormat, isOpened = _c.isOpened;
|
|
629
|
+
var isConfirmMode = this.isConfirmMode();
|
|
630
|
+
var date = this.state.value;
|
|
631
|
+
var isConfirmBtnDisbaled = false;
|
|
632
|
+
if (isConfirmMode) {
|
|
633
|
+
var lastModifiedValue = normalizeDate(value, valueFormat || format);
|
|
634
|
+
isConfirmBtnDisbaled =
|
|
635
|
+
date && lastModifiedValue
|
|
636
|
+
? moment(date).isSame(lastModifiedValue, 'second')
|
|
637
|
+
: date === lastModifiedValue;
|
|
638
|
+
}
|
|
639
|
+
var calendarMobile = (React__default.createElement(CalendarMobile, { isDatePicker: true, timeFormat: curTimeFormat, displayForamt: displayFormat || inputFormat, startDate: date, defaultDate: date, minDate: minDate, maxDate: maxDate, dateFormat: curDateFormat, embed: embed, viewMode: viewMode, close: this.close, confirm: this.handleChange, footerExtra: this.renderShortCuts(shortcuts), showViewMode: viewMode === 'quarters' || viewMode === 'months' ? 'years' : 'months', timeConstraints: timeConstraints, isEndDate: isEndDate }));
|
|
640
|
+
var CalendarMobileTitle = (React__default.createElement("div", { className: "".concat(ns, "CalendarMobile-title") }, label && typeof label === 'string' ? label : __('Calendar.datepicker')));
|
|
641
|
+
var useCalendarMobile = mobileUI && ['days', 'months', 'quarters'].indexOf(viewMode) > -1;
|
|
642
|
+
if (embed) {
|
|
643
|
+
var schedulesData = undefined;
|
|
644
|
+
if (schedules && Array.isArray(schedules)) {
|
|
645
|
+
// 设置日程颜色
|
|
646
|
+
var index_1 = 0;
|
|
647
|
+
schedulesData = schedules.map(function (schedule) {
|
|
648
|
+
var className = schedule.className;
|
|
649
|
+
if (!className && scheduleClassNames) {
|
|
650
|
+
className = scheduleClassNames[index_1];
|
|
651
|
+
index_1++;
|
|
652
|
+
if (index_1 >= scheduleClassNames.length) {
|
|
653
|
+
index_1 = 0;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
return __assign(__assign({}, schedule), { className: className });
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
return (React__default.createElement("div", { className: cx("DateCalendar", {
|
|
660
|
+
'is-disabled': disabled,
|
|
661
|
+
'ScheduleCalendar': schedulesData,
|
|
662
|
+
'ScheduleCalendar-large': largeMode
|
|
663
|
+
}, className) },
|
|
664
|
+
React__default.createElement(Calendar, { value: date, onChange: this.handleChange, requiredConfirm: false, dateFormat: curDateFormat, timeFormat: curTimeFormat, isValidDate: this.checkIsValidDate, viewMode: viewMode, timeConstraints: timeConstraints, input: false, onClose: this.close, locale: locale, minDate: minDate, maxDate: maxDate,
|
|
665
|
+
// utc={utc}
|
|
666
|
+
schedules: schedulesData, env: env, largeMode: largeMode, todayActiveStyle: todayActiveStyle, onScheduleClick: onScheduleClick, embed: embed, mobileUI: mobileUI, isEndDate: isEndDate, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('calendar') })));
|
|
667
|
+
}
|
|
668
|
+
return (React__default.createElement("div", __assign({ tabIndex: 0, onKeyPress: this.handleKeyPress, onFocus: this.handleFocus, onBlur: this.handleBlur, className: cx("DatePicker", (_a = {
|
|
669
|
+
'is-disabled': disabled,
|
|
670
|
+
'is-focused': !disabled && this.state.isFocused
|
|
671
|
+
},
|
|
672
|
+
_a["DatePicker--border".concat(ucFirst(borderMode))] = borderMode,
|
|
673
|
+
_a['is-mobile'] = mobileUI,
|
|
674
|
+
_a), className), ref: this.domRef, onClick: this.handleClick }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getTestId()),
|
|
675
|
+
React__default.createElement(Input, __assign({ className: cx('DatePicker-input'), onChange: this.inputChange, onBlur: this.onInputBlur, ref: this.inputRef, placeholder: placeholder, autoComplete: "off", value: this.state.inputValue || '', disabled: disabled, readOnly: mobileUI || inputForbid }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('input').getTestId())),
|
|
676
|
+
clearable &&
|
|
677
|
+
!disabled &&
|
|
678
|
+
normalizeDate(value, valueFormat || format) ? (React__default.createElement("a", __assign({ className: cx("DatePicker-clear"), onClick: this.clearValue }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('clear').getTestId()),
|
|
679
|
+
React__default.createElement(Icon, { icon: "input-clear", className: "icon" }))) : null,
|
|
680
|
+
React__default.createElement("a", __assign({ className: cx("DatePicker-toggler") }, testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('toggler').getTestId()),
|
|
681
|
+
React__default.createElement(Icon, { icon: viewMode === 'time' ? 'clock' : 'date', className: "icon", iconContent: viewMode === 'time'
|
|
682
|
+
? 'DatePicker-toggler-clock'
|
|
683
|
+
: 'DatePicker-toggler-date' })),
|
|
684
|
+
!mobileUI && isOpened ? (React__default.createElement(Overlay, { target: this.getTarget, container: popOverContainer || this.getParent, containerSelector: popOverContainerSelector, rootClose: false, placement: overlayPlacement, show: true },
|
|
685
|
+
React__default.createElement(PopOver, { classPrefix: ns, className: cx("DatePicker-popover", popoverClassName), onHide: this.close, overlay: true, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('popover'), onClick: this.handlePopOverClick },
|
|
686
|
+
this.renderShortCuts(shortcuts),
|
|
687
|
+
React__default.createElement(Calendar, { value: date, onChange: this.handleChange, requiredConfirm: viewMode === 'time', dateFormat: curDateFormat, displayForamt: displayFormat || inputFormat, timeFormat: curTimeFormat, isValidDate: this.checkIsValidDate, viewMode: viewMode, timeConstraints: timeConstraints, input: false, onClose: this.close, locale: locale, minDate: minDate, maxDate: maxDate, mobileUI: mobileUI, isEndDate: isEndDate, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('calendar') }),
|
|
688
|
+
isConfirmMode ? (React__default.createElement("div", { className: "".concat(ns, "DateRangePicker-actions") },
|
|
689
|
+
React__default.createElement(Button, { size: "sm", onClick: this.close }, __('cancel')),
|
|
690
|
+
React__default.createElement(Button, { level: "primary", size: "sm", disabled: isConfirmBtnDisbaled, className: cx('m-l-sm'), onClick: this.handleConfirm }, __('confirm')))) : null))) : null,
|
|
691
|
+
mobileUI ? (mobileCalendarMode === 'calendar' && useCalendarMobile ? (React__default.createElement(PopUp, { isShow: isOpened, className: cx("".concat(ns, "CalendarMobile-pop")), onHide: this.close, header: CalendarMobileTitle }, calendarMobile)) : (React__default.createElement(PopUp, { className: cx("".concat(ns, "DatePicker-popup DatePicker-mobile")), container: popOverContainer, isShow: isOpened, showClose: false, onHide: this.handleClick },
|
|
692
|
+
React__default.createElement(Calendar, { value: date, onChange: this.handleChange, requiredConfirm: false, dateFormat: curDateFormat, displayForamt: displayFormat || inputFormat, timeFormat: curTimeFormat, isValidDate: this.checkIsValidDate, viewMode: viewMode, timeConstraints: timeConstraints, input: false, onClose: this.close, locale: locale, minDate: minDate, maxDate: maxDate, mobileUI: mobileUI, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, testIdBuilder: testIdBuilder === null || testIdBuilder === void 0 ? void 0 : testIdBuilder.getChild('calendar') })))) : null));
|
|
693
|
+
};
|
|
694
|
+
DatePicker.defaultProps = {
|
|
695
|
+
viewMode: 'days',
|
|
696
|
+
shortcuts: '',
|
|
697
|
+
closeOnSelect: true,
|
|
698
|
+
overlayPlacement: 'auto',
|
|
699
|
+
scheduleClassNames: [
|
|
700
|
+
'bg-warning',
|
|
701
|
+
'bg-danger',
|
|
702
|
+
'bg-success',
|
|
703
|
+
'bg-info',
|
|
704
|
+
'bg-secondary'
|
|
705
|
+
]
|
|
706
|
+
};
|
|
707
|
+
__decorate([
|
|
708
|
+
autobind,
|
|
709
|
+
__metadata("design:type", Function),
|
|
710
|
+
__metadata("design:paramtypes", []),
|
|
711
|
+
__metadata("design:returntype", void 0)
|
|
712
|
+
], DatePicker.prototype, "handleConfirm", null);
|
|
713
|
+
return DatePicker;
|
|
714
|
+
}(React__default.Component));
|
|
715
|
+
var DatePicker$1 = themeable(localeable(DatePicker));
|
|
716
|
+
|
|
717
|
+
export { DatePicker, DatePicker$1 as default };
|