@revolist/ui 4.0.1-rc → 4.0.2-rc
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/README.md +6 -5
- package/_chunks/calendar-CpaUK7w1.js +248 -0
- package/_chunks/chart-frame-BC99KjGa.js +127 -0
- package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
- package/_chunks/color-picker-D90Jg-M8.js +138 -0
- package/_chunks/compat.module-DDB2pm9O.js +229 -0
- package/_chunks/component-YDcfoOLz.js +859 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
- package/_chunks/date-time-BxPJusp9.js +770 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
- package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
- package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
- package/_chunks/duration-87U2EoMS.js +271 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
- package/_chunks/framework-mount-C-Zwm44H.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DZe_6VtR.js +90 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
- package/_chunks/picker-DpP7iQLA.js +122 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
- package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
- package/_chunks/request-trail-IdNiFvKH.js +347 -0
- package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +16 -16
- package/ai/components.d.ts +1 -1
- package/ai/index.js +2 -2
- package/ai/request-trail.d.ts +1 -1
- package/ai/translation-context.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +87 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/index.js +25 -25
- package/avatar/index.view.d.ts +1 -1
- package/brush-range/component.d.ts +1 -1
- package/brush-range/component.js +30 -30
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +35 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +19 -19
- package/control-presentation.js +18 -18
- package/controls.d.ts +4 -4
- package/controls.js +1 -1
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup.d.ts +1 -1
- package/core/editor-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +2 -2
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/dialog/dialog-action-footer.view.d.ts +1 -1
- package/dialog/dialog.dom.js +52 -52
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +1 -1
- package/distribution-chart/bar-chart.js +6 -6
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +1 -1
- package/dropdown/content.js +83 -82
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/index.js +1 -1
- package/dropdown/lookup-field.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +17 -16
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +1 -1
- package/editor-layout/index.js +27 -27
- package/field-configurator.d.ts +1 -1
- package/field-configurator.js +93 -93
- package/field-reorder.hook.js +32 -32
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -1
- package/filter-controls.js +31 -31
- package/form-controls/index.js +20 -20
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +44 -44
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/control-tooltip.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.js +99 -98
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +19 -19
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +11 -11
- package/native-control.js +12 -12
- package/native.js +39 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +1 -2
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +1 -1
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +1 -1
- package/preact.js +14 -14
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.js +19 -19
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +88 -88
- package/rich-text/index.d.ts +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/toolbar.d.ts +1 -1
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +13 -13
- package/surfaces.js +34 -34
- package/svelte.js +2 -2
- package/switch/index.js +15 -15
- package/time-grid.d.ts +1 -1
- package/time-grid.js +58 -58
- package/timeline-track/component.d.ts +1 -1
- package/timeline-track/index.js +75 -75
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +116 -116
- package/vue.js +121 -121
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-picker-BRv-__AM.js +0 -138
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../_chunks/
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { c as e, i as t, n, o as r, t as i } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t as a } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createControlId as o } from "../core/control-id.js";
|
|
4
|
+
import { t as s } from "../_chunks/chevron-down-GbplLa6s.js";
|
|
5
|
+
import { t as ee } from "../_chunks/xmark-DD_PBvZI.js";
|
|
6
|
+
import { SearchInput as c } from "../search-input/index.js";
|
|
7
|
+
import { resourcePickerClasses as l, resourcePickerDataAttribute as u, resourcePickerIdKey as d } from "./resource-picker.utils.js";
|
|
8
|
+
import { ResourcePickerAvatar as f } from "./resource-picker-avatar.js";
|
|
9
|
+
import { ResourcePickerOption as p } from "./resource-picker-option.js";
|
|
10
|
+
import { ResourcePickerPopup as m } from "./resource-picker-popup.js";
|
|
11
11
|
//#region src/resource-picker/resource-picker.tsx
|
|
12
|
-
function
|
|
13
|
-
let j =
|
|
12
|
+
function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNames: x, disabled: S = !1, readOnly: C = !1, presentation: w = "inline", multiple: T = !0, preserveOrder: E = !1, unassigned: D, resourceDataAttribute: O, isResourceDisabled: k, getAvatarColor: A }) {
|
|
13
|
+
let j = i(null), M = i(null), N = i(null), P = i(null), F = i(!1), [I] = t(() => o("rv-resource-list")), L = `${I}-popup`, R = w === "dropdown", [z, B] = t(!1), [V, H] = t(""), [U, W] = t(0), G = r(() => {
|
|
14
14
|
B(!1), H("");
|
|
15
|
-
}, []), K = new Set(
|
|
15
|
+
}, []), K = new Set(v.map(d)), q = n(() => E ? [...h] : [...h].sort((e, t) => e.name.localeCompare(t.name, void 0, {
|
|
16
16
|
numeric: !0,
|
|
17
17
|
sensitivity: "base"
|
|
18
|
-
})), [E,
|
|
18
|
+
})), [E, h]), J = n(() => {
|
|
19
19
|
let e = V.trim().toLocaleLowerCase();
|
|
20
20
|
return e ? q.filter((t) => `${t.name} ${t.role ?? ""}`.toLocaleLowerCase().includes(e)) : q;
|
|
21
|
-
}, [V, q]), Y =
|
|
22
|
-
let e = new Map(
|
|
23
|
-
return
|
|
24
|
-
}, [
|
|
25
|
-
|
|
21
|
+
}, [V, q]), Y = n(() => {
|
|
22
|
+
let e = new Map(h.map((e) => [d(e.id), e]));
|
|
23
|
+
return v.map((t) => e.get(d(t))).filter((e) => !!e);
|
|
24
|
+
}, [h, v]), X = R && U >= 0 && U < J.length ? `${I}-option-${U}` : void 0;
|
|
25
|
+
e(() => {
|
|
26
26
|
if (!R || !z) return;
|
|
27
27
|
let e = (e) => {
|
|
28
28
|
let t = e.target, n = j.current?.ownerDocument.getElementById(L);
|
|
@@ -41,80 +41,80 @@ function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNa
|
|
|
41
41
|
R,
|
|
42
42
|
z,
|
|
43
43
|
L
|
|
44
|
-
]),
|
|
44
|
+
]), e(() => {
|
|
45
45
|
W(J.length > 0 ? 0 : -1);
|
|
46
|
-
}, [J]),
|
|
46
|
+
}, [J]), e(() => {
|
|
47
47
|
if (!z || !X || !P.current || !F.current) return;
|
|
48
48
|
let e = P.current.ownerDocument.getElementById(X);
|
|
49
49
|
e && P.current.contains(e) && e.closest(".rv-resource-picker__option")?.scrollIntoView?.({ block: "nearest" });
|
|
50
50
|
}, [X, z]);
|
|
51
51
|
let Z = (e) => {
|
|
52
|
-
|
|
53
|
-
},
|
|
52
|
+
C || (b(e), !T && R && G());
|
|
53
|
+
}, te = () => {
|
|
54
54
|
let e = J[U];
|
|
55
55
|
if (!e) return;
|
|
56
|
-
let t =
|
|
57
|
-
(!k?.(e) || K.has(t)) && Z(K.has(t) ?
|
|
58
|
-
},
|
|
56
|
+
let t = d(e.id);
|
|
57
|
+
(!k?.(e) || K.has(t)) && Z(K.has(t) ? v.filter((e) => d(e) !== t) : T ? g([...v, e.id]) : [e.id]);
|
|
58
|
+
}, ne = (e) => {
|
|
59
59
|
if (e.key === "Escape") e.preventDefault(), e.stopPropagation(), G(), M.current?.focus();
|
|
60
60
|
else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
61
61
|
if (e.preventDefault(), e.stopPropagation(), !J.length) return;
|
|
62
62
|
F.current = !0, W((t) => e.key === "ArrowDown" ? t >= J.length - 1 ? 0 : t + 1 : t <= 0 ? J.length - 1 : t - 1);
|
|
63
|
-
} else e.key === "Enter" && (e.preventDefault(), e.stopPropagation(),
|
|
64
|
-
}, Q = typeof document > "u" ? null : j.current?.closest("dialog, .rv-dialog-overlay") ?? document.body, $ = /* @__PURE__ */
|
|
63
|
+
} else e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), te());
|
|
64
|
+
}, Q = typeof document > "u" ? null : j.current?.closest("dialog, .rv-dialog-overlay") ?? document.body, $ = /* @__PURE__ */ a("div", {
|
|
65
65
|
class: "rv-resource-picker__popover",
|
|
66
|
-
onKeyDown: R ?
|
|
67
|
-
children: [/* @__PURE__ */
|
|
66
|
+
onKeyDown: R ? ne : void 0,
|
|
67
|
+
children: [/* @__PURE__ */ a(c, {
|
|
68
68
|
inputRef: N,
|
|
69
69
|
rootClassName: "rv-resource-picker__search-control",
|
|
70
|
-
inputClassName:
|
|
70
|
+
inputClassName: l("rv-resource-picker__search", x?.search),
|
|
71
71
|
value: V,
|
|
72
|
-
disabled:
|
|
73
|
-
placeholder:
|
|
74
|
-
"aria-label":
|
|
72
|
+
disabled: S,
|
|
73
|
+
placeholder: y.searchPlaceholder,
|
|
74
|
+
"aria-label": y.searchAriaLabel,
|
|
75
75
|
onValueChange: H
|
|
76
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ a("div", {
|
|
77
77
|
ref: P,
|
|
78
|
-
class:
|
|
78
|
+
class: l("rv-resource-picker__list", x?.list),
|
|
79
79
|
role: R ? "listbox" : "group",
|
|
80
80
|
id: R ? I : void 0,
|
|
81
81
|
"aria-multiselectable": R ? T : void 0,
|
|
82
82
|
"aria-activedescendant": X,
|
|
83
|
-
"aria-label":
|
|
84
|
-
children: [D && !
|
|
85
|
-
class:
|
|
83
|
+
"aria-label": y.groupAriaLabel,
|
|
84
|
+
children: [D && !C ? /* @__PURE__ */ a("label", {
|
|
85
|
+
class: l("rv-resource-picker__option rv-resource-picker__option--unassigned", x?.option),
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ a("input", {
|
|
88
88
|
type: "checkbox",
|
|
89
|
-
checked:
|
|
90
|
-
disabled:
|
|
91
|
-
...
|
|
92
|
-
onChange: () =>
|
|
89
|
+
checked: v.length === 0,
|
|
90
|
+
disabled: S,
|
|
91
|
+
...u(D.dataAttribute, ""),
|
|
92
|
+
onChange: () => b([])
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ a("span", {
|
|
95
95
|
class: "rv-resource-picker__avatar-spacer",
|
|
96
96
|
"aria-hidden": "true"
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
class:
|
|
100
|
-
children: /* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ a("span", {
|
|
99
|
+
class: l("rv-resource-picker__details", x?.details),
|
|
100
|
+
children: /* @__PURE__ */ a("strong", { children: D.label })
|
|
101
101
|
})
|
|
102
102
|
]
|
|
103
|
-
}) : null,
|
|
104
|
-
className:
|
|
105
|
-
text:
|
|
106
|
-
}) : J.length === 0 ? /* @__PURE__ */
|
|
107
|
-
className:
|
|
108
|
-
text:
|
|
109
|
-
}) : J.map((e, t) => /* @__PURE__ */
|
|
103
|
+
}) : null, h.length === 0 ? /* @__PURE__ */ a(_, {
|
|
104
|
+
className: x?.muted,
|
|
105
|
+
text: y.emptyResources
|
|
106
|
+
}) : J.length === 0 ? /* @__PURE__ */ a(_, {
|
|
107
|
+
className: x?.muted,
|
|
108
|
+
text: y.emptySearch
|
|
109
|
+
}) : J.map((e, t) => /* @__PURE__ */ a(p, {
|
|
110
110
|
resource: e,
|
|
111
|
-
selected: K.has(
|
|
112
|
-
selectedResourceIds:
|
|
113
|
-
disabled:
|
|
114
|
-
readOnly:
|
|
111
|
+
selected: K.has(d(e.id)),
|
|
112
|
+
selectedResourceIds: v,
|
|
113
|
+
disabled: S,
|
|
114
|
+
readOnly: C,
|
|
115
115
|
multiple: T,
|
|
116
116
|
resourceDataAttribute: O,
|
|
117
|
-
classNames:
|
|
117
|
+
classNames: x,
|
|
118
118
|
isResourceDisabled: k,
|
|
119
119
|
getAvatarColor: A,
|
|
120
120
|
optionId: R ? `${I}-option-${t}` : void 0,
|
|
@@ -123,64 +123,64 @@ function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNa
|
|
|
123
123
|
F.current = !1, W(t);
|
|
124
124
|
},
|
|
125
125
|
onChange: Z
|
|
126
|
-
},
|
|
126
|
+
}, d(e.id)))]
|
|
127
127
|
})]
|
|
128
128
|
});
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ a("div", {
|
|
130
130
|
ref: j,
|
|
131
|
-
class:
|
|
132
|
-
children: [R ? /* @__PURE__ */
|
|
131
|
+
class: l("rv-resource-picker", R ? "rv-resource-picker--dropdown" : void 0, z ? "rv-resource-picker--open" : void 0, x?.root),
|
|
132
|
+
children: [R ? /* @__PURE__ */ a("div", {
|
|
133
133
|
ref: M,
|
|
134
134
|
class: "rv-resource-picker__control",
|
|
135
135
|
role: "combobox",
|
|
136
136
|
"aria-expanded": z,
|
|
137
137
|
"aria-controls": I,
|
|
138
138
|
"aria-haspopup": "listbox",
|
|
139
|
-
"aria-label":
|
|
140
|
-
tabIndex:
|
|
139
|
+
"aria-label": y.groupAriaLabel,
|
|
140
|
+
tabIndex: S ? -1 : 0,
|
|
141
141
|
onClick: (e) => {
|
|
142
|
-
|
|
142
|
+
S || (e.preventDefault(), z ? G() : B(!0));
|
|
143
143
|
},
|
|
144
144
|
onKeyDown: (e) => {
|
|
145
|
-
|
|
145
|
+
S || e.target !== e.currentTarget || (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), B(!0));
|
|
146
146
|
},
|
|
147
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ a("div", {
|
|
148
148
|
class: "rv-resource-picker__chips",
|
|
149
|
-
children: Y.length ? Y.map((e) => /* @__PURE__ */
|
|
149
|
+
children: Y.length ? Y.map((e) => /* @__PURE__ */ a("span", {
|
|
150
150
|
class: "rv-resource-picker__chip",
|
|
151
151
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ a(f, {
|
|
153
153
|
resource: e,
|
|
154
|
-
className:
|
|
154
|
+
className: x?.avatar,
|
|
155
155
|
color: A?.(e)
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ a("span", {
|
|
158
158
|
class: "rv-resource-picker__chip-label",
|
|
159
159
|
children: e.name
|
|
160
160
|
}),
|
|
161
|
-
!
|
|
161
|
+
!S && !C ? /* @__PURE__ */ a("button", {
|
|
162
162
|
type: "button",
|
|
163
163
|
class: "rv-resource-picker__chip-remove",
|
|
164
164
|
"aria-label": `Remove ${e.name}`,
|
|
165
165
|
onClick: (t) => {
|
|
166
|
-
t.stopPropagation(),
|
|
166
|
+
t.stopPropagation(), b(v.filter((t) => d(t) !== d(e.id)));
|
|
167
167
|
},
|
|
168
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ a("span", {
|
|
169
169
|
"aria-hidden": "true",
|
|
170
|
-
dangerouslySetInnerHTML: { __html:
|
|
170
|
+
dangerouslySetInnerHTML: { __html: ee }
|
|
171
171
|
})
|
|
172
172
|
}) : null
|
|
173
173
|
]
|
|
174
|
-
},
|
|
174
|
+
}, d(e.id))) : /* @__PURE__ */ a("span", {
|
|
175
175
|
class: "rv-resource-picker__placeholder",
|
|
176
|
-
children:
|
|
176
|
+
children: y.searchPlaceholder
|
|
177
177
|
})
|
|
178
|
-
}), /* @__PURE__ */
|
|
178
|
+
}), /* @__PURE__ */ a("span", {
|
|
179
179
|
class: "rv-resource-picker__chevron",
|
|
180
180
|
"aria-hidden": "true",
|
|
181
|
-
dangerouslySetInnerHTML: { __html:
|
|
181
|
+
dangerouslySetInnerHTML: { __html: s }
|
|
182
182
|
})]
|
|
183
|
-
}) : null, R ? z && Q ? /* @__PURE__ */ m
|
|
183
|
+
}) : null, R ? z && Q ? /* @__PURE__ */ a(m, {
|
|
184
184
|
triggerRef: M,
|
|
185
185
|
portalTarget: Q,
|
|
186
186
|
popupId: L,
|
|
@@ -188,14 +188,14 @@ function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNa
|
|
|
188
188
|
}) : null : $]
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return [...new Map(e.map((e) => [
|
|
191
|
+
function g(e) {
|
|
192
|
+
return [...new Map(e.map((e) => [d(e), e])).values()];
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
class:
|
|
194
|
+
function _({ className: e, text: t }) {
|
|
195
|
+
return /* @__PURE__ */ a("span", {
|
|
196
|
+
class: l("rv-resource-picker__empty", e),
|
|
197
197
|
children: t
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
//#endregion
|
|
201
|
-
export {
|
|
201
|
+
export { h as SharedResourcePicker };
|
package/rich-text/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@ export interface MarkdownEditorProps extends EditorCommitOptions {
|
|
|
10
10
|
text?: Partial<MarkdownEditorText>;
|
|
11
11
|
actions?: Partial<EditorActionText>;
|
|
12
12
|
}
|
|
13
|
-
export declare function MarkdownEditor(props: MarkdownEditorProps): import("preact").JSX.Element;
|
|
13
|
+
export declare function MarkdownEditor(props: MarkdownEditorProps): import("../_vendor/preact/src/index").JSX.Element;
|
|
14
14
|
export { markdownVisualIssues, isSafeMarkdownLink } from './model';
|
|
15
15
|
export { markdownRenderNodes, type MarkdownRenderNode } from './render-model';
|
package/rich-text/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as MarkdownEditor, r as defaultMarkdownEditorText, i as isSafeMarkdownLink, n as markdownRenderNodes, a as markdownVisualIssues } from "../_chunks/rich-text-
|
|
1
|
+
export { t as MarkdownEditor, r as defaultMarkdownEditorText, i as isSafeMarkdownLink, n as markdownRenderNodes, a as markdownVisualIssues } from "../_chunks/rich-text-BzI1DyfF.js";
|
package/rich-text/toolbar.d.ts
CHANGED
package/search-input/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { n } from "../_chunks/native.view-ByyZ1CT5.js";
|
|
4
4
|
//#region src/search-input/index.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function r() {
|
|
6
|
+
return /* @__PURE__ */ t("svg", {
|
|
7
7
|
width: "13",
|
|
8
8
|
height: "13",
|
|
9
9
|
viewBox: "0 0 24 24",
|
|
10
10
|
fill: "none",
|
|
11
11
|
stroke: "currentColor",
|
|
12
12
|
"stroke-width": "2",
|
|
13
|
-
children: [/* @__PURE__ */
|
|
13
|
+
children: [/* @__PURE__ */ t("circle", {
|
|
14
14
|
cx: "11",
|
|
15
15
|
cy: "11",
|
|
16
16
|
r: "8"
|
|
17
|
-
}), /* @__PURE__ */
|
|
17
|
+
}), /* @__PURE__ */ t("line", {
|
|
18
18
|
x1: "21",
|
|
19
19
|
y1: "21",
|
|
20
20
|
x2: "16.65",
|
|
@@ -22,17 +22,17 @@ function i() {
|
|
|
22
22
|
})]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function i({ value: i = "", inputRef: a, rootClassName: o = "", inputClassName: s = "", iconClassName: c = "", shortcutClassName: l = "", shortcut: u, icon: d, leading: f, hideIcon: p = !1, trailing: m, testId: h, onValueChange: g, onInput: _, type: v = "search", ...y }) {
|
|
26
26
|
let b = (e) => {
|
|
27
27
|
_?.(e), g?.(e.currentTarget.value, e);
|
|
28
28
|
};
|
|
29
|
-
return e
|
|
29
|
+
return n(e, {
|
|
30
30
|
rootClassName: o,
|
|
31
31
|
inputClassName: s,
|
|
32
32
|
iconClassName: c,
|
|
33
33
|
shortcutClassName: l,
|
|
34
34
|
shortcut: u,
|
|
35
|
-
icon: d ?? /* @__PURE__ */
|
|
35
|
+
icon: d ?? /* @__PURE__ */ t(r, {}),
|
|
36
36
|
hideIcon: p,
|
|
37
37
|
leading: f,
|
|
38
38
|
trailing: m,
|
|
@@ -41,10 +41,10 @@ function a({ value: r = "", inputRef: a, rootClassName: o = "", inputClassName:
|
|
|
41
41
|
...y,
|
|
42
42
|
ref: a,
|
|
43
43
|
type: v,
|
|
44
|
-
value:
|
|
44
|
+
value: i,
|
|
45
45
|
onInput: b
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
|
-
export {
|
|
50
|
+
export { i as SearchInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSX } from 'preact';
|
|
1
|
+
import { JSX } from '../_vendor/preact/src/index';
|
|
2
2
|
export type SegmentedSwitchRenderable = any;
|
|
3
3
|
export type SegmentedSwitchValue = string | number;
|
|
4
4
|
export type SegmentedSwitchOption<T extends SegmentedSwitchValue = SegmentedSwitchValue> = {
|
|
@@ -3,5 +3,5 @@ export { renderStatusBadge } from './badge';
|
|
|
3
3
|
/** One shared activity surface, with divided rows rather than nested notice cards. */
|
|
4
4
|
export declare function renderStatusFeedbackPanel<T>(h: StatusFeedbackH<T>, props: StatusFeedbackPanelProps): T | null;
|
|
5
5
|
/** Preact adapters share the exact same presentation as RevoGrid template consumers. */
|
|
6
|
-
export declare function StatusFeedbackPanel(props: StatusFeedbackPanelProps): import('preact').VNode<import('preact').Attributes> | null;
|
|
7
|
-
export declare function StatusBadge(props: StatusBadgeProps): import('preact').VNode<import('preact').Attributes>;
|
|
6
|
+
export declare function StatusFeedbackPanel(props: StatusFeedbackPanelProps): import('../_vendor/preact/src/index').VNode<import('../_vendor/preact/src/index').Attributes> | null;
|
|
7
|
+
export declare function StatusBadge(props: StatusBadgeProps): import('../_vendor/preact/src/index').VNode<import('../_vendor/preact/src/index').Attributes>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { renderHeader as t } from "./header.js";
|
|
3
|
+
import { renderItem as n } from "./item.js";
|
|
4
|
+
import { renderStatusBadge as r } from "./badge.js";
|
|
5
5
|
//#region src/status-feedback/render.ts
|
|
6
|
-
function i(
|
|
6
|
+
function i(e, r) {
|
|
7
7
|
let { title: i, items: a, ariaLabel: o, className: s, popover: c, onCollapsedChange: l } = r;
|
|
8
8
|
if (!a.length) return c?.hide(!0), null;
|
|
9
9
|
let u = c?.collapsed ?? r.collapsed ?? !1, d = !!(c || l), f = (e, t) => {
|
|
@@ -13,7 +13,7 @@ function i(n, r) {
|
|
|
13
13
|
}
|
|
14
14
|
c?.setCollapsed(e), l?.(e);
|
|
15
15
|
};
|
|
16
|
-
return c?.refresh(),
|
|
16
|
+
return c?.refresh(), e("section", {
|
|
17
17
|
onKeyDown: (e) => {
|
|
18
18
|
e.key === "Escape" && d && !u && (e.preventDefault(), e.stopPropagation(), f(!0, e));
|
|
19
19
|
},
|
|
@@ -28,17 +28,17 @@ function i(n, r) {
|
|
|
28
28
|
].filter(Boolean).join(" "),
|
|
29
29
|
"aria-label": o ?? i,
|
|
30
30
|
"data-collapsed": String(u)
|
|
31
|
-
}, [e
|
|
31
|
+
}, [t(e, r, u, d, f), e("div", {
|
|
32
32
|
id: c ? `${c.id}-items` : void 0,
|
|
33
33
|
class: "rv-status-feedback__items",
|
|
34
34
|
hidden: u
|
|
35
|
-
}, a.map((
|
|
35
|
+
}, a.map((t) => n(e, t)))]);
|
|
36
36
|
}
|
|
37
|
-
function a(
|
|
38
|
-
return i(
|
|
37
|
+
function a(t) {
|
|
38
|
+
return i(e, t);
|
|
39
39
|
}
|
|
40
|
-
function o(
|
|
41
|
-
return
|
|
40
|
+
function o(t) {
|
|
41
|
+
return r(e, t);
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
|
-
export { o as StatusBadge, a as StatusFeedbackPanel,
|
|
44
|
+
export { o as StatusBadge, a as StatusFeedbackPanel, r as renderStatusBadge, i as renderStatusFeedbackPanel };
|
package/surfaces.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { calculateAnchoredPopoverPosition as e } from "./core/anchored-popover.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { createPreactElement as n, releasePreactElement as r } from "./preact-mount.js";
|
|
4
|
+
import { createControlId as i } from "./core/control-id.js";
|
|
5
|
+
import { hideTopLayerPopup as a, showTopLayerPopup as o } from "./core/top-layer-popup.js";
|
|
6
|
+
import { inheritUiMotion as s } from "./core/motion.js";
|
|
7
|
+
import { createDialogElements as c, getDialogFocusableElements as l, trapDialogFocus as u } from "./dialog/dialog.dom.js";
|
|
8
|
+
import { attachDialogDrag as d } from "./dialog/dialog.drag.js";
|
|
9
9
|
//#region src/surfaces.view.tsx
|
|
10
10
|
var f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = class {
|
|
11
11
|
document;
|
|
@@ -19,31 +19,31 @@ var f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = cl
|
|
|
19
19
|
}
|
|
20
20
|
open(e) {
|
|
21
21
|
this.close();
|
|
22
|
-
let t = this.document,
|
|
22
|
+
let t = this.document, n = t.activeElement, i = !1, a, o, f = p.get(t) ?? [];
|
|
23
23
|
p.set(t, f);
|
|
24
24
|
let m = () => {
|
|
25
25
|
if (i) return;
|
|
26
|
-
i = !0, a?.(),
|
|
27
|
-
let t = f.indexOf(h.root),
|
|
26
|
+
i = !0, a?.(), o?.(), r(h.root);
|
|
27
|
+
let t = f.indexOf(h.root), s = t === f.length - 1;
|
|
28
28
|
t !== -1 && f.splice(t, 1), this.active?.root === h.root && (this.active = void 0);
|
|
29
29
|
try {
|
|
30
30
|
e.onClose?.();
|
|
31
31
|
} finally {
|
|
32
|
-
|
|
32
|
+
s && (this.environment.restoreFocus ? this.environment.restoreFocus(e.returnFocus, n ?? void 0) : [e.returnFocus, n].find((e) => e?.isConnected)?.focus?.({ preventScroll: !0 }));
|
|
33
33
|
}
|
|
34
|
-
}, h =
|
|
34
|
+
}, h = c(t, e, m), g = {
|
|
35
35
|
...h,
|
|
36
36
|
close: m
|
|
37
37
|
};
|
|
38
|
-
return this.environment.beforeMount?.(h.root),
|
|
38
|
+
return this.environment.beforeMount?.(h.root), o = s(e.returnFocus ?? n, h.root), h.root.addEventListener("mousedown", (e) => {
|
|
39
39
|
e.target === h.root && f.at(-1) === h.root && m();
|
|
40
40
|
}), h.root.addEventListener("keydown", (e) => {
|
|
41
|
-
f.at(-1) === h.root && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), m()) : e.key === "Tab" &&
|
|
42
|
-
}), t.body.append(h.root), f.push(h.root), e.draggable !== !1 && (a =
|
|
41
|
+
f.at(-1) === h.root && (e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), m()) : e.key === "Tab" && u(h.root, e));
|
|
42
|
+
}), t.body.append(h.root), f.push(h.root), e.draggable !== !1 && (a = d({
|
|
43
43
|
target: h.surface,
|
|
44
44
|
handle: h.header
|
|
45
45
|
})), this.active = g, this.environment.onOpen?.(e), queueMicrotask(() => {
|
|
46
|
-
!i && f.at(-1) === h.root && (
|
|
46
|
+
!i && f.at(-1) === h.root && (l(h.root)[0] ?? h.root).focus({ preventScroll: !0 });
|
|
47
47
|
}), g;
|
|
48
48
|
}
|
|
49
49
|
close(e) {
|
|
@@ -59,16 +59,16 @@ var f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = cl
|
|
|
59
59
|
}
|
|
60
60
|
open(t) {
|
|
61
61
|
this.close(!1);
|
|
62
|
-
let { anchor: n, content: r } = t,
|
|
63
|
-
f.set(
|
|
64
|
-
let u = r.parentNode, d = r.nextSibling, p = r.hidden, m = r.getAttribute("style"), h = r.getAttribute("popover"), g =
|
|
62
|
+
let { anchor: n, content: r } = t, i = n.ownerDocument, c = i.defaultView, l = f.get(i) ?? [];
|
|
63
|
+
f.set(i, l);
|
|
64
|
+
let u = r.parentNode, d = r.nextSibling, p = r.hidden, m = r.getAttribute("style"), h = r.getAttribute("popover"), g = s(n, r), _ = () => {
|
|
65
65
|
if (!n.isConnected) {
|
|
66
66
|
b(!1);
|
|
67
67
|
return;
|
|
68
68
|
}
|
|
69
69
|
let t = e(n.getBoundingClientRect(), r.getBoundingClientRect(), {
|
|
70
|
-
width:
|
|
71
|
-
height:
|
|
70
|
+
width: i.documentElement.clientWidth || c?.innerWidth || 0,
|
|
71
|
+
height: i.documentElement.clientHeight || c?.innerHeight || 0
|
|
72
72
|
});
|
|
73
73
|
Object.assign(r.style, {
|
|
74
74
|
left: `${t.left}px`,
|
|
@@ -76,9 +76,9 @@ var f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = cl
|
|
|
76
76
|
});
|
|
77
77
|
}, v, y = !1, b = (e = t.restoreFocus !== !1) => {
|
|
78
78
|
if (y) return;
|
|
79
|
-
y = !0,
|
|
80
|
-
let
|
|
81
|
-
|
|
79
|
+
y = !0, i.removeEventListener("pointerdown", x, !0), i.removeEventListener("keydown", S), c?.removeEventListener("resize", _), i.removeEventListener("scroll", _, !0), C?.disconnect();
|
|
80
|
+
let o = l.indexOf(r);
|
|
81
|
+
o !== -1 && l.splice(o, 1), a(r, v), g(), u?.isConnected ? u.insertBefore(r, d?.parentNode === u ? d : null) : r.remove(), m === null ? r.removeAttribute("style") : r.setAttribute("style", m), r.hidden = p, h === null ? r.removeAttribute("popover") : r.setAttribute("popover", h), this.active?.content === r && (this.active = void 0), e && n.isConnected && n.focus({ preventScroll: !0 }), t.onClose?.();
|
|
82
82
|
}, x = (e) => {
|
|
83
83
|
if (l.at(-1) !== r) return;
|
|
84
84
|
let i = e.composedPath();
|
|
@@ -86,17 +86,17 @@ var f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = cl
|
|
|
86
86
|
}, S = (e) => {
|
|
87
87
|
l.at(-1) === r && e.key === "Escape" && t.closeOnEscape !== !1 && !e.defaultPrevented && (e.preventDefault(), e.stopPropagation(), b());
|
|
88
88
|
};
|
|
89
|
-
(t.appendTo ??
|
|
89
|
+
(t.appendTo ?? i.body).append(r), r.hidden = !1, Object.assign(r.style, {
|
|
90
90
|
position: "fixed",
|
|
91
91
|
inset: "auto",
|
|
92
92
|
margin: "0"
|
|
93
|
-
}), v =
|
|
93
|
+
}), v = o(r, t.display ?? "block");
|
|
94
94
|
let C = c?.ResizeObserver ? new c.ResizeObserver(_) : void 0;
|
|
95
95
|
return C?.observe(n), C?.observe(r), this.active = {
|
|
96
96
|
content: r,
|
|
97
97
|
close: b,
|
|
98
98
|
position: _
|
|
99
|
-
}, l.push(r),
|
|
99
|
+
}, l.push(r), i.addEventListener("pointerdown", x, !0), i.addEventListener("keydown", S), c?.addEventListener("resize", _), i.addEventListener("scroll", _, !0), _(), {
|
|
100
100
|
close: b,
|
|
101
101
|
refresh: _
|
|
102
102
|
};
|
|
@@ -111,10 +111,10 @@ var f = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = cl
|
|
|
111
111
|
this.close(!1);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
function g(e,
|
|
115
|
-
return
|
|
116
|
-
id:
|
|
117
|
-
class:
|
|
114
|
+
function g(e, r = "grid-tooltip") {
|
|
115
|
+
return n(e, /* @__PURE__ */ t("div", {
|
|
116
|
+
id: i("rv-tooltip"),
|
|
117
|
+
class: r,
|
|
118
118
|
role: "tooltip",
|
|
119
119
|
hidden: !0
|
|
120
120
|
}));
|
|
@@ -122,7 +122,7 @@ function g(e, n = "grid-tooltip") {
|
|
|
122
122
|
var _ = /* @__PURE__ */ new WeakMap(), v = class {
|
|
123
123
|
popover = new h();
|
|
124
124
|
release;
|
|
125
|
-
bind(e, t,
|
|
125
|
+
bind(e, t, n = {}) {
|
|
126
126
|
this.destroy();
|
|
127
127
|
let i = g(e.ownerDocument, "rv-tooltip");
|
|
128
128
|
i.textContent = t;
|
|
@@ -130,7 +130,7 @@ var _ = /* @__PURE__ */ new WeakMap(), v = class {
|
|
|
130
130
|
_.get(e.ownerDocument) === o && _.delete(e.ownerDocument);
|
|
131
131
|
}, o = () => {
|
|
132
132
|
a(), this.popover.close(!1), i.hidden = !0, e.setAttribute("aria-describedby", s ?? ""), s === null && e.removeAttribute("aria-describedby");
|
|
133
|
-
}, s = e.getAttribute("aria-describedby"), c =
|
|
133
|
+
}, s = e.getAttribute("aria-describedby"), c = n.trigger === "click", l = e.getAttribute("aria-expanded");
|
|
134
134
|
c && e.setAttribute("aria-expanded", "false");
|
|
135
135
|
let u = () => {
|
|
136
136
|
this.popover.isOpen || (_.get(e.ownerDocument)?.(), _.set(e.ownerDocument, o), i.hidden = !1, c && e.setAttribute("aria-expanded", "true"), e.setAttribute("aria-describedby", [s, i.id].filter(Boolean).join(" ")), this.popover.open({
|
|
@@ -143,7 +143,7 @@ var _ = /* @__PURE__ */ new WeakMap(), v = class {
|
|
|
143
143
|
}));
|
|
144
144
|
}, d = () => this.popover.isOpen ? o() : u();
|
|
145
145
|
return c ? e.addEventListener("click", d) : (e.addEventListener("pointerenter", u), e.addEventListener("pointerleave", o), e.addEventListener("focus", u), e.addEventListener("blur", o)), this.release = () => {
|
|
146
|
-
o(), e.removeEventListener("click", d), c && (l === null ? e.removeAttribute("aria-expanded") : e.setAttribute("aria-expanded", l)), e.removeEventListener("pointerenter", u), e.removeEventListener("pointerleave", o), e.removeEventListener("focus", u), e.removeEventListener("blur", o),
|
|
146
|
+
o(), e.removeEventListener("click", d), c && (l === null ? e.removeAttribute("aria-expanded") : e.setAttribute("aria-expanded", l)), e.removeEventListener("pointerenter", u), e.removeEventListener("pointerleave", o), e.removeEventListener("focus", u), e.removeEventListener("blur", o), r(i);
|
|
147
147
|
}, () => this.destroy();
|
|
148
148
|
}
|
|
149
149
|
destroy() {
|
package/svelte.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { controlAttributes as e } from "./control-attributes.js";
|
|
2
|
-
import { i as t } from "./_chunks/component-
|
|
2
|
+
import { i as t } from "./_chunks/component-YDcfoOLz.js";
|
|
3
3
|
import { t as n } from "./_chunks/component-metadata-BENbgTjU.js";
|
|
4
|
-
import { n as r, t as i } from "./_chunks/framework-mount-
|
|
4
|
+
import { n as r, t as i } from "./_chunks/framework-mount-C-Zwm44H.js";
|
|
5
5
|
import { uiComponents as a } from "./framework.js";
|
|
6
6
|
import "svelte/internal/disclose-version";
|
|
7
7
|
import * as o from "svelte/internal/client";
|