sample-cross-fx 0.15.0-beta.4803 → 0.15.0-beta.4812
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/app/{index.717365.js → index.13e756.js} +239 -108
- package/app/{index.717365.js.map → index.13e756.js.map} +1 -1
- package/app/index.d.ts +17 -4
- package/app/index.html +1 -1
- package/app/index.js +1 -1
- package/files.tar +0 -0
- package/files_once.tar +0 -0
- package/package.json +20 -20
|
@@ -55694,11 +55694,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55694
55694
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55695
55695
|
/* harmony export */ "RoutingService": () => (/* binding */ RoutingService)
|
|
55696
55696
|
/* harmony export */ });
|
|
55697
|
-
/* harmony import */ var
|
|
55698
|
-
/* harmony import */ var
|
|
55699
|
-
/* harmony import */ var
|
|
55697
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55698
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
55699
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
|
|
55700
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
|
|
55701
|
+
|
|
55702
|
+
|
|
55703
|
+
|
|
55700
55704
|
|
|
55701
55705
|
|
|
55706
|
+
const noop = function () {}; // deactivates the usual platform behavior; all these operations are performed via the RoutingService
|
|
55707
|
+
// to avoid any conflict, e.g., double-booking URL changes in React and Angular
|
|
55708
|
+
|
|
55709
|
+
|
|
55710
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.pushState = noop;
|
|
55711
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.replaceState = noop;
|
|
55712
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.forward = noop;
|
|
55713
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.back = noop;
|
|
55714
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_0__["ɵBrowserPlatformLocation"].prototype.historyGo = noop;
|
|
55715
|
+
|
|
55716
|
+
function normalize(url) {
|
|
55717
|
+
const search = url.indexOf('?');
|
|
55718
|
+
const hash = url.indexOf('#');
|
|
55719
|
+
|
|
55720
|
+
if (search !== -1 || hash !== -1) {
|
|
55721
|
+
if (search === -1) {
|
|
55722
|
+
return url.substring(0, hash);
|
|
55723
|
+
} else if (hash === -1) {
|
|
55724
|
+
return url.substring(0, search);
|
|
55725
|
+
} else {
|
|
55726
|
+
return url.substring(0, Math.min(search, hash));
|
|
55727
|
+
}
|
|
55728
|
+
}
|
|
55729
|
+
|
|
55730
|
+
return url;
|
|
55731
|
+
}
|
|
55702
55732
|
|
|
55703
55733
|
let RoutingService = class RoutingService {
|
|
55704
55734
|
constructor(context, router, zone) {
|
|
@@ -55724,22 +55754,26 @@ let RoutingService = class RoutingService {
|
|
|
55724
55754
|
const path = location.pathname;
|
|
55725
55755
|
|
|
55726
55756
|
if (!this.invalidRoutes.includes(path)) {
|
|
55727
|
-
const url = path
|
|
55757
|
+
const url = `${path}${location.search}${location.hash}`;
|
|
55728
55758
|
this.zone.run(() => this.router.navigateByUrl(url));
|
|
55729
55759
|
}
|
|
55730
55760
|
});
|
|
55731
55761
|
this.subscription = this.router.events.subscribe(e => {
|
|
55732
|
-
if (e instanceof
|
|
55733
|
-
const
|
|
55762
|
+
if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_1__.NavigationError) {
|
|
55763
|
+
const routerUrl = e.url;
|
|
55764
|
+
const path = normalize(routerUrl);
|
|
55765
|
+
const locationUrl = nav.url;
|
|
55734
55766
|
|
|
55735
55767
|
if (!this.invalidRoutes.includes(path)) {
|
|
55736
55768
|
this.invalidRoutes.push(path);
|
|
55737
55769
|
}
|
|
55738
55770
|
|
|
55739
|
-
|
|
55771
|
+
if (routerUrl !== locationUrl) {
|
|
55772
|
+
nav.push(routerUrl);
|
|
55773
|
+
}
|
|
55740
55774
|
} else if (e.type === 15) {
|
|
55741
55775
|
// consistency check to avoid #535 and other Angular-specific issues
|
|
55742
|
-
const locationUrl = nav.
|
|
55776
|
+
const locationUrl = nav.url;
|
|
55743
55777
|
const routerUrl = e.routerEvent.url;
|
|
55744
55778
|
|
|
55745
55779
|
if (routerUrl !== locationUrl) {
|
|
@@ -55758,7 +55792,7 @@ let RoutingService = class RoutingService {
|
|
|
55758
55792
|
}
|
|
55759
55793
|
|
|
55760
55794
|
};
|
|
55761
|
-
RoutingService = (0,
|
|
55795
|
+
RoutingService = (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Injectable)(), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(0, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Inject)('Context')), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(1, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__param)(2, (0,_angular_core__WEBPACK_IMPORTED_MODULE_3__.Optional)()), (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__metadata)("design:paramtypes", [Object, _angular_router__WEBPACK_IMPORTED_MODULE_1__.Router, _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone])], RoutingService);
|
|
55762
55796
|
|
|
55763
55797
|
|
|
55764
55798
|
/***/ }),
|
|
@@ -55811,33 +55845,60 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55811
55845
|
/* harmony export */ "bootstrap": () => (/* binding */ bootstrap),
|
|
55812
55846
|
/* harmony export */ "prepareBootstrap": () => (/* binding */ prepareBootstrap)
|
|
55813
55847
|
/* harmony export */ });
|
|
55814
|
-
/* harmony import */ var
|
|
55815
|
-
/* harmony import */ var _startup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./startup */ "../../converters/piral-ng/esm/startup.js");
|
|
55816
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "../../converters/piral-ng/esm/utils.js");
|
|
55848
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55817
55849
|
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./module */ "../../converters/piral-ng/esm/module.js");
|
|
55850
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../converters/piral-ng/esm/utils.js");
|
|
55851
|
+
/* harmony import */ var _startup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./startup */ "../../converters/piral-ng/esm/startup.js");
|
|
55818
55852
|
|
|
55819
55853
|
|
|
55820
55854
|
|
|
55821
55855
|
|
|
55822
55856
|
function prepareBootstrap(moduleOrComponent, piral) {
|
|
55823
|
-
|
|
55824
|
-
|
|
55825
|
-
|
|
55826
|
-
|
|
55827
|
-
|
|
55828
|
-
|
|
55829
|
-
|
|
55830
|
-
|
|
55831
|
-
|
|
55832
|
-
|
|
55833
|
-
|
|
55834
|
-
|
|
55835
|
-
|
|
55836
|
-
|
|
55837
|
-
|
|
55857
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
55858
|
+
if ('module' in moduleOrComponent && typeof moduleOrComponent.module === 'function') {
|
|
55859
|
+
if (!(moduleOrComponent.state.current instanceof Promise)) {
|
|
55860
|
+
moduleOrComponent.state.current = moduleOrComponent.module().then(result => {
|
|
55861
|
+
if (typeof result !== 'object' || !('default' in result)) {
|
|
55862
|
+
throw new Error('The lazy loaded module does not `default` export a NgModule class.');
|
|
55863
|
+
}
|
|
55864
|
+
|
|
55865
|
+
(0,_module__WEBPACK_IMPORTED_MODULE_1__.defineModule)(result.default, moduleOrComponent.opts);
|
|
55866
|
+
return (0,_module__WEBPACK_IMPORTED_MODULE_1__.findModule)(result.default);
|
|
55867
|
+
});
|
|
55868
|
+
}
|
|
55869
|
+
|
|
55870
|
+
const moduleDef = yield moduleOrComponent.state.current;
|
|
55871
|
+
const {
|
|
55872
|
+
components
|
|
55873
|
+
} = moduleDef;
|
|
55874
|
+
const component = components.find(m => (0,_utils__WEBPACK_IMPORTED_MODULE_2__.hasSelector)(m, moduleOrComponent.selector));
|
|
55875
|
+
|
|
55876
|
+
if (!component) {
|
|
55877
|
+
throw new Error(`No component matching the selector "${moduleOrComponent.selector}" has been found.`);
|
|
55878
|
+
}
|
|
55879
|
+
|
|
55880
|
+
return [...(0,_module__WEBPACK_IMPORTED_MODULE_1__.activateModuleInstance)(moduleDef, piral), component];
|
|
55881
|
+
} else {
|
|
55882
|
+
const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getAnnotations)(moduleOrComponent);
|
|
55883
|
+
const standalone = annotation === null || annotation === void 0 ? void 0 : annotation.standalone; // first way is to directly use a module, which is the legacy way
|
|
55884
|
+
// second way is to find a previously defined Angular module
|
|
55885
|
+
|
|
55886
|
+
if (annotation && annotation.bootstrap) {
|
|
55887
|
+
// usually contains things like imports, exports, declarations, ...
|
|
55888
|
+
const [component] = annotation.bootstrap;
|
|
55889
|
+
annotation.exports = [component];
|
|
55890
|
+
(0,_module__WEBPACK_IMPORTED_MODULE_1__.defineModule)(moduleOrComponent);
|
|
55891
|
+
return [...(0,_module__WEBPACK_IMPORTED_MODULE_1__.getModuleInstance)(component, standalone, piral), component];
|
|
55892
|
+
} else {
|
|
55893
|
+
// usually contains things like selector, template or templateUrl, changeDetection, ...
|
|
55894
|
+
const result = (0,_module__WEBPACK_IMPORTED_MODULE_1__.getModuleInstance)(moduleOrComponent, standalone, piral) || (0,_module__WEBPACK_IMPORTED_MODULE_1__.createModuleInstance)(moduleOrComponent, standalone, piral);
|
|
55895
|
+
return [...result, moduleOrComponent];
|
|
55896
|
+
}
|
|
55897
|
+
}
|
|
55898
|
+
});
|
|
55838
55899
|
}
|
|
55839
55900
|
function bootstrap(result, node, props, context) {
|
|
55840
|
-
return (0,
|
|
55901
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
55841
55902
|
const [selectedModule, ngOptions, component] = result;
|
|
55842
55903
|
const ref = yield (0,_startup__WEBPACK_IMPORTED_MODULE_3__.startup)(selectedModule, context, ngOptions);
|
|
55843
55904
|
|
|
@@ -55863,11 +55924,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55863
55924
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55864
55925
|
/* harmony export */ "createConverter": () => (/* binding */ createConverter)
|
|
55865
55926
|
/* harmony export */ });
|
|
55866
|
-
/* harmony import */ var
|
|
55867
|
-
/* harmony import */ var
|
|
55868
|
-
/* harmony import */ var
|
|
55869
|
-
/* harmony import */ var
|
|
55870
|
-
/* harmony import */ var
|
|
55927
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55928
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "../../../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");
|
|
55929
|
+
/* harmony import */ var _NgExtension__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NgExtension */ "../../converters/piral-ng/esm/NgExtension.js");
|
|
55930
|
+
/* harmony import */ var _queue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./queue */ "../../converters/piral-ng/esm/queue.js");
|
|
55931
|
+
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./module */ "../../converters/piral-ng/esm/module.js");
|
|
55932
|
+
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bootstrap */ "../../converters/piral-ng/esm/bootstrap.js");
|
|
55933
|
+
|
|
55871
55934
|
|
|
55872
55935
|
|
|
55873
55936
|
|
|
@@ -55880,19 +55943,23 @@ function createConverter(_ = {}) {
|
|
|
55880
55943
|
mount(el, props, ctx, locals) {
|
|
55881
55944
|
locals.active = true;
|
|
55882
55945
|
|
|
55883
|
-
if (!registry.has(component)) {
|
|
55884
|
-
registry.set(component, (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.prepareBootstrap)(component, props.piral));
|
|
55885
|
-
}
|
|
55886
|
-
|
|
55887
55946
|
if (!locals.props) {
|
|
55888
|
-
locals.props = new
|
|
55947
|
+
locals.props = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(props);
|
|
55889
55948
|
}
|
|
55890
55949
|
|
|
55891
55950
|
if (!locals.queued) {
|
|
55892
55951
|
locals.queued = Promise.resolve();
|
|
55893
55952
|
}
|
|
55894
55953
|
|
|
55895
|
-
locals.queued = locals.queued.then(() => (0,
|
|
55954
|
+
locals.queued = locals.queued.then(() => (0,_queue__WEBPACK_IMPORTED_MODULE_1__.enqueue)(() => (0,tslib__WEBPACK_IMPORTED_MODULE_2__.__awaiter)(this, void 0, void 0, function* () {
|
|
55955
|
+
if (!registry.has(component)) {
|
|
55956
|
+
registry.set(component, yield (0,_bootstrap__WEBPACK_IMPORTED_MODULE_3__.prepareBootstrap)(component, props.piral));
|
|
55957
|
+
}
|
|
55958
|
+
|
|
55959
|
+
if (locals.active) {
|
|
55960
|
+
(0,_bootstrap__WEBPACK_IMPORTED_MODULE_3__.bootstrap)(registry.get(component), el, locals.props, ctx);
|
|
55961
|
+
}
|
|
55962
|
+
})));
|
|
55896
55963
|
},
|
|
55897
55964
|
|
|
55898
55965
|
update(el, props, ctx, locals) {
|
|
@@ -55901,13 +55968,13 @@ function createConverter(_ = {}) {
|
|
|
55901
55968
|
|
|
55902
55969
|
unmount(el, locals) {
|
|
55903
55970
|
locals.active = false;
|
|
55904
|
-
locals.queued = locals.queued.then(dispose => dispose &&
|
|
55971
|
+
locals.queued = locals.queued.then(dispose => dispose && (0,_queue__WEBPACK_IMPORTED_MODULE_1__.enqueue)(dispose));
|
|
55905
55972
|
}
|
|
55906
55973
|
|
|
55907
55974
|
});
|
|
55908
55975
|
|
|
55909
|
-
convert.defineModule =
|
|
55910
|
-
convert.Extension =
|
|
55976
|
+
convert.defineModule = _module__WEBPACK_IMPORTED_MODULE_4__.defineModule;
|
|
55977
|
+
convert.Extension = _NgExtension__WEBPACK_IMPORTED_MODULE_5__.NgExtension;
|
|
55911
55978
|
return convert;
|
|
55912
55979
|
}
|
|
55913
55980
|
|
|
@@ -55966,17 +56033,21 @@ function createNgApi(config = {}) {
|
|
|
55966
56033
|
"use strict";
|
|
55967
56034
|
__webpack_require__.r(__webpack_exports__);
|
|
55968
56035
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56036
|
+
/* harmony export */ "activateModuleInstance": () => (/* binding */ activateModuleInstance),
|
|
55969
56037
|
/* harmony export */ "createModuleInstance": () => (/* binding */ createModuleInstance),
|
|
55970
56038
|
/* harmony export */ "defineModule": () => (/* binding */ defineModule),
|
|
56039
|
+
/* harmony export */ "findModule": () => (/* binding */ findModule),
|
|
55971
56040
|
/* harmony export */ "getModuleInstance": () => (/* binding */ getModuleInstance)
|
|
55972
56041
|
/* harmony export */ });
|
|
55973
|
-
/* harmony import */ var
|
|
56042
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55974
56043
|
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/platform-browser */ "../../../node_modules/@angular/platform-browser/fesm2020/platform-browser.mjs");
|
|
55975
|
-
/* harmony import */ var
|
|
55976
|
-
/* harmony import */ var
|
|
56044
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
|
|
56045
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
56046
|
+
/* harmony import */ var _startup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./startup */ "../../converters/piral-ng/esm/startup.js");
|
|
55977
56047
|
/* harmony import */ var _RoutingService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./RoutingService */ "../../converters/piral-ng/esm/RoutingService.js");
|
|
55978
56048
|
/* harmony import */ var _SharedModule__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SharedModule */ "../../converters/piral-ng/esm/SharedModule.js");
|
|
55979
|
-
/* harmony import */ var
|
|
56049
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./utils */ "../../converters/piral-ng/esm/utils.js");
|
|
56050
|
+
|
|
55980
56051
|
|
|
55981
56052
|
|
|
55982
56053
|
|
|
@@ -55987,6 +56058,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55987
56058
|
const availableModules = [];
|
|
55988
56059
|
|
|
55989
56060
|
function instantiateModule(moduleDef, piral) {
|
|
56061
|
+
var BootstrapModule_1;
|
|
55990
56062
|
const {
|
|
55991
56063
|
module,
|
|
55992
56064
|
components
|
|
@@ -56004,7 +56076,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
56004
56076
|
useFactory: () => piral,
|
|
56005
56077
|
deps: []
|
|
56006
56078
|
}];
|
|
56007
|
-
let BootstrapModule = class BootstrapModule {
|
|
56079
|
+
let BootstrapModule = BootstrapModule_1 = class BootstrapModule {
|
|
56008
56080
|
constructor(resolver, zone, routing) {
|
|
56009
56081
|
this.resolver = resolver;
|
|
56010
56082
|
this.zone = zone;
|
|
@@ -56049,26 +56121,33 @@ function instantiateModule(moduleDef, piral) {
|
|
|
56049
56121
|
this.refs.splice(i, 1);
|
|
56050
56122
|
}
|
|
56051
56123
|
}
|
|
56124
|
+
|
|
56125
|
+
if (this.refs.length === 0) {
|
|
56126
|
+
(0,_startup__WEBPACK_IMPORTED_MODULE_3__.teardown)(BootstrapModule_1);
|
|
56127
|
+
}
|
|
56052
56128
|
}
|
|
56053
56129
|
|
|
56054
56130
|
};
|
|
56055
|
-
BootstrapModule = (0,
|
|
56131
|
+
BootstrapModule = BootstrapModule_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule)({
|
|
56056
56132
|
imports,
|
|
56057
56133
|
entryComponents: components,
|
|
56058
56134
|
providers
|
|
56059
|
-
}), (0,
|
|
56135
|
+
}), (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__metadata)("design:paramtypes", [_angular_core__WEBPACK_IMPORTED_MODULE_5__.ComponentFactoryResolver, _angular_core__WEBPACK_IMPORTED_MODULE_5__.NgZone, _RoutingService__WEBPACK_IMPORTED_MODULE_2__.RoutingService])], BootstrapModule);
|
|
56060
56136
|
return BootstrapModule;
|
|
56061
56137
|
}
|
|
56062
56138
|
|
|
56139
|
+
function activateModuleInstance(moduleDef, piral) {
|
|
56140
|
+
if (!moduleDef.active) {
|
|
56141
|
+
moduleDef.active = instantiateModule(moduleDef, piral);
|
|
56142
|
+
}
|
|
56143
|
+
|
|
56144
|
+
return [moduleDef.active, moduleDef.opts];
|
|
56145
|
+
}
|
|
56063
56146
|
function getModuleInstance(component, standalone, piral) {
|
|
56064
56147
|
const [moduleDef] = availableModules.filter(m => m.components.includes(component));
|
|
56065
56148
|
|
|
56066
56149
|
if (moduleDef) {
|
|
56067
|
-
|
|
56068
|
-
moduleDef.active = instantiateModule(moduleDef, piral);
|
|
56069
|
-
}
|
|
56070
|
-
|
|
56071
|
-
return [moduleDef.active, moduleDef.opts];
|
|
56150
|
+
return activateModuleInstance(moduleDef, piral);
|
|
56072
56151
|
}
|
|
56073
56152
|
|
|
56074
56153
|
if (true) {
|
|
@@ -56081,11 +56160,11 @@ function getModuleInstance(component, standalone, piral) {
|
|
|
56081
56160
|
}
|
|
56082
56161
|
function createModuleInstance(component, standalone, piral) {
|
|
56083
56162
|
const declarations = standalone ? [] : [component];
|
|
56084
|
-
const importsDef = standalone ? [
|
|
56163
|
+
const importsDef = standalone ? [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule, component] : [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule];
|
|
56085
56164
|
const exportsDef = [component];
|
|
56086
|
-
const schemasDef = [
|
|
56165
|
+
const schemasDef = [_angular_core__WEBPACK_IMPORTED_MODULE_5__.CUSTOM_ELEMENTS_SCHEMA];
|
|
56087
56166
|
let Module = class Module {};
|
|
56088
|
-
Module = (0,
|
|
56167
|
+
Module = (0,tslib__WEBPACK_IMPORTED_MODULE_4__.__decorate)([(0,_angular_core__WEBPACK_IMPORTED_MODULE_5__.NgModule)({
|
|
56089
56168
|
declarations,
|
|
56090
56169
|
imports: importsDef,
|
|
56091
56170
|
exports: exportsDef,
|
|
@@ -56094,14 +56173,32 @@ function createModuleInstance(component, standalone, piral) {
|
|
|
56094
56173
|
defineModule(Module);
|
|
56095
56174
|
return getModuleInstance(component, standalone, piral);
|
|
56096
56175
|
}
|
|
56176
|
+
function findModule(module) {
|
|
56177
|
+
return availableModules.find(m => m.module === module);
|
|
56178
|
+
}
|
|
56097
56179
|
function defineModule(module, opts = undefined) {
|
|
56098
|
-
|
|
56099
|
-
|
|
56100
|
-
|
|
56101
|
-
|
|
56102
|
-
|
|
56103
|
-
|
|
56104
|
-
|
|
56180
|
+
if (typeof module !== 'function') {
|
|
56181
|
+
const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getAnnotations)(module);
|
|
56182
|
+
availableModules.push({
|
|
56183
|
+
active: undefined,
|
|
56184
|
+
components: (0,_utils__WEBPACK_IMPORTED_MODULE_7__.findComponents)(annotation.exports),
|
|
56185
|
+
module,
|
|
56186
|
+
opts
|
|
56187
|
+
});
|
|
56188
|
+
} else {
|
|
56189
|
+
const state = {
|
|
56190
|
+
current: undefined
|
|
56191
|
+
};
|
|
56192
|
+
return selector => ({
|
|
56193
|
+
component: {
|
|
56194
|
+
selector,
|
|
56195
|
+
module,
|
|
56196
|
+
opts,
|
|
56197
|
+
state
|
|
56198
|
+
},
|
|
56199
|
+
type: 'ng'
|
|
56200
|
+
});
|
|
56201
|
+
}
|
|
56105
56202
|
}
|
|
56106
56203
|
|
|
56107
56204
|
/***/ }),
|
|
@@ -56135,7 +56232,8 @@ function enqueue(callback) {
|
|
|
56135
56232
|
"use strict";
|
|
56136
56233
|
__webpack_require__.r(__webpack_exports__);
|
|
56137
56234
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56138
|
-
/* harmony export */ "startup": () => (/* binding */ startup)
|
|
56235
|
+
/* harmony export */ "startup": () => (/* binding */ startup),
|
|
56236
|
+
/* harmony export */ "teardown": () => (/* binding */ teardown)
|
|
56139
56237
|
/* harmony export */ });
|
|
56140
56238
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
56141
56239
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
|
|
@@ -56153,50 +56251,72 @@ function getVersionHandler(versions) {
|
|
|
56153
56251
|
}
|
|
56154
56252
|
|
|
56155
56253
|
const runningModules = [];
|
|
56156
|
-
function startup(BootstrapModule, context, ngOptions) {
|
|
56157
|
-
const runningModule = runningModules.find(([ref]) => ref === BootstrapModule);
|
|
56158
|
-
|
|
56159
|
-
if (runningModule) {
|
|
56160
|
-
const [, instance] = runningModule;
|
|
56161
|
-
return Promise.resolve(instance);
|
|
56162
|
-
} else {
|
|
56163
|
-
const path = context.publicPath || '/';
|
|
56164
|
-
const platform = (0,_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__.platformBrowserDynamic)([{
|
|
56165
|
-
provide: 'Context',
|
|
56166
|
-
useValue: context
|
|
56167
|
-
}, {
|
|
56168
|
-
provide: _angular_common__WEBPACK_IMPORTED_MODULE_2__.APP_BASE_HREF,
|
|
56169
|
-
useValue: path
|
|
56170
|
-
}]);
|
|
56171
|
-
const id = Math.random().toString(36);
|
|
56172
|
-
const zoneIdentifier = `piral-ng:${id}`; // This is a hack, since NgZone doesn't allow you to configure the property that identifies your zone.
|
|
56173
|
-
// See:
|
|
56174
|
-
// - https://github.com/PlaceMe-SAS/single-spa-angular-cli/issues/33
|
|
56175
|
-
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L144
|
|
56176
|
-
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L257
|
|
56177
|
-
// @ts-ignore
|
|
56178
56254
|
|
|
56179
|
-
|
|
56255
|
+
function startNew(BootstrapModule, context, ngOptions) {
|
|
56256
|
+
const path = context.publicPath || '/';
|
|
56257
|
+
const platform = (0,_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__.platformBrowserDynamic)([{
|
|
56258
|
+
provide: 'Context',
|
|
56259
|
+
useValue: context
|
|
56260
|
+
}, {
|
|
56261
|
+
provide: _angular_common__WEBPACK_IMPORTED_MODULE_2__.APP_BASE_HREF,
|
|
56262
|
+
useValue: path
|
|
56263
|
+
}]);
|
|
56264
|
+
const id = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getId)();
|
|
56265
|
+
const zoneIdentifier = `piral-ng:${id}`; // This is a hack, since NgZone doesn't allow you to configure the property that identifies your zone.
|
|
56266
|
+
// See:
|
|
56267
|
+
// - https://github.com/PlaceMe-SAS/single-spa-angular-cli/issues/33
|
|
56268
|
+
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L144
|
|
56269
|
+
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L257
|
|
56270
|
+
// @ts-ignore
|
|
56180
56271
|
|
|
56181
|
-
|
|
56182
|
-
var _a;
|
|
56272
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone.isInAngularZone = () => window.Zone.current._properties[zoneIdentifier] === true;
|
|
56183
56273
|
|
|
56184
|
-
|
|
56185
|
-
|
|
56274
|
+
return platform.bootstrapModule(BootstrapModule, ngOptions).catch(err => console.log(err)).then(instance => {
|
|
56275
|
+
var _a;
|
|
56186
56276
|
|
|
56187
|
-
|
|
56277
|
+
if (instance) {
|
|
56278
|
+
const zone = instance.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone); // @ts-ignore
|
|
56188
56279
|
|
|
56189
|
-
|
|
56190
|
-
z._properties[zoneIdentifier] = true;
|
|
56191
|
-
}
|
|
56280
|
+
const z = (_a = zone === null || zone === void 0 ? void 0 : zone._inner) !== null && _a !== void 0 ? _a : zone === null || zone === void 0 ? void 0 : zone.inner;
|
|
56192
56281
|
|
|
56193
|
-
|
|
56282
|
+
if (z && '_properties' in z) {
|
|
56283
|
+
z._properties[zoneIdentifier] = true;
|
|
56194
56284
|
}
|
|
56195
56285
|
|
|
56196
|
-
|
|
56197
|
-
}
|
|
56286
|
+
runningModules.push([BootstrapModule, instance, platform]);
|
|
56287
|
+
}
|
|
56288
|
+
|
|
56289
|
+
return instance;
|
|
56290
|
+
});
|
|
56291
|
+
}
|
|
56292
|
+
|
|
56293
|
+
function teardown(BootstrapModule) {
|
|
56294
|
+
const runningModuleIndex = runningModules.findIndex(([ref]) => ref === BootstrapModule);
|
|
56295
|
+
|
|
56296
|
+
if (runningModuleIndex !== -1) {
|
|
56297
|
+
const [,, platform] = runningModules[runningModuleIndex];
|
|
56298
|
+
runningModules.splice(runningModuleIndex, 1);
|
|
56299
|
+
|
|
56300
|
+
if (!platform.destroyed) {
|
|
56301
|
+
platform.destroy();
|
|
56302
|
+
}
|
|
56198
56303
|
}
|
|
56199
56304
|
}
|
|
56305
|
+
function startup(BootstrapModule, context, ngOptions) {
|
|
56306
|
+
const runningModule = runningModules.find(([ref]) => ref === BootstrapModule);
|
|
56307
|
+
|
|
56308
|
+
if (runningModule) {
|
|
56309
|
+
const [, instance, platform] = runningModule;
|
|
56310
|
+
|
|
56311
|
+
if (platform.destroyed) {
|
|
56312
|
+
teardown(BootstrapModule);
|
|
56313
|
+
} else {
|
|
56314
|
+
return Promise.resolve(instance);
|
|
56315
|
+
}
|
|
56316
|
+
}
|
|
56317
|
+
|
|
56318
|
+
return startNew(BootstrapModule, context, ngOptions);
|
|
56319
|
+
}
|
|
56200
56320
|
|
|
56201
56321
|
if (true) {
|
|
56202
56322
|
// May be used later for something useful. Right now only debugging output.
|
|
@@ -56256,11 +56376,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56256
56376
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56257
56377
|
/* harmony export */ "findComponents": () => (/* binding */ findComponents),
|
|
56258
56378
|
/* harmony export */ "getAnnotations": () => (/* binding */ getAnnotations),
|
|
56379
|
+
/* harmony export */ "getId": () => (/* binding */ getId),
|
|
56259
56380
|
/* harmony export */ "getMinVersion": () => (/* binding */ getMinVersion),
|
|
56260
|
-
/* harmony export */ "getNgVersion": () => (/* binding */ getNgVersion)
|
|
56381
|
+
/* harmony export */ "getNgVersion": () => (/* binding */ getNgVersion),
|
|
56382
|
+
/* harmony export */ "hasSelector": () => (/* binding */ hasSelector)
|
|
56261
56383
|
/* harmony export */ });
|
|
56262
56384
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
56263
56385
|
|
|
56386
|
+
function getId() {
|
|
56387
|
+
return Math.random().toString(36);
|
|
56388
|
+
}
|
|
56264
56389
|
function getNgVersion() {
|
|
56265
56390
|
return _angular_core__WEBPACK_IMPORTED_MODULE_0__.VERSION.major || _angular_core__WEBPACK_IMPORTED_MODULE_0__.VERSION.full.split('.')[0];
|
|
56266
56391
|
}
|
|
@@ -56285,6 +56410,10 @@ function getAnnotations(component) {
|
|
|
56285
56410
|
|
|
56286
56411
|
return annotations || [];
|
|
56287
56412
|
}
|
|
56413
|
+
function hasSelector(component, selector) {
|
|
56414
|
+
const [annotation] = getAnnotations(component);
|
|
56415
|
+
return annotation && annotation.selector === selector;
|
|
56416
|
+
}
|
|
56288
56417
|
function findComponents(exports) {
|
|
56289
56418
|
const components = [];
|
|
56290
56419
|
|
|
@@ -61214,11 +61343,13 @@ function createNavigation() {
|
|
|
61214
61343
|
|
|
61215
61344
|
return {
|
|
61216
61345
|
get path() {
|
|
61217
|
-
|
|
61218
|
-
|
|
61219
|
-
|
|
61346
|
+
const loc = _nav ? _nav.location : location;
|
|
61347
|
+
return loc.pathname;
|
|
61348
|
+
},
|
|
61220
61349
|
|
|
61221
|
-
|
|
61350
|
+
get url() {
|
|
61351
|
+
const loc = _nav ? _nav.location : location;
|
|
61352
|
+
return `${loc.pathname}${loc.search}${loc.hash}`;
|
|
61222
61353
|
},
|
|
61223
61354
|
|
|
61224
61355
|
push(target, state) {
|
|
@@ -63559,12 +63690,12 @@ function installPiralDebug(options) {
|
|
|
63559
63690
|
debug: debugApiVersion,
|
|
63560
63691
|
instance: {
|
|
63561
63692
|
name: "sample-cross-fx",
|
|
63562
|
-
version: "0.15.0-beta.
|
|
63693
|
+
version: "0.15.0-beta.4812",
|
|
63563
63694
|
dependencies: "@angular/common,@angular/compiler,@angular/core,@angular/platform-browser,@angular/platform-browser-dynamic,@webcomponents/webcomponentsjs,angular,aurelia-framework,aurelia-templating-binding,aurelia-templating-resources,aurelia-pal-browser,aurelia-event-aggregator,aurelia-history-browser,hyperapp,inferno,inferno-create-element,mithril,lit-element,solid-js,solid-js/dom,piral-ng/common,preact,riot,rxjs,vue,zone.js,tslib,react,react-dom,react-router,react-router-dom"
|
|
63564
63695
|
},
|
|
63565
63696
|
build: {
|
|
63566
|
-
date: "2022-11-
|
|
63567
|
-
cli: "0.15.0-beta.
|
|
63697
|
+
date: "2022-11-13T01:15:00.061Z",
|
|
63698
|
+
cli: "0.15.0-beta.4812",
|
|
63568
63699
|
compat: "0.15"
|
|
63569
63700
|
}
|
|
63570
63701
|
};
|
|
@@ -216201,4 +216332,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216201
216332
|
|
|
216202
216333
|
/******/ })()
|
|
216203
216334
|
;
|
|
216204
|
-
//# sourceMappingURL=index.
|
|
216335
|
+
//# sourceMappingURL=index.13e756.js.map
|