@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.
@@ -6961,13 +6961,17 @@ class SidebarComponent {
6961
6961
  * Toggle the visibility of sidebar component. [docs]
6962
6962
  */
6963
6963
  set visible(value) {
6964
- this._visible = coerceBooleanProperty(value);
6965
- this.visibleChange.emit(this._visible);
6964
+ const visible = coerceBooleanProperty(value);
6965
+ if (this._visible !== visible) {
6966
+ this._visible = visible;
6967
+ this.visibleChange.emit(this._visible);
6968
+ }
6966
6969
  }
6967
6970
  get visible() {
6968
6971
  return this._visible;
6969
6972
  }
6970
6973
  set sidebarState(value) {
6974
+ var _a;
6971
6975
  const newState = value;
6972
6976
  if ('toggle' in newState) {
6973
6977
  if (newState.toggle === 'visible') {
@@ -6979,6 +6983,9 @@ class SidebarComponent {
6979
6983
  this.unfoldable = newState.unfoldable;
6980
6984
  }
6981
6985
  }
6986
+ else {
6987
+ this.visible = ((_a = newState.visible) !== null && _a !== void 0 ? _a : this.visible) && !this.overlaid;
6988
+ }
6982
6989
  this.state = Object.assign(Object.assign({}, this.state), newState);
6983
6990
  this.state.mobile && this.state.visible ? this.backdropService.setBackdrop(this) : this.backdropService.clearBackdrop();
6984
6991
  }
@@ -6997,7 +7004,7 @@ class SidebarComponent {
6997
7004
  sidebar: true,
6998
7005
  'sidebar-fixed': this.position === 'fixed' && !mobile,
6999
7006
  'sidebar-narrow': this.narrow && !this.unfoldable,
7000
- 'sidebar-narrow-unfoldable': unfoldable,
7007
+ 'sidebar-narrow-unfoldable': this.unfoldable,
7001
7008
  'sidebar-overlaid': this.overlaid,
7002
7009
  [`sidebar-${this.size}`]: !!this.size,
7003
7010
  show: visible && this.onMobile,
@@ -7059,12 +7066,13 @@ class SidebarComponent {
7059
7066
  const layoutChanges = this.breakpointObserver.observe([onMobile]);
7060
7067
  this.layoutChangeSubscription = layoutChanges.subscribe((result) => {
7061
7068
  const isOnMobile = result.breakpoints[onMobile];
7069
+ const isUnfoldable = isOnMobile ? false : this.unfoldable;
7062
7070
  if (this.onMobile !== isOnMobile) {
7063
7071
  this.onMobile = isOnMobile;
7064
7072
  this.sidebarService.toggle({
7065
7073
  mobile: isOnMobile,
7066
- unfoldable: isOnMobile ? false : this.unfoldable,
7067
- visible: isOnMobile ? false : this.visible,
7074
+ unfoldable: isUnfoldable,
7075
+ visible: (!isOnMobile) || isUnfoldable,
7068
7076
  sidebar: this
7069
7077
  });
7070
7078
  }
@@ -7082,7 +7090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
7082
7090
  args: [{
7083
7091
  selector: 'c-sidebar',
7084
7092
  exportAs: 'cSidebar',
7085
- template: '<ng-content></ng-content>',
7093
+ template: '<ng-content></ng-content>'
7086
7094
  }]
7087
7095
  }], ctorParameters: function () {
7088
7096
  return [{ type: undefined, decorators: [{
@@ -9828,3 +9836,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
9828
9836
 
9829
9837
  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 };
9830
9838
  //# sourceMappingURL=coreui-angular.mjs.map
9839
+ //# sourceMappingURL=coreui-angular.mjs.map