sample-cross-fx 0.15.0-beta.4808 → 0.15.0-beta.4813
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.830f8c.js} +238 -103
- package/app/{index.214c10.js.map → index.830f8c.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,52 @@ __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
|
|
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
55699
|
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/router */ "../../../node_modules/@angular/router/fesm2020/router.mjs");
|
|
55700
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "../../../node_modules/@angular/common/fesm2020/common.mjs");
|
|
55701
|
+
|
|
55702
|
+
|
|
55703
|
+
|
|
55704
|
+
|
|
55705
|
+
let skipNavigation = false;
|
|
55706
|
+
|
|
55707
|
+
const noop = function () {};
|
|
55700
55708
|
|
|
55709
|
+
const navigateByUrl = _angular_router__WEBPACK_IMPORTED_MODULE_0__.Router.prototype.navigateByUrl; // deactivates the usual platform behavior; all these operations are performed via the RoutingService
|
|
55710
|
+
// to avoid any conflict, e.g., double-booking URL changes in React and Angular
|
|
55701
55711
|
|
|
55712
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.pushState = noop;
|
|
55713
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.replaceState = noop;
|
|
55714
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.forward = noop;
|
|
55715
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.back = noop;
|
|
55716
|
+
_angular_common__WEBPACK_IMPORTED_MODULE_1__["ɵBrowserPlatformLocation"].prototype.historyGo = noop; // required to detect / react to hidden URL change (see #554 for details)
|
|
55717
|
+
|
|
55718
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_0__.Router.prototype.navigateByUrl = function (url, extras) {
|
|
55719
|
+
var _a;
|
|
55720
|
+
|
|
55721
|
+
skipNavigation = (_a = extras === null || extras === void 0 ? void 0 : extras.skipLocationChange) !== null && _a !== void 0 ? _a : false;
|
|
55722
|
+
const result = navigateByUrl.call(this, url, extras);
|
|
55723
|
+
skipNavigation = false;
|
|
55724
|
+
return result;
|
|
55725
|
+
};
|
|
55726
|
+
|
|
55727
|
+
function normalize(url) {
|
|
55728
|
+
const search = url.indexOf('?');
|
|
55729
|
+
const hash = url.indexOf('#');
|
|
55730
|
+
|
|
55731
|
+
if (search !== -1 || hash !== -1) {
|
|
55732
|
+
if (search === -1) {
|
|
55733
|
+
return url.substring(0, hash);
|
|
55734
|
+
} else if (hash === -1) {
|
|
55735
|
+
return url.substring(0, search);
|
|
55736
|
+
} else {
|
|
55737
|
+
return url.substring(0, Math.min(search, hash));
|
|
55738
|
+
}
|
|
55739
|
+
}
|
|
55740
|
+
|
|
55741
|
+
return url;
|
|
55742
|
+
}
|
|
55702
55743
|
|
|
55703
55744
|
let RoutingService = class RoutingService {
|
|
55704
55745
|
constructor(context, router, zone) {
|
|
@@ -55717,6 +55758,7 @@ let RoutingService = class RoutingService {
|
|
|
55717
55758
|
throw error;
|
|
55718
55759
|
};
|
|
55719
55760
|
|
|
55761
|
+
const skipIds = [];
|
|
55720
55762
|
const nav = this.context.navigation;
|
|
55721
55763
|
this.dispose = nav.listen(({
|
|
55722
55764
|
location
|
|
@@ -55724,27 +55766,39 @@ let RoutingService = class RoutingService {
|
|
|
55724
55766
|
const path = location.pathname;
|
|
55725
55767
|
|
|
55726
55768
|
if (!this.invalidRoutes.includes(path)) {
|
|
55727
|
-
const url = path
|
|
55728
|
-
this.zone.run(() => this.router
|
|
55769
|
+
const url = `${path}${location.search}${location.hash}`;
|
|
55770
|
+
this.zone.run(() => navigateByUrl.call(this.router, url));
|
|
55729
55771
|
}
|
|
55730
55772
|
});
|
|
55731
55773
|
this.subscription = this.router.events.subscribe(e => {
|
|
55732
55774
|
if (e instanceof _angular_router__WEBPACK_IMPORTED_MODULE_0__.NavigationError) {
|
|
55733
|
-
const
|
|
55775
|
+
const routerUrl = e.url;
|
|
55776
|
+
const path = normalize(routerUrl);
|
|
55777
|
+
const locationUrl = nav.url;
|
|
55734
55778
|
|
|
55735
55779
|
if (!this.invalidRoutes.includes(path)) {
|
|
55736
55780
|
this.invalidRoutes.push(path);
|
|
55737
55781
|
}
|
|
55738
55782
|
|
|
55739
|
-
nav.push(path);
|
|
55740
|
-
} else if (e.type === 15) {
|
|
55741
|
-
// consistency check to avoid #535 and other Angular-specific issues
|
|
55742
|
-
const locationUrl = nav.path;
|
|
55743
|
-
const routerUrl = e.routerEvent.url;
|
|
55744
|
-
|
|
55745
55783
|
if (routerUrl !== locationUrl) {
|
|
55746
55784
|
nav.push(routerUrl);
|
|
55747
55785
|
}
|
|
55786
|
+
} else if (e.type === 0 && skipNavigation) {
|
|
55787
|
+
skipIds.push(e.id);
|
|
55788
|
+
} else if (e.type === 15) {
|
|
55789
|
+
const index = skipIds.indexOf(e.routerEvent.id);
|
|
55790
|
+
|
|
55791
|
+
if (index === -1) {
|
|
55792
|
+
// consistency check to avoid #535 and other Angular-specific issues
|
|
55793
|
+
const locationUrl = nav.url;
|
|
55794
|
+
const routerUrl = e.routerEvent.url;
|
|
55795
|
+
|
|
55796
|
+
if (routerUrl !== locationUrl) {
|
|
55797
|
+
nav.push(routerUrl);
|
|
55798
|
+
}
|
|
55799
|
+
} else {
|
|
55800
|
+
skipIds.splice(index, 1);
|
|
55801
|
+
}
|
|
55748
55802
|
}
|
|
55749
55803
|
});
|
|
55750
55804
|
}
|
|
@@ -55758,7 +55812,7 @@ let RoutingService = class RoutingService {
|
|
|
55758
55812
|
}
|
|
55759
55813
|
|
|
55760
55814
|
};
|
|
55761
|
-
RoutingService = (0,
|
|
55815
|
+
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_0__.Router, _angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone])], RoutingService);
|
|
55762
55816
|
|
|
55763
55817
|
|
|
55764
55818
|
/***/ }),
|
|
@@ -55811,33 +55865,60 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55811
55865
|
/* harmony export */ "bootstrap": () => (/* binding */ bootstrap),
|
|
55812
55866
|
/* harmony export */ "prepareBootstrap": () => (/* binding */ prepareBootstrap)
|
|
55813
55867
|
/* 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");
|
|
55868
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55817
55869
|
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./module */ "../../converters/piral-ng/esm/module.js");
|
|
55870
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils */ "../../converters/piral-ng/esm/utils.js");
|
|
55871
|
+
/* harmony import */ var _startup__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./startup */ "../../converters/piral-ng/esm/startup.js");
|
|
55818
55872
|
|
|
55819
55873
|
|
|
55820
55874
|
|
|
55821
55875
|
|
|
55822
55876
|
function prepareBootstrap(moduleOrComponent, piral) {
|
|
55823
|
-
|
|
55824
|
-
|
|
55825
|
-
|
|
55826
|
-
|
|
55827
|
-
|
|
55828
|
-
|
|
55829
|
-
|
|
55830
|
-
|
|
55831
|
-
|
|
55832
|
-
|
|
55833
|
-
|
|
55834
|
-
|
|
55835
|
-
|
|
55836
|
-
|
|
55837
|
-
|
|
55877
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
55878
|
+
if ('module' in moduleOrComponent && typeof moduleOrComponent.module === 'function') {
|
|
55879
|
+
if (!(moduleOrComponent.state.current instanceof Promise)) {
|
|
55880
|
+
moduleOrComponent.state.current = moduleOrComponent.module().then(result => {
|
|
55881
|
+
if (typeof result !== 'object' || !('default' in result)) {
|
|
55882
|
+
throw new Error('The lazy loaded module does not `default` export a NgModule class.');
|
|
55883
|
+
}
|
|
55884
|
+
|
|
55885
|
+
(0,_module__WEBPACK_IMPORTED_MODULE_1__.defineModule)(result.default, moduleOrComponent.opts);
|
|
55886
|
+
return (0,_module__WEBPACK_IMPORTED_MODULE_1__.findModule)(result.default);
|
|
55887
|
+
});
|
|
55888
|
+
}
|
|
55889
|
+
|
|
55890
|
+
const moduleDef = yield moduleOrComponent.state.current;
|
|
55891
|
+
const {
|
|
55892
|
+
components
|
|
55893
|
+
} = moduleDef;
|
|
55894
|
+
const component = components.find(m => (0,_utils__WEBPACK_IMPORTED_MODULE_2__.hasSelector)(m, moduleOrComponent.selector));
|
|
55895
|
+
|
|
55896
|
+
if (!component) {
|
|
55897
|
+
throw new Error(`No component matching the selector "${moduleOrComponent.selector}" has been found.`);
|
|
55898
|
+
}
|
|
55899
|
+
|
|
55900
|
+
return [...(0,_module__WEBPACK_IMPORTED_MODULE_1__.activateModuleInstance)(moduleDef, piral), component];
|
|
55901
|
+
} else {
|
|
55902
|
+
const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.getAnnotations)(moduleOrComponent);
|
|
55903
|
+
const standalone = annotation === null || annotation === void 0 ? void 0 : annotation.standalone; // first way is to directly use a module, which is the legacy way
|
|
55904
|
+
// second way is to find a previously defined Angular module
|
|
55905
|
+
|
|
55906
|
+
if (annotation && annotation.bootstrap) {
|
|
55907
|
+
// usually contains things like imports, exports, declarations, ...
|
|
55908
|
+
const [component] = annotation.bootstrap;
|
|
55909
|
+
annotation.exports = [component];
|
|
55910
|
+
(0,_module__WEBPACK_IMPORTED_MODULE_1__.defineModule)(moduleOrComponent);
|
|
55911
|
+
return [...(0,_module__WEBPACK_IMPORTED_MODULE_1__.getModuleInstance)(component, standalone, piral), component];
|
|
55912
|
+
} else {
|
|
55913
|
+
// usually contains things like selector, template or templateUrl, changeDetection, ...
|
|
55914
|
+
const result = (0,_module__WEBPACK_IMPORTED_MODULE_1__.getModuleInstance)(moduleOrComponent, standalone, piral) || (0,_module__WEBPACK_IMPORTED_MODULE_1__.createModuleInstance)(moduleOrComponent, standalone, piral);
|
|
55915
|
+
return [...result, moduleOrComponent];
|
|
55916
|
+
}
|
|
55917
|
+
}
|
|
55918
|
+
});
|
|
55838
55919
|
}
|
|
55839
55920
|
function bootstrap(result, node, props, context) {
|
|
55840
|
-
return (0,
|
|
55921
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
55841
55922
|
const [selectedModule, ngOptions, component] = result;
|
|
55842
55923
|
const ref = yield (0,_startup__WEBPACK_IMPORTED_MODULE_3__.startup)(selectedModule, context, ngOptions);
|
|
55843
55924
|
|
|
@@ -55863,11 +55944,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
55863
55944
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
55864
55945
|
/* harmony export */ "createConverter": () => (/* binding */ createConverter)
|
|
55865
55946
|
/* harmony export */ });
|
|
55866
|
-
/* harmony import */ var
|
|
55867
|
-
/* harmony import */ var
|
|
55868
|
-
/* harmony import */ var
|
|
55869
|
-
/* harmony import */ var
|
|
55870
|
-
/* harmony import */ var
|
|
55947
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
55948
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! rxjs */ "../../../node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");
|
|
55949
|
+
/* harmony import */ var _NgExtension__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./NgExtension */ "../../converters/piral-ng/esm/NgExtension.js");
|
|
55950
|
+
/* harmony import */ var _queue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./queue */ "../../converters/piral-ng/esm/queue.js");
|
|
55951
|
+
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./module */ "../../converters/piral-ng/esm/module.js");
|
|
55952
|
+
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./bootstrap */ "../../converters/piral-ng/esm/bootstrap.js");
|
|
55953
|
+
|
|
55871
55954
|
|
|
55872
55955
|
|
|
55873
55956
|
|
|
@@ -55880,19 +55963,23 @@ function createConverter(_ = {}) {
|
|
|
55880
55963
|
mount(el, props, ctx, locals) {
|
|
55881
55964
|
locals.active = true;
|
|
55882
55965
|
|
|
55883
|
-
if (!registry.has(component)) {
|
|
55884
|
-
registry.set(component, (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.prepareBootstrap)(component, props.piral));
|
|
55885
|
-
}
|
|
55886
|
-
|
|
55887
55966
|
if (!locals.props) {
|
|
55888
|
-
locals.props = new
|
|
55967
|
+
locals.props = new rxjs__WEBPACK_IMPORTED_MODULE_0__.BehaviorSubject(props);
|
|
55889
55968
|
}
|
|
55890
55969
|
|
|
55891
55970
|
if (!locals.queued) {
|
|
55892
55971
|
locals.queued = Promise.resolve();
|
|
55893
55972
|
}
|
|
55894
55973
|
|
|
55895
|
-
locals.queued = locals.queued.then(() => (0,
|
|
55974
|
+
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* () {
|
|
55975
|
+
if (!registry.has(component)) {
|
|
55976
|
+
registry.set(component, yield (0,_bootstrap__WEBPACK_IMPORTED_MODULE_3__.prepareBootstrap)(component, props.piral));
|
|
55977
|
+
}
|
|
55978
|
+
|
|
55979
|
+
if (locals.active) {
|
|
55980
|
+
(0,_bootstrap__WEBPACK_IMPORTED_MODULE_3__.bootstrap)(registry.get(component), el, locals.props, ctx);
|
|
55981
|
+
}
|
|
55982
|
+
})));
|
|
55896
55983
|
},
|
|
55897
55984
|
|
|
55898
55985
|
update(el, props, ctx, locals) {
|
|
@@ -55901,13 +55988,13 @@ function createConverter(_ = {}) {
|
|
|
55901
55988
|
|
|
55902
55989
|
unmount(el, locals) {
|
|
55903
55990
|
locals.active = false;
|
|
55904
|
-
locals.queued = locals.queued.then(dispose => (0,
|
|
55991
|
+
locals.queued = locals.queued.then(dispose => dispose && (0,_queue__WEBPACK_IMPORTED_MODULE_1__.enqueue)(dispose));
|
|
55905
55992
|
}
|
|
55906
55993
|
|
|
55907
55994
|
});
|
|
55908
55995
|
|
|
55909
|
-
convert.defineModule =
|
|
55910
|
-
convert.Extension =
|
|
55996
|
+
convert.defineModule = _module__WEBPACK_IMPORTED_MODULE_4__.defineModule;
|
|
55997
|
+
convert.Extension = _NgExtension__WEBPACK_IMPORTED_MODULE_5__.NgExtension;
|
|
55911
55998
|
return convert;
|
|
55912
55999
|
}
|
|
55913
56000
|
|
|
@@ -55966,8 +56053,10 @@ function createNgApi(config = {}) {
|
|
|
55966
56053
|
"use strict";
|
|
55967
56054
|
__webpack_require__.r(__webpack_exports__);
|
|
55968
56055
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56056
|
+
/* harmony export */ "activateModuleInstance": () => (/* binding */ activateModuleInstance),
|
|
55969
56057
|
/* harmony export */ "createModuleInstance": () => (/* binding */ createModuleInstance),
|
|
55970
56058
|
/* harmony export */ "defineModule": () => (/* binding */ defineModule),
|
|
56059
|
+
/* harmony export */ "findModule": () => (/* binding */ findModule),
|
|
55971
56060
|
/* harmony export */ "getModuleInstance": () => (/* binding */ getModuleInstance)
|
|
55972
56061
|
/* harmony export */ });
|
|
55973
56062
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! tslib */ "../../../node_modules/tslib/tslib.es6.js");
|
|
@@ -56067,15 +56156,18 @@ function instantiateModule(moduleDef, piral) {
|
|
|
56067
56156
|
return BootstrapModule;
|
|
56068
56157
|
}
|
|
56069
56158
|
|
|
56159
|
+
function activateModuleInstance(moduleDef, piral) {
|
|
56160
|
+
if (!moduleDef.active) {
|
|
56161
|
+
moduleDef.active = instantiateModule(moduleDef, piral);
|
|
56162
|
+
}
|
|
56163
|
+
|
|
56164
|
+
return [moduleDef.active, moduleDef.opts];
|
|
56165
|
+
}
|
|
56070
56166
|
function getModuleInstance(component, standalone, piral) {
|
|
56071
56167
|
const [moduleDef] = availableModules.filter(m => m.components.includes(component));
|
|
56072
56168
|
|
|
56073
56169
|
if (moduleDef) {
|
|
56074
|
-
|
|
56075
|
-
moduleDef.active = instantiateModule(moduleDef, piral);
|
|
56076
|
-
}
|
|
56077
|
-
|
|
56078
|
-
return [moduleDef.active, moduleDef.opts];
|
|
56170
|
+
return activateModuleInstance(moduleDef, piral);
|
|
56079
56171
|
}
|
|
56080
56172
|
|
|
56081
56173
|
if (true) {
|
|
@@ -56101,14 +56193,33 @@ function createModuleInstance(component, standalone, piral) {
|
|
|
56101
56193
|
defineModule(Module);
|
|
56102
56194
|
return getModuleInstance(component, standalone, piral);
|
|
56103
56195
|
}
|
|
56196
|
+
function findModule(module) {
|
|
56197
|
+
return availableModules.find(m => m.module === module);
|
|
56198
|
+
}
|
|
56104
56199
|
function defineModule(module, opts = undefined) {
|
|
56105
56200
|
const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_7__.getAnnotations)(module);
|
|
56106
|
-
|
|
56107
|
-
|
|
56108
|
-
|
|
56109
|
-
|
|
56110
|
-
|
|
56111
|
-
|
|
56201
|
+
|
|
56202
|
+
if (annotation) {
|
|
56203
|
+
availableModules.push({
|
|
56204
|
+
active: undefined,
|
|
56205
|
+
components: (0,_utils__WEBPACK_IMPORTED_MODULE_7__.findComponents)(annotation.exports),
|
|
56206
|
+
module,
|
|
56207
|
+
opts
|
|
56208
|
+
});
|
|
56209
|
+
} else if (typeof module === 'function') {
|
|
56210
|
+
const state = {
|
|
56211
|
+
current: undefined
|
|
56212
|
+
};
|
|
56213
|
+
return selector => ({
|
|
56214
|
+
component: {
|
|
56215
|
+
selector,
|
|
56216
|
+
module,
|
|
56217
|
+
opts,
|
|
56218
|
+
state
|
|
56219
|
+
},
|
|
56220
|
+
type: 'ng'
|
|
56221
|
+
});
|
|
56222
|
+
}
|
|
56112
56223
|
}
|
|
56113
56224
|
|
|
56114
56225
|
/***/ }),
|
|
@@ -56161,58 +56272,71 @@ function getVersionHandler(versions) {
|
|
|
56161
56272
|
}
|
|
56162
56273
|
|
|
56163
56274
|
const runningModules = [];
|
|
56275
|
+
|
|
56276
|
+
function startNew(BootstrapModule, context, ngOptions) {
|
|
56277
|
+
const path = context.publicPath || '/';
|
|
56278
|
+
const platform = (0,_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__.platformBrowserDynamic)([{
|
|
56279
|
+
provide: 'Context',
|
|
56280
|
+
useValue: context
|
|
56281
|
+
}, {
|
|
56282
|
+
provide: _angular_common__WEBPACK_IMPORTED_MODULE_2__.APP_BASE_HREF,
|
|
56283
|
+
useValue: path
|
|
56284
|
+
}]);
|
|
56285
|
+
const id = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getId)();
|
|
56286
|
+
const zoneIdentifier = `piral-ng:${id}`; // This is a hack, since NgZone doesn't allow you to configure the property that identifies your zone.
|
|
56287
|
+
// See:
|
|
56288
|
+
// - https://github.com/PlaceMe-SAS/single-spa-angular-cli/issues/33
|
|
56289
|
+
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L144
|
|
56290
|
+
// - https://github.com/angular/angular/blob/a14dc2d7a4821a19f20a9547053a5734798f541e/packages/core/src/zone/ng_zone.ts#L257
|
|
56291
|
+
// @ts-ignore
|
|
56292
|
+
|
|
56293
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone.isInAngularZone = () => window.Zone.current._properties[zoneIdentifier] === true;
|
|
56294
|
+
|
|
56295
|
+
return platform.bootstrapModule(BootstrapModule, ngOptions).catch(err => console.log(err)).then(instance => {
|
|
56296
|
+
var _a;
|
|
56297
|
+
|
|
56298
|
+
if (instance) {
|
|
56299
|
+
const zone = instance.injector.get(_angular_core__WEBPACK_IMPORTED_MODULE_3__.NgZone); // @ts-ignore
|
|
56300
|
+
|
|
56301
|
+
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;
|
|
56302
|
+
|
|
56303
|
+
if (z && '_properties' in z) {
|
|
56304
|
+
z._properties[zoneIdentifier] = true;
|
|
56305
|
+
}
|
|
56306
|
+
|
|
56307
|
+
runningModules.push([BootstrapModule, instance, platform]);
|
|
56308
|
+
}
|
|
56309
|
+
|
|
56310
|
+
return instance;
|
|
56311
|
+
});
|
|
56312
|
+
}
|
|
56313
|
+
|
|
56164
56314
|
function teardown(BootstrapModule) {
|
|
56165
56315
|
const runningModuleIndex = runningModules.findIndex(([ref]) => ref === BootstrapModule);
|
|
56166
56316
|
|
|
56167
56317
|
if (runningModuleIndex !== -1) {
|
|
56168
56318
|
const [,, platform] = runningModules[runningModuleIndex];
|
|
56169
56319
|
runningModules.splice(runningModuleIndex, 1);
|
|
56170
|
-
|
|
56320
|
+
|
|
56321
|
+
if (!platform.destroyed) {
|
|
56322
|
+
platform.destroy();
|
|
56323
|
+
}
|
|
56171
56324
|
}
|
|
56172
56325
|
}
|
|
56173
56326
|
function startup(BootstrapModule, context, ngOptions) {
|
|
56174
56327
|
const runningModule = runningModules.find(([ref]) => ref === BootstrapModule);
|
|
56175
56328
|
|
|
56176
56329
|
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
|
-
}
|
|
56209
|
-
|
|
56210
|
-
runningModules.push([BootstrapModule, instance, platform]);
|
|
56211
|
-
}
|
|
56330
|
+
const [, instance, platform] = runningModule;
|
|
56212
56331
|
|
|
56213
|
-
|
|
56214
|
-
|
|
56332
|
+
if (platform.destroyed) {
|
|
56333
|
+
teardown(BootstrapModule);
|
|
56334
|
+
} else {
|
|
56335
|
+
return Promise.resolve(instance);
|
|
56336
|
+
}
|
|
56215
56337
|
}
|
|
56338
|
+
|
|
56339
|
+
return startNew(BootstrapModule, context, ngOptions);
|
|
56216
56340
|
}
|
|
56217
56341
|
|
|
56218
56342
|
if (true) {
|
|
@@ -56273,11 +56397,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56273
56397
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56274
56398
|
/* harmony export */ "findComponents": () => (/* binding */ findComponents),
|
|
56275
56399
|
/* harmony export */ "getAnnotations": () => (/* binding */ getAnnotations),
|
|
56400
|
+
/* harmony export */ "getId": () => (/* binding */ getId),
|
|
56276
56401
|
/* harmony export */ "getMinVersion": () => (/* binding */ getMinVersion),
|
|
56277
|
-
/* harmony export */ "getNgVersion": () => (/* binding */ getNgVersion)
|
|
56402
|
+
/* harmony export */ "getNgVersion": () => (/* binding */ getNgVersion),
|
|
56403
|
+
/* harmony export */ "hasSelector": () => (/* binding */ hasSelector)
|
|
56278
56404
|
/* harmony export */ });
|
|
56279
56405
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "../../../node_modules/@angular/core/fesm2020/core.mjs");
|
|
56280
56406
|
|
|
56407
|
+
function getId() {
|
|
56408
|
+
return Math.random().toString(36);
|
|
56409
|
+
}
|
|
56281
56410
|
function getNgVersion() {
|
|
56282
56411
|
return _angular_core__WEBPACK_IMPORTED_MODULE_0__.VERSION.major || _angular_core__WEBPACK_IMPORTED_MODULE_0__.VERSION.full.split('.')[0];
|
|
56283
56412
|
}
|
|
@@ -56302,6 +56431,10 @@ function getAnnotations(component) {
|
|
|
56302
56431
|
|
|
56303
56432
|
return annotations || [];
|
|
56304
56433
|
}
|
|
56434
|
+
function hasSelector(component, selector) {
|
|
56435
|
+
const [annotation] = getAnnotations(component);
|
|
56436
|
+
return annotation && annotation.selector === selector;
|
|
56437
|
+
}
|
|
56305
56438
|
function findComponents(exports) {
|
|
56306
56439
|
const components = [];
|
|
56307
56440
|
|
|
@@ -61231,11 +61364,13 @@ function createNavigation() {
|
|
|
61231
61364
|
|
|
61232
61365
|
return {
|
|
61233
61366
|
get path() {
|
|
61234
|
-
|
|
61235
|
-
|
|
61236
|
-
|
|
61367
|
+
const loc = _nav ? _nav.location : location;
|
|
61368
|
+
return loc.pathname;
|
|
61369
|
+
},
|
|
61237
61370
|
|
|
61238
|
-
|
|
61371
|
+
get url() {
|
|
61372
|
+
const loc = _nav ? _nav.location : location;
|
|
61373
|
+
return `${loc.pathname}${loc.search}${loc.hash}`;
|
|
61239
61374
|
},
|
|
61240
61375
|
|
|
61241
61376
|
push(target, state) {
|
|
@@ -63576,12 +63711,12 @@ function installPiralDebug(options) {
|
|
|
63576
63711
|
debug: debugApiVersion,
|
|
63577
63712
|
instance: {
|
|
63578
63713
|
name: "sample-cross-fx",
|
|
63579
|
-
version: "0.15.0-beta.
|
|
63714
|
+
version: "0.15.0-beta.4813",
|
|
63580
63715
|
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
63716
|
},
|
|
63582
63717
|
build: {
|
|
63583
|
-
date: "2022-11-
|
|
63584
|
-
cli: "0.15.0-beta.
|
|
63718
|
+
date: "2022-11-14T00:49:19.589Z",
|
|
63719
|
+
cli: "0.15.0-beta.4813",
|
|
63585
63720
|
compat: "0.15"
|
|
63586
63721
|
}
|
|
63587
63722
|
};
|
|
@@ -216218,4 +216353,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216218
216353
|
|
|
216219
216354
|
/******/ })()
|
|
216220
216355
|
;
|
|
216221
|
-
//# sourceMappingURL=index.
|
|
216356
|
+
//# sourceMappingURL=index.830f8c.js.map
|