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 { css, jsx } from '@emotion/core';
|
|
5
4
|
import { Button, ButtonIcon, Divider, HelperText, InputBase, Label, Typography } from "../..";
|
|
@@ -25,76 +24,58 @@ const {
|
|
|
25
24
|
spacing,
|
|
26
25
|
zIndex: zIndexCORE
|
|
27
26
|
} = useTheme();
|
|
28
|
-
|
|
29
27
|
const toLocalTimestamp = t => {
|
|
30
28
|
if (typeof t === 'object' && t.getTime) {
|
|
31
29
|
t = t.getTime();
|
|
32
30
|
}
|
|
33
|
-
|
|
34
31
|
if (typeof t === 'string' && !t.match(/\d{13}/)) {
|
|
35
32
|
t = Date.parse(t).getTime();
|
|
36
33
|
}
|
|
37
|
-
|
|
38
34
|
t = parseInt(t, 10) - new Date().getTimezoneOffset() * 60 * 1000;
|
|
39
35
|
return t;
|
|
40
36
|
};
|
|
41
|
-
|
|
42
37
|
const getDaysFrom1970 = t => {
|
|
43
38
|
return Math.floor(toLocalTimestamp(t) / 86400000);
|
|
44
39
|
};
|
|
45
|
-
|
|
46
40
|
const countDays = (start, end, startFromZero) => {
|
|
47
41
|
return Math.abs(getDaysFrom1970(start) - getDaysFrom1970(end)) + (startFromZero ? 0 : 1);
|
|
48
42
|
};
|
|
49
|
-
|
|
50
43
|
const formatValue = (value, format, utc = false) => {
|
|
51
44
|
return moment(value).format(format, utc);
|
|
52
45
|
};
|
|
53
|
-
|
|
54
46
|
const getDateOfWeek = date => {
|
|
55
47
|
let day = date.getDay();
|
|
56
48
|
if (day === 0) day = 7;
|
|
57
49
|
return day - 1;
|
|
58
50
|
};
|
|
59
|
-
|
|
60
51
|
const isValidDate = v => {
|
|
61
52
|
if (!v) return false;
|
|
62
|
-
|
|
63
53
|
if (Object.prototype.toString.call(v) === '[object Date]') {
|
|
64
54
|
return true;
|
|
65
55
|
}
|
|
66
|
-
|
|
67
56
|
return !isNaN(Date.parse(new Date(v)));
|
|
68
57
|
};
|
|
69
|
-
|
|
70
58
|
const isValidValues = v => {
|
|
71
59
|
if (!v || !Array.isArray(v) || v.length !== 2) {
|
|
72
60
|
return false;
|
|
73
61
|
}
|
|
74
|
-
|
|
75
62
|
return !!(isValidDate(v[0]) && isValidDate(v[1]) && +moment(v[0]).diff(v[1]) <= 0);
|
|
76
63
|
};
|
|
77
|
-
|
|
78
64
|
const isToday = day => {
|
|
79
65
|
return +moment(day).diff(new Date().setHours(0, 0, 0, 0)) === 0 ? unique.day.today : '';
|
|
80
66
|
};
|
|
81
|
-
|
|
82
67
|
const isLimit = (day, max, min) => {
|
|
83
68
|
return isBefore(min, day) || isAfter(max, day) ? unique.day.limit : '';
|
|
84
69
|
};
|
|
85
|
-
|
|
86
70
|
const isBefore = (min, time) => {
|
|
87
71
|
return min && isValidDate(min) && moment(time).diff(min) < 0;
|
|
88
72
|
};
|
|
89
|
-
|
|
90
73
|
const isAfter = (max, time) => {
|
|
91
74
|
return max && isValidDate(max) && moment(time).diff(max) > 0;
|
|
92
75
|
};
|
|
93
|
-
|
|
94
76
|
const parseDate = day => {
|
|
95
77
|
return Date.parse(new Date(day));
|
|
96
78
|
};
|
|
97
|
-
|
|
98
79
|
const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
99
80
|
action = {},
|
|
100
81
|
actionIconAt,
|
|
@@ -185,7 +166,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
185
166
|
valueTo.current = v;
|
|
186
167
|
setValueTo();
|
|
187
168
|
}, [valueTo]);
|
|
188
|
-
|
|
189
169
|
const isActive = day => {
|
|
190
170
|
if (values.current[0] && +moment(values.current[0]).diff(day) === 0) {
|
|
191
171
|
if (values.current[1] && +moment(values.current[0]).diff(values.current[1]) < 0) {
|
|
@@ -196,26 +176,20 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
196
176
|
} else if (values.current[1] && parseDate(values.current[1]) === parseDate(day)) {
|
|
197
177
|
return `${unique.day.to + ' ' + unique.day.active}`;
|
|
198
178
|
}
|
|
199
|
-
|
|
200
179
|
return '';
|
|
201
180
|
};
|
|
202
|
-
|
|
203
181
|
const isBetween = dayParsed => {
|
|
204
182
|
if (values.current[0] && values.current[1] && parseDate(values.current[0]) < dayParsed && dayParsed < parseDate(values.current[1])) {
|
|
205
183
|
return unique.day.between;
|
|
206
184
|
}
|
|
207
|
-
|
|
208
185
|
return '';
|
|
209
186
|
};
|
|
210
|
-
|
|
211
187
|
const countDay = v => {
|
|
212
188
|
if ((v === null || v === void 0 ? void 0 : v.length) === 2) {
|
|
213
189
|
return Number(+moment(v[1]).diff(v[0]) + (startFromZero ? 0 : 1));
|
|
214
190
|
}
|
|
215
|
-
|
|
216
191
|
return Number(startFromZero ? 0 : 1);
|
|
217
192
|
};
|
|
218
|
-
|
|
219
193
|
const onChangeValue = v => {
|
|
220
194
|
setInputValue(v[0], true);
|
|
221
195
|
setInputValue(v[1], false);
|
|
@@ -223,11 +197,9 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
223
197
|
value: [formatValue(v[0], returnFormat), formatValue(v[1], returnFormat), selected.current]
|
|
224
198
|
});
|
|
225
199
|
};
|
|
226
|
-
|
|
227
200
|
const onDayClick = e => {
|
|
228
201
|
const el = e.currentTarget;
|
|
229
202
|
const v = parseInt(el.dataset.time, 10);
|
|
230
|
-
|
|
231
203
|
if (values.current.length === 0) {
|
|
232
204
|
//push
|
|
233
205
|
el.classList.add(unique.day.active);
|
|
@@ -268,23 +240,21 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
268
240
|
}
|
|
269
241
|
}
|
|
270
242
|
};
|
|
271
|
-
|
|
272
243
|
const renderCalendar = (time, type) => {
|
|
273
244
|
time = new Date(time);
|
|
274
245
|
const firstDay = new Date(new Date(time).setDate(1)),
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
246
|
+
lastDay = new Date(firstDay.getFullYear(), firstDay.getMonth() + 1, 0),
|
|
247
|
+
prevDay = new Date(firstDay.getFullYear(), firstDay.getMonth(), 0),
|
|
248
|
+
lastDate = lastDay.getDate(),
|
|
249
|
+
prevDate = prevDay.getDate();
|
|
279
250
|
let tableBody = [],
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* days of previous month
|
|
251
|
+
tableRaw = [],
|
|
252
|
+
tableData = [],
|
|
253
|
+
weekDateFirst = getDateOfWeek(firstDay),
|
|
254
|
+
weekDateLast = getDateOfWeek(lastDay);
|
|
255
|
+
/**
|
|
256
|
+
* days of previous month
|
|
286
257
|
*/
|
|
287
|
-
|
|
288
258
|
for (let i = weekDateFirst; i > 0; i--) {
|
|
289
259
|
const day = Date.parse(new Date(time.getFullYear(), time.getMonth(), 1));
|
|
290
260
|
tableData.push(jsx("td", {
|
|
@@ -295,11 +265,9 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
295
265
|
className: unique.day.day
|
|
296
266
|
})));
|
|
297
267
|
}
|
|
298
|
-
/**
|
|
299
|
-
* days of current month
|
|
268
|
+
/**
|
|
269
|
+
* days of current month
|
|
300
270
|
*/
|
|
301
|
-
|
|
302
|
-
|
|
303
271
|
for (let i = 0; i < lastDate; i++) {
|
|
304
272
|
const day = new Date(time.getFullYear(), time.getMonth(), i + 1);
|
|
305
273
|
tableData.push(jsx("td", {
|
|
@@ -324,11 +292,9 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
324
292
|
type: 'h6'
|
|
325
293
|
}, i + 1)));
|
|
326
294
|
}
|
|
327
|
-
/**
|
|
328
|
-
* days of next month
|
|
295
|
+
/**
|
|
296
|
+
* days of next month
|
|
329
297
|
*/
|
|
330
|
-
|
|
331
|
-
|
|
332
298
|
for (let i = 0; i < 13 - weekDateLast; i++) {
|
|
333
299
|
const day = Date.parse(new Date(time.getFullYear(), time.getMonth() + 1, 0));
|
|
334
300
|
tableData.push(jsx("td", {
|
|
@@ -339,7 +305,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
339
305
|
className: unique.day.day
|
|
340
306
|
})));
|
|
341
307
|
}
|
|
342
|
-
|
|
343
308
|
for (let i = 0; i < 6; i++) {
|
|
344
309
|
for (let j = 0; j < 7; j++) {
|
|
345
310
|
tableRaw.push(tableData[7 * i + j] || jsx("td", {
|
|
@@ -347,31 +312,26 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
347
312
|
className: classNames(unique.table.data, 'next_month')
|
|
348
313
|
}));
|
|
349
314
|
}
|
|
350
|
-
|
|
351
315
|
tableBody.push(jsx("tr", {
|
|
352
316
|
key: i,
|
|
353
317
|
className: unique.day.week
|
|
354
318
|
}, tableRaw));
|
|
355
319
|
tableRaw = [];
|
|
356
320
|
}
|
|
357
|
-
|
|
358
321
|
if (type === 'from') {
|
|
359
322
|
onUpdateNavigator(time, navigatorFromRefs);
|
|
360
|
-
|
|
361
323
|
if (tableFrRef.current) {
|
|
362
324
|
tableFrRef.current.querySelector('tbody').remove();
|
|
363
325
|
render(tableBody, tableFrRef.current.appendChild(document.createElement('tbody')));
|
|
364
326
|
}
|
|
365
327
|
} else if (type === 'to') {
|
|
366
328
|
onUpdateNavigator(time, navigatorToRefs);
|
|
367
|
-
|
|
368
329
|
if (tableToRef.current) {
|
|
369
330
|
tableToRef.current.querySelector('tbody').remove();
|
|
370
331
|
render(tableBody, tableToRef.current.appendChild(document.createElement('tbody')));
|
|
371
332
|
}
|
|
372
333
|
}
|
|
373
334
|
};
|
|
374
|
-
|
|
375
335
|
const updateFromTo = (times = [new Date(), new Date()]) => {
|
|
376
336
|
const timeFr = new Date(times[0]);
|
|
377
337
|
const timeTo = new Date(times[1]);
|
|
@@ -380,7 +340,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
380
340
|
updateValueFr(from);
|
|
381
341
|
updateValueTo(to);
|
|
382
342
|
};
|
|
383
|
-
|
|
384
343
|
const update = v => {
|
|
385
344
|
if (v) {
|
|
386
345
|
if (isValidValues(v)) {
|
|
@@ -396,7 +355,8 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
396
355
|
} else {
|
|
397
356
|
updateValues([new Date().setHours(0, 0, 0, 0), new Date().setHours(0, 0, 0, 0)]);
|
|
398
357
|
updateSelected(0);
|
|
399
|
-
updateFromTo(values.current);
|
|
358
|
+
updateFromTo(values.current);
|
|
359
|
+
// setInputValue(values.current[0], true);
|
|
400
360
|
// setInputValue(values.current[1], false);
|
|
401
361
|
}
|
|
402
362
|
};
|
|
@@ -417,7 +377,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
417
377
|
style.left = left;
|
|
418
378
|
style.top = top + height + 4;
|
|
419
379
|
style.transformOrigin = '50% 20%';
|
|
420
|
-
|
|
421
380
|
if (style.top + pickerHeight > innerHeight) {
|
|
422
381
|
if (top > pickerHeight) {
|
|
423
382
|
style.top = innerHeight - pickerHeight - 4;
|
|
@@ -427,88 +386,71 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
427
386
|
style.transformOrigin = 'center';
|
|
428
387
|
}
|
|
429
388
|
}
|
|
430
|
-
|
|
431
389
|
const pickerWidth = window.innerWidth <= 633 ? 300 : 633;
|
|
432
|
-
|
|
433
390
|
if (left + pickerWidth > innerWidth) {
|
|
434
391
|
if (innerWidth > pickerWidth) {
|
|
435
392
|
style.left = (innerWidth - pickerWidth) / 2;
|
|
436
393
|
}
|
|
437
394
|
}
|
|
438
|
-
|
|
439
395
|
return pickerCSS.picker(style, width).styles;
|
|
440
396
|
};
|
|
441
|
-
|
|
442
397
|
const clearDayHovering = arr => {
|
|
443
398
|
if (values.current.length !== 2) {
|
|
444
399
|
for (let i in arr) {
|
|
445
400
|
arr[i].classList.remove(unique.day.from, unique.day.to, unique.day.between);
|
|
446
401
|
}
|
|
447
|
-
|
|
448
402
|
tooltipRef.current.style.visibility = 'hidden';
|
|
449
403
|
}
|
|
450
404
|
};
|
|
451
|
-
|
|
452
405
|
const createBackground = () => {
|
|
453
406
|
let background = document.getElementById(unique.backGr);
|
|
454
|
-
|
|
455
407
|
if (!background) {
|
|
456
408
|
background = document.createElement('div');
|
|
457
409
|
background.id = unique.backGr;
|
|
458
410
|
background.classList.add(unique.portal, unique.backGr);
|
|
459
411
|
document.body.appendChild(background);
|
|
460
412
|
}
|
|
461
|
-
|
|
462
413
|
background.style.cssText = pickerCSS.backGr;
|
|
463
414
|
return background;
|
|
464
415
|
};
|
|
465
|
-
|
|
466
416
|
const createPicker = anchor => {
|
|
467
417
|
const picker = document.createElement('div');
|
|
468
418
|
picker.id = unique.picker;
|
|
469
419
|
picker.style.cssText = getPickerStyle(anchor);
|
|
470
420
|
return picker;
|
|
471
421
|
};
|
|
472
|
-
|
|
473
422
|
const setPrevTime = (e, level, time, type) => {
|
|
474
423
|
if (!valueFr.current || !time) return;
|
|
475
424
|
const firstDayOfMin = min && new Date(new Date(min).setDate(1)).setHours(0, 0, 0, 0);
|
|
476
425
|
const firstDayOfTime = new Date(new Date(time).setDate(1)).setHours(0, 0, 0, 0);
|
|
477
|
-
|
|
478
426
|
if (level === 'month') {
|
|
479
427
|
if (firstDayOfMin) {
|
|
480
428
|
if (type === 'to' && getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMin) < 59) {
|
|
481
429
|
e.currentTarget.disabled = true;
|
|
482
430
|
return;
|
|
483
431
|
}
|
|
484
|
-
|
|
485
432
|
if (getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMin) < 28) {
|
|
486
433
|
e.currentTarget.disabled = true;
|
|
487
434
|
return;
|
|
488
435
|
}
|
|
489
436
|
}
|
|
490
|
-
|
|
491
437
|
time.setMonth(time.getMonth() - 1);
|
|
492
438
|
renderCalendar(time, type);
|
|
493
439
|
}
|
|
494
|
-
|
|
495
440
|
if (level === 'year') {
|
|
496
441
|
if (firstDayOfMin) {
|
|
497
442
|
if (type === 'to' && getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMin) < 396) {
|
|
498
443
|
e.currentTarget.disabled = true;
|
|
499
444
|
return;
|
|
500
445
|
}
|
|
501
|
-
|
|
502
446
|
if (getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMin) < 365) {
|
|
503
447
|
e.currentTarget.disabled = true;
|
|
504
448
|
return;
|
|
505
449
|
}
|
|
506
450
|
}
|
|
507
|
-
|
|
508
451
|
time.setFullYear(time.getFullYear() - 1);
|
|
509
452
|
renderCalendar(time, type);
|
|
510
453
|
}
|
|
511
|
-
|
|
512
454
|
if (type === 'to') {
|
|
513
455
|
if (+moment(time).diff(valueFr.current, 'months') < 1) {
|
|
514
456
|
valueFr.current.setFullYear(time.getFullYear());
|
|
@@ -517,46 +459,38 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
517
459
|
}
|
|
518
460
|
}
|
|
519
461
|
};
|
|
520
|
-
|
|
521
462
|
const setNextTime = (e, level, time, type) => {
|
|
522
463
|
if (!valueTo.current || !time) return;
|
|
523
464
|
const firstDayOfMax = max && new Date(new Date(max).setDate(1)).setHours(0, 0, 0, 0);
|
|
524
465
|
const firstDayOfTime = new Date(new Date(time).setDate(1)).setHours(0, 0, 0, 0);
|
|
525
|
-
|
|
526
466
|
if (level === 'month') {
|
|
527
467
|
if (firstDayOfMax) {
|
|
528
468
|
if (type === 'from' && getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMax) > -59) {
|
|
529
469
|
e.currentTarget.disabled = true;
|
|
530
470
|
return;
|
|
531
471
|
}
|
|
532
|
-
|
|
533
472
|
if (getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMax) > -28) {
|
|
534
473
|
e.currentTarget.disabled = true;
|
|
535
474
|
return;
|
|
536
475
|
}
|
|
537
476
|
}
|
|
538
|
-
|
|
539
477
|
time.setMonth(time.getMonth() + 1);
|
|
540
478
|
renderCalendar(time, type);
|
|
541
479
|
}
|
|
542
|
-
|
|
543
480
|
if (level === 'year') {
|
|
544
481
|
if (firstDayOfMax) {
|
|
545
482
|
if (type === 'from' && getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMax) > -396) {
|
|
546
483
|
e.currentTarget.disabled = true;
|
|
547
484
|
return;
|
|
548
485
|
}
|
|
549
|
-
|
|
550
486
|
if (getDaysFrom1970(firstDayOfTime) - getDaysFrom1970(firstDayOfMax) > -365) {
|
|
551
487
|
e.currentTarget.disabled = true;
|
|
552
488
|
return;
|
|
553
489
|
}
|
|
554
490
|
}
|
|
555
|
-
|
|
556
491
|
time.setFullYear(time.getFullYear() + 1);
|
|
557
492
|
renderCalendar(time, type);
|
|
558
493
|
}
|
|
559
|
-
|
|
560
494
|
if (type === 'from') {
|
|
561
495
|
if (+moment(time).diff(valueTo.current, 'months') >= 0) {
|
|
562
496
|
valueTo.current.setFullYear(time.getFullYear());
|
|
@@ -565,14 +499,11 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
565
499
|
}
|
|
566
500
|
}
|
|
567
501
|
};
|
|
568
|
-
|
|
569
502
|
const setButtonState = () => {
|
|
570
503
|
const isVisible = isEqual(values.current, tempValues.current);
|
|
571
|
-
|
|
572
504
|
const query = function (selector) {
|
|
573
505
|
return footerRef.current.querySelector(selector);
|
|
574
506
|
};
|
|
575
|
-
|
|
576
507
|
const close = query(`.${unique.close}`);
|
|
577
508
|
const cancel = query(`.${unique.cancel}`);
|
|
578
509
|
const confirm = query(`.${unique.confirm}`);
|
|
@@ -584,7 +515,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
584
515
|
display: 'inline-flex',
|
|
585
516
|
visibility: 'visible'
|
|
586
517
|
};
|
|
587
|
-
|
|
588
518
|
if (isVisible) {
|
|
589
519
|
Object.assign(close.style, visible);
|
|
590
520
|
Object.assign(cancel.style, hidden);
|
|
@@ -595,84 +525,72 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
595
525
|
Object.assign(close.style, hidden);
|
|
596
526
|
}
|
|
597
527
|
};
|
|
598
|
-
|
|
599
528
|
const onCancel = () => {
|
|
600
529
|
updateValues(tempValues.current);
|
|
601
530
|
setButtonState();
|
|
602
531
|
closePicker();
|
|
603
532
|
};
|
|
604
|
-
|
|
605
533
|
const onConfirm = () => {
|
|
606
534
|
setButtonState();
|
|
607
|
-
|
|
608
535
|
if (values.current.length === 1) {
|
|
609
536
|
onChangeValue([values.current[0], values.current[0]]);
|
|
610
537
|
} else {
|
|
611
538
|
onChangeValue(values.current);
|
|
612
539
|
}
|
|
613
|
-
|
|
614
540
|
closePicker();
|
|
615
541
|
};
|
|
616
|
-
|
|
617
542
|
const onSwap = open => {
|
|
618
543
|
if (!isEnable) return;
|
|
619
544
|
const t = iconRef.current.childNodes[+open];
|
|
620
|
-
|
|
621
545
|
if (open) {
|
|
622
|
-
Object.assign(t.style, {
|
|
546
|
+
Object.assign(t.style, {
|
|
547
|
+
...hiddenStyle
|
|
623
548
|
});
|
|
624
|
-
Object.assign(t.previousSibling.style, {
|
|
549
|
+
Object.assign(t.previousSibling.style, {
|
|
550
|
+
...activeStyle
|
|
625
551
|
});
|
|
626
552
|
setTimeout(() => {
|
|
627
553
|
t.previousSibling.style.pointerEvents = null;
|
|
628
554
|
}, 200);
|
|
629
555
|
} else {
|
|
630
|
-
Object.assign(t.style, {
|
|
556
|
+
Object.assign(t.style, {
|
|
557
|
+
...hiddenStyle
|
|
631
558
|
});
|
|
632
|
-
Object.assign(t.nextSibling.style, {
|
|
559
|
+
Object.assign(t.nextSibling.style, {
|
|
560
|
+
...activeStyle
|
|
633
561
|
});
|
|
634
562
|
setTimeout(() => {
|
|
635
563
|
t.nextSibling.style.pointerEvents = null;
|
|
636
564
|
}, 200);
|
|
637
565
|
}
|
|
638
566
|
};
|
|
639
|
-
|
|
640
567
|
const onScroll = () => {
|
|
641
568
|
const node = document.getElementById(unique.picker);
|
|
642
|
-
|
|
643
569
|
if (!ipConRef.current || !node) {
|
|
644
570
|
window.removeEventListener('scroll', onScroll);
|
|
645
571
|
return;
|
|
646
572
|
}
|
|
647
|
-
|
|
648
573
|
updatePosition(ipConRef.current, node, closePicker);
|
|
649
574
|
};
|
|
650
|
-
|
|
651
575
|
const onResize = () => {
|
|
652
576
|
if (!ref.current) return;
|
|
653
577
|
const {
|
|
654
578
|
width
|
|
655
579
|
} = ref.current.getBoundingClientRect();
|
|
656
580
|
const node = document.getElementById(unique.picker);
|
|
657
|
-
|
|
658
581
|
if (node) {
|
|
659
582
|
node.style.width = width + 'px';
|
|
660
583
|
}
|
|
661
|
-
|
|
662
584
|
onScroll();
|
|
663
585
|
};
|
|
664
|
-
|
|
665
586
|
const onDayHover = (e, arr) => {
|
|
666
587
|
const currentTime = parseInt(e.target.dataset.time, 10);
|
|
667
588
|
let tooltipContent = '';
|
|
668
589
|
if (e.target.classList.contains(unique.day.limit)) return;
|
|
669
|
-
|
|
670
590
|
for (let i in arr) {
|
|
671
591
|
const time = parseInt(arr[i].dataset.time, 10);
|
|
672
|
-
|
|
673
592
|
if (values.current[0] && !values.current[1]) {
|
|
674
593
|
const firstValue = Number(values.current[0]);
|
|
675
|
-
|
|
676
594
|
if (firstValue <= time && currentTime >= time && currentTime !== firstValue) {
|
|
677
595
|
if (time === firstValue) {
|
|
678
596
|
arr[i].classList.remove(unique.day.between, unique.day.to);
|
|
@@ -700,15 +618,12 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
700
618
|
}
|
|
701
619
|
}
|
|
702
620
|
}
|
|
703
|
-
|
|
704
621
|
if (values.current[0] && !values.current[1]) {
|
|
705
622
|
const dates = Math.abs(countDays(new Date(values.current), new Date(currentTime), startFromZero));
|
|
706
623
|
const tooltip = tooltipRef.current;
|
|
707
|
-
|
|
708
624
|
if (onShowTooltip && dates > 0) {
|
|
709
625
|
tooltipContent = dates + ' ' + unitText;
|
|
710
626
|
}
|
|
711
|
-
|
|
712
627
|
if (tooltipContent) {
|
|
713
628
|
const tooltipBounding = tooltip.getBoundingClientRect();
|
|
714
629
|
const dayBounding = e.target.getBoundingClientRect();
|
|
@@ -728,17 +643,14 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
728
643
|
tooltipRef.current.style.visibility = 'hidden';
|
|
729
644
|
}
|
|
730
645
|
};
|
|
731
|
-
|
|
732
646
|
const onPickerHover = (e, arr) => {
|
|
733
647
|
arr = Array.from(arr);
|
|
734
|
-
|
|
735
648
|
if (e.target.tagName && e.target.tagName.toLowerCase() === 'td') {
|
|
736
649
|
onDayHover(e, arr);
|
|
737
650
|
} else {
|
|
738
651
|
clearDayHovering(arr);
|
|
739
652
|
}
|
|
740
653
|
};
|
|
741
|
-
|
|
742
654
|
const pressESCHandler = event => {
|
|
743
655
|
if (event.key === 'Escape') {
|
|
744
656
|
onClickOutside({
|
|
@@ -746,12 +658,10 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
746
658
|
});
|
|
747
659
|
}
|
|
748
660
|
};
|
|
749
|
-
|
|
750
661
|
const renderPicker = () => {
|
|
751
662
|
renderCalendar(valueFr.current, 'from');
|
|
752
663
|
renderCalendar(valueTo.current, 'to');
|
|
753
664
|
};
|
|
754
|
-
|
|
755
665
|
const openPicker = anchor => {
|
|
756
666
|
const backGr = createBackground();
|
|
757
667
|
const picker = createPicker(anchor);
|
|
@@ -759,34 +669,31 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
759
669
|
const arr = pickerRef.current.getElementsByTagName('td');
|
|
760
670
|
updateTempValues(values.current.length === 1 ? [values.current[0], values.current[0]] : values.current);
|
|
761
671
|
setTimeout(() => {
|
|
762
|
-
Object.assign(picker.style, {
|
|
672
|
+
Object.assign(picker.style, {
|
|
673
|
+
...pickerCSS.active
|
|
763
674
|
});
|
|
764
675
|
renderPicker();
|
|
765
676
|
pickerRef.current.addEventListener('mouseover', e => onPickerHover(e, arr));
|
|
766
677
|
window.addEventListener('resize', onResize);
|
|
767
678
|
window.addEventListener('scroll', onScroll);
|
|
768
679
|
document.addEventListener('mousedown', onClickOutside);
|
|
769
|
-
|
|
770
680
|
if (pressESCToClose) {
|
|
771
681
|
document.addEventListener('keydown', pressESCHandler);
|
|
772
682
|
}
|
|
773
|
-
|
|
774
683
|
controls && setButtonState();
|
|
775
684
|
});
|
|
776
685
|
};
|
|
777
|
-
|
|
778
686
|
const closePicker = () => {
|
|
779
687
|
const backGr = document.getElementById(unique.backGr);
|
|
780
688
|
if (!backGr) return;
|
|
781
689
|
const picker = backGr.querySelector(`#${unique.picker}`);
|
|
782
690
|
if (!picker) return;
|
|
783
|
-
Object.assign(picker.style, {
|
|
691
|
+
Object.assign(picker.style, {
|
|
692
|
+
...pickerCSS.remove
|
|
784
693
|
});
|
|
785
|
-
|
|
786
694
|
if (pressESCToClose) {
|
|
787
695
|
document.removeEventListener('keydown', pressESCHandler);
|
|
788
696
|
}
|
|
789
|
-
|
|
790
697
|
document.removeEventListener('mousedown', onClickOutside);
|
|
791
698
|
window.removeEventListener('scroll', onScroll);
|
|
792
699
|
window.removeEventListener('resize', onResize);
|
|
@@ -794,22 +701,18 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
794
701
|
backGr.remove();
|
|
795
702
|
}, 200);
|
|
796
703
|
pickerRef.current && pickerRef.current.removeEventListener('mouseover', onPickerHover);
|
|
797
|
-
|
|
798
704
|
if (ipConRef.current) {
|
|
799
705
|
ipConRef.current.classList.remove(unique.focus);
|
|
800
706
|
ipConRef.current.style.zIndex = null;
|
|
801
707
|
}
|
|
802
|
-
|
|
803
708
|
ipRef.current && ipRef.current.blur();
|
|
804
709
|
updateTempValues([]);
|
|
805
710
|
};
|
|
806
|
-
|
|
807
711
|
const onClickOutside = e => {
|
|
808
712
|
if (ipConRef.current && !ipConRef.current.contains(e.target) && ipRef.current && !ipRef.current.contains(e.target) && pickerRef.current && !pickerRef.current.contains(e.target)) {
|
|
809
713
|
controls ? onCancel() : closePicker();
|
|
810
714
|
}
|
|
811
715
|
};
|
|
812
|
-
|
|
813
716
|
const triggerFocus = () => {
|
|
814
717
|
if (!ipConRef.current.classList.contains(unique.focus)) {
|
|
815
718
|
ipRef.current.focus();
|
|
@@ -819,22 +722,18 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
819
722
|
});
|
|
820
723
|
}
|
|
821
724
|
};
|
|
822
|
-
|
|
823
725
|
const onInputFocus = () => {
|
|
824
726
|
const el = ipConRef.current;
|
|
825
|
-
|
|
826
727
|
if (!el.classList.contains(unique.focus)) {
|
|
827
728
|
el.classList.add(unique.focus);
|
|
828
729
|
openPicker();
|
|
829
730
|
}
|
|
830
731
|
};
|
|
831
|
-
|
|
832
732
|
const setInputValue = (time, reset, unshift = false) => {
|
|
833
733
|
if (!ipRef.current) return;
|
|
834
734
|
const el = ipRef.current;
|
|
835
735
|
let enUnitText = locale.get() === 'en' && selected.current > 1 ? unitText + 's' : unitText;
|
|
836
736
|
let tempValue;
|
|
837
|
-
|
|
838
737
|
if (!reset) {
|
|
839
738
|
if (unshift) {
|
|
840
739
|
tempValue = formatValue(time, displayFormat) + ' - ' + el.value + (showUnitCount ? ` (${selected.current} ${enUnitText})` : '');
|
|
@@ -844,11 +743,9 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
844
743
|
} else {
|
|
845
744
|
tempValue = formatValue(time, displayFormat);
|
|
846
745
|
}
|
|
847
|
-
|
|
848
746
|
el.value = capitalizeSentenceCase(tempValue);
|
|
849
747
|
clearAble && onSwap(false);
|
|
850
748
|
};
|
|
851
|
-
|
|
852
749
|
const onClear = () => {
|
|
853
750
|
if (!clearAble || !ipRef.current) return;
|
|
854
751
|
ipRef.current.value = '';
|
|
@@ -859,7 +756,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
859
756
|
!!onChange && onChange(e);
|
|
860
757
|
onSwap(true);
|
|
861
758
|
};
|
|
862
|
-
|
|
863
759
|
useEffect(() => {
|
|
864
760
|
update(defaultValue);
|
|
865
761
|
return () => {
|
|
@@ -876,10 +772,8 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
876
772
|
if (!readOnly) {
|
|
877
773
|
ipRef.current.addEventListener('focus', onInputFocus);
|
|
878
774
|
}
|
|
879
|
-
|
|
880
775
|
return () => {
|
|
881
776
|
if (!ipRef.current) return;
|
|
882
|
-
|
|
883
777
|
if (!readOnly) {
|
|
884
778
|
ipRef.current.removeEventListener('focus', onInputFocus);
|
|
885
779
|
}
|
|
@@ -889,33 +783,26 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
889
783
|
if (min) {
|
|
890
784
|
let arr = [];
|
|
891
785
|
const newMin = new Date(min).setHours(0, 0, 0, 0);
|
|
892
|
-
|
|
893
786
|
if (isBefore(newMin, values.current[0])) {
|
|
894
787
|
arr.push(newMin);
|
|
895
|
-
|
|
896
788
|
if (isBefore(newMin, values.current[1])) {
|
|
897
789
|
arr.push(newMin);
|
|
898
790
|
} else {
|
|
899
791
|
arr.push(values.current[1]);
|
|
900
792
|
}
|
|
901
|
-
|
|
902
793
|
update(arr);
|
|
903
794
|
}
|
|
904
795
|
}
|
|
905
|
-
|
|
906
796
|
if (max) {
|
|
907
797
|
let arr = [];
|
|
908
798
|
const newMax = max && new Date(max).setHours(0, 0, 0, 0);
|
|
909
|
-
|
|
910
799
|
if (isAfter(newMax, values.current[1])) {
|
|
911
800
|
arr.push(newMax);
|
|
912
|
-
|
|
913
801
|
if (isAfter(newMax, values.current[0])) {
|
|
914
802
|
arr.push(newMax);
|
|
915
803
|
} else {
|
|
916
804
|
arr.unshift(values.current[0]);
|
|
917
805
|
}
|
|
918
|
-
|
|
919
806
|
update(arr);
|
|
920
807
|
}
|
|
921
808
|
}
|
|
@@ -923,7 +810,8 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
923
810
|
useEffect(() => {
|
|
924
811
|
if (ipRef.current.value !== '') {
|
|
925
812
|
update(values.current);
|
|
926
|
-
}
|
|
813
|
+
}
|
|
814
|
+
// if (disabled) {
|
|
927
815
|
// iconRef.current.childNodes[0].style.pointerEvents = 'none';
|
|
928
816
|
// closePicker();
|
|
929
817
|
// } else if (!readOnly) {
|
|
@@ -933,14 +821,13 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
933
821
|
// closePicker();
|
|
934
822
|
// }
|
|
935
823
|
|
|
936
|
-
|
|
937
824
|
if (isEnable) {
|
|
938
825
|
// iconRef.current.childNodes[0].style.pointerEvents = 'none';
|
|
939
826
|
closePicker();
|
|
940
827
|
}
|
|
941
|
-
|
|
942
828
|
return () => {
|
|
943
|
-
if (!iconRef.current || !ipRef.current) return;
|
|
829
|
+
if (!iconRef.current || !ipRef.current) return;
|
|
830
|
+
// if (disabled) {
|
|
944
831
|
// iconRef.current.childNodes[0].style.pointerEvents = null;
|
|
945
832
|
// } else if (!readOnly) {
|
|
946
833
|
// ipRef.current.removeEventListener('focus', onInputFocus);
|
|
@@ -950,7 +837,6 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
950
837
|
// if (isEnable) {
|
|
951
838
|
// iconRef.current.childNodes[0].style.pointerEvents = null;
|
|
952
839
|
// }
|
|
953
|
-
|
|
954
840
|
closePicker();
|
|
955
841
|
};
|
|
956
842
|
}, [actionIconAt, clearAble, controls, disabled, displayFormat, max, min, pressESCToClose, readOnly, startFromZero, unitCount, viewType]);
|
|
@@ -963,9 +849,7 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
963
849
|
close: closePicker,
|
|
964
850
|
...action
|
|
965
851
|
}; // methods
|
|
966
|
-
|
|
967
852
|
_instance.__proto__ = {}; // hidden methods
|
|
968
|
-
|
|
969
853
|
currentRef.instance = _instance;
|
|
970
854
|
return currentRef;
|
|
971
855
|
});
|
|
@@ -991,15 +875,18 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
991
875
|
css: ControlContainerCSS,
|
|
992
876
|
className: unique.footer,
|
|
993
877
|
ref: footerRef
|
|
994
|
-
}, jsx(Button, {
|
|
878
|
+
}, jsx(Button, {
|
|
879
|
+
...buttonProps,
|
|
995
880
|
className: unique.close,
|
|
996
881
|
onClick: () => onClickOutside({
|
|
997
882
|
target: null
|
|
998
883
|
})
|
|
999
|
-
}, closeText), jsx(Button, {
|
|
884
|
+
}, closeText), jsx(Button, {
|
|
885
|
+
...buttonProps,
|
|
1000
886
|
className: unique.cancel,
|
|
1001
887
|
onClick: onCancel
|
|
1002
|
-
}, cancelText), jsx(Button, {
|
|
888
|
+
}, cancelText), jsx(Button, {
|
|
889
|
+
...buttonProps,
|
|
1003
890
|
color: 'info',
|
|
1004
891
|
className: unique.confirm,
|
|
1005
892
|
onClick: onConfirm
|
|
@@ -1041,12 +928,14 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
1041
928
|
margin: spacing([4.5, 0.5, 0])
|
|
1042
929
|
}
|
|
1043
930
|
}), rightCalendarComp), tooltipComp, controls ? footerMemo : null);
|
|
1044
|
-
return jsx(ControlComp, {
|
|
931
|
+
return jsx(ControlComp, {
|
|
932
|
+
...props,
|
|
1045
933
|
disabled: disabled,
|
|
1046
934
|
error: error,
|
|
1047
935
|
ref: ref,
|
|
1048
936
|
style: style
|
|
1049
|
-
}, label ? jsx(Label, {
|
|
937
|
+
}, label ? jsx(Label, {
|
|
938
|
+
...labelProps,
|
|
1050
939
|
disabled: disabled,
|
|
1051
940
|
required: required
|
|
1052
941
|
}, label) : null, jsx(InputBase, {
|
|
@@ -1069,7 +958,8 @@ const DateRangePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
1069
958
|
className: 'non-effect allow-disabled'
|
|
1070
959
|
},
|
|
1071
960
|
endIcon: endIcon
|
|
1072
|
-
}), error ? jsx(HelperText, {
|
|
961
|
+
}), error ? jsx(HelperText, {
|
|
962
|
+
...helperTextProps,
|
|
1073
963
|
disabled: disabled
|
|
1074
964
|
}, error) : null);
|
|
1075
965
|
}));
|
|
@@ -1244,82 +1134,56 @@ DateRangePicker.defaultProps = {
|
|
|
1244
1134
|
DateRangePicker.propTypes = {
|
|
1245
1135
|
/** Position of action icons. */
|
|
1246
1136
|
actionIconAt: PropTypes.oneOf(['end', 'start']),
|
|
1247
|
-
|
|
1248
1137
|
/** If `true`, display the clear icon. */
|
|
1249
1138
|
clearAble: PropTypes.bool,
|
|
1250
|
-
|
|
1251
1139
|
/** If `true`, the calendar will have a footer controls. */
|
|
1252
1140
|
controls: PropTypes.bool,
|
|
1253
|
-
|
|
1254
1141
|
/** The count unit when select. */
|
|
1255
1142
|
unitCount: PropTypes.oneOf(['day', 'night']),
|
|
1256
|
-
|
|
1257
1143
|
/** Default value of the component. */
|
|
1258
1144
|
defaultValue: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.instanceOf(Date)), PropTypes.arrayOf(PropTypes.string)]),
|
|
1259
|
-
|
|
1260
1145
|
/** If `true`, the component is disabled. */
|
|
1261
1146
|
disabled: PropTypes.bool,
|
|
1262
|
-
|
|
1263
1147
|
/** Format to display value. */
|
|
1264
1148
|
displayFormat: PropTypes.oneOfType([PropTypes.oneOf(['DD/MM/YYYY', 'MM/DD/YYYY', 'YYYY/MM/DD', 'DD-MM-YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD']), PropTypes.string]),
|
|
1265
|
-
|
|
1266
1149
|
/** Error displayed below input. */
|
|
1267
1150
|
error: PropTypes.string,
|
|
1268
|
-
|
|
1269
1151
|
/** [Props](https://core.diginet.com.vn/ui/?path=/story/form-control-text-helpertext) of helper text. */
|
|
1270
1152
|
helperTextProps: PropTypes.object,
|
|
1271
|
-
|
|
1272
1153
|
/** [Props](https://core.diginet.com.vn/ui/?path=/story/form-control-input-inputbase) of input base */
|
|
1273
1154
|
inputProps: PropTypes.object,
|
|
1274
|
-
|
|
1275
1155
|
/** Consult [InputBase's](https://core.diginet.com.vn/ui/?path=/story/form-control-input-inputbase) documents. */
|
|
1276
1156
|
inputStyle: PropTypes.object,
|
|
1277
|
-
|
|
1278
1157
|
/** The label of the component. */
|
|
1279
1158
|
label: PropTypes.string,
|
|
1280
|
-
|
|
1281
1159
|
/** [Props](https://core.diginet.com.vn/ui/?path=/docs/form-control-text-label--simple) of label. */
|
|
1282
1160
|
labelProps: PropTypes.object,
|
|
1283
|
-
|
|
1284
1161
|
/** Min value of date picker. */
|
|
1285
1162
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]),
|
|
1286
|
-
|
|
1287
1163
|
/** Max value of date picker. */
|
|
1288
1164
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string]),
|
|
1289
|
-
|
|
1290
1165
|
/** Callback fired when the value is changed. */
|
|
1291
1166
|
onChange: PropTypes.func,
|
|
1292
|
-
|
|
1293
1167
|
/** The short hint displayed in the input before the user enters a value. */
|
|
1294
1168
|
placeholder: PropTypes.string,
|
|
1295
|
-
|
|
1296
1169
|
/** If `true`, hitting escape will close component. */
|
|
1297
1170
|
pressESCToClose: PropTypes.bool,
|
|
1298
|
-
|
|
1299
1171
|
/** If `true`, the component is readOnly. */
|
|
1300
1172
|
readOnly: PropTypes.bool,
|
|
1301
|
-
|
|
1302
1173
|
/** If `true`, the input element is required. */
|
|
1303
1174
|
required: PropTypes.bool,
|
|
1304
|
-
|
|
1305
1175
|
/** Format of the returned value. */
|
|
1306
1176
|
returnFormat: PropTypes.oneOfType([PropTypes.oneOf(['DD/MM/YYYY', 'MM/DD/YYYY', 'YYYY/MM/DD', 'DD-MM-YYYY', 'MM-DD-YYYY', 'YYYY-MM-DD']), PropTypes.string]),
|
|
1307
|
-
|
|
1308
1177
|
/** If `true`, show unit count. */
|
|
1309
1178
|
showUnitCount: PropTypes.bool,
|
|
1310
|
-
|
|
1311
1179
|
/** Counter with start with 0 or 1. */
|
|
1312
1180
|
startFromZero: PropTypes.bool,
|
|
1313
|
-
|
|
1314
1181
|
/** Style inline of component. */
|
|
1315
1182
|
style: PropTypes.object,
|
|
1316
|
-
|
|
1317
1183
|
/** Text align of the input. */
|
|
1318
1184
|
textAlign: PropTypes.oneOf(['center', 'end', 'start']),
|
|
1319
|
-
|
|
1320
1185
|
/** The value of the input element, required for a controlled component. */
|
|
1321
1186
|
value: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string])),
|
|
1322
|
-
|
|
1323
1187
|
/** The variant to use. */
|
|
1324
1188
|
viewType: PropTypes.oneOf(['outlined', 'underlined'])
|
|
1325
1189
|
};
|