@revolist/ui 4.0.1-rc → 4.0.2-rc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/README.md +6 -5
  2. package/_chunks/calendar-CpaUK7w1.js +248 -0
  3. package/_chunks/chart-frame-BC99KjGa.js +127 -0
  4. package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
  5. package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
  6. package/_chunks/color-picker-D90Jg-M8.js +138 -0
  7. package/_chunks/compat.module-DDB2pm9O.js +229 -0
  8. package/_chunks/component-YDcfoOLz.js +859 -0
  9. package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
  10. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  11. package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
  12. package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
  13. package/_chunks/date-time-BxPJusp9.js +770 -0
  14. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
  15. package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
  16. package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
  17. package/_chunks/duration-87U2EoMS.js +271 -0
  18. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  19. package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
  20. package/_chunks/framework-mount-C-Zwm44H.js +54 -0
  21. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  22. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  23. package/_chunks/mount-DZe_6VtR.js +90 -0
  24. package/_chunks/native.view-ByyZ1CT5.js +32 -0
  25. package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
  26. package/_chunks/picker-DpP7iQLA.js +122 -0
  27. package/_chunks/preact.module-BBM36DnO.js +290 -0
  28. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
  29. package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
  30. package/_chunks/request-trail-IdNiFvKH.js +347 -0
  31. package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
  32. package/_vendor/preact/LICENSE +21 -0
  33. package/_vendor/preact/compat/src/index.d.ts +353 -0
  34. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  35. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  36. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  37. package/_vendor/preact/src/dom.d.ts +2548 -0
  38. package/_vendor/preact/src/index.d.ts +373 -0
  39. package/_vendor/preact/src/jsx.d.ts +2958 -0
  40. package/activity-message.d.ts +1 -1
  41. package/activity-message.js +16 -16
  42. package/ai/components.d.ts +1 -1
  43. package/ai/index.js +2 -2
  44. package/ai/request-trail.d.ts +1 -1
  45. package/ai/translation-context.d.ts +1 -1
  46. package/alert.d.ts +2 -2
  47. package/assignee/field.d.ts +2 -2
  48. package/assignee/index.js +87 -87
  49. package/assignee/layout.d.ts +2 -2
  50. package/assignee/picker.d.ts +1 -1
  51. package/avatar/index.js +25 -25
  52. package/avatar/index.view.d.ts +1 -1
  53. package/brush-range/component.d.ts +1 -1
  54. package/brush-range/component.js +30 -30
  55. package/buttons/delete-button.js +1 -1
  56. package/buttons/remove-button.d.ts +1 -1
  57. package/buttons/remove-button.js +3 -3
  58. package/buttons/svg-button.d.ts +1 -1
  59. package/buttons/svg-button.js +35 -35
  60. package/calendar/calendar.d.ts +1 -1
  61. package/calendar/calendar.js +1 -1
  62. package/calendar/caption.d.ts +1 -1
  63. package/calendar/day.d.ts +1 -1
  64. package/calendar/day.js +4 -4
  65. package/calendar/header.d.ts +1 -1
  66. package/calendar/header.js +35 -35
  67. package/calendar/index.js +2 -2
  68. package/calendar/month-grid.d.ts +1 -1
  69. package/calendar/month-grid.js +37 -37
  70. package/calendar/picker.d.ts +1 -1
  71. package/calendar/types.d.ts +1 -1
  72. package/calendar/year-grid.d.ts +1 -1
  73. package/calendar/year-grid.js +12 -12
  74. package/checkbox/index.d.ts +2 -2
  75. package/checkbox/index.js +9 -9
  76. package/choice-chips/index.d.ts +1 -1
  77. package/choice-chips/index.js +1 -1
  78. package/color-palette/color-palette.d.ts +1 -1
  79. package/color-palette/color-palette.js +1 -1
  80. package/color-palette/color-picker.d.ts +1 -1
  81. package/color-palette/color-picker.js +2 -2
  82. package/component-catalog.d.ts +19 -19
  83. package/control-presentation.js +18 -18
  84. package/controls.d.ts +4 -4
  85. package/controls.js +1 -1
  86. package/core/editor-commit.d.ts +1 -1
  87. package/core/editor-popup.d.ts +1 -1
  88. package/core/editor-popup.js +1 -1
  89. package/date-time/date-control.d.ts +1 -1
  90. package/date-time/field.d.ts +2 -2
  91. package/date-time/index.js +1 -1
  92. package/date-time/picker.d.ts +1 -1
  93. package/date-time/time-control.d.ts +1 -1
  94. package/date-time/time-selection.d.ts +1 -1
  95. package/date-time/types.d.ts +1 -1
  96. package/dialog/dialog-action-footer.view.d.ts +1 -1
  97. package/dialog/dialog.dom.js +52 -52
  98. package/dialog/dialog.parts.d.ts +18 -18
  99. package/dialog/dialog.parts.js +1 -1
  100. package/dialog/dialog.preact.d.ts +1 -1
  101. package/dialog/dialog.preact.js +6 -6
  102. package/distribution-chart/area-chart.d.ts +1 -1
  103. package/distribution-chart/area-chart.js +25 -25
  104. package/distribution-chart/bar-chart.d.ts +1 -1
  105. package/distribution-chart/bar-chart.js +6 -6
  106. package/distribution-chart/chart-frame.d.ts +1 -1
  107. package/distribution-chart/index.d.ts +1 -1
  108. package/distribution-chart/index.js +6 -6
  109. package/distribution-chart/line-chart.d.ts +1 -1
  110. package/distribution-chart/line-chart.js +9 -9
  111. package/distribution-chart/types.d.ts +1 -1
  112. package/dropdown/content.d.ts +1 -1
  113. package/dropdown/content.js +83 -82
  114. package/dropdown/dropdown.service.d.ts +1 -1
  115. package/dropdown/dropdown.service.js +9 -9
  116. package/dropdown/index.js +1 -1
  117. package/dropdown/lookup-field.d.ts +1 -1
  118. package/dropdown/lookup-field.js +41 -41
  119. package/dropdown/popup.d.ts +1 -1
  120. package/dropdown/popup.js +17 -16
  121. package/duration/controls.d.ts +1 -1
  122. package/duration/index.d.ts +2 -2
  123. package/duration/index.js +1 -1
  124. package/editor-actions.d.ts +1 -1
  125. package/editor-actions.js +21 -20
  126. package/editor-layout/index.d.ts +1 -1
  127. package/editor-layout/index.js +27 -27
  128. package/field-configurator.d.ts +1 -1
  129. package/field-configurator.js +93 -93
  130. package/field-reorder.hook.js +32 -32
  131. package/filter/filters/slider/preact.js +3 -3
  132. package/filter/filters/slider/single.d.ts +1 -1
  133. package/filter/filters/slider/single.js +23 -23
  134. package/filter-badge.d.ts +1 -1
  135. package/filter-badge.js +23 -22
  136. package/filter-controls.d.ts +1 -1
  137. package/filter-controls.js +31 -31
  138. package/form-controls/index.js +20 -20
  139. package/form-controls/presentation.d.ts +1 -1
  140. package/form-controls/presentation.js +44 -44
  141. package/formatting/comparison-preview.d.ts +1 -1
  142. package/formatting/control-tooltip.d.ts +1 -1
  143. package/formatting/icon-controls.d.ts +1 -1
  144. package/formatting/index.js +99 -98
  145. package/formatting/inspector-section.d.ts +1 -1
  146. package/formatting/typography-controls.d.ts +1 -1
  147. package/framework-mount.d.ts +1 -1
  148. package/framework.js +19 -19
  149. package/icons/icon.d.ts +1 -1
  150. package/icons/icon.js +1 -1
  151. package/legend.d.ts +1 -1
  152. package/legend.js +12 -12
  153. package/masked-input/index.d.ts +1 -1
  154. package/masked-input/index.js +109 -109
  155. package/native-control.d.ts +11 -11
  156. package/native-control.js +12 -12
  157. package/native.js +39 -39
  158. package/number-input/index.d.ts +1 -1
  159. package/number-input/index.js +1 -1
  160. package/package.json +1 -2
  161. package/pdf-viewer/component.d.ts +1 -1
  162. package/pdf-viewer/controller.js +1 -1
  163. package/pdf-viewer/header.d.ts +1 -1
  164. package/pdf-viewer/index.js +13 -13
  165. package/pdf-viewer/search-bar.d.ts +1 -1
  166. package/pdf-viewer/status.d.ts +1 -1
  167. package/pdf-viewer/toolbar.d.ts +1 -1
  168. package/pickers.d.ts +1 -1
  169. package/preact-mount.d.ts +1 -1
  170. package/preact-mount.js +1 -1
  171. package/preact.js +14 -14
  172. package/rating-choice.d.ts +1 -1
  173. package/rating-choice.js +1 -1
  174. package/react-adapter.d.ts +1 -1
  175. package/react.js +19 -19
  176. package/reorder-list.d.ts +1 -1
  177. package/reorder-list.js +1 -1
  178. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  179. package/resource-picker/resource-picker-avatar.js +14 -14
  180. package/resource-picker/resource-picker-option.d.ts +1 -1
  181. package/resource-picker/resource-picker-option.js +28 -28
  182. package/resource-picker/resource-picker-popup.d.ts +1 -1
  183. package/resource-picker/resource-picker-popup.js +3 -3
  184. package/resource-picker/resource-picker.d.ts +1 -1
  185. package/resource-picker/resource-picker.js +88 -88
  186. package/rich-text/index.d.ts +1 -1
  187. package/rich-text/index.js +1 -1
  188. package/rich-text/toolbar.d.ts +1 -1
  189. package/search-input/index.js +12 -12
  190. package/segmented-switch/index.d.ts +1 -1
  191. package/segmented-switch/index.js +1 -1
  192. package/status-feedback/render.d.ts +2 -2
  193. package/status-feedback/render.js +13 -13
  194. package/surfaces.js +34 -34
  195. package/svelte.js +2 -2
  196. package/switch/index.js +15 -15
  197. package/time-grid.d.ts +1 -1
  198. package/time-grid.js +58 -58
  199. package/timeline-track/component.d.ts +1 -1
  200. package/timeline-track/index.js +75 -75
  201. package/vue-adapter.d.ts +1 -1
  202. package/vue.d.ts +116 -116
  203. package/vue.js +121 -121
  204. package/_chunks/calendar-BsDxCYhI.js +0 -248
  205. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  206. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  207. package/_chunks/color-picker-BRv-__AM.js +0 -138
  208. package/_chunks/component-D4PH5UZT.js +0 -859
  209. package/_chunks/date-time-DjucJmbc.js +0 -769
  210. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  211. package/_chunks/duration-BCaktcvz.js +0 -270
  212. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  213. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  214. package/_chunks/mount-0-8opf1j.js +0 -90
  215. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  216. package/_chunks/picker-oazJ7sO_.js +0 -121
  217. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  218. package/_chunks/request-trail-D0oVzdRd.js +0 -347
package/duration/index.js CHANGED
@@ -1 +1 @@
1
- export { t as DurationDraft, n as DurationField } from "../_chunks/duration-BCaktcvz.js";
1
+ export { t as DurationDraft, n as DurationField } from "../_chunks/duration-87U2EoMS.js";
@@ -17,4 +17,4 @@ export declare function EditorActions({ apply, cancel, clear, disabled, text, sh
17
17
  disabled?: boolean;
18
18
  text?: Partial<EditorActionText>;
19
19
  showConfirm?: boolean;
20
- }): import("preact").JSX.Element | null;
20
+ }): import("./_vendor/preact/src/index").JSX.Element | null;
package/editor-actions.js CHANGED
@@ -1,35 +1,36 @@
1
- import { n as e } from "./_chunks/controls-NEL5tDaz.js";
2
- import { Fragment as t, jsx as n, jsxs as r } from "preact/jsx-runtime";
1
+ import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
2
+ import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
3
+ import { n } from "./_chunks/controls-DIum-E66.js";
3
4
  //#region src/editor-actions.tsx
4
- var i = {
5
+ var r = {
5
6
  apply: "Apply",
6
7
  cancel: "Cancel",
7
8
  clear: "Clear"
8
9
  };
9
- function a({ apply: a, cancel: o, clear: s, disabled: c, text: l = i, showConfirm: u = !0 }) {
10
- if (!u && !s) return null;
11
- let d = {
12
- apply: l.apply ?? i.apply,
13
- cancel: l.cancel ?? i.cancel,
14
- clear: l.clear ?? i.clear
10
+ function i({ apply: i, cancel: a, clear: o, disabled: s, text: c = r, showConfirm: l = !0 }) {
11
+ if (!l && !o) return null;
12
+ let u = {
13
+ apply: c.apply ?? r.apply,
14
+ cancel: c.cancel ?? r.cancel,
15
+ clear: c.clear ?? r.clear
15
16
  };
16
- return /* @__PURE__ */ r("div", {
17
+ return /* @__PURE__ */ t("div", {
17
18
  class: "rv-editor-actions",
18
- children: [s && /* @__PURE__ */ n(e, {
19
+ children: [o && /* @__PURE__ */ t(n, {
19
20
  variant: "ghost",
20
21
  className: "rv-editor-actions__clear",
21
- onClick: s,
22
- children: d.clear
23
- }), u && /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(e, {
24
22
  onClick: o,
25
- children: d.cancel
26
- }), /* @__PURE__ */ n(e, {
27
- variant: "primary",
28
- disabled: c,
23
+ children: u.clear
24
+ }), l && /* @__PURE__ */ t(e, { children: [/* @__PURE__ */ t(n, {
29
25
  onClick: a,
30
- children: d.apply
26
+ children: u.cancel
27
+ }), /* @__PURE__ */ t(n, {
28
+ variant: "primary",
29
+ disabled: s,
30
+ onClick: i,
31
+ children: u.apply
31
32
  })] })]
32
33
  });
33
34
  }
34
35
  //#endregion
35
- export { a as EditorActions, i as defaultEditorActionText };
36
+ export { i as EditorActions, r as defaultEditorActionText };
@@ -1,4 +1,4 @@
1
- import { h, ComponentChildren, JSX, Ref } from 'preact';
1
+ import { h, ComponentChildren, JSX, Ref } from '../_vendor/preact/src/index';
2
2
  type ShellProps = {
3
3
  readonly children: ComponentChildren;
4
4
  readonly className?: string;
@@ -1,18 +1,18 @@
1
- import { jsx as e, jsxs as t } from "preact/jsx-runtime";
1
+ import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
2
  //#region src/editor-layout/index.tsx
3
- function n({ children: t, className: n = "" }) {
3
+ function t({ children: t, className: n = "" }) {
4
4
  return /* @__PURE__ */ e("div", {
5
5
  class: `rv-editor-split ${n}`,
6
6
  children: t
7
7
  });
8
8
  }
9
- function r({ children: t, className: n = "", scrollable: r = !1 }) {
9
+ function n({ children: t, className: n = "", scrollable: r = !1 }) {
10
10
  return /* @__PURE__ */ e("section", {
11
11
  class: `rv-editor-pane${r ? " rv-editor-pane--scrollable" : ""} ${n}`,
12
12
  children: t
13
13
  });
14
14
  }
15
- function i({ children: t, className: n = "", label: r, onSelect: i, listRef: a, variant: o = "default", spacing: s = "default" }) {
15
+ function r({ children: t, className: n = "", label: r, onSelect: i, listRef: a, variant: o = "default", spacing: s = "default" }) {
16
16
  return /* @__PURE__ */ e("div", {
17
17
  ref: a,
18
18
  class: `rv-editor-list${o === "plain" ? " rv-editor-list--plain" : ""}${s === "comfortable" ? " rv-editor-list--comfortable" : ""} ${n}`,
@@ -33,7 +33,7 @@ function i({ children: t, className: n = "", label: r, onSelect: i, listRef: a,
33
33
  children: t
34
34
  });
35
35
  }
36
- function a({ value: t, selected: n, icon: r, label: i, description: a, contentClassNames: s, children: c, className: l = "", ...u }) {
36
+ function i({ value: t, selected: n, icon: r, label: i, description: o, contentClassNames: s, children: c, className: l = "", ...u }) {
37
37
  return /* @__PURE__ */ e("button", {
38
38
  ...u,
39
39
  type: "button",
@@ -42,43 +42,43 @@ function a({ value: t, selected: n, icon: r, label: i, description: a, contentCl
42
42
  "aria-selected": n,
43
43
  tabIndex: u.tabIndex ?? (n ? 0 : -1),
44
44
  class: `rv-editor-list__item${n ? " rv-editor-list__item--selected" : ""} ${l}`,
45
- children: i === void 0 ? c : /* @__PURE__ */ e(o, {
45
+ children: i === void 0 ? c : /* @__PURE__ */ e(a, {
46
46
  icon: r,
47
47
  label: i,
48
- description: a,
48
+ description: o,
49
49
  classNames: s
50
50
  })
51
51
  });
52
52
  }
53
- function o({ icon: n, label: r, description: i, classNames: a = {} }) {
54
- return /* @__PURE__ */ t("span", {
55
- class: `rv-editor-list__content${n ? "" : " rv-editor-list__content--text"}`,
56
- children: [n && /* @__PURE__ */ e("span", {
57
- class: `rv-editor-list__icon ${a.icon ?? ""}`,
53
+ function a({ icon: t, label: n, description: r, classNames: i = {} }) {
54
+ return /* @__PURE__ */ e("span", {
55
+ class: `rv-editor-list__content${t ? "" : " rv-editor-list__content--text"}`,
56
+ children: [t && /* @__PURE__ */ e("span", {
57
+ class: `rv-editor-list__icon ${i.icon ?? ""}`,
58
58
  "aria-hidden": "true",
59
- children: n
60
- }), /* @__PURE__ */ t("span", {
61
- class: `rv-editor-list__copy ${a.copy ?? ""}`,
59
+ children: t
60
+ }), /* @__PURE__ */ e("span", {
61
+ class: `rv-editor-list__copy ${i.copy ?? ""}`,
62
62
  children: [/* @__PURE__ */ e("span", {
63
- class: `rv-editor-list__label ${a.label ?? ""}`,
63
+ class: `rv-editor-list__label ${i.label ?? ""}`,
64
+ children: n
65
+ }), r !== void 0 && /* @__PURE__ */ e("span", {
66
+ class: `rv-editor-list__description ${i.description ?? ""}`,
64
67
  children: r
65
- }), i !== void 0 && /* @__PURE__ */ e("span", {
66
- class: `rv-editor-list__description ${a.description ?? ""}`,
67
- children: i
68
68
  })]
69
69
  })]
70
70
  });
71
71
  }
72
- function s({ label: n, children: r, className: i = "", labelClassName: a = "" }) {
73
- return /* @__PURE__ */ t("div", {
74
- class: `rv-editor-list__group ${i}`,
72
+ function o({ label: t, children: n, className: r = "", labelClassName: i = "" }) {
73
+ return /* @__PURE__ */ e("div", {
74
+ class: `rv-editor-list__group ${r}`,
75
75
  role: "group",
76
- "aria-label": n,
76
+ "aria-label": t,
77
77
  children: [/* @__PURE__ */ e("div", {
78
- class: `rv-editor-list__group-label ${a}`,
79
- children: n
80
- }), r]
78
+ class: `rv-editor-list__group-label ${i}`,
79
+ children: t
80
+ }), n]
81
81
  });
82
82
  }
83
83
  //#endregion
84
- export { i as EditorList, s as EditorListGroup, a as EditorListItem, o as EditorListItemContent, r as EditorPane, n as EditorSplitLayout };
84
+ export { r as EditorList, o as EditorListGroup, i as EditorListItem, a as EditorListItemContent, n as EditorPane, t as EditorSplitLayout };
@@ -1,5 +1,5 @@
1
1
  import { RemoveButton } from './buttons/remove-button';
2
- import { h, ComponentChildren, JSX } from 'preact';
2
+ import { h, ComponentChildren, JSX } from './_vendor/preact/src/index';
3
3
  export declare function FieldIcon({ svg, className, }: {
4
4
  svg: string;
5
5
  className?: string;
@@ -1,82 +1,82 @@
1
- import { SvgIcon as e } from "./icons/icon.js";
2
- import { t } from "./_chunks/chevron-right-sxHQMSkq.js";
3
- import { n } from "./_chunks/delete-button-DnpmDNEJ.js";
4
- import { RemoveButton as r } from "./buttons/remove-button.js";
5
- import { DisclosureSummary as i } from "./form-controls/presentation.js";
6
- import { fieldDropIndex as a, reorderFields as o } from "./field-reorder.js";
7
- import { useFieldDropTarget as s, useFieldReorder as c } from "./field-reorder.hook.js";
8
- import { h as l } from "preact";
9
- import { useRef as u } from "preact/hooks";
10
- import { jsx as d, jsxs as f } from "preact/jsx-runtime";
1
+ import { c as e } from "./_chunks/preact.module-BBM36DnO.js";
2
+ import { t } from "./_chunks/hooks.module-CG3gN83z.js";
3
+ import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
4
+ import { SvgIcon as r } from "./icons/icon.js";
5
+ import { t as i } from "./_chunks/chevron-right-sxHQMSkq.js";
6
+ import { n as a } from "./_chunks/delete-button-Bblyah10.js";
7
+ import { RemoveButton as o } from "./buttons/remove-button.js";
8
+ import { DisclosureSummary as s } from "./form-controls/presentation.js";
9
+ import { fieldDropIndex as c, reorderFields as l } from "./field-reorder.js";
10
+ import { useFieldDropTarget as u, useFieldReorder as d } from "./field-reorder.hook.js";
11
11
  //#region src/field-configurator.tsx
12
- function p({ svg: t, className: n = "" }) {
13
- return /* @__PURE__ */ d(e, {
14
- svg: t,
15
- className: `rv-configurator-icon ${n}`
12
+ function f({ svg: e, className: t = "" }) {
13
+ return /* @__PURE__ */ n(r, {
14
+ svg: e,
15
+ className: `rv-configurator-icon ${t}`
16
16
  });
17
17
  }
18
- function m({ children: e, className: n = "", ...r }) {
19
- return /* @__PURE__ */ d(i, {
18
+ function p({ children: e, className: t = "", ...r }) {
19
+ return /* @__PURE__ */ n(s, {
20
20
  ...r,
21
- className: `rv-configurator-summary ${n}`,
21
+ className: `rv-configurator-summary ${t}`,
22
22
  iconPosition: "after",
23
- icon: /* @__PURE__ */ d(p, { svg: t }),
23
+ icon: /* @__PURE__ */ n(f, { svg: i }),
24
24
  children: e
25
25
  });
26
26
  }
27
- function h({ title: e, count: t, children: n, className: r = "" }) {
28
- return /* @__PURE__ */ f("details", {
29
- class: `rv-configurator-available-fields ${r}`,
27
+ function m({ title: e, count: t, children: r, className: i = "" }) {
28
+ return /* @__PURE__ */ n("details", {
29
+ class: `rv-configurator-available-fields ${i}`,
30
30
  open: !0,
31
- children: [/* @__PURE__ */ f(m, { children: [e, t != null && /* @__PURE__ */ d("span", {
31
+ children: [/* @__PURE__ */ n(p, { children: [e, t != null && /* @__PURE__ */ n("span", {
32
32
  class: "rv-configurator-field-count",
33
33
  children: t
34
- })] }), /* @__PURE__ */ d("div", {
34
+ })] }), /* @__PURE__ */ n("div", {
35
35
  class: "rv-configurator-library-content",
36
- children: n
36
+ children: r
37
37
  })]
38
38
  });
39
39
  }
40
- function g({ children: e, actions: t, className: n = "" }) {
41
- return /* @__PURE__ */ f("div", {
42
- class: `rv-configurator-zone-heading ${n}`,
43
- children: [/* @__PURE__ */ d("span", {
40
+ function h({ children: e, actions: t, className: r = "" }) {
41
+ return /* @__PURE__ */ n("div", {
42
+ class: `rv-configurator-zone-heading ${r}`,
43
+ children: [/* @__PURE__ */ n("span", {
44
44
  class: "rv-configurator-zone-label",
45
45
  children: e
46
- }), t && /* @__PURE__ */ d("span", {
46
+ }), t && /* @__PURE__ */ n("span", {
47
47
  class: "rv-configurator-zone-actions",
48
48
  children: t
49
49
  })]
50
50
  });
51
51
  }
52
- function _({ heading: e, actions: t, headingClassName: n, className: r = "", children: i, ...a }) {
53
- return /* @__PURE__ */ f("section", {
54
- ...a,
55
- className: `rv-configurator-zone ${r}`,
56
- children: [/* @__PURE__ */ d(g, {
57
- className: n,
52
+ function g({ heading: e, actions: t, headingClassName: r, className: i = "", children: a, ...o }) {
53
+ return /* @__PURE__ */ n("section", {
54
+ ...o,
55
+ className: `rv-configurator-zone ${i}`,
56
+ children: [/* @__PURE__ */ n(h, {
57
+ className: r,
58
58
  actions: t,
59
59
  children: e
60
- }), i]
60
+ }), a]
61
61
  });
62
62
  }
63
- function v({ empty: e, placeholder: t, className: n = "", children: r, ...i }) {
64
- return /* @__PURE__ */ d("ul", {
65
- ...i,
66
- className: `rv-configurator-field-list ${e ? "empty" : ""} ${n}`,
67
- children: e ? /* @__PURE__ */ d("li", {
63
+ function _({ empty: e, placeholder: t, className: r = "", children: i, ...a }) {
64
+ return /* @__PURE__ */ n("ul", {
65
+ ...a,
66
+ className: `rv-configurator-field-list ${e ? "empty" : ""} ${r}`,
67
+ children: e ? /* @__PURE__ */ n("li", {
68
68
  className: "rv-configurator-empty-zone empty",
69
69
  children: t
70
- }) : r
70
+ }) : i
71
71
  });
72
72
  }
73
- function y({ className: e = "", children: t, indicator: n, dropPosition: r, ...i }) {
74
- return /* @__PURE__ */ f("li", {
75
- ...i,
73
+ function v({ className: e = "", children: t, indicator: r, dropPosition: i, ...a }) {
74
+ return /* @__PURE__ */ n("li", {
75
+ ...a,
76
76
  className: `rv-configurator-field rv-configurator-field-row ${e}`,
77
77
  children: [
78
- n ?? (r && /* @__PURE__ */ d(O, { position: r })),
79
- /* @__PURE__ */ d("span", {
78
+ r ?? (i && /* @__PURE__ */ n(D, { position: i })),
79
+ /* @__PURE__ */ n("span", {
80
80
  className: "rv-configurator-drag-handle",
81
81
  "aria-hidden": "true"
82
82
  }),
@@ -84,87 +84,87 @@ function y({ className: e = "", children: t, indicator: n, dropPosition: r, ...i
84
84
  ]
85
85
  });
86
86
  }
87
- function b({ icon: e, children: t, className: n = "" }) {
88
- return /* @__PURE__ */ f("span", {
89
- class: `rv-configurator-field-content ${n}`,
90
- children: [e, /* @__PURE__ */ d("span", {
87
+ function y({ icon: e, children: t, className: r = "" }) {
88
+ return /* @__PURE__ */ n("span", {
89
+ class: `rv-configurator-field-content ${r}`,
90
+ children: [e, /* @__PURE__ */ n("span", {
91
91
  class: "rv-configurator-field-caption",
92
92
  children: t
93
93
  })]
94
94
  });
95
95
  }
96
- function x({ as: e = "div", children: t, className: n = "", ...r }) {
97
- return l(e, {
98
- ...r,
99
- class: `rv-configurator-field ${n}`
100
- }, t);
96
+ function b({ as: t = "div", children: n, className: r = "", ...i }) {
97
+ return e(t, {
98
+ ...i,
99
+ class: `rv-configurator-field ${r}`
100
+ }, n);
101
101
  }
102
- function S({ children: e, ...t }) {
103
- return /* @__PURE__ */ d("div", {
102
+ function x({ children: e, ...t }) {
103
+ return /* @__PURE__ */ n("div", {
104
104
  ...t,
105
105
  className: `rv-configurator-library-list ${t.className ?? ""}`,
106
106
  children: e
107
107
  });
108
108
  }
109
- function C({ label: e, icon: t, actions: n, contentClassName: r, ...i }) {
110
- return /* @__PURE__ */ f(y, {
111
- ...i,
112
- children: [/* @__PURE__ */ d(b, {
113
- className: r,
109
+ function S({ label: e, icon: t, actions: r, contentClassName: i, ...a }) {
110
+ return /* @__PURE__ */ n(v, {
111
+ ...a,
112
+ children: [/* @__PURE__ */ n(y, {
113
+ className: i,
114
114
  icon: t,
115
115
  children: e
116
- }), n]
116
+ }), r]
117
117
  });
118
118
  }
119
- function w({ children: e, className: t = "", ...n }) {
120
- return /* @__PURE__ */ d("div", {
121
- ...n,
119
+ function C({ children: e, className: t = "", ...r }) {
120
+ return /* @__PURE__ */ n("div", {
121
+ ...r,
122
122
  className: `rv-configurator-field-actions ${t}`,
123
123
  children: e
124
124
  });
125
125
  }
126
- function T({ children: e, active: t = !1, label: n, className: r = "" }) {
127
- return /* @__PURE__ */ d("span", {
128
- className: `rv-configurator-status-badge ${r}`,
126
+ function w({ children: e, active: t = !1, label: r, className: i = "" }) {
127
+ return /* @__PURE__ */ n("span", {
128
+ className: `rv-configurator-status-badge ${i}`,
129
129
  "data-active": t ? "true" : void 0,
130
- title: n,
131
- "aria-label": n,
130
+ title: r,
131
+ "aria-label": r,
132
132
  children: e
133
133
  });
134
134
  }
135
- function E(e) {
136
- return /* @__PURE__ */ d(r, {
135
+ function T(e) {
136
+ return /* @__PURE__ */ n(o, {
137
137
  ...e,
138
138
  className: `rv-configurator-remove-button ${e.className ?? ""}`
139
139
  });
140
140
  }
141
- function D() {
142
- return /* @__PURE__ */ d(e, { svg: n });
141
+ function E() {
142
+ return /* @__PURE__ */ n(r, { svg: a });
143
143
  }
144
- function O({ position: e, index: t, className: n = "" }) {
145
- return /* @__PURE__ */ d("span", {
146
- className: `rv-configurator-drop-indicator ${n}`,
144
+ function D({ position: e, index: t, className: r = "" }) {
145
+ return /* @__PURE__ */ n("span", {
146
+ className: `rv-configurator-drop-indicator ${r}`,
147
147
  "data-position": e,
148
148
  "data-drop-index": t,
149
149
  "aria-hidden": "true"
150
150
  });
151
151
  }
152
- function k({ title: e, description: t, defaultOpen: n = !1, children: r, className: i = "", summaryClassName: a = "", contentClassName: o = "", descriptionClassName: s = "", renderRoot: c }) {
153
- let l = u(n), p = {
154
- class: `rv-collapsible-section rv-configurator-section ${i}`.trim(),
155
- open: l.current,
156
- children: [/* @__PURE__ */ d(m, {
157
- className: a,
152
+ function O({ title: e, description: r, defaultOpen: i = !1, children: a, className: o = "", summaryClassName: s = "", contentClassName: c = "", descriptionClassName: l = "", renderRoot: u }) {
153
+ let d = t(i), f = {
154
+ class: `rv-collapsible-section rv-configurator-section ${o}`.trim(),
155
+ open: d.current,
156
+ children: [/* @__PURE__ */ n(p, {
157
+ className: s,
158
158
  children: e
159
- }), /* @__PURE__ */ f("div", {
160
- class: `rv-collapsible-section__content ${o}`.trim(),
161
- children: [t && /* @__PURE__ */ d("p", {
162
- class: `rv-collapsible-section__description ${s}`.trim(),
163
- children: t
164
- }), r]
159
+ }), /* @__PURE__ */ n("div", {
160
+ class: `rv-collapsible-section__content ${c}`.trim(),
161
+ children: [r && /* @__PURE__ */ n("p", {
162
+ class: `rv-collapsible-section__description ${l}`.trim(),
163
+ children: r
164
+ }), a]
165
165
  })]
166
166
  };
167
- return c ? c(p) : /* @__PURE__ */ d("details", { ...p });
167
+ return u ? u(f) : /* @__PURE__ */ n("details", { ...f });
168
168
  }
169
169
  //#endregion
170
- export { k as CollapsibleSection, w as FieldActions, b as FieldContent, O as FieldDropIndicator, _ as FieldGroup, g as FieldGroupHeading, p as FieldIcon, x as FieldItem, h as FieldLibrary, S as FieldLibraryList, v as FieldList, E as FieldRemoveButton, D as FieldRemoveIcon, y as FieldRow, T as FieldStatusBadge, m as FieldSummary, C as SelectedField, a as fieldDropIndex, o as reorderFields, s as useFieldDropTarget, c as useFieldReorder };
170
+ export { O as CollapsibleSection, C as FieldActions, y as FieldContent, D as FieldDropIndicator, g as FieldGroup, h as FieldGroupHeading, f as FieldIcon, b as FieldItem, m as FieldLibrary, x as FieldLibraryList, _ as FieldList, T as FieldRemoveButton, E as FieldRemoveIcon, v as FieldRow, w as FieldStatusBadge, p as FieldSummary, S as SelectedField, c as fieldDropIndex, l as reorderFields, u as useFieldDropTarget, d as useFieldReorder };
@@ -1,29 +1,29 @@
1
- import { fieldDropIndex as e, fieldListDropIndex as t, reorderFields as n } from "./field-reorder.js";
2
- import { useLayoutEffect as r, useRef as i, useState as a } from "preact/hooks";
1
+ import { i as e, r as t, t as n } from "./_chunks/hooks.module-CG3gN83z.js";
2
+ import { fieldDropIndex as r, fieldListDropIndex as i, reorderFields as a } from "./field-reorder.js";
3
3
  //#region src/field-reorder.hook.ts
4
- function o(n, o) {
5
- let s = i({
6
- count: n,
4
+ function o(a, o) {
5
+ let s = n({
6
+ count: a,
7
7
  ...o
8
8
  });
9
9
  s.current = {
10
- count: n,
10
+ count: a,
11
11
  ...o
12
12
  };
13
- let c = i(null), l = i(null), [u, d] = a(null), f = () => {
13
+ let c = n(null), l = n(null), [u, d] = e(null), f = () => {
14
14
  c.current = null, l.current = null, d(null);
15
15
  };
16
- r(() => {
16
+ t(() => {
17
17
  (o.enabled === !1 || o.active === !1) && f();
18
18
  }, [o.enabled, o.active]);
19
- let p = (e) => s.current.enabled !== !1 && (s.current.canDrop?.(e) ?? !0), m = (n, r) => {
20
- let i = n.currentTarget;
21
- if (r !== void 0) {
22
- let t = i.getBoundingClientRect();
23
- return e(n.clientY, t.top, t.height, r, l.current);
19
+ let p = (e) => s.current.enabled !== !1 && (s.current.canDrop?.(e) ?? !0), m = (e, t) => {
20
+ let n = e.currentTarget;
21
+ if (t !== void 0) {
22
+ let i = n.getBoundingClientRect();
23
+ return r(e.clientY, i.top, i.height, t, l.current);
24
24
  }
25
- let a = Array.from(i.querySelectorAll(":scope > .rv-configurator-field-row, :scope > .rv-configurator-field-list > .rv-configurator-field-row"));
26
- return t(n.clientY, a.map((e) => e.getBoundingClientRect()), l.current, s.current.count);
25
+ let a = Array.from(n.querySelectorAll(":scope > .rv-configurator-field-row, :scope > .rv-configurator-field-list > .rv-configurator-field-row"));
26
+ return i(e.clientY, a.map((e) => e.getBoundingClientRect()), l.current, s.current.count);
27
27
  }, h = (e, t, n) => {
28
28
  p(e) ? (e.preventDefault(), e.stopPropagation(), l.current = n ?? m(e, t), d(l.current), e.dataTransfer && (e.dataTransfer.dropEffect = "move"), s.current.onDragOver?.(e)) : (l.current = null, d(null));
29
29
  }, g = (e, t, n) => {
@@ -37,7 +37,7 @@ function o(n, o) {
37
37
  }, _ = (e) => {
38
38
  if (u !== null && (c.current === null || u !== c.current && u !== c.current + 1)) {
39
39
  if (u === e) return "before";
40
- if (u === n && e === n - 1) return "after";
40
+ if (u === a && e === a - 1) return "after";
41
41
  }
42
42
  };
43
43
  return {
@@ -67,41 +67,41 @@ function o(n, o) {
67
67
  }
68
68
  };
69
69
  }
70
- function s(e, t, s = !0, c = {}) {
71
- let l = i({
72
- items: e,
73
- onChange: t,
70
+ function s(r, i, s = !0, c = {}) {
71
+ let l = n({
72
+ items: r,
73
+ onChange: i,
74
74
  enabled: s,
75
75
  ...c
76
76
  });
77
77
  l.current = {
78
- items: e,
79
- onChange: t,
78
+ items: r,
79
+ onChange: i,
80
80
  enabled: s,
81
81
  ...c
82
82
  };
83
- let [u, d] = a(null), f = i(null), p = () => {
83
+ let [u, d] = e(null), f = n(null), p = () => {
84
84
  let e = f.current, t = l.current;
85
85
  return !e || !t.enabled || e.items.length !== t.items.length || e.items.some((e, n) => e !== t.items[n]) ? (f.current = null, null) : e;
86
- }, m = o(e.length, {
86
+ }, m = o(r.length, {
87
87
  enabled: s,
88
88
  canDrop: () => !!p(),
89
89
  onDrop(e) {
90
90
  let t = p();
91
91
  if (!t) return;
92
92
  f.current = null, d(null);
93
- let r = n(l.current.items, t.from, e);
94
- r !== l.current.items && (l.current.onChange(r), l.current.onMove?.(t.items[t.from]));
93
+ let n = a(l.current.items, t.from, e);
94
+ n !== l.current.items && (l.current.onChange(n), l.current.onMove?.(t.items[t.from]));
95
95
  }
96
96
  });
97
- r(() => {
97
+ t(() => {
98
98
  p() || (m.clear(), d(null));
99
- }, [e, s]);
99
+ }, [r, s]);
100
100
  let h = (e, t) => {
101
- let r = l.current;
102
- if (!r.enabled) return;
103
- let i = n(r.items, e, t);
104
- i !== r.items && (r.onChange(i), r.onMove?.(r.items[e]));
101
+ let n = l.current;
102
+ if (!n.enabled) return;
103
+ let r = a(n.items, e, t);
104
+ r !== n.items && (n.onChange(r), n.onMove?.(n.items[e]));
105
105
  };
106
106
  return {
107
107
  move: h,
@@ -1,8 +1,8 @@
1
- import { renderRangeSlider as e } from "./component.js";
2
- import { h as t } from "preact";
1
+ import { c as e } from "../../../_chunks/preact.module-BBM36DnO.js";
2
+ import { renderRangeSlider as t } from "./component.js";
3
3
  //#region src/filter/filters/slider/preact.tsx
4
4
  function n(n) {
5
- return e(t, n);
5
+ return t(e, n);
6
6
  }
7
7
  //#endregion
8
8
  export { n as PreactRangeSlider };
@@ -1,4 +1,4 @@
1
- import { h } from 'preact';
1
+ import { h } from '../../../_vendor/preact/src/index';
2
2
  export type SingleValueSliderProps = {
3
3
  min: number;
4
4
  max: number;