gd-bs 6.6.17 → 6.6.19
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/dropdown/formItem.js +7 -0
- package/build/components/dropdown/item.js +2 -0
- package/build/components/tooltip/index.js +7 -5
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/dropdown/formItem.ts +9 -0
- package/src/components/dropdown/item.ts +3 -0
- package/src/components/tooltip/index.ts +7 -5
- package/src/styles/_custom.scss +3 -3
|
@@ -16,6 +16,8 @@ var DropdownFormItem = /** @class */ (function () {
|
|
|
16
16
|
this._props = props;
|
|
17
17
|
// Configure the item
|
|
18
18
|
this.configure();
|
|
19
|
+
// Configure the events
|
|
20
|
+
this.configureEvents();
|
|
19
21
|
}
|
|
20
22
|
// Configures the item
|
|
21
23
|
DropdownFormItem.prototype.configure = function () {
|
|
@@ -65,6 +67,11 @@ var DropdownFormItem = /** @class */ (function () {
|
|
|
65
67
|
this._isSelected = this._el.selected;
|
|
66
68
|
}
|
|
67
69
|
};
|
|
70
|
+
// Configures the events
|
|
71
|
+
DropdownFormItem.prototype.configureEvents = function () {
|
|
72
|
+
// Call the render event
|
|
73
|
+
this._props.onRender ? this._props.onRender(this._el, this._props) : null;
|
|
74
|
+
};
|
|
68
75
|
Object.defineProperty(DropdownFormItem.prototype, "el", {
|
|
69
76
|
/**
|
|
70
77
|
* Public Interface
|
|
@@ -130,6 +130,8 @@ var DropdownItem = /** @class */ (function () {
|
|
|
130
130
|
_this._props.onClick(_this._props, ev);
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
|
+
// Call the render event
|
|
134
|
+
this._props.onRender ? this._props.onRender(this._el, this._props) : null;
|
|
133
135
|
};
|
|
134
136
|
Object.defineProperty(DropdownItem.prototype, "el", {
|
|
135
137
|
/**
|
|
@@ -106,7 +106,7 @@ var _Tooltip = /** @class */ (function (_super) {
|
|
|
106
106
|
else {
|
|
107
107
|
// Default the toggle property for the button
|
|
108
108
|
var btnProps = this.props.btnProps || {};
|
|
109
|
-
btnProps.type = btnProps.type || button_1.ButtonTypes.
|
|
109
|
+
btnProps.type = btnProps.type || button_1.ButtonTypes.OutlinePrimary;
|
|
110
110
|
// See if the content is text
|
|
111
111
|
if (typeof (this.props.content) === "string") {
|
|
112
112
|
// Set the label
|
|
@@ -232,10 +232,12 @@ var _Tooltip = /** @class */ (function (_super) {
|
|
|
232
232
|
default:
|
|
233
233
|
// Set the default theme
|
|
234
234
|
theme = "secondary";
|
|
235
|
-
// See if a button exists
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
235
|
+
// See if a button/dropdown exists
|
|
236
|
+
var objType = this.props.btnProps && this.props.btnProps.type > 0 ? this.props.btnProps.type : null;
|
|
237
|
+
objType = this.props.ddlProps && this.props.ddlProps.type > 0 ? this.props.ddlProps.type : objType;
|
|
238
|
+
if (objType > 0) {
|
|
239
|
+
// Match the theme to the button/dropdown type
|
|
240
|
+
switch (objType) {
|
|
239
241
|
// Danger
|
|
240
242
|
case button_1.ButtonTypes.Danger:
|
|
241
243
|
case button_1.ButtonTypes.OutlineDanger:
|