diginet-core-ui 1.3.24
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 -0
- package/assets/images/menu/dhr/Default.svg +13 -0
- package/assets/images/menu/dhr/MHRM00N0001.svg +14 -0
- package/assets/images/menu/dhr/MHRM09N0001.svg +1 -0
- package/assets/images/menu/dhr/MHRM09N0002.svg +3 -0
- package/assets/images/menu/dhr/MHRM09N0003.svg +25 -0
- package/assets/images/menu/dhr/MHRM25N0001.svg +26 -0
- package/assets/images/menu/dhr/MHRM29N0001.svg +30 -0
- package/assets/images/menu/dhr/MHRM29N0015.svg +63 -0
- package/assets/images/menu/dhr/MHRM39N0012.svg +43 -0
- package/assets/images/menu/dhr/MHRM39N0013.svg +24 -0
- package/assets/images/menu/dhr/MHRM39N0014.svg +14 -0
- package/assets/images/menu/dhr/MHRM39N0015.svg +36 -0
- package/assets/images/menu/dhr/MHRM39N0016.svg +23 -0
- package/assets/images/menu/dhr/MHRM77N0001.svg +28 -0
- package/assets/images/menu/dhr/MHRM84N0001.svg +27 -0
- package/assets/images/menu/dhr/MHRM84N0002.svg +24 -0
- package/assets/images/menu/dhr/MHRM89N0001.svg +16 -0
- package/assets/images/menu/dhr/MHRP00N0001.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0001.svg +22 -0
- package/assets/images/menu/dhr/MHRP09N0002.svg +19 -0
- package/assets/images/menu/dhr/MHRP09N0003.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0004.svg +6 -0
- package/assets/images/menu/dhr/MHRP09N0005.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0006.svg +17 -0
- package/assets/images/menu/dhr/MHRP09N0007.svg +15 -0
- package/assets/images/menu/dhr/MHRP09N0008.svg +8 -0
- package/assets/images/menu/dhr/MHRP09N0009.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0010.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0011.svg +16 -0
- package/assets/images/menu/dhr/MHRP09N0012.svg +6 -0
- package/assets/images/menu/dhr/MHRP09N0013.svg +8 -0
- package/assets/images/menu/dhr/MHRP09N0014.svg +11 -0
- package/assets/images/menu/dhr/MHRP09N0015.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0016.svg +18 -0
- package/assets/images/menu/dhr/MHRP09N0017.svg +18 -0
- package/assets/images/menu/dhr/MHRP09N0018.svg +12 -0
- package/assets/images/menu/dhr/MHRP09N0019.svg +13 -0
- package/assets/images/menu/dhr/MHRP09N0020.svg +17 -0
- package/assets/images/menu/dhr/MHRP09N0021.svg +10 -0
- package/assets/images/menu/dhr/MHRP09N0022.svg +16 -0
- package/assets/images/menu/dhr/MHRP09N0023.svg +8 -0
- package/assets/images/menu/dhr/MHRP09N0024.svg +15 -0
- package/assets/images/menu/dhr/MHRP09N0025.svg +16 -0
- package/assets/images/menu/dhr/MHRP09N0026.svg +13 -0
- package/assets/images/menu/dhr/MHRP09N0027.svg +10 -0
- package/assets/images/menu/dhr/MHRP13N0001.svg +9 -0
- package/assets/images/menu/dhr/MHRP21N0001.svg +12 -0
- package/assets/images/menu/dhr/MHRP21N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP25N0001.svg +13 -0
- package/assets/images/menu/dhr/MHRP25N0002.svg +16 -0
- package/assets/images/menu/dhr/MHRP25N0003.svg +38 -0
- package/assets/images/menu/dhr/MHRP25N0004.svg +17 -0
- package/assets/images/menu/dhr/MHRP25N0005.svg +20 -0
- package/assets/images/menu/dhr/MHRP29N0001.svg +18 -0
- package/assets/images/menu/dhr/MHRP29N0002.svg +15 -0
- package/assets/images/menu/dhr/MHRP29N0003.svg +20 -0
- package/assets/images/menu/dhr/MHRP29N0004.svg +21 -0
- package/assets/images/menu/dhr/MHRP29N0005.svg +21 -0
- package/assets/images/menu/dhr/MHRP29N0006.svg +14 -0
- package/assets/images/menu/dhr/MHRP29N0007.svg +19 -0
- package/assets/images/menu/dhr/MHRP29N0008.svg +20 -0
- package/assets/images/menu/dhr/MHRP29N0009.svg +11 -0
- package/assets/images/menu/dhr/MHRP29N0010.svg +11 -0
- package/assets/images/menu/dhr/MHRP29N0011.svg +12 -0
- package/assets/images/menu/dhr/MHRP29N0013.svg +27 -0
- package/assets/images/menu/dhr/MHRP29N0014.svg +32 -0
- package/assets/images/menu/dhr/MHRP29N0016.svg +54 -0
- package/assets/images/menu/dhr/MHRP29N0017.svg +24 -0
- package/assets/images/menu/dhr/MHRP29N0018.svg +44 -0
- package/assets/images/menu/dhr/MHRP29N0019.svg +17 -0
- package/assets/images/menu/dhr/MHRP29N0020.svg +11 -0
- package/assets/images/menu/dhr/MHRP38N0001.svg +13 -0
- package/assets/images/menu/dhr/MHRP38N0002.svg +14 -0
- package/assets/images/menu/dhr/MHRP39N0001.svg +15 -0
- package/assets/images/menu/dhr/MHRP39N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP39N0003.svg +16 -0
- package/assets/images/menu/dhr/MHRP39N0004.svg +22 -0
- package/assets/images/menu/dhr/MHRP39N0005.svg +16 -0
- package/assets/images/menu/dhr/MHRP39N0006.svg +17 -0
- package/assets/images/menu/dhr/MHRP39N0007.svg +13 -0
- package/assets/images/menu/dhr/MHRP39N0008.svg +3 -0
- package/assets/images/menu/dhr/MHRP39N0009.svg +3 -0
- package/assets/images/menu/dhr/MHRP39N0010.svg +7 -0
- package/assets/images/menu/dhr/MHRP39N0011.svg +14 -0
- package/assets/images/menu/dhr/MHRP39N0013.svg +10 -0
- package/assets/images/menu/dhr/MHRP39N0014.svg +11 -0
- package/assets/images/menu/dhr/MHRP39N1222.svg +12 -0
- package/assets/images/menu/dhr/MHRP51N0001.svg +9 -0
- package/assets/images/menu/dhr/MHRP51N0002.svg +13 -0
- package/assets/images/menu/dhr/MHRP52N0001.svg +21 -0
- package/assets/images/menu/dhr/MHRP52N0002.svg +21 -0
- package/assets/images/menu/dhr/MHRP52N0003.svg +16 -0
- package/assets/images/menu/dhr/MHRP75N0001.svg +19 -0
- package/assets/images/menu/dhr/MHRP75N0002.svg +25 -0
- package/assets/images/menu/dhr/MHRP75N0003.svg +3 -0
- package/assets/images/menu/dhr/MHRP75N0006.svg +14 -0
- package/assets/images/menu/dhr/MHRP75N0007.svg +19 -0
- package/assets/images/menu/dhr/MHRP75N0008.svg +19 -0
- package/assets/images/menu/dhr/MHRP77N0007.svg +28 -0
- package/assets/images/menu/dhr/MHRP77N0008.svg +17 -0
- package/assets/images/menu/dhr/MHRP77N0009.svg +19 -0
- package/assets/images/menu/dhr/MHRP77N0010.svg +20 -0
- package/assets/images/menu/dhr/MHRP89N1000.svg +6 -0
- package/assets/images/menu/dhr/MHRP89N1001.svg +6 -0
- package/assets/images/menu/dhr/W00F0001.svg +3 -0
- package/assets/images/menu/dhr/W00F0002.svg +3 -0
- package/assets/images/menu/dhr/W00F0003.svg +3 -0
- package/assets/images/menu/dhr/W00F0004.svg +3 -0
- package/assets/images/menu/dhr/W00F0005.svg +1 -0
- package/assets/images/menu/dhr/W09F2000-WEB5.svg +17 -0
- package/assets/images/menu/dhr/W09F2000.svg +6 -0
- package/assets/images/menu/dhr/W09F2002-WEB5.svg +21 -0
- package/assets/images/menu/dhr/W09F2005-WEB5.svg +13 -0
- package/assets/images/menu/dhr/W09F2020-WEB5.svg +16 -0
- package/assets/images/menu/dhr/W09F2022-WEB5.svg +20 -0
- package/assets/images/menu/dhr/W09F2150-WEB5.svg +16 -0
- package/assets/images/menu/dhr/W09F2152-WEB5.svg +20 -0
- package/assets/images/menu/dhr/W09F2160-WEB5.svg +14 -0
- package/assets/images/menu/dhr/W09F2162-WEB5.svg +18 -0
- package/assets/images/menu/dhr/W29F4006-WEB5.svg +19 -0
- package/assets/images/menu/dhr/W75F2260-WEB5.svg +15 -0
- package/assets/images/menu/dhr/W75F2261-WEB5.svg +19 -0
- package/assets/images/menu/dhr/W75F3005-WEB5.svg +13 -0
- package/assets/images/menu/dhr/W75F4070-WEB5.svg +21 -0
- package/assets/images/menu/dhr/W75F4071-WEB5.svg +17 -0
- package/assets/images/menu/dhr/W75F4100-WEB5.svg +14 -0
- package/assets/images/menu/dhr/W77F1011.svg +19 -0
- package/assets/images/menu/dhr/W77F1013.svg +22 -0
- package/assets/images/menu/erp/W00F0001.svg +3 -0
- package/assets/images/menu/erp/W00F0002.svg +3 -0
- package/assets/images/menu/erp/W00F0003.svg +3 -0
- package/assets/images/menu/erp/W00F0004.svg +3 -0
- package/assets/images/menu/erp/W05F0001.svg +16 -0
- package/assets/images/menu/erp/W05F0001N0000.svg +16 -0
- package/assets/images/menu/erp/W05F0004N0000.svg +6 -0
- package/assets/images/menu/erp/W05F0006.svg +30 -0
- package/assets/images/menu/erp/W05F0007N0000.svg +6 -0
- package/assets/images/menu/erp/W05F0008.svg +14 -0
- package/assets/images/menu/erp/W05F4000.svg +9 -0
- package/assets/images/menu/erp/W06F0001.svg +17 -0
- package/assets/images/menu/erp/W06F0001N0000.svg +17 -0
- package/assets/images/menu/erp/W06F0004N0000.svg +22 -0
- package/assets/images/menu/erp/W06F0005.svg +22 -0
- package/assets/images/menu/erp/W06F0006.svg +55 -0
- package/assets/images/menu/erp/W06F0008.svg +17 -0
- package/assets/images/menu/erp/WA3F1025.svg +5 -0
- package/assets/images/menu/erp/WA3F2100.svg +10 -0
- package/components/accordion/context.js +6 -0
- package/components/accordion/css.js +159 -0
- package/components/accordion/details.js +60 -0
- package/components/accordion/group.js +122 -0
- package/components/accordion/index.js +117 -0
- package/components/accordion/summary.js +175 -0
- package/components/alert/index.js +264 -0
- package/components/alert/notify.js +192 -0
- package/components/avatar/index.js +556 -0
- package/components/badge/index.js +223 -0
- package/components/button/icon.js +493 -0
- package/components/button/index.js +653 -0
- package/components/button/more.js +135 -0
- package/components/button/ripple-effect.js +85 -0
- package/components/card/body-card.js +67 -0
- package/components/card/card.js +127 -0
- package/components/card/context.js +6 -0
- package/components/card/index.js +50 -0
- package/components/chart/Pie/Circle.js +50 -0
- package/components/chart/Pie/Sector.js +142 -0
- package/components/chart/Pie/Sectors.js +91 -0
- package/components/chart/Pie/index.js +311 -0
- package/components/chart/Pie-v2/Circle.js +50 -0
- package/components/chart/Pie-v2/Sector.js +128 -0
- package/components/chart/Pie-v2/Sectors.js +224 -0
- package/components/chart/Pie-v2/index.js +397 -0
- package/components/chart/bar/Axis.js +79 -0
- package/components/chart/bar/Bar.js +365 -0
- package/components/chart/bar/Grid.js +115 -0
- package/components/chart/bar/Labels.js +175 -0
- package/components/chart/bar/Points.js +111 -0
- package/components/chart/bar/index.js +172 -0
- package/components/chart/bar-v2/Axis.js +79 -0
- package/components/chart/bar-v2/Bar.js +374 -0
- package/components/chart/bar-v2/Grid.js +115 -0
- package/components/chart/bar-v2/Labels.js +175 -0
- package/components/chart/bar-v2/Points.js +111 -0
- package/components/chart/bar-v2/index.js +172 -0
- package/components/chart/line/Axis.js +79 -0
- package/components/chart/line/Grid.js +115 -0
- package/components/chart/line/Labels.js +172 -0
- package/components/chart/line/Path.js +163 -0
- package/components/chart/line/Point.js +348 -0
- package/components/chart/line/Title.js +56 -0
- package/components/chart/line/index.js +174 -0
- package/components/chart/line-v2/Axis.js +79 -0
- package/components/chart/line-v2/Grid.js +115 -0
- package/components/chart/line-v2/Labels.js +172 -0
- package/components/chart/line-v2/Path.js +163 -0
- package/components/chart/line-v2/Point.js +354 -0
- package/components/chart/line-v2/Title.js +56 -0
- package/components/chart/line-v2/index.js +174 -0
- package/components/check-text/index.js +157 -0
- package/components/check-text/interview-confirmation.js +172 -0
- package/components/check-text/interview-status.js +138 -0
- package/components/chip/attach.js +180 -0
- package/components/chip/index.js +340 -0
- package/components/collapse/index.js +67 -0
- package/components/dialogs/colors.js +11 -0
- package/components/divider/index.js +71 -0
- package/components/divider/style.js +12 -0
- package/components/form-control/attachment/index.js +1890 -0
- package/components/form-control/calendar/function.js +673 -0
- package/components/form-control/calendar/index.js +248 -0
- package/components/form-control/calendar/range.js +293 -0
- package/components/form-control/checkbox/index.js +306 -0
- package/components/form-control/control/index.js +92 -0
- package/components/form-control/date-picker/index-old.js +953 -0
- package/components/form-control/date-picker/index.js +676 -0
- package/components/form-control/date-range-picker/index.js +1305 -0
- package/components/form-control/dropdown/index.js +1865 -0
- package/components/form-control/dropdown-box/index.js +292 -0
- package/components/form-control/form/context.js +5 -0
- package/components/form-control/form/index.js +41 -0
- package/components/form-control/form-group/index.js +118 -0
- package/components/form-control/helper-text/index.js +71 -0
- package/components/form-control/input-base/index.js +733 -0
- package/components/form-control/label/index.js +73 -0
- package/components/form-control/money-input/index.js +491 -0
- package/components/form-control/number-input/index.js +633 -0
- package/components/form-control/phone-input/index.js +433 -0
- package/components/form-control/radio/index.js +263 -0
- package/components/form-control/text-input/index.js +523 -0
- package/components/form-control/time-picker/index.js +829 -0
- package/components/form-control/time-picker/swiper.js +590 -0
- package/components/form-control/toggle/index.js +250 -0
- package/components/form-view/helper-text.js +33 -0
- package/components/form-view/index.js +107 -0
- package/components/form-view/input.js +129 -0
- package/components/form-view/label.js +38 -0
- package/components/index.js +100 -0
- package/components/list/list-item-action.js +82 -0
- package/components/list/list-item-icon.js +76 -0
- package/components/list/list-item-text.js +57 -0
- package/components/list/list-item.js +114 -0
- package/components/list/list.js +155 -0
- package/components/list/sub-header.js +61 -0
- package/components/modal/body.js +71 -0
- package/components/modal/context.js +6 -0
- package/components/modal/footer.js +63 -0
- package/components/modal/header.js +108 -0
- package/components/modal/index.js +69 -0
- package/components/modal/modal.js +339 -0
- package/components/others/extra/index.js +124 -0
- package/components/others/scrollbar/index.js +95 -0
- package/components/paging/page-info.js +298 -0
- package/components/paging/page-selector.js +281 -0
- package/components/paper/index.js +119 -0
- package/components/popover/index.js +417 -0
- package/components/popup/danger_popup.js +215 -0
- package/components/popup/index.js +469 -0
- package/components/popup/proposals_popup.js +364 -0
- package/components/popup/v2/danger-popup.js +17 -0
- package/components/popup/v2/index.js +460 -0
- package/components/popup/v2/info-popup.js +17 -0
- package/components/popup/v2/success-popup.js +17 -0
- package/components/popup/v2/warning-popup.js +17 -0
- package/components/popup/v2/yes-no-popup.js +20 -0
- package/components/progress/circular.js +414 -0
- package/components/progress/linear.js +327 -0
- package/components/rating/index.js +392 -0
- package/components/slider/slider-container.js +356 -0
- package/components/slider/slider-item.js +183 -0
- package/components/status/index.js +123 -0
- package/components/tab/context.js +3 -0
- package/components/tab/tab-container.js +83 -0
- package/components/tab/tab-header.js +133 -0
- package/components/tab/tab-panel.js +51 -0
- package/components/tab/tab.js +206 -0
- package/components/tooltip/index.js +602 -0
- package/components/tooltip/portal.js +13 -0
- package/components/transfer/index.js +489 -0
- package/components/tree-view/css.js +94 -0
- package/components/tree-view/index.js +1009 -0
- package/components/typography/index.js +218 -0
- package/css/styles.css +1 -0
- package/css/styles.css.map +1 -0
- package/global/index.js +175 -0
- package/icons/basic.js +6326 -0
- package/icons/effect.js +171 -0
- package/icons/general/clock/clock.js +21 -0
- package/icons/general/color-handler/background.js +41 -0
- package/icons/general/color-handler/text.js +41 -0
- package/icons/general/emoji/emoji.js +35 -0
- package/icons/general/font-properties/bold.js +21 -0
- package/icons/general/font-properties/font-family.js +35 -0
- package/icons/general/font-properties/font-size.js +27 -0
- package/icons/general/font-properties/italic.js +21 -0
- package/icons/general/font-properties/underline.js +31 -0
- package/icons/general/hyperlink/hyperlink.js +38 -0
- package/icons/general/indent/decrease.js +55 -0
- package/icons/general/indent/increase.js +55 -0
- package/icons/general/index.js +21 -0
- package/icons/general/list/bullets.js +77 -0
- package/icons/general/list/numbering.js +71 -0
- package/icons/general/picture/picture.js +21 -0
- package/icons/general/steps/redo.js +21 -0
- package/icons/general/steps/undo.js +21 -0
- package/icons/general/text-align/center.js +21 -0
- package/icons/general/text-align/justify.js +21 -0
- package/icons/general/text-align/left.js +21 -0
- package/icons/general/text-align/right.js +21 -0
- package/icons/index.js +3 -0
- package/icons/menu/dhr.js +2440 -0
- package/icons/menu/erp.js +490 -0
- package/icons/menu/index.js +5 -0
- package/icons/menu/v2/index.js +52 -0
- package/locale/index.js +11 -0
- package/package.json +45 -0
- package/readme.md +517 -0
- package/styles/animation.js +890 -0
- package/styles/color-helper.js +504 -0
- package/styles/colors.js +306 -0
- package/styles/general.js +48 -0
- package/styles/media-queries.js +10 -0
- package/styles/typography.js +122 -0
- package/styles/utils.js +10 -0
- package/theme/index.js +5 -0
- package/theme/make-styles.js +95 -0
- package/theme/set-theme.js +39 -0
- package/theme/settings.js +230 -0
- package/theme/theme-provider.js +68 -0
- package/theme/theme.js +56 -0
- package/theme/with-styles.js +17 -0
- package/theme/with-theme.js +11 -0
- package/utils/array/array.js +186 -0
- package/utils/console.js +34 -0
- package/utils/date.js +471 -0
- package/utils/error/error.js +62 -0
- package/utils/error/errors.js +247 -0
- package/utils/getFileType.js +32 -0
- package/utils/index.js +23 -0
- package/utils/iterator.js +45 -0
- package/utils/map-parent.js +53 -0
- package/utils/number.js +64 -0
- package/utils/object/extend.js +57 -0
- package/utils/object/object.js +68 -0
- package/utils/parseHTML.js +8 -0
- package/utils/promisify.js +38 -0
- package/utils/randomString.js +33 -0
- package/utils/remove-unicode.js +6 -0
- package/utils/render-portal.js +90 -0
- package/utils/renderHTML.js +21 -0
- package/utils/renderIcon.js +57 -0
- package/utils/string/capitalize.js +3 -0
- package/utils/string/capitalizeSentenceCase.js +10 -0
- package/utils/string/string.js +81 -0
- package/utils/type.js +90 -0
- package/utils/updatePosition.js +36 -0
- package/utils/useOnClickOutside.js +23 -0
- package/utils/usePortal.js +56 -0
- package/utils/validate.js +149 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
|
|
3
|
+
/** @jsx jsx */
|
|
4
|
+
import { memo, forwardRef, useRef, useMemo } from 'react';
|
|
5
|
+
import PropTypes from 'prop-types';
|
|
6
|
+
import { jsx } from '@emotion/core';
|
|
7
|
+
const IconMenu = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
8
|
+
type,
|
|
9
|
+
name,
|
|
10
|
+
width,
|
|
11
|
+
height
|
|
12
|
+
}, ref) => {
|
|
13
|
+
if (!ref) {
|
|
14
|
+
ref = useRef(null);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const getResourceImage = fileName => {
|
|
18
|
+
let icon = require('../../../assets/images/menu/dhr/Default.svg');
|
|
19
|
+
|
|
20
|
+
try {
|
|
21
|
+
icon = require('../../../assets/images/menu/' + `${type}/` + fileName);
|
|
22
|
+
} catch (e) {}
|
|
23
|
+
|
|
24
|
+
return icon;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return useMemo(() => jsx("img", {
|
|
28
|
+
src: getResourceImage(name + '.svg'),
|
|
29
|
+
width: width,
|
|
30
|
+
height: height
|
|
31
|
+
}), [type, name, width, height]);
|
|
32
|
+
}));
|
|
33
|
+
IconMenu.defaultProps = {
|
|
34
|
+
name: 'Default',
|
|
35
|
+
type: 'dhr',
|
|
36
|
+
width: '100%',
|
|
37
|
+
height: '100%'
|
|
38
|
+
};
|
|
39
|
+
IconMenu.propTypes = {
|
|
40
|
+
/** Menu type (DHR || ERP) */
|
|
41
|
+
type: PropTypes.oneOf(['dhr', 'erp']),
|
|
42
|
+
|
|
43
|
+
/** name of icon */
|
|
44
|
+
name: PropTypes.string,
|
|
45
|
+
|
|
46
|
+
/** the width of icon */
|
|
47
|
+
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
48
|
+
|
|
49
|
+
/** the height of icon */
|
|
50
|
+
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
51
|
+
};
|
|
52
|
+
export default IconMenu;
|
package/locale/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "diginet-core-ui",
|
|
3
|
+
"version": "1.3.24",
|
|
4
|
+
"description": "The DigiNet core ui",
|
|
5
|
+
"homepage": "https://diginet.com.vn",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"start-js": "react-scripts start --max_old_space_size=4096",
|
|
9
|
+
"start": "npx npm-run-all -p start-js",
|
|
10
|
+
"build": "GENERATE_SOURCEMAP=false && react-scripts build --env=production --max_old_space_size=8192",
|
|
11
|
+
"eject": "react-scripts eject",
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@emotion/core": "^10.0.35",
|
|
16
|
+
"@emotion/styled": "^10.0.27",
|
|
17
|
+
"prop-types": "^15.7.2",
|
|
18
|
+
"react": "^16.12.0",
|
|
19
|
+
"react-dom": "^16.12.0"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://diginetvn@bitbucket.org/diginetvn/diginet-core-ui.git"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"core ui",
|
|
27
|
+
"diginet"
|
|
28
|
+
],
|
|
29
|
+
"author": "rocachien",
|
|
30
|
+
"contributors": [
|
|
31
|
+
{
|
|
32
|
+
"name": "Chien Do",
|
|
33
|
+
"email": "rocachien@gmail.com"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "Nhat Tran",
|
|
37
|
+
"email": "tranminhnhat1005@gmail.com"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "Thuan Nguyen",
|
|
41
|
+
"email": "nt.thuan.hutech@gmail.com"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"license": "MIT"
|
|
45
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
# DigiNet-Core-Ui
|
|
2
|
+
Every adventurer needs a set of tools to take along the way! DigiNet-Core-UI is the toolset that we use to build front end
|
|
3
|
+
apps.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
npm install diginet-core-ui --save
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```js
|
|
14
|
+
import React from 'react';
|
|
15
|
+
import {Button} from "diginet-core-ui/dist/components";
|
|
16
|
+
|
|
17
|
+
function App() {
|
|
18
|
+
return <Button>DigiNet</Button>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
ReactDOM.render(<App />, document.querySelector('#app'));
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Testing and Examples
|
|
25
|
+
Now go to homepage https://core.diginet.com.vn/ui/
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
build source by running:
|
|
29
|
+
```shell
|
|
30
|
+
npm start
|
|
31
|
+
```
|
|
32
|
+
and then going to http://localhost:9050/ in your browser. There'll be buttons for different modals
|
|
33
|
+
|
|
34
|
+
To test run
|
|
35
|
+
|
|
36
|
+
```shell
|
|
37
|
+
npm test
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Changelog
|
|
41
|
+
## 1.3.24
|
|
42
|
+
- \[Add\]: Icon - HourGlass
|
|
43
|
+
- \[Add\]: IconMenu - MHRM84N0002, MHRP39N0014, MHRP09N0024, MHRP09N0025, MHRP09N0026, MHRP09N0027, MHRP29N0019, MHRP29N0020
|
|
44
|
+
- \[Changed\]: Icon - Update file svg History, View, ArrowDoubleDown, ArrowDoubleLeft, ArrowDoubleRight, ArrowDoubleUp, Deny
|
|
45
|
+
- \[Changed\]: FormControl - Add PropTypes 'node' to props 'label' of DatePicker, Dropdown, MoneyInput, NumberInput, TextInput, TimePicker
|
|
46
|
+
- \[Changed\]: Accordion - Add tabIndex -1 to allow focusable (Design require)
|
|
47
|
+
- \[Fixed\]: Accordion - Fix bug 'The pseudo class ":first-child" is potentially unsafe when doing server-side rendering'
|
|
48
|
+
- \[Fixed\]: TreeView - Hotfix UI Accordion in TreeView
|
|
49
|
+
- \[Fixed\]: Tab - Fix demo storybook
|
|
50
|
+
- \[Fixed\]: Tab - Fix 'children' prop-types; allow using both 'label' and 'children' props
|
|
51
|
+
- \[Fixed\]: Button - Update storybook Button, ButtonIcon, ButtonMore
|
|
52
|
+
- \[Fixed\]: DropdownBox - Fix cannot log ref function
|
|
53
|
+
- \[Fixed\]: DropdownBox - Fix bug scroll
|
|
54
|
+
|
|
55
|
+
## 1.3.23
|
|
56
|
+
- \[Changed\]: Tab - Update design
|
|
57
|
+
- \[Changed\]: Theme - Add font-face
|
|
58
|
+
- \[Fixed\]: Tab - Fix perfect pixel, add scrollButtons
|
|
59
|
+
- \[Fixed\]: Avatar - Fix zIndex of Popover lower than Modal, add background-image
|
|
60
|
+
- \[Fixed\]: Popover - Fix zIndex of Popover lower than Modal
|
|
61
|
+
- \[Fixed\]: Dropdown - Fix bug scroll
|
|
62
|
+
- \[Fixed\]: Avatar - Add event when use prop hoverAble on mobile, remove tooltip arrow
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
## 1.3.22
|
|
66
|
+
- \[Fixed\]: Popup - Fix description with content as html.
|
|
67
|
+
- \[Added\]: IconV2 - Thay đổi cơ chê quản lý danh sách Icon.
|
|
68
|
+
|
|
69
|
+
## 1.3.21
|
|
70
|
+
- \[Fixed\]: Fixed a CORE bug that caused an error for projects lower than ios13
|
|
71
|
+
- \[Fixed\]: Label - Fix margin different from design
|
|
72
|
+
- \[Fixed\]: Attachment - Fix bug transition, fix css
|
|
73
|
+
- \[Fixed\]: Icon - Fix not show "Copy Đường Dẫn thành công" when click ERP icon
|
|
74
|
+
- \[Changed\]: Accordion - Redevelop component Accordion
|
|
75
|
+
- \[Changed\]: Attachment - Add prop readOnly
|
|
76
|
+
- \[Changed\]: Tab - Add prop level
|
|
77
|
+
- \[Changed\]: Icon - Update Icon W05F0001, W05F0008, W06F0001
|
|
78
|
+
- \[Added\]: Icon - Add W06F0008, MHRM39N0014, MHRM39N0015, PaperView
|
|
79
|
+
|
|
80
|
+
## 1.3.20
|
|
81
|
+
- \[Fixed\]: Popup - Fix css position causing not showing (IOS)
|
|
82
|
+
|
|
83
|
+
## 1.3.19
|
|
84
|
+
- \[Fixed\]: DatetimePicker - enabled onClick when InputBase readonly
|
|
85
|
+
- \[Fixed\]: DatePicker - Remove min-width 200px, Add Tooltip when width smaller than 200px
|
|
86
|
+
- \[Fixed\]: Modal - Fix bug scroll not working on Firefox
|
|
87
|
+
- \[Fixed\]: Popup - Fix popup on safari IOS (iphone ios 13.x.x trở xuống)
|
|
88
|
+
- \[Fixed\]: Tab - Fix bug flickering when re-render
|
|
89
|
+
|
|
90
|
+
## 1.3.18
|
|
91
|
+
- \[Changed\]:Tab - Phát triển lại component Tab
|
|
92
|
+
- \[Fixed\]: Attachment - Error can not read property "style"
|
|
93
|
+
- \[Changed\]: Popover - Add functions by ref (show, close, setPosition)
|
|
94
|
+
- \[Changed\]: DropdownBox - Fix bug "React does not recognize the "dropdownBoxStyle" prop on a DOM element"
|
|
95
|
+
- \[Changed\]: Input - Update style status Disabled/ReadOnly
|
|
96
|
+
- \[Changed\]: Button - Add staus loading
|
|
97
|
+
- \[Fixed\]: Dropdown - Fix don't receive "disabled" prop once again when to change disabled
|
|
98
|
+
- \[Change\]: Button - Return callback onclick event
|
|
99
|
+
- \[Change\]: Rating - Not change color icon outline with custom props.
|
|
100
|
+
|
|
101
|
+
## 1.3.17
|
|
102
|
+
- \[Added\]: Icon - Add PlaylistAdd, CalendarBlankRounded icons, AddCircle icon.
|
|
103
|
+
|
|
104
|
+
- \[Changed\]: Popup V2 - Fix decription.length
|
|
105
|
+
## 1.3.15
|
|
106
|
+
- \[Added\]: Icon - Add PlaylistAdd, CalendarBlankRounded icons
|
|
107
|
+
|
|
108
|
+
- \[Changed\]: Popup V2 - Add scrollbar, change animation, add type Yes/No
|
|
109
|
+
- \[Changed\]: Popup V2 - Fix pixel perfect, fix word-break
|
|
110
|
+
|
|
111
|
+
- \[Fixed\]: Text - fix word-break
|
|
112
|
+
|
|
113
|
+
- \[Changed\]: Input - return limit for onLoadMore function, Add disabled item.
|
|
114
|
+
- \[Fixed\]: Input - Fix disabled label
|
|
115
|
+
## 1.3.13
|
|
116
|
+
- \[Added\]: Icon - Add Monetization icons
|
|
117
|
+
|
|
118
|
+
- \[Changed\]: Popup - remove DOM after close
|
|
119
|
+
- \[Changed\]: Popup V2 - Add zIndex, Remove required description, Update storybook
|
|
120
|
+
|
|
121
|
+
- \[Fixed\]: Input - DatePicker remove InputValue when value invalid
|
|
122
|
+
- \[Fixed\]: Input - DateRangePicker set input value for more than one in english case
|
|
123
|
+
- \[Fixed\]: Tab - TabContainer fix error eventSlide not running and fix error classList when not tabItem
|
|
124
|
+
- \[Fixed\]: Theme - fix makeStyles with @media
|
|
125
|
+
## 1.3.12
|
|
126
|
+
- \[Added\]: Theme - Additional breakpoints for responsive
|
|
127
|
+
- \[Added\]: system - Color-helper add new func isColor
|
|
128
|
+
- \[Added\]: Tab - slide effect for TabPanel
|
|
129
|
+
|
|
130
|
+
- \[Changed\]: Attachment - handle sort with data, and use as an option
|
|
131
|
+
- \[Changed\]: DateRangePicker - change style of text for mobile device
|
|
132
|
+
- \[Changed\]: Chart - PieChart animation text, tooltip
|
|
133
|
+
- \[Changed\]: Popup - allow custom confirm/cancel button
|
|
134
|
+
|
|
135
|
+
- \[Fixed\]: Chart - PieChart custom position show label Depends on the length of the text
|
|
136
|
+
- \[Fixed\]: DateRangePicker fix bug 3 buttons visible at the same time, fix bug change locale not change weekdays, remove input value if defaultValue invalid
|
|
137
|
+
- \[Fixed\]: Dropdown - prevent break line when press Enter, conflict value attribute of input and div tag
|
|
138
|
+
- \[Fixed\]: Modal - set null for overflow of body after close Modal
|
|
139
|
+
- \[Fixed\]: Number/MoneyInput - format number was wrong
|
|
140
|
+
- \[Fixed\]: MoneyInput - fix default value with thousandSeparator, Fix onKeyDown can't add when focus before useEffect
|
|
141
|
+
- \[Fixed\]: system - makeStyles fix lost content of pseudo
|
|
142
|
+
|
|
143
|
+
## 1.3.11
|
|
144
|
+
- \[Added\]: Attachment - sort handler
|
|
145
|
+
- \[Added\]: DatePicker - clear value by icon with clearAble prop
|
|
146
|
+
- \[Added\]: DateRangePicker - add DateRangePicker version 2
|
|
147
|
+
- \[Added\]: Popup - add Popup version 2
|
|
148
|
+
- \[Added\]: system - setGlobal method
|
|
149
|
+
|
|
150
|
+
- \[Changed\]: Dropdown - close on scroll
|
|
151
|
+
- \[Changed\]: Chart - create tooltip ver-2, PieChart change animation of tooltip
|
|
152
|
+
- \[Changed\]: Checkbox - allow handle by ref
|
|
153
|
+
- \[Changed\]: Tab - tabItem change distance between button and icon
|
|
154
|
+
- \[Changed\]: TreeView - disabledRelevantValue still checked/unchecked parent item, allow show children of last result was matched
|
|
155
|
+
|
|
156
|
+
- \[Fixed\]: Modal - flexible footer height, set value into input after blur, add load more handler when data.length < total
|
|
157
|
+
- \[Fixed\]: Toggle - set necessary style
|
|
158
|
+
|
|
159
|
+
## 1.3.10
|
|
160
|
+
- \[Added\]: Attachment - Ctrl + A to select all item
|
|
161
|
+
- \[Added\]: Theme - add makeStyles utils
|
|
162
|
+
|
|
163
|
+
- \[Changed\]: Button - cursor no-drop for disabled button
|
|
164
|
+
- \[Changed\]: Chart - change id tooltip and custom position show tooltip
|
|
165
|
+
- \[Changed\]: Status - change default color to secondary
|
|
166
|
+
|
|
167
|
+
- \[Fixed\]: Attachment - z-index too high, fix click out side of item
|
|
168
|
+
- \[Fixed\]: Calendar - text-align not center
|
|
169
|
+
- \[Fixed\]: Chart - LineChart change size of path and point when change width
|
|
170
|
+
- \[Fixed\]: Chip - fix color for outlined type
|
|
171
|
+
- \[Fixed\]: DatePicker - fix min-width of picker
|
|
172
|
+
- \[Fixed\]: InputBase - fix disabled for multiline
|
|
173
|
+
- \[Fixed\]: LinearProgress - miss value in small-width case
|
|
174
|
+
- \[Fixed\]: NumberInput - fix format is a function and change format but not change decimal digit, handle value when change format, handle min/max in onchange
|
|
175
|
+
|
|
176
|
+
## 1.3.9
|
|
177
|
+
- \[Added\]: Attachment - add clear all handler
|
|
178
|
+
- \[Added\]: Chart - add tooltip
|
|
179
|
+
- \[Added\]: Dropdown - clearAble for multiple type
|
|
180
|
+
- \[Added\]: InputBase - add rows/maxRows props for multiline
|
|
181
|
+
- \[Added\]: LineChart - smooth line
|
|
182
|
+
- \[Added\]: NumberInput - add new NumberInput component
|
|
183
|
+
- \[Added\]: system - validation for input
|
|
184
|
+
- \[Added\]: Typography - Add 4 types for title
|
|
185
|
+
|
|
186
|
+
- \[Changed\]: Collapse - only hidden for overflow-y
|
|
187
|
+
- \[Changed\]: Dropdown - additional keyExpr to display text of selected value, keeping search value if search with onInput
|
|
188
|
+
- \[Changed\]: FormGroup - handler error with oneHelperText for all Input
|
|
189
|
+
- \[Changed\]: Slider - Add onShowNavigation to show/hide the navigation-bottom bar, Hover to show Arrow button, enable active prop
|
|
190
|
+
|
|
191
|
+
- \[Fixed\]: DatePicker - use min/max but not disabled invalid date
|
|
192
|
+
- \[Fixed\]: Dropdown - don't set onClear when onChange method changed, lost some item when search, prevent scroll body, show placeholder for div contenteditable, show search input when using children, remove load more after search
|
|
193
|
+
- \[Fixed\]: DropdownBox - use createPortal to render, remove max-height
|
|
194
|
+
- \[Fixed\]: Modal - existing dark background when darkTheme is false, can't focus into input in Modal
|
|
195
|
+
- \[Fixed\]: MoneyInput - check and return value with decimal digit
|
|
196
|
+
- \[Fixed\]: Popup - prevent scroll body, render at portal
|
|
197
|
+
- \[Fixed\]: Progress - LinearProgress fix miss value in small-width case
|
|
198
|
+
- \[Fixed\]: Tab - keep other Tab when using multiple TabContainer
|
|
199
|
+
|
|
200
|
+
## 1.3.8
|
|
201
|
+
- \[Fixed\]: Input - only show error when non-value
|
|
202
|
+
- \[Fixed\]: Dropdown - scroll to top on load more
|
|
203
|
+
- \[Fixed\]: Rating - allow custom width/height, color when disabled, readOnly case
|
|
204
|
+
|
|
205
|
+
## 1.3.7
|
|
206
|
+
- \[Added\]: Accordion - add AccordionGroup component
|
|
207
|
+
- \[Added\]: DatePicker - add returnFormat, two button to control onChange method
|
|
208
|
+
- \[Added\]: Dropdown - add DropdownBox component
|
|
209
|
+
|
|
210
|
+
- \[Changed\]: Typography - h2: font-size: 18px, remove uppercase is the default case
|
|
211
|
+
|
|
212
|
+
- \[Fixed\]: Checkbox - readOnly case
|
|
213
|
+
- \[Fixed\]: DatePicker - onChange method reset the initial value, allows to set icon and text positions
|
|
214
|
+
- \[Fixed\]: Dropdown - overflow of content when the text was too long, reassign the current value after deleting the content and click outside with a value of 0
|
|
215
|
+
- \[Fixed\]: MoneyInput - press Tab, allow enter 0
|
|
216
|
+
- \[Fixed\]: Tab - allows to display any tab
|
|
217
|
+
|
|
218
|
+
## 1.3.6
|
|
219
|
+
- \[Added\]: Chart - add LineChart component
|
|
220
|
+
- \[Added\]: Chip - additional maxLength prop to display shorten content
|
|
221
|
+
- \[Added\]: FormGroup - add new FormGroup component
|
|
222
|
+
- \[Added\]: Icon - additional some necessary icons
|
|
223
|
+
- \[Added\]: TreeView - disabled relevant value
|
|
224
|
+
|
|
225
|
+
- \[Changed\]: Accordion - change expand icon deg (down/up)
|
|
226
|
+
- \[Changed\]: Button - change hover/focus and active styles with filter, default color is #7F828E, switch linked to text
|
|
227
|
+
- \[Changed\]: Dropdown - padding top/bottom is 8px
|
|
228
|
+
- \[Changed\]: Checkbox - update disabled and tick symbol styles
|
|
229
|
+
- \[Changed\]: Modal - box-shadow for footer
|
|
230
|
+
- \[Changed\]: Popover - remove after close prop (keep Popover element)
|
|
231
|
+
- \[Changed\]: Progress - LinearProgress determinate add value position (top/bottom)
|
|
232
|
+
- \[Changed\]: TextInput - auto increase margin bottom if error to long
|
|
233
|
+
|
|
234
|
+
- \[Fixed\]: Dropdown - allowSearch TreeView mode, only set value into input when non-value prop
|
|
235
|
+
- \[Fixed\]: Chip - fix remove item in setTimeout function
|
|
236
|
+
- \[Fixed\]: Icon - allow use color from theme
|
|
237
|
+
## 1.3.5
|
|
238
|
+
- \[Added\]: Calendar add actions properties
|
|
239
|
+
- \[Added\]: InputBase - add resetValue + setPreviousValue method
|
|
240
|
+
- \[Added\]: TreeView - multiple inheritance (checked parent/children -> checked children/parent, unchecked parent -> unchecked children, unchecked children -> don't unchecked parent). Show selected value
|
|
241
|
+
|
|
242
|
+
- \[Changed\]: Alert - use ref to add Alert
|
|
243
|
+
|
|
244
|
+
- \[Fixed\]: Dropdown - fix set readOnly for input
|
|
245
|
+
- \[Fixed\]: InputBase - fix padding for multiline
|
|
246
|
+
- \[Fixed\]: Popup - remove padding button confirm
|
|
247
|
+
- \[Fixed\]: TextInput - fix transport type into InputBase
|
|
248
|
+
- \[Fixed\]: Tooltip - apply tooltipMaxWidth
|
|
249
|
+
- \[Fixed\]: Typography - fix fullWidth style
|
|
250
|
+
|
|
251
|
+
## 1.3.4
|
|
252
|
+
- \[Added\]: Dropdown - additional subtext
|
|
253
|
+
- \[Added\]: TreeView - handleCheckbox in ref.current, render child items async, search handler
|
|
254
|
+
|
|
255
|
+
- \[Changed\]: InputBase - absolute HelperText component
|
|
256
|
+
- \[Changed\]: TextInput - apply InputBase
|
|
257
|
+
|
|
258
|
+
- \[Fixed\]: Accordion - fix padding with icon at start
|
|
259
|
+
- \[Fixed\]: Avatar - render PopupView when non-disabled and non-readOnly
|
|
260
|
+
- \[Fixed\]: Button - fix width/height of icon when use name prop
|
|
261
|
+
- \[Fixed\]: Chip - non-fixed height
|
|
262
|
+
- \[Fixed\]: Dropdown - flexible when renderSelectedItem
|
|
263
|
+
- \[Fixed\]: Status - add className when render
|
|
264
|
+
|
|
265
|
+
## 1.3.3
|
|
266
|
+
- \[Added\]: Calendar - handleCheckboxCalendar - add footer control
|
|
267
|
+
- \[Added\]: TreeView - value mode when multiple type (single or checked all parent and children)
|
|
268
|
+
|
|
269
|
+
- \[Changed\]: Accordion - icon expand default at start
|
|
270
|
+
- \[Changed\]: Button - update color for status of events of mouse
|
|
271
|
+
- \[Changed\]: Dropdown - Render value with icon when exist iconExpr prop
|
|
272
|
+
|
|
273
|
+
- \[Fixed\]: Accordion - check click on icon in Summary content
|
|
274
|
+
- \[Fixed\]: Checkbox - fix color when disabled
|
|
275
|
+
- \[Fixed\]: Dropdown - fix set value into input when value is empty or null, prevent set value input when searching
|
|
276
|
+
- \[Fixed\]: Modal - fix padding close icon
|
|
277
|
+
- \[Fixed\]: MoneyInput - prevent decimal symbol if decimal digit is 0, fix onChange when value is empty
|
|
278
|
+
- \[Fixed\]: Tooltip - don't create tooltip when title empty
|
|
279
|
+
|
|
280
|
+
## 1.3.2
|
|
281
|
+
- \[Added\]: PhoneInput - new PhoneInput component
|
|
282
|
+
- \[Added\]: Chart - new BarChart component
|
|
283
|
+
- \[Added\]: Dropdown - default object contains value for load more option
|
|
284
|
+
|
|
285
|
+
- \[Changed\]: Attachment - run onChange in remove file handler
|
|
286
|
+
- \[Changed\]: Calendar - allow custom text-align and position of icon
|
|
287
|
+
- \[Changed\]: MoneyInput - additional start/end icon
|
|
288
|
+
|
|
289
|
+
- \[Fixed\]: InputBase - backgroundColor when disabled
|
|
290
|
+
- \[Fixed\]: MoneyInput - fix decimalDigit for non-thousandSeparator, update value follow decimalDigit
|
|
291
|
+
|
|
292
|
+
## 1.3.1
|
|
293
|
+
- \[Added\]: Accordion - collapseIcon
|
|
294
|
+
- \[Added\]: Calendar - min, max validate
|
|
295
|
+
- \[Added\]: TreeView - select all option
|
|
296
|
+
|
|
297
|
+
- \[Changed\]: Button - hover color, use textTransform from theme
|
|
298
|
+
- \[Changed\]: Dropdown - render item by children, useImperativeHandle show/close handler
|
|
299
|
+
- \[Changed\]: Input - error default if type of error is boolean
|
|
300
|
+
- \[Changed\]: Progress - Circular progess change min width from 24 to 16
|
|
301
|
+
- \[Changed\]: TreeView - expand by data with expand field
|
|
302
|
+
|
|
303
|
+
- \[Fixed\]: Alert - fix remove timing without processing
|
|
304
|
+
- \[Fixed\]: Avatar - onerror in image
|
|
305
|
+
- \[Fixed\]: Collapse - height auto after expanded
|
|
306
|
+
- \[Fixed\]: Dropdown - search by displayExpr, return empty if valueExpr wrong, normalize text before compare
|
|
307
|
+
- \[Fixed\]: MoneyInput - onPaste handler
|
|
308
|
+
|
|
309
|
+
## 1.3.0
|
|
310
|
+
- \[Added\]: Accordion - add new component
|
|
311
|
+
- \[Added\]: Card - add new component
|
|
312
|
+
- \[Added\]: Calendar - add new component
|
|
313
|
+
- \[Added\]: Chart - add new component
|
|
314
|
+
- \[Added\]: Collapse - add new component
|
|
315
|
+
- \[Added\]: Dropdown - TreeView
|
|
316
|
+
- \[Added\]: HelperText - add new component
|
|
317
|
+
- \[Added\]: Icon - click on icon to copy the import text for that icon
|
|
318
|
+
- \[Added\]: InputBase - add new component
|
|
319
|
+
- \[Added\]: Label - add new component
|
|
320
|
+
- \[Added\]: MoneyInput - add new component
|
|
321
|
+
- \[Added\]: Paper - add new component
|
|
322
|
+
- \[Added\]: system - mapParent util
|
|
323
|
+
- \[Added\]: TreeList - add new component
|
|
324
|
+
- \[Added\]: Tab - add new component
|
|
325
|
+
- \[Added\]: Transfer - add new component
|
|
326
|
+
|
|
327
|
+
- \[Changed\]: Avatar - direction to display more info, additional matchType prop to check type of file
|
|
328
|
+
- \[Changed\]: List - apply Collapse
|
|
329
|
+
- \[Changed\]: Paging - fullWidth, bgColor properties
|
|
330
|
+
- \[Changed\]: Progress - change labelColor to percentColor
|
|
331
|
+
- \[Changed\]: TextInput - use icon at head of Input
|
|
332
|
+
- \[Changed\]: Typography - fullWidth property
|
|
333
|
+
|
|
334
|
+
- \[Fixed\]: Dropdown - render html with renderSelectedItem, Dropdown - increase height of content in input, clear input value with renderSelectedItem
|
|
335
|
+
- \[Fixed\]: Progress - CircularProgress's width, height, and thickness customization is allowed
|
|
336
|
+
- \[Fixed\]: Tooltip - fix remove tooltip on another event processing
|
|
337
|
+
|
|
338
|
+
## 1.2.13
|
|
339
|
+
- \[Fixed\]: Tooltip - remove timeout for create Tooltip
|
|
340
|
+
|
|
341
|
+
## 1.2.12
|
|
342
|
+
- \[Added\]: Rating - selector to choose value from number
|
|
343
|
+
- \[Added\]: Chip - view attach in Modal
|
|
344
|
+
- \[Added\]: DateRangePicker - new component DateRangePicker
|
|
345
|
+
|
|
346
|
+
- \[Changed\]: Popup - default autofocusOKButton is true
|
|
347
|
+
- \[Changed\]: Modal - autoFocus Modal by props, size 24px for close icon
|
|
348
|
+
- \[Changed\]: Tooltip - remove arrow
|
|
349
|
+
- \[Changed\]: Typography - remove text prop, use children to display text or jsx element
|
|
350
|
+
|
|
351
|
+
- \[Fixed\]: Dropdown - don't change data in dropdown when dataSource changed, check ref at click out of dropdown function
|
|
352
|
+
- \[Fixed\]: Popup - center text relative to icon when there is only one line of text
|
|
353
|
+
- \[Fixed\]: Status - set background is transparent
|
|
354
|
+
- \[Fixed\]: Typography - check children prop is an array of react elements
|
|
355
|
+
|
|
356
|
+
## 1.2.11
|
|
357
|
+
- \[Added\]: system - date/time format utils (format, diff, relative, add/subtract)
|
|
358
|
+
- \[Added\]: Alert - secondary text
|
|
359
|
+
- \[Added\]: Badge - small size
|
|
360
|
+
- \[Added\]: Button - Circular button icon, More
|
|
361
|
+
- \[Added\]: Paging - small size
|
|
362
|
+
- \[Added\]: Rating - new component Rating
|
|
363
|
+
- \[Added\]: Status - small size and filled view type with standard color
|
|
364
|
+
- \[Added\]: Tooltip - small size
|
|
365
|
+
|
|
366
|
+
- \[Changed\]: Attachment - Change Attachment icon
|
|
367
|
+
- \[Changed\]: Popup - Proposal Popup with outlined Button
|
|
368
|
+
- \[Changed\]: Typography - apply text-font from cdn, apply new types
|
|
369
|
+
|
|
370
|
+
- \[Fixed\]: Dropdown - manipulate continuously to show/close dropdown, search item for 2nd opening, run onChange function after check selected item
|
|
371
|
+
- \[Fixed\]: Popover - can't close when opening without fullScreen
|
|
372
|
+
- \[Fixed\]: Popup - fix size and set position for icon
|
|
373
|
+
|
|
374
|
+
## 1.2.10
|
|
375
|
+
- \[Added\]: new FormLabel component
|
|
376
|
+
- \[Added\]: system - date/time format
|
|
377
|
+
|
|
378
|
+
- \[Changed\]: Alert - deny duration remove alert element
|
|
379
|
+
- \[Changed\]: Chip - switch type to viewType
|
|
380
|
+
- \[Changed\]: Dropdown - LoadMore, renderItem, renderSelectedItem function props, displayExpr with new pattern (contain { or } for multiple fields)
|
|
381
|
+
- \[Changed\]: Tooltip - set direction down is priority
|
|
382
|
+
|
|
383
|
+
- \[Fixed\]: Dropdown - check currentValue not undefined, search handler, update position after search
|
|
384
|
+
- \[Fixed\]: TextInput - fix auto resize and fixed position textarea
|
|
385
|
+
|
|
386
|
+
## 1.2.9
|
|
387
|
+
- \[Added\]: system - getGlobal function
|
|
388
|
+
- \[Added\]: Avatar - Avatar outline
|
|
389
|
+
|
|
390
|
+
- \[Changed\]: Button - additional 2 size tiny and giant
|
|
391
|
+
- \[Changed\]: Checkbox - additional colors
|
|
392
|
+
- \[Changed\]: Typography - use font SF Pro Display
|
|
393
|
+
|
|
394
|
+
- \[Fixed\]: Attachment - drag file in icon add
|
|
395
|
+
- \[Fixed\]: Badge - resize
|
|
396
|
+
- \[Fixed\]: Time Picker - Update position
|
|
397
|
+
|
|
398
|
+
## 1.2.8
|
|
399
|
+
- \[Added\]: system - locale and global variable
|
|
400
|
+
- \[Added\]: Avatar - show more info in avatar
|
|
401
|
+
- \[Added\]: Dropdown - selectBox
|
|
402
|
+
|
|
403
|
+
- \[Changed\]: Modal - moveable and remove box-shadow of footer
|
|
404
|
+
- \[Changed\]: re-write Text component -> Typography component
|
|
405
|
+
- \[Changed\]: Alert - switch variant to color
|
|
406
|
+
- \[Changed\]: Button - switch variant to color, type to viewType
|
|
407
|
+
- \[Changed\]: Chip - switch variant to color
|
|
408
|
+
- \[Changed\]: FormControl - switch variant to viewType, box -> filled, line -> underlined
|
|
409
|
+
- \[Changed\]: Icon - separate icons with components (diginet-core-ui/icons)
|
|
410
|
+
- \[Changed\]: List - non-click list item if click on action
|
|
411
|
+
|
|
412
|
+
- \[Fixed\]: Paging - Allow press Delete and Backspace to delete current page, check current page with new page was entered
|
|
413
|
+
- \[Fixed\]: TextInput - auto increase height of textarea after set value, set right height when text only one line
|
|
414
|
+
|
|
415
|
+
## 1.2.7
|
|
416
|
+
- \[Added\]: Icon - add generate and un-view icons
|
|
417
|
+
- \[Added\]: TextInput - add number, password and search type
|
|
418
|
+
-
|
|
419
|
+
- \[Changed\]: Alert - delay duration of processing
|
|
420
|
+
- \[Changed\]: Attachment - additional URL for newAttached
|
|
421
|
+
- \[Changed\]: ButtonIcon - allow use icons list
|
|
422
|
+
- \[Changed\]: DatePicker - add required label
|
|
423
|
+
- \[Changed\]: Dropdown - default variant is line, allow hidden clear icon, color red for required label
|
|
424
|
+
- \[Changed\]: Modal - allow/non-allow dark background
|
|
425
|
+
- \[Changed\]: TextInput - default variant is line, color red for required label
|
|
426
|
+
-
|
|
427
|
+
- \[Fixed\]: Attachment - handle show/close popup, remove files of input when data change
|
|
428
|
+
- \[Fixed\]: Avatar - object-fit cover for preview image
|
|
429
|
+
- \[Fixed\]: Button - color of button icon link, update size of button icon
|
|
430
|
+
- \[Fixed\]: DatePicker - update position of DatePickerBox and label
|
|
431
|
+
- \[Fixed\]: Dropdown - move global variable to local variable, check value/defaultValue are text/number/array
|
|
432
|
+
- \[Fixed\]: Paging - only allow press Number or Array key
|
|
433
|
+
|
|
434
|
+
## 1.2.6
|
|
435
|
+
- \[Added\]: Add new Avatar component
|
|
436
|
+
- \[Added\]: Add new Slider component
|
|
437
|
+
- \[Added\]: Add new Popover component
|
|
438
|
+
- \[Added\]: Add new Badge component
|
|
439
|
+
- \[Added\]: Add new Divider component
|
|
440
|
+
- \[Added\]: Add new List component
|
|
441
|
+
|
|
442
|
+
- \[Changed\]: Button - Re-write Button component
|
|
443
|
+
- \[Changed\]: Dropdown - Re-write Dropdown component
|
|
444
|
+
|
|
445
|
+
- \[Fixed\]: Attachment - Fix box-sizing and align center for icon and name at icon view type, fix line-height for detail info of attach
|
|
446
|
+
- \[Fixed\]: Popup - Close icon not appear (Proposals popup)
|
|
447
|
+
- \[Fixed\]: Paging - Fix page 2 and immediately before last page (page selector), Fix enter num 0 in the page info
|
|
448
|
+
- \[Fixed\]: Modal - Render portal
|
|
449
|
+
- \[Fixed\]: DatePicker - Position fixed
|
|
450
|
+
- \[Fixed\]: Option - use checked and defaultChecked for CheckBox, Radio, Toggle
|
|
451
|
+
|
|
452
|
+
## 1.2.5
|
|
453
|
+
- \[Added\]: Add new Modal component
|
|
454
|
+
- \[Added\]: Add new Chip/AttachChip component
|
|
455
|
+
|
|
456
|
+
- \[Changed\]: Popup - Get show/close popup function, allow autofocus OK button, use callback on show popup (click confirm button)
|
|
457
|
+
- \[Changed\]: Attachment - Apply get popup show/close function
|
|
458
|
+
- \[Changed\]: Icon - Re-write Icon component
|
|
459
|
+
|
|
460
|
+
- \[Fixed\]: Input - Fix css Time and Date Picker, fix css Date Picker
|
|
461
|
+
- \[Fixed\]: Attachment - Fix icon and event handlers
|
|
462
|
+
|
|
463
|
+
## 1.2.4
|
|
464
|
+
- \[Added\]: Add new Popup component
|
|
465
|
+
- \[Added\]: Add new ButtonIcon component
|
|
466
|
+
|
|
467
|
+
- \[Changed\]: Time Picker - Update Time Picker component follow new design (use scroll or drag mouse event)
|
|
468
|
+
- \[Changed\]: Attachment - Show warning popup before delete attachment and autofocus OK button
|
|
469
|
+
|
|
470
|
+
- \[Fixed\]: Babel-loader build failed with Optional chaining syntax
|
|
471
|
+
- \[Fixed\]: Progress - Set default size
|
|
472
|
+
- \[Fixed\]: Attachment - Fix Position detail info, Color for icons handle chosen items, press Delete to remove item and press Arrow key to select near item
|
|
473
|
+
- \[Fixed\]: Paging - Fix update current page and reset onchange method for selector element when update totalItems
|
|
474
|
+
- \[Fixed\]: TextInput - Fix margin between label and input for line type
|
|
475
|
+
|
|
476
|
+
## 1.2.3
|
|
477
|
+
- \[Changed\]: Add size for Alert component
|
|
478
|
+
- \[Changed\]: Transport message from notification to Alert component
|
|
479
|
+
- \[Changed\]: Allow custom width/height for Alert component
|
|
480
|
+
- \[Changed\]: Allow custom height of Scrollbar
|
|
481
|
+
|
|
482
|
+
- \[Fixed\]: Clear icon size
|
|
483
|
+
- \[Fixed\]: Convert to simple page with more paging only contain one item
|
|
484
|
+
|
|
485
|
+
## 1.2.2
|
|
486
|
+
- \[Added\]: Add new Alert component
|
|
487
|
+
- \[Added\]: Add new Notify component
|
|
488
|
+
|
|
489
|
+
- \[Changed\]: Attachment - Add status icon for new file + separate detail information (username + date time + file size)
|
|
490
|
+
- \[Changed\]: DatePicker - CSS + Remove function auto update value for the input when switch month or year
|
|
491
|
+
## 1.2.1
|
|
492
|
+
- \[Added\]: Time Picker component
|
|
493
|
+
- \[Added\]: Dropdown component
|
|
494
|
+
|
|
495
|
+
- \[Fixed\]: Others/Scrollbar - maxWidth,maxHeight,Positions
|
|
496
|
+
|
|
497
|
+
- \[Changed\]: Progress - forwardRef,Fix Syntax
|
|
498
|
+
- \[Changed\]: Attachment - Choose item(s) by mouse, accept file type && Ignore existing file
|
|
499
|
+
- \[Changed\]: Form -> FormControl, Options + FormControl(CheckBox, RadioButton, Toggle)
|
|
500
|
+
- \[Changed\]: Form/FormDate -> FormControl/DatePicker
|
|
501
|
+
|
|
502
|
+
- \[Delete\]: Options component
|
|
503
|
+
- \[Delete\]: Input component
|
|
504
|
+
|
|
505
|
+
## 1.2.0 (2020-11-03)
|
|
506
|
+
- \[Added\]: CheckText component
|
|
507
|
+
- \[Added\]: Form/FormDate component
|
|
508
|
+
- \[Added\]: Options component
|
|
509
|
+
- \[Added\]: Others/Extra component
|
|
510
|
+
- \[Added\]: Others/Scrollbar component
|
|
511
|
+
- \[Added\]: Paging component
|
|
512
|
+
- \[Added\]: Progress/Circle component
|
|
513
|
+
- \[Added\]: Status component
|
|
514
|
+
- \[Added\]: Icon component for DHR/ERP
|
|
515
|
+
|
|
516
|
+
- \[Changed\]: Progress/Linear component
|
|
517
|
+
- \[Changed\]: Form/Dropdown component
|