@revolist/ui 4.0.5-rc → 4.0.5
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 +36 -0
- package/OWNERSHIP.md +36 -36
- package/README.md +65 -408
- package/_button.scss +6 -2
- package/_chunks/{calendar-DsXIhybL.js → calendar-BQYQLu8Q.js} +5 -5
- package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
- package/_chunks/{chart-frame-CuZABXVI.js → chart-frame-GprenwEg.js} +17 -13
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/{choice-chips-BhP8MZjs.js → choice-chips-C5OxD0GV.js} +3 -3
- package/_chunks/{color-palette-DMJUChWC.js → color-palette-7siNch__.js} +3 -3
- package/_chunks/{color-picker-B4TQvxxB.js → color-picker-Cfc9eqZb.js} +4 -4
- package/_chunks/{component-qKctqdzk.js → component-C3k_8uIq.js} +44 -45
- package/_chunks/{component-metadata-BMOOmqx5.js → component-metadata-DlVkpW3h.js} +1 -9
- package/_chunks/{configurator-actions-C19O1rda.js → configurator-actions-vRnI54mO.js} +3 -3
- package/_chunks/{control-BkWukVt9.js → control-BRfF5DWQ.js} +32 -7
- package/_chunks/{controller-hRBm_Lfz.js → controller-BbiQuRt-.js} +5 -5
- package/_chunks/{controls-BLQnWEd7.js → controls-B3EgM_DS.js} +160 -132
- package/_chunks/{date-control-Cgw5PwlZ.js → date-control-87dcA5br.js} +5 -5
- package/_chunks/{date-time-B8rK5gpC.js → date-time-CfiFYodx.js} +316 -293
- package/_chunks/{delete-button-CW9vjLnk.js → delete-button-jneO24wa.js} +1 -1
- package/_chunks/dialog.parts-NqEEVc9P.js +131 -0
- package/_chunks/{duration-DwFXonEV.js → duration-BGZ_qJ99.js} +10 -7
- package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-Dyo-FMgD.js} +1 -1
- package/_chunks/{editor-popup-BaaxL89T.js → editor-popup-NNP9Fh9U.js} +12 -11
- 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--RTLIqE-.js → framework-mount-D4I8HpVp.js} +2 -2
- package/_chunks/{icon-toolbar-xbqa0hu9.js → icon-toolbar-BAAdEvr9.js} +41 -35
- 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.view-ByyZ1CT5.js → native-CJm3eq3-.js} +1 -1
- package/_chunks/{native-control-DO0d1kgx.js → native-control-um1L1wgZ.js} +124 -111
- package/_chunks/{number-input-s9ddPwX6.js → number-input-CKiA4d1N.js} +4 -4
- package/_chunks/{picker-AY05b41W.js → picker-igNshTRC.js} +5 -5
- package/_chunks/{popup-UXGCiv3n.js → popup-DECYM9FI.js} +21 -10
- package/_chunks/{rating-choice-BEs_QFZC.js → rating-choice-CepVfGUq.js} +2 -2
- package/_chunks/{render-m5eMMwFR.js → render-bTk3curw.js} +2 -2
- package/_chunks/{reorder-list-A49l172e.js → reorder-list-B4w3aARt.js} +2 -2
- package/_chunks/{request-trail-DCOfa5zw.js → request-trail-B1zVRPEf.js} +151 -142
- package/_chunks/{rich-text-xfMWadGi.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 +34 -32
- 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/_style.scss +3 -0
- 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 +28 -6
- package/assignee/index.js +6 -6
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- 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.d.ts +1 -3
- package/brush-range/component.js +10 -11
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +1 -1
- package/buttons/remove-button.js +2 -2
- package/buttons/remove-button.style.scss +1 -1
- 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 +6 -24
- 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/native.d.ts +15 -2
- 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/component-catalog.d.ts +3 -6
- 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 +3 -2
- 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.d.ts +8 -2
- 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-position.d.ts +6 -2
- package/core/editor-popup.d.ts +4 -0
- 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/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +1 -1
- package/date-time/field.d.ts +4 -2
- package/date-time/index.js +1 -1
- package/date-time/style.scss +206 -46
- package/date-time/time-selection.d.ts +1 -1
- package/date-time/types.d.ts +5 -1
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +3 -3
- package/dialog/dialog.drag.js +1 -1
- package/dialog/dialog.parts.d.ts +1 -1
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.js +1 -1
- package/distribution-chart/_distribution-chart.scss +115 -23
- 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.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 +19 -9
- package/dropdown/index.js +2 -2
- package/dropdown/lookup-field.d.ts +5 -0
- 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 +22 -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 +41 -16
- 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.d.ts +0 -1
- package/filter-controls.js +6 -7
- package/form-controls/index.d.ts +10 -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.d.ts +1 -1
- package/formatting/index.js +7 -7
- package/formatting/styles.scss +13 -11
- package/framework.js +201 -205
- package/history-controls.js +1 -1
- package/html-controls.js +1 -1
- package/icon-toolbar.d.ts +6 -2
- 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-controls.d.ts +54 -2
- package/native-styles.css +1 -1
- package/native-styles.scss +6 -2
- package/native.d.ts +3 -3
- package/native.js +35 -35
- package/number-input/index.d.ts +1 -1
- package/number-input/index.js +1 -1
- package/package.json +49 -1
- package/pagination.js +12 -12
- 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 +6 -10
- package/preact.js +108 -70
- 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.d.ts +2 -0
- package/react-control.js +3 -3
- package/react.d.ts +2 -8
- package/react.js +55 -56
- 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/search-input/native.d.ts +21 -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 +78 -17
- 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 -4
- package/styles/_field-configurator.scss +194 -42
- package/styles/_fields-grid.scss +18 -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/_palette.scss +0 -24
- package/styles/_primitives.scss +348 -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 +213 -0
- package/styles/{legacy-rating.css → rating.css} +8 -3
- package/styles.css +1 -1
- package/styles.scss +3 -5
- package/surfaces.d.ts +37 -4
- 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.d.ts +0 -1
- package/time-grid.js +6 -6
- 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 +5 -23
- package/vue.js +84 -91
- package/_chunks/badge.view-D30pMUfi.js +0 -14
- package/_chunks/chevron-right-sxHQMSkq.js +0 -4
- package/_chunks/dialog.parts-BSbvnEwX.js +0 -134
- package/_chunks/field-configurator-1eQP0tKy.js +0 -223
- package/_chunks/mount-D1i5DLRn.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/avatar/index.view.d.ts +0 -25
- package/color-palette/native.view.d.ts +0 -15
- package/control-presentation.view.d.ts +0 -8
- package/dialog/dialog-action-footer.view.d.ts +0 -20
- package/dialog/dialog.dom.view.d.ts +0 -15
- package/form-controls/index.view.d.ts +0 -10
- package/formatting/control-tooltip.d.ts +0 -2
- package/native-controls.view.d.ts +0 -54
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -129
- package/surfaces.view.d.ts +0 -33
package/styles.scss
CHANGED
|
@@ -21,12 +21,9 @@
|
|
|
21
21
|
@use './styles/editor-slider';
|
|
22
22
|
@use './styles/editor-counter';
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
24
|
@use './progress/circular';
|
|
27
|
-
@use './styles/
|
|
28
|
-
@use './styles/
|
|
29
|
-
|
|
25
|
+
@use './styles/rating.css';
|
|
26
|
+
@use './styles/pagination.css';
|
|
30
27
|
|
|
31
28
|
@use './distribution-chart/distribution-chart';
|
|
32
29
|
@use './brush-range/brush-range';
|
|
@@ -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
|
@@ -1,5 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { DialogHandle, DialogOpenOptions } from './dialog/dialog.types';
|
|
2
|
+
export interface DialogEnvironment {
|
|
3
|
+
beforeMount?: (root: HTMLElement) => void;
|
|
4
|
+
onOpen?: (options: DialogOpenOptions) => void;
|
|
5
|
+
restoreFocus?: (explicit?: HTMLElement, previous?: HTMLElement) => void;
|
|
6
|
+
}
|
|
7
|
+
/** Standalone modal lifecycle. Integration hooks belong to the host application. */
|
|
8
|
+
export declare class DialogController {
|
|
9
|
+
private readonly document;
|
|
10
|
+
private readonly environment;
|
|
11
|
+
private active?;
|
|
12
|
+
constructor(document: Document, environment?: DialogEnvironment);
|
|
13
|
+
get isOpen(): boolean;
|
|
14
|
+
open(options: DialogOpenOptions): DialogHandle;
|
|
15
|
+
close(root?: HTMLElement): void;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
}
|
|
18
|
+
export { PopoverController, TooltipController, createTooltipElement, type PopoverOptions, } from './core/popover-controller';
|
|
19
|
+
/** Keyboard behavior for menu surfaces; activation stays on native buttons. */
|
|
20
|
+
export declare function attachMenuKeyboard(menu: HTMLElement, onClose?: () => void, options?: {
|
|
21
|
+
closeOnEscape?: boolean;
|
|
22
|
+
}): () => void;
|
|
23
|
+
export interface ResizeOptions {
|
|
24
|
+
value: number;
|
|
25
|
+
min?: number;
|
|
26
|
+
max?: number;
|
|
27
|
+
step?: number;
|
|
28
|
+
label: string;
|
|
29
|
+
/** Rejects a proposed width without changing the handle's current value. */
|
|
30
|
+
acceptValue?: (value: number) => boolean;
|
|
31
|
+
onChange: (value: number) => void;
|
|
32
|
+
direction?: 'ltr' | 'rtl';
|
|
33
|
+
}
|
|
34
|
+
/** Width resize controller. An options reader keeps controlled updates from interrupting a drag. */
|
|
35
|
+
export declare function attachResizeHandle(handle: HTMLElement, options: ResizeOptions | (() => ResizeOptions)): () => void;
|
|
36
|
+
export { useTooltip, ControlTooltip } from './core/tooltip';
|
|
37
|
+
export { prepareTooltipSurface, ensureTooltipStyles, } from './core/tooltip-surface';
|
|
5
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-CKJ7VJOF.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-h-Z8yFBY.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-BN5WdGHn.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 {
|
|
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-C3k_8uIq.js";
|
|
2
|
+
import { t } from "./_chunks/component-metadata-DlVkpW3h.js";
|
|
3
|
+
import { n, t as r } from "./_chunks/framework-mount-D4I8HpVp.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
1
|
import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
import { t } from "../_chunks/native-control-
|
|
3
|
-
//#region
|
|
2
|
+
import { t } from "../_chunks/native-control-um1L1wgZ.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.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export interface TimeGridDayLabel {
|
|
|
11
11
|
}
|
|
12
12
|
export interface TimeGridProps {
|
|
13
13
|
readonly disabled?: boolean;
|
|
14
|
-
readonly legacyClassPrefix?: string;
|
|
15
14
|
readonly days: readonly TimeGridDayLabel[];
|
|
16
15
|
readonly cells: ReadonlySet<string>;
|
|
17
16
|
readonly focused: string;
|
package/time-grid.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e, t } from "./_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as n } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as r } from "./_chunks/native-control-
|
|
4
|
-
import { t as i } from "./_chunks/tooltip-text-
|
|
5
|
-
//#region
|
|
3
|
+
import { t as r } from "./_chunks/native-control-um1L1wgZ.js";
|
|
4
|
+
import { t as i } from "./_chunks/tooltip-text-BN5WdGHn.js";
|
|
5
|
+
//#region package/time-grid.tsx
|
|
6
6
|
var a = (e, t) => `${e}:${t}`;
|
|
7
7
|
function o(e) {
|
|
8
8
|
return [
|
|
@@ -12,7 +12,7 @@ function o(e) {
|
|
|
12
12
|
].filter(Boolean).join(" ");
|
|
13
13
|
}
|
|
14
14
|
function s(e) {
|
|
15
|
-
let t = (
|
|
15
|
+
let t = (e) => `rv-time-grid__${e}`, s = Array.from({ length: 12 }, (e, t) => t * 2);
|
|
16
16
|
return /* @__PURE__ */ n("div", {
|
|
17
17
|
class: t("schedule"),
|
|
18
18
|
children: [/* @__PURE__ */ n("div", {
|
|
@@ -46,10 +46,10 @@ function s(e) {
|
|
|
46
46
|
disabled: e.disabled,
|
|
47
47
|
role: "gridcell",
|
|
48
48
|
"data-time-cell": i,
|
|
49
|
-
class:
|
|
49
|
+
class: o({
|
|
50
50
|
weekend: f,
|
|
51
51
|
outsideWorkHours: u
|
|
52
|
-
})
|
|
52
|
+
}),
|
|
53
53
|
"aria-selected": s,
|
|
54
54
|
"aria-label": e.cellLabel(c, e.hourLabel(t), e.hourLabel(t + 2), s),
|
|
55
55
|
tabIndex: e.focused === i ? 0 : -1,
|
|
@@ -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
1
|
import { t as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { t as n } from "../_chunks/native-control-
|
|
4
|
-
import { n as r } from "../_chunks/tooltip-
|
|
3
|
+
import { t as n } from "../_chunks/native-control-um1L1wgZ.js";
|
|
4
|
+
import { n as r } from "../_chunks/tooltip-h-Z8yFBY.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