gd-bs 6.5.9 → 6.6.1
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/accordion/item.js +3 -1
- package/build/components/navbar/index.js +8 -8
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +2 -0
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/accordion/item.ts +3 -1
- package/src/components/accordion/types.d.ts +2 -0
- package/src/components/navbar/index.ts +9 -9
- package/pnpm-lock.yaml +0 -3291
|
@@ -66,7 +66,9 @@ var AccordionItem = /** @class */ (function () {
|
|
|
66
66
|
_this._props.onClick ? _this._props.onClick(_this._elHeader, _this._props) : null;
|
|
67
67
|
});
|
|
68
68
|
// Execute the render event
|
|
69
|
-
this._props.onRender ? this._props.onRender(this._el
|
|
69
|
+
this._props.onRender ? this._props.onRender(this._el, this._props) : null;
|
|
70
|
+
this._props.onRenderBody ? this._props.onRenderBody(this._el.querySelector(".accordion-body"), this._props) : null;
|
|
71
|
+
this._props.onRenderHeader ? this._props.onRenderHeader(this._el.querySelector(".accordion-header"), this._props) : null;
|
|
70
72
|
};
|
|
71
73
|
// Renders the header
|
|
72
74
|
AccordionItem.prototype.renderHeader = function () {
|
|
@@ -295,20 +295,20 @@ var _Navbar = /** @class */ (function (_super) {
|
|
|
295
295
|
this.el.classList.add("bg-dark");
|
|
296
296
|
this._btnSearch.classList.add("btn-outline-info");
|
|
297
297
|
break;
|
|
298
|
-
// Primary
|
|
299
|
-
case NavbarTypes.Primary:
|
|
300
|
-
// Add the class
|
|
301
|
-
this.el.classList.add("navbar-dark");
|
|
302
|
-
this.el.classList.add("bg-primary");
|
|
303
|
-
this._btnSearch.classList.add("btn-outline-light");
|
|
304
|
-
break;
|
|
305
298
|
// Default - Light
|
|
306
|
-
|
|
299
|
+
case NavbarTypes.Light:
|
|
307
300
|
// Add the class
|
|
308
301
|
this.el.classList.add("navbar-light");
|
|
309
302
|
this.el.classList.add("bg-light");
|
|
310
303
|
this._btnSearch.classList.add("btn-outline-primary");
|
|
311
304
|
break;
|
|
305
|
+
// Default - Primary
|
|
306
|
+
default:
|
|
307
|
+
// Add the class
|
|
308
|
+
this.el.classList.add("navbar-dark");
|
|
309
|
+
this.el.classList.add("bg-primary");
|
|
310
|
+
this._btnSearch.classList.add("btn-outline-light");
|
|
311
|
+
break;
|
|
312
312
|
}
|
|
313
313
|
};
|
|
314
314
|
return _Navbar;
|