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,23 +1,18 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { css, jsx } from '@emotion/core';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
7
4
|
import { HelperText, InputBase, Label } from "../..";
|
|
8
5
|
import locale from "../../../locale";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import { forwardRef, useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
8
|
+
import { cursorNotAllowed, displayBlock, mgb, positionRelative } from "../../../styles/general";
|
|
11
9
|
import { classNames, onValidate, refType as ref } from "../../../utils";
|
|
12
|
-
const {
|
|
13
|
-
spacing
|
|
14
|
-
} = useTheme();
|
|
15
10
|
const regexValidNumber = /[^0-9.,-]/g;
|
|
16
11
|
const regexNumber = /[^0-9]/g;
|
|
17
|
-
const regexThousandNumber = /(\d)(?=(\d{3})+\b)/g;
|
|
12
|
+
const regexThousandNumber = /(\d)(?=(\d{3})+\b)/g;
|
|
18
13
|
|
|
14
|
+
// Clamp number between two values with the following line:
|
|
19
15
|
const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
|
|
20
|
-
|
|
21
16
|
const NumberInput = /*#__PURE__*/forwardRef(({
|
|
22
17
|
action = {},
|
|
23
18
|
autoFocus,
|
|
@@ -34,7 +29,7 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
34
29
|
fixedDecimalDigit,
|
|
35
30
|
helperTextProps,
|
|
36
31
|
inputProps,
|
|
37
|
-
inputRef,
|
|
32
|
+
inputRef: inputRefProp,
|
|
38
33
|
inputStyle,
|
|
39
34
|
label,
|
|
40
35
|
labelProps,
|
|
@@ -59,15 +54,17 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
59
54
|
value: valueProps,
|
|
60
55
|
viewType
|
|
61
56
|
}, reference) => {
|
|
62
|
-
|
|
57
|
+
if (!reference) reference = useRef(null);
|
|
58
|
+
if (!inputRefProp) inputRefProp = useRef(null);
|
|
63
59
|
const pos = useRef(null);
|
|
64
60
|
const ref = useRef(null);
|
|
65
61
|
const globalRef = useRef({});
|
|
62
|
+
const inputRef = useRef(null);
|
|
66
63
|
const [value, setValue] = useState(defaultValue);
|
|
67
|
-
const isError = !!error;
|
|
64
|
+
const isError = !!error;
|
|
68
65
|
|
|
66
|
+
// nếu không cho nhập số âm mà max là âm thì remove giá trị max
|
|
69
67
|
if (max < 0 && disabledNegative) max = null;
|
|
70
|
-
|
|
71
68
|
if (thousandSymbol) {
|
|
72
69
|
thousandSymbol = useMemo(() => {
|
|
73
70
|
return typeof thousandSymbol === 'string' ? thousandSymbol : decimalSymbol === ',' ? '.' : ',';
|
|
@@ -78,21 +75,18 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
78
75
|
} else {
|
|
79
76
|
thousandSymbol = '';
|
|
80
77
|
}
|
|
81
|
-
|
|
82
|
-
const validateResult = validates && onValidate(value, validates, true);
|
|
83
78
|
if (valueProps || valueProps === 0) valueProps = clamp(valueProps, min, max);
|
|
84
|
-
/**
|
|
85
|
-
* Convert number to format money
|
|
86
|
-
* @param vl {number} - value
|
|
87
|
-
* @type {function}
|
|
88
|
-
* @return {string}
|
|
89
|
-
* @example 1200300.123 => 1,200,300.123
|
|
90
|
-
* @example 1200300,123 => 1.200.300,123
|
|
91
|
-
*/
|
|
92
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Convert number to format money
|
|
82
|
+
* @param vl {number} - value
|
|
83
|
+
* @type {function}
|
|
84
|
+
* @return {string}
|
|
85
|
+
* @example 1200300.123 => 1,200,300.123
|
|
86
|
+
* @example 1200300,123 => 1.200.300,123
|
|
87
|
+
*/
|
|
93
88
|
const parseNumberToMoney = useCallback((vl, isNumber) => {
|
|
94
89
|
var _number, _number2, _number$, _number3;
|
|
95
|
-
|
|
96
90
|
const {
|
|
97
91
|
current: {
|
|
98
92
|
selectionStart
|
|
@@ -100,49 +94,44 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
100
94
|
} = inputRef;
|
|
101
95
|
let number = convertMoneyToNumber(vl, isNumber);
|
|
102
96
|
if (disabledNegative && Number(number || 0) < 0) number = clamp(number, min, max);
|
|
103
|
-
if (typeof max !== 'undefined' && Number(number) > max) number = Math.min(number, max);
|
|
97
|
+
if (typeof max !== 'undefined' && Number(number) > max) number = Math.min(number, max);
|
|
104
98
|
|
|
99
|
+
// number = Currency.format(number);
|
|
105
100
|
if (!number) return number;
|
|
106
101
|
number = (_number = number) === null || _number === void 0 ? void 0 : _number.toString().split('.');
|
|
107
|
-
|
|
108
102
|
if (number.length === 2 && !number[0]) {
|
|
109
103
|
number[0] = '0';
|
|
110
104
|
pos.current = 2;
|
|
111
105
|
}
|
|
112
|
-
|
|
113
106
|
number[0] = (_number2 = number) === null || _number2 === void 0 ? void 0 : _number2[0].replace(regexThousandNumber, '$1' + thousandSymbol); // add a thousand symbol to number
|
|
114
107
|
|
|
115
108
|
if (!decimalDigit) number.length = 1;else if (number[1]) number[1] = (_number$ = number[1]) === null || _number$ === void 0 ? void 0 : _number$.slice(0, decimalDigit || 0);
|
|
116
|
-
number = number.join(decimalSymbol);
|
|
117
|
-
|
|
109
|
+
number = number.join(decimalSymbol);
|
|
110
|
+
// keep focus position
|
|
118
111
|
if (((_number3 = number) === null || _number3 === void 0 ? void 0 : _number3.indexOf(thousandSymbol)) > -1 && selectionStart !== number.length + 1) {
|
|
119
112
|
pos.current = selectionStart + (number.toString().length - 1 === vl.toString().length ? 1 : 0);
|
|
120
113
|
}
|
|
121
|
-
|
|
122
114
|
return number;
|
|
123
115
|
}, [decimalSymbol, max, value]);
|
|
124
|
-
/**
|
|
125
|
-
* Convert money to format number
|
|
126
|
-
* @param vl {string} - value
|
|
127
|
-
* @type {function}
|
|
128
|
-
* @return {number}
|
|
129
|
-
* @example 1,200,300.123 => 1200300.123
|
|
130
|
-
* @example 1.200.300,123 => 1200300.123
|
|
131
|
-
*/
|
|
132
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Convert money to format number
|
|
119
|
+
* @param vl {string} - value
|
|
120
|
+
* @type {function}
|
|
121
|
+
* @return {number}
|
|
122
|
+
* @example 1,200,300.123 => 1200300.123
|
|
123
|
+
* @example 1.200.300,123 => 1200300.123
|
|
124
|
+
*/
|
|
133
125
|
const convertMoneyToNumber = useCallback((vl, isNumber) => {
|
|
134
126
|
var _number4, _number4$toString, _number4$toString$rep, _number4$toString$rep2, _number4$toString$rep3;
|
|
135
|
-
|
|
136
127
|
let number = vl === null || vl === void 0 ? void 0 : vl.toString().replace(regexValidNumber, ''); // allow number and , || . || -
|
|
137
|
-
// remove <thousandSymbol> and replace . to <decimalSymbol>
|
|
138
128
|
|
|
129
|
+
// remove <thousandSymbol> and replace . to <decimalSymbol>
|
|
139
130
|
if (!isNumber) number = (_number4 = number) === null || _number4 === void 0 ? void 0 : (_number4$toString = _number4.toString()) === null || _number4$toString === void 0 ? void 0 : (_number4$toString$rep = _number4$toString.replaceAll) === null || _number4$toString$rep === void 0 ? void 0 : (_number4$toString$rep2 = (_number4$toString$rep3 = _number4$toString$rep.call(_number4$toString, thousandSymbol, '')).replaceAll) === null || _number4$toString$rep2 === void 0 ? void 0 : _number4$toString$rep2.call(_number4$toString$rep3, decimalSymbol, '.');
|
|
140
131
|
return number;
|
|
141
132
|
}, [decimalSymbol]);
|
|
142
|
-
|
|
143
133
|
const _onInput = e => {
|
|
144
134
|
var _e$target$value;
|
|
145
|
-
|
|
146
135
|
let valueT = (_e$target$value = e.target.value) !== null && _e$target$value !== void 0 ? _e$target$value : e.value;
|
|
147
136
|
if (disabledNegative && Number(valueT || 0) < 0) return;
|
|
148
137
|
valueT = parseNumberToMoney(valueT);
|
|
@@ -153,32 +142,25 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
153
142
|
onInput === null || onInput === void 0 ? void 0 : onInput(e);
|
|
154
143
|
setValue(valueT);
|
|
155
144
|
};
|
|
156
|
-
|
|
157
145
|
const _onBlur = e => {
|
|
158
146
|
var _e$value;
|
|
159
|
-
|
|
160
147
|
let value = (_e$value = e.value) !== null && _e$value !== void 0 ? _e$value : e.target.value;
|
|
161
148
|
if (fixedDecimalDigit) value = Number(value).toFixed(decimalDigit);
|
|
162
|
-
|
|
163
149
|
if ((value || value === '' && typeof min !== 'undefined') && (typeof min !== 'undefined' || typeof max !== 'undefined')) {
|
|
164
150
|
value = convertMoneyToNumber(value);
|
|
165
|
-
|
|
166
151
|
if (Number(value) < min || Number(value) > max) {
|
|
167
152
|
const target = e.target;
|
|
168
153
|
target.value = clamp(value, min, max);
|
|
169
|
-
|
|
170
|
-
|
|
154
|
+
_onInput({
|
|
155
|
+
...e,
|
|
171
156
|
target
|
|
172
157
|
});
|
|
173
158
|
}
|
|
174
159
|
}
|
|
175
|
-
|
|
176
160
|
onBlur && onBlur(e);
|
|
177
161
|
};
|
|
178
|
-
|
|
179
162
|
const _onKeyDown = e => {
|
|
180
163
|
var _value$split, _value$split$;
|
|
181
|
-
|
|
182
164
|
const {
|
|
183
165
|
key,
|
|
184
166
|
keyCode,
|
|
@@ -190,64 +172,74 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
190
172
|
selectionStart,
|
|
191
173
|
selectionEnd
|
|
192
174
|
}
|
|
193
|
-
} = e;
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
175
|
+
} = e;
|
|
176
|
+
|
|
177
|
+
// 0-9 only
|
|
178
|
+
const isNumber = keyCode >= 48 && keyCode <= 57 && shiftKey === false || keyCode >= 96 && keyCode <= 105 || keyCode === 231 && key >= '0' && key <= '9';
|
|
179
|
+
|
|
180
|
+
// character input type="number"
|
|
181
|
+
let allowKeyTypeNumber = isNumber || keyCode === 8 ||
|
|
182
|
+
// key backspace
|
|
183
|
+
keyCode > 34 && keyCode < 40 || key === thousandSymbol || key === decimalSymbol || (ctrlKey || metaKey) && (keyCode === 65 || keyCode === 67 || keyCode === 86) ||
|
|
184
|
+
// ctrl + A, ctrl + C, ctrl + V
|
|
185
|
+
keyCode === 46 ||
|
|
186
|
+
// key delete
|
|
187
|
+
keyCode === 189 || keyCode === 109 ||
|
|
188
|
+
// -
|
|
201
189
|
keyCode === 9; // tab
|
|
190
|
+
|
|
202
191
|
// The key is delete (|| remove) and focus after the thousand digit
|
|
192
|
+
const removeDot = keyCode === 8 && selectionEnd - selectionStart <= 1 && value.charAt(selectionEnd - 1) === thousandSymbol;
|
|
203
193
|
|
|
204
|
-
|
|
194
|
+
// Decimal
|
|
205
195
|
// Do not allow the character decimal if decimalDigit is undefined
|
|
206
|
-
|
|
207
196
|
const isDecimalSymbol = decimalSymbol === key;
|
|
208
|
-
const disabledDecimalSymbol = isDecimalSymbol && !decimalDigit;
|
|
197
|
+
const disabledDecimalSymbol = isDecimalSymbol && !decimalDigit;
|
|
209
198
|
|
|
210
|
-
|
|
199
|
+
// Accepts only one decimal separator
|
|
200
|
+
const decimalExists = value.includes(decimalSymbol) && isDecimalSymbol;
|
|
211
201
|
|
|
212
|
-
|
|
202
|
+
// Disabled typing input when decimal digit to limit and focus is last
|
|
203
|
+
const disabledTypingDecimal = ((_value$split = value.split(decimalSymbol)) === null || _value$split === void 0 ? void 0 : (_value$split$ = _value$split[1]) === null || _value$split$ === void 0 ? void 0 : _value$split$.length) >= decimalDigit &&
|
|
204
|
+
// total number after decimal symbol > {decimalDigit}
|
|
213
205
|
selectionStart === value.length; // the focus is at the end of the string
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
206
|
+
const target = e.target;
|
|
207
|
+
// key arrow up
|
|
217
208
|
if (keyCode === 38) {
|
|
218
209
|
target.value = Number(convertMoneyToNumber(value) || 0) + step;
|
|
219
|
-
|
|
220
|
-
|
|
210
|
+
_onInput({
|
|
211
|
+
...e,
|
|
221
212
|
target
|
|
222
213
|
});
|
|
223
|
-
|
|
224
214
|
e.preventDefault();
|
|
225
|
-
}
|
|
215
|
+
}
|
|
216
|
+
// key arrow down
|
|
226
217
|
else if (keyCode === 40) {
|
|
227
218
|
target.value = Number(convertMoneyToNumber(value) || 0) - step;
|
|
228
|
-
|
|
229
|
-
|
|
219
|
+
_onInput({
|
|
220
|
+
...e,
|
|
230
221
|
target
|
|
231
222
|
});
|
|
232
|
-
|
|
233
223
|
e.preventDefault();
|
|
234
|
-
}
|
|
235
|
-
|
|
224
|
+
}
|
|
236
225
|
|
|
237
|
-
|
|
226
|
+
// disabled negative
|
|
227
|
+
const disabled180 = (keyCode === 189 || keyCode === 109) && (disabledNegative || value.includes('-'));
|
|
238
228
|
|
|
239
|
-
|
|
229
|
+
// disabled max digit
|
|
230
|
+
const isMaxDigit = maxDigit && (value === null || value === void 0 ? void 0 : value.replace(regexNumber, '').length) === maxDigit && (isNumber || key === thousandSymbol || key === decimalSymbol) && selectionStart === selectionEnd;
|
|
240
231
|
|
|
232
|
+
// Block event if include conditions
|
|
241
233
|
if (decimalExists || removeDot || isNumber && disabledTypingDecimal || disabledDecimalSymbol || !allowKeyTypeNumber || disabled180 || isMaxDigit) {
|
|
242
234
|
e.preventDefault();
|
|
243
235
|
}
|
|
244
|
-
|
|
245
236
|
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
246
237
|
};
|
|
247
|
-
|
|
238
|
+
const validateResult = validates && onValidate(Number(convertMoneyToNumber(value) || 0), validates, true);
|
|
248
239
|
useEffect(() => {
|
|
249
|
-
inputRef.current.value = value !== null && value !== void 0 ? value : null;
|
|
240
|
+
inputRef.current.value = value !== null && value !== void 0 ? value : null;
|
|
250
241
|
|
|
242
|
+
// keep focus position
|
|
251
243
|
if (pos.current) {
|
|
252
244
|
inputRef.current.setSelectionRange(pos.current, pos.current);
|
|
253
245
|
pos.current = null;
|
|
@@ -255,7 +247,6 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
255
247
|
}, [value]);
|
|
256
248
|
useEffect(() => {
|
|
257
249
|
var _valueProps;
|
|
258
|
-
|
|
259
250
|
if (typeof valueProps !== 'undefined') if (disabledNegative && Number(valueProps || 0) < 0) {
|
|
260
251
|
// nếu không cho nhập số âm mà value đầu vào là âm thì reset value về 0
|
|
261
252
|
valueProps = clamp(0, min, max);
|
|
@@ -265,11 +256,10 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
265
256
|
useImperativeHandle(reference, () => {
|
|
266
257
|
const currentRef = ref.current || {};
|
|
267
258
|
currentRef.element = ref.current;
|
|
268
|
-
const _instance = {
|
|
259
|
+
const _instance = {
|
|
260
|
+
...action
|
|
269
261
|
}; // methods
|
|
270
|
-
|
|
271
262
|
_instance.__proto__ = {}; // hidden methods
|
|
272
|
-
|
|
273
263
|
currentRef.instance = _instance;
|
|
274
264
|
return currentRef;
|
|
275
265
|
});
|
|
@@ -278,12 +268,16 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
278
268
|
css: NumberInputRoot,
|
|
279
269
|
className: classNames('DGN-UI-NumberInput', className, disabled && 'disabled'),
|
|
280
270
|
style: style
|
|
281
|
-
},
|
|
271
|
+
}, label ? jsx(Label, {
|
|
282
272
|
required: required,
|
|
283
273
|
disabled: disabled,
|
|
284
274
|
...labelProps
|
|
285
|
-
}, label), jsx(InputBase, {
|
|
286
|
-
inputRef:
|
|
275
|
+
}, label) : null, jsx(InputBase, {
|
|
276
|
+
inputRef: refs => {
|
|
277
|
+
if (!refs) return;
|
|
278
|
+
inputRef.current = refs;
|
|
279
|
+
typeof inputRefProp === 'function' ? inputRefProp(refs) : inputRefProp.current = refs;
|
|
280
|
+
},
|
|
287
281
|
viewType: viewType,
|
|
288
282
|
defaultValue: defaultValue,
|
|
289
283
|
value: value,
|
|
@@ -308,21 +302,24 @@ const NumberInput = /*#__PURE__*/forwardRef(({
|
|
|
308
302
|
const target = e.target;
|
|
309
303
|
target.value = globalRef.current.valueString;
|
|
310
304
|
target.valueString = globalRef.current.returnValue;
|
|
311
|
-
onChange({
|
|
305
|
+
onChange({
|
|
306
|
+
...e,
|
|
312
307
|
value: globalRef.current.value,
|
|
313
308
|
target
|
|
314
309
|
});
|
|
315
310
|
}
|
|
316
|
-
}), isError
|
|
311
|
+
}), isError ? jsx(HelperText, {
|
|
312
|
+
...helperTextProps,
|
|
317
313
|
disabled: disabled
|
|
318
|
-
}, error), !isError && validateResult
|
|
314
|
+
}, error) : null, !isError && validateResult ? jsx(HelperText, {
|
|
315
|
+
...helperTextProps,
|
|
319
316
|
disabled: disabled
|
|
320
|
-
}, validateResult));
|
|
317
|
+
}, validateResult) : null);
|
|
321
318
|
});
|
|
322
319
|
const NumberInputRoot = css`
|
|
323
320
|
${displayBlock};
|
|
324
321
|
${positionRelative};
|
|
325
|
-
|
|
322
|
+
${mgb([5])};
|
|
326
323
|
&.disabled {
|
|
327
324
|
${cursorNotAllowed};
|
|
328
325
|
}
|
|
@@ -351,116 +348,80 @@ NumberInput.defaultProps = {
|
|
|
351
348
|
NumberInput.propTypes = {
|
|
352
349
|
/** If `true`, the input element is focused during the first mount. */
|
|
353
350
|
autoFocus: PropTypes.bool,
|
|
354
|
-
|
|
355
351
|
/** If `true`, width of input will resize according to content. */
|
|
356
352
|
autoWidth: PropTypes.bool,
|
|
357
|
-
|
|
358
353
|
/** Class for component. */
|
|
359
354
|
className: PropTypes.string,
|
|
360
|
-
|
|
361
355
|
/** Number of decimal places allowed. */
|
|
362
356
|
decimalDigit: PropTypes.number,
|
|
363
|
-
|
|
364
357
|
/** Separator symbol. */
|
|
365
358
|
decimalSymbol: PropTypes.oneOf([',', '.']),
|
|
366
|
-
|
|
367
359
|
/** The default value. Use when the component is not controlled. */
|
|
368
360
|
defaultValue: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
369
|
-
|
|
370
361
|
/** The number of milliseconds to wait before call onChange. */
|
|
371
362
|
delayOnChange: PropTypes.number,
|
|
372
|
-
|
|
373
363
|
/** If `true`, the component is disabled. */
|
|
374
364
|
disabled: PropTypes.bool,
|
|
375
|
-
|
|
376
365
|
/** If `true`, negative numbers are not allowed. */
|
|
377
366
|
disabledNegative: PropTypes.bool,
|
|
378
|
-
|
|
379
367
|
/** [Icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic--basic) or element placed to the right of input. */
|
|
380
368
|
endIcon: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
381
|
-
|
|
382
369
|
/** Error displayed below input. */
|
|
383
370
|
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
384
|
-
|
|
385
371
|
/** If `true`, decimal digit is fixed. */
|
|
386
372
|
fixedDecimalDigit: PropTypes.bool,
|
|
387
|
-
|
|
388
373
|
/** Props applied to the [HelperText](https://core.diginet.com.vn/ui/?path=/story/form-control-text-helpertext) element. */
|
|
389
374
|
helperTextProps: PropTypes.object,
|
|
390
|
-
|
|
391
375
|
/** [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#attributes) applied to the input element. */
|
|
392
376
|
inputProps: PropTypes.object,
|
|
393
|
-
|
|
394
377
|
/** Pass a ref to the input element. */
|
|
395
378
|
inputRef: ref,
|
|
396
|
-
|
|
397
379
|
/** Style inline of input element. */
|
|
398
380
|
inputStyle: PropTypes.object,
|
|
399
|
-
|
|
400
381
|
/** The label of the component. */
|
|
401
382
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
402
|
-
|
|
403
383
|
/** Props applied to the [Label](https://core.diginet.com.vn/ui/?path=/docs/form-control-text-label) element. */
|
|
404
384
|
labelProps: PropTypes.object,
|
|
405
|
-
|
|
406
385
|
/** Maximum possible value. */
|
|
407
386
|
max: PropTypes.number,
|
|
408
|
-
|
|
409
387
|
/** Maximum value character (not including separator). */
|
|
410
388
|
maxDigit: PropTypes.number,
|
|
411
|
-
|
|
412
389
|
/** Minimal possible value. */
|
|
413
390
|
min: PropTypes.number,
|
|
414
|
-
|
|
415
391
|
/** Callback fired when the input is blurred. */
|
|
416
392
|
onBlur: PropTypes.func,
|
|
417
|
-
|
|
418
393
|
/** Callback fired when the value is changed. */
|
|
419
394
|
onChange: PropTypes.func,
|
|
420
|
-
|
|
421
395
|
/** Callback fired when the input is focused. */
|
|
422
396
|
onFocus: PropTypes.func,
|
|
423
|
-
|
|
424
397
|
/** Callback fired when input. */
|
|
425
398
|
onInput: PropTypes.func,
|
|
426
|
-
|
|
427
399
|
/** Callback fired when pressing a key. */
|
|
428
400
|
onKeyDown: PropTypes.func,
|
|
429
|
-
|
|
430
401
|
/** Callback fired when releases a key. */
|
|
431
402
|
onKeyUp: PropTypes.func,
|
|
432
|
-
|
|
433
403
|
/** The short hint displayed in the input before the user enters a value. */
|
|
434
404
|
placeholder: PropTypes.string,
|
|
435
|
-
|
|
436
405
|
/** If `true`, the component is readOnly. */
|
|
437
406
|
readOnly: PropTypes.bool,
|
|
438
|
-
|
|
439
407
|
/** If `true`, the input element is required. */
|
|
440
408
|
required: PropTypes.bool,
|
|
441
|
-
|
|
442
409
|
/** [Icon](https://core.diginet.com.vn/ui/?path=/story/icon-basic--basic) or element placed to the left of input. */
|
|
443
410
|
startIcon: PropTypes.any,
|
|
444
|
-
|
|
445
411
|
/** Specify how much the values should increase/decrease upon clicking on up/down button. */
|
|
446
412
|
step: PropTypes.number,
|
|
447
|
-
|
|
448
413
|
/** Style inline of component. */
|
|
449
414
|
style: PropTypes.object,
|
|
450
|
-
|
|
451
415
|
/** Thousand separator character. */
|
|
452
416
|
thousandSeparator: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['.', ','])]),
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
* *
|
|
456
|
-
* *
|
|
457
|
-
* * array: the validation rule list, insist object/string
|
|
417
|
+
/** Validation value, argument can:<br/>
|
|
418
|
+
* * string: the validation rule. Example required.<br/>
|
|
419
|
+
* * object: the validation rule insist name, property, message. Example {name: 'min', compareValue: 9, message: 'Error'} or {max: 99}<br/>
|
|
420
|
+
* * array: the validation rule list, insist object/string
|
|
458
421
|
*/
|
|
459
422
|
validates: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.array, PropTypes.func]),
|
|
460
|
-
|
|
461
423
|
/** The value of the input element, required for a controlled component. */
|
|
462
424
|
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
463
|
-
|
|
464
425
|
/** The variant to use. */
|
|
465
426
|
viewType: PropTypes.oneOf(['underlined', 'outlined', 'none'])
|
|
466
427
|
};
|