@golemui/gui-lit 1.5.0-rc.0 → 1.5.0-rc.2
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/CHANGELOG.md +27 -0
- package/{file-upload.element-BYsufDWc.js → file-upload.element-l_l_ubxJ.js} +17 -10
- package/index.js +14 -2311
- package/index.umd.cjs +136 -132
- package/lib/components/file-upload.element.d.ts +1 -0
- package/lib/components/multi-file-upload.element.d.ts +1 -0
- package/{multi-file-upload.element-BLHDoyzh.js → multi-file-upload.element-DzAZAfc1.js} +23 -16
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 1.5.0-rc.1 (2026-09-07)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **gui-components:** surface upload errors via validation injection and icon retry button ([#357](https://github.com/golemui/golemui/pull/357))
|
|
6
|
+
|
|
7
|
+
### 🩹 Fixes
|
|
8
|
+
|
|
9
|
+
- **gui-components:** add interrupted message and reconcile file upload queue ([#359](https://github.com/golemui/golemui/pull/359))
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Raúl Jiménez @Elecash
|
|
14
|
+
|
|
15
|
+
## 1.5.0-rc.0 (2026-09-04)
|
|
16
|
+
|
|
17
|
+
### 🚀 Features
|
|
18
|
+
|
|
19
|
+
- **vue:** nuxt support ([#335](https://github.com/golemui/golemui/pull/335))
|
|
20
|
+
- **gui-components:** add file upload widgets ([#332](https://github.com/golemui/golemui/pull/332))
|
|
21
|
+
- **lit,gui-lit,gui-components:** support server-side rendering of forms ([#334](https://github.com/golemui/golemui/pull/334))
|
|
22
|
+
|
|
23
|
+
### ❤️ Thank You
|
|
24
|
+
|
|
25
|
+
- Mud Scientist @mudscientist
|
|
26
|
+
- Raúl Jiménez @Elecash
|
|
27
|
+
|
|
1
28
|
## 1.4.0 (2026-08-26)
|
|
2
29
|
|
|
3
30
|
### 🚀 Features
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
1
|
+
import { InputWidgetAdapter as l, formContext as d, inputContext as p } from "@golemui/lit";
|
|
2
2
|
import "@golemui/gui-components/file-upload";
|
|
3
3
|
import { consume as u, provide as c } from "@lit/context";
|
|
4
4
|
import { LitElement as m, html as h } from "lit";
|
|
5
5
|
import { property as g } from "lit/decorators.js";
|
|
6
|
-
import { unsubscribeAll as
|
|
6
|
+
import { unsubscribeAll as $, safeDefine as b } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var f = Object.defineProperty,
|
|
8
|
+
var f = Object.defineProperty, n = (r, e, t, v) => {
|
|
9
9
|
for (var a = void 0, s = r.length - 1, o; s >= 0; s--)
|
|
10
10
|
(o = r[s]) && (a = o(e, t, a) || a);
|
|
11
11
|
return a && f(e, t, a), a;
|
|
12
12
|
};
|
|
13
13
|
class i extends m {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.adapter = new
|
|
15
|
+
super(...arguments), this.adapter = new l(), this.subscriptions = [];
|
|
16
16
|
}
|
|
17
17
|
createRenderRoot() {
|
|
18
18
|
return this;
|
|
@@ -49,16 +49,19 @@ class i extends m {
|
|
|
49
49
|
.buttonLabel=${e.buttonLabel}
|
|
50
50
|
.removeAriaLabel=${e.removeAriaLabel}
|
|
51
51
|
.cancelAriaLabel=${e.cancelAriaLabel}
|
|
52
|
-
.
|
|
52
|
+
.retryAriaLabel=${e.retryAriaLabel}
|
|
53
53
|
.removeIcon=${e.removeIcon}
|
|
54
|
+
.retryIcon=${e.retryIcon}
|
|
54
55
|
.maxSizeMessage=${e.maxSizeMessage}
|
|
55
56
|
.acceptMessage=${e.acceptMessage}
|
|
57
|
+
.interruptedMessage=${e.interruptedMessage}
|
|
56
58
|
.missingServiceMessage=${e.missingServiceMessage}
|
|
57
59
|
.uploadedMessage=${e.uploadedMessage}
|
|
58
60
|
.removedMessage=${e.removedMessage}
|
|
59
61
|
.failedMessage=${e.failedMessage}
|
|
60
62
|
@change=${this.valueChanged}
|
|
61
63
|
@blur=${() => this.adapter.onBlur()}
|
|
64
|
+
@inputError=${this.onInputError}
|
|
62
65
|
></gui-file-upload>
|
|
63
66
|
`;
|
|
64
67
|
}
|
|
@@ -66,18 +69,22 @@ class i extends m {
|
|
|
66
69
|
const t = e.detail.value;
|
|
67
70
|
this.adapter.valueChanged(t);
|
|
68
71
|
}
|
|
72
|
+
onInputError(e) {
|
|
73
|
+
const t = e.detail.message;
|
|
74
|
+
this.adapter.injectValidationIssues(t ? [t] : null);
|
|
75
|
+
}
|
|
69
76
|
disconnectedCallback() {
|
|
70
|
-
super.disconnectedCallback(), this.adapter.destroy(),
|
|
77
|
+
super.disconnectedCallback(), this.adapter.destroy(), $(this.subscriptions);
|
|
71
78
|
}
|
|
72
79
|
}
|
|
73
|
-
|
|
74
|
-
u({ context:
|
|
80
|
+
n([
|
|
81
|
+
u({ context: d }),
|
|
75
82
|
g({ attribute: !1 })
|
|
76
83
|
], i.prototype, "formContext");
|
|
77
|
-
|
|
84
|
+
n([
|
|
78
85
|
c({ context: p })
|
|
79
86
|
], i.prototype, "adapter");
|
|
80
|
-
|
|
87
|
+
b("gui-file-upload-input", i);
|
|
81
88
|
export {
|
|
82
89
|
i as FileUploadElement
|
|
83
90
|
};
|