@microsoft/teams.cards 0.2.14 → 2.0.0-preview.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 (419) hide show
  1. package/dist/actions/index.d.mts +2 -24
  2. package/dist/actions/index.d.ts +2 -24
  3. package/dist/actions/index.js +0 -28
  4. package/dist/actions/index.mjs +0 -4
  5. package/dist/actions/submit/collab-stage.d.mts +2 -3
  6. package/dist/actions/submit/collab-stage.d.ts +2 -3
  7. package/dist/actions/submit/collab-stage.js +2 -2
  8. package/dist/actions/submit/collab-stage.js.map +1 -1
  9. package/dist/actions/submit/collab-stage.mjs +1 -1
  10. package/dist/actions/submit/collab-stage.mjs.map +1 -1
  11. package/dist/actions/submit/im-back.d.mts +2 -3
  12. package/dist/actions/submit/im-back.d.ts +2 -3
  13. package/dist/actions/submit/im-back.js +2 -2
  14. package/dist/actions/submit/im-back.js.map +1 -1
  15. package/dist/actions/submit/im-back.mjs +1 -1
  16. package/dist/actions/submit/im-back.mjs.map +1 -1
  17. package/dist/actions/submit/index.d.mts +2 -3
  18. package/dist/actions/submit/index.d.ts +2 -3
  19. package/dist/actions/submit/index.js +0 -7
  20. package/dist/actions/submit/index.mjs +0 -1
  21. package/dist/actions/submit/invoke.d.mts +2 -3
  22. package/dist/actions/submit/invoke.d.ts +2 -3
  23. package/dist/actions/submit/invoke.js +2 -2
  24. package/dist/actions/submit/invoke.js.map +1 -1
  25. package/dist/actions/submit/invoke.mjs +1 -1
  26. package/dist/actions/submit/invoke.mjs.map +1 -1
  27. package/dist/actions/submit/message-back.d.mts +2 -3
  28. package/dist/actions/submit/message-back.d.ts +2 -3
  29. package/dist/actions/submit/message-back.js +2 -2
  30. package/dist/actions/submit/message-back.js.map +1 -1
  31. package/dist/actions/submit/message-back.mjs +1 -1
  32. package/dist/actions/submit/message-back.mjs.map +1 -1
  33. package/dist/actions/submit/ms-teams-data.d.mts +15 -0
  34. package/dist/actions/submit/ms-teams-data.d.ts +15 -0
  35. package/dist/actions/submit/ms-teams-data.js +4 -0
  36. package/dist/actions/submit/ms-teams-data.js.map +1 -0
  37. package/dist/actions/submit/ms-teams-data.mjs +3 -0
  38. package/dist/actions/submit/ms-teams-data.mjs.map +1 -0
  39. package/dist/actions/submit/sign-in.d.mts +2 -3
  40. package/dist/actions/submit/sign-in.d.ts +2 -3
  41. package/dist/actions/submit/sign-in.js +2 -2
  42. package/dist/actions/submit/sign-in.js.map +1 -1
  43. package/dist/actions/submit/sign-in.mjs +1 -1
  44. package/dist/actions/submit/sign-in.mjs.map +1 -1
  45. package/dist/actions/submit/task-fetch.d.mts +2 -3
  46. package/dist/actions/submit/task-fetch.d.ts +2 -3
  47. package/dist/actions/submit/task-fetch.js +3 -3
  48. package/dist/actions/submit/task-fetch.js.map +1 -1
  49. package/dist/actions/submit/task-fetch.mjs +2 -2
  50. package/dist/actions/submit/task-fetch.mjs.map +1 -1
  51. package/dist/common/index.d.mts +0 -14
  52. package/dist/common/index.d.ts +0 -14
  53. package/dist/common/index.js +0 -70
  54. package/dist/common/index.mjs +0 -10
  55. package/dist/core.d.mts +10707 -0
  56. package/dist/core.d.ts +10707 -0
  57. package/dist/core.js +8718 -0
  58. package/dist/core.js.map +1 -0
  59. package/dist/core.mjs +8574 -0
  60. package/dist/core.mjs.map +1 -0
  61. package/dist/index.d.mts +3 -25
  62. package/dist/index.d.ts +3 -25
  63. package/dist/index.js +5 -47
  64. package/dist/index.mjs +1 -7
  65. package/package.json +2 -2
  66. package/dist/actions/base.d.mts +0 -89
  67. package/dist/actions/base.d.ts +0 -89
  68. package/dist/actions/base.js +0 -90
  69. package/dist/actions/base.js.map +0 -1
  70. package/dist/actions/base.mjs +0 -88
  71. package/dist/actions/base.mjs.map +0 -1
  72. package/dist/actions/execute.d.mts +0 -47
  73. package/dist/actions/execute.d.ts +0 -47
  74. package/dist/actions/execute.js +0 -43
  75. package/dist/actions/execute.js.map +0 -1
  76. package/dist/actions/execute.mjs +0 -41
  77. package/dist/actions/execute.mjs.map +0 -1
  78. package/dist/actions/open-url.d.mts +0 -28
  79. package/dist/actions/open-url.d.ts +0 -28
  80. package/dist/actions/open-url.js +0 -28
  81. package/dist/actions/open-url.js.map +0 -1
  82. package/dist/actions/open-url.mjs +0 -26
  83. package/dist/actions/open-url.mjs.map +0 -1
  84. package/dist/actions/show-card.d.mts +0 -31
  85. package/dist/actions/show-card.d.ts +0 -31
  86. package/dist/actions/show-card.js +0 -28
  87. package/dist/actions/show-card.js.map +0 -1
  88. package/dist/actions/show-card.mjs +0 -26
  89. package/dist/actions/show-card.mjs.map +0 -1
  90. package/dist/actions/submit/submit.d.mts +0 -51
  91. package/dist/actions/submit/submit.d.ts +0 -51
  92. package/dist/actions/submit/submit.js +0 -45
  93. package/dist/actions/submit/submit.js.map +0 -1
  94. package/dist/actions/submit/submit.mjs +0 -43
  95. package/dist/actions/submit/submit.mjs.map +0 -1
  96. package/dist/actions/toggle-visibility.d.mts +0 -29
  97. package/dist/actions/toggle-visibility.d.ts +0 -29
  98. package/dist/actions/toggle-visibility.js +0 -29
  99. package/dist/actions/toggle-visibility.js.map +0 -1
  100. package/dist/actions/toggle-visibility.mjs +0 -27
  101. package/dist/actions/toggle-visibility.mjs.map +0 -1
  102. package/dist/base.d.mts +0 -31
  103. package/dist/base.d.ts +0 -31
  104. package/dist/base.js +0 -105
  105. package/dist/base.js.map +0 -1
  106. package/dist/base.mjs +0 -103
  107. package/dist/base.mjs.map +0 -1
  108. package/dist/card.d.mts +0 -31
  109. package/dist/card.d.ts +0 -31
  110. package/dist/card.js +0 -117
  111. package/dist/card.js.map +0 -1
  112. package/dist/card.mjs +0 -114
  113. package/dist/card.mjs.map +0 -1
  114. package/dist/charts/color.d.mts +0 -3
  115. package/dist/charts/color.d.ts +0 -3
  116. package/dist/charts/color.js +0 -4
  117. package/dist/charts/color.js.map +0 -1
  118. package/dist/charts/color.mjs +0 -3
  119. package/dist/charts/color.mjs.map +0 -1
  120. package/dist/charts/donut.d.mts +0 -2288
  121. package/dist/charts/donut.d.ts +0 -2288
  122. package/dist/charts/donut.js +0 -79
  123. package/dist/charts/donut.js.map +0 -1
  124. package/dist/charts/donut.mjs +0 -76
  125. package/dist/charts/donut.mjs.map +0 -1
  126. package/dist/charts/index.d.mts +0 -31
  127. package/dist/charts/index.d.ts +0 -31
  128. package/dist/charts/index.js +0 -28
  129. package/dist/charts/index.js.map +0 -1
  130. package/dist/charts/index.mjs +0 -5
  131. package/dist/charts/index.mjs.map +0 -1
  132. package/dist/charts/line.d.mts +0 -31
  133. package/dist/charts/line.d.ts +0 -31
  134. package/dist/charts/line.js +0 -97
  135. package/dist/charts/line.js.map +0 -1
  136. package/dist/charts/line.mjs +0 -93
  137. package/dist/charts/line.mjs.map +0 -1
  138. package/dist/common/associated-inputs.d.mts +0 -3
  139. package/dist/common/associated-inputs.d.ts +0 -3
  140. package/dist/common/associated-inputs.js +0 -4
  141. package/dist/common/associated-inputs.js.map +0 -1
  142. package/dist/common/associated-inputs.mjs +0 -3
  143. package/dist/common/associated-inputs.mjs.map +0 -1
  144. package/dist/common/auth/auth-card-button.d.mts +0 -50
  145. package/dist/common/auth/auth-card-button.d.ts +0 -50
  146. package/dist/common/auth/auth-card-button.js +0 -45
  147. package/dist/common/auth/auth-card-button.js.map +0 -1
  148. package/dist/common/auth/auth-card-button.mjs +0 -43
  149. package/dist/common/auth/auth-card-button.mjs.map +0 -1
  150. package/dist/common/auth/auth.d.mts +0 -52
  151. package/dist/common/auth/auth.d.ts +0 -52
  152. package/dist/common/auth/auth.js +0 -46
  153. package/dist/common/auth/auth.js.map +0 -1
  154. package/dist/common/auth/auth.mjs +0 -44
  155. package/dist/common/auth/auth.mjs.map +0 -1
  156. package/dist/common/auth/index.d.mts +0 -3
  157. package/dist/common/auth/index.d.ts +0 -3
  158. package/dist/common/auth/index.js +0 -28
  159. package/dist/common/auth/index.js.map +0 -1
  160. package/dist/common/auth/index.mjs +0 -5
  161. package/dist/common/auth/index.mjs.map +0 -1
  162. package/dist/common/auth/token-exchange-resource.d.mts +0 -37
  163. package/dist/common/auth/token-exchange-resource.d.ts +0 -37
  164. package/dist/common/auth/token-exchange-resource.js +0 -25
  165. package/dist/common/auth/token-exchange-resource.js.map +0 -1
  166. package/dist/common/auth/token-exchange-resource.mjs +0 -23
  167. package/dist/common/auth/token-exchange-resource.mjs.map +0 -1
  168. package/dist/common/color.d.mts +0 -3
  169. package/dist/common/color.d.ts +0 -3
  170. package/dist/common/color.js +0 -4
  171. package/dist/common/color.js.map +0 -1
  172. package/dist/common/color.mjs +0 -3
  173. package/dist/common/color.mjs.map +0 -1
  174. package/dist/common/font.d.mts +0 -5
  175. package/dist/common/font.d.ts +0 -5
  176. package/dist/common/font.js +0 -4
  177. package/dist/common/font.js.map +0 -1
  178. package/dist/common/font.mjs +0 -3
  179. package/dist/common/font.mjs.map +0 -1
  180. package/dist/common/horizontal-alignment.d.mts +0 -6
  181. package/dist/common/horizontal-alignment.d.ts +0 -6
  182. package/dist/common/horizontal-alignment.js +0 -4
  183. package/dist/common/horizontal-alignment.js.map +0 -1
  184. package/dist/common/horizontal-alignment.mjs +0 -3
  185. package/dist/common/horizontal-alignment.mjs.map +0 -1
  186. package/dist/common/refresh.d.mts +0 -23
  187. package/dist/common/refresh.d.ts +0 -23
  188. package/dist/common/refresh.js +0 -4
  189. package/dist/common/refresh.js.map +0 -1
  190. package/dist/common/refresh.mjs +0 -3
  191. package/dist/common/refresh.mjs.map +0 -1
  192. package/dist/common/spacing.d.mts +0 -6
  193. package/dist/common/spacing.d.ts +0 -6
  194. package/dist/common/spacing.js +0 -4
  195. package/dist/common/spacing.js.map +0 -1
  196. package/dist/common/spacing.mjs +0 -3
  197. package/dist/common/spacing.mjs.map +0 -1
  198. package/dist/common/target-element.d.mts +0 -16
  199. package/dist/common/target-element.d.ts +0 -16
  200. package/dist/common/target-element.js +0 -4
  201. package/dist/common/target-element.js.map +0 -1
  202. package/dist/common/target-element.mjs +0 -3
  203. package/dist/common/target-element.mjs.map +0 -1
  204. package/dist/common/target-width.d.mts +0 -9
  205. package/dist/common/target-width.d.ts +0 -9
  206. package/dist/common/target-width.js +0 -4
  207. package/dist/common/target-width.js.map +0 -1
  208. package/dist/common/target-width.mjs +0 -3
  209. package/dist/common/target-width.mjs.map +0 -1
  210. package/dist/common/vertical-alignment.d.mts +0 -6
  211. package/dist/common/vertical-alignment.d.ts +0 -6
  212. package/dist/common/vertical-alignment.js +0 -4
  213. package/dist/common/vertical-alignment.js.map +0 -1
  214. package/dist/common/vertical-alignment.mjs +0 -3
  215. package/dist/common/vertical-alignment.mjs.map +0 -1
  216. package/dist/containers/action-set.d.mts +0 -31
  217. package/dist/containers/action-set.d.ts +0 -31
  218. package/dist/containers/action-set.js +0 -28
  219. package/dist/containers/action-set.js.map +0 -1
  220. package/dist/containers/action-set.mjs +0 -26
  221. package/dist/containers/action-set.mjs.map +0 -1
  222. package/dist/containers/base.d.mts +0 -31
  223. package/dist/containers/base.d.ts +0 -31
  224. package/dist/containers/base.js +0 -68
  225. package/dist/containers/base.js.map +0 -1
  226. package/dist/containers/base.mjs +0 -66
  227. package/dist/containers/base.mjs.map +0 -1
  228. package/dist/containers/carousel.d.mts +0 -31
  229. package/dist/containers/carousel.d.ts +0 -31
  230. package/dist/containers/carousel.js +0 -158
  231. package/dist/containers/carousel.js.map +0 -1
  232. package/dist/containers/carousel.mjs +0 -155
  233. package/dist/containers/carousel.mjs.map +0 -1
  234. package/dist/containers/column-set.d.mts +0 -31
  235. package/dist/containers/column-set.d.ts +0 -31
  236. package/dist/containers/column-set.js +0 -44
  237. package/dist/containers/column-set.js.map +0 -1
  238. package/dist/containers/column-set.mjs +0 -42
  239. package/dist/containers/column-set.mjs.map +0 -1
  240. package/dist/containers/column.d.mts +0 -31
  241. package/dist/containers/column.d.ts +0 -31
  242. package/dist/containers/column.js +0 -60
  243. package/dist/containers/column.js.map +0 -1
  244. package/dist/containers/column.mjs +0 -58
  245. package/dist/containers/column.mjs.map +0 -1
  246. package/dist/containers/container.d.mts +0 -31
  247. package/dist/containers/container.d.ts +0 -31
  248. package/dist/containers/container.js +0 -52
  249. package/dist/containers/container.js.map +0 -1
  250. package/dist/containers/container.mjs +0 -50
  251. package/dist/containers/container.mjs.map +0 -1
  252. package/dist/containers/fact-set.d.mts +0 -31
  253. package/dist/containers/fact-set.d.ts +0 -31
  254. package/dist/containers/fact-set.js +0 -43
  255. package/dist/containers/fact-set.js.map +0 -1
  256. package/dist/containers/fact-set.mjs +0 -40
  257. package/dist/containers/fact-set.mjs.map +0 -1
  258. package/dist/containers/image-set.d.mts +0 -31
  259. package/dist/containers/image-set.d.ts +0 -31
  260. package/dist/containers/image-set.js +0 -46
  261. package/dist/containers/image-set.js.map +0 -1
  262. package/dist/containers/image-set.mjs +0 -44
  263. package/dist/containers/image-set.mjs.map +0 -1
  264. package/dist/containers/index.d.mts +0 -31
  265. package/dist/containers/index.d.ts +0 -31
  266. package/dist/containers/index.js +0 -56
  267. package/dist/containers/index.js.map +0 -1
  268. package/dist/containers/index.mjs +0 -9
  269. package/dist/containers/index.mjs.map +0 -1
  270. package/dist/element.d.mts +0 -31
  271. package/dist/element.d.ts +0 -31
  272. package/dist/element.js +0 -4
  273. package/dist/element.js.map +0 -1
  274. package/dist/element.mjs +0 -3
  275. package/dist/element.mjs.map +0 -1
  276. package/dist/inputs/base.d.mts +0 -31
  277. package/dist/inputs/base.d.ts +0 -31
  278. package/dist/inputs/base.js +0 -63
  279. package/dist/inputs/base.js.map +0 -1
  280. package/dist/inputs/base.mjs +0 -61
  281. package/dist/inputs/base.mjs.map +0 -1
  282. package/dist/inputs/choice-set.d.mts +0 -31
  283. package/dist/inputs/choice-set.d.ts +0 -31
  284. package/dist/inputs/choice-set.js +0 -121
  285. package/dist/inputs/choice-set.js.map +0 -1
  286. package/dist/inputs/choice-set.mjs +0 -117
  287. package/dist/inputs/choice-set.mjs.map +0 -1
  288. package/dist/inputs/date.d.mts +0 -31
  289. package/dist/inputs/date.d.ts +0 -31
  290. package/dist/inputs/date.js +0 -52
  291. package/dist/inputs/date.js.map +0 -1
  292. package/dist/inputs/date.mjs +0 -50
  293. package/dist/inputs/date.mjs.map +0 -1
  294. package/dist/inputs/index.d.mts +0 -31
  295. package/dist/inputs/index.d.ts +0 -31
  296. package/dist/inputs/index.js +0 -49
  297. package/dist/inputs/index.js.map +0 -1
  298. package/dist/inputs/index.mjs +0 -8
  299. package/dist/inputs/index.mjs.map +0 -1
  300. package/dist/inputs/number.d.mts +0 -31
  301. package/dist/inputs/number.d.ts +0 -31
  302. package/dist/inputs/number.js +0 -52
  303. package/dist/inputs/number.js.map +0 -1
  304. package/dist/inputs/number.mjs +0 -50
  305. package/dist/inputs/number.mjs.map +0 -1
  306. package/dist/inputs/text.d.mts +0 -31
  307. package/dist/inputs/text.d.ts +0 -31
  308. package/dist/inputs/text.js +0 -76
  309. package/dist/inputs/text.js.map +0 -1
  310. package/dist/inputs/text.mjs +0 -74
  311. package/dist/inputs/text.mjs.map +0 -1
  312. package/dist/inputs/time.d.mts +0 -31
  313. package/dist/inputs/time.d.ts +0 -31
  314. package/dist/inputs/time.js +0 -52
  315. package/dist/inputs/time.js.map +0 -1
  316. package/dist/inputs/time.mjs +0 -50
  317. package/dist/inputs/time.mjs.map +0 -1
  318. package/dist/inputs/toggle.d.mts +0 -31
  319. package/dist/inputs/toggle.d.ts +0 -31
  320. package/dist/inputs/toggle.js +0 -57
  321. package/dist/inputs/toggle.js.map +0 -1
  322. package/dist/inputs/toggle.mjs +0 -55
  323. package/dist/inputs/toggle.mjs.map +0 -1
  324. package/dist/layouts/area-grid.d.mts +0 -133
  325. package/dist/layouts/area-grid.d.ts +0 -133
  326. package/dist/layouts/area-grid.js +0 -113
  327. package/dist/layouts/area-grid.js.map +0 -1
  328. package/dist/layouts/area-grid.mjs +0 -110
  329. package/dist/layouts/area-grid.mjs.map +0 -1
  330. package/dist/layouts/flow.d.mts +0 -119
  331. package/dist/layouts/flow.d.ts +0 -119
  332. package/dist/layouts/flow.js +0 -96
  333. package/dist/layouts/flow.js.map +0 -1
  334. package/dist/layouts/flow.mjs +0 -94
  335. package/dist/layouts/flow.mjs.map +0 -1
  336. package/dist/layouts/index.d.mts +0 -14
  337. package/dist/layouts/index.d.ts +0 -14
  338. package/dist/layouts/index.js +0 -28
  339. package/dist/layouts/index.js.map +0 -1
  340. package/dist/layouts/index.mjs +0 -5
  341. package/dist/layouts/index.mjs.map +0 -1
  342. package/dist/layouts/stack.d.mts +0 -28
  343. package/dist/layouts/stack.d.ts +0 -28
  344. package/dist/layouts/stack.js +0 -24
  345. package/dist/layouts/stack.js.map +0 -1
  346. package/dist/layouts/stack.mjs +0 -22
  347. package/dist/layouts/stack.mjs.map +0 -1
  348. package/dist/medias/background-image.d.mts +0 -56
  349. package/dist/medias/background-image.d.ts +0 -56
  350. package/dist/medias/background-image.js +0 -49
  351. package/dist/medias/background-image.js.map +0 -1
  352. package/dist/medias/background-image.mjs +0 -47
  353. package/dist/medias/background-image.mjs.map +0 -1
  354. package/dist/medias/badge.d.mts +0 -31
  355. package/dist/medias/badge.d.ts +0 -31
  356. package/dist/medias/badge.js +0 -84
  357. package/dist/medias/badge.js.map +0 -1
  358. package/dist/medias/badge.mjs +0 -82
  359. package/dist/medias/badge.mjs.map +0 -1
  360. package/dist/medias/code-block.d.mts +0 -31
  361. package/dist/medias/code-block.d.ts +0 -31
  362. package/dist/medias/code-block.js +0 -43
  363. package/dist/medias/code-block.js.map +0 -1
  364. package/dist/medias/code-block.mjs +0 -41
  365. package/dist/medias/code-block.mjs.map +0 -1
  366. package/dist/medias/icon.d.mts +0 -31
  367. package/dist/medias/icon.d.ts +0 -31
  368. package/dist/medias/icon.js +0 -56
  369. package/dist/medias/icon.js.map +0 -1
  370. package/dist/medias/icon.mjs +0 -54
  371. package/dist/medias/icon.mjs.map +0 -1
  372. package/dist/medias/image.d.mts +0 -31
  373. package/dist/medias/image.d.ts +0 -31
  374. package/dist/medias/image.js +0 -80
  375. package/dist/medias/image.js.map +0 -1
  376. package/dist/medias/image.mjs +0 -78
  377. package/dist/medias/image.mjs.map +0 -1
  378. package/dist/medias/index.d.mts +0 -31
  379. package/dist/medias/index.d.ts +0 -31
  380. package/dist/medias/index.js +0 -84
  381. package/dist/medias/index.js.map +0 -1
  382. package/dist/medias/index.mjs +0 -13
  383. package/dist/medias/index.mjs.map +0 -1
  384. package/dist/medias/media.d.mts +0 -31
  385. package/dist/medias/media.d.ts +0 -31
  386. package/dist/medias/media.js +0 -91
  387. package/dist/medias/media.js.map +0 -1
  388. package/dist/medias/media.mjs +0 -87
  389. package/dist/medias/media.mjs.map +0 -1
  390. package/dist/medias/progress-bar.d.mts +0 -31
  391. package/dist/medias/progress-bar.d.ts +0 -31
  392. package/dist/medias/progress-bar.js +0 -43
  393. package/dist/medias/progress-bar.js.map +0 -1
  394. package/dist/medias/progress-bar.mjs +0 -41
  395. package/dist/medias/progress-bar.mjs.map +0 -1
  396. package/dist/medias/progress-ring.d.mts +0 -31
  397. package/dist/medias/progress-ring.d.ts +0 -31
  398. package/dist/medias/progress-ring.js +0 -46
  399. package/dist/medias/progress-ring.js.map +0 -1
  400. package/dist/medias/progress-ring.mjs +0 -44
  401. package/dist/medias/progress-ring.mjs.map +0 -1
  402. package/dist/medias/rich-text-block.d.mts +0 -31
  403. package/dist/medias/rich-text-block.d.ts +0 -31
  404. package/dist/medias/rich-text-block.js +0 -33
  405. package/dist/medias/rich-text-block.js.map +0 -1
  406. package/dist/medias/rich-text-block.mjs +0 -31
  407. package/dist/medias/rich-text-block.mjs.map +0 -1
  408. package/dist/medias/text-block.d.mts +0 -31
  409. package/dist/medias/text-block.d.ts +0 -31
  410. package/dist/medias/text-block.js +0 -95
  411. package/dist/medias/text-block.js.map +0 -1
  412. package/dist/medias/text-block.mjs +0 -93
  413. package/dist/medias/text-block.mjs.map +0 -1
  414. package/dist/medias/text-run.d.mts +0 -31
  415. package/dist/medias/text-run.d.ts +0 -31
  416. package/dist/medias/text-run.js +0 -108
  417. package/dist/medias/text-run.js.map +0 -1
  418. package/dist/medias/text-run.mjs +0 -106
  419. package/dist/medias/text-run.mjs.map +0 -1
@@ -1,78 +0,0 @@
1
- import { Element } from '../base';
2
-
3
- class Image extends Element {
4
- type;
5
- /**
6
- * The URL to the image. Supports data URI in version 1.2+
7
- */
8
- url;
9
- /**
10
- * Alternate text describing the image.
11
- */
12
- altText;
13
- /**
14
- * Controls if the image can be expanded to full screen.
15
- */
16
- allowExpand;
17
- /**
18
- * Applies a background to a transparent image. This property will respect the image style.
19
- */
20
- backgroundColor;
21
- /**
22
- * An Action that will be invoked when the Image is tapped or selected. Action.ShowCard is not supported.
23
- */
24
- selectAction;
25
- /**
26
- * Controls the approximate size of the image. The physical dimensions will vary per host.
27
- */
28
- size;
29
- /**
30
- * Controls how this Image is displayed.
31
- */
32
- style;
33
- /**
34
- * The desired on-screen width of the image, ending in ‘px’. E.g., 50px. This overrides the size property.
35
- */
36
- width;
37
- constructor(url, options = {}) {
38
- super();
39
- this.type = "Image";
40
- this.url = url;
41
- Object.assign(this, options);
42
- }
43
- static from(options) {
44
- return new Image(options.url, options);
45
- }
46
- withAltText(value) {
47
- this.altText = value;
48
- return this;
49
- }
50
- withAllowExpand(value = true) {
51
- this.allowExpand = value;
52
- return this;
53
- }
54
- withBackgroundColor(value) {
55
- this.backgroundColor = value;
56
- return this;
57
- }
58
- withSelectAction(value) {
59
- this.selectAction = value;
60
- return this;
61
- }
62
- withSize(value) {
63
- this.size = value;
64
- return this;
65
- }
66
- withStyle(value) {
67
- this.style = value;
68
- return this;
69
- }
70
- withWidth(value) {
71
- this.width = value;
72
- return this;
73
- }
74
- }
75
-
76
- export { Image };
77
- //# sourceMappingURL=image.mjs.map
78
- //# sourceMappingURL=image.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/medias/image.ts"],"names":[],"mappings":";;AAyDO,MAAM,cAAc,OAA0B,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,WAAA;AAAA;AAAA;AAAA;AAAA,EAKA,eAAA;AAAA;AAAA;AAAA;AAAA,EAKA,YAAA;AAAA;AAAA;AAAA;AAAA,EAKA,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA,EAEA,WAAY,CAAA,GAAA,EAAa,OAAwB,GAAA,EAAI,EAAA;AACnD,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,OAAA;AACZ,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA+B,EAAA;AACzC,IAAA,OAAO,IAAI,KAAA,CAAM,OAAQ,CAAA,GAAA,EAAK,OAAO,CAAA;AAAA;AACvC,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,eAAA,CAAgB,QAAQ,IAAM,EAAA;AAC5B,IAAA,IAAA,CAAK,WAAc,GAAA,KAAA;AACnB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,oBAAoB,KAAe,EAAA;AACjC,IAAA,IAAA,CAAK,eAAkB,GAAA,KAAA;AACvB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,iBAAiB,KAAqB,EAAA;AACpC,IAAA,IAAA,CAAK,YAAe,GAAA,KAAA;AACpB,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,SAAS,KAAkB,EAAA;AACzB,IAAA,IAAA,CAAK,IAAO,GAAA,KAAA;AACZ,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAA6B,EAAA;AACrC,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AAEX","file":"image.mjs","sourcesContent":["import { SelectAction } from '../actions';\nimport { IElement, Element } from '../base';\n\nexport type ImageSize = 'auto' | 'stretch' | 'small' | 'medium' | 'large';\n\n/**\n * Displays an image. Acceptable formats are PNG, JPEG, and GIF\n */\nexport interface IImage extends IElement {\n type: 'Image';\n\n /**\n * The URL to the image. Supports data URI in version 1.2+\n */\n url: string;\n\n /**\n * Alternate text describing the image.\n */\n altText?: string;\n\n /**\n * Controls if the image can be expanded to full screen.\n */\n allowExpand?: boolean;\n\n /**\n * Applies a background to a transparent image. This property will respect the image style.\n */\n backgroundColor?: string;\n\n /**\n * An Action that will be invoked when the Image is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Controls the approximate size of the image. The physical dimensions will vary per host.\n */\n size?: ImageSize;\n\n /**\n * Controls how this Image is displayed.\n */\n style?: 'default' | 'person';\n\n /**\n * The desired on-screen width of the image, ending in ‘px’. E.g., 50px. This overrides the size property.\n */\n width?: string;\n}\n\nexport type ImageOptions = Omit<IImage, 'type' | 'url'>;\n\n/**\n * Displays an image. Acceptable formats are PNG, JPEG, and GIF\n */\nexport class Image extends Element implements IImage {\n type: 'Image';\n\n /**\n * The URL to the image. Supports data URI in version 1.2+\n */\n url: string;\n\n /**\n * Alternate text describing the image.\n */\n altText?: string;\n\n /**\n * Controls if the image can be expanded to full screen.\n */\n allowExpand?: boolean;\n\n /**\n * Applies a background to a transparent image. This property will respect the image style.\n */\n backgroundColor?: string;\n\n /**\n * An Action that will be invoked when the Image is tapped or selected. Action.ShowCard is not supported.\n */\n selectAction?: SelectAction;\n\n /**\n * Controls the approximate size of the image. The physical dimensions will vary per host.\n */\n size?: ImageSize;\n\n /**\n * Controls how this Image is displayed.\n */\n style?: 'default' | 'person';\n\n /**\n * The desired on-screen width of the image, ending in ‘px’. E.g., 50px. This overrides the size property.\n */\n width?: string;\n\n constructor(url: string, options: ImageOptions = {}) {\n super();\n this.type = 'Image';\n this.url = url;\n Object.assign(this, options);\n }\n\n static from(options: Omit<IImage, 'type'>) {\n return new Image(options.url, options);\n }\n\n withAltText(value: string) {\n this.altText = value;\n return this;\n }\n\n withAllowExpand(value = true) {\n this.allowExpand = value;\n return this;\n }\n\n withBackgroundColor(value: string) {\n this.backgroundColor = value;\n return this;\n }\n\n withSelectAction(value: SelectAction) {\n this.selectAction = value;\n return this;\n }\n\n withSize(value: ImageSize) {\n this.size = value;\n return this;\n }\n\n withStyle(value: 'default' | 'person') {\n this.style = value;\n return this;\n }\n\n withWidth(value: string) {\n this.width = value;\n return this;\n }\n}\n"]}
@@ -1,31 +0,0 @@
1
- export { p as Badge, B as BadgeAppearance, o as BadgeOptions, m as BadgeStyle, G as CaptionSource, t as CodeBlock, s as CodeBlockOptions, q as CodeLanguage, n as IBadge, F as ICaptionSource, r as ICodeBlock, i as IIcon, v as IImage, y as IMedia, D as IMediaSource, H as IProgressBar, K as IProgressRing, S as IRichTextBlock, W as ITextBlock, Q as ITextRun, k as Icon, l as IconName, j as IconOptions, x as Image, w as ImageOptions, u as ImageSize, z as Media, Z as MediaElement, M as MediaOptions, E as MediaSource, J as ProgressBar, P as ProgressBarOptions, O as ProgressRing, N as ProgressRingOptions, V as RichTextBlock, U as RichTextBlockOptions, Y as TextBlock, X as TextBlockOptions, R as TextRun, T as TextRunOptions } from '../charts/donut.mjs';
2
- export { BackgroundImage, BackgroundImageOptions, IBackgroundImage } from './background-image.mjs';
3
- import '../actions/execute.mjs';
4
- import '../common/associated-inputs.mjs';
5
- import '../actions/base.mjs';
6
- import '../actions/open-url.mjs';
7
- import '../common/vertical-alignment.mjs';
8
- import '../common/refresh.mjs';
9
- import '../common/auth/auth.mjs';
10
- import '../common/auth/auth-card-button.mjs';
11
- import '../common/auth/token-exchange-resource.mjs';
12
- import '../common/horizontal-alignment.mjs';
13
- import '../common/spacing.mjs';
14
- import '../common/target-width.mjs';
15
- import '../charts/color.mjs';
16
- import '../layouts/index.mjs';
17
- import '../layouts/area-grid.mjs';
18
- import '../layouts/flow.mjs';
19
- import '../layouts/stack.mjs';
20
- import '../common/color.mjs';
21
- import '../common/font.mjs';
22
- import '../actions/submit/submit.mjs';
23
- import '../actions/submit/im-back.mjs';
24
- import '../actions/submit/invoke.mjs';
25
- import '../actions/submit/message-back.mjs';
26
- import '../actions/submit/sign-in.mjs';
27
- import '../actions/submit/task-fetch.mjs';
28
- import '../actions/submit/collab-stage.mjs';
29
- import '../common/tab-info.mjs';
30
- import '../actions/toggle-visibility.mjs';
31
- import '../common/target-element.mjs';
@@ -1,31 +0,0 @@
1
- export { p as Badge, B as BadgeAppearance, o as BadgeOptions, m as BadgeStyle, G as CaptionSource, t as CodeBlock, s as CodeBlockOptions, q as CodeLanguage, n as IBadge, F as ICaptionSource, r as ICodeBlock, i as IIcon, v as IImage, y as IMedia, D as IMediaSource, H as IProgressBar, K as IProgressRing, S as IRichTextBlock, W as ITextBlock, Q as ITextRun, k as Icon, l as IconName, j as IconOptions, x as Image, w as ImageOptions, u as ImageSize, z as Media, Z as MediaElement, M as MediaOptions, E as MediaSource, J as ProgressBar, P as ProgressBarOptions, O as ProgressRing, N as ProgressRingOptions, V as RichTextBlock, U as RichTextBlockOptions, Y as TextBlock, X as TextBlockOptions, R as TextRun, T as TextRunOptions } from '../charts/donut.js';
2
- export { BackgroundImage, BackgroundImageOptions, IBackgroundImage } from './background-image.js';
3
- import '../actions/execute.js';
4
- import '../common/associated-inputs.js';
5
- import '../actions/base.js';
6
- import '../actions/open-url.js';
7
- import '../common/vertical-alignment.js';
8
- import '../common/refresh.js';
9
- import '../common/auth/auth.js';
10
- import '../common/auth/auth-card-button.js';
11
- import '../common/auth/token-exchange-resource.js';
12
- import '../common/horizontal-alignment.js';
13
- import '../common/spacing.js';
14
- import '../common/target-width.js';
15
- import '../charts/color.js';
16
- import '../layouts/index.js';
17
- import '../layouts/area-grid.js';
18
- import '../layouts/flow.js';
19
- import '../layouts/stack.js';
20
- import '../common/color.js';
21
- import '../common/font.js';
22
- import '../actions/submit/submit.js';
23
- import '../actions/submit/im-back.js';
24
- import '../actions/submit/invoke.js';
25
- import '../actions/submit/message-back.js';
26
- import '../actions/submit/sign-in.js';
27
- import '../actions/submit/task-fetch.js';
28
- import '../actions/submit/collab-stage.js';
29
- import '../common/tab-info.js';
30
- import '../actions/toggle-visibility.js';
31
- import '../common/target-element.js';
@@ -1,84 +0,0 @@
1
- 'use strict';
2
-
3
- var backgroundImage = require('./background-image');
4
- var textBlock = require('./text-block');
5
- var image = require('./image');
6
- var media = require('./media');
7
- var richTextBlock = require('./rich-text-block');
8
- var textRun = require('./text-run');
9
- var codeBlock = require('./code-block');
10
- var icon = require('./icon');
11
- var badge = require('./badge');
12
- var progressBar = require('./progress-bar');
13
- var progressRing = require('./progress-ring');
14
-
15
-
16
-
17
- Object.keys(backgroundImage).forEach(function (k) {
18
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
- enumerable: true,
20
- get: function () { return backgroundImage[k]; }
21
- });
22
- });
23
- Object.keys(textBlock).forEach(function (k) {
24
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
25
- enumerable: true,
26
- get: function () { return textBlock[k]; }
27
- });
28
- });
29
- Object.keys(image).forEach(function (k) {
30
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
31
- enumerable: true,
32
- get: function () { return image[k]; }
33
- });
34
- });
35
- Object.keys(media).forEach(function (k) {
36
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
37
- enumerable: true,
38
- get: function () { return media[k]; }
39
- });
40
- });
41
- Object.keys(richTextBlock).forEach(function (k) {
42
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
43
- enumerable: true,
44
- get: function () { return richTextBlock[k]; }
45
- });
46
- });
47
- Object.keys(textRun).forEach(function (k) {
48
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
49
- enumerable: true,
50
- get: function () { return textRun[k]; }
51
- });
52
- });
53
- Object.keys(codeBlock).forEach(function (k) {
54
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
55
- enumerable: true,
56
- get: function () { return codeBlock[k]; }
57
- });
58
- });
59
- Object.keys(icon).forEach(function (k) {
60
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
61
- enumerable: true,
62
- get: function () { return icon[k]; }
63
- });
64
- });
65
- Object.keys(badge).forEach(function (k) {
66
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
67
- enumerable: true,
68
- get: function () { return badge[k]; }
69
- });
70
- });
71
- Object.keys(progressBar).forEach(function (k) {
72
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
73
- enumerable: true,
74
- get: function () { return progressBar[k]; }
75
- });
76
- });
77
- Object.keys(progressRing).forEach(function (k) {
78
- if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
79
- enumerable: true,
80
- get: function () { return progressRing[k]; }
81
- });
82
- });
83
- //# sourceMappingURL=index.js.map
84
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
@@ -1,13 +0,0 @@
1
- export * from './background-image';
2
- export * from './text-block';
3
- export * from './image';
4
- export * from './media';
5
- export * from './rich-text-block';
6
- export * from './text-run';
7
- export * from './code-block';
8
- export * from './icon';
9
- export * from './badge';
10
- export * from './progress-bar';
11
- export * from './progress-ring';
12
- //# sourceMappingURL=index.mjs.map
13
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs","sourcesContent":[]}
@@ -1,31 +0,0 @@
1
- export { G as CaptionSource, F as ICaptionSource, y as IMedia, D as IMediaSource, z as Media, M as MediaOptions, E as MediaSource } from '../charts/donut.mjs';
2
- import '../actions/execute.mjs';
3
- import '../common/associated-inputs.mjs';
4
- import '../actions/base.mjs';
5
- import '../actions/open-url.mjs';
6
- import '../common/vertical-alignment.mjs';
7
- import '../common/refresh.mjs';
8
- import '../common/auth/auth.mjs';
9
- import '../common/auth/auth-card-button.mjs';
10
- import '../common/auth/token-exchange-resource.mjs';
11
- import '../common/horizontal-alignment.mjs';
12
- import '../common/spacing.mjs';
13
- import '../common/target-width.mjs';
14
- import '../charts/color.mjs';
15
- import '../layouts/index.mjs';
16
- import '../layouts/area-grid.mjs';
17
- import '../layouts/flow.mjs';
18
- import '../layouts/stack.mjs';
19
- import './background-image.mjs';
20
- import '../common/color.mjs';
21
- import '../common/font.mjs';
22
- import '../actions/submit/submit.mjs';
23
- import '../actions/submit/im-back.mjs';
24
- import '../actions/submit/invoke.mjs';
25
- import '../actions/submit/message-back.mjs';
26
- import '../actions/submit/sign-in.mjs';
27
- import '../actions/submit/task-fetch.mjs';
28
- import '../actions/submit/collab-stage.mjs';
29
- import '../common/tab-info.mjs';
30
- import '../actions/toggle-visibility.mjs';
31
- import '../common/target-element.mjs';
@@ -1,31 +0,0 @@
1
- export { G as CaptionSource, F as ICaptionSource, y as IMedia, D as IMediaSource, z as Media, M as MediaOptions, E as MediaSource } from '../charts/donut.js';
2
- import '../actions/execute.js';
3
- import '../common/associated-inputs.js';
4
- import '../actions/base.js';
5
- import '../actions/open-url.js';
6
- import '../common/vertical-alignment.js';
7
- import '../common/refresh.js';
8
- import '../common/auth/auth.js';
9
- import '../common/auth/auth-card-button.js';
10
- import '../common/auth/token-exchange-resource.js';
11
- import '../common/horizontal-alignment.js';
12
- import '../common/spacing.js';
13
- import '../common/target-width.js';
14
- import '../charts/color.js';
15
- import '../layouts/index.js';
16
- import '../layouts/area-grid.js';
17
- import '../layouts/flow.js';
18
- import '../layouts/stack.js';
19
- import './background-image.js';
20
- import '../common/color.js';
21
- import '../common/font.js';
22
- import '../actions/submit/submit.js';
23
- import '../actions/submit/im-back.js';
24
- import '../actions/submit/invoke.js';
25
- import '../actions/submit/message-back.js';
26
- import '../actions/submit/sign-in.js';
27
- import '../actions/submit/task-fetch.js';
28
- import '../actions/submit/collab-stage.js';
29
- import '../common/tab-info.js';
30
- import '../actions/toggle-visibility.js';
31
- import '../common/target-element.js';
@@ -1,91 +0,0 @@
1
- 'use strict';
2
-
3
- var base = require('../base');
4
-
5
- class Media extends base.Element {
6
- type;
7
- /**
8
- * Array of media sources to attempt to play.
9
- */
10
- sources;
11
- /**
12
- * URL of an image to display before playing. Supports data URI in version 1.2+. If poster is omitted, the Media element will either use a default poster (controlled by the host application) or will attempt to automatically pull the poster from the target video service when the source URL points to a video from a Web provider such as YouTube.
13
- */
14
- poster;
15
- /**
16
- * Alternate text describing the audio or video.
17
- */
18
- altText;
19
- /**
20
- * Array of captions sources for the media element to provide.
21
- */
22
- captionSources;
23
- constructor(...sources) {
24
- super();
25
- this.type = "Media";
26
- this.sources = sources;
27
- }
28
- static from(options) {
29
- const media = new Media(...options.sources);
30
- Object.assign(media, options);
31
- return media;
32
- }
33
- withPoster(value) {
34
- this.poster = value;
35
- return this;
36
- }
37
- withAltText(value) {
38
- this.altText = value;
39
- return this;
40
- }
41
- addSources(...value) {
42
- this.sources.push(...value);
43
- return this;
44
- }
45
- addCaptionSources(...value) {
46
- if (!this.captionSources) {
47
- this.captionSources = [];
48
- }
49
- this.captionSources.push(...value);
50
- return this;
51
- }
52
- }
53
- class MediaSource {
54
- /**
55
- * URL to media. Supports data URI in version 1.2+
56
- */
57
- url;
58
- /**
59
- * Mime type of associated media (e.g. "video/mp4"). For YouTube and other Web video URLs, mimeType can be omitted.
60
- */
61
- mimeType;
62
- constructor(url, mimeType) {
63
- this.url = url;
64
- this.mimeType = mimeType;
65
- }
66
- }
67
- class CaptionSource {
68
- /**
69
- * Label of this caption to show to the user.
70
- */
71
- label;
72
- /**
73
- * URL to captions.
74
- */
75
- url;
76
- /**
77
- * Mime type of associated caption file (e.g. "vtt"). For rendering in JavaScript, only "vtt" is supported, for rendering in UWP, "vtt" and "srt" are supported.
78
- */
79
- mimeType;
80
- constructor(label, url, mimeType) {
81
- this.label = label;
82
- this.url = url;
83
- this.mimeType = mimeType;
84
- }
85
- }
86
-
87
- exports.CaptionSource = CaptionSource;
88
- exports.Media = Media;
89
- exports.MediaSource = MediaSource;
90
- //# sourceMappingURL=media.js.map
91
- //# sourceMappingURL=media.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/medias/media.ts"],"names":["Element"],"mappings":";;;;AAkCO,MAAM,cAAcA,YAA0B,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA,EAEA,eAAe,OAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,OAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,OAAO,KAAK,OAA+B,EAAA;AACzC,IAAA,MAAM,KAAQ,GAAA,IAAI,KAAM,CAAA,GAAG,QAAQ,OAAO,CAAA;AAC1C,IAAO,MAAA,CAAA,MAAA,CAAO,OAAO,OAAO,CAAA;AAC5B,IAAO,OAAA,KAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAuB,EAAA;AACnC,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAI,IAAA,CAAC,KAAK,cAAgB,EAAA;AACxB,MAAA,IAAA,CAAK,iBAAiB,EAAC;AAAA;AAGzB,IAAK,IAAA,CAAA,cAAA,CAAe,IAAK,CAAA,GAAG,KAAK,CAAA;AACjC,IAAO,OAAA,IAAA;AAAA;AAEX;AAoBO,MAAM,WAAoC,CAAA;AAAA;AAAA;AAAA;AAAA,EAI/C,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAa,QAAmB,EAAA;AAC1C,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAA,IAAA,CAAK,QAAW,GAAA,QAAA;AAAA;AAEpB;AAyBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAe,EAAA,GAAA,EAAa,QAAkB,EAAA;AACxD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAA,IAAA,CAAK,QAAW,GAAA,QAAA;AAAA;AAEpB","file":"media.js","sourcesContent":["import { IElement, Element } from '../base';\n\n/**\n * Displays a media player for audio or video content.\n */\nexport interface IMedia extends IElement {\n type: 'Media';\n\n /**\n * Array of media sources to attempt to play.\n */\n sources: IMediaSource[];\n\n /**\n * URL of an image to display before playing. Supports data URI in version 1.2+. If poster is omitted, the Media element will either use a default poster (controlled by the host application) or will attempt to automatically pull the poster from the target video service when the source URL points to a video from a Web provider such as YouTube.\n */\n poster?: string;\n\n /**\n * Alternate text describing the audio or video.\n */\n altText?: string;\n\n /**\n * Array of captions sources for the media element to provide.\n */\n captionSources?: ICaptionSource[];\n}\n\nexport type MediaOptions = Omit<IMedia, 'type' | 'sources'>;\n\n/**\n * Displays a media player for audio or video content.\n */\nexport class Media extends Element implements IMedia {\n type: 'Media';\n\n /**\n * Array of media sources to attempt to play.\n */\n sources: IMediaSource[];\n\n /**\n * URL of an image to display before playing. Supports data URI in version 1.2+. If poster is omitted, the Media element will either use a default poster (controlled by the host application) or will attempt to automatically pull the poster from the target video service when the source URL points to a video from a Web provider such as YouTube.\n */\n poster?: string;\n\n /**\n * Alternate text describing the audio or video.\n */\n altText?: string;\n\n /**\n * Array of captions sources for the media element to provide.\n */\n captionSources?: ICaptionSource[];\n\n constructor(...sources: IMediaSource[]) {\n super();\n this.type = 'Media';\n this.sources = sources;\n }\n\n static from(options: Omit<IMedia, 'type'>) {\n const media = new Media(...options.sources);\n Object.assign(media, options);\n return media;\n }\n\n withPoster(value: string) {\n this.poster = value;\n return this;\n }\n\n withAltText(value: string) {\n this.altText = value;\n return this;\n }\n\n addSources(...value: IMediaSource[]) {\n this.sources.push(...value);\n return this;\n }\n\n addCaptionSources(...value: ICaptionSource[]) {\n if (!this.captionSources) {\n this.captionSources = [];\n }\n\n this.captionSources.push(...value);\n return this;\n }\n}\n\n/**\n * Defines a source for a Media element\n */\nexport interface IMediaSource {\n /**\n * URL to media. Supports data URI in version 1.2+\n */\n url: string;\n\n /**\n * Mime type of associated media (e.g. \"video/mp4\"). For YouTube and other Web video URLs, mimeType can be omitted.\n */\n mimeType?: string;\n}\n\n/**\n * Defines a source for a Media element\n */\nexport class MediaSource implements IMediaSource {\n /**\n * URL to media. Supports data URI in version 1.2+\n */\n url: string;\n\n /**\n * Mime type of associated media (e.g. \"video/mp4\"). For YouTube and other Web video URLs, mimeType can be omitted.\n */\n mimeType?: string;\n\n constructor(url: string, mimeType?: string) {\n this.url = url;\n this.mimeType = mimeType;\n }\n}\n\n/**\n * Defines a source for captions\n */\nexport interface ICaptionSource {\n /**\n * Label of this caption to show to the user.\n */\n label: string;\n\n /**\n * URL to captions.\n */\n url: string;\n\n /**\n * Mime type of associated caption file (e.g. \"vtt\"). For rendering in JavaScript, only \"vtt\" is supported, for rendering in UWP, \"vtt\" and \"srt\" are supported.\n */\n mimeType: string;\n}\n\n/**\n * Defines a source for captions\n */\nexport class CaptionSource implements ICaptionSource {\n /**\n * Label of this caption to show to the user.\n */\n label: string;\n\n /**\n * URL to captions.\n */\n url: string;\n\n /**\n * Mime type of associated caption file (e.g. \"vtt\"). For rendering in JavaScript, only \"vtt\" is supported, for rendering in UWP, \"vtt\" and \"srt\" are supported.\n */\n mimeType: string;\n\n constructor(label: string, url: string, mimeType: string) {\n this.label = label;\n this.url = url;\n this.mimeType = mimeType;\n }\n}\n"]}
@@ -1,87 +0,0 @@
1
- import { Element } from '../base';
2
-
3
- class Media extends Element {
4
- type;
5
- /**
6
- * Array of media sources to attempt to play.
7
- */
8
- sources;
9
- /**
10
- * URL of an image to display before playing. Supports data URI in version 1.2+. If poster is omitted, the Media element will either use a default poster (controlled by the host application) or will attempt to automatically pull the poster from the target video service when the source URL points to a video from a Web provider such as YouTube.
11
- */
12
- poster;
13
- /**
14
- * Alternate text describing the audio or video.
15
- */
16
- altText;
17
- /**
18
- * Array of captions sources for the media element to provide.
19
- */
20
- captionSources;
21
- constructor(...sources) {
22
- super();
23
- this.type = "Media";
24
- this.sources = sources;
25
- }
26
- static from(options) {
27
- const media = new Media(...options.sources);
28
- Object.assign(media, options);
29
- return media;
30
- }
31
- withPoster(value) {
32
- this.poster = value;
33
- return this;
34
- }
35
- withAltText(value) {
36
- this.altText = value;
37
- return this;
38
- }
39
- addSources(...value) {
40
- this.sources.push(...value);
41
- return this;
42
- }
43
- addCaptionSources(...value) {
44
- if (!this.captionSources) {
45
- this.captionSources = [];
46
- }
47
- this.captionSources.push(...value);
48
- return this;
49
- }
50
- }
51
- class MediaSource {
52
- /**
53
- * URL to media. Supports data URI in version 1.2+
54
- */
55
- url;
56
- /**
57
- * Mime type of associated media (e.g. "video/mp4"). For YouTube and other Web video URLs, mimeType can be omitted.
58
- */
59
- mimeType;
60
- constructor(url, mimeType) {
61
- this.url = url;
62
- this.mimeType = mimeType;
63
- }
64
- }
65
- class CaptionSource {
66
- /**
67
- * Label of this caption to show to the user.
68
- */
69
- label;
70
- /**
71
- * URL to captions.
72
- */
73
- url;
74
- /**
75
- * Mime type of associated caption file (e.g. "vtt"). For rendering in JavaScript, only "vtt" is supported, for rendering in UWP, "vtt" and "srt" are supported.
76
- */
77
- mimeType;
78
- constructor(label, url, mimeType) {
79
- this.label = label;
80
- this.url = url;
81
- this.mimeType = mimeType;
82
- }
83
- }
84
-
85
- export { CaptionSource, Media, MediaSource };
86
- //# sourceMappingURL=media.mjs.map
87
- //# sourceMappingURL=media.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/medias/media.ts"],"names":[],"mappings":";;AAkCO,MAAM,cAAc,OAA0B,CAAA;AAAA,EACnD,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,MAAA;AAAA;AAAA;AAAA;AAAA,EAKA,OAAA;AAAA;AAAA;AAAA;AAAA,EAKA,cAAA;AAAA,EAEA,eAAe,OAAyB,EAAA;AACtC,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,OAAA;AACZ,IAAA,IAAA,CAAK,OAAU,GAAA,OAAA;AAAA;AACjB,EAEA,OAAO,KAAK,OAA+B,EAAA;AACzC,IAAA,MAAM,KAAQ,GAAA,IAAI,KAAM,CAAA,GAAG,QAAQ,OAAO,CAAA;AAC1C,IAAO,MAAA,CAAA,MAAA,CAAO,OAAO,OAAO,CAAA;AAC5B,IAAO,OAAA,KAAA;AAAA;AACT,EAEA,WAAW,KAAe,EAAA;AACxB,IAAA,IAAA,CAAK,MAAS,GAAA,KAAA;AACd,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,YAAY,KAAe,EAAA;AACzB,IAAA,IAAA,CAAK,OAAU,GAAA,KAAA;AACf,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,cAAc,KAAuB,EAAA;AACnC,IAAK,IAAA,CAAA,OAAA,CAAQ,IAAK,CAAA,GAAG,KAAK,CAAA;AAC1B,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,qBAAqB,KAAyB,EAAA;AAC5C,IAAI,IAAA,CAAC,KAAK,cAAgB,EAAA;AACxB,MAAA,IAAA,CAAK,iBAAiB,EAAC;AAAA;AAGzB,IAAK,IAAA,CAAA,cAAA,CAAe,IAAK,CAAA,GAAG,KAAK,CAAA;AACjC,IAAO,OAAA,IAAA;AAAA;AAEX;AAoBO,MAAM,WAAoC,CAAA;AAAA;AAAA;AAAA;AAAA,EAI/C,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAa,QAAmB,EAAA;AAC1C,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAA,IAAA,CAAK,QAAW,GAAA,QAAA;AAAA;AAEpB;AAyBO,MAAM,aAAwC,CAAA;AAAA;AAAA;AAAA;AAAA,EAInD,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA;AAAA;AAAA;AAAA,EAKA,QAAA;AAAA,EAEA,WAAA,CAAY,KAAe,EAAA,GAAA,EAAa,QAAkB,EAAA;AACxD,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAA,IAAA,CAAK,GAAM,GAAA,GAAA;AACX,IAAA,IAAA,CAAK,QAAW,GAAA,QAAA;AAAA;AAEpB","file":"media.mjs","sourcesContent":["import { IElement, Element } from '../base';\n\n/**\n * Displays a media player for audio or video content.\n */\nexport interface IMedia extends IElement {\n type: 'Media';\n\n /**\n * Array of media sources to attempt to play.\n */\n sources: IMediaSource[];\n\n /**\n * URL of an image to display before playing. Supports data URI in version 1.2+. If poster is omitted, the Media element will either use a default poster (controlled by the host application) or will attempt to automatically pull the poster from the target video service when the source URL points to a video from a Web provider such as YouTube.\n */\n poster?: string;\n\n /**\n * Alternate text describing the audio or video.\n */\n altText?: string;\n\n /**\n * Array of captions sources for the media element to provide.\n */\n captionSources?: ICaptionSource[];\n}\n\nexport type MediaOptions = Omit<IMedia, 'type' | 'sources'>;\n\n/**\n * Displays a media player for audio or video content.\n */\nexport class Media extends Element implements IMedia {\n type: 'Media';\n\n /**\n * Array of media sources to attempt to play.\n */\n sources: IMediaSource[];\n\n /**\n * URL of an image to display before playing. Supports data URI in version 1.2+. If poster is omitted, the Media element will either use a default poster (controlled by the host application) or will attempt to automatically pull the poster from the target video service when the source URL points to a video from a Web provider such as YouTube.\n */\n poster?: string;\n\n /**\n * Alternate text describing the audio or video.\n */\n altText?: string;\n\n /**\n * Array of captions sources for the media element to provide.\n */\n captionSources?: ICaptionSource[];\n\n constructor(...sources: IMediaSource[]) {\n super();\n this.type = 'Media';\n this.sources = sources;\n }\n\n static from(options: Omit<IMedia, 'type'>) {\n const media = new Media(...options.sources);\n Object.assign(media, options);\n return media;\n }\n\n withPoster(value: string) {\n this.poster = value;\n return this;\n }\n\n withAltText(value: string) {\n this.altText = value;\n return this;\n }\n\n addSources(...value: IMediaSource[]) {\n this.sources.push(...value);\n return this;\n }\n\n addCaptionSources(...value: ICaptionSource[]) {\n if (!this.captionSources) {\n this.captionSources = [];\n }\n\n this.captionSources.push(...value);\n return this;\n }\n}\n\n/**\n * Defines a source for a Media element\n */\nexport interface IMediaSource {\n /**\n * URL to media. Supports data URI in version 1.2+\n */\n url: string;\n\n /**\n * Mime type of associated media (e.g. \"video/mp4\"). For YouTube and other Web video URLs, mimeType can be omitted.\n */\n mimeType?: string;\n}\n\n/**\n * Defines a source for a Media element\n */\nexport class MediaSource implements IMediaSource {\n /**\n * URL to media. Supports data URI in version 1.2+\n */\n url: string;\n\n /**\n * Mime type of associated media (e.g. \"video/mp4\"). For YouTube and other Web video URLs, mimeType can be omitted.\n */\n mimeType?: string;\n\n constructor(url: string, mimeType?: string) {\n this.url = url;\n this.mimeType = mimeType;\n }\n}\n\n/**\n * Defines a source for captions\n */\nexport interface ICaptionSource {\n /**\n * Label of this caption to show to the user.\n */\n label: string;\n\n /**\n * URL to captions.\n */\n url: string;\n\n /**\n * Mime type of associated caption file (e.g. \"vtt\"). For rendering in JavaScript, only \"vtt\" is supported, for rendering in UWP, \"vtt\" and \"srt\" are supported.\n */\n mimeType: string;\n}\n\n/**\n * Defines a source for captions\n */\nexport class CaptionSource implements ICaptionSource {\n /**\n * Label of this caption to show to the user.\n */\n label: string;\n\n /**\n * URL to captions.\n */\n url: string;\n\n /**\n * Mime type of associated caption file (e.g. \"vtt\"). For rendering in JavaScript, only \"vtt\" is supported, for rendering in UWP, \"vtt\" and \"srt\" are supported.\n */\n mimeType: string;\n\n constructor(label: string, url: string, mimeType: string) {\n this.label = label;\n this.url = url;\n this.mimeType = mimeType;\n }\n}\n"]}
@@ -1,31 +0,0 @@
1
- export { H as IProgressBar, J as ProgressBar, P as ProgressBarOptions } from '../charts/donut.mjs';
2
- import '../common/color.mjs';
3
- import '../actions/execute.mjs';
4
- import '../common/associated-inputs.mjs';
5
- import '../actions/base.mjs';
6
- import '../actions/open-url.mjs';
7
- import '../common/vertical-alignment.mjs';
8
- import '../common/refresh.mjs';
9
- import '../common/auth/auth.mjs';
10
- import '../common/auth/auth-card-button.mjs';
11
- import '../common/auth/token-exchange-resource.mjs';
12
- import '../common/horizontal-alignment.mjs';
13
- import '../common/spacing.mjs';
14
- import '../common/target-width.mjs';
15
- import '../charts/color.mjs';
16
- import '../layouts/index.mjs';
17
- import '../layouts/area-grid.mjs';
18
- import '../layouts/flow.mjs';
19
- import '../layouts/stack.mjs';
20
- import './background-image.mjs';
21
- import '../common/font.mjs';
22
- import '../actions/submit/submit.mjs';
23
- import '../actions/submit/im-back.mjs';
24
- import '../actions/submit/invoke.mjs';
25
- import '../actions/submit/message-back.mjs';
26
- import '../actions/submit/sign-in.mjs';
27
- import '../actions/submit/task-fetch.mjs';
28
- import '../actions/submit/collab-stage.mjs';
29
- import '../common/tab-info.mjs';
30
- import '../actions/toggle-visibility.mjs';
31
- import '../common/target-element.mjs';
@@ -1,31 +0,0 @@
1
- export { H as IProgressBar, J as ProgressBar, P as ProgressBarOptions } from '../charts/donut.js';
2
- import '../common/color.js';
3
- import '../actions/execute.js';
4
- import '../common/associated-inputs.js';
5
- import '../actions/base.js';
6
- import '../actions/open-url.js';
7
- import '../common/vertical-alignment.js';
8
- import '../common/refresh.js';
9
- import '../common/auth/auth.js';
10
- import '../common/auth/auth-card-button.js';
11
- import '../common/auth/token-exchange-resource.js';
12
- import '../common/horizontal-alignment.js';
13
- import '../common/spacing.js';
14
- import '../common/target-width.js';
15
- import '../charts/color.js';
16
- import '../layouts/index.js';
17
- import '../layouts/area-grid.js';
18
- import '../layouts/flow.js';
19
- import '../layouts/stack.js';
20
- import './background-image.js';
21
- import '../common/font.js';
22
- import '../actions/submit/submit.js';
23
- import '../actions/submit/im-back.js';
24
- import '../actions/submit/invoke.js';
25
- import '../actions/submit/message-back.js';
26
- import '../actions/submit/sign-in.js';
27
- import '../actions/submit/task-fetch.js';
28
- import '../actions/submit/collab-stage.js';
29
- import '../common/tab-info.js';
30
- import '../actions/toggle-visibility.js';
31
- import '../common/target-element.js';
@@ -1,43 +0,0 @@
1
- 'use strict';
2
-
3
- var base = require('../base');
4
-
5
- class ProgressBar extends base.Element {
6
- type;
7
- /**
8
- * @default `accent`
9
- */
10
- color;
11
- /**
12
- * percentage
13
- */
14
- value;
15
- /**
16
- * the max value
17
- */
18
- max;
19
- constructor(options = {}) {
20
- super();
21
- this.type = "ProgressBar";
22
- Object.assign(this, options);
23
- }
24
- static from(options) {
25
- return new ProgressBar(options);
26
- }
27
- withColor(value) {
28
- this.color = value;
29
- return this;
30
- }
31
- withValue(value) {
32
- this.value = value;
33
- return this;
34
- }
35
- withMax(value) {
36
- this.max = value;
37
- return this;
38
- }
39
- }
40
-
41
- exports.ProgressBar = ProgressBar;
42
- //# sourceMappingURL=progress-bar.js.map
43
- //# sourceMappingURL=progress-bar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/medias/progress-bar.ts"],"names":["Element"],"mappings":";;;;AA8BO,MAAM,oBAAoBA,YAAgC,CAAA;AAAA,EAC/D,IAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,KAAA;AAAA;AAAA;AAAA;AAAA,EAKA,GAAA;AAAA,EAEA,WAAA,CAAY,OAA8B,GAAA,EAAI,EAAA;AAC5C,IAAM,KAAA,EAAA;AACN,IAAA,IAAA,CAAK,IAAO,GAAA,aAAA;AACZ,IAAO,MAAA,CAAA,MAAA,CAAO,MAAM,OAAO,CAAA;AAAA;AAC7B,EAEA,OAAO,KAAK,OAA6B,EAAA;AACvC,IAAO,OAAA,IAAI,YAAY,OAAO,CAAA;AAAA;AAChC,EAEA,UAAU,KAAc,EAAA;AACtB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,UAAU,KAAe,EAAA;AACvB,IAAA,IAAA,CAAK,KAAQ,GAAA,KAAA;AACb,IAAO,OAAA,IAAA;AAAA;AACT,EAEA,QAAQ,KAAe,EAAA;AACrB,IAAA,IAAA,CAAK,GAAM,GAAA,KAAA;AACX,IAAO,OAAA,IAAA;AAAA;AAEX","file":"progress-bar.js","sourcesContent":["import { IElement, Element } from '../base';\nimport { Color } from '../common';\n\n/**\n * A progress bar element, to represent a value within a range.\n */\nexport interface IProgressBar extends IElement {\n type: 'ProgressBar';\n\n /**\n * @default `accent`\n */\n color?: Color;\n\n /**\n * percentage\n */\n value?: number;\n\n /**\n * the max value\n */\n max?: number;\n}\n\nexport type ProgressBarOptions = Omit<IProgressBar, 'type'>;\n\n/**\n * A progress bar element, to represent a value within a range.\n */\nexport class ProgressBar extends Element implements IProgressBar {\n type: 'ProgressBar';\n\n /**\n * @default `accent`\n */\n color?: Color;\n\n /**\n * percentage\n */\n value?: number;\n\n /**\n * the max value\n */\n max?: number;\n\n constructor(options: ProgressBarOptions = {}) {\n super();\n this.type = 'ProgressBar';\n Object.assign(this, options);\n }\n\n static from(options: ProgressBarOptions) {\n return new ProgressBar(options);\n }\n\n withColor(value: Color) {\n this.color = value;\n return this;\n }\n\n withValue(value: number) {\n this.value = value;\n return this;\n }\n\n withMax(value: number) {\n this.max = value;\n return this;\n }\n}\n"]}