simpo-component-library 0.1.3 → 0.1.5

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 (34) hide show
  1. package/esm2022/lib/elements/navbar-button-element/navbar-button-element.component.mjs +16 -0
  2. package/esm2022/lib/elements/socia-icons/socia-icons.component.mjs +18 -4
  3. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +10 -8
  4. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +10 -8
  5. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +11 -9
  6. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +12 -8
  7. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +1 -1
  8. package/esm2022/lib/sections/image-section/image-section.component.mjs +9 -7
  9. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +29 -9
  10. package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
  11. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +9 -7
  12. package/esm2022/lib/sections/text-section/text-section.component.mjs +11 -9
  13. package/esm2022/lib/sections/video-section/video-section.component.mjs +9 -7
  14. package/esm2022/lib/styles/style.model.mjs +1 -1
  15. package/esm2022/lib/styles/types.mjs +1 -1
  16. package/fesm2022/simpo-component-library.mjs +108 -56
  17. package/fesm2022/simpo-component-library.mjs.map +1 -1
  18. package/lib/elements/navbar-button-element/navbar-button-element.component.d.ts +7 -0
  19. package/lib/elements/socia-icons/socia-icons.component.d.ts +2 -0
  20. package/lib/sections/banner-section/banner-section.component.d.ts +3 -1
  21. package/lib/sections/faq-section/faq-section.component.d.ts +3 -0
  22. package/lib/sections/footer-section/footer-section.component.d.ts +3 -1
  23. package/lib/sections/image-carousel-section/image-carousel-section.component.d.ts +3 -1
  24. package/lib/sections/image-section/image-section.component.d.ts +3 -0
  25. package/lib/sections/navbar-section/navbar-section.component.d.ts +5 -1
  26. package/lib/sections/navbar-section/navbar-section.model.d.ts +2 -1
  27. package/lib/sections/testimonial-section/testimonial-section.component.d.ts +3 -0
  28. package/lib/sections/text-section/text-section.component.d.ts +3 -1
  29. package/lib/sections/video-section/video-section.component.d.ts +3 -1
  30. package/lib/styles/style.model.d.ts +11 -1
  31. package/lib/styles/types.d.ts +1 -0
  32. package/package.json +1 -1
  33. package/simpo-component-library-0.1.5.tgz +0 -0
  34. package/simpo-component-library-0.1.3.tgz +0 -0
@@ -0,0 +1,7 @@
1
+ import { HeaderButtonModel } from './../../styles/style.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class NavbarButtonElementComponent {
4
+ buttonData?: HeaderButtonModel;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NavbarButtonElementComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavbarButtonElementComponent, "simpo-navbar-button-element", never, { "buttonData": { "alias": "buttonData"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -5,6 +5,8 @@ export declare class SociaIconsComponent implements OnInit {
5
5
  color: any;
6
6
  constructor();
7
7
  ngOnInit(): void;
8
+ screenWidth: number;
9
+ getScreenSize(event?: number): void;
8
10
  static ɵfac: i0.ɵɵFactoryDeclaration<SociaIconsComponent, never>;
9
11
  static ɵcmp: i0.ɵɵComponentDeclaration<SociaIconsComponent, "simpo-socia-icons", never, { "socialIconData": { "alias": "socialIconData"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
10
12
  }
@@ -1,13 +1,15 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { BannerContentModel, BannerSectionModel } from './banner-section.model';
3
3
  import { BannerStylesModel } from '../../styles/style.model';
4
+ import { EventsService } from './../../services/events.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class BannerSectionComponent implements OnInit {
7
+ private _eventService;
6
8
  data?: BannerSectionModel;
7
9
  index?: number;
8
10
  content?: BannerContentModel;
9
11
  styles?: BannerStylesModel;
10
- constructor();
12
+ constructor(_eventService: EventsService);
11
13
  ngOnInit(): void;
12
14
  showEditors: boolean;
13
15
  showEditTabs(isShow: boolean): void;
@@ -1,10 +1,13 @@
1
1
  import { FAQContentModal, FAQSectionModal, FAQStylesModel } from './faq-section.modal';
2
+ import { EventsService } from './../../services/events.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class FaqSectionComponent {
5
+ private _eventService;
4
6
  data?: FAQSectionModal;
5
7
  index?: number;
6
8
  content?: FAQContentModal;
7
9
  style?: FAQStylesModel;
10
+ constructor(_eventService: EventsService);
8
11
  ngOnInit(): void;
9
12
  showEditors: boolean;
10
13
  showEditTabs(isShow: boolean): void;
@@ -1,15 +1,17 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { FooterContentModel, FooterSectionModel, FooterStylesModel } from './footer-section.modal';
3
3
  import { FooterTypes } from '../../styles/index';
4
+ import { EventsService } from './../../services/events.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class FooterSectionComponent implements OnInit {
7
+ private _eventService;
6
8
  data?: FooterSectionModel;
7
9
  index?: number;
8
10
  content?: FooterContentModel;
9
11
  style?: FooterStylesModel;
10
12
  color: any;
11
13
  footerTypes: typeof FooterTypes;
12
- constructor();
14
+ constructor(_eventService: EventsService);
13
15
  ngOnInit(): void;
14
16
  showEditors: boolean;
15
17
  showEditTabs(isShow: any): void;
@@ -1,11 +1,13 @@
1
1
  import { ImageCarouselSection, ImageCarouselSectionContentModel, ImageCarouselSectionStylesModel } from './image-carousel.model';
2
+ import { EventsService } from './../../services/events.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class ImageCarouselSectionComponent {
5
+ private _eventService;
4
6
  data?: ImageCarouselSection;
5
7
  index?: number;
6
8
  content?: ImageCarouselSectionContentModel;
7
9
  style?: ImageCarouselSectionStylesModel;
8
- constructor();
10
+ constructor(_eventService: EventsService);
9
11
  ngOnInit(): void;
10
12
  screenWidth: number;
11
13
  getScreenSize(event?: number): void;
@@ -1,12 +1,15 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { ImageContentModal, imageSectionModel, imageSectionStylesModel } from './image-section.model';
3
+ import { EventsService } from './../../services/events.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class ImageSectionComponent {
6
+ private _eventService;
5
7
  data?: imageSectionModel;
6
8
  index?: number;
7
9
  _mainContainer: ElementRef | null;
8
10
  content?: ImageContentModal;
9
11
  style?: imageSectionStylesModel;
12
+ constructor(_eventService: EventsService);
10
13
  ngOnInit(): void;
11
14
  showEditors: boolean;
12
15
  showEditTabs(isShow: boolean): void;
@@ -1,15 +1,19 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './navbar-section.model';
3
+ import { EventsService } from './../../services/events.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class NavbarSectionComponent implements OnInit {
6
+ private _eventService;
5
7
  data?: HeaderSectionModel;
6
8
  index?: number;
7
9
  content?: HeaderContentModel;
8
10
  style?: HeaderStyleModel;
9
11
  color: string;
10
- constructor();
12
+ constructor(_eventService: EventsService);
11
13
  ngOnInit(): void;
12
14
  screenWidth: number;
15
+ getScreenSize(event?: number): void;
16
+ close(): void;
13
17
  static ɵfac: i0.ɵɵFactoryDeclaration<NavbarSectionComponent, never>;
14
18
  static ɵcmp: i0.ɵɵComponentDeclaration<NavbarSectionComponent, "simpo-navbar-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
15
19
  }
@@ -1,4 +1,4 @@
1
- import { BackgroundModel, ButtonModel, InputTextModel } from "@simpo-ui/styles/style.model";
1
+ import { BackgroundModel, ButtonModel, HeaderButtonModel, InputTextModel } from "../../styles/style.model";
2
2
  import { FooterLayoutModel, FooterLogoModel, FooterSocialChannelModel } from "../footer-section/footer-section.modal";
3
3
  export interface HeaderSectionModel {
4
4
  id: string;
@@ -14,6 +14,7 @@ export interface HeaderContentModel {
14
14
  buttons: ButtonModel[];
15
15
  isSocialLink: boolean;
16
16
  socialLinks: FooterSocialChannelModel[];
17
+ navbarButtons: HeaderButtonModel[];
17
18
  }
18
19
  export interface HeaderStyleModel {
19
20
  layout: FooterLayoutModel;
@@ -1,12 +1,15 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { testimonialContentModel, testimonialSectionModel, testimonialStylesModel } from './testimonial-section.model';
3
+ import { EventsService } from './../../services/events.service';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class TestimonialSectionComponent {
6
+ private _eventService;
5
7
  data?: testimonialSectionModel;
6
8
  index?: number;
7
9
  _mainContainer: ElementRef | null;
8
10
  content?: testimonialContentModel;
9
11
  style?: testimonialStylesModel;
12
+ constructor(_eventService: EventsService);
10
13
  ngOnInit(): void;
11
14
  showEditors: boolean;
12
15
  showEditTabs(isShow: boolean): void;
@@ -2,15 +2,17 @@ import { ElementRef, OnInit } from '@angular/core';
2
2
  import { TextContentModel, TextSectionModel } from './text-section.model';
3
3
  import { StylesModel } from '../../styles/style.model';
4
4
  import { MatDialog } from '@angular/material/dialog';
5
+ import { EventsService } from './../../services/events.service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class TextSectionComponent implements OnInit {
7
8
  private _dialog;
9
+ private _eventService;
8
10
  data?: TextSectionModel;
9
11
  index?: number;
10
12
  _mainContainer: ElementRef | null;
11
13
  content: TextContentModel | undefined;
12
14
  styles: StylesModel | undefined;
13
- constructor(_dialog: MatDialog);
15
+ constructor(_dialog: MatDialog, _eventService: EventsService);
14
16
  ngOnInit(): void;
15
17
  showEditors: boolean;
16
18
  showEditTabs(isShow: boolean): void;
@@ -1,10 +1,12 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { videoSectionContentModel, videoSectionModel, videoSectionStyleModel } from './video-section.model';
3
3
  import { DomSanitizer } from '@angular/platform-browser';
4
+ import { EventsService } from './../../services/events.service';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class VideoSectionComponent {
6
7
  dom: DomSanitizer;
7
- constructor(dom: DomSanitizer);
8
+ private _eventService;
9
+ constructor(dom: DomSanitizer, _eventService: EventsService);
8
10
  data?: videoSectionModel;
9
11
  index?: number;
10
12
  _mainContainer: ElementRef | null;
@@ -1,5 +1,5 @@
1
1
  import { AlignContent, Corners, ImageFit, ImageRatio, RedirectionLinkType, TextPosition } from '.';
2
- import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION } from './types';
2
+ import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION, HEADER_BUTTON_STYE } from './types';
3
3
  export interface SpacingModel {
4
4
  top: SPACING_TYPE;
5
5
  bottom: SPACING_TYPE;
@@ -121,6 +121,11 @@ export interface ButtonStyleModel {
121
121
  type: BUTTON_TYPE;
122
122
  shape: BUTTON_SHAPE;
123
123
  }
124
+ export interface HeaderButtonStyleModel {
125
+ type: HEADER_BUTTON_STYE;
126
+ color: string;
127
+ backgroundColor: string;
128
+ }
124
129
  export interface ActionModel {
125
130
  display: boolean;
126
131
  buttons: ButtonModel[];
@@ -130,3 +135,8 @@ export interface ButtonModel {
130
135
  content: Button;
131
136
  styles: ButtonStyleModel;
132
137
  }
138
+ export interface HeaderButtonModel {
139
+ id: string;
140
+ content: Button;
141
+ styles: HeaderButtonStyleModel;
142
+ }
@@ -14,3 +14,4 @@ export type SOCIAL_ICON_SIZE = 'large' | 'medium' | 'small';
14
14
  export type SOCIAL_ICON_SHAPE = 'circle' | 'square' | 'rounded';
15
15
  export type SOCIAL_ICON_TYPE = 'solid' | 'outline';
16
16
  export type SITE_NAME_LOGo = 'custom' | 'same as header';
17
+ export type HEADER_BUTTON_STYE = 'Tab' | 'Round subtle' | 'Round bold' | 'Square subtle' | 'Square bold';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file