gd-bs 6.5.5 → 6.5.7
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/build/components/card/index.js +5 -0
- package/build/components/card/templates.js +1 -1
- package/build/components/cardGroup/index.js +6 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +8 -4
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/index.html +4 -0
- package/package.json +1 -1
- package/src/components/card/index.ts +6 -0
- package/src/components/card/templates.ts +3 -3
- package/src/components/card/types.d.ts +5 -4
- package/src/components/cardGroup/index.ts +9 -0
- package/src/components/cardGroup/types.d.ts +3 -0
|
@@ -74,6 +74,11 @@ var _Card = /** @class */ (function (_super) {
|
|
|
74
74
|
_this.props.onClick(body.props);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
// See if there is a render event
|
|
78
|
+
if (this.props.onRender) {
|
|
79
|
+
// Call the event
|
|
80
|
+
this.props.onRender(this.el, body.props);
|
|
81
|
+
}
|
|
77
82
|
};
|
|
78
83
|
// Configure the header
|
|
79
84
|
_Card.prototype.configureHeader = function () {
|
|
@@ -6,4 +6,4 @@ exports.HTML = "<div class=\"card\"></div>";
|
|
|
6
6
|
// Action
|
|
7
7
|
exports.HTMLAction = "<a href=\"#\" class=\"btn\"></a>";
|
|
8
8
|
// Item
|
|
9
|
-
exports.HTMLItem = "\n<div class=\"card-body\">\n <
|
|
9
|
+
exports.HTMLItem = "\n<div class=\"card-body\">\n <div class=\"card-title h5\"></div>\n <div class=\"card-subtitle h6\"></div>\n <div class=\"card-text p\"></div>\n</div>".trim();
|
|
@@ -62,12 +62,18 @@ var _CardGroup = /** @class */ (function (_super) {
|
|
|
62
62
|
elCol.appendChild(card.el);
|
|
63
63
|
// Add the card
|
|
64
64
|
this.el.appendChild(elCol);
|
|
65
|
+
// Call the event
|
|
66
|
+
this.props.onColRender ? this.props.onColRender(elCol, cards[i]) : null;
|
|
65
67
|
}
|
|
66
68
|
else {
|
|
67
69
|
// Add the card
|
|
68
70
|
this.el.appendChild(card.el);
|
|
71
|
+
// Call the event
|
|
72
|
+
this.props.onCardRender ? this.props.onCardRender(card.el, cards[i]) : null;
|
|
69
73
|
}
|
|
70
74
|
}
|
|
75
|
+
// Call the event
|
|
76
|
+
this.props.onRender ? this.props.onRender(this.el, this.props) : null;
|
|
71
77
|
};
|
|
72
78
|
return _CardGroup;
|
|
73
79
|
}(base_1.Base));
|