@kms-ngx-ui/presentational 0.0.1

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 (122) hide show
  1. package/README.md +24 -0
  2. package/bundles/kms-ngx-ui-presentational.umd.js +2441 -0
  3. package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -0
  4. package/bundles/kms-ngx-ui-presentational.umd.min.js +38 -0
  5. package/bundles/kms-ngx-ui-presentational.umd.min.js.map +1 -0
  6. package/esm2015/kms-ngx-ui-presentational.js +37 -0
  7. package/esm2015/lib/kms-ngx-ui-presentational.component.js +18 -0
  8. package/esm2015/lib/kms-ngx-ui-presentational.module.js +98 -0
  9. package/esm2015/lib/kms-ngx-ui-presentational.service.js +13 -0
  10. package/esm2015/lib/models/address.model.js +6 -0
  11. package/esm2015/lib/models/iconSize.enum.js +17 -0
  12. package/esm2015/lib/models/index.js +5 -0
  13. package/esm2015/lib/models/is-value.function.js +17 -0
  14. package/esm2015/lib/models/salutation.enum.js +8 -0
  15. package/esm2015/lib/models/types/attached-file-dto.model.js +6 -0
  16. package/esm2015/lib/models/types/nullable.type.js +5 -0
  17. package/esm2015/lib/parent-components/actions.component.js +48 -0
  18. package/esm2015/lib/parent-components/form-control.component.js +73 -0
  19. package/esm2015/lib/parent-components/form.component.js +77 -0
  20. package/esm2015/lib/pipes/custom-pipes.module.js +45 -0
  21. package/esm2015/lib/pipes/decode-uri.pipe.js +15 -0
  22. package/esm2015/lib/pipes/encode-uri.pipe.js +15 -0
  23. package/esm2015/lib/pipes/integer-currency.pipe.js +29 -0
  24. package/esm2015/lib/pipes/safe-html.pipe.js +22 -0
  25. package/esm2015/lib/pipes/safe-style.pipe.js +22 -0
  26. package/esm2015/lib/pipes/safe-url.pipe.js +22 -0
  27. package/esm2015/lib/pipes/to-number.pipe.js +19 -0
  28. package/esm2015/lib/pipes/trim.pipe.js +16 -0
  29. package/esm2015/lib/pipes/typeof.pipe.js +12 -0
  30. package/esm2015/lib/services/viewport.service.js +213 -0
  31. package/esm2015/lib/ui/back-to-top/back-to-top.component.js +46 -0
  32. package/esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js +6 -0
  33. package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +56 -0
  34. package/esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js +2 -0
  35. package/esm2015/lib/ui/checkbox/checkbox.component.js +63 -0
  36. package/esm2015/lib/ui/color-input/color-input.component.js +63 -0
  37. package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +46 -0
  38. package/esm2015/lib/ui/file-input/file-input.component.js +215 -0
  39. package/esm2015/lib/ui/flyout/flyout.component.js +84 -0
  40. package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +54 -0
  41. package/esm2015/lib/ui/icon/icon.component.js +47 -0
  42. package/esm2015/lib/ui/icon/iconSize.enum.js +17 -0
  43. package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +36 -0
  44. package/esm2015/lib/ui/loader/loader.component.js +21 -0
  45. package/esm2015/lib/ui/map/map.component.js +137 -0
  46. package/esm2015/lib/ui/radiobutton/radiobutton.component.js +66 -0
  47. package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +49 -0
  48. package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +44 -0
  49. package/esm2015/lib/ui/time-input/time-input.component.js +80 -0
  50. package/esm2015/lib/ui/tooltip/tooltip.component.js +17 -0
  51. package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +29 -0
  52. package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +74 -0
  53. package/esm2015/public-api.js +12 -0
  54. package/fesm2015/kms-ngx-ui-presentational.js +1962 -0
  55. package/fesm2015/kms-ngx-ui-presentational.js.map +1 -0
  56. package/kms-ngx-ui-presentational.d.ts +37 -0
  57. package/kms-ngx-ui-presentational.metadata.json +1 -0
  58. package/lib/kms-ngx-ui-presentational.component.d.ts +5 -0
  59. package/lib/kms-ngx-ui-presentational.module.d.ts +2 -0
  60. package/lib/kms-ngx-ui-presentational.service.d.ts +3 -0
  61. package/lib/models/address.model.d.ts +14 -0
  62. package/lib/models/iconSize.enum.d.ts +15 -0
  63. package/lib/models/index.d.ts +4 -0
  64. package/lib/models/is-value.function.d.ts +9 -0
  65. package/lib/models/salutation.enum.d.ts +5 -0
  66. package/lib/models/types/attached-file-dto.model.d.ts +11 -0
  67. package/lib/models/types/nullable.type.d.ts +4 -0
  68. package/lib/parent-components/actions.component.d.ts +28 -0
  69. package/lib/parent-components/form-control.component.d.ts +24 -0
  70. package/lib/parent-components/form.component.d.ts +31 -0
  71. package/lib/pipes/custom-pipes.module.d.ts +5 -0
  72. package/lib/pipes/decode-uri.pipe.d.ts +7 -0
  73. package/lib/pipes/encode-uri.pipe.d.ts +7 -0
  74. package/lib/pipes/integer-currency.pipe.d.ts +10 -0
  75. package/lib/pipes/safe-html.pipe.d.ts +10 -0
  76. package/lib/pipes/safe-style.pipe.d.ts +10 -0
  77. package/lib/pipes/safe-url.pipe.d.ts +10 -0
  78. package/lib/pipes/to-number.pipe.d.ts +7 -0
  79. package/lib/pipes/trim.pipe.d.ts +7 -0
  80. package/lib/pipes/typeof.pipe.d.ts +4 -0
  81. package/lib/services/viewport.service.d.ts +74 -0
  82. package/lib/ui/back-to-top/back-to-top.component.d.ts +10 -0
  83. package/lib/ui/button-with-confirm-dialog/button-response-types.enum.d.ts +4 -0
  84. package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +16 -0
  85. package/lib/ui/button-with-confirm-dialog/dialog-data.model.d.ts +9 -0
  86. package/lib/ui/checkbox/checkbox.component.d.ts +28 -0
  87. package/lib/ui/color-input/color-input.component.d.ts +15 -0
  88. package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +14 -0
  89. package/lib/ui/file-input/file-input.component.d.ts +86 -0
  90. package/lib/ui/flyout/flyout.component.d.ts +32 -0
  91. package/lib/ui/generic-dialog/generic-dialog.component.d.ts +23 -0
  92. package/lib/ui/icon/icon.component.d.ts +39 -0
  93. package/lib/ui/icon/iconSize.enum.d.ts +15 -0
  94. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +18 -0
  95. package/lib/ui/loader/loader.component.d.ts +6 -0
  96. package/lib/ui/map/map.component.d.ts +70 -0
  97. package/lib/ui/radiobutton/radiobutton.component.d.ts +23 -0
  98. package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +14 -0
  99. package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +12 -0
  100. package/lib/ui/time-input/time-input.component.d.ts +19 -0
  101. package/lib/ui/tooltip/tooltip.component.d.ts +3 -0
  102. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +10 -0
  103. package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +24 -0
  104. package/package.json +25 -0
  105. package/public-api.d.ts +6 -0
  106. package/src/lib/ui/back-to-top/back-to-top.component.scss +47 -0
  107. package/src/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.scss +0 -0
  108. package/src/lib/ui/checkbox/checkbox.component.scss +57 -0
  109. package/src/lib/ui/color-input/color-input.component.scss +38 -0
  110. package/src/lib/ui/file-input/file-input.component.scss +0 -0
  111. package/src/lib/ui/flyout/flyout.component.scss +34 -0
  112. package/src/lib/ui/generic-dialog/generic-dialog.component.scss +59 -0
  113. package/src/lib/ui/icon/icon.component.scss +149 -0
  114. package/src/lib/ui/kms-accordion-item/kms-accordion-item.component.scss +95 -0
  115. package/src/lib/ui/loader/loader.component.scss +0 -0
  116. package/src/lib/ui/map/map.component.scss +0 -0
  117. package/src/lib/ui/radiobutton/radiobutton.component.scss +30 -0
  118. package/src/lib/ui/time-input/time-input.component.scss +10 -0
  119. package/src/lib/ui/tooltip/tooltip.component.scss +27 -0
  120. package/src/lib/ui/tooltip-icon/tooltip-icon.component.scss +2 -0
  121. package/src/styles/mixins.scss +9 -0
  122. package/src/styles/styles.scss +30 -0
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ export declare type NullAble<T> = T | null | undefined;
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { EventEmitter } from '@angular/core';
5
+ export declare class ActionsParentComponent {
6
+ /**
7
+ * Defines the disabled property
8
+ */
9
+ disabled: boolean;
10
+ /**
11
+ * Set button as selected. F.e. in multiselect component
12
+ */
13
+ checked: boolean;
14
+ /**
15
+ * Displayed label.
16
+ */
17
+ label: string;
18
+ /**
19
+ * Link
20
+ */
21
+ link: string;
22
+ /**
23
+ * Internal value that will be send if a form is submitted.
24
+ */
25
+ initialValue: string;
26
+ select: EventEmitter<any>;
27
+ selectAction(id: string): void;
28
+ }
@@ -0,0 +1,24 @@
1
+ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
+ import { FormBuilder, FormControl } from '@angular/forms';
3
+ import { FormParentComponent } from './form.component';
4
+ export declare class FormControlParentComponent extends FormParentComponent {
5
+ formBuilder: FormBuilder;
6
+ renderer: Renderer2;
7
+ defaultDataOverride: string;
8
+ onSelectItemEmitter: EventEmitter<string>;
9
+ child?: ElementRef<HTMLInputElement>;
10
+ internalValue: string;
11
+ constructor(formBuilder: FormBuilder, renderer: Renderer2);
12
+ ngOnInit(): void;
13
+ change(value: string): void;
14
+ onChange: any;
15
+ onTouch: any;
16
+ onTouched: any;
17
+ get value(): string;
18
+ set value(value: string);
19
+ writeValue(value: string): void;
20
+ registerOnChange(fn: any): void;
21
+ registerOnTouched(fn: any): void;
22
+ setDisabledState?(isDisabled: boolean): void;
23
+ validate(_: FormControl): boolean;
24
+ }
@@ -0,0 +1,31 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { EventEmitter, OnInit } from '@angular/core';
5
+ import { FormBuilder, FormGroup } from '@angular/forms';
6
+ export declare class FormParentComponent implements OnInit {
7
+ formBuilder: FormBuilder;
8
+ form: FormGroup;
9
+ formInitialized: boolean;
10
+ private allowedCharsOnlyNumbers;
11
+ formDataChanged: EventEmitter<FormGroup>;
12
+ disabled: boolean;
13
+ constructor(formBuilder: FormBuilder);
14
+ /**
15
+ * Returns if a number was pressed
16
+ * @param e
17
+ * @returns
18
+ */
19
+ checkIfKeyWasNumber(e: KeyboardEvent, allowDelete?: boolean, allowArrows?: boolean, allowCutCopyPaste?: boolean): boolean;
20
+ /**
21
+ * Prevents to input other chars than numbers in input
22
+ * @param event
23
+ */
24
+ removeNumbersOnType(event: KeyboardEvent): void;
25
+ /**
26
+ * Prevents input when pasting which is not number
27
+ * @param event
28
+ */
29
+ removeNumbersOnPaste(event: ClipboardEvent): void;
30
+ ngOnInit(): void;
31
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ export declare class CustomPipesModule {
5
+ }
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ export declare class DecodeUriPipe implements PipeTransform {
6
+ transform(value: any, _args?: any): any;
7
+ }
@@ -0,0 +1,7 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ export declare class EncodeUriPipe implements PipeTransform {
6
+ transform(value: any, _args?: any): any;
7
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { CurrencyPipe } from '@angular/common';
5
+ import { PipeTransform } from '@angular/core';
6
+ export declare class IntegerCurrency implements PipeTransform {
7
+ private cp;
8
+ constructor(cp: CurrencyPipe);
9
+ transform(value: any, currencyCode?: string, display?: boolean, digitsInfo?: string): string | null;
10
+ }
@@ -0,0 +1,10 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
+ export declare class SafeHtmlPipe implements PipeTransform {
7
+ private sanitizer;
8
+ constructor(sanitizer: DomSanitizer);
9
+ transform(html: string): SafeHtml;
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
6
+ export declare class SafeStylePipe implements PipeTransform {
7
+ private sanitizer;
8
+ constructor(sanitizer: DomSanitizer);
9
+ transform(style: string): SafeUrl;
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
6
+ export declare class SafeUrlPipe implements PipeTransform {
7
+ private sanitizer;
8
+ constructor(sanitizer: DomSanitizer);
9
+ transform(style: string): SafeUrl;
10
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ export declare class ToNumberPipe implements PipeTransform {
6
+ transform(items: any): any;
7
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from "@angular/core";
5
+ export declare class TrimPipe implements PipeTransform {
6
+ transform(value: any): any;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ export declare class TypeofPipe implements PipeTransform {
3
+ transform(value: any): any;
4
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { OnDestroy } from '@angular/core';
5
+ import { Observable } from 'rxjs';
6
+ /**
7
+ * Service to get viewport
8
+ */
9
+ export declare class ViewportService implements OnDestroy {
10
+ private platformId;
11
+ readonly viewports: {
12
+ name: string;
13
+ low: number;
14
+ high: number;
15
+ }[];
16
+ private viewportChangedSubscriber;
17
+ private viewportResizedSubscriber;
18
+ private currentViewport;
19
+ constructor(platformId: Object);
20
+ /**
21
+ * Get window height
22
+ */
23
+ getDocumentHeight(): number;
24
+ /**
25
+ * Get window width
26
+ */
27
+ getDocumentWidth(): number;
28
+ /**
29
+ * Get window height
30
+ */
31
+ getWindowHeight(): number;
32
+ /**
33
+ * Get window width
34
+ */
35
+ getWindowWidth(): number;
36
+ /**
37
+ * Returns the current viewport MQ as string
38
+ * @returns string
39
+ */
40
+ getCurrentViewPort(): string;
41
+ /**
42
+ * Provides mq´s as string
43
+ */
44
+ getViewportChangedObserver(): Observable<string>;
45
+ /**
46
+ * Provides the current window width as number
47
+ */
48
+ getViewportResizedObserver(): Observable<number>;
49
+ scrollToElementId(el: string, alignCenter?: boolean): void;
50
+ /**
51
+ * Helper function that scrolls to the given markup element.
52
+ * @param el - nativeElement from markup
53
+ * @param alignCenter - defines if the element needs to be centered on window
54
+ */
55
+ scrollToElement(el: HTMLElement, alignCenter?: boolean): void;
56
+ /**
57
+ * Scroll to the top position
58
+ * @param top - top position value
59
+ */
60
+ scrollTop(top: number): void;
61
+ ngOnDestroy(): void;
62
+ /**
63
+ * If viewport changed
64
+ * @event
65
+ */
66
+ private documentSizeChanged;
67
+ /**
68
+ * Get the Media Query for the given width
69
+ * @param width Width to get the according MQ for
70
+ */
71
+ private convertWidthToMediaQuery;
72
+ isPortrait(): boolean;
73
+ isLandscape(): boolean;
74
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ export declare class BackToTopComponent {
5
+ platformId: Object;
6
+ windowScrolled?: boolean;
7
+ constructor(platformId: Object);
8
+ onWindowScroll(): void;
9
+ scrollToTop(): void;
10
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ButtonResponseType {
2
+ primary = "primary",
3
+ secondary = "secondary"
4
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
3
+ import { NullAble } from '../../models';
4
+ export declare class ButtonWithConfirmDialogComponent implements OnInit {
5
+ dialog: MatDialog;
6
+ disabled: NullAble<boolean>;
7
+ buttonText: NullAble<string>;
8
+ confirmTitle: NullAble<string>;
9
+ confirmTextYes: NullAble<string>;
10
+ confirmTextNo: NullAble<string>;
11
+ onConfirmClosed: EventEmitter<boolean>;
12
+ private subs;
13
+ constructor(dialog: MatDialog);
14
+ ngOnInit(): void;
15
+ start(): void;
16
+ }
@@ -0,0 +1,9 @@
1
+ export interface DialogData {
2
+ title: string;
3
+ message?: string;
4
+ buttons?: DialogDataButtons;
5
+ }
6
+ export interface DialogDataButtons {
7
+ primary: string;
8
+ secondary: string;
9
+ }
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { EventEmitter } from '@angular/core';
5
+ import { ControlValueAccessor } from '@angular/forms';
6
+ import { NullAble } from '../../models';
7
+ import { ActionsParentComponent } from '../../parent-components/actions.component';
8
+ export declare class CheckboxComponent extends ActionsParentComponent implements ControlValueAccessor {
9
+ /**
10
+ * Additional description text that will be shown below the checkbox.
11
+ */
12
+ infoText: NullAble<string>;
13
+ /**
14
+ * Internal description name. All checkboxes with the same name belong to the same group.
15
+ * User can select none, one or all checkboxes with the same name.
16
+ */
17
+ name: string;
18
+ select: EventEmitter<any>;
19
+ selectAction(id: string): void;
20
+ constructor();
21
+ onChange: any;
22
+ onTouch: any;
23
+ get value(): boolean;
24
+ set value(value: boolean);
25
+ writeValue(value: any): void;
26
+ registerOnChange(fn: any): void;
27
+ registerOnTouched(fn: any): void;
28
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit, Renderer2 } from '@angular/core';
2
+ import { ControlValueAccessor, FormBuilder, FormControl } from '@angular/forms';
3
+ import { FormControlParentComponent } from './../../parent-components/form-control.component';
4
+ export declare class ColorInputComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor {
5
+ formBuilder: FormBuilder;
6
+ renderer: Renderer2;
7
+ label: string;
8
+ tooltipText: string;
9
+ placeholder: string;
10
+ valid: boolean | null | undefined;
11
+ constructor(formBuilder: FormBuilder, renderer: Renderer2);
12
+ ngOnInit(): void;
13
+ validate(_: FormControl): boolean;
14
+ matchesHex(match?: string): false | RegExpMatchArray;
15
+ }
@@ -0,0 +1,14 @@
1
+ import { OnInit, Renderer2 } from '@angular/core';
2
+ import { ControlValueAccessor, FormBuilder } from '@angular/forms';
3
+ import { NullAble } from '../../models';
4
+ import { FormControlParentComponent } from './../../parent-components/form-control.component';
5
+ export declare class EnumRadiogroupComponent extends FormControlParentComponent implements OnInit, ControlValueAccessor {
6
+ formBuilder: FormBuilder;
7
+ renderer: Renderer2;
8
+ header: NullAble<String>;
9
+ optionsEnum: any;
10
+ translationPrefix: string;
11
+ optionValues: any;
12
+ constructor(formBuilder: FormBuilder, renderer: Renderer2);
13
+ ngOnInit(): void;
14
+ }
@@ -0,0 +1,86 @@
1
+ import { OnInit, Renderer2, EventEmitter, ApplicationRef, ChangeDetectorRef } from '@angular/core';
2
+ import { ControlValueAccessor, FormBuilder, FormControl, FormGroup } from '@angular/forms';
3
+ import { Subscription } from 'rxjs';
4
+ import { IconSize } from '../../models/iconSize.enum';
5
+ import { AttachedFileDTO } from '../../models/types/attached-file-dto.model';
6
+ export declare class FileInputComponent implements ControlValueAccessor, OnInit {
7
+ formBuilder: FormBuilder;
8
+ appRef: ApplicationRef;
9
+ cd: ChangeDetectorRef;
10
+ renderer: Renderer2;
11
+ fileInput: any;
12
+ label: string;
13
+ previewImage: boolean;
14
+ allowRemove: boolean;
15
+ previewImageText: string;
16
+ maxSizeBytes: number;
17
+ resizePixels: number;
18
+ acceptedFileMimetypes: string;
19
+ form: FormGroup;
20
+ subscriptions: Subscription[];
21
+ newImageLoading: boolean;
22
+ IconSize: typeof IconSize;
23
+ formDataChanged: EventEmitter<FormGroup>;
24
+ /**
25
+ * Constructor
26
+ * @param formBuilder
27
+ * @param appRef
28
+ * @param cd
29
+ * @param translateService
30
+ * @param renderer
31
+ */
32
+ constructor(formBuilder: FormBuilder, appRef: ApplicationRef, cd: ChangeDetectorRef, renderer: Renderer2);
33
+ /**
34
+ * Click on button triggers file-input to open OS file dialog
35
+ */
36
+ selectImageOverlay(): void;
37
+ /**
38
+ * Function to manage the input image
39
+ * Returns an error if the file exceeds maximum wanted filesize (Mb).
40
+ * @param ev
41
+ * @returns
42
+ */
43
+ selectImage(ev: any): void;
44
+ /**
45
+ * Resize an image
46
+ * @param imgEl
47
+ * @param wantedWidth as number
48
+ * @returns string
49
+ */
50
+ private resizeImage;
51
+ /**
52
+ * Generate default object
53
+ * @param name as string
54
+ * @param content as string
55
+ * @returns AttachedFileDTO
56
+ */
57
+ generateModel(name?: string, content?: string, ident?: string, imageLink?: string, text?: string): AttachedFileDTO;
58
+ /**
59
+ * Remove image
60
+ */
61
+ removeFromList(): void;
62
+ /**
63
+ * get value
64
+ */
65
+ get value(): AttachedFileDTO;
66
+ /**
67
+ * set value
68
+ */
69
+ set value(value: AttachedFileDTO);
70
+ onChange: any;
71
+ onTouch: any;
72
+ ngOnInit(): void;
73
+ ngOnDestroy(): void;
74
+ registerOnChange(fn: any): void;
75
+ registerOnTouched(fn: any): void;
76
+ writeValue(value: AttachedFileDTO | null): void;
77
+ validate(_: FormControl): {
78
+ styles: {
79
+ valid: boolean;
80
+ };
81
+ };
82
+ /**
83
+ * OnClick event listener of input#fileInput to clear his input value
84
+ */
85
+ clearInputValue(ev: any): void;
86
+ }
@@ -0,0 +1,32 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { ElementRef } from '@angular/core';
5
+ export declare class FlyoutComponent {
6
+ icon: string;
7
+ isDropdownOpened: boolean;
8
+ targetHeight: string;
9
+ animationTime: number;
10
+ headerCssClass: string;
11
+ bodyCssClass: string;
12
+ headerTitle: string;
13
+ headerText: string;
14
+ hasButtonForMore: boolean;
15
+ moreText: string;
16
+ lessText: string;
17
+ content: ElementRef | undefined;
18
+ flyoutHeader: ElementRef | undefined;
19
+ /**
20
+ * Open/close dropdown if click on header.
21
+ * Except, if mode is set to hasButtonForMore. When there is a extra button to open/close
22
+ */
23
+ toggleDropdownHeader(): void;
24
+ /**
25
+ * Open or close the dropdown
26
+ */
27
+ toggleDropdown(): void;
28
+ /**
29
+ * Set the height of the dropdown list items dynamic - needed for the animation
30
+ */
31
+ setDropdownListHeight(contentHeight: number): void;
32
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { NgZone } from '@angular/core';
5
+ import { MatDialogRef } from '@angular/material/dialog';
6
+ import { ButtonResponseType } from '../button-with-confirm-dialog/button-response-types.enum';
7
+ import { DialogData, DialogDataButtons } from '../button-with-confirm-dialog/dialog-data.model';
8
+ /**
9
+ * A generic dialog component
10
+ */
11
+ export declare class GenericDialogComponent {
12
+ dialogRef: MatDialogRef<GenericDialogComponent>;
13
+ zone: NgZone;
14
+ data: DialogData;
15
+ ButtonResponseType: typeof ButtonResponseType;
16
+ buttons: DialogDataButtons;
17
+ constructor(dialogRef: MatDialogRef<GenericDialogComponent>, zone: NgZone, data: DialogData);
18
+ /**
19
+ * Action called when clicked
20
+ * @param clickedButton Whether the primary or secondary button was clicked
21
+ */
22
+ onClickAction(clickedButton: ButtonResponseType): void;
23
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { OnInit } from '@angular/core';
5
+ import { DomSanitizer } from '@angular/platform-browser';
6
+ import { IconSize } from './iconSize.enum';
7
+ export declare class IconComponent implements OnInit {
8
+ sanitizer: DomSanitizer;
9
+ /**
10
+ * Required: Name of the SVG icon inside your sprite sheet file with name 'icons.svg'.
11
+ * Pass 'none' if no icon should be rendered.
12
+ */
13
+ icon: string | '';
14
+ /**
15
+ * Optional: Different appearance via CSS class defined in this component´s style sheet.
16
+ */
17
+ iconClass: string | '';
18
+ /**
19
+ * Optional: Different appearance via CSS inline style.
20
+ */
21
+ iconStyle: any;
22
+ /**
23
+ * Optional: Different size via CSS inline style.
24
+ */
25
+ iconSize: IconSize;
26
+ /**
27
+ * Dont use icon sprite
28
+ */
29
+ dontUseSprite: boolean;
30
+ IconSize: typeof IconSize;
31
+ Version: string;
32
+ timestamp: number;
33
+ /**
34
+ * Renders this icon from SVG sprite sheet
35
+ */
36
+ iconToShow: string | '';
37
+ constructor(sanitizer: DomSanitizer);
38
+ ngOnInit(): void;
39
+ }
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ export declare enum IconSize {
5
+ FULLSIZE = "size-full",
6
+ TINY = "size-16",
7
+ SMALLER = "size-20",
8
+ SMALL = "size-32",
9
+ MEDIUM = "size-64",
10
+ LARGE = "size-128",
11
+ XL = "size-256",
12
+ XXL = "size-512",
13
+ XXXL = "size-1024",
14
+ NONE = "NONE"
15
+ }
@@ -0,0 +1,18 @@
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { OnInit } from '@angular/core';
5
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
+ /**
7
+ * A generic dialog component
8
+ */
9
+ export declare class KMSAccordionItemComponent implements OnInit {
10
+ sanitizer: DomSanitizer;
11
+ itemTitle: string;
12
+ itemTitleTrustHtml: SafeHtml | undefined;
13
+ showAsCard: boolean;
14
+ isSmall: boolean;
15
+ panelOpenState: boolean;
16
+ constructor(sanitizer: DomSanitizer);
17
+ ngOnInit(): void;
18
+ }
@@ -0,0 +1,6 @@
1
+ import { OnInit } from '@angular/core';
2
+ export declare class LoaderComponent implements OnInit {
3
+ loading: boolean;
4
+ constructor();
5
+ ngOnInit(): void;
6
+ }
@@ -0,0 +1,70 @@
1
+ /// <reference types="googlemaps" />
2
+ /*!
3
+ * @copyright FLYACTS GmbH 2019
4
+ */
5
+ import { OnInit } from '@angular/core';
6
+ import { Subscription } from 'rxjs';
7
+ import { Address } from '../../models/address.model';
8
+ import { ViewportService } from '../../services/viewport.service';
9
+ /**
10
+ * MarkerOptions class for Marker
11
+ */
12
+ export declare class MarkerOptions {
13
+ animation: number;
14
+ }
15
+ /**
16
+ * MarkerLabel class for Marker
17
+ */
18
+ export declare class MarkerLabel {
19
+ color: string;
20
+ text: string;
21
+ }
22
+ /**
23
+ * Marker class
24
+ */
25
+ export declare class Marker {
26
+ position: google.maps.LatLngLiteral;
27
+ label: MarkerLabel;
28
+ title: string;
29
+ options: MarkerOptions;
30
+ }
31
+ /**
32
+ * Component to show marker on google map for specific address
33
+ */
34
+ export declare class MapComponent implements OnInit {
35
+ private viewPortService;
36
+ data: Address;
37
+ markers: Marker[];
38
+ geoDataFoundForAddress: boolean;
39
+ widthSet: boolean;
40
+ width: string;
41
+ zoom: number;
42
+ center: google.maps.LatLngLiteral;
43
+ options: google.maps.MapOptions;
44
+ google: any;
45
+ geocoder: any;
46
+ viewportSubscription?: Subscription;
47
+ constructor(viewPortService: ViewportService);
48
+ ngOnInit(): void;
49
+ /**
50
+ * Asks google for geocoordinates of a given address string
51
+ * @input address as string
52
+ */
53
+ findLocation(address: string): void;
54
+ /**
55
+ * Adds a marker to the map
56
+ */
57
+ addMarker(): void;
58
+ /**
59
+ * sets the width of map accodring to viewport
60
+ */
61
+ setMapWidth(val: number): void;
62
+ /**
63
+ * Zooms in into map
64
+ */
65
+ zoomIn(): void;
66
+ /**
67
+ * Zooms out from map
68
+ */
69
+ zoomOut(): void;
70
+ }