@cratis/scene.model 3.7.0 → 4.0.0

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 (232) hide show
  1. package/dist/cjs/elements/SceneElement.js +3 -5
  2. package/dist/cjs/elements/SceneElement.js.map +1 -1
  3. package/dist/cjs/forms/Form.js +2 -1
  4. package/dist/cjs/forms/Form.js.map +1 -1
  5. package/dist/cjs/index.js +46 -0
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/interactions/ApplicationTriggerInteractionTrigger.js +10 -0
  8. package/dist/cjs/interactions/ApplicationTriggerInteractionTrigger.js.map +1 -0
  9. package/dist/cjs/interactions/Behavior.js +12 -0
  10. package/dist/cjs/interactions/Behavior.js.map +1 -0
  11. package/dist/cjs/interactions/BuiltInInteractionTrigger.js +10 -0
  12. package/dist/cjs/interactions/BuiltInInteractionTrigger.js.map +1 -0
  13. package/dist/cjs/interactions/CloseDialogAction.js +10 -0
  14. package/dist/cjs/interactions/CloseDialogAction.js.map +1 -0
  15. package/dist/cjs/interactions/ConfirmAction.js +11 -0
  16. package/dist/cjs/interactions/ConfirmAction.js.map +1 -0
  17. package/dist/cjs/interactions/EventInteractionTrigger.js +10 -0
  18. package/dist/cjs/interactions/EventInteractionTrigger.js.map +1 -0
  19. package/dist/cjs/interactions/ExecuteCommandAction.js +11 -0
  20. package/dist/cjs/interactions/ExecuteCommandAction.js.map +1 -0
  21. package/dist/cjs/interactions/InteractionAction.js +14 -0
  22. package/dist/cjs/interactions/InteractionAction.js.map +1 -0
  23. package/dist/cjs/interactions/InteractionActionKind.js +28 -0
  24. package/dist/cjs/interactions/InteractionActionKind.js.map +1 -0
  25. package/dist/cjs/interactions/InteractionArgument.js +11 -0
  26. package/dist/cjs/interactions/InteractionArgument.js.map +1 -0
  27. package/dist/cjs/interactions/InteractionBinding.js +12 -0
  28. package/dist/cjs/interactions/InteractionBinding.js.map +1 -0
  29. package/dist/cjs/interactions/InteractionMessage.js +12 -0
  30. package/dist/cjs/interactions/InteractionMessage.js.map +1 -0
  31. package/dist/cjs/interactions/InteractionTriggerKind.js +24 -0
  32. package/dist/cjs/interactions/InteractionTriggerKind.js.map +1 -0
  33. package/dist/cjs/interactions/IntervalInteractionTrigger.js +10 -0
  34. package/dist/cjs/interactions/IntervalInteractionTrigger.js.map +1 -0
  35. package/dist/cjs/interactions/NavigateAction.js +11 -0
  36. package/dist/cjs/interactions/NavigateAction.js.map +1 -0
  37. package/dist/cjs/interactions/NavigateBackAction.js +10 -0
  38. package/dist/cjs/interactions/NavigateBackAction.js.map +1 -0
  39. package/dist/cjs/interactions/NotificationLevel.js +17 -0
  40. package/dist/cjs/interactions/NotificationLevel.js.map +1 -0
  41. package/dist/cjs/interactions/NotifyAction.js +12 -0
  42. package/dist/cjs/interactions/NotifyAction.js.map +1 -0
  43. package/dist/cjs/interactions/OpenDialogAction.js +11 -0
  44. package/dist/cjs/interactions/OpenDialogAction.js.map +1 -0
  45. package/dist/cjs/interactions/RaiseTriggerAction.js +11 -0
  46. package/dist/cjs/interactions/RaiseTriggerAction.js.map +1 -0
  47. package/dist/cjs/interactions/RefreshQueryAction.js +11 -0
  48. package/dist/cjs/interactions/RefreshQueryAction.js.map +1 -0
  49. package/dist/cjs/interactions/SetStateAction.js +12 -0
  50. package/dist/cjs/interactions/SetStateAction.js.map +1 -0
  51. package/dist/cjs/layouts/Layout.js +2 -1
  52. package/dist/cjs/layouts/Layout.js.map +1 -1
  53. package/dist/cjs/profiles/UiProfile.js.map +1 -1
  54. package/dist/cjs/screens/DialogTemplate.js +2 -1
  55. package/dist/cjs/screens/DialogTemplate.js.map +1 -1
  56. package/dist/cjs/screens/Screen.js +2 -1
  57. package/dist/cjs/screens/Screen.js.map +1 -1
  58. package/dist/cjs/screens/ScreenTemplate.js +2 -1
  59. package/dist/cjs/screens/ScreenTemplate.js.map +1 -1
  60. package/dist/cjs/sizeClasses/TargetSizeClass.js +20 -0
  61. package/dist/cjs/sizeClasses/TargetSizeClass.js.map +1 -0
  62. package/dist/esm/elements/SceneElement.d.ts +2 -0
  63. package/dist/esm/elements/SceneElement.d.ts.map +1 -1
  64. package/dist/esm/elements/SceneElement.js +3 -5
  65. package/dist/esm/elements/SceneElement.js.map +1 -1
  66. package/dist/esm/forms/Form.d.ts +2 -0
  67. package/dist/esm/forms/Form.d.ts.map +1 -1
  68. package/dist/esm/forms/Form.js +2 -1
  69. package/dist/esm/forms/Form.js.map +1 -1
  70. package/dist/esm/index.d.ts +1 -0
  71. package/dist/esm/index.d.ts.map +1 -1
  72. package/dist/esm/index.js +23 -0
  73. package/dist/esm/index.js.map +1 -1
  74. package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.d.ts +6 -0
  75. package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.d.ts.map +1 -0
  76. package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.js +8 -0
  77. package/dist/esm/interactions/ApplicationTriggerInteractionTrigger.js.map +1 -0
  78. package/dist/esm/interactions/Behavior.d.ts +8 -0
  79. package/dist/esm/interactions/Behavior.d.ts.map +1 -0
  80. package/dist/esm/interactions/Behavior.js +10 -0
  81. package/dist/esm/interactions/Behavior.js.map +1 -0
  82. package/dist/esm/interactions/BuiltInInteractionTrigger.d.ts +7 -0
  83. package/dist/esm/interactions/BuiltInInteractionTrigger.d.ts.map +1 -0
  84. package/dist/esm/interactions/BuiltInInteractionTrigger.js +8 -0
  85. package/dist/esm/interactions/BuiltInInteractionTrigger.js.map +1 -0
  86. package/dist/esm/interactions/CloseDialogAction.d.ts +5 -0
  87. package/dist/esm/interactions/CloseDialogAction.d.ts.map +1 -0
  88. package/dist/esm/interactions/CloseDialogAction.js +8 -0
  89. package/dist/esm/interactions/CloseDialogAction.js.map +1 -0
  90. package/dist/esm/interactions/ConfirmAction.d.ts +7 -0
  91. package/dist/esm/interactions/ConfirmAction.d.ts.map +1 -0
  92. package/dist/esm/interactions/ConfirmAction.js +9 -0
  93. package/dist/esm/interactions/ConfirmAction.js.map +1 -0
  94. package/dist/esm/interactions/EventInteractionTrigger.d.ts +6 -0
  95. package/dist/esm/interactions/EventInteractionTrigger.d.ts.map +1 -0
  96. package/dist/esm/interactions/EventInteractionTrigger.js +8 -0
  97. package/dist/esm/interactions/EventInteractionTrigger.js.map +1 -0
  98. package/dist/esm/interactions/ExecuteCommandAction.d.ts +6 -0
  99. package/dist/esm/interactions/ExecuteCommandAction.d.ts.map +1 -0
  100. package/dist/esm/interactions/ExecuteCommandAction.js +9 -0
  101. package/dist/esm/interactions/ExecuteCommandAction.js.map +1 -0
  102. package/dist/esm/interactions/InteractionAction.d.ts +11 -0
  103. package/dist/esm/interactions/InteractionAction.d.ts.map +1 -0
  104. package/dist/esm/interactions/InteractionAction.js +12 -0
  105. package/dist/esm/interactions/InteractionAction.js.map +1 -0
  106. package/dist/esm/interactions/InteractionActionKind.d.ts +13 -0
  107. package/dist/esm/interactions/InteractionActionKind.d.ts.map +1 -0
  108. package/dist/esm/interactions/InteractionActionKind.js +26 -0
  109. package/dist/esm/interactions/InteractionActionKind.js.map +1 -0
  110. package/dist/esm/interactions/InteractionArgument.d.ts +7 -0
  111. package/dist/esm/interactions/InteractionArgument.d.ts.map +1 -0
  112. package/dist/esm/interactions/InteractionArgument.js +9 -0
  113. package/dist/esm/interactions/InteractionArgument.js.map +1 -0
  114. package/dist/esm/interactions/InteractionBinding.d.ts +10 -0
  115. package/dist/esm/interactions/InteractionBinding.d.ts.map +1 -0
  116. package/dist/esm/interactions/InteractionBinding.js +10 -0
  117. package/dist/esm/interactions/InteractionBinding.js.map +1 -0
  118. package/dist/esm/interactions/InteractionMessage.d.ts +8 -0
  119. package/dist/esm/interactions/InteractionMessage.d.ts.map +1 -0
  120. package/dist/esm/interactions/InteractionMessage.js +10 -0
  121. package/dist/esm/interactions/InteractionMessage.js.map +1 -0
  122. package/dist/esm/interactions/InteractionTrigger.d.ts +3 -0
  123. package/dist/esm/interactions/InteractionTrigger.d.ts.map +1 -0
  124. package/dist/esm/interactions/InteractionTrigger.js +2 -0
  125. package/dist/esm/interactions/InteractionTrigger.js.map +1 -0
  126. package/dist/esm/interactions/InteractionTriggerKind.d.ts +12 -0
  127. package/dist/esm/interactions/InteractionTriggerKind.d.ts.map +1 -0
  128. package/dist/esm/interactions/InteractionTriggerKind.js +22 -0
  129. package/dist/esm/interactions/InteractionTriggerKind.js.map +1 -0
  130. package/dist/esm/interactions/IntervalInteractionTrigger.d.ts +6 -0
  131. package/dist/esm/interactions/IntervalInteractionTrigger.d.ts.map +1 -0
  132. package/dist/esm/interactions/IntervalInteractionTrigger.js +8 -0
  133. package/dist/esm/interactions/IntervalInteractionTrigger.js.map +1 -0
  134. package/dist/esm/interactions/NavigateAction.d.ts +6 -0
  135. package/dist/esm/interactions/NavigateAction.d.ts.map +1 -0
  136. package/dist/esm/interactions/NavigateAction.js +9 -0
  137. package/dist/esm/interactions/NavigateAction.js.map +1 -0
  138. package/dist/esm/interactions/NavigateBackAction.d.ts +5 -0
  139. package/dist/esm/interactions/NavigateBackAction.d.ts.map +1 -0
  140. package/dist/esm/interactions/NavigateBackAction.js +8 -0
  141. package/dist/esm/interactions/NavigateBackAction.js.map +1 -0
  142. package/dist/esm/interactions/NotificationLevel.d.ts +6 -0
  143. package/dist/esm/interactions/NotificationLevel.d.ts.map +1 -0
  144. package/dist/esm/interactions/NotificationLevel.js +15 -0
  145. package/dist/esm/interactions/NotificationLevel.js.map +1 -0
  146. package/dist/esm/interactions/NotifyAction.d.ts +9 -0
  147. package/dist/esm/interactions/NotifyAction.d.ts.map +1 -0
  148. package/dist/esm/interactions/NotifyAction.js +10 -0
  149. package/dist/esm/interactions/NotifyAction.js.map +1 -0
  150. package/dist/esm/interactions/OpenDialogAction.d.ts +6 -0
  151. package/dist/esm/interactions/OpenDialogAction.d.ts.map +1 -0
  152. package/dist/esm/interactions/OpenDialogAction.js +9 -0
  153. package/dist/esm/interactions/OpenDialogAction.js.map +1 -0
  154. package/dist/esm/interactions/RaiseTriggerAction.d.ts +6 -0
  155. package/dist/esm/interactions/RaiseTriggerAction.d.ts.map +1 -0
  156. package/dist/esm/interactions/RaiseTriggerAction.js +9 -0
  157. package/dist/esm/interactions/RaiseTriggerAction.js.map +1 -0
  158. package/dist/esm/interactions/RefreshQueryAction.d.ts +6 -0
  159. package/dist/esm/interactions/RefreshQueryAction.d.ts.map +1 -0
  160. package/dist/esm/interactions/RefreshQueryAction.js +9 -0
  161. package/dist/esm/interactions/RefreshQueryAction.js.map +1 -0
  162. package/dist/esm/interactions/SetStateAction.d.ts +8 -0
  163. package/dist/esm/interactions/SetStateAction.d.ts.map +1 -0
  164. package/dist/esm/interactions/SetStateAction.js +10 -0
  165. package/dist/esm/interactions/SetStateAction.js.map +1 -0
  166. package/dist/esm/interactions/index.d.ts +24 -0
  167. package/dist/esm/interactions/index.d.ts.map +1 -0
  168. package/dist/esm/interactions/index.js +24 -0
  169. package/dist/esm/interactions/index.js.map +1 -0
  170. package/dist/esm/layouts/Layout.d.ts +2 -0
  171. package/dist/esm/layouts/Layout.d.ts.map +1 -1
  172. package/dist/esm/layouts/Layout.js +2 -1
  173. package/dist/esm/layouts/Layout.js.map +1 -1
  174. package/dist/esm/profiles/UiProfile.d.ts +2 -2
  175. package/dist/esm/profiles/UiProfile.d.ts.map +1 -1
  176. package/dist/esm/profiles/UiProfile.js.map +1 -1
  177. package/dist/esm/screens/DialogTemplate.d.ts +2 -0
  178. package/dist/esm/screens/DialogTemplate.d.ts.map +1 -1
  179. package/dist/esm/screens/DialogTemplate.js +2 -1
  180. package/dist/esm/screens/DialogTemplate.js.map +1 -1
  181. package/dist/esm/screens/Screen.d.ts +2 -0
  182. package/dist/esm/screens/Screen.d.ts.map +1 -1
  183. package/dist/esm/screens/Screen.js +2 -1
  184. package/dist/esm/screens/Screen.js.map +1 -1
  185. package/dist/esm/screens/ScreenTemplate.d.ts +2 -0
  186. package/dist/esm/screens/ScreenTemplate.d.ts.map +1 -1
  187. package/dist/esm/screens/ScreenTemplate.js +2 -1
  188. package/dist/esm/screens/ScreenTemplate.js.map +1 -1
  189. package/dist/esm/sizeClasses/TargetSizeClass.d.ts +6 -0
  190. package/dist/esm/sizeClasses/TargetSizeClass.d.ts.map +1 -0
  191. package/dist/esm/sizeClasses/TargetSizeClass.js +18 -0
  192. package/dist/esm/sizeClasses/TargetSizeClass.js.map +1 -0
  193. package/dist/esm/sizeClasses/index.d.ts +1 -0
  194. package/dist/esm/sizeClasses/index.d.ts.map +1 -1
  195. package/dist/esm/sizeClasses/index.js +1 -0
  196. package/dist/esm/sizeClasses/index.js.map +1 -1
  197. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  198. package/elements/SceneElement.ts +8 -1
  199. package/forms/Form.ts +7 -1
  200. package/index.ts +1 -0
  201. package/interactions/ApplicationTriggerInteractionTrigger.ts +13 -0
  202. package/interactions/Behavior.ts +19 -0
  203. package/interactions/BuiltInInteractionTrigger.ts +14 -0
  204. package/interactions/CloseDialogAction.ts +11 -0
  205. package/interactions/ConfirmAction.ts +14 -0
  206. package/interactions/EventInteractionTrigger.ts +13 -0
  207. package/interactions/ExecuteCommandAction.ts +13 -0
  208. package/interactions/InteractionAction.ts +22 -0
  209. package/interactions/InteractionActionKind.ts +24 -0
  210. package/interactions/InteractionArgument.ts +14 -0
  211. package/interactions/InteractionBinding.ts +17 -0
  212. package/interactions/InteractionMessage.ts +16 -0
  213. package/interactions/InteractionTrigger.ts +10 -0
  214. package/interactions/InteractionTriggerKind.ts +20 -0
  215. package/interactions/IntervalInteractionTrigger.ts +13 -0
  216. package/interactions/NavigateAction.ts +13 -0
  217. package/interactions/NavigateBackAction.ts +11 -0
  218. package/interactions/NotificationLevel.ts +13 -0
  219. package/interactions/NotifyAction.ts +16 -0
  220. package/interactions/OpenDialogAction.ts +13 -0
  221. package/interactions/RaiseTriggerAction.ts +13 -0
  222. package/interactions/RefreshQueryAction.ts +13 -0
  223. package/interactions/SetStateAction.ts +15 -0
  224. package/interactions/index.ts +26 -0
  225. package/layouts/Layout.ts +7 -1
  226. package/package.json +1 -1
  227. package/profiles/UiProfile.ts +2 -2
  228. package/screens/DialogTemplate.ts +7 -0
  229. package/screens/Screen.ts +7 -1
  230. package/screens/ScreenTemplate.ts +7 -0
  231. package/sizeClasses/TargetSizeClass.ts +16 -0
  232. package/sizeClasses/index.ts +1 -0
@@ -2,12 +2,10 @@
2
2
 
3
3
  // Copyright (c) Cratis. All rights reserved.
4
4
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
- /**
6
- * The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid
7
- * colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.
8
- */ const SceneElementPropertyNames = [
5
+ const SceneElementPropertyNames = [
9
6
  'id',
10
- 'properties'
7
+ 'properties',
8
+ 'behaviors'
11
9
  ];
12
10
 
13
11
  exports.SceneElementPropertyNames = SceneElementPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"SceneElement.js","sources":["../../../elements/SceneElement.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid\n * colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.\n */\nexport interface SceneElement {\n id: string;\n properties: Record<string, unknown>;\n}\n\nexport const SceneElementPropertyNames: (keyof SceneElement)[] = ['id', 'properties'];\n"],"names":["SceneElementPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;;UASaA,yBAAAA,GAAoD;AAAC,IAAA,IAAA;AAAM,IAAA;;;"}
1
+ {"version":3,"file":"SceneElement.js","sources":["../../../elements/SceneElement.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Behavior } from '../interactions';\n\n/**\n * The root of every node in a Scene element tree. Named `SceneElement` rather than `Element` to avoid\n * colliding with the DOM's own global `Element` type, which every consumer of this package also has in scope.\n */\nexport interface SceneElement {\n id: string;\n properties: Record<string, unknown>;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const SceneElementPropertyNames: (keyof SceneElement)[] = ['id', 'properties', 'behaviors'];\n"],"names":["SceneElementPropertyNames"],"mappings":";;AAAA;AACA;MAkBaA,yBAAAA,GAAoD;AAAC,IAAA,IAAA;AAAM,IAAA,YAAA;AAAc,IAAA;;;"}
@@ -6,7 +6,8 @@ const FormPropertyNames = [
6
6
  'name',
7
7
  'forCommand',
8
8
  'populateSource',
9
- 'fields'
9
+ 'fields',
10
+ 'behaviors'
10
11
  ];
11
12
 
12
13
  exports.FormPropertyNames = FormPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"Form.js","sources":["../../../forms/Form.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields'];\n"],"names":["FormPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA,gBAAA;AAAkB,IAAA;;;"}
1
+ {"version":3,"file":"Form.js","sources":["../../../forms/Form.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PopulateSource } from './PopulateSource';\nimport { FormField } from './FormField';\nimport { Behavior } from '../interactions';\n\n/**\n * The command-side counterpart to a table or summary: a named, typed form for one command.\n */\nexport interface Form {\n name: string;\n forCommand: string;\n populateSource?: PopulateSource;\n fields: FormField[];\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const FormPropertyNames: (keyof Form)[] = ['name', 'forCommand', 'populateSource', 'fields', 'behaviors'];\n"],"names":["FormPropertyNames"],"mappings":";;AAAA;AACA;MAqBaA,iBAAAA,GAAoC;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA,gBAAA;AAAkB,IAAA,QAAA;AAAU,IAAA;;;"}
package/dist/cjs/index.js CHANGED
@@ -14,6 +14,7 @@ var GridLength = require('./common/GridLength.js');
14
14
  var WidthSizeClass = require('./sizeClasses/WidthSizeClass.js');
15
15
  var HeightSizeClass = require('./sizeClasses/HeightSizeClass.js');
16
16
  var SizeClass = require('./sizeClasses/SizeClass.js');
17
+ var TargetSizeClass = require('./sizeClasses/TargetSizeClass.js');
17
18
  var SceneElement = require('./elements/SceneElement.js');
18
19
  var VisualElement = require('./elements/VisualElement.js');
19
20
  var FrameworkElement = require('./elements/FrameworkElement.js');
@@ -59,6 +60,28 @@ var Theme = require('./profiles/Theme.js');
59
60
  var PackageKind = require('./packages/PackageKind.js');
60
61
  var PackageDependency = require('./packages/PackageDependency.js');
61
62
  var ScenePackage = require('./packages/ScenePackage.js');
63
+ var InteractionTriggerKind = require('./interactions/InteractionTriggerKind.js');
64
+ var NotificationLevel = require('./interactions/NotificationLevel.js');
65
+ var BuiltInInteractionTrigger = require('./interactions/BuiltInInteractionTrigger.js');
66
+ var EventInteractionTrigger = require('./interactions/EventInteractionTrigger.js');
67
+ var IntervalInteractionTrigger = require('./interactions/IntervalInteractionTrigger.js');
68
+ var ApplicationTriggerInteractionTrigger = require('./interactions/ApplicationTriggerInteractionTrigger.js');
69
+ var InteractionMessage = require('./interactions/InteractionMessage.js');
70
+ var InteractionArgument = require('./interactions/InteractionArgument.js');
71
+ var InteractionActionKind = require('./interactions/InteractionActionKind.js');
72
+ var InteractionAction = require('./interactions/InteractionAction.js');
73
+ var ExecuteCommandAction = require('./interactions/ExecuteCommandAction.js');
74
+ var NavigateAction = require('./interactions/NavigateAction.js');
75
+ var NavigateBackAction = require('./interactions/NavigateBackAction.js');
76
+ var OpenDialogAction = require('./interactions/OpenDialogAction.js');
77
+ var CloseDialogAction = require('./interactions/CloseDialogAction.js');
78
+ var RefreshQueryAction = require('./interactions/RefreshQueryAction.js');
79
+ var SetStateAction = require('./interactions/SetStateAction.js');
80
+ var NotifyAction = require('./interactions/NotifyAction.js');
81
+ var ConfirmAction = require('./interactions/ConfirmAction.js');
82
+ var RaiseTriggerAction = require('./interactions/RaiseTriggerAction.js');
83
+ var InteractionBinding = require('./interactions/InteractionBinding.js');
84
+ var Behavior = require('./interactions/Behavior.js');
62
85
  var Screen = require('./screens/Screen.js');
63
86
  var ScreenTemplate = require('./screens/ScreenTemplate.js');
64
87
  var DialogTemplate = require('./screens/DialogTemplate.js');
@@ -80,6 +103,7 @@ exports.GridLengthPropertyNames = GridLength.GridLengthPropertyNames;
80
103
  exports.WidthSizeClass = WidthSizeClass.WidthSizeClass;
81
104
  exports.HeightSizeClass = HeightSizeClass.HeightSizeClass;
82
105
  exports.SizeClassPropertyNames = SizeClass.SizeClassPropertyNames;
106
+ exports.TargetSizeClass = TargetSizeClass.TargetSizeClass;
83
107
  exports.SceneElementPropertyNames = SceneElement.SceneElementPropertyNames;
84
108
  exports.VisualElementPropertyNames = VisualElement.VisualElementPropertyNames;
85
109
  exports.FrameworkElementPropertyNames = FrameworkElement.FrameworkElementPropertyNames;
@@ -125,6 +149,28 @@ exports.ThemePropertyNames = Theme.ThemePropertyNames;
125
149
  exports.PackageKind = PackageKind.PackageKind;
126
150
  exports.PackageDependencyPropertyNames = PackageDependency.PackageDependencyPropertyNames;
127
151
  exports.ScenePackagePropertyNames = ScenePackage.ScenePackagePropertyNames;
152
+ exports.InteractionTriggerKind = InteractionTriggerKind.InteractionTriggerKind;
153
+ exports.NotificationLevel = NotificationLevel.NotificationLevel;
154
+ exports.BuiltInInteractionTriggerPropertyNames = BuiltInInteractionTrigger.BuiltInInteractionTriggerPropertyNames;
155
+ exports.EventInteractionTriggerPropertyNames = EventInteractionTrigger.EventInteractionTriggerPropertyNames;
156
+ exports.IntervalInteractionTriggerPropertyNames = IntervalInteractionTrigger.IntervalInteractionTriggerPropertyNames;
157
+ exports.ApplicationTriggerInteractionTriggerPropertyNames = ApplicationTriggerInteractionTrigger.ApplicationTriggerInteractionTriggerPropertyNames;
158
+ exports.InteractionMessagePropertyNames = InteractionMessage.InteractionMessagePropertyNames;
159
+ exports.InteractionArgumentPropertyNames = InteractionArgument.InteractionArgumentPropertyNames;
160
+ exports.InteractionActionKind = InteractionActionKind.InteractionActionKind;
161
+ exports.InteractionActionPropertyNames = InteractionAction.InteractionActionPropertyNames;
162
+ exports.ExecuteCommandActionPropertyNames = ExecuteCommandAction.ExecuteCommandActionPropertyNames;
163
+ exports.NavigateActionPropertyNames = NavigateAction.NavigateActionPropertyNames;
164
+ exports.NavigateBackActionPropertyNames = NavigateBackAction.NavigateBackActionPropertyNames;
165
+ exports.OpenDialogActionPropertyNames = OpenDialogAction.OpenDialogActionPropertyNames;
166
+ exports.CloseDialogActionPropertyNames = CloseDialogAction.CloseDialogActionPropertyNames;
167
+ exports.RefreshQueryActionPropertyNames = RefreshQueryAction.RefreshQueryActionPropertyNames;
168
+ exports.SetStateActionPropertyNames = SetStateAction.SetStateActionPropertyNames;
169
+ exports.NotifyActionPropertyNames = NotifyAction.NotifyActionPropertyNames;
170
+ exports.ConfirmActionPropertyNames = ConfirmAction.ConfirmActionPropertyNames;
171
+ exports.RaiseTriggerActionPropertyNames = RaiseTriggerAction.RaiseTriggerActionPropertyNames;
172
+ exports.InteractionBindingPropertyNames = InteractionBinding.InteractionBindingPropertyNames;
173
+ exports.BehaviorPropertyNames = Behavior.BehaviorPropertyNames;
128
174
  exports.ScreenPropertyNames = Screen.ScreenPropertyNames;
129
175
  exports.ScreenTemplatePropertyNames = ScreenTemplate.ScreenTemplatePropertyNames;
130
176
  exports.DialogTemplatePropertyNames = DialogTemplate.DialogTemplatePropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const ApplicationTriggerInteractionTriggerPropertyNames = [
6
+ 'triggerName'
7
+ ];
8
+
9
+ exports.ApplicationTriggerInteractionTriggerPropertyNames = ApplicationTriggerInteractionTriggerPropertyNames;
10
+ //# sourceMappingURL=ApplicationTriggerInteractionTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationTriggerInteractionTrigger.js","sources":["../../../interactions/ApplicationTriggerInteractionTrigger.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * An interaction started by a declared application trigger firing.\n */\nexport interface ApplicationTriggerInteractionTrigger extends InteractionTrigger {\n triggerName: string;\n}\n\nexport const ApplicationTriggerInteractionTriggerPropertyNames: (keyof ApplicationTriggerInteractionTrigger)[] = ['triggerName'];\n"],"names":["ApplicationTriggerInteractionTriggerPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,iDAAAA,GAAoG;AAAC,IAAA;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const BehaviorPropertyNames = [
6
+ 'name',
7
+ 'bindings',
8
+ 'order'
9
+ ];
10
+
11
+ exports.BehaviorPropertyNames = BehaviorPropertyNames;
12
+ //# sourceMappingURL=Behavior.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Behavior.js","sources":["../../../interactions/Behavior.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionBinding } from './InteractionBinding';\n\n/**\n * A bundle of interaction trigger to action bindings, attached to something that can be interacted with.\n *\n * A named behavior and an inline one are the same shape - anonymity is a property rather than a separate kind\n * of node. Attachments are additive: a behavior on a template and one on an element both run, outermost first,\n * unless the order says otherwise.\n */\nexport interface Behavior {\n name?: string;\n bindings: InteractionBinding[];\n order?: number;\n}\n\nexport const BehaviorPropertyNames: (keyof Behavior)[] = ['name', 'bindings', 'order'];\n"],"names":["BehaviorPropertyNames"],"mappings":";;AAAA;AACA;MAiBaA,qBAAAA,GAA4C;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const BuiltInInteractionTriggerPropertyNames = [
6
+ 'kind'
7
+ ];
8
+
9
+ exports.BuiltInInteractionTriggerPropertyNames = BuiltInInteractionTriggerPropertyNames;
10
+ //# sourceMappingURL=BuiltInInteractionTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BuiltInInteractionTrigger.js","sources":["../../../interactions/BuiltInInteractionTrigger.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionTrigger } from './InteractionTrigger';\nimport { InteractionTriggerKind } from './InteractionTriggerKind';\n\n/**\n * One of the built-in interaction kinds.\n */\nexport interface BuiltInInteractionTrigger extends InteractionTrigger {\n kind: InteractionTriggerKind;\n}\n\nexport const BuiltInInteractionTriggerPropertyNames: (keyof BuiltInInteractionTrigger)[] = ['kind'];\n"],"names":["BuiltInInteractionTriggerPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,sCAAAA,GAA8E;AAAC,IAAA;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const CloseDialogActionPropertyNames = [
6
+ 'kind'
7
+ ];
8
+
9
+ exports.CloseDialogActionPropertyNames = CloseDialogActionPropertyNames;
10
+ //# sourceMappingURL=CloseDialogAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CloseDialogAction.js","sources":["../../../interactions/CloseDialogAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Dismisses the innermost dialog.\n */\nexport interface CloseDialogAction extends InteractionAction {}\n\nexport const CloseDialogActionPropertyNames: (keyof CloseDialogAction)[] = ['kind'];\n"],"names":["CloseDialogActionPropertyNames"],"mappings":";;AAAA;AACA;MASaA,8BAAAA,GAA8D;AAAC,IAAA;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const ConfirmActionPropertyNames = [
6
+ 'message',
7
+ 'kind'
8
+ ];
9
+
10
+ exports.ConfirmActionPropertyNames = ConfirmActionPropertyNames;
11
+ //# sourceMappingURL=ConfirmAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfirmAction.js","sources":["../../../interactions/ConfirmAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\nimport { InteractionMessage } from './InteractionMessage';\n\n/**\n * Gates the actions that follow on the user agreeing.\n */\nexport interface ConfirmAction extends InteractionAction {\n message: InteractionMessage;\n}\n\nexport const ConfirmActionPropertyNames: (keyof ConfirmAction)[] = ['message', 'kind'];\n"],"names":["ConfirmActionPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,0BAAAA,GAAsD;AAAC,IAAA,SAAA;AAAW,IAAA;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const EventInteractionTriggerPropertyNames = [
6
+ 'eventName'
7
+ ];
8
+
9
+ exports.EventInteractionTriggerPropertyNames = EventInteractionTriggerPropertyNames;
10
+ //# sourceMappingURL=EventInteractionTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventInteractionTrigger.js","sources":["../../../interactions/EventInteractionTrigger.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * An interaction started by observing a modeled domain event.\n */\nexport interface EventInteractionTrigger extends InteractionTrigger {\n eventName: string;\n}\n\nexport const EventInteractionTriggerPropertyNames: (keyof EventInteractionTrigger)[] = ['eventName'];\n"],"names":["EventInteractionTriggerPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,oCAAAA,GAA0E;AAAC,IAAA;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const ExecuteCommandActionPropertyNames = [
6
+ 'command',
7
+ 'kind'
8
+ ];
9
+
10
+ exports.ExecuteCommandActionPropertyNames = ExecuteCommandActionPropertyNames;
11
+ //# sourceMappingURL=ExecuteCommandAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExecuteCommandAction.js","sources":["../../../interactions/ExecuteCommandAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Submits a modeled command.\n */\nexport interface ExecuteCommandAction extends InteractionAction {\n command: string;\n}\n\nexport const ExecuteCommandActionPropertyNames: (keyof ExecuteCommandAction)[] = ['command', 'kind'];\n"],"names":["ExecuteCommandActionPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,iCAAAA,GAAoE;AAAC,IAAA,SAAA;AAAW,IAAA;;;"}
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const InteractionActionPropertyNames = [
6
+ 'kind',
7
+ 'arguments',
8
+ 'onSuccess',
9
+ 'onFailure',
10
+ 'onResult'
11
+ ];
12
+
13
+ exports.InteractionActionPropertyNames = InteractionActionPropertyNames;
14
+ //# sourceMappingURL=InteractionAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionAction.js","sources":["../../../interactions/InteractionAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionActionKind } from './InteractionActionKind';\nimport { InteractionArgument } from './InteractionArgument';\n\n/**\n * One declarative effect inside a binding.\n *\n * The set is closed and every operand references something the model declares rather than being a string a\n * renderer interprets - that is what lets an action naming nothing be reported instead of becoming a control\n * that does nothing when clicked.\n */\nexport interface InteractionAction {\n kind: InteractionActionKind;\n arguments?: InteractionArgument[];\n onSuccess?: InteractionAction[];\n onFailure?: InteractionAction[];\n onResult?: InteractionAction[];\n}\n\nexport const InteractionActionPropertyNames: (keyof InteractionAction)[] = ['kind', 'arguments', 'onSuccess', 'onFailure', 'onResult'];\n"],"names":["InteractionActionPropertyNames"],"mappings":";;AAAA;AACA;MAoBaA,8BAAAA,GAA8D;AAAC,IAAA,MAAA;AAAQ,IAAA,WAAA;AAAa,IAAA,WAAA;AAAa,IAAA,WAAA;AAAa,IAAA;;;"}
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /**
6
+ * Which effect an {@link InteractionAction} is.
7
+ *
8
+ * An explicit discriminator rather than a structural one: NavigateBackAction and CloseDialogAction both carry no
9
+ * operand, so nothing about their shape tells them apart. It also means a renderer meeting an action it does not
10
+ * know can name it in a finding instead of reporting that something unidentifiable failed.
11
+ *
12
+ * Append only.
13
+ */ var InteractionActionKind = /*#__PURE__*/ function(InteractionActionKind) {
14
+ InteractionActionKind["ExecuteCommand"] = "ExecuteCommand";
15
+ InteractionActionKind["Navigate"] = "Navigate";
16
+ InteractionActionKind["NavigateBack"] = "NavigateBack";
17
+ InteractionActionKind["OpenDialog"] = "OpenDialog";
18
+ InteractionActionKind["CloseDialog"] = "CloseDialog";
19
+ InteractionActionKind["RefreshQuery"] = "RefreshQuery";
20
+ InteractionActionKind["SetState"] = "SetState";
21
+ InteractionActionKind["Notify"] = "Notify";
22
+ InteractionActionKind["Confirm"] = "Confirm";
23
+ InteractionActionKind["RaiseTrigger"] = "RaiseTrigger";
24
+ return InteractionActionKind;
25
+ }({});
26
+
27
+ exports.InteractionActionKind = InteractionActionKind;
28
+ //# sourceMappingURL=InteractionActionKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionActionKind.js","sources":["../../../interactions/InteractionActionKind.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Which effect an {@link InteractionAction} is.\n *\n * An explicit discriminator rather than a structural one: NavigateBackAction and CloseDialogAction both carry no\n * operand, so nothing about their shape tells them apart. It also means a renderer meeting an action it does not\n * know can name it in a finding instead of reporting that something unidentifiable failed.\n *\n * Append only.\n */\nexport enum InteractionActionKind {\n ExecuteCommand = 'ExecuteCommand',\n Navigate = 'Navigate',\n NavigateBack = 'NavigateBack',\n OpenDialog = 'OpenDialog',\n CloseDialog = 'CloseDialog',\n RefreshQuery = 'RefreshQuery',\n SetState = 'SetState',\n Notify = 'Notify',\n Confirm = 'Confirm',\n RaiseTrigger = 'RaiseTrigger',\n}\n"],"names":["InteractionActionKind"],"mappings":";;AAAA;AACA;AAEA;;;;;;;;IASO,IAAKA,qBAAAA,iBAAAA,SAAAA,qBAAAA,EAAAA;;;;;;;;;;;AAAAA,IAAAA,OAAAA,qBAAAA;AAWX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const InteractionArgumentPropertyNames = [
6
+ 'name',
7
+ 'value'
8
+ ];
9
+
10
+ exports.InteractionArgumentPropertyNames = InteractionArgumentPropertyNames;
11
+ //# sourceMappingURL=InteractionArgument.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionArgument.js","sources":["../../../interactions/InteractionArgument.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BindingExpression } from '../common';\n\n/**\n * One argument passed to an action.\n */\nexport interface InteractionArgument {\n name: string;\n value: BindingExpression;\n}\n\nexport const InteractionArgumentPropertyNames: (keyof InteractionArgument)[] = ['name', 'value'];\n"],"names":["InteractionArgumentPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,gCAAAA,GAAkE;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const InteractionBindingPropertyNames = [
6
+ 'trigger',
7
+ 'actions',
8
+ 'condition'
9
+ ];
10
+
11
+ exports.InteractionBindingPropertyNames = InteractionBindingPropertyNames;
12
+ //# sourceMappingURL=InteractionBinding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionBinding.js","sources":["../../../interactions/InteractionBinding.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BindingExpression } from '../common';\nimport { InteractionAction } from './InteractionAction';\nimport { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * One interaction trigger to actions binding.\n */\nexport interface InteractionBinding {\n trigger: InteractionTrigger;\n actions: InteractionAction[];\n condition?: BindingExpression;\n}\n\nexport const InteractionBindingPropertyNames: (keyof InteractionBinding)[] = ['trigger', 'actions', 'condition'];\n"],"names":["InteractionBindingPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,+BAAAA,GAAgE;AAAC,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const InteractionMessagePropertyNames = [
6
+ 'text',
7
+ 'stringsKey',
8
+ 'binding'
9
+ ];
10
+
11
+ exports.InteractionMessagePropertyNames = InteractionMessagePropertyNames;
12
+ //# sourceMappingURL=InteractionMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionMessage.js","sources":["../../../interactions/InteractionMessage.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BindingExpression } from '../common';\n\n/**\n * The text an action shows: a literal, a localization key, or a binding resolved when the action runs. Exactly\n * one is set.\n */\nexport interface InteractionMessage {\n text?: string;\n stringsKey?: string;\n binding?: BindingExpression;\n}\n\nexport const InteractionMessagePropertyNames: (keyof InteractionMessage)[] = ['text', 'stringsKey', 'binding'];\n"],"names":["InteractionMessagePropertyNames"],"mappings":";;AAAA;AACA;MAcaA,+BAAAA,GAAgE;AAAC,IAAA,MAAA;AAAQ,IAAA,YAAA;AAAc,IAAA;;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /**
6
+ * The built-in interaction kinds - what a user or a lifecycle did, rather than something the document declared.
7
+ *
8
+ * Append only: a renderer that does not know a member reports it rather than guessing, so members are never
9
+ * renumbered or reordered.
10
+ */ var InteractionTriggerKind = /*#__PURE__*/ function(InteractionTriggerKind) {
11
+ InteractionTriggerKind["Click"] = "Click";
12
+ InteractionTriggerKind["DoubleClick"] = "DoubleClick";
13
+ InteractionTriggerKind["Select"] = "Select";
14
+ InteractionTriggerKind["Submit"] = "Submit";
15
+ InteractionTriggerKind["Change"] = "Change";
16
+ InteractionTriggerKind["Load"] = "Load";
17
+ InteractionTriggerKind["Unload"] = "Unload";
18
+ InteractionTriggerKind["Enter"] = "Enter";
19
+ InteractionTriggerKind["Leave"] = "Leave";
20
+ return InteractionTriggerKind;
21
+ }({});
22
+
23
+ exports.InteractionTriggerKind = InteractionTriggerKind;
24
+ //# sourceMappingURL=InteractionTriggerKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InteractionTriggerKind.js","sources":["../../../interactions/InteractionTriggerKind.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The built-in interaction kinds - what a user or a lifecycle did, rather than something the document declared.\n *\n * Append only: a renderer that does not know a member reports it rather than guessing, so members are never\n * renumbered or reordered.\n */\nexport enum InteractionTriggerKind {\n Click = 'Click',\n DoubleClick = 'DoubleClick',\n Select = 'Select',\n Submit = 'Submit',\n Change = 'Change',\n Load = 'Load',\n Unload = 'Unload',\n Enter = 'Enter',\n Leave = 'Leave',\n}\n"],"names":["InteractionTriggerKind"],"mappings":";;AAAA;AACA;AAEA;;;;;IAMO,IAAKA,sBAAAA,iBAAAA,SAAAA,sBAAAA,EAAAA;;;;;;;;;;AAAAA,IAAAA,OAAAA,sBAAAA;AAUX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const IntervalInteractionTriggerPropertyNames = [
6
+ 'seconds'
7
+ ];
8
+
9
+ exports.IntervalInteractionTriggerPropertyNames = IntervalInteractionTriggerPropertyNames;
10
+ //# sourceMappingURL=IntervalInteractionTrigger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IntervalInteractionTrigger.js","sources":["../../../interactions/IntervalInteractionTrigger.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionTrigger } from './InteractionTrigger';\n\n/**\n * An interaction started by an elapsed interval, normalized to seconds so nothing downstream carries a unit.\n */\nexport interface IntervalInteractionTrigger extends InteractionTrigger {\n seconds: number;\n}\n\nexport const IntervalInteractionTriggerPropertyNames: (keyof IntervalInteractionTrigger)[] = ['seconds'];\n"],"names":["IntervalInteractionTriggerPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,uCAAAA,GAAgF;AAAC,IAAA;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const NavigateActionPropertyNames = [
6
+ 'screen',
7
+ 'kind'
8
+ ];
9
+
10
+ exports.NavigateActionPropertyNames = NavigateActionPropertyNames;
11
+ //# sourceMappingURL=NavigateAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigateAction.js","sources":["../../../interactions/NavigateAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Changes the active screen. The screen is named, never addressed - turning that into a URL is a renderer's job.\n */\nexport interface NavigateAction extends InteractionAction {\n screen: string;\n}\n\nexport const NavigateActionPropertyNames: (keyof NavigateAction)[] = ['screen', 'kind'];\n"],"names":["NavigateActionPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,2BAAAA,GAAwD;AAAC,IAAA,QAAA;AAAU,IAAA;;;"}
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const NavigateBackActionPropertyNames = [
6
+ 'kind'
7
+ ];
8
+
9
+ exports.NavigateBackActionPropertyNames = NavigateBackActionPropertyNames;
10
+ //# sourceMappingURL=NavigateBackAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavigateBackAction.js","sources":["../../../interactions/NavigateBackAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Pops navigation history.\n */\nexport interface NavigateBackAction extends InteractionAction {}\n\nexport const NavigateBackActionPropertyNames: (keyof NavigateBackAction)[] = ['kind'];\n"],"names":["NavigateBackActionPropertyNames"],"mappings":";;AAAA;AACA;MASaA,+BAAAA,GAAgE;AAAC,IAAA;;;"}
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /**
6
+ * How prominently a {@link NotifyAction} surfaces its message.
7
+ *
8
+ * Append only.
9
+ */ var NotificationLevel = /*#__PURE__*/ function(NotificationLevel) {
10
+ NotificationLevel["Info"] = "Info";
11
+ NotificationLevel["Warning"] = "Warning";
12
+ NotificationLevel["Error"] = "Error";
13
+ return NotificationLevel;
14
+ }({});
15
+
16
+ exports.NotificationLevel = NotificationLevel;
17
+ //# sourceMappingURL=NotificationLevel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationLevel.js","sources":["../../../interactions/NotificationLevel.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * How prominently a {@link NotifyAction} surfaces its message.\n *\n * Append only.\n */\nexport enum NotificationLevel {\n Info = 'Info',\n Warning = 'Warning',\n Error = 'Error',\n}\n"],"names":["NotificationLevel"],"mappings":";;AAAA;AACA;AAEA;;;;IAKO,IAAKA,iBAAAA,iBAAAA,SAAAA,iBAAAA,EAAAA;;;;AAAAA,IAAAA,OAAAA,iBAAAA;AAIX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const NotifyActionPropertyNames = [
6
+ 'level',
7
+ 'message',
8
+ 'kind'
9
+ ];
10
+
11
+ exports.NotifyActionPropertyNames = NotifyActionPropertyNames;
12
+ //# sourceMappingURL=NotifyAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotifyAction.js","sources":["../../../interactions/NotifyAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\nimport { InteractionMessage } from './InteractionMessage';\nimport { NotificationLevel } from './NotificationLevel';\n\n/**\n * Surfaces a message.\n */\nexport interface NotifyAction extends InteractionAction {\n level: NotificationLevel;\n message: InteractionMessage;\n}\n\nexport const NotifyActionPropertyNames: (keyof NotifyAction)[] = ['level', 'message', 'kind'];\n"],"names":["NotifyActionPropertyNames"],"mappings":";;AAAA;AACA;MAcaA,yBAAAA,GAAoD;AAAC,IAAA,OAAA;AAAS,IAAA,SAAA;AAAW,IAAA;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const OpenDialogActionPropertyNames = [
6
+ 'dialogTemplate',
7
+ 'kind'
8
+ ];
9
+
10
+ exports.OpenDialogActionPropertyNames = OpenDialogActionPropertyNames;
11
+ //# sourceMappingURL=OpenDialogAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OpenDialogAction.js","sources":["../../../interactions/OpenDialogAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Opens a dialog over the application.\n */\nexport interface OpenDialogAction extends InteractionAction {\n dialogTemplate: string;\n}\n\nexport const OpenDialogActionPropertyNames: (keyof OpenDialogAction)[] = ['dialogTemplate', 'kind'];\n"],"names":["OpenDialogActionPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,6BAAAA,GAA4D;AAAC,IAAA,gBAAA;AAAkB,IAAA;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const RaiseTriggerActionPropertyNames = [
6
+ 'trigger',
7
+ 'kind'
8
+ ];
9
+
10
+ exports.RaiseTriggerActionPropertyNames = RaiseTriggerActionPropertyNames;
11
+ //# sourceMappingURL=RaiseTriggerAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RaiseTriggerAction.js","sources":["../../../interactions/RaiseTriggerAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Fires a declared application trigger.\n */\nexport interface RaiseTriggerAction extends InteractionAction {\n trigger: string;\n}\n\nexport const RaiseTriggerActionPropertyNames: (keyof RaiseTriggerAction)[] = ['trigger', 'kind'];\n"],"names":["RaiseTriggerActionPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,+BAAAA,GAAgE;AAAC,IAAA,SAAA;AAAW,IAAA;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const RefreshQueryActionPropertyNames = [
6
+ 'query',
7
+ 'kind'
8
+ ];
9
+
10
+ exports.RefreshQueryActionPropertyNames = RefreshQueryActionPropertyNames;
11
+ //# sourceMappingURL=RefreshQueryAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefreshQueryAction.js","sources":["../../../interactions/RefreshQueryAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Re-runs a query-backed element.\n */\nexport interface RefreshQueryAction extends InteractionAction {\n query: string;\n}\n\nexport const RefreshQueryActionPropertyNames: (keyof RefreshQueryAction)[] = ['query', 'kind'];\n"],"names":["RefreshQueryActionPropertyNames"],"mappings":";;AAAA;AACA;MAWaA,+BAAAA,GAAgE;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ const SetStateActionPropertyNames = [
6
+ 'target',
7
+ 'value',
8
+ 'kind'
9
+ ];
10
+
11
+ exports.SetStateActionPropertyNames = SetStateActionPropertyNames;
12
+ //# sourceMappingURL=SetStateAction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SetStateAction.js","sources":["../../../interactions/SetStateAction.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BindingExpression } from '../common';\nimport { InteractionAction } from './InteractionAction';\n\n/**\n * Writes screen state.\n */\nexport interface SetStateAction extends InteractionAction {\n target: string;\n value: BindingExpression;\n}\n\nexport const SetStateActionPropertyNames: (keyof SetStateAction)[] = ['target', 'value', 'kind'];\n"],"names":["SetStateActionPropertyNames"],"mappings":";;AAAA;AACA;MAaaA,2BAAAA,GAAwD;AAAC,IAAA,QAAA;AAAU,IAAA,OAAA;AAAS,IAAA;;;"}
@@ -5,7 +5,8 @@
5
5
  const LayoutPropertyNames = [
6
6
  'name',
7
7
  'slots',
8
- 'arrangement'
8
+ 'arrangement',
9
+ 'behaviors'
9
10
  ];
10
11
 
11
12
  exports.LayoutPropertyNames = LayoutPropertyNames;
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.js","sources":["../../../layouts/Layout.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Arrangement } from './Arrangement';\nimport { Slot } from './Slot';\n\n/**\n * A named template of slots that a {@link Screen} fills with content. Mirrors Screenplay's `layout`\n * construct: a bare layout with plain slots is a special case of a layout whose slots all use the\n * default arrangement.\n */\nexport interface Layout {\n name: string;\n slots: Slot[];\n\n /**\n * How the layout's own `slots` position relative to each other - a {@link FlowArrangement} (leaves\n * are {@link FlowSlotLeaf}) or {@link FreeformSlotArrangement}, or `undefined` for the slots'\n * declaration order with no further positioning information. Distinct from each {@link Slot}'s own\n * `arrangement`, which positions that one slot's filled content instead of positioning the slots\n * themselves.\n */\n arrangement?: Arrangement;\n}\n\nexport const LayoutPropertyNames: (keyof Layout)[] = ['name', 'slots', 'arrangement'];\n"],"names":["LayoutPropertyNames"],"mappings":";;AAAA;AACA;MAwBaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA;;;"}
1
+ {"version":3,"file":"Layout.js","sources":["../../../layouts/Layout.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Arrangement } from './Arrangement';\nimport { Slot } from './Slot';\nimport { Behavior } from '../interactions';\n\n/**\n * A named template of slots that a {@link Screen} fills with content. Mirrors Screenplay's `layout`\n * construct: a bare layout with plain slots is a special case of a layout whose slots all use the\n * default arrangement.\n */\nexport interface Layout {\n name: string;\n slots: Slot[];\n\n /**\n * How the layout's own `slots` position relative to each other - a {@link FlowArrangement} (leaves\n * are {@link FlowSlotLeaf}) or {@link FreeformSlotArrangement}, or `undefined` for the slots'\n * declaration order with no further positioning information. Distinct from each {@link Slot}'s own\n * `arrangement`, which positions that one slot's filled content instead of positioning the slots\n * themselves.\n */\n arrangement?: Arrangement;\n /**\n * The behaviors attached here - what happens when someone interacts with it. Additive with whatever is\n * attached further out or further in.\n */\n behaviors?: Behavior[];\n}\n\nexport const LayoutPropertyNames: (keyof Layout)[] = ['name', 'slots', 'arrangement', 'behaviors'];\n"],"names":["LayoutPropertyNames"],"mappings":";;AAAA;AACA;MA8BaA,mBAAAA,GAAwC;AAAC,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,aAAA;AAAe,IAAA;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"UiProfile.js","sources":["../../../profiles/UiProfile.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SizeClass } from '../sizeClasses';\n\n/**\n * A named target: a platform, a default size class, an ordered list of component packages, and the\n * application shell and visual theme it selects. Declaration order in `packages` is override priority — a\n * later package shadows an earlier one when both resolve the same bare component name. `core` is always\n * the final fallback, so a minimum vocabulary resolves regardless of which packages a profile lists.\n *\n * A profile is where the choices that make a description concrete are made: which component vocabulary,\n * which shell, which theme. Deliberately none of them are stated by a {@link Screen} — that is what keeps\n * a screen portable across targets, and what lets one application ship a different shell to the web than\n * to a phone.\n */\nexport interface UiProfile {\n /**\n * The profile's name.\n */\n name: string;\n\n /**\n * The platform this profile targets (e.g. `web`, `ios`, `android`, `desktop`).\n */\n targetPlatform: string;\n\n /**\n * The component packages this profile draws from, in override-priority order.\n */\n packages: string[];\n\n /**\n * The size class assumed when the renderer cannot otherwise determine one.\n */\n defaultSizeClass?: SizeClass;\n\n /**\n * The name of the {@link Layout} this profile renders inside — the application's base navigational\n * shell, normally provided by a blueprint in `packages`. Absent when the profile does not select one.\n */\n layout?: string;\n\n /**\n * The name of the {@link Theme} this profile applies, or absent when it selects none. A theme is only\n * meaningful relative to a set of packages, which is why it is chosen here rather than by a screen.\n */\n theme?: string;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":";;AAAA;AACA;MAiDaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,IAAA;;;"}
1
+ {"version":3,"file":"UiProfile.js","sources":["../../../profiles/UiProfile.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { TargetSizeClass } from '../sizeClasses';\n\n/**\n * A named target: a platform, a default size class, an ordered list of component packages, and the\n * application shell and visual theme it selects. Declaration order in `packages` is override priority — a\n * later package shadows an earlier one when both resolve the same bare component name. `core` is always\n * the final fallback, so a minimum vocabulary resolves regardless of which packages a profile lists.\n *\n * A profile is where the choices that make a description concrete are made: which component vocabulary,\n * which shell, which theme. Deliberately none of them are stated by a {@link Screen} — that is what keeps\n * a screen portable across targets, and what lets one application ship a different shell to the web than\n * to a phone.\n */\nexport interface UiProfile {\n /**\n * The profile's name.\n */\n name: string;\n\n /**\n * The platform this profile targets (e.g. `web`, `ios`, `android`, `desktop`).\n */\n targetPlatform: string;\n\n /**\n * The component packages this profile draws from, in override-priority order.\n */\n packages: string[];\n\n /**\n * The size class assumed when the renderer cannot otherwise determine one.\n */\n defaultSizeClass?: TargetSizeClass;\n\n /**\n * The name of the {@link Layout} this profile renders inside — the application's base navigational\n * shell, normally provided by a blueprint in `packages`. Absent when the profile does not select one.\n */\n layout?: string;\n\n /**\n * The name of the {@link Theme} this profile applies, or absent when it selects none. A theme is only\n * meaningful relative to a set of packages, which is why it is chosen here rather than by a screen.\n */\n theme?: string;\n}\n\nexport const UiProfilePropertyNames: (keyof UiProfile)[] = [\n 'name',\n 'targetPlatform',\n 'packages',\n 'defaultSizeClass',\n 'layout',\n 'theme',\n];\n"],"names":["UiProfilePropertyNames"],"mappings":";;AAAA;AACA;MAiDaA,sBAAAA,GAA8C;AACvD,IAAA,MAAA;AACA,IAAA,gBAAA;AACA,IAAA,UAAA;AACA,IAAA,kBAAA;AACA,IAAA,QAAA;AACA,IAAA;;;"}
@@ -8,7 +8,8 @@ const DialogTemplatePropertyNames = [
8
8
  'arrangement',
9
9
  'content',
10
10
  'displayName',
11
- 'description'
11
+ 'description',
12
+ 'behaviors'
12
13
  ];
13
14
 
14
15
  exports.DialogTemplatePropertyNames = DialogTemplatePropertyNames;