ngx-pendo 1.11.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/ngx-pendo-id.directive.mjs +55 -0
- package/{esm2020 → esm2022}/lib/ngx-pendo-section.directive.mjs +4 -4
- package/{esm2020 → esm2022}/lib/ngx-pendo.component.mjs +7 -7
- package/{esm2020 → esm2022}/lib/ngx-pendo.module.mjs +9 -9
- package/{esm2020 → esm2022}/lib/ngx-pendo.service.mjs +6 -6
- package/{fesm2020 → fesm2022}/ngx-pendo.mjs +32 -32
- package/{fesm2020 → fesm2022}/ngx-pendo.mjs.map +1 -1
- package/lib/ngx-pendo-id.directive.d.ts +1 -1
- package/lib/ngx-pendo-section.directive.d.ts +1 -1
- package/package.json +5 -11
- package/schematics/ng-add/index.d.ts +6 -1
- package/schematics/ng-add/index.js +13 -8
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/index.spec.js +10 -11
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/schematics/ng-add/schema.json +2 -2
- package/esm2020/lib/ngx-pendo-id.directive.mjs +0 -55
- package/fesm2015/ngx-pendo.mjs +0 -271
- package/fesm2015/ngx-pendo.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/ngx-pendo.injectors.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/ngx-pendo.interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-pendo.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Directive, Input, HostBinding } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./ngx-pendo.service";
|
|
4
|
+
export class NgxPendoIdDirective {
|
|
5
|
+
get pendoId() {
|
|
6
|
+
return this.service.formatPendoId(...this._pendoSections, this._pendoId);
|
|
7
|
+
}
|
|
8
|
+
set pendoId(value) {
|
|
9
|
+
this._pendoId = value;
|
|
10
|
+
}
|
|
11
|
+
get parent() {
|
|
12
|
+
return this._parent;
|
|
13
|
+
}
|
|
14
|
+
set parent(value) {
|
|
15
|
+
this._parent = value;
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
this._pendoSections = [];
|
|
18
|
+
let cur = this.inherit ? value : null;
|
|
19
|
+
while (cur) {
|
|
20
|
+
this._pendoSections.unshift(cur.pendoSection);
|
|
21
|
+
cur = cur.inherit ? cur.parent : null;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
get disableInherit() {
|
|
26
|
+
return this.inherit ? undefined : true;
|
|
27
|
+
}
|
|
28
|
+
constructor(service) {
|
|
29
|
+
this.service = service;
|
|
30
|
+
this._pendoSections = [];
|
|
31
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
32
|
+
this.inherit = true;
|
|
33
|
+
}
|
|
34
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: i1.NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
35
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.3", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 }); }
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
38
|
+
type: Directive,
|
|
39
|
+
args: [{
|
|
40
|
+
selector: '[ngx-pendo-id]'
|
|
41
|
+
}]
|
|
42
|
+
}], ctorParameters: () => [{ type: i1.NgxPendoService }], propDecorators: { pendoId: [{
|
|
43
|
+
type: Input,
|
|
44
|
+
args: ['ngx-pendo-id']
|
|
45
|
+
}, {
|
|
46
|
+
type: HostBinding,
|
|
47
|
+
args: ['attr.data-pendo-id']
|
|
48
|
+
}], inherit: [{
|
|
49
|
+
type: Input,
|
|
50
|
+
args: ['ngx-pendo-inherit']
|
|
51
|
+
}], disableInherit: [{
|
|
52
|
+
type: HostBinding,
|
|
53
|
+
args: ['attr.ngx-pendo-disable-inherit']
|
|
54
|
+
}] } });
|
|
55
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLWlkLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1wZW5kby9zcmMvbGliL25neC1wZW5kby1pZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFROUQsTUFBTSxPQUFPLG1CQUFtQjtJQU85QixJQUVJLE9BQU87UUFDVCxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDM0UsQ0FBQztJQUNELElBQUksT0FBTyxDQUFDLEtBQWE7UUFDdkIsSUFBSSxDQUFDLFFBQVEsR0FBRyxLQUFLLENBQUM7SUFDeEIsQ0FBQztJQU1ELElBQUksTUFBTTtRQUNSLE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN0QixDQUFDO0lBQ0QsSUFBSSxNQUFNLENBQUMsS0FBK0I7UUFDeEMsSUFBSSxDQUFDLE9BQU8sR0FBRyxLQUFLLENBQUM7UUFDckIsVUFBVSxDQUFDLEdBQU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W5hbWVcbiAgQElucHV0KCduZ3gtcGVuZG8taW5oZXJpdCcpXG4gIGluaGVyaXQgPSB0cnVlO1xuXG4gIGdldCBwYXJlbnQoKTogTmd4UGVuZG9TZWN0aW9uRGlyZWN0aXZlIHtcbiAgICByZXR1cm4gdGhpcy5fcGFyZW50O1xuICB9XG4gIHNldCBwYXJlbnQodmFsdWU6IE5neFBlbmRvU2VjdGlvbkRpcmVjdGl2ZSkge1xuICAgIHRoaXMuX3BhcmVudCA9IHZhbHVlO1xuICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgdGhpcy5fcGVuZG9TZWN0aW9ucyA9IFtdO1xuICAgICAgbGV0IGN1ciA9IHRoaXMuaW5oZXJpdCA/IHZhbHVlIDogbnVsbDtcbiAgICAgIHdoaWxlIChjdXIpIHtcbiAgICAgICAgdGhpcy5fcGVuZG9TZWN0aW9ucy51bnNoaWZ0KGN1ci5wZW5kb1NlY3Rpb24pO1xuICAgICAgICBjdXIgPSBjdXIuaW5oZXJpdCA/IGN1ci5wYXJlbnQgOiBudWxsO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG5cbiAgQEhvc3RCaW5kaW5nKCdhdHRyLm5neC1wZW5kby1kaXNhYmxlLWluaGVyaXQnKVxuICBnZXQgZGlzYWJsZUluaGVyaXQoKTogYm9vbGVhbiB8IHVuZGVmaW5lZCB7XG4gICAgcmV0dXJuIHRoaXMuaW5oZXJpdCA/IHVuZGVmaW5lZCA6IHRydWU7XG4gIH1cblxuICBjb25zdHJ1Y3Rvcihwcml2YXRlIHNlcnZpY2U6IE5neFBlbmRvU2VydmljZSkge31cbn1cbiJdfQ==
|
|
@@ -29,10 +29,10 @@ export class NgxPendoSectionDirective {
|
|
|
29
29
|
this.subscriptions.forEach(s => s.unsubscribe());
|
|
30
30
|
this.subscriptions = [];
|
|
31
31
|
}
|
|
32
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoSectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
33
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.3", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 }); }
|
|
32
34
|
}
|
|
33
|
-
|
|
34
|
-
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
36
36
|
type: Directive,
|
|
37
37
|
args: [{
|
|
38
38
|
selector: '[ngx-pendo-section]'
|
|
@@ -59,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImpor
|
|
|
59
59
|
type: ContentChildren,
|
|
60
60
|
args: [NgxPendoIdDirective, { descendants: true }]
|
|
61
61
|
}] } });
|
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLXNlY3Rpb24uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXBlbmRvL3NyYy9saWIvbmd4LXBlbmRvLXNlY3Rpb24uZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLFdBQVcsRUFDWCxlQUFlLEVBTWhCLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBRSxLQUFLLEVBQWdCLE1BQU0sTUFBTSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUUzQyxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSwwQkFBMEIsQ0FBQzs7QUFLL0QsTUFBTSxPQUFPLHdCQUF3QjtJQUhyQztRQVFFLDJEQUEyRDtRQUUzRCxZQUFPLEdBQUcsSUFBSSxDQUFDO1FBa0JQLGtCQUFhLEdBQW1CLEVBQUUsQ0FBQztLQTRCNUM7SUE1Q0MsSUFDSSxjQUFjO1FBQ2hCLE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUM7SUFDekMsQ0FBQztJQWVELGtCQUFrQjtRQUNoQix1QkFBdUI7UUFDdkIsSUFBSSxDQUFDLGFBQWEsQ0FBQyxJQUFJLENBQ3JCLEtBQUssQ0FDSCxJQUFJLENBQUMsaUJBQWlCL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ckVhY2goaSA9PiAoaS5wYXJlbnQgPSBpLnBhcmVudCkpO1xuICAgIH1cbiAgfVxuXG4gIG5nT25EZXN0cm95KCk6IHZvaWQge1xuICAgIHRoaXMuc3Vic2NyaXB0aW9ucy5mb3JFYWNoKHMgPT4gcy51bnN1YnNjcmliZSgpKTtcbiAgICB0aGlzLnN1YnNjcmlwdGlvbnMgPSBbXTtcbiAgfVxufVxuIl19
|
|
@@ -2,19 +2,19 @@ import { Component } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export class NgxPendoComponent {
|
|
4
4
|
constructor() { }
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
5
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
8
7
|
<p>
|
|
9
8
|
ngx-pendo works!
|
|
10
9
|
</p>
|
|
11
|
-
`, isInline: true });
|
|
12
|
-
|
|
10
|
+
`, isInline: true }); }
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoComponent, decorators: [{
|
|
13
13
|
type: Component,
|
|
14
14
|
args: [{ selector: 'lib-ngx-pendo', template: `
|
|
15
15
|
<p>
|
|
16
16
|
ngx-pendo works!
|
|
17
17
|
</p>
|
|
18
18
|
` }]
|
|
19
|
-
}], ctorParameters:
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
}], ctorParameters: () => [] });
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1wZW5kby9zcmMvbGliL25neC1wZW5kby5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFZMUMsTUFBTSxPQUFPLGlCQUFpQjtJQUM1QixnQkFBZSxDQUFDOzhHQURMLGlCQUFpQjtrR0FBakIsaUJBQWlCLHFEQVBsQjs7OztHQUlUOzsyRkFHVSxpQkFBaUI7a0JBVjdCLFNBQVM7K0JBRUUsZUFBZSxZQUNmOzs7O0dBSVQiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAYW5ndWxhci1lc2xpbnQvY29tcG9uZW50LXNlbGVjdG9yXG4gIHNlbGVjdG9yOiAnbGliLW5neC1wZW5kbycsXG4gIHRlbXBsYXRlOiBgXG4gICAgPHA+XG4gICAgICBuZ3gtcGVuZG8gd29ya3MhXG4gICAgPC9wPlxuICBgLFxuICBzdHlsZXM6IFtdXG59KVxuZXhwb3J0IGNsYXNzIE5neFBlbmRvQ29tcG9uZW50IHtcbiAgY29uc3RydWN0b3IoKSB7fVxufVxuIl19
|
|
@@ -27,15 +27,15 @@ export class NgxPendoModule {
|
|
|
27
27
|
],
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
31
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
32
|
+
NgxPendoIdDirective,
|
|
33
|
+
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
34
|
+
NgxPendoIdDirective,
|
|
35
|
+
NgxPendoSectionDirective] }); }
|
|
36
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule }); }
|
|
30
37
|
}
|
|
31
|
-
|
|
32
|
-
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
33
|
-
NgxPendoIdDirective,
|
|
34
|
-
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
35
|
-
NgxPendoIdDirective,
|
|
36
|
-
NgxPendoSectionDirective] });
|
|
37
|
-
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
39
39
|
type: NgModule,
|
|
40
40
|
args: [{
|
|
41
41
|
declarations: [
|
|
@@ -51,4 +51,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImpor
|
|
|
51
51
|
],
|
|
52
52
|
}]
|
|
53
53
|
}] });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmR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ICAgTmd4UGVuZG9TZWN0aW9uRGlyZWN0aXZlLFxuICBdLFxuICBpbXBvcnRzOiBbXSxcbiAgZXhwb3J0czogW1xuICAgIE5neFBlbmRvQ29tcG9uZW50LFxuICAgIE5neFBlbmRvSWREaXJlY3RpdmUsXG4gICAgTmd4UGVuZG9TZWN0aW9uRGlyZWN0aXZlLFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBOZ3hQZW5kb01vZHVsZSB7XG4gIHN0YXRpYyBmb3JSb290KHNldHRpbmdzOiBJUGVuZG9TZXR0aW5ncyk6IE1vZHVsZVdpdGhQcm92aWRlcnM8Tmd4UGVuZG9Nb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IE5neFBlbmRvTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBOR1hfUEVORE9fU0VUVElOR1NfVE9LRU4sXG4gICAgICAgICAgdXNlVmFsdWU6IHNldHRpbmdzXG4gICAgICAgIH0sXG4gICAgICAgIE5HWF9QRU5ET19JTklUSUFMSVpFUl9QUk9WSURFUixcbiAgICAgICAgTmd4UGVuZG9TZXJ2aWNlLFxuICAgICAgXSxcbiAgICB9O1xuICB9XG5cbiAgc3RhdGljIGZvckNoaWxkKCk6IE1vZHVsZVdpdGhQcm92aWRlcnM8Tmd4UGVuZG9Nb2R1bGU+IHtcbiAgICByZXR1cm4ge1xuICAgICAgbmdNb2R1bGU6IE5neFBlbmRvTW9kdWxlLFxuICAgICAgcHJvdmlkZXJzOiBbXG4gICAgICAgIE5neFBlbmRvU2VydmljZSxcbiAgICAgIF0sXG4gICAgfTtcbiAgfVxufVxuIl19
|
|
@@ -28,13 +28,13 @@ export class NgxPendoService {
|
|
|
28
28
|
formatPendoId(...ids) {
|
|
29
29
|
return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');
|
|
30
30
|
}
|
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoService, deps: [{ token: NGX_PENDO_SETTINGS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
32
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoService }); }
|
|
31
33
|
}
|
|
32
|
-
|
|
33
|
-
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService });
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
35
35
|
type: Injectable
|
|
36
|
-
}], ctorParameters:
|
|
36
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
37
37
|
type: Inject,
|
|
38
38
|
args: [NGX_PENDO_SETTINGS_TOKEN]
|
|
39
|
-
}] }]
|
|
40
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
}] }] });
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcGVuZG8vc3JjL2xpYi9uZ3gtcGVuZG8uc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNuRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQzs7QUFLakUsTUFBTSwwQkF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W5nW11cbiAgICovXG4gIGZvcm1hdFBlbmRvSWQoLi4uaWRzOiBzdHJpbmdbXSk6IHN0cmluZyB7XG4gICAgcmV0dXJuICh0aGlzLnBlbmRvSWRGb3JtYXR0ZXIgPyBpZHMubWFwKGlkID0+IHRoaXMucGVuZG9JZEZvcm1hdHRlcihpZCkpIDogaWRzKS5qb2luKCcuJyk7XG4gIH1cblxufVxuIl19
|
|
@@ -72,23 +72,17 @@ class NgxPendoService {
|
|
|
72
72
|
formatPendoId(...ids) {
|
|
73
73
|
return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');
|
|
74
74
|
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoService, deps: [{ token: NGX_PENDO_SETTINGS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
76
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoService }); }
|
|
75
77
|
}
|
|
76
|
-
|
|
77
|
-
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService });
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
79
79
|
type: Injectable
|
|
80
|
-
}], ctorParameters:
|
|
80
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
81
81
|
type: Inject,
|
|
82
82
|
args: [NGX_PENDO_SETTINGS_TOKEN]
|
|
83
|
-
}] }]
|
|
83
|
+
}] }] });
|
|
84
84
|
|
|
85
85
|
class NgxPendoIdDirective {
|
|
86
|
-
constructor(service) {
|
|
87
|
-
this.service = service;
|
|
88
|
-
this._pendoSections = [];
|
|
89
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
90
|
-
this.inherit = true;
|
|
91
|
-
}
|
|
92
86
|
get pendoId() {
|
|
93
87
|
return this.service.formatPendoId(...this._pendoSections, this._pendoId);
|
|
94
88
|
}
|
|
@@ -112,15 +106,21 @@ class NgxPendoIdDirective {
|
|
|
112
106
|
get disableInherit() {
|
|
113
107
|
return this.inherit ? undefined : true;
|
|
114
108
|
}
|
|
109
|
+
constructor(service) {
|
|
110
|
+
this.service = service;
|
|
111
|
+
this._pendoSections = [];
|
|
112
|
+
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
113
|
+
this.inherit = true;
|
|
114
|
+
}
|
|
115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
116
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.3", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 }); }
|
|
115
117
|
}
|
|
116
|
-
|
|
117
|
-
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 });
|
|
118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
119
119
|
type: Directive,
|
|
120
120
|
args: [{
|
|
121
121
|
selector: '[ngx-pendo-id]'
|
|
122
122
|
}]
|
|
123
|
-
}], ctorParameters:
|
|
123
|
+
}], ctorParameters: () => [{ type: NgxPendoService }], propDecorators: { pendoId: [{
|
|
124
124
|
type: Input,
|
|
125
125
|
args: ['ngx-pendo-id']
|
|
126
126
|
}, {
|
|
@@ -160,10 +160,10 @@ class NgxPendoSectionDirective {
|
|
|
160
160
|
this.subscriptions.forEach(s => s.unsubscribe());
|
|
161
161
|
this.subscriptions = [];
|
|
162
162
|
}
|
|
163
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoSectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
164
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.3", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 }); }
|
|
163
165
|
}
|
|
164
|
-
|
|
165
|
-
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
167
167
|
type: Directive,
|
|
168
168
|
args: [{
|
|
169
169
|
selector: '[ngx-pendo-section]'
|
|
@@ -193,21 +193,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImpor
|
|
|
193
193
|
|
|
194
194
|
class NgxPendoComponent {
|
|
195
195
|
constructor() { }
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
196
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
197
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.3", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
199
198
|
<p>
|
|
200
199
|
ngx-pendo works!
|
|
201
200
|
</p>
|
|
202
|
-
`, isInline: true });
|
|
203
|
-
|
|
201
|
+
`, isInline: true }); }
|
|
202
|
+
}
|
|
203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoComponent, decorators: [{
|
|
204
204
|
type: Component,
|
|
205
205
|
args: [{ selector: 'lib-ngx-pendo', template: `
|
|
206
206
|
<p>
|
|
207
207
|
ngx-pendo works!
|
|
208
208
|
</p>
|
|
209
209
|
` }]
|
|
210
|
-
}], ctorParameters:
|
|
210
|
+
}], ctorParameters: () => [] });
|
|
211
211
|
|
|
212
212
|
class NgxPendoModule {
|
|
213
213
|
static forRoot(settings) {
|
|
@@ -231,15 +231,15 @@ class NgxPendoModule {
|
|
|
231
231
|
],
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
235
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
236
|
+
NgxPendoIdDirective,
|
|
237
|
+
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
238
|
+
NgxPendoIdDirective,
|
|
239
|
+
NgxPendoSectionDirective] }); }
|
|
240
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule }); }
|
|
234
241
|
}
|
|
235
|
-
|
|
236
|
-
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
237
|
-
NgxPendoIdDirective,
|
|
238
|
-
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
239
|
-
NgxPendoIdDirective,
|
|
240
|
-
NgxPendoSectionDirective] });
|
|
241
|
-
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule });
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.3", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
243
243
|
type: NgModule,
|
|
244
244
|
args: [{
|
|
245
245
|
declarations: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent {\n constructor() {}\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxPendoService"],"mappings":";;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;AACrC,CAAA,EAAE;AAEH,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AAE9C,MAAA,8BAA8B,GAAa;AACtD,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,IAAI,EAAE;QACJ,wBAAwB;AACzB,KAAA;EACD;AAEI,SAAU,gBAAgB,CAAC,SAAyB,EAAA;IACxD,OAAO,YAAW;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1B,IAAI,SAAS,EAAE,EAAE;AACf,gBAAA,OAAO,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;AACtG,aAAA;YAED,OAAO;AACR,SAAA;QAED,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,KAAI;YAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD,YAAA,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;AACpB,YAAA,MAAM,CAAC,GAAG,GAAG,CAAA,EAAG,SAAS,CAAC,iBAAiB,IAAI,2BAA2B,CAAiB,cAAA,EAAA,SAAS,CAAC,WAAW,WA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Ab1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACpBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent {\n constructor() {}\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxPendoService"],"mappings":";;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;AACrC,CAAA,EAAE;AAEH,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AAE9C,MAAA,8BAA8B,GAAa;AACtD,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,IAAI,EAAE;QACJ,wBAAwB;AACzB,KAAA;EACD;AAEI,SAAU,gBAAgB,CAAC,SAAyB,EAAA;IACxD,OAAO,YAAW;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1B,IAAI,SAAS,EAAE,EAAE;AACf,gBAAA,OAAO,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;AACtG,aAAA;YAED,OAAO;AACR,SAAA;QAED,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,KAAI;YAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD,YAAA,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;AACpB,YAAA,MAAM,CAAC,GAAG,GAAG,CAAA,EAAG,SAAS,CAAC,iBAAiB,IAAI,2BAA2B,CAAiB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AAiB;YACjB,mBAAmB;YACnB,wBAAwB,CAAA,EAAA,CAAA,CAAA,EAAA;+GAGf,cAAc,EAAA,CAAA,CAAA,EAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAb1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;AACzB,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE;wBACP,iBAAiB;wBACjB,mBAAmB;wBACnB,wBAAwB;AACzB,qBAAA;AACF,iBAAA,CAAA;;;ACpBD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -15,5 +15,5 @@ export declare class NgxPendoIdDirective implements IPendoDirective {
|
|
|
15
15
|
get disableInherit(): boolean | undefined;
|
|
16
16
|
constructor(service: NgxPendoService);
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPendoIdDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoIdDirective, "[ngx-pendo-id]", never, { "pendoId": "ngx-pendo-id"; "inherit": "ngx-pendo-inherit"; }, {}, never, never, false, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoIdDirective, "[ngx-pendo-id]", never, { "pendoId": { "alias": "ngx-pendo-id"; "required": false; }; "inherit": { "alias": "ngx-pendo-inherit"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
@@ -15,5 +15,5 @@ export declare class NgxPendoSectionDirective implements IPendoDirective, AfterC
|
|
|
15
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxPendoSectionDirective, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoSectionDirective, "[ngx-pendo-section]", never, { "pendoSection": "ngx-pendo-section"; "inherit": "ngx-pendo-inherit"; }, {}, ["idDirectives", "sectionDirectives", "allIdDirectives"], never, false, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxPendoSectionDirective, "[ngx-pendo-section]", never, { "pendoSection": { "alias": "ngx-pendo-section"; "required": false; }; "inherit": { "alias": "ngx-pendo-inherit"; "required": false; }; }, {}, ["idDirectives", "sectionDirectives", "allIdDirectives"], never, false, never>;
|
|
19
19
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-pendo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "A simple wrapper to load Pendo by angular way",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -28,11 +28,7 @@
|
|
|
28
28
|
"tslib": "^2.0.0"
|
|
29
29
|
},
|
|
30
30
|
"schematics": "./schematics/collection.json",
|
|
31
|
-
"module": "
|
|
32
|
-
"es2020": "fesm2020/ngx-pendo.mjs",
|
|
33
|
-
"esm2020": "esm2020/ngx-pendo.mjs",
|
|
34
|
-
"fesm2020": "fesm2020/ngx-pendo.mjs",
|
|
35
|
-
"fesm2015": "fesm2015/ngx-pendo.mjs",
|
|
31
|
+
"module": "fesm2022/ngx-pendo.mjs",
|
|
36
32
|
"typings": "index.d.ts",
|
|
37
33
|
"exports": {
|
|
38
34
|
"./package.json": {
|
|
@@ -40,11 +36,9 @@
|
|
|
40
36
|
},
|
|
41
37
|
".": {
|
|
42
38
|
"types": "./index.d.ts",
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"node": "./fesm2015/ngx-pendo.mjs",
|
|
47
|
-
"default": "./fesm2020/ngx-pendo.mjs"
|
|
39
|
+
"esm2022": "./esm2022/ngx-pendo.mjs",
|
|
40
|
+
"esm": "./esm2022/ngx-pendo.mjs",
|
|
41
|
+
"default": "./fesm2022/ngx-pendo.mjs"
|
|
48
42
|
}
|
|
49
43
|
},
|
|
50
44
|
"sideEffects": false
|
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
|
|
2
|
+
interface NgxPendoNgAddSchema {
|
|
3
|
+
project?: string;
|
|
4
|
+
pendoApiKey?: string;
|
|
5
|
+
}
|
|
6
|
+
export default function (options: NgxPendoNgAddSchema): Rule;
|
|
7
|
+
export {};
|
|
@@ -28,7 +28,7 @@ function default_1(options) {
|
|
|
28
28
|
if (project.extensions.projectType === workspace_models_1.ProjectType.Application) {
|
|
29
29
|
addNgxPendoModule(project, _host, options);
|
|
30
30
|
}
|
|
31
|
-
addPackageToPackageJson(_host, 'ngx-pendo', '~1.
|
|
31
|
+
// addPackageToPackageJson(_host, 'ngx-pendo', '~1.12.0');
|
|
32
32
|
_context.logger.log('info', '✅️ Added "ngx-pendo');
|
|
33
33
|
_context.addTask(new tasks_1.NodePackageInstallTask());
|
|
34
34
|
});
|
|
@@ -48,9 +48,9 @@ function addNgxPendoModule(project, _host, options) {
|
|
|
48
48
|
recorder.insertLeft(importChange.pos, importChange.toAdd);
|
|
49
49
|
}
|
|
50
50
|
const ngModuleName = `NgxPendoModule.forRoot({
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
pendoApiKey: '${options.pendoApiKey}',
|
|
52
|
+
pendoIdFormatter: (value: any) => value.toString().toLowerCase()
|
|
53
|
+
})`;
|
|
54
54
|
const ngModuleChanges = (0, ast_utils_1.addSymbolToNgModuleMetadata)(sourceFile, appModulePath, 'imports', ngModuleName, null);
|
|
55
55
|
for (const change of ngModuleChanges) {
|
|
56
56
|
if (change instanceof change_1.InsertChange) {
|
|
@@ -97,10 +97,15 @@ function getProjectTargetOptions(project, buildTarget) {
|
|
|
97
97
|
}
|
|
98
98
|
function getProjectMainFile(project) {
|
|
99
99
|
const buildOptions = getProjectTargetOptions(project, 'build');
|
|
100
|
-
if (!buildOptions
|
|
101
|
-
throw new schematics_1.SchematicsException(`Could not find the project main file inside of the ` +
|
|
102
|
-
`workspace config (${project.sourceRoot})`);
|
|
100
|
+
if (!buildOptions) {
|
|
101
|
+
throw new schematics_1.SchematicsException(`Could not find the project main file inside of the ` + `workspace config (${project.sourceRoot})`);
|
|
103
102
|
}
|
|
104
|
-
|
|
103
|
+
// `browser` is for the `@angular-devkit/build-angular:application` builder
|
|
104
|
+
// main is for `@angular-devkit/build-angular:browser` builder
|
|
105
|
+
const mainPath = (buildOptions['browser'] || buildOptions['main']);
|
|
106
|
+
if (!mainPath) {
|
|
107
|
+
throw new schematics_1.SchematicsException(`Cloud not find the project main file inside of the ` + `workspace config (${project.sourceRoot})`);
|
|
108
|
+
}
|
|
109
|
+
return mainPath;
|
|
105
110
|
}
|
|
106
111
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngx-pendo/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,4DAA0E;AAC1E,2EAA4E;AAC5E,qEAAqE;AACrE,2DAAiE;AACjE,qEAAkG;AAClG,mFAA2E;AAC3E,+DAAkE;AAElE,qGAAqG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/ngx-pendo/schematics/ng-add/index.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,4DAA0E;AAC1E,2EAA4E;AAC5E,qEAAqE;AACrE,2DAAiE;AACjE,qEAAkG;AAClG,mFAA2E;AAC3E,+DAAkE;AAElE,qGAAqG;AAOrG,mBAAwB,OAA4B;IAClD,OAAO,CAAO,KAAW,EAAE,QAA0B,EAAE,EAAE;QACvD,MAAM,SAAS,GAAG,MAAM,IAAA,wBAAY,EAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,IAAI,SAAS,CAAC,UAAU,CAAC,cAAe,CAAC,QAAQ,EAAE,CAAC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F,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,gCAAmB,CAC3B,qDAAqD,GAAG,qBAAqB,OAAO,CAAC,UAAU,GAAG,CACnG,CAAC;KACH;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
|
@@ -13,8 +13,8 @@ require("jasmine");
|
|
|
13
13
|
const testing_1 = require("@angular-devkit/schematics/testing");
|
|
14
14
|
const path = require("path");
|
|
15
15
|
const schema_1 = require("@schematics/angular/application/schema");
|
|
16
|
-
const collectionPath = path.join(__dirname, '
|
|
17
|
-
describe('ng add ngx
|
|
16
|
+
const collectionPath = path.join(__dirname, '../collection.json');
|
|
17
|
+
describe('ng add ngx pendo', () => {
|
|
18
18
|
const runner = new testing_1.SchematicTestRunner('schematics', collectionPath);
|
|
19
19
|
const workspaceOptions = {
|
|
20
20
|
name: 'workspace',
|
|
@@ -22,25 +22,24 @@ describe('ng add ngx pedno', () => {
|
|
|
22
22
|
version: '0.0.1'
|
|
23
23
|
};
|
|
24
24
|
const appOptions = {
|
|
25
|
-
name: 'ngx-
|
|
25
|
+
name: 'ngx-pendo',
|
|
26
26
|
inlineStyle: false,
|
|
27
27
|
inlineTemplate: false,
|
|
28
28
|
routing: false,
|
|
29
29
|
style: schema_1.Style.Scss,
|
|
30
30
|
skipTests: false,
|
|
31
|
-
skipPackageJson: false
|
|
31
|
+
skipPackageJson: false,
|
|
32
|
+
standalone: false
|
|
32
33
|
};
|
|
33
34
|
let appTree;
|
|
34
35
|
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
-
appTree = yield runner.
|
|
36
|
-
appTree = yield runner
|
|
37
|
-
.runExternalSchematicAsync('@schematics/angular', 'application', appOptions, appTree)
|
|
38
|
-
.toPromise();
|
|
36
|
+
appTree = yield runner.runExternalSchematic('@schematics/angular', 'workspace', workspaceOptions);
|
|
37
|
+
appTree = yield runner.runExternalSchematic('@schematics/angular', 'application', appOptions, appTree);
|
|
39
38
|
}));
|
|
40
39
|
it('add NgxPendoModule in angular project', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
-
const options = { project: 'ngx-
|
|
42
|
-
const tree = yield runner.
|
|
43
|
-
const appmodule = tree.readContent('/projects/ngx-
|
|
40
|
+
const options = { project: 'ngx-pendo', pendoApiKey: 'test1' };
|
|
41
|
+
const tree = yield runner.runSchematic('ng-add', options, appTree);
|
|
42
|
+
const appmodule = tree.readContent('/projects/ngx-pendo/src/app/app.module.ts');
|
|
44
43
|
console.log(appmodule);
|
|
45
44
|
}));
|
|
46
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../projects/ngx-pendo/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mBAAiB;AACjB,gEAAuF;AACvF,6BAA6B;AAC7B,mEAA6F;AAG7F,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../../../projects/ngx-pendo/schematics/ng-add/index.spec.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,mBAAiB;AACjB,gEAAuF;AACvF,6BAA6B;AAC7B,mEAA6F;AAG7F,MAAM,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,oBAAoB,CAAC,CAAC;AAElE,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,MAAM,MAAM,GAAG,IAAI,6BAAmB,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC;IACrE,MAAM,gBAAgB,GAAqB;QACzC,IAAI,EAAE,WAAW;QACjB,cAAc,EAAE,UAAU;QAC1B,OAAO,EAAE,OAAO;KACjB,CAAC;IACF,MAAM,UAAU,GAAuB;QACrC,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,KAAK;QAClB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,cAAK,CAAC,IAAI;QACjB,SAAS,EAAE,KAAK;QAChB,eAAe,EAAE,KAAK;QACtB,UAAU,EAAE,KAAK;KAClB,CAAC;IACF,IAAI,OAAiC,CAAC;IAEtC,UAAU,CAAC,GAAS,EAAE;QACpB,OAAO,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,WAAW,EAAE,gBAAgB,CAAC,CAAC;QAClG,OAAO,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC,CAAA,CAAC,CAAC;IAEH,EAAE,CAAC,uCAAuC,EAAE,GAAS,EAAE;QACrD,MAAM,OAAO,GAAG,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,CAAC;QAC/D,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,2CAA2C,CAAC,CAAC;QAChF,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC,CAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "ngx-
|
|
4
|
-
"title": "Ngx
|
|
3
|
+
"$id": "ngx-pendo-ng-add-schema",
|
|
4
|
+
"title": "Ngx Pendo ng-add schematic",
|
|
5
5
|
"description": "Generate a file of JavaScript",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"properties": {
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Directive, Input, HostBinding } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "./ngx-pendo.service";
|
|
4
|
-
export class NgxPendoIdDirective {
|
|
5
|
-
constructor(service) {
|
|
6
|
-
this.service = service;
|
|
7
|
-
this._pendoSections = [];
|
|
8
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
9
|
-
this.inherit = true;
|
|
10
|
-
}
|
|
11
|
-
get pendoId() {
|
|
12
|
-
return this.service.formatPendoId(...this._pendoSections, this._pendoId);
|
|
13
|
-
}
|
|
14
|
-
set pendoId(value) {
|
|
15
|
-
this._pendoId = value;
|
|
16
|
-
}
|
|
17
|
-
get parent() {
|
|
18
|
-
return this._parent;
|
|
19
|
-
}
|
|
20
|
-
set parent(value) {
|
|
21
|
-
this._parent = value;
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
this._pendoSections = [];
|
|
24
|
-
let cur = this.inherit ? value : null;
|
|
25
|
-
while (cur) {
|
|
26
|
-
this._pendoSections.unshift(cur.pendoSection);
|
|
27
|
-
cur = cur.inherit ? cur.parent : null;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
get disableInherit() {
|
|
32
|
-
return this.inherit ? undefined : true;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: i1.NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
-
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 });
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
38
|
-
type: Directive,
|
|
39
|
-
args: [{
|
|
40
|
-
selector: '[ngx-pendo-id]'
|
|
41
|
-
}]
|
|
42
|
-
}], ctorParameters: function () { return [{ type: i1.NgxPendoService }]; }, propDecorators: { pendoId: [{
|
|
43
|
-
type: Input,
|
|
44
|
-
args: ['ngx-pendo-id']
|
|
45
|
-
}, {
|
|
46
|
-
type: HostBinding,
|
|
47
|
-
args: ['attr.data-pendo-id']
|
|
48
|
-
}], inherit: [{
|
|
49
|
-
type: Input,
|
|
50
|
-
args: ['ngx-pendo-inherit']
|
|
51
|
-
}], disableInherit: [{
|
|
52
|
-
type: HostBinding,
|
|
53
|
-
args: ['attr.ngx-pendo-disable-inherit']
|
|
54
|
-
}] } });
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXBlbmRvLWlkLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1wZW5kby9zcmMvbGliL25neC1wZW5kby1pZC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsV0FBVyxFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFROUQsTUFBTSxPQUFPLG1CQUFtQjtJQXdDOUIsWUFBb0IsT0FBd0I7UUFBeEIsWUFBTyxHQUFQLE9BQU8sQ0FBaUI7UUFyQ3BDLG1CQUFjLEdBQWEsRUFBRSxDQUFDO1FBYXRDLDJEQUEyRDtRQUUzRCxZQUFPLEdBQUcsSUFBSSxDQUFDO0lBc0JnQyxDQUFDO0lBakNoRCxJQUVJLE9BQU87UUFDVCxPQUFPLElBQUksQ0FBQyxPQUFPLENBQUMsYUFBYSxDQUFDLEdBQUcsSUFBSSxDQUFDLGNBQWMsRUFBRSxJQUFJLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDM0UsQ0FBQ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
|
2
|
-
import { InjectionToken, APP_INITIALIZER, isDevMode, Injectable, Inject, Directive, Input, HostBinding, ContentChildren, Component, NgModule } from '@angular/core';
|
|
3
|
-
import { __awaiter } from 'tslib';
|
|
4
|
-
import { interval, merge } from 'rxjs';
|
|
5
|
-
import { startWith } from 'rxjs/operators';
|
|
6
|
-
|
|
7
|
-
const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken('ngx-pendo-settings', {
|
|
8
|
-
factory: () => ({ pendoApiKey: '' }),
|
|
9
|
-
});
|
|
10
|
-
const DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';
|
|
11
|
-
const NGX_PENDO_INITIALIZER_PROVIDER = {
|
|
12
|
-
provide: APP_INITIALIZER,
|
|
13
|
-
multi: true,
|
|
14
|
-
useFactory: pendoInitializer,
|
|
15
|
-
deps: [
|
|
16
|
-
NGX_PENDO_SETTINGS_TOKEN,
|
|
17
|
-
],
|
|
18
|
-
};
|
|
19
|
-
function pendoInitializer($settings) {
|
|
20
|
-
return () => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
if (!$settings.pendoApiKey) {
|
|
22
|
-
if (isDevMode()) {
|
|
23
|
-
console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');
|
|
24
|
-
}
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
yield new Promise((resolve, reject) => {
|
|
28
|
-
const script = document.createElement('script');
|
|
29
|
-
script.async = true;
|
|
30
|
-
script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;
|
|
31
|
-
document.head.appendChild(script);
|
|
32
|
-
script.onerror = () => __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
// The script may have been blocked by an ad blocker
|
|
34
|
-
resolve();
|
|
35
|
-
});
|
|
36
|
-
script.onload = () => __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
// when enableDebugging should load extra js
|
|
38
|
-
const sub = interval(100).subscribe(() => {
|
|
39
|
-
if (pendo) {
|
|
40
|
-
sub.unsubscribe();
|
|
41
|
-
resolve();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const DEFAULT_PENDO_ID_FORMATTER = pendoId => pendoId;
|
|
50
|
-
class NgxPendoService {
|
|
51
|
-
/**
|
|
52
|
-
* Constructor
|
|
53
|
-
*
|
|
54
|
-
* @param settings IPendoSettings
|
|
55
|
-
*/
|
|
56
|
-
constructor(settings) {
|
|
57
|
-
this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Completely re-initialize the Agent with new options
|
|
61
|
-
*
|
|
62
|
-
* @param visitor IVisitor
|
|
63
|
-
* @param account IAccount
|
|
64
|
-
*/
|
|
65
|
-
initialize(visitor, account) {
|
|
66
|
-
pendo.initialize({ visitor, account });
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Format Pendo
|
|
70
|
-
*
|
|
71
|
-
* @param ids string[]
|
|
72
|
-
*/
|
|
73
|
-
formatPendoId(...ids) {
|
|
74
|
-
return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
NgxPendoService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService, deps: [{ token: NGX_PENDO_SETTINGS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
78
|
-
NgxPendoService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService });
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoService, decorators: [{
|
|
80
|
-
type: Injectable
|
|
81
|
-
}], ctorParameters: function () {
|
|
82
|
-
return [{ type: undefined, decorators: [{
|
|
83
|
-
type: Inject,
|
|
84
|
-
args: [NGX_PENDO_SETTINGS_TOKEN]
|
|
85
|
-
}] }];
|
|
86
|
-
} });
|
|
87
|
-
|
|
88
|
-
class NgxPendoIdDirective {
|
|
89
|
-
constructor(service) {
|
|
90
|
-
this.service = service;
|
|
91
|
-
this._pendoSections = [];
|
|
92
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
93
|
-
this.inherit = true;
|
|
94
|
-
}
|
|
95
|
-
get pendoId() {
|
|
96
|
-
return this.service.formatPendoId(...this._pendoSections, this._pendoId);
|
|
97
|
-
}
|
|
98
|
-
set pendoId(value) {
|
|
99
|
-
this._pendoId = value;
|
|
100
|
-
}
|
|
101
|
-
get parent() {
|
|
102
|
-
return this._parent;
|
|
103
|
-
}
|
|
104
|
-
set parent(value) {
|
|
105
|
-
this._parent = value;
|
|
106
|
-
setTimeout(() => {
|
|
107
|
-
this._pendoSections = [];
|
|
108
|
-
let cur = this.inherit ? value : null;
|
|
109
|
-
while (cur) {
|
|
110
|
-
this._pendoSections.unshift(cur.pendoSection);
|
|
111
|
-
cur = cur.inherit ? cur.parent : null;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
get disableInherit() {
|
|
116
|
-
return this.inherit ? undefined : true;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
NgxPendoIdDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoIdDirective, deps: [{ token: NgxPendoService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
120
|
-
NgxPendoIdDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoIdDirective, selector: "[ngx-pendo-id]", inputs: { pendoId: ["ngx-pendo-id", "pendoId"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.data-pendo-id": "this.pendoId", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, ngImport: i0 });
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoIdDirective, decorators: [{
|
|
122
|
-
type: Directive,
|
|
123
|
-
args: [{
|
|
124
|
-
selector: '[ngx-pendo-id]'
|
|
125
|
-
}]
|
|
126
|
-
}], ctorParameters: function () { return [{ type: NgxPendoService }]; }, propDecorators: { pendoId: [{
|
|
127
|
-
type: Input,
|
|
128
|
-
args: ['ngx-pendo-id']
|
|
129
|
-
}, {
|
|
130
|
-
type: HostBinding,
|
|
131
|
-
args: ['attr.data-pendo-id']
|
|
132
|
-
}], inherit: [{
|
|
133
|
-
type: Input,
|
|
134
|
-
args: ['ngx-pendo-inherit']
|
|
135
|
-
}], disableInherit: [{
|
|
136
|
-
type: HostBinding,
|
|
137
|
-
args: ['attr.ngx-pendo-disable-inherit']
|
|
138
|
-
}] } });
|
|
139
|
-
|
|
140
|
-
class NgxPendoSectionDirective {
|
|
141
|
-
constructor() {
|
|
142
|
-
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
143
|
-
this.inherit = true;
|
|
144
|
-
this.subscriptions = [];
|
|
145
|
-
}
|
|
146
|
-
get disableInherit() {
|
|
147
|
-
return this.inherit ? undefined : true;
|
|
148
|
-
}
|
|
149
|
-
ngAfterContentInit() {
|
|
150
|
-
// set all child parent
|
|
151
|
-
this.subscriptions.push(merge(this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)), this.idDirectives.changes.pipe(startWith(this.idDirectives))).subscribe((items) => items.forEach(item => {
|
|
152
|
-
if (item !== this) {
|
|
153
|
-
item.parent = this;
|
|
154
|
-
}
|
|
155
|
-
})));
|
|
156
|
-
}
|
|
157
|
-
ngOnChanges(changes) {
|
|
158
|
-
if (changes.pendoSection && !changes.pendoSection.firstChange) {
|
|
159
|
-
this.allIdDirectives.forEach(i => (i.parent = i.parent));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
ngOnDestroy() {
|
|
163
|
-
this.subscriptions.forEach(s => s.unsubscribe());
|
|
164
|
-
this.subscriptions = [];
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
NgxPendoSectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoSectionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
168
|
-
NgxPendoSectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoSectionDirective, selector: "[ngx-pendo-section]", inputs: { pendoSection: ["ngx-pendo-section", "pendoSection"], inherit: ["ngx-pendo-inherit", "inherit"] }, host: { properties: { "attr.ngx-pendo-section": "this.pendoSection", "attr.ngx-pendo-disable-inherit": "this.disableInherit" } }, queries: [{ propertyName: "idDirectives", predicate: NgxPendoIdDirective }, { propertyName: "sectionDirectives", predicate: NgxPendoSectionDirective }, { propertyName: "allIdDirectives", predicate: NgxPendoIdDirective, descendants: true }], usesOnChanges: true, ngImport: i0 });
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoSectionDirective, decorators: [{
|
|
170
|
-
type: Directive,
|
|
171
|
-
args: [{
|
|
172
|
-
selector: '[ngx-pendo-section]'
|
|
173
|
-
}]
|
|
174
|
-
}], propDecorators: { pendoSection: [{
|
|
175
|
-
type: Input,
|
|
176
|
-
args: ['ngx-pendo-section']
|
|
177
|
-
}, {
|
|
178
|
-
type: HostBinding,
|
|
179
|
-
args: ['attr.ngx-pendo-section']
|
|
180
|
-
}], inherit: [{
|
|
181
|
-
type: Input,
|
|
182
|
-
args: ['ngx-pendo-inherit']
|
|
183
|
-
}], disableInherit: [{
|
|
184
|
-
type: HostBinding,
|
|
185
|
-
args: ['attr.ngx-pendo-disable-inherit']
|
|
186
|
-
}], idDirectives: [{
|
|
187
|
-
type: ContentChildren,
|
|
188
|
-
args: [NgxPendoIdDirective, { descendants: false }]
|
|
189
|
-
}], sectionDirectives: [{
|
|
190
|
-
type: ContentChildren,
|
|
191
|
-
args: [NgxPendoSectionDirective, { descendants: false }]
|
|
192
|
-
}], allIdDirectives: [{
|
|
193
|
-
type: ContentChildren,
|
|
194
|
-
args: [NgxPendoIdDirective, { descendants: true }]
|
|
195
|
-
}] } });
|
|
196
|
-
|
|
197
|
-
class NgxPendoComponent {
|
|
198
|
-
constructor() { }
|
|
199
|
-
}
|
|
200
|
-
NgxPendoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
201
|
-
NgxPendoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: NgxPendoComponent, selector: "lib-ngx-pendo", ngImport: i0, template: `
|
|
202
|
-
<p>
|
|
203
|
-
ngx-pendo works!
|
|
204
|
-
</p>
|
|
205
|
-
`, isInline: true });
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoComponent, decorators: [{
|
|
207
|
-
type: Component,
|
|
208
|
-
args: [{ selector: 'lib-ngx-pendo', template: `
|
|
209
|
-
<p>
|
|
210
|
-
ngx-pendo works!
|
|
211
|
-
</p>
|
|
212
|
-
` }]
|
|
213
|
-
}], ctorParameters: function () { return []; } });
|
|
214
|
-
|
|
215
|
-
class NgxPendoModule {
|
|
216
|
-
static forRoot(settings) {
|
|
217
|
-
return {
|
|
218
|
-
ngModule: NgxPendoModule,
|
|
219
|
-
providers: [
|
|
220
|
-
{
|
|
221
|
-
provide: NGX_PENDO_SETTINGS_TOKEN,
|
|
222
|
-
useValue: settings
|
|
223
|
-
},
|
|
224
|
-
NGX_PENDO_INITIALIZER_PROVIDER,
|
|
225
|
-
NgxPendoService,
|
|
226
|
-
],
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
static forChild() {
|
|
230
|
-
return {
|
|
231
|
-
ngModule: NgxPendoModule,
|
|
232
|
-
providers: [
|
|
233
|
-
NgxPendoService,
|
|
234
|
-
],
|
|
235
|
-
};
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
NgxPendoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
239
|
-
NgxPendoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, declarations: [NgxPendoComponent,
|
|
240
|
-
NgxPendoIdDirective,
|
|
241
|
-
NgxPendoSectionDirective], exports: [NgxPendoComponent,
|
|
242
|
-
NgxPendoIdDirective,
|
|
243
|
-
NgxPendoSectionDirective] });
|
|
244
|
-
NgxPendoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule });
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: NgxPendoModule, decorators: [{
|
|
246
|
-
type: NgModule,
|
|
247
|
-
args: [{
|
|
248
|
-
declarations: [
|
|
249
|
-
NgxPendoComponent,
|
|
250
|
-
NgxPendoIdDirective,
|
|
251
|
-
NgxPendoSectionDirective,
|
|
252
|
-
],
|
|
253
|
-
imports: [],
|
|
254
|
-
exports: [
|
|
255
|
-
NgxPendoComponent,
|
|
256
|
-
NgxPendoIdDirective,
|
|
257
|
-
NgxPendoSectionDirective,
|
|
258
|
-
],
|
|
259
|
-
}]
|
|
260
|
-
}] });
|
|
261
|
-
|
|
262
|
-
/*
|
|
263
|
-
* Public API Surface of ngx-pendo
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* Generated bundle index. Do not edit.
|
|
268
|
-
*/
|
|
269
|
-
|
|
270
|
-
export { NGX_PENDO_INITIALIZER_PROVIDER, NGX_PENDO_SETTINGS_TOKEN, NgxPendoComponent, NgxPendoIdDirective, NgxPendoModule, NgxPendoSectionDirective, NgxPendoService, pendoInitializer };
|
|
271
|
-
//# sourceMappingURL=ngx-pendo.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-pendo.mjs","sources":["../../../projects/ngx-pendo/src/lib/ngx-pendo.injectors.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.service.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-id.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo-section.directive.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.component.ts","../../../projects/ngx-pendo/src/lib/ngx-pendo.module.ts","../../../projects/ngx-pendo/src/public-api.ts","../../../projects/ngx-pendo/src/ngx-pendo.ts"],"sourcesContent":["import { APP_INITIALIZER, InjectionToken, isDevMode, Provider } from '@angular/core';\nimport { interval } from 'rxjs';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nexport const NGX_PENDO_SETTINGS_TOKEN = new InjectionToken<IPendoSettings>('ngx-pendo-settings', {\n factory: () => ({ pendoApiKey: '' }),\n});\n\nconst DEFAULT_PENDO_SCRIPT_ORIGIN = 'https://cdn.pendo.io';\n\nexport const NGX_PENDO_INITIALIZER_PROVIDER: Provider = {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: pendoInitializer,\n deps: [\n NGX_PENDO_SETTINGS_TOKEN,\n ],\n};\n\nexport function pendoInitializer($settings: IPendoSettings): () => Promise<void> {\n return async () => {\n if (!$settings.pendoApiKey) {\n if (isDevMode()) {\n console.error('Empty api key for Pendo. Make sure to provide one when initializing NgxPendoModule.');\n }\n\n return;\n }\n\n await new Promise<void>((resolve, reject) => {\n const script = document.createElement('script');\n script.async = true;\n script.src = `${$settings.pendoScriptOrigin || DEFAULT_PENDO_SCRIPT_ORIGIN}/agent/static/${$settings.pendoApiKey}/pendo.js`;\n document.head.appendChild(script);\n script.onerror = async () => {\n // The script may have been blocked by an ad blocker\n resolve();\n };\n script.onload = async () => {\n // when enableDebugging should load extra js\n const sub = interval(100).subscribe(() => {\n if (pendo) {\n sub.unsubscribe();\n resolve();\n }\n });\n };\n });\n };\n}\n","import { Injectable, Inject } from '@angular/core';\nimport { NGX_PENDO_SETTINGS_TOKEN } from './ngx-pendo.injectors';\nimport { IAccount, IVisitor, IPendoSettings } from './ngx-pendo.interfaces';\n\ndeclare var pendo: any;\n\nconst DEFAULT_PENDO_ID_FORMATTER: (pendoId: string) => string = pendoId => pendoId;\n\n@Injectable()\nexport class NgxPendoService {\n\n private pendoIdFormatter: (pendoId: string) => string;\n\n /**\n * Constructor\n *\n * @param settings IPendoSettings\n */\n constructor(@Inject(NGX_PENDO_SETTINGS_TOKEN) settings: IPendoSettings) {\n this.pendoIdFormatter = settings.pendoIdFormatter || DEFAULT_PENDO_ID_FORMATTER;\n }\n\n /**\n * Completely re-initialize the Agent with new options\n *\n * @param visitor IVisitor\n * @param account IAccount\n */\n initialize(visitor: IVisitor, account?: IAccount): void {\n pendo.initialize({ visitor, account });\n }\n\n /**\n * Format Pendo\n *\n * @param ids string[]\n */\n formatPendoId(...ids: string[]): string {\n return (this.pendoIdFormatter ? ids.map(id => this.pendoIdFormatter(id)) : ids).join('.');\n }\n\n}\n","import { Directive, Input, HostBinding } from '@angular/core';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\n\n@Directive({\n selector: '[ngx-pendo-id]'\n})\nexport class NgxPendoIdDirective implements IPendoDirective {\n private _parent!: NgxPendoSectionDirective;\n\n private _pendoSections: string[] = [];\n\n private _pendoId!: string;\n\n @Input('ngx-pendo-id')\n @HostBinding('attr.data-pendo-id')\n get pendoId(): string {\n return this.service.formatPendoId(...this._pendoSections, this._pendoId);\n }\n set pendoId(value: string) {\n this._pendoId = value;\n }\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n get parent(): NgxPendoSectionDirective {\n return this._parent;\n }\n set parent(value: NgxPendoSectionDirective) {\n this._parent = value;\n setTimeout(() => {\n this._pendoSections = [];\n let cur = this.inherit ? value : null;\n while (cur) {\n this._pendoSections.unshift(cur.pendoSection);\n cur = cur.inherit ? cur.parent : null;\n }\n });\n }\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n constructor(private service: NgxPendoService) {}\n}\n","import {\n Directive,\n Input,\n HostBinding,\n ContentChildren,\n QueryList,\n AfterContentInit,\n OnDestroy,\n OnChanges,\n SimpleChanges\n} from '@angular/core';\nimport { merge, Subscription } from 'rxjs';\nimport { startWith } from 'rxjs/operators';\nimport { IPendoDirective } from './ngx-pendo.interfaces';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\n\n@Directive({\n selector: '[ngx-pendo-section]'\n})\nexport class NgxPendoSectionDirective implements IPendoDirective, AfterContentInit, OnChanges, OnDestroy {\n @Input('ngx-pendo-section')\n @HostBinding('attr.ngx-pendo-section')\n pendoSection!: string;\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('ngx-pendo-inherit')\n inherit = true;\n\n @HostBinding('attr.ngx-pendo-disable-inherit')\n get disableInherit(): boolean | undefined {\n return this.inherit ? undefined : true;\n }\n\n parent!: NgxPendoSectionDirective;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: false })\n idDirectives!: QueryList<NgxPendoIdDirective>;\n\n @ContentChildren(NgxPendoSectionDirective, { descendants: false })\n sectionDirectives!: QueryList<NgxPendoSectionDirective>;\n\n @ContentChildren(NgxPendoIdDirective, { descendants: true })\n allIdDirectives!: QueryList<NgxPendoIdDirective>;\n\n private subscriptions: Subscription[] = [];\n\n ngAfterContentInit(): void {\n // set all child parent\n this.subscriptions.push(\n merge(\n this.sectionDirectives.changes.pipe(startWith(this.sectionDirectives)),\n this.idDirectives.changes.pipe(startWith(this.idDirectives))\n ).subscribe((items: QueryList<IPendoDirective>) =>\n items.forEach(item => {\n if (item !== this) {\n item.parent = this;\n }\n })\n )\n );\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes.pendoSection && !changes.pendoSection.firstChange) {\n this.allIdDirectives.forEach(i => (i.parent = i.parent));\n }\n }\n\n ngOnDestroy(): void {\n this.subscriptions.forEach(s => s.unsubscribe());\n this.subscriptions = [];\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: 'lib-ngx-pendo',\n template: `\n <p>\n ngx-pendo works!\n </p>\n `,\n styles: []\n})\nexport class NgxPendoComponent {\n constructor() {}\n}\n","import { NgModule, ModuleWithProviders } from '@angular/core';\nimport { NgxPendoComponent } from './ngx-pendo.component';\nimport { NGX_PENDO_SETTINGS_TOKEN, NGX_PENDO_INITIALIZER_PROVIDER } from './ngx-pendo.injectors';\nimport { NgxPendoIdDirective } from './ngx-pendo-id.directive';\nimport { NgxPendoSectionDirective } from './ngx-pendo-section.directive';\nimport { IPendoSettings } from './ngx-pendo.interfaces';\nimport { NgxPendoService } from './ngx-pendo.service';\n\n@NgModule({\n declarations: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n imports: [],\n exports: [\n NgxPendoComponent,\n NgxPendoIdDirective,\n NgxPendoSectionDirective,\n ],\n})\nexport class NgxPendoModule {\n static forRoot(settings: IPendoSettings): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n {\n provide: NGX_PENDO_SETTINGS_TOKEN,\n useValue: settings\n },\n NGX_PENDO_INITIALIZER_PROVIDER,\n NgxPendoService,\n ],\n };\n }\n\n static forChild(): ModuleWithProviders<NgxPendoModule> {\n return {\n ngModule: NgxPendoModule,\n providers: [\n NgxPendoService,\n ],\n };\n }\n}\n","/*\n * Public API Surface of ngx-pendo\n */\n\nexport * from './lib/ngx-pendo-id.directive';\nexport * from './lib/ngx-pendo-section.directive';\nexport * from './lib/ngx-pendo.service';\nexport * from './lib/ngx-pendo.component';\nexport * from './lib/ngx-pendo.injectors';\nexport * from './lib/ngx-pendo.interfaces';\nexport * from './lib/ngx-pendo.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.NgxPendoService"],"mappings":";;;;;;MAMa,wBAAwB,GAAG,IAAI,cAAc,CAAiB,oBAAoB,EAAE;IAC/F,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC;AACrC,CAAA,EAAE;AAEH,MAAM,2BAA2B,GAAG,sBAAsB,CAAC;AAE9C,MAAA,8BAA8B,GAAa;AACtD,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,UAAU,EAAE,gBAAgB;AAC5B,IAAA,IAAI,EAAE;QACJ,wBAAwB;AACzB,KAAA;EACD;AAEI,SAAU,gBAAgB,CAAC,SAAyB,EAAA;AACxD,IAAA,OAAO,MAAW,SAAA,CAAA,IAAA,EAAA,KAAA,CAAA,EAAA,KAAA,CAAA,EAAA,aAAA;AAChB,QAAA,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;YAC1B,IAAI,SAAS,EAAE,EAAE;AACf,gBAAA,OAAO,CAAC,KAAK,CAAC,qFAAqF,CAAC,CAAC;AACtG,aAAA;YAED,OAAO;AACR,SAAA;QAED,MAAM,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,KAAI;YAC1C,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD,YAAA,MAAM,CAAC,KAAK,GAAG,IAAI,CAAC;AACpB,YAAA,MAAM,CAAC,GAAG,G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