@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.
- package/LICENSE +21 -0
- package/README.md +345 -263
- package/_chunks/{calendar-CpaUK7w1.js → calendar-xpZ0v3xf.js} +39 -29
- package/_chunks/{chart-frame-BC99KjGa.js → chart-frame-Cmc7xU1i.js} +16 -13
- package/_chunks/{choice-chips-Cs4D-3nH.js → choice-chips-CHQTUdLs.js} +10 -10
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BBMFmUNA.js → color-palette-D8vyPfld.js} +1 -1
- package/_chunks/{color-picker-D90Jg-M8.js → color-picker-CudqPYZo.js} +10 -10
- package/_chunks/{component-YDcfoOLz.js → component-C_T2VN5u.js} +182 -178
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
- package/_chunks/control-AHKXD5Eu.js +93 -0
- package/_chunks/{control-tooltip-ztgmsG7H.js → control-tooltip-uscKfAnV.js} +15 -15
- package/_chunks/{controls-DIum-E66.js → controls-DsNi8V8I.js} +144 -129
- package/_chunks/{date-control-BJSzu79z.js → date-control-DrVFX13g.js} +1 -1
- package/_chunks/{date-time-BxPJusp9.js → date-time-qIhp5vaX.js} +143 -145
- package/_chunks/{delete-button-Bblyah10.js → delete-button-CW9vjLnk.js} +6 -6
- package/_chunks/{dialog.parts-DBqo3Qwb.js → dialog.parts-CKGkC5zP.js} +20 -20
- package/_chunks/{duration-87U2EoMS.js → duration-CL68Em0o.js} +16 -15
- package/_chunks/{editor-popup-D3JdS8l3.js → editor-popup-WDdtVDNA.js} +5 -5
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/{framework-mount-C-Zwm44H.js → framework-mount--RTLIqE-.js} +1 -1
- package/_chunks/history-controls-B3u3INEK.js +27 -0
- package/_chunks/mount-DQ1cpppK.js +257 -0
- package/_chunks/native-control-C_yok8_-.js +605 -0
- package/_chunks/{number-input-BeIadZuL.js → number-input-BKwA5FnM.js} +2 -2
- package/_chunks/{picker-DpP7iQLA.js → picker-h1P5RUgp.js} +2 -2
- package/_chunks/popup-CT2uD3go.js +367 -0
- package/_chunks/{rating-choice-Ca8ZBty3.js → rating-choice-DZgmaic0.js} +1 -1
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/{reorder-list-Cc3KmfAN.js → reorder-list-CSlqAGHw.js} +1 -1
- package/_chunks/request-trail-DSlFix6i.js +618 -0
- package/_chunks/rich-text-CH7gIqOS.js +636 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_form.scss +1 -1
- package/ai/_chat.scss +195 -0
- package/ai/_style.scss +105 -34
- package/ai/chat.d.ts +63 -0
- package/ai/components.d.ts +19 -3
- package/ai/index.d.ts +2 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +30 -1
- package/ai/prompt-history.d.ts +13 -0
- package/ai/transcript.d.ts +25 -0
- package/ai/translations.d.ts +1 -1
- package/angular/angular.js +0 -3
- package/assignee/index.js +34 -35
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.js +1 -1
- package/buttons/svg-button.d.ts +1 -0
- package/buttons/svg-button.js +5 -5
- package/calendar/_calendar.scss +7 -2
- package/calendar/calendar.js +1 -1
- package/calendar/index.js +2 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +16 -5
- package/control-attributes.js +7 -7
- package/controls.d.ts +8 -6
- package/controls.js +3 -3
- package/core/editor-popup.js +1 -1
- package/date-time/index.js +1 -1
- package/date-time/style.scss +4 -4
- package/dialog/dialog.dom.js +8 -8
- package/dialog/dialog.parts.js +1 -1
- package/distribution-chart/area-chart.js +1 -1
- package/distribution-chart/bar-chart.d.ts +5 -2
- package/distribution-chart/bar-chart.js +7 -3
- package/distribution-chart/chart-frame.d.ts +2 -1
- package/distribution-chart/line-chart.js +1 -1
- package/dropdown/content.d.ts +2 -1
- package/dropdown/content.js +1 -142
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.types.d.ts +4 -0
- package/dropdown/editor-dropdown.style.scss +37 -9
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.js +1 -1
- package/dropdown/popup.js +1 -141
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.js +1 -1
- package/field-configurator.js +6 -6
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/single.js +1 -1
- package/filter-badge.js +1 -1
- package/filter-controls.js +7 -7
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.js +7 -12
- package/form-controls/index.view.d.ts +2 -4
- package/form-controls/presentation.js +51 -43
- package/formatting/index.js +25 -21
- package/framework.js +215 -207
- package/history-controls.d.ts +14 -0
- package/history-controls.js +1 -0
- package/masked-input/index.js +1 -1
- package/native-control.d.ts +6 -4
- package/native-control.js +3 -26
- package/native-styles.css +1 -1
- package/native.js +31 -30
- package/number-input/index.js +1 -1
- package/package.json +53 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +43 -33
- package/pdf-viewer/index.js +1 -1
- package/pdf-viewer/style.scss +3 -4
- package/preact.d.ts +2 -0
- package/preact.js +62 -62
- package/rating-choice.js +1 -1
- package/react-control.d.ts +0 -1
- package/react-control.js +2 -2
- package/react.d.ts +13 -3
- package/react.js +71 -88
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-popup.js +1 -1
- package/resource-picker/resource-picker.js +4 -4
- package/resource-picker/resource-picker.scss +6 -3
- package/rich-text/engine.d.ts +16 -19
- package/rich-text/index.d.ts +7 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +4 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +3 -12
- package/rich-text/toolbar.d.ts +6 -6
- package/rich-text/translations.d.ts +3 -15
- package/select.d.ts +20 -0
- package/select.js +1 -0
- package/status-feedback/exit-snapshot.js +4 -4
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +10 -10
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +7 -0
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- package/styles/_compositions.scss +3 -1
- package/styles/_control.scss +12 -4
- package/styles/_primitives.scss +9 -8
- package/styles.css +1 -1
- package/surfaces.js +45 -45
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +0 -21
- package/svelte.js +33 -68
- package/time-grid.js +1 -1
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +71 -54
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/vue.d.ts +24 -5
- package/vue.js +140 -164
- package/_chunks/compat.module-DDB2pm9O.js +0 -229
- package/_chunks/dropdown-voWqmwAe.js +0 -357
- package/_chunks/mount-DZe_6VtR.js +0 -90
- package/_chunks/request-trail-IdNiFvKH.js +0 -347
- package/_chunks/rich-text-BzI1DyfF.js +0 -477
- package/react-native-select.d.ts +0 -6
- package/rich-text/syntax.d.ts +0 -2
- package/vue-native-select.d.ts +0 -9
package/react.js
CHANGED
|
@@ -1,76 +1,73 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as N } from "./_chunks/
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { SharedResourcePicker as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import { t as rn } from "./_chunks/framework-mount-C-Zwm44H.js";
|
|
57
|
-
import { createElement as q, forwardRef as J, isValidElement as an, useImperativeHandle as on, useLayoutEffect as Y, useRef as X, useState as sn } from "react";
|
|
58
|
-
import { createPortal as cn } from "react-dom";
|
|
1
|
+
import { n as e, t } from "./_chunks/rating-choice-DZgmaic0.js";
|
|
2
|
+
import { SvgIcon as n } from "./icons/icon.js";
|
|
3
|
+
import { l as r, n as i, p as a } from "./_chunks/native-control-C_yok8_-.js";
|
|
4
|
+
import { t as o } from "./_chunks/popup-CT2uD3go.js";
|
|
5
|
+
import { t as s } from "./_chunks/delete-button-CW9vjLnk.js";
|
|
6
|
+
import { RemoveButton as c } from "./buttons/remove-button.js";
|
|
7
|
+
import { A as l, C as u, D as d, E as f, F as p, I as ee, L as te, M as ne, N as re, O as ie, P as ae, R as oe, S as se, T as ce, _ as le, a as ue, b as de, c as m, d as h, f as g, g as _, h as v, i as y, j as b, k as x, l as S, m as C, n as w, o as T, p as E, r as D, s as O, t as k, u as A, v as j, w as M, x as N, y as P } from "./_chunks/controls-DsNi8V8I.js";
|
|
8
|
+
import { t as F } from "./_chunks/control-tooltip-uscKfAnV.js";
|
|
9
|
+
import { SvgButton as I } from "./buttons/svg-button.js";
|
|
10
|
+
import { SegmentedSwitch as L } from "./segmented-switch/index.js";
|
|
11
|
+
import { EditorList as R, EditorListGroup as z, EditorListItem as B, EditorListItemContent as V, EditorPane as H, EditorSplitLayout as U } from "./editor-layout/index.js";
|
|
12
|
+
import { a as fe, c as pe, i as me, l as he, n as ge, o as _e, r as ve, s as ye, t as be } from "./_chunks/dialog.parts-CKGkC5zP.js";
|
|
13
|
+
import { _ as xe, a as Se, c as Ce, d as we, f as Te, g as Ee, h as De, i as Oe, l as ke, m as Ae, n as je, o as Me, p as Ne, r as Pe, s as Fe, t as Ie, u as Le } from "./_chunks/request-trail-DSlFix6i.js";
|
|
14
|
+
import { n as W, t as Re } from "./_chunks/render-m5eMMwFR.js";
|
|
15
|
+
import { t as ze } from "./_chunks/color-palette-D8vyPfld.js";
|
|
16
|
+
import { t as Be } from "./_chunks/color-picker-CudqPYZo.js";
|
|
17
|
+
import { n as Ve, r as He, t as Ue } from "./_chunks/choice-chips-CHQTUdLs.js";
|
|
18
|
+
import { FilterBadge as We, FilterBadgeInfoButton as Ge } from "./filter-badge.js";
|
|
19
|
+
import { ActivityMessage as Ke } from "./activity-message.js";
|
|
20
|
+
import { Checkbox as qe } from "./checkbox/index.js";
|
|
21
|
+
import { Switch as Je } from "./switch/index.js";
|
|
22
|
+
import { SearchInput as Ye } from "./search-input/index.js";
|
|
23
|
+
import { DisclosureSummary as Xe, FilterChip as G, FormField as Ze } from "./form-controls/presentation.js";
|
|
24
|
+
import { a as Qe, i as $e, r as et } from "./_chunks/date-time-qIhp5vaX.js";
|
|
25
|
+
import { n as tt, t as nt } from "./_chunks/duration-CL68Em0o.js";
|
|
26
|
+
import { CalendarHeader as rt, CalendarWeekdays as it } from "./calendar/header.js";
|
|
27
|
+
import { t as at } from "./_chunks/calendar-xpZ0v3xf.js";
|
|
28
|
+
import { CalendarDay as ot } from "./calendar/day.js";
|
|
29
|
+
import { CalendarMonthGrid as st } from "./calendar/month-grid.js";
|
|
30
|
+
import { CalendarYearGrid as ct } from "./calendar/year-grid.js";
|
|
31
|
+
import { t as lt } from "./_chunks/picker-h1P5RUgp.js";
|
|
32
|
+
import { ResourcePickerAvatar as ut } from "./resource-picker/resource-picker-avatar.js";
|
|
33
|
+
import { SharedResourcePicker as K } from "./resource-picker/resource-picker.js";
|
|
34
|
+
import { PreactRangeSlider as q } from "./filter/filters/slider/preact.js";
|
|
35
|
+
import { SingleValueSlider as J, SliderField as dt } from "./filter/filters/slider/single.js";
|
|
36
|
+
import { a as ft, c as pt, d as mt, f as ht, i as gt, l as _t, m as vt, o as yt, p as bt, r as xt, s as St, t as Ct, u as wt } from "./_chunks/component-C_T2VN5u.js";
|
|
37
|
+
import { BarChart as Tt } from "./distribution-chart/bar-chart.js";
|
|
38
|
+
import { LineChart as Et } from "./distribution-chart/line-chart.js";
|
|
39
|
+
import { AreaChart as Dt } from "./distribution-chart/area-chart.js";
|
|
40
|
+
import { DistributionChart as Ot } from "./distribution-chart/index.js";
|
|
41
|
+
import { BrushRange as kt } from "./brush-range/component.js";
|
|
42
|
+
import { Legend as At } from "./legend.js";
|
|
43
|
+
import { HighlightedTextInput as jt, InlineFieldGroup as Mt, OptionButton as Nt } from "./filter-controls.js";
|
|
44
|
+
import { TimeGrid as Pt } from "./time-grid.js";
|
|
45
|
+
import { FieldActions as Ft, FieldContent as It, FieldDropIndicator as Lt, FieldGroup as Rt, FieldGroupHeading as zt, FieldIcon as Bt, FieldItem as Vt, FieldLibrary as Ht, FieldLibraryList as Ut, FieldList as Wt, FieldRemoveButton as Gt, FieldRemoveIcon as Kt, FieldRow as qt, FieldStatusBadge as Jt, FieldSummary as Yt, SelectedField as Xt } from "./field-configurator.js";
|
|
46
|
+
import { ComparisonPreview as Zt, IconChoiceGroup as Qt, IconToggleButton as $t, InspectorSection as en, TypographyControls as tn } from "./formatting/index.js";
|
|
47
|
+
import { n as nn, t as rn } from "./_chunks/reorder-list-CSlqAGHw.js";
|
|
48
|
+
import { TimelineTrack as an } from "./timeline-track/index.js";
|
|
49
|
+
import { t as on } from "./_chunks/number-input-BKwA5FnM.js";
|
|
50
|
+
import { MaskedDraft as sn } from "./masked-input/index.js";
|
|
51
|
+
import { t as cn } from "./_chunks/rich-text-CH7gIqOS.js";
|
|
52
|
+
import { AssigneeField as ln, AssigneePicker as un, AssigneePickerLayout as dn } from "./assignee/index.js";
|
|
53
|
+
import { t as fn } from "./_chunks/framework-mount--RTLIqE-.js";
|
|
54
|
+
import { createElement as Y, forwardRef as pn, isValidElement as mn, useImperativeHandle as hn, useLayoutEffect as X, useRef as Z, useState as gn } from "react";
|
|
55
|
+
import { createPortal as _n } from "react-dom";
|
|
59
56
|
//#region src/react-adapter.ts
|
|
60
|
-
var
|
|
61
|
-
function
|
|
62
|
-
let r =
|
|
63
|
-
let a =
|
|
64
|
-
return
|
|
57
|
+
var vn = /* @__PURE__ */ "children.footer.label.description.icon.summary.start.end.empty.highlight.actions.heading.placeholder.indicator.avatar.timestamp.header.details.formatted.hint.iconContent.content.caption.count.detail.leading.trailing.shortcut.info".split(".");
|
|
58
|
+
function Q(e, t, n = {}) {
|
|
59
|
+
let r = pn((r, i) => {
|
|
60
|
+
let a = Z(null), o = Z(null), [s, c] = gn([]);
|
|
61
|
+
return hn(i, () => ({ element: a.current }), []), X(() => (c([]), o.current = fn(a.current, c), () => {
|
|
65
62
|
o.current?.destroy(), o.current = null;
|
|
66
|
-
}), []),
|
|
63
|
+
}), []), X(() => {
|
|
67
64
|
o.current?.render(e, r, (e, t) => {
|
|
68
65
|
let r = /* @__PURE__ */ new Set([
|
|
69
|
-
...
|
|
66
|
+
...vn,
|
|
70
67
|
"options",
|
|
71
68
|
"source"
|
|
72
69
|
]), i = (e) => {
|
|
73
|
-
if (
|
|
70
|
+
if (mn(e)) return t(e);
|
|
74
71
|
if (Array.isArray(e)) {
|
|
75
72
|
let t = e.map(i);
|
|
76
73
|
return t.some((t, n) => t !== e[n]) ? t : e;
|
|
@@ -86,54 +83,40 @@ function Z(e, t, n = {}) {
|
|
|
86
83
|
for (let [r, i] of Object.entries(e)) r.startsWith("render") && typeof i == "function" && (a[r] = (...e) => (n.factoryCallbacks?.includes(r) && (e = e.slice(1), (r === "renderPlaceholder" || r === "renderSelectedValue") && (e = e.slice(0, 1))), t(i(...e))));
|
|
87
84
|
return a;
|
|
88
85
|
});
|
|
89
|
-
}, [r]),
|
|
86
|
+
}, [r]), Y("div", { style: { display: "contents" } }, Y("div", {
|
|
90
87
|
ref: a,
|
|
91
88
|
style: { display: "contents" },
|
|
92
89
|
"data-rv-react-host": t
|
|
93
|
-
}), ...s.map((e) =>
|
|
90
|
+
}), ...s.map((e) => _n(e.content, e.element, String(e.id))));
|
|
94
91
|
});
|
|
95
92
|
return r.displayName = `Rv${t}`, r;
|
|
96
93
|
}
|
|
97
94
|
//#endregion
|
|
98
|
-
//#region src/react-native-select.ts
|
|
99
|
-
var Q = J(({ onValueChange: e, onChange: t, ...n }, r) => {
|
|
100
|
-
let { class: i, ...a } = l("select", n);
|
|
101
|
-
return q("select", {
|
|
102
|
-
...a,
|
|
103
|
-
className: i,
|
|
104
|
-
ref: r,
|
|
105
|
-
onChange: (n) => {
|
|
106
|
-
t?.(n), n.defaultPrevented || e?.(n.currentTarget.value);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
Q.displayName = "RvNativeSelect";
|
|
111
|
-
//#endregion
|
|
112
95
|
//#region src/react.ts
|
|
113
|
-
var
|
|
96
|
+
var yn = /* @__PURE__ */ Q(n, "Icon"), bn = /* @__PURE__ */ Q(G, "RemovableChip"), xn = /* @__PURE__ */ Q(J, "Slider"), Sn = /* @__PURE__ */ Q(q, "RangeSlider"), Cn = /* @__PURE__ */ Q(K, "ResourcePicker"), wn = /* @__PURE__ */ Q(W, "FeedbackPanel"), Tn = /* @__PURE__ */ Q(i, "Input"), En = /* @__PURE__ */ Q(n, "SvgIcon"), Dn = /* @__PURE__ */ Q(I, "SvgButton"), On = /* @__PURE__ */ Q(s, "DeleteButton"), kn = /* @__PURE__ */ Q(c, "RemoveButton"), An = /* @__PURE__ */ Q(qe, "Checkbox"), jn = /* @__PURE__ */ Q(Je, "Switch"), Mn = /* @__PURE__ */ Q(L, "SegmentedSwitch"), Nn = /* @__PURE__ */ Q(He, "ChoiceChips"), Pn = /* @__PURE__ */ Q(Ve, "ChoiceChipInfoButton"), Fn = /* @__PURE__ */ Q(Ue, "ChoiceChip"), $ = /* @__PURE__ */ Q(Ye, "SearchInput"), In = /* @__PURE__ */ Q(G, "FilterChip"), Ln = /* @__PURE__ */ Q(Ze, "FormField"), Rn = /* @__PURE__ */ Q(Xe, "DisclosureSummary"), zn = /* @__PURE__ */ Q(U, "EditorSplitLayout"), Bn = /* @__PURE__ */ Q(H, "EditorPane"), Vn = /* @__PURE__ */ Q(R, "EditorList"), Hn = /* @__PURE__ */ Q(B, "EditorListItem"), Un = /* @__PURE__ */ Q(V, "EditorListItemContent"), Wn = /* @__PURE__ */ Q(z, "EditorListGroup"), Gn = /* @__PURE__ */ Q(at, "Calendar"), Kn = /* @__PURE__ */ Q(rt, "CalendarHeader"), qn = /* @__PURE__ */ Q(it, "CalendarWeekdays"), Jn = /* @__PURE__ */ Q(ot, "CalendarDay"), Yn = /* @__PURE__ */ Q(st, "CalendarMonthGrid"), Xn = /* @__PURE__ */ Q(ct, "CalendarYearGrid"), Zn = /* @__PURE__ */ Q(lt, "CalendarPicker"), Qn = /* @__PURE__ */ Q(K, "SharedResourcePicker"), $n = /* @__PURE__ */ Q(ut, "ResourcePickerAvatar"), er = /* @__PURE__ */ Q(ze, "ColorPalette"), tr = /* @__PURE__ */ Q(Be, "ColorPicker"), nr = /* @__PURE__ */ Q(r, "Dropdown", { factoryCallbacks: [
|
|
114
97
|
"renderOption",
|
|
115
98
|
"renderValue",
|
|
116
99
|
"renderPlaceholder",
|
|
117
100
|
"renderSelectedValue",
|
|
118
101
|
"renderNoResults"
|
|
119
|
-
] }),
|
|
102
|
+
] }), rr = /* @__PURE__ */ Q(o, "DropdownPopup"), ir = /* @__PURE__ */ Q(a, "DropdownPopupContent", { factoryCallbacks: [
|
|
120
103
|
"renderOption",
|
|
121
104
|
"renderValue",
|
|
122
105
|
"renderPlaceholder",
|
|
123
106
|
"renderSelectedValue",
|
|
124
107
|
"renderNoResults"
|
|
125
|
-
] }),
|
|
108
|
+
] }), ar = /* @__PURE__ */ Q(q, "PreactRangeSlider"), or = /* @__PURE__ */ Q(J, "SingleValueSlider"), sr = /* @__PURE__ */ Q(dt, "SliderField"), cr = /* @__PURE__ */ Q(C, "IconButton"), lr = /* @__PURE__ */ Q(ae, "ToggleButton"), ur = /* @__PURE__ */ Q(D, "ButtonGroup"), dr = /* @__PURE__ */ Q(f, "SegmentedControl"), fr = /* @__PURE__ */ Q(l, "Tabs"), pr = /* @__PURE__ */ Q(x, "TabPanel"), mr = /* @__PURE__ */ Q(u, "RadioGroup"), hr = /* @__PURE__ */ Q(b, "TextInput"), gr = /* @__PURE__ */ Q(ne, "Textarea"), _r = /* @__PURE__ */ Q(P, "NumberInput"), vr = /* @__PURE__ */ Q(de, "NumberStepper"), yr = /* @__PURE__ */ Q(O, "DateInput"), br = /* @__PURE__ */ Q(re, "TimeInput"), xr = /* @__PURE__ */ Q(m, "DateTimeInput"), Sr = /* @__PURE__ */ Q(y, "Chip"), Cr = /* @__PURE__ */ Q(g, "FieldHint"), wr = /* @__PURE__ */ Q(h, "FieldError"), Tr = /* @__PURE__ */ Q(E, "FormSection"), Er = /* @__PURE__ */ Q(S, "Disclosure"), Dr = /* @__PURE__ */ Q(se, "Panel"), Or = /* @__PURE__ */ Q(p, "Toolbar"), kr = /* @__PURE__ */ Q(ee, "ToolbarGroup"), Ar = /* @__PURE__ */ Q(te, "ToolbarSeparator"), jr = /* @__PURE__ */ Q(k, "Badge"), Mr = /* @__PURE__ */ Q(T, "CountBadge"), Nr = /* @__PURE__ */ Q(d, "Spinner"), Pr = /* @__PURE__ */ Q(v, "LoadingOverlay"), Fr = /* @__PURE__ */ Q(A, "EmptyState"), Ir = /* @__PURE__ */ Q(_, "Menu"), Lr = /* @__PURE__ */ Q(le, "MenuItem"), Rr = /* @__PURE__ */ Q(j, "MenuSeparator"), zr = /* @__PURE__ */ Q(ie, "Submenu"), Br = /* @__PURE__ */ Q(ce, "ResizeHandle"), Vr = /* @__PURE__ */ Q(N, "Pagination"), Hr = /* @__PURE__ */ Q(ue, "CircularProgress"), Ur = /* @__PURE__ */ Q(M, "Rating"), Wr = /* @__PURE__ */ Q(w, "Button"), Gr = /* @__PURE__ */ Q(H, "Pane"), Kr = /* @__PURE__ */ Q(U, "SplitLayout"), qr = /* @__PURE__ */ Q(oe, "Alert"), Jr = /* @__PURE__ */ Q(R, "Listbox"), Yr = /* @__PURE__ */ Q(B, "ListboxOption"), Xr = /* @__PURE__ */ Q(z, "ListboxGroup"), Zr = /* @__PURE__ */ Q(V, "ListboxOptionContent"), Qr = /* @__PURE__ */ Q(W, "StatusFeedbackPanel"), $r = /* @__PURE__ */ Q(Re, "StatusBadge"), ei = /* @__PURE__ */ Q(yt, "Combobox", { factoryCallbacks: [
|
|
126
109
|
"renderOption",
|
|
127
110
|
"renderValue",
|
|
128
111
|
"renderPlaceholder",
|
|
129
112
|
"renderSelectedValue",
|
|
130
113
|
"renderNoResults"
|
|
131
|
-
] }),
|
|
114
|
+
] }), ti = /* @__PURE__ */ Q(mt, "MultiSelect", { factoryCallbacks: [
|
|
132
115
|
"renderOption",
|
|
133
116
|
"renderValue",
|
|
134
117
|
"renderPlaceholder",
|
|
135
118
|
"renderSelectedValue",
|
|
136
119
|
"renderNoResults"
|
|
137
|
-
] }),
|
|
120
|
+
] }), ni = /* @__PURE__ */ Q(ft, "Avatar"), ri = /* @__PURE__ */ Q(bt, "ProgressBar"), ii = /* @__PURE__ */ Q(ht, "Popover"), ai = /* @__PURE__ */ Q(vt, "Tooltip"), oi = /* @__PURE__ */ Q(wt, "Dialog"), si = /* @__PURE__ */ Q(St, "ConfirmDialog"), ci = /* @__PURE__ */ Q(pt, "DatePicker"), li = /* @__PURE__ */ Q(_t, "DateRangePicker"), ui = /* @__PURE__ */ Q(ye, "DialogHeader"), di = /* @__PURE__ */ Q(ve, "DialogBody"), fi = /* @__PURE__ */ Q(fe, "DialogFooter"), pi = /* @__PURE__ */ Q(Ot, "DistributionChart"), mi = /* @__PURE__ */ Q(Tt, "BarChart"), hi = /* @__PURE__ */ Q(Et, "LineChart"), gi = /* @__PURE__ */ Q(Dt, "AreaChart"), _i = /* @__PURE__ */ Q(kt, "BrushRange"), vi = /* @__PURE__ */ Q(Nt, "OptionButton"), yi = /* @__PURE__ */ Q(jt, "HighlightedTextInput"), bi = /* @__PURE__ */ Q(Mt, "InlineFieldGroup"), xi = /* @__PURE__ */ Q(At, "Legend"), Si = /* @__PURE__ */ Q(Pt, "TimeGrid"), Ci = /* @__PURE__ */ Q(Bt, "FieldIcon"), wi = /* @__PURE__ */ Q(Yt, "FieldSummary"), Ti = /* @__PURE__ */ Q(Ht, "FieldLibrary"), Ei = /* @__PURE__ */ Q(zt, "FieldGroupHeading"), Di = /* @__PURE__ */ Q(Rt, "FieldGroup"), Oi = /* @__PURE__ */ Q(Wt, "FieldList"), ki = /* @__PURE__ */ Q(qt, "FieldRow"), Ai = /* @__PURE__ */ Q(It, "FieldContent"), ji = /* @__PURE__ */ Q(Vt, "FieldItem"), Mi = /* @__PURE__ */ Q(Ut, "FieldLibraryList"), Ni = /* @__PURE__ */ Q(Xt, "SelectedField"), Pi = /* @__PURE__ */ Q(Ft, "FieldActions"), Fi = /* @__PURE__ */ Q(Jt, "FieldStatusBadge"), Ii = /* @__PURE__ */ Q(Gt, "FieldRemoveButton"), Li = /* @__PURE__ */ Q(Kt, "FieldRemoveIcon"), Ri = /* @__PURE__ */ Q(Lt, "FieldDropIndicator"), zi = /* @__PURE__ */ Q(_e, "DialogForm"), Bi = /* @__PURE__ */ Q(me, "DialogCloseButton"), Vi = /* @__PURE__ */ Q(be, "DialogActionFooter"), Hi = /* @__PURE__ */ Q(ge, "DialogActions"), Ui = /* @__PURE__ */ Q(pe, "DialogTitleInput"), Wi = /* @__PURE__ */ Q(he, "EditableDialogHeader"), Gi = /* @__PURE__ */ Q(F, "ControlTooltip"), Ki = /* @__PURE__ */ Q(en, "InspectorSection"), qi = /* @__PURE__ */ Q(Qt, "IconChoiceGroup"), Ji = /* @__PURE__ */ Q($t, "IconToggleButton"), Yi = /* @__PURE__ */ Q(tn, "TypographyControls"), Xi = /* @__PURE__ */ Q(Zt, "ComparisonPreview"), Zi = /* @__PURE__ */ Q(Ge, "FilterBadgeInfoButton"), Qi = /* @__PURE__ */ Q(We, "FilterBadge"), $i = /* @__PURE__ */ Q(e, "RatingStar"), ea = /* @__PURE__ */ Q(t, "RatingChoice"), ta = /* @__PURE__ */ Q(nn, "ReorderList"), na = /* @__PURE__ */ Q(rn, "ReorderHandle"), ra = /* @__PURE__ */ Q(an, "TimelineTrack"), ia = /* @__PURE__ */ Q(Ke, "ActivityMessage"), aa = /* @__PURE__ */ Q(on, "NumberDraft"), oa = /* @__PURE__ */ Q(sn, "MaskedDraft"), sa = /* @__PURE__ */ Q(tt, "DurationField"), ca = /* @__PURE__ */ Q(nt, "DurationDraft"), la = /* @__PURE__ */ Q(cn, "HtmlEditor"), ua = /* @__PURE__ */ Q(Qe, "TemporalPicker"), da = /* @__PURE__ */ Q($e, "TemporalDraft"), fa = /* @__PURE__ */ Q(et, "DateTimeField"), pa = /* @__PURE__ */ Q(un, "AssigneePicker"), ma = /* @__PURE__ */ Q(ln, "AssigneeField"), ha = /* @__PURE__ */ Q(dn, "AssigneePickerLayout"), ga = /* @__PURE__ */ Q(De, "AiPromptInput"), _a = /* @__PURE__ */ Q(xe, "AiSuggestions"), va = /* @__PURE__ */ Q(Te, "AiActionStatus"), ya = /* @__PURE__ */ Q(Ae, "AiChangePreview"), ba = /* @__PURE__ */ Q(Ee, "AiResult"), xa = /* @__PURE__ */ Q(Ne, "AiAssistant"), Sa = /* @__PURE__ */ Q(Ie, "AiRequestTrail"), Ca = /* @__PURE__ */ Q(Ct, "PdfViewer"), wa = /* @__PURE__ */ Q(xt, "PdfViewerToolbar"), Ta = /* @__PURE__ */ Q(je, "AiChat"), Ea = /* @__PURE__ */ Q(Oe, "AiChatContent"), Da = /* @__PURE__ */ Q(Pe, "AiChatComposer"), Oa = /* @__PURE__ */ Q(Se, "AiChatEmptyState"), ka = /* @__PURE__ */ Q(Me, "AiMessage"), Aa = /* @__PURE__ */ Q(Ce, "AiMessageContent"), ja = /* @__PURE__ */ Q(Fe, "AiMessageActions"), Ma = /* @__PURE__ */ Q(ke, "AiReasoning"), Na = /* @__PURE__ */ Q(Le, "AiTask"), Pa = /* @__PURE__ */ Q(we, "AiTaskItem");
|
|
138
121
|
//#endregion
|
|
139
|
-
export {
|
|
122
|
+
export { ia as ActivityMessage, va as AiActionStatus, xa as AiAssistant, ya as AiChangePreview, Ta as AiChat, Da as AiChatComposer, Ea as AiChatContent, Oa as AiChatEmptyState, ka as AiMessage, ja as AiMessageActions, Aa as AiMessageContent, ga as AiPromptInput, Ma as AiReasoning, Sa as AiRequestTrail, ba as AiResult, _a as AiSuggestions, Na as AiTask, Pa as AiTaskItem, qr as Alert, gi as AreaChart, ma as AssigneeField, pa as AssigneePicker, ha as AssigneePickerLayout, ni as Avatar, jr as Badge, mi as BarChart, _i as BrushRange, Wr as Button, ur as ButtonGroup, Gn as Calendar, Jn as CalendarDay, Kn as CalendarHeader, Yn as CalendarMonthGrid, Zn as CalendarPicker, qn as CalendarWeekdays, Xn as CalendarYearGrid, An as Checkbox, Sr as Chip, Fn as ChoiceChip, Pn as ChoiceChipInfoButton, Nn as ChoiceChips, Hr as CircularProgress, er as ColorPalette, tr as ColorPicker, ei as Combobox, Xi as ComparisonPreview, si as ConfirmDialog, Gi as ControlTooltip, Mr as CountBadge, yr as DateInput, ci as DatePicker, li as DateRangePicker, fa as DateTimeField, xr as DateTimeInput, On as DeleteButton, oi as Dialog, Vi as DialogActionFooter, Hi as DialogActions, di as DialogBody, Bi as DialogCloseButton, fi as DialogFooter, zi as DialogForm, ui as DialogHeader, Ui as DialogTitleInput, Er as Disclosure, Rn as DisclosureSummary, pi as DistributionChart, nr as Dropdown, rr as DropdownPopup, ir as DropdownPopupContent, ca as DurationDraft, sa as DurationField, Wi as EditableDialogHeader, Vn as EditorList, Wn as EditorListGroup, Hn as EditorListItem, Un as EditorListItemContent, Bn as EditorPane, zn as EditorSplitLayout, Fr as EmptyState, wn as FeedbackPanel, Pi as FieldActions, Ai as FieldContent, Ri as FieldDropIndicator, wr as FieldError, Di as FieldGroup, Ei as FieldGroupHeading, Cr as FieldHint, Ci as FieldIcon, ji as FieldItem, Ti as FieldLibrary, Mi as FieldLibraryList, Oi as FieldList, Ii as FieldRemoveButton, Li as FieldRemoveIcon, ki as FieldRow, Fi as FieldStatusBadge, wi as FieldSummary, Qi as FilterBadge, Zi as FilterBadgeInfoButton, In as FilterChip, Ln as FormField, Tr as FormSection, yi as HighlightedTextInput, la as HtmlEditor, yn as Icon, cr as IconButton, qi as IconChoiceGroup, Ji as IconToggleButton, bi as InlineFieldGroup, Tn as Input, Ki as InspectorSection, xi as Legend, hi as LineChart, Jr as Listbox, Xr as ListboxGroup, Yr as ListboxOption, Zr as ListboxOptionContent, Pr as LoadingOverlay, oa as MaskedDraft, Ir as Menu, Lr as MenuItem, Rr as MenuSeparator, ti as MultiSelect, aa as NumberDraft, _r as NumberInput, vr as NumberStepper, vi as OptionButton, Vr as Pagination, Gr as Pane, Dr as Panel, Ca as PdfViewer, wa as PdfViewerToolbar, ii as Popover, ar as PreactRangeSlider, ri as ProgressBar, mr as RadioGroup, Sn as RangeSlider, Ur as Rating, ea as RatingChoice, $i as RatingStar, bn as RemovableChip, kn as RemoveButton, na as ReorderHandle, ta as ReorderList, Br as ResizeHandle, Cn as ResourcePicker, $n as ResourcePickerAvatar, $ as SearchInput, dr as SegmentedControl, Mn as SegmentedSwitch, Ni as SelectedField, Qn as SharedResourcePicker, or as SingleValueSlider, xn as Slider, sr as SliderField, Nr as Spinner, Kr as SplitLayout, $r as StatusBadge, Qr as StatusFeedbackPanel, zr as Submenu, Dn as SvgButton, En as SvgIcon, jn as Switch, pr as TabPanel, fr as Tabs, da as TemporalDraft, ua as TemporalPicker, hr as TextInput, gr as Textarea, Si as TimeGrid, br as TimeInput, ra as TimelineTrack, lr as ToggleButton, Or as Toolbar, kr as ToolbarGroup, Ar as ToolbarSeparator, ai as Tooltip, Yi as TypographyControls, Q as createReactAdapter, gt as defaultPdfViewerText };
|
package/reorder-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as ReorderHandle, n as ReorderList } from "./_chunks/reorder-list-
|
|
1
|
+
export { t as ReorderHandle, n as ReorderList } from "./_chunks/reorder-list-CSlqAGHw.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t } from "../_chunks/popup-CT2uD3go.js";
|
|
3
3
|
//#region src/resource-picker/resource-picker-popup.tsx
|
|
4
4
|
function n({ triggerRef: n, portalTarget: r, popupId: i, children: a }) {
|
|
5
5
|
return /* @__PURE__ */ e(t, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c as e, i as t, n, o as r, t as i } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as a } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { t as o } from "../_chunks/chevron-down-GbplLa6s.js";
|
|
4
|
+
import { createControlId as s } from "../core/control-id.js";
|
|
5
5
|
import { t as ee } from "../_chunks/xmark-DD_PBvZI.js";
|
|
6
6
|
import { SearchInput as c } from "../search-input/index.js";
|
|
7
7
|
import { resourcePickerClasses as l, resourcePickerDataAttribute as u, resourcePickerIdKey as d } from "./resource-picker.utils.js";
|
|
@@ -10,7 +10,7 @@ import { ResourcePickerOption as p } from "./resource-picker-option.js";
|
|
|
10
10
|
import { ResourcePickerPopup as m } from "./resource-picker-popup.js";
|
|
11
11
|
//#region src/resource-picker/resource-picker.tsx
|
|
12
12
|
function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNames: x, disabled: S = !1, readOnly: C = !1, presentation: w = "inline", multiple: T = !0, preserveOrder: E = !1, unassigned: D, resourceDataAttribute: O, isResourceDisabled: k, getAvatarColor: A }) {
|
|
13
|
-
let j = i(null), M = i(null), N = i(null), P = i(null), F = i(!1), [I] = t(() =>
|
|
13
|
+
let j = i(null), M = i(null), N = i(null), P = i(null), F = i(!1), [I] = t(() => s("rv-resource-list")), L = `${I}-popup`, R = w === "dropdown", [z, B] = t(!1), [V, H] = t(""), [U, W] = t(0), G = r(() => {
|
|
14
14
|
B(!1), H("");
|
|
15
15
|
}, []), K = new Set(v.map(d)), q = n(() => E ? [...h] : [...h].sort((e, t) => e.name.localeCompare(t.name, void 0, {
|
|
16
16
|
numeric: !0,
|
|
@@ -178,7 +178,7 @@ function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNa
|
|
|
178
178
|
}), /* @__PURE__ */ a("span", {
|
|
179
179
|
class: "rv-resource-picker__chevron",
|
|
180
180
|
"aria-hidden": "true",
|
|
181
|
-
dangerouslySetInnerHTML: { __html:
|
|
181
|
+
dangerouslySetInnerHTML: { __html: o }
|
|
182
182
|
})]
|
|
183
183
|
}) : null, R ? z && Q ? /* @__PURE__ */ a(m, {
|
|
184
184
|
triggerRef: M,
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
--rv-control-border: var(--rv-resource-picker-border, var(--rv-ui-border));
|
|
19
19
|
}
|
|
20
20
|
.rv-resource-picker__search-control input {
|
|
21
|
-
min-height: var(--rv-resource-picker-search-height,
|
|
21
|
+
min-height: var(--rv-resource-picker-search-height, var(--rv-control-height, 32px));
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.rv-resource-picker__list {
|
|
@@ -133,13 +133,16 @@
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
.rv-resource-picker__control {
|
|
136
|
+
font-family: inherit;
|
|
137
|
+
font-size: var(--rv-control-font-size, 0.875rem);
|
|
138
|
+
line-height: 1;
|
|
136
139
|
display: flex;
|
|
137
140
|
box-sizing: border-box;
|
|
138
141
|
width: 100%;
|
|
139
|
-
min-height: var(--rv-resource-picker-control-height,
|
|
142
|
+
min-height: var(--rv-resource-picker-control-height, var(--rv-control-height, 32px));
|
|
140
143
|
align-items: center;
|
|
141
144
|
gap: 8px;
|
|
142
|
-
padding: var(--rv-resource-picker-control-padding,
|
|
145
|
+
padding: var(--rv-resource-picker-control-padding, 1px 10px);
|
|
143
146
|
border: 1px solid var(
|
|
144
147
|
--rv-resource-picker-border,
|
|
145
148
|
color-mix(in srgb, currentColor 14%, transparent)
|
package/rich-text/engine.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
export type
|
|
3
|
-
export interface
|
|
4
|
-
formats:
|
|
5
|
-
block:
|
|
1
|
+
export type HtmlFormat = 'bold' | 'italic' | 'strikethrough' | 'code';
|
|
2
|
+
export type HtmlBlock = 'paragraph' | 'h1' | 'h2' | 'quote' | 'code' | 'bullet' | 'ordered';
|
|
3
|
+
export interface HtmlSelection {
|
|
4
|
+
formats: HtmlFormat[];
|
|
5
|
+
block: HtmlBlock | null;
|
|
6
6
|
link: boolean;
|
|
7
7
|
}
|
|
8
|
-
export declare const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
format(mark:
|
|
13
|
-
block(value:
|
|
14
|
-
captureSelection()
|
|
15
|
-
link(value: string)
|
|
16
|
-
destroy()
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export declare function createMarkdownEngine(root: HTMLElement, markdown: string, onChange: (value: string, unsafe: boolean) => void, onSelectionChange?: (selection: MarkdownSelection) => void): MarkdownEngine;
|
|
20
|
-
/** Parse through Lexical so escaped/entity-encoded Markdown link URLs are checked after decoding. */
|
|
21
|
-
export declare function hasUnsafeMarkdownLinks(markdown: string): boolean;
|
|
8
|
+
export declare const emptyHtmlSelection: HtmlSelection;
|
|
9
|
+
/** Native Range editing and bounded local history. No browser execCommand or editor library. */
|
|
10
|
+
export declare function createHtmlEngine(root: HTMLElement, html: string, onChange: (html: string) => void, onSelectionChange?: (selection: HtmlSelection) => void): {
|
|
11
|
+
setHtml: (value: string) => void;
|
|
12
|
+
format: (mark: HtmlFormat) => void;
|
|
13
|
+
block: (value: HtmlBlock) => void;
|
|
14
|
+
captureSelection: () => void;
|
|
15
|
+
link: (value: string) => boolean;
|
|
16
|
+
destroy: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type HtmlEngine = ReturnType<typeof createHtmlEngine>;
|
package/rich-text/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EditorActionText, EditorCommitOptions } from '../editor-actions';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
4
|
-
export interface
|
|
2
|
+
import { HtmlEditorText } from './translations';
|
|
3
|
+
export { defaultHtmlEditorText, type HtmlEditorText } from './translations';
|
|
4
|
+
export interface HtmlEditorProps extends EditorCommitOptions {
|
|
5
5
|
value: string;
|
|
6
6
|
onApply: (value: string) => void;
|
|
7
7
|
onCancel: () => void;
|
|
8
8
|
required?: boolean;
|
|
9
9
|
maxLength?: number;
|
|
10
|
-
text?: Partial<
|
|
10
|
+
text?: Partial<HtmlEditorText>;
|
|
11
11
|
actions?: Partial<EditorActionText>;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
13
|
+
export declare function HtmlEditor(props: HtmlEditorProps): import("../_vendor/preact/src/index").JSX.Element;
|
|
14
|
+
export { sanitizeRichTextHtml, isSafeRichTextLink } from './model';
|
|
15
|
+
export { htmlRenderNodes, type HtmlRenderNode } from './render-model';
|
package/rich-text/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as
|
|
1
|
+
export { t as HtmlEditor, r as defaultHtmlEditorText, n as htmlRenderNodes, i as isSafeRichTextLink, a as sanitizeRichTextHtml } from "../_chunks/rich-text-CH7gIqOS.js";
|
package/rich-text/model.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare function
|
|
1
|
+
export declare function isSafeRichTextLink(value: string): boolean;
|
|
2
|
+
/** Parse inertly, then rebuild nodes; never mount user-provided HTML or attributes. */
|
|
3
|
+
export declare function richTextFragment(html: string, doc?: Document): DocumentFragment;
|
|
4
|
+
export declare function sanitizeRichTextHtml(html: string, doc?: Document): string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
export interface MarkdownRenderNode {
|
|
1
|
+
export interface HtmlRenderNode {
|
|
3
2
|
tag?: string;
|
|
4
3
|
text?: string;
|
|
5
4
|
attrs?: Record<string, string | number>;
|
|
6
|
-
children?: readonly
|
|
5
|
+
children?: readonly HtmlRenderNode[];
|
|
7
6
|
}
|
|
8
|
-
/**
|
|
9
|
-
export declare function
|
|
7
|
+
/** Only allowlisted nodes reach a framework renderer; fresh VNodes are created per cell. */
|
|
8
|
+
export declare function htmlRenderNodes(html: string): readonly HtmlRenderNode[];
|
package/rich-text/style.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.rv-
|
|
1
|
+
.rv-rich-text-editor {
|
|
2
2
|
width: min(560px, calc(100vw - 48px));
|
|
3
3
|
&__toolbar {
|
|
4
4
|
display: flex;
|
|
@@ -60,22 +60,13 @@
|
|
|
60
60
|
padding-inline-start: 12px;
|
|
61
61
|
margin-inline: 0;
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
font-weight: 700;
|
|
65
|
-
}
|
|
66
|
-
.rv-markdown-italic {
|
|
67
|
-
font-style: italic;
|
|
68
|
-
}
|
|
69
|
-
.rv-markdown-strike {
|
|
70
|
-
text-decoration: line-through;
|
|
71
|
-
}
|
|
72
|
-
.rv-markdown-inline-code {
|
|
63
|
+
&__visual code {
|
|
73
64
|
font-family: ui-monospace, monospace;
|
|
74
65
|
background: var(--rv-ui-surface-sunken);
|
|
75
66
|
}
|
|
76
67
|
}
|
|
77
68
|
|
|
78
|
-
.rv-
|
|
69
|
+
.rv-rich-text-cell {
|
|
79
70
|
color: inherit;
|
|
80
71
|
font: inherit;
|
|
81
72
|
white-space: pre-wrap;
|
package/rich-text/toolbar.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
export declare function
|
|
4
|
-
engine: () =>
|
|
5
|
-
selection:
|
|
6
|
-
text: Required<
|
|
1
|
+
import { HtmlEngine, HtmlSelection } from './engine';
|
|
2
|
+
import { HtmlEditorText } from './translations';
|
|
3
|
+
export declare function HtmlToolbar({ engine, selection, text, showLink, onLink }: {
|
|
4
|
+
engine: () => HtmlEngine | undefined;
|
|
5
|
+
selection: HtmlSelection;
|
|
6
|
+
text: Required<HtmlEditorText>;
|
|
7
7
|
showLink: boolean;
|
|
8
8
|
onLink: () => void;
|
|
9
9
|
}): import("../_vendor/preact/src/index").JSX.Element;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
export interface
|
|
1
|
+
/** Visible and accessible labels for the shared HTML editor. */
|
|
2
|
+
export interface HtmlEditorText {
|
|
3
3
|
visual: string;
|
|
4
4
|
source: string;
|
|
5
5
|
label: string;
|
|
6
|
-
unsupported: string;
|
|
7
6
|
unsafeLink: string;
|
|
8
7
|
requiredValue?: string;
|
|
9
8
|
tooLong?: string;
|
|
@@ -25,16 +24,5 @@ export interface MarkdownEditorText {
|
|
|
25
24
|
numberedList?: string;
|
|
26
25
|
quote?: string;
|
|
27
26
|
codeBlock?: string;
|
|
28
|
-
images?: string;
|
|
29
|
-
tables?: string;
|
|
30
|
-
html?: string;
|
|
31
|
-
referenceLinks?: string;
|
|
32
|
-
taskLists?: string;
|
|
33
|
-
horizontalRules?: string;
|
|
34
|
-
alternateHeadings?: string;
|
|
35
|
-
highlight?: string;
|
|
36
|
-
extensions?: string;
|
|
37
|
-
indentedCode?: string;
|
|
38
27
|
}
|
|
39
|
-
export declare const
|
|
40
|
-
export declare function markdownIssueLabels(issues: string[], text: Required<MarkdownEditorText>): string;
|
|
28
|
+
export declare const defaultHtmlEditorText: Required<HtmlEditorText>;
|
package/select.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentChildren, JSX } from './_vendor/preact/src/index';
|
|
2
|
+
import { DropdownOption } from './dropdown/dropdown.types';
|
|
3
|
+
export type SelectOptionProps = JSX.IntrinsicElements['option'];
|
|
4
|
+
type Attributes = Omit<JSX.IntrinsicElements['select'], 'value' | 'defaultValue' | 'onChange' | 'onInput' | 'multiple' | 'ref'>;
|
|
5
|
+
export type SelectProps = Attributes & {
|
|
6
|
+
value?: string | number | readonly string[];
|
|
7
|
+
defaultValue?: string | number | readonly string[];
|
|
8
|
+
/** Optional domain policy for option descriptors; no native option nodes are mounted. */
|
|
9
|
+
optionPolicy?: (props: SelectOptionProps) => SelectOptionProps;
|
|
10
|
+
} & ({
|
|
11
|
+
multiple?: false;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
} | {
|
|
14
|
+
multiple: true;
|
|
15
|
+
onValueChange?: (value: string[]) => void;
|
|
16
|
+
});
|
|
17
|
+
/** JSX options are data descriptors for Dropdown, never browser-native controls. */
|
|
18
|
+
export declare function selectOptions(children: ComponentChildren, policy?: SelectProps['optionPolicy'], group?: string, disabled?: boolean): DropdownOption<string>[];
|
|
19
|
+
export declare function Select(props: SelectProps): JSX.Element;
|
|
20
|
+
export {};
|
package/select.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { s as Select, c as selectOptions } from "./_chunks/native-control-C_yok8_-.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { isUiMotionEnabled as e } from "../core/motion.js";
|
|
2
|
+
import { showTopLayerPopup as t } from "../core/top-layer-popup.js";
|
|
3
3
|
import { animateStatusFeedback as n } from "./motion.js";
|
|
4
4
|
//#region src/status-feedback/exit-snapshot.ts
|
|
5
5
|
function r(r) {
|
|
6
6
|
let i = r.ownerDocument.defaultView;
|
|
7
|
-
if (!i || typeof r.animate != "function" || !
|
|
7
|
+
if (!i || typeof r.animate != "function" || !e(r)) return;
|
|
8
8
|
let a = r.getBoundingClientRect(), o = r.cloneNode(!0), s = [r, ...r.querySelectorAll("*")], c = [o, ...o.querySelectorAll("*")];
|
|
9
9
|
o.removeAttribute("popover"), o.removeAttribute("id"), o.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), o.querySelectorAll("[role], [aria-live]").forEach((e) => {
|
|
10
10
|
e.removeAttribute("role"), e.removeAttribute("aria-live");
|
|
@@ -24,7 +24,7 @@ function r(r) {
|
|
|
24
24
|
borderColor: l.borderColor,
|
|
25
25
|
fontFamily: l.fontFamily,
|
|
26
26
|
boxShadow: l.boxShadow
|
|
27
|
-
}), r.ownerDocument.body.append(o),
|
|
27
|
+
}), r.ownerDocument.body.append(o), t(o), s.forEach((e, t) => {
|
|
28
28
|
e.scrollTop && (c[t].scrollTop = e.scrollTop), e.scrollLeft && (c[t].scrollLeft = e.scrollLeft);
|
|
29
29
|
});
|
|
30
30
|
let u = () => {
|
package/status-feedback/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { renderStatusBadge as e } from "./badge.js";
|
|
2
|
-
import {
|
|
2
|
+
import { n as t, r as n, t as r } from "../_chunks/render-m5eMMwFR.js";
|
|
3
3
|
import { StatusFeedbackPopoverController as i } from "./popover.js";
|
|
4
|
-
export {
|
|
4
|
+
export { r as StatusBadge, t as StatusFeedbackPanel, i as StatusFeedbackPopoverController, e as renderStatusBadge, n as renderStatusFeedbackPanel };
|