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
|
-
* "AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
|
|
1474
|
-
* "URL": "https://apricot.diginet.com.vn/cdn-dev/file/
|
|
1475
|
-
* "FileName": "8a07bee1eeff17a14eee.jpg",<br />
|
|
1476
|
-
* "FileSize": 248837,<br />
|
|
1477
|
-
* "KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
|
|
1478
|
-
* "CreateUserID": "LEMONADMIN",<br />
|
|
1479
|
-
* "CreateDate": "2020-08-24T11:54:04.307Z",<br />
|
|
1480
|
-
* "UserName": "Quản trị hệ thống"<br />
|
|
1481
|
-
* }, ...]
|
|
1471
|
+
/** List attachment:<br />
|
|
1472
|
+
* [{<br />
|
|
1473
|
+
* "AttachmentID": "ATT2U8O7YPTF1KSNCW3X",<br />
|
|
1474
|
+
* "URL": "https://apricot.diginet.com.vn/cdn-dev/file/demo.jpg",<br />
|
|
1475
|
+
* "FileName": "8a07bee1eeff17a14eee.jpg",<br />
|
|
1476
|
+
* "FileSize": 248837,<br />
|
|
1477
|
+
* "KeyID": "W39OAD3YGLCWAQKV1D6PGEKNW4RLGVTZTUWLYEVFQ2QG8AOCXW",<br />
|
|
1478
|
+
* "CreateUserID": "LEMONADMIN",<br />
|
|
1479
|
+
* "CreateDate": "2020-08-24T11:54:04.307Z",<br />
|
|
1480
|
+
* "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
|
-
* attached: [Files] (insist old and all new files )<br/>
|
|
1517
|
-
* allNewAttached: [Files]<br/>
|
|
1518
|
-
* oldAttached: [Files]<br/>
|
|
1519
|
-
* removedAttached: [Files]<br/>
|
|
1520
|
-
* element: [NodeList (just removed)]<br/>
|
|
1521
|
-
* }
|
|
1512
|
+
/**
|
|
1513
|
+
* event when removed file(s)
|
|
1514
|
+
*
|
|
1515
|
+
* return data: {<br/>
|
|
1516
|
+
* attached: [Files] (insist old and all new files )<br/>
|
|
1517
|
+
* allNewAttached: [Files]<br/>
|
|
1518
|
+
* oldAttached: [Files]<br/>
|
|
1519
|
+
* removedAttached: [Files]<br/>
|
|
1520
|
+
* 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: ['
|
|
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
|
|
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.
|
|
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": "
|
|
9
|
-
"start
|
|
10
|
-
"build
|
|
11
|
-
"
|
|
12
|
-
"
|
|
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
|
-
"
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
"git add"
|
|
41
|
-
]
|
|
20
|
+
"repository": {
|
|
21
|
+
"type": "git",
|
|
22
|
+
"url": "git+https://diginetvn@bitbucket.org/diginetvn/diginet-core-ui.git"
|
|
42
23
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
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
|