@revolist/ui 4.0.2-rc → 4.0.2

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 (343) hide show
  1. package/LICENSE +21 -0
  2. package/MIGRATION.md +36 -0
  3. package/OWNERSHIP.md +32 -32
  4. package/README.md +405 -265
  5. package/_button.scss +6 -2
  6. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  7. package/_chunks/calculator-CDWOuAcp.js +4 -0
  8. package/_chunks/{calendar-CpaUK7w1.js → calendar-CgXQgkga.js} +28 -18
  9. package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
  10. package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
  11. package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
  12. package/_chunks/choice-chips-SkllS5Kl.js +126 -0
  13. package/_chunks/clock-BOhPNlW3.js +4 -0
  14. package/_chunks/{color-palette-BBMFmUNA.js → color-palette-DMJUChWC.js} +20 -22
  15. package/_chunks/{color-picker-D90Jg-M8.js → color-picker-BpCTuIdm.js} +77 -72
  16. package/_chunks/{component-YDcfoOLz.js → component-CfeHXgIw.js} +301 -282
  17. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
  18. package/_chunks/configurator-actions-DnStE6Yl.js +155 -0
  19. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  20. package/_chunks/control-Dcrjsunl.js +118 -0
  21. package/_chunks/{controls-DIum-E66.js → controls-B_6NJarZ.js} +217 -182
  22. package/_chunks/{date-control-BJSzu79z.js → date-control-C4h4m75W.js} +1 -1
  23. package/_chunks/{date-time-BxPJusp9.js → date-time-CTOSbzb0.js} +344 -307
  24. package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
  25. package/_chunks/dialog.parts-3w5FR06n.js +131 -0
  26. package/_chunks/{duration-87U2EoMS.js → duration-Bf2OS1V5.js} +19 -18
  27. package/_chunks/editor-popup-ByU7qiub.js +82 -0
  28. package/_chunks/field-configurator-D5dZRhDe.js +288 -0
  29. package/_chunks/field-context-D57PnBbH.js +5 -0
  30. package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount-Bk4O_T7T.js} +1 -1
  31. package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
  32. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  33. package/_chunks/minus-BOAR3A1C.js +4 -0
  34. package/_chunks/mount-BRdcG60g.js +267 -0
  35. package/_chunks/{native.view-ByyZ1CT5.js → native-Blr3byjO.js} +1 -1
  36. package/_chunks/native-control-B_fVA5bL.js +649 -0
  37. package/_chunks/{number-input-BeIadZuL.js → number-input-CmM6_2vR.js} +7 -7
  38. package/_chunks/{picker-DpP7iQLA.js → picker-DTqET-2W.js} +2 -2
  39. package/_chunks/plus-CbGRkIGl.js +4 -0
  40. package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
  41. package/_chunks/popup-C35Isk7p.js +378 -0
  42. package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-C-6wcb9U.js} +1 -1
  43. package/_chunks/render-m5eMMwFR.js +83 -0
  44. package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-DIl1gkV6.js} +1 -1
  45. package/_chunks/request-trail-DrhdpWiH.js +762 -0
  46. package/_chunks/rich-text-BnilBbhU.js +842 -0
  47. package/_chunks/rotate-left-BF6G883o.js +4 -0
  48. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  49. package/_chunks/selection-list-tooltips-C5oMJe26.js +42 -0
  50. package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
  51. package/_chunks/tooltip-D4xkio5G.js +54 -0
  52. package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
  53. package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
  54. package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
  55. package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
  56. package/_dialog.scss +55 -21
  57. package/_form.scss +71 -21
  58. package/_legend.scss +25 -7
  59. package/_shared/data-query/index.d.ts +2 -2
  60. package/_shared/data-query/load-options.d.ts +2 -2
  61. package/_variables.scss +34 -32
  62. package/_view-switcher.scss +6 -0
  63. package/activity-message.d.ts +1 -1
  64. package/ai/_chat.scss +227 -0
  65. package/ai/_style.scss +170 -39
  66. package/ai/chat.d.ts +65 -0
  67. package/ai/components.d.ts +34 -5
  68. package/ai/index.d.ts +3 -0
  69. package/ai/index.js +3 -3
  70. package/ai/mount.d.ts +59 -6
  71. package/ai/prompt-history.d.ts +13 -0
  72. package/ai/request-trail.d.ts +9 -3
  73. package/ai/results/_style.scss +83 -0
  74. package/ai/results/index.d.ts +11 -0
  75. package/ai/results/metrics.d.ts +5 -0
  76. package/ai/results/table.d.ts +5 -0
  77. package/ai/results/text.d.ts +5 -0
  78. package/ai/results/types.d.ts +29 -0
  79. package/ai/transcript.d.ts +27 -0
  80. package/ai/translations.d.ts +1 -1
  81. package/angular/angular.d.ts +1 -1
  82. package/angular/angular.js +13 -10
  83. package/assignee/assignee.scss +28 -6
  84. package/assignee/index.js +34 -35
  85. package/avatar/avatar.style.scss +23 -6
  86. package/avatar/index.d.ts +25 -2
  87. package/avatar/index.js +33 -32
  88. package/badge.d.ts +1 -1
  89. package/badge.view.d.ts +8 -0
  90. package/brush-range/_brush-range.scss +55 -49
  91. package/brush-range/component.d.ts +1 -3
  92. package/brush-range/component.js +27 -27
  93. package/buttons/delete-button.d.ts +2 -1
  94. package/buttons/delete-button.js +1 -1
  95. package/buttons/delete-button.style.scss +6 -2
  96. package/buttons/remove-button.d.ts +1 -1
  97. package/buttons/remove-button.js +1 -1
  98. package/buttons/remove-button.style.scss +1 -1
  99. package/buttons/svg-button.d.ts +2 -1
  100. package/buttons/svg-button.js +19 -19
  101. package/calendar/_calendar.scss +27 -26
  102. package/calendar/calendar.js +1 -1
  103. package/calendar/header.js +1 -2
  104. package/calendar/index.js +2 -2
  105. package/cell-input.scss +3 -7
  106. package/cell-visuals/badge.style.scss +6 -3
  107. package/cell-visuals/bar-chart.style.scss +2 -1
  108. package/cell-visuals/column-type.style.css +12 -0
  109. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  110. package/cell-visuals/progress-line.style.scss +1 -4
  111. package/cell-visuals/sparkline.style.scss +2 -1
  112. package/cell-visuals/timeline.style.css +4 -2
  113. package/checkbox/checkbox.scss +6 -24
  114. package/choice-chips/index.d.ts +3 -1
  115. package/choice-chips/index.js +1 -1
  116. package/color-palette/color-palette.js +1 -1
  117. package/color-palette/color-palette.style.scss +88 -25
  118. package/color-palette/color-picker.js +2 -2
  119. package/color-palette/color-picker.style.scss +23 -10
  120. package/color-palette/common-palettes.d.ts +1 -1
  121. package/color-palette/common-palettes.js +1 -1
  122. package/color-palette/native.d.ts +15 -2
  123. package/component-catalog.d.ts +24 -11
  124. package/configurator-actions.d.ts +67 -0
  125. package/configurator-actions.js +1 -0
  126. package/configurator-aggregation-list.d.ts +14 -0
  127. package/configurator-aggregation-list.js +63 -0
  128. package/configurator-drop-zone.d.ts +39 -0
  129. package/configurator-drop-zone.js +66 -0
  130. package/configurator-field-icon.d.ts +10 -0
  131. package/configurator-field-icon.js +1 -0
  132. package/configurator-focus.d.ts +4 -0
  133. package/configurator-focus.js +39 -0
  134. package/configurator-sections.d.ts +42 -0
  135. package/configurator-sections.js +71 -0
  136. package/control-attributes.js +7 -7
  137. package/control-presentation.d.ts +8 -2
  138. package/control-presentation.js +25 -20
  139. package/controls.d.ts +19 -7
  140. package/controls.js +4 -3
  141. package/core/editor-popup-position.d.ts +6 -2
  142. package/core/editor-popup.d.ts +4 -0
  143. package/core/editor-popup.js +1 -1
  144. package/core/popover-controller.d.ts +35 -0
  145. package/core/popup-ownership.d.ts +2 -0
  146. package/core/selection-list-tooltips.d.ts +2 -0
  147. package/core/title-tooltip.d.ts +2 -0
  148. package/core/tooltip-session.d.ts +29 -0
  149. package/core/tooltip-surface.d.ts +13 -0
  150. package/core/tooltip-text.d.ts +6 -0
  151. package/core/tooltip.d.ts +35 -0
  152. package/core/top-layer-popup.d.ts +4 -0
  153. package/core/top-layer-popup.js +1 -23
  154. package/date-time/attach.d.ts +1 -1
  155. package/date-time/date-control.d.ts +1 -1
  156. package/date-time/field.d.ts +3 -2
  157. package/date-time/index.js +1 -1
  158. package/date-time/style.scss +242 -39
  159. package/date-time/time-selection.d.ts +3 -1
  160. package/date-time/types.d.ts +5 -1
  161. package/dialog/dialog-action-footer.d.ts +17 -2
  162. package/dialog/dialog.dom.d.ts +15 -2
  163. package/dialog/dialog.dom.js +3 -3
  164. package/dialog/dialog.parts.d.ts +1 -1
  165. package/dialog/dialog.parts.js +1 -1
  166. package/distribution-chart/_distribution-chart.scss +113 -77
  167. package/distribution-chart/area-chart.js +1 -1
  168. package/distribution-chart/bar-chart.d.ts +5 -2
  169. package/distribution-chart/bar-chart.js +7 -3
  170. package/distribution-chart/chart-frame.d.ts +2 -1
  171. package/distribution-chart/index.d.ts +1 -1
  172. package/distribution-chart/line-chart.js +1 -1
  173. package/dropdown/content.d.ts +2 -1
  174. package/dropdown/content.js +1 -142
  175. package/dropdown/control.d.ts +14 -0
  176. package/dropdown/control.js +1 -0
  177. package/dropdown/control.view.d.ts +6 -0
  178. package/dropdown/dropdown.types.d.ts +5 -1
  179. package/dropdown/editor-dropdown.style.scss +54 -16
  180. package/dropdown/index.d.ts +1 -1
  181. package/dropdown/index.js +3 -4
  182. package/dropdown/lookup-field.d.ts +5 -0
  183. package/dropdown/lookup-field.js +2 -1
  184. package/dropdown/popup.d.ts +2 -2
  185. package/dropdown/popup.js +1 -141
  186. package/duration/index.js +1 -1
  187. package/duration/style.scss +1 -1
  188. package/editor-actions.js +1 -1
  189. package/editor-layout/index.d.ts +4 -4
  190. package/editor-layout/index.js +39 -34
  191. package/editor-layout/style.scss +82 -18
  192. package/field-configurator.d.ts +39 -1
  193. package/field-configurator.js +4 -170
  194. package/field-expansion.d.ts +9 -0
  195. package/fieldset.d.ts +3 -0
  196. package/filter/filters/slider/_single-slider.scss +57 -38
  197. package/filter/filters/slider/_slider.scss +41 -33
  198. package/filter/filters/slider/control.js +2 -0
  199. package/filter/filters/slider/runtime.js +49 -22
  200. package/filter/filters/slider/single.js +1 -1
  201. package/filter-badge.js +1 -1
  202. package/filter-controls.d.ts +0 -1
  203. package/filter-controls.js +9 -10
  204. package/form-controls/field-context.d.ts +5 -0
  205. package/form-controls/index.d.ts +10 -2
  206. package/form-controls/index.js +4 -9
  207. package/form-controls/presentation.d.ts +1 -1
  208. package/form-controls/presentation.js +53 -45
  209. package/formatting/index.d.ts +1 -1
  210. package/formatting/index.js +40 -35
  211. package/formatting/styles.scss +14 -57
  212. package/framework.js +237 -226
  213. package/history-controls.d.ts +14 -0
  214. package/history-controls.js +27 -0
  215. package/icon-toolbar.d.ts +62 -0
  216. package/icon-toolbar.js +1 -0
  217. package/icons/icon.d.ts +1 -1
  218. package/legend.d.ts +1 -1
  219. package/masked-input/index.js +1 -1
  220. package/native-control.d.ts +6 -5
  221. package/native-control.js +3 -26
  222. package/native-controls.d.ts +54 -2
  223. package/native-styles.css +1 -1
  224. package/native-styles.scss +6 -2
  225. package/native.d.ts +3 -3
  226. package/native.js +41 -37
  227. package/number-input/index.d.ts +1 -1
  228. package/number-input/index.js +1 -1
  229. package/package.json +88 -14
  230. package/pagination.d.ts +3 -0
  231. package/pagination.js +50 -40
  232. package/pdf-viewer/header.d.ts +1 -1
  233. package/pdf-viewer/index.d.ts +2 -2
  234. package/pdf-viewer/index.js +1 -1
  235. package/pdf-viewer/search-bar.d.ts +1 -1
  236. package/pdf-viewer/status.d.ts +1 -1
  237. package/pdf-viewer/style.scss +205 -45
  238. package/pickers.d.ts +5 -1
  239. package/preact-mount.js +1 -1
  240. package/preact.d.ts +15 -10
  241. package/preact.js +109 -64
  242. package/progress/_bar.scss +9 -3
  243. package/progress/_circular.scss +2 -1
  244. package/rating-choice.js +1 -1
  245. package/react-adapter.d.ts +4 -2
  246. package/react-control.d.ts +1 -0
  247. package/react.d.ts +20 -11
  248. package/react.js +72 -88
  249. package/reorder-list.d.ts +1 -1
  250. package/reorder-list.js +1 -1
  251. package/reorder-list.scss +59 -17
  252. package/resource-picker/resource-picker-popup.js +1 -1
  253. package/resource-picker/resource-picker.js +73 -71
  254. package/resource-picker/resource-picker.scss +66 -35
  255. package/rich-text/engine.d.ts +17 -19
  256. package/rich-text/format-html.d.ts +2 -0
  257. package/rich-text/index.d.ts +11 -7
  258. package/rich-text/index.js +1 -1
  259. package/rich-text/model.d.ts +6 -3
  260. package/rich-text/render-model.d.ts +4 -5
  261. package/rich-text/style.scss +295 -55
  262. package/rich-text/syntax.d.ts +5 -2
  263. package/rich-text/toolbar.d.ts +6 -6
  264. package/rich-text/translations.d.ts +5 -15
  265. package/search-input/index.js +1 -1
  266. package/search-input/native.d.ts +21 -2
  267. package/select.d.ts +22 -0
  268. package/select.js +1 -0
  269. package/selection-list.d.ts +1 -0
  270. package/selection-list.js +3 -1
  271. package/status-feedback/exit-snapshot.js +1 -1
  272. package/status-feedback/index.js +2 -2
  273. package/status-feedback/popover.js +9 -9
  274. package/status-feedback/render.js +3 -44
  275. package/status-feedback/status-feedback.scss +130 -34
  276. package/status-feedback/types.d.ts +4 -0
  277. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  278. package/styles/_activity-message.scss +24 -7
  279. package/styles/_alert.scss +78 -17
  280. package/styles/_cell-editor-frame.scss +11 -0
  281. package/styles/_compositions.scss +404 -82
  282. package/styles/_control.scss +42 -12
  283. package/styles/_disclosure.scss +15 -5
  284. package/styles/_editor-counter.scss +16 -6
  285. package/styles/_editor-slider.scss +8 -4
  286. package/styles/_field-configurator.scss +321 -23
  287. package/styles/_fields-grid.scss +49 -0
  288. package/styles/_filter-controls.scss +10 -2
  289. package/styles/_icon-action.scss +48 -15
  290. package/styles/_loading.scss +12 -3
  291. package/styles/_motion.scss +32 -9
  292. package/styles/_palette.scss +0 -24
  293. package/styles/_primitives.scss +376 -116
  294. package/styles/_theme.scss +130 -86
  295. package/styles/_thresholds.scss +28 -25
  296. package/styles/_time-grid.scss +8 -3
  297. package/styles/_tokens.scss +6 -1
  298. package/styles/configurator-actions.scss +241 -0
  299. package/styles/pagination.css +213 -0
  300. package/styles/{legacy-rating.css → rating.css} +8 -3
  301. package/styles.css +1 -1
  302. package/styles.scss +3 -5
  303. package/surfaces.d.ts +38 -2
  304. package/surfaces.js +37 -134
  305. package/svelte/UiComponent.server.js +1 -48
  306. package/svelte/UiComponent.svelte +44 -32
  307. package/svelte.d.ts +1 -1
  308. package/svelte.js +33 -68
  309. package/switch/index.js +15 -14
  310. package/time-grid.d.ts +0 -1
  311. package/time-grid.js +38 -37
  312. package/timeline-track/_style.scss +96 -24
  313. package/timeline-track/component.d.ts +5 -1
  314. package/timeline-track/index.js +71 -54
  315. package/timeline-track/model.d.ts +9 -0
  316. package/timeline-track/model.js +10 -1
  317. package/ui.css +1 -1
  318. package/view-switcher.d.ts +23 -0
  319. package/vue.d.ts +51 -35
  320. package/vue.js +149 -178
  321. package/_chunks/chart-frame-BC99KjGa.js +0 -127
  322. package/_chunks/choice-chips-Cs4D-3nH.js +0 -110
  323. package/_chunks/compat.module-DDB2pm9O.js +0 -229
  324. package/_chunks/control-tooltip-ztgmsG7H.js +0 -100
  325. package/_chunks/dialog.parts-DBqo3Qwb.js +0 -134
  326. package/_chunks/dropdown-voWqmwAe.js +0 -357
  327. package/_chunks/editor-popup-D3JdS8l3.js +0 -81
  328. package/_chunks/mount-DZe_6VtR.js +0 -90
  329. package/_chunks/request-trail-IdNiFvKH.js +0 -347
  330. package/_chunks/rich-text-BzI1DyfF.js +0 -477
  331. package/avatar/index.view.d.ts +0 -25
  332. package/color-palette/native.view.d.ts +0 -15
  333. package/control-presentation.view.d.ts +0 -8
  334. package/dialog/dialog-action-footer.view.d.ts +0 -20
  335. package/dialog/dialog.dom.view.d.ts +0 -15
  336. package/form-controls/index.view.d.ts +0 -12
  337. package/formatting/control-tooltip.d.ts +0 -27
  338. package/native-controls.view.d.ts +0 -54
  339. package/react-native-select.d.ts +0 -6
  340. package/search-input/native.view.d.ts +0 -21
  341. package/styles/legacy-pagination.css +0 -112
  342. package/surfaces.view.d.ts +0 -63
  343. package/vue-native-select.d.ts +0 -9
@@ -1,127 +0,0 @@
1
- import { i as e } from "./preact.module-BBM36DnO.js";
2
- import { i as t, t as n } from "./hooks.module-CG3gN83z.js";
3
- import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
4
- //#region src/distribution-chart/geometry.ts
5
- function i(e) {
6
- let t = e.map(({ value: e }) => Number.isFinite(e) ? Math.max(0, e) : 0), n = Math.max(1, ...t);
7
- return {
8
- values: t,
9
- max: n,
10
- points: t.map((t, r) => ({
11
- x: e.length <= 1 ? 50 : r / (e.length - 1) * 100,
12
- y: 96 - t / n * 88
13
- }))
14
- };
15
- }
16
- function a(e, t) {
17
- return t === "step" ? `H ${e.x} V ${e.y}` : `L ${e.x} ${e.y}`;
18
- }
19
- function o(e, t, n = "linear") {
20
- return `M ${e.x} ${e.y} ${a(t, n)}`;
21
- }
22
- //#endregion
23
- //#region src/distribution-chart/chart-frame.tsx
24
- function s({ title: e, details: t = [] }) {
25
- return [e, ...t].filter(Boolean).join(". ");
26
- }
27
- function c({ title: t, details: n = [] }) {
28
- return /* @__PURE__ */ r(e, { children: [/* @__PURE__ */ r("strong", { children: t }), n.map((e) => /* @__PURE__ */ r("span", { children: e }, e))] });
29
- }
30
- function l({ data: e, ariaLabel: a, variant: o, height: l = 72, className: u = "", showGrid: d = !1, showLabels: f = !1, showValues: p = !1, legend: m, formatValue: h = String, tooltip: g = !0, tooltipIndicator: _ = "none", renderTooltip: v, positions: y, renderDatum: b, children: x }) {
31
- let { values: S, max: C } = i(e), [w, T] = t(0), E = n([]), D = Math.min(w, Math.max(0, e.length - 1)), O = (t) => {
32
- if (!e.length) return;
33
- let n = Math.max(0, Math.min(t, e.length - 1));
34
- T(n), E.current[n]?.focus();
35
- };
36
- return /* @__PURE__ */ r("div", {
37
- class: `rv-distribution-chart rv-distribution-chart--${o} ${u}`.trim(),
38
- role: "group",
39
- "aria-label": a,
40
- "data-empty": e.length ? void 0 : "true",
41
- children: [
42
- /* @__PURE__ */ r("div", {
43
- class: "rv-distribution-chart__region",
44
- style: { height: `${Math.max(40, Math.min(240, l))}px` },
45
- children: [
46
- d && /* @__PURE__ */ r("div", {
47
- class: "rv-distribution-chart__grid",
48
- "aria-hidden": "true",
49
- children: [
50
- 0,
51
- 1,
52
- 2,
53
- 3,
54
- 4
55
- ].map((e) => /* @__PURE__ */ r("span", {}, e))
56
- }),
57
- x,
58
- /* @__PURE__ */ r("div", {
59
- class: "rv-distribution-chart__data",
60
- role: "list",
61
- children: e.map((t, n) => {
62
- let i = y?.[n], a = !i;
63
- return /* @__PURE__ */ r("span", {
64
- ref: (e) => {
65
- E.current[n] = e;
66
- },
67
- class: `rv-distribution-chart__datum${t.selected ? " is-selected" : ""}${a ? " is-bar" : " is-point"}`,
68
- role: "listitem",
69
- tabIndex: n === D ? 0 : -1,
70
- "aria-label": s(t.tooltip),
71
- style: a ? void 0 : {
72
- left: `${i.x}%`,
73
- top: `${i.y}%`
74
- },
75
- onFocus: () => T(n),
76
- onKeyDown: (t) => {
77
- t.key === "ArrowRight" || t.key === "ArrowDown" ? (t.preventDefault(), O(n + 1)) : t.key === "ArrowLeft" || t.key === "ArrowUp" ? (t.preventDefault(), O(n - 1)) : t.key === "Home" ? (t.preventDefault(), O(0)) : t.key === "End" && (t.preventDefault(), O(e.length - 1));
78
- },
79
- children: [
80
- b(t, n),
81
- p && /* @__PURE__ */ r("span", {
82
- class: "rv-distribution-chart__value",
83
- style: a ? {
84
- top: `${100 - Math.max(3, S[n] / C * 100)}%`,
85
- transform: "translate(-50%, -100%)"
86
- } : void 0,
87
- "aria-hidden": "true",
88
- children: h(t.value)
89
- }),
90
- g && /* @__PURE__ */ r("span", {
91
- class: `rv-distribution-chart__tooltip rv-distribution-chart__tooltip--${_}`,
92
- role: "tooltip",
93
- children: [_ !== "none" && /* @__PURE__ */ r("i", { "aria-hidden": "true" }), v ? v(t, n) : c(t.tooltip)]
94
- })
95
- ]
96
- }, t.key);
97
- })
98
- })
99
- ]
100
- }),
101
- f && /* @__PURE__ */ r("div", {
102
- class: `rv-distribution-chart__labels${o === "bar" ? " is-bar" : ""}`,
103
- "aria-hidden": "true",
104
- children: e.map((e) => /* @__PURE__ */ r("span", {
105
- title: e.tooltip.title,
106
- children: e.tooltip.title
107
- }, e.key))
108
- }),
109
- m && /* @__PURE__ */ r("div", {
110
- class: "rv-distribution-chart__legend",
111
- children: [/* @__PURE__ */ r("i", { "aria-hidden": "true" }), m]
112
- })
113
- ]
114
- });
115
- }
116
- function u({ children: e }) {
117
- return /* @__PURE__ */ r("svg", {
118
- class: "rv-distribution-chart__plot",
119
- viewBox: "0 0 100 100",
120
- preserveAspectRatio: "none",
121
- "aria-hidden": "true",
122
- focusable: "false",
123
- children: e
124
- });
125
- }
126
- //#endregion
127
- export { o as i, u as n, i as r, l as t };
@@ -1,110 +0,0 @@
1
- import { r as e, t } from "./hooks.module-CG3gN83z.js";
2
- import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
3
- import { SvgIcon as r } from "../icons/icon.js";
4
- import { ButtonControl as i } from "../native-control.js";
5
- import { TooltipController as a } from "../surfaces.js";
6
- import { RemoveButton as o } from "../buttons/remove-button.js";
7
- //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/circle-info.svg?raw
8
- var s = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 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=\"M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z\"/></svg>";
9
- //#endregion
10
- //#region src/choice-chips/index.tsx
11
- function c({ value: e, options: t, onChange: r, ariaLabel: i, appearance: a = "soft", size: o = "medium", className: s = "", itemClassName: c = "", disabled: l = !1, testId: d }) {
12
- let f = Array.isArray(e) ? e : e === void 0 ? [] : [e];
13
- return /* @__PURE__ */ n("div", {
14
- class: `rv-choice-chips rv-choice-chips--${a} rv-choice-chips--${o} ${s}`.trim(),
15
- role: "group",
16
- "aria-label": i,
17
- "data-testid": d,
18
- children: t.map((e) => {
19
- let t = f.includes(e.value), i = l || !!e.disabled;
20
- return /* @__PURE__ */ n(u, {
21
- className: `${c} ${e.className ?? ""}`.trim(),
22
- style: e.style,
23
- color: e.color,
24
- selected: t,
25
- "aria-label": e.ariaLabel,
26
- title: e.title,
27
- disabled: i,
28
- "data-value": String(e.value),
29
- "data-testid": e.testId,
30
- onSelect: () => {
31
- i || r(e.value, e);
32
- },
33
- info: e.info,
34
- onRemove: e.onRemove,
35
- removeLabel: e.removeLabel,
36
- children: e.label
37
- }, String(e.value));
38
- })
39
- });
40
- }
41
- function l({ "data-tooltip": o, title: c, ref: l, ...u }) {
42
- let d = t(null), f = o ?? (typeof c == "object" ? c.value : c);
43
- return e(() => {
44
- if (!d.current || !f) return;
45
- let e = new a();
46
- return e.bind(d.current, f, { trigger: "click" }), () => e.destroy();
47
- }, [f]), /* @__PURE__ */ n(i, {
48
- ...u,
49
- type: "button",
50
- ref: (e) => {
51
- d.current = e, typeof l == "function" ? l(e) : l && (l.current = e);
52
- },
53
- class: `rv-choice-chip-info ${u.className ?? u.class ?? ""}`.trim(),
54
- children: /* @__PURE__ */ n(r, {
55
- svg: s,
56
- size: 12
57
- })
58
- });
59
- }
60
- function u({ children: e, color: t, selected: r, onSelect: i, info: a, onRemove: s, removeLabel: c, removeClassName: l = "", className: u = "", disabled: d, ...f }) {
61
- let p = t ? typeof f.style == "string" ? `${f.style};--rv-choice-chip-color:${t}` : {
62
- ...f.style,
63
- "--rv-choice-chip-color": t
64
- } : f.style;
65
- return !a && !s && i ? /* @__PURE__ */ n("button", {
66
- ...f,
67
- style: p,
68
- "data-color": t ? "true" : void 0,
69
- type: "button",
70
- class: `rv-choice-chip ${u}`.trim(),
71
- "aria-pressed": r,
72
- disabled: d,
73
- onClick: i,
74
- children: e
75
- }) : /* @__PURE__ */ n("span", {
76
- class: `rv-choice-chip rv-choice-chip--composite ${u}`.trim(),
77
- role: f.role,
78
- style: p,
79
- "data-color": t ? "true" : void 0,
80
- "data-selected": r ? "true" : void 0,
81
- "aria-disabled": d || void 0,
82
- children: [
83
- i ? /* @__PURE__ */ n("button", {
84
- ...f,
85
- type: "button",
86
- class: "rv-choice-chip-label",
87
- "aria-pressed": r,
88
- disabled: d,
89
- onClick: i,
90
- children: e
91
- }) : /* @__PURE__ */ n("span", {
92
- class: "rv-choice-chip-label",
93
- children: e
94
- }),
95
- a,
96
- s && /* @__PURE__ */ n(o, {
97
- compact: !0,
98
- className: l,
99
- disabled: typeof d == "object" ? d.value : d,
100
- locale: {
101
- title: c ?? "Remove",
102
- ariaLabel: c ?? "Remove"
103
- },
104
- onClick: s
105
- })
106
- ]
107
- });
108
- }
109
- //#endregion
110
- export { l as n, c as r, u as t };
@@ -1,229 +0,0 @@
1
- import { c as e, i as t, l as n, n as r, r as i, t as a } from "./preact.module-BBM36DnO.js";
2
- import "./hooks.module-CG3gN83z.js";
3
- //#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
4
- function o(e, t) {
5
- for (var n in t) e[n] = t[n];
6
- return e;
7
- }
8
- function s(e, t) {
9
- for (var n in e) if (n !== "__source" && !(n in t)) return !0;
10
- for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
11
- return !1;
12
- }
13
- function c(e, t) {
14
- this.props = e, this.context = t;
15
- }
16
- (c.prototype = new a()).isPureReactComponent = !0, c.prototype.shouldComponentUpdate = function(e, t) {
17
- return s(this.props, e) || s(this.state, t);
18
- };
19
- var l = n.__b;
20
- n.__b = function(e) {
21
- e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), l && l(e);
22
- };
23
- var u = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
24
- function d(e) {
25
- function t(t) {
26
- var n = o({}, t);
27
- return delete n.ref, e(n, t.ref || null);
28
- }
29
- return t.$$typeof = u, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
30
- }
31
- var f = n.__e;
32
- n.__e = function(e, t, n, r) {
33
- if (e.then) {
34
- for (var i, a = t; a = a.__;) if ((i = a.__c) && i.__c) return t.__e ?? (t.__e = n.__e, t.__k = n.__k), i.__c(e, t);
35
- }
36
- f(e, t, n, r);
37
- };
38
- var p = n.unmount;
39
- function m(e, t, n) {
40
- return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(e) {
41
- typeof e.__c == "function" && e.__c();
42
- }), e.__c.__H = null), (e = o({}, e)).__c != null && (e.__c.__P === n && (e.__c.__P = t), e.__c.__e = !0, e.__c = null), e.__k = e.__k && e.__k.map(function(e) {
43
- return m(e, t, n);
44
- })), e;
45
- }
46
- function h(e, t, n) {
47
- return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(e) {
48
- return h(e, t, n);
49
- }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
50
- }
51
- function g() {
52
- this.__u = 0, this.o = null, this.__b = null;
53
- }
54
- function _(e) {
55
- var t = e.__ && e.__.__c;
56
- return t && t.__a && t.__a(e);
57
- }
58
- function v() {
59
- this.i = null, this.l = null;
60
- }
61
- n.unmount = function(e) {
62
- var t = e.__c;
63
- t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), p && p(e);
64
- }, (g.prototype = new a()).__c = function(e, t) {
65
- var n = t.__c, r = this;
66
- r.o ??= [], r.o.push(n);
67
- var i = _(r.__v), a = !1, o = function() {
68
- a || r.__z || (a = !0, n.__R = null, i ? i(c) : c());
69
- };
70
- n.__R = o;
71
- var s = n.__P;
72
- n.__P = null;
73
- var c = function() {
74
- if (!--r.__u) {
75
- if (r.state.__a) {
76
- var e = r.state.__a;
77
- r.__v.__k[0] = h(e, e.__c.__P, e.__c.__O);
78
- }
79
- var t;
80
- for (r.setState({ __a: r.__b = null }); t = r.o.pop();) t.__P = s, t.forceUpdate();
81
- }
82
- };
83
- r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(o, o);
84
- }, g.prototype.componentWillUnmount = function() {
85
- this.o = [];
86
- }, g.prototype.render = function(n, r) {
87
- if (this.__b) {
88
- if (this.__v.__k) {
89
- var i = document.createElement("div"), a = this.__v.__k[0].__c;
90
- this.__v.__k[0] = m(this.__b, i, a.__O = a.__P);
91
- }
92
- this.__b = null;
93
- }
94
- var o = r.__a && e(t, null, n.fallback);
95
- return o && (o.__u &= -33), [e(t, null, r.__a ? null : n.children), o];
96
- };
97
- var y = function(e, t, n) {
98
- if (++n[1] === n[0] && e.l.delete(t), e.props.revealOrder && (e.props.revealOrder[0] !== "t" || !e.l.size)) for (n = e.i; n;) {
99
- for (; n.length > 3;) n.pop()();
100
- if (n[1] < n[0]) break;
101
- e.i = n = n[2];
102
- }
103
- };
104
- function b(e) {
105
- return this.getChildContext = function() {
106
- return e.context;
107
- }, e.children;
108
- }
109
- function x(t) {
110
- var n = this, r = t.h;
111
- if (n.componentWillUnmount = function() {
112
- i(null, n.v), n.v = null, n.h = null;
113
- }, n.h && n.h !== r && n.componentWillUnmount(), !n.v) {
114
- for (var a = n.__v; a !== null && !a.__m && a.__ !== null;) a = a.__;
115
- n.h = r, n.v = {
116
- nodeType: 1,
117
- parentNode: r,
118
- childNodes: [],
119
- __k: { __m: a.__m },
120
- contains: function() {
121
- return !0;
122
- },
123
- namespaceURI: r.namespaceURI,
124
- insertBefore: function(e, t) {
125
- this.childNodes.push(e), n.h.insertBefore(e, t);
126
- },
127
- removeChild: function(e) {
128
- this.childNodes.splice(this.childNodes.indexOf(e) >>> 1, 1), n.h.removeChild(e);
129
- }
130
- };
131
- }
132
- i(e(b, { context: n.context }, t.__v), n.v);
133
- }
134
- function S(t, n) {
135
- var r = e(x, {
136
- __v: t,
137
- h: n
138
- });
139
- return r.containerInfo = n, r;
140
- }
141
- (v.prototype = new a()).__a = function(e) {
142
- var t = this, n = _(t.__v), r = t.l.get(e);
143
- return r[0]++, function(i) {
144
- var a = function() {
145
- t.props.revealOrder ? (r.push(i), y(t, e, r)) : i();
146
- };
147
- n ? n(a) : a();
148
- };
149
- }, v.prototype.render = function(e) {
150
- this.i = null, this.l = /* @__PURE__ */ new Map();
151
- var t = r(e.children);
152
- e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
153
- for (var n = t.length; n--;) this.l.set(t[n], this.i = [
154
- 1,
155
- 0,
156
- this.i
157
- ]);
158
- return e.children;
159
- }, v.prototype.componentDidUpdate = v.prototype.componentDidMount = function() {
160
- var e = this;
161
- this.l.forEach(function(t, n) {
162
- y(e, n, t);
163
- });
164
- };
165
- var C = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, w = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, T = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, E = /[A-Z0-9]/g, D = typeof document < "u", O = function(e) {
166
- return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
167
- };
168
- a.prototype.isReactComponent = !0, [
169
- "componentWillMount",
170
- "componentWillReceiveProps",
171
- "componentWillUpdate"
172
- ].forEach(function(e) {
173
- Object.defineProperty(a.prototype, e, {
174
- configurable: !0,
175
- get: function() {
176
- return this["UNSAFE_" + e];
177
- },
178
- set: function(t) {
179
- Object.defineProperty(this, e, {
180
- configurable: !0,
181
- writable: !0,
182
- value: t
183
- });
184
- }
185
- });
186
- });
187
- var k = n.event;
188
- n.event = function(e) {
189
- return k && (e = k(e)), e.persist = function() {}, e.isPropagationStopped = function() {
190
- return this.cancelBubble;
191
- }, e.isDefaultPrevented = function() {
192
- return this.defaultPrevented;
193
- }, e.nativeEvent = e;
194
- };
195
- var A = {
196
- configurable: !0,
197
- get: function() {
198
- return this.class;
199
- }
200
- }, j = n.vnode;
201
- n.vnode = function(e) {
202
- typeof e.type == "string" && function(e) {
203
- var t = e.props, n = e.type, i = {}, a = n.indexOf("-") == -1;
204
- for (var o in t) {
205
- var s = t[o];
206
- if (!(o === "value" && "defaultValue" in t && s == null || D && o === "children" && n === "noscript" || o === "class" || o === "className")) {
207
- var c = o.toLowerCase();
208
- o === "defaultValue" && "value" in t && t.value == null ? o = "value" : o === "download" && !0 === s ? s = "" : c === "translate" && s === "no" ? s = !1 : c[0] === "o" && c[1] === "n" ? c === "ondoubleclick" ? o = "ondblclick" : c !== "onchange" || n !== "input" && n !== "textarea" || O(t.type) ? c === "onfocus" ? o = "onfocusin" : c === "onblur" ? o = "onfocusout" : T.test(o) && (o = c) : c = o = "oninput" : a && w.test(o) ? o = o.replace(E, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && i[o = c] && (o = "oninputCapture"), i[o] = s;
209
- }
210
- }
211
- n == "select" && (i.multiple && Array.isArray(i.value) && (i.value = r(t.children).forEach(function(e) {
212
- e.props.selected = i.value.indexOf(e.props.value) != -1;
213
- })), i.defaultValue != null && (i.value = r(t.children).forEach(function(e) {
214
- e.props.selected = i.multiple ? i.defaultValue.indexOf(e.props.value) != -1 : i.defaultValue == e.props.value;
215
- }))), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", A)) : t.className && (i.class = i.className = t.className), e.props = i;
216
- }(e), e.$$typeof = C, j && j(e);
217
- };
218
- var M = n.__r;
219
- n.__r = function(e) {
220
- M && M(e), e.__c;
221
- };
222
- var N = n.diffed;
223
- n.diffed = function(e) {
224
- N && N(e);
225
- var t = e.props, n = e.__e;
226
- n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
227
- };
228
- //#endregion
229
- export { d as n, S as t };
@@ -1,100 +0,0 @@
1
- import { calculateAnchoredPopoverPosition as e } from "../core/anchored-popover.js";
2
- import { i as t, o as n, r, t as i } from "./hooks.module-CG3gN83z.js";
3
- import { t as a } from "./jsxRuntime.module-F6UFnpT-.js";
4
- import { createControlId as o } from "../core/control-id.js";
5
- import { hideTopLayerPopup as s, showTopLayerPopup as c } from "../core/top-layer-popup.js";
6
- //#region src/formatting/control-tooltip.tsx
7
- var l = /* @__PURE__ */ new WeakMap();
8
- function u(e, s = !1, c) {
9
- let [u] = t(() => o("rv-format-control-tooltip")), [f, p] = t(!1), m = i(null), h = i(!1), g = n(() => {
10
- let e = m.current?.ownerDocument;
11
- e && l.get(e) === g && l.delete(e), p(!1);
12
- }, []), _ = (e) => {
13
- m.current = e;
14
- let t = e.ownerDocument, n = l.get(t);
15
- n !== g && n?.(), l.set(t, g), p(!0);
16
- };
17
- return r(() => {
18
- if (!f) return;
19
- let e = m.current?.ownerDocument;
20
- if (!e) return;
21
- let t = e.defaultView, n = m.current?.closest("[popover]"), r = () => {
22
- n?.matches(":popover-open") || g();
23
- }, i = (e) => {
24
- m.current?.contains(e.target) || g();
25
- };
26
- return e.addEventListener("pointerdown", i, !0), e.addEventListener("scroll", g, !0), e.addEventListener("visibilitychange", g), t?.addEventListener("resize", g), t?.addEventListener("blur", g), n?.addEventListener("toggle", r), () => {
27
- e.removeEventListener("pointerdown", i, !0), e.removeEventListener("scroll", g, !0), e.removeEventListener("visibilitychange", g), t?.removeEventListener("resize", g), t?.removeEventListener("blur", g), n?.removeEventListener("toggle", r);
28
- };
29
- }, [f, g]), r(() => () => {
30
- let e = m.current?.ownerDocument;
31
- e && l.get(e) === g && l.delete(e);
32
- }, [g]), {
33
- id: u,
34
- hide: g,
35
- triggerProps: {
36
- "aria-describedby": u,
37
- onFocus: (e) => {
38
- m.current = e.currentTarget, h.current || _(e.currentTarget);
39
- },
40
- onBlur: () => {
41
- h.current = !1, g();
42
- },
43
- onMouseEnter: (e) => _(e.currentTarget),
44
- onMouseLeave: g,
45
- onPointerDown: (e) => {
46
- m.current = e.currentTarget, h.current = !0, g();
47
- },
48
- onPointerCancel: g,
49
- onKeyDown: (e) => {
50
- e.key === "Escape" && f ? (e.preventDefault(), e.stopPropagation(), g()) : (e.key === "Enter" || e.key === " ") && g();
51
- }
52
- },
53
- tooltip: /* @__PURE__ */ a(d, {
54
- id: u,
55
- text: e,
56
- visible: f,
57
- anchor: s ? m.current : null,
58
- className: c?.className,
59
- placement: c?.placement
60
- })
61
- };
62
- }
63
- function d({ id: t, text: n, visible: o, anchor: l = null, className: u = "rv-format-control-tooltip", placement: d }) {
64
- let f = i(null);
65
- return r(() => {
66
- let t = f.current;
67
- if (!o || !l || !t) return;
68
- let n = c(t, "block"), r = l.ownerDocument.defaultView, i = e(l.getBoundingClientRect(), t.getBoundingClientRect(), {
69
- width: r?.innerWidth ?? 0,
70
- height: r?.innerHeight ?? 0
71
- }), a = l.getBoundingClientRect(), u = t.getBoundingClientRect(), p = a.top - u.height - 8;
72
- return Object.assign(t.style, {
73
- left: `${d === "above" ? Math.max(8, Math.min(a.left + (a.width - u.width) / 2, (r?.innerWidth ?? 0) - u.width - 8)) : i.left}px`,
74
- top: `${d === "above" && p >= 8 ? p : i.top}px`
75
- }), () => s(t, n);
76
- }, [
77
- o,
78
- l,
79
- d
80
- ]), /* @__PURE__ */ a("span", {
81
- ref: f,
82
- id: t,
83
- class: u,
84
- role: "tooltip",
85
- "data-visible": o,
86
- style: l ? {
87
- position: "fixed",
88
- inset: "auto",
89
- margin: 0,
90
- transform: "none",
91
- positionAnchor: "auto",
92
- positionArea: "none",
93
- display: o ? "block" : "none",
94
- visibility: o ? "visible" : "hidden"
95
- } : void 0,
96
- children: n
97
- });
98
- }
99
- //#endregion
100
- export { u as n, d as t };