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.
@@ -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.OutlineSecondary;
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
- if (this.props.btnProps && this.props.btnProps.type > 0) {
237
- // Match the theme to the button type
238
- switch (this.props.btnProps.type) {
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: