@revolist/ui 4.0.1-rc → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/MIGRATION.md +36 -0
- package/OWNERSHIP.md +32 -32
- package/README.md +405 -264
- package/_button.scss +6 -2
- package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
- package/_chunks/calculator-CDWOuAcp.js +4 -0
- package/_chunks/calendar-DJqiFwFT.js +258 -0
- package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
- package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
- package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
- package/_chunks/choice-chips-yr6Uzmof.js +126 -0
- package/_chunks/clock-BOhPNlW3.js +4 -0
- package/_chunks/color-palette-DMJUChWC.js +92 -0
- package/_chunks/{color-picker-BRv-__AM.js → color-picker-CMWxQlWt.js} +61 -56
- package/_chunks/component-DyWiItBR.js +878 -0
- package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
- package/_chunks/configurator-actions-DCodxcUw.js +155 -0
- package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
- package/_chunks/control-CbOYUakE.js +118 -0
- package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
- package/_chunks/controls-DD1qvPfE.js +650 -0
- package/_chunks/{date-control-CYCkb1aQ.js → date-control-XI2cpKI_.js} +21 -21
- package/_chunks/date-time-CGJdC1Qa.js +807 -0
- package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
- package/_chunks/dialog.parts-CJ3FVxC9.js +131 -0
- package/_chunks/duration-CBJWK82T.js +272 -0
- package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
- package/_chunks/editor-popup-ByU7qiub.js +82 -0
- package/_chunks/field-configurator-B-qtIwx1.js +288 -0
- package/_chunks/field-context-D57PnBbH.js +5 -0
- package/_chunks/framework-mount-Bk4O_T7T.js +54 -0
- package/_chunks/hooks.module-CG3gN83z.js +157 -0
- package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
- package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
- package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
- package/_chunks/minus-BOAR3A1C.js +4 -0
- package/_chunks/mount-C7i5gsKI.js +267 -0
- package/_chunks/native-Blr3byjO.js +32 -0
- package/_chunks/native-control-B9MNibfa.js +649 -0
- package/_chunks/{number-input-NnH57J4j.js → number-input-CgbZes5B.js} +89 -89
- package/_chunks/picker-DqpjDC90.js +122 -0
- package/_chunks/plus-CbGRkIGl.js +4 -0
- package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
- package/_chunks/popup-C35Isk7p.js +378 -0
- package/_chunks/preact.module-BBM36DnO.js +290 -0
- package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-WDrfiluf.js} +10 -10
- package/_chunks/render-m5eMMwFR.js +83 -0
- package/_chunks/reorder-list-C4HSda4n.js +59 -0
- package/_chunks/request-trail-SHynDFdM.js +762 -0
- package/_chunks/rich-text-CtjqRvv8.js +842 -0
- package/_chunks/rotate-left-BF6G883o.js +4 -0
- package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
- package/_chunks/selection-list-tooltips-BtWjpP6M.js +41 -0
- package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
- package/_chunks/tooltip-D4xkio5G.js +54 -0
- package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
- package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
- package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
- package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
- package/_dialog.scss +55 -21
- package/_form.scss +71 -21
- package/_legend.scss +25 -7
- package/_shared/data-query/index.d.ts +2 -2
- package/_shared/data-query/load-options.d.ts +2 -2
- package/_variables.scss +34 -32
- package/_vendor/preact/LICENSE +21 -0
- package/_vendor/preact/compat/src/index.d.ts +353 -0
- package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
- package/_vendor/preact/compat/src/suspense.d.ts +19 -0
- package/_vendor/preact/hooks/src/index.d.ts +145 -0
- package/_vendor/preact/src/dom.d.ts +2548 -0
- package/_vendor/preact/src/index.d.ts +373 -0
- package/_vendor/preact/src/jsx.d.ts +2958 -0
- package/_view-switcher.scss +6 -0
- package/activity-message.d.ts +2 -2
- package/activity-message.js +16 -16
- package/ai/_chat.scss +227 -0
- package/ai/_style.scss +170 -39
- package/ai/chat.d.ts +65 -0
- package/ai/components.d.ts +35 -6
- package/ai/index.d.ts +3 -0
- package/ai/index.js +3 -3
- package/ai/mount.d.ts +59 -6
- package/ai/prompt-history.d.ts +13 -0
- package/ai/request-trail.d.ts +9 -3
- package/ai/results/_style.scss +83 -0
- package/ai/results/index.d.ts +11 -0
- package/ai/results/metrics.d.ts +5 -0
- package/ai/results/table.d.ts +5 -0
- package/ai/results/text.d.ts +5 -0
- package/ai/results/types.d.ts +29 -0
- package/ai/transcript.d.ts +27 -0
- package/ai/translation-context.d.ts +1 -1
- package/ai/translations.d.ts +1 -1
- package/alert.d.ts +2 -2
- package/angular/angular.d.ts +1 -1
- package/angular/angular.js +13 -10
- package/assignee/assignee.scss +28 -6
- package/assignee/field.d.ts +2 -2
- package/assignee/index.js +86 -87
- package/assignee/layout.d.ts +2 -2
- package/assignee/picker.d.ts +1 -1
- package/avatar/avatar.style.scss +23 -6
- package/avatar/index.d.ts +25 -2
- package/avatar/index.js +42 -41
- package/badge.d.ts +1 -1
- package/badge.view.d.ts +8 -0
- package/brush-range/_brush-range.scss +55 -49
- package/brush-range/component.d.ts +2 -4
- package/brush-range/component.js +19 -19
- package/buttons/delete-button.d.ts +2 -1
- package/buttons/delete-button.js +1 -1
- package/buttons/delete-button.style.scss +6 -2
- package/buttons/remove-button.d.ts +2 -2
- package/buttons/remove-button.js +3 -3
- package/buttons/remove-button.style.scss +1 -1
- package/buttons/svg-button.d.ts +3 -2
- package/buttons/svg-button.js +23 -23
- package/calendar/_calendar.scss +27 -26
- package/calendar/calendar.d.ts +1 -1
- package/calendar/calendar.js +1 -1
- package/calendar/caption.d.ts +1 -1
- package/calendar/day.d.ts +1 -1
- package/calendar/day.js +4 -4
- package/calendar/header.d.ts +1 -1
- package/calendar/header.js +34 -35
- package/calendar/index.js +2 -2
- package/calendar/month-grid.d.ts +1 -1
- package/calendar/month-grid.js +37 -37
- package/calendar/picker.d.ts +1 -1
- package/calendar/types.d.ts +1 -1
- package/calendar/year-grid.d.ts +1 -1
- package/calendar/year-grid.js +12 -12
- package/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/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.d.ts +2 -2
- package/checkbox/index.js +9 -9
- package/choice-chips/index.d.ts +4 -2
- package/choice-chips/index.js +1 -1
- package/color-palette/color-palette.d.ts +1 -1
- package/color-palette/color-palette.js +1 -1
- package/color-palette/color-palette.style.scss +88 -25
- package/color-palette/color-picker.d.ts +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 +1 -1
- package/color-palette/native.d.ts +15 -2
- package/component-catalog.d.ts +42 -29
- package/configurator-actions.d.ts +67 -0
- package/configurator-actions.js +1 -0
- package/configurator-aggregation-list.d.ts +14 -0
- package/configurator-aggregation-list.js +63 -0
- package/configurator-drop-zone.d.ts +39 -0
- package/configurator-drop-zone.js +66 -0
- package/configurator-field-icon.d.ts +10 -0
- package/configurator-field-icon.js +1 -0
- package/configurator-focus.d.ts +4 -0
- package/configurator-focus.js +39 -0
- package/configurator-sections.d.ts +42 -0
- package/configurator-sections.js +71 -0
- package/control-attributes.js +7 -7
- package/control-presentation.d.ts +8 -2
- package/control-presentation.js +31 -26
- package/controls.d.ts +23 -11
- package/controls.js +4 -3
- package/core/editor-commit.d.ts +1 -1
- package/core/editor-popup-position.d.ts +6 -2
- package/core/editor-popup.d.ts +5 -1
- package/core/editor-popup.js +1 -1
- package/core/popover-controller.d.ts +35 -0
- package/core/popup-ownership.d.ts +2 -0
- package/core/selection-list-tooltips.d.ts +2 -0
- package/core/title-tooltip.d.ts +2 -0
- package/core/tooltip-session.d.ts +29 -0
- package/core/tooltip-surface.d.ts +13 -0
- package/core/tooltip-text.d.ts +6 -0
- package/core/tooltip.d.ts +35 -0
- package/core/top-layer-popup.d.ts +4 -0
- package/core/top-layer-popup.js +1 -23
- package/date-time/attach.d.ts +1 -1
- package/date-time/date-control.d.ts +2 -2
- package/date-time/field.d.ts +4 -3
- package/date-time/index.js +1 -1
- package/date-time/picker.d.ts +1 -1
- package/date-time/style.scss +242 -39
- package/date-time/time-control.d.ts +1 -1
- package/date-time/time-selection.d.ts +3 -1
- package/date-time/types.d.ts +6 -2
- package/dialog/dialog-action-footer.d.ts +17 -2
- package/dialog/dialog.dom.d.ts +15 -2
- package/dialog/dialog.dom.js +53 -53
- package/dialog/dialog.parts.d.ts +18 -18
- package/dialog/dialog.parts.js +1 -1
- package/dialog/dialog.preact.d.ts +1 -1
- package/dialog/dialog.preact.js +6 -6
- package/distribution-chart/_distribution-chart.scss +113 -77
- package/distribution-chart/area-chart.d.ts +1 -1
- package/distribution-chart/area-chart.js +25 -25
- package/distribution-chart/bar-chart.d.ts +6 -3
- package/distribution-chart/bar-chart.js +10 -6
- package/distribution-chart/chart-frame.d.ts +3 -2
- package/distribution-chart/index.d.ts +2 -2
- package/distribution-chart/index.js +6 -6
- package/distribution-chart/line-chart.d.ts +1 -1
- package/distribution-chart/line-chart.js +9 -9
- package/distribution-chart/types.d.ts +1 -1
- package/dropdown/content.d.ts +3 -2
- package/dropdown/content.js +1 -141
- package/dropdown/control.d.ts +14 -0
- package/dropdown/control.js +1 -0
- package/dropdown/control.view.d.ts +6 -0
- package/dropdown/dropdown.service.d.ts +1 -1
- package/dropdown/dropdown.service.js +9 -9
- package/dropdown/dropdown.types.d.ts +5 -1
- package/dropdown/editor-dropdown.style.scss +54 -16
- package/dropdown/index.d.ts +1 -1
- package/dropdown/index.js +3 -4
- package/dropdown/lookup-field.d.ts +6 -1
- package/dropdown/lookup-field.js +42 -41
- package/dropdown/popup.d.ts +2 -2
- package/dropdown/popup.js +1 -140
- package/duration/controls.d.ts +1 -1
- package/duration/index.d.ts +2 -2
- package/duration/index.js +1 -1
- package/duration/style.scss +1 -1
- package/editor-actions.d.ts +1 -1
- package/editor-actions.js +21 -20
- package/editor-layout/index.d.ts +5 -5
- package/editor-layout/index.js +43 -38
- package/editor-layout/style.scss +82 -18
- package/field-configurator.d.ts +40 -2
- package/field-configurator.js +4 -170
- package/field-expansion.d.ts +9 -0
- package/field-reorder.hook.js +32 -32
- package/fieldset.d.ts +3 -0
- package/filter/filters/slider/_single-slider.scss +57 -38
- package/filter/filters/slider/_slider.scss +41 -33
- package/filter/filters/slider/control.js +2 -0
- package/filter/filters/slider/preact.js +3 -3
- package/filter/filters/slider/runtime.js +49 -22
- package/filter/filters/slider/single.d.ts +1 -1
- package/filter/filters/slider/single.js +23 -23
- package/filter-badge.d.ts +1 -1
- package/filter-badge.js +23 -22
- package/filter-controls.d.ts +1 -2
- package/filter-controls.js +29 -30
- package/form-controls/field-context.d.ts +5 -0
- package/form-controls/index.d.ts +10 -2
- package/form-controls/index.js +17 -22
- package/form-controls/presentation.d.ts +2 -2
- package/form-controls/presentation.js +59 -51
- package/formatting/comparison-preview.d.ts +1 -1
- package/formatting/icon-controls.d.ts +1 -1
- package/formatting/index.d.ts +1 -1
- package/formatting/index.js +106 -100
- package/formatting/inspector-section.d.ts +1 -1
- package/formatting/styles.scss +14 -57
- package/formatting/typography-controls.d.ts +1 -1
- package/framework-mount.d.ts +1 -1
- package/framework.js +237 -226
- package/history-controls.d.ts +14 -0
- package/history-controls.js +27 -0
- package/icon-toolbar.d.ts +62 -0
- package/icon-toolbar.js +1 -0
- package/icons/icon.d.ts +2 -2
- package/icons/icon.js +1 -1
- package/legend.d.ts +2 -2
- package/legend.js +12 -12
- package/masked-input/index.d.ts +1 -1
- package/masked-input/index.js +109 -109
- package/native-control.d.ts +14 -13
- package/native-control.js +3 -26
- 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 +49 -45
- package/number-input/index.d.ts +2 -2
- package/number-input/index.js +1 -1
- package/package.json +88 -15
- package/pagination.d.ts +3 -0
- package/pagination.js +50 -40
- package/pdf-viewer/component.d.ts +1 -1
- package/pdf-viewer/controller.js +1 -1
- package/pdf-viewer/header.d.ts +2 -2
- package/pdf-viewer/index.d.ts +2 -2
- package/pdf-viewer/index.js +13 -13
- package/pdf-viewer/search-bar.d.ts +2 -2
- package/pdf-viewer/status.d.ts +2 -2
- package/pdf-viewer/style.scss +205 -45
- package/pdf-viewer/toolbar.d.ts +1 -1
- package/pickers.d.ts +6 -2
- package/preact-mount.d.ts +1 -1
- package/preact-mount.js +2 -2
- package/preact.d.ts +15 -10
- package/preact.js +109 -64
- package/progress/_bar.scss +9 -3
- package/progress/_circular.scss +2 -1
- package/rating-choice.d.ts +1 -1
- package/rating-choice.js +1 -1
- package/react-adapter.d.ts +5 -3
- package/react-control.d.ts +1 -0
- package/react.d.ts +20 -11
- package/react.js +72 -88
- package/reorder-list.d.ts +2 -2
- package/reorder-list.js +1 -1
- package/reorder-list.scss +59 -17
- package/resource-picker/resource-picker-avatar.d.ts +1 -1
- package/resource-picker/resource-picker-avatar.js +14 -14
- package/resource-picker/resource-picker-option.d.ts +1 -1
- package/resource-picker/resource-picker-option.js +28 -28
- package/resource-picker/resource-picker-popup.d.ts +1 -1
- package/resource-picker/resource-picker-popup.js +3 -3
- package/resource-picker/resource-picker.d.ts +1 -1
- package/resource-picker/resource-picker.js +68 -66
- package/resource-picker/resource-picker.scss +66 -35
- package/rich-text/engine.d.ts +17 -19
- package/rich-text/format-html.d.ts +2 -0
- package/rich-text/index.d.ts +11 -7
- package/rich-text/index.js +1 -1
- package/rich-text/model.d.ts +6 -3
- package/rich-text/render-model.d.ts +4 -5
- package/rich-text/style.scss +295 -55
- package/rich-text/syntax.d.ts +5 -2
- package/rich-text/toolbar.d.ts +7 -7
- package/rich-text/translations.d.ts +5 -15
- package/search-input/index.js +12 -12
- package/search-input/native.d.ts +21 -2
- package/segmented-switch/index.d.ts +1 -1
- package/segmented-switch/index.js +1 -1
- package/select.d.ts +22 -0
- package/select.js +1 -0
- package/selection-list.d.ts +1 -0
- package/selection-list.js +3 -1
- package/status-feedback/exit-snapshot.js +1 -1
- package/status-feedback/index.js +2 -2
- package/status-feedback/popover.js +9 -9
- package/status-feedback/render.d.ts +2 -2
- package/status-feedback/render.js +3 -44
- package/status-feedback/status-feedback.scss +130 -34
- package/status-feedback/types.d.ts +4 -0
- package/status-feedback/use-auto-dismiss.d.ts +3 -0
- 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 +404 -82
- package/styles/_control.scss +42 -12
- 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 +321 -23
- package/styles/_fields-grid.scss +49 -0
- 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 +376 -116
- 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/configurator-actions.scss +241 -0
- 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 +38 -2
- package/surfaces.js +37 -134
- package/svelte/UiComponent.server.js +1 -48
- package/svelte/UiComponent.svelte +44 -32
- package/svelte.d.ts +1 -1
- package/svelte.js +33 -68
- package/switch/index.js +3 -2
- package/time-grid.d.ts +1 -2
- package/time-grid.js +43 -42
- package/timeline-track/_style.scss +96 -24
- package/timeline-track/component.d.ts +5 -1
- package/timeline-track/index.js +91 -74
- package/timeline-track/model.d.ts +9 -0
- package/timeline-track/model.js +10 -1
- package/ui.css +1 -1
- package/view-switcher.d.ts +23 -0
- package/vue-adapter.d.ts +1 -1
- package/vue.d.ts +160 -144
- package/vue.js +149 -178
- package/_chunks/calendar-BsDxCYhI.js +0 -248
- package/_chunks/chart-frame-BvxbmEU9.js +0 -126
- package/_chunks/choice-chips-0HfOnK_4.js +0 -110
- package/_chunks/color-palette-BmZ7kH9R.js +0 -94
- package/_chunks/component-D4PH5UZT.js +0 -859
- package/_chunks/control-tooltip-BCNzQCXE.js +0 -100
- package/_chunks/controls-NEL5tDaz.js +0 -615
- package/_chunks/date-time-DjucJmbc.js +0 -769
- package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
- package/_chunks/dropdown-CkGQBm1Q.js +0 -357
- package/_chunks/duration-BCaktcvz.js +0 -270
- package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
- package/_chunks/editor-popup-B7fu_A_T.js +0 -81
- package/_chunks/framework-mount-BKIOsvY-.js +0 -54
- package/_chunks/mount-0-8opf1j.js +0 -90
- package/_chunks/native.view-8q_nwQ7x.js +0 -32
- package/_chunks/picker-oazJ7sO_.js +0 -121
- package/_chunks/reorder-list-BV3kZXso.js +0 -59
- package/_chunks/request-trail-D0oVzdRd.js +0 -347
- package/_chunks/rich-text-2Rla349o.js +0 -477
- package/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 -12
- package/formatting/control-tooltip.d.ts +0 -27
- package/native-controls.view.d.ts +0 -54
- package/react-native-select.d.ts +0 -6
- package/search-input/native.view.d.ts +0 -21
- package/styles/legacy-pagination.css +0 -112
- package/surfaces.view.d.ts +0 -63
- package/vue-native-select.d.ts +0 -9
|
@@ -3,5 +3,5 @@ export { renderStatusBadge } from './badge';
|
|
|
3
3
|
/** One shared activity surface, with divided rows rather than nested notice cards. */
|
|
4
4
|
export declare function renderStatusFeedbackPanel<T>(h: StatusFeedbackH<T>, props: StatusFeedbackPanelProps): T | null;
|
|
5
5
|
/** Preact adapters share the exact same presentation as RevoGrid template consumers. */
|
|
6
|
-
export declare function StatusFeedbackPanel(props: StatusFeedbackPanelProps): import('preact').VNode<import('preact').Attributes> | null;
|
|
7
|
-
export declare function StatusBadge(props: StatusBadgeProps): import('preact').VNode<import('preact').Attributes>;
|
|
6
|
+
export declare function StatusFeedbackPanel(props: StatusFeedbackPanelProps): import('../_vendor/preact/src/index').VNode<import('../_vendor/preact/src/index').Attributes> | null;
|
|
7
|
+
export declare function StatusBadge(props: StatusBadgeProps): import('../_vendor/preact/src/index').VNode<import('../_vendor/preact/src/index').Attributes>;
|
|
@@ -1,44 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { h as r } from "preact";
|
|
5
|
-
//#region src/status-feedback/render.ts
|
|
6
|
-
function i(n, r) {
|
|
7
|
-
let { title: i, items: a, ariaLabel: o, className: s, popover: c, onCollapsedChange: l } = r;
|
|
8
|
-
if (!a.length) return c?.hide(!0), null;
|
|
9
|
-
let u = c?.collapsed ?? r.collapsed ?? !1, d = !!(c || l), f = (e, t) => {
|
|
10
|
-
if (e && !c) {
|
|
11
|
-
let e = t.currentTarget.closest(".rv-status-feedback"), n = e?.ownerDocument.activeElement;
|
|
12
|
-
n && e?.contains(n) && e.querySelector(".rv-status-feedback__toggle")?.focus({ preventScroll: !0 });
|
|
13
|
-
}
|
|
14
|
-
c?.setCollapsed(e), l?.(e);
|
|
15
|
-
};
|
|
16
|
-
return c?.refresh(), n("section", {
|
|
17
|
-
onKeyDown: (e) => {
|
|
18
|
-
e.key === "Escape" && d && !u && (e.preventDefault(), e.stopPropagation(), f(!0, e));
|
|
19
|
-
},
|
|
20
|
-
ref: c?.panelRef,
|
|
21
|
-
id: c?.id,
|
|
22
|
-
class: [
|
|
23
|
-
"rv-status-feedback",
|
|
24
|
-
s,
|
|
25
|
-
r.compact ? "rv-status-feedback--compact" : "",
|
|
26
|
-
c ? "rv-status-feedback--popover" : "",
|
|
27
|
-
u ? "rv-status-feedback--collapsed" : ""
|
|
28
|
-
].filter(Boolean).join(" "),
|
|
29
|
-
"aria-label": o ?? i,
|
|
30
|
-
"data-collapsed": String(u)
|
|
31
|
-
}, [e(n, r, u, d, f), n("div", {
|
|
32
|
-
id: c ? `${c.id}-items` : void 0,
|
|
33
|
-
class: "rv-status-feedback__items",
|
|
34
|
-
hidden: u
|
|
35
|
-
}, a.map((e) => t(n, e)))]);
|
|
36
|
-
}
|
|
37
|
-
function a(e) {
|
|
38
|
-
return i(r, e);
|
|
39
|
-
}
|
|
40
|
-
function o(e) {
|
|
41
|
-
return n(r, e);
|
|
42
|
-
}
|
|
43
|
-
//#endregion
|
|
44
|
-
export { o as StatusBadge, a as StatusFeedbackPanel, n as renderStatusBadge, i as renderStatusFeedbackPanel };
|
|
1
|
+
import { renderStatusBadge as e } from "./badge.js";
|
|
2
|
+
import { n as t, r as n, t as r } from "../_chunks/render-m5eMMwFR.js";
|
|
3
|
+
export { r as StatusBadge, t as StatusFeedbackPanel, e as renderStatusBadge, n as renderStatusFeedbackPanel };
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
@use '../styles/motion';
|
|
2
|
+
@keyframes rv-status-item-exit {
|
|
3
|
+
to {
|
|
4
|
+
opacity: 0;
|
|
5
|
+
transform: translateY(4px);
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
.rv-status-feedback__item[data-exiting='true'] {
|
|
9
|
+
animation: rv-status-item-exit 160ms ease-in both;
|
|
10
|
+
pointer-events: none;
|
|
11
|
+
}
|
|
2
12
|
.rv-status-feedback,
|
|
3
13
|
.rv-status-badge {
|
|
4
14
|
--rv-status-warning: var(--rv-ui-warning);
|
|
@@ -10,13 +20,15 @@
|
|
|
10
20
|
line-height: 1.45;
|
|
11
21
|
box-sizing: border-box;
|
|
12
22
|
}
|
|
13
|
-
:where(.dark, [data-theme^='dark'], revo-grid[theme^='dark'])
|
|
23
|
+
:where(.dark, [data-theme^='dark'], revo-grid[theme^='dark'])
|
|
24
|
+
:is(.rv-status-feedback, .rv-status-badge) {
|
|
14
25
|
--rv-status-warning: var(--rv-ui-warning);
|
|
15
26
|
--rv-status-danger: var(--rv-ui-danger);
|
|
16
27
|
--rv-status-success: var(--rv-ui-success);
|
|
17
28
|
}
|
|
18
29
|
@media (prefers-color-scheme: dark) {
|
|
19
|
-
:root:not([data-theme]):not(.dark)
|
|
30
|
+
:root:not([data-theme]):not(.dark)
|
|
31
|
+
:is(.rv-status-feedback, .rv-status-badge) {
|
|
20
32
|
--rv-status-warning: var(--rv-ui-warning);
|
|
21
33
|
--rv-status-danger: var(--rv-ui-danger);
|
|
22
34
|
--rv-status-success: var(--rv-ui-success);
|
|
@@ -76,10 +88,20 @@
|
|
|
76
88
|
border-block-start: 1px solid var(--rv-ui-border);
|
|
77
89
|
}
|
|
78
90
|
}
|
|
79
|
-
.rv-status-feedback__copy {
|
|
80
|
-
|
|
91
|
+
.rv-status-feedback__copy {
|
|
92
|
+
grid-column: 2;
|
|
93
|
+
min-inline-size: 0;
|
|
94
|
+
overflow-wrap: anywhere;
|
|
95
|
+
}
|
|
96
|
+
.rv-status-feedback__title {
|
|
97
|
+
font-weight: var(--rv-ui-font-weight-medium, 500);
|
|
98
|
+
}
|
|
81
99
|
.rv-status-feedback__description,
|
|
82
|
-
.rv-status-feedback__detail {
|
|
100
|
+
.rv-status-feedback__detail {
|
|
101
|
+
font-size: 13px;
|
|
102
|
+
color: var(--rv-ui-text-muted);
|
|
103
|
+
margin-block-start: 4px;
|
|
104
|
+
}
|
|
83
105
|
.rv-status-feedback__icon {
|
|
84
106
|
display: inline-flex;
|
|
85
107
|
align-items: center;
|
|
@@ -88,14 +110,28 @@
|
|
|
88
110
|
block-size: 18px;
|
|
89
111
|
margin-block-start: 2px;
|
|
90
112
|
color: var(--rv-ui-text-subtle);
|
|
91
|
-
transition: color var(--rv-ui-motion-fast, 120ms)
|
|
113
|
+
transition: color var(--rv-ui-motion-fast, 120ms)
|
|
114
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
|
|
92
115
|
flex: none;
|
|
93
|
-
svg {
|
|
116
|
+
svg {
|
|
117
|
+
display: block;
|
|
118
|
+
inline-size: 100%;
|
|
119
|
+
block-size: 100%;
|
|
120
|
+
fill: currentColor;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
[data-tone='warning'] > .rv-status-feedback__icon {
|
|
124
|
+
color: var(--rv-status-warning);
|
|
125
|
+
}
|
|
126
|
+
[data-tone='danger'] > .rv-status-feedback__icon {
|
|
127
|
+
color: var(--rv-status-danger);
|
|
128
|
+
}
|
|
129
|
+
[data-tone='success'] > .rv-status-feedback__icon {
|
|
130
|
+
color: var(--rv-status-success);
|
|
131
|
+
}
|
|
132
|
+
.rv-status-feedback__icon--busy {
|
|
133
|
+
animation: rv-status-feedback-spin 1s linear infinite;
|
|
94
134
|
}
|
|
95
|
-
[data-tone='warning'] > .rv-status-feedback__icon { color: var(--rv-status-warning); }
|
|
96
|
-
[data-tone='danger'] > .rv-status-feedback__icon { color: var(--rv-status-danger); }
|
|
97
|
-
[data-tone='success'] > .rv-status-feedback__icon { color: var(--rv-status-success); }
|
|
98
|
-
.rv-status-feedback__icon--busy { animation: rv-status-feedback-spin 1s linear infinite; }
|
|
99
135
|
.rv-status-feedback__actions {
|
|
100
136
|
display: flex;
|
|
101
137
|
flex-wrap: wrap;
|
|
@@ -122,27 +158,61 @@
|
|
|
122
158
|
border-radius: var(--rv-ui-radius, 6px);
|
|
123
159
|
background: var(--rv-ui-surface);
|
|
124
160
|
font-size: 13px;
|
|
125
|
-
transition:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
161
|
+
transition:
|
|
162
|
+
background-color var(--rv-ui-motion-normal, 160ms)
|
|
163
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1)),
|
|
164
|
+
border-color var(--rv-ui-motion-normal, 160ms)
|
|
165
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1)),
|
|
166
|
+
color var(--rv-ui-motion-normal, 160ms)
|
|
167
|
+
var(--rv-ui-motion-ease, cubic-bezier(0.2, 0, 0, 1));
|
|
168
|
+
.rv-status-feedback__icon {
|
|
169
|
+
inline-size: 14px;
|
|
170
|
+
block-size: 14px;
|
|
171
|
+
margin: 0;
|
|
172
|
+
}
|
|
173
|
+
&[data-tone='warning'] {
|
|
174
|
+
color: var(--rv-status-warning);
|
|
175
|
+
}
|
|
176
|
+
&[data-tone='danger'] {
|
|
177
|
+
color: var(--rv-status-danger);
|
|
178
|
+
}
|
|
179
|
+
&[data-tone='success'] {
|
|
180
|
+
color: var(--rv-status-success);
|
|
181
|
+
}
|
|
130
182
|
&:not([data-tone='neutral']) {
|
|
131
183
|
background: color-mix(in srgb, currentColor 7%, var(--rv-ui-surface));
|
|
132
184
|
border-color: color-mix(in srgb, currentColor 20%, var(--rv-ui-border));
|
|
133
185
|
}
|
|
134
186
|
}
|
|
135
187
|
@container (max-width: 480px) {
|
|
136
|
-
.rv-status-feedback__item--multiple-actions > .rv-status-feedback__actions {
|
|
188
|
+
.rv-status-feedback__item--multiple-actions > .rv-status-feedback__actions {
|
|
189
|
+
grid-column: 2 / -1;
|
|
190
|
+
justify-content: flex-start;
|
|
191
|
+
padding: 0;
|
|
192
|
+
}
|
|
137
193
|
}
|
|
138
194
|
@container (max-width: 340px) {
|
|
139
|
-
.rv-status-feedback__item {
|
|
140
|
-
|
|
195
|
+
.rv-status-feedback__item {
|
|
196
|
+
grid-template-columns: 18px minmax(0, 1fr);
|
|
197
|
+
}
|
|
198
|
+
.rv-status-feedback__actions {
|
|
199
|
+
grid-column: 2;
|
|
200
|
+
justify-content: flex-start;
|
|
201
|
+
padding: 0;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
@keyframes rv-status-feedback-spin {
|
|
205
|
+
to {
|
|
206
|
+
transform: rotate(360deg);
|
|
207
|
+
}
|
|
141
208
|
}
|
|
142
|
-
@keyframes rv-status-feedback-spin { to { transform: rotate(360deg); } }
|
|
143
209
|
@media (prefers-reduced-motion: reduce) {
|
|
144
|
-
.rv-status-feedback__icon--busy {
|
|
145
|
-
|
|
210
|
+
.rv-status-feedback__icon--busy {
|
|
211
|
+
animation: none;
|
|
212
|
+
}
|
|
213
|
+
.rv-status-feedback__action {
|
|
214
|
+
transition: none;
|
|
215
|
+
}
|
|
146
216
|
}
|
|
147
217
|
|
|
148
218
|
/* Floating feedback uses the browser top layer and keeps its DOM theme inheritance. */
|
|
@@ -156,11 +226,20 @@
|
|
|
156
226
|
padding: 0;
|
|
157
227
|
display: none;
|
|
158
228
|
z-index: 1000;
|
|
159
|
-
&::backdrop {
|
|
229
|
+
&::backdrop {
|
|
230
|
+
background: transparent;
|
|
231
|
+
pointer-events: none;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
.rv-status-feedback--collapsed .rv-status-feedback__header {
|
|
235
|
+
border-block-end: 0;
|
|
236
|
+
padding-block: 8px;
|
|
160
237
|
}
|
|
161
|
-
.rv-status-
|
|
162
|
-
|
|
163
|
-
|
|
238
|
+
.rv-status-feedback__items[hidden] {
|
|
239
|
+
display: none;
|
|
240
|
+
}
|
|
241
|
+
.rv-status-feedback
|
|
242
|
+
:is(.rv-status-feedback__toggle, .rv-status-feedback__close) {
|
|
164
243
|
display: inline-flex;
|
|
165
244
|
align-items: center;
|
|
166
245
|
justify-content: center;
|
|
@@ -169,22 +248,39 @@
|
|
|
169
248
|
min-width: 30px;
|
|
170
249
|
min-height: 30px;
|
|
171
250
|
padding: 6px;
|
|
172
|
-
.rv-status-feedback__icon {
|
|
251
|
+
.rv-status-feedback__icon {
|
|
252
|
+
width: 12px;
|
|
253
|
+
height: 12px;
|
|
254
|
+
margin: 0;
|
|
255
|
+
}
|
|
173
256
|
}
|
|
174
|
-
:where(.dark, [data-theme^='dark'], revo-grid[theme^='dark'])
|
|
257
|
+
:where(.dark, [data-theme^='dark'], revo-grid[theme^='dark'])
|
|
258
|
+
.rv-status-feedback {
|
|
175
259
|
--rv-status-shadow: 0 12px 32px -8px var(--rv-ui-shadow);
|
|
176
260
|
}
|
|
177
261
|
|
|
178
262
|
.rv-status-feedback__header > .rv-status-feedback__icon {
|
|
179
263
|
margin-block-start: 0;
|
|
180
|
-
&[data-tone='warning'] {
|
|
181
|
-
|
|
264
|
+
&[data-tone='warning'] {
|
|
265
|
+
color: var(--rv-status-warning);
|
|
266
|
+
}
|
|
267
|
+
&[data-tone='danger'] {
|
|
268
|
+
color: var(--rv-status-danger);
|
|
269
|
+
}
|
|
182
270
|
}
|
|
183
271
|
|
|
184
|
-
.rv-status-feedback__toggle + .rv-status-feedback__close {
|
|
272
|
+
.rv-status-feedback__toggle + .rv-status-feedback__close {
|
|
273
|
+
margin-inline-start: 0;
|
|
274
|
+
}
|
|
185
275
|
.rv-status-feedback--compact {
|
|
186
276
|
font-size: 13px;
|
|
187
|
-
.rv-status-feedback__header {
|
|
188
|
-
|
|
189
|
-
|
|
277
|
+
.rv-status-feedback__header {
|
|
278
|
+
padding: 6px 10px;
|
|
279
|
+
}
|
|
280
|
+
.rv-status-feedback__heading {
|
|
281
|
+
font-size: 13px;
|
|
282
|
+
}
|
|
283
|
+
.rv-status-feedback__item {
|
|
284
|
+
padding: 10px;
|
|
285
|
+
}
|
|
190
286
|
}
|
|
@@ -29,6 +29,10 @@ export interface StatusFeedbackLocaleText {
|
|
|
29
29
|
readonly formatCount: (count: number) => string;
|
|
30
30
|
}
|
|
31
31
|
export interface StatusFeedbackPanelProps {
|
|
32
|
+
/** Component adapters only: dismiss settled neutral/success items after this delay. Disabled by default. */
|
|
33
|
+
readonly autoDismissMs?: number;
|
|
34
|
+
/** The owner removes the item after its exit animation. */
|
|
35
|
+
readonly onDismissItem?: (id: string) => void;
|
|
32
36
|
readonly compact?: boolean;
|
|
33
37
|
readonly onClose?: () => void;
|
|
34
38
|
readonly closeLabel?: string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { StatusFeedbackItem } from './types';
|
|
2
|
+
/** Timers follow individual items; the consumer remains the owner of removal. */
|
|
3
|
+
export declare function useAutoDismiss(items: readonly StatusFeedbackItem[], duration?: number, onDismiss?: (id: string) => void): StatusFeedbackItem[];
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
font-size: 13px;
|
|
9
9
|
line-height: 1.5;
|
|
10
10
|
}
|
|
11
|
-
.rv-activity-message-avatar {
|
|
11
|
+
.rv-activity-message-avatar {
|
|
12
|
+
padding-block-start: 10px;
|
|
13
|
+
}
|
|
12
14
|
.rv-activity-message-card {
|
|
13
15
|
display: grid;
|
|
14
16
|
grid-template-columns: minmax(0, 1fr) fit-content(35%);
|
|
@@ -21,11 +23,23 @@
|
|
|
21
23
|
background: var(--rv-ui-surface-sunken);
|
|
22
24
|
box-shadow: none;
|
|
23
25
|
}
|
|
24
|
-
.rv-activity-message-header {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.rv-activity-message-content
|
|
26
|
+
.rv-activity-message-header {
|
|
27
|
+
min-width: 0;
|
|
28
|
+
overflow-wrap: anywhere;
|
|
29
|
+
}
|
|
30
|
+
.rv-activity-message-content {
|
|
31
|
+
min-width: 0;
|
|
32
|
+
overflow-wrap: anywhere;
|
|
33
|
+
}
|
|
34
|
+
.rv-activity-message-content--full {
|
|
35
|
+
grid-column: 1 / -1;
|
|
36
|
+
}
|
|
37
|
+
.rv-activity-message-content > :first-child {
|
|
38
|
+
margin-block-start: 0;
|
|
39
|
+
}
|
|
40
|
+
.rv-activity-message-content > :last-child {
|
|
41
|
+
margin-block-end: 0;
|
|
42
|
+
}
|
|
29
43
|
.rv-activity-message-time {
|
|
30
44
|
grid-column: 2;
|
|
31
45
|
grid-row: 1;
|
|
@@ -43,4 +57,7 @@
|
|
|
43
57
|
flex-wrap: wrap;
|
|
44
58
|
gap: 4px;
|
|
45
59
|
}
|
|
46
|
-
.rv-activity-message-details {
|
|
60
|
+
.rv-activity-message-details {
|
|
61
|
+
grid-column: 2;
|
|
62
|
+
min-width: 0;
|
|
63
|
+
}
|
package/styles/_alert.scss
CHANGED
|
@@ -8,28 +8,89 @@
|
|
|
8
8
|
padding: 12px 16px;
|
|
9
9
|
border: 1px solid var(--rv-ui-border);
|
|
10
10
|
border-radius: var(--rv-ui-radius, 8px);
|
|
11
|
-
background: var(--rv-ui-surface);
|
|
11
|
+
background: var(--rv-alert-surface, var(--rv-ui-surface));
|
|
12
12
|
color: var(--rv-ui-text);
|
|
13
13
|
font-size: 14px;
|
|
14
14
|
font-weight: 400;
|
|
15
15
|
line-height: 20px;
|
|
16
16
|
overflow-wrap: anywhere;
|
|
17
17
|
}
|
|
18
|
-
.rv-alert--with-icon {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.rv-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
18
|
+
.rv-alert--with-icon {
|
|
19
|
+
grid-template-columns: 16px minmax(0, 1fr);
|
|
20
|
+
column-gap: 12px;
|
|
21
|
+
}
|
|
22
|
+
.rv-alert__icon {
|
|
23
|
+
--rv-icon-size: 16px;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
width: 16px;
|
|
26
|
+
height: 16px;
|
|
27
|
+
margin-top: 2px;
|
|
28
|
+
color: var(--rv-alert-tone, currentColor);
|
|
29
|
+
}
|
|
30
|
+
.rv-alert__icon svg {
|
|
31
|
+
display: block;
|
|
32
|
+
width: 16px;
|
|
33
|
+
height: 16px;
|
|
34
|
+
fill: currentColor;
|
|
35
|
+
}
|
|
36
|
+
.rv-alert__content {
|
|
37
|
+
display: grid;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
gap: 2px;
|
|
40
|
+
}
|
|
41
|
+
.rv-alert__title {
|
|
42
|
+
font-weight: 500;
|
|
43
|
+
}
|
|
44
|
+
.rv-alert__description {
|
|
45
|
+
color: var(--rv-ui-text-muted);
|
|
46
|
+
}
|
|
47
|
+
.rv-alert__content > p,
|
|
48
|
+
.rv-alert__description > p {
|
|
49
|
+
margin: 0;
|
|
50
|
+
}
|
|
51
|
+
.rv-alert--danger,
|
|
52
|
+
.rv-alert--warning,
|
|
53
|
+
.rv-alert--success {
|
|
54
|
+
border: 0;
|
|
55
|
+
}
|
|
29
56
|
|
|
30
|
-
.rv-alert--
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
57
|
+
.rv-alert--danger {
|
|
58
|
+
--rv-alert-tone: var(--rv-ui-danger);
|
|
59
|
+
--rv-alert-surface: var(--rv-ui-danger-surface);
|
|
60
|
+
color: var(--rv-alert-tone);
|
|
61
|
+
}
|
|
62
|
+
.rv-alert--danger .rv-alert__description {
|
|
63
|
+
color: inherit;
|
|
64
|
+
}
|
|
65
|
+
.rv-alert--warning {
|
|
66
|
+
--rv-alert-tone: var(--rv-ui-warning);
|
|
67
|
+
--rv-alert-surface: var(--rv-ui-warning-surface);
|
|
68
|
+
}
|
|
69
|
+
.rv-alert--success {
|
|
70
|
+
--rv-alert-tone: var(--rv-ui-success);
|
|
71
|
+
--rv-alert-surface: var(--rv-ui-success-surface);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rv-alert--with-actions {
|
|
75
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
76
|
+
column-gap: 12px;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
.rv-alert--with-icon.rv-alert--with-actions {
|
|
80
|
+
grid-template-columns: 16px minmax(0, 1fr) auto;
|
|
81
|
+
}
|
|
82
|
+
.rv-alert__actions {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
gap: 8px;
|
|
86
|
+
}
|
|
87
|
+
.rv-alert[hidden] {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
34
90
|
|
|
35
|
-
.rv-alert .rv-alert__icon > * {
|
|
91
|
+
.rv-alert .rv-alert__icon > * {
|
|
92
|
+
color: inherit;
|
|
93
|
+
inline-size: 100%;
|
|
94
|
+
block-size: 100%;
|
|
95
|
+
margin: 0;
|
|
96
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Shared active-cell frame; inset so the grid viewport cannot clip it. */
|
|
2
|
+
@mixin cell-editor-frame {
|
|
3
|
+
border: 0;
|
|
4
|
+
border-radius: var(--rv-control-radius, 6px);
|
|
5
|
+
outline: 2px solid var(--rv-ui-accent, var(--rg-theme-primary, #2563eb));
|
|
6
|
+
outline-offset: -2px;
|
|
7
|
+
|
|
8
|
+
&[aria-invalid='true'] {
|
|
9
|
+
outline-color: var(--rv-ui-danger, #dc2626);
|
|
10
|
+
}
|
|
11
|
+
}
|