@coreui/angular 4.3.0-next.0 → 4.3.3

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.
@@ -6908,8 +6908,11 @@ class SidebarComponent {
6908
6908
  * Toggle the visibility of sidebar component. [docs]
6909
6909
  */
6910
6910
  set visible(value) {
6911
- this._visible = coerceBooleanProperty(value);
6912
- this.visibleChange.emit(this._visible);
6911
+ const visible = coerceBooleanProperty(value);
6912
+ if (this._visible !== visible) {
6913
+ this._visible = visible;
6914
+ this.visibleChange.emit(this._visible);
6915
+ }
6913
6916
  }
6914
6917
  get visible() {
6915
6918
  return this._visible;
@@ -6926,6 +6929,9 @@ class SidebarComponent {
6926
6929
  this.unfoldable = newState.unfoldable;
6927
6930
  }
6928
6931
  }
6932
+ else {
6933
+ this.visible = (newState.visible ?? this.visible) && !this.overlaid;
6934
+ }
6929
6935
  this.state = {
6930
6936
  ...this.state,
6931
6937
  ...newState
@@ -6947,7 +6953,7 @@ class SidebarComponent {
6947
6953
  sidebar: true,
6948
6954
  'sidebar-fixed': this.position === 'fixed' && !mobile,
6949
6955
  'sidebar-narrow': this.narrow && !this.unfoldable,
6950
- 'sidebar-narrow-unfoldable': unfoldable,
6956
+ 'sidebar-narrow-unfoldable': this.unfoldable,
6951
6957
  'sidebar-overlaid': this.overlaid,
6952
6958
  [`sidebar-${this.size}`]: !!this.size,
6953
6959
  show: visible && this.onMobile,
@@ -7009,12 +7015,13 @@ class SidebarComponent {
7009
7015
  const layoutChanges = this.breakpointObserver.observe([onMobile]);
7010
7016
  this.layoutChangeSubscription = layoutChanges.subscribe((result) => {
7011
7017
  const isOnMobile = result.breakpoints[onMobile];
7018
+ const isUnfoldable = isOnMobile ? false : this.unfoldable;
7012
7019
  if (this.onMobile !== isOnMobile) {
7013
7020
  this.onMobile = isOnMobile;
7014
7021
  this.sidebarService.toggle({
7015
7022
  mobile: isOnMobile,
7016
- unfoldable: isOnMobile ? false : this.unfoldable,
7017
- visible: isOnMobile ? false : this.visible,
7023
+ unfoldable: isUnfoldable,
7024
+ visible: (!isOnMobile) || isUnfoldable,
7018
7025
  sidebar: this
7019
7026
  });
7020
7027
  }
@@ -7032,7 +7039,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
7032
7039
  args: [{
7033
7040
  selector: 'c-sidebar',
7034
7041
  exportAs: 'cSidebar',
7035
- template: '<ng-content></ng-content>',
7042
+ template: '<ng-content></ng-content>'
7036
7043
  }]
7037
7044
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
7038
7045
  type: Inject,
@@ -9760,3 +9767,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
9760
9767
 
9761
9768
  export { AccordionButtonDirective, AccordionComponent, AccordionItemComponent, AccordionModule, AlertComponent, AlertHeadingDirective, AlertLinkDirective, AlertModule, AlignDirective, AvatarComponent, AvatarModule, BadgeComponent, BadgeModule, BgColorDirective, BorderDirective, BreadcrumbComponent, BreadcrumbItemComponent, BreadcrumbModule, BreadcrumbRouterComponent, BreadcrumbRouterService, BreakpointInfix, ButtonCloseDirective, ButtonDirective, ButtonGroupComponent, ButtonGroupModule, ButtonModule, ButtonToolbarComponent, CalloutComponent, CalloutModule, CardBodyComponent, CardComponent, CardFooterComponent, CardGroupComponent, CardHeaderActionsComponent, CardHeaderComponent, CardImgDirective, CardImgOverlayComponent, CardLinkDirective, CardModule, CardSubtitleDirective, CardTextDirective, CardTitleDirective, CarouselCaptionComponent, CarouselComponent, CarouselConfig, CarouselControlComponent, CarouselIndicatorsComponent, CarouselInnerComponent, CarouselItemComponent, CarouselModule, ClassToggleService, ColComponent, ColDirective, CollapseDirective, CollapseModule, ContainerComponent, DropdownCloseDirective, DropdownComponent, DropdownDividerDirective, DropdownHeaderDirective, DropdownItemDirective, DropdownItemPlainDirective, DropdownMenuDirective, DropdownModule, DropdownService, DropdownToggleDirective, FooterComponent, FooterModule, FormCheckComponent, FormCheckInputDirective, FormCheckLabelDirective, FormControlDirective, FormDirective, FormFeedbackComponent, FormFloatingDirective, FormLabelDirective, FormModule, FormSelectDirective, FormTextDirective, GridModule, GutterDirective, HeaderBrandComponent, HeaderComponent, HeaderDividerComponent, HeaderModule, HeaderNavComponent, HeaderTextComponent, HeaderTogglerDirective, HtmlAttributesDirective, ImgDirective, ImgModule, InputGroupComponent, InputGroupTextDirective, IntersectionService, ListGroupDirective, ListGroupItemDirective, ListGroupModule, ModalBodyComponent, ModalComponent, ModalContentComponent, ModalDialogComponent, ModalFooterComponent, ModalHeaderComponent, ModalModule, ModalService, ModalTitleDirective, ModalToggleDirective, NavComponent, NavItemComponent, NavLinkDirective, NavModule, NavbarBrandDirective, NavbarComponent, NavbarModule, NavbarNavComponent, NavbarTextComponent, NavbarTogglerDirective, OffcanvasBodyComponent, OffcanvasComponent, OffcanvasHeaderComponent, OffcanvasModule, OffcanvasService, OffcanvasTitleDirective, OffcanvasToggleDirective, PageItemComponent, PageItemDirective, PageLinkDirective, PaginationComponent, PaginationModule, PlaceholderAnimationDirective, PlaceholderDirective, PlaceholderModule, PopoverComponent, PopoverDirective, PopoverModule, ProgressBarComponent, ProgressComponent, ProgressModule, RoundedDirective, RowComponent, RowDirective, SharedModule, SidebarBrandComponent, SidebarComponent, SidebarFooterComponent, SidebarHeaderComponent, SidebarModule, SidebarNavComponent, SidebarService, SidebarToggleDirective, SidebarTogglerComponent, SpinnerComponent, SpinnerModule, TabContentComponent, TabContentRefDirective, TabPaneComponent, TabService, TableActiveDirective, TableColorDirective, TableDirective, TableModule, TabsModule, TemplateIdDirective, TextColorDirective, ToastBodyComponent, ToastCloseDirective, ToastComponent, ToastHeaderComponent, ToastModule, ToasterComponent, ToasterHostDirective, ToasterPlacement, ToasterService, TooltipComponent, TooltipDirective, TooltipModule, UtilitiesModule, WidgetModule, WidgetStatAComponent, WidgetStatBComponent, WidgetStatCComponent, WidgetStatDComponent, WidgetStatEComponent, WidgetStatFComponent };
9762
9769
  //# sourceMappingURL=coreui-angular.mjs.map
9770
+ //# sourceMappingURL=coreui-angular.mjs.map