@cratis/scene.model 4.22.1 → 4.24.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 (110) hide show
  1. package/descriptors/ComponentCategory.ts +40 -0
  2. package/descriptors/ComponentDescriptor.ts +22 -1
  3. package/descriptors/ComponentDesignModeDescriptor.ts +76 -0
  4. package/descriptors/PropertyDescriptor.ts +5 -1
  5. package/descriptors/PropertyEditorKind.ts +56 -1
  6. package/descriptors/PropertyEditorOptions.ts +51 -0
  7. package/descriptors/componentIcon.ts +16 -0
  8. package/descriptors/index.ts +4 -0
  9. package/dist/cjs/descriptors/ComponentCategory.js +25 -0
  10. package/dist/cjs/descriptors/ComponentCategory.js.map +1 -0
  11. package/dist/cjs/descriptors/ComponentDescriptor.js +5 -0
  12. package/dist/cjs/descriptors/ComponentDescriptor.js.map +1 -1
  13. package/dist/cjs/descriptors/ComponentDesignModeDescriptor.js +28 -0
  14. package/dist/cjs/descriptors/ComponentDesignModeDescriptor.js.map +1 -0
  15. package/dist/cjs/descriptors/PropertyDescriptor.js +1 -0
  16. package/dist/cjs/descriptors/PropertyDescriptor.js.map +1 -1
  17. package/dist/cjs/descriptors/PropertyEditorKind.js +23 -2
  18. package/dist/cjs/descriptors/PropertyEditorKind.js.map +1 -1
  19. package/dist/cjs/descriptors/PropertyEditorOptions.js +25 -0
  20. package/dist/cjs/descriptors/PropertyEditorOptions.js.map +1 -0
  21. package/dist/cjs/descriptors/componentIcon.js +19 -0
  22. package/dist/cjs/descriptors/componentIcon.js.map +1 -0
  23. package/dist/cjs/editing/DiagnosticCode.js +5 -0
  24. package/dist/cjs/editing/DiagnosticCode.js.map +1 -1
  25. package/dist/cjs/index.js +23 -0
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/structure/ApplicationStructure.js +10 -0
  28. package/dist/cjs/structure/ApplicationStructure.js.map +1 -0
  29. package/dist/cjs/structure/FeatureNode.js +13 -0
  30. package/dist/cjs/structure/FeatureNode.js.map +1 -0
  31. package/dist/cjs/structure/ModuleNode.js +13 -0
  32. package/dist/cjs/structure/ModuleNode.js.map +1 -0
  33. package/dist/cjs/structure/SliceKind.js +15 -0
  34. package/dist/cjs/structure/SliceKind.js.map +1 -0
  35. package/dist/cjs/structure/SliceNode.js +12 -0
  36. package/dist/cjs/structure/SliceNode.js.map +1 -0
  37. package/dist/esm/descriptors/ComponentCategory.d.ts +13 -0
  38. package/dist/esm/descriptors/ComponentCategory.d.ts.map +1 -0
  39. package/dist/esm/descriptors/ComponentCategory.js +22 -0
  40. package/dist/esm/descriptors/ComponentCategory.js.map +1 -0
  41. package/dist/esm/descriptors/ComponentDescriptor.d.ts +7 -0
  42. package/dist/esm/descriptors/ComponentDescriptor.d.ts.map +1 -1
  43. package/dist/esm/descriptors/ComponentDescriptor.js +5 -0
  44. package/dist/esm/descriptors/ComponentDescriptor.js.map +1 -1
  45. package/dist/esm/descriptors/ComponentDesignModeDescriptor.d.ts +24 -0
  46. package/dist/esm/descriptors/ComponentDesignModeDescriptor.d.ts.map +1 -0
  47. package/dist/esm/descriptors/ComponentDesignModeDescriptor.js +24 -0
  48. package/dist/esm/descriptors/ComponentDesignModeDescriptor.js.map +1 -0
  49. package/dist/esm/descriptors/PropertyDescriptor.d.ts +2 -0
  50. package/dist/esm/descriptors/PropertyDescriptor.d.ts.map +1 -1
  51. package/dist/esm/descriptors/PropertyDescriptor.js +1 -0
  52. package/dist/esm/descriptors/PropertyDescriptor.js.map +1 -1
  53. package/dist/esm/descriptors/PropertyEditorKind.d.ts +17 -0
  54. package/dist/esm/descriptors/PropertyEditorKind.d.ts.map +1 -1
  55. package/dist/esm/descriptors/PropertyEditorKind.js +23 -2
  56. package/dist/esm/descriptors/PropertyEditorKind.js.map +1 -1
  57. package/dist/esm/descriptors/PropertyEditorOptions.d.ts +18 -0
  58. package/dist/esm/descriptors/PropertyEditorOptions.d.ts.map +1 -0
  59. package/dist/esm/descriptors/PropertyEditorOptions.js +22 -0
  60. package/dist/esm/descriptors/PropertyEditorOptions.js.map +1 -0
  61. package/dist/esm/descriptors/componentIcon.d.ts +4 -0
  62. package/dist/esm/descriptors/componentIcon.d.ts.map +1 -0
  63. package/dist/esm/descriptors/componentIcon.js +16 -0
  64. package/dist/esm/descriptors/componentIcon.js.map +1 -0
  65. package/dist/esm/descriptors/index.d.ts +4 -0
  66. package/dist/esm/descriptors/index.d.ts.map +1 -1
  67. package/dist/esm/descriptors/index.js +4 -0
  68. package/dist/esm/descriptors/index.js.map +1 -1
  69. package/dist/esm/editing/DiagnosticCode.d.ts +5 -1
  70. package/dist/esm/editing/DiagnosticCode.d.ts.map +1 -1
  71. package/dist/esm/editing/DiagnosticCode.js +5 -0
  72. package/dist/esm/editing/DiagnosticCode.js.map +1 -1
  73. package/dist/esm/index.d.ts +1 -0
  74. package/dist/esm/index.d.ts.map +1 -1
  75. package/dist/esm/index.js +9 -0
  76. package/dist/esm/index.js.map +1 -1
  77. package/dist/esm/structure/ApplicationStructure.d.ts +6 -0
  78. package/dist/esm/structure/ApplicationStructure.d.ts.map +1 -0
  79. package/dist/esm/structure/ApplicationStructure.js +8 -0
  80. package/dist/esm/structure/ApplicationStructure.js.map +1 -0
  81. package/dist/esm/structure/FeatureNode.d.ts +9 -0
  82. package/dist/esm/structure/FeatureNode.d.ts.map +1 -0
  83. package/dist/esm/structure/FeatureNode.js +11 -0
  84. package/dist/esm/structure/FeatureNode.js.map +1 -0
  85. package/dist/esm/structure/ModuleNode.d.ts +10 -0
  86. package/dist/esm/structure/ModuleNode.d.ts.map +1 -0
  87. package/dist/esm/structure/ModuleNode.js +11 -0
  88. package/dist/esm/structure/ModuleNode.js.map +1 -0
  89. package/dist/esm/structure/SliceKind.d.ts +6 -0
  90. package/dist/esm/structure/SliceKind.d.ts.map +1 -0
  91. package/dist/esm/structure/SliceKind.js +13 -0
  92. package/dist/esm/structure/SliceKind.js.map +1 -0
  93. package/dist/esm/structure/SliceNode.d.ts +8 -0
  94. package/dist/esm/structure/SliceNode.d.ts.map +1 -0
  95. package/dist/esm/structure/SliceNode.js +10 -0
  96. package/dist/esm/structure/SliceNode.js.map +1 -0
  97. package/dist/esm/structure/index.d.ts +6 -0
  98. package/dist/esm/structure/index.d.ts.map +1 -0
  99. package/dist/esm/structure/index.js +6 -0
  100. package/dist/esm/structure/index.js.map +1 -0
  101. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  102. package/editing/DiagnosticCode.ts +6 -0
  103. package/index.ts +1 -0
  104. package/package.json +1 -1
  105. package/structure/ApplicationStructure.ts +17 -0
  106. package/structure/FeatureNode.ts +23 -0
  107. package/structure/ModuleNode.ts +24 -0
  108. package/structure/SliceKind.ts +16 -0
  109. package/structure/SliceNode.ts +20 -0
  110. package/structure/index.ts +8 -0
@@ -1,5 +1,6 @@
1
1
  export * from './PropertyValueType';
2
2
  export * from './PropertyEditorKind';
3
+ export * from './PropertyEditorOptions';
3
4
  export * from './PropertyChoice';
4
5
  export * from './PropertyConstraints';
5
6
  export * from './CollectionItemDescriptor';
@@ -7,6 +8,9 @@ export * from './DesignTimeActionDescriptor';
7
8
  export * from './DesignTimeActionPlacement';
8
9
  export * from './PackageDesignTimeMetadata';
9
10
  export * from './PropertyDescriptor';
11
+ export * from './ComponentCategory';
12
+ export * from './ComponentDesignModeDescriptor';
13
+ export * from './componentIcon';
10
14
  export * from './ComponentDescriptor';
11
15
  export * from './CollectionOperation';
12
16
  export * from './LayoutType';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  export * from './PropertyValueType';
2
2
  export * from './PropertyEditorKind';
3
+ export * from './PropertyEditorOptions';
3
4
  export * from './PropertyChoice';
4
5
  export * from './PropertyConstraints';
5
6
  export * from './CollectionItemDescriptor';
@@ -7,6 +8,9 @@ export * from './DesignTimeActionDescriptor';
7
8
  export * from './DesignTimeActionPlacement';
8
9
  export * from './PackageDesignTimeMetadata';
9
10
  export * from './PropertyDescriptor';
11
+ export * from './ComponentCategory';
12
+ export * from './ComponentDesignModeDescriptor';
13
+ export * from './componentIcon';
10
14
  export * from './ComponentDescriptor';
11
15
  export * from './CollectionOperation';
12
16
  export * from './LayoutType';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
@@ -42,6 +42,10 @@ export declare enum DiagnosticCode {
42
42
  MissingIconVariant = "missingIconVariant",
43
43
  IncompatibleIconLibrary = "incompatibleIconLibrary",
44
44
  IconCatalogUnavailable = "iconCatalogUnavailable",
45
- IconNotVerified = "iconNotVerified"
45
+ IconNotVerified = "iconNotVerified",
46
+ ComponentCategoryMissing = "componentCategoryMissing",
47
+ ComponentCategoryUnknown = "componentCategoryUnknown",
48
+ ComponentDesignModeInvalid = "componentDesignModeInvalid",
49
+ PropertyEditorOptionsInvalid = "propertyEditorOptionsInvalid"
46
50
  }
47
51
  //# sourceMappingURL=DiagnosticCode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DiagnosticCode.d.ts","sourceRoot":"","sources":["../../../editing/DiagnosticCode.ts"],"names":[],"mappings":"AAOA,oBAAY,cAAc;IAEtB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAG3B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,0BAA0B,+BAA+B;IAGzD,cAAc,mBAAmB;IACjC,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,eAAe,oBAAoB;IAGnC,2BAA2B,gCAAgC;IAC3D,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,uBAAuB,4BAA4B;IACnD,gBAAgB,qBAAqB;IAGrC,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,kBAAkB,uBAAuB;IAGzC,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,iCAAiC,sCAAsC;IACvE,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,eAAe,oBAAoB;IAGnC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;CACtC"}
1
+ {"version":3,"file":"DiagnosticCode.d.ts","sourceRoot":"","sources":["../../../editing/DiagnosticCode.ts"],"names":[],"mappings":"AAOA,oBAAY,cAAc;IAEtB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAG3B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,0BAA0B,+BAA+B;IAGzD,cAAc,mBAAmB;IACjC,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,eAAe,oBAAoB;IAGnC,2BAA2B,gCAAgC;IAC3D,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,uBAAuB,4BAA4B;IACnD,gBAAgB,qBAAqB;IAGrC,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,kBAAkB,uBAAuB;IAGzC,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,iCAAiC,sCAAsC;IACvE,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,eAAe,oBAAoB;IAGnC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;IAGnC,wBAAwB,6BAA6B;IACrD,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,4BAA4B,iCAAiC;CAChE"}
@@ -55,6 +55,11 @@
55
55
  DiagnosticCode["IncompatibleIconLibrary"] = "incompatibleIconLibrary";
56
56
  DiagnosticCode["IconCatalogUnavailable"] = "iconCatalogUnavailable";
57
57
  DiagnosticCode["IconNotVerified"] = "iconNotVerified";
58
+ // Component metadata
59
+ DiagnosticCode["ComponentCategoryMissing"] = "componentCategoryMissing";
60
+ DiagnosticCode["ComponentCategoryUnknown"] = "componentCategoryUnknown";
61
+ DiagnosticCode["ComponentDesignModeInvalid"] = "componentDesignModeInvalid";
62
+ DiagnosticCode["PropertyEditorOptionsInvalid"] = "propertyEditorOptionsInvalid";
58
63
  return DiagnosticCode;
59
64
  }({});
60
65
 
@@ -1 +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 // Icons\n MissingIconLibrary = 'missingIconLibrary',\n MissingIcon = 'missingIcon',\n MissingIconVariant = 'missingIconVariant',\n IncompatibleIconLibrary = 'incompatibleIconLibrary',\n IconCatalogUnavailable = 'iconCatalogUnavailable',\n IconNotVerified = 'iconNotVerified',\n}\n"],"names":["DiagnosticCode"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,IAAAA,OAAAA,cAAAA;AA0DX,CAAA,CAAA,EAAA;;"}
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 // Icons\n MissingIconLibrary = 'missingIconLibrary',\n MissingIcon = 'missingIcon',\n MissingIconVariant = 'missingIconVariant',\n IncompatibleIconLibrary = 'incompatibleIconLibrary',\n IconCatalogUnavailable = 'iconCatalogUnavailable',\n IconNotVerified = 'iconNotVerified',\n\n // Component metadata\n ComponentCategoryMissing = 'componentCategoryMissing',\n ComponentCategoryUnknown = 'componentCategoryUnknown',\n ComponentDesignModeInvalid = 'componentDesignModeInvalid',\n PropertyEditorOptionsInvalid = 'propertyEditorOptionsInvalid',\n}\n"],"names":["DiagnosticCode"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,IAAAA,OAAAA,cAAAA;AAgEX,CAAA,CAAA,EAAA;;"}
@@ -14,4 +14,5 @@ export * from './queries';
14
14
  export * from './descriptors';
15
15
  export * from './exposure';
16
16
  export * from './editing';
17
+ export * from './structure';
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
package/dist/esm/index.js CHANGED
@@ -114,6 +114,7 @@ export { QueryResultBindingPropertyNames } from './queries/QueryResultBinding.js
114
114
  export { QueryBindingPropertyNames } from './queries/QueryBinding.js';
115
115
  export { PropertyValueType } from './descriptors/PropertyValueType.js';
116
116
  export { PropertyEditorKind } from './descriptors/PropertyEditorKind.js';
117
+ export { PropertyEditorOptionsPropertyNames, ReferenceFilterDescriptorPropertyNames } from './descriptors/PropertyEditorOptions.js';
117
118
  export { PropertyChoicePropertyNames } from './descriptors/PropertyChoice.js';
118
119
  export { PropertyConstraintsPropertyNames } from './descriptors/PropertyConstraints.js';
119
120
  export { CollectionItemDescriptorPropertyNames } from './descriptors/CollectionItemDescriptor.js';
@@ -121,6 +122,9 @@ export { DesignTimeActionDescriptorPropertyNames } from './descriptors/DesignTim
121
122
  export { DesignTimeActionPlacement } from './descriptors/DesignTimeActionPlacement.js';
122
123
  export { PackageDesignTimeMetadataPropertyNames } from './descriptors/PackageDesignTimeMetadata.js';
123
124
  export { PropertyDescriptorPropertyNames } from './descriptors/PropertyDescriptor.js';
125
+ export { ComponentCategory, componentCategories } from './descriptors/ComponentCategory.js';
126
+ export { ComponentDesignModeDescriptorPropertyNames, DesignModeAddActionPropertyNames, DesignModeItemActionPropertyNames } from './descriptors/ComponentDesignModeDescriptor.js';
127
+ export { componentIcon, componentIconLibrary } from './descriptors/componentIcon.js';
124
128
  export { ComponentDescriptorPropertyNames } from './descriptors/ComponentDescriptor.js';
125
129
  export { CollectionOperation } from './descriptors/CollectionOperation.js';
126
130
  export { LayoutType } from './descriptors/LayoutType.js';
@@ -164,4 +168,9 @@ export { ReorderCollectionItemEditPropertyNames } from './editing/ReorderCollect
164
168
  export { EditCollectionItemEditPropertyNames } from './editing/EditCollectionItemEdit.js';
165
169
  export { ExposePropertyEditPropertyNames } from './editing/ExposePropertyEdit.js';
166
170
  export { UnexposePropertyEditPropertyNames } from './editing/UnexposePropertyEdit.js';
171
+ export { SliceKind } from './structure/SliceKind.js';
172
+ export { SliceNodePropertyNames } from './structure/SliceNode.js';
173
+ export { FeatureNodePropertyNames } from './structure/FeatureNode.js';
174
+ export { ModuleNodePropertyNames } from './structure/ModuleNode.js';
175
+ export { ApplicationStructurePropertyNames } from './structure/ApplicationStructure.js';
167
176
  //# sourceMappingURL=index.js.map
@@ -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,6 @@
1
+ import { ModuleNode } from './ModuleNode';
2
+ export interface ApplicationStructure {
3
+ modules: ModuleNode[];
4
+ }
5
+ export declare const ApplicationStructurePropertyNames: (keyof ApplicationStructure)[];
6
+ //# sourceMappingURL=ApplicationStructure.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationStructure.d.ts","sourceRoot":"","sources":["../../../structure/ApplicationStructure.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ1C,MAAM,WAAW,oBAAoB;IAEjC,OAAO,EAAE,UAAU,EAAE,CAAC;CACzB;AAED,eAAO,MAAM,iCAAiC,EAAE,CAAC,MAAM,oBAAoB,CAAC,EAAgB,CAAC"}
@@ -0,0 +1,8 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ const ApplicationStructurePropertyNames = [
4
+ 'modules'
5
+ ];
6
+
7
+ export { ApplicationStructurePropertyNames };
8
+ //# sourceMappingURL=ApplicationStructure.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApplicationStructure.js","sources":["../../../structure/ApplicationStructure.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 { ModuleNode } from './ModuleNode';\n\n/**\n * A read-only description of which modules, features and slices an application has, and what kind each slice is.\n *\n * It is a reference input supplied by the host (Stage's converter, Studio); it is not persisted in a scene document.\n * Ids are the dotted qualified ids already used by `DestinationReference`, for example `sales.orders.PlaceOrder`.\n */\nexport interface ApplicationStructure {\n /** The modules of the application, in declaration order. */\n modules: ModuleNode[];\n}\n\nexport const ApplicationStructurePropertyNames: (keyof ApplicationStructure)[] = ['modules'];\n"],"names":["ApplicationStructurePropertyNames"],"mappings":"AAAA;AACA;MAeaA,iCAAAA,GAAoE;AAAC,IAAA;;;"}
@@ -0,0 +1,9 @@
1
+ import { SliceNode } from './SliceNode';
2
+ export interface FeatureNode {
3
+ id: string;
4
+ name: string;
5
+ features: FeatureNode[];
6
+ slices: SliceNode[];
7
+ }
8
+ export declare const FeatureNodePropertyNames: (keyof FeatureNode)[];
9
+ //# sourceMappingURL=FeatureNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureNode.d.ts","sourceRoot":"","sources":["../../../structure/FeatureNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,WAAW;IAExB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,WAAW,EAAE,CAAC;IAGxB,MAAM,EAAE,SAAS,EAAE,CAAC;CACvB;AAED,eAAO,MAAM,wBAAwB,EAAE,CAAC,MAAM,WAAW,CAAC,EAAyC,CAAC"}
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ const FeatureNodePropertyNames = [
4
+ 'id',
5
+ 'name',
6
+ 'features',
7
+ 'slices'
8
+ ];
9
+
10
+ export { FeatureNodePropertyNames };
11
+ //# sourceMappingURL=FeatureNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FeatureNode.js","sources":["../../../structure/FeatureNode.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 { SliceNode } from './SliceNode';\n\n/**\n * A feature in the application hierarchy; features nest.\n */\nexport interface FeatureNode {\n /** The feature identity, unique among its siblings; its qualified form is the dotted path from the module. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** The sub-features. */\n features: FeatureNode[];\n\n /** The slices that belong directly to this feature. */\n slices: SliceNode[];\n}\n\nexport const FeatureNodePropertyNames: (keyof FeatureNode)[] = ['id', 'name', 'features', 'slices'];\n"],"names":["FeatureNodePropertyNames"],"mappings":"AAAA;AACA;MAqBaA,wBAAAA,GAAkD;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
@@ -0,0 +1,10 @@
1
+ import { FeatureNode } from './FeatureNode';
2
+ import { SliceNode } from './SliceNode';
3
+ export interface ModuleNode {
4
+ id: string;
5
+ name: string;
6
+ features: FeatureNode[];
7
+ slices?: SliceNode[];
8
+ }
9
+ export declare const ModuleNodePropertyNames: (keyof ModuleNode)[];
10
+ //# sourceMappingURL=ModuleNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleNode.d.ts","sourceRoot":"","sources":["../../../structure/ModuleNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,UAAU;IAEvB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,WAAW,EAAE,CAAC;IAGxB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,uBAAuB,EAAE,CAAC,MAAM,UAAU,CAAC,EAAyC,CAAC"}
@@ -0,0 +1,11 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ const ModuleNodePropertyNames = [
4
+ 'id',
5
+ 'name',
6
+ 'features',
7
+ 'slices'
8
+ ];
9
+
10
+ export { ModuleNodePropertyNames };
11
+ //# sourceMappingURL=ModuleNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleNode.js","sources":["../../../structure/ModuleNode.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 { FeatureNode } from './FeatureNode';\nimport { SliceNode } from './SliceNode';\n\n/**\n * A module in the application hierarchy.\n */\nexport interface ModuleNode {\n /** The module identity, unique in the application; the first segment of every qualified id below it. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** The module's top-level features, first feature first. */\n features: FeatureNode[];\n\n /** The slices that belong directly to the module, when it has any. */\n slices?: SliceNode[];\n}\n\nexport const ModuleNodePropertyNames: (keyof ModuleNode)[] = ['id', 'name', 'features', 'slices'];\n"],"names":["ModuleNodePropertyNames"],"mappings":"AAAA;AACA;MAsBaA,uBAAAA,GAAgD;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA;;;"}
@@ -0,0 +1,6 @@
1
+ export declare enum SliceKind {
2
+ StateChange = "StateChange",
3
+ StateView = "StateView",
4
+ Automation = "Automation"
5
+ }
6
+ //# sourceMappingURL=SliceKind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliceKind.d.ts","sourceRoot":"","sources":["../../../structure/SliceKind.ts"],"names":[],"mappings":"AAMA,oBAAY,SAAS;IAEjB,WAAW,gBAAgB;IAG3B,SAAS,cAAc;IAGvB,UAAU,eAAe;CAC5B"}
@@ -0,0 +1,13 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ /**
4
+ * What kind of event-model slice a slice node is.
5
+ */ var SliceKind = /*#__PURE__*/ function(SliceKind) {
6
+ /** A slice that accepts a command - user input that changes state. */ SliceKind["StateChange"] = "StateChange";
7
+ /** A slice that projects state into a read model for display. */ SliceKind["StateView"] = "StateView";
8
+ /** A slice that reacts to events without user input. */ SliceKind["Automation"] = "Automation";
9
+ return SliceKind;
10
+ }({});
11
+
12
+ export { SliceKind };
13
+ //# sourceMappingURL=SliceKind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliceKind.js","sources":["../../../structure/SliceKind.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 kind of event-model slice a slice node is.\n */\nexport enum SliceKind {\n /** A slice that accepts a command - user input that changes state. */\n StateChange = 'StateChange',\n\n /** A slice that projects state into a read model for display. */\n StateView = 'StateView',\n\n /** A slice that reacts to events without user input. */\n Automation = 'Automation',\n}\n"],"names":["SliceKind"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,SAAAA,iBAAAA,SAAAA,SAAAA,EAAAA;2EAC4D,SAAA,CAAA,aAAA,CAAA,GAAA,aAAA;sEAGL,SAAA,CAAA,WAAA,CAAA,GAAA,WAAA;6DAGT,SAAA,CAAA,YAAA,CAAA,GAAA,YAAA;AAP9CA,IAAAA,OAAAA,SAAAA;AASX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,8 @@
1
+ import { SliceKind } from './SliceKind';
2
+ export interface SliceNode {
3
+ id: string;
4
+ name: string;
5
+ kind: SliceKind;
6
+ }
7
+ export declare const SliceNodePropertyNames: (keyof SliceNode)[];
8
+ //# sourceMappingURL=SliceNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliceNode.d.ts","sourceRoot":"","sources":["../../../structure/SliceNode.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,WAAW,SAAS;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,SAAS,CAAC;CACnB;AAED,eAAO,MAAM,sBAAsB,EAAE,CAAC,MAAM,SAAS,CAAC,EAA2B,CAAC"}
@@ -0,0 +1,10 @@
1
+ // Copyright (c) Cratis. All rights reserved.
2
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
+ const SliceNodePropertyNames = [
4
+ 'id',
5
+ 'name',
6
+ 'kind'
7
+ ];
8
+
9
+ export { SliceNodePropertyNames };
10
+ //# sourceMappingURL=SliceNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SliceNode.js","sources":["../../../structure/SliceNode.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 { SliceKind } from './SliceKind';\n\n/**\n * A slice in the application hierarchy.\n */\nexport interface SliceNode {\n /** The slice identity, unique among the siblings of its feature or module; its qualified form is `module.feature.Slice`. */\n id: string;\n\n /** The display name. */\n name: string;\n\n /** Whether the slice is a state change, a state view or an automation. */\n kind: SliceKind;\n}\n\nexport const SliceNodePropertyNames: (keyof SliceNode)[] = ['id', 'name', 'kind'];\n"],"names":["SliceNodePropertyNames"],"mappings":"AAAA;AACA;MAkBaA,sBAAAA,GAA8C;AAAC,IAAA,IAAA;AAAM,IAAA,MAAA;AAAQ,IAAA;;;"}
@@ -0,0 +1,6 @@
1
+ export * from './SliceKind';
2
+ export * from './SliceNode';
3
+ export * from './FeatureNode';
4
+ export * from './ModuleNode';
5
+ export * from './ApplicationStructure';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../structure/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './SliceKind';
2
+ export * from './SliceNode';
3
+ export * from './FeatureNode';
4
+ export * from './ModuleNode';
5
+ export * from './ApplicationStructure';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../structure/index.ts"],"names":[],"mappings":"AAGA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC"}