labsense-ui-kit 1.4.36 → 1.4.39
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/dist/index.modern.js
CHANGED
|
@@ -9235,7 +9235,8 @@ var OptionComponent = function OptionComponent(_ref11) {
|
|
|
9235
9235
|
searchBox = _ref11$searchBox === void 0 ? true : _ref11$searchBox,
|
|
9236
9236
|
_ref11$searchBoxTextL = _ref11.searchBoxTextLength,
|
|
9237
9237
|
searchBoxTextLength = _ref11$searchBoxTextL === void 0 ? 50 : _ref11$searchBoxTextL,
|
|
9238
|
-
NoOptionsText = _ref11.NoOptionsText
|
|
9238
|
+
NoOptionsText = _ref11.NoOptionsText,
|
|
9239
|
+
selectAllChecked = _ref11.selectAllChecked;
|
|
9239
9240
|
var _useState = useState(''),
|
|
9240
9241
|
searchQuery = _useState[0],
|
|
9241
9242
|
setSearchQuery = _useState[1];
|
|
@@ -9353,7 +9354,7 @@ var OptionComponent = function OptionComponent(_ref11) {
|
|
|
9353
9354
|
}, React.createElement("input", {
|
|
9354
9355
|
id: option.value,
|
|
9355
9356
|
type: 'checkbox',
|
|
9356
|
-
checked: option.value === '__SELECT_ALL__' ? options.filter(function (o) {
|
|
9357
|
+
checked: option.value === '__SELECT_ALL__' ? selectAllChecked != null ? selectAllChecked : options.filter(function (o) {
|
|
9357
9358
|
return o.value !== '__SELECT_ALL__';
|
|
9358
9359
|
}).every(function (o) {
|
|
9359
9360
|
return selectedOptions.includes(o.value);
|
|
@@ -9708,6 +9709,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref35) {
|
|
|
9708
9709
|
selectAllOption = _ref35$selectAllOptio === void 0 ? false : _ref35$selectAllOptio,
|
|
9709
9710
|
_ref35$selectAllLabel = _ref35.selectAllLabel,
|
|
9710
9711
|
selectAllLabel = _ref35$selectAllLabel === void 0 ? 'Select All' : _ref35$selectAllLabel,
|
|
9712
|
+
selectAllChecked = _ref35.selectAllChecked,
|
|
9711
9713
|
dropdownPosition = _ref35.dropdownPosition,
|
|
9712
9714
|
_ref35$showAllSelecte = _ref35.showAllSelected,
|
|
9713
9715
|
showAllSelected = _ref35$showAllSelecte === void 0 ? false : _ref35$showAllSelecte;
|
|
@@ -9842,7 +9844,7 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref35) {
|
|
|
9842
9844
|
});
|
|
9843
9845
|
var handleOptionChange = function handleOptionChange(values) {
|
|
9844
9846
|
if (values.includes(SELECT_ALL_VALUE)) {
|
|
9845
|
-
var isAllSelected = allOptionValues.every(function (v) {
|
|
9847
|
+
var isAllSelected = selectAllChecked != null ? selectAllChecked : allOptionValues.every(function (v) {
|
|
9846
9848
|
return selectedOptions.includes(v);
|
|
9847
9849
|
});
|
|
9848
9850
|
handleSelectChange(isAllSelected ? [] : allOptionValues);
|
|
@@ -10012,7 +10014,8 @@ var MultiSelectDropdown = function MultiSelectDropdown(_ref35) {
|
|
|
10012
10014
|
searchBoxBackground: searchBoxBackground,
|
|
10013
10015
|
searchBox: searchBox,
|
|
10014
10016
|
searchBoxTextLength: searchBoxTextLength,
|
|
10015
|
-
NoOptionsText: NoOptionsText
|
|
10017
|
+
NoOptionsText: NoOptionsText,
|
|
10018
|
+
selectAllChecked: selectAllChecked
|
|
10016
10019
|
}))));
|
|
10017
10020
|
};
|
|
10018
10021
|
|
|
@@ -13020,6 +13023,7 @@ var Table = function Table(_ref9) {
|
|
|
13020
13023
|
"$fontSize": '12px',
|
|
13021
13024
|
"$lineHeight": '100%'
|
|
13022
13025
|
}, role, " (", rows.length, ")"), React.createElement(Icon, {
|
|
13026
|
+
cursor: 'pointer',
|
|
13023
13027
|
size: 12,
|
|
13024
13028
|
icon: collapsedRoles.has(role) ? 'UpArrow' : 'DownArrow'
|
|
13025
13029
|
})), !collapsedRoles.has(role) && rows.map(function (row, index) {
|