@golemui/gui-lit 1.3.0-rc.0 → 1.4.0-rc.0
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 +20 -0
- package/accordion.element-BEenQrCh.js +102 -0
- package/{alert.element-CHn49Yaf.js → alert.element-Dzv49O-1.js} +19 -19
- package/{button.element-C9fHivSw.js → button.element-CKYv0Glr.js} +14 -14
- package/{calendar.element-XkojKTJk.js → calendar.element-DkHZFBNr.js} +16 -16
- package/{checkbox.element-DU_tVMXu.js → checkbox.element-MukoziRw.js} +16 -16
- package/{currency.element-BmAH5KS_.js → currency.element-DNumeSKA.js} +13 -13
- package/{date-picker.element-Bg3rF95F.js → date-picker.element-DpQmremq.js} +5 -5
- package/{date-time-calendar.element-sywQCeQQ.js → date-time-calendar.element-GAr8VMGa.js} +5 -5
- package/{date-time-picker.element-HHpwjWTQ.js → date-time-picker.element-Bt0GYSpS.js} +5 -5
- package/{date-time.element-ucETvSTC.js → date-time.element-WfLnY_Cb.js} +14 -14
- package/{date.element-BEHGxRFF.js → date.element-ChpTi2AQ.js} +15 -15
- package/default-multi-list-item-renderer-Cv-guvEX.js +31 -0
- package/{dropdown.element-Dg80G2PL.js → dropdown.element-D9wMyqWQ.js} +76 -55
- package/{flex.element-pwba7621.js → flex.element-DiZWJBwt.js} +14 -14
- package/{grid.element-C8K7_Qi3.js → grid.element-DJ9ACsqZ.js} +22 -22
- package/index.js +79 -77
- package/index.umd.cjs +374 -117
- package/lib/components/accordion.element.d.ts +3 -2
- package/lib/components/default-multi-list-item-renderer.d.ts +2 -0
- package/lib/components/dropdown.element.d.ts +3 -2
- package/lib/components/multi-dropdown.element.d.ts +48 -0
- package/lib/components/multi-list.element.d.ts +27 -0
- package/lib/components/tabs.element.d.ts +3 -0
- package/{list.element-ZtEMKE2x.js → list.element-DD5IL4QB.js} +7 -7
- package/{markdown-text.element-DDm36qD0.js → markdown-text.element-DflCQwAo.js} +16 -16
- package/{markdown.element-DWz3U9rG.js → markdown.element-DUHHoi2Y.js} +13 -13
- package/multi-dropdown.element-iEOlPvux.js +312 -0
- package/multi-list.element-CCX3i3k6.js +162 -0
- package/{number.element-VkG5wScD.js → number.element-mQSFQsYC.js} +16 -16
- package/package.json +6 -6
- package/{password.element-C5vQHq5P.js → password.element-xw5gugEg.js} +13 -13
- package/{radiogroup.element-CKdO9HwO.js → radiogroup.element-TqfrxVyI.js} +15 -15
- package/{range-calendar.element-BznGrej5.js → range-calendar.element-BJr97SVA.js} +13 -5
- package/{range-date-input.element-BloTHRDl.js → range-date-input.element-DDRYvP9h.js} +23 -15
- package/{range-date-picker.element-DKhwFasW.js → range-date-picker.element-rdEr0_wu.js} +25 -17
- package/{range-date-time-calendar.element-CZCET-sb.js → range-date-time-calendar.element-UlL1BBRJ.js} +25 -17
- package/{range-date-time-input.element-Dr2VrYhG.js → range-date-time-input.element-Cq4IdW7N.js} +17 -9
- package/{range-date-time-picker.element-CYeIMWLp.js → range-date-time-picker.element-CnJcIN9C.js} +27 -19
- package/{range-time-input.element-7OZhPQqx.js → range-time-input.element-Cq0TrGe9.js} +17 -9
- package/{range-time-picker.element-D0mRFZkK.js → range-time-picker.element-BzlIuZ6m.js} +24 -16
- package/{renderer.element-DbsFoBba.js → renderer.element-BVwerbtL.js} +15 -15
- package/repeater.element-DQNI4b7I.js +133 -0
- package/{select.element-Bb_9jAVB.js → select.element-RBtbAvLx.js} +12 -11
- package/tabs.element-BiVaQlvt.js +171 -0
- package/{tags.element-BSN3i9Gx.js → tags.element-CGvxhMmX.js} +18 -19
- package/{textarea.element-Dl1ZEOqO.js → textarea.element-E2ntRBtE.js} +13 -13
- package/{textinput.element-C5Vbbkxq.js → textinput.element-0q5F5ol3.js} +16 -16
- package/{time-picker.element-Crmj9YDy.js → time-picker.element-BiLaLr_c.js} +5 -5
- package/{time.element-DfSeAZp4.js → time.element-92goKRwJ.js} +15 -15
- package/{toggle.element-ORsprZ2M.js → toggle.element-zDUc9Vja.js} +16 -16
- package/accordion.element-C9GzfKrY.js +0 -103
- package/repeater.element-DGEbwvhY.js +0 -138
- package/tabs.element-BYDNF_pm.js +0 -161
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { InputWidgetAdapter as $, formContext as v, inputContext as I } from "@golemui/lit";
|
|
2
|
+
import { consume as x, provide as y } from "@lit/context";
|
|
3
|
+
import { LitElement as C, nothing as u, html as h } from "lit";
|
|
4
|
+
import { property as R, state as c, query as w } from "lit/decorators.js";
|
|
5
|
+
import { unsubscribeAll as D, safeDefine as L } from "@golemui/lit/internals";
|
|
6
|
+
import "rxjs";
|
|
7
|
+
import { d as k } from "./default-multi-list-item-renderer-Cv-guvEX.js";
|
|
8
|
+
import "@golemui/gui-components/label";
|
|
9
|
+
import "@golemui/gui-components/multi-list";
|
|
10
|
+
import "@golemui/gui-components/errors";
|
|
11
|
+
var F = Object.defineProperty, d = (o, e, t, r) => {
|
|
12
|
+
for (var i = void 0, l = o.length - 1, s; l >= 0; l--)
|
|
13
|
+
(s = o[l]) && (i = s(e, t, i) || i);
|
|
14
|
+
return i && F(e, t, i), i;
|
|
15
|
+
};
|
|
16
|
+
class a extends C {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments), this.adapter = new $(), this.subscriptions = [], this._range = { start: 0, end: 10 }, this._listItems = [], this._focusedIndex = -1;
|
|
19
|
+
}
|
|
20
|
+
createRenderRoot() {
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
updated(e) {
|
|
24
|
+
super.updated(e);
|
|
25
|
+
const t = this.adapter.templateData.size;
|
|
26
|
+
t ? this.style.flex = String(t) : this.style.removeProperty("flex");
|
|
27
|
+
}
|
|
28
|
+
connectedCallback() {
|
|
29
|
+
super.connectedCallback(), this.classList.add("gui-multi-list-widget", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
|
|
30
|
+
this.adapter.templateDataChanged$.subscribe(() => {
|
|
31
|
+
const e = this.adapter.templateData;
|
|
32
|
+
e.items && this._listItems.length === 0 && (this._listItems = e.items), this.requestUpdate();
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
disconnectedCallback() {
|
|
37
|
+
super.disconnectedCallback(), this.adapter.destroy(), D(this.subscriptions);
|
|
38
|
+
}
|
|
39
|
+
render() {
|
|
40
|
+
const e = this.adapter.templateData, t = e.touched && e.errors && e.errors.length > 0, r = this._listItems.slice(this._range.start, this._range.end), i = this._currentValues(), l = this.adapter.getItemRenderer(
|
|
41
|
+
e.itemRenderer,
|
|
42
|
+
k
|
|
43
|
+
);
|
|
44
|
+
return h`
|
|
45
|
+
<gui-label
|
|
46
|
+
.targetElement=${this._guiListRef}
|
|
47
|
+
.uid=${this.widget.uid}
|
|
48
|
+
.label=${e.label}
|
|
49
|
+
.hint=${e.hint}
|
|
50
|
+
.errors=${e.errors}
|
|
51
|
+
.touched=${e.touched}
|
|
52
|
+
.required=${e.validator?.required}
|
|
53
|
+
.native=${!1}
|
|
54
|
+
></gui-label>
|
|
55
|
+
|
|
56
|
+
<div class="gui-widget">
|
|
57
|
+
<gui-multi-list
|
|
58
|
+
.uid=${this.widget.uid}
|
|
59
|
+
.values=${i}
|
|
60
|
+
.valueField=${e.valueField}
|
|
61
|
+
.items=${e.items}
|
|
62
|
+
.itemHeight=${e.itemHeight}
|
|
63
|
+
.height=${e.height}
|
|
64
|
+
?required=${e.validator?.required}
|
|
65
|
+
?touched=${e.touched}
|
|
66
|
+
?disabled=${e.disabled}
|
|
67
|
+
?readonly=${e.readonly}
|
|
68
|
+
aria-labelledby=${e.label ? `${this.widget.uid}_label` : u}
|
|
69
|
+
aria-describedby=${e.hint ? `${this.widget.uid}_hint` : u}
|
|
70
|
+
@gui-range-change=${this._onRangeChange}
|
|
71
|
+
@gui-update-items=${this._onUpdateItems}
|
|
72
|
+
@gui-focus-change=${this._onFocusChange}
|
|
73
|
+
@blur=${() => this.adapter.onBlur()}
|
|
74
|
+
@change=${this._valueChanged}
|
|
75
|
+
>
|
|
76
|
+
${r.map((s, f) => {
|
|
77
|
+
const n = this._range.start + f, p = i.includes(s.value), _ = this._focusedIndex === n, g = !!e.disabled || !!s.disabled, m = e.labelField ?? "label", b = s.template !== null && typeof s.template == "object" && m && !e.itemRenderer ? s.template[m] : s.template;
|
|
78
|
+
return h`
|
|
79
|
+
<div
|
|
80
|
+
role="option"
|
|
81
|
+
tabindex="-1"
|
|
82
|
+
class="gui-list__item-wrapper"
|
|
83
|
+
id="${this.widget.uid}-item-${n}"
|
|
84
|
+
style="height: ${e.itemHeight || 40}px"
|
|
85
|
+
aria-selected=${p ? "true" : "false"}
|
|
86
|
+
aria-disabled=${g ? "true" : "false"}
|
|
87
|
+
@click=${() => this._onClickItem(s, n)}
|
|
88
|
+
>
|
|
89
|
+
${l({
|
|
90
|
+
template: b,
|
|
91
|
+
value: s.value,
|
|
92
|
+
index: n,
|
|
93
|
+
selected: p,
|
|
94
|
+
disabled: g,
|
|
95
|
+
focused: _
|
|
96
|
+
})}
|
|
97
|
+
</div>
|
|
98
|
+
`;
|
|
99
|
+
})}
|
|
100
|
+
</gui-multi-list>
|
|
101
|
+
</div>
|
|
102
|
+
|
|
103
|
+
${t ? h`<gui-errors
|
|
104
|
+
.uid=${this.widget.uid}
|
|
105
|
+
.errors=${e.errors}
|
|
106
|
+
.touched=${e.touched}
|
|
107
|
+
></gui-errors>` : u}
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
_currentValues() {
|
|
111
|
+
const e = this.adapter.templateData.value;
|
|
112
|
+
return Array.isArray(e) ? e : [];
|
|
113
|
+
}
|
|
114
|
+
_toggleValue(e) {
|
|
115
|
+
const t = this.adapter.templateData;
|
|
116
|
+
if (t.disabled || t.readonly) return;
|
|
117
|
+
const r = this._currentValues();
|
|
118
|
+
if (r.includes(e)) {
|
|
119
|
+
this.adapter.valueChanged(r.filter((i) => i !== e));
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
this.adapter.valueChanged([...r, e]);
|
|
123
|
+
}
|
|
124
|
+
_onRangeChange(e) {
|
|
125
|
+
this._range = { start: e.detail.startIndex, end: e.detail.endIndex };
|
|
126
|
+
}
|
|
127
|
+
_onUpdateItems(e) {
|
|
128
|
+
this._listItems = e.detail || [];
|
|
129
|
+
}
|
|
130
|
+
_onFocusChange(e) {
|
|
131
|
+
this._focusedIndex = e.detail.index;
|
|
132
|
+
}
|
|
133
|
+
_onClickItem(e, t) {
|
|
134
|
+
this.adapter.templateData.disabled || e.disabled || (this._toggleValue(e.value), this._focusedIndex = t, this._guiListRef && typeof this._guiListRef.focusItemAtIndex == "function" && this._guiListRef.focusItemAtIndex(t));
|
|
135
|
+
}
|
|
136
|
+
_valueChanged(e) {
|
|
137
|
+
this.adapter.templateData.readonly || this._toggleValue(e.detail.value);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
d([
|
|
141
|
+
x({ context: v }),
|
|
142
|
+
R({ attribute: !1 })
|
|
143
|
+
], a.prototype, "formContext");
|
|
144
|
+
d([
|
|
145
|
+
y({ context: I })
|
|
146
|
+
], a.prototype, "adapter");
|
|
147
|
+
d([
|
|
148
|
+
c()
|
|
149
|
+
], a.prototype, "_range");
|
|
150
|
+
d([
|
|
151
|
+
c()
|
|
152
|
+
], a.prototype, "_listItems");
|
|
153
|
+
d([
|
|
154
|
+
c()
|
|
155
|
+
], a.prototype, "_focusedIndex");
|
|
156
|
+
d([
|
|
157
|
+
w("gui-multi-list")
|
|
158
|
+
], a.prototype, "_guiListRef");
|
|
159
|
+
L("gui-multi-list-input", a);
|
|
160
|
+
export {
|
|
161
|
+
a as MultiListElement
|
|
162
|
+
};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
1
|
+
import { InputWidgetAdapter as l, formContext as o, inputContext as u } from "@golemui/lit";
|
|
2
2
|
import "@golemui/gui-components/number";
|
|
3
3
|
import { consume as n, provide as m } from "@lit/context";
|
|
4
4
|
import { LitElement as h, html as c } from "lit";
|
|
5
5
|
import { property as b } from "lit/decorators.js";
|
|
6
|
-
import {
|
|
6
|
+
import { unsubscribeAll as f, safeDefine as $ } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
8
|
+
var D = Object.defineProperty, d = (r, e, t, v) => {
|
|
9
9
|
for (var a = void 0, i = r.length - 1, p; i >= 0; i--)
|
|
10
|
-
(p = r[i]) && (a = p(
|
|
11
|
-
return a &&
|
|
10
|
+
(p = r[i]) && (a = p(e, t, a) || a);
|
|
11
|
+
return a && D(e, t, a), a;
|
|
12
12
|
};
|
|
13
13
|
class s extends h {
|
|
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;
|
|
19
19
|
}
|
|
20
|
-
updated(
|
|
21
|
-
super.updated(
|
|
22
|
-
const
|
|
23
|
-
|
|
20
|
+
updated(e) {
|
|
21
|
+
super.updated(e);
|
|
22
|
+
const t = this.adapter.templateData.size;
|
|
23
|
+
t ? this.style.flex = String(t) : this.style.removeProperty("flex");
|
|
24
24
|
}
|
|
25
25
|
connectedCallback() {
|
|
26
26
|
super.connectedCallback(), this.classList.add("gui-number", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
|
|
@@ -50,22 +50,22 @@ class s extends h {
|
|
|
50
50
|
></gui-number>
|
|
51
51
|
`;
|
|
52
52
|
}
|
|
53
|
-
valueChanged(
|
|
54
|
-
const
|
|
55
|
-
this.adapter.valueChanged(
|
|
53
|
+
valueChanged(e) {
|
|
54
|
+
const t = e.detail.value;
|
|
55
|
+
this.adapter.valueChanged(t);
|
|
56
56
|
}
|
|
57
57
|
disconnectedCallback() {
|
|
58
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
58
|
+
super.disconnectedCallback(), this.adapter.destroy(), f(this.subscriptions);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
d([
|
|
62
|
-
n({ context:
|
|
62
|
+
n({ context: o }),
|
|
63
63
|
b({ attribute: !1 })
|
|
64
64
|
], s.prototype, "formContext");
|
|
65
65
|
d([
|
|
66
66
|
m({ context: u })
|
|
67
67
|
], s.prototype, "adapter");
|
|
68
|
-
|
|
68
|
+
$("gui-number-input", s);
|
|
69
69
|
export {
|
|
70
70
|
s as NumberElement
|
|
71
71
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-lit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"*.md"
|
|
26
26
|
],
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@golemui/lit": "1.
|
|
29
|
-
"@golemui/core": "1.
|
|
30
|
-
"@golemui/gui-components": "1.
|
|
31
|
-
"@golemui/gui-shared": "1.
|
|
32
|
-
"@golemui/gui-validators": "1.
|
|
28
|
+
"@golemui/lit": "1.4.0-rc.0",
|
|
29
|
+
"@golemui/core": "1.4.0-rc.0",
|
|
30
|
+
"@golemui/gui-components": "1.4.0-rc.0",
|
|
31
|
+
"@golemui/gui-shared": "1.4.0-rc.0",
|
|
32
|
+
"@golemui/gui-validators": "1.4.0-rc.0",
|
|
33
33
|
"@lit/context": "^1.1.6",
|
|
34
34
|
"lit-html": "^3.3.1",
|
|
35
35
|
"lit": "^3.3.1",
|
|
@@ -3,12 +3,12 @@ import "@golemui/gui-components/password";
|
|
|
3
3
|
import { consume as h, provide as u } from "@lit/context";
|
|
4
4
|
import { LitElement as c, html as m } from "lit";
|
|
5
5
|
import { property as b } from "lit/decorators.js";
|
|
6
|
-
import {
|
|
6
|
+
import { unsubscribeAll as f, safeDefine as w } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
8
|
+
var $ = Object.defineProperty, o = (r, e, t, D) => {
|
|
9
9
|
for (var a = void 0, s = r.length - 1, d; s >= 0; s--)
|
|
10
|
-
(d = r[s]) && (a = d(
|
|
11
|
-
return a &&
|
|
10
|
+
(d = r[s]) && (a = d(e, t, a) || a);
|
|
11
|
+
return a && $(e, t, a), a;
|
|
12
12
|
};
|
|
13
13
|
class i extends c {
|
|
14
14
|
constructor() {
|
|
@@ -17,10 +17,10 @@ class i extends c {
|
|
|
17
17
|
createRenderRoot() {
|
|
18
18
|
return this;
|
|
19
19
|
}
|
|
20
|
-
updated(
|
|
21
|
-
super.updated(
|
|
22
|
-
const
|
|
23
|
-
|
|
20
|
+
updated(e) {
|
|
21
|
+
super.updated(e);
|
|
22
|
+
const t = this.adapter.templateData.size;
|
|
23
|
+
t ? this.style.flex = String(t) : this.style.removeProperty("flex");
|
|
24
24
|
}
|
|
25
25
|
connectedCallback() {
|
|
26
26
|
super.connectedCallback(), this.classList.add("gui-password", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
|
|
@@ -51,12 +51,12 @@ class i extends c {
|
|
|
51
51
|
></gui-password>
|
|
52
52
|
`;
|
|
53
53
|
}
|
|
54
|
-
valueChanged(
|
|
55
|
-
const
|
|
56
|
-
this.adapter.valueChanged(
|
|
54
|
+
valueChanged(e) {
|
|
55
|
+
const t = e.detail.value;
|
|
56
|
+
this.adapter.valueChanged(t);
|
|
57
57
|
}
|
|
58
58
|
disconnectedCallback() {
|
|
59
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
59
|
+
super.disconnectedCallback(), this.adapter.destroy(), f(this.subscriptions);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
o([
|
|
@@ -66,7 +66,7 @@ o([
|
|
|
66
66
|
o([
|
|
67
67
|
u({ context: n })
|
|
68
68
|
], i.prototype, "adapter");
|
|
69
|
-
|
|
69
|
+
w("gui-password-input", i);
|
|
70
70
|
export {
|
|
71
71
|
i as PasswordElement
|
|
72
72
|
};
|
|
@@ -2,13 +2,13 @@ import { InputWidgetAdapter as o, formContext as l, inputContext as n } from "@g
|
|
|
2
2
|
import "@golemui/gui-components/radiogroup";
|
|
3
3
|
import { consume as u, provide as h } from "@lit/context";
|
|
4
4
|
import { LitElement as m, html as c } from "lit";
|
|
5
|
-
import { property as
|
|
6
|
-
import { safeDefine as
|
|
5
|
+
import { property as b } from "lit/decorators.js";
|
|
6
|
+
import { unsubscribeAll as f, safeDefine as g } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
8
|
+
var v = Object.defineProperty, p = (r, e, t, $) => {
|
|
9
9
|
for (var a = void 0, i = r.length - 1, d; i >= 0; i--)
|
|
10
|
-
(d = r[i]) && (a = d(
|
|
11
|
-
return a &&
|
|
10
|
+
(d = r[i]) && (a = d(e, t, a) || a);
|
|
11
|
+
return a && v(e, t, a), a;
|
|
12
12
|
};
|
|
13
13
|
class s extends m {
|
|
14
14
|
constructor() {
|
|
@@ -17,10 +17,10 @@ class s extends m {
|
|
|
17
17
|
createRenderRoot() {
|
|
18
18
|
return this;
|
|
19
19
|
}
|
|
20
|
-
updated(
|
|
21
|
-
super.updated(
|
|
22
|
-
const
|
|
23
|
-
|
|
20
|
+
updated(e) {
|
|
21
|
+
super.updated(e);
|
|
22
|
+
const t = this.adapter.templateData.size;
|
|
23
|
+
t ? this.style.flex = String(t) : this.style.removeProperty("flex");
|
|
24
24
|
}
|
|
25
25
|
connectedCallback() {
|
|
26
26
|
super.connectedCallback(), this.classList.add("gui-radiogroup", "gui-field"), this.adapter.context = this.formContext, this.adapter.init(this.widget), this.subscriptions.push(
|
|
@@ -48,22 +48,22 @@ class s extends m {
|
|
|
48
48
|
></gui-radiogroup>
|
|
49
49
|
`;
|
|
50
50
|
}
|
|
51
|
-
valueChanged(
|
|
52
|
-
const
|
|
53
|
-
this.adapter.valueChanged(
|
|
51
|
+
valueChanged(e) {
|
|
52
|
+
const t = e.detail.value;
|
|
53
|
+
this.adapter.valueChanged(t);
|
|
54
54
|
}
|
|
55
55
|
disconnectedCallback() {
|
|
56
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
56
|
+
super.disconnectedCallback(), this.adapter.destroy(), f(this.subscriptions);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
p([
|
|
60
60
|
u({ context: l }),
|
|
61
|
-
|
|
61
|
+
b({ attribute: !1 })
|
|
62
62
|
], s.prototype, "formContext");
|
|
63
63
|
p([
|
|
64
64
|
h({ context: n })
|
|
65
65
|
], s.prototype, "adapter");
|
|
66
|
-
|
|
66
|
+
g("gui-radiogroup-input", s);
|
|
67
67
|
export {
|
|
68
68
|
s as RadiogroupElement
|
|
69
69
|
};
|
|
@@ -3,12 +3,12 @@ import "@golemui/gui-components/range-calendar";
|
|
|
3
3
|
import { consume as h, provide as m } from "@lit/context";
|
|
4
4
|
import { LitElement as u, html as c } from "lit";
|
|
5
5
|
import { property as b } from "lit/decorators.js";
|
|
6
|
-
import {
|
|
6
|
+
import { unsubscribeAll as D, safeDefine as $ } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
8
|
+
var g = Object.defineProperty, l = (r, t, e, f) => {
|
|
9
9
|
for (var a = void 0, i = r.length - 1, d; i >= 0; i--)
|
|
10
10
|
(d = r[i]) && (a = d(t, e, a) || a);
|
|
11
|
-
return a &&
|
|
11
|
+
return a && g(t, e, a), a;
|
|
12
12
|
};
|
|
13
13
|
class s extends u {
|
|
14
14
|
constructor() {
|
|
@@ -55,6 +55,14 @@ class s extends u {
|
|
|
55
55
|
.numberOfMonths=${this.adapter.templateData.numberOfMonths}
|
|
56
56
|
.hidePills=${!1}
|
|
57
57
|
.removePillAriaLabel=${this.adapter.templateData.removePillAriaLabel}
|
|
58
|
+
?allow-edit=${this.adapter.templateData.allowEdit}
|
|
59
|
+
.editLabel=${this.adapter.templateData.editLabel}
|
|
60
|
+
.editAriaLabel=${this.adapter.templateData.editAriaLabel}
|
|
61
|
+
.confirmEditLabel=${this.adapter.templateData.confirmEditLabel}
|
|
62
|
+
.cancelEditLabel=${this.adapter.templateData.cancelEditLabel}
|
|
63
|
+
.editStartedMessage=${this.adapter.templateData.editStartedMessage}
|
|
64
|
+
.editCommittedMessage=${this.adapter.templateData.editCommittedMessage}
|
|
65
|
+
.editCancelledMessage=${this.adapter.templateData.editCancelledMessage}
|
|
58
66
|
.localeId=${this.adapter.templateData.lang}
|
|
59
67
|
@change=${this.valueChanged}
|
|
60
68
|
@inputError=${this.onInputError}
|
|
@@ -69,7 +77,7 @@ class s extends u {
|
|
|
69
77
|
this.adapter.injectValidationIssues([t.detail.message]), this.adapter.onBlur();
|
|
70
78
|
}
|
|
71
79
|
disconnectedCallback() {
|
|
72
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
80
|
+
super.disconnectedCallback(), this.adapter.destroy(), D(this.subscriptions);
|
|
73
81
|
}
|
|
74
82
|
}
|
|
75
83
|
l([
|
|
@@ -79,7 +87,7 @@ l([
|
|
|
79
87
|
l([
|
|
80
88
|
m({ context: o })
|
|
81
89
|
], s.prototype, "adapter");
|
|
82
|
-
|
|
90
|
+
$("gui-range-calendar-input", s);
|
|
83
91
|
export {
|
|
84
92
|
s as RangeCalendarElement
|
|
85
93
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
1
|
+
import { InputWidgetAdapter as p, formContext as n, inputContext as o } from "@golemui/lit";
|
|
2
2
|
import "@golemui/gui-components/range-date-input";
|
|
3
|
-
import { consume as h, provide as
|
|
4
|
-
import { LitElement as
|
|
3
|
+
import { consume as h, provide as m } from "@lit/context";
|
|
4
|
+
import { LitElement as u, html as c } from "lit";
|
|
5
5
|
import { property as b } from "lit/decorators.js";
|
|
6
|
-
import {
|
|
6
|
+
import { unsubscribeAll as D, safeDefine as g } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
9
|
-
for (var e = void 0,
|
|
10
|
-
(
|
|
11
|
-
return e &&
|
|
8
|
+
var $ = Object.defineProperty, l = (i, t, a, f) => {
|
|
9
|
+
for (var e = void 0, r = i.length - 1, d; r >= 0; r--)
|
|
10
|
+
(d = i[r]) && (e = d(t, a, e) || e);
|
|
11
|
+
return e && $(t, a, e), e;
|
|
12
12
|
};
|
|
13
|
-
class s extends
|
|
13
|
+
class s extends u {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.adapter = new
|
|
15
|
+
super(...arguments), this.adapter = new p(), this.subscriptions = [];
|
|
16
16
|
}
|
|
17
17
|
createRenderRoot() {
|
|
18
18
|
return this;
|
|
@@ -46,6 +46,14 @@ class s extends m {
|
|
|
46
46
|
.yearAriaLabel=${this.adapter.templateData.yearAriaLabel}
|
|
47
47
|
.invalidDateMessage=${this.adapter.templateData.invalidDateMessage}
|
|
48
48
|
.incompleteMessage=${this.adapter.templateData.incompleteMessage}
|
|
49
|
+
?allow-edit=${this.adapter.templateData.allowEdit}
|
|
50
|
+
.editLabel=${this.adapter.templateData.editLabel}
|
|
51
|
+
.editAriaLabel=${this.adapter.templateData.editAriaLabel}
|
|
52
|
+
.confirmEditLabel=${this.adapter.templateData.confirmEditLabel}
|
|
53
|
+
.cancelEditLabel=${this.adapter.templateData.cancelEditLabel}
|
|
54
|
+
.editStartedMessage=${this.adapter.templateData.editStartedMessage}
|
|
55
|
+
.editCommittedMessage=${this.adapter.templateData.editCommittedMessage}
|
|
56
|
+
.editCancelledMessage=${this.adapter.templateData.editCancelledMessage}
|
|
49
57
|
.separator=${this.adapter.templateData.separator}
|
|
50
58
|
.removePillAriaLabel=${this.adapter.templateData.removePillAriaLabel}
|
|
51
59
|
.startDateAriaLabel=${this.adapter.templateData.startDateAriaLabel}
|
|
@@ -62,17 +70,17 @@ class s extends m {
|
|
|
62
70
|
this.adapter.injectValidationIssues([t.detail.message]);
|
|
63
71
|
}
|
|
64
72
|
disconnectedCallback() {
|
|
65
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
73
|
+
super.disconnectedCallback(), this.adapter.destroy(), D(this.subscriptions);
|
|
66
74
|
}
|
|
67
75
|
}
|
|
68
|
-
|
|
76
|
+
l([
|
|
69
77
|
h({ context: n }),
|
|
70
78
|
b({ attribute: !1 })
|
|
71
79
|
], s.prototype, "formContext");
|
|
72
|
-
|
|
73
|
-
|
|
80
|
+
l([
|
|
81
|
+
m({ context: o })
|
|
74
82
|
], s.prototype, "adapter");
|
|
75
|
-
|
|
83
|
+
g("gui-range-date-input", s);
|
|
76
84
|
export {
|
|
77
85
|
s as RangeDateInputElement
|
|
78
86
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
1
|
+
import { InputWidgetAdapter as d, formContext as o, inputContext as p } from "@golemui/lit";
|
|
2
2
|
import "@golemui/gui-components/range-date-picker";
|
|
3
|
-
import { consume as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { property as
|
|
6
|
-
import { safeDefine as
|
|
3
|
+
import { consume as c, provide as m } from "@lit/context";
|
|
4
|
+
import { LitElement as b, html as u } from "lit";
|
|
5
|
+
import { property as h } from "lit/decorators.js";
|
|
6
|
+
import { unsubscribeAll as $, safeDefine as g } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
8
|
+
var L = Object.defineProperty, l = (r, e, t, A) => {
|
|
9
9
|
for (var a = void 0, i = r.length - 1, n; i >= 0; i--)
|
|
10
10
|
(n = r[i]) && (a = n(e, t, a) || a);
|
|
11
|
-
return a &&
|
|
11
|
+
return a && L(e, t, a), a;
|
|
12
12
|
};
|
|
13
|
-
class s extends
|
|
13
|
+
class s extends b {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.adapter = new
|
|
15
|
+
super(...arguments), this.adapter = new d(), this.subscriptions = [];
|
|
16
16
|
}
|
|
17
17
|
createRenderRoot() {
|
|
18
18
|
return this;
|
|
@@ -30,7 +30,7 @@ class s extends c {
|
|
|
30
30
|
render() {
|
|
31
31
|
super.render();
|
|
32
32
|
const e = this.adapter.templateData;
|
|
33
|
-
return
|
|
33
|
+
return u`
|
|
34
34
|
<gui-range-date-picker
|
|
35
35
|
.uid=${this.widget.uid}
|
|
36
36
|
.label=${e.label}
|
|
@@ -69,6 +69,14 @@ class s extends c {
|
|
|
69
69
|
.maxDateMessage=${e.maxDateMessage}
|
|
70
70
|
.disabledDateRangeMessage=${e.disabledDateRangeMessage}
|
|
71
71
|
.incompleteMessage=${e.incompleteMessage}
|
|
72
|
+
?allow-edit=${e.allowEdit}
|
|
73
|
+
.editLabel=${e.editLabel}
|
|
74
|
+
.editAriaLabel=${e.editAriaLabel}
|
|
75
|
+
.confirmEditLabel=${e.confirmEditLabel}
|
|
76
|
+
.cancelEditLabel=${e.cancelEditLabel}
|
|
77
|
+
.editStartedMessage=${e.editStartedMessage}
|
|
78
|
+
.editCommittedMessage=${e.editCommittedMessage}
|
|
79
|
+
.editCancelledMessage=${e.editCancelledMessage}
|
|
72
80
|
@inputError=${this.onInputError}
|
|
73
81
|
@blur=${() => this.adapter.onBlur()}
|
|
74
82
|
@change=${this.valueChanged}
|
|
@@ -82,17 +90,17 @@ class s extends c {
|
|
|
82
90
|
this.adapter.injectValidationIssues([e.detail.message]), this.adapter.onBlur();
|
|
83
91
|
}
|
|
84
92
|
disconnectedCallback() {
|
|
85
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
93
|
+
super.disconnectedCallback(), this.adapter.destroy(), $(this.subscriptions);
|
|
86
94
|
}
|
|
87
95
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
96
|
+
l([
|
|
97
|
+
c({ context: o }),
|
|
98
|
+
h({ attribute: !1 })
|
|
91
99
|
], s.prototype, "formContext");
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
l([
|
|
101
|
+
m({ context: p })
|
|
94
102
|
], s.prototype, "adapter");
|
|
95
|
-
|
|
103
|
+
g("gui-range-date-picker-input", s);
|
|
96
104
|
export {
|
|
97
105
|
s as RangeDatePickerElement
|
|
98
106
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { InputWidgetAdapter as
|
|
1
|
+
import { InputWidgetAdapter as d, formContext as o, inputContext as m } from "@golemui/lit";
|
|
2
2
|
import "@golemui/gui-components/range-date-time-calendar";
|
|
3
3
|
import { consume as u, provide as p } from "@lit/context";
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { property as
|
|
6
|
-
import { safeDefine as
|
|
4
|
+
import { LitElement as c, html as b } from "lit";
|
|
5
|
+
import { property as h } from "lit/decorators.js";
|
|
6
|
+
import { unsubscribeAll as $, safeDefine as g } from "@golemui/lit/internals";
|
|
7
7
|
import "rxjs";
|
|
8
|
-
var
|
|
9
|
-
for (var a = void 0,
|
|
10
|
-
(n = r
|
|
11
|
-
return a &&
|
|
8
|
+
var L = Object.defineProperty, l = (i, e, t, M) => {
|
|
9
|
+
for (var a = void 0, r = i.length - 1, n; r >= 0; r--)
|
|
10
|
+
(n = i[r]) && (a = n(e, t, a) || a);
|
|
11
|
+
return a && L(e, t, a), a;
|
|
12
12
|
};
|
|
13
|
-
class s extends
|
|
13
|
+
class s extends c {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.adapter = new
|
|
15
|
+
super(...arguments), this.adapter = new d(), this.subscriptions = [];
|
|
16
16
|
}
|
|
17
17
|
createRenderRoot() {
|
|
18
18
|
return this;
|
|
@@ -30,7 +30,7 @@ class s extends h {
|
|
|
30
30
|
render() {
|
|
31
31
|
super.render();
|
|
32
32
|
const e = this.adapter.templateData;
|
|
33
|
-
return
|
|
33
|
+
return b`
|
|
34
34
|
<gui-range-date-time-calendar
|
|
35
35
|
.uid=${this.widget.uid}
|
|
36
36
|
.label=${e.label}
|
|
@@ -68,6 +68,14 @@ class s extends h {
|
|
|
68
68
|
.incompleteMessage=${e.incompleteMessage}
|
|
69
69
|
.dayCountAriaLabel=${e.dayCountAriaLabel}
|
|
70
70
|
.disabledDayCountAriaLabel=${e.disabledDayCountAriaLabel}
|
|
71
|
+
?allow-edit=${e.allowEdit}
|
|
72
|
+
.editLabel=${e.editLabel}
|
|
73
|
+
.editAriaLabel=${e.editAriaLabel}
|
|
74
|
+
.confirmEditLabel=${e.confirmEditLabel}
|
|
75
|
+
.cancelEditLabel=${e.cancelEditLabel}
|
|
76
|
+
.editStartedMessage=${e.editStartedMessage}
|
|
77
|
+
.editCommittedMessage=${e.editCommittedMessage}
|
|
78
|
+
.editCancelledMessage=${e.editCancelledMessage}
|
|
71
79
|
@change=${this.valueChanged}
|
|
72
80
|
@inputError=${this.onInputError}
|
|
73
81
|
@blur=${() => this.adapter.onBlur()}
|
|
@@ -81,17 +89,17 @@ class s extends h {
|
|
|
81
89
|
this.adapter.injectValidationIssues([e.detail.message]), this.adapter.onBlur();
|
|
82
90
|
}
|
|
83
91
|
disconnectedCallback() {
|
|
84
|
-
super.disconnectedCallback(), this.adapter.destroy(), this.subscriptions
|
|
92
|
+
super.disconnectedCallback(), this.adapter.destroy(), $(this.subscriptions);
|
|
85
93
|
}
|
|
86
94
|
}
|
|
87
|
-
|
|
88
|
-
u({ context:
|
|
89
|
-
|
|
95
|
+
l([
|
|
96
|
+
u({ context: o }),
|
|
97
|
+
h({ attribute: !1 })
|
|
90
98
|
], s.prototype, "formContext");
|
|
91
|
-
|
|
99
|
+
l([
|
|
92
100
|
p({ context: m })
|
|
93
101
|
], s.prototype, "adapter");
|
|
94
|
-
|
|
102
|
+
g("gui-range-date-time-calendar-input", s);
|
|
95
103
|
export {
|
|
96
104
|
s as RangeDateTimeCalendarElement
|
|
97
105
|
};
|