diginet-core-ui 1.3.88 → 1.3.89
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/assets/avatar/default.svg +3 -3
- package/assets/images/icons/wifi.svg +3 -3
- package/assets/images/menu/bem/WA3F0100.svg +6 -6
- package/assets/images/menu/bem/WA3F1025.svg +10 -10
- package/assets/images/menu/bem/WA3F2000.svg +10 -10
- package/assets/images/menu/bem/WA3F2020.svg +6 -6
- package/assets/images/menu/bem/WA3F2030.svg +14 -14
- package/assets/images/menu/bem/WA3F2040.svg +8 -8
- package/assets/images/menu/bem/WA3F2100.svg +6 -6
- package/assets/images/menu/dhr/ALL.svg +6 -6
- package/assets/images/menu/dhr/D00.svg +12 -12
- package/assets/images/menu/dhr/D09.svg +8 -8
- package/assets/images/menu/dhr/D13.svg +10 -10
- package/assets/images/menu/dhr/D15.svg +10 -10
- package/assets/images/menu/dhr/D21.svg +10 -10
- package/assets/images/menu/dhr/D25.svg +11 -11
- package/assets/images/menu/dhr/D29.svg +11 -11
- package/assets/images/menu/dhr/D38.svg +6 -6
- package/assets/images/menu/dhr/D39.svg +10 -10
- package/assets/images/menu/dhr/D51.svg +12 -12
- package/assets/images/menu/dhr/D52.svg +16 -16
- package/assets/images/menu/dhr/D77.svg +16 -16
- package/assets/images/menu/dhr/D84.svg +12 -12
- package/assets/images/menu/dhr/D89.svg +8 -8
- package/assets/images/menu/dhr/Default.svg +13 -13
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
- package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
- package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
- package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
- package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
- package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
- package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
- package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
- package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
- package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
- package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
- package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
- package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
- package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
- package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
- package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
- package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
- package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
- package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
- package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
- package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
- package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
- package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
- package/assets/images/menu/dhr/TASK.svg +9 -9
- package/assets/images/menu/dhr/W00F0001.svg +3 -3
- package/assets/images/menu/dhr/W00F0002.svg +3 -3
- package/assets/images/menu/dhr/W00F0003.svg +3 -3
- package/assets/images/menu/dhr/W00F0004.svg +3 -3
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W09F2000.svg +4 -4
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W77F1011.svg +19 -19
- package/assets/images/menu/dhr/W77F1013.svg +22 -22
- package/assets/images/menu/erp/D05.svg +8 -8
- package/assets/images/menu/erp/D06.svg +4 -4
- package/assets/images/menu/erp/D90R.svg +9 -9
- package/assets/images/menu/erp/DBC.svg +9 -9
- package/assets/images/menu/erp/W00F0001.svg +3 -3
- package/assets/images/menu/erp/W00F0002.svg +3 -3
- package/assets/images/menu/erp/W00F0003.svg +3 -3
- package/assets/images/menu/erp/W00F0004.svg +3 -3
- package/assets/images/menu/erp/W05F0001.svg +16 -16
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
- package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
- package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
- package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
- package/assets/images/menu/erp/W06F0001.svg +17 -17
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
- package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
- package/assets/images/menu/erp/WA3F1025.svg +5 -5
- package/assets/images/menu/erp/WA3F2100.svg +10 -10
- package/assets/storybook/avatar01.svg +9 -9
- package/assets/storybook/cover01.svg +9 -9
- package/components/accordion/details.js +2 -6
- package/components/accordion/group.js +2 -9
- package/components/accordion/index.js +2 -15
- package/components/accordion/summary.js +4 -27
- package/components/alert/index.js +2 -33
- package/components/alert/notify.js +12 -22
- package/components/avatar/index.js +22 -81
- package/components/badge/index.js +20 -45
- package/components/button/icon.js +25 -56
- package/components/button/index.js +16 -65
- package/components/button/more.js +15 -35
- package/components/button/ripple-effect.js +0 -10
- package/components/card/body.js +2 -7
- package/components/card/extra.js +2 -7
- package/components/card/footer.js +2 -7
- package/components/card/header.js +2 -7
- package/components/card/index.js +2 -22
- package/components/chart/Pie/Circle.js +0 -1
- package/components/chart/Pie/Sector.js +2 -19
- package/components/chart/Pie/Sectors.js +0 -10
- package/components/chart/Pie/index.js +4 -36
- package/components/chart/Pie-v2/Circle.js +0 -1
- package/components/chart/Pie-v2/Sector.js +2 -15
- package/components/chart/Pie-v2/Sectors.js +0 -20
- package/components/chart/Pie-v2/index.js +11 -38
- package/components/chart/bar/Axis.js +0 -12
- package/components/chart/bar/Bar.js +13 -35
- package/components/chart/bar/Grid.js +0 -18
- package/components/chart/bar/Labels.js +4 -22
- package/components/chart/bar/Points.js +0 -17
- package/components/chart/bar/index.js +6 -26
- package/components/chart/bar-v2/Axis.js +0 -12
- package/components/chart/bar-v2/Bar.js +15 -36
- package/components/chart/bar-v2/Grid.js +0 -18
- package/components/chart/bar-v2/Labels.js +4 -22
- package/components/chart/bar-v2/Points.js +0 -17
- package/components/chart/bar-v2/index.js +6 -26
- package/components/chart/line/Axis.js +4 -16
- package/components/chart/line/Grid.js +2 -19
- package/components/chart/line/Labels.js +4 -22
- package/components/chart/line/Path.js +24 -34
- package/components/chart/line/Point.js +7 -41
- package/components/chart/line/Title.js +0 -3
- package/components/chart/line/index.js +12 -35
- package/components/chart/line-v2/Axis.js +0 -13
- package/components/chart/line-v2/Grid.js +0 -18
- package/components/chart/line-v2/Labels.js +4 -22
- package/components/chart/line-v2/Path.js +23 -33
- package/components/chart/line-v2/Point.js +6 -35
- package/components/chart/line-v2/Title.js +0 -3
- package/components/chart/line-v2/index.js +12 -30
- package/components/check-text/index.js +7 -15
- package/components/check-text/interview-confirmation.js +24 -31
- package/components/check-text/interview-status.js +24 -31
- package/components/chip/attach.js +9 -22
- package/components/chip/index.js +13 -38
- package/components/collapse/index.js +0 -13
- package/components/divider/index.js +2 -13
- package/components/form-control/attachment/index.js +41 -202
- package/components/form-control/calendar/function.js +154 -208
- package/components/form-control/calendar/index.js +21 -46
- package/components/form-control/calendar/range.js +11 -28
- package/components/form-control/checkbox/index.js +12 -46
- package/components/form-control/control/index.js +4 -14
- package/components/form-control/date-picker/index-old.js +18 -0
- package/components/form-control/date-picker/index.js +23 -99
- package/components/form-control/date-range-picker/index.js +44 -180
- package/components/form-control/dropdown/index.js +101 -314
- package/components/form-control/dropdown-box/index.js +7 -37
- package/components/form-control/form/index.js +0 -2
- package/components/form-control/form-group/index.js +1 -6
- package/components/form-control/helper-text/index.js +2 -9
- package/components/form-control/input-base/index.js +4 -68
- package/components/form-control/label/index.js +2 -12
- package/components/form-control/money-input/index.js +54 -143
- package/components/form-control/number-input/index.js +26 -124
- package/components/form-control/number-input/index2.js +95 -134
- package/components/form-control/phone-input/index.js +23 -85
- package/components/form-control/radio/index.js +16 -35
- package/components/form-control/text-input/index.js +10 -46
- package/components/form-control/time-picker/index.js +43 -100
- package/components/form-control/time-picker/swiper.js +21 -73
- package/components/form-control/toggle/index.js +26 -40
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +0 -14
- package/components/form-view/input.js +2 -13
- package/components/form-view/label.js +0 -2
- package/components/grid/Col.js +2 -16
- package/components/grid/Container.js +2 -21
- package/components/grid/Row.js +2 -21
- package/components/grid/index.js +2 -44
- package/components/image/index.js +2 -22
- package/components/index.js +62 -31
- package/components/list/list-item-action.js +12 -21
- package/components/list/list-item-icon.js +10 -19
- package/components/list/list-item-text.js +0 -5
- package/components/list/list-item.js +27 -38
- package/components/list/list.js +37 -50
- package/components/list/sub-header.js +13 -17
- package/components/modal/body.js +2 -6
- package/components/modal/footer.js +2 -11
- package/components/modal/header.js +2 -12
- package/components/modal/index.js +2 -10
- package/components/modal/modal.js +11 -52
- package/components/others/extra/index.js +3 -10
- package/components/others/import/index.js +0 -7
- package/components/others/option-wrapper/index.js +4 -7
- package/components/others/scrollbar/index.js +0 -3
- package/components/paging/page-info.js +35 -99
- package/components/paging/page-selector.js +10 -38
- package/components/paging/page-selector2.js +35 -74
- package/components/paper/index.js +23 -34
- package/components/popover/body.js +2 -6
- package/components/popover/footer.js +2 -11
- package/components/popover/header.js +2 -7
- package/components/popover/index.js +54 -146
- package/components/popup/danger_popup.js +0 -19
- package/components/popup/index.js +4 -50
- package/components/popup/proposals_popup.js +11 -50
- package/components/popup/v2/index.js +13 -47
- package/components/progress/circular.js +10 -48
- package/components/progress/linear.js +58 -74
- package/components/rating/index.js +10 -35
- package/components/slider/slider-container.js +4 -41
- package/components/slider/slider-item.js +10 -25
- package/components/status/index.js +2 -14
- package/components/tab/tab-container.js +4 -18
- package/components/tab/tab-header.js +4 -24
- package/components/tab/tab-panel.js +4 -16
- package/components/tab/tab.js +8 -33
- package/components/tooltip/index.js +12 -97
- package/components/tooltip/portal.js +0 -2
- package/components/transfer/index.js +28 -73
- package/components/tree-view/index.js +62 -202
- package/components/typography/index.js +14 -42
- package/global/index.js +0 -8
- package/icons/basic.js +0 -48
- package/icons/effect.js +15 -32
- package/icons/general/clock/clock.js +0 -2
- package/icons/general/color-handler/background.js +0 -2
- package/icons/general/color-handler/text.js +0 -2
- package/icons/general/emoji/emoji.js +0 -2
- package/icons/general/font-properties/bold.js +0 -2
- package/icons/general/font-properties/font-family.js +0 -2
- package/icons/general/font-properties/font-size.js +0 -2
- package/icons/general/font-properties/italic.js +0 -2
- package/icons/general/font-properties/underline.js +0 -2
- package/icons/general/hyperlink/hyperlink.js +0 -2
- package/icons/general/indent/decrease.js +0 -2
- package/icons/general/indent/increase.js +0 -2
- package/icons/general/list/bullets.js +0 -2
- package/icons/general/list/numbering.js +0 -2
- package/icons/general/picture/picture.js +0 -2
- package/icons/general/steps/redo.js +0 -2
- package/icons/general/steps/undo.js +0 -2
- package/icons/general/text-align/center.js +0 -2
- package/icons/general/text-align/justify.js +0 -2
- package/icons/general/text-align/left.js +0 -2
- package/icons/general/text-align/right.js +0 -2
- package/icons/menu/dhr.js +2 -1
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +2 -15
- package/package.json +42 -42
- package/readme.md +1034 -1027
- package/styles/animation.js +15 -58
- package/styles/color-helper.js +127 -157
- package/styles/colors.js +17 -9
- package/styles/general.js +16 -57
- package/styles/typography.js +4 -4
- package/styles/utils.js +18 -18
- package/theme/createBreakpoints.js +7 -18
- package/theme/make-styles.js +2 -5
- package/theme/set-theme.js +6 -9
- package/theme/settings.js +17 -22
- package/theme/theme-provider.js +0 -1
- package/utils/array/array.js +45 -54
- package/utils/classNames/index.js +0 -5
- package/utils/console.js +0 -6
- package/utils/date.js +69 -138
- package/utils/error/error.js +3 -11
- package/utils/error/errors.js +100 -147
- package/utils/getFileType.js +0 -9
- package/utils/handleBreakpoints.js +0 -5
- package/utils/intersectionObserver.js +0 -5
- package/utils/iterator.js +0 -9
- package/utils/map-parent.js +3 -10
- package/utils/object/extend.js +0 -10
- package/utils/object/object.js +12 -11
- package/utils/parseHTML.js +0 -1
- package/utils/promisify.js +0 -5
- package/utils/randomString.js +0 -7
- package/utils/remove-unicode.js +0 -1
- package/utils/render-portal.js +1 -9
- package/utils/renderHTML.js +4 -6
- package/utils/renderIcon.js +9 -19
- package/utils/sb-template.js +6 -5
- package/utils/string/capitalize.js +0 -1
- package/utils/string/capitalizeSentenceCase.js +0 -2
- package/utils/string/string.js +0 -13
- package/utils/type.js +0 -21
- package/utils/updatePosition.js +4 -5
- package/utils/useDelayUnmount.js +0 -4
- package/utils/useElementSize.js +9 -3
- package/utils/useEventListener.js +12 -6
- package/utils/useInput.js +0 -6
- package/utils/useMediaQuery/index.js +8 -10
- package/utils/useOnClickOutside.js +2 -4
- package/utils/usePortal.js +12 -19
- package/utils/validate.js +39 -53
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useEffect, useRef, forwardRef, useState, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -49,17 +48,15 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
49
48
|
isPaste: false,
|
|
50
49
|
clipboardText: ''
|
|
51
50
|
});
|
|
52
|
-
|
|
53
51
|
if (!inputRef) {
|
|
54
52
|
inputRef = useRef(null);
|
|
55
53
|
}
|
|
56
|
-
|
|
57
54
|
const separatorSymbol = useRef(decimalSymbol === '.' ? ',' : '.');
|
|
58
55
|
const updated = useRef(false);
|
|
59
56
|
const [decimalDigit, setDecimalDigit] = useState(decimalDigitProp);
|
|
60
57
|
const formatPattern = new RegExp(`[0-9]|Backspace|Delete|Arrow|Home|End|Tab${decimalDigit === 0 ? '' : '|\\' + decimalSymbol}${disabledNegative ? '' : '|-'}`);
|
|
61
|
-
/* Start styled */
|
|
62
58
|
|
|
59
|
+
/* Start styled */
|
|
63
60
|
const NumberInputRoot = css`
|
|
64
61
|
display: block;
|
|
65
62
|
position: relative;
|
|
@@ -68,36 +65,27 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
68
65
|
/* End styled */
|
|
69
66
|
|
|
70
67
|
/* Start handler */
|
|
71
|
-
|
|
72
68
|
const getFormat = v => {
|
|
73
69
|
var _format$match;
|
|
74
|
-
|
|
75
70
|
let [number, decimal = ''] = v.split(decimalSymbol);
|
|
76
71
|
let existDecimalSymbol = v.includes(decimalSymbol);
|
|
77
72
|
if (!number || String(+number) === 'NaN') return number;
|
|
78
|
-
|
|
79
73
|
if (typeof format === 'function') {
|
|
80
74
|
return format(number);
|
|
81
75
|
}
|
|
82
|
-
|
|
83
76
|
if (/^#.###$/.test(format)) {
|
|
84
77
|
return number.replace(/\B(?=(\d{3})+(?!\d))/g, separatorSymbol.current) + (existDecimalSymbol ? decimalSymbol + decimal : '');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
}
|
|
79
|
+
// #.##.###, #.### %%
|
|
88
80
|
const numberFormat = format.slice(0, format.lastIndexOf('#') + 1);
|
|
89
|
-
|
|
90
81
|
if (numberFormat) {
|
|
91
82
|
if (/^#.###$/.test(numberFormat)) {
|
|
92
83
|
number = number.replace(/\B(?=(\d{3})+(?!\d))/g, separatorSymbol.current);
|
|
93
84
|
}
|
|
94
85
|
}
|
|
95
|
-
|
|
96
86
|
const dFormat = (_format$match = format.match(/(\d+)?%+$/g)) === null || _format$match === void 0 ? void 0 : _format$match[0];
|
|
97
|
-
|
|
98
87
|
if (dFormat && decimal) {
|
|
99
88
|
const dDigit = +(dFormat.replaceAll('%', '') || dFormat.length);
|
|
100
|
-
|
|
101
89
|
if (dDigit === 0) {
|
|
102
90
|
existDecimalSymbol = false;
|
|
103
91
|
decimal = '';
|
|
@@ -105,14 +93,11 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
105
93
|
decimal = decimal.slice(0, dDigit);
|
|
106
94
|
}
|
|
107
95
|
}
|
|
108
|
-
|
|
109
96
|
return number + (existDecimalSymbol ? decimalSymbol + decimal : '');
|
|
110
97
|
};
|
|
111
|
-
|
|
112
98
|
const getValueWithDecimal = v => {
|
|
113
99
|
if (v && typeof decimalDigit === 'number') {
|
|
114
100
|
let [number, decimal] = v.split(decimalSymbol);
|
|
115
|
-
|
|
116
101
|
if (decimal && decimal.length > decimalDigit) {
|
|
117
102
|
if (decimalDigit) {
|
|
118
103
|
decimal = decimal.slice(0, decimalDigit);
|
|
@@ -122,58 +107,46 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
122
107
|
}
|
|
123
108
|
}
|
|
124
109
|
}
|
|
125
|
-
|
|
126
110
|
return v;
|
|
127
111
|
};
|
|
128
|
-
|
|
129
112
|
const isDeleteSymbol = v => {
|
|
130
113
|
const valueArr = v.split(separatorSymbol.current);
|
|
131
|
-
|
|
132
114
|
for (let i = 0; i < valueArr.length; i++) {
|
|
133
115
|
if (valueArr[i].length > 3) {
|
|
134
116
|
return true;
|
|
135
117
|
}
|
|
136
118
|
}
|
|
137
|
-
|
|
138
119
|
return false;
|
|
139
120
|
};
|
|
140
|
-
|
|
141
121
|
const onKeyDownHandler = e => {
|
|
142
122
|
const key = e.key;
|
|
143
123
|
const keyCode = e.keyCode;
|
|
144
124
|
const value = inputRef.current.value;
|
|
145
125
|
let cursor = inputRef.current.selectionStart;
|
|
146
|
-
|
|
147
126
|
if (key.charCodeAt(0) > 127) {
|
|
148
127
|
local.current.isSpecialSymbol = true;
|
|
149
|
-
|
|
150
128
|
if (local.current.currentKeyCode === 8) {
|
|
151
129
|
local.current.currentKeyCode = null;
|
|
152
130
|
inputRef.current.value = local.current.currentValue;
|
|
153
131
|
}
|
|
154
|
-
|
|
155
132
|
e.preventDefault();
|
|
156
133
|
return false;
|
|
157
134
|
}
|
|
158
|
-
|
|
159
135
|
if (!formatPattern.test(key) && !(/a|x|c|v/i.test(key) && e.ctrlKey)) {
|
|
160
136
|
local.current.currentKey = key;
|
|
161
137
|
local.current.currentKeyCode = keyCode;
|
|
162
138
|
e.preventDefault();
|
|
163
139
|
return false;
|
|
164
140
|
}
|
|
165
|
-
|
|
166
141
|
if (/Arrow(Up|Down)/.test(key)) {
|
|
167
142
|
const number = +value.replace(new RegExp(`[^0-9\\${decimalSymbol}\\-]`, 'g'), '').replace(decimalSymbol, '.');
|
|
168
143
|
const plusNumber = key === 'ArrowDown' ? -step : step;
|
|
169
144
|
let result = number + plusNumber;
|
|
170
|
-
|
|
171
145
|
if (result < min) {
|
|
172
146
|
result = min;
|
|
173
147
|
} else if (result > max) {
|
|
174
148
|
result = max;
|
|
175
149
|
}
|
|
176
|
-
|
|
177
150
|
if (result !== number) {
|
|
178
151
|
local.current.currentKey = key;
|
|
179
152
|
result = result.toString().replace('.', decimalSymbol);
|
|
@@ -182,11 +155,9 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
182
155
|
target: inputRef.current
|
|
183
156
|
});
|
|
184
157
|
}
|
|
185
|
-
|
|
186
158
|
e.preventDefault();
|
|
187
159
|
return false;
|
|
188
160
|
}
|
|
189
|
-
|
|
190
161
|
if (keyCode === 8) {
|
|
191
162
|
if (local.current.currentKeyCode === 231 || local.current.isSpecialSymbol) {
|
|
192
163
|
setTimeout(() => {
|
|
@@ -195,94 +166,80 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
195
166
|
e.preventDefault();
|
|
196
167
|
return false;
|
|
197
168
|
}
|
|
198
|
-
|
|
199
169
|
local.current.currentKeyCode = 8;
|
|
200
170
|
local.current.currentValue = value;
|
|
201
171
|
}
|
|
202
|
-
|
|
203
172
|
if (value.includes('-') && cursor === 0 && /[1-9]/.test(key)) {
|
|
204
173
|
inputRef.current.value = value.replace('-', `-${key}`);
|
|
205
174
|
inputRef.current.setSelectionRange(2, 2);
|
|
206
175
|
e.preventDefault();
|
|
207
176
|
return false;
|
|
208
177
|
}
|
|
209
|
-
|
|
210
178
|
if (key === '-' && (cursor !== 0 || value[0] === '-') || key === decimalSymbol && value.includes(key)) {
|
|
211
179
|
e.preventDefault();
|
|
212
180
|
return false;
|
|
213
181
|
}
|
|
214
|
-
|
|
215
182
|
if (/x/i.test(key)) {
|
|
216
183
|
local.current.clipboardText = window.getSelection().toString();
|
|
217
184
|
} else if (/\d/.test(key)) {
|
|
218
185
|
local.current.currentValue = value;
|
|
219
186
|
}
|
|
220
|
-
|
|
221
187
|
local.current.isSpecialSymbol = false;
|
|
222
188
|
local.current.isDeleteDecimalSymbol = key === 'Backspace' && value[cursor - 1] === decimalSymbol;
|
|
223
189
|
local.current.currentKey = key;
|
|
224
190
|
if (onKeyDown) onKeyDown(e);
|
|
225
191
|
};
|
|
226
|
-
|
|
227
192
|
const onPasteHandler = e => {
|
|
228
193
|
var _local$current$clipbo;
|
|
229
|
-
|
|
230
194
|
const value = e.target.value;
|
|
231
195
|
const existMinus = value.includes('-');
|
|
232
196
|
const pattern = new RegExp(`^${disabledNegative || existMinus ? '' : '-?'}(?:\\d{1,3}(?:,\\d{3})*|\\d+)?(?:\\${decimalSymbol}(\\d+)?)?$`, 'g');
|
|
233
197
|
local.current.clipboardText = (e.clipboardData || window.clipboardData).getData('text');
|
|
234
198
|
const decimalSymbolDigit = (_local$current$clipbo = local.current.clipboardText.match(new RegExp(decimalSymbol, 'g'))) === null || _local$current$clipbo === void 0 ? void 0 : _local$current$clipbo.length;
|
|
235
|
-
let selectionText = window.getSelection().toString();
|
|
236
|
-
|
|
237
|
-
if (!pattern.test(local.current.clipboardText.replaceAll(separatorSymbol.current, '')) ||
|
|
199
|
+
let selectionText = window.getSelection().toString();
|
|
200
|
+
// Only includes number and decimalSymbol
|
|
201
|
+
if (!pattern.test(local.current.clipboardText.replaceAll(separatorSymbol.current, '')) ||
|
|
202
|
+
// Only one decimalSymbol
|
|
238
203
|
decimalSymbolDigit && value.includes(decimalSymbol) && !selectionText.includes(decimalSymbol)) {
|
|
239
204
|
e.preventDefault();
|
|
240
205
|
return;
|
|
241
206
|
}
|
|
242
|
-
|
|
243
207
|
local.current.isPaste = true;
|
|
244
208
|
};
|
|
245
|
-
|
|
246
209
|
const onChangeHandler = e => {
|
|
247
210
|
const value = e.target.value.replace(new RegExp(`[^0-9\\${decimalSymbol}\\${separatorSymbol.current}\\-]`, 'g'), '');
|
|
248
|
-
|
|
249
211
|
if (!value) {
|
|
250
212
|
e.value = null;
|
|
251
213
|
!!onChange && onChange(e);
|
|
252
214
|
e.value = undefined;
|
|
253
215
|
return;
|
|
254
216
|
}
|
|
255
|
-
|
|
256
217
|
let result = getValueWithMinMax(value);
|
|
257
|
-
|
|
258
218
|
if (/\d/.test(local.current.currentKey)) {
|
|
259
219
|
if (!!+result && +result < +getValueWithMinMax(value.replace(local.current.currentKey, ''))) {
|
|
260
220
|
e.target.value = local.current.currentValue;
|
|
261
221
|
return;
|
|
262
222
|
}
|
|
263
223
|
}
|
|
264
|
-
|
|
265
224
|
let cursor = e.target.selectionStart;
|
|
266
|
-
const el = {
|
|
225
|
+
const el = {
|
|
226
|
+
...e
|
|
267
227
|
};
|
|
268
|
-
el.target = {
|
|
228
|
+
el.target = {
|
|
229
|
+
...e.target
|
|
269
230
|
};
|
|
270
231
|
const hasDecimal = result.includes(decimalSymbol);
|
|
271
232
|
let [number, decimal = ''] = result.split(decimalSymbol);
|
|
272
|
-
|
|
273
233
|
if (hasDecimal) {
|
|
274
234
|
if (typeof decimalDigit === 'number') {
|
|
275
235
|
decimal = decimal.replaceAll(separatorSymbol.current, '').substr(0, decimalDigit);
|
|
276
236
|
}
|
|
277
|
-
|
|
278
237
|
decimal = (hasDecimal ? decimalSymbol : '') + decimal;
|
|
279
238
|
result = number + decimal;
|
|
280
239
|
}
|
|
281
|
-
|
|
282
240
|
if (format && (formatPattern.test(local.current.currentKey) || local.current.isPaste || /x|Arrow(Up|Down)/i.test(local.current.currentKey))) {
|
|
283
241
|
const decimalSymbolIndex = result.indexOf(decimalSymbol);
|
|
284
242
|
number = number.replaceAll(separatorSymbol.current, '');
|
|
285
|
-
|
|
286
243
|
if (local.current.currentKey === decimalSymbol) {
|
|
287
244
|
cursor = number.length + Math.ceil(number.length / 3);
|
|
288
245
|
} else if (!isNaN(local.current.currentKey)) {
|
|
@@ -303,7 +260,6 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
303
260
|
}
|
|
304
261
|
} else if (local.current.isPaste) {
|
|
305
262
|
var _result$slice$match, _local$current$clipbo2;
|
|
306
|
-
|
|
307
263
|
const simpleNumber = number + decimal;
|
|
308
264
|
const cursorBefore = cursor - local.current.clipboardText.length;
|
|
309
265
|
const cursorAfter = cursorBefore - (((_result$slice$match = result.slice(0, cursorBefore).match(new RegExp(`\\${separatorSymbol.current}`, 'g'))) === null || _result$slice$match === void 0 ? void 0 : _result$slice$match.length) || 0) + local.current.clipboardText.length;
|
|
@@ -317,7 +273,6 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
317
273
|
} else if (/Arrow(Up|Down)/i.test(local.current.currentKey)) {
|
|
318
274
|
cursor += Math.floor((number.length - 1) / 3);
|
|
319
275
|
}
|
|
320
|
-
|
|
321
276
|
result = number + decimal;
|
|
322
277
|
cursor = Math.max(0, cursor);
|
|
323
278
|
e.target.value = getFormat(number) + decimal;
|
|
@@ -325,9 +280,8 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
325
280
|
} else {
|
|
326
281
|
e.target.value = result;
|
|
327
282
|
e.target.setSelectionRange(cursor, cursor);
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
|
|
283
|
+
}
|
|
284
|
+
// el.target.value = result;
|
|
331
285
|
if (valueTypeReturn === 'string') {
|
|
332
286
|
el.value = result;
|
|
333
287
|
el.target.value = result;
|
|
@@ -336,21 +290,16 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
336
290
|
el.value = newResult;
|
|
337
291
|
el.target.value = newResult;
|
|
338
292
|
}
|
|
339
|
-
|
|
340
293
|
!!onChange && onChange(el);
|
|
341
294
|
};
|
|
342
|
-
|
|
343
295
|
const onBlurHandler = e => {
|
|
344
296
|
const v = e.target.value.replace(new RegExp(`[^0-9\\${decimalSymbol}\\-]`, 'g'), '');
|
|
345
|
-
|
|
346
297
|
if (v !== getValueWithMinMax(v)) {
|
|
347
298
|
e.target.value = getValueWithMinMax(v);
|
|
348
299
|
onChangeHandler(e);
|
|
349
300
|
}
|
|
350
|
-
|
|
351
301
|
!!onBlur && onBlur(e);
|
|
352
302
|
};
|
|
353
|
-
|
|
354
303
|
const setValueIntoInput = v => {
|
|
355
304
|
if (v === null || v === undefined) {
|
|
356
305
|
inputRef.current.value = '';
|
|
@@ -360,32 +309,25 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
360
309
|
inputRef.current.value = format ? getFormat(v) : v;
|
|
361
310
|
}
|
|
362
311
|
};
|
|
363
|
-
|
|
364
312
|
const getValueWithMinMax = v => {
|
|
365
313
|
v = v.toString().replace(new RegExp(`[^0-9\\${decimalSymbol}\\-]`, 'g'), '').replace(decimalSymbol, '.');
|
|
366
|
-
|
|
367
314
|
if (+v < min) {
|
|
368
315
|
v = min.toString();
|
|
369
316
|
} else if (+v > max) {
|
|
370
317
|
v = max.toString();
|
|
371
318
|
}
|
|
372
|
-
|
|
373
319
|
return v.replace('.', decimalSymbol);
|
|
374
320
|
};
|
|
375
|
-
|
|
376
321
|
useEffect(() => {
|
|
377
322
|
if (format) {
|
|
378
323
|
if (typeof format === 'string') {
|
|
379
324
|
const numberFormat = format.slice(0, format.lastIndexOf('#') + 1);
|
|
380
|
-
|
|
381
325
|
if (/^#.###$/.test(numberFormat)) {
|
|
382
326
|
separatorSymbol.current = format[1];
|
|
383
327
|
}
|
|
384
328
|
}
|
|
385
|
-
|
|
386
329
|
if (updated.current) {
|
|
387
330
|
const v = inputRef.current.value;
|
|
388
|
-
|
|
389
331
|
if (v) {
|
|
390
332
|
setValueIntoInput(v);
|
|
391
333
|
}
|
|
@@ -394,13 +336,12 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
394
336
|
}, [format]);
|
|
395
337
|
useEffect(() => {
|
|
396
338
|
!!refs && refs(ref);
|
|
397
|
-
|
|
398
339
|
if (defaultValue !== undefined && defaultValue !== '') {
|
|
399
340
|
setValueIntoInput(defaultValue);
|
|
400
|
-
}
|
|
341
|
+
}
|
|
342
|
+
// inputRef.current.addEventListener('focus', () => {
|
|
401
343
|
// inputRef.current.addEventListener('keydown', onKeyDownHandler);
|
|
402
344
|
// }, {once: true});
|
|
403
|
-
|
|
404
345
|
}, []);
|
|
405
346
|
useEffect(() => {
|
|
406
347
|
if (placeholder !== undefined) {
|
|
@@ -414,25 +355,18 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
414
355
|
}, [value]);
|
|
415
356
|
useEffect(() => {
|
|
416
357
|
let dDigit = decimalDigitProp;
|
|
417
|
-
|
|
418
358
|
if (format && typeof format === 'string') {
|
|
419
359
|
var _format$match2;
|
|
420
|
-
|
|
421
360
|
const dFormat = (_format$match2 = format.match(/(\d+)?%+$/g)) === null || _format$match2 === void 0 ? void 0 : _format$match2[0];
|
|
422
|
-
|
|
423
361
|
if (dFormat) {
|
|
424
362
|
dDigit = +(dFormat.replaceAll('%', '') || dFormat.length);
|
|
425
363
|
}
|
|
426
364
|
}
|
|
427
|
-
|
|
428
365
|
setDecimalDigit(dDigit);
|
|
429
|
-
|
|
430
366
|
if (typeof dDigit === 'number') {
|
|
431
367
|
const valueInput = inputRef.current.value;
|
|
432
|
-
|
|
433
368
|
if (valueInput) {
|
|
434
369
|
let [number, decimal] = valueInput.split(decimalSymbol);
|
|
435
|
-
|
|
436
370
|
if (decimal && decimal.length > dDigit) {
|
|
437
371
|
if (dDigit) {
|
|
438
372
|
decimal = decimal.slice(0, dDigit);
|
|
@@ -443,7 +377,6 @@ const NumberInput = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
443
377
|
}
|
|
444
378
|
}
|
|
445
379
|
}
|
|
446
|
-
|
|
447
380
|
if (!updated.current) {
|
|
448
381
|
updated.current = true;
|
|
449
382
|
}
|
|
@@ -514,108 +447,77 @@ NumberInput.defaultProps = {
|
|
|
514
447
|
NumberInput.propTypes = {
|
|
515
448
|
/** the type of border you want to display */
|
|
516
449
|
viewType: PropTypes.oneOf(['underlined', 'outlined']),
|
|
517
|
-
|
|
518
450
|
/** the type of value which you want to return */
|
|
519
451
|
valueTypeReturn: PropTypes.oneOf(['number', 'string']),
|
|
520
|
-
|
|
521
452
|
/** separator symbol */
|
|
522
453
|
decimalSymbol: PropTypes.oneOf([',', '.']),
|
|
523
|
-
|
|
524
454
|
/** default value is displayed for first render */
|
|
525
455
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
526
|
-
|
|
527
456
|
/** the displayed value for each change */
|
|
528
457
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
529
|
-
|
|
530
458
|
/** number of decimal places allowed */
|
|
531
459
|
decimalDigit: PropTypes.number,
|
|
532
|
-
|
|
533
460
|
/** min of value was allowed */
|
|
534
461
|
min: PropTypes.number,
|
|
535
|
-
|
|
536
462
|
/** max of value was allowed */
|
|
537
463
|
max: PropTypes.number,
|
|
538
|
-
|
|
539
464
|
/** step of input */
|
|
540
465
|
step: PropTypes.number,
|
|
541
|
-
|
|
542
466
|
/** label for input */
|
|
543
467
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
544
|
-
|
|
545
468
|
/** hints for input */
|
|
546
469
|
placeholder: PropTypes.string,
|
|
547
|
-
|
|
548
470
|
/** error for input */
|
|
549
471
|
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
550
|
-
|
|
551
472
|
/** icon at start */
|
|
552
473
|
startIcon: PropTypes.any,
|
|
553
|
-
|
|
554
474
|
/** icon at end */
|
|
555
475
|
endIcon: PropTypes.any,
|
|
556
|
-
|
|
557
476
|
/** prevent all event if true, hide all icon */
|
|
558
477
|
disabled: PropTypes.bool,
|
|
559
|
-
|
|
560
478
|
/** transparent border color if true */
|
|
561
479
|
nonStyle: PropTypes.bool,
|
|
562
|
-
|
|
563
480
|
/** prevent all event if true */
|
|
564
481
|
readOnly: PropTypes.bool,
|
|
565
|
-
|
|
566
482
|
/** auto focus after first render */
|
|
567
483
|
autoFocus: PropTypes.bool,
|
|
568
|
-
|
|
569
484
|
/** negative numbers are not allowed if true */
|
|
570
485
|
disabledNegative: PropTypes.bool,
|
|
571
|
-
|
|
572
486
|
/** At least one character is required */
|
|
573
487
|
required: PropTypes.bool,
|
|
574
|
-
|
|
575
488
|
/** props of input in NumberInput component */
|
|
576
489
|
inputProps: PropTypes.object,
|
|
577
|
-
|
|
578
490
|
/** style inline of input in NumberInput component */
|
|
579
491
|
inputStyle: PropTypes.object,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
*
|
|
583
|
-
* *
|
|
584
|
-
*
|
|
585
|
-
*  
|
|
586
|
-
*  
|
|
587
|
-
* %: decimal digit, '2%' === '%%'
|
|
492
|
+
/**
|
|
493
|
+
* the format to display value<br/>
|
|
494
|
+
* * function: value => function(value)<br/>
|
|
495
|
+
* * string: Example: '#.###', '# ###', '#.### 2%', '#.### %%'<br/>
|
|
496
|
+
* #: integer part digit<br/>
|
|
497
|
+
* . / '_': separator symbol<br/>
|
|
498
|
+
* %: decimal digit, '2%' === '%%'
|
|
588
499
|
*/
|
|
589
500
|
format: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
590
|
-
|
|
591
501
|
/** The function to get ref of NumberInput component */
|
|
592
502
|
refs: PropTypes.func,
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
* *
|
|
596
|
-
* *
|
|
597
|
-
* * array: the validation rule list, insist object/string
|
|
503
|
+
/** validation value, argument can:<br/>
|
|
504
|
+
* * string: the validation rule. Example required.<br/>
|
|
505
|
+
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
506
|
+
* * array: the validation rule list, insist object/string
|
|
598
507
|
*/
|
|
599
508
|
validates: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.func]),
|
|
600
|
-
|
|
601
509
|
/** on key down function */
|
|
602
510
|
onKeyDown: PropTypes.func,
|
|
603
|
-
|
|
604
511
|
/** on key up function */
|
|
605
512
|
onKeyUp: PropTypes.func,
|
|
606
|
-
|
|
607
513
|
/** on input function */
|
|
608
514
|
onInput: PropTypes.func,
|
|
609
|
-
|
|
610
515
|
/** on change function */
|
|
611
516
|
onChange: PropTypes.func,
|
|
612
|
-
|
|
613
517
|
/** on blur function */
|
|
614
518
|
onBlur: PropTypes.func,
|
|
615
|
-
|
|
616
519
|
/** on focus function */
|
|
617
520
|
onFocus: PropTypes.func,
|
|
618
|
-
|
|
619
521
|
/** inputRef of NumberInput component */
|
|
620
522
|
inputRef: PropTypes.any
|
|
621
523
|
};
|