@microsoft/sp-adaptive-card-extension-base 1.23.1 → 1.24.0-beta.2

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 (514) hide show
  1. package/dist/eeec822e-c28a-46b4-affc-7058e4c1aa80.manifest.json +137 -142
  2. package/dist/index-internal-beta.d.ts +2 -6
  3. package/dist/index-internal-public.d.ts +2 -6
  4. package/dist/index-internal.d.ts +193 -28
  5. package/dist/index.d.ts +2 -2
  6. package/dist/sp-adaptive-card-extension-base_default_be5d2a76104ab20a7df3.js +1 -0
  7. package/dist/sp-adaptive-card-extension-base_en-us_daf5e5154e82492eea26.js +1 -0
  8. package/dist/sp-adaptive-card-extension-base_qps-ploc_3f63afdd6f59d8592622.js +1 -0
  9. package/dist/sp-adaptive-card-extension-base_qps-ploca_0bc9525a6a1a759b7d4f.js +1 -0
  10. package/dist/tsdoc-metadata.json +1 -1
  11. package/lib-commonjs/AdaptiveCardExtensionContext.js +66 -99
  12. package/lib-commonjs/AdaptiveCardExtensionHost.js +52 -60
  13. package/lib-commonjs/AdaptiveCardExtensionLoader.js +90 -97
  14. package/lib-commonjs/BaseAdaptiveCardExtension.js +941 -1138
  15. package/lib-commonjs/ac-template/basicL1Template.js +19 -14
  16. package/lib-commonjs/ac-template/basicL1TemplateSelectAction.js +19 -14
  17. package/lib-commonjs/ac-template/common/Constants.js +13 -5
  18. package/lib-commonjs/ac-template/common/CustomElements.js +63 -51
  19. package/lib-commonjs/ac-template/imageL1Template.js +19 -14
  20. package/lib-commonjs/ac-template/imageL1TemplateSelectAction.js +19 -14
  21. package/lib-commonjs/ac-template/index.js +37 -15
  22. package/lib-commonjs/ac-template/primaryTextL1Template.js +22 -15
  23. package/lib-commonjs/ac-template/primaryTextL1TemplateSelectAction.js +22 -15
  24. package/lib-commonjs/ac-template/searchL1Template.js +21 -20
  25. package/lib-commonjs/ac-template/textInputL1Template.js +38 -39
  26. package/lib-commonjs/ac-template/util/actionButtonHelper.js +76 -78
  27. package/lib-commonjs/ac-template/util/getCardRenderParameters.js +109 -119
  28. package/lib-commonjs/actionShim/AdaptiveCardExtensionActionShim.js +86 -100
  29. package/lib-commonjs/actionShim/IActionShimProvider.js +5 -2
  30. package/lib-commonjs/actionShim/getOnBeforeActionArguments.js +30 -29
  31. package/lib-commonjs/caching/CacheManager.js +40 -35
  32. package/lib-commonjs/caching/IAdaptiveCardExtensionCacheObject.js +5 -2
  33. package/lib-commonjs/caching/ICacheSettings.js +5 -2
  34. package/lib-commonjs/caching/ICachedLoadParameters.js +11 -4
  35. package/lib-commonjs/caching/cache/ACEMySiteCacheManager.js +88 -90
  36. package/lib-commonjs/caching/cache/BaseAdaptiveCardExtensionCache.js +21 -24
  37. package/lib-commonjs/caching/cache/IAdaptiveCardExtensionCache.js +5 -2
  38. package/lib-commonjs/caching/cache/LocalStorageACECache.js +56 -64
  39. package/lib-commonjs/common/Flights.js +27 -16
  40. package/lib-commonjs/common/Killswitches.js +143 -150
  41. package/lib-commonjs/components/BarChartComponent.js +68 -72
  42. package/lib-commonjs/components/BaseComponent.js +15 -15
  43. package/lib-commonjs/components/CardBarComponent.js +15 -9
  44. package/lib-commonjs/components/CardButtonComponent.js +26 -23
  45. package/lib-commonjs/components/DataVisualizationComponent.js +30 -19
  46. package/lib-commonjs/components/ICardButtonBase.js +5 -2
  47. package/lib-commonjs/components/LineChartComponent.js +28 -22
  48. package/lib-commonjs/components/PieChartComponent.js +69 -44
  49. package/lib-commonjs/components/PoweredByComponent.js +15 -9
  50. package/lib-commonjs/components/PromptsSetComponent.js +15 -9
  51. package/lib-commonjs/components/SearchBoxComponent.js +15 -9
  52. package/lib-commonjs/components/SearchFooterComponent.js +15 -6
  53. package/lib-commonjs/components/TextComponent.js +15 -9
  54. package/lib-commonjs/components/TextInputComponent.js +15 -9
  55. package/lib-commonjs/index.js +201 -91
  56. package/lib-commonjs/interfaces/CardActionType.js +5 -2
  57. package/lib-commonjs/interfaces/IActionArguments.js +5 -2
  58. package/lib-commonjs/interfaces/IAdaptiveCardExtension.js +5 -2
  59. package/lib-commonjs/interfaces/IAdaptiveCardExtensionData.js +5 -2
  60. package/lib-commonjs/interfaces/IAdaptiveCardExtensionImage.js +12 -3
  61. package/lib-commonjs/interfaces/IAdaptiveCardExtensionLoadContext.js +5 -2
  62. package/lib-commonjs/interfaces/IAdaptiveCardExtensionPropertiesMetadata.js +5 -2
  63. package/lib-commonjs/interfaces/IAdaptiveCardRenderParameters.js +5 -2
  64. package/lib-commonjs/interfaces/IBaseCardParameters.js +10 -3
  65. package/lib-commonjs/interfaces/ICardButton.js +5 -2
  66. package/lib-commonjs/interfaces/ICardRenderParameters.js +5 -2
  67. package/lib-commonjs/interfaces/IFocusParameters.js +6 -4
  68. package/lib-commonjs/interfaces/IGetLocationActionTypes.js +5 -2
  69. package/lib-commonjs/interfaces/IHostContext.js +13 -3
  70. package/lib-commonjs/interfaces/ILocation.js +6 -4
  71. package/lib-commonjs/interfaces/INotificationTypes.js +5 -2
  72. package/lib-commonjs/interfaces/IOnBeforeActionArguments.js +5 -2
  73. package/lib-commonjs/interfaces/IQuickViewRenderParameters.js +5 -2
  74. package/lib-commonjs/interfaces/ISPFxAdaptiveCard.js +5 -2
  75. package/lib-commonjs/interfaces/ISelectMediaActionTypes.js +13 -10
  76. package/lib-commonjs/interfaces/ISelectionActionTemplateAdaptiveCard.js +5 -2
  77. package/lib-commonjs/interfaces/IShowLocationActionTypes.js +5 -2
  78. package/lib-commonjs/interfaces/InternalTypes.js +9 -3
  79. package/lib-commonjs/isolation/IsolatedAdaptiveCardExtensionService.js +396 -399
  80. package/lib-commonjs/isolation/RenderArgumentsUtils.js +99 -86
  81. package/lib-commonjs/isolation/interfaces/IBot.js +6 -4
  82. package/lib-commonjs/isolation/interfaces/IIsolatedAction.js +5 -2
  83. package/lib-commonjs/isolation/interfaces/IIsolatedListener.js +5 -2
  84. package/lib-commonjs/isolation/interfaces/IIsolatedServiceCallbackParameters.js +5 -2
  85. package/lib-commonjs/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +5 -2
  86. package/lib-commonjs/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +13 -3
  87. package/lib-commonjs/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +5 -2
  88. package/lib-commonjs/isolation/interfaces/IsolatedServiceMessageEvent.js +5 -2
  89. package/lib-commonjs/test-api/AdaptiveCardExtensionTestWrapper.js +95 -123
  90. package/lib-commonjs/test-api/MockAdaptiveCardExtensionManifestInstance.js +22 -11
  91. package/lib-commonjs/test-api/index.js +12 -5
  92. package/lib-commonjs/utilities/StringHelper.js +13 -10
  93. package/lib-commonjs/views/base/BaseView.js +46 -76
  94. package/lib-commonjs/views/card/BaseBasicCardView.js +37 -52
  95. package/lib-commonjs/views/card/BaseCardView.js +56 -81
  96. package/lib-commonjs/views/card/BaseComponentsCardView.js +41 -39
  97. package/lib-commonjs/views/card/BaseImageCardView.js +38 -54
  98. package/lib-commonjs/views/card/BasePrimaryTextCardView.js +37 -54
  99. package/lib-commonjs/views/card/BaseTemplateCardView.js +47 -67
  100. package/lib-commonjs/views/card/DefaultCardView.js +24 -29
  101. package/lib-commonjs/views/card/parameters/BaseParameters.js +5 -2
  102. package/lib-commonjs/views/card/parameters/CardViewParametersProcessors.js +26 -31
  103. package/lib-commonjs/views/card/parameters/DataVisualizationParameters.js +75 -76
  104. package/lib-commonjs/views/card/parameters/FocusedParameters.js +53 -35
  105. package/lib-commonjs/views/card/parameters/GenericTemplates.js +87 -70
  106. package/lib-commonjs/views/interfaces/IAdaptiveCardExtensionActionView.js +5 -2
  107. package/lib-commonjs/views/interfaces/IAdaptiveCardExtensionDataView.js +5 -2
  108. package/lib-commonjs/views/interfaces/INavigationBarProperties.js +5 -2
  109. package/lib-commonjs/views/interfaces/IViewNavigator.js +5 -2
  110. package/lib-commonjs/views/navigator/QuickViewNavigator.js +22 -28
  111. package/lib-commonjs/views/navigator/ViewNavigator.js +138 -193
  112. package/lib-commonjs/views/navigator/ViewRegistry.js +25 -26
  113. package/lib-commonjs/views/quickView/BaseAdaptiveCardQuickView.js +64 -88
  114. package/lib-commonjs/views/quickView/BaseQuickView.js +32 -46
  115. package/lib-commonjs/views/quickView/BaseWebQuickView.js +47 -59
  116. package/{lib → lib-dts}/AdaptiveCardExtensionContext.d.ts +1 -5
  117. package/{lib → lib-dts}/BaseAdaptiveCardExtension.d.ts +2 -1
  118. package/lib-esm/AdaptiveCardExtensionContext.js +67 -0
  119. package/lib-esm/AdaptiveCardExtensionHost.js +65 -0
  120. package/{lib → lib-esm}/AdaptiveCardExtensionLoader.js +56 -74
  121. package/lib-esm/BaseAdaptiveCardExtension.js +1237 -0
  122. package/{lib → lib-esm}/ac-template/basicL1Template.js +6 -4
  123. package/{lib → lib-esm}/ac-template/basicL1TemplateSelectAction.js +6 -4
  124. package/{lib → lib-esm}/ac-template/common/Constants.js +3 -2
  125. package/{lib → lib-esm}/ac-template/common/CustomElements.js +26 -30
  126. package/{lib → lib-esm}/ac-template/imageL1Template.js +6 -4
  127. package/{lib → lib-esm}/ac-template/imageL1TemplateSelectAction.js +6 -4
  128. package/{lib → lib-esm}/ac-template/index.js +2 -1
  129. package/{lib → lib-esm}/ac-template/primaryTextL1Template.js +10 -5
  130. package/{lib → lib-esm}/ac-template/primaryTextL1TemplateSelectAction.js +10 -5
  131. package/{lib → lib-esm}/ac-template/searchL1Template.js +7 -7
  132. package/{lib → lib-esm}/ac-template/textInputL1Template.js +10 -13
  133. package/{lib → lib-esm}/ac-template/util/actionButtonHelper.js +45 -57
  134. package/{lib → lib-esm}/ac-template/util/getCardRenderParameters.js +75 -92
  135. package/{lib → lib-esm}/actionShim/AdaptiveCardExtensionActionShim.js +74 -87
  136. package/lib-esm/actionShim/IActionShimProvider.js +7 -0
  137. package/{lib → lib-esm}/actionShim/getOnBeforeActionArguments.js +22 -25
  138. package/lib-esm/caching/CacheManager.js +55 -0
  139. package/lib-esm/caching/IAdaptiveCardExtensionCacheObject.js +7 -0
  140. package/lib-esm/caching/ICacheSettings.js +5 -0
  141. package/{lib → lib-esm}/caching/ICachedLoadParameters.js +2 -1
  142. package/lib-esm/caching/cache/ACEMySiteCacheManager.js +130 -0
  143. package/{lib → lib-esm}/caching/cache/BaseAdaptiveCardExtensionCache.js +10 -16
  144. package/lib-esm/caching/cache/IAdaptiveCardExtensionCache.js +7 -0
  145. package/lib-esm/caching/cache/LocalStorageACECache.js +73 -0
  146. package/{lib → lib-esm}/common/Flights.js +6 -8
  147. package/{lib → lib-esm}/common/Killswitches.js +37 -105
  148. package/lib-esm/components/BarChartComponent.js +112 -0
  149. package/{lib → lib-esm}/components/BaseComponent.js +8 -4
  150. package/lib-esm/components/CardBarComponent.js +10 -0
  151. package/{lib → lib-esm}/components/CardButtonComponent.js +9 -9
  152. package/lib-esm/components/DataVisualizationComponent.js +26 -0
  153. package/lib-esm/components/ICardButtonBase.js +7 -0
  154. package/lib-esm/components/LineChartComponent.js +29 -0
  155. package/lib-esm/components/PieChartComponent.js +115 -0
  156. package/lib-esm/components/PoweredByComponent.js +10 -0
  157. package/lib-esm/components/PromptsSetComponent.js +10 -0
  158. package/lib-esm/components/SearchBoxComponent.js +10 -0
  159. package/lib-esm/components/SearchFooterComponent.js +8 -0
  160. package/lib-esm/components/TextComponent.js +10 -0
  161. package/lib-esm/components/TextInputComponent.js +10 -0
  162. package/{lib → lib-esm}/index.js +3 -3
  163. package/lib-esm/interfaces/CardActionType.js +5 -0
  164. package/lib-esm/interfaces/IActionArguments.js +7 -0
  165. package/lib-esm/interfaces/IAdaptiveCardExtension.js +7 -0
  166. package/lib-esm/interfaces/IAdaptiveCardExtensionData.js +5 -0
  167. package/lib-esm/interfaces/IAdaptiveCardExtensionImage.js +15 -0
  168. package/lib-esm/interfaces/IAdaptiveCardExtensionLoadContext.js +5 -0
  169. package/lib-esm/interfaces/IAdaptiveCardExtensionPropertiesMetadata.js +7 -0
  170. package/lib-esm/interfaces/IAdaptiveCardRenderParameters.js +5 -0
  171. package/lib-esm/interfaces/IBaseCardParameters.js +11 -0
  172. package/lib-esm/interfaces/ICardButton.js +6 -0
  173. package/lib-esm/interfaces/ICardRenderParameters.js +6 -0
  174. package/{lib → lib-esm}/interfaces/IFocusParameters.js +3 -3
  175. package/lib-esm/interfaces/IGetLocationActionTypes.js +7 -0
  176. package/lib-esm/interfaces/IHostContext.js +15 -0
  177. package/lib-esm/interfaces/ILocation.js +6 -0
  178. package/lib-esm/interfaces/INotificationTypes.js +9 -0
  179. package/lib-esm/interfaces/IOnBeforeActionArguments.js +7 -0
  180. package/lib-esm/interfaces/IQuickViewRenderParameters.js +5 -0
  181. package/lib-esm/interfaces/ISPFxAdaptiveCard.js +7 -0
  182. package/{lib → lib-esm}/interfaces/ISelectMediaActionTypes.js +3 -7
  183. package/lib-esm/interfaces/ISelectionActionTemplateAdaptiveCard.js +5 -0
  184. package/lib-esm/interfaces/IShowLocationActionTypes.js +9 -0
  185. package/lib-esm/interfaces/InternalTypes.js +6 -0
  186. package/lib-esm/isolation/IsolatedAdaptiveCardExtensionService.js +505 -0
  187. package/{lib → lib-esm}/isolation/RenderArgumentsUtils.js +79 -71
  188. package/{lib → lib-esm}/isolation/interfaces/IBot.js +3 -3
  189. package/lib-esm/isolation/interfaces/IIsolatedAction.js +5 -0
  190. package/lib-esm/isolation/interfaces/IIsolatedListener.js +7 -0
  191. package/lib-esm/isolation/interfaces/IIsolatedServiceCallbackParameters.js +5 -0
  192. package/lib-esm/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +7 -0
  193. package/lib-esm/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +10 -0
  194. package/lib-esm/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +5 -0
  195. package/lib-esm/isolation/interfaces/IsolatedServiceMessageEvent.js +5 -0
  196. package/lib-esm/test-api/AdaptiveCardExtensionTestWrapper.js +125 -0
  197. package/{lib → lib-esm}/test-api/MockAdaptiveCardExtensionManifestInstance.js +12 -8
  198. package/{lib → lib-esm}/test-api/index.js +2 -1
  199. package/lib-esm/utilities/StringHelper.js +8 -0
  200. package/lib-esm/views/base/BaseView.js +47 -0
  201. package/lib-esm/views/card/BaseBasicCardView.js +51 -0
  202. package/lib-esm/views/card/BaseCardView.js +59 -0
  203. package/lib-esm/views/card/BaseComponentsCardView.js +43 -0
  204. package/{lib → lib-esm}/views/card/BaseImageCardView.js +24 -36
  205. package/{lib → lib-esm}/views/card/BasePrimaryTextCardView.js +23 -35
  206. package/lib-esm/views/card/BaseTemplateCardView.js +65 -0
  207. package/lib-esm/views/card/DefaultCardView.js +19 -0
  208. package/lib-esm/views/card/parameters/BaseParameters.js +7 -0
  209. package/lib-esm/views/card/parameters/CardViewParametersProcessors.js +30 -0
  210. package/{lib → lib-esm}/views/card/parameters/DataVisualizationParameters.js +41 -35
  211. package/lib-esm/views/card/parameters/FocusedParameters.js +58 -0
  212. package/{lib → lib-esm}/views/card/parameters/GenericTemplates.js +59 -34
  213. package/lib-esm/views/interfaces/IAdaptiveCardExtensionActionView.js +7 -0
  214. package/lib-esm/views/interfaces/IAdaptiveCardExtensionDataView.js +7 -0
  215. package/lib-esm/views/interfaces/INavigationBarProperties.js +5 -0
  216. package/lib-esm/views/interfaces/IViewNavigator.js +5 -0
  217. package/lib-esm/views/navigator/QuickViewNavigator.js +22 -0
  218. package/lib-esm/views/navigator/ViewNavigator.js +174 -0
  219. package/lib-esm/views/navigator/ViewRegistry.js +26 -0
  220. package/lib-esm/views/quickView/BaseAdaptiveCardQuickView.js +65 -0
  221. package/lib-esm/views/quickView/BaseQuickView.js +28 -0
  222. package/lib-esm/views/quickView/BaseWebQuickView.js +49 -0
  223. package/package.json +52 -17
  224. package/dist/index.js +0 -8
  225. package/dist/sp-adaptive-card-extension-base_default_bb680b206988d853312e.js +0 -1
  226. package/dist/sp-adaptive-card-extension-base_en-us_9d6af508c1713a71b939.js +0 -1
  227. package/dist/sp-adaptive-card-extension-base_qps-ploc_4f70291b86b8b32dfb95.js +0 -1
  228. package/dist/sp-adaptive-card-extension-base_qps-ploca_ae8667091e2a4a4f5af7.js +0 -1
  229. package/dist/test-api/AdaptiveCardExtensionTestWrapper.js +0 -155
  230. package/dist/test-api/MockAdaptiveCardExtensionManifestInstance.js +0 -23
  231. package/dist/test-api/index.js +0 -6
  232. package/lib/AdaptiveCardExtensionContext.d.ts.map +0 -1
  233. package/lib/AdaptiveCardExtensionContext.js +0 -103
  234. package/lib/AdaptiveCardExtensionHost.d.ts.map +0 -1
  235. package/lib/AdaptiveCardExtensionHost.js +0 -76
  236. package/lib/AdaptiveCardExtensionLoader.d.ts.map +0 -1
  237. package/lib/BaseAdaptiveCardExtension.d.ts.map +0 -1
  238. package/lib/BaseAdaptiveCardExtension.js +0 -1433
  239. package/lib/ac-template/basicL1Template.d.ts.map +0 -1
  240. package/lib/ac-template/basicL1TemplateSelectAction.d.ts.map +0 -1
  241. package/lib/ac-template/common/Constants.d.ts.map +0 -1
  242. package/lib/ac-template/common/CustomElements.d.ts.map +0 -1
  243. package/lib/ac-template/imageL1Template.d.ts.map +0 -1
  244. package/lib/ac-template/imageL1TemplateSelectAction.d.ts.map +0 -1
  245. package/lib/ac-template/index.d.ts.map +0 -1
  246. package/lib/ac-template/primaryTextL1Template.d.ts.map +0 -1
  247. package/lib/ac-template/primaryTextL1TemplateSelectAction.d.ts.map +0 -1
  248. package/lib/ac-template/searchL1Template.d.ts.map +0 -1
  249. package/lib/ac-template/textInputL1Template.d.ts.map +0 -1
  250. package/lib/ac-template/util/actionButtonHelper.d.ts.map +0 -1
  251. package/lib/ac-template/util/getCardRenderParameters.d.ts.map +0 -1
  252. package/lib/actionShim/AdaptiveCardExtensionActionShim.d.ts.map +0 -1
  253. package/lib/actionShim/IActionShimProvider.d.ts.map +0 -1
  254. package/lib/actionShim/IActionShimProvider.js +0 -2
  255. package/lib/actionShim/getOnBeforeActionArguments.d.ts.map +0 -1
  256. package/lib/caching/CacheManager.d.ts.map +0 -1
  257. package/lib/caching/CacheManager.js +0 -57
  258. package/lib/caching/IAdaptiveCardExtensionCacheObject.d.ts.map +0 -1
  259. package/lib/caching/IAdaptiveCardExtensionCacheObject.js +0 -2
  260. package/lib/caching/ICacheSettings.d.ts.map +0 -1
  261. package/lib/caching/ICacheSettings.js +0 -2
  262. package/lib/caching/ICachedLoadParameters.d.ts.map +0 -1
  263. package/lib/caching/cache/ACEMySiteCacheManager.d.ts.map +0 -1
  264. package/lib/caching/cache/ACEMySiteCacheManager.js +0 -135
  265. package/lib/caching/cache/BaseAdaptiveCardExtensionCache.d.ts.map +0 -1
  266. package/lib/caching/cache/IAdaptiveCardExtensionCache.d.ts.map +0 -1
  267. package/lib/caching/cache/IAdaptiveCardExtensionCache.js +0 -2
  268. package/lib/caching/cache/LocalStorageACECache.d.ts.map +0 -1
  269. package/lib/caching/cache/LocalStorageACECache.js +0 -84
  270. package/lib/common/Flights.d.ts.map +0 -1
  271. package/lib/common/Killswitches.d.ts.map +0 -1
  272. package/lib/components/BarChartComponent.d.ts.map +0 -1
  273. package/lib/components/BarChartComponent.js +0 -125
  274. package/lib/components/BaseComponent.d.ts.map +0 -1
  275. package/lib/components/CardBarComponent.d.ts.map +0 -1
  276. package/lib/components/CardBarComponent.js +0 -8
  277. package/lib/components/CardButtonComponent.d.ts.map +0 -1
  278. package/lib/components/DataVisualizationComponent.d.ts.map +0 -1
  279. package/lib/components/DataVisualizationComponent.js +0 -24
  280. package/lib/components/ICardButtonBase.d.ts.map +0 -1
  281. package/lib/components/ICardButtonBase.js +0 -2
  282. package/lib/components/LineChartComponent.d.ts.map +0 -1
  283. package/lib/components/LineChartComponent.js +0 -32
  284. package/lib/components/PieChartComponent.d.ts.map +0 -1
  285. package/lib/components/PieChartComponent.js +0 -99
  286. package/lib/components/PoweredByComponent.d.ts.map +0 -1
  287. package/lib/components/PoweredByComponent.js +0 -8
  288. package/lib/components/PromptsSetComponent.d.ts.map +0 -1
  289. package/lib/components/PromptsSetComponent.js +0 -8
  290. package/lib/components/SearchBoxComponent.d.ts.map +0 -1
  291. package/lib/components/SearchBoxComponent.js +0 -8
  292. package/lib/components/SearchFooterComponent.d.ts.map +0 -1
  293. package/lib/components/SearchFooterComponent.js +0 -5
  294. package/lib/components/TextComponent.d.ts.map +0 -1
  295. package/lib/components/TextComponent.js +0 -8
  296. package/lib/components/TextInputComponent.d.ts.map +0 -1
  297. package/lib/components/TextInputComponent.js +0 -8
  298. package/lib/index.d.ts.map +0 -1
  299. package/lib/interfaces/CardActionType.d.ts.map +0 -1
  300. package/lib/interfaces/CardActionType.js +0 -2
  301. package/lib/interfaces/IActionArguments.d.ts.map +0 -1
  302. package/lib/interfaces/IActionArguments.js +0 -2
  303. package/lib/interfaces/IAdaptiveCardExtension.d.ts.map +0 -1
  304. package/lib/interfaces/IAdaptiveCardExtension.js +0 -2
  305. package/lib/interfaces/IAdaptiveCardExtensionData.d.ts.map +0 -1
  306. package/lib/interfaces/IAdaptiveCardExtensionData.js +0 -2
  307. package/lib/interfaces/IAdaptiveCardExtensionImage.d.ts.map +0 -1
  308. package/lib/interfaces/IAdaptiveCardExtensionImage.js +0 -2
  309. package/lib/interfaces/IAdaptiveCardExtensionLoadContext.d.ts.map +0 -1
  310. package/lib/interfaces/IAdaptiveCardExtensionLoadContext.js +0 -2
  311. package/lib/interfaces/IAdaptiveCardExtensionPropertiesMetadata.d.ts.map +0 -1
  312. package/lib/interfaces/IAdaptiveCardExtensionPropertiesMetadata.js +0 -2
  313. package/lib/interfaces/IAdaptiveCardRenderParameters.d.ts.map +0 -1
  314. package/lib/interfaces/IAdaptiveCardRenderParameters.js +0 -2
  315. package/lib/interfaces/IBaseCardParameters.d.ts.map +0 -1
  316. package/lib/interfaces/IBaseCardParameters.js +0 -2
  317. package/lib/interfaces/ICardButton.d.ts.map +0 -1
  318. package/lib/interfaces/ICardButton.js +0 -2
  319. package/lib/interfaces/ICardRenderParameters.d.ts.map +0 -1
  320. package/lib/interfaces/ICardRenderParameters.js +0 -2
  321. package/lib/interfaces/IFocusParameters.d.ts.map +0 -1
  322. package/lib/interfaces/IGetLocationActionTypes.d.ts.map +0 -1
  323. package/lib/interfaces/IGetLocationActionTypes.js +0 -2
  324. package/lib/interfaces/IHostContext.d.ts.map +0 -1
  325. package/lib/interfaces/IHostContext.js +0 -2
  326. package/lib/interfaces/ILocation.d.ts.map +0 -1
  327. package/lib/interfaces/ILocation.js +0 -6
  328. package/lib/interfaces/INotificationTypes.d.ts.map +0 -1
  329. package/lib/interfaces/INotificationTypes.js +0 -2
  330. package/lib/interfaces/IOnBeforeActionArguments.d.ts.map +0 -1
  331. package/lib/interfaces/IOnBeforeActionArguments.js +0 -2
  332. package/lib/interfaces/IQuickViewRenderParameters.d.ts.map +0 -1
  333. package/lib/interfaces/IQuickViewRenderParameters.js +0 -2
  334. package/lib/interfaces/ISPFxAdaptiveCard.d.ts.map +0 -1
  335. package/lib/interfaces/ISPFxAdaptiveCard.js +0 -2
  336. package/lib/interfaces/ISelectMediaActionTypes.d.ts.map +0 -1
  337. package/lib/interfaces/ISelectionActionTemplateAdaptiveCard.d.ts.map +0 -1
  338. package/lib/interfaces/ISelectionActionTemplateAdaptiveCard.js +0 -2
  339. package/lib/interfaces/IShowLocationActionTypes.d.ts.map +0 -1
  340. package/lib/interfaces/IShowLocationActionTypes.js +0 -2
  341. package/lib/interfaces/InternalTypes.d.ts.map +0 -1
  342. package/lib/interfaces/InternalTypes.js +0 -2
  343. package/lib/isolation/IsolatedAdaptiveCardExtensionService.d.ts.map +0 -1
  344. package/lib/isolation/IsolatedAdaptiveCardExtensionService.js +0 -513
  345. package/lib/isolation/RenderArgumentsUtils.d.ts.map +0 -1
  346. package/lib/isolation/interfaces/IBot.d.ts.map +0 -1
  347. package/lib/isolation/interfaces/IIsolatedAction.d.ts.map +0 -1
  348. package/lib/isolation/interfaces/IIsolatedAction.js +0 -2
  349. package/lib/isolation/interfaces/IIsolatedListener.d.ts.map +0 -1
  350. package/lib/isolation/interfaces/IIsolatedListener.js +0 -2
  351. package/lib/isolation/interfaces/IIsolatedServiceCallbackParameters.d.ts.map +0 -1
  352. package/lib/isolation/interfaces/IIsolatedServiceCallbackParameters.js +0 -2
  353. package/lib/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.d.ts.map +0 -1
  354. package/lib/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +0 -2
  355. package/lib/isolation/interfaces/IRenderIsolatedQuickViewParameters.d.ts.map +0 -1
  356. package/lib/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +0 -2
  357. package/lib/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.d.ts.map +0 -1
  358. package/lib/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +0 -2
  359. package/lib/isolation/interfaces/IsolatedServiceMessageEvent.d.ts.map +0 -1
  360. package/lib/isolation/interfaces/IsolatedServiceMessageEvent.js +0 -2
  361. package/lib/test-api/AdaptiveCardExtensionTestWrapper.d.ts.map +0 -1
  362. package/lib/test-api/AdaptiveCardExtensionTestWrapper.js +0 -152
  363. package/lib/test-api/MockAdaptiveCardExtensionManifestInstance.d.ts.map +0 -1
  364. package/lib/test-api/index.d.ts.map +0 -1
  365. package/lib/utilities/StringHelper.d.ts.map +0 -1
  366. package/lib/utilities/StringHelper.js +0 -11
  367. package/lib/views/base/BaseView.d.ts.map +0 -1
  368. package/lib/views/base/BaseView.js +0 -77
  369. package/lib/views/card/BaseBasicCardView.d.ts.map +0 -1
  370. package/lib/views/card/BaseBasicCardView.js +0 -63
  371. package/lib/views/card/BaseCardView.d.ts.map +0 -1
  372. package/lib/views/card/BaseCardView.js +0 -84
  373. package/lib/views/card/BaseComponentsCardView.d.ts.map +0 -1
  374. package/lib/views/card/BaseComponentsCardView.js +0 -44
  375. package/lib/views/card/BaseImageCardView.d.ts.map +0 -1
  376. package/lib/views/card/BasePrimaryTextCardView.d.ts.map +0 -1
  377. package/lib/views/card/BaseTemplateCardView.d.ts.map +0 -1
  378. package/lib/views/card/BaseTemplateCardView.js +0 -85
  379. package/lib/views/card/DefaultCardView.d.ts.map +0 -1
  380. package/lib/views/card/DefaultCardView.js +0 -29
  381. package/lib/views/card/parameters/BaseParameters.d.ts.map +0 -1
  382. package/lib/views/card/parameters/BaseParameters.js +0 -2
  383. package/lib/views/card/parameters/CardViewParametersProcessors.d.ts.map +0 -1
  384. package/lib/views/card/parameters/CardViewParametersProcessors.js +0 -37
  385. package/lib/views/card/parameters/DataVisualizationParameters.d.ts.map +0 -1
  386. package/lib/views/card/parameters/FocusedParameters.d.ts.map +0 -1
  387. package/lib/views/card/parameters/FocusedParameters.js +0 -43
  388. package/lib/views/card/parameters/GenericTemplates.d.ts.map +0 -1
  389. package/lib/views/interfaces/IAdaptiveCardExtensionActionView.d.ts.map +0 -1
  390. package/lib/views/interfaces/IAdaptiveCardExtensionActionView.js +0 -2
  391. package/lib/views/interfaces/IAdaptiveCardExtensionDataView.d.ts.map +0 -1
  392. package/lib/views/interfaces/IAdaptiveCardExtensionDataView.js +0 -2
  393. package/lib/views/interfaces/INavigationBarProperties.d.ts.map +0 -1
  394. package/lib/views/interfaces/INavigationBarProperties.js +0 -2
  395. package/lib/views/interfaces/IViewNavigator.d.ts.map +0 -1
  396. package/lib/views/interfaces/IViewNavigator.js +0 -2
  397. package/lib/views/navigator/QuickViewNavigator.d.ts.map +0 -1
  398. package/lib/views/navigator/QuickViewNavigator.js +0 -29
  399. package/lib/views/navigator/ViewNavigator.d.ts.map +0 -1
  400. package/lib/views/navigator/ViewNavigator.js +0 -233
  401. package/lib/views/navigator/ViewRegistry.d.ts.map +0 -1
  402. package/lib/views/navigator/ViewRegistry.js +0 -32
  403. package/lib/views/quickView/BaseAdaptiveCardQuickView.d.ts.map +0 -1
  404. package/lib/views/quickView/BaseAdaptiveCardQuickView.js +0 -90
  405. package/lib/views/quickView/BaseQuickView.d.ts.map +0 -1
  406. package/lib/views/quickView/BaseQuickView.js +0 -45
  407. package/lib/views/quickView/BaseWebQuickView.d.ts.map +0 -1
  408. package/lib/views/quickView/BaseWebQuickView.js +0 -64
  409. /package/{lib → lib-dts}/AdaptiveCardExtensionHost.d.ts +0 -0
  410. /package/{lib → lib-dts}/AdaptiveCardExtensionLoader.d.ts +0 -0
  411. /package/{lib → lib-dts}/ac-template/basicL1Template.d.ts +0 -0
  412. /package/{lib → lib-dts}/ac-template/basicL1TemplateSelectAction.d.ts +0 -0
  413. /package/{lib → lib-dts}/ac-template/common/Constants.d.ts +0 -0
  414. /package/{lib → lib-dts}/ac-template/common/CustomElements.d.ts +0 -0
  415. /package/{lib → lib-dts}/ac-template/imageL1Template.d.ts +0 -0
  416. /package/{lib → lib-dts}/ac-template/imageL1TemplateSelectAction.d.ts +0 -0
  417. /package/{lib → lib-dts}/ac-template/index.d.ts +0 -0
  418. /package/{lib → lib-dts}/ac-template/primaryTextL1Template.d.ts +0 -0
  419. /package/{lib → lib-dts}/ac-template/primaryTextL1TemplateSelectAction.d.ts +0 -0
  420. /package/{lib → lib-dts}/ac-template/searchL1Template.d.ts +0 -0
  421. /package/{lib → lib-dts}/ac-template/textInputL1Template.d.ts +0 -0
  422. /package/{lib → lib-dts}/ac-template/util/actionButtonHelper.d.ts +0 -0
  423. /package/{lib → lib-dts}/ac-template/util/getCardRenderParameters.d.ts +0 -0
  424. /package/{lib → lib-dts}/actionShim/AdaptiveCardExtensionActionShim.d.ts +0 -0
  425. /package/{lib → lib-dts}/actionShim/IActionShimProvider.d.ts +0 -0
  426. /package/{lib → lib-dts}/actionShim/getOnBeforeActionArguments.d.ts +0 -0
  427. /package/{lib → lib-dts}/caching/CacheManager.d.ts +0 -0
  428. /package/{lib → lib-dts}/caching/IAdaptiveCardExtensionCacheObject.d.ts +0 -0
  429. /package/{lib → lib-dts}/caching/ICacheSettings.d.ts +0 -0
  430. /package/{lib → lib-dts}/caching/ICachedLoadParameters.d.ts +0 -0
  431. /package/{lib → lib-dts}/caching/cache/ACEMySiteCacheManager.d.ts +0 -0
  432. /package/{lib → lib-dts}/caching/cache/BaseAdaptiveCardExtensionCache.d.ts +0 -0
  433. /package/{lib → lib-dts}/caching/cache/IAdaptiveCardExtensionCache.d.ts +0 -0
  434. /package/{lib → lib-dts}/caching/cache/LocalStorageACECache.d.ts +0 -0
  435. /package/{lib → lib-dts}/common/Flights.d.ts +0 -0
  436. /package/{lib → lib-dts}/common/Killswitches.d.ts +0 -0
  437. /package/{lib → lib-dts}/components/BarChartComponent.d.ts +0 -0
  438. /package/{lib → lib-dts}/components/BaseComponent.d.ts +0 -0
  439. /package/{lib → lib-dts}/components/CardBarComponent.d.ts +0 -0
  440. /package/{lib → lib-dts}/components/CardButtonComponent.d.ts +0 -0
  441. /package/{lib → lib-dts}/components/DataVisualizationComponent.d.ts +0 -0
  442. /package/{lib → lib-dts}/components/ICardButtonBase.d.ts +0 -0
  443. /package/{lib → lib-dts}/components/LineChartComponent.d.ts +0 -0
  444. /package/{lib → lib-dts}/components/PieChartComponent.d.ts +0 -0
  445. /package/{lib → lib-dts}/components/PoweredByComponent.d.ts +0 -0
  446. /package/{lib → lib-dts}/components/PromptsSetComponent.d.ts +0 -0
  447. /package/{lib → lib-dts}/components/SearchBoxComponent.d.ts +0 -0
  448. /package/{lib → lib-dts}/components/SearchFooterComponent.d.ts +0 -0
  449. /package/{lib → lib-dts}/components/TextComponent.d.ts +0 -0
  450. /package/{lib → lib-dts}/components/TextInputComponent.d.ts +0 -0
  451. /package/{lib → lib-dts}/index.d.ts +0 -0
  452. /package/{lib → lib-dts}/interfaces/CardActionType.d.ts +0 -0
  453. /package/{lib → lib-dts}/interfaces/IActionArguments.d.ts +0 -0
  454. /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtension.d.ts +0 -0
  455. /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionData.d.ts +0 -0
  456. /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionImage.d.ts +0 -0
  457. /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionLoadContext.d.ts +0 -0
  458. /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionPropertiesMetadata.d.ts +0 -0
  459. /package/{lib → lib-dts}/interfaces/IAdaptiveCardRenderParameters.d.ts +0 -0
  460. /package/{lib → lib-dts}/interfaces/IBaseCardParameters.d.ts +0 -0
  461. /package/{lib → lib-dts}/interfaces/ICardButton.d.ts +0 -0
  462. /package/{lib → lib-dts}/interfaces/ICardRenderParameters.d.ts +0 -0
  463. /package/{lib → lib-dts}/interfaces/IFocusParameters.d.ts +0 -0
  464. /package/{lib → lib-dts}/interfaces/IGetLocationActionTypes.d.ts +0 -0
  465. /package/{lib → lib-dts}/interfaces/IHostContext.d.ts +0 -0
  466. /package/{lib → lib-dts}/interfaces/ILocation.d.ts +0 -0
  467. /package/{lib → lib-dts}/interfaces/INotificationTypes.d.ts +0 -0
  468. /package/{lib → lib-dts}/interfaces/IOnBeforeActionArguments.d.ts +0 -0
  469. /package/{lib → lib-dts}/interfaces/IQuickViewRenderParameters.d.ts +0 -0
  470. /package/{lib → lib-dts}/interfaces/ISPFxAdaptiveCard.d.ts +0 -0
  471. /package/{lib → lib-dts}/interfaces/ISelectMediaActionTypes.d.ts +0 -0
  472. /package/{lib → lib-dts}/interfaces/ISelectionActionTemplateAdaptiveCard.d.ts +0 -0
  473. /package/{lib → lib-dts}/interfaces/IShowLocationActionTypes.d.ts +0 -0
  474. /package/{lib → lib-dts}/interfaces/InternalTypes.d.ts +0 -0
  475. /package/{lib → lib-dts}/isolation/IsolatedAdaptiveCardExtensionService.d.ts +0 -0
  476. /package/{lib → lib-dts}/isolation/RenderArgumentsUtils.d.ts +0 -0
  477. /package/{lib → lib-dts}/isolation/interfaces/IBot.d.ts +0 -0
  478. /package/{lib → lib-dts}/isolation/interfaces/IIsolatedAction.d.ts +0 -0
  479. /package/{lib → lib-dts}/isolation/interfaces/IIsolatedListener.d.ts +0 -0
  480. /package/{lib → lib-dts}/isolation/interfaces/IIsolatedServiceCallbackParameters.d.ts +0 -0
  481. /package/{lib → lib-dts}/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.d.ts +0 -0
  482. /package/{lib → lib-dts}/isolation/interfaces/IRenderIsolatedQuickViewParameters.d.ts +0 -0
  483. /package/{lib → lib-dts}/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.d.ts +0 -0
  484. /package/{lib → lib-dts}/isolation/interfaces/IsolatedServiceMessageEvent.d.ts +0 -0
  485. /package/{lib → lib-dts}/loc/Strings.resx.d.ts +0 -0
  486. /package/{lib → lib-dts}/test-api/AdaptiveCardExtensionTestWrapper.d.ts +0 -0
  487. /package/{lib → lib-dts}/test-api/MockAdaptiveCardExtensionManifestInstance.d.ts +0 -0
  488. /package/{lib → lib-dts}/test-api/index.d.ts +0 -0
  489. /package/{lib → lib-dts}/utilities/StringHelper.d.ts +0 -0
  490. /package/{lib → lib-dts}/views/base/BaseView.d.ts +0 -0
  491. /package/{lib → lib-dts}/views/card/BaseBasicCardView.d.ts +0 -0
  492. /package/{lib → lib-dts}/views/card/BaseCardView.d.ts +0 -0
  493. /package/{lib → lib-dts}/views/card/BaseComponentsCardView.d.ts +0 -0
  494. /package/{lib → lib-dts}/views/card/BaseImageCardView.d.ts +0 -0
  495. /package/{lib → lib-dts}/views/card/BasePrimaryTextCardView.d.ts +0 -0
  496. /package/{lib → lib-dts}/views/card/BaseTemplateCardView.d.ts +0 -0
  497. /package/{lib → lib-dts}/views/card/DefaultCardView.d.ts +0 -0
  498. /package/{lib → lib-dts}/views/card/parameters/BaseParameters.d.ts +0 -0
  499. /package/{lib → lib-dts}/views/card/parameters/CardViewParametersProcessors.d.ts +0 -0
  500. /package/{lib → lib-dts}/views/card/parameters/DataVisualizationParameters.d.ts +0 -0
  501. /package/{lib → lib-dts}/views/card/parameters/FocusedParameters.d.ts +0 -0
  502. /package/{lib → lib-dts}/views/card/parameters/GenericTemplates.d.ts +0 -0
  503. /package/{lib → lib-dts}/views/interfaces/IAdaptiveCardExtensionActionView.d.ts +0 -0
  504. /package/{lib → lib-dts}/views/interfaces/IAdaptiveCardExtensionDataView.d.ts +0 -0
  505. /package/{lib → lib-dts}/views/interfaces/INavigationBarProperties.d.ts +0 -0
  506. /package/{lib → lib-dts}/views/interfaces/IViewNavigator.d.ts +0 -0
  507. /package/{lib → lib-dts}/views/navigator/QuickViewNavigator.d.ts +0 -0
  508. /package/{lib → lib-dts}/views/navigator/ViewNavigator.d.ts +0 -0
  509. /package/{lib → lib-dts}/views/navigator/ViewRegistry.d.ts +0 -0
  510. /package/{lib → lib-dts}/views/quickView/BaseAdaptiveCardQuickView.d.ts +0 -0
  511. /package/{lib → lib-dts}/views/quickView/BaseQuickView.d.ts +0 -0
  512. /package/{lib → lib-dts}/views/quickView/BaseWebQuickView.d.ts +0 -0
  513. /package/{lib → lib-esm}/loc/Strings.resx.json +0 -0
  514. /package/{lib → lib-esm}/sp-adaptive-card-base.manifest.json +0 -0
@@ -1,16 +1,16 @@
1
- import { __assign } from "tslib";
2
1
  /**
3
2
  * @internal
4
- */
5
- export function _cardButtonConfigurationToParameters(configuration) {
6
- return __assign(__assign({}, configuration), { componentName: 'cardButton' });
3
+ */ export function _cardButtonConfigurationToParameters(configuration) {
4
+ return {
5
+ ...configuration,
6
+ componentName: 'cardButton'
7
+ };
7
8
  }
8
9
  /**
9
10
  * Helper function to convert ICardButton to ICardButtonConfiguration
10
11
  *
11
12
  * @internal
12
- */
13
- export function _cardButtonToConfiguration(cardButton) {
13
+ */ export function _cardButtonToConfiguration(cardButton) {
14
14
  return {
15
15
  componentName: 'cardButton',
16
16
  title: cardButton.title,
@@ -25,8 +25,7 @@ export function _cardButtonToConfiguration(cardButton) {
25
25
  * @privateRemarks remove when IDC implements support for ACE Components
26
26
  *
27
27
  * @internal
28
- */
29
- export function _cardButtonParametersToCardButton(parameters) {
28
+ */ export function _cardButtonParametersToCardButton(parameters) {
30
29
  return {
31
30
  title: parameters.title,
32
31
  action: parameters.action,
@@ -34,4 +33,5 @@ export function _cardButtonParametersToCardButton(parameters) {
34
33
  id: parameters.id
35
34
  };
36
35
  }
37
- //# sourceMappingURL=CardButtonComponent.js.map
36
+
37
+ //# sourceMappingURL=./CardButtonComponent.js.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Chart is rendered on right side (fixed layout) if atleast 2 of the 3 card elements are present: Header, Footer, Description
3
+ *
4
+ * @internal
5
+ */ export function _getDataVisualizationComponentPosition(hasHeader, hasDescription, hasFooter) {
6
+ return hasHeader && hasFooter || hasDescription && (hasHeader || hasFooter) ? 'fixed' : 'body';
7
+ }
8
+ export function _getCartesianChartLayoutProperties(parameters, hasHeader, hasDescription, hasFooter, cardSize) {
9
+ // Chart is rendered on right side if atleast 2 of the 3 are present: Header, Footer, Description
10
+ const position = _getDataVisualizationComponentPosition(hasHeader, hasDescription, hasFooter);
11
+ // Width of the chart is half of the large card if it is in fixed layout which is approximately equal as Medium Card
12
+ const isMediumSizedChart = position === 'fixed' || cardSize === 'Medium';
13
+ // if chart is in body and at least one of the 3 (header, footer, description) is present, then it is partial height, max limit of yLabels is 3
14
+ // Height of chart is full in case of fixed layout or medium cards
15
+ const isPartialHeightChart = (hasHeader || hasFooter || hasDescription) && !isMediumSizedChart;
16
+ // Show legend only for full-sized charts with multiple series, where at least one series has a name.
17
+ const showLegend = !isMediumSizedChart && !isPartialHeightChart && parameters.series.length > 1 && parameters.series.some((s)=>'name' in s);
18
+ return {
19
+ isMediumSizedChart,
20
+ isPartialHeightChart,
21
+ showLegend,
22
+ position
23
+ };
24
+ }
25
+
26
+ //# sourceMappingURL=./DataVisualizationComponent.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Base properties for the buttons used in different ACE card view components, such as Text Input and Search Box and Card Button.
3
+ *
4
+ * @public
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./ICardButtonBase.js.map
@@ -0,0 +1,29 @@
1
+ import { _getCartesianChartLayoutProperties } from './DataVisualizationComponent';
2
+ /**
3
+ * Convert line chart configuration to data visualization parameters.
4
+ *
5
+ * @internal
6
+ */ export function _lineConfigurationToParameters(configuration) {
7
+ return configuration;
8
+ }
9
+ export function _preProcessLineChartParameters(parameters, hasHeader, hasDescription, hasFooter, cardSize) {
10
+ const params = {
11
+ ...parameters
12
+ };
13
+ // If at least one of series[].data[].x is of type Date, set type to 'date'
14
+ const type = params.series.some((series)=>series.data.some((data)=>data.x instanceof Date)) ? 'date' : 'number';
15
+ const { isMediumSizedChart, isPartialHeightChart, showLegend, position } = _getCartesianChartLayoutProperties(params, hasHeader, hasDescription, hasFooter, cardSize);
16
+ if (isMediumSizedChart && params.series.length > 1) {
17
+ params.series = params.series.slice(0, 1);
18
+ }
19
+ params._metadata = {
20
+ type,
21
+ xLabelsCount: isMediumSizedChart ? 3 : 6,
22
+ yLabelsCount: isPartialHeightChart ? 3 : 4,
23
+ showLegend,
24
+ position
25
+ };
26
+ return params;
27
+ }
28
+
29
+ //# sourceMappingURL=./LineChartComponent.js.map
@@ -0,0 +1,115 @@
1
+ import { _getDataVisualizationComponentPosition } from './DataVisualizationComponent';
2
+ /**
3
+ * Convert pie chart configuration to data visualization parameters.
4
+ *
5
+ * @internal
6
+ */ export function _pieConfigurationToParameters(configuration) {
7
+ return configuration;
8
+ }
9
+ /**
10
+ * Function to calculate the metadata properties for the pie chart based on card layout.
11
+ */ function _getPieChartProperties(cardSize, position, isPartialHeightCard) {
12
+ if (position === 'fixed') {
13
+ return {
14
+ pieChartSize: 'fixed',
15
+ maxCategories: 8,
16
+ maxLabels: 4
17
+ };
18
+ } else if (isPartialHeightCard) {
19
+ return {
20
+ pieChartSize: 'partial',
21
+ maxCategories: 6,
22
+ maxLabels: 2
23
+ };
24
+ } else if (cardSize === 'Medium') {
25
+ return {
26
+ pieChartSize: 'medium',
27
+ maxCategories: 6,
28
+ maxLabels: 2
29
+ };
30
+ } else {
31
+ return {
32
+ pieChartSize: 'full',
33
+ maxCategories: 10,
34
+ maxLabels: 6
35
+ };
36
+ }
37
+ }
38
+ function _limitPieDataByMaxCategories(series, maxCategories) {
39
+ if (series.data.length <= maxCategories) {
40
+ return series;
41
+ }
42
+ const limitedData = series.data.slice(0, maxCategories - 1);
43
+ const others = {
44
+ x: 'Others',
45
+ y: series.data.slice(maxCategories - 1).reduce((sum, dataPoint)=>sum + dataPoint.y, 0),
46
+ color: '#EDEDED',
47
+ showLabel: false
48
+ };
49
+ return {
50
+ ...series,
51
+ data: [
52
+ ...limitedData,
53
+ others
54
+ ]
55
+ };
56
+ }
57
+ function _createDataLabels(series, pieChartSize, maxLabels, showLabelValue) {
58
+ const sumY = series.data.reduce((sum, dataPoint)=>sum + dataPoint.y, 0);
59
+ let labelsCount = 0;
60
+ const dataPointsWithLabels = series.data.map((dataPoint)=>{
61
+ if (labelsCount < maxLabels && dataPoint.showLabel === showLabelValue) {
62
+ labelsCount++;
63
+ return {
64
+ ...dataPoint,
65
+ _dataLabel: pieChartSize === 'fixed' || pieChartSize === 'medium' ? `${(dataPoint.y / sumY * 100).toFixed(0)}%` : `${dataPoint.x.substring(0, 3)}:${(dataPoint.y / sumY * 100).toFixed(0)}%`
66
+ };
67
+ }
68
+ return dataPoint;
69
+ });
70
+ return {
71
+ ...series,
72
+ data: dataPointsWithLabels
73
+ };
74
+ }
75
+ function _handleDataLabels(series, maxLabels, pieChartSize) {
76
+ if (series.data.some((dataPoint)=>dataPoint.showLabel)) {
77
+ // Create data labels where showLabel is true
78
+ return _createDataLabels(series, pieChartSize, maxLabels, true);
79
+ } else {
80
+ // Else treat undefined showLabel as true and create corresponding data labels
81
+ return _createDataLabels(series, pieChartSize, maxLabels, undefined);
82
+ }
83
+ }
84
+ /* Internal function to pre-process required metadata for rendering Pie chart */ export function _preProcessPieChartParameters(parameters, hasHeader, hasDescription, hasFooter, cardSize) {
85
+ const position = _getDataVisualizationComponentPosition(hasHeader, hasDescription, hasFooter);
86
+ const isPartialHeightCard = position === 'body' && (hasHeader || hasDescription || hasFooter);
87
+ const pieProperties = _getPieChartProperties(cardSize, position, isPartialHeightCard);
88
+ const updatedSeries = parameters.series.map((series)=>{
89
+ // Sort series by descending order of y value
90
+ const sortedSeries = {
91
+ ...series,
92
+ data: [
93
+ ...series.data
94
+ ].sort((a, b)=>b.y - a.y).map((item)=>({
95
+ ...item
96
+ }))
97
+ };
98
+ // Limit series by number of categories if exceeding maxCategories. Display excess as Others.
99
+ const limitedSeries = _limitPieDataByMaxCategories(sortedSeries, pieProperties.maxCategories);
100
+ // Handle data labels based on the showLabel property.
101
+ return _handleDataLabels(limitedSeries, pieProperties.maxLabels, pieProperties.pieChartSize);
102
+ });
103
+ return {
104
+ ...parameters,
105
+ series: [
106
+ updatedSeries[0]
107
+ ],
108
+ _metadata: {
109
+ position: _getDataVisualizationComponentPosition(hasHeader, hasDescription, hasFooter),
110
+ pieChartSize: pieProperties.pieChartSize
111
+ }
112
+ };
113
+ }
114
+
115
+ //# sourceMappingURL=./PieChartComponent.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ */ export function _cardViewPoweredByConfigurationToParameters(configuration) {
4
+ return {
5
+ ...configuration,
6
+ componentName: 'poweredBy'
7
+ };
8
+ }
9
+
10
+ //# sourceMappingURL=./PoweredByComponent.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ */ export function _promptsSetConfigurationToParameters(configuration) {
4
+ return {
5
+ ...configuration,
6
+ componentName: 'promptsSet'
7
+ };
8
+ }
9
+
10
+ //# sourceMappingURL=./PromptsSetComponent.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ */ export function _searchBoxConfigurationToParameters(configuration) {
4
+ return {
5
+ ...configuration,
6
+ componentName: 'searchBox'
7
+ };
8
+ }
9
+
10
+ //# sourceMappingURL=./SearchBoxComponent.js.map
@@ -0,0 +1,8 @@
1
+ export function _searchFooterConfigurationToParameters(configuration) {
2
+ return {
3
+ ...configuration,
4
+ componentName: 'searchFooter'
5
+ };
6
+ }
7
+
8
+ //# sourceMappingURL=./SearchFooterComponent.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ */ export function _textConfigurationToParameters(configuration) {
4
+ return {
5
+ ...configuration,
6
+ componentName: 'text'
7
+ };
8
+ }
9
+
10
+ //# sourceMappingURL=./TextComponent.js.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @internal
3
+ */ export function _textInputConfigurationToParameters(configuration) {
4
+ return {
5
+ ...configuration,
6
+ componentName: 'textInput'
7
+ };
8
+ }
9
+
10
+ //# sourceMappingURL=./TextInputComponent.js.map
@@ -6,8 +6,7 @@
6
6
  * Adaptive Cards to deliver rich, native experiences.
7
7
  *
8
8
  * @packagedocumentation
9
- */
10
- export { AdaptiveCardExtensionActionShim as _AdaptiveCardExtensionActionShim } from './actionShim/AdaptiveCardExtensionActionShim';
9
+ */ export { AdaptiveCardExtensionActionShim as _AdaptiveCardExtensionActionShim } from './actionShim/AdaptiveCardExtensionActionShim';
11
10
  export { getOnBeforeActionArguments as _getOnBeforeActionArguments } from './actionShim/getOnBeforeActionArguments';
12
11
  export { AdaptiveCardExtensionContext } from './AdaptiveCardExtensionContext';
13
12
  export { AdaptiveCardExtensionHost as _AdaptiveCardExtensionHost } from './AdaptiveCardExtensionHost';
@@ -41,4 +40,5 @@ export { BaseComponentsCardView } from './views/card/BaseComponentsCardView';
41
40
  export { getRenderArgumentsForMessaging as _getRenderArgumentsForMessaging, prepareRenderArgumentsForMessaging as _prepareRenderArgumentsForMessaging } from './isolation/RenderArgumentsUtils';
42
41
  export { PRIMARY_TEXT as _PRIMARY_TEXT, BODY_SECONDARY_TEXT as _BODY_SECONDARY_TEXT, BODY_PRIMARY_TEXT as _BODY_PRIMARY_TEXT, TITLE_TEXT as _TITLE_TEXT } from './ac-template/common/CustomElements';
43
42
  export { CardViewParametersProcessors as _CardViewParametersProcessors } from './views/card/parameters/CardViewParametersProcessors';
44
- //# sourceMappingURL=index.js.map
43
+
44
+ //# sourceMappingURL=./index.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @internal
3
+ */ export { };
4
+
5
+ //# sourceMappingURL=./CardActionType.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Base object passed to {@link IAdaptiveCardExtensionActionView.onActionError} when an Adaptive Card OnActionError is executed.
3
+ *
4
+ * @public
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./IActionArguments.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * `IAdaptiveCardExtension` is equivalent to public APIs of `BaseAdaptiveCardExtension`.
3
+ *
4
+ * @internal
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./IAdaptiveCardExtension.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @internal
3
+ */ export { };
4
+
5
+ //# sourceMappingURL=./IAdaptiveCardExtensionData.js.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Properties for the image rendered in a card view.
3
+ *
4
+ * @remarks The image can be displayed as part of the card view itself as well as in buttons.
5
+ *
6
+ * @public
7
+ */ /**
8
+ * Card view icon.
9
+ *
10
+ * @remarks The icon can be displayed as part of the card bar as well as in buttons.
11
+ *
12
+ * @public
13
+ */ export { };
14
+
15
+ //# sourceMappingURL=./IAdaptiveCardExtensionImage.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @internal
3
+ */ export { };
4
+
5
+ //# sourceMappingURL=./IAdaptiveCardExtensionLoadContext.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This is the structure used for map values in `IAdaptiveCardExtensionPropertiesMetadata`.
3
+ *
4
+ * @public
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./IAdaptiveCardExtensionPropertiesMetadata.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @internal
3
+ */ export { };
4
+
5
+ //# sourceMappingURL=./IAdaptiveCardRenderParameters.js.map
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Size of the Card view.
3
+ *
4
+ * @public
5
+ */ /**
6
+ * The data parameters for Sign In Card View for Bot ACEs in Teams.
7
+ *
8
+ * @internal
9
+ */ export { };
10
+
11
+ //# sourceMappingURL=./IBaseCardParameters.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Confirmation Dialog option that is passed through `Submit` Action is executed.
3
+ * @public
4
+ */ export { };
5
+
6
+ //# sourceMappingURL=./ICardButton.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * `Card` is the default render View. `QuickView` is a more detailed view of the Adaptive Card Extension.
3
+ * @public
4
+ */ export { };
5
+
6
+ //# sourceMappingURL=./ICardRenderParameters.js.map
@@ -4,6 +4,6 @@
4
4
  * @remarks `focusTarget` is ignored for the initial opening of the quick view. Any subsequent quick view changes will utilize `focusTarget`.
5
5
  *
6
6
  * @public
7
- */
8
- export {};
9
- //# sourceMappingURL=IFocusParameters.js.map
7
+ */ export { };
8
+
9
+ //# sourceMappingURL=./IFocusParameters.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This object represents the error data that the Location action can throw.
3
+
4
+ * @public
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./IGetLocationActionTypes.js.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ *
3
+ * HostTheme is used to define the current colour scheme for the Client (VCM) app. It can be
4
+ * - `light`: Client app is in light mode,
5
+ * - `dark`: Client app is in dark mode,
6
+ * - `undefined`: Unspecified Environment. (For web and Teams app desktop we get the value undefined).
7
+ * @internal @deprecated - Use `sdks` to access teams Context instead.
8
+ */ /**
9
+ * IHostContext is an object which is passed to Adaptive card context to access different options of Client Environment.
10
+ * Ex: theme of Viva Connections Mobile (VCM) App (light/dark)'
11
+ *
12
+ * @internal @deprecated - Use `sdks` to access teams Context instead.
13
+ */ export { };
14
+
15
+ //# sourceMappingURL=./IHostContext.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Interface for location coordinates
3
+ * @public
4
+ */ export { };
5
+
6
+ //# sourceMappingURL=./ILocation.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The object returned from {@link BaseAdaptiveCardExtension.onNotificationReceived} if it has handled the notification.
3
+ *
4
+ * @remarks ACE should return the registered quickViewId which it wants to display for the notification.
5
+ *
6
+ * @beta
7
+ */ export { };
8
+
9
+ //# sourceMappingURL=./INotificationTypes.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The object passed to {@link BaseAdaptiveCardExtension.onBeforeAction} when a `ShowLocation` Action is triggered.
3
+ *
4
+ * @public
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./IOnBeforeActionArguments.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @internal
3
+ */ export { };
4
+
5
+ //# sourceMappingURL=./IQuickViewRenderParameters.js.map
@@ -0,0 +1,7 @@
1
+ /**
2
+ * SPFx Adaptive Card Extension schema for Adaptive Cards.
3
+ *
4
+ * @public
5
+ */ export { };
6
+
7
+ //# sourceMappingURL=./ISPFxAdaptiveCard.js.map
@@ -1,12 +1,8 @@
1
- /**
2
- * Enum value to specify the type of media.
3
-
4
- * @public
5
- */
6
1
  export var MediaType;
7
- (function (MediaType) {
2
+ (function(MediaType) {
8
3
  MediaType[MediaType["Image"] = 1] = "Image";
9
4
  MediaType[MediaType["Audio"] = 4] = "Audio";
10
5
  MediaType[MediaType["Document"] = 8] = "Document";
11
6
  })(MediaType || (MediaType = {}));
12
- //# sourceMappingURL=ISelectMediaActionTypes.js.map
7
+
8
+ //# sourceMappingURL=./ISelectMediaActionTypes.js.map
@@ -0,0 +1,5 @@
1
+ /**
2
+ * @internal
3
+ */ export { };
4
+
5
+ //# sourceMappingURL=./ISelectionActionTemplateAdaptiveCard.js.map
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Error interface for 'VivaAction.ShowLocation' is {@link IGetLocationAction.ILocationErrorArguments}
3
+ */ /**
4
+ * Invoke an `VivaAction.ShowLocation` event.
5
+
6
+ * @public
7
+ */ export { };
8
+
9
+ //# sourceMappingURL=./IShowLocationActionTypes.js.map
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @internal
3
+ * Defines the subType property for the extended TextBlock element.
4
+ */ export { };
5
+
6
+ //# sourceMappingURL=./InternalTypes.js.map