@kms-ngx-ui/presentational 0.0.22 → 0.0.24
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/bundles/kms-ngx-ui-presentational.umd.js +281 -173
- package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -1
- package/esm2015/lib/directives/directives.module.js +8 -3
- package/esm2015/lib/directives/size.directive.js +21 -0
- package/esm2015/lib/kms-ngx-ui-presentational.component.js +9 -9
- package/esm2015/lib/kms-ngx-ui-presentational.service.js +1 -1
- package/esm2015/lib/models/address.model.js +1 -1
- package/esm2015/lib/models/iconSize.enum.js +1 -1
- package/esm2015/lib/models/index.js +1 -1
- package/esm2015/lib/models/is-value.function.js +1 -1
- package/esm2015/lib/models/salutation.enum.js +1 -1
- package/esm2015/lib/models/types/attached-file-dto.model.js +1 -1
- package/esm2015/lib/models/types/nullable.type.js +1 -1
- package/esm2015/lib/parent-components/actions.component.js +1 -1
- package/esm2015/lib/parent-components/colorable.component.js +35 -0
- package/esm2015/lib/parent-components/form-control.component.js +4 -3
- package/esm2015/lib/parent-components/form.component.js +36 -15
- package/esm2015/lib/pipes/decode-uri.pipe.js +1 -1
- package/esm2015/lib/pipes/encode-uri.pipe.js +1 -1
- package/esm2015/lib/pipes/integer-currency.pipe.js +1 -1
- package/esm2015/lib/pipes/safe-html.pipe.js +1 -1
- package/esm2015/lib/pipes/safe-style.pipe.js +1 -1
- package/esm2015/lib/pipes/to-number.pipe.js +1 -1
- package/esm2015/lib/pipes/trim.pipe.js +1 -1
- package/esm2015/lib/pipes/typeof.pipe.js +1 -1
- package/esm2015/lib/services/viewport.service.js +66 -40
- package/esm2015/lib/ui/back-to-top/back-to-top.component.js +2 -2
- package/esm2015/lib/ui/button-with-confirm-dialog/button-response-types.enum.js +1 -1
- package/esm2015/lib/ui/button-with-confirm-dialog/button-with-confirm-dialog.component.js +2 -2
- package/esm2015/lib/ui/button-with-confirm-dialog/dialog-data.model.js +1 -1
- package/esm2015/lib/ui/checkbox/checkbox.component.js +2 -2
- package/esm2015/lib/ui/dropdown-from-data/dropdown-from-data.component.js +23 -19
- package/esm2015/lib/ui/enum-radiogroup/enum-radiogroup.component.js +2 -2
- package/esm2015/lib/ui/file-input/file-input.component.js +6 -6
- package/esm2015/lib/ui/flyout/flyout.component.js +5 -4
- package/esm2015/lib/ui/generic-dialog/generic-dialog.component.js +2 -2
- package/esm2015/lib/ui/icon/icon.component.js +5 -2
- package/esm2015/lib/ui/icon/iconSize.enum.js +12 -1
- package/esm2015/lib/ui/image-slider/image-slider.component.js +1 -1
- package/esm2015/lib/ui/kms-accordion-item/kms-accordion-item.component.js +1 -1
- package/esm2015/lib/ui/loader/loader.component.js +2 -2
- package/esm2015/lib/ui/map/map.component.js +2 -21
- package/esm2015/lib/ui/radiobutton/radiobutton.component.js +7 -3
- package/esm2015/lib/ui/salutation-dropdown/salutation-dropdown.component.js +2 -2
- package/esm2015/lib/ui/salutation-radiogroup/salutation-radiogroup.component.js +2 -2
- package/esm2015/lib/ui/time-input/time-input.component.js +1 -1
- package/esm2015/lib/ui/tooltip/tooltip.component.js +1 -1
- package/esm2015/lib/ui/tooltip-icon/tooltip-icon.component.js +5 -4
- package/esm2015/lib/ui/yes-no-radiogroup/yes-no-radiogroup.component.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/fesm2015/kms-ngx-ui-presentational.js +275 -171
- package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
- package/lib/directives/directives.module.d.ts +4 -2
- package/lib/directives/size.directive.d.ts +10 -0
- package/lib/parent-components/colorable.component.d.ts +10 -0
- package/lib/parent-components/form.component.d.ts +11 -5
- package/lib/services/viewport.service.d.ts +13 -4
- package/lib/ui/dropdown-from-data/dropdown-from-data.component.d.ts +2 -1
- package/lib/ui/file-input/file-input.component.d.ts +2 -2
- package/lib/ui/icon/icon.component.d.ts +7 -1
- package/lib/ui/icon/iconSize.enum.d.ts +10 -0
- package/lib/ui/map/map.component.d.ts +0 -4
- package/lib/ui/radiobutton/radiobutton.component.d.ts +2 -1
- package/lib/ui/tooltip-icon/tooltip-icon.component.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/ui/back-to-top/back-to-top.component.scss +2 -3
- package/src/lib/ui/icon/icon.component.scss +2 -36
- package/src/styles/animations.scss +47 -0
- package/src/styles/mixins.scss +8 -8
- package/src/styles/styles.scss +1 -0
|
@@ -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 "
|
|
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
|
|
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": "size"; }, {}, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ColorableParentComponent {
|
|
3
|
+
/**
|
|
4
|
+
* Defines the color property
|
|
5
|
+
*/
|
|
6
|
+
color?: string;
|
|
7
|
+
setupColors(elementRef: HTMLElement): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColorableParentComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColorableParentComponent, "ng-component", never, { "color": "color"; }, {}, never, never>;
|
|
10
|
+
}
|
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @copyright FLYACTS GmbH 2019
|
|
3
3
|
*/
|
|
4
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
4
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
6
|
+
import { SubSink } from 'subsink';
|
|
7
|
+
import { ColorableParentComponent } from './colorable.component';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FormParentComponent implements OnInit {
|
|
9
|
+
export declare class FormParentComponent extends ColorableParentComponent implements OnInit, OnDestroy {
|
|
8
10
|
formBuilder: FormBuilder;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
showRequired: boolean;
|
|
9
13
|
form: FormGroup;
|
|
10
14
|
formInitialized: boolean;
|
|
11
15
|
private allowedCharsOnlyNumbers;
|
|
16
|
+
subs: SubSink;
|
|
12
17
|
formDataChanged: EventEmitter<FormGroup>;
|
|
13
|
-
disabled: boolean;
|
|
14
18
|
constructor(formBuilder: FormBuilder);
|
|
15
19
|
/**
|
|
16
20
|
* Returns if a number was pressed
|
|
17
21
|
* @param e
|
|
18
22
|
* @returns
|
|
19
23
|
*/
|
|
20
|
-
checkIfKeyWasNumber(e: KeyboardEvent, allowDelete?: boolean, allowArrows?: boolean, allowCutCopyPaste?: boolean): boolean;
|
|
24
|
+
checkIfKeyWasNumber(e: KeyboardEvent, allowDelete?: boolean, allowArrows?: boolean, allowCutCopyPaste?: boolean): boolean | 9;
|
|
21
25
|
/**
|
|
22
26
|
* Prevents to input other chars than numbers in input
|
|
23
27
|
* @param event
|
|
@@ -29,6 +33,8 @@ export declare class FormParentComponent implements OnInit {
|
|
|
29
33
|
*/
|
|
30
34
|
removeNumbersOnPaste(event: ClipboardEvent): void;
|
|
31
35
|
ngOnInit(): void;
|
|
36
|
+
ngOnDestroy(): void;
|
|
37
|
+
initFormEvent(): void;
|
|
32
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormParentComponent, never>;
|
|
33
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormParentComponent, "kms-form", never, { "disabled": "disabled"; }, { "formDataChanged": "formDataChanged"; }, never, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormParentComponent, "kms-form", never, { "disabled": "disabled"; "showRequired": "showRequired"; }, { "formDataChanged": "formDataChanged"; }, never, never>;
|
|
34
40
|
}
|
|
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class ViewportService implements OnDestroy {
|
|
8
8
|
private platformId;
|
|
9
|
+
document: Document;
|
|
9
10
|
readonly viewports: {
|
|
10
11
|
name: string;
|
|
11
12
|
low: number;
|
|
@@ -14,7 +15,8 @@ export declare class ViewportService implements OnDestroy {
|
|
|
14
15
|
private viewportChangedSubscriber;
|
|
15
16
|
private viewportResizedSubscriber;
|
|
16
17
|
private currentViewport;
|
|
17
|
-
|
|
18
|
+
private isBrowser;
|
|
19
|
+
constructor(platformId: Object, document: Document);
|
|
18
20
|
/**
|
|
19
21
|
* Get window height
|
|
20
22
|
*/
|
|
@@ -36,6 +38,11 @@ export declare class ViewportService implements OnDestroy {
|
|
|
36
38
|
* @returns string
|
|
37
39
|
*/
|
|
38
40
|
getCurrentViewPort(): string;
|
|
41
|
+
/**
|
|
42
|
+
* Returns the current viewport MQ as string
|
|
43
|
+
* @returns string
|
|
44
|
+
*/
|
|
45
|
+
getCurrentViewPortNumber(): number;
|
|
39
46
|
/**
|
|
40
47
|
* Provides mq´s as string
|
|
41
48
|
*/
|
|
@@ -56,7 +63,10 @@ export declare class ViewportService implements OnDestroy {
|
|
|
56
63
|
* @param top - top position value
|
|
57
64
|
*/
|
|
58
65
|
scrollTop(top: number): void;
|
|
59
|
-
|
|
66
|
+
isPortrait(): boolean;
|
|
67
|
+
isLandscape(): boolean;
|
|
68
|
+
isMobile(): boolean;
|
|
69
|
+
calculateFullscreenElementsheight(id: string, defaultheight: string, extra: number): string;
|
|
60
70
|
/**
|
|
61
71
|
* If viewport changed
|
|
62
72
|
* @event
|
|
@@ -67,8 +77,7 @@ export declare class ViewportService implements OnDestroy {
|
|
|
67
77
|
* @param width Width to get the according MQ for
|
|
68
78
|
*/
|
|
69
79
|
private convertWidthToMediaQuery;
|
|
70
|
-
|
|
71
|
-
isLandscape(): boolean;
|
|
80
|
+
ngOnDestroy(): void;
|
|
72
81
|
static ɵfac: i0.ɵɵFactoryDeclaration<ViewportService, never>;
|
|
73
82
|
static ɵprov: i0.ɵɵInjectableDeclaration<ViewportService>;
|
|
74
83
|
}
|
|
@@ -19,6 +19,7 @@ export declare class DropdownFromDataComponent extends FormControlParentComponen
|
|
|
19
19
|
label: string;
|
|
20
20
|
required: boolean;
|
|
21
21
|
useEnumIndexAsValue: boolean;
|
|
22
|
+
multiple: boolean;
|
|
22
23
|
keys: any[];
|
|
23
24
|
values: any[];
|
|
24
25
|
Object: ObjectConstructor;
|
|
@@ -41,7 +42,7 @@ export declare class DropdownFromDataComponent extends FormControlParentComponen
|
|
|
41
42
|
setDisplayKey(key: any): any;
|
|
42
43
|
valueChanged(value: any): void;
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownFromDataComponent, never>;
|
|
44
|
-
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"; }, {}, never, 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>;
|
|
45
46
|
}
|
|
46
47
|
/**
|
|
47
48
|
* Interface that defines the translation object in template
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { OnInit, Renderer2, EventEmitter, ApplicationRef, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor, FormBuilder, FormControl, FormGroup } 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: FormBuilder;
|
|
@@ -20,7 +20,7 @@ export declare class FileInputComponent implements ControlValueAccessor, OnInit
|
|
|
20
20
|
form: FormGroup;
|
|
21
21
|
subscriptions: Subscription[];
|
|
22
22
|
newImageLoading: boolean;
|
|
23
|
-
|
|
23
|
+
IconSizePx: typeof IconSizePx;
|
|
24
24
|
formDataChanged: EventEmitter<FormGroup>;
|
|
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": "icon"; "iconClass": "iconClass"; "iconStyle": "iconStyle"; "iconSize": "iconSize"; "dontUseSprite": "dontUseSprite"; }, {}, never, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "kms-icon", never, { "icon": "icon"; "iconClass": "iconClass"; "iconStyle": "iconStyle"; "iconSize": "iconSize"; "size": "size"; "dontUseSprite": "dontUseSprite"; }, {}, never, never>;
|
|
42
48
|
}
|
|
@@ -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": "name"; "id": "id"; "formControl": "formControl"; }, {}, never, ["*"]>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "kms-radiobutton", never, { "name": "name"; "id": "id"; "radioButtonSize": "radioButtonSize"; "formControl": "formControl"; }, {}, never, ["*"]>;
|
|
26
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
10
|
+
IconSizePx: typeof IconSizePx;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipIconComponent, never>;
|
|
12
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipIconComponent, "kms-tooltip-icon", never, { "tooltipTitle": "tooltipTitle"; "tooltipText": "tooltipText"; "tooltipLinkText": "tooltipLinkText"; "tooltipLinkUrl": "tooltipLinkUrl"; "placement": "placement"; "delay": "delay"; }, {}, never, never>;
|
|
13
13
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './lib/kms-ngx-ui-presentational.component';
|
|
|
3
3
|
export * from './lib/kms-ngx-ui-presentational.module';
|
|
4
4
|
export * from './lib/pipes/custom-pipes.module';
|
|
5
5
|
export * from './lib/directives/directives.module';
|
|
6
|
+
export * from './lib/directives/size.directive';
|
|
6
7
|
export * from './lib/models/iconSize.enum';
|
|
7
8
|
export * from './lib/models/salutation.enum';
|
|
8
9
|
export * from './lib/ui/checkbox/checkbox.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
|
-
&-
|
|
66
|
-
fill: var(--
|
|
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
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Animations for element
|
|
2
|
+
@keyframes spinanimation {
|
|
3
|
+
from {
|
|
4
|
+
transform: rotate(0deg);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
to {
|
|
8
|
+
transform: rotate(360deg);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.is-rotating{
|
|
13
|
+
&45 {
|
|
14
|
+
animation-name: spinanimation;
|
|
15
|
+
animation-duration: 3000ms;
|
|
16
|
+
transform: rotate(45deg);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&90 {
|
|
20
|
+
animation-name: spinanimation;
|
|
21
|
+
animation-duration: 3000ms;
|
|
22
|
+
transform: rotate(90deg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&180 {
|
|
26
|
+
animation-name: spinanimation180;
|
|
27
|
+
animation-duration: 3000ms;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&45Anti {
|
|
31
|
+
animation-name: spinanimation;
|
|
32
|
+
animation-duration: 3000ms;
|
|
33
|
+
transform: rotate(-45deg);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&90Anti {
|
|
37
|
+
animation-name: spinanimation;
|
|
38
|
+
animation-duration: 3000ms;
|
|
39
|
+
transform: rotate(-90deg);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&180Anti {
|
|
43
|
+
animation-name: spinanimation;
|
|
44
|
+
animation-duration: 3000ms;
|
|
45
|
+
transform: rotate(-180deg);
|
|
46
|
+
}
|
|
47
|
+
}
|
package/src/styles/mixins.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@mixin iconSize($width: 32px) {
|
|
2
|
-
width: $width;
|
|
3
|
-
height: $width;
|
|
4
|
-
use, svg, g, span{
|
|
5
|
-
width: $width;
|
|
6
|
-
height: $width;
|
|
7
|
-
font-size: $width;
|
|
8
|
-
}
|
|
1
|
+
@mixin iconSize($width: 32px) {
|
|
2
|
+
width: $width;
|
|
3
|
+
height: $width;
|
|
4
|
+
use, svg, g, span{
|
|
5
|
+
width: $width;
|
|
6
|
+
height: $width;
|
|
7
|
+
font-size: $width;
|
|
8
|
+
}
|
|
9
9
|
}
|