@cratis/scene.model 4.68.3 → 4.69.1

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/dist/cjs/index.js +12 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/profiles/CornerStyle.js +13 -0
  4. package/dist/cjs/profiles/CornerStyle.js.map +1 -0
  5. package/dist/cjs/profiles/LogoKind.js +13 -0
  6. package/dist/cjs/profiles/LogoKind.js.map +1 -0
  7. package/dist/cjs/profiles/ProfileAppearance.js +3 -1
  8. package/dist/cjs/profiles/ProfileAppearance.js.map +1 -1
  9. package/dist/cjs/profiles/ProfileIdentity.js +12 -0
  10. package/dist/cjs/profiles/ProfileIdentity.js.map +1 -0
  11. package/dist/cjs/profiles/ProfileLogo.js +13 -0
  12. package/dist/cjs/profiles/ProfileLogo.js.map +1 -0
  13. package/dist/cjs/profiles/UiProfile.js +2 -1
  14. package/dist/cjs/profiles/UiProfile.js.map +1 -1
  15. package/dist/cjs/sampleData/SampleDataPackReference.js +6 -5
  16. package/dist/cjs/sampleData/SampleDataPackReference.js.map +1 -1
  17. package/dist/cjs/sampleData/SampleStatus.js +14 -0
  18. package/dist/cjs/sampleData/SampleStatus.js.map +1 -0
  19. package/dist/cjs/sampleData/SampleStatusClassification.js +13 -0
  20. package/dist/cjs/sampleData/SampleStatusClassification.js.map +1 -0
  21. package/dist/cjs/screens/TemplateMetadata.js +4 -1
  22. package/dist/cjs/screens/TemplateMetadata.js.map +1 -1
  23. package/dist/esm/index.js +6 -0
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/profiles/CornerStyle.d.ts +6 -0
  26. package/dist/esm/profiles/CornerStyle.d.ts.map +1 -0
  27. package/dist/esm/profiles/CornerStyle.js +11 -0
  28. package/dist/esm/profiles/CornerStyle.js.map +1 -0
  29. package/dist/esm/profiles/LogoKind.d.ts +6 -0
  30. package/dist/esm/profiles/LogoKind.d.ts.map +1 -0
  31. package/dist/esm/profiles/LogoKind.js +11 -0
  32. package/dist/esm/profiles/LogoKind.js.map +1 -0
  33. package/dist/esm/profiles/ProfileAppearance.d.ts +3 -0
  34. package/dist/esm/profiles/ProfileAppearance.d.ts.map +1 -1
  35. package/dist/esm/profiles/ProfileAppearance.js +3 -1
  36. package/dist/esm/profiles/ProfileAppearance.js.map +1 -1
  37. package/dist/esm/profiles/ProfileIdentity.d.ts +8 -0
  38. package/dist/esm/profiles/ProfileIdentity.d.ts.map +1 -0
  39. package/dist/esm/profiles/ProfileIdentity.js +10 -0
  40. package/dist/esm/profiles/ProfileIdentity.js.map +1 -0
  41. package/dist/esm/profiles/ProfileLogo.d.ts +9 -0
  42. package/dist/esm/profiles/ProfileLogo.d.ts.map +1 -0
  43. package/dist/esm/profiles/ProfileLogo.js +11 -0
  44. package/dist/esm/profiles/ProfileLogo.js.map +1 -0
  45. package/dist/esm/profiles/UiProfile.d.ts +2 -0
  46. package/dist/esm/profiles/UiProfile.d.ts.map +1 -1
  47. package/dist/esm/profiles/UiProfile.js +2 -1
  48. package/dist/esm/profiles/UiProfile.js.map +1 -1
  49. package/dist/esm/profiles/index.d.ts +4 -0
  50. package/dist/esm/profiles/index.d.ts.map +1 -1
  51. package/dist/esm/profiles/index.js +4 -0
  52. package/dist/esm/profiles/index.js.map +1 -1
  53. package/dist/esm/sampleData/SampleDataPackReference.d.ts +5 -0
  54. package/dist/esm/sampleData/SampleDataPackReference.d.ts.map +1 -1
  55. package/dist/esm/sampleData/SampleDataPackReference.js +6 -5
  56. package/dist/esm/sampleData/SampleDataPackReference.js.map +1 -1
  57. package/dist/esm/sampleData/SampleStatus.d.ts +7 -0
  58. package/dist/esm/sampleData/SampleStatus.d.ts.map +1 -0
  59. package/dist/esm/sampleData/SampleStatus.js +12 -0
  60. package/dist/esm/sampleData/SampleStatus.js.map +1 -0
  61. package/dist/esm/sampleData/SampleStatusClassification.d.ts +8 -0
  62. package/dist/esm/sampleData/SampleStatusClassification.d.ts.map +1 -0
  63. package/dist/esm/sampleData/SampleStatusClassification.js +11 -0
  64. package/dist/esm/sampleData/SampleStatusClassification.js.map +1 -0
  65. package/dist/esm/sampleData/index.d.ts +2 -0
  66. package/dist/esm/sampleData/index.d.ts.map +1 -1
  67. package/dist/esm/sampleData/index.js +2 -0
  68. package/dist/esm/sampleData/index.js.map +1 -1
  69. package/dist/esm/screens/TemplateMetadata.d.ts +3 -0
  70. package/dist/esm/screens/TemplateMetadata.d.ts.map +1 -1
  71. package/dist/esm/screens/TemplateMetadata.js +4 -1
  72. package/dist/esm/screens/TemplateMetadata.js.map +1 -1
  73. package/dist/esm/tsconfig.tsbuildinfo +1 -1
  74. package/package.json +1 -1
  75. package/profiles/CornerStyle.ts +14 -0
  76. package/profiles/LogoKind.ts +14 -0
  77. package/profiles/ProfileAppearance.ts +9 -2
  78. package/profiles/ProfileIdentity.ts +21 -0
  79. package/profiles/ProfileLogo.ts +27 -0
  80. package/profiles/UiProfile.ts +6 -1
  81. package/profiles/index.ts +4 -0
  82. package/sampleData/SampleDataPackReference.ts +15 -1
  83. package/sampleData/SampleStatus.ts +17 -0
  84. package/sampleData/SampleStatusClassification.ts +15 -0
  85. package/sampleData/index.ts +2 -0
  86. package/screens/TemplateMetadata.ts +10 -1
@@ -1 +1 @@
1
- {"version":3,"file":"SampleDataPackReference.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleDataPackReference.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,oCAAoC,EAAE,CAAC,MAAM,uBAAuB,CAAC,EAAsC,CAAC"}
1
+ {"version":3,"file":"SampleDataPackReference.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleDataPackReference.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAM1E,MAAM,WAAW,uBAAuB;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAGnB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,QAAQ,CAAC,EAAE,0BAA0B,CAAC;CACzC;AAED,eAAO,MAAM,oCAAoC,EAAE,CAAC,MAAM,uBAAuB,CAAC,EAA4F,CAAC"}
@@ -1,13 +1,14 @@
1
1
  // Copyright (c) Cratis. All rights reserved.
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
- /**
4
- * How a {@link ScenePackage} declares a sample-data pack it ships: the pack's identity, enough to list it in
5
- * a selector without loading it, and where its JSON file lives (`sampleData/<name>.json`).
6
- */ const SampleDataPackReferencePropertyNames = [
3
+ const SampleDataPackReferencePropertyNames = [
7
4
  'id',
8
5
  'title',
9
6
  'locale',
10
- 'path'
7
+ 'path',
8
+ 'description',
9
+ 'columns',
10
+ 'statusColumn',
11
+ 'statuses'
11
12
  ];
12
13
 
13
14
  export { SampleDataPackReferencePropertyNames };
@@ -1 +1 @@
1
- {"version":3,"file":"SampleDataPackReference.js","sources":["../../../sampleData/SampleDataPackReference.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 a {@link ScenePackage} declares a sample-data pack it ships: the pack's identity, enough to list it in\n * a selector without loading it, and where its JSON file lives (`sampleData/<name>.json`).\n */\nexport interface SampleDataPackReference {\n /** The pack's identity; must equal the `id` inside the file. */\n id: string;\n\n /** The display name shown in a selector. */\n title: string;\n\n /** The BCP 47 locale tag of the pack's data. */\n locale: string;\n\n /** The package-relative path of the pack file, under `sampleData/` and ending in `.json`. */\n path: string;\n}\n\nexport const SampleDataPackReferencePropertyNames: (keyof SampleDataPackReference)[] = ['id', 'title', 'locale', 'path'];\n"],"names":["SampleDataPackReferencePropertyNames"],"mappings":"AAAA;AACA;AAEA;;;UAkBaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,QAAA;AAAU,IAAA;;;"}
1
+ {"version":3,"file":"SampleDataPackReference.js","sources":["../../../sampleData/SampleDataPackReference.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 { SampleStatusClassification } from './SampleStatusClassification';\n\n/**\n * How a {@link ScenePackage} declares a sample-data pack it ships: the pack's identity, enough to list it in\n * a selector without loading it, and where its JSON file lives (`sampleData/<name>.json`).\n */\nexport interface SampleDataPackReference {\n /** The pack's identity; must equal the `id` inside the file. */\n id: string;\n\n /** The display name shown in a selector. */\n title: string;\n\n /** The BCP 47 locale tag of the pack's data. */\n locale: string;\n\n /** The package-relative path of the pack file, under `sampleData/` and ending in `.json`. */\n path: string;\n\n /** One line saying what the pack is, shown under its name in a selector. */\n description?: string;\n\n /** The names of the pack's main table's columns, in the order a preview shows them. */\n columns?: string[];\n\n /** The column whose values are drawn as status pills. */\n statusColumn?: string;\n\n /** Which values of the status column are good, pending, bad or neutral; any other value is neutral. */\n statuses?: SampleStatusClassification;\n}\n\nexport const SampleDataPackReferencePropertyNames: (keyof SampleDataPackReference)[] = ['id', 'title', 'locale', 'path', 'description', 'columns', 'statusColumn', 'statuses'];\n"],"names":["SampleDataPackReferencePropertyNames"],"mappings":"AAAA;AACA;MAkCaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,OAAA;AAAS,IAAA,QAAA;AAAU,IAAA,MAAA;AAAQ,IAAA,aAAA;AAAe,IAAA,SAAA;AAAW,IAAA,cAAA;AAAgB,IAAA;;;"}
@@ -0,0 +1,7 @@
1
+ export declare enum SampleStatus {
2
+ Good = "good",
3
+ Pending = "pending",
4
+ Bad = "bad",
5
+ Neutral = "neutral"
6
+ }
7
+ //# sourceMappingURL=SampleStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SampleStatus.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleStatus.ts"],"names":[],"mappings":"AAIA,oBAAY,YAAY;IAEpB,IAAI,SAAS;IAGb,OAAO,YAAY;IAGnB,GAAG,QAAQ;IAGX,OAAO,YAAY;CACtB"}
@@ -0,0 +1,12 @@
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
+ /** How a pill for a status value is coloured. */ var SampleStatus = /*#__PURE__*/ function(SampleStatus) {
4
+ /** A positive state: active, delivered, approved. */ SampleStatus["Good"] = "good";
5
+ /** A state that is in progress or waiting. */ SampleStatus["Pending"] = "pending";
6
+ /** A negative state: rejected, overdue, out of stock. */ SampleStatus["Bad"] = "bad";
7
+ /** Anything else; the class of every value the pack does not name. */ SampleStatus["Neutral"] = "neutral";
8
+ return SampleStatus;
9
+ }({});
10
+
11
+ export { SampleStatus };
12
+ //# sourceMappingURL=SampleStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SampleStatus.js","sources":["../../../sampleData/SampleStatus.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/** How a pill for a status value is coloured. */\nexport enum SampleStatus {\n /** A positive state: active, delivered, approved. */\n Good = 'good',\n\n /** A state that is in progress or waiting. */\n Pending = 'pending',\n\n /** A negative state: rejected, overdue, out of stock. */\n Bad = 'bad',\n\n /** Anything else; the class of every value the pack does not name. */\n Neutral = 'neutral',\n}\n"],"names":["SampleStatus"],"mappings":"AAAA;AACA;AAEA,kDACO,IAAKA,YAAAA,iBAAAA,SAAAA,YAAAA,EAAAA;0DAC2C,YAAA,CAAA,MAAA,CAAA,GAAA,MAAA;mDAGP,YAAA,CAAA,SAAA,CAAA,GAAA,SAAA;8DAGW,YAAA,CAAA,KAAA,CAAA,GAAA,KAAA;2EAGa,YAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AAV5DA,IAAAA,OAAAA,YAAAA;AAYX,CAAA,CAAA,EAAA;;"}
@@ -0,0 +1,8 @@
1
+ export interface SampleStatusClassification {
2
+ good?: string[];
3
+ pending?: string[];
4
+ bad?: string[];
5
+ neutral?: string[];
6
+ }
7
+ export declare const SampleStatusClassificationPropertyNames: (keyof SampleStatusClassification)[];
8
+ //# sourceMappingURL=SampleStatusClassification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SampleStatusClassification.d.ts","sourceRoot":"","sources":["../../../sampleData/SampleStatusClassification.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,0BAA0B;IACvC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;IAEf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,eAAO,MAAM,uCAAuC,EAAE,CAAC,MAAM,0BAA0B,CAAC,EAA0C,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
+ /** Which values of a pack's status column belong to which {@link SampleStatus}. A value in none of the lists is neutral. */ const SampleStatusClassificationPropertyNames = [
4
+ 'good',
5
+ 'pending',
6
+ 'bad',
7
+ 'neutral'
8
+ ];
9
+
10
+ export { SampleStatusClassificationPropertyNames };
11
+ //# sourceMappingURL=SampleStatusClassification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SampleStatusClassification.js","sources":["../../../sampleData/SampleStatusClassification.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/** Which values of a pack's status column belong to which {@link SampleStatus}. A value in none of the lists is neutral. */\nexport interface SampleStatusClassification {\n good?: string[];\n\n pending?: string[];\n\n bad?: string[];\n\n neutral?: string[];\n}\n\nexport const SampleStatusClassificationPropertyNames: (keyof SampleStatusClassification)[] = ['good', 'pending', 'bad', 'neutral'];\n"],"names":["SampleStatusClassificationPropertyNames"],"mappings":"AAAA;AACA;AAEA,6HAWO,MAAMA,uCAAAA,GAAgF;AAAC,IAAA,MAAA;AAAQ,IAAA,SAAA;AAAW,IAAA,KAAA;AAAO,IAAA;;;"}
@@ -7,4 +7,6 @@ export * from './SampleDataPackReference';
7
7
  export * from './SampleDataMapping';
8
8
  export * from './SampleDataBinding';
9
9
  export * from './SampleDataSelection';
10
+ export * from './SampleStatus';
11
+ export * from './SampleStatusClassification';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../sampleData/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../sampleData/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC"}
@@ -7,4 +7,6 @@ export * from './SampleDataPackReference';
7
7
  export * from './SampleDataMapping';
8
8
  export * from './SampleDataBinding';
9
9
  export * from './SampleDataSelection';
10
+ export * from './SampleStatus';
11
+ export * from './SampleStatusClassification';
10
12
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../sampleData/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../sampleData/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC"}
@@ -23,6 +23,9 @@ export interface TemplateMetadata {
23
23
  thumbnail?: string;
24
24
  role?: TemplateRole;
25
25
  primaryOutlet?: string;
26
+ defaultMenuMode?: string;
27
+ displayName?: string;
28
+ description?: string;
26
29
  }
27
30
  export declare const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[];
28
31
  //# 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;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIzC,oBAAY,YAAY;IAKpB,IAAI,SAAS;CAChB;AAED,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;IAGzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,YAAY,CAAC;IAGpB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;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;AAIzC,oBAAY,YAAY;IAKpB,IAAI,SAAS;CAChB;AAED,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;IAGzB,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,IAAI,CAAC,EAAE,YAAY,CAAC;IAGpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,6BAA6B,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAEnE,CAAC"}
@@ -26,7 +26,10 @@ const TemplateMetadataPropertyNames = [
26
26
  'sliceKinds',
27
27
  'thumbnail',
28
28
  'role',
29
- 'primaryOutlet'
29
+ 'primaryOutlet',
30
+ 'defaultMenuMode',
31
+ 'displayName',
32
+ 'description'
30
33
  ];
31
34
 
32
35
  export { TemplateMetadataPropertyNames, TemplateRole, 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';\nimport { SliceKind } from '../structure';\n\n/** The application hierarchy at which a reusable template is selected. */\n/** A structural role a template can take beyond its kind. */\nexport enum TemplateRole {\n /**\n * The application's root template - its shell. A screen template with this role and scope Application can be the shell\n * of an application exactly like a layout; it fits no slot of anything else.\n */\n Root = 'Root',\n}\n\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 /** The package-relative path of the template's gallery thumbnail (`thumbnails/<name>.png|webp|jpg|svg`); required of every template of a domain blueprint. */\n thumbnail?: string;\n\n /** A structural role beyond the template's kind. `Root` marks a screen template that can be an application's shell. */\n role?: TemplateRole;\n\n /** For a shell: the name of the slot every screen's content is placed in. Absent means `content`. */\n primaryOutlet?: string;\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl', 'sliceKinds', 'thumbnail', 'role', 'primaryOutlet',\n];\n"],"names":["TemplateRole","TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;AAMA,yIAEO,IAAA,YAAKA,iBAAAA,SAAAA,YAAAA,EAAAA;AACR;;;AAGC,QAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAJOA,IAAAA,OAAAA,YAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,aAAKC,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MAsCYC,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,YAAA;AAAc,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,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. */\n/** A structural role a template can take beyond its kind. */\nexport enum TemplateRole {\n /**\n * The application's root template - its shell. A screen template with this role and scope Application can be the shell\n * of an application exactly like a layout; it fits no slot of anything else.\n */\n Root = 'Root',\n}\n\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 /** The package-relative path of the template's gallery thumbnail (`thumbnails/<name>.png|webp|jpg|svg`); required of every template of a domain blueprint. */\n thumbnail?: string;\n\n /** A structural role beyond the template's kind. `Root` marks a screen template that can be an application's shell. */\n role?: TemplateRole;\n\n /** For a shell: the name of the slot every screen's content is placed in. Absent means `content`. */\n primaryOutlet?: string;\n\n /** For a shell: the navigation mode the application starts in when the shell is chosen. The author can change it afterwards. */\n defaultMenuMode?: string;\n\n /** For a shell offered as a card: its title. Falls back to the template's display name, then its name. */\n displayName?: string;\n\n /** For a shell offered as a card: its one-line description. */\n description?: string;\n}\n\nexport const TemplateMetadataPropertyNames: (keyof TemplateMetadata)[] = [\n 'type', 'category', 'scopes', 'compatibility', 'attribution', 'license', 'licenseUrl', 'sliceKinds', 'thumbnail', 'role', 'primaryOutlet', 'defaultMenuMode', 'displayName', 'description',\n];\n"],"names":["TemplateRole","TemplateScope","TemplateMetadataPropertyNames"],"mappings":"AAAA;AACA;AAMA,yIAEO,IAAA,YAAKA,iBAAAA,SAAAA,YAAAA,EAAAA;AACR;;;AAGC,QAAA,YAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AAJOA,IAAAA,OAAAA,YAAAA;AAMX,CAAA,CAAA,EAAA;AAEM,IAAA,aAAKC,iBAAAA,SAAAA,aAAAA,EAAAA;;;;;;AAAAA,IAAAA,OAAAA,aAAAA;AAMX,CAAA,CAAA,EAAA;MA+CYC,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,YAAA;AAAc,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,eAAA;AAAiB,IAAA,iBAAA;AAAmB,IAAA,aAAA;AAAe,IAAA;;;"}