piral-ng 0.15.0-beta.4791 → 0.15.0-beta.4801
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 +4 -46
- 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/esm/module.js +4 -62
- package/esm/module.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 +4 -46
- 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/lib/module.js +4 -62
- package/lib/module.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 +2 -53
- package/src/SharedModule.ts +0 -44
- package/src/module.ts +1 -80
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;
|
|
@@ -22,7 +19,8 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
22
19
|
this.dispose = nav.listen(({ location }) => {
|
|
23
20
|
const path = location.pathname;
|
|
24
21
|
if (!this.invalidRoutes.includes(path)) {
|
|
25
|
-
|
|
22
|
+
const url = path + location.search + location.hash;
|
|
23
|
+
this.zone.run(() => this.router.navigateByUrl(url));
|
|
26
24
|
}
|
|
27
25
|
});
|
|
28
26
|
this.subscription = this.router.events.subscribe((e) => {
|
|
@@ -50,13 +48,7 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
50
48
|
(_b = this.subscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
51
49
|
}
|
|
52
50
|
};
|
|
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([
|
|
51
|
+
RoutingService = __decorate([
|
|
60
52
|
Injectable(),
|
|
61
53
|
__param(0, Inject('Context')),
|
|
62
54
|
__param(1, Optional()),
|
|
@@ -65,38 +57,4 @@ RoutingService = RoutingService_1 = __decorate([
|
|
|
65
57
|
NgZone])
|
|
66
58
|
], RoutingService);
|
|
67
59
|
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
60
|
//# 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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AAA,MAAM,CAAC,SAAS,CAAC,CAAA;IACjB,WAAA,QAAQ,EAAE,CAAA;IACV,WAAA,QAAQ,EAAE,CAAA;6CADiB,MAAM;QACR,MAAM;GARvB,cAAc,CAwD1B;SAxDY,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/esm/module.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import * as ngCore from '@angular/core';
|
|
3
2
|
import { BrowserModule } from '@angular/platform-browser';
|
|
4
3
|
import { CommonModule } from '@angular/common';
|
|
5
4
|
import { ComponentFactoryResolver, CUSTOM_ELEMENTS_SCHEMA, NgModule, NgZone, } from '@angular/core';
|
|
6
5
|
import { RoutingService } from './RoutingService';
|
|
7
6
|
import { SharedModule } from './SharedModule';
|
|
8
7
|
import { findComponents, getAnnotations } from './utils';
|
|
9
|
-
const ngc = ngCore;
|
|
10
8
|
const availableModules = [];
|
|
11
9
|
function instantiateModule(moduleDef, piral) {
|
|
12
|
-
var BootstrapModule_1;
|
|
13
10
|
const { module, components } = moduleDef;
|
|
14
11
|
const imports = [BrowserModule, SharedModule, module];
|
|
15
12
|
const props = { current: undefined };
|
|
@@ -18,7 +15,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
18
15
|
{ provide: 'Props', useFactory: () => props.current.value, deps: [] },
|
|
19
16
|
{ provide: 'piral', useFactory: () => piral, deps: [] },
|
|
20
17
|
];
|
|
21
|
-
let BootstrapModule =
|
|
18
|
+
let BootstrapModule = class BootstrapModule {
|
|
22
19
|
constructor(resolver, zone, routing) {
|
|
23
20
|
this.resolver = resolver;
|
|
24
21
|
this.zone = zone;
|
|
@@ -56,21 +53,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
56
53
|
}
|
|
57
54
|
}
|
|
58
55
|
};
|
|
59
|
-
BootstrapModule
|
|
60
|
-
? (t) => new (t || BootstrapModule_1)(ngc.ɵɵinject(ComponentFactoryResolver), ngc.ɵɵinject(NgZone), ngc.ɵɵinject(RoutingService))
|
|
61
|
-
: undefined;
|
|
62
|
-
BootstrapModule.ɵmod = 'ɵɵdefineNgModule' in ngc
|
|
63
|
-
? ngc.ɵɵdefineNgModule({
|
|
64
|
-
type: BootstrapModule_1,
|
|
65
|
-
})
|
|
66
|
-
: undefined;
|
|
67
|
-
BootstrapModule.ɵinj = 'ɵɵdefineInjector' in ngc
|
|
68
|
-
? ngc.ɵɵdefineInjector({
|
|
69
|
-
providers,
|
|
70
|
-
imports: [imports],
|
|
71
|
-
})
|
|
72
|
-
: undefined;
|
|
73
|
-
BootstrapModule = BootstrapModule_1 = __decorate([
|
|
56
|
+
BootstrapModule = __decorate([
|
|
74
57
|
NgModule({
|
|
75
58
|
imports,
|
|
76
59
|
entryComponents: components,
|
|
@@ -78,20 +61,6 @@ function instantiateModule(moduleDef, piral) {
|
|
|
78
61
|
}),
|
|
79
62
|
__metadata("design:paramtypes", [ComponentFactoryResolver, NgZone, RoutingService])
|
|
80
63
|
], BootstrapModule);
|
|
81
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
82
|
-
ngc.ɵsetClassMetadata(BootstrapModule, [
|
|
83
|
-
{
|
|
84
|
-
type: NgModule,
|
|
85
|
-
args: [
|
|
86
|
-
{
|
|
87
|
-
entryComponents: components,
|
|
88
|
-
providers,
|
|
89
|
-
imports,
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
},
|
|
93
|
-
], () => [{ type: ComponentFactoryResolver }, { type: NgZone }, { type: RoutingService }]);
|
|
94
|
-
}
|
|
95
64
|
return BootstrapModule;
|
|
96
65
|
}
|
|
97
66
|
export function getModuleInstance(component, standalone, piral) {
|
|
@@ -110,25 +79,13 @@ export function getModuleInstance(component, standalone, piral) {
|
|
|
110
79
|
return undefined;
|
|
111
80
|
}
|
|
112
81
|
export function createModuleInstance(component, standalone, piral) {
|
|
113
|
-
var Module_1;
|
|
114
82
|
const declarations = standalone ? [] : [component];
|
|
115
83
|
const importsDef = standalone ? [CommonModule, component] : [CommonModule];
|
|
116
84
|
const exportsDef = [component];
|
|
117
85
|
const schemasDef = [CUSTOM_ELEMENTS_SCHEMA];
|
|
118
|
-
let Module =
|
|
86
|
+
let Module = class Module {
|
|
119
87
|
};
|
|
120
|
-
Module
|
|
121
|
-
Module.ɵmod = 'ɵɵdefineNgModule' in ngc
|
|
122
|
-
? ngc.ɵɵdefineNgModule({
|
|
123
|
-
type: Module_1,
|
|
124
|
-
})
|
|
125
|
-
: undefined;
|
|
126
|
-
Module.ɵinj = 'ɵɵdefineInjector' in ngc
|
|
127
|
-
? ngc.ɵɵdefineInjector({
|
|
128
|
-
imports: [importsDef],
|
|
129
|
-
})
|
|
130
|
-
: undefined;
|
|
131
|
-
Module = Module_1 = __decorate([
|
|
88
|
+
Module = __decorate([
|
|
132
89
|
NgModule({
|
|
133
90
|
declarations,
|
|
134
91
|
imports: importsDef,
|
|
@@ -136,21 +93,6 @@ export function createModuleInstance(component, standalone, piral) {
|
|
|
136
93
|
schemas: schemasDef,
|
|
137
94
|
})
|
|
138
95
|
], Module);
|
|
139
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
140
|
-
ngc.ɵsetClassMetadata(Module, [
|
|
141
|
-
{
|
|
142
|
-
type: NgModule,
|
|
143
|
-
args: [
|
|
144
|
-
{
|
|
145
|
-
declarations,
|
|
146
|
-
imports: importsDef,
|
|
147
|
-
exports: exportsDef,
|
|
148
|
-
schemas: schemasDef,
|
|
149
|
-
},
|
|
150
|
-
],
|
|
151
|
-
},
|
|
152
|
-
]);
|
|
153
|
-
}
|
|
154
96
|
defineModule(Module);
|
|
155
97
|
return getModuleInstance(component, standalone, piral);
|
|
156
98
|
}
|
package/esm/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";AAGA,OAAO,
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAEL,wBAAwB,EAExB,sBAAsB,EACtB,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AASzD,MAAM,gBAAgB,GAA4B,EAAE,CAAC;AAErD,SAAS,iBAAiB,CAAC,SAA2B,EAAE,KAAe;IACrE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IACzC,MAAM,OAAO,GAAG,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;IACtD,MAAM,KAAK,GAAG,EAAE,OAAO,EAAE,SAAiC,EAAE,CAAC;IAC7D,MAAM,SAAS,GAAG;QAChB,cAAc;QACd,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,K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|
|
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