diginet-core-ui 1.3.87 → 1.3.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/avatar/default.svg +3 -3
- package/assets/images/icons/wifi.svg +3 -3
- package/assets/images/menu/bem/WA3F0100.svg +6 -6
- package/assets/images/menu/bem/WA3F1025.svg +10 -10
- package/assets/images/menu/bem/WA3F2000.svg +10 -10
- package/assets/images/menu/bem/WA3F2020.svg +6 -6
- package/assets/images/menu/bem/WA3F2030.svg +14 -14
- package/assets/images/menu/bem/WA3F2040.svg +8 -8
- package/assets/images/menu/bem/WA3F2100.svg +6 -6
- package/assets/images/menu/dhr/ALL.svg +6 -6
- package/assets/images/menu/dhr/D00.svg +12 -12
- package/assets/images/menu/dhr/D09.svg +8 -8
- package/assets/images/menu/dhr/D13.svg +10 -10
- package/assets/images/menu/dhr/D15.svg +10 -10
- package/assets/images/menu/dhr/D21.svg +10 -10
- package/assets/images/menu/dhr/D25.svg +11 -11
- package/assets/images/menu/dhr/D29.svg +11 -11
- package/assets/images/menu/dhr/D38.svg +6 -6
- package/assets/images/menu/dhr/D39.svg +10 -10
- package/assets/images/menu/dhr/D51.svg +12 -12
- package/assets/images/menu/dhr/D52.svg +16 -16
- package/assets/images/menu/dhr/D77.svg +16 -16
- package/assets/images/menu/dhr/D84.svg +12 -12
- package/assets/images/menu/dhr/D89.svg +8 -8
- package/assets/images/menu/dhr/Default.svg +13 -13
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -14
- package/assets/images/menu/dhr/MHRM00N0002.svg +22 -22
- package/assets/images/menu/dhr/MHRM00N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM00N0004.svg +12 -12
- package/assets/images/menu/dhr/MHRM00N0005.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -3
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -25
- package/assets/images/menu/dhr/MHRM09N0004.svg +14 -14
- package/assets/images/menu/dhr/MHRM09N0005.svg +7 -7
- package/assets/images/menu/dhr/MHRM09N1010.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1015.svg +18 -18
- package/assets/images/menu/dhr/MHRM09N1020.svg +13 -13
- package/assets/images/menu/dhr/MHRM09N1025.svg +12 -12
- package/assets/images/menu/dhr/MHRM09N1030.svg +11 -11
- package/assets/images/menu/dhr/MHRM09N1035.svg +15 -15
- package/assets/images/menu/dhr/MHRM09N1040.svg +8 -8
- package/assets/images/menu/dhr/MHRM09N1400.svg +11 -11
- package/assets/images/menu/dhr/MHRM13N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRM13N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM13N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRM13N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -26
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -30
- package/assets/images/menu/dhr/MHRM29N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0003.svg +17 -17
- package/assets/images/menu/dhr/MHRM29N0004.svg +18 -18
- package/assets/images/menu/dhr/MHRM29N0005.svg +13 -13
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -63
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -43
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -24
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -36
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -23
- package/assets/images/menu/dhr/MHRM39N0017.svg +14 -14
- package/assets/images/menu/dhr/MHRM39N0018.svg +5 -5
- package/assets/images/menu/dhr/MHRM39N0019.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0021.svg +11 -11
- package/assets/images/menu/dhr/MHRM39N0022.svg +18 -18
- package/assets/images/menu/dhr/MHRM39N0023.svg +13 -13
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -28
- package/assets/images/menu/dhr/MHRM82N0001.svg +8 -8
- package/assets/images/menu/dhr/MHRM82N0002.svg +5 -5
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -27
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -24
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -16
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -22
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -19
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -18
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -12
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -17
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -8
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -15
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -16
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -10
- package/assets/images/menu/dhr/MHRP09N0028.svg +6 -6
- package/assets/images/menu/dhr/MHRP09N0029.svg +14 -14
- package/assets/images/menu/dhr/MHRP09N0030.svg +4 -4
- package/assets/images/menu/dhr/MHRP09N0031.svg +5 -5
- package/assets/images/menu/dhr/MHRP09N0032.svg +7 -7
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -12
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP25L0101.svg +15 -15
- package/assets/images/menu/dhr/MHRP25L0501.svg +14 -14
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -16
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -38
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -17
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -18
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -15
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -21
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -20
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -12
- package/assets/images/menu/dhr/MHRP29N0012.svg +7 -7
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -27
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -32
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -54
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -24
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -44
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -17
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -11
- package/assets/images/menu/dhr/MHRP29N0021.svg +8 -8
- package/assets/images/menu/dhr/MHRP29N0022.svg +9 -9
- package/assets/images/menu/dhr/MHRP29N0023.svg +22 -22
- package/assets/images/menu/dhr/MHRP29N0026.svg +13 -13
- package/assets/images/menu/dhr/MHRP29N0027.svg +14 -14
- package/assets/images/menu/dhr/MHRP29N0028.svg +15 -15
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -13
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -14
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -15
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -22
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -16
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -17
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -13
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -3
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0011.svg +7 -7
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -10
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0015.svg +5 -5
- package/assets/images/menu/dhr/MHRP39N0017.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N0018.svg +11 -11
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -12
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -9
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -13
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -21
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -16
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -25
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -3
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -14
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -19
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -28
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -17
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -19
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -20
- package/assets/images/menu/dhr/MHRP89N1000.svg +5 -5
- package/assets/images/menu/dhr/MHRP89N1001.svg +5 -5
- package/assets/images/menu/dhr/TASK.svg +9 -9
- package/assets/images/menu/dhr/W00F0001.svg +3 -3
- package/assets/images/menu/dhr/W00F0002.svg +3 -3
- package/assets/images/menu/dhr/W00F0003.svg +3 -3
- package/assets/images/menu/dhr/W00F0004.svg +3 -3
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W09F2000.svg +4 -4
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -16
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -20
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -18
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -15
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -19
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -13
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -21
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -17
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -14
- package/assets/images/menu/dhr/W77F1011.svg +19 -19
- package/assets/images/menu/dhr/W77F1013.svg +22 -22
- package/assets/images/menu/erp/D05.svg +8 -8
- package/assets/images/menu/erp/D06.svg +4 -4
- package/assets/images/menu/erp/D90R.svg +9 -9
- package/assets/images/menu/erp/DBC.svg +9 -9
- package/assets/images/menu/erp/W00F0001.svg +3 -3
- package/assets/images/menu/erp/W00F0002.svg +3 -3
- package/assets/images/menu/erp/W00F0003.svg +3 -3
- package/assets/images/menu/erp/W00F0004.svg +3 -3
- package/assets/images/menu/erp/W05F0001.svg +16 -16
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -16
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0006N0000.svg +30 -30
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -6
- package/assets/images/menu/erp/W05F0008N0000.svg +14 -14
- package/assets/images/menu/erp/W05F0011N0000.svg +20 -20
- package/assets/images/menu/erp/W05F0013N0000.svg +9 -9
- package/assets/images/menu/erp/W05F4000N0000.svg +9 -9
- package/assets/images/menu/erp/W06F0001.svg +17 -17
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -17
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0005N0000.svg +22 -22
- package/assets/images/menu/erp/W06F0006N0000.svg +55 -55
- package/assets/images/menu/erp/W06F0008N0000.svg +17 -17
- package/assets/images/menu/erp/W94F1000N0000.svg +9 -9
- package/assets/images/menu/erp/W94F1000N0001.svg +9 -9
- package/assets/images/menu/erp/WA3F1025.svg +5 -5
- package/assets/images/menu/erp/WA3F2100.svg +10 -10
- package/assets/storybook/avatar01.svg +9 -9
- package/assets/storybook/cover01.svg +9 -9
- package/components/accordion/details.js +6 -2
- package/components/accordion/group.js +9 -2
- package/components/accordion/index.js +15 -2
- package/components/accordion/summary.js +27 -4
- package/components/alert/index.js +33 -2
- package/components/alert/notify.js +22 -12
- package/components/avatar/index.js +81 -22
- package/components/badge/index.js +45 -20
- package/components/button/icon.js +56 -25
- package/components/button/index.js +65 -16
- package/components/button/more.js +35 -15
- package/components/button/ripple-effect.js +10 -0
- package/components/card/body.js +7 -2
- package/components/card/extra.js +7 -2
- package/components/card/footer.js +7 -2
- package/components/card/header.js +7 -2
- package/components/card/index.js +22 -2
- package/components/chart/Pie/Circle.js +1 -0
- package/components/chart/Pie/Sector.js +19 -2
- package/components/chart/Pie/Sectors.js +10 -0
- package/components/chart/Pie/index.js +36 -4
- package/components/chart/Pie-v2/Circle.js +1 -0
- package/components/chart/Pie-v2/Sector.js +15 -2
- package/components/chart/Pie-v2/Sectors.js +20 -0
- package/components/chart/Pie-v2/index.js +38 -11
- package/components/chart/bar/Axis.js +12 -0
- package/components/chart/bar/Bar.js +35 -13
- package/components/chart/bar/Grid.js +18 -0
- package/components/chart/bar/Labels.js +18 -0
- package/components/chart/bar/Points.js +17 -0
- package/components/chart/bar/index.js +26 -6
- package/components/chart/bar-v2/Axis.js +12 -0
- package/components/chart/bar-v2/Bar.js +36 -15
- package/components/chart/bar-v2/Grid.js +18 -0
- package/components/chart/bar-v2/Labels.js +18 -0
- package/components/chart/bar-v2/Points.js +17 -0
- package/components/chart/bar-v2/index.js +26 -6
- package/components/chart/line/Axis.js +16 -4
- package/components/chart/line/Grid.js +19 -2
- package/components/chart/line/Labels.js +18 -0
- package/components/chart/line/Path.js +33 -23
- package/components/chart/line/Point.js +40 -6
- package/components/chart/line/Title.js +3 -0
- package/components/chart/line/index.js +35 -12
- package/components/chart/line-v2/Axis.js +13 -0
- package/components/chart/line-v2/Grid.js +18 -0
- package/components/chart/line-v2/Labels.js +18 -0
- package/components/chart/line-v2/Path.js +33 -23
- package/components/chart/line-v2/Point.js +35 -6
- package/components/chart/line-v2/Title.js +3 -0
- package/components/chart/line-v2/index.js +30 -12
- package/components/check-text/index.js +8 -0
- package/components/check-text/interview-confirmation.js +7 -0
- package/components/check-text/interview-status.js +7 -0
- package/components/chip/attach.js +22 -9
- package/components/chip/index.js +33 -6
- package/components/collapse/index.js +13 -0
- package/components/divider/index.js +13 -2
- package/components/form-control/attachment/index.js +202 -41
- package/components/form-control/calendar/function.js +207 -153
- package/components/form-control/calendar/index.js +46 -21
- package/components/form-control/calendar/range.js +28 -11
- package/components/form-control/checkbox/index.js +37 -4
- package/components/form-control/control/index.js +13 -3
- package/components/form-control/date-picker/index-old.js +0 -18
- package/components/form-control/date-picker/index.js +99 -23
- package/components/form-control/date-range-picker/index.js +180 -44
- package/components/form-control/dropdown/index.js +314 -101
- package/components/form-control/dropdown-box/index.js +35 -6
- package/components/form-control/form/index.js +2 -0
- package/components/form-control/form-group/index.js +6 -1
- package/components/form-control/helper-text/index.js +9 -2
- package/components/form-control/input-base/index.js +73 -9
- package/components/form-control/label/index.js +12 -2
- package/components/form-control/money-input/index.js +143 -54
- package/components/form-control/number-input/index.js +124 -26
- package/components/form-control/number-input/index2.js +119 -78
- package/components/form-control/phone-input/index.js +85 -23
- package/components/form-control/radio/index.js +28 -9
- package/components/form-control/text-input/index.js +46 -10
- package/components/form-control/time-picker/index.js +71 -14
- package/components/form-control/time-picker/swiper.js +73 -21
- package/components/form-control/toggle/index.js +23 -8
- package/components/form-view/helper-text.js +2 -2
- package/components/form-view/index.js +14 -0
- package/components/form-view/input.js +13 -2
- package/components/form-view/label.js +2 -0
- package/components/grid/Col.js +16 -2
- package/components/grid/Container.js +21 -2
- package/components/grid/Row.js +21 -2
- package/components/grid/index.js +44 -2
- package/components/image/index.js +22 -2
- package/components/index.js +31 -62
- package/components/list/list-item-action.js +9 -0
- package/components/list/list-item-icon.js +9 -0
- package/components/list/list-item-text.js +5 -0
- package/components/list/list-item.js +11 -0
- package/components/list/list.js +13 -0
- package/components/list/sub-header.js +4 -0
- package/components/modal/body.js +6 -2
- package/components/modal/footer.js +11 -2
- package/components/modal/header.js +12 -2
- package/components/modal/index.js +10 -2
- package/components/modal/modal.js +52 -11
- package/components/others/extra/index.js +10 -3
- package/components/others/import/index.js +7 -0
- package/components/others/option-wrapper/index.js +7 -4
- package/components/others/scrollbar/index.js +3 -0
- package/components/paging/page-info.js +99 -35
- package/components/paging/page-selector.js +35 -7
- package/components/paging/page-selector2.js +74 -35
- package/components/paper/index.js +11 -0
- package/components/popover/body.js +6 -2
- package/components/popover/footer.js +11 -2
- package/components/popover/header.js +7 -2
- package/components/popover/index.js +146 -54
- package/components/popup/danger_popup.js +19 -0
- package/components/popup/index.js +48 -2
- package/components/popup/proposals_popup.js +49 -10
- package/components/popup/v2/index.js +47 -13
- package/components/progress/circular.js +48 -10
- package/components/progress/linear.js +20 -4
- package/components/rating/index.js +32 -8
- package/components/slider/slider-container.js +40 -3
- package/components/slider/slider-item.js +25 -10
- package/components/status/index.js +14 -2
- package/components/tab/tab-container.js +18 -4
- package/components/tab/tab-header.js +24 -4
- package/components/tab/tab-panel.js +16 -4
- package/components/tab/tab.js +30 -6
- package/components/tooltip/index.js +97 -12
- package/components/tooltip/portal.js +2 -0
- package/components/transfer/index.js +70 -25
- package/components/tree-view/index.js +202 -62
- package/components/typography/index.js +70 -47
- package/global/index.js +8 -0
- package/icons/basic.js +232 -0
- package/icons/effect.js +32 -15
- package/icons/general/clock/clock.js +2 -0
- package/icons/general/color-handler/background.js +2 -0
- package/icons/general/color-handler/text.js +2 -0
- package/icons/general/emoji/emoji.js +2 -0
- package/icons/general/font-properties/bold.js +2 -0
- package/icons/general/font-properties/font-family.js +2 -0
- package/icons/general/font-properties/font-size.js +2 -0
- package/icons/general/font-properties/italic.js +2 -0
- package/icons/general/font-properties/underline.js +2 -0
- package/icons/general/hyperlink/hyperlink.js +2 -0
- package/icons/general/indent/decrease.js +2 -0
- package/icons/general/indent/increase.js +2 -0
- package/icons/general/list/bullets.js +2 -0
- package/icons/general/list/numbering.js +2 -0
- package/icons/general/picture/picture.js +2 -0
- package/icons/general/steps/redo.js +2 -0
- package/icons/general/steps/undo.js +2 -0
- package/icons/general/text-align/center.js +2 -0
- package/icons/general/text-align/justify.js +2 -0
- package/icons/general/text-align/left.js +2 -0
- package/icons/general/text-align/right.js +2 -0
- package/icons/menu/dhr.js +1 -2
- package/icons/menu/index.js +2 -2
- package/icons/menu/v2/index.js +15 -2
- package/package.json +42 -42
- package/readme.md +1027 -1022
- package/styles/animation.js +58 -15
- package/styles/color-helper.js +157 -127
- package/styles/colors.js +9 -17
- package/styles/general.js +80 -18
- package/styles/typography.js +4 -4
- package/styles/utils.js +20 -19
- package/theme/createBreakpoints.js +18 -7
- package/theme/make-styles.js +5 -2
- package/theme/set-theme.js +9 -6
- package/theme/settings.js +2 -3
- package/theme/theme-provider.js +1 -0
- package/utils/array/array.js +54 -45
- package/utils/{classNames.js → classNames/index.js} +5 -0
- package/utils/console.js +6 -0
- package/utils/date.js +138 -69
- package/utils/error/error.js +11 -3
- package/utils/error/errors.js +147 -100
- package/utils/getFileType.js +9 -0
- package/utils/handleBreakpoints.js +5 -0
- package/utils/intersectionObserver.js +5 -0
- package/utils/{isMobile.js → isMobile/index.js} +0 -0
- package/utils/iterator.js +9 -0
- package/utils/map-parent.js +10 -3
- package/utils/object/extend.js +10 -0
- package/utils/object/object.js +11 -12
- package/utils/parseHTML.js +1 -0
- package/utils/promisify.js +5 -0
- package/utils/randomString.js +7 -0
- package/utils/remove-unicode.js +1 -0
- package/utils/render-portal.js +9 -1
- package/utils/renderHTML.js +6 -4
- package/utils/renderIcon.js +19 -9
- package/utils/sb-template.js +5 -6
- package/utils/string/capitalize.js +1 -0
- package/utils/string/capitalizeSentenceCase.js +2 -0
- package/utils/string/string.js +13 -0
- package/utils/type.js +21 -0
- package/utils/updatePosition.js +5 -4
- package/utils/useDelayUnmount.js +4 -0
- package/utils/useElementSize.js +3 -9
- package/utils/useEventListener.js +6 -12
- package/utils/useInput.js +6 -0
- package/utils/{useMediaQuery.js → useMediaQuery/index.js} +10 -8
- package/utils/useOnClickOutside.js +4 -2
- package/utils/usePortal.js +19 -12
- package/utils/validate.js +53 -39
package/utils/error/errors.js
CHANGED
|
@@ -1,200 +1,247 @@
|
|
|
1
1
|
import errorUtils from "./error";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* @
|
|
5
|
-
* @name ErrorsCore
|
|
2
|
+
/**
|
|
3
|
+
* @docid
|
|
4
|
+
* @name ErrorsCore
|
|
6
5
|
*/
|
|
6
|
+
|
|
7
7
|
export default errorUtils({
|
|
8
|
-
/**
|
|
9
|
-
* @name ErrorsCore.E0001
|
|
8
|
+
/**
|
|
9
|
+
* @name ErrorsCore.E0001
|
|
10
10
|
*/
|
|
11
11
|
E0001: 'Method is not implemented',
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @name ErrorsCore.E0002
|
|
14
15
|
*/
|
|
15
16
|
E0002: 'Member name collision: {0}',
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @name ErrorsCore.E0003
|
|
18
20
|
*/
|
|
19
21
|
E0003: 'A class must be instantiated using the \'new\' keyword',
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @name ErrorsCore.E0004
|
|
22
25
|
*/
|
|
23
26
|
E0004: 'The NAME property of the component is not specified',
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @name ErrorsCore.E0005
|
|
26
30
|
*/
|
|
27
31
|
E0005: 'Unknown device',
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* @name ErrorsCore.E0006
|
|
30
35
|
*/
|
|
31
36
|
E0006: 'Unknown endpoint key is requested',
|
|
32
|
-
|
|
33
|
-
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @name ErrorsCore.E0007
|
|
34
40
|
*/
|
|
35
41
|
E0007: '\'Invalidate\' method is called outside the update transaction',
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @name ErrorsCore.E0008
|
|
38
45
|
*/
|
|
39
46
|
E0008: 'Type of the option name is not appropriate to create an action',
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @name ErrorsCore.E0009
|
|
42
50
|
*/
|
|
43
51
|
E0009: 'Component \'{0}\' has not been initialized for an element',
|
|
44
|
-
|
|
45
|
-
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* @name ErrorsCore.E0010
|
|
46
55
|
*/
|
|
47
56
|
E0010: 'Animation configuration with the \'{0}\' type requires \'{1}\' configuration as {2}',
|
|
48
|
-
|
|
49
|
-
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @name ErrorsCore.E0011
|
|
50
60
|
*/
|
|
51
61
|
E0011: 'Unknown animation type \'{0}\'',
|
|
52
|
-
|
|
53
|
-
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @name ErrorsCore.E0012
|
|
54
65
|
*/
|
|
55
66
|
E0012: 'jQuery version is too old. Please upgrade jQuery to 1.10.0 or later',
|
|
56
|
-
|
|
57
|
-
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @name ErrorsCore.E0013
|
|
58
70
|
*/
|
|
59
71
|
E0013: 'KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later',
|
|
60
|
-
|
|
61
|
-
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @name ErrorsCore.E0014
|
|
62
75
|
*/
|
|
63
76
|
E0014: 'The \'release\' method shouldn\'t be called for an unlocked Lock object',
|
|
64
|
-
|
|
65
|
-
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @name ErrorsCore.E0015
|
|
66
80
|
*/
|
|
67
81
|
E0015: 'Queued task returned an unexpected result',
|
|
68
|
-
|
|
69
|
-
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @name ErrorsCore.E0017
|
|
70
85
|
*/
|
|
71
86
|
E0017: 'Event namespace is not defined',
|
|
72
|
-
|
|
73
|
-
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* @name ErrorsCore.E0018
|
|
74
90
|
*/
|
|
75
91
|
E0018: 'DGN-UI-Popup widget is required',
|
|
76
|
-
|
|
77
|
-
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @name ErrorsCore.E0020
|
|
78
95
|
*/
|
|
79
96
|
E0020: 'Template engine \'{0}\' is not supported',
|
|
80
|
-
|
|
81
|
-
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @name ErrorsCore.E0021
|
|
82
100
|
*/
|
|
83
101
|
E0021: 'Unknown theme is set: {0}',
|
|
84
|
-
|
|
85
|
-
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @name ErrorsCore.E0022
|
|
86
105
|
*/
|
|
87
106
|
E0022: 'LINK[rel=DGN-UI-theme] tags must go before DGN-UI included scripts',
|
|
88
|
-
|
|
89
|
-
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @name ErrorsCore.E0023
|
|
90
110
|
*/
|
|
91
111
|
E0023: 'Template name is not specified',
|
|
92
|
-
|
|
93
|
-
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @name ErrorsCore.E0024
|
|
94
115
|
*/
|
|
95
116
|
E0024: 'DGN-UI bundle already included',
|
|
96
|
-
|
|
97
|
-
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* @name ErrorsCore.E0025
|
|
98
120
|
*/
|
|
99
121
|
E0025: 'Unexpected argument type',
|
|
100
|
-
|
|
101
|
-
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @name ErrorsCore.E0100
|
|
102
125
|
*/
|
|
103
126
|
E0100: 'Unknown validation type is detected',
|
|
104
|
-
|
|
105
|
-
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* @name ErrorsCore.E0101
|
|
106
130
|
*/
|
|
107
131
|
E0101: 'Misconfigured range validation rule is detected',
|
|
108
|
-
|
|
109
|
-
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @name ErrorsCore.E0102
|
|
110
135
|
*/
|
|
111
136
|
E0102: 'Misconfigured comparison validation rule is detected',
|
|
112
|
-
|
|
113
|
-
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* @name ErrorsCore.E0103
|
|
114
140
|
*/
|
|
115
141
|
E0103: 'validationCallback of an asynchronous rule should return a jQuery or a native promise',
|
|
116
|
-
|
|
117
|
-
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @name ErrorsCore.E0110
|
|
118
145
|
*/
|
|
119
146
|
E0110: 'Unknown validation group is detected',
|
|
120
|
-
|
|
121
|
-
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @name ErrorsCore.E0120
|
|
122
150
|
*/
|
|
123
151
|
E0120: 'Adapter for a DGN-UI-Validator component cannot be configured',
|
|
124
|
-
|
|
125
|
-
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* @name ErrorsCore.E0121
|
|
126
155
|
*/
|
|
127
156
|
E0121: 'The \'customItem\' field of the \'onCustomItemCreating\' function\'s parameter should contain a custom item or Promise that is resolved after the item is created.',
|
|
128
|
-
|
|
129
|
-
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @name ErrorsCore.W0000
|
|
130
160
|
*/
|
|
131
161
|
W0000: '\'{0}\' is deprecated in {1}. {2}',
|
|
132
|
-
|
|
133
|
-
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @name ErrorsCore.W0001
|
|
134
165
|
*/
|
|
135
166
|
W0001: '{0} - \'{1}\' option is deprecated in {2}. {3}',
|
|
136
|
-
|
|
137
|
-
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* @name ErrorsCore.W0002
|
|
138
170
|
*/
|
|
139
171
|
W0002: '{0} - \'{1}\' method is deprecated in {2}. {3}',
|
|
140
|
-
|
|
141
|
-
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @name ErrorsCore.W0003
|
|
142
175
|
*/
|
|
143
176
|
W0003: '{0} - \'{1}\' property is deprecated in {2}. {3}',
|
|
144
|
-
|
|
145
|
-
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @name ErrorsCore.W0004
|
|
146
180
|
*/
|
|
147
181
|
W0004: 'Timeout for theme loading is over: {0}',
|
|
148
|
-
|
|
149
|
-
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @name ErrorsCore.W0005
|
|
150
185
|
*/
|
|
151
186
|
W0005: '\'{0}\' event is deprecated in {1}. {2}',
|
|
152
|
-
|
|
153
|
-
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @name ErrorsCore.W0006
|
|
154
190
|
*/
|
|
155
191
|
W0006: 'Invalid recurrence rule: \'{0}\'',
|
|
156
|
-
|
|
157
|
-
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* @name ErrorsCore.W0007
|
|
158
195
|
*/
|
|
159
196
|
W0007: '\'{0}\' Globalize culture is not defined',
|
|
160
|
-
|
|
161
|
-
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @name ErrorsCore.W0008
|
|
162
200
|
*/
|
|
163
201
|
W0008: 'Invalid view name: \'{0}\'',
|
|
164
|
-
|
|
165
|
-
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @name ErrorsCore.W0009
|
|
166
205
|
*/
|
|
167
206
|
W0009: 'Invalid time zone name: \'{0}\'',
|
|
168
|
-
|
|
169
|
-
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @name ErrorsCore.W0010
|
|
170
210
|
*/
|
|
171
211
|
W0010: '{0} is deprecated in {1}. {2}',
|
|
172
|
-
|
|
173
|
-
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* @name ErrorsCore.W0011
|
|
174
215
|
*/
|
|
175
216
|
W0011: 'Number parsing is invoked while the parser is not defined',
|
|
176
|
-
|
|
177
|
-
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @name ErrorsCore.W0012
|
|
178
220
|
*/
|
|
179
221
|
W0012: 'Date parsing is invoked while the parser is not defined',
|
|
180
|
-
|
|
181
|
-
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* @name ErrorsCore.W0013
|
|
182
225
|
*/
|
|
183
226
|
W0013: '\'{0}\' file is deprecated in {1}. {2}',
|
|
184
|
-
|
|
185
|
-
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* @name ErrorsCore.W0014
|
|
186
230
|
*/
|
|
187
231
|
W0014: '{0} - \'{1}\' type is deprecated in {2}. {3}',
|
|
188
|
-
|
|
189
|
-
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @name ErrorsCore.W0015
|
|
190
235
|
*/
|
|
191
236
|
W0015: 'Instead of returning a value from the \'{0}\' function, write it into the \'{1}\' field of the function\'s parameter.',
|
|
192
|
-
|
|
193
|
-
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @name ErrorsCore.W0016
|
|
194
240
|
*/
|
|
195
241
|
W0016: 'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.',
|
|
196
|
-
|
|
197
|
-
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @name ErrorsCore.W0017
|
|
198
245
|
*/
|
|
199
246
|
W0017: 'Filter query string exceeds maximum length limit of {0} characters.'
|
|
200
247
|
});
|
package/utils/getFileType.js
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
const getFileType = (FileExt, defaultValue = 'another', onlyExt = true) => {
|
|
2
2
|
if (!FileExt) return FileExt;
|
|
3
|
+
|
|
3
4
|
if (onlyExt && FileExt.includes('.')) {
|
|
4
5
|
FileExt = FileExt.slice(FileExt.lastIndexOf('.') + 1);
|
|
5
6
|
}
|
|
7
|
+
|
|
6
8
|
switch (true) {
|
|
7
9
|
case /jpg|png|jpeg|gif|bmp|tiff|svg|image/i.test(FileExt):
|
|
8
10
|
return 'image';
|
|
11
|
+
|
|
9
12
|
case /doc|word/i.test(FileExt):
|
|
10
13
|
return 'word';
|
|
14
|
+
|
|
11
15
|
case /xls|sheet/i.test(FileExt):
|
|
12
16
|
return 'sheet';
|
|
17
|
+
|
|
13
18
|
case /ppt|presentation/i.test(FileExt):
|
|
14
19
|
return 'presentation';
|
|
20
|
+
|
|
15
21
|
case /zip|rar|compressed/i.test(FileExt):
|
|
16
22
|
return 'compressed';
|
|
23
|
+
|
|
17
24
|
case /pdf/i.test(FileExt):
|
|
18
25
|
return 'pdf';
|
|
26
|
+
|
|
19
27
|
default:
|
|
20
28
|
return defaultValue;
|
|
21
29
|
}
|
|
22
30
|
};
|
|
31
|
+
|
|
23
32
|
export default getFileType;
|
|
@@ -3,14 +3,17 @@ import theme from "../theme/settings";
|
|
|
3
3
|
const {
|
|
4
4
|
breakpoints: themeBreakpoints
|
|
5
5
|
} = theme;
|
|
6
|
+
|
|
6
7
|
const handleBreakpoints = (propValue, cssFromPropValue) => {
|
|
7
8
|
let output = '';
|
|
9
|
+
|
|
8
10
|
if (Array.isArray(propValue)) {
|
|
9
11
|
propValue.map((_, index) => {
|
|
10
12
|
output = output.concat([themeBreakpoints.up(breakpointKeys[index])]).concat(`{${cssFromPropValue(propValue[index])}} `);
|
|
11
13
|
});
|
|
12
14
|
return output;
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
if (typeof propValue === 'object') {
|
|
15
18
|
Object.keys(propValue).map(item => {
|
|
16
19
|
if (breakpointKeys.includes(item)) {
|
|
@@ -19,7 +22,9 @@ const handleBreakpoints = (propValue, cssFromPropValue) => {
|
|
|
19
22
|
});
|
|
20
23
|
return output;
|
|
21
24
|
}
|
|
25
|
+
|
|
22
26
|
output = cssFromPropValue(propValue);
|
|
23
27
|
return output;
|
|
24
28
|
};
|
|
29
|
+
|
|
25
30
|
export default handleBreakpoints;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { useEffect } from 'react';
|
|
2
2
|
let listenerCallbacks = new WeakMap();
|
|
3
3
|
let observer;
|
|
4
|
+
|
|
4
5
|
const handleIntersections = entries => {
|
|
5
6
|
entries.forEach(entry => {
|
|
6
7
|
if (listenerCallbacks.has(entry.target)) {
|
|
7
8
|
let cb = listenerCallbacks.get(entry.target);
|
|
9
|
+
|
|
8
10
|
if (entry.isIntersecting || entry.intersectionRatio > 0) {
|
|
9
11
|
observer.unobserve(entry.target);
|
|
10
12
|
listenerCallbacks.delete(entry.target);
|
|
@@ -13,6 +15,7 @@ const handleIntersections = entries => {
|
|
|
13
15
|
}
|
|
14
16
|
});
|
|
15
17
|
};
|
|
18
|
+
|
|
16
19
|
const getIntersectionObserver = () => {
|
|
17
20
|
if (observer === undefined) {
|
|
18
21
|
observer = new IntersectionObserver(handleIntersections, {
|
|
@@ -20,8 +23,10 @@ const getIntersectionObserver = () => {
|
|
|
20
23
|
threshold: '0.15'
|
|
21
24
|
});
|
|
22
25
|
}
|
|
26
|
+
|
|
23
27
|
return observer;
|
|
24
28
|
};
|
|
29
|
+
|
|
25
30
|
export const useIntersection = (elem, callback) => {
|
|
26
31
|
useEffect(() => {
|
|
27
32
|
let target = elem.current;
|
|
File without changes
|
package/utils/iterator.js
CHANGED
|
@@ -2,14 +2,19 @@ const map = (values, callback) => {
|
|
|
2
2
|
if (Array.isArray(values)) {
|
|
3
3
|
return values.map(callback);
|
|
4
4
|
}
|
|
5
|
+
|
|
5
6
|
const result = [];
|
|
7
|
+
|
|
6
8
|
for (const key in values) {
|
|
7
9
|
result.push(callback(values[key], key));
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
return result;
|
|
10
13
|
};
|
|
14
|
+
|
|
11
15
|
const each = (values, callback) => {
|
|
12
16
|
if (!values) return;
|
|
17
|
+
|
|
13
18
|
if ('length' in values) {
|
|
14
19
|
for (let i = 0; i < values.length; i++) {
|
|
15
20
|
if (callback.call(values[i], i, values[i]) === false) {
|
|
@@ -23,14 +28,18 @@ const each = (values, callback) => {
|
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
}
|
|
31
|
+
|
|
26
32
|
return values;
|
|
27
33
|
};
|
|
34
|
+
|
|
28
35
|
const reverseEach = (array, callback) => {
|
|
29
36
|
if (!array || !('length' in array) || array.length === 0) return;
|
|
37
|
+
|
|
30
38
|
for (let i = array.length - 1; i >= 0; i--) {
|
|
31
39
|
if (callback.call(array[i], i, array[i]) === false) {
|
|
32
40
|
break;
|
|
33
41
|
}
|
|
34
42
|
}
|
|
35
43
|
};
|
|
44
|
+
|
|
36
45
|
export { map, each, reverseEach };
|
package/utils/map-parent.js
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
const mapParent = (data, id, parentID, sort = false) => {
|
|
2
2
|
// Sort follow level
|
|
3
3
|
let sortedData,
|
|
4
|
-
|
|
4
|
+
remainData = JSON.parse(JSON.stringify(data));
|
|
5
|
+
|
|
5
6
|
if (sort) {
|
|
6
7
|
let temp = [];
|
|
7
8
|
sortedData = remainData.filter(item => {
|
|
8
9
|
if (!item[parentID] || item[parentID] === item[id]) {
|
|
9
10
|
return true;
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
temp.push(item);
|
|
12
14
|
return false;
|
|
13
15
|
});
|
|
14
16
|
let remainLength = 0;
|
|
17
|
+
|
|
15
18
|
while (temp.length && temp.length !== remainLength) {
|
|
16
19
|
remainLength = temp.length;
|
|
17
20
|
remainData = [...temp];
|
|
@@ -28,19 +31,23 @@ const mapParent = (data, id, parentID, sort = false) => {
|
|
|
28
31
|
}
|
|
29
32
|
} else {
|
|
30
33
|
sortedData = remainData;
|
|
31
|
-
}
|
|
34
|
+
} // Mapping follow parent
|
|
35
|
+
|
|
32
36
|
|
|
33
|
-
// Mapping follow parent
|
|
34
37
|
for (let i = sortedData.length - 1; i > -1; i--) {
|
|
35
38
|
const index = sortedData.findIndex(item => item[id] === sortedData[i][parentID]);
|
|
39
|
+
|
|
36
40
|
if (index !== -1 && i !== index) {
|
|
37
41
|
if (!sortedData[index].childItems) {
|
|
38
42
|
sortedData[index].childItems = [];
|
|
39
43
|
}
|
|
44
|
+
|
|
40
45
|
sortedData[index].childItems.unshift(sortedData[i]);
|
|
41
46
|
sortedData.splice(i, 1);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
49
|
+
|
|
44
50
|
return sortedData;
|
|
45
51
|
};
|
|
52
|
+
|
|
46
53
|
export default mapParent;
|
package/utils/object/extend.js
CHANGED
|
@@ -3,45 +3,55 @@ export const extendFromObject = (target = {}, source, overrideExistingValues) =>
|
|
|
3
3
|
for (const prop in source) {
|
|
4
4
|
if (Object.prototype.hasOwnProperty.call(source, prop)) {
|
|
5
5
|
const value = source[prop];
|
|
6
|
+
|
|
6
7
|
if (!(prop in target) || overrideExistingValues) {
|
|
7
8
|
target[prop] = value;
|
|
8
9
|
}
|
|
9
10
|
}
|
|
10
11
|
}
|
|
12
|
+
|
|
11
13
|
return target;
|
|
12
14
|
};
|
|
13
15
|
export const extend = function (target = {}) {
|
|
14
16
|
let i = 1;
|
|
15
17
|
let deep = false;
|
|
18
|
+
|
|
16
19
|
if (typeof target === 'boolean') {
|
|
17
20
|
deep = target;
|
|
18
21
|
target = arguments[1] || {};
|
|
19
22
|
i++;
|
|
20
23
|
}
|
|
24
|
+
|
|
21
25
|
for (; i < arguments.length; i++) {
|
|
22
26
|
const source = arguments[i];
|
|
27
|
+
|
|
23
28
|
if (source == null) {
|
|
24
29
|
continue;
|
|
25
30
|
}
|
|
31
|
+
|
|
26
32
|
for (const key in source) {
|
|
27
33
|
const targetValue = target[key];
|
|
28
34
|
const sourceValue = source[key];
|
|
29
35
|
let sourceValueIsArray = false;
|
|
30
36
|
let clone;
|
|
37
|
+
|
|
31
38
|
if (key === '__proto__' || key === 'constructor' || target === sourceValue) {
|
|
32
39
|
continue;
|
|
33
40
|
}
|
|
41
|
+
|
|
34
42
|
if (deep && sourceValue && (isPlainObject(sourceValue) || (sourceValueIsArray = Array.isArray(sourceValue)))) {
|
|
35
43
|
if (sourceValueIsArray) {
|
|
36
44
|
clone = targetValue && Array.isArray(targetValue) ? targetValue : [];
|
|
37
45
|
} else {
|
|
38
46
|
clone = targetValue && isPlainObject(targetValue) ? targetValue : {};
|
|
39
47
|
}
|
|
48
|
+
|
|
40
49
|
target[key] = extend(deep, clone, sourceValue);
|
|
41
50
|
} else if (sourceValue !== undefined) {
|
|
42
51
|
target[key] = sourceValue;
|
|
43
52
|
}
|
|
44
53
|
}
|
|
45
54
|
}
|
|
55
|
+
|
|
46
56
|
return target;
|
|
47
57
|
};
|
package/utils/object/object.js
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { isNumeric } from "../type";
|
|
2
|
-
// import { isNumeric, isPlainObject, isObject } from './type';
|
|
1
|
+
import { isNumeric } from "../type"; // import { isNumeric, isPlainObject, isObject } from './type';
|
|
3
2
|
// import variableWrapper from './variable_wrapper';
|
|
4
3
|
|
|
5
4
|
const clone = (() => {
|
|
6
5
|
function Clone() {}
|
|
6
|
+
|
|
7
7
|
return obj => {
|
|
8
8
|
Clone.prototype = obj;
|
|
9
9
|
return new Clone();
|
|
10
10
|
};
|
|
11
11
|
})();
|
|
12
|
+
|
|
12
13
|
const orderEach = function (map, func) {
|
|
13
14
|
const keys = [];
|
|
14
15
|
let key;
|
|
15
16
|
let i;
|
|
17
|
+
|
|
16
18
|
for (key in map) {
|
|
17
19
|
if (Object.prototype.hasOwnProperty.call(map, key)) {
|
|
18
20
|
keys.push(key);
|
|
19
21
|
}
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
keys.sort((x, y) => {
|
|
22
25
|
const isNumberX = isNumeric(x);
|
|
23
26
|
const isNumberY = isNumeric(y);
|
|
@@ -28,42 +31,38 @@ const orderEach = function (map, func) {
|
|
|
28
31
|
if (x > y) return 1;
|
|
29
32
|
return 0;
|
|
30
33
|
});
|
|
34
|
+
|
|
31
35
|
for (i = 0; i < keys.length; i++) {
|
|
32
36
|
key = keys[i];
|
|
33
37
|
func(key, map[key]);
|
|
34
38
|
}
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
// const assignValueToProperty = ( target, property, value, assignByReference ) => {
|
|
39
|
+
}; // const assignValueToProperty = ( target, property, value, assignByReference ) => {
|
|
38
40
|
// if (!assignByReference && variableWrapper.isWrapped(target[property])) {
|
|
39
41
|
// variableWrapper.assign(target[property], value);
|
|
40
42
|
// } else {
|
|
41
43
|
// target[property] = value;
|
|
42
44
|
// }
|
|
43
45
|
// };
|
|
44
|
-
|
|
45
46
|
// // B239679, http://bugs.jquery.com/ticket/9477
|
|
46
47
|
// const deepExtendArraySafe = ( target, changes, extendComplexObject, assignByReference ) => {
|
|
47
48
|
// let prevValue;
|
|
48
49
|
// let newValue;
|
|
49
|
-
|
|
50
50
|
// for (const name in changes) {
|
|
51
51
|
// prevValue = target[name];
|
|
52
52
|
// newValue = changes[name];
|
|
53
|
-
|
|
54
53
|
// if ( name === '__proto__' || name === 'constructor' || target === newValue ) { continue; }
|
|
55
|
-
|
|
56
54
|
// if (isPlainObject(newValue)) {
|
|
57
55
|
// const goDeeper = extendComplexObject ? isObject(prevValue) : isPlainObject(prevValue);
|
|
58
56
|
// newValue = deepExtendArraySafe( goDeeper ? prevValue : {}, newValue, extendComplexObject, assignByReference );
|
|
59
57
|
// }
|
|
60
|
-
|
|
61
58
|
// if (newValue !== undefined && prevValue !== newValue) {
|
|
62
59
|
// assignValueToProperty(target, name, newValue, assignByReference);
|
|
63
60
|
// }
|
|
64
61
|
// }
|
|
65
|
-
|
|
66
62
|
// return target;
|
|
67
63
|
// };
|
|
68
64
|
|
|
69
|
-
|
|
65
|
+
|
|
66
|
+
export { clone, orderEach
|
|
67
|
+
/**, deepExtendArraySafe */
|
|
68
|
+
};
|