assui 2.0.147 → 2.1.0
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/es/button-drawer/index.d.ts +1 -1
- package/es/button-modal/index.d.ts +1 -1
- package/es/copy-to-clipboard/style/index.css +58 -43
- package/es/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/es/highlight-textarea/getRanges.js +9 -7
- package/es/highlight-textarea/index.js +3 -3
- package/es/highlight-textarea/style/index.css +169 -41
- package/es/highlight-textarea/types.js +1 -0
- package/es/img-crop/index.js +7 -7
- package/es/img-crop/style/index.css +1784 -0
- package/es/img-crop/style/index.less +1 -1
- package/es/keep-tab/style/index.css +40 -23
- package/es/label-auto-complete/style/index.css +1784 -0
- package/es/label-auto-complete/style/index.less +1 -1
- package/es/label-customize-range-picker/style/index.css +1784 -0
- package/es/label-customize-range-picker/style/index.less +1 -1
- package/es/label-date-picker/index.js +1 -1
- package/es/label-date-picker/style/index.css +1784 -0
- package/es/label-date-picker/style/index.less +1 -1
- package/es/label-number-input/index.js +1 -1
- package/es/label-range-picker/style/index.css +1784 -0
- package/es/label-range-picker/style/index.less +1 -1
- package/es/label-select/style/index.css +1784 -0
- package/es/label-select/style/index.less +1 -1
- package/es/label-tree-select/style/index.css +1784 -0
- package/es/label-tree-select/style/index.less +1 -1
- package/es/number-input/index.js +4 -4
- package/es/number-input/utils.js +1 -1
- package/es/rich-text-editor/style/index.css +6 -5
- package/es/single-img-upload/index.js +1 -1
- package/es/single-img-upload/style/index.css +1784 -0
- package/es/single-img-upload/style/index.less +1 -1
- package/es/step-number-input/index.js +8 -8
- package/es/step-number-input/style/index.css +1784 -0
- package/es/step-number-input/style/index.less +1 -1
- package/es/text-input/index.js +8 -6
- package/es/text-input/style/index.css +169 -41
- package/lib/beautiful-dnd/index.js +13 -7
- package/lib/button-drawer/index.d.ts +1 -1
- package/lib/button-drawer/index.js +18 -12
- package/lib/button-modal/index.d.ts +1 -1
- package/lib/button-modal/index.js +14 -8
- package/lib/condition-input/index.js +17 -11
- package/lib/condition-input/parse2RegexOption.js +3 -3
- package/lib/copy-to-clipboard/index.js +15 -9
- package/lib/copy-to-clipboard/style/index.css +58 -43
- package/lib/highlight-textarea/HighlighedContents.js +2 -2
- package/lib/highlight-textarea/extractSpansOfClasses.js +9 -7
- package/lib/highlight-textarea/getRanges.js +10 -8
- package/lib/highlight-textarea/index.js +19 -13
- package/lib/highlight-textarea/style/index.css +169 -41
- package/lib/img-crop/EasyCrop.js +13 -7
- package/lib/img-crop/index.js +21 -15
- package/lib/img-crop/style/index.css +1784 -0
- package/lib/img-crop/style/index.less +1 -1
- package/lib/index.js +38 -31
- package/lib/keep-tab/index.js +17 -11
- package/lib/keep-tab/style/index.css +40 -23
- package/lib/label-auto-complete/index.js +5 -5
- package/lib/label-auto-complete/style/index.css +1784 -0
- package/lib/label-auto-complete/style/index.less +1 -1
- package/lib/label-condition-input/index.js +5 -5
- package/lib/label-customize-range-picker/defaultRadioList.js +1 -1
- package/lib/label-customize-range-picker/index.js +17 -11
- package/lib/label-customize-range-picker/style/index.css +1784 -0
- package/lib/label-customize-range-picker/style/index.less +1 -1
- package/lib/label-date-picker/index.js +5 -5
- package/lib/label-date-picker/style/index.css +1784 -0
- package/lib/label-date-picker/style/index.less +1 -1
- package/lib/label-input/index.js +5 -5
- package/lib/label-number-input/index.js +6 -6
- package/lib/label-range-picker/index.js +3 -3
- package/lib/label-range-picker/style/index.css +1784 -0
- package/lib/label-range-picker/style/index.less +1 -1
- package/lib/label-select/index.js +5 -5
- package/lib/label-select/style/index.css +1784 -0
- package/lib/label-select/style/index.less +1 -1
- package/lib/label-text-area/index.js +4 -4
- package/lib/label-tree-select/index.js +4 -4
- package/lib/label-tree-select/style/index.css +1784 -0
- package/lib/label-tree-select/style/index.less +1 -1
- package/lib/number-input/index.js +21 -15
- package/lib/number-input/utils.js +8 -4
- package/lib/rc-echart/core.js +21 -15
- package/lib/rc-echart/index.js +13 -7
- package/lib/rc-qrcode/index.js +14 -8
- package/lib/rc-qrcode/useQrcode.js +4 -3
- package/lib/rc-transition-group/index.js +13 -7
- package/lib/rich-text-editor/index.js +1 -1
- package/lib/rich-text-editor/style/index.css +6 -5
- package/lib/single-img-upload/index.js +18 -12
- package/lib/single-img-upload/style/index.css +1784 -0
- package/lib/single-img-upload/style/index.less +1 -1
- package/lib/sortable-hoc/index.js +13 -7
- package/lib/split-pane/index.js +13 -7
- package/lib/step-number-input/index.js +32 -26
- package/lib/step-number-input/style/index.css +1784 -0
- package/lib/step-number-input/style/index.less +1 -1
- package/lib/text-area/index.js +14 -8
- package/lib/text-input/index.js +8 -6
- package/lib/text-input/style/index.css +169 -41
- package/package.json +4 -3
|
@@ -74,12 +74,12 @@ var LabelConditionInput = function LabelConditionInput(props) {
|
|
|
74
74
|
_a = props.baseMinWidth,
|
|
75
75
|
baseMinWidth = _a === void 0 ? 50 : _a;
|
|
76
76
|
|
|
77
|
-
var _b = __read(useControllableValue_1["default"](props), 2),
|
|
77
|
+
var _b = __read((0, useControllableValue_1["default"])(props), 2),
|
|
78
78
|
value = _b[0],
|
|
79
79
|
setValue = _b[1];
|
|
80
80
|
|
|
81
81
|
var labelDomRef = react_1["default"].useRef(null);
|
|
82
|
-
var labelSize = useSize_1["default"](labelDomRef);
|
|
82
|
+
var labelSize = (0, useSize_1["default"])(labelDomRef);
|
|
83
83
|
var InputDomRef = react_1["default"].useRef(null);
|
|
84
84
|
|
|
85
85
|
var _c = __read(react_1["default"].useState(false), 2),
|
|
@@ -105,16 +105,16 @@ var LabelConditionInput = function LabelConditionInput(props) {
|
|
|
105
105
|
|
|
106
106
|
var controlMinWidth = (labelSize === null || labelSize === void 0 ? void 0 : labelSize.width) ? labelSize.width + baseMinWidth : undefined;
|
|
107
107
|
return react_1["default"].createElement("div", {
|
|
108
|
-
className: classnames_1["default"]('label-condition-input-warper', className),
|
|
108
|
+
className: (0, classnames_1["default"])('label-condition-input-warper', className),
|
|
109
109
|
id: id,
|
|
110
110
|
style: {
|
|
111
111
|
minWidth: controlMinWidth
|
|
112
112
|
}
|
|
113
113
|
}, react_1["default"].createElement("div", {
|
|
114
|
-
className: classnames_1["default"]('label-condition-input-field', {
|
|
114
|
+
className: (0, classnames_1["default"])('label-condition-input-field', {
|
|
115
115
|
'label-condition-input-focused': focused || value
|
|
116
116
|
})
|
|
117
|
-
}, react_1["default"].createElement(condition_input_1["default"], __assign({}, omit_1["default"](props, ['onChange', 'onBlur', 'onFocus', 'className', 'label', 'placeholder']), {
|
|
117
|
+
}, react_1["default"].createElement(condition_input_1["default"], __assign({}, (0, omit_1["default"])(props, ['onChange', 'onBlur', 'onFocus', 'className', 'label', 'placeholder']), {
|
|
118
118
|
ref: InputDomRef,
|
|
119
119
|
"data-value": value ? value.length : 0,
|
|
120
120
|
value: value,
|
|
@@ -18,12 +18,18 @@ var __assign = this && this.__assign || function () {
|
|
|
18
18
|
|
|
19
19
|
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
20
20
|
if (k2 === undefined) k2 = k;
|
|
21
|
-
Object.
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
22
|
+
|
|
23
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
24
|
+
desc = {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return m[k];
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
Object.defineProperty(o, k2, desc);
|
|
27
33
|
} : function (o, m, k, k2) {
|
|
28
34
|
if (k2 === undefined) k2 = k;
|
|
29
35
|
o[k2] = m[k];
|
|
@@ -42,7 +48,7 @@ var __importStar = this && this.__importStar || function (mod) {
|
|
|
42
48
|
if (mod && mod.__esModule) return mod;
|
|
43
49
|
var result = {};
|
|
44
50
|
if (mod != null) for (var k in mod) {
|
|
45
|
-
if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
51
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
__setModuleDefault(result, mod);
|
|
@@ -117,20 +123,20 @@ var LabelCustomizeRangePicker = function LabelCustomizeRangePicker(props) {
|
|
|
117
123
|
radioList = props.radioList,
|
|
118
124
|
options = __rest(props, ["customizeTimeList", "radioList"]);
|
|
119
125
|
|
|
120
|
-
var _a = __read(useControllableValue_1["default"](props), 2),
|
|
126
|
+
var _a = __read((0, useControllableValue_1["default"])(props), 2),
|
|
121
127
|
date = _a[0],
|
|
122
128
|
setDate = _a[1];
|
|
123
129
|
|
|
124
|
-
var _b = __read(react_1.useState(false), 2),
|
|
130
|
+
var _b = __read((0, react_1.useState)(false), 2),
|
|
125
131
|
isVisiblePanel = _b[0],
|
|
126
132
|
setIsVisiblePanel = _b[1];
|
|
127
133
|
|
|
128
|
-
var _c = __read(react_1.useState(), 2),
|
|
134
|
+
var _c = __read((0, react_1.useState)(), 2),
|
|
129
135
|
radioKey = _c[0],
|
|
130
136
|
setRadioKey = _c[1];
|
|
131
137
|
|
|
132
138
|
var dataSource = radioList !== null && radioList !== void 0 ? radioList : defaultRadioList_1["default"];
|
|
133
|
-
react_1.useEffect(function () {
|
|
139
|
+
(0, react_1.useEffect)(function () {
|
|
134
140
|
var foundItem = dataSource.find(function (item) {
|
|
135
141
|
if (!date) return false;
|
|
136
142
|
|