@kms-ngx-ui/presentational 16.3.1 → 16.3.3

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 (41) hide show
  1. package/esm2022/lib/directives/directives.module.mjs +8 -3
  2. package/esm2022/lib/directives/size.directive.mjs +21 -0
  3. package/esm2022/lib/kms-ngx-ui-presentational.module.mjs +21 -26
  4. package/esm2022/lib/parent-components/form-control.component.mjs +2 -2
  5. package/esm2022/lib/parent-components/form.component.mjs +11 -5
  6. package/esm2022/lib/services/viewport.service.mjs +212 -73
  7. package/esm2022/lib/ui/back-to-top/back-to-top.component.mjs +1 -1
  8. package/esm2022/lib/ui/dropdown-from-data/dropdown-from-data.component.mjs +9 -4
  9. package/esm2022/lib/ui/file-input/file-input.component.mjs +8 -8
  10. package/esm2022/lib/ui/flyout/flyout.component.mjs +6 -5
  11. package/esm2022/lib/ui/icon/icon.component.mjs +6 -3
  12. package/esm2022/lib/ui/icon/iconSize.enum.mjs +12 -1
  13. package/esm2022/lib/ui/image-slider/image-slider.component.mjs +3 -3
  14. package/esm2022/lib/ui/kms-accordion-item/kms-accordion-item.component.mjs +9 -9
  15. package/esm2022/lib/ui/map/map.component.mjs +3 -3
  16. package/esm2022/lib/ui/radiobutton/radiobutton.component.mjs +9 -5
  17. package/esm2022/lib/ui/tooltip-icon/tooltip-icon.component.mjs +7 -6
  18. package/esm2022/public-api.mjs +21 -21
  19. package/fesm2022/kms-ngx-ui-presentational.mjs +1885 -1713
  20. package/fesm2022/kms-ngx-ui-presentational.mjs.map +1 -1
  21. package/lib/directives/directives.module.d.ts +4 -2
  22. package/lib/directives/size.directive.d.ts +10 -0
  23. package/lib/kms-ngx-ui-presentational.module.d.ts +21 -22
  24. package/lib/services/viewport.service.d.ts +86 -11
  25. package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +4 -2
  26. package/lib/ui/file-input/file-input.component.d.ts +2 -2
  27. package/lib/ui/icon/icon.component.d.ts +7 -1
  28. package/lib/ui/icon/iconSize.enum.d.ts +10 -0
  29. package/lib/ui/kms-accordion-item/kms-accordion-item.component.d.ts +2 -2
  30. package/lib/ui/radiobutton/radiobutton.component.d.ts +2 -1
  31. package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +2 -2
  32. package/package.json +1 -1
  33. package/public-api.d.ts +20 -20
  34. package/src/lib/ui/back-to-top/back-to-top.component.scss +2 -3
  35. package/src/lib/ui/icon/icon.component.scss +2 -36
  36. package/src/lib/ui/image-slider/image-slider.component.scss +209 -202
  37. package/src/styles/animations.scss +47 -0
  38. package/src/styles/styles.scss +1 -0
  39. package/esm2022/lib/ui/tooltip/tooltip.component.mjs +0 -16
  40. package/lib/ui/tooltip/tooltip.component.d.ts +0 -6
  41. package/src/lib/ui/tooltip/tooltip.component.scss +0 -27
@@ -3,9 +3,11 @@ import * as i1 from "./swipe.directive";
3
3
  import * as i2 from "./mousewheel.directive";
4
4
  import * as i3 from "./sum-of-height.directive";
5
5
  import * as i4 from "./tooltip.directive";
6
- import * as i5 from "@angular/common";
6
+ import * as i5 from "./size.directive";
7
+ import * as i6 from "@angular/common";
7
8
  export declare class DirectivesModule {
9
+ SizeDirective: any;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DirectivesModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.SwipeDirective, typeof i2.MouseWheelDirective, typeof i3.GetMaxHeightDirective, typeof i4.TooltipDirective], [typeof i5.CommonModule], [typeof i1.SwipeDirective, typeof i2.MouseWheelDirective, typeof i3.GetMaxHeightDirective, typeof i4.TooltipDirective]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.SwipeDirective, typeof i2.MouseWheelDirective, typeof i3.GetMaxHeightDirective, typeof i4.TooltipDirective, typeof i5.SizeDirective], [typeof i6.CommonModule], [typeof i1.SwipeDirective, typeof i2.MouseWheelDirective, typeof i3.GetMaxHeightDirective, typeof i4.TooltipDirective, typeof i5.SizeDirective]>;
10
12
  static ɵinj: i0.ɵɵInjectorDeclaration<DirectivesModule>;
11
13
  }
@@ -0,0 +1,10 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class SizeDirective {
4
+ private elementRef;
5
+ size: string;
6
+ constructor(elementRef: ElementRef);
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<SizeDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SizeDirective, "[size]", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
10
+ }
@@ -19,29 +19,28 @@ import * as i17 from "./ui/radiobutton/radiobutton.component";
19
19
  import * as i18 from "./ui/salutation-dropdown/salutation-dropdown.component";
20
20
  import * as i19 from "./ui/salutation-radiogroup/salutation-radiogroup.component";
21
21
  import * as i20 from "./ui/time-input/time-input.component";
22
- import * as i21 from "./ui/tooltip/tooltip.component";
23
- import * as i22 from "./ui/tooltip-icon/tooltip-icon.component";
24
- import * as i23 from "./ui/yes-no-radiogroup/yes-no-radiogroup.component";
25
- import * as i24 from "@angular/common";
26
- import * as i25 from "@angular/cdk/drag-drop";
27
- import * as i26 from "@angular/material/checkbox";
28
- import * as i27 from "@angular/material/button";
29
- import * as i28 from "@angular/material/radio";
30
- import * as i29 from "@angular/material/dialog";
31
- import * as i30 from "@angular/forms";
32
- import * as i31 from "@angular/material/form-field";
33
- import * as i32 from "@angular/material/input";
34
- import * as i33 from "@angular/material/menu";
35
- import * as i34 from "./pipes/custom-pipes.module";
36
- import * as i35 from "@angular/google-maps";
37
- import * as i36 from "@angular/material/expansion";
38
- import * as i37 from "@angular/material/select";
39
- import * as i38 from "@angular/material/progress-spinner";
40
- import * as i39 from "./directives/directives.module";
41
- import * as i40 from "@ngx-translate/core";
42
- import * as i41 from "ngx-useful-swiper";
22
+ import * as i21 from "./ui/tooltip-icon/tooltip-icon.component";
23
+ import * as i22 from "./ui/yes-no-radiogroup/yes-no-radiogroup.component";
24
+ import * as i23 from "@angular/common";
25
+ import * as i24 from "@angular/cdk/drag-drop";
26
+ import * as i25 from "@angular/material/checkbox";
27
+ import * as i26 from "@angular/material/button";
28
+ import * as i27 from "@angular/material/radio";
29
+ import * as i28 from "@angular/material/dialog";
30
+ import * as i29 from "@angular/forms";
31
+ import * as i30 from "@angular/material/form-field";
32
+ import * as i31 from "@angular/material/input";
33
+ import * as i32 from "@angular/material/menu";
34
+ import * as i33 from "./pipes/custom-pipes.module";
35
+ import * as i34 from "@angular/google-maps";
36
+ import * as i35 from "@angular/material/expansion";
37
+ import * as i36 from "@angular/material/select";
38
+ import * as i37 from "@angular/material/progress-spinner";
39
+ import * as i38 from "./directives/directives.module";
40
+ import * as i39 from "@ngx-translate/core";
41
+ import * as i40 from "ngx-useful-swiper";
43
42
  export declare class KmsUiPresentationalModule {
44
43
  static ɵfac: i0.ɵɵFactoryDeclaration<KmsUiPresentationalModule, never>;
45
- static ɵmod: i0.ɵɵNgModuleDeclaration<KmsUiPresentationalModule, [typeof i1.ActionsParentComponent, typeof i2.BackToTopComponent, typeof i3.ButtonWithConfirmDialogComponent, typeof i4.CheckboxComponent, typeof i5.ColorInputComponent, typeof i6.DropdownFromDataComponent, typeof i7.EnumRadiogroupComponent, typeof i7.EnumRadiogroupComponent, typeof i8.FileInputComponent, typeof i9.FlyoutComponent, typeof i10.GenericDialogComponent, typeof i11.IconComponent, typeof i12.ImageSliderComponent, typeof i13.KMSAccordionItemComponent, typeof i14.KmsUiPresentationalComponent, typeof i15.LoaderComponent, typeof i16.MapComponent, typeof i17.RadioButtonComponent, typeof i18.SalutationDropdownComponent, typeof i19.SalutationRadiogroupComponent, typeof i20.TimeInputComponent, typeof i21.TooltipComponent, typeof i22.TooltipIconComponent, typeof i23.YesNoRadiogroupComponent], [typeof i24.CommonModule, typeof i25.DragDropModule, typeof i26.MatCheckboxModule, typeof i27.MatButtonModule, typeof i28.MatRadioModule, typeof i29.MatDialogModule, typeof i30.FormsModule, typeof i30.ReactiveFormsModule, typeof i31.MatFormFieldModule, typeof i32.MatInputModule, typeof i33.MatMenuModule, typeof i34.CustomPipesModule, typeof i35.GoogleMapsModule, typeof i36.MatExpansionModule, typeof i37.MatSelectModule, typeof i38.MatProgressSpinnerModule, typeof i39.DirectivesModule, typeof i40.TranslateModule, typeof i41.NgxUsefulSwiperModule], [typeof i1.ActionsParentComponent, typeof i2.BackToTopComponent, typeof i3.ButtonWithConfirmDialogComponent, typeof i4.CheckboxComponent, typeof i5.ColorInputComponent, typeof i6.DropdownFromDataComponent, typeof i7.EnumRadiogroupComponent, typeof i7.EnumRadiogroupComponent, typeof i8.FileInputComponent, typeof i9.FlyoutComponent, typeof i10.GenericDialogComponent, typeof i11.IconComponent, typeof i12.ImageSliderComponent, typeof i13.KMSAccordionItemComponent, typeof i14.KmsUiPresentationalComponent, typeof i15.LoaderComponent, typeof i16.MapComponent, typeof i17.RadioButtonComponent, typeof i18.SalutationDropdownComponent, typeof i19.SalutationRadiogroupComponent, typeof i20.TimeInputComponent, typeof i21.TooltipComponent, typeof i22.TooltipIconComponent, typeof i23.YesNoRadiogroupComponent]>;
44
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KmsUiPresentationalModule, [typeof i1.ActionsParentComponent, typeof i2.BackToTopComponent, typeof i3.ButtonWithConfirmDialogComponent, typeof i4.CheckboxComponent, typeof i5.ColorInputComponent, typeof i6.DropdownFromDataComponent, typeof i7.EnumRadiogroupComponent, typeof i7.EnumRadiogroupComponent, typeof i8.FileInputComponent, typeof i9.FlyoutComponent, typeof i10.GenericDialogComponent, typeof i11.IconComponent, typeof i12.ImageSliderComponent, typeof i13.KMSAccordionItemComponent, typeof i14.KmsUiPresentationalComponent, typeof i15.LoaderComponent, typeof i16.MapComponent, typeof i17.RadioButtonComponent, typeof i18.SalutationDropdownComponent, typeof i19.SalutationRadiogroupComponent, typeof i20.TimeInputComponent, typeof i21.TooltipIconComponent, typeof i22.YesNoRadiogroupComponent], [typeof i23.CommonModule, typeof i24.DragDropModule, typeof i25.MatCheckboxModule, typeof i26.MatButtonModule, typeof i27.MatRadioModule, typeof i28.MatDialogModule, typeof i29.FormsModule, typeof i29.ReactiveFormsModule, typeof i30.MatFormFieldModule, typeof i31.MatInputModule, typeof i32.MatMenuModule, typeof i33.CustomPipesModule, typeof i34.GoogleMapsModule, typeof i35.MatExpansionModule, typeof i36.MatSelectModule, typeof i37.MatProgressSpinnerModule, typeof i38.DirectivesModule, typeof i39.TranslateModule, typeof i40.NgxUsefulSwiperModule], [typeof i1.ActionsParentComponent, typeof i2.BackToTopComponent, typeof i3.ButtonWithConfirmDialogComponent, typeof i4.CheckboxComponent, typeof i5.ColorInputComponent, typeof i6.DropdownFromDataComponent, typeof i7.EnumRadiogroupComponent, typeof i7.EnumRadiogroupComponent, typeof i8.FileInputComponent, typeof i9.FlyoutComponent, typeof i10.GenericDialogComponent, typeof i11.IconComponent, typeof i12.ImageSliderComponent, typeof i13.KMSAccordionItemComponent, typeof i14.KmsUiPresentationalComponent, typeof i15.LoaderComponent, typeof i16.MapComponent, typeof i17.RadioButtonComponent, typeof i18.SalutationDropdownComponent, typeof i19.SalutationRadiogroupComponent, typeof i20.TimeInputComponent, typeof i21.TooltipIconComponent, typeof i22.YesNoRadiogroupComponent]>;
46
45
  static ɵinj: i0.ɵɵInjectorDeclaration<KmsUiPresentationalModule>;
47
46
  }
@@ -1,26 +1,45 @@
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
+ }
10
+ export declare class SimpleBreakpoint {
11
+ constructor(data?: Partial<SimpleBreakpoint>);
12
+ Number: number;
13
+ Name: string;
14
+ MaximumPixels: number;
15
+ }
16
+ export declare class Breakpoint {
17
+ constructor(data?: Partial<Breakpoint>);
18
+ Number: number;
19
+ Name: string;
20
+ Low: number;
21
+ High: number;
22
+ }
4
23
  /**
5
24
  * Service to get viewport
6
25
  */
7
26
  export declare class ViewportService implements OnDestroy {
8
27
  private platformId;
9
- readonly viewports: {
10
- name: string;
11
- low: number;
12
- high: number;
13
- }[];
28
+ document: Document;
29
+ readonly simpleBreakpoints: SimpleBreakpoint[];
30
+ readonly breakpoints: Breakpoint[];
14
31
  private viewportChangedSubscriber;
15
32
  private viewportResizedSubscriber;
16
33
  private currentViewport;
17
- constructor(platformId: Object);
34
+ private currentViewportObject;
35
+ private isBrowser;
36
+ constructor(platformId: Object, document: Document);
18
37
  /**
19
- * Get window height
38
+ * Get document height
20
39
  */
21
40
  getDocumentHeight(): number;
22
41
  /**
23
- * Get window width
42
+ * Get document width
24
43
  */
25
44
  getDocumentWidth(): number;
26
45
  /**
@@ -36,6 +55,32 @@ export declare class ViewportService implements OnDestroy {
36
55
  * @returns string
37
56
  */
38
57
  getCurrentViewPort(): string;
58
+ /**
59
+ * Returns the current viewport MQ as object with all informations
60
+ * @returns string
61
+ */
62
+ getCurrentViewPortObject(): Breakpoint;
63
+ /**
64
+ * Returns the current viewport as number
65
+ * @deprecated use getCurrentViewPortDimensions instead
66
+ * @returns string
67
+ */
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;
39
84
  /**
40
85
  * Provides mq´s as string
41
86
  */
@@ -44,6 +89,9 @@ export declare class ViewportService implements OnDestroy {
44
89
  * Provides the current window width as number
45
90
  */
46
91
  getViewportResizedObserver(): Observable<number>;
92
+ /**
93
+ * Scroll to element
94
+ */
47
95
  scrollToElementId(el: string, alignCenter?: boolean): void;
48
96
  /**
49
97
  * Helper function that scrolls to the given markup element.
@@ -56,7 +104,31 @@ export declare class ViewportService implements OnDestroy {
56
104
  * @param top - top position value
57
105
  */
58
106
  scrollTop(top: number): void;
59
- ngOnDestroy(): void;
107
+ /**
108
+ * If orientation is portrait
109
+ */
110
+ isPortrait(): boolean | undefined;
111
+ /**
112
+ * If orientation is landscape
113
+ */
114
+ isLandscape(): boolean | undefined;
115
+ /**
116
+ * Get screen orientation (portrait/landscape)
117
+ */
118
+ getOrientationAsString(): "portrait" | "landscape";
119
+ /**
120
+ * If mobile breakpoint (below tablet)
121
+ */
122
+ isMobile(): boolean;
123
+ /**
124
+ * Get height of an element
125
+ * @deprecated
126
+ */
127
+ calculateFullscreenElementsheight(id: string, defaultheight: string, extra: number): string;
128
+ /**
129
+ * Get height of an element
130
+ */
131
+ calculateFullscreenElementsHeight(id: string, defaultheight: string, extra: number): string;
60
132
  /**
61
133
  * If viewport changed
62
134
  * @event
@@ -67,8 +139,11 @@ export declare class ViewportService implements OnDestroy {
67
139
  * @param width Width to get the according MQ for
68
140
  */
69
141
  private convertWidthToMediaQuery;
70
- isPortrait(): boolean;
71
- isLandscape(): boolean;
142
+ /**
143
+ * Get the breakpoint/device name like mobile,tablet,desktop, high
144
+ */
145
+ getSimpleBreakpoint(screenSize: number): SimpleBreakpoint;
146
+ ngOnDestroy(): void;
72
147
  static ɵfac: i0.ɵɵFactoryDeclaration<ViewportService, never>;
73
148
  static ɵprov: i0.ɵɵInjectableDeclaration<ViewportService>;
74
149
  }
@@ -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": { "alias": "optionsEnum"; "required": false; }; "optionsPlainArray": { "alias": "optionsPlainArray"; "required": false; }; "optionsObjArray": { "alias": "optionsObjArray"; "required": false; }; "mapKey": { "alias": "mapKey"; "required": false; }; "mapValue": { "alias": "mapValue"; "required": false; }; "hasNullOption": { "alias": "hasNullOption"; "required": false; }; "translation": { "alias": "translation"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "useEnumIndexAsValue": { "alias": "useEnumIndexAsValue"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, false, never>;
46
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownFromDataComponent, "kms-dropdown-from-data", never, { "optionsEnum": { "alias": "optionsEnum"; "required": false; }; "optionsPlainArray": { "alias": "optionsPlainArray"; "required": false; }; "optionsObjArray": { "alias": "optionsObjArray"; "required": false; }; "mapKey": { "alias": "mapKey"; "required": false; }; "mapValue": { "alias": "mapValue"; "required": false; }; "hasNullOption": { "alias": "hasNullOption"; "required": false; }; "translation": { "alias": "translation"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "useEnumIndexAsValue": { "alias": "useEnumIndexAsValue"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
46
47
  }
47
48
  /**
48
49
  * Interface that defines the translation object in template
@@ -50,6 +51,7 @@ export declare class DropdownFromDataComponent extends FormControlParentComponen
50
51
  interface ITranslation {
51
52
  path: string;
52
53
  isPrefix?: boolean;
54
+ useKeyAsValue?: boolean;
53
55
  service: any;
54
56
  }
55
57
  export {};
@@ -1,8 +1,8 @@
1
1
  import { OnInit, Renderer2, EventEmitter, ApplicationRef, ChangeDetectorRef } from '@angular/core';
2
2
  import { ControlValueAccessor, UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
3
3
  import { Subscription } from 'rxjs';
4
- import { IconSize } from '../../models/iconSize.enum';
5
4
  import { AttachedFileDTO } from '../../models/types/attached-file-dto.model';
5
+ import { IconSizePx } from '../icon/iconSize.enum';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class FileInputComponent implements ControlValueAccessor, OnInit {
8
8
  formBuilder: UntypedFormBuilder;
@@ -20,7 +20,7 @@ export declare class FileInputComponent implements ControlValueAccessor, OnInit
20
20
  form: UntypedFormGroup;
21
21
  subscriptions: Subscription[];
22
22
  newImageLoading: boolean;
23
- IconSize: typeof IconSize;
23
+ IconSizePx: typeof IconSizePx;
24
24
  formDataChanged: EventEmitter<UntypedFormGroup>;
25
25
  /**
26
26
  * Constructor
@@ -22,8 +22,14 @@ export declare class IconComponent implements OnInit {
22
22
  iconStyle: any;
23
23
  /**
24
24
  * Optional: Different size via CSS inline style.
25
+ * @deprecated. Please use size instead
25
26
  */
26
27
  iconSize: IconSize;
28
+ /**
29
+ * Optional: Different size via CSS inline style.
30
+ * @deprecated. Please use size instead
31
+ */
32
+ size?: string;
27
33
  /**
28
34
  * Dont use icon sprite
29
35
  */
@@ -38,5 +44,5 @@ export declare class IconComponent implements OnInit {
38
44
  constructor(sanitizer: DomSanitizer);
39
45
  ngOnInit(): void;
40
46
  static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "kms-icon", never, { "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconStyle": { "alias": "iconStyle"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "dontUseSprite": { "alias": "dontUseSprite"; "required": false; }; }, {}, never, never, false, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "kms-icon", never, { "icon": { "alias": "icon"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconStyle": { "alias": "iconStyle"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "size": { "alias": "size"; "required": false; }; "dontUseSprite": { "alias": "dontUseSprite"; "required": false; }; }, {}, never, never, false, never>;
42
48
  }
@@ -13,3 +13,13 @@ export declare enum IconSize {
13
13
  XXXL = "size-1024",
14
14
  NONE = "NONE"
15
15
  }
16
+ export declare enum IconSizePx {
17
+ TINY = 16,
18
+ SMALLER = 20,
19
+ SMALL = 32,
20
+ MEDIUM = 64,
21
+ LARGE = 128,
22
+ XL = 256,
23
+ XXL = 512,
24
+ XXXL = 1024
25
+ }
@@ -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, { "itemTitle": { "alias": "itemTitle"; "required": false; }; "showAsCard": { "alias": "showAsCard"; "required": false; }; "isSmall": { "alias": "isSmall"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; }, {}, never, ["[itemTitleElement]", "*"], false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<KMSAccordionItemComponent, "kms-accordion-item", never, { "showAsCard": { "alias": "showAsCard"; "required": false; }; "isSmall": { "alias": "isSmall"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "itemTitle": { "alias": "itemTitle"; "required": false; }; }, {}, never, ["[itemTitleElement]", "*"], false, never>;
22
22
  }
@@ -11,6 +11,7 @@ export declare class RadioButtonComponent extends ActionsParentComponent impleme
11
11
  * Internal description id. Will be send in the output event when the radio button is selected.
12
12
  */
13
13
  id: string;
14
+ radioButtonSize: number;
14
15
  formControl: any;
15
16
  selectAction(id: string): void;
16
17
  constructor();
@@ -22,5 +23,5 @@ export declare class RadioButtonComponent extends ActionsParentComponent impleme
22
23
  registerOnChange(fn: any): void;
23
24
  registerOnTouched(fn: any): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "kms-radiobutton", never, { "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; }, {}, never, ["*"], false, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "kms-radiobutton", never, { "name": { "alias": "name"; "required": false; }; "id": { "alias": "id"; "required": false; }; "radioButtonSize": { "alias": "radioButtonSize"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; }, {}, never, ["*"], false, never>;
26
27
  }
@@ -1,4 +1,4 @@
1
- import { IconSize } from '../../models';
1
+ import { IconSizePx } from '../icon/iconSize.enum';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TooltipIconComponent {
4
4
  tooltipTitle: string;
@@ -7,7 +7,7 @@ export declare class TooltipIconComponent {
7
7
  tooltipLinkUrl: string;
8
8
  placement: string;
9
9
  delay: number;
10
- IconSize: typeof IconSize;
10
+ IconSizePx: typeof IconSizePx;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<TooltipIconComponent, never>;
12
12
  static ɵcmp: i0.ɵɵComponentDeclaration<TooltipIconComponent, "kms-tooltip-icon", never, { "tooltipTitle": { "alias": "tooltipTitle"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipLinkText": { "alias": "tooltipLinkText"; "required": false; }; "tooltipLinkUrl": { "alias": "tooltipLinkUrl"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; }, {}, never, never, false, never>;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kms-ngx-ui/presentational",
3
- "version": "16.3.1",
3
+ "version": "16.3.3",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "16.2.12",
6
6
  "@angular/common": "16.2.12",
package/public-api.d.ts CHANGED
@@ -1,45 +1,45 @@
1
- export * from './lib/kms-ngx-ui-presentational.service';
1
+ export * from './lib/directives/directives.module';
2
+ export * from './lib/directives/size.directive';
2
3
  export * from './lib/kms-ngx-ui-presentational.component';
3
4
  export * from './lib/kms-ngx-ui-presentational.module';
5
+ export * from './lib/kms-ngx-ui-presentational.service';
4
6
  export * from './lib/pipes/custom-pipes.module';
5
- export * from './lib/directives/directives.module';
6
7
  export * from './lib/models/iconSize.enum';
7
8
  export * from './lib/models/salutation.enum';
9
+ export * from './lib/ui/back-to-top/back-to-top.component';
10
+ export * from './lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component';
8
11
  export * from './lib/ui/checkbox/checkbox.component';
9
12
  export * from './lib/ui/color-input/color-input.component';
10
- export * from './lib/ui/radiobutton/radiobutton.component';
11
- export * from './lib/ui/time-input/time-input.component';
12
- export * from './lib/ui/yes-no-radiogroup/yes-no-radiogroup.component';
13
+ export * from './lib/ui/dropdown-from-data/dropdown-from-data.component';
14
+ export * from './lib/ui/enum-radiogroup/enum-radiogroup.component';
13
15
  export * from './lib/ui/file-input/file-input.component';
14
- export * from './lib/ui/loader/loader.component';
15
16
  export * from './lib/ui/flyout/flyout.component';
16
17
  export * from './lib/ui/icon/icon.component';
17
- export * from './lib/ui/enum-radiogroup/enum-radiogroup.component';
18
+ export * from './lib/ui/image-slider/image-slider.component';
18
19
  export * from './lib/ui/kms-accordion-item/kms-accordion-item.component';
20
+ export * from './lib/ui/loader/loader.component';
19
21
  export * from './lib/ui/map/map.component';
22
+ export * from './lib/ui/radiobutton/radiobutton.component';
20
23
  export * from './lib/ui/salutation-dropdown/salutation-dropdown.component';
21
- export * from './lib/ui/tooltip/tooltip.component';
22
- export * from './lib/ui/tooltip-icon/tooltip-icon.component';
23
24
  export * from './lib/ui/salutation-radiogroup/salutation-radiogroup.component';
24
- export * from './lib/ui/back-to-top/back-to-top.component';
25
- export * from './lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component';
26
- export * from './lib/ui/dropdown-from-data/dropdown-from-data.component';
27
- export * from './lib/ui/image-slider/image-slider.component';
25
+ export * from './lib/ui/time-input/time-input.component';
26
+ export * from './lib/ui/tooltip-icon/tooltip-icon.component';
27
+ export * from './lib/ui/yes-no-radiogroup/yes-no-radiogroup.component';
28
28
  export * from './lib/directives/mousewheel.directive';
29
29
  export * from './lib/directives/sum-of-height.directive';
30
30
  export * from './lib/directives/swipe.directive';
31
31
  export * from './lib/directives/tooltip.directive';
32
- export * from './lib/pipes/integer-currency.pipe';
33
32
  export * from './lib/pipes/decode-uri.pipe';
34
33
  export * from './lib/pipes/encode-uri.pipe';
34
+ export * from './lib/pipes/integer-currency.pipe';
35
35
  export * from './lib/pipes/safe-html.pipe';
36
- export * from './lib/pipes/safe-url.pipe';
37
36
  export * from './lib/pipes/safe-resource-url.pipe';
38
- export * from './lib/pipes/typeof.pipe';
39
- export * from './lib/pipes/trim.pipe';
40
- export * from './lib/pipes/to-number.pipe';
41
37
  export * from './lib/pipes/safe-style.pipe';
38
+ export * from './lib/pipes/safe-url.pipe';
39
+ export * from './lib/pipes/to-number.pipe';
40
+ export * from './lib/pipes/trim.pipe';
41
+ export * from './lib/pipes/typeof.pipe';
42
42
  export * from './lib/parent-components/actions.component';
43
- export * from './lib/ui/generic-dialog/generic-dialog.component';
44
- export * from './lib/services/viewport.service';
45
43
  export * from './lib/parent-components/form.component';
44
+ export * from './lib/services/viewport.service';
45
+ export * from './lib/ui/generic-dialog/generic-dialog.component';
@@ -11,15 +11,14 @@
11
11
  cursor: pointer;
12
12
  align-items: center;
13
13
  z-index: 999999;
14
- background-color: white;
15
14
  border-radius: 50%;
16
15
 
17
16
  width: $size;
18
17
  height: $size;
19
18
  &-inner{
20
- margin: 2px;
21
19
  border-radius: 50%;
22
20
  background-color: var(--primaryColor);
21
+ border: 2px solid white;
23
22
 
24
23
  width: calc(#{$size} - 4px);
25
24
  height: calc(#{$size} - 4px);
@@ -31,7 +30,7 @@
31
30
  }
32
31
 
33
32
  }
34
- @media (max-width: $responsive-breakpoint) {
33
+ @media (max-width: $responsive-breakpoint-l) {
35
34
  .scrollToTop {
36
35
  bottom: calc(#{$size} / 2);
37
36
  right: calc(#{$size} / 2);
@@ -62,8 +62,8 @@
62
62
  &-primary svg use{
63
63
  fill: var(--primaryColor);
64
64
  }
65
- &-secondary svg use{
66
- fill: var(--primaryColor);
65
+ &-accent svg use{
66
+ fill: var(--accentColor);
67
67
  }
68
68
  &-disabled svg use{
69
69
  fill: var(--gray04);
@@ -111,39 +111,5 @@
111
111
  pointer-events: none;
112
112
  }
113
113
 
114
- &.is-rotating45 {
115
- animation-name: spinanimation;
116
- animation-duration: 3000ms;
117
- transform: rotate(45deg);
118
- }
119
-
120
- &.is-rotating90 {
121
- animation-name: spinanimation;
122
- animation-duration: 3000ms;
123
- transform: rotate(90deg);
124
- }
125
-
126
- &.is-rotating180 {
127
- animation-name: spinanimation180;
128
- animation-duration: 3000ms;
129
- }
130
-
131
- &.is-rotating45Anti {
132
- animation-name: spinanimation;
133
- animation-duration: 3000ms;
134
- transform: rotate(-45deg);
135
- }
136
-
137
- &.is-rotating90Anti {
138
- animation-name: spinanimation;
139
- animation-duration: 3000ms;
140
- transform: rotate(-90deg);
141
- }
142
-
143
- &.is-rotating180Anti {
144
- animation-name: spinanimation;
145
- animation-duration: 3000ms;
146
- transform: rotate(-180deg);
147
- }
148
114
  }
149
115
  }