assui 3.1.58 → 3.1.60
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/label-condition-select-input/index.js +23 -16
- package/es/label-select/index.js +4 -0
- package/es/table-col/demo/index.less +8 -0
- package/es/table-col/index.js +2 -1
- package/es/table-col/style/index.css +3 -0
- package/es/table-col/style/index.d.ts +1 -1
- package/es/table-col/style/index.js +1 -0
- package/es/table-col/style/index.less +5 -0
- package/lib/label-condition-select-input/index.js +23 -16
- package/lib/label-select/index.js +4 -0
- package/lib/table-col/demo/index.less +8 -0
- package/lib/table-col/index.js +2 -1
- package/lib/table-col/style/index.css +3 -0
- package/lib/table-col/style/index.d.ts +1 -1
- package/lib/table-col/style/index.js +6 -0
- package/lib/table-col/style/index.less +5 -0
- package/package.json +2 -2
|
@@ -147,20 +147,24 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
|
|
|
147
147
|
changedEntryType: blurEntryType
|
|
148
148
|
}));
|
|
149
149
|
};
|
|
150
|
-
/** 二级下拉框清空 */
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
150
|
+
// /** 二级下拉框清空 */
|
|
151
|
+
// const onTypeSelectClear = () => {
|
|
152
|
+
// let finalSelectInputValue: ValueType = {
|
|
153
|
+
// selectValue: selectInputValue.selectValue,
|
|
154
|
+
// inputValue: [],
|
|
155
|
+
// changedEntryType: EntryTypeEnum.SECOND_ENTRY,
|
|
156
|
+
// };
|
|
157
|
+
// if (isSubSelectMultiple) {
|
|
158
|
+
// finalSelectInputValue = {
|
|
159
|
+
// ...finalSelectInputValue,
|
|
160
|
+
// finalSelectValue: findAllSubSelectItems(
|
|
161
|
+
// optionsList,
|
|
162
|
+
// selectInputValue.selectValue,
|
|
163
|
+
// ),
|
|
164
|
+
// };
|
|
165
|
+
// }
|
|
166
|
+
// onBlur?.(finalSelectInputValue);
|
|
167
|
+
// };
|
|
164
168
|
// 是否展示输入框
|
|
165
169
|
var isShowInput = !isNil(selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue) && !(hiddenInputKeys === null || hiddenInputKeys === void 0 ? void 0 : hiddenInputKeys.includes(selectInputValue.selectValue));
|
|
166
170
|
var typeInput = isInput ? /*#__PURE__*/React.createElement(LabelConditionInput, __assign({}, conditionInputProps, {
|
|
@@ -177,10 +181,13 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
|
|
|
177
181
|
onChange: onTypeSelectChange,
|
|
178
182
|
value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.inputValue,
|
|
179
183
|
options: subSelectOptions,
|
|
184
|
+
onDeselect: function onDeselect() {
|
|
185
|
+
var _a;
|
|
186
|
+
(_a = subSelectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
187
|
+
},
|
|
180
188
|
onBlur: function onBlur() {
|
|
181
189
|
return onLabelConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
|
|
182
|
-
}
|
|
183
|
-
onClear: onTypeSelectClear
|
|
190
|
+
}
|
|
184
191
|
})));
|
|
185
192
|
return /*#__PURE__*/React.createElement("div", {
|
|
186
193
|
className: classNames('label-condition-select', className)
|
package/es/label-select/index.js
CHANGED
|
@@ -92,6 +92,10 @@ var LabelSelect = function LabelSelect(props, ref) {
|
|
|
92
92
|
className: "label-select-selector",
|
|
93
93
|
onChange: handleChange,
|
|
94
94
|
onBlur: handleBlur,
|
|
95
|
+
onDeselect: function onDeselect() {
|
|
96
|
+
var _a;
|
|
97
|
+
(_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
98
|
+
},
|
|
95
99
|
onDropdownVisibleChange: onDropdownVisibleChange,
|
|
96
100
|
suffixIcon: /*#__PURE__*/React.createElement(ArrowDropDownFilled, null)
|
|
97
101
|
})), /*#__PURE__*/React.createElement("label", {
|
package/es/table-col/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
2
3
|
var TableCol = function TableCol(_a) {
|
|
3
4
|
var children = _a.children,
|
|
4
5
|
width = _a.width,
|
|
@@ -7,7 +8,7 @@ var TableCol = function TableCol(_a) {
|
|
|
7
8
|
style: {
|
|
8
9
|
width: "".concat(width, "px")
|
|
9
10
|
},
|
|
10
|
-
className: className
|
|
11
|
+
className: classNames('a-table-col', className)
|
|
11
12
|
}, children);
|
|
12
13
|
};
|
|
13
14
|
export default TableCol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './index.less';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './index.less';
|
|
@@ -191,20 +191,24 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
|
|
|
191
191
|
changedEntryType: blurEntryType
|
|
192
192
|
}));
|
|
193
193
|
};
|
|
194
|
-
/** 二级下拉框清空 */
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
194
|
+
// /** 二级下拉框清空 */
|
|
195
|
+
// const onTypeSelectClear = () => {
|
|
196
|
+
// let finalSelectInputValue: ValueType = {
|
|
197
|
+
// selectValue: selectInputValue.selectValue,
|
|
198
|
+
// inputValue: [],
|
|
199
|
+
// changedEntryType: EntryTypeEnum.SECOND_ENTRY,
|
|
200
|
+
// };
|
|
201
|
+
// if (isSubSelectMultiple) {
|
|
202
|
+
// finalSelectInputValue = {
|
|
203
|
+
// ...finalSelectInputValue,
|
|
204
|
+
// finalSelectValue: findAllSubSelectItems(
|
|
205
|
+
// optionsList,
|
|
206
|
+
// selectInputValue.selectValue,
|
|
207
|
+
// ),
|
|
208
|
+
// };
|
|
209
|
+
// }
|
|
210
|
+
// onBlur?.(finalSelectInputValue);
|
|
211
|
+
// };
|
|
208
212
|
// 是否展示输入框
|
|
209
213
|
var isShowInput = !(0, isNil_1["default"])(selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.selectValue) && !(hiddenInputKeys === null || hiddenInputKeys === void 0 ? void 0 : hiddenInputKeys.includes(selectInputValue.selectValue));
|
|
210
214
|
var typeInput = isInput ? react_1["default"].createElement(label_condition_input_1["default"], __assign({}, conditionInputProps, {
|
|
@@ -221,10 +225,13 @@ var LabelConditionSelectInput = function LabelConditionSelectInput(props) {
|
|
|
221
225
|
onChange: onTypeSelectChange,
|
|
222
226
|
value: selectInputValue === null || selectInputValue === void 0 ? void 0 : selectInputValue.inputValue,
|
|
223
227
|
options: subSelectOptions,
|
|
228
|
+
onDeselect: function onDeselect() {
|
|
229
|
+
var _a;
|
|
230
|
+
(_a = subSelectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
231
|
+
},
|
|
224
232
|
onBlur: function onBlur() {
|
|
225
233
|
return onLabelConditionSelectInputBlur(EntryTypeEnum.SECOND_ENTRY);
|
|
226
|
-
}
|
|
227
|
-
onClear: onTypeSelectClear
|
|
234
|
+
}
|
|
228
235
|
})));
|
|
229
236
|
return react_1["default"].createElement("div", {
|
|
230
237
|
className: (0, classnames_1["default"])('label-condition-select', className)
|
|
@@ -103,6 +103,10 @@ var LabelSelect = function LabelSelect(props, ref) {
|
|
|
103
103
|
className: "label-select-selector",
|
|
104
104
|
onChange: handleChange,
|
|
105
105
|
onBlur: handleBlur,
|
|
106
|
+
onDeselect: function onDeselect() {
|
|
107
|
+
var _a;
|
|
108
|
+
(_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
109
|
+
},
|
|
106
110
|
onDropdownVisibleChange: onDropdownVisibleChange,
|
|
107
111
|
suffixIcon: react_1["default"].createElement(ArrowDropDownFilled_1["default"], null)
|
|
108
112
|
})), react_1["default"].createElement("label", {
|
package/lib/table-col/index.js
CHANGED
|
@@ -9,6 +9,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
9
9
|
value: true
|
|
10
10
|
});
|
|
11
11
|
var react_1 = __importDefault(require("react"));
|
|
12
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
12
13
|
var TableCol = function TableCol(_a) {
|
|
13
14
|
var children = _a.children,
|
|
14
15
|
width = _a.width,
|
|
@@ -17,7 +18,7 @@ var TableCol = function TableCol(_a) {
|
|
|
17
18
|
style: {
|
|
18
19
|
width: "".concat(width, "px")
|
|
19
20
|
},
|
|
20
|
-
className: className
|
|
21
|
+
className: (0, classnames_1["default"])('a-table-col', className)
|
|
21
22
|
}, children);
|
|
22
23
|
};
|
|
23
24
|
exports["default"] = TableCol;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import './index.less';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.60",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "004de3d80594f82f62678d8183c8d5dc0fcb3bb0"
|
|
84
84
|
}
|