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
package/es/flex/style/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import './index.less';
|
|
1
|
+
import './index.less';
|
package/es/flex/utils/gapSize.js
CHANGED
package/es/flex/utils/index.d.ts
CHANGED
|
@@ -1,30 +1,6 @@
|
|
|
1
1
|
import type { FlexProps } from '../index';
|
|
2
|
-
export declare const flexWrapValues: readonly [
|
|
3
|
-
export declare const justifyContentValues: readonly [
|
|
4
|
-
|
|
5
|
-
'flex-end',
|
|
6
|
-
'start',
|
|
7
|
-
'end',
|
|
8
|
-
'center',
|
|
9
|
-
'space-between',
|
|
10
|
-
'space-around',
|
|
11
|
-
'space-evenly',
|
|
12
|
-
'stretch',
|
|
13
|
-
'normal',
|
|
14
|
-
'left',
|
|
15
|
-
'right',
|
|
16
|
-
];
|
|
17
|
-
export declare const alignItemsValues: readonly [
|
|
18
|
-
'center',
|
|
19
|
-
'start',
|
|
20
|
-
'end',
|
|
21
|
-
'flex-start',
|
|
22
|
-
'flex-end',
|
|
23
|
-
'self-start',
|
|
24
|
-
'self-end',
|
|
25
|
-
'baseline',
|
|
26
|
-
'normal',
|
|
27
|
-
'stretch',
|
|
28
|
-
];
|
|
2
|
+
export declare const flexWrapValues: readonly ["wrap", "nowrap", "wrap-reverse"];
|
|
3
|
+
export declare const justifyContentValues: readonly ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"];
|
|
4
|
+
export declare const alignItemsValues: readonly ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"];
|
|
29
5
|
declare function createFlexClassNames(prefixCls: string, props: FlexProps): string;
|
|
30
6
|
export default createFlexClassNames;
|
package/es/flex/utils/index.js
CHANGED
|
@@ -1,76 +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
|
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
17
13
|
import classNames from 'classnames';
|
|
18
14
|
export var flexWrapValues = ['wrap', 'nowrap', 'wrap-reverse'];
|
|
19
|
-
export var justifyContentValues = [
|
|
20
|
-
|
|
21
|
-
'flex-end',
|
|
22
|
-
'start',
|
|
23
|
-
'end',
|
|
24
|
-
'center',
|
|
25
|
-
'space-between',
|
|
26
|
-
'space-around',
|
|
27
|
-
'space-evenly',
|
|
28
|
-
'stretch',
|
|
29
|
-
'normal',
|
|
30
|
-
'left',
|
|
31
|
-
'right',
|
|
32
|
-
];
|
|
33
|
-
export var alignItemsValues = [
|
|
34
|
-
'center',
|
|
35
|
-
'start',
|
|
36
|
-
'end',
|
|
37
|
-
'flex-start',
|
|
38
|
-
'flex-end',
|
|
39
|
-
'self-start',
|
|
40
|
-
'self-end',
|
|
41
|
-
'baseline',
|
|
42
|
-
'normal',
|
|
43
|
-
'stretch',
|
|
44
|
-
];
|
|
15
|
+
export var justifyContentValues = ['flex-start', 'flex-end', 'start', 'end', 'center', 'space-between', 'space-around', 'space-evenly', 'stretch', 'normal', 'left', 'right'];
|
|
16
|
+
export var alignItemsValues = ['center', 'start', 'end', 'flex-start', 'flex-end', 'self-start', 'self-end', 'baseline', 'normal', 'stretch'];
|
|
45
17
|
var genClsWrap = function genClsWrap(prefixCls, props) {
|
|
46
18
|
var wrapCls = {};
|
|
47
19
|
flexWrapValues.forEach(function (cssKey) {
|
|
48
|
-
wrapCls[
|
|
20
|
+
wrapCls["".concat(prefixCls, "-wrap-").concat(cssKey)] = props.wrap === cssKey;
|
|
49
21
|
});
|
|
50
22
|
return wrapCls;
|
|
51
23
|
};
|
|
52
24
|
var genClsAlign = function genClsAlign(prefixCls, props) {
|
|
53
25
|
var alignCls = {};
|
|
54
26
|
alignItemsValues.forEach(function (cssKey) {
|
|
55
|
-
alignCls[
|
|
27
|
+
alignCls["".concat(prefixCls, "-align-").concat(cssKey)] = props.align === cssKey;
|
|
56
28
|
});
|
|
57
|
-
alignCls[
|
|
29
|
+
alignCls["".concat(prefixCls, "-align-stretch")] = !props.align && !!props.vertical;
|
|
58
30
|
return alignCls;
|
|
59
31
|
};
|
|
60
32
|
var genClsJustify = function genClsJustify(prefixCls, props) {
|
|
61
33
|
var justifyCls = {};
|
|
62
34
|
justifyContentValues.forEach(function (cssKey) {
|
|
63
|
-
justifyCls[
|
|
64
|
-
props.justify === cssKey;
|
|
35
|
+
justifyCls["".concat(prefixCls, "-justify-").concat(cssKey)] = props.justify === cssKey;
|
|
65
36
|
});
|
|
66
37
|
return justifyCls;
|
|
67
38
|
};
|
|
68
39
|
function createFlexClassNames(prefixCls, props) {
|
|
69
|
-
return classNames(
|
|
70
|
-
__assign(
|
|
71
|
-
__assign(__assign({}, genClsWrap(prefixCls, props)), genClsAlign(prefixCls, props)),
|
|
72
|
-
genClsJustify(prefixCls, props),
|
|
73
|
-
),
|
|
74
|
-
);
|
|
40
|
+
return classNames(__assign(__assign(__assign({}, genClsWrap(prefixCls, props)), genClsAlign(prefixCls, props)), genClsJustify(prefixCls, props)));
|
|
75
41
|
}
|
|
76
|
-
export default createFlexClassNames;
|
|
42
|
+
export default createFlexClassNames;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { HighlightType } from './types';
|
|
2
2
|
export interface HighlighedContentsProps {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
value: string;
|
|
4
|
+
highlight?: HighlightType;
|
|
5
5
|
}
|
|
6
|
-
declare const HighlighedContents: ({
|
|
7
|
-
value,
|
|
8
|
-
highlight,
|
|
9
|
-
}: HighlighedContentsProps) => JSX.Element;
|
|
6
|
+
declare const HighlighedContents: ({ value, highlight }: HighlighedContentsProps) => JSX.Element;
|
|
10
7
|
export default HighlighedContents;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import extractSpansOfClasses from './extractSpansOfClasses';
|
|
3
2
|
import getRanges from './getRanges';
|
|
3
|
+
import extractSpansOfClasses from './extractSpansOfClasses';
|
|
4
4
|
var HighlighedContents = function HighlighedContents(_a) {
|
|
5
5
|
var value = _a.value,
|
|
6
6
|
_b = _a.highlight,
|
|
7
7
|
highlight = _b === void 0 ? '' : _b;
|
|
8
8
|
var ranges = getRanges(value, highlight);
|
|
9
9
|
var parts = extractSpansOfClasses(value, ranges);
|
|
10
|
-
return /*#__PURE__*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
parts.map(function (part) {
|
|
14
|
-
return part.render();
|
|
15
|
-
}),
|
|
16
|
-
);
|
|
10
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, parts.map(function (part) {
|
|
11
|
+
return part.render();
|
|
12
|
+
}));
|
|
17
13
|
};
|
|
18
|
-
export default HighlighedContents;
|
|
14
|
+
export default HighlighedContents;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { RangesType } from './types';
|
|
2
2
|
declare class Span {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
beginIndex: number;
|
|
4
|
+
endIndex: number;
|
|
5
|
+
markClasses: Set<string>;
|
|
6
|
+
isMark: boolean;
|
|
7
|
+
text: string;
|
|
8
|
+
constructor(text: string, beginIndex: number);
|
|
9
|
+
setMark(className: string): void;
|
|
10
|
+
carve(beginIndex2: number): Span;
|
|
11
|
+
get className(): string;
|
|
12
|
+
render(): JSX.Element;
|
|
13
13
|
}
|
|
14
14
|
export default function extractSpansOfClasses(value: string, ranges: RangesType): Span[];
|
|
15
15
|
export {};
|
|
@@ -1,44 +1,39 @@
|
|
|
1
|
-
var __read =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __read = this && this.__read || function (o, n) {
|
|
2
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3
|
+
if (!m) return o;
|
|
4
|
+
var i = m.call(o),
|
|
5
|
+
r,
|
|
6
|
+
ar = [],
|
|
7
|
+
e;
|
|
8
|
+
try {
|
|
9
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
10
|
+
ar.push(r.value);
|
|
11
|
+
}
|
|
12
|
+
} catch (error) {
|
|
13
|
+
e = {
|
|
14
|
+
error: error
|
|
15
|
+
};
|
|
16
|
+
} finally {
|
|
10
17
|
try {
|
|
11
|
-
|
|
12
|
-
ar.push(r.value);
|
|
13
|
-
}
|
|
14
|
-
} catch (error) {
|
|
15
|
-
e = {
|
|
16
|
-
error: error,
|
|
17
|
-
};
|
|
18
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
18
19
|
} finally {
|
|
19
|
-
|
|
20
|
-
if (r && !r.done && (m = i['return'])) m.call(i);
|
|
21
|
-
} finally {
|
|
22
|
-
if (e) throw e.error;
|
|
23
|
-
}
|
|
20
|
+
if (e) throw e.error;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
38
|
-
};
|
|
22
|
+
}
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
26
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
|
+
if (ar || !(i in from)) {
|
|
28
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
29
|
+
ar[i] = from[i];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
|
+
};
|
|
39
34
|
/* eslint-disable no-plusplus */
|
|
40
35
|
import React from 'react';
|
|
41
|
-
var Span = /** @class */
|
|
36
|
+
var Span = /** @class */function () {
|
|
42
37
|
function Span(text, beginIndex) {
|
|
43
38
|
this.beginIndex = beginIndex;
|
|
44
39
|
this.endIndex = beginIndex + text.length;
|
|
@@ -64,7 +59,7 @@ var Span = /** @class */ (function () {
|
|
|
64
59
|
right.markClasses = new Set(__spreadArray([], __read(this.markClasses), false));
|
|
65
60
|
return right;
|
|
66
61
|
};
|
|
67
|
-
Object.defineProperty(Span.prototype,
|
|
62
|
+
Object.defineProperty(Span.prototype, "className", {
|
|
68
63
|
get: function get() {
|
|
69
64
|
if (this.markClasses && this.markClasses.size > 0) {
|
|
70
65
|
return __spreadArray([], __read(this.markClasses), false).sort().join(' ');
|
|
@@ -72,39 +67,27 @@ var Span = /** @class */ (function () {
|
|
|
72
67
|
return '';
|
|
73
68
|
},
|
|
74
69
|
enumerable: false,
|
|
75
|
-
configurable: true
|
|
70
|
+
configurable: true
|
|
76
71
|
});
|
|
77
72
|
Span.prototype.render = function () {
|
|
78
73
|
if (this.isMark) {
|
|
79
74
|
var className = this.className;
|
|
80
75
|
if (className) {
|
|
81
|
-
return /*#__PURE__*/
|
|
82
|
-
'mark',
|
|
83
|
-
{
|
|
84
|
-
key: this.beginIndex,
|
|
85
|
-
className: className,
|
|
86
|
-
},
|
|
87
|
-
this.text,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
return /*#__PURE__*/ React.createElement(
|
|
91
|
-
'mark',
|
|
92
|
-
{
|
|
76
|
+
return /*#__PURE__*/React.createElement("mark", {
|
|
93
77
|
key: this.beginIndex,
|
|
94
|
-
|
|
95
|
-
this.text
|
|
96
|
-
|
|
78
|
+
className: className
|
|
79
|
+
}, this.text);
|
|
80
|
+
}
|
|
81
|
+
return /*#__PURE__*/React.createElement("mark", {
|
|
82
|
+
key: this.beginIndex
|
|
83
|
+
}, this.text);
|
|
97
84
|
}
|
|
98
|
-
return /*#__PURE__*/
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
key: this.beginIndex,
|
|
102
|
-
},
|
|
103
|
-
this.text,
|
|
104
|
-
);
|
|
85
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
86
|
+
key: this.beginIndex
|
|
87
|
+
}, this.text);
|
|
105
88
|
};
|
|
106
89
|
return Span;
|
|
107
|
-
}
|
|
90
|
+
}();
|
|
108
91
|
export default function extractSpansOfClasses(value, ranges) {
|
|
109
92
|
var spans = [new Span(value, 0)];
|
|
110
93
|
ranges.forEach(function (range) {
|
|
@@ -157,4 +140,4 @@ export default function extractSpansOfClasses(value, ranges) {
|
|
|
157
140
|
}
|
|
158
141
|
});
|
|
159
142
|
return spans;
|
|
160
|
-
}
|
|
143
|
+
}
|
|
@@ -1,41 +1,36 @@
|
|
|
1
|
-
var __read =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
var __read = this && this.__read || function (o, n) {
|
|
2
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
3
|
+
if (!m) return o;
|
|
4
|
+
var i = m.call(o),
|
|
5
|
+
r,
|
|
6
|
+
ar = [],
|
|
7
|
+
e;
|
|
8
|
+
try {
|
|
9
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
|
|
10
|
+
ar.push(r.value);
|
|
11
|
+
}
|
|
12
|
+
} catch (error) {
|
|
13
|
+
e = {
|
|
14
|
+
error: error
|
|
15
|
+
};
|
|
16
|
+
} finally {
|
|
10
17
|
try {
|
|
11
|
-
|
|
12
|
-
ar.push(r.value);
|
|
13
|
-
}
|
|
14
|
-
} catch (error) {
|
|
15
|
-
e = {
|
|
16
|
-
error: error,
|
|
17
|
-
};
|
|
18
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
18
19
|
} finally {
|
|
19
|
-
|
|
20
|
-
if (r && !r.done && (m = i['return'])) m.call(i);
|
|
21
|
-
} finally {
|
|
22
|
-
if (e) throw e.error;
|
|
23
|
-
}
|
|
20
|
+
if (e) throw e.error;
|
|
24
21
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if (
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
38
|
-
};
|
|
22
|
+
}
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
|
|
26
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
27
|
+
if (ar || !(i in from)) {
|
|
28
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
29
|
+
ar[i] = from[i];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
33
|
+
};
|
|
39
34
|
/* eslint-disable no-param-reassign */
|
|
40
35
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
41
36
|
/* eslint-disable no-cond-assign */
|
|
@@ -77,7 +72,7 @@ function getFunctionRanges(input, func) {
|
|
|
77
72
|
function getRegExpRanges(input, regex) {
|
|
78
73
|
var ranges = [];
|
|
79
74
|
var match;
|
|
80
|
-
while (
|
|
75
|
+
while (match = regex.exec(input), match !== null) {
|
|
81
76
|
ranges.push([match.index, match.index + match[0].length]);
|
|
82
77
|
if (!regex.global) {
|
|
83
78
|
// non-global regexes do not increase lastIndex, causing an infinite loop,
|
|
@@ -92,7 +87,7 @@ function getStringRanges(input, str) {
|
|
|
92
87
|
var inputLower = input.toLowerCase();
|
|
93
88
|
var strLower = str.toLowerCase();
|
|
94
89
|
var index = 0;
|
|
95
|
-
while (
|
|
90
|
+
while (index = inputLower.indexOf(strLower, index), index !== -1) {
|
|
96
91
|
ranges.push([index, index + strLower.length]);
|
|
97
92
|
index += strLower.length;
|
|
98
93
|
}
|
|
@@ -108,9 +103,7 @@ function getCustomRanges(input, custom) {
|
|
|
108
103
|
resultRangesData.forEach(function (range) {
|
|
109
104
|
var rangeOption = range[2] || {};
|
|
110
105
|
if (rangeOption.className) {
|
|
111
|
-
rangeOption.className =
|
|
112
|
-
.concat(custom.className, ' ')
|
|
113
|
-
.concat(rangeOption.className);
|
|
106
|
+
rangeOption.className = "".concat(custom.className, " ").concat(rangeOption.className);
|
|
114
107
|
} else {
|
|
115
108
|
rangeOption.className = custom.className;
|
|
116
109
|
}
|
|
@@ -118,4 +111,4 @@ function getCustomRanges(input, custom) {
|
|
|
118
111
|
});
|
|
119
112
|
}
|
|
120
113
|
return ranges;
|
|
121
|
-
}
|
|
114
|
+
}
|
|
@@ -4,11 +4,7 @@ export default function getType(instance) {
|
|
|
4
4
|
return 'falsely';
|
|
5
5
|
}
|
|
6
6
|
if (Array.isArray(instance)) {
|
|
7
|
-
if (
|
|
8
|
-
instance.length === 2 &&
|
|
9
|
-
typeof instance[0] === 'number' &&
|
|
10
|
-
typeof instance[1] === 'number'
|
|
11
|
-
) {
|
|
7
|
+
if (instance.length === 2 && typeof instance[0] === 'number' && typeof instance[1] === 'number') {
|
|
12
8
|
return 'range';
|
|
13
9
|
}
|
|
14
10
|
return 'array';
|
|
@@ -24,4 +20,4 @@ export default function getType(instance) {
|
|
|
24
20
|
return type;
|
|
25
21
|
}
|
|
26
22
|
return 'other';
|
|
27
|
-
}
|
|
23
|
+
}
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import type { HighlighedContentsProps } from './HighlighedContents';
|
|
3
3
|
import type { HighlightType } from './types';
|
|
4
|
-
export interface HighlightTextareaProps
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
prefixCls?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
textAreaClassName?: string;
|
|
13
|
-
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
14
|
-
highlight?: HighlightType;
|
|
4
|
+
export interface HighlightTextareaProps extends HighlighedContentsProps, Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, 'value' | 'onChange' | 'onScroll' | 'style'> {
|
|
5
|
+
prefixCls?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
textAreaClassName?: string;
|
|
8
|
+
onChange?: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
+
highlight?: HighlightType;
|
|
15
10
|
}
|
|
16
|
-
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<
|
|
17
|
-
HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>
|
|
18
|
-
>;
|
|
11
|
+
declare const HighlightWithinTextarea: React.ForwardRefExoticComponent<HighlightTextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
19
12
|
export default HighlightWithinTextarea;
|