gd-bs 6.6.48 → 6.6.50

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.
@@ -27,7 +27,8 @@ var CardBody = /** @class */ (function () {
27
27
  CardBody.prototype.configure = function () {
28
28
  // Set the class names
29
29
  if (this._props.className) {
30
- this._el.classList.add(this._props.className);
30
+ // Set the class names
31
+ (0, common_1.setClassNames)(this._el, this._props.className);
31
32
  }
32
33
  // Update the title
33
34
  var elTitle = this._el.querySelector(".card-title");
@@ -40,15 +40,22 @@ var _CardGroup = /** @class */ (function (_super) {
40
40
  var cards = this.props.cards || [];
41
41
  var isGrid = false;
42
42
  // See if we are rendering columns
43
- if (typeof (this.props.colSize) === "number") {
43
+ if (typeof (this.props.colSize) === "number" || this.props.colSize == "auto") {
44
44
  // Update the flag
45
45
  isGrid = true;
46
46
  // Update the class name
47
47
  this.el.classList.remove("card-group");
48
48
  this.el.classList.add("row");
49
- // Determine the column class to use
50
- var colSize = this.props.colSize > 0 && this.props.colSize <= 12 ? this.props.colSize : 4;
51
- this.el.classList.add("row-cols-" + colSize);
49
+ // See if the column size is a number
50
+ if (this.props.colSize == "auto") {
51
+ // Set the column to auto size
52
+ this.el.classList.add("row-cols-auto");
53
+ }
54
+ else {
55
+ // Determine the column class to use
56
+ var colSize = this.props.colSize > 0 && this.props.colSize <= 12 ? this.props.colSize : 4;
57
+ this.el.classList.add("row-cols-" + colSize);
58
+ }
52
59
  }
53
60
  // Parse the cards
54
61
  for (var i = 0; i < cards.length; i++) {