@copilotkit/a2ui-renderer 1.60.2 → 1.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (295) hide show
  1. package/dist/web-components/_virtual/_rolldown/runtime.cjs +19 -0
  2. package/dist/web-components/_virtual/_rolldown/runtime.mjs +18 -0
  3. package/dist/web-components/a2ui-types.d.cts +23 -0
  4. package/dist/web-components/a2ui-types.d.cts.map +1 -0
  5. package/dist/web-components/a2ui-types.d.mts +23 -0
  6. package/dist/web-components/a2ui-types.d.mts.map +1 -0
  7. package/dist/web-components/adapter.cjs +33 -0
  8. package/dist/web-components/adapter.cjs.map +1 -0
  9. package/dist/web-components/adapter.d.cts +12 -0
  10. package/dist/web-components/adapter.d.cts.map +1 -0
  11. package/dist/web-components/adapter.d.mts +12 -0
  12. package/dist/web-components/adapter.d.mts.map +1 -0
  13. package/dist/web-components/adapter.mjs +32 -0
  14. package/dist/web-components/adapter.mjs.map +1 -0
  15. package/dist/web-components/bound-component.cjs +71 -0
  16. package/dist/web-components/bound-component.cjs.map +1 -0
  17. package/dist/web-components/bound-component.d.cts +44 -0
  18. package/dist/web-components/bound-component.d.cts.map +1 -0
  19. package/dist/web-components/bound-component.d.mts +44 -0
  20. package/dist/web-components/bound-component.d.mts.map +1 -0
  21. package/dist/web-components/bound-component.mjs +71 -0
  22. package/dist/web-components/bound-component.mjs.map +1 -0
  23. package/dist/web-components/catalog/basic/audio-player.cjs +32 -0
  24. package/dist/web-components/catalog/basic/audio-player.cjs.map +1 -0
  25. package/dist/web-components/catalog/basic/audio-player.d.cts +8 -0
  26. package/dist/web-components/catalog/basic/audio-player.d.cts.map +1 -0
  27. package/dist/web-components/catalog/basic/audio-player.d.mts +8 -0
  28. package/dist/web-components/catalog/basic/audio-player.d.mts.map +1 -0
  29. package/dist/web-components/catalog/basic/audio-player.mjs +32 -0
  30. package/dist/web-components/catalog/basic/audio-player.mjs.map +1 -0
  31. package/dist/web-components/catalog/basic/button.cjs +33 -0
  32. package/dist/web-components/catalog/basic/button.cjs.map +1 -0
  33. package/dist/web-components/catalog/basic/button.d.cts +8 -0
  34. package/dist/web-components/catalog/basic/button.d.cts.map +1 -0
  35. package/dist/web-components/catalog/basic/button.d.mts +8 -0
  36. package/dist/web-components/catalog/basic/button.d.mts.map +1 -0
  37. package/dist/web-components/catalog/basic/button.mjs +33 -0
  38. package/dist/web-components/catalog/basic/button.mjs.map +1 -0
  39. package/dist/web-components/catalog/basic/card.cjs +23 -0
  40. package/dist/web-components/catalog/basic/card.cjs.map +1 -0
  41. package/dist/web-components/catalog/basic/card.d.cts +8 -0
  42. package/dist/web-components/catalog/basic/card.d.cts.map +1 -0
  43. package/dist/web-components/catalog/basic/card.d.mts +8 -0
  44. package/dist/web-components/catalog/basic/card.d.mts.map +1 -0
  45. package/dist/web-components/catalog/basic/card.mjs +23 -0
  46. package/dist/web-components/catalog/basic/card.mjs.map +1 -0
  47. package/dist/web-components/catalog/basic/check-box.cjs +50 -0
  48. package/dist/web-components/catalog/basic/check-box.cjs.map +1 -0
  49. package/dist/web-components/catalog/basic/check-box.d.cts +8 -0
  50. package/dist/web-components/catalog/basic/check-box.d.cts.map +1 -0
  51. package/dist/web-components/catalog/basic/check-box.d.mts +8 -0
  52. package/dist/web-components/catalog/basic/check-box.d.mts.map +1 -0
  53. package/dist/web-components/catalog/basic/check-box.mjs +50 -0
  54. package/dist/web-components/catalog/basic/check-box.mjs.map +1 -0
  55. package/dist/web-components/catalog/basic/choice-picker.cjs +90 -0
  56. package/dist/web-components/catalog/basic/choice-picker.cjs.map +1 -0
  57. package/dist/web-components/catalog/basic/choice-picker.d.cts +8 -0
  58. package/dist/web-components/catalog/basic/choice-picker.d.cts.map +1 -0
  59. package/dist/web-components/catalog/basic/choice-picker.d.mts +8 -0
  60. package/dist/web-components/catalog/basic/choice-picker.d.mts.map +1 -0
  61. package/dist/web-components/catalog/basic/choice-picker.mjs +90 -0
  62. package/dist/web-components/catalog/basic/choice-picker.mjs.map +1 -0
  63. package/dist/web-components/catalog/basic/column.cjs +27 -0
  64. package/dist/web-components/catalog/basic/column.cjs.map +1 -0
  65. package/dist/web-components/catalog/basic/column.d.cts +8 -0
  66. package/dist/web-components/catalog/basic/column.d.cts.map +1 -0
  67. package/dist/web-components/catalog/basic/column.d.mts +8 -0
  68. package/dist/web-components/catalog/basic/column.d.mts.map +1 -0
  69. package/dist/web-components/catalog/basic/column.mjs +27 -0
  70. package/dist/web-components/catalog/basic/column.mjs.map +1 -0
  71. package/dist/web-components/catalog/basic/components.cjs +44 -0
  72. package/dist/web-components/catalog/basic/components.cjs.map +1 -0
  73. package/dist/web-components/catalog/basic/components.d.cts +19 -0
  74. package/dist/web-components/catalog/basic/components.d.mts +19 -0
  75. package/dist/web-components/catalog/basic/components.mjs +44 -0
  76. package/dist/web-components/catalog/basic/components.mjs.map +1 -0
  77. package/dist/web-components/catalog/basic/date-time-input.cjs +50 -0
  78. package/dist/web-components/catalog/basic/date-time-input.cjs.map +1 -0
  79. package/dist/web-components/catalog/basic/date-time-input.d.cts +8 -0
  80. package/dist/web-components/catalog/basic/date-time-input.d.cts.map +1 -0
  81. package/dist/web-components/catalog/basic/date-time-input.d.mts +8 -0
  82. package/dist/web-components/catalog/basic/date-time-input.d.mts.map +1 -0
  83. package/dist/web-components/catalog/basic/date-time-input.mjs +50 -0
  84. package/dist/web-components/catalog/basic/date-time-input.mjs.map +1 -0
  85. package/dist/web-components/catalog/basic/divider.cjs +21 -0
  86. package/dist/web-components/catalog/basic/divider.cjs.map +1 -0
  87. package/dist/web-components/catalog/basic/divider.d.cts +8 -0
  88. package/dist/web-components/catalog/basic/divider.d.cts.map +1 -0
  89. package/dist/web-components/catalog/basic/divider.d.mts +8 -0
  90. package/dist/web-components/catalog/basic/divider.d.mts.map +1 -0
  91. package/dist/web-components/catalog/basic/divider.mjs +21 -0
  92. package/dist/web-components/catalog/basic/divider.mjs.map +1 -0
  93. package/dist/web-components/catalog/basic/icon.cjs +29 -0
  94. package/dist/web-components/catalog/basic/icon.cjs.map +1 -0
  95. package/dist/web-components/catalog/basic/icon.d.cts +8 -0
  96. package/dist/web-components/catalog/basic/icon.d.cts.map +1 -0
  97. package/dist/web-components/catalog/basic/icon.d.mts +8 -0
  98. package/dist/web-components/catalog/basic/icon.d.mts.map +1 -0
  99. package/dist/web-components/catalog/basic/icon.mjs +29 -0
  100. package/dist/web-components/catalog/basic/icon.mjs.map +1 -0
  101. package/dist/web-components/catalog/basic/ids.cjs +11 -0
  102. package/dist/web-components/catalog/basic/ids.cjs.map +1 -0
  103. package/dist/web-components/catalog/basic/ids.mjs +10 -0
  104. package/dist/web-components/catalog/basic/ids.mjs.map +1 -0
  105. package/dist/web-components/catalog/basic/image.cjs +42 -0
  106. package/dist/web-components/catalog/basic/image.cjs.map +1 -0
  107. package/dist/web-components/catalog/basic/image.d.cts +8 -0
  108. package/dist/web-components/catalog/basic/image.d.cts.map +1 -0
  109. package/dist/web-components/catalog/basic/image.d.mts +8 -0
  110. package/dist/web-components/catalog/basic/image.d.mts.map +1 -0
  111. package/dist/web-components/catalog/basic/image.mjs +42 -0
  112. package/dist/web-components/catalog/basic/image.mjs.map +1 -0
  113. package/dist/web-components/catalog/basic/index.cjs +31 -0
  114. package/dist/web-components/catalog/basic/index.cjs.map +1 -0
  115. package/dist/web-components/catalog/basic/index.d.cts +29 -0
  116. package/dist/web-components/catalog/basic/index.d.cts.map +1 -0
  117. package/dist/web-components/catalog/basic/index.d.mts +29 -0
  118. package/dist/web-components/catalog/basic/index.d.mts.map +1 -0
  119. package/dist/web-components/catalog/basic/index.mjs +30 -0
  120. package/dist/web-components/catalog/basic/index.mjs.map +1 -0
  121. package/dist/web-components/catalog/basic/list.cjs +31 -0
  122. package/dist/web-components/catalog/basic/list.cjs.map +1 -0
  123. package/dist/web-components/catalog/basic/list.d.cts +8 -0
  124. package/dist/web-components/catalog/basic/list.d.cts.map +1 -0
  125. package/dist/web-components/catalog/basic/list.d.mts +8 -0
  126. package/dist/web-components/catalog/basic/list.d.mts.map +1 -0
  127. package/dist/web-components/catalog/basic/list.mjs +31 -0
  128. package/dist/web-components/catalog/basic/list.mjs.map +1 -0
  129. package/dist/web-components/catalog/basic/modal.cjs +80 -0
  130. package/dist/web-components/catalog/basic/modal.cjs.map +1 -0
  131. package/dist/web-components/catalog/basic/modal.d.cts +8 -0
  132. package/dist/web-components/catalog/basic/modal.d.cts.map +1 -0
  133. package/dist/web-components/catalog/basic/modal.d.mts +8 -0
  134. package/dist/web-components/catalog/basic/modal.d.mts.map +1 -0
  135. package/dist/web-components/catalog/basic/modal.mjs +80 -0
  136. package/dist/web-components/catalog/basic/modal.mjs.map +1 -0
  137. package/dist/web-components/catalog/basic/row.cjs +27 -0
  138. package/dist/web-components/catalog/basic/row.cjs.map +1 -0
  139. package/dist/web-components/catalog/basic/row.d.cts +8 -0
  140. package/dist/web-components/catalog/basic/row.d.cts.map +1 -0
  141. package/dist/web-components/catalog/basic/row.d.mts +8 -0
  142. package/dist/web-components/catalog/basic/row.d.mts.map +1 -0
  143. package/dist/web-components/catalog/basic/row.mjs +27 -0
  144. package/dist/web-components/catalog/basic/row.mjs.map +1 -0
  145. package/dist/web-components/catalog/basic/slider.cjs +44 -0
  146. package/dist/web-components/catalog/basic/slider.cjs.map +1 -0
  147. package/dist/web-components/catalog/basic/slider.d.cts +8 -0
  148. package/dist/web-components/catalog/basic/slider.d.cts.map +1 -0
  149. package/dist/web-components/catalog/basic/slider.d.mts +8 -0
  150. package/dist/web-components/catalog/basic/slider.d.mts.map +1 -0
  151. package/dist/web-components/catalog/basic/slider.mjs +44 -0
  152. package/dist/web-components/catalog/basic/slider.mjs.map +1 -0
  153. package/dist/web-components/catalog/basic/tabs.cjs +58 -0
  154. package/dist/web-components/catalog/basic/tabs.cjs.map +1 -0
  155. package/dist/web-components/catalog/basic/tabs.d.cts +8 -0
  156. package/dist/web-components/catalog/basic/tabs.d.cts.map +1 -0
  157. package/dist/web-components/catalog/basic/tabs.d.mts +8 -0
  158. package/dist/web-components/catalog/basic/tabs.d.mts.map +1 -0
  159. package/dist/web-components/catalog/basic/tabs.mjs +58 -0
  160. package/dist/web-components/catalog/basic/tabs.mjs.map +1 -0
  161. package/dist/web-components/catalog/basic/text-field.cjs +60 -0
  162. package/dist/web-components/catalog/basic/text-field.cjs.map +1 -0
  163. package/dist/web-components/catalog/basic/text-field.d.cts +8 -0
  164. package/dist/web-components/catalog/basic/text-field.d.cts.map +1 -0
  165. package/dist/web-components/catalog/basic/text-field.d.mts +8 -0
  166. package/dist/web-components/catalog/basic/text-field.d.mts.map +1 -0
  167. package/dist/web-components/catalog/basic/text-field.mjs +60 -0
  168. package/dist/web-components/catalog/basic/text-field.mjs.map +1 -0
  169. package/dist/web-components/catalog/basic/text.cjs +36 -0
  170. package/dist/web-components/catalog/basic/text.cjs.map +1 -0
  171. package/dist/web-components/catalog/basic/text.d.cts +8 -0
  172. package/dist/web-components/catalog/basic/text.d.cts.map +1 -0
  173. package/dist/web-components/catalog/basic/text.d.mts +8 -0
  174. package/dist/web-components/catalog/basic/text.d.mts.map +1 -0
  175. package/dist/web-components/catalog/basic/text.mjs +36 -0
  176. package/dist/web-components/catalog/basic/text.mjs.map +1 -0
  177. package/dist/web-components/catalog/basic/utils.cjs +48 -0
  178. package/dist/web-components/catalog/basic/utils.cjs.map +1 -0
  179. package/dist/web-components/catalog/basic/utils.d.cts +1 -0
  180. package/dist/web-components/catalog/basic/utils.d.mts +1 -0
  181. package/dist/web-components/catalog/basic/utils.mjs +41 -0
  182. package/dist/web-components/catalog/basic/utils.mjs.map +1 -0
  183. package/dist/web-components/catalog/basic/video.cjs +22 -0
  184. package/dist/web-components/catalog/basic/video.cjs.map +1 -0
  185. package/dist/web-components/catalog/basic/video.d.cts +8 -0
  186. package/dist/web-components/catalog/basic/video.d.cts.map +1 -0
  187. package/dist/web-components/catalog/basic/video.d.mts +8 -0
  188. package/dist/web-components/catalog/basic/video.d.mts.map +1 -0
  189. package/dist/web-components/catalog/basic/video.mjs +22 -0
  190. package/dist/web-components/catalog/basic/video.mjs.map +1 -0
  191. package/dist/web-components/catalog/children.cjs +17 -0
  192. package/dist/web-components/catalog/children.cjs.map +1 -0
  193. package/dist/web-components/catalog/children.mjs +16 -0
  194. package/dist/web-components/catalog/children.mjs.map +1 -0
  195. package/dist/web-components/catalog/minimal/button.cjs +38 -0
  196. package/dist/web-components/catalog/minimal/button.cjs.map +1 -0
  197. package/dist/web-components/catalog/minimal/button.d.cts +284 -0
  198. package/dist/web-components/catalog/minimal/button.d.cts.map +1 -0
  199. package/dist/web-components/catalog/minimal/button.d.mts +284 -0
  200. package/dist/web-components/catalog/minimal/button.d.mts.map +1 -0
  201. package/dist/web-components/catalog/minimal/button.mjs +36 -0
  202. package/dist/web-components/catalog/minimal/button.mjs.map +1 -0
  203. package/dist/web-components/catalog/minimal/column.cjs +50 -0
  204. package/dist/web-components/catalog/minimal/column.cjs.map +1 -0
  205. package/dist/web-components/catalog/minimal/column.d.cts +68 -0
  206. package/dist/web-components/catalog/minimal/column.d.cts.map +1 -0
  207. package/dist/web-components/catalog/minimal/column.d.mts +68 -0
  208. package/dist/web-components/catalog/minimal/column.d.mts.map +1 -0
  209. package/dist/web-components/catalog/minimal/column.mjs +48 -0
  210. package/dist/web-components/catalog/minimal/column.mjs.map +1 -0
  211. package/dist/web-components/catalog/minimal/components.cjs +18 -0
  212. package/dist/web-components/catalog/minimal/components.cjs.map +1 -0
  213. package/dist/web-components/catalog/minimal/components.d.cts +12 -0
  214. package/dist/web-components/catalog/minimal/components.d.cts.map +1 -0
  215. package/dist/web-components/catalog/minimal/components.d.mts +12 -0
  216. package/dist/web-components/catalog/minimal/components.d.mts.map +1 -0
  217. package/dist/web-components/catalog/minimal/components.mjs +18 -0
  218. package/dist/web-components/catalog/minimal/components.mjs.map +1 -0
  219. package/dist/web-components/catalog/minimal/index.cjs +49 -0
  220. package/dist/web-components/catalog/minimal/index.cjs.map +1 -0
  221. package/dist/web-components/catalog/minimal/index.d.cts +17 -0
  222. package/dist/web-components/catalog/minimal/index.d.cts.map +1 -0
  223. package/dist/web-components/catalog/minimal/index.d.mts +17 -0
  224. package/dist/web-components/catalog/minimal/index.d.mts.map +1 -0
  225. package/dist/web-components/catalog/minimal/index.mjs +43 -0
  226. package/dist/web-components/catalog/minimal/index.mjs.map +1 -0
  227. package/dist/web-components/catalog/minimal/row.cjs +49 -0
  228. package/dist/web-components/catalog/minimal/row.cjs.map +1 -0
  229. package/dist/web-components/catalog/minimal/row.d.cts +68 -0
  230. package/dist/web-components/catalog/minimal/row.d.cts.map +1 -0
  231. package/dist/web-components/catalog/minimal/row.d.mts +68 -0
  232. package/dist/web-components/catalog/minimal/row.d.mts.map +1 -0
  233. package/dist/web-components/catalog/minimal/row.mjs +47 -0
  234. package/dist/web-components/catalog/minimal/row.mjs.map +1 -0
  235. package/dist/web-components/catalog/minimal/text-field.cjs +74 -0
  236. package/dist/web-components/catalog/minimal/text-field.cjs.map +1 -0
  237. package/dist/web-components/catalog/minimal/text-field.d.cts +164 -0
  238. package/dist/web-components/catalog/minimal/text-field.d.cts.map +1 -0
  239. package/dist/web-components/catalog/minimal/text-field.d.mts +164 -0
  240. package/dist/web-components/catalog/minimal/text-field.d.mts.map +1 -0
  241. package/dist/web-components/catalog/minimal/text-field.mjs +72 -0
  242. package/dist/web-components/catalog/minimal/text-field.mjs.map +1 -0
  243. package/dist/web-components/catalog/minimal/text.cjs +40 -0
  244. package/dist/web-components/catalog/minimal/text.cjs.map +1 -0
  245. package/dist/web-components/catalog/minimal/text.d.cts +92 -0
  246. package/dist/web-components/catalog/minimal/text.d.cts.map +1 -0
  247. package/dist/web-components/catalog/minimal/text.d.mts +92 -0
  248. package/dist/web-components/catalog/minimal/text.d.mts.map +1 -0
  249. package/dist/web-components/catalog/minimal/text.mjs +38 -0
  250. package/dist/web-components/catalog/minimal/text.mjs.map +1 -0
  251. package/dist/web-components/catalog/minimal/utils.cjs +26 -0
  252. package/dist/web-components/catalog/minimal/utils.cjs.map +1 -0
  253. package/dist/web-components/catalog/minimal/utils.mjs +24 -0
  254. package/dist/web-components/catalog/minimal/utils.mjs.map +1 -0
  255. package/dist/web-components/create-catalog.cjs +143 -0
  256. package/dist/web-components/create-catalog.cjs.map +1 -0
  257. package/dist/web-components/create-catalog.d.cts +44 -0
  258. package/dist/web-components/create-catalog.d.cts.map +1 -0
  259. package/dist/web-components/create-catalog.d.mts +44 -0
  260. package/dist/web-components/create-catalog.d.mts.map +1 -0
  261. package/dist/web-components/create-catalog.mjs +137 -0
  262. package/dist/web-components/create-catalog.mjs.map +1 -0
  263. package/dist/web-components/define.cjs +24 -0
  264. package/dist/web-components/define.cjs.map +1 -0
  265. package/dist/web-components/define.d.cts +19 -0
  266. package/dist/web-components/define.d.cts.map +1 -0
  267. package/dist/web-components/define.d.mts +19 -0
  268. package/dist/web-components/define.d.mts.map +1 -0
  269. package/dist/web-components/define.mjs +17 -0
  270. package/dist/web-components/define.mjs.map +1 -0
  271. package/dist/web-components/index.cjs +78 -0
  272. package/dist/web-components/index.d.cts +30 -0
  273. package/dist/web-components/index.d.mts +30 -0
  274. package/dist/web-components/index.mjs +29 -0
  275. package/dist/web-components/node.cjs +94 -0
  276. package/dist/web-components/node.cjs.map +1 -0
  277. package/dist/web-components/node.d.cts +33 -0
  278. package/dist/web-components/node.d.cts.map +1 -0
  279. package/dist/web-components/node.d.mts +33 -0
  280. package/dist/web-components/node.d.mts.map +1 -0
  281. package/dist/web-components/node.mjs +94 -0
  282. package/dist/web-components/node.mjs.map +1 -0
  283. package/dist/web-components/surface.cjs +314 -0
  284. package/dist/web-components/surface.cjs.map +1 -0
  285. package/dist/web-components/surface.d.cts +43 -0
  286. package/dist/web-components/surface.d.cts.map +1 -0
  287. package/dist/web-components/surface.d.mts +43 -0
  288. package/dist/web-components/surface.d.mts.map +1 -0
  289. package/dist/web-components/surface.mjs +314 -0
  290. package/dist/web-components/surface.mjs.map +1 -0
  291. package/dist/web-components/types.d.cts +45 -0
  292. package/dist/web-components/types.d.cts.map +1 -0
  293. package/dist/web-components/types.d.mts +45 -0
  294. package/dist/web-components/types.d.mts.map +1 -0
  295. package/package.json +38 -3
@@ -0,0 +1,44 @@
1
+ const require_audio_player = require('./audio-player.cjs');
2
+ const require_button = require('./button.cjs');
3
+ const require_card = require('./card.cjs');
4
+ const require_check_box = require('./check-box.cjs');
5
+ const require_choice_picker = require('./choice-picker.cjs');
6
+ const require_column = require('./column.cjs');
7
+ const require_date_time_input = require('./date-time-input.cjs');
8
+ const require_divider = require('./divider.cjs');
9
+ const require_icon = require('./icon.cjs');
10
+ const require_image = require('./image.cjs');
11
+ const require_list = require('./list.cjs');
12
+ const require_modal = require('./modal.cjs');
13
+ const require_row = require('./row.cjs');
14
+ const require_slider = require('./slider.cjs');
15
+ const require_tabs = require('./tabs.cjs');
16
+ const require_text = require('./text.cjs');
17
+ const require_text_field = require('./text-field.cjs');
18
+ const require_video = require('./video.cjs');
19
+
20
+ //#region src/web-components/catalog/basic/components.ts
21
+ const basicComponents = [
22
+ require_text.Text,
23
+ require_image.Image,
24
+ require_icon.Icon,
25
+ require_video.Video,
26
+ require_audio_player.AudioPlayer,
27
+ require_row.Row,
28
+ require_column.Column,
29
+ require_list.List,
30
+ require_card.Card,
31
+ require_tabs.Tabs,
32
+ require_divider.Divider,
33
+ require_modal.Modal,
34
+ require_button.Button,
35
+ require_text_field.TextField,
36
+ require_check_box.CheckBox,
37
+ require_choice_picker.ChoicePicker,
38
+ require_slider.Slider,
39
+ require_date_time_input.DateTimeInput
40
+ ];
41
+
42
+ //#endregion
43
+ exports.basicComponents = basicComponents;
44
+ //# sourceMappingURL=components.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.cjs","names":["Text","Image","Icon","Video","AudioPlayer","Row","Column","List","Card","Tabs","Divider","Modal","Button","TextField","CheckBox","ChoicePicker","Slider","DateTimeInput"],"sources":["../../../../src/web-components/catalog/basic/components.ts"],"sourcesContent":["import type { LitComponentImplementation } from \"../../types\";\nimport { AudioPlayer } from \"./audio-player\";\nimport { Button } from \"./button\";\nimport { Card } from \"./card\";\nimport { CheckBox } from \"./check-box\";\nimport { ChoicePicker } from \"./choice-picker\";\nimport { Column } from \"./column\";\nimport { DateTimeInput } from \"./date-time-input\";\nimport { Divider } from \"./divider\";\nimport { Icon } from \"./icon\";\nimport { Image } from \"./image\";\nimport { List } from \"./list\";\nimport { Modal } from \"./modal\";\nimport { Row } from \"./row\";\nimport { Slider } from \"./slider\";\nimport { Tabs } from \"./tabs\";\nimport { Text } from \"./text\";\nimport { TextField } from \"./text-field\";\nimport { Video } from \"./video\";\n\nexport { AudioPlayer } from \"./audio-player\";\nexport { Button } from \"./button\";\nexport { Card } from \"./card\";\nexport { CheckBox } from \"./check-box\";\nexport { ChoicePicker } from \"./choice-picker\";\nexport { Column } from \"./column\";\nexport { DateTimeInput } from \"./date-time-input\";\nexport { Divider } from \"./divider\";\nexport { Icon } from \"./icon\";\nexport { Image } from \"./image\";\nexport { List } from \"./list\";\nexport { Modal } from \"./modal\";\nexport { Row } from \"./row\";\nexport { Slider } from \"./slider\";\nexport { Tabs } from \"./tabs\";\nexport { Text } from \"./text\";\nexport { TextField } from \"./text-field\";\nexport { Video } from \"./video\";\n\nexport const basicComponents: LitComponentImplementation[] = [\n Text,\n Image,\n Icon,\n Video,\n AudioPlayer,\n Row,\n Column,\n List,\n Card,\n Tabs,\n Divider,\n Modal,\n Button,\n TextField,\n CheckBox,\n ChoicePicker,\n Slider,\n DateTimeInput,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,kBAAgD;CAC3DA;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACAC;CACD"}
@@ -0,0 +1,19 @@
1
+ import "../../types.cjs";
2
+ import { AudioPlayer } from "./audio-player.cjs";
3
+ import { Button } from "./button.cjs";
4
+ import { Card } from "./card.cjs";
5
+ import { CheckBox } from "./check-box.cjs";
6
+ import { ChoicePicker } from "./choice-picker.cjs";
7
+ import { Column } from "./column.cjs";
8
+ import { DateTimeInput } from "./date-time-input.cjs";
9
+ import { Divider } from "./divider.cjs";
10
+ import { Icon } from "./icon.cjs";
11
+ import { Image } from "./image.cjs";
12
+ import { List } from "./list.cjs";
13
+ import { Modal } from "./modal.cjs";
14
+ import { Row } from "./row.cjs";
15
+ import { Slider } from "./slider.cjs";
16
+ import { Tabs } from "./tabs.cjs";
17
+ import { Text } from "./text.cjs";
18
+ import { TextField } from "./text-field.cjs";
19
+ import { Video } from "./video.cjs";
@@ -0,0 +1,19 @@
1
+ import "../../types.mjs";
2
+ import { AudioPlayer } from "./audio-player.mjs";
3
+ import { Button } from "./button.mjs";
4
+ import { Card } from "./card.mjs";
5
+ import { CheckBox } from "./check-box.mjs";
6
+ import { ChoicePicker } from "./choice-picker.mjs";
7
+ import { Column } from "./column.mjs";
8
+ import { DateTimeInput } from "./date-time-input.mjs";
9
+ import { Divider } from "./divider.mjs";
10
+ import { Icon } from "./icon.mjs";
11
+ import { Image } from "./image.mjs";
12
+ import { List } from "./list.mjs";
13
+ import { Modal } from "./modal.mjs";
14
+ import { Row } from "./row.mjs";
15
+ import { Slider } from "./slider.mjs";
16
+ import { Tabs } from "./tabs.mjs";
17
+ import { Text } from "./text.mjs";
18
+ import { TextField } from "./text-field.mjs";
19
+ import { Video } from "./video.mjs";
@@ -0,0 +1,44 @@
1
+ import { AudioPlayer } from "./audio-player.mjs";
2
+ import { Button } from "./button.mjs";
3
+ import { Card } from "./card.mjs";
4
+ import { CheckBox } from "./check-box.mjs";
5
+ import { ChoicePicker } from "./choice-picker.mjs";
6
+ import { Column } from "./column.mjs";
7
+ import { DateTimeInput } from "./date-time-input.mjs";
8
+ import { Divider } from "./divider.mjs";
9
+ import { Icon } from "./icon.mjs";
10
+ import { Image } from "./image.mjs";
11
+ import { List } from "./list.mjs";
12
+ import { Modal } from "./modal.mjs";
13
+ import { Row } from "./row.mjs";
14
+ import { Slider } from "./slider.mjs";
15
+ import { Tabs } from "./tabs.mjs";
16
+ import { Text } from "./text.mjs";
17
+ import { TextField } from "./text-field.mjs";
18
+ import { Video } from "./video.mjs";
19
+
20
+ //#region src/web-components/catalog/basic/components.ts
21
+ const basicComponents = [
22
+ Text,
23
+ Image,
24
+ Icon,
25
+ Video,
26
+ AudioPlayer,
27
+ Row,
28
+ Column,
29
+ List,
30
+ Card,
31
+ Tabs,
32
+ Divider,
33
+ Modal,
34
+ Button,
35
+ TextField,
36
+ CheckBox,
37
+ ChoicePicker,
38
+ Slider,
39
+ DateTimeInput
40
+ ];
41
+
42
+ //#endregion
43
+ export { basicComponents };
44
+ //# sourceMappingURL=components.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/components.ts"],"sourcesContent":["import type { LitComponentImplementation } from \"../../types\";\nimport { AudioPlayer } from \"./audio-player\";\nimport { Button } from \"./button\";\nimport { Card } from \"./card\";\nimport { CheckBox } from \"./check-box\";\nimport { ChoicePicker } from \"./choice-picker\";\nimport { Column } from \"./column\";\nimport { DateTimeInput } from \"./date-time-input\";\nimport { Divider } from \"./divider\";\nimport { Icon } from \"./icon\";\nimport { Image } from \"./image\";\nimport { List } from \"./list\";\nimport { Modal } from \"./modal\";\nimport { Row } from \"./row\";\nimport { Slider } from \"./slider\";\nimport { Tabs } from \"./tabs\";\nimport { Text } from \"./text\";\nimport { TextField } from \"./text-field\";\nimport { Video } from \"./video\";\n\nexport { AudioPlayer } from \"./audio-player\";\nexport { Button } from \"./button\";\nexport { Card } from \"./card\";\nexport { CheckBox } from \"./check-box\";\nexport { ChoicePicker } from \"./choice-picker\";\nexport { Column } from \"./column\";\nexport { DateTimeInput } from \"./date-time-input\";\nexport { Divider } from \"./divider\";\nexport { Icon } from \"./icon\";\nexport { Image } from \"./image\";\nexport { List } from \"./list\";\nexport { Modal } from \"./modal\";\nexport { Row } from \"./row\";\nexport { Slider } from \"./slider\";\nexport { Tabs } from \"./tabs\";\nexport { Text } from \"./text\";\nexport { TextField } from \"./text-field\";\nexport { Video } from \"./video\";\n\nexport const basicComponents: LitComponentImplementation[] = [\n Text,\n Image,\n Icon,\n Video,\n AudioPlayer,\n Row,\n Column,\n List,\n Card,\n Tabs,\n Divider,\n Modal,\n Button,\n TextField,\n CheckBox,\n ChoicePicker,\n Slider,\n DateTimeInput,\n];\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAuCA,MAAa,kBAAgD;CAC3D;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACD"}
@@ -0,0 +1,50 @@
1
+ const require_adapter = require('../../adapter.cjs');
2
+ const require_utils = require('./utils.cjs');
3
+ const require_ids = require('./ids.cjs');
4
+ let lit = require("lit");
5
+ let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
6
+ let lit_directives_style_map_js = require("lit/directives/style-map.js");
7
+
8
+ //#region src/web-components/catalog/basic/date-time-input.ts
9
+ const DateTimeInput = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.DateTimeInputApi, ({ props }) => {
10
+ const inputId = require_ids.uniqueId("datetime");
11
+ let type = "datetime-local";
12
+ if (props.enableDate && !props.enableTime) type = "date";
13
+ if (!props.enableDate && props.enableTime) type = "time";
14
+ return lit.html`
15
+ <div
16
+ style=${(0, lit_directives_style_map_js.styleMap)({
17
+ display: "flex",
18
+ flexDirection: "column",
19
+ gap: "4px",
20
+ width: "100%",
21
+ margin: require_utils.LEAF_MARGIN
22
+ })}
23
+ >
24
+ ${props.label ? lit.html`<label
25
+ for=${inputId}
26
+ style="font-size: 14px; font-weight: bold;"
27
+ >${props.label}</label
28
+ >` : lit.nothing}
29
+ <input
30
+ id=${inputId}
31
+ type=${type}
32
+ style=${(0, lit_directives_style_map_js.styleMap)({
33
+ padding: "8px",
34
+ width: "100%",
35
+ border: require_utils.STANDARD_BORDER,
36
+ borderRadius: require_utils.STANDARD_RADIUS,
37
+ boxSizing: "border-box"
38
+ })}
39
+ .value=${props.value || ""}
40
+ min=${typeof props.min === "string" ? props.min : ""}
41
+ max=${typeof props.max === "string" ? props.max : ""}
42
+ @input=${(e) => props.setValue(e.target.value)}
43
+ />
44
+ </div>
45
+ `;
46
+ });
47
+
48
+ //#endregion
49
+ exports.DateTimeInput = DateTimeInput;
50
+ //# sourceMappingURL=date-time-input.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-input.cjs","names":["createLitComponent","DateTimeInputApi","uniqueId","LEAF_MARGIN","nothing","STANDARD_BORDER","STANDARD_RADIUS"],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DateTimeInputApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { uniqueId } from \"./ids\";\nimport { LEAF_MARGIN, STANDARD_BORDER, STANDARD_RADIUS } from \"./utils\";\n\nexport const DateTimeInput = createLitComponent(\n DateTimeInputApi,\n ({ props }) => {\n const inputId = uniqueId(\"datetime\");\n let type = \"datetime-local\";\n if (props.enableDate && !props.enableTime) type = \"date\";\n if (!props.enableDate && props.enableTime) type = \"time\";\n return html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"4px\",\n width: \"100%\",\n margin: LEAF_MARGIN,\n })}\n >\n ${\n props.label\n ? html`<label\n for=${inputId}\n style=\"font-size: 14px; font-weight: bold;\"\n >${props.label}</label\n >`\n : nothing\n }\n <input\n id=${inputId}\n type=${type}\n style=${styleMap({\n padding: \"8px\",\n width: \"100%\",\n border: STANDARD_BORDER,\n borderRadius: STANDARD_RADIUS,\n boxSizing: \"border-box\",\n })}\n .value=${props.value || \"\"}\n min=${typeof props.min === \"string\" ? props.min : \"\"}\n max=${typeof props.max === \"string\" ? props.max : \"\"}\n @input=${(e: Event) =>\n props.setValue((e.target as HTMLInputElement).value)}\n />\n </div>\n `;\n },\n);\n"],"mappings":";;;;;;;;AAOA,MAAa,gBAAgBA,mCAC3BC,qDACC,EAAE,YAAY;CACb,MAAM,UAAUC,qBAAS,WAAW;CACpC,IAAI,OAAO;AACX,KAAI,MAAM,cAAc,CAAC,MAAM,WAAY,QAAO;AAClD,KAAI,CAAC,MAAM,cAAc,MAAM,WAAY,QAAO;AAClD,QAAO,QAAI;;wDAEQ;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACP,QAAQC;EACT,CAAC,CAAC;;QAGD,MAAM,QACF,QAAI;kBACE,QAAQ;;eAEX,MAAM,MAAM;eAEfC,YACL;;aAEM,QAAQ;eACN,KAAK;0DACK;EACf,SAAS;EACT,OAAO;EACP,QAAQC;EACR,cAAcC;EACd,WAAW;EACZ,CAAC,CAAC;iBACM,MAAM,SAAS,GAAG;cACrB,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;cAC/C,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;kBAC3C,MACR,MAAM,SAAU,EAAE,OAA4B,MAAM,CAAC;;;;EAK9D"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.cjs";
2
+ import "../../index.cjs";
3
+
4
+ //#region src/web-components/catalog/basic/date-time-input.d.ts
5
+ declare const DateTimeInput: LitComponentImplementation;
6
+ //#endregion
7
+ export { DateTimeInput };
8
+ //# sourceMappingURL=date-time-input.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-input.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"mappings":";;;;cAOa,aAAA,EA6CZ,0BAAA"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.mjs";
2
+ import "../../index.mjs";
3
+
4
+ //#region src/web-components/catalog/basic/date-time-input.d.ts
5
+ declare const DateTimeInput: LitComponentImplementation;
6
+ //#endregion
7
+ export { DateTimeInput };
8
+ //# sourceMappingURL=date-time-input.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-input.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"mappings":";;;;cAOa,aAAA,EA6CZ,0BAAA"}
@@ -0,0 +1,50 @@
1
+ import { createLitComponent } from "../../adapter.mjs";
2
+ import { LEAF_MARGIN, STANDARD_BORDER, STANDARD_RADIUS } from "./utils.mjs";
3
+ import { uniqueId } from "./ids.mjs";
4
+ import { html, nothing } from "lit";
5
+ import { DateTimeInputApi } from "@a2ui/web_core/v0_9/basic_catalog";
6
+ import { styleMap } from "lit/directives/style-map.js";
7
+
8
+ //#region src/web-components/catalog/basic/date-time-input.ts
9
+ const DateTimeInput = createLitComponent(DateTimeInputApi, ({ props }) => {
10
+ const inputId = uniqueId("datetime");
11
+ let type = "datetime-local";
12
+ if (props.enableDate && !props.enableTime) type = "date";
13
+ if (!props.enableDate && props.enableTime) type = "time";
14
+ return html`
15
+ <div
16
+ style=${styleMap({
17
+ display: "flex",
18
+ flexDirection: "column",
19
+ gap: "4px",
20
+ width: "100%",
21
+ margin: LEAF_MARGIN
22
+ })}
23
+ >
24
+ ${props.label ? html`<label
25
+ for=${inputId}
26
+ style="font-size: 14px; font-weight: bold;"
27
+ >${props.label}</label
28
+ >` : nothing}
29
+ <input
30
+ id=${inputId}
31
+ type=${type}
32
+ style=${styleMap({
33
+ padding: "8px",
34
+ width: "100%",
35
+ border: STANDARD_BORDER,
36
+ borderRadius: STANDARD_RADIUS,
37
+ boxSizing: "border-box"
38
+ })}
39
+ .value=${props.value || ""}
40
+ min=${typeof props.min === "string" ? props.min : ""}
41
+ max=${typeof props.max === "string" ? props.max : ""}
42
+ @input=${(e) => props.setValue(e.target.value)}
43
+ />
44
+ </div>
45
+ `;
46
+ });
47
+
48
+ //#endregion
49
+ export { DateTimeInput };
50
+ //# sourceMappingURL=date-time-input.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-time-input.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/date-time-input.ts"],"sourcesContent":["import { html, nothing } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DateTimeInputApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { uniqueId } from \"./ids\";\nimport { LEAF_MARGIN, STANDARD_BORDER, STANDARD_RADIUS } from \"./utils\";\n\nexport const DateTimeInput = createLitComponent(\n DateTimeInputApi,\n ({ props }) => {\n const inputId = uniqueId(\"datetime\");\n let type = \"datetime-local\";\n if (props.enableDate && !props.enableTime) type = \"date\";\n if (!props.enableDate && props.enableTime) type = \"time\";\n return html`\n <div\n style=${styleMap({\n display: \"flex\",\n flexDirection: \"column\",\n gap: \"4px\",\n width: \"100%\",\n margin: LEAF_MARGIN,\n })}\n >\n ${\n props.label\n ? html`<label\n for=${inputId}\n style=\"font-size: 14px; font-weight: bold;\"\n >${props.label}</label\n >`\n : nothing\n }\n <input\n id=${inputId}\n type=${type}\n style=${styleMap({\n padding: \"8px\",\n width: \"100%\",\n border: STANDARD_BORDER,\n borderRadius: STANDARD_RADIUS,\n boxSizing: \"border-box\",\n })}\n .value=${props.value || \"\"}\n min=${typeof props.min === \"string\" ? props.min : \"\"}\n max=${typeof props.max === \"string\" ? props.max : \"\"}\n @input=${(e: Event) =>\n props.setValue((e.target as HTMLInputElement).value)}\n />\n </div>\n `;\n },\n);\n"],"mappings":";;;;;;;;AAOA,MAAa,gBAAgB,mBAC3B,mBACC,EAAE,YAAY;CACb,MAAM,UAAU,SAAS,WAAW;CACpC,IAAI,OAAO;AACX,KAAI,MAAM,cAAc,CAAC,MAAM,WAAY,QAAO;AAClD,KAAI,CAAC,MAAM,cAAc,MAAM,WAAY,QAAO;AAClD,QAAO,IAAI;;cAED,SAAS;EACf,SAAS;EACT,eAAe;EACf,KAAK;EACL,OAAO;EACP,QAAQ;EACT,CAAC,CAAC;;QAGD,MAAM,QACF,IAAI;kBACE,QAAQ;;eAEX,MAAM,MAAM;eAEf,QACL;;aAEM,QAAQ;eACN,KAAK;gBACJ,SAAS;EACf,SAAS;EACT,OAAO;EACP,QAAQ;EACR,cAAc;EACd,WAAW;EACZ,CAAC,CAAC;iBACM,MAAM,SAAS,GAAG;cACrB,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;cAC/C,OAAO,MAAM,QAAQ,WAAW,MAAM,MAAM,GAAG;kBAC3C,MACR,MAAM,SAAU,EAAE,OAA4B,MAAM,CAAC;;;;EAK9D"}
@@ -0,0 +1,21 @@
1
+ const require_adapter = require('../../adapter.cjs');
2
+ const require_utils = require('./utils.cjs');
3
+ let lit = require("lit");
4
+ let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
5
+ let lit_directives_style_map_js = require("lit/directives/style-map.js");
6
+
7
+ //#region src/web-components/catalog/basic/divider.ts
8
+ const Divider = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.DividerApi, ({ props }) => {
9
+ const isVertical = props.axis === "vertical";
10
+ return lit.html`<div style=${(0, lit_directives_style_map_js.styleMap)({
11
+ margin: require_utils.LEAF_MARGIN,
12
+ border: "none",
13
+ backgroundColor: "#ccc",
14
+ width: isVertical ? "1px" : "100%",
15
+ height: isVertical ? "100%" : "1px"
16
+ })}></div>`;
17
+ });
18
+
19
+ //#endregion
20
+ exports.Divider = Divider;
21
+ //# sourceMappingURL=divider.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.cjs","names":["createLitComponent","DividerApi","LEAF_MARGIN"],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DividerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { LEAF_MARGIN } from \"./utils\";\n\nexport const Divider = createLitComponent(DividerApi, ({ props }) => {\n const isVertical = props.axis === \"vertical\";\n const style: Record<string, string> = {\n margin: LEAF_MARGIN,\n border: \"none\",\n backgroundColor: \"#ccc\",\n width: isVertical ? \"1px\" : \"100%\",\n height: isVertical ? \"100%\" : \"1px\",\n };\n return html`<div style=${styleMap(style)}></div>`;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,UAAUA,mCAAmBC,+CAAa,EAAE,YAAY;CACnE,MAAM,aAAa,MAAM,SAAS;AAQlC,QAAO,QAAI,wDAP2B;EACpC,QAAQC;EACR,QAAQ;EACR,iBAAiB;EACjB,OAAO,aAAa,QAAQ;EAC5B,QAAQ,aAAa,SAAS;EAC/B,CACuC,CAAC;EACzC"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.cjs";
2
+ import "../../index.cjs";
3
+
4
+ //#region src/web-components/catalog/basic/divider.d.ts
5
+ declare const Divider: LitComponentImplementation;
6
+ //#endregion
7
+ export { Divider };
8
+ //# sourceMappingURL=divider.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"mappings":";;;;cAMa,OAAA,EAUX,0BAAA"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.mjs";
2
+ import "../../index.mjs";
3
+
4
+ //#region src/web-components/catalog/basic/divider.d.ts
5
+ declare const Divider: LitComponentImplementation;
6
+ //#endregion
7
+ export { Divider };
8
+ //# sourceMappingURL=divider.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"mappings":";;;;cAMa,OAAA,EAUX,0BAAA"}
@@ -0,0 +1,21 @@
1
+ import { createLitComponent } from "../../adapter.mjs";
2
+ import { LEAF_MARGIN } from "./utils.mjs";
3
+ import { html } from "lit";
4
+ import { DividerApi } from "@a2ui/web_core/v0_9/basic_catalog";
5
+ import { styleMap } from "lit/directives/style-map.js";
6
+
7
+ //#region src/web-components/catalog/basic/divider.ts
8
+ const Divider = createLitComponent(DividerApi, ({ props }) => {
9
+ const isVertical = props.axis === "vertical";
10
+ return html`<div style=${styleMap({
11
+ margin: LEAF_MARGIN,
12
+ border: "none",
13
+ backgroundColor: "#ccc",
14
+ width: isVertical ? "1px" : "100%",
15
+ height: isVertical ? "100%" : "1px"
16
+ })}></div>`;
17
+ });
18
+
19
+ //#endregion
20
+ export { Divider };
21
+ //# sourceMappingURL=divider.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"divider.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/divider.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { DividerApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { LEAF_MARGIN } from \"./utils\";\n\nexport const Divider = createLitComponent(DividerApi, ({ props }) => {\n const isVertical = props.axis === \"vertical\";\n const style: Record<string, string> = {\n margin: LEAF_MARGIN,\n border: \"none\",\n backgroundColor: \"#ccc\",\n width: isVertical ? \"1px\" : \"100%\",\n height: isVertical ? \"100%\" : \"1px\",\n };\n return html`<div style=${styleMap(style)}></div>`;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,UAAU,mBAAmB,aAAa,EAAE,YAAY;CACnE,MAAM,aAAa,MAAM,SAAS;AAQlC,QAAO,IAAI,cAAc,SAPa;EACpC,QAAQ;EACR,QAAQ;EACR,iBAAiB;EACjB,OAAO,aAAa,QAAQ;EAC5B,QAAQ,aAAa,SAAS;EAC/B,CACuC,CAAC;EACzC"}
@@ -0,0 +1,29 @@
1
+ const require_adapter = require('../../adapter.cjs');
2
+ const require_utils = require('./utils.cjs');
3
+ let lit = require("lit");
4
+ let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
5
+ let lit_directives_style_map_js = require("lit/directives/style-map.js");
6
+
7
+ //#region src/web-components/catalog/basic/icon.ts
8
+ const Icon = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.IconApi, ({ props }) => {
9
+ const iconName = typeof props.name === "string" ? props.name : props.name?.path;
10
+ return lit.html`
11
+ <span
12
+ class="material-symbols-outlined"
13
+ style=${(0, lit_directives_style_map_js.styleMap)({
14
+ ...require_utils.getBaseLeafStyle(),
15
+ fontSize: "24px",
16
+ width: "24px",
17
+ height: "24px",
18
+ display: "inline-flex",
19
+ alignItems: "center",
20
+ justifyContent: "center"
21
+ })}
22
+ >${iconName}</span
23
+ >
24
+ `;
25
+ });
26
+
27
+ //#endregion
28
+ exports.Icon = Icon;
29
+ //# sourceMappingURL=icon.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.cjs","names":["createLitComponent","IconApi","getBaseLeafStyle"],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { IconApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Icon = createLitComponent(IconApi, ({ props }) => {\n const iconName =\n typeof props.name === \"string\"\n ? props.name\n : (props.name as { path?: string } | undefined)?.path;\n return html`\n <span\n class=\"material-symbols-outlined\"\n style=${styleMap({\n ...getBaseLeafStyle(),\n fontSize: \"24px\",\n width: \"24px\",\n height: \"24px\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n })}\n >${iconName}</span\n >\n `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,OAAOA,mCAAmBC,4CAAU,EAAE,YAAY;CAC7D,MAAM,WACJ,OAAO,MAAM,SAAS,WAClB,MAAM,OACL,MAAM,MAAwC;AACrD,QAAO,QAAI;;;wDAGU;EACf,GAAGC,gCAAkB;EACrB,UAAU;EACV,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY;EACZ,gBAAgB;EACjB,CAAC,CAAC;SACA,SAAS;;;EAGhB"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.cjs";
2
+ import "../../index.cjs";
3
+
4
+ //#region src/web-components/catalog/basic/icon.d.ts
5
+ declare const Icon: LitComponentImplementation;
6
+ //#endregion
7
+ export { Icon };
8
+ //# sourceMappingURL=icon.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"mappings":";;;;cAMa,IAAA,EAoBX,0BAAA"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.mjs";
2
+ import "../../index.mjs";
3
+
4
+ //#region src/web-components/catalog/basic/icon.d.ts
5
+ declare const Icon: LitComponentImplementation;
6
+ //#endregion
7
+ export { Icon };
8
+ //# sourceMappingURL=icon.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"mappings":";;;;cAMa,IAAA,EAoBX,0BAAA"}
@@ -0,0 +1,29 @@
1
+ import { createLitComponent } from "../../adapter.mjs";
2
+ import { getBaseLeafStyle } from "./utils.mjs";
3
+ import { html } from "lit";
4
+ import { IconApi } from "@a2ui/web_core/v0_9/basic_catalog";
5
+ import { styleMap } from "lit/directives/style-map.js";
6
+
7
+ //#region src/web-components/catalog/basic/icon.ts
8
+ const Icon = createLitComponent(IconApi, ({ props }) => {
9
+ const iconName = typeof props.name === "string" ? props.name : props.name?.path;
10
+ return html`
11
+ <span
12
+ class="material-symbols-outlined"
13
+ style=${styleMap({
14
+ ...getBaseLeafStyle(),
15
+ fontSize: "24px",
16
+ width: "24px",
17
+ height: "24px",
18
+ display: "inline-flex",
19
+ alignItems: "center",
20
+ justifyContent: "center"
21
+ })}
22
+ >${iconName}</span
23
+ >
24
+ `;
25
+ });
26
+
27
+ //#endregion
28
+ export { Icon };
29
+ //# sourceMappingURL=icon.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/icon.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { IconApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Icon = createLitComponent(IconApi, ({ props }) => {\n const iconName =\n typeof props.name === \"string\"\n ? props.name\n : (props.name as { path?: string } | undefined)?.path;\n return html`\n <span\n class=\"material-symbols-outlined\"\n style=${styleMap({\n ...getBaseLeafStyle(),\n fontSize: \"24px\",\n width: \"24px\",\n height: \"24px\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n })}\n >${iconName}</span\n >\n `;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,OAAO,mBAAmB,UAAU,EAAE,YAAY;CAC7D,MAAM,WACJ,OAAO,MAAM,SAAS,WAClB,MAAM,OACL,MAAM,MAAwC;AACrD,QAAO,IAAI;;;cAGC,SAAS;EACf,GAAG,kBAAkB;EACrB,UAAU;EACV,OAAO;EACP,QAAQ;EACR,SAAS;EACT,YAAY;EACZ,gBAAgB;EACjB,CAAC,CAAC;SACA,SAAS;;;EAGhB"}
@@ -0,0 +1,11 @@
1
+
2
+ //#region src/web-components/catalog/basic/ids.ts
3
+ let idCounter = 0;
4
+ function uniqueId(prefix) {
5
+ idCounter += 1;
6
+ return `cpk-a2ui-${prefix}-${idCounter}`;
7
+ }
8
+
9
+ //#endregion
10
+ exports.uniqueId = uniqueId;
11
+ //# sourceMappingURL=ids.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ids.cjs","names":[],"sources":["../../../../src/web-components/catalog/basic/ids.ts"],"sourcesContent":["let idCounter = 0;\n\nexport function uniqueId(prefix: string): string {\n idCounter += 1;\n return `cpk-a2ui-${prefix}-${idCounter}`;\n}\n"],"mappings":";;AAAA,IAAI,YAAY;AAEhB,SAAgB,SAAS,QAAwB;AAC/C,cAAa;AACb,QAAO,YAAY,OAAO,GAAG"}
@@ -0,0 +1,10 @@
1
+ //#region src/web-components/catalog/basic/ids.ts
2
+ let idCounter = 0;
3
+ function uniqueId(prefix) {
4
+ idCounter += 1;
5
+ return `cpk-a2ui-${prefix}-${idCounter}`;
6
+ }
7
+
8
+ //#endregion
9
+ export { uniqueId };
10
+ //# sourceMappingURL=ids.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ids.mjs","names":[],"sources":["../../../../src/web-components/catalog/basic/ids.ts"],"sourcesContent":["let idCounter = 0;\n\nexport function uniqueId(prefix: string): string {\n idCounter += 1;\n return `cpk-a2ui-${prefix}-${idCounter}`;\n}\n"],"mappings":";AAAA,IAAI,YAAY;AAEhB,SAAgB,SAAS,QAAwB;AAC/C,cAAa;AACb,QAAO,YAAY,OAAO,GAAG"}
@@ -0,0 +1,42 @@
1
+ const require_adapter = require('../../adapter.cjs');
2
+ const require_utils = require('./utils.cjs');
3
+ let lit = require("lit");
4
+ let _a2ui_web_core_v0_9_basic_catalog = require("@a2ui/web_core/v0_9/basic_catalog");
5
+ let lit_directives_style_map_js = require("lit/directives/style-map.js");
6
+
7
+ //#region src/web-components/catalog/basic/image.ts
8
+ const Image = require_adapter.createLitComponent(_a2ui_web_core_v0_9_basic_catalog.ImageApi, ({ props }) => {
9
+ const mapFit = (fit) => {
10
+ if (fit === "scaleDown") return "scale-down";
11
+ return fit || "fill";
12
+ };
13
+ const style = {
14
+ ...require_utils.getBaseLeafStyle(),
15
+ objectFit: mapFit(props.fit),
16
+ width: "100%",
17
+ height: "auto",
18
+ display: "block"
19
+ };
20
+ if (props.variant === "icon") {
21
+ style.width = "24px";
22
+ style.height = "24px";
23
+ } else if (props.variant === "avatar") {
24
+ style.width = "40px";
25
+ style.height = "40px";
26
+ style.borderRadius = "50%";
27
+ } else if (props.variant === "smallFeature") style.maxWidth = "100px";
28
+ else if (props.variant === "largeFeature") style.maxHeight = "400px";
29
+ else if (props.variant === "header") {
30
+ style.height = "200px";
31
+ style.objectFit = "cover";
32
+ }
33
+ return lit.html`<img
34
+ src=${props.url ?? ""}
35
+ alt=${props.description ?? ""}
36
+ style=${(0, lit_directives_style_map_js.styleMap)(style)}
37
+ />`;
38
+ });
39
+
40
+ //#endregion
41
+ exports.Image = Image;
42
+ //# sourceMappingURL=image.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.cjs","names":["createLitComponent","ImageApi","getBaseLeafStyle"],"sources":["../../../../src/web-components/catalog/basic/image.ts"],"sourcesContent":["import { html } from \"lit\";\nimport { styleMap } from \"lit/directives/style-map.js\";\nimport { ImageApi } from \"@a2ui/web_core/v0_9/basic_catalog\";\nimport { createLitComponent } from \"../../adapter\";\nimport { getBaseLeafStyle } from \"./utils\";\n\nexport const Image = createLitComponent(ImageApi, ({ props }) => {\n const mapFit = (fit?: string): string => {\n if (fit === \"scaleDown\") return \"scale-down\";\n return fit || \"fill\";\n };\n const style: Record<string, string> = {\n ...getBaseLeafStyle(),\n objectFit: mapFit(props.fit),\n width: \"100%\",\n height: \"auto\",\n display: \"block\",\n } as Record<string, string>;\n\n if (props.variant === \"icon\") {\n style.width = \"24px\";\n style.height = \"24px\";\n } else if (props.variant === \"avatar\") {\n style.width = \"40px\";\n style.height = \"40px\";\n style.borderRadius = \"50%\";\n } else if (props.variant === \"smallFeature\") {\n style.maxWidth = \"100px\";\n } else if (props.variant === \"largeFeature\") {\n style.maxHeight = \"400px\";\n } else if (props.variant === \"header\") {\n style.height = \"200px\";\n style.objectFit = \"cover\";\n }\n\n return html`<img\n src=${props.url ?? \"\"}\n alt=${props.description ?? \"\"}\n style=${styleMap(style)}\n />`;\n});\n"],"mappings":";;;;;;;AAMA,MAAa,QAAQA,mCAAmBC,6CAAW,EAAE,YAAY;CAC/D,MAAM,UAAU,QAAyB;AACvC,MAAI,QAAQ,YAAa,QAAO;AAChC,SAAO,OAAO;;CAEhB,MAAM,QAAgC;EACpC,GAAGC,gCAAkB;EACrB,WAAW,OAAO,MAAM,IAAI;EAC5B,OAAO;EACP,QAAQ;EACR,SAAS;EACV;AAED,KAAI,MAAM,YAAY,QAAQ;AAC5B,QAAM,QAAQ;AACd,QAAM,SAAS;YACN,MAAM,YAAY,UAAU;AACrC,QAAM,QAAQ;AACd,QAAM,SAAS;AACf,QAAM,eAAe;YACZ,MAAM,YAAY,eAC3B,OAAM,WAAW;UACR,MAAM,YAAY,eAC3B,OAAM,YAAY;UACT,MAAM,YAAY,UAAU;AACrC,QAAM,SAAS;AACf,QAAM,YAAY;;AAGpB,QAAO,QAAI;UACH,MAAM,OAAO,GAAG;UAChB,MAAM,eAAe,GAAG;sDACb,MAAM,CAAC;;EAE1B"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.cjs";
2
+ import "../../index.cjs";
3
+
4
+ //#region src/web-components/catalog/basic/image.d.ts
5
+ declare const Image: LitComponentImplementation;
6
+ //#endregion
7
+ export { Image };
8
+ //# sourceMappingURL=image.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.cts","names":[],"sources":["../../../../src/web-components/catalog/basic/image.ts"],"mappings":";;;;cAMa,KAAA,EAkCX,0BAAA"}
@@ -0,0 +1,8 @@
1
+ import { LitComponentImplementation } from "../../types.mjs";
2
+ import "../../index.mjs";
3
+
4
+ //#region src/web-components/catalog/basic/image.d.ts
5
+ declare const Image: LitComponentImplementation;
6
+ //#endregion
7
+ export { Image };
8
+ //# sourceMappingURL=image.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"image.d.mts","names":[],"sources":["../../../../src/web-components/catalog/basic/image.ts"],"mappings":";;;;cAMa,KAAA,EAkCX,0BAAA"}
@@ -0,0 +1,42 @@
1
+ import { createLitComponent } from "../../adapter.mjs";
2
+ import { getBaseLeafStyle } from "./utils.mjs";
3
+ import { html } from "lit";
4
+ import { ImageApi } from "@a2ui/web_core/v0_9/basic_catalog";
5
+ import { styleMap } from "lit/directives/style-map.js";
6
+
7
+ //#region src/web-components/catalog/basic/image.ts
8
+ const Image = createLitComponent(ImageApi, ({ props }) => {
9
+ const mapFit = (fit) => {
10
+ if (fit === "scaleDown") return "scale-down";
11
+ return fit || "fill";
12
+ };
13
+ const style = {
14
+ ...getBaseLeafStyle(),
15
+ objectFit: mapFit(props.fit),
16
+ width: "100%",
17
+ height: "auto",
18
+ display: "block"
19
+ };
20
+ if (props.variant === "icon") {
21
+ style.width = "24px";
22
+ style.height = "24px";
23
+ } else if (props.variant === "avatar") {
24
+ style.width = "40px";
25
+ style.height = "40px";
26
+ style.borderRadius = "50%";
27
+ } else if (props.variant === "smallFeature") style.maxWidth = "100px";
28
+ else if (props.variant === "largeFeature") style.maxHeight = "400px";
29
+ else if (props.variant === "header") {
30
+ style.height = "200px";
31
+ style.objectFit = "cover";
32
+ }
33
+ return html`<img
34
+ src=${props.url ?? ""}
35
+ alt=${props.description ?? ""}
36
+ style=${styleMap(style)}
37
+ />`;
38
+ });
39
+
40
+ //#endregion
41
+ export { Image };
42
+ //# sourceMappingURL=image.mjs.map