ngx-sfc-common 0.0.3 → 0.0.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.
Files changed (37) hide show
  1. package/README.md +5 -5
  2. package/_ngx-sfc-common.styles.scss +1 -0
  3. package/esm2020/lib/components/button/button.component.mjs +5 -4
  4. package/esm2020/lib/components/checkmark/checkmark.component.mjs +6 -4
  5. package/esm2020/lib/components/close/close.component.mjs +8 -3
  6. package/esm2020/lib/components/delimeter/delimeter.component.mjs +2 -2
  7. package/esm2020/lib/components/dots/dots.component.mjs +2 -2
  8. package/esm2020/lib/components/hamburger/hamburger.component.mjs +2 -2
  9. package/esm2020/lib/components/loader/bounce/bounce-loader.component.mjs +2 -2
  10. package/esm2020/lib/components/loader/circle/circle-loader.component.mjs +2 -2
  11. package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +11 -6
  12. package/esm2020/lib/components/modal/header/default/default-modal-header.model.mjs +1 -1
  13. package/esm2020/lib/components/modal/modal.component.mjs +3 -3
  14. package/esm2020/lib/components/pagination/pagination.component.mjs +9 -5
  15. package/esm2020/lib/components/sorting/sorting.component.mjs +5 -4
  16. package/esm2020/lib/components/sorting/sorting.constants.mjs +4 -3
  17. package/esm2020/lib/components/sorting/sorting.model.mjs +1 -1
  18. package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +5 -4
  19. package/esm2020/lib/components/toggle-switcher/toggle-switcher.model.mjs +1 -1
  20. package/esm2020/lib/enums/sorting-direction.enum.mjs +1 -1
  21. package/esm2020/lib/ngx-sfc-common.module.mjs +8 -4
  22. package/fesm2015/ngx-sfc-common.mjs +51 -36
  23. package/fesm2015/ngx-sfc-common.mjs.map +1 -1
  24. package/fesm2020/ngx-sfc-common.mjs +50 -36
  25. package/fesm2020/ngx-sfc-common.mjs.map +1 -1
  26. package/lib/components/button/button.component.d.ts +3 -2
  27. package/lib/components/checkmark/checkmark.component.d.ts +2 -1
  28. package/lib/components/close/close.component.d.ts +1 -0
  29. package/lib/components/modal/header/default/default-modal-header.component.d.ts +2 -0
  30. package/lib/components/modal/header/default/default-modal-header.model.d.ts +2 -1
  31. package/lib/components/pagination/pagination.component.d.ts +2 -0
  32. package/lib/components/sorting/sorting.component.d.ts +2 -1
  33. package/lib/components/sorting/sorting.constants.d.ts +2 -2
  34. package/lib/components/sorting/sorting.model.d.ts +2 -1
  35. package/lib/components/toggle-switcher/toggle-switcher.model.d.ts +2 -1
  36. package/lib/ngx-sfc-common.module.d.ts +2 -1
  37. package/package.json +5 -2
@@ -1,10 +1,11 @@
1
1
  import { ButtonType } from './button-type.enum';
2
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class ButtonComponent {
4
5
  private readonly BUTTON_DEFAULT_TEXT;
5
6
  text: string;
6
- iconBefore?: string;
7
- iconAfter?: string;
7
+ iconBefore?: IconDefinition;
8
+ iconAfter?: IconDefinition;
8
9
  disabled: boolean;
9
10
  types: Array<ButtonType>;
10
11
  get classes(): any;
@@ -1,7 +1,8 @@
1
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class CheckmarkComponent {
3
4
  active: boolean;
4
- icon?: string;
5
+ icon: IconDefinition;
5
6
  onClick: () => boolean;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<CheckmarkComponent, never>;
7
8
  static ɵcmp: i0.ɵɵComponentDeclaration<CheckmarkComponent, "sfc-checkmark", never, { "active": "active"; "icon": "icon"; }, {}, never, never>;
@@ -1,5 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class CloseComponent {
3
+ faTimes: import("@fortawesome/fontawesome-common-types").IconDefinition;
3
4
  static ɵfac: i0.ɵɵFactoryDeclaration<CloseComponent, never>;
4
5
  static ɵcmp: i0.ɵɵComponentDeclaration<CloseComponent, "sfc-close", never, {}, {}, never, never>;
5
6
  }
@@ -1,11 +1,13 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { IDefaultModalHeaderModel } from './default-modal-header.model';
3
3
  import { ModalService } from '../../service/modal.service';
4
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class DefaultModalHeaderComponent implements OnInit {
6
7
  private modalService;
7
8
  private readonly DEFAULT_MODAL_HEADER_MODEL;
8
9
  model?: IDefaultModalHeaderModel;
10
+ get icon(): IconDefinition;
9
11
  constructor(modalService: ModalService);
10
12
  ngOnInit(): void;
11
13
  onClose(): void;
@@ -1,5 +1,6 @@
1
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
1
2
  export interface IDefaultModalHeaderModel {
2
3
  text?: string;
3
- icon?: string;
4
+ icon?: IconDefinition;
4
5
  showCloseIcon?: boolean;
5
6
  }
@@ -5,6 +5,8 @@ import { PaginationService } from './service/pagination.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class PaginationComponent implements OnInit {
7
7
  private service;
8
+ faChevronLeft: import("@fortawesome/fontawesome-common-types").IconDefinition;
9
+ faChevronRight: import("@fortawesome/fontawesome-common-types").IconDefinition;
8
10
  count: number;
9
11
  /**
10
12
  * show full range of data
@@ -1,4 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
2
3
  import { SortingDirection } from '../../enums';
3
4
  import { SortingService } from './service/sorting.service';
4
5
  import { ISortingModel } from './sorting.model';
@@ -11,7 +12,7 @@ export declare class SortingComponent implements OnInit, OnDestroy {
11
12
  get enabled(): boolean;
12
13
  get active(): boolean;
13
14
  sort(): void;
14
- get icon(): string;
15
+ get icon(): IconDefinition;
15
16
  private _subscription;
16
17
  constructor(service: SortingService);
17
18
  ngOnInit(): void;
@@ -1,4 +1,4 @@
1
1
  export declare class SortingConstants {
2
- static DEFAULT_ASCENDING_ICON: string;
3
- static DEFAULT_DESCENDING_ICON: string;
2
+ static DEFAULT_ASCENDING_ICON: import("@fortawesome/fontawesome-common-types").IconDefinition;
3
+ static DEFAULT_DESCENDING_ICON: import("@fortawesome/fontawesome-common-types").IconDefinition;
4
4
  }
@@ -1,4 +1,5 @@
1
1
  import { SortingDirection } from "../../enums";
2
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
2
3
  export interface ISortingModel {
3
4
  enabled: boolean;
4
5
  active?: boolean;
@@ -7,5 +8,5 @@ export interface ISortingModel {
7
8
  }
8
9
  export interface ISortingIcon {
9
10
  direction: SortingDirection;
10
- icon: string;
11
+ icon: IconDefinition;
11
12
  }
@@ -1,4 +1,5 @@
1
+ import { IconDefinition } from '@fortawesome/free-solid-svg-icons';
1
2
  export interface IToggleSwitcherModel {
2
3
  label: string;
3
- icon?: string;
4
+ icon?: IconDefinition;
4
5
  }
@@ -25,8 +25,9 @@ import * as i23 from "./components/modal/header/default/default-modal-header.com
25
25
  import * as i24 from "./components/modal/footer/default/default-modal-footer.component";
26
26
  import * as i25 from "@angular/common";
27
27
  import * as i26 from "@angular/platform-browser/animations";
28
+ import * as i27 from "@fortawesome/angular-fontawesome";
28
29
  export declare class NgxSfcCommonModule {
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxSfcCommonModule, never>;
30
- 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.ButtonComponent, typeof i9.TooltipComponent, typeof i10.DelimeterComponent, typeof i11.ToggleSwitcherComponent, typeof i12.CheckmarkComponent, typeof i13.TemplateContentComponent, typeof i14.CloseComponent, typeof i15.HamburgerComponent, typeof i16.DotsComponent, typeof i17.PaginationComponent, typeof i18.SortingComponent, typeof i19.BounceLoaderComponent, typeof i20.CircleLoaderComponent, typeof i21.ModalComponent, typeof i22.ModalOpenOnClickDirective, typeof i23.DefaultModalHeaderComponent, typeof i24.DefaultModalFooterComponent], [typeof i25.CommonModule, typeof i26.BrowserAnimationsModule], [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.ThrowElementOnHoverDirective, typeof i4.TemplateReferenceDirective, typeof i5.MouseDownDirective, typeof i6.ComponentSizeDirective, typeof i7.DestroyParentDirective, typeof i8.ButtonComponent, typeof i9.TooltipComponent, typeof i10.DelimeterComponent, typeof i14.CloseComponent, typeof i12.CheckmarkComponent, typeof i13.TemplateContentComponent, typeof i11.ToggleSwitcherComponent, typeof i16.DotsComponent, typeof i15.HamburgerComponent, typeof i17.PaginationComponent, typeof i18.SortingComponent, typeof i19.BounceLoaderComponent, typeof i20.CircleLoaderComponent, typeof i21.ModalComponent, typeof i22.ModalOpenOnClickDirective, typeof i23.DefaultModalHeaderComponent, typeof i24.DefaultModalFooterComponent]>;
31
+ 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.ButtonComponent, typeof i9.TooltipComponent, typeof i10.DelimeterComponent, typeof i11.ToggleSwitcherComponent, typeof i12.CheckmarkComponent, typeof i13.TemplateContentComponent, typeof i14.CloseComponent, typeof i15.HamburgerComponent, typeof i16.DotsComponent, typeof i17.PaginationComponent, typeof i18.SortingComponent, typeof i19.BounceLoaderComponent, typeof i20.CircleLoaderComponent, typeof i21.ModalComponent, typeof i22.ModalOpenOnClickDirective, typeof i23.DefaultModalHeaderComponent, typeof i24.DefaultModalFooterComponent], [typeof i25.CommonModule, typeof i26.BrowserAnimationsModule, typeof i27.FontAwesomeModule], [typeof i1.ClickOutsideDirective, typeof i2.ShowHideElementDirective, typeof i3.ThrowElementOnHoverDirective, typeof i4.TemplateReferenceDirective, typeof i5.MouseDownDirective, typeof i6.ComponentSizeDirective, typeof i7.DestroyParentDirective, typeof i8.ButtonComponent, typeof i9.TooltipComponent, typeof i10.DelimeterComponent, typeof i14.CloseComponent, typeof i12.CheckmarkComponent, typeof i13.TemplateContentComponent, typeof i11.ToggleSwitcherComponent, typeof i16.DotsComponent, typeof i15.HamburgerComponent, typeof i17.PaginationComponent, typeof i18.SortingComponent, typeof i19.BounceLoaderComponent, typeof i20.CircleLoaderComponent, typeof i21.ModalComponent, typeof i22.ModalOpenOnClickDirective, typeof i23.DefaultModalHeaderComponent, typeof i24.DefaultModalFooterComponent]>;
31
32
  static ɵinj: i0.ɵɵInjectorDeclaration<NgxSfcCommonModule>;
32
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-sfc-common",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Angular common(shared) library for SFC project",
5
5
  "keywords": [
6
6
  "Street Football Club",
@@ -25,7 +25,10 @@
25
25
  "license": "MIT",
26
26
  "peerDependencies": {
27
27
  "@angular/common": "^13.2.0",
28
- "@angular/core": "^13.2.0"
28
+ "@angular/core": "^13.2.0",
29
+ "@fortawesome/angular-fontawesome": "0.10.2",
30
+ "@fortawesome/fontawesome-svg-core": "^6.1.1",
31
+ "@fortawesome/free-solid-svg-icons": "^6.1.1"
29
32
  },
30
33
  "dependencies": {
31
34
  "tslib": "^2.3.0"