@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,108 @@
1
+ import { html } from 'lit';
2
+ import { query, state, property } from 'lit/decorators.js';
3
+ import { classMap } from 'lit/directives/class-map.js';
4
+ import { boolean } from '../../internal/boolean.mjs';
5
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
6
+ import { watch } from '../../internal/watch.mjs';
7
+ import styles from './button-group.styles.mjs';
8
+
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __decorateClass = (decorators, target, key, kind) => {
12
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
13
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
14
+ if (decorator = decorators[i])
15
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
16
+ if (kind && result)
17
+ __defProp(target, key, result);
18
+ return result;
19
+ };
20
+ class FlowUiButtonGroup extends FlowRdfElement {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.disableRole = false;
24
+ this.label = "";
25
+ this.vertical = false;
26
+ }
27
+ connectedCallback() {
28
+ super.connectedCallback();
29
+ this.vertical = boolean(this.vertical, true);
30
+ }
31
+ async handleVerticalChange() {
32
+ this.handleSlotChange();
33
+ }
34
+ handleFocus(event) {
35
+ const button = findButton(event.target);
36
+ button?.classList.add("flow-ui-button-group__button--focus");
37
+ }
38
+ handleBlur(event) {
39
+ const button = findButton(event.target);
40
+ button?.classList.remove("flow-ui-button-group__button--focus");
41
+ }
42
+ handleMouseOver(event) {
43
+ const button = findButton(event.target);
44
+ button?.classList.add("flow-ui-button-group__button--hover");
45
+ }
46
+ handleMouseOut(event) {
47
+ const button = findButton(event.target);
48
+ button?.classList.remove("flow-ui-button-group__button--hover");
49
+ }
50
+ handleSlotChange() {
51
+ const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
52
+ slottedElements.forEach((el) => {
53
+ const index = slottedElements.indexOf(el);
54
+ const button = findButton(el);
55
+ if (button !== null) {
56
+ button.classList.add("flow-ui-button-group__button");
57
+ button.classList.toggle("flow-ui-button-group__button--vertical", this.vertical);
58
+ button.classList.toggle("flow-ui-button-group__button--first", index === 0);
59
+ button.classList.toggle("flow-ui-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
60
+ button.classList.toggle("flow-ui-button-group__button--last", index === slottedElements.length - 1);
61
+ button.classList.toggle(
62
+ "flow-ui-button-group__button--tool",
63
+ button.tagName.toLowerCase() === "flow-ui-tool-button"
64
+ );
65
+ }
66
+ });
67
+ }
68
+ render() {
69
+ return html`
70
+ <slot
71
+ part="base"
72
+ class=${classMap({
73
+ "button-group": true,
74
+ "button-group--vertical": this.vertical
75
+ })}
76
+ role="${this.disableRole ? "presentation" : "group"}"
77
+ aria-label=${this.label}
78
+ @focusout=${this.handleBlur}
79
+ @focusin=${this.handleFocus}
80
+ @mouseover=${this.handleMouseOver}
81
+ @mouseout=${this.handleMouseOut}
82
+ @slotchange=${this.handleSlotChange}
83
+ ></slot>
84
+ `;
85
+ }
86
+ }
87
+ FlowUiButtonGroup.styles = styles;
88
+ __decorateClass([
89
+ query("slot")
90
+ ], FlowUiButtonGroup.prototype, "defaultSlot", 2);
91
+ __decorateClass([
92
+ state()
93
+ ], FlowUiButtonGroup.prototype, "disableRole", 2);
94
+ __decorateClass([
95
+ property()
96
+ ], FlowUiButtonGroup.prototype, "label", 2);
97
+ __decorateClass([
98
+ property({ type: Boolean, reflect: true })
99
+ ], FlowUiButtonGroup.prototype, "vertical", 2);
100
+ __decorateClass([
101
+ watch("vertical", { waitUntilFirstUpdate: true })
102
+ ], FlowUiButtonGroup.prototype, "handleVerticalChange", 1);
103
+ function findButton(el) {
104
+ const selector = "flow-ui-button, flow-ui-tool-button";
105
+ return el.closest(selector) ?? el.querySelector(selector);
106
+ }
107
+
108
+ export { FlowUiButtonGroup as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiButtonGroup from './button-group.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiButtonGroup as default };
@@ -0,0 +1,21 @@
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: inline-block;
9
+ }
10
+
11
+ .button-group {
12
+ display: flex;
13
+ flex-wrap: nowrap;
14
+ }
15
+
16
+ .button-group--vertical {
17
+ flex-direction: column;
18
+ }
19
+ `;
20
+
21
+ export { styles as default };
@@ -0,0 +1,320 @@
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 { DateTime, Info } from 'luxon';
5
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
6
+ import { isStringFull, isDefined } from '../../internal/type-checks.mjs';
7
+ import { watch } from '../../internal/watch.mjs';
8
+ import styles from './calendar.styles.mjs';
9
+
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __decorateClass = (decorators, target, key, kind) => {
13
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
14
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
15
+ if (decorator = decorators[i])
16
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
17
+ if (kind && result)
18
+ __defProp(target, key, result);
19
+ return result;
20
+ };
21
+ class FlowUiCalendar extends FlowRdfElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.displayMode = "date";
25
+ this.size = "medium";
26
+ }
27
+ connectedCallback() {
28
+ super.connectedCallback();
29
+ this.handleValueChange();
30
+ }
31
+ disconnectedCallback() {
32
+ super.disconnectedCallback();
33
+ }
34
+ handleValueChange() {
35
+ this._selectedDate = this.makeDate(this.value)?.set({ millisecond: 0 });
36
+ if (this._selectedDate) {
37
+ if (this.displayMode === "date") {
38
+ this._selectedDate = this._selectedDate.startOf("day");
39
+ }
40
+ this._displayDate = this._selectedDate.startOf("month");
41
+ } else {
42
+ this._displayDate = this.makeDate().startOf("month");
43
+ }
44
+ }
45
+ handleTimezoneChange() {
46
+ this.handleValueChange();
47
+ this.updateValue();
48
+ }
49
+ dateClicked(val) {
50
+ const date = this.makeDate(val);
51
+ if (this._selectedDate) {
52
+ this._selectedDate = date.set({
53
+ hour: this._selectedDate.hour,
54
+ minute: this._selectedDate.minute,
55
+ second: this._selectedDate.second
56
+ });
57
+ } else {
58
+ this._selectedDate = date;
59
+ }
60
+ this.updateValue();
61
+ }
62
+ stepDisplayDate(duration) {
63
+ this._displayDate = this._displayDate.plus(duration);
64
+ }
65
+ /**
66
+ * Generate a list of years for the year select dropdown
67
+ */
68
+ yearOptionsForDate(date) {
69
+ const years = [];
70
+ for (let y = date.year + 1; y >= date.year - 6; y--) {
71
+ years.push(y);
72
+ }
73
+ return years;
74
+ }
75
+ makeDate(d) {
76
+ try {
77
+ let date;
78
+ const zone = isStringFull(this.timezone) ? this.timezone : void 0;
79
+ const locale = isStringFull(this.locale) ? this.locale : void 0;
80
+ if (isStringFull(d)) {
81
+ date = DateTime.fromISO(d, { zone, locale });
82
+ } else {
83
+ date = DateTime.local({ zone, locale });
84
+ }
85
+ return date.isValid ? date : void 0;
86
+ } catch (e) {
87
+ console.error(`Invalid date in makeDate: ${d} (${this.timezone})`);
88
+ return void 0;
89
+ }
90
+ }
91
+ updateValue(emitEvents = true) {
92
+ const iso = this._selectedDate?.toISO();
93
+ this.value = isDefined(iso) ? iso : "";
94
+ if (emitEvents) {
95
+ this.emit("flow-ui-input");
96
+ this.emit("flow-ui-change");
97
+ }
98
+ }
99
+ handleHeaderSelectChange(ev) {
100
+ ev.stopPropagation();
101
+ this._displayDate = this.makeDate().set({
102
+ year: +this._yearSelect.value,
103
+ month: +this._monthSelect.value
104
+ }).startOf("month");
105
+ }
106
+ handleTimeChange(ev) {
107
+ ev.stopPropagation();
108
+ if (!this._selectedDate) {
109
+ this._selectedDate = this.makeDate().startOf("day");
110
+ }
111
+ const target = ev.target;
112
+ const unit = target.getAttribute("name");
113
+ this._selectedDate = this._selectedDate.set({ [unit]: +target.value });
114
+ this.updateValue();
115
+ }
116
+ calendarHeaderTemplate() {
117
+ const locale = isStringFull(this.locale) ? this.locale : void 0;
118
+ const monthsShort = Info.months("short", { locale });
119
+ return html`
120
+ <div class="calendar__header">
121
+ <flow-ui-icon-button
122
+ name="chevron-left"
123
+ library="system"
124
+ @click=${() => this.stepDisplayDate({ month: -1 })}
125
+ ></flow-ui-icon-button>
126
+ <flow-ui-select
127
+ class="calendar__month-select calendar__header-select"
128
+ value=${this._displayDate.month}
129
+ @flow-ui-change=${this.handleHeaderSelectChange}
130
+ >
131
+ ${monthsShort.map(
132
+ (month, index) => html`
133
+ <flow-ui-option value=${index + 1}>${month}</flow-ui-option>
134
+ `
135
+ )}
136
+ </flow-ui-select>
137
+ <flow-ui-select
138
+ class="calendar__year-select calendar__header-select"
139
+ value=${this._displayDate.year}
140
+ @flow-ui-change=${this.handleHeaderSelectChange}
141
+ >
142
+ ${this.yearOptionsForDate(DateTime.now()).map(
143
+ (year) => html`
144
+ <flow-ui-option value=${year}>${year}</flow-ui-option>
145
+ `
146
+ )}
147
+ </flow-ui-select>
148
+ <flow-ui-icon-button
149
+ name="chevron-right"
150
+ library="system"
151
+ @click=${() => this.stepDisplayDate({ month: 1 })}
152
+ ></flow-ui-icon-button>
153
+ </div>
154
+ `;
155
+ }
156
+ dayOfWeekGridTemplate() {
157
+ const locale = isStringFull(this.locale) ? this.locale : void 0;
158
+ const days = Info.weekdays("narrow", { locale });
159
+ return html`
160
+ ${days.map(
161
+ (day) => html`
162
+ <span class="calendar__header-day">${day}</span>
163
+ `
164
+ )}
165
+ `;
166
+ }
167
+ dayGridTemplate() {
168
+ const today = this.makeDate();
169
+ const startOfMonth = this._displayDate.startOf("month");
170
+ const endOfMonth = this._displayDate.endOf("month");
171
+ const calendarStart = startOfMonth.startOf("week");
172
+ const calendarEnd = endOfMonth.endOf("week");
173
+ const daysInMonth = this._displayDate.daysInMonth;
174
+ const days = [];
175
+ for (let date = calendarStart; date < startOfMonth; date = date.plus({ day: 1 })) {
176
+ days.push({
177
+ day: date.toFormat("d"),
178
+ date: date.toISO(),
179
+ isFiller: true,
180
+ today: date === today,
181
+ selected: !!this._selectedDate && date.startOf("day").equals(this._selectedDate.startOf("day"))
182
+ });
183
+ }
184
+ for (let day = 1; day <= daysInMonth; day++) {
185
+ const date = startOfMonth.plus({ days: day - 1 }).startOf("day");
186
+ days.push({
187
+ day: date.toFormat("d"),
188
+ date: date.toISO(),
189
+ isFiller: false,
190
+ today: date.startOf("day").equals(today.startOf("day")),
191
+ selected: !!this._selectedDate && date.startOf("day").equals(this._selectedDate.startOf("day"))
192
+ });
193
+ }
194
+ for (let date = endOfMonth.plus({ day: 1 }).startOf("day"); date < calendarEnd; date = date.plus({ day: 1 })) {
195
+ days.push({
196
+ day: date.toFormat("d"),
197
+ date: date.toISO(),
198
+ isFiller: true,
199
+ today: date.startOf("day").equals(today.startOf("day")),
200
+ selected: !!this._selectedDate && date.startOf("day").equals(this._selectedDate.startOf("day"))
201
+ });
202
+ }
203
+ return html`
204
+ ${days.map(
205
+ (day) => html`
206
+ <button
207
+ class=${classMap({
208
+ calendar__day: true,
209
+ "calendar__day--filler": day.isFiller,
210
+ "calendar__day--today": day.today,
211
+ "calendar__day--selected": day.selected
212
+ })}
213
+ value=${day.date}
214
+ @click=${() => this.dateClicked(day.date)}
215
+ >
216
+ ${day.day}
217
+ </button>
218
+ `
219
+ )}
220
+ `;
221
+ }
222
+ timeTemplate() {
223
+ return html`
224
+ <div class="calendar__time-container">
225
+ <flow-ui-input
226
+ type="number"
227
+ size=${this.size === "small" ? "small" : "medium"}
228
+ name="hour"
229
+ min="0"
230
+ max="23"
231
+ format="02"
232
+ class="calendar__time-input"
233
+ value=${this._selectedDate ? this._selectedDate.hour : 0}
234
+ @flow-ui-change=${this.handleTimeChange}
235
+ ></flow-ui-input>
236
+ <span class="calendar__time-separator">:</span>
237
+ <flow-ui-input
238
+ type="number"
239
+ size=${this.size === "small" ? "small" : "medium"}
240
+ name="minute"
241
+ min="0"
242
+ max="59"
243
+ format="02"
244
+ class="calendar__time-input"
245
+ value=${this._selectedDate ? this._selectedDate.minute : 0}
246
+ @flow-ui-change=${this.handleTimeChange}
247
+ ></flow-ui-input>
248
+ <span class="calendar__time-separator">:</span>
249
+ <flow-ui-input
250
+ type="number"
251
+ size=${this.size === "small" ? "small" : "medium"}
252
+ name="second"
253
+ min="0"
254
+ max="59"
255
+ format="02"
256
+ class="calendar__time-input"
257
+ value=${this._selectedDate ? this._selectedDate.second : 0}
258
+ @flow-ui-change=${this.handleTimeChange}
259
+ ></flow-ui-input>
260
+ </div>
261
+ `;
262
+ }
263
+ render() {
264
+ const showCalendar = this.displayMode === "date" || this.displayMode === "datetime";
265
+ const showTime = this.displayMode === "time" || this.displayMode === "datetime";
266
+ return html`
267
+ <div
268
+ part="base"
269
+ class=${classMap({
270
+ calendar: true,
271
+ "calendar--small": this.size === "small",
272
+ "calendar--medium": this.size === "medium",
273
+ "calendar--large": this.size === "large"
274
+ })}
275
+ >
276
+ ${showCalendar ? html`
277
+ ${this.calendarHeaderTemplate()}
278
+ <div class="calendar__grid">${this.dayOfWeekGridTemplate()} ${this.dayGridTemplate()}</div>
279
+ ` : nothing}
280
+ ${showTime ? this.timeTemplate() : nothing}
281
+ </div>
282
+ `;
283
+ }
284
+ }
285
+ FlowUiCalendar.styles = styles;
286
+ __decorateClass([
287
+ query(".calendar__month-select")
288
+ ], FlowUiCalendar.prototype, "_monthSelect", 2);
289
+ __decorateClass([
290
+ query(".calendar__year-select")
291
+ ], FlowUiCalendar.prototype, "_yearSelect", 2);
292
+ __decorateClass([
293
+ state()
294
+ ], FlowUiCalendar.prototype, "_displayDate", 2);
295
+ __decorateClass([
296
+ state()
297
+ ], FlowUiCalendar.prototype, "_selectedDate", 2);
298
+ __decorateClass([
299
+ property({ reflect: true })
300
+ ], FlowUiCalendar.prototype, "value", 2);
301
+ __decorateClass([
302
+ property({ attribute: "display-mode" })
303
+ ], FlowUiCalendar.prototype, "displayMode", 2);
304
+ __decorateClass([
305
+ property()
306
+ ], FlowUiCalendar.prototype, "timezone", 2);
307
+ __decorateClass([
308
+ property()
309
+ ], FlowUiCalendar.prototype, "locale", 2);
310
+ __decorateClass([
311
+ property()
312
+ ], FlowUiCalendar.prototype, "size", 2);
313
+ __decorateClass([
314
+ watch("value")
315
+ ], FlowUiCalendar.prototype, "handleValueChange", 1);
316
+ __decorateClass([
317
+ watch(["timezone"])
318
+ ], FlowUiCalendar.prototype, "handleTimezoneChange", 1);
319
+
320
+ export { FlowUiCalendar as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiCalendar from './calendar.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiCalendar as default };
@@ -0,0 +1,145 @@
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: inline-block;
9
+ --width: 300px;
10
+ --font-size: var(--flow-ui-font-size-medium);
11
+ --day-font-size: var(--flow-ui-font-size-small);
12
+ }
13
+
14
+ .calendar {
15
+ width: var(--width);
16
+ font-size: var(--font-size);
17
+ height: 100%;
18
+ display: flex;
19
+ flex-direction: column;
20
+ gap: var(--flow-ui-spacing-x-small);
21
+ user-select: none;
22
+ }
23
+
24
+ .calendar--small {
25
+ --width: 270px;
26
+ --font-size: var(--flow-ui-font-size-small);
27
+ --day-font-size: var(--flow-ui-font-size-x-small);
28
+ }
29
+
30
+ .calendar--medium {
31
+ --width: 300px;
32
+ --font-size: var(--flow-ui-font-size-medium);
33
+ --day-font-size: var(--flow-ui-font-size-small);
34
+ }
35
+
36
+ .calendar--large {
37
+ --width: 350px;
38
+ --font-size: var(--flow-ui-font-size-large);
39
+ --day-font-size: var(--flow-ui-font-size-medium);
40
+ }
41
+
42
+ .calendar__header {
43
+ display: flex;
44
+ align-items: center;
45
+ }
46
+
47
+ .calendar__header-month {
48
+ flex: 1;
49
+ text-align: center;
50
+ }
51
+
52
+ .calendar__grid {
53
+ flex: 1;
54
+ display: grid;
55
+ grid-template-columns: repeat(7, 1fr);
56
+ gap: var(--flow-ui-spacing-2x-small);
57
+ }
58
+
59
+ .calendar__header-day {
60
+ display: flex;
61
+ justify-content: center;
62
+ align-items: center;
63
+ font-weight: var(--flow-ui-font-weight-bold);
64
+ }
65
+
66
+ .calendar__day {
67
+ display: flex;
68
+ justify-content: center;
69
+ align-items: center;
70
+ border: none;
71
+ border-radius: var(--flow-ui-border-radius-circle);
72
+ background-color: inherit;
73
+ aspect-ratio: 1 / 1;
74
+ cursor: pointer;
75
+ font-size: var(--day-font-size);
76
+ }
77
+
78
+ .calendar__day:hover:not(.calendar__day--selected) {
79
+ background-color: var(--flow-ui-color-neutral-100);
80
+ }
81
+
82
+ .calendar__day--filler {
83
+ color: var(--flow-ui-color-neutral-400);
84
+ }
85
+
86
+ .calendar__day--today {
87
+ border: 1px solid var(--flow-ui-color-neutral-300);
88
+ }
89
+
90
+ .calendar__day--selected {
91
+ color: var(--flow-ui-color-neutral-0);
92
+ background-color: var(--flow-ui-color-primary-500);
93
+ }
94
+
95
+ .calendar__header-select::part(combobox) {
96
+ background-color: inherit;
97
+ border: none;
98
+ min-height: auto;
99
+ gap: var(--flow-ui-spacing-x-small);
100
+ }
101
+
102
+ .calendar__header-select::part(expand-icon) {
103
+ margin: 0;
104
+ }
105
+
106
+ .calendar__header-select::part(listbox) {
107
+ max-height: min(var(--auto-size-available-height), 10rem);
108
+ }
109
+
110
+ .calendar__time-container {
111
+ display: flex;
112
+ gap: var(--flow-ui-spacing-2x-small);
113
+ align-items: center;
114
+ }
115
+
116
+ .calendar__time-input {
117
+ flex: 1;
118
+ /* Allow the input to shrink to accommodate narrow calendars in sidebars */
119
+ min-width: 0;
120
+ --flow-ui-input-spacing-medium: var(--flow-ui-spacing-small);
121
+ }
122
+
123
+ .calendar__time-input::part(input) {
124
+ /* Remove padding between spin controls to accommodate narrow calendars */
125
+ padding-right: 0;
126
+ }
127
+
128
+ .calendar__time-separator {
129
+ font-weight: var(--flow-ui-font-weight-bold);
130
+ }
131
+
132
+ .calendar__utc-marker {
133
+ font-size: var(--flow-ui-font-size-2x-small);
134
+ font-weight: var(--flow-ui-font-weight-bold);
135
+ writing-mode: vertical-lr;
136
+ text-orientation: upright;
137
+ margin-left: calc(var(--flow-ui-spacing-2x-small) * -1);
138
+ }
139
+
140
+ .calendar--small .calendar__utc-marker {
141
+ font-size: var(--flow-ui-font-size-3x-small);
142
+ }
143
+ `;
144
+
145
+ export { styles as default };
@@ -0,0 +1,33 @@
1
+ import { html } from 'lit';
2
+ import { classMap } from 'lit/directives/class-map.js';
3
+ import FlowRdfElement from '../../internal/flow-ui-rdf-element.mjs';
4
+ import { HasSlotController } from '../../internal/slot.mjs';
5
+ import styles from './card.styles.mjs';
6
+
7
+ class FlowUiCard extends FlowRdfElement {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.hasSlotController = new HasSlotController(this, "footer", "header", "image");
11
+ }
12
+ render() {
13
+ return html`
14
+ <div
15
+ part="base"
16
+ class=${classMap({
17
+ card: true,
18
+ "card--has-footer": this.hasSlotController.test("footer"),
19
+ "card--has-image": this.hasSlotController.test("image"),
20
+ "card--has-header": this.hasSlotController.test("header")
21
+ })}
22
+ >
23
+ <slot name="image" part="image" class="card__image"></slot>
24
+ <slot name="header" part="header" class="card__header"></slot>
25
+ <slot part="body" class="card__body"></slot>
26
+ <slot name="footer" part="footer" class="card__footer"></slot>
27
+ </div>
28
+ `;
29
+ }
30
+ }
31
+ FlowUiCard.styles = styles;
32
+
33
+ export { FlowUiCard as default };
@@ -0,0 +1,5 @@
1
+ import FlowUiCard from './card.component.mjs';
2
+
3
+
4
+
5
+ export { FlowUiCard as default };