@pnp/spfx-controls-react 3.9.0-beta.2597991 → 3.9.0-beta.2653027

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 (146) hide show
  1. package/CHANGELOG.json +5 -2
  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/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.d.ts +7 -0
  9. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.d.ts.map +1 -0
  10. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.js +49 -0
  11. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Helpers.js.map +1 -0
  12. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.css +2176 -0
  13. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.d.ts +2 -0
  14. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.d.ts.map +1 -0
  15. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.js +4 -0
  16. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.Styles.js.map +1 -0
  17. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.d.ts +33 -0
  18. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.d.ts.map +1 -0
  19. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.js +176 -0
  20. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesigner.js.map +1 -0
  21. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.d.ts +4 -0
  22. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.d.ts.map +1 -0
  23. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.js +4 -0
  24. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.Exports.js.map +1 -0
  25. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.d.ts +4 -0
  26. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.d.ts.map +1 -0
  27. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.js +49 -0
  28. package/lib/controls/adaptiveCardDesignerHost/AdaptiveCardDesignerHost.js.map +1 -0
  29. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.d.ts +125 -0
  30. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.d.ts.map +1 -0
  31. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.js +1 -0
  32. package/lib/controls/adaptiveCardDesignerHost/IAdaptiveCardDesignerProps.js.map +1 -0
  33. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.d.ts +17 -0
  34. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.d.ts.map +1 -0
  35. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.js +80 -0
  36. package/lib/controls/adaptiveCardDesignerHost/fluentUI/AdaptiveCardHostContainer.js.map +1 -0
  37. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.d.ts +3 -0
  38. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.d.ts.map +1 -0
  39. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.js +3 -0
  40. package/lib/controls/adaptiveCardDesignerHost/fluentUI/index.js.map +1 -0
  41. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.d.ts +18 -0
  42. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.d.ts.map +1 -0
  43. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.js +71 -0
  44. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.js.map +1 -0
  45. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.d.ts +2 -0
  46. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.d.ts.map +1 -0
  47. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.js +21 -0
  48. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.js.map +1 -0
  49. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.d.ts +54 -0
  50. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.d.ts.map +1 -0
  51. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.js +158 -0
  52. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.js.map +1 -0
  53. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.d.ts +24 -0
  54. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.d.ts.map +1 -0
  55. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.js +136 -0
  56. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.js.map +1 -0
  57. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.d.ts +5 -0
  58. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.d.ts.map +1 -0
  59. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.js +5 -0
  60. package/lib/controls/adaptiveCardDesignerHost/fluentUI/peers/index.js.map +1 -0
  61. package/lib/controls/adaptiveCardDesignerHost/index.d.ts +8 -0
  62. package/lib/controls/adaptiveCardDesignerHost/index.d.ts.map +1 -0
  63. package/lib/controls/adaptiveCardDesignerHost/index.js +8 -0
  64. package/lib/controls/adaptiveCardDesignerHost/index.js.map +1 -0
  65. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts +2 -0
  66. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.d.ts.map +1 -0
  67. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.js +2 -0
  68. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Exports.js.map +1 -0
  69. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts +5 -0
  70. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.d.ts.map +1 -0
  71. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.js +59 -0
  72. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.js.map +1 -0
  73. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts +8 -0
  74. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.d.ts.map +1 -0
  75. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.js +102 -0
  76. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.Utilities.js.map +1 -0
  77. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.d.ts.map +1 -1
  78. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.js +49 -102
  79. package/lib/controls/adaptiveCardHost/AdaptiveCardHost.js.map +1 -1
  80. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.d.ts +2 -13
  81. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.d.ts.map +1 -1
  82. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.js +0 -7
  83. package/lib/controls/adaptiveCardHost/IAdaptiveCardHostProps.js.map +1 -1
  84. package/lib/controls/adaptiveCardHost/fluentUI/Actions.d.ts +3 -1
  85. package/lib/controls/adaptiveCardHost/fluentUI/Actions.d.ts.map +1 -1
  86. package/lib/controls/adaptiveCardHost/fluentUI/Actions.js +40 -7
  87. package/lib/controls/adaptiveCardHost/fluentUI/Actions.js.map +1 -1
  88. package/lib/controls/adaptiveCardHost/fluentUI/Elements.d.ts +6 -1
  89. package/lib/controls/adaptiveCardHost/fluentUI/Elements.d.ts.map +1 -1
  90. package/lib/controls/adaptiveCardHost/fluentUI/Elements.js +24 -6
  91. package/lib/controls/adaptiveCardHost/fluentUI/Elements.js.map +1 -1
  92. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.d.ts +6 -0
  93. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.d.ts.map +1 -0
  94. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.js +13 -0
  95. package/lib/controls/adaptiveCardHost/fluentUI/HostCapability.js.map +1 -0
  96. package/lib/controls/adaptiveCardHost/fluentUI/HostConfig.d.ts +6 -0
  97. package/lib/controls/adaptiveCardHost/fluentUI/HostConfig.d.ts.map +1 -0
  98. package/lib/controls/adaptiveCardHost/{AdaptiveCardHostHelpers.js → fluentUI/HostConfig.js} +6 -111
  99. package/lib/controls/adaptiveCardHost/fluentUI/HostConfig.js.map +1 -0
  100. package/lib/controls/adaptiveCardHost/{AdaptiveCardHostCssStyles.d.ts → fluentUI/Styles.d.ts} +1 -1
  101. package/lib/controls/adaptiveCardHost/fluentUI/Styles.d.ts.map +1 -0
  102. package/lib/controls/adaptiveCardHost/{AdaptiveCardHostCssStyles.js → fluentUI/Styles.js} +2 -2
  103. package/lib/controls/adaptiveCardHost/fluentUI/Styles.js.map +1 -0
  104. package/lib/controls/adaptiveCardHost/fluentUI/index.d.ts +3 -2
  105. package/lib/controls/adaptiveCardHost/fluentUI/index.d.ts.map +1 -1
  106. package/lib/controls/adaptiveCardHost/fluentUI/index.js +3 -2
  107. package/lib/controls/adaptiveCardHost/fluentUI/index.js.map +1 -1
  108. package/lib/controls/adaptiveCardHost/index.d.ts +4 -2
  109. package/lib/controls/adaptiveCardHost/index.d.ts.map +1 -1
  110. package/lib/controls/adaptiveCardHost/index.js +4 -2
  111. package/lib/controls/adaptiveCardHost/index.js.map +1 -1
  112. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts +7 -0
  113. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.d.ts.map +1 -0
  114. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.js +8 -0
  115. package/lib/controls/adaptiveCardHost/models/AdaptiveCardHostThemeType.js.map +1 -0
  116. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts +8 -0
  117. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.d.ts.map +1 -0
  118. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.js +1 -0
  119. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostActionResult.js.map +1 -0
  120. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts +7 -0
  121. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.d.ts.map +1 -0
  122. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.js +1 -0
  123. package/lib/controls/adaptiveCardHost/models/IAdaptiveCardHostConfigResult.js.map +1 -0
  124. package/lib/controls/adaptiveCardHost/models/index.d.ts +12 -0
  125. package/lib/controls/adaptiveCardHost/models/index.d.ts.map +1 -0
  126. package/lib/controls/adaptiveCardHost/models/index.js +12 -0
  127. package/lib/controls/adaptiveCardHost/models/index.js.map +1 -0
  128. package/package.json +3 -2
  129. package/release/webpack-stats/sp-dev-fx-controls-react.stats.json +40293 -13455
  130. package/lib/controls/adaptiveCardHost/AdaptiveCardHostCssStyles.d.ts.map +0 -1
  131. package/lib/controls/adaptiveCardHost/AdaptiveCardHostCssStyles.js.map +0 -1
  132. package/lib/controls/adaptiveCardHost/AdaptiveCardHostHelpers.d.ts +0 -13
  133. package/lib/controls/adaptiveCardHost/AdaptiveCardHostHelpers.d.ts.map +0 -1
  134. package/lib/controls/adaptiveCardHost/AdaptiveCardHostHelpers.js.map +0 -1
  135. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.d.ts +0 -11
  136. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.d.ts.map +0 -1
  137. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.js +0 -75
  138. package/lib/controls/adaptiveCardHost/fluentUI/FluentUI.js.map +0 -1
  139. package/lib/controls/adaptiveCardHost/fluentUI/Shared.d.ts +0 -4
  140. package/lib/controls/adaptiveCardHost/fluentUI/Shared.d.ts.map +0 -1
  141. package/lib/controls/adaptiveCardHost/fluentUI/Shared.js +0 -8
  142. package/lib/controls/adaptiveCardHost/fluentUI/Shared.js.map +0 -1
  143. package/lib/controls/adaptiveCardHost/themes/redPalette.json +0 -24
  144. package/lib/controls/adaptiveCardHost/themes/teamsDarkPalette.json +0 -24
  145. package/lib/controls/adaptiveCardHost/themes/teamsDefaultPalette.json +0 -24
  146. package/lib/controls/adaptiveCardHost/themes/teamsHighContrastPalette.json +0 -24
@@ -0,0 +1,71 @@
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 * as Adaptive from "adaptivecards";
15
+ import { BaseSubmitActionPeer, PropertySheetCategory, StringPropertyEditor, TypedActionPeer } from "adaptivecards-designer/lib/designer-peers";
16
+ var SubmitActionPeer = /** @class */ (function (_super) {
17
+ __extends(SubmitActionPeer, _super);
18
+ function SubmitActionPeer() {
19
+ return _super !== null && _super.apply(this, arguments) || this;
20
+ }
21
+ return SubmitActionPeer;
22
+ }(BaseSubmitActionPeer));
23
+ export { SubmitActionPeer };
24
+ var ExecuteActionPeer = /** @class */ (function (_super) {
25
+ __extends(ExecuteActionPeer, _super);
26
+ function ExecuteActionPeer() {
27
+ return _super !== null && _super.apply(this, arguments) || this;
28
+ }
29
+ ExecuteActionPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
30
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
31
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
32
+ propertySheet.add(defaultCategory, ExecuteActionPeer.verbProperty);
33
+ };
34
+ ExecuteActionPeer.verbProperty = new StringPropertyEditor(Adaptive.Versions.v1_4, "verb", "Verb");
35
+ return ExecuteActionPeer;
36
+ }(BaseSubmitActionPeer));
37
+ export { ExecuteActionPeer };
38
+ var OpenUrlActionPeer = /** @class */ (function (_super) {
39
+ __extends(OpenUrlActionPeer, _super);
40
+ function OpenUrlActionPeer() {
41
+ return _super !== null && _super.apply(this, arguments) || this;
42
+ }
43
+ OpenUrlActionPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
44
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
45
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
46
+ propertySheet.add(defaultCategory, OpenUrlActionPeer.urlProperty);
47
+ };
48
+ OpenUrlActionPeer.urlProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "url", "Url");
49
+ return OpenUrlActionPeer;
50
+ }(TypedActionPeer));
51
+ export { OpenUrlActionPeer };
52
+ var ShowCardActionPeer = /** @class */ (function (_super) {
53
+ __extends(ShowCardActionPeer, _super);
54
+ function ShowCardActionPeer() {
55
+ return _super !== null && _super.apply(this, arguments) || this;
56
+ }
57
+ ShowCardActionPeer.prototype.getToolTip = function () {
58
+ return "Double click to open/close";
59
+ };
60
+ return ShowCardActionPeer;
61
+ }(TypedActionPeer));
62
+ export { ShowCardActionPeer };
63
+ var ToggleVisibilityActionPeer = /** @class */ (function (_super) {
64
+ __extends(ToggleVisibilityActionPeer, _super);
65
+ function ToggleVisibilityActionPeer() {
66
+ return _super !== null && _super.apply(this, arguments) || this;
67
+ }
68
+ return ToggleVisibilityActionPeer;
69
+ }(TypedActionPeer));
70
+ export { ToggleVisibilityActionPeer };
71
+ //# sourceMappingURL=ActionPeers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionPeers.js","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/ActionPeers.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAiB,qBAAqB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAG9J;IAAsC,oCAA0C;IAAhF;;IACA,CAAC;IAAD,uBAAC;AAAD,CAAC,AADD,CAAsC,oBAAoB,GACzD;;AAED;IAAuC,qCAA2C;IAAlF;;IAQA,CAAC;IALU,iDAAqB,GAA5B,UAA6B,aAA4B,EAAE,eAA+D;QAA/D,gCAAA,EAAA,kBAA0B,qBAAqB,CAAC,eAAe;QACtH,iBAAM,qBAAqB,YAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAE5D,aAAa,CAAC,GAAG,CAAC,eAAe,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC;IACvE,CAAC;IANsB,8BAAY,GAAG,IAAI,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAO3G,wBAAC;CAAA,AARD,CAAuC,oBAAoB,GAQ1D;SARY,iBAAiB;AAU9B;IAAuC,qCAAsC;IAA7E;;IAUA,CAAC;IAPU,iDAAqB,GAA5B,UAA6B,aAA4B,EAAE,eAA+D;QAA/D,gCAAA,EAAA,kBAA0B,qBAAqB,CAAC,eAAe;QACtH,iBAAM,qBAAqB,YAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAE5D,aAAa,CAAC,GAAG,CACb,eAAe,EACf,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACvC,CAAC;IARsB,6BAAW,GAAG,IAAI,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IASxG,wBAAC;CAAA,AAVD,CAAuC,eAAe,GAUrD;SAVY,iBAAiB;AAY9B;IAAwC,sCAAuC;IAA/E;;IAIA,CAAC;IAHa,uCAAU,GAApB;QACI,OAAO,4BAA4B,CAAC;IACxC,CAAC;IACL,yBAAC;AAAD,CAAC,AAJD,CAAwC,eAAe,GAItD;;AAED;IAAgD,8CAA+C;IAA/F;;IACA,CAAC;IAAD,iCAAC;AAAD,CAAC,AADD,CAAgD,eAAe,GAC9D"}
@@ -0,0 +1,2 @@
1
+ export declare function initializeDesignerPeers(): void;
2
+ //# sourceMappingURL=DesignerPeers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignerPeers.d.ts","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.ts"],"names":[],"mappings":"AAOA,wBAAgB,uBAAuB,SActC"}
@@ -0,0 +1,21 @@
1
+ import { CardDesignerSurface } from "adaptivecards-designer/lib/card-designer-surface";
2
+ import { ExecuteActionPeer, OpenUrlActionPeer, ShowCardActionPeer, SubmitActionPeer, ToggleVisibilityActionPeer } from "adaptivecards-designer/lib/designer-peers";
3
+ import { FluentUIExecuteAction, FluentUIOpenUrlAction, FluentUIShowCardAction, FluentUISubmitAction, FluentUIToggleVisibilityAction } from "../../../adaptiveCardHost/fluentUI/Actions";
4
+ import { FluentUIChoiceSetInput, FluentUIDateInput, FluentUINumberInput, FluentUITextInput, FluentUITimeInput, FluentUIToggleInput } from "../../../adaptiveCardHost/fluentUI/Elements";
5
+ import { ChoiceSetInputPeer, DateInputPeer, NumberInputPeer, TextInputPeer, TimeInputPeer, ToggleInputPeer } from "./InputPeers";
6
+ import { DesignerPeerCategory } from "./Shared";
7
+ export function initializeDesignerPeers() {
8
+ //https://github.com/microsoft/AdaptiveCards/blob/87e44941433326a9238de2161124fc246f12a1b6/source/nodejs/adaptivecards-designer/src/card-designer-surface.ts
9
+ CardDesignerSurface.cardElementPeerRegistry.registerPeer(FluentUITextInput, TextInputPeer, DesignerPeerCategory.Inputs, "acd-icon-inputText");
10
+ CardDesignerSurface.cardElementPeerRegistry.registerPeer(FluentUINumberInput, NumberInputPeer, DesignerPeerCategory.Inputs, "acd-icon-inputNumber");
11
+ CardDesignerSurface.cardElementPeerRegistry.registerPeer(FluentUITimeInput, TimeInputPeer, DesignerPeerCategory.Inputs, "acd-icon-inputTime");
12
+ CardDesignerSurface.cardElementPeerRegistry.registerPeer(FluentUIDateInput, DateInputPeer, DesignerPeerCategory.Inputs, "acd-icon-inputDate");
13
+ CardDesignerSurface.cardElementPeerRegistry.registerPeer(FluentUIToggleInput, ToggleInputPeer, DesignerPeerCategory.Inputs, "acd-icon-inputToggle");
14
+ CardDesignerSurface.cardElementPeerRegistry.registerPeer(FluentUIChoiceSetInput, ChoiceSetInputPeer, DesignerPeerCategory.Inputs, "acd-icon-inputChoiceSet");
15
+ CardDesignerSurface.actionPeerRegistry.registerPeer(FluentUISubmitAction, SubmitActionPeer, DesignerPeerCategory.Actions, "acd-icon-actionSubmit");
16
+ CardDesignerSurface.actionPeerRegistry.registerPeer(FluentUIOpenUrlAction, OpenUrlActionPeer, DesignerPeerCategory.Actions, "acd-icon-actionOpenUrl");
17
+ CardDesignerSurface.actionPeerRegistry.registerPeer(FluentUIShowCardAction, ShowCardActionPeer, DesignerPeerCategory.Actions, "acd-icon-actionShowCard");
18
+ CardDesignerSurface.actionPeerRegistry.registerPeer(FluentUIToggleVisibilityAction, ToggleVisibilityActionPeer, DesignerPeerCategory.Actions, "acd-icon-actionToggleVisibility");
19
+ CardDesignerSurface.actionPeerRegistry.registerPeer(FluentUIExecuteAction, ExecuteActionPeer, DesignerPeerCategory.Actions, "acd-icon-actionSubmit");
20
+ }
21
+ //# sourceMappingURL=DesignerPeers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DesignerPeers.js","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/DesignerPeers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AACnK,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AACxL,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACxL,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACjI,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,UAAU,uBAAuB;IACnC,4JAA4J;IAC5J,mBAAmB,CAAC,uBAAuB,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,EAAE,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC9I,mBAAmB,CAAC,uBAAuB,CAAC,YAAY,CAAC,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IACpJ,mBAAmB,CAAC,uBAAuB,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,EAAE,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC9I,mBAAmB,CAAC,uBAAuB,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,EAAE,oBAAoB,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAC;IAC9I,mBAAmB,CAAC,uBAAuB,CAAC,YAAY,CAAC,mBAAmB,EAAE,eAAe,EAAE,oBAAoB,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IACpJ,mBAAmB,CAAC,uBAAuB,CAAC,YAAY,CAAC,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IAE7J,mBAAmB,CAAC,kBAAkB,CAAC,YAAY,CAAC,oBAAoB,EAAE,gBAAgB,EAAE,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;IACnJ,mBAAmB,CAAC,kBAAkB,CAAC,YAAY,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,OAAO,EAAE,wBAAwB,CAAC,CAAC;IACtJ,mBAAmB,CAAC,kBAAkB,CAAC,YAAY,CAAC,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,CAAC,OAAO,EAAE,yBAAyB,CAAC,CAAC;IACzJ,mBAAmB,CAAC,kBAAkB,CAAC,YAAY,CAAC,8BAA8B,EAAE,0BAA0B,EAAE,oBAAoB,CAAC,OAAO,EAAE,iCAAiC,CAAC,CAAC;IACjL,mBAAmB,CAAC,kBAAkB,CAAC,YAAY,CAAC,qBAAqB,EAAE,iBAAiB,EAAE,oBAAoB,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAC;AACzJ,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { ActionPropertyEditor, BooleanPropertyEditor, ChoicePropertyEditor, EnumPropertyEditor, InputPeer, NumberPropertyEditor, PropertySheet, StringPropertyEditor } from "adaptivecards-designer/lib/designer-peers";
2
+ import { FluentUIChoiceSetInput, FluentUIDateInput, FluentUINumberInput, FluentUITextInput, FluentUITimeInput, FluentUIToggleInput } from "../../../adaptiveCardHost/fluentUI/Elements";
3
+ import { NameValuePairPropertyEditor } from "./Shared";
4
+ export declare class TextInputPeer extends InputPeer<FluentUITextInput> {
5
+ static readonly defaultValueProperty: StringPropertyEditor;
6
+ static readonly placeholderProperty: StringPropertyEditor;
7
+ static readonly isMultilineProperty: BooleanPropertyEditor;
8
+ static readonly styleProperty: EnumPropertyEditor;
9
+ static readonly maxLengthProperty: NumberPropertyEditor;
10
+ static readonly inlineActionProperty: ActionPropertyEditor;
11
+ static readonly regexProperty: StringPropertyEditor;
12
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
13
+ initializeCardElement(): void;
14
+ }
15
+ export declare class NumberInputPeer extends InputPeer<FluentUINumberInput> {
16
+ static readonly defaultValueProperty: NumberPropertyEditor;
17
+ static readonly placeholderProperty: StringPropertyEditor;
18
+ static readonly minProperty: NumberPropertyEditor;
19
+ static readonly maxProperty: NumberPropertyEditor;
20
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
21
+ initializeCardElement(): void;
22
+ }
23
+ export declare class DateInputPeer extends InputPeer<FluentUIDateInput> {
24
+ static readonly defaultValueProperty: StringPropertyEditor;
25
+ static readonly minProperty: StringPropertyEditor;
26
+ static readonly maxProperty: StringPropertyEditor;
27
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
28
+ }
29
+ export declare class TimeInputPeer extends InputPeer<FluentUITimeInput> {
30
+ static readonly defaultValueProperty: StringPropertyEditor;
31
+ static readonly minProperty: StringPropertyEditor;
32
+ static readonly maxProperty: StringPropertyEditor;
33
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
34
+ }
35
+ export declare class ToggleInputPeer extends InputPeer<FluentUIToggleInput> {
36
+ static readonly defaultValueProperty: StringPropertyEditor;
37
+ static readonly titleProperty: StringPropertyEditor;
38
+ static readonly valueOnProperty: StringPropertyEditor;
39
+ static readonly valueOffProperty: StringPropertyEditor;
40
+ static readonly wrapProperty: BooleanPropertyEditor;
41
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
42
+ initializeCardElement(): void;
43
+ }
44
+ export declare class ChoiceSetInputPeer extends InputPeer<FluentUIChoiceSetInput> {
45
+ static readonly defaultValueProperty: StringPropertyEditor;
46
+ static readonly placeholderProperty: StringPropertyEditor;
47
+ static readonly isMultiselectProperty: BooleanPropertyEditor;
48
+ static readonly styleProperty: ChoicePropertyEditor;
49
+ static readonly wrapProperty: BooleanPropertyEditor;
50
+ static readonly choicesProperty: NameValuePairPropertyEditor;
51
+ populatePropertySheet(propertySheet: PropertySheet, defaultCategory?: string): void;
52
+ initializeCardElement(): void;
53
+ }
54
+ //# sourceMappingURL=InputPeers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputPeers.d.ts","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,oBAAoB,EAAE,qBAAqB,EAAmB,oBAAoB,EAAE,kBAAkB,EAAE,SAAS,EAAE,oBAAoB,EAAE,aAAa,EAAyB,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAC5Q,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AACxL,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEvD,qBAAa,aAAc,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAC3D,gBAAuB,oBAAoB,uBAAqF;IAChI,gBAAuB,mBAAmB,uBAAkF;IAC5H,gBAAuB,mBAAmB,wBAAwF;IAClI,gBAAuB,aAAa,qBAA6F;IACjI,gBAAuB,iBAAiB,uBAAmF;IAC3H,gBAAuB,oBAAoB,uBAAiI;IAC5K,gBAAuB,aAAa,uBAAwE;IAGrG,qBAAqB,CAAC,aAAa,EAAE,aAAa,EAAE,eAAe,GAAE,MAA8C;IA0CnH,qBAAqB;CAK/B;AAED,qBAAa,eAAgB,SAAQ,SAAS,C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Ae,GAAE,MAA8C;IAmBnH,qBAAqB;CAQ/B"}
@@ -0,0 +1,158 @@
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 * as Adaptive from "adaptivecards";
15
+ import { ActionPeer, ActionPropertyEditor, BooleanPropertyEditor, CardElementPeer, ChoicePropertyEditor, EnumPropertyEditor, InputPeer, NumberPropertyEditor, PropertySheetCategory, StringPropertyEditor } from "adaptivecards-designer/lib/designer-peers";
16
+ import { NameValuePairPropertyEditor } from "./Shared";
17
+ var TextInputPeer = /** @class */ (function (_super) {
18
+ __extends(TextInputPeer, _super);
19
+ function TextInputPeer() {
20
+ return _super !== null && _super.apply(this, arguments) || this;
21
+ }
22
+ TextInputPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
23
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
24
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
25
+ propertySheet.add(defaultCategory, TextInputPeer.placeholderProperty, TextInputPeer.isMultilineProperty);
26
+ if (!this.cardElement.isMultiline) {
27
+ propertySheet.add(PropertySheetCategory.DefaultCategory, TextInputPeer.styleProperty);
28
+ }
29
+ else {
30
+ propertySheet.add(PropertySheetCategory.LayoutCategory, CardElementPeer.heightProperty);
31
+ }
32
+ propertySheet.add(PropertySheetCategory.InlineAction, TextInputPeer.inlineActionProperty);
33
+ if (this.cardElement.inlineAction) {
34
+ propertySheet.addActionProperties(Adaptive.Versions.v1_2, this, this.cardElement.inlineAction, PropertySheetCategory.InlineAction, [ActionPeer.styleProperty, ActionPeer.modeProperty]);
35
+ }
36
+ propertySheet.add(defaultCategory, TextInputPeer.maxLengthProperty, TextInputPeer.defaultValueProperty);
37
+ propertySheet.add(PropertySheetCategory.Validation, TextInputPeer.regexProperty);
38
+ };
39
+ TextInputPeer.prototype.initializeCardElement = function () {
40
+ _super.prototype.initializeCardElement.call(this);
41
+ this.cardElement.placeholder = "Placeholder text";
42
+ };
43
+ TextInputPeer.defaultValueProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "defaultValue", "Default value");
44
+ TextInputPeer.placeholderProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "placeholder", "Placeholder");
45
+ TextInputPeer.isMultilineProperty = new BooleanPropertyEditor(Adaptive.Versions.v1_0, "isMultiline", "Multi-line", true);
46
+ TextInputPeer.styleProperty = new EnumPropertyEditor(Adaptive.Versions.v1_0, "style", "Style", Adaptive.InputTextStyle);
47
+ TextInputPeer.maxLengthProperty = new NumberPropertyEditor(Adaptive.Versions.v1_0, "maxLength", "Maximum length");
48
+ TextInputPeer.inlineActionProperty = new ActionPropertyEditor(Adaptive.Versions.v1_2, "inlineAction", "Action type", [Adaptive.ShowCardAction.JsonTypeName], true);
49
+ TextInputPeer.regexProperty = new StringPropertyEditor(Adaptive.Versions.v1_3, "regex", "Pattern");
50
+ return TextInputPeer;
51
+ }(InputPeer));
52
+ export { TextInputPeer };
53
+ var NumberInputPeer = /** @class */ (function (_super) {
54
+ __extends(NumberInputPeer, _super);
55
+ function NumberInputPeer() {
56
+ return _super !== null && _super.apply(this, arguments) || this;
57
+ }
58
+ NumberInputPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
59
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
60
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
61
+ propertySheet.add(defaultCategory, NumberInputPeer.placeholderProperty, NumberInputPeer.defaultValueProperty, NumberInputPeer.minProperty, NumberInputPeer.maxProperty);
62
+ };
63
+ NumberInputPeer.prototype.initializeCardElement = function () {
64
+ _super.prototype.initializeCardElement.call(this);
65
+ this.cardElement.placeholder = "Placeholder text";
66
+ this.cardElement.defaultValue = 0;
67
+ };
68
+ NumberInputPeer.defaultValueProperty = new NumberPropertyEditor(Adaptive.Versions.v1_0, "defaultValue", "Default value");
69
+ NumberInputPeer.placeholderProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "placeholder", "Placeholder");
70
+ NumberInputPeer.minProperty = new NumberPropertyEditor(Adaptive.Versions.v1_0, "min", "Minimum value");
71
+ NumberInputPeer.maxProperty = new NumberPropertyEditor(Adaptive.Versions.v1_0, "max", "Maximum value");
72
+ return NumberInputPeer;
73
+ }(InputPeer));
74
+ export { NumberInputPeer };
75
+ var DateInputPeer = /** @class */ (function (_super) {
76
+ __extends(DateInputPeer, _super);
77
+ function DateInputPeer() {
78
+ return _super !== null && _super.apply(this, arguments) || this;
79
+ }
80
+ DateInputPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
81
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
82
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
83
+ propertySheet.add(defaultCategory, DateInputPeer.defaultValueProperty, DateInputPeer.minProperty, DateInputPeer.maxProperty);
84
+ };
85
+ DateInputPeer.defaultValueProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "defaultValue", "Default value");
86
+ DateInputPeer.minProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "min", "Minimum value");
87
+ DateInputPeer.maxProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "max", "Maximum value");
88
+ return DateInputPeer;
89
+ }(InputPeer));
90
+ export { DateInputPeer };
91
+ var TimeInputPeer = /** @class */ (function (_super) {
92
+ __extends(TimeInputPeer, _super);
93
+ function TimeInputPeer() {
94
+ return _super !== null && _super.apply(this, arguments) || this;
95
+ }
96
+ TimeInputPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
97
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
98
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
99
+ propertySheet.add(defaultCategory, TimeInputPeer.defaultValueProperty, TimeInputPeer.minProperty, TimeInputPeer.maxProperty);
100
+ };
101
+ TimeInputPeer.defaultValueProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "defaultValue", "Default value");
102
+ TimeInputPeer.minProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "min", "Minimum value");
103
+ TimeInputPeer.maxProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "max", "Maximum value");
104
+ return TimeInputPeer;
105
+ }(InputPeer));
106
+ export { TimeInputPeer };
107
+ var ToggleInputPeer = /** @class */ (function (_super) {
108
+ __extends(ToggleInputPeer, _super);
109
+ function ToggleInputPeer() {
110
+ return _super !== null && _super.apply(this, arguments) || this;
111
+ }
112
+ ToggleInputPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
113
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
114
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
115
+ propertySheet.add(defaultCategory, ToggleInputPeer.titleProperty, ToggleInputPeer.valueOnProperty, ToggleInputPeer.valueOffProperty, ToggleInputPeer.defaultValueProperty);
116
+ propertySheet.add(PropertySheetCategory.LayoutCategory, ToggleInputPeer.wrapProperty);
117
+ };
118
+ ToggleInputPeer.prototype.initializeCardElement = function () {
119
+ this.cardElement.title = "New Input.Toggle";
120
+ };
121
+ ToggleInputPeer.defaultValueProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "defaultValue", "Default value");
122
+ ToggleInputPeer.titleProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "title", "Title", true);
123
+ ToggleInputPeer.valueOnProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "valueOn", "Value when on");
124
+ ToggleInputPeer.valueOffProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "valueOff", "Value when off");
125
+ ToggleInputPeer.wrapProperty = new BooleanPropertyEditor(Adaptive.Versions.v1_2, "wrap", "Wrap");
126
+ return ToggleInputPeer;
127
+ }(InputPeer));
128
+ export { ToggleInputPeer };
129
+ var ChoiceSetInputPeer = /** @class */ (function (_super) {
130
+ __extends(ChoiceSetInputPeer, _super);
131
+ function ChoiceSetInputPeer() {
132
+ return _super !== null && _super.apply(this, arguments) || this;
133
+ }
134
+ ChoiceSetInputPeer.prototype.populatePropertySheet = function (propertySheet, defaultCategory) {
135
+ if (defaultCategory === void 0) { defaultCategory = PropertySheetCategory.DefaultCategory; }
136
+ _super.prototype.populatePropertySheet.call(this, propertySheet, defaultCategory);
137
+ propertySheet.add(defaultCategory, ChoiceSetInputPeer.placeholderProperty, ChoiceSetInputPeer.isMultiselectProperty, ChoiceSetInputPeer.styleProperty, ChoiceSetInputPeer.defaultValueProperty);
138
+ propertySheet.add(PropertySheetCategory.LayoutCategory, ToggleInputPeer.wrapProperty);
139
+ propertySheet.add("Choices", ChoiceSetInputPeer.choicesProperty);
140
+ };
141
+ ChoiceSetInputPeer.prototype.initializeCardElement = function () {
142
+ this.cardElement.placeholder = "Placeholder text";
143
+ this.cardElement.choices.push(new Adaptive.Choice("Choice 1", "Choice 1"), new Adaptive.Choice("Choice 2", "Choice 2"));
144
+ };
145
+ ChoiceSetInputPeer.defaultValueProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "defaultValue", "Default value");
146
+ ChoiceSetInputPeer.placeholderProperty = new StringPropertyEditor(Adaptive.Versions.v1_0, "placeholder", "Placeholder");
147
+ ChoiceSetInputPeer.isMultiselectProperty = new BooleanPropertyEditor(Adaptive.Versions.v1_0, "isMultiSelect", "Allow multi selection");
148
+ ChoiceSetInputPeer.styleProperty = new ChoicePropertyEditor(Adaptive.Versions.v1_0, "style", "Style", [
149
+ { targetVersion: Adaptive.Versions.v1_0, name: "Compact", value: "compact" },
150
+ { targetVersion: Adaptive.Versions.v1_0, name: "Expanded", value: "expanded" },
151
+ { targetVersion: Adaptive.Versions.v1_5, name: "Filtered", value: "filtered" }
152
+ ], true);
153
+ ChoiceSetInputPeer.wrapProperty = new BooleanPropertyEditor(Adaptive.Versions.v1_2, "wrap", "Wrap");
154
+ ChoiceSetInputPeer.choicesProperty = new NameValuePairPropertyEditor(Adaptive.Versions.v1_0, "choices", "title", "value", function (name, value) { return new Adaptive.Choice(name, value); }, "Title", "Value", "Add a new choice", "This ChoiceSet is empty");
155
+ return ChoiceSetInputPeer;
156
+ }(InputPeer));
157
+ export { ChoiceSetInputPeer };
158
+ //# sourceMappingURL=InputPeers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputPeers.js","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/InputPeers.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,eAAe,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,SAAS,EAAE,oBAAoB,EAAiB,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAE5Q,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAEvD;IAAmC,iCAA4B;IAA/D;;IAyDA,CAAC;IA/CU,6CAAqB,GAA5B,UAA6B,aAA4B,EAAE,eAA+D;QAA/D,gCAAA,EAAA,kBAA0B,qBAAqB,CAAC,eAAe;QACtH,iBAAM,qBAAqB,YAAC,aAAa,EAAE,eAAe,CAAC,CAAC;QAE5D,aAAa,CAAC,GAAG,CACb,eAAe,EACf,aAAa,CAAC,mBAAmB,EACjC,aAAa,CAAC,mBAAmB,CAAC,CAAC;QAEvC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE;YAC/B,aAAa,CAAC,GAAG,CACb,q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,yBAAyB,CAAC,CAAC;IA6BnC,yBAAC;CAAA,AArDD,CAAwC,SAAS,GAqDhD;SArDY,kBAAkB"}
@@ -0,0 +1,24 @@
1
+ import * as Adaptive from "adaptivecards";
2
+ import { PropertySheetContext, PropertySheetEntry } from "adaptivecards-designer/lib/designer-peers";
3
+ export declare class DesignerPeerCategory {
4
+ static Unknown: string;
5
+ static Containers: string;
6
+ static Elements: string;
7
+ static Inputs: string;
8
+ static Actions: string;
9
+ }
10
+ export declare class NameValuePairPropertyEditor extends PropertySheetEntry {
11
+ readonly targetVersion: Adaptive.TargetVersion;
12
+ readonly collectionPropertyName: string;
13
+ readonly namePropertyName: string;
14
+ readonly valuePropertyName: string;
15
+ readonly createCollectionItem: (name: string, value: string) => any;
16
+ readonly namePropertyLabel: string;
17
+ readonly valuePropertyLabel: string;
18
+ readonly addButtonTitle: string;
19
+ readonly messageIfEmpty: string;
20
+ private collectionChanged;
21
+ render(context: PropertySheetContext): Adaptive.CardElement;
22
+ constructor(targetVersion: Adaptive.TargetVersion, collectionPropertyName: string, namePropertyName: string, valuePropertyName: string, createCollectionItem: (name: string, value: string) => any, namePropertyLabel?: string, valuePropertyLabel?: string, addButtonTitle?: string, messageIfEmpty?: string);
23
+ }
24
+ //# sourceMappingURL=Shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shared.d.ts","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAOrG,qBAAa,oBAAoB;IAC7B,OAAc,OAAO,SAAa;IAClC,OAAc,UAAU,SAAgB;IACxC,OAAc,QAAQ,SAAc;IACpC,OAAc,MAAM,SAAY;IAChC,OAAc,OAAO,SAAa;CACrC;AAED,qBAAa,2BAA4B,SAAQ,kBAAkB;IA+G3D,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,aAAa;IAC9C,QAAQ,CAAC,sBAAsB,EAAE,MAAM;IACvC,QAAQ,CAAC,gBAAgB,EAAE,MAAM;IACjC,QAAQ,CAAC,iBAAiB,EAAE,MAAM;IAClC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,GAAG;IACnE,QAAQ,CAAC,iBAAiB,EAAE,MAAM;IAClC,QAAQ,CAAC,kBAAkB,EAAE,MAAM;IACnC,QAAQ,CAAC,cAAc,EAAE,MAAM;IAC/B,QAAQ,CAAC,cAAc,EAAE,MAAM;IAtHnC,OAAO,CAAC,iBAAiB;IAYlB,MAAM,CAAC,OAAO,EAAE,oBAAoB,GAAG,QAAQ,CAAC,WAAW;gBAkGrD,aAAa,EAAE,QAAQ,CAAC,aAAa,EACrC,sBAAsB,EAAE,MAAM,EAC9B,gBAAgB,EAAE,MAAM,EACxB,iBAAiB,EAAE,MAAM,EACzB,oBAAoB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,GAAG,EAC1D,iBAAiB,GAAE,MAAe,EAClC,kBAAkB,GAAE,MAAgB,EACpC,cAAc,GAAE,MAAc,EAC9B,cAAc,GAAE,MAAmC;CAGnE"}
@@ -0,0 +1,136 @@
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 * as Adaptive from "adaptivecards";
15
+ import { PropertySheetEntry } from "adaptivecards-designer/lib/designer-peers";
16
+ var DesignerPeerCategory = /** @class */ (function () {
17
+ function DesignerPeerCategory() {
18
+ }
19
+ DesignerPeerCategory.Unknown = "Unknown";
20
+ DesignerPeerCategory.Containers = "Containers";
21
+ DesignerPeerCategory.Elements = "Elements";
22
+ DesignerPeerCategory.Inputs = "Inputs";
23
+ DesignerPeerCategory.Actions = "Actions";
24
+ return DesignerPeerCategory;
25
+ }());
26
+ export { DesignerPeerCategory };
27
+ var NameValuePairPropertyEditor = /** @class */ (function (_super) {
28
+ __extends(NameValuePairPropertyEditor, _super);
29
+ function NameValuePairPropertyEditor(targetVersion, collectionPropertyName, namePropertyName, valuePropertyName, createCollectionItem, namePropertyLabel, valuePropertyLabel, addButtonTitle, messageIfEmpty) {
30
+ if (namePropertyLabel === void 0) { namePropertyLabel = "Name"; }
31
+ if (valuePropertyLabel === void 0) { valuePropertyLabel = "Value"; }
32
+ if (addButtonTitle === void 0) { addButtonTitle = "Add"; }
33
+ if (messageIfEmpty === void 0) { messageIfEmpty = "This collection is empty"; }
34
+ var _this = _super.call(this, targetVersion) || this;
35
+ _this.targetVersion = targetVersion;
36
+ _this.collectionPropertyName = collectionPropertyName;
37
+ _this.namePropertyName = namePropertyName;
38
+ _this.valuePropertyName = valuePropertyName;
39
+ _this.createCollectionItem = createCollectionItem;
40
+ _this.namePropertyLabel = namePropertyLabel;
41
+ _this.valuePropertyLabel = valuePropertyLabel;
42
+ _this.addButtonTitle = addButtonTitle;
43
+ _this.messageIfEmpty = messageIfEmpty;
44
+ return _this;
45
+ }
46
+ NameValuePairPropertyEditor.prototype.collectionChanged = function (context, nameValuePairs, refreshPropertySheet) {
47
+ context.target[this.collectionPropertyName] = [];
48
+ for (var _i = 0, nameValuePairs_1 = nameValuePairs; _i < nameValuePairs_1.length; _i++) {
49
+ var nameValuePair = nameValuePairs_1[_i];
50
+ var item = this.createCollectionItem(nameValuePair.name, nameValuePair.value);
51
+ context.target[this.collectionPropertyName].push(item);
52
+ }
53
+ context.peer.changed(refreshPropertySheet);
54
+ };
55
+ NameValuePairPropertyEditor.prototype.render = function (context) {
56
+ var _this = this;
57
+ var result = new Adaptive.Container();
58
+ var collection = context.target[this.collectionPropertyName];
59
+ if (!Array.isArray(collection)) {
60
+ throw new Error("The " + this.collectionPropertyName + " property on " + context.peer.getCardObject().getJsonTypeName() + " either doesn't exist or isn't an array.");
61
+ }
62
+ var nameValuePairs = [];
63
+ for (var _i = 0, collection_1 = collection; _i < collection_1.length; _i++) {
64
+ var pair = collection_1[_i];
65
+ nameValuePairs.push({
66
+ name: pair[this.namePropertyName],
67
+ value: pair[this.valuePropertyName]
68
+ });
69
+ }
70
+ if (nameValuePairs.length == 0) {
71
+ var messageTextBlock = new Adaptive.TextBlock();
72
+ messageTextBlock.spacing = Adaptive.Spacing.Small;
73
+ messageTextBlock.text = this.messageIfEmpty;
74
+ result.addItem(messageTextBlock);
75
+ }
76
+ else {
77
+ var _loop_1 = function (i) {
78
+ var textInput = new Adaptive.TextInput();
79
+ textInput.placeholder = this_1.namePropertyLabel;
80
+ textInput.defaultValue = nameValuePairs[i].name;
81
+ textInput.onValueChanged = function (sender) {
82
+ nameValuePairs[i].name = sender.value;
83
+ _this.collectionChanged(context, nameValuePairs, false);
84
+ };
85
+ var nameColumn = new Adaptive.Column("stretch");
86
+ nameColumn.addItem(textInput);
87
+ textInput = new Adaptive.TextInput();
88
+ textInput.placeholder = this_1.valuePropertyLabel;
89
+ textInput.defaultValue = nameValuePairs[i].value;
90
+ textInput.onValueChanged = function (sender) {
91
+ nameValuePairs[i].value = sender.value;
92
+ _this.collectionChanged(context, nameValuePairs, false);
93
+ };
94
+ var valueColumn = new Adaptive.Column("stretch");
95
+ valueColumn.spacing = Adaptive.Spacing.Small;
96
+ valueColumn.addItem(textInput);
97
+ var removeAction = new Adaptive.SubmitAction();
98
+ removeAction.title = "X";
99
+ removeAction.tooltip = "Remove";
100
+ removeAction.onExecute = function (sender) {
101
+ nameValuePairs.splice(i, 1);
102
+ _this.collectionChanged(context, nameValuePairs, true);
103
+ };
104
+ var newActionSet = new Adaptive.ActionSet();
105
+ newActionSet.addAction(removeAction);
106
+ var removeColumn = new Adaptive.Column("auto");
107
+ removeColumn.spacing = Adaptive.Spacing.Small;
108
+ removeColumn.addItem(newActionSet);
109
+ var columnSet = new Adaptive.ColumnSet();
110
+ columnSet.spacing = Adaptive.Spacing.Small;
111
+ columnSet.addColumn(nameColumn);
112
+ columnSet.addColumn(valueColumn);
113
+ columnSet.addColumn(removeColumn);
114
+ result.addItem(columnSet);
115
+ };
116
+ var this_1 = this;
117
+ for (var i = 0; i < nameValuePairs.length; i++) {
118
+ _loop_1(i);
119
+ }
120
+ }
121
+ var addAction = new Adaptive.SubmitAction();
122
+ addAction.title = this.addButtonTitle;
123
+ addAction.onExecute = function (sender) {
124
+ nameValuePairs.push({ name: "", value: "" });
125
+ _this.collectionChanged(context, nameValuePairs, true);
126
+ };
127
+ var actionSet = new Adaptive.ActionSet();
128
+ actionSet.spacing = Adaptive.Spacing.Small;
129
+ actionSet.addAction(addAction);
130
+ result.addItem(actionSet);
131
+ return result;
132
+ };
133
+ return NameValuePairPropertyEditor;
134
+ }(PropertySheetEntry));
135
+ export { NameValuePairPropertyEditor };
136
+ //# sourceMappingURL=Shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Shared.js","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/Shared.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAwB,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAOrG;IAAA;IAMA,CAAC;IALiB,4BAAO,GAAG,SAAS,CAAC;IACpB,+BAAU,GAAG,YAAY,CAAC;IAC1B,6BAAQ,GAAG,UAAU,CAAC;IACtB,2BAAM,GAAG,QAAQ,CAAC;IAClB,4BAAO,GAAG,SAAS,CAAC;IACtC,2BAAC;CAAA,AA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C,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QAE/B,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAE1B,OAAO,MAAM,CAAC;IAClB,CAAC;IAcL,kCAAC;AAAD,CAAC,AA1HD,CAAiD,kBAAkB,GA0HlE"}
@@ -0,0 +1,5 @@
1
+ export * from './ActionPeers';
2
+ export * from './DesignerPeers';
3
+ export * from './InputPeers';
4
+ export * from './Shared';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './ActionPeers';
2
+ export * from './DesignerPeers';
3
+ export * from './InputPeers';
4
+ export * from './Shared';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/controls/adaptiveCardDesignerHost/fluentUI/peers/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './AdaptiveCardDesigner.Helpers';
2
+ export * from './AdaptiveCardDesigner.Styles';
3
+ export * from './AdaptiveCardDesigner';
4
+ export * from './AdaptiveCardDesignerHost.Exports';
5
+ export * from './AdaptiveCardDesignerHost';
6
+ export * from './fluentUI';
7
+ export * from './IAdaptiveCardDesignerProps';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from './AdaptiveCardDesigner.Helpers';
2
+ export * from './AdaptiveCardDesigner.Styles';
3
+ export * from './AdaptiveCardDesigner';
4
+ export * from './AdaptiveCardDesignerHost.Exports';
5
+ export * from './AdaptiveCardDesignerHost';
6
+ export * from './fluentUI';
7
+ export * from './IAdaptiveCardDesignerProps';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardDesignerHost/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oCAAoC,CAAC;AACnD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Action, CardElement, CardObjectRegistry, HostCapabilities } from 'adaptivecards';
2
+ //# sourceMappingURL=AdaptiveCardHost.Exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardHost.Exports.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardHost/AdaptiveCardHost.Exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Action, CardElement, CardObjectRegistry, HostCapabilities } from 'adaptivecards';
2
+ //# sourceMappingURL=AdaptiveCardHost.Exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardHost.Exports.js","sourceRoot":"","sources":["../../../src/controls/adaptiveCardHost/AdaptiveCardHost.Exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ITheme } from 'office-ui-fabric-react/lib/Styling';
2
+ import { AdaptiveCardHostThemeType } from './models/AdaptiveCardHostThemeType';
3
+ import { IAdaptiveCardHostConfigResult } from './models/IAdaptiveCardHostConfigResult';
4
+ export declare const initializeAdaptiveCardHost: (themeType: AdaptiveCardHostThemeType, currentTheme: ITheme) => IAdaptiveCardHostConfigResult;
5
+ //# sourceMappingURL=AdaptiveCardHost.HostConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveCardHost.HostConfig.d.ts","sourceRoot":"","sources":["../../../src/controls/adaptiveCardHost/AdaptiveCardHost.HostConfig.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAK5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAEvF,eAAO,MAAM,0BAA0B,cAAe,yBAAyB,gBAAgB,MAAM,KAAG,6BA6CvG,CAAC"}