amis-ui 2.0.2 → 2.2.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.js +8 -8
- package/esm/components/ArrayInput.js +1 -1
- package/esm/components/AsideNav.d.ts +11 -11
- 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 +38 -2
- 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 +3 -9
- package/esm/components/ChainedSelection.js +1 -1
- package/esm/components/Checkbox.js +1 -1
- package/esm/components/CityArea.js +2 -2
- package/esm/components/CityDB.js +4097 -2
- 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 +198 -2
- 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 +144 -81
- package/esm/components/DateRangePicker.js +191 -80
- package/esm/components/Drawer.d.ts +10 -10
- package/esm/components/Drawer.js +1 -1
- package/esm/components/Editor.d.ts +47 -41
- package/esm/components/Editor.js +9 -8
- 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 +56 -2
- package/esm/components/Modal.d.ts +60 -58
- package/esm/components/Modal.js +9 -4
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/NumberInput.js +2 -2
- package/esm/components/Pagination.d.ts +49 -66
- package/esm/components/Pagination.js +4 -4
- 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.d.ts +1 -0
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.js +1 -1
- package/esm/components/Progress.d.ts +16 -10
- package/esm/components/Progress.js +27 -5
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.js +3 -2
- 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 +258 -2
- package/esm/components/SearchBox.js +1 -1
- package/esm/components/Select.d.ts +194 -193
- package/esm/components/Select.js +9 -5
- 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.d.ts +149 -13
- package/esm/components/Tabs.js +39 -11
- package/esm/components/TabsTransfer.js +1 -1
- package/esm/components/TabsTransferPicker.js +1 -1
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.js +4 -2
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.js +4 -4
- package/esm/components/Tinymce.d.ts +1 -3
- package/esm/components/Tinymce.js +561 -2
- 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 +11 -4
- package/esm/components/TransferDropDown.js +4 -5
- 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 +5 -3
- 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.d.ts +1 -0
- package/esm/components/calendar/Calendar.js +7 -2
- package/esm/components/calendar/CalendarContainer.js +1 -1
- package/esm/components/calendar/DaysView.d.ts +1 -1
- package/esm/components/calendar/DaysView.js +65 -29
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.js +1 -1
- package/esm/components/calendar/TimeView.d.ts +0 -1
- package/esm/components/calendar/TimeView.js +5 -6
- 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 +4 -4
- 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.d.ts +1 -0
- package/esm/components/formula/Picker.js +10 -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 +18 -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.d.ts +2 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/HeadCellDropDown.d.ts +3 -1
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +3 -2
- package/esm/components/table/HeadCellFilter.js +4 -4
- package/esm/components/table/HeadCellSelect.d.ts +3 -2
- package/esm/components/table/HeadCellSelect.js +4 -2
- package/esm/components/table/HeadCellSort.d.ts +4 -3
- package/esm/components/table/HeadCellSort.js +6 -6
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/index.d.ts +3 -4
- package/esm/components/table/index.js +9 -9
- package/esm/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/esm/components/virtual-list/constants.js +1 -1
- package/esm/components/virtual-list/index.d.ts +3 -3
- 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 +25 -5
- package/esm/locale/en-US.js +21 -1
- package/esm/locale/zh-CN.js +25 -7
- 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.js +2 -2
- package/lib/components/AnchorNav.js +8 -8
- package/lib/components/ArrayInput.js +1 -1
- package/lib/components/AsideNav.d.ts +11 -11
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.js +1 -1
- 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 +41 -4
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.js +3 -9
- package/lib/components/ChainedSelection.js +1 -1
- package/lib/components/Checkbox.js +1 -1
- package/lib/components/CityArea.js +2 -2
- package/lib/components/CityDB.js +4099 -8
- package/lib/components/CodeMirror.js +1 -1
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.js +200 -4
- 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 +144 -81
- package/lib/components/DateRangePicker.js +191 -78
- package/lib/components/Drawer.d.ts +10 -10
- package/lib/components/Drawer.js +1 -1
- package/lib/components/Editor.d.ts +47 -41
- package/lib/components/Editor.js +9 -9
- 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.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.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.js +1 -1
- package/lib/components/LocationPicker.js +1 -1
- package/lib/components/Markdown.js +59 -4
- package/lib/components/Modal.d.ts +60 -58
- package/lib/components/Modal.js +9 -4
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/NumberInput.js +2 -2
- package/lib/components/Pagination.d.ts +49 -66
- package/lib/components/Pagination.js +4 -4
- 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.d.ts +1 -0
- package/lib/components/PopOverContainer.js +3 -3
- package/lib/components/PopUp.js +1 -1
- package/lib/components/Progress.d.ts +16 -10
- package/lib/components/Progress.js +27 -5
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.js +3 -2
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.js +7 -3
- package/lib/components/ResultList.js +1 -1
- package/lib/components/ResultTableList.js +1 -1
- package/lib/components/ResultTreeList.js +1 -1
- package/lib/components/RichText.js +261 -3
- package/lib/components/SearchBox.js +1 -1
- package/lib/components/Select.d.ts +194 -193
- package/lib/components/Select.js +8 -4
- 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.js +1 -1
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.js +1 -1
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +149 -13
- package/lib/components/Tabs.js +39 -11
- package/lib/components/TabsTransfer.js +1 -1
- package/lib/components/TabsTransferPicker.js +1 -1
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.js +4 -2
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.js +4 -4
- package/lib/components/Tinymce.d.ts +1 -3
- package/lib/components/Tinymce.js +563 -3
- 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.js +11 -4
- package/lib/components/TransferDropDown.js +4 -5
- package/lib/components/TransferPicker.js +1 -1
- package/lib/components/TransferSearch.js +1 -1
- package/lib/components/Tree.js +34 -33
- package/lib/components/TreeSelection.js +1 -1
- package/lib/components/UserSelect.js +5 -3
- 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.d.ts +1 -0
- package/lib/components/calendar/Calendar.js +7 -2
- package/lib/components/calendar/CalendarContainer.js +1 -1
- package/lib/components/calendar/DaysView.d.ts +1 -1
- package/lib/components/calendar/DaysView.js +69 -29
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.js +1 -1
- package/lib/components/calendar/TimeView.d.ts +0 -1
- package/lib/components/calendar/TimeView.js +5 -6
- 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 +4 -4
- 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.js +1 -1
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Picker.d.ts +1 -0
- package/lib/components/formula/Picker.js +10 -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 +18 -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.js +1 -1
- package/lib/components/table/Cell.d.ts +2 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/HeadCellDropDown.d.ts +3 -1
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +3 -2
- package/lib/components/table/HeadCellFilter.js +4 -4
- package/lib/components/table/HeadCellSelect.d.ts +3 -2
- package/lib/components/table/HeadCellSelect.js +4 -2
- package/lib/components/table/HeadCellSort.d.ts +4 -3
- package/lib/components/table/HeadCellSort.js +6 -6
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/index.d.ts +3 -4
- package/lib/components/table/index.js +9 -9
- package/lib/components/virtual-list/SizeAndPositionManager.js +1 -1
- package/lib/components/virtual-list/constants.js +1 -1
- package/lib/components/virtual-list/index.d.ts +3 -3
- package/lib/components/virtual-list/index.js +1 -1
- package/lib/helper.css +0 -8335
- 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 +25 -5
- package/lib/locale/en-US.js +21 -1
- package/lib/locale/zh-CN.js +25 -7
- package/lib/scss/helper.scss.js +3 -5
- package/lib/scss/themes/ang.scss.js +3 -5
- package/lib/scss/themes/antd.scss.js +3 -5
- package/lib/scss/themes/cxd.scss.js +3 -5
- package/lib/scss/themes/dark.scss.js +3 -5
- package/lib/scss/themes/default.scss.js +3 -5
- package/lib/themes/ang.css +1751 -913
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +1751 -913
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +1800 -961
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +1755 -917
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +1800 -961
- package/package.json +14 -12
- package/scss/_properties.scss +100 -23
- 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/_card.scss +4 -0
- package/scss/components/_collapse-group.scss +13 -1
- package/scss/components/_collapse.scss +2 -1
- package/scss/components/_column-toggler.scss +7 -1
- package/scss/components/_crud.scss +10 -2
- package/scss/components/_crud2.scss +10 -2
- package/scss/components/_drawer.scss +58 -5
- package/scss/components/_dropdown.scss +1 -0
- package/scss/components/_image-gallery.scss +62 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_modal.scss +7 -10
- package/scss/components/_page.scss +1 -1
- package/scss/components/_pagination.scss +4 -3
- package/scss/components/_progress.scss +15 -1
- package/scss/components/_result-box.scss +5 -6
- package/scss/components/_search-box.scss +4 -0
- package/scss/components/_steps.scss +23 -12
- package/scss/components/_table.scss +124 -12
- package/scss/components/{_table-v2.scss → _table2.scss} +1 -1
- package/scss/components/_tabs.scss +91 -5
- package/scss/components/_timeline.scss +15 -1
- package/scss/components/form/_checks.scss +13 -2
- package/scss/components/form/_date-range.scss +40 -11
- package/scss/components/form/_date.scss +99 -33
- package/scss/components/form/_editor.scss +11 -0
- package/scss/components/form/_form.scss +14 -3
- 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 -3
- 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 +33 -11
- package/scss/components/form/_tree.scss +33 -7
- package/scss/components/react-datetime.scss +6 -1
- package/scss/themes/_common.scss +1 -1
- package/scss/themes/_cxd-variables.scss +9 -8
- package/scss/themes/cxd.scss +6 -8
- package/esm/components/BarCode2.js +0 -42
- package/esm/components/CityDB2.js +0 -4101
- package/esm/components/ColorPicker2.js +0 -202
- package/esm/components/Markdown2.js +0 -60
- package/esm/components/RichText2.js +0 -262
- package/esm/components/Tinymce2.js +0 -548
- package/lib/components/BarCode2.js +0 -52
- package/lib/components/CityDB2.js +0 -4108
- package/lib/components/ColorPicker2.js +0 -211
- package/lib/components/Markdown2.js +0 -70
- package/lib/components/RichText2.js +0 -272
- package/lib/components/Tinymce2.js +0 -557
- package/lib/scss/helper.scss2.js +0 -12
- package/lib/scss/themes/ang.scss2.js +0 -12
- package/lib/scss/themes/antd.scss2.js +0 -12
- package/lib/scss/themes/cxd.scss2.js +0 -12
- package/lib/scss/themes/dark.scss2.js +0 -12
- package/lib/scss/themes/default.scss2.js +0 -12
|
@@ -5,6 +5,10 @@ interface ColorProps {
|
|
|
5
5
|
value: number;
|
|
6
6
|
color: string;
|
|
7
7
|
}
|
|
8
|
+
export interface ThresholdProps {
|
|
9
|
+
value: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
8
12
|
export declare type ColorMapType = Array<string> | Array<ColorProps> | string;
|
|
9
13
|
interface ProgressProps extends ThemeProps {
|
|
10
14
|
type: 'line' | 'circle' | 'dashboard';
|
|
@@ -20,6 +24,8 @@ interface ProgressProps extends ThemeProps {
|
|
|
20
24
|
strokeWidth?: number;
|
|
21
25
|
progressClassName?: ClassName;
|
|
22
26
|
classnames: ClassNamesFn;
|
|
27
|
+
threshold: ThresholdProps | ThresholdProps[];
|
|
28
|
+
showThresholdText: boolean;
|
|
23
29
|
}
|
|
24
30
|
export declare class Progress extends React.Component<ProgressProps, Object> {
|
|
25
31
|
static defaultProps: Partial<ProgressProps>;
|
|
@@ -30,15 +36,15 @@ export declare class Progress extends React.Component<ProgressProps, Object> {
|
|
|
30
36
|
render(): JSX.Element;
|
|
31
37
|
}
|
|
32
38
|
declare const _default: {
|
|
33
|
-
new (props: Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
39
|
+
new (props: Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps): {
|
|
34
40
|
ref: any;
|
|
35
41
|
childRef(ref: any): void;
|
|
36
42
|
getWrappedInstance(): any;
|
|
37
43
|
render(): JSX.Element;
|
|
38
44
|
context: any;
|
|
39
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
45
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
40
46
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
41
|
-
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
47
|
+
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps> & Readonly<{
|
|
42
48
|
children?: React.ReactNode;
|
|
43
49
|
}>;
|
|
44
50
|
state: Readonly<{}>;
|
|
@@ -46,17 +52,17 @@ declare const _default: {
|
|
|
46
52
|
[key: string]: React.ReactInstance;
|
|
47
53
|
};
|
|
48
54
|
componentDidMount?(): void;
|
|
49
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
55
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
|
50
56
|
componentWillUnmount?(): void;
|
|
51
57
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
52
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
53
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
58
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
|
59
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
|
54
60
|
componentWillMount?(): void;
|
|
55
61
|
UNSAFE_componentWillMount?(): void;
|
|
56
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
57
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
58
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
59
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
62
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
63
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextContext: any): void;
|
|
64
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
65
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "type" | "map" | "animate" | "value" | "placeholder" | "format" | "showLabel" | "stripe" | "gapDegree" | "gapPosition" | "strokeWidth" | "progressClassName" | "threshold" | "showThresholdText">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("amis-core/lib/theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
60
66
|
};
|
|
61
67
|
displayName: string;
|
|
62
68
|
contextType: React.Context<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -58,7 +58,7 @@ var Progress = /** @class */ (function (_super) {
|
|
|
58
58
|
};
|
|
59
59
|
Progress.prototype.render = function () {
|
|
60
60
|
var _a, _b, _c, _d;
|
|
61
|
-
var _e = this.props, className = _e.className, progressClassName = _e.progressClassName, type = _e.type, value = _e.value, placeholder = _e.placeholder, stripe = _e.stripe, animate = _e.animate, gapDegree = _e.gapDegree, gapPosition = _e.gapPosition, strokeWidth = _e.strokeWidth, cx = _e.classnames;
|
|
61
|
+
var _e = this.props, className = _e.className, progressClassName = _e.progressClassName, type = _e.type, value = _e.value, placeholder = _e.placeholder, stripe = _e.stripe, animate = _e.animate, gapDegree = _e.gapDegree, gapPosition = _e.gapPosition, strokeWidth = _e.strokeWidth, cx = _e.classnames, threshold = _e.threshold, showThresholdText = _e.showThresholdText;
|
|
62
62
|
var isLineType = type === 'line';
|
|
63
63
|
var prefixCls = isLineType ? 'Progress-line' : 'Progress-circle';
|
|
64
64
|
var bgColor = this.getCurrentColor();
|
|
@@ -73,15 +73,37 @@ var Progress = /** @class */ (function (_super) {
|
|
|
73
73
|
};
|
|
74
74
|
strokeWidth && (barStyle.height = strokeWidth);
|
|
75
75
|
!isColorClass && (barStyle.backgroundColor = bgColor);
|
|
76
|
+
var thresholdDom = null;
|
|
77
|
+
if (threshold) {
|
|
78
|
+
var temp_1 = function (text, color) { return (React__default.createElement("div", { style: {
|
|
79
|
+
left: text,
|
|
80
|
+
borderColor: color || 'var(--text-color)'
|
|
81
|
+
}, className: cx("".concat(prefixCls, "-threshold")), key: text }, showThresholdText ? (React__default.createElement("span", { className: cx("".concat(prefixCls, "-threshold-text")) }, text)) : null)); };
|
|
82
|
+
if (Array.isArray(threshold)) {
|
|
83
|
+
thresholdDom = threshold.map(function (item) {
|
|
84
|
+
var text = parseFloat(item.value) + '%';
|
|
85
|
+
return temp_1(text, item.color);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
var text = parseFloat(threshold.value) + '%';
|
|
90
|
+
thresholdDom = temp_1(text, threshold.color);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
76
93
|
viewValue = [
|
|
77
94
|
React__default.createElement("div", { key: "progress", className: cx(prefixCls, progressClassName) },
|
|
95
|
+
thresholdDom,
|
|
78
96
|
React__default.createElement("div", { className: cx("".concat(prefixCls, "-inter")) },
|
|
79
97
|
React__default.createElement("div", { className: cx("".concat(prefixCls, "-bar"), (_a = {}, _a[bgColor] = isColorClass, _a), (_b = {}, _b["".concat(prefixCls, "-bar--stripe")] = stripe, _b), (_c = {}, _c["".concat(prefixCls, "-bar--animate")] = animate && !stripe, _c), (_d = {}, _d["".concat(prefixCls, "-bar--stripe-animate")] = animate && stripe, _d)), title: "".concat(value, "%"), style: barStyle }))),
|
|
80
98
|
this.getLabel(prefixCls)
|
|
81
99
|
];
|
|
82
100
|
}
|
|
83
101
|
else if (type === 'circle' || type === 'dashboard') {
|
|
84
|
-
var circleWidth = strokeWidth ||
|
|
102
|
+
var circleWidth = strokeWidth || 8;
|
|
103
|
+
var circleStyle = {
|
|
104
|
+
width: circleWidth * 10 + 'px',
|
|
105
|
+
height: circleWidth * 10 + 'px'
|
|
106
|
+
};
|
|
85
107
|
var gapPos = gapPosition || (type === 'dashboard' && 'bottom') || 'top';
|
|
86
108
|
var getGapDegree = function () {
|
|
87
109
|
if (gapDegree || gapDegree === 0) {
|
|
@@ -93,8 +115,8 @@ var Progress = /** @class */ (function (_super) {
|
|
|
93
115
|
return undefined;
|
|
94
116
|
};
|
|
95
117
|
viewValue = [
|
|
96
|
-
React__default.createElement("div", { className: cx(prefixCls, progressClassName
|
|
97
|
-
React__default.createElement(Circle, { percent: value, strokeColor: !isColorClass ? bgColor : '', strokeWidth: circleWidth, trailWidth: circleWidth, prefixCls: isColorClass ? bgColor : '', gapDegree: getGapDegree(), gapPosition: gapPos }),
|
|
118
|
+
React__default.createElement("div", { className: cx(prefixCls, progressClassName), key: "circle", style: circleStyle },
|
|
119
|
+
React__default.createElement(Circle, { percent: value, strokeColor: !isColorClass ? bgColor : '', strokeWidth: circleWidth, trailWidth: circleWidth, prefixCls: isColorClass ? bgColor : '', gapDegree: getGapDegree(), gapPosition: gapPos, style: circleStyle }),
|
|
98
120
|
this.getLabel(prefixCls))
|
|
99
121
|
];
|
|
100
122
|
}
|
package/esm/components/Radios.js
CHANGED
package/esm/components/Range.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -28,7 +28,8 @@ var MARKS_REG = /^[0-9]+(\.?[0-9]+)?%$/;
|
|
|
28
28
|
* @returns position.left
|
|
29
29
|
*/
|
|
30
30
|
var valueToOffsetLeft = function (value, min, max) {
|
|
31
|
-
|
|
31
|
+
// 最多保留两位小数,且尽量取整
|
|
32
|
+
return Math.floor(((value - min) * 10000) / (max - min)) / 100 + '%';
|
|
32
33
|
};
|
|
33
34
|
/**
|
|
34
35
|
* 滑块handle
|
package/esm/components/Rating.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -116,8 +116,12 @@ var ResultBox = /** @class */ (function (_super) {
|
|
|
116
116
|
_a)), onClick: onResultClick, tabIndex: !allowInput && !disabled && onFocus ? 0 : -1, onKeyPress: allowInput ? undefined : onKeyPress, onFocus: allowInput ? undefined : onFocus, onBlur: allowInput ? undefined : onBlur },
|
|
117
117
|
React__default.createElement("div", { className: cx('ResultBox-value-wrap') },
|
|
118
118
|
Array.isArray(result) && result.length ? (this.renderMultipeTags(result)) : result && !Array.isArray(result) ? (React__default.createElement("span", { className: cx('ResultBox-singleValue') }, isPlainObject(result) ? itemRender(result) : result)) : allowInput && !disabled ? null : (React__default.createElement("span", { className: cx('ResultBox-placeholder') }, __(placeholder || 'placeholder.noData'))),
|
|
119
|
-
allowInput && !disabled ? (React__default.createElement(Input, __assign({}, rest, { className: cx('ResultBox-value-input'), onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(
|
|
120
|
-
|
|
119
|
+
allowInput && !disabled ? (React__default.createElement(Input, __assign({}, rest, { className: cx('ResultBox-value-input'), onKeyPress: onKeyPress, ref: this.inputRef, value: value || '', onChange: this.handleChange, placeholder: __(
|
|
120
|
+
/** 数组模式下输入内容后将不再展示placeholder */
|
|
121
|
+
Array.isArray(result)
|
|
122
|
+
? result.length > 0
|
|
123
|
+
? inputPlaceholder
|
|
124
|
+
: placeholder
|
|
121
125
|
: result
|
|
122
126
|
? ''
|
|
123
127
|
: placeholder), onFocus: this.handleFocus, onBlur: this.handleBlur }))) : null,
|
|
@@ -1,6 +1,262 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v2.0
|
|
2
|
+
* amis-ui v2.2.0
|
|
3
3
|
* Copyright 2018-2022 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
import { __extends, __assign } from 'tslib';
|
|
7
|
+
import React__default from 'react';
|
|
8
|
+
import FroalaEditor from 'froala-editor';
|
|
9
|
+
import Froala from 'froala-editor/js/froala_editor.min.js';
|
|
10
|
+
import 'froala-editor/js/plugins/align.min';
|
|
11
|
+
import 'froala-editor/js/plugins/colors.min';
|
|
12
|
+
import 'froala-editor/js/plugins/char_counter.min';
|
|
13
|
+
import 'froala-editor/js/plugins/code_view.min';
|
|
14
|
+
import 'froala-editor/js/plugins/draggable.min';
|
|
15
|
+
import 'froala-editor/js/plugins/entities.min';
|
|
16
|
+
import 'froala-editor/js/plugins/font_family.min';
|
|
17
|
+
import 'froala-editor/js/plugins/font_size.min';
|
|
18
|
+
import 'froala-editor/js/plugins/forms.min';
|
|
19
|
+
import 'froala-editor/js/plugins/fullscreen.min';
|
|
20
|
+
import 'froala-editor/js/plugins/help.min';
|
|
21
|
+
import 'froala-editor/js/plugins/image.min';
|
|
22
|
+
import 'froala-editor/js/plugins/inline_class.min';
|
|
23
|
+
import 'froala-editor/js/plugins/inline_style.min';
|
|
24
|
+
import 'froala-editor/js/plugins/line_breaker.min';
|
|
25
|
+
import 'froala-editor/js/plugins/line_height.min';
|
|
26
|
+
import 'froala-editor/js/plugins/link.min';
|
|
27
|
+
import 'froala-editor/js/plugins/lists.min';
|
|
28
|
+
import 'froala-editor/js/plugins/paragraph_format.min';
|
|
29
|
+
import 'froala-editor/js/plugins/paragraph_style.min';
|
|
30
|
+
import 'froala-editor/js/plugins/print.min';
|
|
31
|
+
import 'froala-editor/js/plugins/quick_insert.min';
|
|
32
|
+
import 'froala-editor/js/plugins/quote.min';
|
|
33
|
+
import 'froala-editor/js/plugins/save.min';
|
|
34
|
+
import 'froala-editor/js/plugins/special_characters.min';
|
|
35
|
+
import 'froala-editor/js/plugins/table.min';
|
|
36
|
+
import 'froala-editor/js/plugins/url.min';
|
|
37
|
+
import 'froala-editor/js/plugins/video.min';
|
|
38
|
+
import 'froala-editor/js/plugins/word_paste.min';
|
|
39
|
+
import 'froala-editor/js/languages/zh_cn.js';
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @file RichText
|
|
43
|
+
* @description
|
|
44
|
+
* @author fex
|
|
45
|
+
*/
|
|
46
|
+
// 代码来源于:https://github.com/froala/react-froala-wysiwyg/blob/master/lib/FroalaEditorFunctionality.jsx
|
|
47
|
+
// 改动原因是model 同步有些问题,有时候不更新,所以基于官方代码改造一下。
|
|
48
|
+
// 目前发现的问题是,如果 model 数据修改,如果此时 editor 还没有初始化完成则不会同步成功
|
|
49
|
+
var FroalaEditorComponent = /** @class */ (function (_super) {
|
|
50
|
+
__extends(FroalaEditorComponent, _super);
|
|
51
|
+
function FroalaEditorComponent(props) {
|
|
52
|
+
var _this = _super.call(this, props) || this;
|
|
53
|
+
_this.listeningEvents = [];
|
|
54
|
+
_this.element = null;
|
|
55
|
+
_this.editor = null;
|
|
56
|
+
_this.config = {
|
|
57
|
+
immediateReactModelUpdate: false,
|
|
58
|
+
reactIgnoreAttrs: null
|
|
59
|
+
};
|
|
60
|
+
_this.editorInitialized = false;
|
|
61
|
+
_this.INNER_HTML_ATTR = 'innerHTML';
|
|
62
|
+
_this.oldModel = null;
|
|
63
|
+
return _this;
|
|
64
|
+
}
|
|
65
|
+
// After first time render.
|
|
66
|
+
FroalaEditorComponent.prototype.componentDidMount = function () {
|
|
67
|
+
this.createEditor();
|
|
68
|
+
};
|
|
69
|
+
FroalaEditorComponent.prototype.componentWillUnmount = function () {
|
|
70
|
+
this.destroyEditor();
|
|
71
|
+
};
|
|
72
|
+
FroalaEditorComponent.prototype.componentDidUpdate = function () {
|
|
73
|
+
if (JSON.stringify(this.oldModel) == JSON.stringify(this.props.model)) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
this.setContent();
|
|
77
|
+
};
|
|
78
|
+
// Return cloned object
|
|
79
|
+
FroalaEditorComponent.prototype.clone = function (item) {
|
|
80
|
+
var me = this;
|
|
81
|
+
if (!item) {
|
|
82
|
+
return item;
|
|
83
|
+
} // null, undefined values check
|
|
84
|
+
var types = [Number, String, Boolean], result;
|
|
85
|
+
// normalizing primitives if someone did new String('aaa'), or new Number('444');
|
|
86
|
+
types.forEach(function (type) {
|
|
87
|
+
if (item instanceof type) {
|
|
88
|
+
result = type(item);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
if (typeof result == 'undefined') {
|
|
92
|
+
if (Object.prototype.toString.call(item) === '[object Array]') {
|
|
93
|
+
result = [];
|
|
94
|
+
item.forEach(function (child, index, array) {
|
|
95
|
+
result[index] = me.clone(child);
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
else if (typeof item == 'object') {
|
|
99
|
+
// testing that this is DOM
|
|
100
|
+
if (item.nodeType && typeof item.cloneNode == 'function') {
|
|
101
|
+
result = item.cloneNode(true);
|
|
102
|
+
}
|
|
103
|
+
else if (!item.prototype) {
|
|
104
|
+
// check that this is a literal
|
|
105
|
+
if (item instanceof Date) {
|
|
106
|
+
result = new Date(item);
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// it is an object literal
|
|
110
|
+
result = {};
|
|
111
|
+
for (var i in item) {
|
|
112
|
+
result[i] = me.clone(item[i]);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
{
|
|
118
|
+
result = item;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
result = item;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return result;
|
|
127
|
+
};
|
|
128
|
+
FroalaEditorComponent.prototype.createEditor = function () {
|
|
129
|
+
var _this = this;
|
|
130
|
+
if (this.editorInitialized) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.config = this.clone(this.props.config || this.config);
|
|
134
|
+
this.config = __assign({}, this.config);
|
|
135
|
+
this.element = this.el;
|
|
136
|
+
if (this.props.model) {
|
|
137
|
+
this.element.innerHTML = this.props.model;
|
|
138
|
+
}
|
|
139
|
+
this.setContent();
|
|
140
|
+
// Default initialized.
|
|
141
|
+
this.registerEvent('initialized', this.config.events && this.config.events.initialized);
|
|
142
|
+
// Check if events are set.
|
|
143
|
+
if (!this.config.events)
|
|
144
|
+
this.config.events = {};
|
|
145
|
+
this.config.events.initialized = function () {
|
|
146
|
+
_this.editorInitialized = true;
|
|
147
|
+
_this.initListeners();
|
|
148
|
+
};
|
|
149
|
+
this.editor = new FroalaEditor(this.element, this.config);
|
|
150
|
+
};
|
|
151
|
+
FroalaEditorComponent.prototype.setContent = function () {
|
|
152
|
+
var _this = this;
|
|
153
|
+
if (this.props.model || this.props.model == '') {
|
|
154
|
+
this.oldModel = this.props.model;
|
|
155
|
+
if (this.editorInitialized) {
|
|
156
|
+
this.setNormalTagContent();
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
if (!this._initEvents)
|
|
160
|
+
this._initEvents = [];
|
|
161
|
+
this._initEvents.push(function () { return _this.setNormalTagContent(); });
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
FroalaEditorComponent.prototype.setNormalTagContent = function () {
|
|
166
|
+
var self = this;
|
|
167
|
+
self.editor.html && self.editor.html.set(self.props.model || '');
|
|
168
|
+
if (self.editorInitialized && self.editor.undo) {
|
|
169
|
+
//This will reset the undo stack everytime the model changes externally. Can we fix this?
|
|
170
|
+
self.editor.undo.reset();
|
|
171
|
+
self.editor.undo.saveStep();
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
FroalaEditorComponent.prototype.destroyEditor = function () {
|
|
175
|
+
if (this.element) {
|
|
176
|
+
this.editor.destroy && this.editor.destroy();
|
|
177
|
+
this.listeningEvents.length = 0;
|
|
178
|
+
this.element = null;
|
|
179
|
+
this.editorInitialized = false;
|
|
180
|
+
this._initEvents = [];
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
FroalaEditorComponent.prototype.getEditor = function () {
|
|
184
|
+
if (this.element) {
|
|
185
|
+
return this.editor;
|
|
186
|
+
}
|
|
187
|
+
return null;
|
|
188
|
+
};
|
|
189
|
+
FroalaEditorComponent.prototype.updateModel = function () {
|
|
190
|
+
if (!this.props.onModelChange) {
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
var modelContent = '';
|
|
194
|
+
var returnedHtml = this.editor.html.get();
|
|
195
|
+
if (typeof returnedHtml === 'string') {
|
|
196
|
+
modelContent = returnedHtml;
|
|
197
|
+
}
|
|
198
|
+
this.oldModel = modelContent;
|
|
199
|
+
this.props.onModelChange(modelContent);
|
|
200
|
+
};
|
|
201
|
+
FroalaEditorComponent.prototype.initListeners = function () {
|
|
202
|
+
var self = this;
|
|
203
|
+
// bind contentChange and keyup event to froalaModel
|
|
204
|
+
this.editor.events.on('contentChanged', function () {
|
|
205
|
+
self.updateModel();
|
|
206
|
+
});
|
|
207
|
+
if (this.config.immediateReactModelUpdate) {
|
|
208
|
+
this.editor.events.on('keyup', function () {
|
|
209
|
+
self.updateModel();
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
// Call init events.
|
|
213
|
+
if (this._initEvents) {
|
|
214
|
+
for (var i = 0; i < this._initEvents.length; i++) {
|
|
215
|
+
this._initEvents[i].call(this.editor);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
// register event on jquery editor element
|
|
220
|
+
FroalaEditorComponent.prototype.registerEvent = function (eventName, callback) {
|
|
221
|
+
if (!eventName || !callback) {
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
if (eventName == 'initialized') {
|
|
225
|
+
if (!this._initEvents)
|
|
226
|
+
this._initEvents = [];
|
|
227
|
+
this._initEvents.push(callback);
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
if (!this.config.events) {
|
|
231
|
+
this.config.events = {};
|
|
232
|
+
}
|
|
233
|
+
this.config.events[eventName] = callback;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
FroalaEditorComponent.prototype.render = function () {
|
|
237
|
+
var _this = this;
|
|
238
|
+
return (React__default.createElement("textarea", { ref: function (el) { return (_this.el = el); } }, this.props.children));
|
|
239
|
+
};
|
|
240
|
+
return FroalaEditorComponent;
|
|
241
|
+
}(React__default.Component));
|
|
242
|
+
var default_1 = /** @class */ (function (_super) {
|
|
243
|
+
__extends(default_1, _super);
|
|
244
|
+
function default_1(props) {
|
|
245
|
+
var _this = _super.call(this, props) || this;
|
|
246
|
+
Froala.VIDEO_PROVIDERS = [
|
|
247
|
+
{
|
|
248
|
+
test_regex: /.*/,
|
|
249
|
+
url_regex: '',
|
|
250
|
+
url_text: '',
|
|
251
|
+
html: '<span class="fr-video fr-dvb fr-draggable" contenteditable="false" draggable="true"><video class="fr-draggable" controls="" data-msg="ok" data-status="0" src="{url}" style="width: 600px;"></video></span>'
|
|
252
|
+
}
|
|
253
|
+
];
|
|
254
|
+
return _this;
|
|
255
|
+
}
|
|
256
|
+
default_1.prototype.render = function () {
|
|
257
|
+
return (React__default.createElement(FroalaEditorComponent, { config: this.props.config, model: this.props.model, onModelChange: this.props.onModelChange }));
|
|
258
|
+
};
|
|
259
|
+
return default_1;
|
|
260
|
+
}(React__default.Component));
|
|
261
|
+
|
|
262
|
+
export { default_1 as default };
|