@golemui/gui-lit 1.0.1 → 1.0.3
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 +8 -0
- package/{abstract-calendar-BoqKPRmS.js → abstract-calendar-D0-077XJ.js} +18 -18
- package/{calendar-DTYKVYc3.js → calendar-BclCC9VJ.js} +26 -26
- package/{calendar.element-MubSE1bx.js → calendar.element-DcnTyvfg.js} +1 -1
- package/{currency.element-YyL4TeL0.js → currency.element-5GSakkxF.js} +65 -59
- package/{date-DTYg8sog.js → date-CDUlLuYy.js} +50 -45
- package/{date-input-BeQvyfln.js → date-input-DCdGWRio.js} +8 -8
- package/{date-picker.element-DabW_-0-.js → date-picker.element-k7AJFQ5W.js} +8 -6
- package/{date.element-BtVJSIRk.js → date.element-BZO0UQez.js} +1 -1
- package/{dropdown.element-DqzC6aXR.js → dropdown.element-CyJbVAA5.js} +23 -24
- package/index.js +69 -69
- package/index.umd.cjs +150 -146
- package/{markdown.element-CNp4wbg9.js → markdown.element-p-kC47D7.js} +22 -21
- package/{number.element-B6TsvHMK.js → number.element-CBr47IiY.js} +20 -18
- package/numeric-jmOOKz30.js +12 -0
- package/package.json +6 -6
- package/{range-calendar-9skwbwlB.js → range-calendar-CBINu84w.js} +54 -54
- package/{range-calendar.element-QTE6vGNP.js → range-calendar.element-_1bHW_c1.js} +1 -1
- package/{range-date-input-Uy8134vi.js → range-date-input-BYXzqnr1.js} +26 -26
- package/{range-date-input.element-Dj29D_OQ.js → range-date-input.element-BqzAF0O3.js} +1 -1
- package/{range-date-picker.element-CuKIBkIO.js → range-date-picker.element-BCBefgvY.js} +2 -2
- package/{textarea.element-Cu9ZW3K4.js → textarea.element-HThYqdR_.js} +5 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { InputWidgetAdapter as v, formContext as b, inputContext as
|
|
1
|
+
import { InputWidgetAdapter as v, formContext as b, inputContext as $ } from "@golemui/lit";
|
|
2
2
|
import { LitElement as m, html as n, nothing as c } from "lit";
|
|
3
3
|
import { property as i, customElement as g } from "lit/decorators.js";
|
|
4
|
-
import { classMap as
|
|
4
|
+
import { classMap as x } from "lit/directives/class-map.js";
|
|
5
5
|
import { G as f, b as C, c as w } from "./templates-Dk1jxLwS.js";
|
|
6
6
|
import { styleMap as D } from "lit-html/directives/style-map.js";
|
|
7
7
|
import { consume as _, provide as L } from "@lit/context";
|
|
@@ -58,7 +58,7 @@ let r = class extends m {
|
|
|
58
58
|
"gui-textarea--counter": !0,
|
|
59
59
|
"gui-textarea--counter__error": (t.value?.length ?? 0) > t.maxLength
|
|
60
60
|
}, l = t.counterMode === "current" ? n`<span>${t.value?.length ?? 0}</span>` : n`<span>${t.maxLength - (t.value?.length ?? 0)}</span>`;
|
|
61
|
-
a = n`<div class=${
|
|
61
|
+
a = n`<div class=${x(e)}>
|
|
62
62
|
${l}
|
|
63
63
|
<span> / ${t.maxLength}</span>
|
|
64
64
|
</div>`;
|
|
@@ -85,6 +85,7 @@ let r = class extends m {
|
|
|
85
85
|
?readonly=${t.readonly}
|
|
86
86
|
placeholder=${t.placeholder || c}
|
|
87
87
|
autocomplete=${this.autocomplete || c}
|
|
88
|
+
.value=${this.value || ""}
|
|
88
89
|
@input=${this.valueChanged}
|
|
89
90
|
@blur=${this.onBlur}
|
|
90
91
|
></textarea>
|
|
@@ -227,7 +228,7 @@ h([
|
|
|
227
228
|
i({ attribute: !1 })
|
|
228
229
|
], u.prototype, "formContext", 2);
|
|
229
230
|
h([
|
|
230
|
-
L({ context:
|
|
231
|
+
L({ context: $ })
|
|
231
232
|
], u.prototype, "adapter", 2);
|
|
232
233
|
u = h([
|
|
233
234
|
g("gui-textarea-input")
|