@cratis/scene.model 4.23.0 → 4.25.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 (86) 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 +16 -0
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/screens/TemplateMetadata.js +2 -1
  28. package/dist/cjs/screens/TemplateMetadata.js.map +1 -1
  29. package/dist/cjs/screens/TemplateReference.js +19 -0
  30. package/dist/cjs/screens/TemplateReference.js.map +1 -0
  31. package/dist/esm/descriptors/ComponentCategory.d.ts +13 -0
  32. package/dist/esm/descriptors/ComponentCategory.d.ts.map +1 -0
  33. package/dist/esm/descriptors/ComponentCategory.js +22 -0
  34. package/dist/esm/descriptors/ComponentCategory.js.map +1 -0
  35. package/dist/esm/descriptors/ComponentDescriptor.d.ts +7 -0
  36. package/dist/esm/descriptors/ComponentDescriptor.d.ts.map +1 -1
  37. package/dist/esm/descriptors/ComponentDescriptor.js +5 -0
  38. package/dist/esm/descriptors/ComponentDescriptor.js.map +1 -1
  39. package/dist/esm/descriptors/ComponentDesignModeDescriptor.d.ts +24 -0
  40. package/dist/esm/descriptors/ComponentDesignModeDescriptor.d.ts.map +1 -0
  41. package/dist/esm/descriptors/ComponentDesignModeDescriptor.js +24 -0
  42. package/dist/esm/descriptors/ComponentDesignModeDescriptor.js.map +1 -0
  43. package/dist/esm/descriptors/PropertyDescriptor.d.ts +2 -0
  44. package/dist/esm/descriptors/PropertyDescriptor.d.ts.map +1 -1
  45. package/dist/esm/descriptors/PropertyDescriptor.js +1 -0
  46. package/dist/esm/descriptors/PropertyDescriptor.js.map +1 -1
  47. package/dist/esm/descriptors/PropertyEditorKind.d.ts +17 -0
  48. package/dist/esm/descriptors/PropertyEditorKind.d.ts.map +1 -1
  49. package/dist/esm/descriptors/PropertyEditorKind.js +23 -2
  50. package/dist/esm/descriptors/PropertyEditorKind.js.map +1 -1
  51. package/dist/esm/descriptors/PropertyEditorOptions.d.ts +18 -0
  52. package/dist/esm/descriptors/PropertyEditorOptions.d.ts.map +1 -0
  53. package/dist/esm/descriptors/PropertyEditorOptions.js +22 -0
  54. package/dist/esm/descriptors/PropertyEditorOptions.js.map +1 -0
  55. package/dist/esm/descriptors/componentIcon.d.ts +4 -0
  56. package/dist/esm/descriptors/componentIcon.d.ts.map +1 -0
  57. package/dist/esm/descriptors/componentIcon.js +16 -0
  58. package/dist/esm/descriptors/componentIcon.js.map +1 -0
  59. package/dist/esm/descriptors/index.d.ts +4 -0
  60. package/dist/esm/descriptors/index.d.ts.map +1 -1
  61. package/dist/esm/descriptors/index.js +4 -0
  62. package/dist/esm/descriptors/index.js.map +1 -1
  63. package/dist/esm/editing/DiagnosticCode.d.ts +5 -1
  64. package/dist/esm/editing/DiagnosticCode.d.ts.map +1 -1
  65. package/dist/esm/editing/DiagnosticCode.js +5 -0
  66. package/dist/esm/editing/DiagnosticCode.js.map +1 -1
  67. package/dist/esm/index.js +5 -0
  68. package/dist/esm/index.js.map +1 -1
  69. package/dist/esm/screens/TemplateMetadata.d.ts +2 -0
  70. package/dist/esm/screens/TemplateMetadata.d.ts.map +1 -1
  71. package/dist/esm/screens/TemplateMetadata.js +2 -1
  72. package/dist/esm/screens/TemplateMetadata.js.map +1 -1
  73. package/dist/esm/screens/TemplateReference.d.ts +12 -0
  74. package/dist/esm/screens/TemplateReference.d.ts.map +1 -0
  75. package/dist/esm/screens/TemplateReference.js +16 -0
  76. package/dist/esm/screens/TemplateReference.js.map +1 -0
  77. package/dist/esm/screens/index.d.ts +1 -0
  78. package/dist/esm/screens/index.d.ts.map +1 -1
  79. package/dist/esm/screens/index.js +1 -0
  80. package/dist/esm/screens/index.js.map +1 -1
  81. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  82. package/editing/DiagnosticCode.ts +6 -0
  83. package/package.json +1 -1
  84. package/screens/TemplateMetadata.ts +9 -2
  85. package/screens/TemplateReference.ts +30 -0
  86. package/screens/index.ts +1 -0
@@ -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;;"}
package/dist/esm/index.js CHANGED
@@ -102,6 +102,7 @@ export { DialogTemplatePropertyNames } from './screens/DialogTemplate.js';
102
102
  export { TemplateAttributionPropertyNames } from './screens/TemplateAttribution.js';
103
103
  export { TemplateCompatibilityPropertyNames } from './screens/TemplateCompatibility.js';
104
104
  export { TemplateMetadataPropertyNames, TemplateScope } from './screens/TemplateMetadata.js';
105
+ export { TemplateReferencePropertyNames, TemplateReferenceSource } from './screens/TemplateReference.js';
105
106
  export { UiStarterPropertyNames } from './starters/UiStarter.js';
106
107
  export { QueryResultShape } from './queries/QueryResultShape.js';
107
108
  export { QueryOriginKind } from './queries/QueryOriginKind.js';
@@ -114,6 +115,7 @@ export { QueryResultBindingPropertyNames } from './queries/QueryResultBinding.js
114
115
  export { QueryBindingPropertyNames } from './queries/QueryBinding.js';
115
116
  export { PropertyValueType } from './descriptors/PropertyValueType.js';
116
117
  export { PropertyEditorKind } from './descriptors/PropertyEditorKind.js';
118
+ export { PropertyEditorOptionsPropertyNames, ReferenceFilterDescriptorPropertyNames } from './descriptors/PropertyEditorOptions.js';
117
119
  export { PropertyChoicePropertyNames } from './descriptors/PropertyChoice.js';
118
120
  export { PropertyConstraintsPropertyNames } from './descriptors/PropertyConstraints.js';
119
121
  export { CollectionItemDescriptorPropertyNames } from './descriptors/CollectionItemDescriptor.js';
@@ -121,6 +123,9 @@ export { DesignTimeActionDescriptorPropertyNames } from './descriptors/DesignTim
121
123
  export { DesignTimeActionPlacement } from './descriptors/DesignTimeActionPlacement.js';
122
124
  export { PackageDesignTimeMetadataPropertyNames } from './descriptors/PackageDesignTimeMetadata.js';
123
125
  export { PropertyDescriptorPropertyNames } from './descriptors/PropertyDescriptor.js';
126
+ export { ComponentCategory, componentCategories } from './descriptors/ComponentCategory.js';
127
+ export { ComponentDesignModeDescriptorPropertyNames, DesignModeAddActionPropertyNames, DesignModeItemActionPropertyNames } from './descriptors/ComponentDesignModeDescriptor.js';
128
+ export { componentIcon, componentIconLibrary } from './descriptors/componentIcon.js';
124
129
  export { ComponentDescriptorPropertyNames } from './descriptors/ComponentDescriptor.js';
125
130
  export { CollectionOperation } from './descriptors/CollectionOperation.js';
126
131
  export { LayoutType } from './descriptors/LayoutType.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,5 +1,6 @@
1
1
  import { TemplateAttribution } from './TemplateAttribution';
2
2
  import { TemplateCompatibility } from './TemplateCompatibility';
3
+ import { SliceKind } from '../structure';
3
4
  export declare enum TemplateScope {
4
5
  Application = "Application",
5
6
  Module = "Module",
@@ -15,6 +16,7 @@ export interface TemplateMetadata {
15
16
  attribution?: TemplateAttribution;
16
17
  license?: string;
17
18
  licenseUrl?: string;
19
+ sliceKinds?: SliceKind[];
18
20
  }
19
21
  export declare const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[];
20
22
  //# sourceMappingURL=TemplateMetadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TemplateMetadata.d.ts","sourceRoot":"","sources":["../../../screens/TemplateMetadata.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAClB;AAMD,MAAM,WAAW,gBAAgB;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IAEzB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IAEtC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAEnE,CAAC"}
1
+ {"version":3,"file":"TemplateMetadata.d.ts","sourceRoot":"","sources":["../../../screens/TemplateMetadata.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,oBAAY,aAAa;IACrB,WAAW,gBAAgB;IAC3B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,KAAK,UAAU;CAClB;AAMD,MAAM,WAAW,gBAAgB;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IAEzB,aAAa,CAAC,EAAE,qBAAqB,CAAC;IAEtC,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAElC,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAMpB,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;CAC5B;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAEnE,CAAC"}
@@ -15,7 +15,8 @@ const TemplateMetadataPropertyNames = [
15
15
  'compatibility',
16
16
  'attribution',
17
17
  'license',
18
- 'licenseUrl'
18
+ 'licenseUrl',
19
+ 'sliceKinds'
19
20
  ];
20
21
 
21
22
  export { TemplateMetadataPropertyNames, TemplateScope };
@@ -1 +1 @@
1
- {"version":3,"file":"TemplateMetadata.js","sources":["../../../screens/TemplateMetadata.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 { TemplateAttribution } from './TemplateAttribution';\nimport { TemplateCompatibility } from './TemplateCompatibility';\n\n/** The application hierarchy at which a reusable template is selected. */\nexport enum TemplateScope {\n Application = 'Application',\n Module = 'Module',\n Feature = 'Feature',\n Subfeature = 'Subfeature',\n Slice = 'Slice',\n}\n\n/**\n * Optional semantic and browsing metadata. Type and category are open strings so packages can\n * introduce their own vocabulary without a Scene release. Category never determines applicability.\n */\nexport interface TemplateMetadata {\n /** Semantic role; built-in roles are ApplicationShell, Workspace, List, Detail, Form and Dialog. */\n type?: string;\n /** A package-defined browse category, preserved even when the host does not recognize it. */\n category?: string;\n /** Explicit scope restriction. Absent uses the structural role; an empty list allows no scope. */\n scopes?: TemplateScope[];\n /** The Scene and package versions the template requires. Required for every shipped template. */\n compatibility?: TemplateCompatibility;\n /** Who authored the template. Required for every shipped template. */\n attribution?: TemplateAttribution;\n /** The SPDX license identifier the template is available under, such as `MIT`. Required for every shipped template. */\n license?: string;\n /** An absolute `https` URL to the license terms. */\n licenseUrl?: string;\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl',\n];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;AAKA,2EACO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MAuBYC,6BAAAA,GAA4D;AACrE,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,QAAA;AAAU,IAAA,eAAA;AAAiB,IAAA,aAAA;AAAe,IAAA,SAAA;AAAW,IAAA;;;"}
1
+ {"version":3,"file":"TemplateMetadata.js","sources":["../../../screens/TemplateMetadata.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 { TemplateAttribution } from './TemplateAttribution';\nimport { TemplateCompatibility } from './TemplateCompatibility';\nimport { SliceKind } from '../structure';\n\n/** The application hierarchy at which a reusable template is selected. */\nexport enum TemplateScope {\n Application = 'Application',\n Module = 'Module',\n Feature = 'Feature',\n Subfeature = 'Subfeature',\n Slice = 'Slice',\n}\n\n/**\n * Semantic and browsing metadata. Category is required for blueprint templates and recommended for own templates. Type and category are open strings so packages can\n * introduce their own vocabulary without a Scene release. Category never determines applicability.\n */\nexport interface TemplateMetadata {\n /** Semantic role; built-in roles are ApplicationShell, Workspace, List, Detail, Form and Dialog. */\n type?: string;\n /** A package-defined browse category, preserved even when the host does not recognize it. */\n category?: string;\n /** Explicit scope restriction. Absent uses the structural role; an empty list allows no scope. */\n scopes?: TemplateScope[];\n /** The Scene and package versions the template requires. Required for every shipped template. */\n compatibility?: TemplateCompatibility;\n /** Who authored the template. Required for every shipped template. */\n attribution?: TemplateAttribution;\n /** The SPDX license identifier the template is available under, such as `MIT`. Required for every shipped template. */\n license?: string;\n /** An absolute `https` URL to the license terms. */\n licenseUrl?: string;\n /**\n * For a template that applies at {@link TemplateScope.Slice}, the slice kinds it applies to. Absent uses the\n * structural default: a dialog template applies to state change slices, a screen template to every kind that\n * presents something. Declaring slice kinds without scopes makes the default scope Slice.\n */\n sliceKinds?: SliceKind[];\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl', 'sliceKinds',\n];\n"],"names":["TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;AAMA,2EACO,IAAKA,aAAAA,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MA6BYC,6BAAAA,GAA4D;AACrE,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,QAAA;AAAU,IAAA,eAAA;AAAiB,IAAA,aAAA;AAAe,IAAA,SAAA;AAAW,IAAA,YAAA;AAAc,IAAA;;;"}
@@ -0,0 +1,12 @@
1
+ export declare enum TemplateReferenceSource {
2
+ Own = "Own",
3
+ Blueprint = "Blueprint"
4
+ }
5
+ export interface TemplateReference {
6
+ source: TemplateReferenceSource;
7
+ id: string;
8
+ blueprint?: string;
9
+ version?: string;
10
+ }
11
+ export declare const TemplateReferencePropertyNames: (keyof TemplateReference)[];
12
+ //# sourceMappingURL=TemplateReference.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateReference.d.ts","sourceRoot":"","sources":["../../../screens/TemplateReference.ts"],"names":[],"mappings":"AAIA,oBAAY,uBAAuB;IAE/B,GAAG,QAAQ;IAEX,SAAS,cAAc;CAC1B;AAMD,MAAM,WAAW,iBAAiB;IAE9B,MAAM,EAAE,uBAAuB,CAAC;IAEhC,EAAE,EAAE,MAAM,CAAC;IAEX,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,8BAA8B,EAAE,CAAC,MAAM,iBAAiB,CAAC,EAA6C,CAAC"}
@@ -0,0 +1,16 @@
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
+ /** Where a referenced template comes from. */ var TemplateReferenceSource = /*#__PURE__*/ function(TemplateReferenceSource) {
4
+ /** A template the user created in the workspace. */ TemplateReferenceSource["Own"] = "Own";
5
+ /** A template shipped by a blueprint package, referenced by blueprint name, template name and version range. */ TemplateReferenceSource["Blueprint"] = "Blueprint";
6
+ return TemplateReferenceSource;
7
+ }({});
8
+ const TemplateReferencePropertyNames = [
9
+ 'source',
10
+ 'id',
11
+ 'blueprint',
12
+ 'version'
13
+ ];
14
+
15
+ export { TemplateReferencePropertyNames, TemplateReferenceSource };
16
+ //# sourceMappingURL=TemplateReference.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TemplateReference.js","sources":["../../../screens/TemplateReference.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/** Where a referenced template comes from. */\nexport enum TemplateReferenceSource {\n /** A template the user created in the workspace. */\n Own = 'Own',\n /** A template shipped by a blueprint package, referenced by blueprint name, template name and version range. */\n Blueprint = 'Blueprint',\n}\n\n/**\n * How a module, feature or slice refers to the template it uses: an own template by name, or a blueprint\n * template by blueprint, name and the version range of the blueprint it was chosen from.\n */\nexport interface TemplateReference {\n /** Whether the template is the user's own or comes from a blueprint. */\n source: TemplateReferenceSource;\n /** The template's name - within the workspace for an own template, within the blueprint for a blueprint template. */\n id: string;\n /** The blueprint package name. Present exactly when `source` is {@link TemplateReferenceSource.Blueprint}. */\n blueprint?: string;\n /**\n * The semver range of the blueprint the reference accepts, such as `^1.2.0`. Defaults to the caret range of the\n * installed blueprint version when a reference is created; absent means any version. Only meaningful for a blueprint reference.\n */\n version?: string;\n}\n\nexport const TemplateReferencePropertyNames: (keyof TemplateReference)[] = ['source', 'id', 'blueprint', 'version'];\n"],"names":["TemplateReferenceSource","TemplateReferencePropertyNames"],"mappings":"AAAA;AACA;AAEA,+CACO,IAAKA,uBAAAA,iBAAAA,SAAAA,uBAAAA,EAAAA;yDAC0C,uBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;qHAE4D,uBAAA,CAAA,WAAA,CAAA,GAAA,WAAA;AAHtGA,IAAAA,OAAAA,uBAAAA;AAKX,CAAA,CAAA,EAAA;MAoBYC,8BAAAA,GAA8D;AAAC,IAAA,QAAA;AAAU,IAAA,IAAA;AAAM,IAAA,WAAA;AAAa,IAAA;;;"}
@@ -5,4 +5,5 @@ export * from './DialogTemplate';
5
5
  export * from './TemplateAttribution';
6
6
  export * from './TemplateCompatibility';
7
7
  export * from './TemplateMetadata';
8
+ export * from './TemplateReference';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -5,4 +5,5 @@ export * from './DialogTemplate';
5
5
  export * from './TemplateAttribution';
6
6
  export * from './TemplateCompatibility';
7
7
  export * from './TemplateMetadata';
8
+ export * from './TemplateReference';
8
9
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}