@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.
- package/README.md +28 -28
- package/{esm2015/kms-ngx-ui-presentational.js → esm2020/kms-ngx-ui-presentational.mjs} +4 -4
- package/esm2020/lib/directives/directives.module.mjs +40 -0
- package/{esm2015/lib/directives/mousewheel.directive.js → esm2020/lib/directives/mousewheel.directive.mjs} +56 -56
- package/{esm2015/lib/directives/sum-of-height.directive.js → esm2020/lib/directives/sum-of-height.directive.mjs} +74 -74
- package/{esm2015/lib/directives/swipe.directive.js → esm2020/lib/directives/swipe.directive.mjs} +183 -183
- package/esm2020/lib/directives/swipe.model.mjs +5 -0
- package/{esm2015/lib/directives/tooltip.directive.js → esm2020/lib/directives/tooltip.directive.mjs} +144 -144
- package/esm2020/lib/kms-ngx-ui-presentational.component.mjs +22 -0
- package/{esm2015/lib/kms-ngx-ui-presentational.module.js → esm2020/lib/kms-ngx-ui-presentational.module.mjs} +215 -217
- package/{esm2015/lib/kms-ngx-ui-presentational.service.js → esm2020/lib/kms-ngx-ui-presentational.service.mjs} +14 -14
- package/esm2020/lib/models/address.model.mjs +6 -0
- package/{esm2015/lib/models/iconSize.enum.js → esm2020/lib/models/iconSize.enum.mjs} +17 -17
- package/{esm2015/lib/models/image-snippet.model.js → esm2020/lib/models/image-snippet.model.mjs} +18 -18
- package/{esm2015/lib/models/index.js → esm2020/lib/models/index.mjs} +5 -5
- package/{esm2015/lib/models/is-value.function.js → esm2020/lib/models/is-value.function.mjs} +17 -17
- package/{esm2015/lib/models/salutation.enum.js → esm2020/lib/models/salutation.enum.mjs} +8 -8
- package/{esm2015/lib/models/types/attached-file-dto.model.js → esm2020/lib/models/types/attached-file-dto.model.mjs} +6 -6
- package/{esm2015/lib/models/types/nullable.type.js → esm2020/lib/models/types/nullable.type.mjs} +5 -5
- package/{esm2015/lib/parent-components/actions.component.js → esm2020/lib/parent-components/actions.component.mjs} +56 -56
- package/esm2020/lib/parent-components/form-control.component.mjs +75 -0
- package/esm2020/lib/parent-components/form.component.mjs +78 -0
- package/{esm2015/lib/pipes/custom-pipes.module.js → esm2020/lib/pipes/custom-pipes.module.mjs} +71 -71
- package/esm2020/lib/pipes/decode-uri.pipe.mjs +19 -0
- package/esm2020/lib/pipes/encode-uri.pipe.mjs +19 -0
- package/{esm2015/lib/pipes/integer-currency.pipe.js → esm2020/lib/pipes/integer-currency.pipe.mjs} +27 -27
- package/{esm2015/lib/pipes/safe-html.pipe.js → esm2020/lib/pipes/safe-html.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/safe-resource-url.pipe.js → esm2020/lib/pipes/safe-resource-url.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/safe-style.pipe.js → esm2020/lib/pipes/safe-style.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/safe-url.pipe.js → esm2020/lib/pipes/safe-url.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/to-number.pipe.js → esm2020/lib/pipes/to-number.pipe.mjs} +23 -23
- package/{esm2015/lib/pipes/trim.pipe.js → esm2020/lib/pipes/trim.pipe.mjs} +20 -20
- package/{esm2015/lib/pipes/typeof.pipe.js → esm2020/lib/pipes/typeof.pipe.mjs} +16 -16
- package/esm2020/lib/services/viewport.service.mjs +216 -0
- package/esm2020/lib/ui/back-to-top/back-to-top.component.mjs +49 -0
- 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
- package/esm2020/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.mjs +58 -0
- 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
- package/esm2020/lib/ui/checkbox/checkbox.component.mjs +71 -0
- package/esm2020/lib/ui/color-input/color-input.component.mjs +76 -0
- package/esm2020/lib/ui/dropdown-from-data/dropdown-from-data.component.mjs +165 -0
- package/esm2020/lib/ui/enum-radiogroup/enum-radiogroup.component.mjs +53 -0
- package/esm2020/lib/ui/file-input/file-input.component.mjs +232 -0
- package/esm2020/lib/ui/flyout/flyout.component.mjs +119 -0
- package/esm2020/lib/ui/generic-dialog/generic-dialog.component.mjs +54 -0
- package/esm2020/lib/ui/icon/icon.component.mjs +48 -0
- package/esm2020/lib/ui/icon/iconSize.enum.mjs +17 -0
- package/esm2020/lib/ui/image-slider/image-slider.component.mjs +189 -0
- package/esm2020/lib/ui/kms-accordion-item/kms-accordion-item.component.mjs +40 -0
- package/esm2020/lib/ui/loader/loader.component.mjs +21 -0
- package/esm2020/lib/ui/map/map.component.mjs +116 -0
- package/esm2020/lib/ui/radiobutton/radiobutton.component.mjs +73 -0
- package/esm2020/lib/ui/salutation-dropdown/salutation-dropdown.component.mjs +55 -0
- package/esm2020/lib/ui/salutation-radiogroup/salutation-radiogroup.component.mjs +49 -0
- package/esm2020/lib/ui/time-input/time-input.component.mjs +83 -0
- package/esm2020/lib/ui/tooltip/tooltip.component.mjs +16 -0
- package/esm2020/lib/ui/tooltip-icon/tooltip-icon.component.mjs +35 -0
- package/esm2020/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.mjs +82 -0
- package/esm2020/public-api.mjs +49 -0
- package/fesm2015/kms-ngx-ui-presentational.mjs +3013 -0
- package/fesm2015/kms-ngx-ui-presentational.mjs.map +1 -0
- package/{fesm2015/kms-ngx-ui-presentational.js → fesm2020/kms-ngx-ui-presentational.mjs} +2894 -3108
- package/fesm2020/kms-ngx-ui-presentational.mjs.map +1 -0
- package/{kms-ngx-ui-presentational.d.ts → index.d.ts} +5 -5
- package/lib/directives/directives.module.d.ts +11 -13
- package/lib/directives/mousewheel.directive.d.ts +15 -15
- package/lib/directives/sum-of-height.directive.d.ts +31 -31
- package/lib/directives/swipe.directive.d.ts +45 -45
- package/lib/directives/swipe.model.d.ts +49 -49
- package/lib/directives/tooltip.directive.d.ts +29 -29
- package/lib/kms-ngx-ui-presentational.component.d.ts +8 -8
- package/lib/kms-ngx-ui-presentational.module.d.ts +47 -47
- package/lib/kms-ngx-ui-presentational.service.d.ts +6 -6
- package/lib/models/address.model.d.ts +14 -14
- package/lib/models/iconSize.enum.d.ts +15 -15
- package/lib/models/image-snippet.model.d.ts +15 -15
- package/lib/models/index.d.ts +4 -4
- package/lib/models/is-value.function.d.ts +9 -9
- package/lib/models/salutation.enum.d.ts +5 -5
- package/lib/models/types/attached-file-dto.model.d.ts +11 -11
- package/lib/models/types/nullable.type.d.ts +4 -4
- package/lib/parent-components/actions.component.d.ts +31 -31
- package/lib/parent-components/form-control.component.d.ts +27 -27
- package/lib/parent-components/form.component.d.ts +34 -40
- package/lib/pipes/custom-pipes.module.d.ts +17 -17
- package/lib/pipes/decode-uri.pipe.d.ts +10 -10
- package/lib/pipes/encode-uri.pipe.d.ts +10 -10
- package/lib/pipes/integer-currency.pipe.d.ts +13 -13
- package/lib/pipes/safe-html.pipe.d.ts +13 -13
- package/lib/pipes/safe-resource-url.pipe.d.ts +13 -13
- package/lib/pipes/safe-style.pipe.d.ts +13 -13
- package/lib/pipes/safe-url.pipe.d.ts +13 -13
- package/lib/pipes/to-number.pipe.d.ts +10 -10
- package/lib/pipes/trim.pipe.d.ts +10 -10
- package/lib/pipes/typeof.pipe.d.ts +7 -7
- package/lib/services/viewport.service.d.ts +74 -83
- package/lib/ui/back-to-top/back-to-top.component.d.ts +10 -10
- package/lib/ui/button-with-confirm-dialog/button-response-types.enum.d.ts +4 -4
- package/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.d.ts +19 -19
- package/lib/ui/button-with-confirm-dialog/dialog-data.model.d.ts +9 -9
- package/lib/ui/checkbox/checkbox.component.d.ts +31 -31
- package/lib/ui/color-input/color-input.component.d.ts +19 -19
- package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +55 -55
- package/lib/ui/enum-radiogroup/enum-radiogroup.component.d.ts +17 -17
- package/lib/ui/file-input/file-input.component.d.ts +89 -89
- package/lib/ui/flyout/flyout.component.d.ts +32 -32
- package/lib/ui/generic-dialog/generic-dialog.component.d.ts +26 -26
- package/lib/ui/icon/icon.component.d.ts +42 -48
- package/lib/ui/icon/iconSize.enum.d.ts +15 -25
- package/lib/ui/image-slider/image-slider.component.d.ts +62 -62
- package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +22 -22
- package/lib/ui/loader/loader.component.d.ts +9 -9
- package/lib/ui/map/map.component.d.ts +70 -69
- package/lib/ui/radiobutton/radiobutton.component.d.ts +26 -27
- package/lib/ui/salutation-dropdown/salutation-dropdown.component.d.ts +17 -17
- package/lib/ui/salutation-radiogroup/salutation-radiogroup.component.d.ts +15 -15
- package/lib/ui/time-input/time-input.component.d.ts +22 -22
- package/lib/ui/tooltip/tooltip.component.d.ts +6 -6
- package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +13 -13
- package/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.d.ts +27 -27
- package/package.json +27 -14
- package/public-api.d.ts +45 -46
- package/src/lib/ui/back-to-top/back-to-top.component.scss +46 -45
- package/src/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.scss +2 -2
- package/src/lib/ui/checkbox/checkbox.component.scss +48 -48
- package/src/lib/ui/color-input/color-input.component.scss +38 -38
- package/src/lib/ui/file-input/file-input.component.scss +2 -2
- package/src/lib/ui/flyout/flyout.component.scss +34 -34
- package/src/lib/ui/generic-dialog/generic-dialog.component.scss +59 -59
- package/src/lib/ui/icon/icon.component.scss +148 -114
- package/src/lib/ui/image-slider/image-slider.component.scss +219 -219
- package/src/lib/ui/kms-accordion-item/kms-accordion-item.component.scss +95 -95
- package/src/lib/ui/radiobutton/radiobutton.component.scss +31 -31
- package/src/lib/ui/time-input/time-input.component.scss +10 -10
- package/src/lib/ui/tooltip/tooltip.component.scss +26 -26
- package/src/lib/ui/tooltip-icon/tooltip-icon.component.scss +2 -2
- package/src/styles/mixins.scss +8 -8
- package/src/styles/styles.scss +30 -31
- package/bundles/kms-ngx-ui-presentational.umd.js +0 -3751
- package/bundles/kms-ngx-ui-presentational.umd.js.map +0 -1
- package/esm2015/lib/directives/directives.module.js +0 -45
- package/esm2015/lib/directives/size.directive.js +0 -21
- package/esm2015/lib/directives/swipe.model.js +0 -5
- package/esm2015/lib/kms-ngx-ui-presentational.component.js +0 -26
- package/esm2015/lib/models/address.model.js +0 -6
- package/esm2015/lib/parent-components/colorable.component.js +0 -35
- package/esm2015/lib/parent-components/form-control.component.js +0 -76
- package/esm2015/lib/parent-components/form.component.js +0 -99
- package/esm2015/lib/pipes/decode-uri.pipe.js +0 -19
- package/esm2015/lib/pipes/encode-uri.pipe.js +0 -19
- package/esm2015/lib/services/viewport.service.js +0 -242
- package/esm2015/lib/ui/back-to-top/back-to-top.component.js +0 -52
- package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +0 -62
- package/esm2015/lib/ui/checkbox/checkbox.component.js +0 -76
- package/esm2015/lib/ui/color-input/color-input.component.js +0 -81
- package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +0 -169
- package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +0 -57
- package/esm2015/lib/ui/file-input/file-input.component.js +0 -237
- package/esm2015/lib/ui/flyout/flyout.component.js +0 -125
- package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +0 -58
- package/esm2015/lib/ui/icon/icon.component.js +0 -55
- package/esm2015/lib/ui/icon/iconSize.enum.js +0 -28
- package/esm2015/lib/ui/image-slider/image-slider.component.js +0 -193
- package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +0 -44
- package/esm2015/lib/ui/loader/loader.component.js +0 -25
- package/esm2015/lib/ui/map/map.component.js +0 -120
- package/esm2015/lib/ui/radiobutton/radiobutton.component.js +0 -82
- package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +0 -59
- package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +0 -53
- package/esm2015/lib/ui/time-input/time-input.component.js +0 -88
- package/esm2015/lib/ui/tooltip/tooltip.component.js +0 -20
- package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +0 -40
- package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +0 -86
- package/esm2015/public-api.js +0 -50
- package/fesm2015/kms-ngx-ui-presentational.js.map +0 -1
- package/lib/directives/size.directive.d.ts +0 -10
- package/lib/parent-components/colorable.component.d.ts +0 -10
- 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 {
|
|
3
|
-
import { FormParentComponent } from './form.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FormControlParentComponent extends FormParentComponent {
|
|
6
|
-
formBuilder:
|
|
7
|
-
renderer: Renderer2;
|
|
8
|
-
defaultDataOverride: string;
|
|
9
|
-
onSelectItemEmitter: EventEmitter<string>;
|
|
10
|
-
child?: ElementRef<HTMLInputElement>;
|
|
11
|
-
internalValue: string;
|
|
12
|
-
constructor(formBuilder:
|
|
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(_:
|
|
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,
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
+
}
|
package/lib/pipes/trim.pipe.d.ts
CHANGED
|
@@ -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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
private
|
|
16
|
-
private
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
+
}
|