@revolist/ui 4.0.6 → 4.0.10

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 (187) hide show
  1. package/README.md +37 -1
  2. package/_chunks/{arrow-up-Cw8hW9vp.js → arrow-up-BSYhTAus.js} +1 -1
  3. package/_chunks/{calculator-CDWOuAcp.js → calculator-BG0Xd_Uw.js} +1 -1
  4. package/_chunks/{calendar-BQYQLu8Q.js → calendar-CQHVwHLW.js} +3 -3
  5. package/_chunks/{chart-frame-GprenwEg.js → chart-frame-pj5EQxXr.js} +5 -5
  6. package/_chunks/{check-BwI7iCAm.js → check-BFIC9pge.js} +1 -1
  7. package/_chunks/{chevron-down-GbplLa6s.js → chevron-down-BkrpxJYD.js} +1 -1
  8. package/_chunks/{chevron-right-CM3ljziP.js → chevron-right-DZ79RmYV.js} +1 -1
  9. package/_chunks/{chevron-up-BLuNMPDn.js → chevron-up-Dt846uIR.js} +1 -1
  10. package/_chunks/{choice-chips-C5OxD0GV.js → choice-chips-BIGT7gjO.js} +4 -4
  11. package/_chunks/{clock-BOhPNlW3.js → clock-DTfr4p2S.js} +1 -1
  12. package/_chunks/{color-palette-7siNch__.js → color-palette-DL0f3igd.js} +3 -3
  13. package/_chunks/{color-picker-Cfc9eqZb.js → color-picker-BWBM9GE1.js} +7 -7
  14. package/_chunks/{component-C3k_8uIq.js → component-B22CtP21.js} +58 -43
  15. package/_chunks/{component-metadata-DlVkpW3h.js → component-metadata-B_hLjtM0.js} +4 -1
  16. package/_chunks/{configurator-actions-vRnI54mO.js → configurator-actions-BhIk4oM_.js} +18 -18
  17. package/_chunks/{configurator-field-icon-CmcM_sPs.js → configurator-field-icon-B0S_208W.js} +2 -2
  18. package/_chunks/{control-BRfF5DWQ.js → control-zCLB1tGz.js} +2 -2
  19. package/_chunks/{controller-BbiQuRt-.js → controller-ChkqiANQ.js} +1 -1
  20. package/_chunks/{controls-B3EgM_DS.js → controls-Ip2E6jIu.js} +10 -9
  21. package/_chunks/{date-control-87dcA5br.js → date-control-UmJvxQ5C.js} +4 -4
  22. package/_chunks/{date-time-CfiFYodx.js → date-time-B9YGqree.js} +57 -57
  23. package/_chunks/{delete-button-jneO24wa.js → delete-button-DQSK6G-4.js} +1 -1
  24. package/_chunks/{dialog.parts-NqEEVc9P.js → dialog.parts-CpMwNhTM.js} +5 -5
  25. package/_chunks/{duration-BGZ_qJ99.js → duration-BrsE4QgL.js} +15 -15
  26. package/_chunks/{editor-commit-Dyo-FMgD.js → editor-commit-BXIUX0As.js} +2 -2
  27. package/_chunks/{editor-popup-NNP9Fh9U.js → editor-popup-Ds0GPAcn.js} +3 -3
  28. package/_chunks/{field-configurator-DPulsY3l.js → field-configurator-BMQnmWNd.js} +10 -9
  29. package/_chunks/{field-context-C4_WrO2z.js → field-context-0oUi-w-G.js} +1 -1
  30. package/_chunks/{framework-mount-D4I8HpVp.js → framework-mount-CX0oj05W.js} +3 -3
  31. package/_chunks/{hooks.module-CG3gN83z.js → hooks.module-CXpO2xq6.js} +2 -2
  32. package/_chunks/{icon-toolbar-BAAdEvr9.js → icon-toolbar-C4J_Wqph.js} +6 -6
  33. package/_chunks/{jsxRuntime.module-F6UFnpT-.js → jsxRuntime.module-ksX_VSbv.js} +2 -2
  34. package/_chunks/{magnifying-glass-CvrTDSkB.js → magnifying-glass-BFZrFs8M.js} +1 -1
  35. package/_chunks/{minus-BOAR3A1C.js → minus-DE8NPK_D.js} +1 -1
  36. package/_chunks/{mount-C8CnIW9k.js → mount-BgI_QV2H.js} +7 -7
  37. package/_chunks/native-C9tJWAXF.js +52 -0
  38. package/_chunks/{native-CJm3eq3-.js → native-RudS9C_q.js} +2 -2
  39. package/_chunks/{native-control-um1L1wgZ.js → native-control-DjJ8Na3T.js} +49 -44
  40. package/_chunks/{number-input-CKiA4d1N.js → number-input-Bb5guKP4.js} +4 -4
  41. package/_chunks/{picker-igNshTRC.js → picker-DDUmhT93.js} +5 -5
  42. package/_chunks/{plus-CbGRkIGl.js → plus-BaXticu7.js} +1 -1
  43. package/_chunks/{popup-DECYM9FI.js → popup-HEUnOeq-.js} +5 -5
  44. package/_chunks/{preact.module-BBM36DnO.js → preact.module-DzTStiZX.js} +1 -1
  45. package/_chunks/{rating-choice-CepVfGUq.js → rating-choice-CtrABPp-.js} +3 -3
  46. package/_chunks/{render-bTk3curw.js → render-C6PFWlqh.js} +2 -2
  47. package/_chunks/{reorder-list-B4w3aARt.js → reorder-list-DvwZcFPH.js} +4 -4
  48. package/_chunks/{request-trail-B1zVRPEf.js → request-trail-D5PKrBlC.js} +11 -11
  49. package/_chunks/{rich-text-Ci4d6dHn.js → rich-text-DW1vcBAY.js} +31 -31
  50. package/_chunks/{rotate-left-BF6G883o.js → rotate-left-CTHmcGBP.js} +1 -1
  51. package/_chunks/{rotate-right-Iha5ScJ1.js → rotate-right-BIfKgVun.js} +1 -1
  52. package/_chunks/{selection-list-tooltips-m00U3L6z.js → selection-list-tooltips-j84Wufjj.js} +8 -4
  53. package/_chunks/{title-tooltip-ncldbUwS.js → title-tooltip-DKiWhsL7.js} +1 -1
  54. package/_chunks/tooltip-BkuH0JdW.js +93 -0
  55. package/_chunks/tooltip-session-BBKkwhLZ.js +244 -0
  56. package/_chunks/{tooltip-text-BN5WdGHn.js → tooltip-text-CH_c2J-J.js} +2 -2
  57. package/_chunks/top-layer-popup-DU1r_2v5.js +107 -0
  58. package/_chunks/{xmark-DD_PBvZI.js → xmark-DQRQfXZI.js} +1 -1
  59. package/activity-message.js +1 -1
  60. package/ai/index.js +2 -2
  61. package/angular/angular.d.ts +2 -0
  62. package/angular/angular.js +1 -0
  63. package/assignee/index.js +28 -28
  64. package/avatar/index.js +3 -3
  65. package/browser/favicon.svg +9 -0
  66. package/browser/pdf-viewer.css +2 -0
  67. package/browser/pdf.worker.min.mjs +28 -0
  68. package/browser/pdfjs-LICENSE +177 -0
  69. package/browser/revo-ui.global.js +671 -0
  70. package/browser/revo-ui.js +35538 -0
  71. package/browser/robots.txt +4 -0
  72. package/browser.d.ts +3 -0
  73. package/browser.js +34 -0
  74. package/brush-range/component.js +2 -2
  75. package/buttons/delete-button.js +1 -1
  76. package/buttons/remove-button.js +2 -2
  77. package/buttons/svg-button.js +4 -4
  78. package/calendar/_calendar.scss +12 -4
  79. package/calendar/calendar.js +1 -1
  80. package/calendar/day.js +1 -1
  81. package/calendar/header.js +2 -2
  82. package/calendar/index.js +2 -2
  83. package/calendar/month-grid.js +1 -1
  84. package/calendar/year-grid.js +1 -1
  85. package/checkbox/index.js +1 -1
  86. package/choice-chips/index.js +1 -1
  87. package/color-palette/color-palette.js +1 -1
  88. package/color-palette/color-picker.js +2 -2
  89. package/configurator-actions.js +1 -1
  90. package/configurator-aggregation-list.js +6 -6
  91. package/configurator-drop-zone.js +3 -3
  92. package/configurator-field-icon.js +1 -1
  93. package/configurator-focus.js +1 -1
  94. package/configurator-sections.js +3 -3
  95. package/control-presentation.js +2 -2
  96. package/controls.js +2 -2
  97. package/core/editor-popup.js +1 -1
  98. package/core/popover-controller.d.ts +31 -6
  99. package/core/popover-controller.js +171 -46
  100. package/core/popup-ownership.d.ts +1 -1
  101. package/core/tooltip-options.d.ts +143 -0
  102. package/core/tooltip-options.js +20 -0
  103. package/core/tooltip-session.d.ts +32 -8
  104. package/core/tooltip-surface.d.ts +14 -3
  105. package/core/tooltip.d.ts +20 -19
  106. package/core/top-layer-popup.d.ts +2 -1
  107. package/core/top-layer-popup.js +1 -1
  108. package/date-time/index.js +1 -1
  109. package/dialog/dialog.dom.js +3 -3
  110. package/dialog/dialog.parts.js +1 -1
  111. package/dialog/dialog.preact.js +1 -1
  112. package/distribution-chart/area-chart.js +3 -3
  113. package/distribution-chart/bar-chart.js +2 -2
  114. package/distribution-chart/index.js +1 -1
  115. package/distribution-chart/line-chart.js +2 -2
  116. package/dropdown/content.d.ts +3 -1
  117. package/dropdown/content.js +1 -1
  118. package/dropdown/control.js +1 -1
  119. package/dropdown/dropdown.service.js +56 -56
  120. package/dropdown/index.js +2 -2
  121. package/dropdown/lookup-field.js +7 -7
  122. package/dropdown/popup.js +1 -1
  123. package/duration/index.js +1 -1
  124. package/editor-actions.js +3 -3
  125. package/editor-layout/index.js +3 -3
  126. package/field-configurator.js +1 -1
  127. package/field-reorder.hook.js +1 -1
  128. package/filter/filters/slider/preact.js +1 -1
  129. package/filter/filters/slider/runtime.js +1 -1
  130. package/filter/filters/slider/single.js +2 -2
  131. package/filter-badge.js +4 -4
  132. package/filter-controls.js +3 -3
  133. package/form-controls/index.js +3 -3
  134. package/form-controls/presentation.js +4 -4
  135. package/formatting/index.js +7 -7
  136. package/framework.js +135 -135
  137. package/history-controls.js +3 -3
  138. package/icon-toolbar.js +1 -1
  139. package/icons/icon.js +1 -1
  140. package/legend.js +1 -1
  141. package/masked-input/index.js +3 -3
  142. package/native-control.js +1 -1
  143. package/native.js +29 -79
  144. package/number-input/index.js +1 -1
  145. package/package.json +21 -1
  146. package/pagination.js +1 -1
  147. package/pdf-viewer/controller.js +1 -1
  148. package/pdf-viewer/index.js +3 -3
  149. package/pickers.d.ts +11 -4
  150. package/preact-mount.js +1 -1
  151. package/preact.d.ts +2 -0
  152. package/preact.js +66 -65
  153. package/rating-choice.js +1 -1
  154. package/react-adapter.d.ts +1 -1
  155. package/react.d.ts +2 -0
  156. package/react.js +64 -63
  157. package/reorder-list.js +1 -1
  158. package/resource-picker/resource-picker-avatar.js +2 -2
  159. package/resource-picker/resource-picker-option.js +1 -1
  160. package/resource-picker/resource-picker-popup.js +2 -2
  161. package/resource-picker/resource-picker.js +5 -5
  162. package/rich-text/index.js +1 -1
  163. package/search-input/index.js +3 -3
  164. package/segmented-switch/index.js +1 -1
  165. package/select.js +1 -1
  166. package/selection-list.js +1 -1
  167. package/status-feedback/exit-snapshot.js +1 -1
  168. package/status-feedback/header.js +3 -3
  169. package/status-feedback/index.js +1 -1
  170. package/status-feedback/popover.js +1 -1
  171. package/status-feedback/render.js +1 -1
  172. package/styles.css +1 -1
  173. package/surfaces.d.ts +1 -0
  174. package/surfaces.js +25 -24
  175. package/svelte.d.ts +2 -0
  176. package/svelte.js +30 -29
  177. package/switch/index.js +2 -2
  178. package/time-grid.js +4 -4
  179. package/timeline-track/_style.scss +33 -2
  180. package/timeline-track/component.d.ts +10 -1
  181. package/timeline-track/index.js +136 -74
  182. package/ui.css +1 -1
  183. package/vue.d.ts +11 -13
  184. package/vue.js +94 -90
  185. package/_chunks/tooltip-h-Z8yFBY.js +0 -54
  186. package/_chunks/tooltip-session-CBtRMBPr.js +0 -110
  187. package/_chunks/top-layer-popup-CKJ7VJOF.js +0 -59
@@ -0,0 +1,93 @@
1
+ import { i as e, o as t, r as n, t as r } from "./hooks.module-CXpO2xq6.js";
2
+ import { t as i } from "./jsxRuntime.module-ksX_VSbv.js";
3
+ import { t as a } from "./tooltip-session-BBKkwhLZ.js";
4
+ import { createControlId as o } from "../core/control-id.js";
5
+ //#region package/core/tooltip.tsx
6
+ function s(s, c = !0, l) {
7
+ let [u] = e(() => o("rv-format-control-tooltip")), d = l?.id ?? u, [f] = e(() => new a()), p = r(null), m = r(!1), h = t(() => f.hide(), [f]), g = t((e) => {
8
+ e || f.hide("destroy", void 0, !0), f.setSurface(e);
9
+ }, [f]), _ = () => {
10
+ if (l?.anchor && (p.current = l.anchor), !p.current?.isConnected) {
11
+ let e = f.element?.getRootNode();
12
+ p.current = [...e?.querySelectorAll("[aria-describedby]") ?? []].find((e) => e.getAttribute("aria-describedby")?.split(/\s+/).includes(d)) ?? null;
13
+ }
14
+ return p.current;
15
+ };
16
+ n(() => {
17
+ f.hide();
18
+ }, [s, l?.delay]), n(() => {
19
+ f.configure(l ?? {}), (l?.open || l?.defaultOpen) && _(), l?.open === void 0 ? m.current || (m.current = !0, l?.defaultOpen && p.current && f.show(p.current, "controlled")) : l.open && p.current ? f.show(p.current, "controlled") : f.hide("controlled");
20
+ }), n(() => () => f.destroy(), [f]);
21
+ let v = Array.isArray(l?.trigger) ? l.trigger : l?.trigger === "manual" ? [] : l?.trigger === "click" ? ["click"] : l?.trigger === "focus" ? ["focus"] : ["hover", "focus"];
22
+ return {
23
+ id: d,
24
+ hide: h,
25
+ show: () => {
26
+ let e = _();
27
+ e && f.show(e);
28
+ },
29
+ refresh: () => f.refresh(),
30
+ triggerProps: {
31
+ "aria-describedby": d,
32
+ onFocus: (e) => {
33
+ p.current = e.currentTarget, v.includes("focus") && f.focus(e.currentTarget, e);
34
+ },
35
+ onBlur: (e) => f.blur(e),
36
+ onMouseEnter: (e) => {
37
+ p.current = e.currentTarget, v.includes("hover") && f.show(e.currentTarget, "hover", e);
38
+ },
39
+ onMouseLeave: (e) => f.leave(e?.currentTarget, e),
40
+ onPointerDown: (e) => f.pointerDown(),
41
+ onPointerCancel: () => f.hide(),
42
+ onClickCapture: (e) => {
43
+ p.current = e.currentTarget, v.includes("click") ? f.isOpen ? f.hide("click", e) : f.show(e.currentTarget, "click", e) : l?.hideOnClick !== !1 && f.hide("press", e);
44
+ },
45
+ onKeyDown: (e) => {
46
+ (!v.includes("click") || e.key === "Escape") && f.keyDown(e);
47
+ }
48
+ },
49
+ tooltip: /* @__PURE__ */ i("span", {
50
+ ref: g,
51
+ id: d,
52
+ class: `rv-tooltip ${l?.className ?? "rv-format-control-tooltip"}`,
53
+ role: "tooltip",
54
+ "data-visible": "false",
55
+ hidden: !0,
56
+ children: /* @__PURE__ */ i("span", {
57
+ class: "rv-tooltip__content",
58
+ children: l?.content ?? s
59
+ })
60
+ })
61
+ };
62
+ }
63
+ function c({ id: r, text: o, content: s, visible: c, anchor: l = null, className: u = "rv-format-control-tooltip", ...d }) {
64
+ let [f] = e(() => new a()), p = t((e) => {
65
+ e || f.hide("destroy", void 0, !0), f.setSurface(e);
66
+ }, [f]);
67
+ return n(() => {
68
+ f.configure({
69
+ ...d,
70
+ className: u
71
+ });
72
+ }), n(() => {
73
+ c && l ? f.show(l, "controlled") : f.hide("controlled");
74
+ }, [
75
+ c,
76
+ l,
77
+ d.disabled
78
+ ]), n(() => () => f.destroy(), [f]), /* @__PURE__ */ i("span", {
79
+ ref: p,
80
+ id: r,
81
+ class: `rv-tooltip ${u}`,
82
+ role: "tooltip",
83
+ "data-visible": "false",
84
+ hidden: !0,
85
+ children: /* @__PURE__ */ i("span", {
86
+ class: "rv-tooltip__content",
87
+ children: s ?? o
88
+ })
89
+ });
90
+ }
91
+ var l = s;
92
+ //#endregion
93
+ export { s as n, l as r, c as t };
@@ -0,0 +1,244 @@
1
+ import { c as e, l as t, o as n, r, t as i } from "./top-layer-popup-DU1r_2v5.js";
2
+ import { n as a, t as o } from "./tooltip-owner-BYho-vJl.js";
3
+ import { inheritUiMotion as s, isUiMotionEnabled as c } from "../core/motion.js";
4
+ //#region package/core/tooltip-session.ts
5
+ var l = class {
6
+ anchor;
7
+ surface;
8
+ timer;
9
+ closeTimer;
10
+ transitionTimer;
11
+ frame;
12
+ mode;
13
+ cleanup;
14
+ restoreMotion;
15
+ managedMount = !1;
16
+ home;
17
+ pointerFocus = !1;
18
+ pointerTravel = !1;
19
+ hoverArea;
20
+ open = !1;
21
+ disposed = !1;
22
+ addedDescription = !1;
23
+ classes = [];
24
+ styleKeys = [];
25
+ details;
26
+ options = {};
27
+ onShow;
28
+ onHide;
29
+ onEscape;
30
+ delay = 0;
31
+ get isOpen() {
32
+ return this.open;
33
+ }
34
+ get isPending() {
35
+ return this.timer !== void 0;
36
+ }
37
+ get target() {
38
+ return this.anchor;
39
+ }
40
+ get element() {
41
+ return this.surface;
42
+ }
43
+ configure(e) {
44
+ let t = this.options.group;
45
+ this.open && t !== e.group && (t?.closed(this), e.group?.opened(this)), this.options = e, e.disabled ? this.hide("disabled", void 0, !0) : this.open && this.refresh();
46
+ }
47
+ setSurface(e) {
48
+ this.surface = e ?? void 0;
49
+ }
50
+ duration() {
51
+ return this.surface && c(this.surface) ? Math.max(0, this.options.transitionDuration ?? 0) : 0;
52
+ }
53
+ request(e, t, n = !1) {
54
+ return t.reason === "controlled" || t.reason === "destroy" ? !0 : !n && this.options.onBeforeOpenChange?.(e, t) === !1 ? !1 : (this.options.onOpenChange?.(e, t), n || this.options.open === void 0 || this.options.open === e);
55
+ }
56
+ show(e, t = "imperative", n) {
57
+ if (clearTimeout(this.closeTimer), this.closeTimer = void 0, this.disposed || this.options.disabled || this.anchor === e && this.open) return;
58
+ this.hide("owner-change", void 0, !0), this.anchor = e, this.details = {
59
+ target: e,
60
+ reason: t,
61
+ event: n
62
+ }, this.listen(e);
63
+ let r = t === "controlled" || t === "click" ? 0 : t === "imperative" ? this.delay : t === "focus" ? this.options.focusDelay ?? 0 : this.options.delay ?? this.options.group?.getDelay() ?? this.delay;
64
+ r > 0 ? this.timer = setTimeout(() => {
65
+ this.timer = void 0, this.present();
66
+ }, r) : this.present();
67
+ }
68
+ applyStyles(t) {
69
+ for (let e of this.styleKeys) t.style.removeProperty(e);
70
+ let n = e(t.ownerDocument, this.options.style);
71
+ this.styleKeys = n.map(([e]) => e), t.classList.remove(...this.classes), this.classes = this.options.className?.split(/\s+/).filter(Boolean) ?? [], t.classList.add(...this.classes);
72
+ let r = (e, t = "") => typeof e == "number" ? `${e}px` : e ?? t;
73
+ Object.assign(t.style, {
74
+ width: r(this.options.width),
75
+ height: r(this.options.height),
76
+ maxWidth: r(this.options.maxWidth, "min(360px, calc(100vw - 16px))"),
77
+ maxHeight: r(this.options.maxHeight, "calc(100dvh - 16px)")
78
+ });
79
+ for (let [e, r, i] of n) t.style.setProperty(e, r, i);
80
+ t.dataset.arrow = String(this.options.arrow ?? !1);
81
+ }
82
+ present() {
83
+ let e = this.anchor, n = this.surface, i = this.details;
84
+ if (!e || !n || !i || !e.isConnected || this.disposed) {
85
+ this.hide("anchor-removed", void 0, !0);
86
+ return;
87
+ }
88
+ if (!this.request(!0, i)) {
89
+ this.cleanup?.(), this.cleanup = void 0;
90
+ return;
91
+ }
92
+ if (this.disposed) return;
93
+ o(e.ownerDocument, this, () => this.hide("owner-change", void 0, !0));
94
+ let a = this.options.appendTo;
95
+ a && n.parentNode !== a ? (!this.managedMount && n.parentNode && n.isConnected ? this.home = {
96
+ parent: n.parentNode,
97
+ next: n.nextSibling
98
+ } : this.managedMount = !0, a.append(n)) : n.isConnected || (this.managedMount = !0, e.ownerDocument.body.append(n)), t(n), this.restoreMotion = s(e, n), n.hidden = !1, n.dataset.visible = "true", this.applyStyles(n), Object.assign(n.style, {
99
+ position: "fixed",
100
+ inset: "auto",
101
+ margin: "0",
102
+ transform: "none",
103
+ visibility: "visible",
104
+ positionAnchor: "auto",
105
+ positionArea: "none"
106
+ }), this.mode = r(n, "flex");
107
+ let c = new Set((e.getAttribute("aria-describedby") ?? "").split(/\s+/).filter(Boolean));
108
+ if (this.addedDescription = !c.has(n.id), c.add(n.id), e.setAttribute("aria-describedby", [...c].join(" ")), this.open = !0, this.options.group?.opened(this), this.position(e, n), !this.open) return;
109
+ let l = this.duration();
110
+ n.dataset.duration = String(l > 0), n.style.setProperty("--rv-tooltip-duration", `${l}ms`), n.dataset.state = l ? "opening" : "open", l && (this.frame = e.ownerDocument.defaultView?.requestAnimationFrame(() => {
111
+ this.frame = void 0, this.open && (n.dataset.state = "open");
112
+ }), this.transitionTimer = setTimeout(() => {
113
+ this.transitionTimer = void 0, this.open && this.options.onOpenChangeComplete?.(!0, i);
114
+ }, l)), this.onShow?.(i), this.options.onShow?.(i), !l && this.open && this.options.onOpenChangeComplete?.(!0, i);
115
+ }
116
+ position(e, t) {
117
+ let r = e.ownerDocument.defaultView, i = e.getBoundingClientRect();
118
+ if (!this.options.sticky && i.width > 0 && i.height > 0 && (i.bottom < 0 || i.right < 0 || i.top > (r?.innerHeight ?? Infinity) || i.left > (r?.innerWidth ?? Infinity))) {
119
+ this.hide("viewport", void 0, !0);
120
+ return;
121
+ }
122
+ let a = {
123
+ ...this.options,
124
+ direction: this.options.direction ?? (r?.getComputedStyle(e).direction === "rtl" ? "rtl" : "ltr")
125
+ }, o = {
126
+ width: r?.innerWidth ?? 0,
127
+ height: r?.innerHeight ?? 0
128
+ }, s = t.getBoundingClientRect(), c = n(i, s, o, a);
129
+ this.options.collisionAvoidance !== !1 && (s.width > c.availableWidth || s.height > c.availableHeight) && (s.width > c.availableWidth && (t.style.maxWidth = `${c.availableWidth}px`), s.height > c.availableHeight && (t.style.maxHeight = `${c.availableHeight}px`), s = t.getBoundingClientRect(), c = n(i, s, o, a)), Object.assign(t.style, {
130
+ left: `${c.left}px`,
131
+ top: `${c.top}px`
132
+ }), t.dataset.side = c.side, t.dataset.align = c.align;
133
+ for (let [e, n] of Object.entries({
134
+ "--rv-tooltip-arrow-x": c.arrowX,
135
+ "--rv-tooltip-arrow-y": c.arrowY,
136
+ "--anchor-width": i.width,
137
+ "--anchor-height": i.height,
138
+ "--available-width": c.availableWidth,
139
+ "--available-height": c.availableHeight
140
+ })) t.style.setProperty(e, `${n}px`);
141
+ this.hoverArea = i.width > 0 && s.width > 0 ? {
142
+ left: Math.min(i.left, c.left),
143
+ right: Math.max(i.right, c.left + s.width),
144
+ top: Math.min(i.top, c.top),
145
+ bottom: Math.max(i.bottom, c.top + s.height)
146
+ } : void 0;
147
+ }
148
+ refresh() {
149
+ this.open && this.anchor && this.surface && (this.applyStyles(this.surface), this.position(this.anchor, this.surface));
150
+ }
151
+ hide(e = "imperative", t, n = !1) {
152
+ if (!n && !this.open && this.transitionTimer !== void 0) return;
153
+ let r = this.anchor, o = this.surface, s = r ? {
154
+ target: r,
155
+ reason: e,
156
+ event: t
157
+ } : void 0;
158
+ if ((this.open || this.isPending) && s && !this.request(!1, s, n)) return;
159
+ clearTimeout(this.timer), clearTimeout(this.closeTimer), clearTimeout(this.transitionTimer), this.timer = this.closeTimer = this.transitionTimer = void 0, this.frame !== void 0 && r?.ownerDocument.defaultView?.cancelAnimationFrame(this.frame), this.frame = void 0, this.cleanup?.(), this.cleanup = void 0;
160
+ let c = this.open && !n ? this.duration() : 0;
161
+ this.restoreMotion?.(), this.restoreMotion = void 0, r && a(r.ownerDocument, this);
162
+ let l = this.open;
163
+ if (this.open = !1, this.pointerTravel = !1, this.hoverArea = void 0, this.options.group?.closed(this), r && this.addedDescription && o) {
164
+ let e = (r.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((e) => e && e !== o.id);
165
+ e.length ? r.setAttribute("aria-describedby", e.join(" ")) : r.removeAttribute("aria-describedby");
166
+ }
167
+ this.addedDescription = !1;
168
+ let u = () => {
169
+ if (o) {
170
+ if (i(o, this.mode), o.hidden = !0, o.dataset.visible = "false", o.dataset.state = "closed", this.home) {
171
+ let { parent: e, next: t } = this.home;
172
+ e.insertBefore(o, t?.parentNode === e ? t : null), this.home = void 0;
173
+ } else this.managedMount && !this.options.keepMounted && o.remove();
174
+ }
175
+ this.mode = void 0, l && s && e !== "destroy" && this.options.onOpenChangeComplete?.(!1, s);
176
+ };
177
+ c && o ? (o.dataset.state = "closing", this.transitionTimer = setTimeout(() => {
178
+ this.transitionTimer = void 0, u();
179
+ }, c)) : u(), l && (this.onHide?.(), s && e !== "destroy" && this.options.onHide?.(s));
180
+ }
181
+ focus(e, t) {
182
+ this.show(e, "focus", t);
183
+ }
184
+ blur(e) {
185
+ this.pointerFocus = !1, this.hide("blur", e);
186
+ }
187
+ pointerDown() {
188
+ this.pointerFocus = !0;
189
+ }
190
+ leave(e, t) {
191
+ if (this.options.autoHide !== !1) {
192
+ if (!this.options.disableHoverablePopup && this.open && t && this.insideHoverArea(t)) this.pointerTravel = !0;
193
+ else if (!e || this.pointerFocus || e.ownerDocument.activeElement !== e) {
194
+ let e = this.options.closeDelay ?? this.options.group?.options.closeDelay ?? 0;
195
+ e > 0 && this.open ? (clearTimeout(this.closeTimer), this.closeTimer = setTimeout(() => {
196
+ this.closeTimer = void 0, this.hide("pointer-leave", t);
197
+ }, e)) : this.hide("pointer-leave", t);
198
+ }
199
+ }
200
+ }
201
+ insideHoverArea(e) {
202
+ let t = this.hoverArea;
203
+ return !!t && e.clientX >= t.left && e.clientX <= t.right && e.clientY >= t.top && e.clientY <= t.bottom;
204
+ }
205
+ keyDown(e) {
206
+ e.key === "Escape" && (this.open || this.isPending) && !e.defaultPrevented && this.options.closeOnEscape !== !1 ? (this.hide("escape", e), e.preventDefault(), e.stopPropagation(), this.onEscape?.(), this.options.onEscape?.()) : (e.key === "Enter" || e.key === " ") && this.options.hideOnClick !== !1 && this.hide("press", e);
207
+ }
208
+ destroy() {
209
+ this.hide("destroy", void 0, !0), this.disposed = !0, this.managedMount && this.surface?.remove(), this.surface = void 0, this.anchor = void 0;
210
+ }
211
+ listen(e) {
212
+ let t = e.ownerDocument, n = t.defaultView, r = e.closest("[popover]"), i = () => this.hide("viewport", void 0, !0), a = (t) => {
213
+ let n = t.composedPath();
214
+ this.options.closeOnOutside !== !1 && !n.includes(e) && (!this.surface || !n.includes(this.surface)) && this.hide("outside-press", t);
215
+ }, o = (t) => {
216
+ this.pointerTravel && !this.insideHoverArea(t) && (this.pointerTravel = !1, this.leave(e));
217
+ }, s = () => {
218
+ this.options.disableHoverablePopup || (clearTimeout(this.closeTimer), this.closeTimer = void 0, this.options.disableHoverablePopup || (this.pointerTravel = !0));
219
+ }, c = (t) => this.leave(e, t), l = this.surface, u = (n) => {
220
+ let r = n.target;
221
+ (r === t || r?.contains?.(e)) && (this.open && (t.activeElement === e || this.options.sticky) && this.surface ? this.position(e, this.surface) : i());
222
+ }, d = () => this.refresh(), f = () => {
223
+ r?.matches(":popover-open") || i();
224
+ }, p = (e) => {
225
+ e.key === "Escape" && this.keyDown(e);
226
+ }, m = n?.MutationObserver ? new n.MutationObserver(() => {
227
+ e.isConnected || this.hide("anchor-removed", void 0, !0);
228
+ }) : void 0;
229
+ m?.observe(t, {
230
+ childList: !0,
231
+ subtree: !0
232
+ });
233
+ let h, g = n?.ResizeObserver ? new n.ResizeObserver(() => {
234
+ h === void 0 && (h = n.requestAnimationFrame(() => {
235
+ h = void 0, this.refresh();
236
+ }));
237
+ }) : void 0;
238
+ g?.observe(e), l && g?.observe(l), t.addEventListener("keydown", p, !0), t.addEventListener("pointerdown", a, !0), t.addEventListener("pointermove", o, !0), l?.addEventListener("pointerenter", s), l?.addEventListener("pointerleave", c), t.addEventListener("scroll", u, !0), t.addEventListener("visibilitychange", i), n?.addEventListener("resize", d), n?.addEventListener("blur", i), r?.addEventListener("toggle", f), this.cleanup = () => {
239
+ m?.disconnect(), g?.disconnect(), h !== void 0 && n?.cancelAnimationFrame(h), t.removeEventListener("keydown", p, !0), t.removeEventListener("pointerdown", a, !0), t.removeEventListener("pointermove", o, !0), l?.removeEventListener("pointerenter", s), l?.removeEventListener("pointerleave", c), t.removeEventListener("scroll", u, !0), t.removeEventListener("visibilitychange", i), n?.removeEventListener("resize", d), n?.removeEventListener("blur", i), r?.removeEventListener("toggle", f);
240
+ };
241
+ }
242
+ };
243
+ //#endregion
244
+ export { l as t };
@@ -1,5 +1,5 @@
1
- import { c as e } from "./preact.module-BBM36DnO.js";
2
- import { t } from "./title-tooltip-ncldbUwS.js";
1
+ import { c as e } from "./preact.module-DzTStiZX.js";
2
+ import { t } from "./title-tooltip-DKiWhsL7.js";
3
3
  //#region package/core/tooltip-text.tsx
4
4
  function n({ as: n = "span", title: r, children: i, ...a }) {
5
5
  let o = t(r);
@@ -0,0 +1,107 @@
1
+ import { c as e } from "./preact.module-DzTStiZX.js";
2
+ import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
3
+ //#region package/core/tooltip-surface.ts
4
+ var r = "\n.rv-tooltip.rv-tooltip {\n box-sizing: border-box;\n position: fixed;\n flex-direction: column;\n z-index: 100000;\n margin: 0;\n inset: auto;\n transform: none;\n opacity: 1;\n visibility: visible;\n padding: 6px 10px;\n border: 0;\n border-radius: 6px;\n background: var(--rv-tooltip-bg, #191919);\n color: var(--rv-tooltip-fg, #fff);\n box-shadow: 0 4px 14px var(--rv-ui-shadow, rgb(0 0 0 / 18%));\n font: 12px/1.4 var(--rv-ui-font-family, Inter, ui-sans-serif, system-ui, sans-serif);\n font-weight: 400;\n text-align: start;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n max-width: min(360px, calc(100vw - 16px));\n max-height: calc(100dvh - 16px);\n overflow: auto;\n pointer-events: auto;\n}\n.rv-tooltip[data-arrow=\"true\"] { overflow: visible; }\n.rv-tooltip__content { display:block; min-height:0; max-height:inherit; overflow:auto; }\n.rv-tooltip[data-arrow=\"true\"]::before { content:''; position:absolute; width:8px; height:8px; background:inherit; transform:rotate(45deg); pointer-events:none; }\n.rv-tooltip[data-side=\"top\"]::before { bottom:-4px; left:calc(var(--rv-tooltip-arrow-x) - 4px); }\n.rv-tooltip[data-side=\"bottom\"]::before { top:-4px; left:calc(var(--rv-tooltip-arrow-x) - 4px); }\n.rv-tooltip[data-side=\"left\"]::before { right:-4px; top:calc(var(--rv-tooltip-arrow-y) - 4px); }\n.rv-tooltip[data-side=\"right\"]::before { left:-4px; top:calc(var(--rv-tooltip-arrow-y) - 4px); }\n.rv-tooltip[data-duration=\"true\"] { transition: opacity var(--rv-tooltip-duration); }\n.rv-tooltip[data-state=\"opening\"], .rv-tooltip[data-state=\"closing\"] { opacity:0; }\n.rv-tooltip[data-state=\"closing\"] { pointer-events:none; }\n@media (prefers-reduced-motion:reduce) { .rv-tooltip[data-duration=\"true\"] { transition:none; } }\n.rv-tooltip[hidden], .rv-tooltip[data-visible=\"false\"] { display: none; }\n.rv-tooltip[data-overflow] { pointer-events: auto; }\n@media (forced-colors: active) {\n .rv-tooltip.rv-tooltip { color: CanvasText; background: Canvas; border: 1px solid CanvasText; }\n}\n";
5
+ function i(n) {
6
+ if (n.querySelector("style[data-rv-tooltip-styles]")) return;
7
+ let i = n.nodeType === 9 ? n : n.ownerDocument, a = t(i, e("style", { "data-rv-tooltip-styles": "" }, r));
8
+ n.nodeType === 9 ? i.head.append(a) : n.append(a);
9
+ }
10
+ function a(e) {
11
+ e.classList.add("rv-tooltip"), e.setAttribute("role", "tooltip");
12
+ let t = e.getRootNode();
13
+ i(t.nodeType === 11 && "host" in t ? t : e.ownerDocument);
14
+ }
15
+ function o(e, t, n, r = {}) {
16
+ let i = r.direction === "rtl", a = r.side === "inline-start" ? i ? "right" : "left" : r.side === "inline-end" ? i ? "left" : "right" : r.side ?? "top", o = r.align ?? "center", s = r.collisionBoundary, c = s && "getBoundingClientRect" in s ? s.getBoundingClientRect() : s, l = (e) => Math.max(0, typeof r.collisionPadding == "number" ? r.collisionPadding : r.collisionPadding?.[e] ?? 8), u = {
17
+ left: Math.max(0, c?.left ?? 0) + l("left"),
18
+ top: Math.max(0, c?.top ?? 0) + l("top"),
19
+ right: Math.min(n.width, c?.right ?? n.width) - l("right"),
20
+ bottom: Math.min(n.height, c?.bottom ?? n.height) - l("bottom")
21
+ }, d = (n, r, i) => {
22
+ let a = typeof n == "function" ? n({
23
+ anchor: e,
24
+ popup: t,
25
+ side: i,
26
+ align: o
27
+ }) : n ?? r;
28
+ return Number.isFinite(a) ? a : r;
29
+ }, f = (n) => {
30
+ let a = n === "top" || n === "bottom", s = d(r.sideOffset, 8, n), c = d(r.alignOffset, 0, n), l = a ? e.left : e.top, u = a ? e.width : e.height, f = a ? t.width : t.height, p = a && i && o !== "center" ? o === "start" ? "end" : "start" : o, m = (p === "start" ? l : p === "end" ? l + u - f : l + (u - f) / 2) + c;
31
+ return {
32
+ left: a ? m : n === "left" ? e.left - t.width - s : e.right + s,
33
+ top: a ? n === "top" ? e.top - t.height - s : e.bottom + s : m
34
+ };
35
+ }, p = (e) => Math.max(0, u.left - e.left) + Math.max(0, e.left + t.width - u.right) + Math.max(0, u.top - e.top) + Math.max(0, e.top + t.height - u.bottom), m = a, h = f(m), g = r.collisionAvoidance;
36
+ if (g !== !1 && (typeof g != "object" || g.side !== "none")) {
37
+ let e = {
38
+ top: "bottom",
39
+ bottom: "top",
40
+ left: "right",
41
+ right: "left"
42
+ }[m], t = f(e);
43
+ p(t) < p(h) && (m = e, h = t);
44
+ }
45
+ return g !== !1 && (typeof g != "object" || g.align !== "none") && (h.left = Math.max(u.left, Math.min(h.left, u.right - t.width)), h.top = Math.max(u.top, Math.min(h.top, u.bottom - t.height))), {
46
+ ...h,
47
+ side: m,
48
+ align: o,
49
+ arrowX: Math.max(8, Math.min(t.width - 8, e.left + e.width / 2 - h.left)),
50
+ arrowY: Math.max(8, Math.min(t.height - 8, e.top + e.height / 2 - h.top)),
51
+ availableWidth: Math.max(0, u.right - u.left),
52
+ availableHeight: Math.max(0, u.bottom - u.top)
53
+ };
54
+ }
55
+ function s(r, i) {
56
+ if (!i) return [];
57
+ let a = t(r, e("span", { style: i }));
58
+ try {
59
+ return Array.from({ length: a.style.length }, (e, t) => {
60
+ let n = a.style.item(t);
61
+ return [
62
+ n,
63
+ a.style.getPropertyValue(n),
64
+ a.style.getPropertyPriority(n)
65
+ ];
66
+ });
67
+ } finally {
68
+ n(a);
69
+ }
70
+ }
71
+ //#endregion
72
+ //#region package/core/popup-ownership.ts
73
+ function c(e, t) {
74
+ if (!e || !t) return !1;
75
+ let n = /* @__PURE__ */ new Set(), r = (e) => !n.has(e) && (n.add(e), e.contains(t) ? !0 : [...e.querySelectorAll("[aria-controls], [data-rv-popup-controls]")].some((t) => [t.getAttribute("aria-controls"), t.getAttribute("data-rv-popup-controls")].filter(Boolean).join(" ").split(/\s+/).some((t) => {
76
+ let n = e.ownerDocument.getElementById(t);
77
+ return !!n && r(n);
78
+ })));
79
+ return r(e);
80
+ }
81
+ //#endregion
82
+ //#region package/core/top-layer-popup.ts
83
+ var l = /* @__PURE__ */ new WeakMap();
84
+ function u(e, t = "flex") {
85
+ if (l.has(e) || l.set(e, e.getAttribute("data-rv-ui-surface")), e.setAttribute("data-rv-ui-surface", ""), e.style.display = t, typeof e.showPopover == "function") {
86
+ e.setAttribute("popover", "manual");
87
+ try {
88
+ return e.showPopover(), "popover";
89
+ } catch {
90
+ e.removeAttribute("popover");
91
+ }
92
+ }
93
+ return e.style.display = t, "fallback";
94
+ }
95
+ function d(e, t) {
96
+ let n = l.get(e);
97
+ if (n !== void 0 && (n === null ? e.removeAttribute("data-rv-ui-surface") : e.setAttribute("data-rv-ui-surface", n), l.delete(e)), t === "popover" && typeof e.hidePopover == "function") try {
98
+ e.hidePopover(), e.style.removeProperty("display");
99
+ return;
100
+ } catch {}
101
+ e.style.display = "none";
102
+ }
103
+ function f(e, t) {
104
+ return c(e, t);
105
+ }
106
+ //#endregion
107
+ export { r as a, s as c, c as i, a as l, f as n, o, u as r, i as s, d as t };
@@ -1,4 +1,4 @@
1
- //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/xmark.svg?raw
1
+ //#region node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/xmark.svg?raw
2
2
  var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 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=\"M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z\"/></svg>";
3
3
  //#endregion
4
4
  export { e as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
1
+ import { t as e } from "./_chunks/jsxRuntime.module-ksX_VSbv.js";
2
2
  //#region package/activity-message.tsx
3
3
  function t({ className: t = "", avatar: n, timestamp: r, header: i, children: a, actions: o, details: s }) {
4
4
  return /* @__PURE__ */ e("article", {
package/ai/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as e } from "../_chunks/mount-C8CnIW9k.js";
2
- import { C as t, E as n, S as r, T as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, w as C, x as w, y as T } from "../_chunks/request-trail-B1zVRPEf.js";
1
+ import { t as e } from "../_chunks/mount-BgI_QV2H.js";
2
+ import { C as t, E as n, S as r, T as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, w as C, x as w, y as T } from "../_chunks/request-trail-D5PKrBlC.js";
3
3
  export { i as AI_UI_MESSAGES, u as AiActionStatus, v as AiAssistant, h as AiChangePreview, g as AiChat, y as AiChatComposer, p as AiChatContent, o as AiChatEmptyState, _ as AiMessage, b as AiMessageActions, c as AiMessageContent, f as AiPromptInput, m as AiReasoning, x as AiRequestTrail, d as AiResult, w as AiResultMetrics, r as AiResultTable, s as AiResultText, T as AiResultView, a as AiSuggestions, S as AiTask, l as AiTaskItem, C as AiTranslationProvider, t as formatAiResultValue, e as mountAiAssistant, n as translateAiText };
@@ -42,3 +42,5 @@ export type { PdfViewerProps, PdfViewerText } from '../pdf-viewer/component.js';
42
42
  export type { PdfViewerToolbarProps } from '../pdf-viewer/toolbar.js';
43
43
  export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from '../pdf-viewer/toolbar-options.js';
44
44
  export { defaultPdfViewerText } from '../pdf-viewer/index.js';
45
+ export { createTooltipGroup, TooltipGroup } from '../core/tooltip-options.js';
46
+ export type { TooltipAnchor, TooltipSide, TooltipAlign, TooltipReason, TooltipContent, TooltipOffset, TooltipOffsetContext, TooltipGroupOptions, TooltipOptions, TooltipControllerOptions, TooltipChangeDetails, TooltipContentContext, TooltipPositionOptions, } from '../core/tooltip-options.js';
@@ -150,3 +150,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImpor
150
150
  args: [UiSlotDirective]
151
151
  }] } });
152
152
  export { defaultPdfViewerText } from '../pdf-viewer/index.js';
153
+ export { createTooltipGroup, TooltipGroup } from '../core/tooltip-options.js';
package/assignee/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { i as e, t } from "../_chunks/hooks.module-CG3gN83z.js";
2
- import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
3
- import { l as r, n as i } from "../_chunks/native-control-um1L1wgZ.js";
4
- import { R as a } from "../_chunks/controls-B3EgM_DS.js";
5
- import { SearchInput as o } from "../search-input/index.js";
6
- import { SharedResourcePicker as s } from "../resource-picker/resource-picker.js";
7
- import { EditorActions as c } from "../editor-actions.js";
1
+ import { i as e, t } from "../_chunks/hooks.module-CXpO2xq6.js";
2
+ import { t as n } from "../_chunks/jsxRuntime.module-ksX_VSbv.js";
3
+ import { l as r, n as i } from "../_chunks/native-control-DjJ8Na3T.js";
4
+ import { R as a } from "../_chunks/controls-Ip2E6jIu.js";
5
+ import { EditorActions as o } from "../editor-actions.js";
6
+ import { SearchInput as s } from "../search-input/index.js";
7
+ import { SharedResourcePicker as c } from "../resource-picker/resource-picker.js";
8
8
  //#region package/assignee/model.ts
9
9
  function l(e) {
10
10
  let t = /* @__PURE__ */ new Map();
@@ -41,7 +41,7 @@ function p(e) {
41
41
  (t.ctrlKey || t.metaKey) && t.key === "Enter" && (t.preventDefault(), t.stopPropagation(), e.value.every((e) => u(e.units)) && e.apply()), t.key === "Escape" && (t.preventDefault(), t.stopPropagation(), e.cancel());
42
42
  },
43
43
  children: [
44
- /* @__PURE__ */ n(s, {
44
+ /* @__PURE__ */ n(c, {
45
45
  resources: e.options.map((e) => ({
46
46
  ...e,
47
47
  id: e.value,
@@ -83,7 +83,7 @@ function p(e) {
83
83
  children: [/* @__PURE__ */ n("span", {
84
84
  "aria-live": "polite",
85
85
  children: t?.selected?.(e.value.length) ?? `${e.value.length} selected`
86
- }), /* @__PURE__ */ n(c, {
86
+ }), /* @__PURE__ */ n(o, {
87
87
  showConfirm: e.showActions ?? e.autoApply === !1,
88
88
  apply: e.apply,
89
89
  cancel: e.cancel,
@@ -158,51 +158,51 @@ function m({ value: i, options: a, theme: o, renderPicker: s, renderValue: c, sa
158
158
  }
159
159
  //#endregion
160
160
  //#region package/assignee/layout.tsx
161
- function h({ query: e, onQueryChange: t, searchRef: r, children: i, ...s }) {
161
+ function h({ query: e, onQueryChange: t, searchRef: r, children: i, ...c }) {
162
162
  return /* @__PURE__ */ n("div", {
163
- id: s.id,
163
+ id: c.id,
164
164
  class: "rv-assignee-picker",
165
165
  role: "dialog",
166
- "aria-label": s.text?.dialogLabel ?? "Assign people",
166
+ "aria-label": c.text?.dialogLabel ?? "Assign people",
167
167
  onKeyDown: (e) => {
168
- (e.ctrlKey || e.metaKey) && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), s.value.every((e) => u(e.units)) && s.apply()), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), s.cancel());
168
+ (e.ctrlKey || e.metaKey) && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), c.value.every((e) => u(e.units)) && c.apply()), e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), c.cancel());
169
169
  },
170
170
  children: [
171
171
  /* @__PURE__ */ n("div", {
172
172
  class: "rv-assignee-picker__search",
173
- children: /* @__PURE__ */ n(o, {
173
+ children: /* @__PURE__ */ n(s, {
174
174
  inputRef: r,
175
175
  autoFocus: !0,
176
- "aria-label": s.text?.searchLabel ?? "Search assignees",
177
- placeholder: s.text?.searchPlaceholder ?? "Search name or role…",
176
+ "aria-label": c.text?.searchLabel ?? "Search assignees",
177
+ placeholder: c.text?.searchPlaceholder ?? "Search name or role…",
178
178
  value: e,
179
179
  onValueChange: t
180
180
  })
181
181
  }),
182
182
  i,
183
- !s.options.some((t) => `${t.name ?? ""} ${t.label} ${t.role ?? ""}`.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase())) && /* @__PURE__ */ n("p", {
183
+ !c.options.some((t) => `${t.name ?? ""} ${t.label} ${t.role ?? ""}`.toLocaleLowerCase().includes(e.trim().toLocaleLowerCase())) && /* @__PURE__ */ n("p", {
184
184
  role: "status",
185
- children: s.text?.empty ?? "No assignees found"
185
+ children: c.text?.empty ?? "No assignees found"
186
186
  }),
187
187
  /* @__PURE__ */ n("div", {
188
188
  class: "rv-assignee-picker__footer",
189
189
  children: [/* @__PURE__ */ n("span", {
190
190
  "aria-live": "polite",
191
- children: s.text?.selected?.(s.value.length) ?? `${s.value.length} selected`
192
- }), /* @__PURE__ */ n(c, {
193
- showConfirm: s.showActions ?? s.autoApply === !1,
194
- apply: s.apply,
195
- cancel: s.cancel,
196
- disabled: s.value.some((e) => !u(e.units)),
191
+ children: c.text?.selected?.(c.value.length) ?? `${c.value.length} selected`
192
+ }), /* @__PURE__ */ n(o, {
193
+ showConfirm: c.showActions ?? c.autoApply === !1,
194
+ apply: c.apply,
195
+ cancel: c.cancel,
196
+ disabled: c.value.some((e) => !u(e.units)),
197
197
  text: {
198
- apply: s.text?.apply ?? "Save",
199
- cancel: s.text?.cancel ?? "Cancel"
198
+ apply: c.text?.apply ?? "Save",
199
+ cancel: c.text?.cancel ?? "Cancel"
200
200
  }
201
201
  })]
202
202
  }),
203
- s.value.some((e) => !u(e.units)) && /* @__PURE__ */ n(a, {
203
+ c.value.some((e) => !u(e.units)) && /* @__PURE__ */ n(a, {
204
204
  tone: "danger",
205
- children: s.text?.invalidUnits ?? "Units must be a non-negative number."
205
+ children: c.text?.invalidUnits ?? "Units must be a non-negative number."
206
206
  })
207
207
  ]
208
208
  });
package/avatar/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { i as e } from "../_chunks/hooks.module-CG3gN83z.js";
2
- import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
1
+ import { i as e } from "../_chunks/hooks.module-CXpO2xq6.js";
2
+ import { t } from "../_chunks/jsxRuntime.module-ksX_VSbv.js";
3
3
  import { createPreactElement as n } from "../preact-mount.js";
4
- import { t as r } from "../_chunks/tooltip-text-BN5WdGHn.js";
4
+ import { t as r } from "../_chunks/tooltip-text-CH_c2J-J.js";
5
5
  import { AVATAR_CELL_BACKGROUNDS as i } from "../color-palette/common-palettes.js";
6
6
  //#region package/avatar/index.tsx
7
7
  function a({ options: n = {} }) {
@@ -0,0 +1,9 @@
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 0H14.0974L14.9087 0.0524998C15.7049 0.107143 16.4527 0.171429 17.1232 0.274286C18.361 0.48 19.5301 0.891428 20.5616 1.50857C21.6619 2.12571 22.4871 2.94857 23.106 3.97714C23.5186 4.66286 23.7937 5.41714 23.9312 6.30857L23.9656 6.89143C23.9828 7.23429 24 7.68 24 8.09143L23.9954 8.47337C23.98 9.13368 23.9312 9.66857 23.9312 9.66857C23.7937 10.9029 23.3811 12 22.5559 12.96C21.3868 14.3314 17.8797 15.4286 17.6734 15.4286L18.4269 16.485C20.6392 19.565 22.4159 21.8415 23.7568 23.3145C24.0688 23.6571 24.0688 24 23.5186 24H15.4728L5.70774 10.4914H15.8854C17.2607 10.4914 18.361 9.39429 18.361 7.95429C18.361 6.51429 17.192 5.41714 15.8854 5.41714H2.06304L0 2.67429V1.34057L14.4413 0.685714H0V0Z" fill="url(#paint0_linear_7_11)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_7_11" x1="0.201583" y1="-0.0384081" x2="21.0672" y2="28.776" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#04CC3C"/>
6
+ <stop offset="1" stop-color="#0062BC"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>