simpo-component-library 0.8.0 → 0.8.2

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 (46) hide show
  1. package/esm2022/lib/directive/animation-directive.mjs +4 -1
  2. package/esm2022/lib/directive/container-alignment.directive.mjs +43 -0
  3. package/esm2022/lib/directive/content-title-spacing.directive.mjs +47 -0
  4. package/esm2022/lib/directive/text-size.directive.mjs +59 -0
  5. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  6. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +17 -5
  7. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  8. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +10 -5
  9. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +10 -5
  10. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +10 -5
  11. package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
  12. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +3 -3
  13. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +9 -4
  14. package/esm2022/lib/sections/service-section/service-section.component.mjs +9 -4
  15. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +10 -5
  16. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +10 -5
  17. package/esm2022/lib/sections/video-section/video-section.component.mjs +9 -4
  18. package/esm2022/lib/services/events.service.mjs +2 -1
  19. package/esm2022/lib/styles/index.mjs +23 -1
  20. package/esm2022/lib/styles/style.model.mjs +1 -1
  21. package/esm2022/lib/styles/types.mjs +1 -1
  22. package/esm2022/public-api.mjs +2 -1
  23. package/fesm2022/simpo-component-library.mjs +250 -44
  24. package/fesm2022/simpo-component-library.mjs.map +1 -1
  25. package/lib/directive/animation-directive.d.ts +1 -0
  26. package/lib/directive/container-alignment.directive.d.ts +17 -0
  27. package/lib/directive/content-title-spacing.directive.d.ts +20 -0
  28. package/lib/directive/text-size.directive.d.ts +21 -0
  29. package/lib/sections/banner-section/banner-section.component.d.ts +3 -1
  30. package/lib/sections/faq-section/faq-section.component.d.ts +2 -0
  31. package/lib/sections/image-carousel-section/image-carousel-section.component.d.ts +2 -0
  32. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +2 -0
  33. package/lib/sections/image-section/image-section.model.d.ts +2 -1
  34. package/lib/sections/pricing-section/pricing-section.component.d.ts +2 -0
  35. package/lib/sections/service-section/service-section.component.d.ts +2 -0
  36. package/lib/sections/team-member-section/team-member-section.component.d.ts +2 -0
  37. package/lib/sections/testimonial-section/testimonial-section.component.d.ts +2 -0
  38. package/lib/sections/video-section/video-section.component.d.ts +2 -0
  39. package/lib/services/events.service.d.ts +1 -0
  40. package/lib/styles/index.d.ts +21 -0
  41. package/lib/styles/style.model.d.ts +8 -1
  42. package/lib/styles/types.d.ts +1 -1
  43. package/package.json +1 -1
  44. package/public-api.d.ts +1 -0
  45. package/simpo-component-library-0.8.2.tgz +0 -0
  46. package/simpo-component-library-0.8.0.tgz +0 -0
@@ -17,6 +17,7 @@ export declare class AnimationDirective implements OnChanges, OnInit, OnDestroy
17
17
  right: string;
18
18
  fadeIn: string;
19
19
  zoom: string;
20
+ none: string;
20
21
  };
21
22
  speed: {
22
23
  slow: string;
@@ -0,0 +1,17 @@
1
+ import { ElementRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { EventsService } from '../services/events.service';
3
+ import { LayOutModel } from '../styles/style.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SimpoContainerAligment implements OnInit, OnChanges {
6
+ private el;
7
+ private eventService;
8
+ layout?: LayOutModel;
9
+ eventEmmitter: any;
10
+ constructor(el: ElementRef, eventService: EventsService);
11
+ ngOnInit(): void;
12
+ ngOnDestroy(): void;
13
+ ngOnChanges(change: SimpleChanges): void;
14
+ setProperty(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SimpoContainerAligment, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<SimpoContainerAligment, "[simpoContainerAlignment]", never, { "layout": { "alias": "simpoContainerAlignment"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,20 @@
1
+ import { ElementRef, OnChanges } from '@angular/core';
2
+ import { EventsService } from '../services/events.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare enum SPACING {
5
+ none = "1.5rem",
6
+ small = "3rem",
7
+ medium = "5rem",
8
+ large = "6rem"
9
+ }
10
+ export declare class ContentTitleDirective implements OnChanges {
11
+ private el;
12
+ private eventService;
13
+ spacing?: SPACING;
14
+ constructor(el: ElementRef, eventService: EventsService);
15
+ ngOnChanges(): void;
16
+ applyStyle(): void;
17
+ get getSpacing(): SPACING;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ContentTitleDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ContentTitleDirective, "[simpoContentTitleSpace]", never, { "spacing": { "alias": "simpoContentTitleSpace"; "required": false; }; }, {}, never, never, true, never>;
20
+ }
@@ -0,0 +1,21 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import { TEXT_SIZE } from '../styles/index';
3
+ import { EventsService } from '../services/events.service';
4
+ import { Subscription } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare class TextSizeDirective {
7
+ private eventService;
8
+ private el;
9
+ size?: TEXT_SIZE;
10
+ type?: 'heading' | 'desc';
11
+ constructor(eventService: EventsService, el: ElementRef);
12
+ ngOnChanges(): void;
13
+ ngOnDestroy(): void;
14
+ applyFontSize(): void;
15
+ fontSizeSubscription?: Subscription;
16
+ changeFontSizeCheck(): void;
17
+ removeHeadingClass(): void;
18
+ removeDescClass(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextSizeDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TextSizeDirective, "[simpoTextSize]", never, { "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
21
+ }
@@ -1,6 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { BannerContentModel, BannerSectionModel } from './banner-section.model';
3
- import { BannerStylesModel } from '../../styles/style.model';
3
+ import { BannerStylesModel, LayOutModel } from '../../styles/style.model';
4
4
  import { EventsService } from './../../services/events.service';
5
5
  import BaseSection from '../BaseSection';
6
6
  import * as i0 from "@angular/core";
@@ -14,6 +14,8 @@ export declare class BannerSectionComponent extends BaseSection implements OnIni
14
14
  styles?: BannerStylesModel;
15
15
  constructor(_eventService: EventsService);
16
16
  ngOnInit(): void;
17
+ get stylesLayout(): LayOutModel;
18
+ get getJustifyContent(): string;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerSectionComponent, never>;
18
20
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerSectionComponent, "simpo-banner-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
19
21
  }
@@ -1,6 +1,7 @@
1
1
  import { FAQContentModal, FAQSectionModal, FAQStylesModel } from './faq-section.modal';
2
2
  import { EventsService } from './../../services/events.service';
3
3
  import BaseSection from '../BaseSection';
4
+ import { SPACING } from '../../styles/index';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class FaqSectionComponent extends BaseSection {
6
7
  private _eventService;
@@ -12,6 +13,7 @@ export declare class FaqSectionComponent extends BaseSection {
12
13
  style?: FAQStylesModel;
13
14
  constructor(_eventService: EventsService);
14
15
  ngOnInit(): void;
16
+ get headingSpace(): SPACING;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<FaqSectionComponent, never>;
16
18
  static ɵcmp: i0.ɵɵComponentDeclaration<FaqSectionComponent, "simpo-faq-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
17
19
  }
@@ -2,6 +2,7 @@ import { OnInit } from '@angular/core';
2
2
  import { ImageCarouselSection, ImageCarouselSectionContentModel, ImageCarouselSectionStylesModel } from './image-carousel.model';
3
3
  import { EventsService } from './../../services/events.service';
4
4
  import BaseSection from '../BaseSection';
5
+ import { SPACING } from '../../styles/index';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ImageCarouselSectionComponent extends BaseSection implements OnInit {
7
8
  private _eventService;
@@ -17,6 +18,7 @@ export declare class ImageCarouselSectionComponent extends BaseSection implement
17
18
  getScreenSize(event?: number): void;
18
19
  getPrevImage(index: number): import("simpo-component-library").Image | undefined;
19
20
  getNextImage(index: number): import("simpo-component-library").Image | undefined;
21
+ get headingSpace(): SPACING;
20
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageCarouselSectionComponent, never>;
21
23
  static ɵcmp: i0.ɵɵComponentDeclaration<ImageCarouselSectionComponent, "simpo-image-carousel-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
22
24
  }
@@ -2,6 +2,7 @@ import { ElementRef } from '@angular/core';
2
2
  import { ImageGridContentModal, ImageGridSectionModel, ImageGridStylesModel } from './image-grid-section.model';
3
3
  import { EventsService } from '../../services/events.service';
4
4
  import BaseSection from '../BaseSection';
5
+ import { SPACING } from '../../styles/index';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class ImageGridSectionComponent extends BaseSection {
7
8
  private _eventService;
@@ -14,6 +15,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
14
15
  style?: ImageGridStylesModel;
15
16
  constructor(_eventService: EventsService);
16
17
  ngOnInit(): void;
18
+ get headingSpace(): SPACING;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageGridSectionComponent, never>;
18
20
  static ɵcmp: i0.ɵɵComponentDeclaration<ImageGridSectionComponent, "simpo-image-grid-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
19
21
  }
@@ -1,4 +1,4 @@
1
- import { Image, InputTextModel, StylesModel } from "./../../styles/style.model";
1
+ import { Image, ImageStyle, InputTextModel, StylesModel } from "./../../styles/style.model";
2
2
  import { Corners } from "./../../styles/index";
3
3
  export interface imageSectionModel {
4
4
  id: string;
@@ -14,4 +14,5 @@ export interface ImageContentModal {
14
14
  export interface imageSectionStylesModel extends StylesModel {
15
15
  fullWidth: boolean;
16
16
  corners: Corners;
17
+ image: ImageStyle;
17
18
  }
@@ -2,6 +2,7 @@ import { PricingSectionContentModal, PricingSectionModal, PricingSectionStylesMo
2
2
  import { ButtonModel } from '../../styles/style.model';
3
3
  import { EventsService } from '../../services/events.service';
4
4
  import BaseSection from '../BaseSection';
5
+ import { SPACING } from '../../styles/index';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class PricingSectionComponent extends BaseSection {
7
8
  private _eventService;
@@ -15,6 +16,7 @@ export declare class PricingSectionComponent extends BaseSection {
15
16
  constructor(_eventService: EventsService);
16
17
  ngOnInit(): void;
17
18
  getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
19
+ get headingSpace(): SPACING;
18
20
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
19
21
  static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
20
22
  }
@@ -4,6 +4,7 @@ import { EventsService } from '../../services/events.service';
4
4
  import { TextPosition } from '../../styles/index';
5
5
  import { ButtonModel } from '../../styles/style.model';
6
6
  import BaseSection from '../BaseSection';
7
+ import { SPACING } from '../../styles/index';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ServiceSectionComponent extends BaseSection {
9
10
  private _eventService;
@@ -18,6 +19,7 @@ export declare class ServiceSectionComponent extends BaseSection {
18
19
  button?: ButtonModel;
19
20
  constructor(_eventService: EventsService);
20
21
  ngOnInit(): void;
22
+ get headingSpace(): SPACING;
21
23
  static ɵfac: i0.ɵɵFactoryDeclaration<ServiceSectionComponent, never>;
22
24
  static ɵcmp: i0.ɵɵComponentDeclaration<ServiceSectionComponent, "simpo-service-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
23
25
  }
@@ -3,6 +3,7 @@ import { TextPosition } from '../../styles/index';
3
3
  import { EventsService } from '../../services/events.service';
4
4
  import { ButtonModel } from '../../styles/style.model';
5
5
  import BaseSection from '../BaseSection';
6
+ import { SPACING } from '../../styles/index';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class TeamMemberSectionComponent extends BaseSection {
8
9
  private _eventService;
@@ -16,6 +17,7 @@ export declare class TeamMemberSectionComponent extends BaseSection {
16
17
  button?: ButtonModel;
17
18
  constructor(_eventService: EventsService);
18
19
  ngOnInit(): void;
20
+ get headingSpace(): SPACING;
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TeamMemberSectionComponent, never>;
20
22
  static ɵcmp: i0.ɵɵComponentDeclaration<TeamMemberSectionComponent, "simpo-team-member-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
21
23
  }
@@ -2,6 +2,7 @@ import { ElementRef } from '@angular/core';
2
2
  import { testimonialContentModel, testimonialSectionModel, testimonialStylesModel } from './testimonial-section.model';
3
3
  import { EventsService } from './../../services/events.service';
4
4
  import BaseSection from '../BaseSection';
5
+ import { SPACING } from '../../styles/index';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class TestimonialSectionComponent extends BaseSection {
7
8
  private _eventService;
@@ -14,6 +15,7 @@ export declare class TestimonialSectionComponent extends BaseSection {
14
15
  style?: testimonialStylesModel;
15
16
  constructor(_eventService: EventsService);
16
17
  ngOnInit(): void;
18
+ get headingSpace(): SPACING;
17
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TestimonialSectionComponent, never>;
18
20
  static ɵcmp: i0.ɵɵComponentDeclaration<TestimonialSectionComponent, "simpo-testimonial-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
19
21
  }
@@ -3,6 +3,7 @@ import { videoSectionContentModel, videoSectionModel, videoSectionStyleModel } f
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
4
  import { EventsService } from './../../services/events.service';
5
5
  import BaseSection from '../BaseSection';
6
+ import { SPACING } from '../../styles/index';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class VideoSectionComponent extends BaseSection {
8
9
  dom: DomSanitizer;
@@ -19,6 +20,7 @@ export declare class VideoSectionComponent extends BaseSection {
19
20
  ngOnInit(): void;
20
21
  youTubeIdFromLink(url: string): string | undefined;
21
22
  get getVideoLink(): string;
23
+ get headingSpace(): SPACING;
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<VideoSectionComponent, never>;
23
25
  static ɵcmp: i0.ɵɵComponentDeclaration<VideoSectionComponent, "simpo-video-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
24
26
  }
@@ -28,6 +28,7 @@ export declare class EventsService {
28
28
  objectPositionChangeCheck: EventEmitter<unknown>;
29
29
  locationChangeCheck: EventEmitter<unknown>;
30
30
  mapStyleChangeCheck: EventEmitter<unknown>;
31
+ textSizeChangeCheck: EventEmitter<unknown>;
31
32
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
32
33
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
33
34
  }
@@ -54,6 +54,7 @@ export declare const animation: {
54
54
  right: string;
55
55
  fadeIn: string;
56
56
  zoom: string;
57
+ none: string;
57
58
  };
58
59
  speed: {
59
60
  slow: string;
@@ -61,6 +62,26 @@ export declare const animation: {
61
62
  fast: string;
62
63
  };
63
64
  };
65
+ export declare enum TEXT_SIZE {
66
+ Small = "Small",
67
+ Medium = "Medium",
68
+ Large = "Large",
69
+ ExtraLarge = "Extra_Large"
70
+ }
71
+ export declare const fontSize: {
72
+ heading: {
73
+ Small: string;
74
+ Medium: string;
75
+ Large: string;
76
+ Extra_Large: string;
77
+ };
78
+ desc: {
79
+ Small: string;
80
+ Medium: string;
81
+ Large: string;
82
+ Extra_Large: string;
83
+ };
84
+ };
64
85
  export declare const mapStyle: {
65
86
  Streets: string;
66
87
  Outdoors: string;
@@ -1,4 +1,4 @@
1
- import { AlignContent, Corners, ImageFit, ImageRatio, RedirectionLinkType, TextPosition } from '.';
1
+ import { AlignContent, Corners, ImageFit, ImageRatio, RedirectionLinkType, SPACING, TEXT_SIZE, TextPosition } from '.';
2
2
  import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION } from './types';
3
3
  export interface SpacingModel {
4
4
  top: SPACING_TYPE;
@@ -20,6 +20,7 @@ export interface DeviderModel {
20
20
  export interface LayOutModel {
21
21
  align: ALIGN;
22
22
  fit: FIT;
23
+ headingSpacing?: SPACING;
23
24
  spacing: SpacingModel;
24
25
  }
25
26
  export interface BannerLayOutModel {
@@ -78,6 +79,7 @@ export interface NavbarButton {
78
79
  redirectionUrl: string;
79
80
  status: boolean;
80
81
  pageId: string;
82
+ showHeader: boolean;
81
83
  }
82
84
  export interface ListItemModal<T> {
83
85
  label: string;
@@ -109,6 +111,7 @@ export interface BannerStylesModel {
109
111
  devider: DeviderModel;
110
112
  image: ImageStyle;
111
113
  corners: Corners;
114
+ textSize: TextSize;
112
115
  }
113
116
  export interface InputTextModel {
114
117
  label: string;
@@ -149,3 +152,7 @@ export interface HeaderButtonModel {
149
152
  content: NavbarButton;
150
153
  styles: HeaderButtonStyleModel;
151
154
  }
155
+ export interface TextSize {
156
+ heading: TEXT_SIZE;
157
+ desc: TEXT_SIZE;
158
+ }
@@ -4,7 +4,7 @@ export type LAYOUTPOSITION = 'left' | 'right' | 'top' | 'bottom';
4
4
  export type CONTENTPOSITION = 'image center' | 'image top' | 'image bottom';
5
5
  export type FIT = 'content' | 'screen';
6
6
  export type CARD_SIZE = 'Small' | 'Medium' | 'Large';
7
- export type ANIMATION_DIRECTION = 'left' | 'top' | 'bottom' | 'right' | 'fadeIn' | 'zoom';
7
+ export type ANIMATION_DIRECTION = 'left' | 'top' | 'bottom' | 'right' | 'fadeIn' | 'zoom' | 'none';
8
8
  export type ANIMATION_SPEED = 'slow' | 'medium' | 'fast';
9
9
  export type LINK_TYPE = 'Button' | 'List Item';
10
10
  export type BUTTON_TYPE = 'Solid' | 'Outline';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -38,6 +38,7 @@ export * from './lib/directive/hover-element-directive';
38
38
  export * from './lib/directive/footer-layout-directive';
39
39
  export * from './lib/directive/color.directive';
40
40
  export * from './lib/directive/image-position.directive';
41
+ export * from './lib/directive/container-alignment.directive';
41
42
  export * from './lib/styles/index';
42
43
  export * from './lib/styles/style.model';
43
44
  export * from './lib/styles/types';
Binary file