amis-ui 2.0.0 → 2.1.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.js +1 -1
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.js +2 -2
- package/esm/components/AnchorNav.d.ts +9 -2
- package/esm/components/AnchorNav.js +25 -6
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.js +1 -1
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +1 -1
- package/esm/components/Badge.js +2 -4
- package/esm/components/BaiduMapPicker.js +3 -3
- package/esm/components/BarCode.js +1 -1
- package/esm/components/BarCode2.js +1 -1
- package/esm/components/Breadcrumb.js +2 -2
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CityDB2.js +1 -1
- package/esm/components/CodeMirror.js +1 -1
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/ColorPicker2.js +1 -1
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +43 -40
- package/esm/components/DatePicker.js +11 -4
- package/esm/components/DateRangePicker.d.ts +135 -82
- package/esm/components/DateRangePicker.js +115 -57
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +40 -40
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.js +1 -1
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/Html.js +1 -1
- package/esm/components/ImageGallery.d.ts +70 -40
- package/esm/components/ImageGallery.js +97 -15
- package/esm/components/Input.js +1 -1
- package/esm/components/InputBox.js +1 -1
- package/esm/components/InputBoxWithSuggestion.js +1 -1
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +10 -10
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.js +1 -1
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Markdown2.js +1 -1
- package/esm/components/Modal.d.ts +42 -40
- package/esm/components/Modal.js +3 -3
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +41 -40
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/Pagination.d.ts +49 -66
- package/esm/components/Pagination.js +3 -3
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.js +1 -1
- package/esm/components/PopOverContainer.js +1 -1
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.js +8 -4
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +1 -1
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.js +7 -3
- package/esm/components/ResultList.js +1 -1
- package/esm/components/ResultTableList.js +1 -1
- package/esm/components/ResultTreeList.js +1 -1
- package/esm/components/RichText.js +1 -1
- package/esm/components/RichText2.js +1 -1
- package/esm/components/SearchBox.d.ts +127 -42
- package/esm/components/SearchBox.js +183 -20
- package/esm/components/Select.d.ts +389 -194
- package/esm/components/Select.js +17 -22
- package/esm/components/Selection.js +1 -1
- package/esm/components/SparkLine.d.ts +40 -40
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.js +1 -1
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.js +1 -1
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.js +1 -3
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.d.ts +12 -10
- package/esm/components/Tag.js +16 -5
- package/esm/components/Textarea.js +4 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +3 -3
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +1 -1
- package/esm/components/Tinymce2.js +29 -12
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.js +1 -1
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.js +1 -1
- package/esm/components/Transfer.js +9 -2
- package/esm/components/TransferDropDown.js +2 -3
- package/esm/components/TransferPicker.js +1 -1
- package/esm/components/TransferSearch.js +1 -1
- package/esm/components/Tree.js +34 -33
- package/esm/components/TreeSelection.js +1 -1
- package/esm/components/UserSelect.js +1 -1
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/WithRemoteConfig.js +1 -1
- package/esm/components/WithStore.js +1 -1
- package/esm/components/calendar/Calendar.js +4 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.js +14 -7
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.js +1 -1
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.js +1 -1
- package/esm/components/condition-builder/GroupOrItem.js +1 -1
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.js +1 -1
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.js +1 -1
- package/esm/components/formula/Editor.js +1 -1
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Picker.js +1 -1
- package/esm/components/formula/VariableList.js +1 -1
- package/esm/components/formula/plugin.d.ts +1 -0
- package/esm/components/formula/plugin.js +11 -4
- package/esm/components/icons.d.ts +2 -1
- package/esm/components/icons.js +20 -1
- package/esm/components/json-schema/Array.js +1 -1
- package/esm/components/json-schema/Item.js +1 -1
- package/esm/components/json-schema/Object.js +1 -1
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/schema-editor/Array.js +1 -1
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.js +1 -1
- package/esm/components/schema-editor/SchemaVariableList.js +1 -1
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.js +1 -1
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-touch.js +1 -1
- package/esm/hooks/use-update-effect.js +1 -1
- package/esm/hooks/use-validation-resolver.js +1 -1
- package/esm/icons/alert-danger.svg.js +2 -2
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +2 -2
- package/esm/icons/alert-warning.svg.js +2 -2
- package/esm/icons/back.svg.js +1 -1
- package/esm/icons/calendar.svg.js +1 -1
- package/esm/icons/caret.svg.js +1 -1
- package/esm/icons/check-circle.svg.js +36 -0
- package/esm/icons/check.svg.js +1 -1
- package/esm/icons/clock.svg.js +1 -1
- package/esm/icons/close-small.svg.js +1 -1
- package/esm/icons/close.svg.js +1 -1
- package/esm/icons/cloud-upload.svg.js +1 -1
- package/esm/icons/column-filter.svg.js +1 -1
- package/esm/icons/columns.svg.js +1 -1
- package/esm/icons/compress-alt.svg.js +1 -1
- package/esm/icons/copy.svg.js +1 -1
- package/esm/icons/date.svg.js +1 -1
- package/esm/icons/department.svg.js +1 -1
- package/esm/icons/desk-empty.svg.js +1 -1
- package/esm/icons/dot.svg.js +1 -1
- package/esm/icons/down-arrow-bold.svg.js +2 -2
- package/esm/icons/down.svg.js +31 -0
- package/esm/icons/download.svg.js +1 -1
- package/esm/icons/drag-bar.svg.js +1 -1
- package/esm/icons/drag.svg.js +1 -1
- package/esm/icons/edit.svg.js +1 -2
- package/esm/icons/ellipsis-v.svg.js +1 -1
- package/esm/icons/enter.svg.js +1 -1
- package/esm/icons/exchange.svg.js +1 -1
- package/esm/icons/expand-alt.svg.js +1 -1
- package/esm/icons/fail.svg.js +1 -1
- package/esm/icons/file.svg.js +1 -1
- package/esm/icons/filter.svg.js +1 -1
- package/esm/icons/folder.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/image.svg.js +1 -1
- package/esm/icons/info-circle.svg.js +1 -1
- package/esm/icons/info.svg.js +1 -1
- package/esm/icons/input-clear.svg.js +1 -1
- package/esm/icons/invisible.svg.js +1 -1
- package/esm/icons/left-arrow.svg.js +7 -4
- package/esm/icons/loading-outline.svg.js +1 -1
- package/esm/icons/location.svg.js +1 -1
- package/esm/icons/menu.svg.js +1 -1
- package/esm/icons/minus.svg.js +1 -1
- package/esm/icons/move.svg.js +1 -1
- package/esm/icons/mute.svg.js +1 -1
- package/esm/icons/new-edit.svg.js +24 -0
- package/esm/icons/pause.svg.js +1 -1
- package/esm/icons/pencil.svg.js +1 -1
- package/esm/icons/play.svg.js +1 -1
- package/esm/icons/plus-cicle.svg.js +1 -1
- package/esm/icons/plus-fine.svg.js +1 -1
- package/esm/icons/plus.svg.js +1 -1
- package/esm/icons/post.svg.js +1 -1
- package/esm/icons/question-mark.svg.js +1 -1
- package/esm/icons/question.svg.js +1 -1
- package/esm/icons/redo.svg.js +1 -1
- package/esm/icons/refresh.svg.js +1 -1
- package/esm/icons/reload.svg.js +1 -1
- package/esm/icons/remove.svg.js +1 -1
- package/esm/icons/retry.svg.js +1 -1
- package/esm/icons/right-arrow-bold.svg.js +1 -1
- package/esm/icons/right-arrow.svg.js +7 -4
- package/esm/icons/right-double-arrow.svg.js +24 -0
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +24 -0
- package/esm/icons/rotate-right.svg.js +24 -0
- package/esm/icons/scale-origin.svg.js +26 -0
- package/esm/icons/schedule.svg.js +1 -1
- package/esm/icons/search.svg.js +1 -1
- package/esm/icons/setting.svg.js +1 -1
- package/esm/icons/slider-handle-icon.svg.js +1 -1
- package/esm/icons/sort-asc.svg.js +1 -1
- package/esm/icons/sort-default.svg.js +1 -1
- package/esm/icons/sort-desc.svg.js +1 -1
- package/esm/icons/star.svg.js +2 -2
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/status-fail.svg.js +1 -1
- package/esm/icons/status-info.svg.js +1 -1
- package/esm/icons/status-success.svg.js +1 -1
- package/esm/icons/status-warning.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +24 -0
- package/esm/icons/success.svg.js +1 -1
- package/esm/icons/transparent.svg.js +1 -1
- package/esm/icons/trash.svg.js +1 -1
- package/esm/icons/tree-down.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/upload.svg.js +1 -1
- package/esm/icons/user-remove.svg.js +1 -1
- package/esm/icons/view.svg.js +1 -1
- package/esm/icons/volume.svg.js +1 -1
- package/esm/icons/warning-mark.svg.js +1 -1
- package/esm/icons/warning.svg.js +1 -1
- package/esm/icons/window-restore.svg.js +1 -1
- package/esm/icons/zoom-in.svg.js +1 -1
- package/esm/icons/zoom-out.svg.js +1 -1
- package/esm/index.js +2 -1
- package/esm/locale/de-DE.js +7 -1
- package/esm/locale/en-US.js +7 -1
- package/esm/locale/zh-CN.js +9 -3
- package/esm/themes/ang.js +1 -1
- package/esm/themes/antd.js +1 -1
- package/esm/themes/cxd.js +1 -1
- package/esm/themes/dark.js +1 -1
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +10 -10
- package/lib/components/Alert2.js +2 -2
- package/lib/components/AnchorNav.d.ts +19 -12
- package/lib/components/AnchorNav.js +25 -6
- package/lib/components/ArrayInput.d.ts +40 -40
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +40 -40
- package/lib/components/AssociatedSelection.js +1 -1
- package/lib/components/Avatar.d.ts +10 -10
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +1 -1
- package/lib/components/Badge.js +2 -4
- package/lib/components/BaiduMapPicker.js +3 -3
- package/lib/components/BarCode.js +1 -1
- package/lib/components/BarCode2.js +1 -1
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +10 -10
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +40 -40
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +10 -10
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedSelection.d.ts +40 -40
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.d.ts +10 -10
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CityDB2.js +1 -1
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.d.ts +10 -10
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +40 -40
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/ColorPicker2.js +1 -1
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +43 -40
- package/lib/components/DatePicker.js +11 -4
- package/lib/components/DateRangePicker.d.ts +135 -82
- package/lib/components/DateRangePicker.js +114 -56
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +40 -40
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.js +1 -1
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GroupedSelection.d.ts +40 -40
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/Html.js +1 -1
- package/lib/components/ImageGallery.d.ts +70 -40
- package/lib/components/ImageGallery.js +97 -14
- package/lib/components/Input.js +1 -1
- package/lib/components/InputBox.d.ts +10 -10
- package/lib/components/InputBox.js +1 -1
- package/lib/components/InputBoxWithSuggestion.js +1 -1
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +10 -10
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +40 -40
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +40 -40
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Markdown2.js +1 -1
- package/lib/components/Modal.d.ts +42 -40
- package/lib/components/Modal.js +3 -3
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +41 -40
- package/lib/components/NumberInput.d.ts +10 -10
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +3 -3
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.js +1 -1
- package/lib/components/PopOverContainer.js +1 -1
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +10 -10
- package/lib/components/Progress.js +8 -4
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +10 -10
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +1 -1
- package/lib/components/Rating.d.ts +10 -10
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +40 -40
- package/lib/components/ResultBox.js +7 -3
- package/lib/components/ResultList.d.ts +40 -40
- package/lib/components/ResultList.js +3 -3
- package/lib/components/ResultTableList.d.ts +40 -40
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.d.ts +40 -40
- package/lib/components/ResultTreeList.js +8 -8
- package/lib/components/RichText.js +1 -1
- package/lib/components/RichText2.js +1 -1
- package/lib/components/SearchBox.d.ts +127 -42
- package/lib/components/SearchBox.js +185 -19
- package/lib/components/Select.d.ts +389 -194
- package/lib/components/Select.js +17 -22
- package/lib/components/Selection.d.ts +40 -40
- package/lib/components/Selection.js +1 -1
- package/lib/components/SparkLine.d.ts +40 -40
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +10 -10
- package/lib/components/Spinner.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +10 -10
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.d.ts +40 -40
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +10 -10
- package/lib/components/Tabs.js +1 -3
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.d.ts +12 -10
- package/lib/components/Tag.js +16 -5
- package/lib/components/Textarea.d.ts +40 -40
- package/lib/components/Textarea.js +4 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +3 -3
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +1 -1
- package/lib/components/Tinymce2.js +29 -12
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.js +1 -1
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.js +1 -1
- package/lib/components/Transfer.d.ts +40 -40
- package/lib/components/Transfer.js +15 -8
- package/lib/components/TransferDropDown.d.ts +40 -40
- package/lib/components/TransferDropDown.js +2 -3
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +3 -3
- package/lib/components/Tree.d.ts +40 -40
- package/lib/components/Tree.js +34 -33
- package/lib/components/TreeSelection.d.ts +40 -40
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.d.ts +40 -40
- package/lib/components/UserSelect.js +1 -1
- package/lib/components/UserTabSelect.d.ts +40 -40
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/WithRemoteConfig.js +1 -1
- package/lib/components/WithStore.js +1 -1
- package/lib/components/calendar/Calendar.js +4 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.js +14 -7
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.js +1 -1
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.js +1 -1
- package/lib/components/condition-builder/GroupOrItem.js +1 -1
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.js +1 -1
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.js +1 -1
- package/lib/components/formula/Editor.d.ts +40 -40
- package/lib/components/formula/Editor.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +40 -40
- package/lib/components/formula/Picker.js +1 -1
- package/lib/components/formula/VariableList.js +1 -1
- package/lib/components/formula/plugin.d.ts +1 -0
- package/lib/components/formula/plugin.js +11 -4
- package/lib/components/icons.d.ts +2 -1
- package/lib/components/icons.js +20 -1
- package/lib/components/json-schema/Array.js +1 -1
- package/lib/components/json-schema/Item.js +1 -1
- package/lib/components/json-schema/Object.js +1 -1
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/schema-editor/Array.js +1 -1
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.js +1 -1
- package/lib/components/schema-editor/SchemaVariableList.js +1 -1
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +40 -40
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.d.ts +40 -40
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +40 -40
- package/lib/components/table/index.js +1 -1
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-touch.js +1 -1
- package/lib/hooks/use-update-effect.js +1 -1
- package/lib/hooks/use-validation-resolver.js +1 -1
- package/lib/icons/alert-danger.svg.js +2 -2
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +2 -2
- package/lib/icons/alert-warning.svg.js +2 -2
- package/lib/icons/back.svg.js +1 -1
- package/lib/icons/calendar.svg.js +1 -1
- package/lib/icons/caret.svg.js +1 -1
- package/lib/icons/check-circle.svg.js +60 -0
- package/lib/icons/check.svg.js +1 -1
- package/lib/icons/clock.svg.js +1 -1
- package/lib/icons/close-small.svg.js +1 -1
- package/lib/icons/close.svg.js +1 -1
- package/lib/icons/cloud-upload.svg.js +1 -1
- package/lib/icons/column-filter.svg.js +1 -1
- package/lib/icons/columns.svg.js +1 -1
- package/lib/icons/compress-alt.svg.js +1 -1
- package/lib/icons/copy.svg.js +1 -1
- package/lib/icons/date.svg.js +1 -1
- package/lib/icons/department.svg.js +1 -1
- package/lib/icons/desk-empty.svg.js +1 -1
- package/lib/icons/dot.svg.js +1 -1
- package/lib/icons/down-arrow-bold.svg.js +2 -2
- package/lib/icons/down.svg.js +55 -0
- package/lib/icons/download.svg.js +1 -1
- package/lib/icons/drag-bar.svg.js +1 -1
- package/lib/icons/drag.svg.js +1 -1
- package/lib/icons/edit.svg.js +1 -2
- package/lib/icons/ellipsis-v.svg.js +1 -1
- package/lib/icons/enter.svg.js +1 -1
- package/lib/icons/exchange.svg.js +1 -1
- package/lib/icons/expand-alt.svg.js +1 -1
- package/lib/icons/fail.svg.js +1 -1
- package/lib/icons/file.svg.js +1 -1
- package/lib/icons/filter.svg.js +1 -1
- package/lib/icons/folder.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/image.svg.js +1 -1
- package/lib/icons/info-circle.svg.js +1 -1
- package/lib/icons/info.svg.js +1 -1
- package/lib/icons/input-clear.svg.js +1 -1
- package/lib/icons/invisible.svg.js +1 -1
- package/lib/icons/left-arrow.svg.js +7 -4
- package/lib/icons/loading-outline.svg.js +1 -1
- package/lib/icons/location.svg.js +1 -1
- package/lib/icons/menu.svg.js +1 -1
- package/lib/icons/minus.svg.js +1 -1
- package/lib/icons/move.svg.js +1 -1
- package/lib/icons/mute.svg.js +1 -1
- package/lib/icons/new-edit.svg.js +48 -0
- package/lib/icons/pause.svg.js +1 -1
- package/lib/icons/pencil.svg.js +1 -1
- package/lib/icons/play.svg.js +1 -1
- package/lib/icons/plus-cicle.svg.js +1 -1
- package/lib/icons/plus-fine.svg.js +1 -1
- package/lib/icons/plus.svg.js +1 -1
- package/lib/icons/post.svg.js +1 -1
- package/lib/icons/question-mark.svg.js +1 -1
- package/lib/icons/question.svg.js +1 -1
- package/lib/icons/redo.svg.js +1 -1
- package/lib/icons/refresh.svg.js +1 -1
- package/lib/icons/reload.svg.js +1 -1
- package/lib/icons/remove.svg.js +1 -1
- package/lib/icons/retry.svg.js +1 -1
- package/lib/icons/right-arrow-bold.svg.js +1 -1
- package/lib/icons/right-arrow.svg.js +7 -4
- package/lib/icons/right-double-arrow.svg.js +48 -0
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +48 -0
- package/lib/icons/rotate-right.svg.js +48 -0
- package/lib/icons/scale-origin.svg.js +50 -0
- package/lib/icons/schedule.svg.js +1 -1
- package/lib/icons/search.svg.js +1 -1
- package/lib/icons/setting.svg.js +1 -1
- package/lib/icons/slider-handle-icon.svg.js +1 -1
- package/lib/icons/sort-asc.svg.js +1 -1
- package/lib/icons/sort-default.svg.js +1 -1
- package/lib/icons/sort-desc.svg.js +1 -1
- package/lib/icons/star.svg.js +2 -2
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/status-fail.svg.js +1 -1
- package/lib/icons/status-info.svg.js +1 -1
- package/lib/icons/status-success.svg.js +1 -1
- package/lib/icons/status-warning.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +48 -0
- package/lib/icons/success.svg.js +1 -1
- package/lib/icons/transparent.svg.js +1 -1
- package/lib/icons/trash.svg.js +1 -1
- package/lib/icons/tree-down.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/upload.svg.js +1 -1
- package/lib/icons/user-remove.svg.js +1 -1
- package/lib/icons/view.svg.js +1 -1
- package/lib/icons/volume.svg.js +1 -1
- package/lib/icons/warning-mark.svg.js +1 -1
- package/lib/icons/warning.svg.js +1 -1
- package/lib/icons/window-restore.svg.js +1 -1
- package/lib/icons/zoom-in.svg.js +1 -1
- package/lib/icons/zoom-out.svg.js +1 -1
- package/lib/index.js +3 -1
- package/lib/locale/de-DE.js +7 -1
- package/lib/locale/en-US.js +7 -1
- package/lib/locale/zh-CN.js +9 -3
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/helper.scss2.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/ang.scss2.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/antd.scss2.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss2.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/dark.scss2.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/scss/themes/default.scss2.js +1 -1
- package/lib/themes/ang.css +1111 -441
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1111 -441
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1135 -468
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1116 -443
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1135 -468
- package/package.json +10 -10
- package/scss/_properties.scss +101 -22
- package/scss/base/_typography.scss +4 -0
- package/scss/components/_alert.scss +15 -0
- package/scss/components/_anchor-nav.scss +22 -7
- package/scss/components/_badge.scss +1 -0
- package/scss/components/_breadcrumb.scss +12 -1
- package/scss/components/_calendar.scss +32 -14
- package/scss/components/_card.scss +4 -0
- package/scss/components/_collapse-group.scss +13 -1
- package/scss/components/_collapse.scss +2 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_log.scss +44 -16
- package/scss/components/_modal.scss +14 -12
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +2 -1
- package/scss/components/_result-box.scss +6 -8
- package/scss/components/_search-box.scss +120 -10
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +96 -11
- package/scss/components/_tabs.scss +46 -4
- package/scss/components/_tag.scss +12 -3
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +26 -11
- package/scss/components/form/_date.scss +97 -33
- package/scss/components/form/_form.scss +13 -1
- package/scss/components/form/_nested-select.scss +6 -0
- package/scss/components/form/_number.scss +18 -13
- package/scss/components/form/_picker.scss +8 -0
- package/scss/components/form/_rating.scss +2 -2
- package/scss/components/form/_select.scss +34 -1
- package/scss/components/form/_selection.scss +1 -0
- package/scss/components/form/_text.scss +6 -0
- package/scss/components/form/_textarea.scss +15 -11
- package/scss/components/form/_transfer.scss +2 -5
- package/scss/components/form/_tree.scss +31 -4
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/_dark-variables.scss +5 -2
- package/scss/themes/cxd.scss +2 -8
package/esm/components/Tag.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export interface TagProps extends ThemeProps {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
closeIcon?: string | React.ReactNode;
|
|
16
16
|
onClose?: (e: React.MouseEvent) => void;
|
|
17
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
17
18
|
}
|
|
18
19
|
export interface CheckableTagProps extends TagProps {
|
|
19
20
|
onClick?: (e: React.MouseEvent) => void;
|
|
@@ -25,6 +26,7 @@ export declare class Tag extends React.Component<TagProps> {
|
|
|
25
26
|
static defaultProps: Partial<TagProps>;
|
|
26
27
|
renderCloseIcon(): JSX.Element | null;
|
|
27
28
|
handleClose(e: React.MouseEvent<HTMLElement>): void;
|
|
29
|
+
handleClick(e: React.MouseEvent<HTMLElement>): void;
|
|
28
30
|
render(): JSX.Element;
|
|
29
31
|
}
|
|
30
32
|
declare class CheckableTagComp extends React.Component<CheckableTagProps> {
|
|
@@ -67,15 +69,15 @@ export declare const CheckableTag: {
|
|
|
67
69
|
ComposedComponent: typeof CheckableTagComp;
|
|
68
70
|
};
|
|
69
71
|
declare const _default: {
|
|
70
|
-
new (props: Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
72
|
+
new (props: Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
71
73
|
ref: any;
|
|
72
74
|
childRef(ref: any): void;
|
|
73
75
|
getWrappedInstance(): any;
|
|
74
76
|
render(): JSX.Element;
|
|
75
77
|
context: any;
|
|
76
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
78
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
77
79
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
78
|
-
readonly props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
80
|
+
readonly props: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
79
81
|
children?: React.ReactNode;
|
|
80
82
|
}>;
|
|
81
83
|
state: Readonly<{}>;
|
|
@@ -83,17 +85,17 @@ declare const _default: {
|
|
|
83
85
|
[key: string]: React.ReactInstance;
|
|
84
86
|
};
|
|
85
87
|
componentDidMount?(): void;
|
|
86
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
88
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
87
89
|
componentWillUnmount?(): void;
|
|
88
90
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
89
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
90
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
91
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
92
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
91
93
|
componentWillMount?(): void;
|
|
92
94
|
UNSAFE_componentWillMount?(): void;
|
|
93
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
94
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
95
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
96
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
95
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
96
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
97
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
98
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<TagProps, keyof ThemeProps>, never> & Partial<Pick<Omit<TagProps, keyof ThemeProps>, "label" | "style" | "disabled" | "icon" | "onClose" | "color" | "onClick" | "closable" | "displayMode" | "closeIcon">> & Partial<Pick<Partial<TagProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
97
99
|
};
|
|
98
100
|
displayName: string;
|
|
99
101
|
contextType: React.Context<string>;
|
package/esm/components/Tag.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -37,9 +37,13 @@ var Tag = /** @class */ (function (_super) {
|
|
|
37
37
|
e.stopPropagation();
|
|
38
38
|
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
39
39
|
};
|
|
40
|
+
Tag.prototype.handleClick = function (e) {
|
|
41
|
+
var onClick = this.props.onClick;
|
|
42
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
43
|
+
};
|
|
40
44
|
Tag.prototype.render = function () {
|
|
41
45
|
var _a;
|
|
42
|
-
var _b = this.props, children = _b.children, cx = _b.classnames, className = _b.className, displayMode = _b.displayMode, disabled = _b.disabled, color = _b.color, icon = _b.icon, style = _b.style, label = _b.label;
|
|
46
|
+
var _b = this.props, children = _b.children, cx = _b.classnames, className = _b.className, displayMode = _b.displayMode, disabled = _b.disabled, color = _b.color, icon = _b.icon, style = _b.style, label = _b.label; _b.closable;
|
|
43
47
|
var isPresetColor = color && PRESET_COLOR.indexOf(color) !== -1;
|
|
44
48
|
var customColor = color && !isPresetColor ? color : undefined;
|
|
45
49
|
var tagStyle = __assign({ backgroundColor: displayMode === 'normal' ? customColor : undefined, borderColor: displayMode === 'rounded' ? customColor : undefined, color: displayMode === 'rounded' ? customColor : undefined }, style);
|
|
@@ -48,9 +52,10 @@ var Tag = /** @class */ (function (_super) {
|
|
|
48
52
|
_a["Tag--".concat(displayMode, "--").concat(color)] = isPresetColor,
|
|
49
53
|
_a["Tag--".concat(displayMode, "--hasColor")] = color,
|
|
50
54
|
_a["Tag--disabled"] = disabled,
|
|
51
|
-
_a)), style: tagStyle },
|
|
52
|
-
|
|
53
|
-
|
|
55
|
+
_a)), style: tagStyle, onClick: this.handleClick },
|
|
56
|
+
React__default.createElement("span", { className: cx('Tag-text') },
|
|
57
|
+
prevIcon,
|
|
58
|
+
label || children),
|
|
54
59
|
this.renderCloseIcon()));
|
|
55
60
|
};
|
|
56
61
|
Tag.defaultProps = {
|
|
@@ -62,6 +67,12 @@ var Tag = /** @class */ (function (_super) {
|
|
|
62
67
|
__metadata("design:paramtypes", [Object]),
|
|
63
68
|
__metadata("design:returntype", void 0)
|
|
64
69
|
], Tag.prototype, "handleClose", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
autobind,
|
|
72
|
+
__metadata("design:type", Function),
|
|
73
|
+
__metadata("design:paramtypes", [Object]),
|
|
74
|
+
__metadata("design:returntype", void 0)
|
|
75
|
+
], Tag.prototype, "handleClick", null);
|
|
65
76
|
return Tag;
|
|
66
77
|
}(React__default.Component));
|
|
67
78
|
var CheckableTagComp = /** @class */ (function (_super) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -88,7 +88,9 @@ var Textarea = /** @class */ (function (_super) {
|
|
|
88
88
|
_a['is-focused'] = this.state.focused,
|
|
89
89
|
_a['is-disabled'] = disabled,
|
|
90
90
|
_a), className) },
|
|
91
|
-
React__default.createElement(BaseTextArea, { className: cx("TextareaControl-input"
|
|
91
|
+
React__default.createElement(BaseTextArea, { className: cx("TextareaControl-input", {
|
|
92
|
+
'TextareaControl-input--counter': showCounter
|
|
93
|
+
}), autoComplete: "off", ref: this.inputRef, name: name, disabled: disabled, value: this.valueToString(value), placeholder: placeholder, autoCorrect: "off", spellCheck: "false", readOnly: readOnly, minRows: minRows || undefined, maxRows: maxRows || undefined, onChange: this.handleChange, onFocus: this.handleFocus, onBlur: this.handleBlur }),
|
|
92
94
|
clearable && !disabled && value ? (React__default.createElement("a", { onClick: this.handleClear, className: cx('TextareaControl-clear') },
|
|
93
95
|
React__default.createElement(Icon, { icon: "input-clear", className: "icon" }))) : null,
|
|
94
96
|
showCounter ? (React__default.createElement("span", { className: cx('TextareaControl-counter', {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@ function TimelineItem(props) {
|
|
|
17
17
|
React__default.createElement("div", { className: cx('TimelineItem-detail-button'), onClick: function () { return setDetailVisible(!detailVisible); } },
|
|
18
18
|
detailVisible ? detailExpandedText : detailCollapsedText,
|
|
19
19
|
React__default.createElement("div", { className: cx('TimelineItem-detail-arrow', "".concat(detailVisible && 'TimelineItem-detail-arrow-top')) },
|
|
20
|
-
React__default.createElement(Icon, { icon: "
|
|
20
|
+
React__default.createElement(Icon, { icon: "down-arrow-bold" }))),
|
|
21
21
|
React__default.createElement("div", { className: cx("".concat(detailVisible
|
|
22
22
|
? 'TimelineItem-detail-visible'
|
|
23
23
|
: 'TimelineItem-detail-invisible')) }, detail)));
|
|
@@ -28,7 +28,7 @@ function TimelineItem(props) {
|
|
|
28
28
|
var levelColor = !isColorVal && color;
|
|
29
29
|
return (React__default.createElement("div", { className: cx('TimelineItem'), key: key },
|
|
30
30
|
React__default.createElement("div", { className: cx('TimelineItem-axle') },
|
|
31
|
-
React__default.createElement("div", { className: cx('TimelineItem-line') }),
|
|
31
|
+
React__default.createElement("div", { className: cx('TimelineItem-line', icon ? 'TimelineItem-line-icon' : '') }),
|
|
32
32
|
icon ? (React__default.createElement("div", { className: cx('TimelineItem-icon') },
|
|
33
33
|
React__default.createElement(Icon, { icon: icon, className: "icon" }))) : (React__default.createElement("div", { className: cx('TimelineItem-round', levelColor && "TimelineItem-round--".concat(levelColor)), style: isColorVal ? { backgroundColor: color } : undefined }))),
|
|
34
34
|
React__default.createElement("div", { className: cx('TimelineItem-content') },
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import 'tinymce/icons/default/index';
|
|
3
3
|
import 'tinymce/themes/silver';
|
|
4
|
+
import 'tinymce/models/dom/model';
|
|
4
5
|
import 'tinymce/plugins/advlist';
|
|
5
6
|
import 'tinymce/plugins/autolink';
|
|
6
7
|
import 'tinymce/plugins/lists';
|
|
7
8
|
import 'tinymce/plugins/link';
|
|
8
9
|
import 'tinymce/plugins/image';
|
|
9
10
|
import 'tinymce/plugins/charmap';
|
|
10
|
-
import 'tinymce/plugins/print';
|
|
11
11
|
import 'tinymce/plugins/preview';
|
|
12
12
|
import 'tinymce/plugins/anchor';
|
|
13
13
|
import 'tinymce/plugins/searchreplace';
|
|
@@ -17,10 +17,8 @@ import 'tinymce/plugins/fullscreen';
|
|
|
17
17
|
import 'tinymce/plugins/insertdatetime';
|
|
18
18
|
import 'tinymce/plugins/media';
|
|
19
19
|
import 'tinymce/plugins/table';
|
|
20
|
-
import 'tinymce/plugins/paste';
|
|
21
20
|
import 'tinymce/plugins/help';
|
|
22
21
|
import 'tinymce/plugins/wordcount';
|
|
23
|
-
import 'tinymce/plugins/hr';
|
|
24
22
|
import 'tinymce/plugins/pagebreak';
|
|
25
23
|
import 'tinymce/plugins/visualchars';
|
|
26
24
|
import 'tinymce/plugins/template';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -8,13 +8,13 @@ import React__default from 'react';
|
|
|
8
8
|
import tinymce from 'tinymce/tinymce';
|
|
9
9
|
import 'tinymce/icons/default/index';
|
|
10
10
|
import 'tinymce/themes/silver';
|
|
11
|
+
import 'tinymce/models/dom/model';
|
|
11
12
|
import 'tinymce/plugins/advlist';
|
|
12
13
|
import 'tinymce/plugins/autolink';
|
|
13
14
|
import 'tinymce/plugins/lists';
|
|
14
15
|
import 'tinymce/plugins/link';
|
|
15
16
|
import 'tinymce/plugins/image';
|
|
16
17
|
import 'tinymce/plugins/charmap';
|
|
17
|
-
import 'tinymce/plugins/print';
|
|
18
18
|
import 'tinymce/plugins/preview';
|
|
19
19
|
import 'tinymce/plugins/anchor';
|
|
20
20
|
import 'tinymce/plugins/searchreplace';
|
|
@@ -24,10 +24,8 @@ import 'tinymce/plugins/fullscreen';
|
|
|
24
24
|
import 'tinymce/plugins/insertdatetime';
|
|
25
25
|
import 'tinymce/plugins/media';
|
|
26
26
|
import 'tinymce/plugins/table';
|
|
27
|
-
import 'tinymce/plugins/paste';
|
|
28
27
|
import 'tinymce/plugins/help';
|
|
29
28
|
import 'tinymce/plugins/wordcount';
|
|
30
|
-
import 'tinymce/plugins/hr';
|
|
31
29
|
import 'tinymce/plugins/pagebreak';
|
|
32
30
|
import 'tinymce/plugins/visualchars';
|
|
33
31
|
import 'tinymce/plugins/template';
|
|
@@ -45,13 +43,32 @@ var TinymceEditor = /** @class */ (function (_super) {
|
|
|
45
43
|
TinymceEditor.prototype.componentDidMount = function () {
|
|
46
44
|
var _this = this;
|
|
47
45
|
var locale = this.props.locale;
|
|
48
|
-
this.config = __assign(__assign({ inline: false, skin: false, content_css: false, height: 400, language: !locale || locale === 'zh-CN' ? 'zh_CN' : 'en', plugins: [
|
|
49
|
-
'advlist
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
|
|
53
|
-
'
|
|
54
|
-
'
|
|
46
|
+
this.config = __assign(__assign({ inline: false, skin: false, content_css: false, height: 400, language: !locale || locale === 'zh-CN' ? 'zh_CN' : 'en', branding: false, plugins: [
|
|
47
|
+
'advlist',
|
|
48
|
+
'autolink',
|
|
49
|
+
'link',
|
|
50
|
+
'image',
|
|
51
|
+
'lists',
|
|
52
|
+
'charmap',
|
|
53
|
+
'preview',
|
|
54
|
+
'anchor',
|
|
55
|
+
'pagebreak',
|
|
56
|
+
'searchreplace',
|
|
57
|
+
'wordcount',
|
|
58
|
+
'visualblocks',
|
|
59
|
+
'visualchars',
|
|
60
|
+
'code',
|
|
61
|
+
'fullscreen',
|
|
62
|
+
'insertdatetime',
|
|
63
|
+
'media',
|
|
64
|
+
'nonbreaking',
|
|
65
|
+
'table',
|
|
66
|
+
'emoticons',
|
|
67
|
+
'template',
|
|
68
|
+
'help'
|
|
69
|
+
], toolbar: 'undo redo | blocks | bold italic | alignleft aligncenter alignright alignjustify | ' +
|
|
70
|
+
'bullist numlist outdent indent | link image | preview media | ' +
|
|
71
|
+
'fontfamily fontsize forecolor backcolor emoticons | print help', menu: {
|
|
55
72
|
file: {
|
|
56
73
|
title: 'File',
|
|
57
74
|
items: 'newdocument restoredraft | preview | print '
|
|
@@ -70,7 +87,7 @@ var TinymceEditor = /** @class */ (function (_super) {
|
|
|
70
87
|
},
|
|
71
88
|
format: {
|
|
72
89
|
title: 'Format',
|
|
73
|
-
items: 'bold italic underline strikethrough superscript subscript codeformat |
|
|
90
|
+
items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontsize align | forecolor backcolor | removeformat'
|
|
74
91
|
},
|
|
75
92
|
tools: {
|
|
76
93
|
title: 'Tools',
|
package/esm/components/Toast.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -234,7 +234,14 @@ var Transfer = /** @class */ (function (_super) {
|
|
|
234
234
|
var _b = this.state, resultSelectMode = _b.resultSelectMode, isTreeDeferLoad = _b.isTreeDeferLoad;
|
|
235
235
|
var searchable = !isTreeDeferLoad && resultSearchable;
|
|
236
236
|
var placeholder = resultSearchPlaceholder || __('Transfer.selectFromLeft');
|
|
237
|
-
|
|
237
|
+
switch (resultSelectMode) {
|
|
238
|
+
case 'table':
|
|
239
|
+
return (React__default.createElement(ResultTableList, { classnames: cx, columns: columns, options: options || [], value: value, disabled: disabled, option2value: option2value, cellRender: cellRender, onChange: onChange, multiple: false, searchable: searchable, placeholder: placeholder, onSearch: onResultSearch }));
|
|
240
|
+
case 'tree':
|
|
241
|
+
return (React__default.createElement(ResultTreeList, { classnames: cx, className: cx('Transfer-value'), options: options, valueField: 'value', value: value || [], onChange: onChange, itemRender: resultItemRender, searchable: searchable, placeholder: placeholder, onSearch: onResultSearch }));
|
|
242
|
+
default:
|
|
243
|
+
return (React__default.createElement(ResultList, { className: cx('Transfer-value'), sortable: sortable, disabled: disabled, value: value, onChange: onChange, placeholder: placeholder, itemRender: resultItemRender, searchable: searchable, onSearch: onResultSearch }));
|
|
244
|
+
}
|
|
238
245
|
};
|
|
239
246
|
Transfer.prototype.render = function () {
|
|
240
247
|
var _a = this.props, inline = _a.inline, cx = _a.classnames, className = _a.className, value = _a.value, resultTitle = _a.resultTitle, options = _a.options, option2value = _a.option2value, disabled = _a.disabled, statistics = _a.statistics, showArrow = _a.showArrow, resultListModeFollowSelect = _a.resultListModeFollowSelect, _b = _a.selectMode, selectMode = _b === void 0 ? 'list' : _b, __ = _a.translate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -45,8 +45,7 @@ var TransferDropDown = /** @class */ (function (_super) {
|
|
|
45
45
|
}, multiple: multiple }))));
|
|
46
46
|
} }, function (_a) {
|
|
47
47
|
var onClick = _a.onClick, isOpened = _a.isOpened, ref = _a.ref;
|
|
48
|
-
return (React__default.createElement(ResultBox, { className: cx('TransferDropDown', className, isOpened ? 'is-
|
|
49
|
-
React__default.createElement(Icon, { icon: "right-arrow-bold", className: "icon" }))) : (React__default.createElement(React__default.Fragment, null))));
|
|
48
|
+
return (React__default.createElement(ResultBox, { className: cx('TransferDropDown', className, isOpened ? 'is-opened' : ''), borderMode: borderMode, allowInput: false, result: multiple ? value : (value === null || value === void 0 ? void 0 : value[0]) ? value === null || value === void 0 ? void 0 : value[0] : null, onResultChange: onChange, onResultClick: onClick, placeholder: __('Select.placeholder'), disabled: disabled, clearable: clearable, maxTagCount: maxTagCount, overflowTagPopover: overflowTagPopover, ref: ref, itemRender: itemRender, useMobileUI: useMobileUI, hasDropDownArrow: !mobileUI }));
|
|
50
49
|
}));
|
|
51
50
|
};
|
|
52
51
|
return TransferDropDown;
|
package/esm/components/Tree.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -538,38 +538,39 @@ var TreeSelector = /** @class */ (function (_super) {
|
|
|
538
538
|
}) },
|
|
539
539
|
React__default.createElement(Icon, { icon: "down-arrow-bold", className: "icon" }))) : (React__default.createElement("span", { className: cx('Tree-itemArrowPlaceholder') })),
|
|
540
540
|
checkbox,
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
!
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
React__default.createElement(
|
|
569
|
-
|
|
570
|
-
React__default.createElement(
|
|
571
|
-
|
|
572
|
-
React__default.createElement(
|
|
541
|
+
React__default.createElement("div", { className: cx('Tree-itemLabel-item') },
|
|
542
|
+
showIcon ? (React__default.createElement("i", { className: cx("Tree-itemIcon ".concat(childrenItems ? 'Tree-folderIcon' : 'Tree-leafIcon')), onClick: function () {
|
|
543
|
+
return !nodeDisabled &&
|
|
544
|
+
(multiple
|
|
545
|
+
? _this.handleCheck(item, !selfChecked)
|
|
546
|
+
: _this.handleSelect(item));
|
|
547
|
+
} }, getIcon(iconValue) ? (React__default.createElement(Icon, { icon: iconValue, className: "icon" })) : React__default.isValidElement(iconValue) ? (iconValue) : (React__default.createElement("i", { className: iconValue })))) : null,
|
|
548
|
+
React__default.createElement("span", { className: cx('Tree-itemText'), onClick: function () {
|
|
549
|
+
return !nodeDisabled &&
|
|
550
|
+
(multiple
|
|
551
|
+
? _this.handleCheck(item, !selfChecked)
|
|
552
|
+
: _this.handleSelect(item));
|
|
553
|
+
}, title: item[labelField] }, highlightTxt
|
|
554
|
+
? highlight("".concat(item[labelField]), highlightTxt)
|
|
555
|
+
: itemRender
|
|
556
|
+
? itemRender(item, {
|
|
557
|
+
index: key,
|
|
558
|
+
multiple: multiple,
|
|
559
|
+
checked: checked,
|
|
560
|
+
onChange: function () { return _this.handleCheck(item, !selfChecked); },
|
|
561
|
+
disabled: disabled || item.disabled
|
|
562
|
+
})
|
|
563
|
+
: "".concat(item[labelField])),
|
|
564
|
+
!nodeDisabled &&
|
|
565
|
+
!isAdding &&
|
|
566
|
+
!isEditing &&
|
|
567
|
+
!(item.defer && !item.loaded) ? (React__default.createElement("div", { className: cx('Tree-item-icons') },
|
|
568
|
+
creatable && hasAbility(item, 'creatable') ? (React__default.createElement("a", { onClick: _this.handleAdd.bind(_this, item), "data-tooltip": __(createTip), "data-position": "left" },
|
|
569
|
+
React__default.createElement(Icon, { icon: "plus", className: "icon" }))) : null,
|
|
570
|
+
removable && hasAbility(item, 'removable') ? (React__default.createElement("a", { onClick: _this.handleRemove.bind(_this, item), "data-tooltip": __(removeTip), "data-position": "left" },
|
|
571
|
+
React__default.createElement(Icon, { icon: "minus", className: "icon" }))) : null,
|
|
572
|
+
editable && hasAbility(item, 'editable') ? (React__default.createElement("a", { onClick: _this.handleEdit.bind(_this, item), "data-tooltip": __(editTip), "data-position": "left" },
|
|
573
|
+
React__default.createElement(Icon, { icon: "new-edit", className: "icon" }))) : null)) : null))),
|
|
573
574
|
(childrenItems && _this.isUnfolded(item)) ||
|
|
574
575
|
(isAdding && addingParent === item) ? (React__default.createElement("ul", { className: cx('Tree-sublist') },
|
|
575
576
|
isAdding && addingParent === item ? (React__default.createElement("li", { className: cx('Tree-item') }, _this.renderInput(checkbox
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -479,7 +479,9 @@ var BaseDatePicker = /** @class */ (function (_super) {
|
|
|
479
479
|
? 'rdtPickerTime'
|
|
480
480
|
: dateFormat && !timeFormat
|
|
481
481
|
? 'rdtPickerDate'
|
|
482
|
-
: ''
|
|
482
|
+
: '', viewMode === 'months' || viewMode === 'years' || viewMode === 'quarters'
|
|
483
|
+
? 'rdtPickerNotDays'
|
|
484
|
+
: '') },
|
|
483
485
|
React__default.createElement(Component, { view: this.state.currentView, viewProps: viewProps, timeRangeHeader: timeRangeHeader }))));
|
|
484
486
|
};
|
|
485
487
|
return BaseDatePicker;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.
|
|
2
|
+
* amis-ui v2.1.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -11,6 +11,7 @@ import findIndex from 'lodash/findIndex';
|
|
|
11
11
|
import merge from 'lodash/merge';
|
|
12
12
|
import { convertArrayValueToMoment, isMobile, localeable } from 'amis-core';
|
|
13
13
|
import Picker from '../Picker.js';
|
|
14
|
+
import { Icon } from '../icons.js';
|
|
14
15
|
|
|
15
16
|
// 最早基于 react-datetime 2.16.2 版本,后来大部分都自己写了
|
|
16
17
|
var CustomDaysView = /** @class */ (function (_super) {
|
|
@@ -211,7 +212,6 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
211
212
|
var date = selectedDate || (isEndDate ? viewDate.endOf('day') : viewDate);
|
|
212
213
|
var inputs = [];
|
|
213
214
|
var timeConstraints = _this.timeConstraints;
|
|
214
|
-
inputs.push(_this.showTime());
|
|
215
215
|
timeFormat.split(':').forEach(function (format, i) {
|
|
216
216
|
var type = /h/i.test(format)
|
|
217
217
|
? 'hours'
|
|
@@ -257,7 +257,9 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
inputs.length && inputs.pop();
|
|
260
|
-
return React__default.createElement("div",
|
|
260
|
+
return (React__default.createElement("div", { className: cx('CalendarTimesWrapper') },
|
|
261
|
+
_this.showTime(),
|
|
262
|
+
React__default.createElement("div", { className: cx('CalendarInputsWrapper') }, inputs)));
|
|
261
263
|
};
|
|
262
264
|
_this.renderFooter = function () {
|
|
263
265
|
if (!_this.props.requiredConfirm) {
|
|
@@ -415,13 +417,18 @@ var CustomDaysView = /** @class */ (function (_super) {
|
|
|
415
417
|
React__default.createElement("tr", null,
|
|
416
418
|
React__default.createElement("th", { colSpan: 7 },
|
|
417
419
|
React__default.createElement("div", { className: "rdtHeader" },
|
|
418
|
-
React__default.createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') },
|
|
419
|
-
|
|
420
|
+
React__default.createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'years') },
|
|
421
|
+
React__default.createElement(Icon, { icon: "right-double-arrow", className: "icon date-icon-arrow-left" })),
|
|
422
|
+
React__default.createElement("a", { className: "rdtPrev", onClick: this.props.subtractTime(1, 'months') },
|
|
423
|
+
React__default.createElement(Icon, { icon: "right-arrow", className: "icon date-icon-arrow-left" })),
|
|
420
424
|
React__default.createElement("div", { className: "rdtCenter" },
|
|
421
425
|
React__default.createElement("a", { className: "rdtSwitch", onClick: this.props.showView('years') }, date.format(__('dateformat.year'))),
|
|
422
426
|
React__default.createElement("a", { className: "rdtSwitch", onClick: this.props.showView('months') }, date.format(__('MMM')))),
|
|
423
|
-
React__default.createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'months') },
|
|
424
|
-
|
|
427
|
+
React__default.createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'months') },
|
|
428
|
+
React__default.createElement(Icon, { icon: "right-arrow", className: "icon date-icon-arrow" })),
|
|
429
|
+
React__default.createElement("a", { className: "rdtNext", onClick: this.props.addTime(1, 'years') },
|
|
430
|
+
React__default.createElement(Icon, { icon: "right-double-arrow", className: "icon date-icon-arrow" }))),
|
|
431
|
+
React__default.createElement("div", { className: 'header-line' }))),
|
|
425
432
|
React__default.createElement("tr", null, this.getDaysOfWeek(locale).map(function (day, index) { return (React__default.createElement("th", { key: day + index, className: "dow" }, day)); })))),
|
|
426
433
|
React__default.createElement("tbody", { key: "tb" }, this.renderDays())
|
|
427
434
|
];
|