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,12 +1,11 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useEffect, useRef, forwardRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import { jsx, css } from '@emotion/core';
|
|
7
6
|
import theme from "../../theme/settings";
|
|
8
7
|
import Typography from "../typography";
|
|
9
|
-
const color = [`${theme.colors.info}`, `${theme.colors.success}`, `${theme.colors.warning}`, `${theme.colors.danger}`];
|
|
8
|
+
const color = [`${theme.colors.semantic.info}`, `${theme.colors.semantic.success}`, `${theme.colors.semantic.warning}`, `${theme.colors.semantic.danger}`];
|
|
10
9
|
const colorNum = {
|
|
11
10
|
option0: 0,
|
|
12
11
|
option1: 1,
|
|
@@ -24,10 +23,9 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
24
23
|
if (!ref) {
|
|
25
24
|
ref = useRef(null);
|
|
26
25
|
}
|
|
27
|
-
|
|
28
26
|
const checkText = css`
|
|
29
27
|
display: inline-flex;
|
|
30
|
-
color: ${disabled ? theme.colors.disabled : theme.colors.
|
|
28
|
+
color: ${disabled ? theme.colors.system.disabled : theme.colors.system.rest};
|
|
31
29
|
div:nth-of-type(1):hover {
|
|
32
30
|
color: ${color[0]};
|
|
33
31
|
}
|
|
@@ -45,10 +43,9 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
45
43
|
margin: 2px 19px;
|
|
46
44
|
width: 2px;
|
|
47
45
|
height: 16px;
|
|
48
|
-
background: ${theme.colors.
|
|
46
|
+
background: ${theme.colors.system.rest};
|
|
49
47
|
border-radius: 1px;
|
|
50
48
|
`;
|
|
51
|
-
|
|
52
49
|
const onClickItem = (e, index) => {
|
|
53
50
|
const clickedItem = ref.current.querySelectorAll('div');
|
|
54
51
|
if (readOnly || clickedItem[index].style.color) return;
|
|
@@ -66,7 +63,6 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
66
63
|
if (onClick) onClick(e);
|
|
67
64
|
if (onChoose) onChoose(e);
|
|
68
65
|
};
|
|
69
|
-
|
|
70
66
|
useEffect(() => {
|
|
71
67
|
ref.current.querySelectorAll('div').forEach((el, i) => {
|
|
72
68
|
if (i === chosen || el.textContent === chosen) {
|
|
@@ -87,7 +83,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
87
83
|
type: 'p2',
|
|
88
84
|
style: {
|
|
89
85
|
lineHeight: '20px',
|
|
90
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
86
|
+
color: `${disabled ? `${theme.colors.system.disabled} !important` : 'inherit'}`,
|
|
91
87
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
92
88
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
93
89
|
userSelect: 'none'
|
|
@@ -100,7 +96,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
100
96
|
type: 'p2',
|
|
101
97
|
style: {
|
|
102
98
|
lineHeight: '20px',
|
|
103
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
99
|
+
color: `${disabled ? `${theme.colors.system.disabled} !important` : 'inherit'}`,
|
|
104
100
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
105
101
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
106
102
|
userSelect: 'none'
|
|
@@ -113,7 +109,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
113
109
|
type: 'p2',
|
|
114
110
|
style: {
|
|
115
111
|
lineHeight: '20px',
|
|
116
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
112
|
+
color: `${disabled ? `${theme.colors.system.disabled} !important` : 'inherit'}`,
|
|
117
113
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
118
114
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
119
115
|
userSelect: 'none'
|
|
@@ -126,7 +122,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
126
122
|
type: 'p2',
|
|
127
123
|
style: {
|
|
128
124
|
lineHeight: '20px',
|
|
129
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
125
|
+
color: `${disabled ? `${theme.colors.system.disabled} !important` : 'inherit'}`,
|
|
130
126
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
131
127
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
132
128
|
userSelect: 'none'
|
|
@@ -142,16 +138,12 @@ InterviewStatus.defaultProps = {
|
|
|
142
138
|
InterviewStatus.propsTypes = {
|
|
143
139
|
/** Prevent all event if true */
|
|
144
140
|
disabled: PropTypes.bool,
|
|
145
|
-
|
|
146
141
|
/** Item of CheckText in CheckText component */
|
|
147
142
|
option: PropTypes.oneOf(['status', 'success', 'warning', 'danger']),
|
|
148
|
-
|
|
149
143
|
/** the displayed chosen for each change */
|
|
150
144
|
chosen: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
151
|
-
|
|
152
145
|
/** The function will run to return a value of CheckText Component */
|
|
153
146
|
onClick: PropTypes.func,
|
|
154
|
-
|
|
155
147
|
/** The function will run to return a value of CheckText Component */
|
|
156
148
|
onChoose: PropTypes.func
|
|
157
149
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import { jsx, css } from '@emotion/core';
|
|
7
6
|
import theme from "../../theme/settings";
|
|
8
7
|
import Typography from "../typography";
|
|
9
|
-
const color = [`${theme.colors.warning}`, `${theme.colors.success}`, `${theme.colors.danger}`];
|
|
8
|
+
const color = [`${theme.colors.semantic.warning}`, `${theme.colors.semantic.success}`, `${theme.colors.semantic.danger}`];
|
|
10
9
|
const colorNum = {
|
|
11
10
|
Yes: 0,
|
|
12
11
|
Maybe: 1,
|
|
@@ -22,31 +21,29 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
22
21
|
if (!ref) {
|
|
23
22
|
ref = useRef(null);
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
const checkText = css`
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
color: ${disabled ? theme.colors.text.disabled : theme.colors.system.rest};
|
|
27
|
+
div:nth-of-type(1):hover {
|
|
28
|
+
color: ${color[0]};
|
|
29
|
+
}
|
|
30
|
+
div:nth-of-type(2):hover {
|
|
31
|
+
color: ${color[1]};
|
|
32
|
+
}
|
|
33
|
+
div:nth-of-type(3):hover {
|
|
34
|
+
color: ${color[2]};
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
39
37
|
const checkTextItemText = css`
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
margin-left: 10px;
|
|
39
|
+
`;
|
|
42
40
|
const checkTextDivider = css`
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
margin: 2px 19px;
|
|
42
|
+
width: 2px;
|
|
43
|
+
height: 16px;
|
|
44
|
+
background: ${theme.colors.system.rest};
|
|
45
|
+
border-radius: 1px;
|
|
46
|
+
`;
|
|
50
47
|
const onClickItem = (e, index) => {
|
|
51
48
|
const clickedItem = ref.current.querySelectorAll('div');
|
|
52
49
|
if (readOnly || clickedItem[index].style.color) return;
|
|
@@ -64,7 +61,6 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
64
61
|
if (onClick) onClick(e);
|
|
65
62
|
if (onChoose) onChoose(e);
|
|
66
63
|
};
|
|
67
|
-
|
|
68
64
|
useEffect(() => {
|
|
69
65
|
ref.current.querySelectorAll('div').forEach((el, i) => {
|
|
70
66
|
if (i === chosen || el.textContent === chosen) {
|
|
@@ -81,7 +77,7 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
81
77
|
type: 'p2',
|
|
82
78
|
style: {
|
|
83
79
|
lineHeight: '20px',
|
|
84
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
80
|
+
color: `${disabled ? `${theme.colors.text.disabled} !important` : 'inherit'}`,
|
|
85
81
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
86
82
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
87
83
|
userSelect: 'none'
|
|
@@ -107,7 +103,7 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
107
103
|
type: 'p2',
|
|
108
104
|
style: {
|
|
109
105
|
lineHeight: '20px',
|
|
110
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
106
|
+
color: `${disabled ? `${theme.colors.text.disabled} !important` : 'inherit'}`,
|
|
111
107
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
112
108
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
113
109
|
userSelect: 'none'
|
|
@@ -134,7 +130,7 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
134
130
|
type: 'p2',
|
|
135
131
|
style: {
|
|
136
132
|
lineHeight: '20px',
|
|
137
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
133
|
+
color: `${disabled ? `${theme.colors.text.disabled} !important` : 'inherit'}`,
|
|
138
134
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
139
135
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
140
136
|
userSelect: 'none'
|
|
@@ -159,13 +155,10 @@ const InterviewConfirmation = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
159
155
|
InterviewConfirmation.propsTypes = {
|
|
160
156
|
/** Prevent all event if true */
|
|
161
157
|
disabled: PropTypes.bool,
|
|
162
|
-
|
|
163
158
|
/** the displayed chosen for each change */
|
|
164
159
|
chosen: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
165
|
-
|
|
166
160
|
/** The function will run to return a value of CheckText Component */
|
|
167
161
|
onClick: PropTypes.func,
|
|
168
|
-
|
|
169
162
|
/** The function will run to return a value of CheckText Component */
|
|
170
163
|
onChoose: PropTypes.func
|
|
171
164
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useMemo, useEffect, useRef, forwardRef } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
6
5
|
import { jsx, css } from '@emotion/core';
|
|
7
6
|
import theme from "../../theme/settings";
|
|
8
7
|
import Typography from "../typography";
|
|
9
|
-
const color = [`${theme.colors.warning}`, `${theme.colors.success}`, `${theme.colors.danger}`];
|
|
8
|
+
const color = [`${theme.colors.semantic.warning}`, `${theme.colors.semantic.success}`, `${theme.colors.semantic.danger}`];
|
|
10
9
|
const colorNum = {
|
|
11
10
|
Scheduled: 0,
|
|
12
11
|
Started: 1,
|
|
@@ -22,31 +21,29 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
22
21
|
if (!ref) {
|
|
23
22
|
ref = useRef(null);
|
|
24
23
|
}
|
|
25
|
-
|
|
26
24
|
const checkText = css`
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
color: ${disabled ? theme.colors.text.disabled : theme.colors.system.rest};
|
|
27
|
+
div:nth-of-type(1):hover {
|
|
28
|
+
color: ${color[0]};
|
|
29
|
+
}
|
|
30
|
+
div:nth-of-type(2):hover {
|
|
31
|
+
color: ${color[1]};
|
|
32
|
+
}
|
|
33
|
+
div:nth-of-type(3):hover {
|
|
34
|
+
color: ${color[2]};
|
|
35
|
+
}
|
|
36
|
+
`;
|
|
39
37
|
const checkTextItemText = css`
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
margin-left: 10px;
|
|
39
|
+
`;
|
|
42
40
|
const checkTextDivider = css`
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
41
|
+
margin: 2px 19px;
|
|
42
|
+
width: 2px;
|
|
43
|
+
height: 16px;
|
|
44
|
+
background: ${theme.colors.system.rest};
|
|
45
|
+
border-radius: 1px;
|
|
46
|
+
`;
|
|
50
47
|
const onClickItem = (e, index) => {
|
|
51
48
|
const clickedItem = ref.current.querySelectorAll('div');
|
|
52
49
|
if (readOnly || clickedItem[index].style.color) return;
|
|
@@ -64,7 +61,6 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
64
61
|
if (onClick) onClick(e);
|
|
65
62
|
if (onChoose) onChoose(e);
|
|
66
63
|
};
|
|
67
|
-
|
|
68
64
|
useEffect(() => {
|
|
69
65
|
ref.current.querySelectorAll('div').forEach((el, i) => {
|
|
70
66
|
if (i === chosen || el.textContent === chosen) {
|
|
@@ -81,7 +77,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
81
77
|
type: 'p2',
|
|
82
78
|
style: {
|
|
83
79
|
lineHeight: '20px',
|
|
84
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
80
|
+
color: `${disabled ? `${theme.colors.text.disabled} !important` : 'inherit'}`,
|
|
85
81
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
86
82
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
87
83
|
userSelect: 'none'
|
|
@@ -96,7 +92,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
96
92
|
type: 'p2',
|
|
97
93
|
style: {
|
|
98
94
|
lineHeight: '20px',
|
|
99
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
95
|
+
color: `${disabled ? `${theme.colors.text.disabled} !important` : 'inherit'}`,
|
|
100
96
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
101
97
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
102
98
|
userSelect: 'none'
|
|
@@ -111,7 +107,7 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
111
107
|
type: 'p2',
|
|
112
108
|
style: {
|
|
113
109
|
lineHeight: '20px',
|
|
114
|
-
color: `${disabled ? `${theme.colors.disabled} !important` : 'inherit'}`,
|
|
110
|
+
color: `${disabled ? `${theme.colors.text.disabled} !important` : 'inherit'}`,
|
|
115
111
|
cursor: `${readOnly ? 'default' : 'pointer'}`,
|
|
116
112
|
pointerEvents: `${disabled ? 'none' : 'auto'}`,
|
|
117
113
|
userSelect: 'none'
|
|
@@ -125,13 +121,10 @@ const InterviewStatus = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
125
121
|
InterviewStatus.propsTypes = {
|
|
126
122
|
/** Prevent all event if true */
|
|
127
123
|
disabled: PropTypes.bool,
|
|
128
|
-
|
|
129
124
|
/** the displayed chosen for each change */
|
|
130
125
|
chosen: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
131
|
-
|
|
132
126
|
/** The function will run to return a value of CheckText Component */
|
|
133
127
|
onClick: PropTypes.func,
|
|
134
|
-
|
|
135
128
|
/** The function will run to return a value of CheckText Component */
|
|
136
129
|
onChoose: PropTypes.func
|
|
137
130
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { Fragment, memo, useMemo, useRef, useState } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -43,10 +42,8 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
43
42
|
display: flex;
|
|
44
43
|
}
|
|
45
44
|
`;
|
|
46
|
-
|
|
47
45
|
const getStartIcon = () => {
|
|
48
46
|
var _file$FileName;
|
|
49
|
-
|
|
50
47
|
const lastIndexOfDot = (_file$FileName = file.FileName) === null || _file$FileName === void 0 ? void 0 : _file$FileName.lastIndexOf('.');
|
|
51
48
|
if (!lastIndexOfDot) return null;
|
|
52
49
|
const fileExt = file.FileName.slice(lastIndexOfDot + 1);
|
|
@@ -58,19 +55,16 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
58
55
|
viewBox: true
|
|
59
56
|
});
|
|
60
57
|
};
|
|
61
|
-
|
|
62
58
|
const clickOutAction = event => {
|
|
63
59
|
if (!moreActionRef.current) {
|
|
64
60
|
document.removeEventListener('click', clickOutAction);
|
|
65
61
|
return;
|
|
66
62
|
}
|
|
67
|
-
|
|
68
63
|
if (!moreActionRef.current.contains(event.target)) {
|
|
69
64
|
moreActionRef.current.classList.remove('DGN-UI-Chip-show');
|
|
70
65
|
document.removeEventListener('click', clickOutAction);
|
|
71
66
|
}
|
|
72
67
|
};
|
|
73
|
-
|
|
74
68
|
const onShowMoreOption = () => {
|
|
75
69
|
if (!moreActionRef.current.classList.contains('DGN-UI-Chip-show')) {
|
|
76
70
|
moreActionRef.current.classList.add('DGN-UI-Chip-show');
|
|
@@ -79,7 +73,6 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
79
73
|
}, 100);
|
|
80
74
|
}
|
|
81
75
|
};
|
|
82
|
-
|
|
83
76
|
const viewAction = (e, file) => {
|
|
84
77
|
if (onView) {
|
|
85
78
|
onView(e, file);
|
|
@@ -87,15 +80,14 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
87
80
|
setOpen(true);
|
|
88
81
|
}
|
|
89
82
|
};
|
|
90
|
-
|
|
91
83
|
const downloadAction = (e, file = {}) => {
|
|
92
84
|
if (onDownload) onDownload(e, file);else if (file.URL) {
|
|
93
85
|
fetch(file.URL).then(resp => resp.blob()).then(blob => {
|
|
94
86
|
const url = window.URL.createObjectURL(blob);
|
|
95
87
|
const a = document.createElement('a');
|
|
96
88
|
a.style.display = 'none';
|
|
97
|
-
a.href = url;
|
|
98
|
-
|
|
89
|
+
a.href = url;
|
|
90
|
+
// the filename you want
|
|
99
91
|
a.download = file.FileName;
|
|
100
92
|
document.body.appendChild(a);
|
|
101
93
|
a.click();
|
|
@@ -103,22 +95,18 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
103
95
|
}).catch(() => alert('File not found'));
|
|
104
96
|
}
|
|
105
97
|
};
|
|
106
|
-
|
|
107
98
|
const deleteAction = (e, file) => {
|
|
108
99
|
if (onRemove) onRemove(e, file);
|
|
109
100
|
setTimeout(() => {
|
|
110
101
|
if (moreActionRef.current && moreActionRef.current.parentNode) moreActionRef.current.parentNode.remove();
|
|
111
102
|
}, 0);
|
|
112
103
|
};
|
|
113
|
-
|
|
114
104
|
const renderLabel = label => {
|
|
115
105
|
if (maxLength && label && label.length > maxLength) {
|
|
116
106
|
label = label.slice(0, maxLength) + '...';
|
|
117
107
|
}
|
|
118
|
-
|
|
119
108
|
return label;
|
|
120
109
|
};
|
|
121
|
-
|
|
122
110
|
const attachView = useMemo(() => {
|
|
123
111
|
return jsx(ModalSample, {
|
|
124
112
|
open: open,
|
|
@@ -128,7 +116,8 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
128
116
|
url: file.URL
|
|
129
117
|
})));
|
|
130
118
|
}, [open]);
|
|
131
|
-
return jsx(Fragment, null, jsx(Chip, {
|
|
119
|
+
return jsx(Fragment, null, jsx(Chip, {
|
|
120
|
+
...props,
|
|
132
121
|
clearAble: false,
|
|
133
122
|
label: renderLabel(file.FileName),
|
|
134
123
|
startIcon: getStartIcon(),
|
|
@@ -156,20 +145,18 @@ const AttachChip = /*#__PURE__*/memo(({
|
|
|
156
145
|
}))), attachView);
|
|
157
146
|
});
|
|
158
147
|
AttachChip.propTypes = {
|
|
159
|
-
/** the file info, such as:<br/>
|
|
160
|
-
* {<br/>
|
|
161
|
-
* URL: https://url.com/pathname,<br/>
|
|
162
|
-
* FileName: file.name,<br/>
|
|
163
|
-
* }
|
|
148
|
+
/** the file info, such as:<br/>
|
|
149
|
+
* {<br/>
|
|
150
|
+
* URL: https://url.com/pathname,<br/>
|
|
151
|
+
* FileName: file.name,<br/>
|
|
152
|
+
* }
|
|
164
153
|
*/
|
|
165
154
|
file: PropTypes.shape({
|
|
166
155
|
URL: PropTypes.string.isRequired,
|
|
167
156
|
FileName: PropTypes.string.isRequired
|
|
168
157
|
}).isRequired,
|
|
169
|
-
|
|
170
158
|
/** max length content to display was allowed */
|
|
171
159
|
maxLength: PropTypes.number,
|
|
172
|
-
|
|
173
160
|
/** any props else of Chip component */
|
|
174
161
|
props: PropTypes.any
|
|
175
162
|
};
|
package/components/chip/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
|
-
|
|
3
2
|
/** @jsx jsx */
|
|
4
3
|
import { memo, useRef, forwardRef, useMemo, useImperativeHandle } from 'react';
|
|
5
4
|
import PropTypes from 'prop-types';
|
|
@@ -11,21 +10,23 @@ import { hexToRGBA } from "../../styles/color-helper";
|
|
|
11
10
|
import { useTheme, useColor as colors } from "../../theme";
|
|
12
11
|
const {
|
|
13
12
|
colors: {
|
|
14
|
-
danger,
|
|
15
|
-
info,
|
|
16
|
-
success,
|
|
17
|
-
warning,
|
|
18
13
|
system: {
|
|
19
14
|
active,
|
|
20
15
|
rest,
|
|
21
16
|
white,
|
|
22
17
|
disabled: disabledCl,
|
|
23
18
|
dark
|
|
19
|
+
},
|
|
20
|
+
semantic: {
|
|
21
|
+
success: semanticSuccess,
|
|
22
|
+
warning: semanticWarning,
|
|
23
|
+
danger: semanticDanger,
|
|
24
|
+
info: semanticInfo
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
spacing
|
|
27
28
|
} = useTheme();
|
|
28
|
-
const colorMap = new Map([['default', active], ['primary', active], ['success',
|
|
29
|
+
const colorMap = new Map([['default', active], ['primary', active], ['success', semanticSuccess], ['warning', semanticWarning], ['danger', semanticDanger], ['info', semanticInfo]]);
|
|
29
30
|
const iconSizeMap = new Map([['small', `${spacing(4)}px`], ['medium', `${spacing(5)}px`], ['large', `${spacing(6)}px`]]);
|
|
30
31
|
const typographySizeMap = new Map([['small', 'p3'], ['medium', 'p2'], ['large', 'p1']]);
|
|
31
32
|
const paddingSizeMap = new Map([['small', `0px ${spacing(1.5)}px`], ['medium', `0px ${spacing(2)}px`], ['large', `0px ${spacing(2.5)}px`]]);
|
|
@@ -70,30 +71,25 @@ const Chip = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
70
71
|
useImperativeHandle(reference, () => {
|
|
71
72
|
const currentRef = ref.current || {};
|
|
72
73
|
const _instance = {}; // methods
|
|
73
|
-
|
|
74
74
|
_instance.__proto__ = {}; // hidden methods
|
|
75
|
-
|
|
76
75
|
currentRef.instance = _instance;
|
|
77
76
|
return currentRef;
|
|
78
77
|
});
|
|
79
|
-
|
|
80
78
|
const onRemoveHandler = () => {
|
|
81
79
|
if (onRemove || disabled) onRemove(ref.current);
|
|
82
80
|
};
|
|
83
|
-
|
|
84
81
|
const _onClick = event => {
|
|
85
82
|
onClick && event.stopPropagation();
|
|
86
83
|
if (disabled) return;
|
|
87
84
|
onClick && onClick(event);
|
|
88
85
|
};
|
|
89
|
-
|
|
90
86
|
const _onDbClick = event => {
|
|
91
87
|
onDbClick && event.stopPropagation();
|
|
92
88
|
if (disabled) return;
|
|
93
89
|
onDbClick && onDbClick(event);
|
|
94
|
-
};
|
|
95
|
-
|
|
90
|
+
};
|
|
96
91
|
|
|
92
|
+
// Start Icon
|
|
97
93
|
const startIconView = useMemo(() => {
|
|
98
94
|
if (typeof startIcon === 'string') {
|
|
99
95
|
return jsx(Icon, {
|
|
@@ -105,8 +101,9 @@ const Chip = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
105
101
|
} else return jsx("div", {
|
|
106
102
|
css: ChipIconCSS(infoChip)
|
|
107
103
|
}, startIcon);
|
|
108
|
-
}, [startIcon, size]);
|
|
104
|
+
}, [startIcon, size]);
|
|
109
105
|
|
|
106
|
+
// Label
|
|
110
107
|
const labelView = useMemo(() => {
|
|
111
108
|
return jsx(Typography, {
|
|
112
109
|
css: ChipLabelCSS,
|
|
@@ -115,11 +112,11 @@ const Chip = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
115
112
|
lineClamp: 1,
|
|
116
113
|
...labelProps
|
|
117
114
|
}, label);
|
|
118
|
-
}, [label, size, startIcon, endIcon, clearAble]);
|
|
115
|
+
}, [label, size, startIcon, endIcon, clearAble]);
|
|
119
116
|
|
|
117
|
+
// End Icon
|
|
120
118
|
const endIconView = useMemo(() => {
|
|
121
119
|
let node = endIcon;
|
|
122
|
-
|
|
123
120
|
if (typeof node === 'string') {
|
|
124
121
|
return jsx(Icon, {
|
|
125
122
|
name: node,
|
|
@@ -129,7 +126,6 @@ const Chip = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
129
126
|
viewBox: true
|
|
130
127
|
});
|
|
131
128
|
}
|
|
132
|
-
|
|
133
129
|
return clearAble ? jsx(ButtonIcon, {
|
|
134
130
|
ref: IconRef,
|
|
135
131
|
className: 'end-icon',
|
|
@@ -162,7 +158,6 @@ const ChipLabelCSS = css`
|
|
|
162
158
|
${positionRelative};
|
|
163
159
|
${userSelectNone};
|
|
164
160
|
`;
|
|
165
|
-
|
|
166
161
|
const ChipRootCSS = (onClick, onDbClick, colorProps, info) => css`
|
|
167
162
|
${displayInlineFlex};
|
|
168
163
|
${itemsCenter};
|
|
@@ -225,7 +220,6 @@ const ChipRootCSS = (onClick, onDbClick, colorProps, info) => css`
|
|
|
225
220
|
${cursorNotAllowed}
|
|
226
221
|
}
|
|
227
222
|
`;
|
|
228
|
-
|
|
229
223
|
const ChipIconCSS = info => css`
|
|
230
224
|
${flexRow};
|
|
231
225
|
${justifyCenter};
|
|
@@ -240,7 +234,6 @@ const ChipIconCSS = info => css`
|
|
|
240
234
|
min-height: ${info === null || info === void 0 ? void 0 : info.iconSize};
|
|
241
235
|
max-height: ${info === null || info === void 0 ? void 0 : info.iconSize};
|
|
242
236
|
`;
|
|
243
|
-
|
|
244
237
|
Chip.defaultProps = {
|
|
245
238
|
viewType: 'outlined',
|
|
246
239
|
size: 'medium',
|
|
@@ -249,57 +242,39 @@ Chip.defaultProps = {
|
|
|
249
242
|
Chip.propTypes = {
|
|
250
243
|
/** content to display in Chip */
|
|
251
244
|
label: PropTypes.string,
|
|
252
|
-
|
|
253
245
|
/** class of Chip element */
|
|
254
246
|
className: PropTypes.string,
|
|
255
|
-
|
|
256
247
|
/** max length content to display was allowed */
|
|
257
|
-
|
|
258
248
|
/** style inline of component */
|
|
259
249
|
style: PropTypes.object,
|
|
260
|
-
|
|
261
250
|
/** the icon display at head of Chip */
|
|
262
251
|
startIcon: PropTypes.any,
|
|
263
|
-
|
|
264
252
|
/** the icon display at last of Chip */
|
|
265
253
|
endIcon: PropTypes.any,
|
|
266
|
-
|
|
267
254
|
/** type of chip */
|
|
268
255
|
viewType: PropTypes.oneOf(['ghost', 'outlined', 'filled']),
|
|
269
|
-
|
|
270
256
|
/** color for text or background of Chip */
|
|
271
257
|
color: PropTypes.oneOfType([PropTypes.oneOf(['default', 'primary', 'info', 'success', 'warning', 'danger']), PropTypes.string]),
|
|
272
|
-
|
|
273
258
|
/** size of Chip */
|
|
274
259
|
size: PropTypes.oneOf(['small', 'medium', 'large']),
|
|
275
|
-
|
|
276
260
|
/** show clear icon if true */
|
|
277
261
|
clearAble: PropTypes.bool,
|
|
278
|
-
|
|
279
262
|
/** prevent all event and change color if true */
|
|
280
263
|
disabled: PropTypes.bool,
|
|
281
|
-
|
|
282
264
|
/** prevent all event if true */
|
|
283
265
|
readOnly: PropTypes.bool,
|
|
284
|
-
|
|
285
266
|
/** the function to get ref of Chip */
|
|
286
267
|
refs: PropTypes.func,
|
|
287
|
-
|
|
288
268
|
/** the function will run after remove chip */
|
|
289
269
|
onRemove: PropTypes.func,
|
|
290
|
-
|
|
291
270
|
/** the function will run when click on chip */
|
|
292
271
|
onClick: PropTypes.func,
|
|
293
|
-
|
|
294
272
|
/** the function will run when double click on chip */
|
|
295
273
|
onDbClick: PropTypes.func,
|
|
296
|
-
|
|
297
274
|
/** like onDbClick (priority onDbClick) */
|
|
298
275
|
onDoubleClick: PropTypes.func,
|
|
299
|
-
|
|
300
276
|
/** content to display on Chip (the same to label) */
|
|
301
277
|
children: PropTypes.node,
|
|
302
|
-
|
|
303
278
|
/** props for Typography of label */
|
|
304
279
|
labelProps: PropTypes.object
|
|
305
280
|
};
|