@golemui/gui-lit 0.17.0 → 1.0.0-rc.1
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 +32 -0
- package/{abstract-calendar-s67Qu3Nt.js → abstract-calendar-BoqKPRmS.js} +21 -4
- package/{accordion.element-ChLmV6QT.js → accordion.element-BIgxl5e9.js} +0 -1
- package/{alert.element-9QFlqjj9.js → alert.element-DPWq9-0F.js} +3 -4
- package/{button.element-DoQmGWze.js → button.element-3a7rRHbA.js} +0 -1
- package/{calendar-aXb9yz-6.js → calendar-DTYKVYc3.js} +2 -2
- package/{calendar.element-D7OF4QVV.js → calendar.element-MubSE1bx.js} +11 -12
- package/{checkbox.element-DMmer4Jw.js → checkbox.element-CVskoXEc.js} +0 -1
- package/{currency.element-ybKzwXEh.js → currency.element-YyL4TeL0.js} +0 -1
- package/{date-CG1562vW.js → date-DTYg8sog.js} +12 -13
- package/{date-input-5Heujc5X.js → date-input-BeQvyfln.js} +1 -2
- package/{date-picker.element-DStQrD4x.js → date-picker.element-DabW_-0-.js} +2 -3
- package/{date.element-DymfLrlq.js → date.element-BtVJSIRk.js} +1 -2
- package/{dropdown.element-sbd3T145.js → dropdown.element-DqzC6aXR.js} +1 -2
- package/{flex.element-B0sG0YT1.js → flex.element-DG4Uaj_X.js} +0 -1
- package/{grid.element-Bf5aEjkj.js → grid.element-DCZsh-3J.js} +0 -1
- package/index.js +1244 -1211
- package/index.umd.cjs +78 -52
- package/lib/components/accordion.element.d.ts +1 -1
- package/lib/components/alert.element.d.ts +1 -1
- package/lib/components/button.element.d.ts +1 -1
- package/lib/components/calendar.element.d.ts +1 -1
- package/lib/components/checkbox.element.d.ts +1 -1
- package/lib/components/currency.element.d.ts +1 -1
- package/lib/components/date-picker.element.d.ts +1 -1
- package/lib/components/date.element.d.ts +1 -1
- package/lib/components/dropdown.element.d.ts +1 -1
- package/lib/components/flex.element.d.ts +1 -1
- package/lib/components/grid.element.d.ts +1 -1
- package/lib/components/list.element.d.ts +1 -1
- package/lib/components/markdown-text.element.d.ts +1 -1
- package/lib/components/markdown.element.d.ts +1 -1
- package/lib/components/number.element.d.ts +1 -1
- package/lib/components/password.element.d.ts +1 -1
- package/lib/components/radiogroup.element.d.ts +1 -1
- package/lib/components/range-calendar.element.d.ts +1 -1
- package/lib/components/range-date-input.element.d.ts +1 -1
- package/lib/components/range-date-picker.element.d.ts +1 -1
- package/lib/components/renderer.element.d.ts +1 -1
- package/lib/components/repeater.element.d.ts +1 -1
- package/lib/components/select.element.d.ts +1 -1
- package/lib/components/tabs.element.d.ts +1 -1
- package/lib/components/tags.element.d.ts +1 -1
- package/lib/components/textarea.element.d.ts +1 -1
- package/lib/components/textinput.element.d.ts +1 -1
- package/lib/components/toggle.element.d.ts +1 -1
- package/lib/widget.loaders.d.ts +1 -1
- package/{list-CVDHuXKS.js → list-D1oKnH89.js} +2 -3
- package/{list.element-Bgnx2CN_.js → list.element-Co3V3Cn5.js} +9 -10
- package/{markdown-text.element-C_1OqrGa.js → markdown-text.element-B8TfVLIO.js} +0 -1
- package/{markdown.element-BiAglcXP.js → markdown.element-CNp4wbg9.js} +0 -1
- package/{number.element-DlpxcOBs.js → number.element-B6TsvHMK.js} +10 -3
- package/{one-of-DifUsEYY.js → one-of-C0ur6b_n.js} +13 -11
- package/package.json +6 -6
- package/{password.element-BT65mDsp.js → password.element-n-R9RbkB.js} +0 -1
- package/{radiogroup.element-tdHrN9V5.js → radiogroup.element-CeQn623u.js} +5 -6
- package/{range-calendar-DUoIqmOA.js → range-calendar-9skwbwlB.js} +2 -3
- package/{range-calendar.element-D6FO7HpL.js → range-calendar.element-QTE6vGNP.js} +1 -2
- package/{range-date-input-CoFG7Qem.js → range-date-input-Uy8134vi.js} +1 -2
- package/{range-date-input.element-Cjl1vZfr.js → range-date-input.element-Dj29D_OQ.js} +1 -2
- package/{range-date-picker.element-DqjOBKoT.js → range-date-picker.element-CuKIBkIO.js} +3 -4
- package/{renderer.element-DMsheQGi.js → renderer.element-CNyMn2Lu.js} +0 -1
- package/{repeater.element-Ry8HyMfW.js → repeater.element-CtNgB4F5.js} +0 -1
- package/{select.element-Y9i1tsl-.js → select.element-jcDF1h-g.js} +7 -8
- package/{tabs.element-VLrtF1j5.js → tabs.element-BvAyI71N.js} +0 -1
- package/{tags.element-B3JP4m0z.js → tags.element-CX3vQL8L.js} +0 -1
- package/{textarea.element-BTJLqnnI.js → textarea.element-Cu9ZW3K4.js} +0 -1
- package/{textinput.element-zI0iG-Cq.js → textinput.element-CkXNzMUg.js} +0 -1
- package/{toggle.element-NXRrhALB.js → toggle.element-C1kCw5H8.js} +9 -10
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { InputWidgetAdapter as g, formContext as b, inputContext as y } from "@golemui/lit";
|
|
2
|
-
import "
|
|
3
|
-
import { LitElement as m, html as n, nothing as u } from "lit";
|
|
2
|
+
import { LitElement as v, html as n, nothing as u } from "lit";
|
|
4
3
|
import { repeat as f } from "lit-html/directives/repeat.js";
|
|
5
|
-
import { property as s, customElement as
|
|
4
|
+
import { property as s, customElement as m } from "lit/decorators.js";
|
|
6
5
|
import { classMap as $ } from "lit/directives/class-map.js";
|
|
7
6
|
import { G as C, a as D, b as w, c as E } from "./templates-Dk1jxLwS.js";
|
|
8
|
-
import { u as F, i as S } from "./one-of-
|
|
7
|
+
import { u as F, i as S } from "./one-of-C0ur6b_n.js";
|
|
9
8
|
import { consume as x, provide as O } from "@lit/context";
|
|
10
9
|
import "rxjs";
|
|
11
10
|
var _ = Object.defineProperty, q = Object.getOwnPropertyDescriptor, l = (t, e, r, i) => {
|
|
@@ -13,7 +12,7 @@ var _ = Object.defineProperty, q = Object.getOwnPropertyDescriptor, l = (t, e, r
|
|
|
13
12
|
(p = t[d]) && (o = (i ? p(e, r, o) : p(o)) || o);
|
|
14
13
|
return i && o && _(e, r, o), o;
|
|
15
14
|
};
|
|
16
|
-
let a = class extends
|
|
15
|
+
let a = class extends v {
|
|
17
16
|
constructor() {
|
|
18
17
|
super(...arguments), this.uid = void 0, this.label = void 0, this.localeId = "en", this.errors = [], this.touched = !1, this.required = !1, this.disabled = !1, this.readOnly = !1, this.value = void 0, this.hint = void 0, this.icon = void 0, this.autocomplete = void 0, this.options = [], this.placeholder = void 0, this.labelField = void 0, this.valueField = void 0, this.optionsLoading = !1, this.hasMatchingValue = !1, this.ariaController = new C(this, {
|
|
19
18
|
getTargets: () => this.querySelectorAll(`select[id="${this.uid}"]`),
|
|
@@ -182,7 +181,7 @@ l([
|
|
|
182
181
|
s({ type: String })
|
|
183
182
|
], a.prototype, "valueField", 2);
|
|
184
183
|
a = l([
|
|
185
|
-
|
|
184
|
+
m("gui-select")
|
|
186
185
|
], a);
|
|
187
186
|
typeof customElements < "u" && !customElements.get("gui-select") && customElements.define("gui-select", a);
|
|
188
187
|
var I = Object.defineProperty, P = Object.getOwnPropertyDescriptor, c = (t, e, r, i) => {
|
|
@@ -190,7 +189,7 @@ var I = Object.defineProperty, P = Object.getOwnPropertyDescriptor, c = (t, e, r
|
|
|
190
189
|
(p = t[d]) && (o = (i ? p(e, r, o) : p(o)) || o);
|
|
191
190
|
return i && o && I(e, r, o), o;
|
|
192
191
|
};
|
|
193
|
-
let h = class extends
|
|
192
|
+
let h = class extends v {
|
|
194
193
|
constructor() {
|
|
195
194
|
super(...arguments), this.adapter = new g(), this.subscriptions = [];
|
|
196
195
|
}
|
|
@@ -250,7 +249,7 @@ c([
|
|
|
250
249
|
O({ context: y })
|
|
251
250
|
], h.prototype, "adapter", 2);
|
|
252
251
|
h = c([
|
|
253
|
-
|
|
252
|
+
m("gui-select-input")
|
|
254
253
|
], h);
|
|
255
254
|
export {
|
|
256
255
|
h as SelectElement
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LayoutWidgetAdapter as f, formContext as m, layoutContext as v } from "@golemui/lit";
|
|
2
2
|
import { c } from "./tabs-DzSCq_98.js";
|
|
3
|
-
import "@golemui/gui-shared";
|
|
4
3
|
import { consume as w, provide as $ } from "@lit/context";
|
|
5
4
|
import { LitElement as y, html as d, nothing as _ } from "lit";
|
|
6
5
|
import { repeat as p } from "lit-html/directives/repeat.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as D, formContext as w, inputContext as C } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { LitElement as y, nothing as c, html as m } from "lit";
|
|
4
3
|
import { property as o, customElement as v } from "lit/decorators.js";
|
|
5
4
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as v, formContext as b, inputContext as x } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { LitElement as m, html as n, nothing as c } from "lit";
|
|
4
3
|
import { property as i, customElement as g } from "lit/decorators.js";
|
|
5
4
|
import { classMap as $ } from "lit/directives/class-map.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as b, formContext as v, inputContext as g } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { LitElement as c, nothing as h, html as m } from "lit";
|
|
4
3
|
import { property as r, customElement as y } from "lit/decorators.js";
|
|
5
4
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { InputWidgetAdapter as b, formContext as m, inputContext as y } from "@golemui/lit";
|
|
2
|
-
import "@golemui/gui-shared";
|
|
3
2
|
import { G as v, c as f } from "./templates-Dk1jxLwS.js";
|
|
4
3
|
import { LitElement as h, nothing as $, html as g } from "lit";
|
|
5
4
|
import { property as r, customElement as c } from "lit/decorators.js";
|
|
@@ -138,12 +137,12 @@ a = s([
|
|
|
138
137
|
c("gui-toggle")
|
|
139
138
|
], a);
|
|
140
139
|
typeof customElements < "u" && !customElements.get("gui-toggle") && customElements.define("gui-toggle", a);
|
|
141
|
-
var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor,
|
|
140
|
+
var w = Object.defineProperty, x = Object.getOwnPropertyDescriptor, p = (t, e, l, o) => {
|
|
142
141
|
for (var i = o > 1 ? void 0 : o ? x(e, l) : e, d = t.length - 1, n; d >= 0; d--)
|
|
143
142
|
(n = t[d]) && (i = (o ? n(e, l, i) : n(i)) || i);
|
|
144
143
|
return o && i && w(e, l, i), i;
|
|
145
144
|
};
|
|
146
|
-
let
|
|
145
|
+
let u = class extends h {
|
|
147
146
|
constructor() {
|
|
148
147
|
super(...arguments), this.adapter = new b(), this.subscriptions = [];
|
|
149
148
|
}
|
|
@@ -186,16 +185,16 @@ let p = class extends h {
|
|
|
186
185
|
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions.forEach((t) => t.unsubscribe());
|
|
187
186
|
}
|
|
188
187
|
};
|
|
189
|
-
|
|
188
|
+
p([
|
|
190
189
|
C({ context: m }),
|
|
191
190
|
r({ attribute: !1 })
|
|
192
|
-
],
|
|
193
|
-
|
|
191
|
+
], u.prototype, "formContext", 2);
|
|
192
|
+
p([
|
|
194
193
|
_({ context: y })
|
|
195
|
-
],
|
|
196
|
-
|
|
194
|
+
], u.prototype, "adapter", 2);
|
|
195
|
+
u = p([
|
|
197
196
|
c("gui-toggle-input")
|
|
198
|
-
],
|
|
197
|
+
], u);
|
|
199
198
|
export {
|
|
200
|
-
|
|
199
|
+
u as ToggleElement
|
|
201
200
|
};
|