amis 1.4.2-beta.6 → 1.5.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/lib/Schema.d.ts +11 -3
- package/lib/Schema.js.map +1 -1
- package/lib/components/Alert2.d.ts +26 -21
- package/lib/components/Alert2.js +11 -4
- package/lib/components/Alert2.js.map +2 -2
- package/lib/components/AnchorNav.d.ts +22 -21
- package/lib/components/AnchorNav.js +7 -3
- package/lib/components/AnchorNav.js.map +2 -2
- package/lib/components/ArrayInput.d.ts +84 -84
- package/lib/components/AssociatedSelection.d.ts +930 -0
- package/lib/components/AssociatedSelection.js +89 -0
- package/lib/components/AssociatedSelection.js.map +13 -0
- package/lib/components/Badge.js +2 -2
- package/lib/components/Badge.js.map +2 -2
- package/lib/components/Button.js +1 -1
- package/lib/components/Button.js.map +2 -2
- package/lib/components/{ChainedCheckboxes.d.ts → ChainedSelection.d.ts} +267 -98
- package/lib/components/{ChainedCheckboxes.js → ChainedSelection.js} +30 -24
- package/lib/components/ChainedSelection.js.map +13 -0
- package/lib/components/Checkbox.d.ts +20 -20
- package/lib/components/Collapse.d.ts +51 -23
- package/lib/components/Collapse.js +70 -11
- package/lib/components/Collapse.js.map +2 -2
- package/lib/components/CollapseGroup.d.ts +88 -0
- package/lib/components/CollapseGroup.js +81 -0
- package/lib/components/CollapseGroup.js.map +13 -0
- package/lib/components/ColorPicker.d.ts +89 -85
- package/lib/components/ColorPicker.js +17 -4
- package/lib/components/ColorPicker.js.map +2 -2
- package/lib/components/DatePicker.d.ts +84 -84
- package/lib/components/DateRangePicker.d.ts +84 -84
- package/lib/components/Drawer.js +2 -2
- package/lib/components/Drawer.js.map +2 -2
- package/lib/components/Editor.d.ts +84 -84
- package/lib/components/GridNav.d.ts +52 -0
- package/lib/components/GridNav.js +123 -0
- package/lib/components/GridNav.js.map +13 -0
- package/lib/components/GroupedSelection.d.ts +907 -0
- package/lib/components/GroupedSelection.js +48 -0
- package/lib/components/GroupedSelection.js.map +13 -0
- package/lib/components/InputBox.d.ts +22 -21
- package/lib/components/InputBox.js +10 -2
- package/lib/components/InputBox.js.map +2 -2
- package/lib/components/Link.d.ts +29 -36
- package/lib/components/Link.js +14 -15
- package/lib/components/Link.js.map +2 -2
- package/lib/components/ListGroup.d.ts +21 -21
- package/lib/components/ModalManager.js +1 -1
- package/lib/components/ModalManager.js.map +2 -2
- package/lib/components/MonthRangePicker.d.ts +84 -84
- package/lib/components/NumberInput.d.ts +20 -20
- package/lib/components/Overlay.js +5 -0
- package/lib/components/Overlay.js.map +2 -2
- package/lib/components/PickerColumn.d.ts +514 -0
- package/lib/components/PickerColumn.js +279 -0
- package/lib/components/PickerColumn.js.map +13 -0
- package/lib/components/PickerContainer.d.ts +513 -0
- package/lib/components/PickerContainer.js +96 -0
- package/lib/components/PickerContainer.js.map +13 -0
- package/lib/components/PopOver.d.ts +1 -0
- package/lib/components/PopOver.js +12 -1
- package/lib/components/PopOver.js.map +2 -2
- package/lib/components/Progress.d.ts +85 -0
- package/lib/components/Progress.js +81 -0
- package/lib/components/Progress.js.map +13 -0
- package/lib/components/Radios.d.ts +22 -21
- package/lib/components/Radios.js +1 -0
- package/lib/components/Radios.js.map +2 -2
- package/lib/components/Rating.d.ts +21 -21
- package/lib/components/ResultBox.d.ts +84 -84
- package/lib/components/ResultBox.js +10 -2
- package/lib/components/ResultBox.js.map +2 -2
- package/lib/components/SearchBox.d.ts +84 -84
- package/lib/components/Select.d.ts +245 -237
- package/lib/components/Select.js +25 -4
- package/lib/components/Select.js.map +2 -2
- package/lib/components/{Checkboxes.d.ts → Selection.d.ts} +273 -98
- package/lib/components/Selection.js +134 -0
- package/lib/components/Selection.js.map +13 -0
- package/lib/components/{TableCheckboxes.d.ts → TableSelection.d.ts} +266 -96
- package/lib/components/{TableCheckboxes.js → TableSelection.js} +30 -30
- package/lib/components/TableSelection.js.map +13 -0
- package/lib/components/Tabs.d.ts +20 -20
- package/lib/components/TabsTransfer.d.ts +84 -84
- package/lib/components/TabsTransfer.js +9 -9
- package/lib/components/TabsTransfer.js.map +2 -2
- package/lib/components/TabsTransferPicker.d.ts +489 -0
- package/lib/components/TabsTransferPicker.js +60 -0
- package/lib/components/TabsTransferPicker.js.map +13 -0
- package/lib/components/Toast.d.ts +90 -87
- package/lib/components/Toast.js +15 -5
- package/lib/components/Toast.js.map +2 -2
- package/lib/components/Transfer.d.ts +908 -274
- package/lib/components/Transfer.js +31 -24
- package/lib/components/Transfer.js.map +2 -2
- package/lib/components/TransferDropDown.d.ts +488 -0
- package/lib/components/TransferDropDown.js +59 -0
- package/lib/components/TransferDropDown.js.map +13 -0
- package/lib/components/TransferPicker.d.ts +493 -0
- package/lib/components/TransferPicker.js +60 -0
- package/lib/components/TransferPicker.js.map +13 -0
- package/lib/components/Tree.d.ts +115 -84
- package/lib/components/Tree.js +183 -30
- package/lib/components/Tree.js.map +2 -2
- package/lib/components/{TreeCheckboxes.d.ts → TreeSelection.d.ts} +269 -99
- package/lib/components/{TreeCheckboxes.js → TreeSelection.js} +36 -32
- package/lib/components/TreeSelection.js.map +13 -0
- package/lib/components/condition-builder/Field.js +4 -2
- package/lib/components/condition-builder/Field.js.map +2 -2
- package/lib/components/condition-builder/Func.js +2 -2
- package/lib/components/condition-builder/Func.js.map +2 -2
- package/lib/components/condition-builder/InputSwitch.js +2 -2
- package/lib/components/condition-builder/InputSwitch.js.map +2 -2
- package/lib/components/condition-builder/Item.js +3 -3
- package/lib/components/condition-builder/Item.js.map +2 -2
- package/lib/components/icons.js +10 -0
- package/lib/components/icons.js.map +2 -2
- package/lib/components/index.d.ts +8 -8
- package/lib/components/index.js +16 -16
- package/lib/components/index.js.map +2 -2
- package/lib/envOverwrite.d.ts +1 -1
- package/lib/envOverwrite.js +24 -9
- package/lib/envOverwrite.js.map +2 -2
- package/lib/factory.d.ts +15 -1
- package/lib/factory.js +35 -6
- package/lib/factory.js.map +2 -2
- package/lib/helper.css.map +1 -1
- package/lib/hooks/index.d.ts +5 -0
- package/lib/hooks/index.js +14 -0
- package/lib/hooks/index.js.map +13 -0
- package/lib/hooks/use-set-state.d.ts +2 -0
- package/lib/hooks/use-set-state.js +15 -0
- package/lib/hooks/use-set-state.js.map +13 -0
- package/lib/hooks/use-touch.d.ts +16 -0
- package/lib/hooks/use-touch.js +73 -0
- package/lib/hooks/use-touch.js.map +13 -0
- package/lib/hooks/use-update-effect.d.ts +3 -0
- package/lib/hooks/use-update-effect.js +17 -0
- package/lib/hooks/use-update-effect.js.map +13 -0
- package/lib/icons/alert-danger.js +7 -0
- package/lib/icons/alert-info.js +7 -0
- package/lib/icons/alert-success.js +7 -0
- package/lib/icons/alert-warning.js +7 -0
- package/lib/icons/download.js +7 -0
- package/lib/icons/drag-bar.js +10 -3
- package/lib/index.d.ts +5 -0
- package/lib/index.js +6 -1
- package/lib/index.js.map +2 -2
- package/lib/locale/de-DE.js +2 -0
- package/lib/locale/de-DE.js.map +2 -2
- package/lib/locale/en-US.js +3 -0
- package/lib/locale/en-US.js.map +2 -2
- package/lib/locale/zh-CN.js +5 -2
- package/lib/locale/zh-CN.js.map +2 -2
- package/lib/renderers/Action.d.ts +10 -5
- package/lib/renderers/Action.js +23 -5
- package/lib/renderers/Action.js.map +2 -2
- package/lib/renderers/Alert.d.ts +21 -1
- package/lib/renderers/Alert.js.map +2 -2
- package/lib/renderers/AnchorNav.d.ts +1 -0
- package/lib/renderers/AnchorNav.js +2 -2
- package/lib/renderers/AnchorNav.js.map +2 -2
- package/lib/renderers/Avatar.js +3 -3
- package/lib/renderers/Avatar.js.map +2 -2
- package/lib/renderers/Breadcrumb.js +1 -1
- package/lib/renderers/Breadcrumb.js.map +2 -2
- package/lib/renderers/CRUD.d.ts +5 -0
- package/lib/renderers/CRUD.js +25 -4
- package/lib/renderers/CRUD.js.map +2 -2
- package/lib/renderers/Card.d.ts +5 -0
- package/lib/renderers/Card.js +34 -23
- package/lib/renderers/Card.js.map +2 -2
- package/lib/renderers/Collapse.d.ts +25 -20
- package/lib/renderers/Collapse.js +10 -72
- package/lib/renderers/Collapse.js.map +2 -2
- package/lib/renderers/CollapseGroup.d.ts +42 -0
- package/lib/renderers/CollapseGroup.js +33 -0
- package/lib/renderers/CollapseGroup.js.map +13 -0
- package/lib/renderers/Form/ConditionBuilder.js +2 -2
- package/lib/renderers/Form/ConditionBuilder.js.map +2 -2
- package/lib/renderers/Form/DiffEditor.d.ts +4 -3
- package/lib/renderers/Form/Editor.d.ts +3 -2
- package/lib/renderers/Form/InputCity.d.ts +84 -84
- package/lib/renderers/Form/InputCity.js +7 -6
- package/lib/renderers/Form/InputCity.js.map +2 -2
- package/lib/renderers/Form/InputColor.d.ts +86 -85
- package/lib/renderers/Form/InputColor.js +1 -1
- package/lib/renderers/Form/InputColor.js.map +2 -2
- package/lib/renderers/Form/InputFile.d.ts +6 -0
- package/lib/renderers/Form/InputFile.js +28 -8
- package/lib/renderers/Form/InputFile.js.map +2 -2
- package/lib/renderers/Form/InputImage.js +11 -4
- package/lib/renderers/Form/InputImage.js.map +2 -2
- package/lib/renderers/Form/Item.d.ts +1 -1
- package/lib/renderers/Form/Item.js +2 -1
- package/lib/renderers/Form/Item.js.map +2 -2
- package/lib/renderers/Form/Options.js +25 -4
- package/lib/renderers/Form/Options.js.map +2 -2
- package/lib/renderers/Form/Select.d.ts +42 -4
- package/lib/renderers/Form/Select.js +37 -3
- package/lib/renderers/Form/Select.js.map +2 -2
- package/lib/renderers/Form/TabsTransferPicker.d.ts +48 -0
- package/lib/renderers/Form/TabsTransferPicker.js +29 -0
- package/lib/renderers/Form/TabsTransferPicker.js.map +13 -0
- package/lib/renderers/Form/Transfer.js +18 -3
- package/lib/renderers/Form/Transfer.js.map +2 -2
- package/lib/renderers/Form/TransferPicker.d.ts +52 -0
- package/lib/renderers/Form/TransferPicker.js +43 -0
- package/lib/renderers/Form/TransferPicker.js.map +13 -0
- package/lib/renderers/Form/TreeSelect.js +2 -2
- package/lib/renderers/Form/TreeSelect.js.map +2 -2
- package/lib/renderers/Form/index.d.ts +5 -0
- package/lib/renderers/Form/index.js +5 -3
- package/lib/renderers/Form/index.js.map +2 -2
- package/lib/renderers/Form/wrapControl.js +13 -1
- package/lib/renderers/Form/wrapControl.js.map +2 -2
- package/lib/renderers/GridNav.d.ts +99 -0
- package/lib/renderers/GridNav.js +82 -0
- package/lib/renderers/GridNav.js.map +13 -0
- package/lib/renderers/IFrame.js +1 -3
- package/lib/renderers/IFrame.js.map +2 -2
- package/lib/renderers/Image.js +7 -5
- package/lib/renderers/Image.js.map +2 -2
- package/lib/renderers/Json.d.ts +4 -0
- package/lib/renderers/Json.js +4 -13
- package/lib/renderers/Json.js.map +2 -2
- package/lib/renderers/Link.d.ts +4 -2
- package/lib/renderers/Link.js +15 -8
- package/lib/renderers/Link.js.map +2 -2
- package/lib/renderers/List.js +1 -1
- package/lib/renderers/List.js.map +2 -2
- package/lib/renderers/Nav.d.ts +21 -21
- package/lib/renderers/Nav.js +37 -19
- package/lib/renderers/Nav.js.map +2 -2
- package/lib/renderers/Page.d.ts +18 -0
- package/lib/renderers/Page.js +53 -9
- package/lib/renderers/Page.js.map +2 -2
- package/lib/renderers/Portlet.d.ts +125 -0
- package/lib/renderers/Portlet.js +156 -0
- package/lib/renderers/Portlet.js.map +13 -0
- package/lib/renderers/Progress.d.ts +23 -3
- package/lib/renderers/Progress.js +15 -19
- package/lib/renderers/Progress.js.map +2 -2
- package/lib/renderers/Property.js +1 -1
- package/lib/renderers/Property.js.map +2 -2
- package/lib/renderers/Table/ColumnToggler.js +1 -1
- package/lib/renderers/Table/ColumnToggler.js.map +2 -2
- package/lib/renderers/Table/TableContent.d.ts +4 -1
- package/lib/renderers/Table/TableContent.js +21 -1
- package/lib/renderers/Table/TableContent.js.map +2 -2
- package/lib/renderers/Table/index.d.ts +5 -1
- package/lib/renderers/Table/index.js +65 -30
- package/lib/renderers/Table/index.js.map +2 -2
- package/lib/renderers/Tabs.js +9 -1
- package/lib/renderers/Tabs.js.map +2 -2
- package/lib/renderers/WebComponent.js +1 -1
- package/lib/renderers/WebComponent.js.map +2 -2
- package/lib/store/combo.d.ts +2 -2
- package/lib/store/form.d.ts +1 -1
- package/lib/store/form.js +3 -5
- package/lib/store/form.js.map +2 -2
- package/lib/store/formItem.js +44 -4
- package/lib/store/formItem.js.map +2 -2
- package/lib/store/table.d.ts +3 -2
- package/lib/store/table.js +35 -12
- package/lib/store/table.js.map +2 -2
- package/lib/themes/ang-ie11.css +934 -222
- package/lib/themes/ang.css +934 -222
- package/lib/themes/ang.css.map +1 -1
- package/lib/themes/antd-ie11.css +934 -222
- package/lib/themes/antd.css +934 -222
- package/lib/themes/antd.css.map +1 -1
- package/lib/themes/cxd-ie11.css +970 -260
- package/lib/themes/cxd.css +970 -260
- package/lib/themes/cxd.css.map +1 -1
- package/lib/themes/dark-ie11.css +934 -222
- package/lib/themes/dark.css +934 -222
- package/lib/themes/dark.css.map +1 -1
- package/lib/themes/default.css +970 -260
- package/lib/themes/default.css.map +1 -1
- package/lib/types.d.ts +38 -1
- package/lib/types.js +0 -5
- package/lib/types.js.map +2 -2
- package/lib/utils/api.d.ts +3 -2
- package/lib/utils/api.js +90 -17
- package/lib/utils/api.js.map +2 -2
- package/lib/utils/dom.d.ts +4 -0
- package/lib/utils/dom.js +11 -1
- package/lib/utils/dom.js.map +2 -2
- package/lib/utils/helper.d.ts +12 -23
- package/lib/utils/helper.js +62 -166
- package/lib/utils/helper.js.map +2 -2
- package/lib/utils/tpl-builtin.d.ts +2 -20
- package/lib/utils/tpl-builtin.js +25 -743
- package/lib/utils/tpl-builtin.js.map +2 -2
- package/lib/utils/tpl.js +24 -0
- package/lib/utils/tpl.js.map +2 -2
- package/package.json +5 -2
- package/schema.json +3966 -1263
- package/scss/_mixins.scss +1 -3
- package/scss/_properties.scss +42 -13
- package/scss/base/_common.scss +3 -0
- package/scss/base/_normalize.scss +2 -0
- package/scss/components/_alert.scss +28 -5
- package/scss/components/_anchor-nav.scss +89 -29
- package/scss/components/_button.scss +12 -0
- package/scss/components/_card.scss +9 -15
- package/scss/components/_collapse-group.scss +15 -0
- package/scss/components/_collapse.scss +48 -23
- package/scss/components/_grid-nav.scss +128 -0
- package/scss/components/_images.scss +1 -0
- package/scss/components/_input-box.scss +1 -0
- package/scss/components/_nav.scss +2 -7
- package/scss/components/_page.scss +35 -2
- package/scss/components/_picker-columns.scss +124 -0
- package/scss/components/_popover.scss +13 -0
- package/scss/components/_portlet.scss +51 -0
- package/scss/components/_progress.scss +141 -33
- package/scss/components/_result-box.scss +1 -0
- package/scss/components/_spinner.scss +5 -4
- package/scss/components/_status.scss +1 -1
- package/scss/components/_table.scss +32 -0
- package/scss/components/_toast.scss +41 -11
- package/scss/components/form/_checks.scss +0 -351
- package/scss/components/form/_color.scss +32 -3
- package/scss/components/form/_combo.scss +4 -0
- package/scss/components/form/_fieldset.scss +6 -1
- package/scss/components/form/_file.scss +11 -0
- package/scss/components/form/_form.scss +48 -0
- package/scss/components/form/_selection.scss +354 -0
- package/scss/components/form/_transfer.scss +76 -18
- package/scss/components/form/_tree.scss +42 -0
- package/scss/themes/_common.scss +6 -0
- package/scss/themes/_cxd-variables.scss +13 -6
- package/scss/themes/cxd.scss +19 -20
- package/sdk/ang-ie11.css +1065 -246
- package/sdk/ang.css +1069 -230
- package/sdk/antd-ie11.css +1068 -249
- package/sdk/antd.css +1069 -230
- package/sdk/charts.js +17 -17
- package/sdk/color-picker.js +65 -69
- package/sdk/cropperjs.js +3 -3
- package/sdk/cxd-ie11.css +1081 -268
- package/sdk/cxd.css +1116 -279
- package/sdk/dark-ie11.css +1069 -250
- package/sdk/dark.css +1069 -230
- package/sdk/exceljs.js +1 -1
- package/sdk/helper.css.map +1 -1
- package/sdk/iconfont.svg +2513 -0
- package/sdk/iconfont.ttf +0 -0
- package/sdk/iconfont.woff +0 -0
- package/sdk/locale/de-DE.js +2 -0
- package/sdk/markdown.js +69 -69
- package/sdk/papaparse.js +1 -1
- package/sdk/renderers/Form/CityDB.js +1 -1
- package/sdk/rest.js +20 -28
- package/sdk/rich-text.js +62 -62
- package/sdk/sdk-ie11.css +1081 -268
- package/sdk/sdk.css +1116 -279
- package/sdk/sdk.js +1371 -1189
- package/sdk/thirds/hls.js/hls.js +18 -18
- package/sdk/thirds/mpegts.js/mpegts.js +2 -2
- package/sdk/tinymce.js +57 -57
- package/src/Schema.ts +19 -1
- package/src/components/Alert2.tsx +32 -4
- package/src/components/AnchorNav.tsx +15 -4
- package/src/components/{AssociatedCheckboxes.tsx → AssociatedSelection.tsx} +43 -37
- package/src/components/Badge.tsx +3 -3
- package/src/components/Button.tsx +1 -0
- package/src/components/{ChainedCheckboxes.tsx → ChainedSelection.tsx} +57 -40
- package/src/components/Collapse.tsx +139 -20
- package/src/components/CollapseGroup.tsx +130 -0
- package/src/components/ColorPicker.tsx +32 -10
- package/src/components/Drawer.tsx +8 -6
- package/src/components/GridNav.tsx +233 -0
- package/src/components/{ListCheckboxes.tsx → GroupedSelection.tsx} +26 -21
- package/src/components/InputBox.tsx +10 -9
- package/src/components/Link.tsx +28 -37
- package/src/components/ModalManager.ts +1 -1
- package/src/components/Overlay.tsx +6 -0
- package/src/components/PickerColumn.tsx +429 -0
- package/src/components/PickerContainer.tsx +128 -0
- package/src/components/PopOver.tsx +15 -1
- package/src/components/Progress.tsx +140 -0
- package/src/components/Radios.tsx +3 -8
- package/src/components/ResultBox.tsx +9 -9
- package/src/components/Select.tsx +57 -5
- package/src/components/{Checkboxes.tsx → Selection.tsx} +75 -21
- package/src/components/{TableCheckboxes.tsx → TableSelection.tsx} +46 -25
- package/src/components/TabsTransfer.tsx +13 -7
- package/src/components/TabsTransferPicker.tsx +85 -0
- package/src/components/Toast.tsx +48 -21
- package/src/components/Transfer.tsx +71 -50
- package/src/components/TransferDropDown.tsx +120 -0
- package/src/components/TransferPicker.tsx +91 -0
- package/src/components/Tree.tsx +194 -8
- package/src/components/{TreeCheckboxes.tsx → TreeSelection.tsx} +33 -26
- package/src/components/condition-builder/Field.tsx +7 -5
- package/src/components/condition-builder/Func.tsx +3 -3
- package/src/components/condition-builder/InputSwitch.tsx +3 -3
- package/src/components/condition-builder/Item.tsx +5 -12
- package/src/components/icons.tsx +10 -0
- package/src/components/index.tsx +13 -13
- package/src/envOverwrite.ts +20 -8
- package/src/factory.tsx +70 -9
- package/src/hooks/index.ts +5 -0
- package/src/hooks/use-set-state.ts +19 -0
- package/src/hooks/use-touch.ts +100 -0
- package/src/hooks/use-update-effect.ts +16 -0
- package/src/icons/alert-danger.svg +1 -0
- package/src/icons/alert-info.svg +1 -0
- package/src/icons/alert-success.svg +1 -0
- package/src/icons/alert-warning.svg +1 -0
- package/src/icons/download.svg +4 -0
- package/src/icons/drag-bar.svg +12 -6
- package/src/index.tsx +5 -0
- package/src/locale/de-DE.ts +2 -0
- package/src/locale/en-US.ts +3 -0
- package/src/locale/zh-CN.ts +5 -2
- package/src/renderers/Action.tsx +58 -3
- package/src/renderers/Alert.tsx +31 -1
- package/src/renderers/AnchorNav.tsx +4 -0
- package/src/renderers/Avatar.tsx +8 -4
- package/src/renderers/Breadcrumb.tsx +5 -1
- package/src/renderers/CRUD.tsx +29 -3
- package/src/renderers/Card.tsx +76 -36
- package/src/renderers/Collapse.tsx +70 -115
- package/src/renderers/CollapseGroup.tsx +80 -0
- package/src/renderers/Form/ConditionBuilder.tsx +2 -2
- package/src/renderers/Form/InputCity.tsx +4 -8
- package/src/renderers/Form/InputColor.tsx +4 -2
- package/src/renderers/Form/InputFile.tsx +65 -24
- package/src/renderers/Form/InputImage.tsx +11 -3
- package/src/renderers/Form/Item.tsx +3 -2
- package/src/renderers/Form/Options.tsx +29 -3
- package/src/renderers/Form/Select.tsx +162 -21
- package/src/renderers/Form/TabsTransferPicker.tsx +123 -0
- package/src/renderers/Form/Transfer.tsx +19 -4
- package/src/renderers/Form/TransferPicker.tsx +145 -0
- package/src/renderers/Form/TreeSelect.tsx +25 -0
- package/src/renderers/Form/index.tsx +15 -2
- package/src/renderers/Form/wrapControl.tsx +26 -1
- package/src/renderers/GridNav.tsx +204 -0
- package/src/renderers/IFrame.tsx +2 -4
- package/src/renderers/Image.tsx +19 -15
- package/src/renderers/Json.tsx +9 -9
- package/src/renderers/Link.tsx +29 -16
- package/src/renderers/List.tsx +1 -1
- package/src/renderers/Nav.tsx +105 -56
- package/src/renderers/Page.tsx +62 -1
- package/src/renderers/Portlet.tsx +423 -0
- package/src/renderers/Progress.tsx +56 -38
- package/src/renderers/Property.tsx +6 -4
- package/src/renderers/Table/ColumnToggler.tsx +1 -1
- package/src/renderers/Table/TableContent.tsx +40 -2
- package/src/renderers/Table/index.tsx +88 -43
- package/src/renderers/Tabs.tsx +9 -1
- package/src/renderers/WebComponent.tsx +2 -2
- package/src/store/form.ts +3 -9
- package/src/store/formItem.ts +94 -2
- package/src/store/table.ts +55 -14
- package/src/types.ts +58 -1
- package/src/utils/api.ts +120 -26
- package/src/utils/dom.tsx +12 -0
- package/src/utils/helper.ts +55 -185
- package/src/utils/tpl-builtin.ts +40 -866
- package/src/utils/tpl.ts +33 -0
- package/tsconfig-for-declaration.json +1 -1
- package/dump.rdb +0 -0
- package/lib/components/AssociatedCheckboxes.d.ts +0 -762
- package/lib/components/AssociatedCheckboxes.js +0 -90
- package/lib/components/AssociatedCheckboxes.js.map +0 -13
- package/lib/components/ChainedCheckboxes.js.map +0 -13
- package/lib/components/Checkboxes.js +0 -101
- package/lib/components/Checkboxes.js.map +0 -13
- package/lib/components/ListCheckboxes.d.ts +0 -739
- package/lib/components/ListCheckboxes.js +0 -48
- package/lib/components/ListCheckboxes.js.map +0 -13
- package/lib/components/ListRadios.d.ts +0 -763
- package/lib/components/ListRadios.js +0 -86
- package/lib/components/ListRadios.js.map +0 -13
- package/lib/components/TableCheckboxes.js.map +0 -13
- package/lib/components/TreeCheckboxes.js.map +0 -13
- package/lib/components/TreeRadios.d.ts +0 -838
- package/lib/components/TreeRadios.js +0 -116
- package/lib/components/TreeRadios.js.map +0 -13
- package/src/components/ListRadios.tsx +0 -159
- package/src/components/TreeRadios.tsx +0 -202
@@ -19,6 +19,7 @@ var PopOver = /** @class */ (function (_super) {
|
|
19
19
|
xOffset: 0,
|
20
20
|
yOffset: 0
|
21
21
|
};
|
22
|
+
_this.wrapperRef = react_1.default.createRef();
|
22
23
|
return _this;
|
23
24
|
}
|
24
25
|
PopOver.prototype.componentDidMount = function () {
|
@@ -26,12 +27,22 @@ var PopOver = /** @class */ (function (_super) {
|
|
26
27
|
var dom = (0, react_dom_1.findDOMNode)(this);
|
27
28
|
this.parent = dom.parentNode;
|
28
29
|
this.parent.classList.add('has-popover');
|
30
|
+
if (this.wrapperRef && this.wrapperRef.current) {
|
31
|
+
// https://developer.mozilla.org/zh-CN/docs/Web/API/EventTarget/addEventListener#使用_passive_改善的滚屏性能
|
32
|
+
this.wrapperRef.current.addEventListener('touchmove', helper_1.preventDefault, {
|
33
|
+
passive: false,
|
34
|
+
capture: false
|
35
|
+
});
|
36
|
+
}
|
29
37
|
};
|
30
38
|
PopOver.prototype.componentDidUpdate = function () {
|
31
39
|
this.mayUpdateOffset();
|
32
40
|
};
|
33
41
|
PopOver.prototype.componentWillUnmount = function () {
|
34
42
|
this.parent && this.parent.classList.remove('has-popover');
|
43
|
+
if (this.wrapperRef && this.wrapperRef.current) {
|
44
|
+
this.wrapperRef.current.removeEventListener('touchmove', helper_1.preventDefault);
|
45
|
+
}
|
35
46
|
};
|
36
47
|
PopOver.prototype.mayUpdateOffset = function () {
|
37
48
|
var offset;
|
@@ -56,7 +67,7 @@ var PopOver = /** @class */ (function (_super) {
|
|
56
67
|
var _a = this.props, placement = _a.placement, activePlacement = _a.activePlacement, positionTop = _a.positionTop, positionLeft = _a.positionLeft, arrowOffsetLeft = _a.arrowOffsetLeft, arrowOffsetTop = _a.arrowOffsetTop, style = _a.style, children = _a.children, offset = _a.offset, overlay = _a.overlay, onHide = _a.onHide, ns = _a.classPrefix, cx = _a.classnames, className = _a.className, rest = (0, tslib_1.__rest)(_a, ["placement", "activePlacement", "positionTop", "positionLeft", "arrowOffsetLeft", "arrowOffsetTop", "style", "children", "offset", "overlay", "onHide", "classPrefix", "classnames", "className"]);
|
57
68
|
var _b = this.state, xOffset = _b.xOffset, yOffset = _b.yOffset;
|
58
69
|
var outerStyle = (0, tslib_1.__assign)((0, tslib_1.__assign)({ display: 'block' }, style), { top: positionTop + yOffset, left: positionLeft + xOffset });
|
59
|
-
return (react_1.default.createElement("div", (0, tslib_1.__assign)({ className: cx(ns + "PopOver", className, ns + "PopOver--" + (0, helper_1.camel)(activePlacement)), style: outerStyle }, rest),
|
70
|
+
return (react_1.default.createElement("div", (0, tslib_1.__assign)({ ref: this.wrapperRef, className: cx(ns + "PopOver", className, ns + "PopOver--" + (0, helper_1.camel)(activePlacement)), style: outerStyle }, rest),
|
60
71
|
overlay ? (react_1.default.createElement("div", { className: ns + "PopOver-overlay", onClick: onHide })) : null,
|
61
72
|
children));
|
62
73
|
};
|
@@ -6,8 +6,8 @@
|
|
6
6
|
"/src/components/PopOver.tsx"
|
7
7
|
],
|
8
8
|
"names": [],
|
9
|
-
"mappings": ";AAAA;;;;GAIG;;;;AAEH,6DAA0B;AAC1B,uCAAsC;AACtC,kCAAiD;AACjD,
|
9
|
+
"mappings": "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",
|
10
10
|
"sourcesContent": [
|
11
|
-
"/**\n * @file PopOver\n * @description\n * @author fex\n */\n\nimport React from 'react';\nimport {findDOMNode} from 'react-dom';\nimport {ClassNamesFn, themeable} from '../theme';\nimport {camel} from '../utils/helper';\n\nexport interface Offset {\n x: number;\n y: number;\n}\n\nexport interface PopOverPorps {\n className?: string;\n placement?: string;\n positionTop?: number;\n positionLeft?: number;\n arrowOffsetLeft?: number;\n arrowOffsetTop?: number;\n offset?: ((clip: object, offset: object) => Offset) | Offset;\n style?: object;\n overlay?: boolean;\n onHide?: () => void;\n onClick?: (e: React.MouseEvent<any>) => void;\n classPrefix: string;\n classnames: ClassNamesFn;\n [propName: string]: any;\n}\n\ninterface PopOverState {\n xOffset: number;\n yOffset: number;\n}\n\nexport class PopOver extends React.PureComponent<PopOverPorps, PopOverState> {\n static defaultProps = {\n className: '',\n offset: {\n x: 0,\n y: 0\n },\n overlay: false,\n placement: 'auto'\n };\n\n state = {\n xOffset: 0,\n yOffset: 0\n };\n\n parent: HTMLElement;\n\n componentDidMount() {\n this.mayUpdateOffset();\n const dom = findDOMNode(this) as HTMLElement;\n this.parent = dom.parentNode as HTMLElement;\n this.parent.classList.add('has-popover');\n }\n\n componentDidUpdate() {\n this.mayUpdateOffset();\n }\n\n componentWillUnmount() {\n this.parent && this.parent.classList.remove('has-popover');\n }\n\n mayUpdateOffset() {\n let offset: Offset;\n let getOffset = this.props.offset;\n\n if (getOffset && typeof getOffset === 'function') {\n const {placement, positionTop: y, positionLeft: x} = this.props;\n\n offset = getOffset(\n (findDOMNode(this) as HTMLElement).getBoundingClientRect(),\n {\n x,\n y,\n placement\n }\n );\n } else {\n offset = getOffset as Offset;\n }\n this.setState({\n xOffset: offset && offset.x ? (offset as Offset).x : 0,\n yOffset: offset && offset.y ? (offset as Offset).y : 0\n });\n }\n\n render() {\n const {\n placement,\n activePlacement,\n positionTop,\n positionLeft,\n arrowOffsetLeft,\n arrowOffsetTop,\n style,\n children,\n offset,\n overlay,\n onHide,\n classPrefix: ns,\n classnames: cx,\n className,\n ...rest\n } = this.props;\n\n const {xOffset, yOffset} = this.state;\n const outerStyle = {\n display: 'block',\n ...style,\n top: (positionTop as number) + yOffset,\n left: (positionLeft as number) + xOffset\n };\n\n return (\n <div\n className={cx(\n `${ns}PopOver`,\n className,\n `${ns}PopOver--${camel(activePlacement)}`\n )}\n style={outerStyle}\n {...rest}\n >\n {overlay ? (\n <div className={`${ns}PopOver-overlay`} onClick={onHide} />\n ) : null}\n {children}\n </div>\n );\n }\n}\n\nexport default themeable(PopOver);\n"
|
11
|
+
"/**\n * @file PopOver\n * @description\n * @author fex\n */\n\nimport React from 'react';\nimport {findDOMNode} from 'react-dom';\nimport {ClassNamesFn, themeable} from '../theme';\nimport {camel, preventDefault} from '../utils/helper';\n\nexport interface Offset {\n x: number;\n y: number;\n}\n\nexport interface PopOverPorps {\n className?: string;\n placement?: string;\n positionTop?: number;\n positionLeft?: number;\n arrowOffsetLeft?: number;\n arrowOffsetTop?: number;\n offset?: ((clip: object, offset: object) => Offset) | Offset;\n style?: object;\n overlay?: boolean;\n onHide?: () => void;\n onClick?: (e: React.MouseEvent<any>) => void;\n classPrefix: string;\n classnames: ClassNamesFn;\n [propName: string]: any;\n}\n\ninterface PopOverState {\n xOffset: number;\n yOffset: number;\n}\n\nexport class PopOver extends React.PureComponent<PopOverPorps, PopOverState> {\n static defaultProps = {\n className: '',\n offset: {\n x: 0,\n y: 0\n },\n overlay: false,\n placement: 'auto'\n };\n\n state = {\n xOffset: 0,\n yOffset: 0\n };\n\n parent: HTMLElement;\n wrapperRef: React.RefObject<HTMLDivElement> = React.createRef();\n\n componentDidMount() {\n this.mayUpdateOffset();\n const dom = findDOMNode(this) as HTMLElement;\n this.parent = dom.parentNode as HTMLElement;\n this.parent.classList.add('has-popover');\n\n if (this.wrapperRef && this.wrapperRef.current) {\n // https://developer.mozilla.org/zh-CN/docs/Web/API/EventTarget/addEventListener#使用_passive_改善的滚屏性能\n this.wrapperRef.current.addEventListener('touchmove', preventDefault, {\n passive: false,\n capture: false\n });\n }\n }\n\n componentDidUpdate() {\n this.mayUpdateOffset();\n }\n\n componentWillUnmount() {\n this.parent && this.parent.classList.remove('has-popover');\n\n if (this.wrapperRef && this.wrapperRef.current) {\n this.wrapperRef.current.removeEventListener('touchmove', preventDefault);\n }\n }\n\n mayUpdateOffset() {\n let offset: Offset;\n let getOffset = this.props.offset;\n\n if (getOffset && typeof getOffset === 'function') {\n const {placement, positionTop: y, positionLeft: x} = this.props;\n\n offset = getOffset(\n (findDOMNode(this) as HTMLElement).getBoundingClientRect(),\n {\n x,\n y,\n placement\n }\n );\n } else {\n offset = getOffset as Offset;\n }\n this.setState({\n xOffset: offset && offset.x ? (offset as Offset).x : 0,\n yOffset: offset && offset.y ? (offset as Offset).y : 0\n });\n }\n\n render() {\n const {\n placement,\n activePlacement,\n positionTop,\n positionLeft,\n arrowOffsetLeft,\n arrowOffsetTop,\n style,\n children,\n offset,\n overlay,\n onHide,\n classPrefix: ns,\n classnames: cx,\n className,\n ...rest\n } = this.props;\n\n const {xOffset, yOffset} = this.state;\n const outerStyle = {\n display: 'block',\n ...style,\n top: (positionTop as number) + yOffset,\n left: (positionLeft as number) + xOffset\n };\n\n return (\n <div\n ref={this.wrapperRef}\n className={cx(\n `${ns}PopOver`,\n className,\n `${ns}PopOver--${camel(activePlacement)}`\n )}\n style={outerStyle}\n {...rest}\n >\n {overlay ? (\n <div className={`${ns}PopOver-overlay`} onClick={onHide} />\n ) : null}\n {children}\n </div>\n );\n }\n}\n\nexport default themeable(PopOver);\n"
|
12
12
|
]
|
13
13
|
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/// <reference types="hoist-non-react-statics" />
|
2
|
+
import React from 'react';
|
3
|
+
import { ClassNamesFn, ThemeProps } from '../theme';
|
4
|
+
import { SchemaClassName } from '../Schema';
|
5
|
+
interface ProgressProps extends ThemeProps {
|
6
|
+
type: 'line' | 'circle' | 'dashboard';
|
7
|
+
showLabel: boolean;
|
8
|
+
value: number;
|
9
|
+
stripe?: boolean;
|
10
|
+
animate?: boolean;
|
11
|
+
map?: Array<string>;
|
12
|
+
placeholder?: string;
|
13
|
+
format?: (value?: number) => JSX.Element;
|
14
|
+
gapDegree?: number;
|
15
|
+
gapPosition?: 'top' | 'bottom' | 'left' | 'right';
|
16
|
+
strokeWidth?: number;
|
17
|
+
classNames?: string;
|
18
|
+
progressClassName?: SchemaClassName;
|
19
|
+
progressBarClassName?: SchemaClassName;
|
20
|
+
classnames: ClassNamesFn;
|
21
|
+
}
|
22
|
+
export declare class Progress extends React.Component<ProgressProps, Object> {
|
23
|
+
static defaultProps: Partial<ProgressProps>;
|
24
|
+
autoClassName(value: number): string;
|
25
|
+
getLabel(prefixCls: string): JSX.Element | null;
|
26
|
+
render(): JSX.Element;
|
27
|
+
}
|
28
|
+
declare const _default: {
|
29
|
+
new (props: (Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps) | Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>): {
|
30
|
+
render(): JSX.Element;
|
31
|
+
context: any;
|
32
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
33
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
34
|
+
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps> & Readonly<{
|
35
|
+
children?: React.ReactNode;
|
36
|
+
}>;
|
37
|
+
state: Readonly<{}>;
|
38
|
+
refs: {
|
39
|
+
[key: string]: React.ReactInstance;
|
40
|
+
};
|
41
|
+
componentDidMount?(): void;
|
42
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
43
|
+
componentWillUnmount?(): void;
|
44
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
45
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
46
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
47
|
+
componentWillMount?(): void;
|
48
|
+
UNSAFE_componentWillMount?(): void;
|
49
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
50
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
51
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
52
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
53
|
+
};
|
54
|
+
new (props: Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps, context: any): {
|
55
|
+
render(): JSX.Element;
|
56
|
+
context: any;
|
57
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
58
|
+
forceUpdate(callback?: (() => void) | undefined): void;
|
59
|
+
readonly props: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps> & Readonly<{
|
60
|
+
children?: React.ReactNode;
|
61
|
+
}>;
|
62
|
+
state: Readonly<{}>;
|
63
|
+
refs: {
|
64
|
+
[key: string]: React.ReactInstance;
|
65
|
+
};
|
66
|
+
componentDidMount?(): void;
|
67
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
68
|
+
componentWillUnmount?(): void;
|
69
|
+
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
70
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
71
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
72
|
+
componentWillMount?(): void;
|
73
|
+
UNSAFE_componentWillMount?(): void;
|
74
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
75
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
76
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
77
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<ProgressProps, keyof ThemeProps>, never> & Partial<Pick<Omit<ProgressProps, keyof ThemeProps>, "map" | "animate" | "value" | "type" | "placeholder" | "format" | "progressClassName" | "progressBarClassName" | "showLabel" | "stripe" | "strokeWidth" | "gapDegree" | "gapPosition" | "classNames">> & Partial<Pick<Partial<ProgressProps>, "classPrefix" | "classnames" | "className" | "theme">> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
78
|
+
};
|
79
|
+
displayName: string;
|
80
|
+
contextType: React.Context<string>;
|
81
|
+
ComposedComponent: React.ComponentType<typeof Progress>;
|
82
|
+
} & import("hoist-non-react-statics").NonReactStatics<typeof Progress, {}> & {
|
83
|
+
ComposedComponent: typeof Progress;
|
84
|
+
};
|
85
|
+
export default _default;
|
@@ -0,0 +1,81 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.Progress = void 0;
|
4
|
+
var tslib_1 = require("tslib");
|
5
|
+
var react_1 = (0, tslib_1.__importDefault)(require("react"));
|
6
|
+
var rc_progress_1 = require("rc-progress");
|
7
|
+
var theme_1 = require("../theme");
|
8
|
+
var Progress = /** @class */ (function (_super) {
|
9
|
+
(0, tslib_1.__extends)(Progress, _super);
|
10
|
+
function Progress() {
|
11
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
12
|
+
}
|
13
|
+
Progress.prototype.autoClassName = function (value) {
|
14
|
+
var map = this.props.map;
|
15
|
+
if (!map || !map.length) {
|
16
|
+
return '';
|
17
|
+
}
|
18
|
+
var index = Math.floor((value * map.length) / 100);
|
19
|
+
index = Math.max(0, Math.min(map.length - 1, index));
|
20
|
+
return map[index];
|
21
|
+
};
|
22
|
+
Progress.prototype.getLabel = function (prefixCls) {
|
23
|
+
var _a = this.props, value = _a.value, format = _a.format, showLabel = _a.showLabel, cx = _a.classnames;
|
24
|
+
if (!showLabel) {
|
25
|
+
return null;
|
26
|
+
}
|
27
|
+
var textFormatter = format || (function (value) { return value + "%"; });
|
28
|
+
var content = textFormatter(value);
|
29
|
+
return (react_1.default.createElement("span", { className: cx(prefixCls + "-text"), key: "value" }, content));
|
30
|
+
};
|
31
|
+
Progress.prototype.render = function () {
|
32
|
+
var _a, _b, _c, _d;
|
33
|
+
var _e = this.props, classNames = _e.classNames, progressClassName = _e.progressClassName, progressBarClassName = _e.progressBarClassName, type = _e.type, value = _e.value, placeholder = _e.placeholder, stripe = _e.stripe, animate = _e.animate, showLabel = _e.showLabel, gapDegree = _e.gapDegree, gapPosition = _e.gapPosition, strokeWidth = _e.strokeWidth, cx = _e.classnames;
|
34
|
+
var isLineType = type === 'line';
|
35
|
+
var prefixCls = isLineType ? 'Progress-line' : 'Progress-circle';
|
36
|
+
var viewValue = (react_1.default.createElement("span", { className: "text-muted" }, placeholder));
|
37
|
+
if (type === 'line') {
|
38
|
+
viewValue = [
|
39
|
+
react_1.default.createElement("div", { key: "progress", className: cx(prefixCls, progressClassName, (_a = {},
|
40
|
+
_a[prefixCls + "-no-label"] = !showLabel,
|
41
|
+
_a)) },
|
42
|
+
react_1.default.createElement("div", { className: cx(prefixCls + "-inter") },
|
43
|
+
react_1.default.createElement("div", { className: cx(prefixCls + "-bar", progressBarClassName || this.autoClassName(value), (_b = {}, _b[prefixCls + "-bar--stripe"] = stripe, _b), (_c = {}, _c[prefixCls + "-bar--animate"] = animate && !stripe, _c), (_d = {}, _d[prefixCls + "-bar--stripe-animate"] = animate && stripe, _d)), title: value + "%", style: {
|
44
|
+
width: value + "%"
|
45
|
+
} }))),
|
46
|
+
this.getLabel(prefixCls)
|
47
|
+
];
|
48
|
+
}
|
49
|
+
else if (type === 'circle' || type === 'dashboard') {
|
50
|
+
var circleWidth = strokeWidth || 6;
|
51
|
+
var gapPos = gapPosition || (type === 'dashboard' && 'bottom') || 'top';
|
52
|
+
var getGapDegree = function () {
|
53
|
+
if (gapDegree || gapDegree === 0) {
|
54
|
+
return gapDegree;
|
55
|
+
}
|
56
|
+
if (type === 'dashboard') {
|
57
|
+
return 75;
|
58
|
+
}
|
59
|
+
return undefined;
|
60
|
+
};
|
61
|
+
viewValue = [
|
62
|
+
react_1.default.createElement("div", { className: cx(prefixCls) },
|
63
|
+
react_1.default.createElement(rc_progress_1.Circle, { percent: value, strokeColor: "", strokeWidth: circleWidth, trailWidth: circleWidth, prefixCls: this.autoClassName(value), gapDegree: getGapDegree(), gapPosition: gapPos }),
|
64
|
+
this.getLabel(prefixCls))
|
65
|
+
];
|
66
|
+
}
|
67
|
+
return react_1.default.createElement("div", { className: cx('Progress', classNames) }, viewValue);
|
68
|
+
};
|
69
|
+
Progress.defaultProps = {
|
70
|
+
type: 'line',
|
71
|
+
placeholder: '-',
|
72
|
+
progressClassName: '',
|
73
|
+
progressBarClassName: '',
|
74
|
+
map: ['bg-danger', 'bg-warning', 'bg-info', 'bg-success', 'bg-success'],
|
75
|
+
showLabel: true
|
76
|
+
};
|
77
|
+
return Progress;
|
78
|
+
}(react_1.default.Component));
|
79
|
+
exports.Progress = Progress;
|
80
|
+
exports.default = (0, theme_1.themeable)(Progress);
|
81
|
+
//# sourceMappingURL=./components/Progress.js.map
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"version": 3,
|
3
|
+
"file": "Progress.js",
|
4
|
+
"sourceRoot": "",
|
5
|
+
"sources": [
|
6
|
+
"/src/components/Progress.tsx"
|
7
|
+
],
|
8
|
+
"names": [],
|
9
|
+
"mappings": "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",
|
10
|
+
"sourcesContent": [
|
11
|
+
"import React from 'react';\nimport cx from 'classnames';\nimport {Circle} from 'rc-progress';\nimport {ClassNamesFn, themeable, ThemeProps} from '../theme';\nimport {SchemaClassName} from '../Schema';\ninterface ProgressProps extends ThemeProps {\n type: 'line' | 'circle' | 'dashboard';\n showLabel: boolean;\n value: number;\n stripe?: boolean;\n animate?: boolean;\n map?: Array<string>;\n placeholder?: string;\n format?: (value?: number) => JSX.Element;\n gapDegree?: number;\n gapPosition?: 'top' | 'bottom' | 'left' | 'right';\n strokeWidth?: number;\n classNames?: string;\n progressClassName?: SchemaClassName;\n progressBarClassName?: SchemaClassName;\n classnames: ClassNamesFn;\n}\nexport class Progress extends React.Component<ProgressProps, Object> {\n static defaultProps: Partial<ProgressProps> = {\n type: 'line',\n placeholder: '-',\n progressClassName: '',\n progressBarClassName: '',\n map: ['bg-danger', 'bg-warning', 'bg-info', 'bg-success', 'bg-success'],\n showLabel: true\n };\n\n autoClassName(value: number) {\n const map = this.props.map;\n if (!map || !map.length) {\n return '';\n }\n let index = Math.floor((value * map.length) / 100);\n index = Math.max(0, Math.min(map.length - 1, index));\n return map[index];\n }\n\n getLabel(prefixCls: string) {\n const {value, format, showLabel, classnames: cx} = this.props;\n if (!showLabel) {\n return null;\n }\n const textFormatter = format || (value => `${value}%`);\n const content = textFormatter(value);\n return (\n <span className={cx(`${prefixCls}-text`)} key=\"value\">\n {content}\n </span>\n );\n }\n\n render() {\n const {\n classNames,\n progressClassName,\n progressBarClassName,\n type,\n value,\n placeholder,\n stripe,\n animate,\n showLabel,\n gapDegree,\n gapPosition,\n strokeWidth,\n classnames: cx\n } = this.props;\n\n const isLineType = type === 'line';\n const prefixCls = isLineType ? 'Progress-line' : 'Progress-circle';\n\n let viewValue: React.ReactNode = (\n <span className=\"text-muted\">{placeholder}</span>\n );\n\n if (type === 'line') {\n viewValue = [\n <div\n key=\"progress\"\n className={cx(prefixCls, progressClassName, {\n [`${prefixCls}-no-label`]: !showLabel\n })}\n >\n <div className={cx(`${prefixCls}-inter`)}>\n <div\n className={cx(\n `${prefixCls}-bar`,\n progressBarClassName || this.autoClassName(value),\n {[`${prefixCls}-bar--stripe`]: stripe},\n {[`${prefixCls}-bar--animate`]: animate && !stripe},\n {[`${prefixCls}-bar--stripe-animate`]: animate && stripe}\n )}\n title={`${value}%`}\n style={{\n width: `${value}%`\n }}\n />\n </div>\n </div>,\n this.getLabel(prefixCls)\n ];\n } else if (type === 'circle' || type === 'dashboard') {\n const circleWidth = strokeWidth || 6;\n const gapPos = gapPosition || (type === 'dashboard' && 'bottom') || 'top';\n const getGapDegree = () => {\n if (gapDegree || gapDegree === 0) {\n return gapDegree;\n }\n if (type === 'dashboard') {\n return 75;\n }\n return undefined;\n };\n\n viewValue = [\n <div className={cx(prefixCls)}>\n <Circle\n percent={value}\n strokeColor=\"\"\n strokeWidth={circleWidth}\n trailWidth={circleWidth}\n prefixCls={this.autoClassName(value)}\n gapDegree={getGapDegree()}\n gapPosition={gapPos}\n />\n {this.getLabel(prefixCls)}\n </div>\n ];\n }\n\n return <div className={cx('Progress', classNames)}>{viewValue}</div>;\n }\n}\n\nexport default themeable(Progress);\n"
|
12
|
+
]
|
13
|
+
}
|
@@ -11,6 +11,7 @@
|
|
11
11
|
* disabled: false
|
12
12
|
* }
|
13
13
|
* ]
|
14
|
+
*
|
14
15
|
*/
|
15
16
|
/// <reference types="hoist-non-react-statics" />
|
16
17
|
import React from 'react';
|
@@ -47,14 +48,14 @@ export declare class Radios extends React.Component<RadioProps, any> {
|
|
47
48
|
render(): JSX.Element;
|
48
49
|
}
|
49
50
|
declare const _default: {
|
50
|
-
new (props: (Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
51
|
+
new (props: (Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
51
52
|
type: string;
|
52
53
|
resetValue: string;
|
53
54
|
inline: boolean;
|
54
55
|
joinValues: boolean;
|
55
56
|
clearable: boolean;
|
56
57
|
columnsCount: number;
|
57
|
-
}, never>> & import("../theme").ThemeOutterProps) | Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
58
|
+
}, never>> & import("../theme").ThemeOutterProps) | Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
58
59
|
type: string;
|
59
60
|
resetValue: string;
|
60
61
|
inline: boolean;
|
@@ -64,7 +65,7 @@ declare const _default: {
|
|
64
65
|
}, never>> & import("../theme").ThemeOutterProps>): {
|
65
66
|
render(): JSX.Element;
|
66
67
|
context: any;
|
67
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
68
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
68
69
|
type: string;
|
69
70
|
resetValue: string;
|
70
71
|
inline: boolean;
|
@@ -73,7 +74,7 @@ declare const _default: {
|
|
73
74
|
columnsCount: number;
|
74
75
|
}, never>> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
75
76
|
forceUpdate(callback?: (() => void) | undefined): void;
|
76
|
-
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
77
|
+
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
77
78
|
type: string;
|
78
79
|
resetValue: string;
|
79
80
|
inline: boolean;
|
@@ -88,7 +89,7 @@ declare const _default: {
|
|
88
89
|
[key: string]: React.ReactInstance;
|
89
90
|
};
|
90
91
|
componentDidMount?(): void;
|
91
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
92
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
92
93
|
type: string;
|
93
94
|
resetValue: string;
|
94
95
|
inline: boolean;
|
@@ -98,7 +99,7 @@ declare const _default: {
|
|
98
99
|
}, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
99
100
|
componentWillUnmount?(): void;
|
100
101
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
101
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
102
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
102
103
|
type: string;
|
103
104
|
resetValue: string;
|
104
105
|
inline: boolean;
|
@@ -106,7 +107,7 @@ declare const _default: {
|
|
106
107
|
clearable: boolean;
|
107
108
|
columnsCount: number;
|
108
109
|
}, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
109
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
110
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
110
111
|
type: string;
|
111
112
|
resetValue: string;
|
112
113
|
inline: boolean;
|
@@ -116,7 +117,7 @@ declare const _default: {
|
|
116
117
|
}, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
117
118
|
componentWillMount?(): void;
|
118
119
|
UNSAFE_componentWillMount?(): void;
|
119
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
120
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
120
121
|
type: string;
|
121
122
|
resetValue: string;
|
122
123
|
inline: boolean;
|
@@ -124,7 +125,7 @@ declare const _default: {
|
|
124
125
|
clearable: boolean;
|
125
126
|
columnsCount: number;
|
126
127
|
}, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
127
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
128
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
128
129
|
type: string;
|
129
130
|
resetValue: string;
|
130
131
|
inline: boolean;
|
@@ -132,7 +133,7 @@ declare const _default: {
|
|
132
133
|
clearable: boolean;
|
133
134
|
columnsCount: number;
|
134
135
|
}, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
135
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
136
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
136
137
|
type: string;
|
137
138
|
resetValue: string;
|
138
139
|
inline: boolean;
|
@@ -140,7 +141,7 @@ declare const _default: {
|
|
140
141
|
clearable: boolean;
|
141
142
|
columnsCount: number;
|
142
143
|
}, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
143
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
144
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
144
145
|
type: string;
|
145
146
|
resetValue: string;
|
146
147
|
inline: boolean;
|
@@ -149,7 +150,7 @@ declare const _default: {
|
|
149
150
|
columnsCount: number;
|
150
151
|
}, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
151
152
|
};
|
152
|
-
new (props: Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
153
|
+
new (props: Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
153
154
|
type: string;
|
154
155
|
resetValue: string;
|
155
156
|
inline: boolean;
|
@@ -159,7 +160,7 @@ declare const _default: {
|
|
159
160
|
}, never>> & import("../theme").ThemeOutterProps, context: any): {
|
160
161
|
render(): JSX.Element;
|
161
162
|
context: any;
|
162
|
-
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
163
|
+
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
163
164
|
type: string;
|
164
165
|
resetValue: string;
|
165
166
|
inline: boolean;
|
@@ -168,7 +169,7 @@ declare const _default: {
|
|
168
169
|
columnsCount: number;
|
169
170
|
}, never>> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
170
171
|
forceUpdate(callback?: (() => void) | undefined): void;
|
171
|
-
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
172
|
+
readonly props: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
172
173
|
type: string;
|
173
174
|
resetValue: string;
|
174
175
|
inline: boolean;
|
@@ -183,7 +184,7 @@ declare const _default: {
|
|
183
184
|
[key: string]: React.ReactInstance;
|
184
185
|
};
|
185
186
|
componentDidMount?(): void;
|
186
|
-
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
187
|
+
shouldComponentUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
187
188
|
type: string;
|
188
189
|
resetValue: string;
|
189
190
|
inline: boolean;
|
@@ -193,7 +194,7 @@ declare const _default: {
|
|
193
194
|
}, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
|
194
195
|
componentWillUnmount?(): void;
|
195
196
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
196
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
197
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
197
198
|
type: string;
|
198
199
|
resetValue: string;
|
199
200
|
inline: boolean;
|
@@ -201,7 +202,7 @@ declare const _default: {
|
|
201
202
|
clearable: boolean;
|
202
203
|
columnsCount: number;
|
203
204
|
}, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
|
204
|
-
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
205
|
+
componentDidUpdate?(prevProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
205
206
|
type: string;
|
206
207
|
resetValue: string;
|
207
208
|
inline: boolean;
|
@@ -211,7 +212,7 @@ declare const _default: {
|
|
211
212
|
}, never>> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
|
212
213
|
componentWillMount?(): void;
|
213
214
|
UNSAFE_componentWillMount?(): void;
|
214
|
-
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
215
|
+
componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
215
216
|
type: string;
|
216
217
|
resetValue: string;
|
217
218
|
inline: boolean;
|
@@ -219,7 +220,7 @@ declare const _default: {
|
|
219
220
|
clearable: boolean;
|
220
221
|
columnsCount: number;
|
221
222
|
}, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
222
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
223
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
223
224
|
type: string;
|
224
225
|
resetValue: string;
|
225
226
|
inline: boolean;
|
@@ -227,7 +228,7 @@ declare const _default: {
|
|
227
228
|
clearable: boolean;
|
228
229
|
columnsCount: number;
|
229
230
|
}, never>> & import("../theme").ThemeOutterProps>, nextContext: any): void;
|
230
|
-
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
231
|
+
componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
231
232
|
type: string;
|
232
233
|
resetValue: string;
|
233
234
|
inline: boolean;
|
@@ -235,7 +236,7 @@ declare const _default: {
|
|
235
236
|
clearable: boolean;
|
236
237
|
columnsCount: number;
|
237
238
|
}, never>> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
|
238
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "
|
239
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "style" | "value" | "disabled" | "multiple" | "id" | "loading" | "delimiter" | "valueField" | "labelField" | "extractValue" | "options" | "placeholder" | "onChange" | "labelClassName" | "itemClassName" | "removable" | "creatable" | "editable" | "onAdd" | "onEdit" | "onDelete" | "pathSeparator" | "simpleValue" | "multi"> & Partial<Pick<Omit<RadioProps, keyof import("../theme").ThemeProps>, "type" | "joinValues" | "resetValue" | "inline" | "clearable" | "columnsCount">> & Partial<Pick<{
|
239
240
|
type: string;
|
240
241
|
resetValue: string;
|
241
242
|
inline: boolean;
|