sample-cross-fx 0.14.21-beta.4074 → 0.14.22-beta.4103
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.dc5b8d.js → index.a3c9ff.js} +51 -13
- package/app/{index.dc5b8d.js.map → index.a3c9ff.js.map} +1 -1
- 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
|
@@ -125696,6 +125696,15 @@ let NgExtension = NgExtension_1 = class NgExtension {
|
|
|
125696
125696
|
this.piral = piral;
|
|
125697
125697
|
}
|
|
125698
125698
|
|
|
125699
|
+
ngOnChanges() {
|
|
125700
|
+
this.elRef.nativeElement.dispatchEvent(new CustomEvent('extension-props-changed', {
|
|
125701
|
+
detail: {
|
|
125702
|
+
name: this.name,
|
|
125703
|
+
params: this.params
|
|
125704
|
+
}
|
|
125705
|
+
}));
|
|
125706
|
+
}
|
|
125707
|
+
|
|
125699
125708
|
ngAfterContentInit() {
|
|
125700
125709
|
this.piral.renderHtmlExtension(this.elRef.nativeElement, {
|
|
125701
125710
|
name: this.name,
|
|
@@ -125987,7 +125996,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
125987
125996
|
|
|
125988
125997
|
|
|
125989
125998
|
function prepareBootstrap(moduleOrComponent, piral) {
|
|
125990
|
-
const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getAnnotations)(moduleOrComponent);
|
|
125999
|
+
const [annotation] = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.getAnnotations)(moduleOrComponent); // first way is to directly use a module, which is the legacy way
|
|
126000
|
+
// second way is to find a previously defined Angular module
|
|
125991
126001
|
|
|
125992
126002
|
if (annotation && annotation.bootstrap) {
|
|
125993
126003
|
// usually contains things like imports, exports, declarations, ...
|
|
@@ -126028,14 +126038,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
126028
126038
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
126029
126039
|
/* harmony export */ "createConverter": () => (/* binding */ createConverter)
|
|
126030
126040
|
/* harmony export */ });
|
|
126031
|
-
/* harmony import */ var
|
|
126032
|
-
/* harmony import */ var
|
|
126033
|
-
/* harmony import */ var
|
|
126041
|
+
/* harmony import */ var rxjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rxjs */ "../../converters/piral-ng/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js");
|
|
126042
|
+
/* harmony import */ var _NgExtension__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./NgExtension */ "../../converters/piral-ng/esm/NgExtension.js");
|
|
126043
|
+
/* harmony import */ var _queue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./queue */ "../../converters/piral-ng/esm/queue.js");
|
|
126044
|
+
/* harmony import */ var _module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./module */ "../../converters/piral-ng/esm/module.js");
|
|
126034
126045
|
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootstrap */ "../../converters/piral-ng/esm/bootstrap.js");
|
|
126035
126046
|
|
|
126036
126047
|
|
|
126037
126048
|
|
|
126038
126049
|
|
|
126050
|
+
|
|
126039
126051
|
function createConverter(_ = {}) {
|
|
126040
126052
|
const registry = new Map();
|
|
126041
126053
|
|
|
@@ -126047,11 +126059,19 @@ function createConverter(_ = {}) {
|
|
|
126047
126059
|
registry.set(component, (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.prepareBootstrap)(component, props.piral));
|
|
126048
126060
|
}
|
|
126049
126061
|
|
|
126062
|
+
if (!locals.props) {
|
|
126063
|
+
locals.props = new rxjs__WEBPACK_IMPORTED_MODULE_1__.BehaviorSubject(props);
|
|
126064
|
+
}
|
|
126065
|
+
|
|
126050
126066
|
if (!locals.queued) {
|
|
126051
126067
|
locals.queued = Promise.resolve();
|
|
126052
126068
|
}
|
|
126053
126069
|
|
|
126054
|
-
locals.queued = locals.queued.then(() => (0,
|
|
126070
|
+
locals.queued = locals.queued.then(() => (0,_queue__WEBPACK_IMPORTED_MODULE_2__.enqueue)(() => locals.active && (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(registry.get(component), el, locals.props, ctx)));
|
|
126071
|
+
},
|
|
126072
|
+
|
|
126073
|
+
update(el, props, ctx, locals) {
|
|
126074
|
+
locals.props.next(props);
|
|
126055
126075
|
},
|
|
126056
126076
|
|
|
126057
126077
|
unmount(el, locals) {
|
|
@@ -126061,8 +126081,8 @@ function createConverter(_ = {}) {
|
|
|
126061
126081
|
|
|
126062
126082
|
});
|
|
126063
126083
|
|
|
126064
|
-
convert.defineModule =
|
|
126065
|
-
convert.Extension =
|
|
126084
|
+
convert.defineModule = _module__WEBPACK_IMPORTED_MODULE_3__.defineModule;
|
|
126085
|
+
convert.Extension = _NgExtension__WEBPACK_IMPORTED_MODULE_4__.NgExtension;
|
|
126066
126086
|
return convert;
|
|
126067
126087
|
}
|
|
126068
126088
|
|
|
@@ -126172,7 +126192,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
126172
126192
|
};
|
|
126173
126193
|
const providers = [_RoutingService__WEBPACK_IMPORTED_MODULE_3__.RoutingService, {
|
|
126174
126194
|
provide: 'Props',
|
|
126175
|
-
useFactory: () => props.current,
|
|
126195
|
+
useFactory: () => props.current.value,
|
|
126176
126196
|
deps: []
|
|
126177
126197
|
}, {
|
|
126178
126198
|
provide: 'piral',
|
|
@@ -126192,11 +126212,25 @@ function instantiateModule(moduleDef, piral) {
|
|
|
126192
126212
|
}
|
|
126193
126213
|
|
|
126194
126214
|
attach(component, node, $props) {
|
|
126215
|
+
var _a, _b, _c;
|
|
126216
|
+
|
|
126195
126217
|
const factory = this.resolver.resolveComponentFactory(component);
|
|
126196
126218
|
props.current = $props;
|
|
126197
126219
|
|
|
126198
126220
|
if (factory) {
|
|
126199
126221
|
const ref = this.zone.run(() => this.appRef.bootstrap(factory, node));
|
|
126222
|
+
const name = (_c = (_b = (_a = ref.componentType) === null || _a === void 0 ? void 0 : _a.ɵcmp) === null || _b === void 0 ? void 0 : _b.inputs) === null || _c === void 0 ? void 0 : _c.Props;
|
|
126223
|
+
|
|
126224
|
+
if (typeof name === 'string') {
|
|
126225
|
+
const sub = $props.subscribe(props => {
|
|
126226
|
+
var _a;
|
|
126227
|
+
|
|
126228
|
+
ref.instance[name] = props;
|
|
126229
|
+
(_a = ref.changeDetectorRef) === null || _a === void 0 ? void 0 : _a.detectChanges();
|
|
126230
|
+
});
|
|
126231
|
+
ref.onDestroy(() => sub.unsubscribe());
|
|
126232
|
+
}
|
|
126233
|
+
|
|
126200
126234
|
this.refs.push([component, node, ref]);
|
|
126201
126235
|
}
|
|
126202
126236
|
}
|
|
@@ -126258,6 +126292,10 @@ function getModuleInstance(component, piral) {
|
|
|
126258
126292
|
return [moduleDef.active, moduleDef.opts];
|
|
126259
126293
|
}
|
|
126260
126294
|
|
|
126295
|
+
if (true) {
|
|
126296
|
+
console.warn('Component not found in all defined Angular modules. Make sure to define (using `defineNgModule`) a module with your component(s) referenced in the exports section of the `@NgModule` decorator.', component, piral.meta);
|
|
126297
|
+
}
|
|
126298
|
+
|
|
126261
126299
|
return undefined;
|
|
126262
126300
|
}
|
|
126263
126301
|
function createModuleInstance(component, piral) {
|
|
@@ -130179,7 +130217,7 @@ function createInstance(config = {}) {
|
|
|
130179
130217
|
const createApi = apiFactory(context, usedPlugins);
|
|
130180
130218
|
const root = createApi({
|
|
130181
130219
|
name: 'root',
|
|
130182
|
-
version: "0.14.
|
|
130220
|
+
version: "0.14.22-beta.4103" || 0,
|
|
130183
130221
|
spec: ''
|
|
130184
130222
|
});
|
|
130185
130223
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -132652,12 +132690,12 @@ function installPiralDebug(options) {
|
|
|
132652
132690
|
debug: debugApiVersion,
|
|
132653
132691
|
instance: {
|
|
132654
132692
|
name: "sample-cross-fx",
|
|
132655
|
-
version: "0.14.
|
|
132693
|
+
version: "0.14.22-beta.4103",
|
|
132656
132694
|
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,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
132657
132695
|
},
|
|
132658
132696
|
build: {
|
|
132659
|
-
date: "2022-04-
|
|
132660
|
-
cli: "0.14.
|
|
132697
|
+
date: "2022-04-18T21:18:01.762Z",
|
|
132698
|
+
cli: "0.14.21",
|
|
132661
132699
|
compat: "0.14"
|
|
132662
132700
|
},
|
|
132663
132701
|
pilets: {
|
|
@@ -254825,4 +254863,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
254825
254863
|
|
|
254826
254864
|
/******/ })()
|
|
254827
254865
|
;
|
|
254828
|
-
//# sourceMappingURL=index.
|
|
254866
|
+
//# sourceMappingURL=index.a3c9ff.js.map
|