simpo-component-library 0.0.2 → 0.0.3
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.
- package/esm2022/public-api.mjs +29 -6
- package/fesm2022/simpo-component-library.mjs +300 -39
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +24 -4
- package/simpo-component-library-0.0.3.tgz +0 -0
- package/simpo-component-library-0.0.2.tgz +0 -0
package/esm2022/public-api.mjs
CHANGED
|
@@ -16,10 +16,33 @@ export * from './lib/sections/testimonial-section/testimonial-section.component'
|
|
|
16
16
|
export * from './lib/sections/text-image-section/text-image-section.component';
|
|
17
17
|
export * from './lib/sections/video-section/video-section.component';
|
|
18
18
|
export * from './lib/sections/navbar-section/navbar-section.component';
|
|
19
|
-
|
|
19
|
+
export * from './lib/directive/animation-directive';
|
|
20
|
+
export * from './lib/directive/background-directive';
|
|
21
|
+
export * from './lib/directive/banner-content-fit-directive';
|
|
22
|
+
export * from './lib/directive/border-directive';
|
|
23
|
+
export * from './lib/directive/button-directive.directive';
|
|
24
|
+
export * from './lib/directive/column-directive.directive';
|
|
25
|
+
export * from './lib/directive/container-fir.directive';
|
|
26
|
+
export * from './lib/directive/content-alignment-directive';
|
|
27
|
+
export * from './lib/directive/content-fit-directive';
|
|
28
|
+
export * from './lib/directive/corner-directive';
|
|
29
|
+
export * from './lib/directive/footer-layout-directive';
|
|
30
|
+
export * from './lib/directive/hover-element-directive';
|
|
31
|
+
export * from './lib/directive/image-directive.directive';
|
|
32
|
+
export * from './lib/directive/overlay-directive';
|
|
33
|
+
export * from './lib/directive/position-layout-directive.directive';
|
|
34
|
+
export * from './lib/directive/text-background-directive.directive';
|
|
35
|
+
export * from './lib/elements/below-image-card/below-image-card.component';
|
|
36
|
+
export * from './lib/elements/button/button.component';
|
|
37
|
+
export * from './lib/elements/covering-image-card/covering-image-card.component';
|
|
38
|
+
export * from './lib/elements/heading-element/heading-element.component';
|
|
39
|
+
export * from './lib/elements/simpo-button/simpo-button.component';
|
|
40
|
+
export * from './lib/elements/socia-icons/socia-icons.component';
|
|
41
|
+
export * from './lib/elements/text/text.component';
|
|
42
|
+
export * from './lib/elements/top-of-image-card/top-of-image-card.component';
|
|
20
43
|
// export * from './lib/elements/index';
|
|
21
|
-
export * from './lib/styles/index';
|
|
22
|
-
export * from './lib/styles/style.model';
|
|
23
|
-
export * from './lib/styles/types';
|
|
24
|
-
export * from './lib/services/events.service';
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
44
|
+
// export * from './lib/styles/index';
|
|
45
|
+
// export * from './lib/styles/style.model';
|
|
46
|
+
// export * from './lib/styles/types';
|
|
47
|
+
// export * from './lib/services/events.service';
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsMENBQTBDO0FBQzFDLDRDQUE0QztBQUU1QyxjQUFjLG9EQUFvRCxDQUFDO0FBQ25FLGNBQWMsd0RBQXdELENBQUM7QUFDdkUsY0FBYyxrREFBa0QsQ0FBQztBQUNqRSxjQUFjLHdEQUF3RCxDQUFDO0FBQ3ZFLGNBQWMsd0VBQXdFLENBQUM7QUFDdkYsY0FBYyxnRUFBZ0UsQ0FBQztBQUMvRSxjQUFjLHNEQUFzRCxDQUFDO0FBQ3JFLGNBQWMsMERBQTBELENBQUM7QUFDekUsY0FBYyxrRUFBa0UsQ0FBQztBQUNqRixjQUFjLGtFQUFrRSxDQUFDO0FBQ2pGLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsY0FBYyxzREFBc0QsQ0FBQztBQUNyRSxjQUFjLHdEQUF3RCxDQUFDO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MvdG9wLW9mLWltYWdlLWNhcmQvdG9wLW9mLWltYWdlLWNhcmQuY29tcG9uZW50Jztcbi8vIGV4cG9ydCAqIGZyb20gJy4vbGliL2VsZW1lbnRzL2luZGV4Jztcbi8vIGV4cG9ydCAqIGZyb20gJy4vbGliL3N0eWxlcy9pbmRleCc7XG4vLyBleHBvcnQgKiBmcm9tICcuL2xpYi9zdHlsZXMvc3R5bGUubW9kZWwnO1xuLy8gZXhwb3J0ICogZnJvbSAnLi9saWIvc3R5bGVzL3R5cGVzJztcbi8vIGV4cG9ydCAqIGZyb20gJy4vbGliL3NlcnZpY2VzL2V2ZW50cy5zZXJ2aWNlJztcblxuXG4iXX0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i2 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Directive, Input, EventEmitter, Output, HostListener, Component, ViewChild
|
|
4
|
+
import { Directive, Input, EventEmitter, Output, HostListener, Component, ViewChild } from '@angular/core';
|
|
5
5
|
import { MatGridListModule } from '@angular/material/grid-list';
|
|
6
6
|
import { StyleDirectivesModule } from '@simpo-ui/directive';
|
|
7
7
|
import { SimpoElementsModule } from '@simpo-ui/elements';
|
|
@@ -10,7 +10,7 @@ import * as i1$1 from '@angular/material/dialog';
|
|
|
10
10
|
import { MatDialogModule } from '@angular/material/dialog';
|
|
11
11
|
import { SimpoButtonComponent as SimpoButtonComponent$1 } from '@simpo-ui/elements/simpo-button/simpo-button.component';
|
|
12
12
|
import * as i1 from '@simpo-ui/services/events.service';
|
|
13
|
-
import { ButtonDirectiveDirective } from '@simpo-ui/directive/button-directive.directive';
|
|
13
|
+
import { ButtonDirectiveDirective as ButtonDirectiveDirective$1 } from '@simpo-ui/directive/button-directive.directive';
|
|
14
14
|
import { MatIconModule } from '@angular/material/icon';
|
|
15
15
|
import { ImageFit as ImageFit$1, ImageRatio as ImageRatio$1, contentAlignment as contentAlignment$1, AlignContent as AlignContent$1, BANNERALIGNMENT as BANNERALIGNMENT$1, FooterTypes as FooterTypes$1, TextPosition as TextPosition$1 } from '@simpo-ui/styles';
|
|
16
16
|
import { ContentFitDirective as ContentFitDirective$1 } from '@simpo-ui/directive/content-fit-directive';
|
|
@@ -18,8 +18,10 @@ import { SociaIconsComponent as SociaIconsComponent$1 } from '@simpo-ui/elements
|
|
|
18
18
|
import { ColumnDirectiveDirective as ColumnDirectiveDirective$1 } from '@simpo-ui/directive/column-directive.directive';
|
|
19
19
|
import { ImageDirectiveDirective as ImageDirectiveDirective$1 } from '@simpo-ui/directive/image-directive.directive';
|
|
20
20
|
import { CornerDirective as CornerDirective$1 } from '@simpo-ui/directive/corner-directive';
|
|
21
|
-
import { TextBackgroundDirectiveDirective } from '@simpo-ui/directive/text-background-directive.directive';
|
|
21
|
+
import { TextBackgroundDirectiveDirective as TextBackgroundDirectiveDirective$1 } from '@simpo-ui/directive/text-background-directive.directive';
|
|
22
22
|
import * as i1$2 from '@angular/platform-browser';
|
|
23
|
+
import * as i2$1 from '@angular/material/button';
|
|
24
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
23
25
|
|
|
24
26
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
25
27
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -516,11 +518,11 @@ class SimpoButtonComponent {
|
|
|
516
518
|
}
|
|
517
519
|
}
|
|
518
520
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: SimpoButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
519
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: SimpoButtonComponent, isStandalone: true, selector: "app-button-element", inputs: { buttonContent: "buttonContent", buttonStyle: "buttonStyle", color: "color", sectionId: "sectionId" }, ngImport: i0, template: "<button class=\"button\" (click)=\"redirectTo()\" simpoButtonDirective [id]=\"sectionId\" [buttonStyle]=\"buttonStyle\" [color]=\"color\">{{buttonContent?.label}}</button>\n", styles: [".button{font-size:16px!important;padding:1rem 2rem;display:inline-flex;align-items:center;justify-content:center;width:fit-content!important;margin-top:1rem}\n"], dependencies: [{ kind: "directive", type: ButtonDirectiveDirective, selector: "[simpoButtonDirective]", inputs: ["buttonStyle", "color"] }] }); }
|
|
521
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: SimpoButtonComponent, isStandalone: true, selector: "app-button-element", inputs: { buttonContent: "buttonContent", buttonStyle: "buttonStyle", color: "color", sectionId: "sectionId" }, ngImport: i0, template: "<button class=\"button\" (click)=\"redirectTo()\" simpoButtonDirective [id]=\"sectionId\" [buttonStyle]=\"buttonStyle\" [color]=\"color\">{{buttonContent?.label}}</button>\n", styles: [".button{font-size:16px!important;padding:1rem 2rem;display:inline-flex;align-items:center;justify-content:center;width:fit-content!important;margin-top:1rem}\n"], dependencies: [{ kind: "directive", type: ButtonDirectiveDirective$1, selector: "[simpoButtonDirective]", inputs: ["buttonStyle", "color"] }] }); }
|
|
520
522
|
}
|
|
521
523
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: SimpoButtonComponent, decorators: [{
|
|
522
524
|
type: Component,
|
|
523
|
-
args: [{ selector: 'app-button-element', standalone: true, imports: [ButtonDirectiveDirective], template: "<button class=\"button\" (click)=\"redirectTo()\" simpoButtonDirective [id]=\"sectionId\" [buttonStyle]=\"buttonStyle\" [color]=\"color\">{{buttonContent?.label}}</button>\n", styles: [".button{font-size:16px!important;padding:1rem 2rem;display:inline-flex;align-items:center;justify-content:center;width:fit-content!important;margin-top:1rem}\n"] }]
|
|
525
|
+
args: [{ selector: 'app-button-element', standalone: true, imports: [ButtonDirectiveDirective$1], template: "<button class=\"button\" (click)=\"redirectTo()\" simpoButtonDirective [id]=\"sectionId\" [buttonStyle]=\"buttonStyle\" [color]=\"color\">{{buttonContent?.label}}</button>\n", styles: [".button{font-size:16px!important;padding:1rem 2rem;display:inline-flex;align-items:center;justify-content:center;width:fit-content!important;margin-top:1rem}\n"] }]
|
|
524
526
|
}], propDecorators: { buttonContent: [{
|
|
525
527
|
type: Input
|
|
526
528
|
}], buttonStyle: [{
|
|
@@ -1130,11 +1132,11 @@ class TopOfImageCardComponent {
|
|
|
1130
1132
|
console.log(this.button);
|
|
1131
1133
|
}
|
|
1132
1134
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: TopOfImageCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1133
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: TopOfImageCardComponent, isStandalone: true, selector: "simpo-top-of-image-card", inputs: { data: "data", styles: "styles", content: "content", componentId: "componentId", button: "button" }, ngImport: i0, template: "<!-- <div style=\"position: relative;\">\n\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoImageDirective]=\"styles?.image\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100\" *ngIf=\"content.showImage\">\n\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div style=\"color: white;\" class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.showHeading\"></div>\n <div style=\"color: white;\" class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.showContent\">\n </div>\n <app-button-element [buttonData]=\"data?.button\" [sectionId]=\"componentId\" [buttonStyle]=\"styles?.button\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n</div>\n -->\n <div class=\"top-container\" [ngStyle]=\"{'background-image' : content.display.showImage ? 'url('+data.image.url+')' : ''}\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\">\n <div [simpoImageDirective]=\"styles?.image\" [id]=\"componentId\" *ngIf=\"content.display.showImage\"></div>\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"content.display.showImage ? styles?.textBackground : ''\">\n <div class=\"heading-medium mb-1 lh-40\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\">\n </div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{padding:3rem 1.5rem 1.5rem;min-height:256px;display:flex;flex-direction:column;justify-content:end}.top-container{background-position:center center;background-size:cover}.lh-40{line-height:40px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: ImageDirectiveDirective$1, selector: "[simpoImageDirective]", inputs: ["simpoImageDirective"] }, { kind: "directive", type: CornerDirective$1, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: TextBackgroundDirectiveDirective, selector: "[simpoTextBackgroundDirective]", inputs: ["simpoTextBackgroundDirective"] }, { kind: "component", type: SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "color", "sectionId"] }] }); }
|
|
1135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: TopOfImageCardComponent, isStandalone: true, selector: "simpo-top-of-image-card", inputs: { data: "data", styles: "styles", content: "content", componentId: "componentId", button: "button" }, ngImport: i0, template: "<!-- <div style=\"position: relative;\">\n\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoImageDirective]=\"styles?.image\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100\" *ngIf=\"content.showImage\">\n\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div style=\"color: white;\" class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.showHeading\"></div>\n <div style=\"color: white;\" class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.showContent\">\n </div>\n <app-button-element [buttonData]=\"data?.button\" [sectionId]=\"componentId\" [buttonStyle]=\"styles?.button\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n</div>\n -->\n <div class=\"top-container\" [ngStyle]=\"{'background-image' : content.display.showImage ? 'url('+data.image.url+')' : ''}\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\">\n <div [simpoImageDirective]=\"styles?.image\" [id]=\"componentId\" *ngIf=\"content.display.showImage\"></div>\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"content.display.showImage ? styles?.textBackground : ''\">\n <div class=\"heading-medium mb-1 lh-40\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\">\n </div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{padding:3rem 1.5rem 1.5rem;min-height:256px;display:flex;flex-direction:column;justify-content:end}.top-container{background-position:center center;background-size:cover}.lh-40{line-height:40px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: ImageDirectiveDirective$1, selector: "[simpoImageDirective]", inputs: ["simpoImageDirective"] }, { kind: "directive", type: CornerDirective$1, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: TextBackgroundDirectiveDirective$1, selector: "[simpoTextBackgroundDirective]", inputs: ["simpoTextBackgroundDirective"] }, { kind: "component", type: SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "color", "sectionId"] }] }); }
|
|
1134
1136
|
}
|
|
1135
1137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: TopOfImageCardComponent, decorators: [{
|
|
1136
1138
|
type: Component,
|
|
1137
|
-
args: [{ selector: 'simpo-top-of-image-card', standalone: true, imports: [CommonModule, ImageDirectiveDirective$1, CornerDirective$1, TextBackgroundDirectiveDirective, SimpoButtonComponent], template: "<!-- <div style=\"position: relative;\">\n\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoImageDirective]=\"styles?.image\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100\" *ngIf=\"content.showImage\">\n\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div style=\"color: white;\" class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.showHeading\"></div>\n <div style=\"color: white;\" class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.showContent\">\n </div>\n <app-button-element [buttonData]=\"data?.button\" [sectionId]=\"componentId\" [buttonStyle]=\"styles?.button\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n</div>\n -->\n <div class=\"top-container\" [ngStyle]=\"{'background-image' : content.display.showImage ? 'url('+data.image.url+')' : ''}\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\">\n <div [simpoImageDirective]=\"styles?.image\" [id]=\"componentId\" *ngIf=\"content.display.showImage\"></div>\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"content.display.showImage ? styles?.textBackground : ''\">\n <div class=\"heading-medium mb-1 lh-40\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\">\n </div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{padding:3rem 1.5rem 1.5rem;min-height:256px;display:flex;flex-direction:column;justify-content:end}.top-container{background-position:center center;background-size:cover}.lh-40{line-height:40px}\n"] }]
|
|
1139
|
+
args: [{ selector: 'simpo-top-of-image-card', standalone: true, imports: [CommonModule, ImageDirectiveDirective$1, CornerDirective$1, TextBackgroundDirectiveDirective$1, SimpoButtonComponent], template: "<!-- <div style=\"position: relative;\">\n\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoImageDirective]=\"styles?.image\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100\" *ngIf=\"content.showImage\">\n\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div style=\"color: white;\" class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.showHeading\"></div>\n <div style=\"color: white;\" class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.showContent\">\n </div>\n <app-button-element [buttonData]=\"data?.button\" [sectionId]=\"componentId\" [buttonStyle]=\"styles?.button\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n</div>\n -->\n <div class=\"top-container\" [ngStyle]=\"{'background-image' : content.display.showImage ? 'url('+data.image.url+')' : ''}\"\n [simpoCorner]=\"styles?.corners\" [id]=\"componentId\">\n <div [simpoImageDirective]=\"styles?.image\" [id]=\"componentId\" *ngIf=\"content.display.showImage\"></div>\n <div class=\"content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"content.display.showImage ? styles?.textBackground : ''\">\n <div class=\"heading-medium mb-1 lh-40\" [innerHtml]=\"data.inputText[0].value\"\n *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\">\n </div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{padding:3rem 1.5rem 1.5rem;min-height:256px;display:flex;flex-direction:column;justify-content:end}.top-container{background-position:center center;background-size:cover}.lh-40{line-height:40px}\n"] }]
|
|
1138
1140
|
}], propDecorators: { data: [{
|
|
1139
1141
|
type: Input
|
|
1140
1142
|
}], styles: [{
|
|
@@ -1154,11 +1156,11 @@ class CoveringImageCardComponent {
|
|
|
1154
1156
|
// }
|
|
1155
1157
|
}
|
|
1156
1158
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: CoveringImageCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1157
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: CoveringImageCardComponent, isStandalone: true, selector: "simpo-covering-image-card", inputs: { data: "data", styles: "styles", content: "content", componentId: "componentId", button: "button" }, ngImport: i0, template: "<div class=\"parent-tab\" [id]=\"componentId\" [simpoImageDirective]=\"styles?.image\">\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100 img\" *ngIf=\"content.display.showImage\">\n <div class=\"ptb-1 content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\" *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\"></div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{position:relative;bottom:0;padding:1.5rem;display:flex;flex-direction:column;justify-content:center;height:fit-content;min-height:100%}.parent-tab{position:relative;height:100%;width:100%}.img{position:absolute;height:100%;display:flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ImageDirectiveDirective$1, selector: "[simpoImageDirective]", inputs: ["simpoImageDirective"] }, { kind: "directive", type: CornerDirective$1, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: TextBackgroundDirectiveDirective, selector: "[simpoTextBackgroundDirective]", inputs: ["simpoTextBackgroundDirective"] }, { kind: "component", type: SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "color", "sectionId"] }] }); }
|
|
1159
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: CoveringImageCardComponent, isStandalone: true, selector: "simpo-covering-image-card", inputs: { data: "data", styles: "styles", content: "content", componentId: "componentId", button: "button" }, ngImport: i0, template: "<div class=\"parent-tab\" [id]=\"componentId\" [simpoImageDirective]=\"styles?.image\">\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100 img\" *ngIf=\"content.display.showImage\">\n <div class=\"ptb-1 content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\" *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\"></div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{position:relative;bottom:0;padding:1.5rem;display:flex;flex-direction:column;justify-content:center;height:fit-content;min-height:100%}.parent-tab{position:relative;height:100%;width:100%}.img{position:absolute;height:100%;display:flex}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ImageDirectiveDirective$1, selector: "[simpoImageDirective]", inputs: ["simpoImageDirective"] }, { kind: "directive", type: CornerDirective$1, selector: "[simpoCorner]", inputs: ["simpoCorner"] }, { kind: "directive", type: TextBackgroundDirectiveDirective$1, selector: "[simpoTextBackgroundDirective]", inputs: ["simpoTextBackgroundDirective"] }, { kind: "component", type: SimpoButtonComponent, selector: "app-button-element", inputs: ["buttonContent", "buttonStyle", "color", "sectionId"] }] }); }
|
|
1158
1160
|
}
|
|
1159
1161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: CoveringImageCardComponent, decorators: [{
|
|
1160
1162
|
type: Component,
|
|
1161
|
-
args: [{ selector: 'simpo-covering-image-card', standalone: true, imports: [CommonModule, ImageDirectiveDirective$1, CornerDirective$1, TextBackgroundDirectiveDirective, SimpoButtonComponent], template: "<div class=\"parent-tab\" [id]=\"componentId\" [simpoImageDirective]=\"styles?.image\">\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100 img\" *ngIf=\"content.display.showImage\">\n <div class=\"ptb-1 content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\" *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\"></div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{position:relative;bottom:0;padding:1.5rem;display:flex;flex-direction:column;justify-content:center;height:fit-content;min-height:100%}.parent-tab{position:relative;height:100%;width:100%}.img{position:absolute;height:100%;display:flex}\n"] }]
|
|
1163
|
+
args: [{ selector: 'simpo-covering-image-card', standalone: true, imports: [CommonModule, ImageDirectiveDirective$1, CornerDirective$1, TextBackgroundDirectiveDirective$1, SimpoButtonComponent], template: "<div class=\"parent-tab\" [id]=\"componentId\" [simpoImageDirective]=\"styles?.image\">\n <img [src]=\"data.image.url\" [alt]=\"data.image.altText\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" class=\"w-100 img\" *ngIf=\"content.display.showImage\">\n <div class=\"ptb-1 content\" [simpoCorner]=\"styles?.corners\" [id]=\"componentId\" [simpoTextBackgroundDirective]=\"styles?.textBackground\">\n <div class=\"heading-medium mb-1\" [innerHtml]=\"data.inputText[0].value\" *ngIf=\"content.display.showHeading\"></div>\n <div class=\"body-desc\" [innerHtml]=\"data.inputText[01].value\" *ngIf=\"content.display.showContent\"></div>\n <div *ngIf=\"content.display.showLink && content.display.linkType === 'Button'\">\n <app-button-element [buttonContent]=\"data.button\" [buttonStyle]=\"button?.styles\" [sectionId]=\"componentId\" [color]=\"styles?.background?.accentColor\"></app-button-element>\n </div>\n </div>\n</div>\n", styles: [".w-100{width:100%}.mb-1{margin-bottom:1rem!important}.content{position:relative;bottom:0;padding:1.5rem;display:flex;flex-direction:column;justify-content:center;height:fit-content;min-height:100%}.parent-tab{position:relative;height:100%;width:100%}.img{position:absolute;height:100%;display:flex}\n"] }]
|
|
1162
1164
|
}], propDecorators: { data: [{
|
|
1163
1165
|
type: Input
|
|
1164
1166
|
}], styles: [{
|
|
@@ -1458,48 +1460,307 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImpor
|
|
|
1458
1460
|
type: Input
|
|
1459
1461
|
}] } });
|
|
1460
1462
|
|
|
1461
|
-
class
|
|
1462
|
-
constructor() {
|
|
1463
|
-
this.
|
|
1464
|
-
this.
|
|
1465
|
-
this.
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1463
|
+
class BannerContentFitDirective {
|
|
1464
|
+
constructor(el, eventService, renderer) {
|
|
1465
|
+
this.el = el;
|
|
1466
|
+
this.eventService = eventService;
|
|
1467
|
+
this.renderer = renderer;
|
|
1468
|
+
this.eventService.alignmentChangeChecks.subscribe((res) => {
|
|
1469
|
+
if (this.layout?.bannerImageDisplay) {
|
|
1470
|
+
Object.entries(BANNERALIGNMENT).forEach(([className, classValue]) => {
|
|
1471
|
+
if (res.data?.align === className) {
|
|
1472
|
+
this.renderer.addClass(this.el.nativeElement, classValue);
|
|
1473
|
+
if (res.data?.align == 'top' || res.data?.align == 'bottom') {
|
|
1474
|
+
this.el.nativeElement.style.setProperty('text-align', "center");
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
});
|
|
1478
|
+
}
|
|
1479
|
+
else {
|
|
1480
|
+
Object.entries(BANNERHALIGN).forEach(([className, classValue]) => {
|
|
1481
|
+
if (res.data?.layoutAlignment?.value === className) {
|
|
1482
|
+
this.renderer.addClass(this.el.nativeElement, `flex-lg-row`);
|
|
1483
|
+
classValue.split(" ").forEach(element => {
|
|
1484
|
+
this.renderer.addClass(this.el.nativeElement, element);
|
|
1485
|
+
});
|
|
1486
|
+
}
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
applySpacing(this.el.nativeElement, this.layout?.spacing);
|
|
1490
|
+
});
|
|
1491
|
+
this.eventService.spacingChangeChecks.subscribe((res) => {
|
|
1492
|
+
if (this.el.nativeElement.id === res.type) {
|
|
1493
|
+
if (this.layout?.fit === 'content') {
|
|
1494
|
+
fitContent(this.el.nativeElement);
|
|
1495
|
+
}
|
|
1496
|
+
else {
|
|
1497
|
+
fitScreen(this.el.nativeElement);
|
|
1498
|
+
}
|
|
1499
|
+
applySpacing(this.el.nativeElement, res.data.spacing);
|
|
1500
|
+
}
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
ngOnInit() {
|
|
1504
|
+
this.appply();
|
|
1505
|
+
}
|
|
1506
|
+
ngOnChanges() {
|
|
1507
|
+
this.appply();
|
|
1508
|
+
}
|
|
1509
|
+
appply() {
|
|
1510
|
+
if (this.layout?.fit === 'content') {
|
|
1511
|
+
fitContent(this.el.nativeElement);
|
|
1512
|
+
}
|
|
1513
|
+
else {
|
|
1514
|
+
fitScreen(this.el.nativeElement);
|
|
1515
|
+
}
|
|
1516
|
+
if (this.layout?.bannerImageDisplay) {
|
|
1517
|
+
Object.entries(BANNERALIGNMENT).forEach(([className, classValue]) => {
|
|
1518
|
+
if (this.layout?.layoutAlignment.value === className) {
|
|
1519
|
+
this.renderer.addClass(this.el.nativeElement, classValue);
|
|
1520
|
+
if (this.layout.layoutAlignment.value == 'top' || this.layout.layoutAlignment.value == 'bottom') {
|
|
1521
|
+
this.el.nativeElement.style.setProperty('text-align', "center");
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
});
|
|
1525
|
+
}
|
|
1526
|
+
else {
|
|
1527
|
+
Object.entries(BANNERHALIGN).forEach(([className, classValue]) => {
|
|
1528
|
+
if (this.layout?.layoutAlignment.value === className) {
|
|
1529
|
+
this.renderer.addClass(this.el.nativeElement, `flex-lg-row`);
|
|
1530
|
+
classValue.split(" ").forEach(element => {
|
|
1531
|
+
this.renderer.addClass(this.el.nativeElement, element);
|
|
1532
|
+
});
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
applySpacing(this.el.nativeElement, this.layout?.spacing);
|
|
1537
|
+
}
|
|
1538
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: BannerContentFitDirective, deps: [{ token: i0.ElementRef }, { token: i1.EventsService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1539
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.3", type: BannerContentFitDirective, isStandalone: true, selector: "[simpoBannerLayout]", inputs: { layout: ["simpoBannerLayout", "layout"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1540
|
+
}
|
|
1541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: BannerContentFitDirective, decorators: [{
|
|
1542
|
+
type: Directive,
|
|
1543
|
+
args: [{
|
|
1544
|
+
selector: '[simpoBannerLayout]',
|
|
1545
|
+
standalone: true,
|
|
1546
|
+
}]
|
|
1547
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.EventsService }, { type: i0.Renderer2 }], propDecorators: { layout: [{
|
|
1548
|
+
type: Input,
|
|
1549
|
+
args: ['simpoBannerLayout']
|
|
1550
|
+
}] } });
|
|
1551
|
+
|
|
1552
|
+
class ButtonDirectiveDirective {
|
|
1553
|
+
constructor(el, eventService) {
|
|
1554
|
+
this.el = el;
|
|
1555
|
+
this.eventService = eventService;
|
|
1556
|
+
this.buttonStyleChangeCheck();
|
|
1557
|
+
}
|
|
1558
|
+
ngOnChanges() {
|
|
1559
|
+
this.applyButtonStyleChanges();
|
|
1560
|
+
}
|
|
1561
|
+
ngOnDestroy() {
|
|
1562
|
+
this.buttonStyleSubscription?.unsubscribe();
|
|
1563
|
+
}
|
|
1564
|
+
applyButtonStyleChanges() {
|
|
1565
|
+
if (this.buttonStyle?.type) {
|
|
1566
|
+
this.applyButtonType(this.buttonStyle, this.color ? this.color : '#ffffff');
|
|
1567
|
+
}
|
|
1568
|
+
if (this.buttonStyle?.shape) {
|
|
1569
|
+
this.applyButtonShape(this.buttonStyle);
|
|
1570
|
+
}
|
|
1571
|
+
}
|
|
1572
|
+
applyButtonType(style, color) {
|
|
1573
|
+
if (style?.type === 'Solid') {
|
|
1574
|
+
this.el.nativeElement.style.setProperty('background', color);
|
|
1575
|
+
this.el.nativeElement.style.setProperty('color', this.getTextColor(color));
|
|
1576
|
+
this.el.nativeElement.style.setProperty('border', `2px solid ${color} `);
|
|
1577
|
+
}
|
|
1578
|
+
else {
|
|
1579
|
+
this.el.nativeElement.style.setProperty('border', `2px solid ${color}`);
|
|
1580
|
+
this.el.nativeElement.style.setProperty('background', 'transparent');
|
|
1581
|
+
this.el.nativeElement.style.setProperty('color', color);
|
|
1582
|
+
}
|
|
1583
|
+
}
|
|
1584
|
+
applyButtonShape(style) {
|
|
1585
|
+
if (style?.shape === 'Round') {
|
|
1586
|
+
this.el.nativeElement.style.setProperty('border-radius', '5px');
|
|
1587
|
+
}
|
|
1588
|
+
else {
|
|
1589
|
+
this.el.nativeElement.style.setProperty('border-radius', '0px');
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
getTextColor(bgColor) {
|
|
1593
|
+
if (bgColor) {
|
|
1594
|
+
const threshold = 130; // Adjust this threshold as needed
|
|
1595
|
+
const r = parseInt(bgColor.slice(1, 3), 16);
|
|
1596
|
+
const g = parseInt(bgColor.slice(3, 5), 16);
|
|
1597
|
+
const b = parseInt(bgColor.slice(5, 7), 16);
|
|
1598
|
+
const brightness = (r * 299 + g * 587 + b * 114) / 1000;
|
|
1599
|
+
return brightness > threshold ? '#000000' : '#ffffff';
|
|
1600
|
+
}
|
|
1601
|
+
return "#ffffff;";
|
|
1602
|
+
}
|
|
1603
|
+
buttonStyleChangeCheck() {
|
|
1604
|
+
this.buttonStyleSubscription = this.eventService.buttonStyleChangeChecks.subscribe((res) => {
|
|
1605
|
+
this.changeButtonStyle(res.id, res.buttonStyle, res.color);
|
|
1606
|
+
});
|
|
1607
|
+
}
|
|
1608
|
+
changeButtonStyle(id, style, bgColor) {
|
|
1609
|
+
if (this.el.nativeElement.id === id) {
|
|
1610
|
+
if (style?.type) {
|
|
1611
|
+
this.applyButtonType(style, bgColor ? bgColor : '#ffffff');
|
|
1612
|
+
}
|
|
1613
|
+
if (style?.shape) {
|
|
1614
|
+
this.applyButtonShape(style);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: ButtonDirectiveDirective, deps: [{ token: i0.ElementRef }, { token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1619
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.3", type: ButtonDirectiveDirective, isStandalone: true, selector: "[simpoButtonDirective]", inputs: { buttonStyle: "buttonStyle", color: "color" }, usesOnChanges: true, ngImport: i0 }); }
|
|
1486
1620
|
}
|
|
1487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type:
|
|
1488
|
-
type:
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: ButtonDirectiveDirective, decorators: [{
|
|
1622
|
+
type: Directive,
|
|
1489
1623
|
args: [{
|
|
1490
|
-
|
|
1624
|
+
selector: '[simpoButtonDirective]',
|
|
1625
|
+
standalone: true
|
|
1491
1626
|
}]
|
|
1492
|
-
}], ctorParameters: () => []
|
|
1627
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.EventsService }], propDecorators: { buttonStyle: [{
|
|
1628
|
+
type: Input
|
|
1629
|
+
}], color: [{
|
|
1630
|
+
type: Input
|
|
1631
|
+
}] } });
|
|
1632
|
+
|
|
1633
|
+
class TextBackgroundDirectiveDirective {
|
|
1634
|
+
constructor(el, eventService) {
|
|
1635
|
+
this.el = el;
|
|
1636
|
+
this.eventService = eventService;
|
|
1637
|
+
this.textBackgroundChangeCheck();
|
|
1638
|
+
}
|
|
1639
|
+
ngOnChanges() {
|
|
1640
|
+
if (this.textBackgroundDirective) {
|
|
1641
|
+
let opacity = this.textBackgroundDirective?.amount / 100;
|
|
1642
|
+
let rgb = this.getrgbFormColor(this.textBackgroundDirective.color);
|
|
1643
|
+
let backgroundColor = 'rgb' + '(' + rgb.r + "," + rgb.g + "," + rgb.b + ')';
|
|
1644
|
+
if (this.checkColorIsRgbFormOrNot(backgroundColor)) {
|
|
1645
|
+
let rgba = 'rgb' + '(' + rgb.r + "," + rgb.g + "," + rgb.b + "," + opacity + ')';
|
|
1646
|
+
this.el.nativeElement.style.setProperty('background', rgba);
|
|
1647
|
+
this.el.nativeElement.style.setProperty('color', this.getContrastColorFromRGBA(rgba));
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
ngOnDestroy() {
|
|
1652
|
+
if (this.textBackgroundSubscription) {
|
|
1653
|
+
this.textBackgroundSubscription.unsubscribe();
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
getrgbFormColor(hexCode) {
|
|
1657
|
+
const hexColorRegex = /^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/;
|
|
1658
|
+
if (hexColorRegex.test(hexCode)) {
|
|
1659
|
+
const r = parseInt(hexCode.slice(1, 3), 16);
|
|
1660
|
+
const g = parseInt(hexCode.slice(3, 5), 16);
|
|
1661
|
+
const b = parseInt(hexCode.slice(5, 7), 16);
|
|
1662
|
+
return { r, g, b };
|
|
1663
|
+
}
|
|
1664
|
+
return hexCode;
|
|
1665
|
+
}
|
|
1666
|
+
checkColorIsRgbFormOrNot(color) {
|
|
1667
|
+
const rgbColorRegex = /^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;
|
|
1668
|
+
return rgbColorRegex.test(color);
|
|
1669
|
+
}
|
|
1670
|
+
textBackgroundChangeCheck() {
|
|
1671
|
+
this.textBackgroundSubscription = this.eventService.textBackgroundChangeChecks.subscribe((res) => {
|
|
1672
|
+
this.changeTextBackground(res.id, res.textBackground);
|
|
1673
|
+
});
|
|
1674
|
+
}
|
|
1675
|
+
changeTextBackground(id, textBackground) {
|
|
1676
|
+
if (this.el.nativeElement.id === id && textBackground) {
|
|
1677
|
+
let opacity = textBackground.amount / 100;
|
|
1678
|
+
let rgb = this.getrgbFormColor(textBackground.color);
|
|
1679
|
+
let backgroundColor = 'rgb' + '(' + rgb.r + "," + rgb.g + "," + rgb.b + ')';
|
|
1680
|
+
if (this.checkColorIsRgbFormOrNot(backgroundColor)) {
|
|
1681
|
+
let rgba = 'rgb' + '(' + rgb.r + "," + rgb.g + "," + rgb.b + "," + opacity + ')';
|
|
1682
|
+
this.el.nativeElement.style.setProperty('background', rgba);
|
|
1683
|
+
this.el.nativeElement.style.setProperty('color', this.getContrastColorFromRGBA(rgba));
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
getContrastColorFromRGBA(rgbaString) {
|
|
1688
|
+
// Extract RGBA values from the RGBA string
|
|
1689
|
+
const rgbaValues = this.extractRGBA(rgbaString);
|
|
1690
|
+
if (rgbaValues) {
|
|
1691
|
+
// Get contrast color based on RGBA values
|
|
1692
|
+
return this.getContrastColor(rgbaValues);
|
|
1693
|
+
}
|
|
1694
|
+
// Return null if extraction failed
|
|
1695
|
+
return null;
|
|
1696
|
+
}
|
|
1697
|
+
// Function to extract RGBA values from RGBA string
|
|
1698
|
+
extractRGBA(rgbaString) {
|
|
1699
|
+
// Regular expression to match RGBA values
|
|
1700
|
+
const rgbaRegex = /rgba?\((\d+),\s*(\d+),\s*(\d+),?\s*(\d*(?:\.\d+)?)?\)/;
|
|
1701
|
+
// Match the RGBA string against the regex
|
|
1702
|
+
const match = rgbaString.match(rgbaRegex);
|
|
1703
|
+
if (match) {
|
|
1704
|
+
// Extract RGBA values from the regex groups
|
|
1705
|
+
const [, r, g, b, a] = match.map(parseFloat);
|
|
1706
|
+
// If alpha (a) is not provided, set it to 1
|
|
1707
|
+
const alpha = typeof a === 'undefined' ? 1 : a;
|
|
1708
|
+
// Return the RGBA values as an array
|
|
1709
|
+
return [r, g, b, alpha];
|
|
1710
|
+
}
|
|
1711
|
+
// Return null if no match found
|
|
1712
|
+
return null;
|
|
1713
|
+
}
|
|
1714
|
+
// Function to calculate contrast color based on RGBA values
|
|
1715
|
+
getContrastColor(rgba) {
|
|
1716
|
+
// Extract RGB values from the RGBA color
|
|
1717
|
+
const [r, g, b, a] = rgba;
|
|
1718
|
+
// Convert RGB values to luminance
|
|
1719
|
+
const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
1720
|
+
// Determine threshold for color selection
|
|
1721
|
+
const threshold = 0.5;
|
|
1722
|
+
// Choose contrasting color based on luminance
|
|
1723
|
+
return luminance > threshold ? 'black' : 'white';
|
|
1724
|
+
}
|
|
1725
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: TextBackgroundDirectiveDirective, deps: [{ token: i0.ElementRef }, { token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1726
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.3", type: TextBackgroundDirectiveDirective, isStandalone: true, selector: "[simpoTextBackgroundDirective]", inputs: { textBackgroundDirective: ["simpoTextBackgroundDirective", "textBackgroundDirective"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1727
|
+
}
|
|
1728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: TextBackgroundDirectiveDirective, decorators: [{
|
|
1729
|
+
type: Directive,
|
|
1730
|
+
args: [{
|
|
1731
|
+
selector: '[simpoTextBackgroundDirective]',
|
|
1732
|
+
standalone: true
|
|
1733
|
+
}]
|
|
1734
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.EventsService }], propDecorators: { textBackgroundDirective: [{
|
|
1735
|
+
type: Input,
|
|
1736
|
+
args: ['simpoTextBackgroundDirective']
|
|
1737
|
+
}] } });
|
|
1738
|
+
|
|
1739
|
+
class ButtonElementComponent {
|
|
1740
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: ButtonElementComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1741
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.3", type: ButtonElementComponent, isStandalone: true, selector: "simpo-button-element", inputs: { buttonData: "buttonData" }, ngImport: i0, template: "<button mat-stroked-button color=\"primary btn-lg px-4 me-md-2\" *ngIf=\"buttonData?.disabled\">{{buttonData?.text}}</button>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i2$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }] }); }
|
|
1742
|
+
}
|
|
1743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.3", ngImport: i0, type: ButtonElementComponent, decorators: [{
|
|
1744
|
+
type: Component,
|
|
1745
|
+
args: [{ selector: 'simpo-button-element', standalone: true, imports: [CommonModule, MatButtonModule], template: "<button mat-stroked-button color=\"primary btn-lg px-4 me-md-2\" *ngIf=\"buttonData?.disabled\">{{buttonData?.text}}</button>\n" }]
|
|
1746
|
+
}], propDecorators: { buttonData: [{
|
|
1747
|
+
type: Input
|
|
1748
|
+
}] } });
|
|
1493
1749
|
|
|
1494
1750
|
/*
|
|
1495
1751
|
* Public API Surface of simpo-ui
|
|
1496
1752
|
*/
|
|
1497
1753
|
// export * from './lib/simpo-ui.service';
|
|
1498
1754
|
// export * from './lib/simpo-ui.component';
|
|
1755
|
+
// export * from './lib/elements/index';
|
|
1756
|
+
// export * from './lib/styles/index';
|
|
1757
|
+
// export * from './lib/styles/style.model';
|
|
1758
|
+
// export * from './lib/styles/types';
|
|
1759
|
+
// export * from './lib/services/events.service';
|
|
1499
1760
|
|
|
1500
1761
|
/**
|
|
1501
1762
|
* Generated bundle index. Do not edit.
|
|
1502
1763
|
*/
|
|
1503
1764
|
|
|
1504
|
-
export {
|
|
1765
|
+
export { AnimationDirective, BackgroundDirective, BannerContentFitDirective, BannerSectionComponent, BelowImageCardComponent, BorderDirective, ButtonDirectiveDirective, ButtonElementComponent, ColumnDirectiveDirective, ContainerFitDirective, ContentFitDirective, CornerDirective, CoveringImageCardComponent, FaqSectionComponent, FooterSectionComponent, HeadingElementComponent, HoverDirective, ImageCarouselSectionComponent, ImageDirectiveDirective, ImageGridSectionComponent, ImageSectionComponent, NavbarSectionComponent, OverlayDirective, PositionLayoutDirectiveDirective, ServiceSectionComponent, SimpoButtonComponent, SimpoFooterLayoutDirective, SociaIconsComponent, TeamMemberSectionComponent, TestimonialSectionComponent, TextBackgroundDirectiveDirective, TextElementComponent, TextImageSectionComponent, TextSectionComponent, TopOfImageCardComponent, VideoSectionComponent, simpoConetenAlignmentDirective };
|
|
1505
1766
|
//# sourceMappingURL=simpo-component-library.mjs.map
|