diginet-core-ui 1.3.87 → 1.3.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/avatar/default.svg +3 -3
- package/assets/images/icons/wifi.svg +3 -3
- package/assets/images/menu/bem/WA3F0100.svg +6 -6
- package/assets/images/menu/bem/WA3F1025.svg +10 -10
- package/assets/images/menu/bem/WA3F2000.svg +10 -10
- package/assets/images/menu/bem/WA3F2020.svg +6 -6
- package/assets/images/menu/bem/WA3F2030.svg +14 -14
- package/assets/images/menu/bem/WA3F2040.svg +8 -8
- package/assets/images/menu/bem/WA3F2100.svg +6 -6
- package/assets/images/menu/dhr/ALL.svg +6 -6
- package/assets/images/menu/dhr/D00.svg +12 -12
- package/assets/images/menu/dhr/D09.svg +8 -8
- package/assets/images/menu/dhr/D13.svg +10 -10
- package/assets/images/menu/dhr/D15.svg +10 -10
- package/assets/images/menu/dhr/D21.svg +10 -10
- package/assets/images/menu/dhr/D25.svg +11 -11
- package/assets/images/menu/dhr/D29.svg +11 -11
- package/assets/images/menu/dhr/D38.svg +6 -6
- package/assets/images/menu/dhr/D39.svg +10 -10
- package/assets/images/menu/dhr/D51.svg +12 -12
- package/assets/images/menu/dhr/D52.svg +16 -16
- package/assets/images/menu/dhr/D77.svg +16 -16
- package/assets/images/menu/dhr/D84.svg +12 -12
- package/assets/images/menu/dhr/D89.svg +8 -8
- package/assets/images/menu/dhr/Default.svg +13 -13
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
- package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
- package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
- package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
- package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
- package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
- package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
- package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
- package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
- package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
- package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
- package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
- package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
- package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
- package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
- package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
- package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
- package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
- package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
- package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
- package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
- package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
- package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
- package/assets/images/menu/dhr/TASK.svg +9 -9
- package/assets/images/menu/dhr/W00F0001.svg +3 -3
- package/assets/images/menu/dhr/W00F0002.svg +3 -3
- package/assets/images/menu/dhr/W00F0003.svg +3 -3
- package/assets/images/menu/dhr/W00F0004.svg +3 -3
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W09F2000.svg +4 -4
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W77F1011.svg +19 -19
- package/assets/images/menu/dhr/W77F1013.svg +22 -22
- package/assets/images/menu/erp/D05.svg +8 -8
- package/assets/images/menu/erp/D06.svg +4 -4
- package/assets/images/menu/erp/D90R.svg +9 -9
- package/assets/images/menu/erp/DBC.svg +9 -9
- package/assets/images/menu/erp/W00F0001.svg +3 -3
- package/assets/images/menu/erp/W00F0002.svg +3 -3
- package/assets/images/menu/erp/W00F0003.svg +3 -3
- package/assets/images/menu/erp/W00F0004.svg +3 -3
- package/assets/images/menu/erp/W05F0001.svg +16 -16
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
- package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
- package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
- package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
- package/assets/images/menu/erp/W06F0001.svg +17 -17
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
- package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
- package/assets/images/menu/erp/WA3F1025.svg +5 -5
- package/assets/images/menu/erp/WA3F2100.svg +10 -10
- package/assets/storybook/avatar01.svg +9 -9
- package/assets/storybook/cover01.svg +9 -9
- package/components/accordion/details.js +6 -2
- package/components/accordion/group.js +9 -2
- package/components/accordion/index.js +15 -2
- package/components/accordion/summary.js +27 -4
- package/components/alert/index.js +33 -2
- package/components/alert/notify.js +22 -12
- package/components/avatar/index.js +81 -22
- package/components/badge/index.js +45 -20
- package/components/button/icon.js +56 -25
- package/components/button/index.js +65 -16
- package/components/button/more.js +35 -15
- package/components/button/ripple-effect.js +10 -0
- package/components/card/body.js +7 -2
- package/components/card/extra.js +7 -2
- package/components/card/footer.js +7 -2
- package/components/card/header.js +7 -2
- package/components/card/index.js +22 -2
- package/components/chart/Pie/Circle.js +1 -0
- package/components/chart/Pie/Sector.js +19 -2
- package/components/chart/Pie/Sectors.js +10 -0
- package/components/chart/Pie/index.js +36 -4
- package/components/chart/Pie-v2/Circle.js +1 -0
- package/components/chart/Pie-v2/Sector.js +15 -2
- package/components/chart/Pie-v2/Sectors.js +20 -0
- package/components/chart/Pie-v2/index.js +38 -11
- package/components/chart/bar/Axis.js +12 -0
- package/components/chart/bar/Bar.js +35 -13
- package/components/chart/bar/Grid.js +18 -0
- package/components/chart/bar/Labels.js +18 -0
- package/components/chart/bar/Points.js +17 -0
- package/components/chart/bar/index.js +26 -6
- package/components/chart/bar-v2/Axis.js +12 -0
- package/components/chart/bar-v2/Bar.js +36 -15
- package/components/chart/bar-v2/Grid.js +18 -0
- package/components/chart/bar-v2/Labels.js +18 -0
- package/components/chart/bar-v2/Points.js +17 -0
- package/components/chart/bar-v2/index.js +26 -6
- package/components/chart/line/Axis.js +16 -4
- package/components/chart/line/Grid.js +19 -2
- package/components/chart/line/Labels.js +18 -0
- package/components/chart/line/Path.js +33 -23
- package/components/chart/line/Point.js +40 -6
- package/components/chart/line/Title.js +3 -0
- package/components/chart/line/index.js +35 -12
- package/components/chart/line-v2/Axis.js +13 -0
- package/components/chart/line-v2/Grid.js +18 -0
- package/components/chart/line-v2/Labels.js +18 -0
- package/components/chart/line-v2/Path.js +33 -23
- package/components/chart/line-v2/Point.js +35 -6
- package/components/chart/line-v2/Title.js +3 -0
- package/components/chart/line-v2/index.js +30 -12
- package/components/check-text/index.js +8 -0
- package/components/check-text/interview-confirmation.js +7 -0
- package/components/check-text/interview-status.js +7 -0
- package/components/chip/attach.js +22 -9
- package/components/chip/index.js +33 -6
- package/components/collapse/index.js +13 -0
- package/components/divider/index.js +13 -2
- package/components/form-control/attachment/index.js +202 -41
- package/components/form-control/calendar/function.js +207 -153
- package/components/form-control/calendar/index.js +46 -21
- package/components/form-control/calendar/range.js +28 -11
- package/components/form-control/checkbox/index.js +37 -4
- package/components/form-control/control/index.js +13 -3
- package/components/form-control/date-picker/index-old.js +0 -18
- package/components/form-control/date-picker/index.js +99 -23
- package/components/form-control/date-range-picker/index.js +180 -44
- package/components/form-control/dropdown/index.js +314 -101
- package/components/form-control/dropdown-box/index.js +35 -6
- package/components/form-control/form/index.js +2 -0
- package/components/form-control/form-group/index.js +6 -1
- package/components/form-control/helper-text/index.js +9 -2
- package/components/form-control/input-base/index.js +73 -9
- package/components/form-control/label/index.js +12 -2
- package/components/form-control/money-input/index.js +143 -54
- package/components/form-control/number-input/index.js +124 -26
- package/components/form-control/number-input/index2.js +119 -78
- package/components/form-control/phone-input/index.js +85 -23
- package/components/form-control/radio/index.js +28 -9
- package/components/form-control/text-input/index.js +46 -10
- package/components/form-control/time-picker/index.js +71 -14
- package/components/form-control/time-picker/swiper.js +73 -21
- package/components/form-control/toggle/index.js +23 -8
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +14 -0
- package/components/form-view/input.js +13 -2
- package/components/form-view/label.js +2 -0
- package/components/grid/Col.js +16 -2
- package/components/grid/Container.js +21 -2
- package/components/grid/Row.js +21 -2
- package/components/grid/index.js +44 -2
- package/components/image/index.js +22 -2
- package/components/index.js +31 -62
- package/components/list/list-item-action.js +9 -0
- package/components/list/list-item-icon.js +9 -0
- package/components/list/list-item-text.js +5 -0
- package/components/list/list-item.js +11 -0
- package/components/list/list.js +13 -0
- package/components/list/sub-header.js +4 -0
- package/components/modal/body.js +6 -2
- package/components/modal/footer.js +11 -2
- package/components/modal/header.js +12 -2
- package/components/modal/index.js +10 -2
- package/components/modal/modal.js +52 -11
- package/components/others/extra/index.js +10 -3
- package/components/others/import/index.js +7 -0
- package/components/others/option-wrapper/index.js +7 -4
- package/components/others/scrollbar/index.js +3 -0
- package/components/paging/page-info.js +99 -35
- package/components/paging/page-selector.js +35 -7
- package/components/paging/page-selector2.js +74 -35
- package/components/paper/index.js +11 -0
- package/components/popover/body.js +6 -2
- package/components/popover/footer.js +11 -2
- package/components/popover/header.js +7 -2
- package/components/popover/index.js +146 -54
- package/components/popup/danger_popup.js +19 -0
- package/components/popup/index.js +48 -2
- package/components/popup/proposals_popup.js +49 -10
- package/components/popup/v2/index.js +47 -13
- package/components/progress/circular.js +48 -10
- package/components/progress/linear.js +20 -4
- package/components/rating/index.js +32 -8
- package/components/slider/slider-container.js +40 -3
- package/components/slider/slider-item.js +25 -10
- package/components/status/index.js +14 -2
- package/components/tab/tab-container.js +18 -4
- package/components/tab/tab-header.js +24 -4
- package/components/tab/tab-panel.js +16 -4
- package/components/tab/tab.js +30 -6
- package/components/tooltip/index.js +97 -12
- package/components/tooltip/portal.js +2 -0
- package/components/transfer/index.js +70 -25
- package/components/tree-view/index.js +202 -62
- package/components/typography/index.js +70 -47
- package/global/index.js +8 -0
- package/icons/basic.js +232 -0
- package/icons/effect.js +32 -15
- package/icons/general/clock/clock.js +2 -0
- package/icons/general/color-handler/background.js +2 -0
- package/icons/general/color-handler/text.js +2 -0
- package/icons/general/emoji/emoji.js +2 -0
- package/icons/general/font-properties/bold.js +2 -0
- package/icons/general/font-properties/font-family.js +2 -0
- package/icons/general/font-properties/font-size.js +2 -0
- package/icons/general/font-properties/italic.js +2 -0
- package/icons/general/font-properties/underline.js +2 -0
- package/icons/general/hyperlink/hyperlink.js +2 -0
- package/icons/general/indent/decrease.js +2 -0
- package/icons/general/indent/increase.js +2 -0
- package/icons/general/list/bullets.js +2 -0
- package/icons/general/list/numbering.js +2 -0
- package/icons/general/picture/picture.js +2 -0
- package/icons/general/steps/redo.js +2 -0
- package/icons/general/steps/undo.js +2 -0
- package/icons/general/text-align/center.js +2 -0
- package/icons/general/text-align/justify.js +2 -0
- package/icons/general/text-align/left.js +2 -0
- package/icons/general/text-align/right.js +2 -0
- package/icons/menu/dhr.js +1 -2
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +15 -2
- package/package.json +42 -42
- package/readme.md +1027 -1022
- package/styles/animation.js +58 -15
- package/styles/color-helper.js +157 -127
- package/styles/colors.js +9 -17
- package/styles/general.js +80 -18
- package/styles/typography.js +4 -4
- package/styles/utils.js +20 -19
- package/theme/createBreakpoints.js +18 -7
- package/theme/make-styles.js +5 -2
- package/theme/set-theme.js +9 -6
- package/theme/settings.js +2 -3
- package/theme/theme-provider.js +1 -0
- package/utils/array/array.js +54 -45
- package/utils/{classNames.js → classNames/index.js} +5 -0
- package/utils/console.js +6 -0
- package/utils/date.js +138 -69
- package/utils/error/error.js +11 -3
- package/utils/error/errors.js +147 -100
- package/utils/getFileType.js +9 -0
- package/utils/handleBreakpoints.js +5 -0
- package/utils/intersectionObserver.js +5 -0
- package/utils/{isMobile.js → isMobile/index.js} +0 -0
- package/utils/iterator.js +9 -0
- package/utils/map-parent.js +10 -3
- package/utils/object/extend.js +10 -0
- package/utils/object/object.js +11 -12
- package/utils/parseHTML.js +1 -0
- package/utils/promisify.js +5 -0
- package/utils/randomString.js +7 -0
- package/utils/remove-unicode.js +1 -0
- package/utils/render-portal.js +9 -1
- package/utils/renderHTML.js +6 -4
- package/utils/renderIcon.js +19 -9
- package/utils/sb-template.js +5 -6
- package/utils/string/capitalize.js +1 -0
- package/utils/string/capitalizeSentenceCase.js +2 -0
- package/utils/string/string.js +13 -0
- package/utils/type.js +21 -0
- package/utils/updatePosition.js +5 -4
- package/utils/useDelayUnmount.js +4 -0
- package/utils/useElementSize.js +3 -9
- package/utils/useEventListener.js +6 -12
- package/utils/useInput.js +6 -0
- package/utils/{useMediaQuery.js → useMediaQuery/index.js} +10 -8
- package/utils/useOnClickOutside.js +4 -2
- package/utils/usePortal.js +19 -12
- package/utils/validate.js +53 -39
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
/** @jsx jsx */
|
|
3
2
|
|
|
3
|
+
/** @jsx jsx */
|
|
4
4
|
import { css, jsx } from '@emotion/core';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react';
|
|
@@ -26,9 +26,11 @@ const {
|
|
|
26
26
|
} = theme;
|
|
27
27
|
const confirmText = getGlobal(['confirm']);
|
|
28
28
|
const cancelText = getGlobal(['cancel']);
|
|
29
|
+
|
|
29
30
|
const formatValue = (value, format, utc = false) => {
|
|
30
31
|
return moment(value).format(format, utc);
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
33
35
|
actionIconAt,
|
|
34
36
|
clearAble,
|
|
@@ -58,6 +60,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
58
60
|
...props
|
|
59
61
|
}, reference) => {
|
|
60
62
|
var _ipRef$current, _ipRef$current2;
|
|
63
|
+
|
|
61
64
|
const [id] = useState(randomString(6, {
|
|
62
65
|
allowSymbol: false
|
|
63
66
|
}));
|
|
@@ -84,7 +87,9 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
84
87
|
const [, setDisplayValue] = useState(Date.now());
|
|
85
88
|
const [, setFocusedValue] = useState(Date.now());
|
|
86
89
|
const [value, setValue] = useState(valueProp || defaultValue);
|
|
90
|
+
|
|
87
91
|
const _IconAreaCSS = IconAreaCSS(unique);
|
|
92
|
+
|
|
88
93
|
const handleDisplayValue = useCallback(value => {
|
|
89
94
|
displayValue.current = new Date(value);
|
|
90
95
|
setDisplayValue();
|
|
@@ -93,12 +98,14 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
93
98
|
focusedValue.current = new Date(value);
|
|
94
99
|
setFocusedValue();
|
|
95
100
|
}, [focusedValue]);
|
|
101
|
+
|
|
96
102
|
const setButtonState = () => {
|
|
97
103
|
if (!footerRef.current || focusedValue.current === undefined || !isValidDate(focusedValue.current)) return;
|
|
98
104
|
const isEqual = focusedValue.current === null || Date.parse(new Date(focusedValue.current)) === Date.parse(new Date(displayValue.current));
|
|
99
105
|
footerRef.current.querySelector(`.${unique.cancel}`).disabled = isEqual;
|
|
100
106
|
footerRef.current.querySelector(`.${unique.confirm}`).disabled = isEqual;
|
|
101
107
|
};
|
|
108
|
+
|
|
102
109
|
const onConfirm = () => {
|
|
103
110
|
displayValue.current = focusedValue.current;
|
|
104
111
|
setButtonState();
|
|
@@ -107,29 +114,35 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
107
114
|
});
|
|
108
115
|
closePicker();
|
|
109
116
|
};
|
|
117
|
+
|
|
110
118
|
const onCancel = () => {
|
|
111
119
|
focusedValue.current = null;
|
|
112
120
|
setButtonState();
|
|
113
121
|
closePicker();
|
|
114
122
|
};
|
|
123
|
+
|
|
115
124
|
const setInputValue = e => {
|
|
116
125
|
ipRef.current.value = capitalizeSentenceCase(formatValue(e.value, displayFormat));
|
|
117
126
|
if (clearAble) onSwap(false);
|
|
118
127
|
};
|
|
128
|
+
|
|
119
129
|
const onChangeValue = e => {
|
|
120
130
|
if (valueProp) {
|
|
121
131
|
closePicker();
|
|
122
132
|
} else {
|
|
123
133
|
setValue(e.value);
|
|
124
134
|
}
|
|
135
|
+
|
|
125
136
|
!!onChange && onChange({
|
|
126
137
|
value: formatValue(e.value, returnFormat)
|
|
127
138
|
});
|
|
128
139
|
};
|
|
140
|
+
|
|
129
141
|
const onCalendarClick = e => {
|
|
130
142
|
handleFocusedValue(e.value);
|
|
131
143
|
controls ? setButtonState() : onChangeValue(e);
|
|
132
144
|
};
|
|
145
|
+
|
|
133
146
|
const getPickerStyle = () => {
|
|
134
147
|
const {
|
|
135
148
|
innerHeight,
|
|
@@ -145,15 +158,16 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
145
158
|
let style = {};
|
|
146
159
|
style.top = top + height + 4;
|
|
147
160
|
style.transformOrigin = '50% 20%';
|
|
161
|
+
|
|
148
162
|
if (style.top + pickerHeight > innerHeight) {
|
|
149
163
|
if (top - pickerHeight > 0) {
|
|
150
164
|
style.top = top - pickerHeight - 4;
|
|
151
165
|
style.transformOrigin = '50% 80%';
|
|
152
166
|
}
|
|
153
167
|
}
|
|
168
|
+
|
|
154
169
|
return PickerCSS.picker(style, left + 400 > innerWidth ? innerWidth - 400 : left, width).styles;
|
|
155
|
-
};
|
|
156
|
-
// const createPortal = () => {
|
|
170
|
+
}; // const createPortal = () => {
|
|
157
171
|
// let portal = document.getElementById(unique.portal);
|
|
158
172
|
// if (!portal) {
|
|
159
173
|
// portal = document.createElement('div');
|
|
@@ -163,23 +177,29 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
163
177
|
// portal.style.cssText = pickerCSS.portal;
|
|
164
178
|
// return portal;
|
|
165
179
|
// };
|
|
180
|
+
|
|
181
|
+
|
|
166
182
|
const createBackground = () => {
|
|
167
183
|
let background = document.getElementById(unique.backGr);
|
|
184
|
+
|
|
168
185
|
if (!background) {
|
|
169
186
|
background = document.createElement('div');
|
|
170
187
|
background.id = unique.backGr;
|
|
171
188
|
background.classList.add(unique.portal, unique.backGr);
|
|
172
189
|
document.body.appendChild(background);
|
|
173
190
|
}
|
|
191
|
+
|
|
174
192
|
background.style.cssText = PickerCSS.backGr;
|
|
175
193
|
return background;
|
|
176
194
|
};
|
|
195
|
+
|
|
177
196
|
const createPicker = () => {
|
|
178
197
|
const picker = document.createElement('div');
|
|
179
198
|
picker.id = unique.picker;
|
|
180
199
|
picker.style.cssText = getPickerStyle();
|
|
181
200
|
return picker;
|
|
182
201
|
};
|
|
202
|
+
|
|
183
203
|
const pressESCHandler = event => {
|
|
184
204
|
if (event.key === 'Escape' || event.key === 'Tab') {
|
|
185
205
|
onClickOutside({
|
|
@@ -187,25 +207,32 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
187
207
|
});
|
|
188
208
|
}
|
|
189
209
|
};
|
|
210
|
+
|
|
190
211
|
const onScroll = () => {
|
|
191
212
|
const node = document.getElementById(unique.picker);
|
|
213
|
+
|
|
192
214
|
if (!ipConRef.current || !node) {
|
|
193
215
|
window.removeEventListener('scroll', onScroll);
|
|
194
216
|
return;
|
|
195
217
|
}
|
|
218
|
+
|
|
196
219
|
updatePosition(ipConRef.current, node, closePicker);
|
|
197
220
|
};
|
|
221
|
+
|
|
198
222
|
const onResize = () => {
|
|
199
223
|
if (!ref.current) return;
|
|
200
224
|
const {
|
|
201
225
|
width
|
|
202
226
|
} = ref.current.getBoundingClientRect();
|
|
203
227
|
const node = document.getElementById(unique.picker);
|
|
228
|
+
|
|
204
229
|
if (node) {
|
|
205
230
|
node.style.width = width + 'px';
|
|
206
231
|
}
|
|
232
|
+
|
|
207
233
|
onScroll();
|
|
208
234
|
};
|
|
235
|
+
|
|
209
236
|
const openPicker = () => {
|
|
210
237
|
const backGr = createBackground();
|
|
211
238
|
const picker = createPicker();
|
|
@@ -220,43 +247,47 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
220
247
|
onClick: onCalendarClick
|
|
221
248
|
}), backGr.appendChild(picker));
|
|
222
249
|
setTimeout(() => {
|
|
223
|
-
Object.assign(picker.style, {
|
|
224
|
-
...PickerCSS.active
|
|
250
|
+
Object.assign(picker.style, { ...PickerCSS.active
|
|
225
251
|
});
|
|
226
252
|
window.addEventListener('resize', onResize);
|
|
227
253
|
window.addEventListener('scroll', onScroll);
|
|
228
254
|
document.addEventListener('mousedown', onClickOutside);
|
|
255
|
+
|
|
229
256
|
if (pressESCToClose) {
|
|
230
257
|
document.addEventListener('keydown', pressESCHandler);
|
|
231
258
|
}
|
|
259
|
+
|
|
232
260
|
setButtonState();
|
|
233
261
|
});
|
|
234
262
|
};
|
|
263
|
+
|
|
235
264
|
const closePicker = () => {
|
|
236
265
|
const backGr = document.getElementById(unique.backGr);
|
|
237
266
|
if (!backGr) return;
|
|
238
267
|
const picker = backGr.querySelector(`#${unique.picker}`);
|
|
239
268
|
if (!picker) return;
|
|
240
|
-
Object.assign(picker.style, {
|
|
241
|
-
...PickerCSS.remove
|
|
269
|
+
Object.assign(picker.style, { ...PickerCSS.remove
|
|
242
270
|
});
|
|
271
|
+
|
|
243
272
|
if (pressESCToClose) {
|
|
244
273
|
document.removeEventListener('keydown', pressESCHandler);
|
|
245
274
|
}
|
|
275
|
+
|
|
246
276
|
document.removeEventListener('mousedown', onClickOutside);
|
|
247
277
|
window.removeEventListener('scroll', onScroll);
|
|
248
278
|
window.removeEventListener('resize', onResize);
|
|
249
279
|
setTimeout(() => {
|
|
250
280
|
backGr.remove();
|
|
251
281
|
}, 200);
|
|
282
|
+
|
|
252
283
|
if (ipConRef.current) {
|
|
253
284
|
ipConRef.current.classList.remove(unique.focus);
|
|
254
285
|
ipConRef.current.style.zIndex = null;
|
|
255
|
-
}
|
|
256
|
-
|
|
286
|
+
} // iconRef.current && onSwap(true);
|
|
287
|
+
|
|
288
|
+
|
|
257
289
|
ipRef.current && ipRef.current.blur();
|
|
258
|
-
};
|
|
259
|
-
// const updatePicker = () => {
|
|
290
|
+
}; // const updatePicker = () => {
|
|
260
291
|
// const portal = document.body.querySelector(`#${unique.portal}`);
|
|
261
292
|
// if (!portal) return;
|
|
262
293
|
// const backGr = portal.querySelector(`#${unique.backGr}`);
|
|
@@ -276,43 +307,46 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
276
307
|
// onClick={onCalendarClick}
|
|
277
308
|
// />, node);
|
|
278
309
|
// };
|
|
310
|
+
|
|
311
|
+
|
|
279
312
|
const onSwap = open => {
|
|
280
313
|
const t = iconRef.current.childNodes[+open];
|
|
314
|
+
|
|
281
315
|
if (open) {
|
|
282
|
-
Object.assign(t.style, {
|
|
283
|
-
...hiddenStyle
|
|
316
|
+
Object.assign(t.style, { ...hiddenStyle
|
|
284
317
|
});
|
|
285
|
-
Object.assign(t.previousSibling.style, {
|
|
286
|
-
...activeStyle
|
|
318
|
+
Object.assign(t.previousSibling.style, { ...activeStyle
|
|
287
319
|
});
|
|
288
320
|
setTimeout(() => {
|
|
289
321
|
t.previousSibling.style.pointerEvents = null;
|
|
290
322
|
}, 200);
|
|
291
323
|
} else {
|
|
292
|
-
Object.assign(t.style, {
|
|
293
|
-
...hiddenStyle
|
|
324
|
+
Object.assign(t.style, { ...hiddenStyle
|
|
294
325
|
});
|
|
295
|
-
Object.assign(t.nextSibling.style, {
|
|
296
|
-
...activeStyle
|
|
326
|
+
Object.assign(t.nextSibling.style, { ...activeStyle
|
|
297
327
|
});
|
|
298
328
|
setTimeout(() => {
|
|
299
329
|
t.nextSibling.style.pointerEvents = null;
|
|
300
330
|
}, 200);
|
|
301
331
|
}
|
|
302
332
|
};
|
|
333
|
+
|
|
303
334
|
const onInputFocus = () => {
|
|
304
335
|
const el = ipConRef.current;
|
|
336
|
+
|
|
305
337
|
if (!el.classList.contains(unique.focus)) {
|
|
306
338
|
el.classList.add(unique.focus);
|
|
307
339
|
el.style.zIndex = zIndexCORE(2);
|
|
308
340
|
openPicker();
|
|
309
341
|
}
|
|
310
342
|
};
|
|
343
|
+
|
|
311
344
|
const onClickOutside = e => {
|
|
312
345
|
if (ipConRef.current && !ipConRef.current.contains(e.target) && ipRef.current && !ipRef.current.contains(e.target) && calRef.current && !calRef.current.contains(e.target)) {
|
|
313
346
|
controls ? onCancel() : closePicker();
|
|
314
347
|
}
|
|
315
348
|
};
|
|
349
|
+
|
|
316
350
|
const triggerFocus = () => {
|
|
317
351
|
if (!ipConRef.current.classList.contains(unique.focus)) {
|
|
318
352
|
ipRef.current.focus();
|
|
@@ -322,6 +356,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
322
356
|
});
|
|
323
357
|
}
|
|
324
358
|
};
|
|
359
|
+
|
|
325
360
|
const onClear = () => {
|
|
326
361
|
if (!clearAble && !ipRef.current) return;
|
|
327
362
|
ipRef.current.value = '';
|
|
@@ -333,6 +368,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
333
368
|
!!onChange && onChange(e);
|
|
334
369
|
onSwap(true);
|
|
335
370
|
};
|
|
371
|
+
|
|
336
372
|
const iconComp = jsx("div", {
|
|
337
373
|
css: _IconAreaCSS,
|
|
338
374
|
ref: iconRef
|
|
@@ -373,6 +409,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
373
409
|
value: displayValue.current
|
|
374
410
|
});
|
|
375
411
|
}
|
|
412
|
+
|
|
376
413
|
return () => {
|
|
377
414
|
closePicker();
|
|
378
415
|
};
|
|
@@ -396,9 +433,11 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
396
433
|
closePicker();
|
|
397
434
|
} else {
|
|
398
435
|
if (ipRef.current) ipRef.current.value = '';
|
|
436
|
+
|
|
399
437
|
if (clearAble) {
|
|
400
438
|
onSwap(true);
|
|
401
439
|
}
|
|
440
|
+
|
|
402
441
|
setButtonState();
|
|
403
442
|
closePicker();
|
|
404
443
|
}
|
|
@@ -410,8 +449,10 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
410
449
|
if (!readOnly) {
|
|
411
450
|
ipRef.current.addEventListener('focus', onInputFocus);
|
|
412
451
|
}
|
|
452
|
+
|
|
413
453
|
return () => {
|
|
414
454
|
if (!ipRef.current) return;
|
|
455
|
+
|
|
415
456
|
if (!readOnly) {
|
|
416
457
|
ipRef.current.removeEventListener('focus', onInputFocus);
|
|
417
458
|
}
|
|
@@ -424,6 +465,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
424
465
|
};
|
|
425
466
|
setInputValue(e, displayFormat);
|
|
426
467
|
}
|
|
468
|
+
|
|
427
469
|
if (disabled) {
|
|
428
470
|
iconRef.current.childNodes[0].style.pointerEvents = 'none';
|
|
429
471
|
closePicker();
|
|
@@ -433,8 +475,10 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
433
475
|
iconRef.current.childNodes[0].style.pointerEvents = 'none';
|
|
434
476
|
closePicker();
|
|
435
477
|
}
|
|
478
|
+
|
|
436
479
|
return () => {
|
|
437
480
|
if (!iconRef.current || !ipRef.current) return;
|
|
481
|
+
|
|
438
482
|
if (disabled) {
|
|
439
483
|
iconRef.current.childNodes[0].style.pointerEvents = null;
|
|
440
484
|
} else if (!readOnly) {
|
|
@@ -442,6 +486,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
442
486
|
} else {
|
|
443
487
|
iconRef.current.childNodes[0].style.pointerEvents = null;
|
|
444
488
|
}
|
|
489
|
+
|
|
445
490
|
closePicker();
|
|
446
491
|
};
|
|
447
492
|
}, [actionIconAt, clearAble, controls, disabled, displayFormat, displayAnotherMonth, max, min, readOnly, returnFormat, viewType]);
|
|
@@ -464,17 +509,24 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
464
509
|
return iconRef.current;
|
|
465
510
|
}
|
|
466
511
|
}; // methods
|
|
512
|
+
|
|
467
513
|
_instance.__proto__ = {}; // hidden methods
|
|
514
|
+
|
|
468
515
|
currentRef.instance = _instance;
|
|
516
|
+
|
|
469
517
|
currentRef.get = () => ref.current;
|
|
518
|
+
|
|
470
519
|
currentRef.getInputContainer = () => ipConRef.current;
|
|
520
|
+
|
|
471
521
|
currentRef.getInput = () => ipRef.current;
|
|
522
|
+
|
|
472
523
|
currentRef.getCalendar = () => calRef.current;
|
|
524
|
+
|
|
473
525
|
currentRef.getIcon = () => iconRef.current;
|
|
526
|
+
|
|
474
527
|
return currentRef;
|
|
475
528
|
});
|
|
476
|
-
return jsx(ControlComp, {
|
|
477
|
-
...props,
|
|
529
|
+
return jsx(ControlComp, { ...props,
|
|
478
530
|
disabled: disabled,
|
|
479
531
|
error: isError,
|
|
480
532
|
ref: ref,
|
|
@@ -502,8 +554,7 @@ const DatePicker = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
502
554
|
endIcon: endIcon,
|
|
503
555
|
onKeyDown: e => e.preventDefault(),
|
|
504
556
|
readOnly: true
|
|
505
|
-
})), isError && jsx(HelperText, {
|
|
506
|
-
...errorProps,
|
|
557
|
+
})), isError && jsx(HelperText, { ...errorProps,
|
|
507
558
|
style: {
|
|
508
559
|
minHeight: 16,
|
|
509
560
|
position: 'absolute',
|
|
@@ -521,6 +572,7 @@ const activeStyle = {
|
|
|
521
572
|
pointerEvents: 'none',
|
|
522
573
|
display: 'block'
|
|
523
574
|
};
|
|
575
|
+
|
|
524
576
|
const IconAreaCSS = unique => css`
|
|
525
577
|
${flexRow};
|
|
526
578
|
${itemsCenter};
|
|
@@ -537,6 +589,7 @@ const IconAreaCSS = unique => css`
|
|
|
537
589
|
opacity: 1;
|
|
538
590
|
}
|
|
539
591
|
`;
|
|
592
|
+
|
|
540
593
|
const ControlContainerCSS = css`
|
|
541
594
|
${flexRow};
|
|
542
595
|
${justifyEnd};
|
|
@@ -587,50 +640,73 @@ DatePicker.defaultProps = {
|
|
|
587
640
|
DatePicker.propTypes = {
|
|
588
641
|
/** Action icons position. */
|
|
589
642
|
actionIconAt: PropTypes.oneOf(['end', 'start']),
|
|
643
|
+
|
|
590
644
|
/** Display the clear icon if true. */
|
|
591
645
|
clearAble: PropTypes.bool,
|
|
646
|
+
|
|
592
647
|
/** If `true`, the calendar will have a footer controls. */
|
|
593
648
|
controls: PropTypes.bool,
|
|
649
|
+
|
|
594
650
|
/** The default value of the component. */
|
|
595
651
|
defaultValue: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string, PropTypes.object]),
|
|
652
|
+
|
|
596
653
|
/** If `true`, the form control will be disabled. */
|
|
597
654
|
disabled: PropTypes.bool,
|
|
655
|
+
|
|
598
656
|
/** Format to display value. */
|
|
599
657
|
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]),
|
|
658
|
+
|
|
600
659
|
/** View days of previous or next month. */
|
|
601
660
|
displayAnotherMonth: PropTypes.bool,
|
|
661
|
+
|
|
602
662
|
/** Error of the form control. */
|
|
603
663
|
error: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
|
|
664
|
+
|
|
604
665
|
/** InputProps are properties of the input element. */
|
|
605
666
|
inputProps: PropTypes.object,
|
|
667
|
+
|
|
606
668
|
/** InputStyle is style of input element. */
|
|
607
669
|
inputStyle: PropTypes.object,
|
|
670
|
+
|
|
608
671
|
/** Content of the label element. */
|
|
609
672
|
label: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
673
|
+
|
|
610
674
|
/** LabelProps are properties if the label element. */
|
|
611
675
|
labelProps: PropTypes.object,
|
|
676
|
+
|
|
612
677
|
/** Min value of date picker. */
|
|
613
678
|
min: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string, PropTypes.object]),
|
|
679
|
+
|
|
614
680
|
/** Max value of date picker. */
|
|
615
681
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string, PropTypes.object]),
|
|
682
|
+
|
|
616
683
|
/** A callback function when value input change. */
|
|
617
684
|
onChange: PropTypes.func,
|
|
685
|
+
|
|
618
686
|
/** Hints for input. */
|
|
619
687
|
placeholder: PropTypes.string,
|
|
688
|
+
|
|
620
689
|
/** Allow close Popup when press ESC. */
|
|
621
690
|
pressESCToClose: PropTypes.bool,
|
|
691
|
+
|
|
622
692
|
/** Status read only of input. */
|
|
623
693
|
readOnly: PropTypes.bool,
|
|
694
|
+
|
|
624
695
|
/** Required state of the form control. */
|
|
625
696
|
required: PropTypes.bool,
|
|
697
|
+
|
|
626
698
|
/** Format of the returned value. */
|
|
627
699
|
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]),
|
|
700
|
+
|
|
628
701
|
/** Style inline of component. */
|
|
629
702
|
style: PropTypes.object,
|
|
703
|
+
|
|
630
704
|
/** Text align of the input. */
|
|
631
705
|
textAlign: PropTypes.oneOf(['center', 'end', 'start']),
|
|
706
|
+
|
|
632
707
|
/** Value of the component. */
|
|
633
708
|
value: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.string, PropTypes.array, PropTypes.object]),
|
|
709
|
+
|
|
634
710
|
/** View type of the form control. */
|
|
635
711
|
viewType: PropTypes.oneOf(['outlined', 'underlined'])
|
|
636
712
|
};
|