simpo-component-library 0.7.8 → 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.
@@ -14,6 +14,7 @@ import * as i1 from '@angular/platform-browser';
14
14
  import * as i2$4 from '@angular/material/snack-bar';
15
15
  import * as i2$5 from 'ngx-skeleton-loader';
16
16
  import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
17
+ import * as mapboxgl from 'mapbox-gl';
17
18
 
18
19
  class ButtonElementComponent {
19
20
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: ButtonElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -267,6 +268,24 @@ var Corners;
267
268
  Corners["Large"] = "Large";
268
269
  Corners["None"] = "None";
269
270
  })(Corners || (Corners = {}));
271
+ // SOME CHANGES BY ME
272
+ var logoType;
273
+ (function (logoType) {
274
+ logoType["Basic"] = "Basic";
275
+ logoType["Boxed"] = "Boxed";
276
+ })(logoType || (logoType = {}));
277
+ var logoSpeed;
278
+ (function (logoSpeed) {
279
+ logoSpeed["Slow"] = "1s";
280
+ logoSpeed["Normal"] = "4s";
281
+ logoSpeed["Fast"] = "2s";
282
+ logoSpeed["VeryFast"] = "1s";
283
+ })(logoSpeed || (logoSpeed = {}));
284
+ var logoDirection;
285
+ (function (logoDirection) {
286
+ logoDirection["Left"] = "Left";
287
+ logoDirection["Right"] = "Right";
288
+ })(logoDirection || (logoDirection = {}));
270
289
  var TextPosition;
271
290
  (function (TextPosition) {
272
291
  TextPosition["BELOW_IMAGE"] = "Below image";
@@ -2704,6 +2723,209 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImpor
2704
2723
  type: Input
2705
2724
  }] } });
2706
2725
 
2726
+ class LocationSectionComponent extends BaseSection {
2727
+ constructor(zone, _eventService) {
2728
+ super();
2729
+ this.zone = zone;
2730
+ this._eventService = _eventService;
2731
+ this.style = `mapbox://styles/mapbox/`;
2732
+ this.latitude = 30.2672;
2733
+ this.longitude = -97.7431;
2734
+ this.accessToken = 'pk.eyJ1IjoibmFpZHUyNTA3IiwiYSI6ImNsZWxjcGlmZTB0ejkzb3BnMndzbmthM2cifQ.BJoCPnd81NYvx_2VUadF2w';
2735
+ }
2736
+ ngOnInit() {
2737
+ this.content = this.data?.content;
2738
+ this.styles = this.data?.styles;
2739
+ this.checkLocationChange();
2740
+ this.checkMapStyleChange();
2741
+ setTimeout(() => {
2742
+ if (this.styles) {
2743
+ this.styles.mapStyle = 'navigation_day';
2744
+ this._eventService.mapStyleChangeCheck.emit(this.styles.mapStyle);
2745
+ }
2746
+ }, 5000);
2747
+ }
2748
+ ngAfterViewInit() {
2749
+ this.zone.runOutsideAngular(() => {
2750
+ if (this.styles) {
2751
+ this.style += mapStyle[this.styles?.mapStyle];
2752
+ }
2753
+ if (this.content?.address.longitude == 0 && this.content.address.latitude == 0) {
2754
+ this.getCurrentLocation();
2755
+ }
2756
+ else {
2757
+ this.goToLocation();
2758
+ }
2759
+ });
2760
+ }
2761
+ async getCurrentLocation() {
2762
+ if (typeof navigator !== 'undefined' && navigator.geolocation) {
2763
+ await navigator.geolocation.getCurrentPosition((position) => {
2764
+ if (this.content) {
2765
+ this.content.address.longitude = position.coords.longitude;
2766
+ this.content.address.latitude = position.coords.latitude;
2767
+ }
2768
+ this.map = new mapboxgl.Map({
2769
+ container: 'map',
2770
+ style: this.style,
2771
+ zoom: 12,
2772
+ pitch: 0,
2773
+ bearing: 0,
2774
+ accessToken: this.accessToken,
2775
+ });
2776
+ setTimeout(() => {
2777
+ this.map.addControl(new mapboxgl.NavigationControl());
2778
+ this.map?.flyTo({
2779
+ center: [(this.content?.address.longitude || 0), (this.content?.address.latitude || 0)],
2780
+ });
2781
+ new mapboxgl.Marker({ color: this.styles?.background.color })
2782
+ .setLngLat([(this.content?.address.longitude || 0), (this.content?.address.latitude || 0)])
2783
+ .addTo(this.map);
2784
+ }, 0);
2785
+ }, () => {
2786
+ if (this.content?.address?.longitude && this.content?.address?.latitude) {
2787
+ this.content.address.longitude = 0;
2788
+ this.content.address.latitude = 0;
2789
+ }
2790
+ this.map = new mapboxgl.Map({
2791
+ container: 'map',
2792
+ style: this.style,
2793
+ zoom: 2,
2794
+ pitch: 0,
2795
+ bearing: 0,
2796
+ accessToken: this.accessToken,
2797
+ });
2798
+ setTimeout(() => {
2799
+ this.map.flyTo({
2800
+ center: [(this.content?.address.longitude || 0), (this.content?.address.latitude || 0)],
2801
+ });
2802
+ new mapboxgl.Marker({ color: this.styles?.background.color })
2803
+ .setLngLat([(this.content?.address.longitude || 0), (this.content?.address.latitude || 0)])
2804
+ .addTo(this.map);
2805
+ }, 0);
2806
+ });
2807
+ }
2808
+ }
2809
+ goToLocation() {
2810
+ this.map = new mapboxgl.Map({
2811
+ container: 'map',
2812
+ style: this.style,
2813
+ zoom: 12,
2814
+ pitch: 0,
2815
+ bearing: 0,
2816
+ accessToken: this.accessToken,
2817
+ });
2818
+ this.map?.flyTo({
2819
+ center: [(this.content?.address?.longitude || 0), (this.content?.address?.latitude || 0)],
2820
+ });
2821
+ new mapboxgl.Marker({ color: this.styles?.background.color })
2822
+ .setLngLat([(this.content?.address?.longitude || 0), (this.content?.address?.latitude || 0)])
2823
+ .addTo(this.map);
2824
+ }
2825
+ checkLocationChange() {
2826
+ this.locationChangeSubscription?.unsubscribe();
2827
+ this.locationChangeSubscription = this._eventService.locationChangeCheck.subscribe((res) => {
2828
+ if (this.content) {
2829
+ this.content.address = res;
2830
+ this.goToLocation();
2831
+ }
2832
+ });
2833
+ }
2834
+ checkMapStyleChange() {
2835
+ this.mapStyleSubscription?.unsubscribe();
2836
+ this._eventService.mapStyleChangeCheck.subscribe((res) => {
2837
+ if (this.map) {
2838
+ this.style = `mapbox://styles/mapbox/` + mapStyle[res];
2839
+ this.map.setStyle(this.style);
2840
+ }
2841
+ });
2842
+ }
2843
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: LocationSectionComponent, deps: [{ token: i0.NgZone }, { token: EventsService }], target: i0.ɵɵFactoryTarget.Component }); }
2844
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: LocationSectionComponent, isStandalone: true, selector: "simpo-location-section", inputs: { data: "data", index: "index", edit: "edit", delete: "delete" }, usesInheritance: true, ngImport: i0, template: "<section [id]=\"data?.id\" [simpoBackground]=\"styles?.background\" simpoHover (hovering)=\"showEditTabs($event)\" class=\"total-container\">\r\n <div class=\"col-xxl-8 px-4 py-5 w-100\" [id]=\"data?.id\" #mainContainer [simpoOverlay]=\"styles?.background\" [simpoBorder]=\"styles?.border\">\r\n <div class=\"row g-5\" [id]=\"data?.id\"\r\n [simpoAnimation]=\"styles?.animation\" [simpoLayout]=\"styles?.layout\" [simpoPositionLayoutDirective]=\"styles?.positionLayout\">\r\n <div class=\"col-10 col-sm-8 col-lg-6 display-flex justify-center\">\r\n <div class=\"map\" [simpoCorner]=\"styles?.corners\" id=\"map\"></div>\r\n </div>\r\n <div class=\"col-lg-6 d-flex flex-column justify-content-start gap-15\">\r\n <div *ngFor=\"let item of content?.inputText\">\r\n <div [innerHTML]=\"item.value\" [ngClass]=\"item.label === 'Heading' ? 'heading-large lh-2 mb-3' : 'body-large'\"></div>\r\n <div class=\"body-large\" [innerHTML]=\"content?.address?.name\"></div>\r\n </div>\r\n <div *ngFor=\"let item of content?.listItem?.data\">\r\n <div *ngFor=\"let input of item?.inputText;let i = index\">\r\n <div [innerHTML]=\"input.value\" [ngClass]=\"i == 0 ? 'heading-large lh-2 mb-3' : 'body-large'\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n </div>\r\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n </div>\r\n</section>\r\n", styles: [".map{width:90%;height:400px}.display-flex{display:flex}.bg-map{width:100%;height:100%}html,body,.map-container{height:100%;margin:0;padding:0}.justify-center{justify-content:center}.hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.total-container{position:relative;height:auto}.background-map{display:block!important;position:relative;padding-top:0!important;padding-bottom:0!important}.data{position:absolute;top:10%;left:3%;padding:20px}agm-map{height:calc(100vh + -0px)}@media screen and (max-width: 475px){.map{width:100%}}\n"], dependencies: [{ kind: "ngmodule", type: SimpoElementsModule }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions"], outputs: ["edit"] }, { kind: "component", type: DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "ngmodule", type: MatGridListModule }, { kind: "directive", type:
2845
+ //directive
2846
+ AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "directive", type: CornerDirective, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "directive", type: OverlayDirective, selector: "[simpoOverlay]", inputs: ["simpoOverlay"] }, { kind: "directive", type: PositionLayoutDirectiveDirective, selector: "[simpoPositionLayoutDirective]", inputs: ["simpoPositionLayoutDirective"] }] }); }
2847
+ }
2848
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: LocationSectionComponent, decorators: [{
2849
+ type: Component,
2850
+ args: [{ selector: 'simpo-location-section', standalone: true, imports: [
2851
+ SimpoElementsModule,
2852
+ CommonModule,
2853
+ SimpoComponentModule,
2854
+ MatGridListModule,
2855
+ //directive
2856
+ AnimationDirective,
2857
+ BackgroundDirective,
2858
+ BorderDirective,
2859
+ ContentFitDirective,
2860
+ CornerDirective,
2861
+ HoverDirective,
2862
+ OverlayDirective,
2863
+ PositionLayoutDirectiveDirective
2864
+ ], template: "<section [id]=\"data?.id\" [simpoBackground]=\"styles?.background\" simpoHover (hovering)=\"showEditTabs($event)\" class=\"total-container\">\r\n <div class=\"col-xxl-8 px-4 py-5 w-100\" [id]=\"data?.id\" #mainContainer [simpoOverlay]=\"styles?.background\" [simpoBorder]=\"styles?.border\">\r\n <div class=\"row g-5\" [id]=\"data?.id\"\r\n [simpoAnimation]=\"styles?.animation\" [simpoLayout]=\"styles?.layout\" [simpoPositionLayoutDirective]=\"styles?.positionLayout\">\r\n <div class=\"col-10 col-sm-8 col-lg-6 display-flex justify-center\">\r\n <div class=\"map\" [simpoCorner]=\"styles?.corners\" id=\"map\"></div>\r\n </div>\r\n <div class=\"col-lg-6 d-flex flex-column justify-content-start gap-15\">\r\n <div *ngFor=\"let item of content?.inputText\">\r\n <div [innerHTML]=\"item.value\" [ngClass]=\"item.label === 'Heading' ? 'heading-large lh-2 mb-3' : 'body-large'\"></div>\r\n <div class=\"body-large\" [innerHTML]=\"content?.address?.name\"></div>\r\n </div>\r\n <div *ngFor=\"let item of content?.listItem?.data\">\r\n <div *ngFor=\"let input of item?.inputText;let i = index\">\r\n <div [innerHTML]=\"input.value\" [ngClass]=\"i == 0 ? 'heading-large lh-2 mb-3' : 'body-large'\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n </div>\r\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n </div>\r\n</section>\r\n", styles: [".map{width:90%;height:400px}.display-flex{display:flex}.bg-map{width:100%;height:100%}html,body,.map-container{height:100%;margin:0;padding:0}.justify-center{justify-content:center}.hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.total-container{position:relative;height:auto}.background-map{display:block!important;position:relative;padding-top:0!important;padding-bottom:0!important}.data{position:absolute;top:10%;left:3%;padding:20px}agm-map{height:calc(100vh + -0px)}@media screen and (max-width: 475px){.map{width:100%}}\n"] }]
2865
+ }], ctorParameters: () => [{ type: i0.NgZone }, { type: EventsService }], propDecorators: { data: [{
2866
+ type: Input
2867
+ }], index: [{
2868
+ type: Input
2869
+ }], edit: [{
2870
+ type: Input
2871
+ }], delete: [{
2872
+ type: Input
2873
+ }] } });
2874
+
2875
+ class HeaderTextComponent extends BaseSection {
2876
+ constructor(_eventService) {
2877
+ super();
2878
+ this._eventService = _eventService;
2879
+ }
2880
+ ngOnInit() {
2881
+ this.deleteSelected = this.delete;
2882
+ this.content = this.data?.content;
2883
+ this.styles = this.data?.styles;
2884
+ const id = this.data?.id;
2885
+ const action = this.data?.action;
2886
+ if (!this.styles || !this.content)
2887
+ return;
2888
+ // this.styles.layout.bannerImageDisplay = this.content.image.showImage;
2889
+ }
2890
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: HeaderTextComponent, deps: [{ token: EventsService }], target: i0.ɵɵFactoryTarget.Component }); }
2891
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: HeaderTextComponent, isStandalone: true, selector: "simpo-header-text", inputs: { data: "data", index: "index", edit: "edit", delete: "delete" }, usesInheritance: true, ngImport: i0, template: "<div [id]=\"data?.id\" [simpoBackground]=\"styles?.background\" simpoHover (hovering)=\"showEditTabs($event)\"\r\n class=\"total-container\">\r\n <div class=\"col-xxl-8 px-4 py-5 w-100\" [id]=\"data?.id\" #mainContainer [simpoOverlay]=\"styles?.background\"\r\n [simpoBorder]=\"styles?.border\">\r\n <div class=\"flex-column row g-2\" [id]=\"data?.id\" [simpoAnimation]=\"styles?.animation\"\r\n [simpoLayout]=\"styles?.layout\" [simpoPositionLayoutDirective]=\"styles?.positionLayout\"\r\n [ngClass]=\"{ 'align-items-center': styles?.positionLayout?.value === 'left' || styles?.positionLayout?.value === 'right' }\">\r\n <div class=\"col px-5\" [id]=\"data?.id\">\r\n <div *ngFor=\"let item of content?.inputText\">\r\n <div *ngIf=\"item.label === 'Tagline' || item.label === 'Heading'\" [innerHTML]=\"item.value\"\r\n [ngClass]=\"item.label === 'Heading' ? 'heading-large lh-2 mb-3' : 'body-large'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"col px-5\" [id]=\"data?.id\">\r\n <div *ngFor=\"let item of content?.inputText\">\r\n <div *ngIf=\"item.label === 'Subtext'\" [innerHTML]=\"item.value\" class=\"body-large\">\r\n </div>\r\n </div>\r\n\r\n\r\n <div *ngIf=\"data?.action && data?.action?.display\" class=\"d-flex gap-2 d-md-flex mt-15\" [ngClass]=\"[\r\n styles?.layout?.align === 'left' ? 'justify-content-md-start' : '',\r\n styles?.layout?.align === 'center' ? 'justify-content-md-center' : '',\r\n styles?.layout?.align === 'right' ? 'justify-content-md-end' : ''\r\n ]\">\r\n <div *ngFor=\"let button of data?.action?.buttons\">\r\n <app-button-element [buttonContent]=\"button.content\" [buttonStyle]=\"button.styles\"\r\n [buttonId]=\"button.id\" [sectionId]=\"data?.id\"\r\n [color]=\"data?.styles?.background?.accentColor\"></app-button-element>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n </div>\r\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n </div>\r\n </div>\r\n</div>", styles: [".hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.total-container{position:relative;height:auto}.button-display{display:flex;gap:10px;margin-top:15px}.gap-15{gap:15px}.btn-primary{border:none}@media only screen and (max-width: 475px){.col-10{width:100%;height:32vh;padding-right:13px;padding-left:13px}.flex-column{flex-direction:column!important}.d-flex{justify-content:center}}\n"], dependencies: [{ kind: "ngmodule", type: SimpoElementsModule }, { kind: "component", type: SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "buttonId", "color", "sectionId"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: HoverElementsComponent, selector: "simpo-hover-elements", inputs: ["data", "index", "editOptions"], outputs: ["edit"] }, { kind: "component", type: DeleteHoverElementComponent, selector: "simpo-delete-hover-element", inputs: ["index", "data"], outputs: ["edit"] }, { kind: "ngmodule", type: MatGridListModule }, { kind: "directive", type: AnimationDirective, selector: "[simpoAnimation]", inputs: ["simpoAnimation"] }, { kind: "directive", type: BackgroundDirective, selector: "[simpoBackground]", inputs: ["simpoBackground"] }, { kind: "directive", type: ContentFitDirective, selector: "[simpoLayout]", inputs: ["simpoLayout"] }, { kind: "directive", type: BorderDirective, selector: "[simpoBorder]", inputs: ["simpoBorder"] }, { kind: "directive", type: HoverDirective, selector: "[simpoHover]", outputs: ["hovering"] }, { kind: "directive", type: OverlayDirective, selector: "[simpoOverlay]", inputs: ["simpoOverlay"] }, { kind: "directive", type: PositionLayoutDirectiveDirective, selector: "[simpoPositionLayoutDirective]", inputs: ["simpoPositionLayoutDirective"] }] }); }
2892
+ }
2893
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: HeaderTextComponent, decorators: [{
2894
+ type: Component,
2895
+ args: [{ selector: 'simpo-header-text', standalone: true, imports: [
2896
+ SimpoElementsModule,
2897
+ CommonModule,
2898
+ SimpoComponentModule,
2899
+ MatGridListModule,
2900
+ SimpoButtonComponent,
2901
+ AnimationDirective,
2902
+ BackgroundDirective,
2903
+ ContentFitDirective,
2904
+ BannerContentFitDirective,
2905
+ BorderDirective,
2906
+ ButtonDirectiveDirective,
2907
+ ColumnDirectiveDirective,
2908
+ ContainerFitDirective,
2909
+ simpoConetenAlignmentDirective,
2910
+ CornerDirective,
2911
+ SimpoFooterLayoutDirective,
2912
+ HoverDirective,
2913
+ ImageDirectiveDirective,
2914
+ OverlayDirective,
2915
+ PositionLayoutDirectiveDirective,
2916
+ TextBackgroundDirectiveDirective,
2917
+ ObjectPositionDirective
2918
+ ], template: "<div [id]=\"data?.id\" [simpoBackground]=\"styles?.background\" simpoHover (hovering)=\"showEditTabs($event)\"\r\n class=\"total-container\">\r\n <div class=\"col-xxl-8 px-4 py-5 w-100\" [id]=\"data?.id\" #mainContainer [simpoOverlay]=\"styles?.background\"\r\n [simpoBorder]=\"styles?.border\">\r\n <div class=\"flex-column row g-2\" [id]=\"data?.id\" [simpoAnimation]=\"styles?.animation\"\r\n [simpoLayout]=\"styles?.layout\" [simpoPositionLayoutDirective]=\"styles?.positionLayout\"\r\n [ngClass]=\"{ 'align-items-center': styles?.positionLayout?.value === 'left' || styles?.positionLayout?.value === 'right' }\">\r\n <div class=\"col px-5\" [id]=\"data?.id\">\r\n <div *ngFor=\"let item of content?.inputText\">\r\n <div *ngIf=\"item.label === 'Tagline' || item.label === 'Heading'\" [innerHTML]=\"item.value\"\r\n [ngClass]=\"item.label === 'Heading' ? 'heading-large lh-2 mb-3' : 'body-large'\"></div>\r\n </div>\r\n </div>\r\n <div class=\"col px-5\" [id]=\"data?.id\">\r\n <div *ngFor=\"let item of content?.inputText\">\r\n <div *ngIf=\"item.label === 'Subtext'\" [innerHTML]=\"item.value\" class=\"body-large\">\r\n </div>\r\n </div>\r\n\r\n\r\n <div *ngIf=\"data?.action && data?.action?.display\" class=\"d-flex gap-2 d-md-flex mt-15\" [ngClass]=\"[\r\n styles?.layout?.align === 'left' ? 'justify-content-md-start' : '',\r\n styles?.layout?.align === 'center' ? 'justify-content-md-center' : '',\r\n styles?.layout?.align === 'right' ? 'justify-content-md-end' : ''\r\n ]\">\r\n <div *ngFor=\"let button of data?.action?.buttons\">\r\n <app-button-element [buttonContent]=\"button.content\" [buttonStyle]=\"button.styles\"\r\n [buttonId]=\"button.id\" [sectionId]=\"data?.id\"\r\n [color]=\"data?.styles?.background?.accentColor\"></app-button-element>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div [ngClass]=\"{'hover_effect': edit}\" *ngIf=\"showEditors\">\r\n <simpo-hover-elements [data]=\"data\" [index]=\"index\" [editOptions]=\"edit\"></simpo-hover-elements>\r\n </div>\r\n <div *ngIf=\"showDelete\" [ngClass]=\"{'hover_effect': delete}\">\r\n <simpo-delete-hover-element [data]=\"data\" [index]=\"index\"></simpo-delete-hover-element>\r\n </div>\r\n </div>\r\n</div>", styles: [".hover_effect{position:absolute;width:100%;top:0;left:0;height:100%}.total-container{position:relative;height:auto}.button-display{display:flex;gap:10px;margin-top:15px}.gap-15{gap:15px}.btn-primary{border:none}@media only screen and (max-width: 475px){.col-10{width:100%;height:32vh;padding-right:13px;padding-left:13px}.flex-column{flex-direction:column!important}.d-flex{justify-content:center}}\n"] }]
2919
+ }], ctorParameters: () => [{ type: EventsService }], propDecorators: { data: [{
2920
+ type: Input
2921
+ }], index: [{
2922
+ type: Input
2923
+ }], edit: [{
2924
+ type: Input
2925
+ }], delete: [{
2926
+ type: Input
2927
+ }] } });
2928
+
2707
2929
  /*
2708
2930
  * Public API Surface of simpo-ui
2709
2931
  */
@@ -2714,5 +2936,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImpor
2714
2936
  * Generated bundle index. Do not edit.
2715
2937
  */
2716
2938
 
2717
- export { AddNewSectionComponent, AlignContent, AnimationDirective, BANNERALIGNMENT, BANNERHALIGN, BackgroundDirective, BannerContentFitDirective, BannerGridSectionComponent, BannerSectionComponent, BorderDirective, ButtonDirectiveDirective, ChannelType, ChooseUsSectionComponent, ColorDirective, ColumnDirectiveDirective, ContactUsComponent, ContainerFitDirective, ContentFitDirective, CornerDirective, Corners, EventsService, FaqSectionComponent, FooterSectionComponent, FooterTypes, HALIGN, HeaderButtonStyle, HoverDirective, ImageCarouselSectionComponent, ImageDirectiveDirective, ImageFit, ImageGridSectionComponent, ImageRatio, ImageSectionComponent, MapType, NavbarSectionComponent, ObjectPositionDirective, OverlayDirective, Padding, PositionLayoutDirectiveDirective, PricingSectionComponent, RedirectionLinkType, SPACING, ServiceSectionComponent, SimpoFooterLayoutDirective, SkeletonLoaderSectionComponent, Style, TeamMemberSectionComponent, TestimonialSectionComponent, TextBackgroundDirectiveDirective, TextImageSectionComponent, TextPosition, TextSectionComponent, VALIGN, VideoSectionComponent, animation, applySpacing, applyStyle, contentAlignment, fitContent, fitScreen, mapStyle, simpoConetenAlignmentDirective };
2939
+ export { AddNewSectionComponent, AlignContent, AnimationDirective, BANNERALIGNMENT, BANNERHALIGN, BackgroundDirective, BannerContentFitDirective, BannerGridSectionComponent, BannerSectionComponent, BorderDirective, ButtonDirectiveDirective, ChannelType, ChooseUsSectionComponent, ColorDirective, ColumnDirectiveDirective, ContactUsComponent, ContainerFitDirective, ContentFitDirective, CornerDirective, Corners, EventsService, FaqSectionComponent, FooterSectionComponent, FooterTypes, HALIGN, HeaderButtonStyle, HeaderTextComponent, HoverDirective, ImageCarouselSectionComponent, ImageDirectiveDirective, ImageFit, ImageGridSectionComponent, ImageRatio, ImageSectionComponent, LocationSectionComponent, MapType, NavbarSectionComponent, ObjectPositionDirective, OverlayDirective, Padding, PositionLayoutDirectiveDirective, PricingSectionComponent, RedirectionLinkType, SPACING, ServiceSectionComponent, SimpoFooterLayoutDirective, SkeletonLoaderSectionComponent, Style, TeamMemberSectionComponent, TestimonialSectionComponent, TextBackgroundDirectiveDirective, TextImageSectionComponent, TextPosition, TextSectionComponent, VALIGN, VideoSectionComponent, animation, applySpacing, applyStyle, contentAlignment, fitContent, fitScreen, logoDirection, logoSpeed, logoType, mapStyle, simpoConetenAlignmentDirective };
2718
2940
  //# sourceMappingURL=simpo-component-library.mjs.map