@revolist/ui 4.0.3-rc → 4.0.5-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 (192) hide show
  1. package/OWNERSHIP.md +1 -1
  2. package/README.md +16 -0
  3. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  4. package/_chunks/badge.view-D30pMUfi.js +14 -0
  5. package/_chunks/calculator-CDWOuAcp.js +4 -0
  6. package/_chunks/{calendar-xpZ0v3xf.js → calendar-DsXIhybL.js} +19 -19
  7. package/_chunks/chart-frame-CuZABXVI.js +141 -0
  8. package/_chunks/check-BwI7iCAm.js +4 -0
  9. package/_chunks/choice-chips-BhP8MZjs.js +126 -0
  10. package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
  11. package/_chunks/color-picker-B4TQvxxB.js +143 -0
  12. package/_chunks/{component-C_T2VN5u.js → component-qKctqdzk.js} +281 -265
  13. package/_chunks/configurator-actions-C19O1rda.js +155 -0
  14. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  15. package/_chunks/{control-AHKXD5Eu.js → control-BkWukVt9.js} +13 -13
  16. package/_chunks/{controls-DsNi8V8I.js → controls-BLQnWEd7.js} +147 -155
  17. package/_chunks/{date-control-DrVFX13g.js → date-control-Cgw5PwlZ.js} +1 -1
  18. package/_chunks/date-time-B8rK5gpC.js +784 -0
  19. package/_chunks/{dialog.parts-CKGkC5zP.js → dialog.parts-BSbvnEwX.js} +21 -21
  20. package/_chunks/{duration-CL68Em0o.js → duration-DwFXonEV.js} +1 -4
  21. package/_chunks/editor-popup-BaaxL89T.js +81 -0
  22. package/_chunks/field-configurator-1eQP0tKy.js +223 -0
  23. package/_chunks/icon-toolbar-xbqa0hu9.js +128 -0
  24. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  25. package/_chunks/minus-BOAR3A1C.js +4 -0
  26. package/_chunks/mount-D1i5DLRn.js +266 -0
  27. package/_chunks/native-control-DO0d1kgx.js +636 -0
  28. package/_chunks/{number-input-BKwA5FnM.js → number-input-s9ddPwX6.js} +7 -7
  29. package/_chunks/{picker-h1P5RUgp.js → picker-AY05b41W.js} +2 -2
  30. package/_chunks/plus-CbGRkIGl.js +4 -0
  31. package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
  32. package/_chunks/{popup-CT2uD3go.js → popup-UXGCiv3n.js} +97 -97
  33. package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-BEs_QFZC.js} +1 -1
  34. package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-A49l172e.js} +1 -1
  35. package/_chunks/request-trail-DCOfa5zw.js +753 -0
  36. package/_chunks/rich-text-xfMWadGi.js +842 -0
  37. package/_chunks/rotate-left-BF6G883o.js +4 -0
  38. package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
  39. package/_chunks/tooltip-D4xkio5G.js +54 -0
  40. package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
  41. package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
  42. package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
  43. package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
  44. package/ai/_chat.scss +28 -3
  45. package/ai/_style.scss +55 -2
  46. package/ai/chat.d.ts +3 -1
  47. package/ai/components.d.ts +13 -2
  48. package/ai/index.d.ts +1 -0
  49. package/ai/index.js +3 -3
  50. package/ai/mount.d.ts +17 -1
  51. package/ai/results/_style.scss +80 -0
  52. package/ai/results/index.d.ts +11 -0
  53. package/ai/results/metrics.d.ts +5 -0
  54. package/ai/results/table.d.ts +5 -0
  55. package/ai/results/text.d.ts +5 -0
  56. package/ai/results/types.d.ts +29 -0
  57. package/ai/transcript.d.ts +2 -0
  58. package/ai/translations.d.ts +1 -1
  59. package/assignee/index.js +2 -2
  60. package/avatar/index.js +32 -31
  61. package/badge.view.d.ts +8 -0
  62. package/brush-range/component.js +28 -27
  63. package/buttons/svg-button.d.ts +1 -1
  64. package/buttons/svg-button.js +16 -16
  65. package/calendar/_calendar.scss +2 -2
  66. package/calendar/calendar.js +1 -1
  67. package/calendar/index.js +2 -2
  68. package/choice-chips/index.d.ts +3 -1
  69. package/choice-chips/index.js +1 -1
  70. package/color-palette/color-palette.js +1 -1
  71. package/color-palette/color-palette.style.scss +1 -1
  72. package/color-palette/color-picker.js +2 -2
  73. package/component-catalog.d.ts +6 -1
  74. package/configurator-actions.d.ts +67 -0
  75. package/configurator-actions.js +1 -0
  76. package/configurator-aggregation-list.d.ts +14 -0
  77. package/configurator-aggregation-list.js +61 -0
  78. package/configurator-drop-zone.d.ts +38 -0
  79. package/configurator-drop-zone.js +64 -0
  80. package/configurator-field-icon.d.ts +10 -0
  81. package/configurator-field-icon.js +1 -0
  82. package/configurator-focus.d.ts +4 -0
  83. package/configurator-focus.js +39 -0
  84. package/configurator-sections.d.ts +42 -0
  85. package/configurator-sections.js +71 -0
  86. package/control-presentation.js +24 -19
  87. package/controls.d.ts +1 -2
  88. package/controls.js +4 -3
  89. package/core/editor-popup.js +1 -1
  90. package/core/popover-controller.d.ts +35 -0
  91. package/core/popup-ownership.d.ts +2 -0
  92. package/core/title-tooltip.d.ts +2 -0
  93. package/core/tooltip-session.d.ts +29 -0
  94. package/core/tooltip-surface.d.ts +13 -0
  95. package/core/tooltip-text.d.ts +6 -0
  96. package/core/tooltip.d.ts +35 -0
  97. package/core/top-layer-popup.d.ts +4 -0
  98. package/core/top-layer-popup.js +1 -23
  99. package/date-time/index.js +1 -1
  100. package/date-time/style.scss +50 -7
  101. package/date-time/time-selection.d.ts +3 -1
  102. package/dialog/dialog.dom.js +8 -8
  103. package/dialog/dialog.parts.js +1 -1
  104. package/distribution-chart/_distribution-chart.scss +1 -57
  105. package/distribution-chart/area-chart.js +1 -1
  106. package/distribution-chart/bar-chart.js +1 -1
  107. package/distribution-chart/line-chart.js +1 -1
  108. package/dropdown/content.js +1 -1
  109. package/dropdown/control.js +1 -1
  110. package/dropdown/index.js +2 -2
  111. package/dropdown/lookup-field.js +2 -1
  112. package/dropdown/popup.d.ts +2 -2
  113. package/dropdown/popup.js +1 -1
  114. package/duration/index.js +1 -1
  115. package/editor-actions.js +1 -1
  116. package/field-configurator.d.ts +19 -0
  117. package/field-configurator.js +4 -170
  118. package/field-expansion.d.ts +9 -0
  119. package/filter/filters/slider/_slider.scss +0 -17
  120. package/filter/filters/slider/control.js +2 -0
  121. package/filter/filters/slider/runtime.js +49 -22
  122. package/filter/filters/slider/single.js +1 -1
  123. package/filter-badge.js +1 -1
  124. package/filter-controls.js +1 -1
  125. package/form-controls/index.js +6 -6
  126. package/form-controls/presentation.js +12 -12
  127. package/formatting/control-tooltip.d.ts +2 -27
  128. package/formatting/index.js +22 -21
  129. package/formatting/styles.scss +2 -47
  130. package/framework.js +215 -208
  131. package/history-controls.js +27 -1
  132. package/icon-toolbar.d.ts +58 -0
  133. package/icon-toolbar.js +1 -0
  134. package/masked-input/index.js +1 -1
  135. package/native-control.d.ts +1 -2
  136. package/native-control.js +1 -1
  137. package/native-styles.css +1 -1
  138. package/native.js +45 -42
  139. package/number-input/index.js +1 -1
  140. package/package.json +71 -2
  141. package/pagination.js +1 -1
  142. package/pdf-viewer/index.js +1 -1
  143. package/pickers.d.ts +5 -1
  144. package/preact-mount.js +1 -1
  145. package/preact.d.ts +7 -0
  146. package/preact.js +68 -61
  147. package/rating-choice.js +1 -1
  148. package/react.d.ts +5 -0
  149. package/react.js +67 -65
  150. package/reorder-list.js +1 -1
  151. package/resource-picker/resource-picker-popup.js +1 -1
  152. package/resource-picker/resource-picker.js +4 -4
  153. package/rich-text/engine.d.ts +1 -0
  154. package/rich-text/format-html.d.ts +2 -0
  155. package/rich-text/index.d.ts +4 -0
  156. package/rich-text/index.js +1 -1
  157. package/rich-text/model.d.ts +2 -0
  158. package/rich-text/style.scss +165 -70
  159. package/rich-text/syntax.d.ts +5 -0
  160. package/rich-text/translations.d.ts +2 -0
  161. package/select.d.ts +3 -1
  162. package/select.js +1 -1
  163. package/status-feedback/exit-snapshot.js +4 -4
  164. package/status-feedback/popover.js +4 -4
  165. package/styles/_compositions.scss +3 -3
  166. package/styles/_field-configurator.scss +146 -0
  167. package/styles/_fields-grid.scss +35 -0
  168. package/styles/_primitives.scss +25 -18
  169. package/styles/configurator-actions.scss +141 -0
  170. package/styles/legacy-pagination.css +19 -2
  171. package/styles.css +1 -1
  172. package/surfaces.d.ts +3 -0
  173. package/surfaces.js +34 -131
  174. package/surfaces.view.d.ts +4 -34
  175. package/svelte.js +1 -1
  176. package/switch/index.js +15 -14
  177. package/time-grid.js +37 -36
  178. package/timeline-track/index.js +2 -2
  179. package/ui.css +1 -1
  180. package/vue.d.ts +24 -9
  181. package/vue.js +118 -116
  182. package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
  183. package/_chunks/choice-chips-CHQTUdLs.js +0 -110
  184. package/_chunks/color-picker-CudqPYZo.js +0 -138
  185. package/_chunks/control-tooltip-uscKfAnV.js +0 -100
  186. package/_chunks/date-time-qIhp5vaX.js +0 -768
  187. package/_chunks/editor-popup-WDdtVDNA.js +0 -81
  188. package/_chunks/history-controls-B3u3INEK.js +0 -27
  189. package/_chunks/mount-DQ1cpppK.js +0 -257
  190. package/_chunks/native-control-C_yok8_-.js +0 -605
  191. package/_chunks/request-trail-DSlFix6i.js +0 -618
  192. package/_chunks/rich-text-CH7gIqOS.js +0 -636
@@ -1,18 +1,18 @@
1
1
  import { c as e, i as t } from "./preact.module-BBM36DnO.js";
2
2
  import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
3
- import { n as r, t as i } from "./native-control-C_yok8_-.js";
4
- import { r as a } from "./popup-CT2uD3go.js";
5
- import { createPreactElement as o, releasePreactElement as s } from "../preact-mount.js";
3
+ import { createPreactElement as r, releasePreactElement as i } from "../preact-mount.js";
4
+ import { n as a, t as o } from "./native-control-DO0d1kgx.js";
5
+ import { r as s } from "./popup-UXGCiv3n.js";
6
6
  import { t as c } from "./xmark-DD_PBvZI.js";
7
7
  //#region src/dialog/dialog-action-footer.view.tsx
8
- function l({ cancel: e = {}, save: t = {}, deleteAction: r = !1, reset: a = !1, start: o, end: s, children: c, actionsClass: l = "", class: u = "", ...d }) {
9
- let f = (e, t, r, a = "", o = "button") => {
8
+ function l({ cancel: e = {}, save: t = {}, deleteAction: r = !1, reset: i = !1, start: a, end: s, children: c, actionsClass: l = "", class: u = "", ...d }) {
9
+ let f = (e, t, r, i = "", a = "button") => {
10
10
  if (t === !1) return null;
11
11
  let { label: s = r, class: c = "", ...l } = t;
12
- return /* @__PURE__ */ n(i, {
13
- type: o,
12
+ return /* @__PURE__ */ n(o, {
13
+ type: a,
14
14
  ...l,
15
- class: `rv-btn ${a} ${c}`,
15
+ class: `rv-btn ${i} ${c}`,
16
16
  "data-dialog-action": e,
17
17
  children: s
18
18
  });
@@ -25,9 +25,9 @@ function l({ cancel: e = {}, save: t = {}, deleteAction: r = !1, reset: a = !1,
25
25
  children: [/* @__PURE__ */ n("div", {
26
26
  class: "rv-dialog__action-start",
27
27
  children: [
28
- o,
28
+ a,
29
29
  f("delete", r, "Delete", "rv-btn-danger-outline"),
30
- f("reset", a, "Reset")
30
+ f("reset", i, "Reset")
31
31
  ]
32
32
  }), /* @__PURE__ */ n("div", {
33
33
  class: `rv-dialog__actions ${l}`,
@@ -44,14 +44,14 @@ function u(e, t) {
44
44
  return /* @__PURE__ */ n(l, { ...t });
45
45
  }
46
46
  function d(e, t) {
47
- let r = o(e.ownerDocument, /* @__PURE__ */ n(l, { ...t }));
48
- return e.append(r), { destroy() {
49
- s(r);
47
+ let a = r(e.ownerDocument, /* @__PURE__ */ n(l, { ...t }));
48
+ return e.append(a), { destroy() {
49
+ i(a);
50
50
  } };
51
51
  }
52
52
  //#endregion
53
53
  //#region src/dialog/dialog.parts.tsx
54
- var f = a(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("header", {
54
+ var f = s(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("header", {
55
55
  ...t,
56
56
  ref: r,
57
57
  class: `rv-dialog__header ${e}`
@@ -62,21 +62,21 @@ function p({ class: e = "", ...t }) {
62
62
  class: `rv-dialog__surface ${e}`
63
63
  });
64
64
  }
65
- var m = a(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("div", {
65
+ var m = s(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("div", {
66
66
  ...t,
67
67
  ref: r,
68
68
  class: `rv-dialog__body ${e}`
69
- })), h = a(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("footer", {
69
+ })), h = s(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("footer", {
70
70
  ...t,
71
71
  ref: r,
72
72
  class: `rv-dialog__footer ${e}`
73
- })), g = a(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("div", {
73
+ })), g = s(({ class: e = "", ...t }, r) => /* @__PURE__ */ n("div", {
74
74
  ...t,
75
75
  ref: r,
76
76
  class: `rv-dialog__actions ${e}`
77
77
  }));
78
78
  function _({ class: e = "", iconClass: t = "", ...r }) {
79
- return /* @__PURE__ */ n(i, {
79
+ return /* @__PURE__ */ n(o, {
80
80
  ...r,
81
81
  unstyled: !0,
82
82
  type: "button",
@@ -88,11 +88,11 @@ function _({ class: e = "", iconClass: t = "", ...r }) {
88
88
  })
89
89
  });
90
90
  }
91
- var v = a(({ class: e = "", ...t }, i) => /* @__PURE__ */ n(r, {
91
+ var v = s(({ class: e = "", ...t }, r) => /* @__PURE__ */ n(a, {
92
92
  ...t,
93
- ref: i,
93
+ ref: r,
94
94
  class: `rv-dialog__title-input ${e}`
95
- })), y = a(({ titleId: e, title: r, name: i, description: a, inputLabel: o, titleHidden: s, headingClass: c = "", kickerClass: l = "", titleClass: u = "", inputProps: d, closeLabel: p, closeProps: m, onClose: h, class: g = "", ...y }, b) => /* @__PURE__ */ n(f, {
95
+ })), y = s(({ titleId: e, title: r, name: i, description: a, inputLabel: o, titleHidden: s, headingClass: c = "", kickerClass: l = "", titleClass: u = "", inputProps: d, closeLabel: p, closeProps: m, onClose: h, class: g = "", ...y }, b) => /* @__PURE__ */ n(f, {
96
96
  ...y,
97
97
  ref: b,
98
98
  class: `rv-dialog__header--editable ${g}`,
@@ -1,7 +1,7 @@
1
1
  import { i as e } from "./preact.module-BBM36DnO.js";
2
2
  import { c as t, i as n, t as r } from "./hooks.module-CG3gN83z.js";
3
3
  import { t as i } from "./jsxRuntime.module-F6UFnpT-.js";
4
- import { l as a, n as o } from "./native-control-C_yok8_-.js";
4
+ import { l as a, n as o } from "./native-control-DO0d1kgx.js";
5
5
  import { SegmentedSwitch as s } from "../segmented-switch/index.js";
6
6
  import { SingleValueSlider as c } from "../filter/filters/slider/single.js";
7
7
  import { n as l } from "./editor-commit-Bq3wSgvr.js";
@@ -252,9 +252,6 @@ function x({ value: e, options: t, apply: a, cancel: o }) {
252
252
  onDraftChange: (e) => {
253
253
  g.current = !0, v.current = e;
254
254
  },
255
- onCommit: h ? (e) => {
256
- g.current = !1, a(e);
257
- } : void 0,
258
255
  onValidityChange: c
259
256
  }, p), /* @__PURE__ */ i(u, {
260
257
  showConfirm: t.showActions ?? !h,
@@ -0,0 +1,81 @@
1
+ import { calculateAnchoredPopoverPosition as e } from "../core/anchored-popover.js";
2
+ import { t } from "./jsxRuntime.module-F6UFnpT-.js";
3
+ import { createPreactElement as n, releasePreactElement as r } from "../preact-mount.js";
4
+ import { i, r as a, t as o } from "./top-layer-popup-CNSDdfJV.js";
5
+ import { t as s } from "./editor-commit-Bq3wSgvr.js";
6
+ //#region src/core/editor-popup-position.ts
7
+ function c(t, n, r, i = 4, a = 8) {
8
+ let o = Math.max(0, r.height - a - t.bottom - i), s = Math.max(0, t.top - a - i), c = n.height <= o || o >= s ? "below" : "above", l = c === "below" ? o : s, u = Math.min(n.height, l);
9
+ return {
10
+ ...e(t, n, r, i, a),
11
+ placementY: c,
12
+ maxHeight: l,
13
+ top: c === "below" ? t.bottom + i : t.top - u - i
14
+ };
15
+ }
16
+ //#endregion
17
+ //#region src/core/editor-popup.tsx
18
+ var l = /* @__PURE__ */ new WeakMap();
19
+ function u(e, u, d) {
20
+ let f = e.ownerDocument, p = f.defaultView;
21
+ l.get(f)?.close();
22
+ let m = !1, h, g = (e) => (h = e, () => {
23
+ h === e && (h = void 0);
24
+ }), _ = () => {
25
+ m || (m = !0, E.disconnect(), T?.disconnect(), f.removeEventListener("pointerdown", y, !0), f.removeEventListener("keydown", b, !0), f.removeEventListener("scroll", x, !0), p.removeEventListener("resize", _), o(S, C), r(S), S.remove(), l.get(f)?.element === S && l.delete(f), d.onClose?.(), e.isConnected && e.focus({ preventScroll: !0 }));
26
+ }, v = (e) => e ? i(S, e) : !1, y = (t) => {
27
+ v(t.target) || e.contains(t.target) || (d.isAvailable && !d.isAvailable() ? _() : h?.() === !1 ? (t.preventDefault(), t.stopPropagation()) : _());
28
+ }, b = (e) => {
29
+ if (e.key === "Escape") {
30
+ if (S.querySelector("[aria-expanded=\"true\"]")) return;
31
+ e.preventDefault(), e.stopPropagation(), _();
32
+ }
33
+ if (e.key === "Tab" && S.contains(e.target)) {
34
+ let t = [...S.querySelectorAll("button:not(:disabled),input:not(:disabled),textarea:not(:disabled),select:not(:disabled),[contenteditable=\"true\"],[tabindex=\"0\"]")].filter((e) => e.tabIndex >= 0 && e.getClientRects().length), n = t[0], r = t.at(-1);
35
+ e.shiftKey && f.activeElement === n ? (e.preventDefault(), r?.focus()) : !e.shiftKey && f.activeElement === r && (e.preventDefault(), n?.focus());
36
+ }
37
+ }, x = (t) => {
38
+ let n = t.target;
39
+ v(n) || n && (n.contains(e) || D?.contains(n)) && w();
40
+ }, S = n(f, /* @__PURE__ */ t("div", {
41
+ class: `rv-editor-popup ${d.className ?? ""}`,
42
+ role: "dialog",
43
+ "aria-label": d.label,
44
+ onKeyDown: (e) => e.stopPropagation(),
45
+ onKeyUp: (e) => e.stopPropagation(),
46
+ onMouseDown: (e) => e.stopPropagation(),
47
+ onClick: (e) => e.stopPropagation(),
48
+ children: /* @__PURE__ */ t(s.Provider, {
49
+ value: g,
50
+ children: u(_)
51
+ })
52
+ }));
53
+ S.style.direction = p.getComputedStyle(e).direction, (e.closest("dialog, [role=\"dialog\"], [role=\"menu\"]") ?? e.closest("revo-grid") ?? f.body).append(S);
54
+ let C = a(S, "block"), w = () => {
55
+ S.style.maxHeight = "";
56
+ let t = c(e.getBoundingClientRect(), S.getBoundingClientRect(), {
57
+ width: p.innerWidth,
58
+ height: p.innerHeight
59
+ });
60
+ S.style.maxHeight = `${t.maxHeight}px`, S.style.left = `${t.left}px`, S.style.top = `${t.top}px`, S.dataset.placement = t.placementY;
61
+ };
62
+ w();
63
+ let T = typeof p.ResizeObserver == "function" ? new p.ResizeObserver(w) : void 0;
64
+ T?.observe(S), T?.observe(e);
65
+ let E = new MutationObserver(() => {
66
+ (!e.isConnected || !S.isConnected || d.isAvailable && !d.isAvailable()) && _();
67
+ });
68
+ E.observe(f.body, {
69
+ childList: !0,
70
+ subtree: !0
71
+ });
72
+ let D = e.closest("revo-grid");
73
+ D && d.isAvailable && E.observe(D, { attributes: !0 }), f.addEventListener("pointerdown", y, !0), f.addEventListener("keydown", b, !0), f.addEventListener("scroll", x, !0), p.addEventListener("resize", _);
74
+ let O = {
75
+ element: S,
76
+ close: _
77
+ };
78
+ return l.set(f, O), S.querySelector("[autofocus],input,textarea,button,[tabindex=\"0\"]")?.focus({ preventScroll: !0 }), O;
79
+ }
80
+ //#endregion
81
+ export { u as t };
@@ -0,0 +1,223 @@
1
+ import { c as e } from "./preact.module-BBM36DnO.js";
2
+ import { t } from "./hooks.module-CG3gN83z.js";
3
+ import { t as n } from "./jsxRuntime.module-F6UFnpT-.js";
4
+ import { SvgIcon as r } from "../icons/icon.js";
5
+ import { t as i } from "./native-control-DO0d1kgx.js";
6
+ import { n as a } from "./delete-button-CW9vjLnk.js";
7
+ import { RemoveButton as o } from "../buttons/remove-button.js";
8
+ import { t as s } from "./chevron-right-sxHQMSkq.js";
9
+ import { t as c } from "./tooltip-text-BXsUEmBH.js";
10
+ import { t as l } from "./badge.view-D30pMUfi.js";
11
+ import { DisclosureSummary as u } from "../form-controls/presentation.js";
12
+ //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/table-columns.svg?raw
13
+ var d = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 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=\"M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z\"/></svg>";
14
+ //#endregion
15
+ //#region src/field-expansion.ts
16
+ function f() {
17
+ return {
18
+ known: /* @__PURE__ */ new Set(),
19
+ expanded: /* @__PURE__ */ new Set(),
20
+ collapsed: /* @__PURE__ */ new Set()
21
+ };
22
+ }
23
+ function p(e, t, n) {
24
+ for (let n of t) e.known.has(n) || (e.known.add(n), e.expanded.add(n));
25
+ return new Set(n ? t : e.expanded);
26
+ }
27
+ function m(e, t) {
28
+ e.expanded = new Set([...t].map(String)), e.collapsed = new Set([...e.known].filter((t) => !e.expanded.has(t)));
29
+ }
30
+ //#endregion
31
+ //#region src/field-configurator.tsx
32
+ function h({ svg: e, className: t = "" }) {
33
+ return /* @__PURE__ */ n(r, {
34
+ svg: e,
35
+ className: `rv-configurator-icon ${t}`
36
+ });
37
+ }
38
+ function g({ children: e, className: t = "", ...r }) {
39
+ return /* @__PURE__ */ n(u, {
40
+ ...r,
41
+ className: `rv-configurator-summary ${t}`,
42
+ iconPosition: "after",
43
+ icon: /* @__PURE__ */ n(h, { svg: s }),
44
+ children: e
45
+ });
46
+ }
47
+ function _({ title: e, count: t, children: r, className: i = "" }) {
48
+ return /* @__PURE__ */ n("details", {
49
+ class: `rv-configurator-available-fields ${i}`,
50
+ open: !0,
51
+ children: [/* @__PURE__ */ n(g, { children: [e, t != null && /* @__PURE__ */ n("span", {
52
+ class: "rv-configurator-field-count",
53
+ children: t
54
+ })] }), /* @__PURE__ */ n("div", {
55
+ class: "rv-configurator-library-content",
56
+ children: r
57
+ })]
58
+ });
59
+ }
60
+ function v({ children: e, actions: t, className: r = "" }) {
61
+ return /* @__PURE__ */ n("div", {
62
+ class: `rv-configurator-zone-heading ${r}`,
63
+ children: [/* @__PURE__ */ n("span", {
64
+ class: "rv-configurator-zone-label",
65
+ children: e
66
+ }), t && /* @__PURE__ */ n("span", {
67
+ class: "rv-configurator-zone-actions",
68
+ children: t
69
+ })]
70
+ });
71
+ }
72
+ function y({ heading: e, actions: t, headingClassName: r, className: i = "", children: a, ...o }) {
73
+ return /* @__PURE__ */ n("section", {
74
+ ...o,
75
+ className: `rv-configurator-zone ${i}`,
76
+ children: [/* @__PURE__ */ n(v, {
77
+ className: r,
78
+ actions: t,
79
+ children: e
80
+ }), a]
81
+ });
82
+ }
83
+ function b({ empty: e, placeholder: t, className: r = "", children: i, ...a }) {
84
+ return /* @__PURE__ */ n("ul", {
85
+ ...a,
86
+ className: `rv-configurator-field-list ${e ? "empty" : ""} ${r}`,
87
+ children: e ? /* @__PURE__ */ n("li", {
88
+ className: "rv-configurator-empty-zone empty",
89
+ children: t
90
+ }) : i
91
+ });
92
+ }
93
+ function x({ className: e = "", children: t, indicator: r, dropPosition: i, ...a }) {
94
+ return /* @__PURE__ */ n("li", {
95
+ ...a,
96
+ className: `rv-configurator-field rv-configurator-field-row ${e}`,
97
+ children: [
98
+ r ?? (i && /* @__PURE__ */ n(A, { position: i })),
99
+ /* @__PURE__ */ n("span", {
100
+ className: "rv-configurator-drag-handle",
101
+ "aria-hidden": "true"
102
+ }),
103
+ t
104
+ ]
105
+ });
106
+ }
107
+ function S({ icon: e, children: t, className: r = "" }) {
108
+ return /* @__PURE__ */ n("span", {
109
+ class: `rv-configurator-field-content ${r}`,
110
+ children: [e, /* @__PURE__ */ n("span", {
111
+ class: "rv-configurator-field-caption",
112
+ children: t
113
+ })]
114
+ });
115
+ }
116
+ function C({ as: t = "div", children: n, className: r = "", ...i }) {
117
+ return e(t, {
118
+ ...i,
119
+ class: `rv-configurator-field ${r}`
120
+ }, n);
121
+ }
122
+ function w({ children: e, ...t }) {
123
+ return /* @__PURE__ */ n("div", {
124
+ ...t,
125
+ className: `rv-configurator-library-list ${t.className ?? ""}`,
126
+ children: e
127
+ });
128
+ }
129
+ function T({ label: e, icon: t, actions: r, contentClassName: i, ...a }) {
130
+ return /* @__PURE__ */ n(x, {
131
+ ...a,
132
+ children: [/* @__PURE__ */ n(S, {
133
+ className: i,
134
+ icon: t,
135
+ children: e
136
+ }), r]
137
+ });
138
+ }
139
+ function E({ children: e, className: t = "", ...r }) {
140
+ return /* @__PURE__ */ n("div", {
141
+ ...r,
142
+ className: `rv-configurator-field-actions ${t}`,
143
+ children: e
144
+ });
145
+ }
146
+ function D({ children: e, active: t = !1, label: r, className: i = "" }) {
147
+ return /* @__PURE__ */ n(c, {
148
+ className: `rv-configurator-status-badge ${i}`,
149
+ "data-active": t ? "true" : void 0,
150
+ title: r,
151
+ "aria-label": r,
152
+ children: e
153
+ });
154
+ }
155
+ function O(e) {
156
+ return /* @__PURE__ */ n(o, {
157
+ ...e,
158
+ className: `rv-configurator-remove-button ${e.className ?? ""}`
159
+ });
160
+ }
161
+ function k() {
162
+ return /* @__PURE__ */ n(r, { svg: a });
163
+ }
164
+ function A({ position: e, index: t, className: r = "" }) {
165
+ return /* @__PURE__ */ n("span", {
166
+ className: `rv-configurator-drop-indicator ${r}`,
167
+ "data-position": e,
168
+ "data-drop-index": t,
169
+ "aria-hidden": "true"
170
+ });
171
+ }
172
+ function j({ title: e, description: r, defaultOpen: i = !1, children: a, className: o = "", summaryClassName: s = "", contentClassName: c = "", descriptionClassName: l = "", renderRoot: u }) {
173
+ let d = t(i), f = {
174
+ class: `rv-collapsible-section rv-configurator-section ${o}`.trim(),
175
+ open: d.current,
176
+ children: [/* @__PURE__ */ n(g, {
177
+ className: s,
178
+ children: e
179
+ }), /* @__PURE__ */ n("div", {
180
+ class: `rv-collapsible-section__content ${c}`.trim(),
181
+ children: [r && /* @__PURE__ */ n("p", {
182
+ class: `rv-collapsible-section__description ${l}`.trim(),
183
+ children: r
184
+ }), a]
185
+ })]
186
+ };
187
+ return u ? u(f) : /* @__PURE__ */ n("details", { ...f });
188
+ }
189
+ function M({ panelRef: e, standalone: t = !1, children: r, compactItems: a, compact: o = !1, onExpand: s, ...c }) {
190
+ let u = (e) => {
191
+ s?.(), e.onOpen?.();
192
+ };
193
+ return /* @__PURE__ */ n("div", {
194
+ ...c,
195
+ ref: e,
196
+ "data-compact": o ? "true" : void 0,
197
+ className: `rv-configurator-panel ${t ? "rv-configurator-panel--standalone" : ""} ${c.className ?? ""}`,
198
+ children: [o && a && /* @__PURE__ */ n("div", {
199
+ className: "rv-configurator-rail",
200
+ role: "group",
201
+ "aria-label": c["aria-label"] ?? "Configurator",
202
+ children: o && a.map((e) => /* @__PURE__ */ n(i, {
203
+ unstyled: !0,
204
+ class: "rv-btn rv-btn-ghost rv-configurator-rail__button",
205
+ "aria-label": `${e.label}${e.count === void 0 ? "" : ` (${e.count})`}`,
206
+ title: `${e.label}${e.count === void 0 ? "" : ` (${e.count})`}`,
207
+ disabled: e.disabled,
208
+ onClick: () => u(e),
209
+ children: [/* @__PURE__ */ n(h, { svg: e.icon ?? "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 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=\"M0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm64 64l0 256 128 0 0-256-128 0zm320 0l-128 0 0 256 128 0 0-256z\"/></svg>" }), e.count !== void 0 && /* @__PURE__ */ n(l, {
210
+ className: "rv-configurator-rail__count",
211
+ variant: e.count ? "accent" : "neutral",
212
+ children: e.count
213
+ })]
214
+ }, e.id))
215
+ }), a ? /* @__PURE__ */ n("div", {
216
+ class: "rv-configurator-panel__content",
217
+ hidden: o,
218
+ children: r
219
+ }) : r]
220
+ });
221
+ }
222
+ //#endregion
223
+ export { d as S, g as _, A as a, p as b, h as c, w as d, b as f, D as g, x as h, S as i, C as l, k as m, M as n, y as o, O as p, E as r, v as s, j as t, _ as u, T as v, m as x, f as y };
@@ -0,0 +1,128 @@
1
+ import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
2
+ import { t } from "./title-tooltip-Cw6LOZhb.js";
3
+ import { n, t as r } from "./arrow-up-Cw8hW9vp.js";
4
+ import { t as i } from "./rotate-left-BF6G883o.js";
5
+ import { t as a } from "./plus-CbGRkIGl.js";
6
+ import { t as o } from "./minus-BOAR3A1C.js";
7
+ //#endregion
8
+ //#region src/icon-toolbar.tsx
9
+ var s = {
10
+ plus: a,
11
+ minus: o,
12
+ arrowLeft: "<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=\"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>",
13
+ arrowRight: "<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=\"M502.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l370.7 0-105.4 105.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z\"/></svg>",
14
+ arrowUp: r,
15
+ arrowDown: n,
16
+ reset: i
17
+ }, c = "\n .rv-svg-toolbar-button { cursor: pointer; }\n .rv-svg-toolbar-button[aria-pressed=\"true\"] > rect { fill: currentColor; fill-opacity: .14; }\n .rv-svg-toolbar-button[aria-disabled=\"true\"] { opacity: .4; cursor: default; }\n .rv-svg-toolbar-button:not([aria-disabled=\"true\"]):hover > rect { fill: currentColor; fill-opacity: .1; }\n .rv-svg-toolbar-button:focus-visible { outline: none; }\n .rv-svg-toolbar-button:focus-visible > rect { stroke: currentColor; stroke-width: 2; }\n";
18
+ function l(n) {
19
+ let r = t(n.title ?? n.label, n.onEscape);
20
+ return /* @__PURE__ */ e("g", {
21
+ ref: r,
22
+ ...n.attributes,
23
+ class: "rv-svg-toolbar-button",
24
+ role: "button",
25
+ tabindex: n.enabled ? 0 : -1,
26
+ "aria-label": n.label,
27
+ "aria-disabled": !n.enabled,
28
+ "aria-pressed": n.pressed,
29
+ "data-rv-svg-toolbar-button": n.action,
30
+ onClick: n.onActivate ? () => {
31
+ n.enabled && n.onActivate?.(n.action);
32
+ } : void 0,
33
+ onKeyDown: n.onActivate ? (e) => {
34
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), n.enabled && n.onActivate?.(n.action));
35
+ } : void 0,
36
+ children: [
37
+ /* @__PURE__ */ e("rect", {
38
+ ref: (e) => {
39
+ e && n.onRectangle?.(e);
40
+ },
41
+ x: n.x,
42
+ y: n.y,
43
+ width: 28,
44
+ height: 28,
45
+ rx: 6,
46
+ fill: "transparent",
47
+ stroke: "transparent"
48
+ }),
49
+ n.icon && /* @__PURE__ */ e("svg", {
50
+ "data-rv-toolbar-icon": "",
51
+ x: n.x + (n.suffixIcon ? 5 : 8),
52
+ y: n.y + 8,
53
+ width: 12,
54
+ height: 12,
55
+ visibility: n.showText ? "hidden" : void 0,
56
+ "aria-hidden": "true",
57
+ focusable: "false",
58
+ fill: "currentColor",
59
+ style: { color: n.foreground ?? (n.pressed ? "var(--rv-ui-accent-text, Highlight)" : "var(--rv-ui-text, CanvasText)") },
60
+ dangerouslySetInnerHTML: { __html: n.icon }
61
+ }),
62
+ n.suffixIcon && /* @__PURE__ */ e("svg", {
63
+ x: n.x + 18,
64
+ y: n.y + 12,
65
+ width: 6,
66
+ height: 8,
67
+ "aria-hidden": "true",
68
+ focusable: "false",
69
+ fill: "currentColor",
70
+ style: { color: n.foreground ?? (n.pressed ? "var(--rv-ui-accent-text, Highlight)" : "var(--rv-ui-text, CanvasText)") },
71
+ dangerouslySetInnerHTML: { __html: n.suffixIcon }
72
+ }),
73
+ /* @__PURE__ */ e("text", {
74
+ visibility: n.icon && !n.showText ? "hidden" : void 0,
75
+ ref: (e) => {
76
+ e && n.onText?.(e);
77
+ },
78
+ x: n.x + 14,
79
+ y: n.y + 19,
80
+ fill: n.foreground ?? "var(--rv-ui-text, currentColor)",
81
+ "font-size": 16,
82
+ "text-anchor": "middle",
83
+ "aria-hidden": "true",
84
+ children: n.text
85
+ })
86
+ ]
87
+ });
88
+ }
89
+ function u({ actions: t, label: n = "Actions", onAction: r, onEscape: i }) {
90
+ let a = Math.max(10, t.length * 33 + 5);
91
+ return /* @__PURE__ */ e("svg", {
92
+ class: "rv-icon-toolbar",
93
+ role: "group",
94
+ "aria-label": n,
95
+ width: a,
96
+ height: 38,
97
+ viewBox: `0 0 ${a} 38`,
98
+ style: {
99
+ color: "var(--rv-ui-accent, Highlight)",
100
+ maxWidth: "100%"
101
+ },
102
+ children: [
103
+ /* @__PURE__ */ e("style", { children: c }),
104
+ /* @__PURE__ */ e("rect", {
105
+ width: a,
106
+ height: 38,
107
+ rx: 12,
108
+ fill: "var(--rv-ui-surface-sunken, transparent)"
109
+ }),
110
+ t.map((t, n) => /* @__PURE__ */ e(l, {
111
+ action: t.id,
112
+ label: t.label,
113
+ title: t.title,
114
+ text: t.text,
115
+ icon: t.icon,
116
+ suffixIcon: t.suffixIcon,
117
+ pressed: t.pressed,
118
+ enabled: !t.disabled,
119
+ x: 5 + n * 33,
120
+ y: 5,
121
+ onActivate: r,
122
+ onEscape: i
123
+ }, t.id))
124
+ ]
125
+ });
126
+ }
127
+ //#endregion
128
+ export { l as i, u as n, c as r, s as t };
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/magnifying-glass.svg?raw
2
+ var e = "<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=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/></svg>";
3
+ //#endregion
4
+ export { e as t };
@@ -0,0 +1,4 @@
1
+ //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/minus.svg?raw
2
+ var e = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 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=\"M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z\"/></svg>";
3
+ //#endregion
4
+ export { e as t };