peryl 1.5.13 → 1.5.15
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/demo/hsml-app-form_demo.ts +2 -0
- package/dist/browser-esmodule/hsml-app.js +8 -8
- package/dist/browser-esmodule/hsml-app.js.map +1 -1
- package/dist/browser-esmodule/index.js +8 -8
- package/dist/browser-esmodule/index.js.map +1 -1
- package/dist/browser-umd/hsml-app.js +1 -1
- package/dist/browser-umd/hsml-app.js.map +1 -1
- package/dist/browser-umd/index.js +1 -1
- package/dist/browser-umd/index.js.map +1 -1
- package/dist/demo/hsml-app-form-validation_demo.3fb6f10b.js +2 -0
- package/dist/demo/hsml-app-form-validation_demo.3fb6f10b.js.map +1 -0
- package/dist/demo/hsml-app-form-validation_demo.d81ae436.js +2 -0
- package/dist/demo/hsml-app-form-validation_demo.d81ae436.js.map +1 -0
- package/dist/demo/hsml-app-form-validation_demo.html +1 -1
- package/dist/demo/hsml-app-form_demo.945f4cb8.js +3 -0
- package/dist/demo/hsml-app-form_demo.945f4cb8.js.map +1 -0
- package/dist/demo/hsml-app-form_demo.a519fe16.js +3 -0
- package/dist/demo/hsml-app-form_demo.a519fe16.js.map +1 -0
- package/dist/demo/hsml-app-form_demo.html +1 -1
- package/dist/demo/hsml-app-test_demo.html +1 -1
- package/dist/demo/hsml-app-tictactoe_demo.html +1 -1
- package/dist/demo/hsml-app_demo.html +1 -1
- package/dist/demo/hsml-appel_demo.html +1 -1
- package/dist/demo/hsml-appi_demo.html +1 -1
- package/dist/hsml-app.js +11 -9
- package/dist/hsml-app.js.map +1 -1
- package/package.json +2 -1
- package/src/hsml-app.ts +10 -8
- package/dist/demo/hsml-app-form-validation_demo.97679c59.js +0 -2
- package/dist/demo/hsml-app-form-validation_demo.97679c59.js.map +0 -1
- package/dist/demo/hsml-app-form-validation_demo.eea04196.js +0 -2
- package/dist/demo/hsml-app-form-validation_demo.eea04196.js.map +0 -1
- package/dist/demo/hsml-app-form_demo.35253446.js +0 -2
- package/dist/demo/hsml-app-form_demo.35253446.js.map +0 -1
- package/dist/demo/hsml-app-form_demo.9f5de7f9.js +0 -2
- package/dist/demo/hsml-app-form_demo.9f5de7f9.js.map +0 -1
|
@@ -262,6 +262,8 @@ const dispatcher: HDispatcher<State, Actions> = async function (action, state) {
|
|
|
262
262
|
console.log("FormActions.change file json:", JSON.stringify(await new Response(file).json(), null, 4));
|
|
263
263
|
// Read the file as ArrayBuffer to handle binary data
|
|
264
264
|
console.log("FormActions.change file ArrayBuffer:", new Uint8Array(await file.arrayBuffer()));
|
|
265
|
+
// Read the file as base64
|
|
266
|
+
console.log("FormActions.change file base64:", Buffer.from(await file.arrayBuffer()).toString("base64"));
|
|
265
267
|
// Read large data chunk by chunk
|
|
266
268
|
console.log("FormActions.change file stream:", file.stream());
|
|
267
269
|
}
|
|
@@ -1052,20 +1052,20 @@ class $9adf8bc2f1ba310f$export$8cfef5dc37c46888 {
|
|
|
1052
1052
|
}
|
|
1053
1053
|
_dispatch(type, data, event, scope) {
|
|
1054
1054
|
return $9adf8bc2f1ba310f$var$__awaiter(this, void 0, void 0, function*() {
|
|
1055
|
-
|
|
1056
|
-
|
|
1055
|
+
if (!scope) {
|
|
1056
|
+
try {
|
|
1057
1057
|
yield this.dispatcher({
|
|
1058
1058
|
type: type,
|
|
1059
1059
|
data: data,
|
|
1060
1060
|
event: event
|
|
1061
1061
|
}, this.state, this.dispatch);
|
|
1062
|
-
|
|
1062
|
+
} catch (e) {
|
|
1063
|
+
$9adf8bc2f1ba310f$var$error(this.name, $9adf8bc2f1ba310f$var$msgDispatch, e);
|
|
1063
1064
|
}
|
|
1064
|
-
|
|
1065
|
-
scope === "window" && this._dispatchWindow(type, data);
|
|
1066
|
-
} catch (e) {
|
|
1067
|
-
$9adf8bc2f1ba310f$var$error(this.name, $9adf8bc2f1ba310f$var$msgDispatch, e);
|
|
1065
|
+
this.update();
|
|
1068
1066
|
}
|
|
1067
|
+
scope === "element" && this._dispatchElement(type, data);
|
|
1068
|
+
scope === "window" && this._dispatchWindow(type, data);
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
_dispatchElement(type, data) {
|
|
@@ -1332,7 +1332,7 @@ function $9adf8bc2f1ba310f$var$formInputData(el) {
|
|
|
1332
1332
|
case "range":
|
|
1333
1333
|
data = {
|
|
1334
1334
|
name: iel.name,
|
|
1335
|
-
value: iel.valueAsNumber,
|
|
1335
|
+
value: isNaN(iel.valueAsNumber) ? null : iel.valueAsNumber,
|
|
1336
1336
|
valueString: iel.value,
|
|
1337
1337
|
validation: iel.validationMessage,
|
|
1338
1338
|
valid: iel.validity.valid
|