amis-ui 6.14.0-beta.0 → 6.14.0-beta.10
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/HTMLFilterContext.d.ts +3 -0
- package/esm/HTMLFilterContext.js +10 -0
- package/esm/components/404.d.ts +2 -3
- package/esm/components/404.js +1 -1
- package/esm/components/Alert.d.ts +89 -90
- package/esm/components/Alert.js +1 -1
- package/esm/components/Alert2.d.ts +2 -3
- package/esm/components/Alert2.js +1 -1
- package/esm/components/AlphabetIndexer.js +1 -1
- package/esm/components/AnchorNav.d.ts +17 -17
- package/esm/components/AnchorNav.js +4 -4
- package/esm/components/AnchorNavSection.js +1 -1
- package/esm/components/ArrayInput.d.ts +129 -130
- package/esm/components/ArrayInput.js +3 -3
- package/esm/components/AsideNav.d.ts +2 -3
- package/esm/components/AsideNav.js +1 -1
- package/esm/components/AssociatedSelection.d.ts +88 -89
- package/esm/components/AssociatedSelection.js +3 -3
- package/esm/components/AutoFoldedList.d.ts +2 -3
- package/esm/components/AutoFoldedList.js +1 -1
- package/esm/components/AutoSizer.js +1 -1
- package/esm/components/Avatar.d.ts +62 -63
- package/esm/components/Avatar.js +1 -1
- package/esm/components/Badge.d.ts +2 -50
- package/esm/components/Badge.js +1 -1
- package/esm/components/BaiduMapPicker.d.ts +2 -4
- package/esm/components/BaiduMapPicker.js +4 -4
- package/esm/components/BarCode.d.ts +2 -3
- package/esm/components/BarCode.js +1 -1
- package/esm/components/Breadcrumb.d.ts +2 -3
- package/esm/components/Breadcrumb.js +3 -3
- package/esm/components/Button.d.ts +2 -3
- package/esm/components/Button.js +1 -1
- package/esm/components/CalendarMobile.d.ts +88 -89
- package/esm/components/CalendarMobile.js +1 -1
- package/esm/components/Card.d.ts +92 -93
- package/esm/components/Card.js +1 -1
- package/esm/components/Cascader.d.ts +2 -3
- package/esm/components/Cascader.js +1 -1
- package/esm/components/ChainedDropdownSelection.d.ts +88 -89
- package/esm/components/ChainedDropdownSelection.js +1 -1
- package/esm/components/ChainedSelection.d.ts +88 -89
- package/esm/components/ChainedSelection.js +3 -3
- package/esm/components/Checkbox.d.ts +22 -23
- package/esm/components/Checkbox.js +3 -3
- package/esm/components/CityArea.d.ts +88 -89
- package/esm/components/CityArea.js +1 -1
- package/esm/components/CityDB.js +1 -1
- package/esm/components/CodeMirror.js +4 -4
- package/esm/components/Collapse.d.ts +52 -53
- package/esm/components/Collapse.js +1 -1
- package/esm/components/CollapseGroup.d.ts +32 -33
- package/esm/components/CollapseGroup.js +1 -1
- package/esm/components/ColorPicker.d.ts +88 -89
- package/esm/components/ColorPicker.js +1 -1
- package/esm/components/Combo.d.ts +94 -89
- package/esm/components/Combo.js +1 -1
- package/esm/components/ConditionBuilder.js +1 -1
- package/esm/components/ConfirmBox.d.ts +72 -73
- package/esm/components/ConfirmBox.js +1 -1
- package/esm/components/ContextMenu.d.ts +2 -3
- package/esm/components/ContextMenu.js +1 -1
- package/esm/components/DatePicker.d.ts +129 -130
- package/esm/components/DatePicker.js +2 -3
- package/esm/components/DateRangePicker.d.ts +205 -207
- package/esm/components/DateRangePicker.js +1 -1
- package/esm/components/DiffEditor.js +3 -3
- package/esm/components/DndContainer.d.ts +29 -30
- package/esm/components/DndContainer.js +1 -1
- package/esm/components/Drawer.d.ts +4 -5
- package/esm/components/Drawer.js +3 -3
- package/esm/components/DropDownSelection.d.ts +88 -89
- package/esm/components/DropDownSelection.js +1 -1
- package/esm/components/DropdownContextMenus.d.ts +2 -3
- package/esm/components/DropdownContextMenus.js +1 -1
- package/esm/components/Editor.d.ts +168 -169
- package/esm/components/Editor.js +1 -1
- package/esm/components/Form.d.ts +2 -2
- package/esm/components/Form.js +1 -1
- package/esm/components/FormField.d.ts +88 -89
- package/esm/components/FormField.js +1 -1
- package/esm/components/FormulaPicker.js +1 -1
- package/esm/components/GaodeMapPicker.d.ts +2 -4
- package/esm/components/GaodeMapPicker.js +11 -11
- package/esm/components/GridNav.js +1 -1
- package/esm/components/GridNavItem.js +1 -1
- package/esm/components/GroupedSelection.d.ts +88 -89
- package/esm/components/GroupedSelection.js +1 -1
- package/esm/components/HeadCellDropDown.js +1 -1
- package/esm/components/HorizontalScroll.d.ts +0 -1
- package/esm/components/HorizontalScroll.js +1 -1
- package/esm/components/Html.d.ts +3 -3
- package/esm/components/Html.js +5 -2
- package/esm/components/Icon.js +1 -1
- package/esm/components/ImageGallery.d.ts +88 -116
- package/esm/components/ImageGallery.js +3 -3
- package/esm/components/Input.js +3 -3
- package/esm/components/InputBox.d.ts +13 -13
- package/esm/components/InputBox.js +6 -5
- package/esm/components/InputBoxWithSuggestion.d.ts +88 -89
- package/esm/components/InputBoxWithSuggestion.js +5 -3
- package/esm/components/InputJSONSchema.js +1 -1
- package/esm/components/InputTable.d.ts +88 -89
- package/esm/components/InputTable.js +1 -1
- package/esm/components/JSONSchemaEditor.js +1 -1
- package/esm/components/Layout.d.ts +2 -3
- package/esm/components/Layout.js +1 -1
- package/esm/components/Link.d.ts +2 -3
- package/esm/components/Link.js +1 -1
- package/esm/components/ListGroup.d.ts +12 -13
- package/esm/components/ListGroup.js +1 -1
- package/esm/components/ListMenu.d.ts +88 -89
- package/esm/components/ListMenu.js +1 -1
- package/esm/components/LocationPicker.d.ts +88 -89
- package/esm/components/LocationPicker.js +3 -3
- package/esm/components/Markdown.js +1 -1
- package/esm/components/Menu.js +1 -1
- package/esm/components/MixedInput.d.ts +2 -3
- package/esm/components/MixedInput.js +1 -1
- package/esm/components/MobileDevTool.js +1 -1
- package/esm/components/Modal.d.ts +371 -371
- package/esm/components/Modal.js +3 -3
- package/esm/components/ModalManager.d.ts +0 -1
- package/esm/components/ModalManager.js +1 -1
- package/esm/components/MonthRangePicker.d.ts +88 -89
- package/esm/components/MultilineText.d.ts +88 -89
- package/esm/components/MultilineText.js +1 -1
- package/esm/components/NumberInput.d.ts +12 -13
- package/esm/components/NumberInput.js +1 -1
- package/esm/components/OverflowTpl.d.ts +2 -3
- package/esm/components/OverflowTpl.js +1 -1
- package/esm/components/Pagination.d.ts +168 -169
- package/esm/components/Pagination.js +1 -1
- package/esm/components/PdfViewer.d.ts +2 -3
- package/esm/components/PdfViewer.js +1 -1
- package/esm/components/Picker.d.ts +88 -89
- package/esm/components/Picker.js +1 -1
- package/esm/components/PickerColumn.d.ts +2 -3
- package/esm/components/PickerColumn.js +1 -1
- package/esm/components/PickerContainer.d.ts +88 -89
- package/esm/components/PickerContainer.js +16 -16
- package/esm/components/PopOverContainer.js +3 -3
- package/esm/components/PopUp.d.ts +88 -89
- package/esm/components/PopUp.js +3 -3
- package/esm/components/Progress.d.ts +22 -23
- package/esm/components/Progress.js +1 -1
- package/esm/components/PullRefresh.d.ts +2 -3
- package/esm/components/PullRefresh.js +1 -1
- package/esm/components/Radios.d.ts +2 -3
- package/esm/components/Radios.js +1 -1
- package/esm/components/Range.d.ts +2 -3
- package/esm/components/Range.js +3 -3
- package/esm/components/Rating.d.ts +12 -13
- package/esm/components/Rating.js +1 -1
- package/esm/components/ResultBox.d.ts +165 -166
- package/esm/components/ResultBox.js +3 -3
- package/esm/components/ResultList.d.ts +88 -89
- package/esm/components/ResultList.js +3 -3
- package/esm/components/ResultTableList.d.ts +129 -130
- package/esm/components/ResultTableList.js +3 -3
- package/esm/components/ResultTreeList.d.ts +88 -89
- package/esm/components/ResultTreeList.js +3 -3
- package/esm/components/RichText.js +1 -1
- package/esm/components/SearchBox.d.ts +88 -90
- package/esm/components/SearchBox.js +2 -3
- package/esm/components/Select.d.ts +455 -1397
- package/esm/components/Select.js +1 -1
- package/esm/components/SelectMobile.js +1 -1
- package/esm/components/Selection.d.ts +88 -89
- package/esm/components/Selection.js +3 -3
- package/esm/components/Shape.d.ts +2 -3
- package/esm/components/Shape.js +1 -1
- package/esm/components/Signature.d.ts +88 -89
- package/esm/components/Signature.js +2 -1
- package/esm/components/Slider.d.ts +5 -6
- package/esm/components/Slider.js +1 -1
- package/esm/components/SparkLine.d.ts +88 -89
- package/esm/components/SparkLine.js +1 -1
- package/esm/components/Spinner.d.ts +42 -43
- package/esm/components/Spinner.js +3 -3
- package/esm/components/Steps.d.ts +2 -3
- package/esm/components/Steps.js +1 -1
- package/esm/components/Switch.d.ts +22 -23
- package/esm/components/Switch.js +1 -1
- package/esm/components/Tab.js +1 -1
- package/esm/components/Table.js +1 -1
- package/esm/components/TableSelection.d.ts +129 -130
- package/esm/components/TableSelection.js +1 -1
- package/esm/components/Tabs.d.ts +76 -77
- package/esm/components/Tabs.js +8 -7
- package/esm/components/TabsTransfer.d.ts +88 -90
- package/esm/components/TabsTransfer.js +3 -3
- package/esm/components/TabsTransferPicker.d.ts +88 -89
- package/esm/components/TabsTransferPicker.js +3 -3
- package/esm/components/Tag.d.ts +54 -55
- package/esm/components/Tag.js +1 -1
- package/esm/components/Textarea.d.ts +88 -89
- package/esm/components/Textarea.js +3 -3
- package/esm/components/Timeline.d.ts +2 -3
- package/esm/components/Timeline.js +1 -1
- package/esm/components/TimelineItem.d.ts +397 -426
- package/esm/components/TimelineItem.js +1 -1
- package/esm/components/Tinymce.js +4 -4
- package/esm/components/TitleBar.d.ts +2 -3
- package/esm/components/TitleBar.js +1 -1
- package/esm/components/Toast.d.ts +128 -129
- package/esm/components/Toast.js +5 -5
- package/esm/components/Tooltip.d.ts +2 -3
- package/esm/components/Tooltip.js +1 -1
- package/esm/components/TooltipWrapper.d.ts +2 -3
- package/esm/components/TooltipWrapper.js +3 -3
- package/esm/components/Transfer.d.ts +296 -307
- package/esm/components/Transfer.js +4 -4
- package/esm/components/TransferDropDown.d.ts +88 -89
- package/esm/components/TransferDropDown.js +1 -1
- package/esm/components/TransferPicker.d.ts +88 -89
- package/esm/components/TransferPicker.js +3 -3
- package/esm/components/TransferSearch.d.ts +88 -90
- package/esm/components/TransferSearch.js +3 -3
- package/esm/components/Tree.d.ts +92 -91
- package/esm/components/Tree.js +52 -30
- package/esm/components/TreeSelection.d.ts +128 -129
- package/esm/components/TreeSelection.js +3 -3
- package/esm/components/UserSelect.d.ts +88 -90
- package/esm/components/UserSelect.js +5 -5
- package/esm/components/UserTabSelect.d.ts +88 -89
- package/esm/components/UserTabSelect.js +1 -1
- package/esm/components/VerificationCode.d.ts +2 -3
- package/esm/components/VerificationCode.js +1 -1
- package/esm/components/VirtualList.js +1 -1
- package/esm/components/WithRemoteConfig.d.ts +11 -12
- package/esm/components/WithRemoteConfig.js +33 -34
- package/esm/components/WithStore.d.ts +4 -4
- package/esm/components/WithStore.js +3 -3
- package/esm/components/calendar/Calendar.js +1 -1
- package/esm/components/calendar/CalendarContainer.js +3 -3
- package/esm/components/calendar/DaysView.d.ts +22 -23
- package/esm/components/calendar/DaysView.js +1 -1
- package/esm/components/calendar/MonthsView.d.ts +20 -21
- package/esm/components/calendar/MonthsView.js +1 -1
- package/esm/components/calendar/QuartersView.d.ts +20 -21
- package/esm/components/calendar/QuartersView.js +3 -3
- package/esm/components/calendar/TimeView.d.ts +21 -22
- package/esm/components/calendar/TimeView.js +1 -1
- package/esm/components/calendar/YearsView.d.ts +20 -21
- package/esm/components/calendar/YearsView.js +1 -1
- package/esm/components/condition-builder/Expression.d.ts +92 -93
- package/esm/components/condition-builder/Expression.js +1 -1
- package/esm/components/condition-builder/Field.d.ts +88 -89
- package/esm/components/condition-builder/Field.js +1 -1
- package/esm/components/condition-builder/Formula.d.ts +88 -89
- package/esm/components/condition-builder/Func.d.ts +91 -92
- package/esm/components/condition-builder/Func.js +1 -1
- package/esm/components/condition-builder/Group.d.ts +94 -95
- package/esm/components/condition-builder/Group.js +5 -4
- package/esm/components/condition-builder/GroupOrItem.d.ts +7 -8
- package/esm/components/condition-builder/GroupOrItem.js +3 -3
- package/esm/components/condition-builder/InputSwitch.d.ts +2 -3
- package/esm/components/condition-builder/InputSwitch.js +1 -1
- package/esm/components/condition-builder/Item.d.ts +93 -94
- package/esm/components/condition-builder/Item.js +7 -5
- package/esm/components/condition-builder/Value.d.ts +90 -91
- package/esm/components/condition-builder/Value.js +1 -1
- package/esm/components/condition-builder/config.d.ts +2 -2
- package/esm/components/condition-builder/config.js +1 -1
- package/esm/components/condition-builder/index.d.ts +101 -101
- package/esm/components/condition-builder/index.js +16 -6
- package/esm/components/condition-builder/types.d.ts +4 -4
- package/esm/components/formula/CodeEditor.d.ts +2 -3
- package/esm/components/formula/CodeEditor.js +1 -1
- package/esm/components/formula/Editor.d.ts +128 -169
- package/esm/components/formula/Editor.js +2 -2
- package/esm/components/formula/FuncList.d.ts +2 -3
- package/esm/components/formula/FuncList.js +1 -1
- package/esm/components/formula/Input.d.ts +91 -98
- package/esm/components/formula/Input.js +20 -1
- package/esm/components/formula/Picker.d.ts +89 -118
- package/esm/components/formula/Picker.js +12 -12
- package/esm/components/formula/VariableList.d.ts +2 -3
- package/esm/components/formula/VariableList.js +6 -4
- package/esm/components/formula/plugin.js +76 -3
- package/esm/components/icons.js +1 -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 +15 -8
- package/esm/components/json-schema/index.d.ts +90 -89
- package/esm/components/json-schema/index.js +1 -1
- package/esm/components/menu/MenuContext.d.ts +0 -1
- package/esm/components/menu/MenuContext.js +1 -1
- package/esm/components/menu/MenuItem.d.ts +2 -3
- package/esm/components/menu/MenuItem.js +3 -3
- package/esm/components/menu/PanelMenu.d.ts +2 -3
- package/esm/components/menu/PanelMenu.js +1 -1
- package/esm/components/menu/SubMenu.d.ts +2 -3
- package/esm/components/menu/SubMenu.js +3 -3
- package/esm/components/menu/index.d.ts +22 -23
- package/esm/components/menu/index.js +12 -13
- package/esm/components/schema-editor/Array.js +3 -3
- package/esm/components/schema-editor/Common.js +1 -1
- package/esm/components/schema-editor/Item.js +1 -1
- package/esm/components/schema-editor/Object.d.ts +4 -4
- package/esm/components/schema-editor/Object.js +3 -3
- package/esm/components/schema-editor/SchemaVariableList.d.ts +29 -30
- package/esm/components/schema-editor/SchemaVariableList.js +3 -3
- package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +29 -30
- package/esm/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/esm/components/schema-editor/index.d.ts +171 -178
- package/esm/components/schema-editor/index.js +1 -1
- package/esm/components/table/Cell.js +1 -1
- package/esm/components/table/ColGroup.d.ts +3 -3
- package/esm/components/table/ColGroup.js +39 -20
- package/esm/components/table/Head.js +2 -2
- package/esm/components/table/HeadCellDropDown.d.ts +88 -89
- package/esm/components/table/HeadCellDropDown.js +1 -1
- package/esm/components/table/HeadCellFilter.d.ts +128 -129
- package/esm/components/table/HeadCellFilter.js +1 -1
- package/esm/components/table/HeadCellSelect.d.ts +125 -126
- package/esm/components/table/HeadCellSelect.js +1 -1
- package/esm/components/table/HeadCellSort.d.ts +88 -89
- package/esm/components/table/HeadCellSort.js +1 -1
- package/esm/components/table/ItemActionsWrapper.js +1 -1
- package/esm/components/table/Row.js +2 -2
- package/esm/components/table/SummaryRow.js +3 -3
- package/esm/components/table/index.d.ts +131 -132
- package/esm/components/table/index.js +75 -49
- package/esm/components/table/util.d.ts +53 -22
- package/esm/components/table/util.js +21 -18
- package/esm/components/virtual-list/AutoSizer.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.d.ts +1 -1
- package/esm/components/virtual-list/index.js +3 -3
- package/esm/components/withBadge.js +1 -1
- package/esm/hooks/use-click-away.js +1 -1
- package/esm/hooks/use-on-screen.js +1 -1
- package/esm/hooks/use-set-state.js +1 -1
- package/esm/hooks/use-sub-form.js +2 -2
- 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 +1 -1
- package/esm/icons/alert-info.svg.js +1 -1
- package/esm/icons/alert-success.svg.js +1 -1
- package/esm/icons/alert-warning.svg.js +1 -1
- package/esm/icons/arrow-double-left.svg.js +1 -1
- package/esm/icons/arrow-double-right.svg.js +1 -1
- 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.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 +1 -1
- package/esm/icons/down.svg.js +1 -1
- 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 -1
- 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/fullscreen.svg.js +1 -1
- package/esm/icons/function.svg.js +1 -1
- package/esm/icons/home.svg.js +1 -1
- package/esm/icons/if.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 +1 -1
- 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 +1 -1
- 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/question2.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 +1 -1
- package/esm/icons/right-double-arrow.svg.js +1 -1
- package/esm/icons/role.svg.js +1 -1
- package/esm/icons/rotate-left.svg.js +1 -1
- package/esm/icons/rotate-right.svg.js +1 -1
- package/esm/icons/rotate-screen.svg.js +1 -1
- package/esm/icons/scale-origin.svg.js +1 -1
- 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 +1 -1
- package/esm/icons/status-close.svg.js +1 -1
- package/esm/icons/steps-finsh.svg.js +1 -1
- package/esm/icons/sub-plus.svg.js +1 -1
- 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-normal.svg.js +1 -1
- package/esm/icons/undo.svg.js +1 -1
- package/esm/icons/unfullscreen.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.d.ts +2 -1
- package/esm/index.js +2 -1
- package/esm/locale/de-DE.js +4 -2
- package/esm/locale/en-US.js +4 -2
- package/esm/locale/zh-CN.js +4 -2
- 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/esm/utils/vectorComputed.js +1 -1
- package/esm/withRemoteConfig.js +1 -1
- package/esm/withStore.js +1 -1
- package/lib/HTMLFilterContext.d.ts +3 -0
- package/lib/HTMLFilterContext.js +19 -0
- package/lib/components/404.d.ts +2 -3
- package/lib/components/404.js +1 -1
- package/lib/components/Alert.d.ts +126 -127
- package/lib/components/Alert.js +1 -1
- package/lib/components/Alert2.d.ts +22 -23
- package/lib/components/Alert2.js +1 -1
- package/lib/components/AlphabetIndexer.js +1 -1
- package/lib/components/AnchorNav.d.ts +27 -27
- package/lib/components/AnchorNav.js +3 -3
- package/lib/components/AnchorNavSection.js +1 -1
- package/lib/components/ArrayInput.d.ts +166 -167
- package/lib/components/ArrayInput.js +2 -2
- package/lib/components/AsideNav.d.ts +2 -3
- package/lib/components/AsideNav.js +1 -1
- package/lib/components/AssociatedSelection.d.ts +165 -166
- package/lib/components/AssociatedSelection.js +2 -2
- package/lib/components/AutoFoldedList.d.ts +2 -3
- package/lib/components/AutoFoldedList.js +1 -1
- package/lib/components/AutoSizer.js +1 -1
- package/lib/components/Avatar.d.ts +112 -113
- package/lib/components/Avatar.js +1 -1
- package/lib/components/Badge.d.ts +2 -50
- package/lib/components/Badge.js +1 -1
- package/lib/components/BaiduMapPicker.d.ts +2 -4
- package/lib/components/BaiduMapPicker.js +3 -3
- package/lib/components/BarCode.d.ts +2 -3
- package/lib/components/BarCode.js +1 -1
- package/lib/components/Breadcrumb.d.ts +2 -3
- package/lib/components/Breadcrumb.js +2 -2
- package/lib/components/Button.d.ts +32 -33
- package/lib/components/Button.js +1 -1
- package/lib/components/CalendarMobile.d.ts +125 -126
- package/lib/components/CalendarMobile.js +1 -1
- package/lib/components/Card.d.ts +122 -123
- package/lib/components/Card.js +1 -1
- package/lib/components/Cascader.d.ts +2 -3
- package/lib/components/Cascader.js +1 -1
- package/lib/components/ChainedDropdownSelection.d.ts +165 -166
- package/lib/components/ChainedDropdownSelection.js +1 -1
- package/lib/components/ChainedSelection.d.ts +165 -166
- package/lib/components/ChainedSelection.js +2 -2
- package/lib/components/Checkbox.d.ts +32 -33
- package/lib/components/Checkbox.js +2 -2
- package/lib/components/CityArea.d.ts +88 -89
- package/lib/components/CityArea.js +1 -1
- package/lib/components/CityDB.js +1 -1
- package/lib/components/CodeMirror.js +3 -3
- package/lib/components/Collapse.d.ts +82 -83
- package/lib/components/Collapse.js +1 -1
- package/lib/components/CollapseGroup.d.ts +42 -43
- package/lib/components/CollapseGroup.js +1 -1
- package/lib/components/ColorPicker.d.ts +165 -166
- package/lib/components/ColorPicker.js +1 -1
- package/lib/components/Combo.d.ts +94 -89
- package/lib/components/Combo.js +1 -1
- package/lib/components/ConditionBuilder.js +1 -1
- package/lib/components/ConfirmBox.d.ts +109 -110
- package/lib/components/ConfirmBox.js +1 -1
- package/lib/components/ContextMenu.d.ts +2 -3
- package/lib/components/ContextMenu.js +1 -1
- package/lib/components/DatePicker.d.ts +166 -167
- package/lib/components/DatePicker.js +2 -3
- package/lib/components/DateRangePicker.d.ts +245 -247
- package/lib/components/DateRangePicker.js +1 -1
- package/lib/components/DiffEditor.js +2 -2
- package/lib/components/DndContainer.d.ts +29 -30
- package/lib/components/DndContainer.js +1 -1
- package/lib/components/Drawer.d.ts +14 -15
- package/lib/components/Drawer.js +2 -2
- package/lib/components/DropDownSelection.d.ts +165 -166
- package/lib/components/DropDownSelection.js +1 -1
- package/lib/components/DropdownContextMenus.d.ts +2 -3
- package/lib/components/DropdownContextMenus.js +1 -1
- package/lib/components/Editor.d.ts +205 -206
- package/lib/components/Editor.js +1 -1
- package/lib/components/Form.d.ts +2 -2
- package/lib/components/Form.js +1 -1
- package/lib/components/FormField.d.ts +88 -89
- package/lib/components/FormField.js +1 -1
- package/lib/components/FormulaPicker.js +1 -1
- package/lib/components/GaodeMapPicker.d.ts +2 -4
- package/lib/components/GaodeMapPicker.js +10 -10
- package/lib/components/GridNav.js +1 -1
- package/lib/components/GridNavItem.js +1 -1
- package/lib/components/GroupedSelection.d.ts +165 -166
- package/lib/components/GroupedSelection.js +1 -1
- package/lib/components/HeadCellDropDown.js +1 -1
- package/lib/components/HorizontalScroll.d.ts +0 -1
- package/lib/components/HorizontalScroll.js +1 -1
- package/lib/components/Html.d.ts +3 -3
- package/lib/components/Html.js +5 -2
- package/lib/components/Icon.js +1 -1
- package/lib/components/ImageGallery.d.ts +125 -153
- package/lib/components/ImageGallery.js +2 -2
- package/lib/components/Input.js +2 -2
- package/lib/components/InputBox.d.ts +23 -23
- package/lib/components/InputBox.js +5 -4
- package/lib/components/InputBoxWithSuggestion.d.ts +88 -89
- package/lib/components/InputBoxWithSuggestion.js +5 -3
- package/lib/components/InputJSONSchema.js +1 -1
- package/lib/components/InputTable.d.ts +88 -89
- package/lib/components/InputTable.js +1 -1
- package/lib/components/JSONSchemaEditor.js +1 -1
- package/lib/components/Layout.d.ts +2 -3
- package/lib/components/Layout.js +1 -1
- package/lib/components/Link.d.ts +2 -3
- package/lib/components/Link.js +1 -1
- package/lib/components/ListGroup.d.ts +12 -13
- package/lib/components/ListGroup.js +1 -1
- package/lib/components/ListMenu.d.ts +125 -126
- package/lib/components/ListMenu.js +1 -1
- package/lib/components/LocationPicker.d.ts +165 -166
- package/lib/components/LocationPicker.js +2 -2
- package/lib/components/Markdown.js +1 -1
- package/lib/components/Menu.js +1 -1
- package/lib/components/MixedInput.d.ts +2 -3
- package/lib/components/MixedInput.js +1 -1
- package/lib/components/MobileDevTool.js +1 -1
- package/lib/components/Modal.d.ts +448 -448
- package/lib/components/Modal.js +2 -2
- package/lib/components/ModalManager.d.ts +0 -1
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/MonthRangePicker.d.ts +165 -166
- package/lib/components/MultilineText.d.ts +125 -126
- package/lib/components/MultilineText.js +1 -1
- package/lib/components/NumberInput.d.ts +22 -23
- package/lib/components/NumberInput.js +1 -1
- package/lib/components/OverflowTpl.d.ts +2 -3
- package/lib/components/OverflowTpl.js +1 -1
- package/lib/components/Pagination.d.ts +205 -206
- package/lib/components/Pagination.js +1 -1
- package/lib/components/PdfViewer.d.ts +2 -3
- package/lib/components/PdfViewer.js +1 -1
- package/lib/components/Picker.d.ts +88 -89
- package/lib/components/Picker.js +1 -1
- package/lib/components/PickerColumn.d.ts +2 -3
- package/lib/components/PickerColumn.js +1 -1
- package/lib/components/PickerContainer.d.ts +88 -89
- package/lib/components/PickerContainer.js +15 -15
- package/lib/components/PopOverContainer.js +2 -2
- package/lib/components/PopUp.d.ts +125 -126
- package/lib/components/PopUp.js +2 -2
- package/lib/components/Progress.d.ts +32 -33
- package/lib/components/Progress.js +1 -1
- package/lib/components/PullRefresh.d.ts +2 -3
- package/lib/components/PullRefresh.js +1 -1
- package/lib/components/Radios.d.ts +22 -23
- package/lib/components/Radios.js +1 -1
- package/lib/components/Range.d.ts +2 -3
- package/lib/components/Range.js +2 -2
- package/lib/components/Rating.d.ts +22 -23
- package/lib/components/Rating.js +1 -1
- package/lib/components/ResultBox.d.ts +205 -206
- package/lib/components/ResultBox.js +2 -2
- package/lib/components/ResultList.d.ts +125 -126
- package/lib/components/ResultList.js +2 -2
- package/lib/components/ResultTableList.d.ts +206 -207
- package/lib/components/ResultTableList.js +2 -2
- package/lib/components/ResultTreeList.d.ts +125 -126
- package/lib/components/ResultTreeList.js +2 -2
- package/lib/components/RichText.js +1 -1
- package/lib/components/SearchBox.d.ts +125 -127
- package/lib/components/SearchBox.js +2 -3
- package/lib/components/Select.d.ts +813 -1755
- package/lib/components/Select.js +1 -1
- package/lib/components/SelectMobile.js +1 -1
- package/lib/components/Selection.d.ts +165 -166
- package/lib/components/Selection.js +3 -3
- package/lib/components/Shape.d.ts +2 -3
- package/lib/components/Shape.js +1 -1
- package/lib/components/Signature.d.ts +88 -89
- package/lib/components/Signature.js +2 -1
- package/lib/components/Slider.d.ts +5 -6
- package/lib/components/Slider.js +1 -1
- package/lib/components/SparkLine.d.ts +125 -126
- package/lib/components/SparkLine.js +1 -1
- package/lib/components/Spinner.d.ts +72 -73
- package/lib/components/Spinner.js +2 -2
- package/lib/components/Steps.d.ts +2 -3
- package/lib/components/Steps.js +1 -1
- package/lib/components/Switch.d.ts +32 -33
- package/lib/components/Switch.js +1 -1
- package/lib/components/Tab.js +1 -1
- package/lib/components/Table.js +1 -1
- package/lib/components/TableSelection.d.ts +206 -207
- package/lib/components/TableSelection.js +1 -1
- package/lib/components/Tabs.d.ts +76 -77
- package/lib/components/Tabs.js +6 -5
- package/lib/components/TabsTransfer.d.ts +125 -127
- package/lib/components/TabsTransfer.js +2 -2
- package/lib/components/TabsTransferPicker.d.ts +88 -89
- package/lib/components/TabsTransferPicker.js +2 -2
- package/lib/components/Tag.d.ts +74 -75
- package/lib/components/Tag.js +1 -1
- package/lib/components/Textarea.d.ts +125 -126
- package/lib/components/Textarea.js +2 -2
- package/lib/components/Timeline.d.ts +2 -3
- package/lib/components/Timeline.js +1 -1
- package/lib/components/TimelineItem.d.ts +397 -426
- package/lib/components/TimelineItem.js +1 -1
- package/lib/components/Tinymce.js +3 -3
- package/lib/components/TitleBar.d.ts +2 -3
- package/lib/components/TitleBar.js +1 -1
- package/lib/components/Toast.d.ts +165 -166
- package/lib/components/Toast.js +4 -4
- package/lib/components/Tooltip.d.ts +2 -3
- package/lib/components/Tooltip.js +1 -1
- package/lib/components/TooltipWrapper.d.ts +32 -33
- package/lib/components/TooltipWrapper.js +3 -3
- package/lib/components/Transfer.d.ts +333 -344
- package/lib/components/Transfer.js +3 -3
- package/lib/components/TransferDropDown.d.ts +125 -126
- package/lib/components/TransferDropDown.js +1 -1
- package/lib/components/TransferPicker.d.ts +88 -89
- package/lib/components/TransferPicker.js +2 -2
- package/lib/components/TransferSearch.d.ts +88 -90
- package/lib/components/TransferSearch.js +2 -2
- package/lib/components/Tree.d.ts +129 -128
- package/lib/components/Tree.js +52 -30
- package/lib/components/TreeSelection.d.ts +205 -206
- package/lib/components/TreeSelection.js +2 -2
- package/lib/components/UserSelect.d.ts +125 -127
- package/lib/components/UserSelect.js +5 -5
- package/lib/components/UserTabSelect.d.ts +125 -126
- package/lib/components/UserTabSelect.js +1 -1
- package/lib/components/VerificationCode.d.ts +2 -3
- package/lib/components/VerificationCode.js +1 -1
- package/lib/components/VirtualList.js +1 -1
- package/lib/components/WithRemoteConfig.d.ts +11 -12
- package/lib/components/WithRemoteConfig.js +33 -34
- package/lib/components/WithStore.d.ts +4 -4
- package/lib/components/WithStore.js +2 -2
- package/lib/components/calendar/Calendar.js +1 -1
- package/lib/components/calendar/CalendarContainer.js +2 -2
- package/lib/components/calendar/DaysView.d.ts +22 -23
- package/lib/components/calendar/DaysView.js +1 -1
- package/lib/components/calendar/MonthsView.d.ts +20 -21
- package/lib/components/calendar/MonthsView.js +1 -1
- package/lib/components/calendar/QuartersView.d.ts +20 -21
- package/lib/components/calendar/QuartersView.js +2 -2
- package/lib/components/calendar/TimeView.d.ts +21 -22
- package/lib/components/calendar/TimeView.js +1 -1
- package/lib/components/calendar/YearsView.d.ts +20 -21
- package/lib/components/calendar/YearsView.js +1 -1
- package/lib/components/condition-builder/Expression.d.ts +92 -93
- package/lib/components/condition-builder/Expression.js +1 -1
- package/lib/components/condition-builder/Field.d.ts +88 -89
- package/lib/components/condition-builder/Field.js +1 -1
- package/lib/components/condition-builder/Formula.d.ts +88 -89
- package/lib/components/condition-builder/Func.d.ts +91 -92
- package/lib/components/condition-builder/Func.js +1 -1
- package/lib/components/condition-builder/Group.d.ts +94 -95
- package/lib/components/condition-builder/Group.js +4 -3
- package/lib/components/condition-builder/GroupOrItem.d.ts +7 -8
- package/lib/components/condition-builder/GroupOrItem.js +2 -2
- package/lib/components/condition-builder/InputSwitch.d.ts +2 -3
- package/lib/components/condition-builder/InputSwitch.js +1 -1
- package/lib/components/condition-builder/Item.d.ts +93 -94
- package/lib/components/condition-builder/Item.js +7 -5
- package/lib/components/condition-builder/Value.d.ts +90 -91
- package/lib/components/condition-builder/Value.js +1 -1
- package/lib/components/condition-builder/config.d.ts +2 -2
- package/lib/components/condition-builder/config.js +1 -1
- package/lib/components/condition-builder/index.d.ts +101 -101
- package/lib/components/condition-builder/index.js +14 -4
- package/lib/components/condition-builder/types.d.ts +4 -4
- package/lib/components/formula/CodeEditor.d.ts +2 -3
- package/lib/components/formula/CodeEditor.js +1 -1
- package/lib/components/formula/Editor.d.ts +165 -206
- package/lib/components/formula/Editor.js +2 -2
- package/lib/components/formula/FuncList.d.ts +2 -3
- package/lib/components/formula/FuncList.js +1 -1
- package/lib/components/formula/Input.d.ts +91 -98
- package/lib/components/formula/Input.js +21 -1
- package/lib/components/formula/Picker.d.ts +126 -155
- package/lib/components/formula/Picker.js +12 -12
- package/lib/components/formula/VariableList.d.ts +2 -3
- package/lib/components/formula/VariableList.js +6 -4
- package/lib/components/formula/plugin.js +76 -3
- package/lib/components/icons.js +1 -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 +15 -8
- package/lib/components/json-schema/index.d.ts +90 -89
- package/lib/components/json-schema/index.js +1 -1
- package/lib/components/menu/MenuContext.d.ts +0 -1
- package/lib/components/menu/MenuContext.js +1 -1
- package/lib/components/menu/MenuItem.d.ts +2 -3
- package/lib/components/menu/MenuItem.js +2 -2
- package/lib/components/menu/PanelMenu.d.ts +2 -3
- package/lib/components/menu/PanelMenu.js +1 -1
- package/lib/components/menu/SubMenu.d.ts +2 -3
- package/lib/components/menu/SubMenu.js +2 -2
- package/lib/components/menu/index.d.ts +42 -43
- package/lib/components/menu/index.js +12 -13
- package/lib/components/schema-editor/Array.js +2 -2
- package/lib/components/schema-editor/Common.js +1 -1
- package/lib/components/schema-editor/Item.js +1 -1
- package/lib/components/schema-editor/Object.d.ts +4 -4
- package/lib/components/schema-editor/Object.js +2 -2
- package/lib/components/schema-editor/SchemaVariableList.d.ts +29 -30
- package/lib/components/schema-editor/SchemaVariableList.js +2 -2
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +29 -30
- package/lib/components/schema-editor/SchemaVariableListPicker.js +1 -1
- package/lib/components/schema-editor/index.d.ts +208 -215
- package/lib/components/schema-editor/index.js +1 -1
- package/lib/components/table/Cell.js +1 -1
- package/lib/components/table/ColGroup.d.ts +3 -3
- package/lib/components/table/ColGroup.js +39 -20
- package/lib/components/table/Head.js +2 -2
- package/lib/components/table/HeadCellDropDown.d.ts +88 -89
- package/lib/components/table/HeadCellDropDown.js +1 -1
- package/lib/components/table/HeadCellFilter.d.ts +165 -166
- package/lib/components/table/HeadCellFilter.js +1 -1
- package/lib/components/table/HeadCellSelect.d.ts +125 -126
- package/lib/components/table/HeadCellSelect.js +1 -1
- package/lib/components/table/HeadCellSort.d.ts +88 -89
- package/lib/components/table/HeadCellSort.js +1 -1
- package/lib/components/table/ItemActionsWrapper.js +1 -1
- package/lib/components/table/Row.js +2 -2
- package/lib/components/table/SummaryRow.js +2 -2
- package/lib/components/table/index.d.ts +168 -169
- package/lib/components/table/index.js +75 -49
- package/lib/components/table/util.d.ts +53 -22
- package/lib/components/table/util.js +21 -18
- package/lib/components/virtual-list/AutoSizer.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.d.ts +1 -1
- package/lib/components/virtual-list/index.js +2 -2
- package/lib/components/withBadge.js +1 -1
- package/lib/helper.css +27 -9
- package/lib/hooks/use-click-away.js +1 -1
- package/lib/hooks/use-on-screen.js +1 -1
- package/lib/hooks/use-set-state.js +1 -1
- package/lib/hooks/use-sub-form.js +2 -2
- 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 +1 -1
- package/lib/icons/alert-info.svg.js +1 -1
- package/lib/icons/alert-success.svg.js +1 -1
- package/lib/icons/alert-warning.svg.js +1 -1
- package/lib/icons/arrow-double-left.svg.js +1 -1
- package/lib/icons/arrow-double-right.svg.js +1 -1
- 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.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 +1 -1
- package/lib/icons/down.svg.js +1 -1
- 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 -1
- 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/fullscreen.svg.js +1 -1
- package/lib/icons/function.svg.js +1 -1
- package/lib/icons/home.svg.js +1 -1
- package/lib/icons/if.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 +1 -1
- 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 +1 -1
- 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/question2.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 +1 -1
- package/lib/icons/right-double-arrow.svg.js +1 -1
- package/lib/icons/role.svg.js +1 -1
- package/lib/icons/rotate-left.svg.js +1 -1
- package/lib/icons/rotate-right.svg.js +1 -1
- package/lib/icons/rotate-screen.svg.js +1 -1
- package/lib/icons/scale-origin.svg.js +1 -1
- 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 +1 -1
- package/lib/icons/status-close.svg.js +1 -1
- package/lib/icons/steps-finsh.svg.js +1 -1
- package/lib/icons/sub-plus.svg.js +1 -1
- 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-normal.svg.js +1 -1
- package/lib/icons/undo.svg.js +1 -1
- package/lib/icons/unfullscreen.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.d.ts +2 -1
- package/lib/index.js +3 -1
- package/lib/locale/de-DE.js +4 -2
- package/lib/locale/en-US.js +4 -2
- package/lib/locale/zh-CN.js +4 -2
- package/lib/scss/helper.scss.js +1 -1
- package/lib/scss/themes/ang.scss.js +1 -1
- package/lib/scss/themes/antd.scss.js +1 -1
- package/lib/scss/themes/cxd.scss.js +1 -1
- package/lib/scss/themes/dark.scss.js +1 -1
- package/lib/scss/themes/default.scss.js +1 -1
- package/lib/themes/ang.css +446 -279
- package/lib/themes/ang.js +1 -1
- package/lib/themes/antd.css +446 -279
- package/lib/themes/antd.js +1 -1
- package/lib/themes/cxd.css +446 -279
- package/lib/themes/cxd.js +1 -1
- package/lib/themes/dark.css +446 -279
- package/lib/themes/dark.js +1 -1
- package/lib/themes/default.css +446 -279
- package/lib/utils/vectorComputed.js +1 -1
- package/lib/withRemoteConfig.js +1 -1
- package/lib/withStore.js +1 -1
- package/package.json +4 -4
- package/scss/components/_anchor-nav.scss +1 -1
- package/scss/components/_condition-builder.scss +20 -0
- package/scss/components/_dropdown.scss +5 -2
- package/scss/components/_formula.scss +2 -0
- package/scss/components/_modal.scss +2 -0
- package/scss/components/_table2.scss +59 -18
- package/scss/components/form/_rich-text.scss +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.14.0-beta.
|
|
2
|
+
* amis-ui v6.14.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -53,6 +53,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
53
53
|
? props.expandable.defaultExpandedRowKeys || []
|
|
54
54
|
: [])), false),
|
|
55
55
|
colWidths: {},
|
|
56
|
+
widthReady: false,
|
|
56
57
|
hoverRow: null
|
|
57
58
|
};
|
|
58
59
|
return _this;
|
|
@@ -64,9 +65,6 @@ var Table = /** @class */ (function (_super) {
|
|
|
64
65
|
var _this = this;
|
|
65
66
|
var _a, _b, _c, _d, _e;
|
|
66
67
|
(_b = (_a = this.props) === null || _a === void 0 ? void 0 : _a.onRef) === null || _b === void 0 ? void 0 : _b.call(_a, this);
|
|
67
|
-
if (this.props.loading) {
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
68
|
if ((_c = this.headerDom) === null || _c === void 0 ? void 0 : _c.current) {
|
|
71
69
|
// overflow设置为hidden的情况
|
|
72
70
|
var hiddenDomRefs = [this.headerDom, this.footDom];
|
|
@@ -215,6 +213,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
215
213
|
if (tableContentHeight > 0) {
|
|
216
214
|
tableContent.style[heightField] = "".concat(tableContentHeight, "px");
|
|
217
215
|
tableContent.style['overflow'] = 'auto';
|
|
216
|
+
tableContent.classList.add('is-autoFillHeight');
|
|
218
217
|
}
|
|
219
218
|
};
|
|
220
219
|
Table.prototype.initDragging = function () {
|
|
@@ -295,18 +294,21 @@ var Table = /** @class */ (function (_super) {
|
|
|
295
294
|
});
|
|
296
295
|
}
|
|
297
296
|
};
|
|
298
|
-
Table.prototype.renderColGroup = function (showReal) {
|
|
297
|
+
Table.prototype.renderColGroup = function (showReal, watchWidthChange) {
|
|
298
|
+
if (showReal === void 0) { showReal = false; }
|
|
299
|
+
if (watchWidthChange === void 0) { watchWidthChange = true; }
|
|
299
300
|
var _a = this.props, scroll = _a.scroll, tableLayout = _a.tableLayout, columns = _a.columns, rowSelection = _a.rowSelection, expandable = _a.expandable, draggable = _a.draggable;
|
|
300
301
|
var isFixed = !!((scroll && scroll.x) || tableLayout === 'fixed');
|
|
301
|
-
return (React__default.createElement(ColGroup, { columns: columns, colWidths: this.state.colWidths, isFixed: isFixed, syncTableWidth: this.syncTableWidth, initTableWidth: this.initTableWidth, selectable: !!rowSelection, expandable: !!expandable, draggable: !!draggable, rowSelectionColumnWidth: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.columnWidth) || DefaultCellWidth, expandableColumnWidth: (expandable === null || expandable === void 0 ? void 0 : expandable.columnWidth) || DefaultCellWidth, isRightExpandable: this.isRightExpandable(), isLeftExpandable: this.isLeftExpandable(), showReal: showReal }));
|
|
302
|
+
return (React__default.createElement(ColGroup, { columns: columns, colWidths: this.state.colWidths, isFixed: isFixed, syncTableWidth: watchWidthChange ? this.syncTableWidth : undefined, initTableWidth: watchWidthChange ? this.initTableWidth : undefined, selectable: !!rowSelection, expandable: !!expandable, draggable: !!draggable, rowSelectionColumnWidth: (rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.columnWidth) || DefaultCellWidth, expandableColumnWidth: (expandable === null || expandable === void 0 ? void 0 : expandable.columnWidth) || DefaultCellWidth, isRightExpandable: this.isRightExpandable(), isLeftExpandable: this.isLeftExpandable(), showReal: showReal }));
|
|
302
303
|
};
|
|
303
304
|
Table.prototype.onResizeMouseDown = function (event, index) {
|
|
304
305
|
// 点击记录起始坐标
|
|
305
306
|
this.resizeStart = event.clientX;
|
|
306
307
|
this.resizeTarget = event.currentTarget;
|
|
307
|
-
var column = this.tdColumns[index];
|
|
308
308
|
this.resizeIndex = index;
|
|
309
|
-
var
|
|
309
|
+
var th = this.resizeTarget.closest('th,td');
|
|
310
|
+
var colIndex = th.cellIndex;
|
|
311
|
+
var colWidth = this.state.colWidths[colIndex];
|
|
310
312
|
this.resizeWidth = colWidth.width || colWidth.realWidth;
|
|
311
313
|
this.resizeTarget.classList.add('is-resizing');
|
|
312
314
|
document.addEventListener('mousemove', this.onResizeMouseMove);
|
|
@@ -327,8 +329,10 @@ var Table = /** @class */ (function (_super) {
|
|
|
327
329
|
// 缩短列
|
|
328
330
|
newWidth = Math.max(this.resizeWidth + distance, DefaultCellWidth, column.minWidth || 0);
|
|
329
331
|
}
|
|
332
|
+
var th = this.resizeTarget.closest('th,td');
|
|
333
|
+
var colIndex = th.cellIndex;
|
|
330
334
|
var colWidths = this.state.colWidths;
|
|
331
|
-
colWidths[
|
|
335
|
+
colWidths[colIndex].width = newWidth;
|
|
332
336
|
this.setState({ colWidths: __assign({}, colWidths) });
|
|
333
337
|
}
|
|
334
338
|
event && event.stopPropagation();
|
|
@@ -344,7 +348,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
344
348
|
Table.prototype.renderHead = function () {
|
|
345
349
|
var _this = this;
|
|
346
350
|
var _a;
|
|
347
|
-
var _b = this.props, columns = _b.columns, cx = _b.classnames, classPrefix = _b.classPrefix, expandable = _b.expandable, rowSelection = _b.rowSelection, draggable = _b.draggable, resizable = _b.resizable, dataSource = _b.dataSource, onSort = _b.onSort, onSelectAll = _b.onSelectAll, onFilter = _b.onFilter, testIdBuilder = _b.testIdBuilder, headerClassName = _b.headerClassName, sticky = _b.sticky, autoFillHeight = _b.autoFillHeight
|
|
351
|
+
var _b = this.props, columns = _b.columns, cx = _b.classnames, classPrefix = _b.classPrefix, expandable = _b.expandable, rowSelection = _b.rowSelection, draggable = _b.draggable, resizable = _b.resizable, dataSource = _b.dataSource, onSort = _b.onSort, onSelectAll = _b.onSelectAll, onFilter = _b.onFilter, testIdBuilder = _b.testIdBuilder, headerClassName = _b.headerClassName, sticky = _b.sticky, autoFillHeight = _b.autoFillHeight; _b.scroll;
|
|
348
352
|
var rowSelectionKeyField = this.getRowSelectionKeyField();
|
|
349
353
|
var dataList = rowSelection && rowSelection.getCheckboxProps
|
|
350
354
|
? filterTree(dataSource, function (data, index, level) {
|
|
@@ -352,8 +356,7 @@ var Table = /** @class */ (function (_super) {
|
|
|
352
356
|
return !props.disabled;
|
|
353
357
|
})
|
|
354
358
|
: dataSource;
|
|
355
|
-
var
|
|
356
|
-
var selfSticky = !!(hasScrollY || (sticky && autoFillHeight));
|
|
359
|
+
var selfSticky = !!(sticky && autoFillHeight);
|
|
357
360
|
return (React__default.createElement(Head, { key: "thead", selfSticky: selfSticky, columns: columns, draggable: !!draggable, selectable: !!rowSelection, rowSelectionFixed: !!(rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.fixed), rowSelectionType: rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.type, selections: rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.selections, rowSelectionKeyField: rowSelectionKeyField, maxSelectedLength: rowSelection === null || rowSelection === void 0 ? void 0 : rowSelection.maxSelectedLength, isExpandable: this.isExpandableTable(), isRightExpandable: this.isRightExpandable(), isLeftExpandable: this.isLeftExpandable(), selectedRowKeys: this.state.selectedRowKeys, dataSource: dataList, resizable: resizable, expandable: !!expandable, expandableFixed: expandable === null || expandable === void 0 ? void 0 : expandable.fixed, childrenColumnName: this.getChildrenColumnName(), orderBy: (_a = this.state.sort) === null || _a === void 0 ? void 0 : _a.orderBy, popOverContainer: this.getPopOverContainer, classnames: cx, className: headerClassName, classPrefix: classPrefix, onSort: function (payload, column) {
|
|
358
361
|
_this.setState({
|
|
359
362
|
sort: payload
|
|
@@ -701,6 +704,11 @@ var Table = /** @class */ (function (_super) {
|
|
|
701
704
|
else {
|
|
702
705
|
table === null || table === void 0 ? void 0 : table.classList.remove(rightClass);
|
|
703
706
|
}
|
|
707
|
+
if (this.contentDom.current && table) {
|
|
708
|
+
var scrollBarWidth = this.contentDom.current.offsetWidth -
|
|
709
|
+
this.contentDom.current.clientWidth;
|
|
710
|
+
table.style.cssText += "--Table-scrollbar-width: ".concat(scrollBarWidth, "px;");
|
|
711
|
+
}
|
|
704
712
|
};
|
|
705
713
|
Table.prototype.onTableContentScroll = function (event) {
|
|
706
714
|
this.updateTableDom(event.target);
|
|
@@ -746,10 +754,11 @@ var Table = /** @class */ (function (_super) {
|
|
|
746
754
|
Table.prototype.renderScrollTableHeader = function () {
|
|
747
755
|
var _a;
|
|
748
756
|
var _b = this.props, scroll = _b.scroll, headSummary = _b.headSummary, sticky = _b.sticky, showHeader = _b.showHeader, cx = _b.classnames, headerClassName = _b.headerClassName;
|
|
749
|
-
var style = {
|
|
757
|
+
var style = {};
|
|
750
758
|
if (!!sticky) {
|
|
751
759
|
Object.assign(style, { top: 0 });
|
|
752
760
|
}
|
|
761
|
+
var widthReady = this.state.widthReady;
|
|
753
762
|
var tableStyle = {};
|
|
754
763
|
if (scroll && (scroll.y || scroll.x)) {
|
|
755
764
|
Object.assign(tableStyle, {
|
|
@@ -760,11 +769,11 @@ var Table = /** @class */ (function (_super) {
|
|
|
760
769
|
: '100%'
|
|
761
770
|
});
|
|
762
771
|
}
|
|
763
|
-
return (React__default.createElement("div", { ref: this.headerDom, className: cx('Table-header', (_a = {},
|
|
772
|
+
return (React__default.createElement("div", { ref: this.headerDom, className: cx('Table-header', 'Table-header--affixed', (_a = {},
|
|
764
773
|
_a[cx('Table-sticky-holder')] = !!sticky,
|
|
765
774
|
_a), headerClassName), style: style },
|
|
766
|
-
React__default.createElement("table", { className: cx('Table-table'), style: __assign(
|
|
767
|
-
this.renderColGroup(true),
|
|
775
|
+
React__default.createElement("table", { className: cx('Table-table', widthReady ? 'Table-table--fixed' : ''), style: __assign({}, tableStyle) },
|
|
776
|
+
this.renderColGroup(true, false),
|
|
768
777
|
showHeader ? this.renderHead() : null,
|
|
769
778
|
headSummary ? (React__default.createElement("tbody", null, this.renderSummaryRow(headSummary))) : null)));
|
|
770
779
|
};
|
|
@@ -790,14 +799,16 @@ var Table = /** @class */ (function (_super) {
|
|
|
790
799
|
itemActions && hoverRow ? (React__default.createElement(ItemActionsWrapper, { dom: hoverRow.target, classnames: cx }, typeof itemActions === 'function'
|
|
791
800
|
? itemActions(hoverRow.record, hoverRow.rowIndex)
|
|
792
801
|
: null)) : null,
|
|
793
|
-
React__default.createElement("table", { className: cx('Table-table', bodyClassname), style: __assign(
|
|
802
|
+
React__default.createElement("table", { className: cx('Table-table', bodyClassname), style: __assign({}, tableStyle) },
|
|
794
803
|
this.renderColGroup(),
|
|
795
804
|
this.renderBody())));
|
|
796
805
|
};
|
|
797
806
|
Table.prototype.renderScrollTableFoot = function () {
|
|
798
807
|
var _a = this.props, scroll = _a.scroll, cx = _a.classnames;
|
|
799
808
|
return (React__default.createElement("div", { ref: this.footDom, className: cx('Table-summary'), style: { overflow: 'hidden' } },
|
|
800
|
-
React__default.createElement("table", { className: cx('Table-table'), style: { width: (scroll === null || scroll === void 0 ? void 0 : scroll.x) + 'px' || '100%'
|
|
809
|
+
React__default.createElement("table", { className: cx('Table-table', this.state.widthReady ? 'Table-table--fixed' : ''), style: { width: (scroll === null || scroll === void 0 ? void 0 : scroll.x) + 'px' || '100%' } },
|
|
810
|
+
this.renderColGroup(true, false),
|
|
811
|
+
this.renderFoot())));
|
|
801
812
|
};
|
|
802
813
|
Table.prototype.renderScrollTable = function () {
|
|
803
814
|
// todo 这个模式有个很大的问题就是依赖 tablelayout 的 fixed 模式,这就意味这列的宽度都得配置
|
|
@@ -809,33 +820,36 @@ var Table = /** @class */ (function (_super) {
|
|
|
809
820
|
};
|
|
810
821
|
Table.prototype.syncTableWidth = function () {
|
|
811
822
|
var _this = this;
|
|
823
|
+
var _a;
|
|
812
824
|
var tbodyDom = this.tbodyDom.current;
|
|
813
|
-
if (!tbodyDom) {
|
|
825
|
+
if (!tbodyDom || this.resizeTarget) {
|
|
826
|
+
return;
|
|
827
|
+
}
|
|
828
|
+
var colgroup = (_a = tbodyDom.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector(':scope>colgroup');
|
|
829
|
+
if (!colgroup) {
|
|
814
830
|
return;
|
|
815
831
|
}
|
|
816
|
-
var cols = [].slice.call(
|
|
832
|
+
var cols = [].slice.call(colgroup === null || colgroup === void 0 ? void 0 : colgroup.querySelectorAll(':scope>col'));
|
|
817
833
|
var colWidths = {};
|
|
818
|
-
cols.forEach(function (col) {
|
|
834
|
+
cols.forEach(function (col, colIndex) {
|
|
819
835
|
var index = parseInt(col.getAttribute('data-col'), 10);
|
|
820
836
|
var column = _this.tdColumns[index];
|
|
821
|
-
var item = _this.state.colWidths[
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
};
|
|
829
|
-
}
|
|
837
|
+
var item = _this.state.colWidths[colIndex];
|
|
838
|
+
colWidths[colIndex] = {
|
|
839
|
+
width: (item === null || item === void 0 ? void 0 : item.originWidth) !== (column === null || column === void 0 ? void 0 : column.width) ? column === null || column === void 0 ? void 0 : column.width : item === null || item === void 0 ? void 0 : item.width,
|
|
840
|
+
minWidth: column === null || column === void 0 ? void 0 : column.minWidth,
|
|
841
|
+
realWidth: col.getBoundingClientRect().width,
|
|
842
|
+
originWidth: column === null || column === void 0 ? void 0 : column.width
|
|
843
|
+
};
|
|
830
844
|
});
|
|
831
845
|
if (!isEqual(colWidths, this.state.colWidths)) {
|
|
832
|
-
this.setState({ colWidths: colWidths });
|
|
846
|
+
this.setState({ colWidths: colWidths, widthReady: true });
|
|
833
847
|
}
|
|
834
848
|
};
|
|
835
849
|
Table.prototype.initTableWidth = function () {
|
|
836
850
|
var _this = this;
|
|
837
851
|
var tableWrapperDom = this.contentDom.current;
|
|
838
|
-
if (!tableWrapperDom) {
|
|
852
|
+
if (!tableWrapperDom || this.resizeTarget) {
|
|
839
853
|
return;
|
|
840
854
|
}
|
|
841
855
|
var _a = this.props, scroll = _a.scroll, tableLayout = _a.tableLayout;
|
|
@@ -889,46 +903,44 @@ var Table = /** @class */ (function (_super) {
|
|
|
889
903
|
document.body.appendChild(div);
|
|
890
904
|
var colWidths = {};
|
|
891
905
|
ths1.forEach(function (th) {
|
|
892
|
-
var
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
colWidths[column === null || column === void 0 ? void 0 : column.name].minWidth = th.clientWidth;
|
|
906
|
+
var colIndex = th.cellIndex;
|
|
907
|
+
minWidths[colIndex] = th.clientWidth;
|
|
908
|
+
if (colWidths[colIndex]) {
|
|
909
|
+
colWidths[colIndex].minWidth = th.clientWidth;
|
|
897
910
|
}
|
|
898
911
|
else {
|
|
899
|
-
colWidths[
|
|
912
|
+
colWidths[colIndex] = { minWidth: th.clientWidth };
|
|
900
913
|
}
|
|
901
914
|
});
|
|
902
915
|
ths2.forEach(function (col) {
|
|
916
|
+
var colIndex = col.cellIndex;
|
|
903
917
|
var index = parseInt(col.getAttribute('data-col'), 10);
|
|
904
918
|
var column = _this.tdColumns[index];
|
|
905
919
|
if (column && (column.width || isFixed)) {
|
|
906
920
|
var width = Math.max(typeof column.width === 'number' ? column.width : col.clientWidth, minWidths[index] || 0);
|
|
907
|
-
if (colWidths[
|
|
908
|
-
colWidths[
|
|
921
|
+
if (colWidths[colIndex]) {
|
|
922
|
+
colWidths[colIndex].width = width;
|
|
909
923
|
}
|
|
910
924
|
else {
|
|
911
|
-
colWidths[
|
|
925
|
+
colWidths[colIndex] = { width: width };
|
|
912
926
|
}
|
|
913
927
|
if (column.width) {
|
|
914
|
-
colWidths[
|
|
928
|
+
colWidths[colIndex].originWidth = column.width;
|
|
915
929
|
}
|
|
916
930
|
}
|
|
917
931
|
});
|
|
918
932
|
if (!isEqual(colWidths, this.state.colWidths)) {
|
|
919
|
-
this.setState({ colWidths: colWidths });
|
|
933
|
+
this.setState({ colWidths: colWidths }, this.syncTableWidth);
|
|
920
934
|
}
|
|
921
935
|
document.body.removeChild(div);
|
|
922
936
|
};
|
|
923
937
|
Table.prototype.updateTableInfo = function () {
|
|
924
|
-
if (this.resizeTarget) {
|
|
925
|
-
return;
|
|
926
|
-
}
|
|
927
938
|
this.syncTableWidth();
|
|
928
939
|
this.initTableWidth();
|
|
929
940
|
};
|
|
930
941
|
Table.prototype.render = function () {
|
|
931
942
|
var _a, _b;
|
|
943
|
+
var _this = this;
|
|
932
944
|
var _c = this.props, title = _c.title, footer = _c.footer, className = _c.className, scroll = _c.scroll, size = _c.size, bordered = _c.bordered, resizable = _c.resizable, columns = _c.columns, sticky = _c.sticky, autoFillHeight = _c.autoFillHeight, cx = _c.classnames;
|
|
933
945
|
var _d = getBuildColumns(columns), thColumns = _d.thColumns, tdColumns = _d.tdColumns;
|
|
934
946
|
this.thColumns = thColumns;
|
|
@@ -940,20 +952,34 @@ var Table = /** @class */ (function (_super) {
|
|
|
940
952
|
var style = {};
|
|
941
953
|
if (hasScrollY) {
|
|
942
954
|
Object.assign(style, {
|
|
943
|
-
overflow: 'auto scroll',
|
|
944
955
|
maxHeight: scroll.y
|
|
945
956
|
});
|
|
946
957
|
}
|
|
958
|
+
var mainStyle = __assign({}, this.props.style);
|
|
959
|
+
if (this.state.widthReady) {
|
|
960
|
+
Object.keys(this.state.colWidths).forEach(function (key, index, list) {
|
|
961
|
+
var width = _this.state.colWidths[index].realWidth;
|
|
962
|
+
if (width) {
|
|
963
|
+
mainStyle["--Table-column-".concat(key, "-width")] = "".concat(width, "px");
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
if (this.contentDom.current) {
|
|
967
|
+
// 严格来说不应该这么写,但是不想折腾了
|
|
968
|
+
var scrollBarWidth = this.contentDom.current.offsetWidth -
|
|
969
|
+
this.contentDom.current.clientWidth;
|
|
970
|
+
mainStyle['--Table-scrollbar-width'] = scrollBarWidth + 'px';
|
|
971
|
+
}
|
|
972
|
+
}
|
|
947
973
|
return (React__default.createElement("div", { ref: this.tableDom, className: cx('Table2', className, (_a = {},
|
|
948
974
|
_a[cx('Table-scroll-horizontal')] = hasScrollX,
|
|
949
975
|
_a[cx("Table-".concat(size))] = size,
|
|
950
976
|
_a[cx('Table-bordered')] = bordered,
|
|
951
977
|
_a[cx('Table-resizable')] = resizable,
|
|
952
|
-
_a)) },
|
|
978
|
+
_a)), style: mainStyle },
|
|
953
979
|
title ? (React__default.createElement("div", { className: cx('Table-title') }, typeof title === 'function' ? title() : title)) : null,
|
|
954
980
|
hasScrollY && !autoFillHeight ? (this.renderScrollTable()) : (React__default.createElement("div", { className: cx('Table-container', (_b = {},
|
|
955
981
|
_b[cx('Table-container-self-sticky')] = hasScrollY || (sticky && autoFillHeight),
|
|
956
|
-
_b)), style: style, ref: this.containerDom }, this.renderTable())),
|
|
982
|
+
_b)), onScroll: this.onTableScroll, style: style, ref: this.containerDom }, this.renderTable())),
|
|
957
983
|
footer ? (React__default.createElement("div", { className: cx('Table-footer') }, typeof footer === 'function' ? footer() : footer)) : null));
|
|
958
984
|
};
|
|
959
985
|
Table.defaultProps = {
|
|
@@ -13,44 +13,75 @@ export declare function getRowsByKeys(dataSource: Array<any>, keys: Array<string
|
|
|
13
13
|
export declare function getMaxLevelThRowSpan(columns: Array<ColumnProps>): number;
|
|
14
14
|
export declare function getThRowSpan(column: ColumnProps): number;
|
|
15
15
|
export declare function getThColSpan(column: ColumnProps): number;
|
|
16
|
-
export declare function buildColumns(columns: ColumnProps
|
|
16
|
+
export declare function buildColumns(columns: Array<ColumnProps> | undefined, thColumns: Array<Array<any>>, tdColumns: Array<ColumnProps> | undefined, maxLevel: number, depth?: number, fixed?: boolean | string): void;
|
|
17
17
|
export declare function getBuildColumns(columns: Array<any>): {
|
|
18
18
|
thColumns: ThProps[][];
|
|
19
19
|
tdColumns: TdProps[];
|
|
20
20
|
};
|
|
21
21
|
export declare function updateFixedRow(row: HTMLTableRowElement, columns: Array<ColumnProps | SummaryProps>, cx: Function): void;
|
|
22
22
|
export declare function updateStickyRow(thead: HTMLCollection, rowIndex: number): void;
|
|
23
|
-
export declare function hasFixedColumn(columns: Array<ColumnProps | SummaryProps>): number | ColumnProps | SummaryProps | ((predicate: (value: ColumnProps | SummaryProps, index: number, obj: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any) => number) | (() =>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
23
|
+
export declare function hasFixedColumn(columns: Array<ColumnProps | SummaryProps>): number | ColumnProps | SummaryProps | ((predicate: (value: ColumnProps | SummaryProps, index: number, obj: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any) => number) | (() => ArrayIterator<ColumnProps | SummaryProps>) | {
|
|
24
|
+
[x: number]: boolean | undefined;
|
|
25
|
+
length?: boolean | undefined;
|
|
26
|
+
toString?: boolean | undefined;
|
|
27
|
+
toLocaleString?: boolean | undefined;
|
|
28
|
+
pop?: boolean | undefined;
|
|
29
|
+
push?: boolean | undefined;
|
|
30
|
+
concat?: boolean | undefined;
|
|
31
|
+
join?: boolean | undefined;
|
|
32
|
+
reverse?: boolean | undefined;
|
|
33
|
+
shift?: boolean | undefined;
|
|
34
|
+
slice?: boolean | undefined;
|
|
35
|
+
sort?: boolean | undefined;
|
|
36
|
+
splice?: boolean | undefined;
|
|
37
|
+
unshift?: boolean | undefined;
|
|
38
|
+
indexOf?: boolean | undefined;
|
|
39
|
+
lastIndexOf?: boolean | undefined;
|
|
40
|
+
every?: boolean | undefined;
|
|
41
|
+
some?: boolean | undefined;
|
|
42
|
+
forEach?: boolean | undefined;
|
|
43
|
+
map?: boolean | undefined;
|
|
44
|
+
filter?: boolean | undefined;
|
|
45
|
+
reduce?: boolean | undefined;
|
|
46
|
+
reduceRight?: boolean | undefined;
|
|
47
|
+
find?: boolean | undefined;
|
|
48
|
+
findIndex?: boolean | undefined;
|
|
49
|
+
fill?: boolean | undefined;
|
|
50
|
+
copyWithin?: boolean | undefined;
|
|
51
|
+
entries?: boolean | undefined;
|
|
52
|
+
keys?: boolean | undefined;
|
|
53
|
+
values?: boolean | undefined;
|
|
54
|
+
includes?: boolean | undefined;
|
|
55
|
+
flatMap?: boolean | undefined;
|
|
56
|
+
flat?: boolean | undefined;
|
|
57
|
+
[Symbol.iterator]?: boolean | undefined;
|
|
58
|
+
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
59
|
+
} | (() => string) | {
|
|
60
|
+
(): string;
|
|
61
|
+
(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
62
|
+
} | (() => ColumnProps | SummaryProps | undefined) | ((...items: (ColumnProps | SummaryProps)[]) => number) | {
|
|
32
63
|
(...items: ConcatArray<ColumnProps | SummaryProps>[]): (ColumnProps | SummaryProps)[];
|
|
33
64
|
(...items: (ColumnProps | SummaryProps | ConcatArray<ColumnProps | SummaryProps>)[]): (ColumnProps | SummaryProps)[];
|
|
34
|
-
} | ((
|
|
35
|
-
|
|
36
|
-
(predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any): (ColumnProps | SummaryProps)[];
|
|
37
|
-
} | (() => (ColumnProps | SummaryProps)[]) | ((value: ColumnProps | SummaryProps, start?: number | undefined, end?: number | undefined) => (ColumnProps | SummaryProps)[]) | (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]) | (() => string) | ((...items: (ColumnProps | SummaryProps)[]) => number) | (() => ColumnProps | SummaryProps | undefined) | ((separator?: string | undefined) => string) | (() => ColumnProps | SummaryProps | undefined) | ((compareFn?: ((a: ColumnProps | SummaryProps, b: ColumnProps | SummaryProps) => number) | undefined) => (ColumnProps | SummaryProps)[]) | {
|
|
38
|
-
(start: number, deleteCount?: number | undefined): (ColumnProps | SummaryProps)[];
|
|
65
|
+
} | ((separator?: string) => string) | (() => (ColumnProps | SummaryProps)[]) | (() => ColumnProps | SummaryProps | undefined) | ((start?: number, end?: number) => (ColumnProps | SummaryProps)[]) | ((compareFn?: ((a: ColumnProps | SummaryProps, b: ColumnProps | SummaryProps) => number) | undefined) => (ColumnProps | SummaryProps)[]) | {
|
|
66
|
+
(start: number, deleteCount?: number): (ColumnProps | SummaryProps)[];
|
|
39
67
|
(start: number, deleteCount: number, ...items: (ColumnProps | SummaryProps)[]): (ColumnProps | SummaryProps)[];
|
|
40
|
-
} | ((...items: (ColumnProps | SummaryProps)[]) => number) | {
|
|
41
|
-
<
|
|
68
|
+
} | ((...items: (ColumnProps | SummaryProps)[]) => number) | ((searchElement: ColumnProps | SummaryProps, fromIndex?: number) => number) | ((searchElement: ColumnProps | SummaryProps, fromIndex?: number) => number) | {
|
|
69
|
+
<S extends ColumnProps | SummaryProps>(predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => value is S, thisArg?: any): this is S[];
|
|
42
70
|
(predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any): boolean;
|
|
43
|
-
} | ((predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => void, thisArg?: any) => void) | {
|
|
71
|
+
} | ((predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any) => boolean) | ((callbackfn: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => void, thisArg?: any) => void) | (<U>(callbackfn: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => U, thisArg?: any) => U[]) | {
|
|
72
|
+
<S extends ColumnProps | SummaryProps>(predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => value is S, thisArg?: any): S[];
|
|
73
|
+
(predicate: (value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any): (ColumnProps | SummaryProps)[];
|
|
74
|
+
} | {
|
|
44
75
|
(callbackfn: (previousValue: ColumnProps | SummaryProps, currentValue: ColumnProps | SummaryProps, currentIndex: number, array: (ColumnProps | SummaryProps)[]) => ColumnProps | SummaryProps): ColumnProps | SummaryProps;
|
|
45
76
|
(callbackfn: (previousValue: ColumnProps | SummaryProps, currentValue: ColumnProps | SummaryProps, currentIndex: number, array: (ColumnProps | SummaryProps)[]) => ColumnProps | SummaryProps, initialValue: ColumnProps | SummaryProps): ColumnProps | SummaryProps;
|
|
46
|
-
<
|
|
77
|
+
<U>(callbackfn: (previousValue: U, currentValue: ColumnProps | SummaryProps, currentIndex: number, array: (ColumnProps | SummaryProps)[]) => U, initialValue: U): U;
|
|
47
78
|
} | {
|
|
48
79
|
(callbackfn: (previousValue: ColumnProps | SummaryProps, currentValue: ColumnProps | SummaryProps, currentIndex: number, array: (ColumnProps | SummaryProps)[]) => ColumnProps | SummaryProps): ColumnProps | SummaryProps;
|
|
49
80
|
(callbackfn: (previousValue: ColumnProps | SummaryProps, currentValue: ColumnProps | SummaryProps, currentIndex: number, array: (ColumnProps | SummaryProps)[]) => ColumnProps | SummaryProps, initialValue: ColumnProps | SummaryProps): ColumnProps | SummaryProps;
|
|
50
|
-
<
|
|
81
|
+
<U>(callbackfn: (previousValue: U, currentValue: ColumnProps | SummaryProps, currentIndex: number, array: (ColumnProps | SummaryProps)[]) => U, initialValue: U): U;
|
|
51
82
|
} | {
|
|
52
|
-
<
|
|
83
|
+
<S extends ColumnProps | SummaryProps>(predicate: (value: ColumnProps | SummaryProps, index: number, obj: (ColumnProps | SummaryProps)[]) => value is S, thisArg?: any): S | undefined;
|
|
53
84
|
(predicate: (value: ColumnProps | SummaryProps, index: number, obj: (ColumnProps | SummaryProps)[]) => unknown, thisArg?: any): ColumnProps | SummaryProps | undefined;
|
|
54
|
-
} | ((
|
|
85
|
+
} | ((value: ColumnProps | SummaryProps, start?: number, end?: number) => (ColumnProps | SummaryProps)[]) | ((target: number, start: number, end?: number) => (ColumnProps | SummaryProps)[]) | (() => ArrayIterator<[number, ColumnProps | SummaryProps]>) | (() => ArrayIterator<number>) | (() => ArrayIterator<ColumnProps | SummaryProps>) | ((searchElement: ColumnProps | SummaryProps, fromIndex?: number) => boolean) | (<U, This = undefined>(callback: (this: This, value: ColumnProps | SummaryProps, index: number, array: (ColumnProps | SummaryProps)[]) => U | readonly U[], thisArg?: This | undefined) => U[]) | (<A, D extends number = 1>(this: A, depth?: D | undefined) => FlatArray<A, D>[]) | undefined;
|
|
55
86
|
export declare function levelsSplit(level: string): number[];
|
|
56
87
|
export declare function getSortData(data: Array<any>, columns: Array<ColumnProps>, childrenColumnName: string, sort?: SortProps): Array<any>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.14.0-beta.
|
|
2
|
+
* amis-ui v6.14.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -134,15 +134,18 @@ function isFixedLeftColumn(fixed) {
|
|
|
134
134
|
function isFixedRightColumn(fixed) {
|
|
135
135
|
return fixed === 'right';
|
|
136
136
|
}
|
|
137
|
-
function getPreviousLeftWidth(
|
|
138
|
-
var
|
|
137
|
+
function getPreviousLeftWidth(index, columns) {
|
|
138
|
+
var widths = [];
|
|
139
139
|
for (var i = 0; i < index; i++) {
|
|
140
140
|
if (columns && columns[i] && isFixedLeftColumn(columns[i].fixed)) {
|
|
141
|
-
var
|
|
142
|
-
width += dom.offsetWidth;
|
|
141
|
+
widths.push("var(--Table-column-".concat(i, "-width)"));
|
|
143
142
|
}
|
|
144
143
|
}
|
|
145
|
-
return
|
|
144
|
+
return widths.length
|
|
145
|
+
? widths.length > 1
|
|
146
|
+
? "calc(".concat(widths.join(' + '), ")")
|
|
147
|
+
: widths[0]
|
|
148
|
+
: '0';
|
|
146
149
|
}
|
|
147
150
|
function getPreviousTopHeight(thead, rowIndex) {
|
|
148
151
|
var height = 0;
|
|
@@ -154,17 +157,18 @@ function getPreviousTopHeight(thead, rowIndex) {
|
|
|
154
157
|
}
|
|
155
158
|
return height;
|
|
156
159
|
}
|
|
157
|
-
function getAfterRightWidth(
|
|
158
|
-
var
|
|
159
|
-
for (var i =
|
|
160
|
+
function getAfterRightWidth(index, columns) {
|
|
161
|
+
var widths = [];
|
|
162
|
+
for (var i = columns.length - 1; i > index; i--) {
|
|
160
163
|
if (columns && columns[i] && isFixedRightColumn(columns[i].fixed)) {
|
|
161
|
-
var
|
|
162
|
-
if (dom) {
|
|
163
|
-
width += dom.offsetWidth;
|
|
164
|
-
}
|
|
164
|
+
widths.push("var(--Table-column-".concat(i, "-width)"));
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
return
|
|
167
|
+
return widths.length
|
|
168
|
+
? widths.length > 1
|
|
169
|
+
? "calc(".concat(widths.join(' + '), ")")
|
|
170
|
+
: widths[0]
|
|
171
|
+
: '0';
|
|
168
172
|
}
|
|
169
173
|
// 更新一个tr下的td的left和class
|
|
170
174
|
function updateFixedRow(row, columns, cx) {
|
|
@@ -180,13 +184,12 @@ function updateFixedRow(row, columns, cx) {
|
|
|
180
184
|
var dom = children[i];
|
|
181
185
|
classRemovals.push(dom);
|
|
182
186
|
var fixed = columns[i] ? columns[i].fixed || '' : '';
|
|
183
|
-
var left =
|
|
187
|
+
var left = '', right = '';
|
|
184
188
|
if (isFixedLeftColumn(fixed)) {
|
|
185
|
-
left = i > 0 ? getPreviousLeftWidth(
|
|
189
|
+
left = i > 0 ? getPreviousLeftWidth(i, columns) : '0';
|
|
186
190
|
}
|
|
187
191
|
else if (isFixedRightColumn(fixed)) {
|
|
188
|
-
right =
|
|
189
|
-
i < length - 1 ? getAfterRightWidth(children, i, columns) + 'px' : '0';
|
|
192
|
+
right = i < length - 1 ? getAfterRightWidth(i, columns) : '0';
|
|
190
193
|
}
|
|
191
194
|
styleUpdates.push({ dom: dom, left: left, right: right });
|
|
192
195
|
}
|
|
@@ -76,7 +76,7 @@ export default class VirtualList extends React.PureComponent<Props, State> {
|
|
|
76
76
|
style: PropTypes.Requireable<object>;
|
|
77
77
|
width: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
78
78
|
};
|
|
79
|
-
itemSizeGetter: (itemSize: Props[
|
|
79
|
+
itemSizeGetter: (itemSize: Props["itemSize"]) => (index: any) => any;
|
|
80
80
|
sizeAndPositionManager: SizeAndPositionManager;
|
|
81
81
|
readonly state: State;
|
|
82
82
|
private rootNode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.14.0-beta.
|
|
2
|
+
* amis-ui v6.14.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import { __assign, __extends, __rest } from 'tslib';
|
|
6
|
+
import { __assign, __extends, __spreadArray, __read, __rest } from 'tslib';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import * as PropTypes from 'prop-types';
|
|
9
9
|
import SizeAndPositionManager from './SizeAndPositionManager.js';
|
|
@@ -35,7 +35,7 @@ var STYLE_STICKY_ITEM = __assign(__assign({}, STYLE_ITEM), { position: 'sticky'
|
|
|
35
35
|
var VirtualList = /** @class */ (function (_super) {
|
|
36
36
|
__extends(VirtualList, _super);
|
|
37
37
|
function VirtualList() {
|
|
38
|
-
var _this = _super
|
|
38
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments), false)) || this;
|
|
39
39
|
_this.itemSizeGetter = function (itemSize) {
|
|
40
40
|
return function (index) { return _this.getSize(index, itemSize); };
|
|
41
41
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* amis-ui v6.14.0-beta.
|
|
2
|
+
* amis-ui v6.14.0-beta.10
|
|
3
3
|
* Copyright 2018-2025 fex
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -12,7 +12,7 @@ import { useValidationResolver } from './use-validation-resolver.js';
|
|
|
12
12
|
var useSubForm = function (defaultValue, translate, onUpdate) {
|
|
13
13
|
var methods = useForm({
|
|
14
14
|
defaultValues: defaultValue,
|
|
15
|
-
mode: 'onChange',
|
|
15
|
+
mode: 'onChange', // 每次修改都验证
|
|
16
16
|
shouldUnregister: true,
|
|
17
17
|
resolver: useValidationResolver(translate)
|
|
18
18
|
});
|
package/esm/hooks/use-touch.js
CHANGED