piral-ng 0.15.0-beta.4791 → 0.15.0-beta.4798
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/esm/NgExtension.d.ts +0 -6
- package/esm/NgExtension.js +2 -29
- package/esm/NgExtension.js.map +1 -1
- package/esm/ResourceUrlPipe.d.ts +0 -3
- package/esm/ResourceUrlPipe.js +2 -27
- package/esm/ResourceUrlPipe.js.map +1 -1
- package/esm/RoutingService.d.ts +0 -2
- package/esm/RoutingService.js +2 -45
- package/esm/RoutingService.js.map +1 -1
- package/esm/SharedModule.d.ts +0 -15
- package/esm/SharedModule.js +2 -35
- package/esm/SharedModule.js.map +1 -1
- package/lib/NgExtension.d.ts +0 -6
- package/lib/NgExtension.js +2 -29
- package/lib/NgExtension.js.map +1 -1
- package/lib/ResourceUrlPipe.d.ts +0 -3
- package/lib/ResourceUrlPipe.js +2 -27
- package/lib/ResourceUrlPipe.js.map +1 -1
- package/lib/RoutingService.d.ts +0 -2
- package/lib/RoutingService.js +2 -45
- package/lib/RoutingService.js.map +1 -1
- package/lib/SharedModule.d.ts +0 -15
- package/lib/SharedModule.js +2 -35
- package/lib/SharedModule.js.map +1 -1
- package/package.json +3 -3
- package/src/NgExtension.ts +0 -39
- package/src/ResourceUrlPipe.ts +0 -34
- package/src/RoutingService.ts +0 -52
- package/src/SharedModule.ts +0 -44
package/esm/NgExtension.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { ElementRef, OnChanges } from '@angular/core';
|
|
4
3
|
export declare class NgExtension implements OnChanges {
|
|
5
4
|
private elRef;
|
|
@@ -9,9 +8,4 @@ export declare class NgExtension implements OnChanges {
|
|
|
9
8
|
constructor(elRef: ElementRef<HTMLElement>, piral: PiletApi);
|
|
10
9
|
ngOnChanges(): void;
|
|
11
10
|
ngAfterContentInit(): void;
|
|
12
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<NgExtension, never>;
|
|
13
|
-
static ɵcmp: ngCore.ɵɵComponentDeclaration<NgExtension, 'extension-component', never, {
|
|
14
|
-
name: 'name';
|
|
15
|
-
params: 'params';
|
|
16
|
-
}, {}, never, never>;
|
|
17
11
|
}
|
package/esm/NgExtension.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
var NgExtension_1;
|
|
2
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
3
|
-
import * as ngCore from '@angular/core';
|
|
4
2
|
import { Component, ElementRef, Input, Inject } from '@angular/core';
|
|
5
|
-
const ngc = ngCore;
|
|
6
3
|
const selector = 'extension-component';
|
|
7
|
-
let NgExtension =
|
|
4
|
+
let NgExtension = class NgExtension {
|
|
8
5
|
constructor(elRef, piral) {
|
|
9
6
|
this.elRef = elRef;
|
|
10
7
|
this.piral = piral;
|
|
@@ -24,22 +21,6 @@ let NgExtension = NgExtension_1 = class NgExtension {
|
|
|
24
21
|
});
|
|
25
22
|
}
|
|
26
23
|
};
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
NgExtension.ɵfac = 'ɵɵdirectiveInject' in ngc
|
|
29
|
-
? (t) => new (t || NgExtension_1)(ngc.ɵɵdirectiveInject(ElementRef), ngc.ɵɵdirectiveInject('piral'))
|
|
30
|
-
: undefined;
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
NgExtension.ɵcmp = 'ɵɵdefineComponent' in ngc
|
|
33
|
-
? ngc.ɵɵdefineComponent({
|
|
34
|
-
type: NgExtension_1,
|
|
35
|
-
selectors: [selector],
|
|
36
|
-
inputs: { name: 'name', params: 'params' },
|
|
37
|
-
decls: 0,
|
|
38
|
-
vars: 0,
|
|
39
|
-
template: () => { },
|
|
40
|
-
encapsulation: 2,
|
|
41
|
-
})
|
|
42
|
-
: undefined;
|
|
43
24
|
__decorate([
|
|
44
25
|
Input('name'),
|
|
45
26
|
__metadata("design:type", String)
|
|
@@ -48,7 +29,7 @@ __decorate([
|
|
|
48
29
|
Input('params'),
|
|
49
30
|
__metadata("design:type", Object)
|
|
50
31
|
], NgExtension.prototype, "params", void 0);
|
|
51
|
-
NgExtension =
|
|
32
|
+
NgExtension = __decorate([
|
|
52
33
|
Component({
|
|
53
34
|
selector,
|
|
54
35
|
template: '',
|
|
@@ -57,12 +38,4 @@ NgExtension = NgExtension_1 = __decorate([
|
|
|
57
38
|
__metadata("design:paramtypes", [ElementRef, Object])
|
|
58
39
|
], NgExtension);
|
|
59
40
|
export { NgExtension };
|
|
60
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
61
|
-
ngc.ɵsetClassMetadata(NgExtension, [
|
|
62
|
-
{
|
|
63
|
-
type: Component,
|
|
64
|
-
args: [{ selector, template: '' }],
|
|
65
|
-
},
|
|
66
|
-
]);
|
|
67
|
-
}
|
|
68
41
|
//# sourceMappingURL=NgExtension.js.map
|
package/esm/NgExtension.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NgExtension.js","sourceRoot":"","sources":["../src/NgExtension.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NgExtension.js","sourceRoot":"","sources":["../src/NgExtension.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAa,MAAM,eAAe,CAAC;AAEhF,MAAM,QAAQ,GAAG,qBAAqB,CAAC;AAMvC,IAAa,WAAW,GAAxB,MAAa,WAAW;IAItB,YAAoB,KAA8B,EAA2B,KAAe;QAAxE,UAAK,GAAL,KAAK,CAAyB;QAA2B,UAAK,GAAL,KAAK,CAAU;IAAG,CAAC;IAEhG,WAAW;QACT,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CACpC,IAAI,WAAW,CAAC,yBAAyB,EAAE;YACzC,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;YACvD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAtBgB;IAAd,KAAK,CAAC,MAAM,CAAC;;yCAAiC;AAC9B;IAAhB,KAAK,CAAC,QAAQ,CAAC;;2CAAmC;AAFxC,WAAW;IAJvB,SAAS,CAAC;QACT,QAAQ;QACR,QAAQ,EAAE,EAAE;KACb,CAAC;IAKqD,WAAA,MAAM,CAAC,OAAO,CAAC,CAAA;qCAAzC,UAAU;GAJ1B,WAAW,CAuBvB;SAvBY,WAAW"}
|
package/esm/ResourceUrlPipe.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { PipeTransform } from '@angular/core';
|
|
4
3
|
export declare class ResourceUrlPipe implements PipeTransform {
|
|
5
4
|
private piral;
|
|
6
5
|
constructor(piral: PiletApi);
|
|
7
6
|
transform(value: string): string;
|
|
8
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<ResourceUrlPipe, never>;
|
|
9
|
-
static ɵpipe: ngCore.ɵɵPipeDeclaration<ResourceUrlPipe, 'resourceUrl'>;
|
|
10
7
|
}
|
package/esm/ResourceUrlPipe.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
var ResourceUrlPipe_1;
|
|
2
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
3
|
-
import * as ngCore from '@angular/core';
|
|
4
2
|
import { Inject, Pipe } from '@angular/core';
|
|
5
|
-
|
|
6
|
-
let ResourceUrlPipe = ResourceUrlPipe_1 = class ResourceUrlPipe {
|
|
3
|
+
let ResourceUrlPipe = class ResourceUrlPipe {
|
|
7
4
|
constructor(piral) {
|
|
8
5
|
this.piral = piral;
|
|
9
6
|
}
|
|
@@ -12,32 +9,10 @@ let ResourceUrlPipe = ResourceUrlPipe_1 = class ResourceUrlPipe {
|
|
|
12
9
|
return basePath + value;
|
|
13
10
|
}
|
|
14
11
|
};
|
|
15
|
-
|
|
16
|
-
ResourceUrlPipe.ɵfac = 'ɵɵdirectiveInject' in ngc ? (t) => new (t || ResourceUrlPipe_1)(ngc.ɵɵdirectiveInject('piral', 16)) : undefined;
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
ResourceUrlPipe.ɵpipe = 'ɵɵdefinePipe' in ngc ? ngc.ɵɵdefinePipe({ name: 'resourceUrl', type: ResourceUrlPipe_1, pure: true }) : undefined;
|
|
19
|
-
ResourceUrlPipe = ResourceUrlPipe_1 = __decorate([
|
|
12
|
+
ResourceUrlPipe = __decorate([
|
|
20
13
|
Pipe({ name: 'resourceUrl' }),
|
|
21
14
|
__param(0, Inject('piral')),
|
|
22
15
|
__metadata("design:paramtypes", [Object])
|
|
23
16
|
], ResourceUrlPipe);
|
|
24
17
|
export { ResourceUrlPipe };
|
|
25
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
26
|
-
ngc.ɵsetClassMetadata(ResourceUrlPipe, [
|
|
27
|
-
{
|
|
28
|
-
type: Pipe,
|
|
29
|
-
args: [{ name: 'resourceUrl' }],
|
|
30
|
-
},
|
|
31
|
-
], () => [
|
|
32
|
-
{
|
|
33
|
-
type: undefined,
|
|
34
|
-
decorators: [
|
|
35
|
-
{
|
|
36
|
-
type: Inject,
|
|
37
|
-
args: ['piral'],
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
]);
|
|
42
|
-
}
|
|
43
18
|
//# sourceMappingURL=ResourceUrlPipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceUrlPipe.js","sourceRoot":"","sources":["../src/ResourceUrlPipe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResourceUrlPipe.js","sourceRoot":"","sources":["../src/ResourceUrlPipe.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAG5D,IAAa,eAAe,GAA5B,MAAa,eAAe;IAC1B,YAAqC,KAAe;QAAf,UAAK,GAAL,KAAK,CAAU;IAAG,CAAC;IAExD,SAAS,CAAC,KAAa;QACrB,MAAM,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAC3C,OAAO,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;CACF,CAAA;AAPY,eAAe;IAD3B,IAAI,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IAEf,WAAA,MAAM,CAAC,OAAO,CAAC,CAAA;;GADjB,eAAe,CAO3B;SAPY,eAAe"}
|
package/esm/RoutingService.d.ts
CHANGED
package/esm/RoutingService.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
var RoutingService_1;
|
|
2
1
|
import { __decorate, __metadata, __param } from "tslib";
|
|
3
|
-
import * as ngCore from '@angular/core';
|
|
4
2
|
import { Inject, Injectable, NgZone, Optional } from '@angular/core';
|
|
5
3
|
import { NavigationError, Router } from '@angular/router';
|
|
6
|
-
|
|
7
|
-
let RoutingService = RoutingService_1 = class RoutingService {
|
|
4
|
+
let RoutingService = class RoutingService {
|
|
8
5
|
constructor(context, router, zone) {
|
|
9
6
|
this.context = context;
|
|
10
7
|
this.router = router;
|
|
@@ -50,13 +47,7 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
50
47
|
(_b = this.subscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
51
48
|
}
|
|
52
49
|
};
|
|
53
|
-
RoutingService
|
|
54
|
-
? (t) => new (t || RoutingService_1)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(Router, 8), ngc.ɵɵinject(NgZone, 8))
|
|
55
|
-
: undefined;
|
|
56
|
-
RoutingService.ɵprov = 'ɵɵngDeclareInjectable' in ngc
|
|
57
|
-
? ngc.ɵɵdefineInjectable({ token: RoutingService_1, factory: RoutingService_1.ɵfac })
|
|
58
|
-
: undefined;
|
|
59
|
-
RoutingService = RoutingService_1 = __decorate([
|
|
50
|
+
RoutingService = __decorate([
|
|
60
51
|
Injectable(),
|
|
61
52
|
__param(0, Inject('Context')),
|
|
62
53
|
__param(1, Optional()),
|
|
@@ -65,38 +56,4 @@ RoutingService = RoutingService_1 = __decorate([
|
|
|
65
56
|
NgZone])
|
|
66
57
|
], RoutingService);
|
|
67
58
|
export { RoutingService };
|
|
68
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
69
|
-
ngc.ɵsetClassMetadata(RoutingService, [
|
|
70
|
-
{
|
|
71
|
-
type: Injectable,
|
|
72
|
-
args: [{ name: 'resourceUrl' }],
|
|
73
|
-
},
|
|
74
|
-
], () => [
|
|
75
|
-
{
|
|
76
|
-
type: undefined,
|
|
77
|
-
decorators: [
|
|
78
|
-
{
|
|
79
|
-
type: Inject,
|
|
80
|
-
args: ['Context'],
|
|
81
|
-
},
|
|
82
|
-
],
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
type: Router,
|
|
86
|
-
decorators: [
|
|
87
|
-
{
|
|
88
|
-
type: Optional,
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: NgZone,
|
|
94
|
-
decorators: [
|
|
95
|
-
{
|
|
96
|
-
type: Optional,
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
},
|
|
100
|
-
]);
|
|
101
|
-
}
|
|
102
59
|
//# sourceMappingURL=RoutingService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingService.js","sourceRoot":"","sources":["../src/RoutingService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoutingService.js","sourceRoot":"","sources":["../src/RoutingService.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAa,QAAQ,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,MAAM,EAAU,MAAM,iBAAiB,CAAC;AAGlE,IAAa,cAAc,GAA3B,MAAa,cAAc;IAKzB,YAC4B,OAAyB,EAC/B,MAAc,EACd,IAAY;QAFN,YAAO,GAAP,OAAO,CAAkB;QAC/B,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAQ;QAL1B,kBAAa,GAAkB,EAAE,CAAC;QAOxC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,KAAY,EAAE,EAAE;gBAC1C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE;oBAClD,4BAA4B;oBAC5B,OAAO,SAAS,CAAC;iBAClB;gBACD,MAAM,KAAK,CAAC;YACd,CAAC,CAAC;YAEF,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;YAEpC,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC;gBAE/B,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;oBACtC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;iBACtD;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAA2B,EAAE,EAAE;gBAC/E,IAAI,CAAC,YAAY,eAAe,EAAE;oBAChC,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC;oBAEnB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;wBACtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;qBAC/B;oBAED,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBAChB;qBAAM,IAAI,CAAC,CAAC,IAAI,KAAK,EAAE,EAAE;oBACxB,oEAAoE;oBACpE,MAAM,WAAW,GAAG,GAAG,CAAC,IAAI,CAAC;oBAC7B,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC;oBAEpC,IAAI,SAAS,KAAK,WAAW,EAAE;wBAC7B,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;qBACrB;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAED,WAAW;;QACT,MAAA,IAAI,CAAC,OAAO,oDAAI,CAAC;QACjB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;CACF,CAAA;AAvDY,cAAc;IAD1B,UAAU,EAAE;IAOR,WAAA,MAAM,CAAC,SAAS,CAAC,CAAA;IACjB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,QAAQ,EAAE,CAAA;6CADiB,MAAM;QACR,MAAM;GARvB,cAAc,CAuD1B;SAvDY,cAAc"}
|
package/esm/SharedModule.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import * as ngCore from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NgExtension } from './NgExtension';
|
|
4
|
-
import { ResourceUrlPipe } from './ResourceUrlPipe';
|
|
5
1
|
export declare class SharedModule {
|
|
6
2
|
static props: {};
|
|
7
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
-
static ɵmod: ngCore.ɵɵNgModuleDeclaration<SharedModule, [
|
|
9
|
-
typeof NgExtension,
|
|
10
|
-
typeof ResourceUrlPipe
|
|
11
|
-
], [
|
|
12
|
-
typeof CommonModule
|
|
13
|
-
], [
|
|
14
|
-
typeof NgExtension,
|
|
15
|
-
typeof ResourceUrlPipe
|
|
16
|
-
]>;
|
|
17
|
-
static ɵinj: ngCore.ɵɵInjectorDeclaration<SharedModule>;
|
|
18
3
|
}
|
package/esm/SharedModule.js
CHANGED
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
var SharedModule_1;
|
|
2
1
|
import { __decorate } from "tslib";
|
|
3
|
-
import * as ngCore from '@angular/core';
|
|
4
2
|
import { CommonModule } from '@angular/common';
|
|
5
3
|
import { NgModule } from '@angular/core';
|
|
6
4
|
import { NgExtension } from './NgExtension';
|
|
7
5
|
import { ResourceUrlPipe } from './ResourceUrlPipe';
|
|
8
|
-
const ngc = ngCore;
|
|
9
6
|
const declarationsDef = [NgExtension, ResourceUrlPipe];
|
|
10
7
|
const exportsDef = [NgExtension, ResourceUrlPipe];
|
|
11
8
|
const importsDef = [CommonModule];
|
|
12
|
-
let SharedModule =
|
|
9
|
+
let SharedModule = class SharedModule {
|
|
13
10
|
};
|
|
14
11
|
SharedModule.props = {};
|
|
15
|
-
|
|
16
|
-
SharedModule.ɵfac = 'ɵɵinject' in ngc ? (t) => new (t || SharedModule_1)() : undefined;
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
SharedModule.ɵmod = 'ɵɵdefineNgModule' in ngc
|
|
19
|
-
? ngc.ɵɵdefineNgModule({
|
|
20
|
-
type: SharedModule_1,
|
|
21
|
-
})
|
|
22
|
-
: undefined;
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
SharedModule.ɵinj = 'ɵɵdefineInjector' in ngc
|
|
25
|
-
? ngc.ɵɵdefineInjector({
|
|
26
|
-
providers: [],
|
|
27
|
-
imports: [importsDef],
|
|
28
|
-
})
|
|
29
|
-
: undefined;
|
|
30
|
-
SharedModule = SharedModule_1 = __decorate([
|
|
12
|
+
SharedModule = __decorate([
|
|
31
13
|
NgModule({
|
|
32
14
|
declarations: declarationsDef,
|
|
33
15
|
providers: [],
|
|
@@ -36,19 +18,4 @@ SharedModule = SharedModule_1 = __decorate([
|
|
|
36
18
|
})
|
|
37
19
|
], SharedModule);
|
|
38
20
|
export { SharedModule };
|
|
39
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
40
|
-
ngc.ɵsetClassMetadata(SharedModule, [
|
|
41
|
-
{
|
|
42
|
-
type: NgModule,
|
|
43
|
-
args: [
|
|
44
|
-
{
|
|
45
|
-
declarations: declarationsDef,
|
|
46
|
-
providers: [],
|
|
47
|
-
imports: importsDef,
|
|
48
|
-
exports: exportsDef,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
]);
|
|
53
|
-
}
|
|
54
21
|
//# sourceMappingURL=SharedModule.js.map
|
package/esm/SharedModule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedModule.js","sourceRoot":"","sources":["../src/SharedModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SharedModule.js","sourceRoot":"","sources":["../src/SharedModule.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,eAAe,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;AACvD,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;AAClD,MAAM,UAAU,GAAG,CAAC,YAAY,CAAC,CAAC;AAQlC,IAAa,YAAY,GAAzB,MAAa,YAAY;CAExB,CAAA;AADQ,kBAAK,GAAG,EAAE,CAAC;AADP,YAAY;IANxB,QAAQ,CAAC;QACR,YAAY,EAAE,eAAe;QAC7B,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,UAAU;KACpB,CAAC;GACW,YAAY,CAExB;SAFY,YAAY"}
|
package/lib/NgExtension.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { ElementRef, OnChanges } from '@angular/core';
|
|
4
3
|
export declare class NgExtension implements OnChanges {
|
|
5
4
|
private elRef;
|
|
@@ -9,9 +8,4 @@ export declare class NgExtension implements OnChanges {
|
|
|
9
8
|
constructor(elRef: ElementRef<HTMLElement>, piral: PiletApi);
|
|
10
9
|
ngOnChanges(): void;
|
|
11
10
|
ngAfterContentInit(): void;
|
|
12
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<NgExtension, never>;
|
|
13
|
-
static ɵcmp: ngCore.ɵɵComponentDeclaration<NgExtension, 'extension-component', never, {
|
|
14
|
-
name: 'name';
|
|
15
|
-
params: 'params';
|
|
16
|
-
}, {}, never, never>;
|
|
17
11
|
}
|
package/lib/NgExtension.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var NgExtension_1;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.NgExtension = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
6
|
-
const ngCore = require("@angular/core");
|
|
7
5
|
const core_1 = require("@angular/core");
|
|
8
|
-
const ngc = ngCore;
|
|
9
6
|
const selector = 'extension-component';
|
|
10
|
-
let NgExtension =
|
|
7
|
+
let NgExtension = class NgExtension {
|
|
11
8
|
constructor(elRef, piral) {
|
|
12
9
|
this.elRef = elRef;
|
|
13
10
|
this.piral = piral;
|
|
@@ -27,22 +24,6 @@ let NgExtension = NgExtension_1 = class NgExtension {
|
|
|
27
24
|
});
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
NgExtension.ɵfac = 'ɵɵdirectiveInject' in ngc
|
|
32
|
-
? (t) => new (t || NgExtension_1)(ngc.ɵɵdirectiveInject(core_1.ElementRef), ngc.ɵɵdirectiveInject('piral'))
|
|
33
|
-
: undefined;
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
NgExtension.ɵcmp = 'ɵɵdefineComponent' in ngc
|
|
36
|
-
? ngc.ɵɵdefineComponent({
|
|
37
|
-
type: NgExtension_1,
|
|
38
|
-
selectors: [selector],
|
|
39
|
-
inputs: { name: 'name', params: 'params' },
|
|
40
|
-
decls: 0,
|
|
41
|
-
vars: 0,
|
|
42
|
-
template: () => { },
|
|
43
|
-
encapsulation: 2,
|
|
44
|
-
})
|
|
45
|
-
: undefined;
|
|
46
27
|
tslib_1.__decorate([
|
|
47
28
|
(0, core_1.Input)('name'),
|
|
48
29
|
tslib_1.__metadata("design:type", String)
|
|
@@ -51,7 +32,7 @@ tslib_1.__decorate([
|
|
|
51
32
|
(0, core_1.Input)('params'),
|
|
52
33
|
tslib_1.__metadata("design:type", Object)
|
|
53
34
|
], NgExtension.prototype, "params", void 0);
|
|
54
|
-
NgExtension =
|
|
35
|
+
NgExtension = tslib_1.__decorate([
|
|
55
36
|
(0, core_1.Component)({
|
|
56
37
|
selector,
|
|
57
38
|
template: '',
|
|
@@ -60,12 +41,4 @@ NgExtension = NgExtension_1 = tslib_1.__decorate([
|
|
|
60
41
|
tslib_1.__metadata("design:paramtypes", [core_1.ElementRef, Object])
|
|
61
42
|
], NgExtension);
|
|
62
43
|
exports.NgExtension = NgExtension;
|
|
63
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
64
|
-
ngc.ɵsetClassMetadata(NgExtension, [
|
|
65
|
-
{
|
|
66
|
-
type: core_1.Component,
|
|
67
|
-
args: [{ selector, template: '' }],
|
|
68
|
-
},
|
|
69
|
-
]);
|
|
70
|
-
}
|
|
71
44
|
//# sourceMappingURL=NgExtension.js.map
|
package/lib/NgExtension.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NgExtension.js","sourceRoot":"","sources":["../src/NgExtension.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NgExtension.js","sourceRoot":"","sources":["../src/NgExtension.ts"],"names":[],"mappings":";;;;AACA,wCAAgF;AAEhF,MAAM,QAAQ,GAAG,qBAAqB,CAAC;AAMvC,IAAa,WAAW,GAAxB,MAAa,WAAW;IAItB,YAAoB,KAA8B,EAA2B,KAAe;QAAxE,UAAK,GAAL,KAAK,CAAyB;QAA2B,UAAK,GAAL,KAAK,CAAU;IAAG,CAAC;IAEhG,WAAW;QACT,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,aAAa,CACpC,IAAI,WAAW,CAAC,yBAAyB,EAAE;YACzC,MAAM,EAAE;gBACN,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB;SACF,CAAC,CACH,CAAC;IACJ,CAAC;IAED,kBAAkB;QAChB,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE;YACvD,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,IAAI,CAAC,MAAM;SACpB,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAtBgB;IAAd,IAAA,YAAK,EAAC,MAAM,CAAC;;yCAAiC;AAC9B;IAAhB,IAAA,YAAK,EAAC,QAAQ,CAAC;;2CAAmC;AAFxC,WAAW;IAJvB,IAAA,gBAAS,EAAC;QACT,QAAQ;QACR,QAAQ,EAAE,EAAE;KACb,CAAC;IAKqD,mBAAA,IAAA,aAAM,EAAC,OAAO,CAAC,CAAA;6CAAzC,iBAAU;GAJ1B,WAAW,CAuBvB;AAvBY,kCAAW"}
|
package/lib/ResourceUrlPipe.d.ts
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { PipeTransform } from '@angular/core';
|
|
4
3
|
export declare class ResourceUrlPipe implements PipeTransform {
|
|
5
4
|
private piral;
|
|
6
5
|
constructor(piral: PiletApi);
|
|
7
6
|
transform(value: string): string;
|
|
8
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<ResourceUrlPipe, never>;
|
|
9
|
-
static ɵpipe: ngCore.ɵɵPipeDeclaration<ResourceUrlPipe, 'resourceUrl'>;
|
|
10
7
|
}
|
package/lib/ResourceUrlPipe.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var ResourceUrlPipe_1;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.ResourceUrlPipe = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
6
|
-
const ngCore = require("@angular/core");
|
|
7
5
|
const core_1 = require("@angular/core");
|
|
8
|
-
|
|
9
|
-
let ResourceUrlPipe = ResourceUrlPipe_1 = class ResourceUrlPipe {
|
|
6
|
+
let ResourceUrlPipe = class ResourceUrlPipe {
|
|
10
7
|
constructor(piral) {
|
|
11
8
|
this.piral = piral;
|
|
12
9
|
}
|
|
@@ -15,32 +12,10 @@ let ResourceUrlPipe = ResourceUrlPipe_1 = class ResourceUrlPipe {
|
|
|
15
12
|
return basePath + value;
|
|
16
13
|
}
|
|
17
14
|
};
|
|
18
|
-
|
|
19
|
-
ResourceUrlPipe.ɵfac = 'ɵɵdirectiveInject' in ngc ? (t) => new (t || ResourceUrlPipe_1)(ngc.ɵɵdirectiveInject('piral', 16)) : undefined;
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
ResourceUrlPipe.ɵpipe = 'ɵɵdefinePipe' in ngc ? ngc.ɵɵdefinePipe({ name: 'resourceUrl', type: ResourceUrlPipe_1, pure: true }) : undefined;
|
|
22
|
-
ResourceUrlPipe = ResourceUrlPipe_1 = tslib_1.__decorate([
|
|
15
|
+
ResourceUrlPipe = tslib_1.__decorate([
|
|
23
16
|
(0, core_1.Pipe)({ name: 'resourceUrl' }),
|
|
24
17
|
tslib_1.__param(0, (0, core_1.Inject)('piral')),
|
|
25
18
|
tslib_1.__metadata("design:paramtypes", [Object])
|
|
26
19
|
], ResourceUrlPipe);
|
|
27
20
|
exports.ResourceUrlPipe = ResourceUrlPipe;
|
|
28
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
29
|
-
ngc.ɵsetClassMetadata(ResourceUrlPipe, [
|
|
30
|
-
{
|
|
31
|
-
type: core_1.Pipe,
|
|
32
|
-
args: [{ name: 'resourceUrl' }],
|
|
33
|
-
},
|
|
34
|
-
], () => [
|
|
35
|
-
{
|
|
36
|
-
type: undefined,
|
|
37
|
-
decorators: [
|
|
38
|
-
{
|
|
39
|
-
type: core_1.Inject,
|
|
40
|
-
args: ['piral'],
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
]);
|
|
45
|
-
}
|
|
46
21
|
//# sourceMappingURL=ResourceUrlPipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceUrlPipe.js","sourceRoot":"","sources":["../src/ResourceUrlPipe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResourceUrlPipe.js","sourceRoot":"","sources":["../src/ResourceUrlPipe.ts"],"names":[],"mappings":";;;;AACA,wCAA4D;AAG5D,IAAa,eAAe,GAA5B,MAAa,eAAe;IAC1B,YAAqC,KAAe;QAAf,UAAK,GAAL,KAAK,CAAU;IAAG,CAAC;IAExD,SAAS,CAAC,KAAa;QACrB,MAAM,EAAE,QAAQ,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAC3C,OAAO,QAAQ,GAAG,KAAK,CAAC;IAC1B,CAAC;CACF,CAAA;AAPY,eAAe;IAD3B,IAAA,WAAI,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;IAEf,mBAAA,IAAA,aAAM,EAAC,OAAO,CAAC,CAAA;;GADjB,eAAe,CAO3B;AAPY,0CAAe"}
|
package/lib/RoutingService.d.ts
CHANGED
package/lib/RoutingService.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var RoutingService_1;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.RoutingService = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
6
|
-
const ngCore = require("@angular/core");
|
|
7
5
|
const core_1 = require("@angular/core");
|
|
8
6
|
const router_1 = require("@angular/router");
|
|
9
|
-
|
|
10
|
-
let RoutingService = RoutingService_1 = class RoutingService {
|
|
7
|
+
let RoutingService = class RoutingService {
|
|
11
8
|
constructor(context, router, zone) {
|
|
12
9
|
this.context = context;
|
|
13
10
|
this.router = router;
|
|
@@ -53,13 +50,7 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
53
50
|
(_b = this.subscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
54
51
|
}
|
|
55
52
|
};
|
|
56
|
-
RoutingService
|
|
57
|
-
? (t) => new (t || RoutingService_1)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(router_1.Router, 8), ngc.ɵɵinject(core_1.NgZone, 8))
|
|
58
|
-
: undefined;
|
|
59
|
-
RoutingService.ɵprov = 'ɵɵngDeclareInjectable' in ngc
|
|
60
|
-
? ngc.ɵɵdefineInjectable({ token: RoutingService_1, factory: RoutingService_1.ɵfac })
|
|
61
|
-
: undefined;
|
|
62
|
-
RoutingService = RoutingService_1 = tslib_1.__decorate([
|
|
53
|
+
RoutingService = tslib_1.__decorate([
|
|
63
54
|
(0, core_1.Injectable)(),
|
|
64
55
|
tslib_1.__param(0, (0, core_1.Inject)('Context')),
|
|
65
56
|
tslib_1.__param(1, (0, core_1.Optional)()),
|
|
@@ -68,38 +59,4 @@ RoutingService = RoutingService_1 = tslib_1.__decorate([
|
|
|
68
59
|
core_1.NgZone])
|
|
69
60
|
], RoutingService);
|
|
70
61
|
exports.RoutingService = RoutingService;
|
|
71
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
72
|
-
ngc.ɵsetClassMetadata(RoutingService, [
|
|
73
|
-
{
|
|
74
|
-
type: core_1.Injectable,
|
|
75
|
-
args: [{ name: 'resourceUrl' }],
|
|
76
|
-
},
|
|
77
|
-
], () => [
|
|
78
|
-
{
|
|
79
|
-
type: undefined,
|
|
80
|
-
decorators: [
|
|
81
|
-
{
|
|
82
|
-
type: core_1.Inject,
|
|
83
|
-
args: ['Context'],
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
type: router_1.Router,
|
|
89
|
-
decorators: [
|
|
90
|
-
{
|
|
91
|
-
type: core_1.Optional,
|
|
92
|
-
},
|
|
93
|
-
],
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
type: core_1.NgZone,
|
|
97
|
-
decorators: [
|
|
98
|
-
{
|
|
99
|
-
type: core_1.Optional,
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
},
|
|
103
|
-
]);
|
|
104
|
-
}
|
|
105
62
|
//# sourceMappingURL=RoutingService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingService.js","sourceRoot":"","sources":["../src/RoutingService.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoutingService.js","sourceRoot":"","sources":["../src/RoutingService.ts"],"names":[],"mappings":";;;;AAEA,wCAAgF;AAChF,4CAAkE;AAGlE,IAAa,cAAc,GAA3B,MAAa,cAAc;IAKzB,YAC4B,OAAyB,EAC/B,MAAc,EACd,IAAY;QAFN,YAAO,GAAP,OAAO,CAAkB;QAC/B,WAAM,GAAN,MAAM,CAAQ;QACd,SAAI,GAAJ,IAAI,CAAQ;QAL1B,kBAAa,GAAkB,EAAE,CAAC;QAOxC,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,IAAI,CAAC,MAAM,CAAC,YAAY,GAAG,CAAC,KAAY,EAAE,EAAE;gBAC1C,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,yBAAyB,CAAC,EAAE;oBAClD,4BAA4B;oBAC5B,OAAO,SAAS,CAAC;iBAClB;gBACD,MAAM,KAAK,CAAC;YACd,CAAC,CAAC;YAEF,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC;YAEpC,IAAI,CAAC,OAAO,GAAG,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;gBACzC,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC;gBAE/B,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;oBACtC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC;iBACtD;YACH,CAAC,CAAC,CAAC;YAEH,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAA2B,EAAE,EAAE;gBAC/E,IAAI,CAAC,YAAY,wBAAe,EAAE;oBAChC,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC;oBAEnB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;wBACtC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;qBAC/B;oBAED,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBAChB;qBAAM,IAAI,CAAC,CAAC,IAAI,KAAK,EAAE,EAAE;oBACxB,oEAAoE;oBACpE,MAAM,WAAW,GAAG,GAAG,CAAC,IAAI,CAAC;oBAC7B,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC;oBAEpC,IAAI,SAAS,KAAK,WAAW,EAAE;wBAC7B,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;qBACrB;iBACF;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAED,WAAW;;QACT,MAAA,IAAI,CAAC,OAAO,oDAAI,CAAC;QACjB,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IACnC,CAAC;CACF,CAAA;AAvDY,cAAc;IAD1B,IAAA,iBAAU,GAAE;IAOR,mBAAA,IAAA,aAAM,EAAC,SAAS,CAAC,CAAA;IACjB,mBAAA,IAAA,eAAQ,GAAE,CAAA;IACV,mBAAA,IAAA,eAAQ,GAAE,CAAA;qDADiB,eAAM;QACR,aAAM;GARvB,cAAc,CAuD1B;AAvDY,wCAAc"}
|
package/lib/SharedModule.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import * as ngCore from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NgExtension } from './NgExtension';
|
|
4
|
-
import { ResourceUrlPipe } from './ResourceUrlPipe';
|
|
5
1
|
export declare class SharedModule {
|
|
6
2
|
static props: {};
|
|
7
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
8
|
-
static ɵmod: ngCore.ɵɵNgModuleDeclaration<SharedModule, [
|
|
9
|
-
typeof NgExtension,
|
|
10
|
-
typeof ResourceUrlPipe
|
|
11
|
-
], [
|
|
12
|
-
typeof CommonModule
|
|
13
|
-
], [
|
|
14
|
-
typeof NgExtension,
|
|
15
|
-
typeof ResourceUrlPipe
|
|
16
|
-
]>;
|
|
17
|
-
static ɵinj: ngCore.ɵɵInjectorDeclaration<SharedModule>;
|
|
18
3
|
}
|
package/lib/SharedModule.js
CHANGED
|
@@ -1,36 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var SharedModule_1;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.SharedModule = void 0;
|
|
5
4
|
const tslib_1 = require("tslib");
|
|
6
|
-
const ngCore = require("@angular/core");
|
|
7
5
|
const common_1 = require("@angular/common");
|
|
8
6
|
const core_1 = require("@angular/core");
|
|
9
7
|
const NgExtension_1 = require("./NgExtension");
|
|
10
8
|
const ResourceUrlPipe_1 = require("./ResourceUrlPipe");
|
|
11
|
-
const ngc = ngCore;
|
|
12
9
|
const declarationsDef = [NgExtension_1.NgExtension, ResourceUrlPipe_1.ResourceUrlPipe];
|
|
13
10
|
const exportsDef = [NgExtension_1.NgExtension, ResourceUrlPipe_1.ResourceUrlPipe];
|
|
14
11
|
const importsDef = [common_1.CommonModule];
|
|
15
|
-
let SharedModule =
|
|
12
|
+
let SharedModule = class SharedModule {
|
|
16
13
|
};
|
|
17
14
|
SharedModule.props = {};
|
|
18
|
-
|
|
19
|
-
SharedModule.ɵfac = 'ɵɵinject' in ngc ? (t) => new (t || SharedModule_1)() : undefined;
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
SharedModule.ɵmod = 'ɵɵdefineNgModule' in ngc
|
|
22
|
-
? ngc.ɵɵdefineNgModule({
|
|
23
|
-
type: SharedModule_1,
|
|
24
|
-
})
|
|
25
|
-
: undefined;
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
SharedModule.ɵinj = 'ɵɵdefineInjector' in ngc
|
|
28
|
-
? ngc.ɵɵdefineInjector({
|
|
29
|
-
providers: [],
|
|
30
|
-
imports: [importsDef],
|
|
31
|
-
})
|
|
32
|
-
: undefined;
|
|
33
|
-
SharedModule = SharedModule_1 = tslib_1.__decorate([
|
|
15
|
+
SharedModule = tslib_1.__decorate([
|
|
34
16
|
(0, core_1.NgModule)({
|
|
35
17
|
declarations: declarationsDef,
|
|
36
18
|
providers: [],
|
|
@@ -39,19 +21,4 @@ SharedModule = SharedModule_1 = tslib_1.__decorate([
|
|
|
39
21
|
})
|
|
40
22
|
], SharedModule);
|
|
41
23
|
exports.SharedModule = SharedModule;
|
|
42
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
43
|
-
ngc.ɵsetClassMetadata(SharedModule, [
|
|
44
|
-
{
|
|
45
|
-
type: core_1.NgModule,
|
|
46
|
-
args: [
|
|
47
|
-
{
|
|
48
|
-
declarations: declarationsDef,
|
|
49
|
-
providers: [],
|
|
50
|
-
imports: importsDef,
|
|
51
|
-
exports: exportsDef,
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
]);
|
|
56
|
-
}
|
|
57
24
|
//# sourceMappingURL=SharedModule.js.map
|
package/lib/SharedModule.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharedModule.js","sourceRoot":"","sources":["../src/SharedModule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SharedModule.js","sourceRoot":"","sources":["../src/SharedModule.ts"],"names":[],"mappings":";;;;AAAA,4CAA+C;AAC/C,wCAAyC;AACzC,+CAA4C;AAC5C,uDAAoD;AAEpD,MAAM,eAAe,GAAG,CAAC,yBAAW,EAAE,iCAAe,CAAC,CAAC;AACvD,MAAM,UAAU,GAAG,CAAC,yBAAW,EAAE,iCAAe,CAAC,CAAC;AAClD,MAAM,UAAU,GAAG,CAAC,qBAAY,CAAC,CAAC;AAQlC,IAAa,YAAY,GAAzB,MAAa,YAAY;CAExB,CAAA;AADQ,kBAAK,GAAG,EAAE,CAAC;AADP,YAAY;IANxB,IAAA,eAAQ,EAAC;QACR,YAAY,EAAE,eAAe;QAC7B,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,UAAU;QACnB,OAAO,EAAE,UAAU;KACpB,CAAC;GACW,YAAY,CAExB;AAFY,oCAAY"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-ng",
|
|
3
|
-
"version": "0.15.0-beta.
|
|
3
|
+
"version": "0.15.0-beta.4798",
|
|
4
4
|
"description": "Plugin for integrating Angular components in Piral.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"piral",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@angular/platform-browser": "^14.0.0",
|
|
80
80
|
"@angular/platform-browser-dynamic": "^14.0.0",
|
|
81
81
|
"@angular/router": "^14.0.0",
|
|
82
|
-
"piral-core": "0.15.0-beta.
|
|
82
|
+
"piral-core": "0.15.0-beta.4798",
|
|
83
83
|
"rxjs": "^7.3.0"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"@angular/router": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
91
91
|
"rxjs": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "ee715b27a48b4ec7bb69a761344f1eb2eb731494"
|
|
94
94
|
}
|
package/src/NgExtension.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { Component, ElementRef, Input, Inject, OnChanges } from '@angular/core';
|
|
4
3
|
|
|
5
|
-
const ngc = ngCore as any;
|
|
6
4
|
const selector = 'extension-component';
|
|
7
5
|
|
|
8
6
|
@Component({
|
|
@@ -32,41 +30,4 @@ export class NgExtension implements OnChanges {
|
|
|
32
30
|
params: this.params,
|
|
33
31
|
});
|
|
34
32
|
}
|
|
35
|
-
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<NgExtension, never> =
|
|
38
|
-
'ɵɵdirectiveInject' in ngc
|
|
39
|
-
? (t: any) => new (t || NgExtension)(ngc.ɵɵdirectiveInject(ElementRef), ngc.ɵɵdirectiveInject('piral'))
|
|
40
|
-
: undefined;
|
|
41
|
-
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
static ɵcmp: ngCore.ɵɵComponentDeclaration<
|
|
44
|
-
NgExtension,
|
|
45
|
-
'extension-component',
|
|
46
|
-
never,
|
|
47
|
-
{ name: 'name'; params: 'params' },
|
|
48
|
-
{},
|
|
49
|
-
never,
|
|
50
|
-
never
|
|
51
|
-
> =
|
|
52
|
-
'ɵɵdefineComponent' in ngc
|
|
53
|
-
? ngc.ɵɵdefineComponent({
|
|
54
|
-
type: NgExtension,
|
|
55
|
-
selectors: [selector],
|
|
56
|
-
inputs: { name: 'name', params: 'params' },
|
|
57
|
-
decls: 0,
|
|
58
|
-
vars: 0,
|
|
59
|
-
template: () => {},
|
|
60
|
-
encapsulation: 2,
|
|
61
|
-
})
|
|
62
|
-
: undefined;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
66
|
-
ngc.ɵsetClassMetadata(NgExtension, [
|
|
67
|
-
{
|
|
68
|
-
type: Component,
|
|
69
|
-
args: [{ selector, template: '' }],
|
|
70
|
-
},
|
|
71
|
-
]);
|
|
72
33
|
}
|
package/src/ResourceUrlPipe.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { Inject, Pipe, PipeTransform } from '@angular/core';
|
|
4
3
|
|
|
5
|
-
const ngc = ngCore as any;
|
|
6
|
-
|
|
7
4
|
@Pipe({ name: 'resourceUrl' })
|
|
8
5
|
export class ResourceUrlPipe implements PipeTransform {
|
|
9
6
|
constructor(@Inject('piral') private piral: PiletApi) {}
|
|
@@ -12,35 +9,4 @@ export class ResourceUrlPipe implements PipeTransform {
|
|
|
12
9
|
const { basePath = '/' } = this.piral.meta;
|
|
13
10
|
return basePath + value;
|
|
14
11
|
}
|
|
15
|
-
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<ResourceUrlPipe, never> =
|
|
18
|
-
'ɵɵdirectiveInject' in ngc ? (t: any) => new (t || ResourceUrlPipe)(ngc.ɵɵdirectiveInject('piral', 16)) : undefined;
|
|
19
|
-
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
static ɵpipe: ngCore.ɵɵPipeDeclaration<ResourceUrlPipe, 'resourceUrl'> =
|
|
22
|
-
'ɵɵdefinePipe' in ngc ? ngc.ɵɵdefinePipe({ name: 'resourceUrl', type: ResourceUrlPipe, pure: true }) : undefined;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
26
|
-
ngc.ɵsetClassMetadata(
|
|
27
|
-
ResourceUrlPipe,
|
|
28
|
-
[
|
|
29
|
-
{
|
|
30
|
-
type: Pipe,
|
|
31
|
-
args: [{ name: 'resourceUrl' }],
|
|
32
|
-
},
|
|
33
|
-
],
|
|
34
|
-
() => [
|
|
35
|
-
{
|
|
36
|
-
type: undefined,
|
|
37
|
-
decorators: [
|
|
38
|
-
{
|
|
39
|
-
type: Inject,
|
|
40
|
-
args: ['piral'],
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
);
|
|
46
12
|
}
|
package/src/RoutingService.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import type { Subscription } from 'rxjs';
|
|
2
2
|
import type { ComponentContext, Disposable } from 'piral-core';
|
|
3
|
-
import * as ngCore from '@angular/core';
|
|
4
3
|
import { Inject, Injectable, NgZone, OnDestroy, Optional } from '@angular/core';
|
|
5
4
|
import { NavigationError, Router, Scroll } from '@angular/router';
|
|
6
5
|
|
|
7
|
-
const ngc = ngCore as any;
|
|
8
|
-
|
|
9
6
|
@Injectable()
|
|
10
7
|
export class RoutingService implements OnDestroy {
|
|
11
8
|
private dispose: Disposable | undefined;
|
|
@@ -62,53 +59,4 @@ export class RoutingService implements OnDestroy {
|
|
|
62
59
|
this.dispose?.();
|
|
63
60
|
this.subscription?.unsubscribe();
|
|
64
61
|
}
|
|
65
|
-
|
|
66
|
-
static ɵfac =
|
|
67
|
-
'ɵɵinject' in ngc
|
|
68
|
-
? (t: any) => new (t || RoutingService)(ngc.ɵɵinject('Context'), ngc.ɵɵinject(Router, 8), ngc.ɵɵinject(NgZone, 8))
|
|
69
|
-
: undefined;
|
|
70
|
-
|
|
71
|
-
static ɵprov =
|
|
72
|
-
'ɵɵngDeclareInjectable' in ngc
|
|
73
|
-
? ngc.ɵɵdefineInjectable({ token: RoutingService, factory: RoutingService.ɵfac })
|
|
74
|
-
: undefined;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
78
|
-
ngc.ɵsetClassMetadata(
|
|
79
|
-
RoutingService,
|
|
80
|
-
[
|
|
81
|
-
{
|
|
82
|
-
type: Injectable,
|
|
83
|
-
args: [{ name: 'resourceUrl' }],
|
|
84
|
-
},
|
|
85
|
-
],
|
|
86
|
-
() => [
|
|
87
|
-
{
|
|
88
|
-
type: undefined,
|
|
89
|
-
decorators: [
|
|
90
|
-
{
|
|
91
|
-
type: Inject,
|
|
92
|
-
args: ['Context'],
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
type: Router,
|
|
98
|
-
decorators: [
|
|
99
|
-
{
|
|
100
|
-
type: Optional,
|
|
101
|
-
},
|
|
102
|
-
],
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
type: NgZone,
|
|
106
|
-
decorators: [
|
|
107
|
-
{
|
|
108
|
-
type: Optional,
|
|
109
|
-
},
|
|
110
|
-
],
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
);
|
|
114
62
|
}
|
package/src/SharedModule.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import * as ngCore from '@angular/core';
|
|
2
1
|
import { CommonModule } from '@angular/common';
|
|
3
2
|
import { NgModule } from '@angular/core';
|
|
4
3
|
import { NgExtension } from './NgExtension';
|
|
5
4
|
import { ResourceUrlPipe } from './ResourceUrlPipe';
|
|
6
5
|
|
|
7
|
-
const ngc = ngCore as any;
|
|
8
6
|
const declarationsDef = [NgExtension, ResourceUrlPipe];
|
|
9
7
|
const exportsDef = [NgExtension, ResourceUrlPipe];
|
|
10
8
|
const importsDef = [CommonModule];
|
|
@@ -17,46 +15,4 @@ const importsDef = [CommonModule];
|
|
|
17
15
|
})
|
|
18
16
|
export class SharedModule {
|
|
19
17
|
static props = {};
|
|
20
|
-
|
|
21
|
-
// @ts-ignore
|
|
22
|
-
static ɵfac: ngCore.ɵɵFactoryDeclaration<SharedModule, never> =
|
|
23
|
-
'ɵɵinject' in ngc ? (t: any) => new (t || SharedModule)() : undefined;
|
|
24
|
-
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
static ɵmod: ngCore.ɵɵNgModuleDeclaration<
|
|
27
|
-
SharedModule,
|
|
28
|
-
[typeof NgExtension, typeof ResourceUrlPipe],
|
|
29
|
-
[typeof CommonModule],
|
|
30
|
-
[typeof NgExtension, typeof ResourceUrlPipe]
|
|
31
|
-
> =
|
|
32
|
-
'ɵɵdefineNgModule' in ngc
|
|
33
|
-
? ngc.ɵɵdefineNgModule({
|
|
34
|
-
type: SharedModule,
|
|
35
|
-
})
|
|
36
|
-
: undefined;
|
|
37
|
-
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
static ɵinj: ngCore.ɵɵInjectorDeclaration<SharedModule> =
|
|
40
|
-
'ɵɵdefineInjector' in ngc
|
|
41
|
-
? ngc.ɵɵdefineInjector({
|
|
42
|
-
providers: [],
|
|
43
|
-
imports: [importsDef],
|
|
44
|
-
})
|
|
45
|
-
: undefined;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
49
|
-
ngc.ɵsetClassMetadata(SharedModule, [
|
|
50
|
-
{
|
|
51
|
-
type: NgModule,
|
|
52
|
-
args: [
|
|
53
|
-
{
|
|
54
|
-
declarations: declarationsDef,
|
|
55
|
-
providers: [],
|
|
56
|
-
imports: importsDef,
|
|
57
|
-
exports: exportsDef,
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
]);
|
|
62
18
|
}
|