@festo-ui/angular 5.0.0-dev.141 → 5.0.0-dev.147

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.
@@ -4,7 +4,7 @@ import * as i1$1 from '@angular/common';
4
4
  import { CommonModule, DOCUMENT, formatDate } from '@angular/common';
5
5
  import * as i1 from '@angular/router';
6
6
  import { RouterModule, NavigationStart } from '@angular/router';
7
- import { Subject, noop, Subscription } from 'rxjs';
7
+ import { Subject, noop, BehaviorSubject, Subscription } from 'rxjs';
8
8
  import { takeUntil, delay, take, filter, debounceTime } from 'rxjs/operators';
9
9
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
10
10
  import * as i1$2 from '@angular/platform-browser';
@@ -2399,6 +2399,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
2399
2399
  args: ['mouseleave']
2400
2400
  }] } });
2401
2401
 
2402
+ /**
2403
+ * Every sidebar instance has its unique instanceID.
2404
+ * When a sidebar is opened, this ID is the next currentsInstanceID.
2405
+ * Every instance with an other ID will be closed then.
2406
+ *
2407
+ * usage: <fng-sidebar-overlay [(open)]="sidebarOpen"> ... </fng-details-sidebar>
2408
+ */
2409
+ class FngSidebarOverlayComponent {
2410
+ get fngNavbarMargin() {
2411
+ return this.internalNavbarMargin;
2412
+ }
2413
+ set fngNavbarMargin(value) {
2414
+ this.internalNavbarMargin = value === '' || value;
2415
+ }
2416
+ set open(value) {
2417
+ this.internalOpen = value === '' || value;
2418
+ if (this.internalOpen) {
2419
+ FngSidebarOverlayComponent.currentsInstanceID$.next(this.instanceID);
2420
+ }
2421
+ }
2422
+ get open() {
2423
+ return this.internalOpen;
2424
+ }
2425
+ constructor() {
2426
+ this.internalOpen = false;
2427
+ this.internalNavbarMargin = false;
2428
+ this.openChange = new EventEmitter();
2429
+ this.instanceID = Math.random();
2430
+ FngSidebarOverlayComponent.currentsInstanceID$.subscribe(id => {
2431
+ // close open instances when an other is opened
2432
+ if (this.internalOpen && id !== this.instanceID) {
2433
+ this.internalOpen = false;
2434
+ this.openChange.emit(this.internalOpen);
2435
+ }
2436
+ });
2437
+ }
2438
+ closeSidebar() {
2439
+ this.internalOpen = false;
2440
+ this.openChange.emit(this.internalOpen);
2441
+ }
2442
+ }
2443
+ FngSidebarOverlayComponent.currentsInstanceID$ = new BehaviorSubject(0);
2444
+ FngSidebarOverlayComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: FngSidebarOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2445
+ FngSidebarOverlayComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: FngSidebarOverlayComponent, isStandalone: true, selector: "fng-sidebar-overlay", inputs: { fngNavbarMargin: "fngNavbarMargin", open: "open" }, outputs: { openChange: "openChange" }, ngImport: i0, template: "<div class=\"fwe-sidebar-overlay\" [class.fwe-sidebar-overlay--open]=\"open\" [class.fwe-navbar-margin]=\"internalNavbarMargin\">\n <button type=\"button\" class=\"fwe-close-icon-button\">\n <i aria-hidden=\"true\" class=\"fwe-icon fwe-icon-lg fwe-icon-menu-close\" (click)=\"closeSidebar()\"></i>\n <span class=\"fwe-sr-only\">Close</span>\n </button>\n <ng-content></ng-content>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
2446
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: FngSidebarOverlayComponent, decorators: [{
2447
+ type: Component,
2448
+ args: [{ standalone: true, imports: [CommonModule], selector: 'fng-sidebar-overlay', template: "<div class=\"fwe-sidebar-overlay\" [class.fwe-sidebar-overlay--open]=\"open\" [class.fwe-navbar-margin]=\"internalNavbarMargin\">\n <button type=\"button\" class=\"fwe-close-icon-button\">\n <i aria-hidden=\"true\" class=\"fwe-icon fwe-icon-lg fwe-icon-menu-close\" (click)=\"closeSidebar()\"></i>\n <span class=\"fwe-sr-only\">Close</span>\n </button>\n <ng-content></ng-content>\n</div>\n" }]
2449
+ }], ctorParameters: function () { return []; }, propDecorators: { fngNavbarMargin: [{
2450
+ type: Input
2451
+ }], open: [{
2452
+ type: Input
2453
+ }], openChange: [{
2454
+ type: Output
2455
+ }] } });
2456
+
2402
2457
  class FestoAngularComponentsModule {
2403
2458
  }
2404
2459
  FestoAngularComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: FestoAngularComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2436,7 +2491,8 @@ FestoAngularComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.
2436
2491
  FngPopoverMenuComponent,
2437
2492
  FngTooltipDirective,
2438
2493
  FngLegendDirective,
2439
- FngLegendComponent], exports: [FngClickOutsideDirective,
2494
+ FngLegendComponent,
2495
+ FngSidebarOverlayComponent], exports: [FngClickOutsideDirective,
2440
2496
  FngBreadcrumbComponent,
2441
2497
  FngAccordionComponent,
2442
2498
  FngAccordionHeaderComponent,
@@ -2470,7 +2526,8 @@ FestoAngularComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.
2470
2526
  FngPopoverMenuComponent,
2471
2527
  FngTooltipDirective,
2472
2528
  FngLegendDirective,
2473
- FngLegendComponent] });
2529
+ FngLegendComponent,
2530
+ FngSidebarOverlayComponent] });
2474
2531
  FestoAngularComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: FestoAngularComponentsModule, imports: [FngPaginationComponent,
2475
2532
  FngMobileFlyoutPageComponent,
2476
2533
  FngMobileFlyoutItemComponent,
@@ -2498,7 +2555,8 @@ FestoAngularComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.
2498
2555
  FngPopoverComponent,
2499
2556
  FngPopoverContentComponent,
2500
2557
  FngPopoverMenuComponent,
2501
- FngLegendComponent] });
2558
+ FngLegendComponent,
2559
+ FngSidebarOverlayComponent] });
2502
2560
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: FestoAngularComponentsModule, decorators: [{
2503
2561
  type: NgModule,
2504
2562
  args: [{
@@ -2537,7 +2595,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
2537
2595
  FngPopoverMenuComponent,
2538
2596
  FngTooltipDirective,
2539
2597
  FngLegendDirective,
2540
- FngLegendComponent
2598
+ FngLegendComponent,
2599
+ FngSidebarOverlayComponent
2541
2600
  ],
2542
2601
  exports: [
2543
2602
  FngClickOutsideDirective,
@@ -2574,7 +2633,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
2574
2633
  FngPopoverMenuComponent,
2575
2634
  FngTooltipDirective,
2576
2635
  FngLegendDirective,
2577
- FngLegendComponent
2636
+ FngLegendComponent,
2637
+ FngSidebarOverlayComponent
2578
2638
  ]
2579
2639
  }]
2580
2640
  }] });
@@ -6367,5 +6427,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
6367
6427
  * Generated bundle index. Do not edit.
6368
6428
  */
6369
6429
 
6370
- export { ChipType, FestoAngularComponentsModule, FestoAngularFormsModule, FestoAngularModalsModule, FestoAngularModule, FestoAngularSnackbarModule, FngAccordionActions, FngAccordionComponent, FngAccordionHeaderActions, FngAccordionHeaderComponent, FngAccordionItemBodyComponent, FngAccordionItemComponent, FngAccordionItemHeaderComponent, FngAlertComponent, FngBreadcrumbComponent, FngButtonComponent, FngCheckboxComponent, FngChipComponent, FngChipContainerComponent, FngClickOutsideDirective, FngColorIndicatorComponent, FngColorPickerComponent, FngConfirmComponent, FngCustomModalComponent, FngDatePickerComponent, FngDateRangePickerComponent, FngImageGalleryComponent, FngLegendComponent, FngLegendDirective, FngLinkButtonComponent, FngLoadingIndicatorComponent, FngMobileFlyoutComponent, FngMobileFlyoutItemComponent, FngMobileFlyoutPageComponent, FngModalService, FngPaginationComponent, FngPaginationType, FngPopoverComponent, FngPopoverContentComponent, FngPopoverContentDirective, FngPopoverContentTypes, FngPopoverMenuComponent, FngPopoverService, FngProgressComponent, FngPromptComponent, FngRadioChange, FngRadioComponent, FngRadioGroupDirective, FngSafeHtmlPipe, FngScrollableDirective, FngSearchInputComponent, FngSearchSuggestion, FngSegmentComponent, FngSegmentControlComponent, FngSelectComponent, FngSelectOptionComponent, FngSliderComponent, FngSnackbarComponent, FngSnackbarContainerComponent, FngSnackbarContainerDirective, FngSnackbarService, FngStepHorizontalComponent, FngStepVerticalComponent, FngStepperHorizontalComponent, FngStepperVerticalComponent, FngSwitchComponent, FngTabPaneComponent, FngTableHeaderCellDirective, FngTabsComponent, FngTextAreaComponent, FngTextEditorComponent, FngTextInputComponent, FngTimePickerComponent, FngTimePickerDropdownComponent, FngTooltipDirective, PREDEFINED_COLORS };
6430
+ export { ChipType, FestoAngularComponentsModule, FestoAngularFormsModule, FestoAngularModalsModule, FestoAngularModule, FestoAngularSnackbarModule, FngAccordionActions, FngAccordionComponent, FngAccordionHeaderActions, FngAccordionHeaderComponent, FngAccordionItemBodyComponent, FngAccordionItemComponent, FngAccordionItemHeaderComponent, FngAlertComponent, FngBreadcrumbComponent, FngButtonComponent, FngCheckboxComponent, FngChipComponent, FngChipContainerComponent, FngClickOutsideDirective, FngColorIndicatorComponent, FngColorPickerComponent, FngConfirmComponent, FngCustomModalComponent, FngDatePickerComponent, FngDateRangePickerComponent, FngImageGalleryComponent, FngLegendComponent, FngLegendDirective, FngLinkButtonComponent, FngLoadingIndicatorComponent, FngMobileFlyoutComponent, FngMobileFlyoutItemComponent, FngMobileFlyoutPageComponent, FngModalService, FngPaginationComponent, FngPaginationType, FngPopoverComponent, FngPopoverContentComponent, FngPopoverContentDirective, FngPopoverContentTypes, FngPopoverMenuComponent, FngPopoverService, FngProgressComponent, FngPromptComponent, FngRadioChange, FngRadioComponent, FngRadioGroupDirective, FngSafeHtmlPipe, FngScrollableDirective, FngSearchInputComponent, FngSearchSuggestion, FngSegmentComponent, FngSegmentControlComponent, FngSelectComponent, FngSelectOptionComponent, FngSidebarOverlayComponent, FngSliderComponent, FngSnackbarComponent, FngSnackbarContainerComponent, FngSnackbarContainerDirective, FngSnackbarService, FngStepHorizontalComponent, FngStepVerticalComponent, FngStepperHorizontalComponent, FngStepperVerticalComponent, FngSwitchComponent, FngTabPaneComponent, FngTableHeaderCellDirective, FngTabsComponent, FngTextAreaComponent, FngTextEditorComponent, FngTextInputComponent, FngTimePickerComponent, FngTimePickerDropdownComponent, FngTooltipDirective, PREDEFINED_COLORS };
6371
6431
  //# sourceMappingURL=festo-ui-angular.mjs.map