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
package/components/card/extra.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -18,11 +17,10 @@ const CardExtra = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
18
17
|
useImperativeHandle(reference, () => {
|
|
19
18
|
const currentRef = ref.current || {};
|
|
20
19
|
currentRef.element = ref.current;
|
|
21
|
-
const _instance = {
|
|
20
|
+
const _instance = {
|
|
21
|
+
...action
|
|
22
22
|
}; // methods
|
|
23
|
-
|
|
24
23
|
_instance.__proto__ = {}; // hidden methods
|
|
25
|
-
|
|
26
24
|
currentRef.instance = _instance;
|
|
27
25
|
return currentRef;
|
|
28
26
|
});
|
|
@@ -42,13 +40,10 @@ CardExtra.defaultProps = {
|
|
|
42
40
|
CardExtra.propTypes = {
|
|
43
41
|
/** The content of the component. */
|
|
44
42
|
children: PropTypes.node,
|
|
45
|
-
|
|
46
43
|
/** Class for component. ({container: '', header: '', body: '', footer: ''}) */
|
|
47
44
|
className: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
48
|
-
|
|
49
45
|
/** If `true`, will have divider between body and footer. */
|
|
50
46
|
style: PropTypes.object,
|
|
51
|
-
|
|
52
47
|
/** The title of the component's header. */
|
|
53
48
|
title: PropTypes.string
|
|
54
49
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -18,11 +17,10 @@ const CardFooter = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
18
17
|
useImperativeHandle(reference, () => {
|
|
19
18
|
const currentRef = ref.current || {};
|
|
20
19
|
currentRef.element = ref.current;
|
|
21
|
-
const _instance = {
|
|
20
|
+
const _instance = {
|
|
21
|
+
...action
|
|
22
22
|
}; // methods
|
|
23
|
-
|
|
24
23
|
_instance.__proto__ = {}; // hidden methods
|
|
25
|
-
|
|
26
24
|
currentRef.instance = _instance;
|
|
27
25
|
return currentRef;
|
|
28
26
|
});
|
|
@@ -42,13 +40,10 @@ CardFooter.defaultProps = {
|
|
|
42
40
|
CardFooter.propTypes = {
|
|
43
41
|
/** The content of the component. */
|
|
44
42
|
children: PropTypes.node,
|
|
45
|
-
|
|
46
43
|
/** Class for component. ({container: '', header: '', body: '', footer: ''}) */
|
|
47
44
|
className: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
48
|
-
|
|
49
45
|
/** If `true`, will have divider between body and footer. */
|
|
50
46
|
style: PropTypes.object,
|
|
51
|
-
|
|
52
47
|
/** The title of the component's header. */
|
|
53
48
|
title: PropTypes.string
|
|
54
49
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -19,11 +18,10 @@ const CardHeader = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
19
18
|
useImperativeHandle(reference, () => {
|
|
20
19
|
const currentRef = ref.current || {};
|
|
21
20
|
currentRef.element = ref.current;
|
|
22
|
-
const _instance = {
|
|
21
|
+
const _instance = {
|
|
22
|
+
...action
|
|
23
23
|
}; // methods
|
|
24
|
-
|
|
25
24
|
_instance.__proto__ = {}; // hidden methods
|
|
26
|
-
|
|
27
25
|
currentRef.instance = _instance;
|
|
28
26
|
return currentRef;
|
|
29
27
|
});
|
|
@@ -45,13 +43,10 @@ CardHeader.defaultProps = {
|
|
|
45
43
|
CardHeader.propTypes = {
|
|
46
44
|
/** The content of the component. */
|
|
47
45
|
children: PropTypes.node,
|
|
48
|
-
|
|
49
46
|
/** Class for component. ({container: '', header: '', body: '', footer: ''}) */
|
|
50
47
|
className: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
51
|
-
|
|
52
48
|
/** If `true`, will have divider between body and footer. */
|
|
53
49
|
style: PropTypes.object,
|
|
54
|
-
|
|
55
50
|
/** The title of the component's header. */
|
|
56
51
|
title: PropTypes.string
|
|
57
52
|
};
|
package/components/card/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, useMemo, forwardRef, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -44,17 +43,14 @@ const Card = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
44
43
|
width
|
|
45
44
|
}, reference) => {
|
|
46
45
|
const ref = useRef(null);
|
|
47
|
-
|
|
48
46
|
const _CardCSS = CardCSS(width, height, headerDivider, footerDivider, dividerColor, direction);
|
|
49
|
-
|
|
50
47
|
useImperativeHandle(reference, () => {
|
|
51
48
|
const currentRef = ref.current || {};
|
|
52
49
|
currentRef.element = ref.current;
|
|
53
|
-
const _instance = {
|
|
50
|
+
const _instance = {
|
|
51
|
+
...action
|
|
54
52
|
}; // methods
|
|
55
|
-
|
|
56
53
|
_instance.__proto__ = {}; // hidden methods
|
|
57
|
-
|
|
58
54
|
currentRef.instance = _instance;
|
|
59
55
|
return currentRef;
|
|
60
56
|
});
|
|
@@ -81,7 +77,6 @@ const Card = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
81
77
|
}, head, body || children, foot);
|
|
82
78
|
}, [bodyProp, bodyStyle, children, className, dividerColor, direction, footer, footerDivider, footerStyle, header, headerDivider, headerStyle, height, id, style, title, width]);
|
|
83
79
|
}));
|
|
84
|
-
|
|
85
80
|
const CardCSS = (width, height, headerDivider, footerDivider, dividerColor, direction) => css`
|
|
86
81
|
${direction === 'vertical' ? flexCol : flexRow};
|
|
87
82
|
${positionRelative};
|
|
@@ -137,7 +132,6 @@ const CardCSS = (width, height, headerDivider, footerDivider, dividerColor, dire
|
|
|
137
132
|
${boxBorder};
|
|
138
133
|
}
|
|
139
134
|
`;
|
|
140
|
-
|
|
141
135
|
Card.defaultProps = {
|
|
142
136
|
bodyStyle: {},
|
|
143
137
|
className: '',
|
|
@@ -152,46 +146,32 @@ Card.defaultProps = {
|
|
|
152
146
|
Card.propTypes = {
|
|
153
147
|
/** The content of the component's body. */
|
|
154
148
|
body: PropTypes.node,
|
|
155
|
-
|
|
156
149
|
/** The content of the component's body. */
|
|
157
150
|
bodyStyle: PropTypes.object,
|
|
158
|
-
|
|
159
151
|
/** The content of the component. */
|
|
160
152
|
children: PropTypes.node,
|
|
161
|
-
|
|
162
153
|
/** Class for component. ({container: '', header: '', body: '', footer: ''}) */
|
|
163
154
|
className: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
164
|
-
|
|
165
155
|
/** Color of divider. */
|
|
166
156
|
dividerColor: PropTypes.string,
|
|
167
|
-
|
|
168
157
|
/** The content of the component's footer. */
|
|
169
158
|
footer: PropTypes.node,
|
|
170
|
-
|
|
171
159
|
/** If `true`, will have divider between body and footer. */
|
|
172
160
|
footerDivider: PropTypes.bool,
|
|
173
|
-
|
|
174
161
|
/** Style inline of component's footer. */
|
|
175
162
|
footerStyle: PropTypes.object,
|
|
176
|
-
|
|
177
163
|
/** The content of the component's header. */
|
|
178
164
|
header: PropTypes.node,
|
|
179
|
-
|
|
180
165
|
/** If `true`, will have divider between header and body. */
|
|
181
166
|
headerDivider: PropTypes.bool,
|
|
182
|
-
|
|
183
167
|
/** Style inline of component's header. */
|
|
184
168
|
headerStyle: PropTypes.object,
|
|
185
|
-
|
|
186
169
|
/** Height of the component. */
|
|
187
170
|
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
188
|
-
|
|
189
171
|
/** Style inline of component. */
|
|
190
172
|
style: PropTypes.object,
|
|
191
|
-
|
|
192
173
|
/** The title of the component's header. */
|
|
193
174
|
title: PropTypes.string,
|
|
194
|
-
|
|
195
175
|
/** Width of the component. */
|
|
196
176
|
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
197
177
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { useRef, memo, forwardRef } from 'react';
|
|
5
4
|
import PropTypes from "prop-types";
|
|
@@ -27,11 +26,9 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
27
26
|
...props
|
|
28
27
|
}, ref) => {
|
|
29
28
|
let result;
|
|
30
|
-
|
|
31
29
|
if (!ref) {
|
|
32
30
|
ref = useRef(null);
|
|
33
31
|
}
|
|
34
|
-
|
|
35
32
|
const pathRef = useRef(null);
|
|
36
33
|
const SectorCSS = expandOnHover || expandedIndex >= 0 ? css`
|
|
37
34
|
transition-property: all;
|
|
@@ -48,10 +45,8 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
48
45
|
transition-timing-function: ${transitionTimingFunction};
|
|
49
46
|
transition-duration: ${transitionDuration};
|
|
50
47
|
`;
|
|
51
|
-
|
|
52
48
|
const Data = (data, index) => {
|
|
53
49
|
let item = null;
|
|
54
|
-
|
|
55
50
|
if (renderSelectedItem && typeof renderSelectedItem === 'function') {
|
|
56
51
|
item = renderSelectedItem({
|
|
57
52
|
data,
|
|
@@ -61,7 +56,6 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
61
56
|
ReactDOM.render(item, pathRef.current.appendChild(el));
|
|
62
57
|
}
|
|
63
58
|
};
|
|
64
|
-
|
|
65
59
|
const content = jsx("g", {
|
|
66
60
|
css: SectorCSS
|
|
67
61
|
}, jsx("path", {
|
|
@@ -78,7 +72,6 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
78
72
|
onMouseLeave: onMouseLeave,
|
|
79
73
|
...props
|
|
80
74
|
}, renderSelectedItem ? Data() : name && jsx("title", null, name, ": ", quantity)));
|
|
81
|
-
|
|
82
75
|
if (href) {
|
|
83
76
|
result = jsx("a", {
|
|
84
77
|
href: href
|
|
@@ -86,7 +79,6 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
86
79
|
} else {
|
|
87
80
|
result = content;
|
|
88
81
|
}
|
|
89
|
-
|
|
90
82
|
return result;
|
|
91
83
|
}));
|
|
92
84
|
Sector.defaultProps = {
|
|
@@ -102,38 +94,29 @@ Sector.defaultProps = {
|
|
|
102
94
|
Sector.propTypes = {
|
|
103
95
|
/** the fill change color of pie chart */
|
|
104
96
|
fill: PropTypes.string.isRequired,
|
|
105
|
-
|
|
106
97
|
/** event click mouse in pie chart */
|
|
107
98
|
onMouseEnter: PropTypes.func,
|
|
108
|
-
|
|
109
99
|
/** event leave mouse in pie chart */
|
|
110
100
|
onMouseLeave: PropTypes.func,
|
|
111
101
|
onTouchEnd: PropTypes.func,
|
|
112
102
|
onTouchStart: PropTypes.func,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
103
|
+
/** function displays selected items by custom, example:<br/>
|
|
104
|
+
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
116
105
|
*/
|
|
117
106
|
renderSelectedItem: PropTypes.func,
|
|
118
107
|
path: PropTypes.string.isRequired,
|
|
119
|
-
|
|
120
108
|
/** the StrokeColor change color border and Stroke */
|
|
121
109
|
strokeColor: PropTypes.string,
|
|
122
|
-
|
|
123
110
|
/** it can be applied to any element but it has effect only on the following nine */
|
|
124
111
|
strokeLinejoin: PropTypes.string,
|
|
125
|
-
|
|
126
112
|
/** The strokeWidth attribute is a presentation attribute defining the width of the stroke to be applied to the shape */
|
|
127
113
|
strokeWidth: PropTypes.number,
|
|
128
|
-
|
|
129
114
|
/** The title is add from the data */
|
|
130
115
|
name: PropTypes.string,
|
|
131
116
|
quantity: PropTypes.number,
|
|
132
117
|
href: PropTypes.string,
|
|
133
|
-
|
|
134
118
|
/** The transition-duration CSS property sets the length of time a transition animation should take to complete. Default 0.3s */
|
|
135
119
|
transitionDuration: PropTypes.string,
|
|
136
|
-
|
|
137
120
|
/** The transition-timing-function CSS property sets how intermediate values are calculated for CSS properties being affected*/
|
|
138
121
|
transitionTimingFunction: PropTypes.string,
|
|
139
122
|
className: PropTypes.string
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import PropTypes from "prop-types";
|
|
5
4
|
import Sector from "./Sector";
|
|
6
5
|
import { jsx } from '@emotion/core';
|
|
7
|
-
|
|
8
6
|
const Sectors = ({
|
|
9
7
|
center,
|
|
10
8
|
data,
|
|
@@ -56,35 +54,27 @@ const Sectors = ({
|
|
|
56
54
|
});
|
|
57
55
|
})) : null;
|
|
58
56
|
};
|
|
59
|
-
|
|
60
57
|
Sectors.defaultProps = {
|
|
61
58
|
expandSize: 2
|
|
62
59
|
};
|
|
63
60
|
Sectors.propTypes = {
|
|
64
61
|
center: PropTypes.number.isRequired,
|
|
65
|
-
|
|
66
62
|
/** The array of elements that appear in the PieChart */
|
|
67
63
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
68
64
|
color: PropTypes.string.isRequired,
|
|
69
65
|
name: PropTypes.string,
|
|
70
66
|
quantity: PropTypes.number.isRequired
|
|
71
67
|
})).isRequired,
|
|
72
|
-
|
|
73
68
|
/** returns the data of the object to be hover */
|
|
74
69
|
onSectorHover: PropTypes.func,
|
|
75
|
-
|
|
76
70
|
/** the Size expand On Hover */
|
|
77
71
|
expandSize: PropTypes.number,
|
|
78
|
-
|
|
79
72
|
/** the StrokeWidth change color border and Stroke */
|
|
80
73
|
strokeColor: Sector.propTypes.strokeColor,
|
|
81
|
-
|
|
82
74
|
/** The strokeWidth attribute is a presentation attribute defining the width of the stroke to be applied to the shape */
|
|
83
75
|
strokeWidth: Sector.propTypes.strokeWidth,
|
|
84
|
-
|
|
85
76
|
/** The starting angle is drawn in a circle from data first */
|
|
86
77
|
startAngle: PropTypes.number,
|
|
87
|
-
|
|
88
78
|
/** */
|
|
89
79
|
angleMargin: PropTypes.number
|
|
90
80
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { useState, useRef, useEffect, memo, forwardRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -26,29 +25,23 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
26
25
|
if (!ref) {
|
|
27
26
|
ref = useRef(null);
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
if (data[0] && !data[0].color) {
|
|
31
29
|
var colors = [];
|
|
32
30
|
let Count = data.length;
|
|
33
|
-
|
|
34
31
|
while (colors.length < Count) {
|
|
35
32
|
do {
|
|
36
33
|
var makeColorCode = '0123456789ABCDEF';
|
|
37
34
|
var code = '#';
|
|
38
|
-
|
|
39
35
|
for (var count = 0; count < 6; count++) {
|
|
40
36
|
code = code + makeColorCode[Math.floor(Math.random() * 16)];
|
|
41
37
|
}
|
|
42
38
|
} while (colors.indexOf(code) >= 0);
|
|
43
|
-
|
|
44
39
|
colors.push('#' + ('000000' + code.toString(16)).slice(-6));
|
|
45
40
|
}
|
|
46
|
-
|
|
47
41
|
for (let i in data) {
|
|
48
42
|
data[i].color = colors[i];
|
|
49
43
|
}
|
|
50
44
|
}
|
|
51
|
-
|
|
52
45
|
const compare = () => {
|
|
53
46
|
if (width > height) {
|
|
54
47
|
return height;
|
|
@@ -56,13 +49,11 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
56
49
|
return width;
|
|
57
50
|
}
|
|
58
51
|
};
|
|
59
|
-
|
|
60
52
|
const ZoomIn = () => {
|
|
61
53
|
let zoom = 0;
|
|
62
54
|
zoom = compare() / 25;
|
|
63
55
|
return zoom;
|
|
64
56
|
};
|
|
65
|
-
|
|
66
57
|
const Pie = Donut ? css`
|
|
67
58
|
position: relative;
|
|
68
59
|
display: flex;
|
|
@@ -101,7 +92,6 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
101
92
|
const offset = expandOnHover || props.expandedIndex > -1 ? expandSize + 2 : 0;
|
|
102
93
|
const [isExpanded, setExpanded] = useState('false');
|
|
103
94
|
const expandedIndex = useRef(null);
|
|
104
|
-
|
|
105
95
|
const handleSectorHover = (data, index, e) => {
|
|
106
96
|
if (expandOnHover) {
|
|
107
97
|
setExpanded({
|
|
@@ -109,12 +99,10 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
109
99
|
});
|
|
110
100
|
expandedIndex.current = index !== null ? index : props.expandedIndex > -1 ? props.expandedIndex : null;
|
|
111
101
|
}
|
|
112
|
-
|
|
113
102
|
if (onSectorHover) {
|
|
114
103
|
onSectorHover(data, index, e);
|
|
115
104
|
}
|
|
116
105
|
};
|
|
117
|
-
|
|
118
106
|
const renderSingleData = (d, center) => {
|
|
119
107
|
return jsx(Circle, {
|
|
120
108
|
center: center,
|
|
@@ -127,13 +115,14 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
127
115
|
...d
|
|
128
116
|
});
|
|
129
117
|
};
|
|
130
|
-
|
|
131
118
|
const renderMultipleData = center => {
|
|
132
119
|
return jsx(Sectors, {
|
|
133
120
|
center: center,
|
|
134
|
-
data: expandOnHover ? data.map((d, i) => ({
|
|
121
|
+
data: expandOnHover ? data.map((d, i) => ({
|
|
122
|
+
...d,
|
|
135
123
|
expanded: `${isExpanded ? i === expandedIndex.current : i === props.expandedIndex}`
|
|
136
|
-
})) : data.map((d, i) => ({
|
|
124
|
+
})) : data.map((d, i) => ({
|
|
125
|
+
...d,
|
|
137
126
|
expanded: `${i === props.expandedIndex}`
|
|
138
127
|
})),
|
|
139
128
|
...props,
|
|
@@ -143,13 +132,11 @@ const PieChart = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
143
132
|
onSectorHover: handleSectorHover
|
|
144
133
|
});
|
|
145
134
|
};
|
|
146
|
-
|
|
147
135
|
useEffect(() => {
|
|
148
136
|
if (direction === 'bottom' && viewData) {
|
|
149
137
|
document.getElementById(`DGN-CUI-Container-PieChart`).style.display = 'inherit';
|
|
150
138
|
document.getElementById(`DGN-CUI-TableData-PieChart`).style.display = 'flex';
|
|
151
139
|
}
|
|
152
|
-
|
|
153
140
|
if (direction === 'left' && viewData) {
|
|
154
141
|
document.getElementById(`DGN-CUI-Container-PieChart`).style.position = 'relative';
|
|
155
142
|
document.getElementById(`DGN-CUI-TableData-PieChart`).style.position = 'fixed';
|
|
@@ -243,19 +230,14 @@ PieChart.defaultProps = {
|
|
|
243
230
|
PieChart.propTypes = {
|
|
244
231
|
/** the viewData will display information about the input data */
|
|
245
232
|
viewData: PropTypes.bool,
|
|
246
|
-
|
|
247
233
|
/** drawn Ratio of Width entered by user, default is: 900px */
|
|
248
234
|
width: PropTypes.number,
|
|
249
|
-
|
|
250
235
|
/** drawn Ratio of Height entered by user, default is: 500px */
|
|
251
236
|
height: PropTypes.number,
|
|
252
|
-
|
|
253
237
|
/** change from PieChart to DonutChart */
|
|
254
238
|
Donut: PropTypes.bool,
|
|
255
|
-
|
|
256
239
|
/** Typography of font in core, default: h4 */
|
|
257
240
|
type: PropTypes.string,
|
|
258
|
-
|
|
259
241
|
/** The array of elements that appear in the PieChart */
|
|
260
242
|
data: PropTypes.arrayOf(PropTypes.shape({
|
|
261
243
|
color: PropTypes.string,
|
|
@@ -263,46 +245,32 @@ PieChart.propTypes = {
|
|
|
263
245
|
quantity: PropTypes.number.isRequired,
|
|
264
246
|
href: PropTypes.string
|
|
265
247
|
})).isRequired,
|
|
266
|
-
|
|
267
248
|
/** the animation expand On Hover */
|
|
268
249
|
expandOnHover: PropTypes.bool,
|
|
269
|
-
|
|
270
250
|
/** the direction custom position data */
|
|
271
251
|
direction: PropTypes.string,
|
|
272
|
-
|
|
273
252
|
/** the Size expand On Hover */
|
|
274
253
|
expandSize: PropTypes.number,
|
|
275
|
-
|
|
276
254
|
/** the specified position is hovering by default */
|
|
277
255
|
expandedIndex: PropTypes.number,
|
|
278
|
-
|
|
279
256
|
/** returns the data of the object to be hover */
|
|
280
257
|
onSectorHover: PropTypes.func,
|
|
281
|
-
|
|
282
258
|
/** the StrokeWidth change color border and Stroke */
|
|
283
259
|
strokeColor: Sector.propTypes.strokeColor,
|
|
284
|
-
|
|
285
260
|
/** it can be applied to any element but it has effect only on the following nine */
|
|
286
261
|
strokeLinejoin: Sector.propTypes.strokeLinejoin,
|
|
287
|
-
|
|
288
262
|
/** The strokeWidth attribute is a presentation attribute defining the width of the stroke to be applied to the shape */
|
|
289
263
|
strokeWidth: Sector.propTypes.strokeWidth,
|
|
290
|
-
|
|
291
264
|
/** The starting angle is drawn in a circle from data first */
|
|
292
265
|
startAngle: PropTypes.number,
|
|
293
|
-
|
|
294
266
|
/** */
|
|
295
267
|
angleMargin: PropTypes.number,
|
|
296
|
-
|
|
297
268
|
/** The viewBox attribute defines the position and dimension, in user space, of an SVG viewport */
|
|
298
269
|
viewBoxSize: PropTypes.number,
|
|
299
|
-
|
|
300
270
|
/** The transition-duration CSS property sets the length of time a transition animation should take to complete. Default 0.3s */
|
|
301
271
|
transitionDuration: Sector.propTypes.transitionDuration,
|
|
302
|
-
|
|
303
272
|
/** The transition-timing-function CSS property sets how intermediate values are calculated for CSS properties being affected*/
|
|
304
273
|
transitionTimingFunction: Sector.propTypes.transitionTimingFunction,
|
|
305
|
-
|
|
306
274
|
/** The title is add from the data */
|
|
307
275
|
name: Sector.propTypes.name
|
|
308
276
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { useRef, memo, forwardRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -25,11 +24,9 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
25
24
|
...props
|
|
26
25
|
}, ref) => {
|
|
27
26
|
let result;
|
|
28
|
-
|
|
29
27
|
if (!ref) {
|
|
30
28
|
ref = useRef(null);
|
|
31
29
|
}
|
|
32
|
-
|
|
33
30
|
const pathRef = useRef(null);
|
|
34
31
|
const SectorCSS = expandOnHover || expandedIndex >= 0 ? css`
|
|
35
32
|
transition-property: ${transitionProperty};
|
|
@@ -61,7 +58,6 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
61
58
|
onMouseLeave: onMouseLeave,
|
|
62
59
|
...props
|
|
63
60
|
}, renderSelectedItem);
|
|
64
|
-
|
|
65
61
|
if (href) {
|
|
66
62
|
result = jsx("a", {
|
|
67
63
|
href: href
|
|
@@ -69,7 +65,6 @@ const Sector = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
69
65
|
} else {
|
|
70
66
|
result = content;
|
|
71
67
|
}
|
|
72
|
-
|
|
73
68
|
return result;
|
|
74
69
|
}));
|
|
75
70
|
Sector.defaultProps = {
|
|
@@ -85,35 +80,27 @@ Sector.defaultProps = {
|
|
|
85
80
|
Sector.propTypes = {
|
|
86
81
|
/** the fill change color of pie chart */
|
|
87
82
|
fill: PropTypes.string.isRequired,
|
|
88
|
-
|
|
89
83
|
/** event click mouse in pie chart */
|
|
90
84
|
onMouseEnter: PropTypes.func,
|
|
91
|
-
|
|
92
85
|
/** event leave mouse in pie chart */
|
|
93
86
|
onMouseLeave: PropTypes.func,
|
|
94
87
|
onTouchEnd: PropTypes.func,
|
|
95
88
|
onTouchStart: PropTypes.func,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
89
|
+
/** function displays selected items by custom, example:<br/>
|
|
90
|
+
* renderItem={(data, index) => index + ' - ' + data.name}<br/>
|
|
99
91
|
*/
|
|
100
92
|
renderSelectedItem: PropTypes.func,
|
|
101
93
|
path: PropTypes.string.isRequired,
|
|
102
|
-
|
|
103
94
|
/** the StrokeColor change color border and Stroke */
|
|
104
95
|
strokeColor: PropTypes.string,
|
|
105
|
-
|
|
106
96
|
/** it can be applied to any element but it has effect only on the following nine */
|
|
107
97
|
strokeLinejoin: PropTypes.string,
|
|
108
|
-
|
|
109
98
|
/** The strokeWidth attribute is a presentation attribute defining the width of the stroke to be applied to the shape */
|
|
110
99
|
strokeWidth: PropTypes.number,
|
|
111
100
|
quantity: PropTypes.number,
|
|
112
101
|
href: PropTypes.string,
|
|
113
|
-
|
|
114
102
|
/** The transition-duration CSS property sets the length of time a transition animation should take to complete. Default 0.3s */
|
|
115
103
|
transitionDuration: PropTypes.string,
|
|
116
|
-
|
|
117
104
|
/** The transition-timing-function CSS property sets how intermediate values are calculated for CSS properties being affected*/
|
|
118
105
|
transitionTimingFunction: PropTypes.string,
|
|
119
106
|
className: PropTypes.string
|