@revolist/ui 4.0.6-rc → 4.0.6
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/MIGRATION.md +7 -7
- package/OWNERSHIP.md +33 -33
- package/README.md +65 -410
- package/_button.scss +6 -2
- package/_chunks/{calendar-QWDyYzdo.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-GprenwEg.js} +4 -4
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-BK4W1nd6.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-CMkF17YZ.js → component-C3k_8uIq.js} +44 -45
- package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
- package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-mlH7l0Uq.js → control-BRfF5DWQ.js} +3 -3
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-FUU-MUKC.js → controls-B3EgM_DS.js} +137 -102
- package/_chunks/{date-control-Dup_P3w5.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-9z6pAG5T.js → date-time-CfiFYodx.js} +20 -20
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-NqEEVc9P.js} +4 -4
- package/_chunks/{duration-D7oRjsmP.js → duration-BGZ_qJ99.js} +6 -6
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-NNP9Fh9U.js} +4 -4
- package/_chunks/field-configurator-DPulsY3l.js +288 -0
- package/_chunks/{field-context-D57PnBbH.js → field-context-C4_WrO2z.js} +1 -1
- package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-BAAdEvr9.js} +2 -2
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-C8CnIW9k.js +267 -0
- package/_chunks/{native-Blr3byjO.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-pFMuHf3G.js → native-control-um1L1wgZ.js} +143 -138
- package/_chunks/{number-input-DqXV6vgP.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-gEGTu1Ki.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-C35Isk7p.js → popup-DECYM9FI.js} +2 -2
- package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-CCSK6TJA.js → request-trail-B1zVRPEf.js} +151 -142
- package/_chunks/{rich-text-5rnc8lpI.js → rich-text-Ci4d6dHn.js} +11 -11
- package/_chunks/selection-list-tooltips-m00U3L6z.js +42 -0
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-ncldbUwS.js} +2 -2
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-h-Z8yFBY.js} +2 -2
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-CBtRMBPr.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-BN5WdGHn.js} +2 -2
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-CKJ7VJOF.js} +3 -3
- package/_dialog.scss +57 -22
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_variables.scss +2 -1
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +1 -1
- package/activity-message.js +1 -1
- package/ai/_chat.scss +7 -0
- package/ai/_style.scss +27 -20
- package/ai/components.d.ts +3 -1
- package/ai/index.js +2 -2
- package/ai/mount.d.ts +15 -7
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/index.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -7
- package/assignee/assignee.scss +24 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +2 -2
- package/badge.d.ts +1 -1
- package/badge.js +1 -1
- package/badge.view.d.ts +1 -1
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.js +2 -2
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.js +2 -2
- package/buttons/svg-button.js +3 -3
- package/calendar/_calendar.scss +19 -23
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +2 -2
- package/calendar/header.js +2 -3
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +2 -2
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +2 -2
- package/cell-input.js +1 -1
- package/cell-input.scss +3 -7
- package/cell-visuals/badge.style.scss +6 -3
- package/cell-visuals/bar-chart.style.scss +2 -1
- package/cell-visuals/column-type.style.css +12 -0
- package/cell-visuals/index.js +1 -1
- package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
- package/cell-visuals/progress-line.style.scss +1 -4
- package/cell-visuals/sparkline.style.scss +2 -1
- package/cell-visuals/timeline.style.css +4 -2
- package/checkbox/checkbox.scss +5 -2
- package/checkbox/index.js +1 -1
- package/choice-chips/index.js +1 -1
- package/color-palette/built-in-palettes.js +1 -1
- package/color-palette/chart-palettes.js +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.constants.js +1 -1
- package/color-palette/color-picker.js +2 -2
- package/color-palette/color-picker.style.scss +23 -10
- package/color-palette/common-palettes.d.ts +1 -1
- package/color-palette/common-palettes.js +2 -2
- package/color-palette/gantt-palettes.js +1 -1
- package/color-palette/palette.js +1 -1
- package/color-palette/pivot-palettes.js +1 -1
- package/color-palette/platform-palettes.js +1 -1
- package/color-palette/pro-palettes.js +1 -1
- package/color-palette/scheduler-palettes.js +1 -1
- package/configurator-actions.d.ts +6 -6
- package/configurator-actions.js +1 -1
- package/configurator-aggregation-list.d.ts +1 -1
- package/configurator-aggregation-list.js +19 -17
- package/configurator-drop-zone.d.ts +2 -1
- package/configurator-drop-zone.js +34 -32
- package/configurator-focus.js +1 -1
- package/configurator-sections.d.ts +3 -3
- package/configurator-sections.js +1 -1
- package/control-attributes.js +1 -1
- package/control-presentation.js +2 -2
- package/controls.d.ts +11 -0
- package/controls.js +4 -4
- package/core/anchored-popover.js +1 -1
- package/core/control-id.js +1 -1
- package/core/editor-popup.js +1 -1
- package/core/motion.js +1 -1
- package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/tooltip.d.ts +1 -1
- package/core/top-layer-popup.d.ts +1 -1
- package/core/top-layer-popup.js +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +1 -0
- package/date-time/index.js +1 -1
- package/date-time/style.scss +192 -46
- package/date-time/time-selection.d.ts +1 -1
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +106 -28
- package/distribution-chart/area-chart.js +2 -2
- package/distribution-chart/bar-chart.js +2 -2
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.js +1 -1
- package/distribution-chart/line-chart.js +2 -2
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +1 -1
- package/dropdown/dropdown.types.d.ts +1 -1
- package/dropdown/editor-dropdown.style.scss +14 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.js +3 -3
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +2 -2
- package/editor-layout/index.d.ts +4 -4
- package/editor-layout/index.js +40 -35
- package/editor-layout/style.scss +82 -18
- package/favicon.svg +9 -0
- package/field-configurator.d.ts +14 -3
- package/field-configurator.js +1 -1
- package/field-reorder.hook.js +1 -1
- package/field-reorder.js +1 -1
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +35 -10
- package/filter/filters/slider/component.js +1 -1
- package/filter/filters/slider/control.js +1 -1
- package/filter/filters/slider/inputs.js +1 -1
- package/filter/filters/slider/logic.js +1 -1
- package/filter/filters/slider/preact.js +1 -1
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +2 -2
- package/filter-badge.js +2 -2
- package/filter-controls.js +2 -2
- package/form-controls/index.js +3 -3
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +2 -2
- package/formatting/index.js +7 -7
- package/formatting/styles.scss +13 -11
- package/framework.js +76 -77
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +1 -1
- package/icon-toolbar.js +1 -1
- package/icons/icon.d.ts +1 -1
- package/icons/icon.js +1 -1
- package/legend.d.ts +1 -1
- package/legend.js +1 -1
- package/masked-input/index.js +4 -4
- package/native-control.js +1 -1
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +16 -16
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +2 -2
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +1 -1
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +3 -3
- package/pdf-viewer/search-bar.d.ts +1 -1
- package/pdf-viewer/status.d.ts +1 -1
- package/pdf-viewer/style.scss +203 -42
- package/preact-mount.js +1 -1
- package/preact.d.ts +5 -4
- package/preact.js +105 -67
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/progress/bar.js +1 -1
- package/progress/circular.js +1 -1
- package/progress/range.js +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +4 -2
- package/react-control.js +1 -1
- package/react.d.ts +2 -2
- package/react.js +30 -31
- package/reorder-list.d.ts +1 -1
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.js +1 -1
- package/resource-picker/resource-picker-option.js +1 -1
- package/resource-picker/resource-picker-popup.js +2 -2
- package/resource-picker/resource-picker.js +74 -72
- package/resource-picker/resource-picker.scss +62 -34
- package/resource-picker/resource-picker.utils.js +1 -1
- package/rich-text/index.js +1 -1
- package/rich-text/style.scss +203 -49
- package/rich-text/toolbar.d.ts +1 -1
- package/robots.txt +4 -0
- package/search-input/index.js +2 -2
- package/segmented-switch/index.js +1 -1
- package/select.js +1 -1
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/badge.js +2 -2
- package/status-feedback/exit-snapshot.js +2 -2
- package/status-feedback/header.js +2 -2
- package/status-feedback/icons.js +1 -1
- package/status-feedback/index.js +1 -1
- package/status-feedback/item.js +2 -2
- package/status-feedback/motion.js +1 -1
- package/status-feedback/placement.js +1 -1
- package/status-feedback/popover.js +2 -2
- package/status-feedback/render.js +1 -1
- package/status-feedback/status-feedback.scss +124 -35
- package/styles/_activity-message.scss +24 -7
- package/styles/_alert.scss +61 -14
- package/styles/_cell-editor-frame.scss +11 -0
- package/styles/_compositions.scss +399 -79
- package/styles/_control.scss +30 -8
- package/styles/_disclosure.scss +15 -5
- package/styles/_editor-counter.scss +16 -6
- package/styles/_editor-slider.scss +8 -2
- package/styles/_field-configurator.scss +192 -41
- package/styles/_fields-grid.scss +16 -4
- package/styles/_filter-controls.scss +10 -2
- package/styles/_icon-action.scss +48 -15
- package/styles/_loading.scss +12 -3
- package/styles/_motion.scss +32 -9
- package/styles/_primitives.scss +346 -96
- package/styles/_theme.scss +130 -86
- package/styles/_thresholds.scss +28 -25
- package/styles/_time-grid.scss +8 -3
- package/styles/_tokens.scss +6 -1
- package/styles/color-roles.js +1 -1
- package/styles/configurator-actions.scss +126 -26
- package/styles/pagination.css +114 -30
- package/styles/rating.css +8 -3
- package/styles.css +1 -1
- package/styles.scss +1 -3
- package/surfaces.d.ts +4 -2
- package/surfaces.js +8 -8
- package/svelte/UiComponent.svelte +44 -11
- package/svelte-control.js +1 -1
- package/svelte.d.ts +1 -1
- package/svelte.js +5 -5
- package/switch/index.js +2 -2
- package/time-grid.js +3 -3
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +3 -3
- package/timeline-track/model.js +1 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-badge.js +1 -1
- package/vue-control.js +1 -1
- package/vue-segmented-switch.js +1 -1
- package/vue.d.ts +3 -2
- package/vue.js +43 -44
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/field-configurator-BCINdXpU.js +0 -223
- package/_chunks/mount-Cw2zk58T.js +0 -266
- package/_shared/data-query/binding.d.ts +0 -30
- package/_shared/data-query/blocks.d.ts +0 -30
- package/_shared/data-query/commands.d.ts +0 -47
- package/_shared/data-query/contracts.d.ts +0 -106
- package/_shared/data-query/cursor-reader.d.ts +0 -25
- package/_shared/data-query/direct-binding.d.ts +0 -3
- package/_shared/data-query/index.d.ts +0 -23
- package/_shared/data-query/infinite-binding.d.ts +0 -18
- package/_shared/data-query/keys.d.ts +0 -9
- package/_shared/data-query/limiter.d.ts +0 -12
- package/_shared/data-query/load-options.d.ts +0 -25
- package/_shared/data-query/materialize.d.ts +0 -2
- package/_shared/data-query/policy.d.ts +0 -14
- package/_shared/data-query/provider-queries.d.ts +0 -22
- package/_shared/data-query/reader.d.ts +0 -23
- package/_shared/data-query/remote-load.d.ts +0 -7
- package/_shared/data-query/source.d.ts +0 -40
package/react.js
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, 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, u as le, x as ue, y as de } from "./_chunks/request-trail-
|
|
2
|
-
import { n as l, t as u } from "./_chunks/rating-choice-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, 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, u as le, x as ue, y as de } from "./_chunks/request-trail-B1zVRPEf.js";
|
|
2
|
+
import { n as l, t as u } from "./_chunks/rating-choice-CepVfGUq.js";
|
|
3
3
|
import { SvgIcon as d } from "./icons/icon.js";
|
|
4
|
-
import { l as f, n as p, p as m } from "./_chunks/native-control-
|
|
5
|
-
import { t as h } from "./_chunks/popup-
|
|
6
|
-
import { t as g } from "./_chunks/delete-button-
|
|
4
|
+
import { l as f, n as p, p as m } from "./_chunks/native-control-um1L1wgZ.js";
|
|
5
|
+
import { t as h } from "./_chunks/popup-DECYM9FI.js";
|
|
6
|
+
import { t as g } from "./_chunks/delete-button-jneO24wa.js";
|
|
7
7
|
import { RemoveButton as _ } from "./buttons/remove-button.js";
|
|
8
|
-
import { A as v,
|
|
9
|
-
import { t as
|
|
10
|
-
import { SvgButton as
|
|
11
|
-
import { SegmentedSwitch as
|
|
8
|
+
import { A as v, B as y, C as b, D as x, E as S, F as C, I as w, L as T, M as E, N as D, O, P as k, R as A, T as j, _ as M, a as N, b as P, c as F, d as I, f as L, g as R, h as z, i as B, j as V, k as H, l as fe, m as pe, n as me, o as he, p as ge, r as _e, s as ve, t as ye, u as be, v as xe, w as Se, x as Ce, y as we } from "./_chunks/controls-B3EgM_DS.js";
|
|
9
|
+
import { t as Te } from "./_chunks/tooltip-h-Z8yFBY.js";
|
|
10
|
+
import { SvgButton as Ee } from "./buttons/svg-button.js";
|
|
11
|
+
import { SegmentedSwitch as De } from "./segmented-switch/index.js";
|
|
12
12
|
import { EditorList as U, EditorListGroup as W, EditorListItem as G, EditorListItemContent as K, EditorPane as q, EditorSplitLayout as J } from "./editor-layout/index.js";
|
|
13
|
-
import { a as
|
|
14
|
-
import { t as
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { n as Ve, r as He, t as Ue } from "./_chunks/choice-chips-A6WR-WJe.js";
|
|
13
|
+
import { a as Oe, c as ke, i as Ae, l as je, n as Me, o as Ne, r as Pe, s as Fe, t as Ie } from "./_chunks/dialog.parts-NqEEVc9P.js";
|
|
14
|
+
import { n as Le, t as Re } from "./_chunks/render-bTk3curw.js";
|
|
15
|
+
import { t as ze } from "./_chunks/color-palette-7siNch__.js";
|
|
16
|
+
import { t as Be } from "./_chunks/color-picker-Cfc9eqZb.js";
|
|
17
|
+
import { n as Ve, r as He, t as Ue } from "./_chunks/choice-chips-C5OxD0GV.js";
|
|
19
18
|
import { FilterBadge as We, FilterBadgeInfoButton as Ge } from "./filter-badge.js";
|
|
20
19
|
import { ActivityMessage as Ke } from "./activity-message.js";
|
|
21
|
-
import { n as qe } from "./_chunks/icon-toolbar-
|
|
20
|
+
import { n as qe } from "./_chunks/icon-toolbar-BAAdEvr9.js";
|
|
22
21
|
import { Checkbox as Je } from "./checkbox/index.js";
|
|
23
22
|
import { Switch as Ye } from "./switch/index.js";
|
|
24
23
|
import { SearchInput as Xe } from "./search-input/index.js";
|
|
25
24
|
import { DisclosureSummary as Ze, FilterChip as Qe, FormField as $e } from "./form-controls/presentation.js";
|
|
26
|
-
import { a as et, i as tt, r as nt } from "./_chunks/date-time-
|
|
27
|
-
import { n as rt, t as it } from "./_chunks/duration-
|
|
25
|
+
import { a as et, i as tt, r as nt } from "./_chunks/date-time-CfiFYodx.js";
|
|
26
|
+
import { n as rt, t as it } from "./_chunks/duration-BGZ_qJ99.js";
|
|
28
27
|
import { CalendarHeader as at, CalendarWeekdays as ot } from "./calendar/header.js";
|
|
29
|
-
import { t as st } from "./_chunks/calendar-
|
|
28
|
+
import { t as st } from "./_chunks/calendar-BQYQLu8Q.js";
|
|
30
29
|
import { CalendarDay as ct } from "./calendar/day.js";
|
|
31
30
|
import { CalendarMonthGrid as lt } from "./calendar/month-grid.js";
|
|
32
31
|
import { CalendarYearGrid as ut } from "./calendar/year-grid.js";
|
|
33
|
-
import { t as dt } from "./_chunks/picker-
|
|
32
|
+
import { t as dt } from "./_chunks/picker-igNshTRC.js";
|
|
34
33
|
import { ResourcePickerAvatar as ft } from "./resource-picker/resource-picker-avatar.js";
|
|
35
34
|
import { SharedResourcePicker as pt } from "./resource-picker/resource-picker.js";
|
|
36
35
|
import { PreactRangeSlider as mt } from "./filter/filters/slider/preact.js";
|
|
37
36
|
import { SingleValueSlider as ht, SliderField as gt } from "./filter/filters/slider/single.js";
|
|
38
|
-
import { a as _t, c as vt, d as yt, f as bt, i as xt, l as St, m as Ct, o as wt, p as Tt, r as Et, s as Dt, t as Ot, u as kt } from "./_chunks/component-
|
|
37
|
+
import { a as _t, c as vt, d as yt, f as bt, i as xt, l as St, m as Ct, o as wt, p as Tt, r as Et, s as Dt, t as Ot, u as kt } from "./_chunks/component-C3k_8uIq.js";
|
|
39
38
|
import { BarChart as At } from "./distribution-chart/bar-chart.js";
|
|
40
39
|
import { LineChart as jt } from "./distribution-chart/line-chart.js";
|
|
41
40
|
import { AreaChart as Mt } from "./distribution-chart/area-chart.js";
|
|
@@ -43,19 +42,19 @@ import { DistributionChart as Nt } from "./distribution-chart/index.js";
|
|
|
43
42
|
import { BrushRange as Pt } from "./brush-range/component.js";
|
|
44
43
|
import { HighlightedTextInput as Ft, InlineFieldGroup as It, OptionButton as Lt } from "./filter-controls.js";
|
|
45
44
|
import { TimeGrid as Rt } from "./time-grid.js";
|
|
46
|
-
import { _ as zt, a as Bt, c as Vt, d as Ht, f as Ut, g as Wt, h as Gt, i as Kt, l as qt, m as Jt, o as Yt, p as Xt, r as Zt, s as Qt, u as $t, v as en } from "./_chunks/field-configurator-
|
|
45
|
+
import { _ as zt, a as Bt, c as Vt, d as Ht, f as Ut, g as Wt, h as Gt, i as Kt, l as qt, m as Jt, o as Yt, p as Xt, r as Zt, s as Qt, u as $t, v as en } from "./_chunks/field-configurator-DPulsY3l.js";
|
|
47
46
|
import { ComparisonPreview as tn, IconChoiceGroup as nn, IconToggleButton as rn, InspectorSection as an, TypographyControls as on } from "./formatting/index.js";
|
|
48
|
-
import { n as sn, t as cn } from "./_chunks/reorder-list-
|
|
47
|
+
import { n as sn, t as cn } from "./_chunks/reorder-list-B4w3aARt.js";
|
|
49
48
|
import { TimelineTrack as ln } from "./timeline-track/index.js";
|
|
50
49
|
import { Legend as un } from "./legend.js";
|
|
51
|
-
import { t as dn } from "./_chunks/number-input-
|
|
50
|
+
import { t as dn } from "./_chunks/number-input-CKiA4d1N.js";
|
|
52
51
|
import { MaskedDraft as fn } from "./masked-input/index.js";
|
|
53
|
-
import { t as pn } from "./_chunks/rich-text-
|
|
52
|
+
import { t as pn } from "./_chunks/rich-text-Ci4d6dHn.js";
|
|
54
53
|
import { AssigneeField as mn, AssigneePicker as hn, AssigneePickerLayout as gn } from "./assignee/index.js";
|
|
55
|
-
import { t as _n } from "./_chunks/framework-mount-
|
|
54
|
+
import { t as _n } from "./_chunks/framework-mount-D4I8HpVp.js";
|
|
56
55
|
import { createElement as Y, forwardRef as vn, isValidElement as yn, useImperativeHandle as bn, useLayoutEffect as X, useRef as Z, useState as xn } from "react";
|
|
57
56
|
import { createPortal as Sn } from "react-dom";
|
|
58
|
-
//#region
|
|
57
|
+
//#region package/react-adapter.ts
|
|
59
58
|
var Cn = /* @__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(".");
|
|
60
59
|
function Q(e, t, n = {}) {
|
|
61
60
|
let r = vn((r, i) => {
|
|
@@ -94,8 +93,8 @@ function Q(e, t, n = {}) {
|
|
|
94
93
|
return r.displayName = `Rv${t}`, r;
|
|
95
94
|
}
|
|
96
95
|
//#endregion
|
|
97
|
-
//#region
|
|
98
|
-
var wn = /* @__PURE__ */ Q(p, "Input"), Tn = /* @__PURE__ */ Q(d, "SvgIcon"), En = /* @__PURE__ */ Q(
|
|
96
|
+
//#region package/react.ts
|
|
97
|
+
var wn = /* @__PURE__ */ Q(p, "Input"), Tn = /* @__PURE__ */ Q(d, "SvgIcon"), En = /* @__PURE__ */ Q(Ee, "SvgButton"), Dn = /* @__PURE__ */ Q(g, "DeleteButton"), On = /* @__PURE__ */ Q(_, "RemoveButton"), kn = /* @__PURE__ */ Q(Je, "Checkbox"), An = /* @__PURE__ */ Q(Ye, "Switch"), jn = /* @__PURE__ */ Q(De, "SegmentedSwitch"), Mn = /* @__PURE__ */ Q(He, "ChoiceChips"), Nn = /* @__PURE__ */ Q(Ve, "ChoiceChipInfoButton"), Pn = /* @__PURE__ */ Q(Ue, "ChoiceChip"), Fn = /* @__PURE__ */ Q(Xe, "SearchInput"), In = /* @__PURE__ */ Q(Qe, "FilterChip"), Ln = /* @__PURE__ */ Q($e, "FormField"), Rn = /* @__PURE__ */ Q(Ze, "DisclosureSummary"), zn = /* @__PURE__ */ Q(J, "EditorSplitLayout"), $ = /* @__PURE__ */ Q(q, "EditorPane"), Bn = /* @__PURE__ */ Q(U, "EditorList"), Vn = /* @__PURE__ */ Q(G, "EditorListItem"), Hn = /* @__PURE__ */ Q(K, "EditorListItemContent"), Un = /* @__PURE__ */ Q(W, "EditorListGroup"), Wn = /* @__PURE__ */ Q(st, "Calendar"), Gn = /* @__PURE__ */ Q(at, "CalendarHeader"), Kn = /* @__PURE__ */ Q(ot, "CalendarWeekdays"), qn = /* @__PURE__ */ Q(ct, "CalendarDay"), Jn = /* @__PURE__ */ Q(lt, "CalendarMonthGrid"), Yn = /* @__PURE__ */ Q(ut, "CalendarYearGrid"), Xn = /* @__PURE__ */ Q(dt, "CalendarPicker"), Zn = /* @__PURE__ */ Q(pt, "SharedResourcePicker"), Qn = /* @__PURE__ */ Q(ft, "ResourcePickerAvatar"), $n = /* @__PURE__ */ Q(ze, "ColorPalette"), er = /* @__PURE__ */ Q(Be, "ColorPicker"), tr = /* @__PURE__ */ Q(f, "Dropdown", { factoryCallbacks: [
|
|
99
98
|
"renderOption",
|
|
100
99
|
"renderValue",
|
|
101
100
|
"renderPlaceholder",
|
|
@@ -107,7 +106,7 @@ var wn = /* @__PURE__ */ Q(p, "Input"), Tn = /* @__PURE__ */ Q(d, "SvgIcon"), En
|
|
|
107
106
|
"renderPlaceholder",
|
|
108
107
|
"renderSelectedValue",
|
|
109
108
|
"renderNoResults"
|
|
110
|
-
] }), ir = /* @__PURE__ */ Q(mt, "PreactRangeSlider"), ar = /* @__PURE__ */ Q(ht, "SingleValueSlider"), or = /* @__PURE__ */ Q(gt, "SliderField"), sr = /* @__PURE__ */ Q(
|
|
109
|
+
] }), ir = /* @__PURE__ */ Q(mt, "PreactRangeSlider"), ar = /* @__PURE__ */ Q(ht, "SingleValueSlider"), or = /* @__PURE__ */ Q(gt, "SliderField"), sr = /* @__PURE__ */ Q(ge, "IconButton"), cr = /* @__PURE__ */ Q(k, "ToggleButton"), lr = /* @__PURE__ */ Q(me, "ButtonGroup"), ur = /* @__PURE__ */ Q(S, "SegmentedControl"), dr = /* @__PURE__ */ Q(v, "Tabs"), fr = /* @__PURE__ */ Q(H, "TabPanel"), pr = /* @__PURE__ */ Q(b, "RadioGroup"), mr = /* @__PURE__ */ Q(V, "TextInput"), hr = /* @__PURE__ */ Q(E, "Textarea"), gr = /* @__PURE__ */ Q(xe, "NumberInput"), _r = /* @__PURE__ */ Q(we, "NumberStepper"), vr = /* @__PURE__ */ Q(he, "DateInput"), yr = /* @__PURE__ */ Q(D, "TimeInput"), br = /* @__PURE__ */ Q(ve, "DateTimeInput"), xr = /* @__PURE__ */ Q(_e, "Chip"), Sr = /* @__PURE__ */ Q(I, "FieldHint"), Cr = /* @__PURE__ */ Q(be, "FieldError"), wr = /* @__PURE__ */ Q(L, "FormSection"), Tr = /* @__PURE__ */ Q(F, "Disclosure"), Er = /* @__PURE__ */ Q(Ce, "Panel"), Dr = /* @__PURE__ */ Q(C, "Toolbar"), Or = /* @__PURE__ */ Q(w, "ToolbarGroup"), kr = /* @__PURE__ */ Q(T, "ToolbarSeparator"), Ar = /* @__PURE__ */ Q(y, "Badge"), jr = /* @__PURE__ */ Q(N, "CountBadge"), Mr = /* @__PURE__ */ Q(x, "Spinner"), Nr = /* @__PURE__ */ Q(pe, "LoadingOverlay"), Pr = /* @__PURE__ */ Q(fe, "EmptyState"), Fr = /* @__PURE__ */ Q(z, "Menu"), Ir = /* @__PURE__ */ Q(R, "MenuItem"), Lr = /* @__PURE__ */ Q(M, "MenuSeparator"), Rr = /* @__PURE__ */ Q(O, "Submenu"), zr = /* @__PURE__ */ Q(j, "ResizeHandle"), Br = /* @__PURE__ */ Q(P, "Pagination"), Vr = /* @__PURE__ */ Q(B, "CircularProgress"), Hr = /* @__PURE__ */ Q(Se, "Rating"), Ur = /* @__PURE__ */ Q(ye, "Button"), Wr = /* @__PURE__ */ Q(q, "Pane"), Gr = /* @__PURE__ */ Q(J, "SplitLayout"), Kr = /* @__PURE__ */ Q(A, "Alert"), qr = /* @__PURE__ */ Q(U, "Listbox"), Jr = /* @__PURE__ */ Q(G, "ListboxOption"), Yr = /* @__PURE__ */ Q(W, "ListboxGroup"), Xr = /* @__PURE__ */ Q(K, "ListboxOptionContent"), Zr = /* @__PURE__ */ Q(Le, "StatusFeedbackPanel"), Qr = /* @__PURE__ */ Q(Re, "StatusBadge"), $r = /* @__PURE__ */ Q(wt, "Combobox", { factoryCallbacks: [
|
|
111
110
|
"renderOption",
|
|
112
111
|
"renderValue",
|
|
113
112
|
"renderPlaceholder",
|
|
@@ -119,6 +118,6 @@ var wn = /* @__PURE__ */ Q(p, "Input"), Tn = /* @__PURE__ */ Q(d, "SvgIcon"), En
|
|
|
119
118
|
"renderPlaceholder",
|
|
120
119
|
"renderSelectedValue",
|
|
121
120
|
"renderNoResults"
|
|
122
|
-
] }), ti = /* @__PURE__ */ Q(_t, "Avatar"), ni = /* @__PURE__ */ Q(Tt, "ProgressBar"), ri = /* @__PURE__ */ Q(bt, "Popover"), ii = /* @__PURE__ */ Q(Ct, "Tooltip"), ai = /* @__PURE__ */ Q(kt, "Dialog"), oi = /* @__PURE__ */ Q(Dt, "ConfirmDialog"), si = /* @__PURE__ */ Q(vt, "DatePicker"), ci = /* @__PURE__ */ Q(St, "DateRangePicker"), li = /* @__PURE__ */ Q(
|
|
121
|
+
] }), ti = /* @__PURE__ */ Q(_t, "Avatar"), ni = /* @__PURE__ */ Q(Tt, "ProgressBar"), ri = /* @__PURE__ */ Q(bt, "Popover"), ii = /* @__PURE__ */ Q(Ct, "Tooltip"), ai = /* @__PURE__ */ Q(kt, "Dialog"), oi = /* @__PURE__ */ Q(Dt, "ConfirmDialog"), si = /* @__PURE__ */ Q(vt, "DatePicker"), ci = /* @__PURE__ */ Q(St, "DateRangePicker"), li = /* @__PURE__ */ Q(Fe, "DialogHeader"), ui = /* @__PURE__ */ Q(Pe, "DialogBody"), di = /* @__PURE__ */ Q(Oe, "DialogFooter"), fi = /* @__PURE__ */ Q(Nt, "DistributionChart"), pi = /* @__PURE__ */ Q(At, "BarChart"), mi = /* @__PURE__ */ Q(jt, "LineChart"), hi = /* @__PURE__ */ Q(Mt, "AreaChart"), gi = /* @__PURE__ */ Q(Pt, "BrushRange"), _i = /* @__PURE__ */ Q(Lt, "OptionButton"), vi = /* @__PURE__ */ Q(Ft, "HighlightedTextInput"), yi = /* @__PURE__ */ Q(It, "InlineFieldGroup"), bi = /* @__PURE__ */ Q(un, "Legend"), xi = /* @__PURE__ */ Q(Rt, "TimeGrid"), Si = /* @__PURE__ */ Q(Vt, "FieldIcon"), Ci = /* @__PURE__ */ Q(zt, "FieldSummary"), wi = /* @__PURE__ */ Q($t, "FieldLibrary"), Ti = /* @__PURE__ */ Q(Qt, "FieldGroupHeading"), Ei = /* @__PURE__ */ Q(Yt, "FieldGroup"), Di = /* @__PURE__ */ Q(Ut, "FieldList"), Oi = /* @__PURE__ */ Q(Gt, "FieldRow"), ki = /* @__PURE__ */ Q(Kt, "FieldContent"), Ai = /* @__PURE__ */ Q(qt, "FieldItem"), ji = /* @__PURE__ */ Q(Ht, "FieldLibraryList"), Mi = /* @__PURE__ */ Q(en, "SelectedField"), Ni = /* @__PURE__ */ Q(Zt, "FieldActions"), Pi = /* @__PURE__ */ Q(Wt, "FieldStatusBadge"), Fi = /* @__PURE__ */ Q(Xt, "FieldRemoveButton"), Ii = /* @__PURE__ */ Q(Jt, "FieldRemoveIcon"), Li = /* @__PURE__ */ Q(Bt, "FieldDropIndicator"), Ri = /* @__PURE__ */ Q(Ne, "DialogForm"), zi = /* @__PURE__ */ Q(Ae, "DialogCloseButton"), Bi = /* @__PURE__ */ Q(Ie, "DialogActionFooter"), Vi = /* @__PURE__ */ Q(Me, "DialogActions"), Hi = /* @__PURE__ */ Q(ke, "DialogTitleInput"), Ui = /* @__PURE__ */ Q(je, "EditableDialogHeader"), Wi = /* @__PURE__ */ Q(Te, "ControlTooltip"), Gi = /* @__PURE__ */ Q(an, "InspectorSection"), Ki = /* @__PURE__ */ Q(nn, "IconChoiceGroup"), qi = /* @__PURE__ */ Q(rn, "IconToggleButton"), Ji = /* @__PURE__ */ Q(on, "TypographyControls"), Yi = /* @__PURE__ */ Q(tn, "ComparisonPreview"), Xi = /* @__PURE__ */ Q(Ge, "FilterBadgeInfoButton"), Zi = /* @__PURE__ */ Q(We, "FilterBadge"), Qi = /* @__PURE__ */ Q(l, "RatingStar"), $i = /* @__PURE__ */ Q(u, "RatingChoice"), ea = /* @__PURE__ */ Q(sn, "ReorderList"), ta = /* @__PURE__ */ Q(cn, "ReorderHandle"), na = /* @__PURE__ */ Q(ln, "TimelineTrack"), ra = /* @__PURE__ */ Q(Ke, "ActivityMessage"), ia = /* @__PURE__ */ Q(dn, "NumberDraft"), aa = /* @__PURE__ */ Q(fn, "MaskedDraft"), oa = /* @__PURE__ */ Q(rt, "DurationField"), sa = /* @__PURE__ */ Q(it, "DurationDraft"), ca = /* @__PURE__ */ Q(pn, "HtmlEditor"), la = /* @__PURE__ */ Q(et, "TemporalPicker"), ua = /* @__PURE__ */ Q(tt, "TemporalDraft"), da = /* @__PURE__ */ Q(nt, "DateTimeField"), fa = /* @__PURE__ */ Q(hn, "AssigneePicker"), pa = /* @__PURE__ */ Q(mn, "AssigneeField"), ma = /* @__PURE__ */ Q(gn, "AssigneePickerLayout"), ha = /* @__PURE__ */ Q(c, "AiPromptInput"), ga = /* @__PURE__ */ Q(t, "AiSuggestions"), _a = /* @__PURE__ */ Q(o, "AiActionStatus"), va = /* @__PURE__ */ Q(ne, "AiChangePreview"), ya = /* @__PURE__ */ Q(s, "AiResult"), ba = /* @__PURE__ */ Q(de, "AiResultView"), xa = /* @__PURE__ */ Q(e, "AiResultTable"), Sa = /* @__PURE__ */ Q(ue, "AiResultMetrics"), Ca = /* @__PURE__ */ Q(r, "AiResultText"), wa = /* @__PURE__ */ Q(ae, "AiAssistant"), Ta = /* @__PURE__ */ Q(ce, "AiRequestTrail"), Ea = /* @__PURE__ */ Q(Ot, "PdfViewer"), Da = /* @__PURE__ */ Q(Et, "PdfViewerToolbar"), Oa = /* @__PURE__ */ Q(re, "AiChat"), ka = /* @__PURE__ */ Q(ee, "AiChatContent"), Aa = /* @__PURE__ */ Q(oe, "AiChatComposer"), ja = /* @__PURE__ */ Q(n, "AiChatEmptyState"), Ma = /* @__PURE__ */ Q(ie, "AiMessage"), Na = /* @__PURE__ */ Q(i, "AiMessageContent"), Pa = /* @__PURE__ */ Q(se, "AiMessageActions"), Fa = /* @__PURE__ */ Q(te, "AiReasoning"), Ia = /* @__PURE__ */ Q(le, "AiTask"), La = /* @__PURE__ */ Q(a, "AiTaskItem"), Ra = /* @__PURE__ */ Q(qe, "IconToolbar");
|
|
123
122
|
//#endregion
|
|
124
123
|
export { ra as ActivityMessage, _a as AiActionStatus, wa as AiAssistant, va as AiChangePreview, Oa as AiChat, Aa as AiChatComposer, ka as AiChatContent, ja as AiChatEmptyState, Ma as AiMessage, Pa as AiMessageActions, Na as AiMessageContent, ha as AiPromptInput, Fa as AiReasoning, Ta as AiRequestTrail, ya as AiResult, Sa as AiResultMetrics, xa as AiResultTable, Ca as AiResultText, ba as AiResultView, ga as AiSuggestions, Ia as AiTask, La as AiTaskItem, Kr as Alert, hi as AreaChart, pa as AssigneeField, fa as AssigneePicker, ma as AssigneePickerLayout, ti as Avatar, Ar as Badge, pi as BarChart, gi as BrushRange, Ur as Button, lr as ButtonGroup, Wn as Calendar, qn as CalendarDay, Gn as CalendarHeader, Jn as CalendarMonthGrid, Xn as CalendarPicker, Kn as CalendarWeekdays, Yn as CalendarYearGrid, kn as Checkbox, xr as Chip, Pn as ChoiceChip, Nn as ChoiceChipInfoButton, Mn as ChoiceChips, Vr as CircularProgress, $n as ColorPalette, er as ColorPicker, $r as Combobox, Yi as ComparisonPreview, oi as ConfirmDialog, Wi as ControlTooltip, jr as CountBadge, vr as DateInput, si as DatePicker, ci as DateRangePicker, da as DateTimeField, br as DateTimeInput, Dn as DeleteButton, ai as Dialog, Bi as DialogActionFooter, Vi as DialogActions, ui as DialogBody, zi as DialogCloseButton, di as DialogFooter, Ri as DialogForm, li as DialogHeader, Hi as DialogTitleInput, Tr as Disclosure, Rn as DisclosureSummary, fi as DistributionChart, tr as Dropdown, nr as DropdownPopup, rr as DropdownPopupContent, sa as DurationDraft, oa as DurationField, Ui as EditableDialogHeader, Bn as EditorList, Un as EditorListGroup, Vn as EditorListItem, Hn as EditorListItemContent, $ as EditorPane, zn as EditorSplitLayout, Pr as EmptyState, Ni as FieldActions, ki as FieldContent, Li as FieldDropIndicator, Cr as FieldError, Ei as FieldGroup, Ti as FieldGroupHeading, Sr as FieldHint, Si as FieldIcon, Ai as FieldItem, wi as FieldLibrary, ji as FieldLibraryList, Di as FieldList, Fi as FieldRemoveButton, Ii as FieldRemoveIcon, Oi as FieldRow, Pi as FieldStatusBadge, Ci as FieldSummary, Zi as FilterBadge, Xi as FilterBadgeInfoButton, In as FilterChip, Ln as FormField, wr as FormSection, vi as HighlightedTextInput, ca as HtmlEditor, sr as IconButton, Ki as IconChoiceGroup, qi as IconToggleButton, Ra as IconToolbar, yi as InlineFieldGroup, wn as Input, Gi as InspectorSection, bi as Legend, mi as LineChart, qr as Listbox, Yr as ListboxGroup, Jr as ListboxOption, Xr as ListboxOptionContent, Nr as LoadingOverlay, aa as MaskedDraft, Fr as Menu, Ir as MenuItem, Lr as MenuSeparator, ei as MultiSelect, ia as NumberDraft, gr as NumberInput, _r as NumberStepper, _i as OptionButton, Br as Pagination, Wr as Pane, Er as Panel, Ea as PdfViewer, Da as PdfViewerToolbar, ri as Popover, ir as PreactRangeSlider, ni as ProgressBar, pr as RadioGroup, Hr as Rating, $i as RatingChoice, Qi as RatingStar, On as RemoveButton, ta as ReorderHandle, ea as ReorderList, zr as ResizeHandle, Qn as ResourcePickerAvatar, Fn as SearchInput, ur as SegmentedControl, jn as SegmentedSwitch, Mi as SelectedField, Zn as SharedResourcePicker, ar as SingleValueSlider, or as SliderField, Mr as Spinner, Gr as SplitLayout, Qr as StatusBadge, Zr as StatusFeedbackPanel, Rr as Submenu, En as SvgButton, Tn as SvgIcon, An as Switch, fr as TabPanel, dr as Tabs, ua as TemporalDraft, la as TemporalPicker, mr as TextInput, hr as Textarea, xi as TimeGrid, yr as TimeInput, na as TimelineTrack, cr as ToggleButton, Dr as Toolbar, Or as ToolbarGroup, kr as ToolbarSeparator, ii as Tooltip, Ji as TypographyControls, Q as createReactAdapter, xt as defaultPdfViewerText };
|
package/reorder-list.d.ts
CHANGED
|
@@ -15,6 +15,6 @@ export interface ReorderListProps<T> {
|
|
|
15
15
|
onDrop(event: DragEvent, boundary: number): void;
|
|
16
16
|
}
|
|
17
17
|
/** Shared list geometry, event routing and insertion markers. Consumers own move policy and data. */
|
|
18
|
-
export declare function ReorderList<T>({ items, itemKey, renderItem, renderHandle, itemAttributes, className, rowClassName, endClassName, draggedKey, dropIndex, empty, onDragOver, onDrop }: ReorderListProps<T>): h.JSX.Element;
|
|
18
|
+
export declare function ReorderList<T>({ items, itemKey, renderItem, renderHandle, itemAttributes, className, rowClassName, endClassName, draggedKey, dropIndex, empty, onDragOver, onDrop, }: ReorderListProps<T>): h.JSX.Element;
|
|
19
19
|
/** Native drag source; product adapters supply stable IDs, announcements and keyboard move policy. */
|
|
20
20
|
export declare function ReorderHandle({ className, children, ...props }: JSX.IntrinsicElements['button']): h.JSX.Element;
|
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-B4w3aARt.js";
|
package/reorder-list.scss
CHANGED
|
@@ -1,29 +1,47 @@
|
|
|
1
1
|
@use './styles/motion';
|
|
2
|
-
.rv-reorder-list {
|
|
2
|
+
.rv-reorder-list {
|
|
3
|
+
position: relative;
|
|
4
|
+
min-width: 0;
|
|
5
|
+
}
|
|
3
6
|
.rv-reorder-row {
|
|
4
7
|
position: relative;
|
|
5
8
|
min-width: 0;
|
|
6
9
|
&.dragging {
|
|
7
10
|
border-radius: 8px;
|
|
8
11
|
background: var(--rv-ui-selected-bg);
|
|
9
|
-
> :not(.rv-reorder-handle) {
|
|
12
|
+
> :not(.rv-reorder-handle) {
|
|
13
|
+
opacity: 0.3;
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
&.drop-before::after {
|
|
12
|
-
content: '';
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
content: '';
|
|
18
|
+
position: absolute;
|
|
19
|
+
z-index: 4;
|
|
20
|
+
top: -4px;
|
|
21
|
+
right: 0;
|
|
22
|
+
left: var(--rv-reorder-marker-inset, 30px);
|
|
23
|
+
height: 2px;
|
|
24
|
+
border-radius: 2px;
|
|
15
25
|
background: var(--rv-ui-accent);
|
|
16
|
-
box-shadow: 0 0 0 3px
|
|
26
|
+
box-shadow: 0 0 0 3px
|
|
27
|
+
color-mix(in srgb, var(--rv-ui-accent) 14%, transparent);
|
|
17
28
|
pointer-events: none;
|
|
18
29
|
}
|
|
19
30
|
}
|
|
20
31
|
.rv-reorder-drop-end {
|
|
21
|
-
position: relative;
|
|
32
|
+
position: relative;
|
|
33
|
+
height: 16px;
|
|
22
34
|
margin: 4px 0 0 var(--rv-reorder-marker-inset, 30px);
|
|
23
35
|
pointer-events: none;
|
|
24
36
|
&::after {
|
|
25
|
-
content: '';
|
|
26
|
-
|
|
37
|
+
content: '';
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 7px;
|
|
40
|
+
right: 0;
|
|
41
|
+
left: 0;
|
|
42
|
+
height: 2px;
|
|
43
|
+
border-radius: 2px;
|
|
44
|
+
background: transparent;
|
|
27
45
|
}
|
|
28
46
|
}
|
|
29
47
|
.rv-reorder-list.drop-at-end > .rv-reorder-drop-end::after {
|
|
@@ -31,12 +49,36 @@
|
|
|
31
49
|
box-shadow: 0 0 0 3px color-mix(in srgb, var(--rv-ui-accent) 14%, transparent);
|
|
32
50
|
}
|
|
33
51
|
.rv-reorder-handle.rv-btn {
|
|
34
|
-
display: inline-flex;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
52
|
+
display: inline-flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: center;
|
|
55
|
+
width: 24px;
|
|
56
|
+
height: 32px;
|
|
57
|
+
min-width: 24px;
|
|
58
|
+
margin: 0;
|
|
59
|
+
padding: 0;
|
|
60
|
+
border: 0;
|
|
61
|
+
background: transparent;
|
|
62
|
+
color: var(--rv-ui-field-muted);
|
|
63
|
+
cursor: grab;
|
|
64
|
+
opacity: 0.58;
|
|
65
|
+
transition:
|
|
66
|
+
opacity var(--rv-ui-motion-fast, 120ms)
|
|
67
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1)),
|
|
68
|
+
color var(--rv-ui-motion-fast, 120ms)
|
|
69
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
|
|
70
|
+
> span,
|
|
71
|
+
svg {
|
|
72
|
+
display: block;
|
|
73
|
+
width: 8px;
|
|
74
|
+
height: 11px;
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
}
|
|
77
|
+
&:hover,
|
|
78
|
+
&:focus-visible {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
&:active {
|
|
82
|
+
cursor: grabbing;
|
|
83
|
+
}
|
|
42
84
|
}
|
|
@@ -2,7 +2,7 @@ import { i as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
|
2
2
|
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { getAvatarInitials as n } from "../avatar/index.js";
|
|
4
4
|
import { resourcePickerClasses as r } from "./resource-picker.utils.js";
|
|
5
|
-
//#region
|
|
5
|
+
//#region package/resource-picker/resource-picker-avatar.tsx
|
|
6
6
|
var i = [
|
|
7
7
|
"#22d3ee",
|
|
8
8
|
"#34d399",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
2
|
import { resourcePickerClasses as t, resourcePickerDataAttribute as n, resourcePickerIdKey as r, uniqueResourcePickerIds as i } from "./resource-picker.utils.js";
|
|
3
3
|
import { ResourcePickerAvatar as a } from "./resource-picker-avatar.js";
|
|
4
|
-
//#region
|
|
4
|
+
//#region package/resource-picker/resource-picker-option.tsx
|
|
5
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
6
|
let b = m?.(o) === !0;
|
|
7
7
|
return /* @__PURE__ */ e("label", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { t } from "../_chunks/popup-
|
|
3
|
-
//#region
|
|
2
|
+
import { t } from "../_chunks/popup-DECYM9FI.js";
|
|
3
|
+
//#region package/resource-picker/resource-picker-popup.tsx
|
|
4
4
|
function n({ triggerRef: n, portalTarget: r, popupId: i, children: a }) {
|
|
5
5
|
return /* @__PURE__ */ e(t, {
|
|
6
6
|
triggerRef: n,
|
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
import { c as e, i as t, n, o as r, t as i } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as a } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createControlId as o } from "../core/control-id.js";
|
|
4
|
-
import { t as s } from "../_chunks/
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import { t as s } from "../_chunks/selection-list-tooltips-m00U3L6z.js";
|
|
5
|
+
import { t as c } from "../_chunks/chevron-down-GbplLa6s.js";
|
|
6
|
+
import { t as l } from "../_chunks/xmark-DD_PBvZI.js";
|
|
7
|
+
import { SearchInput as u } from "../search-input/index.js";
|
|
8
|
+
import { resourcePickerClasses as d, resourcePickerDataAttribute as f, resourcePickerIdKey as p } from "./resource-picker.utils.js";
|
|
9
|
+
import { ResourcePickerAvatar as m } from "./resource-picker-avatar.js";
|
|
10
|
+
import { ResourcePickerOption as ee } from "./resource-picker-option.js";
|
|
11
|
+
import { ResourcePickerPopup as h } from "./resource-picker-popup.js";
|
|
12
|
+
//#region package/resource-picker/resource-picker.tsx
|
|
13
|
+
function g({ resources: g, selectedResourceIds: y, text: b, onChange: x, classNames: S, disabled: C = !1, readOnly: w = !1, presentation: T = "inline", multiple: E = !0, preserveOrder: D = !1, unassigned: O, resourceDataAttribute: te, isResourceDisabled: k, getAvatarColor: A }) {
|
|
14
|
+
let j = i(null), M = i(null), N = i(null), P = i(null), ne = s(".rv-resource-picker__option"), F = i(!1), [I] = t(() => o("rv-resource-list")), L = `${I}-popup`, R = T === "dropdown", [z, B] = t(!1), [V, H] = t(""), [U, W] = t(0), G = r(() => {
|
|
14
15
|
B(!1), H("");
|
|
15
|
-
}, []), K = new Set(
|
|
16
|
+
}, []), K = new Set(y.map(p)), q = n(() => D ? [...g] : [...g].sort((e, t) => e.name.localeCompare(t.name, void 0, {
|
|
16
17
|
numeric: !0,
|
|
17
18
|
sensitivity: "base"
|
|
18
|
-
})), [
|
|
19
|
+
})), [D, g]), J = n(() => {
|
|
19
20
|
let e = V.trim().toLocaleLowerCase();
|
|
20
21
|
return e ? q.filter((t) => `${t.name} ${t.role ?? ""}`.toLocaleLowerCase().includes(e)) : q;
|
|
21
22
|
}, [V, q]), Y = n(() => {
|
|
22
|
-
let e = new Map(
|
|
23
|
-
return
|
|
24
|
-
}, [
|
|
23
|
+
let e = new Map(g.map((e) => [p(e.id), e]));
|
|
24
|
+
return y.map((t) => e.get(p(t))).filter((e) => !!e);
|
|
25
|
+
}, [g, y]), X = R && U >= 0 && U < J.length ? `${I}-option-${U}` : void 0;
|
|
25
26
|
e(() => {
|
|
26
27
|
if (!R || !z) return;
|
|
27
28
|
let e = (e) => {
|
|
@@ -49,72 +50,73 @@ function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNa
|
|
|
49
50
|
e && P.current.contains(e) && e.closest(".rv-resource-picker__option")?.scrollIntoView?.({ block: "nearest" });
|
|
50
51
|
}, [X, z]);
|
|
51
52
|
let Z = (e) => {
|
|
52
|
-
|
|
53
|
-
},
|
|
53
|
+
w || (x(e), !E && R && G());
|
|
54
|
+
}, re = () => {
|
|
54
55
|
let e = J[U];
|
|
55
56
|
if (!e) return;
|
|
56
|
-
let t =
|
|
57
|
-
(!k?.(e) || K.has(t)) && Z(K.has(t) ?
|
|
58
|
-
},
|
|
57
|
+
let t = p(e.id);
|
|
58
|
+
(!k?.(e) || K.has(t)) && Z(K.has(t) ? y.filter((e) => p(e) !== t) : E ? _([...y, e.id]) : [e.id]);
|
|
59
|
+
}, ie = (e) => {
|
|
59
60
|
if (e.key === "Escape") e.preventDefault(), e.stopPropagation(), G(), M.current?.focus();
|
|
60
61
|
else if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
61
62
|
if (e.preventDefault(), e.stopPropagation(), !J.length) return;
|
|
62
63
|
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
|
+
} else e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), re());
|
|
64
65
|
}, Q = typeof document > "u" ? null : j.current?.closest("dialog, .rv-dialog-overlay") ?? document.body, $ = /* @__PURE__ */ a("div", {
|
|
66
|
+
ref: ne,
|
|
65
67
|
class: "rv-resource-picker__popover",
|
|
66
|
-
onKeyDown: R ?
|
|
67
|
-
children: [/* @__PURE__ */ a(
|
|
68
|
+
onKeyDown: R ? ie : void 0,
|
|
69
|
+
children: [/* @__PURE__ */ a(u, {
|
|
68
70
|
inputRef: N,
|
|
69
71
|
rootClassName: "rv-resource-picker__search-control",
|
|
70
|
-
inputClassName:
|
|
72
|
+
inputClassName: d("rv-resource-picker__search", S?.search),
|
|
71
73
|
value: V,
|
|
72
|
-
disabled:
|
|
73
|
-
placeholder:
|
|
74
|
-
"aria-label":
|
|
74
|
+
disabled: C,
|
|
75
|
+
placeholder: b.searchPlaceholder,
|
|
76
|
+
"aria-label": b.searchAriaLabel,
|
|
75
77
|
onValueChange: H
|
|
76
78
|
}), /* @__PURE__ */ a("div", {
|
|
77
79
|
ref: P,
|
|
78
|
-
class:
|
|
80
|
+
class: d("rv-resource-picker__list", S?.list),
|
|
79
81
|
role: R ? "listbox" : "group",
|
|
80
82
|
id: R ? I : void 0,
|
|
81
|
-
"aria-multiselectable": R ?
|
|
83
|
+
"aria-multiselectable": R ? E : void 0,
|
|
82
84
|
"aria-activedescendant": X,
|
|
83
|
-
"aria-label":
|
|
84
|
-
children: [
|
|
85
|
-
class:
|
|
85
|
+
"aria-label": b.groupAriaLabel,
|
|
86
|
+
children: [O && !w ? /* @__PURE__ */ a("label", {
|
|
87
|
+
class: d("rv-resource-picker__option rv-resource-picker__option--unassigned", S?.option),
|
|
86
88
|
children: [
|
|
87
89
|
/* @__PURE__ */ a("input", {
|
|
88
90
|
type: "checkbox",
|
|
89
|
-
checked:
|
|
90
|
-
disabled:
|
|
91
|
-
...
|
|
92
|
-
onChange: () =>
|
|
91
|
+
checked: y.length === 0,
|
|
92
|
+
disabled: C,
|
|
93
|
+
...f(O.dataAttribute, ""),
|
|
94
|
+
onChange: () => x([])
|
|
93
95
|
}),
|
|
94
96
|
/* @__PURE__ */ a("span", {
|
|
95
97
|
class: "rv-resource-picker__avatar-spacer",
|
|
96
98
|
"aria-hidden": "true"
|
|
97
99
|
}),
|
|
98
100
|
/* @__PURE__ */ a("span", {
|
|
99
|
-
class:
|
|
100
|
-
children: /* @__PURE__ */ a("strong", { children:
|
|
101
|
+
class: d("rv-resource-picker__details", S?.details),
|
|
102
|
+
children: /* @__PURE__ */ a("strong", { children: O.label })
|
|
101
103
|
})
|
|
102
104
|
]
|
|
103
|
-
}) : null,
|
|
104
|
-
className:
|
|
105
|
-
text:
|
|
106
|
-
}) : J.length === 0 ? /* @__PURE__ */ a(
|
|
107
|
-
className:
|
|
108
|
-
text:
|
|
109
|
-
}) : J.map((e, t) => /* @__PURE__ */ a(
|
|
105
|
+
}) : null, g.length === 0 ? /* @__PURE__ */ a(v, {
|
|
106
|
+
className: S?.muted,
|
|
107
|
+
text: b.emptyResources
|
|
108
|
+
}) : J.length === 0 ? /* @__PURE__ */ a(v, {
|
|
109
|
+
className: S?.muted,
|
|
110
|
+
text: b.emptySearch
|
|
111
|
+
}) : J.map((e, t) => /* @__PURE__ */ a(ee, {
|
|
110
112
|
resource: e,
|
|
111
|
-
selected: K.has(
|
|
112
|
-
selectedResourceIds:
|
|
113
|
-
disabled:
|
|
114
|
-
readOnly:
|
|
115
|
-
multiple:
|
|
116
|
-
resourceDataAttribute:
|
|
117
|
-
classNames:
|
|
113
|
+
selected: K.has(p(e.id)),
|
|
114
|
+
selectedResourceIds: y,
|
|
115
|
+
disabled: C,
|
|
116
|
+
readOnly: w,
|
|
117
|
+
multiple: E,
|
|
118
|
+
resourceDataAttribute: te,
|
|
119
|
+
classNames: S,
|
|
118
120
|
isResourceDisabled: k,
|
|
119
121
|
getAvatarColor: A,
|
|
120
122
|
optionId: R ? `${I}-option-${t}` : void 0,
|
|
@@ -123,12 +125,12 @@ function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNa
|
|
|
123
125
|
F.current = !1, W(t);
|
|
124
126
|
},
|
|
125
127
|
onChange: Z
|
|
126
|
-
},
|
|
128
|
+
}, p(e.id)))]
|
|
127
129
|
})]
|
|
128
130
|
});
|
|
129
131
|
return /* @__PURE__ */ a("div", {
|
|
130
132
|
ref: j,
|
|
131
|
-
class:
|
|
133
|
+
class: d("rv-resource-picker", R ? "rv-resource-picker--dropdown" : void 0, z ? "rv-resource-picker--open" : void 0, S?.root),
|
|
132
134
|
children: [R ? /* @__PURE__ */ a("div", {
|
|
133
135
|
ref: M,
|
|
134
136
|
class: "rv-resource-picker__control",
|
|
@@ -136,51 +138,51 @@ function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNa
|
|
|
136
138
|
"aria-expanded": z,
|
|
137
139
|
"aria-controls": I,
|
|
138
140
|
"aria-haspopup": "listbox",
|
|
139
|
-
"aria-label":
|
|
140
|
-
tabIndex:
|
|
141
|
+
"aria-label": b.groupAriaLabel,
|
|
142
|
+
tabIndex: C ? -1 : 0,
|
|
141
143
|
onClick: (e) => {
|
|
142
|
-
|
|
144
|
+
C || (e.preventDefault(), z ? G() : B(!0));
|
|
143
145
|
},
|
|
144
146
|
onKeyDown: (e) => {
|
|
145
|
-
|
|
147
|
+
C || e.target !== e.currentTarget || (e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), B(!0));
|
|
146
148
|
},
|
|
147
149
|
children: [/* @__PURE__ */ a("div", {
|
|
148
150
|
class: "rv-resource-picker__chips",
|
|
149
151
|
children: Y.length ? Y.map((e) => /* @__PURE__ */ a("span", {
|
|
150
152
|
class: "rv-resource-picker__chip",
|
|
151
153
|
children: [
|
|
152
|
-
/* @__PURE__ */ a(
|
|
154
|
+
/* @__PURE__ */ a(m, {
|
|
153
155
|
resource: e,
|
|
154
|
-
className:
|
|
156
|
+
className: S?.avatar,
|
|
155
157
|
color: A?.(e)
|
|
156
158
|
}),
|
|
157
159
|
/* @__PURE__ */ a("span", {
|
|
158
160
|
class: "rv-resource-picker__chip-label",
|
|
159
161
|
children: e.name
|
|
160
162
|
}),
|
|
161
|
-
!
|
|
163
|
+
!C && !w ? /* @__PURE__ */ a("button", {
|
|
162
164
|
type: "button",
|
|
163
165
|
class: "rv-resource-picker__chip-remove",
|
|
164
166
|
"aria-label": `Remove ${e.name}`,
|
|
165
167
|
onClick: (t) => {
|
|
166
|
-
t.stopPropagation(),
|
|
168
|
+
t.stopPropagation(), x(y.filter((t) => p(t) !== p(e.id)));
|
|
167
169
|
},
|
|
168
170
|
children: /* @__PURE__ */ a("span", {
|
|
169
171
|
"aria-hidden": "true",
|
|
170
|
-
dangerouslySetInnerHTML: { __html:
|
|
172
|
+
dangerouslySetInnerHTML: { __html: l }
|
|
171
173
|
})
|
|
172
174
|
}) : null
|
|
173
175
|
]
|
|
174
|
-
},
|
|
176
|
+
}, p(e.id))) : /* @__PURE__ */ a("span", {
|
|
175
177
|
class: "rv-resource-picker__placeholder",
|
|
176
|
-
children:
|
|
178
|
+
children: b.searchPlaceholder
|
|
177
179
|
})
|
|
178
180
|
}), /* @__PURE__ */ a("span", {
|
|
179
181
|
class: "rv-resource-picker__chevron",
|
|
180
182
|
"aria-hidden": "true",
|
|
181
|
-
dangerouslySetInnerHTML: { __html:
|
|
183
|
+
dangerouslySetInnerHTML: { __html: c }
|
|
182
184
|
})]
|
|
183
|
-
}) : null, R ? z && Q ? /* @__PURE__ */ a(
|
|
185
|
+
}) : null, R ? z && Q ? /* @__PURE__ */ a(h, {
|
|
184
186
|
triggerRef: M,
|
|
185
187
|
portalTarget: Q,
|
|
186
188
|
popupId: L,
|
|
@@ -188,14 +190,14 @@ function h({ resources: h, selectedResourceIds: v, text: y, onChange: b, classNa
|
|
|
188
190
|
}) : null : $]
|
|
189
191
|
});
|
|
190
192
|
}
|
|
191
|
-
function
|
|
192
|
-
return [...new Map(e.map((e) => [
|
|
193
|
+
function _(e) {
|
|
194
|
+
return [...new Map(e.map((e) => [p(e), e])).values()];
|
|
193
195
|
}
|
|
194
|
-
function
|
|
196
|
+
function v({ className: e, text: t }) {
|
|
195
197
|
return /* @__PURE__ */ a("span", {
|
|
196
|
-
class:
|
|
198
|
+
class: d("rv-resource-picker__empty", e),
|
|
197
199
|
children: t
|
|
198
200
|
});
|
|
199
201
|
}
|
|
200
202
|
//#endregion
|
|
201
|
-
export {
|
|
203
|
+
export { g as SharedResourcePicker };
|