sample-cross-fx 0.15.0-beta.4808 → 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.214c10.js → index.13e756.js} +215 -101
- package/app/{index.214c10.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 => (0,
|
|
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,8 +56033,10 @@ 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
56042
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
@@ -56067,15 +56136,18 @@ function instantiateModule(moduleDef, piral) {
|
|
|
56067
56136
|
return BootstrapModule;
|
|
56068
56137
|
}
|
|
56069
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
|
+
}
|
|
56070
56146
|
function getModuleInstance(component, standalone, piral) {
|
|
56071
56147
|
const [moduleDef] = availableModules.filter(m => m.components.includes(component));
|
|
56072
56148
|
|
|
56073
56149
|
if (moduleDef) {
|
|
56074
|
-
|
|
56075
|
-
moduleDef.active = instantiateModule(moduleDef, piral);
|
|
56076
|
-
}
|
|
56077
|
-
|
|
56078
|
-
return [moduleDef.active, moduleDef.opts];
|
|
56150
|
+
return activateModuleInstance(moduleDef, piral);
|
|
56079
56151
|
}
|
|
56080
56152
|
|
|
56081
56153
|
if (true) {
|
|
@@ -56101,14 +56173,32 @@ function createModuleInstance(component, standalone, piral) {
|
|
|
56101
56173
|
defineModule(Module);
|
|
56102
56174
|
return getModuleInstance(component, standalone, piral);
|
|
56103
56175
|
}
|
|
56176
|
+
function findModule(module) {
|
|
56177
|
+
return availableModules.find(m => m.module === module);
|
|
56178
|
+
}
|
|
56104
56179
|
function defineModule(module, opts = undefined) {
|
|
56105
|
-
|
|
56106
|
-
|
|
56107
|
-
|
|
56108
|
-
|
|
56109
|
-
|
|
56110
|
-
|
|
56111
|
-
|
|
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
|
+
}
|
|
56112
56202
|
}
|
|
56113
56203
|
|
|
56114
56204
|
/***/ }),
|
|
@@ -56161,58 +56251,71 @@ function getVersionHandler(versions) {
|
|
|
56161
56251
|
}
|
|
56162
56252
|
|
|
56163
56253
|
const runningModules = [];
|
|
56254
|
+
|
|
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
|
|
56271
|
+
|
|
56272
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone.isInAngularZone = () => window.Zone.current._properties[zoneIdentifier] === true;
|
|
56273
|
+
|
|
56274
|
+
return platform.bootstrapModule(BootstrapModule, ngOptions).catch(err => console.log(err)).then(instance => {
|
|
56275
|
+
var _a;
|
|
56276
|
+
|
|
56277
|
+
if (instance) {
|
|
56278
|
+
const zone = instance.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone); // @ts-ignore
|
|
56279
|
+
|
|
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;
|
|
56281
|
+
|
|
56282
|
+
if (z && '_properties' in z) {
|
|
56283
|
+
z._properties[zoneIdentifier] = true;
|
|
56284
|
+
}
|
|
56285
|
+
|
|
56286
|
+
runningModules.push([BootstrapModule, instance, platform]);
|
|
56287
|
+
}
|
|
56288
|
+
|
|
56289
|
+
return instance;
|
|
56290
|
+
});
|
|
56291
|
+
}
|
|
56292
|
+
|
|
56164
56293
|
function teardown(BootstrapModule) {
|
|
56165
56294
|
const runningModuleIndex = runningModules.findIndex(([ref]) => ref === BootstrapModule);
|
|
56166
56295
|
|
|
56167
56296
|
if (runningModuleIndex !== -1) {
|
|
56168
56297
|
const [,, platform] = runningModules[runningModuleIndex];
|
|
56169
56298
|
runningModules.splice(runningModuleIndex, 1);
|
|
56170
|
-
|
|
56299
|
+
|
|
56300
|
+
if (!platform.destroyed) {
|
|
56301
|
+
platform.destroy();
|
|
56302
|
+
}
|
|
56171
56303
|
}
|
|
56172
56304
|
}
|
|
56173
56305
|
function startup(BootstrapModule, context, ngOptions) {
|
|
56174
56306
|
const runningModule = runningModules.find(([ref]) => ref === BootstrapModule);
|
|
56175
56307
|
|
|
56176
56308
|
if (runningModule) {
|
|
56177
|
-
const [, instance] = runningModule;
|
|
56178
|
-
return Promise.resolve(instance);
|
|
56179
|
-
} else {
|
|
56180
|
-
const path = context.publicPath || '/';
|
|
56181
|
-
const platform = (0,_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__.platformBrowserDynamic)([{
|
|
56182
|
-
provide: 'Context',
|
|
56183
|
-
useValue: context
|
|
56184
|
-
}, {
|
|
56185
|
-
provide: _angular_common__WEBPACK_IMPORTED_MODULE_2__.APP_BASE_HREF,
|
|
56186
|
-
useValue: path
|
|
56187
|
-
}]);
|
|
56188
|
-
const id = Math.random().toString(36);
|
|
56189
|
-
const zoneIdentifier = `piral-ng:${id}`; // This is a hack, since NgZone doesn't allow you to configure the property that identifies your zone.
|
|
56190
|
-
// See:
|
|
56191
|
-
// - https://github.com/PlaceMe-SAS/single-spa-angular-cli/issues/33
|
|
56192
|
-
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L144
|
|
56193
|
-
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L257
|
|
56194
|
-
// @ts-ignore
|
|
56195
|
-
|
|
56196
|
-
_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone.isInAngularZone = () => window.Zone.current._properties[zoneIdentifier] === true;
|
|
56197
|
-
|
|
56198
|
-
return platform.bootstrapModule(BootstrapModule, ngOptions).catch(err => console.log(err)).then(instance => {
|
|
56199
|
-
var _a;
|
|
56200
|
-
|
|
56201
|
-
if (instance) {
|
|
56202
|
-
const zone = instance.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone); // @ts-ignore
|
|
56203
|
-
|
|
56204
|
-
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;
|
|
56205
|
-
|
|
56206
|
-
if (z && '_properties' in z) {
|
|
56207
|
-
z._properties[zoneIdentifier] = true;
|
|
56208
|
-
}
|
|
56309
|
+
const [, instance, platform] = runningModule;
|
|
56209
56310
|
|
|
56210
|
-
|
|
56211
|
-
|
|
56212
|
-
|
|
56213
|
-
return instance;
|
|
56214
|
-
}
|
|
56311
|
+
if (platform.destroyed) {
|
|
56312
|
+
teardown(BootstrapModule);
|
|
56313
|
+
} else {
|
|
56314
|
+
return Promise.resolve(instance);
|
|
56315
|
+
}
|
|
56215
56316
|
}
|
|
56317
|
+
|
|
56318
|
+
return startNew(BootstrapModule, context, ngOptions);
|
|
56216
56319
|
}
|
|
56217
56320
|
|
|
56218
56321
|
if (true) {
|
|
@@ -56273,11 +56376,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56273
56376
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56274
56377
|
/* harmony export */ "findComponents": () => (/* binding */ findComponents),
|
|
56275
56378
|
/* harmony export */ "getAnnotations": () => (/* binding */ getAnnotations),
|
|
56379
|
+
/* harmony export */ "getId": () => (/* binding */ getId),
|
|
56276
56380
|
/* harmony export */ "getMinVersion": () => (/* binding */ getMinVersion),
|
|
56277
|
-
/* harmony export */ "getNgVersion": () => (/* binding */ getNgVersion)
|
|
56381
|
+
/* harmony export */ "getNgVersion": () => (/* binding */ getNgVersion),
|
|
56382
|
+
/* harmony export */ "hasSelector": () => (/* binding */ hasSelector)
|
|
56278
56383
|
/* harmony export */ });
|
|
56279
56384
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
56280
56385
|
|
|
56386
|
+
function getId() {
|
|
56387
|
+
return Math.random().toString(36);
|
|
56388
|
+
}
|
|
56281
56389
|
function getNgVersion() {
|
|
56282
56390
|
return _angular_core__WEBPACK_IMPORTED_MODULE_0__.VERSION.major || _angular_core__WEBPACK_IMPORTED_MODULE_0__.VERSION.full.split('.')[0];
|
|
56283
56391
|
}
|
|
@@ -56302,6 +56410,10 @@ function getAnnotations(component) {
|
|
|
56302
56410
|
|
|
56303
56411
|
return annotations || [];
|
|
56304
56412
|
}
|
|
56413
|
+
function hasSelector(component, selector) {
|
|
56414
|
+
const [annotation] = getAnnotations(component);
|
|
56415
|
+
return annotation && annotation.selector === selector;
|
|
56416
|
+
}
|
|
56305
56417
|
function findComponents(exports) {
|
|
56306
56418
|
const components = [];
|
|
56307
56419
|
|
|
@@ -61231,11 +61343,13 @@ function createNavigation() {
|
|
|
61231
61343
|
|
|
61232
61344
|
return {
|
|
61233
61345
|
get path() {
|
|
61234
|
-
|
|
61235
|
-
|
|
61236
|
-
|
|
61346
|
+
const loc = _nav ? _nav.location : location;
|
|
61347
|
+
return loc.pathname;
|
|
61348
|
+
},
|
|
61237
61349
|
|
|
61238
|
-
|
|
61350
|
+
get url() {
|
|
61351
|
+
const loc = _nav ? _nav.location : location;
|
|
61352
|
+
return `${loc.pathname}${loc.search}${loc.hash}`;
|
|
61239
61353
|
},
|
|
61240
61354
|
|
|
61241
61355
|
push(target, state) {
|
|
@@ -63576,12 +63690,12 @@ function installPiralDebug(options) {
|
|
|
63576
63690
|
debug: debugApiVersion,
|
|
63577
63691
|
instance: {
|
|
63578
63692
|
name: "sample-cross-fx",
|
|
63579
|
-
version: "0.15.0-beta.
|
|
63693
|
+
version: "0.15.0-beta.4812",
|
|
63580
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"
|
|
63581
63695
|
},
|
|
63582
63696
|
build: {
|
|
63583
|
-
date: "2022-11-
|
|
63584
|
-
cli: "0.15.0-beta.
|
|
63697
|
+
date: "2022-11-13T01:15:00.061Z",
|
|
63698
|
+
cli: "0.15.0-beta.4812",
|
|
63585
63699
|
compat: "0.15"
|
|
63586
63700
|
}
|
|
63587
63701
|
};
|
|
@@ -216218,4 +216332,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216218
216332
|
|
|
216219
216333
|
/******/ })()
|
|
216220
216334
|
;
|
|
216221
|
-
//# sourceMappingURL=index.
|
|
216335
|
+
//# sourceMappingURL=index.13e756.js.map
|