@kdcloudjs/kdesign 1.7.50 → 1.7.51
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/CHANGELOG.md +39 -0
- package/dist/kdesign.css +1 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +2879 -1783
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +1 -1
- package/dist/kdesign.min.js +15 -10
- package/dist/kdesign.min.js.map +1 -1
- package/es/color-picker/color-picker-panel.js +1 -1
- package/es/color-picker/color-picker.js +1 -1
- package/es/color-picker/utils/colorFormat.js +1 -1
- package/es/grid/row.js +2 -2
- package/es/qr-code/qr-code.js +1 -1
- package/lib/color-picker/color-picker-panel.js +2 -2
- package/lib/color-picker/color-picker.js +3 -3
- package/lib/color-picker/utils/colorFormat.js +2 -2
- package/lib/grid/row.js +2 -2
- package/lib/qr-code/qr-code.js +1 -1
- package/package.json +3 -3
|
@@ -10,7 +10,7 @@ import { colorFormat, valOfCorrespondingType, strFixed, getColorObj, highlightPr
|
|
|
10
10
|
import { defaultSystemColor } from './constant/defaultColor';
|
|
11
11
|
import { validateColor } from './utils/validateColor';
|
|
12
12
|
import { toLowerCase } from './utils/convertLetters';
|
|
13
|
-
import Color from 'color';
|
|
13
|
+
import Color from 'color-ie';
|
|
14
14
|
import { ChromePicker } from 'react-color';
|
|
15
15
|
import devWarning from '../_utils/devwarning';
|
|
16
16
|
import { useOnClickOutside } from '../_utils/hooks';
|
|
@@ -11,7 +11,7 @@ import ColorPickerPanel from './color-picker-panel';
|
|
|
11
11
|
import { colorFormat, strFixed, getColorObj, valOfCorrespondingType, highlightPresetColorIndex, presetColorToHEX } from './utils/colorFormat';
|
|
12
12
|
import { toLowerCase } from './utils/convertLetters';
|
|
13
13
|
import { defaultSystemColor } from './constant/defaultColor';
|
|
14
|
-
import Color from 'color';
|
|
14
|
+
import Color from 'color-ie';
|
|
15
15
|
import { getCompProps } from '../_utils';
|
|
16
16
|
import usePopper from '../_utils/usePopper';
|
|
17
17
|
import { systemPresetColor } from './constant/systemPresetColor';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
2
2
|
import _findIndexInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/find-index";
|
|
3
3
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
4
|
-
import Color from 'color';
|
|
4
|
+
import Color from 'color-ie';
|
|
5
5
|
import { validateColor } from './validateColor';
|
|
6
6
|
import { toLowerCase } from './convertLetters';
|
|
7
7
|
export var colorFormat = function colorFormat(colorStr) {
|
package/es/grid/row.js
CHANGED
|
@@ -75,10 +75,10 @@ var Row = function Row(props) {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
var rowStyle = {
|
|
78
|
-
|
|
78
|
+
rowGap: "".concat(gap.v, "px"),
|
|
79
79
|
margin: "0 ".concat(-1 * gap.h / 2, "px")
|
|
80
80
|
};
|
|
81
|
-
if (gap.v && isSogouOrIe) rowStyle
|
|
81
|
+
if (gap.v && isSogouOrIe) rowStyle.marginBottom = "".concat(-1 * gap.v, "px");
|
|
82
82
|
var toalign = {
|
|
83
83
|
top: 'flex-start',
|
|
84
84
|
middle: 'center',
|
package/es/qr-code/qr-code.js
CHANGED
|
@@ -4,7 +4,7 @@ import React, { useContext } from 'react';
|
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import ConfigContext from '../config-provider/ConfigContext';
|
|
6
6
|
import { getCompProps } from '../_utils';
|
|
7
|
-
import { QRCodeCanvas, QRCodeSVG } from 'qrcode.react';
|
|
7
|
+
import { QRCodeCanvas, QRCodeSVG } from 'qrcode.react-ie';
|
|
8
8
|
import Spin from '../spin';
|
|
9
9
|
import Button from '../button';
|
|
10
10
|
import Icon from '../icon';
|
|
@@ -19,7 +19,7 @@ var _colorFormat = require("./utils/colorFormat");
|
|
|
19
19
|
var _defaultColor = require("./constant/defaultColor");
|
|
20
20
|
var _validateColor = require("./utils/validateColor");
|
|
21
21
|
var _convertLetters = require("./utils/convertLetters");
|
|
22
|
-
var
|
|
22
|
+
var _colorIe = _interopRequireDefault(require("color-ie"));
|
|
23
23
|
var _reactColor = require("react-color");
|
|
24
24
|
var _devwarning = _interopRequireDefault(require("../_utils/devwarning"));
|
|
25
25
|
var _hooks = require("../_utils/hooks");
|
|
@@ -152,7 +152,7 @@ var ColorPickerPanel = function ColorPickerPanel(props) {
|
|
|
152
152
|
setIsFollow(switchValue);
|
|
153
153
|
if (switchValue) {
|
|
154
154
|
formatArr = (0, _colorFormat.colorFormat)(functionalColor, alpha);
|
|
155
|
-
setPanelState(formatArr, formatArr[(0, _colorFormat.valOfCorrespondingType)(currentColorType)].value, functionalColorName, (0, _colorFormat.strFixed)((0,
|
|
155
|
+
setPanelState(formatArr, formatArr[(0, _colorFormat.valOfCorrespondingType)(currentColorType)].value, functionalColorName, (0, _colorFormat.strFixed)((0, _colorIe.default)((0, _colorFormat.getColorObj)(functionalColor)).alpha(), 2), (0, _colorFormat.strFixed)((0, _colorIe.default)((0, _colorFormat.getColorObj)(functionalColor)).alpha(), 2) * 100 + '%');
|
|
156
156
|
setClickedColorIndex((0, _colorFormat.highlightPresetColorIndex)(formatArr[0].value, (0, _colorFormat.presetColorToHEX)(presetColor || _systemPresetColor.systemPresetColor)));
|
|
157
157
|
} else {
|
|
158
158
|
formatArr = (0, _colorFormat.colorFormat)(_defaultColor.defaultSystemColor, 1, 'all', true);
|
|
@@ -21,7 +21,7 @@ var _colorPickerPanel = _interopRequireDefault(require("./color-picker-panel"));
|
|
|
21
21
|
var _colorFormat = require("./utils/colorFormat");
|
|
22
22
|
var _convertLetters = require("./utils/convertLetters");
|
|
23
23
|
var _defaultColor = require("./constant/defaultColor");
|
|
24
|
-
var
|
|
24
|
+
var _colorIe = _interopRequireDefault(require("color-ie"));
|
|
25
25
|
var _utils = require("../_utils");
|
|
26
26
|
var _usePopper = _interopRequireDefault(require("../_utils/usePopper"));
|
|
27
27
|
var _systemPresetColor = require("./constant/systemPresetColor");
|
|
@@ -105,8 +105,8 @@ var ColorPicker = function ColorPicker(props) {
|
|
|
105
105
|
setAlphaNoVerifyVal(alphaStr);
|
|
106
106
|
};
|
|
107
107
|
if (inputValType) {
|
|
108
|
-
var formatArr = (0, _colorFormat.colorFormat)(inpValue, (0, _colorFormat.strFixed)((0,
|
|
109
|
-
setState(formatArr, formatArr[(0, _colorFormat.valOfCorrespondingType)(currentColorType)].value, (0,
|
|
108
|
+
var formatArr = (0, _colorFormat.colorFormat)(inpValue, (0, _colorFormat.strFixed)((0, _colorIe.default)((0, _colorFormat.getColorObj)(inpValue)).alpha(), 2));
|
|
109
|
+
setState(formatArr, formatArr[(0, _colorFormat.valOfCorrespondingType)(currentColorType)].value, (0, _colorIe.default)((0, _colorFormat.getColorObj)(inpValue)).alpha(), ((0, _colorFormat.strFixed)((0, _colorIe.default)((0, _colorFormat.getColorObj)(inpValue)).alpha(), 2) * 100).toFixed() + '%');
|
|
110
110
|
setClickedColorIndex((0, _colorFormat.highlightPresetColorIndex)(formatArr[0].value, (0, _colorFormat.presetColorToHEX)(presetColor || _systemPresetColor.systemPresetColor)));
|
|
111
111
|
} else {
|
|
112
112
|
var _formatArr = (0, _colorFormat.colorFormat)(_defaultColor.defaultSystemColor);
|
|
@@ -8,14 +8,14 @@ exports.valOfCorrespondingType = exports.strFixed = exports.presetColorToHEX = e
|
|
|
8
8
|
var _concat = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/concat"));
|
|
9
9
|
var _findIndex = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/find-index"));
|
|
10
10
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/instance/map"));
|
|
11
|
-
var
|
|
11
|
+
var _colorIe = _interopRequireDefault(require("color-ie"));
|
|
12
12
|
var _validateColor = require("./validateColor");
|
|
13
13
|
var _convertLetters = require("./convertLetters");
|
|
14
14
|
var colorFormat = function colorFormat(colorStr) {
|
|
15
15
|
var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
|
16
16
|
var outType = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'all';
|
|
17
17
|
var formatHex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
18
|
-
var ColorTools = (0,
|
|
18
|
+
var ColorTools = (0, _colorIe.default)(getColorObj(colorStr)).alpha(alpha);
|
|
19
19
|
var toHex = function toHex() {
|
|
20
20
|
if (/^#([0-9a-fA-F]{8})$/.test(colorStr)) {
|
|
21
21
|
if (formatHex) {
|
package/lib/grid/row.js
CHANGED
|
@@ -88,10 +88,10 @@ var Row = function Row(props) {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
var rowStyle = {
|
|
91
|
-
|
|
91
|
+
rowGap: "".concat(gap.v, "px"),
|
|
92
92
|
margin: "0 ".concat(-1 * gap.h / 2, "px")
|
|
93
93
|
};
|
|
94
|
-
if (gap.v && isSogouOrIe) rowStyle
|
|
94
|
+
if (gap.v && isSogouOrIe) rowStyle.marginBottom = "".concat(-1 * gap.v, "px");
|
|
95
95
|
var toalign = {
|
|
96
96
|
top: 'flex-start',
|
|
97
97
|
middle: 'center',
|
package/lib/qr-code/qr-code.js
CHANGED
|
@@ -14,7 +14,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
15
15
|
var _ConfigContext = _interopRequireDefault(require("../config-provider/ConfigContext"));
|
|
16
16
|
var _utils = require("../_utils");
|
|
17
|
-
var _qrcode = require("qrcode.react");
|
|
17
|
+
var _qrcode = require("qrcode.react-ie");
|
|
18
18
|
var _spin = _interopRequireDefault(require("../spin"));
|
|
19
19
|
var _button = _interopRequireDefault(require("../button"));
|
|
20
20
|
var _icon = _interopRequireDefault(require("../icon"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kdcloudjs/kdesign",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.51",
|
|
4
4
|
"description": "KDesign 金蝶前端react 组件库",
|
|
5
5
|
"title": "kdesign",
|
|
6
6
|
"keywords": [
|
|
@@ -85,14 +85,14 @@
|
|
|
85
85
|
"axios": "^0.21.1",
|
|
86
86
|
"big.js": "^6.0.2",
|
|
87
87
|
"classnames": "^2.2.6",
|
|
88
|
-
"color": "^4.2.
|
|
88
|
+
"color-ie": "^4.2.5",
|
|
89
89
|
"copy-to-clipboard": "^3.3.1",
|
|
90
90
|
"cropperjs": "^1.5.12",
|
|
91
91
|
"css-vars-ponyfill": "^2.4.8",
|
|
92
92
|
"date-fns": "2.28.0",
|
|
93
93
|
"js-cookie": "^3.0.1",
|
|
94
94
|
"lodash": "^4.17.20",
|
|
95
|
-
"qrcode.react": "^3.1.
|
|
95
|
+
"qrcode.react-ie": "^3.1.3",
|
|
96
96
|
"react-color": "^2.19.3",
|
|
97
97
|
"react-draggable": "^4.4.3",
|
|
98
98
|
"react-popper": "^2.2.3",
|