@public-ui/hydrate 1.7.22 → 1.7.23
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/dist/index.js +9 -6
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -19465,9 +19465,9 @@ class InputController extends ControlledInputController {
|
|
|
19465
19465
|
this.component._on.onBlur(event);
|
|
19466
19466
|
}
|
|
19467
19467
|
}
|
|
19468
|
-
onChange(event) {
|
|
19468
|
+
onChange(event, value) {
|
|
19469
19469
|
var _a;
|
|
19470
|
-
|
|
19470
|
+
value = value !== null && value !== void 0 ? value : event.target.value;
|
|
19471
19471
|
tryToDispatchKoliBriEvent('change', this.host, value);
|
|
19472
19472
|
if (typeof ((_a = this.component._on) === null || _a === void 0 ? void 0 : _a.onChange) === 'function') {
|
|
19473
19473
|
this.component._on.onChange(event, value);
|
|
@@ -19491,9 +19491,9 @@ class InputController extends ControlledInputController {
|
|
|
19491
19491
|
this.component._on.onFocus(event);
|
|
19492
19492
|
}
|
|
19493
19493
|
}
|
|
19494
|
-
onInput(event, shouldSetFormAssociatedValue = true) {
|
|
19494
|
+
onInput(event, shouldSetFormAssociatedValue = true, value) {
|
|
19495
19495
|
var _a;
|
|
19496
|
-
|
|
19496
|
+
value = value !== null && value !== void 0 ? value : event.target.value;
|
|
19497
19497
|
stopPropagation(event);
|
|
19498
19498
|
tryToDispatchKoliBriEvent('input', this.host, value);
|
|
19499
19499
|
if (shouldSetFormAssociatedValue) {
|
|
@@ -20902,12 +20902,15 @@ class KolInputFile {
|
|
|
20902
20902
|
this.onChange = (event) => {
|
|
20903
20903
|
if (this.ref instanceof HTMLInputElement && this.ref.type === 'file') {
|
|
20904
20904
|
const value = this.ref.files;
|
|
20905
|
-
this.controller.onFacade.onChange(event);
|
|
20905
|
+
this.controller.onFacade.onChange(event, value);
|
|
20906
20906
|
this.controller.setFormAssociatedValue(value);
|
|
20907
20907
|
}
|
|
20908
20908
|
};
|
|
20909
20909
|
this.onInput = (event) => {
|
|
20910
|
-
this.
|
|
20910
|
+
if (this.ref instanceof HTMLInputElement && this.ref.type === 'file') {
|
|
20911
|
+
const value = this.ref.files;
|
|
20912
|
+
this.controller.onFacade.onInput(event, false, value);
|
|
20913
|
+
}
|
|
20911
20914
|
};
|
|
20912
20915
|
this._accept = undefined;
|
|
20913
20916
|
this._accessKey = undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/hydrate",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.23",
|
|
4
4
|
"license": "EUPL-1.2",
|
|
5
5
|
"homepage": "https://public-ui.github.io",
|
|
6
6
|
"repository": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
],
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"rimraf": "5.0.5",
|
|
49
|
-
"@public-ui/components": "1.7.
|
|
49
|
+
"@public-ui/components": "1.7.23"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@public-ui/components": "1.7.
|
|
52
|
+
"@public-ui/components": "1.7.23"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"type": "commonjs",
|