@revolist/ui 4.0.0 → 4.0.1
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/_chunks/{calendar-QWDyYzdo.js → calendar-DJqiFwFT.js} +1 -1
- package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-yr6Uzmof.js} +1 -1
- package/_chunks/{color-picker-BK4W1nd6.js → color-picker-CMWxQlWt.js} +1 -1
- package/_chunks/{component-B6Nmgis4.js → component-DyWiItBR.js} +4 -4
- package/_chunks/{configurator-actions-BKMtZrYv.js → configurator-actions-DCodxcUw.js} +2 -2
- package/_chunks/{control-mlH7l0Uq.js → control-CbOYUakE.js} +1 -1
- package/_chunks/{controls-DgCyx2dy.js → controls-DD1qvPfE.js} +2 -2
- package/_chunks/{date-control-Dup_P3w5.js → date-control-XI2cpKI_.js} +1 -1
- package/_chunks/{date-time-C_M6ptat.js → date-time-CGJdC1Qa.js} +4 -4
- package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-CJ3FVxC9.js} +1 -1
- package/_chunks/{duration-D7oRjsmP.js → duration-CBJWK82T.js} +1 -1
- package/_chunks/{field-configurator-D3o7iF7X.js → field-configurator-B-qtIwx1.js} +2 -2
- package/_chunks/{mount-Bwyfc_I7.js → mount-C7i5gsKI.js} +2 -2
- package/_chunks/{native-control-pFMuHf3G.js → native-control-B9MNibfa.js} +132 -127
- package/_chunks/{number-input-BOdqbxKE.js → number-input-CgbZes5B.js} +2 -2
- package/_chunks/{picker-gEGTu1Ki.js → picker-DqpjDC90.js} +2 -2
- package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-WDrfiluf.js} +1 -1
- package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-C4HSda4n.js} +1 -1
- package/_chunks/{request-trail-B5zIx2hM.js → request-trail-SHynDFdM.js} +2 -2
- package/_chunks/{rich-text-DicgJRoV.js → rich-text-CtjqRvv8.js} +2 -2
- package/_chunks/selection-list-tooltips-BtWjpP6M.js +41 -0
- package/ai/index.js +2 -2
- package/assignee/index.js +2 -2
- package/buttons/svg-button.js +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/cell-input.scss +3 -7
- package/choice-chips/index.js +1 -1
- package/color-palette/color-picker.js +1 -1
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.js +18 -16
- package/configurator-drop-zone.js +1 -1
- package/controls.js +4 -3
- package/core/selection-list-tooltips.d.ts +2 -0
- package/date-time/index.js +1 -1
- package/dialog/dialog.dom.js +2 -2
- package/dialog/dialog.parts.js +1 -1
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/index.js +1 -1
- package/dropdown/lookup-field.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +1 -1
- package/editor-layout/index.js +39 -34
- package/field-configurator.js +1 -1
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.js +1 -1
- package/form-controls/index.js +2 -2
- package/formatting/index.js +1 -1
- package/framework.js +16 -16
- package/masked-input/index.js +1 -1
- package/native-control.js +1 -1
- package/native.js +5 -5
- package/number-input/index.js +1 -1
- package/package.json +1 -1
- package/pagination.js +1 -1
- package/pdf-viewer/index.js +1 -1
- package/preact.js +68 -67
- package/rating-choice.js +1 -1
- package/react.js +16 -16
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker.js +73 -71
- package/rich-text/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/styles/_cell-editor-frame.scss +11 -0
- package/svelte.js +1 -1
- package/switch/index.js +1 -1
- package/time-grid.js +1 -1
- package/timeline-track/index.js +1 -1
- package/ui.css +1 -1
- package/vue.js +16 -16
|
@@ -6,19 +6,20 @@ import { i as f } from "./top-layer-popup-CNSDdfJV.js";
|
|
|
6
6
|
import { t as p } from "./title-tooltip-Cw6LOZhb.js";
|
|
7
7
|
import { t as m } from "./field-context-D57PnBbH.js";
|
|
8
8
|
import { r as h, t as g } from "./popup-C35Isk7p.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import { t as _ } from "./selection-list-tooltips-BtWjpP6M.js";
|
|
10
|
+
import { useDropdownService as v } from "../dropdown/dropdown.service.js";
|
|
11
|
+
import { RemoveButton as y } from "../buttons/remove-button.js";
|
|
12
|
+
import { t as b } from "./chevron-down-GbplLa6s.js";
|
|
13
|
+
import { registerControl as x, renderControl as S } from "../control-presentation.js";
|
|
13
14
|
//#region src/dropdown/remote.ts
|
|
14
|
-
var
|
|
15
|
+
var C = {
|
|
15
16
|
loading: "Loading…",
|
|
16
17
|
empty: "No results found",
|
|
17
18
|
error: "Unable to load options.",
|
|
18
19
|
retry: "Retry",
|
|
19
20
|
loadMore: "Load more",
|
|
20
21
|
unavailable: (e) => `Unavailable (${String(e)})`
|
|
21
|
-
},
|
|
22
|
+
}, w = class {
|
|
22
23
|
source;
|
|
23
24
|
context;
|
|
24
25
|
changed;
|
|
@@ -41,7 +42,7 @@ var S = {
|
|
|
41
42
|
failedCursor;
|
|
42
43
|
resolveFailed = !1;
|
|
43
44
|
opened = !1;
|
|
44
|
-
constructor(e, t, n, r =
|
|
45
|
+
constructor(e, t, n, r = C, i = {}) {
|
|
45
46
|
this.source = e, this.context = t, this.changed = n, this.text = r, this.settings = i;
|
|
46
47
|
}
|
|
47
48
|
remember(e) {
|
|
@@ -119,9 +120,9 @@ var S = {
|
|
|
119
120
|
};
|
|
120
121
|
//#endregion
|
|
121
122
|
//#region src/dropdown/remote-hook.ts
|
|
122
|
-
function
|
|
123
|
+
function T(e) {
|
|
123
124
|
let t = a(() => ({
|
|
124
|
-
...
|
|
125
|
+
...C,
|
|
125
126
|
...e.remoteText
|
|
126
127
|
}), [e.remoteText]), [n, o] = i({
|
|
127
128
|
items: [],
|
|
@@ -141,7 +142,7 @@ function w(e) {
|
|
|
141
142
|
});
|
|
142
143
|
return;
|
|
143
144
|
}
|
|
144
|
-
let n = new
|
|
145
|
+
let n = new w(e.dataSource, e.dataContext, o, t);
|
|
145
146
|
return c.current = n, () => {
|
|
146
147
|
n.destroy(), c.current === n && (c.current = void 0);
|
|
147
148
|
};
|
|
@@ -178,38 +179,42 @@ function w(e) {
|
|
|
178
179
|
}
|
|
179
180
|
//#endregion
|
|
180
181
|
//#region src/dropdown/content.tsx
|
|
181
|
-
function
|
|
182
|
-
let
|
|
182
|
+
function E({ options: e, selectedValues: t, remote: n, value: i, onChange: a, config: c, multiSelect: d, search: f, searchPlaceholder: p, listboxId: m, searchId: h, renderOption: g, renderNoResults: y, onClose: b, onTabNavigation: x, theme: S }) {
|
|
183
|
+
let C = l(null), w = l(null), T = l(null), E = l(!1), { searchValue: ee, focusedIndex: O, selectedOptions: k, filteredOptions: A, handleSelect: j, handleKeyDown: M, handleSearchChange: N, setFocusedIndex: P } = v(e, i, a, c, b, n && {
|
|
183
184
|
selected: t ?? [],
|
|
184
185
|
search: n.search
|
|
185
|
-
}),
|
|
186
|
-
|
|
187
|
-
let e =
|
|
188
|
-
if (!
|
|
189
|
-
|
|
190
|
-
let t = e.ownerDocument.getElementById(
|
|
186
|
+
}), F = O >= 0 && O < A.length && !A[O].disabled ? `${m}-option-${O}` : void 0;
|
|
187
|
+
s(() => {
|
|
188
|
+
let e = T.current;
|
|
189
|
+
if (!E.current || !e || !F) return;
|
|
190
|
+
E.current = !1;
|
|
191
|
+
let t = e.ownerDocument.getElementById(F);
|
|
191
192
|
if (!t) return;
|
|
192
193
|
let n = e.getBoundingClientRect(), { top: r, bottom: i } = t.getBoundingClientRect();
|
|
193
194
|
r < n.top ? e.scrollTop += r - n.top : i > n.bottom && (e.scrollTop += i - n.bottom);
|
|
194
|
-
})
|
|
195
|
-
|
|
195
|
+
});
|
|
196
|
+
let I = _(), L = o((e) => {
|
|
197
|
+
w.current = e, I(e);
|
|
198
|
+
}, [I]);
|
|
199
|
+
return r(() => {
|
|
200
|
+
if (!c.autoFocus) return;
|
|
196
201
|
let e = () => {
|
|
197
|
-
|
|
198
|
-
}, t =
|
|
202
|
+
f && C.current ? C.current.focus({ preventScroll: !0 }) : w.current?.focus({ preventScroll: !0 });
|
|
203
|
+
}, t = w.current?.ownerDocument.defaultView ?? (typeof window < "u" ? window : void 0);
|
|
199
204
|
if (!t) return;
|
|
200
205
|
e();
|
|
201
206
|
let n = t.setTimeout(e, 0), r = t.requestAnimationFrame(e), i = t.setTimeout(e, 16);
|
|
202
207
|
return () => {
|
|
203
208
|
t.clearTimeout(n), t.cancelAnimationFrame(r), t.clearTimeout(i);
|
|
204
209
|
};
|
|
205
|
-
}, [
|
|
206
|
-
ref:
|
|
210
|
+
}, [c.autoFocus, f]), /* @__PURE__ */ u("div", {
|
|
211
|
+
ref: L,
|
|
207
212
|
className: "dropdown-listbox",
|
|
208
|
-
"data-theme":
|
|
213
|
+
"data-theme": S ?? "default",
|
|
209
214
|
role: "listbox",
|
|
210
|
-
id:
|
|
211
|
-
"aria-multiselectable":
|
|
212
|
-
"aria-activedescendant":
|
|
215
|
+
id: m,
|
|
216
|
+
"aria-multiselectable": d,
|
|
217
|
+
"aria-activedescendant": F,
|
|
213
218
|
tabIndex: -1,
|
|
214
219
|
"aria-busy": n?.loading,
|
|
215
220
|
onScrollCapture: (e) => {
|
|
@@ -218,28 +223,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
218
223
|
},
|
|
219
224
|
onKeyUp: (e) => e.stopPropagation(),
|
|
220
225
|
onKeyDown: (e) => {
|
|
221
|
-
if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(),
|
|
226
|
+
if (e.stopPropagation(), e.key === "Escape") e.preventDefault(), e.stopPropagation(), b(!1);
|
|
222
227
|
else if (e.key === "Tab") {
|
|
223
|
-
if (
|
|
224
|
-
|
|
228
|
+
if (c.nativeTabNavigation && x) {
|
|
229
|
+
x();
|
|
225
230
|
return;
|
|
226
231
|
}
|
|
227
|
-
e.preventDefault(), e.stopPropagation(),
|
|
228
|
-
} else (e.key !== " " || e.target !==
|
|
232
|
+
e.preventDefault(), e.stopPropagation(), c.closeOnTab && b(!0);
|
|
233
|
+
} else (e.key !== " " || e.target !== C.current) && (E.current = e.key === "ArrowDown" || e.key === "ArrowUp", M(e));
|
|
229
234
|
},
|
|
230
235
|
children: [
|
|
231
|
-
|
|
236
|
+
f && /* @__PURE__ */ u("div", {
|
|
232
237
|
className: "dropdown-search",
|
|
233
238
|
children: /* @__PURE__ */ u("input", {
|
|
234
|
-
ref:
|
|
239
|
+
ref: C,
|
|
235
240
|
type: "text",
|
|
236
|
-
id:
|
|
237
|
-
className: `dropdown-search-input ${
|
|
238
|
-
placeholder:
|
|
239
|
-
value:
|
|
240
|
-
onChange:
|
|
241
|
-
onInput:
|
|
242
|
-
"aria-label":
|
|
241
|
+
id: h,
|
|
242
|
+
className: `dropdown-search-input ${S ? `theme-${S}` : ""}`,
|
|
243
|
+
placeholder: p,
|
|
244
|
+
value: ee,
|
|
245
|
+
onChange: N,
|
|
246
|
+
onInput: N,
|
|
247
|
+
"aria-label": c.searchAriaLabel ?? "Search options"
|
|
243
248
|
})
|
|
244
249
|
}),
|
|
245
250
|
n?.loading && /* @__PURE__ */ u("div", {
|
|
@@ -251,28 +256,28 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
251
256
|
children: [
|
|
252
257
|
n.text.error,
|
|
253
258
|
" ",
|
|
254
|
-
/* @__PURE__ */ u(
|
|
259
|
+
/* @__PURE__ */ u(H, {
|
|
255
260
|
onClick: n.retry,
|
|
256
261
|
children: n.text.retry
|
|
257
262
|
})
|
|
258
263
|
]
|
|
259
264
|
}),
|
|
260
|
-
/* @__PURE__ */ u(
|
|
265
|
+
/* @__PURE__ */ u(D, {
|
|
261
266
|
options: e,
|
|
262
|
-
filteredOptions:
|
|
263
|
-
multiSelect:
|
|
264
|
-
focusedIndex:
|
|
265
|
-
selectedOptions:
|
|
266
|
-
onKeyDown:
|
|
267
|
-
onSelect:
|
|
268
|
-
onFocusChange:
|
|
269
|
-
renderOption:
|
|
270
|
-
renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty :
|
|
271
|
-
dropdownListRef:
|
|
272
|
-
theme:
|
|
273
|
-
optionIdPrefix:
|
|
267
|
+
filteredOptions: A,
|
|
268
|
+
multiSelect: d,
|
|
269
|
+
focusedIndex: O,
|
|
270
|
+
selectedOptions: k,
|
|
271
|
+
onKeyDown: M,
|
|
272
|
+
onSelect: j,
|
|
273
|
+
onFocusChange: P,
|
|
274
|
+
renderOption: g,
|
|
275
|
+
renderNoResults: n ? () => n.loading || n.error ? null : n.text.empty : y,
|
|
276
|
+
dropdownListRef: T,
|
|
277
|
+
theme: S,
|
|
278
|
+
optionIdPrefix: m
|
|
274
279
|
}),
|
|
275
|
-
n?.hasMore && /* @__PURE__ */ u(
|
|
280
|
+
n?.hasMore && /* @__PURE__ */ u(H, {
|
|
276
281
|
disabled: n.loading,
|
|
277
282
|
onClick: n.loadMore,
|
|
278
283
|
children: n.text.loadMore
|
|
@@ -280,7 +285,7 @@ function T({ options: e, selectedValues: t, remote: n, value: i, onChange: a, co
|
|
|
280
285
|
]
|
|
281
286
|
});
|
|
282
287
|
}
|
|
283
|
-
function
|
|
288
|
+
function D({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, selectedOptions: s, onKeyDown: c, onSelect: l, onFocusChange: d, renderOption: f, renderNoResults: p, dropdownListRef: m, theme: h, optionIdPrefix: g }) {
|
|
284
289
|
let _ = o((e) => s.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), [s]), v = o((t, n) => {
|
|
285
290
|
let r = _(t), o = a === n;
|
|
286
291
|
return /* @__PURE__ */ u("li", {
|
|
@@ -329,14 +334,14 @@ function E({ options: n, filteredOptions: r, multiSelect: i, focusedIndex: a, se
|
|
|
329
334
|
}
|
|
330
335
|
//#endregion
|
|
331
336
|
//#region src/dropdown/index.tsx
|
|
332
|
-
var
|
|
337
|
+
var ee = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("span", {
|
|
333
338
|
className: `selected-value ${n}`,
|
|
334
339
|
children: r ? r(e, t[0]) : t[0].label
|
|
335
|
-
}),
|
|
340
|
+
}), O = ({ options: t, removeOption: n, className: r, renderValue: i, disabled: a, removeLabel: o }) => /* @__PURE__ */ u("div", {
|
|
336
341
|
className: `selected-values ${r}`,
|
|
337
342
|
children: t.map((t, r) => /* @__PURE__ */ u("span", {
|
|
338
343
|
className: "selected-tag",
|
|
339
|
-
children: [i ? i(e, t) : t.label, !a && !t.disabled && /* @__PURE__ */ u(
|
|
344
|
+
children: [i ? i(e, t) : t.label, !a && !t.disabled && /* @__PURE__ */ u(y, {
|
|
340
345
|
compact: !0,
|
|
341
346
|
onClick: (e) => {
|
|
342
347
|
e.stopPropagation(), n(t);
|
|
@@ -347,22 +352,22 @@ var D = ({ options: t, className: n, renderValue: r }) => /* @__PURE__ */ u("spa
|
|
|
347
352
|
}
|
|
348
353
|
})]
|
|
349
354
|
}, r))
|
|
350
|
-
}),
|
|
355
|
+
}), k = ({ className: e }) => /* @__PURE__ */ u("span", {
|
|
351
356
|
className: `dropdown-arrow ${e}`,
|
|
352
357
|
"aria-hidden": "true",
|
|
353
|
-
dangerouslySetInnerHTML: { __html:
|
|
354
|
-
}),
|
|
358
|
+
dangerouslySetInnerHTML: { __html: b }
|
|
359
|
+
}), A = ({ placeholder: e, className: t }) => [/* @__PURE__ */ u("span", {
|
|
355
360
|
className: `placeholder px-2 ${t}`,
|
|
356
361
|
children: e
|
|
357
|
-
}), /* @__PURE__ */ u(
|
|
358
|
-
function
|
|
359
|
-
let { search:
|
|
362
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })];
|
|
363
|
+
function j({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, remoteText: c, value: d, onChange: m, placeholder: h = "Select an option", disabled: _ = !1, name: v, id: y, className: b = "", style: x, config: S = {}, renderContent: C, renderOption: w, renderValue: D, renderPlaceholder: j, renderSelectedValue: M, renderNoResults: N, onClose: P, beforeOutsideClose: F, environment: I }) {
|
|
364
|
+
let { search: L = !1, searchPlaceholder: R = "Search...", closeOnClickOutside: z = !0, autoOpen: B = !1, multiSelect: V = !1, portalTarget: H, ariaLabel: te, ariaLabelledBy: ne, ariaDescribedBy: re, popupClassName: ie, maxHeight: ae } = S, { title: oe, ...se } = n ?? {}, U = p(typeof oe == "string" ? oe : void 0), W = H ?? (S.topLayer ? U.current?.closest("dialog[open], [role=dialog], revo-grid") : void 0) ?? (typeof document < "u" ? document.body : null), G = a(() => y || `dropdown-${Math.random().toString(36).substring(2, 9)}`, [y]), K = `${G}-listbox`, ce = `${G}-search`, q = `${G}-menu`, [J, Y] = i(B && !_), [le, ue] = i(!_ && (B || !!S.autoFocus)), de = l(B), fe = S.theme ?? "default";
|
|
360
365
|
r(() => {
|
|
361
|
-
|
|
362
|
-
}, [
|
|
363
|
-
_ && J && (Y(!1),
|
|
366
|
+
B && !de.current && !_ && (ue(!0), Y(!0)), de.current = B;
|
|
367
|
+
}, [B, _]), r(() => {
|
|
368
|
+
_ && J && (Y(!1), P?.(!1));
|
|
364
369
|
}, [_, J]);
|
|
365
|
-
let X =
|
|
370
|
+
let X = T({
|
|
366
371
|
dataSource: o,
|
|
367
372
|
dataContext: s,
|
|
368
373
|
remoteText: c,
|
|
@@ -373,7 +378,7 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
373
378
|
initialQuery: S.initialSearch ?? ""
|
|
374
379
|
}), Z = o ? [...new Map([...X.selected, ...X.items].map((e) => [e.value, e])).values()] : t, Q = a(() => {
|
|
375
380
|
if (d === void 0) return [];
|
|
376
|
-
if (
|
|
381
|
+
if (V && Array.isArray(d)) return Z.filter((e) => d.some((t) => JSON.stringify(t) === JSON.stringify(e.value)));
|
|
377
382
|
{
|
|
378
383
|
let e = Z.find((e) => JSON.stringify(e.value) === JSON.stringify(d));
|
|
379
384
|
return e ? [e] : [];
|
|
@@ -381,66 +386,66 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
381
386
|
}, [
|
|
382
387
|
d,
|
|
383
388
|
Z,
|
|
384
|
-
|
|
389
|
+
V
|
|
385
390
|
]), pe = () => {
|
|
386
391
|
_ || Y((e) => {
|
|
387
392
|
let t = !e;
|
|
388
393
|
return t && ue(!0), t;
|
|
389
394
|
});
|
|
390
395
|
}, $ = (e = !1) => {
|
|
391
|
-
Y((t) => (t &&
|
|
396
|
+
Y((t) => (t && P?.(e), !1));
|
|
392
397
|
};
|
|
393
398
|
r(() => {
|
|
394
399
|
if (!J) return;
|
|
395
400
|
let e = U.current;
|
|
396
|
-
if (e) return
|
|
401
|
+
if (e) return I?.onOpen?.(e, $);
|
|
397
402
|
}, [J]);
|
|
398
403
|
let me = (e) => {
|
|
399
404
|
if (!(_ || e.disabled)) {
|
|
400
|
-
if (
|
|
405
|
+
if (V) {
|
|
401
406
|
let t = Q.some((t) => JSON.stringify(t.value) === JSON.stringify(e.value)), n;
|
|
402
407
|
n = t ? Q.filter((t) => JSON.stringify(t.value) !== JSON.stringify(e.value)) : [...Q, e], m && m(n.map((e) => e.value));
|
|
403
408
|
} else m && m(e.value), $();
|
|
404
409
|
}
|
|
405
410
|
};
|
|
406
411
|
r(() => {
|
|
407
|
-
if (!
|
|
412
|
+
if (!z || !J) return;
|
|
408
413
|
let e = W?.ownerDocument ?? U.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
|
|
409
414
|
if (!e) return;
|
|
410
415
|
let t = (t) => {
|
|
411
416
|
let n = e.getElementById(q), r = t.target;
|
|
412
417
|
if (n && r && !f(n, r) && U.current && !U.current.contains(r)) {
|
|
413
|
-
if (
|
|
418
|
+
if (F?.() === !1) {
|
|
414
419
|
t.preventDefault(), t.stopImmediatePropagation();
|
|
415
420
|
return;
|
|
416
421
|
}
|
|
417
422
|
$();
|
|
418
423
|
}
|
|
419
|
-
}, n = !!
|
|
424
|
+
}, n = !!F;
|
|
420
425
|
return e.addEventListener("pointerdown", t, n), () => {
|
|
421
426
|
e.removeEventListener("pointerdown", t, n);
|
|
422
427
|
};
|
|
423
428
|
}, [
|
|
424
|
-
|
|
429
|
+
z,
|
|
425
430
|
J,
|
|
426
431
|
q,
|
|
427
432
|
W,
|
|
428
|
-
|
|
433
|
+
F
|
|
429
434
|
]);
|
|
430
435
|
let he = () => {
|
|
431
|
-
let t = [
|
|
432
|
-
return
|
|
436
|
+
let t = [k({})];
|
|
437
|
+
return M ? M(e, Q, t) : Q.length > 0 ? V ? [/* @__PURE__ */ u(O, {
|
|
433
438
|
options: Q,
|
|
434
439
|
removeOption: me,
|
|
435
|
-
renderValue:
|
|
440
|
+
renderValue: D,
|
|
436
441
|
disabled: _,
|
|
437
442
|
removeLabel: S.removeLabel
|
|
438
|
-
}), /* @__PURE__ */ u(
|
|
443
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })] : [/* @__PURE__ */ u(ee, {
|
|
439
444
|
options: Q,
|
|
440
|
-
renderValue:
|
|
441
|
-
}), /* @__PURE__ */ u(
|
|
445
|
+
renderValue: D
|
|
446
|
+
}), /* @__PURE__ */ u(k, { className: "mr-2" })] : j ? j(e, h, t) : /* @__PURE__ */ u(A, { placeholder: h });
|
|
442
447
|
}, ge = () => /* @__PURE__ */ u(g, {
|
|
443
|
-
onPointerRelease:
|
|
448
|
+
onPointerRelease: I?.onPointerRelease,
|
|
444
449
|
topLayer: S.topLayer,
|
|
445
450
|
triggerRef: U,
|
|
446
451
|
portalTarget: W,
|
|
@@ -451,13 +456,13 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
451
456
|
children: C ? C({
|
|
452
457
|
id: K,
|
|
453
458
|
close: $
|
|
454
|
-
}) : /* @__PURE__ */ u(
|
|
459
|
+
}) : /* @__PURE__ */ u(E, {
|
|
455
460
|
options: o ? X.items : Z,
|
|
456
461
|
selectedValues: o ? X.selected : void 0,
|
|
457
462
|
remote: o ? X : void 0,
|
|
458
463
|
value: d,
|
|
459
464
|
onChange: (e) => {
|
|
460
|
-
if (!_ && (m?.(e), !
|
|
465
|
+
if (!_ && (m?.(e), !V)) {
|
|
461
466
|
let e = U.current;
|
|
462
467
|
e?.ownerDocument.defaultView?.requestAnimationFrame(() => {
|
|
463
468
|
let t = e.ownerDocument.activeElement;
|
|
@@ -469,13 +474,13 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
469
474
|
...S,
|
|
470
475
|
autoFocus: S.autoFocus || le
|
|
471
476
|
},
|
|
472
|
-
multiSelect:
|
|
473
|
-
search: !!o ||
|
|
474
|
-
searchPlaceholder:
|
|
477
|
+
multiSelect: V,
|
|
478
|
+
search: !!o || L,
|
|
479
|
+
searchPlaceholder: R,
|
|
475
480
|
listboxId: K,
|
|
476
481
|
searchId: ce,
|
|
477
|
-
renderOption:
|
|
478
|
-
renderNoResults:
|
|
482
|
+
renderOption: w,
|
|
483
|
+
renderNoResults: N,
|
|
479
484
|
onClose: $,
|
|
480
485
|
onTabNavigation: () => {
|
|
481
486
|
$(), U.current?.focus();
|
|
@@ -498,7 +503,7 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
498
503
|
"aria-disabled": _,
|
|
499
504
|
"aria-owns": K,
|
|
500
505
|
"aria-controls": K,
|
|
501
|
-
"aria-label":
|
|
506
|
+
"aria-label": te,
|
|
502
507
|
"aria-labelledby": ne,
|
|
503
508
|
"aria-describedby": re,
|
|
504
509
|
tabIndex: _ ? -1 : 0,
|
|
@@ -512,32 +517,32 @@ function k({ source: t, triggerAttributes: n, dataSource: o, dataContext: s, rem
|
|
|
512
517
|
v && /* @__PURE__ */ u("input", {
|
|
513
518
|
type: "hidden",
|
|
514
519
|
name: v,
|
|
515
|
-
value: JSON.stringify(
|
|
520
|
+
value: JSON.stringify(V ? Q.map((e) => e.value) : Q[0]?.value || "")
|
|
516
521
|
})
|
|
517
522
|
]
|
|
518
523
|
});
|
|
519
524
|
}
|
|
520
|
-
var
|
|
521
|
-
d(e, /* @__PURE__ */ u(
|
|
522
|
-
},
|
|
525
|
+
var M = (e, t) => {
|
|
526
|
+
d(e, /* @__PURE__ */ u(j, { ...t }));
|
|
527
|
+
}, N = (e) => {
|
|
523
528
|
d(e, null);
|
|
524
529
|
};
|
|
525
530
|
//#endregion
|
|
526
531
|
//#region src/select.tsx
|
|
527
|
-
function
|
|
528
|
-
return Array.isArray(e) ? e.map(
|
|
532
|
+
function P(e) {
|
|
533
|
+
return Array.isArray(e) ? e.map(P).join("") : n(e) ? P(e.props.children) : e == null || typeof e == "boolean" ? "" : String(e);
|
|
529
534
|
}
|
|
530
|
-
function
|
|
531
|
-
if (Array.isArray(e)) return e.flatMap((e) =>
|
|
535
|
+
function F(e, r, i = "", a = !1) {
|
|
536
|
+
if (Array.isArray(e)) return e.flatMap((e) => F(e, r, i, a));
|
|
532
537
|
if (!n(e)) return [];
|
|
533
538
|
let o = e.props;
|
|
534
|
-
if (e.type === t) return
|
|
535
|
-
if (e.type === "optgroup") return
|
|
539
|
+
if (e.type === t) return F(o.children, r, i, a);
|
|
540
|
+
if (e.type === "optgroup") return F(o.children, r, o.label ?? "", a || !!o.disabled);
|
|
536
541
|
let s = r ? r(o) : o, c = {
|
|
537
542
|
...s,
|
|
538
543
|
disabled: o.disabled || s.disabled,
|
|
539
544
|
hidden: o.hidden || s.hidden
|
|
540
|
-
}, l = String(c.label ??
|
|
545
|
+
}, l = String(c.label ?? P(c.children)).trim();
|
|
541
546
|
return [{
|
|
542
547
|
value: String(c.value ?? l),
|
|
543
548
|
label: i ? `${i}: ${l}` : l,
|
|
@@ -546,12 +551,12 @@ function N(e, r, i = "", a = !1) {
|
|
|
546
551
|
selected: !!c.selected
|
|
547
552
|
}];
|
|
548
553
|
}
|
|
549
|
-
function
|
|
550
|
-
let { children: n, environment: r, value: a, defaultValue: o, onValueChange: s, optionPolicy: l, multiple: d, disabled: f, name: p, class: h, className: g, style: _, ...v } = e, y = c(m), b = y.disabled || !!f, x =
|
|
554
|
+
function I(e) {
|
|
555
|
+
let { children: n, environment: r, value: a, defaultValue: o, onValueChange: s, optionPolicy: l, multiple: d, disabled: f, name: p, class: h, className: g, style: _, ...v } = e, y = c(m), b = y.disabled || !!f, x = F(n, l), [S, C] = i(() => {
|
|
551
556
|
let e = o ?? (d ? x.filter((e) => e.selected).map((e) => e.value) : x.find((e) => e.selected)?.value ?? x[0]?.value ?? "");
|
|
552
557
|
return Array.isArray(e) ? [...e] : String(e);
|
|
553
558
|
}), w = a === void 0 ? S : Array.isArray(a) ? [...a] : String(a), T = Array.isArray(w) ? w : [w], E = x.filter((e) => !e.hidden || T.includes(e.value)), D = `rv-select rv-select-control ${typeof h == "string" ? h : ""} ${g ?? ""}`.replace(/\brv-control\b/g, "").trim();
|
|
554
|
-
return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(
|
|
559
|
+
return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(j, {
|
|
555
560
|
environment: r,
|
|
556
561
|
renderOption: (e, t) => /* @__PURE__ */ u("span", {
|
|
557
562
|
"data-select-option": t.value,
|
|
@@ -587,7 +592,7 @@ function P(e) {
|
|
|
587
592
|
}
|
|
588
593
|
//#endregion
|
|
589
594
|
//#region src/fieldset.tsx
|
|
590
|
-
function
|
|
595
|
+
function L(e) {
|
|
591
596
|
let t = c(m), n = t.disabled || !!e.disabled;
|
|
592
597
|
return /* @__PURE__ */ u(m.Provider, {
|
|
593
598
|
value: {
|
|
@@ -602,43 +607,43 @@ function F(e) {
|
|
|
602
607
|
}
|
|
603
608
|
//#endregion
|
|
604
609
|
//#region src/native-control.tsx
|
|
605
|
-
function
|
|
606
|
-
let { onChange: i, ...a } = n, o =
|
|
610
|
+
function R(t, n, ...r) {
|
|
611
|
+
let { onChange: i, ...a } = n, o = S(e, t, a, ...r);
|
|
607
612
|
return i && !(t === "button" && n.busy) && Object.assign(o.props, { onChange: i }), o;
|
|
608
613
|
}
|
|
609
|
-
function
|
|
614
|
+
function z(e, t) {
|
|
610
615
|
let n = p(typeof e == "string" ? e : void 0);
|
|
611
616
|
return o((e) => {
|
|
612
617
|
n.current = e, typeof t == "function" ? t(e) : t && (t.current = e);
|
|
613
618
|
}, [t]);
|
|
614
619
|
}
|
|
615
|
-
var
|
|
616
|
-
let r =
|
|
617
|
-
return
|
|
620
|
+
var B = x(h(({ title: e, ...t }, n) => {
|
|
621
|
+
let r = z(e, n);
|
|
622
|
+
return R("input", {
|
|
618
623
|
...t,
|
|
619
624
|
ref: r
|
|
620
625
|
});
|
|
621
|
-
}), "input"),
|
|
622
|
-
let i =
|
|
623
|
-
return
|
|
626
|
+
}), "input"), V = x(h(({ children: e, title: t, ...n }, r) => {
|
|
627
|
+
let i = z(t, r);
|
|
628
|
+
return R("textarea", {
|
|
624
629
|
...n,
|
|
625
630
|
ref: i
|
|
626
631
|
}, e);
|
|
627
|
-
}), "textarea"),
|
|
632
|
+
}), "textarea"), H = x(h(({ children: e, title: t, ...n }, r) => {
|
|
628
633
|
let i = p(typeof t == "string" ? t : void 0), a = o((e) => {
|
|
629
634
|
i.current = e, typeof r == "function" ? r(e) : r && (r.current = e);
|
|
630
635
|
}, [r]);
|
|
631
|
-
return
|
|
636
|
+
return R("button", {
|
|
632
637
|
...n,
|
|
633
638
|
ref: a,
|
|
634
639
|
"aria-label": n["aria-label"] ?? (!e && typeof t == "string" ? t : void 0)
|
|
635
640
|
}, e);
|
|
636
|
-
}), "button"),
|
|
637
|
-
let i =
|
|
638
|
-
return
|
|
641
|
+
}), "button"), te = x(h(({ children: e, title: t, ...n }, r) => {
|
|
642
|
+
let i = z(t, r);
|
|
643
|
+
return R("summary", {
|
|
639
644
|
...n,
|
|
640
645
|
ref: i
|
|
641
646
|
}, e);
|
|
642
|
-
}), "summary"),
|
|
647
|
+
}), "summary"), ne = x(I, "select");
|
|
643
648
|
//#endregion
|
|
644
|
-
export {
|
|
649
|
+
export { V as a, F as c, N as d, D as f, te as i, j as l, B as n, L as o, E as p, ne as r, I as s, H as t, M as u };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { c as e, i as t, t as n } from "./hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as i } from "../core/control-id.js";
|
|
4
|
-
import { n as a } from "./native-control-
|
|
5
|
-
import { t as o } from "./controls-
|
|
4
|
+
import { n as a } from "./native-control-B9MNibfa.js";
|
|
5
|
+
import { t as o } from "./controls-DD1qvPfE.js";
|
|
6
6
|
import { EditorActions as s } from "../editor-actions.js";
|
|
7
7
|
//#region src/number-input/model.ts
|
|
8
8
|
var c = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { i as t } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
|
-
import { t as r } from "./native-control-
|
|
4
|
+
import { t as r } from "./native-control-B9MNibfa.js";
|
|
5
5
|
import { DEFAULT_CALENDAR_TRANSLATIONS as i } from "../calendar/translations.js";
|
|
6
6
|
import { n as a } from "./iso-B0YHBK7m.js";
|
|
7
7
|
import { f as o, h as s, m as c, o as l, p as u } from "./model-mPO2tG2f.js";
|
|
8
|
-
import { t as d } from "./calendar-
|
|
8
|
+
import { t as d } from "./calendar-DJqiFwFT.js";
|
|
9
9
|
//#region src/calendar/picker.tsx
|
|
10
10
|
function f(f) {
|
|
11
11
|
let { selected: p, onSelectionChange: ee, presets: m, mode: h = "single", min: g = 0, max: _ = Infinity, required: v = !1, excludeDisabled: y = !1, month: b, defaultMonth: x, onMonthChange: S, ...C } = f, w = typeof p == "string" ? p : Array.isArray(p) ? p[0] : p?.from, [T, E] = t(x ?? w ?? f.referenceDate ?? s()), [D, O] = t(w ?? T), [k, A] = t(), [j, M] = t(), N = (e) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
-
import { t as n } from "./native-control-
|
|
3
|
+
import { t as n } from "./native-control-B9MNibfa.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/star.svg?raw
|
|
5
5
|
var r = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>", i = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>";
|
|
6
6
|
//#endregion
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e } from "./preact.module-BBM36DnO.js";
|
|
2
2
|
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as n } from "./native-control-
|
|
3
|
+
import { t as n } from "./native-control-B9MNibfa.js";
|
|
4
4
|
import { fieldDropIndex as r, fieldListDropIndex as i } from "../field-reorder.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/grip-vertical.svg?raw
|
|
6
6
|
var a = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z\"/></svg>";
|
|
@@ -4,10 +4,10 @@ import { t as c } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
|
4
4
|
import { createControlId as l } from "../core/control-id.js";
|
|
5
5
|
import { t as u } from "./popover-controller-D-AvKQ7B.js";
|
|
6
6
|
import { SvgIcon as d } from "../icons/icon.js";
|
|
7
|
-
import { l as f } from "./native-control-
|
|
7
|
+
import { l as f } from "./native-control-B9MNibfa.js";
|
|
8
8
|
import { RemoveButton as p } from "../buttons/remove-button.js";
|
|
9
9
|
import "./chevron-down-GbplLa6s.js";
|
|
10
|
-
import { D as m, M as h, c as g, p as _, t as v } from "./controls-
|
|
10
|
+
import { D as m, M as h, c as g, p as _, t as v } from "./controls-DD1qvPfE.js";
|
|
11
11
|
import { t as y } from "./tooltip-text-BXsUEmBH.js";
|
|
12
12
|
import { t as b } from "./clock-BOhPNlW3.js";
|
|
13
13
|
import { t as x } from "./arrow-up-Cw8hW9vp.js";
|
|
@@ -2,8 +2,8 @@ import { i as e } from "./preact.module-BBM36DnO.js";
|
|
|
2
2
|
import { c as t, i as n, n as r, r as i, t as a } from "./hooks.module-CG3gN83z.js";
|
|
3
3
|
import { t as o } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
4
4
|
import { createControlId as s } from "../core/control-id.js";
|
|
5
|
-
import { n as c } from "./native-control-
|
|
6
|
-
import { t as l } from "./controls-
|
|
5
|
+
import { n as c } from "./native-control-B9MNibfa.js";
|
|
6
|
+
import { t as l } from "./controls-DD1qvPfE.js";
|
|
7
7
|
import { SegmentedSwitch as u } from "../segmented-switch/index.js";
|
|
8
8
|
import { n as d } from "./icon-toolbar-DSjOdwM7.js";
|
|
9
9
|
import { HighlightedTextInput as f } from "../filter-controls.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { o as e, t } from "./hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t as n } from "./tooltip-session-B6X6x8G_.js";
|
|
3
|
+
import { createControlId as r } from "../core/control-id.js";
|
|
4
|
+
//#region src/core/selection-list-tooltips.ts
|
|
5
|
+
function i(i = "[role=\"option\"]") {
|
|
6
|
+
let a = t(void 0);
|
|
7
|
+
return e((e) => {
|
|
8
|
+
if (a.current?.(), a.current = void 0, !e) return;
|
|
9
|
+
let t = new n(), o = e.ownerDocument.createElement("div");
|
|
10
|
+
o.id = r("rv-list-tooltip"), o.className = "rv-tooltip", o.setAttribute("role", "tooltip"), o.hidden = !0, t.setSurface(o);
|
|
11
|
+
let s, c = (t) => {
|
|
12
|
+
let n = t?.closest?.(i);
|
|
13
|
+
return n && e.contains(n) ? n : void 0;
|
|
14
|
+
}, l = () => {
|
|
15
|
+
s = void 0, t.hide();
|
|
16
|
+
}, u = (e) => {
|
|
17
|
+
if (!e) {
|
|
18
|
+
l();
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
let n = [e, ...e.querySelectorAll("*")].filter((e) => e.textContent?.trim() && e.scrollWidth > e.clientWidth), r = n.filter((e) => !n.some((t) => t !== e && e.contains(t))).map((e) => e.textContent.trim()).join("\n");
|
|
22
|
+
r ? s === e && o.textContent === r && t.isOpen || (l(), s = e, o.textContent = r, t.show(e)) : l();
|
|
23
|
+
}, d = (e) => u(c(e.target)), f = (e) => {
|
|
24
|
+
c(e.relatedTarget) !== s && l();
|
|
25
|
+
}, p = (t) => {
|
|
26
|
+
if (![
|
|
27
|
+
"ArrowUp",
|
|
28
|
+
"ArrowDown",
|
|
29
|
+
"Home",
|
|
30
|
+
"End"
|
|
31
|
+
].includes(t.key)) return;
|
|
32
|
+
let n = (e.hasAttribute("aria-activedescendant") ? e : e.querySelector("[aria-activedescendant]"))?.getAttribute("aria-activedescendant");
|
|
33
|
+
n && u(c(e.ownerDocument.getElementById(n)));
|
|
34
|
+
};
|
|
35
|
+
e.addEventListener("pointerover", d, !0), e.addEventListener("pointerout", f, !0), e.addEventListener("focusin", d, !0), e.addEventListener("focusout", f, !0), e.addEventListener("pointerdown", l, !0), e.addEventListener("keyup", p), a.current = () => {
|
|
36
|
+
t.destroy(), e.removeEventListener("pointerover", d, !0), e.removeEventListener("pointerout", f, !0), e.removeEventListener("focusin", d, !0), e.removeEventListener("focusout", f, !0), e.removeEventListener("pointerdown", l, !0), e.removeEventListener("keyup", p);
|
|
37
|
+
};
|
|
38
|
+
}, [i]);
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { i as t };
|