@festo-ui/angular 8.3.0-dev.647 → 9.0.0-dev.653

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 (91) hide show
  1. package/css/bundle.css +1 -1
  2. package/css/image-gallery.css +1 -1
  3. package/css/popover.css +1 -1
  4. package/fesm2022/festo-ui-angular.mjs +330 -332
  5. package/fesm2022/festo-ui-angular.mjs.map +1 -1
  6. package/index.d.ts +2043 -3
  7. package/package.json +10 -10
  8. package/lib/components/accordion/accordion-header/accordion-header.component.d.ts +0 -5
  9. package/lib/components/accordion/accordion-item/accordion-item-body/accordion-item-body.component.d.ts +0 -6
  10. package/lib/components/accordion/accordion-item/accordion-item-header/accordion-item-header.component.d.ts +0 -15
  11. package/lib/components/accordion/accordion-item/accordion-item.component.d.ts +0 -35
  12. package/lib/components/accordion/accordion.component.d.ts +0 -24
  13. package/lib/components/accordion/index.d.ts +0 -5
  14. package/lib/components/bottom-sheet/bottom-sheet.component.d.ts +0 -23
  15. package/lib/components/breadcrumb/breadcrumb.component.d.ts +0 -12
  16. package/lib/components/buttons/button/button.component.d.ts +0 -17
  17. package/lib/components/buttons/link-button/link-button.component.d.ts +0 -13
  18. package/lib/components/chips/chip/chip.component.d.ts +0 -18
  19. package/lib/components/chips/chip-container/chip-container.component.d.ts +0 -6
  20. package/lib/components/components.module.d.ts +0 -44
  21. package/lib/components/loading-indicator/loading-indicator.component.d.ts +0 -6
  22. package/lib/components/mobile-flyout/mobile-flyout-item/mobile-flyout-item.component.d.ts +0 -15
  23. package/lib/components/mobile-flyout/mobile-flyout-page/mobile-flyout-page.component.d.ts +0 -19
  24. package/lib/components/mobile-flyout/mobile-flyout.component.d.ts +0 -17
  25. package/lib/components/overlay/overlay-content/overlay-content.component.d.ts +0 -5
  26. package/lib/components/overlay/overlay-outlet.directive.d.ts +0 -64
  27. package/lib/components/pagination/pagination.component.d.ts +0 -21
  28. package/lib/components/popovers/legend/legend.component.d.ts +0 -22
  29. package/lib/components/popovers/legend/legend.directive.d.ts +0 -13
  30. package/lib/components/popovers/popover/popover.component.d.ts +0 -14
  31. package/lib/components/popovers/popover-content/popover-content.component.d.ts +0 -33
  32. package/lib/components/popovers/popover-content/popover-content.directive.d.ts +0 -14
  33. package/lib/components/popovers/popover-menu/popover-menu.component.d.ts +0 -24
  34. package/lib/components/popovers/popover-ref.d.ts +0 -12
  35. package/lib/components/popovers/popover.defaults.d.ts +0 -40
  36. package/lib/components/popovers/popover.models.d.ts +0 -47
  37. package/lib/components/popovers/popover.service.d.ts +0 -21
  38. package/lib/components/popovers/tooltip/tooltip.directive.d.ts +0 -36
  39. package/lib/components/progress/progress.component.d.ts +0 -8
  40. package/lib/components/scroll/index.d.ts +0 -1
  41. package/lib/components/scroll/scrollable.directive.d.ts +0 -24
  42. package/lib/components/search-input/search-input.component.d.ts +0 -73
  43. package/lib/components/sidebar-overlay/sidebar-overlay.component.d.ts +0 -25
  44. package/lib/components/snackbar/snackbar-container.component.d.ts +0 -7
  45. package/lib/components/snackbar/snackbar-container.directive.d.ts +0 -17
  46. package/lib/components/snackbar/snackbar.component.d.ts +0 -17
  47. package/lib/components/snackbar/snackbar.models.d.ts +0 -12
  48. package/lib/components/snackbar/snackbar.module.d.ts +0 -13
  49. package/lib/components/snackbar/snackbar.service.d.ts +0 -17
  50. package/lib/components/stepper-horizontal/step-horizontal/step-horizontal.component.d.ts +0 -7
  51. package/lib/components/stepper-horizontal/stepper-horizontal.component.d.ts +0 -14
  52. package/lib/components/stepper-vertical/step-vertical/step-vertical.component.d.ts +0 -18
  53. package/lib/components/stepper-vertical/stepper-vertical.component.d.ts +0 -14
  54. package/lib/components/table-header-cell/table-header-cell.directive.d.ts +0 -21
  55. package/lib/components/tabs/tab-pane/tab-pane.component.d.ts +0 -18
  56. package/lib/components/tabs/tabs.component.d.ts +0 -95
  57. package/lib/directives/click-outside.directive.d.ts +0 -10
  58. package/lib/festo-angular.module.d.ts +0 -11
  59. package/lib/forms/checkbox/checkbox.component.d.ts +0 -40
  60. package/lib/forms/color-indicator/color-indicator.component.d.ts +0 -31
  61. package/lib/forms/color-picker/color-helper.d.ts +0 -9
  62. package/lib/forms/color-picker/color-picker.component.d.ts +0 -77
  63. package/lib/forms/date-picker/date-picker.component.d.ts +0 -51
  64. package/lib/forms/date-range-picker/date-range-picker.component.d.ts +0 -54
  65. package/lib/forms/flatpickr/flatpickr.component.d.ts +0 -19
  66. package/lib/forms/forms.module.d.ts +0 -24
  67. package/lib/forms/radio/radio.component.d.ts +0 -95
  68. package/lib/forms/segment/segment-control/segment-control.component.d.ts +0 -23
  69. package/lib/forms/segment/segment.component.d.ts +0 -40
  70. package/lib/forms/select/chip-text.pipe.d.ts +0 -7
  71. package/lib/forms/select/select-option/select-option.component.d.ts +0 -11
  72. package/lib/forms/select/select.component.d.ts +0 -69
  73. package/lib/forms/slider/slider.component.d.ts +0 -37
  74. package/lib/forms/switch/switch.component.d.ts +0 -35
  75. package/lib/forms/text-area/text-area.component.d.ts +0 -103
  76. package/lib/forms/text-editor/text-editor.component.d.ts +0 -72
  77. package/lib/forms/text-input/text-input.component.d.ts +0 -104
  78. package/lib/forms/time-picker/time-picker-dropdown/time-picker-dropdown.component.d.ts +0 -28
  79. package/lib/forms/time-picker/time-picker.component.d.ts +0 -42
  80. package/lib/forms/unique-selection-dispatcher.d.ts +0 -20
  81. package/lib/forms/value-accessor-base.d.ts +0 -17
  82. package/lib/modals/alert/alert.component.d.ts +0 -26
  83. package/lib/modals/confirm/confirm.component.d.ts +0 -27
  84. package/lib/modals/custom-modal/custom-modal.component.d.ts +0 -28
  85. package/lib/modals/image-gallery/image-gallery.component.d.ts +0 -46
  86. package/lib/modals/index.d.ts +0 -21
  87. package/lib/modals/modal.service.d.ts +0 -22
  88. package/lib/modals/modals.module.d.ts +0 -17
  89. package/lib/modals/prompt/prompt.component.d.ts +0 -45
  90. package/lib/pipes/safe-html.pipe.d.ts +0 -10
  91. package/public-api.d.ts +0 -64
@@ -1,103 +0,0 @@
1
- import { OnInit, ElementRef } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * A custom form element for text inputs.
6
- */
7
- export declare class FngTextAreaComponent implements OnInit, ControlValueAccessor {
8
- /**
9
- * The text input label.
10
- */
11
- label: string | undefined;
12
- get readonly(): boolean;
13
- set readonly(value: boolean);
14
- private innerReadonly;
15
- placeholder: string | undefined;
16
- tabindex: number;
17
- name: string | undefined;
18
- /**
19
- * When true the control's disabled attribute is set
20
- * and it gets addeed the .disabled css class.
21
- */
22
- get disabled(): boolean;
23
- set disabled(value: boolean);
24
- protected innerDisabled: boolean;
25
- /**
26
- * The inner value.
27
- */
28
- innerValue: string | undefined;
29
- /**
30
- * The getter for value.
31
- */
32
- get value(): string | undefined;
33
- /**
34
- * The setter for value.
35
- */
36
- set value(value: string | undefined);
37
- get required(): boolean;
38
- set required(value: boolean);
39
- protected innerRequired: boolean;
40
- /**
41
- * Error description when invalid.
42
- */
43
- error: string | undefined;
44
- /**
45
- * Hint description when valid.
46
- */
47
- hint: string | undefined;
48
- /**
49
- * the height is managed by classes. the last one is "fwe-row-10"
50
- */
51
- get rows(): number;
52
- set rows(value: number);
53
- protected innerRows: number;
54
- maxlength: number;
55
- inputElement: ElementRef | undefined;
56
- /**
57
- * When true the text input has focus.
58
- */
59
- focused: boolean;
60
- /**
61
- * Triggered on change.
62
- */
63
- onChange: ((value: string | undefined) => void) | undefined;
64
- /**
65
- * Triggered on touch.
66
- */
67
- onTouched: (() => void) | undefined;
68
- /**
69
- * Called on component initialisation.
70
- */
71
- ngOnInit(): void;
72
- /**
73
- * Writes the value.
74
- * @param value The value.
75
- */
76
- writeValue(value: string): void;
77
- /**
78
- * Registers a function to onChange.
79
- * @param fn The registered function.
80
- */
81
- registerOnChange(fn: any): void;
82
- /**
83
- * Registers a function to onTouched.
84
- * @param fn The registered function.
85
- */
86
- registerOnTouched(fn: any): void;
87
- /**
88
- * Called when the text input is in focus.
89
- */
90
- onFocus(): void;
91
- onInput(event: any): void;
92
- /**
93
- * Called when the text input blurs.
94
- */
95
- onBlur(): void;
96
- /**
97
- * Sets the disabled state.
98
- * @param isDisabled When true the control is disabled
99
- */
100
- setDisabledState(isDisabled: boolean): void;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<FngTextAreaComponent, never>;
102
- static ɵcmp: i0.ɵɵComponentDeclaration<FngTextAreaComponent, "fng-text-area", never, { "label": { "alias": "label"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; }, {}, never, never, true, never>;
103
- }
@@ -1,72 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
2
- import { DomSanitizer } from '@angular/platform-browser';
3
- import QuillType from 'quill';
4
- import { FngValueAccessorBaseDirective } from '../value-accessor-base';
5
- import * as i0 from "@angular/core";
6
- export interface FngTextEditorConfiguration {
7
- toolbar?: {
8
- bold?: boolean;
9
- italic?: boolean;
10
- underline?: boolean;
11
- alignCenter?: boolean;
12
- alignRight?: boolean;
13
- bulletList?: boolean;
14
- orderedList?: boolean;
15
- image?: boolean;
16
- link?: boolean;
17
- };
18
- sanitizing?: {
19
- skipDefaultSanitizing?: boolean;
20
- skipWhitespaceHandling?: boolean;
21
- sanitizingFn?: (ds: DomSanitizer, value: string) => string;
22
- };
23
- focusCursorToEndOnWrite?: boolean;
24
- }
25
- export declare class FngTextEditorComponent extends FngValueAccessorBaseDirective<string | null | undefined> implements OnInit, AfterViewInit, OnChanges {
26
- elementRef: ElementRef;
27
- private renderer;
28
- private domSanitizer;
29
- id: string | undefined;
30
- quillEditor: QuillType;
31
- editorElem: HTMLElement;
32
- defaultConfig: FngTextEditorConfiguration;
33
- btnBold: ElementRef | undefined;
34
- btnItalic: ElementRef | undefined;
35
- btnUnderline: ElementRef | undefined;
36
- btnAlignCenter: ElementRef | undefined;
37
- btnAlignRight: ElementRef | undefined;
38
- btnLink: ElementRef | undefined;
39
- btnUl: ElementRef | undefined;
40
- btnOl: ElementRef | undefined;
41
- btnImage: ElementRef | undefined;
42
- fngChange: EventEmitter<any>;
43
- change: EventEmitter<any>;
44
- config: FngTextEditorConfiguration;
45
- modules: any;
46
- label: string | undefined;
47
- readOnly: boolean;
48
- maxLength: number;
49
- error: string | undefined;
50
- hint: string | undefined;
51
- set value(value: string | null | undefined);
52
- get value(): string | null | undefined;
53
- valueGetter: (editorElement: HTMLElement) => string | any;
54
- valueSetter: (quillEditor: QuillType, value: any) => any;
55
- constructor(elementRef: ElementRef, renderer: Renderer2, domSanitizer: DomSanitizer);
56
- ngOnInit(): void;
57
- ngAfterViewInit(): void;
58
- ngOnChanges(changes: SimpleChanges): void;
59
- writeValue(value: string): void;
60
- setDisabledState(isDisabled?: boolean): void;
61
- setReadOnlyState(): void;
62
- delegate(event: any, action: string): void;
63
- currentLength(): number;
64
- hideDivider(name: string): boolean;
65
- private setEditorLabel;
66
- private handle;
67
- private addWhitespaceMatcher;
68
- private addImageMatcher;
69
- private handleWhitespace;
70
- static ɵfac: i0.ɵɵFactoryDeclaration<FngTextEditorComponent, never>;
71
- static ɵcmp: i0.ɵɵComponentDeclaration<FngTextEditorComponent, "fng-text-editor", never, { "config": { "alias": "config"; "required": false; }; "modules": { "alias": "modules"; "required": false; }; "label": { "alias": "label"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "fngChange": "fngChange"; "change": "change"; }, never, never, true, never>;
72
- }
@@ -1,104 +0,0 @@
1
- import { OnInit, ElementRef } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * A custom form element for text inputs.
6
- */
7
- export declare class FngTextInputComponent implements OnInit, ControlValueAccessor {
8
- /**
9
- * The text input label.
10
- */
11
- label: string;
12
- /**
13
- * A string specifying the type of control to render.
14
- */
15
- get type(): string;
16
- set type(value: string);
17
- protected innerType: string;
18
- get readonly(): boolean;
19
- set readonly(value: boolean);
20
- private innerReadonly;
21
- step: number | undefined;
22
- min: number | undefined;
23
- max: number | undefined;
24
- tabindex: number | undefined;
25
- placeholder: string | undefined;
26
- name: string;
27
- /**
28
- * When true the control's disabled attribute is set
29
- * and it gets addeed the .disabled css class.
30
- */
31
- get disabled(): boolean;
32
- set disabled(value: boolean);
33
- protected innerDisabled: boolean;
34
- /**
35
- * The inner value.
36
- */
37
- innerValue: string;
38
- /**
39
- * The getter for value.
40
- */
41
- get value(): string;
42
- /**
43
- * The setter for value.
44
- */
45
- set value(value: string);
46
- get required(): boolean;
47
- set required(value: boolean);
48
- protected innerRequired: boolean;
49
- /**
50
- * Error description when invalid.
51
- */
52
- error: string;
53
- /**
54
- * Hint description when valid.
55
- */
56
- hint: string | undefined;
57
- inputElement: ElementRef | undefined;
58
- /**
59
- * When true the text input has focus.
60
- */
61
- focused: boolean;
62
- /**
63
- * Triggered on change.
64
- */
65
- onChange: ((value: string) => void) | undefined;
66
- /**
67
- * Triggered on touch.
68
- */
69
- onTouched: (() => void) | undefined;
70
- /**
71
- * Called on component initialisation.
72
- */
73
- ngOnInit(): void;
74
- /**
75
- * Writes the value.
76
- * @param value The value.
77
- */
78
- writeValue(value: string): void;
79
- /**
80
- * Registers a function to onChange.
81
- * @param fn The registered function.
82
- */
83
- registerOnChange(fn: any): void;
84
- /**
85
- * Registers a function to onTouched.
86
- * @param fn The registered function.
87
- */
88
- registerOnTouched(fn: any): void;
89
- /**
90
- * Called when the text input is in focus.
91
- */
92
- onFocus(): void;
93
- /**
94
- * Called when the text input blurs.
95
- */
96
- onBlur(): void;
97
- /**
98
- * Sets the disabled state.
99
- * @param isDisabled When true the control is disabled
100
- */
101
- setDisabledState(isDisabled: boolean): void;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<FngTextInputComponent, never>;
103
- static ɵcmp: i0.ɵɵComponentDeclaration<FngTextInputComponent, "fng-text-input", never, { "label": { "alias": "label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "error": { "alias": "error"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, [".fng-hint", ".fng-error"], true, never>;
104
- }
@@ -1,28 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FngTimePickerDropdownComponent implements AfterViewInit {
4
- date: Date;
5
- showSeconds: boolean;
6
- timeFormat: '12' | '24';
7
- dateChange: EventEmitter<{
8
- reset: boolean;
9
- date: Date;
10
- close: boolean;
11
- }>;
12
- hoursInput: ElementRef | undefined;
13
- hide(event: KeyboardEvent): void;
14
- ngAfterViewInit(): void;
15
- onHourUp(): void;
16
- onHourDown(): void;
17
- onMinuteUp(): void;
18
- onMinuteDown(): void;
19
- onSecondUp(): void;
20
- onSecondDown(): void;
21
- onHourChange(event: Event): void;
22
- onMinuteChange(event: Event): void;
23
- onSecondChange(event: Event): void;
24
- onToggleTimeFormat(): void;
25
- onDateChange(close: boolean, reset: boolean): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<FngTimePickerDropdownComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<FngTimePickerDropdownComponent, "fng-time-picker-dropdown", never, { "date": { "alias": "date"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
28
- }
@@ -1,42 +0,0 @@
1
- import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
- import { ChangeDetectorRef, ElementRef } from '@angular/core';
3
- import { ControlValueAccessor } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export interface FngTimePickerOptions {
6
- timeFormat?: '12' | '24';
7
- showSeconds?: boolean;
8
- }
9
- export declare class FngTimePickerComponent implements ControlValueAccessor {
10
- private overlay;
11
- private cd;
12
- get value(): Date;
13
- set value(date: Date);
14
- get disabled(): boolean;
15
- set disabled(value: boolean);
16
- get required(): boolean;
17
- set required(value: boolean);
18
- protected innerRequired: boolean;
19
- hint: string | undefined;
20
- error: string | undefined;
21
- options: FngTimePickerOptions | undefined;
22
- width: string;
23
- display: string;
24
- connector: ElementRef | undefined;
25
- get timeFormat(): string;
26
- timePickerRef: OverlayRef | null;
27
- protected innerValue: Date;
28
- protected innerDisabled: boolean;
29
- private complete;
30
- private timePicker;
31
- constructor(overlay: Overlay, cd: ChangeDetectorRef);
32
- onTouched: (() => void) | undefined;
33
- onChange: ((date: Date) => void) | undefined;
34
- writeValue(date: Date): void;
35
- registerOnChange(fn: any): void;
36
- registerOnTouched(fn: any): void;
37
- setDisabledState?(isDisabled: boolean): void;
38
- toggle(event: Event): void;
39
- disposeDropdown(): void;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<FngTimePickerComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<FngTimePickerComponent, "fng-time-picker", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "error": { "alias": "error"; "required": false; }; "options": { "alias": "options"; "required": false; }; "width": { "alias": "width"; "required": false; }; }, {}, never, ["*"], true, never>;
42
- }
@@ -1,20 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export type UniqueSelectionDispatcherListener = (id: string, name: string) => void;
4
- export declare class FngUniqueSelectionDispatcher implements OnDestroy {
5
- private listeners;
6
- /**
7
- * Notify other items that selection for the given name has been set.
8
- * @param id ID of the item.
9
- * @param name Name of the item.
10
- */
11
- notify(id: string, name?: string): void;
12
- /**
13
- * Listen for future changes to item selection.
14
- * @return Function used to deregister listener
15
- */
16
- listen(listener: UniqueSelectionDispatcherListener): () => void;
17
- ngOnDestroy(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<FngUniqueSelectionDispatcher, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<FngUniqueSelectionDispatcher>;
20
- }
@@ -1,17 +0,0 @@
1
- import { ControlValueAccessor } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- export declare class FngValueAccessorBaseDirective<T> implements ControlValueAccessor {
4
- disabled: boolean;
5
- protected innerValue: T | undefined;
6
- protected changed: ((value: T) => void)[];
7
- protected touched: (() => void)[];
8
- get value(): T | undefined;
9
- set value(value: T | undefined);
10
- touch(): void;
11
- writeValue(value: T): void;
12
- registerOnChange(fn: (value: T) => void): void;
13
- registerOnTouched(fn: () => void): void;
14
- setDisabledState?(isDisabled: boolean): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<FngValueAccessorBaseDirective<any>, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<FngValueAccessorBaseDirective<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
17
- }
@@ -1,26 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
- import { Modal } from '../index';
3
- import * as i0 from "@angular/core";
4
- export interface FngAlertData {
5
- title: string;
6
- subtitle?: string;
7
- body: string;
8
- alertType: 'info' | 'warning' | 'error';
9
- cancel?: string;
10
- ok?: string;
11
- strong?: boolean;
12
- }
13
- export declare class FngAlertComponent implements AfterViewInit, Modal<FngAlertData, any> {
14
- data: FngAlertData;
15
- close: EventEmitter<any>;
16
- cancel: EventEmitter<any>;
17
- ok: EventEmitter<any>;
18
- closeBtn: ElementRef | undefined;
19
- onKeyUp(event: KeyboardEvent): void;
20
- ngAfterViewInit(): void;
21
- onClose(): void;
22
- onOk(): void;
23
- onCancel(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<FngAlertComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<FngAlertComponent, "fng-alert", never, { "data": { "alias": "data"; "required": false; }; }, { "close": "close"; "cancel": "cancel"; "ok": "ok"; }, never, never, true, never>;
26
- }
@@ -1,27 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
2
- import { Modal } from '../index';
3
- import * as i0 from "@angular/core";
4
- export interface FngConfirmData {
5
- title: string;
6
- subtitle?: string;
7
- body: string;
8
- cancel?: string;
9
- ok?: string;
10
- large?: boolean;
11
- }
12
- export declare class FngConfirmComponent implements AfterViewInit, Modal<FngConfirmData, any> {
13
- private cd;
14
- data: FngConfirmData;
15
- close: EventEmitter<any>;
16
- cancel: EventEmitter<any>;
17
- ok: EventEmitter<any>;
18
- closeBtn: ElementRef | undefined;
19
- onKeyUp(event: KeyboardEvent): void;
20
- constructor(cd: ChangeDetectorRef);
21
- ngAfterViewInit(): void;
22
- onClose(): void;
23
- onOk(): void;
24
- onCancel(): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<FngConfirmComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<FngConfirmComponent, "fng-confirm", never, { "data": { "alias": "data"; "required": false; }; }, { "close": "close"; "cancel": "cancel"; "ok": "ok"; }, never, never, true, never>;
27
- }
@@ -1,28 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class FngCustomModalComponent {
4
- private _visible;
5
- closeOnBackdrop: boolean;
6
- large: boolean;
7
- set visible(value: boolean);
8
- get visible(): boolean;
9
- /**
10
- * Emits false on close modal by close, cancel, click outside and close by providing value false to visible
11
- */
12
- visibleChange: EventEmitter<boolean>;
13
- header: string;
14
- subheader: string;
15
- acknowledgeLabel: string;
16
- acknowledge: EventEmitter<void>;
17
- cancelLabel: string;
18
- cancel: EventEmitter<void>;
19
- close: EventEmitter<void>;
20
- closeModal(): void;
21
- onClose(): void;
22
- onCancel(): void;
23
- onAcknowledge(): void;
24
- onClickOutside(): void;
25
- onClickInside(event: MouseEvent): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<FngCustomModalComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<FngCustomModalComponent, "fng-custom-modal", never, { "closeOnBackdrop": { "alias": "closeOnBackdrop"; "required": false; }; "large": { "alias": "large"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "header": { "alias": "header"; "required": false; }; "subheader": { "alias": "subheader"; "required": false; }; "acknowledgeLabel": { "alias": "acknowledgeLabel"; "required": false; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; }; }, { "visibleChange": "visibleChange"; "acknowledge": "acknowledge"; "cancel": "cancel"; "close": "close"; }, never, ["*"], true, never>;
28
- }
@@ -1,46 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { Modal } from '../modals.module';
3
- import * as i0 from "@angular/core";
4
- export interface FngImageDescriptiveContent {
5
- title: string;
6
- body: string;
7
- }
8
- export interface FngImageGalleryData {
9
- startIndex: number;
10
- images: {
11
- url: string;
12
- alt: string;
13
- content?: FngImageDescriptiveContent;
14
- containMode?: boolean;
15
- }[];
16
- thumbnailImages?: {
17
- url: string;
18
- alt: string;
19
- containMode?: boolean;
20
- }[];
21
- pagination?: boolean;
22
- descriptiveContent?: boolean;
23
- slideChanged?: (index: number) => void;
24
- showScaleButton: boolean;
25
- }
26
- export declare class FngImageGalleryComponent implements Modal<FngImageGalleryData, any> {
27
- private cd;
28
- data: FngImageGalleryData;
29
- close: EventEmitter<any>;
30
- scaleUp: EventEmitter<any>;
31
- scaleDown: EventEmitter<any>;
32
- cancel: EventEmitter<any>;
33
- ok: EventEmitter<any>;
34
- thumbsSwiper: any;
35
- currentIndex: number;
36
- isScaled: boolean;
37
- constructor(cd: ChangeDetectorRef);
38
- onKeyUp(event: KeyboardEvent): void;
39
- onSlideChange(swiper: {
40
- activeIndex: number;
41
- }[]): void;
42
- onClose(): void;
43
- onScale(): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<FngImageGalleryComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<FngImageGalleryComponent, "fng-image-gallery", never, { "data": { "alias": "data"; "required": false; }; }, { "close": "close"; "scaleUp": "scaleUp"; "scaleDown": "scaleDown"; "cancel": "cancel"; "ok": "ok"; }, never, never, true, never>;
46
- }
@@ -1,21 +0,0 @@
1
- import { EventEmitter, OnChanges } from '@angular/core';
2
- import { GlobalPositionStrategy } from '@angular/cdk/overlay';
3
- export type ModalUserAction = 'ok' | 'cancel' | 'close' | 'backdrop' | 'navigated';
4
- export interface Modal<TData, TResult> extends Partial<OnChanges> {
5
- data: TData;
6
- close: EventEmitter<any>;
7
- cancel: EventEmitter<any>;
8
- ok: EventEmitter<TResult>;
9
- }
10
- export interface ModalOptions {
11
- hasBackdrop?: boolean;
12
- shouldCloseOnBackdrop?: boolean;
13
- backdropClass?: string;
14
- positionStrategy?: GlobalPositionStrategy;
15
- overlayClass?: string;
16
- closeOnNavigation?: boolean;
17
- }
18
- export interface ModalResult<TResult> {
19
- userAction: ModalUserAction;
20
- result?: TResult;
21
- }
@@ -1,22 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import { Overlay } from '@angular/cdk/overlay';
3
- import { ComponentType } from '@angular/cdk/portal';
4
- import { Modal, ModalOptions, ModalResult } from './index';
5
- import { FngAlertData } from './alert/alert.component';
6
- import { FngConfirmData } from './confirm/confirm.component';
7
- import { FngPromptData } from './prompt/prompt.component';
8
- import { FngImageGalleryData } from './image-gallery/image-gallery.component';
9
- import * as i0 from "@angular/core";
10
- export declare class FngModalService {
11
- protected overlay: Overlay;
12
- private router;
13
- constructor(overlay: Overlay, router: Router);
14
- alert(data: FngAlertData, options?: ModalOptions): Promise<ModalResult<any>>;
15
- confirm(data: FngConfirmData, options?: ModalOptions): Promise<ModalResult<any>>;
16
- prompt(data: FngPromptData, options?: ModalOptions): Promise<ModalResult<any>>;
17
- openImageGallery(data: FngImageGalleryData): Promise<ModalResult<any>>;
18
- open<TData, TResult, TModal extends Modal<TData, TResult>>(data: TData, modal: ComponentType<TModal>, options: ModalOptions): Promise<ModalResult<TResult>>;
19
- private dispose;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FngModalService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<FngModalService>;
22
- }
@@ -1,17 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./alert/alert.component";
3
- import * as i2 from "./confirm/confirm.component";
4
- import * as i3 from "./prompt/prompt.component";
5
- import * as i4 from "./custom-modal/custom-modal.component";
6
- import * as i5 from "./image-gallery/image-gallery.component";
7
- export * from './index';
8
- export * from './alert/alert.component';
9
- export * from './confirm/confirm.component';
10
- export * from './prompt/prompt.component';
11
- export * from './custom-modal/custom-modal.component';
12
- export * from './image-gallery/image-gallery.component';
13
- export declare class FestoAngularModalsModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FestoAngularModalsModule, never>;
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]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<FestoAngularModalsModule>;
17
- }
@@ -1,45 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { AbstractControlOptions, AsyncValidatorFn, FormBuilder, FormGroup, ValidatorFn } from '@angular/forms';
3
- import { Modal } from '../index';
4
- import { FngTextInputComponent } from '../../forms/text-input/text-input.component';
5
- import * as i0 from "@angular/core";
6
- export interface FngPromptData {
7
- title: string;
8
- subtitle?: string;
9
- label: string;
10
- hint?: string;
11
- errors?: {
12
- [key: string]: string;
13
- };
14
- cancel?: string;
15
- ok?: string;
16
- value?: string;
17
- placeholder?: string;
18
- validatorOrOpts?: ValidatorFn | ValidatorFn[] | AbstractControlOptions | null;
19
- asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[] | null;
20
- }
21
- export declare class FngPromptComponent implements OnInit, AfterViewInit, OnDestroy, Modal<FngPromptData, any> {
22
- private formBuilder;
23
- data: FngPromptData;
24
- close: EventEmitter<any>;
25
- cancel: EventEmitter<any>;
26
- ok: EventEmitter<any>;
27
- closeBtn: ElementRef | undefined;
28
- inputField: FngTextInputComponent | undefined;
29
- form: FormGroup;
30
- error: string;
31
- get text(): string;
32
- get valid(): boolean;
33
- private complete;
34
- constructor(formBuilder: FormBuilder);
35
- onKeyUp(event: KeyboardEvent): void;
36
- ngOnInit(): void;
37
- ngAfterViewInit(): void;
38
- ngOnDestroy(): void;
39
- onClose(): void;
40
- onOk(): void;
41
- onCancel(): void;
42
- private handleErrors;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<FngPromptComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<FngPromptComponent, "fng-prompt", never, { "data": { "alias": "data"; "required": false; }; }, { "close": "close"; "cancel": "cancel"; "ok": "ok"; }, never, never, true, never>;
45
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class FngSafeHtmlPipe implements PipeTransform {
5
- protected sanitizer: DomSanitizer;
6
- constructor(sanitizer: DomSanitizer);
7
- transform(value: any): SafeHtml;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FngSafeHtmlPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<FngSafeHtmlPipe, "fngSafeHtml", true>;
10
- }