simpo-component-library 0.7.7 → 0.7.9

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 (29) hide show
  1. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +66 -0
  2. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.model.mjs +2 -0
  3. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +57 -0
  4. package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +2 -0
  5. package/esm2022/lib/sections/header-text/header-text.component.mjs +84 -0
  6. package/esm2022/lib/sections/header-text/header-text.model.mjs +2 -0
  7. package/esm2022/lib/sections/location-section/location-section.component.mjs +170 -0
  8. package/esm2022/lib/sections/location-section/location-section.modal.mjs +2 -0
  9. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +75 -0
  10. package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +2 -0
  11. package/esm2022/lib/styles/index.mjs +19 -1
  12. package/esm2022/public-api.mjs +6 -1
  13. package/fesm2022/simpo-component-library.mjs +360 -1
  14. package/fesm2022/simpo-component-library.mjs.map +1 -1
  15. package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +19 -0
  16. package/lib/sections/banner-grid-section/banner-grid-section.model.d.ts +25 -0
  17. package/lib/sections/choose-us-section/choose-us-section.component.d.ts +18 -0
  18. package/lib/sections/choose-us-section/choose-us-section.model.d.ts +20 -0
  19. package/lib/sections/header-text/header-text.component.d.ts +22 -0
  20. package/lib/sections/header-text/header-text.model.d.ts +18 -0
  21. package/lib/sections/location-section/location-section.component.d.ts +33 -0
  22. package/lib/sections/location-section/location-section.modal.d.ts +32 -0
  23. package/lib/sections/pricing-section/pricing-section.component.d.ts +20 -0
  24. package/lib/sections/pricing-section/pricing-section.modal.d.ts +40 -0
  25. package/lib/styles/index.d.ts +14 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +5 -0
  28. package/simpo-component-library-0.7.9.tgz +0 -0
  29. package/simpo-component-library-0.7.7.tgz +0 -0
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { BannerGridSectionModel, BannerGridContentModel, BannerGridStylesModel } from './banner-grid-section.model';
3
+ import { EventsService } from '../../services/events.service';
4
+ import BaseSection from '../BaseSection';
5
+ import * as i0 from "@angular/core";
6
+ export declare class BannerGridSectionComponent extends BaseSection implements OnInit {
7
+ private _eventService;
8
+ data?: BannerGridSectionModel;
9
+ edit?: boolean;
10
+ content?: BannerGridContentModel;
11
+ styles?: BannerGridStylesModel;
12
+ delete?: boolean;
13
+ index?: number;
14
+ listItems: any;
15
+ constructor(_eventService: EventsService);
16
+ ngOnInit(): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<BannerGridSectionComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<BannerGridSectionComponent, "simpo-banner-grid-section", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,25 @@
1
+ import { Corners, AlignContent } from "./../../styles/index";
2
+ import { ActionModel, Image, ImageStyle, InputTextModel, ListItemModal, PositionLayoutModal, StylesModel } from "./../../styles/style.model";
3
+ export interface BannerGridSectionModel {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: BannerGridContentModel;
8
+ styles: BannerGridStylesModel;
9
+ action: ActionModel;
10
+ }
11
+ export interface BannerGridContentModel {
12
+ inputText: [InputTextModel];
13
+ listItem: ListItemModal<BannerGridItemModel>;
14
+ }
15
+ export interface BannerGridStylesModel extends StylesModel {
16
+ corners: Corners;
17
+ image: ImageStyle;
18
+ fullWidth: boolean;
19
+ invertImage: boolean;
20
+ contentAlignment: AlignContent;
21
+ positionLayout: PositionLayoutModal;
22
+ }
23
+ export interface BannerGridItemModel {
24
+ image: Image;
25
+ }
@@ -0,0 +1,18 @@
1
+ import { OnInit } from '@angular/core';
2
+ import BaseSection from '../BaseSection';
3
+ import { EventsService } from './../../services/events.service';
4
+ import { ChooseUsContentModal, ChooseUsStylesModel, ContactUsSectionModal } from './choose-us-section.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class ChooseUsSectionComponent extends BaseSection implements OnInit {
7
+ private _eventService;
8
+ data?: ContactUsSectionModal;
9
+ index?: number;
10
+ content?: ChooseUsContentModal;
11
+ edit?: boolean;
12
+ delete?: boolean;
13
+ styles?: ChooseUsStylesModel;
14
+ constructor(_eventService: EventsService);
15
+ ngOnInit(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChooseUsSectionComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ChooseUsSectionComponent, "simpo-choose-us-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>;
18
+ }
@@ -0,0 +1,20 @@
1
+ import { CardStyles, InputTextModel, ListItemModal, StylesModel, PositionLayoutModal } from './../../styles/style.model';
2
+ import { AlignContent } from '../../styles/index';
3
+ export interface ContactUsSectionModal {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: ChooseUsContentModal;
8
+ styles: ChooseUsStylesModel;
9
+ }
10
+ export interface ChooseUsContentModal {
11
+ inputText: InputTextModel[];
12
+ listItem: ListItemModal<ServiceItemModal>;
13
+ }
14
+ export interface ChooseUsStylesModel extends StylesModel, CardStyles {
15
+ positionLayout: PositionLayoutModal;
16
+ contentAlignment: AlignContent;
17
+ }
18
+ export interface ServiceItemModal {
19
+ inputText: InputTextModel[];
20
+ }
@@ -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
+ }
@@ -0,0 +1,20 @@
1
+ import { PricingSectionContentModal, PricingSectionModal, PricingSectionStylesModel } from './pricing-section.modal';
2
+ import { ButtonModel } from '../../styles/style.model';
3
+ import { EventsService } from '../../services/events.service';
4
+ import BaseSection from '../BaseSection';
5
+ import * as i0 from "@angular/core";
6
+ export declare class PricingSectionComponent extends BaseSection {
7
+ private _eventService;
8
+ data?: PricingSectionModal;
9
+ index?: number;
10
+ edit?: boolean;
11
+ delete?: boolean;
12
+ button?: ButtonModel;
13
+ content?: PricingSectionContentModal;
14
+ style?: PricingSectionStylesModel;
15
+ constructor(_eventService: EventsService);
16
+ ngOnInit(): void;
17
+ getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
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
+ }
@@ -0,0 +1,40 @@
1
+ import { Corners } from '../../styles/index';
2
+ import { ActionModel, Button, DisplaySection, Image, ImageStyle, InputTextModel, ListItemModal, StylesModel } from '../../styles/style.model';
3
+ export interface PricingSectionModal {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: PricingSectionContentModal;
8
+ styles: PricingSectionStylesModel;
9
+ action: ActionModel;
10
+ }
11
+ export interface PricingSectionContentModal {
12
+ inputText: InputTextModel[];
13
+ display: Display;
14
+ listItem: ListItemModal<PricingSectionItemModal>;
15
+ }
16
+ export interface Display extends DisplaySection {
17
+ showContent: boolean;
18
+ showImage: boolean;
19
+ showButton: boolean;
20
+ showIncludeditems: boolean;
21
+ }
22
+ export interface PricingSectionStylesModel extends StylesModel {
23
+ image: ImageStyle;
24
+ corners: Corners;
25
+ }
26
+ export interface PricingSectionItemModal {
27
+ image: Image;
28
+ inputText: InputTextModel[];
29
+ button: Button;
30
+ highlight: Highlight;
31
+ additionalData: AdditionalData[];
32
+ }
33
+ export interface Highlight {
34
+ id: any;
35
+ highlighted: boolean;
36
+ label: string;
37
+ }
38
+ export interface AdditionalData {
39
+ content: string;
40
+ }
@@ -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.7",
3
+ "version": "0.7.9",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -14,6 +14,11 @@ export * from './lib/sections/navbar-section/navbar-section.component';
14
14
  export * from './lib/sections/add-new-section/add-new-section.component';
15
15
  export * from './lib/sections/contact-us/contact-us.component';
16
16
  export * from './lib/sections/skeleton-loader-section/skeleton-loader-section.component';
17
+ export * from './lib/sections/banner-grid-section/banner-grid-section.component';
18
+ export * from './lib/sections/choose-us-section/choose-us-section.component';
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';
17
22
  export * from './lib/services/events.service';
18
23
  export * from './lib/directive/animation-directive';
19
24
  export * from './lib/directive/background-directive';
Binary file