diginet-core-ui 1.4.28-beta.2 → 1.4.29

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.
@@ -1468,17 +1468,17 @@ Attachment.propTypes = {
1468
1468
  allowSort: PropTypes.bool,
1469
1469
  /** Class for component. */
1470
1470
  className: PropTypes.string,
1471
- /** List attachment:<br />
1472
- * [{<br />
1473
- * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1474
- * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/8a07bee1eeff17a14eee.jpg?path=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmaWxlUGF0aCI6Ii8yMDIwLzA4LzQ0YjNhYjQ4LTMwNGQtNDQ3NC05ZDk0LWNkNGVlMDQwOGNlMy5qcGciLCJmaWxlTmFtZSI6IjhhMDdiZWUxZWVmZjE3YTE0ZWVlLmpwZyIsImZpbGVTaXplIjoyNDg4MzcsImZpbGVUeXBlIjoiaW1hZ2UvanBlZyIsImlhdCI6MTU5ODI0NDMwMiwiZXhwIjo4Nzk5ODI0NDMwMn0.fow6O5fp2z3vieA9gom5RRwQ7xxwBx9_7X2Fe8T2YI0",<br />
1475
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1476
- * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1477
- * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1478
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1479
- * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1480
- * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1481
- * }, ...]
1471
+ /** List attachment:<br />
1472
+ * [{<br />
1473
+ * &nbsp;&nbsp;&nbsp;&nbsp;"AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
1474
+ * &nbsp;&nbsp;&nbsp;&nbsp;"URL": "https://apricot.diginet.com.vn/cdn-dev/file/demo.jpg",<br />
1475
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileName": "8a07bee1eeff17a14eee.jpg",<br />
1476
+ * &nbsp;&nbsp;&nbsp;&nbsp;"FileSize": 248837,<br />
1477
+ * &nbsp;&nbsp;&nbsp;&nbsp;"KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
1478
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateUserID": "LEMONADMIN",<br />
1479
+ * &nbsp;&nbsp;&nbsp;&nbsp;"CreateDate": "2020-08-24T11:54:04.307Z",<br />
1480
+ * &nbsp;&nbsp;&nbsp;&nbsp;"UserName": "Quản trị hệ thống"<br />
1481
+ * }, ...]
1482
1482
  */
1483
1483
  data: PropTypes.array,
1484
1484
  /** The message to display when deleting files. */
@@ -1509,16 +1509,16 @@ Attachment.propTypes = {
1509
1509
  onChange: PropTypes.func,
1510
1510
  /** Download attached event, if not it will use default. */
1511
1511
  onDownload: PropTypes.func,
1512
- /**
1513
- * event when removed file(s)
1514
- *
1515
- * return data: {<br/>
1516
- * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1517
- * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1518
- * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1519
- * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1520
- * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1521
- * }
1512
+ /**
1513
+ * event when removed file(s)
1514
+ *
1515
+ * return data: {<br/>
1516
+ * &nbsp;&nbsp;&nbsp;&nbsp;attached: [Files] (insist old and all new files )<br/>
1517
+ * &nbsp;&nbsp;&nbsp;&nbsp;allNewAttached: [Files]<br/>
1518
+ * &nbsp;&nbsp;&nbsp;&nbsp;oldAttached: [Files]<br/>
1519
+ * &nbsp;&nbsp;&nbsp;&nbsp;removedAttached: [Files]<br/>
1520
+ * &nbsp;&nbsp;&nbsp;&nbsp;element: [NodeList (just removed)]<br/>
1521
+ * }
1522
1522
  */
1523
1523
  onRemove: PropTypes.func,
1524
1524
  /** View attached event, if not it will use default. */
@@ -655,7 +655,7 @@ const renderNavigator = (className, refs, dbLeftFn, leftFn, rightFn, dbRightFn,
655
655
  color: 'primary',
656
656
  type: 'h3',
657
657
  ref: refs.content,
658
- format: ['sentence']
658
+ format: ['lowercase']
659
659
  }))), jsx("div", {
660
660
  className: className.navigator.around
661
661
  }, jsx(ButtonIcon, {
@@ -49,7 +49,7 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
49
49
  labelProps,
50
50
  max: maxProp,
51
51
  maxDigit,
52
- min: minProp,
52
+ min,
53
53
  nonStyle,
54
54
  onBlur,
55
55
  onChange,
@@ -69,12 +69,9 @@ const NumberInput = /*#__PURE__*/forwardRef((inProps, reference) => {
69
69
  viewType
70
70
  } = props;
71
71
  let max = maxProp;
72
- let min = minProp;
73
72
  let thousandSymbol = thousandSeparator;
74
73
  let decimalSymbol = decimalSymbolProp;
75
74
  let valueProps = valueProp;
76
- if (!min && min !== 0) min = -Infinity;
77
- if (!max && max !== 0) max = Infinity;
78
75
  const pos = useRef(null);
79
76
  const ref = useRef(null);
80
77
  const globalRef = useRef({});
package/package.json CHANGED
@@ -1,76 +1,44 @@
1
1
  {
2
2
  "name": "diginet-core-ui",
3
- "version": "1.4.28-beta.2",
4
- "description": "",
3
+ "version": "1.4.29",
4
+ "description": "The DigiNet core ui",
5
+ "homepage": "https://diginet.com.vn",
5
6
  "main": "index.js",
6
- "license": "UNLICENSED",
7
7
  "scripts": {
8
- "start": "npm-run-all --parallel start-sb eslint-test",
9
- "start-sb": "start-storybook -p 9050",
10
- "build-storybook": "build-storybook -c .storybook -s src",
11
- "build": "run-script-os",
12
- "build:windows": "rimraf dist && mkdirp dist/components && npm run compile && sass --style=compressed src/scss:dist/css && xcopy src\\\\assets dist\\\\assets\\ /e /y",
13
- "build:darwin:linux:default": "rm -rf dist && npm run compile && sass --style=compressed src/scss:dist/css && cp -rf src/assets dist/assets",
14
- "compile": "babel src --out-dir dist --ignore **/*.stories.js",
15
- "pack": "npm run build && cp *.md dist/ && npm run version:bump --silent && npm run version:add --silent && cd dist && npm pack",
16
- "production-keep-version": "npm run build && cp *.md dist/ && cp package.json dist/ && cd dist && npm publish",
17
- "beta": "npm run build && cp *.md dist/ && cp package.json dist/ && cd dist && npm publish --tag beta",
18
- "production": "npm run build && cp *.md dist/ && npm run version:bump --silent && npm run version:add --silent && cd dist && npm publish",
19
- "version:add": "run-script-os",
20
- "version:add:windows": "cat package.json.tmp | sed \"s/0.0.0/%npm_package_version%/g\" > dist/package.json",
21
- "version:add:darwin:linux:default": "VERSION=$(npm run version:extract --silent) && cat package.json.tmp | sed \"s/0.0.0/${VERSION}/g\" > dist/package.json",
22
- "version:bump": "npm version patch --no-git-tag-version --silent",
23
- "version:extract": "cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]'",
24
- "test": "echo \"Error: no test specified\" && exit 1",
25
- "lint": "eslint --fix --config .eslintrc.js \"**/*.js\"",
26
- "eslint-test": "onchange \"src/**/*.{js,jsx,json}\" -- eslint . --fix",
27
- "test-storybook": "test-storybook --url http://localhost:9050"
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"
28
13
  },
29
14
  "dependencies": {
30
15
  "@emotion/core": "^10.0.35",
16
+ "prop-types": "^15.7.2",
31
17
  "@emotion/css": "^11.11.0",
32
- "@emotion/react": "^11.10.6",
33
- "babel-plugin-module-resolver": "^4.1.0",
34
- "date-fns": "^2.30.0",
35
- "prop-types": "^15.7.2"
18
+ "@emotion/react": "^11.10.6"
36
19
  },
37
- "lint-staged": {
38
- "*/**/*.{js,jsx,json}": [
39
- "prettier --write",
40
- "git add"
41
- ]
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://diginetvn@bitbucket.org/diginetvn/diginet-core-ui.git"
42
23
  },
43
- "devDependencies": {
44
- "@babel/cli": "^7.14.3",
45
- "@babel/plugin-proposal-class-properties": "^7.13.0",
46
- "@babel/plugin-proposal-logical-assignment-operators": "^7.16.0",
47
- "@babel/plugin-proposal-nullish-coalescing-operator": "^7.16.0",
48
- "@babel/plugin-proposal-optional-chaining": "^7.14.2",
49
- "@babel/plugin-proposal-private-methods": "^7.18.6",
50
- "@babel/plugin-proposal-private-property-in-object": "^7.18.6",
51
- "@babel/preset-react": "^7.13.13",
52
- "@storybook/addon-actions": "6.2.9",
53
- "@storybook/addon-essentials": "6.2.9",
54
- "@storybook/addon-links": "6.2.9",
55
- "@storybook/addon-postcss": "^2.0.0",
56
- "@storybook/react": "6.2.9",
57
- "@storybook/test-runner": "^0.7.1",
58
- "autoprefixer": "^10.3.1",
59
- "babel-loader": "^8.2.2",
60
- "eslint": "^8.4.1",
61
- "eslint-plugin-react": "^7.27.1",
62
- "eslint-plugin-regex": "^1.10.0",
63
- "husky": "^7.0.4",
64
- "jest": "^27.5.1",
65
- "lint-staged": "^12.1.2",
66
- "mkdirp": "^1.0.4",
67
- "npm-run-all": "^4.1.5",
68
- "onchange": "^7.1.0",
69
- "postcss-flexbugs-fixes": "^5.0.2",
70
- "react": "^17.0.1",
71
- "react-dom": "^17.0.1",
72
- "rimraf": "^3.0.2",
73
- "run-script-os": "^1.1.6",
74
- "sass": "1.58.3"
75
- }
24
+ "keywords": [
25
+ "core ui",
26
+ "diginet"
27
+ ],
28
+ "author": "rocachien",
29
+ "contributors": [
30
+ {
31
+ "name": "Chien Do",
32
+ "email": "rocachien@gmail.com"
33
+ },
34
+ {
35
+ "name": "Nhat Tran",
36
+ "email": "tranminhnhat1005@gmail.com"
37
+ },
38
+ {
39
+ "name": "Thuan Nguyen",
40
+ "email": "nt.thuan.hutech@gmail.com"
41
+ }
42
+ ],
43
+ "license": "MIT"
76
44
  }
package/readme.md CHANGED
@@ -42,6 +42,19 @@ npm test
42
42
 
43
43
  ## Changelog
44
44
 
45
+ ## 1.4.29
46
+
47
+ - \[Added\]: Icon – Add MoneyBag
48
+ - \[Added\]: IconMenu – Add MHRP77N0012
49
+ - \[Changed\]: Storybook – Write document
50
+ - \[Fixed\]: Dropdown – Fix set defaultValue before action loadData
51
+ - \[Fixed\]: Storybook – Fix storybook not show default value of props
52
+ - \[Changed\]: OptionWrapper – Add propTypes of WrappedComponent
53
+ - \[Fixed\]: TreeView – Fix not render when parentID value is string '0'
54
+ - \[Changed\]: DateInput – Optimize component DateInput
55
+ - \[Changed\]: Storybook – Update, optimize stories
56
+ - \[Changed\]: Accordion – Add method expandedState, setExpandState
57
+
45
58
  ## 1.4.28
46
59
 
47
60
  - \[Fixed\]: Attachment – Fix allNewAttached in onChange after delete