@public-ui/hydrate 3.0.0-rc.12 → 3.0.0-rc.13
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 +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -19778,7 +19778,7 @@ class KolInputFile {
|
|
|
19778
19778
|
} });
|
|
19779
19779
|
}
|
|
19780
19780
|
render() {
|
|
19781
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6c81b473b7ba7db7b45405159e0ae33913fdea8a' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '5e7229bb6eb56acb38c9354bd3a2f1d5e101aa93', state: this.state }, hAsync("span", { key: '
|
|
19781
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6c81b473b7ba7db7b45405159e0ae33913fdea8a' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '5e7229bb6eb56acb38c9354bd3a2f1d5e101aa93', state: this.state }, hAsync("span", { key: '3742d51be8c2cc4ee6723269a964589a990f9e23', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(KolInputStateWrapperFc, Object.assign({ key: 'a1f03cccb74166437976eea391187546537fdfff' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: '97492f6a7ef31282d00a182281ea29571cd056a8', class: "kol-input-container__button", _label: translate('kol-data-browse-text'), _variant: "primary", _disabled: this._disabled }))));
|
|
19782
19782
|
}
|
|
19783
19783
|
constructor(hostRef) {
|
|
19784
19784
|
registerInstance(this, hostRef);
|
|
@@ -19809,6 +19809,7 @@ class KolInputFile {
|
|
|
19809
19809
|
this.onChange = (event) => {
|
|
19810
19810
|
if (this.inputRef instanceof HTMLInputElement && this.inputRef.type === 'file') {
|
|
19811
19811
|
const value = this.inputRef.files;
|
|
19812
|
+
this.hasFileSelected = !!(value === null || value === void 0 ? void 0 : value.length);
|
|
19812
19813
|
this.filename = (value === null || value === void 0 ? void 0 : value.length)
|
|
19813
19814
|
? Array.from(value)
|
|
19814
19815
|
.map((file) => file.name)
|
|
@@ -19844,6 +19845,7 @@ class KolInputFile {
|
|
|
19844
19845
|
this._tooltipAlign = 'top';
|
|
19845
19846
|
this._touched = false;
|
|
19846
19847
|
this.filename = translate('kol-filename-text');
|
|
19848
|
+
this.hasFileSelected = false;
|
|
19847
19849
|
this.state = {
|
|
19848
19850
|
_hideMsg: false,
|
|
19849
19851
|
_id: `id-${nonce()}`,
|
|
@@ -19969,6 +19971,7 @@ class KolInputFile {
|
|
|
19969
19971
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
19970
19972
|
"_touched": [1540],
|
|
19971
19973
|
"filename": [32],
|
|
19974
|
+
"hasFileSelected": [32],
|
|
19972
19975
|
"state": [32],
|
|
19973
19976
|
"inputHasFocus": [32],
|
|
19974
19977
|
"getValue": [64],
|
package/dist/index.mjs
CHANGED
|
@@ -19774,7 +19774,7 @@ class KolInputFile {
|
|
|
19774
19774
|
} });
|
|
19775
19775
|
}
|
|
19776
19776
|
render() {
|
|
19777
|
-
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6c81b473b7ba7db7b45405159e0ae33913fdea8a' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '5e7229bb6eb56acb38c9354bd3a2f1d5e101aa93', state: this.state }, hAsync("span", { key: '
|
|
19777
|
+
return (hAsync(KolFormFieldStateWrapperFc, Object.assign({ key: '6c81b473b7ba7db7b45405159e0ae33913fdea8a' }, this.getFormFieldProps()), hAsync(KolInputContainerStateWrapperFc, { key: '5e7229bb6eb56acb38c9354bd3a2f1d5e101aa93', state: this.state }, hAsync("span", { key: '3742d51be8c2cc4ee6723269a964589a990f9e23', class: clsx('kol-input-container__filename', { 'kol-input-container__filename--has-file': this.hasFileSelected }) }, this.filename), hAsync(KolInputStateWrapperFc, Object.assign({ key: 'a1f03cccb74166437976eea391187546537fdfff' }, this.getInputProps())), hAsync(KolButtonWcTag, { key: '97492f6a7ef31282d00a182281ea29571cd056a8', class: "kol-input-container__button", _label: translate('kol-data-browse-text'), _variant: "primary", _disabled: this._disabled }))));
|
|
19778
19778
|
}
|
|
19779
19779
|
constructor(hostRef) {
|
|
19780
19780
|
registerInstance(this, hostRef);
|
|
@@ -19805,6 +19805,7 @@ class KolInputFile {
|
|
|
19805
19805
|
this.onChange = (event) => {
|
|
19806
19806
|
if (this.inputRef instanceof HTMLInputElement && this.inputRef.type === 'file') {
|
|
19807
19807
|
const value = this.inputRef.files;
|
|
19808
|
+
this.hasFileSelected = !!(value === null || value === void 0 ? void 0 : value.length);
|
|
19808
19809
|
this.filename = (value === null || value === void 0 ? void 0 : value.length)
|
|
19809
19810
|
? Array.from(value)
|
|
19810
19811
|
.map((file) => file.name)
|
|
@@ -19840,6 +19841,7 @@ class KolInputFile {
|
|
|
19840
19841
|
this._tooltipAlign = 'top';
|
|
19841
19842
|
this._touched = false;
|
|
19842
19843
|
this.filename = translate('kol-filename-text');
|
|
19844
|
+
this.hasFileSelected = false;
|
|
19843
19845
|
this.state = {
|
|
19844
19846
|
_hideMsg: false,
|
|
19845
19847
|
_id: `id-${nonce()}`,
|
|
@@ -19965,6 +19967,7 @@ class KolInputFile {
|
|
|
19965
19967
|
"_tooltipAlign": [1, "_tooltip-align"],
|
|
19966
19968
|
"_touched": [1540],
|
|
19967
19969
|
"filename": [32],
|
|
19970
|
+
"hasFileSelected": [32],
|
|
19968
19971
|
"state": [32],
|
|
19969
19972
|
"inputHasFocus": [32],
|
|
19970
19973
|
"getValue": [64],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@public-ui/hydrate",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.13",
|
|
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": "6.0.1",
|
|
49
|
-
"@public-ui/components": "3.0.0-rc.
|
|
49
|
+
"@public-ui/components": "3.0.0-rc.13"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@public-ui/components": "3.0.0-rc.
|
|
52
|
+
"@public-ui/components": "3.0.0-rc.13"
|
|
53
53
|
},
|
|
54
54
|
"sideEffects": false,
|
|
55
55
|
"type": "commonjs",
|