@emuanalytics/flow-rdf-ui 4.0.4 → 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 +6494 -6508
  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 +429 -429
  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,420 @@
1
+ import { autoUpdate, offset, size, flip, shift, arrow, platform, computePosition } from '@floating-ui/dom';
2
+ import { offsetParent } from 'composed-offset-position';
3
+ import { html } from 'lit';
4
+ import { query, property } from 'lit/decorators.js';
5
+ import { classMap } from 'lit/directives/class-map.js';
6
+ import { boolean } from '../../internal/boolean.mjs';
7
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
8
+ import componentStyles from '../../styles/component.styles.mjs';
9
+ import styles from './popup.styles.mjs';
10
+
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __decorateClass = (decorators, target, key, kind) => {
14
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
15
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
+ if (decorator = decorators[i])
17
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
18
+ if (kind && result)
19
+ __defProp(target, key, result);
20
+ return result;
21
+ };
22
+ function isVirtualElement(e) {
23
+ return e !== null && typeof e === "object" && "getBoundingClientRect" in e && ("contextElement" in e ? e instanceof Element : true);
24
+ }
25
+ class FlowUiPopup extends FlowRdfElement {
26
+ constructor() {
27
+ super(...arguments);
28
+ this.active = false;
29
+ this.placement = "top";
30
+ this.strategy = "absolute";
31
+ this.distance = 0;
32
+ this.skidding = 0;
33
+ this.arrow = false;
34
+ this.arrowPlacement = "anchor";
35
+ this.arrowPadding = 10;
36
+ this.flip = false;
37
+ this.flipFallbackPlacements = "";
38
+ this.flipFallbackStrategy = "best-fit";
39
+ this.flipPadding = 0;
40
+ this.shift = false;
41
+ this.shiftPadding = 0;
42
+ this.autoSizePadding = 0;
43
+ this.hoverBridge = false;
44
+ this.updateHoverBridge = () => {
45
+ if (this.hoverBridge && this.anchorEl) {
46
+ const anchorRect = this.anchorEl.getBoundingClientRect();
47
+ const popupRect = this.popup.getBoundingClientRect();
48
+ const isVertical = this.placement.includes("top") || this.placement.includes("bottom");
49
+ let topLeftX = 0;
50
+ let topLeftY = 0;
51
+ let topRightX = 0;
52
+ let topRightY = 0;
53
+ let bottomLeftX = 0;
54
+ let bottomLeftY = 0;
55
+ let bottomRightX = 0;
56
+ let bottomRightY = 0;
57
+ if (isVertical) {
58
+ if (anchorRect.top < popupRect.top) {
59
+ topLeftX = anchorRect.left;
60
+ topLeftY = anchorRect.bottom;
61
+ topRightX = anchorRect.right;
62
+ topRightY = anchorRect.bottom;
63
+ bottomLeftX = popupRect.left;
64
+ bottomLeftY = popupRect.top;
65
+ bottomRightX = popupRect.right;
66
+ bottomRightY = popupRect.top;
67
+ } else {
68
+ topLeftX = popupRect.left;
69
+ topLeftY = popupRect.bottom;
70
+ topRightX = popupRect.right;
71
+ topRightY = popupRect.bottom;
72
+ bottomLeftX = anchorRect.left;
73
+ bottomLeftY = anchorRect.top;
74
+ bottomRightX = anchorRect.right;
75
+ bottomRightY = anchorRect.top;
76
+ }
77
+ } else {
78
+ if (anchorRect.left < popupRect.left) {
79
+ topLeftX = anchorRect.right;
80
+ topLeftY = anchorRect.top;
81
+ topRightX = popupRect.left;
82
+ topRightY = popupRect.top;
83
+ bottomLeftX = anchorRect.right;
84
+ bottomLeftY = anchorRect.bottom;
85
+ bottomRightX = popupRect.left;
86
+ bottomRightY = popupRect.bottom;
87
+ } else {
88
+ topLeftX = popupRect.right;
89
+ topLeftY = popupRect.top;
90
+ topRightX = anchorRect.left;
91
+ topRightY = anchorRect.top;
92
+ bottomLeftX = popupRect.right;
93
+ bottomLeftY = popupRect.bottom;
94
+ bottomRightX = anchorRect.left;
95
+ bottomRightY = anchorRect.bottom;
96
+ }
97
+ }
98
+ this.style.setProperty("--hover-bridge-top-left-x", `${topLeftX}px`);
99
+ this.style.setProperty("--hover-bridge-top-left-y", `${topLeftY}px`);
100
+ this.style.setProperty("--hover-bridge-top-right-x", `${topRightX}px`);
101
+ this.style.setProperty("--hover-bridge-top-right-y", `${topRightY}px`);
102
+ this.style.setProperty("--hover-bridge-bottom-left-x", `${bottomLeftX}px`);
103
+ this.style.setProperty("--hover-bridge-bottom-left-y", `${bottomLeftY}px`);
104
+ this.style.setProperty("--hover-bridge-bottom-right-x", `${bottomRightX}px`);
105
+ this.style.setProperty("--hover-bridge-bottom-right-y", `${bottomRightY}px`);
106
+ }
107
+ };
108
+ }
109
+ async connectedCallback() {
110
+ super.connectedCallback();
111
+ this.active = boolean(this.active, true);
112
+ this.arrow = boolean(this.arrow, true);
113
+ this.flip = boolean(this.flip, true);
114
+ this.shift = boolean(this.shift, true);
115
+ this.hoverBridge = boolean(this.hoverBridge, true);
116
+ await this.updateComplete;
117
+ this.start();
118
+ }
119
+ disconnectedCallback() {
120
+ super.disconnectedCallback();
121
+ this.stop();
122
+ }
123
+ /** @internal */
124
+ async updated(changedProps) {
125
+ super.updated(changedProps);
126
+ if (changedProps.has("active")) {
127
+ if (this.active) {
128
+ this.start();
129
+ } else {
130
+ this.stop();
131
+ }
132
+ }
133
+ if (changedProps.has("anchor")) {
134
+ this.handleAnchorChange();
135
+ }
136
+ if (this.active) {
137
+ await this.updateComplete;
138
+ this.reposition();
139
+ }
140
+ }
141
+ async handleAnchorChange() {
142
+ await this.stop();
143
+ if (this.anchor && typeof this.anchor === "string") {
144
+ const root = this.getRootNode();
145
+ this.anchorEl = root.getElementById(this.anchor);
146
+ } else if (this.anchor instanceof Element || isVirtualElement(this.anchor)) {
147
+ this.anchorEl = this.anchor;
148
+ } else {
149
+ this.anchorEl = this.querySelector('[slot="anchor"]');
150
+ }
151
+ if (this.anchorEl instanceof HTMLSlotElement) {
152
+ this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];
153
+ }
154
+ if (this.anchorEl) {
155
+ this.start();
156
+ }
157
+ }
158
+ start() {
159
+ if (!this.anchorEl) {
160
+ return;
161
+ }
162
+ this.cleanup = autoUpdate(this.anchorEl, this.popup, () => {
163
+ this.reposition();
164
+ });
165
+ }
166
+ async stop() {
167
+ return new Promise((resolve) => {
168
+ if (this.cleanup) {
169
+ this.cleanup();
170
+ this.cleanup = void 0;
171
+ this.removeAttribute("data-current-placement");
172
+ this.style.removeProperty("--auto-size-available-width");
173
+ this.style.removeProperty("--auto-size-available-height");
174
+ requestAnimationFrame(() => resolve());
175
+ } else {
176
+ resolve();
177
+ }
178
+ });
179
+ }
180
+ /** Forces the popup to recalculate and reposition itself. */
181
+ reposition() {
182
+ if (!this.active || !this.anchorEl) {
183
+ return;
184
+ }
185
+ const middleware = [
186
+ // The offset middleware goes first
187
+ offset({ mainAxis: this.distance, crossAxis: this.skidding })
188
+ ];
189
+ if (this.sync) {
190
+ middleware.push(
191
+ size({
192
+ apply: ({ rects }) => {
193
+ const syncWidth = this.sync === "width" || this.sync === "both";
194
+ const syncHeight = this.sync === "height" || this.sync === "both";
195
+ this.popup.style.width = syncWidth ? `${rects.reference.width}px` : "";
196
+ this.popup.style.height = syncHeight ? `${rects.reference.height}px` : "";
197
+ }
198
+ })
199
+ );
200
+ } else {
201
+ this.popup.style.width = "";
202
+ this.popup.style.height = "";
203
+ }
204
+ if (this.flip) {
205
+ middleware.push(
206
+ flip({
207
+ boundary: this.flipBoundary,
208
+ // @ts-expect-error - We're converting a string attribute to an array here
209
+ fallbackPlacements: this.flipFallbackPlacements,
210
+ fallbackStrategy: this.flipFallbackStrategy === "best-fit" ? "bestFit" : "initialPlacement",
211
+ padding: this.flipPadding
212
+ })
213
+ );
214
+ }
215
+ if (this.shift) {
216
+ middleware.push(
217
+ shift({
218
+ boundary: this.shiftBoundary,
219
+ padding: this.shiftPadding
220
+ })
221
+ );
222
+ }
223
+ if (this.autoSize) {
224
+ middleware.push(
225
+ size({
226
+ boundary: this.autoSizeBoundary,
227
+ padding: this.autoSizePadding,
228
+ apply: ({ availableWidth, availableHeight }) => {
229
+ if (this.autoSize === "vertical" || this.autoSize === "both") {
230
+ this.style.setProperty("--auto-size-available-height", `${availableHeight}px`);
231
+ } else {
232
+ this.style.removeProperty("--auto-size-available-height");
233
+ }
234
+ if (this.autoSize === "horizontal" || this.autoSize === "both") {
235
+ this.style.setProperty("--auto-size-available-width", `${availableWidth}px`);
236
+ } else {
237
+ this.style.removeProperty("--auto-size-available-width");
238
+ }
239
+ }
240
+ })
241
+ );
242
+ } else {
243
+ this.style.removeProperty("--auto-size-available-width");
244
+ this.style.removeProperty("--auto-size-available-height");
245
+ }
246
+ if (this.arrow) {
247
+ middleware.push(
248
+ arrow({
249
+ element: this.arrowEl,
250
+ padding: this.arrowPadding
251
+ })
252
+ );
253
+ }
254
+ const getOffsetParent = this.strategy === "absolute" ? (element) => platform.getOffsetParent(element, offsetParent) : platform.getOffsetParent;
255
+ computePosition(this.anchorEl, this.popup, {
256
+ placement: this.placement,
257
+ middleware,
258
+ strategy: this.strategy,
259
+ platform: {
260
+ ...platform,
261
+ getOffsetParent
262
+ }
263
+ }).then(({ x, y, middlewareData, placement }) => {
264
+ const isRtl = this.matches(":dir(rtl)");
265
+ const staticSide = { top: "bottom", right: "left", bottom: "top", left: "right" }[placement.split("-")[0]];
266
+ this.setAttribute("data-current-placement", placement);
267
+ Object.assign(this.popup.style, {
268
+ left: `${x}px`,
269
+ top: `${y}px`
270
+ });
271
+ if (this.arrow) {
272
+ const arrowX = middlewareData.arrow.x;
273
+ const arrowY = middlewareData.arrow.y;
274
+ let top = "";
275
+ let right = "";
276
+ let bottom = "";
277
+ let left = "";
278
+ if (this.arrowPlacement === "start") {
279
+ const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
280
+ top = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
281
+ right = isRtl ? value : "";
282
+ left = isRtl ? "" : value;
283
+ } else if (this.arrowPlacement === "end") {
284
+ const value = typeof arrowX === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
285
+ right = isRtl ? "" : value;
286
+ left = isRtl ? value : "";
287
+ bottom = typeof arrowY === "number" ? `calc(${this.arrowPadding}px - var(--arrow-padding-offset))` : "";
288
+ } else if (this.arrowPlacement === "center") {
289
+ left = typeof arrowX === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
290
+ top = typeof arrowY === "number" ? `calc(50% - var(--arrow-size-diagonal))` : "";
291
+ } else {
292
+ left = typeof arrowX === "number" ? `${arrowX}px` : "";
293
+ top = typeof arrowY === "number" ? `${arrowY}px` : "";
294
+ }
295
+ Object.assign(this.arrowEl.style, {
296
+ top,
297
+ right,
298
+ bottom,
299
+ left,
300
+ [staticSide]: "calc(var(--arrow-size-diagonal) * -1)"
301
+ });
302
+ }
303
+ });
304
+ requestAnimationFrame(() => this.updateHoverBridge());
305
+ this.emit("flow-ui-reposition");
306
+ }
307
+ render() {
308
+ return html`
309
+ <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
310
+
311
+ <span
312
+ part="hover-bridge"
313
+ class=${classMap({
314
+ "popup-hover-bridge": true,
315
+ "popup-hover-bridge--visible": this.hoverBridge && this.active
316
+ })}
317
+ ></span>
318
+
319
+ <div
320
+ part="popup"
321
+ class=${classMap({
322
+ popup: true,
323
+ "popup--active": this.active,
324
+ "popup--fixed": this.strategy === "fixed",
325
+ "popup--has-arrow": this.arrow
326
+ })}
327
+ >
328
+ <slot></slot>
329
+ ${this.arrow ? html`
330
+ <div part="arrow" class="popup__arrow" role="presentation"></div>
331
+ ` : ""}
332
+ </div>
333
+ `;
334
+ }
335
+ }
336
+ FlowUiPopup.styles = [componentStyles, styles];
337
+ __decorateClass([
338
+ query(".popup")
339
+ ], FlowUiPopup.prototype, "popup", 2);
340
+ __decorateClass([
341
+ query(".popup__arrow")
342
+ ], FlowUiPopup.prototype, "arrowEl", 2);
343
+ __decorateClass([
344
+ property()
345
+ ], FlowUiPopup.prototype, "anchor", 2);
346
+ __decorateClass([
347
+ property({ type: Boolean, reflect: true })
348
+ ], FlowUiPopup.prototype, "active", 2);
349
+ __decorateClass([
350
+ property({ reflect: true })
351
+ ], FlowUiPopup.prototype, "placement", 2);
352
+ __decorateClass([
353
+ property({ reflect: true })
354
+ ], FlowUiPopup.prototype, "strategy", 2);
355
+ __decorateClass([
356
+ property({ type: Number })
357
+ ], FlowUiPopup.prototype, "distance", 2);
358
+ __decorateClass([
359
+ property({ type: Number })
360
+ ], FlowUiPopup.prototype, "skidding", 2);
361
+ __decorateClass([
362
+ property({ type: Boolean })
363
+ ], FlowUiPopup.prototype, "arrow", 2);
364
+ __decorateClass([
365
+ property({ attribute: "arrow-placement" })
366
+ ], FlowUiPopup.prototype, "arrowPlacement", 2);
367
+ __decorateClass([
368
+ property({ attribute: "arrow-padding", type: Number })
369
+ ], FlowUiPopup.prototype, "arrowPadding", 2);
370
+ __decorateClass([
371
+ property({ type: Boolean })
372
+ ], FlowUiPopup.prototype, "flip", 2);
373
+ __decorateClass([
374
+ property({
375
+ attribute: "flip-fallback-placements",
376
+ converter: {
377
+ fromAttribute: (value) => {
378
+ return value.split(" ").map((p) => p.trim()).filter((p) => p !== "");
379
+ },
380
+ toAttribute: (value) => {
381
+ return value.join(" ");
382
+ }
383
+ }
384
+ })
385
+ ], FlowUiPopup.prototype, "flipFallbackPlacements", 2);
386
+ __decorateClass([
387
+ property({ attribute: "flip-fallback-strategy" })
388
+ ], FlowUiPopup.prototype, "flipFallbackStrategy", 2);
389
+ __decorateClass([
390
+ property({ type: Object })
391
+ ], FlowUiPopup.prototype, "flipBoundary", 2);
392
+ __decorateClass([
393
+ property({ attribute: "flip-padding", type: Number })
394
+ ], FlowUiPopup.prototype, "flipPadding", 2);
395
+ __decorateClass([
396
+ property({ type: Boolean })
397
+ ], FlowUiPopup.prototype, "shift", 2);
398
+ __decorateClass([
399
+ property({ type: Object })
400
+ ], FlowUiPopup.prototype, "shiftBoundary", 2);
401
+ __decorateClass([
402
+ property({ attribute: "shift-padding", type: Number })
403
+ ], FlowUiPopup.prototype, "shiftPadding", 2);
404
+ __decorateClass([
405
+ property({ attribute: "auto-size" })
406
+ ], FlowUiPopup.prototype, "autoSize", 2);
407
+ __decorateClass([
408
+ property()
409
+ ], FlowUiPopup.prototype, "sync", 2);
410
+ __decorateClass([
411
+ property({ type: Object })
412
+ ], FlowUiPopup.prototype, "autoSizeBoundary", 2);
413
+ __decorateClass([
414
+ property({ attribute: "auto-size-padding", type: Number })
415
+ ], FlowUiPopup.prototype, "autoSizePadding", 2);
416
+ __decorateClass([
417
+ property({ attribute: "hover-bridge", type: Boolean })
418
+ ], FlowUiPopup.prototype, "hoverBridge", 2);
419
+
420
+ export { FlowUiPopup as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiPopup from './popup.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiPopup as default };
@@ -0,0 +1,63 @@
1
+ import { css } from 'lit';
2
+
3
+ const styles = css`
4
+ :host {
5
+ --arrow-color: var(--flow-ui-color-neutral-1000);
6
+ --arrow-size: 6px;
7
+
8
+ /*
9
+ * These properties are computed to account for the arrow's dimensions after being rotated 45º. The constant
10
+ * 0.7071 is derived from sin(45), which is the diagonal size of the arrow's container after rotating.
11
+ */
12
+ --arrow-size-diagonal: calc(var(--arrow-size) * 0.7071);
13
+ --arrow-padding-offset: calc(var(--arrow-size-diagonal) - var(--arrow-size));
14
+
15
+ display: contents;
16
+ }
17
+
18
+ .popup {
19
+ position: absolute;
20
+ isolation: isolate;
21
+ max-width: var(--auto-size-available-width, none);
22
+ max-height: var(--auto-size-available-height, none);
23
+ }
24
+
25
+ .popup--fixed {
26
+ position: fixed;
27
+ }
28
+
29
+ .popup:not(.popup--active) {
30
+ display: none;
31
+ }
32
+
33
+ .popup__arrow {
34
+ position: absolute;
35
+ width: calc(var(--arrow-size-diagonal) * 2);
36
+ height: calc(var(--arrow-size-diagonal) * 2);
37
+ rotate: 45deg;
38
+ background: var(--arrow-color);
39
+ z-index: -1;
40
+ }
41
+
42
+ /* Hover bridge */
43
+ .popup-hover-bridge:not(.popup-hover-bridge--visible) {
44
+ display: none;
45
+ }
46
+
47
+ .popup-hover-bridge {
48
+ position: fixed;
49
+ z-index: calc(var(--flow-ui-z-index-dropdown) - 1);
50
+ top: 0;
51
+ right: 0;
52
+ bottom: 0;
53
+ left: 0;
54
+ clip-path: polygon(
55
+ var(--hover-bridge-top-left-x, 0) var(--hover-bridge-top-left-y, 0),
56
+ var(--hover-bridge-top-right-x, 0) var(--hover-bridge-top-right-y, 0),
57
+ var(--hover-bridge-bottom-right-x, 0) var(--hover-bridge-bottom-right-y, 0),
58
+ var(--hover-bridge-bottom-left-x, 0) var(--hover-bridge-bottom-left-y, 0)
59
+ );
60
+ }
61
+ `;
62
+
63
+ export { styles as default };
@@ -0,0 +1,70 @@
1
+ import { html } from 'lit';
2
+ import { property } from 'lit/decorators.js';
3
+ import { classMap } from 'lit/directives/class-map.js';
4
+ import { ifDefined } from 'lit/directives/if-defined.js';
5
+ import { styleMap } from 'lit/directives/style-map.js';
6
+ import { boolean } from '../../internal/boolean.mjs';
7
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
8
+ import { LocalizeController } from '../../utilities/localize.mjs';
9
+ import styles from './progress-bar.styles.mjs';
10
+
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __decorateClass = (decorators, target, key, kind) => {
14
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
15
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
16
+ if (decorator = decorators[i])
17
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
18
+ if (kind && result)
19
+ __defProp(target, key, result);
20
+ return result;
21
+ };
22
+ class FlowUiProgressBar extends FlowRdfElement {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.localize = new LocalizeController(this);
26
+ this.value = 0;
27
+ this.indeterminate = false;
28
+ this.label = "";
29
+ }
30
+ connectedCallback() {
31
+ super.connectedCallback();
32
+ this.indeterminate = boolean(this.indeterminate, true);
33
+ }
34
+ render() {
35
+ return html`
36
+ <div
37
+ part="base"
38
+ class=${classMap({
39
+ "progress-bar": true,
40
+ "progress-bar--indeterminate": this.indeterminate,
41
+ "progress-bar--rtl": this.localize.dir() === "rtl"
42
+ })}
43
+ role="progressbar"
44
+ title=${ifDefined(this.title)}
45
+ aria-label=${this.label.length > 0 ? this.label : this.localize.term("progress")}
46
+ aria-valuemin="0"
47
+ aria-valuemax="100"
48
+ aria-valuenow=${this.indeterminate ? 0 : this.value}
49
+ >
50
+ <div part="indicator" class="progress-bar__indicator" style=${styleMap({ width: `${this.value}%` })}>
51
+ ${!this.indeterminate ? html`
52
+ <slot part="label" class="progress-bar__label"></slot>
53
+ ` : ""}
54
+ </div>
55
+ </div>
56
+ `;
57
+ }
58
+ }
59
+ FlowUiProgressBar.styles = styles;
60
+ __decorateClass([
61
+ property({ type: Number, reflect: true })
62
+ ], FlowUiProgressBar.prototype, "value", 2);
63
+ __decorateClass([
64
+ property({ type: Boolean, reflect: true })
65
+ ], FlowUiProgressBar.prototype, "indeterminate", 2);
66
+ __decorateClass([
67
+ property()
68
+ ], FlowUiProgressBar.prototype, "label", 2);
69
+
70
+ export { FlowUiProgressBar as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiProgressBar from './progress-bar.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiProgressBar as default };
@@ -0,0 +1,87 @@
1
+ import { css } from 'lit';
2
+ import componentStyles from '../../styles/component.styles.mjs';
3
+
4
+ const styles = css`
5
+ ${componentStyles}
6
+
7
+ :host {
8
+ --height: 1rem;
9
+ --track-color: var(--flow-ui-color-neutral-200);
10
+ --indicator-color: var(--flow-ui-color-primary-500);
11
+ --label-color: var(--flow-ui-color-neutral-0);
12
+
13
+ display: block;
14
+ }
15
+
16
+ .progress-bar {
17
+ position: relative;
18
+ background-color: var(--track-color);
19
+ height: var(--height);
20
+ border-radius: var(--flow-ui-border-radius-pill);
21
+ box-shadow: inset var(--flow-ui-shadow-small);
22
+ overflow: hidden;
23
+ }
24
+
25
+ .progress-bar__indicator {
26
+ height: 100%;
27
+ font-family: var(--flow-ui-font-sans);
28
+ font-size: 12px;
29
+ font-weight: var(--flow-ui-font-weight-normal);
30
+ background-color: var(--indicator-color);
31
+ color: var(--label-color);
32
+ text-align: center;
33
+ line-height: var(--height);
34
+ white-space: nowrap;
35
+ overflow: hidden;
36
+ transition: 400ms width, 400ms background-color;
37
+ user-select: none;
38
+ }
39
+
40
+ /* Indeterminate */
41
+ .progress-bar--indeterminate .progress-bar__indicator {
42
+ position: absolute;
43
+ animation: indeterminate 2.5s infinite cubic-bezier(0.37, 0, 0.63, 1);
44
+ }
45
+
46
+ .progress-bar--indeterminate.progress-bar--rtl .progress-bar__indicator {
47
+ animation-name: indeterminate-rtl;
48
+ }
49
+
50
+ @media (forced-colors: active) {
51
+ .progress-bar {
52
+ outline: solid 1px SelectedItem;
53
+ background-color: var(--flow-ui-color-neutral-0);
54
+ }
55
+
56
+ .progress-bar__indicator {
57
+ outline: solid 1px SelectedItem;
58
+ background-color: SelectedItem;
59
+ }
60
+ }
61
+
62
+ @keyframes indeterminate {
63
+ 0% {
64
+ left: -50%;
65
+ width: 50%;
66
+ }
67
+ 75%,
68
+ 100% {
69
+ left: 100%;
70
+ width: 50%;
71
+ }
72
+ }
73
+
74
+ @keyframes indeterminate-rtl {
75
+ 0% {
76
+ right: -50%;
77
+ width: 50%;
78
+ }
79
+ 75%,
80
+ 100% {
81
+ right: 100%;
82
+ width: 50%;
83
+ }
84
+ }
85
+ `;
86
+
87
+ export { styles as default };