@revolist/ui 4.0.2-rc → 4.0.4-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 (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +345 -263
  3. package/_chunks/{calendar-CpaUK7w1.js → calendar-xpZ0v3xf.js} +39 -29
  4. package/_chunks/{chart-frame-BC99KjGa.js → chart-frame-Cmc7xU1i.js} +16 -13
  5. package/_chunks/{choice-chips-Cs4D-3nH.js → choice-chips-CHQTUdLs.js} +10 -10
  6. package/_chunks/clock-BOhPNlW3.js +4 -0
  7. package/_chunks/{color-palette-BBMFmUNA.js → color-palette-D8vyPfld.js} +1 -1
  8. package/_chunks/{color-picker-D90Jg-M8.js → color-picker-CudqPYZo.js} +10 -10
  9. package/_chunks/{component-YDcfoOLz.js → component-C_T2VN5u.js} +182 -178
  10. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
  11. package/_chunks/control-AHKXD5Eu.js +93 -0
  12. package/_chunks/{control-tooltip-ztgmsG7H.js → control-tooltip-uscKfAnV.js} +15 -15
  13. package/_chunks/{controls-DIum-E66.js → controls-DsNi8V8I.js} +144 -129
  14. package/_chunks/{date-control-BJSzu79z.js → date-control-DrVFX13g.js} +1 -1
  15. package/_chunks/{date-time-BxPJusp9.js → date-time-qIhp5vaX.js} +143 -145
  16. package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
  17. package/_chunks/{dialog.parts-DBqo3Qwb.js → dialog.parts-CKGkC5zP.js} +20 -20
  18. package/_chunks/{duration-87U2EoMS.js → duration-CL68Em0o.js} +16 -15
  19. package/_chunks/{editor-popup-D3JdS8l3.js → editor-popup-WDdtVDNA.js} +5 -5
  20. package/_chunks/field-context-D57PnBbH.js +5 -0
  21. package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount--RTLIqE-.js} +1 -1
  22. package/_chunks/history-controls-B3u3INEK.js +27 -0
  23. package/_chunks/mount-DQ1cpppK.js +257 -0
  24. package/_chunks/native-control-C_yok8_-.js +605 -0
  25. package/_chunks/{number-input-BeIadZuL.js → number-input-BKwA5FnM.js} +2 -2
  26. package/_chunks/{picker-DpP7iQLA.js → picker-h1P5RUgp.js} +2 -2
  27. package/_chunks/popup-CT2uD3go.js +367 -0
  28. package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-DZgmaic0.js} +1 -1
  29. package/_chunks/render-m5eMMwFR.js +83 -0
  30. package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-CSlqAGHw.js} +1 -1
  31. package/_chunks/request-trail-DSlFix6i.js +618 -0
  32. package/_chunks/rich-text-CH7gIqOS.js +636 -0
  33. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  34. package/_form.scss +1 -1
  35. package/ai/_chat.scss +195 -0
  36. package/ai/_style.scss +105 -34
  37. package/ai/chat.d.ts +63 -0
  38. package/ai/components.d.ts +19 -3
  39. package/ai/index.d.ts +2 -0
  40. package/ai/index.js +3 -3
  41. package/ai/mount.d.ts +30 -1
  42. package/ai/prompt-history.d.ts +13 -0
  43. package/ai/transcript.d.ts +25 -0
  44. package/ai/translations.d.ts +1 -1
  45. package/angular/angular.js +0 -3
  46. package/assignee/index.js +34 -35
  47. package/buttons/delete-button.d.ts +2 -1
  48. package/buttons/delete-button.js +1 -1
  49. package/buttons/remove-button.js +1 -1
  50. package/buttons/svg-button.d.ts +1 -0
  51. package/buttons/svg-button.js +5 -5
  52. package/calendar/_calendar.scss +7 -2
  53. package/calendar/calendar.js +1 -1
  54. package/calendar/index.js +2 -2
  55. package/choice-chips/index.js +1 -1
  56. package/color-palette/color-palette.js +1 -1
  57. package/color-palette/color-picker.js +2 -2
  58. package/component-catalog.d.ts +16 -5
  59. package/control-attributes.js +7 -7
  60. package/controls.d.ts +8 -6
  61. package/controls.js +3 -3
  62. package/core/editor-popup.js +1 -1
  63. package/date-time/index.js +1 -1
  64. package/date-time/style.scss +4 -4
  65. package/dialog/dialog.dom.js +8 -8
  66. package/dialog/dialog.parts.js +1 -1
  67. package/distribution-chart/area-chart.js +1 -1
  68. package/distribution-chart/bar-chart.d.ts +5 -2
  69. package/distribution-chart/bar-chart.js +7 -3
  70. package/distribution-chart/chart-frame.d.ts +2 -1
  71. package/distribution-chart/line-chart.js +1 -1
  72. package/dropdown/content.d.ts +2 -1
  73. package/dropdown/content.js +1 -142
  74. package/dropdown/control.d.ts +14 -0
  75. package/dropdown/control.js +1 -0
  76. package/dropdown/control.view.d.ts +6 -0
  77. package/dropdown/dropdown.types.d.ts +4 -0
  78. package/dropdown/editor-dropdown.style.scss +37 -9
  79. package/dropdown/index.d.ts +1 -1
  80. package/dropdown/index.js +3 -4
  81. package/dropdown/lookup-field.js +1 -1
  82. package/dropdown/popup.js +1 -141
  83. package/duration/index.js +1 -1
  84. package/duration/style.scss +1 -1
  85. package/editor-actions.js +1 -1
  86. package/field-configurator.js +6 -6
  87. package/fieldset.d.ts +3 -0
  88. package/filter/filters/slider/single.js +1 -1
  89. package/filter-badge.js +1 -1
  90. package/filter-controls.js +7 -7
  91. package/form-controls/field-context.d.ts +5 -0
  92. package/form-controls/index.js +7 -12
  93. package/form-controls/index.view.d.ts +2 -4
  94. package/form-controls/presentation.js +51 -43
  95. package/formatting/index.js +25 -21
  96. package/framework.js +215 -207
  97. package/history-controls.d.ts +14 -0
  98. package/history-controls.js +1 -0
  99. package/masked-input/index.js +1 -1
  100. package/native-control.d.ts +6 -4
  101. package/native-control.js +3 -26
  102. package/native-styles.css +1 -1
  103. package/native.js +31 -30
  104. package/number-input/index.js +1 -1
  105. package/package.json +53 -14
  106. package/pagination.d.ts +3 -0
  107. package/pagination.js +43 -33
  108. package/pdf-viewer/index.js +1 -1
  109. package/pdf-viewer/style.scss +3 -4
  110. package/preact.d.ts +2 -0
  111. package/preact.js +62 -62
  112. package/rating-choice.js +1 -1
  113. package/react-control.d.ts +0 -1
  114. package/react-control.js +2 -2
  115. package/react.d.ts +13 -3
  116. package/react.js +71 -88
  117. package/reorder-list.js +1 -1
  118. package/resource-picker/resource-picker-popup.js +1 -1
  119. package/resource-picker/resource-picker.js +4 -4
  120. package/resource-picker/resource-picker.scss +6 -3
  121. package/rich-text/engine.d.ts +16 -19
  122. package/rich-text/index.d.ts +7 -7
  123. package/rich-text/index.js +1 -1
  124. package/rich-text/model.d.ts +4 -3
  125. package/rich-text/render-model.d.ts +4 -5
  126. package/rich-text/style.scss +3 -12
  127. package/rich-text/toolbar.d.ts +6 -6
  128. package/rich-text/translations.d.ts +3 -15
  129. package/select.d.ts +20 -0
  130. package/select.js +1 -0
  131. package/status-feedback/exit-snapshot.js +4 -4
  132. package/status-feedback/index.js +2 -2
  133. package/status-feedback/popover.js +10 -10
  134. package/status-feedback/render.js +3 -44
  135. package/status-feedback/status-feedback.scss +7 -0
  136. package/status-feedback/types.d.ts +4 -0
  137. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  138. package/styles/_compositions.scss +3 -1
  139. package/styles/_control.scss +12 -4
  140. package/styles/_primitives.scss +9 -8
  141. package/styles.css +1 -1
  142. package/surfaces.js +45 -45
  143. package/svelte/UiComponent.server.js +1 -48
  144. package/svelte/UiComponent.svelte +0 -21
  145. package/svelte.js +33 -68
  146. package/time-grid.js +1 -1
  147. package/timeline-track/component.d.ts +5 -1
  148. package/timeline-track/index.js +71 -54
  149. package/timeline-track/model.d.ts +9 -0
  150. package/timeline-track/model.js +10 -1
  151. package/ui.css +1 -1
  152. package/vue.d.ts +24 -5
  153. package/vue.js +140 -164
  154. package/_chunks/compat.module-DDB2pm9O.js +0 -229
  155. package/_chunks/dropdown-voWqmwAe.js +0 -357
  156. package/_chunks/mount-DZe_6VtR.js +0 -90
  157. package/_chunks/request-trail-IdNiFvKH.js +0 -347
  158. package/_chunks/rich-text-BzI1DyfF.js +0 -477
  159. package/react-native-select.d.ts +0 -6
  160. package/rich-text/syntax.d.ts +0 -2
  161. package/vue-native-select.d.ts +0 -9
@@ -0,0 +1,367 @@
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 { c as o, i as s, r as c, t as l } from "./hooks.module-CG3gN83z.js";
3
+ import { t as u } from "./jsxRuntime.module-F6UFnpT-.js";
4
+ import { inheritUiMotion as d } from "../core/motion.js";
5
+ import { hideTopLayerPopup as f, showTopLayerPopup as p } from "../core/top-layer-popup.js";
6
+ //#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/compat/dist/compat.module.js
7
+ function m(e, t) {
8
+ for (var n in t) e[n] = t[n];
9
+ return e;
10
+ }
11
+ function h(e, t) {
12
+ for (var n in e) if (n !== "__source" && !(n in t)) return !0;
13
+ for (var r in t) if (r !== "__source" && e[r] !== t[r]) return !0;
14
+ return !1;
15
+ }
16
+ function g(e, t) {
17
+ this.props = e, this.context = t;
18
+ }
19
+ (g.prototype = new a()).isPureReactComponent = !0, g.prototype.shouldComponentUpdate = function(e, t) {
20
+ return h(this.props, e) || h(this.state, t);
21
+ };
22
+ var _ = n.__b;
23
+ n.__b = function(e) {
24
+ e.type && e.type.__f && e.ref && (e.props.ref = e.ref, e.ref = null), _ && _(e);
25
+ };
26
+ var v = typeof Symbol < "u" && Symbol.for && Symbol.for("react.forward_ref") || 3911;
27
+ function y(e) {
28
+ function t(t) {
29
+ var n = m({}, t);
30
+ return delete n.ref, e(n, t.ref || null);
31
+ }
32
+ return t.$$typeof = v, t.render = e, t.prototype.isReactComponent = t.__f = !0, t.displayName = "ForwardRef(" + (e.displayName || e.name) + ")", t;
33
+ }
34
+ var b = n.__e;
35
+ n.__e = function(e, t, n, r) {
36
+ if (e.then) {
37
+ 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);
38
+ }
39
+ b(e, t, n, r);
40
+ };
41
+ var x = n.unmount;
42
+ function S(e, t, n) {
43
+ return e && (e.__c && e.__c.__H && (e.__c.__H.__.forEach(function(e) {
44
+ typeof e.__c == "function" && e.__c();
45
+ }), e.__c.__H = null), (e = m({}, 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) {
46
+ return S(e, t, n);
47
+ })), e;
48
+ }
49
+ function C(e, t, n) {
50
+ return e && n && (e.__v = null, e.__k = e.__k && e.__k.map(function(e) {
51
+ return C(e, t, n);
52
+ }), e.__c && e.__c.__P === t && (e.__e && n.appendChild(e.__e), e.__c.__e = !0, e.__c.__P = n)), e;
53
+ }
54
+ function w() {
55
+ this.__u = 0, this.o = null, this.__b = null;
56
+ }
57
+ function T(e) {
58
+ var t = e.__ && e.__.__c;
59
+ return t && t.__a && t.__a(e);
60
+ }
61
+ function E() {
62
+ this.i = null, this.l = null;
63
+ }
64
+ n.unmount = function(e) {
65
+ var t = e.__c;
66
+ t && (t.__z = !0), t && t.__R && t.__R(), t && 32 & e.__u && (e.type = null), x && x(e);
67
+ }, (w.prototype = new a()).__c = function(e, t) {
68
+ var n = t.__c, r = this;
69
+ r.o ??= [], r.o.push(n);
70
+ var i = T(r.__v), a = !1, o = function() {
71
+ a || r.__z || (a = !0, n.__R = null, i ? i(c) : c());
72
+ };
73
+ n.__R = o;
74
+ var s = n.__P;
75
+ n.__P = null;
76
+ var c = function() {
77
+ if (!--r.__u) {
78
+ if (r.state.__a) {
79
+ var e = r.state.__a;
80
+ r.__v.__k[0] = C(e, e.__c.__P, e.__c.__O);
81
+ }
82
+ var t;
83
+ for (r.setState({ __a: r.__b = null }); t = r.o.pop();) t.__P = s, t.forceUpdate();
84
+ }
85
+ };
86
+ r.__u++ || 32 & t.__u || r.setState({ __a: r.__b = r.__v.__k[0] }), e.then(o, o);
87
+ }, w.prototype.componentWillUnmount = function() {
88
+ this.o = [];
89
+ }, w.prototype.render = function(n, r) {
90
+ if (this.__b) {
91
+ if (this.__v.__k) {
92
+ var i = document.createElement("div"), a = this.__v.__k[0].__c;
93
+ this.__v.__k[0] = S(this.__b, i, a.__O = a.__P);
94
+ }
95
+ this.__b = null;
96
+ }
97
+ var o = r.__a && e(t, null, n.fallback);
98
+ return o && (o.__u &= -33), [e(t, null, r.__a ? null : n.children), o];
99
+ };
100
+ var D = function(e, t, n) {
101
+ 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;) {
102
+ for (; n.length > 3;) n.pop()();
103
+ if (n[1] < n[0]) break;
104
+ e.i = n = n[2];
105
+ }
106
+ };
107
+ function O(e) {
108
+ return this.getChildContext = function() {
109
+ return e.context;
110
+ }, e.children;
111
+ }
112
+ function k(t) {
113
+ var n = this, r = t.h;
114
+ if (n.componentWillUnmount = function() {
115
+ i(null, n.v), n.v = null, n.h = null;
116
+ }, n.h && n.h !== r && n.componentWillUnmount(), !n.v) {
117
+ for (var a = n.__v; a !== null && !a.__m && a.__ !== null;) a = a.__;
118
+ n.h = r, n.v = {
119
+ nodeType: 1,
120
+ parentNode: r,
121
+ childNodes: [],
122
+ __k: { __m: a.__m },
123
+ contains: function() {
124
+ return !0;
125
+ },
126
+ namespaceURI: r.namespaceURI,
127
+ insertBefore: function(e, t) {
128
+ this.childNodes.push(e), n.h.insertBefore(e, t);
129
+ },
130
+ removeChild: function(e) {
131
+ this.childNodes.splice(this.childNodes.indexOf(e) >>> 1, 1), n.h.removeChild(e);
132
+ }
133
+ };
134
+ }
135
+ i(e(O, { context: n.context }, t.__v), n.v);
136
+ }
137
+ function A(t, n) {
138
+ var r = e(k, {
139
+ __v: t,
140
+ h: n
141
+ });
142
+ return r.containerInfo = n, r;
143
+ }
144
+ (E.prototype = new a()).__a = function(e) {
145
+ var t = this, n = T(t.__v), r = t.l.get(e);
146
+ return r[0]++, function(i) {
147
+ var a = function() {
148
+ t.props.revealOrder ? (r.push(i), D(t, e, r)) : i();
149
+ };
150
+ n ? n(a) : a();
151
+ };
152
+ }, E.prototype.render = function(e) {
153
+ this.i = null, this.l = /* @__PURE__ */ new Map();
154
+ var t = r(e.children);
155
+ e.revealOrder && e.revealOrder[0] === "b" && t.reverse();
156
+ for (var n = t.length; n--;) this.l.set(t[n], this.i = [
157
+ 1,
158
+ 0,
159
+ this.i
160
+ ]);
161
+ return e.children;
162
+ }, E.prototype.componentDidUpdate = E.prototype.componentDidMount = function() {
163
+ var e = this;
164
+ this.l.forEach(function(t, n) {
165
+ D(e, n, t);
166
+ });
167
+ };
168
+ var j = typeof Symbol < "u" && Symbol.for && Symbol.for("react.element") || 60103, M = /^(?: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]/, N = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, P = /[A-Z0-9]/g, F = typeof document < "u", I = function(e) {
169
+ return (typeof Symbol < "u" && typeof Symbol() == "symbol" ? /fil|che|rad/ : /fil|che|ra/).test(e);
170
+ };
171
+ a.prototype.isReactComponent = !0, [
172
+ "componentWillMount",
173
+ "componentWillReceiveProps",
174
+ "componentWillUpdate"
175
+ ].forEach(function(e) {
176
+ Object.defineProperty(a.prototype, e, {
177
+ configurable: !0,
178
+ get: function() {
179
+ return this["UNSAFE_" + e];
180
+ },
181
+ set: function(t) {
182
+ Object.defineProperty(this, e, {
183
+ configurable: !0,
184
+ writable: !0,
185
+ value: t
186
+ });
187
+ }
188
+ });
189
+ });
190
+ var L = n.event;
191
+ n.event = function(e) {
192
+ return L && (e = L(e)), e.persist = function() {}, e.isPropagationStopped = function() {
193
+ return this.cancelBubble;
194
+ }, e.isDefaultPrevented = function() {
195
+ return this.defaultPrevented;
196
+ }, e.nativeEvent = e;
197
+ };
198
+ var R = {
199
+ configurable: !0,
200
+ get: function() {
201
+ return this.class;
202
+ }
203
+ }, z = n.vnode;
204
+ n.vnode = function(e) {
205
+ typeof e.type == "string" && function(e) {
206
+ var t = e.props, n = e.type, i = {}, a = n.indexOf("-") == -1;
207
+ for (var o in t) {
208
+ var s = t[o];
209
+ if (!(o === "value" && "defaultValue" in t && s == null || F && o === "children" && n === "noscript" || o === "class" || o === "className")) {
210
+ var c = o.toLowerCase();
211
+ 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" || I(t.type) ? c === "onfocus" ? o = "onfocusin" : c === "onblur" ? o = "onfocusout" : N.test(o) && (o = c) : c = o = "oninput" : a && M.test(o) ? o = o.replace(P, "-$&").toLowerCase() : s === null && (s = void 0), c === "oninput" && i[o = c] && (o = "oninputCapture"), i[o] = s;
212
+ }
213
+ }
214
+ n == "select" && (i.multiple && Array.isArray(i.value) && (i.value = r(t.children).forEach(function(e) {
215
+ e.props.selected = i.value.indexOf(e.props.value) != -1;
216
+ })), i.defaultValue != null && (i.value = r(t.children).forEach(function(e) {
217
+ e.props.selected = i.multiple ? i.defaultValue.indexOf(e.props.value) != -1 : i.defaultValue == e.props.value;
218
+ }))), t.class && !t.className ? (i.class = t.class, Object.defineProperty(i, "className", R)) : t.className && (i.class = i.className = t.className), e.props = i;
219
+ }(e), e.$$typeof = j, z && z(e);
220
+ };
221
+ var B = n.__r;
222
+ n.__r = function(e) {
223
+ B && B(e), e.__c;
224
+ };
225
+ var V = n.diffed;
226
+ n.diffed = function(e) {
227
+ V && V(e);
228
+ var t = e.props, n = e.__e;
229
+ n != null && e.type === "textarea" && "value" in t && t.value !== n.value && (n.value = t.value == null ? "" : t.value);
230
+ };
231
+ //#endregion
232
+ //#region src/dropdown/popup.tsx
233
+ var H = 5, U = 4;
234
+ function W(e, t, n) {
235
+ let r = e.ownerDocument.defaultView;
236
+ if (!r || r.getComputedStyle(e).position === "fixed") return {
237
+ top: t,
238
+ left: n,
239
+ scaleX: 1,
240
+ scaleY: 1
241
+ };
242
+ let i = e.offsetParent, a = e.ownerDocument;
243
+ if (!i || i === a.body || i === a.documentElement) return {
244
+ top: t + r.scrollY,
245
+ left: n + r.scrollX,
246
+ scaleX: 1,
247
+ scaleY: 1
248
+ };
249
+ let o = i.getBoundingClientRect(), s = i, c = s.offsetWidth > 0 ? o.width / s.offsetWidth : 1, l = s.offsetHeight > 0 ? o.height / s.offsetHeight : 1, u = Number.isFinite(c) && c > 0 ? c : 1, d = Number.isFinite(l) && l > 0 ? l : 1;
250
+ return {
251
+ top: (t - o.top) / d - s.clientTop + s.scrollTop,
252
+ left: (n - o.left) / u - s.clientLeft + s.scrollLeft,
253
+ scaleX: u,
254
+ scaleY: d
255
+ };
256
+ }
257
+ function G({ onPointerRelease: e, triggerRef: t, children: n, portalTarget: r, theme: i, dropdownMenuId: a, popupClassName: m, closeOnClickOutside: h = !1, onClose: g, align: _ = "start", matchTriggerWidth: v = !1, maxHeight: y, observePopupResize: b = !0, topLayer: x = !1 }) {
258
+ let S = l(null), [C, w] = s({
259
+ top: 0,
260
+ left: 0,
261
+ display: "none"
262
+ });
263
+ c(() => {
264
+ let e = t.current, n = S.current;
265
+ if (e && n) return d(e, n);
266
+ }, [r, t]), o(() => {
267
+ let e = t.current;
268
+ if (!e) return;
269
+ let n = e.ownerDocument.defaultView ?? window, r = () => {
270
+ let t = S.current;
271
+ if (!t) return;
272
+ let n = e.getBoundingClientRect(), r = W(t, n.bottom + U, n.left);
273
+ w({
274
+ top: r.top,
275
+ left: r.left,
276
+ display: "flex",
277
+ ...v ? { width: n.width / r.scaleX } : {}
278
+ });
279
+ }, i = () => {
280
+ let t = S.current;
281
+ if (!t) return;
282
+ let r = e.getBoundingClientRect(), i = t.style.maxHeight;
283
+ t.style.maxHeight = "";
284
+ let a = t.getBoundingClientRect(), o = W(t, 0, 0), s = Math.max(a.height, t.offsetHeight * o.scaleY, t.scrollHeight * o.scaleY);
285
+ t.style.maxHeight = i;
286
+ let c = Math.max(a.width, t.offsetWidth * o.scaleX), l = Math.min(s, typeof y == "number" ? Math.max(0, y * o.scaleY) : Infinity), u = n.innerHeight, d = n.innerWidth, f = Math.max(0, r.top - U - H), p = Math.max(0, u - r.bottom - U - H), m = l > p && f > p, h = Math.min(l, m ? f : p), g = m ? r.top - U - h : r.bottom + U, b = _ === "end" ? r.right - c : r.left;
287
+ g = Math.max(H, Math.min(g, u - H - h)), b = Math.max(H, Math.min(b, d - c - H));
288
+ let x = W(t, g, b);
289
+ w({
290
+ top: x.top,
291
+ left: x.left,
292
+ display: "flex",
293
+ maxHeight: h / x.scaleY,
294
+ ...v ? { width: r.width / x.scaleX } : {}
295
+ });
296
+ };
297
+ r();
298
+ let a = n.setTimeout(i, 0);
299
+ n.addEventListener("resize", i), n.addEventListener("scroll", i, !0);
300
+ let o = n.ResizeObserver, s = o ? new o(i) : void 0;
301
+ s?.observe(e);
302
+ let c = e.closest(".rv-dialog__surface, dialog");
303
+ return c && s?.observe(c), b && S.current && s?.observe(S.current), () => {
304
+ n.clearTimeout(a), n.removeEventListener("resize", i), n.removeEventListener("scroll", i, !0), s?.disconnect();
305
+ };
306
+ }, [
307
+ _,
308
+ v,
309
+ y,
310
+ b,
311
+ r,
312
+ t
313
+ ]), c(() => {
314
+ let e = S.current;
315
+ if (!x || !e) return;
316
+ let t = p(e);
317
+ return () => {
318
+ f(e, t);
319
+ };
320
+ }, [r, x]), c(() => {
321
+ if (!h || !g) return;
322
+ let e = r?.ownerDocument ?? S.current?.ownerDocument ?? t.current?.ownerDocument ?? (typeof document < "u" ? document : void 0);
323
+ if (!e) return;
324
+ let n = (e) => {
325
+ let n = e.target;
326
+ n && (S.current?.contains(n) || t.current?.contains(n) || g());
327
+ };
328
+ e.addEventListener("mousedown", n);
329
+ let i = (n) => {
330
+ if (n.key !== "Escape") return;
331
+ let r = e.activeElement;
332
+ r && (S.current?.contains(r) || t.current?.contains(r)) && (n.preventDefault(), n.stopPropagation(), g(), t.current?.querySelector("button, input, select")?.focus());
333
+ };
334
+ return e.addEventListener("keydown", i), () => {
335
+ e.removeEventListener("mousedown", n), e.removeEventListener("keydown", i);
336
+ };
337
+ }, [
338
+ h,
339
+ g,
340
+ r,
341
+ t
342
+ ]);
343
+ let T = /* @__PURE__ */ u("div", {
344
+ ref: S,
345
+ id: a,
346
+ className: `revo-dropdown-menu ${m || ""}`,
347
+ "data-theme": i ?? "default",
348
+ onMouseUp: e,
349
+ onTouchEnd: e,
350
+ style: {
351
+ top: `${C.top}px`,
352
+ left: `${C.left}px`,
353
+ ...x ? {
354
+ right: "auto",
355
+ bottom: "auto",
356
+ margin: "0"
357
+ } : {},
358
+ display: C.display,
359
+ maxHeight: C.maxHeight === void 0 ? void 0 : `${C.maxHeight}px`,
360
+ width: C.width === void 0 ? void 0 : `${C.width}px`
361
+ },
362
+ children: n
363
+ });
364
+ return r ? A(T, r) : T;
365
+ }
366
+ //#endregion
367
+ export { A as n, y as r, G as t };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
2
2
  import { SvgIcon as t } from "../icons/icon.js";
3
- import { ButtonControl as n } from "../native-control.js";
3
+ import { t as n } from "./native-control-C_yok8_-.js";
4
4
  //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/star.svg?raw
5
5
  var r = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z\"/></svg>", i = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 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=\"M288.1-32c9 0 17.3 5.1 21.4 13.1L383 125.3 542.9 150.7c8.9 1.4 16.3 7.7 19.1 16.3s.5 18-5.8 24.4L441.7 305.9 467 465.8c1.4 8.9-2.3 17.9-9.6 23.2s-17 6.1-25 2L288.1 417.6 143.8 491c-8 4.1-17.7 3.3-25-2s-11-14.2-9.6-23.2L134.4 305.9 20 191.4c-6.4-6.4-8.6-15.8-5.8-24.4s10.1-14.9 19.1-16.3l159.9-25.4 73.6-144.2c4.1-8 12.4-13.1 21.4-13.1zm0 76.8L230.3 158c-3.5 6.8-10 11.6-17.6 12.8l-125.5 20 89.8 89.9c5.4 5.4 7.9 13.1 6.7 20.7l-19.8 125.5 113.3-57.6c6.8-3.5 14.9-3.5 21.8 0l113.3 57.6-19.8-125.5c-1.2-7.6 1.3-15.3 6.7-20.7l89.8-89.9-125.5-20c-7.6-1.2-14.1-6-17.6-12.8L288.1 44.8z\"/></svg>";
6
6
  //#endregion
@@ -0,0 +1,83 @@
1
+ import { c as e } from "./preact.module-BBM36DnO.js";
2
+ import { c as t, i as n, t as r } from "./hooks.module-CG3gN83z.js";
3
+ import { renderHeader as i } from "../status-feedback/header.js";
4
+ import { renderItem as a } from "../status-feedback/item.js";
5
+ import { renderStatusBadge as o } from "../status-feedback/badge.js";
6
+ //#region src/status-feedback/use-auto-dismiss.ts
7
+ function s(e, i = 0, a) {
8
+ let [o, s] = n(/* @__PURE__ */ new Set()), c = r(a);
9
+ c.current = a;
10
+ let l = r(/* @__PURE__ */ new Map());
11
+ return t(() => {
12
+ for (let [t, n] of l.current) (!a || i <= 0 || !e.includes(n.item) || n.duration !== i) && (clearTimeout(n.timer), l.current.delete(t), s((e) => new Set([...e].filter((e) => e !== t))));
13
+ if (!(!a || i <= 0)) for (let t of e) {
14
+ if (t.busy || t.tone === "warning" || t.tone === "danger" || l.current.has(t.id)) continue;
15
+ let e = {
16
+ item: t,
17
+ duration: i,
18
+ timer: setTimeout(() => {
19
+ s((e) => /* @__PURE__ */ new Set([...e, t.id])), e.timer = setTimeout(() => c.current?.(t.id), 160);
20
+ }, i)
21
+ };
22
+ l.current.set(t.id, e);
23
+ }
24
+ }, [
25
+ e,
26
+ i,
27
+ !!a
28
+ ]), t(() => () => {
29
+ for (let e of l.current.values()) clearTimeout(e.timer);
30
+ l.current.clear();
31
+ }, []), e.map((e) => o.has(e.id) ? {
32
+ ...e,
33
+ data: {
34
+ ...e.data,
35
+ "data-exiting": "true"
36
+ }
37
+ } : e);
38
+ }
39
+ //#endregion
40
+ //#region src/status-feedback/render.ts
41
+ function c(e, t) {
42
+ let { title: n, items: r, ariaLabel: o, className: s, popover: c, onCollapsedChange: l } = t;
43
+ if (!r.length) return c?.hide(!0), null;
44
+ let u = c?.collapsed ?? t.collapsed ?? !1, d = !!(c || l), f = (e, t) => {
45
+ if (e && !c) {
46
+ let e = t.currentTarget.closest(".rv-status-feedback"), n = e?.ownerDocument.activeElement;
47
+ n && e?.contains(n) && e.querySelector(".rv-status-feedback__toggle")?.focus({ preventScroll: !0 });
48
+ }
49
+ c?.setCollapsed(e), l?.(e);
50
+ };
51
+ return c?.refresh(), e("section", {
52
+ onKeyDown: (e) => {
53
+ e.key === "Escape" && d && !u && (e.preventDefault(), e.stopPropagation(), f(!0, e));
54
+ },
55
+ ref: c?.panelRef,
56
+ id: c?.id,
57
+ class: [
58
+ "rv-status-feedback",
59
+ s,
60
+ t.compact ? "rv-status-feedback--compact" : "",
61
+ c ? "rv-status-feedback--popover" : "",
62
+ u ? "rv-status-feedback--collapsed" : ""
63
+ ].filter(Boolean).join(" "),
64
+ "aria-label": o ?? n,
65
+ "data-collapsed": String(u)
66
+ }, [i(e, t, u, d, f), e("div", {
67
+ id: c ? `${c.id}-items` : void 0,
68
+ class: "rv-status-feedback__items",
69
+ hidden: u
70
+ }, r.map((t) => a(e, t)))]);
71
+ }
72
+ function l(t) {
73
+ let n = s(t.items, t.autoDismissMs, t.onDismissItem);
74
+ return c(e, {
75
+ ...t,
76
+ items: n
77
+ });
78
+ }
79
+ function u(t) {
80
+ return o(e, t);
81
+ }
82
+ //#endregion
83
+ export { l as n, c as r, u as t };
@@ -1,6 +1,6 @@
1
1
  import { c as e } from "./preact.module-BBM36DnO.js";
2
2
  import { t } from "./jsxRuntime.module-F6UFnpT-.js";
3
- import { ButtonControl as n } from "../native-control.js";
3
+ import { t as n } from "./native-control-C_yok8_-.js";
4
4
  import { fieldDropIndex as r, fieldListDropIndex as i } from "../field-reorder.js";
5
5
  //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/grip-vertical.svg?raw
6
6
  var a = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 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=\"M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z\"/></svg>";