@revolist/ui 4.0.1-rc → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/LICENSE +21 -0
  2. package/MIGRATION.md +36 -0
  3. package/OWNERSHIP.md +32 -32
  4. package/README.md +405 -264
  5. package/_button.scss +6 -2
  6. package/_chunks/arrow-up-Cw8hW9vp.js +4 -0
  7. package/_chunks/calculator-CDWOuAcp.js +4 -0
  8. package/_chunks/calendar-DJqiFwFT.js +258 -0
  9. package/_chunks/chart-frame-hcOlnQ1K.js +145 -0
  10. package/_chunks/{chevron-right-sxHQMSkq.js → check-BwI7iCAm.js} +2 -2
  11. package/_chunks/{chevron-left-D0nc4Z5S.js → chevron-right-CM3ljziP.js} +2 -2
  12. package/_chunks/choice-chips-yr6Uzmof.js +126 -0
  13. package/_chunks/clock-BOhPNlW3.js +4 -0
  14. package/_chunks/color-palette-DMJUChWC.js +92 -0
  15. package/_chunks/{color-picker-BRv-__AM.js → color-picker-CMWxQlWt.js} +61 -56
  16. package/_chunks/component-DyWiItBR.js +878 -0
  17. package/_chunks/{component-metadata-BENbgTjU.js → component-metadata-BKd7U8OW.js} +0 -12
  18. package/_chunks/configurator-actions-DCodxcUw.js +155 -0
  19. package/_chunks/configurator-field-icon-CmcM_sPs.js +53 -0
  20. package/_chunks/control-CbOYUakE.js +118 -0
  21. package/_chunks/{controller-CmLo-Ajc.js → controller-hRBm_Lfz.js} +15 -15
  22. package/_chunks/controls-DD1qvPfE.js +650 -0
  23. package/_chunks/{date-control-CYCkb1aQ.js → date-control-XI2cpKI_.js} +21 -21
  24. package/_chunks/date-time-CGJdC1Qa.js +807 -0
  25. package/_chunks/{delete-button-DnpmDNEJ.js → delete-button-CW9vjLnk.js} +7 -7
  26. package/_chunks/dialog.parts-CJ3FVxC9.js +131 -0
  27. package/_chunks/duration-CBJWK82T.js +272 -0
  28. package/_chunks/editor-commit-Bq3wSgvr.js +12 -0
  29. package/_chunks/editor-popup-ByU7qiub.js +82 -0
  30. package/_chunks/field-configurator-B-qtIwx1.js +288 -0
  31. package/_chunks/field-context-D57PnBbH.js +5 -0
  32. package/_chunks/framework-mount-Bk4O_T7T.js +54 -0
  33. package/_chunks/hooks.module-CG3gN83z.js +157 -0
  34. package/_chunks/icon-toolbar-DSjOdwM7.js +134 -0
  35. package/_chunks/jsxRuntime.module-F6UFnpT-.js +30 -0
  36. package/_chunks/magnifying-glass-CvrTDSkB.js +4 -0
  37. package/_chunks/minus-BOAR3A1C.js +4 -0
  38. package/_chunks/mount-C7i5gsKI.js +267 -0
  39. package/_chunks/native-Blr3byjO.js +32 -0
  40. package/_chunks/native-control-B9MNibfa.js +649 -0
  41. package/_chunks/{number-input-NnH57J4j.js → number-input-CgbZes5B.js} +89 -89
  42. package/_chunks/picker-DqpjDC90.js +122 -0
  43. package/_chunks/plus-CbGRkIGl.js +4 -0
  44. package/_chunks/popover-controller-D-AvKQ7B.js +102 -0
  45. package/_chunks/popup-C35Isk7p.js +378 -0
  46. package/_chunks/preact.module-BBM36DnO.js +290 -0
  47. package/_chunks/{rating-choice-CWAsNQNS.js → rating-choice-WDrfiluf.js} +10 -10
  48. package/_chunks/render-m5eMMwFR.js +83 -0
  49. package/_chunks/reorder-list-C4HSda4n.js +59 -0
  50. package/_chunks/request-trail-SHynDFdM.js +762 -0
  51. package/_chunks/rich-text-CtjqRvv8.js +842 -0
  52. package/_chunks/rotate-left-BF6G883o.js +4 -0
  53. package/_chunks/rotate-right-Iha5ScJ1.js +4 -0
  54. package/_chunks/selection-list-tooltips-BtWjpP6M.js +41 -0
  55. package/_chunks/title-tooltip-Cw6LOZhb.js +11 -0
  56. package/_chunks/tooltip-D4xkio5G.js +54 -0
  57. package/_chunks/tooltip-owner-DjdvqKzz.js +19 -0
  58. package/_chunks/tooltip-session-B6X6x8G_.js +110 -0
  59. package/_chunks/tooltip-text-BXsUEmBH.js +12 -0
  60. package/_chunks/top-layer-popup-CNSDdfJV.js +59 -0
  61. package/_dialog.scss +55 -21
  62. package/_form.scss +71 -21
  63. package/_legend.scss +25 -7
  64. package/_shared/data-query/index.d.ts +2 -2
  65. package/_shared/data-query/load-options.d.ts +2 -2
  66. package/_variables.scss +34 -32
  67. package/_vendor/preact/LICENSE +21 -0
  68. package/_vendor/preact/compat/src/index.d.ts +353 -0
  69. package/_vendor/preact/compat/src/suspense-list.d.ts +16 -0
  70. package/_vendor/preact/compat/src/suspense.d.ts +19 -0
  71. package/_vendor/preact/hooks/src/index.d.ts +145 -0
  72. package/_vendor/preact/src/dom.d.ts +2548 -0
  73. package/_vendor/preact/src/index.d.ts +373 -0
  74. package/_vendor/preact/src/jsx.d.ts +2958 -0
  75. package/_view-switcher.scss +6 -0
  76. package/activity-message.d.ts +2 -2
  77. package/activity-message.js +16 -16
  78. package/ai/_chat.scss +227 -0
  79. package/ai/_style.scss +170 -39
  80. package/ai/chat.d.ts +65 -0
  81. package/ai/components.d.ts +35 -6
  82. package/ai/index.d.ts +3 -0
  83. package/ai/index.js +3 -3
  84. package/ai/mount.d.ts +59 -6
  85. package/ai/prompt-history.d.ts +13 -0
  86. package/ai/request-trail.d.ts +9 -3
  87. package/ai/results/_style.scss +83 -0
  88. package/ai/results/index.d.ts +11 -0
  89. package/ai/results/metrics.d.ts +5 -0
  90. package/ai/results/table.d.ts +5 -0
  91. package/ai/results/text.d.ts +5 -0
  92. package/ai/results/types.d.ts +29 -0
  93. package/ai/transcript.d.ts +27 -0
  94. package/ai/translation-context.d.ts +1 -1
  95. package/ai/translations.d.ts +1 -1
  96. package/alert.d.ts +2 -2
  97. package/angular/angular.d.ts +1 -1
  98. package/angular/angular.js +13 -10
  99. package/assignee/assignee.scss +28 -6
  100. package/assignee/field.d.ts +2 -2
  101. package/assignee/index.js +86 -87
  102. package/assignee/layout.d.ts +2 -2
  103. package/assignee/picker.d.ts +1 -1
  104. package/avatar/avatar.style.scss +23 -6
  105. package/avatar/index.d.ts +25 -2
  106. package/avatar/index.js +42 -41
  107. package/badge.d.ts +1 -1
  108. package/badge.view.d.ts +8 -0
  109. package/brush-range/_brush-range.scss +55 -49
  110. package/brush-range/component.d.ts +2 -4
  111. package/brush-range/component.js +19 -19
  112. package/buttons/delete-button.d.ts +2 -1
  113. package/buttons/delete-button.js +1 -1
  114. package/buttons/delete-button.style.scss +6 -2
  115. package/buttons/remove-button.d.ts +2 -2
  116. package/buttons/remove-button.js +3 -3
  117. package/buttons/remove-button.style.scss +1 -1
  118. package/buttons/svg-button.d.ts +3 -2
  119. package/buttons/svg-button.js +23 -23
  120. package/calendar/_calendar.scss +27 -26
  121. package/calendar/calendar.d.ts +1 -1
  122. package/calendar/calendar.js +1 -1
  123. package/calendar/caption.d.ts +1 -1
  124. package/calendar/day.d.ts +1 -1
  125. package/calendar/day.js +4 -4
  126. package/calendar/header.d.ts +1 -1
  127. package/calendar/header.js +34 -35
  128. package/calendar/index.js +2 -2
  129. package/calendar/month-grid.d.ts +1 -1
  130. package/calendar/month-grid.js +37 -37
  131. package/calendar/picker.d.ts +1 -1
  132. package/calendar/types.d.ts +1 -1
  133. package/calendar/year-grid.d.ts +1 -1
  134. package/calendar/year-grid.js +12 -12
  135. package/cell-input.scss +3 -7
  136. package/cell-visuals/badge.style.scss +6 -3
  137. package/cell-visuals/bar-chart.style.scss +2 -1
  138. package/cell-visuals/progress-line-value.renderer.style.scss +4 -2
  139. package/cell-visuals/progress-line.style.scss +1 -4
  140. package/cell-visuals/sparkline.style.scss +2 -1
  141. package/cell-visuals/timeline.style.css +4 -2
  142. package/checkbox/checkbox.scss +6 -24
  143. package/checkbox/index.d.ts +2 -2
  144. package/checkbox/index.js +9 -9
  145. package/choice-chips/index.d.ts +4 -2
  146. package/choice-chips/index.js +1 -1
  147. package/color-palette/color-palette.d.ts +1 -1
  148. package/color-palette/color-palette.js +1 -1
  149. package/color-palette/color-palette.style.scss +88 -25
  150. package/color-palette/color-picker.d.ts +1 -1
  151. package/color-palette/color-picker.js +2 -2
  152. package/color-palette/color-picker.style.scss +23 -10
  153. package/color-palette/common-palettes.d.ts +1 -1
  154. package/color-palette/common-palettes.js +1 -1
  155. package/color-palette/native.d.ts +15 -2
  156. package/component-catalog.d.ts +42 -29
  157. package/configurator-actions.d.ts +67 -0
  158. package/configurator-actions.js +1 -0
  159. package/configurator-aggregation-list.d.ts +14 -0
  160. package/configurator-aggregation-list.js +63 -0
  161. package/configurator-drop-zone.d.ts +39 -0
  162. package/configurator-drop-zone.js +66 -0
  163. package/configurator-field-icon.d.ts +10 -0
  164. package/configurator-field-icon.js +1 -0
  165. package/configurator-focus.d.ts +4 -0
  166. package/configurator-focus.js +39 -0
  167. package/configurator-sections.d.ts +42 -0
  168. package/configurator-sections.js +71 -0
  169. package/control-attributes.js +7 -7
  170. package/control-presentation.d.ts +8 -2
  171. package/control-presentation.js +31 -26
  172. package/controls.d.ts +23 -11
  173. package/controls.js +4 -3
  174. package/core/editor-commit.d.ts +1 -1
  175. package/core/editor-popup-position.d.ts +6 -2
  176. package/core/editor-popup.d.ts +5 -1
  177. package/core/editor-popup.js +1 -1
  178. package/core/popover-controller.d.ts +35 -0
  179. package/core/popup-ownership.d.ts +2 -0
  180. package/core/selection-list-tooltips.d.ts +2 -0
  181. package/core/title-tooltip.d.ts +2 -0
  182. package/core/tooltip-session.d.ts +29 -0
  183. package/core/tooltip-surface.d.ts +13 -0
  184. package/core/tooltip-text.d.ts +6 -0
  185. package/core/tooltip.d.ts +35 -0
  186. package/core/top-layer-popup.d.ts +4 -0
  187. package/core/top-layer-popup.js +1 -23
  188. package/date-time/attach.d.ts +1 -1
  189. package/date-time/date-control.d.ts +2 -2
  190. package/date-time/field.d.ts +4 -3
  191. package/date-time/index.js +1 -1
  192. package/date-time/picker.d.ts +1 -1
  193. package/date-time/style.scss +242 -39
  194. package/date-time/time-control.d.ts +1 -1
  195. package/date-time/time-selection.d.ts +3 -1
  196. package/date-time/types.d.ts +6 -2
  197. package/dialog/dialog-action-footer.d.ts +17 -2
  198. package/dialog/dialog.dom.d.ts +15 -2
  199. package/dialog/dialog.dom.js +53 -53
  200. package/dialog/dialog.parts.d.ts +18 -18
  201. package/dialog/dialog.parts.js +1 -1
  202. package/dialog/dialog.preact.d.ts +1 -1
  203. package/dialog/dialog.preact.js +6 -6
  204. package/distribution-chart/_distribution-chart.scss +113 -77
  205. package/distribution-chart/area-chart.d.ts +1 -1
  206. package/distribution-chart/area-chart.js +25 -25
  207. package/distribution-chart/bar-chart.d.ts +6 -3
  208. package/distribution-chart/bar-chart.js +10 -6
  209. package/distribution-chart/chart-frame.d.ts +3 -2
  210. package/distribution-chart/index.d.ts +2 -2
  211. package/distribution-chart/index.js +6 -6
  212. package/distribution-chart/line-chart.d.ts +1 -1
  213. package/distribution-chart/line-chart.js +9 -9
  214. package/distribution-chart/types.d.ts +1 -1
  215. package/dropdown/content.d.ts +3 -2
  216. package/dropdown/content.js +1 -141
  217. package/dropdown/control.d.ts +14 -0
  218. package/dropdown/control.js +1 -0
  219. package/dropdown/control.view.d.ts +6 -0
  220. package/dropdown/dropdown.service.d.ts +1 -1
  221. package/dropdown/dropdown.service.js +9 -9
  222. package/dropdown/dropdown.types.d.ts +5 -1
  223. package/dropdown/editor-dropdown.style.scss +54 -16
  224. package/dropdown/index.d.ts +1 -1
  225. package/dropdown/index.js +3 -4
  226. package/dropdown/lookup-field.d.ts +6 -1
  227. package/dropdown/lookup-field.js +42 -41
  228. package/dropdown/popup.d.ts +2 -2
  229. package/dropdown/popup.js +1 -140
  230. package/duration/controls.d.ts +1 -1
  231. package/duration/index.d.ts +2 -2
  232. package/duration/index.js +1 -1
  233. package/duration/style.scss +1 -1
  234. package/editor-actions.d.ts +1 -1
  235. package/editor-actions.js +21 -20
  236. package/editor-layout/index.d.ts +5 -5
  237. package/editor-layout/index.js +43 -38
  238. package/editor-layout/style.scss +82 -18
  239. package/field-configurator.d.ts +40 -2
  240. package/field-configurator.js +4 -170
  241. package/field-expansion.d.ts +9 -0
  242. package/field-reorder.hook.js +32 -32
  243. package/fieldset.d.ts +3 -0
  244. package/filter/filters/slider/_single-slider.scss +57 -38
  245. package/filter/filters/slider/_slider.scss +41 -33
  246. package/filter/filters/slider/control.js +2 -0
  247. package/filter/filters/slider/preact.js +3 -3
  248. package/filter/filters/slider/runtime.js +49 -22
  249. package/filter/filters/slider/single.d.ts +1 -1
  250. package/filter/filters/slider/single.js +23 -23
  251. package/filter-badge.d.ts +1 -1
  252. package/filter-badge.js +23 -22
  253. package/filter-controls.d.ts +1 -2
  254. package/filter-controls.js +29 -30
  255. package/form-controls/field-context.d.ts +5 -0
  256. package/form-controls/index.d.ts +10 -2
  257. package/form-controls/index.js +17 -22
  258. package/form-controls/presentation.d.ts +2 -2
  259. package/form-controls/presentation.js +59 -51
  260. package/formatting/comparison-preview.d.ts +1 -1
  261. package/formatting/icon-controls.d.ts +1 -1
  262. package/formatting/index.d.ts +1 -1
  263. package/formatting/index.js +106 -100
  264. package/formatting/inspector-section.d.ts +1 -1
  265. package/formatting/styles.scss +14 -57
  266. package/formatting/typography-controls.d.ts +1 -1
  267. package/framework-mount.d.ts +1 -1
  268. package/framework.js +237 -226
  269. package/history-controls.d.ts +14 -0
  270. package/history-controls.js +27 -0
  271. package/icon-toolbar.d.ts +62 -0
  272. package/icon-toolbar.js +1 -0
  273. package/icons/icon.d.ts +2 -2
  274. package/icons/icon.js +1 -1
  275. package/legend.d.ts +2 -2
  276. package/legend.js +12 -12
  277. package/masked-input/index.d.ts +1 -1
  278. package/masked-input/index.js +109 -109
  279. package/native-control.d.ts +14 -13
  280. package/native-control.js +3 -26
  281. package/native-controls.d.ts +54 -2
  282. package/native-styles.css +1 -1
  283. package/native-styles.scss +6 -2
  284. package/native.d.ts +3 -3
  285. package/native.js +49 -45
  286. package/number-input/index.d.ts +2 -2
  287. package/number-input/index.js +1 -1
  288. package/package.json +88 -15
  289. package/pagination.d.ts +3 -0
  290. package/pagination.js +50 -40
  291. package/pdf-viewer/component.d.ts +1 -1
  292. package/pdf-viewer/controller.js +1 -1
  293. package/pdf-viewer/header.d.ts +2 -2
  294. package/pdf-viewer/index.d.ts +2 -2
  295. package/pdf-viewer/index.js +13 -13
  296. package/pdf-viewer/search-bar.d.ts +2 -2
  297. package/pdf-viewer/status.d.ts +2 -2
  298. package/pdf-viewer/style.scss +205 -45
  299. package/pdf-viewer/toolbar.d.ts +1 -1
  300. package/pickers.d.ts +6 -2
  301. package/preact-mount.d.ts +1 -1
  302. package/preact-mount.js +2 -2
  303. package/preact.d.ts +15 -10
  304. package/preact.js +109 -64
  305. package/progress/_bar.scss +9 -3
  306. package/progress/_circular.scss +2 -1
  307. package/rating-choice.d.ts +1 -1
  308. package/rating-choice.js +1 -1
  309. package/react-adapter.d.ts +5 -3
  310. package/react-control.d.ts +1 -0
  311. package/react.d.ts +20 -11
  312. package/react.js +72 -88
  313. package/reorder-list.d.ts +2 -2
  314. package/reorder-list.js +1 -1
  315. package/reorder-list.scss +59 -17
  316. package/resource-picker/resource-picker-avatar.d.ts +1 -1
  317. package/resource-picker/resource-picker-avatar.js +14 -14
  318. package/resource-picker/resource-picker-option.d.ts +1 -1
  319. package/resource-picker/resource-picker-option.js +28 -28
  320. package/resource-picker/resource-picker-popup.d.ts +1 -1
  321. package/resource-picker/resource-picker-popup.js +3 -3
  322. package/resource-picker/resource-picker.d.ts +1 -1
  323. package/resource-picker/resource-picker.js +68 -66
  324. package/resource-picker/resource-picker.scss +66 -35
  325. package/rich-text/engine.d.ts +17 -19
  326. package/rich-text/format-html.d.ts +2 -0
  327. package/rich-text/index.d.ts +11 -7
  328. package/rich-text/index.js +1 -1
  329. package/rich-text/model.d.ts +6 -3
  330. package/rich-text/render-model.d.ts +4 -5
  331. package/rich-text/style.scss +295 -55
  332. package/rich-text/syntax.d.ts +5 -2
  333. package/rich-text/toolbar.d.ts +7 -7
  334. package/rich-text/translations.d.ts +5 -15
  335. package/search-input/index.js +12 -12
  336. package/search-input/native.d.ts +21 -2
  337. package/segmented-switch/index.d.ts +1 -1
  338. package/segmented-switch/index.js +1 -1
  339. package/select.d.ts +22 -0
  340. package/select.js +1 -0
  341. package/selection-list.d.ts +1 -0
  342. package/selection-list.js +3 -1
  343. package/status-feedback/exit-snapshot.js +1 -1
  344. package/status-feedback/index.js +2 -2
  345. package/status-feedback/popover.js +9 -9
  346. package/status-feedback/render.d.ts +2 -2
  347. package/status-feedback/render.js +3 -44
  348. package/status-feedback/status-feedback.scss +130 -34
  349. package/status-feedback/types.d.ts +4 -0
  350. package/status-feedback/use-auto-dismiss.d.ts +3 -0
  351. package/styles/_activity-message.scss +24 -7
  352. package/styles/_alert.scss +78 -17
  353. package/styles/_cell-editor-frame.scss +11 -0
  354. package/styles/_compositions.scss +404 -82
  355. package/styles/_control.scss +42 -12
  356. package/styles/_disclosure.scss +15 -5
  357. package/styles/_editor-counter.scss +16 -6
  358. package/styles/_editor-slider.scss +8 -4
  359. package/styles/_field-configurator.scss +321 -23
  360. package/styles/_fields-grid.scss +49 -0
  361. package/styles/_filter-controls.scss +10 -2
  362. package/styles/_icon-action.scss +48 -15
  363. package/styles/_loading.scss +12 -3
  364. package/styles/_motion.scss +32 -9
  365. package/styles/_palette.scss +0 -24
  366. package/styles/_primitives.scss +376 -116
  367. package/styles/_theme.scss +130 -86
  368. package/styles/_thresholds.scss +28 -25
  369. package/styles/_time-grid.scss +8 -3
  370. package/styles/_tokens.scss +6 -1
  371. package/styles/configurator-actions.scss +241 -0
  372. package/styles/pagination.css +213 -0
  373. package/styles/{legacy-rating.css → rating.css} +8 -3
  374. package/styles.css +1 -1
  375. package/styles.scss +3 -5
  376. package/surfaces.d.ts +38 -2
  377. package/surfaces.js +37 -134
  378. package/svelte/UiComponent.server.js +1 -48
  379. package/svelte/UiComponent.svelte +44 -32
  380. package/svelte.d.ts +1 -1
  381. package/svelte.js +33 -68
  382. package/switch/index.js +3 -2
  383. package/time-grid.d.ts +1 -2
  384. package/time-grid.js +43 -42
  385. package/timeline-track/_style.scss +96 -24
  386. package/timeline-track/component.d.ts +5 -1
  387. package/timeline-track/index.js +91 -74
  388. package/timeline-track/model.d.ts +9 -0
  389. package/timeline-track/model.js +10 -1
  390. package/ui.css +1 -1
  391. package/view-switcher.d.ts +23 -0
  392. package/vue-adapter.d.ts +1 -1
  393. package/vue.d.ts +160 -144
  394. package/vue.js +149 -178
  395. package/_chunks/calendar-BsDxCYhI.js +0 -248
  396. package/_chunks/chart-frame-BvxbmEU9.js +0 -126
  397. package/_chunks/choice-chips-0HfOnK_4.js +0 -110
  398. package/_chunks/color-palette-BmZ7kH9R.js +0 -94
  399. package/_chunks/component-D4PH5UZT.js +0 -859
  400. package/_chunks/control-tooltip-BCNzQCXE.js +0 -100
  401. package/_chunks/controls-NEL5tDaz.js +0 -615
  402. package/_chunks/date-time-DjucJmbc.js +0 -769
  403. package/_chunks/dialog.parts-Dt3KinUz.js +0 -134
  404. package/_chunks/dropdown-CkGQBm1Q.js +0 -357
  405. package/_chunks/duration-BCaktcvz.js +0 -270
  406. package/_chunks/editor-commit-D6Rf5rGz.js +0 -12
  407. package/_chunks/editor-popup-B7fu_A_T.js +0 -81
  408. package/_chunks/framework-mount-BKIOsvY-.js +0 -54
  409. package/_chunks/mount-0-8opf1j.js +0 -90
  410. package/_chunks/native.view-8q_nwQ7x.js +0 -32
  411. package/_chunks/picker-oazJ7sO_.js +0 -121
  412. package/_chunks/reorder-list-BV3kZXso.js +0 -59
  413. package/_chunks/request-trail-D0oVzdRd.js +0 -347
  414. package/_chunks/rich-text-2Rla349o.js +0 -477
  415. package/avatar/index.view.d.ts +0 -25
  416. package/color-palette/native.view.d.ts +0 -15
  417. package/control-presentation.view.d.ts +0 -8
  418. package/dialog/dialog-action-footer.view.d.ts +0 -20
  419. package/dialog/dialog.dom.view.d.ts +0 -15
  420. package/form-controls/index.view.d.ts +0 -12
  421. package/formatting/control-tooltip.d.ts +0 -27
  422. package/native-controls.view.d.ts +0 -54
  423. package/react-native-select.d.ts +0 -6
  424. package/search-input/native.view.d.ts +0 -21
  425. package/styles/legacy-pagination.css +0 -112
  426. package/surfaces.view.d.ts +0 -63
  427. package/vue-native-select.d.ts +0 -9
@@ -69,10 +69,6 @@ var r = {
69
69
  prop: "value",
70
70
  callback: "onValueChange"
71
71
  },
72
- ResourcePicker: {
73
- prop: "selectedResourceIds",
74
- callback: "onChange"
75
- },
76
72
  SharedResourcePicker: {
77
73
  prop: "selectedResourceIds",
78
74
  callback: "onChange"
@@ -97,14 +93,6 @@ var r = {
97
93
  prop: "value",
98
94
  callback: "onValueChange"
99
95
  },
100
- NativeSelect: {
101
- prop: "value",
102
- callback: "onValueChange"
103
- },
104
- Slider: {
105
- prop: "value",
106
- callback: "onChange"
107
- },
108
96
  Checkbox: {
109
97
  prop: "checked",
110
98
  callback: "onChange"
@@ -0,0 +1,155 @@
1
+ import { c as e, i as t, n } from "./preact.module-BBM36DnO.js";
2
+ import { t as r } from "./jsxRuntime.module-F6UFnpT-.js";
3
+ import { SvgIcon as i } from "../icons/icon.js";
4
+ import { t as a } from "./native-control-B9MNibfa.js";
5
+ import { t as o } from "./popup-C35Isk7p.js";
6
+ import { renderControl as s } from "../control-presentation.js";
7
+ import "./check-BwI7iCAm.js";
8
+ import { t as c } from "./plus-CbGRkIGl.js";
9
+ import { SearchInput as l } from "../search-input/index.js";
10
+ import { S as u, c as d, p as f, r as p } from "./field-configurator-B-qtIwx1.js";
11
+ import { t as m } from "./calculator-CDWOuAcp.js";
12
+ import "./magnifying-glass-CvrTDSkB.js";
13
+ import { t as h } from "./configurator-field-icon-CmcM_sPs.js";
14
+ //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/gear.svg?raw
15
+ var g = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M195.1 9.5C198.1-5.3 211.2-16 226.4-16l59.8 0c15.2 0 28.3 10.7 31.3 25.5L332 79.5c14.1 6 27.3 13.7 39.3 22.8l67.8-22.5c14.4-4.8 30.2 1.2 37.8 14.4l29.9 51.8c7.6 13.2 4.9 29.8-6.5 39.9L447 233.3c.9 7.4 1.3 15 1.3 22.7s-.5 15.3-1.3 22.7l53.4 47.5c11.4 10.1 14 26.8 6.5 39.9l-29.9 51.8c-7.6 13.1-23.4 19.2-37.8 14.4l-67.8-22.5c-12.1 9.1-25.3 16.7-39.3 22.8l-14.4 69.9c-3.1 14.9-16.2 25.5-31.3 25.5l-59.8 0c-15.2 0-28.3-10.7-31.3-25.5l-14.4-69.9c-14.1-6-27.2-13.7-39.3-22.8L73.5 432.3c-14.4 4.8-30.2-1.2-37.8-14.4L5.8 366.1c-7.6-13.2-4.9-29.8 6.5-39.9l53.4-47.5c-.9-7.4-1.3-15-1.3-22.7s.5-15.3 1.3-22.7L12.3 185.8c-11.4-10.1-14-26.8-6.5-39.9L35.7 94.1c7.6-13.2 23.4-19.2 37.8-14.4l67.8 22.5c12.1-9.1 25.3-16.7 39.3-22.8L195.1 9.5zM256.3 336a80 80 0 1 0 -.6-160 80 80 0 1 0 .6 160z\"/></svg>", _ = {
16
+ rows: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z\"/></svg>",
17
+ columns: u,
18
+ values: m,
19
+ filters: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M32 64C19.1 64 7.4 71.8 2.4 83.8S.2 109.5 9.4 118.6L192 301.3 192 416c0 8.5 3.4 16.6 9.4 22.6l64 64c9.2 9.2 22.9 11.9 34.9 6.9S320 492.9 320 480l0-178.7 182.6-182.6c9.2-9.2 11.9-22.9 6.9-34.9S492.9 64 480 64L32 64z\"/></svg>"
20
+ };
21
+ function v(t, { icon: n, buttonRef: r, ...i }) {
22
+ let a = t, o = n === "plus" ? c : g;
23
+ return a("div", { class: "pivot-field-action-trigger rv-configurator-action-trigger" }, s(a, "button", {
24
+ ...i,
25
+ ref: r,
26
+ type: "button",
27
+ "data-configurator-action": n === "gear" ? "settings" : void 0,
28
+ class: "rv-btn rv-configurator-action-button pivot-field-action-icon"
29
+ }, a("span", {
30
+ "aria-hidden": "true",
31
+ "data-icon": n,
32
+ ...t === e ? { dangerouslySetInnerHTML: { __html: o } } : { innerHTML: o }
33
+ })));
34
+ }
35
+ function y(t) {
36
+ return v(e, t);
37
+ }
38
+ function b(e) {
39
+ return /* @__PURE__ */ r(f, {
40
+ ...e,
41
+ className: `pivot-remove-button ${e.className ?? ""}`
42
+ });
43
+ }
44
+ function x({ text: e, icon: t, explanation: n, checked: o, ...s }) {
45
+ return /* @__PURE__ */ r(a, {
46
+ type: "button",
47
+ className: "rv-btn",
48
+ ...s,
49
+ children: [
50
+ t,
51
+ /* @__PURE__ */ r("span", {
52
+ className: "pivot-field-action-copy",
53
+ children: [e, n && /* @__PURE__ */ r("span", {
54
+ className: "pivot-action-reason",
55
+ children: n
56
+ })]
57
+ }),
58
+ o && /* @__PURE__ */ r(i, {
59
+ className: "pivot-field-action-check",
60
+ svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z\"/></svg>"
61
+ })
62
+ ]
63
+ });
64
+ }
65
+ function S({ svg: e }) {
66
+ return /* @__PURE__ */ r(i, {
67
+ className: "pivot-field-action-symbol",
68
+ svg: e
69
+ });
70
+ }
71
+ function C({ add: e, clear: t, children: n }) {
72
+ return /* @__PURE__ */ r(p, {
73
+ className: "pivot-zone-actions",
74
+ children: [
75
+ /* @__PURE__ */ r(y, { ...e }),
76
+ t && /* @__PURE__ */ r(b, { ...t }),
77
+ n
78
+ ]
79
+ });
80
+ }
81
+ function w({ label: e }) {
82
+ return /* @__PURE__ */ r("span", {
83
+ className: "pivot-filter-active",
84
+ "aria-label": e
85
+ });
86
+ }
87
+ function T({ children: e, annotation: n }) {
88
+ return /* @__PURE__ */ r(t, { children: [e, n && /* @__PURE__ */ r("small", {
89
+ className: "pivot-field-annotation",
90
+ children: n
91
+ })] });
92
+ }
93
+ function E({ children: e }) {
94
+ return /* @__PURE__ */ r("p", {
95
+ className: "pivot-inspector-hint",
96
+ children: e
97
+ });
98
+ }
99
+ function D(e) {
100
+ return /* @__PURE__ */ r(l, {
101
+ ...e,
102
+ rootClassName: `rv-configurator-field-search ${e.rootClassName ?? ""}`,
103
+ icon: e.icon ?? /* @__PURE__ */ r(d, { svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z\"/></svg>" })
104
+ });
105
+ }
106
+ function O({ children: e, emptyText: t }) {
107
+ return /* @__PURE__ */ r("div", {
108
+ className: "pivot-field-picker-list rv-configurator-field-picker",
109
+ children: n(e).length ? e : t && /* @__PURE__ */ r("p", { children: t })
110
+ });
111
+ }
112
+ function k({ section: e, children: t }) {
113
+ let i = n(t);
114
+ return i.length ? /* @__PURE__ */ r("div", {
115
+ className: "pivot-field-action-group rv-configurator-action-group",
116
+ "data-section": e,
117
+ children: i
118
+ }) : null;
119
+ }
120
+ function A({ title: e, accessibleLabel: t = e, header: n, panelRef: i, onKeyDown: a, children: s, ...c }) {
121
+ return /* @__PURE__ */ r(o, {
122
+ ...c,
123
+ topLayer: !0,
124
+ closeOnClickOutside: !0,
125
+ popupClassName: "pivot-field-action-popover",
126
+ children: /* @__PURE__ */ r("div", {
127
+ ref: i,
128
+ className: "pivot-field-action-panel rv-configurator-action-panel",
129
+ role: "region",
130
+ "aria-label": t,
131
+ onKeyDown: a,
132
+ children: [/* @__PURE__ */ r("div", {
133
+ className: "pivot-field-action-header",
134
+ children: [/* @__PURE__ */ r("strong", {
135
+ className: "pivot-field-action-title",
136
+ children: e
137
+ }), n]
138
+ }), /* @__PURE__ */ r("div", {
139
+ className: "pivot-field-action-body",
140
+ children: s
141
+ })]
142
+ })
143
+ });
144
+ }
145
+ function j({ field: e }) {
146
+ let t = h(e);
147
+ return /* @__PURE__ */ r("span", {
148
+ className: "rv-configurator-icon column-icon",
149
+ "aria-hidden": "true",
150
+ "data-field-icon": t.kind,
151
+ dangerouslySetInnerHTML: { __html: t.svg }
152
+ });
153
+ }
154
+ //#endregion
155
+ export { A as a, O as c, w as d, E as f, v as h, S as i, D as l, C as m, x as n, y as o, b as p, k as r, T as s, _ as t, j as u };
@@ -0,0 +1,53 @@
1
+ import { t as e } from "./clock-BOhPNlW3.js";
2
+ //#region ../../node_modules/.pnpm/@fortawesome+fontawesome-free@7.3.1/node_modules/@fortawesome/fontawesome-free/svgs/solid/font.svg?raw
3
+ var t = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M285.1 50.7C279.9 39.3 268.5 32 256 32s-23.9 7.3-29.1 18.7L59.5 416 48 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l88 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-6.1 0 22-48 208.3 0 22 48-6.1 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l88 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-11.5 0-167.4-365.3zM330.8 304L181.2 304 256 140.8 330.8 304z\"/></svg>", n = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M214.7 .7c17.3 3.7 28.3 20.7 24.6 38l-19.1 89.3 126.5 0 22-102.7C372.4 8 389.4-3 406.7 .7s28.3 20.7 24.6 38L412.2 128 480 128c17.7 0 32 14.3 32 32s-14.3 32-32 32l-81.6 0-27.4 128 67.8 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-81.6 0-22 102.7c-3.7 17.3-20.7 28.3-38 24.6s-28.3-20.7-24.6-38l19.1-89.3-126.5 0-22 102.7c-3.7 17.3-20.7 28.3-38 24.6s-28.3-20.7-24.6-38L99.8 384 32 384c-17.7 0-32-14.3-32-32s14.3-32 32-32l81.6 0 27.4-128-67.8 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l81.6 0 22-102.7C180.4 8 197.4-3 214.7 .7zM206.4 192l-27.4 128 126.5 0 27.4-128-126.5 0z\"/></svg>", r = {
4
+ string: {
5
+ svg: t,
6
+ label: "string"
7
+ },
8
+ number: {
9
+ svg: n,
10
+ label: "number"
11
+ },
12
+ integer: {
13
+ svg: n,
14
+ label: "integer"
15
+ },
16
+ decimal: {
17
+ svg: n,
18
+ label: "decimal"
19
+ },
20
+ percent: {
21
+ svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M192 128a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM448 384a96 96 0 1 0 -192 0 96 96 0 1 0 192 0zM438.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-384 384c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l384-384z\"/></svg>",
22
+ label: "percent"
23
+ },
24
+ currency: {
25
+ svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M136 24c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 56 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-114.9 0c-24.9 0-45.1 20.2-45.1 45.1 0 22.5 16.5 41.5 38.7 44.7l91.6 13.1c53.8 7.7 93.7 53.7 93.7 108 0 60.3-48.9 109.1-109.1 109.1l-10.9 0 0 40c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-40-72 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l130.9 0c24.9 0 45.1-20.2 45.1-45.1 0-22.5-16.5-41.5-38.7-44.7l-91.6-13.1C55.9 273.5 16 227.4 16 173.1 16 112.9 64.9 64 125.1 64l10.9 0 0-40z\"/></svg>",
26
+ label: "currency"
27
+ },
28
+ date: {
29
+ svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM64 240l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 368l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z\"/></svg>",
30
+ label: "date"
31
+ },
32
+ time: {
33
+ svg: e,
34
+ label: "time"
35
+ },
36
+ boolean: {
37
+ svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M192 64C86 64 0 150 0 256S86 448 192 448l192 0c106 0 192-86 192-192S490 64 384 64L192 64zm192 96a96 96 0 1 1 0 192 96 96 0 1 1 0-192z\"/></svg>",
38
+ label: "boolean"
39
+ },
40
+ id: {
41
+ svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><!--! Font Awesome Free 7.3.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2026 Fonticons, Inc. --><path fill=\"currentColor\" d=\"M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0 160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z\"/></svg>",
42
+ label: "id"
43
+ }
44
+ };
45
+ function i(e) {
46
+ let t = e?.columnType && Object.hasOwn(r, e.columnType) ? e.columnType : e?.dataType ?? "string";
47
+ return {
48
+ ...r[t] ?? r.string,
49
+ kind: t
50
+ };
51
+ }
52
+ //#endregion
53
+ export { i as t };
@@ -0,0 +1,118 @@
1
+ import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
2
+ import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
3
+ import { d as r, u as i } from "./native-control-B9MNibfa.js";
4
+ //#region src/dropdown/control.view.tsx
5
+ function a(r) {
6
+ let i, a, o = t(r, /* @__PURE__ */ e("div", { children: [/* @__PURE__ */ e("div", {
7
+ style: { display: "contents" },
8
+ ref: (e) => {
9
+ e && (i = e);
10
+ }
11
+ }), /* @__PURE__ */ e("input", {
12
+ type: "hidden",
13
+ ref: (e) => {
14
+ e && (a = e);
15
+ }
16
+ })] }));
17
+ return {
18
+ element: o,
19
+ mount: i,
20
+ input: a,
21
+ release: () => n(o)
22
+ };
23
+ }
24
+ //#endregion
25
+ //#region src/dropdown/control.ts
26
+ function o(e, t) {
27
+ let { element: n, mount: o, input: s, release: c } = a(e), l = { ...t }, u = !1, d = () => {
28
+ u || (s.name = l.name ?? "", s.disabled = !!l.disabled || !l.name, s.value = l.value == null ? "" : String(l.value), i(o, {
29
+ ...l,
30
+ config: {
31
+ nativeTabNavigation: !0,
32
+ ...l.config
33
+ },
34
+ name: void 0,
35
+ className: `rv-select ${l.className ?? ""}`,
36
+ onChange: (e) => {
37
+ let t = Array.isArray(e) ? e[0] : e;
38
+ l = {
39
+ ...l,
40
+ value: t
41
+ }, d(), f.onChange?.(t);
42
+ }
43
+ }));
44
+ }, f = {
45
+ element: n,
46
+ get value() {
47
+ return l.value;
48
+ },
49
+ set value(e) {
50
+ l = {
51
+ ...l,
52
+ value: e
53
+ }, d();
54
+ },
55
+ get source() {
56
+ return l.source ?? [];
57
+ },
58
+ set source(e) {
59
+ l = {
60
+ ...l,
61
+ source: e
62
+ }, d();
63
+ },
64
+ get disabled() {
65
+ return !!l.disabled;
66
+ },
67
+ set disabled(e) {
68
+ l = {
69
+ ...l,
70
+ disabled: e
71
+ }, d();
72
+ },
73
+ onChange: t.onChange ? (e) => t.onChange?.(e) : void 0,
74
+ update(e) {
75
+ "onChange" in e && (f.onChange = e.onChange ? (t) => e.onChange?.(t) : void 0), l = {
76
+ ...l,
77
+ ...e
78
+ }, d();
79
+ },
80
+ destroy() {
81
+ u || (u = !0, r(o), c());
82
+ }
83
+ };
84
+ return d(), f;
85
+ }
86
+ var s = /* @__PURE__ */ new WeakMap();
87
+ function c(e, t) {
88
+ let n = Symbol(), r, i = () => {
89
+ if (!r) return;
90
+ let e = s.get(r);
91
+ e?.owner === n && (e.control.destroy(), s.delete(r)), r = void 0;
92
+ };
93
+ return e("span", { ref: (e) => {
94
+ if (!e) {
95
+ i();
96
+ return;
97
+ }
98
+ r && r !== e && i(), r = e;
99
+ let a = s.get(e);
100
+ if (a) {
101
+ a.owner = n;
102
+ let r = Object.fromEntries(a.keys.map((e) => [e, void 0]));
103
+ a.keys = Object.keys(t), a.control.update({
104
+ ...r,
105
+ ...t
106
+ }), a.control.element.parentElement !== e && e.append(a.control.element);
107
+ } else {
108
+ let r = o(e.ownerDocument, t);
109
+ s.set(e, {
110
+ control: r,
111
+ owner: n,
112
+ keys: Object.keys(t)
113
+ }), e.append(r.element);
114
+ }
115
+ } });
116
+ }
117
+ //#endregion
118
+ export { c as n, o as t };
@@ -1,5 +1,5 @@
1
- import { createPreactElement as e, releasePreactElement as t } from "../preact-mount.js";
2
- import { jsx as n } from "preact/jsx-runtime";
1
+ import { t as e } from "./jsxRuntime.module-F6UFnpT-.js";
2
+ import { createPreactElement as t, releasePreactElement as n } from "../preact-mount.js";
3
3
  //#region src/pdf-viewer/runtime.ts
4
4
  async function r() {
5
5
  let e = await import("pdfjs-dist"), t = await import("pdfjs-dist/web/pdf_viewer.mjs");
@@ -33,29 +33,29 @@ async function s(e) {
33
33
  }
34
34
  //#endregion
35
35
  //#region src/pdf-viewer/surfaces.view.tsx
36
- var c = (t) => e(t, /* @__PURE__ */ n("div", { class: "pdfViewer" })), l = (t, r, i) => e(t, /* @__PURE__ */ n("a", {
36
+ var c = (n) => t(n, /* @__PURE__ */ e("div", { class: "pdfViewer" })), l = (n, r, i) => t(n, /* @__PURE__ */ e("a", {
37
37
  href: r,
38
38
  download: i
39
- })), u = (t, r) => e(t, /* @__PURE__ */ n("iframe", {
39
+ })), u = (n, r) => t(n, /* @__PURE__ */ e("iframe", {
40
40
  title: r,
41
41
  style: "position:fixed;left:-10000px;top:0;width:800px;height:600px;border:0"
42
- })), d = (t) => e(t, /* @__PURE__ */ n("style", { children: "@page{margin:0}body{margin:0}canvas{display:block;width:100%;height:auto;break-after:page}canvas:last-child{break-after:auto}" })), f = (t, r, i) => e(t, /* @__PURE__ */ n("canvas", {
42
+ })), d = (n) => t(n, /* @__PURE__ */ e("style", { children: "@page{margin:0}body{margin:0}canvas{display:block;width:100%;height:auto;break-after:page}canvas:last-child{break-after:auto}" })), f = (n, r, i) => t(n, /* @__PURE__ */ e("canvas", {
43
43
  width: r,
44
44
  height: i
45
45
  }));
46
46
  //#endregion
47
47
  //#region src/pdf-viewer/print.ts
48
- async function p(e, n, r, i = "PDF print document") {
48
+ async function p(e, t, r, i = "PDF print document") {
49
49
  r.throwIfAborted();
50
- let a = u(n, i), o = [], s, c = !1;
51
- n.body.append(a);
50
+ let a = u(t, i), o = [], s, c = !1;
51
+ t.body.append(a);
52
52
  let l = () => {
53
53
  if (c) return;
54
54
  c = !0, r.removeEventListener("abort", l);
55
55
  let e = a.contentDocument;
56
56
  o.forEach((e) => {
57
- e.width = 0, e.height = 0, t(e);
58
- }), s && t(s), e?.body.replaceChildren(), t(a);
57
+ e.width = 0, e.height = 0, n(e);
58
+ }), s && n(s), e?.body.replaceChildren(), n(a);
59
59
  };
60
60
  r.addEventListener("abort", l, { once: !0 });
61
61
  let p, m = () => p?.cancel();
@@ -139,7 +139,7 @@ var m = class {
139
139
  return this.lastSource !== null;
140
140
  }
141
141
  retry() {
142
- return this.initializationFailed && this.container && !this.disposed && (this.lifetime.abort(), this.lifetime = new AbortController(), this.content && t(this.content), this.content = void 0, this.viewer = void 0, this.links = void 0, this.bus = void 0, this.startInitialization(this.container)), this.load(this.lastSource, this.lastFileName);
142
+ return this.initializationFailed && this.container && !this.disposed && (this.lifetime.abort(), this.lifetime = new AbortController(), this.content && n(this.content), this.content = void 0, this.viewer = void 0, this.links = void 0, this.bus = void 0, this.startInitialization(this.container)), this.load(this.lastSource, this.lastFileName);
143
143
  }
144
144
  setCallbacks(e) {
145
145
  let { onLoad: t, onError: n, onPageChange: r, onZoomChange: i } = e;
@@ -337,15 +337,15 @@ var m = class {
337
337
  async download() {
338
338
  let e = this.document;
339
339
  if (e && this.container) try {
340
- let n = await e.getData();
340
+ let t = await e.getData();
341
341
  if (this.disposed || e !== this.document) return;
342
- let r = URL.createObjectURL(new Blob([new Uint8Array(n)], { type: "application/pdf" }));
342
+ let r = URL.createObjectURL(new Blob([new Uint8Array(t)], { type: "application/pdf" }));
343
343
  this.downloadUrls.add(r);
344
344
  let i = l(this.container.ownerDocument, r, this.state.fileName);
345
345
  try {
346
346
  i.click();
347
347
  } finally {
348
- t(i);
348
+ n(i);
349
349
  }
350
350
  setTimeout(() => {
351
351
  URL.revokeObjectURL(r), this.downloadUrls.delete(r);
@@ -385,7 +385,7 @@ var m = class {
385
385
  this.cancelPrint();
386
386
  }
387
387
  destroy() {
388
- this.disposed || (this.disposed = !0, this.generation++, this.releaseDocument(), this.lastSource = null, this.lifetime.abort(), this.downloadUrls.forEach((e) => URL.revokeObjectURL(e)), this.downloadUrls.clear(), this.listeners.clear(), this.content && t(this.content), this.content = void 0, this.container?.replaceChildren(), this.bus = void 0, this.viewer = void 0, this.links = void 0, this.container = void 0);
388
+ this.disposed || (this.disposed = !0, this.generation++, this.releaseDocument(), this.lastSource = null, this.lifetime.abort(), this.downloadUrls.forEach((e) => URL.revokeObjectURL(e)), this.downloadUrls.clear(), this.listeners.clear(), this.content && n(this.content), this.content = void 0, this.container?.replaceChildren(), this.bus = void 0, this.viewer = void 0, this.links = void 0, this.container = void 0);
389
389
  }
390
390
  };
391
391
  //#endregion