@cratis/scene.model 4.2.0 → 4.3.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 (457) hide show
  1. package/common/DestinationReference.ts +18 -0
  2. package/common/IconReference.ts +22 -0
  3. package/common/index.ts +2 -0
  4. package/descriptors/CollectionItemDescriptor.ts +20 -0
  5. package/descriptors/CollectionOperation.ts +20 -0
  6. package/descriptors/ComponentDescriptor.ts +33 -0
  7. package/descriptors/LayoutCapabilities.ts +32 -0
  8. package/descriptors/LayoutChildPlacement.ts +16 -0
  9. package/descriptors/LayoutType.ts +28 -0
  10. package/descriptors/LayoutTypeDescriptor.ts +25 -0
  11. package/descriptors/PropertyChoice.ts +13 -0
  12. package/descriptors/PropertyConstraints.ts +41 -0
  13. package/descriptors/PropertyDescriptor.ts +55 -0
  14. package/descriptors/PropertyValueType.ts +30 -0
  15. package/descriptors/index.ts +14 -0
  16. package/dist/cjs/common/DestinationReference.js +11 -0
  17. package/dist/cjs/common/DestinationReference.js.map +1 -0
  18. package/dist/cjs/common/IconReference.js +18 -0
  19. package/dist/cjs/common/IconReference.js.map +1 -0
  20. package/dist/cjs/descriptors/CollectionItemDescriptor.js +11 -0
  21. package/dist/cjs/descriptors/CollectionItemDescriptor.js.map +1 -0
  22. package/dist/cjs/descriptors/CollectionOperation.js +17 -0
  23. package/dist/cjs/descriptors/CollectionOperation.js.map +1 -0
  24. package/dist/cjs/descriptors/ComponentDescriptor.js +14 -0
  25. package/dist/cjs/descriptors/ComponentDescriptor.js.map +1 -0
  26. package/dist/cjs/descriptors/LayoutCapabilities.js +15 -0
  27. package/dist/cjs/descriptors/LayoutCapabilities.js.map +1 -0
  28. package/dist/cjs/descriptors/LayoutChildPlacement.js +15 -0
  29. package/dist/cjs/descriptors/LayoutChildPlacement.js.map +1 -0
  30. package/dist/cjs/descriptors/LayoutType.js +25 -0
  31. package/dist/cjs/descriptors/LayoutType.js.map +1 -0
  32. package/dist/cjs/descriptors/LayoutTypeDescriptor.js +14 -0
  33. package/dist/cjs/descriptors/LayoutTypeDescriptor.js.map +1 -0
  34. package/dist/cjs/descriptors/PropertyChoice.js +14 -0
  35. package/dist/cjs/descriptors/PropertyChoice.js.map +1 -0
  36. package/dist/cjs/descriptors/PropertyConstraints.js +19 -0
  37. package/dist/cjs/descriptors/PropertyConstraints.js.map +1 -0
  38. package/dist/cjs/descriptors/PropertyDescriptor.js +20 -0
  39. package/dist/cjs/descriptors/PropertyDescriptor.js.map +1 -0
  40. package/dist/cjs/descriptors/PropertyValueType.js +22 -0
  41. package/dist/cjs/descriptors/PropertyValueType.js.map +1 -0
  42. package/dist/cjs/editing/AddCollectionItemEdit.js +15 -0
  43. package/dist/cjs/editing/AddCollectionItemEdit.js.map +1 -0
  44. package/dist/cjs/editing/ChangeLayoutTypeEdit.js +13 -0
  45. package/dist/cjs/editing/ChangeLayoutTypeEdit.js.map +1 -0
  46. package/dist/cjs/editing/DiagnosticCode.js +57 -0
  47. package/dist/cjs/editing/DiagnosticCode.js.map +1 -0
  48. package/dist/cjs/editing/DiagnosticSeverity.js +15 -0
  49. package/dist/cjs/editing/DiagnosticSeverity.js.map +1 -0
  50. package/dist/cjs/editing/EditCollectionItemEdit.js +16 -0
  51. package/dist/cjs/editing/EditCollectionItemEdit.js.map +1 -0
  52. package/dist/cjs/editing/EditTarget.js +14 -0
  53. package/dist/cjs/editing/EditTarget.js.map +1 -0
  54. package/dist/cjs/editing/EditingScope.js +12 -0
  55. package/dist/cjs/editing/EditingScope.js.map +1 -0
  56. package/dist/cjs/editing/EditingScopeKind.js +16 -0
  57. package/dist/cjs/editing/EditingScopeKind.js.map +1 -0
  58. package/dist/cjs/editing/EffectiveCollectionItem.js +15 -0
  59. package/dist/cjs/editing/EffectiveCollectionItem.js.map +1 -0
  60. package/dist/cjs/editing/EffectiveComponentConfiguration.js +13 -0
  61. package/dist/cjs/editing/EffectiveComponentConfiguration.js.map +1 -0
  62. package/dist/cjs/editing/EffectiveConfiguration.js +11 -0
  63. package/dist/cjs/editing/EffectiveConfiguration.js.map +1 -0
  64. package/dist/cjs/editing/EffectivePropertyValue.js +15 -0
  65. package/dist/cjs/editing/EffectivePropertyValue.js.map +1 -0
  66. package/dist/cjs/editing/ExposePropertyEdit.js +12 -0
  67. package/dist/cjs/editing/ExposePropertyEdit.js.map +1 -0
  68. package/dist/cjs/editing/InsertNodeEdit.js +15 -0
  69. package/dist/cjs/editing/InsertNodeEdit.js.map +1 -0
  70. package/dist/cjs/editing/InspectedCollectionItem.js +15 -0
  71. package/dist/cjs/editing/InspectedCollectionItem.js.map +1 -0
  72. package/dist/cjs/editing/InspectedProperty.js +18 -0
  73. package/dist/cjs/editing/InspectedProperty.js.map +1 -0
  74. package/dist/cjs/editing/MoveNodeEdit.js +14 -0
  75. package/dist/cjs/editing/MoveNodeEdit.js.map +1 -0
  76. package/dist/cjs/editing/NodeInspection.js +19 -0
  77. package/dist/cjs/editing/NodeInspection.js.map +1 -0
  78. package/dist/cjs/editing/NodeProvenance.js +11 -0
  79. package/dist/cjs/editing/NodeProvenance.js.map +1 -0
  80. package/dist/cjs/editing/ProvenanceKind.js +15 -0
  81. package/dist/cjs/editing/ProvenanceKind.js.map +1 -0
  82. package/dist/cjs/editing/RemoveCollectionItemEdit.js +14 -0
  83. package/dist/cjs/editing/RemoveCollectionItemEdit.js.map +1 -0
  84. package/dist/cjs/editing/RemoveNodeEdit.js +11 -0
  85. package/dist/cjs/editing/RemoveNodeEdit.js.map +1 -0
  86. package/dist/cjs/editing/ReorderCollectionItemEdit.js +15 -0
  87. package/dist/cjs/editing/ReorderCollectionItemEdit.js.map +1 -0
  88. package/dist/cjs/editing/ResetInstanceValueEdit.js +13 -0
  89. package/dist/cjs/editing/ResetInstanceValueEdit.js.map +1 -0
  90. package/dist/cjs/editing/ResetPropertyEdit.js +12 -0
  91. package/dist/cjs/editing/ResetPropertyEdit.js.map +1 -0
  92. package/dist/cjs/editing/SceneDiagnostic.js +17 -0
  93. package/dist/cjs/editing/SceneDiagnostic.js.map +1 -0
  94. package/dist/cjs/editing/SceneDocument.js +15 -0
  95. package/dist/cjs/editing/SceneDocument.js.map +1 -0
  96. package/dist/cjs/editing/SceneEditKind.js +27 -0
  97. package/dist/cjs/editing/SceneEditKind.js.map +1 -0
  98. package/dist/cjs/editing/SceneNodeKind.js +21 -0
  99. package/dist/cjs/editing/SceneNodeKind.js.map +1 -0
  100. package/dist/cjs/editing/SetInstanceValueEdit.js +14 -0
  101. package/dist/cjs/editing/SetInstanceValueEdit.js.map +1 -0
  102. package/dist/cjs/editing/SetPropertyEdit.js +13 -0
  103. package/dist/cjs/editing/SetPropertyEdit.js.map +1 -0
  104. package/dist/cjs/editing/UnexposePropertyEdit.js +13 -0
  105. package/dist/cjs/editing/UnexposePropertyEdit.js.map +1 -0
  106. package/dist/cjs/editing/ValueSource.js +15 -0
  107. package/dist/cjs/editing/ValueSource.js.map +1 -0
  108. package/dist/cjs/exposure/ContributedItem.js +14 -0
  109. package/dist/cjs/exposure/ContributedItem.js.map +1 -0
  110. package/dist/cjs/exposure/ExposedProperty.js +15 -0
  111. package/dist/cjs/exposure/ExposedProperty.js.map +1 -0
  112. package/dist/cjs/exposure/ExposureDeclaration.js +11 -0
  113. package/dist/cjs/exposure/ExposureDeclaration.js.map +1 -0
  114. package/dist/cjs/exposure/InstanceContribution.js +14 -0
  115. package/dist/cjs/exposure/InstanceContribution.js.map +1 -0
  116. package/dist/cjs/index.js +118 -0
  117. package/dist/cjs/index.js.map +1 -1
  118. package/dist/cjs/queries/QueryArgumentBinding.js +11 -0
  119. package/dist/cjs/queries/QueryArgumentBinding.js.map +1 -0
  120. package/dist/cjs/queries/QueryBinding.js +13 -0
  121. package/dist/cjs/queries/QueryBinding.js.map +1 -0
  122. package/dist/cjs/queries/QueryCandidate.js +15 -0
  123. package/dist/cjs/queries/QueryCandidate.js.map +1 -0
  124. package/dist/cjs/queries/QueryOrigin.js +12 -0
  125. package/dist/cjs/queries/QueryOrigin.js.map +1 -0
  126. package/dist/cjs/queries/QueryOriginKind.js +14 -0
  127. package/dist/cjs/queries/QueryOriginKind.js.map +1 -0
  128. package/dist/cjs/queries/QueryParameter.js +14 -0
  129. package/dist/cjs/queries/QueryParameter.js.map +1 -0
  130. package/dist/cjs/queries/QueryResultBinding.js +13 -0
  131. package/dist/cjs/queries/QueryResultBinding.js.map +1 -0
  132. package/dist/cjs/queries/QueryResultField.js +14 -0
  133. package/dist/cjs/queries/QueryResultField.js.map +1 -0
  134. package/dist/cjs/queries/QueryResultShape.js +16 -0
  135. package/dist/cjs/queries/QueryResultShape.js.map +1 -0
  136. package/dist/esm/common/DestinationReference.d.ts +7 -0
  137. package/dist/esm/common/DestinationReference.d.ts.map +1 -0
  138. package/dist/esm/common/DestinationReference.js +9 -0
  139. package/dist/esm/common/DestinationReference.js.map +1 -0
  140. package/dist/esm/common/IconReference.d.ts +7 -0
  141. package/dist/esm/common/IconReference.d.ts.map +1 -0
  142. package/dist/esm/common/IconReference.js +16 -0
  143. package/dist/esm/common/IconReference.js.map +1 -0
  144. package/dist/esm/common/index.d.ts +2 -0
  145. package/dist/esm/common/index.d.ts.map +1 -1
  146. package/dist/esm/common/index.js +2 -0
  147. package/dist/esm/common/index.js.map +1 -1
  148. package/dist/esm/descriptors/CollectionItemDescriptor.d.ts +7 -0
  149. package/dist/esm/descriptors/CollectionItemDescriptor.d.ts.map +1 -0
  150. package/dist/esm/descriptors/CollectionItemDescriptor.js +9 -0
  151. package/dist/esm/descriptors/CollectionItemDescriptor.js.map +1 -0
  152. package/dist/esm/descriptors/CollectionOperation.d.ts +7 -0
  153. package/dist/esm/descriptors/CollectionOperation.d.ts.map +1 -0
  154. package/dist/esm/descriptors/CollectionOperation.js +15 -0
  155. package/dist/esm/descriptors/CollectionOperation.js.map +1 -0
  156. package/dist/esm/descriptors/ComponentDescriptor.d.ts +10 -0
  157. package/dist/esm/descriptors/ComponentDescriptor.d.ts.map +1 -0
  158. package/dist/esm/descriptors/ComponentDescriptor.js +12 -0
  159. package/dist/esm/descriptors/ComponentDescriptor.js.map +1 -0
  160. package/dist/esm/descriptors/LayoutCapabilities.d.ts +12 -0
  161. package/dist/esm/descriptors/LayoutCapabilities.d.ts.map +1 -0
  162. package/dist/esm/descriptors/LayoutCapabilities.js +13 -0
  163. package/dist/esm/descriptors/LayoutCapabilities.js.map +1 -0
  164. package/dist/esm/descriptors/LayoutChildPlacement.d.ts +6 -0
  165. package/dist/esm/descriptors/LayoutChildPlacement.d.ts.map +1 -0
  166. package/dist/esm/descriptors/LayoutChildPlacement.js +13 -0
  167. package/dist/esm/descriptors/LayoutChildPlacement.js.map +1 -0
  168. package/dist/esm/descriptors/LayoutType.d.ts +14 -0
  169. package/dist/esm/descriptors/LayoutType.d.ts.map +1 -0
  170. package/dist/esm/descriptors/LayoutType.js +23 -0
  171. package/dist/esm/descriptors/LayoutType.js.map +1 -0
  172. package/dist/esm/descriptors/LayoutTypeDescriptor.d.ts +12 -0
  173. package/dist/esm/descriptors/LayoutTypeDescriptor.d.ts.map +1 -0
  174. package/dist/esm/descriptors/LayoutTypeDescriptor.js +12 -0
  175. package/dist/esm/descriptors/LayoutTypeDescriptor.js.map +1 -0
  176. package/dist/esm/descriptors/PropertyChoice.d.ts +7 -0
  177. package/dist/esm/descriptors/PropertyChoice.d.ts.map +1 -0
  178. package/dist/esm/descriptors/PropertyChoice.js +12 -0
  179. package/dist/esm/descriptors/PropertyChoice.js.map +1 -0
  180. package/dist/esm/descriptors/PropertyConstraints.d.ts +15 -0
  181. package/dist/esm/descriptors/PropertyConstraints.d.ts.map +1 -0
  182. package/dist/esm/descriptors/PropertyConstraints.js +17 -0
  183. package/dist/esm/descriptors/PropertyConstraints.js.map +1 -0
  184. package/dist/esm/descriptors/PropertyDescriptor.d.ts +19 -0
  185. package/dist/esm/descriptors/PropertyDescriptor.d.ts.map +1 -0
  186. package/dist/esm/descriptors/PropertyDescriptor.js +18 -0
  187. package/dist/esm/descriptors/PropertyDescriptor.js.map +1 -0
  188. package/dist/esm/descriptors/PropertyValueType.d.ts +12 -0
  189. package/dist/esm/descriptors/PropertyValueType.d.ts.map +1 -0
  190. package/dist/esm/descriptors/PropertyValueType.js +20 -0
  191. package/dist/esm/descriptors/PropertyValueType.js.map +1 -0
  192. package/dist/esm/descriptors/index.d.ts +12 -0
  193. package/dist/esm/descriptors/index.d.ts.map +1 -0
  194. package/dist/esm/descriptors/index.js +12 -0
  195. package/dist/esm/descriptors/index.js.map +1 -0
  196. package/dist/esm/editing/AddCollectionItemEdit.d.ts +12 -0
  197. package/dist/esm/editing/AddCollectionItemEdit.d.ts.map +1 -0
  198. package/dist/esm/editing/AddCollectionItemEdit.js +13 -0
  199. package/dist/esm/editing/AddCollectionItemEdit.js.map +1 -0
  200. package/dist/esm/editing/ChangeLayoutTypeEdit.d.ts +10 -0
  201. package/dist/esm/editing/ChangeLayoutTypeEdit.d.ts.map +1 -0
  202. package/dist/esm/editing/ChangeLayoutTypeEdit.js +11 -0
  203. package/dist/esm/editing/ChangeLayoutTypeEdit.js.map +1 -0
  204. package/dist/esm/editing/DiagnosticCode.d.ts +41 -0
  205. package/dist/esm/editing/DiagnosticCode.d.ts.map +1 -0
  206. package/dist/esm/editing/DiagnosticCode.js +55 -0
  207. package/dist/esm/editing/DiagnosticCode.js.map +1 -0
  208. package/dist/esm/editing/DiagnosticSeverity.d.ts +5 -0
  209. package/dist/esm/editing/DiagnosticSeverity.d.ts.map +1 -0
  210. package/dist/esm/editing/DiagnosticSeverity.js +13 -0
  211. package/dist/esm/editing/DiagnosticSeverity.js.map +1 -0
  212. package/dist/esm/editing/EditCollectionItemEdit.d.ts +12 -0
  213. package/dist/esm/editing/EditCollectionItemEdit.d.ts.map +1 -0
  214. package/dist/esm/editing/EditCollectionItemEdit.js +14 -0
  215. package/dist/esm/editing/EditCollectionItemEdit.js.map +1 -0
  216. package/dist/esm/editing/EditTarget.d.ts +5 -0
  217. package/dist/esm/editing/EditTarget.d.ts.map +1 -0
  218. package/dist/esm/editing/EditTarget.js +12 -0
  219. package/dist/esm/editing/EditTarget.js.map +1 -0
  220. package/dist/esm/editing/EditingScope.d.ts +8 -0
  221. package/dist/esm/editing/EditingScope.d.ts.map +1 -0
  222. package/dist/esm/editing/EditingScope.js +10 -0
  223. package/dist/esm/editing/EditingScope.js.map +1 -0
  224. package/dist/esm/editing/EditingScopeKind.d.ts +7 -0
  225. package/dist/esm/editing/EditingScopeKind.d.ts.map +1 -0
  226. package/dist/esm/editing/EditingScopeKind.js +14 -0
  227. package/dist/esm/editing/EditingScopeKind.js.map +1 -0
  228. package/dist/esm/editing/EffectiveCollectionItem.d.ts +8 -0
  229. package/dist/esm/editing/EffectiveCollectionItem.d.ts.map +1 -0
  230. package/dist/esm/editing/EffectiveCollectionItem.js +13 -0
  231. package/dist/esm/editing/EffectiveCollectionItem.js.map +1 -0
  232. package/dist/esm/editing/EffectiveComponentConfiguration.d.ts +9 -0
  233. package/dist/esm/editing/EffectiveComponentConfiguration.d.ts.map +1 -0
  234. package/dist/esm/editing/EffectiveComponentConfiguration.js +11 -0
  235. package/dist/esm/editing/EffectiveComponentConfiguration.js.map +1 -0
  236. package/dist/esm/editing/EffectiveConfiguration.d.ts +8 -0
  237. package/dist/esm/editing/EffectiveConfiguration.d.ts.map +1 -0
  238. package/dist/esm/editing/EffectiveConfiguration.js +9 -0
  239. package/dist/esm/editing/EffectiveConfiguration.js.map +1 -0
  240. package/dist/esm/editing/EffectivePropertyValue.d.ts +12 -0
  241. package/dist/esm/editing/EffectivePropertyValue.d.ts.map +1 -0
  242. package/dist/esm/editing/EffectivePropertyValue.js +13 -0
  243. package/dist/esm/editing/EffectivePropertyValue.js.map +1 -0
  244. package/dist/esm/editing/ExposePropertyEdit.d.ts +9 -0
  245. package/dist/esm/editing/ExposePropertyEdit.d.ts.map +1 -0
  246. package/dist/esm/editing/ExposePropertyEdit.js +10 -0
  247. package/dist/esm/editing/ExposePropertyEdit.js.map +1 -0
  248. package/dist/esm/editing/InsertNodeEdit.d.ts +13 -0
  249. package/dist/esm/editing/InsertNodeEdit.d.ts.map +1 -0
  250. package/dist/esm/editing/InsertNodeEdit.js +13 -0
  251. package/dist/esm/editing/InsertNodeEdit.js.map +1 -0
  252. package/dist/esm/editing/InspectedCollectionItem.d.ts +8 -0
  253. package/dist/esm/editing/InspectedCollectionItem.d.ts.map +1 -0
  254. package/dist/esm/editing/InspectedCollectionItem.js +13 -0
  255. package/dist/esm/editing/InspectedCollectionItem.js.map +1 -0
  256. package/dist/esm/editing/InspectedProperty.d.ts +17 -0
  257. package/dist/esm/editing/InspectedProperty.d.ts.map +1 -0
  258. package/dist/esm/editing/InspectedProperty.js +16 -0
  259. package/dist/esm/editing/InspectedProperty.js.map +1 -0
  260. package/dist/esm/editing/MoveNodeEdit.d.ts +10 -0
  261. package/dist/esm/editing/MoveNodeEdit.d.ts.map +1 -0
  262. package/dist/esm/editing/MoveNodeEdit.js +12 -0
  263. package/dist/esm/editing/MoveNodeEdit.js.map +1 -0
  264. package/dist/esm/editing/NodeInspection.d.ts +19 -0
  265. package/dist/esm/editing/NodeInspection.d.ts.map +1 -0
  266. package/dist/esm/editing/NodeInspection.js +17 -0
  267. package/dist/esm/editing/NodeInspection.js.map +1 -0
  268. package/dist/esm/editing/NodeProvenance.d.ts +7 -0
  269. package/dist/esm/editing/NodeProvenance.d.ts.map +1 -0
  270. package/dist/esm/editing/NodeProvenance.js +9 -0
  271. package/dist/esm/editing/NodeProvenance.js.map +1 -0
  272. package/dist/esm/editing/ProvenanceKind.d.ts +6 -0
  273. package/dist/esm/editing/ProvenanceKind.d.ts.map +1 -0
  274. package/dist/esm/editing/ProvenanceKind.js +13 -0
  275. package/dist/esm/editing/ProvenanceKind.js.map +1 -0
  276. package/dist/esm/editing/RemoveCollectionItemEdit.d.ts +10 -0
  277. package/dist/esm/editing/RemoveCollectionItemEdit.d.ts.map +1 -0
  278. package/dist/esm/editing/RemoveCollectionItemEdit.js +12 -0
  279. package/dist/esm/editing/RemoveCollectionItemEdit.js.map +1 -0
  280. package/dist/esm/editing/RemoveNodeEdit.d.ts +7 -0
  281. package/dist/esm/editing/RemoveNodeEdit.d.ts.map +1 -0
  282. package/dist/esm/editing/RemoveNodeEdit.js +9 -0
  283. package/dist/esm/editing/RemoveNodeEdit.js.map +1 -0
  284. package/dist/esm/editing/ReorderCollectionItemEdit.d.ts +11 -0
  285. package/dist/esm/editing/ReorderCollectionItemEdit.d.ts.map +1 -0
  286. package/dist/esm/editing/ReorderCollectionItemEdit.js +13 -0
  287. package/dist/esm/editing/ReorderCollectionItemEdit.js.map +1 -0
  288. package/dist/esm/editing/ResetInstanceValueEdit.d.ts +9 -0
  289. package/dist/esm/editing/ResetInstanceValueEdit.d.ts.map +1 -0
  290. package/dist/esm/editing/ResetInstanceValueEdit.js +11 -0
  291. package/dist/esm/editing/ResetInstanceValueEdit.js.map +1 -0
  292. package/dist/esm/editing/ResetPropertyEdit.d.ts +8 -0
  293. package/dist/esm/editing/ResetPropertyEdit.d.ts.map +1 -0
  294. package/dist/esm/editing/ResetPropertyEdit.js +10 -0
  295. package/dist/esm/editing/ResetPropertyEdit.js.map +1 -0
  296. package/dist/esm/editing/SceneDiagnostic.d.ts +14 -0
  297. package/dist/esm/editing/SceneDiagnostic.d.ts.map +1 -0
  298. package/dist/esm/editing/SceneDiagnostic.js +15 -0
  299. package/dist/esm/editing/SceneDiagnostic.js.map +1 -0
  300. package/dist/esm/editing/SceneDocument.d.ts +13 -0
  301. package/dist/esm/editing/SceneDocument.d.ts.map +1 -0
  302. package/dist/esm/editing/SceneDocument.js +13 -0
  303. package/dist/esm/editing/SceneDocument.js.map +1 -0
  304. package/dist/esm/editing/SceneEdit.d.ts +16 -0
  305. package/dist/esm/editing/SceneEdit.d.ts.map +1 -0
  306. package/dist/esm/editing/SceneEdit.js +2 -0
  307. package/dist/esm/editing/SceneEdit.js.map +1 -0
  308. package/dist/esm/editing/SceneEditKind.d.ts +17 -0
  309. package/dist/esm/editing/SceneEditKind.d.ts.map +1 -0
  310. package/dist/esm/editing/SceneEditKind.js +25 -0
  311. package/dist/esm/editing/SceneEditKind.js.map +1 -0
  312. package/dist/esm/editing/SceneNodeKind.d.ts +12 -0
  313. package/dist/esm/editing/SceneNodeKind.d.ts.map +1 -0
  314. package/dist/esm/editing/SceneNodeKind.js +19 -0
  315. package/dist/esm/editing/SceneNodeKind.js.map +1 -0
  316. package/dist/esm/editing/SetInstanceValueEdit.d.ts +10 -0
  317. package/dist/esm/editing/SetInstanceValueEdit.d.ts.map +1 -0
  318. package/dist/esm/editing/SetInstanceValueEdit.js +12 -0
  319. package/dist/esm/editing/SetInstanceValueEdit.js.map +1 -0
  320. package/dist/esm/editing/SetPropertyEdit.d.ts +9 -0
  321. package/dist/esm/editing/SetPropertyEdit.d.ts.map +1 -0
  322. package/dist/esm/editing/SetPropertyEdit.js +11 -0
  323. package/dist/esm/editing/SetPropertyEdit.js.map +1 -0
  324. package/dist/esm/editing/UnexposePropertyEdit.d.ts +9 -0
  325. package/dist/esm/editing/UnexposePropertyEdit.d.ts.map +1 -0
  326. package/dist/esm/editing/UnexposePropertyEdit.js +11 -0
  327. package/dist/esm/editing/UnexposePropertyEdit.js.map +1 -0
  328. package/dist/esm/editing/ValueSource.d.ts +6 -0
  329. package/dist/esm/editing/ValueSource.d.ts.map +1 -0
  330. package/dist/esm/editing/ValueSource.js +13 -0
  331. package/dist/esm/editing/ValueSource.js.map +1 -0
  332. package/dist/esm/editing/index.d.ts +35 -0
  333. package/dist/esm/editing/index.d.ts.map +1 -0
  334. package/dist/esm/editing/index.js +35 -0
  335. package/dist/esm/editing/index.js.map +1 -0
  336. package/dist/esm/exposure/ContributedItem.d.ts +6 -0
  337. package/dist/esm/exposure/ContributedItem.d.ts.map +1 -0
  338. package/dist/esm/exposure/ContributedItem.js +12 -0
  339. package/dist/esm/exposure/ContributedItem.js.map +1 -0
  340. package/dist/esm/exposure/ExposedProperty.d.ts +11 -0
  341. package/dist/esm/exposure/ExposedProperty.d.ts.map +1 -0
  342. package/dist/esm/exposure/ExposedProperty.js +13 -0
  343. package/dist/esm/exposure/ExposedProperty.js.map +1 -0
  344. package/dist/esm/exposure/ExposureDeclaration.d.ts +7 -0
  345. package/dist/esm/exposure/ExposureDeclaration.d.ts.map +1 -0
  346. package/dist/esm/exposure/ExposureDeclaration.js +9 -0
  347. package/dist/esm/exposure/ExposureDeclaration.js.map +1 -0
  348. package/dist/esm/exposure/InstanceContribution.d.ts +10 -0
  349. package/dist/esm/exposure/InstanceContribution.d.ts.map +1 -0
  350. package/dist/esm/exposure/InstanceContribution.js +12 -0
  351. package/dist/esm/exposure/InstanceContribution.js.map +1 -0
  352. package/dist/esm/exposure/index.d.ts +5 -0
  353. package/dist/esm/exposure/index.d.ts.map +1 -0
  354. package/dist/esm/exposure/index.js +5 -0
  355. package/dist/esm/exposure/index.js.map +1 -0
  356. package/dist/esm/index.d.ts +4 -0
  357. package/dist/esm/index.d.ts.map +1 -1
  358. package/dist/esm/index.js +59 -0
  359. package/dist/esm/index.js.map +1 -1
  360. package/dist/esm/queries/QueryArgumentBinding.d.ts +7 -0
  361. package/dist/esm/queries/QueryArgumentBinding.d.ts.map +1 -0
  362. package/dist/esm/queries/QueryArgumentBinding.js +9 -0
  363. package/dist/esm/queries/QueryArgumentBinding.js.map +1 -0
  364. package/dist/esm/queries/QueryBinding.d.ts +10 -0
  365. package/dist/esm/queries/QueryBinding.d.ts.map +1 -0
  366. package/dist/esm/queries/QueryBinding.js +11 -0
  367. package/dist/esm/queries/QueryBinding.js.map +1 -0
  368. package/dist/esm/queries/QueryCandidate.d.ts +14 -0
  369. package/dist/esm/queries/QueryCandidate.d.ts.map +1 -0
  370. package/dist/esm/queries/QueryCandidate.js +13 -0
  371. package/dist/esm/queries/QueryCandidate.js.map +1 -0
  372. package/dist/esm/queries/QueryOrigin.d.ts +8 -0
  373. package/dist/esm/queries/QueryOrigin.d.ts.map +1 -0
  374. package/dist/esm/queries/QueryOrigin.js +10 -0
  375. package/dist/esm/queries/QueryOrigin.js.map +1 -0
  376. package/dist/esm/queries/QueryOriginKind.d.ts +5 -0
  377. package/dist/esm/queries/QueryOriginKind.d.ts.map +1 -0
  378. package/dist/esm/queries/QueryOriginKind.js +12 -0
  379. package/dist/esm/queries/QueryOriginKind.js.map +1 -0
  380. package/dist/esm/queries/QueryParameter.d.ts +7 -0
  381. package/dist/esm/queries/QueryParameter.d.ts.map +1 -0
  382. package/dist/esm/queries/QueryParameter.js +12 -0
  383. package/dist/esm/queries/QueryParameter.js.map +1 -0
  384. package/dist/esm/queries/QueryResultBinding.d.ts +6 -0
  385. package/dist/esm/queries/QueryResultBinding.d.ts.map +1 -0
  386. package/dist/esm/queries/QueryResultBinding.js +11 -0
  387. package/dist/esm/queries/QueryResultBinding.js.map +1 -0
  388. package/dist/esm/queries/QueryResultField.d.ts +7 -0
  389. package/dist/esm/queries/QueryResultField.d.ts.map +1 -0
  390. package/dist/esm/queries/QueryResultField.js +12 -0
  391. package/dist/esm/queries/QueryResultField.js.map +1 -0
  392. package/dist/esm/queries/QueryResultShape.d.ts +6 -0
  393. package/dist/esm/queries/QueryResultShape.d.ts.map +1 -0
  394. package/dist/esm/queries/QueryResultShape.js +14 -0
  395. package/dist/esm/queries/QueryResultShape.js.map +1 -0
  396. package/dist/esm/queries/index.d.ts +10 -0
  397. package/dist/esm/queries/index.d.ts.map +1 -0
  398. package/dist/esm/queries/index.js +10 -0
  399. package/dist/esm/queries/index.js.map +1 -0
  400. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  401. package/editing/AddCollectionItemEdit.ts +21 -0
  402. package/editing/ChangeLayoutTypeEdit.ts +22 -0
  403. package/editing/DiagnosticCode.ts +58 -0
  404. package/editing/DiagnosticSeverity.ts +11 -0
  405. package/editing/EditCollectionItemEdit.ts +23 -0
  406. package/editing/EditTarget.ts +13 -0
  407. package/editing/EditingScope.ts +24 -0
  408. package/editing/EditingScopeKind.ts +12 -0
  409. package/editing/EffectiveCollectionItem.ts +18 -0
  410. package/editing/EffectiveComponentConfiguration.ts +26 -0
  411. package/editing/EffectiveConfiguration.ts +23 -0
  412. package/editing/EffectivePropertyValue.ts +31 -0
  413. package/editing/ExposePropertyEdit.ts +18 -0
  414. package/editing/InsertNodeEdit.ts +30 -0
  415. package/editing/InspectedCollectionItem.ts +18 -0
  416. package/editing/InspectedProperty.ts +43 -0
  417. package/editing/MoveNodeEdit.ts +19 -0
  418. package/editing/NodeInspection.ts +46 -0
  419. package/editing/NodeProvenance.ts +16 -0
  420. package/editing/ProvenanceKind.ts +16 -0
  421. package/editing/RemoveCollectionItemEdit.ts +17 -0
  422. package/editing/RemoveNodeEdit.ts +14 -0
  423. package/editing/ReorderCollectionItemEdit.ts +20 -0
  424. package/editing/ResetInstanceValueEdit.ts +17 -0
  425. package/editing/ResetPropertyEdit.ts +15 -0
  426. package/editing/SceneDiagnostic.ts +34 -0
  427. package/editing/SceneDocument.ts +32 -0
  428. package/editing/SceneEdit.ts +36 -0
  429. package/editing/SceneEditKind.ts +23 -0
  430. package/editing/SceneNodeKind.ts +27 -0
  431. package/editing/SetInstanceValueEdit.ts +19 -0
  432. package/editing/SetPropertyEdit.ts +18 -0
  433. package/editing/UnexposePropertyEdit.ts +16 -0
  434. package/editing/ValueSource.ts +16 -0
  435. package/editing/index.ts +37 -0
  436. package/exposure/ContributedItem.ts +15 -0
  437. package/exposure/ExposedProperty.ts +46 -0
  438. package/exposure/ExposureDeclaration.ts +16 -0
  439. package/exposure/InstanceContribution.ts +36 -0
  440. package/exposure/index.ts +7 -0
  441. package/index.ts +4 -0
  442. package/package.json +3 -2
  443. package/queries/QueryArgumentBinding.ts +17 -0
  444. package/queries/QueryBinding.ts +22 -0
  445. package/queries/QueryCandidate.ts +37 -0
  446. package/queries/QueryOrigin.ts +18 -0
  447. package/queries/QueryOriginKind.ts +13 -0
  448. package/queries/QueryParameter.ts +16 -0
  449. package/queries/QueryResultBinding.ts +15 -0
  450. package/queries/QueryResultField.ts +17 -0
  451. package/queries/QueryResultShape.ts +17 -0
  452. package/queries/index.ts +12 -0
  453. package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.d.ts +0 -2
  454. package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.d.ts.map +0 -1
  455. package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.js +0 -22
  456. package/dist/esm/for_shape/when_checking_the_mirror_matches_the_shared_manifest.js.map +0 -1
  457. package/for_shape/when_checking_the_mirror_matches_the_shared_manifest.ts +0 -32
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyConstraints.js","sources":["../../../descriptors/PropertyConstraints.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 { QueryResultShape } from '../queries';\n\n/**\n * The limits a property's value has to stay within. Every limit is optional; an absent one means no limit.\n */\nexport interface PropertyConstraints {\n /** The property must have a value. */\n required?: boolean;\n\n /** The smallest allowed number. */\n minimum?: number;\n\n /** The largest allowed number. */\n maximum?: number;\n\n /** The number must be a whole number. */\n integer?: boolean;\n\n minimumLength?: number;\n maximumLength?: number;\n\n /** A regular expression a string must match in full. */\n pattern?: string;\n\n /** The fewest items a collection may hold. */\n minimumItems?: number;\n\n /** The most items a collection may hold. */\n maximumItems?: number;\n\n /** For a `QueryReference`: the result shapes the component can bind to. Absent means any. */\n resultShapes?: `${QueryResultShape}`[];\n}\n\nexport const PropertyConstraintsPropertyNames: (keyof PropertyConstraints)[] = [\n 'required', 'minimum', 'maximum', 'integer', 'minimumLength', 'maximumLength', 'pattern',\n 'minimumItems', 'maximumItems', 'resultShapes',\n];\n"],"names":["PropertyConstraintsPropertyNames"],"mappings":";;AAAA;AACA;MAoCaA,gCAAAA,GAAkE;AAC3E,IAAA,UAAA;AAAY,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,eAAA;AAAiB,IAAA,eAAA;AAAiB,IAAA,SAAA;AAC/E,IAAA,cAAA;AAAgB,IAAA,cAAA;AAAgB,IAAA;;;"}
@@ -0,0 +1,20 @@
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 PropertyDescriptorPropertyNames = [
6
+ 'path',
7
+ 'label',
8
+ 'group',
9
+ 'valueType',
10
+ 'choices',
11
+ 'default',
12
+ 'constraints',
13
+ 'editorKind',
14
+ 'description',
15
+ 'item',
16
+ 'readOnly'
17
+ ];
18
+
19
+ exports.PropertyDescriptorPropertyNames = PropertyDescriptorPropertyNames;
20
+ //# sourceMappingURL=PropertyDescriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyDescriptor.js","sources":["../../../descriptors/PropertyDescriptor.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 { CollectionItemDescriptor } from './CollectionItemDescriptor';\nimport { PropertyChoice } from './PropertyChoice';\nimport { PropertyConstraints } from './PropertyConstraints';\nimport { PropertyValueType } from './PropertyValueType';\n\n/**\n * Describes one editable property of a node: where it lives, what it is called, what it may hold and how a host\n * should edit it. A descriptor is plain data, so packages ship them and Studio reads them without loading a\n * component.\n */\nexport interface PropertyDescriptor {\n /**\n * Where the value lives. For an `ExternalComponent` it is a key (or dotted key path) in the element's\n * `properties` bag; for a model-native node such as a flow container it is the node's own property name.\n */\n path: string;\n\n /** The label an editor shows. */\n label: string;\n\n /** The editor section the property belongs to. */\n group: string;\n\n valueType: PropertyValueType;\n\n /** The allowed values of an `Enum` property. */\n choices?: PropertyChoice[];\n\n /** The value in effect when none is set. */\n default?: unknown;\n\n constraints?: PropertyConstraints;\n\n /**\n * Names a specialised editor. A host maps the name to its own editor - an icon picker, a query binder - and\n * falls back to the default editor for `valueType` when it does not know the name.\n */\n editorKind?: string;\n\n /** A sentence of help for the editor. */\n description?: string;\n\n /** Describes the items of a `Collection` property. Required when `valueType` is `Collection`. */\n item?: CollectionItemDescriptor;\n\n /** The value is shown but never edited. */\n readOnly?: boolean;\n}\n\nexport const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[] = [\n 'path', 'label', 'group', 'valueType', 'choices', 'default', 'constraints', 'editorKind', 'description', 'item', 'readOnly',\n];\n"],"names":["PropertyDescriptorPropertyNames"],"mappings":";;AAAA;AACA;MAmDaA,+BAAAA,GAAgE;AACzE,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA,WAAA;AAAa,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,aAAA;AAAe,IAAA,YAAA;AAAc,IAAA,aAAA;AAAe,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,22 @@
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 kind of value a property holds. It decides what a value must look like to be accepted, and gives a host a
7
+ * default editor to show - unless the descriptor names a specialised `editorKind`.
8
+ */ var PropertyValueType = /*#__PURE__*/ function(PropertyValueType) {
9
+ PropertyValueType["String"] = "string";
10
+ PropertyValueType["Number"] = "number";
11
+ PropertyValueType["Boolean"] = "boolean";
12
+ /** One of the descriptor's `choices`. */ PropertyValueType["Enum"] = "enum";
13
+ /** An {@link IconReference}. The icon catalog is owned by the icon libraries, not by the model. */ PropertyValueType["Icon"] = "icon";
14
+ /** A {@link DestinationReference}. */ PropertyValueType["Destination"] = "destination";
15
+ /** A {@link QueryBinding}. */ PropertyValueType["QueryReference"] = "queryReference";
16
+ /** An ordered list of items, each described by the descriptor's `item`. */ PropertyValueType["Collection"] = "collection";
17
+ /** A structured value the descriptor's own `editorKind` knows how to edit. */ PropertyValueType["Object"] = "object";
18
+ return PropertyValueType;
19
+ }({});
20
+
21
+ exports.PropertyValueType = PropertyValueType;
22
+ //# sourceMappingURL=PropertyValueType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PropertyValueType.js","sources":["../../../descriptors/PropertyValueType.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 kind of value a property holds. It decides what a value must look like to be accepted, and gives a host a\n * default editor to show - unless the descriptor names a specialised `editorKind`.\n */\nexport enum PropertyValueType {\n String = 'string',\n Number = 'number',\n Boolean = 'boolean',\n\n /** One of the descriptor's `choices`. */\n Enum = 'enum',\n\n /** An {@link IconReference}. The icon catalog is owned by the icon libraries, not by the model. */\n Icon = 'icon',\n\n /** A {@link DestinationReference}. */\n Destination = 'destination',\n\n /** A {@link QueryBinding}. */\n QueryReference = 'queryReference',\n\n /** An ordered list of items, each described by the descriptor's `item`. */\n Collection = 'collection',\n\n /** A structured value the descriptor's own `editorKind` knows how to edit. */\n Object = 'object',\n}\n"],"names":["PropertyValueType"],"mappings":";;AAAA;AACA;AAEA;;;IAIO,IAAKA,iBAAAA,iBAAAA,SAAAA,iBAAAA,EAAAA;;;;8CAK+B,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;wGAG0D,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;2CAG7D,iBAAA,CAAA,aAAA,CAAA,GAAA,aAAA;mCAGR,iBAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;gFAG6C,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAA;mFAGG,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AApBpEA,IAAAA,OAAAA,iBAAAA;AAsBX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,15 @@
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 AddCollectionItemEditPropertyNames = [
6
+ 'kind',
7
+ 'instance',
8
+ 'component',
9
+ 'path',
10
+ 'item',
11
+ 'index'
12
+ ];
13
+
14
+ exports.AddCollectionItemEditPropertyNames = AddCollectionItemEditPropertyNames;
15
+ //# sourceMappingURL=AddCollectionItemEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddCollectionItemEdit.js","sources":["../../../editing/AddCollectionItemEdit.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 { ContributedItem } from '../exposure';\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Adds an item to an exposed collection from a template instance.\n */\nexport interface AddCollectionItemEdit {\n kind: SceneEditKind.AddCollectionItem;\n instance?: string;\n component: string;\n path: string;\n item: ContributedItem;\n\n /** Where among the instance's own items. Absent appends. */\n index?: number;\n}\n\nexport const AddCollectionItemEditPropertyNames: (keyof AddCollectionItemEdit)[] = ['kind', 'instance', 'component', 'path', 'item', 'index'];\n"],"names":["AddCollectionItemEditPropertyNames"],"mappings":";;AAAA;AACA;MAmBaA,kCAAAA,GAAsE;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,13 @@
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 ChangeLayoutTypeEditPropertyNames = [
6
+ 'kind',
7
+ 'nodeId',
8
+ 'to',
9
+ 'acceptLoss'
10
+ ];
11
+
12
+ exports.ChangeLayoutTypeEditPropertyNames = ChangeLayoutTypeEditPropertyNames;
13
+ //# sourceMappingURL=ChangeLayoutTypeEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChangeLayoutTypeEdit.js","sources":["../../../editing/ChangeLayoutTypeEdit.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 { LayoutType } from '../descriptors';\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Changes a layout node into another layout type, keeping its children.\n */\nexport interface ChangeLayoutTypeEdit {\n kind: SceneEditKind.ChangeLayoutType;\n nodeId: string;\n to: `${LayoutType}`;\n\n /**\n * Whether the author has seen what the conversion drops and accepts it. Without it a lossy conversion is\n * refused with a diagnostic naming what would be lost.\n */\n acceptLoss?: boolean;\n}\n\nexport const ChangeLayoutTypeEditPropertyNames: (keyof ChangeLayoutTypeEdit)[] = ['kind', 'nodeId', 'to', 'acceptLoss'];\n"],"names":["ChangeLayoutTypeEditPropertyNames"],"mappings":";;AAAA;AACA;MAoBaA,iCAAAA,GAAoE;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,IAAA;AAAM,IAAA;;;"}
@@ -0,0 +1,57 @@
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 reasons inspection, editing, binding validation and configuration resolution report a problem. A host
7
+ * switches on the code; the message is for a person.
8
+ */ var DiagnosticCode = /*#__PURE__*/ function(DiagnosticCode) {
9
+ // Addressing
10
+ DiagnosticCode["UnknownNode"] = "unknownNode";
11
+ DiagnosticCode["DuplicateElementId"] = "duplicateElementId";
12
+ DiagnosticCode["UnknownScope"] = "unknownScope";
13
+ DiagnosticCode["InvalidEdit"] = "invalidEdit";
14
+ // Properties
15
+ DiagnosticCode["UnknownProperty"] = "unknownProperty";
16
+ DiagnosticCode["InvalidValue"] = "invalidValue";
17
+ DiagnosticCode["ReadOnlyProperty"] = "readOnlyProperty";
18
+ DiagnosticCode["NodeNotEditable"] = "nodeNotEditable";
19
+ DiagnosticCode["MissingComponentDescriptor"] = "missingComponentDescriptor";
20
+ // Layout
21
+ DiagnosticCode["NotALayoutNode"] = "notALayoutNode";
22
+ DiagnosticCode["LayoutTypeNotConvertible"] = "layoutTypeNotConvertible";
23
+ DiagnosticCode["LossyConversionNotAccepted"] = "lossyConversionNotAccepted";
24
+ DiagnosticCode["LossyConversion"] = "lossyConversion";
25
+ // Structure
26
+ DiagnosticCode["TargetDoesNotAcceptChildren"] = "targetDoesNotAcceptChildren";
27
+ DiagnosticCode["UnknownSlot"] = "unknownSlot";
28
+ DiagnosticCode["ContainmentCycle"] = "containmentCycle";
29
+ DiagnosticCode["IndexOutOfRange"] = "indexOutOfRange";
30
+ DiagnosticCode["ElementIdInUse"] = "elementIdInUse";
31
+ DiagnosticCode["MaximumChildrenExceeded"] = "maximumChildrenExceeded";
32
+ DiagnosticCode["NodeNotRemovable"] = "nodeNotRemovable";
33
+ // Query binding
34
+ DiagnosticCode["MissingQuery"] = "missingQuery";
35
+ DiagnosticCode["IncompatibleResultShape"] = "incompatibleResultShape";
36
+ DiagnosticCode["MissingRequiredParameter"] = "missingRequiredParameter";
37
+ DiagnosticCode["UnknownParameter"] = "unknownParameter";
38
+ DiagnosticCode["ArgumentTypeMismatch"] = "argumentTypeMismatch";
39
+ DiagnosticCode["UnresolvedArgumentSource"] = "unresolvedArgumentSource";
40
+ DiagnosticCode["UnknownResultField"] = "unknownResultField";
41
+ // Exposure and instance configuration
42
+ DiagnosticCode["ExposureTargetMissing"] = "exposureTargetMissing";
43
+ DiagnosticCode["ExposureWidensOwner"] = "exposureWidensOwner";
44
+ DiagnosticCode["ReExposureBroken"] = "reExposureBroken";
45
+ DiagnosticCode["ContributionNotExposed"] = "contributionNotExposed";
46
+ DiagnosticCode["ContributionTargetMissing"] = "contributionTargetMissing";
47
+ DiagnosticCode["ContributionTypeMismatch"] = "contributionTypeMismatch";
48
+ DiagnosticCode["ContributionOperationNotPermitted"] = "contributionOperationNotPermitted";
49
+ DiagnosticCode["UnknownCollectionField"] = "unknownCollectionField";
50
+ DiagnosticCode["CollectionItemNotFound"] = "collectionItemNotFound";
51
+ DiagnosticCode["DuplicateCollectionItem"] = "duplicateCollectionItem";
52
+ DiagnosticCode["UnknownInstance"] = "unknownInstance";
53
+ return DiagnosticCode;
54
+ }({});
55
+
56
+ exports.DiagnosticCode = DiagnosticCode;
57
+ //# sourceMappingURL=DiagnosticCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiagnosticCode.js","sources":["../../../editing/DiagnosticCode.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 reasons inspection, editing, binding validation and configuration resolution report a problem. A host\n * switches on the code; the message is for a person.\n */\nexport enum DiagnosticCode {\n // Addressing\n UnknownNode = 'unknownNode',\n DuplicateElementId = 'duplicateElementId',\n UnknownScope = 'unknownScope',\n InvalidEdit = 'invalidEdit',\n\n // Properties\n UnknownProperty = 'unknownProperty',\n InvalidValue = 'invalidValue',\n ReadOnlyProperty = 'readOnlyProperty',\n NodeNotEditable = 'nodeNotEditable',\n MissingComponentDescriptor = 'missingComponentDescriptor',\n\n // Layout\n NotALayoutNode = 'notALayoutNode',\n LayoutTypeNotConvertible = 'layoutTypeNotConvertible',\n LossyConversionNotAccepted = 'lossyConversionNotAccepted',\n LossyConversion = 'lossyConversion',\n\n // Structure\n TargetDoesNotAcceptChildren = 'targetDoesNotAcceptChildren',\n UnknownSlot = 'unknownSlot',\n ContainmentCycle = 'containmentCycle',\n IndexOutOfRange = 'indexOutOfRange',\n ElementIdInUse = 'elementIdInUse',\n MaximumChildrenExceeded = 'maximumChildrenExceeded',\n NodeNotRemovable = 'nodeNotRemovable',\n\n // Query binding\n MissingQuery = 'missingQuery',\n IncompatibleResultShape = 'incompatibleResultShape',\n MissingRequiredParameter = 'missingRequiredParameter',\n UnknownParameter = 'unknownParameter',\n ArgumentTypeMismatch = 'argumentTypeMismatch',\n UnresolvedArgumentSource = 'unresolvedArgumentSource',\n UnknownResultField = 'unknownResultField',\n\n // Exposure and instance configuration\n ExposureTargetMissing = 'exposureTargetMissing',\n ExposureWidensOwner = 'exposureWidensOwner',\n ReExposureBroken = 'reExposureBroken',\n ContributionNotExposed = 'contributionNotExposed',\n ContributionTargetMissing = 'contributionTargetMissing',\n ContributionTypeMismatch = 'contributionTypeMismatch',\n ContributionOperationNotPermitted = 'contributionOperationNotPermitted',\n UnknownCollectionField = 'unknownCollectionField',\n CollectionItemNotFound = 'collectionItemNotFound',\n DuplicateCollectionItem = 'duplicateCollectionItem',\n UnknownInstance = 'unknownInstance',\n}\n"],"names":["DiagnosticCode"],"mappings":";;AAAA;AACA;AAEA;;;IAIO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,IAAAA,OAAAA,cAAAA;AAkDX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,15 @@
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 serious a diagnostic is. An edit with an `Error` is refused; a `Warning` is reported and the edit goes
7
+ * ahead.
8
+ */ var DiagnosticSeverity = /*#__PURE__*/ function(DiagnosticSeverity) {
9
+ DiagnosticSeverity["Error"] = "error";
10
+ DiagnosticSeverity["Warning"] = "warning";
11
+ return DiagnosticSeverity;
12
+ }({});
13
+
14
+ exports.DiagnosticSeverity = DiagnosticSeverity;
15
+ //# sourceMappingURL=DiagnosticSeverity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DiagnosticSeverity.js","sources":["../../../editing/DiagnosticSeverity.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 serious a diagnostic is. An edit with an `Error` is refused; a `Warning` is reported and the edit goes\n * ahead.\n */\nexport enum DiagnosticSeverity {\n Error = 'error',\n Warning = 'warning',\n}\n"],"names":["DiagnosticSeverity"],"mappings":";;AAAA;AACA;AAEA;;;IAIO,IAAKA,kBAAAA,iBAAAA,SAAAA,kBAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,kBAAAA;AAGX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,16 @@
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 EditCollectionItemEditPropertyNames = [
6
+ 'kind',
7
+ 'instance',
8
+ 'component',
9
+ 'path',
10
+ 'itemId',
11
+ 'field',
12
+ 'value'
13
+ ];
14
+
15
+ exports.EditCollectionItemEditPropertyNames = EditCollectionItemEditPropertyNames;
16
+ //# sourceMappingURL=EditCollectionItemEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditCollectionItemEdit.js","sources":["../../../editing/EditCollectionItemEdit.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 { SceneEditKind } from './SceneEditKind';\n\n/**\n * Changes one field of an item an instance contributed.\n */\nexport interface EditCollectionItemEdit {\n kind: SceneEditKind.EditCollectionItem;\n instance?: string;\n component: string;\n path: string;\n itemId: string;\n\n /** The item field, as the collection's item descriptor states it. */\n field: string;\n value: unknown;\n}\n\nexport const EditCollectionItemEditPropertyNames: (keyof EditCollectionItemEdit)[] = [\n 'kind', 'instance', 'component', 'path', 'itemId', 'field', 'value',\n];\n"],"names":["EditCollectionItemEditPropertyNames"],"mappings":";;AAAA;AACA;MAmBaA,mCAAAA,GAAwE;AACjF,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,OAAA;AAAS,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
+ /**
6
+ * Where an edit of a property goes.
7
+ */ var EditTarget = /*#__PURE__*/ function(EditTarget) {
8
+ /** The node itself. */ EditTarget["Node"] = "node";
9
+ /** An instance contribution, because the node is inherited and the property is exposed. */ EditTarget["Instance"] = "instance";
10
+ return EditTarget;
11
+ }({});
12
+
13
+ exports.EditTarget = EditTarget;
14
+ //# sourceMappingURL=EditTarget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditTarget.js","sources":["../../../editing/EditTarget.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 * Where an edit of a property goes.\n */\nexport enum EditTarget {\n /** The node itself. */\n Node = 'node',\n\n /** An instance contribution, because the node is inherited and the property is exposed. */\n Instance = 'instance',\n}\n"],"names":["EditTarget"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,UAAAA,iBAAAA,SAAAA,UAAAA,EAAAA;4BACa,UAAA,CAAA,MAAA,CAAA,GAAA,MAAA;gGAGoE,UAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AAJjFA,IAAAA,OAAAA,UAAAA;AAMX,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 EditingScopePropertyNames = [
6
+ 'kind',
7
+ 'name',
8
+ 'layout'
9
+ ];
10
+
11
+ exports.EditingScopePropertyNames = EditingScopePropertyNames;
12
+ //# sourceMappingURL=EditingScope.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditingScope.js","sources":["../../../editing/EditingScope.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 { EditingScopeKind } from './EditingScopeKind';\n\n/**\n * The thing being edited. What it owns is local and editable; what an outer layout or template owns is inherited,\n * and can only be configured through what that owner exposed.\n */\nexport interface EditingScope {\n kind: `${EditingScopeKind}`;\n\n /** The name of the screen, template or layout. */\n name: string;\n\n /**\n * For a template scope: the name of the layout the template ultimately sits in. A template does not say\n * which layout it belongs to, so a document with several layouts needs to be told. A screen scope reads it\n * from the screen itself.\n */\n layout?: string;\n}\n\nexport const EditingScopePropertyNames: (keyof EditingScope)[] = ['kind', 'name', 'layout'];\n"],"names":["EditingScopePropertyNames"],"mappings":";;AAAA;AACA;MAsBaA,yBAAAA,GAAoD;AAAC,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,16 @@
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
+ * What is being edited. It decides what counts as local and what is inherited.
7
+ */ var EditingScopeKind = /*#__PURE__*/ function(EditingScopeKind) {
8
+ EditingScopeKind["Screen"] = "screen";
9
+ EditingScopeKind["ScreenTemplate"] = "screenTemplate";
10
+ EditingScopeKind["DialogTemplate"] = "dialogTemplate";
11
+ EditingScopeKind["Layout"] = "layout";
12
+ return EditingScopeKind;
13
+ }({});
14
+
15
+ exports.EditingScopeKind = EditingScopeKind;
16
+ //# sourceMappingURL=EditingScopeKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EditingScopeKind.js","sources":["../../../editing/EditingScopeKind.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 * What is being edited. It decides what counts as local and what is inherited.\n */\nexport enum EditingScopeKind {\n Screen = 'screen',\n ScreenTemplate = 'screenTemplate',\n DialogTemplate = 'dialogTemplate',\n Layout = 'layout',\n}\n"],"names":["EditingScopeKind"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,gBAAAA,iBAAAA,SAAAA,gBAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,gBAAAA;AAKX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,15 @@
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
+ * One item of a collection after the owner's items and every instance's contributed items are put together.
7
+ */ const EffectiveCollectionItemPropertyNames = [
8
+ 'id',
9
+ 'values',
10
+ 'origin',
11
+ 'fixed'
12
+ ];
13
+
14
+ exports.EffectiveCollectionItemPropertyNames = EffectiveCollectionItemPropertyNames;
15
+ //# sourceMappingURL=EffectiveCollectionItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EffectiveCollectionItem.js","sources":["../../../editing/EffectiveCollectionItem.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 * One item of a collection after the owner's items and every instance's contributed items are put together.\n */\nexport interface EffectiveCollectionItem {\n id: string;\n values: Record<string, unknown>;\n\n /** `owner` for an item the template author wrote; otherwise the id of the instance that contributed it. */\n origin: string;\n\n /** An owner's item. Consumers cannot change or remove it. */\n fixed: boolean;\n}\n\nexport const EffectiveCollectionItemPropertyNames: (keyof EffectiveCollectionItem)[] = ['id', 'values', 'origin', 'fixed'];\n"],"names":["EffectiveCollectionItemPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;UAcaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,QAAA;AAAU,IAAA,QAAA;AAAU,IAAA;;;"}
@@ -0,0 +1,13 @@
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 EffectiveComponentConfigurationPropertyNames = [
6
+ 'component',
7
+ 'owner',
8
+ 'properties',
9
+ 'values'
10
+ ];
11
+
12
+ exports.EffectiveComponentConfigurationPropertyNames = EffectiveComponentConfigurationPropertyNames;
13
+ //# sourceMappingURL=EffectiveComponentConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EffectiveComponentConfiguration.js","sources":["../../../editing/EffectiveComponentConfiguration.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 { EffectivePropertyValue } from './EffectivePropertyValue';\n\n/**\n * The resolved configuration of one component: the full property bag a renderer should use, and a record per\n * exposed property of where it came from.\n */\nexport interface EffectiveComponentConfiguration {\n /** The id of the element. */\n component: string;\n\n /** The name of the layout or template that owns the element. */\n owner: string;\n\n /** The element's `properties` with every valid contribution applied. */\n properties: Record<string, unknown>;\n\n /** One entry per exposed property. */\n values: EffectivePropertyValue[];\n}\n\nexport const EffectiveComponentConfigurationPropertyNames: (keyof EffectiveComponentConfiguration)[] = [\n 'component', 'owner', 'properties', 'values',\n];\n"],"names":["EffectiveComponentConfigurationPropertyNames"],"mappings":";;AAAA;AACA;MAsBaA,4CAAAA,GAA0F;AACnG,IAAA,WAAA;AAAa,IAAA,OAAA;AAAS,IAAA,YAAA;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 EffectiveConfigurationPropertyNames = [
6
+ 'components',
7
+ 'diagnostics'
8
+ ];
9
+
10
+ exports.EffectiveConfigurationPropertyNames = EffectiveConfigurationPropertyNames;
11
+ //# sourceMappingURL=EffectiveConfiguration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EffectiveConfiguration.js","sources":["../../../editing/EffectiveConfiguration.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 { EffectiveComponentConfiguration } from './EffectiveComponentConfiguration';\nimport { SceneDiagnostic } from './SceneDiagnostic';\n\n/**\n * The outcome of resolving a template chain and its instances' contributions. The runtime renders from this, and\n * the editor shows it - the same data, so what the editor shows is what Play renders.\n */\nexport interface EffectiveConfiguration {\n /** Every configurable component in the chain. Components nothing is exposed on are absent. */\n components: EffectiveComponentConfiguration[];\n\n /**\n * What went wrong: an exposure that no longer matches its component, a contribution to something no longer\n * exposed, a saved value whose type changed. The affected contributions are ignored in `components` and left\n * in the persisted data, so restoring the exposure brings the values back.\n */\n diagnostics: SceneDiagnostic[];\n}\n\nexport const EffectiveConfigurationPropertyNames: (keyof EffectiveConfiguration)[] = ['components', 'diagnostics'];\n"],"names":["EffectiveConfigurationPropertyNames"],"mappings":";;AAAA;AACA;MAqBaA,mCAAAA,GAAwE;AAAC,IAAA,YAAA;AAAc,IAAA;;;"}
@@ -0,0 +1,15 @@
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 EffectivePropertyValuePropertyNames = [
6
+ 'path',
7
+ 'value',
8
+ 'source',
9
+ 'inheritedValue',
10
+ 'contributedBy',
11
+ 'items'
12
+ ];
13
+
14
+ exports.EffectivePropertyValuePropertyNames = EffectivePropertyValuePropertyNames;
15
+ //# sourceMappingURL=EffectivePropertyValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EffectivePropertyValue.js","sources":["../../../editing/EffectivePropertyValue.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 { EffectiveCollectionItem } from './EffectiveCollectionItem';\nimport { ValueSource } from './ValueSource';\n\n/**\n * One property's value after configuration is resolved, with enough to show where it came from and what\n * resetting it would give back.\n */\nexport interface EffectivePropertyValue {\n path: string;\n\n /** What the property is worth now. */\n value: unknown;\n\n source: `${ValueSource}`;\n\n /** What the property would be worth with every instance contribution removed. */\n inheritedValue: unknown;\n\n /** The instance that set `value`, when `source` is `instance`. */\n contributedBy?: string;\n\n /** For a collection: the items, owner's first. */\n items?: EffectiveCollectionItem[];\n}\n\nexport const EffectivePropertyValuePropertyNames: (keyof EffectivePropertyValue)[] = [\n 'path', 'value', 'source', 'inheritedValue', 'contributedBy', 'items',\n];\n"],"names":["EffectivePropertyValuePropertyNames"],"mappings":";;AAAA;AACA;MA2BaA,mCAAAA,GAAwE;AACjF,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,QAAA;AAAU,IAAA,gBAAA;AAAkB,IAAA,eAAA;AAAiB,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 ExposePropertyEditPropertyNames = [
6
+ 'kind',
7
+ 'owner',
8
+ 'property'
9
+ ];
10
+
11
+ exports.ExposePropertyEditPropertyNames = ExposePropertyEditPropertyNames;
12
+ //# sourceMappingURL=ExposePropertyEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExposePropertyEdit.js","sources":["../../../editing/ExposePropertyEdit.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 { ExposedProperty } from '../exposure';\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Exposes a property on a layout or template, or changes how it is exposed.\n */\nexport interface ExposePropertyEdit {\n kind: SceneEditKind.ExposeProperty;\n\n /** The layout or template making the declaration. */\n owner: string;\n property: ExposedProperty;\n}\n\nexport const ExposePropertyEditPropertyNames: (keyof ExposePropertyEdit)[] = ['kind', 'owner', 'property'];\n"],"names":["ExposePropertyEditPropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,+BAAAA,GAAgE;AAAC,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA;;;"}
@@ -0,0 +1,15 @@
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 InsertNodeEditPropertyNames = [
6
+ 'kind',
7
+ 'target',
8
+ 'slot',
9
+ 'index',
10
+ 'element',
11
+ 'flowNode'
12
+ ];
13
+
14
+ exports.InsertNodeEditPropertyNames = InsertNodeEditPropertyNames;
15
+ //# sourceMappingURL=InsertNodeEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InsertNodeEdit.js","sources":["../../../editing/InsertNodeEdit.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 { FlowNode } from '../layouts';\nimport { SceneElement } from '../elements';\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Inserts a new element - or, into a flow container, a new flow node - under a target.\n *\n * The target is a slot node, an element (an `ExternalComponent` with `slot`, or a panel) or a flow container.\n * Exactly one of `element` and `flowNode` is given.\n */\nexport interface InsertNodeEdit {\n kind: SceneEditKind.InsertNode;\n\n /** The id of the node to insert under. */\n target: string;\n\n /** The named slot of an `ExternalComponent` target to insert into. */\n slot?: string;\n\n /** Where among the target's children. Absent appends. */\n index?: number;\n\n element?: SceneElement;\n flowNode?: FlowNode;\n}\n\nexport const InsertNodeEditPropertyNames: (keyof InsertNodeEdit)[] = ['kind', 'target', 'slot', 'index', 'element', 'flowNode'];\n"],"names":["InsertNodeEditPropertyNames"],"mappings":";;AAAA;AACA;MA4BaA,2BAAAA,GAAwD;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,SAAA;AAAW,IAAA;;;"}
@@ -0,0 +1,15 @@
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
+ * One item of an inspected collection.
7
+ */ const InspectedCollectionItemPropertyNames = [
8
+ 'id',
9
+ 'values',
10
+ 'origin',
11
+ 'editable'
12
+ ];
13
+
14
+ exports.InspectedCollectionItemPropertyNames = InspectedCollectionItemPropertyNames;
15
+ //# sourceMappingURL=InspectedCollectionItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InspectedCollectionItem.js","sources":["../../../editing/InspectedCollectionItem.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 * One item of an inspected collection.\n */\nexport interface InspectedCollectionItem {\n id: string;\n values: Record<string, unknown>;\n\n /** `owner` for the template author's item; otherwise the contributing instance. */\n origin: string;\n\n /** Whether the editing scope may change or remove this item. */\n editable: boolean;\n}\n\nexport const InspectedCollectionItemPropertyNames: (keyof InspectedCollectionItem)[] = ['id', 'values', 'origin', 'editable'];\n"],"names":["InspectedCollectionItemPropertyNames"],"mappings":";;AAAA;AACA;AAEA;;UAcaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,QAAA;AAAU,IAAA,QAAA;AAAU,IAAA;;;"}
@@ -0,0 +1,18 @@
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 InspectedPropertyPropertyNames = [
6
+ 'descriptor',
7
+ 'currentValue',
8
+ 'effectiveValue',
9
+ 'source',
10
+ 'editable',
11
+ 'editTarget',
12
+ 'reason',
13
+ 'operations',
14
+ 'items'
15
+ ];
16
+
17
+ exports.InspectedPropertyPropertyNames = InspectedPropertyPropertyNames;
18
+ //# sourceMappingURL=InspectedProperty.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InspectedProperty.js","sources":["../../../editing/InspectedProperty.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 { CollectionOperation, PropertyDescriptor } from '../descriptors';\nimport { EditTarget } from './EditTarget';\nimport { InspectedCollectionItem } from './InspectedCollectionItem';\nimport { ValueSource } from './ValueSource';\n\n/**\n * One property of an inspected node: its descriptor, its current and effective values, and whether - and\n * through what - the editing scope can change it.\n */\nexport interface InspectedProperty {\n descriptor: PropertyDescriptor;\n\n /** The value stored on the node, or `undefined` when none is. */\n currentValue: unknown;\n\n /** What the property is worth after defaults and instance contributions. */\n effectiveValue: unknown;\n\n /** Where `effectiveValue` came from. */\n source: `${ValueSource}`;\n\n /** Whether the editing scope can change the property at all. */\n editable: boolean;\n\n /** Where an edit goes. Absent when the property is not editable. */\n editTarget?: `${EditTarget}`;\n\n /** Why the property is not editable. */\n reason?: string;\n\n /** For an exposed collection: what the editing scope may do with it. */\n operations?: CollectionOperation[];\n\n /** For a collection: the items, owner's first. */\n items?: InspectedCollectionItem[];\n}\n\nexport const InspectedPropertyPropertyNames: (keyof InspectedProperty)[] = [\n 'descriptor', 'currentValue', 'effectiveValue', 'source', 'editable', 'editTarget', 'reason', 'operations', 'items',\n];\n"],"names":["InspectedPropertyPropertyNames"],"mappings":";;AAAA;AACA;MAuCaA,8BAAAA,GAA8D;AACvE,IAAA,YAAA;AAAc,IAAA,cAAA;AAAgB,IAAA,gBAAA;AAAkB,IAAA,QAAA;AAAU,IAAA,UAAA;AAAY,IAAA,YAAA;AAAc,IAAA,QAAA;AAAU,IAAA,YAAA;AAAc,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 MoveNodeEditPropertyNames = [
6
+ 'kind',
7
+ 'nodeId',
8
+ 'target',
9
+ 'slot',
10
+ 'index'
11
+ ];
12
+
13
+ exports.MoveNodeEditPropertyNames = MoveNodeEditPropertyNames;
14
+ //# sourceMappingURL=MoveNodeEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MoveNodeEdit.js","sources":["../../../editing/MoveNodeEdit.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 { SceneEditKind } from './SceneEditKind';\n\n/**\n * Moves a node - reordering it within its parent or reparenting it - checking containment and cycles.\n */\nexport interface MoveNodeEdit {\n kind: SceneEditKind.MoveNode;\n nodeId: string;\n\n /** The id of the node to move under. */\n target: string;\n slot?: string;\n index?: number;\n}\n\nexport const MoveNodeEditPropertyNames: (keyof MoveNodeEdit)[] = ['kind', 'nodeId', 'target', 'slot', 'index'];\n"],"names":["MoveNodeEditPropertyNames"],"mappings":";;AAAA;AACA;MAiBaA,yBAAAA,GAAoD;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,19 @@
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 NodeInspectionPropertyNames = [
6
+ 'nodeId',
7
+ 'kind',
8
+ 'typeId',
9
+ 'label',
10
+ 'parentId',
11
+ 'provenance',
12
+ 'properties',
13
+ 'capabilities',
14
+ 'removable',
15
+ 'diagnostics'
16
+ ];
17
+
18
+ exports.NodeInspectionPropertyNames = NodeInspectionPropertyNames;
19
+ //# sourceMappingURL=NodeInspection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeInspection.js","sources":["../../../editing/NodeInspection.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 { LayoutCapabilities } from '../descriptors';\nimport { InspectedProperty } from './InspectedProperty';\nimport { NodeProvenance } from './NodeProvenance';\nimport { SceneDiagnostic } from './SceneDiagnostic';\nimport { SceneNodeKind } from './SceneNodeKind';\n\n/**\n * What an editor needs to know about one node: what it is, where it comes from, what can be edited on it and\n * what can be done with it.\n */\nexport interface NodeInspection {\n nodeId: string;\n kind: `${SceneNodeKind}`;\n\n /**\n * What sort of node: a {@link LayoutType} for a layout node, the component name for an element\n * that is a component, otherwise the element's kind.\n */\n typeId: string;\n\n /** A name for a tree or an inspector title. */\n label: string;\n\n /** The id of the node that contains this one, when there is one. */\n parentId?: string;\n\n provenance: NodeProvenance;\n\n /** Every property with a descriptor, with its values and editability. */\n properties: InspectedProperty[];\n\n /** For a layout node: what the layout type can do. */\n capabilities?: LayoutCapabilities;\n\n /** Whether the node can be removed or moved by the editing scope. */\n removable: boolean;\n\n diagnostics: SceneDiagnostic[];\n}\n\nexport const NodeInspectionPropertyNames: (keyof NodeInspection)[] = [\n 'nodeId', 'kind', 'typeId', 'label', 'parentId', 'provenance', 'properties', 'capabilities', 'removable', 'diagnostics',\n];\n"],"names":["NodeInspectionPropertyNames"],"mappings":";;AAAA;AACA;MA0CaA,2BAAAA,GAAwD;AACjE,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,OAAA;AAAS,IAAA,UAAA;AAAY,IAAA,YAAA;AAAc,IAAA,YAAA;AAAc,IAAA,cAAA;AAAgB,IAAA,WAAA;AAAa,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 NodeProvenancePropertyNames = [
6
+ 'kind',
7
+ 'source'
8
+ ];
9
+
10
+ exports.NodeProvenancePropertyNames = NodeProvenancePropertyNames;
11
+ //# sourceMappingURL=NodeProvenance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeProvenance.js","sources":["../../../editing/NodeProvenance.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 { ProvenanceKind } from './ProvenanceKind';\n\n/**\n * Whether a node is the editing scope's own or comes from further out, and from where.\n */\nexport interface NodeProvenance {\n kind: `${ProvenanceKind}`;\n\n /** For an inherited node: the name of the layout or template that owns it. */\n source?: string;\n}\n\nexport const NodeProvenancePropertyNames: (keyof NodeProvenance)[] = ['kind', 'source'];\n"],"names":["NodeProvenancePropertyNames"],"mappings":";;AAAA;AACA;MAcaA,2BAAAA,GAAwD;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,15 @@
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
+ * Where a node comes from, relative to the editing scope.
7
+ */ var ProvenanceKind = /*#__PURE__*/ function(ProvenanceKind) {
8
+ /** Owned by the thing being edited. Fully editable. */ ProvenanceKind["Local"] = "local";
9
+ /** Owned by an outer layout or template that exposed nothing on it. Read-only here. */ ProvenanceKind["Inherited"] = "inherited";
10
+ /** Owned by an outer layout or template that exposed some of its properties. Those can be configured here. */ ProvenanceKind["ConfigurableInherited"] = "configurableInherited";
11
+ return ProvenanceKind;
12
+ }({});
13
+
14
+ exports.ProvenanceKind = ProvenanceKind;
15
+ //# sourceMappingURL=ProvenanceKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProvenanceKind.js","sources":["../../../editing/ProvenanceKind.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 * Where a node comes from, relative to the editing scope.\n */\nexport enum ProvenanceKind {\n /** Owned by the thing being edited. Fully editable. */\n Local = 'local',\n\n /** Owned by an outer layout or template that exposed nothing on it. Read-only here. */\n Inherited = 'inherited',\n\n /** Owned by an outer layout or template that exposed some of its properties. Those can be configured here. */\n ConfigurableInherited = 'configurableInherited',\n}\n"],"names":["ProvenanceKind"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;4DAC6C,cAAA,CAAA,OAAA,CAAA,GAAA,OAAA;4FAGgC,cAAA,CAAA,WAAA,CAAA,GAAA,WAAA;mHAGuB,cAAA,CAAA,uBAAA,CAAA,GAAA,uBAAA;AAPpGA,IAAAA,OAAAA,cAAAA;AASX,CAAA,CAAA,EAAA;;"}
@@ -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 RemoveCollectionItemEditPropertyNames = [
6
+ 'kind',
7
+ 'instance',
8
+ 'component',
9
+ 'path',
10
+ 'itemId'
11
+ ];
12
+
13
+ exports.RemoveCollectionItemEditPropertyNames = RemoveCollectionItemEditPropertyNames;
14
+ //# sourceMappingURL=RemoveCollectionItemEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveCollectionItemEdit.js","sources":["../../../editing/RemoveCollectionItemEdit.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 { SceneEditKind } from './SceneEditKind';\n\n/**\n * Removes an item an instance contributed to an exposed collection.\n */\nexport interface RemoveCollectionItemEdit {\n kind: SceneEditKind.RemoveCollectionItem;\n instance?: string;\n component: string;\n path: string;\n itemId: string;\n}\n\nexport const RemoveCollectionItemEditPropertyNames: (keyof RemoveCollectionItemEdit)[] = ['kind', 'instance', 'component', 'path', 'itemId'];\n"],"names":["RemoveCollectionItemEditPropertyNames"],"mappings":";;AAAA;AACA;MAeaA,qCAAAA,GAA4E;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,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 RemoveNodeEditPropertyNames = [
6
+ 'kind',
7
+ 'nodeId'
8
+ ];
9
+
10
+ exports.RemoveNodeEditPropertyNames = RemoveNodeEditPropertyNames;
11
+ //# sourceMappingURL=RemoveNodeEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RemoveNodeEdit.js","sources":["../../../editing/RemoveNodeEdit.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 { SceneEditKind } from './SceneEditKind';\n\n/**\n * Removes a node and everything under it.\n */\nexport interface RemoveNodeEdit {\n kind: SceneEditKind.RemoveNode;\n nodeId: string;\n}\n\nexport const RemoveNodeEditPropertyNames: (keyof RemoveNodeEdit)[] = ['kind', 'nodeId'];\n"],"names":["RemoveNodeEditPropertyNames"],"mappings":";;AAAA;AACA;MAYaA,2BAAAA,GAAwD;AAAC,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,15 @@
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 ReorderCollectionItemEditPropertyNames = [
6
+ 'kind',
7
+ 'instance',
8
+ 'component',
9
+ 'path',
10
+ 'itemId',
11
+ 'index'
12
+ ];
13
+
14
+ exports.ReorderCollectionItemEditPropertyNames = ReorderCollectionItemEditPropertyNames;
15
+ //# sourceMappingURL=ReorderCollectionItemEdit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReorderCollectionItemEdit.js","sources":["../../../editing/ReorderCollectionItemEdit.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 { SceneEditKind } from './SceneEditKind';\n\n/**\n * Moves an item an instance contributed to another place among that instance's own items.\n */\nexport interface ReorderCollectionItemEdit {\n kind: SceneEditKind.ReorderCollectionItem;\n instance?: string;\n component: string;\n path: string;\n itemId: string;\n index: number;\n}\n\nexport const ReorderCollectionItemEditPropertyNames: (keyof ReorderCollectionItemEdit)[] = [\n 'kind', 'instance', 'component', 'path', 'itemId', 'index',\n];\n"],"names":["ReorderCollectionItemEditPropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,sCAAAA,GAA8E;AACvF,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA;;;"}