@revolist/ui 4.0.6-rc → 4.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (339) hide show
  1. package/MIGRATION.md +7 -7
  2. package/OWNERSHIP.md +33 -33
  3. package/README.md +65 -410
  4. package/_button.scss +6 -2
  5. package/_chunks/{arrow-up-Cw8hW9vp.js → arrow-up-BSYhTAus.js} +1 -1
  6. package/_chunks/{calculator-CDWOuAcp.js → calculator-BG0Xd_Uw.js} +1 -1
  7. package/_chunks/{calendar-QWDyYzdo.js → calendar-C4zH4Ppn.js} +7 -7
  8. package/_chunks/{cell-visuals-E-2oEKHg.js → cell-visuals-r6DOOhGh.js} +7 -7
  9. package/_chunks/{chart-frame-hcOlnQ1K.js → chart-frame-DzvJooS2.js} +7 -7
  10. package/_chunks/{check-BwI7iCAm.js → check-BFIC9pge.js} +1 -1
  11. package/_chunks/{chevron-down-GbplLa6s.js → chevron-down-BkrpxJYD.js} +1 -1
  12. package/_chunks/chevron-right-DZ79RmYV.js +4 -0
  13. package/_chunks/{chevron-up-BLuNMPDn.js → chevron-up-Dt846uIR.js} +1 -1
  14. package/_chunks/{choice-chips-A6WR-WJe.js → choice-chips-D2cJju-g.js} +6 -6
  15. package/_chunks/{clock-BOhPNlW3.js → clock-DTfr4p2S.js} +1 -1
  16. package/_chunks/{color-palette-DMJUChWC.js → color-palette-D7AS20M1.js} +5 -5
  17. package/_chunks/{color-picker-BK4W1nd6.js → color-picker-BanAQVfz.js} +8 -8
  18. package/_chunks/{component-CMkF17YZ.js → component-B8SvtSaB.js} +54 -55
  19. package/_chunks/{component-metadata-BKd7U8OW.js → component-metadata-DlVkpW3h.js} +1 -1
  20. package/_chunks/{configurator-actions-By8WSL2m.js → configurator-actions-CvZf5nYp.js} +11 -11
  21. package/_chunks/{configurator-field-icon-CmcM_sPs.js → configurator-field-icon-B0S_208W.js} +2 -2
  22. package/_chunks/{control-mlH7l0Uq.js → control-Dj7IR-i0.js} +4 -4
  23. package/_chunks/{controller-hRBm_Lfz.js → controller-ChkqiANQ.js} +6 -6
  24. package/_chunks/{controls-FUU-MUKC.js → controls-BF6WlGT4.js} +140 -105
  25. package/_chunks/{date-control-Dup_P3w5.js → date-control-BNj2FBF2.js} +8 -8
  26. package/_chunks/{date-time-9z6pAG5T.js → date-time-Ucx1ep76.js} +25 -25
  27. package/_chunks/{delete-button-CW9vjLnk.js → delete-button-DQSK6G-4.js} +2 -2
  28. package/_chunks/{dialog.parts-Bi7YbXqS.js → dialog.parts-BqkmnhIL.js} +7 -7
  29. package/_chunks/{duration-D7oRjsmP.js → duration-BIESsyLI.js} +9 -9
  30. package/_chunks/{editor-commit-Bq3wSgvr.js → editor-commit-BXIUX0As.js} +3 -3
  31. package/_chunks/{editor-popup-ByU7qiub.js → editor-popup-BTmjGg2_.js} +5 -5
  32. package/_chunks/field-configurator-BWZnm3gE.js +288 -0
  33. package/_chunks/field-context-0oUi-w-G.js +5 -0
  34. package/_chunks/{framework-mount-Bk4O_T7T.js → framework-mount-DQ4opSL0.js} +4 -4
  35. package/_chunks/{hooks.module-CG3gN83z.js → hooks.module-CXpO2xq6.js} +2 -2
  36. package/_chunks/{icon-toolbar-DSjOdwM7.js → icon-toolbar-C4J_Wqph.js} +7 -7
  37. package/_chunks/{icons-Ci5mADVc.js → icons-B4qN13Yj.js} +1 -1
  38. package/_chunks/{iso-B0YHBK7m.js → iso-CJQl2kmq.js} +1 -1
  39. package/_chunks/{jsxRuntime.module-F6UFnpT-.js → jsxRuntime.module-ksX_VSbv.js} +2 -2
  40. package/_chunks/{magnifying-glass-CvrTDSkB.js → magnifying-glass-BFZrFs8M.js} +1 -1
  41. package/_chunks/{minus-BOAR3A1C.js → minus-DE8NPK_D.js} +1 -1
  42. package/_chunks/{model-mPO2tG2f.js → model-CFrBgRHm.js} +3 -3
  43. package/_chunks/mount-DTCXtKfT.js +267 -0
  44. package/_chunks/{native-Blr3byjO.js → native-RudS9C_q.js} +3 -3
  45. package/_chunks/{native-control-pFMuHf3G.js → native-control-xc_B4vfn.js} +146 -141
  46. package/_chunks/{number-input-DqXV6vgP.js → number-input-C_TPzAJq.js} +6 -6
  47. package/_chunks/{picker-gEGTu1Ki.js → picker-0h5TwXGT.js} +8 -8
  48. package/_chunks/{plus-CbGRkIGl.js → plus-BaXticu7.js} +1 -1
  49. package/_chunks/{popup-C35Isk7p.js → popup-CISbXDnE.js} +6 -6
  50. package/_chunks/{preact.module-BBM36DnO.js → preact.module-DzTStiZX.js} +1 -1
  51. package/_chunks/{rating-choice-DbxdUJr-.js → rating-choice-FhWNdsiC.js} +4 -4
  52. package/_chunks/{render-m5eMMwFR.js → render-C6PFWlqh.js} +4 -4
  53. package/_chunks/{reorder-list-B0_13Sja.js → reorder-list-CR1DO4EG.js} +5 -5
  54. package/_chunks/{request-trail-CCSK6TJA.js → request-trail-ay92DQpo.js} +155 -146
  55. package/_chunks/{rich-text-5rnc8lpI.js → rich-text-ByjXFv1S.js} +15 -15
  56. package/_chunks/{rotate-left-BF6G883o.js → rotate-left-CTHmcGBP.js} +1 -1
  57. package/_chunks/{rotate-right-Iha5ScJ1.js → rotate-right-BIfKgVun.js} +1 -1
  58. package/_chunks/selection-list-tooltips-DqqLeO_m.js +42 -0
  59. package/_chunks/{title-tooltip-Cw6LOZhb.js → title-tooltip-DKiWhsL7.js} +3 -3
  60. package/_chunks/{tooltip-D4xkio5G.js → tooltip-B5ziciEP.js} +4 -4
  61. package/_chunks/{tooltip-owner-DjdvqKzz.js → tooltip-owner-BYho-vJl.js} +1 -1
  62. package/_chunks/{tooltip-session-B6X6x8G_.js → tooltip-session-D74h-uqu.js} +3 -3
  63. package/_chunks/{tooltip-text-BXsUEmBH.js → tooltip-text-CH_c2J-J.js} +3 -3
  64. package/_chunks/{top-layer-popup-CNSDdfJV.js → top-layer-popup-BHajfliG.js} +4 -4
  65. package/_chunks/{xmark-DD_PBvZI.js → xmark-DQRQfXZI.js} +1 -1
  66. package/_dialog.scss +57 -22
  67. package/_form.scss +71 -21
  68. package/_legend.scss +25 -7
  69. package/_variables.scss +2 -1
  70. package/_view-switcher.scss +6 -0
  71. package/activity-message.d.ts +1 -1
  72. package/activity-message.js +2 -2
  73. package/ai/_chat.scss +7 -0
  74. package/ai/_style.scss +27 -20
  75. package/ai/components.d.ts +3 -1
  76. package/ai/index.js +2 -2
  77. package/ai/mount.d.ts +15 -7
  78. package/ai/request-trail.d.ts +9 -3
  79. package/ai/results/index.d.ts +1 -1
  80. package/ai/translations.d.ts +1 -1
  81. package/angular/angular.d.ts +1 -1
  82. package/angular/angular.js +13 -7
  83. package/assignee/assignee.scss +24 -6
  84. package/assignee/index.js +8 -8
  85. package/avatar/avatar.style.scss +23 -6
  86. package/avatar/index.d.ts +1 -1
  87. package/avatar/index.js +4 -4
  88. package/badge.d.ts +1 -1
  89. package/badge.js +1 -1
  90. package/badge.view.d.ts +1 -1
  91. package/brush-range/_brush-range.scss +55 -49
  92. package/brush-range/component.js +3 -3
  93. package/buttons/delete-button.js +1 -1
  94. package/buttons/delete-button.style.scss +6 -2
  95. package/buttons/remove-button.js +3 -3
  96. package/buttons/svg-button.js +4 -4
  97. package/calendar/_calendar.scss +19 -23
  98. package/calendar/calendar.js +1 -1
  99. package/calendar/day.js +3 -3
  100. package/calendar/header.js +3 -4
  101. package/calendar/index.js +3 -3
  102. package/calendar/model.js +1 -1
  103. package/calendar/month-grid.js +3 -3
  104. package/calendar/translations.js +1 -1
  105. package/calendar/year-grid.js +3 -3
  106. package/cell-input.js +1 -1
  107. package/cell-input.scss +3 -7
  108. package/cell-visuals/badge.style.scss +6 -3
  109. package/cell-visuals/bar-chart.style.scss +2 -1
  110. package/cell-visuals/column-type.style.css +12 -0
  111. package/cell-visuals/index.js +1 -1
  112. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  113. package/cell-visuals/progress-line.style.scss +1 -4
  114. package/cell-visuals/sparkline.style.scss +2 -1
  115. package/cell-visuals/timeline.style.css +4 -2
  116. package/checkbox/checkbox.scss +5 -2
  117. package/checkbox/index.js +2 -2
  118. package/choice-chips/index.js +1 -1
  119. package/color-palette/built-in-palettes.js +1 -1
  120. package/color-palette/chart-palettes.js +1 -1
  121. package/color-palette/color-palette.js +1 -1
  122. package/color-palette/color-palette.style.scss +88 -25
  123. package/color-palette/color-picker.constants.js +1 -1
  124. package/color-palette/color-picker.js +2 -2
  125. package/color-palette/color-picker.style.scss +23 -10
  126. package/color-palette/common-palettes.d.ts +1 -1
  127. package/color-palette/common-palettes.js +2 -2
  128. package/color-palette/gantt-palettes.js +1 -1
  129. package/color-palette/palette.js +1 -1
  130. package/color-palette/pivot-palettes.js +1 -1
  131. package/color-palette/platform-palettes.js +1 -1
  132. package/color-palette/pro-palettes.js +1 -1
  133. package/color-palette/scheduler-palettes.js +1 -1
  134. package/configurator-actions.d.ts +6 -6
  135. package/configurator-actions.js +1 -1
  136. package/configurator-aggregation-list.d.ts +1 -1
  137. package/configurator-aggregation-list.js +22 -20
  138. package/configurator-drop-zone.d.ts +2 -1
  139. package/configurator-drop-zone.js +36 -34
  140. package/configurator-field-icon.js +1 -1
  141. package/configurator-focus.js +2 -2
  142. package/configurator-sections.d.ts +3 -3
  143. package/configurator-sections.js +4 -4
  144. package/control-attributes.js +1 -1
  145. package/control-presentation.js +4 -4
  146. package/controls.d.ts +11 -0
  147. package/controls.js +4 -4
  148. package/core/anchored-popover.js +1 -1
  149. package/core/control-id.js +1 -1
  150. package/core/editor-popup.js +1 -1
  151. package/core/motion.js +1 -1
  152. package/{_chunks/popover-controller-D-AvKQ7B.js → core/popover-controller.js} +8 -8
  153. package/core/selection-list-tooltips.d.ts +2 -0
  154. package/core/tooltip.d.ts +1 -1
  155. package/core/top-layer-popup.d.ts +1 -1
  156. package/core/top-layer-popup.js +1 -1
  157. package/date-time/date-control.d.ts +1 -1
  158. package/date-time/field.d.ts +1 -0
  159. package/date-time/index.js +1 -1
  160. package/date-time/style.scss +192 -46
  161. package/date-time/time-selection.d.ts +1 -1
  162. package/dialog/dialog.dom.js +4 -4
  163. package/dialog/dialog.drag.js +1 -1
  164. package/dialog/dialog.parts.js +1 -1
  165. package/dialog/dialog.preact.js +2 -2
  166. package/distribution-chart/_distribution-chart.scss +106 -28
  167. package/distribution-chart/area-chart.js +4 -4
  168. package/distribution-chart/bar-chart.js +3 -3
  169. package/distribution-chart/chart-frame.d.ts +1 -1
  170. package/distribution-chart/index.js +2 -2
  171. package/distribution-chart/line-chart.js +3 -3
  172. package/dropdown/content.js +1 -1
  173. package/dropdown/control.js +1 -1
  174. package/dropdown/dropdown.service.js +2 -2
  175. package/dropdown/dropdown.types.d.ts +1 -1
  176. package/dropdown/editor-dropdown.style.scss +14 -9
  177. package/dropdown/index.js +2 -2
  178. package/dropdown/lookup-field.js +5 -5
  179. package/dropdown/popup.js +1 -1
  180. package/duration/index.js +1 -1
  181. package/editor-actions.js +4 -4
  182. package/editor-layout/index.d.ts +4 -4
  183. package/editor-layout/index.js +40 -35
  184. package/editor-layout/style.scss +82 -18
  185. package/favicon.svg +9 -0
  186. package/field-configurator.d.ts +14 -3
  187. package/field-configurator.js +1 -1
  188. package/field-reorder.hook.js +2 -2
  189. package/field-reorder.js +1 -1
  190. package/filter/filters/slider/_single-slider.scss +57 -38
  191. package/filter/filters/slider/_slider.scss +35 -10
  192. package/filter/filters/slider/component.js +1 -1
  193. package/filter/filters/slider/control.js +1 -1
  194. package/filter/filters/slider/inputs.js +1 -1
  195. package/filter/filters/slider/logic.js +1 -1
  196. package/filter/filters/slider/preact.js +2 -2
  197. package/filter/filters/slider/runtime.js +3 -3
  198. package/filter/filters/slider/single.js +3 -3
  199. package/filter-badge.js +5 -5
  200. package/filter-controls.js +4 -4
  201. package/form-controls/index.js +4 -4
  202. package/form-controls/presentation.d.ts +1 -1
  203. package/form-controls/presentation.js +5 -5
  204. package/formatting/index.js +11 -11
  205. package/formatting/styles.scss +13 -11
  206. package/framework.js +76 -77
  207. package/history-controls.js +4 -4
  208. package/html-controls.js +1 -1
  209. package/icon-toolbar.d.ts +1 -1
  210. package/icon-toolbar.js +1 -1
  211. package/icons/icon.d.ts +1 -1
  212. package/icons/icon.js +2 -2
  213. package/legend.d.ts +1 -1
  214. package/legend.js +2 -2
  215. package/masked-input/index.js +6 -6
  216. package/native-control.js +1 -1
  217. package/native-styles.css +1 -1
  218. package/native-styles.scss +6 -2
  219. package/native.d.ts +3 -3
  220. package/native.js +18 -18
  221. package/number-input/index.d.ts +1 -1
  222. package/number-input/index.js +1 -1
  223. package/package.json +53 -1
  224. package/pagination.js +2 -2
  225. package/pdf-viewer/controller.js +1 -1
  226. package/pdf-viewer/header.d.ts +1 -1
  227. package/pdf-viewer/index.d.ts +2 -2
  228. package/pdf-viewer/index.js +4 -4
  229. package/pdf-viewer/search-bar.d.ts +1 -1
  230. package/pdf-viewer/status.d.ts +1 -1
  231. package/pdf-viewer/style.scss +203 -42
  232. package/preact-mount.js +2 -2
  233. package/preact.d.ts +5 -4
  234. package/preact.js +105 -67
  235. package/progress/_bar.scss +9 -3
  236. package/progress/_circular.scss +2 -1
  237. package/progress/bar.js +1 -1
  238. package/progress/circular.js +1 -1
  239. package/progress/range.js +1 -1
  240. package/rating-choice.js +1 -1
  241. package/react-adapter.d.ts +4 -2
  242. package/react-control.js +1 -1
  243. package/react.d.ts +2 -2
  244. package/react.js +30 -31
  245. package/reorder-list.d.ts +1 -1
  246. package/reorder-list.js +1 -1
  247. package/reorder-list.scss +59 -17
  248. package/resource-picker/resource-picker-avatar.js +3 -3
  249. package/resource-picker/resource-picker-option.js +2 -2
  250. package/resource-picker/resource-picker-popup.js +3 -3
  251. package/resource-picker/resource-picker.js +76 -74
  252. package/resource-picker/resource-picker.scss +62 -34
  253. package/resource-picker/resource-picker.utils.js +1 -1
  254. package/rich-text/index.js +1 -1
  255. package/rich-text/style.scss +203 -49
  256. package/rich-text/toolbar.d.ts +1 -1
  257. package/robots.txt +4 -0
  258. package/search-input/index.js +4 -4
  259. package/segmented-switch/index.js +2 -2
  260. package/select.js +1 -1
  261. package/selection-list.d.ts +1 -0
  262. package/selection-list.js +3 -1
  263. package/status-feedback/badge.js +2 -2
  264. package/status-feedback/exit-snapshot.js +2 -2
  265. package/status-feedback/header.js +5 -5
  266. package/status-feedback/icons.js +1 -1
  267. package/status-feedback/index.js +1 -1
  268. package/status-feedback/item.js +2 -2
  269. package/status-feedback/motion.js +1 -1
  270. package/status-feedback/placement.js +1 -1
  271. package/status-feedback/popover.js +2 -2
  272. package/status-feedback/render.js +1 -1
  273. package/status-feedback/status-feedback.scss +124 -35
  274. package/styles/_activity-message.scss +24 -7
  275. package/styles/_alert.scss +61 -14
  276. package/styles/_cell-editor-frame.scss +11 -0
  277. package/styles/_compositions.scss +399 -79
  278. package/styles/_control.scss +30 -8
  279. package/styles/_disclosure.scss +15 -5
  280. package/styles/_editor-counter.scss +16 -6
  281. package/styles/_editor-slider.scss +8 -2
  282. package/styles/_field-configurator.scss +192 -41
  283. package/styles/_fields-grid.scss +16 -4
  284. package/styles/_filter-controls.scss +10 -2
  285. package/styles/_icon-action.scss +48 -15
  286. package/styles/_loading.scss +12 -3
  287. package/styles/_motion.scss +32 -9
  288. package/styles/_primitives.scss +346 -96
  289. package/styles/_theme.scss +130 -86
  290. package/styles/_thresholds.scss +28 -25
  291. package/styles/_time-grid.scss +8 -3
  292. package/styles/_tokens.scss +6 -1
  293. package/styles/color-roles.js +1 -1
  294. package/styles/configurator-actions.scss +126 -26
  295. package/styles/pagination.css +114 -30
  296. package/styles/rating.css +8 -3
  297. package/styles.css +1 -1
  298. package/styles.scss +1 -3
  299. package/surfaces.d.ts +4 -2
  300. package/surfaces.js +8 -8
  301. package/svelte/UiComponent.svelte +44 -11
  302. package/svelte-control.js +1 -1
  303. package/svelte.d.ts +1 -1
  304. package/svelte.js +5 -5
  305. package/switch/index.js +3 -3
  306. package/time-grid.js +5 -5
  307. package/timeline-track/_style.scss +96 -24
  308. package/timeline-track/index.js +5 -5
  309. package/timeline-track/model.js +1 -1
  310. package/ui.css +1 -1
  311. package/view-switcher.d.ts +23 -0
  312. package/vue-badge.js +1 -1
  313. package/vue-control.js +1 -1
  314. package/vue-segmented-switch.js +1 -1
  315. package/vue.d.ts +3 -2
  316. package/vue.js +45 -46
  317. package/_chunks/badge.view-D30pMUfi.js +0 -14
  318. package/_chunks/chevron-left-D0nc4Z5S.js +0 -4
  319. package/_chunks/chevron-right-sxHQMSkq.js +0 -4
  320. package/_chunks/field-configurator-BCINdXpU.js +0 -223
  321. package/_chunks/field-context-D57PnBbH.js +0 -5
  322. package/_chunks/mount-Cw2zk58T.js +0 -266
  323. package/_shared/data-query/binding.d.ts +0 -30
  324. package/_shared/data-query/blocks.d.ts +0 -30
  325. package/_shared/data-query/commands.d.ts +0 -47
  326. package/_shared/data-query/contracts.d.ts +0 -106
  327. package/_shared/data-query/cursor-reader.d.ts +0 -25
  328. package/_shared/data-query/direct-binding.d.ts +0 -3
  329. package/_shared/data-query/index.d.ts +0 -23
  330. package/_shared/data-query/infinite-binding.d.ts +0 -18
  331. package/_shared/data-query/keys.d.ts +0 -9
  332. package/_shared/data-query/limiter.d.ts +0 -12
  333. package/_shared/data-query/load-options.d.ts +0 -25
  334. package/_shared/data-query/materialize.d.ts +0 -2
  335. package/_shared/data-query/policy.d.ts +0 -14
  336. package/_shared/data-query/provider-queries.d.ts +0 -22
  337. package/_shared/data-query/reader.d.ts +0 -23
  338. package/_shared/data-query/remote-load.d.ts +0 -7
  339. package/_shared/data-query/source.d.ts +0 -40
@@ -2,7 +2,6 @@
2
2
  @use '../styles/palette';
3
3
  @use '../styles/control';
4
4
 
5
-
6
5
  // Mixins
7
6
  @mixin focus-style {
8
7
  outline: none;
@@ -21,7 +20,6 @@ revo-grid,
21
20
  --rv-dropdown-container-tag-background: #{palette.$gray-eeeeee};
22
21
  --rv-dropdown-placeholder-color: var(--rv-ui-text-muted);
23
22
 
24
-
25
23
  &[theme*='dark'] {
26
24
  --rv-dropdown-container-tag-background: #{palette.$gray-2b2b2b};
27
25
  --rv-dropdown-placeholder-color: var(--rv-ui-text-muted);
@@ -53,7 +51,8 @@ revo-grid,
53
51
  --rv-dropdown-arrow-right: 5px;
54
52
  --rv-dropdown-arrow-gap: 4px;
55
53
  --rv-dropdown-value-right-space: calc(
56
- var(--rv-dropdown-arrow-size) + var(--rv-dropdown-arrow-right) + var(--rv-dropdown-arrow-gap)
54
+ var(--rv-dropdown-arrow-size) + var(--rv-dropdown-arrow-right) +
55
+ var(--rv-dropdown-arrow-gap)
57
56
  );
58
57
 
59
58
  @include flex-center;
@@ -91,7 +90,8 @@ revo-grid,
91
90
  inset-inline-end: var(--rv-dropdown-arrow-right);
92
91
  top: 50%;
93
92
  transform: translateY(-50%);
94
- transition: transform var(--rv-ui-motion-normal, 160ms) var(--rv-ui-motion-ease, ease-out);
93
+ transition: transform var(--rv-ui-motion-normal, 160ms)
94
+ var(--rv-ui-motion-ease, ease-out);
95
95
  z-index: 1;
96
96
 
97
97
  svg {
@@ -213,7 +213,8 @@ revo-grid,
213
213
  padding: 6px;
214
214
  flex-direction: column;
215
215
  transform-origin: top left;
216
- animation: revoDropdownMenuIn var(--rv-ui-motion-enter, 180ms) var(--rv-ui-motion-ease, ease-out);
216
+ animation: revoDropdownMenuIn var(--rv-ui-motion-enter, 180ms)
217
+ var(--rv-ui-motion-ease, ease-out);
217
218
 
218
219
  .dropdown-listbox {
219
220
  display: flex;
@@ -267,7 +268,8 @@ revo-grid,
267
268
  user-select: none;
268
269
  margin: 1px 0;
269
270
  transition:
270
- background-color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out),
271
+ background-color var(--rv-ui-motion-fast, 120ms)
272
+ var(--rv-ui-motion-ease, ease-out),
271
273
  color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
272
274
 
273
275
  &[class*='theme-dark'] {
@@ -289,7 +291,6 @@ revo-grid,
289
291
  opacity: 0.5;
290
292
  cursor: not-allowed;
291
293
  }
292
-
293
294
  }
294
295
 
295
296
  .option-content {
@@ -325,12 +326,16 @@ revo-grid,
325
326
  border-radius: var(--rv-control-radius, 8px);
326
327
  background: var(--rv-ui-surface-sunken);
327
328
  color: var(--rv-ui-text);
328
- &:focus-visible { outline: 2px solid var(--rv-ui-accent); outline-offset: 1px; }
329
+ &:focus-visible {
330
+ outline: 2px solid var(--rv-ui-accent);
331
+ outline-offset: 1px;
332
+ }
329
333
  }
330
334
  }
331
335
 
332
336
  // Standalone controls own the padding once; grid editors retain their compact insets.
333
- .dropdown-container:is(.rv-select, .rv-combobox, .rv-multi-select) .dropdown-trigger {
337
+ .dropdown-container:is(.rv-select, .rv-combobox, .rv-multi-select)
338
+ .dropdown-trigger {
334
339
  --rv-dropdown-arrow-size: 9px;
335
340
  --rv-dropdown-arrow-right: 12px;
336
341
  padding-inline-end: 32px;
package/dropdown/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { d as e, l as t, p as n, u as r } from "../_chunks/native-control-pFMuHf3G.js";
2
- import { t as i } from "../_chunks/popup-C35Isk7p.js";
1
+ import { d as e, l as t, p as n, u as r } from "../_chunks/native-control-xc_B4vfn.js";
2
+ import { t as i } from "../_chunks/popup-CISbXDnE.js";
3
3
  export { t as Dropdown, i as DropdownPopup, n as DropdownPopupContent, r as defineDropdown, e as destroyDropdown };
@@ -1,9 +1,9 @@
1
- import { i as e, t } from "../_chunks/hooks.module-CG3gN83z.js";
2
- import { t as n } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
3
- import { l as r } from "../_chunks/native-control-pFMuHf3G.js";
4
- import { n as i } from "../_chunks/editor-commit-Bq3wSgvr.js";
1
+ import { i as e, t } from "../_chunks/hooks.module-CXpO2xq6.js";
2
+ import { t as n } from "../_chunks/jsxRuntime.module-ksX_VSbv.js";
3
+ import { l as r } from "../_chunks/native-control-xc_B4vfn.js";
4
+ import { n as i } from "../_chunks/editor-commit-BXIUX0As.js";
5
5
  import { EditorActions as a } from "../editor-actions.js";
6
- //#region src/dropdown/lookup-field.tsx
6
+ //#region package/dropdown/lookup-field.tsx
7
7
  function o({ initial: o, options: s, context: c, apply: l, cancel: u }) {
8
8
  let [d, f] = e(o), [p, m] = e(!1), h = s.autoApply !== !1, g = t(!1), _ = t(o), v = d === null || Array.isArray(d) && !d.length;
9
9
  return i(() => {
package/dropdown/popup.js CHANGED
@@ -1 +1 @@
1
- export { t as DropdownPopup } from "../_chunks/popup-C35Isk7p.js";
1
+ export { t as DropdownPopup } from "../_chunks/popup-CISbXDnE.js";
package/duration/index.js CHANGED
@@ -1 +1 @@
1
- export { t as DurationDraft, n as DurationField } from "../_chunks/duration-D7oRjsmP.js";
1
+ export { t as DurationDraft, n as DurationField } from "../_chunks/duration-BIESsyLI.js";
package/editor-actions.js CHANGED
@@ -1,7 +1,7 @@
1
- import { i as e } from "./_chunks/preact.module-BBM36DnO.js";
2
- import { t } from "./_chunks/jsxRuntime.module-F6UFnpT-.js";
3
- import { t as n } from "./_chunks/controls-FUU-MUKC.js";
4
- //#region src/editor-actions.tsx
1
+ import { i as e } from "./_chunks/preact.module-DzTStiZX.js";
2
+ import { t } from "./_chunks/jsxRuntime.module-ksX_VSbv.js";
3
+ import { t as n } from "./_chunks/controls-BF6WlGT4.js";
4
+ //#region package/editor-actions.tsx
5
5
  var r = {
6
6
  apply: "Apply",
7
7
  cancel: "Cancel",
@@ -5,7 +5,7 @@ type ShellProps = {
5
5
  };
6
6
  /** Shared editor geometry. Consumers supply column widths and feature policy. */
7
7
  export declare function EditorSplitLayout({ children, className }: ShellProps): h.JSX.Element;
8
- export declare function EditorPane({ children, className, scrollable }: ShellProps & {
8
+ export declare function EditorPane({ children, className, scrollable, }: ShellProps & {
9
9
  readonly scrollable?: boolean;
10
10
  }): h.JSX.Element;
11
11
  export interface EditorListProps extends ShellProps {
@@ -18,7 +18,7 @@ export interface EditorListProps extends ShellProps {
18
18
  readonly spacing?: 'default' | 'comfortable';
19
19
  }
20
20
  /** Single-selection listbox with one keyboard/focus owner across editors. */
21
- export declare function EditorList({ children, className, label, onSelect, listRef, variant, spacing }: EditorListProps): h.JSX.Element;
21
+ export declare function EditorList({ children, className, label, onSelect, listRef, variant, spacing, }: EditorListProps): h.JSX.Element;
22
22
  export type EditorListItemProps = Omit<JSX.IntrinsicElements['button'], 'value' | 'className'> & {
23
23
  readonly value: string;
24
24
  readonly selected: boolean;
@@ -41,8 +41,8 @@ export interface EditorListItemContentProps {
41
41
  };
42
42
  }
43
43
  /** Reusable row presentation; the enclosing list item owns selection and focus. */
44
- export declare function EditorListItemContent({ icon, label, description, classNames }: EditorListItemContentProps): h.JSX.Element;
45
- export declare function EditorListGroup({ label, children, className, labelClassName }: ShellProps & {
44
+ export declare function EditorListItemContent({ icon, label, description, classNames, }: EditorListItemContentProps): h.JSX.Element;
45
+ export declare function EditorListGroup({ label, children, className, labelClassName, }: ShellProps & {
46
46
  readonly label: string;
47
47
  readonly labelClassName?: string;
48
48
  }): h.JSX.Element;
@@ -1,23 +1,28 @@
1
- import { t as e } from "../_chunks/jsxRuntime.module-F6UFnpT-.js";
2
- //#region src/editor-layout/index.tsx
3
- function t({ children: t, className: n = "" }) {
4
- return /* @__PURE__ */ e("div", {
1
+ import { o as e } from "../_chunks/hooks.module-CXpO2xq6.js";
2
+ import { t } from "../_chunks/jsxRuntime.module-ksX_VSbv.js";
3
+ import { t as n } from "../_chunks/selection-list-tooltips-DqqLeO_m.js";
4
+ //#region package/editor-layout/index.tsx
5
+ function r({ children: e, className: n = "" }) {
6
+ return /* @__PURE__ */ t("div", {
5
7
  class: `rv-editor-split ${n}`,
6
- children: t
8
+ children: e
7
9
  });
8
10
  }
9
- function n({ children: t, className: n = "", scrollable: r = !1 }) {
10
- return /* @__PURE__ */ e("section", {
11
+ function i({ children: e, className: n = "", scrollable: r = !1 }) {
12
+ return /* @__PURE__ */ t("section", {
11
13
  class: `rv-editor-pane${r ? " rv-editor-pane--scrollable" : ""} ${n}`,
12
- children: t
14
+ children: e
13
15
  });
14
16
  }
15
- function r({ children: t, className: n = "", label: r, onSelect: i, listRef: a, variant: o = "default", spacing: s = "default" }) {
16
- return /* @__PURE__ */ e("div", {
17
- ref: a,
18
- class: `rv-editor-list${o === "plain" ? " rv-editor-list--plain" : ""}${s === "comfortable" ? " rv-editor-list--comfortable" : ""} ${n}`,
17
+ function a({ children: r, className: i = "", label: a, onSelect: o, listRef: s, variant: c = "default", spacing: l = "default" }) {
18
+ let u = n(), d = e((e) => {
19
+ u(e), typeof s == "function" ? s(e) : s && (s.current = e);
20
+ }, [u, s]);
21
+ return /* @__PURE__ */ t("div", {
22
+ ref: d,
23
+ class: `rv-editor-list${c === "plain" ? " rv-editor-list--plain" : ""}${l === "comfortable" ? " rv-editor-list--comfortable" : ""} ${i}`,
19
24
  role: "listbox",
20
- "aria-label": r,
25
+ "aria-label": a,
21
26
  onKeyDown: (e) => {
22
27
  if (![
23
28
  "ArrowDown",
@@ -28,57 +33,57 @@ function r({ children: t, className: n = "", label: r, onSelect: i, listRef: a,
28
33
  let t = Array.from(e.currentTarget.querySelectorAll("[data-editor-value]:not(:disabled)"));
29
34
  if (!t.length) return;
30
35
  let n = Math.max(0, t.indexOf(e.target)), r = e.key === "Home" ? 0 : e.key === "End" ? t.length - 1 : (n + (e.key === "ArrowDown" ? 1 : -1) + t.length) % t.length;
31
- e.preventDefault(), t[r].focus(), i(t[r].dataset.editorValue);
36
+ e.preventDefault(), t[r].focus(), o(t[r].dataset.editorValue);
32
37
  },
33
- children: t
38
+ children: r
34
39
  });
35
40
  }
36
- function i({ value: t, selected: n, icon: r, label: i, description: o, contentClassNames: s, children: c, className: l = "", ...u }) {
37
- return /* @__PURE__ */ e("button", {
41
+ function o({ value: e, selected: n, icon: r, label: i, description: a, contentClassNames: o, children: c, className: l = "", ...u }) {
42
+ return /* @__PURE__ */ t("button", {
38
43
  ...u,
39
44
  type: "button",
40
45
  role: "option",
41
- "data-editor-value": t,
46
+ "data-editor-value": e,
42
47
  "aria-selected": n,
43
48
  tabIndex: u.tabIndex ?? (n ? 0 : -1),
44
49
  class: `rv-editor-list__item${n ? " rv-editor-list__item--selected" : ""} ${l}`,
45
- children: i === void 0 ? c : /* @__PURE__ */ e(a, {
50
+ children: i === void 0 ? c : /* @__PURE__ */ t(s, {
46
51
  icon: r,
47
52
  label: i,
48
- description: o,
49
- classNames: s
53
+ description: a,
54
+ classNames: o
50
55
  })
51
56
  });
52
57
  }
53
- function a({ icon: t, label: n, description: r, classNames: i = {} }) {
54
- return /* @__PURE__ */ e("span", {
55
- class: `rv-editor-list__content${t ? "" : " rv-editor-list__content--text"}`,
56
- children: [t && /* @__PURE__ */ e("span", {
58
+ function s({ icon: e, label: n, description: r, classNames: i = {} }) {
59
+ return /* @__PURE__ */ t("span", {
60
+ class: `rv-editor-list__content${e ? "" : " rv-editor-list__content--text"}`,
61
+ children: [e && /* @__PURE__ */ t("span", {
57
62
  class: `rv-editor-list__icon ${i.icon ?? ""}`,
58
63
  "aria-hidden": "true",
59
- children: t
60
- }), /* @__PURE__ */ e("span", {
64
+ children: e
65
+ }), /* @__PURE__ */ t("span", {
61
66
  class: `rv-editor-list__copy ${i.copy ?? ""}`,
62
- children: [/* @__PURE__ */ e("span", {
67
+ children: [/* @__PURE__ */ t("span", {
63
68
  class: `rv-editor-list__label ${i.label ?? ""}`,
64
69
  children: n
65
- }), r !== void 0 && /* @__PURE__ */ e("span", {
70
+ }), r !== void 0 && /* @__PURE__ */ t("span", {
66
71
  class: `rv-editor-list__description ${i.description ?? ""}`,
67
72
  children: r
68
73
  })]
69
74
  })]
70
75
  });
71
76
  }
72
- function o({ label: t, children: n, className: r = "", labelClassName: i = "" }) {
73
- return /* @__PURE__ */ e("div", {
77
+ function c({ label: e, children: n, className: r = "", labelClassName: i = "" }) {
78
+ return /* @__PURE__ */ t("div", {
74
79
  class: `rv-editor-list__group ${r}`,
75
80
  role: "group",
76
- "aria-label": t,
77
- children: [/* @__PURE__ */ e("div", {
81
+ "aria-label": e,
82
+ children: [/* @__PURE__ */ t("div", {
78
83
  class: `rv-editor-list__group-label ${i}`,
79
- children: t
84
+ children: e
80
85
  }), n]
81
86
  });
82
87
  }
83
88
  //#endregion
84
- export { r as EditorList, o as EditorListGroup, i as EditorListItem, a as EditorListItemContent, n as EditorPane, t as EditorSplitLayout };
89
+ export { a as EditorList, c as EditorListGroup, o as EditorListItem, s as EditorListItemContent, i as EditorPane, r as EditorSplitLayout };
@@ -2,7 +2,10 @@
2
2
 
3
3
  .rv-editor-split {
4
4
  display: grid;
5
- grid-template-columns: var(--rv-editor-columns, minmax(0, 1fr) minmax(0, 1fr));
5
+ grid-template-columns: var(
6
+ --rv-editor-columns,
7
+ minmax(0, 1fr) minmax(0, 1fr)
8
+ );
6
9
  gap: var(--rv-editor-gap, 12px);
7
10
  min-width: 0;
8
11
  min-height: 0;
@@ -11,7 +14,8 @@
11
14
  min-width: 0;
12
15
  min-height: 0;
13
16
  overflow: hidden;
14
- border: 1px solid var(--rv-editor-divider, var(--rv-dialog-border, var(--rv-ui-border)));
17
+ border: 1px solid
18
+ var(--rv-editor-divider, var(--rv-dialog-border, var(--rv-ui-border)));
15
19
  border-radius: var(--rv-editor-radius, 10px);
16
20
  background: var(--rv-dialog-bg, var(--rv-ui-surface));
17
21
  }
@@ -61,24 +65,84 @@
61
65
  }
62
66
  .rv-editor-list__item {
63
67
  transition:
64
- background-color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out),
68
+ background-color var(--rv-ui-motion-fast, 120ms)
69
+ var(--rv-ui-motion-ease, ease-out),
65
70
  color var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out),
66
71
  opacity var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease-out);
67
72
  }
68
- .rv-editor-list__item:hover { background: var(--rv-ui-surface-hover); }
69
- .rv-editor-list__item.rv-editor-list__item--selected { background: var(--rv-ui-selected-bg); color: var(--rv-ui-selected-fg); }
70
- .rv-editor-list__item:focus-visible { outline: 2px solid var(--rv-ui-accent); outline-offset: -2px; }
71
- @media (forced-colors: active) { .rv-editor-list__item--selected { outline: 2px solid Highlight; } }
73
+ .rv-editor-list__item:hover {
74
+ background: var(--rv-ui-surface-hover);
75
+ }
76
+ .rv-editor-list__item.rv-editor-list__item--selected {
77
+ background: var(--rv-ui-selected-bg);
78
+ color: var(--rv-ui-selected-fg);
79
+ }
80
+ .rv-editor-list__item:focus-visible {
81
+ outline: 2px solid var(--rv-ui-accent);
82
+ outline-offset: -2px;
83
+ }
84
+ @media (forced-colors: active) {
85
+ .rv-editor-list__item--selected {
86
+ outline: 2px solid Highlight;
87
+ }
88
+ }
72
89
 
73
- .rv-editor-list__item:disabled { opacity: .55; cursor: not-allowed; }
90
+ .rv-editor-list__item:disabled {
91
+ opacity: 0.55;
92
+ cursor: not-allowed;
93
+ }
74
94
 
75
- .rv-editor-list__content { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 9px; font-size: 12px; line-height: 1.4; grid-column: 1 / -1; min-width: 0; }
76
- .rv-editor-list__content--text { grid-template-columns: minmax(0, 1fr); }
77
- .rv-editor-list__icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; }
78
- .rv-editor-list__icon svg { display: block; width: 13px; height: 13px; fill: currentColor; }
79
- .rv-editor-list__copy { display: grid; min-width: 0; gap: 0; }
80
- .rv-editor-list__label, .rv-editor-list__description { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
81
- .rv-editor-list__label { font-weight: var(--rv-editor-list-font-weight, 500); }
82
- .rv-editor-list__description { font-size: 11px; color: var(--rv-ui-text-muted); }
83
- .rv-editor-list__group { display: grid; gap: 2px; }
84
- .rv-editor-list__group-label { font-weight: var(--rv-editor-list-font-weight, inherit); padding: 8px 8px 4px; font-size: 11px; color: var(--rv-ui-text-muted); }
95
+ .rv-editor-list__content {
96
+ display: grid;
97
+ grid-template-columns: 20px minmax(0, 1fr);
98
+ align-items: center;
99
+ gap: 9px;
100
+ font-size: 12px;
101
+ line-height: 1.4;
102
+ grid-column: 1 / -1;
103
+ min-width: 0;
104
+ }
105
+ .rv-editor-list__content--text {
106
+ grid-template-columns: minmax(0, 1fr);
107
+ }
108
+ .rv-editor-list__icon {
109
+ display: inline-flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ width: 16px;
113
+ height: 16px;
114
+ }
115
+ .rv-editor-list__icon svg {
116
+ display: block;
117
+ width: 13px;
118
+ height: 13px;
119
+ fill: currentColor;
120
+ }
121
+ .rv-editor-list__copy {
122
+ display: grid;
123
+ min-width: 0;
124
+ gap: 0;
125
+ }
126
+ .rv-editor-list__label,
127
+ .rv-editor-list__description {
128
+ overflow: hidden;
129
+ text-overflow: ellipsis;
130
+ white-space: nowrap;
131
+ }
132
+ .rv-editor-list__label {
133
+ font-weight: var(--rv-editor-list-font-weight, 500);
134
+ }
135
+ .rv-editor-list__description {
136
+ font-size: 11px;
137
+ color: var(--rv-ui-text-muted);
138
+ }
139
+ .rv-editor-list__group {
140
+ display: grid;
141
+ gap: 2px;
142
+ }
143
+ .rv-editor-list__group-label {
144
+ font-weight: var(--rv-editor-list-font-weight, inherit);
145
+ padding: 8px 8px 4px;
146
+ font-size: 11px;
147
+ color: var(--rv-ui-text-muted);
148
+ }
package/favicon.svg ADDED
@@ -0,0 +1,9 @@
1
+ <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M0 0H14.0974L14.9087 0.0524998C15.7049 0.107143 16.4527 0.171429 17.1232 0.274286C18.361 0.48 19.5301 0.891428 20.5616 1.50857C21.6619 2.12571 22.4871 2.94857 23.106 3.97714C23.5186 4.66286 23.7937 5.41714 23.9312 6.30857L23.9656 6.89143C23.9828 7.23429 24 7.68 24 8.09143L23.9954 8.47337C23.98 9.13368 23.9312 9.66857 23.9312 9.66857C23.7937 10.9029 23.3811 12 22.5559 12.96C21.3868 14.3314 17.8797 15.4286 17.6734 15.4286L18.4269 16.485C20.6392 19.565 22.4159 21.8415 23.7568 23.3145C24.0688 23.6571 24.0688 24 23.5186 24H15.4728L5.70774 10.4914H15.8854C17.2607 10.4914 18.361 9.39429 18.361 7.95429C18.361 6.51429 17.192 5.41714 15.8854 5.41714H2.06304L0 2.67429V1.34057L14.4413 0.685714H0V0Z" fill="url(#paint0_linear_7_11)"/>
3
+ <defs>
4
+ <linearGradient id="paint0_linear_7_11" x1="0.201583" y1="-0.0384081" x2="21.0672" y2="28.776" gradientUnits="userSpaceOnUse">
5
+ <stop stop-color="#04CC3C"/>
6
+ <stop offset="1" stop-color="#0062BC"/>
7
+ </linearGradient>
8
+ </defs>
9
+ </svg>
@@ -8,8 +8,9 @@ export declare function FieldSummary({ children, className, ...attributes }: Omi
8
8
  children: ComponentChildren;
9
9
  className?: string;
10
10
  }): h.JSX.Element;
11
- export declare function FieldLibrary({ title, count, children, className, }: {
11
+ export declare function FieldLibrary({ title, id, count, children, className, }: {
12
12
  title: string;
13
+ id?: string;
13
14
  count?: ComponentChildren;
14
15
  children: ComponentChildren;
15
16
  className?: string;
@@ -101,16 +102,26 @@ export interface ConfiguratorCompactItem {
101
102
  icon?: string;
102
103
  count?: number;
103
104
  disabled?: boolean;
105
+ /** Optional section to focus after opening. */
106
+ targetId?: string;
104
107
  /** Activate the corresponding product tab when reopening. */
105
108
  onOpen?: () => void;
106
109
  }
110
+ export interface ConfiguratorMiniModeConfig {
111
+ /** Starts the configurator as a narrow rail. Users can expand and collapse it. */
112
+ miniMode?: boolean;
113
+ /** Enables width resizing. Shrinking below 200px collapses to the rail. */
114
+ resizable?: boolean;
115
+ }
107
116
  /** Shared panel shell. Collapsing preserves mounted controls and their drafts. */
108
- export declare function ConfiguratorPanel({ panelRef, standalone, children, compactItems, compact, onExpand, ...props }: Omit<JSX.HTMLAttributes<HTMLDivElement>, 'ref'> & {
117
+ export declare function ConfiguratorPanel({ panelRef, standalone, children, compactItems, compact: compactProp, onExpand, miniMode, resizable, resizeParent, ...props }: Omit<JSX.HTMLAttributes<HTMLDivElement>, 'ref'> & ConfiguratorMiniModeConfig & {
109
118
  panelRef?: import('./_vendor/preact/src/index').Ref<HTMLDivElement>;
110
119
  standalone?: boolean;
111
120
  compactItems?: readonly ConfiguratorCompactItem[];
112
121
  /** Presentation state is owned by the host; the panel adds no toggle button. */
113
122
  compact?: boolean;
114
123
  onExpand?: () => void;
124
+ /** Apply the resized width to the product-owned parent as well. */
125
+ resizeParent?: boolean;
115
126
  }): h.JSX.Element;
116
- export { createFieldExpansion, fieldExpansionIds, recordFieldExpansion, type FieldExpansionState } from './field-expansion';
127
+ export { createFieldExpansion, fieldExpansionIds, recordFieldExpansion, type FieldExpansionState, } from './field-expansion';
@@ -1,4 +1,4 @@
1
- import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./_chunks/field-configurator-BCINdXpU.js";
1
+ import { _ as e, a as t, b as n, c as r, d as i, f as a, g as o, h as s, i as c, l, m as u, n as d, o as f, p, r as m, s as h, t as g, u as _, v, x as y, y as b } from "./_chunks/field-configurator-BWZnm3gE.js";
2
2
  import { fieldDropIndex as x, reorderFields as S } from "./field-reorder.js";
3
3
  import { useFieldDropTarget as C, useFieldReorder as w } from "./field-reorder.hook.js";
4
4
  export { g as CollapsibleSection, d as ConfiguratorPanel, m as FieldActions, c as FieldContent, t as FieldDropIndicator, f as FieldGroup, h as FieldGroupHeading, r as FieldIcon, l as FieldItem, _ as FieldLibrary, i as FieldLibraryList, a as FieldList, p as FieldRemoveButton, u as FieldRemoveIcon, s as FieldRow, o as FieldStatusBadge, e as FieldSummary, v as SelectedField, b as createFieldExpansion, x as fieldDropIndex, n as fieldExpansionIds, y as recordFieldExpansion, S as reorderFields, C as useFieldDropTarget, w as useFieldReorder };
@@ -1,6 +1,6 @@
1
- import { i as e, r as t, t as n } from "./_chunks/hooks.module-CG3gN83z.js";
1
+ import { i as e, r as t, t as n } from "./_chunks/hooks.module-CXpO2xq6.js";
2
2
  import { fieldDropIndex as r, fieldListDropIndex as i, reorderFields as a } from "./field-reorder.js";
3
- //#region src/field-reorder.hook.ts
3
+ //#region package/field-reorder.hook.ts
4
4
  function o(a, o) {
5
5
  let s = n({
6
6
  count: a,
package/field-reorder.js CHANGED
@@ -1,4 +1,4 @@
1
- //#region src/field-reorder.ts
1
+ //#region package/field-reorder.ts
2
2
  function e(e, t, n) {
3
3
  if (!Number.isInteger(t) || !Number.isInteger(n) || t < 0 || t >= e.length || n < 0 || n > e.length || t === n || t + 1 === n) return e;
4
4
  let r = [...e], [i] = r.splice(t, 1);
@@ -1,45 +1,64 @@
1
1
  /** One scalar thumb/track presentation for native, Stencil and Preact consumers. */
2
2
  @mixin presentation {
3
- appearance: none;
4
- position: static;
5
- width: 100%;
6
- height: var(--slider-thumb-size, 20px);
7
- margin: 0;
8
- border: 0;
9
- border-radius: 0;
10
- background: linear-gradient(
3
+ appearance: none;
4
+ position: static;
5
+ width: 100%;
6
+ height: var(--slider-thumb-size, 20px);
7
+ margin: 0;
8
+ border: 0;
9
+ border-radius: 0;
10
+ background: linear-gradient(
11
11
  to right,
12
- var(--range-color, var(--rv-ui-accent)) 0 var(--rv-single-slider-value, 0%),
13
- var(--slider-color, var(--rv-ui-border)) var(--rv-single-slider-value, 0%) 100%
14
- ) center / 100% var(--slider-track-height, 4px) no-repeat;
15
- cursor: pointer;
16
- pointer-events: auto;
12
+ var(--range-color, var(--rv-ui-accent)) 0
13
+ var(--rv-single-slider-value, 0%),
14
+ var(--slider-color, var(--rv-ui-border)) var(--rv-single-slider-value, 0%)
15
+ 100%
16
+ )
17
+ center / 100% var(--slider-track-height, 4px) no-repeat;
18
+ cursor: pointer;
19
+ pointer-events: auto;
17
20
 
18
- &::-webkit-slider-thumb {
19
- appearance: none;
20
- box-sizing: border-box;
21
- width: var(--slider-thumb-size, 20px);
22
- height: var(--slider-thumb-size, 20px);
23
- border: 3px solid var(--slider-thumb-border, var(--range-color, var(--rv-ui-accent)));
24
- border-radius: 50%;
25
- background: var(--slider-thumb-bg, var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface)));
26
- box-shadow: 0 1px 3px var(--rv-ui-shadow);
27
- transition: box-shadow var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease);
28
- pointer-events: all;
29
- }
21
+ &::-webkit-slider-thumb {
22
+ appearance: none;
23
+ box-sizing: border-box;
24
+ width: var(--slider-thumb-size, 20px);
25
+ height: var(--slider-thumb-size, 20px);
26
+ border: 3px solid
27
+ var(--slider-thumb-border, var(--range-color, var(--rv-ui-accent)));
28
+ border-radius: 50%;
29
+ background: var(
30
+ --slider-thumb-bg,
31
+ var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface))
32
+ );
33
+ box-shadow: 0 1px 3px var(--rv-ui-shadow);
34
+ transition: box-shadow var(--rv-ui-motion-fast, 120ms)
35
+ var(--rv-ui-motion-ease, ease);
36
+ pointer-events: all;
37
+ }
30
38
 
31
- &::-moz-range-thumb {
32
- box-sizing: border-box;
33
- width: var(--slider-thumb-size, 20px);
34
- height: var(--slider-thumb-size, 20px);
35
- border: 3px solid var(--slider-thumb-border, var(--range-color, var(--rv-ui-accent)));
36
- border-radius: 50%;
37
- background: var(--slider-thumb-bg, var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface)));
38
- box-shadow: 0 1px 3px var(--rv-ui-shadow);
39
- transition: box-shadow var(--rv-ui-motion-fast, 120ms) var(--rv-ui-motion-ease, ease);
40
- pointer-events: all;
41
- }
39
+ &::-moz-range-thumb {
40
+ box-sizing: border-box;
41
+ width: var(--slider-thumb-size, 20px);
42
+ height: var(--slider-thumb-size, 20px);
43
+ border: 3px solid
44
+ var(--slider-thumb-border, var(--range-color, var(--rv-ui-accent)));
45
+ border-radius: 50%;
46
+ background: var(
47
+ --slider-thumb-bg,
48
+ var(--revo-grid-filter-control-thumb-bg, var(--rv-ui-surface))
49
+ );
50
+ box-shadow: 0 1px 3px var(--rv-ui-shadow);
51
+ transition: box-shadow var(--rv-ui-motion-fast, 120ms)
52
+ var(--rv-ui-motion-ease, ease);
53
+ pointer-events: all;
54
+ }
42
55
 
43
- &:disabled { opacity: .55; cursor: not-allowed; }
44
- &:focus-visible { outline: 2px solid var(--range-color, var(--rv-ui-accent)); outline-offset: 2px; }
56
+ &:disabled {
57
+ opacity: 0.55;
58
+ cursor: not-allowed;
59
+ }
60
+ &:focus-visible {
61
+ outline: 2px solid var(--range-color, var(--rv-ui-accent));
62
+ outline-offset: 2px;
63
+ }
45
64
  }