diginet-core-ui 1.3.88 → 1.3.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/avatar/default.svg +3 -3
- package/assets/images/icons/wifi.svg +3 -3
- package/assets/images/menu/bem/WA3F0100.svg +6 -6
- package/assets/images/menu/bem/WA3F1025.svg +10 -10
- package/assets/images/menu/bem/WA3F2000.svg +10 -10
- package/assets/images/menu/bem/WA3F2020.svg +6 -6
- package/assets/images/menu/bem/WA3F2030.svg +14 -14
- package/assets/images/menu/bem/WA3F2040.svg +8 -8
- package/assets/images/menu/bem/WA3F2100.svg +6 -6
- package/assets/images/menu/dhr/ALL.svg +6 -6
- package/assets/images/menu/dhr/D00.svg +12 -12
- package/assets/images/menu/dhr/D09.svg +8 -8
- package/assets/images/menu/dhr/D13.svg +10 -10
- package/assets/images/menu/dhr/D15.svg +10 -10
- package/assets/images/menu/dhr/D21.svg +10 -10
- package/assets/images/menu/dhr/D25.svg +11 -11
- package/assets/images/menu/dhr/D29.svg +11 -11
- package/assets/images/menu/dhr/D38.svg +6 -6
- package/assets/images/menu/dhr/D39.svg +10 -10
- package/assets/images/menu/dhr/D51.svg +12 -12
- package/assets/images/menu/dhr/D52.svg +16 -16
- package/assets/images/menu/dhr/D77.svg +16 -16
- package/assets/images/menu/dhr/D84.svg +12 -12
- package/assets/images/menu/dhr/D89.svg +8 -8
- package/assets/images/menu/dhr/Default.svg +13 -13
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
- package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
- package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
- package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
- package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
- package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
- package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
- package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
- package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
- package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
- package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
- package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
- package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
- package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
- package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
- package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
- package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
- package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
- package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
- package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
- package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
- package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
- package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
- package/assets/images/menu/dhr/TASK.svg +9 -9
- package/assets/images/menu/dhr/W00F0001.svg +3 -3
- package/assets/images/menu/dhr/W00F0002.svg +3 -3
- package/assets/images/menu/dhr/W00F0003.svg +3 -3
- package/assets/images/menu/dhr/W00F0004.svg +3 -3
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W09F2000.svg +4 -4
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W77F1011.svg +19 -19
- package/assets/images/menu/dhr/W77F1013.svg +22 -22
- package/assets/images/menu/erp/D05.svg +8 -8
- package/assets/images/menu/erp/D06.svg +4 -4
- package/assets/images/menu/erp/D90R.svg +9 -9
- package/assets/images/menu/erp/DBC.svg +9 -9
- package/assets/images/menu/erp/W00F0001.svg +3 -3
- package/assets/images/menu/erp/W00F0002.svg +3 -3
- package/assets/images/menu/erp/W00F0003.svg +3 -3
- package/assets/images/menu/erp/W00F0004.svg +3 -3
- package/assets/images/menu/erp/W05F0001.svg +16 -16
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
- package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
- package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
- package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
- package/assets/images/menu/erp/W06F0001.svg +17 -17
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
- package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
- package/assets/images/menu/erp/WA3F1025.svg +5 -5
- package/assets/images/menu/erp/WA3F2100.svg +10 -10
- package/assets/storybook/avatar01.svg +9 -9
- package/assets/storybook/cover01.svg +9 -9
- package/components/accordion/details.js +2 -6
- package/components/accordion/group.js +2 -9
- package/components/accordion/index.js +2 -15
- package/components/accordion/summary.js +4 -27
- package/components/alert/index.js +2 -33
- package/components/alert/notify.js +12 -22
- package/components/avatar/index.js +22 -81
- package/components/badge/index.js +20 -45
- package/components/button/icon.js +25 -56
- package/components/button/index.js +16 -65
- package/components/button/more.js +15 -35
- package/components/button/ripple-effect.js +0 -10
- package/components/card/body.js +2 -7
- package/components/card/extra.js +2 -7
- package/components/card/footer.js +2 -7
- package/components/card/header.js +2 -7
- package/components/card/index.js +2 -22
- package/components/chart/Pie/Circle.js +0 -1
- package/components/chart/Pie/Sector.js +2 -19
- package/components/chart/Pie/Sectors.js +0 -10
- package/components/chart/Pie/index.js +4 -36
- package/components/chart/Pie-v2/Circle.js +0 -1
- package/components/chart/Pie-v2/Sector.js +2 -15
- package/components/chart/Pie-v2/Sectors.js +0 -20
- package/components/chart/Pie-v2/index.js +11 -38
- package/components/chart/bar/Axis.js +0 -12
- package/components/chart/bar/Bar.js +13 -35
- package/components/chart/bar/Grid.js +0 -18
- package/components/chart/bar/Labels.js +4 -22
- package/components/chart/bar/Points.js +0 -17
- package/components/chart/bar/index.js +6 -26
- package/components/chart/bar-v2/Axis.js +0 -12
- package/components/chart/bar-v2/Bar.js +15 -36
- package/components/chart/bar-v2/Grid.js +0 -18
- package/components/chart/bar-v2/Labels.js +4 -22
- package/components/chart/bar-v2/Points.js +0 -17
- package/components/chart/bar-v2/index.js +6 -26
- package/components/chart/line/Axis.js +4 -16
- package/components/chart/line/Grid.js +2 -19
- package/components/chart/line/Labels.js +4 -22
- package/components/chart/line/Path.js +24 -34
- package/components/chart/line/Point.js +7 -41
- package/components/chart/line/Title.js +0 -3
- package/components/chart/line/index.js +12 -35
- package/components/chart/line-v2/Axis.js +0 -13
- package/components/chart/line-v2/Grid.js +0 -18
- package/components/chart/line-v2/Labels.js +4 -22
- package/components/chart/line-v2/Path.js +23 -33
- package/components/chart/line-v2/Point.js +6 -35
- package/components/chart/line-v2/Title.js +0 -3
- package/components/chart/line-v2/index.js +12 -30
- package/components/check-text/index.js +7 -15
- package/components/check-text/interview-confirmation.js +24 -31
- package/components/check-text/interview-status.js +24 -31
- package/components/chip/attach.js +9 -22
- package/components/chip/index.js +13 -38
- package/components/collapse/index.js +0 -13
- package/components/divider/index.js +2 -13
- package/components/form-control/attachment/index.js +41 -202
- package/components/form-control/calendar/function.js +154 -208
- package/components/form-control/calendar/index.js +21 -46
- package/components/form-control/calendar/range.js +11 -28
- package/components/form-control/checkbox/index.js +12 -46
- package/components/form-control/control/index.js +4 -14
- package/components/form-control/date-picker/index-old.js +18 -0
- package/components/form-control/date-picker/index.js +23 -99
- package/components/form-control/date-range-picker/index.js +44 -180
- package/components/form-control/dropdown/index.js +101 -314
- package/components/form-control/dropdown-box/index.js +7 -37
- package/components/form-control/form/index.js +0 -2
- package/components/form-control/form-group/index.js +1 -6
- package/components/form-control/helper-text/index.js +2 -9
- package/components/form-control/input-base/index.js +4 -68
- package/components/form-control/label/index.js +2 -12
- package/components/form-control/money-input/index.js +54 -143
- package/components/form-control/number-input/index.js +26 -124
- package/components/form-control/number-input/index2.js +95 -134
- package/components/form-control/phone-input/index.js +23 -85
- package/components/form-control/radio/index.js +16 -35
- package/components/form-control/text-input/index.js +10 -46
- package/components/form-control/time-picker/index.js +43 -100
- package/components/form-control/time-picker/swiper.js +21 -73
- package/components/form-control/toggle/index.js +26 -40
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +0 -14
- package/components/form-view/input.js +2 -13
- package/components/form-view/label.js +0 -2
- package/components/grid/Col.js +2 -16
- package/components/grid/Container.js +2 -21
- package/components/grid/Row.js +2 -21
- package/components/grid/index.js +2 -44
- package/components/image/index.js +2 -22
- package/components/index.js +62 -31
- package/components/list/list-item-action.js +12 -21
- package/components/list/list-item-icon.js +10 -19
- package/components/list/list-item-text.js +0 -5
- package/components/list/list-item.js +27 -38
- package/components/list/list.js +37 -50
- package/components/list/sub-header.js +13 -17
- package/components/modal/body.js +2 -6
- package/components/modal/footer.js +2 -11
- package/components/modal/header.js +2 -12
- package/components/modal/index.js +2 -10
- package/components/modal/modal.js +11 -52
- package/components/others/extra/index.js +3 -10
- package/components/others/import/index.js +0 -7
- package/components/others/option-wrapper/index.js +4 -7
- package/components/others/scrollbar/index.js +0 -3
- package/components/paging/page-info.js +35 -99
- package/components/paging/page-selector.js +10 -38
- package/components/paging/page-selector2.js +35 -74
- package/components/paper/index.js +23 -34
- package/components/popover/body.js +2 -6
- package/components/popover/footer.js +2 -11
- package/components/popover/header.js +2 -7
- package/components/popover/index.js +54 -146
- package/components/popup/danger_popup.js +0 -19
- package/components/popup/index.js +4 -50
- package/components/popup/proposals_popup.js +11 -50
- package/components/popup/v2/index.js +13 -47
- package/components/progress/circular.js +10 -48
- package/components/progress/linear.js +58 -74
- package/components/rating/index.js +10 -35
- package/components/slider/slider-container.js +4 -41
- package/components/slider/slider-item.js +10 -25
- package/components/status/index.js +2 -14
- package/components/tab/tab-container.js +4 -18
- package/components/tab/tab-header.js +4 -24
- package/components/tab/tab-panel.js +4 -16
- package/components/tab/tab.js +8 -33
- package/components/tooltip/index.js +12 -97
- package/components/tooltip/portal.js +0 -2
- package/components/transfer/index.js +28 -73
- package/components/tree-view/index.js +62 -202
- package/components/typography/index.js +14 -42
- package/global/index.js +0 -8
- package/icons/basic.js +0 -48
- package/icons/effect.js +15 -32
- package/icons/general/clock/clock.js +0 -2
- package/icons/general/color-handler/background.js +0 -2
- package/icons/general/color-handler/text.js +0 -2
- package/icons/general/emoji/emoji.js +0 -2
- package/icons/general/font-properties/bold.js +0 -2
- package/icons/general/font-properties/font-family.js +0 -2
- package/icons/general/font-properties/font-size.js +0 -2
- package/icons/general/font-properties/italic.js +0 -2
- package/icons/general/font-properties/underline.js +0 -2
- package/icons/general/hyperlink/hyperlink.js +0 -2
- package/icons/general/indent/decrease.js +0 -2
- package/icons/general/indent/increase.js +0 -2
- package/icons/general/list/bullets.js +0 -2
- package/icons/general/list/numbering.js +0 -2
- package/icons/general/picture/picture.js +0 -2
- package/icons/general/steps/redo.js +0 -2
- package/icons/general/steps/undo.js +0 -2
- package/icons/general/text-align/center.js +0 -2
- package/icons/general/text-align/justify.js +0 -2
- package/icons/general/text-align/left.js +0 -2
- package/icons/general/text-align/right.js +0 -2
- package/icons/menu/dhr.js +2 -1
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +2 -15
- package/package.json +42 -42
- package/readme.md +1034 -1027
- package/styles/animation.js +15 -58
- package/styles/color-helper.js +127 -157
- package/styles/colors.js +17 -9
- package/styles/general.js +16 -57
- package/styles/typography.js +4 -4
- package/styles/utils.js +18 -18
- package/theme/createBreakpoints.js +7 -18
- package/theme/make-styles.js +2 -5
- package/theme/set-theme.js +6 -9
- package/theme/settings.js +17 -22
- package/theme/theme-provider.js +0 -1
- package/utils/array/array.js +45 -54
- package/utils/classNames/index.js +0 -5
- package/utils/console.js +0 -6
- package/utils/date.js +69 -138
- package/utils/error/error.js +3 -11
- package/utils/error/errors.js +100 -147
- package/utils/getFileType.js +0 -9
- package/utils/handleBreakpoints.js +0 -5
- package/utils/intersectionObserver.js +0 -5
- package/utils/iterator.js +0 -9
- package/utils/map-parent.js +3 -10
- package/utils/object/extend.js +0 -10
- package/utils/object/object.js +12 -11
- package/utils/parseHTML.js +0 -1
- package/utils/promisify.js +0 -5
- package/utils/randomString.js +0 -7
- package/utils/remove-unicode.js +0 -1
- package/utils/render-portal.js +1 -9
- package/utils/renderHTML.js +4 -6
- package/utils/renderIcon.js +9 -19
- package/utils/sb-template.js +6 -5
- package/utils/string/capitalize.js +0 -1
- package/utils/string/capitalizeSentenceCase.js +0 -2
- package/utils/string/string.js +0 -13
- package/utils/type.js +0 -21
- package/utils/updatePosition.js +4 -5
- package/utils/useDelayUnmount.js +0 -4
- package/utils/useElementSize.js +9 -3
- package/utils/useEventListener.js +12 -6
- package/utils/useInput.js +0 -6
- package/utils/useMediaQuery/index.js +8 -10
- package/utils/useOnClickOutside.js +2 -4
- package/utils/usePortal.js +12 -19
- package/utils/validate.js +39 -53
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
|
|
3
2
|
/** @jsxRuntime classic */
|
|
4
|
-
|
|
5
3
|
/** @jsx jsx */
|
|
6
4
|
import PropTypes from 'prop-types';
|
|
7
5
|
import { jsx, css } from '@emotion/core';
|
|
8
6
|
import theme from "../../../theme/settings";
|
|
9
7
|
import { typography } from "../../../styles/typography";
|
|
10
|
-
|
|
11
8
|
const Labels = ({
|
|
12
9
|
getX,
|
|
13
10
|
getY,
|
|
@@ -35,7 +32,7 @@ const Labels = ({
|
|
|
35
32
|
text-align: center;
|
|
36
33
|
`;
|
|
37
34
|
const LabelCSS = labelStyle === 'italic' ? css`
|
|
38
|
-
fill: ${theme.colors.
|
|
35
|
+
fill: ${theme.colors.system.rest};
|
|
39
36
|
text-anchor: start;
|
|
40
37
|
${typography.paragraph3};
|
|
41
38
|
text-transform: capitalize;
|
|
@@ -44,7 +41,7 @@ const Labels = ({
|
|
|
44
41
|
transform-box: fill-box;
|
|
45
42
|
transform: rotateZ(45deg);
|
|
46
43
|
` : css`
|
|
47
|
-
color: ${theme.colors.
|
|
44
|
+
color: ${theme.colors.system.rest};
|
|
48
45
|
text-anchor: middle;
|
|
49
46
|
${typography.paragraph3};
|
|
50
47
|
text-transform: capitalize;
|
|
@@ -54,16 +51,14 @@ const Labels = ({
|
|
|
54
51
|
`;
|
|
55
52
|
const TextCSS = css`
|
|
56
53
|
${typography.paragraph3};
|
|
57
|
-
fill: ${theme.colors.
|
|
54
|
+
fill: ${theme.colors.system.rest};
|
|
58
55
|
cursor: 'pointer';
|
|
59
56
|
`;
|
|
60
|
-
|
|
61
57
|
if (labelsVisible) {
|
|
62
58
|
let xLabels;
|
|
63
59
|
let yLabels;
|
|
64
60
|
let tile = 4;
|
|
65
61
|
let tile2 = 9;
|
|
66
|
-
|
|
67
62
|
const TiLe = () => {
|
|
68
63
|
if (viewBoxWidth >= 800) {
|
|
69
64
|
return tile;
|
|
@@ -71,7 +66,6 @@ const Labels = ({
|
|
|
71
66
|
return tile2;
|
|
72
67
|
}
|
|
73
68
|
};
|
|
74
|
-
|
|
75
69
|
xLabels = labelStyle === 'italic' ? data.map((point, x) => jsx("text", {
|
|
76
70
|
key: x,
|
|
77
71
|
css: LabelCSS,
|
|
@@ -90,11 +84,9 @@ const Labels = ({
|
|
|
90
84
|
}, labelsFormatX(point.name))));
|
|
91
85
|
const yLabelsRange = [];
|
|
92
86
|
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
93
|
-
|
|
94
87
|
for (let i = 0; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
95
88
|
yLabelsRange.push(i);
|
|
96
89
|
}
|
|
97
|
-
|
|
98
90
|
yLabels = yLabelsRange.map(quantity => jsx("text", {
|
|
99
91
|
key: quantity,
|
|
100
92
|
fill: labelsColor,
|
|
@@ -116,12 +108,11 @@ const Labels = ({
|
|
|
116
108
|
return null;
|
|
117
109
|
}
|
|
118
110
|
};
|
|
119
|
-
|
|
120
111
|
Labels.defaultProps = {
|
|
121
112
|
getX: x => x,
|
|
122
113
|
getY: quantity => quantity,
|
|
123
114
|
labelsCharacterWidth: 10,
|
|
124
|
-
labelsColor: theme.colors.
|
|
115
|
+
labelsColor: theme.colors.system.rest,
|
|
125
116
|
labelsCountY: 5,
|
|
126
117
|
labelsFormatX: label => label,
|
|
127
118
|
labelsFormatY: quantity => quantity,
|
|
@@ -136,13 +127,10 @@ Labels.defaultProps = {
|
|
|
136
127
|
Labels.propTypes = {
|
|
137
128
|
/** the getX position x on Ox*/
|
|
138
129
|
getX: PropTypes.func,
|
|
139
|
-
|
|
140
130
|
/** the getY position y on Oy */
|
|
141
131
|
getY: PropTypes.func,
|
|
142
|
-
|
|
143
132
|
/** the labelsColor change color */
|
|
144
133
|
labelsColor: PropTypes.string,
|
|
145
|
-
|
|
146
134
|
/** change style show of label ['', 'italic'], default: 'italic' */
|
|
147
135
|
labelStyle: PropTypes.string,
|
|
148
136
|
labelsCountY: PropTypes.number,
|
|
@@ -152,22 +140,16 @@ Labels.propTypes = {
|
|
|
152
140
|
labelsOffsetX: PropTypes.number,
|
|
153
141
|
labelsOffsetY: PropTypes.number,
|
|
154
142
|
labelsStepX: PropTypes.number,
|
|
155
|
-
|
|
156
143
|
/** change show or hiden of label */
|
|
157
144
|
labelsVisible: PropTypes.bool,
|
|
158
|
-
|
|
159
145
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
160
146
|
maxX: PropTypes.number,
|
|
161
|
-
|
|
162
147
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
163
148
|
maxY: PropTypes.number,
|
|
164
|
-
|
|
165
149
|
/** the minX is minimum of OX quantity returned by data*/
|
|
166
150
|
minX: PropTypes.number,
|
|
167
|
-
|
|
168
151
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
169
152
|
minY: PropTypes.number,
|
|
170
|
-
|
|
171
153
|
/** the unitWidth */
|
|
172
154
|
unitWidth: PropTypes.number
|
|
173
155
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import PropTypes from "prop-types";
|
|
5
4
|
import { jsx } from '@emotion/core';
|
|
6
|
-
|
|
7
5
|
const Points = ({
|
|
8
6
|
data,
|
|
9
7
|
getX,
|
|
@@ -47,52 +45,37 @@ const Points = ({
|
|
|
47
45
|
}, jsx("title", null, point.name, " : ", point.quantity));
|
|
48
46
|
})) : null;
|
|
49
47
|
};
|
|
50
|
-
|
|
51
48
|
Points.propTypes = {
|
|
52
49
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
53
50
|
x: PropTypes.number,
|
|
54
51
|
quantity: PropTypes.number
|
|
55
52
|
})).isRequired,
|
|
56
|
-
|
|
57
53
|
/** the getX position x on Ox*/
|
|
58
54
|
getX: PropTypes.func,
|
|
59
|
-
|
|
60
55
|
/** the getY position y on Oy */
|
|
61
56
|
getY: PropTypes.func,
|
|
62
|
-
|
|
63
57
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
64
58
|
maxX: PropTypes.number,
|
|
65
|
-
|
|
66
59
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
67
60
|
maxY: PropTypes.number,
|
|
68
|
-
|
|
69
61
|
/** the minX is minimum of OX quantity returned by data*/
|
|
70
62
|
minX: PropTypes.number,
|
|
71
|
-
|
|
72
63
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
73
64
|
minY: PropTypes.number,
|
|
74
|
-
|
|
75
65
|
/** change the inner color of the point button */
|
|
76
66
|
pointsColor: PropTypes.string,
|
|
77
|
-
|
|
78
67
|
/** show data information when hovering in the area containing the column */
|
|
79
68
|
pointsIsHoverOnZone: PropTypes.bool,
|
|
80
|
-
|
|
81
69
|
/** function change event hover */
|
|
82
70
|
onHover: PropTypes.func,
|
|
83
|
-
|
|
84
71
|
/** change the radius of the point is created */
|
|
85
72
|
pointsRadius: PropTypes.number,
|
|
86
|
-
|
|
87
73
|
/** change the border color of the point button */
|
|
88
74
|
pointsStrokeColor: PropTypes.string,
|
|
89
|
-
|
|
90
75
|
/** the thickness of the inner core point */
|
|
91
76
|
pointsStrokeWidth: PropTypes.number,
|
|
92
|
-
|
|
93
77
|
/** show or hiden point */
|
|
94
78
|
pointsVisible: PropTypes.bool,
|
|
95
|
-
|
|
96
79
|
/** the unitWidth */
|
|
97
80
|
unitWidth: PropTypes.number
|
|
98
81
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import PropTypes from 'prop-types';
|
|
5
4
|
import { memo, forwardRef } from 'react';
|
|
@@ -22,7 +21,8 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
22
21
|
labelsHeightX,
|
|
23
22
|
...props
|
|
24
23
|
}, ref) => {
|
|
25
|
-
const dataSource = data.map((item, i) => ({
|
|
24
|
+
const dataSource = data.map((item, i) => ({
|
|
25
|
+
...item,
|
|
26
26
|
x: i
|
|
27
27
|
}));
|
|
28
28
|
const UNIT_WIDTH = 1;
|
|
@@ -30,48 +30,39 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
30
30
|
allowNumber: false,
|
|
31
31
|
allowSymbol: false
|
|
32
32
|
});
|
|
33
|
-
|
|
34
33
|
const round = n => {
|
|
35
34
|
return Math.round(n * 100) / 100;
|
|
36
35
|
};
|
|
37
|
-
|
|
38
36
|
const getMinX = () => {
|
|
39
37
|
return dataSource.length > 0 ? dataSource[0].x : 0;
|
|
40
38
|
};
|
|
41
|
-
|
|
42
39
|
const getMaxX = () => {
|
|
43
40
|
return dataSource.length > 0 ? dataSource[dataSource.length - 1].x : 0;
|
|
44
41
|
};
|
|
45
|
-
|
|
46
42
|
const getMinY = () => {
|
|
47
43
|
return 0;
|
|
48
44
|
};
|
|
49
|
-
|
|
50
45
|
const getMaxY = () => {
|
|
51
46
|
const yStep = labelsCountY > 0 ? labelsCountY : 1;
|
|
52
47
|
const maxY = dataSource.length > 0 ? dataSource.reduce((max, point) => point.quantity > max ? point.quantity : max, dataSource[0].quantity) : 0;
|
|
53
48
|
return maxY ? Math.ceil(maxY / yStep) * yStep : yStep;
|
|
54
49
|
};
|
|
55
|
-
|
|
56
50
|
const getSvgX = x => {
|
|
57
51
|
const minX = getMinX();
|
|
58
52
|
const maxX = getMaxX();
|
|
59
53
|
const paddingLeft = getLabelsYWidth();
|
|
60
54
|
return round((x - minX) / (maxX + 1 - minX) * (Math.abs(viewBoxWidth) - paddingLeft));
|
|
61
55
|
};
|
|
62
|
-
|
|
63
56
|
const getSvgY = y => {
|
|
64
57
|
const paddingBottom = labelsVisible ? labelsHeightX + labelsOffsetX : 0;
|
|
65
58
|
const height = Math.abs(viewBoxHeight) - paddingBottom;
|
|
66
59
|
const maxY = getMaxY();
|
|
67
60
|
return round(height - y / maxY * height);
|
|
68
61
|
};
|
|
69
|
-
|
|
70
62
|
const getLabelsYWidth = () => {
|
|
71
63
|
const maxY = getMaxY();
|
|
72
64
|
return labelsVisible ? maxY.toString().length * labelsCharacterWidth + labelsOffsetY : 0;
|
|
73
65
|
};
|
|
74
|
-
|
|
75
66
|
const minX = getMinX();
|
|
76
67
|
const maxX = getMaxX();
|
|
77
68
|
const maxY = getMaxY();
|
|
@@ -96,9 +87,11 @@ const BarChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
96
87
|
overflow: 'visible',
|
|
97
88
|
margin: `${getLabelsYWidth() * 2}`
|
|
98
89
|
}
|
|
99
|
-
}, jsx(Axis, {
|
|
90
|
+
}, jsx(Axis, {
|
|
91
|
+
...props,
|
|
100
92
|
...commonProps
|
|
101
|
-
}), jsx(Grid, {
|
|
93
|
+
}), jsx(Grid, {
|
|
94
|
+
...props,
|
|
102
95
|
...commonProps
|
|
103
96
|
}), jsx(Bars, {
|
|
104
97
|
data: dataSource,
|
|
@@ -131,45 +124,32 @@ BarChart.propTypes = {
|
|
|
131
124
|
x: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
132
125
|
quantity: PropTypes.number
|
|
133
126
|
})).isRequired,
|
|
134
|
-
|
|
135
127
|
/** drawn Ratio of viewBoxHeight entered by user, default is: 200px */
|
|
136
128
|
viewBoxHeight: PropTypes.number,
|
|
137
|
-
|
|
138
129
|
/** drawn Ratio of viewBoxWidth entered by user, default is: 500px */
|
|
139
130
|
viewBoxWidth: PropTypes.number,
|
|
140
|
-
|
|
141
131
|
/** change color of Bar in BarChart */
|
|
142
132
|
barsColor: PropTypes.string,
|
|
143
|
-
|
|
144
133
|
/** change ColumB grid display style ['full' , 'horizontal', 'none']*/
|
|
145
134
|
GridLines: PropTypes.string,
|
|
146
135
|
//** change style show of label (default, italic) */
|
|
147
136
|
labelStyle: PropTypes.string,
|
|
148
|
-
|
|
149
137
|
/** the axisVisible Hide or show the Axis axis */
|
|
150
138
|
axisVisible: PropTypes.bool,
|
|
151
|
-
|
|
152
139
|
/** the axisColor change color */
|
|
153
140
|
axisColor: PropTypes.string,
|
|
154
|
-
|
|
155
141
|
/** change color of grid Columb*/
|
|
156
142
|
gridColor: PropTypes.string,
|
|
157
|
-
|
|
158
143
|
/** show data information when hovering in the area containing the column */
|
|
159
144
|
pointsIsHoverOnZone: PropTypes.bool,
|
|
160
|
-
|
|
161
145
|
/** show or hiden point */
|
|
162
146
|
pointsVisible: PropTypes.bool,
|
|
163
|
-
|
|
164
147
|
/** change the inner color of the point button */
|
|
165
148
|
pointsColor: PropTypes.string,
|
|
166
|
-
|
|
167
149
|
/** change the border color of the point button */
|
|
168
150
|
pointsStrokeColor: PropTypes.string,
|
|
169
|
-
|
|
170
151
|
/** the thickness of the inner core point */
|
|
171
152
|
pointsStrokeWidth: PropTypes.number,
|
|
172
|
-
|
|
173
153
|
/** change the radius of the point is created */
|
|
174
154
|
pointsRadius: PropTypes.number,
|
|
175
155
|
...Bars.propTypes,
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import PropTypes from "prop-types";
|
|
5
4
|
import { jsx } from '@emotion/core';
|
|
6
|
-
|
|
7
5
|
const Axis = ({
|
|
8
6
|
axisColor,
|
|
9
7
|
axisVisible,
|
|
@@ -33,7 +31,6 @@ const Axis = ({
|
|
|
33
31
|
y2: getY(maxY + 5)
|
|
34
32
|
})) : null;
|
|
35
33
|
};
|
|
36
|
-
|
|
37
34
|
Axis.defaultProps = {
|
|
38
35
|
axisColor: '#7F828E',
|
|
39
36
|
axisOpacity: 1,
|
|
@@ -46,33 +43,24 @@ Axis.defaultProps = {
|
|
|
46
43
|
Axis.propTypes = {
|
|
47
44
|
/** the axisColor change color */
|
|
48
45
|
axisColor: PropTypes.string,
|
|
49
|
-
|
|
50
46
|
/** the axisOpacity property sets the opacity of an element*/
|
|
51
47
|
axisOpacity: PropTypes.number,
|
|
52
|
-
|
|
53
48
|
/** the axisVisible Hide or show the Axis axis */
|
|
54
49
|
axisVisible: PropTypes.bool,
|
|
55
|
-
|
|
56
50
|
/** the axisWidth change the thickness of the column */
|
|
57
51
|
axisWidth: PropTypes.number,
|
|
58
|
-
|
|
59
52
|
/** the getX position x on Ox*/
|
|
60
53
|
getX: PropTypes.func,
|
|
61
|
-
|
|
62
54
|
/** the getY position y on Oy */
|
|
63
55
|
getY: PropTypes.func,
|
|
64
|
-
|
|
65
56
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
66
57
|
maxX: PropTypes.number,
|
|
67
|
-
|
|
68
58
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
69
59
|
maxY: PropTypes.number,
|
|
70
|
-
|
|
71
60
|
/** the minX is minimum of OX quantity returned by data*/
|
|
72
61
|
minX: PropTypes.number,
|
|
73
62
|
//** the minY is minimum of Oy quantity returned by data*/
|
|
74
63
|
minY: PropTypes.number,
|
|
75
|
-
|
|
76
64
|
/** the unitWidth */
|
|
77
65
|
unitWidth: PropTypes.number
|
|
78
66
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, forwardRef, useState } from 'react';
|
|
5
4
|
import { css, jsx } from '@emotion/core';
|
|
@@ -21,14 +20,15 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
21
20
|
minX,
|
|
22
21
|
minY,
|
|
23
22
|
unitWidth,
|
|
24
|
-
onClick
|
|
25
|
-
|
|
23
|
+
onClick
|
|
24
|
+
// ...props
|
|
26
25
|
}, ref) => {
|
|
27
26
|
const [id] = useState(randomString(6, {
|
|
28
27
|
allowNumber: false,
|
|
29
28
|
allowSymbol: false
|
|
30
|
-
}));
|
|
29
|
+
}));
|
|
31
30
|
|
|
31
|
+
// Start create css in Component
|
|
32
32
|
const barChartCSS = css`
|
|
33
33
|
position: relative;
|
|
34
34
|
opacity: 0.7;
|
|
@@ -43,18 +43,19 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
43
43
|
const textChartCSS = css`
|
|
44
44
|
text-anchor: middle;
|
|
45
45
|
${typography.paragraph3};
|
|
46
|
-
`;
|
|
47
|
-
//
|
|
46
|
+
`;
|
|
47
|
+
// End create css in Component
|
|
48
48
|
|
|
49
|
+
// Create variable to calculate
|
|
49
50
|
const round = n => {
|
|
50
51
|
return Math.round(n * 100) / 100;
|
|
51
52
|
};
|
|
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;
|
|
57
57
|
|
|
58
|
+
// create drawing function tooltips in different positions
|
|
58
59
|
const topTooltipPath = (width, height, offset, radius) => {
|
|
59
60
|
const left = -width / 2;
|
|
60
61
|
const right = width / 2;
|
|
@@ -73,7 +74,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
73
74
|
H ${offset}
|
|
74
75
|
L 0,0 z`;
|
|
75
76
|
};
|
|
76
|
-
|
|
77
77
|
const bottomTooltipPath = (width, height, offset, radius) => {
|
|
78
78
|
const left = -width / 2;
|
|
79
79
|
const right = width / 2;
|
|
@@ -92,7 +92,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
92
92
|
H ${offset}
|
|
93
93
|
L 0,0 z`;
|
|
94
94
|
};
|
|
95
|
-
|
|
96
95
|
const leftTooltipPath = (width, height, offset, radius) => {
|
|
97
96
|
const left = -offset - width;
|
|
98
97
|
const right = -offset;
|
|
@@ -111,7 +110,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
111
110
|
V ${offset}
|
|
112
111
|
L 0,0 z`;
|
|
113
112
|
};
|
|
114
|
-
|
|
115
113
|
const rightTooltipPath = (width, height, offset, radius) => {
|
|
116
114
|
const left = offset;
|
|
117
115
|
const right = offset + width;
|
|
@@ -129,49 +127,41 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
129
127
|
Q ${left},${bottom} ${left},${bottom - radius}
|
|
130
128
|
V ${offset}
|
|
131
129
|
L 0,0 z`;
|
|
132
|
-
};
|
|
133
|
-
|
|
130
|
+
};
|
|
134
131
|
|
|
132
|
+
// Create event management function
|
|
135
133
|
const MouseEnterTarget = (e, i) => {
|
|
136
134
|
if (onEnter) onEnter(e, i);
|
|
137
135
|
document.getElementById(`${id}` + i).style.display = 'block';
|
|
138
136
|
};
|
|
139
|
-
|
|
140
137
|
const MouseLeaveTarget = (e, i) => {
|
|
141
138
|
if (onRemote) onRemote(e, i);
|
|
142
139
|
document.getElementById(`${id}` + i).style.display = 'none';
|
|
143
140
|
};
|
|
144
|
-
|
|
145
141
|
const handleChange = event => {
|
|
146
142
|
if (onClick) onClick(event);
|
|
147
|
-
};
|
|
148
|
-
|
|
143
|
+
};
|
|
149
144
|
|
|
145
|
+
// Create function to display tooltip by position
|
|
150
146
|
const getPlacement = (point, i) => {
|
|
151
147
|
// convert number -> string
|
|
152
148
|
const h = `${point.quantity}`;
|
|
153
149
|
var Width = 0;
|
|
154
|
-
|
|
155
150
|
if (h.length == 2 || h.length == 1 || h.length == 3) {
|
|
156
151
|
Width += 35;
|
|
157
152
|
}
|
|
158
|
-
|
|
159
153
|
if (h.length == 4 || h.length == 5) {
|
|
160
154
|
Width += 40;
|
|
161
155
|
}
|
|
162
|
-
|
|
163
156
|
if (h.length == 6 || h.length == 7) {
|
|
164
157
|
Width += 50;
|
|
165
158
|
}
|
|
166
|
-
|
|
167
159
|
if (h.length == 8 || h.length == 9) {
|
|
168
160
|
Width += 70;
|
|
169
161
|
}
|
|
170
|
-
|
|
171
162
|
if (h.length == 10 || h.length == 11) {
|
|
172
163
|
Width += 90;
|
|
173
164
|
}
|
|
174
|
-
|
|
175
165
|
if (getX(point.x + unitWidth / 2) < 20) {
|
|
176
166
|
return jsx("g", {
|
|
177
167
|
id: `${id}` + i,
|
|
@@ -195,7 +185,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
195
185
|
fill: "#fff"
|
|
196
186
|
}, point.quantity));
|
|
197
187
|
}
|
|
198
|
-
|
|
199
188
|
if (getX(point.x + unitWidth / 2) > viewBoxWidth) {
|
|
200
189
|
return jsx("g", {
|
|
201
190
|
id: `${id}` + i,
|
|
@@ -219,7 +208,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
219
208
|
fill: "#fff"
|
|
220
209
|
}, point.quantity));
|
|
221
210
|
}
|
|
222
|
-
|
|
223
211
|
if (getY(point.quantity + 0.5) > 10) {
|
|
224
212
|
return jsx("g", {
|
|
225
213
|
id: `${id}` + i,
|
|
@@ -242,7 +230,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
242
230
|
fill: "#fff"
|
|
243
231
|
}, point.quantity));
|
|
244
232
|
}
|
|
245
|
-
|
|
246
233
|
return jsx("g", {
|
|
247
234
|
id: `${id}` + i,
|
|
248
235
|
className: 'DGN-Tooltip-Bar',
|
|
@@ -263,9 +250,9 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
263
250
|
css: textChartCSS,
|
|
264
251
|
fill: "#fff"
|
|
265
252
|
}, point.quantity));
|
|
266
|
-
};
|
|
267
|
-
|
|
253
|
+
};
|
|
268
254
|
|
|
255
|
+
// Create function to display data
|
|
269
256
|
const getPlacementNotHover = (point, i) => {
|
|
270
257
|
return jsx("g", {
|
|
271
258
|
id: `${id}` + i,
|
|
@@ -281,7 +268,6 @@ const Bars = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
281
268
|
fill: barsColor
|
|
282
269
|
}, point.quantity));
|
|
283
270
|
};
|
|
284
|
-
|
|
285
271
|
return hoverTooltip ? jsx("g", {
|
|
286
272
|
className: 'DGN-CUI-Bar',
|
|
287
273
|
ref: ref
|
|
@@ -330,33 +316,26 @@ Bars.propTypes = {
|
|
|
330
316
|
/** change color of Bar in BarChart */
|
|
331
317
|
barsColor: PropTypes.string,
|
|
332
318
|
barsMargin: PropTypes.number,
|
|
333
|
-
|
|
334
319
|
/** change the percentage of blurred colors on the column */
|
|
335
320
|
barsOpacity: PropTypes.number,
|
|
336
321
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
337
322
|
x: PropTypes.number,
|
|
338
323
|
quantity: PropTypes.number
|
|
339
324
|
})).isRequired,
|
|
340
|
-
|
|
341
325
|
/** the getX position x on Ox*/
|
|
342
326
|
getX: PropTypes.func,
|
|
343
|
-
|
|
344
327
|
/** the getY position y on Oy */
|
|
345
328
|
getY: PropTypes.func,
|
|
346
329
|
labelsHeightX: Labels.propTypes.labelsHeightX,
|
|
347
330
|
labelsOffsetX: Labels.propTypes.labelsOffsetX,
|
|
348
331
|
labelsOffsetY: Labels.propTypes.labelsOffsetY,
|
|
349
332
|
labelsWidthY: PropTypes.number,
|
|
350
|
-
|
|
351
333
|
/** the minX is minimum of OX quantity returned by data*/
|
|
352
334
|
minX: PropTypes.number.isRequired,
|
|
353
|
-
|
|
354
335
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
355
336
|
minY: PropTypes.number.isRequired,
|
|
356
|
-
|
|
357
337
|
/** the unitWidth */
|
|
358
338
|
unitWidth: PropTypes.number,
|
|
359
|
-
|
|
360
339
|
/** Shows tooltip containing data on hover */
|
|
361
340
|
hoverTooltip: PropTypes.bool
|
|
362
341
|
};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import PropTypes from "prop-types";
|
|
5
4
|
import { jsx } from '@emotion/core';
|
|
6
|
-
|
|
7
5
|
const Grid = ({
|
|
8
6
|
getX,
|
|
9
7
|
getY,
|
|
@@ -19,7 +17,6 @@ const Grid = ({
|
|
|
19
17
|
}) => {
|
|
20
18
|
let gridX = [];
|
|
21
19
|
let gridY = [];
|
|
22
|
-
|
|
23
20
|
for (let i = minX; i <= maxX + unitWidth; i++) {
|
|
24
21
|
gridX.push(jsx("line", {
|
|
25
22
|
key: i,
|
|
@@ -29,9 +26,7 @@ const Grid = ({
|
|
|
29
26
|
y2: getY(maxY + 5)
|
|
30
27
|
}));
|
|
31
28
|
}
|
|
32
|
-
|
|
33
29
|
const yStep = labelsCountY > 0 ? labelsCountY : unitWidth;
|
|
34
|
-
|
|
35
30
|
for (let i = minY; i <= maxY; i += Math.floor(maxY / yStep)) {
|
|
36
31
|
gridY.push(jsx("line", {
|
|
37
32
|
key: i,
|
|
@@ -41,7 +36,6 @@ const Grid = ({
|
|
|
41
36
|
y2: getY(i)
|
|
42
37
|
}));
|
|
43
38
|
}
|
|
44
|
-
|
|
45
39
|
if (GridLines === 'full') {
|
|
46
40
|
return jsx("g", {
|
|
47
41
|
className: 'DGN-Grid-BarChart',
|
|
@@ -49,7 +43,6 @@ const Grid = ({
|
|
|
49
43
|
strokeWidth: gridWidth
|
|
50
44
|
}, gridX, gridY);
|
|
51
45
|
}
|
|
52
|
-
|
|
53
46
|
if (GridLines === 'horizontal') {
|
|
54
47
|
return jsx("g", {
|
|
55
48
|
className: 'DGN-Grid-BarChart',
|
|
@@ -57,7 +50,6 @@ const Grid = ({
|
|
|
57
50
|
strokeWidth: gridWidth
|
|
58
51
|
}, gridY);
|
|
59
52
|
}
|
|
60
|
-
|
|
61
53
|
if (GridLines === 'none') {
|
|
62
54
|
return null;
|
|
63
55
|
} else {
|
|
@@ -68,37 +60,27 @@ const Grid = ({
|
|
|
68
60
|
}, gridY);
|
|
69
61
|
}
|
|
70
62
|
};
|
|
71
|
-
|
|
72
63
|
Grid.propTypes = {
|
|
73
64
|
/** the getX position x on Ox*/
|
|
74
65
|
getX: PropTypes.func,
|
|
75
|
-
|
|
76
66
|
/** the getY position y on Oy */
|
|
77
67
|
getY: PropTypes.func,
|
|
78
|
-
|
|
79
68
|
/** change color of grid Columb*/
|
|
80
69
|
gridColor: PropTypes.string,
|
|
81
|
-
|
|
82
70
|
/** change Columb grid display style ['full' , 'horizontal', 'none']*/
|
|
83
71
|
GridLines: PropTypes.string,
|
|
84
|
-
|
|
85
72
|
/** hiden or show grid columb*/
|
|
86
73
|
gridVisible: PropTypes.bool,
|
|
87
74
|
gridWidth: PropTypes.number,
|
|
88
75
|
labelsCountY: PropTypes.number,
|
|
89
|
-
|
|
90
76
|
/** the maxX is maximum of Ox quantity returned by data*/
|
|
91
77
|
maxX: PropTypes.number,
|
|
92
|
-
|
|
93
78
|
/** the maxY is maximum of Oy quantity returned by data*/
|
|
94
79
|
maxY: PropTypes.number,
|
|
95
|
-
|
|
96
80
|
/** the minX is minimum of OX quantity returned by data*/
|
|
97
81
|
minX: PropTypes.number,
|
|
98
|
-
|
|
99
82
|
/** the minY is minimum of Oy quantity returned by data*/
|
|
100
83
|
minY: PropTypes.number,
|
|
101
|
-
|
|
102
84
|
/** the unitWidth */
|
|
103
85
|
unitWidth: PropTypes.number
|
|
104
86
|
};
|