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