@emuanalytics/flow-rdf-ui 4.0.5 → 4.0.6

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 (355) hide show
  1. package/dist/components/alert/alert.component.mjs +202 -0
  2. package/dist/components/alert/alert.mjs +5 -0
  3. package/dist/components/alert/alert.styles.mjs +107 -0
  4. package/dist/components/animation/animation.component.mjs +207 -0
  5. package/dist/components/animation/animation.mjs +5 -0
  6. package/dist/components/animation/animation.styles.mjs +12 -0
  7. package/dist/components/animation/animations.mjs +11 -0
  8. package/dist/components/avatar/avatar.component.mjs +95 -0
  9. package/dist/components/avatar/avatar.mjs +5 -0
  10. package/dist/components/avatar/avatar.styles.mjs +70 -0
  11. package/dist/components/badge/badge.component.mjs +62 -0
  12. package/dist/components/badge/badge.mjs +5 -0
  13. package/dist/components/badge/badge.styles.mjs +105 -0
  14. package/dist/components/breadcrumb/breadcrumb.component.mjs +82 -0
  15. package/dist/components/breadcrumb/breadcrumb.mjs +5 -0
  16. package/dist/components/breadcrumb/breadcrumb.styles.mjs +14 -0
  17. package/dist/components/breadcrumb-item/breadcrumb-item.component.mjs +73 -0
  18. package/dist/components/breadcrumb-item/breadcrumb-item.mjs +5 -0
  19. package/dist/components/breadcrumb-item/breadcrumb-item.styles.mjs +90 -0
  20. package/dist/components/button/button.component.mjs +310 -0
  21. package/dist/components/button/button.mjs +5 -0
  22. package/dist/components/button/button.styles.mjs +690 -0
  23. package/dist/components/button-group/button-group.component.mjs +108 -0
  24. package/dist/components/button-group/button-group.mjs +5 -0
  25. package/dist/components/button-group/button-group.styles.mjs +21 -0
  26. package/dist/components/calendar/calendar.component.mjs +320 -0
  27. package/dist/components/calendar/calendar.mjs +5 -0
  28. package/dist/components/calendar/calendar.styles.mjs +145 -0
  29. package/dist/components/card/card.component.mjs +33 -0
  30. package/dist/components/card/card.mjs +5 -0
  31. package/dist/components/card/card.styles.mjs +73 -0
  32. package/dist/components/carousel/autoplay-controller.mjs +56 -0
  33. package/dist/components/carousel/carousel.component.mjs +406 -0
  34. package/dist/components/carousel/carousel.mjs +5 -0
  35. package/dist/components/carousel/carousel.styles.mjs +162 -0
  36. package/dist/components/carousel/scroll-controller.mjs +148 -0
  37. package/dist/components/carousel-item/carousel-item.component.mjs +22 -0
  38. package/dist/components/carousel-item/carousel-item.mjs +5 -0
  39. package/dist/components/carousel-item/carousel-item.styles.mjs +28 -0
  40. package/dist/components/chart/chart.component.mjs +82 -0
  41. package/dist/components/chart/chart.mjs +5 -0
  42. package/dist/components/chart/chart.styles.mjs +80 -0
  43. package/dist/components/chart/chartjs-plugins/interaction.interpolate.mjs +80 -0
  44. package/dist/components/chart/chartjs-plugins/plugin.flow-ui-colors.mjs +135 -0
  45. package/dist/components/chart/chartjs-plugins/positioner.cursor.mjs +14 -0
  46. package/dist/components/chart/chartjs-plugins/symlog.scale.mjs +42 -0
  47. package/dist/components/chart/chartjs-support.mjs +59 -0
  48. package/dist/components/checkbox/checkbox.component.mjs +246 -0
  49. package/dist/components/checkbox/checkbox.mjs +5 -0
  50. package/dist/components/checkbox/checkbox.styles.mjs +177 -0
  51. package/dist/components/color-mapper/color-mapper.component.mjs +260 -0
  52. package/dist/components/color-mapper/color-mapper.mjs +5 -0
  53. package/dist/components/color-mapper/color-mapper.styles.mjs +92 -0
  54. package/dist/components/color-mapper/helpers.mjs +55 -0
  55. package/dist/components/color-picker/color-picker.component.mjs +919 -0
  56. package/dist/components/color-picker/color-picker.mjs +5 -0
  57. package/dist/components/color-picker/color-picker.styles.mjs +337 -0
  58. package/dist/components/color-stop/color-stop.component.mjs +289 -0
  59. package/dist/components/color-stop/color-stop.mjs +5 -0
  60. package/dist/components/color-stop/color-stop.styles.mjs +103 -0
  61. package/dist/components/date-time-picker/date-time-picker.component.mjs +532 -0
  62. package/dist/components/date-time-picker/date-time-picker.mjs +5 -0
  63. package/dist/components/date-time-picker/date-time-picker.styles.mjs +260 -0
  64. package/dist/components/details/details.component.mjs +194 -0
  65. package/dist/components/details/details.mjs +5 -0
  66. package/dist/components/details/details.styles.mjs +85 -0
  67. package/dist/components/dialog/dialog.component.mjs +256 -0
  68. package/dist/components/dialog/dialog.mjs +5 -0
  69. package/dist/components/dialog/dialog.styles.mjs +125 -0
  70. package/dist/components/divider/divider.component.mjs +45 -0
  71. package/dist/components/divider/divider.mjs +5 -0
  72. package/dist/components/divider/divider.styles.mjs +34 -0
  73. package/dist/components/drawer/drawer.component.mjs +354 -0
  74. package/dist/components/drawer/drawer.mjs +5 -0
  75. package/dist/components/drawer/drawer.styles.mjs +161 -0
  76. package/dist/components/dropdown/dropdown.component.mjs +381 -0
  77. package/dist/components/dropdown/dropdown.mjs +5 -0
  78. package/dist/components/dropdown/dropdown.styles.mjs +56 -0
  79. package/dist/components/gauge/gauge.component.mjs +151 -0
  80. package/dist/components/gauge/gauge.mjs +5 -0
  81. package/dist/components/gauge/gauge.styles.mjs +127 -0
  82. package/dist/components/icon/icon.component.mjs +146 -0
  83. package/dist/components/icon/icon.mjs +5 -0
  84. package/dist/components/icon/icon.styles.mjs +35 -0
  85. package/dist/components/icon/library.default.mjs +38 -0
  86. package/dist/components/icon/library.mjs +38 -0
  87. package/dist/components/icon/library.system.mjs +158 -0
  88. package/dist/components/icon-button/icon-button.component.mjs +239 -0
  89. package/dist/components/icon-button/icon-button.mjs +5 -0
  90. package/dist/components/icon-button/icon-button.styles.mjs +81 -0
  91. package/dist/components/input/input.component.mjs +574 -0
  92. package/dist/components/input/input.mjs +5 -0
  93. package/dist/components/input/input.styles.mjs +310 -0
  94. package/dist/components/map/map.component.mjs +196 -0
  95. package/dist/components/map/map.mjs +5 -0
  96. package/dist/components/map/map.styles.mjs +90 -0
  97. package/dist/components/menu/menu.component.mjs +125 -0
  98. package/dist/components/menu/menu.mjs +5 -0
  99. package/dist/components/menu/menu.styles.mjs +23 -0
  100. package/dist/components/menu-item/menu-item.component.mjs +143 -0
  101. package/dist/components/menu-item/menu-item.mjs +5 -0
  102. package/dist/components/menu-item/menu-item.styles.mjs +103 -0
  103. package/dist/components/menu-label/menu-label.component.mjs +14 -0
  104. package/dist/components/menu-label/menu-label.mjs +5 -0
  105. package/dist/components/menu-label/menu-label.styles.mjs +24 -0
  106. package/dist/components/mutation-observer/mutation-observer.component.mjs +115 -0
  107. package/dist/components/mutation-observer/mutation-observer.mjs +5 -0
  108. package/dist/components/mutation-observer/mutation-observer.styles.mjs +12 -0
  109. package/dist/components/option/option.component.mjs +152 -0
  110. package/dist/components/option/option.mjs +5 -0
  111. package/dist/components/option/option.styles.mjs +102 -0
  112. package/dist/components/panel/panel.component.mjs +90 -0
  113. package/dist/components/panel/panel.mjs +5 -0
  114. package/dist/components/panel/panel.styles.mjs +51 -0
  115. package/dist/components/panel-header/panel-header.component.mjs +131 -0
  116. package/dist/components/panel-header/panel-header.mjs +5 -0
  117. package/dist/components/panel-header/panel-header.styles.mjs +67 -0
  118. package/dist/components/popup/popup.component.mjs +420 -0
  119. package/dist/components/popup/popup.mjs +5 -0
  120. package/dist/components/popup/popup.styles.mjs +63 -0
  121. package/dist/components/progress-bar/progress-bar.component.mjs +70 -0
  122. package/dist/components/progress-bar/progress-bar.mjs +5 -0
  123. package/dist/components/progress-bar/progress-bar.styles.mjs +87 -0
  124. package/dist/components/progress-ring/progress-ring.component.mjs +71 -0
  125. package/dist/components/progress-ring/progress-ring.mjs +5 -0
  126. package/dist/components/progress-ring/progress-ring.styles.mjs +72 -0
  127. package/dist/components/query-builder/converters/flow-query-converters.mjs +111 -0
  128. package/dist/components/query-builder/converters/map-layer-filter-converter.mjs +99 -0
  129. package/dist/components/query-builder/default-value-templates.mjs +151 -0
  130. package/dist/components/query-builder/helpers.mjs +42 -0
  131. package/dist/components/query-builder/query-builder.component.mjs +466 -0
  132. package/dist/components/query-builder/query-builder.mjs +5 -0
  133. package/dist/components/query-builder/query-builder.styles.mjs +261 -0
  134. package/dist/components/radio/radio.component.mjs +144 -0
  135. package/dist/components/radio/radio.mjs +5 -0
  136. package/dist/components/radio/radio.styles.mjs +164 -0
  137. package/dist/components/radio-group/radio-group.component.mjs +310 -0
  138. package/dist/components/radio-group/radio-group.mjs +5 -0
  139. package/dist/components/radio-group/radio-group.styles.mjs +49 -0
  140. package/dist/components/range/range.component.mjs +324 -0
  141. package/dist/components/range/range.mjs +5 -0
  142. package/dist/components/range/range.styles.mjs +233 -0
  143. package/dist/components/resize-observer/resize-observer.component.mjs +80 -0
  144. package/dist/components/resize-observer/resize-observer.mjs +5 -0
  145. package/dist/components/resize-observer/resize-observer.styles.mjs +12 -0
  146. package/dist/components/scroll-view/overlay-scrollbar.styles.mjs +686 -0
  147. package/dist/components/scroll-view/scroll-view.component.mjs +128 -0
  148. package/dist/components/scroll-view/scroll-view.mjs +5 -0
  149. package/dist/components/scroll-view/scroll-view.styles.mjs +57 -0
  150. package/dist/components/select/select.component.mjs +785 -0
  151. package/dist/components/select/select.mjs +5 -0
  152. package/dist/components/select/select.styles.mjs +339 -0
  153. package/dist/components/spinner/spinner.component.mjs +22 -0
  154. package/dist/components/spinner/spinner.mjs +5 -0
  155. package/dist/components/spinner/spinner.styles.mjs +64 -0
  156. package/dist/components/split-view/split-view.component.mjs +500 -0
  157. package/dist/components/split-view/split-view.mjs +5 -0
  158. package/dist/components/split-view/split-view.styles.mjs +33 -0
  159. package/dist/components/split-view-divider/split-view-divider.component.mjs +98 -0
  160. package/dist/components/split-view-divider/split-view-divider.mjs +5 -0
  161. package/dist/components/split-view-divider/split-view-divider.styles.mjs +96 -0
  162. package/dist/components/split-view-pane/split-view-pane.component.mjs +126 -0
  163. package/dist/components/split-view-pane/split-view-pane.mjs +5 -0
  164. package/dist/components/split-view-pane/split-view-pane.styles.mjs +49 -0
  165. package/dist/components/split-view-toggle-button/split-view-toggle-button.component.mjs +76 -0
  166. package/dist/components/split-view-toggle-button/split-view-toggle-button.mjs +5 -0
  167. package/dist/components/split-view-toggle-button/split-view-toggle-button.styles.mjs +40 -0
  168. package/dist/components/stepper/stepper.component.mjs +139 -0
  169. package/dist/components/stepper/stepper.mjs +5 -0
  170. package/dist/components/stepper/stepper.styles.mjs +103 -0
  171. package/dist/components/stepper-panel/stepper-panel.component.mjs +76 -0
  172. package/dist/components/stepper-panel/stepper-panel.mjs +5 -0
  173. package/dist/components/stepper-panel/stepper-panel.styles.mjs +22 -0
  174. package/dist/components/switch/switch.component.mjs +211 -0
  175. package/dist/components/switch/switch.mjs +5 -0
  176. package/dist/components/switch/switch.styles.mjs +166 -0
  177. package/dist/components/tab/tab.component.mjs +159 -0
  178. package/dist/components/tab/tab.mjs +5 -0
  179. package/dist/components/tab/tab.styles.mjs +107 -0
  180. package/dist/components/tab-group/tab-group.component.mjs +402 -0
  181. package/dist/components/tab-group/tab-group.mjs +5 -0
  182. package/dist/components/tab-group/tab-group.styles.mjs +386 -0
  183. package/dist/components/tab-panel/tab-panel.component.mjs +72 -0
  184. package/dist/components/tab-panel/tab-panel.mjs +5 -0
  185. package/dist/components/tab-panel/tab-panel.styles.mjs +55 -0
  186. package/dist/components/tag/tag.component.mjs +94 -0
  187. package/dist/components/tag/tag.mjs +5 -0
  188. package/dist/components/tag/tag.styles.mjs +130 -0
  189. package/dist/components/textarea/textarea.component.mjs +359 -0
  190. package/dist/components/textarea/textarea.mjs +5 -0
  191. package/dist/components/textarea/textarea.styles.mjs +171 -0
  192. package/dist/components/timer/ticker.mjs +78 -0
  193. package/dist/components/timer/timer.component.mjs +293 -0
  194. package/dist/components/timer/timer.mjs +5 -0
  195. package/dist/components/timer/timer.styles.mjs +94 -0
  196. package/dist/components/tool-button/tool-button.component.mjs +208 -0
  197. package/dist/components/tool-button/tool-button.mjs +5 -0
  198. package/dist/components/tool-button/tool-button.styles.mjs +251 -0
  199. package/dist/components/tool-button-group/tool-button-group.component.mjs +347 -0
  200. package/dist/components/tool-button-group/tool-button-group.mjs +5 -0
  201. package/dist/components/tool-button-group/tool-button-group.styles.mjs +59 -0
  202. package/dist/components/tooltip/tooltip.component.mjs +259 -0
  203. package/dist/components/tooltip/tooltip.mjs +5 -0
  204. package/dist/components/tooltip/tooltip.styles.mjs +57 -0
  205. package/dist/components/tree/tree.component.mjs +368 -0
  206. package/dist/components/tree/tree.mjs +5 -0
  207. package/dist/components/tree/tree.styles.mjs +41 -0
  208. package/dist/components/tree-item/tree-item.component.mjs +324 -0
  209. package/dist/components/tree-item/tree-item.mjs +5 -0
  210. package/dist/components/tree-item/tree-item.styles.mjs +178 -0
  211. package/dist/components/visually-hidden/visually-hidden.component.mjs +14 -0
  212. package/dist/components/visually-hidden/visually-hidden.mjs +5 -0
  213. package/dist/components/visually-hidden/visually-hidden.styles.mjs +20 -0
  214. package/dist/custom-elements.json +530 -544
  215. package/dist/index.d.mts +141 -132
  216. package/dist/index.d.ts +141 -132
  217. package/dist/index.mjs +78 -25094
  218. package/dist/internal/animate.mjs +47 -0
  219. package/dist/internal/animations/attention_seekers/bounce.mjs +17 -0
  220. package/dist/internal/animations/attention_seekers/flash.mjs +9 -0
  221. package/dist/internal/animations/attention_seekers/headShake.mjs +10 -0
  222. package/dist/internal/animations/attention_seekers/heartBeat.mjs +9 -0
  223. package/dist/internal/animations/attention_seekers/jello.mjs +14 -0
  224. package/dist/internal/animations/attention_seekers/pulse.mjs +7 -0
  225. package/dist/internal/animations/attention_seekers/rubberBand.mjs +11 -0
  226. package/dist/internal/animations/attention_seekers/shake.mjs +15 -0
  227. package/dist/internal/animations/attention_seekers/shakeX.mjs +15 -0
  228. package/dist/internal/animations/attention_seekers/shakeY.mjs +15 -0
  229. package/dist/internal/animations/attention_seekers/swing.mjs +9 -0
  230. package/dist/internal/animations/attention_seekers/tada.mjs +15 -0
  231. package/dist/internal/animations/attention_seekers/wobble.mjs +11 -0
  232. package/dist/internal/animations/back_entrances/backInDown.mjs +7 -0
  233. package/dist/internal/animations/back_entrances/backInLeft.mjs +7 -0
  234. package/dist/internal/animations/back_entrances/backInRight.mjs +7 -0
  235. package/dist/internal/animations/back_entrances/backInUp.mjs +7 -0
  236. package/dist/internal/animations/back_exits/backOutDown.mjs +7 -0
  237. package/dist/internal/animations/back_exits/backOutLeft.mjs +7 -0
  238. package/dist/internal/animations/back_exits/backOutRight.mjs +7 -0
  239. package/dist/internal/animations/back_exits/backOutUp.mjs +7 -0
  240. package/dist/internal/animations/bouncing_entrances/bounceIn.mjs +16 -0
  241. package/dist/internal/animations/bouncing_entrances/bounceInDown.mjs +14 -0
  242. package/dist/internal/animations/bouncing_entrances/bounceInLeft.mjs +14 -0
  243. package/dist/internal/animations/bouncing_entrances/bounceInRight.mjs +14 -0
  244. package/dist/internal/animations/bouncing_entrances/bounceInUp.mjs +14 -0
  245. package/dist/internal/animations/bouncing_exits/bounceOut.mjs +8 -0
  246. package/dist/internal/animations/bouncing_exits/bounceOutDown.mjs +8 -0
  247. package/dist/internal/animations/bouncing_exits/bounceOutLeft.mjs +6 -0
  248. package/dist/internal/animations/bouncing_exits/bounceOutRight.mjs +6 -0
  249. package/dist/internal/animations/bouncing_exits/bounceOutUp.mjs +8 -0
  250. package/dist/internal/animations/easings/easings.mjs +33 -0
  251. package/dist/internal/animations/fading_entrances/fadeIn.mjs +6 -0
  252. package/dist/internal/animations/fading_entrances/fadeInBottomLeft.mjs +6 -0
  253. package/dist/internal/animations/fading_entrances/fadeInBottomRight.mjs +6 -0
  254. package/dist/internal/animations/fading_entrances/fadeInDown.mjs +6 -0
  255. package/dist/internal/animations/fading_entrances/fadeInDownBig.mjs +6 -0
  256. package/dist/internal/animations/fading_entrances/fadeInLeft.mjs +6 -0
  257. package/dist/internal/animations/fading_entrances/fadeInLeftBig.mjs +6 -0
  258. package/dist/internal/animations/fading_entrances/fadeInRight.mjs +6 -0
  259. package/dist/internal/animations/fading_entrances/fadeInRightBig.mjs +6 -0
  260. package/dist/internal/animations/fading_entrances/fadeInTopLeft.mjs +6 -0
  261. package/dist/internal/animations/fading_entrances/fadeInTopRight.mjs +6 -0
  262. package/dist/internal/animations/fading_entrances/fadeInUp.mjs +6 -0
  263. package/dist/internal/animations/fading_entrances/fadeInUpBig.mjs +6 -0
  264. package/dist/internal/animations/fading_exits/fadeOut.mjs +6 -0
  265. package/dist/internal/animations/fading_exits/fadeOutBottomLeft.mjs +6 -0
  266. package/dist/internal/animations/fading_exits/fadeOutBottomRight.mjs +6 -0
  267. package/dist/internal/animations/fading_exits/fadeOutDown.mjs +6 -0
  268. package/dist/internal/animations/fading_exits/fadeOutDownBig.mjs +6 -0
  269. package/dist/internal/animations/fading_exits/fadeOutLeft.mjs +6 -0
  270. package/dist/internal/animations/fading_exits/fadeOutLeftBig.mjs +6 -0
  271. package/dist/internal/animations/fading_exits/fadeOutRight.mjs +6 -0
  272. package/dist/internal/animations/fading_exits/fadeOutRightBig.mjs +6 -0
  273. package/dist/internal/animations/fading_exits/fadeOutTopLeft.mjs +6 -0
  274. package/dist/internal/animations/fading_exits/fadeOutTopRight.mjs +6 -0
  275. package/dist/internal/animations/fading_exits/fadeOutUp.mjs +6 -0
  276. package/dist/internal/animations/fading_exits/fadeOutUpBig.mjs +6 -0
  277. package/dist/internal/animations/flippers/flip.mjs +29 -0
  278. package/dist/internal/animations/flippers/flipInX.mjs +9 -0
  279. package/dist/internal/animations/flippers/flipInY.mjs +9 -0
  280. package/dist/internal/animations/flippers/flipOutX.mjs +7 -0
  281. package/dist/internal/animations/flippers/flipOutY.mjs +7 -0
  282. package/dist/internal/animations/index.mjs +99 -0
  283. package/dist/internal/animations/lightspeed/lightSpeedInLeft.mjs +8 -0
  284. package/dist/internal/animations/lightspeed/lightSpeedInRight.mjs +8 -0
  285. package/dist/internal/animations/lightspeed/lightSpeedOutLeft.mjs +6 -0
  286. package/dist/internal/animations/lightspeed/lightSpeedOutRight.mjs +6 -0
  287. package/dist/internal/animations/rotating_entrances/rotateIn.mjs +6 -0
  288. package/dist/internal/animations/rotating_entrances/rotateInDownLeft.mjs +6 -0
  289. package/dist/internal/animations/rotating_entrances/rotateInDownRight.mjs +6 -0
  290. package/dist/internal/animations/rotating_entrances/rotateInUpLeft.mjs +6 -0
  291. package/dist/internal/animations/rotating_entrances/rotateInUpRight.mjs +6 -0
  292. package/dist/internal/animations/rotating_exits/rotateOut.mjs +6 -0
  293. package/dist/internal/animations/rotating_exits/rotateOutDownLeft.mjs +6 -0
  294. package/dist/internal/animations/rotating_exits/rotateOutDownRight.mjs +6 -0
  295. package/dist/internal/animations/rotating_exits/rotateOutUpLeft.mjs +6 -0
  296. package/dist/internal/animations/rotating_exits/rotateOutUpRight.mjs +6 -0
  297. package/dist/internal/animations/sliding_entrances/slideInDown.mjs +6 -0
  298. package/dist/internal/animations/sliding_entrances/slideInLeft.mjs +6 -0
  299. package/dist/internal/animations/sliding_entrances/slideInRight.mjs +6 -0
  300. package/dist/internal/animations/sliding_entrances/slideInUp.mjs +6 -0
  301. package/dist/internal/animations/sliding_exits/slideOutDown.mjs +6 -0
  302. package/dist/internal/animations/sliding_exits/slideOutLeft.mjs +6 -0
  303. package/dist/internal/animations/sliding_exits/slideOutRight.mjs +6 -0
  304. package/dist/internal/animations/sliding_exits/slideOutUp.mjs +6 -0
  305. package/dist/internal/animations/specials/hinge.mjs +10 -0
  306. package/dist/internal/animations/specials/jackInTheBox.mjs +8 -0
  307. package/dist/internal/animations/specials/rollIn.mjs +6 -0
  308. package/dist/internal/animations/specials/rollOut.mjs +6 -0
  309. package/dist/internal/animations/zooming_entrances/zoomIn.mjs +6 -0
  310. package/dist/internal/animations/zooming_entrances/zoomInDown.mjs +16 -0
  311. package/dist/internal/animations/zooming_entrances/zoomInLeft.mjs +16 -0
  312. package/dist/internal/animations/zooming_entrances/zoomInRight.mjs +16 -0
  313. package/dist/internal/animations/zooming_entrances/zoomInUp.mjs +16 -0
  314. package/dist/internal/animations/zooming_exits/zoomOut.mjs +7 -0
  315. package/dist/internal/animations/zooming_exits/zoomOutDown.mjs +16 -0
  316. package/dist/internal/animations/zooming_exits/zoomOutLeft.mjs +6 -0
  317. package/dist/internal/animations/zooming_exits/zoomOutRight.mjs +6 -0
  318. package/dist/internal/animations/zooming_exits/zoomOutUp.mjs +16 -0
  319. package/dist/internal/boolean.mjs +17 -0
  320. package/dist/internal/datetime.mjs +65 -0
  321. package/dist/internal/debounce.mjs +14 -0
  322. package/dist/internal/default-value.mjs +21 -0
  323. package/dist/internal/drag.mjs +30 -0
  324. package/dist/internal/ensure-array.mjs +16 -0
  325. package/dist/internal/event.mjs +13 -0
  326. package/dist/internal/flow-ui-rdf-element.mjs +61 -0
  327. package/dist/internal/form.mjs +264 -0
  328. package/dist/internal/localize.mjs +124 -0
  329. package/dist/internal/math.mjs +12 -0
  330. package/dist/internal/modal.mjs +52 -0
  331. package/dist/internal/offset.mjs +8 -0
  332. package/dist/internal/orderby.mjs +18 -0
  333. package/dist/internal/scroll.mjs +47 -0
  334. package/dist/internal/slot.mjs +59 -0
  335. package/dist/internal/string.mjs +5 -0
  336. package/dist/internal/tabbable.mjs +49 -0
  337. package/dist/internal/throttle.mjs +28 -0
  338. package/dist/internal/type-checks.mjs +16 -0
  339. package/dist/internal/watch.mjs +27 -0
  340. package/dist/package.json.mjs +3 -0
  341. package/dist/public-api.mjs +10 -0
  342. package/dist/styles/component.styles.mjs +19 -0
  343. package/dist/styles/form-control.styles.mjs +63 -0
  344. package/dist/translations/en.mjs +34 -0
  345. package/dist/utilities/animation-registry.mjs +33 -0
  346. package/dist/utilities/announce.mjs +12 -0
  347. package/dist/utilities/locale.mjs +10 -0
  348. package/dist/utilities/localize.mjs +7 -0
  349. package/dist/utilities/register-components.mjs +203 -0
  350. package/dist/vscode.html-custom-data.json +64 -64
  351. package/package.json +5 -8
  352. package/dist/icons/index.cjs +0 -4053
  353. package/dist/icons/index.d.cts +0 -2027
  354. package/dist/index.cjs +0 -25187
  355. package/dist/index.d.cts +0 -5678
@@ -0,0 +1,148 @@
1
+ import { debounce } from '../../internal/debounce.mjs';
2
+ import { prefersReducedMotion } from '../../internal/animate.mjs';
3
+ import { waitForEvent } from '../../internal/event.mjs';
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __decorateClass = (decorators, target, key, kind) => {
8
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
9
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
10
+ if (decorator = decorators[i])
11
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
12
+ if (kind && result)
13
+ __defProp(target, key, result);
14
+ return result;
15
+ };
16
+ class ScrollController {
17
+ constructor(host) {
18
+ this.pointers = /* @__PURE__ */ new Set();
19
+ this.dragging = false;
20
+ this.scrolling = false;
21
+ this.mouseDragging = false;
22
+ this.host = host;
23
+ host.addController(this);
24
+ this.handleScroll = this.handleScroll.bind(this);
25
+ this.handlePointerDown = this.handlePointerDown.bind(this);
26
+ this.handlePointerMove = this.handlePointerMove.bind(this);
27
+ this.handlePointerUp = this.handlePointerUp.bind(this);
28
+ this.handlePointerUp = this.handlePointerUp.bind(this);
29
+ this.handleTouchStart = this.handleTouchStart.bind(this);
30
+ this.handleTouchEnd = this.handleTouchEnd.bind(this);
31
+ }
32
+ async hostConnected() {
33
+ const host = this.host;
34
+ await host.updateComplete;
35
+ const scrollContainer = host.scrollContainer;
36
+ scrollContainer.addEventListener("scroll", this.handleScroll, { passive: true });
37
+ scrollContainer.addEventListener("pointerdown", this.handlePointerDown);
38
+ scrollContainer.addEventListener("pointerup", this.handlePointerUp);
39
+ scrollContainer.addEventListener("pointercancel", this.handlePointerUp);
40
+ scrollContainer.addEventListener("touchstart", this.handleTouchStart, { passive: true });
41
+ scrollContainer.addEventListener("touchend", this.handleTouchEnd);
42
+ }
43
+ hostDisconnected() {
44
+ const host = this.host;
45
+ const scrollContainer = host.scrollContainer;
46
+ scrollContainer.removeEventListener("scroll", this.handleScroll);
47
+ scrollContainer.removeEventListener("pointerdown", this.handlePointerDown);
48
+ scrollContainer.removeEventListener("pointerup", this.handlePointerUp);
49
+ scrollContainer.removeEventListener("pointercancel", this.handlePointerUp);
50
+ scrollContainer.removeEventListener("touchstart", this.handleTouchStart);
51
+ scrollContainer.removeEventListener("touchend", this.handleTouchEnd);
52
+ }
53
+ handleScroll() {
54
+ if (!this.scrolling) {
55
+ this.scrolling = true;
56
+ this.host.requestUpdate();
57
+ }
58
+ this.handleScrollEnd();
59
+ }
60
+ handleScrollEnd() {
61
+ if (!this.pointers.size) {
62
+ this.scrolling = false;
63
+ this.host.scrollContainer.dispatchEvent(
64
+ new CustomEvent("scrollend", {
65
+ bubbles: false,
66
+ cancelable: false
67
+ })
68
+ );
69
+ this.host.requestUpdate();
70
+ } else {
71
+ this.handleScrollEnd();
72
+ }
73
+ }
74
+ handlePointerDown(event) {
75
+ if (event.pointerType === "touch") {
76
+ return;
77
+ }
78
+ this.pointers.add(event.pointerId);
79
+ const canDrag = this.mouseDragging && !this.dragging && event.button === 0;
80
+ if (canDrag) {
81
+ event.preventDefault();
82
+ this.host.scrollContainer.addEventListener("pointermove", this.handlePointerMove);
83
+ }
84
+ }
85
+ handlePointerMove(event) {
86
+ const scrollContainer = this.host.scrollContainer;
87
+ const hasMoved = !!event.movementX || !!event.movementY;
88
+ if (!this.dragging && hasMoved) {
89
+ scrollContainer.setPointerCapture(event.pointerId);
90
+ this.handleDragStart();
91
+ } else if (scrollContainer.hasPointerCapture(event.pointerId)) {
92
+ this.handleDrag(event);
93
+ }
94
+ }
95
+ handlePointerUp(event) {
96
+ this.pointers.delete(event.pointerId);
97
+ this.host.scrollContainer.releasePointerCapture(event.pointerId);
98
+ if (this.pointers.size === 0) {
99
+ this.handleDragEnd();
100
+ }
101
+ }
102
+ handleTouchEnd(event) {
103
+ for (const touch of event.changedTouches) {
104
+ this.pointers.delete(touch.identifier);
105
+ }
106
+ }
107
+ handleTouchStart(event) {
108
+ for (const touch of event.touches) {
109
+ this.pointers.add(touch.identifier);
110
+ }
111
+ }
112
+ handleDragStart() {
113
+ const host = this.host;
114
+ this.dragging = true;
115
+ host.scrollContainer.style.setProperty("scroll-snap-type", "unset");
116
+ host.requestUpdate();
117
+ }
118
+ handleDrag(event) {
119
+ this.host.scrollContainer.scrollBy({
120
+ left: -event.movementX,
121
+ top: -event.movementY
122
+ });
123
+ }
124
+ async handleDragEnd() {
125
+ const host = this.host;
126
+ const scrollContainer = host.scrollContainer;
127
+ scrollContainer.removeEventListener("pointermove", this.handlePointerMove);
128
+ this.dragging = false;
129
+ const startLeft = scrollContainer.scrollLeft;
130
+ const startTop = scrollContainer.scrollTop;
131
+ scrollContainer.style.removeProperty("scroll-snap-type");
132
+ const finalLeft = scrollContainer.scrollLeft;
133
+ const finalTop = scrollContainer.scrollTop;
134
+ scrollContainer.style.setProperty("scroll-snap-type", "unset");
135
+ scrollContainer.scrollTo({ left: startLeft, top: startTop, behavior: "auto" });
136
+ scrollContainer.scrollTo({ left: finalLeft, top: finalTop, behavior: prefersReducedMotion() ? "auto" : "smooth" });
137
+ if (this.scrolling) {
138
+ await waitForEvent(scrollContainer, "scrollend");
139
+ }
140
+ scrollContainer.style.removeProperty("scroll-snap-type");
141
+ host.requestUpdate();
142
+ }
143
+ }
144
+ __decorateClass([
145
+ debounce(100)
146
+ ], ScrollController.prototype, "handleScrollEnd", 1);
147
+
148
+ export { ScrollController };
@@ -0,0 +1,22 @@
1
+ import { html } from 'lit';
2
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
3
+ import styles from './carousel-item.styles.mjs';
4
+
5
+ class FlowUiCarouselItem extends FlowRdfElement {
6
+ /** @internal */
7
+ static isCarouselItem(node) {
8
+ return node instanceof Element && node.getAttribute("aria-roledescription") === "slide";
9
+ }
10
+ connectedCallback() {
11
+ super.connectedCallback();
12
+ this.setAttribute("role", "group");
13
+ }
14
+ render() {
15
+ return html`
16
+ <slot></slot>
17
+ `;
18
+ }
19
+ }
20
+ FlowUiCarouselItem.styles = styles;
21
+
22
+ export { FlowUiCarouselItem as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiCarouselItem from './carousel-item.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiCarouselItem as default };
@@ -0,0 +1,28 @@
1
+ import { css } from 'lit';
2
+ import componentStyles from '../../styles/component.styles.mjs';
3
+
4
+ const styles = css`
5
+ ${componentStyles}
6
+
7
+ :host {
8
+ --aspect-ratio: inherit;
9
+
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ flex-direction: column;
14
+ width: 100%;
15
+ max-height: 100%;
16
+ aspect-ratio: var(--aspect-ratio);
17
+ scroll-snap-align: start;
18
+ scroll-snap-stop: always;
19
+ }
20
+
21
+ ::slotted(img) {
22
+ width: 100%;
23
+ height: 100%;
24
+ object-fit: cover;
25
+ }
26
+ `;
27
+
28
+ export { styles as default };
@@ -0,0 +1,82 @@
1
+ import { Chart } from 'chart.js';
2
+ import { html } from 'lit';
3
+ import { property } from 'lit/decorators.js';
4
+ import { createRef, ref } from 'lit/directives/ref.js';
5
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
6
+ import { watch } from '../../internal/watch.mjs';
7
+ import styles from './chart.styles.mjs';
8
+ import { initializeChartJs } from './chartjs-support.mjs';
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __decorateClass = (decorators, target, key, kind) => {
13
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
+ if (decorator = decorators[i])
16
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
+ if (kind && result)
18
+ __defProp(target, key, result);
19
+ return result;
20
+ };
21
+ class FlowUiChart extends FlowRdfElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ this._chartRef = createRef();
25
+ this.plugins = [];
26
+ }
27
+ /** The Chart.js chart instance. */
28
+ get chart() {
29
+ return this._chart;
30
+ }
31
+ repaint() {
32
+ if (this._chart) {
33
+ this._chart.data = this.data;
34
+ this._chart.options = this.options;
35
+ this._chart.update();
36
+ }
37
+ }
38
+ firstUpdated() {
39
+ this._chart = new Chart(this._chartRef.value, {
40
+ type: this.type,
41
+ data: this.data,
42
+ options: this.options,
43
+ plugins: this.plugins
44
+ });
45
+ }
46
+ connectedCallback() {
47
+ super.connectedCallback();
48
+ initializeChartJs();
49
+ }
50
+ disconnectedCallback() {
51
+ super.disconnectedCallback();
52
+ if (this._chart) {
53
+ this._chart.destroy();
54
+ this._chart = void 0;
55
+ }
56
+ }
57
+ render() {
58
+ return html`
59
+ <div part="base" class="chart">
60
+ <canvas ${ref(this._chartRef)}></canvas>
61
+ </div>
62
+ `;
63
+ }
64
+ }
65
+ FlowUiChart.styles = styles;
66
+ __decorateClass([
67
+ property()
68
+ ], FlowUiChart.prototype, "type", 2);
69
+ __decorateClass([
70
+ property({ attribute: false })
71
+ ], FlowUiChart.prototype, "options", 2);
72
+ __decorateClass([
73
+ property({ attribute: false })
74
+ ], FlowUiChart.prototype, "data", 2);
75
+ __decorateClass([
76
+ property({ type: Array })
77
+ ], FlowUiChart.prototype, "plugins", 2);
78
+ __decorateClass([
79
+ watch(["options", "data"], { waitUntilFirstUpdate: true })
80
+ ], FlowUiChart.prototype, "repaint", 1);
81
+
82
+ export { FlowUiChart as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiChart from './chart.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiChart as default };
@@ -0,0 +1,80 @@
1
+ import { css } from 'lit';
2
+ import componentStyles from '../../styles/component.styles.mjs';
3
+
4
+ const styles = css`
5
+ ${componentStyles}
6
+
7
+ :host {
8
+ display: block;
9
+
10
+ /*
11
+ Required to allow chart to shrink when used in flexbox or grid layouts
12
+ Otherwise chart canvas is used as minimum content size of component.
13
+ */
14
+
15
+ min-width: 0;
16
+ min-height: 0;
17
+
18
+ --background-color: var(--flow-ui-chart-background-color, transparent);
19
+ --text-color: var(--flow-ui-chart-text-color, var(--flow-ui-color-neutral-400, #bbb));
20
+
21
+ --axis-color: var(--flow-ui-chart-axis-color, var(--flow-ui-color-neutral-400, #bbb));
22
+ --x-axis-color: var(--axis-color);
23
+ --y-axis-color: var(--axis-color);
24
+
25
+ --x-axis-tick-color: var(--x-axis-color);
26
+ --y-axis-tick-color: var(--y-axis-color);
27
+
28
+ --axis-grid-color: var(--flow-ui-chart-grid-color, var(--flow-ui-color-neutral-200, #eee));
29
+ --x-axis-grid-color: var(--axis-grid-color);
30
+ --y-axis-grid-color: var(--axis-grid-color);
31
+
32
+ --axis-label-color: var(--flow-ui-chart-axis-label-color, var(--flow-ui-color-neutral-400, #bbb));
33
+ --x-axis-label-color: var(--axis-label-color);
34
+ --y-axis-label-color: var(--axis-label-color);
35
+
36
+ --tick-label-color: var(--flow-ui-chart-tick-label-color, var(--flow-ui-color-neutral-400, #bbb));
37
+ --x-tick-label-color: var(--tick-label-color);
38
+ --y-tick-label-color: var(--tick-label-color);
39
+
40
+ --dataset-stroke-color-0: var(--flow-ui-chart-stroke-color-0, hsl(239.6 88.7% 63.8%));
41
+ --dataset-fill-color-0: var(--flow-ui-chart-fill-color-0, hsl(239.6 88.7% 63.8%));
42
+
43
+ --dataset-stroke-color-1: var(--flow-ui-chart-stroke-color-1, hsl(24.3 100% 50.5%));
44
+ --dataset-fill-color-1: var(--flow-ui-chart-fill-color-1, hsl(24.3 100% 50.5%));
45
+
46
+ --dataset-stroke-color-2: var(--flow-ui-chart-stroke-color-2, hsl(217.8 95.8% 57.4%));
47
+ --dataset-fill-color-2: var(--flow-ui-chart-fill-color-2, hsl(217.8 95.8% 57.4%));
48
+
49
+ --dataset-stroke-color-3: var(--flow-ui-chart-stroke-color-3, hsl(44.7 88% 46%));
50
+ --dataset-fill-color-3: var(--flow-ui-chart-fill-color-3, hsl(44.7 88% 46%));
51
+
52
+ --dataset-stroke-color-4: var(--flow-ui-chart-stroke-color-4, hsl(199.7 85.9% 47.7%));
53
+ --dataset-fill-color-4: var(--flow-ui-chart-fill-color-4, hsl(199.7 85.9% 47.7%));
54
+
55
+ --dataset-stroke-color-5: var(--flow-ui-chart-stroke-color-5, hsl(84.3 74.2% 42.1%));
56
+ --dataset-fill-color-5: var(--flow-ui-chart-fill-color-5, hsl(84.3 74.2% 42.1%));
57
+
58
+ --dataset-stroke-color-6: var(--flow-ui-chart-stroke-color-6, hsl(189.4 78.6% 42.6%));
59
+ --dataset-fill-color-6: var(--flow-ui-chart-fill-color-6, hsl(189.4 78.6% 42.6%));
60
+
61
+ --dataset-stroke-color-7: var(--flow-ui-chart-stroke-color-7, hsl(141.1 64.9% 43%));
62
+ --dataset-fill-color-7: var(--flow-ui-chart-fill-color-7, hsl(141.1 64.9% 43%));
63
+
64
+ --dataset-stroke-color-8: var(--flow-ui-chart-stroke-color-8, hsl(173.1 71% 38.3%));
65
+ --dataset-fill-color-8: var(--flow-ui-chart-fill-color-8, hsl(173.1 71% 38.3%));
66
+
67
+ --dataset-stroke-color-9: var(--flow-ui-chart-stroke-color-9, hsl(292.1 88.4% 57.7%));
68
+ --dataset-fill-color-9: var(--flow-ui-chart-fill-color-9, hsl(292.1 88.4% 57.7%));
69
+ }
70
+
71
+ .chart {
72
+ background-color: var(--background-color);
73
+ position: relative;
74
+ width: 100%;
75
+ height: 100%;
76
+ /* padding: var(--flow-ui-spacing-x-small); */
77
+ }
78
+ `;
79
+
80
+ export { styles as default };
@@ -0,0 +1,80 @@
1
+ import { isUndefined } from '../../../internal/type-checks.mjs';
2
+
3
+ function Interpolate(chart, e, options) {
4
+ const items = [];
5
+ for (let datasetIndex = 0; datasetIndex < chart.data.datasets.length; datasetIndex++) {
6
+ chart.data.datasets[datasetIndex].interpolatedXValue = void 0;
7
+ chart.data.datasets[datasetIndex].interpolatedYValue = void 0;
8
+ const meta = chart.getDatasetMeta(datasetIndex);
9
+ if (meta.hidden) {
10
+ continue;
11
+ }
12
+ if (!meta.xAxisID || !meta.yAxisID) {
13
+ continue;
14
+ }
15
+ const xScale = chart.scales[meta.xAxisID];
16
+ const yScale = chart.scales[meta.yAxisID];
17
+ const xValue = xScale.getValueForPixel(e.x);
18
+ const yValue = yScale.getValueForPixel(e.y);
19
+ if (xScale.type !== "linear" && yScale.type !== "time") {
20
+ continue;
21
+ }
22
+ if (isUndefined(xValue) || isUndefined(yValue)) {
23
+ continue;
24
+ }
25
+ if (xValue > xScale.max || xValue < xScale.min || yValue > yScale.max || yValue < yScale.min) {
26
+ continue;
27
+ }
28
+ const data = chart.data.datasets[datasetIndex].data;
29
+ const index = data.findIndex((d) => d.x >= xValue);
30
+ if (index === -1) {
31
+ continue;
32
+ }
33
+ const prev = data[index - 1];
34
+ const next = data[index];
35
+ let interpolatedValue = NaN;
36
+ if (prev && next) {
37
+ const slope = (next.y - prev.y) / (next.x - prev.x);
38
+ interpolatedValue = prev.y + (xValue - prev.x) * slope;
39
+ }
40
+ if (chart.data.datasets[datasetIndex].steppedLine && prev) {
41
+ interpolatedValue = prev.y;
42
+ }
43
+ if (isNaN(interpolatedValue)) {
44
+ continue;
45
+ }
46
+ const yPosition = yScale.getPixelForValue(interpolatedValue);
47
+ if (isNaN(yPosition)) {
48
+ continue;
49
+ }
50
+ const fakePoint = {
51
+ hasValue: function() {
52
+ return true;
53
+ },
54
+ tooltipPosition: function() {
55
+ return this._model;
56
+ },
57
+ getCenterPoint: function() {
58
+ return this._model;
59
+ },
60
+ inRange(mouseX, mouseY) {
61
+ return Math.pow(mouseX - this._model.x, 2) + Math.pow(mouseY - this._model.y, 2) < Math.pow(20, 2);
62
+ },
63
+ _model: { x: e.x, y: yPosition },
64
+ skip: false,
65
+ stop: false,
66
+ options: { hitRadius: 20 },
67
+ x: xValue,
68
+ y: interpolatedValue
69
+ };
70
+ if (options.intersect && !fakePoint.inRange(e.x, e.y)) {
71
+ continue;
72
+ }
73
+ chart.data.datasets[datasetIndex].interpolatedXValue = xValue;
74
+ chart.data.datasets[datasetIndex].interpolatedYValue = interpolatedValue;
75
+ items.push({ datasetIndex, element: fakePoint, index: 0 });
76
+ }
77
+ return items;
78
+ }
79
+
80
+ export { Interpolate as default };
@@ -0,0 +1,135 @@
1
+ import { DoughnutController, PolarAreaController } from 'chart.js';
2
+ import { isDefined } from '../../../internal/type-checks.mjs';
3
+
4
+ function getBorderColor(i, palette) {
5
+ return palette.datasetBorderColors[i % palette.datasetBorderColors.length];
6
+ }
7
+ function getBackgroundColor(i, palette) {
8
+ return palette.datasetBackgroundColors[i % palette.datasetBackgroundColors.length];
9
+ }
10
+ function colorizeDefaultDataset(dataset, i, palette) {
11
+ dataset.borderColor = getBorderColor(i, palette);
12
+ dataset.backgroundColor = getBackgroundColor(i, palette);
13
+ return ++i;
14
+ }
15
+ function colorizeDoughnutDataset(dataset, i, palette) {
16
+ dataset.backgroundColor = dataset.data.map(() => getBorderColor(i++, palette));
17
+ return i;
18
+ }
19
+ function colorizePolarAreaDataset(dataset, i, palette) {
20
+ dataset.backgroundColor = dataset.data.map(() => getBackgroundColor(i++, palette));
21
+ return i;
22
+ }
23
+ function getPalette(chart) {
24
+ const chartStyles = window.getComputedStyle(chart.canvas);
25
+ const textColor = chartStyles.getPropertyValue("--text-color");
26
+ const datasetBorderColors = Array.from(
27
+ { length: 10 },
28
+ (_, i) => chartStyles.getPropertyValue(`--dataset-stroke-color-${i}`)
29
+ );
30
+ const datasetBackgroundColors = Array.from(
31
+ { length: 10 },
32
+ (_, i) => chartStyles.getPropertyValue(`--dataset-fill-color-${i}`)
33
+ );
34
+ const xAxisColor = chartStyles.getPropertyValue("--x-axis-color");
35
+ const xAxisGridColor = chartStyles.getPropertyValue("--x-axis-grid-color");
36
+ const xAxisTickColor = chartStyles.getPropertyValue("--x-axis-tick-color");
37
+ const xAxisLabelColor = chartStyles.getPropertyValue("--x-axis-label-color");
38
+ const xTickLabelColor = chartStyles.getPropertyValue("--x-tick-label-color");
39
+ const yAxisColor = chartStyles.getPropertyValue("--y-axis-color");
40
+ const yAxisGridColor = chartStyles.getPropertyValue("--y-axis-grid-color");
41
+ const yAxisTickColor = chartStyles.getPropertyValue("--y-axis-tick-color");
42
+ const yAxisLabelColor = chartStyles.getPropertyValue("--y-axis-label-color");
43
+ const yTickLabelColor = chartStyles.getPropertyValue("--y-tick-label-color");
44
+ return {
45
+ textColor,
46
+ datasetBorderColors,
47
+ datasetBackgroundColors,
48
+ xAxis: {
49
+ color: xAxisColor,
50
+ gridColor: xAxisGridColor,
51
+ tickColor: xAxisTickColor,
52
+ axisLabelColor: xAxisLabelColor,
53
+ tickLabelColor: xTickLabelColor
54
+ },
55
+ yAxis: {
56
+ color: yAxisColor,
57
+ gridColor: yAxisGridColor,
58
+ tickColor: yAxisTickColor,
59
+ axisLabelColor: yAxisLabelColor,
60
+ tickLabelColor: yTickLabelColor
61
+ }
62
+ };
63
+ }
64
+ function getDatasetColorizer(chart, palette) {
65
+ let i = 0;
66
+ return (dataset, datasetIndex) => {
67
+ const controller = chart.getDatasetMeta(datasetIndex).controller;
68
+ if (controller instanceof DoughnutController) {
69
+ i = colorizeDoughnutDataset(dataset, i, palette);
70
+ } else if (controller instanceof PolarAreaController) {
71
+ i = colorizePolarAreaDataset(dataset, i, palette);
72
+ } else if (controller) {
73
+ i = colorizeDefaultDataset(dataset, i, palette);
74
+ }
75
+ };
76
+ }
77
+ function isCartesianScaleOptions(scale) {
78
+ return isDefined(scale) && ["linear", "category", "time", "timeseries", "logarithmic"].includes(scale.type);
79
+ }
80
+ function isRadialScaleOptions(scale) {
81
+ return isDefined(scale) && scale.type === "radialLinear";
82
+ }
83
+ const FlowUiColorsPlugin = {
84
+ id: "flowUiColors",
85
+ defaults: {
86
+ enabled: true,
87
+ colorDatasets: true,
88
+ colorAxis: true
89
+ },
90
+ beforeLayout(chart, _args, options) {
91
+ if (!options.enabled) {
92
+ return;
93
+ }
94
+ const palette = getPalette(chart);
95
+ const {
96
+ data: { datasets },
97
+ options: chartOptions
98
+ } = chart.config;
99
+ if (!chartOptions) {
100
+ return;
101
+ }
102
+ chartOptions.color = palette.textColor;
103
+ if (options.colorDatasets) {
104
+ const colorizer = getDatasetColorizer(chart, palette);
105
+ datasets.forEach(colorizer);
106
+ }
107
+ if (options.colorAxis && chartOptions?.scales) {
108
+ for (const scale of Object.values(chartOptions.scales)) {
109
+ if (isCartesianScaleOptions(scale)) {
110
+ const axisPalette = scale.axis === "x" ? palette.xAxis : palette.yAxis;
111
+ scale.border = scale.border || {};
112
+ scale.grid = scale.grid || {};
113
+ scale.ticks = scale.ticks || {};
114
+ scale.border.color = axisPalette.color;
115
+ scale.grid.color = axisPalette.gridColor;
116
+ scale.grid.tickColor = axisPalette.gridColor;
117
+ scale.title.color = axisPalette.axisLabelColor;
118
+ scale.ticks.color = axisPalette.tickLabelColor;
119
+ } else if (isRadialScaleOptions(scale)) {
120
+ const axisPalette = palette.xAxis;
121
+ scale.grid = scale.grid || {};
122
+ scale.ticks = scale.ticks || {};
123
+ scale.grid.color = axisPalette.gridColor;
124
+ scale.grid.tickColor = axisPalette.gridColor;
125
+ scale.ticks.color = axisPalette.tickLabelColor;
126
+ }
127
+ }
128
+ }
129
+ if (chartOptions.plugins?.title) {
130
+ chartOptions.plugins.title.color = palette.textColor;
131
+ }
132
+ }
133
+ };
134
+
135
+ export { FlowUiColorsPlugin as default };
@@ -0,0 +1,14 @@
1
+ function CursorPositioner(_elements, eventPosition) {
2
+ const tooltip = this;
3
+ tooltip.options.caretSize = 0;
4
+ return {
5
+ x: eventPosition.x + 10,
6
+ y: eventPosition.y + 10,
7
+ yAlign: "top",
8
+ xAlign: "left",
9
+ caretSize: 0
10
+ // You may also include xAlign and yAlign to override those tooltip options.
11
+ };
12
+ }
13
+
14
+ export { CursorPositioner as default };
@@ -0,0 +1,42 @@
1
+ import { Scale, LinearScale } from 'chart.js';
2
+ import { scaleSymlog } from 'd3-scale';
3
+
4
+ class SymlogAxis extends Scale {
5
+ constructor() {
6
+ super(...arguments);
7
+ this._scale = scaleSymlog();
8
+ }
9
+ parse(raw, index) {
10
+ return LinearScale.prototype.parse.apply(this, [raw, index]);
11
+ }
12
+ determineDataLimits() {
13
+ const { min, max } = this.getMinMax(true);
14
+ this.min = isFinite(min) ? min : 0;
15
+ this.max = isFinite(max) ? max : 1;
16
+ }
17
+ buildTicks() {
18
+ this._scale.domain([this.min, this.max]);
19
+ const ticks = this._scale.ticks().map((value) => ({ value }));
20
+ if (this.min < 1) {
21
+ ticks.unshift({ value: 0 });
22
+ }
23
+ return ticks;
24
+ }
25
+ /**
26
+ * @protected
27
+ */
28
+ configure() {
29
+ super.configure();
30
+ this._scale.domain([this.min, this.max]);
31
+ }
32
+ getPixelForValue(value) {
33
+ return this.getPixelForDecimal(this._scale(value ?? this.min));
34
+ }
35
+ getValueForPixel(pixel) {
36
+ return this._scale.invert(this.getDecimalForPixel(pixel));
37
+ }
38
+ }
39
+ SymlogAxis.id = "symlog";
40
+ SymlogAxis.defaults = {};
41
+
42
+ export { SymlogAxis as default };