@microsoft/teams.cards 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (422) hide show
  1. package/README.md +41 -0
  2. package/dist/actions/base.d.mts +89 -0
  3. package/dist/actions/base.d.ts +89 -0
  4. package/dist/actions/base.js +90 -0
  5. package/dist/actions/base.js.map +1 -0
  6. package/dist/actions/base.mjs +88 -0
  7. package/dist/actions/base.mjs.map +1 -0
  8. package/dist/actions/execute.d.mts +47 -0
  9. package/dist/actions/execute.d.ts +47 -0
  10. package/dist/actions/execute.js +43 -0
  11. package/dist/actions/execute.js.map +1 -0
  12. package/dist/actions/execute.mjs +41 -0
  13. package/dist/actions/execute.mjs.map +1 -0
  14. package/dist/actions/index.d.mts +31 -0
  15. package/dist/actions/index.d.ts +31 -0
  16. package/dist/actions/index.js +42 -0
  17. package/dist/actions/index.js.map +1 -0
  18. package/dist/actions/index.mjs +7 -0
  19. package/dist/actions/index.mjs.map +1 -0
  20. package/dist/actions/open-url.d.mts +28 -0
  21. package/dist/actions/open-url.d.ts +28 -0
  22. package/dist/actions/open-url.js +28 -0
  23. package/dist/actions/open-url.js.map +1 -0
  24. package/dist/actions/open-url.mjs +26 -0
  25. package/dist/actions/open-url.mjs.map +1 -0
  26. package/dist/actions/show-card.d.mts +31 -0
  27. package/dist/actions/show-card.d.ts +31 -0
  28. package/dist/actions/show-card.js +28 -0
  29. package/dist/actions/show-card.js.map +1 -0
  30. package/dist/actions/show-card.mjs +26 -0
  31. package/dist/actions/show-card.mjs.map +1 -0
  32. package/dist/actions/submit/collab-stage.d.mts +74 -0
  33. package/dist/actions/submit/collab-stage.d.ts +74 -0
  34. package/dist/actions/submit/collab-stage.js +62 -0
  35. package/dist/actions/submit/collab-stage.js.map +1 -0
  36. package/dist/actions/submit/collab-stage.mjs +58 -0
  37. package/dist/actions/submit/collab-stage.mjs.map +1 -0
  38. package/dist/actions/submit/im-back.d.mts +40 -0
  39. package/dist/actions/submit/im-back.d.ts +40 -0
  40. package/dist/actions/submit/im-back.js +42 -0
  41. package/dist/actions/submit/im-back.js.map +1 -0
  42. package/dist/actions/submit/im-back.mjs +39 -0
  43. package/dist/actions/submit/im-back.mjs.map +1 -0
  44. package/dist/actions/submit/index.d.mts +10 -0
  45. package/dist/actions/submit/index.d.ts +10 -0
  46. package/dist/actions/submit/index.js +56 -0
  47. package/dist/actions/submit/index.js.map +1 -0
  48. package/dist/actions/submit/index.mjs +9 -0
  49. package/dist/actions/submit/index.mjs.map +1 -0
  50. package/dist/actions/submit/invoke.d.mts +40 -0
  51. package/dist/actions/submit/invoke.d.ts +40 -0
  52. package/dist/actions/submit/invoke.js +42 -0
  53. package/dist/actions/submit/invoke.js.map +1 -0
  54. package/dist/actions/submit/invoke.mjs +39 -0
  55. package/dist/actions/submit/invoke.mjs.map +1 -0
  56. package/dist/actions/submit/message-back.d.mts +60 -0
  57. package/dist/actions/submit/message-back.d.ts +60 -0
  58. package/dist/actions/submit/message-back.js +56 -0
  59. package/dist/actions/submit/message-back.js.map +1 -0
  60. package/dist/actions/submit/message-back.mjs +53 -0
  61. package/dist/actions/submit/message-back.mjs.map +1 -0
  62. package/dist/actions/submit/sign-in.d.mts +40 -0
  63. package/dist/actions/submit/sign-in.d.ts +40 -0
  64. package/dist/actions/submit/sign-in.js +42 -0
  65. package/dist/actions/submit/sign-in.js.map +1 -0
  66. package/dist/actions/submit/sign-in.mjs +39 -0
  67. package/dist/actions/submit/sign-in.mjs.map +1 -0
  68. package/dist/actions/submit/submit.d.mts +51 -0
  69. package/dist/actions/submit/submit.d.ts +51 -0
  70. package/dist/actions/submit/submit.js +38 -0
  71. package/dist/actions/submit/submit.js.map +1 -0
  72. package/dist/actions/submit/submit.mjs +36 -0
  73. package/dist/actions/submit/submit.mjs.map +1 -0
  74. package/dist/actions/submit/task-fetch.d.mts +40 -0
  75. package/dist/actions/submit/task-fetch.d.ts +40 -0
  76. package/dist/actions/submit/task-fetch.js +42 -0
  77. package/dist/actions/submit/task-fetch.js.map +1 -0
  78. package/dist/actions/submit/task-fetch.mjs +39 -0
  79. package/dist/actions/submit/task-fetch.mjs.map +1 -0
  80. package/dist/actions/toggle-visibility.d.mts +29 -0
  81. package/dist/actions/toggle-visibility.d.ts +29 -0
  82. package/dist/actions/toggle-visibility.js +29 -0
  83. package/dist/actions/toggle-visibility.js.map +1 -0
  84. package/dist/actions/toggle-visibility.mjs +27 -0
  85. package/dist/actions/toggle-visibility.mjs.map +1 -0
  86. package/dist/base.d.mts +31 -0
  87. package/dist/base.d.ts +31 -0
  88. package/dist/base.js +105 -0
  89. package/dist/base.js.map +1 -0
  90. package/dist/base.mjs +103 -0
  91. package/dist/base.mjs.map +1 -0
  92. package/dist/card.d.mts +31 -0
  93. package/dist/card.d.ts +31 -0
  94. package/dist/card.js +118 -0
  95. package/dist/card.js.map +1 -0
  96. package/dist/card.mjs +115 -0
  97. package/dist/card.mjs.map +1 -0
  98. package/dist/charts/color.d.mts +3 -0
  99. package/dist/charts/color.d.ts +3 -0
  100. package/dist/charts/color.js +4 -0
  101. package/dist/charts/color.js.map +1 -0
  102. package/dist/charts/color.mjs +3 -0
  103. package/dist/charts/color.mjs.map +1 -0
  104. package/dist/charts/donut.d.mts +31 -0
  105. package/dist/charts/donut.d.ts +31 -0
  106. package/dist/charts/donut.js +79 -0
  107. package/dist/charts/donut.js.map +1 -0
  108. package/dist/charts/donut.mjs +76 -0
  109. package/dist/charts/donut.mjs.map +1 -0
  110. package/dist/charts/index.d.mts +31 -0
  111. package/dist/charts/index.d.ts +31 -0
  112. package/dist/charts/index.js +28 -0
  113. package/dist/charts/index.js.map +1 -0
  114. package/dist/charts/index.mjs +5 -0
  115. package/dist/charts/index.mjs.map +1 -0
  116. package/dist/charts/line.d.mts +31 -0
  117. package/dist/charts/line.d.ts +31 -0
  118. package/dist/charts/line.js +97 -0
  119. package/dist/charts/line.js.map +1 -0
  120. package/dist/charts/line.mjs +93 -0
  121. package/dist/charts/line.mjs.map +1 -0
  122. package/dist/common/associated-inputs.d.mts +3 -0
  123. package/dist/common/associated-inputs.d.ts +3 -0
  124. package/dist/common/associated-inputs.js +4 -0
  125. package/dist/common/associated-inputs.js.map +1 -0
  126. package/dist/common/associated-inputs.mjs +3 -0
  127. package/dist/common/associated-inputs.mjs.map +1 -0
  128. package/dist/common/auth/auth-card-button.d.mts +50 -0
  129. package/dist/common/auth/auth-card-button.d.ts +50 -0
  130. package/dist/common/auth/auth-card-button.js +45 -0
  131. package/dist/common/auth/auth-card-button.js.map +1 -0
  132. package/dist/common/auth/auth-card-button.mjs +43 -0
  133. package/dist/common/auth/auth-card-button.mjs.map +1 -0
  134. package/dist/common/auth/auth.d.mts +52 -0
  135. package/dist/common/auth/auth.d.ts +52 -0
  136. package/dist/common/auth/auth.js +46 -0
  137. package/dist/common/auth/auth.js.map +1 -0
  138. package/dist/common/auth/auth.mjs +44 -0
  139. package/dist/common/auth/auth.mjs.map +1 -0
  140. package/dist/common/auth/index.d.mts +3 -0
  141. package/dist/common/auth/index.d.ts +3 -0
  142. package/dist/common/auth/index.js +28 -0
  143. package/dist/common/auth/index.js.map +1 -0
  144. package/dist/common/auth/index.mjs +5 -0
  145. package/dist/common/auth/index.mjs.map +1 -0
  146. package/dist/common/auth/token-exchange-resource.d.mts +37 -0
  147. package/dist/common/auth/token-exchange-resource.d.ts +37 -0
  148. package/dist/common/auth/token-exchange-resource.js +25 -0
  149. package/dist/common/auth/token-exchange-resource.js.map +1 -0
  150. package/dist/common/auth/token-exchange-resource.mjs +23 -0
  151. package/dist/common/auth/token-exchange-resource.mjs.map +1 -0
  152. package/dist/common/color.d.mts +3 -0
  153. package/dist/common/color.d.ts +3 -0
  154. package/dist/common/color.js +4 -0
  155. package/dist/common/color.js.map +1 -0
  156. package/dist/common/color.mjs +3 -0
  157. package/dist/common/color.mjs.map +1 -0
  158. package/dist/common/font.d.mts +5 -0
  159. package/dist/common/font.d.ts +5 -0
  160. package/dist/common/font.js +4 -0
  161. package/dist/common/font.js.map +1 -0
  162. package/dist/common/font.mjs +3 -0
  163. package/dist/common/font.mjs.map +1 -0
  164. package/dist/common/horizontal-alignment.d.mts +6 -0
  165. package/dist/common/horizontal-alignment.d.ts +6 -0
  166. package/dist/common/horizontal-alignment.js +4 -0
  167. package/dist/common/horizontal-alignment.js.map +1 -0
  168. package/dist/common/horizontal-alignment.mjs +3 -0
  169. package/dist/common/horizontal-alignment.mjs.map +1 -0
  170. package/dist/common/index.d.mts +15 -0
  171. package/dist/common/index.d.ts +15 -0
  172. package/dist/common/index.js +84 -0
  173. package/dist/common/index.js.map +1 -0
  174. package/dist/common/index.mjs +13 -0
  175. package/dist/common/index.mjs.map +1 -0
  176. package/dist/common/refresh.d.mts +23 -0
  177. package/dist/common/refresh.d.ts +23 -0
  178. package/dist/common/refresh.js +4 -0
  179. package/dist/common/refresh.js.map +1 -0
  180. package/dist/common/refresh.mjs +3 -0
  181. package/dist/common/refresh.mjs.map +1 -0
  182. package/dist/common/spacing.d.mts +6 -0
  183. package/dist/common/spacing.d.ts +6 -0
  184. package/dist/common/spacing.js +4 -0
  185. package/dist/common/spacing.js.map +1 -0
  186. package/dist/common/spacing.mjs +3 -0
  187. package/dist/common/spacing.mjs.map +1 -0
  188. package/dist/common/tab-info.d.mts +23 -0
  189. package/dist/common/tab-info.d.ts +23 -0
  190. package/dist/common/tab-info.js +4 -0
  191. package/dist/common/tab-info.js.map +1 -0
  192. package/dist/common/tab-info.mjs +3 -0
  193. package/dist/common/tab-info.mjs.map +1 -0
  194. package/dist/common/target-element.d.mts +16 -0
  195. package/dist/common/target-element.d.ts +16 -0
  196. package/dist/common/target-element.js +4 -0
  197. package/dist/common/target-element.js.map +1 -0
  198. package/dist/common/target-element.mjs +3 -0
  199. package/dist/common/target-element.mjs.map +1 -0
  200. package/dist/common/target-width.d.mts +9 -0
  201. package/dist/common/target-width.d.ts +9 -0
  202. package/dist/common/target-width.js +4 -0
  203. package/dist/common/target-width.js.map +1 -0
  204. package/dist/common/target-width.mjs +3 -0
  205. package/dist/common/target-width.mjs.map +1 -0
  206. package/dist/common/vertical-alignment.d.mts +6 -0
  207. package/dist/common/vertical-alignment.d.ts +6 -0
  208. package/dist/common/vertical-alignment.js +4 -0
  209. package/dist/common/vertical-alignment.js.map +1 -0
  210. package/dist/common/vertical-alignment.mjs +3 -0
  211. package/dist/common/vertical-alignment.mjs.map +1 -0
  212. package/dist/containers/action-set.d.mts +31 -0
  213. package/dist/containers/action-set.d.ts +31 -0
  214. package/dist/containers/action-set.js +28 -0
  215. package/dist/containers/action-set.js.map +1 -0
  216. package/dist/containers/action-set.mjs +26 -0
  217. package/dist/containers/action-set.mjs.map +1 -0
  218. package/dist/containers/base.d.mts +31 -0
  219. package/dist/containers/base.d.ts +31 -0
  220. package/dist/containers/base.js +68 -0
  221. package/dist/containers/base.js.map +1 -0
  222. package/dist/containers/base.mjs +66 -0
  223. package/dist/containers/base.mjs.map +1 -0
  224. package/dist/containers/carousel.d.mts +31 -0
  225. package/dist/containers/carousel.d.ts +31 -0
  226. package/dist/containers/carousel.js +158 -0
  227. package/dist/containers/carousel.js.map +1 -0
  228. package/dist/containers/carousel.mjs +155 -0
  229. package/dist/containers/carousel.mjs.map +1 -0
  230. package/dist/containers/column-set.d.mts +31 -0
  231. package/dist/containers/column-set.d.ts +31 -0
  232. package/dist/containers/column-set.js +44 -0
  233. package/dist/containers/column-set.js.map +1 -0
  234. package/dist/containers/column-set.mjs +42 -0
  235. package/dist/containers/column-set.mjs.map +1 -0
  236. package/dist/containers/column.d.mts +31 -0
  237. package/dist/containers/column.d.ts +31 -0
  238. package/dist/containers/column.js +60 -0
  239. package/dist/containers/column.js.map +1 -0
  240. package/dist/containers/column.mjs +58 -0
  241. package/dist/containers/column.mjs.map +1 -0
  242. package/dist/containers/container.d.mts +31 -0
  243. package/dist/containers/container.d.ts +31 -0
  244. package/dist/containers/container.js +52 -0
  245. package/dist/containers/container.js.map +1 -0
  246. package/dist/containers/container.mjs +50 -0
  247. package/dist/containers/container.mjs.map +1 -0
  248. package/dist/containers/fact-set.d.mts +31 -0
  249. package/dist/containers/fact-set.d.ts +31 -0
  250. package/dist/containers/fact-set.js +43 -0
  251. package/dist/containers/fact-set.js.map +1 -0
  252. package/dist/containers/fact-set.mjs +40 -0
  253. package/dist/containers/fact-set.mjs.map +1 -0
  254. package/dist/containers/image-set.d.mts +31 -0
  255. package/dist/containers/image-set.d.ts +31 -0
  256. package/dist/containers/image-set.js +46 -0
  257. package/dist/containers/image-set.js.map +1 -0
  258. package/dist/containers/image-set.mjs +44 -0
  259. package/dist/containers/image-set.mjs.map +1 -0
  260. package/dist/containers/index.d.mts +31 -0
  261. package/dist/containers/index.d.ts +31 -0
  262. package/dist/containers/index.js +56 -0
  263. package/dist/containers/index.js.map +1 -0
  264. package/dist/containers/index.mjs +9 -0
  265. package/dist/containers/index.mjs.map +1 -0
  266. package/dist/element.d.mts +31 -0
  267. package/dist/element.d.ts +31 -0
  268. package/dist/element.js +4 -0
  269. package/dist/element.js.map +1 -0
  270. package/dist/element.mjs +3 -0
  271. package/dist/element.mjs.map +1 -0
  272. package/dist/index.d.mts +31 -0
  273. package/dist/index.d.ts +31 -0
  274. package/dist/index.js +70 -0
  275. package/dist/index.js.map +1 -0
  276. package/dist/index.mjs +11 -0
  277. package/dist/index.mjs.map +1 -0
  278. package/dist/inputs/base.d.mts +31 -0
  279. package/dist/inputs/base.d.ts +31 -0
  280. package/dist/inputs/base.js +63 -0
  281. package/dist/inputs/base.js.map +1 -0
  282. package/dist/inputs/base.mjs +61 -0
  283. package/dist/inputs/base.mjs.map +1 -0
  284. package/dist/inputs/choice-set.d.mts +31 -0
  285. package/dist/inputs/choice-set.d.ts +31 -0
  286. package/dist/inputs/choice-set.js +121 -0
  287. package/dist/inputs/choice-set.js.map +1 -0
  288. package/dist/inputs/choice-set.mjs +117 -0
  289. package/dist/inputs/choice-set.mjs.map +1 -0
  290. package/dist/inputs/date.d.mts +31 -0
  291. package/dist/inputs/date.d.ts +31 -0
  292. package/dist/inputs/date.js +52 -0
  293. package/dist/inputs/date.js.map +1 -0
  294. package/dist/inputs/date.mjs +50 -0
  295. package/dist/inputs/date.mjs.map +1 -0
  296. package/dist/inputs/index.d.mts +31 -0
  297. package/dist/inputs/index.d.ts +31 -0
  298. package/dist/inputs/index.js +49 -0
  299. package/dist/inputs/index.js.map +1 -0
  300. package/dist/inputs/index.mjs +8 -0
  301. package/dist/inputs/index.mjs.map +1 -0
  302. package/dist/inputs/number.d.mts +31 -0
  303. package/dist/inputs/number.d.ts +31 -0
  304. package/dist/inputs/number.js +52 -0
  305. package/dist/inputs/number.js.map +1 -0
  306. package/dist/inputs/number.mjs +50 -0
  307. package/dist/inputs/number.mjs.map +1 -0
  308. package/dist/inputs/text.d.mts +31 -0
  309. package/dist/inputs/text.d.ts +31 -0
  310. package/dist/inputs/text.js +76 -0
  311. package/dist/inputs/text.js.map +1 -0
  312. package/dist/inputs/text.mjs +74 -0
  313. package/dist/inputs/text.mjs.map +1 -0
  314. package/dist/inputs/time.d.mts +31 -0
  315. package/dist/inputs/time.d.ts +31 -0
  316. package/dist/inputs/time.js +52 -0
  317. package/dist/inputs/time.js.map +1 -0
  318. package/dist/inputs/time.mjs +50 -0
  319. package/dist/inputs/time.mjs.map +1 -0
  320. package/dist/inputs/toggle.d.mts +31 -0
  321. package/dist/inputs/toggle.d.ts +31 -0
  322. package/dist/inputs/toggle.js +57 -0
  323. package/dist/inputs/toggle.js.map +1 -0
  324. package/dist/inputs/toggle.mjs +55 -0
  325. package/dist/inputs/toggle.mjs.map +1 -0
  326. package/dist/layouts/area-grid.d.mts +133 -0
  327. package/dist/layouts/area-grid.d.ts +133 -0
  328. package/dist/layouts/area-grid.js +113 -0
  329. package/dist/layouts/area-grid.js.map +1 -0
  330. package/dist/layouts/area-grid.mjs +110 -0
  331. package/dist/layouts/area-grid.mjs.map +1 -0
  332. package/dist/layouts/flow.d.mts +119 -0
  333. package/dist/layouts/flow.d.ts +119 -0
  334. package/dist/layouts/flow.js +96 -0
  335. package/dist/layouts/flow.js.map +1 -0
  336. package/dist/layouts/flow.mjs +94 -0
  337. package/dist/layouts/flow.mjs.map +1 -0
  338. package/dist/layouts/index.d.mts +14 -0
  339. package/dist/layouts/index.d.ts +14 -0
  340. package/dist/layouts/index.js +28 -0
  341. package/dist/layouts/index.js.map +1 -0
  342. package/dist/layouts/index.mjs +5 -0
  343. package/dist/layouts/index.mjs.map +1 -0
  344. package/dist/layouts/stack.d.mts +28 -0
  345. package/dist/layouts/stack.d.ts +28 -0
  346. package/dist/layouts/stack.js +24 -0
  347. package/dist/layouts/stack.js.map +1 -0
  348. package/dist/layouts/stack.mjs +22 -0
  349. package/dist/layouts/stack.mjs.map +1 -0
  350. package/dist/medias/background-image.d.mts +56 -0
  351. package/dist/medias/background-image.d.ts +56 -0
  352. package/dist/medias/background-image.js +49 -0
  353. package/dist/medias/background-image.js.map +1 -0
  354. package/dist/medias/background-image.mjs +47 -0
  355. package/dist/medias/background-image.mjs.map +1 -0
  356. package/dist/medias/badge.d.mts +31 -0
  357. package/dist/medias/badge.d.ts +31 -0
  358. package/dist/medias/badge.js +84 -0
  359. package/dist/medias/badge.js.map +1 -0
  360. package/dist/medias/badge.mjs +82 -0
  361. package/dist/medias/badge.mjs.map +1 -0
  362. package/dist/medias/code-block.d.mts +31 -0
  363. package/dist/medias/code-block.d.ts +31 -0
  364. package/dist/medias/code-block.js +43 -0
  365. package/dist/medias/code-block.js.map +1 -0
  366. package/dist/medias/code-block.mjs +41 -0
  367. package/dist/medias/code-block.mjs.map +1 -0
  368. package/dist/medias/icon.d.mts +2288 -0
  369. package/dist/medias/icon.d.ts +2288 -0
  370. package/dist/medias/icon.js +56 -0
  371. package/dist/medias/icon.js.map +1 -0
  372. package/dist/medias/icon.mjs +54 -0
  373. package/dist/medias/icon.mjs.map +1 -0
  374. package/dist/medias/image.d.mts +31 -0
  375. package/dist/medias/image.d.ts +31 -0
  376. package/dist/medias/image.js +80 -0
  377. package/dist/medias/image.js.map +1 -0
  378. package/dist/medias/image.mjs +78 -0
  379. package/dist/medias/image.mjs.map +1 -0
  380. package/dist/medias/index.d.mts +31 -0
  381. package/dist/medias/index.d.ts +31 -0
  382. package/dist/medias/index.js +84 -0
  383. package/dist/medias/index.js.map +1 -0
  384. package/dist/medias/index.mjs +13 -0
  385. package/dist/medias/index.mjs.map +1 -0
  386. package/dist/medias/media.d.mts +31 -0
  387. package/dist/medias/media.d.ts +31 -0
  388. package/dist/medias/media.js +91 -0
  389. package/dist/medias/media.js.map +1 -0
  390. package/dist/medias/media.mjs +87 -0
  391. package/dist/medias/media.mjs.map +1 -0
  392. package/dist/medias/progress-bar.d.mts +31 -0
  393. package/dist/medias/progress-bar.d.ts +31 -0
  394. package/dist/medias/progress-bar.js +43 -0
  395. package/dist/medias/progress-bar.js.map +1 -0
  396. package/dist/medias/progress-bar.mjs +41 -0
  397. package/dist/medias/progress-bar.mjs.map +1 -0
  398. package/dist/medias/progress-ring.d.mts +31 -0
  399. package/dist/medias/progress-ring.d.ts +31 -0
  400. package/dist/medias/progress-ring.js +46 -0
  401. package/dist/medias/progress-ring.js.map +1 -0
  402. package/dist/medias/progress-ring.mjs +44 -0
  403. package/dist/medias/progress-ring.mjs.map +1 -0
  404. package/dist/medias/rich-text-block.d.mts +31 -0
  405. package/dist/medias/rich-text-block.d.ts +31 -0
  406. package/dist/medias/rich-text-block.js +33 -0
  407. package/dist/medias/rich-text-block.js.map +1 -0
  408. package/dist/medias/rich-text-block.mjs +31 -0
  409. package/dist/medias/rich-text-block.mjs.map +1 -0
  410. package/dist/medias/text-block.d.mts +31 -0
  411. package/dist/medias/text-block.d.ts +31 -0
  412. package/dist/medias/text-block.js +95 -0
  413. package/dist/medias/text-block.js.map +1 -0
  414. package/dist/medias/text-block.mjs +93 -0
  415. package/dist/medias/text-block.mjs.map +1 -0
  416. package/dist/medias/text-run.d.mts +31 -0
  417. package/dist/medias/text-run.d.ts +31 -0
  418. package/dist/medias/text-run.js +108 -0
  419. package/dist/medias/text-run.js.map +1 -0
  420. package/dist/medias/text-run.mjs +106 -0
  421. package/dist/medias/text-run.mjs.map +1 -0
  422. package/package.json +46 -0
package/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Teams: Cards
2
+
3
+ <p>
4
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank">
5
+ <img src="https://img.shields.io/npm/v/@microsoft/teams.cards" />
6
+ </a>
7
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=code" target="_blank">
8
+ <img src="https://img.shields.io/bundlephobia/min/@microsoft/teams.cards" />
9
+ </a>
10
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards?activeTab=dependencies" target="_blank">
11
+ <img src="https://img.shields.io/librariesio/release/npm/@microsoft/teams.cards" />
12
+ </a>
13
+ <a href="https://www.npmjs.com/package/@microsoft/teams.cards" target="_blank">
14
+ <img src="https://img.shields.io/npm/dw/@microsoft/teams.cards" />
15
+ </a>
16
+ <a href="https://microsoft.github.io/teams.js" target="_blank">
17
+ <img src="https://img.shields.io/badge/📖 docs-open-blue" />
18
+ </a>
19
+ </p>
20
+
21
+ An Adaptive Cards implementation with support for Teams-specific Adaptive Card elements.
22
+
23
+ <a href="https://microsoft.github.io/teams.js/2.getting-started/1.create-application.html" target="_blank">
24
+ <img src="https://img.shields.io/badge/📖 Getting Started-blue?style=for-the-badge" />
25
+ </a>
26
+
27
+ ## Install
28
+
29
+ ```bash
30
+ $: npm install @microsoft/teams.cards
31
+ ```
32
+
33
+ ## Links
34
+
35
+ - [AdaptiveCards.io](https://adaptivecards.io/)
36
+ - [Teams Adaptive Cards Designer](https://aka.ms/acdesignerbeta)
37
+ - [Teams Adaptive Cards Schema Explorer](https://aka.ms/acexplorer)
38
+
39
+ ## Dependencies
40
+
41
+ N/A
@@ -0,0 +1,89 @@
1
+ interface IAction {
2
+ /**
3
+ * A unique identifier associated with this Action.
4
+ */
5
+ id?: string;
6
+ /**
7
+ * Label for button or link that represents this action.
8
+ */
9
+ title?: string;
10
+ /**
11
+ * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
12
+ */
13
+ iconUrl?: string;
14
+ /**
15
+ * Controls the style of an Action, which influences how the action is displayed, spoken, etc.
16
+ */
17
+ style?: 'default' | 'positive' | 'destructive';
18
+ /**
19
+ * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
20
+ */
21
+ fallback?: IAction | string;
22
+ /**
23
+ * Determines whether an action is displayed with a button or is moved to the overflow menu.
24
+ */
25
+ mode?: 'primary' | 'secondary';
26
+ /**
27
+ * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
28
+ */
29
+ tooltip?: string;
30
+ /**
31
+ * Determines whether the action should be enabled.
32
+ */
33
+ isEnabled?: boolean;
34
+ /**
35
+ * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
36
+ */
37
+ requires?: Record<string, string>;
38
+ }
39
+ declare class Action implements IAction {
40
+ /**
41
+ * A unique identifier associated with this Action.
42
+ */
43
+ id?: string;
44
+ /**
45
+ * Label for button or link that represents this action.
46
+ */
47
+ title?: string;
48
+ /**
49
+ * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
50
+ */
51
+ iconUrl?: string;
52
+ /**
53
+ * Controls the style of an Action, which influences how the action is displayed, spoken, etc.
54
+ */
55
+ style?: 'default' | 'positive' | 'destructive';
56
+ /**
57
+ * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
58
+ */
59
+ fallback?: IAction | string;
60
+ /**
61
+ * Determines whether an action is displayed with a button or is moved to the overflow menu.
62
+ */
63
+ mode?: 'primary' | 'secondary';
64
+ /**
65
+ * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
66
+ */
67
+ tooltip?: string;
68
+ /**
69
+ * Determines whether the action should be enabled.
70
+ */
71
+ isEnabled?: boolean;
72
+ /**
73
+ * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
74
+ */
75
+ requires?: Record<string, string>;
76
+ constructor(value?: IAction);
77
+ withId(value: string): this;
78
+ withTitle(value: string): this;
79
+ withIconUrl(value: string): this;
80
+ withStyle(value: 'default' | 'positive' | 'destructive'): this;
81
+ withFallback(value: IAction | string): this;
82
+ withMode(value: 'primary' | 'secondary'): this;
83
+ withTooltip(value: string): this;
84
+ withEnabled(value?: boolean): this;
85
+ withRequires(value: Record<string, string>): this;
86
+ withRequire(key: string, value: string): this;
87
+ }
88
+
89
+ export { Action, type IAction };
@@ -0,0 +1,89 @@
1
+ interface IAction {
2
+ /**
3
+ * A unique identifier associated with this Action.
4
+ */
5
+ id?: string;
6
+ /**
7
+ * Label for button or link that represents this action.
8
+ */
9
+ title?: string;
10
+ /**
11
+ * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
12
+ */
13
+ iconUrl?: string;
14
+ /**
15
+ * Controls the style of an Action, which influences how the action is displayed, spoken, etc.
16
+ */
17
+ style?: 'default' | 'positive' | 'destructive';
18
+ /**
19
+ * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
20
+ */
21
+ fallback?: IAction | string;
22
+ /**
23
+ * Determines whether an action is displayed with a button or is moved to the overflow menu.
24
+ */
25
+ mode?: 'primary' | 'secondary';
26
+ /**
27
+ * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
28
+ */
29
+ tooltip?: string;
30
+ /**
31
+ * Determines whether the action should be enabled.
32
+ */
33
+ isEnabled?: boolean;
34
+ /**
35
+ * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
36
+ */
37
+ requires?: Record<string, string>;
38
+ }
39
+ declare class Action implements IAction {
40
+ /**
41
+ * A unique identifier associated with this Action.
42
+ */
43
+ id?: string;
44
+ /**
45
+ * Label for button or link that represents this action.
46
+ */
47
+ title?: string;
48
+ /**
49
+ * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
50
+ */
51
+ iconUrl?: string;
52
+ /**
53
+ * Controls the style of an Action, which influences how the action is displayed, spoken, etc.
54
+ */
55
+ style?: 'default' | 'positive' | 'destructive';
56
+ /**
57
+ * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
58
+ */
59
+ fallback?: IAction | string;
60
+ /**
61
+ * Determines whether an action is displayed with a button or is moved to the overflow menu.
62
+ */
63
+ mode?: 'primary' | 'secondary';
64
+ /**
65
+ * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
66
+ */
67
+ tooltip?: string;
68
+ /**
69
+ * Determines whether the action should be enabled.
70
+ */
71
+ isEnabled?: boolean;
72
+ /**
73
+ * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
74
+ */
75
+ requires?: Record<string, string>;
76
+ constructor(value?: IAction);
77
+ withId(value: string): this;
78
+ withTitle(value: string): this;
79
+ withIconUrl(value: string): this;
80
+ withStyle(value: 'default' | 'positive' | 'destructive'): this;
81
+ withFallback(value: IAction | string): this;
82
+ withMode(value: 'primary' | 'secondary'): this;
83
+ withTooltip(value: string): this;
84
+ withEnabled(value?: boolean): this;
85
+ withRequires(value: Record<string, string>): this;
86
+ withRequire(key: string, value: string): this;
87
+ }
88
+
89
+ export { Action, type IAction };
@@ -0,0 +1,90 @@
1
+ 'use strict';
2
+
3
+ class Action {
4
+ /**
5
+ * A unique identifier associated with this Action.
6
+ */
7
+ id;
8
+ /**
9
+ * Label for button or link that represents this action.
10
+ */
11
+ title;
12
+ /**
13
+ * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
14
+ */
15
+ iconUrl;
16
+ /**
17
+ * Controls the style of an Action, which influences how the action is displayed, spoken, etc.
18
+ */
19
+ style;
20
+ /**
21
+ * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
22
+ */
23
+ fallback;
24
+ /**
25
+ * Determines whether an action is displayed with a button or is moved to the overflow menu.
26
+ */
27
+ mode;
28
+ /**
29
+ * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
30
+ */
31
+ tooltip;
32
+ /**
33
+ * Determines whether the action should be enabled.
34
+ */
35
+ isEnabled;
36
+ /**
37
+ * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
38
+ */
39
+ requires;
40
+ constructor(value = {}) {
41
+ Object.assign(this, value);
42
+ }
43
+ withId(value) {
44
+ this.id = value;
45
+ return this;
46
+ }
47
+ withTitle(value) {
48
+ this.title = value;
49
+ return this;
50
+ }
51
+ withIconUrl(value) {
52
+ this.iconUrl = value;
53
+ return this;
54
+ }
55
+ withStyle(value) {
56
+ this.style = value;
57
+ return this;
58
+ }
59
+ withFallback(value) {
60
+ this.fallback = value;
61
+ return this;
62
+ }
63
+ withMode(value) {
64
+ this.mode = value;
65
+ return this;
66
+ }
67
+ withTooltip(value) {
68
+ this.tooltip = value;
69
+ return this;
70
+ }
71
+ withEnabled(value = true) {
72
+ this.isEnabled = value;
73
+ return this;
74
+ }
75
+ withRequires(value) {
76
+ this.requires = value;
77
+ return this;
78
+ }
79
+ withRequire(key, value) {
80
+ if (!this.requires) {
81
+ this.requires = {};
82
+ }
83
+ this.requires[key] = value;
84
+ return this;
85
+ }
86
+ }
87
+
88
+ exports.Action = Action;
89
+ //# sourceMappingURL=base.js.map
90
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/actions/base.ts"],"names":[],"mappings":";;AA+CO,MAAM,MAA0B,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrC,EAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAA;AAC3B,EAEA,OAAO,KAAe,EAAA;AACpB,IAAA,IAAA,CAAK,EAAK,GAAA,KAAA;AACV,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA+C,EAAA;AACvD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAyB,EAAA;AACpC,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAgC,EAAA;AACvC,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,QAAQ,IAAM,EAAA;AACxB,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAA+B,EAAA;AAC1C,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,KAAa,KAAe,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,MAAA,IAAA,CAAK,WAAW,EAAC;AAAA;AAGnB,IAAK,IAAA,CAAA,QAAA,CAAS,GAAG,CAAI,GAAA,KAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"base.js","sourcesContent":["export interface IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n}\n\nexport class Action implements IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n\n constructor(value: IAction = {}) {\n Object.assign(this, value);\n }\n\n withId(value: string) {\n this.id = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withIconUrl(value: string) {\n this.iconUrl = value;\n return this;\n }\n\n withStyle(value: 'default' | 'positive' | 'destructive') {\n this.style = value;\n return this;\n }\n\n withFallback(value: IAction | string) {\n this.fallback = value;\n return this;\n }\n\n withMode(value: 'primary' | 'secondary') {\n this.mode = value;\n return this;\n }\n\n withTooltip(value: string) {\n this.tooltip = value;\n return this;\n }\n\n withEnabled(value = true) {\n this.isEnabled = value;\n return this;\n }\n\n withRequires(value: Record<string, string>) {\n this.requires = value;\n return this;\n }\n\n withRequire(key: string, value: string) {\n if (!this.requires) {\n this.requires = {};\n }\n\n this.requires[key] = value;\n return this;\n }\n}\n"]}
@@ -0,0 +1,88 @@
1
+ class Action {
2
+ /**
3
+ * A unique identifier associated with this Action.
4
+ */
5
+ id;
6
+ /**
7
+ * Label for button or link that represents this action.
8
+ */
9
+ title;
10
+ /**
11
+ * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+
12
+ */
13
+ iconUrl;
14
+ /**
15
+ * Controls the style of an Action, which influences how the action is displayed, spoken, etc.
16
+ */
17
+ style;
18
+ /**
19
+ * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.
20
+ */
21
+ fallback;
22
+ /**
23
+ * Determines whether an action is displayed with a button or is moved to the overflow menu.
24
+ */
25
+ mode;
26
+ /**
27
+ * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.
28
+ */
29
+ tooltip;
30
+ /**
31
+ * Determines whether the action should be enabled.
32
+ */
33
+ isEnabled;
34
+ /**
35
+ * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.
36
+ */
37
+ requires;
38
+ constructor(value = {}) {
39
+ Object.assign(this, value);
40
+ }
41
+ withId(value) {
42
+ this.id = value;
43
+ return this;
44
+ }
45
+ withTitle(value) {
46
+ this.title = value;
47
+ return this;
48
+ }
49
+ withIconUrl(value) {
50
+ this.iconUrl = value;
51
+ return this;
52
+ }
53
+ withStyle(value) {
54
+ this.style = value;
55
+ return this;
56
+ }
57
+ withFallback(value) {
58
+ this.fallback = value;
59
+ return this;
60
+ }
61
+ withMode(value) {
62
+ this.mode = value;
63
+ return this;
64
+ }
65
+ withTooltip(value) {
66
+ this.tooltip = value;
67
+ return this;
68
+ }
69
+ withEnabled(value = true) {
70
+ this.isEnabled = value;
71
+ return this;
72
+ }
73
+ withRequires(value) {
74
+ this.requires = value;
75
+ return this;
76
+ }
77
+ withRequire(key, value) {
78
+ if (!this.requires) {
79
+ this.requires = {};
80
+ }
81
+ this.requires[key] = value;
82
+ return this;
83
+ }
84
+ }
85
+
86
+ export { Action };
87
+ //# sourceMappingURL=base.mjs.map
88
+ //# sourceMappingURL=base.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/actions/base.ts"],"names":[],"mappings":"AA+CO,MAAM,MAA0B,CAAA;AAAA;AAAA;AAAA;AAAA,EAIrC,EAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAiB,GAAA,EAAI,EAAA;AAC/B,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,KAAK,CAAA;AAAA;AAC3B,EAEA,OAAO,KAAe,EAAA;AACpB,IAAA,IAAA,CAAK,EAAK,GAAA,KAAA;AACV,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA+C,EAAA;AACvD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAAyB,EAAA;AACpC,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAgC,EAAA;AACvC,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,QAAQ,IAAM,EAAA;AACxB,IAAA,IAAA,CAAK,SAAY,GAAA,KAAA;AACjB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,aAAa,KAA+B,EAAA;AAC1C,IAAA,IAAA,CAAK,QAAW,GAAA,KAAA;AAChB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,WAAA,CAAY,KAAa,KAAe,EAAA;AACtC,IAAI,IAAA,CAAC,KAAK,QAAU,EAAA;AAClB,MAAA,IAAA,CAAK,WAAW,EAAC;AAAA;AAGnB,IAAK,IAAA,CAAA,QAAA,CAAS,GAAG,CAAI,GAAA,KAAA;AACrB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"base.mjs","sourcesContent":["export interface IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n}\n\nexport class Action implements IAction {\n /**\n * A unique identifier associated with this Action.\n */\n id?: string;\n\n /**\n * Label for button or link that represents this action.\n */\n title?: string;\n\n /**\n * Optional icon to be shown on the action in conjunction with the title. Supports data URI in version 1.2+\n */\n iconUrl?: string;\n\n /**\n * Controls the style of an Action, which influences how the action is displayed, spoken, etc.\n */\n style?: 'default' | 'positive' | 'destructive';\n\n /**\n * Describes what to do when an unknown element is encountered or the requires of this or any children can’t be met.\n */\n fallback?: IAction | string;\n\n /**\n * Determines whether an action is displayed with a button or is moved to the overflow menu.\n */\n mode?: 'primary' | 'secondary';\n\n /**\n * Defines text that should be displayed to the end user as they hover the mouse over the action, and read when using narration software.\n */\n tooltip?: string;\n\n /**\n * Determines whether the action should be enabled.\n */\n isEnabled?: boolean;\n\n /**\n * A series of key/value pairs indicating features that the item requires with corresponding minimum version. When a feature is missing or of insufficient version, fallback is triggered.\n */\n requires?: Record<string, string>;\n\n constructor(value: IAction = {}) {\n Object.assign(this, value);\n }\n\n withId(value: string) {\n this.id = value;\n return this;\n }\n\n withTitle(value: string) {\n this.title = value;\n return this;\n }\n\n withIconUrl(value: string) {\n this.iconUrl = value;\n return this;\n }\n\n withStyle(value: 'default' | 'positive' | 'destructive') {\n this.style = value;\n return this;\n }\n\n withFallback(value: IAction | string) {\n this.fallback = value;\n return this;\n }\n\n withMode(value: 'primary' | 'secondary') {\n this.mode = value;\n return this;\n }\n\n withTooltip(value: string) {\n this.tooltip = value;\n return this;\n }\n\n withEnabled(value = true) {\n this.isEnabled = value;\n return this;\n }\n\n withRequires(value: Record<string, string>) {\n this.requires = value;\n return this;\n }\n\n withRequire(key: string, value: string) {\n if (!this.requires) {\n this.requires = {};\n }\n\n this.requires[key] = value;\n return this;\n }\n}\n"]}
@@ -0,0 +1,47 @@
1
+ import { AssociatedInputs } from '../common/associated-inputs.mjs';
2
+ import { IAction, Action } from './base.mjs';
3
+
4
+ /**
5
+ * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.
6
+ */
7
+ interface IExecuteAction extends IAction {
8
+ type: 'Action.Execute';
9
+ /**
10
+ * The card author-defined verb associated with this action.
11
+ */
12
+ verb?: string;
13
+ /**
14
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
15
+ */
16
+ data?: string | Record<string, any>;
17
+ /**
18
+ * Controls which inputs are associated with the action.
19
+ */
20
+ associatedInputs?: AssociatedInputs;
21
+ }
22
+ type ExecuteActionOptions = Omit<IExecuteAction, 'type'>;
23
+ /**
24
+ * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.
25
+ */
26
+ declare class ExecuteAction extends Action implements IExecuteAction {
27
+ type: 'Action.Execute';
28
+ /**
29
+ * The card author-defined verb associated with this action.
30
+ */
31
+ verb?: string;
32
+ /**
33
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
34
+ */
35
+ data?: string | Record<string, any>;
36
+ /**
37
+ * Controls which inputs are associated with the action.
38
+ */
39
+ associatedInputs?: AssociatedInputs;
40
+ constructor(options?: ExecuteActionOptions);
41
+ static from(options: ExecuteActionOptions): ExecuteAction;
42
+ withVerb(value: string): this;
43
+ withData(value: string | Record<string, any>): this;
44
+ withAssociatedInputs(value: AssociatedInputs): this;
45
+ }
46
+
47
+ export { ExecuteAction, type ExecuteActionOptions, type IExecuteAction };
@@ -0,0 +1,47 @@
1
+ import { AssociatedInputs } from '../common/associated-inputs.js';
2
+ import { IAction, Action } from './base.js';
3
+
4
+ /**
5
+ * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.
6
+ */
7
+ interface IExecuteAction extends IAction {
8
+ type: 'Action.Execute';
9
+ /**
10
+ * The card author-defined verb associated with this action.
11
+ */
12
+ verb?: string;
13
+ /**
14
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
15
+ */
16
+ data?: string | Record<string, any>;
17
+ /**
18
+ * Controls which inputs are associated with the action.
19
+ */
20
+ associatedInputs?: AssociatedInputs;
21
+ }
22
+ type ExecuteActionOptions = Omit<IExecuteAction, 'type'>;
23
+ /**
24
+ * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.
25
+ */
26
+ declare class ExecuteAction extends Action implements IExecuteAction {
27
+ type: 'Action.Execute';
28
+ /**
29
+ * The card author-defined verb associated with this action.
30
+ */
31
+ verb?: string;
32
+ /**
33
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
34
+ */
35
+ data?: string | Record<string, any>;
36
+ /**
37
+ * Controls which inputs are associated with the action.
38
+ */
39
+ associatedInputs?: AssociatedInputs;
40
+ constructor(options?: ExecuteActionOptions);
41
+ static from(options: ExecuteActionOptions): ExecuteAction;
42
+ withVerb(value: string): this;
43
+ withData(value: string | Record<string, any>): this;
44
+ withAssociatedInputs(value: AssociatedInputs): this;
45
+ }
46
+
47
+ export { ExecuteAction, type ExecuteActionOptions, type IExecuteAction };
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var base = require('./base');
4
+
5
+ class ExecuteAction extends base.Action {
6
+ type;
7
+ /**
8
+ * The card author-defined verb associated with this action.
9
+ */
10
+ verb;
11
+ /**
12
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
13
+ */
14
+ data;
15
+ /**
16
+ * Controls which inputs are associated with the action.
17
+ */
18
+ associatedInputs;
19
+ constructor(options = {}) {
20
+ super();
21
+ this.type = "Action.Execute";
22
+ Object.assign(this, options);
23
+ }
24
+ static from(options) {
25
+ return new ExecuteAction(options);
26
+ }
27
+ withVerb(value) {
28
+ this.verb = value;
29
+ return this;
30
+ }
31
+ withData(value) {
32
+ this.data = value;
33
+ return this;
34
+ }
35
+ withAssociatedInputs(value) {
36
+ this.associatedInputs = value;
37
+ return this;
38
+ }
39
+ }
40
+
41
+ exports.ExecuteAction = ExecuteAction;
42
+ //# sourceMappingURL=execute.js.map
43
+ //# sourceMappingURL=execute.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/actions/execute.ts"],"names":["Action"],"mappings":";;;;AA+BO,MAAM,sBAAsBA,WAAiC,CAAA;AAAA,EAClE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA,EAEA,WAAA,CAAY,OAAgC,GAAA,EAAI,EAAA;AAC9C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,gBAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA+B,EAAA;AACzC,IAAO,OAAA,IAAI,cAAc,OAAO,CAAA;AAAA;AAClC,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAqC,EAAA;AAC5C,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"execute.js","sourcesContent":["import { AssociatedInputs } from '../common';\n\nimport { IAction, Action } from './base';\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.\n */\nexport interface IExecuteAction extends IAction {\n type: 'Action.Execute';\n\n /**\n * The card author-defined verb associated with this action.\n */\n verb?: string;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: string | Record<string, any>;\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n}\n\nexport type ExecuteActionOptions = Omit<IExecuteAction, 'type'>;\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.\n */\nexport class ExecuteAction extends Action implements IExecuteAction {\n type: 'Action.Execute';\n\n /**\n * The card author-defined verb associated with this action.\n */\n verb?: string;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: string | Record<string, any>;\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n constructor(options: ExecuteActionOptions = {}) {\n super();\n this.type = 'Action.Execute';\n Object.assign(this, options);\n }\n\n static from(options: ExecuteActionOptions) {\n return new ExecuteAction(options);\n }\n\n withVerb(value: string) {\n this.verb = value;\n return this;\n }\n\n withData(value: string | Record<string, any>) {\n this.data = value;\n return this;\n }\n\n withAssociatedInputs(value: AssociatedInputs) {\n this.associatedInputs = value;\n return this;\n }\n}\n"]}
@@ -0,0 +1,41 @@
1
+ import { Action } from './base';
2
+
3
+ class ExecuteAction extends Action {
4
+ type;
5
+ /**
6
+ * The card author-defined verb associated with this action.
7
+ */
8
+ verb;
9
+ /**
10
+ * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.
11
+ */
12
+ data;
13
+ /**
14
+ * Controls which inputs are associated with the action.
15
+ */
16
+ associatedInputs;
17
+ constructor(options = {}) {
18
+ super();
19
+ this.type = "Action.Execute";
20
+ Object.assign(this, options);
21
+ }
22
+ static from(options) {
23
+ return new ExecuteAction(options);
24
+ }
25
+ withVerb(value) {
26
+ this.verb = value;
27
+ return this;
28
+ }
29
+ withData(value) {
30
+ this.data = value;
31
+ return this;
32
+ }
33
+ withAssociatedInputs(value) {
34
+ this.associatedInputs = value;
35
+ return this;
36
+ }
37
+ }
38
+
39
+ export { ExecuteAction };
40
+ //# sourceMappingURL=execute.mjs.map
41
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/actions/execute.ts"],"names":[],"mappings":";;AA+BO,MAAM,sBAAsB,MAAiC,CAAA;AAAA,EAClE,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,gBAAA;AAAA,EAEA,WAAA,CAAY,OAAgC,GAAA,EAAI,EAAA;AAC9C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,gBAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA+B,EAAA;AACzC,IAAO,OAAA,IAAI,cAAc,OAAO,CAAA;AAAA;AAClC,EAEA,SAAS,KAAe,EAAA;AACtB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAqC,EAAA;AAC5C,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAA,IAAA,CAAK,gBAAmB,GAAA,KAAA;AACxB,IAAO,OAAA,IAAA;AAAA;AAEX","file":"execute.mjs","sourcesContent":["import { AssociatedInputs } from '../common';\n\nimport { IAction, Action } from './base';\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.\n */\nexport interface IExecuteAction extends IAction {\n type: 'Action.Execute';\n\n /**\n * The card author-defined verb associated with this action.\n */\n verb?: string;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: string | Record<string, any>;\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n}\n\nexport type ExecuteActionOptions = Omit<IExecuteAction, 'type'>;\n\n/**\n * Gathers input fields, merges with optional data field, and sends an event to the client. Clients process the event by sending an Invoke activity of type adaptiveCard/action to the target Bot. The inputs that are gathered are those on the current card, and in the case of a show card those on any parent cards. See [Universal Action Model](https://docs.microsoft.com/en-us/adaptive-cards/authoring-cards/universal-action-model) documentation for more details.\n */\nexport class ExecuteAction extends Action implements IExecuteAction {\n type: 'Action.Execute';\n\n /**\n * The card author-defined verb associated with this action.\n */\n verb?: string;\n\n /**\n * Initial data that input fields will be combined with. These are essentially ‘hidden’ properties.\n */\n data?: string | Record<string, any>;\n\n /**\n * Controls which inputs are associated with the action.\n */\n associatedInputs?: AssociatedInputs;\n\n constructor(options: ExecuteActionOptions = {}) {\n super();\n this.type = 'Action.Execute';\n Object.assign(this, options);\n }\n\n static from(options: ExecuteActionOptions) {\n return new ExecuteAction(options);\n }\n\n withVerb(value: string) {\n this.verb = value;\n return this;\n }\n\n withData(value: string | Record<string, any>) {\n this.data = value;\n return this;\n }\n\n withAssociatedInputs(value: AssociatedInputs) {\n this.associatedInputs = value;\n return this;\n }\n}\n"]}
@@ -0,0 +1,31 @@
1
+ export { ExecuteAction, ExecuteActionOptions, IExecuteAction } from './execute.mjs';
2
+ export { IOpenUrlAction, OpenUrlAction, OpenUrlOptions } from './open-url.mjs';
3
+ export { b2 as Action, a$ as IShowCardAction, b3 as SelectAction, b1 as ShowCardAction, b0 as ShowCardOptions } from '../medias/icon.mjs';
4
+ export { ISubmitAction, MSTeamsData, SubmitAction, SubmitActionOptions } from './submit/submit.mjs';
5
+ export { IIMBackAction, IIMBackData, IMBackAction, IMBackActionOptions, IMBackData } from './submit/im-back.mjs';
6
+ export { IInvokeAction, IInvokeData, InvokeAction, InvokeActionOptions, InvokeData } from './submit/invoke.mjs';
7
+ export { IMessageBackAction, IMessageBackData, MessageBackAction, MessageBackActionOptions, MessageBackData } from './submit/message-back.mjs';
8
+ export { ISignInAction, ISignInData, SignInAction, SignInActionOptions, SignInData } from './submit/sign-in.mjs';
9
+ export { ITaskFetchAction, ITaskFetchData, TaskFetchAction, TaskFetchActionOptions, TaskFetchData } from './submit/task-fetch.mjs';
10
+ export { CollabStageAction, CollabStageActionOptions, CollabStageData, CollabStageValueData, ICollabStageAction, ICollabStageData, ICollabStageValueData } from './submit/collab-stage.mjs';
11
+ export { IToggleVisibilityAction, ToggleVisibilityAction, ToggleVisibilityActionOptions } from './toggle-visibility.mjs';
12
+ import '../common/associated-inputs.mjs';
13
+ import './base.mjs';
14
+ import '../common/vertical-alignment.mjs';
15
+ import '../common/refresh.mjs';
16
+ import '../common/auth/auth.mjs';
17
+ import '../common/auth/auth-card-button.mjs';
18
+ import '../common/auth/token-exchange-resource.mjs';
19
+ import '../common/horizontal-alignment.mjs';
20
+ import '../common/spacing.mjs';
21
+ import '../common/target-width.mjs';
22
+ import '../charts/color.mjs';
23
+ import '../layouts/index.mjs';
24
+ import '../layouts/area-grid.mjs';
25
+ import '../layouts/flow.mjs';
26
+ import '../layouts/stack.mjs';
27
+ import '../medias/background-image.mjs';
28
+ import '../common/color.mjs';
29
+ import '../common/font.mjs';
30
+ import '../common/target-element.mjs';
31
+ import '../common/tab-info.mjs';