@lowcodeunit/applications-flow-common 1.37.8-merge → 1.37.11-ad-placement
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/esm2020/lib/elements/advertisement-card/advertisement-card.component.mjs +23 -5
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +24 -4
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +22 -4
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/lib/elements/advertisement-card/advertisement-card.component.d.ts +4 -2
- package/package.json +1 -1
|
@@ -8,17 +8,35 @@ import * as i5 from "@angular/common";
|
|
|
8
8
|
export class AdvertisementCardComponent {
|
|
9
9
|
constructor() { }
|
|
10
10
|
ngOnInit() { }
|
|
11
|
+
ngOnChanges() {
|
|
12
|
+
// 900000 = 15 mins
|
|
13
|
+
if (this.Advertisements?.length > 0) {
|
|
14
|
+
console.log('Ads: ', this.Advertisements);
|
|
15
|
+
let i = 0;
|
|
16
|
+
this.CurrentAd = this.Advertisements[i];
|
|
17
|
+
setInterval(() => {
|
|
18
|
+
if (i + 1 > this.Advertisements?.length - 1) {
|
|
19
|
+
i = 0;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
i++;
|
|
23
|
+
}
|
|
24
|
+
this.CurrentAd = this.Advertisements[i];
|
|
25
|
+
console.log('current ad = ', this.CurrentAd);
|
|
26
|
+
}, 30000);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
11
29
|
ActionClicked(action) {
|
|
12
30
|
window.location.href = action;
|
|
13
31
|
}
|
|
14
32
|
}
|
|
15
33
|
AdvertisementCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AdvertisementCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
16
|
-
AdvertisementCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AdvertisementCardComponent, selector: "lcu-advertisement-card", inputs: {
|
|
34
|
+
AdvertisementCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AdvertisementCardComponent, selector: "lcu-advertisement-card", inputs: { Advertisements: ["advertisements", "Advertisements"] }, usesOnChanges: true, ngImport: i0, template: "<mat-card class=\"ad-card\">\n <div class=\"ad-text header\">\n {{ CurrentAd?.Lead }}\n </div>\n\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <img\n class=\"ad-image\"\n [src]=\"CurrentAd?.Image\"\n alt=\"image description\"\n />\n <!-- <img class=\"ad-image\" src=\"../../../assets/images/thinky.png\" alt=\"image description\" /> -->\n\n <p class=\"ad-text\">{{ CurrentAd?.Description }}</p>\n </mat-card-content>\n\n <mat-card-actions\n *ngFor=\"let action of CurrentAd?.Actions\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-button\n (click)=\"ActionClicked(action?.Action)\"\n [color]=\"action?.color\"\n >\n <mat-icon *ngIf=\"action?.Icon\">{{ action?.Icon }}</mat-icon>\n {{ action?.Text }}\n </button>\n </mat-card-actions>\n</mat-card>\n", styles: [".ad-card{margin:20px;padding:0}.header{padding:10px}.ad-image{height:50px}.ad-text{text-align:center}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}\n"], components: [{ type: i1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
17
35
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AdvertisementCardComponent, decorators: [{
|
|
18
36
|
type: Component,
|
|
19
|
-
args: [{ selector: 'lcu-advertisement-card', template: "<mat-card class=\"ad-card\">\n <div class=\"ad-text header\">\n {{
|
|
20
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
37
|
+
args: [{ selector: 'lcu-advertisement-card', template: "<mat-card class=\"ad-card\">\n <div class=\"ad-text header\">\n {{ CurrentAd?.Lead }}\n </div>\n\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <img\n class=\"ad-image\"\n [src]=\"CurrentAd?.Image\"\n alt=\"image description\"\n />\n <!-- <img class=\"ad-image\" src=\"../../../assets/images/thinky.png\" alt=\"image description\" /> -->\n\n <p class=\"ad-text\">{{ CurrentAd?.Description }}</p>\n </mat-card-content>\n\n <mat-card-actions\n *ngFor=\"let action of CurrentAd?.Actions\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-button\n (click)=\"ActionClicked(action?.Action)\"\n [color]=\"action?.color\"\n >\n <mat-icon *ngIf=\"action?.Icon\">{{ action?.Icon }}</mat-icon>\n {{ action?.Text }}\n </button>\n </mat-card-actions>\n</mat-card>\n", styles: [".ad-card{margin:20px;padding:0}.header{padding:10px}.ad-image{height:50px}.ad-text{text-align:center}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}\n"] }]
|
|
38
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Advertisements: [{
|
|
21
39
|
type: Input,
|
|
22
|
-
args: ['
|
|
40
|
+
args: ['advertisements']
|
|
23
41
|
}] } });
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWR2ZXJ0aXNlbWVudC1jYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbW1vbi9zcmMvbGliL2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QtYWN0aW9ucz5cbjwvbWF0LWNhcmQ+XG4iXX0=
|
|
@@ -7691,18 +7691,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImpor
|
|
|
7691
7691
|
class AdvertisementCardComponent {
|
|
7692
7692
|
constructor() { }
|
|
7693
7693
|
ngOnInit() { }
|
|
7694
|
+
ngOnChanges() {
|
|
7695
|
+
var _a;
|
|
7696
|
+
// 900000 = 15 mins
|
|
7697
|
+
if (((_a = this.Advertisements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
7698
|
+
console.log('Ads: ', this.Advertisements);
|
|
7699
|
+
let i = 0;
|
|
7700
|
+
this.CurrentAd = this.Advertisements[i];
|
|
7701
|
+
setInterval(() => {
|
|
7702
|
+
var _a;
|
|
7703
|
+
if (i + 1 > ((_a = this.Advertisements) === null || _a === void 0 ? void 0 : _a.length) - 1) {
|
|
7704
|
+
i = 0;
|
|
7705
|
+
}
|
|
7706
|
+
else {
|
|
7707
|
+
i++;
|
|
7708
|
+
}
|
|
7709
|
+
this.CurrentAd = this.Advertisements[i];
|
|
7710
|
+
console.log('current ad = ', this.CurrentAd);
|
|
7711
|
+
}, 30000);
|
|
7712
|
+
}
|
|
7713
|
+
}
|
|
7694
7714
|
ActionClicked(action) {
|
|
7695
7715
|
window.location.href = action;
|
|
7696
7716
|
}
|
|
7697
7717
|
}
|
|
7698
7718
|
AdvertisementCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AdvertisementCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7699
|
-
AdvertisementCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AdvertisementCardComponent, selector: "lcu-advertisement-card", inputs: {
|
|
7719
|
+
AdvertisementCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: AdvertisementCardComponent, selector: "lcu-advertisement-card", inputs: { Advertisements: ["advertisements", "Advertisements"] }, usesOnChanges: true, ngImport: i0, template: "<mat-card class=\"ad-card\">\n <div class=\"ad-text header\">\n {{ CurrentAd?.Lead }}\n </div>\n\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <img\n class=\"ad-image\"\n [src]=\"CurrentAd?.Image\"\n alt=\"image description\"\n />\n <!-- <img class=\"ad-image\" src=\"../../../assets/images/thinky.png\" alt=\"image description\" /> -->\n\n <p class=\"ad-text\">{{ CurrentAd?.Description }}</p>\n </mat-card-content>\n\n <mat-card-actions\n *ngFor=\"let action of CurrentAd?.Actions\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-button\n (click)=\"ActionClicked(action?.Action)\"\n [color]=\"action?.color\"\n >\n <mat-icon *ngIf=\"action?.Icon\">{{ action?.Icon }}</mat-icon>\n {{ action?.Text }}\n </button>\n </mat-card-actions>\n</mat-card>\n", styles: [".ad-card{margin:20px;padding:0}.header{padding:10px}.ad-image{height:50px}.ad-text{text-align:center}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}\n"], components: [{ type: i1$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i9.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
7700
7720
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AdvertisementCardComponent, decorators: [{
|
|
7701
7721
|
type: Component,
|
|
7702
|
-
args: [{ selector: 'lcu-advertisement-card', template: "<mat-card class=\"ad-card\">\n <div class=\"ad-text header\">\n {{
|
|
7703
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
7722
|
+
args: [{ selector: 'lcu-advertisement-card', template: "<mat-card class=\"ad-card\">\n <div class=\"ad-text header\">\n {{ CurrentAd?.Lead }}\n </div>\n\n <mat-card-content fxLayout=\"column\" fxLayoutAlign=\"center center\">\n <img\n class=\"ad-image\"\n [src]=\"CurrentAd?.Image\"\n alt=\"image description\"\n />\n <!-- <img class=\"ad-image\" src=\"../../../assets/images/thinky.png\" alt=\"image description\" /> -->\n\n <p class=\"ad-text\">{{ CurrentAd?.Description }}</p>\n </mat-card-content>\n\n <mat-card-actions\n *ngFor=\"let action of CurrentAd?.Actions\"\n fxLayoutAlign=\"center center\"\n >\n <button\n mat-button\n (click)=\"ActionClicked(action?.Action)\"\n [color]=\"action?.color\"\n >\n <mat-icon *ngIf=\"action?.Icon\">{{ action?.Icon }}</mat-icon>\n {{ action?.Text }}\n </button>\n </mat-card-actions>\n</mat-card>\n", styles: [".ad-card{margin:20px;padding:0}.header{padding:10px}.ad-image{height:50px}.ad-text{text-align:center}mat-card-actions{margin-bottom:-1px!important;margin-left:0!important;margin-right:-.5px!important}\n"] }]
|
|
7723
|
+
}], ctorParameters: function () { return []; }, propDecorators: { Advertisements: [{
|
|
7704
7724
|
type: Input,
|
|
7705
|
-
args: ['
|
|
7725
|
+
args: ['advertisements']
|
|
7706
7726
|
}] } });
|
|
7707
7727
|
|
|
7708
7728
|
class FeedFilterComponent {
|