@revolist/ui 4.0.1-rc → 4.0.2-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/_chunks/calendar-CpaUK7w1.js +248 -0
- package/_chunks/chart-frame-BC99KjGa.js +127 -0
- package/_chunks/choice-chips-Cs4D-3nH.js +110 -0
- package/_chunks/{color-palette-BmZ7kH9R.js → color-palette-BBMFmUNA.js} +41 -41
- package/_chunks/color-picker-D90Jg-M8.js +138 -0
- package/_chunks/compat.module-DDB2pm9O.js +229 -0
- package/_chunks/component-YDcfoOLz.js +859 -0
- package/_chunks/{control-tooltip-BCNzQCXE.js → control-tooltip-ztgmsG7H.js} +29 -29
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/{controls-NEL5tDaz.js → controls-DIum-E66.js} +192 -192
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-BJSzu79z.js} +21 -21
- package/_chunks/date-time-BxPJusp9.js +770 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-Bblyah10.js} +1 -1
- package/_chunks/dialog.parts-DBqo3Qwb.js +134 -0
- package/_chunks/{dropdown-CkGQBm1Q.js → dropdown-voWqmwAe.js} +102 -102
- package/_chunks/duration-87U2EoMS.js +271 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/{editor-popup-B7fu_A_T.js → editor-popup-D3JdS8l3.js} +8 -8
- package/_chunks/framework-mount-C-Zwm44H.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/mount-DZe_6VtR.js +90 -0
- package/_chunks/native.view-ByyZ1CT5.js +32 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-BeIadZuL.js} +89 -89
- package/_chunks/picker-DpP7iQLA.js +122 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-Ca8ZBty3.js} +10 -10
- package/_chunks/reorder-list-Cc3KmfAN.js +59 -0
- package/_chunks/request-trail-IdNiFvKH.js +347 -0
- package/_chunks/{rich-text-2Rla349o.js → rich-text-BzI1DyfF.js} +167 -167
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +16 -16
- package/ai/components.d.ts +1 -1
- package/ai/index.js +2 -2
- package/ai/request-trail.d.ts +1 -1
- package/ai/translation-context.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +87 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/index.js +25 -25
- package/avatar/index.view.d.ts +1 -1
- package/brush-range/component.d.ts +1 -1
- package/brush-range/component.js +30 -30
- package/buttons/delete-button.js +1 -1
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.d.ts +1 -1
- package/buttons/svg-button.js +35 -35
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +35 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/checkbox/index.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-picker.d.ts +1 -1
- package/color-palette/color-picker.js +2 -2
- package/component-catalog.d.ts +19 -19
- package/control-presentation.js +18 -18
- package/controls.d.ts +4 -4
- package/controls.js +1 -1
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup.d.ts +1 -1
- package/core/editor-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +2 -2
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +1 -1
- package/dialog/dialog-action-footer.view.d.ts +1 -1
- package/dialog/dialog.dom.js +52 -52
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +1 -1
- package/distribution-chart/bar-chart.js +6 -6
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.d.ts +1 -1
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +1 -1
- package/dropdown/content.js +83 -82
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/index.js +1 -1
- package/dropdown/lookup-field.d.ts +1 -1
- package/dropdown/lookup-field.js +41 -41
- package/dropdown/popup.d.ts +1 -1
- package/dropdown/popup.js +17 -16
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +1 -1
- package/editor-layout/index.js +27 -27
- package/field-configurator.d.ts +1 -1
- package/field-configurator.js +93 -93
- package/field-reorder.hook.js +32 -32
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -1
- package/filter-controls.js +31 -31
- package/form-controls/index.js +20 -20
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +44 -44
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/control-tooltip.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.js +99 -98
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +19 -19
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +11 -11
- package/native-control.js +12 -12
- package/native.js +39 -39
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +1 -2
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +1 -1
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +1 -1
- package/preact.js +14 -14
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +1 -1
- package/react.js +19 -19
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +88 -88
- package/rich-text/index.d.ts +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/toolbar.d.ts +1 -1
- package/search-input/index.js +12 -12
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +13 -13
- package/surfaces.js +34 -34
- package/svelte.js +2 -2
- package/switch/index.js +15 -15
- package/time-grid.d.ts +1 -1
- package/time-grid.js +58 -58
- package/timeline-track/component.d.ts +1 -1
- package/timeline-track/index.js +75 -75
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +116 -116
- package/vue.js +121 -121
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-picker-BRv-__AM.js +0 -138
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolist/ui",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2-rc",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Shared RevoGrid UI controls, native controllers and optional framework adapters",
|
|
6
6
|
"license": "Commercial",
|
|
@@ -720,7 +720,6 @@
|
|
|
720
720
|
"lexical": "^0.52.0"
|
|
721
721
|
},
|
|
722
722
|
"peerDependencies": {
|
|
723
|
-
"preact": "^10.29.1",
|
|
724
723
|
"react": ">=18",
|
|
725
724
|
"vue": "^3.5.0",
|
|
726
725
|
"@angular/core": ">=20",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren } from 'preact';
|
|
1
|
+
import { h, ComponentChildren } from '../_vendor/preact/src/index';
|
|
2
2
|
import { PdfViewerController } from './controller';
|
|
3
3
|
import { PdfViewerOptions, PdfViewerState } from './types';
|
|
4
4
|
import { PdfViewerText } from './translations';
|
package/pdf-viewer/controller.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as PdfViewerController } from "../_chunks/controller-
|
|
1
|
+
export { t as PdfViewerController } from "../_chunks/controller-hRBm_Lfz.js";
|
package/pdf-viewer/header.d.ts
CHANGED
package/pdf-viewer/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as a } from "../_chunks/
|
|
4
|
-
import {
|
|
1
|
+
import { c as e } from "../_chunks/preact.module-BBM36DnO.js";
|
|
2
|
+
import { renderPreactInto as t } from "../preact-mount.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../_chunks/component-YDcfoOLz.js";
|
|
4
|
+
import { t as o } from "../_chunks/controller-hRBm_Lfz.js";
|
|
5
5
|
//#region src/pdf-viewer/index.tsx
|
|
6
|
-
function s(
|
|
7
|
-
let
|
|
8
|
-
return
|
|
9
|
-
c || (c = !0, s(),
|
|
10
|
-
},
|
|
11
|
-
...
|
|
12
|
-
controller:
|
|
13
|
-
})),
|
|
6
|
+
function s(n, i) {
|
|
7
|
+
let a = new o(i), s = a.destroy.bind(a), c = !1;
|
|
8
|
+
return a.destroy = () => {
|
|
9
|
+
c || (c = !0, s(), t(n, null));
|
|
10
|
+
}, t(n, e(r, {
|
|
11
|
+
...i,
|
|
12
|
+
controller: a
|
|
13
|
+
})), a;
|
|
14
14
|
}
|
|
15
15
|
//#endregion
|
|
16
|
-
export {
|
|
16
|
+
export { a as PdfViewer, o as PdfViewerController, i as PdfViewerToolbar, s as createPdfViewer, n as defaultPdfViewerText };
|
package/pdf-viewer/status.d.ts
CHANGED
package/pdf-viewer/toolbar.d.ts
CHANGED
package/pickers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, ComponentChildren } from 'preact';
|
|
1
|
+
import { h, ComponentChildren } from './_vendor/preact/src/index';
|
|
2
2
|
import { ISODateString } from './_shared/dates/index';
|
|
3
3
|
import { CalendarDateRange, CalendarProps } from './calendar/types';
|
|
4
4
|
import { DropdownProps } from './dropdown';
|
package/preact-mount.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentChildren, VNode } from 'preact';
|
|
1
|
+
import { ComponentChildren, VNode } from './_vendor/preact/src/index';
|
|
2
2
|
/** Compatibility boundary for hosts that accept an element instead of a VNode.
|
|
3
3
|
* All markup is rendered by Preact; the fragment supplies the owning document. */
|
|
4
4
|
export declare function createPreactElement<T extends Element = HTMLElement>(document: Document, view: VNode<any>, existing?: Element): T;
|
package/preact-mount.js
CHANGED
package/preact.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { a as ee, c as te, i as ne, l as re, n as ie, o as ae, r as oe, s as se, t as ce } from "./_chunks/request-trail-
|
|
1
|
+
import { a as ee, c as te, i as ne, l as re, n as ie, o as ae, r as oe, s as se, t as ce } from "./_chunks/request-trail-IdNiFvKH.js";
|
|
2
2
|
import { badgeClassName as le } from "./badge.js";
|
|
3
|
-
import { n as ue, t as de } from "./_chunks/rating-choice-
|
|
3
|
+
import { n as ue, t as de } from "./_chunks/rating-choice-Ca8ZBty3.js";
|
|
4
4
|
import { SvgIcon as e } from "./icons/icon.js";
|
|
5
5
|
import { controlAttributes as fe, controlClassName as t } from "./control-attributes.js";
|
|
6
6
|
import { createControl as n, decorateIconAction as r, nativeControlTag as i, registerControl as a, renderControl as o } from "./control-presentation.js";
|
|
7
7
|
import { Input as s } from "./native-control.js";
|
|
8
|
-
import { A as c, C as l, D as u, E as d, F as f, I as p, L as m, M as h, N as g, O as _, P as v, R as y, S as b, T as x, _ as S, a as C, b as w, c as T, d as E, f as D, g as O, h as k, i as A, j, k as M, l as N, m as P, n as F, o as I, p as L, r as R, s as z, t as B, u as V, v as pe, w as me, x as he, y as ge, z as _e } from "./_chunks/controls-
|
|
9
|
-
import { n as ve, t as ye } from "./_chunks/control-tooltip-
|
|
8
|
+
import { A as c, C as l, D as u, E as d, F as f, I as p, L as m, M as h, N as g, O as _, P as v, R as y, S as b, T as x, _ as S, a as C, b as w, c as T, d as E, f as D, g as O, h as k, i as A, j, k as M, l as N, m as P, n as F, o as I, p as L, r as R, s as z, t as B, u as V, v as pe, w as me, x as he, y as ge, z as _e } from "./_chunks/controls-DIum-E66.js";
|
|
9
|
+
import { n as ve, t as ye } from "./_chunks/control-tooltip-ztgmsG7H.js";
|
|
10
10
|
import { SvgButton as be } from "./buttons/svg-button.js";
|
|
11
11
|
import { SegmentedSwitch as xe, renderSegmentedSwitch as Se } from "./segmented-switch/index.js";
|
|
12
12
|
import { EditorList as H, EditorListGroup as U, EditorListItem as W, EditorListItemContent as G, EditorPane as K, EditorSplitLayout as q } from "./editor-layout/index.js";
|
|
13
13
|
import { getUiMotionDuration as Ce, inheritUiMotion as we, isUiMotionEnabled as Te } from "./core/motion.js";
|
|
14
|
-
import { a as Ee, c as De, i as Oe, l as ke, n as Ae, o as je, r as Me, s as Ne, t as Pe } from "./_chunks/dialog.parts-
|
|
15
|
-
import { t as Fe } from "./_chunks/delete-button-
|
|
14
|
+
import { a as Ee, c as De, i as Oe, l as ke, n as Ae, o as je, r as Me, s as Ne, t as Pe } from "./_chunks/dialog.parts-DBqo3Qwb.js";
|
|
15
|
+
import { t as Fe } from "./_chunks/delete-button-Bblyah10.js";
|
|
16
16
|
import { RemoveButton as Ie } from "./buttons/remove-button.js";
|
|
17
17
|
import { createFormField as Le, createSelectControl as Re, createTextControl as ze } from "./form-controls/index.js";
|
|
18
18
|
import { a as Be, c as Ve, d as He, f as Ue, h as We, i as Ge, l as Ke, m as qe, n as Je, o as Ye, p as Xe, r as Ze, s as Qe, t as $e, u as et } from "./_chunks/cell-visuals-E-2oEKHg.js";
|
|
19
|
-
import { n as tt, t as nt } from "./_chunks/color-palette-
|
|
19
|
+
import { n as tt, t as nt } from "./_chunks/color-palette-BBMFmUNA.js";
|
|
20
20
|
import { DEFAULT_COLOR_PALETTE_OPTIONS as rt } from "./color-palette/palette.js";
|
|
21
|
-
import { t as it } from "./_chunks/color-picker-
|
|
22
|
-
import { n as at, r as ot, t as st } from "./_chunks/choice-chips-
|
|
21
|
+
import { t as it } from "./_chunks/color-picker-D90Jg-M8.js";
|
|
22
|
+
import { n as at, r as ot, t as st } from "./_chunks/choice-chips-Cs4D-3nH.js";
|
|
23
23
|
import { FilterBadge as ct, FilterBadgeInfoButton as lt } from "./filter-badge.js";
|
|
24
24
|
import { ActivityMessage as ut } from "./activity-message.js";
|
|
25
25
|
import { Checkbox as dt, SHARED_CHECKBOX_CLASS as ft, renderCheckbox as pt } from "./checkbox/index.js";
|
|
@@ -29,15 +29,15 @@ import { DisclosureSummary as ht, FilterChip as Y, FormField as gt, renderFormFi
|
|
|
29
29
|
import { DEFAULT_CALENDAR_TRANSLATIONS as vt } from "./calendar/translations.js";
|
|
30
30
|
import { a as yt, i as bt, n as xt, o as St, r as Ct, t as wt } from "./_chunks/model-mPO2tG2f.js";
|
|
31
31
|
import { CalendarHeader as Tt, CalendarWeekdays as Et } from "./calendar/header.js";
|
|
32
|
-
import { t as Dt } from "./_chunks/calendar-
|
|
32
|
+
import { t as Dt } from "./_chunks/calendar-CpaUK7w1.js";
|
|
33
33
|
import { CalendarDay as Ot } from "./calendar/day.js";
|
|
34
34
|
import { CalendarMonthGrid as kt } from "./calendar/month-grid.js";
|
|
35
35
|
import { CalendarYearGrid as At } from "./calendar/year-grid.js";
|
|
36
|
-
import { t as jt } from "./_chunks/picker-
|
|
36
|
+
import { t as jt } from "./_chunks/picker-DpP7iQLA.js";
|
|
37
37
|
import { ResourcePickerAvatar as Mt, getResourcePickerColor as Nt, getResourcePickerForegroundColor as Pt, getResourcePickerInitials as Ft } from "./resource-picker/resource-picker-avatar.js";
|
|
38
38
|
import { DropdownPopup as It } from "./dropdown/popup.js";
|
|
39
39
|
import { SharedResourcePicker as X } from "./resource-picker/resource-picker.js";
|
|
40
|
-
import { n as Lt, r as Rt, t as zt } from "./_chunks/dropdown-
|
|
40
|
+
import { n as Lt, r as Rt, t as zt } from "./_chunks/dropdown-voWqmwAe.js";
|
|
41
41
|
import { DropdownPopupContent as Bt } from "./dropdown/content.js";
|
|
42
42
|
import { useDialogDrag as Vt } from "./dialog/dialog.preact.js";
|
|
43
43
|
import { PreactRangeSlider as Z } from "./filter/filters/slider/preact.js";
|
|
@@ -45,7 +45,7 @@ import { SingleValueSlider as Q, SliderField as Ht } from "./filter/filters/slid
|
|
|
45
45
|
import { renderStatusBadge as Ut } from "./status-feedback/badge.js";
|
|
46
46
|
import { StatusBadge as Wt, StatusFeedbackPanel as $, renderStatusFeedbackPanel as Gt } from "./status-feedback/render.js";
|
|
47
47
|
import { StatusFeedbackPopoverController as Kt } from "./status-feedback/popover.js";
|
|
48
|
-
import { a as qt, c as Jt, d as Yt, f as Xt, i as Zt, l as Qt, m as $t, o as en, p as tn, r as nn, s as rn, t as an, u as on } from "./_chunks/component-
|
|
48
|
+
import { a as qt, c as Jt, d as Yt, f as Xt, i as Zt, l as Qt, m as $t, o as en, p as tn, r as nn, s as rn, t as an, u as on } from "./_chunks/component-YDcfoOLz.js";
|
|
49
49
|
import { BarChart as sn } from "./distribution-chart/bar-chart.js";
|
|
50
50
|
import { LineChart as cn } from "./distribution-chart/line-chart.js";
|
|
51
51
|
import { AreaChart as ln } from "./distribution-chart/area-chart.js";
|
|
@@ -58,7 +58,7 @@ import { fieldDropIndex as yn, reorderFields as bn } from "./field-reorder.js";
|
|
|
58
58
|
import { useFieldDropTarget as xn, useFieldReorder as Sn } from "./field-reorder.hook.js";
|
|
59
59
|
import { CollapsibleSection as Cn, FieldActions as wn, FieldContent as Tn, FieldDropIndicator as En, FieldGroup as Dn, FieldGroupHeading as On, FieldIcon as kn, FieldItem as An, FieldLibrary as jn, FieldLibraryList as Mn, FieldList as Nn, FieldRemoveButton as Pn, FieldRemoveIcon as Fn, FieldRow as In, FieldStatusBadge as Ln, FieldSummary as Rn, SelectedField as zn } from "./field-configurator.js";
|
|
60
60
|
import { ComparisonPreview as Bn, IconChoiceGroup as Vn, IconToggleButton as Hn, InspectorSection as Un, TypographyControls as Wn } from "./formatting/index.js";
|
|
61
|
-
import { n as Gn, t as Kn } from "./_chunks/reorder-list-
|
|
61
|
+
import { n as Gn, t as Kn } from "./_chunks/reorder-list-Cc3KmfAN.js";
|
|
62
62
|
import { eventOutsideRange as qn, moveTimelineEvent as Jn, niceTimelineStep as Yn, resizeTimelineEvent as Xn, timelineGeometry as Zn } from "./timeline-track/model.js";
|
|
63
63
|
import { TimelineTrack as Qn } from "./timeline-track/index.js";
|
|
64
64
|
export { te as AI_UI_MESSAGES, ut as ActivityMessage, ie as AiActionStatus, oe as AiAssistant, ne as AiPromptInput, ce as AiRequestTrail, ee as AiResult, ae as AiSuggestions, se as AiTranslationProvider, _e as Alert, ln as AreaChart, qt as Avatar, B as Badge, sn as BarChart, dn as BrushRange, F as Button, R as ButtonGroup, Dt as Calendar, Ot as CalendarDay, Tt as CalendarHeader, kt as CalendarMonthGrid, jt as CalendarPicker, Et as CalendarWeekdays, At as CalendarYearGrid, dt as Checkbox, A as Chip, st as ChoiceChip, at as ChoiceChipInfoButton, ot as ChoiceChips, C as CircularProgress, Cn as CollapsibleSection, nt as ColorPalette, it as ColorPicker, en as Combobox, Bn as ComparisonPreview, rn as ConfirmDialog, ye as ControlTooltip, I as CountBadge, vt as DEFAULT_CALENDAR_TRANSLATIONS, rt as DEFAULT_COLOR_PALETTE_OPTIONS, z as DateInput, Jt as DatePicker, Qt as DateRangePicker, T as DateTimeInput, Fe as DeleteButton, on as Dialog, Pe as DialogActionFooter, Ae as DialogActions, Me as DialogBody, Oe as DialogCloseButton, Ee as DialogFooter, je as DialogForm, Ne as DialogHeader, De as DialogTitleInput, N as Disclosure, ht as DisclosureSummary, un as DistributionChart, zt as Dropdown, It as DropdownPopup, Bt as DropdownPopupContent, ke as EditableDialogHeader, H as EditorList, H as Listbox, U as EditorListGroup, U as ListboxGroup, W as EditorListItem, W as ListboxOption, G as EditorListItemContent, G as ListboxOptionContent, K as EditorPane, K as Pane, q as EditorSplitLayout, q as SplitLayout, V as EmptyState, $ as FeedbackPanel, $ as StatusFeedbackPanel, wn as FieldActions, Tn as FieldContent, En as FieldDropIndicator, E as FieldError, Dn as FieldGroup, On as FieldGroupHeading, D as FieldHint, kn as FieldIcon, An as FieldItem, jn as FieldLibrary, Mn as FieldLibraryList, Nn as FieldList, Pn as FieldRemoveButton, Fn as FieldRemoveIcon, In as FieldRow, Ln as FieldStatusBadge, Rn as FieldSummary, ct as FilterBadge, lt as FilterBadgeInfoButton, Y as FilterChip, Y as RemovableChip, gt as FormField, L as FormSection, pn as HighlightedTextInput, e as Icon, e as SvgIcon, P as IconButton, Vn as IconChoiceGroup, Hn as IconToggleButton, mn as InlineFieldGroup, s as Input, Un as InspectorSection, fn as Legend, cn as LineChart, k as LoadingOverlay, O as Menu, S as MenuItem, pe as MenuSeparator, Yt as MultiSelect, ge as NativeSelect, w as NumberInput, he as NumberStepper, hn as OptionButton, b as Pagination, l as Panel, an as PdfViewer, nn as PdfViewerToolbar, Xt as Popover, Z as PreactRangeSlider, Z as RangeSlider, tn as ProgressBar, me as RadioGroup, x as Rating, de as RatingChoice, ue as RatingStar, Ie as RemoveButton, Kn as ReorderHandle, Gn as ReorderList, d as ResizeHandle, X as ResourcePicker, X as SharedResourcePicker, Mt as ResourcePickerAvatar, ft as SHARED_CHECKBOX_CLASS, mt as SearchInput, u as SegmentedControl, xe as SegmentedSwitch, zn as SelectedField, Q as SingleValueSlider, Q as Slider, Ht as SliderField, _ as Spinner, Wt as StatusBadge, Kt as StatusFeedbackPopoverController, M as Submenu, be as SvgButton, J as Switch, c as TabPanel, j as Tabs, h as TextInput, g as Textarea, gn as TimeGrid, v as TimeInput, Qn as TimelineTrack, f as ToggleButton, p as Toolbar, m as ToolbarGroup, y as ToolbarSeparator, $t as Tooltip, Wn as TypographyControls, le as badgeClassName, fe as controlAttributes, t as controlClassName, wt as createCalendarMonth, n as createControl, Le as createFormField, Re as createSelectControl, ze as createTextControl, r as decorateIconAction, Zt as defaultPdfViewerText, Lt as defineDropdown, Rt as destroyDropdown, qn as eventOutsideRange, yn as fieldDropIndex, Je as formatTimelineEvents, Nt as getResourcePickerColor, Pt as getResourcePickerForegroundColor, Ft as getResourcePickerInitials, Ce as getUiMotionDuration, we as inheritUiMotion, xt as isCalendarDateDisabled, Ct as isCalendarMonthDisabled, bt as isDateInCalendarRange, Te as isUiMotionEnabled, yt as moveCalendarFocus, Jn as moveTimelineEvent, i as nativeControlTag, Yn as niceTimelineStep, tt as normalizeHexColor, St as orderCalendarRange, a as registerControl, Qe as renderAggregateSummary, Ve as renderBadgeValue, Ke as renderChange, pt as renderCheckbox, o as renderControl, _t as renderFormFieldContent, Ge as renderHeatmap, et as renderLabelledIcon, Be as renderMiniBarChart, He as renderPercentageSummary, $e as renderPie, Ue as renderProgressLine, Xe as renderProgressLineValue, Se as renderSegmentedSwitch, Ye as renderSparkline, Ut as renderStatusBadge, Gt as renderStatusFeedbackPanel, qe as renderThumbs, Ze as renderTimeline, We as renderTypeIcon, bn as reorderFields, Xn as resizeTimelineEvent, _n as timeGridCellKey, Zn as timelineGeometry, re as translateAiText, ve as useControlTooltip, Vt as useDialogDrag, xn as useFieldDropTarget, Sn as useFieldReorder, vn as useTimeGridInteraction };
|
package/rating-choice.d.ts
CHANGED
package/rating-choice.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as RatingChoice, n as RatingStar } from "./_chunks/rating-choice-
|
|
1
|
+
export { t as RatingChoice, n as RatingStar } from "./_chunks/rating-choice-Ca8ZBty3.js";
|
package/react-adapter.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, PropsWithoutRef, ReactNode, RefAttributes } from 'react';
|
|
2
|
-
import { ComponentChildren, ComponentProps, ComponentType, VNode } from 'preact';
|
|
2
|
+
import { ComponentChildren, ComponentProps, ComponentType, VNode } from './_vendor/preact/src/index';
|
|
3
3
|
export interface UiReactHandle {
|
|
4
4
|
element: HTMLDivElement | null;
|
|
5
5
|
}
|
package/react.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "./_chunks/request-trail-
|
|
2
|
-
import { n as o, t as s } from "./_chunks/rating-choice-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "./_chunks/request-trail-IdNiFvKH.js";
|
|
2
|
+
import { n as o, t as s } from "./_chunks/rating-choice-Ca8ZBty3.js";
|
|
3
3
|
import { SvgIcon as c } from "./icons/icon.js";
|
|
4
4
|
import { controlAttributes as l } from "./control-attributes.js";
|
|
5
5
|
import { Input as u } from "./native-control.js";
|
|
6
|
-
import { A as d, C as ee, D as te, E as ne, F as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, S as de, T as fe, _ as pe, a as me, b as he, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, z as M } from "./_chunks/controls-
|
|
7
|
-
import { t as N } from "./_chunks/control-tooltip-
|
|
6
|
+
import { A as d, C as ee, D as te, E as ne, F as re, I as ie, L as ae, M as oe, N as se, O as ce, P as le, R as ue, S as de, T as fe, _ as pe, a as me, b as he, c as f, d as p, f as m, g as h, h as g, i as _, j as v, k as y, l as b, m as x, n as S, o as C, p as w, r as T, s as E, t as D, u as O, v as k, w as A, x as j, z as M } from "./_chunks/controls-DIum-E66.js";
|
|
7
|
+
import { t as N } from "./_chunks/control-tooltip-ztgmsG7H.js";
|
|
8
8
|
import { SvgButton as P } from "./buttons/svg-button.js";
|
|
9
9
|
import { SegmentedSwitch as F } from "./segmented-switch/index.js";
|
|
10
10
|
import { EditorList as I, EditorListGroup as L, EditorListItem as R, EditorListItemContent as z, EditorPane as B, EditorSplitLayout as V } from "./editor-layout/index.js";
|
|
11
|
-
import { a as ge, c as _e, i as ve, l as ye, n as be, o as xe, r as Se, s as Ce, t as we } from "./_chunks/dialog.parts-
|
|
12
|
-
import { t as Te } from "./_chunks/delete-button-
|
|
11
|
+
import { a as ge, c as _e, i as ve, l as ye, n as be, o as xe, r as Se, s as Ce, t as we } from "./_chunks/dialog.parts-DBqo3Qwb.js";
|
|
12
|
+
import { t as Te } from "./_chunks/delete-button-Bblyah10.js";
|
|
13
13
|
import { RemoveButton as Ee } from "./buttons/remove-button.js";
|
|
14
|
-
import { t as De } from "./_chunks/color-palette-
|
|
15
|
-
import { t as Oe } from "./_chunks/color-picker-
|
|
16
|
-
import { n as ke, r as Ae, t as je } from "./_chunks/choice-chips-
|
|
14
|
+
import { t as De } from "./_chunks/color-palette-BBMFmUNA.js";
|
|
15
|
+
import { t as Oe } from "./_chunks/color-picker-D90Jg-M8.js";
|
|
16
|
+
import { n as ke, r as Ae, t as je } from "./_chunks/choice-chips-Cs4D-3nH.js";
|
|
17
17
|
import { FilterBadge as Me, FilterBadgeInfoButton as Ne } from "./filter-badge.js";
|
|
18
18
|
import { ActivityMessage as Pe } from "./activity-message.js";
|
|
19
19
|
import { Checkbox as Fe } from "./checkbox/index.js";
|
|
20
20
|
import { Switch as Ie } from "./switch/index.js";
|
|
21
21
|
import { SearchInput as Le } from "./search-input/index.js";
|
|
22
22
|
import { DisclosureSummary as Re, FilterChip as H, FormField as ze } from "./form-controls/presentation.js";
|
|
23
|
-
import { a as Be, i as Ve, r as He } from "./_chunks/date-time-
|
|
24
|
-
import { n as Ue, t as We } from "./_chunks/duration-
|
|
23
|
+
import { a as Be, i as Ve, r as He } from "./_chunks/date-time-BxPJusp9.js";
|
|
24
|
+
import { n as Ue, t as We } from "./_chunks/duration-87U2EoMS.js";
|
|
25
25
|
import { CalendarHeader as Ge, CalendarWeekdays as Ke } from "./calendar/header.js";
|
|
26
|
-
import { t as qe } from "./_chunks/calendar-
|
|
26
|
+
import { t as qe } from "./_chunks/calendar-CpaUK7w1.js";
|
|
27
27
|
import { CalendarDay as Je } from "./calendar/day.js";
|
|
28
28
|
import { CalendarMonthGrid as Ye } from "./calendar/month-grid.js";
|
|
29
29
|
import { CalendarYearGrid as Xe } from "./calendar/year-grid.js";
|
|
30
|
-
import { t as Ze } from "./_chunks/picker-
|
|
30
|
+
import { t as Ze } from "./_chunks/picker-DpP7iQLA.js";
|
|
31
31
|
import { ResourcePickerAvatar as Qe } from "./resource-picker/resource-picker-avatar.js";
|
|
32
32
|
import { DropdownPopup as $e } from "./dropdown/popup.js";
|
|
33
33
|
import { SharedResourcePicker as U } from "./resource-picker/resource-picker.js";
|
|
34
|
-
import { t as et } from "./_chunks/dropdown-
|
|
34
|
+
import { t as et } from "./_chunks/dropdown-voWqmwAe.js";
|
|
35
35
|
import { DropdownPopupContent as tt } from "./dropdown/content.js";
|
|
36
36
|
import { PreactRangeSlider as W } from "./filter/filters/slider/preact.js";
|
|
37
37
|
import { SingleValueSlider as G, SliderField as nt } from "./filter/filters/slider/single.js";
|
|
38
38
|
import { StatusBadge as rt, StatusFeedbackPanel as K } from "./status-feedback/render.js";
|
|
39
|
-
import { a as it, c as at, d as ot, f as st, i as ct, l as lt, m as ut, o as dt, p as ft, r as pt, s as mt, t as ht, u as gt } from "./_chunks/component-
|
|
39
|
+
import { a as it, c as at, d as ot, f as st, i as ct, l as lt, m as ut, o as dt, p as ft, r as pt, s as mt, t as ht, u as gt } from "./_chunks/component-YDcfoOLz.js";
|
|
40
40
|
import { BarChart as _t } from "./distribution-chart/bar-chart.js";
|
|
41
41
|
import { LineChart as vt } from "./distribution-chart/line-chart.js";
|
|
42
42
|
import { AreaChart as yt } from "./distribution-chart/area-chart.js";
|
|
@@ -47,13 +47,13 @@ import { HighlightedTextInput as Ct, InlineFieldGroup as wt, OptionButton as Tt
|
|
|
47
47
|
import { TimeGrid as Et } from "./time-grid.js";
|
|
48
48
|
import { FieldActions as Dt, FieldContent as Ot, FieldDropIndicator as kt, FieldGroup as At, FieldGroupHeading as jt, FieldIcon as Mt, FieldItem as Nt, FieldLibrary as Pt, FieldLibraryList as Ft, FieldList as It, FieldRemoveButton as Lt, FieldRemoveIcon as Rt, FieldRow as zt, FieldStatusBadge as Bt, FieldSummary as Vt, SelectedField as Ht } from "./field-configurator.js";
|
|
49
49
|
import { ComparisonPreview as Ut, IconChoiceGroup as Wt, IconToggleButton as Gt, InspectorSection as Kt, TypographyControls as qt } from "./formatting/index.js";
|
|
50
|
-
import { n as Jt, t as Yt } from "./_chunks/reorder-list-
|
|
50
|
+
import { n as Jt, t as Yt } from "./_chunks/reorder-list-Cc3KmfAN.js";
|
|
51
51
|
import { TimelineTrack as Xt } from "./timeline-track/index.js";
|
|
52
|
-
import { t as Zt } from "./_chunks/number-input-
|
|
52
|
+
import { t as Zt } from "./_chunks/number-input-BeIadZuL.js";
|
|
53
53
|
import { MaskedDraft as Qt } from "./masked-input/index.js";
|
|
54
|
-
import { t as $t } from "./_chunks/rich-text-
|
|
54
|
+
import { t as $t } from "./_chunks/rich-text-BzI1DyfF.js";
|
|
55
55
|
import { AssigneeField as en, AssigneePicker as tn, AssigneePickerLayout as nn } from "./assignee/index.js";
|
|
56
|
-
import { t as rn } from "./_chunks/framework-mount-
|
|
56
|
+
import { t as rn } from "./_chunks/framework-mount-C-Zwm44H.js";
|
|
57
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
58
|
import { createPortal as cn } from "react-dom";
|
|
59
59
|
//#region src/react-adapter.ts
|
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-Cc3KmfAN.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 { DropdownPopup as t } from "../dropdown/popup.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;
|