ngx-sfc-common 0.0.6 → 0.0.7
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/components/button/button.component.mjs +2 -2
- package/esm2020/lib/components/checkmark/checkmark.component.mjs +2 -2
- package/esm2020/lib/components/close/close.component.mjs +2 -2
- package/esm2020/lib/components/delimeter/delimeter.component.mjs +14 -5
- package/esm2020/lib/components/dots/dots.component.mjs +2 -2
- package/esm2020/lib/components/hamburger/default/hamburger.component.mjs +12 -0
- package/esm2020/lib/components/hamburger/hamburger-base.component.mjs +23 -0
- package/esm2020/lib/components/hamburger/menu/hamburger-menu.component.mjs +18 -0
- package/esm2020/lib/components/icon/icon.component.mjs +21 -0
- package/esm2020/lib/components/index.mjs +4 -2
- package/esm2020/lib/components/load-more-button/load-more-button.component.mjs +2 -2
- package/esm2020/lib/components/pagination/pagination.component.mjs +2 -2
- package/esm2020/lib/components/sorting/sorting.component.mjs +2 -2
- package/esm2020/lib/constants/ui.constants.mjs +2 -1
- package/esm2020/lib/enums/media.enum.mjs +7 -4
- package/esm2020/lib/ngx-sfc-common.module.mjs +10 -2
- package/fesm2015/ngx-sfc-common.mjs +86 -28
- package/fesm2015/ngx-sfc-common.mjs.map +1 -1
- package/fesm2020/ngx-sfc-common.mjs +86 -28
- package/fesm2020/ngx-sfc-common.mjs.map +1 -1
- package/lib/components/delimeter/delimeter.component.d.ts +3 -1
- package/lib/components/hamburger/default/hamburger.component.d.ts +6 -0
- package/lib/components/hamburger/hamburger-base.component.d.ts +7 -0
- package/lib/components/hamburger/menu/hamburger-menu.component.d.ts +7 -0
- package/lib/components/icon/icon.component.d.ts +9 -0
- package/lib/components/index.d.ts +3 -1
- package/lib/constants/ui.constants.d.ts +1 -0
- package/lib/enums/media.enum.d.ts +6 -3
- package/lib/ngx-sfc-common.module.d.ts +20 -18
- package/package.json +1 -1
- package/styles/_colors.scss +48 -0
- package/styles/_index.scss +2 -0
- package/styles/_mixins.scss +48 -0
- package/styles/_variables.scss +7 -0
- package/styles/themes/_dark.scss +17 -0
- package/styles/themes/_default.scss +18 -0
- package/styles/themes/_yellow.scss +3 -0
- package/_ngx-sfc-common.styles.scss +0 -121
- package/esm2020/lib/components/hamburger/hamburger.component.mjs +0 -24
- package/lib/components/hamburger/hamburger.component.d.ts +0 -7
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Direction } from '../../enums';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DelimeterComponent {
|
|
4
|
+
direction: Direction;
|
|
3
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DelimeterComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DelimeterComponent, "sfc-delimeter", never, {}, {}, never, never, false, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DelimeterComponent, "sfc-delimeter", never, { "direction": "direction"; }, {}, never, never, false, never>;
|
|
5
7
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HamburgerBaseComponent } from '../hamburger-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HamburgerComponent extends HamburgerBaseComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HamburgerComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HamburgerComponent, "sfc-hamburger", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare abstract class HamburgerBaseComponent {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClick: () => boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HamburgerBaseComponent, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HamburgerBaseComponent, never, never, { "open": "open"; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HamburgerBaseComponent } from '../hamburger-base.component';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HamburgerMenuComponent extends HamburgerBaseComponent {
|
|
4
|
+
label: string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HamburgerMenuComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HamburgerMenuComponent, "sfc-hamburger-menu", never, { "label": "label"; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IconComponent {
|
|
4
|
+
icon?: IconDefinition;
|
|
5
|
+
imageSrc?: string;
|
|
6
|
+
get showImage(): boolean;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "sfc-icon", never, { "icon": "icon"; "imageSrc": "imageSrc"; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -17,7 +17,8 @@ export { DefaultModalFooterComponent } from './modal/footer/default/default-moda
|
|
|
17
17
|
export { IDefaultModalFooterModel } from './modal/footer/default/default-modal-footer.model';
|
|
18
18
|
export { IDefaultModalHeaderModel } from './modal/header/default/default-modal-header.model';
|
|
19
19
|
export { ModalTemplate } from './modal/modal-template.enum';
|
|
20
|
-
export { HamburgerComponent } from './hamburger/hamburger.component';
|
|
20
|
+
export { HamburgerComponent } from './hamburger/default/hamburger.component';
|
|
21
|
+
export { HamburgerMenuComponent } from './hamburger/menu/hamburger-menu.component';
|
|
21
22
|
export { DotsComponent } from './dots/dots.component';
|
|
22
23
|
export { ToggleSwitcherComponent } from './toggle-switcher/toggle-switcher.component';
|
|
23
24
|
export { IToggleSwitcherModel } from './toggle-switcher/toggle-switcher.model';
|
|
@@ -38,3 +39,4 @@ export { LoadContainerType } from './load-container/load-container.enum';
|
|
|
38
39
|
export { LoaderFunction, FilterFunction, ILoadContainerModel } from './load-container/models/load-container.model';
|
|
39
40
|
export { ILoadMoreParameters } from './load-container/models/load-more-parameters.model';
|
|
40
41
|
export { ILoadMoreModel } from './load-container/models/load-more.model';
|
|
42
|
+
export { IconComponent } from './icon/icon.component';
|
|
@@ -16,25 +16,27 @@ import * as i14 from "./components/toggle-switcher/toggle-switcher.component";
|
|
|
16
16
|
import * as i15 from "./components/checkmark/checkmark.component";
|
|
17
17
|
import * as i16 from "./components/template-content/template-content.component";
|
|
18
18
|
import * as i17 from "./components/close/close.component";
|
|
19
|
-
import * as i18 from "./components/hamburger/hamburger.component";
|
|
20
|
-
import * as i19 from "./components/
|
|
21
|
-
import * as i20 from "./components/
|
|
22
|
-
import * as i21 from "./components/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/load-
|
|
25
|
-
import * as i24 from "./components/
|
|
26
|
-
import * as i25 from "./components/
|
|
27
|
-
import * as i26 from "./components/
|
|
28
|
-
import * as i27 from "./components/
|
|
29
|
-
import * as i28 from "./components/modal/
|
|
30
|
-
import * as i29 from "./components/modal/
|
|
31
|
-
import * as i30 from "./components/modal/
|
|
32
|
-
import * as i31 from "./
|
|
33
|
-
import * as i32 from "
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "@
|
|
19
|
+
import * as i18 from "./components/hamburger/default/hamburger.component";
|
|
20
|
+
import * as i19 from "./components/hamburger/menu/hamburger-menu.component";
|
|
21
|
+
import * as i20 from "./components/dots/dots.component";
|
|
22
|
+
import * as i21 from "./components/pagination/pagination.component";
|
|
23
|
+
import * as i22 from "./components/sorting/sorting.component";
|
|
24
|
+
import * as i23 from "./components/load-more-button/load-more-button.component";
|
|
25
|
+
import * as i24 from "./components/load-container/load-container.component";
|
|
26
|
+
import * as i25 from "./components/icon/icon.component";
|
|
27
|
+
import * as i26 from "./components/loader/bounce/bounce-loader.component";
|
|
28
|
+
import * as i27 from "./components/loader/circle/circle-loader.component";
|
|
29
|
+
import * as i28 from "./components/modal/modal.component";
|
|
30
|
+
import * as i29 from "./components/modal/directive/open/modal-open.directive";
|
|
31
|
+
import * as i30 from "./components/modal/directive/click/modal-open-on-click.directive";
|
|
32
|
+
import * as i31 from "./components/modal/header/default/default-modal-header.component";
|
|
33
|
+
import * as i32 from "./components/modal/footer/default/default-modal-footer.component";
|
|
34
|
+
import * as i33 from "./pipes/switch-multi-case/switch-multi-case.pipe";
|
|
35
|
+
import * as i34 from "@angular/common";
|
|
36
|
+
import * as i35 from "@angular/platform-browser/animations";
|
|
37
|
+
import * as i36 from "@fortawesome/angular-fontawesome";
|
|
36
38
|
export declare class NgxSfcCommonModule {
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxSfcCommonModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSfcCommonModule, [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.ThrowElementOnHoverDirective, typeof i4.TemplateReferenceDirective, typeof i5.MouseDownDirective, typeof i6.ComponentSizeDirective, typeof i7.DestroyParentDirective, typeof i8.DomChangesDirective, typeof i9.ScrollTrackerDirective, typeof i10.ScrollIntoViewDirective, typeof i11.ButtonComponent, typeof i12.TooltipComponent, typeof i13.DelimeterComponent, typeof i14.ToggleSwitcherComponent, typeof i15.CheckmarkComponent, typeof i16.TemplateContentComponent, typeof i17.CloseComponent, typeof i18.HamburgerComponent, typeof i19.
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxSfcCommonModule, [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.ThrowElementOnHoverDirective, typeof i4.TemplateReferenceDirective, typeof i5.MouseDownDirective, typeof i6.ComponentSizeDirective, typeof i7.DestroyParentDirective, typeof i8.DomChangesDirective, typeof i9.ScrollTrackerDirective, typeof i10.ScrollIntoViewDirective, typeof i11.ButtonComponent, typeof i12.TooltipComponent, typeof i13.DelimeterComponent, typeof i14.ToggleSwitcherComponent, typeof i15.CheckmarkComponent, typeof i16.TemplateContentComponent, typeof i17.CloseComponent, typeof i18.HamburgerComponent, typeof i19.HamburgerMenuComponent, typeof i20.DotsComponent, typeof i21.PaginationComponent, typeof i22.SortingComponent, typeof i23.LoadMoreButtonComponent, typeof i24.LoadContainerComponent, typeof i25.IconComponent, typeof i26.BounceLoaderComponent, typeof i27.CircleLoaderComponent, typeof i28.ModalComponent, typeof i29.ModalOpenDirective, typeof i30.ModalOpenOnClickDirective, typeof i31.DefaultModalHeaderComponent, typeof i32.DefaultModalFooterComponent, typeof i33.SwitchMultiCasePipe], [typeof i34.CommonModule, typeof i35.BrowserAnimationsModule, typeof i36.FontAwesomeModule], [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.ThrowElementOnHoverDirective, typeof i4.TemplateReferenceDirective, typeof i5.MouseDownDirective, typeof i6.ComponentSizeDirective, typeof i7.DestroyParentDirective, typeof i8.DomChangesDirective, typeof i9.ScrollTrackerDirective, typeof i10.ScrollIntoViewDirective, typeof i11.ButtonComponent, typeof i12.TooltipComponent, typeof i13.DelimeterComponent, typeof i17.CloseComponent, typeof i15.CheckmarkComponent, typeof i16.TemplateContentComponent, typeof i14.ToggleSwitcherComponent, typeof i20.DotsComponent, typeof i18.HamburgerComponent, typeof i19.HamburgerMenuComponent, typeof i21.PaginationComponent, typeof i22.SortingComponent, typeof i23.LoadMoreButtonComponent, typeof i24.LoadContainerComponent, typeof i25.IconComponent, typeof i26.BounceLoaderComponent, typeof i27.CircleLoaderComponent, typeof i28.ModalComponent, typeof i29.ModalOpenDirective, typeof i30.ModalOpenOnClickDirective, typeof i31.DefaultModalHeaderComponent, typeof i32.DefaultModalFooterComponent, typeof i33.SwitchMultiCasePipe]>;
|
|
39
41
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgxSfcCommonModule>;
|
|
40
42
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// colors
|
|
2
|
+
$color-0: #fff !default;
|
|
3
|
+
$color-1: #f6f6f6 !default;
|
|
4
|
+
$color-2: #f5f7fa !default;
|
|
5
|
+
$color-3: #e6e9ed !default;
|
|
6
|
+
$color-4: #e9e9e9 !default;
|
|
7
|
+
$color-5: #d8d7d7 !default;
|
|
8
|
+
$color-6: #ccd1d9 !default;
|
|
9
|
+
$color-7: #aab2bd !default;
|
|
10
|
+
$color-8: #656d78 !default;
|
|
11
|
+
$color-9: #434a54 !default;
|
|
12
|
+
$color-10: #34323d !default;
|
|
13
|
+
$color-11: #1b1d1f !default;
|
|
14
|
+
|
|
15
|
+
// shades
|
|
16
|
+
$color-shadow-0: #00000005 !default;
|
|
17
|
+
$color-shadow-1: #0000001a !default;
|
|
18
|
+
$color-shadow-2: #00000030 !default;
|
|
19
|
+
$color-shadow-3: #0000003b !default;
|
|
20
|
+
$color-shadow-4: #0000004d !default;
|
|
21
|
+
$color-shadow-5: #0009 !default;
|
|
22
|
+
|
|
23
|
+
// result types
|
|
24
|
+
$color-info: #4fc1e9;
|
|
25
|
+
$color-success: #4ec07d;
|
|
26
|
+
$color-failed: #e96075;
|
|
27
|
+
|
|
28
|
+
// color types
|
|
29
|
+
$color-red-0: #ed5565 !default;
|
|
30
|
+
$color-red-1: #da4453 !default;
|
|
31
|
+
$color-orange-0: #fc6e51 !default;
|
|
32
|
+
$color-orange-1: #e9573f !default;
|
|
33
|
+
$color-yellow-0: #ffce54 !default;
|
|
34
|
+
$color-yellow-1: #fcbb42 !default;
|
|
35
|
+
$color-yellow-2: #f8e976 !default;
|
|
36
|
+
$color-green-0: #a0d468 !default;
|
|
37
|
+
$color-green-1: #8cc152 !default;
|
|
38
|
+
$color-green-2: #48cfad !default;
|
|
39
|
+
$color-green-3: #37bc9b !default;
|
|
40
|
+
$color-green-4: #2bbbad !default;
|
|
41
|
+
$color-blue-0: #4fc1e9 !default;
|
|
42
|
+
$color-blue-1: #3bafda !default;
|
|
43
|
+
$color-blue-2: #5d9cec !default;
|
|
44
|
+
$color-blue-3: #4a89dc !default;
|
|
45
|
+
$color-magenta-0: #ac92ec !default;
|
|
46
|
+
$color-magenta-1: #967adc !default;
|
|
47
|
+
$color-pink-0: #ec87c0 !default;
|
|
48
|
+
$color-pink-1: #d770ad !default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@mixin square-size($value, $multiplier: 1) {
|
|
2
|
+
width: $value * $multiplier;
|
|
3
|
+
height: $value * $multiplier;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin theme-value($property, $value-common, $value-dark, $selector: "&") {
|
|
7
|
+
#{$selector},
|
|
8
|
+
:host-context(.sfc-default-theme) #{$selector} {
|
|
9
|
+
#{$property}: $value-common;
|
|
10
|
+
}
|
|
11
|
+
:host-context(.sfc-dark-theme) #{$selector} {
|
|
12
|
+
#{$property}: $value-dark;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin visibility($show) {
|
|
17
|
+
@if $show {
|
|
18
|
+
visibility: visible;
|
|
19
|
+
opacity: 1;
|
|
20
|
+
} @else {
|
|
21
|
+
visibility: hidden;
|
|
22
|
+
opacity: 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin scroll {
|
|
27
|
+
::ng-deep ::-webkit-scrollbar {
|
|
28
|
+
@include square-size(0.375em);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
::ng-deep ::-webkit-scrollbar-track {
|
|
32
|
+
border-radius: 0.625em;
|
|
33
|
+
background: rgb(0 0 0 / 10%);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
::ng-deep ::-webkit-scrollbar-thumb {
|
|
37
|
+
border-radius: 0.625em;
|
|
38
|
+
background: rgb(0 0 0 / 20%);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
::ng-deep ::-webkit-scrollbar-thumb:hover {
|
|
42
|
+
background: rgb(0 0 0 / 40%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::ng-deep ::-webkit-scrollbar-thumb:active {
|
|
46
|
+
background: rgb(0 0 0 / 60%);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// default
|
|
2
|
+
$color-dark: #ccd1d9 !default;
|
|
3
|
+
$color-disabled-dark: #656d78 !default;
|
|
4
|
+
$background-gradient-dark: linear-gradient(
|
|
5
|
+
to right,
|
|
6
|
+
rgb(255 255 255 / 0%) 0%,
|
|
7
|
+
rgb(255 255 255 / 40%) 17%,
|
|
8
|
+
rgb(255 255 255 / 40%) 83%,
|
|
9
|
+
rgb(255 255 255 / 0%) 100%
|
|
10
|
+
);
|
|
11
|
+
$background-gradient-vertical-dark: linear-gradient(
|
|
12
|
+
to bottom,
|
|
13
|
+
rgb(255 255 255 / 0%) 0%,
|
|
14
|
+
rgb(255 255 255 / 40%) 17%,
|
|
15
|
+
rgb(255 255 255 / 40%) 83%,
|
|
16
|
+
rgb(255 255 255 / 0%) 100%
|
|
17
|
+
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// default
|
|
2
|
+
$color-default: #545e61 !default;
|
|
3
|
+
$color-hover-default: #2bbbad !default;
|
|
4
|
+
$color-disabled-default: #bdbdbd !default;
|
|
5
|
+
$background-gradient-default: linear-gradient(
|
|
6
|
+
to right,
|
|
7
|
+
rgb(0 0 0 / 0%) 0%,
|
|
8
|
+
rgb(0 0 0 / 30%) 17%,
|
|
9
|
+
rgb(0 0 0 / 30%) 83%,
|
|
10
|
+
rgb(0 0 0 / 0%) 100%
|
|
11
|
+
);
|
|
12
|
+
$background-gradient-vertical-default: linear-gradient(
|
|
13
|
+
to bottom,
|
|
14
|
+
rgb(0 0 0 / 0%) 0%,
|
|
15
|
+
rgb(0 0 0 / 30%) 17%,
|
|
16
|
+
rgb(0 0 0 / 30%) 83%,
|
|
17
|
+
rgb(0 0 0 / 0%) 100%
|
|
18
|
+
);
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
// default
|
|
2
|
-
$color-default: #545e61 !default;
|
|
3
|
-
$color-hover-default: #2bbbad !default;
|
|
4
|
-
$color-disabled-default: #bdbdbd !default;
|
|
5
|
-
$background-gradient-default: linear-gradient(
|
|
6
|
-
to right,
|
|
7
|
-
rgb(0 0 0 / 0%) 0%,
|
|
8
|
-
rgb(0 0 0 / 30%) 17%,
|
|
9
|
-
rgb(0 0 0 / 30%) 83%,
|
|
10
|
-
rgb(0 0 0 / 0%) 100%
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
// default
|
|
14
|
-
$color-dark: #ccd1d9 !default;
|
|
15
|
-
$color-disabled-dark: #656d78 !default;
|
|
16
|
-
$background-gradient-dark: linear-gradient(
|
|
17
|
-
to right,
|
|
18
|
-
rgb(255 255 255 / 0%) 0%,
|
|
19
|
-
rgb(255 255 255 / 40%) 17%,
|
|
20
|
-
rgb(255 255 255 / 40%) 83%,
|
|
21
|
-
rgb(255 255 255 / 0%) 100%
|
|
22
|
-
);
|
|
23
|
-
|
|
24
|
-
// colors
|
|
25
|
-
$color-0: #fff !default;
|
|
26
|
-
$color-1: #f6f6f6 !default;
|
|
27
|
-
$color-2: #f5f7fa !default;
|
|
28
|
-
$color-3: #e6e9ed !default;
|
|
29
|
-
$color-4: #e9e9e9 !default;
|
|
30
|
-
$color-5: #d8d7d7 !default;
|
|
31
|
-
$color-6: #ccd1d9 !default;
|
|
32
|
-
$color-7: #aab2bd !default;
|
|
33
|
-
$color-8: #656d78 !default;
|
|
34
|
-
$color-9: #434a54 !default;
|
|
35
|
-
$color-10: #34323d !default;
|
|
36
|
-
$color-11: #1b1d1f !default;
|
|
37
|
-
|
|
38
|
-
// shades
|
|
39
|
-
$color-shadow-0: #00000005 !default;
|
|
40
|
-
$color-shadow-1: #0000001a !default;
|
|
41
|
-
$color-shadow-2: #00000030 !default;
|
|
42
|
-
$color-shadow-3: #0000003b !default;
|
|
43
|
-
$color-shadow-4: #0000004d !default;
|
|
44
|
-
$color-shadow-5: #0009 !default;
|
|
45
|
-
|
|
46
|
-
// result types
|
|
47
|
-
$color-info: #4fc1e9;
|
|
48
|
-
$color-success: #4ec07d;
|
|
49
|
-
$color-failed: #e96075;
|
|
50
|
-
|
|
51
|
-
// color types
|
|
52
|
-
$color-red-0: #ed5565 !default;
|
|
53
|
-
$color-red-1: #da4453 !default;
|
|
54
|
-
$color-orange-0: #fc6e51 !default;
|
|
55
|
-
$color-orange-1: #e9573f !default;
|
|
56
|
-
$color-yellow-0: #ffce54 !default;
|
|
57
|
-
$color-yellow-1: #fcbb42 !default;
|
|
58
|
-
$color-yellow-2: #f8e976 !default;
|
|
59
|
-
$color-green-0: #a0d468 !default;
|
|
60
|
-
$color-green-1: #8cc152 !default;
|
|
61
|
-
$color-green-2: #48cfad !default;
|
|
62
|
-
$color-green-3: #37bc9b !default;
|
|
63
|
-
$color-blue-0: #4fc1e9 !default;
|
|
64
|
-
$color-blue-1: #3bafda !default;
|
|
65
|
-
$color-blue-2: #5d9cec !default;
|
|
66
|
-
$color-blue-3: #4a89dc !default;
|
|
67
|
-
$color-magenta-0: #ac92ec !default;
|
|
68
|
-
$color-magenta-1: #967adc !default;
|
|
69
|
-
$color-pink-0: #ec87c0 !default;
|
|
70
|
-
$color-pink-1: #d770ad !default;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
@mixin square-size($value, $multiplier: 1) {
|
|
74
|
-
width: $value * $multiplier;
|
|
75
|
-
height: $value * $multiplier;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@mixin theme-value($property, $value-common, $value-dark, $selector: "&") {
|
|
79
|
-
#{$selector},
|
|
80
|
-
:host-context(.sfc-default-theme) #{$selector} {
|
|
81
|
-
#{$property}: $value-common;
|
|
82
|
-
}
|
|
83
|
-
:host-context(.sfc-dark-theme) #{$selector} {
|
|
84
|
-
#{$property}: $value-dark;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@mixin visibility($show) {
|
|
89
|
-
@if $show {
|
|
90
|
-
visibility: visible;
|
|
91
|
-
opacity: 1;
|
|
92
|
-
} @else {
|
|
93
|
-
visibility: hidden;
|
|
94
|
-
opacity: 0;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
@mixin scroll {
|
|
99
|
-
::ng-deep ::-webkit-scrollbar {
|
|
100
|
-
@include square-size(0.375em);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
::ng-deep ::-webkit-scrollbar-track {
|
|
104
|
-
border-radius: 0.625em;
|
|
105
|
-
background: rgb(0 0 0 / 10%);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
::ng-deep ::-webkit-scrollbar-thumb {
|
|
109
|
-
border-radius: 0.625em;
|
|
110
|
-
background: rgb(0 0 0 / 20%);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
::ng-deep ::-webkit-scrollbar-thumb:hover {
|
|
114
|
-
background: rgb(0 0 0 / 40%);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
::ng-deep ::-webkit-scrollbar-thumb:active {
|
|
118
|
-
background: rgb(0 0 0 / 60%);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Component, HostBinding, HostListener, Input } from '@angular/core';
|
|
2
|
-
import { UIClass } from '../../enums';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class HamburgerComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.open = false;
|
|
7
|
-
this.onClick = () => this.open = !this.open;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HamburgerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
HamburgerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: HamburgerComponent, selector: "sfc-hamburger", inputs: { open: "open" }, host: { listeners: { "click": "onClick()" }, properties: { "class.open": "this.open" } }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}.container .line,:host-context(.sfc-default-theme) .container .line{background-color:#545e61}:host-context(.sfc-dark-theme) .container .line{background-color:#ccd1d9}.container .line.half{width:50%}.container .line.start{transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:right}:host(.open) .container .line.start{transform:rotate(-90deg) translate(.1875em)}.container .line.end{align-self:flex-end;transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:left}:host(.open) .container .line.end{transform:rotate(-90deg) translate(-.1875em)}.container:hover .line{background-color:#2bbbad!important}\n"] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: HamburgerComponent, decorators: [{
|
|
13
|
-
type: Component,
|
|
14
|
-
args: [{ selector: 'sfc-hamburger', template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}.container .line,:host-context(.sfc-default-theme) .container .line{background-color:#545e61}:host-context(.sfc-dark-theme) .container .line{background-color:#ccd1d9}.container .line.half{width:50%}.container .line.start{transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:right}:host(.open) .container .line.start{transform:rotate(-90deg) translate(.1875em)}.container .line.end{align-self:flex-end;transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:left}:host(.open) .container .line.end{transform:rotate(-90deg) translate(-.1875em)}.container:hover .line{background-color:#2bbbad!important}\n"] }]
|
|
15
|
-
}], propDecorators: { open: [{
|
|
16
|
-
type: Input
|
|
17
|
-
}, {
|
|
18
|
-
type: HostBinding,
|
|
19
|
-
args: ['class.' + UIClass.Open]
|
|
20
|
-
}], onClick: [{
|
|
21
|
-
type: HostListener,
|
|
22
|
-
args: ['click']
|
|
23
|
-
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFtYnVyZ2VyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZmMtY29tbW9uL3NyYy9saWIvY29tcG9uZW50cy9oYW1idXJnZXIvaGFtYnVyZ2VyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zZmMtY29tbW9uL3NyYy9saWIvY29tcG9uZW50cy9oYW1idXJnZXIvaGFtYnVyZ2VyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsV0FBVyxFQUFFLFlBQVksRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDNUUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLGFBQWEsQ0FBQzs7QUFPdEMsTUFBTSxPQUFPLGtCQUFrQjtJQUwvQjtRQVNFLFNBQUksR0FBWSxLQUFLLENBQUM7UUFHdEIsWUFBTyxHQUFHLEdBQUcsRUFBRSxDQUFDLElBQUksQ0FBQyxJQUFJLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDO0tBQ3hDOzsrR0FSWSxrQkFBa0I7bUdBQWxCLGtCQUFrQix5S0NSL0IsK0pBSU07MkZESU8sa0JBQWtCO2tCQUw5QixTQUFTOytCQUNFLGVBQWU7OEJBUXpCLElBQUk7c0JBRkgsS0FBSzs7c0JBQ0wsV0FBVzt1QkFBQyxRQUFRLEdBQUcsT0FBTyxDQUFDLElBQUk7Z0JBSXBDLE9BQU87c0JBRE4sWUFBWTt1QkFBQyxPQUFPIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBIb3N0QmluZGluZywgSG9zdExpc3RlbmVyLCBJbnB1dCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5pbXBvcnQgeyBVSUNsYXNzIH0gZnJvbSAnLi4vLi4vZW51bXMnO1xyXG5cclxuQENvbXBvbmVudCh7XHJcbiAgc2VsZWN0b3I6ICdzZmMtaGFtYnVyZ2VyJyxcclxuICB0ZW1wbGF0ZVVybDogJy4vaGFtYnVyZ2VyLmNvbXBvbmVudC5odG1sJyxcclxuICBzdHlsZVVybHM6IFsnLi9oYW1idXJnZXIuY29tcG9uZW50LnNjc3MnXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgSGFtYnVyZ2VyQ29tcG9uZW50IHtcclxuXHJcbiAgQElucHV0KClcclxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLicgKyBVSUNsYXNzLk9wZW4pXHJcbiAgb3BlbjogYm9vbGVhbiA9IGZhbHNlO1xyXG5cclxuICBASG9zdExpc3RlbmVyKCdjbGljaycpXHJcbiAgb25DbGljayA9ICgpID0+IHRoaXMub3BlbiA9ICF0aGlzLm9wZW47XHJcbn1cclxuIiwiPGRpdiBjbGFzcz1cImNvbnRhaW5lclwiPlxyXG4gICAgPGRpdiBjbGFzcz1cImxpbmUgaGFsZiBzdGFydFwiPjwvZGl2PlxyXG4gICAgPGRpdiBjbGFzcz1cImxpbmVcIj48L2Rpdj5cclxuICAgIDxkaXYgY2xhc3M9XCJsaW5lIGhhbGYgZW5kXCI+PC9kaXY+XHJcbjwvZGl2PiJdfQ==
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class HamburgerComponent {
|
|
3
|
-
open: boolean;
|
|
4
|
-
onClick: () => boolean;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HamburgerComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<HamburgerComponent, "sfc-hamburger", never, { "open": "open"; }, {}, never, never, false, never>;
|
|
7
|
-
}
|