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/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;
|
|
@@ -25,7 +22,8 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
25
22
|
this.dispose = nav.listen(({ location }) => {
|
|
26
23
|
const path = location.pathname;
|
|
27
24
|
if (!this.invalidRoutes.includes(path)) {
|
|
28
|
-
|
|
25
|
+
const url = path + location.search + location.hash;
|
|
26
|
+
this.zone.run(() => this.router.navigateByUrl(url));
|
|
29
27
|
}
|
|
30
28
|
});
|
|
31
29
|
this.subscription = this.router.events.subscribe((e) => {
|
|
@@ -53,13 +51,7 @@ let RoutingService = RoutingService_1 = class RoutingService {
|
|
|
53
51
|
(_b = this.subscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
54
52
|
}
|
|
55
53
|
};
|
|
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([
|
|
54
|
+
RoutingService = tslib_1.__decorate([
|
|
63
55
|
(0, core_1.Injectable)(),
|
|
64
56
|
tslib_1.__param(0, (0, core_1.Inject)('Context')),
|
|
65
57
|
tslib_1.__param(1, (0, core_1.Optional)()),
|
|
@@ -68,38 +60,4 @@ RoutingService = RoutingService_1 = tslib_1.__decorate([
|
|
|
68
60
|
core_1.NgZone])
|
|
69
61
|
], RoutingService);
|
|
70
62
|
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
63
|
//# 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,IA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G,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;AAxDY,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,CAwD1B;AAxDY,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/lib/module.js
CHANGED
|
@@ -2,17 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defineModule = exports.createModuleInstance = exports.getModuleInstance = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const ngCore = require("@angular/core");
|
|
6
5
|
const platform_browser_1 = require("@angular/platform-browser");
|
|
7
6
|
const common_1 = require("@angular/common");
|
|
8
7
|
const core_1 = require("@angular/core");
|
|
9
8
|
const RoutingService_1 = require("./RoutingService");
|
|
10
9
|
const SharedModule_1 = require("./SharedModule");
|
|
11
10
|
const utils_1 = require("./utils");
|
|
12
|
-
const ngc = ngCore;
|
|
13
11
|
const availableModules = [];
|
|
14
12
|
function instantiateModule(moduleDef, piral) {
|
|
15
|
-
var BootstrapModule_1;
|
|
16
13
|
const { module, components } = moduleDef;
|
|
17
14
|
const imports = [platform_browser_1.BrowserModule, SharedModule_1.SharedModule, module];
|
|
18
15
|
const props = { current: undefined };
|
|
@@ -21,7 +18,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
21
18
|
{ provide: 'Props', useFactory: () => props.current.value, deps: [] },
|
|
22
19
|
{ provide: 'piral', useFactory: () => piral, deps: [] },
|
|
23
20
|
];
|
|
24
|
-
let BootstrapModule =
|
|
21
|
+
let BootstrapModule = class BootstrapModule {
|
|
25
22
|
constructor(resolver, zone, routing) {
|
|
26
23
|
this.resolver = resolver;
|
|
27
24
|
this.zone = zone;
|
|
@@ -59,21 +56,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
59
56
|
}
|
|
60
57
|
}
|
|
61
58
|
};
|
|
62
|
-
BootstrapModule
|
|
63
|
-
? (t) => new (t || BootstrapModule_1)(ngc.ɵɵinject(core_1.ComponentFactoryResolver), ngc.ɵɵinject(core_1.NgZone), ngc.ɵɵinject(RoutingService_1.RoutingService))
|
|
64
|
-
: undefined;
|
|
65
|
-
BootstrapModule.ɵmod = 'ɵɵdefineNgModule' in ngc
|
|
66
|
-
? ngc.ɵɵdefineNgModule({
|
|
67
|
-
type: BootstrapModule_1,
|
|
68
|
-
})
|
|
69
|
-
: undefined;
|
|
70
|
-
BootstrapModule.ɵinj = 'ɵɵdefineInjector' in ngc
|
|
71
|
-
? ngc.ɵɵdefineInjector({
|
|
72
|
-
providers,
|
|
73
|
-
imports: [imports],
|
|
74
|
-
})
|
|
75
|
-
: undefined;
|
|
76
|
-
BootstrapModule = BootstrapModule_1 = tslib_1.__decorate([
|
|
59
|
+
BootstrapModule = tslib_1.__decorate([
|
|
77
60
|
(0, core_1.NgModule)({
|
|
78
61
|
imports,
|
|
79
62
|
entryComponents: components,
|
|
@@ -81,20 +64,6 @@ function instantiateModule(moduleDef, piral) {
|
|
|
81
64
|
}),
|
|
82
65
|
tslib_1.__metadata("design:paramtypes", [core_1.ComponentFactoryResolver, core_1.NgZone, RoutingService_1.RoutingService])
|
|
83
66
|
], BootstrapModule);
|
|
84
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
85
|
-
ngc.ɵsetClassMetadata(BootstrapModule, [
|
|
86
|
-
{
|
|
87
|
-
type: core_1.NgModule,
|
|
88
|
-
args: [
|
|
89
|
-
{
|
|
90
|
-
entryComponents: components,
|
|
91
|
-
providers,
|
|
92
|
-
imports,
|
|
93
|
-
},
|
|
94
|
-
],
|
|
95
|
-
},
|
|
96
|
-
], () => [{ type: core_1.ComponentFactoryResolver }, { type: core_1.NgZone }, { type: RoutingService_1.RoutingService }]);
|
|
97
|
-
}
|
|
98
67
|
return BootstrapModule;
|
|
99
68
|
}
|
|
100
69
|
function getModuleInstance(component, standalone, piral) {
|
|
@@ -114,25 +83,13 @@ function getModuleInstance(component, standalone, piral) {
|
|
|
114
83
|
}
|
|
115
84
|
exports.getModuleInstance = getModuleInstance;
|
|
116
85
|
function createModuleInstance(component, standalone, piral) {
|
|
117
|
-
var Module_1;
|
|
118
86
|
const declarations = standalone ? [] : [component];
|
|
119
87
|
const importsDef = standalone ? [common_1.CommonModule, component] : [common_1.CommonModule];
|
|
120
88
|
const exportsDef = [component];
|
|
121
89
|
const schemasDef = [core_1.CUSTOM_ELEMENTS_SCHEMA];
|
|
122
|
-
let Module =
|
|
90
|
+
let Module = class Module {
|
|
123
91
|
};
|
|
124
|
-
Module
|
|
125
|
-
Module.ɵmod = 'ɵɵdefineNgModule' in ngc
|
|
126
|
-
? ngc.ɵɵdefineNgModule({
|
|
127
|
-
type: Module_1,
|
|
128
|
-
})
|
|
129
|
-
: undefined;
|
|
130
|
-
Module.ɵinj = 'ɵɵdefineInjector' in ngc
|
|
131
|
-
? ngc.ɵɵdefineInjector({
|
|
132
|
-
imports: [importsDef],
|
|
133
|
-
})
|
|
134
|
-
: undefined;
|
|
135
|
-
Module = Module_1 = tslib_1.__decorate([
|
|
92
|
+
Module = tslib_1.__decorate([
|
|
136
93
|
(0, core_1.NgModule)({
|
|
137
94
|
declarations,
|
|
138
95
|
imports: importsDef,
|
|
@@ -140,21 +97,6 @@ function createModuleInstance(component, standalone, piral) {
|
|
|
140
97
|
schemas: schemasDef,
|
|
141
98
|
})
|
|
142
99
|
], Module);
|
|
143
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
144
|
-
ngc.ɵsetClassMetadata(Module, [
|
|
145
|
-
{
|
|
146
|
-
type: core_1.NgModule,
|
|
147
|
-
args: [
|
|
148
|
-
{
|
|
149
|
-
declarations,
|
|
150
|
-
imports: importsDef,
|
|
151
|
-
exports: exportsDef,
|
|
152
|
-
schemas: schemasDef,
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
},
|
|
156
|
-
]);
|
|
157
|
-
}
|
|
158
100
|
defineModule(Module);
|
|
159
101
|
return getModuleInstance(component, standalone, piral);
|
|
160
102
|
}
|
package/lib/module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;AAGA,
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;AAGA,gEAA0D;AAC1D,4CAA+C;AAC/C,wCAOuB;AACvB,qDAAkD;AAClD,iDAA8C;AAC9C,mCAAyD;AASzD,MAAM,gBAAgB,GAA4B,EAAE,CAAC;A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AS,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAhBD,oDAgBC;AAED,SAAgB,YAAY,CAAC,MAAW,EAAE,OAAkB,SAAS;IACnE,MAAM,CAAC,UAAU,CAAC,GAAG,IAAA,sBAAc,EAAC,MAAM,CAAC,CAAC;IAC5C,gBAAgB,CAAC,IAAI,CAAC;QACpB,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,IAAA,sBAAc,EAAC,UAAU,CAAC,OAAO,CAAC;QAC9C,MAAM;QACN,IAAI;KACL,CAAC,CAAC;AACL,CAAC;AARD,oCAQC"}
|
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.4801",
|
|
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.4801",
|
|
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": "ba4acd10b46e8c233841863206f9fb2ccc8f1958"
|
|
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;
|
|
@@ -32,7 +29,8 @@ export class RoutingService implements OnDestroy {
|
|
|
32
29
|
const path = location.pathname;
|
|
33
30
|
|
|
34
31
|
if (!this.invalidRoutes.includes(path)) {
|
|
35
|
-
|
|
32
|
+
const url = path + location.search + location.hash;
|
|
33
|
+
this.zone.run(() => this.router.navigateByUrl(url));
|
|
36
34
|
}
|
|
37
35
|
});
|
|
38
36
|
|
|
@@ -62,53 +60,4 @@ export class RoutingService implements OnDestroy {
|
|
|
62
60
|
this.dispose?.();
|
|
63
61
|
this.subscription?.unsubscribe();
|
|
64
62
|
}
|
|
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
63
|
}
|
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
|
}
|
package/src/module.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { PiletApi } from 'piral-core';
|
|
2
2
|
import type { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import type { NgOptions, ModuleInstanceResult } from './types';
|
|
4
|
-
import * as ngCore from '@angular/core';
|
|
5
4
|
import { BrowserModule } from '@angular/platform-browser';
|
|
6
5
|
import { CommonModule } from '@angular/common';
|
|
7
6
|
import {
|
|
@@ -16,8 +15,6 @@ import { RoutingService } from './RoutingService';
|
|
|
16
15
|
import { SharedModule } from './SharedModule';
|
|
17
16
|
import { findComponents, getAnnotations } from './utils';
|
|
18
17
|
|
|
19
|
-
const ngc = ngCore as any;
|
|
20
|
-
|
|
21
18
|
interface ModuleDefinition {
|
|
22
19
|
active: any;
|
|
23
20
|
module: any;
|
|
@@ -82,50 +79,6 @@ function instantiateModule(moduleDef: ModuleDefinition, piral: PiletApi) {
|
|
|
82
79
|
}
|
|
83
80
|
}
|
|
84
81
|
}
|
|
85
|
-
|
|
86
|
-
static ɵfac =
|
|
87
|
-
'ɵɵinject' in ngc
|
|
88
|
-
? (t: any) =>
|
|
89
|
-
new (t || BootstrapModule)(
|
|
90
|
-
ngc.ɵɵinject(ComponentFactoryResolver),
|
|
91
|
-
ngc.ɵɵinject(NgZone),
|
|
92
|
-
ngc.ɵɵinject(RoutingService),
|
|
93
|
-
)
|
|
94
|
-
: undefined;
|
|
95
|
-
|
|
96
|
-
static ɵmod =
|
|
97
|
-
'ɵɵdefineNgModule' in ngc
|
|
98
|
-
? ngc.ɵɵdefineNgModule({
|
|
99
|
-
type: BootstrapModule,
|
|
100
|
-
})
|
|
101
|
-
: undefined;
|
|
102
|
-
|
|
103
|
-
static ɵinj =
|
|
104
|
-
'ɵɵdefineInjector' in ngc
|
|
105
|
-
? ngc.ɵɵdefineInjector({
|
|
106
|
-
providers,
|
|
107
|
-
imports: [imports],
|
|
108
|
-
})
|
|
109
|
-
: undefined;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
113
|
-
ngc.ɵsetClassMetadata(
|
|
114
|
-
BootstrapModule,
|
|
115
|
-
[
|
|
116
|
-
{
|
|
117
|
-
type: NgModule,
|
|
118
|
-
args: [
|
|
119
|
-
{
|
|
120
|
-
entryComponents: components,
|
|
121
|
-
providers,
|
|
122
|
-
imports,
|
|
123
|
-
},
|
|
124
|
-
],
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
() => [{ type: ComponentFactoryResolver }, { type: NgZone }, { type: RoutingService }],
|
|
128
|
-
);
|
|
129
82
|
}
|
|
130
83
|
|
|
131
84
|
return BootstrapModule;
|
|
@@ -167,39 +120,7 @@ export function createModuleInstance(component: any, standalone: boolean, piral:
|
|
|
167
120
|
exports: exportsDef,
|
|
168
121
|
schemas: schemasDef,
|
|
169
122
|
})
|
|
170
|
-
class Module {
|
|
171
|
-
static ɵfac = 'ɵɵinject' in ngc ? (t: any) => new (t || Module)() : undefined;
|
|
172
|
-
|
|
173
|
-
static ɵmod =
|
|
174
|
-
'ɵɵdefineNgModule' in ngc
|
|
175
|
-
? ngc.ɵɵdefineNgModule({
|
|
176
|
-
type: Module,
|
|
177
|
-
})
|
|
178
|
-
: undefined;
|
|
179
|
-
|
|
180
|
-
static ɵinj =
|
|
181
|
-
'ɵɵdefineInjector' in ngc
|
|
182
|
-
? ngc.ɵɵdefineInjector({
|
|
183
|
-
imports: [importsDef],
|
|
184
|
-
})
|
|
185
|
-
: undefined;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if ('ɵsetClassMetadata' in ngc) {
|
|
189
|
-
ngc.ɵsetClassMetadata(Module, [
|
|
190
|
-
{
|
|
191
|
-
type: NgModule,
|
|
192
|
-
args: [
|
|
193
|
-
{
|
|
194
|
-
declarations,
|
|
195
|
-
imports: importsDef,
|
|
196
|
-
exports: exportsDef,
|
|
197
|
-
schemas: schemasDef,
|
|
198
|
-
},
|
|
199
|
-
],
|
|
200
|
-
},
|
|
201
|
-
]);
|
|
202
|
-
}
|
|
123
|
+
class Module {}
|
|
203
124
|
|
|
204
125
|
defineModule(Module);
|
|
205
126
|
return getModuleInstance(component, standalone, piral);
|