simpo-component-library 0.7.8 → 0.8.0

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 (27) hide show
  1. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +4 -4
  2. package/esm2022/lib/sections/contact-us/contact-us.modal.mjs +1 -1
  3. package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
  4. package/esm2022/lib/sections/header-text/header-text.component.mjs +84 -0
  5. package/esm2022/lib/sections/header-text/header-text.model.mjs +2 -0
  6. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +4 -4
  7. package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
  8. package/esm2022/lib/sections/location-section/location-section.component.mjs +165 -0
  9. package/esm2022/lib/sections/location-section/location-section.modal.mjs +2 -0
  10. package/esm2022/lib/styles/index.mjs +19 -1
  11. package/esm2022/public-api.mjs +3 -1
  12. package/fesm2022/simpo-component-library.mjs +228 -11
  13. package/fesm2022/simpo-component-library.mjs.map +1 -1
  14. package/lib/directive/background-directive.d.ts +1 -1
  15. package/lib/directive/button-directive.directive.d.ts +1 -1
  16. package/lib/directive/color.directive.d.ts +1 -1
  17. package/lib/sections/contact-us/contact-us.modal.d.ts +7 -1
  18. package/lib/sections/header-text/header-text.component.d.ts +22 -0
  19. package/lib/sections/header-text/header-text.model.d.ts +18 -0
  20. package/lib/sections/location-section/location-section.component.d.ts +33 -0
  21. package/lib/sections/location-section/location-section.modal.d.ts +32 -0
  22. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  23. package/lib/styles/index.d.ts +14 -0
  24. package/package.json +1 -1
  25. package/public-api.d.ts +2 -0
  26. package/simpo-component-library-0.8.0.tgz +0 -0
  27. package/simpo-component-library-0.7.8.tgz +0 -0
@@ -10,7 +10,7 @@ export declare class BackgroundDirective implements OnChanges {
10
10
  constructor(el: ElementRef, eventService: EventsService);
11
11
  ngOnDestroy(): void;
12
12
  ngOnChanges(change: SimpleChanges): void;
13
- getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
13
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
15
15
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; }, {}, never, never, true, never>;
16
16
  }
@@ -14,7 +14,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
14
14
  applyButtonStyleChanges(): void;
15
15
  applyButtonType(style: ButtonStyleModel, color: string): void;
16
16
  applyButtonShape(style: ButtonStyleModel): void;
17
- getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
17
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
18
18
  buttonStyleSubscription?: Subscription;
19
19
  buttonStyleChangeCheck(): void;
20
20
  changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
15
+ getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -1,6 +1,7 @@
1
- import { InputTextModel, PositionLayoutModal, StylesModel } from "../../styles/style.model";
1
+ import { InputTextModel, PositionLayoutModal, StylesModel, Image } from "../../styles/style.model";
2
2
  import { INPUT_FIELDS_TYPE } from "../../styles/types";
3
3
  import { ActionModel } from "../../styles/style.model";
4
+ import { Corners } from "./../../styles/index";
4
5
  export interface ContactUsModel {
5
6
  id: string;
6
7
  sectionType: string;
@@ -12,10 +13,15 @@ export interface ContactUsModel {
12
13
  export interface ContactUsStylesModel extends StylesModel {
13
14
  positionLayout: PositionLayoutModal;
14
15
  inputOpacity: number;
16
+ corners: Corners;
15
17
  }
16
18
  export interface ContactUsContentModel {
17
19
  inputText: InputTextModel[];
18
20
  contactField: ContactUsField;
21
+ image: ImageModel;
22
+ }
23
+ export interface ImageModel extends Image {
24
+ showImage: boolean;
19
25
  }
20
26
  export interface ContactUsField {
21
27
  customLabel: boolean;
@@ -0,0 +1,22 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ActionModel } from '../../styles/style.model';
3
+ import { HeaderTextStylesModel } from './header-text.model';
4
+ import BaseSection from '../BaseSection';
5
+ import { EventsService } from './../../services/events.service';
6
+ import { HeaderTextContentModel, HeaderTextModel } from './header-text.model';
7
+ import * as i0 from "@angular/core";
8
+ export declare class HeaderTextComponent extends BaseSection implements OnInit {
9
+ private _eventService;
10
+ data?: HeaderTextModel;
11
+ index?: number;
12
+ edit?: boolean;
13
+ delete?: boolean;
14
+ id: string;
15
+ action: ActionModel;
16
+ content?: HeaderTextContentModel;
17
+ styles?: HeaderTextStylesModel;
18
+ constructor(_eventService: EventsService);
19
+ ngOnInit(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderTextComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderTextComponent, "simpo-header-text", 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
+ }
@@ -0,0 +1,18 @@
1
+ import { ActionModel, InputTextModel, PositionLayoutModal, StylesModel } from "./../../styles/style.model";
2
+ export interface HeaderTextModel {
3
+ id: string;
4
+ sectionType: string;
5
+ sectionName: string;
6
+ content: HeaderTextContentModel;
7
+ styles: HeaderTextStylesModel;
8
+ action: ActionModel;
9
+ }
10
+ export interface HeaderTextContentModel {
11
+ inputText: InputTextModel[];
12
+ }
13
+ export interface textModel {
14
+ value: string;
15
+ }
16
+ export interface HeaderTextStylesModel extends StylesModel {
17
+ positionLayout: PositionLayoutModal;
18
+ }
@@ -0,0 +1,33 @@
1
+ import { NgZone } from '@angular/core';
2
+ import { LocationContentModel, LocationSectionModel, LocationStyleModel } from './location-section.modal';
3
+ import { EventsService } from './../../services/events.service';
4
+ import BaseSection from '../BaseSection';
5
+ import * as mapboxgl from 'mapbox-gl';
6
+ import { Subscription } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ export declare class LocationSectionComponent extends BaseSection {
9
+ private zone;
10
+ private _eventService;
11
+ data?: LocationSectionModel;
12
+ index?: number;
13
+ edit?: boolean;
14
+ delete?: boolean;
15
+ styles?: LocationStyleModel;
16
+ content?: LocationContentModel;
17
+ constructor(zone: NgZone, _eventService: EventsService);
18
+ map: mapboxgl.Map;
19
+ style: string;
20
+ latitude: number;
21
+ longitude: number;
22
+ ngOnInit(): void;
23
+ ngAfterViewInit(): void;
24
+ accessToken: string;
25
+ getCurrentLocation(): Promise<void>;
26
+ goToLocation(): void;
27
+ locationChangeSubscription?: Subscription;
28
+ checkLocationChange(): void;
29
+ mapStyleSubscription?: Subscription;
30
+ checkMapStyleChange(): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocationSectionComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<LocationSectionComponent, "simpo-location-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>;
33
+ }
@@ -0,0 +1,32 @@
1
+ import { MAP_STYLE } from './../../styles/types';
2
+ import { Corners, MapType } from './../../styles/index';
3
+ import { InputTextModel, ListItemModal, PositionLayoutModal, StylesModel } from './../../styles/style.model';
4
+ export interface LocationSectionModel {
5
+ id: string;
6
+ sectionType: string;
7
+ sectionName: string;
8
+ content: LocationContentModel;
9
+ styles: LocationStyleModel;
10
+ }
11
+ export interface textModel {
12
+ value: string;
13
+ }
14
+ export interface LocationContentModel {
15
+ inputText: InputTextModel[];
16
+ address: AddressModel;
17
+ listItem: ListItemModal<LocationItemModel>;
18
+ }
19
+ export interface AddressModel {
20
+ name: string;
21
+ latitude: number;
22
+ longitude: number;
23
+ }
24
+ export interface LocationItemModel {
25
+ inputText: InputTextModel[];
26
+ }
27
+ export interface LocationStyleModel extends StylesModel {
28
+ positionLayout: PositionLayoutModal;
29
+ corners: Corners;
30
+ mapType: MapType;
31
+ mapStyle: MAP_STYLE;
32
+ }
@@ -14,7 +14,7 @@ export declare class PricingSectionComponent extends BaseSection {
14
14
  style?: PricingSectionStylesModel;
15
15
  constructor(_eventService: EventsService);
16
16
  ngOnInit(): void;
17
- getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
17
+ getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
19
19
  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
20
  }
@@ -93,6 +93,20 @@ export declare enum Corners {
93
93
  Large = "Large",
94
94
  None = "None"
95
95
  }
96
+ export declare enum logoType {
97
+ Basic = "Basic",
98
+ Boxed = "Boxed"
99
+ }
100
+ export declare enum logoSpeed {
101
+ Slow = "1s",
102
+ Normal = "4s",
103
+ Fast = "2s",
104
+ VeryFast = "1s"
105
+ }
106
+ export declare enum logoDirection {
107
+ Left = "Left",
108
+ Right = "Right"
109
+ }
96
110
  export declare enum TextPosition {
97
111
  BELOW_IMAGE = "Below image",
98
112
  TOP_OF_IMAGE = "On top of image",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "0.7.8",
3
+ "version": "0.8.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -17,6 +17,8 @@ export * from './lib/sections/skeleton-loader-section/skeleton-loader-section.co
17
17
  export * from './lib/sections/banner-grid-section/banner-grid-section.component';
18
18
  export * from './lib/sections/choose-us-section/choose-us-section.component';
19
19
  export * from './lib/sections/pricing-section/pricing-section.component';
20
+ export * from './lib/sections/location-section/location-section.component';
21
+ export * from './lib/sections/header-text/header-text.component';
20
22
  export * from './lib/services/events.service';
21
23
  export * from './lib/directive/animation-directive';
22
24
  export * from './lib/directive/background-directive';
Binary file