@elcrm/form 0.0.74 → 0.0.76

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.
@@ -1,147 +1,154 @@
1
- import e from "../core/Field.js";
2
- import { useFormFieldState as t } from "../hooks/use.js";
3
- import n from "../styles/Select.module.js";
4
- import r from "react";
5
- import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
6
- import { createPortal as s } from "react-dom";
1
+ import e from "../styles/Field.module.js";
2
+ import t from "../core/Field.js";
3
+ import { useFormFieldState as n } from "../hooks/use.js";
4
+ import r from "../styles/Select.module.js";
5
+ import i from "react";
6
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { createPortal as c } from "react-dom";
7
8
  //#region src/lib/fields/Select.tsx
8
- function c({ value: c = 0, form: u, onValue: d, name: f = "", placeholder: p = "", label: m, error: h, hidden: g = !1, disabled: _ = !1, className: v, after: y = "", before: b = "", options: x, order: S }) {
9
- let [C, w] = r.useState(!1), [T, E] = r.useState(0), [D, O] = r.useState(null), k = r.useId(), { value: A } = t(u, f, c ?? 0), j = Number(A), M = [];
10
- x && (M = Array.isArray(x) ? x.map((e) => ({
9
+ function l({ value: l = 0, form: d, onValue: f, name: p = "", placeholder: m = "", label: h, error: g, hidden: _ = !1, disabled: v = !1, className: y, after: b = "", before: x = "", options: S, order: C }) {
10
+ let [w, T] = i.useState(!1), [E, D] = i.useState(0), [O, k] = i.useState(null), A = i.useId(), { value: j } = n(d, p, l ?? 0), M = Number(j), N = [];
11
+ S && (N = Array.isArray(S) ? S.map((e) => ({
11
12
  id: e.id ?? e.i ?? 0,
12
13
  label: e.n || "",
13
14
  hidden: e.s === 0
14
- })).filter((e) => e.id !== 0 && e.label.length > 0) : Object.keys(x).map((e) => {
15
- let t = Number(e), n = x[t];
15
+ })).filter((e) => e.id !== 0 && e.label.length > 0) : Object.keys(S).map((e) => {
16
+ let t = Number(e), n = S[t];
16
17
  return {
17
18
  id: t,
18
19
  label: n?.n || "",
19
20
  hidden: n?.s === 0
20
21
  };
21
22
  }).filter((e) => e.label.length > 0));
22
- let N = (() => {
23
- if (!S || S.length === 0) return M;
24
- let e = new Map(M.map((e) => [e.id, e]));
25
- return S.map((t) => e.get(t)).filter((e) => !!e);
26
- })().filter((e) => !e.hidden), P = (e) => N.find((t) => t.id === e)?.label, F = C && N.length > 0 ? `${k}-opt-${T}` : void 0, I = (e) => {
23
+ let P = (() => {
24
+ if (!C || C.length === 0) return N;
25
+ let e = new Map(N.map((e) => [e.id, e]));
26
+ return C.map((t) => e.get(t)).filter((e) => !!e);
27
+ })().filter((e) => !e.hidden), F = (e) => P.find((t) => t.id === e)?.label, I = w && P.length > 0 ? `${A}-opt-${E}` : void 0, L = (e) => {
27
28
  let t = {
28
29
  value: e,
29
- name: f
30
+ name: p
30
31
  };
31
- u && f && u.onValue(t), d && d !== u?.onValue && d(t);
32
- }, L = (e) => {
33
- if (N.length === 0 || _) return;
34
- let t = N.findIndex((e) => e.id === j);
35
- O(e.getBoundingClientRect()), E(t >= 0 ? t : 0), w(!0);
32
+ d && p && d.onValue(t), f && f !== d?.onValue && f(t);
36
33
  }, R = (e) => {
37
- L(e.currentTarget);
34
+ if (P.length === 0 || v) return;
35
+ let t = P.findIndex((e) => e.id === M);
36
+ k(e.getBoundingClientRect()), D(t >= 0 ? t : 0), T(!0);
38
37
  }, z = (e) => {
39
- if (!_ && N.length !== 0) {
40
- if (!C && (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ")) {
41
- e.preventDefault(), L(e.currentTarget);
38
+ R(e.currentTarget);
39
+ }, B = (e) => {
40
+ if (!v && P.length !== 0) {
41
+ if (!w && (e.key === "ArrowDown" || e.key === "Enter" || e.key === " ")) {
42
+ e.preventDefault(), R(e.currentTarget);
42
43
  return;
43
44
  }
44
- if (C) {
45
+ if (w) {
45
46
  if (e.key === "Escape") {
46
- e.preventDefault(), w(!1);
47
+ e.preventDefault(), T(!1);
47
48
  return;
48
49
  }
49
50
  if (e.key === "ArrowDown") {
50
- e.preventDefault(), E((e) => (e + 1) % N.length);
51
+ e.preventDefault(), D((e) => (e + 1) % P.length);
51
52
  return;
52
53
  }
53
54
  if (e.key === "ArrowUp") {
54
- e.preventDefault(), E((e) => e - 1 < 0 ? N.length - 1 : e - 1);
55
+ e.preventDefault(), D((e) => e - 1 < 0 ? P.length - 1 : e - 1);
55
56
  return;
56
57
  }
57
58
  if (e.key === "Enter") {
58
59
  e.preventDefault();
59
- let t = N[T];
60
- t && I(t.id), w(!1);
60
+ let t = P[E];
61
+ t && L(t.id), T(!1);
61
62
  }
62
63
  }
63
64
  }
64
- }, B = {};
65
- p && (B.placeholder = p);
66
- let V = P(j), H = (V === void 0 || V === "") && !!p, U = j === 0 || P(j) === void 0;
67
- return g && U ? "" : /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ o(e, {
65
+ }, V = {};
66
+ m && (V.placeholder = m);
67
+ let H = F(M), U = (H === void 0 || H === "") && !!m, W = M === 0 || F(M) === void 0;
68
+ return _ && W ? "" : /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ s(t, {
68
69
  type: "select",
69
- label: m,
70
- element_blok: { className: [v || ""] },
71
- error: h,
70
+ label: h,
71
+ element_blok: { className: [y || ""] },
72
+ error: g,
72
73
  element_input: {
73
- className: [n.f],
74
+ className: [r.f],
74
75
  props: {
75
- onClick: R,
76
- onKeyDown: z,
77
- tabIndex: _ ? -1 : 0,
76
+ onClick: z,
77
+ onKeyDown: B,
78
+ tabIndex: v ? -1 : 0,
78
79
  role: "combobox",
79
- "aria-expanded": C,
80
+ "aria-expanded": w,
80
81
  "aria-haspopup": "listbox",
81
- "aria-controls": k,
82
- ...F ? { "aria-activedescendant": F } : {},
83
- "aria-disabled": _,
84
- "data-disabled": _
82
+ "aria-controls": A,
83
+ ...I ? { "aria-activedescendant": I } : {},
84
+ "aria-disabled": v,
85
+ "data-disabled": v
85
86
  }
86
87
  },
87
88
  children: [
88
- b,
89
- /* @__PURE__ */ a("div", {
90
- ...B,
91
- className: H ? n.placeholderValue : void 0,
92
- children: V ?? p ?? ""
89
+ x ? /* @__PURE__ */ o("span", {
90
+ className: e.affix,
91
+ children: x
92
+ }) : null,
93
+ /* @__PURE__ */ o("div", {
94
+ ...V,
95
+ className: U ? r.placeholderValue : void 0,
96
+ children: H ?? m ?? ""
93
97
  }),
94
- y
98
+ b ? /* @__PURE__ */ o("span", {
99
+ className: e.affix,
100
+ children: b
101
+ }) : null
95
102
  ]
96
- }), C && s(/* @__PURE__ */ a(l, {
97
- parent: D || void 0,
98
- onValue: I,
99
- className: v,
100
- items: N,
101
- setOpen: w,
102
- listId: k,
103
- activeIndex: T,
104
- currentValue: j
103
+ }), w && c(/* @__PURE__ */ o(u, {
104
+ parent: O || void 0,
105
+ onValue: L,
106
+ className: y,
107
+ items: P,
108
+ setOpen: T,
109
+ listId: A,
110
+ activeIndex: E,
111
+ currentValue: M
105
112
  }), document.body)] });
106
113
  }
107
- c.displayName = "SelectField";
108
- var l = ({ onValue: e, parent: t, className: r, items: s, setOpen: c, listId: l, activeIndex: d, currentValue: f }) => {
114
+ l.displayName = "SelectField";
115
+ var u = ({ onValue: e, parent: t, className: n, items: i, setOpen: c, listId: l, activeIndex: u, currentValue: f }) => {
109
116
  if (!t) return null;
110
117
  let p = () => {
111
118
  c(!1);
112
119
  }, m = (t) => {
113
120
  c(!1), e(t);
114
121
  }, h = window.innerHeight - t.bottom < 306 ? Math.max(6, t.top - 300 - 6) : Math.min(window.innerHeight - 300 - 6, t.bottom + 6), g = Math.max(t.width, 260), _ = Math.min(Math.max(6, t.left), window.innerWidth - g - 6);
115
- return /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("div", {
116
- className: n.o,
122
+ return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("div", {
123
+ className: r.o,
117
124
  onClick: p,
118
125
  "aria-hidden": !0
119
- }), /* @__PURE__ */ a("div", {
120
- className: [n.l, r].filter((e) => e !== void 0).join(" "),
126
+ }), /* @__PURE__ */ o("div", {
127
+ className: [r.l, n].filter((e) => e !== void 0).join(" "),
121
128
  style: {
122
129
  top: h + "px",
123
130
  left: _ + "px",
124
131
  width: g
125
132
  },
126
- children: /* @__PURE__ */ a(u, {
133
+ children: /* @__PURE__ */ o(d, {
127
134
  listId: l,
128
- items: s,
135
+ items: i,
129
136
  link: m,
130
- activeIndex: d,
137
+ activeIndex: u,
131
138
  currentValue: f
132
139
  })
133
140
  })] });
134
- }, u = ({ listId: e, items: t, link: n, activeIndex: r, currentValue: i }) => /* @__PURE__ */ a("ul", {
141
+ }, d = ({ listId: e, items: t, link: n, activeIndex: r, currentValue: i }) => /* @__PURE__ */ o("ul", {
135
142
  id: e,
136
143
  role: "listbox",
137
- children: t.map((t, o) => /* @__PURE__ */ a("li", {
138
- id: `${e}-opt-${o}`,
144
+ children: t.map((t, a) => /* @__PURE__ */ o("li", {
145
+ id: `${e}-opt-${a}`,
139
146
  role: "option",
140
147
  "aria-selected": i === t.id,
141
- "data-focus": r === o ? "true" : "false",
148
+ "data-focus": r === a ? "true" : "false",
142
149
  onClick: () => n(t.id),
143
150
  children: t.label
144
151
  }, t.id))
145
152
  });
146
153
  //#endregion
147
- export { c as default };
154
+ export { l as default };
@@ -32,7 +32,10 @@ function u({ value: u, form: d, onValue: f, name: p = "", placeholder: m = "", l
32
32
  element_blok: { className: [y || ""] },
33
33
  element_input: { className: [e.n] },
34
34
  children: [
35
- x,
35
+ x ? /* @__PURE__ */ c("span", {
36
+ className: e.affix,
37
+ children: x
38
+ }) : null,
36
39
  /* @__PURE__ */ c("div", {
37
40
  ref: A,
38
41
  onPaste: P,
@@ -52,7 +55,10 @@ function u({ value: u, form: d, onValue: f, name: p = "", placeholder: m = "", l
52
55
  suppressContentEditableWarning: !0,
53
56
  ...F
54
57
  }),
55
- b
58
+ b ? /* @__PURE__ */ c("span", {
59
+ className: e.affix,
60
+ children: b
61
+ }) : null
56
62
  ]
57
63
  });
58
64
  }
@@ -61,13 +61,13 @@ function h(e) {
61
61
  let [n, r] = t.split(":").map((e) => parseInt(e, 10));
62
62
  return n * 60 + r;
63
63
  }
64
- function g(e, t) {
64
+ function ee(e, t) {
65
65
  let n = Math.max(1, Math.round(t / 60));
66
66
  if (n <= 1) return e;
67
67
  let r = Math.round(e / n) * n;
68
68
  return Math.min(59, Math.max(0, r));
69
69
  }
70
- function ee(e, t, n) {
70
+ function g(e, t, n) {
71
71
  let r = d(e);
72
72
  if (!r) return "";
73
73
  let i = h(r);
@@ -82,36 +82,36 @@ function ee(e, t, n) {
82
82
  }
83
83
  return p(Math.floor(i / 60), i % 60);
84
84
  }
85
- function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeholder: x = "", label: S = "", hidden: te = !1, disabled: C = !1, error: w = "", className: T = "", after: E = "", before: ne = "", step: D = 60, min: O, max: k, id: A, spellCheck: j = !1, align: M = "start" }) {
86
- let { value: N, version: P } = n(_, b, h), F = d(N), I = !C, L = i.useRef(null), R = i.useRef(null), z = i.useRef(null), [B, V] = i.useState(!1);
85
+ function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeholder: x = "", label: S = "", hidden: C = !1, disabled: w = !1, error: T = "", className: E = "", after: D = "", before: O = "", step: k = 60, min: A, max: j, id: M, spellCheck: N = !1, align: P = "start" }) {
86
+ let { value: F, version: I } = n(_, b, h), L = d(F), R = !w, z = i.useRef(null), B = i.useRef(null), V = i.useRef(null), [H, U] = i.useState(!1);
87
87
  i.useLayoutEffect(() => {
88
- if (!B || !I) return;
89
- let { h: e, m: t } = f(F), n = (e, t) => {
88
+ if (!H || !R) return;
89
+ let { h: e, m: t } = f(L), n = (e, t) => {
90
90
  e && (t === null ? e.innerHTML = "<br>" : e.textContent = String(t));
91
91
  };
92
- n(L.current, e), n(R.current, t);
92
+ n(z.current, e), n(B.current, t);
93
93
  }, [
94
- B,
95
- F,
96
- P,
97
- I
94
+ H,
95
+ L,
96
+ I,
97
+ R
98
98
  ]);
99
- let H = i.useCallback(() => {
100
- let e = m(L.current?.textContent || "", 23), t = m(R.current?.textContent || "", 59);
99
+ let W = i.useCallback(() => {
100
+ let e = m(z.current?.textContent || "", 23), t = m(B.current?.textContent || "", 59);
101
101
  if (e === null && t === null) return "";
102
102
  let n = p(e, t);
103
103
  if (!n) return "";
104
104
  let { h: r, m: i } = f(n);
105
- return i !== null && (n = p(r, g(i, D))), n &&= ee(n, O, k), n || "";
105
+ return i !== null && (n = p(r, ee(i, k))), n &&= g(n, A, j), n || "";
106
106
  }, [
107
- O,
108
- k,
109
- D
110
- ]), U = (e) => (t) => {
111
- if (t.preventDefault(), !I) return;
107
+ A,
108
+ j,
109
+ k
110
+ ]), G = (e) => (t) => {
111
+ if (t.preventDefault(), !R) return;
112
112
  let n = u(t.clipboardData?.getData("text/plain") ?? ""), r = e === "hour" ? 23 : 59;
113
113
  if (n.length >= 4) {
114
- let e = Math.min(23, Math.max(0, parseInt(n.slice(0, 2), 10))), t = Math.min(59, Math.max(0, parseInt(n.slice(2, 4), 10))), r = L.current, i = R.current;
114
+ let e = Math.min(23, Math.max(0, parseInt(n.slice(0, 2), 10))), t = Math.min(59, Math.max(0, parseInt(n.slice(2, 4), 10))), r = z.current, i = B.current;
115
115
  r && (r.textContent = String(e), queueMicrotask(() => c(String(e).length, r))), i && (i.textContent = String(t), queueMicrotask(() => c(String(t).length, i)));
116
116
  return;
117
117
  }
@@ -124,7 +124,7 @@ function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeh
124
124
  if (Number.isNaN(o)) return;
125
125
  let s = String(Math.min(r, Math.max(0, o)));
126
126
  a.textContent = s, queueMicrotask(() => c(s.length, a));
127
- }, W = (e) => {
127
+ }, K = (e) => {
128
128
  let t = e.target, n = t.textContent || "", r = s(t), i = n.slice(0, r).replace(/\D/g, "").length, a = u(n).slice(0, 2);
129
129
  if (a === "") {
130
130
  t.innerHTML = "<br>", queueMicrotask(() => c(0, t));
@@ -136,7 +136,7 @@ function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeh
136
136
  t.textContent = l;
137
137
  let d = Math.min(i, l.length);
138
138
  queueMicrotask(() => c(d, t));
139
- }, G = (e) => {
139
+ }, q = (e) => {
140
140
  let t = e.target, n = t.textContent || "", r = s(t), i = n.slice(0, r).replace(/\D/g, "").length, a = u(n).slice(0, 2);
141
141
  if (a === "") {
142
142
  t.innerHTML = "<br>", queueMicrotask(() => c(0, t));
@@ -148,23 +148,23 @@ function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeh
148
148
  t.textContent = l;
149
149
  let d = Math.min(i, l.length);
150
150
  queueMicrotask(() => c(d, t));
151
- }, K = (e) => {
152
- (e.key === "Enter" || e.key === ":") && (e.preventDefault(), R.current?.focus());
153
- }, q = (e) => {
151
+ }, te = (e) => {
152
+ (e.key === "Enter" || e.key === ":") && (e.preventDefault(), B.current?.focus());
153
+ }, ne = (e) => {
154
154
  e.key === "Enter" && e.preventDefault();
155
155
  }, J = (e) => {
156
156
  let t = e.currentTarget;
157
- (t.textContent || "").trim().length || (t.innerHTML = "<br>"), I && V(!0);
157
+ (t.textContent || "").trim().length || (t.innerHTML = "<br>"), R && U(!0);
158
158
  }, Y = (e) => {
159
159
  r.Blur(e);
160
160
  };
161
161
  i.useEffect(() => {
162
- let e = z.current;
162
+ let e = V.current;
163
163
  if (!e) return;
164
164
  let t = (t) => {
165
165
  let n = t.relatedTarget;
166
166
  if (n && e.contains(n)) return;
167
- let r = H();
167
+ let r = W();
168
168
  _ && b && _.setValue({
169
169
  name: b,
170
170
  value: r
@@ -174,60 +174,63 @@ function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeh
174
174
  }), y && b && y({
175
175
  value: r,
176
176
  name: b
177
- }), V(!1);
177
+ }), U(!1);
178
178
  };
179
179
  return e.addEventListener("focusout", t), () => e.removeEventListener("focusout", t);
180
180
  }, [
181
181
  _,
182
182
  b,
183
183
  y,
184
- O,
184
+ A,
185
+ j,
185
186
  k,
186
- D,
187
- H
187
+ W
188
188
  ]);
189
- let { h: X, m: Z } = f(F), Q = {};
190
- I && (Q.edit = "");
189
+ let { h: X, m: Z } = f(L), Q = {};
190
+ R && (Q.edit = "");
191
191
  let $ = { ...Q }, re = { ...Q };
192
192
  x && ($.placeholder = x);
193
- let ie = F !== "" || B;
194
- return te && F === "" ? null : /* @__PURE__ */ o(t, {
193
+ let ie = L !== "" || H;
194
+ return C && L === "" ? null : /* @__PURE__ */ o(t, {
195
195
  type: "time",
196
196
  label: S,
197
- error: w,
198
- element_blok: { className: [T || ""] },
197
+ error: T,
198
+ element_blok: { className: [E || ""] },
199
199
  element_input: {
200
200
  className: [
201
201
  e.w,
202
202
  e.time,
203
- M === "center" ? e.timeAlignCenter : ""
203
+ P === "center" ? e.timeAlignCenter : ""
204
204
  ].filter(Boolean),
205
- props: { "data-disabled": C || !I ? "true" : void 0 }
205
+ props: { "data-disabled": w || !R ? "true" : void 0 }
206
206
  },
207
207
  children: [
208
- ne,
208
+ O ? /* @__PURE__ */ a("span", {
209
+ className: e.affix,
210
+ children: O
211
+ }) : null,
209
212
  /* @__PURE__ */ o("div", {
210
- ref: z,
213
+ ref: V,
211
214
  className: e.timeInner,
212
215
  role: "group",
213
216
  "aria-label": S || "Время",
214
217
  children: [
215
218
  /* @__PURE__ */ a("div", {
216
- id: A,
217
- ref: L,
219
+ id: M,
220
+ ref: z,
218
221
  className: e.timePart,
219
- contentEditable: I ? "plaintext-only" : !1,
222
+ contentEditable: R ? "plaintext-only" : !1,
220
223
  suppressContentEditableWarning: !0,
221
- spellCheck: j,
224
+ spellCheck: N,
222
225
  inputMode: "numeric",
223
- onPaste: U("hour"),
224
- onInput: W,
225
- onKeyDown: K,
226
+ onPaste: G("hour"),
227
+ onInput: K,
228
+ onKeyDown: te,
226
229
  onFocus: J,
227
230
  onBlur: Y,
228
231
  "aria-label": "Часы, 0–23",
229
232
  ...$,
230
- children: !I || !B ? X === null ? "" : l(X) : null
233
+ children: !R || !H ? X === null ? "" : l(X) : null
231
234
  }),
232
235
  ie && /* @__PURE__ */ a("span", {
233
236
  className: e.timeSep,
@@ -235,24 +238,27 @@ function _({ value: h = "", form: _, onValue: v, onBlur: y, name: b = "", placeh
235
238
  children: ":"
236
239
  }),
237
240
  /* @__PURE__ */ a("div", {
238
- ref: R,
241
+ ref: B,
239
242
  className: e.timePart,
240
- contentEditable: I ? "plaintext-only" : !1,
243
+ contentEditable: R ? "plaintext-only" : !1,
241
244
  suppressContentEditableWarning: !0,
242
- spellCheck: j,
245
+ spellCheck: N,
243
246
  inputMode: "numeric",
244
- onPaste: U("minute"),
245
- onInput: G,
246
- onKeyDown: q,
247
+ onPaste: G("minute"),
248
+ onInput: q,
249
+ onKeyDown: ne,
247
250
  onFocus: J,
248
251
  onBlur: Y,
249
252
  "aria-label": "Минуты, 0–59",
250
253
  ...re,
251
- children: !I || !B ? Z === null ? "" : l(Z) : null
254
+ children: !R || !H ? Z === null ? "" : l(Z) : null
252
255
  })
253
256
  ]
254
257
  }),
255
- E
258
+ D ? /* @__PURE__ */ a("span", {
259
+ className: e.affix,
260
+ children: D
261
+ }) : null
256
262
  ]
257
263
  });
258
264
  }
package/dist/index.d.ts CHANGED
@@ -13,10 +13,12 @@ export { default as OptionsField } from './fields/Options';
13
13
  export { default as SelectField } from './fields/Select';
14
14
  export { default as ModalField } from './fields/Modal';
15
15
  export { default as PasswordField } from './fields/Password';
16
+ export { default as CheckField } from './fields/Check';
16
17
  export { useForm, useFormField, useFormFieldState } from './hooks/use';
17
18
  export type { TInput, TValue, TPasswordField, TFieldFormBindings, TFieldPresentation, } from './fields/type';
18
19
  export type { TRange, TProgress } from './fields/Range';
19
20
  export type { TTime } from './fields/Time';
21
+ export type { TCheck } from './fields/Check';
20
22
  export type { FormValues, UseFormApi, UseFormFieldStateResult, } from './hooks/use';
21
23
  export type { EditableFieldTarget, EditableClipboardEvent, } from './events/onEvent';
22
24
  export { asEditableClipboard } from './events/onEvent';
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  var el = document.createElement("style");
6
6
  el.id = "elcrm-form-base-styles";
7
7
  el.setAttribute("data-elcrm", "form");
8
- el.textContent = "._l_ita6u_2{min-width:var(--field-width);gap:var(--field-block-gap,0);flex-direction:column;margin:0;padding:0;display:flex;position:relative}._l_ita6u_2>dt,._l_ita6u_2>dd{margin:0;padding:0}._l_ita6u_2[data-field=group] div{cursor:pointer;border-bottom:var(--field-border);padding:var(--field-padding);margin:0}._l_ita6u_2[data-field=group] div:last-child{border-bottom:0}._l_ita6u_2 [placeholder]:empty:before{content:attr(placeholder);color:var(--field-placeholder);opacity:1;font-style:normal;font-weight:400;display:block}._l_ita6u_2 [placeholder]:focus:before{display:none}._f_ita6u_39{box-sizing:border-box;align-items:center;gap:var(--field-icon-gap,10px);border:var(--field-border);border-radius:var(--field-radius);background:var(--field-background);color:var(--field-color);padding:0 var(--field-side-padding,14px);transition:border-color .16s,box-shadow .16s,background-color .16s,opacity .16s;display:flex;overflow:hidden}._f_ita6u_39:hover{border-color:var(--field-border-hover,var(--field-border))}._f_ita6u_39:focus-within{border-color:var(--field-border-focus,var(--field-border));box-shadow:0 0 0 3px var(--field-focus-ring,#0000);background:var(--field-background-focus,var(--field-background))}._f_ita6u_39._e_ita6u_63:focus-within{background:var(--field-error-background);color:var(--field-error-color)}._f_ita6u_39[data-disabled=true]{background:var(--field-background-disabled,var(--field-background));border-color:var(--field-border-disabled,var(--field-border));color:var(--field-color-disabled,var(--field-placeholder));cursor:not-allowed;opacity:.85}._f_ita6u_39[data-disabled=true]>*{cursor:not-allowed}._f_ita6u_39>div{min-height:var(--field-height);line-height:calc(var(--field-height) - 2px);padding:var(--field-inner-padding,0 2px);font-size:var(--control-font-size,14px);text-wrap:pretty;outline:0;flex:1;margin:0}._f_ita6u_39>div::selection{background:var(--field-selection-bg,#b3d4fc);color:var(--field-selection-color,inherit)}._f_ita6u_39>:not(div){color:var(--field-icon-color,var(--field-placeholder));flex:none;justify-content:center;align-items:center;display:inline-flex}._f_ita6u_39>:not(div) svg{width:20px;height:20px}._f_ita6u_39 input::placeholder,._f_ita6u_39 textarea::placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_ita6u_39 input::-webkit-input-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_ita6u_39 textarea::-webkit-input-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_ita6u_39 input::-moz-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_ita6u_39 textarea::-moz-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._n_ita6u_127 div{min-height:var(--field-note-height);line-height:var(--field-note-line-height);padding-top:var(--field-note-padding,var(--field-note-padding-top,8px));padding-bottom:var(--field-note-padding,var(--field-note-padding-top,8px))}._w_ita6u_134>div{text-wrap:nowrap;overflow:scroll hidden}._w_ita6u_134>div::-webkit-scrollbar{width:0;height:0}._time_ita6u_144>div{text-wrap:nowrap;align-items:center;min-width:0;display:flex;overflow:visible}._time_ita6u_144 ._timeInner_ita6u_151{justify-content:flex-start;align-items:center;gap:4px;width:100%;min-width:0;display:flex}._time_ita6u_144._timeAlignCenter_ita6u_162 ._timeInner_ita6u_151{justify-content:center}._time_ita6u_144 ._timeSep_ita6u_165{opacity:.65;-webkit-user-select:none;user-select:none;flex:none;padding:0 2px;font-weight:500;transform:translateY(-1px)}._time_ita6u_144 ._timePart_ita6u_176{box-sizing:border-box;width:1em;min-width:0;color:inherit;font:inherit;line-height:inherit;text-align:left;min-height:var(--field-height);cursor:text;background:0 0;border:0;border-radius:6px;outline:none;flex:none;margin:0;padding:0}._time_ita6u_144 ._timePart_ita6u_176[contenteditable=false]{cursor:not-allowed;opacity:.7}._time_ita6u_144 ._timePart_ita6u_176:empty:before{content:attr(placeholder);color:var(--field-placeholder);opacity:1;font-weight:400}._time_ita6u_144 ._timePart_ita6u_176:focus:empty:before{content:none}._time_ita6u_144 ._timePart_ita6u_176:focus-visible{background:0 0}._time_ita6u_144._timeAlignCenter_ita6u_162 ._timePart_ita6u_176{text-align:center}._t_ita6u_144{color:var(--field-label-color);font-size:var(--field-label-size);padding-bottom:10px}._g_ita6u_223{flex-direction:column}._range_ita6u_227>div{box-sizing:border-box;min-width:0;min-height:var(--field-height);flex:1;align-items:center;line-height:normal;display:flex}._range_ita6u_227 ._rangeTrack_ita6u_236{box-sizing:border-box;width:100%;height:var(--field-range-bar-height,14px);background:var(--field-range-track,#e0e0e0);cursor:pointer;touch-action:none;border-radius:999px;outline:none;flex-shrink:0;position:relative;overflow:hidden}._range_ita6u_227 ._rangeTrack_ita6u_236:focus-visible{box-shadow:0 0 0 3px var(--field-focus-ring,#0000)}._range_ita6u_227 ._rangeTrack_ita6u_236[data-disabled=true]{cursor:not-allowed;opacity:.55;pointer-events:none}._range_ita6u_227 ._rangeFill_ita6u_257{background:var(--field-range-fill,#00b5ad);pointer-events:none;border-radius:999px 0 0 999px;width:0;min-width:0;height:100%}._range_ita6u_227 ._rangeFillFull_ita6u_268{border-radius:999px}._h_ita6u_272{--field-border:0}._h_ita6u_272 div{border:var(--field-check-box-border,--field-border);width:var(--field-height);height:var(--field-height);border-radius:var(--field-radius);background:var(--field-background);cursor:pointer;flex:none;gap:10px;margin:0;position:relative}._h_ita6u_272 div[aria-checked=true]{background:var(--field-background-active)}._h_ita6u_272 div:after{content:\"\";background:0 0;border-top:none;border-bottom:3px solid #fcfff4;border-left:3px solid #fcfff4;border-right:none;width:9px;height:5px;margin:4px;position:absolute;top:5px;left:4px;transform:rotate(-45deg)}._e_ita6u_63{border-color:var(--field-error-border);background:var(--field-error-background);color:var(--field-error-color)}._m_ita6u_311{color:var(--field-error-color);margin-top:6px;font-size:12px;font-style:normal}\n\n._o_14hhr_2{z-index:98;background:0 0;position:fixed;inset:0}._c_14hhr_13{background:var(--select-background);z-index:99;max-height:min(92vh,480px);color:var(--select-color,#333);box-sizing:border-box;border-radius:10px;min-width:259px;margin:0;padding:10px 12px 12px;display:block;position:fixed;overflow:hidden auto;box-shadow:5px 7px 18px #000000a8}._c_14hhr_13 [grid-calendar]{grid-template-columns:repeat(7,1fr);grid-auto-rows:34px;gap:2px;display:grid}._c_14hhr_13 [grid-calendar]>p{color:var(--color-placeholder);box-sizing:border-box;justify-content:center;align-items:center;margin:0;padding:0;font-size:.75rem;font-weight:500;line-height:1;display:flex}._c_14hhr_13 [grid-month]{grid-template-columns:1fr 1fr 1fr 1fr;width:250px;display:grid}._c_14hhr_13 b{cursor:pointer;text-align:center;border-radius:5px;padding:8px 5px;font-weight:400;display:block}._c_14hhr_13 b.__active_14hhr_64{background:var(--bg-select-active)}._c_14hhr_13 b:hover{background:var(--bg-select-hover)}._c_14hhr_13 p{color:var(--color-placeholder);text-align:center;cursor:default;pointer-events:none;padding:0}._c_14hhr_13 i{text-align:center;cursor:pointer;border-radius:5px;flex:0 30px;padding:9px}._c_14hhr_13 i:hover{background:var(--bg-select-hover)}._c_14hhr_13 i:before{cursor:pointer;display:block}._c_14hhr_13 s{align-items:center;gap:4px;padding-bottom:6px;font-style:normal;text-decoration:none;display:flex}._c_14hhr_13 s h2{text-align:center;min-width:0;color:var(--select-color,#333);cursor:default;flex-wrap:nowrap;flex:auto;justify-content:center;align-items:center;gap:8px;margin:0;padding:0;font-size:16px;font-weight:400;line-height:1.25;display:flex}._c_14hhr_13 ._dateHeaderMonth_14hhr_119,._c_14hhr_13 ._dateHeaderYear_14hhr_119{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:6px;padding:2px 8px}._c_14hhr_13 ._dateHeaderMonth_14hhr_119:hover,._c_14hhr_13 ._dateHeaderYear_14hhr_119:hover{background:var(--bg-select-hover)}._c_14hhr_13 ._dateHeaderDisabled_14hhr_129{cursor:not-allowed;opacity:.45;pointer-events:none}._c_14hhr_13 ._dateHeaderDisabled_14hhr_129[data-active=true],._c_14hhr_13 ._dateHeaderDisabled_14hhr_129[data-current=true]{opacity:.45}._c_14hhr_13 [grid-calendar] b[data-current=true],._c_14hhr_13 [grid-month] b[data-current=true]{background:color-mix(in srgb, var(--field-background-active) 52%, transparent);font-weight:600}._c_14hhr_13 [grid-calendar] b[data-active=true]:not([data-current=true]),._c_14hhr_13 [grid-month] b[data-active=true]:not([data-current=true]){outline:2px solid var(--field-background-active);outline-offset:-2px}._c_14hhr_13 [grid-calendar] b[data-active=true][data-current=true],._c_14hhr_13 [grid-month] b[data-active=true][data-current=true]{box-shadow:inset 0 0 0 2px var(--field-background-active)}._c_14hhr_13 [grid-calendar] p[data-current=true]{background:color-mix(in srgb, var(--field-background-active) 52%, transparent);color:inherit;border-radius:5px;font-weight:600}._c_14hhr_13 [grid-calendar] p[data-active=true]:not([data-current=true]){outline:2px solid var(--field-background-active);outline-offset:-2px;opacity:.85}._c_14hhr_13 [grid-calendar] p[data-active=true][data-current=true]{box-shadow:inset 0 0 0 2px var(--field-background-active)}._c_14hhr_13 span{text-align:center;padding:2px}._c_14hhr_13 span p{color:var(--color-placeholder);padding:8px 5px}._c_14hhr_13 [grid-calendar]>span{box-sizing:border-box;justify-content:stretch;align-items:stretch;min-height:0;padding:0;display:flex}._c_14hhr_13 [grid-calendar]>span>b,._c_14hhr_13 [grid-calendar]>span>p{box-sizing:border-box;border-radius:5px;flex:auto;justify-content:center;align-items:center;width:100%;min-height:0;margin:0;padding:0;display:flex}._c_14hhr_13 ._as_14hhr_196{cursor:ns-resize}._c_14hhr_13 ._ap_14hhr_199{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;-webkit-user-select:text;user-select:text}[field=password][show] dd,[field=password] dd:before{-webkit-text-security:none}[field=code] div{gap:8px;display:flex}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{cursor:pointer;max-width:35px;padding:0}[field=check] [active]:after{content:\"\";background:#394264;border-radius:5px;width:15px;height:15px;display:block}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;cursor:pointer;position:relative}[field=file] img{aspect-ratio:16/9;object-fit:contain;cursor:pointer;width:-webkit-fill-available;display:block}[field=file] label{aspect-ratio:16/9;object-fit:contain;cursor:pointer;width:-webkit-fill-available;display:block;position:absolute}[field=color] dd{border:0;gap:3px;padding:0;display:flex}[field=color] dd s{cursor:pointer;opacity:.6;border:1px solid #dde2e4;border-radius:6px;flex:1}[field=color] dd s:hover{opacity:.9}[field=color] dd s[active=true]{opacity:1}\n\n:root{--select-overlay:transparent;--select-height:52px;--select-separator:1px solid #c6c6c8;--select-color:#000;--select-background:#fff;--select-li-hover-bg:#f2f2f7;--select-li-focus-bg:#e5e5ea;--select-li-selected-bg:#e5e5ea;--select-icon:calc(var(--select-height) / 1.5);--select-icon-padding:calc((var(--select-height) - var(--select-icon)) / 2);--select-font-size:17px}._o_12209_20{z-index:98;background:var(--select-overlay);position:fixed;inset:0}._l_12209_30{background:var(--select-background);z-index:99;border-radius:20px;max-height:300px;margin:0;padding:0;display:block;position:fixed;overflow:scroll}._l_12209_30::-webkit-scrollbar{width:0;height:0}._l_12209_30 ul{width:100%;max-height:300px;margin:0;padding:0;list-style:none;display:block;overflow:hidden auto}._l_12209_30 li{border-bottom:var(--select-separator);cursor:pointer;color:var(--select-color);height:var(--select-height);line-height:var(--select-height);font-size:var(--select-font-size);white-space:nowrap;text-overflow:ellipsis;opacity:1;margin:0;padding:0 14px;display:block;overflow:hidden;text-align:left!important;border-left:0!important}._l_12209_30 li[aria-selected=true]{background:var(--select-li-selected-bg,var(--select-li-hover-bg))}._l_12209_30 li:hover{background:var(--select-li-hover-bg,#f2f2f7)}._l_12209_30 li[data-focus=true]{background:var(--select-li-focus-bg,#e5e5ea)}._l_12209_30 li:last-child{border-bottom:0}._i_12209_93{width:var(--select-icon);height:var(--select-icon);color:var(--field-color);right:var(--select-icon-padding);top:var(--select-icon-padding);position:absolute}._placeholderValue_12209_103{color:var(--field-placeholder);font-weight:400}._f_12209_108{cursor:pointer}._f_12209_108[aria-disabled=true]{cursor:not-allowed}\n";
8
+ el.textContent = "._l_1to3e_2{min-width:var(--field-width);gap:var(--field-block-gap,0);flex-direction:column;margin:0;padding:0;display:flex;position:relative}._l_1to3e_2>dt,._l_1to3e_2>dd{margin:0}._l_1to3e_2[data-field=group] div{cursor:pointer;border-bottom:var(--field-border);padding:var(--field-padding);margin:0}._l_1to3e_2[data-field=group] div:last-child{border-bottom:0}._l_1to3e_2 [placeholder]:empty:before{content:attr(placeholder);color:var(--field-placeholder);opacity:1;font-style:normal;font-weight:400;display:block}._l_1to3e_2 [placeholder]:focus:before{display:none}._f_1to3e_38{box-sizing:border-box;align-items:center;gap:var(--field-icon-gap,10px);border:var(--field-border);border-radius:var(--field-radius);background:var(--field-background);color:var(--field-color);padding:var(--control-inner-padding,0 var(--field-side-padding,14px));transition:border-color .16s,box-shadow .16s,background-color .16s,opacity .16s;display:flex;overflow:hidden}._f_1to3e_38:hover{border-color:var(--field-border-hover,var(--field-border))}._f_1to3e_38:focus-within{border-color:var(--field-border-focus,var(--field-border));box-shadow:0 0 0 3px var(--field-focus-ring,#0000);background:var(--field-background-focus,var(--field-background))}._f_1to3e_38._e_1to3e_63:focus-within{background:var(--field-error-background);color:var(--field-error-color)}._f_1to3e_38[data-disabled=true]{background:var(--field-background-disabled,var(--field-background));border-color:var(--field-border-disabled,var(--field-border));color:var(--field-color-disabled,var(--field-placeholder));cursor:not-allowed;opacity:.85}._f_1to3e_38[data-disabled=true]>*{cursor:not-allowed}._f_1to3e_38>div{min-height:var(--field-height);line-height:calc(var(--field-height) - 2px);font-size:var(--control-font-size,14px);text-wrap:pretty;outline:0;flex:1;margin:0;padding:0}._f_1to3e_38>div::selection{background:var(--field-selection-bg,#b3d4fc);color:var(--field-selection-color,inherit)}._f_1to3e_38>:not(div){color:var(--field-icon-color,var(--field-placeholder));flex:none;justify-content:center;align-items:center;display:inline-flex}._f_1to3e_38>:not(div) svg{width:20px;height:20px}._f_1to3e_38 input::placeholder,._f_1to3e_38 textarea::placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_1to3e_38 input::-webkit-input-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_1to3e_38 textarea::-webkit-input-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_1to3e_38 input::-moz-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._f_1to3e_38 textarea::-moz-placeholder{color:var(--field-placeholder);opacity:1;font-weight:400}._n_1to3e_127 div{min-height:var(--field-note-height);line-height:var(--field-note-line-height);padding-top:var(--field-note-padding,var(--field-note-padding-top,8px));padding-bottom:var(--field-note-padding,var(--field-note-padding-top,8px))}._w_1to3e_134>div{text-wrap:nowrap;overflow:scroll hidden}._w_1to3e_134>div::-webkit-scrollbar{width:0;height:0}._time_1to3e_144>div{text-wrap:nowrap;align-items:center;min-width:0;display:flex;overflow:visible}._time_1to3e_144 ._timeInner_1to3e_151{justify-content:flex-start;align-items:center;gap:4px;width:100%;min-width:0;display:flex}._time_1to3e_144._timeAlignCenter_1to3e_162 ._timeInner_1to3e_151{justify-content:center}._time_1to3e_144 ._timeSep_1to3e_165{opacity:.65;-webkit-user-select:none;user-select:none;flex:none;padding:0 2px;font-weight:500;transform:translateY(-1px)}._time_1to3e_144 ._timePart_1to3e_176{box-sizing:border-box;width:1em;min-width:0;color:inherit;font:inherit;line-height:inherit;text-align:left;min-height:var(--field-height);cursor:text;background:0 0;border:0;border-radius:6px;outline:none;flex:none;margin:0;padding:0}._time_1to3e_144 ._timePart_1to3e_176[contenteditable=false]{cursor:not-allowed;opacity:.7}._time_1to3e_144 ._timePart_1to3e_176:empty:before{content:attr(placeholder);color:var(--field-placeholder);opacity:1;font-weight:400}._time_1to3e_144 ._timePart_1to3e_176:focus:empty:before{content:none}._time_1to3e_144 ._timePart_1to3e_176:focus-visible{background:0 0}._time_1to3e_144._timeAlignCenter_1to3e_162 ._timePart_1to3e_176{text-align:center}._t_1to3e_144{color:var(--field-label-color);font-size:var(--field-label-size);padding-bottom:10px}._affix_1to3e_223{color:var(--field-icon-color,var(--field-placeholder));font-size:inherit;-webkit-user-select:none;user-select:none;flex:none;justify-content:center;align-items:center;margin:0;padding:0;line-height:1;display:inline-flex}._g_1to3e_237{flex-direction:column}._range_1to3e_241>div{box-sizing:border-box;min-width:0;min-height:var(--field-height);flex:1;align-items:center;line-height:normal;display:flex}._range_1to3e_241 ._rangeTrack_1to3e_250{box-sizing:border-box;width:100%;height:var(--field-range-bar-height,14px);background:var(--field-range-track,#e0e0e0);cursor:pointer;touch-action:none;border-radius:999px;outline:none;flex-shrink:0;position:relative;overflow:hidden}._range_1to3e_241 ._rangeTrack_1to3e_250:focus-visible{box-shadow:0 0 0 3px var(--field-focus-ring,#0000)}._range_1to3e_241 ._rangeTrack_1to3e_250[data-disabled=true]{cursor:not-allowed;opacity:.55;pointer-events:none}._range_1to3e_241 ._rangeFill_1to3e_271{background:var(--field-range-fill,#00b5ad);pointer-events:none;border-radius:999px 0 0 999px;width:0;min-width:0;height:100%}._range_1to3e_241 ._rangeFillFull_1to3e_282{border-radius:999px}._checkbox_1to3e_286>div{min-height:var(--field-height);align-items:flex-start;width:100%;padding:0;line-height:normal;display:flex}._checkControl_1to3e_295{width:100%;min-height:var(--field-height);color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;outline:none;align-items:flex-start;gap:12px;margin:0;padding:10px 0;display:flex}._checkControl_1to3e_295:focus-visible{box-shadow:0 0 0 3px var(--field-focus-ring,#0000);border-radius:calc(var(--field-radius) - 2px)}._checkControl_1to3e_295[aria-disabled=true]{cursor:not-allowed}._checkBox_1to3e_319{border:var(--field-check-box-border,var(--field-border));background:0 0;border-radius:8px;flex:none;justify-content:center;align-items:center;width:22px;height:22px;transition:background-color .16s,border-color .16s,opacity .16s;display:inline-flex}._checkMark_1to3e_332{border-top:none;border-bottom:2px solid #fcfff4;border-left:2px solid #fcfff4;border-right:none;width:11px;height:6px;transform:translateY(-1px)rotate(-45deg)}._checkText_1to3e_341{min-width:0;color:inherit;font-size:var(--control-font-size,14px);flex:auto;padding-top:2px;line-height:1.25}._checkControl_1to3e_295[aria-checked=true] ._checkBox_1to3e_319{background:var(--field-background-active)}._h_1to3e_354{--field-border:0}._h_1to3e_354 div{border:var(--field-check-box-border,--field-border);width:var(--field-height);height:var(--field-height);border-radius:var(--field-radius);background:var(--field-background);cursor:pointer;flex:none;gap:10px;margin:0;position:relative}._h_1to3e_354 div[aria-checked=true]{background:var(--field-background-active)}._h_1to3e_354 div:after{content:\"\";background:0 0;border-top:none;border-bottom:3px solid #fcfff4;border-left:3px solid #fcfff4;border-right:none;width:9px;height:5px;margin:4px;position:absolute;top:5px;left:4px;transform:rotate(-45deg)}._e_1to3e_63{border-color:var(--field-error-border);background:var(--field-error-background);color:var(--field-error-color)}._m_1to3e_393{color:var(--field-error-color);margin-top:6px;font-size:12px;font-style:normal}\n\n._o_14hhr_2{z-index:98;background:0 0;position:fixed;inset:0}._c_14hhr_13{background:var(--select-background);z-index:99;max-height:min(92vh,480px);color:var(--select-color,#333);box-sizing:border-box;border-radius:10px;min-width:259px;margin:0;padding:10px 12px 12px;display:block;position:fixed;overflow:hidden auto;box-shadow:5px 7px 18px #000000a8}._c_14hhr_13 [grid-calendar]{grid-template-columns:repeat(7,1fr);grid-auto-rows:34px;gap:2px;display:grid}._c_14hhr_13 [grid-calendar]>p{color:var(--color-placeholder);box-sizing:border-box;justify-content:center;align-items:center;margin:0;padding:0;font-size:.75rem;font-weight:500;line-height:1;display:flex}._c_14hhr_13 [grid-month]{grid-template-columns:1fr 1fr 1fr 1fr;width:250px;display:grid}._c_14hhr_13 b{cursor:pointer;text-align:center;border-radius:5px;padding:8px 5px;font-weight:400;display:block}._c_14hhr_13 b.__active_14hhr_64{background:var(--bg-select-active)}._c_14hhr_13 b:hover{background:var(--bg-select-hover)}._c_14hhr_13 p{color:var(--color-placeholder);text-align:center;cursor:default;pointer-events:none;padding:0}._c_14hhr_13 i{text-align:center;cursor:pointer;border-radius:5px;flex:0 30px;padding:9px}._c_14hhr_13 i:hover{background:var(--bg-select-hover)}._c_14hhr_13 i:before{cursor:pointer;display:block}._c_14hhr_13 s{align-items:center;gap:4px;padding-bottom:6px;font-style:normal;text-decoration:none;display:flex}._c_14hhr_13 s h2{text-align:center;min-width:0;color:var(--select-color,#333);cursor:default;flex-wrap:nowrap;flex:auto;justify-content:center;align-items:center;gap:8px;margin:0;padding:0;font-size:16px;font-weight:400;line-height:1.25;display:flex}._c_14hhr_13 ._dateHeaderMonth_14hhr_119,._c_14hhr_13 ._dateHeaderYear_14hhr_119{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap;border-radius:6px;padding:2px 8px}._c_14hhr_13 ._dateHeaderMonth_14hhr_119:hover,._c_14hhr_13 ._dateHeaderYear_14hhr_119:hover{background:var(--bg-select-hover)}._c_14hhr_13 ._dateHeaderDisabled_14hhr_129{cursor:not-allowed;opacity:.45;pointer-events:none}._c_14hhr_13 ._dateHeaderDisabled_14hhr_129[data-active=true],._c_14hhr_13 ._dateHeaderDisabled_14hhr_129[data-current=true]{opacity:.45}._c_14hhr_13 [grid-calendar] b[data-current=true],._c_14hhr_13 [grid-month] b[data-current=true]{background:color-mix(in srgb, var(--field-background-active) 52%, transparent);font-weight:600}._c_14hhr_13 [grid-calendar] b[data-active=true]:not([data-current=true]),._c_14hhr_13 [grid-month] b[data-active=true]:not([data-current=true]){outline:2px solid var(--field-background-active);outline-offset:-2px}._c_14hhr_13 [grid-calendar] b[data-active=true][data-current=true],._c_14hhr_13 [grid-month] b[data-active=true][data-current=true]{box-shadow:inset 0 0 0 2px var(--field-background-active)}._c_14hhr_13 [grid-calendar] p[data-current=true]{background:color-mix(in srgb, var(--field-background-active) 52%, transparent);color:inherit;border-radius:5px;font-weight:600}._c_14hhr_13 [grid-calendar] p[data-active=true]:not([data-current=true]){outline:2px solid var(--field-background-active);outline-offset:-2px;opacity:.85}._c_14hhr_13 [grid-calendar] p[data-active=true][data-current=true]{box-shadow:inset 0 0 0 2px var(--field-background-active)}._c_14hhr_13 span{text-align:center;padding:2px}._c_14hhr_13 span p{color:var(--color-placeholder);padding:8px 5px}._c_14hhr_13 [grid-calendar]>span{box-sizing:border-box;justify-content:stretch;align-items:stretch;min-height:0;padding:0;display:flex}._c_14hhr_13 [grid-calendar]>span>b,._c_14hhr_13 [grid-calendar]>span>p{box-sizing:border-box;border-radius:5px;flex:auto;justify-content:center;align-items:center;width:100%;min-height:0;margin:0;padding:0;display:flex}._c_14hhr_13 ._as_14hhr_196{cursor:ns-resize}._c_14hhr_13 ._ap_14hhr_199{cursor:pointer}[field=password] dd{white-space:nowrap;font-style:unset;-webkit-text-security:disc;-webkit-user-select:text;user-select:text}[field=password][show] dd,[field=password] dd:before{-webkit-text-security:none}[field=code] div{gap:8px;display:flex}[field=select] dd{cursor:pointer}[field] dd:before{pointer-events:none}[field=check] dd{cursor:pointer;max-width:35px;padding:0}[field=check] [active]:after{content:\"\";background:#394264;border-radius:5px;width:15px;height:15px;display:block}[field=file] input{display:none}[field=file] dd{aspect-ratio:16/9;cursor:pointer;position:relative}[field=file] img{aspect-ratio:16/9;object-fit:contain;cursor:pointer;width:-webkit-fill-available;display:block}[field=file] label{aspect-ratio:16/9;object-fit:contain;cursor:pointer;width:-webkit-fill-available;display:block;position:absolute}[field=color] dd{border:0;gap:3px;padding:0;display:flex}[field=color] dd s{cursor:pointer;opacity:.6;border:1px solid #dde2e4;border-radius:6px;flex:1}[field=color] dd s:hover{opacity:.9}[field=color] dd s[active=true]{opacity:1}\n\n:root{--select-overlay:transparent;--select-height:52px;--select-separator:1px solid #c6c6c8;--select-color:#000;--select-background:#fff;--select-li-hover-bg:#f2f2f7;--select-li-focus-bg:#e5e5ea;--select-li-selected-bg:#e5e5ea;--select-icon:calc(var(--select-height) / 1.5);--select-icon-padding:calc((var(--select-height) - var(--select-icon)) / 2);--select-font-size:17px}._o_12209_20{z-index:98;background:var(--select-overlay);position:fixed;inset:0}._l_12209_30{background:var(--select-background);z-index:99;border-radius:20px;max-height:300px;margin:0;padding:0;display:block;position:fixed;overflow:scroll}._l_12209_30::-webkit-scrollbar{width:0;height:0}._l_12209_30 ul{width:100%;max-height:300px;margin:0;padding:0;list-style:none;display:block;overflow:hidden auto}._l_12209_30 li{border-bottom:var(--select-separator);cursor:pointer;color:var(--select-color);height:var(--select-height);line-height:var(--select-height);font-size:var(--select-font-size);white-space:nowrap;text-overflow:ellipsis;opacity:1;margin:0;padding:0 14px;display:block;overflow:hidden;text-align:left!important;border-left:0!important}._l_12209_30 li[aria-selected=true]{background:var(--select-li-selected-bg,var(--select-li-hover-bg))}._l_12209_30 li:hover{background:var(--select-li-hover-bg,#f2f2f7)}._l_12209_30 li[data-focus=true]{background:var(--select-li-focus-bg,#e5e5ea)}._l_12209_30 li:last-child{border-bottom:0}._i_12209_93{width:var(--select-icon);height:var(--select-icon);color:var(--field-color);right:var(--select-icon-padding);top:var(--select-icon-padding);position:absolute}._placeholderValue_12209_103{color:var(--field-placeholder);font-weight:400}._f_12209_108{cursor:pointer}._f_12209_108[aria-disabled=true]{cursor:not-allowed}\n";
9
9
  document.head.appendChild(el);
10
10
  })();
11
11
 
@@ -26,12 +26,13 @@ import h from "./fields/Options.js";
26
26
  import g from "./fields/Select.js";
27
27
  import _ from "./fields/Modal.js";
28
28
  import v from "./fields/Password.js";
29
- import { Form as y } from "./Form.js";
29
+ import y from "./fields/Check.js";
30
+ import { Form as b } from "./Form.js";
30
31
  //#region src/lib/index.ts
31
- function b() {
32
+ function x() {
32
33
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof self < "u" ? self : {};
33
34
  }
34
- var x = b();
35
- x.elcrm ||= {}, Object.assign(x.elcrm, { form: e.version });
35
+ var S = x();
36
+ S.elcrm ||= {}, Object.assign(S.elcrm, { form: e.version });
36
37
  //#endregion
37
- export { c as DateField, y as Form, s as MaskField, _ as ModalField, o as MoneyField, m as NumberField, h as OptionsField, v as PasswordField, f as PhoneField, i as ProgressField, i as RangeField, g as SelectField, p as StringField, u as TextareaField, l as TimeField, a as asEditableClipboard, t as useForm, n as useFormField, r as useFormFieldState, d as useFormInit };
38
+ export { y as CheckField, c as DateField, b as Form, s as MaskField, _ as ModalField, o as MoneyField, m as NumberField, h as OptionsField, v as PasswordField, f as PhoneField, i as ProgressField, i as RangeField, g as SelectField, p as StringField, u as TextareaField, l as TimeField, a as asEditableClipboard, t as useForm, n as useFormField, r as useFormFieldState, d as useFormInit };