@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
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-BKIOsvY-.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.d.ts
CHANGED
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,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ResourcePickerId, ResourcePickerItem } from './resource-picker.types';
|
|
3
3
|
export interface ResourcePickerAvatarProps<Id extends ResourcePickerId> {
|
|
4
4
|
readonly resource: ResourcePickerItem<Id>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { i as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
|
+
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
+
import { getAvatarInitials as n } from "../avatar/index.js";
|
|
4
|
+
import { resourcePickerClasses as r } from "./resource-picker.utils.js";
|
|
5
5
|
//#region src/resource-picker/resource-picker-avatar.tsx
|
|
6
6
|
var i = [
|
|
7
7
|
"#22d3ee",
|
|
@@ -13,8 +13,8 @@ var i = [
|
|
|
13
13
|
"#f97316",
|
|
14
14
|
"#2dd4bf"
|
|
15
15
|
];
|
|
16
|
-
function a(
|
|
17
|
-
return e
|
|
16
|
+
function a(e) {
|
|
17
|
+
return n(e) || "?";
|
|
18
18
|
}
|
|
19
19
|
function o(e) {
|
|
20
20
|
return i[[...String(e)].reduce((e, t) => e + t.charCodeAt(0), 0) % i.length];
|
|
@@ -33,10 +33,10 @@ function s(e) {
|
|
|
33
33
|
][n] ?? 0), 0);
|
|
34
34
|
return r <= .179 ? "#fff" : r < .25 ? "#000" : "#0f172a";
|
|
35
35
|
}
|
|
36
|
-
function c({ resource:
|
|
37
|
-
let [l, u] =
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
class:
|
|
36
|
+
function c({ resource: n, className: i, color: c }) {
|
|
37
|
+
let [l, u] = e(), d = n.name.trim() || "Unnamed resource", f = !!n.avatarUrl && l === n.avatarUrl, p = c ?? n.color ?? o(n.id);
|
|
38
|
+
return /* @__PURE__ */ t("span", {
|
|
39
|
+
class: r("avatar-cell rv-resource-picker__avatar", i),
|
|
40
40
|
style: {
|
|
41
41
|
"--avatar-cell-background": p,
|
|
42
42
|
"--avatar-cell-size": "30px",
|
|
@@ -44,12 +44,12 @@ function c({ resource: e, className: i, color: c }) {
|
|
|
44
44
|
},
|
|
45
45
|
role: "img",
|
|
46
46
|
"aria-label": d,
|
|
47
|
-
children:
|
|
47
|
+
children: n.avatarUrl && !f ? /* @__PURE__ */ t("img", {
|
|
48
48
|
class: "avatar-cell__image",
|
|
49
|
-
src:
|
|
49
|
+
src: n.avatarUrl,
|
|
50
50
|
alt: d,
|
|
51
|
-
onError: () => u(
|
|
52
|
-
}) : a(
|
|
51
|
+
onError: () => u(n.avatarUrl)
|
|
52
|
+
}) : a(n.name)
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ResourcePickerClassNames, ResourcePickerId, ResourcePickerItem } from './resource-picker.types';
|
|
3
3
|
export interface ResourcePickerOptionProps<Id extends ResourcePickerId, Resource extends ResourcePickerItem<Id>> {
|
|
4
4
|
readonly resource: Resource;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
+
import { resourcePickerClasses as t, resourcePickerDataAttribute as n, resourcePickerIdKey as r, uniqueResourcePickerIds as i } from "./resource-picker.utils.js";
|
|
3
|
+
import { ResourcePickerAvatar as a } from "./resource-picker-avatar.js";
|
|
4
4
|
//#region src/resource-picker/resource-picker-option.tsx
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
class:
|
|
9
|
-
id:
|
|
10
|
-
role:
|
|
11
|
-
"aria-selected":
|
|
12
|
-
"data-selected":
|
|
13
|
-
onMouseEnter:
|
|
5
|
+
function o({ resource: o, selected: s, selectedResourceIds: c, disabled: l, readOnly: u = !1, multiple: d, resourceDataAttribute: f, classNames: p, isResourceDisabled: m, getAvatarColor: h, optionId: g, focused: _ = !1, onFocus: v, onChange: y }) {
|
|
6
|
+
let b = m?.(o) === !0;
|
|
7
|
+
return /* @__PURE__ */ e("label", {
|
|
8
|
+
class: t("rv-resource-picker__option", u ? "rv-resource-picker__option--readonly" : void 0, _ ? "rv-resource-picker__option--focused" : void 0, p?.option),
|
|
9
|
+
id: u ? g : void 0,
|
|
10
|
+
role: u && g ? "option" : void 0,
|
|
11
|
+
"aria-selected": u && g ? s : void 0,
|
|
12
|
+
"data-selected": s ? "true" : "false",
|
|
13
|
+
onMouseEnter: v,
|
|
14
14
|
children: [
|
|
15
|
-
!
|
|
15
|
+
!u && /* @__PURE__ */ e("input", {
|
|
16
16
|
type: "checkbox",
|
|
17
|
-
id:
|
|
18
|
-
role:
|
|
19
|
-
"aria-selected":
|
|
20
|
-
checked:
|
|
21
|
-
disabled:
|
|
22
|
-
...
|
|
17
|
+
id: g,
|
|
18
|
+
role: g ? "option" : void 0,
|
|
19
|
+
"aria-selected": g ? s : void 0,
|
|
20
|
+
checked: s,
|
|
21
|
+
disabled: l || b && !s,
|
|
22
|
+
...n(f, String(o.id)),
|
|
23
23
|
onChange: (e) => {
|
|
24
24
|
let t = e.currentTarget;
|
|
25
|
-
|
|
25
|
+
y(t.checked ? d ? i([...c, o.id]) : [o.id] : c.filter((e) => r(e) !== r(o.id)));
|
|
26
26
|
}
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */ a
|
|
29
|
-
resource:
|
|
30
|
-
className:
|
|
31
|
-
color:
|
|
28
|
+
/* @__PURE__ */ e(a, {
|
|
29
|
+
resource: o,
|
|
30
|
+
className: p?.avatar,
|
|
31
|
+
color: h?.(o)
|
|
32
32
|
}),
|
|
33
|
-
/* @__PURE__ */
|
|
34
|
-
class:
|
|
35
|
-
children: [/* @__PURE__ */
|
|
33
|
+
/* @__PURE__ */ e("span", {
|
|
34
|
+
class: t("rv-resource-picker__details", p?.details),
|
|
35
|
+
children: [/* @__PURE__ */ e("strong", { children: o.name }), o.role ? /* @__PURE__ */ e("em", { children: o.role }) : null]
|
|
36
36
|
})
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
//#endregion
|
|
41
|
-
export {
|
|
41
|
+
export { o as ResourcePickerOption };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
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
|
-
return /* @__PURE__ */ t
|
|
5
|
+
return /* @__PURE__ */ e(t, {
|
|
6
6
|
triggerRef: n,
|
|
7
7
|
portalTarget: r,
|
|
8
8
|
dropdownMenuId: i,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { h } from 'preact';
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
2
|
import { ResourcePickerId, ResourcePickerItem, SharedResourcePickerProps } from './resource-picker.types';
|
|
3
3
|
export declare function SharedResourcePicker<Id extends ResourcePickerId, Resource extends ResourcePickerItem<Id>>({ resources, selectedResourceIds, text, onChange, classNames, disabled, readOnly, presentation, multiple, preserveOrder, unassigned, resourceDataAttribute, isResourceDisabled, getAvatarColor, }: SharedResourcePickerProps<Id, Resource>): h.JSX.Element;
|