@zohodesk/components 1.2.53 → 1.2.54
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/README.md +6 -0
- package/es/MultiSelect/MultiSelect.js +7 -13
- package/es/v1/MultiSelect/MultiSelect.js +7 -13
- package/lib/MultiSelect/MultiSelect.js +14 -20
- package/lib/v1/MultiSelect/MultiSelect.js +14 -20
- package/package.json +3 -3
- package/result.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,12 @@ In this Package, we Provide Some Basic Components to Build Web App
|
|
|
32
32
|
- TextBoxIcon
|
|
33
33
|
- Tooltip
|
|
34
34
|
|
|
35
|
+
# 1.2.54
|
|
36
|
+
|
|
37
|
+
- **Reverted 1.2.45 MultiSelect Fix**
|
|
38
|
+
- The issue with the non-scrollable API call trigger in multiselect, introduced in version `1.2.45`, has been `reverted` in this version.
|
|
39
|
+
|
|
40
|
+
|
|
35
41
|
# 1.2.53
|
|
36
42
|
|
|
37
43
|
- **CheckBox** - Disabled State CheckBox Color Fixed
|
|
@@ -191,19 +191,13 @@ export class MultiSelectComponent extends React.Component {
|
|
|
191
191
|
} //Need To MultiselectNew Component
|
|
192
192
|
|
|
193
193
|
|
|
194
|
-
this.handleComponentDidUpdate(prevProps, prevState);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
let isElementScrollable = scrollHeight > clientHeight;
|
|
202
|
-
|
|
203
|
-
if (!isElementScrollable) {
|
|
204
|
-
this.handleScrollFuncCall();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
194
|
+
this.handleComponentDidUpdate(prevProps, prevState); // if (isPopupOpen && isNextOptions && prevProps.selectedOptions.length !== selectedOptions.length) {
|
|
195
|
+
// let { scrollHeight, clientHeight } = this.suggestionContainer || {};
|
|
196
|
+
// let isElementScrollable = scrollHeight > clientHeight;
|
|
197
|
+
// if (!isElementScrollable) {
|
|
198
|
+
// this.handleScrollFuncCall();
|
|
199
|
+
// }
|
|
200
|
+
// }
|
|
207
201
|
}
|
|
208
202
|
|
|
209
203
|
componentWillUnmount() {
|
|
@@ -191,19 +191,13 @@ export class MultiSelectComponent extends React.Component {
|
|
|
191
191
|
} //Need To MultiselectNew Component
|
|
192
192
|
|
|
193
193
|
|
|
194
|
-
this.handleComponentDidUpdate(prevProps, prevState);
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
let isElementScrollable = scrollHeight > clientHeight;
|
|
202
|
-
|
|
203
|
-
if (!isElementScrollable) {
|
|
204
|
-
this.handleScrollFuncCall();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
194
|
+
this.handleComponentDidUpdate(prevProps, prevState); // if (isPopupOpen && isNextOptions && prevProps.selectedOptions.length !== selectedOptions.length) {
|
|
195
|
+
// let { scrollHeight, clientHeight } = this.suggestionContainer || {};
|
|
196
|
+
// let isElementScrollable = scrollHeight > clientHeight;
|
|
197
|
+
// if (!isElementScrollable) {
|
|
198
|
+
// this.handleScrollFuncCall();
|
|
199
|
+
// }
|
|
200
|
+
// }
|
|
207
201
|
}
|
|
208
202
|
|
|
209
203
|
componentWillUnmount() {
|
|
@@ -272,19 +272,13 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
272
272
|
} //Need To MultiselectNew Component
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
this.handleComponentDidUpdate(prevProps, prevState);
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
var isElementScrollable = scrollHeight > clientHeight;
|
|
283
|
-
|
|
284
|
-
if (!isElementScrollable) {
|
|
285
|
-
this.handleScrollFuncCall();
|
|
286
|
-
}
|
|
287
|
-
}
|
|
275
|
+
this.handleComponentDidUpdate(prevProps, prevState); // if (isPopupOpen && isNextOptions && prevProps.selectedOptions.length !== selectedOptions.length) {
|
|
276
|
+
// let { scrollHeight, clientHeight } = this.suggestionContainer || {};
|
|
277
|
+
// let isElementScrollable = scrollHeight > clientHeight;
|
|
278
|
+
// if (!isElementScrollable) {
|
|
279
|
+
// this.handleScrollFuncCall();
|
|
280
|
+
// }
|
|
281
|
+
// }
|
|
288
282
|
}
|
|
289
283
|
}, {
|
|
290
284
|
key: "componentWillUnmount",
|
|
@@ -526,9 +520,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
526
520
|
});
|
|
527
521
|
}
|
|
528
522
|
} else {
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
_newLastHighLightedSelectOption3 =
|
|
523
|
+
var _ref2 = isRightArrow ? selectedOptions : selectedOptions.slice(-1),
|
|
524
|
+
_ref3 = _slicedToArray(_ref2, 1),
|
|
525
|
+
_newLastHighLightedSelectOption3 = _ref3[0];
|
|
532
526
|
|
|
533
527
|
this.setState({
|
|
534
528
|
lastHighLightedSelectOption: _newLastHighLightedSelectOption3,
|
|
@@ -738,8 +732,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
738
732
|
var to = id && selectedOptions.indexOf(id) >= 0 ? selectedOptions.indexOf(id) : null;
|
|
739
733
|
|
|
740
734
|
if (to >= 0 && to < from) {
|
|
741
|
-
var
|
|
742
|
-
to =
|
|
735
|
+
var _ref4 = [from, from = to];
|
|
736
|
+
to = _ref4[0];
|
|
743
737
|
}
|
|
744
738
|
|
|
745
739
|
to += 1;
|
|
@@ -889,8 +883,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
889
883
|
});
|
|
890
884
|
}
|
|
891
885
|
|
|
892
|
-
var
|
|
893
|
-
target =
|
|
886
|
+
var _ref5 = e || {},
|
|
887
|
+
target = _ref5.target;
|
|
894
888
|
|
|
895
889
|
target && target.setSelectionRange(target, 0);
|
|
896
890
|
var onFocus = this.props.onFocus;
|
|
@@ -272,19 +272,13 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
272
272
|
} //Need To MultiselectNew Component
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
this.handleComponentDidUpdate(prevProps, prevState);
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
var isElementScrollable = scrollHeight > clientHeight;
|
|
283
|
-
|
|
284
|
-
if (!isElementScrollable) {
|
|
285
|
-
this.handleScrollFuncCall();
|
|
286
|
-
}
|
|
287
|
-
}
|
|
275
|
+
this.handleComponentDidUpdate(prevProps, prevState); // if (isPopupOpen && isNextOptions && prevProps.selectedOptions.length !== selectedOptions.length) {
|
|
276
|
+
// let { scrollHeight, clientHeight } = this.suggestionContainer || {};
|
|
277
|
+
// let isElementScrollable = scrollHeight > clientHeight;
|
|
278
|
+
// if (!isElementScrollable) {
|
|
279
|
+
// this.handleScrollFuncCall();
|
|
280
|
+
// }
|
|
281
|
+
// }
|
|
288
282
|
}
|
|
289
283
|
}, {
|
|
290
284
|
key: "componentWillUnmount",
|
|
@@ -526,9 +520,9 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
526
520
|
});
|
|
527
521
|
}
|
|
528
522
|
} else {
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
_newLastHighLightedSelectOption3 =
|
|
523
|
+
var _ref2 = isRightArrow ? selectedOptions : selectedOptions.slice(-1),
|
|
524
|
+
_ref3 = _slicedToArray(_ref2, 1),
|
|
525
|
+
_newLastHighLightedSelectOption3 = _ref3[0];
|
|
532
526
|
|
|
533
527
|
this.setState({
|
|
534
528
|
lastHighLightedSelectOption: _newLastHighLightedSelectOption3,
|
|
@@ -739,8 +733,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
739
733
|
var to = id && selectedOptions.indexOf(id) >= 0 ? selectedOptions.indexOf(id) : null;
|
|
740
734
|
|
|
741
735
|
if (to >= 0 && to < from) {
|
|
742
|
-
var
|
|
743
|
-
to =
|
|
736
|
+
var _ref4 = [from, from = to];
|
|
737
|
+
to = _ref4[0];
|
|
744
738
|
}
|
|
745
739
|
|
|
746
740
|
to += 1;
|
|
@@ -890,8 +884,8 @@ var MultiSelectComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
890
884
|
});
|
|
891
885
|
}
|
|
892
886
|
|
|
893
|
-
var
|
|
894
|
-
target =
|
|
887
|
+
var _ref5 = e || {},
|
|
888
|
+
target = _ref5.target;
|
|
895
889
|
|
|
896
890
|
target && target.setSelectionRange(target, 0);
|
|
897
891
|
var onFocus = this.props.onFocus;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zohodesk/components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.54",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@zohodesk/a11y": "2.2.6",
|
|
72
72
|
"@zohodesk/docstool": "1.0.0-alpha-2",
|
|
73
73
|
"@zohodesk/hooks": "2.0.5",
|
|
74
|
-
"@zohodesk/icons": "1.0.
|
|
74
|
+
"@zohodesk/icons": "1.0.70",
|
|
75
75
|
"@zohodesk/svg": "1.1.22",
|
|
76
76
|
"@zohodesk/utils": "1.3.14",
|
|
77
77
|
"@zohodesk/variables": "1.0.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"selectn": "1.1.2"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"@zohodesk/icons": "1.0.
|
|
89
|
+
"@zohodesk/icons": "1.0.70",
|
|
90
90
|
"@zohodesk/variables": "1.0.0",
|
|
91
91
|
"@zohodesk/svg": "1.1.22",
|
|
92
92
|
"@zohodesk/virtualizer": "1.0.3",
|