@open-rlb/ng-bootstrap 2.3.5 → 2.3.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.
|
@@ -4600,11 +4600,11 @@ class NavbarComponent {
|
|
|
4600
4600
|
this.viewContainerRef.element.nativeElement.remove();
|
|
4601
4601
|
}
|
|
4602
4602
|
ngAfterContentInit() {
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
this.closeMobileMenu();
|
|
4603
|
+
this.navbarItemsGroups.changes.pipe(startWith(this.navbarItemsGroups), takeUntil(this.destroy$)).subscribe((groups) => {
|
|
4604
|
+
groups.forEach(group => {
|
|
4605
|
+
group.click.pipe(takeUntil(this.destroy$)).subscribe(() => this.closeMobileMenu());
|
|
4606
4606
|
});
|
|
4607
|
-
}
|
|
4607
|
+
});
|
|
4608
4608
|
}
|
|
4609
4609
|
ngOnDestroy() {
|
|
4610
4610
|
this.destroy$.next();
|
|
@@ -4618,7 +4618,7 @@ class NavbarComponent {
|
|
|
4618
4618
|
}
|
|
4619
4619
|
}
|
|
4620
4620
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: NavbarComponent, deps: [{ token: UniqueIdService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4621
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: NavbarComponent, isStandalone: false, selector: "rlb-navbar", inputs: { dark: ["dark", "dark", booleanAttribute], color: "color", placement: "placement", expand: "expand", cssClass: ["class", "cssClass"], enableDropdownToggler: ["enable-dropdown-toggler", "enableDropdownToggler", booleanAttribute] }, queries: [{ propertyName: "
|
|
4621
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.15", type: NavbarComponent, isStandalone: false, selector: "rlb-navbar", inputs: { dark: ["dark", "dark", booleanAttribute], color: "color", placement: "placement", expand: "expand", cssClass: ["class", "cssClass"], enableDropdownToggler: ["enable-dropdown-toggler", "enableDropdownToggler", booleanAttribute] }, queries: [{ propertyName: "navbarItemsGroups", predicate: NavbarItemsComponent, descendants: true }], viewQueries: [{ propertyName: "template", first: true, predicate: ["template"], descendants: true, static: true }], ngImport: i0, template: ` <ng-template #template>
|
|
4622
4622
|
<nav
|
|
4623
4623
|
class="navbar px-2 bg-{{ color }} {{ placement }} {{ _navExpand }} {{ cssClass }}"
|
|
4624
4624
|
[attr.data-bs-theme]="dark"
|
|
@@ -4688,9 +4688,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImpo
|
|
|
4688
4688
|
}], ctorParameters: () => [{ type: UniqueIdService }, { type: i0.ViewContainerRef }], propDecorators: { template: [{
|
|
4689
4689
|
type: ViewChild,
|
|
4690
4690
|
args: ['template', { static: true }]
|
|
4691
|
-
}],
|
|
4692
|
-
type:
|
|
4693
|
-
args: [NavbarItemsComponent]
|
|
4691
|
+
}], navbarItemsGroups: [{
|
|
4692
|
+
type: ContentChildren,
|
|
4693
|
+
args: [NavbarItemsComponent, { descendants: true }]
|
|
4694
4694
|
}], dark: [{
|
|
4695
4695
|
type: Input,
|
|
4696
4696
|
args: [{ alias: 'dark', transform: booleanAttribute }]
|
|
@@ -10330,8 +10330,12 @@ class SwitchComponent extends AbstractComponent {
|
|
|
10330
10330
|
}
|
|
10331
10331
|
onWrite(data) {
|
|
10332
10332
|
this.data = data;
|
|
10333
|
+
this.updateInternalValue();
|
|
10333
10334
|
}
|
|
10334
10335
|
ngAfterViewInit() {
|
|
10336
|
+
this.updateInternalValue();
|
|
10337
|
+
}
|
|
10338
|
+
updateInternalValue() {
|
|
10335
10339
|
if (this.el && this.el.nativeElement) {
|
|
10336
10340
|
if (this.data === undefined || this.data === null)
|
|
10337
10341
|
return;
|