amis-ui 6.13.0-beta.8 → 6.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/404.d.ts +53 -0
- package/esm/components/404.js +35 -0
- package/esm/components/Alert.d.ts +615 -0
- package/esm/components/Alert.js +266 -0
- package/esm/components/Alert2.d.ts +117 -0
- package/esm/components/Alert2.js +58 -0
- package/esm/components/AlphabetIndexer.d.ts +11 -0
- package/esm/components/AlphabetIndexer.js +48 -0
- package/esm/components/AnchorNav.d.ts +162 -0
- package/esm/components/AnchorNav.js +153 -0
- package/esm/components/AnchorNavSection.d.ts +2 -0
- package/esm/components/AnchorNavSection.js +7 -0
- package/esm/components/ArrayInput.d.ts +617 -0
- package/esm/components/ArrayInput.js +147 -0
- package/esm/components/AsideNav.d.ts +142 -0
- package/esm/components/AsideNav.js +133 -0
- package/esm/components/AssociatedSelection.d.ts +564 -0
- package/esm/components/AssociatedSelection.js +107 -0
- package/esm/components/AutoFoldedList.d.ts +87 -0
- package/esm/components/AutoFoldedList.js +124 -0
- package/esm/components/AutoSizer.d.ts +2 -0
- package/esm/components/AutoSizer.js +8 -0
- package/esm/components/Avatar.d.ts +374 -0
- package/esm/components/Avatar.js +126 -0
- package/esm/components/Badge.d.ts +118 -0
- package/esm/components/Badge.js +154 -0
- package/esm/components/BaiduMapPicker.d.ts +100 -0
- package/esm/components/BaiduMapPicker.js +366 -0
- package/esm/components/BarCode.d.ts +56 -0
- package/esm/components/BarCode.js +42 -0
- package/esm/components/Breadcrumb.d.ts +115 -0
- package/esm/components/Breadcrumb.js +160 -0
- package/esm/components/Button.d.ts +147 -0
- package/esm/components/Button.js +63 -0
- package/esm/components/CalendarMobile.d.ts +431 -0
- package/esm/components/CalendarMobile.js +538 -0
- package/esm/components/Card.d.ts +444 -0
- package/esm/components/Card.js +88 -0
- package/esm/components/Cascader.d.ts +108 -0
- package/esm/components/Cascader.js +515 -0
- package/esm/components/ChainedDropdownSelection.d.ts +561 -0
- package/esm/components/ChainedDropdownSelection.js +104 -0
- package/esm/components/ChainedSelection.d.ts +554 -0
- package/esm/components/ChainedSelection.js +184 -0
- package/esm/components/Checkbox.d.ts +110 -0
- package/esm/components/Checkbox.js +87 -0
- package/esm/components/CityArea.d.ts +299 -0
- package/esm/components/CityArea.js +190 -0
- package/esm/components/CityDB.d.ts +13 -0
- package/esm/components/CityDB.js +3942 -0
- package/esm/components/CodeMirror.d.ts +29 -0
- package/esm/components/CodeMirror.js +140 -0
- package/esm/components/Collapse.d.ts +447 -0
- package/esm/components/Collapse.js +184 -0
- package/esm/components/CollapseGroup.d.ts +219 -0
- package/esm/components/CollapseGroup.js +117 -0
- package/esm/components/ColorPicker.d.ts +530 -0
- package/esm/components/ColorPicker.js +260 -0
- package/esm/components/Combo.d.ts +354 -0
- package/esm/components/Combo.js +212 -0
- package/esm/components/ConditionBuilder.d.ts +2 -0
- package/esm/components/ConditionBuilder.js +7 -0
- package/esm/components/ConfirmBox.d.ts +322 -0
- package/esm/components/ConfirmBox.js +129 -0
- package/esm/components/ContextMenu.d.ts +115 -0
- package/esm/components/ContextMenu.js +310 -0
- package/esm/components/DatePicker.d.ts +638 -0
- package/esm/components/DatePicker.js +717 -0
- package/esm/components/DateRangePicker.d.ts +1046 -0
- package/esm/components/DateRangePicker.js +1386 -0
- package/esm/components/DiffEditor.d.ts +21 -0
- package/esm/components/DiffEditor.js +119 -0
- package/esm/components/DndContainer.d.ts +205 -0
- package/esm/components/DndContainer.js +25 -0
- package/esm/components/Drawer.d.ts +159 -0
- package/esm/components/Drawer.js +272 -0
- package/esm/components/DropDownSelection.d.ts +557 -0
- package/esm/components/DropDownSelection.js +78 -0
- package/esm/components/DropdownContextMenus.d.ts +84 -0
- package/esm/components/DropdownContextMenus.js +93 -0
- package/esm/components/Editor.d.ts +681 -0
- package/esm/components/Editor.js +238 -0
- package/esm/components/Form.d.ts +31 -0
- package/esm/components/Form.js +84 -0
- package/esm/components/FormField.d.ts +287 -0
- package/esm/components/FormField.js +78 -0
- package/esm/components/FormulaPicker.d.ts +2 -0
- package/esm/components/FormulaPicker.js +7 -0
- package/esm/components/GaodeMapPicker.d.ts +89 -0
- package/esm/components/GaodeMapPicker.js +204 -0
- package/esm/components/GridNav.d.ts +53 -0
- package/esm/components/GridNav.js +125 -0
- package/esm/components/GridNavItem.d.ts +2 -0
- package/esm/components/GridNavItem.js +7 -0
- package/esm/components/GroupedSelection.d.ts +543 -0
- package/esm/components/GroupedSelection.js +138 -0
- package/esm/components/HeadCellDropDown.d.ts +2 -0
- package/esm/components/HeadCellDropDown.js +7 -0
- package/esm/components/HorizontalScroll.d.ts +75 -0
- package/esm/components/HorizontalScroll.js +271 -0
- package/esm/components/Html.d.ts +82 -0
- package/esm/components/Html.js +52 -0
- package/esm/components/Icon.d.ts +2 -0
- package/esm/components/Icon.js +7 -0
- package/esm/components/ImageGallery.d.ts +465 -0
- package/esm/components/ImageGallery.js +396 -0
- package/esm/components/Input.d.ts +18 -0
- package/esm/components/Input.js +75 -0
- package/esm/components/InputBox.d.ts +100 -0
- package/esm/components/InputBox.js +98 -0
- package/esm/components/InputBoxWithSuggestion.d.ts +272 -0
- package/esm/components/InputBoxWithSuggestion.js +69 -0
- package/esm/components/InputJSONSchema.d.ts +2 -0
- package/esm/components/InputJSONSchema.js +7 -0
- package/esm/components/InputTable.d.ts +317 -0
- package/esm/components/InputTable.js +176 -0
- package/esm/components/JSONSchemaEditor.d.ts +2 -0
- package/esm/components/JSONSchemaEditor.js +7 -0
- package/esm/components/Layout.d.ts +74 -0
- package/esm/components/Layout.js +60 -0
- package/esm/components/Link.d.ts +60 -0
- package/esm/components/Link.js +44 -0
- package/esm/components/ListGroup.d.ts +77 -0
- package/esm/components/ListGroup.js +31 -0
- package/esm/components/ListMenu.d.ts +568 -0
- package/esm/components/ListMenu.js +62 -0
- package/esm/components/LocationPicker.d.ts +467 -0
- package/esm/components/LocationPicker.js +208 -0
- package/esm/components/Markdown.d.ts +25 -0
- package/esm/components/Markdown.js +70 -0
- package/esm/components/Menu.d.ts +2 -0
- package/esm/components/Menu.js +7 -0
- package/esm/components/MixedInput.d.ts +55 -0
- package/esm/components/MixedInput.js +88 -0
- package/esm/components/MobileDevTool.d.ts +12 -0
- package/esm/components/MobileDevTool.js +312 -0
- package/esm/components/Modal.d.ts +1316 -0
- package/esm/components/Modal.js +261 -0
- package/esm/components/ModalManager.d.ts +17 -0
- package/esm/components/ModalManager.js +42 -0
- package/esm/components/MonthRangePicker.d.ts +744 -0
- package/esm/components/MultilineText.d.ts +454 -0
- package/esm/components/MultilineText.js +90 -0
- package/esm/components/NumberInput.d.ts +201 -0
- package/esm/components/NumberInput.js +274 -0
- package/esm/components/OverflowTpl.d.ts +61 -0
- package/esm/components/OverflowTpl.js +101 -0
- package/esm/components/Pagination.d.ts +812 -0
- package/esm/components/Pagination.js +377 -0
- package/esm/components/PdfViewer.d.ts +49 -0
- package/esm/components/PdfViewer.js +83 -0
- package/esm/components/Picker.d.ts +277 -0
- package/esm/components/Picker.js +73 -0
- package/esm/components/PickerColumn.d.ts +62 -0
- package/esm/components/PickerColumn.js +276 -0
- package/esm/components/PickerContainer.d.ts +291 -0
- package/esm/components/PickerContainer.js +157 -0
- package/esm/components/PopOverContainer.d.ts +59 -0
- package/esm/components/PopOverContainer.js +149 -0
- package/esm/components/PopUp.d.ts +573 -0
- package/esm/components/PopUp.js +85 -0
- package/esm/components/Progress.d.ts +311 -0
- package/esm/components/Progress.js +136 -0
- package/esm/components/PullRefresh.d.ts +79 -0
- package/esm/components/PullRefresh.js +172 -0
- package/esm/components/Radios.d.ts +170 -0
- package/esm/components/Radios.js +129 -0
- package/esm/components/Range.d.ts +131 -0
- package/esm/components/Range.js +517 -0
- package/esm/components/Rating.d.ts +227 -0
- package/esm/components/Rating.js +341 -0
- package/esm/components/ResultBox.d.ts +532 -0
- package/esm/components/ResultBox.js +195 -0
- package/esm/components/ResultList.d.ts +554 -0
- package/esm/components/ResultList.js +254 -0
- package/esm/components/ResultTableList.d.ts +786 -0
- package/esm/components/ResultTableList.js +152 -0
- package/esm/components/ResultTreeList.d.ts +425 -0
- package/esm/components/ResultTreeList.js +241 -0
- package/esm/components/RichText.d.ts +48 -0
- package/esm/components/RichText.js +271 -0
- package/esm/components/SearchBox.d.ts +625 -0
- package/esm/components/SearchBox.js +299 -0
- package/esm/components/Select.d.ts +6498 -0
- package/esm/components/Select.js +815 -0
- package/esm/components/SelectMobile.d.ts +38 -0
- package/esm/components/SelectMobile.js +370 -0
- package/esm/components/Selection.d.ts +598 -0
- package/esm/components/Selection.js +166 -0
- package/esm/components/Shape.d.ts +58 -0
- package/esm/components/Shape.js +429 -0
- package/esm/components/Signature.d.ts +279 -0
- package/esm/components/Signature.js +293 -0
- package/esm/components/Slider.d.ts +56 -0
- package/esm/components/Slider.js +140 -0
- package/esm/components/SparkLine.d.ts +397 -0
- package/esm/components/SparkLine.js +62 -0
- package/esm/components/Spinner.d.ts +266 -0
- package/esm/components/Spinner.js +202 -0
- package/esm/components/Steps.d.ts +117 -0
- package/esm/components/Steps.js +76 -0
- package/esm/components/Switch.d.ts +105 -0
- package/esm/components/Switch.js +73 -0
- package/esm/components/Tab.d.ts +2 -0
- package/esm/components/Tab.js +7 -0
- package/esm/components/Table.d.ts +2 -0
- package/esm/components/Table.js +7 -0
- package/esm/components/TableSelection.d.ts +791 -0
- package/esm/components/TableSelection.js +169 -0
- package/esm/components/Tabs.d.ts +670 -0
- package/esm/components/Tabs.js +607 -0
- package/esm/components/TabsTransfer.d.ts +423 -0
- package/esm/components/TabsTransfer.js +221 -0
- package/esm/components/TabsTransferPicker.d.ts +267 -0
- package/esm/components/TabsTransferPicker.js +81 -0
- package/esm/components/Tag.d.ts +318 -0
- package/esm/components/Tag.js +137 -0
- package/esm/components/Textarea.d.ts +564 -0
- package/esm/components/Textarea.js +147 -0
- package/esm/components/Timeline.d.ts +56 -0
- package/esm/components/Timeline.js +60 -0
- package/esm/components/TimelineItem.d.ts +1292 -0
- package/esm/components/TimelineItem.js +101 -0
- package/esm/components/Tinymce.d.ts +66 -0
- package/esm/components/Tinymce.js +632 -0
- package/esm/components/TitleBar.d.ts +123 -0
- package/esm/components/TitleBar.js +48 -0
- package/esm/components/Toast.d.ts +591 -0
- package/esm/components/Toast.js +247 -0
- package/esm/components/Tooltip.d.ts +65 -0
- package/esm/components/Tooltip.js +36 -0
- package/esm/components/TooltipWrapper.d.ts +217 -0
- package/esm/components/TooltipWrapper.js +181 -0
- package/esm/components/Transfer.d.ts +1844 -0
- package/esm/components/Transfer.js +485 -0
- package/esm/components/TransferDropDown.d.ts +634 -0
- package/esm/components/TransferDropDown.js +98 -0
- package/esm/components/TransferPicker.d.ts +275 -0
- package/esm/components/TransferPicker.js +98 -0
- package/esm/components/TransferSearch.d.ts +283 -0
- package/esm/components/TransferSearch.js +100 -0
- package/esm/components/Tree.d.ts +1953 -0
- package/esm/components/Tree.js +1220 -0
- package/esm/components/TreeSelection.d.ts +601 -0
- package/esm/components/TreeSelection.js +201 -0
- package/esm/components/UserSelect.d.ts +541 -0
- package/esm/components/UserSelect.js +674 -0
- package/esm/components/UserTabSelect.d.ts +315 -0
- package/esm/components/UserTabSelect.js +227 -0
- package/esm/components/VerificationCode.d.ts +116 -0
- package/esm/components/VerificationCode.js +172 -0
- package/esm/components/VirtualList.d.ts +2 -0
- package/esm/components/VirtualList.js +7 -0
- package/esm/components/WithRemoteConfig.d.ts +383 -0
- package/esm/components/WithRemoteConfig.js +302 -0
- package/esm/components/WithStore.d.ts +72 -0
- package/esm/components/WithStore.js +48 -0
- package/esm/components/calendar/Calendar.d.ts +83 -0
- package/esm/components/calendar/Calendar.js +529 -0
- package/esm/components/calendar/CalendarContainer.d.ts +10 -0
- package/esm/components/calendar/CalendarContainer.js +27 -0
- package/esm/components/calendar/DaysView.d.ts +184 -0
- package/esm/components/calendar/DaysView.js +528 -0
- package/esm/components/calendar/MonthsView.d.ts +133 -0
- package/esm/components/calendar/MonthsView.js +175 -0
- package/esm/components/calendar/QuartersView.d.ts +102 -0
- package/esm/components/calendar/QuartersView.js +125 -0
- package/esm/components/calendar/TimeView.d.ts +183 -0
- package/esm/components/calendar/TimeView.js +559 -0
- package/esm/components/calendar/YearsView.d.ts +102 -0
- package/esm/components/calendar/YearsView.js +122 -0
- package/esm/components/condition-builder/Expression.d.ts +292 -0
- package/esm/components/condition-builder/Expression.js +121 -0
- package/esm/components/condition-builder/Field.d.ts +272 -0
- package/esm/components/condition-builder/Field.js +32 -0
- package/esm/components/condition-builder/Formula.d.ts +261 -0
- package/esm/components/condition-builder/Func.d.ts +273 -0
- package/esm/components/condition-builder/Func.js +75 -0
- package/esm/components/condition-builder/Group.d.ts +310 -0
- package/esm/components/condition-builder/Group.js +191 -0
- package/esm/components/condition-builder/GroupOrItem.d.ts +87 -0
- package/esm/components/condition-builder/GroupOrItem.js +105 -0
- package/esm/components/condition-builder/InputSwitch.d.ts +47 -0
- package/esm/components/condition-builder/InputSwitch.js +28 -0
- package/esm/components/condition-builder/Item.d.ts +287 -0
- package/esm/components/condition-builder/Item.js +232 -0
- package/esm/components/condition-builder/Value.d.ts +274 -0
- package/esm/components/condition-builder/Value.js +114 -0
- package/esm/components/condition-builder/config.d.ts +36 -0
- package/esm/components/condition-builder/config.js +120 -0
- package/esm/components/condition-builder/index.d.ts +319 -0
- package/esm/components/condition-builder/index.js +228 -0
- package/esm/components/condition-builder/types.d.ts +116 -0
- package/esm/components/formula/CodeEditor.d.ts +92 -0
- package/esm/components/formula/CodeEditor.js +99 -0
- package/esm/components/formula/Editor.d.ts +516 -0
- package/esm/components/formula/Editor.js +446 -0
- package/esm/components/formula/FuncList.d.ts +46 -0
- package/esm/components/formula/FuncList.js +64 -0
- package/esm/components/formula/Input.d.ts +292 -0
- package/esm/components/formula/Input.js +122 -0
- package/esm/components/formula/Picker.d.ts +492 -0
- package/esm/components/formula/Picker.js +454 -0
- package/esm/components/formula/VariableList.d.ts +58 -0
- package/esm/components/formula/VariableList.js +183 -0
- package/esm/components/formula/plugin.d.ts +51 -0
- package/esm/components/formula/plugin.js +372 -0
- package/esm/components/icons.d.ts +61 -0
- package/esm/components/icons.js +458 -0
- package/esm/components/index.d.ts +138 -0
- package/esm/components/json-schema/Array.d.ts +3 -0
- package/esm/components/json-schema/Array.js +129 -0
- package/esm/components/json-schema/Item.d.ts +5 -0
- package/esm/components/json-schema/Item.js +63 -0
- package/esm/components/json-schema/Object.d.ts +5 -0
- package/esm/components/json-schema/Object.js +265 -0
- package/esm/components/json-schema/index.d.ts +272 -0
- package/esm/components/json-schema/index.js +29 -0
- package/esm/components/menu/MenuContext.d.ts +83 -0
- package/esm/components/menu/MenuContext.js +25 -0
- package/esm/components/menu/MenuItem.d.ts +81 -0
- package/esm/components/menu/MenuItem.js +112 -0
- package/esm/components/menu/PanelMenu.d.ts +46 -0
- package/esm/components/menu/PanelMenu.js +68 -0
- package/esm/components/menu/SubMenu.d.ts +84 -0
- package/esm/components/menu/SubMenu.js +137 -0
- package/esm/components/menu/index.d.ts +381 -0
- package/esm/components/menu/index.js +369 -0
- package/esm/components/schema-editor/Array.d.ts +11 -0
- package/esm/components/schema-editor/Array.js +84 -0
- package/esm/components/schema-editor/Common.d.ts +61 -0
- package/esm/components/schema-editor/Common.js +161 -0
- package/esm/components/schema-editor/Item.d.ts +8 -0
- package/esm/components/schema-editor/Item.js +24 -0
- package/esm/components/schema-editor/Object.d.ts +51 -0
- package/esm/components/schema-editor/Object.js +294 -0
- package/esm/components/schema-editor/SchemaVariableList.d.ts +186 -0
- package/esm/components/schema-editor/SchemaVariableList.js +74 -0
- package/esm/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
- package/esm/components/schema-editor/SchemaVariableListPicker.js +34 -0
- package/esm/components/schema-editor/index.d.ts +797 -0
- package/esm/components/schema-editor/index.js +122 -0
- package/esm/components/table/Cell.d.ts +36 -0
- package/esm/components/table/Cell.js +43 -0
- package/esm/components/table/ColGroup.d.ts +24 -0
- package/esm/components/table/ColGroup.js +58 -0
- package/esm/components/table/Head.d.ts +45 -0
- package/esm/components/table/Head.js +150 -0
- package/esm/components/table/HeadCellDropDown.d.ts +289 -0
- package/esm/components/table/HeadCellDropDown.js +55 -0
- package/esm/components/table/HeadCellFilter.d.ts +414 -0
- package/esm/components/table/HeadCellFilter.js +131 -0
- package/esm/components/table/HeadCellSelect.d.ts +357 -0
- package/esm/components/table/HeadCellSelect.js +52 -0
- package/esm/components/table/HeadCellSort.d.ts +278 -0
- package/esm/components/table/HeadCellSort.js +88 -0
- package/esm/components/table/ItemActionsWrapper.d.ts +10 -0
- package/esm/components/table/ItemActionsWrapper.js +29 -0
- package/esm/components/table/Row.d.ts +56 -0
- package/esm/components/table/Row.js +224 -0
- package/esm/components/table/SummaryRow.d.ts +28 -0
- package/esm/components/table/SummaryRow.js +73 -0
- package/esm/components/table/index.d.ts +852 -0
- package/esm/components/table/index.js +1069 -0
- package/esm/components/table/util.d.ts +56 -0
- package/esm/components/table/util.js +276 -0
- package/esm/components/virtual-list/AutoSizer.d.ts +19 -0
- package/esm/components/virtual-list/AutoSizer.js +49 -0
- package/esm/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/esm/components/virtual-list/SizeAndPositionManager.js +216 -0
- package/esm/components/virtual-list/constants.d.ts +34 -0
- package/esm/components/virtual-list/constants.js +45 -0
- package/esm/components/virtual-list/index.d.ts +99 -0
- package/esm/components/virtual-list/index.js +288 -0
- package/esm/components/withBadge.d.ts +2 -0
- package/esm/components/withBadge.js +7 -0
- package/esm/hooks/index.d.ts +8 -0
- package/esm/hooks/use-click-away.d.ts +12 -0
- package/esm/hooks/use-click-away.js +55 -0
- package/esm/hooks/use-on-screen.d.ts +2 -0
- package/esm/hooks/use-on-screen.js +28 -0
- package/esm/hooks/use-set-state.d.ts +2 -0
- package/esm/hooks/use-set-state.js +19 -0
- package/esm/hooks/use-sub-form.d.ts +4 -0
- package/esm/hooks/use-sub-form.js +39 -0
- package/esm/hooks/use-touch.d.ts +16 -0
- package/esm/hooks/use-touch.js +77 -0
- package/esm/hooks/use-update-effect.d.ts +3 -0
- package/esm/hooks/use-update-effect.js +21 -0
- package/esm/hooks/use-validation-resolver.d.ts +7 -0
- package/esm/hooks/use-validation-resolver.js +115 -0
- package/esm/icons/alert-danger.svg.js +22 -0
- package/esm/icons/alert-info.svg.js +22 -0
- package/esm/icons/alert-success.svg.js +22 -0
- package/esm/icons/alert-warning.svg.js +22 -0
- package/esm/icons/arrow-double-left.svg.js +24 -0
- package/esm/icons/arrow-double-right.svg.js +24 -0
- package/esm/icons/back.svg.js +21 -0
- package/esm/icons/calendar.svg.js +31 -0
- package/esm/icons/caret.svg.js +21 -0
- package/esm/icons/check.svg.js +21 -0
- package/esm/icons/clock.svg.js +29 -0
- package/esm/icons/close-small.svg.js +24 -0
- package/esm/icons/close.svg.js +21 -0
- package/esm/icons/cloud-upload.svg.js +22 -0
- package/esm/icons/column-filter.svg.js +22 -0
- package/esm/icons/columns.svg.js +21 -0
- package/esm/icons/compress-alt.svg.js +21 -0
- package/esm/icons/copy.svg.js +26 -0
- package/esm/icons/date.svg.js +26 -0
- package/esm/icons/department.svg.js +52 -0
- package/esm/icons/desk-empty.svg.js +73 -0
- package/esm/icons/dot.svg.js +36 -0
- package/esm/icons/down-arrow-bold.svg.js +22 -0
- package/esm/icons/down.svg.js +23 -0
- package/esm/icons/download.svg.js +24 -0
- package/esm/icons/drag-bar.svg.js +53 -0
- package/esm/icons/drag.svg.js +22 -0
- package/esm/icons/edit.svg.js +21 -0
- package/esm/icons/ellipsis-v.svg.js +21 -0
- package/esm/icons/enter.svg.js +20 -0
- package/esm/icons/exchange.svg.js +21 -0
- package/esm/icons/expand-alt.svg.js +21 -0
- package/esm/icons/fail.svg.js +31 -0
- package/esm/icons/file.svg.js +22 -0
- package/esm/icons/filter.svg.js +21 -0
- package/esm/icons/folder.svg.js +24 -0
- package/esm/icons/fullscreen.svg.js +21 -0
- package/esm/icons/function.svg.js +21 -0
- package/esm/icons/home.svg.js +21 -0
- package/esm/icons/if.svg.js +21 -0
- package/esm/icons/image.svg.js +20 -0
- package/esm/icons/info-circle.svg.js +21 -0
- package/esm/icons/info.svg.js +27 -0
- package/esm/icons/input-clear.svg.js +20 -0
- package/esm/icons/invisible.svg.js +22 -0
- package/esm/icons/left-arrow.svg.js +23 -0
- package/esm/icons/loading-outline.svg.js +21 -0
- package/esm/icons/location.svg.js +20 -0
- package/esm/icons/menu.svg.js +20 -0
- package/esm/icons/minus.svg.js +21 -0
- package/esm/icons/move.svg.js +22 -0
- package/esm/icons/mute.svg.js +21 -0
- package/esm/icons/new-edit.svg.js +22 -0
- package/esm/icons/pause.svg.js +21 -0
- package/esm/icons/pencil.svg.js +21 -0
- package/esm/icons/play.svg.js +20 -0
- package/esm/icons/plus-cicle.svg.js +20 -0
- package/esm/icons/plus-fine.svg.js +21 -0
- package/esm/icons/plus.svg.js +21 -0
- package/esm/icons/post.svg.js +48 -0
- package/esm/icons/question-mark.svg.js +26 -0
- package/esm/icons/question.svg.js +21 -0
- package/esm/icons/question2.svg.js +34 -0
- package/esm/icons/redo.svg.js +21 -0
- package/esm/icons/refresh.svg.js +21 -0
- package/esm/icons/reload.svg.js +21 -0
- package/esm/icons/remove.svg.js +21 -0
- package/esm/icons/retry.svg.js +24 -0
- package/esm/icons/right-arrow-bold.svg.js +21 -0
- package/esm/icons/right-arrow.svg.js +23 -0
- package/esm/icons/right-double-arrow.svg.js +22 -0
- package/esm/icons/role.svg.js +43 -0
- package/esm/icons/rotate-left.svg.js +22 -0
- package/esm/icons/rotate-right.svg.js +22 -0
- package/esm/icons/rotate-screen.svg.js +21 -0
- package/esm/icons/scale-origin.svg.js +24 -0
- package/esm/icons/schedule.svg.js +24 -0
- package/esm/icons/search.svg.js +21 -0
- package/esm/icons/setting.svg.js +21 -0
- package/esm/icons/slider-handle-icon.svg.js +22 -0
- package/esm/icons/sort-asc.svg.js +21 -0
- package/esm/icons/sort-default.svg.js +21 -0
- package/esm/icons/sort-desc.svg.js +21 -0
- package/esm/icons/star.svg.js +21 -0
- package/esm/icons/status-close.svg.js +23 -0
- package/esm/icons/steps-finsh.svg.js +22 -0
- package/esm/icons/sub-plus.svg.js +20 -0
- package/esm/icons/success.svg.js +29 -0
- package/esm/icons/transparent.svg.js +38 -0
- package/esm/icons/trash.svg.js +22 -0
- package/esm/icons/tree-down.svg.js +21 -0
- package/esm/icons/undo-normal.svg.js +25 -0
- package/esm/icons/undo.svg.js +21 -0
- package/esm/icons/unfullscreen.svg.js +21 -0
- package/esm/icons/upload.svg.js +21 -0
- package/esm/icons/user-remove.svg.js +33 -0
- package/esm/icons/view.svg.js +22 -0
- package/esm/icons/volume.svg.js +24 -0
- package/esm/icons/warning-mark.svg.js +22 -0
- package/esm/icons/warning.svg.js +21 -0
- package/esm/icons/window-restore.svg.js +21 -0
- package/esm/icons/zoom-in.svg.js +21 -0
- package/esm/icons/zoom-out.svg.js +21 -0
- package/esm/index.d.ts +15 -0
- package/esm/index.js +156 -0
- package/esm/locale/de-DE.d.ts +1 -0
- package/esm/locale/de-DE.js +421 -0
- package/esm/locale/en-US.d.ts +1 -0
- package/esm/locale/en-US.js +427 -0
- package/esm/locale/zh-CN.d.ts +1 -0
- package/esm/locale/zh-CN.js +436 -0
- package/esm/themes/ang.d.ts +3 -0
- package/esm/themes/ang.js +15 -0
- package/esm/themes/antd.d.ts +1 -0
- package/esm/themes/antd.js +42 -0
- package/esm/themes/cxd.d.ts +3 -0
- package/esm/themes/cxd.js +455 -0
- package/esm/themes/dark.d.ts +3 -0
- package/esm/themes/dark.js +23 -0
- package/esm/themes/default.d.ts +4 -0
- package/esm/utils/index.d.ts +2 -0
- package/esm/utils/smoothSignature.d.ts +86 -0
- package/esm/utils/vectorComputed.d.ts +20 -0
- package/esm/utils/vectorComputed.js +75 -0
- package/esm/withRemoteConfig.d.ts +2 -0
- package/esm/withRemoteConfig.js +7 -0
- package/esm/withStore.d.ts +2 -0
- package/esm/withStore.js +7 -0
- package/lib/components/404.d.ts +53 -0
- package/lib/components/404.js +43 -0
- package/lib/components/Alert.d.ts +615 -0
- package/lib/components/Alert.js +279 -0
- package/lib/components/Alert2.d.ts +117 -0
- package/lib/components/Alert2.js +66 -0
- package/lib/components/AlphabetIndexer.d.ts +11 -0
- package/lib/components/AlphabetIndexer.js +59 -0
- package/lib/components/AnchorNav.d.ts +162 -0
- package/lib/components/AnchorNav.js +162 -0
- package/lib/components/AnchorNavSection.d.ts +2 -0
- package/lib/components/AnchorNavSection.js +14 -0
- package/lib/components/ArrayInput.d.ts +617 -0
- package/lib/components/ArrayInput.js +160 -0
- package/lib/components/AsideNav.d.ts +142 -0
- package/lib/components/AsideNav.js +140 -0
- package/lib/components/AssociatedSelection.d.ts +564 -0
- package/lib/components/AssociatedSelection.js +110 -0
- package/lib/components/AutoFoldedList.d.ts +87 -0
- package/lib/components/AutoFoldedList.js +128 -0
- package/lib/components/AutoSizer.d.ts +2 -0
- package/lib/components/AutoSizer.js +15 -0
- package/lib/components/Avatar.d.ts +374 -0
- package/lib/components/Avatar.js +154 -0
- package/lib/components/Badge.d.ts +118 -0
- package/lib/components/Badge.js +165 -0
- package/lib/components/BaiduMapPicker.d.ts +100 -0
- package/lib/components/BaiduMapPicker.js +379 -0
- package/lib/components/BarCode.d.ts +56 -0
- package/lib/components/BarCode.js +52 -0
- package/lib/components/Breadcrumb.d.ts +115 -0
- package/lib/components/Breadcrumb.js +170 -0
- package/lib/components/Button.d.ts +147 -0
- package/lib/components/Button.js +71 -0
- package/lib/components/CalendarMobile.d.ts +431 -0
- package/lib/components/CalendarMobile.js +546 -0
- package/lib/components/Card.d.ts +444 -0
- package/lib/components/Card.js +100 -0
- package/lib/components/Cascader.d.ts +108 -0
- package/lib/components/Cascader.js +527 -0
- package/lib/components/ChainedDropdownSelection.d.ts +561 -0
- package/lib/components/ChainedDropdownSelection.js +116 -0
- package/lib/components/ChainedSelection.d.ts +554 -0
- package/lib/components/ChainedSelection.js +197 -0
- package/lib/components/Checkbox.d.ts +110 -0
- package/lib/components/Checkbox.js +95 -0
- package/lib/components/CityArea.d.ts +299 -0
- package/lib/components/CityArea.js +197 -0
- package/lib/components/CityDB.d.ts +13 -0
- package/lib/components/CityDB.js +3949 -0
- package/lib/components/CodeMirror.d.ts +29 -0
- package/lib/components/CodeMirror.js +152 -0
- package/lib/components/Collapse.d.ts +447 -0
- package/lib/components/Collapse.js +192 -0
- package/lib/components/CollapseGroup.d.ts +219 -0
- package/lib/components/CollapseGroup.js +124 -0
- package/lib/components/ColorPicker.d.ts +530 -0
- package/lib/components/ColorPicker.js +267 -0
- package/lib/components/Combo.d.ts +354 -0
- package/lib/components/Combo.js +165 -0
- package/lib/components/ConditionBuilder.d.ts +2 -0
- package/lib/components/ConditionBuilder.js +14 -0
- package/lib/components/ConfirmBox.d.ts +322 -0
- package/lib/components/ConfirmBox.js +141 -0
- package/lib/components/ContextMenu.d.ts +115 -0
- package/lib/components/ContextMenu.js +327 -0
- package/lib/components/DatePicker.d.ts +638 -0
- package/lib/components/DatePicker.js +725 -0
- package/lib/components/DateRangePicker.d.ts +1046 -0
- package/lib/components/DateRangePicker.js +1398 -0
- package/lib/components/DiffEditor.d.ts +21 -0
- package/lib/components/DiffEditor.js +130 -0
- package/lib/components/DndContainer.d.ts +205 -0
- package/lib/components/DndContainer.js +32 -0
- package/lib/components/Drawer.d.ts +159 -0
- package/lib/components/Drawer.js +282 -0
- package/lib/components/DropDownSelection.d.ts +557 -0
- package/lib/components/DropDownSelection.js +85 -0
- package/lib/components/DropdownContextMenus.d.ts +84 -0
- package/lib/components/DropdownContextMenus.js +101 -0
- package/lib/components/Editor.d.ts +681 -0
- package/lib/components/Editor.js +246 -0
- package/lib/components/Form.d.ts +31 -0
- package/lib/components/Form.js +97 -0
- package/lib/components/FormField.d.ts +287 -0
- package/lib/components/FormField.js +90 -0
- package/lib/components/FormulaPicker.d.ts +2 -0
- package/lib/components/FormulaPicker.js +14 -0
- package/lib/components/GaodeMapPicker.d.ts +89 -0
- package/lib/components/GaodeMapPicker.js +217 -0
- package/lib/components/GridNav.d.ts +53 -0
- package/lib/components/GridNav.js +133 -0
- package/lib/components/GridNavItem.d.ts +2 -0
- package/lib/components/GridNavItem.js +14 -0
- package/lib/components/GroupedSelection.d.ts +543 -0
- package/lib/components/GroupedSelection.js +150 -0
- package/lib/components/HeadCellDropDown.d.ts +2 -0
- package/lib/components/HeadCellDropDown.js +14 -0
- package/lib/components/HorizontalScroll.d.ts +75 -0
- package/lib/components/HorizontalScroll.js +283 -0
- package/lib/components/Html.d.ts +82 -0
- package/lib/components/Html.js +59 -0
- package/lib/components/Icon.d.ts +2 -0
- package/lib/components/Icon.js +14 -0
- package/lib/components/ImageGallery.d.ts +465 -0
- package/lib/components/ImageGallery.js +409 -0
- package/lib/components/Input.d.ts +18 -0
- package/lib/components/Input.js +86 -0
- package/lib/components/InputBox.d.ts +100 -0
- package/lib/components/InputBox.js +110 -0
- package/lib/components/InputBoxWithSuggestion.d.ts +272 -0
- package/lib/components/InputBoxWithSuggestion.js +81 -0
- package/lib/components/InputJSONSchema.d.ts +2 -0
- package/lib/components/InputJSONSchema.js +14 -0
- package/lib/components/InputTable.d.ts +317 -0
- package/lib/components/InputTable.js +189 -0
- package/lib/components/JSONSchemaEditor.d.ts +2 -0
- package/lib/components/JSONSchemaEditor.js +14 -0
- package/lib/components/Layout.d.ts +74 -0
- package/lib/components/Layout.js +56 -0
- package/lib/components/Link.d.ts +60 -0
- package/lib/components/Link.js +56 -0
- package/lib/components/ListGroup.d.ts +77 -0
- package/lib/components/ListGroup.js +43 -0
- package/lib/components/ListMenu.d.ts +568 -0
- package/lib/components/ListMenu.js +74 -0
- package/lib/components/LocationPicker.d.ts +467 -0
- package/lib/components/LocationPicker.js +220 -0
- package/lib/components/Markdown.d.ts +25 -0
- package/lib/components/Markdown.js +83 -0
- package/lib/components/Menu.d.ts +2 -0
- package/lib/components/Menu.js +14 -0
- package/lib/components/MixedInput.d.ts +55 -0
- package/lib/components/MixedInput.js +99 -0
- package/lib/components/MobileDevTool.d.ts +12 -0
- package/lib/components/MobileDevTool.js +325 -0
- package/lib/components/Modal.d.ts +1316 -0
- package/lib/components/Modal.js +272 -0
- package/lib/components/ModalManager.d.ts +17 -0
- package/lib/components/ModalManager.js +53 -0
- package/lib/components/MonthRangePicker.d.ts +744 -0
- package/lib/components/MultilineText.d.ts +454 -0
- package/lib/components/MultilineText.js +102 -0
- package/lib/components/NumberInput.d.ts +201 -0
- package/lib/components/NumberInput.js +289 -0
- package/lib/components/OverflowTpl.d.ts +61 -0
- package/lib/components/OverflowTpl.js +109 -0
- package/lib/components/Pagination.d.ts +812 -0
- package/lib/components/Pagination.js +390 -0
- package/lib/components/PdfViewer.d.ts +49 -0
- package/lib/components/PdfViewer.js +89 -0
- package/lib/components/Picker.d.ts +277 -0
- package/lib/components/Picker.js +80 -0
- package/lib/components/PickerColumn.d.ts +62 -0
- package/lib/components/PickerColumn.js +288 -0
- package/lib/components/PickerContainer.d.ts +291 -0
- package/lib/components/PickerContainer.js +169 -0
- package/lib/components/PopOverContainer.d.ts +59 -0
- package/lib/components/PopOverContainer.js +162 -0
- package/lib/components/PopUp.d.ts +573 -0
- package/lib/components/PopUp.js +94 -0
- package/lib/components/Progress.d.ts +311 -0
- package/lib/components/Progress.js +148 -0
- package/lib/components/PullRefresh.d.ts +79 -0
- package/lib/components/PullRefresh.js +178 -0
- package/lib/components/Radios.d.ts +170 -0
- package/lib/components/Radios.js +126 -0
- package/lib/components/Range.d.ts +131 -0
- package/lib/components/Range.js +528 -0
- package/lib/components/Rating.d.ts +227 -0
- package/lib/components/Rating.js +349 -0
- package/lib/components/ResultBox.d.ts +532 -0
- package/lib/components/ResultBox.js +209 -0
- package/lib/components/ResultList.d.ts +554 -0
- package/lib/components/ResultList.js +268 -0
- package/lib/components/ResultTableList.d.ts +786 -0
- package/lib/components/ResultTableList.js +161 -0
- package/lib/components/ResultTreeList.d.ts +425 -0
- package/lib/components/ResultTreeList.js +256 -0
- package/lib/components/RichText.d.ts +48 -0
- package/lib/components/RichText.js +283 -0
- package/lib/components/SearchBox.d.ts +625 -0
- package/lib/components/SearchBox.js +315 -0
- package/lib/components/Select.d.ts +6497 -0
- package/lib/components/Select.js +832 -0
- package/lib/components/SelectMobile.d.ts +38 -0
- package/lib/components/SelectMobile.js +382 -0
- package/lib/components/Selection.d.ts +598 -0
- package/lib/components/Selection.js +176 -0
- package/lib/components/Shape.d.ts +58 -0
- package/lib/components/Shape.js +434 -0
- package/lib/components/Signature.d.ts +279 -0
- package/lib/components/Signature.js +297 -0
- package/lib/components/Slider.d.ts +56 -0
- package/lib/components/Slider.js +146 -0
- package/lib/components/SparkLine.d.ts +397 -0
- package/lib/components/SparkLine.js +74 -0
- package/lib/components/Spinner.d.ts +266 -0
- package/lib/components/Spinner.js +210 -0
- package/lib/components/Steps.d.ts +117 -0
- package/lib/components/Steps.js +84 -0
- package/lib/components/Switch.d.ts +105 -0
- package/lib/components/Switch.js +80 -0
- package/lib/components/Tab.d.ts +2 -0
- package/lib/components/Tab.js +14 -0
- package/lib/components/Table.d.ts +2 -0
- package/lib/components/Table.js +14 -0
- package/lib/components/TableSelection.d.ts +791 -0
- package/lib/components/TableSelection.js +183 -0
- package/lib/components/Tabs.d.ts +670 -0
- package/lib/components/Tabs.js +618 -0
- package/lib/components/TabsTransfer.d.ts +423 -0
- package/lib/components/TabsTransfer.js +234 -0
- package/lib/components/TabsTransferPicker.d.ts +267 -0
- package/lib/components/TabsTransferPicker.js +93 -0
- package/lib/components/Tag.d.ts +318 -0
- package/lib/components/Tag.js +146 -0
- package/lib/components/Textarea.d.ts +564 -0
- package/lib/components/Textarea.js +160 -0
- package/lib/components/Timeline.d.ts +56 -0
- package/lib/components/Timeline.js +68 -0
- package/lib/components/TimelineItem.d.ts +1292 -0
- package/lib/components/TimelineItem.js +118 -0
- package/lib/components/Tinymce.d.ts +66 -0
- package/lib/components/Tinymce.js +648 -0
- package/lib/components/TitleBar.d.ts +123 -0
- package/lib/components/TitleBar.js +51 -0
- package/lib/components/Toast.d.ts +591 -0
- package/lib/components/Toast.js +258 -0
- package/lib/components/Tooltip.d.ts +65 -0
- package/lib/components/Tooltip.js +43 -0
- package/lib/components/TooltipWrapper.d.ts +217 -0
- package/lib/components/TooltipWrapper.js +188 -0
- package/lib/components/Transfer.d.ts +1844 -0
- package/lib/components/Transfer.js +502 -0
- package/lib/components/TransferDropDown.d.ts +634 -0
- package/lib/components/TransferDropDown.js +106 -0
- package/lib/components/TransferPicker.d.ts +275 -0
- package/lib/components/TransferPicker.js +110 -0
- package/lib/components/TransferSearch.d.ts +283 -0
- package/lib/components/TransferSearch.js +113 -0
- package/lib/components/Tree.d.ts +1953 -0
- package/lib/components/Tree.js +1214 -0
- package/lib/components/TreeSelection.d.ts +601 -0
- package/lib/components/TreeSelection.js +209 -0
- package/lib/components/UserSelect.d.ts +541 -0
- package/lib/components/UserSelect.js +685 -0
- package/lib/components/UserTabSelect.d.ts +315 -0
- package/lib/components/UserTabSelect.js +235 -0
- package/lib/components/VerificationCode.d.ts +116 -0
- package/lib/components/VerificationCode.js +191 -0
- package/lib/components/VirtualList.d.ts +2 -0
- package/lib/components/VirtualList.js +14 -0
- package/lib/components/WithRemoteConfig.d.ts +382 -0
- package/lib/components/WithRemoteConfig.js +316 -0
- package/lib/components/WithStore.d.ts +72 -0
- package/lib/components/WithStore.js +61 -0
- package/lib/components/calendar/Calendar.d.ts +83 -0
- package/lib/components/calendar/Calendar.js +542 -0
- package/lib/components/calendar/CalendarContainer.d.ts +10 -0
- package/lib/components/calendar/CalendarContainer.js +38 -0
- package/lib/components/calendar/DaysView.d.ts +184 -0
- package/lib/components/calendar/DaysView.js +547 -0
- package/lib/components/calendar/MonthsView.d.ts +133 -0
- package/lib/components/calendar/MonthsView.js +188 -0
- package/lib/components/calendar/QuartersView.d.ts +102 -0
- package/lib/components/calendar/QuartersView.js +138 -0
- package/lib/components/calendar/TimeView.d.ts +183 -0
- package/lib/components/calendar/TimeView.js +574 -0
- package/lib/components/calendar/YearsView.d.ts +102 -0
- package/lib/components/calendar/YearsView.js +135 -0
- package/lib/components/condition-builder/Expression.d.ts +292 -0
- package/lib/components/condition-builder/Expression.js +133 -0
- package/lib/components/condition-builder/Field.d.ts +272 -0
- package/lib/components/condition-builder/Field.js +44 -0
- package/lib/components/condition-builder/Formula.d.ts +261 -0
- package/lib/components/condition-builder/Func.d.ts +273 -0
- package/lib/components/condition-builder/Func.js +87 -0
- package/lib/components/condition-builder/Group.d.ts +310 -0
- package/lib/components/condition-builder/Group.js +203 -0
- package/lib/components/condition-builder/GroupOrItem.d.ts +87 -0
- package/lib/components/condition-builder/GroupOrItem.js +117 -0
- package/lib/components/condition-builder/InputSwitch.d.ts +47 -0
- package/lib/components/condition-builder/InputSwitch.js +36 -0
- package/lib/components/condition-builder/Item.d.ts +287 -0
- package/lib/components/condition-builder/Item.js +244 -0
- package/lib/components/condition-builder/Value.d.ts +274 -0
- package/lib/components/condition-builder/Value.js +127 -0
- package/lib/components/condition-builder/config.d.ts +36 -0
- package/lib/components/condition-builder/config.js +125 -0
- package/lib/components/condition-builder/index.d.ts +319 -0
- package/lib/components/condition-builder/index.js +240 -0
- package/lib/components/condition-builder/types.d.ts +116 -0
- package/lib/components/formula/CodeEditor.d.ts +92 -0
- package/lib/components/formula/CodeEditor.js +110 -0
- package/lib/components/formula/Editor.d.ts +516 -0
- package/lib/components/formula/Editor.js +460 -0
- package/lib/components/formula/FuncList.d.ts +46 -0
- package/lib/components/formula/FuncList.js +76 -0
- package/lib/components/formula/Input.d.ts +292 -0
- package/lib/components/formula/Input.js +134 -0
- package/lib/components/formula/Picker.d.ts +492 -0
- package/lib/components/formula/Picker.js +467 -0
- package/lib/components/formula/VariableList.d.ts +58 -0
- package/lib/components/formula/VariableList.js +194 -0
- package/lib/components/formula/plugin.d.ts +51 -0
- package/lib/components/formula/plugin.js +381 -0
- package/lib/components/icons.d.ts +61 -0
- package/lib/components/icons.js +486 -0
- package/lib/components/index.d.ts +138 -0
- package/lib/components/json-schema/Array.d.ts +3 -0
- package/lib/components/json-schema/Array.js +140 -0
- package/lib/components/json-schema/Item.d.ts +5 -0
- package/lib/components/json-schema/Item.js +75 -0
- package/lib/components/json-schema/Object.d.ts +5 -0
- package/lib/components/json-schema/Object.js +278 -0
- package/lib/components/json-schema/index.d.ts +272 -0
- package/lib/components/json-schema/index.js +40 -0
- package/lib/components/menu/MenuContext.d.ts +83 -0
- package/lib/components/menu/MenuContext.js +29 -0
- package/lib/components/menu/MenuItem.d.ts +81 -0
- package/lib/components/menu/MenuItem.js +120 -0
- package/lib/components/menu/PanelMenu.d.ts +46 -0
- package/lib/components/menu/PanelMenu.js +74 -0
- package/lib/components/menu/SubMenu.d.ts +84 -0
- package/lib/components/menu/SubMenu.js +145 -0
- package/lib/components/menu/index.d.ts +381 -0
- package/lib/components/menu/index.js +379 -0
- package/lib/components/schema-editor/Array.d.ts +11 -0
- package/lib/components/schema-editor/Array.js +95 -0
- package/lib/components/schema-editor/Common.d.ts +61 -0
- package/lib/components/schema-editor/Common.js +174 -0
- package/lib/components/schema-editor/Item.d.ts +8 -0
- package/lib/components/schema-editor/Item.js +35 -0
- package/lib/components/schema-editor/Object.d.ts +51 -0
- package/lib/components/schema-editor/Object.js +305 -0
- package/lib/components/schema-editor/SchemaVariableList.d.ts +186 -0
- package/lib/components/schema-editor/SchemaVariableList.js +86 -0
- package/lib/components/schema-editor/SchemaVariableListPicker.d.ts +179 -0
- package/lib/components/schema-editor/SchemaVariableListPicker.js +46 -0
- package/lib/components/schema-editor/index.d.ts +797 -0
- package/lib/components/schema-editor/index.js +131 -0
- package/lib/components/table/Cell.d.ts +36 -0
- package/lib/components/table/Cell.js +50 -0
- package/lib/components/table/ColGroup.d.ts +24 -0
- package/lib/components/table/ColGroup.js +69 -0
- package/lib/components/table/Head.d.ts +45 -0
- package/lib/components/table/Head.js +157 -0
- package/lib/components/table/HeadCellDropDown.d.ts +289 -0
- package/lib/components/table/HeadCellDropDown.js +63 -0
- package/lib/components/table/HeadCellFilter.d.ts +414 -0
- package/lib/components/table/HeadCellFilter.js +140 -0
- package/lib/components/table/HeadCellSelect.d.ts +357 -0
- package/lib/components/table/HeadCellSelect.js +60 -0
- package/lib/components/table/HeadCellSort.d.ts +278 -0
- package/lib/components/table/HeadCellSort.js +96 -0
- package/lib/components/table/ItemActionsWrapper.d.ts +10 -0
- package/lib/components/table/ItemActionsWrapper.js +40 -0
- package/lib/components/table/Row.d.ts +56 -0
- package/lib/components/table/Row.js +231 -0
- package/lib/components/table/SummaryRow.d.ts +28 -0
- package/lib/components/table/SummaryRow.js +81 -0
- package/lib/components/table/index.d.ts +852 -0
- package/lib/components/table/index.js +1083 -0
- package/lib/components/table/util.d.ts +56 -0
- package/lib/components/table/util.js +298 -0
- package/lib/components/virtual-list/AutoSizer.d.ts +19 -0
- package/lib/components/virtual-list/AutoSizer.js +76 -0
- package/lib/components/virtual-list/SizeAndPositionManager.d.ts +70 -0
- package/lib/components/virtual-list/SizeAndPositionManager.js +220 -0
- package/lib/components/virtual-list/constants.d.ts +34 -0
- package/lib/components/virtual-list/constants.js +53 -0
- package/lib/components/virtual-list/index.d.ts +99 -0
- package/lib/components/virtual-list/index.js +317 -0
- package/lib/components/withBadge.d.ts +2 -0
- package/lib/components/withBadge.js +14 -0
- package/lib/helper.css +47744 -0
- package/lib/hooks/index.d.ts +8 -0
- package/lib/hooks/use-click-away.d.ts +12 -0
- package/lib/hooks/use-click-away.js +59 -0
- package/lib/hooks/use-on-screen.d.ts +2 -0
- package/lib/hooks/use-on-screen.js +32 -0
- package/lib/hooks/use-set-state.d.ts +2 -0
- package/lib/hooks/use-set-state.js +27 -0
- package/lib/hooks/use-sub-form.d.ts +4 -0
- package/lib/hooks/use-sub-form.js +48 -0
- package/lib/hooks/use-touch.d.ts +16 -0
- package/lib/hooks/use-touch.js +81 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-update-effect.js +25 -0
- package/lib/hooks/use-validation-resolver.d.ts +7 -0
- package/lib/hooks/use-validation-resolver.js +125 -0
- package/lib/icons/alert-danger.svg.js +29 -0
- package/lib/icons/alert-info.svg.js +29 -0
- package/lib/icons/alert-success.svg.js +29 -0
- package/lib/icons/alert-warning.svg.js +29 -0
- package/lib/icons/arrow-double-left.svg.js +31 -0
- package/lib/icons/arrow-double-right.svg.js +31 -0
- package/lib/icons/back.svg.js +28 -0
- package/lib/icons/calendar.svg.js +38 -0
- package/lib/icons/caret.svg.js +28 -0
- package/lib/icons/check.svg.js +28 -0
- package/lib/icons/clock.svg.js +36 -0
- package/lib/icons/close-small.svg.js +31 -0
- package/lib/icons/close.svg.js +28 -0
- package/lib/icons/cloud-upload.svg.js +29 -0
- package/lib/icons/column-filter.svg.js +29 -0
- package/lib/icons/columns.svg.js +28 -0
- package/lib/icons/compress-alt.svg.js +28 -0
- package/lib/icons/copy.svg.js +33 -0
- package/lib/icons/date.svg.js +33 -0
- package/lib/icons/department.svg.js +59 -0
- package/lib/icons/desk-empty.svg.js +80 -0
- package/lib/icons/dot.svg.js +43 -0
- package/lib/icons/down-arrow-bold.svg.js +29 -0
- package/lib/icons/down.svg.js +30 -0
- package/lib/icons/download.svg.js +31 -0
- package/lib/icons/drag-bar.svg.js +60 -0
- package/lib/icons/drag.svg.js +29 -0
- package/lib/icons/edit.svg.js +28 -0
- package/lib/icons/ellipsis-v.svg.js +28 -0
- package/lib/icons/enter.svg.js +27 -0
- package/lib/icons/exchange.svg.js +28 -0
- package/lib/icons/expand-alt.svg.js +28 -0
- package/lib/icons/fail.svg.js +38 -0
- package/lib/icons/file.svg.js +29 -0
- package/lib/icons/filter.svg.js +28 -0
- package/lib/icons/folder.svg.js +31 -0
- package/lib/icons/fullscreen.svg.js +28 -0
- package/lib/icons/function.svg.js +28 -0
- package/lib/icons/home.svg.js +28 -0
- package/lib/icons/if.svg.js +28 -0
- package/lib/icons/image.svg.js +27 -0
- package/lib/icons/info-circle.svg.js +28 -0
- package/lib/icons/info.svg.js +34 -0
- package/lib/icons/input-clear.svg.js +27 -0
- package/lib/icons/invisible.svg.js +29 -0
- package/lib/icons/left-arrow.svg.js +30 -0
- package/lib/icons/loading-outline.svg.js +28 -0
- package/lib/icons/location.svg.js +27 -0
- package/lib/icons/menu.svg.js +27 -0
- package/lib/icons/minus.svg.js +28 -0
- package/lib/icons/move.svg.js +29 -0
- package/lib/icons/mute.svg.js +28 -0
- package/lib/icons/new-edit.svg.js +29 -0
- package/lib/icons/pause.svg.js +28 -0
- package/lib/icons/pencil.svg.js +28 -0
- package/lib/icons/play.svg.js +27 -0
- package/lib/icons/plus-cicle.svg.js +27 -0
- package/lib/icons/plus-fine.svg.js +28 -0
- package/lib/icons/plus.svg.js +28 -0
- package/lib/icons/post.svg.js +55 -0
- package/lib/icons/question-mark.svg.js +33 -0
- package/lib/icons/question.svg.js +28 -0
- package/lib/icons/question2.svg.js +41 -0
- package/lib/icons/redo.svg.js +28 -0
- package/lib/icons/refresh.svg.js +28 -0
- package/lib/icons/reload.svg.js +28 -0
- package/lib/icons/remove.svg.js +28 -0
- package/lib/icons/retry.svg.js +31 -0
- package/lib/icons/right-arrow-bold.svg.js +28 -0
- package/lib/icons/right-arrow.svg.js +30 -0
- package/lib/icons/right-double-arrow.svg.js +29 -0
- package/lib/icons/role.svg.js +50 -0
- package/lib/icons/rotate-left.svg.js +29 -0
- package/lib/icons/rotate-right.svg.js +29 -0
- package/lib/icons/rotate-screen.svg.js +28 -0
- package/lib/icons/scale-origin.svg.js +31 -0
- package/lib/icons/schedule.svg.js +31 -0
- package/lib/icons/search.svg.js +28 -0
- package/lib/icons/setting.svg.js +28 -0
- package/lib/icons/slider-handle-icon.svg.js +29 -0
- package/lib/icons/sort-asc.svg.js +28 -0
- package/lib/icons/sort-default.svg.js +28 -0
- package/lib/icons/sort-desc.svg.js +28 -0
- package/lib/icons/star.svg.js +28 -0
- package/lib/icons/status-close.svg.js +30 -0
- package/lib/icons/steps-finsh.svg.js +29 -0
- package/lib/icons/sub-plus.svg.js +27 -0
- package/lib/icons/success.svg.js +36 -0
- package/lib/icons/transparent.svg.js +45 -0
- package/lib/icons/trash.svg.js +29 -0
- package/lib/icons/tree-down.svg.js +28 -0
- package/lib/icons/undo-normal.svg.js +32 -0
- package/lib/icons/undo.svg.js +28 -0
- package/lib/icons/unfullscreen.svg.js +28 -0
- package/lib/icons/upload.svg.js +28 -0
- package/lib/icons/user-remove.svg.js +40 -0
- package/lib/icons/view.svg.js +29 -0
- package/lib/icons/volume.svg.js +31 -0
- package/lib/icons/warning-mark.svg.js +29 -0
- package/lib/icons/warning.svg.js +28 -0
- package/lib/icons/window-restore.svg.js +28 -0
- package/lib/icons/zoom-in.svg.js +28 -0
- package/lib/icons/zoom-out.svg.js +28 -0
- package/lib/index.d.ts +15 -0
- package/lib/index.js +348 -0
- package/lib/locale/de-DE.d.ts +1 -0
- package/lib/locale/de-DE.js +423 -0
- package/lib/locale/en-US.d.ts +1 -0
- package/lib/locale/en-US.js +429 -0
- package/lib/locale/zh-CN.d.ts +1 -0
- package/lib/locale/zh-CN.js +438 -0
- package/lib/scss/helper.scss.js +12 -0
- package/lib/scss/themes/ang.scss.js +12 -0
- package/lib/scss/themes/antd.scss.js +12 -0
- package/lib/scss/themes/cxd.scss.js +12 -0
- package/lib/scss/themes/dark.scss.js +12 -0
- package/lib/scss/themes/default.scss.js +12 -0
- package/lib/themes/ang.css +46414 -0
- package/lib/themes/ang.d.ts +3 -0
- package/lib/themes/ang.js +20 -0
- package/lib/themes/antd.css +46401 -0
- package/lib/themes/antd.d.ts +1 -0
- package/lib/themes/antd.js +44 -0
- package/lib/themes/cxd.css +46390 -0
- package/lib/themes/cxd.d.ts +3 -0
- package/lib/themes/cxd.js +459 -0
- package/lib/themes/dark.css +46421 -0
- package/lib/themes/dark.d.ts +3 -0
- package/lib/themes/dark.js +28 -0
- package/lib/themes/default.css +46390 -0
- package/lib/themes/default.d.ts +4 -0
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/smoothSignature.d.ts +86 -0
- package/lib/utils/vectorComputed.d.ts +20 -0
- package/lib/utils/vectorComputed.js +84 -0
- package/lib/withRemoteConfig.d.ts +2 -0
- package/lib/withRemoteConfig.js +14 -0
- package/lib/withStore.d.ts +2 -0
- package/lib/withStore.js +14 -0
- package/package.json +8 -4
- package/scss/_components.scss +4 -7
- package/scss/_mixins.scss +1 -0
- package/scss/_properties.scss +1 -1
- package/scss/components/_auto-folder.scss +40 -0
- package/scss/components/_cascader.scss +22 -2
- package/scss/components/_condition-builder.scss +1 -0
- package/scss/components/_crud.scss +32 -0
- package/scss/components/_modal.scss +13 -0
- package/scss/components/_page.scss +0 -1
- package/scss/components/_pagination.scss +1 -2
- package/scss/components/_result-box.scss +15 -3
- package/scss/components/_table.scss +2 -0
- package/scss/components/form/_combo.scss +13 -0
- package/scss/components/form/_form.scss +14 -1
- package/scss/components/form/_icon-picker.scss +1 -0
- package/scss/components/form/_input-group.scss +23 -2
- package/scss/components/form/_nested-select.scss +10 -0
- package/scss/components/form/_picker.scss +33 -0
- package/scss/components/form/_select.scss +30 -4
- package/scss/components/form/_selection.scss +2 -0
- package/scss/components/form/_tree.scss +8 -9
- package/scss/layout/_layout.scss +1 -0
- package/scss/themes/_common.scss +1 -0
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* amis-ui v6.13.0
|
|
3
|
+
* Copyright 2018-2025 fex
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { __extends, __awaiter, __generator, __assign, __decorate, __metadata } from 'tslib';
|
|
7
|
+
import React__default from 'react';
|
|
8
|
+
import { eachTree, findTree, autobind, themeable, localeable } from 'amis-core';
|
|
9
|
+
import ResultBox from './ResultBox.js';
|
|
10
|
+
import Sortable from 'sortablejs';
|
|
11
|
+
import PopUp from './PopUp.js';
|
|
12
|
+
import InputBox from './InputBox.js';
|
|
13
|
+
import { Icon } from './icons.js';
|
|
14
|
+
import debounce from 'lodash/debounce';
|
|
15
|
+
import Checkbox from './Checkbox.js';
|
|
16
|
+
import { value2array, optionValueCompare } from './Select.js';
|
|
17
|
+
import Spinner from './Spinner.js';
|
|
18
|
+
import flatten from 'lodash/flatten';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* @file 移动端人员、部门、角色、岗位选择
|
|
22
|
+
* @author fex
|
|
23
|
+
*/
|
|
24
|
+
var defaultIcons = [
|
|
25
|
+
'user-default-department',
|
|
26
|
+
'user-default-role',
|
|
27
|
+
'user-default-post'
|
|
28
|
+
];
|
|
29
|
+
var UserSelect = /** @class */ (function (_super) {
|
|
30
|
+
__extends(UserSelect, _super);
|
|
31
|
+
function UserSelect(props) {
|
|
32
|
+
var _this = _super.call(this, props) || this;
|
|
33
|
+
_this.unmounted = false;
|
|
34
|
+
_this.lazySearch = debounce(function (text) {
|
|
35
|
+
(function (text) { return __awaiter(_this, void 0, void 0, function () {
|
|
36
|
+
var onSearch, result;
|
|
37
|
+
var _this = this;
|
|
38
|
+
return __generator(this, function (_a) {
|
|
39
|
+
switch (_a.label) {
|
|
40
|
+
case 0:
|
|
41
|
+
onSearch = this.props.onSearch;
|
|
42
|
+
return [4 /*yield*/, onSearch(text, function (cancelExecutor) { return (_this.cancelSearch = cancelExecutor); })];
|
|
43
|
+
case 1:
|
|
44
|
+
result = _a.sent();
|
|
45
|
+
if (this.unmounted) {
|
|
46
|
+
return [2 /*return*/];
|
|
47
|
+
}
|
|
48
|
+
if (!Array.isArray(result)) {
|
|
49
|
+
throw new Error('onSearch 需要返回数组');
|
|
50
|
+
}
|
|
51
|
+
this.setState({
|
|
52
|
+
searchList: result,
|
|
53
|
+
searchLoading: false
|
|
54
|
+
});
|
|
55
|
+
return [2 /*return*/];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}); })(text).catch(function (e) {
|
|
59
|
+
_this.setState({ searchLoading: false });
|
|
60
|
+
console.error(e);
|
|
61
|
+
});
|
|
62
|
+
}, 250, {
|
|
63
|
+
trailing: true,
|
|
64
|
+
leading: false
|
|
65
|
+
});
|
|
66
|
+
_this.state = {
|
|
67
|
+
isOpened: false,
|
|
68
|
+
isSelectOpened: false,
|
|
69
|
+
inputValue: '',
|
|
70
|
+
options: _this.props.options || [],
|
|
71
|
+
breadList: [],
|
|
72
|
+
searchList: [],
|
|
73
|
+
tempSelection: [],
|
|
74
|
+
selection: props.selection || [],
|
|
75
|
+
isSearch: false,
|
|
76
|
+
searchLoading: false,
|
|
77
|
+
isEdit: false
|
|
78
|
+
};
|
|
79
|
+
return _this;
|
|
80
|
+
}
|
|
81
|
+
UserSelect.prototype.componentDidMount = function () { };
|
|
82
|
+
UserSelect.prototype.componentDidUpdate = function (prevProps) {
|
|
83
|
+
var _a;
|
|
84
|
+
var _b = this.props, options = _b.options, value = _b.value;
|
|
85
|
+
if (prevProps.options !== options) {
|
|
86
|
+
if (options &&
|
|
87
|
+
options.length &&
|
|
88
|
+
options[0].leftOptions &&
|
|
89
|
+
Array.isArray(options[0].children)) {
|
|
90
|
+
var leftOptions = options[0].leftOptions;
|
|
91
|
+
this.setState({
|
|
92
|
+
options: leftOptions
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
// 部门选择
|
|
97
|
+
this.setState({
|
|
98
|
+
options: options
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
if (JSON.stringify(value) !== JSON.stringify(prevProps.value) ||
|
|
103
|
+
(JSON.stringify(options) !== JSON.stringify(prevProps.options) &&
|
|
104
|
+
((_a = prevProps.options) === null || _a === void 0 ? void 0 : _a.length))) {
|
|
105
|
+
var selection = value2array(value, this.props);
|
|
106
|
+
this.setState({
|
|
107
|
+
selection: selection
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
};
|
|
111
|
+
UserSelect.prototype.componentWillUnmount = function () {
|
|
112
|
+
this.unmounted = true;
|
|
113
|
+
};
|
|
114
|
+
UserSelect.prototype.onClose = function () {
|
|
115
|
+
this.setState({
|
|
116
|
+
isOpened: false,
|
|
117
|
+
isSearch: false,
|
|
118
|
+
inputValue: '',
|
|
119
|
+
searchList: [],
|
|
120
|
+
searchLoading: false
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
UserSelect.prototype.handleSearch = function (text) {
|
|
124
|
+
var _this = this;
|
|
125
|
+
if (text) {
|
|
126
|
+
this.setState({
|
|
127
|
+
isSearch: true,
|
|
128
|
+
searchLoading: true,
|
|
129
|
+
inputValue: text
|
|
130
|
+
}, function () {
|
|
131
|
+
// 如果有取消搜索,先取消掉。
|
|
132
|
+
_this.cancelSearch && _this.cancelSearch();
|
|
133
|
+
_this.lazySearch(text);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
this.handleSeachCancel();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
UserSelect.prototype.handleSeachCancel = function () {
|
|
141
|
+
this.setState({
|
|
142
|
+
isSearch: false,
|
|
143
|
+
searchLoading: false,
|
|
144
|
+
inputValue: ''
|
|
145
|
+
});
|
|
146
|
+
};
|
|
147
|
+
UserSelect.prototype.swapSelectPosition = function (oldIndex, newIndex) {
|
|
148
|
+
var tempSelection = this.state.tempSelection;
|
|
149
|
+
tempSelection.splice(newIndex, 0, tempSelection.splice(oldIndex, 1)[0]);
|
|
150
|
+
this.setState({ tempSelection: tempSelection });
|
|
151
|
+
};
|
|
152
|
+
UserSelect.prototype.dragRef = function (ref) {
|
|
153
|
+
if (ref) {
|
|
154
|
+
this.initDragging();
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
UserSelect.prototype.initDragging = function () {
|
|
158
|
+
var _this = this;
|
|
159
|
+
var ns = this.props.classPrefix;
|
|
160
|
+
this.sortable = new Sortable(document.querySelector(".".concat(ns, "UserSelect-checkContent")), {
|
|
161
|
+
group: "UserSelect-checkContent",
|
|
162
|
+
animation: 150,
|
|
163
|
+
handle: ".".concat(ns, "UserSelect-dragBar"),
|
|
164
|
+
ghostClass: "".concat(ns, "UserSelect--dragging"),
|
|
165
|
+
onEnd: function (e) {
|
|
166
|
+
if (!_this.state.isEdit || e.newIndex === e.oldIndex) {
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
var parent = e.to;
|
|
170
|
+
if (e.oldIndex < parent.childNodes.length - 1) {
|
|
171
|
+
parent.insertBefore(e.item, parent.childNodes[e.oldIndex > e.newIndex ? e.oldIndex + 1 : e.oldIndex]);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
parent.appendChild(e.item);
|
|
175
|
+
}
|
|
176
|
+
_this.swapSelectPosition(e.oldIndex, e.newIndex);
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
UserSelect.prototype.destroyDragging = function () {
|
|
181
|
+
this.sortable && this.sortable.destroy();
|
|
182
|
+
};
|
|
183
|
+
UserSelect.prototype.onOpen = function () {
|
|
184
|
+
var selection = this.props.selection;
|
|
185
|
+
this.setState({
|
|
186
|
+
isOpened: true,
|
|
187
|
+
selection: selection || []
|
|
188
|
+
});
|
|
189
|
+
};
|
|
190
|
+
UserSelect.prototype.handleBack = function () {
|
|
191
|
+
this.setState({
|
|
192
|
+
isOpened: false,
|
|
193
|
+
inputValue: '',
|
|
194
|
+
isSearch: false,
|
|
195
|
+
searchList: [],
|
|
196
|
+
selection: [],
|
|
197
|
+
breadList: []
|
|
198
|
+
});
|
|
199
|
+
};
|
|
200
|
+
UserSelect.prototype.handleExpand = function (option) {
|
|
201
|
+
var _a;
|
|
202
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
203
|
+
var _b, deferLoad, isRef, isDep, deferParam, res, res, breadList;
|
|
204
|
+
return __generator(this, function (_c) {
|
|
205
|
+
switch (_c.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
_b = this.props, deferLoad = _b.deferLoad, isRef = _b.isRef, isDep = _b.isDep;
|
|
208
|
+
if (!(!option.isLoaded || (!isRef && isDep && !((_a = option.children) === null || _a === void 0 ? void 0 : _a.length)))) return [3 /*break*/, 4];
|
|
209
|
+
option.isLoaded = true;
|
|
210
|
+
deferParam = option.deferApi ? { deferApi: option.deferApi } : {};
|
|
211
|
+
if (!isRef) return [3 /*break*/, 2];
|
|
212
|
+
return [4 /*yield*/, Promise.all([
|
|
213
|
+
deferLoad(option, false, deferParam)
|
|
214
|
+
// deferLoad({...option, ref: option.value}, true, deferParam)
|
|
215
|
+
])];
|
|
216
|
+
case 1:
|
|
217
|
+
res = _c.sent();
|
|
218
|
+
option.children = flatten(res);
|
|
219
|
+
return [3 /*break*/, 4];
|
|
220
|
+
case 2:
|
|
221
|
+
if (!option.deferApi) return [3 /*break*/, 4];
|
|
222
|
+
return [4 /*yield*/, deferLoad(option, false, deferParam)];
|
|
223
|
+
case 3:
|
|
224
|
+
res = _c.sent();
|
|
225
|
+
option.children = res || [];
|
|
226
|
+
_c.label = 4;
|
|
227
|
+
case 4:
|
|
228
|
+
breadList = this.state.breadList;
|
|
229
|
+
breadList.push(option);
|
|
230
|
+
this.setState({
|
|
231
|
+
breadList: breadList
|
|
232
|
+
});
|
|
233
|
+
return [2 /*return*/];
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
UserSelect.prototype.handleSelectChange = function (option, isReplace) {
|
|
239
|
+
var _a = this.props, multiple = _a.multiple, onChange = _a.onChange, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b, controlled = _a.controlled;
|
|
240
|
+
if (controlled) {
|
|
241
|
+
onChange(option);
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
var selection = this.state.selection.slice();
|
|
245
|
+
// 直接替换的option 肯定是数组
|
|
246
|
+
if (isReplace) {
|
|
247
|
+
selection = option;
|
|
248
|
+
// ResultBox 删除场景
|
|
249
|
+
onChange(selection);
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
var selectionVals = selection.map(function (option) { return option[valueField]; });
|
|
253
|
+
var pos = selectionVals.indexOf(option[valueField]);
|
|
254
|
+
if (pos !== -1) {
|
|
255
|
+
selection.splice(selection.indexOf(option), 1);
|
|
256
|
+
}
|
|
257
|
+
else {
|
|
258
|
+
if (multiple) {
|
|
259
|
+
selection.push(option);
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
selection = [option];
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
// onChange(multiple ? selection : selection?.[0]);
|
|
267
|
+
this.setState({
|
|
268
|
+
selection: selection
|
|
269
|
+
});
|
|
270
|
+
return false;
|
|
271
|
+
};
|
|
272
|
+
UserSelect.prototype.handleSubmit = function () {
|
|
273
|
+
var _a = this.props, onChange = _a.onChange, multiple = _a.multiple;
|
|
274
|
+
var selection = this.state.selection;
|
|
275
|
+
var value = multiple ? selection : selection === null || selection === void 0 ? void 0 : selection[0];
|
|
276
|
+
onChange(value);
|
|
277
|
+
this.handleBack();
|
|
278
|
+
};
|
|
279
|
+
UserSelect.prototype.onDelete = function (option, isTemp) {
|
|
280
|
+
if (isTemp === void 0) { isTemp = false; }
|
|
281
|
+
var _a = this.props, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b, controlled = _a.controlled, onChange = _a.onChange;
|
|
282
|
+
var _c = this.state, tempSelection = _c.tempSelection, selection = _c.selection;
|
|
283
|
+
var _selection = isTemp ? tempSelection : selection;
|
|
284
|
+
_selection = _selection.filter(function (item) { return item[valueField] !== option[valueField]; });
|
|
285
|
+
if (isTemp) {
|
|
286
|
+
this.setState({ tempSelection: _selection });
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
if (controlled) {
|
|
290
|
+
onChange(option, false, true);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
this.setState({ selection: _selection });
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
UserSelect.prototype.handleBreadChange = function (option, index) {
|
|
298
|
+
var breadList = this.state.breadList.slice(0, index);
|
|
299
|
+
this.setState({
|
|
300
|
+
breadList: breadList
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
UserSelect.prototype.handleSort = function () {
|
|
304
|
+
var _a;
|
|
305
|
+
var controlled = this.props.controlled;
|
|
306
|
+
this.setState({
|
|
307
|
+
isSelectOpened: true,
|
|
308
|
+
isEdit: true,
|
|
309
|
+
tempSelection: controlled
|
|
310
|
+
? ((_a = this.props.selection) === null || _a === void 0 ? void 0 : _a.slice()) || []
|
|
311
|
+
: this.state.selection.slice()
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
UserSelect.prototype.handleEdit = function () {
|
|
315
|
+
var _a = this.props, multiple = _a.multiple, onChange = _a.onChange, controlled = _a.controlled;
|
|
316
|
+
var _b = this.state, isEdit = _b.isEdit, tempSelection = _b.tempSelection;
|
|
317
|
+
if (isEdit) {
|
|
318
|
+
if (controlled) {
|
|
319
|
+
onChange(multiple ? tempSelection : tempSelection === null || tempSelection === void 0 ? void 0 : tempSelection[0], true);
|
|
320
|
+
this.setState({
|
|
321
|
+
isSelectOpened: false,
|
|
322
|
+
isEdit: false
|
|
323
|
+
});
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
this.setState({
|
|
328
|
+
isSelectOpened: false,
|
|
329
|
+
isEdit: false,
|
|
330
|
+
selection: tempSelection
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
this.setState({
|
|
336
|
+
isEdit: true
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
UserSelect.prototype.handleClear = function () {
|
|
341
|
+
this.setState({ tempSelection: [] });
|
|
342
|
+
};
|
|
343
|
+
UserSelect.prototype.getResult = function () {
|
|
344
|
+
var _a, _b;
|
|
345
|
+
var _c = this.props, _d = _c.valueField, valueField = _d === void 0 ? 'value' : _d, _e = _c.labelField, labelField = _e === void 0 ? 'label' : _e, _f = _c.options, options = _f === void 0 ? [] : _f;
|
|
346
|
+
var _selection = ((_a = this.props.selection) === null || _a === void 0 ? void 0 : _a.concat()) || [];
|
|
347
|
+
if (Array.isArray((_b = options === null || options === void 0 ? void 0 : options[0]) === null || _b === void 0 ? void 0 : _b.leftOptions)) {
|
|
348
|
+
eachTree(options[0].leftOptions, function (item) {
|
|
349
|
+
var index = _selection.findIndex(function (item2) { return item2[valueField] === item[valueField]; });
|
|
350
|
+
if (!!~index) {
|
|
351
|
+
_selection.splice(index, 1, __assign(__assign({}, _selection[index]), { label: item[labelField] }));
|
|
352
|
+
}
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
eachTree(options, function (item) {
|
|
356
|
+
var index = _selection.findIndex(function (item2) { return item2[valueField] === item[valueField]; });
|
|
357
|
+
if (!!~index) {
|
|
358
|
+
_selection.splice(index, 1, __assign(__assign({}, _selection[index]), { label: item[labelField] }));
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
return _selection;
|
|
362
|
+
};
|
|
363
|
+
UserSelect.prototype.renderIcon = function (option, isSelect) {
|
|
364
|
+
var _a;
|
|
365
|
+
var _b = this.props, _c = _b.labelField, labelField = _c === void 0 ? 'label' : _c, cx = _b.classnames, isRef = _b.isRef;
|
|
366
|
+
var isSearch = this.state.isSearch;
|
|
367
|
+
if (!option.icon) {
|
|
368
|
+
if (option.isRef || ((isSearch || isSelect) && isRef)) {
|
|
369
|
+
return (React__default.createElement("span", { className: cx('UserSelect-text-userPic') }, (_a = option[labelField]) === null || _a === void 0 ? void 0 : _a.slice(0, 1)));
|
|
370
|
+
}
|
|
371
|
+
else {
|
|
372
|
+
// 没有icon默认返回部门图标
|
|
373
|
+
return (React__default.createElement("span", { className: cx('icon', 'UserSelect-icon-box', 'department') },
|
|
374
|
+
React__default.createElement(Icon, { icon: "department", className: "icon" })));
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
// 支持角色、岗位等图标配置
|
|
378
|
+
var IconHtml;
|
|
379
|
+
switch (option.icon) {
|
|
380
|
+
case 'user-default-department':
|
|
381
|
+
IconHtml = (React__default.createElement("span", { className: cx('icon', 'UserSelect-icon-box', 'department') },
|
|
382
|
+
React__default.createElement(Icon, { icon: "department", className: "icon" })));
|
|
383
|
+
break;
|
|
384
|
+
case 'user-default-role':
|
|
385
|
+
IconHtml = (React__default.createElement("span", { className: cx('icon', 'UserSelect-icon-box', 'role') },
|
|
386
|
+
React__default.createElement(Icon, { icon: "role", className: "icon" })));
|
|
387
|
+
break;
|
|
388
|
+
case 'user-default-post':
|
|
389
|
+
IconHtml = (React__default.createElement("span", { className: cx('icon', 'UserSelect-icon-box', 'post') },
|
|
390
|
+
React__default.createElement(Icon, { icon: "post", className: "icon" })));
|
|
391
|
+
break;
|
|
392
|
+
case '':
|
|
393
|
+
IconHtml = (React__default.createElement("span", { className: cx('UserSelect-text-userPic') }, option[labelField].slice(0, 1)));
|
|
394
|
+
break;
|
|
395
|
+
default:
|
|
396
|
+
IconHtml = (React__default.createElement("img", { src: option.icon, className: cx('UserSelect-userPic') }));
|
|
397
|
+
}
|
|
398
|
+
return IconHtml;
|
|
399
|
+
};
|
|
400
|
+
UserSelect.prototype.renderList = function (options, key, isSearch) {
|
|
401
|
+
var _this = this;
|
|
402
|
+
if (options === void 0) { options = []; }
|
|
403
|
+
var _a = this.props, cx = _a.classnames, _b = _a.valueField, valueField = _b === void 0 ? 'value' : _b; _a.labelField; var isDep = _a.isDep, isRef = _a.isRef, __ = _a.translate, controlled = _a.controlled, displayFields = _a.displayFields, isTab = _a.isTab, multiple = _a.multiple, _d = _a.deferField, deferField = _d === void 0 ? 'defer' : _d;
|
|
404
|
+
var selection = controlled
|
|
405
|
+
? this.props.selection || []
|
|
406
|
+
: this.state.selection;
|
|
407
|
+
var checkValues = selection.map(function (item) { return item[valueField]; });
|
|
408
|
+
return options.length ? (React__default.createElement("div", { className: cx('UserSelect-memberList-box'), key: key },
|
|
409
|
+
React__default.createElement("ul", { className: cx("UserSelect-memberList"), key: key }, options.map(function (option, index) {
|
|
410
|
+
var _a, _b;
|
|
411
|
+
var hasChildren = (isRef && !option.isRef) ||
|
|
412
|
+
(isDep && (option[deferField] || ((_a = option.children) === null || _a === void 0 ? void 0 : _a.length)));
|
|
413
|
+
var checkVisible = (isDep && isRef) ||
|
|
414
|
+
(isRef && option.isRef) ||
|
|
415
|
+
(isDep && !isRef) ||
|
|
416
|
+
isSearch;
|
|
417
|
+
var userIcon = _this.renderIcon(option);
|
|
418
|
+
var displays = option.type === 'user' && displayFields
|
|
419
|
+
? displayFields
|
|
420
|
+
: ['label'];
|
|
421
|
+
var avatar = displays.find(function (i) { return i === 'avatar'; });
|
|
422
|
+
var first = ((_b = option.label) === null || _b === void 0 ? void 0 : _b.substring(0, 1).toLocaleUpperCase()) || 'A';
|
|
423
|
+
var restFiedls = displays.filter(function (i) { return i !== 'avatar'; });
|
|
424
|
+
if (option.type === 'post') {
|
|
425
|
+
restFiedls.push('desc');
|
|
426
|
+
}
|
|
427
|
+
return (React__default.createElement("li", { key: index, className: restFiedls.length === 2 ? cx("UserSelect-h2") : '' },
|
|
428
|
+
(isTab || multiple) && checkVisible ? (React__default.createElement(Checkbox, { size: "sm", checked: checkValues.includes(option[valueField]), label: '', onChange: function () { return _this.handleSelectChange(option); } })) : null,
|
|
429
|
+
React__default.createElement("span", { className: cx('UserSelect-memberName'), onClick: function () {
|
|
430
|
+
return checkVisible
|
|
431
|
+
? _this.handleSelectChange(option)
|
|
432
|
+
: hasChildren && _this.handleExpand(option);
|
|
433
|
+
} },
|
|
434
|
+
!avatar &&
|
|
435
|
+
userIcon &&
|
|
436
|
+
(isDep || defaultIcons.includes(option.icon)) ? (React__default.createElement("span", { className: cx('UserSelect-userPic-box') }, userIcon)) : null,
|
|
437
|
+
!option.isRef ? (React__default.createElement("span", { className: cx('UserSelect-label') }, option.label)) : null,
|
|
438
|
+
avatar && option.isRef ? (option.avatar ? (React__default.createElement("img", { className: "option-avatar-img ".concat(restFiedls.length === 2 ? 'avatar-2' : ''), src: option.avatar })) : (React__default.createElement("span", { className: "option-avatar-txt ".concat(restFiedls.length === 2 ? 'avatar-2' : '') }, first))) : null,
|
|
439
|
+
option.isRef ? (React__default.createElement("div", { className: "option-fields" }, restFiedls.map(function (key) { return (React__default.createElement("span", { className: cx('option-item'), key: key }, option[key])); }))) : null),
|
|
440
|
+
!isSearch && hasChildren ? (React__default.createElement("span", { className: cx("UserSelect-more"), onClick: function () { return _this.handleExpand(option); } },
|
|
441
|
+
React__default.createElement(Icon, { icon: "caret", className: "icon" }))) : null));
|
|
442
|
+
})))) : (React__default.createElement("div", { className: cx("UserSelect-noRecord") },
|
|
443
|
+
__('placeholder.noOption'),
|
|
444
|
+
"~"));
|
|
445
|
+
};
|
|
446
|
+
UserSelect.prototype.renderselectList = function (options) {
|
|
447
|
+
var _this = this;
|
|
448
|
+
if (options === void 0) { options = []; }
|
|
449
|
+
var _a = this.props, cx = _a.classnames, _b = _a.labelField, labelField = _b === void 0 ? 'label' : _b, _c = _a.valueField, valueField = _c === void 0 ? 'value' : _c, displayFields = _a.displayFields, isDep = _a.isDep, __ = _a.translate;
|
|
450
|
+
var isEdit = this.state.isEdit;
|
|
451
|
+
return options.length ? (React__default.createElement("div", { className: cx('UserSelect-selection-wrap') },
|
|
452
|
+
React__default.createElement("ul", { className: cx("UserSelect-selection", "UserSelect-checkContent"), ref: this.dragRef }, options.map(function (option, index) {
|
|
453
|
+
var _a;
|
|
454
|
+
var userIcon = _this.renderIcon(option, true);
|
|
455
|
+
var options = _this.state.options;
|
|
456
|
+
var originOption = findTree(options, function (item) { return item[valueField] === option[valueField]; });
|
|
457
|
+
var displays = option.type === 'user' && displayFields
|
|
458
|
+
? displayFields
|
|
459
|
+
: ['label'];
|
|
460
|
+
var avatar = displays.find(function (i) { return i === 'avatar'; });
|
|
461
|
+
var first = ((_a = option.label) === null || _a === void 0 ? void 0 : _a.substring(0, 1).toLocaleUpperCase()) || 'A';
|
|
462
|
+
var restFiedls = displays.filter(function (i) { return i !== 'avatar'; });
|
|
463
|
+
if (option.type === 'post') {
|
|
464
|
+
restFiedls.push('desc');
|
|
465
|
+
}
|
|
466
|
+
return (React__default.createElement("li", { key: index, className: restFiedls.length === 2 ? cx("UserSelect-h2") : '' },
|
|
467
|
+
isEdit ? (React__default.createElement("span", { className: cx("UserSelect-del"), onClick: function () { return _this.onDelete(option, true); } },
|
|
468
|
+
React__default.createElement(Icon, { icon: "user-remove", className: "icon" }))) : null,
|
|
469
|
+
React__default.createElement("span", { className: cx("UserSelect-memberName") },
|
|
470
|
+
!avatar &&
|
|
471
|
+
userIcon &&
|
|
472
|
+
(isDep || defaultIcons.includes(option.icon)) ? (React__default.createElement("span", { className: cx('UserSelect-userPic-box') }, userIcon)) : null,
|
|
473
|
+
!option.isRef ? (labelField === 'avatar' ? (option[labelField] ? (React__default.createElement("img", { className: cx('UserSelect-avatar-img'), src: option[labelField], alt: "" })) : (React__default.createElement("span", { className: cx('UserSelect-avatar-text') }, option[valueField].slice(0, 1).toLocaleUpperCase()))) : (React__default.createElement("span", { className: cx('UserSelect-label') }, originOption
|
|
474
|
+
? originOption[labelField]
|
|
475
|
+
: option[labelField]))) : null,
|
|
476
|
+
avatar && option.isRef ? (option.avatar ? (React__default.createElement("img", { className: "option-avatar-img ".concat(restFiedls.length === 2 ? 'avatar-2' : ''), src: option.avatar })) : (React__default.createElement("span", { className: "option-avatar-txt ".concat(restFiedls.length === 2 ? 'avatar-2' : '') }, first))) : null,
|
|
477
|
+
option.isRef ? (React__default.createElement("div", { className: "option-fields" }, restFiedls.map(function (key) { return (React__default.createElement("span", { className: cx('option-item'), key: key }, option[key])); }))) : null),
|
|
478
|
+
isEdit ? (React__default.createElement("a", { className: cx('UserSelect-dragBar') },
|
|
479
|
+
React__default.createElement(Icon, { icon: "drag-bar", className: cx('icon') }))) : null));
|
|
480
|
+
})))) : (React__default.createElement("div", { className: cx("UserSelect-noRecord") },
|
|
481
|
+
__('placeholder.noOption'),
|
|
482
|
+
"~"));
|
|
483
|
+
};
|
|
484
|
+
UserSelect.prototype.renderContent = function () {
|
|
485
|
+
var _this = this;
|
|
486
|
+
var _a = this.props, navTitle = _a.navTitle, showNav = _a.showNav, searchable = _a.searchable, searchPlaceholder = _a.searchPlaceholder, controlled = _a.controlled, _b = _a.labelField, labelField = _b === void 0 ? 'label' : _b, _c = _a.valueField, valueField = _c === void 0 ? 'value' : _c, cx = _a.classnames, multiple = _a.multiple, __ = _a.translate, loadingConfig = _a.loadingConfig, mobileUI = _a.mobileUI;
|
|
487
|
+
var _d = this.state, breadList = _d.breadList, options = _d.options, isSearch = _d.isSearch, searchList = _d.searchList, searchLoading = _d.searchLoading;
|
|
488
|
+
var selection = controlled ? this.props.selection : this.state.selection;
|
|
489
|
+
return (React__default.createElement("div", { className: cx("UserSelect-wrap") },
|
|
490
|
+
showNav ? (React__default.createElement("div", { className: cx('UserSelect-navbar') },
|
|
491
|
+
React__default.createElement("span", { className: "left-arrow-box", onClick: this.handleBack },
|
|
492
|
+
React__default.createElement(Icon, { icon: "left-arrow", className: "icon" })),
|
|
493
|
+
React__default.createElement("div", { className: cx('UserSelect-navbar-title') }, navTitle))) : null,
|
|
494
|
+
searchable ? (React__default.createElement("div", { className: cx('UserSelect-searchBox') },
|
|
495
|
+
React__default.createElement(InputBox, { className: cx("UserSelect-search"), value: this.state.inputValue, onChange: this.handleSearch, placeholder: searchPlaceholder, clearable: false, mobileUI: mobileUI }, this.state.isSearch ? (React__default.createElement("a", { onClick: this.handleSeachCancel },
|
|
496
|
+
React__default.createElement(Icon, { icon: "close", className: "icon" }))) : (React__default.createElement(Icon, { icon: "search", className: "icon" }))))) : null,
|
|
497
|
+
breadList.length ? (React__default.createElement("div", { className: cx('UserSelect-breadcrumb') }, breadList
|
|
498
|
+
.map(function (item, index) { return (React__default.createElement("span", { className: cx('UserSelect-breadcrumb-item'), key: index, onClick: function () { return _this.handleBreadChange(item, index); } }, item.label)); })
|
|
499
|
+
.reduce(function (prev, curr, index) { return [
|
|
500
|
+
prev,
|
|
501
|
+
React__default.createElement(Icon, { icon: "caret", className: cx('UserSelect-breadcrumb-separator', 'icon'), key: "separator-".concat(index) }),
|
|
502
|
+
curr
|
|
503
|
+
]; }))) : null,
|
|
504
|
+
(selection === null || selection === void 0 ? void 0 : selection.length) ? (React__default.createElement("div", { className: cx("UserSelect-resultBox") },
|
|
505
|
+
React__default.createElement("div", { className: cx("UserSelect-resultBox-shadow") }),
|
|
506
|
+
React__default.createElement("ul", { className: cx("UserSelect-selectList") }, selection.map(function (item, index) {
|
|
507
|
+
var originOption = findTree(options, function (op) { return op[valueField] === item[valueField]; });
|
|
508
|
+
return (React__default.createElement("li", { key: index, className: cx('UserSelect-selectList-item') },
|
|
509
|
+
labelField === 'avatar' ? (item[labelField] ? (React__default.createElement("img", { className: cx('UserSelect-avatar-img'), src: item[labelField], alt: "" })) : (React__default.createElement("span", { className: cx('UserSelect-avatar-text') }, item[valueField].slice(0, 1).toLocaleUpperCase()))) : (React__default.createElement("span", null, originOption
|
|
510
|
+
? originOption[labelField]
|
|
511
|
+
: item[labelField])),
|
|
512
|
+
React__default.createElement("span", { className: cx('UserSelect-selectList-item-closeBox'), onClick: function () { return _this.onDelete(item); } },
|
|
513
|
+
React__default.createElement(Icon, { icon: "close", className: "icon" }))));
|
|
514
|
+
})),
|
|
515
|
+
multiple ? (React__default.createElement("span", { className: cx('UserSelect-selectSort-box'), onClick: this.handleSort },
|
|
516
|
+
React__default.createElement(Icon, { icon: "menu", className: cx('UserSelect-selectSort', 'icon') }))) : null)) : null,
|
|
517
|
+
isSearch ? (searchLoading ? (React__default.createElement("div", { className: cx("UserSelect-searchLoadingBox") },
|
|
518
|
+
React__default.createElement(Spinner, { loadingConfig: loadingConfig }))) : (React__default.createElement("div", { className: cx('UserSelect-searchResult') }, this.renderList(searchList, -1, true)))) : (React__default.createElement("div", { className: cx("UserSelect-contentBox") },
|
|
519
|
+
React__default.createElement("div", { className: cx("UserSelect-scroll"), style: {
|
|
520
|
+
width: 100 * (breadList.length + 1) + 'vw',
|
|
521
|
+
left: -breadList.length * 100 + 'vw'
|
|
522
|
+
} },
|
|
523
|
+
this.renderList(options),
|
|
524
|
+
breadList.map(function (option, index) {
|
|
525
|
+
var treeOption = findTree(options, optionValueCompare(option[valueField], valueField || 'value'));
|
|
526
|
+
var children = treeOption.children;
|
|
527
|
+
var hasChildren = Array.isArray(children) && children;
|
|
528
|
+
return hasChildren ? (_this.renderList(children, option[valueField])) : (React__default.createElement("div", { className: cx("UserSelect-spinnerBox"), key: index },
|
|
529
|
+
React__default.createElement(Spinner, { loadingConfig: loadingConfig })));
|
|
530
|
+
})))),
|
|
531
|
+
!controlled ? (React__default.createElement("div", { className: cx('UserSelect-footer') },
|
|
532
|
+
React__default.createElement("button", { type: "button", className: cx('Button Button--md Button--primary'), onClick: this.handleSubmit }, __('UserSelect.sure')))) : null));
|
|
533
|
+
};
|
|
534
|
+
UserSelect.prototype.render = function () {
|
|
535
|
+
var _this = this;
|
|
536
|
+
var _a = this.props, cx = _a.classnames, __ = _a.translate, _b = _a.placeholder, placeholder = _b === void 0 ? '请选择' : _b, showResultBox = _a.showResultBox, _c = _a.labelField, labelField = _c === void 0 ? 'label' : _c, _d = _a.valueField, valueField = _d === void 0 ? 'value' : _d, disabled = _a.disabled, mobileUI = _a.mobileUI;
|
|
537
|
+
var _e = this.state, isOpened = _e.isOpened, isEdit = _e.isEdit, isSelectOpened = _e.isSelectOpened;
|
|
538
|
+
return (React__default.createElement("div", { className: cx('UserSelect') },
|
|
539
|
+
showResultBox ? (React__default.createElement(ResultBox, { className: cx('UserSelect-input', isOpened ? 'is-active' : ''), allowInput: false, result: this.getResult(), disabled: disabled, itemRender: function (option) {
|
|
540
|
+
if (labelField !== 'avatar') {
|
|
541
|
+
return (React__default.createElement("span", null, "".concat(option.scopeLabel || '').concat(option.label)));
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
if (option[labelField]) {
|
|
545
|
+
return (React__default.createElement("img", { className: cx('UserSelect-avatar-img'), src: option[labelField], alt: "" }));
|
|
546
|
+
}
|
|
547
|
+
return (React__default.createElement("span", { className: cx('UserSelect-avatar-text') }, option[valueField].slice(0, 1).toLocaleUpperCase()));
|
|
548
|
+
}
|
|
549
|
+
}, onResultChange: function (value) { return _this.handleSelectChange(value, true); }, onResultClick: this.onOpen, placeholder: placeholder, mobileUI: mobileUI })) : null,
|
|
550
|
+
showResultBox ? (React__default.createElement(PopUp, { isShow: isOpened, className: cx("UserSelect-popup"), onHide: this.onClose, showClose: false }, this.renderContent())) : (this.renderContent()),
|
|
551
|
+
React__default.createElement(PopUp, { isShow: isSelectOpened, className: cx("UserSelect-selectPopup"), onHide: function () {
|
|
552
|
+
return _this.setState({
|
|
553
|
+
isSelectOpened: false,
|
|
554
|
+
isEdit: false
|
|
555
|
+
});
|
|
556
|
+
}, showClose: false },
|
|
557
|
+
React__default.createElement("div", { className: cx('UserSelect-selectBody') },
|
|
558
|
+
React__default.createElement("div", { className: cx('UserSelect-navbar') },
|
|
559
|
+
React__default.createElement("span", { className: "left-arrow-box", onClick: function () {
|
|
560
|
+
return _this.setState({
|
|
561
|
+
isSelectOpened: false,
|
|
562
|
+
isEdit: false
|
|
563
|
+
});
|
|
564
|
+
} },
|
|
565
|
+
React__default.createElement(Icon, { icon: "left-arrow", className: "icon" })),
|
|
566
|
+
React__default.createElement("div", { className: cx('UserSelect-navbar-title') }, __('UserSelect.resultSort')),
|
|
567
|
+
React__default.createElement("span", { className: cx('UserSelect-navbar-btnEdit'), onClick: this.handleEdit }, isEdit ? __('UserSelect.save') : __('UserSelect.edit'))),
|
|
568
|
+
React__default.createElement("div", { className: cx('UserSelect-selectList-box') },
|
|
569
|
+
React__default.createElement("div", { className: cx('UserSelect-select-head') },
|
|
570
|
+
React__default.createElement("span", { className: cx('UserSelect-select-head-text') }, __('UserSelect.selected')),
|
|
571
|
+
isEdit ? (React__default.createElement("span", { className: cx('UserSelect-select-head-btnClear'), onClick: this.handleClear }, __('UserSelect.clear'))) : null),
|
|
572
|
+
this.renderselectList(this.state.tempSelection))))));
|
|
573
|
+
};
|
|
574
|
+
UserSelect.defaultProps = {
|
|
575
|
+
showResultBox: true,
|
|
576
|
+
labelField: 'label',
|
|
577
|
+
valueField: 'value',
|
|
578
|
+
deferField: 'defer'
|
|
579
|
+
};
|
|
580
|
+
__decorate([
|
|
581
|
+
autobind,
|
|
582
|
+
__metadata("design:type", Function),
|
|
583
|
+
__metadata("design:paramtypes", []),
|
|
584
|
+
__metadata("design:returntype", void 0)
|
|
585
|
+
], UserSelect.prototype, "onClose", null);
|
|
586
|
+
__decorate([
|
|
587
|
+
autobind,
|
|
588
|
+
__metadata("design:type", Function),
|
|
589
|
+
__metadata("design:paramtypes", [String]),
|
|
590
|
+
__metadata("design:returntype", void 0)
|
|
591
|
+
], UserSelect.prototype, "handleSearch", null);
|
|
592
|
+
__decorate([
|
|
593
|
+
autobind,
|
|
594
|
+
__metadata("design:type", Function),
|
|
595
|
+
__metadata("design:paramtypes", []),
|
|
596
|
+
__metadata("design:returntype", void 0)
|
|
597
|
+
], UserSelect.prototype, "handleSeachCancel", null);
|
|
598
|
+
__decorate([
|
|
599
|
+
autobind,
|
|
600
|
+
__metadata("design:type", Function),
|
|
601
|
+
__metadata("design:paramtypes", [Object]),
|
|
602
|
+
__metadata("design:returntype", void 0)
|
|
603
|
+
], UserSelect.prototype, "dragRef", null);
|
|
604
|
+
__decorate([
|
|
605
|
+
autobind,
|
|
606
|
+
__metadata("design:type", Function),
|
|
607
|
+
__metadata("design:paramtypes", []),
|
|
608
|
+
__metadata("design:returntype", void 0)
|
|
609
|
+
], UserSelect.prototype, "onOpen", null);
|
|
610
|
+
__decorate([
|
|
611
|
+
autobind,
|
|
612
|
+
__metadata("design:type", Function),
|
|
613
|
+
__metadata("design:paramtypes", []),
|
|
614
|
+
__metadata("design:returntype", void 0)
|
|
615
|
+
], UserSelect.prototype, "handleBack", null);
|
|
616
|
+
__decorate([
|
|
617
|
+
autobind,
|
|
618
|
+
__metadata("design:type", Function),
|
|
619
|
+
__metadata("design:paramtypes", [Object]),
|
|
620
|
+
__metadata("design:returntype", Promise)
|
|
621
|
+
], UserSelect.prototype, "handleExpand", null);
|
|
622
|
+
__decorate([
|
|
623
|
+
autobind,
|
|
624
|
+
__metadata("design:type", Function),
|
|
625
|
+
__metadata("design:paramtypes", [Object, Boolean]),
|
|
626
|
+
__metadata("design:returntype", void 0)
|
|
627
|
+
], UserSelect.prototype, "handleSelectChange", null);
|
|
628
|
+
__decorate([
|
|
629
|
+
autobind,
|
|
630
|
+
__metadata("design:type", Function),
|
|
631
|
+
__metadata("design:paramtypes", []),
|
|
632
|
+
__metadata("design:returntype", void 0)
|
|
633
|
+
], UserSelect.prototype, "handleSubmit", null);
|
|
634
|
+
__decorate([
|
|
635
|
+
autobind,
|
|
636
|
+
__metadata("design:type", Function),
|
|
637
|
+
__metadata("design:paramtypes", [Object, Boolean]),
|
|
638
|
+
__metadata("design:returntype", void 0)
|
|
639
|
+
], UserSelect.prototype, "onDelete", null);
|
|
640
|
+
__decorate([
|
|
641
|
+
autobind,
|
|
642
|
+
__metadata("design:type", Function),
|
|
643
|
+
__metadata("design:paramtypes", [Object, Number]),
|
|
644
|
+
__metadata("design:returntype", void 0)
|
|
645
|
+
], UserSelect.prototype, "handleBreadChange", null);
|
|
646
|
+
__decorate([
|
|
647
|
+
autobind,
|
|
648
|
+
__metadata("design:type", Function),
|
|
649
|
+
__metadata("design:paramtypes", []),
|
|
650
|
+
__metadata("design:returntype", void 0)
|
|
651
|
+
], UserSelect.prototype, "handleSort", null);
|
|
652
|
+
__decorate([
|
|
653
|
+
autobind,
|
|
654
|
+
__metadata("design:type", Function),
|
|
655
|
+
__metadata("design:paramtypes", []),
|
|
656
|
+
__metadata("design:returntype", void 0)
|
|
657
|
+
], UserSelect.prototype, "handleEdit", null);
|
|
658
|
+
__decorate([
|
|
659
|
+
autobind,
|
|
660
|
+
__metadata("design:type", Function),
|
|
661
|
+
__metadata("design:paramtypes", []),
|
|
662
|
+
__metadata("design:returntype", void 0)
|
|
663
|
+
], UserSelect.prototype, "handleClear", null);
|
|
664
|
+
__decorate([
|
|
665
|
+
autobind,
|
|
666
|
+
__metadata("design:type", Function),
|
|
667
|
+
__metadata("design:paramtypes", []),
|
|
668
|
+
__metadata("design:returntype", void 0)
|
|
669
|
+
], UserSelect.prototype, "getResult", null);
|
|
670
|
+
return UserSelect;
|
|
671
|
+
}(React__default.Component));
|
|
672
|
+
var UserSelect$1 = themeable(localeable(UserSelect));
|
|
673
|
+
|
|
674
|
+
export { UserSelect, UserSelect$1 as default };
|