@revolist/ui 4.0.1-rc → 4.0.3-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 -262
- package/_chunks/calendar-xpZ0v3xf.js +258 -0
- package/_chunks/chart-frame-Cmc7xU1i.js +130 -0
- package/_chunks/choice-chips-CHQTUdLs.js +110 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-D8vyPfld.js} +41 -41
- package/_chunks/color-picker-CudqPYZo.js +138 -0
- package/_chunks/component-C_T2VN5u.js +863 -0
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BMOOmqx5.js} +0 -4
- package/_chunks/control-AHKXD5Eu.js +93 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-uscKfAnV.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DsNi8V8I.js} +229 -214
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-DrVFX13g.js} +21 -21
- package/_chunks/date-time-qIhp5vaX.js +768 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
- package/_chunks/dialog.parts-CKGkC5zP.js +134 -0
- package/_chunks/duration-CL68Em0o.js +272 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-WDdtVDNA.js} +8 -8
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/framework-mount--RTLIqE-.js +54 -0
- package/_chunks/history-controls-B3u3INEK.js +27 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DQ1cpppK.js +257 -0
- package/_chunks/native-control-C_yok8_-.js +605 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BKwA5FnM.js} +89 -89
- package/_chunks/picker-h1P5RUgp.js +122 -0
- package/_chunks/popup-CT2uD3go.js +367 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-DZgmaic0.js} +10 -10
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/reorder-list-CSlqAGHw.js +59 -0
- 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/_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/_chat.scss +195 -0
- package/ai/_style.scss +105 -34
- package/ai/chat.d.ts +63 -0
- package/ai/components.d.ts +20 -4
- 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/request-trail.d.ts +1 -1
- package/ai/transcript.d.ts +25 -0
- package/ai/translation-context.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/angular/angular.js +0 -3
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +86 -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.d.ts +2 -1
- 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 +2 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/_calendar.scss +7 -2
- 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 +34 -23
- package/control-attributes.js +7 -7
- package/control-presentation.js +18 -18
- package/controls.d.ts +12 -10
- package/controls.js +3 -3
- 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/style.scss +4 -4
- 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 +6 -3
- package/distribution-chart/bar-chart.js +10 -6
- package/distribution-chart/chart-frame.d.ts +3 -2
- 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 +3 -2
- package/dropdown/content.js +1 -141
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- 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.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +1 -140
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/duration/style.scss +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/fieldset.d.ts +3 -0
- 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 +30 -30
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.js +16 -21
- package/form-controls/index.view.d.ts +2 -4
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +59 -51
- 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 +105 -100
- 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 +215 -207
- package/history-controls.d.ts +14 -0
- package/history-controls.js +1 -0
- 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 +14 -12
- package/native-control.js +3 -26
- package/native-styles.css +1 -1
- package/native.js +40 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +18 -14
- package/pagination.d.ts +3 -0
- package/pagination.js +43 -33
- 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/style.scss +3 -4
- 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.d.ts +2 -0
- package/preact.js +62 -62
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +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.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/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 +7 -7
- package/rich-text/translations.d.ts +3 -15
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- 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.d.ts +2 -2
- 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 +49 -49
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +0 -21
- package/svelte.js +33 -68
- 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 +5 -1
- package/timeline-track/index.js +91 -74
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +138 -119
- package/vue.js +150 -174
- 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/dropdown-CkGQBm1Q.js +0 -357
- 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
- package/_chunks/rich-text-2Rla349o.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
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t } from "../_chunks/
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { c as e, i as t, n, o as r, t as i } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t as a } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { t as o } from "../_chunks/chevron-down-GbplLa6s.js";
|
|
4
|
+
import { createControlId as s } from "../core/control-id.js";
|
|
5
|
+
import { t as ee } from "../_chunks/xmark-DD_PBvZI.js";
|
|
6
|
+
import { SearchInput as c } from "../search-input/index.js";
|
|
7
|
+
import { resourcePickerClasses as l, resourcePickerDataAttribute as u, resourcePickerIdKey as d } from "./resource-picker.utils.js";
|
|
8
|
+
import { ResourcePickerAvatar as f } from "./resource-picker-avatar.js";
|
|
9
|
+
import { ResourcePickerOption as p } from "./resource-picker-option.js";
|
|
10
|
+
import { ResourcePickerPopup as m } from "./resource-picker-popup.js";
|
|
11
11
|
//#region src/resource-picker/resource-picker.tsx
|
|
12
|
-
function
|
|
13
|
-
let j =
|
|
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(() => 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
|
-
}, []), K = new Set(
|
|
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,
|
|
17
17
|
sensitivity: "base"
|
|
18
|
-
})), [E,
|
|
18
|
+
})), [E, h]), J = n(() => {
|
|
19
19
|
let e = V.trim().toLocaleLowerCase();
|
|
20
20
|
return e ? q.filter((t) => `${t.name} ${t.role ?? ""}`.toLocaleLowerCase().includes(e)) : q;
|
|
21
|
-
}, [V, q]), Y =
|
|
22
|
-
let e = new Map(
|
|
23
|
-
return
|
|
24
|
-
}, [
|
|
25
|
-
|
|
21
|
+
}, [V, q]), Y = n(() => {
|
|
22
|
+
let e = new Map(h.map((e) => [d(e.id), e]));
|
|
23
|
+
return v.map((t) => e.get(d(t))).filter((e) => !!e);
|
|
24
|
+
}, [h, v]), X = R && U >= 0 && U < J.length ? `${I}-option-${U}` : void 0;
|
|
25
|
+
e(() => {
|
|
26
26
|
if (!R || !z) return;
|
|
27
27
|
let e = (e) => {
|
|
28
28
|
let t = e.target, n = j.current?.ownerDocument.getElementById(L);
|
|
@@ -41,80 +41,80 @@ function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNa
|
|
|
41
41
|
R,
|
|
42
42
|
z,
|
|
43
43
|
L
|
|
44
|
-
]),
|
|
44
|
+
]), e(() => {
|
|
45
45
|
W(J.length > 0 ? 0 : -1);
|
|
46
|
-
}, [J]),
|
|
46
|
+
}, [J]), e(() => {
|
|
47
47
|
if (!z || !X || !P.current || !F.current) return;
|
|
48
48
|
let e = P.current.ownerDocument.getElementById(X);
|
|
49
49
|
e && P.current.contains(e) && e.closest(".rv-resource-picker__option")?.scrollIntoView?.({ block: "nearest" });
|
|
50
50
|
}, [X, z]);
|
|
51
51
|
let Z = (e) => {
|
|
52
|
-
|
|
53
|
-
},
|
|
52
|
+
C || (b(e), !T && R && G());
|
|
53
|
+
}, te = () => {
|
|
54
54
|
let e = J[U];
|
|
55
55
|
if (!e) return;
|
|
56
|
-
let t =
|
|
57
|
-
(!k?.(e) || K.has(t)) && Z(K.has(t) ?
|
|
58
|
-
},
|
|
56
|
+
let t = d(e.id);
|
|
57
|
+
(!k?.(e) || K.has(t)) && Z(K.has(t) ? v.filter((e) => d(e) !== t) : T ? g([...v, e.id]) : [e.id]);
|
|
58
|
+
}, ne = (e) => {
|
|
59
59
|
if (e.key === "Escape") e.preventDefault(), e.stopPropagation(), G(), M.current?.focus();
|
|
60
60
|
else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
61
61
|
if (e.preventDefault(), e.stopPropagation(), !J.length) return;
|
|
62
62
|
F.current = !0, W((t) => e.key === "ArrowDown" ? t >= J.length - 1 ? 0 : t + 1 : t <= 0 ? J.length - 1 : t - 1);
|
|
63
|
-
} else e.key === "Enter" && (e.preventDefault(), e.stopPropagation(),
|
|
64
|
-
}, Q = typeof document > "u" ? null : j.current?.closest("dialog, .rv-dialog-overlay") ?? document.body, $ = /* @__PURE__ */
|
|
63
|
+
} else e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), te());
|
|
64
|
+
}, Q = typeof document > "u" ? null : j.current?.closest("dialog, .rv-dialog-overlay") ?? document.body, $ = /* @__PURE__ */ a("div", {
|
|
65
65
|
class: "rv-resource-picker__popover",
|
|
66
|
-
onKeyDown: R ?
|
|
67
|
-
children: [/* @__PURE__ */
|
|
66
|
+
onKeyDown: R ? ne : void 0,
|
|
67
|
+
children: [/* @__PURE__ */ a(c, {
|
|
68
68
|
inputRef: N,
|
|
69
69
|
rootClassName: "rv-resource-picker__search-control",
|
|
70
|
-
inputClassName:
|
|
70
|
+
inputClassName: l("rv-resource-picker__search", x?.search),
|
|
71
71
|
value: V,
|
|
72
|
-
disabled:
|
|
73
|
-
placeholder:
|
|
74
|
-
"aria-label":
|
|
72
|
+
disabled: S,
|
|
73
|
+
placeholder: y.searchPlaceholder,
|
|
74
|
+
"aria-label": y.searchAriaLabel,
|
|
75
75
|
onValueChange: H
|
|
76
|
-
}), /* @__PURE__ */
|
|
76
|
+
}), /* @__PURE__ */ a("div", {
|
|
77
77
|
ref: P,
|
|
78
|
-
class:
|
|
78
|
+
class: l("rv-resource-picker__list", x?.list),
|
|
79
79
|
role: R ? "listbox" : "group",
|
|
80
80
|
id: R ? I : void 0,
|
|
81
81
|
"aria-multiselectable": R ? T : void 0,
|
|
82
82
|
"aria-activedescendant": X,
|
|
83
|
-
"aria-label":
|
|
84
|
-
children: [D && !
|
|
85
|
-
class:
|
|
83
|
+
"aria-label": y.groupAriaLabel,
|
|
84
|
+
children: [D && !C ? /* @__PURE__ */ a("label", {
|
|
85
|
+
class: l("rv-resource-picker__option rv-resource-picker__option--unassigned", x?.option),
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ a("input", {
|
|
88
88
|
type: "checkbox",
|
|
89
|
-
checked:
|
|
90
|
-
disabled:
|
|
91
|
-
...
|
|
92
|
-
onChange: () =>
|
|
89
|
+
checked: v.length === 0,
|
|
90
|
+
disabled: S,
|
|
91
|
+
...u(D.dataAttribute, ""),
|
|
92
|
+
onChange: () => b([])
|
|
93
93
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
94
|
+
/* @__PURE__ */ a("span", {
|
|
95
95
|
class: "rv-resource-picker__avatar-spacer",
|
|
96
96
|
"aria-hidden": "true"
|
|
97
97
|
}),
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
class:
|
|
100
|
-
children: /* @__PURE__ */
|
|
98
|
+
/* @__PURE__ */ a("span", {
|
|
99
|
+
class: l("rv-resource-picker__details", x?.details),
|
|
100
|
+
children: /* @__PURE__ */ a("strong", { children: D.label })
|
|
101
101
|
})
|
|
102
102
|
]
|
|
103
|
-
}) : null,
|
|
104
|
-
className:
|
|
105
|
-
text:
|
|
106
|
-
}) : J.length === 0 ? /* @__PURE__ */
|
|
107
|
-
className:
|
|
108
|
-
text:
|
|
109
|
-
}) : J.map((e, t) => /* @__PURE__ */
|
|
103
|
+
}) : null, h.length === 0 ? /* @__PURE__ */ a(_, {
|
|
104
|
+
className: x?.muted,
|
|
105
|
+
text: y.emptyResources
|
|
106
|
+
}) : J.length === 0 ? /* @__PURE__ */ a(_, {
|
|
107
|
+
className: x?.muted,
|
|
108
|
+
text: y.emptySearch
|
|
109
|
+
}) : J.map((e, t) => /* @__PURE__ */ a(p, {
|
|
110
110
|
resource: e,
|
|
111
|
-
selected: K.has(
|
|
112
|
-
selectedResourceIds:
|
|
113
|
-
disabled:
|
|
114
|
-
readOnly:
|
|
111
|
+
selected: K.has(d(e.id)),
|
|
112
|
+
selectedResourceIds: v,
|
|
113
|
+
disabled: S,
|
|
114
|
+
readOnly: C,
|
|
115
115
|
multiple: T,
|
|
116
116
|
resourceDataAttribute: O,
|
|
117
|
-
classNames:
|
|
117
|
+
classNames: x,
|
|
118
118
|
isResourceDisabled: k,
|
|
119
119
|
getAvatarColor: A,
|
|
120
120
|
optionId: R ? `${I}-option-${t}` : void 0,
|
|
@@ -123,64 +123,64 @@ function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNa
|
|
|
123
123
|
F.current = !1, W(t);
|
|
124
124
|
},
|
|
125
125
|
onChange: Z
|
|
126
|
-
},
|
|
126
|
+
}, d(e.id)))]
|
|
127
127
|
})]
|
|
128
128
|
});
|
|
129
|
-
return /* @__PURE__ */
|
|
129
|
+
return /* @__PURE__ */ a("div", {
|
|
130
130
|
ref: j,
|
|
131
|
-
class:
|
|
132
|
-
children: [R ? /* @__PURE__ */
|
|
131
|
+
class: l("rv-resource-picker", R ? "rv-resource-picker--dropdown" : void 0, z ? "rv-resource-picker--open" : void 0, x?.root),
|
|
132
|
+
children: [R ? /* @__PURE__ */ a("div", {
|
|
133
133
|
ref: M,
|
|
134
134
|
class: "rv-resource-picker__control",
|
|
135
135
|
role: "combobox",
|
|
136
136
|
"aria-expanded": z,
|
|
137
137
|
"aria-controls": I,
|
|
138
138
|
"aria-haspopup": "listbox",
|
|
139
|
-
"aria-label":
|
|
140
|
-
tabIndex:
|
|
139
|
+
"aria-label": y.groupAriaLabel,
|
|
140
|
+
tabIndex: S ? -1 : 0,
|
|
141
141
|
onClick: (e) => {
|
|
142
|
-
|
|
142
|
+
S || (e.preventDefault(), z ? G() : B(!0));
|
|
143
143
|
},
|
|
144
144
|
onKeyDown: (e) => {
|
|
145
|
-
|
|
145
|
+
S || e.target !== e.currentTarget || (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), B(!0));
|
|
146
146
|
},
|
|
147
|
-
children: [/* @__PURE__ */
|
|
147
|
+
children: [/* @__PURE__ */ a("div", {
|
|
148
148
|
class: "rv-resource-picker__chips",
|
|
149
|
-
children: Y.length ? Y.map((e) => /* @__PURE__ */
|
|
149
|
+
children: Y.length ? Y.map((e) => /* @__PURE__ */ a("span", {
|
|
150
150
|
class: "rv-resource-picker__chip",
|
|
151
151
|
children: [
|
|
152
|
-
/* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ a(f, {
|
|
153
153
|
resource: e,
|
|
154
|
-
className:
|
|
154
|
+
className: x?.avatar,
|
|
155
155
|
color: A?.(e)
|
|
156
156
|
}),
|
|
157
|
-
/* @__PURE__ */
|
|
157
|
+
/* @__PURE__ */ a("span", {
|
|
158
158
|
class: "rv-resource-picker__chip-label",
|
|
159
159
|
children: e.name
|
|
160
160
|
}),
|
|
161
|
-
!
|
|
161
|
+
!S && !C ? /* @__PURE__ */ a("button", {
|
|
162
162
|
type: "button",
|
|
163
163
|
class: "rv-resource-picker__chip-remove",
|
|
164
164
|
"aria-label": `Remove ${e.name}`,
|
|
165
165
|
onClick: (t) => {
|
|
166
|
-
t.stopPropagation(),
|
|
166
|
+
t.stopPropagation(), b(v.filter((t) => d(t) !== d(e.id)));
|
|
167
167
|
},
|
|
168
|
-
children: /* @__PURE__ */
|
|
168
|
+
children: /* @__PURE__ */ a("span", {
|
|
169
169
|
"aria-hidden": "true",
|
|
170
|
-
dangerouslySetInnerHTML: { __html:
|
|
170
|
+
dangerouslySetInnerHTML: { __html: ee }
|
|
171
171
|
})
|
|
172
172
|
}) : null
|
|
173
173
|
]
|
|
174
|
-
},
|
|
174
|
+
}, d(e.id))) : /* @__PURE__ */ a("span", {
|
|
175
175
|
class: "rv-resource-picker__placeholder",
|
|
176
|
-
children:
|
|
176
|
+
children: y.searchPlaceholder
|
|
177
177
|
})
|
|
178
|
-
}), /* @__PURE__ */
|
|
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
|
-
}) : null, R ? z && Q ? /* @__PURE__ */ m
|
|
183
|
+
}) : null, R ? z && Q ? /* @__PURE__ */ a(m, {
|
|
184
184
|
triggerRef: M,
|
|
185
185
|
portalTarget: Q,
|
|
186
186
|
popupId: L,
|
|
@@ -188,14 +188,14 @@ function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNa
|
|
|
188
188
|
}) : null : $]
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
return [...new Map(e.map((e) => [
|
|
191
|
+
function g(e) {
|
|
192
|
+
return [...new Map(e.map((e) => [d(e), e])).values()];
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
class:
|
|
194
|
+
function _({ className: e, text: t }) {
|
|
195
|
+
return /* @__PURE__ */ a("span", {
|
|
196
|
+
class: l("rv-resource-picker__empty", e),
|
|
197
197
|
children: t
|
|
198
198
|
});
|
|
199
199
|
}
|
|
200
200
|
//#endregion
|
|
201
|
-
export {
|
|
201
|
+
export { h as SharedResourcePicker };
|
|
@@ -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
|
-
}): import("preact").JSX.Element;
|
|
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/search-input/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { n } from "../_chunks/native.view-ByyZ1CT5.js";
|
|
4
4
|
//#region src/search-input/index.tsx
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
5
|
+
function r() {
|
|
6
|
+
return /* @__PURE__ */ t("svg", {
|
|
7
7
|
width: "13",
|
|
8
8
|
height: "13",
|
|
9
9
|
viewBox: "0 0 24 24",
|
|
10
10
|
fill: "none",
|
|
11
11
|
stroke: "currentColor",
|
|
12
12
|
"stroke-width": "2",
|
|
13
|
-
children: [/* @__PURE__ */
|
|
13
|
+
children: [/* @__PURE__ */ t("circle", {
|
|
14
14
|
cx: "11",
|
|
15
15
|
cy: "11",
|
|
16
16
|
r: "8"
|
|
17
|
-
}), /* @__PURE__ */
|
|
17
|
+
}), /* @__PURE__ */ t("line", {
|
|
18
18
|
x1: "21",
|
|
19
19
|
y1: "21",
|
|
20
20
|
x2: "16.65",
|
|
@@ -22,17 +22,17 @@ function i() {
|
|
|
22
22
|
})]
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function i({ value: i = "", inputRef: a, rootClassName: o = "", inputClassName: s = "", iconClassName: c = "", shortcutClassName: l = "", shortcut: u, icon: d, leading: f, hideIcon: p = !1, trailing: m, testId: h, onValueChange: g, onInput: _, type: v = "search", ...y }) {
|
|
26
26
|
let b = (e) => {
|
|
27
27
|
_?.(e), g?.(e.currentTarget.value, e);
|
|
28
28
|
};
|
|
29
|
-
return e
|
|
29
|
+
return n(e, {
|
|
30
30
|
rootClassName: o,
|
|
31
31
|
inputClassName: s,
|
|
32
32
|
iconClassName: c,
|
|
33
33
|
shortcutClassName: l,
|
|
34
34
|
shortcut: u,
|
|
35
|
-
icon: d ?? /* @__PURE__ */
|
|
35
|
+
icon: d ?? /* @__PURE__ */ t(r, {}),
|
|
36
36
|
hideIcon: p,
|
|
37
37
|
leading: f,
|
|
38
38
|
trailing: m,
|
|
@@ -41,10 +41,10 @@ function a({ value: r = "", inputRef: a, rootClassName: o = "", inputClassName:
|
|
|
41
41
|
...y,
|
|
42
42
|
ref: a,
|
|
43
43
|
type: v,
|
|
44
|
-
value:
|
|
44
|
+
value: i,
|
|
45
45
|
onInput: b
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
//#endregion
|
|
50
|
-
export {
|
|
50
|
+
export { i as SearchInput };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSX } from 'preact';
|
|
1
|
+
import { JSX } from '../_vendor/preact/src/index';
|
|
2
2
|
export type SegmentedSwitchRenderable = any;
|
|
3
3
|
export type SegmentedSwitchValue = string | number;
|
|
4
4
|
export type SegmentedSwitchOption<T extends SegmentedSwitchValue = SegmentedSwitchValue> = {
|
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 };
|