@pnp/spfx-controls-react 3.9.0-beta.2597996 → 3.9.0-beta.2653032

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 (154) hide show
  1. package/CHANGELOG.json +1 -0
  2. package/CHANGELOG.md +3 -1
  3. package/lib/AdaptiveCardDesignerHost.d.ts +2 -0
  4. package/lib/AdaptiveCardDesignerHost.d.ts.map +1 -0
  5. package/lib/AdaptiveCardDesignerHost.js +2 -0
  6. package/lib/AdaptiveCardDesignerHost.js.map +1 -0
  7. package/lib/common/telemetry/version.js +1 -1
  8. package/lib/common/utilities/GeneralHelper.js +2 -1
  9. package/lib/common/utilities/GeneralHelper.js.map +1 -1
  10. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.d.ts +7 -0
  11. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.d.ts.map +1 -0
  12. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.js +49 -0
  13. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.js.map +1 -0
  14. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.css +2176 -0
  15. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.d.ts +2 -0
  16. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.d.ts.map +1 -0
  17. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.js +4 -0
  18. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.js.map +1 -0
  19. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.d.ts +33 -0
  20. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.d.ts.map +1 -0
  21. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.js +176 -0
  22. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.js.map +1 -0
  23. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.d.ts +4 -0
  24. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.d.ts.map +1 -0
  25. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.js +4 -0
  26. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.js.map +1 -0
  27. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.d.ts +4 -0
  28. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.d.ts.map +1 -0
  29. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.js +49 -0
  30. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.js.map +1 -0
  31. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.d.ts +125 -0
  32. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.d.ts.map +1 -0
  33. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.js +1 -0
  34. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.js.map +1 -0
  35. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.d.ts +17 -0
  36. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.d.ts.map +1 -0
  37. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.js +80 -0
  38. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.js.map +1 -0
  39. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.d.ts +3 -0
  40. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.d.ts.map +1 -0
  41. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.js +3 -0
  42. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.js.map +1 -0
  43. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.d.ts +18 -0
  44. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.d.ts.map +1 -0
  45. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.js +71 -0
  46. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.js.map +1 -0
  47. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.d.ts +2 -0
  48. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.d.ts.map +1 -0
  49. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.js +21 -0
  50. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.js.map +1 -0
  51. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.d.ts +54 -0
  52. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.d.ts.map +1 -0
  53. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.js +158 -0
  54. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.js.map +1 -0
  55. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.d.ts +24 -0
  56. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.d.ts.map +1 -0
  57. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.js +136 -0
  58. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.js.map +1 -0
  59. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.d.ts +5 -0
  60. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.d.ts.map +1 -0
  61. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.js +5 -0
  62. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.js.map +1 -0
  63. package/lib/controls/adaptiveCardDesignerHost/index.d.ts +8 -0
  64. package/lib/controls/adaptiveCardDesignerHost/index.d.ts.map +1 -0
  65. package/lib/controls/adaptiveCardDesignerHost/index.js +8 -0
  66. package/lib/controls/adaptiveCardDesignerHost/index.js.map +1 -0
  67. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts +2 -0
  68. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts.map +1 -0
  69. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.js +2 -0
  70. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.js.map +1 -0
  71. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts +5 -0
  72. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts.map +1 -0
  73. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.js +59 -0
  74. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.js.map +1 -0
  75. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +8 -0
  76. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts.map +1 -0
  77. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.js +102 -0
  78. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.js.map +1 -0
  79. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.d.ts.map +1 -1
  80. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.js +49 -102
  81. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.js.map +1 -1
  82. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.d.ts +2 -13
  83. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.d.ts.map +1 -1
  84. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.js +0 -7
  85. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.js.map +1 -1
  86. package/lib/controls/adaptiveCardHost/fluentUI/Actions.d.ts +3 -1
  87. package/lib/controls/adaptiveCardHost/fluentUI/Actions.d.ts.map +1 -1
  88. package/lib/controls/adaptiveCardHost/fluentUI/Actions.js +40 -7
  89. package/lib/controls/adaptiveCardHost/fluentUI/Actions.js.map +1 -1
  90. package/lib/controls/adaptiveCardHost/fluentUI/Elements.d.ts +6 -1
  91. package/lib/controls/adaptiveCardHost/fluentUI/Elements.d.ts.map +1 -1
  92. package/lib/controls/adaptiveCardHost/fluentUI/Elements.js +24 -6
  93. package/lib/controls/adaptiveCardHost/fluentUI/Elements.js.map +1 -1
  94. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.d.ts +6 -0
  95. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.d.ts.map +1 -0
  96. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.js +13 -0
  97. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.js.map +1 -0
  98. package/lib/controls/adaptiveCardHost/fluentUI/HostConfig.d.ts +6 -0
  99. package/lib/controls/adaptiveCardHost/fluentUI/HostConfig.d.ts.map +1 -0
  100. package/lib/controls/adaptiveCardHost/{AdaptiveCardHostHelpers.js → fluentUI/HostConfig.js} +6 -111
  101. package/lib/controls/adaptiveCardHost/fluentUI/HostConfig.js.map +1 -0
  102. package/lib/controls/adaptiveCardHost/{AdaptiveCardHostCssStyles.d.ts → fluentUI/Styles.d.ts} +1 -1
  103. package/lib/controls/adaptiveCardHost/fluentUI/Styles.d.ts.map +1 -0
  104. package/lib/controls/adaptiveCardHost/{AdaptiveCardHostCssStyles.js → fluentUI/Styles.js} +2 -2
  105. package/lib/controls/adaptiveCardHost/fluentUI/Styles.js.map +1 -0
  106. package/lib/controls/adaptiveCardHost/fluentUI/index.d.ts +3 -2
  107. package/lib/controls/adaptiveCardHost/fluentUI/index.d.ts.map +1 -1
  108. package/lib/controls/adaptiveCardHost/fluentUI/index.js +3 -2
  109. package/lib/controls/adaptiveCardHost/fluentUI/index.js.map +1 -1
  110. package/lib/controls/adaptiveCardHost/index.d.ts +4 -2
  111. package/lib/controls/adaptiveCardHost/index.d.ts.map +1 -1
  112. package/lib/controls/adaptiveCardHost/index.js +4 -2
  113. package/lib/controls/adaptiveCardHost/index.js.map +1 -1
  114. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts +7 -0
  115. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts.map +1 -0
  116. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.js +8 -0
  117. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.js.map +1 -0
  118. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts +8 -0
  119. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts.map +1 -0
  120. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.js +1 -0
  121. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.js.map +1 -0
  122. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts +7 -0
  123. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts.map +1 -0
  124. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.js +1 -0
  125. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.js.map +1 -0
  126. package/lib/controls/adaptiveCardHost/models/index.d.ts +12 -0
  127. package/lib/controls/adaptiveCardHost/models/index.d.ts.map +1 -0
  128. package/lib/controls/adaptiveCardHost/models/index.js +12 -0
  129. package/lib/controls/adaptiveCardHost/models/index.js.map +1 -0
  130. package/lib/services/FilesSearchService.d.ts.map +1 -1
  131. package/lib/services/FilesSearchService.js +6 -3
  132. package/lib/services/FilesSearchService.js.map +1 -1
  133. package/lib/services/OrgAssetsService.d.ts.map +1 -1
  134. package/lib/services/OrgAssetsService.js +14 -7
  135. package/lib/services/OrgAssetsService.js.map +1 -1
  136. package/package.json +3 -2
  137. package/release/webpack-stats/sp-dev-fx-controls-react.stats.json +53766 -32158
  138. package/lib/controls/adaptiveCardHost/AdaptiveCardHostCssStyles.d.ts.map +0 -1
  139. package/lib/controls/adaptiveCardHost/AdaptiveCardHostCssStyles.js.map +0 -1
  140. package/lib/controls/adaptiveCardHost/AdaptiveCardHostHelpers.d.ts +0 -13
  141. package/lib/controls/adaptiveCardHost/AdaptiveCardHostHelpers.d.ts.map +0 -1
  142. package/lib/controls/adaptiveCardHost/AdaptiveCardHostHelpers.js.map +0 -1
  143. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.d.ts +0 -11
  144. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.d.ts.map +0 -1
  145. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.js +0 -75
  146. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.js.map +0 -1
  147. package/lib/controls/adaptiveCardHost/fluentUI/Shared.d.ts +0 -4
  148. package/lib/controls/adaptiveCardHost/fluentUI/Shared.d.ts.map +0 -1
  149. package/lib/controls/adaptiveCardHost/fluentUI/Shared.js +0 -8
  150. package/lib/controls/adaptiveCardHost/fluentUI/Shared.js.map +0 -1
  151. package/lib/controls/adaptiveCardHost/themes/redPalette.json +0 -24
  152. package/lib/controls/adaptiveCardHost/themes/teamsDarkPalette.json +0 -24
  153. package/lib/controls/adaptiveCardHost/themes/teamsDefaultPalette.json +0 -24
  154. package/lib/controls/adaptiveCardHost/themes/teamsHighContrastPalette.json +0 -24
@@ -0,0 +1,2 @@
1
+ export declare const applyAdaptiveCardDesignerStyles: () => void;
2
+ //# sourceMappingURL=AdaptiveCardDesigner.Styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesigner.Styles.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,+BAA+B,YAE3C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export var applyAdaptiveCardDesignerStyles = function () {
2
+ require("./AdaptiveCardDesigner.Styles.css");
3
+ };
4
+ //# sourceMappingURL=AdaptiveCardDesigner.Styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesigner.Styles.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,+BAA+B,GAAG;IAC3C,OAAO,CAAC,mCAAmC,CAAC,CAAC;AACjD,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ /// <reference types="react" />
2
+ import { BindingPreviewMode } from 'adaptivecards-designer';
3
+ import { IAdaptiveCardDesignerHostProps } from './IAdaptiveCardDesignerProps';
4
+ export declare const EmptyCard: {
5
+ $schema: string;
6
+ type: string;
7
+ version: string;
8
+ };
9
+ export declare const AdaptiveCardDesigner: {
10
+ (props: IAdaptiveCardDesignerHostProps): JSX.Element;
11
+ defaultProps: {
12
+ newCardPayload: {
13
+ $schema: string;
14
+ type: string;
15
+ version: string;
16
+ };
17
+ hostContainers: any[];
18
+ supportedTargetVersions: import("adaptivecards").Version[];
19
+ snippets: any[];
20
+ bindingPreviewMode: BindingPreviewMode;
21
+ enableDataBindingSupport: boolean;
22
+ selectedHostContainerControlsTargetVersion: boolean;
23
+ showTargetVersionMismatchWarning: boolean;
24
+ showVersionPicker: boolean;
25
+ showSampleDataEditorToolbox: boolean;
26
+ showDataStructureToolbox: boolean;
27
+ showFluentBreakpointsPicker: boolean;
28
+ showCopyToJsonToolbarCommand: boolean;
29
+ addDefaultAdaptiveCardHostContainer: boolean;
30
+ injectAdaptiveCardHostContextProperty: boolean;
31
+ };
32
+ };
33
+ //# sourceMappingURL=AdaptiveCardDesigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesigner.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAqF,MAAM,wBAAwB,CAAC;AAW/I,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAE9E,eAAO,MAAM,SAAS;;;;CAIrB,CAAC;AAEF,eAAO,MAAM,oBAAoB;YAAW,8BAA8B;;;;;;;;;;;;;;;;;;;;;;CA6LzE,CAAC"}
@@ -0,0 +1,176 @@
1
+ import * as monacoLoader from '@monaco-editor/loader';
2
+ import { Versions } from 'adaptivecards';
3
+ import { BindingPreviewMode, CardDesigner, FieldDefinition, GlobalSettings } from 'adaptivecards-designer';
4
+ import * as markdownit from 'markdown-it';
5
+ import { Spinner, SpinnerSize } from 'office-ui-fabric-react/lib/Spinner';
6
+ import * as React from 'react';
7
+ import { useEffect, useRef, useState } from 'react';
8
+ import { injectContextProperty } from '../adaptiveCardHost/AdaptiveCardHost.Utilities';
9
+ import { fluentUIDefaultTheme } from '../../common/fluentUIThemes/FluentUIDefaultTheme';
10
+ import { addToolbarButton, addToolbarChoicePicker, addToolboxSnippet, convertNullToEmptyString, hideToolbarElement } from './AdaptiveCardDesigner.Helpers';
11
+ import { applyAdaptiveCardDesignerStyles } from './AdaptiveCardDesigner.Styles';
12
+ import { AdaptiveCardHostContainer, AdaptiveCardHostContainerType } from './fluentUI/AdaptiveCardHostContainer';
13
+ import { initializeDesignerPeers } from './fluentUI/peers/DesignerPeers';
14
+ export var EmptyCard = {
15
+ '$schema': 'http://adaptivecards.io/schemas/adaptive-card.json',
16
+ 'type': 'AdaptiveCard',
17
+ 'version': '1.5'
18
+ };
19
+ export var AdaptiveCardDesigner = function (props) {
20
+ var adaptiveCardDesignerInstanceRef = useRef(null);
21
+ var renderElementRef = useRef();
22
+ var currentBreakpointValueRef = useRef('100%');
23
+ var _a = useState(false), isMonacoLoaded = _a[0], setIsMonacoLoaded = _a[1];
24
+ var monacoRef = useRef(null);
25
+ // updateLayout on windows resize
26
+ useEffect(function () {
27
+ function handleResize() {
28
+ var _a, _b;
29
+ (_b = (_a = adaptiveCardDesignerInstanceRef.current) === null || _a === void 0 ? void 0 : _a.designerSurface) === null || _b === void 0 ? void 0 : _b.updateLayout(true);
30
+ }
31
+ window.addEventListener('resize', handleResize);
32
+ return function () {
33
+ window.removeEventListener('resize', handleResize);
34
+ };
35
+ });
36
+ // *****
37
+ useEffect(function () {
38
+ CardDesigner.onProcessMarkdown = function (text, result) {
39
+ result.outputHtml = new markdownit().render(text);
40
+ result.didProcess = true;
41
+ };
42
+ applyAdaptiveCardDesignerStyles();
43
+ monacoLoader.default.init().then(function (monaco) {
44
+ // monaco as any => fix the problem with the type definition
45
+ monacoRef.current = monaco;
46
+ setIsMonacoLoaded(true);
47
+ });
48
+ }, []);
49
+ useEffect(function () {
50
+ if (props.addDefaultAdaptiveCardHostContainer) {
51
+ initializeDesignerPeers();
52
+ }
53
+ GlobalSettings.enableDataBindingSupport = props.enableDataBindingSupport;
54
+ GlobalSettings.selectedHostContainerControlsTargetVersion = props.selectedHostContainerControlsTargetVersion;
55
+ GlobalSettings.showDataStructureToolbox = props.showDataStructureToolbox;
56
+ GlobalSettings.showSampleDataEditorToolbox = props.showSampleDataEditorToolbox;
57
+ GlobalSettings.showTargetVersionMismatchWarning = props.showTargetVersionMismatchWarning;
58
+ GlobalSettings.showVersionPicker = props.showVersionPicker;
59
+ GlobalSettings.supportedTargetVersions = props.supportedTargetVersions;
60
+ }, [props.addDefaultAdaptiveCardHostContainer,
61
+ props.enableDataBindingSupport,
62
+ props.selectedHostContainerControlsTargetVersion,
63
+ props.showDataStructureToolbox,
64
+ props.showSampleDataEditorToolbox,
65
+ props.showTargetVersionMismatchWarning,
66
+ props.showVersionPicker,
67
+ props.supportedTargetVersions]);
68
+ useEffect(function () {
69
+ if (!isMonacoLoaded) {
70
+ return;
71
+ }
72
+ var hosts = [];
73
+ if (props.hostContainers) {
74
+ hosts.push.apply(hosts, props.hostContainers);
75
+ }
76
+ if (props.addDefaultAdaptiveCardHostContainer) {
77
+ hosts.push.apply(hosts, [
78
+ new AdaptiveCardHostContainer('ACH - Default', AdaptiveCardHostContainerType.Default),
79
+ new AdaptiveCardHostContainer('ACH - Teams', AdaptiveCardHostContainerType.TeamsDefault),
80
+ new AdaptiveCardHostContainer('ACH - Teams Dark', AdaptiveCardHostContainerType.TeamsDark),
81
+ new AdaptiveCardHostContainer('ACH - Teams High Contrast', AdaptiveCardHostContainerType.TeamsHighContrast)
82
+ ]);
83
+ }
84
+ var cardDesigner = new CardDesigner(hosts);
85
+ cardDesigner.bindingPreviewMode = (props.bindingPreviewMode)
86
+ ? props.bindingPreviewMode
87
+ : BindingPreviewMode.GeneratedData;
88
+ addToolbarButton(cardDesigner, 'New Card', 'acd-icon-newCard', CardDesigner.ToolbarCommands.NewCard, true, CardDesigner.ToolbarCommands.NewCard, function (sender) {
89
+ var text = 'Do you want to create a new Card?';
90
+ if (confirm(text) == true) {
91
+ cardDesigner.setCard((props.newCardPayload) ? props.newCardPayload : EmptyCard);
92
+ cardDesigner.clearUndoStack();
93
+ cardDesigner.designerSurface.updateLayout(true);
94
+ }
95
+ });
96
+ if (props.onSave) {
97
+ addToolbarButton(cardDesigner, 'Save', 'acd-icon-save', CardDesigner.ToolbarCommands.NewCard, true, null, function (sender) {
98
+ var payload = cardDesigner.designerSurface.getCardPayloadAsObject();
99
+ props.onSave(payload);
100
+ });
101
+ }
102
+ if (props.showFluentBreakpointsPicker) {
103
+ addToolbarChoicePicker(cardDesigner, CardDesigner.ToolbarCommands.HostAppPicker, true, 'Breakpoints:', [
104
+ { name: 'Fluid (fit content)', value: '100%' },
105
+ { name: 'Small (>= 320px)', value: '320px' },
106
+ { name: 'Medium (>= 480px)', value: '480px' },
107
+ { name: 'Large (>= 640px)', value: '640px' },
108
+ { name: 'Extra large (>= 1024px)', value: '1024px' },
109
+ { name: 'Extra extra large (>= 1366px)', value: '1366px' },
110
+ { name: 'Extra extra extra large (>= 1920px)', value: '1920px' }
111
+ ], function (sender) {
112
+ currentBreakpointValueRef.current = sender.value;
113
+ cardDesigner.designerSurface.context.hostContainer.cardHost.style.width = sender.value;
114
+ cardDesigner.designerSurface.updateLayout(false);
115
+ });
116
+ }
117
+ hideToolbarElement(cardDesigner, CardDesigner.ToolbarCommands.Help);
118
+ if (props.showCopyToJsonToolbarCommand === false)
119
+ hideToolbarElement(cardDesigner, CardDesigner.ToolbarCommands.CopyJSON);
120
+ if (props.snippets) {
121
+ props.snippets.forEach(function (item) {
122
+ addToolboxSnippet(cardDesigner, item.category, item.name, item.payload);
123
+ });
124
+ }
125
+ adaptiveCardDesignerInstanceRef.current = cardDesigner;
126
+ cardDesigner.attachTo(renderElementRef.current);
127
+ cardDesigner.monacoModuleLoaded(monacoRef.current);
128
+ cardDesigner.setCard((props.card) ? props.card : (props.newCardPayload) ? props.newCardPayload : EmptyCard);
129
+ cardDesigner.clearUndoStack();
130
+ cardDesigner.designerSurface.updateLayout(true);
131
+ cardDesigner.onActiveHostContainerChanged = function (designer) {
132
+ var hostConfig = designer.hostContainer.getHostConfig();
133
+ cardDesigner.designerSurface.context.hostContainer.cardHost.style.width = currentBreakpointValueRef.current;
134
+ cardDesigner.designerSurface.updateLayout(false);
135
+ console.log(hostConfig);
136
+ };
137
+ cardDesigner.designerSurface.context.hostContainer.cardHost.style.width = '100%';
138
+ cardDesigner.dataToolbox.collapse();
139
+ var data = (props.data) ? props.data : { $root: {} };
140
+ var dataObject = injectContextProperty(data, fluentUIDefaultTheme(), props.context);
141
+ convertNullToEmptyString(dataObject);
142
+ cardDesigner.dataStructure = FieldDefinition.deriveFrom(dataObject.$root);
143
+ }, [isMonacoLoaded,
144
+ props.addDefaultAdaptiveCardHostContainer,
145
+ props.onSave,
146
+ props.showFluentBreakpointsPicker,
147
+ props.showCopyToJsonToolbarCommand,
148
+ props.snippets]);
149
+ return (React.createElement(React.Fragment, null,
150
+ React.createElement("div", { ref: renderElementRef }),
151
+ !isMonacoLoaded &&
152
+ React.createElement(Spinner, { style: {
153
+ display: 'flex',
154
+ justifyContent: 'center',
155
+ alignItems: 'center',
156
+ height: '100%'
157
+ }, size: SpinnerSize.medium, label: 'loading...', ariaLive: 'assertive', labelPosition: 'bottom' })));
158
+ };
159
+ AdaptiveCardDesigner.defaultProps = {
160
+ newCardPayload: EmptyCard,
161
+ hostContainers: [],
162
+ supportedTargetVersions: [Versions.v1_5],
163
+ snippets: [],
164
+ bindingPreviewMode: BindingPreviewMode.GeneratedData,
165
+ enableDataBindingSupport: true,
166
+ selectedHostContainerControlsTargetVersion: false,
167
+ showTargetVersionMismatchWarning: true,
168
+ showVersionPicker: false,
169
+ showSampleDataEditorToolbox: false,
170
+ showDataStructureToolbox: true,
171
+ showFluentBreakpointsPicker: true,
172
+ showCopyToJsonToolbarCommand: false,
173
+ addDefaultAdaptiveCardHostContainer: true,
174
+ injectAdaptiveCardHostContextProperty: true
175
+ };
176
+ //# sourceMappingURL=AdaptiveCardDesigner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesigner.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAsC,MAAM,wBAAwB,CAAC;AAC/I,OAAO,KAAK,UAAU,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,gDAAgD,CAAC;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,kDAAkD,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,kB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EAAE,KAAK;IACxB,2BAA2B,EAAE,KAAK;IAClC,wBAAwB,EAAE,IAAI;IAC9B,2BAA2B,EAAE,IAAI;IACjC,4BAA4B,EAAE,KAAK;IACnC,mCAAmC,EAAE,IAAI;IACzC,qCAAqC,EAAE,IAAI;CAC9C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { HostContainer } from 'adaptivecards-designer/lib/containers';
2
+ export { BindingPreviewMode } from 'adaptivecards-designer/lib/card-designer-surface';
3
+ export { Version, Versions } from 'adaptivecards';
4
+ //# sourceMappingURL=AdaptiveCardDesignerHost.Exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesignerHost.Exports.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { HostContainer } from 'adaptivecards-designer/lib/containers';
2
+ export { BindingPreviewMode } from 'adaptivecards-designer/lib/card-designer-surface';
3
+ export { Version, Versions } from 'adaptivecards';
4
+ //# sourceMappingURL=AdaptiveCardDesignerHost.Exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesignerHost.Exports.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { IAdaptiveCardDesignerHostProps } from "./IAdaptiveCardDesignerProps";
3
+ export declare const AdaptiveCardDesignerHost: (props: IAdaptiveCardDesignerHostProps) => JSX.Element;
4
+ //# sourceMappingURL=AdaptiveCardDesignerHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesignerHost.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.tsx"],"names":[],"mappings":";AAQA,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAgB9E,eAAO,MAAM,wBAAwB,UAAW,8BAA8B,gBA4B7E,CAAC"}
@@ -0,0 +1,49 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { DefaultButton } from "office-ui-fabric-react/lib/Button";
13
+ import { ThemeProvider } from "office-ui-fabric-react/lib/Foundation";
14
+ import { Panel, PanelType } from "office-ui-fabric-react/lib/Panel";
15
+ import { getTheme } from "office-ui-fabric-react/lib/Styling";
16
+ import * as React from 'react';
17
+ import { useState } from 'react';
18
+ import { AdaptiveCardDesigner } from "./AdaptiveCardDesigner";
19
+ var panelStyles = {
20
+ scrollableContent: { display: "flex", height: "100%" },
21
+ content: {
22
+ display: "flex",
23
+ flex: "1 1 auto",
24
+ flexDirection: "column",
25
+ overflow: "hidden",
26
+ paddingLeft: 0,
27
+ paddingRight: 0,
28
+ paddingBottom: 0
29
+ },
30
+ commands: { marginBottom: 15 }
31
+ };
32
+ export var AdaptiveCardDesignerHost = function (props) {
33
+ var _a = useState(false), isOpen = _a[0], setIsOpen = _a[1];
34
+ return (React.createElement(React.Fragment, null,
35
+ React.createElement(DefaultButton, { text: props.buttonText, onClick: function () { return setIsOpen(true); } }),
36
+ React.createElement(ThemeProvider, { theme: getTheme() },
37
+ React.createElement(Panel, { styles: panelStyles, headerText: props.headerText, isBlocking: true, isOpen: isOpen, type: PanelType.smallFluid, hasCloseButton: true, onDismiss: function (ev) {
38
+ var srcElement = ev.nativeEvent.target;
39
+ if (srcElement && srcElement.className.indexOf('ms-Overlay') !== -1) {
40
+ ev.preventDefault();
41
+ }
42
+ else {
43
+ setIsOpen(false);
44
+ }
45
+ } },
46
+ React.createElement("hr", null),
47
+ React.createElement(AdaptiveCardDesigner, __assign({}, props))))));
48
+ };
49
+ //# sourceMappingURL=AdaptiveCardDesignerHost.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardDesignerHost.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAkC,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACpG,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAG9D,IAAM,WAAW,GAA0D;IACvE,iBAAiB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;IACtD,OAAO,EAAE;QACL,OAAO,EAAE,MAAM;QACf,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,QAAQ;QACvB,QAAQ,EAAE,QAAQ;QAClB,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,CAAC;QACf,aAAa,EAAE,CAAC;KACnB;IACD,QAAQ,EAAE,EAAE,YAAY,EAAE,EAAE,EAAE;CACjC,CAAC;AAEF,MAAM,CAAC,IAAM,wBAAwB,GAAG,UAAC,KAAqC;IACpE,IAAA,KAAsB,QAAQ,CAAC,KAAK,CAAC,EAApC,MAAM,QAAA,EAAE,SAAS,QAAmB,CAAC;IAE5C,OAAO,CACH;QACI,oBAAC,aAAa,IAAC,IAAI,EAAE,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE,cAAM,OAAA,SAAS,CAAC,IAAI,CAAC,EAAf,CAAe,GAAI;QACzE,oBAAC,aAAa,IAAC,KAAK,EAAE,QAAQ,EAAE;YAC5B,oBAAC,KAAK,IACF,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,KAAK,CAAC,UAAU,EAC5B,UAAU,EAAE,IAAI,EAChB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,SAAS,CAAC,UAAU,EAC1B,cAAc,EAAE,IAAI,EACpB,SAAS,EAAE,UAAC,EAAE;oBACV,IAAM,UAAU,GAAG,EAAE,CAAC,WAAW,CAAC,MAAwB,CAAC;oBAC3D,IAAI,UAAU,IAAI,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE;wBACjE,EAAE,CAAC,cAAc,EAAE,CAAC;qBACvB;yBAAM;wBACH,SAAS,CAAC,KAAK,CAAC,CAAC;qBACpB;gBACL,CAAC;gBACD,+BAAM;gBACN,oBAAC,oBAAoB,eAAK,KAAK,EAAI,CAC/B,CACI,CACjB,CACN,CAAC;AACN,CAAC,CAAC"}
@@ -0,0 +1,125 @@
1
+ import { IPartialTheme, ITheme } from 'office-ui-fabric-react/lib/Styling';
2
+ import { BaseComponentContext } from '@microsoft/sp-component-base';
3
+ import { HostContainer } from 'adaptivecards-designer/lib/containers';
4
+ import { BindingPreviewMode } from 'adaptivecards-designer/lib/card-designer-surface';
5
+ import { Version } from 'adaptivecards';
6
+ export interface IToolboxSnippet {
7
+ name: string;
8
+ category: string;
9
+ payload: object;
10
+ }
11
+ export interface IAdaptiveCardDesignerProps {
12
+ /**
13
+ * Set the context from SPFx component.
14
+ */
15
+ context: BaseComponentContext;
16
+ /**
17
+ * Set Fluent UI Theme.
18
+ * Used only if the "themeType" property is set to 'ThemeType.SharePoint'.
19
+ * If not set or set to null or not defined, the theme passed through context will be searched, or the default theme of the page will be loaded.
20
+ */
21
+ theme?: IPartialTheme | ITheme;
22
+ /**
23
+ * Set custom HostConfig.
24
+ */
25
+ hostConfig?: object;
26
+ /**
27
+ * Callback for saving the card.
28
+ */
29
+ onSave: (payload: object) => void;
30
+ /**
31
+ * Set Adaptive Card payload.
32
+ */
33
+ card?: object;
34
+ /**
35
+ * Set Data Source for template rendering.
36
+ *
37
+ * Example:
38
+ *
39
+ * ```typescript
40
+ * {
41
+ * $root: {
42
+ * firstName: "Fabio",
43
+ * lastName: "Franzini",
44
+ * childrens: [
45
+ * { fullName: "Mattia Franzini", age: 1 }
46
+ * ]
47
+ * }
48
+ * }
49
+ * ```
50
+ */
51
+ data?: {
52
+ "$root": object;
53
+ };
54
+ /**
55
+ * Set Adaptive Card payload for the New Card.
56
+ */
57
+ newCardPayload?: object;
58
+ /**
59
+ * Set custom HostContainers.
60
+ */
61
+ hostContainers?: HostContainer[];
62
+ /**
63
+ * Set the suported Versions.
64
+ */
65
+ supportedTargetVersions?: Version[];
66
+ /**
67
+ * Set the Toolbox Snippets.
68
+ */
69
+ snippets?: IToolboxSnippet[];
70
+ /**
71
+ * Set the Binding preview mode.
72
+ */
73
+ bindingPreviewMode?: BindingPreviewMode;
74
+ /**
75
+ * Enable the support for Data Binding.
76
+ */
77
+ enableDataBindingSupport?: boolean;
78
+ /**
79
+ * Enable the support for Data Binding.
80
+ */
81
+ selectedHostContainerControlsTargetVersion?: boolean;
82
+ /**
83
+ * Show the target version mismatch warning.
84
+ */
85
+ showTargetVersionMismatchWarning?: boolean;
86
+ /**
87
+ * Show the Version Picker.
88
+ */
89
+ showVersionPicker?: boolean;
90
+ /**
91
+ * Show the Sample Data Editor Toolbox.
92
+ */
93
+ showSampleDataEditorToolbox?: boolean;
94
+ /**
95
+ * Show the Data Structure Toolbox.
96
+ */
97
+ showDataStructureToolbox?: boolean;
98
+ /**
99
+ * Show the Fluent UI Breakpoint Picker.
100
+ */
101
+ showFluentBreakpointsPicker?: boolean;
102
+ /**
103
+ * Show the copy to json button.
104
+ */
105
+ showCopyToJsonToolbarCommand?: boolean;
106
+ /**
107
+ * Add the default Host Containers to the Picker.
108
+ */
109
+ addDefaultAdaptiveCardHostContainer?: boolean;
110
+ /**
111
+ * Inject the SPFx Context Property inside the Adaptive Card data object.
112
+ */
113
+ injectAdaptiveCardHostContextProperty?: boolean;
114
+ }
115
+ export interface IAdaptiveCardDesignerHostProps extends IAdaptiveCardDesignerProps {
116
+ /**
117
+ * Set the Header text for the Adaptive Card Designer.
118
+ */
119
+ headerText: string;
120
+ /**
121
+ * Set the Button text for open the Adaptive Card Designer.
122
+ */
123
+ buttonText: string;
124
+ }
125
+ //# sourceMappingURL=IAdaptiveCardDesignerProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAdaptiveCardDesignerProps.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,0BAA0B;IACzC;;MAEE;IACF,OAAO,EA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AEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=IAdaptiveCardDesignerProps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAdaptiveCardDesignerProps.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { Version } from "adaptivecards";
2
+ import { HostContainer } from "adaptivecards-designer/lib/containers";
3
+ import { HostConfig } from "adaptivecards/lib/host-config";
4
+ export declare enum AdaptiveCardHostContainerType {
5
+ Default = "default",
6
+ TeamsDefault = "TeamsDefault",
7
+ TeamsDark = "TeamsDark",
8
+ TeamsHighContrast = "TeamsHighContrast"
9
+ }
10
+ export declare class AdaptiveCardHostContainer extends HostContainer {
11
+ private type;
12
+ constructor(name: string, type: AdaptiveCardHostContainerType);
13
+ renderTo(hostElement: HTMLElement): void;
14
+ getHostConfig(): HostConfig;
15
+ get targetVersion(): Version;
16
+ }
17
+ //# sourceMappingURL=AdaptiveCardHostContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardHostContainer.d.ts","sourceRoot":"","sources":["../../../../src/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAY,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAO3D,oBAAY,6BAA6B;IACrC,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;CAC1C;AAED,qBAAa,yBAA0B,SAAQ,aAAa;IACxD,OAAO,CAAC,IAAI,CAAgC;gBAEzB,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B;IAQ7D,QAAQ,CAAC,WAAW,EAAE,WAAW;IAOjC,aAAa,IAAI,UAAU;IA0BlC,IAAI,aAAa,IAAI,OAAO,CAE3B;CACJ"}
@@ -0,0 +1,80 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ import { Versions } from "adaptivecards";
15
+ import { HostContainer } from "adaptivecards-designer/lib/containers";
16
+ import { initializeAdaptiveCardHost } from "../../adaptiveCardHost/AdaptiveCardHost.HostConfig";
17
+ import { registerFluentUIActions } from "../../adaptiveCardHost/fluentUI/Actions";
18
+ import { registerFluentUIElements } from "../../adaptiveCardHost/fluentUI/Elements";
19
+ import { AdaptiveCardHostThemeType } from "../../adaptiveCardHost/models/AdaptiveCardHostThemeType";
20
+ import { fluentUIDefaultTheme } from "../../../common/fluentUIThemes/FluentUIDefaultTheme";
21
+ export var AdaptiveCardHostContainerType;
22
+ (function (AdaptiveCardHostContainerType) {
23
+ AdaptiveCardHostContainerType["Default"] = "default";
24
+ AdaptiveCardHostContainerType["TeamsDefault"] = "TeamsDefault";
25
+ AdaptiveCardHostContainerType["TeamsDark"] = "TeamsDark";
26
+ AdaptiveCardHostContainerType["TeamsHighContrast"] = "TeamsHighContrast";
27
+ })(AdaptiveCardHostContainerType || (AdaptiveCardHostContainerType = {}));
28
+ var AdaptiveCardHostContainer = /** @class */ (function (_super) {
29
+ __extends(AdaptiveCardHostContainer, _super);
30
+ function AdaptiveCardHostContainer(name, type) {
31
+ var _this = _super.call(this, name, "") || this;
32
+ _this.type = type;
33
+ registerFluentUIElements(_this.elementsRegistry);
34
+ registerFluentUIActions(_this.actionsRegistry);
35
+ return _this;
36
+ }
37
+ AdaptiveCardHostContainer.prototype.renderTo = function (hostElement) {
38
+ var container = document.createElement("div");
39
+ container.className = "adaptiveCardHostContainer";
40
+ container.appendChild(this.cardHost);
41
+ hostElement.appendChild(container);
42
+ };
43
+ AdaptiveCardHostContainer.prototype.getHostConfig = function () {
44
+ var hostThemeType;
45
+ switch (this.type) {
46
+ case AdaptiveCardHostContainerType.Default:
47
+ {
48
+ hostThemeType = AdaptiveCardHostThemeType.SharePoint;
49
+ }
50
+ break;
51
+ case AdaptiveCardHostContainerType.TeamsDefault:
52
+ {
53
+ hostThemeType = AdaptiveCardHostThemeType.Teams;
54
+ }
55
+ break;
56
+ case AdaptiveCardHostContainerType.TeamsDark:
57
+ {
58
+ hostThemeType = AdaptiveCardHostThemeType.TeamsDark;
59
+ }
60
+ break;
61
+ case AdaptiveCardHostContainerType.TeamsHighContrast:
62
+ {
63
+ hostThemeType = AdaptiveCardHostThemeType.TeamsHighContrast;
64
+ }
65
+ break;
66
+ }
67
+ var adaptiveCardHostConfigResult = initializeAdaptiveCardHost(hostThemeType, fluentUIDefaultTheme());
68
+ return adaptiveCardHostConfigResult.hostConfig;
69
+ };
70
+ Object.defineProperty(AdaptiveCardHostContainer.prototype, "targetVersion", {
71
+ get: function () {
72
+ return Versions.v1_5;
73
+ },
74
+ enumerable: false,
75
+ configurable: true
76
+ });
77
+ return AdaptiveCardHostContainer;
78
+ }(HostContainer));
79
+ export { AdaptiveCardHostContainer };
80
+ //# sourceMappingURL=AdaptiveCardHostContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardHostContainer.js","sourceRoot":"","sources":["../../../../src/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,EAAW,QAAQ,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,M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C,aAAa,GAAG,yBAAyB,CAAC,KAAK,CAAC;iBACnD;gBACG,MAAM;YACV,KAAK,6BAA6B,CAAC,SAAS;gBAAE;oBAC1C,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC;iBACvD;gBACG,MAAM;YACV,KAAK,6BAA6B,CAAC,iBAAiB;gBAAE;oBAClD,aAAa,GAAG,yBAAyB,CAAC,iBAAiB,CAAC;iBAC/D;gBACG,MAAM;SACb;QAED,IAAI,4BAA4B,GAAG,0BAA0B,CAAC,aAAa,EAAE,oBAAoB,EAAE,CAAC,CAAC;QACrG,OAAO,4BAA4B,CAAC,UAAU,CAAC;IACnD,CAAC;IAED,sBAAI,oDAAa;aAAjB;YACI,OAAO,QAAQ,CAAC,IAAI,CAAC;QACzB,CAAC;;;OAAA;IACL,gCAAC;AAAD,CAAC,AA/CD,CAA+C,aAAa,GA+C3D"}
@@ -0,0 +1,3 @@
1
+ export * from './AdaptiveCardHostContainer';
2
+ export * from './peers';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/controls/adaptiveCardDesignerHost/fluentUI/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './AdaptiveCardHostContainer';
2
+ export * from './peers';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/adaptiveCardDesignerHost/fluentUI/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { BaseSubmitActionPeer, PropertySheet, StringPropertyEditor, TypedActionPeer } from "adaptivecards-designer/lib/designer-peers";
2
+ import { FluentUIExecuteAction, FluentUIOpenUrlAction, FluentUIShowCardAction, FluentUISubmitAction, FluentUIToggleVisibilityAction } from "../../../adaptiveCardHost/fluentUI/Actions";
3
+ export declare class SubmitActionPeer extends BaseSubmitActionPeer<FluentUISubmitAction> {
4
+ }
5
+ export declare class ExecuteActionPeer extends BaseSubmitActionPeer<FluentUIExecuteAction> {
6
+ static readonly verbProperty: StringPropertyEditor;
7
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
8
+ }
9
+ export declare class OpenUrlActionPeer extends TypedActionPeer<FluentUIOpenUrlAction> {
10
+ static readonly urlProperty: StringPropertyEditor;
11
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
12
+ }
13
+ export declare class ShowCardActionPeer extends TypedActionPeer<FluentUIShowCardAction> {
14
+ protected getToolTip(): string;
15
+ }
16
+ export declare class ToggleVisibilityActionPeer extends TypedActionPeer<FluentUIToggleVisibilityAction> {
17
+ }
18
+ //# sourceMappingURL=ActionPeers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionPeers.d.ts","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAyB,oBAAoB,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAC9J,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAExL,qBAAa,gBAAiB,SAAQ,oBAAoB,CAAC,oBAAoB,CAAC;CAC/E;AAED,qBAAa,iBAAkB,SAAQ,oBAAoB,CAAC,qBAAqB,CAAC;IAC9E,gBAAuB,YAAY,uBAAoE;IAEhG,qBAAqB,CAAC,aAAa,EAAE,aAAa,EAAE,eAAe,GAAE,MAA8C;CAK7H;AAED,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,qBAAqB,CAAC;IACzE,gBAAuB,WAAW,uBAAkE;IAE7F,qBAAqB,CAAC,aAAa,EAAE,aAAa,EAAE,eAAe,GAAE,MAA8C;CAO7H;AAED,qBAAa,kBAAmB,SAAQ,eAAe,CAAC,sBAAsB,CAAC;IAC3E,SAAS,CAAC,UAAU,IAAI,MAAM;CAGjC;AAED,qBAAa,0BAA2B,SAAQ,eAAe,CAAC,8BAA8B,CAAC;CAC9F"}