@public-ui/hydrate 1.7.21 → 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 -16
- package/package.json +4 -4
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) {
|
|
@@ -20562,16 +20562,6 @@ class InputPasswordController extends InputIconController {
|
|
|
20562
20562
|
this.validateSize(this.component._size);
|
|
20563
20563
|
this.validateValue(this.component._value);
|
|
20564
20564
|
}
|
|
20565
|
-
onBlur(event) {
|
|
20566
|
-
this.component.state = Object.assign(Object.assign({}, this.component.state), { _placeholder: this.placeholderCache });
|
|
20567
|
-
this.placeholderCache = undefined;
|
|
20568
|
-
super.onBlur(event);
|
|
20569
|
-
}
|
|
20570
|
-
onFocus(event) {
|
|
20571
|
-
this.placeholderCache = this.component.state._placeholder;
|
|
20572
|
-
this.component.state = Object.assign(Object.assign({}, this.component.state), { _placeholder: undefined });
|
|
20573
|
-
super.onFocus(event);
|
|
20574
|
-
}
|
|
20575
20565
|
}
|
|
20576
20566
|
|
|
20577
20567
|
class InputTextEmailController extends InputPasswordController {
|
|
@@ -20912,12 +20902,15 @@ class KolInputFile {
|
|
|
20912
20902
|
this.onChange = (event) => {
|
|
20913
20903
|
if (this.ref instanceof HTMLInputElement && this.ref.type === 'file') {
|
|
20914
20904
|
const value = this.ref.files;
|
|
20915
|
-
this.controller.onFacade.onChange(event);
|
|
20905
|
+
this.controller.onFacade.onChange(event, value);
|
|
20916
20906
|
this.controller.setFormAssociatedValue(value);
|
|
20917
20907
|
}
|
|
20918
20908
|
};
|
|
20919
20909
|
this.onInput = (event) => {
|
|
20920
|
-
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
|
+
}
|
|
20921
20914
|
};
|
|
20922
20915
|
this._accept = undefined;
|
|
20923
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": {
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"hydrate"
|
|
46
46
|
],
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"
|
|
49
|
-
"
|
|
48
|
+
"rimraf": "5.0.5",
|
|
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",
|