@emuanalytics/flow-rdf-ui 4.0.5 → 4.0.7

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 (359) 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 +297 -0
  194. package/dist/components/timer/timer.mjs +5 -0
  195. package/dist/components/timer/timer.styles.mjs +95 -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 +1535 -1530
  215. package/dist/index.d.mts +145 -132
  216. package/dist/index.d.ts +145 -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 +193 -181
  351. package/package.json +5 -8
  352. package/themes/dark.css +6 -2
  353. package/themes/dark.styles.js +6 -2
  354. package/themes/light.css +6 -2
  355. package/themes/light.styles.js +6 -2
  356. package/dist/icons/index.cjs +0 -4053
  357. package/dist/icons/index.d.cts +0 -2027
  358. package/dist/index.cjs +0 -25187
  359. package/dist/index.d.cts +0 -5678
@@ -0,0 +1,78 @@
1
+ import { DateTime } from 'luxon';
2
+ import { floorDateTime } from '../../internal/datetime.mjs';
3
+
4
+ const TIMER_INTERVAL = 100;
5
+ class Ticker {
6
+ constructor(tickUnit, tickValue, zone) {
7
+ this.subscribers = [];
8
+ this.currentDateTime = DateTime.fromMillis(0);
9
+ this.nextUpdateAt = DateTime.fromMillis(0);
10
+ this.tickUnit = tickUnit;
11
+ this.tickValue = tickValue;
12
+ this.zone = zone;
13
+ }
14
+ subscribe(fn) {
15
+ this.subscribers.push(fn);
16
+ return {
17
+ unsubscribe: () => {
18
+ this.unsubscribe(fn);
19
+ }
20
+ };
21
+ }
22
+ unsubscribe(fn) {
23
+ this.subscribers = this.subscribers.filter((subscriber) => subscriber !== fn);
24
+ }
25
+ start() {
26
+ if (this.timer) {
27
+ return;
28
+ }
29
+ this.stop();
30
+ this.timer = setInterval(this.tick.bind(this), TIMER_INTERVAL);
31
+ this.tick(true);
32
+ }
33
+ stop() {
34
+ if (!this.timer) {
35
+ return;
36
+ }
37
+ clearInterval(this.timer);
38
+ this.timer = void 0;
39
+ }
40
+ setZone(zone) {
41
+ this.zone = zone;
42
+ }
43
+ setTick(tickUnit, tickValue) {
44
+ this.tickUnit = tickUnit;
45
+ this.tickValue = tickValue;
46
+ }
47
+ /**
48
+ * Tick the clock
49
+ *
50
+ * A major-rounded tick is forced when the clock is started to ensure
51
+ * that the timer control updates its value as soon as 'play' is clicked,
52
+ * rather than waiting for the next major tick.
53
+ *
54
+ * @param forceMajor
55
+ */
56
+ tick(forceMajor = false) {
57
+ const now = DateTime.local({ zone: this.zone }).set({ millisecond: 0 });
58
+ if (now >= this.nextUpdateAt) {
59
+ this.nextUpdateAt = floorDateTime(now.plus({ second: 1 }), "second", 1);
60
+ let minorFlooredNow = floorDateTime(now, "second", 1);
61
+ const majorFlooredNow = floorDateTime(now, this.tickUnit, this.tickValue);
62
+ if (forceMajor) {
63
+ minorFlooredNow = majorFlooredNow;
64
+ }
65
+ if (!minorFlooredNow.equals(this.currentDateTime)) {
66
+ this.currentDateTime = minorFlooredNow;
67
+ this.notifySubscribers(this.currentDateTime, minorFlooredNow.equals(majorFlooredNow) ? "major" : "minor");
68
+ }
69
+ }
70
+ }
71
+ notifySubscribers(dateTime, tickType) {
72
+ if (dateTime.isValid) {
73
+ this.subscribers.forEach((subscriber) => subscriber(dateTime.toISO(), tickType));
74
+ }
75
+ }
76
+ }
77
+
78
+ export { Ticker };
@@ -0,0 +1,297 @@
1
+ import { html, nothing } from 'lit';
2
+ import { query, state, 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 { DateTime } from 'luxon';
6
+ import { boolean } from '../../internal/boolean.mjs';
7
+ import { parseDuration, floorDateTime, ceilDateTime } from '../../internal/datetime.mjs';
8
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
9
+ import { isStringFull } from '../../internal/type-checks.mjs';
10
+ import { watch } from '../../internal/watch.mjs';
11
+ import { Ticker } from './ticker.mjs';
12
+ import styles from './timer.styles.mjs';
13
+ import { debounce } from '@emuanalytics/flow-rdf-core/utils';
14
+
15
+ var __defProp = Object.defineProperty;
16
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
17
+ var __decorateClass = (decorators, target, key, kind) => {
18
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
19
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
20
+ if (decorator = decorators[i])
21
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
22
+ if (kind && result)
23
+ __defProp(target, key, result);
24
+ return result;
25
+ };
26
+ const STEP_DEBOUNCE_TIME = 300;
27
+ class FlowUiTimer extends FlowRdfElement {
28
+ constructor() {
29
+ super(...arguments);
30
+ this._displayDateTime = DateTime.now();
31
+ this.running = false;
32
+ this.dateFormat = "DD";
33
+ this.dayFormat = "ccc";
34
+ this.timeFormat = "TT";
35
+ this.zoneFormat = "ZZZZ";
36
+ this.majorStep = "1 minute";
37
+ this.minorStep = "5 seconds";
38
+ this.hideZone = false;
39
+ this.placement = "bottom-start";
40
+ this.debouncedEmitChange = debounce(
41
+ () => {
42
+ this.emit("flow-ui-input");
43
+ this.emit("flow-ui-change");
44
+ },
45
+ STEP_DEBOUNCE_TIME,
46
+ { leading: true, trailing: true, context: this }
47
+ );
48
+ }
49
+ connectedCallback() {
50
+ super.connectedCallback();
51
+ this.hideZone = boolean(this.hideZone, true);
52
+ this.running = boolean(this.running, true);
53
+ this.ticker = new Ticker("second", 5, "Europe/London");
54
+ this.tickerSubscription = this.ticker.subscribe((dateTime, tickType) => {
55
+ if (tickType === "major") {
56
+ this.value = dateTime;
57
+ this.emit("flow-ui-change");
58
+ } else {
59
+ this.setDisplayDateTime(dateTime);
60
+ }
61
+ });
62
+ }
63
+ disconnectedCallback() {
64
+ super.disconnectedCallback();
65
+ this.tickerSubscription.unsubscribe();
66
+ }
67
+ updateDisplayValue() {
68
+ this.setDisplayDateTime(this.value);
69
+ }
70
+ updateParsedSteps() {
71
+ this.minorStepDuration = parseDuration(this.minorStep) ?? { second: 5 };
72
+ this.majorStepDuration = parseDuration(this.majorStep) ?? { minute: 1 };
73
+ }
74
+ updateRunning() {
75
+ if (this.running) {
76
+ this.ticker.start();
77
+ } else {
78
+ this.ticker.stop();
79
+ }
80
+ }
81
+ setDisplayDateTime(dateTime) {
82
+ const zone = isStringFull(this.timezone) ? this.timezone : void 0;
83
+ const locale = isStringFull(this.locale) ? this.locale : void 0;
84
+ this._displayDateTime = DateTime.fromISO(dateTime, { zone, locale });
85
+ }
86
+ handleDateTimeKeyDown(event) {
87
+ if (event.key === "Enter") ;
88
+ event.stopPropagation();
89
+ }
90
+ handleCalendarChange(event) {
91
+ event.stopPropagation();
92
+ const zone = isStringFull(this.timezone) ? this.timezone : void 0;
93
+ const locale = isStringFull(this.locale) ? this.locale : void 0;
94
+ const calendarDateTime = DateTime.fromISO(this.calendar.value, { zone, locale });
95
+ if (!this._displayDateTime.startOf("day").equals(calendarDateTime.startOf("day"))) {
96
+ this.dropdown.hide();
97
+ }
98
+ this.value = this.calendar.value;
99
+ this.emit("flow-ui-input");
100
+ this.emit("flow-ui-change");
101
+ }
102
+ handlePlayPauseClicked() {
103
+ this.running = !this.running;
104
+ }
105
+ handleStepClicked(ev, direction) {
106
+ ev.stopPropagation();
107
+ this.running = false;
108
+ let dateTime;
109
+ const majorStepUnit = Object.keys(this.majorStepDuration)[0];
110
+ const minorStepUnit = Object.keys(this.minorStepDuration)[0];
111
+ const majorStepValue = this.majorStepDuration[majorStepUnit];
112
+ const minorStepValue = this.minorStepDuration[minorStepUnit];
113
+ switch (direction) {
114
+ case "fast-back":
115
+ dateTime = ceilDateTime(
116
+ this._displayDateTime.minus(this.majorStepDuration),
117
+ majorStepUnit,
118
+ majorStepValue
119
+ );
120
+ break;
121
+ case "back":
122
+ dateTime = ceilDateTime(
123
+ this._displayDateTime.minus(this.minorStepDuration),
124
+ minorStepUnit,
125
+ minorStepValue
126
+ );
127
+ break;
128
+ case "forward":
129
+ dateTime = floorDateTime(
130
+ this._displayDateTime.plus(this.minorStepDuration),
131
+ minorStepUnit,
132
+ minorStepValue
133
+ );
134
+ break;
135
+ case "fast-forward":
136
+ dateTime = floorDateTime(
137
+ this._displayDateTime.plus(this.majorStepDuration),
138
+ majorStepUnit,
139
+ majorStepValue
140
+ );
141
+ break;
142
+ default:
143
+ dateTime = this._displayDateTime;
144
+ }
145
+ this.value = dateTime.toISO() ?? "";
146
+ this.setDisplayDateTime(this.value);
147
+ this.debouncedEmitChange();
148
+ }
149
+ formattedDisplayDateTime(format, uppercase = false) {
150
+ const formatted = this._displayDateTime.isValid ? this._displayDateTime.toFormat(format) : "--";
151
+ return uppercase ? formatted.toUpperCase() : formatted;
152
+ }
153
+ render() {
154
+ return html`
155
+ <div
156
+ part="base"
157
+ class=${classMap({
158
+ timer: true
159
+ })}
160
+ >
161
+ <flow-ui-dropdown
162
+ class="timer__dropdown"
163
+ placement=${this.placement}
164
+ distance="4"
165
+ strategy="fixed"
166
+ flip
167
+ shift
168
+ sync="width"
169
+ auto-size="height"
170
+ @flow-ui-show=${() => {
171
+ this.running = false;
172
+ }}
173
+ >
174
+ <div slot="trigger" class="timer__date-time-container" @keydown=${this.handleDateTimeKeyDown}>
175
+ <flow-ui-icon library="system" name="calendar" tabindex="0"></flow-ui-icon>
176
+ <div class="timer__date-container">
177
+ <span class="timer__day">${this.formattedDisplayDateTime(this.dayFormat, true)}</span>
178
+ <span class="timer__date">${this.formattedDisplayDateTime(this.dateFormat)}</span>
179
+ </div>
180
+ <flow-ui-icon library="system" name="clock" tabindex="0"></flow-ui-icon>
181
+ <div class="timer__time-container">
182
+ <span class="timer__time">${this.formattedDisplayDateTime(this.timeFormat)}</span>
183
+
184
+ ${!this.hideZone ? html`
185
+ <flow-ui-tooltip hoist placement="top" content=${this.formattedDisplayDateTime("ZZZZZ")}>
186
+ <span class="timer__zone">${this.formattedDisplayDateTime(this.zoneFormat)}</span>
187
+ </flow-ui-tooltip>
188
+ ` : nothing}
189
+ </div>
190
+ </div>
191
+
192
+ ${html`
193
+ <flow-ui-calendar
194
+ class="timer__calendar"
195
+ display-mode="datetime"
196
+ value=${this.value}
197
+ timezone=${ifDefined(this.timezone)}
198
+ locale=${ifDefined(this.locale)}
199
+ @flow-ui-change=${this.handleCalendarChange}
200
+ ></flow-ui-calendar>
201
+ `}
202
+ </flow-ui-dropdown>
203
+
204
+ <div class="timer__vcr-controls">
205
+ <flow-ui-icon-button
206
+ library="system"
207
+ name="backward-step"
208
+ title="Fast rewind"
209
+ @click=${(ev) => this.handleStepClicked(ev, "fast-back")}
210
+ ></flow-ui-icon-button>
211
+ <flow-ui-icon-button
212
+ library="system"
213
+ name="backward"
214
+ title="Rewind"
215
+ @click=${(ev) => this.handleStepClicked(ev, "back")}
216
+ ></flow-ui-icon-button>
217
+ <flow-ui-icon-button
218
+ library="system"
219
+ name=${this.running ? "pause" : "play"}
220
+ title=${this.running ? "pause" : "play"}
221
+ @click=${this.handlePlayPauseClicked}
222
+ ></flow-ui-icon-button>
223
+ <flow-ui-icon-button
224
+ library="system"
225
+ name="forward"
226
+ title="Forward"
227
+ @click=${(ev) => this.handleStepClicked(ev, "forward")}
228
+ ></flow-ui-icon-button>
229
+ <flow-ui-icon-button
230
+ library="system"
231
+ name="forward-step"
232
+ title="Fast Forward"
233
+ .value=${3}
234
+ @click=${(ev) => this.handleStepClicked(ev, "fast-forward")}
235
+ ></flow-ui-icon-button>
236
+ </div>
237
+ </div>
238
+ `;
239
+ }
240
+ }
241
+ FlowUiTimer.styles = styles;
242
+ __decorateClass([
243
+ query(".timer__dropdown")
244
+ ], FlowUiTimer.prototype, "dropdown", 2);
245
+ __decorateClass([
246
+ query(".timer__calendar")
247
+ ], FlowUiTimer.prototype, "calendar", 2);
248
+ __decorateClass([
249
+ state()
250
+ ], FlowUiTimer.prototype, "_displayDateTime", 2);
251
+ __decorateClass([
252
+ property()
253
+ ], FlowUiTimer.prototype, "value", 2);
254
+ __decorateClass([
255
+ property()
256
+ ], FlowUiTimer.prototype, "timezone", 2);
257
+ __decorateClass([
258
+ property()
259
+ ], FlowUiTimer.prototype, "locale", 2);
260
+ __decorateClass([
261
+ property({ type: Boolean, reflect: true })
262
+ ], FlowUiTimer.prototype, "running", 2);
263
+ __decorateClass([
264
+ property()
265
+ ], FlowUiTimer.prototype, "dateFormat", 2);
266
+ __decorateClass([
267
+ property()
268
+ ], FlowUiTimer.prototype, "dayFormat", 2);
269
+ __decorateClass([
270
+ property()
271
+ ], FlowUiTimer.prototype, "timeFormat", 2);
272
+ __decorateClass([
273
+ property()
274
+ ], FlowUiTimer.prototype, "zoneFormat", 2);
275
+ __decorateClass([
276
+ property({ attribute: "major-step" })
277
+ ], FlowUiTimer.prototype, "majorStep", 2);
278
+ __decorateClass([
279
+ property({ attribute: "minor-step" })
280
+ ], FlowUiTimer.prototype, "minorStep", 2);
281
+ __decorateClass([
282
+ property({ type: Boolean, attribute: "hide-zone" })
283
+ ], FlowUiTimer.prototype, "hideZone", 2);
284
+ __decorateClass([
285
+ property()
286
+ ], FlowUiTimer.prototype, "placement", 2);
287
+ __decorateClass([
288
+ watch(["value", "timezone", "locale"])
289
+ ], FlowUiTimer.prototype, "updateDisplayValue", 1);
290
+ __decorateClass([
291
+ watch(["majorStep", "minorStep"])
292
+ ], FlowUiTimer.prototype, "updateParsedSteps", 1);
293
+ __decorateClass([
294
+ watch("running")
295
+ ], FlowUiTimer.prototype, "updateRunning", 1);
296
+
297
+ export { FlowUiTimer as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiTimer from './timer.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiTimer as default };
@@ -0,0 +1,95 @@
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
+ min-width: fit-content;
10
+ }
11
+
12
+ .timer__dropdown::part(panel) {
13
+ background-color: var(--flow-ui-color-neutral-0);
14
+ padding: var(--flow-ui-spacing-2x-small);
15
+ }
16
+
17
+ .timer {
18
+ /* Balance top spacing with VCR button spacing */
19
+ padding-top: var(--flow-ui-spacing-x-small);
20
+ min-width: fit-content;
21
+ font-family: var(--flow-ui-input-font-family);
22
+ }
23
+
24
+ .timer__dropdown {
25
+ display: block;
26
+ }
27
+
28
+ .timer__date-time-container {
29
+ display: grid;
30
+ grid-template-columns: max-content 1fr max-content max-content;
31
+
32
+ align-items: start;
33
+ line-height: 16px;
34
+ cursor: pointer;
35
+ }
36
+
37
+ .timer__date-time-container flow-ui-icon {
38
+ color: var(--flow-ui-color-neutral-600);
39
+ }
40
+
41
+ .timer__date-container {
42
+ margin-left: var(--flow-ui-spacing-x-small);
43
+ display: flex;
44
+ flex-direction: column;
45
+ }
46
+
47
+ .timer__day {
48
+ font-size: var(--flow-ui-font-size-small);
49
+ font-weight: var(--flow-ui-font-weight-bold);
50
+ }
51
+
52
+ .timer__date {
53
+ font-size: var(--flow-ui-font-size-x-small);
54
+ }
55
+
56
+ .timer__time-container {
57
+ margin-left: var(--flow-ui-spacing-2x-small);
58
+ display: flex;
59
+ flex-direction: column;
60
+ align-items: start;
61
+ min-width: 84px;
62
+ }
63
+
64
+ .timer__time {
65
+ font-size: var(--flow-ui-font-size-large);
66
+ }
67
+
68
+ .timer__zone {
69
+ font-size: var(--flow-ui-font-size-2x-small);
70
+ }
71
+
72
+ .timer__vcr-controls {
73
+ display: flex;
74
+ align-items: flex-start;
75
+ justify-content: space-between;
76
+ }
77
+
78
+ .timer__vcr-controls flow-ui-icon-button:first-of-type::part(base) {
79
+ padding-left: 0;
80
+ }
81
+
82
+ .timer__vcr-controls flow-ui-icon-button:last-of-type::part(base) {
83
+ padding-right: 0;
84
+ }
85
+
86
+ .timer__calendar {
87
+ width: 100%;
88
+ }
89
+
90
+ .timer__calendar::part(base) {
91
+ width: 100%;
92
+ }
93
+ `;
94
+
95
+ export { styles as default };
@@ -0,0 +1,208 @@
1
+ import { query, state, property } from 'lit/decorators.js';
2
+ import { classMap } from 'lit/directives/class-map.js';
3
+ import { ifDefined } from 'lit/directives/if-defined.js';
4
+ import { html } from 'lit/static-html.js';
5
+ import { boolean } from '../../internal/boolean.mjs';
6
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
7
+ import { HasSlotController } from '../../internal/slot.mjs';
8
+ import { watch } from '../../internal/watch.mjs';
9
+ import styles from './tool-button.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 FlowUiToolButton extends FlowRdfElement {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.hasSlotController = new HasSlotController(this, "[default]", "prefix", "suffix", "icon");
26
+ this.hasFocus = false;
27
+ this.checked = false;
28
+ this.disabled = false;
29
+ this.size = "medium";
30
+ this.pill = false;
31
+ this.outline = false;
32
+ this.tooltip = "";
33
+ this.tooltipPlacement = "top";
34
+ this.tooltipDistance = 8;
35
+ this.tooltipSkidding = 0;
36
+ this.iconLibrary = "default";
37
+ }
38
+ connectedCallback() {
39
+ super.connectedCallback();
40
+ this.checked = boolean(this.checked, true);
41
+ this.disabled = boolean(this.disabled, true);
42
+ this.pill = boolean(this.pill, true);
43
+ this.outline = boolean(this.outline, true);
44
+ this.setAttribute("role", "presentation");
45
+ }
46
+ handleBlur() {
47
+ this.hasFocus = false;
48
+ this.emit("flow-ui-blur");
49
+ }
50
+ handleClick(e) {
51
+ if (this.disabled) {
52
+ e.preventDefault();
53
+ e.stopPropagation();
54
+ return;
55
+ }
56
+ }
57
+ handleFocus() {
58
+ this.hasFocus = true;
59
+ this.emit("flow-ui-focus");
60
+ }
61
+ handleDisabledChange() {
62
+ this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
63
+ }
64
+ /** Sets focus on the radio button. */
65
+ focus(options) {
66
+ this.input.focus(options);
67
+ }
68
+ /** Removes focus from the radio button. */
69
+ blur() {
70
+ this.input.blur();
71
+ }
72
+ renderWithTooltip(content) {
73
+ return html`
74
+ <flow-ui-tooltip
75
+ part="tooltip"
76
+ class=${classMap({
77
+ "tool-button__tooltip": true
78
+ })}
79
+ hoist
80
+ placement=${ifDefined(this.tooltipPlacement)}
81
+ distance=${ifDefined(this.tooltipDistance)}
82
+ skidding=${ifDefined(this.tooltipSkidding)}
83
+ >
84
+ ${content}
85
+ <slot name="tooltip" slot="content">${this.tooltip}</slot>
86
+ </flow-ui-tooltip>
87
+ `;
88
+ }
89
+ render() {
90
+ const hasTooltip = this.tooltip || this.hasSlotController.test("tooltip");
91
+ const toolButtonTemplate = html`
92
+ <div part="base" role="presentation">
93
+ <button
94
+ part="${`button${this.checked ? " button--checked" : ""}`}"
95
+ role="radio"
96
+ aria-checked="${this.checked}"
97
+ class=${classMap({
98
+ button: true,
99
+ "button--default": true,
100
+ "button--x-small": this.size === "x-small",
101
+ "button--small": this.size === "small",
102
+ "button--medium": this.size === "medium",
103
+ "button--large": this.size === "large",
104
+ "button--checked": this.checked,
105
+ "button--disabled": this.disabled,
106
+ "button--focused": this.hasFocus,
107
+ "button--outline": this.outline,
108
+ "button--text": !this.outline,
109
+ "button--pill": this.pill,
110
+ "button--has-label": this.hasSlotController.test("[default]"),
111
+ "button--has-prefix": this.hasSlotController.test("prefix"),
112
+ "button--has-suffix": this.hasSlotController.test("suffix"),
113
+ "button--has-icon": this.icon || this.hasSlotController.test("icon"),
114
+ "button--primary": this.variant === "primary",
115
+ "button--secondary": this.variant === "secondary",
116
+ "button--success": this.variant === "success",
117
+ "button--warning": this.variant === "warning",
118
+ "button--danger": this.variant === "danger",
119
+ "button--neutral": this.variant === "neutral"
120
+ })}
121
+ aria-disabled=${this.disabled}
122
+ type="button"
123
+ value=${ifDefined(this.value)}
124
+ tabindex="0"
125
+ @blur=${this.handleBlur}
126
+ @focus=${this.handleFocus}
127
+ @click=${this.handleClick}
128
+ >
129
+ <slot name="prefix" part="prefix" class="button__prefix"></slot>
130
+ <div part="label-wrapper" class="button__label-wrapper">
131
+ <slot name="icon" part="icon" class="button__icon">
132
+ <flow-ui-icon
133
+ name=${ifDefined(this.icon)}
134
+ src=${ifDefined(this.iconSrc)}
135
+ library=${ifDefined(this.iconLibrary)}
136
+ ></flow-ui-icon>
137
+ </slot>
138
+
139
+ <span part="label" class="button__label"><slot part="label"></slot></span>
140
+ </div>
141
+ <slot name="suffix" part="suffix" class="button__suffix"></slot>
142
+ </button>
143
+ </div>
144
+ `;
145
+ if (hasTooltip) {
146
+ return this.renderWithTooltip(toolButtonTemplate);
147
+ } else {
148
+ return toolButtonTemplate;
149
+ }
150
+ }
151
+ }
152
+ FlowUiToolButton.styles = styles;
153
+ __decorateClass([
154
+ query(".button")
155
+ ], FlowUiToolButton.prototype, "input", 2);
156
+ __decorateClass([
157
+ query(".hidden-input")
158
+ ], FlowUiToolButton.prototype, "hiddenInput", 2);
159
+ __decorateClass([
160
+ state()
161
+ ], FlowUiToolButton.prototype, "hasFocus", 2);
162
+ __decorateClass([
163
+ property({ type: Boolean, reflect: true })
164
+ ], FlowUiToolButton.prototype, "checked", 2);
165
+ __decorateClass([
166
+ property()
167
+ ], FlowUiToolButton.prototype, "value", 2);
168
+ __decorateClass([
169
+ property({ type: Boolean, reflect: true })
170
+ ], FlowUiToolButton.prototype, "disabled", 2);
171
+ __decorateClass([
172
+ property({ reflect: true })
173
+ ], FlowUiToolButton.prototype, "size", 2);
174
+ __decorateClass([
175
+ property({ type: Boolean, reflect: true })
176
+ ], FlowUiToolButton.prototype, "pill", 2);
177
+ __decorateClass([
178
+ property({ type: Boolean, reflect: true })
179
+ ], FlowUiToolButton.prototype, "outline", 2);
180
+ __decorateClass([
181
+ property()
182
+ ], FlowUiToolButton.prototype, "tooltip", 2);
183
+ __decorateClass([
184
+ property({ attribute: "tooltip-placement" })
185
+ ], FlowUiToolButton.prototype, "tooltipPlacement", 2);
186
+ __decorateClass([
187
+ property({ attribute: "tooltip-distance", type: Number })
188
+ ], FlowUiToolButton.prototype, "tooltipDistance", 2);
189
+ __decorateClass([
190
+ property({ attribute: "tooltip-skidding", type: Number })
191
+ ], FlowUiToolButton.prototype, "tooltipSkidding", 2);
192
+ __decorateClass([
193
+ property()
194
+ ], FlowUiToolButton.prototype, "icon", 2);
195
+ __decorateClass([
196
+ property({ attribute: "icon-src" })
197
+ ], FlowUiToolButton.prototype, "iconSrc", 2);
198
+ __decorateClass([
199
+ property({ attribute: "icon-library" })
200
+ ], FlowUiToolButton.prototype, "iconLibrary", 2);
201
+ __decorateClass([
202
+ property()
203
+ ], FlowUiToolButton.prototype, "variant", 2);
204
+ __decorateClass([
205
+ watch("disabled", { waitUntilFirstUpdate: true })
206
+ ], FlowUiToolButton.prototype, "handleDisabledChange", 1);
207
+
208
+ export { FlowUiToolButton as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiToolButton from './tool-button.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiToolButton as default };