@golemui/gui-lit 1.0.3 → 1.1.1-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 +26 -0
- package/{button.element-3a7rRHbA.js → button.element-CJay43iR.js} +16 -13
- package/calendar-D31xNsxx.js +267 -0
- package/{range-calendar.element-_1bHW_c1.js → calendar.element-BhFrCsns.js} +16 -16
- package/{checkbox.element-CVskoXEc.js → checkbox.element-DAAVB651.js} +49 -49
- package/{currency.element-5GSakkxF.js → currency.element-D8A2ObpM.js} +15 -11
- package/{date-CDUlLuYy.js → date-DBuYpvcO.js} +88 -29
- package/date-input-DLiMreSS.js +204 -0
- package/date-picker.element-DeUQtbLg.js +357 -0
- package/date-time-calendar-DzU-FtVl.js +374 -0
- package/date-time-calendar.element-BLBcVsFu.js +95 -0
- package/date-time-input-DZaz2heD.js +246 -0
- package/date-time-picker.element-BUbLdV6i.js +440 -0
- package/date-time.element-B5onfSBG.js +93 -0
- package/{date.element-BZO0UQez.js → date.element-BsKhLrEc.js} +27 -19
- package/day-status-CsWStVQV.js +554 -0
- package/{dropdown.element-CyJbVAA5.js → dropdown.element-CXpMwJsU.js} +53 -37
- package/{errors-QjKhr6mA.js → errors-Byb2dIhK.js} +3 -2
- package/focus-leave.controller-2gV0pQd5.js +73 -0
- package/index.js +1635 -948
- package/index.umd.cjs +2046 -601
- package/lib/components/date-picker.element.d.ts +0 -11
- package/lib/components/date-time-calendar.element.d.ts +18 -0
- package/lib/components/date-time-picker.element.d.ts +18 -0
- package/lib/components/date-time.element.d.ts +18 -0
- package/lib/components/dropdown.element.d.ts +2 -0
- package/lib/components/range-calendar.element.d.ts +2 -1
- package/lib/components/range-date-picker.element.d.ts +0 -15
- package/lib/components/range-date-time-calendar.element.d.ts +18 -0
- package/lib/components/range-date-time-input.element.d.ts +18 -0
- package/lib/components/range-date-time-picker.element.d.ts +18 -0
- package/lib/components/range-time-input.element.d.ts +18 -0
- package/lib/components/range-time-picker.element.d.ts +18 -0
- package/lib/components/time-picker.element.d.ts +18 -0
- package/lib/components/time.element.d.ts +18 -0
- package/list-D730tmGN.js +297 -0
- package/{list.element-Co3V3Cn5.js → list.element-eo3DIOrp.js} +23 -23
- package/{markdown.element-p-kC47D7.js → markdown.element-FbtwdnAv.js} +310 -218
- package/{number.element-CBr47IiY.js → number.element-BEpOCzXy.js} +76 -61
- package/package.json +6 -6
- package/part-templates-VORbpgs2.js +691 -0
- package/{password.element-n-R9RbkB.js → password.element-CBaB8h5b.js} +19 -17
- package/pill-ranges-DpvWwP-3.js +48 -0
- package/{pills-B66qz_KX.js → pills-BDMO2NiR.js} +84 -59
- package/popup.controller-B33OvX_y.js +86 -0
- package/{radiogroup.element-CeQn623u.js → radiogroup.element-KWzBx8mx.js} +55 -51
- package/range-calendar-DO_woqcF.js +466 -0
- package/{calendar.element-DcnTyvfg.js → range-calendar.element-DHLZhpnj.js} +37 -29
- package/range-commit-8-MmYUyo.js +14 -0
- package/range-date-input-Br7XqQPK.js +311 -0
- package/{range-date-input.element-BqzAF0O3.js → range-date-input.element-BdD4SlB4.js} +12 -8
- package/range-date-picker.element-DWRHiAoC.js +434 -0
- package/range-date-time-calendar-B3EMgN1E.js +734 -0
- package/range-date-time-calendar.element-Coea6RF4.js +97 -0
- package/range-date-time-input-Cu-T_nuC.js +353 -0
- package/range-date-time-input.element-Cti44iuW.js +87 -0
- package/range-date-time-picker.element-CDN2RL1y.js +472 -0
- package/range-selection-CU3hxLJE.js +25 -0
- package/range-time-input-BP9ZL9O8.js +348 -0
- package/range-time-input.element-B7wtHJoQ.js +84 -0
- package/range-time-picker.element-CPIAiQPC.js +470 -0
- package/{repeater.element-CtNgB4F5.js → repeater.element-BM1Keckd.js} +1 -1
- package/{select.element-jcDF1h-g.js → select.element-eepcXTpL.js} +117 -107
- package/{tabs.element-BvAyI71N.js → tabs.element-CvcIA8P3.js} +1 -0
- package/{tags.element-CX3vQL8L.js → tags.element-CPHgotb0.js} +21 -14
- package/templates-Dmr34nwp.js +88 -0
- package/{textarea.element-HThYqdR_.js → textarea.element-CiNEy9uq.js} +8 -7
- package/{textinput.element-CkXNzMUg.js → textinput.element-AL2Nr768.js} +10 -9
- package/time-input-5dkSm8UW.js +201 -0
- package/time-list-DLcq8BAp.js +217 -0
- package/time-picker-g337F8d0.js +299 -0
- package/time-picker.element-DLihegjg.js +89 -0
- package/time.element-BneqgMlQ.js +85 -0
- package/{toggle.element-C1kCw5H8.js → toggle.element-Cz91CRdp.js} +44 -43
- package/abstract-calendar-D0-077XJ.js +0 -545
- package/calendar-BclCC9VJ.js +0 -96
- package/date-input-DCdGWRio.js +0 -268
- package/date-picker.element-k7AJFQ5W.js +0 -168
- package/list-D1oKnH89.js +0 -283
- package/range-calendar-CBINu84w.js +0 -255
- package/range-date-input-BYXzqnr1.js +0 -395
- package/range-date-picker.element-BCBefgvY.js +0 -182
- package/templates-Dk1jxLwS.js +0 -75
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { InputWidgetAdapter as v, formContext as y, inputContext as g } from "@golemui/lit";
|
|
2
|
-
import { LitElement as m, nothing as
|
|
3
|
-
import { property as
|
|
4
|
-
import { G as f, b as
|
|
2
|
+
import { LitElement as m, nothing as d, html as c } from "lit";
|
|
3
|
+
import { property as r, customElement as b } from "lit/decorators.js";
|
|
4
|
+
import { G as f, b as $, c as w } from "./templates-Dmr34nwp.js";
|
|
5
5
|
import { b as x, a as N } from "./numeric-jmOOKz30.js";
|
|
6
6
|
import { styleMap as D } from "lit-html/directives/style-map.js";
|
|
7
7
|
import { consume as C, provide as A } from "@lit/context";
|
|
8
8
|
import "rxjs";
|
|
9
|
-
var E = Object.defineProperty, O = Object.getOwnPropertyDescriptor,
|
|
10
|
-
for (var
|
|
11
|
-
(p = t[l]) && (
|
|
12
|
-
return
|
|
9
|
+
var E = Object.defineProperty, O = Object.getOwnPropertyDescriptor, s = (t, i, e, o) => {
|
|
10
|
+
for (var u = o > 1 ? void 0 : o ? O(i, e) : i, l = t.length - 1, p; l >= 0; l--)
|
|
11
|
+
(p = t[l]) && (u = (o ? p(i, e, u) : p(u)) || u);
|
|
12
|
+
return o && u && E(i, e, u), u;
|
|
13
13
|
};
|
|
14
14
|
let a = class extends m {
|
|
15
15
|
constructor() {
|
|
@@ -22,7 +22,8 @@ let a = class extends m {
|
|
|
22
22
|
errors: this.errors,
|
|
23
23
|
readonly: this.readOnly,
|
|
24
24
|
disabled: this.disabled,
|
|
25
|
-
touched: this.touched
|
|
25
|
+
touched: this.touched,
|
|
26
|
+
required: this.required
|
|
26
27
|
}
|
|
27
28
|
})
|
|
28
29
|
});
|
|
@@ -41,8 +42,8 @@ let a = class extends m {
|
|
|
41
42
|
if (this.autoGrow)
|
|
42
43
|
if (t) {
|
|
43
44
|
t.style.width = "0px";
|
|
44
|
-
const
|
|
45
|
-
i.width = `${
|
|
45
|
+
const o = Math.max(23, t.scrollWidth);
|
|
46
|
+
i.width = `${o}px`, i.maxWidth = `${o}px`, t.style.width = "";
|
|
46
47
|
} else
|
|
47
48
|
i.width = "47px";
|
|
48
49
|
const e = {
|
|
@@ -60,7 +61,7 @@ let a = class extends m {
|
|
|
60
61
|
autocomplete: this.autocomplete
|
|
61
62
|
};
|
|
62
63
|
return c`
|
|
63
|
-
${
|
|
64
|
+
${$(this.uid, e)}
|
|
64
65
|
|
|
65
66
|
<div class="gui-widget">
|
|
66
67
|
<input
|
|
@@ -74,21 +75,35 @@ let a = class extends m {
|
|
|
74
75
|
?required=${this.required}
|
|
75
76
|
?disabled=${this.disabled}
|
|
76
77
|
?readonly=${this.readOnly}
|
|
77
|
-
step=${typeof this.step == "number" ? this.step :
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
step=${typeof this.step == "number" ? this.step : d}
|
|
79
|
+
min=${Number(this.minimum) ? this.minimum : d}
|
|
80
|
+
max=${Number(this.maximum) ? this.maximum : d}
|
|
81
|
+
placeholder=${this.placeholder || d}
|
|
82
|
+
autocomplete=${this.autocomplete || d}
|
|
80
83
|
@input=${this.valueChanged}
|
|
81
84
|
@beforeinput=${x}
|
|
82
85
|
@keydown=${this.keyDown}
|
|
83
86
|
@blur=${this.onBlur}
|
|
84
87
|
/>
|
|
85
88
|
<span class="gui-number__decoration">
|
|
86
|
-
<svg
|
|
89
|
+
<svg
|
|
90
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
91
|
+
width="12"
|
|
92
|
+
height="12"
|
|
93
|
+
viewBox="0 0 256 256"
|
|
94
|
+
aria-hidden="true"
|
|
95
|
+
>
|
|
87
96
|
<path
|
|
88
97
|
d="M213.66,165.66a8,8,0,0,1-11.32,0L128,91.31,53.66,165.66a8,8,0,0,1-11.32-11.32l80-80a8,8,0,0,1,11.32,0l80,80A8,8,0,0,1,213.66,165.66Z"
|
|
89
98
|
></path>
|
|
90
99
|
</svg>
|
|
91
|
-
<svg
|
|
100
|
+
<svg
|
|
101
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
102
|
+
width="12"
|
|
103
|
+
height="12"
|
|
104
|
+
viewBox="0 0 256 256"
|
|
105
|
+
aria-hidden="true"
|
|
106
|
+
>
|
|
92
107
|
<path
|
|
93
108
|
d="M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z"
|
|
94
109
|
></path>
|
|
@@ -96,7 +111,7 @@ let a = class extends m {
|
|
|
96
111
|
</span>
|
|
97
112
|
</div>
|
|
98
113
|
|
|
99
|
-
${
|
|
114
|
+
${w(this.uid, e)}
|
|
100
115
|
`;
|
|
101
116
|
}
|
|
102
117
|
keyDown(t) {
|
|
@@ -156,64 +171,64 @@ let a = class extends m {
|
|
|
156
171
|
);
|
|
157
172
|
}
|
|
158
173
|
};
|
|
159
|
-
|
|
160
|
-
|
|
174
|
+
s([
|
|
175
|
+
r({ type: String })
|
|
161
176
|
], a.prototype, "uid", 2);
|
|
162
|
-
|
|
163
|
-
|
|
177
|
+
s([
|
|
178
|
+
r({ type: String })
|
|
164
179
|
], a.prototype, "label", 2);
|
|
165
|
-
|
|
166
|
-
|
|
180
|
+
s([
|
|
181
|
+
r({ type: String })
|
|
167
182
|
], a.prototype, "hint", 2);
|
|
168
|
-
|
|
169
|
-
|
|
183
|
+
s([
|
|
184
|
+
r({ type: String, attribute: "locale-id" })
|
|
170
185
|
], a.prototype, "localeId", 2);
|
|
171
|
-
|
|
172
|
-
|
|
186
|
+
s([
|
|
187
|
+
r({ type: Array })
|
|
173
188
|
], a.prototype, "errors", 2);
|
|
174
|
-
|
|
175
|
-
|
|
189
|
+
s([
|
|
190
|
+
r({ type: Boolean })
|
|
176
191
|
], a.prototype, "touched", 2);
|
|
177
|
-
|
|
178
|
-
|
|
192
|
+
s([
|
|
193
|
+
r({ type: Boolean })
|
|
179
194
|
], a.prototype, "required", 2);
|
|
180
|
-
|
|
181
|
-
|
|
195
|
+
s([
|
|
196
|
+
r({ type: Boolean })
|
|
182
197
|
], a.prototype, "disabled", 2);
|
|
183
|
-
|
|
184
|
-
|
|
198
|
+
s([
|
|
199
|
+
r({ type: Boolean, attribute: "readonly" })
|
|
185
200
|
], a.prototype, "readOnly", 2);
|
|
186
|
-
|
|
187
|
-
|
|
201
|
+
s([
|
|
202
|
+
r({ type: Number })
|
|
188
203
|
], a.prototype, "value", 2);
|
|
189
|
-
|
|
190
|
-
|
|
204
|
+
s([
|
|
205
|
+
r({ type: Number })
|
|
191
206
|
], a.prototype, "step", 2);
|
|
192
|
-
|
|
193
|
-
|
|
207
|
+
s([
|
|
208
|
+
r({ type: String })
|
|
194
209
|
], a.prototype, "placeholder", 2);
|
|
195
|
-
|
|
196
|
-
|
|
210
|
+
s([
|
|
211
|
+
r({ type: String })
|
|
197
212
|
], a.prototype, "autocomplete", 2);
|
|
198
|
-
|
|
199
|
-
|
|
213
|
+
s([
|
|
214
|
+
r({ type: Number })
|
|
200
215
|
], a.prototype, "minimum", 2);
|
|
201
|
-
|
|
202
|
-
|
|
216
|
+
s([
|
|
217
|
+
r({ type: Number })
|
|
203
218
|
], a.prototype, "maximum", 2);
|
|
204
|
-
|
|
205
|
-
|
|
219
|
+
s([
|
|
220
|
+
r({ type: Number })
|
|
206
221
|
], a.prototype, "autoGrow", 2);
|
|
207
|
-
a =
|
|
222
|
+
a = s([
|
|
208
223
|
b("gui-number")
|
|
209
224
|
], a);
|
|
210
225
|
typeof customElements < "u" && !customElements.get("gui-number") && customElements.define("gui-number", a);
|
|
211
|
-
var
|
|
212
|
-
for (var
|
|
213
|
-
(p = t[l]) && (
|
|
214
|
-
return
|
|
226
|
+
var q = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (t, i, e, o) => {
|
|
227
|
+
for (var u = o > 1 ? void 0 : o ? _(i, e) : i, l = t.length - 1, p; l >= 0; l--)
|
|
228
|
+
(p = t[l]) && (u = (o ? p(i, e, u) : p(u)) || u);
|
|
229
|
+
return o && u && q(i, e, u), u;
|
|
215
230
|
};
|
|
216
|
-
let
|
|
231
|
+
let h = class extends m {
|
|
217
232
|
constructor() {
|
|
218
233
|
super(...arguments), this.adapter = new v(), this.subscriptions = [];
|
|
219
234
|
}
|
|
@@ -263,14 +278,14 @@ let d = class extends m {
|
|
|
263
278
|
};
|
|
264
279
|
n([
|
|
265
280
|
C({ context: y }),
|
|
266
|
-
|
|
267
|
-
],
|
|
281
|
+
r({ attribute: !1 })
|
|
282
|
+
], h.prototype, "formContext", 2);
|
|
268
283
|
n([
|
|
269
284
|
A({ context: g })
|
|
270
|
-
],
|
|
271
|
-
|
|
285
|
+
], h.prototype, "adapter", 2);
|
|
286
|
+
h = n([
|
|
272
287
|
b("gui-number-input")
|
|
273
|
-
],
|
|
288
|
+
], h);
|
|
274
289
|
export {
|
|
275
|
-
|
|
290
|
+
h as NumberElement
|
|
276
291
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-lit",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.1-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.umd.cjs",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"*.md"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@golemui/lit": "1.0
|
|
26
|
-
"@golemui/core": "1.0
|
|
27
|
-
"@golemui/gui-components": "1.0
|
|
28
|
-
"@golemui/gui-shared": "1.0
|
|
29
|
-
"@golemui/gui-validators": "1.0
|
|
25
|
+
"@golemui/lit": "1.1.1-rc.0",
|
|
26
|
+
"@golemui/core": "1.1.1-rc.0",
|
|
27
|
+
"@golemui/gui-components": "1.1.1-rc.0",
|
|
28
|
+
"@golemui/gui-shared": "1.1.1-rc.0",
|
|
29
|
+
"@golemui/gui-validators": "1.1.1-rc.0",
|
|
30
30
|
"@lit/context": "^1.1.6",
|
|
31
31
|
"lit-html": "^3.3.1",
|
|
32
32
|
"lit": "^3.3.1",
|