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,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
+
|
|
2
3
|
/** @jsxRuntime classic */
|
|
4
|
+
|
|
3
5
|
/** @jsx jsx */
|
|
4
6
|
import PropTypes from 'prop-types';
|
|
5
7
|
import { jsx, css } from '@emotion/core';
|
|
8
|
+
|
|
6
9
|
const Path = ({
|
|
7
10
|
data,
|
|
8
11
|
getX,
|
|
@@ -18,9 +21,7 @@ const Path = ({
|
|
|
18
21
|
const x = getX(element.x + unitWidth / 1.5);
|
|
19
22
|
const y = getY(element.quantity);
|
|
20
23
|
return [x, y];
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
// const Colors = data.map(element => {
|
|
24
|
+
}); // const Colors = data.map(element => {
|
|
24
25
|
// const colors = element.color;
|
|
25
26
|
// return colors;
|
|
26
27
|
// });
|
|
@@ -37,58 +38,58 @@ const Path = ({
|
|
|
37
38
|
stroke-linejoin: round;
|
|
38
39
|
stroke-width: ${STROKEHover};
|
|
39
40
|
} */
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
// Properties of a line
|
|
41
|
+
`; // Properties of a line
|
|
43
42
|
// I: - pointA (array) [x,y]: coordinates
|
|
44
43
|
// - pointB (array) [x,y]: coordinates
|
|
45
44
|
// O: - (object) { length: l, angle: a }: properties of the line
|
|
45
|
+
|
|
46
46
|
const line = (pointA, pointB) => {
|
|
47
47
|
const lengthX = pointB[0] - pointA[0];
|
|
48
48
|
const lengthY = pointB[1] - pointA[1];
|
|
49
49
|
const Balance = 0.005 * Math.PI;
|
|
50
50
|
const Re = 0.38 * Math.PI;
|
|
51
51
|
let angle = Math.atan2(lengthY, lengthX);
|
|
52
|
+
|
|
52
53
|
if (angle < -0.32 * Math.PI) {
|
|
53
54
|
angle += Re; // make sure the returned angle is in the range of (-PI/2, 3PI/2]
|
|
54
55
|
}
|
|
55
56
|
|
|
56
57
|
if (angle > 0.16 * Math.PI) {
|
|
57
58
|
angle -= Balance;
|
|
58
|
-
}
|
|
59
|
+
} // console.log(angle);
|
|
59
60
|
|
|
60
|
-
// console.log(angle);
|
|
61
61
|
|
|
62
62
|
return {
|
|
63
63
|
length: Math.sqrt(Math.pow(lengthX, 2) + Math.pow(lengthY, 2)),
|
|
64
64
|
angle
|
|
65
65
|
};
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
// Position of a control point
|
|
66
|
+
}; // Position of a control point
|
|
69
67
|
// I: - current (array) [x, y]: current point coordinates
|
|
70
68
|
// - previous (array) [x, y]: previous point coordinates
|
|
71
69
|
// - next (array) [x, y]: next point coordinates
|
|
72
70
|
// - reverse (boolean, optional): sets the direction
|
|
73
71
|
// O: - (array) [x,y]: a tuple of coordinates
|
|
72
|
+
|
|
73
|
+
|
|
74
74
|
const controlPoint = (current, previous, next, reverse) => {
|
|
75
75
|
// When 'current' is the first or last point of the array
|
|
76
76
|
// 'previous' or 'next' don't exist.
|
|
77
77
|
// Replace with 'current'
|
|
78
78
|
const c = current;
|
|
79
79
|
const p = previous ? previous : c;
|
|
80
|
-
const n = next ? next : c;
|
|
81
|
-
|
|
82
|
-
const smoothing = 0.15;
|
|
83
|
-
|
|
84
|
-
const o = line(p, n);
|
|
85
|
-
|
|
86
|
-
const rev = reverse ? Math.PI : 0;
|
|
87
|
-
|
|
80
|
+
const n = next ? next : c; // The smoothing ratio
|
|
81
|
+
|
|
82
|
+
const smoothing = 0.15; // Properties of the opposed-line
|
|
83
|
+
|
|
84
|
+
const o = line(p, n); // If is end-control-point, add PI to the angle to go backward
|
|
85
|
+
|
|
86
|
+
const rev = reverse ? Math.PI : 0; // The control point position is relative to the current point
|
|
87
|
+
|
|
88
88
|
const x = c[0] + Math.cos(o.angle + rev) * o.length * smoothing;
|
|
89
89
|
const y = c[1] + Math.sin(o.angle * 0.095 + rev) * o.length * smoothing;
|
|
90
90
|
return [x, y];
|
|
91
91
|
};
|
|
92
|
+
|
|
92
93
|
const svgPathRender = point => {
|
|
93
94
|
const d = point.reduce((acc, e, i, a) => {
|
|
94
95
|
if (i > 0) {
|
|
@@ -105,13 +106,13 @@ const Path = ({
|
|
|
105
106
|
fill: 'none'
|
|
106
107
|
});
|
|
107
108
|
};
|
|
109
|
+
|
|
108
110
|
const command = point => `L ${point[0]} ${point[1]} `;
|
|
111
|
+
|
|
109
112
|
const svgPath = points => {
|
|
110
113
|
// build the d attributes by looping over the points
|
|
111
|
-
const d = points.reduce((acc, point, i, a) => i === 0 ?
|
|
112
|
-
|
|
113
|
-
`M ${point[0]},${point[1]}` :
|
|
114
|
-
// else
|
|
114
|
+
const d = points.reduce((acc, point, i, a) => i === 0 ? // if first point
|
|
115
|
+
`M ${point[0]},${point[1]}` : // else
|
|
115
116
|
`${acc} ${command(point, i, a)}`, '');
|
|
116
117
|
return jsx("path", {
|
|
117
118
|
d: d,
|
|
@@ -119,27 +120,36 @@ const Path = ({
|
|
|
119
120
|
fill: 'none'
|
|
120
121
|
});
|
|
121
122
|
};
|
|
123
|
+
|
|
122
124
|
return PathVisible ? jsx("g", {
|
|
123
125
|
className: 'DGN-Path-LineChart'
|
|
124
126
|
}, Smooth ? svgPathRender(point) : svgPath(point)) : null;
|
|
125
127
|
};
|
|
128
|
+
|
|
126
129
|
Path.defaultProps = {
|
|
127
130
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
128
131
|
x: PropTypes.number,
|
|
129
132
|
quantity: PropTypes.number
|
|
130
133
|
})).isRequired,
|
|
134
|
+
|
|
131
135
|
/** the getX position x on Ox*/
|
|
132
136
|
getX: PropTypes.func,
|
|
137
|
+
|
|
133
138
|
/** the getY position y on Oy */
|
|
134
139
|
getY: PropTypes.func,
|
|
140
|
+
|
|
135
141
|
/** The color of the line drawn is the default color according to the data returned from the API, otherwise it will be generated by the design. */
|
|
136
142
|
pathColor: PropTypes.string,
|
|
143
|
+
|
|
137
144
|
/** shows the line to be drawn */
|
|
138
145
|
PathVisible: PropTypes.bool,
|
|
146
|
+
|
|
139
147
|
/** show or hiden the line to be drawn smooth */
|
|
140
148
|
Smooth: PropTypes.bool,
|
|
149
|
+
|
|
141
150
|
/** the thickness of the line to be drawn */
|
|
142
151
|
STROKE: PropTypes.number,
|
|
152
|
+
|
|
143
153
|
/** the unitWidth */
|
|
144
154
|
unitWidth: PropTypes.number
|
|
145
155
|
};
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
+
|
|
2
3
|
/** @jsxRuntime classic */
|
|
4
|
+
|
|
3
5
|
/** @jsx jsx */
|
|
4
6
|
import { useState } from 'react';
|
|
5
7
|
import PropTypes from 'prop-types';
|
|
6
8
|
import { jsx, css } from '@emotion/core';
|
|
7
9
|
import { randomString } from "../../../utils";
|
|
8
10
|
import { typography } from "../../../styles/typography";
|
|
11
|
+
|
|
9
12
|
const Points = ({
|
|
10
13
|
data,
|
|
11
14
|
getX,
|
|
@@ -44,9 +47,8 @@ const Points = ({
|
|
|
44
47
|
const textChartCSS = css`
|
|
45
48
|
text-anchor: middle;
|
|
46
49
|
${typography.paragraph3};
|
|
47
|
-
`;
|
|
50
|
+
`; // create drawing function tooltips in different positions
|
|
48
51
|
|
|
49
|
-
// create drawing function tooltips in different positions
|
|
50
52
|
const topTooltipPath = (width, height, offset, radius) => {
|
|
51
53
|
const left = -width / 2;
|
|
52
54
|
const right = width / 2;
|
|
@@ -65,6 +67,7 @@ const Points = ({
|
|
|
65
67
|
H ${offset}
|
|
66
68
|
L 0,0 z`;
|
|
67
69
|
};
|
|
70
|
+
|
|
68
71
|
const bottomTooltipPath = (width, height, offset, radius) => {
|
|
69
72
|
const left = -width / 2;
|
|
70
73
|
const right = width / 2;
|
|
@@ -83,6 +86,7 @@ const Points = ({
|
|
|
83
86
|
H ${offset}
|
|
84
87
|
L 0,0 z`;
|
|
85
88
|
};
|
|
89
|
+
|
|
86
90
|
const leftTooltipPath = (width, height, offset, radius) => {
|
|
87
91
|
const left = -offset - width;
|
|
88
92
|
const right = -offset;
|
|
@@ -101,6 +105,7 @@ const Points = ({
|
|
|
101
105
|
V ${offset}
|
|
102
106
|
L 0,0 z`;
|
|
103
107
|
};
|
|
108
|
+
|
|
104
109
|
const rightTooltipPath = (width, height, offset, radius) => {
|
|
105
110
|
const left = offset;
|
|
106
111
|
const right = offset + width;
|
|
@@ -118,22 +123,24 @@ const Points = ({
|
|
|
118
123
|
Q ${left},${bottom} ${left},${bottom - radius}
|
|
119
124
|
V ${offset}
|
|
120
125
|
L 0,0 z`;
|
|
121
|
-
};
|
|
126
|
+
}; // Create event management function
|
|
127
|
+
|
|
122
128
|
|
|
123
|
-
// Create event management function
|
|
124
129
|
const MouseEnterTarget = (e, i) => {
|
|
125
130
|
if (onEnter) onEnter(e, i);
|
|
126
131
|
document.getElementById(`${id}` + i).style.display = 'block';
|
|
127
132
|
};
|
|
133
|
+
|
|
128
134
|
const MouseLeaveTarget = (e, i) => {
|
|
129
135
|
if (onRemote) onRemote(e, i);
|
|
130
136
|
document.getElementById(`${id}` + i).style.display = 'none';
|
|
131
137
|
};
|
|
138
|
+
|
|
132
139
|
const handleChange = event => {
|
|
133
140
|
if (onClick) onClick(event);
|
|
134
|
-
};
|
|
141
|
+
}; // Create function to display tooltip by position
|
|
142
|
+
|
|
135
143
|
|
|
136
|
-
// Create function to display tooltip by position
|
|
137
144
|
const getPlacement = (point, i) => {
|
|
138
145
|
// convert number -> string
|
|
139
146
|
const h = `${point.quantity}`;
|
|
@@ -142,6 +149,7 @@ const Points = ({
|
|
|
142
149
|
var y = 0;
|
|
143
150
|
var x1 = 0;
|
|
144
151
|
var y1 = 0;
|
|
152
|
+
|
|
145
153
|
if (h.length == 2 || h.length == 1 || h.length == 3) {
|
|
146
154
|
Width += 35;
|
|
147
155
|
x += 23;
|
|
@@ -149,6 +157,7 @@ const Points = ({
|
|
|
149
157
|
x1 += -23;
|
|
150
158
|
y1 += -8;
|
|
151
159
|
}
|
|
160
|
+
|
|
152
161
|
if (h.length == 4 || h.length == 5) {
|
|
153
162
|
Width += 40;
|
|
154
163
|
x += 26;
|
|
@@ -156,15 +165,19 @@ const Points = ({
|
|
|
156
165
|
x1 += -26;
|
|
157
166
|
y1 += -8;
|
|
158
167
|
}
|
|
168
|
+
|
|
159
169
|
if (h.length == 6 || h.length == 7) {
|
|
160
170
|
Width += 50;
|
|
161
171
|
}
|
|
172
|
+
|
|
162
173
|
if (h.length == 8 || h.length == 9) {
|
|
163
174
|
Width += 70;
|
|
164
175
|
}
|
|
176
|
+
|
|
165
177
|
if (h.length == 10 || h.length == 11) {
|
|
166
178
|
Width += 90;
|
|
167
179
|
}
|
|
180
|
+
|
|
168
181
|
if (getX(point.x + unitWidth / 1.5) < 20) {
|
|
169
182
|
return jsx("g", {
|
|
170
183
|
id: `${id}` + i,
|
|
@@ -188,6 +201,7 @@ const Points = ({
|
|
|
188
201
|
fill: "#fff"
|
|
189
202
|
}, point.quantity));
|
|
190
203
|
}
|
|
204
|
+
|
|
191
205
|
if (getX(point.x + unitWidth / 1.5) > viewBoxWidth) {
|
|
192
206
|
return jsx("g", {
|
|
193
207
|
id: `${id}` + i,
|
|
@@ -211,6 +225,7 @@ const Points = ({
|
|
|
211
225
|
fill: "#fff"
|
|
212
226
|
}, point.quantity));
|
|
213
227
|
}
|
|
228
|
+
|
|
214
229
|
if (getY(point.quantity) > 10) {
|
|
215
230
|
return jsx("g", {
|
|
216
231
|
id: `${id}` + i,
|
|
@@ -233,6 +248,7 @@ const Points = ({
|
|
|
233
248
|
fill: "#fff"
|
|
234
249
|
}, point.quantity));
|
|
235
250
|
}
|
|
251
|
+
|
|
236
252
|
return jsx("g", {
|
|
237
253
|
id: `${id}` + i,
|
|
238
254
|
className: 'DGN-Tooltip-Bar',
|
|
@@ -254,6 +270,7 @@ const Points = ({
|
|
|
254
270
|
fill: "#fff"
|
|
255
271
|
}, point.quantity));
|
|
256
272
|
};
|
|
273
|
+
|
|
257
274
|
return pointsVisible ? jsx("g", {
|
|
258
275
|
className: 'DGN-Point-LineChart'
|
|
259
276
|
}, data.map((point, i) => {
|
|
@@ -287,29 +304,41 @@ const Points = ({
|
|
|
287
304
|
}), getPlacement(point, i));
|
|
288
305
|
})) : null;
|
|
289
306
|
};
|
|
307
|
+
|
|
290
308
|
Points.propTypes = {
|
|
291
309
|
/** the getX position x on Ox*/
|
|
292
310
|
getX: PropTypes.func,
|
|
311
|
+
|
|
293
312
|
/** the getY position y on Oy */
|
|
294
313
|
getY: PropTypes.func,
|
|
314
|
+
|
|
295
315
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
296
316
|
maxX: PropTypes.number,
|
|
317
|
+
|
|
297
318
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
298
319
|
maxY: PropTypes.number,
|
|
320
|
+
|
|
299
321
|
/** the minX is minimum of OX quantity returned by data*/
|
|
300
322
|
minX: PropTypes.number,
|
|
323
|
+
|
|
301
324
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
302
325
|
minY: PropTypes.number,
|
|
326
|
+
|
|
303
327
|
/** change the inner color of the point button */
|
|
304
328
|
pointsColor: PropTypes.string,
|
|
329
|
+
|
|
305
330
|
/** show data information when hovering in the area containing the column */
|
|
306
331
|
pointsIsHoverOnZone: PropTypes.bool,
|
|
332
|
+
|
|
307
333
|
/** change the radius of the point is created */
|
|
308
334
|
pointsRadius: PropTypes.number,
|
|
335
|
+
|
|
309
336
|
/** change the border color of the point button */
|
|
310
337
|
pointsStrokeColor: PropTypes.string,
|
|
338
|
+
|
|
311
339
|
/** show or hiden point */
|
|
312
340
|
pointsVisible: PropTypes.bool,
|
|
341
|
+
|
|
313
342
|
/** the unitWidth */
|
|
314
343
|
unitWidth: PropTypes.number
|
|
315
344
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import { jsx } from '@emotion/core';
|
|
5
6
|
import Typography from "../../typography";
|
|
7
|
+
|
|
6
8
|
const Title = ({
|
|
7
9
|
data
|
|
8
10
|
}) => {
|
|
@@ -43,6 +45,7 @@ const Title = ({
|
|
|
43
45
|
}, d.label));
|
|
44
46
|
}))));
|
|
45
47
|
};
|
|
48
|
+
|
|
46
49
|
Title.defaultProps = {
|
|
47
50
|
data: []
|
|
48
51
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import PropTypes from 'prop-types';
|
|
4
5
|
import { memo, forwardRef } from 'react';
|
|
@@ -6,8 +7,8 @@ import { jsx } from '@emotion/core';
|
|
|
6
7
|
import Axis from "./Axis";
|
|
7
8
|
import Labels from "./Labels";
|
|
8
9
|
import Grid from "./Grid";
|
|
9
|
-
import Points from "./Point";
|
|
10
|
-
|
|
10
|
+
import Points from "./Point"; // import Title from './Title';
|
|
11
|
+
|
|
11
12
|
import Path from "./Path";
|
|
12
13
|
import { randomString } from "../../../utils";
|
|
13
14
|
const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
@@ -25,52 +26,57 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
25
26
|
...props
|
|
26
27
|
}, ref) => {
|
|
27
28
|
// const colors = ['#FFD600', '#FFA800', '#FF7A00', '#FF0000', '#B61414', '#8FFF00', '#629000', '#019A5A', '#00C875', '#00FFD1', '#4200FF', '#0075FF', '#0095FF', '#00C2FF', '#00E0FF', '#8F00FF', '#BD00FF', '#FA00FF', '#FF00B8', '#FF3D71'];
|
|
28
|
-
|
|
29
|
-
const dataSource = data.map((item, i) => ({
|
|
30
|
-
...item,
|
|
29
|
+
const dataSource = data.map((item, i) => ({ ...item,
|
|
31
30
|
x: i
|
|
32
|
-
}));
|
|
33
|
-
|
|
34
|
-
// console.log(dataSource);
|
|
31
|
+
})); // console.log(dataSource);
|
|
35
32
|
|
|
36
33
|
const UNIT_WIDTH = 1;
|
|
37
34
|
const id = 'DGN-CUI-LineChart-' + randomString(6, {
|
|
38
35
|
allowNumber: false,
|
|
39
36
|
allowSymbol: false
|
|
40
37
|
});
|
|
38
|
+
|
|
41
39
|
const round = n => {
|
|
42
40
|
return Math.round(n * 100) / 100;
|
|
43
41
|
};
|
|
42
|
+
|
|
44
43
|
const getMinX = () => {
|
|
45
44
|
return dataSource.length > 0 ? dataSource[0].x : 0;
|
|
46
45
|
};
|
|
46
|
+
|
|
47
47
|
const getMinY = () => {
|
|
48
48
|
return 0;
|
|
49
49
|
};
|
|
50
|
+
|
|
50
51
|
const getMaxX = () => {
|
|
51
52
|
return dataSource.length > 0 ? dataSource[dataSource.length - 1].x : 0;
|
|
52
53
|
};
|
|
54
|
+
|
|
53
55
|
const getMaxY = () => {
|
|
54
56
|
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
55
57
|
const maxY = dataSource.length > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, dataSource[0].quantity) : 0;
|
|
56
58
|
return maxY ? Math.ceil(maxY / yStep) * yStep : yStep;
|
|
57
59
|
};
|
|
60
|
+
|
|
58
61
|
const getSvgX = x => {
|
|
59
62
|
const minX = getMinX();
|
|
60
63
|
const maxX = getMaxX();
|
|
61
64
|
const paddingLeft = getLabelsYWidth();
|
|
62
65
|
return round((x - minX) / (maxX + 1 - minX) * (Math.abs(viewBoxWidth) - paddingLeft));
|
|
63
66
|
};
|
|
67
|
+
|
|
64
68
|
const getSvgY = y => {
|
|
65
69
|
const paddingBottom = labelsVisible ? labelsHeightX + labelsOffsetX : 0;
|
|
66
70
|
const height = Math.abs(viewBoxHeight) - paddingBottom;
|
|
67
71
|
const maxY = getMaxY();
|
|
68
72
|
return round(height - y / maxY * height);
|
|
69
73
|
};
|
|
74
|
+
|
|
70
75
|
const getLabelsYWidth = () => {
|
|
71
76
|
const maxY = getMaxY();
|
|
72
77
|
return labelsVisible ? maxY.toString().length * labelsCharacterWidth + labelsOffsetY : 0;
|
|
73
78
|
};
|
|
79
|
+
|
|
74
80
|
const minX = getMinX();
|
|
75
81
|
const maxX = getMaxX();
|
|
76
82
|
const maxY = getMaxY();
|
|
@@ -96,11 +102,9 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
96
102
|
overflow: 'visible',
|
|
97
103
|
margin: `${getLabelsYWidth() * 2}`
|
|
98
104
|
}
|
|
99
|
-
}, jsx(Axis, {
|
|
100
|
-
...props,
|
|
105
|
+
}, jsx(Axis, { ...props,
|
|
101
106
|
...commonProps
|
|
102
|
-
}), jsx(Grid, {
|
|
103
|
-
...props,
|
|
107
|
+
}), jsx(Grid, { ...props,
|
|
104
108
|
...commonProps
|
|
105
109
|
}), jsx(Labels, {
|
|
106
110
|
data: dataSource,
|
|
@@ -129,32 +133,46 @@ BarChart.defaultProps = {
|
|
|
129
133
|
};
|
|
130
134
|
BarChart.propTypes = {
|
|
131
135
|
data: PropTypes.array.isRequired,
|
|
136
|
+
|
|
132
137
|
/** drawn Ratio of viewBoxHeight entered by user, default is: 200px */
|
|
133
138
|
viewBoxHeight: PropTypes.number,
|
|
139
|
+
|
|
134
140
|
/** drawn Ratio of viewBoxWidth entered by user, default is: 500px */
|
|
135
141
|
viewBoxWidth: PropTypes.number,
|
|
142
|
+
|
|
136
143
|
/** the axisColor change color */
|
|
137
144
|
axisColor: PropTypes.string,
|
|
145
|
+
|
|
138
146
|
/** the axisVisible Hide or show the Axis axis */
|
|
139
147
|
axisVisible: PropTypes.bool,
|
|
148
|
+
|
|
140
149
|
/** change style show of label ['', 'italic'], default: 'italic' */
|
|
141
150
|
labelStyle: PropTypes.string,
|
|
151
|
+
|
|
142
152
|
/** change Line grid display style ['full' , 'horizontal', 'none'], default: 'full'*/
|
|
143
153
|
GridLines: PropTypes.string,
|
|
154
|
+
|
|
144
155
|
/** show data information when hovering in the area containing the column */
|
|
145
156
|
pointsIsHoverOnZone: PropTypes.bool,
|
|
157
|
+
|
|
146
158
|
/** show or hiden point */
|
|
147
159
|
pointsVisible: PropTypes.bool,
|
|
160
|
+
|
|
148
161
|
/** change the inner color of the point button */
|
|
149
162
|
pointsColor: PropTypes.string,
|
|
163
|
+
|
|
150
164
|
/** change the radius of the point is created */
|
|
151
165
|
pointsRadius: PropTypes.number,
|
|
166
|
+
|
|
152
167
|
/** the thickness of the line to be drawn */
|
|
153
168
|
STROKE: PropTypes.number,
|
|
169
|
+
|
|
154
170
|
/** shows the line to be drawn */
|
|
155
171
|
PathVisible: PropTypes.bool,
|
|
172
|
+
|
|
156
173
|
/** The color of the line drawn is the default color according to the data returned from the API, otherwise it will be generated by the design. */
|
|
157
174
|
pathColor: PropTypes.string,
|
|
175
|
+
|
|
158
176
|
/** show or hiden the line to be drawn smooth */
|
|
159
177
|
Smooth: PropTypes.bool,
|
|
160
178
|
...Axis.propTypes,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { memo, useEffect, useRef, forwardRef } from 'react';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -23,6 +24,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
23
24
|
if (!ref) {
|
|
24
25
|
ref = useRef(null);
|
|
25
26
|
}
|
|
27
|
+
|
|
26
28
|
const checkText = css`
|
|
27
29
|
display: inline-flex;
|
|
28
30
|
color: ${disabled ? theme.colors.disabled : theme.colors.border};
|
|
@@ -46,6 +48,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
46
48
|
background: ${theme.colors.border};
|
|
47
49
|
border-radius: 1px;
|
|
48
50
|
`;
|
|
51
|
+
|
|
49
52
|
const onClickItem = (e, index) => {
|
|
50
53
|
const clickedItem = ref.current.querySelectorAll('div');
|
|
51
54
|
if (readOnly || clickedItem[index].style.color) return;
|
|
@@ -63,6 +66,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
63
66
|
if (onClick) onClick(e);
|
|
64
67
|
if (onChoose) onChoose(e);
|
|
65
68
|
};
|
|
69
|
+
|
|
66
70
|
useEffect(() => {
|
|
67
71
|
ref.current.querySelectorAll('div').forEach((el, i) => {
|
|
68
72
|
if (i === chosen || el.textContent === chosen) {
|
|
@@ -138,12 +142,16 @@ InterviewStatus.defaultProps = {
|
|
|
138
142
|
InterviewStatus.propsTypes = {
|
|
139
143
|
/** Prevent all event if true */
|
|
140
144
|
disabled: PropTypes.bool,
|
|
145
|
+
|
|
141
146
|
/** Item of CheckText in CheckText component */
|
|
142
147
|
option: PropTypes.oneOf(['status', 'success', 'warning', 'danger']),
|
|
148
|
+
|
|
143
149
|
/** the displayed chosen for each change */
|
|
144
150
|
chosen: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
151
|
+
|
|
145
152
|
/** The function will run to return a value of CheckText Component */
|
|
146
153
|
onClick: PropTypes.func,
|
|
154
|
+
|
|
147
155
|
/** The function will run to return a value of CheckText Component */
|
|
148
156
|
onChoose: PropTypes.func
|
|
149
157
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -21,6 +22,7 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
21
22
|
if (!ref) {
|
|
22
23
|
ref = useRef(null);
|
|
23
24
|
}
|
|
25
|
+
|
|
24
26
|
const checkText = css`
|
|
25
27
|
display: inline-flex;
|
|
26
28
|
color: ${disabled ? theme.colors.disabled : theme.colors.border};
|
|
@@ -44,6 +46,7 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
44
46
|
background: ${theme.colors.border};
|
|
45
47
|
border-radius: 1px;
|
|
46
48
|
`;
|
|
49
|
+
|
|
47
50
|
const onClickItem = (e, index) => {
|
|
48
51
|
const clickedItem = ref.current.querySelectorAll('div');
|
|
49
52
|
if (readOnly || clickedItem[index].style.color) return;
|
|
@@ -61,6 +64,7 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
61
64
|
if (onClick) onClick(e);
|
|
62
65
|
if (onChoose) onChoose(e);
|
|
63
66
|
};
|
|
67
|
+
|
|
64
68
|
useEffect(() => {
|
|
65
69
|
ref.current.querySelectorAll('div').forEach((el, i) => {
|
|
66
70
|
if (i === chosen || el.textContent === chosen) {
|
|
@@ -155,10 +159,13 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
155
159
|
InterviewConfirmation.propsTypes = {
|
|
156
160
|
/** Prevent all event if true */
|
|
157
161
|
disabled: PropTypes.bool,
|
|
162
|
+
|
|
158
163
|
/** the displayed chosen for each change */
|
|
159
164
|
chosen: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
165
|
+
|
|
160
166
|
/** The function will run to return a value of CheckText Component */
|
|
161
167
|
onClick: PropTypes.func,
|
|
168
|
+
|
|
162
169
|
/** The function will run to return a value of CheckText Component */
|
|
163
170
|
onChoose: PropTypes.func
|
|
164
171
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
4
5
|
import PropTypes from 'prop-types';
|
|
@@ -21,6 +22,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
21
22
|
if (!ref) {
|
|
22
23
|
ref = useRef(null);
|
|
23
24
|
}
|
|
25
|
+
|
|
24
26
|
const checkText = css`
|
|
25
27
|
display: inline-flex;
|
|
26
28
|
color: ${disabled ? theme.colors.disabled : theme.colors.border};
|
|
@@ -44,6 +46,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
44
46
|
background: ${theme.colors.border};
|
|
45
47
|
border-radius: 1px;
|
|
46
48
|
`;
|
|
49
|
+
|
|
47
50
|
const onClickItem = (e, index) => {
|
|
48
51
|
const clickedItem = ref.current.querySelectorAll('div');
|
|
49
52
|
if (readOnly || clickedItem[index].style.color) return;
|
|
@@ -61,6 +64,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
61
64
|
if (onClick) onClick(e);
|
|
62
65
|
if (onChoose) onChoose(e);
|
|
63
66
|
};
|
|
67
|
+
|
|
64
68
|
useEffect(() => {
|
|
65
69
|
ref.current.querySelectorAll('div').forEach((el, i) => {
|
|
66
70
|
if (i === chosen || el.textContent === chosen) {
|
|
@@ -121,10 +125,13 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
121
125
|
InterviewStatus.propsTypes = {
|
|
122
126
|
/** Prevent all event if true */
|
|
123
127
|
disabled: PropTypes.bool,
|
|
128
|
+
|
|
124
129
|
/** the displayed chosen for each change */
|
|
125
130
|
chosen: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
131
|
+
|
|
126
132
|
/** The function will run to return a value of CheckText Component */
|
|
127
133
|
onClick: PropTypes.func,
|
|
134
|
+
|
|
128
135
|
/** The function will run to return a value of CheckText Component */
|
|
129
136
|
onChoose: PropTypes.func
|
|
130
137
|
};
|