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