sample-cross-fx 0.14.21 → 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.
|
@@ -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,
|
|
@@ -126029,14 +126038,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
126029
126038
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
126030
126039
|
/* harmony export */ "createConverter": () => (/* binding */ createConverter)
|
|
126031
126040
|
/* harmony export */ });
|
|
126032
|
-
/* harmony import */ var
|
|
126033
|
-
/* harmony import */ var
|
|
126034
|
-
/* 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");
|
|
126035
126045
|
/* harmony import */ var _bootstrap__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./bootstrap */ "../../converters/piral-ng/esm/bootstrap.js");
|
|
126036
126046
|
|
|
126037
126047
|
|
|
126038
126048
|
|
|
126039
126049
|
|
|
126050
|
+
|
|
126040
126051
|
function createConverter(_ = {}) {
|
|
126041
126052
|
const registry = new Map();
|
|
126042
126053
|
|
|
@@ -126048,11 +126059,19 @@ function createConverter(_ = {}) {
|
|
|
126048
126059
|
registry.set(component, (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.prepareBootstrap)(component, props.piral));
|
|
126049
126060
|
}
|
|
126050
126061
|
|
|
126062
|
+
if (!locals.props) {
|
|
126063
|
+
locals.props = new rxjs__WEBPACK_IMPORTED_MODULE_1__.BehaviorSubject(props);
|
|
126064
|
+
}
|
|
126065
|
+
|
|
126051
126066
|
if (!locals.queued) {
|
|
126052
126067
|
locals.queued = Promise.resolve();
|
|
126053
126068
|
}
|
|
126054
126069
|
|
|
126055
|
-
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);
|
|
126056
126075
|
},
|
|
126057
126076
|
|
|
126058
126077
|
unmount(el, locals) {
|
|
@@ -126062,8 +126081,8 @@ function createConverter(_ = {}) {
|
|
|
126062
126081
|
|
|
126063
126082
|
});
|
|
126064
126083
|
|
|
126065
|
-
convert.defineModule =
|
|
126066
|
-
convert.Extension =
|
|
126084
|
+
convert.defineModule = _module__WEBPACK_IMPORTED_MODULE_3__.defineModule;
|
|
126085
|
+
convert.Extension = _NgExtension__WEBPACK_IMPORTED_MODULE_4__.NgExtension;
|
|
126067
126086
|
return convert;
|
|
126068
126087
|
}
|
|
126069
126088
|
|
|
@@ -126173,7 +126192,7 @@ function instantiateModule(moduleDef, piral) {
|
|
|
126173
126192
|
};
|
|
126174
126193
|
const providers = [_RoutingService__WEBPACK_IMPORTED_MODULE_3__.RoutingService, {
|
|
126175
126194
|
provide: 'Props',
|
|
126176
|
-
useFactory: () => props.current,
|
|
126195
|
+
useFactory: () => props.current.value,
|
|
126177
126196
|
deps: []
|
|
126178
126197
|
}, {
|
|
126179
126198
|
provide: 'piral',
|
|
@@ -126193,11 +126212,25 @@ function instantiateModule(moduleDef, piral) {
|
|
|
126193
126212
|
}
|
|
126194
126213
|
|
|
126195
126214
|
attach(component, node, $props) {
|
|
126215
|
+
var _a, _b, _c;
|
|
126216
|
+
|
|
126196
126217
|
const factory = this.resolver.resolveComponentFactory(component);
|
|
126197
126218
|
props.current = $props;
|
|
126198
126219
|
|
|
126199
126220
|
if (factory) {
|
|
126200
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
|
+
|
|
126201
126234
|
this.refs.push([component, node, ref]);
|
|
126202
126235
|
}
|
|
126203
126236
|
}
|
|
@@ -130184,7 +130217,7 @@ function createInstance(config = {}) {
|
|
|
130184
130217
|
const createApi = apiFactory(context, usedPlugins);
|
|
130185
130218
|
const root = createApi({
|
|
130186
130219
|
name: 'root',
|
|
130187
|
-
version: "0.14.
|
|
130220
|
+
version: "0.14.22-beta.4103" || 0,
|
|
130188
130221
|
spec: ''
|
|
130189
130222
|
});
|
|
130190
130223
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -132657,11 +132690,11 @@ function installPiralDebug(options) {
|
|
|
132657
132690
|
debug: debugApiVersion,
|
|
132658
132691
|
instance: {
|
|
132659
132692
|
name: "sample-cross-fx",
|
|
132660
|
-
version: "0.14.
|
|
132693
|
+
version: "0.14.22-beta.4103",
|
|
132661
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"
|
|
132662
132695
|
},
|
|
132663
132696
|
build: {
|
|
132664
|
-
date: "2022-04-
|
|
132697
|
+
date: "2022-04-18T21:18:01.762Z",
|
|
132665
132698
|
cli: "0.14.21",
|
|
132666
132699
|
compat: "0.14"
|
|
132667
132700
|
},
|
|
@@ -254830,4 +254863,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
254830
254863
|
|
|
254831
254864
|
/******/ })()
|
|
254832
254865
|
;
|
|
254833
|
-
//# sourceMappingURL=index.
|
|
254866
|
+
//# sourceMappingURL=index.a3c9ff.js.map
|