@revolist/ui 4.0.6-rc → 4.0.9
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/{arrow-up-Cw8hW9vp.js → arrow-up-BSYhTAus.js} +1 -1
- package/_chunks/{calculator-CDWOuAcp.js → calculator-BG0Xd_Uw.js} +1 -1
- package/_chunks/{calendar-QWDyYzdo.js → calendar-C4zH4Ppn.js} +7 -7
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-DzvJooS2.js} +7 -7
- package/_chunks/{check-BwI7iCAm.js → check-BFIC9pge.js} +1 -1
- package/_chunks/{chevron-down-GbplLa6s.js → chevron-down-BkrpxJYD.js} +1 -1
- package/_chunks/chevron-right-DZ79RmYV.js +4 -0
- package/_chunks/{chevron-up-BLuNMPDn.js → chevron-up-Dt846uIR.js} +1 -1
- package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-D2cJju-g.js} +6 -6
- package/_chunks/{clock-BOhPNlW3.js → clock-DTfr4p2S.js} +1 -1
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-D7AS20M1.js} +5 -5
- package/_chunks/{color-picker-BK4W1nd6.js → color-picker-BanAQVfz.js} +8 -8
- package/_chunks/{component-CMkF17YZ.js → component-B8SvtSaB.js} +54 -55
- package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
- package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-CvZf5nYp.js} +11 -11
- package/_chunks/{configurator-field-icon-CmcM_sPs.js → configurator-field-icon-B0S_208W.js} +2 -2
- package/_chunks/{control-mlH7l0Uq.js → control-Dj7IR-i0.js} +4 -4
- package/_chunks/{controller-hRBm_Lfz.js → controller-ChkqiANQ.js} +6 -6
- package/_chunks/{controls-FUU-MUKC.js → controls-BF6WlGT4.js} +140 -105
- package/_chunks/{date-control-Dup_P3w5.js → date-control-BNj2FBF2.js} +8 -8
- package/_chunks/{date-time-9z6pAG5T.js → date-time-Ucx1ep76.js} +25 -25
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-DQSK6G-4.js} +2 -2
- package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-BqkmnhIL.js} +7 -7
- package/_chunks/{duration-D7oRjsmP.js → duration-BIESsyLI.js} +9 -9
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-BXIUX0As.js} +3 -3
- package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-BTmjGg2_.js} +5 -5
- package/_chunks/field-configurator-BWZnm3gE.js +288 -0
- package/_chunks/field-context-0oUi-w-G.js +5 -0
- package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-DQ4opSL0.js} +4 -4
- package/_chunks/{hooks.module-CG3gN83z.js → hooks.module-CXpO2xq6.js} +2 -2
- package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-C4J_Wqph.js} +7 -7
- package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
- package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
- package/_chunks/{jsxRuntime.module-F6UFnpT-.js → jsxRuntime.module-ksX_VSbv.js} +2 -2
- package/_chunks/{magnifying-glass-CvrTDSkB.js → magnifying-glass-BFZrFs8M.js} +1 -1
- package/_chunks/{minus-BOAR3A1C.js → minus-DE8NPK_D.js} +1 -1
- package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
- package/_chunks/mount-DTCXtKfT.js +267 -0
- package/_chunks/{native-Blr3byjO.js → native-RudS9C_q.js} +3 -3
- package/_chunks/{native-control-pFMuHf3G.js → native-control-xc_B4vfn.js} +146 -141
- package/_chunks/{number-input-DqXV6vgP.js → number-input-C_TPzAJq.js} +6 -6
- package/_chunks/{picker-gEGTu1Ki.js → picker-0h5TwXGT.js} +8 -8
- package/_chunks/{plus-CbGRkIGl.js → plus-BaXticu7.js} +1 -1
- package/_chunks/{popup-C35Isk7p.js → popup-CISbXDnE.js} +6 -6
- package/_chunks/{preact.module-BBM36DnO.js → preact.module-DzTStiZX.js} +1 -1
- package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-FhWNdsiC.js} +4 -4
- package/_chunks/{render-m5eMMwFR.js → render-C6PFWlqh.js} +4 -4
- package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-CR1DO4EG.js} +5 -5
- package/_chunks/{request-trail-CCSK6TJA.js → request-trail-ay92DQpo.js} +155 -146
- package/_chunks/{rich-text-5rnc8lpI.js → rich-text-ByjXFv1S.js} +15 -15
- package/_chunks/{rotate-left-BF6G883o.js → rotate-left-CTHmcGBP.js} +1 -1
- package/_chunks/{rotate-right-Iha5ScJ1.js → rotate-right-BIfKgVun.js} +1 -1
- package/_chunks/selection-list-tooltips-DqqLeO_m.js +42 -0
- package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-DKiWhsL7.js} +3 -3
- package/_chunks/{tooltip-D4xkio5G.js → tooltip-B5ziciEP.js} +4 -4
- package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
- package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-D74h-uqu.js} +3 -3
- package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-CH_c2J-J.js} +3 -3
- package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-BHajfliG.js} +4 -4
- package/_chunks/{xmark-DD_PBvZI.js → xmark-DQRQfXZI.js} +1 -1
- 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 +2 -2
- 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 +8 -8
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +1 -1
- package/avatar/index.js +4 -4
- 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 +3 -3
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.js +3 -3
- package/buttons/svg-button.js +4 -4
- package/calendar/_calendar.scss +19 -23
- package/calendar/calendar.js +1 -1
- package/calendar/day.js +3 -3
- package/calendar/header.js +3 -4
- package/calendar/index.js +3 -3
- package/calendar/model.js +1 -1
- package/calendar/month-grid.js +3 -3
- package/calendar/translations.js +1 -1
- package/calendar/year-grid.js +3 -3
- 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 +2 -2
- 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 +22 -20
- package/configurator-drop-zone.d.ts +2 -1
- package/configurator-drop-zone.js +36 -34
- package/configurator-field-icon.js +1 -1
- package/configurator-focus.js +2 -2
- package/configurator-sections.d.ts +3 -3
- package/configurator-sections.js +4 -4
- package/control-attributes.js +1 -1
- package/control-presentation.js +4 -4
- 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 +4 -4
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +2 -2
- package/distribution-chart/_distribution-chart.scss +106 -28
- package/distribution-chart/area-chart.js +4 -4
- package/distribution-chart/bar-chart.js +3 -3
- package/distribution-chart/chart-frame.d.ts +1 -1
- package/distribution-chart/index.js +2 -2
- package/distribution-chart/line-chart.js +3 -3
- package/dropdown/content.js +1 -1
- package/dropdown/control.js +1 -1
- package/dropdown/dropdown.service.js +2 -2
- 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 +5 -5
- package/dropdown/popup.js +1 -1
- package/duration/index.js +1 -1
- package/editor-actions.js +4 -4
- 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 +2 -2
- 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 +2 -2
- package/filter/filters/slider/runtime.js +3 -3
- package/filter/filters/slider/single.js +3 -3
- package/filter-badge.js +5 -5
- package/filter-controls.js +4 -4
- package/form-controls/index.js +4 -4
- package/form-controls/presentation.d.ts +1 -1
- package/form-controls/presentation.js +5 -5
- package/formatting/index.js +11 -11
- package/formatting/styles.scss +13 -11
- package/framework.js +76 -77
- package/history-controls.js +4 -4
- 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 +2 -2
- package/legend.d.ts +1 -1
- package/legend.js +2 -2
- package/masked-input/index.js +6 -6
- 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 +18 -18
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +53 -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 +4 -4
- 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 +2 -2
- 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 +3 -3
- package/resource-picker/resource-picker-option.js +2 -2
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.js +76 -74
- 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 +4 -4
- package/segmented-switch/index.js +2 -2
- 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 +5 -5
- 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 +3 -3
- package/time-grid.js +5 -5
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/index.js +5 -5
- 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 +45 -46
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-left-D0nc4Z5S.js +0 -4
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/field-configurator-BCINdXpU.js +0 -223
- package/_chunks/field-context-D57PnBbH.js +0 -5
- 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/styles.scss
CHANGED
|
@@ -21,13 +21,10 @@
|
|
|
21
21
|
@use './styles/editor-slider';
|
|
22
22
|
@use './styles/editor-counter';
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
24
|
@use './progress/circular';
|
|
27
25
|
@use './styles/rating.css';
|
|
28
26
|
@use './styles/pagination.css';
|
|
29
27
|
|
|
30
|
-
|
|
31
28
|
@use './distribution-chart/distribution-chart';
|
|
32
29
|
@use './brush-range/brush-range';
|
|
33
30
|
@use './styles/filter-controls';
|
|
@@ -40,6 +37,7 @@
|
|
|
40
37
|
@use './styles/activity-message';
|
|
41
38
|
@use './styles/motion';
|
|
42
39
|
|
|
40
|
+
@use './view-switcher';
|
|
43
41
|
|
|
44
42
|
@include slider.styles;
|
|
45
43
|
|
package/surfaces.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class DialogController {
|
|
|
15
15
|
close(root?: HTMLElement): void;
|
|
16
16
|
destroy(): void;
|
|
17
17
|
}
|
|
18
|
-
export { PopoverController, TooltipController, createTooltipElement, type PopoverOptions } from './core/popover-controller';
|
|
18
|
+
export { PopoverController, TooltipController, createTooltipElement, type PopoverOptions, } from './core/popover-controller';
|
|
19
19
|
/** Keyboard behavior for menu surfaces; activation stays on native buttons. */
|
|
20
20
|
export declare function attachMenuKeyboard(menu: HTMLElement, onClose?: () => void, options?: {
|
|
21
21
|
closeOnEscape?: boolean;
|
|
@@ -26,11 +26,13 @@ export interface ResizeOptions {
|
|
|
26
26
|
max?: number;
|
|
27
27
|
step?: number;
|
|
28
28
|
label: string;
|
|
29
|
+
/** Rejects a proposed width without changing the handle's current value. */
|
|
30
|
+
acceptValue?: (value: number) => boolean;
|
|
29
31
|
onChange: (value: number) => void;
|
|
30
32
|
direction?: 'ltr' | 'rtl';
|
|
31
33
|
}
|
|
32
34
|
/** Width resize controller. An options reader keeps controlled updates from interrupting a drag. */
|
|
33
35
|
export declare function attachResizeHandle(handle: HTMLElement, options: ResizeOptions | (() => ResizeOptions)): () => void;
|
|
34
36
|
export { useTooltip, ControlTooltip } from './core/tooltip';
|
|
35
|
-
export { prepareTooltipSurface, ensureTooltipStyles } from './core/tooltip-surface';
|
|
37
|
+
export { prepareTooltipSurface, ensureTooltipStyles, } from './core/tooltip-surface';
|
|
36
38
|
export { TooltipText } from './core/tooltip-text';
|
package/surfaces.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { releasePreactElement as e } from "./preact-mount.js";
|
|
2
|
-
import { c as t, s as n } from "./_chunks/top-layer-popup-
|
|
2
|
+
import { c as t, s as n } from "./_chunks/top-layer-popup-BHajfliG.js";
|
|
3
3
|
import { inheritUiMotion as r } from "./core/motion.js";
|
|
4
|
-
import {
|
|
5
|
-
import { r as s, t as c } from "./_chunks/tooltip-
|
|
4
|
+
import { PopoverController as i, TooltipController as a, createTooltipElement as o } from "./core/popover-controller.js";
|
|
5
|
+
import { r as s, t as c } from "./_chunks/tooltip-B5ziciEP.js";
|
|
6
6
|
import { createDialogElements as l, getDialogFocusableElements as u, trapDialogFocus as d } from "./dialog/dialog.dom.js";
|
|
7
7
|
import { attachDialogDrag as f } from "./dialog/dialog.drag.js";
|
|
8
|
-
import { t as p } from "./_chunks/tooltip-text-
|
|
9
|
-
//#region
|
|
8
|
+
import { t as p } from "./_chunks/tooltip-text-CH_c2J-J.js";
|
|
9
|
+
//#region package/surfaces.tsx
|
|
10
10
|
var m = /* @__PURE__ */ new WeakMap(), h = class {
|
|
11
11
|
document;
|
|
12
12
|
environment;
|
|
@@ -70,8 +70,8 @@ function _(e, t) {
|
|
|
70
70
|
let e = n();
|
|
71
71
|
return e.value !== i && (i = e.value, r = e.value), e;
|
|
72
72
|
}, o = () => {}, s = (t) => {
|
|
73
|
-
let n = a();
|
|
74
|
-
|
|
73
|
+
let n = a(), i = Math.min(n.max ?? Infinity, Math.max(n.min ?? 0, t));
|
|
74
|
+
n.acceptValue?.(i) !== !1 && (r = i, e.setAttribute("aria-valuenow", String(r)), n.onChange(r));
|
|
75
75
|
}, c = n();
|
|
76
76
|
e.setAttribute("role", "separator"), e.setAttribute("aria-orientation", "vertical"), e.setAttribute("aria-label", c.label), e.tabIndex = 0, e.setAttribute("aria-valuenow", String(r)), c.min !== void 0 && e.setAttribute("aria-valuemin", String(c.min)), c.max !== void 0 && e.setAttribute("aria-valuemax", String(c.max));
|
|
77
77
|
let l = (e) => {
|
|
@@ -98,4 +98,4 @@ function _(e, t) {
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
//#endregion
|
|
101
|
-
export { c as ControlTooltip, h as DialogController,
|
|
101
|
+
export { c as ControlTooltip, h as DialogController, i as PopoverController, a as TooltipController, p as TooltipText, g as attachMenuKeyboard, _ as attachResizeHandle, o as createTooltipElement, n as ensureTooltipStyles, t as prepareTooltipSurface, s as useTooltip };
|
|
@@ -1,17 +1,35 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { onMount, untrack, type Snippet } from 'svelte';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
uiComponents,
|
|
5
|
+
componentModels,
|
|
6
|
+
createFrameworkMount,
|
|
7
|
+
withFrameworkContent,
|
|
8
|
+
type UiContentTarget,
|
|
9
|
+
type UiFrameworkMount,
|
|
10
|
+
} from '../framework';
|
|
4
11
|
import type { SvelteUiProps } from '../svelte-props';
|
|
5
12
|
|
|
6
|
-
let {
|
|
13
|
+
let {
|
|
14
|
+
component,
|
|
15
|
+
props = {},
|
|
16
|
+
children,
|
|
17
|
+
slots = {},
|
|
18
|
+
onValueChange,
|
|
19
|
+
onUiEvent,
|
|
20
|
+
}: SvelteUiProps = $props();
|
|
7
21
|
type Content = Snippet<[Record<string, unknown>]>;
|
|
8
22
|
let host: HTMLSpanElement;
|
|
9
23
|
let targets = $state.raw<UiContentTarget<Content>[]>([]);
|
|
10
24
|
let mount = $state.raw<UiFrameworkMount<Content>>();
|
|
11
25
|
onMount(() => {
|
|
12
|
-
const current = createFrameworkMount<Content>(host, next => {
|
|
26
|
+
const current = createFrameworkMount<Content>(host, (next) => {
|
|
27
|
+
targets = next;
|
|
28
|
+
});
|
|
13
29
|
mount = current;
|
|
14
|
-
return () => {
|
|
30
|
+
return () => {
|
|
31
|
+
current.destroy();
|
|
32
|
+
};
|
|
15
33
|
});
|
|
16
34
|
$effect(() => {
|
|
17
35
|
const next = { ...props };
|
|
@@ -21,8 +39,11 @@
|
|
|
21
39
|
const event = onUiEvent;
|
|
22
40
|
const renderer = mount;
|
|
23
41
|
const model = componentModels[name];
|
|
24
|
-
const callbacks = new Set([
|
|
25
|
-
|
|
42
|
+
const callbacks = new Set([
|
|
43
|
+
...Object.keys(next).filter((key) => /^on[A-Z]/.test(key)),
|
|
44
|
+
'onClose',
|
|
45
|
+
...(model ? [model.callback] : []),
|
|
46
|
+
]);
|
|
26
47
|
for (const key of callbacks) {
|
|
27
48
|
const original = next[key];
|
|
28
49
|
next[key] = (...args: unknown[]) => {
|
|
@@ -32,18 +53,30 @@
|
|
|
32
53
|
return result;
|
|
33
54
|
};
|
|
34
55
|
}
|
|
35
|
-
untrack(() =>
|
|
36
|
-
(
|
|
56
|
+
untrack(() =>
|
|
57
|
+
renderer?.render(uiComponents[name], next, (props, content) =>
|
|
58
|
+
withFrameworkContent(name, props, contents, content),
|
|
59
|
+
),
|
|
60
|
+
);
|
|
37
61
|
});
|
|
38
62
|
function portal(node: HTMLElement, target: HTMLElement) {
|
|
39
63
|
target.appendChild(node);
|
|
40
|
-
return {
|
|
64
|
+
return {
|
|
65
|
+
update(next: HTMLElement) {
|
|
66
|
+
next.appendChild(node);
|
|
67
|
+
},
|
|
68
|
+
};
|
|
41
69
|
}
|
|
42
70
|
</script>
|
|
43
71
|
|
|
44
|
-
<span bind:this={host} style="display: contents" data-rv-svelte-host={component}
|
|
72
|
+
<span bind:this={host} style="display: contents" data-rv-svelte-host={component}
|
|
73
|
+
></span>
|
|
45
74
|
{#each targets as target (target.id)}
|
|
46
|
-
<span
|
|
75
|
+
<span
|
|
76
|
+
use:portal={target.element}
|
|
77
|
+
style="display: contents"
|
|
78
|
+
data-rv-svelte-content
|
|
79
|
+
>
|
|
47
80
|
{@render target.content(target.scope)}
|
|
48
81
|
</span>
|
|
49
82
|
{/each}
|
package/svelte-control.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { controlAttributes as e } from "./control-attributes.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/svelte-control.ts
|
|
3
3
|
function t(t) {
|
|
4
4
|
let n = [], r = () => {
|
|
5
5
|
let r = t.localName, i = e(r, { ...r === "input" ? { type: t.type } : {} }), a = i.class.split(/\s+/).filter(Boolean);
|
package/svelte.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export type { SvelteUiProps } from './svelte-props';
|
|
|
5
5
|
export type { UiComponentName, UiComponentProps } from './component-catalog';
|
|
6
6
|
export type { PdfViewerProps, PdfViewerText } from './pdf-viewer/component';
|
|
7
7
|
export type { PdfViewerToolbarProps } from './pdf-viewer/toolbar';
|
|
8
|
-
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig } from './pdf-viewer/toolbar-options';
|
|
8
|
+
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from './pdf-viewer/toolbar-options';
|
|
9
9
|
export { defaultPdfViewerText } from './pdf-viewer/translations';
|
package/svelte.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as e } from "./_chunks/component-
|
|
2
|
-
import { t } from "./_chunks/component-metadata-
|
|
3
|
-
import { n, t as r } from "./_chunks/framework-mount-
|
|
1
|
+
import { i as e } from "./_chunks/component-B8SvtSaB.js";
|
|
2
|
+
import { t } from "./_chunks/component-metadata-DlVkpW3h.js";
|
|
3
|
+
import { n, t as r } from "./_chunks/framework-mount-DQ4opSL0.js";
|
|
4
4
|
import { uiComponents as i } from "./framework.js";
|
|
5
5
|
import "svelte/internal/disclose-version";
|
|
6
6
|
import * as a from "svelte/internal/client";
|
|
7
7
|
import { onMount as o, untrack as s } from "svelte";
|
|
8
|
-
//#region
|
|
8
|
+
//#region package/svelte/UiComponent.svelte
|
|
9
9
|
var c = a.from_html("<span style=\"display: contents\" data-rv-svelte-content=\"\"><!></span>"), l = a.from_html("<span style=\"display: contents\"></span> <!>", 1);
|
|
10
10
|
function u(e, u) {
|
|
11
11
|
a.push(u, !0);
|
|
@@ -52,7 +52,7 @@ function u(e, u) {
|
|
|
52
52
|
}), a.template_effect(() => a.set_attribute(v, "data-rv-svelte-host", u.component)), a.append(e, _), a.pop();
|
|
53
53
|
}
|
|
54
54
|
//#endregion
|
|
55
|
-
//#region
|
|
55
|
+
//#region package/svelte.ts
|
|
56
56
|
var d = u;
|
|
57
57
|
//#endregion
|
|
58
58
|
export { d as UiComponent, e as defaultPdfViewerText };
|
package/switch/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/jsxRuntime.module-
|
|
2
|
-
import { t } from "../_chunks/native-control-
|
|
3
|
-
//#region
|
|
1
|
+
import { t as e } from "../_chunks/jsxRuntime.module-ksX_VSbv.js";
|
|
2
|
+
import { t } from "../_chunks/native-control-xc_B4vfn.js";
|
|
3
|
+
//#region package/switch/index.tsx
|
|
4
4
|
function n({ checked: n, onChange: r, label: i, ariaLabel: a, className: o = "", disabled: s = !1, labelPosition: c = "before", title: l, testId: u }) {
|
|
5
5
|
let d = /* @__PURE__ */ e("span", {
|
|
6
6
|
class: "rv-switch-label",
|
package/time-grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as e, t } from "./_chunks/hooks.module-
|
|
2
|
-
import { t as n } from "./_chunks/jsxRuntime.module-
|
|
3
|
-
import { t as r } from "./_chunks/native-control-
|
|
4
|
-
import { t as i } from "./_chunks/tooltip-text-
|
|
5
|
-
//#region
|
|
1
|
+
import { r as e, t } from "./_chunks/hooks.module-CXpO2xq6.js";
|
|
2
|
+
import { t as n } from "./_chunks/jsxRuntime.module-ksX_VSbv.js";
|
|
3
|
+
import { t as r } from "./_chunks/native-control-xc_B4vfn.js";
|
|
4
|
+
import { t as i } from "./_chunks/tooltip-text-CH_c2J-J.js";
|
|
5
|
+
//#region package/time-grid.tsx
|
|
6
6
|
var a = (e, t) => `${e}:${t}`;
|
|
7
7
|
function o(e) {
|
|
8
8
|
return [
|
|
@@ -6,11 +6,29 @@
|
|
|
6
6
|
height: 112px;
|
|
7
7
|
margin: 0 0 12px;
|
|
8
8
|
overflow: hidden;
|
|
9
|
-
border: 1px solid
|
|
9
|
+
border: 1px solid
|
|
10
|
+
var(--rv-ui-border, var(--rv-dialog-border, var(--rv-ui-border)));
|
|
10
11
|
border-radius: 11px;
|
|
11
12
|
background:
|
|
12
|
-
repeating-linear-gradient(
|
|
13
|
-
|
|
13
|
+
repeating-linear-gradient(
|
|
14
|
+
to right,
|
|
15
|
+
transparent 0,
|
|
16
|
+
transparent calc(25% - 1px),
|
|
17
|
+
color-mix(
|
|
18
|
+
in srgb,
|
|
19
|
+
var(--rv-ui-border, var(--rv-dialog-border, var(--rv-ui-border))) 58%,
|
|
20
|
+
transparent
|
|
21
|
+
)
|
|
22
|
+
25%
|
|
23
|
+
),
|
|
24
|
+
var(
|
|
25
|
+
--rv-ui-surface-sunken,
|
|
26
|
+
color-mix(
|
|
27
|
+
in srgb,
|
|
28
|
+
var(--rv-dialog-bg, var(--rv-ui-surface)) 96%,
|
|
29
|
+
var(--rv-ui-text-muted, var(--rv-dialog-muted, var(--rv-ui-text-muted)))
|
|
30
|
+
)
|
|
31
|
+
);
|
|
14
32
|
}
|
|
15
33
|
.rv-timeline-control__track::before {
|
|
16
34
|
position: absolute;
|
|
@@ -18,12 +36,29 @@
|
|
|
18
36
|
right: 0;
|
|
19
37
|
left: 0;
|
|
20
38
|
height: 1px;
|
|
21
|
-
background: color-mix(
|
|
39
|
+
background: color-mix(
|
|
40
|
+
in srgb,
|
|
41
|
+
var(--rv-ui-border, var(--rv-dialog-border, var(--rv-ui-border))) 82%,
|
|
42
|
+
transparent
|
|
43
|
+
);
|
|
22
44
|
content: '';
|
|
23
45
|
}
|
|
24
|
-
.rv-timeline-control__range {
|
|
25
|
-
|
|
26
|
-
|
|
46
|
+
.rv-timeline-control__range {
|
|
47
|
+
position: absolute;
|
|
48
|
+
bottom: 8px;
|
|
49
|
+
color: var(
|
|
50
|
+
--rv-ui-text-muted,
|
|
51
|
+
var(--rv-dialog-muted, var(--rv-ui-text-muted))
|
|
52
|
+
);
|
|
53
|
+
font-size: 11px;
|
|
54
|
+
font-variant-numeric: tabular-nums;
|
|
55
|
+
}
|
|
56
|
+
.rv-timeline-control__range--start {
|
|
57
|
+
left: 10px;
|
|
58
|
+
}
|
|
59
|
+
.rv-timeline-control__range--end {
|
|
60
|
+
right: 10px;
|
|
61
|
+
}
|
|
27
62
|
.rv-timeline-control__bar {
|
|
28
63
|
position: absolute;
|
|
29
64
|
top: 39px;
|
|
@@ -37,7 +72,11 @@
|
|
|
37
72
|
color: var(--timeline-event-text-color, #0f172a);
|
|
38
73
|
box-shadow: 0 1px 2px var(--rv-ui-shadow);
|
|
39
74
|
touch-action: none;
|
|
40
|
-
transition:
|
|
75
|
+
transition:
|
|
76
|
+
border-color var(--rv-ui-motion-fast, 120ms)
|
|
77
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1)),
|
|
78
|
+
box-shadow var(--rv-ui-motion-fast, 120ms)
|
|
79
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
|
|
41
80
|
}
|
|
42
81
|
.rv-timeline-control__bar-move {
|
|
43
82
|
position: absolute;
|
|
@@ -55,14 +94,28 @@
|
|
|
55
94
|
cursor: grab;
|
|
56
95
|
touch-action: none;
|
|
57
96
|
}
|
|
58
|
-
.rv-timeline-control__bar-move:active {
|
|
97
|
+
.rv-timeline-control__bar-move:active {
|
|
98
|
+
cursor: grabbing;
|
|
99
|
+
}
|
|
59
100
|
.rv-timeline-control__bar:hover {
|
|
60
101
|
border-color: var(--timeline-event-hover-color-end, #166534);
|
|
61
102
|
}
|
|
62
|
-
.rv-timeline-control__bar--selected {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
103
|
+
.rv-timeline-control__bar--selected {
|
|
104
|
+
box-shadow:
|
|
105
|
+
0 0 0 3px
|
|
106
|
+
color-mix(in srgb, var(--timeline-event-color, #16a34a) 22%, transparent),
|
|
107
|
+
0 1px 2px var(--rv-ui-shadow);
|
|
108
|
+
}
|
|
109
|
+
.rv-timeline-control__bar--milestone {
|
|
110
|
+
border-radius: 50%;
|
|
111
|
+
}
|
|
112
|
+
.rv-timeline-control__bar--milestone .rv-timeline-control__bar-label {
|
|
113
|
+
display: none;
|
|
114
|
+
}
|
|
115
|
+
.rv-timeline-control__bar--outside {
|
|
116
|
+
outline: 2px dashed var(--rv-structured-warning, var(--rv-ui-warning));
|
|
117
|
+
outline-offset: 2px;
|
|
118
|
+
}
|
|
66
119
|
.rv-timeline-control__bar-label {
|
|
67
120
|
display: block;
|
|
68
121
|
overflow: hidden;
|
|
@@ -89,16 +142,27 @@
|
|
|
89
142
|
width: 4px;
|
|
90
143
|
border-radius: 999px;
|
|
91
144
|
background: rgb(255 255 255 / 82%);
|
|
92
|
-
opacity: .45;
|
|
93
|
-
transition: opacity var(--rv-ui-motion-fast, 120ms)
|
|
145
|
+
opacity: 0.45;
|
|
146
|
+
transition: opacity var(--rv-ui-motion-fast, 120ms)
|
|
147
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
|
|
94
148
|
content: '';
|
|
95
149
|
}
|
|
96
150
|
.rv-timeline-control__bar:hover .rv-timeline-control__handle::after,
|
|
97
|
-
.rv-timeline-control__bar--selected .rv-timeline-control__handle::after {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
.rv-timeline-control__handle--
|
|
101
|
-
|
|
151
|
+
.rv-timeline-control__bar--selected .rv-timeline-control__handle::after {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
}
|
|
154
|
+
.rv-timeline-control__handle--start {
|
|
155
|
+
left: -12px;
|
|
156
|
+
}
|
|
157
|
+
.rv-timeline-control__handle--start::after {
|
|
158
|
+
left: 10px;
|
|
159
|
+
}
|
|
160
|
+
.rv-timeline-control__handle--end {
|
|
161
|
+
right: -12px;
|
|
162
|
+
}
|
|
163
|
+
.rv-timeline-control__handle--end::after {
|
|
164
|
+
right: 10px;
|
|
165
|
+
}
|
|
102
166
|
|
|
103
167
|
.rv-timeline-control__track button:focus-visible {
|
|
104
168
|
outline: 0;
|
|
@@ -106,16 +170,24 @@
|
|
|
106
170
|
box-shadow: 0 0 0 3px var(--rv-ui-focus-ring);
|
|
107
171
|
}
|
|
108
172
|
@media (prefers-reduced-motion: reduce) {
|
|
109
|
-
.rv-timeline-control__bar {
|
|
173
|
+
.rv-timeline-control__bar {
|
|
174
|
+
transition: none;
|
|
175
|
+
}
|
|
110
176
|
}
|
|
111
177
|
@media (forced-colors: active) {
|
|
112
|
-
.rv-timeline-control__track {
|
|
178
|
+
.rv-timeline-control__track {
|
|
179
|
+
border-color: CanvasText;
|
|
180
|
+
}
|
|
113
181
|
.rv-timeline-control__bar {
|
|
114
182
|
border-color: Highlight;
|
|
115
183
|
background: Highlight;
|
|
116
184
|
color: HighlightText;
|
|
117
185
|
forced-color-adjust: auto;
|
|
118
186
|
}
|
|
119
|
-
.rv-timeline-control__bar--selected {
|
|
120
|
-
|
|
187
|
+
.rv-timeline-control__bar--selected {
|
|
188
|
+
outline: 2px solid Highlight;
|
|
189
|
+
}
|
|
190
|
+
.rv-timeline-control__handle::after {
|
|
191
|
+
background: HighlightText;
|
|
192
|
+
}
|
|
121
193
|
}
|
package/timeline-track/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/hooks.module-
|
|
2
|
-
import { t } from "../_chunks/jsxRuntime.module-
|
|
3
|
-
import { t as n } from "../_chunks/native-control-
|
|
4
|
-
import { n as r } from "../_chunks/tooltip-
|
|
1
|
+
import { t as e } from "../_chunks/hooks.module-CXpO2xq6.js";
|
|
2
|
+
import { t } from "../_chunks/jsxRuntime.module-ksX_VSbv.js";
|
|
3
|
+
import { t as n } from "../_chunks/native-control-xc_B4vfn.js";
|
|
4
|
+
import { n as r } from "../_chunks/tooltip-B5ziciEP.js";
|
|
5
5
|
import { eventOutsideRange as i, moveTimelineEvent as a, niceTimelineStep as o, resizeTimelineEvent as s, timelineEventBackground as c, timelineGeometry as l } from "./model.js";
|
|
6
|
-
//#region
|
|
6
|
+
//#region package/timeline-track/component.tsx
|
|
7
7
|
var u = {
|
|
8
8
|
preview: "Timeline preview",
|
|
9
9
|
moveEvent: (e) => `Move event ${e}`,
|
package/timeline-track/model.js
CHANGED