@golemui/gui-lit 1.1.1-rc.2 → 1.1.1-rc.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 +4 -0
- package/{calendar-D31xNsxx.js → calendar-DleRbmvP.js} +2 -2
- package/{calendar.element-BhFrCsns.js → calendar.element-Cv3RBphf.js} +1 -1
- package/{checkbox.element-DAAVB651.js → checkbox.element-CpmrzdH0.js} +12 -10
- package/{currency.element-D8A2ObpM.js → currency.element-Cezgzbbs.js} +1 -1
- package/{date-input-DLiMreSS.js → date-input-B3yHsn-g.js} +1 -1
- package/{date-picker.element-DeUQtbLg.js → date-picker.element-ByZefznr.js} +3 -3
- package/{date-time-calendar-DzU-FtVl.js → date-time-calendar-CB5cNoOX.js} +3 -3
- package/{date-time-calendar.element-BLBcVsFu.js → date-time-calendar.element-DlbWZjoe.js} +1 -1
- package/{date-time-input-DZaz2heD.js → date-time-input-DrY68YDX.js} +1 -1
- package/{date-time-picker.element-BUbLdV6i.js → date-time-picker.element-CYwmumfq.js} +3 -3
- package/{date-time.element-B5onfSBG.js → date-time.element-CLLxM2nV.js} +2 -2
- package/{date.element-BsKhLrEc.js → date.element-B8ZHK9KJ.js} +2 -2
- package/{day-status-CsWStVQV.js → day-status-ljexnwEO.js} +1 -1
- package/{dropdown.element-CXpMwJsU.js → dropdown.element-DMZ7oL5n.js} +1 -1
- package/{errors-Byb2dIhK.js → errors-Bs_vYN-_.js} +1 -1
- package/index.js +902 -956
- package/index.umd.cjs +133 -133
- package/lib/components/form.element.d.ts +3 -12
- package/{list.element-eo3DIOrp.js → list.element-ADtUK2na.js} +1 -1
- package/{markdown.element-FbtwdnAv.js → markdown.element-D5zcxAUS.js} +1 -1
- package/{number.element-BEpOCzXy.js → number.element-DEY5tR_y.js} +1 -1
- package/package.json +6 -6
- package/{password.element-CBaB8h5b.js → password.element-C1aQh_iz.js} +1 -1
- package/{radiogroup.element-GKhoX1n2.js → radiogroup.element-B2G-XyGx.js} +1 -1
- package/{range-calendar-DO_woqcF.js → range-calendar-D7sG24Kx.js} +2 -2
- package/{range-calendar.element-DHLZhpnj.js → range-calendar.element-D5eb2f7p.js} +1 -1
- package/{range-date-input-Br7XqQPK.js → range-date-input-BChaoBC1.js} +1 -1
- package/{range-date-input.element-BdD4SlB4.js → range-date-input.element-C35grlYo.js} +1 -1
- package/{range-date-picker.element-DWRHiAoC.js → range-date-picker.element-Do5YsL5V.js} +3 -3
- package/{range-date-time-calendar-B3EMgN1E.js → range-date-time-calendar-DulGK2EQ.js} +3 -3
- package/{range-date-time-calendar.element-Coea6RF4.js → range-date-time-calendar.element-BV0J96Gu.js} +1 -1
- package/{range-date-time-input-Cu-T_nuC.js → range-date-time-input-8ggqckP7.js} +1 -1
- package/{range-date-time-input.element-Cti44iuW.js → range-date-time-input.element-CzgRbR9F.js} +1 -1
- package/{range-date-time-picker.element-CDN2RL1y.js → range-date-time-picker.element-hi5KdopZ.js} +3 -3
- package/{range-time-input-BP9ZL9O8.js → range-time-input-D7GFdDeA.js} +1 -1
- package/{range-time-input.element-B7wtHJoQ.js → range-time-input.element-BOHLUO8z.js} +1 -1
- package/{range-time-picker.element-CPIAiQPC.js → range-time-picker.element-DDNQMA_u.js} +2 -2
- package/{repeater.element-tEuTeMLO.js → repeater.element-Da8YN1Vy.js} +1 -1
- package/{select.element-DzUFQKcu.js → select.element-SDxBhGjz.js} +1 -1
- package/{tags.element-CPHgotb0.js → tags.element-Bnhfevp3.js} +1 -1
- package/{templates-Dmr34nwp.js → templates-Df7abEkB.js} +28 -24
- package/{textarea.element-CiNEy9uq.js → textarea.element-Dx7eYEnl.js} +1 -1
- package/{textinput.element-AL2Nr768.js → textinput.element-BnIoDRmY.js} +1 -1
- package/{time-input-5dkSm8UW.js → time-input-Kk4EX6at.js} +1 -1
- package/{time-picker-g337F8d0.js → time-picker-DLj1rhOf.js} +2 -2
- package/{time-picker.element-DLihegjg.js → time-picker.element-C3oR0EkQ.js} +1 -1
- package/{time.element-BneqgMlQ.js → time.element-X286nthD.js} +2 -2
- package/{toggle.element-Cz91CRdp.js → toggle.element-Dokdat_o.js} +4 -2
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
import { GuiFormInitConfig } from '@golemui/gui-shared';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare class FormElement extends LitElement {
|
|
5
|
-
config: GuiFormInitConfig;
|
|
6
|
-
autocomplete: string | undefined;
|
|
7
|
-
/** Wraps the form and renders the error UI for an errored FormHealth. Defaults to a red banner. */
|
|
8
|
-
formHealthBoundary?: FormHealthBoundary;
|
|
9
|
-
private coreForm?;
|
|
10
|
-
setData(data: Record<string, any>): void;
|
|
11
|
-
setMeta(meta: Record<string, any>): void;
|
|
12
|
-
createRenderRoot(): this;
|
|
13
|
-
render(): import('lit-html').TemplateResult<1>;
|
|
2
|
+
declare const FormElement_base: import('@golemui/lit').WidgetSetFormElementClass<GuiFormInitConfig>;
|
|
3
|
+
export declare class FormElement extends FormElement_base {
|
|
14
4
|
}
|
|
5
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { LitElement as x, nothing as o, html as u } from "lit";
|
|
|
4
4
|
import { property as y, state as h, query as C, customElement as R } from "lit/decorators.js";
|
|
5
5
|
import "rxjs";
|
|
6
6
|
import { d as w } from "./list-D730tmGN.js";
|
|
7
|
-
import "./errors-
|
|
7
|
+
import "./errors-Bs_vYN-_.js";
|
|
8
8
|
var D = Object.defineProperty, L = Object.getOwnPropertyDescriptor, r = (e, i, l, d) => {
|
|
9
9
|
for (var t = d > 1 ? void 0 : d ? L(i, l) : i, n = e.length - 1, s; n >= 0; n--)
|
|
10
10
|
(s = e[n]) && (t = (d ? s(i, l, t) : s(t)) || t);
|
|
@@ -2,7 +2,7 @@ import { InputWidgetAdapter as V, formContext as S, inputContext as C } from "@g
|
|
|
2
2
|
import { LitElement as k, html as u, nothing as y } from "lit";
|
|
3
3
|
import { property as n, state as H, customElement as A } from "lit/decorators.js";
|
|
4
4
|
import { classMap as $ } from "lit/directives/class-map.js";
|
|
5
|
-
import { G as D, b as F, c as _ } from "./templates-
|
|
5
|
+
import { G as D, b as F, c as _ } from "./templates-Df7abEkB.js";
|
|
6
6
|
import { styleMap as T } from "lit-html/directives/style-map.js";
|
|
7
7
|
import { ifDefined as x } from "lit/directives/if-defined.js";
|
|
8
8
|
import "./markdown-text-X-BRJT6K.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InputWidgetAdapter as v, formContext as y, inputContext as g } from "@golemui/lit";
|
|
2
2
|
import { LitElement as m, nothing as d, html as c } from "lit";
|
|
3
3
|
import { property as r, customElement as b } from "lit/decorators.js";
|
|
4
|
-
import { G as f, b as $, c as w } from "./templates-
|
|
4
|
+
import { G as f, b as $, c as w } from "./templates-Df7abEkB.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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemui/gui-lit",
|
|
3
|
-
"version": "1.1.1-rc.
|
|
3
|
+
"version": "1.1.1-rc.3",
|
|
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.1.1-rc.
|
|
29
|
-
"@golemui/core": "1.1.1-rc.
|
|
30
|
-
"@golemui/gui-components": "1.1.1-rc.
|
|
31
|
-
"@golemui/gui-shared": "1.1.1-rc.
|
|
32
|
-
"@golemui/gui-validators": "1.1.1-rc.
|
|
28
|
+
"@golemui/lit": "1.1.1-rc.3",
|
|
29
|
+
"@golemui/core": "1.1.1-rc.3",
|
|
30
|
+
"@golemui/gui-components": "1.1.1-rc.3",
|
|
31
|
+
"@golemui/gui-shared": "1.1.1-rc.3",
|
|
32
|
+
"@golemui/gui-validators": "1.1.1-rc.3",
|
|
33
33
|
"@lit/context": "^1.1.6",
|
|
34
34
|
"lit-html": "^3.3.1",
|
|
35
35
|
"lit": "^3.3.1",
|
|
@@ -2,7 +2,7 @@ import { InputWidgetAdapter as m, formContext as y, inputContext as P } from "@g
|
|
|
2
2
|
import { LitElement as w, nothing as n, html as u } from "lit";
|
|
3
3
|
import { property as o, state as g, customElement as b } from "lit/decorators.js";
|
|
4
4
|
import { classMap as v } from "lit/directives/class-map.js";
|
|
5
|
-
import { G as $, a as f, b as I, c as C } from "./templates-
|
|
5
|
+
import { G as $, a as f, b as I, c as C } from "./templates-Df7abEkB.js";
|
|
6
6
|
import { consume as D, provide as L } from "@lit/context";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
var S = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, s = (t, a, i, d) => {
|
|
@@ -2,7 +2,7 @@ import { InputWidgetAdapter as m, formContext as y, inputContext as $ } from "@g
|
|
|
2
2
|
import { LitElement as g, html as u, nothing as p } from "lit";
|
|
3
3
|
import { repeat as f } from "lit-html/directives/repeat.js";
|
|
4
4
|
import { property as s, customElement as b } from "lit/decorators.js";
|
|
5
|
-
import { G as C, b as D, c as _ } from "./templates-
|
|
5
|
+
import { G as C, b as D, c as _ } from "./templates-Df7abEkB.js";
|
|
6
6
|
import { u as F, i as q } from "./one-of-anKkm7mD.js";
|
|
7
7
|
import { consume as O, provide as w } from "@lit/context";
|
|
8
8
|
import "rxjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement as b, html as p, nothing as l } from "lit";
|
|
2
2
|
import { property as r, state as v, customElement as y } from "lit/decorators.js";
|
|
3
3
|
import { classMap as m } from "lit/directives/class-map.js";
|
|
4
|
-
import { G as D } from "./templates-
|
|
5
|
-
import { G as f, a as _, r as S, b as R, c as M, d as I, e as C } from "./day-status-
|
|
4
|
+
import { G as D } from "./templates-Df7abEkB.js";
|
|
5
|
+
import { G as f, a as _, r as S, b as R, c as M, d as I, e as C } from "./day-status-ljexnwEO.js";
|
|
6
6
|
import { G as A } from "./focus-leave.controller-2gV0pQd5.js";
|
|
7
7
|
import { p as d, g as O, t as h, r as L, D as E, m as P, c as x } from "./date-DBuYpvcO.js";
|
|
8
8
|
import { r as G, f as $, a as k, b as w, s as N, c as T } from "./pill-ranges-DpvWwP-3.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as n, formContext as o, inputContext as h } from "@golemui/lit";
|
|
2
|
-
import "./range-calendar-
|
|
2
|
+
import "./range-calendar-D7sG24Kx.js";
|
|
3
3
|
import { consume as m, provide as u } from "@lit/context";
|
|
4
4
|
import { LitElement as c, html as b } from "lit";
|
|
5
5
|
import { property as D, customElement as $ } from "lit/decorators.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement as v, nothing as p, html as u } from "lit";
|
|
2
2
|
import { property as r, customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { classMap as y } from "lit/directives/class-map.js";
|
|
4
|
-
import { G as b, b as f, c as _ } from "./templates-
|
|
4
|
+
import { G as b, b as f, c as _ } from "./templates-Df7abEkB.js";
|
|
5
5
|
import { n as D, G as P, r as h, q as S, P as E } from "./part-templates-VORbpgs2.js";
|
|
6
6
|
import { a as A, p as c, m as L, t as g } from "./date-DBuYpvcO.js";
|
|
7
7
|
import { r as C, f as $, b as k, a as I, c as R, s as w } from "./pill-ranges-DpvWwP-3.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as n, formContext as o, inputContext as h } from "@golemui/lit";
|
|
2
|
-
import "./range-date-input-
|
|
2
|
+
import "./range-date-input-BChaoBC1.js";
|
|
3
3
|
import { consume as u, provide as m } from "@lit/context";
|
|
4
4
|
import { LitElement as c, html as b } from "lit";
|
|
5
5
|
import { property as D, customElement as g } from "lit/decorators.js";
|
|
@@ -2,11 +2,11 @@ import { InputWidgetAdapter as m, formContext as y, inputContext as v } from "@g
|
|
|
2
2
|
import { LitElement as c, html as h, nothing as $ } from "lit";
|
|
3
3
|
import { property as i, query as D, state as g, customElement as b } from "lit/decorators.js";
|
|
4
4
|
import { classMap as A } from "lit/directives/class-map.js";
|
|
5
|
-
import "./range-date-input-
|
|
6
|
-
import "./range-calendar-
|
|
5
|
+
import "./range-date-input-BChaoBC1.js";
|
|
6
|
+
import "./range-calendar-D7sG24Kx.js";
|
|
7
7
|
import { G as f } from "./popup.controller-B33OvX_y.js";
|
|
8
8
|
import { r as L, D as M, d as _ } from "./date-DBuYpvcO.js";
|
|
9
|
-
import { a as w, b as x, c as C } from "./templates-
|
|
9
|
+
import { a as w, b as x, c as C } from "./templates-Df7abEkB.js";
|
|
10
10
|
import { consume as R, provide as S } from "@lit/context";
|
|
11
11
|
import "rxjs";
|
|
12
12
|
var E = Object.defineProperty, I = Object.getOwnPropertyDescriptor, a = (e, r, n, s) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LitElement as f, nothing as l, html as h } from "lit";
|
|
2
2
|
import { property as n, state as g, customElement as S } from "lit/decorators.js";
|
|
3
3
|
import { classMap as p } from "lit/directives/class-map.js";
|
|
4
|
-
import { G as k } from "./templates-
|
|
5
|
-
import { G as w, a as $, r as R, b as I, c as M, d as L, e as E } from "./day-status-
|
|
4
|
+
import { G as k } from "./templates-Df7abEkB.js";
|
|
5
|
+
import { G as w, a as $, r as R, b as I, c as M, d as L, e as E } from "./day-status-ljexnwEO.js";
|
|
6
6
|
import { G as C } from "./focus-leave.controller-2gV0pQd5.js";
|
|
7
7
|
import "./pills-BDMO2NiR.js";
|
|
8
|
-
import "./time-picker-
|
|
8
|
+
import "./time-picker-DLj1rhOf.js";
|
|
9
9
|
import { p as c, t as m, i as O, g as A, D as v } from "./date-DBuYpvcO.js";
|
|
10
10
|
import { r as x, f as P, b as B, s as F } from "./pill-ranges-DpvWwP-3.js";
|
|
11
11
|
import { i as G, s as N, r as y } from "./range-selection-CU3hxLJE.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as d, formContext as m, inputContext as u } from "@golemui/lit";
|
|
2
|
-
import "./range-date-time-calendar-
|
|
2
|
+
import "./range-date-time-calendar-DulGK2EQ.js";
|
|
3
3
|
import { consume as p, provide as h } from "@lit/context";
|
|
4
4
|
import { LitElement as c, html as b } from "lit";
|
|
5
5
|
import { property as $, customElement as g } from "lit/decorators.js";
|
|
@@ -2,7 +2,7 @@ import { LitElement as g, nothing as p, html as u } from "lit";
|
|
|
2
2
|
import { property as a, customElement as c } from "lit/decorators.js";
|
|
3
3
|
import { classMap as y } from "lit/directives/class-map.js";
|
|
4
4
|
import { styleMap as v } from "lit-html/directives/style-map.js";
|
|
5
|
-
import { G as b, b as f, c as D } from "./templates-
|
|
5
|
+
import { G as b, b as f, c as D } from "./templates-Df7abEkB.js";
|
|
6
6
|
import { G as A, g as S, a as P, r as h, f as T, p as m, b as L, d as _, m as E, c as R, o as C, P as $ } from "./part-templates-VORbpgs2.js";
|
|
7
7
|
import { c as k } from "./range-commit-8-MmYUyo.js";
|
|
8
8
|
import { r as I, f as M, b as w, a as B, s as F } from "./pill-ranges-DpvWwP-3.js";
|
package/{range-date-time-input.element-Cti44iuW.js → range-date-time-input.element-CzgRbR9F.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as m, formContext as n, inputContext as o } from "@golemui/lit";
|
|
2
|
-
import "./range-date-time-input-
|
|
2
|
+
import "./range-date-time-input-8ggqckP7.js";
|
|
3
3
|
import { consume as h, provide as u } from "@lit/context";
|
|
4
4
|
import { LitElement as D, html as c } from "lit";
|
|
5
5
|
import { property as b, customElement as $ } from "lit/decorators.js";
|
package/{range-date-time-picker.element-CDN2RL1y.js → range-date-time-picker.element-hi5KdopZ.js}
RENAMED
|
@@ -2,10 +2,10 @@ import { InputWidgetAdapter as g, formContext as c, inputContext as y } from "@g
|
|
|
2
2
|
import { LitElement as m, html as h, nothing as $ } from "lit";
|
|
3
3
|
import { property as i, state as v, customElement as b } from "lit/decorators.js";
|
|
4
4
|
import { classMap as L } from "lit/directives/class-map.js";
|
|
5
|
-
import "./range-date-time-input-
|
|
6
|
-
import "./range-date-time-calendar-
|
|
5
|
+
import "./range-date-time-input-8ggqckP7.js";
|
|
6
|
+
import "./range-date-time-calendar-DulGK2EQ.js";
|
|
7
7
|
import { G as A } from "./popup.controller-B33OvX_y.js";
|
|
8
|
-
import { a as D, b as T, c as f } from "./templates-
|
|
8
|
+
import { a as D, b as T, c as f } from "./templates-Df7abEkB.js";
|
|
9
9
|
import { consume as M, provide as C } from "@lit/context";
|
|
10
10
|
import "rxjs";
|
|
11
11
|
var w = Object.defineProperty, S = Object.getOwnPropertyDescriptor, a = (e, r, n, s) => {
|
|
@@ -2,7 +2,7 @@ import { LitElement as c, nothing as d, html as p } from "lit";
|
|
|
2
2
|
import { property as a, customElement as g } from "lit/decorators.js";
|
|
3
3
|
import { classMap as v } from "lit/directives/class-map.js";
|
|
4
4
|
import { styleMap as y } from "lit-html/directives/style-map.js";
|
|
5
|
-
import { G as b, b as f, c as T } from "./templates-
|
|
5
|
+
import { G as b, b as f, c as T } from "./templates-Df7abEkB.js";
|
|
6
6
|
import { G as _, g as E, u as P, r as h, l as L, s as m, v as S, w as A, x as C, t as D, P as R } from "./part-templates-VORbpgs2.js";
|
|
7
7
|
import { c as $ } from "./range-commit-8-MmYUyo.js";
|
|
8
8
|
import { r as I, f as w, b as k, a as M, s as F } from "./pill-ranges-DpvWwP-3.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as m, formContext as n, inputContext as o } from "@golemui/lit";
|
|
2
|
-
import "./range-time-input-
|
|
2
|
+
import "./range-time-input-D7GFdDeA.js";
|
|
3
3
|
import { consume as h, provide as u } from "@lit/context";
|
|
4
4
|
import { LitElement as c, html as b } from "lit";
|
|
5
5
|
import { property as g, customElement as D } from "lit/decorators.js";
|
|
@@ -2,11 +2,11 @@ import { InputWidgetAdapter as $, formContext as y, inputContext as v } from "@g
|
|
|
2
2
|
import { LitElement as g, html as m, nothing as T } from "lit";
|
|
3
3
|
import { property as a, query as _, state as c, customElement as b } from "lit/decorators.js";
|
|
4
4
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
5
|
-
import "./range-time-input-
|
|
5
|
+
import "./range-time-input-D7GFdDeA.js";
|
|
6
6
|
import "./time-list-DLcq8BAp.js";
|
|
7
7
|
import { G as L } from "./popup.controller-B33OvX_y.js";
|
|
8
8
|
import { k as w, s as u, t as A } from "./part-templates-VORbpgs2.js";
|
|
9
|
-
import { a as S, b as k, c as I } from "./templates-
|
|
9
|
+
import { a as S, b as k, c as I } from "./templates-Df7abEkB.js";
|
|
10
10
|
import { I as C, b as M, e as x } from "./date-DBuYpvcO.js";
|
|
11
11
|
import { consume as E, provide as P } from "@lit/context";
|
|
12
12
|
import "rxjs";
|
|
@@ -6,7 +6,7 @@ import { LitElement as b, nothing as n, html as s } from "lit";
|
|
|
6
6
|
import { repeat as f } from "lit-html/directives/repeat.js";
|
|
7
7
|
import { property as _, state as $, query as v, customElement as I } from "lit/decorators.js";
|
|
8
8
|
import "rxjs";
|
|
9
|
-
import "./errors-
|
|
9
|
+
import "./errors-Bs_vYN-_.js";
|
|
10
10
|
function w(e, t) {
|
|
11
11
|
if (e != null && typeof e == "object" && "__rid" in e)
|
|
12
12
|
return e.__rid;
|
|
@@ -3,7 +3,7 @@ import { LitElement as v, html as n, nothing as u } from "lit";
|
|
|
3
3
|
import { repeat as f } from "lit-html/directives/repeat.js";
|
|
4
4
|
import { property as a, customElement as g } from "lit/decorators.js";
|
|
5
5
|
import { classMap as $ } from "lit/directives/class-map.js";
|
|
6
|
-
import { G as C, a as D, b as w, c as O } from "./templates-
|
|
6
|
+
import { G as C, a as D, b as w, c as O } from "./templates-Df7abEkB.js";
|
|
7
7
|
import { u as E, i as S } from "./one-of-anKkm7mD.js";
|
|
8
8
|
import { consume as F, provide as _ } from "@lit/context";
|
|
9
9
|
import "rxjs";
|
|
@@ -2,7 +2,7 @@ import { InputWidgetAdapter as D, formContext as w, inputContext as C } from "@g
|
|
|
2
2
|
import { LitElement as y, nothing as c, html as m } from "lit";
|
|
3
3
|
import { property as o, customElement as b } from "lit/decorators.js";
|
|
4
4
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
5
|
-
import { G as A, b as P, c as S } from "./templates-
|
|
5
|
+
import { G as A, b as P, c as S } from "./templates-Df7abEkB.js";
|
|
6
6
|
import "./pills-BDMO2NiR.js";
|
|
7
7
|
import { styleMap as _ } from "lit-html/directives/style-map.js";
|
|
8
8
|
import { consume as E, provide as L } from "@lit/context";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { filterTap as C } from "@golemui/core";
|
|
2
|
-
import { html as
|
|
3
|
-
import { classMap as
|
|
4
|
-
class
|
|
2
|
+
import { html as a, nothing as i } from "lit";
|
|
3
|
+
import { classMap as _ } from "lit/directives/class-map.js";
|
|
4
|
+
class T {
|
|
5
5
|
constructor(r, e) {
|
|
6
6
|
r.addController(this), this.getTargets = e.getTargets, this.getState = e.getState;
|
|
7
7
|
}
|
|
@@ -12,35 +12,39 @@ class E {
|
|
|
12
12
|
if (!r) return;
|
|
13
13
|
let e = [];
|
|
14
14
|
r instanceof NodeList ? e = Array.from(r) : Array.isArray(r) ? e = r : e = [r];
|
|
15
|
-
const { uid: l, templateData: n } = this.getState(), { touched:
|
|
15
|
+
const { uid: l, templateData: n } = this.getState(), { touched: f, errors: c, readonly: v, disabled: A, hint: y, required: q } = n, d = f && c && c.length > 0;
|
|
16
16
|
C(
|
|
17
17
|
e,
|
|
18
18
|
(t) => !!t,
|
|
19
19
|
(t) => {
|
|
20
|
-
const
|
|
20
|
+
const o = ($, u) => {
|
|
21
21
|
u ? t.setAttribute($, u) : t.removeAttribute($);
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
o("aria-describedby", y ? `${l}_hint` : null), o("aria-invalid", d ? "true" : null), o("aria-errormessage", d ? `${l}_errors` : null), o("aria-readonly", v ? "true" : null), o("aria-disabled", A ? "true" : null), o("aria-required", q ? "true" : null);
|
|
24
24
|
}
|
|
25
25
|
);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
const g = (s) => s ?
|
|
28
|
+
const g = (s) => s ? a`<span aria-hidden="true"> *</span>` : i, E = (s, r, e = !1, l = void 0, n = !0) => n ? r.label ? a`<label
|
|
29
29
|
class="gui-label"
|
|
30
30
|
for=${s}
|
|
31
31
|
data-cy=${`${s}_label`}
|
|
32
32
|
id=${l ? `${s}_${l}_label` : `${s}_label`}
|
|
33
33
|
>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
34
|
+
<span class="gui-label__text"
|
|
35
|
+
>${r.label}${g(r.required)}</span
|
|
36
|
+
>
|
|
37
|
+
${h(s, r)} ${e ? b(s, r) : i}
|
|
38
|
+
</label>` : i : r.label ? a`<span
|
|
37
39
|
class="gui-label"
|
|
38
40
|
data-cy=${`${s}_label`}
|
|
39
41
|
id=${l ? `${s}_${l}_label` : `${s}_label`}
|
|
40
42
|
>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
<span class="gui-label__text"
|
|
44
|
+
>${r.label}${g(r.required)}</span
|
|
45
|
+
>
|
|
46
|
+
${h(s, r)} ${e ? b(s, r) : i}
|
|
47
|
+
</span>` : i, h = (s, r) => r.hint ? a`<div class="gui-widget-hint" id=${`${s}_hint`}>${r.hint}</div>` : a``, G = (s, r) => {
|
|
44
48
|
const e = {
|
|
45
49
|
[`gui-${s}--icon`]: !1,
|
|
46
50
|
[`gui-${s}--icon-right`]: !1
|
|
@@ -53,36 +57,36 @@ const g = (s) => s ? i`<span aria-hidden="true"> *</span>` : o, G = (s, r, e = !
|
|
|
53
57
|
};
|
|
54
58
|
return {
|
|
55
59
|
widgetClasses: e,
|
|
56
|
-
html:
|
|
57
|
-
class=${
|
|
60
|
+
html: a`<span
|
|
61
|
+
class=${_(l)}
|
|
58
62
|
data-icon=${r.icon}
|
|
59
63
|
aria-hidden="true"
|
|
60
64
|
></span>`
|
|
61
65
|
};
|
|
62
66
|
} else
|
|
63
|
-
return { widgetClasses: e, html:
|
|
67
|
+
return { widgetClasses: e, html: a`` };
|
|
64
68
|
}, b = (s, r) => {
|
|
65
69
|
const e = r.touched && r.errors && r.errors.length > 0;
|
|
66
|
-
return
|
|
67
|
-
class=${
|
|
70
|
+
return a`<ul
|
|
71
|
+
class=${_({
|
|
68
72
|
"gui-validator": !0,
|
|
69
73
|
"gui-validator--empty": !e
|
|
70
74
|
})}
|
|
71
75
|
id=${`${s}_errors`}
|
|
72
76
|
role="alert"
|
|
73
|
-
data-cy=${e ? `${s}_validator-errors` :
|
|
77
|
+
data-cy=${e ? `${s}_validator-errors` : i}
|
|
74
78
|
>
|
|
75
79
|
${e ? r.errors?.map(
|
|
76
|
-
(n) =>
|
|
80
|
+
(n) => a`<li class="gui-validator__error" data-cy=${`${s}_validator-error`}>
|
|
77
81
|
${n}
|
|
78
82
|
</li>`
|
|
79
|
-
) :
|
|
83
|
+
) : i}
|
|
80
84
|
</ul>`;
|
|
81
85
|
};
|
|
82
86
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
87
|
+
T as G,
|
|
88
|
+
G as a,
|
|
89
|
+
E as b,
|
|
86
90
|
b as c,
|
|
87
91
|
g as r
|
|
88
92
|
};
|
|
@@ -2,7 +2,7 @@ import { InputWidgetAdapter as v, formContext as b, inputContext as $ } from "@g
|
|
|
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
4
|
import { classMap as x } from "lit/directives/class-map.js";
|
|
5
|
-
import { G as f, b as C, c as w } from "./templates-
|
|
5
|
+
import { G as f, b as C, c as w } from "./templates-Df7abEkB.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";
|
|
8
8
|
import "rxjs";
|
|
@@ -2,7 +2,7 @@ import { InputWidgetAdapter as b, formContext as v, inputContext as g } from "@g
|
|
|
2
2
|
import { LitElement as c, nothing as h, html as m } from "lit";
|
|
3
3
|
import { property as r, customElement as y } from "lit/decorators.js";
|
|
4
4
|
import { classMap as f } from "lit/directives/class-map.js";
|
|
5
|
-
import { G as $, a as x, b as C, c as D } from "./templates-
|
|
5
|
+
import { G as $, a as x, b as C, c as D } from "./templates-Df7abEkB.js";
|
|
6
6
|
import { consume as O, provide as _ } from "@lit/context";
|
|
7
7
|
import "rxjs";
|
|
8
8
|
var q = Object.defineProperty, w = Object.getOwnPropertyDescriptor, s = (t, e, o, l) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement as p, nothing as n, html as d } from "lit";
|
|
2
2
|
import { property as i, customElement as m } from "lit/decorators.js";
|
|
3
3
|
import { classMap as c } from "lit/directives/class-map.js";
|
|
4
|
-
import { G as g, b as y, c as b } from "./templates-
|
|
4
|
+
import { G as g, b as y, c as b } from "./templates-Df7abEkB.js";
|
|
5
5
|
import { G as v, g as f, u as L, r as E, v as D, w as T, P as A } from "./part-templates-VORbpgs2.js";
|
|
6
6
|
var S = Object.defineProperty, P = Object.getOwnPropertyDescriptor, e = (s, o, l, r) => {
|
|
7
7
|
for (var a = r > 1 ? void 0 : r ? P(o, l) : o, u = s.length - 1, h; u >= 0; u--)
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LitElement as h, html as u } from "lit";
|
|
2
2
|
import { property as s, query as m, customElement as d } from "lit/decorators.js";
|
|
3
3
|
import { classMap as g } from "lit/directives/class-map.js";
|
|
4
|
-
import "./time-input-
|
|
4
|
+
import "./time-input-Kk4EX6at.js";
|
|
5
5
|
import "./time-list-DLcq8BAp.js";
|
|
6
6
|
import { G as c } from "./popup.controller-B33OvX_y.js";
|
|
7
7
|
import { w as b, h as y, A as v } from "./part-templates-VORbpgs2.js";
|
|
8
|
-
import { a as T, b as f, c as $ } from "./templates-
|
|
8
|
+
import { a as T, b as f, c as $ } from "./templates-Df7abEkB.js";
|
|
9
9
|
import { e as w } from "./date-DBuYpvcO.js";
|
|
10
10
|
var _ = Object.defineProperty, A = Object.getOwnPropertyDescriptor, i = (e, o, r, a) => {
|
|
11
11
|
for (var l = a > 1 ? void 0 : a ? A(o, r) : o, p = e.length - 1, n; p >= 0; p--)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as d, formContext as u, inputContext as m } from "@golemui/lit";
|
|
2
|
-
import "./time-picker-
|
|
2
|
+
import "./time-picker-DLj1rhOf.js";
|
|
3
3
|
import { consume as p, provide as h } from "@lit/context";
|
|
4
4
|
import { LitElement as c, html as g } from "lit";
|
|
5
5
|
import { property as b, customElement as $ } from "lit/decorators.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InputWidgetAdapter as o, formContext as m, inputContext as n } from "@golemui/lit";
|
|
2
|
-
import { a as h } from "./templates-
|
|
3
|
-
import "./time-input-
|
|
2
|
+
import { a as h } from "./templates-Df7abEkB.js";
|
|
3
|
+
import "./time-input-Kk4EX6at.js";
|
|
4
4
|
import { consume as u, provide as c } from "@lit/context";
|
|
5
5
|
import { LitElement as b, html as $ } from "lit";
|
|
6
6
|
import { property as D, customElement as g } from "lit/decorators.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputWidgetAdapter as b, formContext as m, inputContext as y } from "@golemui/lit";
|
|
2
|
-
import { G as v, r as f, c as $ } from "./templates-
|
|
2
|
+
import { G as v, r as f, c as $ } from "./templates-Df7abEkB.js";
|
|
3
3
|
import { LitElement as h, nothing as C, html as g } from "lit";
|
|
4
4
|
import { property as a, customElement as c } from "lit/decorators.js";
|
|
5
5
|
import { consume as _, provide as D } from "@lit/context";
|
|
@@ -71,7 +71,9 @@ let r = class extends h {
|
|
|
71
71
|
</div>
|
|
72
72
|
|
|
73
73
|
<span class="gui-label__container">
|
|
74
|
-
|
|
74
|
+
<span class="gui-label__text"
|
|
75
|
+
>${t.label}${f(t.required)}</span
|
|
76
|
+
>
|
|
75
77
|
</span>
|
|
76
78
|
</label>
|
|
77
79
|
|