assui 3.2.42 → 3.2.44
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/es/a-select/index.d.ts +5 -5
- package/es/a-select/index.js +59 -88
- package/es/a-select/style/index.css +47 -52
- package/es/a-select/style/index.js +2 -2
- package/es/a-select/style/index.less +1 -2
- package/es/area-text/index.d.ts +2 -2
- package/es/area-text/index.js +5 -9
- package/es/area-text/style/index.js +1 -1
- package/es/beautiful-dnd/index.js +1 -1
- package/es/button-drawer/index.d.ts +8 -10
- package/es/button-drawer/index.js +61 -94
- package/es/button-drawer/style/index.js +1 -1
- package/es/button-modal/index.d.ts +8 -10
- package/es/button-modal/index.js +60 -93
- package/es/button-modal/style/index.js +1 -1
- package/es/client-only/index.d.ts +2 -2
- package/es/client-only/index.js +1 -1
- package/es/client-only/useClientOnly.js +22 -24
- package/es/color-select/index.d.ts +18 -18
- package/es/color-select/index.js +68 -113
- package/es/color-select/style/index.css +47 -52
- package/es/color-select/style/index.js +1 -1
- package/es/complex-val-select/index.d.ts +13 -25
- package/es/complex-val-select/index.js +54 -71
- package/es/complex-val-select/style/index.js +1 -1
- package/es/condition-input/index.d.ts +13 -21
- package/es/condition-input/index.js +51 -67
- package/es/condition-input/parse2RegexOption.d.ts +7 -10
- package/es/condition-input/parse2RegexOption.js +21 -31
- package/es/condition-input/style/index.js +1 -1
- package/es/condition-select/index.d.ts +1 -7
- package/es/condition-select/index.js +85 -141
- package/es/condition-select/style/index.js +3 -3
- package/es/condition-select/types.d.ts +14 -16
- package/es/condition-select/types.js +1 -1
- package/es/condition-select/utils/index.d.ts +2 -5
- package/es/condition-select/utils/index.js +2 -2
- package/es/condition-select-input/index.d.ts +29 -29
- package/es/condition-select-input/index.js +106 -196
- package/es/condition-select-input/style/index.d.ts +1 -1
- package/es/condition-select-input/style/index.js +3 -3
- package/es/config-provider/context.d.ts +1 -1
- package/es/config-provider/context.js +2 -2
- package/es/config-provider/index.d.ts +3 -27
- package/es/config-provider/index.js +5 -9
- package/es/copy-to-clipboard/index.d.ts +18 -20
- package/es/copy-to-clipboard/index.js +44 -63
- package/es/copy-to-clipboard/style/index.css +14 -23
- package/es/copy-to-clipboard/style/index.js +1 -1
- package/es/count-down/index.d.ts +3 -3
- package/es/count-down/index.js +26 -44
- package/es/count-up/index.d.ts +2 -2
- package/es/count-up/index.js +1 -1
- package/es/flex/index.d.ts +18 -21
- package/es/flex/index.js +32 -64
- package/es/flex/style/index.css +47 -52
- package/es/flex/style/index.js +1 -1
- package/es/flex/utils/gapSize.js +1 -1
- package/es/flex/utils/index.d.ts +3 -27
- package/es/flex/utils/index.js +19 -53
- package/es/highlight-textarea/HighlighedContents.d.ts +3 -6
- package/es/highlight-textarea/HighlighedContents.js +5 -9
- package/es/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
- package/es/highlight-textarea/extractSpansOfClasses.js +45 -62
- package/es/highlight-textarea/getRanges.js +34 -41
- package/es/highlight-textarea/getType.js +2 -6
- package/es/highlight-textarea/index.d.ts +7 -14
- package/es/highlight-textarea/index.js +70 -114
- package/es/highlight-textarea/style/index.css +55 -125
- package/es/highlight-textarea/style/index.js +1 -1
- package/es/highlight-textarea/types.d.ts +7 -26
- package/es/highlight-textarea/types.js +1 -1
- package/es/highlight-words/index.d.ts +2 -6
- package/es/highlight-words/index.js +1 -1
- package/es/img-crop/EasyCrop.d.ts +2 -6
- package/es/img-crop/EasyCrop.js +79 -104
- package/es/img-crop/getCroppedImg.d.ts +3 -8
- package/es/img-crop/getCroppedImg.js +118 -155
- package/es/img-crop/index.d.ts +29 -29
- package/es/img-crop/index.js +340 -490
- package/es/img-crop/style/index.css +47 -52
- package/es/img-crop/style/index.d.ts +1 -1
- package/es/img-crop/style/index.js +3 -3
- package/es/index.d.ts +56 -62
- package/es/index.js +29 -29
- package/es/json-editor/index.d.ts +5 -7
- package/es/json-editor/index.js +62 -91
- package/es/json-editor/style/index.js +1 -1
- package/es/keep-tab/index.d.ts +17 -17
- package/es/keep-tab/index.js +78 -125
- package/es/keep-tab/style/index.css +32 -72
- package/es/keep-tab/style/index.js +1 -1
- package/es/label-auto-complete/index.d.ts +3 -3
- package/es/label-auto-complete/index.js +58 -82
- package/es/label-auto-complete/style/index.css +50 -61
- package/es/label-auto-complete/style/index.js +2 -2
- package/es/label-condition-input/index.d.ts +11 -12
- package/es/label-condition-input/index.js +62 -100
- package/es/label-condition-input/style/index.css +47 -52
- package/es/label-condition-input/style/index.js +1 -1
- package/es/label-condition-select-input/index.d.ts +33 -35
- package/es/label-condition-select-input/index.js +109 -198
- package/es/label-condition-select-input/style/index.css +47 -52
- package/es/label-condition-select-input/style/index.d.ts +1 -1
- package/es/label-condition-select-input/style/index.js +2 -2
- package/es/label-customize-range-picker/defaultRadioList.d.ts +28 -34
- package/es/label-customize-range-picker/defaultRadioList.js +114 -206
- package/es/label-customize-range-picker/index.d.ts +24 -27
- package/es/label-customize-range-picker/index.js +141 -300
- package/es/label-customize-range-picker/style/index.css +47 -52
- package/es/label-customize-range-picker/style/index.d.ts +2 -2
- package/es/label-customize-range-picker/style/index.js +4 -4
- package/es/label-customize-range-picker/utils/index.d.ts +3 -9
- package/es/label-customize-range-picker/utils/index.js +29 -57
- package/es/label-date-picker/index.d.ts +2 -2
- package/es/label-date-picker/index.js +57 -81
- package/es/label-date-picker/style/index.css +47 -52
- package/es/label-date-picker/style/index.js +2 -2
- package/es/label-input/index.d.ts +25 -29
- package/es/label-input/index.js +80 -122
- package/es/label-input/style/index.css +47 -52
- package/es/label-input/style/index.js +1 -1
- package/es/label-number-input/index.d.ts +6 -6
- package/es/label-number-input/index.js +63 -101
- package/es/label-number-input/style/index.css +48 -54
- package/es/label-number-input/style/index.js +1 -1
- package/es/label-range-number/index.d.ts +17 -17
- package/es/label-range-number/index.js +95 -156
- package/es/label-range-number/style/index.css +47 -52
- package/es/label-range-number/style/index.js +1 -1
- package/es/label-range-picker/index.d.ts +3 -3
- package/es/label-range-picker/index.js +71 -103
- package/es/label-range-picker/style/index.css +47 -52
- package/es/label-range-picker/style/index.js +2 -2
- package/es/label-select/index.d.ts +5 -7
- package/es/label-select/index.js +69 -100
- package/es/label-select/style/index.css +51 -65
- package/es/label-select/style/index.js +2 -2
- package/es/label-text-area/index.d.ts +17 -21
- package/es/label-text-area/index.js +64 -97
- package/es/label-text-area/style/index.css +47 -52
- package/es/label-text-area/style/index.js +1 -1
- package/es/label-tree-select/index.d.ts +7 -8
- package/es/label-tree-select/index.js +61 -98
- package/es/label-tree-select/style/index.css +48 -55
- package/es/label-tree-select/style/index.js +2 -2
- package/es/messages/ar_EG.d.ts +24 -24
- package/es/messages/ar_EG.js +5 -5
- package/es/messages/bg_BG.d.ts +24 -24
- package/es/messages/bg_BG.js +5 -5
- package/es/messages/cs_CZ.d.ts +24 -24
- package/es/messages/cs_CZ.js +5 -5
- package/es/messages/de_DE.d.ts +24 -24
- package/es/messages/de_DE.js +5 -5
- package/es/messages/en_US.d.ts +24 -24
- package/es/messages/en_US.js +5 -5
- package/es/messages/es_ES.d.ts +24 -24
- package/es/messages/es_ES.js +5 -5
- package/es/messages/fi_FI.d.ts +24 -24
- package/es/messages/fi_FI.js +5 -5
- package/es/messages/fr_FR.d.ts +24 -24
- package/es/messages/fr_FR.js +5 -5
- package/es/messages/id_ID.d.ts +24 -24
- package/es/messages/id_ID.js +5 -5
- package/es/messages/index.d.ts +23 -27
- package/es/messages/index.js +3 -3
- package/es/messages/it_IT.d.ts +24 -24
- package/es/messages/it_IT.js +5 -5
- package/es/messages/ja_JP.d.ts +24 -24
- package/es/messages/ja_JP.js +5 -5
- package/es/messages/ko_KR.d.ts +24 -24
- package/es/messages/ko_KR.js +5 -5
- package/es/messages/ms_MY.d.ts +24 -24
- package/es/messages/ms_MY.js +5 -5
- package/es/messages/nb_NO.d.ts +24 -24
- package/es/messages/nb_NO.js +5 -5
- package/es/messages/nl_NL.d.ts +24 -24
- package/es/messages/nl_NL.js +5 -5
- package/es/messages/pt_PT.d.ts +24 -24
- package/es/messages/pt_PT.js +5 -5
- package/es/messages/ro_RO.d.ts +24 -24
- package/es/messages/ro_RO.js +5 -5
- package/es/messages/ru_RU.d.ts +24 -24
- package/es/messages/ru_RU.js +5 -5
- package/es/messages/sv_SE.d.ts +24 -24
- package/es/messages/sv_SE.js +5 -5
- package/es/messages/th_TH.d.ts +24 -24
- package/es/messages/th_TH.js +5 -5
- package/es/messages/ug_UG.d.ts +24 -24
- package/es/messages/ug_UG.js +5 -5
- package/es/messages/vi_VN.d.ts +24 -24
- package/es/messages/vi_VN.js +5 -5
- package/es/messages/zh_CN.d.ts +24 -24
- package/es/messages/zh_CN.js +5 -5
- package/es/messages/zh_TW.d.ts +24 -24
- package/es/messages/zh_TW.js +5 -5
- package/es/multipart-upload/getMultipartUploadHandler.d.ts +1 -3
- package/es/multipart-upload/getMultipartUploadHandler.js +6 -8
- package/es/multipart-upload/index.d.ts +33 -39
- package/es/multipart-upload/index.js +121 -217
- package/es/multipart-upload/parse2RegexOption.d.ts +7 -10
- package/es/multipart-upload/parse2RegexOption.js +21 -31
- package/es/multipart-upload/style/index.css +47 -52
- package/es/multipart-upload/style/index.js +2 -2
- package/es/number-format-input/index.js +25 -36
- package/es/number-format-input/style/index.js +1 -1
- package/es/number-input/const/dataTypeEnum.d.ts +2 -2
- package/es/number-input/const/dataTypeEnum.js +1 -1
- package/es/number-input/const/numberType.d.ts +2 -2
- package/es/number-input/const/numberType.js +1 -1
- package/es/number-input/index.d.ts +35 -37
- package/es/number-input/index.js +65 -94
- package/es/number-input/style/index.js +1 -1
- package/es/number-input/utils.d.ts +6 -15
- package/es/number-input/utils.js +2 -2
- package/es/rc-echart/core.d.ts +13 -13
- package/es/rc-echart/core.js +19 -28
- package/es/rc-echart/index.d.ts +12 -12
- package/es/rc-echart/index.js +16 -26
- package/es/rc-motion/index.d.ts +2 -14
- package/es/rc-motion/index.js +1 -1
- package/es/rc-qrcode/index.d.ts +8 -11
- package/es/rc-qrcode/index.js +17 -21
- package/es/rc-qrcode/useQrcode.d.ts +2 -5
- package/es/rc-qrcode/useQrcode.js +33 -38
- package/es/rc-transition-group/index.js +1 -1
- package/es/resizable/index.d.ts +1 -10
- package/es/resizable/index.js +1 -1
- package/es/resizable/style/index.js +1 -1
- package/es/rich-text-editor/index.d.ts +18 -18
- package/es/rich-text-editor/index.js +45 -78
- package/es/rich-text-editor/lang/zh_CN.d.ts +404 -404
- package/es/rich-text-editor/lang/zh_CN.js +393 -416
- package/es/rich-text-editor/plugins/code/index.js +20 -25
- package/es/rich-text-editor/style/index.css +47 -52
- package/es/rich-text-editor/style/index.js +1 -1
- package/es/single-img-upload/index.d.ts +8 -8
- package/es/single-img-upload/index.js +230 -338
- package/es/single-img-upload/style/index.css +47 -52
- package/es/single-img-upload/style/index.js +4 -4
- package/es/sortable-hoc/index.js +1 -1
- package/es/split-pane/index.d.ts +53 -53
- package/es/split-pane/index.js +13 -17
- package/es/split-pane/style/index.js +1 -1
- package/es/step-number-input/const/countType.d.ts +2 -2
- package/es/step-number-input/const/countType.js +1 -1
- package/es/step-number-input/const/numberType.d.ts +2 -2
- package/es/step-number-input/const/numberType.js +1 -1
- package/es/step-number-input/index.d.ts +31 -31
- package/es/step-number-input/index.js +85 -135
- package/es/step-number-input/style/index.css +47 -52
- package/es/step-number-input/style/index.js +2 -2
- package/es/table-col/index.d.ts +3 -3
- package/es/table-col/index.js +7 -11
- package/es/table-col/style/index.js +1 -1
- package/es/text-area/index.d.ts +8 -13
- package/es/text-area/index.js +48 -64
- package/es/text-area/style/index.js +1 -1
- package/es/text-input/index.d.ts +1 -3
- package/es/text-input/index.js +58 -76
- package/es/text-input/style/index.css +53 -123
- package/es/text-input/style/index.js +1 -1
- package/lib/a-select/index.d.ts +5 -5
- package/lib/a-select/index.js +69 -102
- package/lib/a-select/style/index.css +47 -52
- package/lib/a-select/style/index.js +5 -5
- package/lib/a-select/style/index.less +1 -2
- package/lib/area-text/index.d.ts +2 -2
- package/lib/area-text/index.js +13 -21
- package/lib/area-text/style/index.js +4 -4
- package/lib/beautiful-dnd/index.js +37 -52
- package/lib/button-drawer/index.d.ts +8 -10
- package/lib/button-drawer/index.js +101 -153
- package/lib/button-drawer/style/index.js +4 -4
- package/lib/button-modal/index.d.ts +8 -10
- package/lib/button-modal/index.js +99 -151
- package/lib/button-modal/style/index.js +4 -4
- package/lib/client-only/index.d.ts +2 -2
- package/lib/client-only/index.js +5 -5
- package/lib/client-only/useClientOnly.js +26 -28
- package/lib/color-select/index.d.ts +18 -18
- package/lib/color-select/index.js +112 -180
- package/lib/color-select/style/index.css +47 -52
- package/lib/color-select/style/index.js +5 -5
- package/lib/complex-val-select/index.d.ts +13 -25
- package/lib/complex-val-select/index.js +102 -140
- package/lib/complex-val-select/style/index.js +4 -4
- package/lib/condition-input/index.d.ts +13 -21
- package/lib/condition-input/index.js +96 -131
- package/lib/condition-input/parse2RegexOption.d.ts +7 -10
- package/lib/condition-input/parse2RegexOption.js +33 -47
- package/lib/condition-input/style/index.js +4 -4
- package/lib/condition-select/index.d.ts +1 -7
- package/lib/condition-select/index.js +94 -154
- package/lib/condition-select/style/index.js +6 -6
- package/lib/condition-select/types.d.ts +14 -16
- package/lib/condition-select/types.js +4 -4
- package/lib/condition-select/utils/index.d.ts +2 -5
- package/lib/condition-select/utils/index.js +5 -5
- package/lib/condition-select-input/index.d.ts +29 -29
- package/lib/condition-select-input/index.js +150 -259
- package/lib/condition-select-input/style/index.d.ts +1 -1
- package/lib/condition-select-input/style/index.js +6 -6
- package/lib/config-provider/context.d.ts +1 -1
- package/lib/config-provider/context.js +11 -15
- package/lib/config-provider/index.d.ts +3 -27
- package/lib/config-provider/index.js +61 -69
- package/lib/copy-to-clipboard/index.d.ts +18 -20
- package/lib/copy-to-clipboard/index.js +86 -124
- package/lib/copy-to-clipboard/style/index.css +14 -23
- package/lib/copy-to-clipboard/style/index.js +4 -4
- package/lib/count-down/index.d.ts +3 -3
- package/lib/count-down/index.js +36 -58
- package/lib/count-up/index.d.ts +2 -2
- package/lib/count-up/index.js +39 -54
- package/lib/flex/index.d.ts +18 -21
- package/lib/flex/index.js +42 -78
- package/lib/flex/style/index.css +47 -52
- package/lib/flex/style/index.js +4 -4
- package/lib/flex/utils/gapSize.js +4 -4
- package/lib/flex/utils/index.d.ts +3 -27
- package/lib/flex/utils/index.js +27 -65
- package/lib/highlight-textarea/HighlighedContents.d.ts +3 -6
- package/lib/highlight-textarea/HighlighedContents.js +16 -24
- package/lib/highlight-textarea/extractSpansOfClasses.d.ts +10 -10
- package/lib/highlight-textarea/extractSpansOfClasses.js +54 -75
- package/lib/highlight-textarea/getRanges.js +44 -55
- package/lib/highlight-textarea/getType.js +6 -10
- package/lib/highlight-textarea/index.d.ts +7 -14
- package/lib/highlight-textarea/index.js +113 -176
- package/lib/highlight-textarea/style/index.css +55 -125
- package/lib/highlight-textarea/style/index.js +4 -4
- package/lib/highlight-textarea/types.d.ts +7 -26
- package/lib/highlight-textarea/types.js +4 -4
- package/lib/highlight-words/index.d.ts +2 -6
- package/lib/highlight-words/index.js +9 -13
- package/lib/img-crop/EasyCrop.d.ts +2 -6
- package/lib/img-crop/EasyCrop.js +120 -164
- package/lib/img-crop/getCroppedImg.d.ts +3 -8
- package/lib/img-crop/getCroppedImg.js +121 -158
- package/lib/img-crop/index.d.ts +29 -29
- package/lib/img-crop/index.js +383 -555
- package/lib/img-crop/style/index.css +47 -52
- package/lib/img-crop/style/index.d.ts +1 -1
- package/lib/img-crop/style/index.js +6 -6
- package/lib/index.d.ts +56 -62
- package/lib/index.js +202 -254
- package/lib/json-editor/index.d.ts +5 -7
- package/lib/json-editor/index.js +108 -156
- package/lib/json-editor/style/index.js +5 -5
- package/lib/keep-tab/index.d.ts +17 -17
- package/lib/keep-tab/index.js +120 -186
- package/lib/keep-tab/style/index.css +32 -72
- package/lib/keep-tab/style/index.js +4 -4
- package/lib/label-auto-complete/index.d.ts +3 -3
- package/lib/label-auto-complete/index.js +71 -103
- package/lib/label-auto-complete/style/index.css +50 -61
- package/lib/label-auto-complete/style/index.js +5 -5
- package/lib/label-condition-input/index.d.ts +11 -12
- package/lib/label-condition-input/index.js +77 -119
- package/lib/label-condition-input/style/index.css +47 -52
- package/lib/label-condition-input/style/index.js +4 -4
- package/lib/label-condition-select-input/index.d.ts +33 -35
- package/lib/label-condition-select-input/index.js +154 -262
- package/lib/label-condition-select-input/style/index.css +47 -52
- package/lib/label-condition-select-input/style/index.d.ts +1 -1
- package/lib/label-condition-select-input/style/index.js +6 -6
- package/lib/label-customize-range-picker/defaultRadioList.d.ts +28 -34
- package/lib/label-customize-range-picker/defaultRadioList.js +156 -297
- package/lib/label-customize-range-picker/index.d.ts +24 -27
- package/lib/label-customize-range-picker/index.js +186 -363
- package/lib/label-customize-range-picker/style/index.css +47 -52
- package/lib/label-customize-range-picker/style/index.d.ts +2 -2
- package/lib/label-customize-range-picker/style/index.js +8 -8
- package/lib/label-customize-range-picker/utils/index.d.ts +3 -9
- package/lib/label-customize-range-picker/utils/index.js +38 -75
- package/lib/label-date-picker/index.d.ts +2 -2
- package/lib/label-date-picker/index.js +68 -96
- package/lib/label-date-picker/style/index.css +47 -52
- package/lib/label-date-picker/style/index.js +5 -5
- package/lib/label-input/index.d.ts +25 -29
- package/lib/label-input/index.js +96 -142
- package/lib/label-input/style/index.css +47 -52
- package/lib/label-input/style/index.js +4 -4
- package/lib/label-number-input/index.d.ts +6 -6
- package/lib/label-number-input/index.js +78 -122
- package/lib/label-number-input/style/index.css +48 -54
- package/lib/label-number-input/style/index.js +4 -4
- package/lib/label-range-number/index.d.ts +17 -17
- package/lib/label-range-number/index.js +107 -172
- package/lib/label-range-number/style/index.css +47 -52
- package/lib/label-range-number/style/index.js +4 -4
- package/lib/label-range-picker/index.d.ts +3 -3
- package/lib/label-range-picker/index.js +83 -122
- package/lib/label-range-picker/style/index.css +47 -52
- package/lib/label-range-picker/style/index.js +5 -5
- package/lib/label-select/index.d.ts +5 -7
- package/lib/label-select/index.js +83 -130
- package/lib/label-select/style/index.css +51 -65
- package/lib/label-select/style/index.js +5 -5
- package/lib/label-text-area/index.d.ts +17 -21
- package/lib/label-text-area/index.js +77 -114
- package/lib/label-text-area/style/index.css +47 -52
- package/lib/label-text-area/style/index.js +4 -4
- package/lib/label-tree-select/index.d.ts +7 -8
- package/lib/label-tree-select/index.js +72 -113
- package/lib/label-tree-select/style/index.css +48 -55
- package/lib/label-tree-select/style/index.js +5 -5
- package/lib/messages/ar_EG.d.ts +24 -24
- package/lib/messages/ar_EG.js +8 -8
- package/lib/messages/bg_BG.d.ts +24 -24
- package/lib/messages/bg_BG.js +8 -8
- package/lib/messages/cs_CZ.d.ts +24 -24
- package/lib/messages/cs_CZ.js +8 -8
- package/lib/messages/de_DE.d.ts +24 -24
- package/lib/messages/de_DE.js +8 -8
- package/lib/messages/en_US.d.ts +24 -24
- package/lib/messages/en_US.js +8 -8
- package/lib/messages/es_ES.d.ts +24 -24
- package/lib/messages/es_ES.js +8 -8
- package/lib/messages/fi_FI.d.ts +24 -24
- package/lib/messages/fi_FI.js +8 -8
- package/lib/messages/fr_FR.d.ts +24 -24
- package/lib/messages/fr_FR.js +8 -8
- package/lib/messages/id_ID.d.ts +24 -24
- package/lib/messages/id_ID.js +8 -8
- package/lib/messages/index.d.ts +23 -27
- package/lib/messages/index.js +7 -7
- package/lib/messages/it_IT.d.ts +24 -24
- package/lib/messages/it_IT.js +8 -8
- package/lib/messages/ja_JP.d.ts +24 -24
- package/lib/messages/ja_JP.js +8 -8
- package/lib/messages/ko_KR.d.ts +24 -24
- package/lib/messages/ko_KR.js +8 -8
- package/lib/messages/ms_MY.d.ts +24 -24
- package/lib/messages/ms_MY.js +8 -8
- package/lib/messages/nb_NO.d.ts +24 -24
- package/lib/messages/nb_NO.js +8 -8
- package/lib/messages/nl_NL.d.ts +24 -24
- package/lib/messages/nl_NL.js +8 -8
- package/lib/messages/pt_PT.d.ts +24 -24
- package/lib/messages/pt_PT.js +8 -8
- package/lib/messages/ro_RO.d.ts +24 -24
- package/lib/messages/ro_RO.js +8 -8
- package/lib/messages/ru_RU.d.ts +24 -24
- package/lib/messages/ru_RU.js +8 -8
- package/lib/messages/sv_SE.d.ts +24 -24
- package/lib/messages/sv_SE.js +8 -8
- package/lib/messages/th_TH.d.ts +24 -24
- package/lib/messages/th_TH.js +8 -8
- package/lib/messages/ug_UG.d.ts +24 -24
- package/lib/messages/ug_UG.js +8 -8
- package/lib/messages/vi_VN.d.ts +24 -24
- package/lib/messages/vi_VN.js +8 -8
- package/lib/messages/zh_CN.d.ts +24 -24
- package/lib/messages/zh_CN.js +8 -8
- package/lib/messages/zh_TW.d.ts +24 -24
- package/lib/messages/zh_TW.js +8 -8
- package/lib/multipart-upload/getMultipartUploadHandler.d.ts +1 -3
- package/lib/multipart-upload/getMultipartUploadHandler.js +10 -12
- package/lib/multipart-upload/index.d.ts +33 -39
- package/lib/multipart-upload/index.js +165 -286
- package/lib/multipart-upload/parse2RegexOption.d.ts +7 -10
- package/lib/multipart-upload/parse2RegexOption.js +33 -47
- package/lib/multipart-upload/style/index.css +47 -52
- package/lib/multipart-upload/style/index.js +5 -5
- package/lib/number-format-input/index.js +34 -49
- package/lib/number-format-input/style/index.js +4 -4
- package/lib/number-input/const/dataTypeEnum.d.ts +2 -2
- package/lib/number-input/const/dataTypeEnum.js +4 -4
- package/lib/number-input/const/numberType.d.ts +2 -2
- package/lib/number-input/const/numberType.js +4 -4
- package/lib/number-input/index.d.ts +35 -37
- package/lib/number-input/index.js +105 -153
- package/lib/number-input/style/index.js +4 -4
- package/lib/number-input/utils.d.ts +6 -15
- package/lib/number-input/utils.js +5 -5
- package/lib/rc-echart/core.d.ts +13 -13
- package/lib/rc-echart/core.js +60 -88
- package/lib/rc-echart/index.d.ts +12 -12
- package/lib/rc-echart/index.js +57 -86
- package/lib/rc-motion/index.d.ts +2 -14
- package/lib/rc-motion/index.js +9 -13
- package/lib/rc-qrcode/index.d.ts +8 -11
- package/lib/rc-qrcode/index.js +62 -85
- package/lib/rc-qrcode/useQrcode.d.ts +2 -5
- package/lib/rc-qrcode/useQrcode.js +42 -51
- package/lib/rc-transition-group/index.js +37 -52
- package/lib/resizable/index.d.ts +1 -10
- package/lib/resizable/index.js +9 -9
- package/lib/resizable/style/index.js +4 -4
- package/lib/rich-text-editor/index.d.ts +18 -18
- package/lib/rich-text-editor/index.js +70 -107
- package/lib/rich-text-editor/lang/zh_CN.d.ts +404 -404
- package/lib/rich-text-editor/lang/zh_CN.js +397 -420
- package/lib/rich-text-editor/plugins/code/index.js +29 -38
- package/lib/rich-text-editor/style/index.css +47 -52
- package/lib/rich-text-editor/style/index.js +4 -4
- package/lib/single-img-upload/index.d.ts +8 -8
- package/lib/single-img-upload/index.js +273 -400
- package/lib/single-img-upload/style/index.css +47 -52
- package/lib/single-img-upload/style/index.js +7 -7
- package/lib/sortable-hoc/index.js +37 -52
- package/lib/split-pane/index.d.ts +53 -53
- package/lib/split-pane/index.js +22 -33
- package/lib/split-pane/style/index.js +4 -4
- package/lib/step-number-input/const/countType.d.ts +2 -2
- package/lib/step-number-input/const/countType.js +4 -4
- package/lib/step-number-input/const/numberType.d.ts +2 -2
- package/lib/step-number-input/const/numberType.js +4 -4
- package/lib/step-number-input/index.d.ts +31 -31
- package/lib/step-number-input/index.js +133 -204
- package/lib/step-number-input/style/index.css +47 -52
- package/lib/step-number-input/style/index.js +5 -5
- package/lib/table-col/index.d.ts +3 -3
- package/lib/table-col/index.js +15 -23
- package/lib/table-col/style/index.js +4 -4
- package/lib/text-area/index.d.ts +8 -13
- package/lib/text-area/index.js +89 -124
- package/lib/text-area/style/index.js +4 -4
- package/lib/text-input/index.d.ts +1 -3
- package/lib/text-input/index.js +67 -89
- package/lib/text-input/style/index.css +53 -123
- package/lib/text-input/style/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,75 +1,64 @@
|
|
|
1
|
-
var __assign =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) {
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = this && this.__read || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o),
|
|
17
|
+
r,
|
|
18
|
+
ar = [],
|
|
19
|
+
e;
|
|
20
|
+
try {
|
|
21
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
22
|
+
ar.push(r.value);
|
|
23
|
+
}
|
|
24
|
+
} catch (error) {
|
|
25
|
+
e = {
|
|
26
|
+
error: error
|
|
27
|
+
};
|
|
28
|
+
} finally {
|
|
26
29
|
try {
|
|
27
|
-
|
|
28
|
-
ar.push(r.value);
|
|
29
|
-
}
|
|
30
|
-
} catch (error) {
|
|
31
|
-
e = {
|
|
32
|
-
error: error,
|
|
33
|
-
};
|
|
30
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
34
31
|
} finally {
|
|
35
|
-
|
|
36
|
-
if (r && !r.done && (m = i['return'])) m.call(i);
|
|
37
|
-
} finally {
|
|
38
|
-
if (e) throw e.error;
|
|
39
|
-
}
|
|
32
|
+
if (e) throw e.error;
|
|
40
33
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import classNames from 'classnames';
|
|
45
|
-
import isEmpty from 'lodash/isEmpty';
|
|
34
|
+
}
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
46
37
|
import isNil from 'lodash/isNil';
|
|
47
|
-
import
|
|
38
|
+
import isEmpty from 'lodash/isEmpty';
|
|
39
|
+
import classNames from 'classnames';
|
|
48
40
|
import ComplexValSelect from '../complex-val-select';
|
|
41
|
+
import React, { useEffect, useState } from 'react';
|
|
42
|
+
import useControllableValue from "ahooks/es/useControllableValue";
|
|
49
43
|
import ConditionInput from '../condition-input';
|
|
50
44
|
export var InputTypeEnum;
|
|
51
45
|
(function (InputTypeEnum) {
|
|
52
|
-
InputTypeEnum[
|
|
53
|
-
InputTypeEnum[
|
|
46
|
+
InputTypeEnum["CONDITION_INPUT"] = "conditionInput";
|
|
47
|
+
InputTypeEnum["SELECT"] = "select";
|
|
54
48
|
})(InputTypeEnum || (InputTypeEnum = {}));
|
|
55
49
|
export var EntryTypeEnum;
|
|
56
50
|
(function (EntryTypeEnum) {
|
|
57
|
-
EntryTypeEnum[
|
|
58
|
-
EntryTypeEnum[
|
|
51
|
+
EntryTypeEnum["FIRST_ENTRY"] = "firstEntry";
|
|
52
|
+
EntryTypeEnum["SECOND_ENTRY"] = "secondEntry";
|
|
59
53
|
})(EntryTypeEnum || (EntryTypeEnum = {}));
|
|
60
54
|
/** 找所有的子代选项 */
|
|
61
55
|
var findAllSubSelectItems = function findAllSubSelectItems(dataSource, key) {
|
|
62
56
|
var _a, _b;
|
|
63
|
-
return (_b =
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
: _a.children) === null || _b === void 0
|
|
69
|
-
? void 0
|
|
70
|
-
: _b.map(function (subItem) {
|
|
71
|
-
return subItem.value;
|
|
72
|
-
});
|
|
57
|
+
return (_b = (_a = dataSource.find(function (item) {
|
|
58
|
+
return item.value === key;
|
|
59
|
+
})) === null || _a === void 0 ? void 0 : _a.children) === null || _b === void 0 ? void 0 : _b.map(function (subItem) {
|
|
60
|
+
return subItem.value;
|
|
61
|
+
});
|
|
73
62
|
};
|
|
74
63
|
var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
75
64
|
var value = props.value,
|
|
@@ -91,39 +80,28 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
91
80
|
subSelectOptions = _e[0],
|
|
92
81
|
setSubSelectOptions = _e[1];
|
|
93
82
|
/** 子选择器是否多选 */
|
|
94
|
-
var isSubSelectMultiple =
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return item.value === value.selectValue;
|
|
104
|
-
}),
|
|
105
|
-
1,
|
|
106
|
-
),
|
|
107
|
-
selectValueItem = _a[0];
|
|
108
|
-
if (selectValueItem && selectValueItem.children) {
|
|
109
|
-
setSubSelectOptions(selectValueItem.children);
|
|
110
|
-
}
|
|
83
|
+
var isSubSelectMultiple = (conditionSelectProps === null || conditionSelectProps === void 0 ? void 0 : conditionSelectProps.mode) === 'multiple';
|
|
84
|
+
useEffect(function () {
|
|
85
|
+
if (value && !isNil(value.selectValue) && optionsList.length) {
|
|
86
|
+
var _a = __read(optionsList.filter(function (item) {
|
|
87
|
+
return item.value === value.selectValue;
|
|
88
|
+
}), 1),
|
|
89
|
+
selectValueItem = _a[0];
|
|
90
|
+
if (selectValueItem && selectValueItem.children) {
|
|
91
|
+
setSubSelectOptions(selectValueItem.children);
|
|
111
92
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
);
|
|
93
|
+
}
|
|
94
|
+
}, [value, optionsList]);
|
|
115
95
|
var onSelectChange = function onSelectChange(selectValue) {
|
|
116
96
|
var inputValue = isInput ? '' : undefined;
|
|
117
97
|
var finalSelectInputValue = {
|
|
118
98
|
selectValue: selectValue,
|
|
119
99
|
inputValue: inputValue,
|
|
120
|
-
changedEntryType: EntryTypeEnum.FIRST_ENTRY
|
|
100
|
+
changedEntryType: EntryTypeEnum.FIRST_ENTRY
|
|
121
101
|
};
|
|
122
102
|
if (isSubSelectMultiple) {
|
|
123
103
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
124
|
-
finalSelectValue: !isNil(selectValue)
|
|
125
|
-
? findAllSubSelectItems(optionsList, selectValue)
|
|
126
|
-
: undefined,
|
|
104
|
+
finalSelectValue: !isNil(selectValue) ? findAllSubSelectItems(optionsList, selectValue) : undefined
|
|
127
105
|
});
|
|
128
106
|
}
|
|
129
107
|
setSelectInputValue(finalSelectInputValue);
|
|
@@ -131,12 +109,9 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
131
109
|
setSubSelectOptions([]);
|
|
132
110
|
return;
|
|
133
111
|
}
|
|
134
|
-
var _a = __read(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}),
|
|
138
|
-
1,
|
|
139
|
-
),
|
|
112
|
+
var _a = __read(optionsList.filter(function (item) {
|
|
113
|
+
return item.value === selectValue;
|
|
114
|
+
}), 1),
|
|
140
115
|
selectValueItem = _a[0];
|
|
141
116
|
if (selectValueItem.children) {
|
|
142
117
|
setSubSelectOptions(selectValueItem.children);
|
|
@@ -144,145 +119,80 @@ var ConditionSelectInput = function ConditionSelectInput(props) {
|
|
|
144
119
|
};
|
|
145
120
|
var onTypeSelectChange = function onTypeSelectChange(inputValue) {
|
|
146
121
|
var finalSelectInputValue = {
|
|
147
|
-
selectValue:
|
|
148
|
-
selectInputValue === null || selectInputValue === void 0
|
|
149
|
-
? void 0
|
|
150
|
-
: selectInputValue.selectValue,
|
|
122
|
+
selectValue: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue,
|
|
151
123
|
inputValue: inputValue,
|
|
152
|
-
changedEntryType: EntryTypeEnum.SECOND_ENTRY
|
|
124
|
+
changedEntryType: EntryTypeEnum.SECOND_ENTRY
|
|
153
125
|
};
|
|
154
126
|
if (isSubSelectMultiple) {
|
|
155
127
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
156
|
-
finalSelectValue: isEmpty(inputValue)
|
|
157
|
-
? findAllSubSelectItems(
|
|
158
|
-
optionsList,
|
|
159
|
-
selectInputValue === null || selectInputValue === void 0
|
|
160
|
-
? void 0
|
|
161
|
-
: selectInputValue.selectValue,
|
|
162
|
-
)
|
|
163
|
-
: inputValue,
|
|
128
|
+
finalSelectValue: isEmpty(inputValue) ? findAllSubSelectItems(optionsList, selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue) : inputValue
|
|
164
129
|
});
|
|
165
130
|
}
|
|
166
131
|
setSelectInputValue(finalSelectInputValue);
|
|
167
132
|
};
|
|
168
133
|
var onInputChange = function onInputChange(inputValue) {
|
|
169
134
|
var finalValue = {
|
|
170
|
-
selectValue:
|
|
171
|
-
selectInputValue === null || selectInputValue === void 0
|
|
172
|
-
? void 0
|
|
173
|
-
: selectInputValue.selectValue,
|
|
135
|
+
selectValue: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue,
|
|
174
136
|
inputValue: inputValue,
|
|
175
|
-
changedEntryType: EntryTypeEnum.SECOND_ENTRY
|
|
137
|
+
changedEntryType: EntryTypeEnum.SECOND_ENTRY
|
|
176
138
|
};
|
|
177
139
|
setSelectInputValue(finalValue);
|
|
178
140
|
};
|
|
179
141
|
/** 联级选择框失去焦点 */
|
|
180
142
|
var onConditionSelectInputBlur = function onConditionSelectInputBlur(blurEntryType) {
|
|
181
|
-
onBlur === null || onBlur === void 0
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
__assign(__assign({}, selectInputValue), {
|
|
185
|
-
changedEntryType: blurEntryType,
|
|
186
|
-
}),
|
|
187
|
-
);
|
|
143
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(__assign(__assign({}, selectInputValue), {
|
|
144
|
+
changedEntryType: blurEntryType
|
|
145
|
+
}));
|
|
188
146
|
};
|
|
189
147
|
/** 二级下拉框清空 */
|
|
190
148
|
var onTypeSelectClear = function onTypeSelectClear() {
|
|
191
149
|
var finalSelectInputValue = {
|
|
192
150
|
selectValue: selectInputValue.selectValue,
|
|
193
151
|
inputValue: [],
|
|
194
|
-
changedEntryType: EntryTypeEnum.SECOND_ENTRY
|
|
152
|
+
changedEntryType: EntryTypeEnum.SECOND_ENTRY
|
|
195
153
|
};
|
|
196
154
|
if (isSubSelectMultiple) {
|
|
197
155
|
finalSelectInputValue = __assign(__assign({}, finalSelectInputValue), {
|
|
198
|
-
finalSelectValue: findAllSubSelectItems(
|
|
199
|
-
optionsList,
|
|
200
|
-
selectInputValue.selectValue,
|
|
201
|
-
),
|
|
156
|
+
finalSelectValue: findAllSubSelectItems(optionsList, selectInputValue.selectValue)
|
|
202
157
|
});
|
|
203
158
|
}
|
|
204
159
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(finalSelectInputValue);
|
|
205
160
|
};
|
|
206
161
|
// 是否展示输入框
|
|
207
|
-
var isShowInput =
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
__assign({}, conditionInputProps, {
|
|
225
|
-
onChange: onInputChange,
|
|
226
|
-
value:
|
|
227
|
-
selectInputValue === null || selectInputValue === void 0
|
|
228
|
-
? void 0
|
|
229
|
-
: selectInputValue.inputValue,
|
|
230
|
-
onBlur: function onBlur() {
|
|
231
|
-
return onConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
|
|
232
|
-
},
|
|
233
|
-
}),
|
|
234
|
-
),
|
|
235
|
-
)
|
|
236
|
-
: /*#__PURE__*/ React.createElement(
|
|
237
|
-
'div',
|
|
238
|
-
{
|
|
239
|
-
className: 'condition-select-select-input',
|
|
240
|
-
},
|
|
241
|
-
/*#__PURE__*/ React.createElement(
|
|
242
|
-
ComplexValSelect,
|
|
243
|
-
__assign({}, conditionSelectProps, {
|
|
244
|
-
onChange: onTypeSelectChange,
|
|
245
|
-
value:
|
|
246
|
-
selectInputValue === null || selectInputValue === void 0
|
|
247
|
-
? void 0
|
|
248
|
-
: selectInputValue.inputValue,
|
|
249
|
-
options: subSelectOptions,
|
|
250
|
-
onBlur: function onBlur() {
|
|
251
|
-
return onConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
|
|
252
|
-
},
|
|
253
|
-
onClear: onTypeSelectClear,
|
|
254
|
-
}),
|
|
255
|
-
),
|
|
256
|
-
);
|
|
257
|
-
return /*#__PURE__*/ React.createElement(
|
|
258
|
-
'div',
|
|
259
|
-
{
|
|
260
|
-
className: 'condition-select-wrap',
|
|
162
|
+
var isShowInput = !isNil(selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue) && !(hiddenInputKeys === null || hiddenInputKeys === void 0 ? void 0 : hiddenInputKeys.includes(selectInputValue.selectValue));
|
|
163
|
+
var typeInput = isInput ? /*#__PURE__*/React.createElement("div", {
|
|
164
|
+
className: "condition-select-input"
|
|
165
|
+
}, /*#__PURE__*/React.createElement(ConditionInput, __assign({}, conditionInputProps, {
|
|
166
|
+
onChange: onInputChange,
|
|
167
|
+
value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.inputValue,
|
|
168
|
+
onBlur: function onBlur() {
|
|
169
|
+
return onConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
|
|
170
|
+
}
|
|
171
|
+
}))) : /*#__PURE__*/React.createElement("div", {
|
|
172
|
+
className: "condition-select-select-input"
|
|
173
|
+
}, /*#__PURE__*/React.createElement(ComplexValSelect, __assign({}, conditionSelectProps, {
|
|
174
|
+
onChange: onTypeSelectChange,
|
|
175
|
+
value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.inputValue,
|
|
176
|
+
options: subSelectOptions,
|
|
177
|
+
onBlur: function onBlur() {
|
|
178
|
+
return onConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
|
|
261
179
|
},
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
onBlur: function onBlur() {
|
|
280
|
-
return onConditionSelectInputBlur(EntryTypeEnum.FIRST_ENTRY);
|
|
281
|
-
},
|
|
282
|
-
}),
|
|
283
|
-
),
|
|
284
|
-
),
|
|
285
|
-
isShowInput && typeInput,
|
|
286
|
-
);
|
|
180
|
+
onClear: onTypeSelectClear
|
|
181
|
+
})));
|
|
182
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
183
|
+
className: "condition-select-wrap"
|
|
184
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
185
|
+
className: classNames('condition-select-selecter', {
|
|
186
|
+
'condition-two-select-selecter': !isInput,
|
|
187
|
+
'condition-only-selecter': !isShowInput
|
|
188
|
+
})
|
|
189
|
+
}, /*#__PURE__*/React.createElement(ComplexValSelect, __assign({}, selectProps, {
|
|
190
|
+
onChange: onSelectChange,
|
|
191
|
+
value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue,
|
|
192
|
+
options: optionsList,
|
|
193
|
+
onBlur: function onBlur() {
|
|
194
|
+
return onConditionSelectInputBlur(EntryTypeEnum.FIRST_ENTRY);
|
|
195
|
+
}
|
|
196
|
+
}))), isShowInput && typeInput);
|
|
287
197
|
};
|
|
288
|
-
export default ConditionSelectInput;
|
|
198
|
+
export default ConditionSelectInput;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import './index.less';
|
|
1
|
+
import "antd/es/select/style";
|
|
2
|
+
import "antd/es/input/style";
|
|
3
|
+
import './index.less';
|
|
@@ -1,32 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export type LocaleType =
|
|
3
|
-
| 'en-US'
|
|
4
|
-
| 'zh-CN'
|
|
5
|
-
| 'zh-TW'
|
|
6
|
-
| 'bg'
|
|
7
|
-
| 'cs'
|
|
8
|
-
| 'de'
|
|
9
|
-
| 'es'
|
|
10
|
-
| 'fr'
|
|
11
|
-
| 'fi'
|
|
12
|
-
| 'it'
|
|
13
|
-
| 'id'
|
|
14
|
-
| 'ja'
|
|
15
|
-
| 'ko'
|
|
16
|
-
| 'nl'
|
|
17
|
-
| 'nb-NO'
|
|
18
|
-
| 'ru'
|
|
19
|
-
| 'sv'
|
|
20
|
-
| 'pt'
|
|
21
|
-
| 'ar'
|
|
22
|
-
| 'th'
|
|
23
|
-
| 'ro'
|
|
24
|
-
| 'vi'
|
|
25
|
-
| 'ug'
|
|
26
|
-
| 'ms-MY';
|
|
2
|
+
export type LocaleType = 'en-US' | 'zh-CN' | 'zh-TW' | 'bg' | 'cs' | 'de' | 'es' | 'fr' | 'fi' | 'it' | 'id' | 'ja' | 'ko' | 'nl' | 'nb-NO' | 'ru' | 'sv' | 'pt' | 'ar' | 'th' | 'ro' | 'vi' | 'ug' | 'ms-MY';
|
|
27
3
|
export interface ConfigProviderProps {
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
locale: LocaleType;
|
|
30
6
|
}
|
|
31
7
|
declare const ConfigProvider: React.FC<ConfigProviderProps>;
|
|
32
8
|
export default ConfigProvider;
|
|
@@ -51,14 +51,10 @@ var ConfigProvider = function ConfigProvider(props) {
|
|
|
51
51
|
'ro': roRO.lang,
|
|
52
52
|
'vi': viVN.lang,
|
|
53
53
|
'ug': ugUG.lang,
|
|
54
|
-
'ms-MY': msMY.lang
|
|
54
|
+
'ms-MY': msMY.lang
|
|
55
55
|
};
|
|
56
|
-
return /*#__PURE__*/
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
value: messagesMap[locale],
|
|
60
|
-
},
|
|
61
|
-
children,
|
|
62
|
-
);
|
|
56
|
+
return /*#__PURE__*/React.createElement(LocaleContext.Provider, {
|
|
57
|
+
value: messagesMap[locale]
|
|
58
|
+
}, children);
|
|
63
59
|
};
|
|
64
|
-
export default ConfigProvider;
|
|
60
|
+
export default ConfigProvider;
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import type { TooltipProps } from 'antd/lib/tooltip';
|
|
2
1
|
import React from 'react';
|
|
2
|
+
import type { TooltipProps } from 'antd/lib/tooltip';
|
|
3
3
|
export interface CopyToClipboardProps {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
/** 需要复制的字符串 */
|
|
5
|
+
text: string;
|
|
6
|
+
/** 触发复制事件的元素 */
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
/** 文本被复制时候的回调 */
|
|
9
|
+
onCopy?: (text: string, result: boolean) => void;
|
|
10
|
+
/** ant design Tooltip props */
|
|
11
|
+
tooltipProps?: Omit<TooltipProps, 'title'>;
|
|
12
|
+
/** 复制成功的Tooltip提示文案 */
|
|
13
|
+
tooltipTitle?: React.ReactNode;
|
|
14
|
+
/** 依赖底层组件 https://github.com/sudodoki/copy-to-clipboard 的 options */
|
|
15
|
+
options?: {
|
|
16
|
+
debug?: boolean;
|
|
17
|
+
message?: string;
|
|
18
|
+
format?: string;
|
|
19
|
+
};
|
|
20
20
|
}
|
|
21
|
-
declare const _default: React.MemoExoticComponent<
|
|
22
|
-
(props: CopyToClipboardProps) => JSX.Element
|
|
23
|
-
>;
|
|
21
|
+
declare const _default: React.MemoExoticComponent<(props: CopyToClipboardProps) => JSX.Element>;
|
|
24
22
|
export default _default;
|
|
@@ -1,48 +1,42 @@
|
|
|
1
|
-
var __assign =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) {
|
|
6
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
16
10
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = this && this.__read || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o),
|
|
17
|
+
r,
|
|
18
|
+
ar = [],
|
|
19
|
+
e;
|
|
20
|
+
try {
|
|
21
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
22
|
+
ar.push(r.value);
|
|
23
|
+
}
|
|
24
|
+
} catch (error) {
|
|
25
|
+
e = {
|
|
26
|
+
error: error
|
|
27
|
+
};
|
|
28
|
+
} finally {
|
|
26
29
|
try {
|
|
27
|
-
|
|
28
|
-
ar.push(r.value);
|
|
29
|
-
}
|
|
30
|
-
} catch (error) {
|
|
31
|
-
e = {
|
|
32
|
-
error: error,
|
|
33
|
-
};
|
|
30
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
34
31
|
} finally {
|
|
35
|
-
|
|
36
|
-
if (r && !r.done && (m = i['return'])) m.call(i);
|
|
37
|
-
} finally {
|
|
38
|
-
if (e) throw e.error;
|
|
39
|
-
}
|
|
32
|
+
if (e) throw e.error;
|
|
40
33
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
import copy from 'copy-to-clipboard';
|
|
34
|
+
}
|
|
35
|
+
return ar;
|
|
36
|
+
};
|
|
45
37
|
import React, { useState } from 'react';
|
|
38
|
+
import copy from 'copy-to-clipboard';
|
|
39
|
+
import Tooltip from "antd/es/tooltip";
|
|
46
40
|
var CopyToClipboard = function CopyToClipboard(props) {
|
|
47
41
|
var text = props.text,
|
|
48
42
|
onCopy = props.onCopy,
|
|
@@ -72,27 +66,14 @@ var CopyToClipboard = function CopyToClipboard(props) {
|
|
|
72
66
|
elem.props.onClick(event);
|
|
73
67
|
}
|
|
74
68
|
};
|
|
75
|
-
return tooltipTitle
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
tooltipProps,
|
|
85
|
-
),
|
|
86
|
-
/*#__PURE__*/ React.createElement(
|
|
87
|
-
'span',
|
|
88
|
-
{
|
|
89
|
-
onClick: onClick,
|
|
90
|
-
},
|
|
91
|
-
children,
|
|
92
|
-
),
|
|
93
|
-
)
|
|
94
|
-
: /*#__PURE__*/ React.cloneElement(children, {
|
|
95
|
-
onClick: onClick,
|
|
96
|
-
});
|
|
69
|
+
return tooltipTitle ? /*#__PURE__*/React.createElement(Tooltip, __assign({
|
|
70
|
+
placement: "topLeft",
|
|
71
|
+
open: tooltipVisible,
|
|
72
|
+
title: tooltipTitle
|
|
73
|
+
}, tooltipProps), /*#__PURE__*/React.createElement("span", {
|
|
74
|
+
onClick: onClick
|
|
75
|
+
}, children)) : /*#__PURE__*/React.cloneElement(children, {
|
|
76
|
+
onClick: onClick
|
|
77
|
+
});
|
|
97
78
|
};
|
|
98
|
-
export default /*#__PURE__*/
|
|
79
|
+
export default /*#__PURE__*/React.memo(CopyToClipboard);
|