@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.
- package/dist/eeec822e-c28a-46b4-affc-7058e4c1aa80.manifest.json +137 -142
- package/dist/index-internal-beta.d.ts +2 -6
- package/dist/index-internal-public.d.ts +2 -6
- package/dist/index-internal.d.ts +193 -28
- package/dist/index.d.ts +2 -2
- package/dist/sp-adaptive-card-extension-base_default_be5d2a76104ab20a7df3.js +1 -0
- package/dist/sp-adaptive-card-extension-base_en-us_daf5e5154e82492eea26.js +1 -0
- package/dist/sp-adaptive-card-extension-base_qps-ploc_3f63afdd6f59d8592622.js +1 -0
- package/dist/sp-adaptive-card-extension-base_qps-ploca_0bc9525a6a1a759b7d4f.js +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/AdaptiveCardExtensionContext.js +66 -99
- package/lib-commonjs/AdaptiveCardExtensionHost.js +52 -60
- package/lib-commonjs/AdaptiveCardExtensionLoader.js +90 -97
- package/lib-commonjs/BaseAdaptiveCardExtension.js +941 -1138
- package/lib-commonjs/ac-template/basicL1Template.js +19 -14
- package/lib-commonjs/ac-template/basicL1TemplateSelectAction.js +19 -14
- package/lib-commonjs/ac-template/common/Constants.js +13 -5
- package/lib-commonjs/ac-template/common/CustomElements.js +63 -51
- package/lib-commonjs/ac-template/imageL1Template.js +19 -14
- package/lib-commonjs/ac-template/imageL1TemplateSelectAction.js +19 -14
- package/lib-commonjs/ac-template/index.js +37 -15
- package/lib-commonjs/ac-template/primaryTextL1Template.js +22 -15
- package/lib-commonjs/ac-template/primaryTextL1TemplateSelectAction.js +22 -15
- package/lib-commonjs/ac-template/searchL1Template.js +21 -20
- package/lib-commonjs/ac-template/textInputL1Template.js +38 -39
- package/lib-commonjs/ac-template/util/actionButtonHelper.js +76 -78
- package/lib-commonjs/ac-template/util/getCardRenderParameters.js +109 -119
- package/lib-commonjs/actionShim/AdaptiveCardExtensionActionShim.js +86 -100
- package/lib-commonjs/actionShim/IActionShimProvider.js +5 -2
- package/lib-commonjs/actionShim/getOnBeforeActionArguments.js +30 -29
- package/lib-commonjs/caching/CacheManager.js +40 -35
- package/lib-commonjs/caching/IAdaptiveCardExtensionCacheObject.js +5 -2
- package/lib-commonjs/caching/ICacheSettings.js +5 -2
- package/lib-commonjs/caching/ICachedLoadParameters.js +11 -4
- package/lib-commonjs/caching/cache/ACEMySiteCacheManager.js +88 -90
- package/lib-commonjs/caching/cache/BaseAdaptiveCardExtensionCache.js +21 -24
- package/lib-commonjs/caching/cache/IAdaptiveCardExtensionCache.js +5 -2
- package/lib-commonjs/caching/cache/LocalStorageACECache.js +56 -64
- package/lib-commonjs/common/Flights.js +27 -16
- package/lib-commonjs/common/Killswitches.js +143 -150
- package/lib-commonjs/components/BarChartComponent.js +68 -72
- package/lib-commonjs/components/BaseComponent.js +15 -15
- package/lib-commonjs/components/CardBarComponent.js +15 -9
- package/lib-commonjs/components/CardButtonComponent.js +26 -23
- package/lib-commonjs/components/DataVisualizationComponent.js +30 -19
- package/lib-commonjs/components/ICardButtonBase.js +5 -2
- package/lib-commonjs/components/LineChartComponent.js +28 -22
- package/lib-commonjs/components/PieChartComponent.js +69 -44
- package/lib-commonjs/components/PoweredByComponent.js +15 -9
- package/lib-commonjs/components/PromptsSetComponent.js +15 -9
- package/lib-commonjs/components/SearchBoxComponent.js +15 -9
- package/lib-commonjs/components/SearchFooterComponent.js +15 -6
- package/lib-commonjs/components/TextComponent.js +15 -9
- package/lib-commonjs/components/TextInputComponent.js +15 -9
- package/lib-commonjs/index.js +201 -91
- package/lib-commonjs/interfaces/CardActionType.js +5 -2
- package/lib-commonjs/interfaces/IActionArguments.js +5 -2
- package/lib-commonjs/interfaces/IAdaptiveCardExtension.js +5 -2
- package/lib-commonjs/interfaces/IAdaptiveCardExtensionData.js +5 -2
- package/lib-commonjs/interfaces/IAdaptiveCardExtensionImage.js +12 -3
- package/lib-commonjs/interfaces/IAdaptiveCardExtensionLoadContext.js +5 -2
- package/lib-commonjs/interfaces/IAdaptiveCardExtensionPropertiesMetadata.js +5 -2
- package/lib-commonjs/interfaces/IAdaptiveCardRenderParameters.js +5 -2
- package/lib-commonjs/interfaces/IBaseCardParameters.js +10 -3
- package/lib-commonjs/interfaces/ICardButton.js +5 -2
- package/lib-commonjs/interfaces/ICardRenderParameters.js +5 -2
- package/lib-commonjs/interfaces/IFocusParameters.js +6 -4
- package/lib-commonjs/interfaces/IGetLocationActionTypes.js +5 -2
- package/lib-commonjs/interfaces/IHostContext.js +13 -3
- package/lib-commonjs/interfaces/ILocation.js +6 -4
- package/lib-commonjs/interfaces/INotificationTypes.js +5 -2
- package/lib-commonjs/interfaces/IOnBeforeActionArguments.js +5 -2
- package/lib-commonjs/interfaces/IQuickViewRenderParameters.js +5 -2
- package/lib-commonjs/interfaces/ISPFxAdaptiveCard.js +5 -2
- package/lib-commonjs/interfaces/ISelectMediaActionTypes.js +13 -10
- package/lib-commonjs/interfaces/ISelectionActionTemplateAdaptiveCard.js +5 -2
- package/lib-commonjs/interfaces/IShowLocationActionTypes.js +5 -2
- package/lib-commonjs/interfaces/InternalTypes.js +9 -3
- package/lib-commonjs/isolation/IsolatedAdaptiveCardExtensionService.js +396 -399
- package/lib-commonjs/isolation/RenderArgumentsUtils.js +99 -86
- package/lib-commonjs/isolation/interfaces/IBot.js +6 -4
- package/lib-commonjs/isolation/interfaces/IIsolatedAction.js +5 -2
- package/lib-commonjs/isolation/interfaces/IIsolatedListener.js +5 -2
- package/lib-commonjs/isolation/interfaces/IIsolatedServiceCallbackParameters.js +5 -2
- package/lib-commonjs/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +5 -2
- package/lib-commonjs/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +13 -3
- package/lib-commonjs/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +5 -2
- package/lib-commonjs/isolation/interfaces/IsolatedServiceMessageEvent.js +5 -2
- package/lib-commonjs/test-api/AdaptiveCardExtensionTestWrapper.js +95 -123
- package/lib-commonjs/test-api/MockAdaptiveCardExtensionManifestInstance.js +22 -11
- package/lib-commonjs/test-api/index.js +12 -5
- package/lib-commonjs/utilities/StringHelper.js +13 -10
- package/lib-commonjs/views/base/BaseView.js +46 -76
- package/lib-commonjs/views/card/BaseBasicCardView.js +37 -52
- package/lib-commonjs/views/card/BaseCardView.js +56 -81
- package/lib-commonjs/views/card/BaseComponentsCardView.js +41 -39
- package/lib-commonjs/views/card/BaseImageCardView.js +38 -54
- package/lib-commonjs/views/card/BasePrimaryTextCardView.js +37 -54
- package/lib-commonjs/views/card/BaseTemplateCardView.js +47 -67
- package/lib-commonjs/views/card/DefaultCardView.js +24 -29
- package/lib-commonjs/views/card/parameters/BaseParameters.js +5 -2
- package/lib-commonjs/views/card/parameters/CardViewParametersProcessors.js +26 -31
- package/lib-commonjs/views/card/parameters/DataVisualizationParameters.js +75 -76
- package/lib-commonjs/views/card/parameters/FocusedParameters.js +53 -35
- package/lib-commonjs/views/card/parameters/GenericTemplates.js +87 -70
- package/lib-commonjs/views/interfaces/IAdaptiveCardExtensionActionView.js +5 -2
- package/lib-commonjs/views/interfaces/IAdaptiveCardExtensionDataView.js +5 -2
- package/lib-commonjs/views/interfaces/INavigationBarProperties.js +5 -2
- package/lib-commonjs/views/interfaces/IViewNavigator.js +5 -2
- package/lib-commonjs/views/navigator/QuickViewNavigator.js +22 -28
- package/lib-commonjs/views/navigator/ViewNavigator.js +138 -193
- package/lib-commonjs/views/navigator/ViewRegistry.js +25 -26
- package/lib-commonjs/views/quickView/BaseAdaptiveCardQuickView.js +64 -88
- package/lib-commonjs/views/quickView/BaseQuickView.js +32 -46
- package/lib-commonjs/views/quickView/BaseWebQuickView.js +47 -59
- package/{lib → lib-dts}/AdaptiveCardExtensionContext.d.ts +1 -5
- package/{lib → lib-dts}/BaseAdaptiveCardExtension.d.ts +2 -1
- package/lib-esm/AdaptiveCardExtensionContext.js +67 -0
- package/lib-esm/AdaptiveCardExtensionHost.js +65 -0
- package/{lib → lib-esm}/AdaptiveCardExtensionLoader.js +56 -74
- package/lib-esm/BaseAdaptiveCardExtension.js +1237 -0
- package/{lib → lib-esm}/ac-template/basicL1Template.js +6 -4
- package/{lib → lib-esm}/ac-template/basicL1TemplateSelectAction.js +6 -4
- package/{lib → lib-esm}/ac-template/common/Constants.js +3 -2
- package/{lib → lib-esm}/ac-template/common/CustomElements.js +26 -30
- package/{lib → lib-esm}/ac-template/imageL1Template.js +6 -4
- package/{lib → lib-esm}/ac-template/imageL1TemplateSelectAction.js +6 -4
- package/{lib → lib-esm}/ac-template/index.js +2 -1
- package/{lib → lib-esm}/ac-template/primaryTextL1Template.js +10 -5
- package/{lib → lib-esm}/ac-template/primaryTextL1TemplateSelectAction.js +10 -5
- package/{lib → lib-esm}/ac-template/searchL1Template.js +7 -7
- package/{lib → lib-esm}/ac-template/textInputL1Template.js +10 -13
- package/{lib → lib-esm}/ac-template/util/actionButtonHelper.js +45 -57
- package/{lib → lib-esm}/ac-template/util/getCardRenderParameters.js +75 -92
- package/{lib → lib-esm}/actionShim/AdaptiveCardExtensionActionShim.js +74 -87
- package/lib-esm/actionShim/IActionShimProvider.js +7 -0
- package/{lib → lib-esm}/actionShim/getOnBeforeActionArguments.js +22 -25
- package/lib-esm/caching/CacheManager.js +55 -0
- package/lib-esm/caching/IAdaptiveCardExtensionCacheObject.js +7 -0
- package/lib-esm/caching/ICacheSettings.js +5 -0
- package/{lib → lib-esm}/caching/ICachedLoadParameters.js +2 -1
- package/lib-esm/caching/cache/ACEMySiteCacheManager.js +130 -0
- package/{lib → lib-esm}/caching/cache/BaseAdaptiveCardExtensionCache.js +10 -16
- package/lib-esm/caching/cache/IAdaptiveCardExtensionCache.js +7 -0
- package/lib-esm/caching/cache/LocalStorageACECache.js +73 -0
- package/{lib → lib-esm}/common/Flights.js +6 -8
- package/{lib → lib-esm}/common/Killswitches.js +37 -105
- package/lib-esm/components/BarChartComponent.js +112 -0
- package/{lib → lib-esm}/components/BaseComponent.js +8 -4
- package/lib-esm/components/CardBarComponent.js +10 -0
- package/{lib → lib-esm}/components/CardButtonComponent.js +9 -9
- package/lib-esm/components/DataVisualizationComponent.js +26 -0
- package/lib-esm/components/ICardButtonBase.js +7 -0
- package/lib-esm/components/LineChartComponent.js +29 -0
- package/lib-esm/components/PieChartComponent.js +115 -0
- package/lib-esm/components/PoweredByComponent.js +10 -0
- package/lib-esm/components/PromptsSetComponent.js +10 -0
- package/lib-esm/components/SearchBoxComponent.js +10 -0
- package/lib-esm/components/SearchFooterComponent.js +8 -0
- package/lib-esm/components/TextComponent.js +10 -0
- package/lib-esm/components/TextInputComponent.js +10 -0
- package/{lib → lib-esm}/index.js +3 -3
- package/lib-esm/interfaces/CardActionType.js +5 -0
- package/lib-esm/interfaces/IActionArguments.js +7 -0
- package/lib-esm/interfaces/IAdaptiveCardExtension.js +7 -0
- package/lib-esm/interfaces/IAdaptiveCardExtensionData.js +5 -0
- package/lib-esm/interfaces/IAdaptiveCardExtensionImage.js +15 -0
- package/lib-esm/interfaces/IAdaptiveCardExtensionLoadContext.js +5 -0
- package/lib-esm/interfaces/IAdaptiveCardExtensionPropertiesMetadata.js +7 -0
- package/lib-esm/interfaces/IAdaptiveCardRenderParameters.js +5 -0
- package/lib-esm/interfaces/IBaseCardParameters.js +11 -0
- package/lib-esm/interfaces/ICardButton.js +6 -0
- package/lib-esm/interfaces/ICardRenderParameters.js +6 -0
- package/{lib → lib-esm}/interfaces/IFocusParameters.js +3 -3
- package/lib-esm/interfaces/IGetLocationActionTypes.js +7 -0
- package/lib-esm/interfaces/IHostContext.js +15 -0
- package/lib-esm/interfaces/ILocation.js +6 -0
- package/lib-esm/interfaces/INotificationTypes.js +9 -0
- package/lib-esm/interfaces/IOnBeforeActionArguments.js +7 -0
- package/lib-esm/interfaces/IQuickViewRenderParameters.js +5 -0
- package/lib-esm/interfaces/ISPFxAdaptiveCard.js +7 -0
- package/{lib → lib-esm}/interfaces/ISelectMediaActionTypes.js +3 -7
- package/lib-esm/interfaces/ISelectionActionTemplateAdaptiveCard.js +5 -0
- package/lib-esm/interfaces/IShowLocationActionTypes.js +9 -0
- package/lib-esm/interfaces/InternalTypes.js +6 -0
- package/lib-esm/isolation/IsolatedAdaptiveCardExtensionService.js +505 -0
- package/{lib → lib-esm}/isolation/RenderArgumentsUtils.js +79 -71
- package/{lib → lib-esm}/isolation/interfaces/IBot.js +3 -3
- package/lib-esm/isolation/interfaces/IIsolatedAction.js +5 -0
- package/lib-esm/isolation/interfaces/IIsolatedListener.js +7 -0
- package/lib-esm/isolation/interfaces/IIsolatedServiceCallbackParameters.js +5 -0
- package/lib-esm/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +7 -0
- package/lib-esm/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +10 -0
- package/lib-esm/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +5 -0
- package/lib-esm/isolation/interfaces/IsolatedServiceMessageEvent.js +5 -0
- package/lib-esm/test-api/AdaptiveCardExtensionTestWrapper.js +125 -0
- package/{lib → lib-esm}/test-api/MockAdaptiveCardExtensionManifestInstance.js +12 -8
- package/{lib → lib-esm}/test-api/index.js +2 -1
- package/lib-esm/utilities/StringHelper.js +8 -0
- package/lib-esm/views/base/BaseView.js +47 -0
- package/lib-esm/views/card/BaseBasicCardView.js +51 -0
- package/lib-esm/views/card/BaseCardView.js +59 -0
- package/lib-esm/views/card/BaseComponentsCardView.js +43 -0
- package/{lib → lib-esm}/views/card/BaseImageCardView.js +24 -36
- package/{lib → lib-esm}/views/card/BasePrimaryTextCardView.js +23 -35
- package/lib-esm/views/card/BaseTemplateCardView.js +65 -0
- package/lib-esm/views/card/DefaultCardView.js +19 -0
- package/lib-esm/views/card/parameters/BaseParameters.js +7 -0
- package/lib-esm/views/card/parameters/CardViewParametersProcessors.js +30 -0
- package/{lib → lib-esm}/views/card/parameters/DataVisualizationParameters.js +41 -35
- package/lib-esm/views/card/parameters/FocusedParameters.js +58 -0
- package/{lib → lib-esm}/views/card/parameters/GenericTemplates.js +59 -34
- package/lib-esm/views/interfaces/IAdaptiveCardExtensionActionView.js +7 -0
- package/lib-esm/views/interfaces/IAdaptiveCardExtensionDataView.js +7 -0
- package/lib-esm/views/interfaces/INavigationBarProperties.js +5 -0
- package/lib-esm/views/interfaces/IViewNavigator.js +5 -0
- package/lib-esm/views/navigator/QuickViewNavigator.js +22 -0
- package/lib-esm/views/navigator/ViewNavigator.js +174 -0
- package/lib-esm/views/navigator/ViewRegistry.js +26 -0
- package/lib-esm/views/quickView/BaseAdaptiveCardQuickView.js +65 -0
- package/lib-esm/views/quickView/BaseQuickView.js +28 -0
- package/lib-esm/views/quickView/BaseWebQuickView.js +49 -0
- package/package.json +52 -17
- package/dist/index.js +0 -8
- package/dist/sp-adaptive-card-extension-base_default_bb680b206988d853312e.js +0 -1
- package/dist/sp-adaptive-card-extension-base_en-us_9d6af508c1713a71b939.js +0 -1
- package/dist/sp-adaptive-card-extension-base_qps-ploc_4f70291b86b8b32dfb95.js +0 -1
- package/dist/sp-adaptive-card-extension-base_qps-ploca_ae8667091e2a4a4f5af7.js +0 -1
- package/dist/test-api/AdaptiveCardExtensionTestWrapper.js +0 -155
- package/dist/test-api/MockAdaptiveCardExtensionManifestInstance.js +0 -23
- package/dist/test-api/index.js +0 -6
- package/lib/AdaptiveCardExtensionContext.d.ts.map +0 -1
- package/lib/AdaptiveCardExtensionContext.js +0 -103
- package/lib/AdaptiveCardExtensionHost.d.ts.map +0 -1
- package/lib/AdaptiveCardExtensionHost.js +0 -76
- package/lib/AdaptiveCardExtensionLoader.d.ts.map +0 -1
- package/lib/BaseAdaptiveCardExtension.d.ts.map +0 -1
- package/lib/BaseAdaptiveCardExtension.js +0 -1433
- package/lib/ac-template/basicL1Template.d.ts.map +0 -1
- package/lib/ac-template/basicL1TemplateSelectAction.d.ts.map +0 -1
- package/lib/ac-template/common/Constants.d.ts.map +0 -1
- package/lib/ac-template/common/CustomElements.d.ts.map +0 -1
- package/lib/ac-template/imageL1Template.d.ts.map +0 -1
- package/lib/ac-template/imageL1TemplateSelectAction.d.ts.map +0 -1
- package/lib/ac-template/index.d.ts.map +0 -1
- package/lib/ac-template/primaryTextL1Template.d.ts.map +0 -1
- package/lib/ac-template/primaryTextL1TemplateSelectAction.d.ts.map +0 -1
- package/lib/ac-template/searchL1Template.d.ts.map +0 -1
- package/lib/ac-template/textInputL1Template.d.ts.map +0 -1
- package/lib/ac-template/util/actionButtonHelper.d.ts.map +0 -1
- package/lib/ac-template/util/getCardRenderParameters.d.ts.map +0 -1
- package/lib/actionShim/AdaptiveCardExtensionActionShim.d.ts.map +0 -1
- package/lib/actionShim/IActionShimProvider.d.ts.map +0 -1
- package/lib/actionShim/IActionShimProvider.js +0 -2
- package/lib/actionShim/getOnBeforeActionArguments.d.ts.map +0 -1
- package/lib/caching/CacheManager.d.ts.map +0 -1
- package/lib/caching/CacheManager.js +0 -57
- package/lib/caching/IAdaptiveCardExtensionCacheObject.d.ts.map +0 -1
- package/lib/caching/IAdaptiveCardExtensionCacheObject.js +0 -2
- package/lib/caching/ICacheSettings.d.ts.map +0 -1
- package/lib/caching/ICacheSettings.js +0 -2
- package/lib/caching/ICachedLoadParameters.d.ts.map +0 -1
- package/lib/caching/cache/ACEMySiteCacheManager.d.ts.map +0 -1
- package/lib/caching/cache/ACEMySiteCacheManager.js +0 -135
- package/lib/caching/cache/BaseAdaptiveCardExtensionCache.d.ts.map +0 -1
- package/lib/caching/cache/IAdaptiveCardExtensionCache.d.ts.map +0 -1
- package/lib/caching/cache/IAdaptiveCardExtensionCache.js +0 -2
- package/lib/caching/cache/LocalStorageACECache.d.ts.map +0 -1
- package/lib/caching/cache/LocalStorageACECache.js +0 -84
- package/lib/common/Flights.d.ts.map +0 -1
- package/lib/common/Killswitches.d.ts.map +0 -1
- package/lib/components/BarChartComponent.d.ts.map +0 -1
- package/lib/components/BarChartComponent.js +0 -125
- package/lib/components/BaseComponent.d.ts.map +0 -1
- package/lib/components/CardBarComponent.d.ts.map +0 -1
- package/lib/components/CardBarComponent.js +0 -8
- package/lib/components/CardButtonComponent.d.ts.map +0 -1
- package/lib/components/DataVisualizationComponent.d.ts.map +0 -1
- package/lib/components/DataVisualizationComponent.js +0 -24
- package/lib/components/ICardButtonBase.d.ts.map +0 -1
- package/lib/components/ICardButtonBase.js +0 -2
- package/lib/components/LineChartComponent.d.ts.map +0 -1
- package/lib/components/LineChartComponent.js +0 -32
- package/lib/components/PieChartComponent.d.ts.map +0 -1
- package/lib/components/PieChartComponent.js +0 -99
- package/lib/components/PoweredByComponent.d.ts.map +0 -1
- package/lib/components/PoweredByComponent.js +0 -8
- package/lib/components/PromptsSetComponent.d.ts.map +0 -1
- package/lib/components/PromptsSetComponent.js +0 -8
- package/lib/components/SearchBoxComponent.d.ts.map +0 -1
- package/lib/components/SearchBoxComponent.js +0 -8
- package/lib/components/SearchFooterComponent.d.ts.map +0 -1
- package/lib/components/SearchFooterComponent.js +0 -5
- package/lib/components/TextComponent.d.ts.map +0 -1
- package/lib/components/TextComponent.js +0 -8
- package/lib/components/TextInputComponent.d.ts.map +0 -1
- package/lib/components/TextInputComponent.js +0 -8
- package/lib/index.d.ts.map +0 -1
- package/lib/interfaces/CardActionType.d.ts.map +0 -1
- package/lib/interfaces/CardActionType.js +0 -2
- package/lib/interfaces/IActionArguments.d.ts.map +0 -1
- package/lib/interfaces/IActionArguments.js +0 -2
- package/lib/interfaces/IAdaptiveCardExtension.d.ts.map +0 -1
- package/lib/interfaces/IAdaptiveCardExtension.js +0 -2
- package/lib/interfaces/IAdaptiveCardExtensionData.d.ts.map +0 -1
- package/lib/interfaces/IAdaptiveCardExtensionData.js +0 -2
- package/lib/interfaces/IAdaptiveCardExtensionImage.d.ts.map +0 -1
- package/lib/interfaces/IAdaptiveCardExtensionImage.js +0 -2
- package/lib/interfaces/IAdaptiveCardExtensionLoadContext.d.ts.map +0 -1
- package/lib/interfaces/IAdaptiveCardExtensionLoadContext.js +0 -2
- package/lib/interfaces/IAdaptiveCardExtensionPropertiesMetadata.d.ts.map +0 -1
- package/lib/interfaces/IAdaptiveCardExtensionPropertiesMetadata.js +0 -2
- package/lib/interfaces/IAdaptiveCardRenderParameters.d.ts.map +0 -1
- package/lib/interfaces/IAdaptiveCardRenderParameters.js +0 -2
- package/lib/interfaces/IBaseCardParameters.d.ts.map +0 -1
- package/lib/interfaces/IBaseCardParameters.js +0 -2
- package/lib/interfaces/ICardButton.d.ts.map +0 -1
- package/lib/interfaces/ICardButton.js +0 -2
- package/lib/interfaces/ICardRenderParameters.d.ts.map +0 -1
- package/lib/interfaces/ICardRenderParameters.js +0 -2
- package/lib/interfaces/IFocusParameters.d.ts.map +0 -1
- package/lib/interfaces/IGetLocationActionTypes.d.ts.map +0 -1
- package/lib/interfaces/IGetLocationActionTypes.js +0 -2
- package/lib/interfaces/IHostContext.d.ts.map +0 -1
- package/lib/interfaces/IHostContext.js +0 -2
- package/lib/interfaces/ILocation.d.ts.map +0 -1
- package/lib/interfaces/ILocation.js +0 -6
- package/lib/interfaces/INotificationTypes.d.ts.map +0 -1
- package/lib/interfaces/INotificationTypes.js +0 -2
- package/lib/interfaces/IOnBeforeActionArguments.d.ts.map +0 -1
- package/lib/interfaces/IOnBeforeActionArguments.js +0 -2
- package/lib/interfaces/IQuickViewRenderParameters.d.ts.map +0 -1
- package/lib/interfaces/IQuickViewRenderParameters.js +0 -2
- package/lib/interfaces/ISPFxAdaptiveCard.d.ts.map +0 -1
- package/lib/interfaces/ISPFxAdaptiveCard.js +0 -2
- package/lib/interfaces/ISelectMediaActionTypes.d.ts.map +0 -1
- package/lib/interfaces/ISelectionActionTemplateAdaptiveCard.d.ts.map +0 -1
- package/lib/interfaces/ISelectionActionTemplateAdaptiveCard.js +0 -2
- package/lib/interfaces/IShowLocationActionTypes.d.ts.map +0 -1
- package/lib/interfaces/IShowLocationActionTypes.js +0 -2
- package/lib/interfaces/InternalTypes.d.ts.map +0 -1
- package/lib/interfaces/InternalTypes.js +0 -2
- package/lib/isolation/IsolatedAdaptiveCardExtensionService.d.ts.map +0 -1
- package/lib/isolation/IsolatedAdaptiveCardExtensionService.js +0 -513
- package/lib/isolation/RenderArgumentsUtils.d.ts.map +0 -1
- package/lib/isolation/interfaces/IBot.d.ts.map +0 -1
- package/lib/isolation/interfaces/IIsolatedAction.d.ts.map +0 -1
- package/lib/isolation/interfaces/IIsolatedAction.js +0 -2
- package/lib/isolation/interfaces/IIsolatedListener.d.ts.map +0 -1
- package/lib/isolation/interfaces/IIsolatedListener.js +0 -2
- package/lib/isolation/interfaces/IIsolatedServiceCallbackParameters.d.ts.map +0 -1
- package/lib/isolation/interfaces/IIsolatedServiceCallbackParameters.js +0 -2
- package/lib/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.d.ts.map +0 -1
- package/lib/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.js +0 -2
- package/lib/isolation/interfaces/IRenderIsolatedQuickViewParameters.d.ts.map +0 -1
- package/lib/isolation/interfaces/IRenderIsolatedQuickViewParameters.js +0 -2
- package/lib/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.d.ts.map +0 -1
- package/lib/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.js +0 -2
- package/lib/isolation/interfaces/IsolatedServiceMessageEvent.d.ts.map +0 -1
- package/lib/isolation/interfaces/IsolatedServiceMessageEvent.js +0 -2
- package/lib/test-api/AdaptiveCardExtensionTestWrapper.d.ts.map +0 -1
- package/lib/test-api/AdaptiveCardExtensionTestWrapper.js +0 -152
- package/lib/test-api/MockAdaptiveCardExtensionManifestInstance.d.ts.map +0 -1
- package/lib/test-api/index.d.ts.map +0 -1
- package/lib/utilities/StringHelper.d.ts.map +0 -1
- package/lib/utilities/StringHelper.js +0 -11
- package/lib/views/base/BaseView.d.ts.map +0 -1
- package/lib/views/base/BaseView.js +0 -77
- package/lib/views/card/BaseBasicCardView.d.ts.map +0 -1
- package/lib/views/card/BaseBasicCardView.js +0 -63
- package/lib/views/card/BaseCardView.d.ts.map +0 -1
- package/lib/views/card/BaseCardView.js +0 -84
- package/lib/views/card/BaseComponentsCardView.d.ts.map +0 -1
- package/lib/views/card/BaseComponentsCardView.js +0 -44
- package/lib/views/card/BaseImageCardView.d.ts.map +0 -1
- package/lib/views/card/BasePrimaryTextCardView.d.ts.map +0 -1
- package/lib/views/card/BaseTemplateCardView.d.ts.map +0 -1
- package/lib/views/card/BaseTemplateCardView.js +0 -85
- package/lib/views/card/DefaultCardView.d.ts.map +0 -1
- package/lib/views/card/DefaultCardView.js +0 -29
- package/lib/views/card/parameters/BaseParameters.d.ts.map +0 -1
- package/lib/views/card/parameters/BaseParameters.js +0 -2
- package/lib/views/card/parameters/CardViewParametersProcessors.d.ts.map +0 -1
- package/lib/views/card/parameters/CardViewParametersProcessors.js +0 -37
- package/lib/views/card/parameters/DataVisualizationParameters.d.ts.map +0 -1
- package/lib/views/card/parameters/FocusedParameters.d.ts.map +0 -1
- package/lib/views/card/parameters/FocusedParameters.js +0 -43
- package/lib/views/card/parameters/GenericTemplates.d.ts.map +0 -1
- package/lib/views/interfaces/IAdaptiveCardExtensionActionView.d.ts.map +0 -1
- package/lib/views/interfaces/IAdaptiveCardExtensionActionView.js +0 -2
- package/lib/views/interfaces/IAdaptiveCardExtensionDataView.d.ts.map +0 -1
- package/lib/views/interfaces/IAdaptiveCardExtensionDataView.js +0 -2
- package/lib/views/interfaces/INavigationBarProperties.d.ts.map +0 -1
- package/lib/views/interfaces/INavigationBarProperties.js +0 -2
- package/lib/views/interfaces/IViewNavigator.d.ts.map +0 -1
- package/lib/views/interfaces/IViewNavigator.js +0 -2
- package/lib/views/navigator/QuickViewNavigator.d.ts.map +0 -1
- package/lib/views/navigator/QuickViewNavigator.js +0 -29
- package/lib/views/navigator/ViewNavigator.d.ts.map +0 -1
- package/lib/views/navigator/ViewNavigator.js +0 -233
- package/lib/views/navigator/ViewRegistry.d.ts.map +0 -1
- package/lib/views/navigator/ViewRegistry.js +0 -32
- package/lib/views/quickView/BaseAdaptiveCardQuickView.d.ts.map +0 -1
- package/lib/views/quickView/BaseAdaptiveCardQuickView.js +0 -90
- package/lib/views/quickView/BaseQuickView.d.ts.map +0 -1
- package/lib/views/quickView/BaseQuickView.js +0 -45
- package/lib/views/quickView/BaseWebQuickView.d.ts.map +0 -1
- package/lib/views/quickView/BaseWebQuickView.js +0 -64
- /package/{lib → lib-dts}/AdaptiveCardExtensionHost.d.ts +0 -0
- /package/{lib → lib-dts}/AdaptiveCardExtensionLoader.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/basicL1Template.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/basicL1TemplateSelectAction.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/common/Constants.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/common/CustomElements.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/imageL1Template.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/imageL1TemplateSelectAction.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/index.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/primaryTextL1Template.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/primaryTextL1TemplateSelectAction.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/searchL1Template.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/textInputL1Template.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/util/actionButtonHelper.d.ts +0 -0
- /package/{lib → lib-dts}/ac-template/util/getCardRenderParameters.d.ts +0 -0
- /package/{lib → lib-dts}/actionShim/AdaptiveCardExtensionActionShim.d.ts +0 -0
- /package/{lib → lib-dts}/actionShim/IActionShimProvider.d.ts +0 -0
- /package/{lib → lib-dts}/actionShim/getOnBeforeActionArguments.d.ts +0 -0
- /package/{lib → lib-dts}/caching/CacheManager.d.ts +0 -0
- /package/{lib → lib-dts}/caching/IAdaptiveCardExtensionCacheObject.d.ts +0 -0
- /package/{lib → lib-dts}/caching/ICacheSettings.d.ts +0 -0
- /package/{lib → lib-dts}/caching/ICachedLoadParameters.d.ts +0 -0
- /package/{lib → lib-dts}/caching/cache/ACEMySiteCacheManager.d.ts +0 -0
- /package/{lib → lib-dts}/caching/cache/BaseAdaptiveCardExtensionCache.d.ts +0 -0
- /package/{lib → lib-dts}/caching/cache/IAdaptiveCardExtensionCache.d.ts +0 -0
- /package/{lib → lib-dts}/caching/cache/LocalStorageACECache.d.ts +0 -0
- /package/{lib → lib-dts}/common/Flights.d.ts +0 -0
- /package/{lib → lib-dts}/common/Killswitches.d.ts +0 -0
- /package/{lib → lib-dts}/components/BarChartComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/BaseComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/CardBarComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/CardButtonComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/DataVisualizationComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/ICardButtonBase.d.ts +0 -0
- /package/{lib → lib-dts}/components/LineChartComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/PieChartComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/PoweredByComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/PromptsSetComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/SearchBoxComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/SearchFooterComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/TextComponent.d.ts +0 -0
- /package/{lib → lib-dts}/components/TextInputComponent.d.ts +0 -0
- /package/{lib → lib-dts}/index.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/CardActionType.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IActionArguments.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtension.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionData.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionImage.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionLoadContext.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IAdaptiveCardExtensionPropertiesMetadata.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IAdaptiveCardRenderParameters.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IBaseCardParameters.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/ICardButton.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/ICardRenderParameters.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IFocusParameters.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IGetLocationActionTypes.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IHostContext.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/ILocation.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/INotificationTypes.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IOnBeforeActionArguments.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IQuickViewRenderParameters.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/ISPFxAdaptiveCard.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/ISelectMediaActionTypes.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/ISelectionActionTemplateAdaptiveCard.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/IShowLocationActionTypes.d.ts +0 -0
- /package/{lib → lib-dts}/interfaces/InternalTypes.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/IsolatedAdaptiveCardExtensionService.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/RenderArgumentsUtils.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IBot.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IIsolatedAction.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IIsolatedListener.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IIsolatedServiceCallbackParameters.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/ILoadIsolatedAdaptiveCardExtensionParameters.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IRenderIsolatedQuickViewParameters.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IsolatedAdaptiveCardExtensionApplicationMessageEvent.d.ts +0 -0
- /package/{lib → lib-dts}/isolation/interfaces/IsolatedServiceMessageEvent.d.ts +0 -0
- /package/{lib → lib-dts}/loc/Strings.resx.d.ts +0 -0
- /package/{lib → lib-dts}/test-api/AdaptiveCardExtensionTestWrapper.d.ts +0 -0
- /package/{lib → lib-dts}/test-api/MockAdaptiveCardExtensionManifestInstance.d.ts +0 -0
- /package/{lib → lib-dts}/test-api/index.d.ts +0 -0
- /package/{lib → lib-dts}/utilities/StringHelper.d.ts +0 -0
- /package/{lib → lib-dts}/views/base/BaseView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/BaseBasicCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/BaseCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/BaseComponentsCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/BaseImageCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/BasePrimaryTextCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/BaseTemplateCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/DefaultCardView.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/parameters/BaseParameters.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/parameters/CardViewParametersProcessors.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/parameters/DataVisualizationParameters.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/parameters/FocusedParameters.d.ts +0 -0
- /package/{lib → lib-dts}/views/card/parameters/GenericTemplates.d.ts +0 -0
- /package/{lib → lib-dts}/views/interfaces/IAdaptiveCardExtensionActionView.d.ts +0 -0
- /package/{lib → lib-dts}/views/interfaces/IAdaptiveCardExtensionDataView.d.ts +0 -0
- /package/{lib → lib-dts}/views/interfaces/INavigationBarProperties.d.ts +0 -0
- /package/{lib → lib-dts}/views/interfaces/IViewNavigator.d.ts +0 -0
- /package/{lib → lib-dts}/views/navigator/QuickViewNavigator.d.ts +0 -0
- /package/{lib → lib-dts}/views/navigator/ViewNavigator.d.ts +0 -0
- /package/{lib → lib-dts}/views/navigator/ViewRegistry.d.ts +0 -0
- /package/{lib → lib-dts}/views/quickView/BaseAdaptiveCardQuickView.d.ts +0 -0
- /package/{lib → lib-dts}/views/quickView/BaseQuickView.d.ts +0 -0
- /package/{lib → lib-dts}/views/quickView/BaseWebQuickView.d.ts +0 -0
- /package/{lib → lib-esm}/loc/Strings.resx.json +0 -0
- /package/{lib → lib-esm}/sp-adaptive-card-base.manifest.json +0 -0
|
@@ -4,8 +4,7 @@ import { BODY_PRIMARY_TEXT, TITLE_TEXT } from './common/CustomElements';
|
|
|
4
4
|
* @internal
|
|
5
5
|
*
|
|
6
6
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
7
|
-
*/
|
|
8
|
-
export var basicL1Template = {
|
|
7
|
+
*/ export const basicL1Template = {
|
|
9
8
|
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
10
9
|
type: 'AdaptiveCard',
|
|
11
10
|
version: '1.2',
|
|
@@ -31,7 +30,9 @@ export var basicL1Template = {
|
|
|
31
30
|
{
|
|
32
31
|
type: 'Column',
|
|
33
32
|
spacing: 'none',
|
|
34
|
-
items: [
|
|
33
|
+
items: [
|
|
34
|
+
TITLE_TEXT
|
|
35
|
+
],
|
|
35
36
|
width: 'stretch'
|
|
36
37
|
}
|
|
37
38
|
]
|
|
@@ -41,4 +42,5 @@ export var basicL1Template = {
|
|
|
41
42
|
}
|
|
42
43
|
]
|
|
43
44
|
};
|
|
44
|
-
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=./basicL1Template.js.map
|
|
@@ -4,8 +4,7 @@ import { BODY_PRIMARY_TEXT, TITLE_TEXT } from './common/CustomElements';
|
|
|
4
4
|
* @internal
|
|
5
5
|
*
|
|
6
6
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
7
|
-
*/
|
|
8
|
-
export var basicL1TemplateSelectAction = {
|
|
7
|
+
*/ export const basicL1TemplateSelectAction = {
|
|
9
8
|
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
10
9
|
type: 'AdaptiveCard',
|
|
11
10
|
version: '1.2',
|
|
@@ -32,7 +31,9 @@ export var basicL1TemplateSelectAction = {
|
|
|
32
31
|
{
|
|
33
32
|
type: 'Column',
|
|
34
33
|
spacing: 'none',
|
|
35
|
-
items: [
|
|
34
|
+
items: [
|
|
35
|
+
TITLE_TEXT
|
|
36
|
+
],
|
|
36
37
|
width: 'stretch'
|
|
37
38
|
}
|
|
38
39
|
]
|
|
@@ -42,4 +43,5 @@ export var basicL1TemplateSelectAction = {
|
|
|
42
43
|
}
|
|
43
44
|
]
|
|
44
45
|
};
|
|
45
|
-
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=./basicL1TemplateSelectAction.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Note: The custom Icon element has a fixed width. Ensure this value is greater than or equal to it.
|
|
2
2
|
// Revert this: https://onedrive.visualstudio.com/WEX!/_workitems/edit/1016594
|
|
3
|
-
export
|
|
4
|
-
|
|
3
|
+
export const ICON_COLUMN_WIDTH = 'auto';
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=./Constants.js.map
|
|
@@ -8,8 +8,7 @@ import strings from '../../loc/Strings.resx';
|
|
|
8
8
|
//
|
|
9
9
|
/**
|
|
10
10
|
* @internal
|
|
11
|
-
*/
|
|
12
|
-
export var PRIMARY_TEXT = {
|
|
11
|
+
*/ export const PRIMARY_TEXT = {
|
|
13
12
|
type: 'TextBlock',
|
|
14
13
|
subType: 'Primary',
|
|
15
14
|
text: '${primaryText}',
|
|
@@ -19,8 +18,7 @@ export var PRIMARY_TEXT = {
|
|
|
19
18
|
};
|
|
20
19
|
/**
|
|
21
20
|
* @internal
|
|
22
|
-
*/
|
|
23
|
-
export var BODY_SECONDARY_TEXT = {
|
|
21
|
+
*/ export const BODY_SECONDARY_TEXT = {
|
|
24
22
|
type: 'TextBlock',
|
|
25
23
|
subType: 'BodySecondary',
|
|
26
24
|
text: '${description}',
|
|
@@ -29,8 +27,7 @@ export var BODY_SECONDARY_TEXT = {
|
|
|
29
27
|
};
|
|
30
28
|
/**
|
|
31
29
|
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export var BODY_PRIMARY_TEXT = {
|
|
30
|
+
*/ export const BODY_PRIMARY_TEXT = {
|
|
34
31
|
type: 'TextBlock',
|
|
35
32
|
subType: 'BodyPrimary',
|
|
36
33
|
text: '${primaryText}',
|
|
@@ -39,8 +36,7 @@ export var BODY_PRIMARY_TEXT = {
|
|
|
39
36
|
};
|
|
40
37
|
/**
|
|
41
38
|
* @internal
|
|
42
|
-
*/
|
|
43
|
-
export var TITLE_TEXT = {
|
|
39
|
+
*/ export const TITLE_TEXT = {
|
|
44
40
|
type: 'TextBlock',
|
|
45
41
|
subType: 'Title',
|
|
46
42
|
text: '${title}',
|
|
@@ -48,8 +44,8 @@ export var TITLE_TEXT = {
|
|
|
48
44
|
maxLines: 1,
|
|
49
45
|
spacing: 'none'
|
|
50
46
|
};
|
|
51
|
-
export
|
|
52
|
-
|
|
47
|
+
export const TEXT_INPUT = (parameters, componentId)=>{
|
|
48
|
+
const columnSet = {
|
|
53
49
|
type: 'ColumnSet',
|
|
54
50
|
columns: []
|
|
55
51
|
};
|
|
@@ -76,7 +72,7 @@ export var TEXT_INPUT = function (parameters, componentId) {
|
|
|
76
72
|
type: 'Input.Text',
|
|
77
73
|
placeholder: parameters.placeholder,
|
|
78
74
|
value: parameters.defaultValue,
|
|
79
|
-
id:
|
|
75
|
+
id: `${componentId}-input`
|
|
80
76
|
}
|
|
81
77
|
]
|
|
82
78
|
});
|
|
@@ -84,7 +80,7 @@ export var TEXT_INPUT = function (parameters, componentId) {
|
|
|
84
80
|
columnSet.columns.push({
|
|
85
81
|
type: 'Column',
|
|
86
82
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
87
|
-
width: '16px',
|
|
83
|
+
width: '16px',
|
|
88
84
|
spacing: 'none',
|
|
89
85
|
items: [
|
|
90
86
|
{
|
|
@@ -96,9 +92,9 @@ export var TEXT_INPUT = function (parameters, componentId) {
|
|
|
96
92
|
});
|
|
97
93
|
}
|
|
98
94
|
if (parameters.button) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
if (iconButton
|
|
95
|
+
const { button } = parameters;
|
|
96
|
+
const iconButton = button;
|
|
97
|
+
if (iconButton?.icon) {
|
|
102
98
|
columnSet.columns.push({
|
|
103
99
|
type: 'Column',
|
|
104
100
|
width: 24,
|
|
@@ -110,11 +106,10 @@ export var TEXT_INPUT = function (parameters, componentId) {
|
|
|
110
106
|
altText: '${buttonIconAltText}'
|
|
111
107
|
}
|
|
112
108
|
],
|
|
113
|
-
selectAction: createAction(button.action, button.id ||
|
|
109
|
+
selectAction: createAction(button.action, button.id || `${componentId}-input-button`)
|
|
114
110
|
});
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
var titleButton = button;
|
|
111
|
+
} else {
|
|
112
|
+
const titleButton = button;
|
|
118
113
|
columnSet.columns.push({
|
|
119
114
|
type: 'Column',
|
|
120
115
|
width: 'auto',
|
|
@@ -123,7 +118,7 @@ export var TEXT_INPUT = function (parameters, componentId) {
|
|
|
123
118
|
{
|
|
124
119
|
type: 'ActionSet',
|
|
125
120
|
actions: [
|
|
126
|
-
createAction(titleButton.action, titleButton.id ||
|
|
121
|
+
createAction(titleButton.action, titleButton.id || `${componentId}-input-button`, titleButton.title, 'positive')
|
|
127
122
|
]
|
|
128
123
|
}
|
|
129
124
|
]
|
|
@@ -132,8 +127,8 @@ export var TEXT_INPUT = function (parameters, componentId) {
|
|
|
132
127
|
}
|
|
133
128
|
return columnSet;
|
|
134
129
|
};
|
|
135
|
-
export
|
|
136
|
-
|
|
130
|
+
export const SEARCH_BOX = (parameters, componentId)=>{
|
|
131
|
+
const columnSet = {
|
|
137
132
|
type: 'ColumnSet',
|
|
138
133
|
columns: []
|
|
139
134
|
};
|
|
@@ -146,11 +141,11 @@ export var SEARCH_BOX = function (parameters, componentId) {
|
|
|
146
141
|
type: 'Input.Text',
|
|
147
142
|
placeholder: parameters.placeholder,
|
|
148
143
|
value: parameters.defaultValue,
|
|
149
|
-
id:
|
|
144
|
+
id: `${componentId}-searchbox`
|
|
150
145
|
}
|
|
151
146
|
]
|
|
152
147
|
});
|
|
153
|
-
|
|
148
|
+
const { button } = parameters;
|
|
154
149
|
columnSet.columns.push({
|
|
155
150
|
type: 'Column',
|
|
156
151
|
width: 'auto',
|
|
@@ -159,15 +154,15 @@ export var SEARCH_BOX = function (parameters, componentId) {
|
|
|
159
154
|
{
|
|
160
155
|
type: 'ActionSet',
|
|
161
156
|
actions: [
|
|
162
|
-
createAction(button.action, button.id ||
|
|
157
|
+
createAction(button.action, button.id || `${componentId}-searchbox-button`, strings.Search, 'positive')
|
|
163
158
|
]
|
|
164
159
|
}
|
|
165
160
|
]
|
|
166
161
|
});
|
|
167
162
|
return columnSet;
|
|
168
163
|
};
|
|
169
|
-
export
|
|
170
|
-
|
|
164
|
+
export const SEARCH_FOOTER = (parameters, componentId)=>{
|
|
165
|
+
const columnSet = {
|
|
171
166
|
type: 'ColumnSet',
|
|
172
167
|
columns: [],
|
|
173
168
|
selectAction: parameters.onSelection ? createAction(parameters.onSelection, componentId) : undefined
|
|
@@ -181,7 +176,7 @@ export var SEARCH_FOOTER = function (parameters, componentId) {
|
|
|
181
176
|
style: 'Person',
|
|
182
177
|
url: '${footerImageUrl}',
|
|
183
178
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
184
|
-
height: '24px',
|
|
179
|
+
height: '24px',
|
|
185
180
|
width: '24px'
|
|
186
181
|
}
|
|
187
182
|
]
|
|
@@ -198,7 +193,7 @@ export var SEARCH_FOOTER = function (parameters, componentId) {
|
|
|
198
193
|
}
|
|
199
194
|
]
|
|
200
195
|
});
|
|
201
|
-
|
|
196
|
+
const container = {
|
|
202
197
|
type: 'Container',
|
|
203
198
|
items: []
|
|
204
199
|
};
|
|
@@ -212,4 +207,5 @@ export var SEARCH_FOOTER = function (parameters, componentId) {
|
|
|
212
207
|
container.items.push(columnSet);
|
|
213
208
|
return container;
|
|
214
209
|
};
|
|
215
|
-
|
|
210
|
+
|
|
211
|
+
//# sourceMappingURL=./CustomElements.js.map
|
|
@@ -4,8 +4,7 @@ import { BODY_PRIMARY_TEXT, TITLE_TEXT } from './common/CustomElements';
|
|
|
4
4
|
* @internal
|
|
5
5
|
*
|
|
6
6
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
7
|
-
*/
|
|
8
|
-
export var imageL1Template = {
|
|
7
|
+
*/ export const imageL1Template = {
|
|
9
8
|
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
10
9
|
type: 'AdaptiveCard',
|
|
11
10
|
version: '1.2',
|
|
@@ -36,7 +35,9 @@ export var imageL1Template = {
|
|
|
36
35
|
{
|
|
37
36
|
type: 'Column',
|
|
38
37
|
spacing: 'none',
|
|
39
|
-
items: [
|
|
38
|
+
items: [
|
|
39
|
+
TITLE_TEXT
|
|
40
|
+
],
|
|
40
41
|
width: 'stretch'
|
|
41
42
|
}
|
|
42
43
|
]
|
|
@@ -46,4 +47,5 @@ export var imageL1Template = {
|
|
|
46
47
|
}
|
|
47
48
|
]
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=./imageL1Template.js.map
|
|
@@ -4,8 +4,7 @@ import { BODY_PRIMARY_TEXT, TITLE_TEXT } from './common/CustomElements';
|
|
|
4
4
|
* @internal
|
|
5
5
|
*
|
|
6
6
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
7
|
-
*/
|
|
8
|
-
export var imageL1TemplateSelectAction = {
|
|
7
|
+
*/ export const imageL1TemplateSelectAction = {
|
|
9
8
|
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
10
9
|
type: 'AdaptiveCard',
|
|
11
10
|
version: '1.2',
|
|
@@ -37,7 +36,9 @@ export var imageL1TemplateSelectAction = {
|
|
|
37
36
|
{
|
|
38
37
|
type: 'Column',
|
|
39
38
|
spacing: 'none',
|
|
40
|
-
items: [
|
|
39
|
+
items: [
|
|
40
|
+
TITLE_TEXT
|
|
41
|
+
],
|
|
41
42
|
width: 'stretch'
|
|
42
43
|
}
|
|
43
44
|
]
|
|
@@ -47,4 +48,5 @@ export var imageL1TemplateSelectAction = {
|
|
|
47
48
|
}
|
|
48
49
|
]
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=./imageL1TemplateSelectAction.js.map
|
|
@@ -4,4 +4,5 @@ export { primaryTextL1Template } from './primaryTextL1Template';
|
|
|
4
4
|
export { basicL1TemplateSelectAction } from './basicL1TemplateSelectAction';
|
|
5
5
|
export { imageL1TemplateSelectAction } from './imageL1TemplateSelectAction';
|
|
6
6
|
export { primaryTextL1TemplateSelectAction } from './primaryTextL1TemplateSelectAction';
|
|
7
|
-
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=./index.js.map
|
|
@@ -5,8 +5,7 @@ import { BODY_SECONDARY_TEXT, PRIMARY_TEXT, TITLE_TEXT } from './common/CustomEl
|
|
|
5
5
|
* title, primaryText, description, iconUrl
|
|
6
6
|
*
|
|
7
7
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
8
|
-
*/
|
|
9
|
-
export var primaryTextL1Template = {
|
|
8
|
+
*/ export const primaryTextL1Template = {
|
|
10
9
|
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
11
10
|
type: 'AdaptiveCard',
|
|
12
11
|
version: '1.2',
|
|
@@ -32,7 +31,9 @@ export var primaryTextL1Template = {
|
|
|
32
31
|
{
|
|
33
32
|
type: 'Column',
|
|
34
33
|
spacing: 'none',
|
|
35
|
-
items: [
|
|
34
|
+
items: [
|
|
35
|
+
TITLE_TEXT
|
|
36
|
+
],
|
|
36
37
|
width: 'stretch'
|
|
37
38
|
}
|
|
38
39
|
]
|
|
@@ -40,10 +41,14 @@ export var primaryTextL1Template = {
|
|
|
40
41
|
{
|
|
41
42
|
type: 'Container',
|
|
42
43
|
spacing: 'none',
|
|
43
|
-
items: [
|
|
44
|
+
items: [
|
|
45
|
+
PRIMARY_TEXT,
|
|
46
|
+
BODY_SECONDARY_TEXT
|
|
47
|
+
]
|
|
44
48
|
}
|
|
45
49
|
]
|
|
46
50
|
}
|
|
47
51
|
]
|
|
48
52
|
};
|
|
49
|
-
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=./primaryTextL1Template.js.map
|
|
@@ -5,8 +5,7 @@ import { BODY_SECONDARY_TEXT, PRIMARY_TEXT, TITLE_TEXT } from './common/CustomEl
|
|
|
5
5
|
* title, primaryText, description, iconUrl
|
|
6
6
|
*
|
|
7
7
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
8
|
-
*/
|
|
9
|
-
export var primaryTextL1TemplateSelectAction = {
|
|
8
|
+
*/ export const primaryTextL1TemplateSelectAction = {
|
|
10
9
|
$schema: 'http://adaptivecards.io/schemas/adaptive-card.json',
|
|
11
10
|
type: 'AdaptiveCard',
|
|
12
11
|
version: '1.2',
|
|
@@ -33,7 +32,9 @@ export var primaryTextL1TemplateSelectAction = {
|
|
|
33
32
|
{
|
|
34
33
|
type: 'Column',
|
|
35
34
|
spacing: 'none',
|
|
36
|
-
items: [
|
|
35
|
+
items: [
|
|
36
|
+
TITLE_TEXT
|
|
37
|
+
],
|
|
37
38
|
width: 'stretch'
|
|
38
39
|
}
|
|
39
40
|
]
|
|
@@ -41,10 +42,14 @@ export var primaryTextL1TemplateSelectAction = {
|
|
|
41
42
|
{
|
|
42
43
|
type: 'Container',
|
|
43
44
|
spacing: 'none',
|
|
44
|
-
items: [
|
|
45
|
+
items: [
|
|
46
|
+
PRIMARY_TEXT,
|
|
47
|
+
BODY_SECONDARY_TEXT
|
|
48
|
+
]
|
|
45
49
|
}
|
|
46
50
|
]
|
|
47
51
|
}
|
|
48
52
|
]
|
|
49
53
|
};
|
|
50
|
-
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=./primaryTextL1TemplateSelectAction.js.map
|
|
@@ -7,18 +7,18 @@ import { generateComponentId } from '../components/BaseComponent';
|
|
|
7
7
|
* title, primaryText, search box, search footer
|
|
8
8
|
*
|
|
9
9
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var searchFooter = parameters.footer && parameters.footer[0];
|
|
10
|
+
*/ export const searchL1Template = (parameters, hasSelectionAction, instanceId)=>{
|
|
11
|
+
const template = cloneDeep(basicL1Template);
|
|
12
|
+
const searchBox = parameters.body[0];
|
|
13
|
+
const searchFooter = parameters.footer && parameters.footer[0];
|
|
15
14
|
if (hasSelectionAction) {
|
|
16
15
|
template.body[0].selectAction = '${selectAction}';
|
|
17
16
|
}
|
|
18
|
-
template.body[0].items.push(SEARCH_BOX(searchBox, searchBox.id ||
|
|
17
|
+
template.body[0].items.push(SEARCH_BOX(searchBox, searchBox.id || `${searchBox.componentName}-${instanceId}-body-0`));
|
|
19
18
|
if (searchFooter) {
|
|
20
19
|
template.body[0].items.push(SEARCH_FOOTER(searchFooter, generateComponentId(instanceId, 'footer', searchFooter, 0)));
|
|
21
20
|
}
|
|
22
21
|
return template;
|
|
23
22
|
};
|
|
24
|
-
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=./searchL1Template.js.map
|
|
@@ -9,10 +9,9 @@ import { primaryTextL1Template } from './primaryTextL1Template';
|
|
|
9
9
|
* title, primaryText, textInput
|
|
10
10
|
*
|
|
11
11
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var textInput = parameters.body[0];
|
|
12
|
+
*/ export const textInputL1Template = (parameters, hasSelectionAction, cardSize, instanceId)=>{
|
|
13
|
+
const template = cloneDeep(parameters.image ? imageL1Template : basicL1Template);
|
|
14
|
+
const textInput = parameters.body[0];
|
|
16
15
|
if (hasSelectionAction) {
|
|
17
16
|
template.body[0].selectAction = '${selectAction}';
|
|
18
17
|
}
|
|
@@ -28,23 +27,21 @@ export var textInputL1Template = function (parameters, hasSelectionAction, cardS
|
|
|
28
27
|
* @internal
|
|
29
28
|
*
|
|
30
29
|
* TODO: remove this file and related code after full switch to ACE Components: https://onedrive.visualstudio.com/DefaultCollection/WEX!/_workitems/edit/1690788
|
|
31
|
-
*/
|
|
32
|
-
|
|
33
|
-
var template = undefined;
|
|
30
|
+
*/ export const textInputFooterL1Template = (parameters, hasSelectionAction, instanceId)=>{
|
|
31
|
+
let template = undefined;
|
|
34
32
|
if (parameters.image) {
|
|
35
33
|
template = cloneDeep(imageL1Template);
|
|
36
|
-
}
|
|
37
|
-
else if (parameters.body) {
|
|
34
|
+
} else if (parameters.body) {
|
|
38
35
|
template = cloneDeep(primaryTextL1Template);
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
36
|
+
} else {
|
|
41
37
|
template = cloneDeep(basicL1Template);
|
|
42
38
|
}
|
|
43
39
|
if (hasSelectionAction) {
|
|
44
40
|
template.body[0].selectAction = '${selectAction}';
|
|
45
41
|
}
|
|
46
|
-
|
|
42
|
+
const textInput = parameters.footer[0];
|
|
47
43
|
template.body[0].items.push(TEXT_INPUT(textInput, generateComponentId(instanceId, 'footer', textInput, 0)));
|
|
48
44
|
return template;
|
|
49
45
|
};
|
|
50
|
-
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=./textInputL1Template.js.map
|
|
@@ -2,7 +2,7 @@ import { Text } from '@microsoft/sp-core-library';
|
|
|
2
2
|
import strings from '../../loc/Strings.resx';
|
|
3
3
|
import { isGenerateUniqueButtonIdKSActivated, isSupportActionExecuteKSActivated } from '../../common/Killswitches';
|
|
4
4
|
// Maps card size to max number of actions that can be appended.
|
|
5
|
-
|
|
5
|
+
const SIZE_TO_ACTION_NUM_MAP = {
|
|
6
6
|
Medium: 1,
|
|
7
7
|
Large: 2
|
|
8
8
|
};
|
|
@@ -11,35 +11,30 @@ var SIZE_TO_ACTION_NUM_MAP = {
|
|
|
11
11
|
* @remarks This ID is set for {@link IBaseOnBeforeActionArguments.id} when a card view select action is executed.
|
|
12
12
|
*
|
|
13
13
|
* @beta
|
|
14
|
-
*/
|
|
15
|
-
export var CARD_VIEW_SELECT_ACTION_ID = 'card-view-select-action';
|
|
14
|
+
*/ export const CARD_VIEW_SELECT_ACTION_ID = 'card-view-select-action';
|
|
16
15
|
export function appendActions(template, buttons, size, templateType, instanceId) {
|
|
17
|
-
|
|
16
|
+
const actions = buttons && parseButtonsToAction(buttons, templateType, size, instanceId);
|
|
18
17
|
if (actions) {
|
|
19
18
|
template.actions = actions;
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
21
|
export function parseButtonsToAction(buttons, templateType, cardSize, instanceId) {
|
|
23
|
-
|
|
22
|
+
const filteredButtons = filterButtons(buttons, templateType, cardSize);
|
|
24
23
|
if (!filteredButtons) {
|
|
25
24
|
return undefined;
|
|
26
25
|
}
|
|
27
|
-
return filteredButtons.map(
|
|
28
|
-
|
|
29
|
-
? button.id
|
|
30
|
-
: !isGenerateUniqueButtonIdKSActivated()
|
|
31
|
-
? "ac-button-".concat(instanceId, "-").concat(index)
|
|
32
|
-
: "ac-button-".concat(index);
|
|
26
|
+
return filteredButtons.map((button, index)=>{
|
|
27
|
+
const actionId = button.id ? button.id : !isGenerateUniqueButtonIdKSActivated() ? `ac-button-${instanceId}-${index}` : `ac-button-${index}`;
|
|
33
28
|
return createAction(button.action, actionId, button.title, button.style);
|
|
34
29
|
});
|
|
35
30
|
}
|
|
36
31
|
function filterButtons(buttons, templateType, cardSize) {
|
|
37
|
-
if (
|
|
32
|
+
if (templateType === 'Image' && cardSize === 'Medium' || buttons === undefined) {
|
|
38
33
|
return undefined;
|
|
39
34
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
for
|
|
35
|
+
const filteredButtons = [];
|
|
36
|
+
const limit = Math.min(SIZE_TO_ACTION_NUM_MAP[cardSize], buttons.length);
|
|
37
|
+
for(let i = 0; i < limit; i++){
|
|
43
38
|
if (isSupportActionExecuteKSActivated() && buttons[i].action.type === 'Execute') {
|
|
44
39
|
continue;
|
|
45
40
|
}
|
|
@@ -49,9 +44,8 @@ function filterButtons(buttons, templateType, cardSize) {
|
|
|
49
44
|
}
|
|
50
45
|
/**
|
|
51
46
|
* @internal
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
var cardAction;
|
|
47
|
+
*/ export function createAction(buttonType, actionId, title, style, target) {
|
|
48
|
+
let cardAction;
|
|
55
49
|
//
|
|
56
50
|
// with strictNullCheck set to false a developer can pass undefined as a buttonType
|
|
57
51
|
// we want to throw an error in this case to allow a developer to fix the issue
|
|
@@ -64,75 +58,69 @@ export function createAction(buttonType, actionId, title, style, target) {
|
|
|
64
58
|
cardAction = {
|
|
65
59
|
id: actionId,
|
|
66
60
|
type: 'Action.Submit',
|
|
67
|
-
style
|
|
68
|
-
title
|
|
61
|
+
style,
|
|
62
|
+
title,
|
|
69
63
|
data: buttonType.parameters || undefined
|
|
70
64
|
};
|
|
71
|
-
}
|
|
72
|
-
else if (buttonType.type === 'Execute') {
|
|
65
|
+
} else if (buttonType.type === 'Execute') {
|
|
73
66
|
cardAction = {
|
|
74
67
|
id: actionId,
|
|
75
68
|
type: 'Action.Execute',
|
|
76
|
-
style
|
|
77
|
-
title
|
|
69
|
+
style,
|
|
70
|
+
title,
|
|
78
71
|
verb: buttonType.verb,
|
|
79
72
|
data: buttonType.parameters || undefined
|
|
80
73
|
};
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
var url = buttonType.parameters.target;
|
|
74
|
+
} else if (buttonType.type === 'ExternalLink') {
|
|
75
|
+
const url = buttonType.parameters.target;
|
|
84
76
|
if (!url || url === '') {
|
|
85
77
|
throw new Error(Text.format(strings.TargetUrlIsUndefinedOrEmpty, actionId));
|
|
86
78
|
}
|
|
87
79
|
cardAction = {
|
|
88
80
|
id: actionId,
|
|
89
81
|
type: 'Action.OpenUrl',
|
|
90
|
-
style
|
|
91
|
-
title
|
|
92
|
-
url
|
|
82
|
+
style,
|
|
83
|
+
title,
|
|
84
|
+
url
|
|
93
85
|
};
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
var data = {
|
|
86
|
+
} else if (buttonType.type === 'QuickView') {
|
|
87
|
+
const data = {
|
|
97
88
|
_internalQuickViewId: buttonType.parameters.view,
|
|
98
89
|
_target: target
|
|
99
90
|
};
|
|
100
91
|
cardAction = {
|
|
101
92
|
id: actionId,
|
|
102
93
|
type: 'Action.Submit',
|
|
103
|
-
style
|
|
104
|
-
title
|
|
105
|
-
data
|
|
94
|
+
style,
|
|
95
|
+
title,
|
|
96
|
+
data
|
|
106
97
|
};
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var parameters = buttonType.parameters;
|
|
98
|
+
} else if (buttonType.type === 'VivaAction.SelectMedia') {
|
|
99
|
+
const parameters = buttonType.parameters;
|
|
110
100
|
cardAction = {
|
|
111
101
|
id: actionId,
|
|
112
102
|
type: 'VivaAction.SelectMedia',
|
|
113
|
-
style
|
|
114
|
-
title
|
|
115
|
-
parameters
|
|
103
|
+
style,
|
|
104
|
+
title,
|
|
105
|
+
parameters
|
|
116
106
|
};
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
var parameters = buttonType.parameters;
|
|
107
|
+
} else if (buttonType.type === 'VivaAction.GetLocation') {
|
|
108
|
+
const parameters = buttonType.parameters;
|
|
120
109
|
cardAction = {
|
|
121
110
|
id: actionId,
|
|
122
111
|
type: 'VivaAction.GetLocation',
|
|
123
|
-
style
|
|
124
|
-
title
|
|
125
|
-
parameters
|
|
112
|
+
style,
|
|
113
|
+
title,
|
|
114
|
+
parameters
|
|
126
115
|
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
var parameters = buttonType.parameters;
|
|
116
|
+
} else if (buttonType.type === 'VivaAction.ShowLocation') {
|
|
117
|
+
const parameters = buttonType.parameters;
|
|
130
118
|
cardAction = {
|
|
131
119
|
id: actionId,
|
|
132
120
|
type: 'VivaAction.ShowLocation',
|
|
133
|
-
style
|
|
134
|
-
title
|
|
135
|
-
parameters
|
|
121
|
+
style,
|
|
122
|
+
title,
|
|
123
|
+
parameters
|
|
136
124
|
};
|
|
137
125
|
}
|
|
138
126
|
return cardAction;
|
|
@@ -140,8 +128,7 @@ export function createAction(buttonType, actionId, title, style, target) {
|
|
|
140
128
|
/**
|
|
141
129
|
* Inserts confirmation dialog into action.parameters as __MSConfirmationDialog__
|
|
142
130
|
* @param action - ISubmitCardAction
|
|
143
|
-
*/
|
|
144
|
-
export function updateSubmitActionButtonType(action) {
|
|
131
|
+
*/ export function updateSubmitActionButtonType(action) {
|
|
145
132
|
if (action.confirmationDialog) {
|
|
146
133
|
if (!action.parameters) {
|
|
147
134
|
action.parameters = {};
|
|
@@ -149,4 +136,5 @@ export function updateSubmitActionButtonType(action) {
|
|
|
149
136
|
action.parameters.__MSConfirmationDialog__ = action.confirmationDialog;
|
|
150
137
|
}
|
|
151
138
|
}
|
|
152
|
-
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=./actionButtonHelper.js.map
|