@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.
- package/README.md +6 -5
- package/_chunks/calendar-CpaUK7w1.js +248 -0
- package/_chunks/chart-frame-BC99KjGa.js +127 -0
- package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
- package/_chunks/color-picker-D90Jg-M8.js +138 -0
- package/_chunks/compat.module-DDB2pm9O.js +229 -0
- package/_chunks/component-YDcfoOLz.js +859 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
- package/_chunks/date-time-BxPJusp9.js +770 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
- package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
- package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
- package/_chunks/duration-87U2EoMS.js +271 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
- package/_chunks/framework-mount-C-Zwm44H.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DZe_6VtR.js +90 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
- package/_chunks/picker-DpP7iQLA.js +122 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
- package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
- package/_chunks/request-trail-IdNiFvKH.js +347 -0
- package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +16 -16
- package/ai/components.d.ts +1 -1
- package/ai/index.js +2 -2
- package/ai/request-trail.d.ts +1 -1
- package/ai/translation-context.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +87 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/index.js +25 -25
- package/avatar/index.view.d.ts +1 -1
- package/brush-range/component.d.ts +1 -1
- package/brush-range/component.js +30 -30
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +35 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +19 -19
- package/control-presentation.js +18 -18
- package/controls.d.ts +4 -4
- package/controls.js +1 -1
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup.d.ts +1 -1
- package/core/editor-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +2 -2
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/dialog/dialog-action-footer.view.d.ts +1 -1
- package/dialog/dialog.dom.js +52 -52
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +1 -1
- package/distribution-chart/bar-chart.js +6 -6
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +1 -1
- package/dropdown/content.js +83 -82
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/index.js +1 -1
- package/dropdown/lookup-field.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +17 -16
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +1 -1
- package/editor-layout/index.js +27 -27
- package/field-configurator.d.ts +1 -1
- package/field-configurator.js +93 -93
- package/field-reorder.hook.js +32 -32
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -1
- package/filter-controls.js +31 -31
- package/form-controls/index.js +20 -20
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +44 -44
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/control-tooltip.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.js +99 -98
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +19 -19
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +11 -11
- package/native-control.js +12 -12
- package/native.js +39 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +1 -2
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +1 -1
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +1 -1
- package/preact.js +14 -14
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.js +19 -19
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +88 -88
- package/rich-text/index.d.ts +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/toolbar.d.ts +1 -1
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +13 -13
- package/surfaces.js +34 -34
- package/svelte.js +2 -2
- package/switch/index.js +15 -15
- package/time-grid.d.ts +1 -1
- package/time-grid.js +58 -58
- package/timeline-track/component.d.ts +1 -1
- package/timeline-track/index.js +75 -75
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +116 -116
- package/vue.js +121 -121
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-picker-BRv-__AM.js +0 -138
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
//#region ../../node_modules/.pnpm/preact@10.29.1/node_modules/preact/dist/preact.module.js
|
|
2
|
+
var e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g = {}, _ = [], v = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, y = Array.isArray;
|
|
3
|
+
function b(e, t) {
|
|
4
|
+
for (var n in t) e[n] = t[n];
|
|
5
|
+
return e;
|
|
6
|
+
}
|
|
7
|
+
function x(e) {
|
|
8
|
+
e && e.parentNode && e.parentNode.removeChild(e);
|
|
9
|
+
}
|
|
10
|
+
function S(t, n, r) {
|
|
11
|
+
var i, a, o, s = {};
|
|
12
|
+
for (o in n) o == "key" ? i = n[o] : o == "ref" ? a = n[o] : s[o] = n[o];
|
|
13
|
+
if (arguments.length > 2 && (s.children = arguments.length > 3 ? e.call(arguments, 2) : r), typeof t == "function" && t.defaultProps != null) for (o in t.defaultProps) s[o] === void 0 && (s[o] = t.defaultProps[o]);
|
|
14
|
+
return C(t, s, i, a, null);
|
|
15
|
+
}
|
|
16
|
+
function C(e, r, i, a, o) {
|
|
17
|
+
var s = {
|
|
18
|
+
type: e,
|
|
19
|
+
props: r,
|
|
20
|
+
key: i,
|
|
21
|
+
ref: a,
|
|
22
|
+
__k: null,
|
|
23
|
+
__: null,
|
|
24
|
+
__b: 0,
|
|
25
|
+
__e: null,
|
|
26
|
+
__c: null,
|
|
27
|
+
constructor: void 0,
|
|
28
|
+
__v: o ?? ++n,
|
|
29
|
+
__i: -1,
|
|
30
|
+
__u: 0
|
|
31
|
+
};
|
|
32
|
+
return o == null && t.vnode != null && t.vnode(s), s;
|
|
33
|
+
}
|
|
34
|
+
function w(e) {
|
|
35
|
+
return e.children;
|
|
36
|
+
}
|
|
37
|
+
function T(e, t) {
|
|
38
|
+
this.props = e, this.context = t;
|
|
39
|
+
}
|
|
40
|
+
function E(e, t) {
|
|
41
|
+
if (t == null) return e.__ ? E(e.__, e.__i + 1) : null;
|
|
42
|
+
for (var n; t < e.__k.length; t++) if ((n = e.__k[t]) != null && n.__e != null) return n.__e;
|
|
43
|
+
return typeof e.type == "function" ? E(e) : null;
|
|
44
|
+
}
|
|
45
|
+
function D(e) {
|
|
46
|
+
if (e.__P && e.__d) {
|
|
47
|
+
var n = e.__v, r = n.__e, i = [], a = [], o = b({}, n);
|
|
48
|
+
o.__v = n.__v + 1, t.vnode && t.vnode(o), z(e.__P, o, n, e.__n, e.__P.namespaceURI, 32 & n.__u ? [r] : null, i, r ?? E(n), !!(32 & n.__u), a), o.__v = n.__v, o.__.__k[o.__i] = o, V(i, o, a), n.__e = n.__ = null, o.__e != r && O(o);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function O(e) {
|
|
52
|
+
if ((e = e.__) != null && e.__c != null) return e.__e = e.__c.base = null, e.__k.some(function(t) {
|
|
53
|
+
if (t != null && t.__e != null) return e.__e = e.__c.base = t.__e;
|
|
54
|
+
}), O(e);
|
|
55
|
+
}
|
|
56
|
+
function k(e) {
|
|
57
|
+
(!e.__d && (e.__d = !0) && i.push(e) && !A.__r++ || a != t.debounceRendering) && ((a = t.debounceRendering) || o)(A);
|
|
58
|
+
}
|
|
59
|
+
function A() {
|
|
60
|
+
try {
|
|
61
|
+
for (var e, t = 1; i.length;) i.length > t && i.sort(s), e = i.shift(), t = i.length, D(e);
|
|
62
|
+
} finally {
|
|
63
|
+
i.length = A.__r = 0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function j(e, t, n, r, i, a, o, s, c, l, u) {
|
|
67
|
+
var d, f, p, m, h, v, y, b = r && r.__k || _, x = t.length;
|
|
68
|
+
for (c = M(n, t, b, c, x), d = 0; d < x; d++) (p = n.__k[d]) != null && (f = p.__i != -1 && b[p.__i] || g, p.__i = d, v = z(e, p, f, i, a, o, s, c, l, u), m = p.__e, p.ref && f.ref != p.ref && (f.ref && W(f.ref, null, p), u.push(p.ref, p.__c || m, p)), h == null && m != null && (h = m), (y = !!(4 & p.__u)) || f.__k === p.__k ? (c = N(p, c, e, y), y && f.__e && (f.__e = null)) : typeof p.type == "function" && v !== void 0 ? c = v : m && (c = m.nextSibling), p.__u &= -7);
|
|
69
|
+
return n.__e = h, c;
|
|
70
|
+
}
|
|
71
|
+
function M(e, t, n, r, i) {
|
|
72
|
+
var a, o, s, c, l, u = n.length, d = u, f = 0;
|
|
73
|
+
for (e.__k = Array(i), a = 0; a < i; a++) (o = t[a]) != null && typeof o != "boolean" && typeof o != "function" ? (typeof o == "string" || typeof o == "number" || typeof o == "bigint" || o.constructor == String ? o = e.__k[a] = C(null, o, null, null, null) : y(o) ? o = e.__k[a] = C(w, { children: o }, null, null, null) : o.constructor === void 0 && o.__b > 0 ? o = e.__k[a] = C(o.type, o.props, o.key, o.ref ? o.ref : null, o.__v) : e.__k[a] = o, c = a + f, o.__ = e, o.__b = e.__b + 1, s = null, (l = o.__i = F(o, n, c, d)) != -1 && (d--, (s = n[l]) && (s.__u |= 2)), s == null || s.__v == null ? (l == -1 && (i > u ? f-- : i < u && f++), typeof o.type != "function" && (o.__u |= 4)) : l != c && (l == c - 1 ? f-- : l == c + 1 ? f++ : (l > c ? f-- : f++, o.__u |= 4))) : e.__k[a] = null;
|
|
74
|
+
if (d) for (a = 0; a < u; a++) (s = n[a]) != null && !(2 & s.__u) && (s.__e == r && (r = E(s)), G(s, s));
|
|
75
|
+
return r;
|
|
76
|
+
}
|
|
77
|
+
function N(e, t, n, r) {
|
|
78
|
+
var i, a;
|
|
79
|
+
if (typeof e.type == "function") {
|
|
80
|
+
for (i = e.__k, a = 0; i && a < i.length; a++) i[a] && (i[a].__ = e, t = N(i[a], t, n, r));
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
e.__e != t && (r && (t && e.type && !t.parentNode && (t = E(e)), n.insertBefore(e.__e, t || null)), t = e.__e);
|
|
84
|
+
do
|
|
85
|
+
t &&= t.nextSibling;
|
|
86
|
+
while (t != null && t.nodeType == 8);
|
|
87
|
+
return t;
|
|
88
|
+
}
|
|
89
|
+
function P(e, t) {
|
|
90
|
+
return t ||= [], e == null || typeof e == "boolean" || (y(e) ? e.some(function(e) {
|
|
91
|
+
P(e, t);
|
|
92
|
+
}) : t.push(e)), t;
|
|
93
|
+
}
|
|
94
|
+
function F(e, t, n, r) {
|
|
95
|
+
var i, a, o, s = e.key, c = e.type, l = t[n], u = l != null && !(2 & l.__u);
|
|
96
|
+
if (l === null && s == null || u && s == l.key && c == l.type) return n;
|
|
97
|
+
if (r > +!!u) {
|
|
98
|
+
for (i = n - 1, a = n + 1; i >= 0 || a < t.length;) if ((l = t[o = i >= 0 ? i-- : a++]) != null && !(2 & l.__u) && s == l.key && c == l.type) return o;
|
|
99
|
+
}
|
|
100
|
+
return -1;
|
|
101
|
+
}
|
|
102
|
+
function I(e, t, n) {
|
|
103
|
+
t[0] == "-" ? e.setProperty(t, n ?? "") : e[t] = n == null ? "" : typeof n != "number" || v.test(t) ? n : n + "px";
|
|
104
|
+
}
|
|
105
|
+
function L(e, t, n, r, i) {
|
|
106
|
+
var a, o;
|
|
107
|
+
n: if (t == "style") {
|
|
108
|
+
if (typeof n == "string") e.style.cssText = n;
|
|
109
|
+
else {
|
|
110
|
+
if (typeof r == "string" && (e.style.cssText = r = ""), r) for (t in r) n && t in n || I(e.style, t, "");
|
|
111
|
+
if (n) for (t in n) r && n[t] == r[t] || I(e.style, t, n[t]);
|
|
112
|
+
}
|
|
113
|
+
} else if (t[0] == "o" && t[1] == "n") a = t != (t = t.replace(d, "$1")), o = t.toLowerCase(), t = o in e || t == "onFocusOut" || t == "onFocusIn" ? o.slice(2) : t.slice(2), e.l ||= {}, e.l[t + a] = n, n ? r ? n[u] = r[u] : (n[u] = f, e.addEventListener(t, a ? m : p, a)) : e.removeEventListener(t, a ? m : p, a);
|
|
114
|
+
else {
|
|
115
|
+
if (i == "http://www.w3.org/2000/svg") t = t.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
116
|
+
else if (t != "width" && t != "height" && t != "href" && t != "list" && t != "form" && t != "tabIndex" && t != "download" && t != "rowSpan" && t != "colSpan" && t != "role" && t != "popover" && t in e) try {
|
|
117
|
+
e[t] = n ?? "";
|
|
118
|
+
break n;
|
|
119
|
+
} catch {}
|
|
120
|
+
typeof n == "function" || (n == null || !1 === n && t[4] != "-" ? e.removeAttribute(t) : e.setAttribute(t, t == "popover" && n == 1 ? "" : n));
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function R(e) {
|
|
124
|
+
return function(n) {
|
|
125
|
+
if (this.l) {
|
|
126
|
+
var r = this.l[n.type + e];
|
|
127
|
+
if (n[l] == null) n[l] = f++;
|
|
128
|
+
else if (n[l] < r[u]) return;
|
|
129
|
+
return r(t.event ? t.event(n) : n);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function z(e, n, r, i, a, o, s, c, l, u) {
|
|
134
|
+
var d, f, p, m, h, g, v, S, C, E, D, O, k, A, M, N = n.type;
|
|
135
|
+
if (n.constructor !== void 0) return null;
|
|
136
|
+
128 & r.__u && (l = !!(32 & r.__u), o = [c = n.__e = r.__e]), (d = t.__b) && d(n);
|
|
137
|
+
n: if (typeof N == "function") try {
|
|
138
|
+
if (S = n.props, C = N.prototype && N.prototype.render, E = (d = N.contextType) && i[d.__c], D = d ? E ? E.props.value : d.__ : i, r.__c ? v = (f = n.__c = r.__c).__ = f.__E : (C ? n.__c = f = new N(S, D) : (n.__c = f = new T(S, D), f.constructor = N, f.render = K), E && E.sub(f), f.state || (f.state = {}), f.__n = i, p = f.__d = !0, f.__h = [], f._sb = []), C && f.__s == null && (f.__s = f.state), C && N.getDerivedStateFromProps != null && (f.__s == f.state && (f.__s = b({}, f.__s)), b(f.__s, N.getDerivedStateFromProps(S, f.__s))), m = f.props, h = f.state, f.__v = n, p) C && N.getDerivedStateFromProps == null && f.componentWillMount != null && f.componentWillMount(), C && f.componentDidMount != null && f.__h.push(f.componentDidMount);
|
|
139
|
+
else {
|
|
140
|
+
if (C && N.getDerivedStateFromProps == null && S !== m && f.componentWillReceiveProps != null && f.componentWillReceiveProps(S, D), n.__v == r.__v || !f.__e && f.shouldComponentUpdate != null && !1 === f.shouldComponentUpdate(S, f.__s, D)) {
|
|
141
|
+
n.__v != r.__v && (f.props = S, f.state = f.__s, f.__d = !1), n.__e = r.__e, n.__k = r.__k, n.__k.some(function(e) {
|
|
142
|
+
e && (e.__ = n);
|
|
143
|
+
}), _.push.apply(f.__h, f._sb), f._sb = [], f.__h.length && s.push(f);
|
|
144
|
+
break n;
|
|
145
|
+
}
|
|
146
|
+
f.componentWillUpdate != null && f.componentWillUpdate(S, f.__s, D), C && f.componentDidUpdate != null && f.__h.push(function() {
|
|
147
|
+
f.componentDidUpdate(m, h, g);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
if (f.context = D, f.props = S, f.__P = e, f.__e = !1, O = t.__r, k = 0, C) f.state = f.__s, f.__d = !1, O && O(n), d = f.render(f.props, f.state, f.context), _.push.apply(f.__h, f._sb), f._sb = [];
|
|
151
|
+
else do
|
|
152
|
+
f.__d = !1, O && O(n), d = f.render(f.props, f.state, f.context), f.state = f.__s;
|
|
153
|
+
while (f.__d && ++k < 25);
|
|
154
|
+
f.state = f.__s, f.getChildContext != null && (i = b(b({}, i), f.getChildContext())), C && !p && f.getSnapshotBeforeUpdate != null && (g = f.getSnapshotBeforeUpdate(m, h)), A = d != null && d.type === w && d.key == null ? H(d.props.children) : d, c = j(e, y(A) ? A : [A], n, r, i, a, o, s, c, l, u), f.base = n.__e, n.__u &= -161, f.__h.length && s.push(f), v && (f.__E = f.__ = null);
|
|
155
|
+
} catch (e) {
|
|
156
|
+
if (n.__v = null, l || o != null) {
|
|
157
|
+
if (e.then) {
|
|
158
|
+
for (n.__u |= l ? 160 : 128; c && c.nodeType == 8 && c.nextSibling;) c = c.nextSibling;
|
|
159
|
+
o[o.indexOf(c)] = null, n.__e = c;
|
|
160
|
+
} else {
|
|
161
|
+
for (M = o.length; M--;) x(o[M]);
|
|
162
|
+
B(n);
|
|
163
|
+
}
|
|
164
|
+
} else n.__e = r.__e, n.__k = r.__k, e.then || B(n);
|
|
165
|
+
t.__e(e, n, r);
|
|
166
|
+
}
|
|
167
|
+
else o == null && n.__v == r.__v ? (n.__k = r.__k, n.__e = r.__e) : c = n.__e = U(r.__e, n, r, i, a, o, s, l, u);
|
|
168
|
+
return (d = t.diffed) && d(n), 128 & n.__u ? void 0 : c;
|
|
169
|
+
}
|
|
170
|
+
function B(e) {
|
|
171
|
+
e && (e.__c && (e.__c.__e = !0), e.__k && e.__k.some(B));
|
|
172
|
+
}
|
|
173
|
+
function V(e, n, r) {
|
|
174
|
+
for (var i = 0; i < r.length; i++) W(r[i], r[++i], r[++i]);
|
|
175
|
+
t.__c && t.__c(n, e), e.some(function(n) {
|
|
176
|
+
try {
|
|
177
|
+
e = n.__h, n.__h = [], e.some(function(e) {
|
|
178
|
+
e.call(n);
|
|
179
|
+
});
|
|
180
|
+
} catch (e) {
|
|
181
|
+
t.__e(e, n.__v);
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
function H(e) {
|
|
186
|
+
return typeof e != "object" || !e || e.__b > 0 ? e : y(e) ? e.map(H) : b({}, e);
|
|
187
|
+
}
|
|
188
|
+
function U(n, r, i, a, o, s, c, l, u) {
|
|
189
|
+
var d, f, p, m, h, _, v, b = i.props || g, S = r.props, C = r.type;
|
|
190
|
+
if (C == "svg" ? o = "http://www.w3.org/2000/svg" : C == "math" ? o = "http://www.w3.org/1998/Math/MathML" : o ||= "http://www.w3.org/1999/xhtml", s != null) {
|
|
191
|
+
for (d = 0; d < s.length; d++) if ((h = s[d]) && "setAttribute" in h == !!C && (C ? h.localName == C : h.nodeType == 3)) {
|
|
192
|
+
n = h, s[d] = null;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
if (n == null) {
|
|
197
|
+
if (C == null) return document.createTextNode(S);
|
|
198
|
+
n = document.createElementNS(o, C, S.is && S), l &&= (t.__m && t.__m(r, s), !1), s = null;
|
|
199
|
+
}
|
|
200
|
+
if (C == null) b === S || l && n.data == S || (n.data = S);
|
|
201
|
+
else {
|
|
202
|
+
if (s &&= e.call(n.childNodes), !l && s != null) for (b = {}, d = 0; d < n.attributes.length; d++) b[(h = n.attributes[d]).name] = h.value;
|
|
203
|
+
for (d in b) h = b[d], d == "dangerouslySetInnerHTML" ? p = h : d == "children" || d in S || d == "value" && "defaultValue" in S || d == "checked" && "defaultChecked" in S || L(n, d, null, h, o);
|
|
204
|
+
for (d in S) h = S[d], d == "children" ? m = h : d == "dangerouslySetInnerHTML" ? f = h : d == "value" ? _ = h : d == "checked" ? v = h : l && typeof h != "function" || b[d] === h || L(n, d, h, b[d], o);
|
|
205
|
+
if (f) l || p && (f.__html == p.__html || f.__html == n.innerHTML) || (n.innerHTML = f.__html), r.__k = [];
|
|
206
|
+
else if (p && (n.innerHTML = ""), j(r.type == "template" ? n.content : n, y(m) ? m : [m], r, i, a, C == "foreignObject" ? "http://www.w3.org/1999/xhtml" : o, s, c, s ? s[0] : i.__k && E(i, 0), l, u), s != null) for (d = s.length; d--;) x(s[d]);
|
|
207
|
+
l || (d = "value", C == "progress" && _ == null ? n.removeAttribute("value") : _ != null && (_ !== n[d] || C == "progress" && !_ || C == "option" && _ != b[d]) && L(n, d, _, b[d], o), d = "checked", v != null && v != n[d] && L(n, d, v, b[d], o));
|
|
208
|
+
}
|
|
209
|
+
return n;
|
|
210
|
+
}
|
|
211
|
+
function W(e, n, r) {
|
|
212
|
+
try {
|
|
213
|
+
if (typeof e == "function") {
|
|
214
|
+
var i = typeof e.__u == "function";
|
|
215
|
+
i && e.__u(), i && n == null || (e.__u = e(n));
|
|
216
|
+
} else e.current = n;
|
|
217
|
+
} catch (e) {
|
|
218
|
+
t.__e(e, r);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
function G(e, n, r) {
|
|
222
|
+
var i, a;
|
|
223
|
+
if (t.unmount && t.unmount(e), (i = e.ref) && (i.current && i.current != e.__e || W(i, null, n)), (i = e.__c) != null) {
|
|
224
|
+
if (i.componentWillUnmount) try {
|
|
225
|
+
i.componentWillUnmount();
|
|
226
|
+
} catch (e) {
|
|
227
|
+
t.__e(e, n);
|
|
228
|
+
}
|
|
229
|
+
i.base = i.__P = null;
|
|
230
|
+
}
|
|
231
|
+
if (i = e.__k) for (a = 0; a < i.length; a++) i[a] && G(i[a], n, r || typeof e.type != "function");
|
|
232
|
+
r || x(e.__e), e.__c = e.__ = e.__e = void 0;
|
|
233
|
+
}
|
|
234
|
+
function K(e, t, n) {
|
|
235
|
+
return this.constructor(e, n);
|
|
236
|
+
}
|
|
237
|
+
function q(n, r, i) {
|
|
238
|
+
var a, o, s, c;
|
|
239
|
+
r == document && (r = document.documentElement), t.__ && t.__(n, r), o = (a = typeof i == "function") ? null : i && i.__k || r.__k, s = [], c = [], z(r, n = (!a && i || r).__k = S(w, null, [n]), o || g, g, r.namespaceURI, !a && i ? [i] : o ? null : r.firstChild ? e.call(r.childNodes) : null, s, !a && i ? i : o ? o.__e : r.firstChild, a, c), V(s, n, c);
|
|
240
|
+
}
|
|
241
|
+
function J(e, t) {
|
|
242
|
+
q(e, t, J);
|
|
243
|
+
}
|
|
244
|
+
function Y(t, n, r) {
|
|
245
|
+
var i, a, o, s, c = b({}, t.props);
|
|
246
|
+
for (o in t.type && t.type.defaultProps && (s = t.type.defaultProps), n) o == "key" ? i = n[o] : o == "ref" ? a = n[o] : c[o] = n[o] === void 0 && s != null ? s[o] : n[o];
|
|
247
|
+
return arguments.length > 2 && (c.children = arguments.length > 3 ? e.call(arguments, 2) : r), C(t.type, c, i || t.key, a || t.ref, null);
|
|
248
|
+
}
|
|
249
|
+
function X(e) {
|
|
250
|
+
function t(e) {
|
|
251
|
+
var n, r;
|
|
252
|
+
return this.getChildContext || (n = /* @__PURE__ */ new Set(), (r = {})[t.__c] = this, this.getChildContext = function() {
|
|
253
|
+
return r;
|
|
254
|
+
}, this.componentWillUnmount = function() {
|
|
255
|
+
n = null;
|
|
256
|
+
}, this.shouldComponentUpdate = function(e) {
|
|
257
|
+
this.props.value != e.value && n.forEach(function(e) {
|
|
258
|
+
e.__e = !0, k(e);
|
|
259
|
+
});
|
|
260
|
+
}, this.sub = function(e) {
|
|
261
|
+
n.add(e);
|
|
262
|
+
var t = e.componentWillUnmount;
|
|
263
|
+
e.componentWillUnmount = function() {
|
|
264
|
+
n && n.delete(e), t && t.call(e);
|
|
265
|
+
};
|
|
266
|
+
}), e.children;
|
|
267
|
+
}
|
|
268
|
+
return t.__c = "__cC" + h++, t.__ = e, t.Provider = t.__l = (t.Consumer = function(e, t) {
|
|
269
|
+
return e.children(t);
|
|
270
|
+
}).contextType = t, t;
|
|
271
|
+
}
|
|
272
|
+
e = _.slice, t = { __e: function(e, t, n, r) {
|
|
273
|
+
for (var i, a, o; t = t.__;) if ((i = t.__c) && !i.__) try {
|
|
274
|
+
if ((a = i.constructor) && a.getDerivedStateFromError != null && (i.setState(a.getDerivedStateFromError(e)), o = i.__d), i.componentDidCatch != null && (i.componentDidCatch(e, r || {}), o = i.__d), o) return i.__E = i;
|
|
275
|
+
} catch (t) {
|
|
276
|
+
e = t;
|
|
277
|
+
}
|
|
278
|
+
throw e;
|
|
279
|
+
} }, n = 0, r = function(e) {
|
|
280
|
+
return e != null && e.constructor === void 0;
|
|
281
|
+
}, T.prototype.setState = function(e, t) {
|
|
282
|
+
var n = this.__s != null && this.__s != this.state ? this.__s : this.__s = b({}, this.state);
|
|
283
|
+
typeof e == "function" && (e = e(b({}, n), this.props)), e && b(n, e), e != null && this.__v && (t && this._sb.push(t), k(this));
|
|
284
|
+
}, T.prototype.forceUpdate = function(e) {
|
|
285
|
+
this.__v && (this.__e = !0, e && this.__h.push(e), k(this));
|
|
286
|
+
}, T.prototype.render = w, i = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, s = function(e, t) {
|
|
287
|
+
return e.__v.__b - t.__v.__b;
|
|
288
|
+
}, A.__r = 0, c = Math.random().toString(8), l = "__d" + c, u = "__a" + c, d = /(PointerCapture)$|Capture$/i, f = 0, p = R(!1), m = R(!0), h = 0;
|
|
289
|
+
//#endregion
|
|
290
|
+
export { J as a, S as c, w as i, t as l, P as n, Y as o, q as r, X as s, T as t, r as u };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { SvgIcon as t } from "../icons/icon.js";
|
|
3
|
+
import { ButtonControl as n } from "../native-control.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
|
|
7
7
|
//#region src/rating-choice.tsx
|
|
8
|
-
function a({ filled:
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function a({ filled: n }) {
|
|
9
|
+
return /* @__PURE__ */ e("span", {
|
|
10
10
|
class: "rv-rating__star",
|
|
11
|
-
"data-filled":
|
|
12
|
-
children: /* @__PURE__ */
|
|
11
|
+
"data-filled": n ? "true" : "false",
|
|
12
|
+
children: /* @__PURE__ */ e(t, { svg: n ? r : i })
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
|
-
function o({ filled:
|
|
16
|
-
return /* @__PURE__ */ n
|
|
15
|
+
function o({ filled: t, selected: r, label: i, className: o = "", ...s }) {
|
|
16
|
+
return /* @__PURE__ */ e(n, {
|
|
17
17
|
...s,
|
|
18
18
|
type: "button",
|
|
19
19
|
class: `rv-rating-choice ${o}`,
|
|
20
20
|
role: "radio",
|
|
21
21
|
"aria-checked": r,
|
|
22
22
|
"aria-label": i,
|
|
23
|
-
children: /* @__PURE__ */
|
|
23
|
+
children: /* @__PURE__ */ e(a, { filled: t })
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { c as e } from "./preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "./jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { ButtonControl as n } from "../native-control.js";
|
|
4
|
+
import { fieldDropIndex as r, fieldListDropIndex as i } from "../field-reorder.js";
|
|
5
|
+
//#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/grip-vertical.svg?raw
|
|
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>";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/reorder-list.tsx
|
|
9
|
+
function o({ items: n, itemKey: a, renderItem: o, renderHandle: s, itemAttributes: c, className: l = "", rowClassName: u = "", endClassName: d = "", draggedKey: f, dropIndex: p, empty: m, onDragOver: h, onDrop: g }) {
|
|
10
|
+
let _ = (e, t) => {
|
|
11
|
+
let n = e.currentTarget.getBoundingClientRect();
|
|
12
|
+
return r(e.clientY, n.top, n.height, t, p ?? null);
|
|
13
|
+
}, v = (e) => {
|
|
14
|
+
let t = e.currentTarget;
|
|
15
|
+
if (e.target.closest(".rv-reorder-drop-end")?.parentElement === t) return n.length;
|
|
16
|
+
let r = Array.from(t.querySelectorAll(":scope > .rv-reorder-row"));
|
|
17
|
+
return i(e.clientY, r.map((e) => e.getBoundingClientRect()), p ?? null, n.length);
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ t("div", {
|
|
20
|
+
class: `rv-reorder-list ${l}${p === n.length ? " drop-at-end" : ""}`,
|
|
21
|
+
onDragOver: (e) => {
|
|
22
|
+
e.target.closest(".rv-reorder-row")?.parentElement !== e.currentTarget && (e.stopPropagation(), h(e, v(e)));
|
|
23
|
+
},
|
|
24
|
+
onDrop: (e) => {
|
|
25
|
+
e.target.closest(".rv-reorder-row")?.parentElement !== e.currentTarget && (e.stopPropagation(), g(e, v(e)));
|
|
26
|
+
},
|
|
27
|
+
children: [
|
|
28
|
+
!n.length && m,
|
|
29
|
+
n.map((t, n) => /* @__PURE__ */ e("div", {
|
|
30
|
+
...c?.(t, n),
|
|
31
|
+
key: a(t),
|
|
32
|
+
class: `rv-reorder-row ${typeof u == "function" ? u(t, n) : u}${f === a(t) ? " dragging" : ""}${p === n ? " drop-before" : ""}`,
|
|
33
|
+
onDragOver: (e) => {
|
|
34
|
+
e.stopPropagation(), h(e, _(e, n));
|
|
35
|
+
},
|
|
36
|
+
onDrop: (e) => {
|
|
37
|
+
e.stopPropagation(), g(e, _(e, n));
|
|
38
|
+
}
|
|
39
|
+
}, s?.(t, n), o(t, n))),
|
|
40
|
+
/* @__PURE__ */ t("div", {
|
|
41
|
+
class: `rv-reorder-drop-end ${d}`,
|
|
42
|
+
"aria-hidden": "true"
|
|
43
|
+
})
|
|
44
|
+
]
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function s({ className: e = "", children: r, ...i }) {
|
|
48
|
+
return /* @__PURE__ */ t(n, {
|
|
49
|
+
type: "button",
|
|
50
|
+
...i,
|
|
51
|
+
class: `rv-btn-ghost rv-reorder-handle ${e}`,
|
|
52
|
+
children: [/* @__PURE__ */ t("span", {
|
|
53
|
+
"aria-hidden": "true",
|
|
54
|
+
dangerouslySetInnerHTML: { __html: a }
|
|
55
|
+
}), r]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { o as n, s as t };
|