@kms-ngx-ui/presentational 0.0.24 → 14.0.0

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 (178) hide show
  1. package/README.md +28 -28
  2. package/{esm2015/kms-ngx-ui-presentational.js → esm2020/kms-ngx-ui-presentational.mjs} +4 -4
  3. package/esm2020/lib/directives/directives.module.mjs +40 -0
  4. package/{esm2015/lib/directives/mousewheel.directive.js → esm2020/lib/directives/mousewheel.directive.mjs} +56 -56
  5. package/{esm2015/lib/directives/sum-of-height.directive.js → esm2020/lib/directives/sum-of-height.directive.mjs} +74 -74
  6. package/{esm2015/lib/directives/swipe.directive.js → esm2020/lib/directives/swipe.directive.mjs} +183 -183
  7. package/esm2020/lib/directives/swipe.model.mjs +5 -0
  8. package/{esm2015/lib/directives/tooltip.directive.js → esm2020/lib/directives/tooltip.directive.mjs} +144 -144
  9. package/esm2020/lib/kms-ngx-ui-presentational.component.mjs +22 -0
  10. package/{esm2015/lib/kms-ngx-ui-presentational.module.js → esm2020/lib/kms-ngx-ui-presentational.module.mjs} +215 -217
  11. package/{esm2015/lib/kms-ngx-ui-presentational.service.js → esm2020/lib/kms-ngx-ui-presentational.service.mjs} +14 -14
  12. package/esm2020/lib/models/address.model.mjs +6 -0
  13. package/{esm2015/lib/models/iconSize.enum.js → esm2020/lib/models/iconSize.enum.mjs} +17 -17
  14. package/{esm2015/lib/models/image-snippet.model.js → esm2020/lib/models/image-snippet.model.mjs} +18 -18
  15. package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +5 -5
  16. package/{esm2015/lib/models/is-value.function.js → esm2020/lib/models/is-value.function.mjs} +17 -17
  17. package/{esm2015/lib/models/salutation.enum.js → esm2020/lib/models/salutation.enum.mjs} +8 -8
  18. package/{esm2015/lib/models/types/attached-file-dto.model.js → esm2020/lib/models/types/attached-file-dto.model.mjs} +6 -6
  19. package/{esm2015/lib/models/types/nullable.type.js → esm2020/lib/models/types/nullable.type.mjs} +5 -5
  20. package/{esm2015/lib/parent-components/actions.component.js → esm2020/lib/parent-components/actions.component.mjs} +56 -56
  21. package/esm2020/lib/parent-components/form-control.component.mjs +75 -0
  22. package/esm2020/lib/parent-components/form.component.mjs +78 -0
  23. package/{esm2015/lib/pipes/custom-pipes.module.js → esm2020/lib/pipes/custom-pipes.module.mjs} +71 -71
  24. package/esm2020/lib/pipes/decode-uri.pipe.mjs +19 -0
  25. package/esm2020/lib/pipes/encode-uri.pipe.mjs +19 -0
  26. package/{esm2015/lib/pipes/integer-currency.pipe.js → esm2020/lib/pipes/integer-currency.pipe.mjs} +27 -27
  27. package/{esm2015/lib/pipes/safe-html.pipe.js → esm2020/lib/pipes/safe-html.pipe.mjs} +23 -23
  28. package/{esm2015/lib/pipes/safe-resource-url.pipe.js → esm2020/lib/pipes/safe-resource-url.pipe.mjs} +23 -23
  29. package/{esm2015/lib/pipes/safe-style.pipe.js → esm2020/lib/pipes/safe-style.pipe.mjs} +23 -23
  30. package/{esm2015/lib/pipes/safe-url.pipe.js → esm2020/lib/pipes/safe-url.pipe.mjs} +23 -23
  31. package/{esm2015/lib/pipes/to-number.pipe.js → esm2020/lib/pipes/to-number.pipe.mjs} +23 -23
  32. package/{esm2015/lib/pipes/trim.pipe.js → esm2020/lib/pipes/trim.pipe.mjs} +20 -20
  33. package/{esm2015/lib/pipes/typeof.pipe.js → esm2020/lib/pipes/typeof.pipe.mjs} +16 -16
  34. package/esm2020/lib/services/viewport.service.mjs +216 -0
  35. package/esm2020/lib/ui/back-to-top/back-to-top.component.mjs +49 -0
  36. package/{esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js → esm2020/lib/ui/button-with-confirm-dialog/button-response-types.enum.mjs} +6 -6
  37. package/esm2020/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.mjs +58 -0
  38. package/{esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js → esm2020/lib/ui/button-with-confirm-dialog/dialog-data.model.mjs} +2 -2
  39. package/esm2020/lib/ui/checkbox/checkbox.component.mjs +71 -0
  40. package/esm2020/lib/ui/color-input/color-input.component.mjs +76 -0
  41. package/esm2020/lib/ui/dropdown-from-data/dropdown-from-data.component.mjs +165 -0
  42. package/esm2020/lib/ui/enum-radiogroup/enum-radiogroup.component.mjs +53 -0
  43. package/esm2020/lib/ui/file-input/file-input.component.mjs +232 -0
  44. package/esm2020/lib/ui/flyout/flyout.component.mjs +119 -0
  45. package/esm2020/lib/ui/generic-dialog/generic-dialog.component.mjs +54 -0
  46. package/esm2020/lib/ui/icon/icon.component.mjs +48 -0
  47. package/esm2020/lib/ui/icon/iconSize.enum.mjs +17 -0
  48. package/esm2020/lib/ui/image-slider/image-slider.component.mjs +189 -0
  49. package/esm2020/lib/ui/kms-accordion-item/kms-accordion-item.component.mjs +40 -0
  50. package/esm2020/lib/ui/loader/loader.component.mjs +21 -0
  51. package/esm2020/lib/ui/map/map.component.mjs +116 -0
  52. package/esm2020/lib/ui/radiobutton/radiobutton.component.mjs +73 -0
  53. package/esm2020/lib/ui/salutation-dropdown/salutation-dropdown.component.mjs +55 -0
  54. package/esm2020/lib/ui/salutation-radiogroup/salutation-radiogroup.component.mjs +49 -0
  55. package/esm2020/lib/ui/time-input/time-input.component.mjs +83 -0
  56. package/esm2020/lib/ui/tooltip/tooltip.component.mjs +16 -0
  57. package/esm2020/lib/ui/tooltip-icon/tooltip-icon.component.mjs +35 -0
  58. package/esm2020/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.mjs +82 -0
  59. package/esm2020/public-api.mjs +49 -0
  60. package/fesm2015/kms-ngx-ui-presentational.mjs +3013 -0
  61. package/fesm2015/kms-ngx-ui-presentational.mjs.map +1 -0
  62. package/{fesm2015/kms-ngx-ui-presentational.js → fesm2020/kms-ngx-ui-presentational.mjs} +2894 -3108
  63. package/fesm2020/kms-ngx-ui-presentational.mjs.map +1 -0
  64. package/{kms-ngx-ui-presentational.d.ts → index.d.ts} +5 -5
  65. package/lib/directives/directives.module.d.ts +11 -13
  66. package/lib/directives/mousewheel.directive.d.ts +15 -15
  67. package/lib/directives/sum-of-height.directive.d.ts +31 -31
  68. package/lib/directives/swipe.directive.d.ts +45 -45
  69. package/lib/directives/swipe.model.d.ts +49 -49
  70. package/lib/directives/tooltip.directive.d.ts +29 -29
  71. package/lib/kms-ngx-ui-presentational.component.d.ts +8 -8
  72. package/lib/kms-ngx-ui-presentational.module.d.ts +47 -47
  73. package/lib/kms-ngx-ui-presentational.service.d.ts +6 -6
  74. package/lib/models/address.model.d.ts +14 -14
  75. package/lib/models/iconSize.enum.d.ts +15 -15
  76. package/lib/models/image-snippet.model.d.ts +15 -15
  77. package/lib/models/index.d.ts +4 -4
  78. package/lib/models/is-value.function.d.ts +9 -9
  79. package/lib/models/salutation.enum.d.ts +5 -5
  80. package/lib/models/types/attached-file-dto.model.d.ts +11 -11
  81. package/lib/models/types/nullable.type.d.ts +4 -4
  82. package/lib/parent-components/actions.component.d.ts +31 -31
  83. package/lib/parent-components/form-control.component.d.ts +27 -27
  84. package/lib/parent-components/form.component.d.ts +34 -40
  85. package/lib/pipes/custom-pipes.module.d.ts +17 -17
  86. package/lib/pipes/decode-uri.pipe.d.ts +10 -10
  87. package/lib/pipes/encode-uri.pipe.d.ts +10 -10
  88. package/lib/pipes/integer-currency.pipe.d.ts +13 -13
  89. package/lib/pipes/safe-html.pipe.d.ts +13 -13
  90. package/lib/pipes/safe-resource-url.pipe.d.ts +13 -13
  91. package/lib/pipes/safe-style.pipe.d.ts +13 -13
  92. package/lib/pipes/safe-url.pipe.d.ts +13 -13
  93. package/lib/pipes/to-number.pipe.d.ts +10 -10
  94. package/lib/pipes/trim.pipe.d.ts +10 -10
  95. package/lib/pipes/typeof.pipe.d.ts +7 -7
  96. package/lib/services/viewport.service.d.ts +74 -83
  97. package/lib/ui/back-to-top/back-to-top.component.d.ts +10 -10
  98. package/lib/ui/button-with-confirm-dialog/button-response-types.enum.d.ts +4 -4
  99. package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +19 -19
  100. package/lib/ui/button-with-confirm-dialog/dialog-data.model.d.ts +9 -9
  101. package/lib/ui/checkbox/checkbox.component.d.ts +31 -31
  102. package/lib/ui/color-input/color-input.component.d.ts +19 -19
  103. package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +55 -55
  104. package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +17 -17
  105. package/lib/ui/file-input/file-input.component.d.ts +89 -89
  106. package/lib/ui/flyout/flyout.component.d.ts +32 -32
  107. package/lib/ui/generic-dialog/generic-dialog.component.d.ts +26 -26
  108. package/lib/ui/icon/icon.component.d.ts +42 -48
  109. package/lib/ui/icon/iconSize.enum.d.ts +15 -25
  110. package/lib/ui/image-slider/image-slider.component.d.ts +62 -62
  111. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +22 -22
  112. package/lib/ui/loader/loader.component.d.ts +9 -9
  113. package/lib/ui/map/map.component.d.ts +70 -69
  114. package/lib/ui/radiobutton/radiobutton.component.d.ts +26 -27
  115. package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +17 -17
  116. package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +15 -15
  117. package/lib/ui/time-input/time-input.component.d.ts +22 -22
  118. package/lib/ui/tooltip/tooltip.component.d.ts +6 -6
  119. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +13 -13
  120. package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +27 -27
  121. package/package.json +27 -14
  122. package/public-api.d.ts +45 -46
  123. package/src/lib/ui/back-to-top/back-to-top.component.scss +46 -45
  124. package/src/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.scss +2 -2
  125. package/src/lib/ui/checkbox/checkbox.component.scss +48 -48
  126. package/src/lib/ui/color-input/color-input.component.scss +38 -38
  127. package/src/lib/ui/file-input/file-input.component.scss +2 -2
  128. package/src/lib/ui/flyout/flyout.component.scss +34 -34
  129. package/src/lib/ui/generic-dialog/generic-dialog.component.scss +59 -59
  130. package/src/lib/ui/icon/icon.component.scss +148 -114
  131. package/src/lib/ui/image-slider/image-slider.component.scss +219 -219
  132. package/src/lib/ui/kms-accordion-item/kms-accordion-item.component.scss +95 -95
  133. package/src/lib/ui/radiobutton/radiobutton.component.scss +31 -31
  134. package/src/lib/ui/time-input/time-input.component.scss +10 -10
  135. package/src/lib/ui/tooltip/tooltip.component.scss +26 -26
  136. package/src/lib/ui/tooltip-icon/tooltip-icon.component.scss +2 -2
  137. package/src/styles/mixins.scss +8 -8
  138. package/src/styles/styles.scss +30 -31
  139. package/bundles/kms-ngx-ui-presentational.umd.js +0 -3751
  140. package/bundles/kms-ngx-ui-presentational.umd.js.map +0 -1
  141. package/esm2015/lib/directives/directives.module.js +0 -45
  142. package/esm2015/lib/directives/size.directive.js +0 -21
  143. package/esm2015/lib/directives/swipe.model.js +0 -5
  144. package/esm2015/lib/kms-ngx-ui-presentational.component.js +0 -26
  145. package/esm2015/lib/models/address.model.js +0 -6
  146. package/esm2015/lib/parent-components/colorable.component.js +0 -35
  147. package/esm2015/lib/parent-components/form-control.component.js +0 -76
  148. package/esm2015/lib/parent-components/form.component.js +0 -99
  149. package/esm2015/lib/pipes/decode-uri.pipe.js +0 -19
  150. package/esm2015/lib/pipes/encode-uri.pipe.js +0 -19
  151. package/esm2015/lib/services/viewport.service.js +0 -242
  152. package/esm2015/lib/ui/back-to-top/back-to-top.component.js +0 -52
  153. package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +0 -62
  154. package/esm2015/lib/ui/checkbox/checkbox.component.js +0 -76
  155. package/esm2015/lib/ui/color-input/color-input.component.js +0 -81
  156. package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +0 -169
  157. package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +0 -57
  158. package/esm2015/lib/ui/file-input/file-input.component.js +0 -237
  159. package/esm2015/lib/ui/flyout/flyout.component.js +0 -125
  160. package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +0 -58
  161. package/esm2015/lib/ui/icon/icon.component.js +0 -55
  162. package/esm2015/lib/ui/icon/iconSize.enum.js +0 -28
  163. package/esm2015/lib/ui/image-slider/image-slider.component.js +0 -193
  164. package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +0 -44
  165. package/esm2015/lib/ui/loader/loader.component.js +0 -25
  166. package/esm2015/lib/ui/map/map.component.js +0 -120
  167. package/esm2015/lib/ui/radiobutton/radiobutton.component.js +0 -82
  168. package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +0 -59
  169. package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +0 -53
  170. package/esm2015/lib/ui/time-input/time-input.component.js +0 -88
  171. package/esm2015/lib/ui/tooltip/tooltip.component.js +0 -20
  172. package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +0 -40
  173. package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +0 -86
  174. package/esm2015/public-api.js +0 -50
  175. package/fesm2015/kms-ngx-ui-presentational.js.map +0 -1
  176. package/lib/directives/size.directive.d.ts +0 -10
  177. package/lib/parent-components/colorable.component.d.ts +0 -10
  178. package/src/styles/animations.scss +0 -47
@@ -1,4 +1,4 @@
1
- /*!
2
- * @copyright FLYACTS GmbH 2019
3
- */
4
- export declare type NullAble<T> = T | null | undefined;
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ export declare type NullAble<T> = T | null | undefined;
@@ -1,31 +1,31 @@
1
- /*!
2
- * @copyright FLYACTS GmbH 2019
3
- */
4
- import { EventEmitter } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare class ActionsParentComponent {
7
- /**
8
- * Defines the disabled property
9
- */
10
- disabled: boolean;
11
- /**
12
- * Set button as selected. F.e. in multiselect component
13
- */
14
- checked: boolean;
15
- /**
16
- * Displayed label.
17
- */
18
- label: string;
19
- /**
20
- * Link
21
- */
22
- link: string;
23
- /**
24
- * Internal value that will be send if a form is submitted.
25
- */
26
- initialValue: string;
27
- select: EventEmitter<any>;
28
- selectAction(id: string): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<ActionsParentComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionsParentComponent, "kms-actions", never, { "disabled": "disabled"; "checked": "checked"; "label": "label"; "link": "link"; "initialValue": "initialValue"; }, { "select": "select"; }, never, never>;
31
- }
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { EventEmitter } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ActionsParentComponent {
7
+ /**
8
+ * Defines the disabled property
9
+ */
10
+ disabled: boolean;
11
+ /**
12
+ * Set button as selected. F.e. in multiselect component
13
+ */
14
+ checked: boolean;
15
+ /**
16
+ * Displayed label.
17
+ */
18
+ label: string;
19
+ /**
20
+ * Link
21
+ */
22
+ link: string;
23
+ /**
24
+ * Internal value that will be send if a form is submitted.
25
+ */
26
+ initialValue: string;
27
+ select: EventEmitter<any>;
28
+ selectAction(id: string): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionsParentComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionsParentComponent, "kms-actions", never, { "disabled": "disabled"; "checked": "checked"; "label": "label"; "link": "link"; "initialValue": "initialValue"; }, { "select": "select"; }, never, never, false>;
31
+ }
@@ -1,27 +1,27 @@
1
- import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
- import { FormBuilder, FormControl } from '@angular/forms';
3
- import { FormParentComponent } from './form.component';
4
- import * as i0 from "@angular/core";
5
- export declare class FormControlParentComponent extends FormParentComponent {
6
- formBuilder: FormBuilder;
7
- renderer: Renderer2;
8
- defaultDataOverride: string;
9
- onSelectItemEmitter: EventEmitter<string>;
10
- child?: ElementRef<HTMLInputElement>;
11
- internalValue: string;
12
- constructor(formBuilder: FormBuilder, renderer: Renderer2);
13
- ngOnInit(): void;
14
- change(value: string): void;
15
- onChange: any;
16
- onTouch: any;
17
- onTouched: any;
18
- get value(): string;
19
- set value(value: string);
20
- writeValue(value: string): void;
21
- registerOnChange(fn: any): void;
22
- registerOnTouched(fn: any): void;
23
- setDisabledState?(isDisabled: boolean): void;
24
- validate(_: FormControl): boolean;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlParentComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<FormControlParentComponent, "kms-formControlParent", never, { "defaultDataOverride": "defaultDataOverride"; }, { "onSelectItemEmitter": "onSelectItemEmitter"; }, never, never>;
27
- }
1
+ import { ElementRef, EventEmitter, Renderer2 } from '@angular/core';
2
+ import { UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
3
+ import { FormParentComponent } from './form.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FormControlParentComponent extends FormParentComponent {
6
+ formBuilder: UntypedFormBuilder;
7
+ renderer: Renderer2;
8
+ defaultDataOverride: string;
9
+ onSelectItemEmitter: EventEmitter<string>;
10
+ child?: ElementRef<HTMLInputElement>;
11
+ internalValue: string;
12
+ constructor(formBuilder: UntypedFormBuilder, renderer: Renderer2);
13
+ ngOnInit(): void;
14
+ change(value: string): void;
15
+ onChange: any;
16
+ onTouch: any;
17
+ onTouched: any;
18
+ get value(): string;
19
+ set value(value: string);
20
+ writeValue(value: string): void;
21
+ registerOnChange(fn: any): void;
22
+ registerOnTouched(fn: any): void;
23
+ setDisabledState?(isDisabled: boolean): void;
24
+ validate(_: UntypedFormControl): boolean;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlParentComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormControlParentComponent, "kms-formControlParent", never, { "defaultDataOverride": "defaultDataOverride"; }, { "onSelectItemEmitter": "onSelectItemEmitter"; }, never, never, false>;
27
+ }
@@ -1,40 +1,34 @@
1
- /*!
2
- * @copyright FLYACTS GmbH 2019
3
- */
4
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
5
- import { FormBuilder, FormGroup } from '@angular/forms';
6
- import { SubSink } from 'subsink';
7
- import { ColorableParentComponent } from './colorable.component';
8
- import * as i0 from "@angular/core";
9
- export declare class FormParentComponent extends ColorableParentComponent implements OnInit, OnDestroy {
10
- formBuilder: FormBuilder;
11
- disabled: boolean;
12
- showRequired: boolean;
13
- form: FormGroup;
14
- formInitialized: boolean;
15
- private allowedCharsOnlyNumbers;
16
- subs: SubSink;
17
- formDataChanged: EventEmitter<FormGroup>;
18
- constructor(formBuilder: FormBuilder);
19
- /**
20
- * Returns if a number was pressed
21
- * @param e
22
- * @returns
23
- */
24
- checkIfKeyWasNumber(e: KeyboardEvent, allowDelete?: boolean, allowArrows?: boolean, allowCutCopyPaste?: boolean): boolean | 9;
25
- /**
26
- * Prevents to input other chars than numbers in input
27
- * @param event
28
- */
29
- removeNumbersOnType(event: KeyboardEvent): void;
30
- /**
31
- * Prevents input when pasting which is not number
32
- * @param event
33
- */
34
- removeNumbersOnPaste(event: ClipboardEvent): void;
35
- ngOnInit(): void;
36
- ngOnDestroy(): void;
37
- initFormEvent(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<FormParentComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<FormParentComponent, "kms-form", never, { "disabled": "disabled"; "showRequired": "showRequired"; }, { "formDataChanged": "formDataChanged"; }, never, never>;
40
- }
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { EventEmitter, OnInit } from '@angular/core';
5
+ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
6
+ import * as i0 from "@angular/core";
7
+ export declare class FormParentComponent implements OnInit {
8
+ formBuilder: UntypedFormBuilder;
9
+ form: UntypedFormGroup;
10
+ formInitialized: boolean;
11
+ private allowedCharsOnlyNumbers;
12
+ formDataChanged: EventEmitter<UntypedFormGroup>;
13
+ disabled: boolean;
14
+ constructor(formBuilder: UntypedFormBuilder);
15
+ /**
16
+ * Returns if a number was pressed
17
+ * @param e
18
+ * @returns
19
+ */
20
+ checkIfKeyWasNumber(e: KeyboardEvent, allowDelete?: boolean, allowArrows?: boolean, allowCutCopyPaste?: boolean): boolean;
21
+ /**
22
+ * Prevents to input other chars than numbers in input
23
+ * @param event
24
+ */
25
+ removeNumbersOnType(event: KeyboardEvent): void;
26
+ /**
27
+ * Prevents input when pasting which is not number
28
+ * @param event
29
+ */
30
+ removeNumbersOnPaste(event: ClipboardEvent): void;
31
+ ngOnInit(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormParentComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormParentComponent, "kms-form", never, { "disabled": "disabled"; }, { "formDataChanged": "formDataChanged"; }, never, never, false>;
34
+ }
@@ -1,17 +1,17 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./integer-currency.pipe";
3
- import * as i2 from "./safe-html.pipe";
4
- import * as i3 from "./safe-style.pipe";
5
- import * as i4 from "./safe-resource-url.pipe";
6
- import * as i5 from "./safe-url.pipe";
7
- import * as i6 from "./encode-uri.pipe";
8
- import * as i7 from "./decode-uri.pipe";
9
- import * as i8 from "./typeof.pipe";
10
- import * as i9 from "./trim.pipe";
11
- import * as i10 from "./to-number.pipe";
12
- import * as i11 from "@angular/common";
13
- export declare class CustomPipesModule {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomPipesModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<CustomPipesModule, [typeof i1.IntegerCurrency, typeof i2.SafeHtmlPipe, typeof i3.SafeStylePipe, typeof i4.SafeResourceUrlPipe, typeof i5.SafeUrlPipe, typeof i6.EncodeUriPipe, typeof i7.DecodeUriPipe, typeof i8.TypeofPipe, typeof i9.TrimPipe, typeof i10.ToNumberPipe], [typeof i11.CommonModule], [typeof i1.IntegerCurrency, typeof i2.SafeHtmlPipe, typeof i3.SafeStylePipe, typeof i4.SafeResourceUrlPipe, typeof i5.SafeUrlPipe, typeof i6.EncodeUriPipe, typeof i7.DecodeUriPipe, typeof i8.TypeofPipe, typeof i9.TrimPipe, typeof i10.ToNumberPipe]>;
16
- static ɵinj: i0.ɵɵInjectorDeclaration<CustomPipesModule>;
17
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./integer-currency.pipe";
3
+ import * as i2 from "./safe-html.pipe";
4
+ import * as i3 from "./safe-style.pipe";
5
+ import * as i4 from "./safe-resource-url.pipe";
6
+ import * as i5 from "./safe-url.pipe";
7
+ import * as i6 from "./encode-uri.pipe";
8
+ import * as i7 from "./decode-uri.pipe";
9
+ import * as i8 from "./typeof.pipe";
10
+ import * as i9 from "./trim.pipe";
11
+ import * as i10 from "./to-number.pipe";
12
+ import * as i11 from "@angular/common";
13
+ export declare class CustomPipesModule {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomPipesModule, never>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CustomPipesModule, [typeof i1.IntegerCurrency, typeof i2.SafeHtmlPipe, typeof i3.SafeStylePipe, typeof i4.SafeResourceUrlPipe, typeof i5.SafeUrlPipe, typeof i6.EncodeUriPipe, typeof i7.DecodeUriPipe, typeof i8.TypeofPipe, typeof i9.TrimPipe, typeof i10.ToNumberPipe], [typeof i11.CommonModule], [typeof i1.IntegerCurrency, typeof i2.SafeHtmlPipe, typeof i3.SafeStylePipe, typeof i4.SafeResourceUrlPipe, typeof i5.SafeUrlPipe, typeof i6.EncodeUriPipe, typeof i7.DecodeUriPipe, typeof i8.TypeofPipe, typeof i9.TrimPipe, typeof i10.ToNumberPipe]>;
16
+ static ɵinj: i0.ɵɵInjectorDeclaration<CustomPipesModule>;
17
+ }
@@ -1,10 +1,10 @@
1
- /*!
2
- * @copyright FLYACTS GmbH 2019
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare class DecodeUriPipe implements PipeTransform {
7
- transform(value: any, _args?: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DecodeUriPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<DecodeUriPipe, "kmsDecodeUri">;
10
- }
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DecodeUriPipe implements PipeTransform {
7
+ transform(value: any, _args?: any): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DecodeUriPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<DecodeUriPipe, "kmsDecodeUri", false>;
10
+ }
@@ -1,10 +1,10 @@
1
- /*!
2
- * @copyright FLYACTS GmbH 2019
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare class EncodeUriPipe implements PipeTransform {
7
- transform(value: any, _args?: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<EncodeUriPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<EncodeUriPipe, "kmsEncodeUri">;
10
- }
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EncodeUriPipe implements PipeTransform {
7
+ transform(value: any, _args?: any): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<EncodeUriPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<EncodeUriPipe, "kmsEncodeUri", false>;
10
+ }
@@ -1,13 +1,13 @@
1
- /**
2
- * @copyright KMS GmbH
3
- */
4
- import { CurrencyPipe } from '@angular/common';
5
- import { PipeTransform } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- export declare class IntegerCurrency implements PipeTransform {
8
- private cp;
9
- constructor(cp: CurrencyPipe);
10
- transform(value: any, currencyCode?: string, display?: boolean, digitsInfo?: string): string | null;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<IntegerCurrency, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<IntegerCurrency, "kmsIntegerCurrency">;
13
- }
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { CurrencyPipe } from '@angular/common';
5
+ import { PipeTransform } from '@angular/core';
6
+ import * as i0 from "@angular/core";
7
+ export declare class IntegerCurrency implements PipeTransform {
8
+ private cp;
9
+ constructor(cp: CurrencyPipe);
10
+ transform(value: any, currencyCode?: string, display?: boolean, digitsInfo?: string): string | null;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<IntegerCurrency, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<IntegerCurrency, "kmsIntegerCurrency", false>;
13
+ }
@@ -1,13 +1,13 @@
1
- /*!
2
- * @copyright FLYACTS GmbH 2019
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
- import * as i0 from "@angular/core";
7
- export declare class SafeHtmlPipe implements PipeTransform {
8
- private sanitizer;
9
- constructor(sanitizer: DomSanitizer);
10
- transform(html: string): SafeHtml;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "kmsSafeHtml">;
13
- }
1
+ /*!
2
+ * @copyright FLYACTS GmbH 2019
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SafeHtmlPipe implements PipeTransform {
8
+ private sanitizer;
9
+ constructor(sanitizer: DomSanitizer);
10
+ transform(html: string): SafeHtml;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "kmsSafeHtml", false>;
13
+ }
@@ -1,13 +1,13 @@
1
- /**
2
- * @copyright KMS GmbH
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
6
- import * as i0 from "@angular/core";
7
- export declare class SafeResourceUrlPipe implements PipeTransform {
8
- private sanitizer;
9
- constructor(sanitizer: DomSanitizer);
10
- transform(url: string): SafeResourceUrl;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeResourceUrlPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeResourceUrlPipe, "kmsSafeResourceSUrl">;
13
- }
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SafeResourceUrlPipe implements PipeTransform {
8
+ private sanitizer;
9
+ constructor(sanitizer: DomSanitizer);
10
+ transform(url: string): SafeResourceUrl;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeResourceUrlPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeResourceUrlPipe, "kmsSafeResourceSUrl", false>;
13
+ }
@@ -1,13 +1,13 @@
1
- /**
2
- * @copyright KMS GmbH
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
6
- import * as i0 from "@angular/core";
7
- export declare class SafeStylePipe implements PipeTransform {
8
- private sanitizer;
9
- constructor(sanitizer: DomSanitizer);
10
- transform(style: string): SafeUrl;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeStylePipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeStylePipe, "kmsSafeStyle">;
13
- }
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SafeStylePipe implements PipeTransform {
8
+ private sanitizer;
9
+ constructor(sanitizer: DomSanitizer);
10
+ transform(style: string): SafeUrl;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeStylePipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeStylePipe, "kmsSafeStyle", false>;
13
+ }
@@ -1,13 +1,13 @@
1
- /**
2
- * @copyright KMS GmbH
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
6
- import * as i0 from "@angular/core";
7
- export declare class SafeUrlPipe implements PipeTransform {
8
- private sanitizer;
9
- constructor(sanitizer: DomSanitizer);
10
- transform(url: string): SafeUrl;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
12
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "kmsSafeSUrl">;
13
- }
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SafeUrlPipe implements PipeTransform {
8
+ private sanitizer;
9
+ constructor(sanitizer: DomSanitizer);
10
+ transform(url: string): SafeUrl;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
12
+ static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "kmsSafeSUrl", false>;
13
+ }
@@ -1,10 +1,10 @@
1
- /**
2
- * @copyright KMS GmbH
3
- */
4
- import { PipeTransform } from '@angular/core';
5
- import * as i0 from "@angular/core";
6
- export declare class ToNumberPipe implements PipeTransform {
7
- transform(items: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ToNumberPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<ToNumberPipe, "kmsToNumber">;
10
- }
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from '@angular/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ToNumberPipe implements PipeTransform {
7
+ transform(items: any): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToNumberPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<ToNumberPipe, "kmsToNumber", false>;
10
+ }
@@ -1,10 +1,10 @@
1
- /**
2
- * @copyright KMS GmbH
3
- */
4
- import { PipeTransform } from "@angular/core";
5
- import * as i0 from "@angular/core";
6
- export declare class TrimPipe implements PipeTransform {
7
- transform(value: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TrimPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<TrimPipe, "kmsTrim">;
10
- }
1
+ /**
2
+ * @copyright KMS GmbH
3
+ */
4
+ import { PipeTransform } from "@angular/core";
5
+ import * as i0 from "@angular/core";
6
+ export declare class TrimPipe implements PipeTransform {
7
+ transform(value: any): any;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<TrimPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<TrimPipe, "kmsTrim", false>;
10
+ }
@@ -1,7 +1,7 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TypeofPipe implements PipeTransform {
4
- transform(value: any): any;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TypeofPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TypeofPipe, "kmsTypeOf">;
7
- }
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TypeofPipe implements PipeTransform {
4
+ transform(value: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TypeofPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<TypeofPipe, "kmsTypeOf", false>;
7
+ }
@@ -1,83 +1,74 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service to get viewport
6
- */
7
- export declare class ViewportService implements OnDestroy {
8
- private platformId;
9
- document: Document;
10
- readonly viewports: {
11
- name: string;
12
- low: number;
13
- high: number;
14
- }[];
15
- private viewportChangedSubscriber;
16
- private viewportResizedSubscriber;
17
- private currentViewport;
18
- private isBrowser;
19
- constructor(platformId: Object, document: Document);
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
- * Returns the current viewport MQ as string
43
- * @returns string
44
- */
45
- getCurrentViewPortNumber(): number;
46
- /**
47
- * Provides mq´s as string
48
- */
49
- getViewportChangedObserver(): Observable<string>;
50
- /**
51
- * Provides the current window width as number
52
- */
53
- getViewportResizedObserver(): Observable<number>;
54
- scrollToElementId(el: string, alignCenter?: boolean): void;
55
- /**
56
- * Helper function that scrolls to the given markup element.
57
- * @param el - nativeElement from markup
58
- * @param alignCenter - defines if the element needs to be centered on window
59
- */
60
- scrollToElement(el: HTMLElement, alignCenter?: boolean): void;
61
- /**
62
- * Scroll to the top position
63
- * @param top - top position value
64
- */
65
- scrollTop(top: number): void;
66
- isPortrait(): boolean;
67
- isLandscape(): boolean;
68
- isMobile(): boolean;
69
- calculateFullscreenElementsheight(id: string, defaultheight: string, extra: number): string;
70
- /**
71
- * If viewport changed
72
- * @event
73
- */
74
- private documentSizeChanged;
75
- /**
76
- * Get the Media Query for the given width
77
- * @param width Width to get the according MQ for
78
- */
79
- private convertWidthToMediaQuery;
80
- ngOnDestroy(): void;
81
- static ɵfac: i0.ɵɵFactoryDeclaration<ViewportService, never>;
82
- static ɵprov: i0.ɵɵInjectableDeclaration<ViewportService>;
83
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Service to get viewport
6
+ */
7
+ export declare class ViewportService implements OnDestroy {
8
+ private platformId;
9
+ readonly viewports: {
10
+ name: string;
11
+ low: number;
12
+ high: number;
13
+ }[];
14
+ private viewportChangedSubscriber;
15
+ private viewportResizedSubscriber;
16
+ private currentViewport;
17
+ constructor(platformId: Object);
18
+ /**
19
+ * Get window height
20
+ */
21
+ getDocumentHeight(): number;
22
+ /**
23
+ * Get window width
24
+ */
25
+ getDocumentWidth(): number;
26
+ /**
27
+ * Get window height
28
+ */
29
+ getWindowHeight(): number;
30
+ /**
31
+ * Get window width
32
+ */
33
+ getWindowWidth(): number;
34
+ /**
35
+ * Returns the current viewport MQ as string
36
+ * @returns string
37
+ */
38
+ getCurrentViewPort(): string;
39
+ /**
40
+ * Provides mq´s as string
41
+ */
42
+ getViewportChangedObserver(): Observable<string>;
43
+ /**
44
+ * Provides the current window width as number
45
+ */
46
+ getViewportResizedObserver(): Observable<number>;
47
+ scrollToElementId(el: string, alignCenter?: boolean): void;
48
+ /**
49
+ * Helper function that scrolls to the given markup element.
50
+ * @param el - nativeElement from markup
51
+ * @param alignCenter - defines if the element needs to be centered on window
52
+ */
53
+ scrollToElement(el: HTMLElement, alignCenter?: boolean): void;
54
+ /**
55
+ * Scroll to the top position
56
+ * @param top - top position value
57
+ */
58
+ scrollTop(top: number): void;
59
+ ngOnDestroy(): void;
60
+ /**
61
+ * If viewport changed
62
+ * @event
63
+ */
64
+ private documentSizeChanged;
65
+ /**
66
+ * Get the Media Query for the given width
67
+ * @param width Width to get the according MQ for
68
+ */
69
+ private convertWidthToMediaQuery;
70
+ isPortrait(): boolean;
71
+ isLandscape(): boolean;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<ViewportService, never>;
73
+ static ɵprov: i0.ɵɵInjectableDeclaration<ViewportService>;
74
+ }