gd-bs 6.6.57 → 6.6.59
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/bs.js +1 -1
- package/build/components/jumbotron/index.js +59 -1
- package/build/components/jumbotron/templates.js +1 -1
- package/build/components/listGroup/item.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 +30 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/index.html +3 -1
- package/package.json +1 -1
- package/src/components/jumbotron/index.ts +60 -0
- package/src/components/jumbotron/templates.ts +1 -1
- package/src/components/jumbotron/types.d.ts +29 -1
- package/src/components/listGroup/item.ts +7 -0
- package/src/components/listGroup/types.d.ts +1 -0
- package/src/styles/_custom.scss +330 -51
|
@@ -15,10 +15,60 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Jumbotron = void 0;
|
|
18
|
+
exports.Jumbotron = exports.JumbotronTypeClassNames = exports.JumbotronSizeClassNames = exports.JumbotronTypes = exports.JumbotronSize = void 0;
|
|
19
19
|
var base_1 = require("../base");
|
|
20
|
+
var classNames_1 = require("../classNames");
|
|
20
21
|
var common_1 = require("../common");
|
|
21
22
|
var templates_1 = require("./templates");
|
|
23
|
+
/**
|
|
24
|
+
* Jumbotron Size
|
|
25
|
+
*/
|
|
26
|
+
var JumbotronSize;
|
|
27
|
+
(function (JumbotronSize) {
|
|
28
|
+
JumbotronSize[JumbotronSize["XSmall"] = 1] = "XSmall";
|
|
29
|
+
JumbotronSize[JumbotronSize["Small"] = 2] = "Small";
|
|
30
|
+
JumbotronSize[JumbotronSize["Medium"] = 3] = "Medium";
|
|
31
|
+
JumbotronSize[JumbotronSize["Large"] = 4] = "Large";
|
|
32
|
+
JumbotronSize[JumbotronSize["XLarge"] = 5] = "XLarge";
|
|
33
|
+
})(JumbotronSize = exports.JumbotronSize || (exports.JumbotronSize = {}));
|
|
34
|
+
/**
|
|
35
|
+
* Jumbotron Types
|
|
36
|
+
*/
|
|
37
|
+
var JumbotronTypes;
|
|
38
|
+
(function (JumbotronTypes) {
|
|
39
|
+
JumbotronTypes[JumbotronTypes["Danger"] = 1] = "Danger";
|
|
40
|
+
JumbotronTypes[JumbotronTypes["Dark"] = 2] = "Dark";
|
|
41
|
+
JumbotronTypes[JumbotronTypes["Info"] = 3] = "Info";
|
|
42
|
+
JumbotronTypes[JumbotronTypes["Light"] = 4] = "Light";
|
|
43
|
+
JumbotronTypes[JumbotronTypes["Primary"] = 5] = "Primary";
|
|
44
|
+
JumbotronTypes[JumbotronTypes["Secondary"] = 6] = "Secondary";
|
|
45
|
+
JumbotronTypes[JumbotronTypes["Success"] = 7] = "Success";
|
|
46
|
+
JumbotronTypes[JumbotronTypes["Warning"] = 8] = "Warning";
|
|
47
|
+
})(JumbotronTypes = exports.JumbotronTypes || (exports.JumbotronTypes = {}));
|
|
48
|
+
/**
|
|
49
|
+
* Jumbotron Classes
|
|
50
|
+
*/
|
|
51
|
+
exports.JumbotronSizeClassNames = new classNames_1.ClassNames([
|
|
52
|
+
"py-1",
|
|
53
|
+
"py-2",
|
|
54
|
+
"py-3",
|
|
55
|
+
"py-4",
|
|
56
|
+
"py-5"
|
|
57
|
+
]);
|
|
58
|
+
/**
|
|
59
|
+
* Jumbotron Classes
|
|
60
|
+
*/
|
|
61
|
+
exports.JumbotronTypeClassNames = new classNames_1.ClassNames([
|
|
62
|
+
"jumbotron-danger",
|
|
63
|
+
"jumbotron-dark",
|
|
64
|
+
"jumbotron-info",
|
|
65
|
+
"jumbotron-light",
|
|
66
|
+
"jumbotron-link",
|
|
67
|
+
"jumbotron-primary",
|
|
68
|
+
"jumbotron-secondary",
|
|
69
|
+
"jumbotron-success",
|
|
70
|
+
"jumbotron-warning"
|
|
71
|
+
]);
|
|
22
72
|
/**
|
|
23
73
|
* Jumbotron
|
|
24
74
|
*/
|
|
@@ -64,6 +114,14 @@ var _Jumbotron = /** @class */ (function (_super) {
|
|
|
64
114
|
this.el.removeChild(lead);
|
|
65
115
|
}
|
|
66
116
|
}
|
|
117
|
+
// Set the size
|
|
118
|
+
var className = exports.JumbotronSizeClassNames.getByType(this.props.size) || exports.JumbotronSizeClassNames.getByType(JumbotronSize.XLarge);
|
|
119
|
+
this.el.classList.add(className);
|
|
120
|
+
// Set the type
|
|
121
|
+
className = exports.JumbotronTypeClassNames.getByType(this.props.type);
|
|
122
|
+
if (className) {
|
|
123
|
+
this.el.classList.add(className);
|
|
124
|
+
}
|
|
67
125
|
// Append the content
|
|
68
126
|
(0, common_1.appendContent)(this.el, this.props.content);
|
|
69
127
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HTML = void 0;
|
|
4
|
-
exports.HTML = "\n<div class=\"row
|
|
4
|
+
exports.HTML = "\n<div class=\"jumbotron row m-0\">\n <h1 class=\"display-4\"></h1>\n <p class=\"lead\"></p>\n</div>".trim();
|
|
@@ -75,6 +75,7 @@ var ListGroupItem = /** @class */ (function (_super) {
|
|
|
75
75
|
this.el.id = tabId + "-tab";
|
|
76
76
|
this.el.setAttribute("href", "#" + tabId);
|
|
77
77
|
this.el.setAttribute("data-bs-toggle", "list");
|
|
78
|
+
this.el.setAttribute("data-tab-title", this.props.tabName);
|
|
78
79
|
this.el.setAttribute("aria-controls", tabId);
|
|
79
80
|
this.el.innerHTML = this.props.tabName;
|
|
80
81
|
// Update the tab
|
|
@@ -100,6 +101,11 @@ var ListGroupItem = /** @class */ (function (_super) {
|
|
|
100
101
|
// Execute the event
|
|
101
102
|
_this.props.onClick ? _this.props.onClick(_this.el, _this.props) : null;
|
|
102
103
|
});
|
|
104
|
+
// See if there is a render tab event
|
|
105
|
+
if (this.props.onRenderTab) {
|
|
106
|
+
// Execute the render event
|
|
107
|
+
this.props.onRenderTab(this.el, this.props);
|
|
108
|
+
}
|
|
103
109
|
// See if there is a render event
|
|
104
110
|
if (this.props.onRender) {
|
|
105
111
|
// Execute the render event
|