@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.
Files changed (218) hide show
  1. package/README.md +6 -5
  2. package/_chunks/calendar-CpaUK7w1.js +248 -0
  3. package/_chunks/chart-frame-BC99KjGa.js +127 -0
  4. package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
  5. package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
  6. package/_chunks/color-picker-D90Jg-M8.js +138 -0
  7. package/_chunks/compat.module-DDB2pm9O.js +229 -0
  8. package/_chunks/component-YDcfoOLz.js +859 -0
  9. package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
  10. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  11. package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
  12. package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
  13. package/_chunks/date-time-BxPJusp9.js +770 -0
  14. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
  15. package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
  16. package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
  17. package/_chunks/duration-87U2EoMS.js +271 -0
  18. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  19. package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
  20. package/_chunks/framework-mount-C-Zwm44H.js +54 -0
  21. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  22. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  23. package/_chunks/mount-DZe_6VtR.js +90 -0
  24. package/_chunks/native.view-ByyZ1CT5.js +32 -0
  25. package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
  26. package/_chunks/picker-DpP7iQLA.js +122 -0
  27. package/_chunks/preact.module-BBM36DnO.js +290 -0
  28. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
  29. package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
  30. package/_chunks/request-trail-IdNiFvKH.js +347 -0
  31. package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
  32. package/_vendor/preact/LICENSE +21 -0
  33. package/_vendor/preact/compat/src/index.d.ts +353 -0
  34. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  35. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  36. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  37. package/_vendor/preact/src/dom.d.ts +2548 -0
  38. package/_vendor/preact/src/index.d.ts +373 -0
  39. package/_vendor/preact/src/jsx.d.ts +2958 -0
  40. package/activity-message.d.ts +1 -1
  41. package/activity-message.js +16 -16
  42. package/ai/components.d.ts +1 -1
  43. package/ai/index.js +2 -2
  44. package/ai/request-trail.d.ts +1 -1
  45. package/ai/translation-context.d.ts +1 -1
  46. package/alert.d.ts +2 -2
  47. package/assignee/field.d.ts +2 -2
  48. package/assignee/index.js +87 -87
  49. package/assignee/layout.d.ts +2 -2
  50. package/assignee/picker.d.ts +1 -1
  51. package/avatar/index.js +25 -25
  52. package/avatar/index.view.d.ts +1 -1
  53. package/brush-range/component.d.ts +1 -1
  54. package/brush-range/component.js +30 -30
  55. package/buttons/delete-button.js +1 -1
  56. package/buttons/remove-button.d.ts +1 -1
  57. package/buttons/remove-button.js +3 -3
  58. package/buttons/svg-button.d.ts +1 -1
  59. package/buttons/svg-button.js +35 -35
  60. package/calendar/calendar.d.ts +1 -1
  61. package/calendar/calendar.js +1 -1
  62. package/calendar/caption.d.ts +1 -1
  63. package/calendar/day.d.ts +1 -1
  64. package/calendar/day.js +4 -4
  65. package/calendar/header.d.ts +1 -1
  66. package/calendar/header.js +35 -35
  67. package/calendar/index.js +2 -2
  68. package/calendar/month-grid.d.ts +1 -1
  69. package/calendar/month-grid.js +37 -37
  70. package/calendar/picker.d.ts +1 -1
  71. package/calendar/types.d.ts +1 -1
  72. package/calendar/year-grid.d.ts +1 -1
  73. package/calendar/year-grid.js +12 -12
  74. package/checkbox/index.d.ts +2 -2
  75. package/checkbox/index.js +9 -9
  76. package/choice-chips/index.d.ts +1 -1
  77. package/choice-chips/index.js +1 -1
  78. package/color-palette/color-palette.d.ts +1 -1
  79. package/color-palette/color-palette.js +1 -1
  80. package/color-palette/color-picker.d.ts +1 -1
  81. package/color-palette/color-picker.js +2 -2
  82. package/component-catalog.d.ts +19 -19
  83. package/control-presentation.js +18 -18
  84. package/controls.d.ts +4 -4
  85. package/controls.js +1 -1
  86. package/core/editor-commit.d.ts +1 -1
  87. package/core/editor-popup.d.ts +1 -1
  88. package/core/editor-popup.js +1 -1
  89. package/date-time/date-control.d.ts +1 -1
  90. package/date-time/field.d.ts +2 -2
  91. package/date-time/index.js +1 -1
  92. package/date-time/picker.d.ts +1 -1
  93. package/date-time/time-control.d.ts +1 -1
  94. package/date-time/time-selection.d.ts +1 -1
  95. package/date-time/types.d.ts +1 -1
  96. package/dialog/dialog-action-footer.view.d.ts +1 -1
  97. package/dialog/dialog.dom.js +52 -52
  98. package/dialog/dialog.parts.d.ts +18 -18
  99. package/dialog/dialog.parts.js +1 -1
  100. package/dialog/dialog.preact.d.ts +1 -1
  101. package/dialog/dialog.preact.js +6 -6
  102. package/distribution-chart/area-chart.d.ts +1 -1
  103. package/distribution-chart/area-chart.js +25 -25
  104. package/distribution-chart/bar-chart.d.ts +1 -1
  105. package/distribution-chart/bar-chart.js +6 -6
  106. package/distribution-chart/chart-frame.d.ts +1 -1
  107. package/distribution-chart/index.d.ts +1 -1
  108. package/distribution-chart/index.js +6 -6
  109. package/distribution-chart/line-chart.d.ts +1 -1
  110. package/distribution-chart/line-chart.js +9 -9
  111. package/distribution-chart/types.d.ts +1 -1
  112. package/dropdown/content.d.ts +1 -1
  113. package/dropdown/content.js +83 -82
  114. package/dropdown/dropdown.service.d.ts +1 -1
  115. package/dropdown/dropdown.service.js +9 -9
  116. package/dropdown/index.js +1 -1
  117. package/dropdown/lookup-field.d.ts +1 -1
  118. package/dropdown/lookup-field.js +41 -41
  119. package/dropdown/popup.d.ts +1 -1
  120. package/dropdown/popup.js +17 -16
  121. package/duration/controls.d.ts +1 -1
  122. package/duration/index.d.ts +2 -2
  123. package/duration/index.js +1 -1
  124. package/editor-actions.d.ts +1 -1
  125. package/editor-actions.js +21 -20
  126. package/editor-layout/index.d.ts +1 -1
  127. package/editor-layout/index.js +27 -27
  128. package/field-configurator.d.ts +1 -1
  129. package/field-configurator.js +93 -93
  130. package/field-reorder.hook.js +32 -32
  131. package/filter/filters/slider/preact.js +3 -3
  132. package/filter/filters/slider/single.d.ts +1 -1
  133. package/filter/filters/slider/single.js +23 -23
  134. package/filter-badge.d.ts +1 -1
  135. package/filter-badge.js +23 -22
  136. package/filter-controls.d.ts +1 -1
  137. package/filter-controls.js +31 -31
  138. package/form-controls/index.js +20 -20
  139. package/form-controls/presentation.d.ts +1 -1
  140. package/form-controls/presentation.js +44 -44
  141. package/formatting/comparison-preview.d.ts +1 -1
  142. package/formatting/control-tooltip.d.ts +1 -1
  143. package/formatting/icon-controls.d.ts +1 -1
  144. package/formatting/index.js +99 -98
  145. package/formatting/inspector-section.d.ts +1 -1
  146. package/formatting/typography-controls.d.ts +1 -1
  147. package/framework-mount.d.ts +1 -1
  148. package/framework.js +19 -19
  149. package/icons/icon.d.ts +1 -1
  150. package/icons/icon.js +1 -1
  151. package/legend.d.ts +1 -1
  152. package/legend.js +12 -12
  153. package/masked-input/index.d.ts +1 -1
  154. package/masked-input/index.js +109 -109
  155. package/native-control.d.ts +11 -11
  156. package/native-control.js +12 -12
  157. package/native.js +39 -39
  158. package/number-input/index.d.ts +1 -1
  159. package/number-input/index.js +1 -1
  160. package/package.json +1 -2
  161. package/pdf-viewer/component.d.ts +1 -1
  162. package/pdf-viewer/controller.js +1 -1
  163. package/pdf-viewer/header.d.ts +1 -1
  164. package/pdf-viewer/index.js +13 -13
  165. package/pdf-viewer/search-bar.d.ts +1 -1
  166. package/pdf-viewer/status.d.ts +1 -1
  167. package/pdf-viewer/toolbar.d.ts +1 -1
  168. package/pickers.d.ts +1 -1
  169. package/preact-mount.d.ts +1 -1
  170. package/preact-mount.js +1 -1
  171. package/preact.js +14 -14
  172. package/rating-choice.d.ts +1 -1
  173. package/rating-choice.js +1 -1
  174. package/react-adapter.d.ts +1 -1
  175. package/react.js +19 -19
  176. package/reorder-list.d.ts +1 -1
  177. package/reorder-list.js +1 -1
  178. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  179. package/resource-picker/resource-picker-avatar.js +14 -14
  180. package/resource-picker/resource-picker-option.d.ts +1 -1
  181. package/resource-picker/resource-picker-option.js +28 -28
  182. package/resource-picker/resource-picker-popup.d.ts +1 -1
  183. package/resource-picker/resource-picker-popup.js +3 -3
  184. package/resource-picker/resource-picker.d.ts +1 -1
  185. package/resource-picker/resource-picker.js +88 -88
  186. package/rich-text/index.d.ts +1 -1
  187. package/rich-text/index.js +1 -1
  188. package/rich-text/toolbar.d.ts +1 -1
  189. package/search-input/index.js +12 -12
  190. package/segmented-switch/index.d.ts +1 -1
  191. package/segmented-switch/index.js +1 -1
  192. package/status-feedback/render.d.ts +2 -2
  193. package/status-feedback/render.js +13 -13
  194. package/surfaces.js +34 -34
  195. package/svelte.js +2 -2
  196. package/switch/index.js +15 -15
  197. package/time-grid.d.ts +1 -1
  198. package/time-grid.js +58 -58
  199. package/timeline-track/component.d.ts +1 -1
  200. package/timeline-track/index.js +75 -75
  201. package/vue-adapter.d.ts +1 -1
  202. package/vue.d.ts +116 -116
  203. package/vue.js +121 -121
  204. package/_chunks/calendar-BsDxCYhI.js +0 -248
  205. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  206. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  207. package/_chunks/color-picker-BRv-__AM.js +0 -138
  208. package/_chunks/component-D4PH5UZT.js +0 -859
  209. package/_chunks/date-time-DjucJmbc.js +0 -769
  210. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  211. package/_chunks/duration-BCaktcvz.js +0 -270
  212. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  213. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  214. package/_chunks/mount-0-8opf1j.js +0 -90
  215. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  216. package/_chunks/picker-oazJ7sO_.js +0 -121
  217. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  218. package/_chunks/request-trail-D0oVzdRd.js +0 -347
@@ -1,28 +1,28 @@
1
- import { createControlId as e } from "../core/control-id.js";
2
- import { t } from "../_chunks/chevron-down-GbplLa6s.js";
3
- import { t as n } from "../_chunks/xmark-DD_PBvZI.js";
4
- import { SearchInput as r } from "../search-input/index.js";
5
- import { resourcePickerClasses as i, resourcePickerDataAttribute as ee, resourcePickerIdKey as a } from "./resource-picker.utils.js";
6
- import { ResourcePickerAvatar as o } from "./resource-picker-avatar.js";
7
- import { ResourcePickerOption as s } from "./resource-picker-option.js";
8
- import { ResourcePickerPopup as c } from "./resource-picker-popup.js";
9
- import { useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "preact/hooks";
10
- import { jsx as m, jsxs as h } from "preact/jsx-runtime";
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 g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNames: S, disabled: C = !1, readOnly: w = !1, presentation: te = "inline", multiple: T = !0, preserveOrder: E = !1, unassigned: D, resourceDataAttribute: O, isResourceDisabled: k, getAvatarColor: A }) {
13
- let j = f(null), M = f(null), N = f(null), P = f(null), F = f(!1), [I] = p(() => e("rv-resource-list")), L = `${I}-popup`, R = te === "dropdown", [z, B] = p(!1), [V, H] = p(""), [U, W] = p(0), G = l(() => {
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(y.map(a)), q = d(() => E ? [...g] : [...g].sort((e, t) => e.name.localeCompare(t.name, void 0, {
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, g]), J = d(() => {
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 = d(() => {
22
- let e = new Map(g.map((e) => [a(e.id), e]));
23
- return y.map((t) => e.get(a(t))).filter((e) => !!e);
24
- }, [g, y]), X = R && U >= 0 && U < J.length ? `${I}-option-${U}` : void 0;
25
- u(() => {
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
- ]), u(() => {
44
+ ]), e(() => {
45
45
  W(J.length > 0 ? 0 : -1);
46
- }, [J]), u(() => {
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
- w || (x(e), !T && R && G());
53
- }, ne = () => {
52
+ C || (b(e), !T && R && G());
53
+ }, te = () => {
54
54
  let e = J[U];
55
55
  if (!e) return;
56
- let t = a(e.id);
57
- (!k?.(e) || K.has(t)) && Z(K.has(t) ? y.filter((e) => a(e) !== t) : T ? _([...y, e.id]) : [e.id]);
58
- }, re = (e) => {
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(), ne());
64
- }, Q = typeof document > "u" ? null : j.current?.closest("dialog, .rv-dialog-overlay") ?? document.body, $ = /* @__PURE__ */ h("div", {
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 ? re : void 0,
67
- children: [/* @__PURE__ */ m(r, {
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: i("rv-resource-picker__search", S?.search),
70
+ inputClassName: l("rv-resource-picker__search", x?.search),
71
71
  value: V,
72
- disabled: C,
73
- placeholder: b.searchPlaceholder,
74
- "aria-label": b.searchAriaLabel,
72
+ disabled: S,
73
+ placeholder: y.searchPlaceholder,
74
+ "aria-label": y.searchAriaLabel,
75
75
  onValueChange: H
76
- }), /* @__PURE__ */ h("div", {
76
+ }), /* @__PURE__ */ a("div", {
77
77
  ref: P,
78
- class: i("rv-resource-picker__list", S?.list),
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": b.groupAriaLabel,
84
- children: [D && !w ? /* @__PURE__ */ h("label", {
85
- class: i("rv-resource-picker__option rv-resource-picker__option--unassigned", S?.option),
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__ */ m("input", {
87
+ /* @__PURE__ */ a("input", {
88
88
  type: "checkbox",
89
- checked: y.length === 0,
90
- disabled: C,
91
- ...ee(D.dataAttribute, ""),
92
- onChange: () => x([])
89
+ checked: v.length === 0,
90
+ disabled: S,
91
+ ...u(D.dataAttribute, ""),
92
+ onChange: () => b([])
93
93
  }),
94
- /* @__PURE__ */ m("span", {
94
+ /* @__PURE__ */ a("span", {
95
95
  class: "rv-resource-picker__avatar-spacer",
96
96
  "aria-hidden": "true"
97
97
  }),
98
- /* @__PURE__ */ m("span", {
99
- class: i("rv-resource-picker__details", S?.details),
100
- children: /* @__PURE__ */ m("strong", { children: D.label })
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, g.length === 0 ? /* @__PURE__ */ m(v, {
104
- className: S?.muted,
105
- text: b.emptyResources
106
- }) : J.length === 0 ? /* @__PURE__ */ m(v, {
107
- className: S?.muted,
108
- text: b.emptySearch
109
- }) : J.map((e, t) => /* @__PURE__ */ m(s, {
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(a(e.id)),
112
- selectedResourceIds: y,
113
- disabled: C,
114
- readOnly: w,
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: S,
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
- }, a(e.id)))]
126
+ }, d(e.id)))]
127
127
  })]
128
128
  });
129
- return /* @__PURE__ */ h("div", {
129
+ return /* @__PURE__ */ a("div", {
130
130
  ref: j,
131
- class: i("rv-resource-picker", R ? "rv-resource-picker--dropdown" : void 0, z ? "rv-resource-picker--open" : void 0, S?.root),
132
- children: [R ? /* @__PURE__ */ h("div", {
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": b.groupAriaLabel,
140
- tabIndex: C ? -1 : 0,
139
+ "aria-label": y.groupAriaLabel,
140
+ tabIndex: S ? -1 : 0,
141
141
  onClick: (e) => {
142
- C || (e.preventDefault(), z ? G() : B(!0));
142
+ S || (e.preventDefault(), z ? G() : B(!0));
143
143
  },
144
144
  onKeyDown: (e) => {
145
- C || e.target !== e.currentTarget || (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), B(!0));
145
+ S || e.target !== e.currentTarget || (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), B(!0));
146
146
  },
147
- children: [/* @__PURE__ */ m("div", {
147
+ children: [/* @__PURE__ */ a("div", {
148
148
  class: "rv-resource-picker__chips",
149
- children: Y.length ? Y.map((e) => /* @__PURE__ */ h("span", {
149
+ children: Y.length ? Y.map((e) => /* @__PURE__ */ a("span", {
150
150
  class: "rv-resource-picker__chip",
151
151
  children: [
152
- /* @__PURE__ */ m(o, {
152
+ /* @__PURE__ */ a(f, {
153
153
  resource: e,
154
- className: S?.avatar,
154
+ className: x?.avatar,
155
155
  color: A?.(e)
156
156
  }),
157
- /* @__PURE__ */ m("span", {
157
+ /* @__PURE__ */ a("span", {
158
158
  class: "rv-resource-picker__chip-label",
159
159
  children: e.name
160
160
  }),
161
- !C && !w ? /* @__PURE__ */ m("button", {
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(), x(y.filter((t) => a(t) !== a(e.id)));
166
+ t.stopPropagation(), b(v.filter((t) => d(t) !== d(e.id)));
167
167
  },
168
- children: /* @__PURE__ */ m("span", {
168
+ children: /* @__PURE__ */ a("span", {
169
169
  "aria-hidden": "true",
170
- dangerouslySetInnerHTML: { __html: n }
170
+ dangerouslySetInnerHTML: { __html: ee }
171
171
  })
172
172
  }) : null
173
173
  ]
174
- }, a(e.id))) : /* @__PURE__ */ m("span", {
174
+ }, d(e.id))) : /* @__PURE__ */ a("span", {
175
175
  class: "rv-resource-picker__placeholder",
176
- children: b.searchPlaceholder
176
+ children: y.searchPlaceholder
177
177
  })
178
- }), /* @__PURE__ */ m("span", {
178
+ }), /* @__PURE__ */ a("span", {
179
179
  class: "rv-resource-picker__chevron",
180
180
  "aria-hidden": "true",
181
- dangerouslySetInnerHTML: { __html: t }
181
+ dangerouslySetInnerHTML: { __html: s }
182
182
  })]
183
- }) : null, R ? z && Q ? /* @__PURE__ */ m(c, {
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 _(e) {
192
- return [...new Map(e.map((e) => [a(e), e])).values()];
191
+ function g(e) {
192
+ return [...new Map(e.map((e) => [d(e), e])).values()];
193
193
  }
194
- function v({ className: e, text: t }) {
195
- return /* @__PURE__ */ m("span", {
196
- class: i("rv-resource-picker__empty", e),
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 { g as SharedResourcePicker };
201
+ export { h as SharedResourcePicker };
@@ -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';
@@ -1 +1 @@
1
- export { t as MarkdownEditor, r as defaultMarkdownEditorText, i as isSafeMarkdownLink, n as markdownRenderNodes, a as markdownVisualIssues } from "../_chunks/rich-text-2Rla349o.js";
1
+ export { t as MarkdownEditor, r as defaultMarkdownEditorText, i as isSafeMarkdownLink, n as markdownRenderNodes, a as markdownVisualIssues } from "../_chunks/rich-text-BzI1DyfF.js";
@@ -6,4 +6,4 @@ export declare function MarkdownToolbar({ engine, selection, text, showLink, onL
6
6
  text: Required<MarkdownEditorText>;
7
7
  showLink: boolean;
8
8
  onLink: () => void;
9
- }): import("preact").JSX.Element;
9
+ }): import("../_vendor/preact/src/index").JSX.Element;
@@ -1,20 +1,20 @@
1
- import { n as e } from "../_chunks/native.view-8q_nwQ7x.js";
2
- import { h as t } from "preact";
3
- import { jsx as n, jsxs as r } from "preact/jsx-runtime";
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 i() {
6
- return /* @__PURE__ */ r("svg", {
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__ */ n("circle", {
13
+ children: [/* @__PURE__ */ t("circle", {
14
14
  cx: "11",
15
15
  cy: "11",
16
16
  r: "8"
17
- }), /* @__PURE__ */ n("line", {
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 a({ value: r = "", 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 }) {
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(t, {
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__ */ n(i, {}),
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: r,
44
+ value: i,
45
45
  onInput: b
46
46
  }
47
47
  });
48
48
  }
49
49
  //#endregion
50
- export { a as SearchInput };
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> = {
@@ -1,4 +1,4 @@
1
- import { h as e } from "preact";
1
+ import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
2
2
  //#region src/segmented-switch/index.tsx
3
3
  function t(e) {
4
4
  if (e === "tablist") return "tab";
@@ -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 { renderHeader as e } from "./header.js";
2
- import { renderItem as t } from "./item.js";
3
- import { renderStatusBadge as n } from "./badge.js";
4
- import { h as r } from "preact";
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(n, r) {
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(), n("section", {
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(n, r, u, d, f), n("div", {
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((e) => t(n, e)))]);
35
+ }, a.map((t) => n(e, t)))]);
36
36
  }
37
- function a(e) {
38
- return i(r, e);
37
+ function a(t) {
38
+ return i(e, t);
39
39
  }
40
- function o(e) {
41
- return n(r, e);
40
+ function o(t) {
41
+ return r(e, t);
42
42
  }
43
43
  //#endregion
44
- export { o as StatusBadge, a as StatusFeedbackPanel, n as renderStatusBadge, i as renderStatusFeedbackPanel };
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 { createPreactElement as t, releasePreactElement as n } from "./preact-mount.js";
3
- import { createControlId as r } from "./core/control-id.js";
4
- import { hideTopLayerPopup as i, showTopLayerPopup as a } from "./core/top-layer-popup.js";
5
- import { inheritUiMotion as o } from "./core/motion.js";
6
- import { createDialogElements as s, getDialogFocusableElements as c, trapDialogFocus as l } from "./dialog/dialog.dom.js";
7
- import { attachDialogDrag as u } from "./dialog/dialog.drag.js";
8
- import { jsx as d } from "preact/jsx-runtime";
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, r = t.activeElement, i = !1, a, d, f = p.get(t) ?? [];
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?.(), d?.(), n(h.root);
27
- let t = f.indexOf(h.root), o = t === f.length - 1;
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
- o && (this.environment.restoreFocus ? this.environment.restoreFocus(e.returnFocus, r ?? void 0) : [e.returnFocus, r].find((e) => e?.isConnected)?.focus?.({ preventScroll: !0 }));
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 = s(t, e, m), g = {
34
+ }, h = c(t, e, m), g = {
35
35
  ...h,
36
36
  close: m
37
37
  };
38
- return this.environment.beforeMount?.(h.root), d = o(e.returnFocus ?? r, h.root), h.root.addEventListener("mousedown", (e) => {
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" && l(h.root, e));
42
- }), t.body.append(h.root), f.push(h.root), e.draggable !== !1 && (a = u({
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 && (c(h.root)[0] ?? h.root).focus({ preventScroll: !0 });
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, s = n.ownerDocument, c = s.defaultView, l = f.get(s) ?? [];
63
- f.set(s, l);
64
- let u = r.parentNode, d = r.nextSibling, p = r.hidden, m = r.getAttribute("style"), h = r.getAttribute("popover"), g = o(n, r), _ = () => {
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: s.documentElement.clientWidth || c?.innerWidth || 0,
71
- height: s.documentElement.clientHeight || c?.innerHeight || 0
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, s.removeEventListener("pointerdown", x, !0), s.removeEventListener("keydown", S), c?.removeEventListener("resize", _), s.removeEventListener("scroll", _, !0), C?.disconnect();
80
- let a = l.indexOf(r);
81
- a !== -1 && l.splice(a, 1), i(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?.();
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 ?? s.body).append(r), r.hidden = !1, Object.assign(r.style, {
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 = a(r, t.display ?? "block");
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), s.addEventListener("pointerdown", x, !0), s.addEventListener("keydown", S), c?.addEventListener("resize", _), s.addEventListener("scroll", _, !0), _(), {
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, n = "grid-tooltip") {
115
- return t(e, /* @__PURE__ */ d("div", {
116
- id: r("rv-tooltip"),
117
- class: n,
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, r = {}) {
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 = r.trigger === "click", l = e.getAttribute("aria-expanded");
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), n(i);
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-D4PH5UZT.js";
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-BKIOsvY-.js";
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";