@festo-ui/angular 5.0.1 → 5.1.0-dev.162

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.
Files changed (31) hide show
  1. package/esm2020/lib/components/components.module.mjs +12 -6
  2. package/esm2020/lib/components/mobile-flyout/mobile-flyout.component.mjs +4 -3
  3. package/esm2020/lib/components/search-input/search-input.component.mjs +3 -3
  4. package/esm2020/lib/components/sidebar-overlay/sidebar-overlay.component.mjs +59 -0
  5. package/esm2020/lib/forms/select/select.component.mjs +19 -11
  6. package/esm2020/lib/forms/text-editor/text-editor.component.mjs +18 -20
  7. package/esm2020/lib/forms/text-input/text-input.component.mjs +7 -7
  8. package/esm2020/lib/modals/alert/alert.component.mjs +5 -4
  9. package/esm2020/lib/modals/confirm/confirm.component.mjs +5 -4
  10. package/esm2020/lib/modals/custom-modal/custom-modal.component.mjs +13 -4
  11. package/esm2020/lib/modals/image-gallery/image-gallery.component.mjs +3 -3
  12. package/esm2020/lib/modals/modals.module.mjs +7 -5
  13. package/esm2020/lib/modals/prompt/prompt.component.mjs +13 -5
  14. package/esm2020/lib/pipes/safe-html.pipe.mjs +3 -3
  15. package/esm2020/public-api.mjs +2 -1
  16. package/fesm2015/festo-ui-angular.mjs +375 -292
  17. package/fesm2015/festo-ui-angular.mjs.map +1 -1
  18. package/fesm2020/festo-ui-angular.mjs +372 -292
  19. package/fesm2020/festo-ui-angular.mjs.map +1 -1
  20. package/lib/components/components.module.d.ts +2 -1
  21. package/lib/components/sidebar-overlay/sidebar-overlay.component.d.ts +25 -0
  22. package/lib/forms/select/select.component.d.ts +5 -3
  23. package/lib/forms/text-editor/text-editor.component.d.ts +4 -3
  24. package/lib/forms/text-input/text-input.component.d.ts +6 -6
  25. package/lib/modals/custom-modal/custom-modal.component.d.ts +3 -1
  26. package/lib/modals/image-gallery/image-gallery.component.d.ts +2 -0
  27. package/lib/modals/modals.module.d.ts +3 -1
  28. package/lib/modals/prompt/prompt.component.d.ts +3 -0
  29. package/lib/pipes/safe-html.pipe.d.ts +1 -1
  30. package/package.json +2 -2
  31. package/public-api.d.ts +1 -0
@@ -33,8 +33,9 @@ import * as i31 from "./popovers/popover-content/popover-content.component";
33
33
  import * as i32 from "./popovers/popover-menu/popover-menu.component";
34
34
  import * as i33 from "./popovers/tooltip/tooltip.directive";
35
35
  import * as i34 from "./popovers/legend/legend.component";
36
+ import * as i35 from "./sidebar-overlay/sidebar-overlay.component";
36
37
  export declare class FestoAngularComponentsModule {
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularComponentsModule, never>;
38
- static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularComponentsModule, never, [typeof i1.FngClickOutsideDirective, typeof i2.FngPaginationComponent, typeof i3.FngMobileFlyoutPageComponent, typeof i4.FngMobileFlyoutItemComponent, typeof i5.FngMobileFlyoutComponent, typeof i6.FngLoadingIndicatorComponent, typeof i7.FngChipComponent, typeof i8.FngChipContainerComponent, typeof i9.FngTabsComponent, typeof i10.FngTabPaneComponent, typeof i11.FngBreadcrumbComponent, typeof i12.FngAccordionComponent, typeof i13.FngAccordionHeaderComponent, typeof i14.FngAccordionItemComponent, typeof i15.FngAccordionItemBodyComponent, typeof i16.FngAccordionItemHeaderComponent, typeof i17.FngButtonComponent, typeof i18.FngLinkButtonComponent, typeof i19.FngSearchInputComponent, typeof i20.FngSnackbarContainerComponent, typeof i21.FngStepHorizontalComponent, typeof i22.FngStepperHorizontalComponent, typeof i23.FngStepperVerticalComponent, typeof i24.FngStepVerticalComponent, typeof i25.FngTableHeaderCellDirective, typeof i26.FngScrollableDirective, typeof i27.FngProgressComponent, typeof i28.FngLegendDirective, typeof i29.FngPopoverComponent, typeof i30.FngPopoverContentDirective, typeof i31.FngPopoverContentComponent, typeof i32.FngPopoverMenuComponent, typeof i33.FngTooltipDirective, typeof i28.FngLegendDirective, typeof i34.FngLegendComponent], [typeof i1.FngClickOutsideDirective, typeof i11.FngBreadcrumbComponent, typeof i12.FngAccordionComponent, typeof i13.FngAccordionHeaderComponent, typeof i14.FngAccordionItemComponent, typeof i15.FngAccordionItemBodyComponent, typeof i16.FngAccordionItemHeaderComponent, typeof i17.FngButtonComponent, typeof i18.FngLinkButtonComponent, typeof i8.FngChipContainerComponent, typeof i7.FngChipComponent, typeof i6.FngLoadingIndicatorComponent, typeof i5.FngMobileFlyoutComponent, typeof i4.FngMobileFlyoutItemComponent, typeof i3.FngMobileFlyoutPageComponent, typeof i2.FngPaginationComponent, typeof i19.FngSearchInputComponent, typeof i20.FngSnackbarContainerComponent, typeof i21.FngStepHorizontalComponent, typeof i22.FngStepperHorizontalComponent, typeof i23.FngStepperVerticalComponent, typeof i24.FngStepVerticalComponent, typeof i25.FngTableHeaderCellDirective, typeof i26.FngScrollableDirective, typeof i27.FngProgressComponent, typeof i9.FngTabsComponent, typeof i10.FngTabPaneComponent, typeof i28.FngLegendDirective, typeof i29.FngPopoverComponent, typeof i30.FngPopoverContentDirective, typeof i31.FngPopoverContentComponent, typeof i32.FngPopoverMenuComponent, typeof i33.FngTooltipDirective, typeof i28.FngLegendDirective, typeof i34.FngLegendComponent]>;
39
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularComponentsModule, never, [typeof i1.FngClickOutsideDirective, typeof i2.FngPaginationComponent, typeof i3.FngMobileFlyoutPageComponent, typeof i4.FngMobileFlyoutItemComponent, typeof i5.FngMobileFlyoutComponent, typeof i6.FngLoadingIndicatorComponent, typeof i7.FngChipComponent, typeof i8.FngChipContainerComponent, typeof i9.FngTabsComponent, typeof i10.FngTabPaneComponent, typeof i11.FngBreadcrumbComponent, typeof i12.FngAccordionComponent, typeof i13.FngAccordionHeaderComponent, typeof i14.FngAccordionItemComponent, typeof i15.FngAccordionItemBodyComponent, typeof i16.FngAccordionItemHeaderComponent, typeof i17.FngButtonComponent, typeof i18.FngLinkButtonComponent, typeof i19.FngSearchInputComponent, typeof i20.FngSnackbarContainerComponent, typeof i21.FngStepHorizontalComponent, typeof i22.FngStepperHorizontalComponent, typeof i23.FngStepperVerticalComponent, typeof i24.FngStepVerticalComponent, typeof i25.FngTableHeaderCellDirective, typeof i26.FngScrollableDirective, typeof i27.FngProgressComponent, typeof i28.FngLegendDirective, typeof i29.FngPopoverComponent, typeof i30.FngPopoverContentDirective, typeof i31.FngPopoverContentComponent, typeof i32.FngPopoverMenuComponent, typeof i33.FngTooltipDirective, typeof i28.FngLegendDirective, typeof i34.FngLegendComponent, typeof i35.FngSidebarOverlayComponent], [typeof i1.FngClickOutsideDirective, typeof i11.FngBreadcrumbComponent, typeof i12.FngAccordionComponent, typeof i13.FngAccordionHeaderComponent, typeof i14.FngAccordionItemComponent, typeof i15.FngAccordionItemBodyComponent, typeof i16.FngAccordionItemHeaderComponent, typeof i17.FngButtonComponent, typeof i18.FngLinkButtonComponent, typeof i8.FngChipContainerComponent, typeof i7.FngChipComponent, typeof i6.FngLoadingIndicatorComponent, typeof i5.FngMobileFlyoutComponent, typeof i4.FngMobileFlyoutItemComponent, typeof i3.FngMobileFlyoutPageComponent, typeof i2.FngPaginationComponent, typeof i19.FngSearchInputComponent, typeof i20.FngSnackbarContainerComponent, typeof i21.FngStepHorizontalComponent, typeof i22.FngStepperHorizontalComponent, typeof i23.FngStepperVerticalComponent, typeof i24.FngStepVerticalComponent, typeof i25.FngTableHeaderCellDirective, typeof i26.FngScrollableDirective, typeof i27.FngProgressComponent, typeof i9.FngTabsComponent, typeof i10.FngTabPaneComponent, typeof i28.FngLegendDirective, typeof i29.FngPopoverComponent, typeof i30.FngPopoverContentDirective, typeof i31.FngPopoverContentComponent, typeof i32.FngPopoverMenuComponent, typeof i33.FngTooltipDirective, typeof i28.FngLegendDirective, typeof i34.FngLegendComponent, typeof i35.FngSidebarOverlayComponent]>;
39
40
  static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularComponentsModule>;
40
41
  }
@@ -0,0 +1,25 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Every sidebar instance has its unique instanceID.
6
+ * When a sidebar is opened, this ID is the next currentsInstanceID.
7
+ * Every instance with an other ID will be closed then.
8
+ *
9
+ * usage: <fng-sidebar-overlay [(open)]="sidebarOpen"> ... </fng-details-sidebar>
10
+ */
11
+ export declare class FngSidebarOverlayComponent {
12
+ static currentsInstanceID$: BehaviorSubject<number>;
13
+ private instanceID;
14
+ private internalOpen;
15
+ get fngNavbarMargin(): boolean;
16
+ set fngNavbarMargin(value: boolean | '');
17
+ internalNavbarMargin: boolean;
18
+ set open(value: boolean | '');
19
+ get open(): boolean;
20
+ openChange: EventEmitter<boolean>;
21
+ constructor();
22
+ closeSidebar(): void;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<FngSidebarOverlayComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<FngSidebarOverlayComponent, "fng-sidebar-overlay", never, { "fngNavbarMargin": "fngNavbarMargin"; "open": "open"; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
25
+ }
@@ -1,4 +1,4 @@
1
- import { OnInit, Renderer2, ElementRef, AfterViewInit, QueryList, EventEmitter, ChangeDetectorRef } from '@angular/core';
1
+ import { OnInit, Renderer2, ElementRef, AfterViewInit, QueryList, EventEmitter, ChangeDetectorRef, AfterContentInit } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { FngSelectOptionComponent } from './select-option/select-option.component';
4
4
  import * as i0 from "@angular/core";
@@ -6,7 +6,7 @@ export interface FngSelectOption {
6
6
  value: any;
7
7
  text: string;
8
8
  }
9
- export declare class FngSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit {
9
+ export declare class FngSelectComponent implements ControlValueAccessor, OnInit, AfterViewInit, AfterContentInit {
10
10
  protected document: any;
11
11
  protected renderer: Renderer2;
12
12
  protected cd: ChangeDetectorRef;
@@ -46,9 +46,12 @@ export declare class FngSelectComponent implements ControlValueAccessor, OnInit,
46
46
  checked: Map<any, any>;
47
47
  hasProjectedOptions: boolean;
48
48
  projectedHtml: any[];
49
+ private complete;
49
50
  constructor(document: any, renderer: Renderer2, cd: ChangeDetectorRef);
51
+ ngAfterContentInit(): void;
50
52
  ngOnInit(): void;
51
53
  ngAfterViewInit(): void;
54
+ ngOnDestroy(): void;
52
55
  registerOnChange(fn: any): void;
53
56
  registerOnTouched(fn: any): void;
54
57
  setDisabledState(shouldDisable: boolean): void;
@@ -61,7 +64,6 @@ export declare class FngSelectComponent implements ControlValueAccessor, OnInit,
61
64
  toggle(): void;
62
65
  select(value: any, event: Event): void;
63
66
  markAsTouched(): void;
64
- onContentChange(event: Event): void;
65
67
  protected initProjectedOptions(): void;
66
68
  protected isEmpty(): void;
67
69
  static ɵfac: i0.ɵɵFactoryDeclaration<FngSelectComponent, never>;
@@ -20,8 +20,9 @@ export interface FngTextEditorConfiguration {
20
20
  skipWhitespaceHandling?: boolean;
21
21
  sanitizingFn?: (ds: DomSanitizer, value: string) => string;
22
22
  };
23
+ focusCursorToEndOnWrite?: boolean;
23
24
  }
24
- export declare class FngTextEditorComponent extends FngValueAccessorBaseDirective<string> implements OnInit, AfterViewInit, OnChanges {
25
+ export declare class FngTextEditorComponent extends FngValueAccessorBaseDirective<string | null | undefined> implements OnInit, AfterViewInit, OnChanges {
25
26
  elementRef: ElementRef;
26
27
  private renderer;
27
28
  private domSanitizer;
@@ -47,8 +48,8 @@ export declare class FngTextEditorComponent extends FngValueAccessorBaseDirectiv
47
48
  maxLength: number;
48
49
  error: string | undefined;
49
50
  hint: string | undefined;
50
- set value(value: string | undefined);
51
- get value(): string | undefined;
51
+ set value(value: string | null | undefined);
52
+ get value(): string | null | undefined;
52
53
  valueGetter: (editorElement: HTMLElement) => string | any;
53
54
  valueSetter: (quillEditor: QuillType, value: any) => any;
54
55
  constructor(elementRef: ElementRef, renderer: Renderer2, domSanitizer: DomSanitizer);
@@ -18,11 +18,11 @@ export declare class FngTextInputComponent implements OnInit, ControlValueAccess
18
18
  get readonly(): boolean;
19
19
  set readonly(value: boolean);
20
20
  private innerReadonly;
21
- step: number;
22
- min: number;
23
- max: number;
24
- tabindex: number;
25
- placeholder: string;
21
+ step: number | undefined;
22
+ min: number | undefined;
23
+ max: number | undefined;
24
+ tabindex: number | undefined;
25
+ placeholder: string | undefined;
26
26
  name: string;
27
27
  /**
28
28
  * When true the control's disabled attribute is set
@@ -53,7 +53,7 @@ export declare class FngTextInputComponent implements OnInit, ControlValueAccess
53
53
  /**
54
54
  * Hint description when valid.
55
55
  */
56
- hint: string;
56
+ hint: string | undefined;
57
57
  inputElement: ElementRef | undefined;
58
58
  /**
59
59
  * When true the text input has focus.
@@ -11,11 +11,13 @@ export declare class FngCustomModalComponent {
11
11
  acknowledge: EventEmitter<void>;
12
12
  cancelLabel: string;
13
13
  cancel: EventEmitter<void>;
14
+ close: EventEmitter<void>;
14
15
  closeModal(): void;
16
+ onClose(): void;
15
17
  onCancel(): void;
16
18
  onAcknowledge(): void;
17
19
  onClickOutside(): void;
18
20
  onClickInside(event: MouseEvent): void;
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<FngCustomModalComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<FngCustomModalComponent, "fng-custom-modal", never, { "closeOnBackdrop": "closeOnBackdrop"; "large": "large"; "visible": "visible"; "header": "header"; "subheader": "subheader"; "acknowledgeLabel": "acknowledgeLabel"; "cancelLabel": "cancelLabel"; }, { "visibleChange": "visibleChange"; "acknowledge": "acknowledge"; "cancel": "cancel"; }, never, ["*"], true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<FngCustomModalComponent, "fng-custom-modal", never, { "closeOnBackdrop": "closeOnBackdrop"; "large": "large"; "visible": "visible"; "header": "header"; "subheader": "subheader"; "acknowledgeLabel": "acknowledgeLabel"; "cancelLabel": "cancelLabel"; }, { "visibleChange": "visibleChange"; "acknowledge": "acknowledge"; "cancel": "cancel"; "close": "close"; }, never, ["*"], true, never>;
21
23
  }
@@ -11,10 +11,12 @@ export interface FngImageGalleryData {
11
11
  url: string;
12
12
  alt: string;
13
13
  content?: FngImageDescriptiveContent;
14
+ containMode?: boolean;
14
15
  }[];
15
16
  thumbnailImages?: {
16
17
  url: string;
17
18
  alt: string;
19
+ containMode?: boolean;
18
20
  }[];
19
21
  pagination?: boolean;
20
22
  descriptiveContent?: boolean;
@@ -3,13 +3,15 @@ import * as i1 from "./alert/alert.component";
3
3
  import * as i2 from "./confirm/confirm.component";
4
4
  import * as i3 from "./prompt/prompt.component";
5
5
  import * as i4 from "./custom-modal/custom-modal.component";
6
+ import * as i5 from "./image-gallery/image-gallery.component";
6
7
  export * from './index';
7
8
  export * from './alert/alert.component';
8
9
  export * from './confirm/confirm.component';
9
10
  export * from './prompt/prompt.component';
10
11
  export * from './custom-modal/custom-modal.component';
12
+ export * from './image-gallery/image-gallery.component';
11
13
  export declare class FestoAngularModalsModule {
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularModalsModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularModalsModule, never, [typeof i1.FngAlertComponent, typeof i2.FngConfirmComponent, typeof i3.FngPromptComponent, typeof i4.FngCustomModalComponent], [typeof i1.FngAlertComponent, typeof i2.FngConfirmComponent, typeof i3.FngPromptComponent, typeof i4.FngCustomModalComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FestoAngularModalsModule, never, [typeof i1.FngAlertComponent, typeof i2.FngConfirmComponent, typeof i3.FngPromptComponent, typeof i4.FngCustomModalComponent, typeof i5.FngImageGalleryComponent], [typeof i1.FngAlertComponent, typeof i2.FngConfirmComponent, typeof i3.FngPromptComponent, typeof i4.FngCustomModalComponent, typeof i5.FngImageGalleryComponent]>;
14
16
  static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularModalsModule>;
15
17
  }
@@ -1,6 +1,7 @@
1
1
  import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { AbstractControlOptions, AsyncValidatorFn, FormBuilder, FormGroup, ValidatorFn } from '@angular/forms';
3
3
  import { Modal } from '../index';
4
+ import { FngTextInputComponent } from '../../forms/text-input/text-input.component';
4
5
  import * as i0 from "@angular/core";
5
6
  export interface FngPromptData {
6
7
  title: string;
@@ -13,6 +14,7 @@ export interface FngPromptData {
13
14
  cancel?: string;
14
15
  ok?: string;
15
16
  value?: string;
17
+ placeholder?: string;
16
18
  validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null;
17
19
  asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null;
18
20
  }
@@ -23,6 +25,7 @@ export declare class FngPromptComponent implements OnInit, AfterViewInit, OnDest
23
25
  cancel: EventEmitter<any>;
24
26
  ok: EventEmitter<any>;
25
27
  closeBtn: ElementRef | undefined;
28
+ inputField: FngTextInputComponent | undefined;
26
29
  form: FormGroup;
27
30
  error: string;
28
31
  get text(): string;
@@ -6,5 +6,5 @@ export declare class FngSafeHtmlPipe implements PipeTransform {
6
6
  constructor(sanitizer: DomSanitizer);
7
7
  transform(value: any): SafeHtml;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FngSafeHtmlPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<FngSafeHtmlPipe, "fweSafeHtml", true>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<FngSafeHtmlPipe, "fngSafeHtml", true>;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@festo-ui/angular",
3
- "version": "5.0.1",
3
+ "version": "5.1.0-dev.162",
4
4
  "author": "Festo UI (styleguide@festo.com)",
5
5
  "license": "apache-2.0",
6
6
  "description": "CSS framework and utils to build FESTO web applications",
@@ -46,4 +46,4 @@
46
46
  }
47
47
  },
48
48
  "sideEffects": false
49
- }
49
+ }
package/public-api.d.ts CHANGED
@@ -57,6 +57,7 @@ export * from './lib/forms/slider/slider.component';
57
57
  export * from './lib/forms/switch/switch.component';
58
58
  export * from './lib/forms/text-area/text-area.component';
59
59
  export * from './lib/forms/text-editor/text-editor.component';
60
+ export * from './lib/components/sidebar-overlay/sidebar-overlay.component';
60
61
  export * from './lib/directives/click-outside.directive';
61
62
  export * from './lib/pipes/safe-html.pipe';
62
63
  export * from './lib/festo-angular.module';