@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/activity-message.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
2
|
-
//#region
|
|
2
|
+
//#region package/activity-message.tsx
|
|
3
3
|
function t({ className: t = "", avatar: n, timestamp: r, header: i, children: a, actions: o, details: s }) {
|
|
4
4
|
return /* @__PURE__ */ e("article", {
|
|
5
5
|
class: `rv-activity-message ${t}`,
|
package/ai/_chat.scss
CHANGED
package/ai/_style.scss
CHANGED
|
@@ -87,22 +87,6 @@
|
|
|
87
87
|
.rv-ai-request-trail {
|
|
88
88
|
min-width: 0;
|
|
89
89
|
}
|
|
90
|
-
.rv-ai-request-trail .rv-ai-trail-trigger {
|
|
91
|
-
color: var(--rv-ui-accent-text);
|
|
92
|
-
background: var(--rv-ui-selected-bg);
|
|
93
|
-
&:hover:not(:disabled),
|
|
94
|
-
&:focus-visible {
|
|
95
|
-
color: var(--rv-ui-accent-text);
|
|
96
|
-
background: var(--rv-ui-selected-bg);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.rv-ai-trail-trigger .rv-svg-icon {
|
|
100
|
-
transition: transform var(--rv-ui-motion-fast, 120ms)
|
|
101
|
-
var(--rv-ui-motion-ease, ease);
|
|
102
|
-
}
|
|
103
|
-
.rv-ai-trail-trigger[aria-expanded='true'] .rv-svg-icon {
|
|
104
|
-
transform: rotate(180deg);
|
|
105
|
-
}
|
|
106
90
|
.rv-popover.rv-ai-trail-popover {
|
|
107
91
|
box-sizing: border-box;
|
|
108
92
|
width: 22rem;
|
|
@@ -369,8 +353,31 @@
|
|
|
369
353
|
flex: 1;
|
|
370
354
|
min-height: 0;
|
|
371
355
|
height: 100%;
|
|
372
|
-
> .rv-ai-mounted-chat {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
356
|
+
> .rv-ai-mounted-chat {
|
|
357
|
+
flex: 1;
|
|
358
|
+
min-height: 0;
|
|
359
|
+
}
|
|
360
|
+
.rv-ai-chat-viewport {
|
|
361
|
+
max-height: none;
|
|
362
|
+
}
|
|
363
|
+
.rv-ai-result-actions,
|
|
364
|
+
.rv-ai-assistant-footer {
|
|
365
|
+
flex: none;
|
|
366
|
+
}
|
|
367
|
+
.rv-ai-chat-content {
|
|
368
|
+
min-height: 100%;
|
|
369
|
+
box-sizing: border-box;
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
// Keep the trigger compact while giving long requests room in the shared popup.
|
|
374
|
+
.rv-ai-examples-menu {
|
|
375
|
+
box-sizing: border-box;
|
|
376
|
+
width: min(420px, calc(100vw - 16px));
|
|
377
|
+
max-width: calc(100vw - 16px);
|
|
378
|
+
|
|
379
|
+
.dropdown-option {
|
|
380
|
+
min-height: 36px;
|
|
381
|
+
white-space: normal;
|
|
382
|
+
}
|
|
376
383
|
}
|
package/ai/components.d.ts
CHANGED
|
@@ -32,13 +32,15 @@ export interface AiSuggestionChoice {
|
|
|
32
32
|
prompt: string;
|
|
33
33
|
}
|
|
34
34
|
export interface AiSuggestionsProps {
|
|
35
|
+
/** Number of inline choices; remaining choices are available under More. Default: 2. */
|
|
36
|
+
maxVisible?: number;
|
|
35
37
|
translations?: AiUiTranslations;
|
|
36
38
|
items: readonly (string | AiSuggestionChoice)[];
|
|
37
39
|
onSelect(value: string): void;
|
|
38
40
|
disabled?: boolean;
|
|
39
41
|
label?: string;
|
|
40
42
|
}
|
|
41
|
-
export declare function AiSuggestions({ translations, items, onSelect, disabled, label, }: AiSuggestionsProps): h.JSX.Element | null;
|
|
43
|
+
export declare function AiSuggestions({ translations, items, onSelect, disabled, label, maxVisible, }: AiSuggestionsProps): h.JSX.Element | null;
|
|
42
44
|
export interface AiActionStatusProps {
|
|
43
45
|
translations?: AiUiTranslations;
|
|
44
46
|
phase: AiActionPhase;
|
package/ai/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as e } from "../_chunks/mount-
|
|
2
|
-
import { C as t, E as n, S as r, T as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, w as C, x as w, y as T } from "../_chunks/request-trail-
|
|
1
|
+
import { t as e } from "../_chunks/mount-C8CnIW9k.js";
|
|
2
|
+
import { C as t, E as n, S as r, T as i, _ as a, a as o, b as s, c, d as l, f as u, g as d, h as f, i as p, l as m, m as h, n as g, o as _, p as v, r as y, s as b, t as x, u as S, w as C, x as w, y as T } from "../_chunks/request-trail-B1zVRPEf.js";
|
|
3
3
|
export { i as AI_UI_MESSAGES, u as AiActionStatus, v as AiAssistant, h as AiChangePreview, g as AiChat, y as AiChatComposer, p as AiChatContent, o as AiChatEmptyState, _ as AiMessage, b as AiMessageActions, c as AiMessageContent, f as AiPromptInput, m as AiReasoning, x as AiRequestTrail, d as AiResult, w as AiResultMetrics, r as AiResultTable, s as AiResultText, T as AiResultView, a as AiSuggestions, S as AiTask, l as AiTaskItem, C as AiTranslationProvider, t as formatAiResultValue, e as mountAiAssistant, n as translateAiText };
|
package/ai/mount.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ export interface AiAssistantMountState {
|
|
|
31
31
|
choices?: readonly AiSuggestionChoice[];
|
|
32
32
|
steps?: readonly AiRequestTrailItem[];
|
|
33
33
|
canEditSteps?: boolean;
|
|
34
|
+
/** Host-owned chart view can return to the record grid. */
|
|
35
|
+
canClearChart?: boolean;
|
|
36
|
+
viewSwitching?: boolean;
|
|
34
37
|
}
|
|
35
38
|
export interface AiAssistantMountOptions {
|
|
36
39
|
/** Trusted host renderer for tabular results; never supplied by model output. */
|
|
@@ -39,13 +42,19 @@ export interface AiAssistantMountOptions {
|
|
|
39
42
|
layout?: 'flow' | 'fill';
|
|
40
43
|
/** Optional host for reactive undo/redo and view controls. Cleaned up on destroy. */
|
|
41
44
|
controlsMountTo?: HTMLElement;
|
|
42
|
-
/**
|
|
45
|
+
/** Show the separate New conversation icon. Defaults to true. */
|
|
46
|
+
showNewConversation?: boolean;
|
|
47
|
+
/** @deprecated Use showNewConversation. */
|
|
43
48
|
showClearChat?: boolean;
|
|
44
|
-
/**
|
|
49
|
+
/** Request-history popup: hidden by default in chat, visible in toolbar mode. */
|
|
50
|
+
showRequestHistory?: boolean;
|
|
51
|
+
/** Hide native data Undo/Redo controls. Workspace reset belongs to the application. */
|
|
45
52
|
showHistoryControls?: boolean;
|
|
46
53
|
/** Optional welcome content shown only while the local chat transcript is empty. */
|
|
47
54
|
emptyState?: AiChatEmptyStateProps | false;
|
|
48
55
|
onClearChat?(): void;
|
|
56
|
+
/** Return to the grid while retaining the chart configuration. */
|
|
57
|
+
onClearChart?(): void;
|
|
49
58
|
/** Local input recall and optional host persistence; never sent to the model automatically. */
|
|
50
59
|
promptHistory?: AiPromptHistoryOptions;
|
|
51
60
|
/** Auto-dismiss settled activity messages; disabled unless configured. */
|
|
@@ -57,16 +66,15 @@ export interface AiAssistantMountOptions {
|
|
|
57
66
|
onRedoData?(): void;
|
|
58
67
|
onSubmit(prompt: string): void;
|
|
59
68
|
onStop(): void;
|
|
60
|
-
onRestore(): void;
|
|
61
|
-
onReset(): void;
|
|
62
69
|
onRemoveStep?(id: string): void;
|
|
63
70
|
suggestions?: readonly string[];
|
|
71
|
+
/** Inline choice count; additional choices remain under More. Default: 2. */
|
|
72
|
+
maxVisibleSuggestions?: number;
|
|
64
73
|
label?: string;
|
|
65
74
|
footer?: string;
|
|
66
|
-
|
|
67
|
-
resetLabel?: string;
|
|
75
|
+
/** Format the matched-row count in command activity, independently of request history. */
|
|
68
76
|
countLabel?: (count: number) => string;
|
|
69
|
-
trail?: Pick<AiRequestTrailProps, 'label' | 'triggerLabel' | '
|
|
77
|
+
trail?: Pick<AiRequestTrailProps, 'label' | 'triggerLabel' | 'removeLabel' | 'countLabel' | 'changedMessage'>;
|
|
70
78
|
prompt?: Pick<AiPromptInputProps, 'label' | 'placeholder' | 'submitLabel' | 'stopLabel' | 'hint' | 'textareaProps'>;
|
|
71
79
|
}
|
|
72
80
|
/** Framework-independent mount of the same TSX used by the public components. */
|
package/ai/request-trail.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AiUiTranslations } from './translations';
|
|
2
|
-
import { h } from '../_vendor/preact/src/index';
|
|
2
|
+
import { h, ComponentChildren } from '../_vendor/preact/src/index';
|
|
3
3
|
export interface AiRequestTrailItem {
|
|
4
4
|
id: string;
|
|
5
|
+
/** Hide removal when the host cannot safely undo this individual request. */
|
|
6
|
+
removable?: boolean;
|
|
5
7
|
label: string;
|
|
6
8
|
/** Number of earlier requests represented by a grouped step. */
|
|
7
9
|
count?: number;
|
|
@@ -10,8 +12,12 @@ export interface AiRequestTrailProps {
|
|
|
10
12
|
translations?: AiUiTranslations;
|
|
11
13
|
items: readonly AiRequestTrailItem[];
|
|
12
14
|
onRemove(id: string): void;
|
|
13
|
-
onClear(): void;
|
|
15
|
+
onClear?(): void;
|
|
14
16
|
onEmpty?(): void;
|
|
17
|
+
/** Additional host-owned actions in the steps popup. */
|
|
18
|
+
footer?: ComponentChildren;
|
|
19
|
+
/** Optional application-owned clear action for standalone history presentation. */
|
|
20
|
+
showClear?: boolean;
|
|
15
21
|
disabled?: boolean;
|
|
16
22
|
removalsDisabled?: boolean;
|
|
17
23
|
label?: string;
|
|
@@ -23,4 +29,4 @@ export interface AiRequestTrailProps {
|
|
|
23
29
|
changedMessage?: string;
|
|
24
30
|
}
|
|
25
31
|
/** Applied context only. The host owns replay, persistence and view mutations. */
|
|
26
|
-
export declare function AiRequestTrail({ translations, items, onRemove, onClear, onEmpty, disabled, removalsDisabled, label, triggerLabel, clearLabel, clearDescription, removeLabel, countLabel, changedMessage, }: AiRequestTrailProps): h.JSX.Element | null;
|
|
32
|
+
export declare function AiRequestTrail({ translations, items, onRemove, onClear, onEmpty, footer, showClear, disabled, removalsDisabled, label, triggerLabel, clearLabel, clearDescription, removeLabel, countLabel, changedMessage, }: AiRequestTrailProps): h.JSX.Element | null;
|
package/ai/results/_style.scss
CHANGED
package/ai/results/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export * from './types';
|
|
|
5
5
|
export * from './table';
|
|
6
6
|
export * from './metrics';
|
|
7
7
|
export * from './text';
|
|
8
|
-
export declare function AiResultView({ result, renderTable }: {
|
|
8
|
+
export declare function AiResultView({ result, renderTable, }: {
|
|
9
9
|
result: AiResultContent;
|
|
10
10
|
renderTable?: AiTableRenderer;
|
|
11
11
|
}): ComponentChildren;
|
package/ai/translations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** English message IDs and fallbacks; hosts supply translated values. */
|
|
2
|
-
export declare const AI_UI_MESSAGES: readonly ["AI chat", "No results", "Clear chat", "Conversation messages", "Jump to latest", "You", "Assistant", "System", "Message actions", "Start a conversation", "Ask a question to get started.", "Message", "Type a message…", "Working…", "Reasoning summary", "Pending", "Running", "Completed", "Failed", "Cancelled", "{seconds}s", "Data history", "Review changes", "Proposed changes", "Change", "Current", "Proposed", "Apply changes", "Cancel changes", "Undo data change", "Redo data change", "Ask AI to change this view", "Filter or sort your data…", "Send", "Stop", "Enter to send · Shift+Enter for a new line", "Suggested requests", "More", "Activity", "Collapse activity", "Expand activity", "AI view assistant", "View steps", "Clear all", "Restore the starting view", "Restore previous view", "Reset view", "The view changed manually. Start a new request to continue.", "Remove request: {label}", "{count} step", "{count} steps", "{count} applied request", "{count} applied requests", "{count} matching rows"];
|
|
2
|
+
export declare const AI_UI_MESSAGES: readonly ["AI chat", "No results", "Clear chat", "Restart conversation", "New conversation", "Request history", "Clear chart", "Conversation messages", "Jump to latest", "You", "Assistant", "System", "Message actions", "Start a conversation", "Ask a question to get started.", "Message", "Type a message…", "Working…", "Reasoning summary", "Pending", "Running", "Completed", "Failed", "Cancelled", "{seconds}s", "Data history", "Review changes", "Proposed changes", "Change", "Current", "Proposed", "Apply changes", "Cancel changes", "Undo data change", "Redo data change", "Ask AI to change this view", "Filter or sort your data…", "Send", "Stop", "Enter to send · Shift+Enter for a new line", "Suggested requests", "More", "Search requests", "Activity", "Collapse activity", "Expand activity", "AI view assistant", "View steps", "Clear all", "Restore the starting view", "Restore previous view", "Reset view", "The view changed manually. Start a new request to continue.", "Remove request: {label}", "{count} step", "{count} steps", "{count} applied request", "{count} applied requests", "{count} matching rows"];
|
|
3
3
|
export type AiUiTranslations = Partial<Record<(typeof AI_UI_MESSAGES)[number], string>>;
|
|
4
4
|
export declare function translateAiText(text: string, translations?: Readonly<Record<string, string | undefined>>, values?: Readonly<Record<string, string | number>>): string;
|
package/angular/angular.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export declare class UiComponent implements AfterContentInit, AfterViewInit, OnC
|
|
|
40
40
|
}
|
|
41
41
|
export type { PdfViewerProps, PdfViewerText } from '../pdf-viewer/component.js';
|
|
42
42
|
export type { PdfViewerToolbarProps } from '../pdf-viewer/toolbar.js';
|
|
43
|
-
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig } from '../pdf-viewer/toolbar-options.js';
|
|
43
|
+
export type { PdfViewerButton, PdfViewerButtonOptions, PdfViewerToolbarOptions, PdfViewerToolbarConfig, } from '../pdf-viewer/toolbar-options.js';
|
|
44
44
|
export { defaultPdfViewerText } from '../pdf-viewer/index.js';
|
package/angular/angular.js
CHANGED
|
@@ -35,10 +35,12 @@ export class UiComponent {
|
|
|
35
35
|
ngAfterViewInit() {
|
|
36
36
|
if (!this.browser)
|
|
37
37
|
return;
|
|
38
|
-
this.mount = createFrameworkMount(this.host.nativeElement, targets => this.renderTemplates(targets));
|
|
38
|
+
this.mount = createFrameworkMount(this.host.nativeElement, (targets) => this.renderTemplates(targets));
|
|
39
|
+
this.update();
|
|
40
|
+
}
|
|
41
|
+
ngOnChanges() {
|
|
39
42
|
this.update();
|
|
40
43
|
}
|
|
41
|
-
ngOnChanges() { this.update(); }
|
|
42
44
|
update() {
|
|
43
45
|
if (!this.mount || this.destroyed)
|
|
44
46
|
return;
|
|
@@ -47,8 +49,11 @@ export class UiComponent {
|
|
|
47
49
|
throw new Error(`Unknown UI component: ${this.component}`);
|
|
48
50
|
const props = { ...this.props };
|
|
49
51
|
const model = componentModels[this.component];
|
|
50
|
-
const callbacks = new Set([
|
|
51
|
-
|
|
52
|
+
const callbacks = new Set([
|
|
53
|
+
...Object.keys(props).filter((key) => /^on[A-Z]/.test(key)),
|
|
54
|
+
'onClose',
|
|
55
|
+
...(model ? [model.callback] : []),
|
|
56
|
+
]);
|
|
52
57
|
for (const name of callbacks) {
|
|
53
58
|
const original = props[name];
|
|
54
59
|
props[name] = (...args) => {
|
|
@@ -60,13 +65,13 @@ export class UiComponent {
|
|
|
60
65
|
return result;
|
|
61
66
|
};
|
|
62
67
|
}
|
|
63
|
-
const slots = Object.fromEntries(this.slots?.map(slot => [slot.rvUiSlot, slot]) ?? []);
|
|
68
|
+
const slots = Object.fromEntries(this.slots?.map((slot) => [slot.rvUiSlot, slot]) ?? []);
|
|
64
69
|
this.mount.render(component, props, (props, content) => withFrameworkContent(this.component, props, slots, content));
|
|
65
70
|
}
|
|
66
71
|
renderTemplates(targets) {
|
|
67
72
|
if (this.destroyed)
|
|
68
73
|
return;
|
|
69
|
-
const live = new Set(targets.map(target => target.id));
|
|
74
|
+
const live = new Set(targets.map((target) => target.id));
|
|
70
75
|
for (const [id, record] of this.views) {
|
|
71
76
|
if (!live.has(id)) {
|
|
72
77
|
this.release(record);
|
|
@@ -123,7 +128,8 @@ export class UiComponent {
|
|
|
123
128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.0", ngImport: i0, type: UiComponent, decorators: [{
|
|
124
129
|
type: Component,
|
|
125
130
|
args: [{
|
|
126
|
-
selector: 'rv-ui',
|
|
131
|
+
selector: 'rv-ui',
|
|
132
|
+
standalone: true,
|
|
127
133
|
template: '<span #host style="display: contents"></span>',
|
|
128
134
|
host: { style: 'display: contents' },
|
|
129
135
|
}]
|
package/assignee/assignee.scss
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
.rv-assignee-editor .selected-tag {
|
|
48
|
+
.rv-assignee-editor.dropdown-container .selected-tag {
|
|
49
49
|
display: inline-flex;
|
|
50
50
|
align-items: center;
|
|
51
51
|
border-radius: 16px;
|
|
@@ -53,6 +53,12 @@
|
|
|
53
53
|
font-size: 14px;
|
|
54
54
|
line-height: 18px;
|
|
55
55
|
white-space: nowrap;
|
|
56
|
+
color: var(--rv-ui-text);
|
|
57
|
+
|
|
58
|
+
// Keep the full 24px remove target within the 24px value pill.
|
|
59
|
+
> button.rv-remove-button {
|
|
60
|
+
margin-block: -3px;
|
|
61
|
+
}
|
|
56
62
|
}
|
|
57
63
|
.rv-assignee-picker__allocations {
|
|
58
64
|
display: grid;
|
|
@@ -90,15 +96,31 @@
|
|
|
90
96
|
}
|
|
91
97
|
.rv-assignee-picker__allocations {
|
|
92
98
|
border-top: 1px solid var(--rv-ui-border);
|
|
93
|
-
&:empty {
|
|
99
|
+
&:empty {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
94
102
|
label {
|
|
95
103
|
padding: 8px 10px;
|
|
96
104
|
border-radius: 8px;
|
|
97
105
|
background: var(--rv-ui-field-surface);
|
|
98
106
|
font-size: 12px;
|
|
99
|
-
> span {
|
|
107
|
+
> span {
|
|
108
|
+
min-width: 0;
|
|
109
|
+
overflow-wrap: anywhere;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
input {
|
|
113
|
+
flex: 0 0 88px;
|
|
114
|
+
width: 88px;
|
|
115
|
+
min-height: 32px;
|
|
116
|
+
padding: 6px 8px;
|
|
117
|
+
font-size: 12px;
|
|
100
118
|
}
|
|
101
|
-
input { flex: 0 0 88px; width: 88px; min-height: 32px; padding: 6px 8px; font-size: 12px; }
|
|
102
119
|
}
|
|
103
|
-
.rv-assignee-picker__footer {
|
|
104
|
-
|
|
120
|
+
.rv-assignee-picker__footer {
|
|
121
|
+
flex-wrap: wrap;
|
|
122
|
+
font-size: 12px;
|
|
123
|
+
}
|
|
124
|
+
.rv-assignee-picker__footer .rv-editor-actions {
|
|
125
|
+
margin-inline-start: auto;
|
|
126
|
+
}
|
package/assignee/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i as e, t } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
|
-
import { l as r, n as i } from "../_chunks/native-control-
|
|
4
|
-
import {
|
|
3
|
+
import { l as r, n as i } from "../_chunks/native-control-um1L1wgZ.js";
|
|
4
|
+
import { R as a } from "../_chunks/controls-B3EgM_DS.js";
|
|
5
5
|
import { SearchInput as o } from "../search-input/index.js";
|
|
6
6
|
import { SharedResourcePicker as s } from "../resource-picker/resource-picker.js";
|
|
7
7
|
import { EditorActions as c } from "../editor-actions.js";
|
|
8
|
-
//#region
|
|
8
|
+
//#region package/assignee/model.ts
|
|
9
9
|
function l(e) {
|
|
10
10
|
let t = /* @__PURE__ */ new Map();
|
|
11
11
|
if (Array.isArray(e)) for (let n of e) n && (typeof n.value == "string" || typeof n.value == "number") && t.set(n.value, {
|
|
@@ -29,7 +29,7 @@ function f(e, t) {
|
|
|
29
29
|
return t === 0 ? String(e) : `${e} ${t}%`;
|
|
30
30
|
}
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region
|
|
32
|
+
//#region package/assignee/picker.tsx
|
|
33
33
|
function p(e) {
|
|
34
34
|
let t = e.text, r = e.value.every((e) => u(e.units));
|
|
35
35
|
return /* @__PURE__ */ n("div", {
|
|
@@ -102,7 +102,7 @@ function p(e) {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
|
-
//#region
|
|
105
|
+
//#region package/assignee/field.tsx
|
|
106
106
|
function m({ value: i, options: a, theme: o, renderPicker: s, renderValue: c, save: d, cancel: m }) {
|
|
107
107
|
let [h, g] = e(() => l(i)), _ = t(h), v = t(!1), y = (e) => {
|
|
108
108
|
_.current = e, g(e);
|
|
@@ -157,7 +157,7 @@ function m({ value: i, options: a, theme: o, renderPicker: s, renderValue: c, sa
|
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
159
|
//#endregion
|
|
160
|
-
//#region
|
|
160
|
+
//#region package/assignee/layout.tsx
|
|
161
161
|
function h({ query: e, onQueryChange: t, searchRef: r, children: i, ...s }) {
|
|
162
162
|
return /* @__PURE__ */ n("div", {
|
|
163
163
|
id: s.id,
|
package/avatar/avatar.style.scss
CHANGED
|
@@ -26,14 +26,31 @@
|
|
|
26
26
|
border-radius: 8px;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.avatar-cell--size-16 {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
.avatar-cell--size-
|
|
29
|
+
.avatar-cell--size-16 {
|
|
30
|
+
--avatar-cell-size: 16px;
|
|
31
|
+
font-size: 8px;
|
|
32
|
+
}
|
|
33
|
+
.avatar-cell--size-20 {
|
|
34
|
+
--avatar-cell-size: 20px;
|
|
35
|
+
font-size: 9px;
|
|
36
|
+
}
|
|
37
|
+
.avatar-cell--size-32 {
|
|
38
|
+
--avatar-cell-size: 32px;
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
}
|
|
41
|
+
.avatar-cell--size-40 {
|
|
42
|
+
--avatar-cell-size: 40px;
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
}
|
|
45
|
+
.avatar-cell--size-48 {
|
|
46
|
+
--avatar-cell-size: 48px;
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
}
|
|
34
49
|
|
|
35
50
|
@each $index, $background in map.get(palettes.$palettes, 'avatar-cell') {
|
|
36
|
-
.avatar-cell--#{$index} {
|
|
51
|
+
.avatar-cell--#{$index} {
|
|
52
|
+
--avatar-cell-background: #{$background};
|
|
53
|
+
}
|
|
37
54
|
}
|
|
38
55
|
|
|
39
56
|
// Keep host responsive-image and content-spacing rules out of the avatar.
|
package/avatar/index.d.ts
CHANGED
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { h } from '../_vendor/preact/src/index';
|
|
2
|
+
export { AVATAR_CELL_BACKGROUNDS } from '../color-palette/common-palettes';
|
|
3
|
+
export type AvatarTemplateOptions = {
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
index?: number;
|
|
7
|
+
initials?: string;
|
|
8
|
+
key?: string | number;
|
|
9
|
+
label?: string;
|
|
10
|
+
rectangular?: boolean;
|
|
11
|
+
size?: number;
|
|
12
|
+
style?: Record<string, string | number | null | undefined>;
|
|
13
|
+
value?: unknown;
|
|
14
|
+
};
|
|
15
|
+
/** Shared Preact avatar, including image-error fallback. */
|
|
16
|
+
export declare function AvatarElement({ options, }: {
|
|
17
|
+
options?: AvatarTemplateOptions;
|
|
18
|
+
}): h.JSX.Element;
|
|
19
|
+
export declare function createAvatarElement(document: Document, options?: AvatarTemplateOptions): HTMLSpanElement;
|
|
20
|
+
export declare function getAvatarCellBackground(index?: number): "linear-gradient(135deg, #7dd3fc, #2563eb)" | "linear-gradient(135deg, #facc15, #b45309)" | "linear-gradient(135deg, #f9a8d4, #be185d)" | "linear-gradient(135deg, #a5b4fc, #4f46e5)" | "linear-gradient(135deg, #86efac, #15803d)" | "linear-gradient(135deg, #fda4af, #be123c)" | "linear-gradient(135deg, #c4b5fd, #7c3aed)" | "linear-gradient(135deg, #fdba74, #c2410c)";
|
|
21
|
+
export declare function getAvatarInitials(value: unknown): string;
|
|
22
|
+
export declare function getAvatarIndex(value: unknown): number;
|
|
23
|
+
export declare function avatarTemplate(h: any, options?: AvatarTemplateOptions): any;
|
|
24
|
+
/** Shared avatar-and-label presentation; resource/row lookup stays with consumers. */
|
|
25
|
+
export declare function avatarWithTextTemplate(h: any, options?: AvatarTemplateOptions): any;
|
package/avatar/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i as e } from "../_chunks/hooks.module-CG3gN83z.js";
|
|
2
2
|
import { t } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
|
|
3
3
|
import { createPreactElement as n } from "../preact-mount.js";
|
|
4
|
-
import { t as r } from "../_chunks/tooltip-text-
|
|
4
|
+
import { t as r } from "../_chunks/tooltip-text-BN5WdGHn.js";
|
|
5
5
|
import { AVATAR_CELL_BACKGROUNDS as i } from "../color-palette/common-palettes.js";
|
|
6
|
-
//#region
|
|
6
|
+
//#region package/avatar/index.tsx
|
|
7
7
|
function a({ options: n = {} }) {
|
|
8
8
|
let [a, o] = e(!1), { index: s = 0, initials: u, rectangular: f = !1, size: p, value: m } = n, h = [
|
|
9
9
|
"avatar-cell",
|
package/badge.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export interface BadgeOptions {
|
|
|
4
4
|
shape?: 'pill' | 'rounded';
|
|
5
5
|
}
|
|
6
6
|
/** Shared presentation for inline badges across framework adapters. */
|
|
7
|
-
export declare function badgeClassName({ variant, shape }?: BadgeOptions): string;
|
|
7
|
+
export declare function badgeClassName({ variant, shape, }?: BadgeOptions): string;
|
package/badge.js
CHANGED
package/badge.view.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, ComponentChildren } from './_vendor/preact/src/index';
|
|
2
2
|
import { BadgeOptions } from './badge';
|
|
3
3
|
/** Shared badge presentation, independent of toolbar and form controls. */
|
|
4
|
-
export declare function Badge({ children, className, variant, shape }: BadgeOptions & {
|
|
4
|
+
export declare function Badge({ children, className, variant, shape, }: BadgeOptions & {
|
|
5
5
|
children?: ComponentChildren;
|
|
6
6
|
className?: string;
|
|
7
7
|
label?: string;
|
|
@@ -1,49 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
1
|
+
.brush-range {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-width: 0;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.brush-range__range {
|
|
9
|
+
margin: 0;
|
|
10
|
+
gap: 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Keep chart tooltips above the interactive range-control layer when they
|
|
14
|
+
// overflow below a line or area chart.
|
|
15
|
+
.brush-range__chart {
|
|
16
|
+
z-index: 2;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.brush-range__controls {
|
|
20
|
+
margin-top: 12px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.brush-range__labels {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: 12px;
|
|
28
|
+
margin-top: 11px;
|
|
29
|
+
color: var(--rv-brush-muted, var(--rv-ui-text-muted));
|
|
30
|
+
font:
|
|
31
|
+
12px/18px ui-monospace,
|
|
32
|
+
SFMono-Regular,
|
|
33
|
+
Menlo,
|
|
34
|
+
Consolas,
|
|
35
|
+
monospace;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.brush-range__label {
|
|
39
|
+
min-width: 0;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
text-overflow: ellipsis;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.brush-range__label--end {
|
|
46
|
+
text-align: end;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.brush-range__selection {
|
|
50
|
+
color: var(--rv-brush-accent, var(--rv-ui-accent-text, var(--rv-ui-accent)));
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
text-align: center;
|
|
53
|
+
white-space: normal;
|
|
54
|
+
overflow-wrap: anywhere;
|
|
55
|
+
}
|
|
@@ -7,11 +7,9 @@ export interface BrushRangeProps {
|
|
|
7
7
|
readonly startLabel: ComponentChildren;
|
|
8
8
|
readonly selectionLabel: ComponentChildren;
|
|
9
9
|
readonly endLabel: ComponentChildren;
|
|
10
|
-
/** Retains the established filter-specific selectors while sharing the markup owner. */
|
|
11
|
-
readonly legacyClassPrefix?: string;
|
|
12
10
|
}
|
|
13
11
|
/**
|
|
14
12
|
* Shared presentation for distribution-backed brush filters. Domain editors own
|
|
15
13
|
* the chart data and translate slider positions to their filter conditions.
|
|
16
14
|
*/
|
|
17
|
-
export declare function BrushRange({ chart, slider, startLabel, selectionLabel, endLabel,
|
|
15
|
+
export declare function BrushRange({ chart, slider, startLabel, selectionLabel, endLabel, }: BrushRangeProps): h.JSX.Element;
|