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,10 +1,13 @@
|
|
|
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';
|
|
6
8
|
import theme from "../../../theme/settings";
|
|
7
9
|
import { typography } from "../../../styles/typography";
|
|
10
|
+
|
|
8
11
|
const Labels = ({
|
|
9
12
|
getX,
|
|
10
13
|
getY,
|
|
@@ -54,11 +57,13 @@ const Labels = ({
|
|
|
54
57
|
fill: ${theme.colors.secondary};
|
|
55
58
|
cursor: 'pointer';
|
|
56
59
|
`;
|
|
60
|
+
|
|
57
61
|
if (labelsVisible) {
|
|
58
62
|
let xLabels;
|
|
59
63
|
let yLabels;
|
|
60
64
|
let tile = 4;
|
|
61
65
|
let tile2 = 9;
|
|
66
|
+
|
|
62
67
|
const TiLe = () => {
|
|
63
68
|
if (viewBoxWidth >= 800) {
|
|
64
69
|
return tile;
|
|
@@ -66,6 +71,7 @@ const Labels = ({
|
|
|
66
71
|
return tile2;
|
|
67
72
|
}
|
|
68
73
|
};
|
|
74
|
+
|
|
69
75
|
xLabels = labelStyle === 'italic' ? data.map((point, x) => jsx("text", {
|
|
70
76
|
key: x,
|
|
71
77
|
css: LabelCSS,
|
|
@@ -84,9 +90,11 @@ const Labels = ({
|
|
|
84
90
|
}, labelsFormatX(point.name))));
|
|
85
91
|
const yLabelsRange = [];
|
|
86
92
|
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
93
|
+
|
|
87
94
|
for (let i = 0; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
88
95
|
yLabelsRange.push(i);
|
|
89
96
|
}
|
|
97
|
+
|
|
90
98
|
yLabels = yLabelsRange.map(quantity => jsx("text", {
|
|
91
99
|
key: quantity,
|
|
92
100
|
fill: labelsColor,
|
|
@@ -108,6 +116,7 @@ const Labels = ({
|
|
|
108
116
|
return null;
|
|
109
117
|
}
|
|
110
118
|
};
|
|
119
|
+
|
|
111
120
|
Labels.defaultProps = {
|
|
112
121
|
getX: x => x,
|
|
113
122
|
getY: quantity => quantity,
|
|
@@ -127,10 +136,13 @@ Labels.defaultProps = {
|
|
|
127
136
|
Labels.propTypes = {
|
|
128
137
|
/** the getX position x on Ox*/
|
|
129
138
|
getX: PropTypes.func,
|
|
139
|
+
|
|
130
140
|
/** the getY position y on Oy */
|
|
131
141
|
getY: PropTypes.func,
|
|
142
|
+
|
|
132
143
|
/** the labelsColor change color */
|
|
133
144
|
labelsColor: PropTypes.string,
|
|
145
|
+
|
|
134
146
|
/** change style show of label ['', 'italic'], default: 'italic' */
|
|
135
147
|
labelStyle: PropTypes.string,
|
|
136
148
|
labelsCountY: PropTypes.number,
|
|
@@ -140,16 +152,22 @@ Labels.propTypes = {
|
|
|
140
152
|
labelsOffsetX: PropTypes.number,
|
|
141
153
|
labelsOffsetY: PropTypes.number,
|
|
142
154
|
labelsStepX: PropTypes.number,
|
|
155
|
+
|
|
143
156
|
/** change show or hiden of label */
|
|
144
157
|
labelsVisible: PropTypes.bool,
|
|
158
|
+
|
|
145
159
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
146
160
|
maxX: PropTypes.number,
|
|
161
|
+
|
|
147
162
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
148
163
|
maxY: PropTypes.number,
|
|
164
|
+
|
|
149
165
|
/** the minX is minimum of OX quantity returned by data*/
|
|
150
166
|
minX: PropTypes.number,
|
|
167
|
+
|
|
151
168
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
152
169
|
minY: PropTypes.number,
|
|
170
|
+
|
|
153
171
|
/** the unitWidth */
|
|
154
172
|
unitWidth: PropTypes.number
|
|
155
173
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import PropTypes from "prop-types";
|
|
4
5
|
import { jsx } from '@emotion/core';
|
|
6
|
+
|
|
5
7
|
const Points = ({
|
|
6
8
|
data,
|
|
7
9
|
getX,
|
|
@@ -45,37 +47,52 @@ const Points = ({
|
|
|
45
47
|
}, jsx("title", null, point.name, " : ", point.quantity));
|
|
46
48
|
})) : null;
|
|
47
49
|
};
|
|
50
|
+
|
|
48
51
|
Points.propTypes = {
|
|
49
52
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
50
53
|
x: PropTypes.number,
|
|
51
54
|
quantity: PropTypes.number
|
|
52
55
|
})).isRequired,
|
|
56
|
+
|
|
53
57
|
/** the getX position x on Ox*/
|
|
54
58
|
getX: PropTypes.func,
|
|
59
|
+
|
|
55
60
|
/** the getY position y on Oy */
|
|
56
61
|
getY: PropTypes.func,
|
|
62
|
+
|
|
57
63
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
58
64
|
maxX: PropTypes.number,
|
|
65
|
+
|
|
59
66
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
60
67
|
maxY: PropTypes.number,
|
|
68
|
+
|
|
61
69
|
/** the minX is minimum of OX quantity returned by data*/
|
|
62
70
|
minX: PropTypes.number,
|
|
71
|
+
|
|
63
72
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
64
73
|
minY: PropTypes.number,
|
|
74
|
+
|
|
65
75
|
/** change the inner color of the point button */
|
|
66
76
|
pointsColor: PropTypes.string,
|
|
77
|
+
|
|
67
78
|
/** show data information when hovering in the area containing the column */
|
|
68
79
|
pointsIsHoverOnZone: PropTypes.bool,
|
|
80
|
+
|
|
69
81
|
/** function change event hover */
|
|
70
82
|
onHover: PropTypes.func,
|
|
83
|
+
|
|
71
84
|
/** change the radius of the point is created */
|
|
72
85
|
pointsRadius: PropTypes.number,
|
|
86
|
+
|
|
73
87
|
/** change the border color of the point button */
|
|
74
88
|
pointsStrokeColor: PropTypes.string,
|
|
89
|
+
|
|
75
90
|
/** the thickness of the inner core point */
|
|
76
91
|
pointsStrokeWidth: PropTypes.number,
|
|
92
|
+
|
|
77
93
|
/** show or hiden point */
|
|
78
94
|
pointsVisible: PropTypes.bool,
|
|
95
|
+
|
|
79
96
|
/** the unitWidth */
|
|
80
97
|
unitWidth: PropTypes.number
|
|
81
98
|
};
|
|
@@ -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';
|
|
@@ -21,8 +22,7 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
21
22
|
labelsHeightX,
|
|
22
23
|
...props
|
|
23
24
|
}, ref) => {
|
|
24
|
-
const dataSource = data.map((item, i) => ({
|
|
25
|
-
...item,
|
|
25
|
+
const dataSource = data.map((item, i) => ({ ...item,
|
|
26
26
|
x: i
|
|
27
27
|
}));
|
|
28
28
|
const UNIT_WIDTH = 1;
|
|
@@ -30,39 +30,48 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
30
30
|
allowNumber: false,
|
|
31
31
|
allowSymbol: false
|
|
32
32
|
});
|
|
33
|
+
|
|
33
34
|
const round = n => {
|
|
34
35
|
return Math.round(n * 100) / 100;
|
|
35
36
|
};
|
|
37
|
+
|
|
36
38
|
const getMinX = () => {
|
|
37
39
|
return dataSource.length > 0 ? dataSource[0].x : 0;
|
|
38
40
|
};
|
|
41
|
+
|
|
39
42
|
const getMaxX = () => {
|
|
40
43
|
return dataSource.length > 0 ? dataSource[dataSource.length - 1].x : 0;
|
|
41
44
|
};
|
|
45
|
+
|
|
42
46
|
const getMinY = () => {
|
|
43
47
|
return 0;
|
|
44
48
|
};
|
|
49
|
+
|
|
45
50
|
const getMaxY = () => {
|
|
46
51
|
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
47
52
|
const maxY = dataSource.length > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, dataSource[0].quantity) : 0;
|
|
48
53
|
return maxY ? Math.ceil(maxY / yStep) * yStep : yStep;
|
|
49
54
|
};
|
|
55
|
+
|
|
50
56
|
const getSvgX = x => {
|
|
51
57
|
const minX = getMinX();
|
|
52
58
|
const maxX = getMaxX();
|
|
53
59
|
const paddingLeft = getLabelsYWidth();
|
|
54
60
|
return round((x - minX) / (maxX + 1 - minX) * (Math.abs(viewBoxWidth) - paddingLeft));
|
|
55
61
|
};
|
|
62
|
+
|
|
56
63
|
const getSvgY = y => {
|
|
57
64
|
const paddingBottom = labelsVisible ? labelsHeightX + labelsOffsetX : 0;
|
|
58
65
|
const height = Math.abs(viewBoxHeight) - paddingBottom;
|
|
59
66
|
const maxY = getMaxY();
|
|
60
67
|
return round(height - y / maxY * height);
|
|
61
68
|
};
|
|
69
|
+
|
|
62
70
|
const getLabelsYWidth = () => {
|
|
63
71
|
const maxY = getMaxY();
|
|
64
72
|
return labelsVisible ? maxY.toString().length * labelsCharacterWidth + labelsOffsetY : 0;
|
|
65
73
|
};
|
|
74
|
+
|
|
66
75
|
const minX = getMinX();
|
|
67
76
|
const maxX = getMaxX();
|
|
68
77
|
const maxY = getMaxY();
|
|
@@ -87,11 +96,9 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
87
96
|
overflow: 'visible',
|
|
88
97
|
margin: `${getLabelsYWidth() * 2}`
|
|
89
98
|
}
|
|
90
|
-
}, jsx(Axis, {
|
|
91
|
-
...props,
|
|
99
|
+
}, jsx(Axis, { ...props,
|
|
92
100
|
...commonProps
|
|
93
|
-
}), jsx(Grid, {
|
|
94
|
-
...props,
|
|
101
|
+
}), jsx(Grid, { ...props,
|
|
95
102
|
...commonProps
|
|
96
103
|
}), jsx(Bars, {
|
|
97
104
|
data: dataSource,
|
|
@@ -124,32 +131,45 @@ BarChart.propTypes = {
|
|
|
124
131
|
x: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
125
132
|
quantity: PropTypes.number
|
|
126
133
|
})).isRequired,
|
|
134
|
+
|
|
127
135
|
/** drawn Ratio of viewBoxHeight entered by user, default is: 200px */
|
|
128
136
|
viewBoxHeight: PropTypes.number,
|
|
137
|
+
|
|
129
138
|
/** drawn Ratio of viewBoxWidth entered by user, default is: 500px */
|
|
130
139
|
viewBoxWidth: PropTypes.number,
|
|
140
|
+
|
|
131
141
|
/** change color of Bar in BarChart */
|
|
132
142
|
barsColor: PropTypes.string,
|
|
143
|
+
|
|
133
144
|
/** change ColumB grid display style ['full' , 'horizontal', 'none']*/
|
|
134
145
|
GridLines: PropTypes.string,
|
|
135
146
|
//** change style show of label (default, italic) */
|
|
136
147
|
labelStyle: PropTypes.string,
|
|
148
|
+
|
|
137
149
|
/** the axisVisible Hide or show the Axis axis */
|
|
138
150
|
axisVisible: PropTypes.bool,
|
|
151
|
+
|
|
139
152
|
/** the axisColor change color */
|
|
140
153
|
axisColor: PropTypes.string,
|
|
154
|
+
|
|
141
155
|
/** change color of grid Columb*/
|
|
142
156
|
gridColor: PropTypes.string,
|
|
157
|
+
|
|
143
158
|
/** show data information when hovering in the area containing the column */
|
|
144
159
|
pointsIsHoverOnZone: PropTypes.bool,
|
|
160
|
+
|
|
145
161
|
/** show or hiden point */
|
|
146
162
|
pointsVisible: PropTypes.bool,
|
|
163
|
+
|
|
147
164
|
/** change the inner color of the point button */
|
|
148
165
|
pointsColor: PropTypes.string,
|
|
166
|
+
|
|
149
167
|
/** change the border color of the point button */
|
|
150
168
|
pointsStrokeColor: PropTypes.string,
|
|
169
|
+
|
|
151
170
|
/** the thickness of the inner core point */
|
|
152
171
|
pointsStrokeWidth: PropTypes.number,
|
|
172
|
+
|
|
153
173
|
/** change the radius of the point is created */
|
|
154
174
|
pointsRadius: PropTypes.number,
|
|
155
175
|
...Bars.propTypes,
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import PropTypes from "prop-types";
|
|
4
5
|
import { jsx } from '@emotion/core';
|
|
6
|
+
|
|
5
7
|
const Axis = ({
|
|
6
8
|
axisColor,
|
|
7
9
|
axisVisible,
|
|
@@ -31,6 +33,7 @@ const Axis = ({
|
|
|
31
33
|
y2: getY(maxY + 5)
|
|
32
34
|
})) : null;
|
|
33
35
|
};
|
|
36
|
+
|
|
34
37
|
Axis.defaultProps = {
|
|
35
38
|
axisColor: '#7F828E',
|
|
36
39
|
axisOpacity: 1,
|
|
@@ -43,24 +46,33 @@ Axis.defaultProps = {
|
|
|
43
46
|
Axis.propTypes = {
|
|
44
47
|
/** the axisColor change color */
|
|
45
48
|
axisColor: PropTypes.string,
|
|
49
|
+
|
|
46
50
|
/** the axisOpacity property sets the opacity of an element*/
|
|
47
51
|
axisOpacity: PropTypes.number,
|
|
52
|
+
|
|
48
53
|
/** the axisVisible Hide or show the Axis axis */
|
|
49
54
|
axisVisible: PropTypes.bool,
|
|
55
|
+
|
|
50
56
|
/** the axisWidth change the thickness of the column */
|
|
51
57
|
axisWidth: PropTypes.number,
|
|
58
|
+
|
|
52
59
|
/** the getX position x on Ox*/
|
|
53
60
|
getX: PropTypes.func,
|
|
61
|
+
|
|
54
62
|
/** the getY position y on Oy */
|
|
55
63
|
getY: PropTypes.func,
|
|
64
|
+
|
|
56
65
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
57
66
|
maxX: PropTypes.number,
|
|
67
|
+
|
|
58
68
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
59
69
|
maxY: PropTypes.number,
|
|
70
|
+
|
|
60
71
|
/** the minX is minimum of OX quantity returned by data*/
|
|
61
72
|
minX: PropTypes.number,
|
|
62
73
|
//** the minY is minimum of Oy quantity returned by data*/
|
|
63
74
|
minY: PropTypes.number,
|
|
75
|
+
|
|
64
76
|
/** the unitWidth */
|
|
65
77
|
unitWidth: PropTypes.number
|
|
66
78
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import { memo, useRef, forwardRef, useState } from 'react';
|
|
4
5
|
import { css, jsx } from '@emotion/core';
|
|
@@ -20,15 +21,14 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
20
21
|
minX,
|
|
21
22
|
minY,
|
|
22
23
|
unitWidth,
|
|
23
|
-
onClick
|
|
24
|
-
|
|
24
|
+
onClick // ...props
|
|
25
|
+
|
|
25
26
|
}, ref) => {
|
|
26
27
|
const [id] = useState(randomString(6, {
|
|
27
28
|
allowNumber: false,
|
|
28
29
|
allowSymbol: false
|
|
29
|
-
}));
|
|
30
|
+
})); // Start create css in Component
|
|
30
31
|
|
|
31
|
-
// Start create css in Component
|
|
32
32
|
const barChartCSS = css`
|
|
33
33
|
position: relative;
|
|
34
34
|
opacity: 0.7;
|
|
@@ -43,19 +43,18 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
43
43
|
const textChartCSS = css`
|
|
44
44
|
text-anchor: middle;
|
|
45
45
|
${typography.paragraph3};
|
|
46
|
-
`;
|
|
47
|
-
// End create css in Component
|
|
48
|
-
|
|
46
|
+
`; // End create css in Component
|
|
49
47
|
// Create variable to calculate
|
|
48
|
+
|
|
50
49
|
const round = n => {
|
|
51
50
|
return Math.round(n * 100) / 100;
|
|
52
51
|
};
|
|
52
|
+
|
|
53
53
|
const barChart = useRef(null);
|
|
54
54
|
const BARS_MARGIN_DEFAULT = 0.16;
|
|
55
55
|
const margin = barsMargin >= 0 && barsMargin < unitWidth / 2 ? barsMargin : BARS_MARGIN_DEFAULT;
|
|
56
|
-
const barsWidth = unitWidth - margin * 3;
|
|
56
|
+
const barsWidth = unitWidth - margin * 3; // create drawing function tooltips in different positions
|
|
57
57
|
|
|
58
|
-
// create drawing function tooltips in different positions
|
|
59
58
|
const topTooltipPath = (width, height, offset, radius) => {
|
|
60
59
|
const left = -width / 2;
|
|
61
60
|
const right = width / 2;
|
|
@@ -74,6 +73,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
74
73
|
H ${offset}
|
|
75
74
|
L 0,0 z`;
|
|
76
75
|
};
|
|
76
|
+
|
|
77
77
|
const bottomTooltipPath = (width, height, offset, radius) => {
|
|
78
78
|
const left = -width / 2;
|
|
79
79
|
const right = width / 2;
|
|
@@ -92,6 +92,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
92
92
|
H ${offset}
|
|
93
93
|
L 0,0 z`;
|
|
94
94
|
};
|
|
95
|
+
|
|
95
96
|
const leftTooltipPath = (width, height, offset, radius) => {
|
|
96
97
|
const left = -offset - width;
|
|
97
98
|
const right = -offset;
|
|
@@ -110,6 +111,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
110
111
|
V ${offset}
|
|
111
112
|
L 0,0 z`;
|
|
112
113
|
};
|
|
114
|
+
|
|
113
115
|
const rightTooltipPath = (width, height, offset, radius) => {
|
|
114
116
|
const left = offset;
|
|
115
117
|
const right = offset + width;
|
|
@@ -127,41 +129,49 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
127
129
|
Q ${left},${bottom} ${left},${bottom - radius}
|
|
128
130
|
V ${offset}
|
|
129
131
|
L 0,0 z`;
|
|
130
|
-
};
|
|
132
|
+
}; // Create event management function
|
|
133
|
+
|
|
131
134
|
|
|
132
|
-
// Create event management function
|
|
133
135
|
const MouseEnterTarget = (e, i) => {
|
|
134
136
|
if (onEnter) onEnter(e, i);
|
|
135
137
|
document.getElementById(`${id}` + i).style.display = 'block';
|
|
136
138
|
};
|
|
139
|
+
|
|
137
140
|
const MouseLeaveTarget = (e, i) => {
|
|
138
141
|
if (onRemote) onRemote(e, i);
|
|
139
142
|
document.getElementById(`${id}` + i).style.display = 'none';
|
|
140
143
|
};
|
|
144
|
+
|
|
141
145
|
const handleChange = event => {
|
|
142
146
|
if (onClick) onClick(event);
|
|
143
|
-
};
|
|
147
|
+
}; // Create function to display tooltip by position
|
|
148
|
+
|
|
144
149
|
|
|
145
|
-
// Create function to display tooltip by position
|
|
146
150
|
const getPlacement = (point, i) => {
|
|
147
151
|
// convert number -> string
|
|
148
152
|
const h = `${point.quantity}`;
|
|
149
153
|
var Width = 0;
|
|
154
|
+
|
|
150
155
|
if (h.length == 2 || h.length == 1 || h.length == 3) {
|
|
151
156
|
Width += 35;
|
|
152
157
|
}
|
|
158
|
+
|
|
153
159
|
if (h.length == 4 || h.length == 5) {
|
|
154
160
|
Width += 40;
|
|
155
161
|
}
|
|
162
|
+
|
|
156
163
|
if (h.length == 6 || h.length == 7) {
|
|
157
164
|
Width += 50;
|
|
158
165
|
}
|
|
166
|
+
|
|
159
167
|
if (h.length == 8 || h.length == 9) {
|
|
160
168
|
Width += 70;
|
|
161
169
|
}
|
|
170
|
+
|
|
162
171
|
if (h.length == 10 || h.length == 11) {
|
|
163
172
|
Width += 90;
|
|
164
173
|
}
|
|
174
|
+
|
|
165
175
|
if (getX(point.x + unitWidth / 2) < 20) {
|
|
166
176
|
return jsx("g", {
|
|
167
177
|
id: `${id}` + i,
|
|
@@ -185,6 +195,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
185
195
|
fill: "#fff"
|
|
186
196
|
}, point.quantity));
|
|
187
197
|
}
|
|
198
|
+
|
|
188
199
|
if (getX(point.x + unitWidth / 2) > viewBoxWidth) {
|
|
189
200
|
return jsx("g", {
|
|
190
201
|
id: `${id}` + i,
|
|
@@ -208,6 +219,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
208
219
|
fill: "#fff"
|
|
209
220
|
}, point.quantity));
|
|
210
221
|
}
|
|
222
|
+
|
|
211
223
|
if (getY(point.quantity + 0.5) > 10) {
|
|
212
224
|
return jsx("g", {
|
|
213
225
|
id: `${id}` + i,
|
|
@@ -230,6 +242,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
230
242
|
fill: "#fff"
|
|
231
243
|
}, point.quantity));
|
|
232
244
|
}
|
|
245
|
+
|
|
233
246
|
return jsx("g", {
|
|
234
247
|
id: `${id}` + i,
|
|
235
248
|
className: 'DGN-Tooltip-Bar',
|
|
@@ -250,9 +263,9 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
250
263
|
css: textChartCSS,
|
|
251
264
|
fill: "#fff"
|
|
252
265
|
}, point.quantity));
|
|
253
|
-
};
|
|
266
|
+
}; // Create function to display data
|
|
267
|
+
|
|
254
268
|
|
|
255
|
-
// Create function to display data
|
|
256
269
|
const getPlacementNotHover = (point, i) => {
|
|
257
270
|
return jsx("g", {
|
|
258
271
|
id: `${id}` + i,
|
|
@@ -268,6 +281,7 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
268
281
|
fill: barsColor
|
|
269
282
|
}, point.quantity));
|
|
270
283
|
};
|
|
284
|
+
|
|
271
285
|
return hoverTooltip ? jsx("g", {
|
|
272
286
|
className: 'DGN-CUI-Bar',
|
|
273
287
|
ref: ref
|
|
@@ -316,26 +330,33 @@ Bars.propTypes = {
|
|
|
316
330
|
/** change color of Bar in BarChart */
|
|
317
331
|
barsColor: PropTypes.string,
|
|
318
332
|
barsMargin: PropTypes.number,
|
|
333
|
+
|
|
319
334
|
/** change the percentage of blurred colors on the column */
|
|
320
335
|
barsOpacity: PropTypes.number,
|
|
321
336
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
322
337
|
x: PropTypes.number,
|
|
323
338
|
quantity: PropTypes.number
|
|
324
339
|
})).isRequired,
|
|
340
|
+
|
|
325
341
|
/** the getX position x on Ox*/
|
|
326
342
|
getX: PropTypes.func,
|
|
343
|
+
|
|
327
344
|
/** the getY position y on Oy */
|
|
328
345
|
getY: PropTypes.func,
|
|
329
346
|
labelsHeightX: Labels.propTypes.labelsHeightX,
|
|
330
347
|
labelsOffsetX: Labels.propTypes.labelsOffsetX,
|
|
331
348
|
labelsOffsetY: Labels.propTypes.labelsOffsetY,
|
|
332
349
|
labelsWidthY: PropTypes.number,
|
|
350
|
+
|
|
333
351
|
/** the minX is minimum of OX quantity returned by data*/
|
|
334
352
|
minX: PropTypes.number.isRequired,
|
|
353
|
+
|
|
335
354
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
336
355
|
minY: PropTypes.number.isRequired,
|
|
356
|
+
|
|
337
357
|
/** the unitWidth */
|
|
338
358
|
unitWidth: PropTypes.number,
|
|
359
|
+
|
|
339
360
|
/** Shows tooltip containing data on hover */
|
|
340
361
|
hoverTooltip: PropTypes.bool
|
|
341
362
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
+
|
|
2
3
|
/** @jsx jsx */
|
|
3
4
|
import PropTypes from "prop-types";
|
|
4
5
|
import { jsx } from '@emotion/core';
|
|
6
|
+
|
|
5
7
|
const Grid = ({
|
|
6
8
|
getX,
|
|
7
9
|
getY,
|
|
@@ -17,6 +19,7 @@ const Grid = ({
|
|
|
17
19
|
}) => {
|
|
18
20
|
let gridX = [];
|
|
19
21
|
let gridY = [];
|
|
22
|
+
|
|
20
23
|
for (let i = minX; i <= maxX + unitWidth; i++) {
|
|
21
24
|
gridX.push(jsx("line", {
|
|
22
25
|
key: i,
|
|
@@ -26,7 +29,9 @@ const Grid = ({
|
|
|
26
29
|
y2: getY(maxY + 5)
|
|
27
30
|
}));
|
|
28
31
|
}
|
|
32
|
+
|
|
29
33
|
const yStep = labelsCountY > 0 ? labelsCountY : unitWidth;
|
|
34
|
+
|
|
30
35
|
for (let i = minY; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
31
36
|
gridY.push(jsx("line", {
|
|
32
37
|
key: i,
|
|
@@ -36,6 +41,7 @@ const Grid = ({
|
|
|
36
41
|
y2: getY(i)
|
|
37
42
|
}));
|
|
38
43
|
}
|
|
44
|
+
|
|
39
45
|
if (GridLines === 'full') {
|
|
40
46
|
return jsx("g", {
|
|
41
47
|
className: 'DGN-Grid-BarChart',
|
|
@@ -43,6 +49,7 @@ const Grid = ({
|
|
|
43
49
|
strokeWidth: gridWidth
|
|
44
50
|
}, gridX, gridY);
|
|
45
51
|
}
|
|
52
|
+
|
|
46
53
|
if (GridLines === 'horizontal') {
|
|
47
54
|
return jsx("g", {
|
|
48
55
|
className: 'DGN-Grid-BarChart',
|
|
@@ -50,6 +57,7 @@ const Grid = ({
|
|
|
50
57
|
strokeWidth: gridWidth
|
|
51
58
|
}, gridY);
|
|
52
59
|
}
|
|
60
|
+
|
|
53
61
|
if (GridLines === 'none') {
|
|
54
62
|
return null;
|
|
55
63
|
} else {
|
|
@@ -60,27 +68,37 @@ const Grid = ({
|
|
|
60
68
|
}, gridY);
|
|
61
69
|
}
|
|
62
70
|
};
|
|
71
|
+
|
|
63
72
|
Grid.propTypes = {
|
|
64
73
|
/** the getX position x on Ox*/
|
|
65
74
|
getX: PropTypes.func,
|
|
75
|
+
|
|
66
76
|
/** the getY position y on Oy */
|
|
67
77
|
getY: PropTypes.func,
|
|
78
|
+
|
|
68
79
|
/** change color of grid Columb*/
|
|
69
80
|
gridColor: PropTypes.string,
|
|
81
|
+
|
|
70
82
|
/** change Columb grid display style ['full' , 'horizontal', 'none']*/
|
|
71
83
|
GridLines: PropTypes.string,
|
|
84
|
+
|
|
72
85
|
/** hiden or show grid columb*/
|
|
73
86
|
gridVisible: PropTypes.bool,
|
|
74
87
|
gridWidth: PropTypes.number,
|
|
75
88
|
labelsCountY: PropTypes.number,
|
|
89
|
+
|
|
76
90
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
77
91
|
maxX: PropTypes.number,
|
|
92
|
+
|
|
78
93
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
79
94
|
maxY: PropTypes.number,
|
|
95
|
+
|
|
80
96
|
/** the minX is minimum of OX quantity returned by data*/
|
|
81
97
|
minX: PropTypes.number,
|
|
98
|
+
|
|
82
99
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
83
100
|
minY: PropTypes.number,
|
|
101
|
+
|
|
84
102
|
/** the unitWidth */
|
|
85
103
|
unitWidth: PropTypes.number
|
|
86
104
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
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';
|
|
6
8
|
import theme from "../../../theme/settings";
|
|
7
9
|
import { typography } from "../../../styles/typography";
|
|
10
|
+
|
|
8
11
|
const Labels = ({
|
|
9
12
|
getX,
|
|
10
13
|
getY,
|
|
@@ -54,11 +57,13 @@ const Labels = ({
|
|
|
54
57
|
fill: ${theme.colors.secondary};
|
|
55
58
|
cursor: 'pointer';
|
|
56
59
|
`;
|
|
60
|
+
|
|
57
61
|
if (labelsVisible) {
|
|
58
62
|
let xLabels;
|
|
59
63
|
let yLabels;
|
|
60
64
|
let tile = 4;
|
|
61
65
|
let tile2 = 9;
|
|
66
|
+
|
|
62
67
|
const TiLe = () => {
|
|
63
68
|
if (viewBoxWidth >= 800) {
|
|
64
69
|
return tile;
|
|
@@ -66,6 +71,7 @@ const Labels = ({
|
|
|
66
71
|
return tile2;
|
|
67
72
|
}
|
|
68
73
|
};
|
|
74
|
+
|
|
69
75
|
xLabels = labelStyle === 'italic' ? data.map((point, x) => jsx("text", {
|
|
70
76
|
key: x,
|
|
71
77
|
css: LabelCSS,
|
|
@@ -84,9 +90,11 @@ const Labels = ({
|
|
|
84
90
|
}, labelsFormatX(point.name))));
|
|
85
91
|
const yLabelsRange = [];
|
|
86
92
|
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
93
|
+
|
|
87
94
|
for (let i = 0; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
88
95
|
yLabelsRange.push(i);
|
|
89
96
|
}
|
|
97
|
+
|
|
90
98
|
yLabels = yLabelsRange.map(quantity => jsx("text", {
|
|
91
99
|
key: quantity,
|
|
92
100
|
fill: labelsColor,
|
|
@@ -108,6 +116,7 @@ const Labels = ({
|
|
|
108
116
|
return null;
|
|
109
117
|
}
|
|
110
118
|
};
|
|
119
|
+
|
|
111
120
|
Labels.defaultProps = {
|
|
112
121
|
getX: x => x,
|
|
113
122
|
getY: quantity => quantity,
|
|
@@ -127,10 +136,13 @@ Labels.defaultProps = {
|
|
|
127
136
|
Labels.propTypes = {
|
|
128
137
|
/** the getX position x on Ox*/
|
|
129
138
|
getX: PropTypes.func,
|
|
139
|
+
|
|
130
140
|
/** the getY position y on Oy */
|
|
131
141
|
getY: PropTypes.func,
|
|
142
|
+
|
|
132
143
|
/** the labelsColor change color */
|
|
133
144
|
labelsColor: PropTypes.string,
|
|
145
|
+
|
|
134
146
|
/** change style show of label ['', 'italic'], default: 'italic' */
|
|
135
147
|
labelStyle: PropTypes.string,
|
|
136
148
|
labelsCountY: PropTypes.number,
|
|
@@ -140,16 +152,22 @@ Labels.propTypes = {
|
|
|
140
152
|
labelsOffsetX: PropTypes.number,
|
|
141
153
|
labelsOffsetY: PropTypes.number,
|
|
142
154
|
labelsStepX: PropTypes.number,
|
|
155
|
+
|
|
143
156
|
/** change show or hiden of label */
|
|
144
157
|
labelsVisible: PropTypes.bool,
|
|
158
|
+
|
|
145
159
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
146
160
|
maxX: PropTypes.number,
|
|
161
|
+
|
|
147
162
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
148
163
|
maxY: PropTypes.number,
|
|
164
|
+
|
|
149
165
|
/** the minX is minimum of OX quantity returned by data*/
|
|
150
166
|
minX: PropTypes.number,
|
|
167
|
+
|
|
151
168
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
152
169
|
minY: PropTypes.number,
|
|
170
|
+
|
|
153
171
|
/** the unitWidth */
|
|
154
172
|
unitWidth: PropTypes.number
|
|
155
173
|
};
|