@revolist/ui 4.0.4-rc → 4.0.5-rc

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.
Files changed (192) hide show
  1. package/OWNERSHIP.md +1 -1
  2. package/README.md +16 -0
  3. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  4. package/_chunks/badge.view-D30pMUfi.js +14 -0
  5. package/_chunks/calculator-CDWOuAcp.js +4 -0
  6. package/_chunks/{calendar-xpZ0v3xf.js → calendar-DsXIhybL.js} +19 -19
  7. package/_chunks/chart-frame-CuZABXVI.js +141 -0
  8. package/_chunks/check-BwI7iCAm.js +4 -0
  9. package/_chunks/choice-chips-BhP8MZjs.js +126 -0
  10. package/_chunks/{color-palette-D8vyPfld.js → color-palette-DMJUChWC.js} +20 -22
  11. package/_chunks/color-picker-B4TQvxxB.js +143 -0
  12. package/_chunks/{component-C_T2VN5u.js → component-qKctqdzk.js} +281 -265
  13. package/_chunks/configurator-actions-C19O1rda.js +155 -0
  14. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  15. package/_chunks/{control-AHKXD5Eu.js → control-BkWukVt9.js} +13 -13
  16. package/_chunks/{controls-DsNi8V8I.js → controls-BLQnWEd7.js} +147 -155
  17. package/_chunks/{date-control-DrVFX13g.js → date-control-Cgw5PwlZ.js} +1 -1
  18. package/_chunks/date-time-B8rK5gpC.js +784 -0
  19. package/_chunks/{dialog.parts-CKGkC5zP.js → dialog.parts-BSbvnEwX.js} +21 -21
  20. package/_chunks/{duration-CL68Em0o.js → duration-DwFXonEV.js} +1 -4
  21. package/_chunks/editor-popup-BaaxL89T.js +81 -0
  22. package/_chunks/field-configurator-1eQP0tKy.js +223 -0
  23. package/_chunks/icon-toolbar-xbqa0hu9.js +128 -0
  24. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  25. package/_chunks/minus-BOAR3A1C.js +4 -0
  26. package/_chunks/mount-D1i5DLRn.js +266 -0
  27. package/_chunks/native-control-DO0d1kgx.js +636 -0
  28. package/_chunks/{number-input-BKwA5FnM.js → number-input-s9ddPwX6.js} +7 -7
  29. package/_chunks/{picker-h1P5RUgp.js → picker-AY05b41W.js} +2 -2
  30. package/_chunks/plus-CbGRkIGl.js +4 -0
  31. package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
  32. package/_chunks/{popup-CT2uD3go.js → popup-UXGCiv3n.js} +97 -97
  33. package/_chunks/{rating-choice-DZgmaic0.js → rating-choice-BEs_QFZC.js} +1 -1
  34. package/_chunks/{reorder-list-CSlqAGHw.js → reorder-list-A49l172e.js} +1 -1
  35. package/_chunks/request-trail-DCOfa5zw.js +753 -0
  36. package/_chunks/rich-text-xfMWadGi.js +842 -0
  37. package/_chunks/rotate-left-BF6G883o.js +4 -0
  38. package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
  39. package/_chunks/tooltip-D4xkio5G.js +54 -0
  40. package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
  41. package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
  42. package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
  43. package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
  44. package/ai/_chat.scss +28 -3
  45. package/ai/_style.scss +55 -2
  46. package/ai/chat.d.ts +3 -1
  47. package/ai/components.d.ts +13 -2
  48. package/ai/index.d.ts +1 -0
  49. package/ai/index.js +3 -3
  50. package/ai/mount.d.ts +17 -1
  51. package/ai/results/_style.scss +80 -0
  52. package/ai/results/index.d.ts +11 -0
  53. package/ai/results/metrics.d.ts +5 -0
  54. package/ai/results/table.d.ts +5 -0
  55. package/ai/results/text.d.ts +5 -0
  56. package/ai/results/types.d.ts +29 -0
  57. package/ai/transcript.d.ts +2 -0
  58. package/ai/translations.d.ts +1 -1
  59. package/assignee/index.js +2 -2
  60. package/avatar/index.js +32 -31
  61. package/badge.view.d.ts +8 -0
  62. package/brush-range/component.js +28 -27
  63. package/buttons/svg-button.d.ts +1 -1
  64. package/buttons/svg-button.js +16 -16
  65. package/calendar/_calendar.scss +2 -2
  66. package/calendar/calendar.js +1 -1
  67. package/calendar/index.js +2 -2
  68. package/choice-chips/index.d.ts +3 -1
  69. package/choice-chips/index.js +1 -1
  70. package/color-palette/color-palette.js +1 -1
  71. package/color-palette/color-palette.style.scss +1 -1
  72. package/color-palette/color-picker.js +2 -2
  73. package/component-catalog.d.ts +6 -1
  74. package/configurator-actions.d.ts +67 -0
  75. package/configurator-actions.js +1 -0
  76. package/configurator-aggregation-list.d.ts +14 -0
  77. package/configurator-aggregation-list.js +61 -0
  78. package/configurator-drop-zone.d.ts +38 -0
  79. package/configurator-drop-zone.js +64 -0
  80. package/configurator-field-icon.d.ts +10 -0
  81. package/configurator-field-icon.js +1 -0
  82. package/configurator-focus.d.ts +4 -0
  83. package/configurator-focus.js +39 -0
  84. package/configurator-sections.d.ts +42 -0
  85. package/configurator-sections.js +71 -0
  86. package/control-presentation.js +24 -19
  87. package/controls.d.ts +1 -2
  88. package/controls.js +4 -3
  89. package/core/editor-popup.js +1 -1
  90. package/core/popover-controller.d.ts +35 -0
  91. package/core/popup-ownership.d.ts +2 -0
  92. package/core/title-tooltip.d.ts +2 -0
  93. package/core/tooltip-session.d.ts +29 -0
  94. package/core/tooltip-surface.d.ts +13 -0
  95. package/core/tooltip-text.d.ts +6 -0
  96. package/core/tooltip.d.ts +35 -0
  97. package/core/top-layer-popup.d.ts +4 -0
  98. package/core/top-layer-popup.js +1 -23
  99. package/date-time/index.js +1 -1
  100. package/date-time/style.scss +50 -7
  101. package/date-time/time-selection.d.ts +3 -1
  102. package/dialog/dialog.dom.js +8 -8
  103. package/dialog/dialog.parts.js +1 -1
  104. package/distribution-chart/_distribution-chart.scss +1 -57
  105. package/distribution-chart/area-chart.js +1 -1
  106. package/distribution-chart/bar-chart.js +1 -1
  107. package/distribution-chart/line-chart.js +1 -1
  108. package/dropdown/content.js +1 -1
  109. package/dropdown/control.js +1 -1
  110. package/dropdown/index.js +2 -2
  111. package/dropdown/lookup-field.js +2 -1
  112. package/dropdown/popup.d.ts +2 -2
  113. package/dropdown/popup.js +1 -1
  114. package/duration/index.js +1 -1
  115. package/editor-actions.js +1 -1
  116. package/field-configurator.d.ts +19 -0
  117. package/field-configurator.js +4 -170
  118. package/field-expansion.d.ts +9 -0
  119. package/filter/filters/slider/_slider.scss +0 -17
  120. package/filter/filters/slider/control.js +2 -0
  121. package/filter/filters/slider/runtime.js +49 -22
  122. package/filter/filters/slider/single.js +1 -1
  123. package/filter-badge.js +1 -1
  124. package/filter-controls.js +1 -1
  125. package/form-controls/index.js +6 -6
  126. package/form-controls/presentation.js +12 -12
  127. package/formatting/control-tooltip.d.ts +2 -27
  128. package/formatting/index.js +22 -21
  129. package/formatting/styles.scss +2 -47
  130. package/framework.js +215 -208
  131. package/history-controls.js +27 -1
  132. package/icon-toolbar.d.ts +58 -0
  133. package/icon-toolbar.js +1 -0
  134. package/masked-input/index.js +1 -1
  135. package/native-control.d.ts +1 -2
  136. package/native-control.js +1 -1
  137. package/native-styles.css +1 -1
  138. package/native.js +45 -42
  139. package/number-input/index.js +1 -1
  140. package/package.json +36 -1
  141. package/pagination.js +1 -1
  142. package/pdf-viewer/index.js +1 -1
  143. package/pickers.d.ts +5 -1
  144. package/preact-mount.js +1 -1
  145. package/preact.d.ts +7 -0
  146. package/preact.js +68 -61
  147. package/rating-choice.js +1 -1
  148. package/react.d.ts +5 -0
  149. package/react.js +67 -65
  150. package/reorder-list.js +1 -1
  151. package/resource-picker/resource-picker-popup.js +1 -1
  152. package/resource-picker/resource-picker.js +4 -4
  153. package/rich-text/engine.d.ts +1 -0
  154. package/rich-text/format-html.d.ts +2 -0
  155. package/rich-text/index.d.ts +4 -0
  156. package/rich-text/index.js +1 -1
  157. package/rich-text/model.d.ts +2 -0
  158. package/rich-text/style.scss +165 -70
  159. package/rich-text/syntax.d.ts +5 -0
  160. package/rich-text/translations.d.ts +2 -0
  161. package/select.d.ts +3 -1
  162. package/select.js +1 -1
  163. package/status-feedback/exit-snapshot.js +4 -4
  164. package/status-feedback/popover.js +4 -4
  165. package/styles/_compositions.scss +3 -3
  166. package/styles/_field-configurator.scss +146 -0
  167. package/styles/_fields-grid.scss +35 -0
  168. package/styles/_primitives.scss +25 -18
  169. package/styles/configurator-actions.scss +141 -0
  170. package/styles/legacy-pagination.css +19 -2
  171. package/styles.css +1 -1
  172. package/surfaces.d.ts +3 -0
  173. package/surfaces.js +34 -131
  174. package/surfaces.view.d.ts +4 -34
  175. package/svelte.js +1 -1
  176. package/switch/index.js +15 -14
  177. package/time-grid.js +37 -36
  178. package/timeline-track/index.js +2 -2
  179. package/ui.css +1 -1
  180. package/vue.d.ts +24 -9
  181. package/vue.js +118 -116
  182. package/_chunks/chart-frame-Cmc7xU1i.js +0 -130
  183. package/_chunks/choice-chips-CHQTUdLs.js +0 -110
  184. package/_chunks/color-picker-CudqPYZo.js +0 -138
  185. package/_chunks/control-tooltip-uscKfAnV.js +0 -100
  186. package/_chunks/date-time-qIhp5vaX.js +0 -768
  187. package/_chunks/editor-popup-WDdtVDNA.js +0 -81
  188. package/_chunks/history-controls-B3u3INEK.js +0 -27
  189. package/_chunks/mount-DQ1cpppK.js +0 -257
  190. package/_chunks/native-control-C_yok8_-.js +0 -605
  191. package/_chunks/request-trail-DSlFix6i.js +0 -618
  192. package/_chunks/rich-text-CH7gIqOS.js +0 -636
@@ -1,117 +1,212 @@
1
+ @use '../styles/filter-controls';
2
+
1
3
  .rv-rich-text-editor {
2
- width: min(560px, calc(100vw - 48px));
4
+ box-sizing: border-box;
5
+ width: min(560px, 100%);
6
+ max-width: calc(100vw - 48px);
7
+ min-width: 0;
3
8
  &__toolbar {
4
9
  display: flex;
5
10
  flex-wrap: wrap;
6
11
  align-items: center;
7
- gap: 6px;
8
- padding-block: 8px;
9
- margin-block: 8px;
10
- border-block: 1px solid var(--rv-ui-border);
11
- .rv-toolbar-group { gap: 2px; padding: 0; }
12
- .rv-toolbar-separator { align-self: stretch; height: auto; }
12
+ gap: 8px;
13
+ margin-block: 10px;
14
+ .rv-icon-toolbar { flex: 0 0 auto; }
13
15
  }
14
- &__command {
15
- display: inline-flex;
16
+ .rv-editor-actions {
17
+ display: flex;
18
+ flex-wrap: wrap;
16
19
  align-items: center;
17
- justify-content: center;
18
- gap: 2px;
19
- min-width: 30px;
20
- min-height: 30px;
21
- padding: 6px;
22
- border-color: transparent;
20
+ gap: 8px;
21
+ margin-block-start: 12px;
23
22
  }
24
- &__level { --rv-icon-size: 9px; }
25
23
  &__link {
26
24
  display: flex;
25
+ flex-wrap: wrap;
27
26
  gap: 8px;
27
+ margin-block-end: 8px;
28
+ input { flex: 1; min-width: 0; }
28
29
  }
29
30
  &__visual,
30
31
  &__source {
31
32
  box-sizing: border-box;
32
33
  width: 100%;
33
- min-height: 200px;
34
+ min-height: 220px;
34
35
  max-height: 50vh;
35
36
  overflow: auto;
36
- padding: 10px;
37
+ padding: 16px;
37
38
  border: 1px solid var(--rv-ui-border);
38
39
  border-radius: 6px;
39
40
  background: var(--rv-ui-surface);
40
41
  color: var(--rv-ui-text);
41
- font: inherit;
42
- white-space: pre-wrap;
42
+ font-family: inherit;
43
+ font-size: 14px;
44
+ line-height: 1.6;
45
+ text-align: start;
46
+ overflow-wrap: anywhere;
47
+ &:focus-visible { outline: 2px solid var(--rv-ui-accent); outline-offset: 2px; }
43
48
  }
44
49
  &__source {
45
- font-family: ui-monospace, monospace;
46
- }
47
- &__visual[hidden] {
48
- display: none;
49
- }
50
- &__visual a {
51
- color: var(--rv-ui-accent-text);
52
- text-decoration: underline;
53
- }
54
- &__visual pre {
55
- background: var(--rv-ui-surface-sunken);
56
- padding: 8px;
57
- }
58
- &__visual blockquote {
59
- border-inline-start: 3px solid var(--rv-ui-border);
60
- padding-inline-start: 12px;
61
- margin-inline: 0;
62
- }
63
- &__visual code {
64
- font-family: ui-monospace, monospace;
65
- background: var(--rv-ui-surface-sunken);
50
+ margin-block-start: 12px;
51
+ min-height: 0;
52
+ max-height: none;
53
+ padding: 0;
54
+ overflow: hidden;
55
+ &:focus-within { outline: 2px solid var(--rv-ui-accent); outline-offset: 2px; box-shadow: none; }
56
+ .rv-highlighted-input__highlight,
57
+ textarea.rv-highlighted-input__input {
58
+ padding: 16px;
59
+ font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
60
+ letter-spacing: normal;
61
+ white-space: pre;
62
+ overflow-wrap: normal;
63
+ tab-size: 2;
64
+ text-align: start;
65
+ }
66
+ .rv-highlighted-input__highlight {
67
+ position: absolute;
68
+ inset: 0;
69
+ height: 100%;
70
+ min-height: 0;
71
+ overflow: hidden;
72
+ }
73
+ textarea.rv-highlighted-input__input {
74
+ position: relative;
75
+ inset: auto;
76
+ display: block;
77
+ height: 220px;
78
+ min-height: 220px;
79
+ max-height: 50vh;
80
+ resize: vertical;
81
+ overflow: auto;
82
+ color: transparent;
83
+ -webkit-text-fill-color: transparent;
84
+ caret-color: var(--rv-ui-text);
85
+ }
86
+ }
87
+ &__visual[hidden] { display: none; }
88
+ &__visual {
89
+ white-space: pre-wrap;
90
+ p, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol {
91
+ margin: 0 0 0.75em;
92
+ }
93
+ > :first-child { margin-block-start: 0; }
94
+ > :last-child { margin-block-end: 0; }
95
+ p { font: inherit; }
96
+ h1, h2, h3, h4, h5, h6 {
97
+ margin-block-start: 1em;
98
+ font-family: inherit;
99
+ font-weight: 650;
100
+ line-height: 1.3;
101
+ letter-spacing: normal;
102
+ color: inherit;
103
+ }
104
+ h1 { font-size: 1.65em; }
105
+ h2 { font-size: 1.3em; }
106
+ h3, h4, h5, h6 { font-size: 1.1em; }
107
+ strong { font-weight: 700; }
108
+ em { font-style: italic; }
109
+ s { text-decoration: line-through; }
110
+ ul, ol { padding-inline-start: 1.75em; list-style-position: outside; }
111
+ ul { list-style-type: disc; }
112
+ ol { list-style-type: decimal; }
113
+ li { margin-block: 0.25em; padding-inline-start: 0.15em; }
114
+ li > p { margin-block: 0; }
115
+ li > ul, li > ol { margin-block: 0.25em 0; }
116
+ blockquote {
117
+ border-inline-start: 3px solid var(--rv-ui-border);
118
+ padding-inline-start: 14px;
119
+ margin-inline: 0;
120
+ color: var(--rv-ui-text-muted, var(--rv-ui-text));
121
+ > :last-child { margin-block-end: 0; }
122
+ }
123
+ code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
124
+ code { background: var(--rv-ui-surface-sunken); padding: 0.12em 0.3em; border-radius: 3px; font-size: 0.92em; }
125
+ pre {
126
+ background: var(--rv-ui-surface-sunken);
127
+ border: 1px solid var(--rv-ui-border);
128
+ border-radius: 6px;
129
+ padding: 12px 14px;
130
+ font-size: 0.92em;
131
+ font-weight: 400;
132
+ line-height: 1.6;
133
+ white-space: pre-wrap;
134
+ tab-size: 2;
135
+ code { padding: 0; background: none; border-radius: 0; font: inherit; }
136
+ }
137
+ a { color: var(--rv-ui-accent-text); text-decoration: underline; text-underline-offset: 2px; }
138
+ }
139
+ &__help {
140
+ margin: 8px 0 12px;
141
+ color: var(--rv-ui-text-muted, var(--rv-ui-text));
142
+ font-size: 12px;
143
+ line-height: 1.5;
66
144
  }
67
145
  }
68
146
 
69
147
  .rv-rich-text-cell {
148
+ box-sizing: border-box;
149
+ max-height: 100%;
70
150
  color: inherit;
71
151
  font: inherit;
152
+ // Core uses row height as line-height to center plain cells. Rich blocks need
153
+ // text-sized lines so paragraphs, quotes and lists fit inside taller rows.
154
+ line-height: 1.5;
155
+ padding-block: min(8px, max(0px, calc((var(--rg-theme-row-size, 27px) - 1.5em) / 2)));
72
156
  white-space: pre-wrap;
157
+ overflow-wrap: anywhere;
73
158
  overflow: hidden;
74
- p,
75
- h1,
76
- h2,
77
- h3,
78
- h4,
79
- h5,
80
- h6,
81
- pre,
82
- blockquote,
83
- ul,
84
- ol {
85
- margin-block: 0;
159
+ p, h1, h2, h3, h4, h5, h6, pre, blockquote, ul, ol {
160
+ margin: 0 0 0.35em;
161
+ &:last-child { margin-block-end: 0; }
86
162
  }
87
- h1,
88
- h2,
89
- h3,
90
- h4,
91
- h5,
92
- h6 {
163
+ p { font: inherit; }
164
+ h1, h2, h3, h4, h5, h6 {
165
+ font-family: inherit;
93
166
  font-size: inherit;
94
167
  font-weight: 600;
168
+ line-height: inherit;
169
+ color: inherit;
95
170
  }
96
- ul,
97
- ol {
98
- padding-inline-start: 1.5em;
99
- }
171
+ strong { font-weight: 700; }
172
+ em { font-style: italic; }
173
+ s { text-decoration: line-through; }
174
+ ul, ol { padding-inline-start: 1.5em; list-style-position: outside; }
175
+ ul { list-style-type: disc; }
176
+ ol { list-style-type: decimal; }
177
+ li > p { margin-block: 0; }
178
+ li > ul, li > ol { margin-block: 0.15em 0; }
100
179
  blockquote {
101
- border-inline-start: 2px solid currentColor;
102
- padding-inline-start: 8px;
180
+ border-inline-start: 2px solid var(--rv-ui-border, GrayText);
181
+ padding-inline-start: 10px;
103
182
  margin-inline: 0;
183
+ color: var(--rv-ui-text-muted, inherit);
104
184
  }
105
185
  a {
106
- color: inherit;
186
+ color: var(--rv-ui-accent-text, LinkText);
107
187
  text-decoration: underline;
108
188
  text-underline-offset: 2px;
189
+ text-decoration-thickness: 1px;
190
+ &:focus-visible { outline: 2px solid var(--rv-ui-accent, Highlight); outline-offset: 2px; border-radius: 2px; }
109
191
  }
110
- code {
111
- font-family: ui-monospace, monospace;
112
- font-size: 0.9em;
113
- }
192
+ code, pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9em; }
193
+ code { background: var(--rv-ui-surface-sunken); padding-inline: 0.2em; border-radius: 3px; }
114
194
  pre {
115
195
  white-space: pre-wrap;
196
+ background: var(--rv-ui-surface-sunken);
197
+ padding: 3px 6px;
198
+ border-radius: 3px;
199
+ line-height: 1.5;
200
+ tab-size: 2;
201
+ code { font: inherit; background: none; padding: 0; }
116
202
  }
117
203
  }
204
+
205
+ .rv-html-syntax {
206
+ font: inherit;
207
+ color: var(--rv-ui-text);
208
+ &__tag { color: var(--rv-ui-accent-text); }
209
+ &__attribute { color: var(--rv-ui-warning, var(--rv-ui-accent-text)); }
210
+ &__string { color: var(--rv-ui-success); }
211
+ &__comment { color: var(--rv-ui-text-muted); }
212
+ }
@@ -0,0 +1,5 @@
1
+ import { h } from '../_vendor/preact/src/index';
2
+ /** Paint HTML source as escaped text; source is never interpreted as markup. */
3
+ export declare function HtmlSyntax({ code }: {
4
+ code: string;
5
+ }): h.JSX.Element;
@@ -1,5 +1,7 @@
1
1
  /** Visible and accessible labels for the shared HTML editor. */
2
2
  export interface HtmlEditorText {
3
+ keyboardHelp?: string;
4
+ codeHelp?: string;
3
5
  visual: string;
4
6
  source: string;
5
7
  label: string;
package/select.d.ts CHANGED
@@ -1,8 +1,10 @@
1
1
  import { ComponentChildren, JSX } from './_vendor/preact/src/index';
2
- import { DropdownOption } from './dropdown/dropdown.types';
2
+ import { DropdownEnvironment, DropdownOption } from './dropdown/dropdown.types';
3
3
  export type SelectOptionProps = JSX.IntrinsicElements['option'];
4
4
  type Attributes = Omit<JSX.IntrinsicElements['select'], 'value' | 'defaultValue' | 'onChange' | 'onInput' | 'multiple' | 'ref'>;
5
5
  export type SelectProps = Attributes & {
6
+ /** Optional host integration for portalled popup lifecycle and pointer releases. */
7
+ environment?: DropdownEnvironment;
6
8
  value?: string | number | readonly string[];
7
9
  defaultValue?: string | number | readonly string[];
8
10
  /** Optional domain policy for option descriptors; no native option nodes are mounted. */
package/select.js CHANGED
@@ -1 +1 @@
1
- export { s as Select, c as selectOptions } from "./_chunks/native-control-C_yok8_-.js";
1
+ export { s as Select, c as selectOptions } from "./_chunks/native-control-DO0d1kgx.js";
@@ -1,10 +1,10 @@
1
- import { isUiMotionEnabled as e } from "../core/motion.js";
2
- import { showTopLayerPopup as t } from "../core/top-layer-popup.js";
1
+ import { r as e } from "../_chunks/top-layer-popup-CNSDdfJV.js";
2
+ import { isUiMotionEnabled as t } from "../core/motion.js";
3
3
  import { animateStatusFeedback as n } from "./motion.js";
4
4
  //#region src/status-feedback/exit-snapshot.ts
5
5
  function r(r) {
6
6
  let i = r.ownerDocument.defaultView;
7
- if (!i || typeof r.animate != "function" || !e(r)) return;
7
+ if (!i || typeof r.animate != "function" || !t(r)) return;
8
8
  let a = r.getBoundingClientRect(), o = r.cloneNode(!0), s = [r, ...r.querySelectorAll("*")], c = [o, ...o.querySelectorAll("*")];
9
9
  o.removeAttribute("popover"), o.removeAttribute("id"), o.querySelectorAll("[id]").forEach((e) => e.removeAttribute("id")), o.querySelectorAll("[role], [aria-live]").forEach((e) => {
10
10
  e.removeAttribute("role"), e.removeAttribute("aria-live");
@@ -24,7 +24,7 @@ function r(r) {
24
24
  borderColor: l.borderColor,
25
25
  fontFamily: l.fontFamily,
26
26
  boxShadow: l.boxShadow
27
- }), r.ownerDocument.body.append(o), t(o), s.forEach((e, t) => {
27
+ }), r.ownerDocument.body.append(o), e(o), s.forEach((e, t) => {
28
28
  e.scrollTop && (c[t].scrollTop = e.scrollTop), e.scrollLeft && (c[t].scrollLeft = e.scrollLeft);
29
29
  });
30
30
  let u = () => {
@@ -1,6 +1,6 @@
1
1
  import { calculateAnchoredPopoverPosition as e } from "../core/anchored-popover.js";
2
- import { inheritUiMotion as t } from "../core/motion.js";
3
- import { hideTopLayerPopup as n, showTopLayerPopup as r } from "../core/top-layer-popup.js";
2
+ import { r as t, t as n } from "../_chunks/top-layer-popup-CNSDdfJV.js";
3
+ import { inheritUiMotion as r } from "../core/motion.js";
4
4
  import { statusFeedbackSize as i } from "./placement.js";
5
5
  import { animateStatusFeedback as a } from "./motion.js";
6
6
  import { statusFeedbackExit as o } from "./exit-snapshot.js";
@@ -58,9 +58,9 @@ var s = 0, c = class {
58
58
  width: s.innerWidth,
59
59
  height: s.innerHeight
60
60
  }, c, this.collapsed, this.options), u = l.width;
61
- n.style.width = `${u}px`, n.style.maxHeight = `${l.maxHeight}px`, this.releaseMotion ??= t(o, n);
61
+ n.style.width = `${u}px`, n.style.maxHeight = `${l.maxHeight}px`, this.releaseMotion ??= r(o, n);
62
62
  let d = !this.mode;
63
- d && (this.removeExit?.(), this.removeExit = void 0, this.mode = r(n));
63
+ d && (this.removeExit?.(), this.removeExit = void 0, this.mode = t(n));
64
64
  let f = o.getBoundingClientRect(), p = e({
65
65
  left: f.right - u,
66
66
  right: f.right,
@@ -23,12 +23,12 @@
23
23
  .rv-field__error { color: var(--rv-ui-danger); font-size: 12px; }
24
24
  .rv-panel, .rv-empty-state { padding: 16px; border: 1px solid var(--rv-ui-border); border-radius: var(--rv-ui-radius, 8px); background: var(--rv-ui-surface); color: var(--rv-ui-text); }
25
25
  .rv-empty-state { text-align: center; }
26
- .rv-popover, .rv-menu, .rv-tooltip { border: 1px solid var(--rv-ui-border); border-radius: var(--rv-ui-radius, 8px); background: var(--rv-ui-surface-elevated); color: var(--rv-ui-text); box-shadow: 0 8px 24px var(--rv-ui-shadow); padding: 8px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; z-index: 10000; }
26
+ .rv-popover, .rv-menu { border: 1px solid var(--rv-ui-border); border-radius: var(--rv-ui-radius, 8px); background: var(--rv-ui-surface-elevated); color: var(--rv-ui-text); box-shadow: 0 8px 24px var(--rv-ui-shadow); padding: 8px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; z-index: 10000; }
27
27
  .rv-popover[hidden] { display: none; }
28
28
  .rv-menu { display: grid; gap: 2px; }
29
29
  .rv-menu > [role='menuitem'] { justify-content: start; text-align: start; }
30
30
  .rv-menu-separator { border-block-start: 1px solid var(--rv-ui-border); margin-block: 4px; }
31
- .rv-tooltip { font-size: 12px; padding: 6px 10px; pointer-events: none; }
31
+
32
32
  .rv-radio-group { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; margin: 0; }
33
33
  .rv-radio-group label { display: inline-flex; align-items: center; gap: 6px; }
34
34
  .rv-loading-container { position: relative; }
@@ -38,7 +38,7 @@
38
38
 
39
39
  .rv-circular-progress { width: 36px; height: 36px; stroke-width: 3; color: var(--rv-ui-accent); }
40
40
  .rv-resize-handle { position: relative; width: 12px; min-height: 48px; flex: 0 0 12px; cursor: col-resize; touch-action: none; user-select: none; }
41
- .rv-resize-handle::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 5px; width: 2px; border-radius: 2px; background: var(--rv-ui-border-strong); transition: background-color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1)); }
41
+ .rv-resize-handle::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 5px; width: 1px; border-radius: 2px; background: var(--rv-ui-border); transition: background-color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, cubic-bezier(.2, 0, 0, 1)); }
42
42
  .rv-resize-handle:hover::after, .rv-resize-handle:focus-visible::after { background: var(--rv-ui-accent); }
43
43
  .rv-resize-handle:focus-visible { outline: 2px solid var(--rv-ui-accent); }
44
44
  .rv-btn[aria-pressed='true'] { background: var(--rv-ui-selected-bg); color: var(--rv-ui-selected-accent-fg, var(--rv-ui-accent-text)); border-color: transparent; font-weight: 500; }
@@ -1,3 +1,4 @@
1
+ @use './fields-grid';
1
2
  @use './motion';
2
3
  @use './disclosure';
3
4
  @use './icon-action';
@@ -288,3 +289,148 @@ button.rv-configurator-action-button {
288
289
  @media (prefers-reduced-motion: reduce) {
289
290
  .rv-collapsible-section > .rv-configurator-summary svg { transition: none; }
290
291
  }
292
+
293
+ // Product-neutral panel shell; grid bodies remain rendering slots in their adapters.
294
+ .rv-configurator-panel {
295
+ display: flex;
296
+ flex-direction: column;
297
+ gap: 12px;
298
+ min-height: 0;
299
+ min-width: 0;
300
+ box-sizing: border-box;
301
+ .pivot-field-annotation { color: var(--rv-configurator-muted, var(--rv-ui-text-muted)); font-size: 12px; }
302
+ .pivot-filter-active { width: 6px; height: 6px; border-radius: 50%; background: var(--rv-ui-accent); }
303
+ }
304
+
305
+ .rv-configurator-panel--standalone {
306
+ @include presentation;
307
+ --rv-configurator-bg: var(--rv-ui-surface);
308
+ --rv-configurator-surface: var(--rv-ui-field-surface);
309
+ --rv-configurator-text: var(--rv-ui-text);
310
+ --rv-configurator-muted: var(--rv-ui-text-muted);
311
+ --rv-configurator-border: var(--rv-ui-border);
312
+ --rv-configurator-accent: var(--rv-ui-accent);
313
+ --rv-configurator-accent-text: var(--rv-ui-accent);
314
+ flex-shrink: 0;
315
+ max-width: 100%;
316
+ max-height: 100%;
317
+ overflow: auto;
318
+ padding: 8px 16px 16px;
319
+ border: 1px solid var(--rv-ui-border);
320
+ border-radius: 10px;
321
+ background: var(--rv-ui-surface);
322
+ color: var(--rv-ui-text);
323
+ font: 13px/1.5 sans-serif;
324
+ ul { list-style: none; padding: 0; margin: 0; }
325
+ .rv-configurator-library-content > .rv-configurator-field-search { margin: 8px; width: auto; }
326
+ .rv-configurator-icon svg { width: 12px; height: 12px; }
327
+ }
328
+
329
+ // Compact rail presentation is shared by Grid, Pivot and Pivot Charts.
330
+ .rv-configurator-panel__content { display: contents; }
331
+ .rv-configurator-panel__content[hidden] { display: none; }
332
+ .rv-configurator-rail { display: flex; justify-content: flex-end; gap: 8px; }
333
+ .rv-configurator-rail__button.rv-btn {
334
+ position: relative;
335
+ flex: none;
336
+ width: 36px;
337
+ height: 36px;
338
+ padding: 8px;
339
+ justify-content: center;
340
+ }
341
+ .rv-configurator-rail__button .rv-configurator-icon svg { width: 18px; height: 18px; }
342
+ .rv-configurator-rail__count.rv-badge {
343
+ position: absolute;
344
+ inset: -4px -4px auto auto;
345
+ }
346
+ .rv-configurator-panel[data-compact='true'] {
347
+ border: 0;
348
+ border-left: 1px solid var(--rv-ui-border);
349
+ border-radius: 0;
350
+ width: 56px !important;
351
+ min-width: 56px;
352
+ padding: 8px;
353
+ flex: none;
354
+ }
355
+ .rv-configurator-panel[data-compact='true'] > .rv-configurator-rail {
356
+ flex-direction: column;
357
+ align-items: center;
358
+ justify-content: flex-start;
359
+ }
360
+
361
+ // Configurator hosts supply content; shared switches retain all control appearance.
362
+ .rv-configurator-section-tabs.rv-segmented-switch {
363
+ display: flex;
364
+ flex: none;
365
+ width: 100%;
366
+ min-width: 0;
367
+ overflow-x: auto;
368
+ scrollbar-width: none;
369
+ &::-webkit-scrollbar { display: none; }
370
+ > button { flex: 1 0 auto; }
371
+ }
372
+ .rv-configurator-header {
373
+ position: sticky;
374
+ top: 0;
375
+ z-index: 3;
376
+ display: flex;
377
+ flex: none;
378
+ align-items: center;
379
+ justify-content: space-between;
380
+ gap: 8px;
381
+ min-width: 0;
382
+ padding-block: 8px;
383
+ margin-block: -8px 0;
384
+ margin-inline: var(--rv-configurator-header-inline-offset, 0px);
385
+ background: var(--rv-configurator-bg, var(--rv-ui-surface));
386
+ &::before {
387
+ content: '';
388
+ position: absolute;
389
+ inset: -8px -16px 0;
390
+ z-index: -1;
391
+ background: inherit;
392
+ }
393
+ > .rv-segmented-switch { flex: 1 1 0%; width: 0; }
394
+ }
395
+ .rv-configurator-custom-section,
396
+ .rv-configurator-section-content {
397
+ display: flex;
398
+ flex-direction: column;
399
+ flex: 1;
400
+ min-width: 0;
401
+ min-height: 0;
402
+ }
403
+ .rv-configurator-panel:has(> .rv-configurator-panel__content > .rv-configurator-custom-section:not([hidden])) {
404
+ height: 100%;
405
+ min-height: 0;
406
+ }
407
+ .rv-configurator-custom-section[hidden] { display: none; }
408
+
409
+ // A compact icon with a native/shared select hit target; field text stays in its popup.
410
+ .rv-icon-select {
411
+ position: relative;
412
+ display: grid;
413
+ place-items: center;
414
+ width: 28px;
415
+ height: 28px;
416
+ margin: 0;
417
+ border-radius: 6px;
418
+ &:focus-within { outline: 2px solid var(--rv-ui-accent); outline-offset: 2px; }
419
+ &:has(.rv-select-control.disabled) { opacity: .5; }
420
+ &:has(.rv-select-control:hover:not(.disabled)) { background: var(--rv-ui-surface-hover); }
421
+ .dropdown-trigger {
422
+ width: 100%;
423
+ min-width: 0;
424
+ padding: 0;
425
+ .selected-value, .dropdown-arrow { display: none; }
426
+ }
427
+ .rv-select-control {
428
+ position: absolute;
429
+ inset: 0;
430
+ width: 100%;
431
+ min-height: 28px;
432
+ padding: 0;
433
+ opacity: 0;
434
+ cursor: pointer;
435
+ }
436
+ }
@@ -0,0 +1,35 @@
1
+ // Shared Fields-grid presentation. Grid adapters supply rows and policy.
2
+ revo-grid.rv-configurator-fields-grid {
3
+ display: block;
4
+ width: 100%;
5
+ height: 100%;
6
+ min-width: 0;
7
+ border: 0;
8
+ border-radius: 0;
9
+
10
+ revogr-data {
11
+ .rgRow, .groupingRow { box-shadow: none; }
12
+ // Readonly theme rules also paint cell separators. Keep this surface borderless.
13
+ .rgRow .rgCell,
14
+ .rgRow .rgCell.disabled {
15
+ padding-inline: var(--rv-configurator-field-cell-padding, 0);
16
+ background: transparent;
17
+ border: 0;
18
+ box-shadow: none;
19
+ }
20
+ }
21
+
22
+ .rgRow .rv-configurator-field-reorder { display: flex; align-items: center; justify-content: center; }
23
+ .rv-configurator-field-actions { width: 100%; justify-content: flex-end; }
24
+ .rv-configurator-field-drag {
25
+ display: flex;
26
+ align-items: center;
27
+ justify-content: center;
28
+ box-sizing: border-box;
29
+ width: 100%;
30
+ height: 100%;
31
+ min-width: 0;
32
+ cursor: grab;
33
+ .rv-configurator-drag-handle { margin: 0; }
34
+ }
35
+ }
@@ -245,6 +245,14 @@ label.rv-switch-label {
245
245
  .rv-btn-group > .rv-btn:focus-visible {
246
246
  z-index: 1;
247
247
  }
248
+ .rv-btn-group > .rv-btn-group-item:first-child > span {
249
+ border-start-start-radius: calc(var(--rv-ui-radius) - 1px);
250
+ border-end-start-radius: calc(var(--rv-ui-radius) - 1px);
251
+ }
252
+ .rv-btn-group > .rv-btn-group-item:last-child > span {
253
+ border-start-end-radius: calc(var(--rv-ui-radius) - 1px);
254
+ border-end-end-radius: calc(var(--rv-ui-radius) - 1px);
255
+ }
248
256
 
249
257
  .rv-btn-group-item {
250
258
  position: relative;
@@ -385,6 +393,23 @@ label.rv-switch-label {
385
393
  gap: 6px;
386
394
  }
387
395
 
396
+ .rv-choice-chips--scrollable {
397
+ display: flex;
398
+ flex-wrap: nowrap;
399
+ min-width: 0;
400
+ max-width: 100%;
401
+ overflow-x: auto;
402
+ scrollbar-width: none;
403
+ padding-block: 3px;
404
+ --rv-choice-chips-fade-left: 0px;
405
+ --rv-choice-chips-fade-right: 0px;
406
+ mask-image: linear-gradient(to right, transparent, #000 var(--rv-choice-chips-fade-left), #000 calc(100% - var(--rv-choice-chips-fade-right)), transparent);
407
+ &[data-scroll-edges~='left'] { --rv-choice-chips-fade-left: 12px; }
408
+ &[data-scroll-edges~='right'] { --rv-choice-chips-fade-right: 36px; }
409
+ &::-webkit-scrollbar { display: none; }
410
+ > .rv-choice-chip { flex: none; }
411
+ }
412
+
388
413
  .rv-choice-chip {
389
414
  appearance: none;
390
415
  min-height: 29px;
@@ -777,24 +802,6 @@ button.rv-badge--inline {
777
802
  // Square icon controls and their native hover/focus tooltips share one owner.
778
803
  .rv-btn-icon { box-sizing: border-box; flex: none; width: var(--rv-icon-button-size, 32px); height: var(--rv-icon-button-size, 32px); padding: 6px; }
779
804
  .rv-btn-icon[aria-pressed='true'], .rv-btn-icon[data-active='true'] { background: var(--rv-ui-selected-bg); color: var(--rv-ui-selected-fg); }
780
- .rv-control-tooltip { display: none; border: 0; position: absolute; bottom: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%); padding: 6px 9px; border-radius: 6px; white-space: nowrap; font: 12px sans-serif; color: var(--rv-ui-surface); background: var(--rv-ui-text); box-shadow: 0 3px 10px var(--rv-ui-shadow); pointer-events: none; visibility: hidden; z-index: 20; }
781
- .rv-icon-action:hover .rv-control-tooltip:not([data-visible]), .rv-icon-action:focus .rv-control-tooltip:not([data-visible]), .rv-btn-icon:hover .rv-control-tooltip:not([data-visible]), .rv-btn-icon:focus .rv-control-tooltip:not([data-visible]) { display: block; visibility: visible; }
782
- // Anchored tooltips stay outside scrollable surface geometry, including while visible.
783
- @supports (anchor-scope: --rv-control-action) {
784
- .rv-icon-action, .rv-btn-icon {
785
- anchor-name: --rv-control-action;
786
- anchor-scope: --rv-control-action;
787
- }
788
- .rv-control-tooltip {
789
- position: fixed;
790
- position-anchor: --rv-control-action;
791
- inset: auto;
792
- position-area: top;
793
- position-try-fallbacks: top span-left, top span-right;
794
- margin-bottom: 8px;
795
- transform: none;
796
- }
797
- }
798
805
 
799
806
 
800
807
  .rv-btn-icon { position: relative; overflow: visible; }