@coreui/react-pro 4.11.0-next.1 → 4.11.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/dist/index.js CHANGED
@@ -2636,15 +2636,6 @@ CAccordionButton.propTypes = {
2636
2636
  };
2637
2637
  CAccordionButton.displayName = 'CAccordionButton';
2638
2638
 
2639
- var CAccordionCollapse = React$1.forwardRef(function (_a, ref) {
2640
- var children = _a.children, props = __rest$1(_a, ["children"]);
2641
- return (React$1.createElement(CCollapse, __assign$1({ className: "accordion-collapse" }, props, { ref: ref }), children));
2642
- });
2643
- CAccordionCollapse.propTypes = {
2644
- children: propTypesExports.node,
2645
- };
2646
- CAccordionCollapse.displayName = 'CAccordionCollapse';
2647
-
2648
2639
  var CAccordionHeader = React$1.forwardRef(function (_a, ref) {
2649
2640
  var children = _a.children, className = _a.className, rest = __rest$1(_a, ["children", "className"]);
2650
2641
  return (React$1.createElement("div", __assign$1({ className: classNames$1('accordion-header', className) }, rest, { ref: ref }),
@@ -9967,11 +9958,12 @@ var PopperManagerWrapper = function (_a) {
9967
9958
  };
9968
9959
  var CDropdownContext = React$1.createContext({});
9969
9960
  var CDropdown = React$1.forwardRef(function (_a, ref) {
9970
- var children = _a.children, alignment = _a.alignment, _b = _a.autoClose, autoClose = _b === void 0 ? true : _b, className = _a.className, dark = _a.dark, direction = _a.direction, onHide = _a.onHide, onShow = _a.onShow, _c = _a.placement, placement = _c === void 0 ? 'bottom-start' : _c, _d = _a.popper, popper = _d === void 0 ? true : _d, _e = _a.variant, variant = _e === void 0 ? 'btn-group' : _e, _f = _a.component, component = _f === void 0 ? 'div' : _f, _g = _a.visible, visible = _g === void 0 ? false : _g, rest = __rest$1(_a, ["children", "alignment", "autoClose", "className", "dark", "direction", "onHide", "onShow", "placement", "popper", "variant", "component", "visible"]);
9961
+ var _b;
9962
+ var children = _a.children, alignment = _a.alignment, _c = _a.autoClose, autoClose = _c === void 0 ? true : _c, className = _a.className, dark = _a.dark, direction = _a.direction, onHide = _a.onHide, onShow = _a.onShow, _d = _a.placement, placement = _d === void 0 ? 'bottom-start' : _d, _e = _a.popper, popper = _e === void 0 ? true : _e, _f = _a.portal, portal = _f === void 0 ? false : _f, _g = _a.variant, variant = _g === void 0 ? 'btn-group' : _g, _h = _a.component, component = _h === void 0 ? 'div' : _h, _j = _a.visible, visible = _j === void 0 ? false : _j, rest = __rest$1(_a, ["children", "alignment", "autoClose", "className", "dark", "direction", "onHide", "onShow", "placement", "popper", "portal", "variant", "component", "visible"]);
9971
9963
  var dropdownRef = React$1.useRef(null);
9972
9964
  var dropdownToggleRef = React$1.useRef(null);
9973
9965
  var forkedRef = useForkedRef(ref, dropdownRef);
9974
- var _h = React$1.useState(visible), _visible = _h[0], setVisible = _h[1];
9966
+ var _k = React$1.useState(visible), _visible = _k[0], setVisible = _k[1];
9975
9967
  var Component = variant === 'nav-item' ? 'li' : component;
9976
9968
  // Disable popper if responsive aligment is set.
9977
9969
  if (typeof alignment === 'object') {
@@ -9985,6 +9977,7 @@ var CDropdown = React$1.forwardRef(function (_a, ref) {
9985
9977
  dropdownToggleRef: dropdownToggleRef,
9986
9978
  placement: placement,
9987
9979
  popper: popper,
9980
+ portal: portal,
9988
9981
  variant: variant,
9989
9982
  visible: _visible,
9990
9983
  setVisible: setVisible,
@@ -9997,12 +9990,13 @@ var CDropdown = React$1.forwardRef(function (_a, ref) {
9997
9990
  !_visible && onHide && onHide();
9998
9991
  }, [_visible]);
9999
9992
  return (React$1.createElement(CDropdownContext.Provider, { value: contextValues },
10000
- React$1.createElement(PopperManagerWrapper, { popper: popper }, variant === 'input-group' ? (React$1.createElement(React$1.Fragment, null, children)) : (React$1.createElement(Component, __assign$1({ className: classNames$1(variant === 'nav-item' ? 'nav-item dropdown' : variant, {
10001
- 'dropdown-center': direction === 'center',
10002
- 'dropup dropup-center': direction === 'dropup-center',
10003
- direction: direction && direction !== 'center' && direction !== 'dropup-center',
10004
- show: _visible,
10005
- }, className) }, rest, { ref: forkedRef }), children)))));
9993
+ React$1.createElement(PopperManagerWrapper, { popper: popper }, variant === 'input-group' ? (React$1.createElement(React$1.Fragment, null, children)) : (React$1.createElement(Component, __assign$1({ className: classNames$1(variant === 'nav-item' ? 'nav-item dropdown' : variant, (_b = {
9994
+ 'dropdown-center': direction === 'center',
9995
+ 'dropup dropup-center': direction === 'dropup-center'
9996
+ },
9997
+ _b["".concat(direction)] = direction && direction !== 'center' && direction !== 'dropup-center',
9998
+ _b.show = _visible,
9999
+ _b), className) }, rest, { ref: forkedRef }), children)))));
10006
10000
  });
10007
10001
  var alignmentDirection = propTypesExports.oneOf(['start', 'end']);
10008
10002
  CDropdown.propTypes = {
@@ -10029,14 +10023,27 @@ CDropdown.propTypes = {
10029
10023
  onShow: propTypesExports.func,
10030
10024
  placement: placementPropType,
10031
10025
  popper: propTypesExports.bool,
10026
+ portal: propTypesExports.bool,
10032
10027
  variant: propTypesExports.oneOf(['btn-group', 'dropdown', 'input-group', 'nav-item']),
10033
10028
  visible: propTypesExports.bool,
10034
10029
  };
10035
10030
  CDropdown.displayName = 'CDropdown';
10036
10031
 
10032
+ var alignmentClassNames = function (alignment) {
10033
+ var classNames = [];
10034
+ if (typeof alignment === 'object') {
10035
+ Object.keys(alignment).map(function (key) {
10036
+ classNames.push("dropdown-menu".concat(key === 'xs' ? '' : "-".concat(key), "-").concat(alignment[key]));
10037
+ });
10038
+ }
10039
+ if (typeof alignment === 'string') {
10040
+ classNames.push("dropdown-menu-".concat(alignment));
10041
+ }
10042
+ return classNames;
10043
+ };
10037
10044
  var CDropdownMenu = function (_a) {
10038
10045
  var children = _a.children, className = _a.className, _b = _a.component, Component = _b === void 0 ? 'ul' : _b, rest = __rest$1(_a, ["children", "className", "component"]);
10039
- var _c = React$1.useContext(CDropdownContext), alignment = _c.alignment, autoClose = _c.autoClose, dark = _c.dark, direction = _c.direction, dropdownToggleRef = _c.dropdownToggleRef, placement = _c.placement, popper = _c.popper, visible = _c.visible, setVisible = _c.setVisible;
10046
+ var _c = React$1.useContext(CDropdownContext), alignment = _c.alignment, autoClose = _c.autoClose, dark = _c.dark, direction = _c.direction, dropdownToggleRef = _c.dropdownToggleRef, placement = _c.placement, popper = _c.popper, portal = _c.portal, visible = _c.visible, setVisible = _c.setVisible;
10040
10047
  var dropdownMenuRef = React$1.useRef(null);
10041
10048
  React$1.useEffect(function () {
10042
10049
  visible && window.addEventListener('mouseup', handleMouseUp);
@@ -10085,29 +10092,18 @@ var CDropdownMenu = function (_a) {
10085
10092
  if (alignment === 'end') {
10086
10093
  _placement = 'bottom-end';
10087
10094
  }
10088
- var alignmentClassNames = function (alignment) {
10089
- var classNames = [];
10090
- if (typeof alignment === 'object') {
10091
- Object.keys(alignment).map(function (key) {
10092
- classNames.push("dropdown-menu".concat(key === 'xs' ? '' : "-".concat(key), "-").concat(alignment[key]));
10093
- });
10094
- }
10095
- if (typeof alignment === 'string') {
10096
- classNames.push("dropdown-menu-".concat(alignment));
10097
- }
10098
- return classNames;
10099
- };
10100
- var dropdownMenuComponent = function (style, ref) { return (React$1.createElement(Component, __assign$1({ className: classNames$1('dropdown-menu', {
10101
- 'dropdown-menu-dark': dark,
10102
- show: visible,
10103
- }, alignment && alignmentClassNames(alignment), className), ref: ref, style: style, role: "menu", "aria-hidden": !visible }, (!popper && { 'data-coreui-popper': 'static' }), rest), Component === 'ul'
10104
- ? React$1.Children.map(children, function (child, index) {
10105
- if (React$1.isValidElement(child)) {
10106
- return React$1.createElement("li", { key: index }, React$1.cloneElement(child));
10107
- }
10108
- return;
10109
- })
10110
- : children)); };
10095
+ var dropdownMenuComponent = function (style, ref) { return (React$1.createElement(CConditionalPortal, { portal: portal !== null && portal !== void 0 ? portal : false },
10096
+ React$1.createElement(Component, __assign$1({ className: classNames$1('dropdown-menu', {
10097
+ 'dropdown-menu-dark': dark,
10098
+ show: visible,
10099
+ }, alignment && alignmentClassNames(alignment), className), ref: ref, style: style, role: "menu", "aria-hidden": !visible }, (!popper && { 'data-coreui-popper': 'static' }), rest), Component === 'ul'
10100
+ ? React$1.Children.map(children, function (child, index) {
10101
+ if (React$1.isValidElement(child)) {
10102
+ return React$1.createElement("li", { key: index }, React$1.cloneElement(child));
10103
+ }
10104
+ return;
10105
+ })
10106
+ : children))); };
10111
10107
  return popper && visible ? (React$1.createElement(Popper, { innerRef: dropdownMenuRef, placement: _placement }, function (_a) {
10112
10108
  var ref = _a.ref, style = _a.style;
10113
10109
  return dropdownMenuComponent(style, ref);
@@ -11934,11 +11930,9 @@ var COffcanvas = React$1.forwardRef(function (_a, ref) {
11934
11930
  setVisible(visible);
11935
11931
  }, [visible]);
11936
11932
  React$1.useEffect(function () {
11937
- if (_visible) {
11938
- if (!scroll) {
11939
- document.body.style.overflow = 'hidden';
11940
- document.body.style.paddingRight = '0px';
11941
- }
11933
+ if (_visible && !scroll) {
11934
+ document.body.style.overflow = 'hidden';
11935
+ document.body.style.paddingRight = '0px';
11942
11936
  return;
11943
11937
  }
11944
11938
  if (!scroll) {
@@ -13870,12 +13864,104 @@ var getColumnLabel = function (column) {
13870
13864
  : pretifyName(column.key)
13871
13865
  : pretifyName(column);
13872
13866
  };
13867
+ // export const getColumnNames = (columns: (string | Column)[] | undefined, items: Item[]) =>
13868
+ // columns
13869
+ // ? columns.map((column: Column | string) => {
13870
+ // return typeof column === 'object' ? column.key : column
13871
+ // })
13872
+ // : getColumnNamesFromItems(items)
13873
13873
  var getColumnNames = function (columns, items) {
13874
- return columns
13875
- ? columns.map(function (column) {
13876
- return typeof column === 'object' ? column.key : column;
13877
- })
13878
- : getColumnNamesFromItems(items);
13874
+ if (columns) {
13875
+ var _columns = [];
13876
+ for (var _i = 0, columns_1 = columns; _i < columns_1.length; _i++) {
13877
+ var column = columns_1[_i];
13878
+ if (typeof column === 'object' && column.children) {
13879
+ _columns.push.apply(_columns, getColumnNames(column.children, []));
13880
+ continue;
13881
+ }
13882
+ typeof column === 'object' ? _columns.push(column.key) : _columns.push(column);
13883
+ }
13884
+ return _columns;
13885
+ }
13886
+ return getColumnNamesFromItems(items);
13887
+ };
13888
+ var getColumns = function (_columns) {
13889
+ var columns = [];
13890
+ for (var _i = 0, _columns_1 = _columns; _i < _columns_1.length; _i++) {
13891
+ var column = _columns_1[_i];
13892
+ if (typeof column === 'object' && column.group && column.children) {
13893
+ columns.push.apply(columns, getColumns(column.children));
13894
+ continue;
13895
+ }
13896
+ if (typeof column === 'object' && column.children) {
13897
+ columns.push.apply(columns, getColumns(column.children));
13898
+ }
13899
+ columns.push(column);
13900
+ }
13901
+ return columns;
13902
+ };
13903
+ var countColumns = function (columns, counter) {
13904
+ if (counter === void 0) { counter = 0; }
13905
+ var _counter = counter;
13906
+ for (var _i = 0, columns_2 = columns; _i < columns_2.length; _i++) {
13907
+ var column = columns_2[_i];
13908
+ if (!column.children) {
13909
+ _counter++;
13910
+ }
13911
+ if (column.children) {
13912
+ _counter = countColumns(column.children, _counter);
13913
+ }
13914
+ }
13915
+ return _counter;
13916
+ };
13917
+ var getColumnGroups = function (columns) {
13918
+ var groups = [];
13919
+ var traverseColumns = function (column, deep, colSpan) {
13920
+ if (deep === void 0) { deep = 0; }
13921
+ var groups = [];
13922
+ if (column.children) {
13923
+ for (var _i = 0, _a = column.children; _i < _a.length; _i++) {
13924
+ var _column = _a[_i];
13925
+ if (!_column.group) ;
13926
+ groups.push.apply(groups, traverseColumns(_column, deep + 1));
13927
+ }
13928
+ }
13929
+ if (typeof column === 'object' && column.group) {
13930
+ var children = column.children, group = column.group, rest = __rest$1(column, ["children", "group"]);
13931
+ groups.push(__assign$1(__assign$1({ deep: deep, label: group }, (children && { colspan: countColumns(children) })), rest));
13932
+ }
13933
+ return groups;
13934
+ };
13935
+ if (columns) {
13936
+ for (var _i = 0, columns_3 = columns; _i < columns_3.length; _i++) {
13937
+ var column = columns_3[_i];
13938
+ if (typeof column === 'object' && column.group) {
13939
+ var objects = traverseColumns(column);
13940
+ if (objects) {
13941
+ for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) {
13942
+ var object = objects_1[_a];
13943
+ var deep = object.deep, rest = __rest$1(object, ["deep"]);
13944
+ if (deep === undefined) {
13945
+ continue;
13946
+ }
13947
+ for (var i = 0; i < deep; i++) {
13948
+ if (groups[i]) {
13949
+ continue;
13950
+ }
13951
+ groups.push([]);
13952
+ }
13953
+ if (groups[deep]) {
13954
+ groups[deep].push(rest);
13955
+ }
13956
+ else {
13957
+ groups.push([rest]);
13958
+ }
13959
+ }
13960
+ }
13961
+ }
13962
+ }
13963
+ }
13964
+ return groups;
13879
13965
  };
13880
13966
  var getColumnNamesFromItems = function (items) {
13881
13967
  return Object.keys(items[0] || {}).filter(function (el) { return el.charAt(0) !== '_'; });
@@ -13957,7 +14043,7 @@ var CSmartTableBody = React$1.forwardRef(function (_a, ref) {
13957
14043
  var colspan = selectable ? columnNames.length + 1 : columnNames.length;
13958
14044
  return (React$1.createElement(CTableBody, __assign$1({}, (clickableRows && {
13959
14045
  style: { cursor: 'pointer' },
13960
- }), rest, { ref: ref }), currentItems.length ? (currentItems.map(function (item, trIndex) {
14046
+ }), rest, { ref: ref }), currentItems.length > 0 ? (currentItems.map(function (item, trIndex) {
13961
14047
  return (React$1.createElement(React$1.Fragment, { key: trIndex },
13962
14048
  React$1.createElement(CTableRow, __assign$1({}, (item._props && __assign$1({}, item._props)), (clickableRows && { tabIndex: 0 }), { onClick: function (event) {
13963
14049
  return onRowClick &&
@@ -13977,7 +14063,8 @@ var CSmartTableBody = React$1.forwardRef(function (_a, ref) {
13977
14063
  scopedColumns[colName] &&
13978
14064
  React$1.cloneElement(scopedColumns[colName](item, trIndex + firstItemOnActivePageIndex), {
13979
14065
  key: index,
13980
- })) || (React$1.createElement(CTableDataCell, __assign$1({}, getTableDataCellProps(item, colName), { key: index }), String(item[colName]))));
14066
+ })) ||
14067
+ (item[colName] && (React$1.createElement(CTableDataCell, __assign$1({}, getTableDataCellProps(item, colName), { key: index }), String(item[colName])))));
13981
14068
  })),
13982
14069
  scopedColumns && scopedColumns.details && (React$1.createElement(React$1.Fragment, null,
13983
14070
  React$1.createElement(CTableRow, null,
@@ -14018,9 +14105,11 @@ CSmartTableCleaner.propTypes = {
14018
14105
  CSmartTableCleaner.displayName = 'CSmartTableCleaner';
14019
14106
 
14020
14107
  var CSmartTableHead = React$1.forwardRef(function (_a, ref) {
14021
- var columnFilter = _a.columnFilter, columnFilterState = _a.columnFilterState, columnSorter = _a.columnSorter, _b = _a.component, Component = _b === void 0 ? CTableHead : _b, columns = _a.columns, handleOnCustomFilterChange = _a.handleOnCustomFilterChange, handleFilterOnChange = _a.handleFilterOnChange, handleFilterOnInput = _a.handleFilterOnInput, handleSelectAllChecked = _a.handleSelectAllChecked, handleSort = _a.handleSort, items = _a.items, selectable = _a.selectable, selectAll = _a.selectAll, selectedAll = _a.selectedAll, sorterState = _a.sorterState, sortingIcon = _a.sortingIcon, sortingIconAscending = _a.sortingIconAscending, sortingIconDescending = _a.sortingIconDescending, rest = __rest$1(_a, ["columnFilter", "columnFilterState", "columnSorter", "component", "columns", "handleOnCustomFilterChange", "handleFilterOnChange", "handleFilterOnInput", "handleSelectAllChecked", "handleSort", "items", "selectable", "selectAll", "selectedAll", "sorterState", "sortingIcon", "sortingIconAscending", "sortingIconDescending"]);
14108
+ var columnFilter = _a.columnFilter, columnFilterState = _a.columnFilterState, columnSorter = _a.columnSorter, _b = _a.component, Component = _b === void 0 ? CTableHead : _b, columns = _a.columns, handleOnCustomFilterChange = _a.handleOnCustomFilterChange, handleFilterOnChange = _a.handleFilterOnChange, handleFilterOnInput = _a.handleFilterOnInput, handleSelectAllChecked = _a.handleSelectAllChecked, handleSort = _a.handleSort, items = _a.items, selectable = _a.selectable, selectAll = _a.selectAll, selectedAll = _a.selectedAll, _c = _a.showGroups, showGroups = _c === void 0 ? true : _c, sorterState = _a.sorterState, sortingIcon = _a.sortingIcon, sortingIconAscending = _a.sortingIconAscending, sortingIconDescending = _a.sortingIconDescending, rest = __rest$1(_a, ["columnFilter", "columnFilterState", "columnSorter", "component", "columns", "handleOnCustomFilterChange", "handleFilterOnChange", "handleFilterOnInput", "handleSelectAllChecked", "handleSort", "items", "selectable", "selectAll", "selectedAll", "showGroups", "sorterState", "sortingIcon", "sortingIconAscending", "sortingIconDescending"]);
14022
14109
  var selectAllcheckboxRef = React$1.useRef(null);
14023
- var _c = React$1.useState(false), refresh = _c[0], setRefresh = _c[1];
14110
+ var _d = React$1.useState(false), refresh = _d[0], setRefresh = _d[1];
14111
+ var _columns = React$1.useMemo(function () { return getColumns(columns); }, [columns]);
14112
+ var groups = React$1.useMemo(function () { return getColumnGroups(columns); }, [columns]);
14024
14113
  React$1.useEffect(function () {
14025
14114
  if (selectedAll === 'indeterminate') {
14026
14115
  if (selectAllcheckboxRef.current)
@@ -14057,27 +14146,33 @@ var CSmartTableHead = React$1.forwardRef(function (_a, ref) {
14057
14146
  return;
14058
14147
  };
14059
14148
  return (React$1.createElement(Component, __assign$1({}, rest, { ref: ref }),
14149
+ showGroups &&
14150
+ groups &&
14151
+ groups.length > 0 &&
14152
+ groups.map(function (row, index) { return (React$1.createElement(CTableRow, { key: index },
14153
+ selectable && React$1.createElement(CTableHeaderCell, null),
14154
+ row.map(function (cell, index) { return (React$1.createElement(CTableHeaderCell, __assign$1({ colSpan: cell.colspan }, getTableHeaderCellProps(cell), { key: index }), cell.label)); }))); }),
14060
14155
  React$1.createElement(CTableRow, null,
14061
14156
  selectable && (React$1.createElement(CTableHeaderCell, null, selectAll && (React$1.createElement(CFormCheck, { checked: typeof selectedAll === 'boolean' ? selectedAll : false, onChange: function () { return handleSelectAllChecked && handleSelectAllChecked(); }, ref: selectAllcheckboxRef })))),
14062
- columns.map(function (column, index) {
14157
+ _columns.map(function (column, index) {
14063
14158
  return (React$1.createElement(CTableHeaderCell, __assign$1({}, getTableHeaderCellProps(column), { onClick: function () { return handleSort && handleSort(getColumnKey(column), index); }, style: getTableHeaderCellStyles(column, columnSorter), key: index }),
14064
14159
  React$1.createElement("div", { className: "d-inline" }, getColumnLabel(column)),
14065
14160
  columnSorter &&
14066
- (typeof column !== 'object'
14067
- ? true
14068
- : typeof column.sorter === 'undefined'
14161
+ (typeof column === 'object'
14162
+ ? typeof column.sorter === 'undefined'
14069
14163
  ? true
14070
- : column.sorter) &&
14164
+ : column.sorter
14165
+ : true) &&
14071
14166
  columnSorterIcon(column)));
14072
14167
  })),
14073
14168
  columnFilter && (React$1.createElement(CTableRow, null,
14074
14169
  selectable && React$1.createElement(CTableHeaderCell, null),
14075
- columns.map(function (column, index) {
14076
- return (React$1.createElement(CTableHeaderCell, __assign$1({}, getTableHeaderCellProps(column), { key: index }), (typeof column !== 'object'
14077
- ? true
14078
- : typeof column.filter === 'undefined'
14170
+ _columns.map(function (column, index) {
14171
+ return (React$1.createElement(CTableHeaderCell, __assign$1({}, getTableHeaderCellProps(column), { key: index }), (typeof column === 'object'
14172
+ ? column.filter === undefined
14079
14173
  ? true
14080
- : column.filter) ? (typeof column !== 'string' && typeof column.filter === 'function' ? (!refresh &&
14174
+ : column.filter
14175
+ : true) ? (typeof column !== 'string' && typeof column.filter === 'function' ? (!refresh &&
14081
14176
  column.filter(getColumnValues(items, getColumnKey(column)), function (value) {
14082
14177
  return handleOnCustomFilterChange &&
14083
14178
  handleOnCustomFilterChange(getColumnKey(column), value);
@@ -14126,7 +14221,7 @@ var CSmartTable = React$1.forwardRef(function (_a, ref) {
14126
14221
  var _u = React$1.useState({}), columnFilterState = _u[0], setColumnFilterState = _u[1];
14127
14222
  var _v = React$1.useState(), selectedAll = _v[0], setSelectedAll = _v[1];
14128
14223
  var _w = React$1.useState({}), sorterState = _w[0], setSorterState = _w[1];
14129
- var _x = React$1.useState(tableFilterValue ? tableFilterValue : ''), tableFilterState = _x[0], setTableFilterState = _x[1];
14224
+ var _x = React$1.useState(tableFilterValue !== null && tableFilterValue !== void 0 ? tableFilterValue : ''), tableFilterState = _x[0], setTableFilterState = _x[1];
14130
14225
  React$1.useEffect(function () {
14131
14226
  setActivePage(activePage);
14132
14227
  }, [activePage]);
@@ -14189,7 +14284,7 @@ var CSmartTable = React$1.forwardRef(function (_a, ref) {
14189
14284
  setSelectedAll(false);
14190
14285
  return;
14191
14286
  }
14192
- if (_selected.length !== 0 && _selected.length !== _itemsNumber) {
14287
+ if (_selected.length > 0 && _selected.length !== _itemsNumber) {
14193
14288
  setSelectedAll('indeterminate');
14194
14289
  }
14195
14290
  }
@@ -14315,7 +14410,7 @@ var CSmartTable = React$1.forwardRef(function (_a, ref) {
14315
14410
  React$1.createElement(CSmartTableBody, __assign$1({ clickableRows: clickableRows, currentItems: currentItems, firstItemOnActivePageIndex: firstItemOnActivePageIndex, noItemsLabel: noItemsLabel, onRowClick: function (item, index, columnName, event) {
14316
14411
  return clickableRows && onRowClick && onRowClick(item, index, columnName, event);
14317
14412
  }, onRowChecked: function (item, value) { return handleRowChecked(item, value); }, columnNames: columnNames, scopedColumns: scopedColumns, selectable: selectable, selected: _selected }, tableBodyProps)),
14318
- typeof footer === 'boolean' && footer && (React$1.createElement(CSmartTableHead, __assign$1({ component: CTableFoot }, tableFootProps, { columnFilter: false, columnSorter: false, columns: columns !== null && columns !== void 0 ? columns : columnNames, items: _items, handleSelectAllChecked: function () { return handleSelectAllChecked(); }, selectable: selectable, selectAll: selectAll, selectedAll: selectedAll }))),
14413
+ typeof footer === 'boolean' && footer && (React$1.createElement(CSmartTableHead, __assign$1({ component: CTableFoot }, tableFootProps, { columnFilter: false, columnSorter: false, columns: columns !== null && columns !== void 0 ? columns : columnNames, items: _items, handleSelectAllChecked: function () { return handleSelectAllChecked(); }, selectable: selectable, selectAll: selectAll, selectedAll: selectedAll, showGroups: false }))),
14319
14414
  Array.isArray(footer) && (React$1.createElement(CTableFoot, __assign$1({}, tableFootProps),
14320
14415
  React$1.createElement(CTableRow, null, footer.map(function (item, index) { return (React$1.createElement(CTableDataCell, __assign$1({}, (typeof item === 'object' && item._props && __assign$1({}, item._props)), { key: index }), typeof item === 'object' ? item.label : item)); }))))),
14321
14416
  loading && (React$1.createElement(CElementCover, { boundaries: [
@@ -14883,7 +14978,6 @@ CWidgetStatsF.displayName = 'CWidgetStatsF';
14883
14978
  exports.CAccordion = CAccordion;
14884
14979
  exports.CAccordionBody = CAccordionBody;
14885
14980
  exports.CAccordionButton = CAccordionButton;
14886
- exports.CAccordionCollapse = CAccordionCollapse;
14887
14981
  exports.CAccordionHeader = CAccordionHeader;
14888
14982
  exports.CAccordionItem = CAccordionItem;
14889
14983
  exports.CAlert = CAlert;