sample-cross-fx 0.14.16 → 0.14.18-beta.3923
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.ce240f.js → index.25d3f9.js} +242 -245
- package/app/{index.ce240f.js.map → index.25d3f9.js.map} +1 -1
- package/app/index.d.ts +6 -3
- 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
|
@@ -125178,29 +125178,27 @@ function createConverter(config = {}) {
|
|
|
125178
125178
|
(0,aurelia_pal_browser__WEBPACK_IMPORTED_MODULE_1__.initialize)();
|
|
125179
125179
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_2__.createExtension)(rootName);
|
|
125180
125180
|
|
|
125181
|
-
const convert = root => {
|
|
125182
|
-
|
|
125183
|
-
|
|
125184
|
-
|
|
125185
|
-
|
|
125186
|
-
|
|
125187
|
-
|
|
125188
|
-
|
|
125189
|
-
|
|
125190
|
-
|
|
125191
|
-
},
|
|
125181
|
+
const convert = root => ({
|
|
125182
|
+
mount(el, props, ctx, locals) {
|
|
125183
|
+
const aurelia = new aurelia_framework__WEBPACK_IMPORTED_MODULE_0__.Aurelia(new _DefaultLoader__WEBPACK_IMPORTED_MODULE_3__.DefaultLoader());
|
|
125184
|
+
aurelia.use.eventAggregator().history().defaultBindingLanguage().globalResources([Extension]).defaultResources();
|
|
125185
|
+
aurelia.container.registerInstance('props', props);
|
|
125186
|
+
aurelia.container.registerInstance('ctx', ctx);
|
|
125187
|
+
aurelia.container.registerInstance('piral', props.piral);
|
|
125188
|
+
aurelia.start().then(() => aurelia.setRoot(root, el));
|
|
125189
|
+
locals.aurelia = aurelia;
|
|
125190
|
+
},
|
|
125192
125191
|
|
|
125193
|
-
|
|
125194
|
-
|
|
125195
|
-
|
|
125196
|
-
|
|
125192
|
+
update(el, props, ctx, locals) {
|
|
125193
|
+
locals.aurelia.container.registerInstance('props', props);
|
|
125194
|
+
locals.aurelia.container.registerInstance('ctx', ctx);
|
|
125195
|
+
},
|
|
125197
125196
|
|
|
125198
|
-
|
|
125199
|
-
|
|
125200
|
-
|
|
125197
|
+
unmount(el, locals) {
|
|
125198
|
+
locals.aurelia = undefined;
|
|
125199
|
+
}
|
|
125201
125200
|
|
|
125202
|
-
|
|
125203
|
-
};
|
|
125201
|
+
});
|
|
125204
125202
|
|
|
125205
125203
|
convert.Extension = Extension;
|
|
125206
125204
|
return convert;
|
|
@@ -125362,48 +125360,44 @@ function createConverter(lazy) {
|
|
|
125362
125360
|
root.style.display = 'none';
|
|
125363
125361
|
root.id = 'blazor-root';
|
|
125364
125362
|
|
|
125365
|
-
const convert = (moduleName, dependency, args, options) => {
|
|
125366
|
-
|
|
125367
|
-
|
|
125368
|
-
|
|
125369
|
-
|
|
125370
|
-
|
|
125371
|
-
|
|
125372
|
-
|
|
125373
|
-
|
|
125374
|
-
|
|
125375
|
-
|
|
125376
|
-
|
|
125377
|
-
|
|
125378
|
-
|
|
125379
|
-
|
|
125380
|
-
|
|
125381
|
-
|
|
125382
|
-
project(node, el, options);
|
|
125383
|
-
state = 'mounted';
|
|
125384
|
-
referenceId = refId;
|
|
125385
|
-
}
|
|
125386
|
-
}).catch(err => console.error(err));
|
|
125387
|
-
dispose = (0,_events__WEBPACK_IMPORTED_MODULE_1__.attachEvents)(el, ev => data.piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? ctx.router.history.replace(ev.detail.to, ev.detail.store) : ctx.router.history.push(ev.detail.to, ev.detail.state));
|
|
125388
|
-
state = 'fresh';
|
|
125389
|
-
},
|
|
125363
|
+
const convert = (moduleName, dependency, args, options) => ({
|
|
125364
|
+
mount(el, data, ctx, locals) {
|
|
125365
|
+
const props = Object.assign(Object.assign({}, args), data);
|
|
125366
|
+
el.setAttribute('data-blazor-pilet-root', 'true');
|
|
125367
|
+
(0,_events__WEBPACK_IMPORTED_MODULE_1__.addGlobalEventListeners)(el);
|
|
125368
|
+
locals.state = 'fresh';
|
|
125369
|
+
locals.dispose = (0,_events__WEBPACK_IMPORTED_MODULE_1__.attachEvents)(el, ev => data.piral.renderHtmlExtension(ev.detail.target, ev.detail.props), ev => ev.detail.replace ? ctx.router.history.replace(ev.detail.to, ev.detail.store) : ctx.router.history.push(ev.detail.to, ev.detail.state));
|
|
125370
|
+
(loader || (loader = boot())).then(dependency).then(() => (0,_interop__WEBPACK_IMPORTED_MODULE_0__.activate)(moduleName, props)).then(refId => {
|
|
125371
|
+
if (locals.state === 'fresh') {
|
|
125372
|
+
locals.id = refId;
|
|
125373
|
+
locals.node = root.querySelector(`#${locals.id} > div`);
|
|
125374
|
+
project(locals.node, el, options);
|
|
125375
|
+
locals.state = 'mounted';
|
|
125376
|
+
locals.referenceId = refId;
|
|
125377
|
+
}
|
|
125378
|
+
}).catch(err => console.error(err));
|
|
125379
|
+
},
|
|
125390
125380
|
|
|
125391
|
-
|
|
125392
|
-
|
|
125393
|
-
|
|
125394
|
-
|
|
125381
|
+
update(el, data, ctx, locals) {
|
|
125382
|
+
const props = Object.assign(Object.assign({}, args), data);
|
|
125383
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_0__.reactivate)(moduleName, locals.referenceId, props);
|
|
125384
|
+
},
|
|
125395
125385
|
|
|
125396
|
-
|
|
125397
|
-
|
|
125398
|
-
|
|
125399
|
-
|
|
125386
|
+
unmount(el, locals) {
|
|
125387
|
+
(0,_events__WEBPACK_IMPORTED_MODULE_1__.removeGlobalEventListeners)(el);
|
|
125388
|
+
el.removeAttribute('data-blazor-pilet-root');
|
|
125389
|
+
locals.dispose();
|
|
125400
125390
|
|
|
125401
|
-
|
|
125402
|
-
|
|
125391
|
+
if (locals.state === 'mounted') {
|
|
125392
|
+
root.querySelector(`#${locals.id}`).appendChild(locals.node);
|
|
125393
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_0__.deactivate)(moduleName, locals.referenceId);
|
|
125403
125394
|
}
|
|
125404
125395
|
|
|
125405
|
-
|
|
125406
|
-
|
|
125396
|
+
el.innerHTML = '';
|
|
125397
|
+
locals.state = 'removed';
|
|
125398
|
+
}
|
|
125399
|
+
|
|
125400
|
+
});
|
|
125407
125401
|
|
|
125408
125402
|
convert.loader = loader;
|
|
125409
125403
|
return convert;
|
|
@@ -125659,6 +125653,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
125659
125653
|
__webpack_require__.r(__webpack_exports__);
|
|
125660
125654
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
125661
125655
|
/* harmony export */ "activate": () => (/* binding */ activate),
|
|
125656
|
+
/* harmony export */ "reactivate": () => (/* binding */ reactivate),
|
|
125662
125657
|
/* harmony export */ "deactivate": () => (/* binding */ deactivate),
|
|
125663
125658
|
/* harmony export */ "loadResource": () => (/* binding */ loadResource),
|
|
125664
125659
|
/* harmony export */ "loadResourceWithSymbol": () => (/* binding */ loadResourceWithSymbol),
|
|
@@ -125705,6 +125700,11 @@ function computePath() {
|
|
|
125705
125700
|
function activate(moduleName, props) {
|
|
125706
125701
|
return window.DotNet.invokeMethodAsync(coreLib, 'Activate', moduleName, props);
|
|
125707
125702
|
}
|
|
125703
|
+
function reactivate(moduleName, referenceId, props) {
|
|
125704
|
+
return window.DotNet.invokeMethodAsync(coreLib, 'Reactivate', moduleName, referenceId, props).catch(() => {// Apparently an older version of Piral.Blazor, which does not support this
|
|
125705
|
+
// discard this error silently (in the future we may print warnings here)
|
|
125706
|
+
});
|
|
125707
|
+
}
|
|
125708
125708
|
function deactivate(moduleName, referenceId) {
|
|
125709
125709
|
return window.DotNet.invokeMethodAsync(coreLib, 'Deactivate', moduleName, referenceId);
|
|
125710
125710
|
}
|
|
@@ -125808,22 +125808,20 @@ function createConverter(config = {}) {
|
|
|
125808
125808
|
} = config;
|
|
125809
125809
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(selector);
|
|
125810
125810
|
|
|
125811
|
-
const convert = (main, captured) => {
|
|
125812
|
-
|
|
125813
|
-
|
|
125814
|
-
|
|
125815
|
-
|
|
125816
|
-
|
|
125817
|
-
|
|
125818
|
-
|
|
125819
|
-
},
|
|
125811
|
+
const convert = (main, captured) => ({
|
|
125812
|
+
mount(el, props, ctx) {
|
|
125813
|
+
const node = el.appendChild(document.createElement('div'));
|
|
125814
|
+
main.init({
|
|
125815
|
+
node,
|
|
125816
|
+
flags: Object.assign(Object.assign(Object.assign({}, captured), ctx), props)
|
|
125817
|
+
});
|
|
125818
|
+
},
|
|
125820
125819
|
|
|
125821
|
-
|
|
125822
|
-
|
|
125823
|
-
|
|
125820
|
+
unmount(el) {
|
|
125821
|
+
el.innerHTML = '';
|
|
125822
|
+
}
|
|
125824
125823
|
|
|
125825
|
-
|
|
125826
|
-
};
|
|
125824
|
+
});
|
|
125827
125825
|
|
|
125828
125826
|
convert.Extension = Extension;
|
|
125829
125827
|
return convert;
|
|
@@ -125938,18 +125936,16 @@ function createConverter(config = {}) {
|
|
|
125938
125936
|
} = config;
|
|
125939
125937
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
125940
125938
|
|
|
125941
|
-
const convert = (root, state, actions) => {
|
|
125942
|
-
|
|
125943
|
-
|
|
125944
|
-
|
|
125945
|
-
},
|
|
125939
|
+
const convert = (root, state, actions) => ({
|
|
125940
|
+
mount(el, props, ctx) {
|
|
125941
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountHyperapp)(el, root, props, ctx, state, actions);
|
|
125942
|
+
},
|
|
125946
125943
|
|
|
125947
|
-
|
|
125948
|
-
|
|
125949
|
-
|
|
125944
|
+
unmount(el) {
|
|
125945
|
+
el.innerHTML = '';
|
|
125946
|
+
}
|
|
125950
125947
|
|
|
125951
|
-
|
|
125952
|
-
};
|
|
125948
|
+
});
|
|
125953
125949
|
|
|
125954
125950
|
convert.Extension = Extension;
|
|
125955
125951
|
return convert;
|
|
@@ -126095,22 +126091,20 @@ function createConverter(config = {}) {
|
|
|
126095
126091
|
} = config;
|
|
126096
126092
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
126097
126093
|
|
|
126098
|
-
const convert = root => {
|
|
126099
|
-
|
|
126100
|
-
|
|
126101
|
-
|
|
126102
|
-
},
|
|
126094
|
+
const convert = root => ({
|
|
126095
|
+
mount(el, props, ctx) {
|
|
126096
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountInferno)(el, root, props, ctx);
|
|
126097
|
+
},
|
|
126103
126098
|
|
|
126104
|
-
|
|
126105
|
-
|
|
126106
|
-
|
|
126099
|
+
update(el, props, ctx) {
|
|
126100
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountInferno)(el, root, props, ctx);
|
|
126101
|
+
},
|
|
126107
126102
|
|
|
126108
|
-
|
|
126109
|
-
|
|
126110
|
-
|
|
126103
|
+
unmount(el) {
|
|
126104
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.unmountInferno)(el);
|
|
126105
|
+
}
|
|
126111
126106
|
|
|
126112
|
-
|
|
126113
|
-
};
|
|
126107
|
+
});
|
|
126114
126108
|
|
|
126115
126109
|
convert.Extension = Extension;
|
|
126116
126110
|
return convert;
|
|
@@ -126327,36 +126321,34 @@ function createConverter(config = {}) {
|
|
|
126327
126321
|
} = config;
|
|
126328
126322
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(selector);
|
|
126329
126323
|
|
|
126330
|
-
const convert = elementName => {
|
|
126331
|
-
|
|
126332
|
-
|
|
126333
|
-
|
|
126334
|
-
|
|
126335
|
-
|
|
126336
|
-
|
|
126337
|
-
|
|
126338
|
-
|
|
126339
|
-
|
|
126340
|
-
|
|
126341
|
-
|
|
126342
|
-
|
|
126343
|
-
},
|
|
126344
|
-
|
|
126345
|
-
update(parent, data, ctx) {
|
|
126346
|
-
const el = parent.querySelector(elementName);
|
|
126324
|
+
const convert = elementName => ({
|
|
126325
|
+
mount(parent, data, ctx) {
|
|
126326
|
+
const {
|
|
126327
|
+
piral
|
|
126328
|
+
} = data;
|
|
126329
|
+
const el = parent.appendChild(document.createElement(elementName));
|
|
126330
|
+
el.setAttribute('props', JSON.stringify(data));
|
|
126331
|
+
el.setAttribute('ctx', JSON.stringify(ctx));
|
|
126332
|
+
el.shadowRoot.addEventListener('render-html', ev => {
|
|
126333
|
+
ev.stopPropagation();
|
|
126334
|
+
piral.renderHtmlExtension(ev.detail.target, ev.detail.props);
|
|
126335
|
+
}, false);
|
|
126336
|
+
},
|
|
126347
126337
|
|
|
126348
|
-
|
|
126349
|
-
|
|
126350
|
-
el.setAttribute('ctx', JSON.stringify(ctx));
|
|
126351
|
-
}
|
|
126352
|
-
},
|
|
126338
|
+
update(parent, data, ctx) {
|
|
126339
|
+
const el = parent.querySelector(elementName);
|
|
126353
126340
|
|
|
126354
|
-
|
|
126355
|
-
el.
|
|
126341
|
+
if (el) {
|
|
126342
|
+
el.setAttribute('props', JSON.stringify(data));
|
|
126343
|
+
el.setAttribute('ctx', JSON.stringify(ctx));
|
|
126356
126344
|
}
|
|
126345
|
+
},
|
|
126357
126346
|
|
|
126358
|
-
|
|
126359
|
-
|
|
126347
|
+
unmount(el) {
|
|
126348
|
+
el.innerHTML = '';
|
|
126349
|
+
}
|
|
126350
|
+
|
|
126351
|
+
});
|
|
126360
126352
|
|
|
126361
126353
|
convert.Extension = Extension;
|
|
126362
126354
|
return convert;
|
|
@@ -126495,27 +126487,25 @@ function createConverter(config = {}) {
|
|
|
126495
126487
|
} = config;
|
|
126496
126488
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_1__.createExtension)(rootName);
|
|
126497
126489
|
|
|
126498
|
-
const convert = (component, captured) => {
|
|
126499
|
-
|
|
126500
|
-
mount(el,
|
|
126501
|
-
mithril__WEBPACK_IMPORTED_MODULE_0__.
|
|
126502
|
-
|
|
126503
|
-
|
|
126504
|
-
},
|
|
126490
|
+
const convert = (component, captured) => ({
|
|
126491
|
+
mount(el, props, ctx) {
|
|
126492
|
+
mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, {
|
|
126493
|
+
view: () => mithril__WEBPACK_IMPORTED_MODULE_0__.m(component, Object.assign(Object.assign(Object.assign({}, captured), ctx), props))
|
|
126494
|
+
});
|
|
126495
|
+
},
|
|
126505
126496
|
|
|
126506
|
-
|
|
126507
|
-
|
|
126508
|
-
|
|
126509
|
-
|
|
126510
|
-
|
|
126497
|
+
update(el, props, ctx) {
|
|
126498
|
+
mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, {
|
|
126499
|
+
view: () => mithril__WEBPACK_IMPORTED_MODULE_0__.m(component, Object.assign(Object.assign(Object.assign({}, captured), ctx), props))
|
|
126500
|
+
});
|
|
126501
|
+
},
|
|
126511
126502
|
|
|
126512
|
-
|
|
126513
|
-
|
|
126514
|
-
|
|
126515
|
-
|
|
126503
|
+
unmount(el) {
|
|
126504
|
+
// tslint:disable-next-line:no-null-keyword
|
|
126505
|
+
mithril__WEBPACK_IMPORTED_MODULE_0__.mount(el, null);
|
|
126506
|
+
}
|
|
126516
126507
|
|
|
126517
|
-
|
|
126518
|
-
};
|
|
126508
|
+
});
|
|
126519
126509
|
|
|
126520
126510
|
convert.Extension = Extension;
|
|
126521
126511
|
return convert;
|
|
@@ -126985,17 +126975,20 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
126985
126975
|
function createConverter(_ = {}) {
|
|
126986
126976
|
const convert = component => {
|
|
126987
126977
|
const bootstrapped = (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.prepareBootstrap)(component);
|
|
126988
|
-
let mounted = Promise.resolve();
|
|
126989
|
-
let active = true;
|
|
126990
126978
|
return {
|
|
126991
|
-
mount(el, props, ctx) {
|
|
126992
|
-
active = true;
|
|
126993
|
-
|
|
126979
|
+
mount(el, props, ctx, locals) {
|
|
126980
|
+
locals.active = true;
|
|
126981
|
+
|
|
126982
|
+
if (!locals.queued) {
|
|
126983
|
+
locals.queued = Promise.resolve();
|
|
126984
|
+
}
|
|
126985
|
+
|
|
126986
|
+
locals.queued = locals.queued.then(() => (0,_queue__WEBPACK_IMPORTED_MODULE_1__.enqueue)(() => locals.active && (0,_bootstrap__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(bootstrapped, el, props, ctx)));
|
|
126994
126987
|
},
|
|
126995
126988
|
|
|
126996
|
-
unmount() {
|
|
126997
|
-
active = false;
|
|
126998
|
-
|
|
126989
|
+
unmount(el, locals) {
|
|
126990
|
+
locals.active = false;
|
|
126991
|
+
locals.queued = locals.queued.then(dispose => dispose && dispose());
|
|
126999
126992
|
}
|
|
127000
126993
|
|
|
127001
126994
|
};
|
|
@@ -127467,25 +127460,22 @@ function createConverter(config = {}) {
|
|
|
127467
127460
|
} = config;
|
|
127468
127461
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_1__.createExtension)(rootName);
|
|
127469
127462
|
|
|
127470
|
-
const convert = (name, root) => {
|
|
127471
|
-
|
|
127472
|
-
|
|
127473
|
-
|
|
127474
|
-
|
|
127475
|
-
|
|
127476
|
-
|
|
127477
|
-
|
|
127478
|
-
injector = (0,angular__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(el, [root.name]);
|
|
127479
|
-
},
|
|
127463
|
+
const convert = (name, root) => ({
|
|
127464
|
+
mount(el, props, ctx, locals) {
|
|
127465
|
+
el.appendChild(document.createElement(name));
|
|
127466
|
+
root.value('props', props);
|
|
127467
|
+
root.value('piral', props.piral);
|
|
127468
|
+
root.value('ctx', ctx);
|
|
127469
|
+
locals.injector = (0,angular__WEBPACK_IMPORTED_MODULE_0__.bootstrap)(el, [root.name]);
|
|
127470
|
+
},
|
|
127480
127471
|
|
|
127481
|
-
|
|
127482
|
-
|
|
127483
|
-
|
|
127484
|
-
|
|
127485
|
-
|
|
127472
|
+
unmount(el, locals) {
|
|
127473
|
+
const rootScope = locals.injector.get('$rootScope');
|
|
127474
|
+
rootScope.$destroy();
|
|
127475
|
+
locals.injector = undefined;
|
|
127476
|
+
}
|
|
127486
127477
|
|
|
127487
|
-
|
|
127488
|
-
};
|
|
127478
|
+
});
|
|
127489
127479
|
|
|
127490
127480
|
convert.Extension = Extension;
|
|
127491
127481
|
return convert;
|
|
@@ -127615,22 +127605,20 @@ function createConverter(config = {}) {
|
|
|
127615
127605
|
} = config;
|
|
127616
127606
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
127617
127607
|
|
|
127618
|
-
const convert = root => {
|
|
127619
|
-
|
|
127620
|
-
|
|
127621
|
-
|
|
127622
|
-
},
|
|
127608
|
+
const convert = root => ({
|
|
127609
|
+
mount(el, props, ctx) {
|
|
127610
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountPreact)(el, root, props, ctx);
|
|
127611
|
+
},
|
|
127623
127612
|
|
|
127624
|
-
|
|
127625
|
-
|
|
127626
|
-
|
|
127613
|
+
update(el, props, ctx) {
|
|
127614
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountPreact)(el, root, props, ctx);
|
|
127615
|
+
},
|
|
127627
127616
|
|
|
127628
|
-
|
|
127629
|
-
|
|
127630
|
-
|
|
127617
|
+
unmount(el) {
|
|
127618
|
+
(0,_mount__WEBPACK_IMPORTED_MODULE_1__.unmountPreact)(el);
|
|
127619
|
+
}
|
|
127631
127620
|
|
|
127632
|
-
|
|
127633
|
-
};
|
|
127621
|
+
});
|
|
127634
127622
|
|
|
127635
127623
|
convert.Extension = Extension;
|
|
127636
127624
|
return convert;
|
|
@@ -127846,16 +127834,15 @@ function createConverter(config = {}) {
|
|
|
127846
127834
|
|
|
127847
127835
|
const convert = (component, captured) => {
|
|
127848
127836
|
const mountApp = riot__WEBPACK_IMPORTED_MODULE_0__.component(component);
|
|
127849
|
-
let app = undefined;
|
|
127850
127837
|
return {
|
|
127851
|
-
mount(el, props, ctx) {
|
|
127852
|
-
app = mountApp(el, Object.assign(Object.assign(Object.assign({}, captured), ctx), props));
|
|
127838
|
+
mount(el, props, ctx, locals) {
|
|
127839
|
+
locals.app = mountApp(el, Object.assign(Object.assign(Object.assign({}, captured), ctx), props));
|
|
127853
127840
|
},
|
|
127854
127841
|
|
|
127855
|
-
unmount(el) {
|
|
127856
|
-
app.unmount(true);
|
|
127842
|
+
unmount(el, locals) {
|
|
127843
|
+
locals.app.unmount(true);
|
|
127857
127844
|
el.innerHTML = '';
|
|
127858
|
-
app = undefined;
|
|
127845
|
+
locals.app = undefined;
|
|
127859
127846
|
}
|
|
127860
127847
|
|
|
127861
127848
|
};
|
|
@@ -128001,21 +127988,19 @@ function createConverter(config = {}) {
|
|
|
128001
127988
|
} = config;
|
|
128002
127989
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName);
|
|
128003
127990
|
|
|
128004
|
-
const convert = root => {
|
|
128005
|
-
|
|
128006
|
-
|
|
128007
|
-
|
|
128008
|
-
|
|
128009
|
-
|
|
128010
|
-
},
|
|
127991
|
+
const convert = root => ({
|
|
127992
|
+
mount(el, props, context) {
|
|
127993
|
+
(0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => (0,solid_js_dom__WEBPACK_IMPORTED_MODULE_2__.createComponent)(root, Object.assign({
|
|
127994
|
+
context
|
|
127995
|
+
}, props)), el);
|
|
127996
|
+
},
|
|
128011
127997
|
|
|
128012
|
-
|
|
128013
|
-
|
|
128014
|
-
|
|
128015
|
-
|
|
127998
|
+
unmount(el) {
|
|
127999
|
+
(0,solid_js_dom__WEBPACK_IMPORTED_MODULE_1__.render)(() => undefined, el);
|
|
128000
|
+
el.innerHTML = '';
|
|
128001
|
+
}
|
|
128016
128002
|
|
|
128017
|
-
|
|
128018
|
-
};
|
|
128003
|
+
});
|
|
128019
128004
|
|
|
128020
128005
|
convert.Extension = Extension;
|
|
128021
128006
|
return convert;
|
|
@@ -128128,30 +128113,27 @@ function createConverter(config = {}) {
|
|
|
128128
128113
|
} = config;
|
|
128129
128114
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(selector);
|
|
128130
128115
|
|
|
128131
|
-
const convert = (Component, captured) => {
|
|
128132
|
-
|
|
128133
|
-
|
|
128134
|
-
|
|
128135
|
-
|
|
128136
|
-
|
|
128137
|
-
|
|
128138
|
-
});
|
|
128139
|
-
},
|
|
128116
|
+
const convert = (Component, captured) => ({
|
|
128117
|
+
mount(parent, data, ctx, locals) {
|
|
128118
|
+
locals.instance = new Component({
|
|
128119
|
+
target: parent,
|
|
128120
|
+
props: Object.assign(Object.assign(Object.assign({}, captured), ctx), data)
|
|
128121
|
+
});
|
|
128122
|
+
},
|
|
128140
128123
|
|
|
128141
|
-
|
|
128142
|
-
|
|
128143
|
-
|
|
128144
|
-
|
|
128145
|
-
|
|
128124
|
+
update(el, data, ctx, locals) {
|
|
128125
|
+
Object.keys(data).forEach(key => {
|
|
128126
|
+
locals.instance[key] = data[key];
|
|
128127
|
+
});
|
|
128128
|
+
},
|
|
128146
128129
|
|
|
128147
|
-
|
|
128148
|
-
|
|
128149
|
-
|
|
128150
|
-
|
|
128151
|
-
|
|
128130
|
+
unmount(el, locals) {
|
|
128131
|
+
locals.instance.$destroy();
|
|
128132
|
+
locals.instance = undefined;
|
|
128133
|
+
el.innerHTML = '';
|
|
128134
|
+
}
|
|
128152
128135
|
|
|
128153
|
-
|
|
128154
|
-
};
|
|
128136
|
+
});
|
|
128155
128137
|
|
|
128156
128138
|
convert.Extension = Extension;
|
|
128157
128139
|
return convert;
|
|
@@ -128267,28 +128249,25 @@ function createConverter(config = {}) {
|
|
|
128267
128249
|
} = config;
|
|
128268
128250
|
const Extension = (0,_extension__WEBPACK_IMPORTED_MODULE_0__.createExtension)(rootName, selector);
|
|
128269
128251
|
|
|
128270
|
-
const convert = (root, captured) => {
|
|
128271
|
-
|
|
128272
|
-
|
|
128273
|
-
|
|
128274
|
-
|
|
128275
|
-
instance = (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountVue)(el, root, data, ctx, captured);
|
|
128276
|
-
},
|
|
128277
|
-
|
|
128278
|
-
update(_, data) {
|
|
128279
|
-
for (const prop in data) {
|
|
128280
|
-
instance[prop] = data[prop];
|
|
128281
|
-
}
|
|
128282
|
-
},
|
|
128252
|
+
const convert = (root, captured) => ({
|
|
128253
|
+
mount(parent, data, ctx, locals) {
|
|
128254
|
+
const el = parent.appendChild(document.createElement(rootName));
|
|
128255
|
+
locals.instance = (0,_mount__WEBPACK_IMPORTED_MODULE_1__.mountVue)(el, root, data, ctx, captured);
|
|
128256
|
+
},
|
|
128283
128257
|
|
|
128284
|
-
|
|
128285
|
-
|
|
128286
|
-
|
|
128287
|
-
instance = undefined;
|
|
128258
|
+
update(parent, data, ctx, locals) {
|
|
128259
|
+
for (const prop in data) {
|
|
128260
|
+
locals.instance[prop] = data[prop];
|
|
128288
128261
|
}
|
|
128262
|
+
},
|
|
128289
128263
|
|
|
128290
|
-
|
|
128291
|
-
|
|
128264
|
+
unmount(parent, locals) {
|
|
128265
|
+
locals.instance.$destroy();
|
|
128266
|
+
parent.innerHTML = '';
|
|
128267
|
+
locals.instance = undefined;
|
|
128268
|
+
}
|
|
128269
|
+
|
|
128270
|
+
});
|
|
128292
128271
|
|
|
128293
128272
|
convert.Extension = Extension;
|
|
128294
128273
|
return convert;
|
|
@@ -128657,8 +128636,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
128657
128636
|
/* harmony export */ "includeDependency": () => (/* binding */ includeDependency),
|
|
128658
128637
|
/* harmony export */ "includeBundle": () => (/* binding */ includeBundle)
|
|
128659
128638
|
/* harmony export */ });
|
|
128639
|
+
function tryResolve(name, parent) {
|
|
128640
|
+
try {
|
|
128641
|
+
return System.resolve(name, parent);
|
|
128642
|
+
} catch (_a) {
|
|
128643
|
+
// just ignore - will be handled differently later.
|
|
128644
|
+
return undefined;
|
|
128645
|
+
}
|
|
128646
|
+
}
|
|
128647
|
+
|
|
128660
128648
|
function requireModule(name, parent) {
|
|
128661
|
-
const moduleId =
|
|
128649
|
+
const moduleId = tryResolve(name, parent);
|
|
128662
128650
|
const dependency = moduleId && System.get(moduleId);
|
|
128663
128651
|
|
|
128664
128652
|
if (!dependency) {
|
|
@@ -129346,7 +129334,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
129346
129334
|
|
|
129347
129335
|
function isPrimitiveExport(content) {
|
|
129348
129336
|
const type = typeof content;
|
|
129349
|
-
return type === '
|
|
129337
|
+
return type === 'number' || type === 'boolean' || type === 'symbol' || type === 'string' || type === 'bigint' || Array.isArray(content);
|
|
129350
129338
|
}
|
|
129351
129339
|
|
|
129352
129340
|
const systemRegister = System.constructor.prototype.register;
|
|
@@ -129360,6 +129348,14 @@ System.constructor.prototype.register = function (...args) {
|
|
|
129360
129348
|
|
|
129361
129349
|
if (content instanceof Promise) {
|
|
129362
129350
|
return content.then(exp);
|
|
129351
|
+
} else if (typeof content === 'function') {
|
|
129352
|
+
_export('__esModule', true);
|
|
129353
|
+
|
|
129354
|
+
Object.keys(content).forEach(prop => {
|
|
129355
|
+
_export(prop, content[prop]);
|
|
129356
|
+
});
|
|
129357
|
+
|
|
129358
|
+
_export('default', content);
|
|
129363
129359
|
} else if (isPrimitiveExport(content)) {
|
|
129364
129360
|
_export('__esModule', true);
|
|
129365
129361
|
|
|
@@ -130193,6 +130189,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
130193
130189
|
class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Component {
|
|
130194
130190
|
constructor() {
|
|
130195
130191
|
super(...arguments);
|
|
130192
|
+
this.local = {};
|
|
130196
130193
|
|
|
130197
130194
|
this.handler = ev => {
|
|
130198
130195
|
const {
|
|
@@ -130219,7 +130216,7 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
|
|
|
130219
130216
|
} = $component;
|
|
130220
130217
|
|
|
130221
130218
|
if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(mount)) {
|
|
130222
|
-
mount(node, innerProps, $context);
|
|
130219
|
+
mount(node, innerProps, $context, this.local);
|
|
130223
130220
|
node.addEventListener('render-html', this.handler, false);
|
|
130224
130221
|
}
|
|
130225
130222
|
|
|
@@ -130244,7 +130241,7 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
|
|
|
130244
130241
|
previous && this.componentWillUnmount();
|
|
130245
130242
|
current && this.componentDidMount();
|
|
130246
130243
|
} else if ((0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(update)) {
|
|
130247
|
-
update(current, innerProps, $context);
|
|
130244
|
+
update(current, innerProps, $context, this.local);
|
|
130248
130245
|
}
|
|
130249
130246
|
}
|
|
130250
130247
|
|
|
@@ -130258,7 +130255,7 @@ class ForeignComponentContainer extends react__WEBPACK_IMPORTED_MODULE_0__.Compo
|
|
|
130258
130255
|
} = $component;
|
|
130259
130256
|
|
|
130260
130257
|
if (node && (0,piral_base__WEBPACK_IMPORTED_MODULE_1__.isfunc)(unmount)) {
|
|
130261
|
-
unmount(node);
|
|
130258
|
+
unmount(node, this.local);
|
|
130262
130259
|
node.removeEventListener('render-html', this.handler, false);
|
|
130263
130260
|
}
|
|
130264
130261
|
|
|
@@ -131101,7 +131098,7 @@ function createInstance(config = {}) {
|
|
|
131101
131098
|
const createApi = apiFactory(context, usedPlugins);
|
|
131102
131099
|
const root = createApi({
|
|
131103
131100
|
name: 'root',
|
|
131104
|
-
version: "0.14.
|
|
131101
|
+
version: "0.14.18-beta.3923" || 0,
|
|
131105
131102
|
spec: ''
|
|
131106
131103
|
});
|
|
131107
131104
|
const options = (0,_helpers__WEBPACK_IMPORTED_MODULE_6__.createPiletOptions)({
|
|
@@ -133576,12 +133573,12 @@ function installPiralDebug(options) {
|
|
|
133576
133573
|
debug: debugApiVersion,
|
|
133577
133574
|
instance: {
|
|
133578
133575
|
name: "sample-cross-fx",
|
|
133579
|
-
version: "0.14.
|
|
133576
|
+
version: "0.14.18-beta.3923",
|
|
133580
133577
|
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,preact,riot,rxjs,vue,zone.js,react,react-dom,react-router,react-router-dom,history,tslib,path-to-regexp,@libre/atom,@dbeining/react-atom"
|
|
133581
133578
|
},
|
|
133582
133579
|
build: {
|
|
133583
|
-
date: "2022-03-
|
|
133584
|
-
cli: "0.14.
|
|
133580
|
+
date: "2022-03-15T00:46:49.543Z",
|
|
133581
|
+
cli: "0.14.17",
|
|
133585
133582
|
compat: "0.14"
|
|
133586
133583
|
},
|
|
133587
133584
|
pilets: {
|
|
@@ -255749,4 +255746,4 @@ const app = React.createElement(piral_core_1.Piral, {
|
|
|
255749
255746
|
|
|
255750
255747
|
/******/ })()
|
|
255751
255748
|
;
|
|
255752
|
-
//# sourceMappingURL=index.
|
|
255749
|
+
//# sourceMappingURL=index.25d3f9.js.map
|