@kms-ngx-ui/presentational 14.1.3 → 14.1.4
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/esm2020/lib/services/viewport.service.mjs +44 -11
- package/esm2020/lib/ui/dropdown-from-data/dropdown-from-data.component.mjs +6 -4
- package/esm2020/lib/ui/kms-accordion-item/kms-accordion-item.component.mjs +8 -8
- package/fesm2015/kms-ngx-ui-presentational.mjs +56 -21
- package/fesm2015/kms-ngx-ui-presentational.mjs.map +1 -1
- package/fesm2020/kms-ngx-ui-presentational.mjs +56 -21
- package/fesm2020/kms-ngx-ui-presentational.mjs.map +1 -1
- package/lib/services/viewport.service.d.ts +31 -5
- package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +3 -2
- package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class WindowDimensions {
|
|
5
|
+
constructor(data?: Partial<WindowDimensions>);
|
|
6
|
+
Height: number;
|
|
7
|
+
Width: number;
|
|
8
|
+
Orientation: "landscape" | "portrait";
|
|
9
|
+
}
|
|
4
10
|
export declare class SimpleBreakpoint {
|
|
5
11
|
constructor(data?: Partial<SimpleBreakpoint>);
|
|
6
12
|
Number: number;
|
|
@@ -8,7 +14,7 @@ export declare class SimpleBreakpoint {
|
|
|
8
14
|
MaximumPixels: number;
|
|
9
15
|
}
|
|
10
16
|
export declare class Breakpoint {
|
|
11
|
-
constructor(data?: Partial<
|
|
17
|
+
constructor(data?: Partial<Breakpoint>);
|
|
12
18
|
Number: number;
|
|
13
19
|
Name: string;
|
|
14
20
|
Low: number;
|
|
@@ -29,11 +35,11 @@ export declare class ViewportService implements OnDestroy {
|
|
|
29
35
|
private isBrowser;
|
|
30
36
|
constructor(platformId: Object, document: Document);
|
|
31
37
|
/**
|
|
32
|
-
* Get
|
|
38
|
+
* Get document height
|
|
33
39
|
*/
|
|
34
40
|
getDocumentHeight(): number;
|
|
35
41
|
/**
|
|
36
|
-
* Get
|
|
42
|
+
* Get document width
|
|
37
43
|
*/
|
|
38
44
|
getDocumentWidth(): number;
|
|
39
45
|
/**
|
|
@@ -56,9 +62,25 @@ export declare class ViewportService implements OnDestroy {
|
|
|
56
62
|
getCurrentViewPortObject(): Breakpoint;
|
|
57
63
|
/**
|
|
58
64
|
* Returns the current viewport as number
|
|
65
|
+
* @deprecated use getCurrentViewPortDimensions instead
|
|
59
66
|
* @returns string
|
|
60
67
|
*/
|
|
61
68
|
getCurrentViewPortNumber(): number;
|
|
69
|
+
/**
|
|
70
|
+
* Returns the current viewport width as number
|
|
71
|
+
* @returns string
|
|
72
|
+
*/
|
|
73
|
+
getCurrentViewPortWidth(): number;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the current viewport as number
|
|
76
|
+
* @returns string
|
|
77
|
+
*/
|
|
78
|
+
getCurrentViewPortHeight(): number;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the current viewport dimensions
|
|
81
|
+
* @returns string
|
|
82
|
+
*/
|
|
83
|
+
getCurrentViewPortDimensions(): WindowDimensions;
|
|
62
84
|
/**
|
|
63
85
|
* Provides mq´s as string
|
|
64
86
|
*/
|
|
@@ -85,11 +107,15 @@ export declare class ViewportService implements OnDestroy {
|
|
|
85
107
|
/**
|
|
86
108
|
* If orientation is portrait
|
|
87
109
|
*/
|
|
88
|
-
isPortrait(): boolean;
|
|
110
|
+
isPortrait(): boolean | undefined;
|
|
89
111
|
/**
|
|
90
112
|
* If orientation is landscape
|
|
91
113
|
*/
|
|
92
|
-
isLandscape(): boolean;
|
|
114
|
+
isLandscape(): boolean | undefined;
|
|
115
|
+
/**
|
|
116
|
+
* Get screen orientation (portrait/landscape)
|
|
117
|
+
*/
|
|
118
|
+
getOrientationAsString(): "portrait" | "landscape";
|
|
93
119
|
/**
|
|
94
120
|
* If mobile breakpoint (below tablet)
|
|
95
121
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, OnChanges, SimpleChanges, Renderer2 } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, UntypedFormBuilder } from '@angular/forms';
|
|
2
|
+
import { ControlValueAccessor, UntypedFormBuilder, AbstractControl } from '@angular/forms';
|
|
3
3
|
import { FormControlParentComponent } from '../../parent-components/form-control.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
@@ -20,6 +20,7 @@ export declare class DropdownFromDataComponent extends FormControlParentComponen
|
|
|
20
20
|
required: boolean;
|
|
21
21
|
useEnumIndexAsValue: boolean;
|
|
22
22
|
multiple: boolean;
|
|
23
|
+
control?: AbstractControl;
|
|
23
24
|
keys: any[];
|
|
24
25
|
values: any[];
|
|
25
26
|
Object: ObjectConstructor;
|
|
@@ -42,7 +43,7 @@ export declare class DropdownFromDataComponent extends FormControlParentComponen
|
|
|
42
43
|
setDisplayKey(key: any): any;
|
|
43
44
|
valueChanged(value: any): void;
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownFromDataComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownFromDataComponent, "kms-dropdown-from-data", never, { "optionsEnum": "optionsEnum"; "optionsPlainArray": "optionsPlainArray"; "optionsObjArray": "optionsObjArray"; "mapKey": "mapKey"; "mapValue": "mapValue"; "hasNullOption": "hasNullOption"; "translation": "translation"; "placeholder": "placeholder"; "label": "label"; "required": "required"; "useEnumIndexAsValue": "useEnumIndexAsValue"; "multiple": "multiple"; }, {}, never, never, false>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownFromDataComponent, "kms-dropdown-from-data", never, { "optionsEnum": "optionsEnum"; "optionsPlainArray": "optionsPlainArray"; "optionsObjArray": "optionsObjArray"; "mapKey": "mapKey"; "mapValue": "mapValue"; "hasNullOption": "hasNullOption"; "translation": "translation"; "placeholder": "placeholder"; "label": "label"; "required": "required"; "useEnumIndexAsValue": "useEnumIndexAsValue"; "multiple": "multiple"; "control": "control"; }, {}, never, never, false>;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Interface that defines the translation object in template
|
|
@@ -9,14 +9,14 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class KMSAccordionItemComponent implements OnInit {
|
|
11
11
|
sanitizer: DomSanitizer;
|
|
12
|
-
itemTitle: string;
|
|
13
12
|
itemTitleTrustHtml: SafeHtml | undefined;
|
|
14
13
|
showAsCard: boolean;
|
|
15
14
|
isSmall: boolean;
|
|
16
15
|
expanded: boolean;
|
|
16
|
+
set itemTitle(val: string);
|
|
17
17
|
panelOpenState: boolean;
|
|
18
18
|
constructor(sanitizer: DomSanitizer);
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<KMSAccordionItemComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KMSAccordionItemComponent, "kms-accordion-item", never, { "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KMSAccordionItemComponent, "kms-accordion-item", never, { "showAsCard": "showAsCard"; "isSmall": "isSmall"; "expanded": "expanded"; "itemTitle": "itemTitle"; }, {}, never, ["[itemTitleElement]", "*"], false>;
|
|
22
22
|
}
|