sample-cross-fx 0.15.5-beta.5022 → 0.15.5-beta.5073
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.ba0af4.js → index.480509.js} +55 -15
- package/app/{index.ba0af4.js.map → index.480509.js.map} +1 -1
- package/app/index.d.ts +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
|
@@ -54279,8 +54279,25 @@ function makeUrl(href) {
|
|
|
54279
54279
|
return href;
|
|
54280
54280
|
}
|
|
54281
54281
|
|
|
54282
|
-
function createConverter(lazy, opts) {
|
|
54283
|
-
const
|
|
54282
|
+
function createConverter(lazy, opts, language) {
|
|
54283
|
+
const bootLoader = (0,_interop__WEBPACK_IMPORTED_MODULE_1__.createBootLoader)(_infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].url, _infra_codegen__WEBPACK_IMPORTED_MODULE_0__["default"].satellites);
|
|
54284
|
+
|
|
54285
|
+
const boot = opts => bootLoader(opts).then(res => {
|
|
54286
|
+
const [_, capabilities] = res;
|
|
54287
|
+
|
|
54288
|
+
if (language && capabilities.includes('language')) {
|
|
54289
|
+
if (typeof language.current === 'string') {
|
|
54290
|
+
(0,_interop__WEBPACK_IMPORTED_MODULE_1__.setLanguage)(language.current);
|
|
54291
|
+
}
|
|
54292
|
+
|
|
54293
|
+
if (typeof language.onChange === 'function') {
|
|
54294
|
+
language.onChange(_interop__WEBPACK_IMPORTED_MODULE_1__.setLanguage);
|
|
54295
|
+
}
|
|
54296
|
+
}
|
|
54297
|
+
|
|
54298
|
+
return res;
|
|
54299
|
+
});
|
|
54300
|
+
|
|
54284
54301
|
let loader = !lazy && boot(opts);
|
|
54285
54302
|
let listener = undefined;
|
|
54286
54303
|
|
|
@@ -54412,16 +54429,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54412
54429
|
/* harmony import */ var _dependencies__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dependencies */ "../../converters/piral-blazor/esm/dependencies.js");
|
|
54413
54430
|
|
|
54414
54431
|
|
|
54432
|
+
|
|
54433
|
+
function createDefaultHandler(context) {
|
|
54434
|
+
return inform => {
|
|
54435
|
+
context.on('select-language', ev => {
|
|
54436
|
+
inform(ev.currentLanguage);
|
|
54437
|
+
});
|
|
54438
|
+
};
|
|
54439
|
+
}
|
|
54415
54440
|
/**
|
|
54416
54441
|
* Creates new Pilet API extensions for integration of Blazor.
|
|
54417
54442
|
*/
|
|
54418
54443
|
|
|
54444
|
+
|
|
54419
54445
|
function createBlazorApi(config = {}) {
|
|
54420
|
-
const {
|
|
54421
|
-
lazy
|
|
54422
|
-
} = config;
|
|
54423
54446
|
return context => {
|
|
54424
|
-
const
|
|
54447
|
+
const {
|
|
54448
|
+
lazy,
|
|
54449
|
+
initialLanguage,
|
|
54450
|
+
onLanguageChange = createDefaultHandler(context)
|
|
54451
|
+
} = config;
|
|
54452
|
+
const convert = (0,_converter__WEBPACK_IMPORTED_MODULE_0__.createConverter)(lazy, config.options, {
|
|
54453
|
+
current: initialLanguage,
|
|
54454
|
+
onChange: onLanguageChange
|
|
54455
|
+
});
|
|
54425
54456
|
|
|
54426
54457
|
context.converters.blazor = ({
|
|
54427
54458
|
moduleName,
|
|
@@ -54434,8 +54465,8 @@ function createBlazorApi(config = {}) {
|
|
|
54434
54465
|
const loader = (0,_dependencies__WEBPACK_IMPORTED_MODULE_1__.createDependencyLoader)(convert, lazy);
|
|
54435
54466
|
let options;
|
|
54436
54467
|
return {
|
|
54437
|
-
defineBlazorReferences(references) {
|
|
54438
|
-
return loader.defineBlazorReferences(references, meta);
|
|
54468
|
+
defineBlazorReferences(references, satellites) {
|
|
54469
|
+
return loader.defineBlazorReferences(references, meta, satellites);
|
|
54439
54470
|
},
|
|
54440
54471
|
|
|
54441
54472
|
defineBlazorOptions(blazorOptions) {
|
|
@@ -54488,10 +54519,14 @@ function createDependencyLoader(convert, lazy = true) {
|
|
|
54488
54519
|
return dependency;
|
|
54489
54520
|
},
|
|
54490
54521
|
|
|
54491
|
-
defineBlazorReferences(references, meta = {}) {
|
|
54522
|
+
defineBlazorReferences(references, meta = {}, satellites = {}) {
|
|
54492
54523
|
const load = ([_, capabilities]) => (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__awaiter)(this, void 0, void 0, function* () {
|
|
54493
54524
|
if (capabilities.includes('load')) {
|
|
54494
54525
|
// new loading mechanism
|
|
54526
|
+
if (!capabilities.includes('language')) {
|
|
54527
|
+
satellites = undefined;
|
|
54528
|
+
}
|
|
54529
|
+
|
|
54495
54530
|
const dependencies = references.filter(m => m.endsWith('.dll'));
|
|
54496
54531
|
const dllUrl = dependencies.pop();
|
|
54497
54532
|
const piletName = dllUrl.substring(0, dllUrl.length - 4);
|
|
@@ -54504,6 +54539,7 @@ function createDependencyLoader(convert, lazy = true) {
|
|
|
54504
54539
|
config: JSON.stringify(meta.config || {}),
|
|
54505
54540
|
baseUrl: meta.basePath || dllUrl.substring(0, dllUrl.lastIndexOf('/')).replace('/_framework/', '/'),
|
|
54506
54541
|
dependencies,
|
|
54542
|
+
satellites,
|
|
54507
54543
|
dllUrl,
|
|
54508
54544
|
pdbUrl
|
|
54509
54545
|
});
|
|
@@ -54721,6 +54757,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
54721
54757
|
/* harmony export */ "loadResource": () => (/* binding */ loadResource),
|
|
54722
54758
|
/* harmony export */ "loadResourceWithSymbol": () => (/* binding */ loadResourceWithSymbol),
|
|
54723
54759
|
/* harmony export */ "reactivate": () => (/* binding */ reactivate),
|
|
54760
|
+
/* harmony export */ "setLanguage": () => (/* binding */ setLanguage),
|
|
54724
54761
|
/* harmony export */ "unloadBlazorPilet": () => (/* binding */ unloadBlazorPilet),
|
|
54725
54762
|
/* harmony export */ "unloadResource": () => (/* binding */ unloadResource),
|
|
54726
54763
|
/* harmony export */ "updateElement": () => (/* binding */ updateElement)
|
|
@@ -54868,6 +54905,9 @@ function deactivate(moduleName, referenceId) {
|
|
|
54868
54905
|
function callNotifyLocationChanged(url, replace) {
|
|
54869
54906
|
return window.DotNet.invokeMethodAsync(wasmLib, 'NotifyLocationChanged', url, replace);
|
|
54870
54907
|
}
|
|
54908
|
+
function setLanguage(language) {
|
|
54909
|
+
return window.DotNet.invokeMethodAsync(coreLib, 'SetLanguage', language);
|
|
54910
|
+
}
|
|
54871
54911
|
function getCapabilities() {
|
|
54872
54912
|
return window.DotNet.invokeMethodAsync(coreLib, 'GetCapabilities').catch(() => {
|
|
54873
54913
|
// Apparently an older version of Piral.Blazor, which does not support this
|
|
@@ -54917,12 +54957,12 @@ function initialize(scriptUrl, publicPath, opts = {}) {
|
|
|
54917
54957
|
document.body.appendChild(script);
|
|
54918
54958
|
});
|
|
54919
54959
|
}
|
|
54920
|
-
function createBootLoader(scriptUrl,
|
|
54960
|
+
function createBootLoader(scriptUrl, extraScriptUrls) {
|
|
54921
54961
|
const publicPath = computePath();
|
|
54922
54962
|
return opts => {
|
|
54923
54963
|
if (typeof window.$blazorLoader === 'undefined') {
|
|
54924
54964
|
// we load all satellite scripts before we initialize blazor
|
|
54925
|
-
window.$blazorLoader = Promise.all(
|
|
54965
|
+
window.$blazorLoader = Promise.all(extraScriptUrls.map(addScript)).then(() => initialize(scriptUrl, publicPath, opts));
|
|
54926
54966
|
}
|
|
54927
54967
|
|
|
54928
54968
|
return window.$blazorLoader;
|
|
@@ -63694,12 +63734,12 @@ function installPiralDebug(options) {
|
|
|
63694
63734
|
debug: debugApiVersion,
|
|
63695
63735
|
instance: {
|
|
63696
63736
|
name: "sample-cross-fx",
|
|
63697
|
-
version: "0.15.5-beta.
|
|
63737
|
+
version: "0.15.5-beta.5073",
|
|
63698
63738
|
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"
|
|
63699
63739
|
},
|
|
63700
63740
|
build: {
|
|
63701
|
-
date: "
|
|
63702
|
-
cli: "0.15.5-beta.
|
|
63741
|
+
date: "2023-01-20T00:07:50.618Z",
|
|
63742
|
+
cli: "0.15.5-beta.5073",
|
|
63703
63743
|
compat: "0.15"
|
|
63704
63744
|
}
|
|
63705
63745
|
};
|
|
@@ -216547,4 +216587,4 @@ root.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__.createElement(piral
|
|
|
216547
216587
|
|
|
216548
216588
|
/******/ })()
|
|
216549
216589
|
;
|
|
216550
|
-
//# sourceMappingURL=index.
|
|
216590
|
+
//# sourceMappingURL=index.480509.js.map
|