@cratis/scene.blueprint.vendors 0.0.0-stage → 4.78.3

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 (132) hide show
  1. package/README.md +69 -2
  2. package/blueprint.ts +16 -0
  3. package/blueprintCatalog.json +107 -0
  4. package/dist/cjs/blueprint.js +19 -0
  5. package/dist/cjs/blueprint.js.map +1 -0
  6. package/dist/cjs/index.js +68 -0
  7. package/dist/cjs/index.js.map +1 -0
  8. package/dist/cjs/manifest.js +87 -0
  9. package/dist/cjs/manifest.js.map +1 -0
  10. package/dist/cjs/navigation.js +109 -0
  11. package/dist/cjs/navigation.js.map +1 -0
  12. package/dist/cjs/package.json +3 -0
  13. package/dist/cjs/packageName.js +8 -0
  14. package/dist/cjs/packageName.js.map +1 -0
  15. package/dist/cjs/screens/index.js +22 -0
  16. package/dist/cjs/screens/index.js.map +1 -0
  17. package/dist/cjs/templateProvenance.js +24 -0
  18. package/dist/cjs/templateProvenance.js.map +1 -0
  19. package/dist/cjs/templates/boardTemplate.js +78 -0
  20. package/dist/cjs/templates/boardTemplate.js.map +1 -0
  21. package/dist/cjs/templates/dashboardTemplates.js +151 -0
  22. package/dist/cjs/templates/dashboardTemplates.js.map +1 -0
  23. package/dist/cjs/templates/formTemplates.js +50 -0
  24. package/dist/cjs/templates/formTemplates.js.map +1 -0
  25. package/dist/cjs/templates/index.js +25 -0
  26. package/dist/cjs/templates/index.js.map +1 -0
  27. package/dist/cjs/templates/listTemplates.js +145 -0
  28. package/dist/cjs/templates/listTemplates.js.map +1 -0
  29. package/dist/cjs/templates/recordTemplates.js +135 -0
  30. package/dist/cjs/templates/recordTemplates.js.map +1 -0
  31. package/dist/cjs/vendorsApplication.js +49 -0
  32. package/dist/cjs/vendorsApplication.js.map +1 -0
  33. package/dist/cjs/vendorsParts.js +151 -0
  34. package/dist/cjs/vendorsParts.js.map +1 -0
  35. package/dist/cjs/vendorsQueries.js +64 -0
  36. package/dist/cjs/vendorsQueries.js.map +1 -0
  37. package/dist/cjs/vendorsScreenSet.js +40 -0
  38. package/dist/cjs/vendorsScreenSet.js.map +1 -0
  39. package/dist/esm/blueprint.d.ts +3 -0
  40. package/dist/esm/blueprint.d.ts.map +1 -0
  41. package/dist/esm/blueprint.js +17 -0
  42. package/dist/esm/blueprint.js.map +1 -0
  43. package/dist/esm/index.d.ts +12 -0
  44. package/dist/esm/index.d.ts.map +1 -0
  45. package/dist/esm/index.js +18 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/manifest.d.ts +3 -0
  48. package/dist/esm/manifest.d.ts.map +1 -0
  49. package/dist/esm/manifest.js +85 -0
  50. package/dist/esm/manifest.js.map +1 -0
  51. package/dist/esm/navigation.d.ts +5 -0
  52. package/dist/esm/navigation.d.ts.map +1 -0
  53. package/dist/esm/navigation.js +105 -0
  54. package/dist/esm/navigation.js.map +1 -0
  55. package/dist/esm/package.json +3 -0
  56. package/dist/esm/packageName.d.ts +2 -0
  57. package/dist/esm/packageName.d.ts.map +1 -0
  58. package/dist/esm/packageName.js +6 -0
  59. package/dist/esm/packageName.js.map +1 -0
  60. package/dist/esm/screens/index.d.ts +3 -0
  61. package/dist/esm/screens/index.d.ts.map +1 -0
  62. package/dist/esm/screens/index.js +20 -0
  63. package/dist/esm/screens/index.js.map +1 -0
  64. package/dist/esm/templateProvenance.d.ts +3 -0
  65. package/dist/esm/templateProvenance.d.ts.map +1 -0
  66. package/dist/esm/templateProvenance.js +22 -0
  67. package/dist/esm/templateProvenance.js.map +1 -0
  68. package/dist/esm/templates/boardTemplate.d.ts +3 -0
  69. package/dist/esm/templates/boardTemplate.d.ts.map +1 -0
  70. package/dist/esm/templates/boardTemplate.js +76 -0
  71. package/dist/esm/templates/boardTemplate.js.map +1 -0
  72. package/dist/esm/templates/dashboardTemplates.d.ts +3 -0
  73. package/dist/esm/templates/dashboardTemplates.d.ts.map +1 -0
  74. package/dist/esm/templates/dashboardTemplates.js +149 -0
  75. package/dist/esm/templates/dashboardTemplates.js.map +1 -0
  76. package/dist/esm/templates/formTemplates.d.ts +3 -0
  77. package/dist/esm/templates/formTemplates.d.ts.map +1 -0
  78. package/dist/esm/templates/formTemplates.js +48 -0
  79. package/dist/esm/templates/formTemplates.js.map +1 -0
  80. package/dist/esm/templates/index.d.ts +8 -0
  81. package/dist/esm/templates/index.d.ts.map +1 -0
  82. package/dist/esm/templates/index.js +17 -0
  83. package/dist/esm/templates/index.js.map +1 -0
  84. package/dist/esm/templates/listTemplates.d.ts +3 -0
  85. package/dist/esm/templates/listTemplates.d.ts.map +1 -0
  86. package/dist/esm/templates/listTemplates.js +143 -0
  87. package/dist/esm/templates/listTemplates.js.map +1 -0
  88. package/dist/esm/templates/recordTemplates.d.ts +3 -0
  89. package/dist/esm/templates/recordTemplates.d.ts.map +1 -0
  90. package/dist/esm/templates/recordTemplates.js +133 -0
  91. package/dist/esm/templates/recordTemplates.js.map +1 -0
  92. package/dist/esm/tsconfig.tsbuildinfo +1 -0
  93. package/dist/esm/vendorsApplication.d.ts +10 -0
  94. package/dist/esm/vendorsApplication.d.ts.map +1 -0
  95. package/dist/esm/vendorsApplication.js +44 -0
  96. package/dist/esm/vendorsApplication.js.map +1 -0
  97. package/dist/esm/vendorsParts.d.ts +16 -0
  98. package/dist/esm/vendorsParts.d.ts.map +1 -0
  99. package/dist/esm/vendorsParts.js +133 -0
  100. package/dist/esm/vendorsParts.js.map +1 -0
  101. package/dist/esm/vendorsQueries.d.ts +38 -0
  102. package/dist/esm/vendorsQueries.d.ts.map +1 -0
  103. package/dist/esm/vendorsQueries.js +56 -0
  104. package/dist/esm/vendorsQueries.js.map +1 -0
  105. package/dist/esm/vendorsScreenSet.d.ts +7 -0
  106. package/dist/esm/vendorsScreenSet.d.ts.map +1 -0
  107. package/dist/esm/vendorsScreenSet.js +38 -0
  108. package/dist/esm/vendorsScreenSet.js.map +1 -0
  109. package/index.ts +14 -0
  110. package/manifest.ts +41 -0
  111. package/navigation.ts +53 -0
  112. package/package.json +78 -4
  113. package/packageName.ts +5 -0
  114. package/sampleData/vendors-en.json +863 -0
  115. package/screens/index.ts +20 -0
  116. package/templateProvenance.ts +15 -0
  117. package/templates/boardTemplate.ts +54 -0
  118. package/templates/dashboardTemplates.ts +76 -0
  119. package/templates/formTemplates.ts +33 -0
  120. package/templates/index.ts +18 -0
  121. package/templates/listTemplates.ts +96 -0
  122. package/templates/recordTemplates.ts +78 -0
  123. package/thumbnails/VendorPage.svg +17 -0
  124. package/thumbnails/VendorsList.svg +29 -0
  125. package/thumbnails/VendorsOnboardingBoard.svg +23 -0
  126. package/thumbnails/VendorsPerformance.svg +15 -0
  127. package/thumbnails/VendorsQuickCreateVendor.svg +12 -0
  128. package/thumbnails/vendors.svg +14 -0
  129. package/vendorsApplication.ts +28 -0
  130. package/vendorsParts.ts +58 -0
  131. package/vendorsQueries.ts +56 -0
  132. package/vendorsScreenSet.ts +21 -0
package/README.md CHANGED
@@ -1,3 +1,70 @@
1
- # Temporary Holding Version
1
+ # Cratis Scene
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Cratis Scene is an experimental UI model and runtime for developers building platform-independent,
4
+ Screenplay-based user interfaces.
5
+
6
+ **Describing a user interface without describing a platform** — Scene is the UI model of the Cratis
7
+ model-first layer (experimental).
8
+
9
+ The object model and runtime for Screenplay-based UIs: `Scene.Model` (platform-agnostic screens, layouts,
10
+ forms, contribution points, ui profiles and themes), `Scene.Engine` (binding/resolution runtime), and
11
+ `Scene.React` (the React renderer).
12
+
13
+ ## Packages / Deployables
14
+
15
+ [![Nuget](https://img.shields.io/nuget/v/Cratis.Scene.Model?logo=nuget)](http://nuget.org/packages/Cratis.Scene.Model)
16
+ [![NPM](https://img.shields.io/npm/v/@cratis/scene.model?label=@cratis/scene.model&logo=npm)](https://www.npmjs.com/package/@cratis/scene.model)
17
+ [![NPM](https://img.shields.io/npm/v/@cratis/scene.engine?label=@cratis/scene.engine&logo=npm)](https://www.npmjs.com/package/@cratis/scene.engine)
18
+ [![NPM](https://img.shields.io/npm/v/@cratis/scene.react?label=@cratis/scene.react&logo=npm)](https://www.npmjs.com/package/@cratis/scene.react)
19
+
20
+ ## Builds
21
+
22
+ [![.NET Build](https://github.com/cratis/scene/actions/workflows/dotnet-build.yml/badge.svg)](https://github.com/cratis/scene/actions/workflows/dotnet-build.yml)
23
+ [![JavaScript Build](https://github.com/cratis/scene/actions/workflows/javascript-build.yml/badge.svg)](https://github.com/cratis/scene/actions/workflows/javascript-build.yml)
24
+
25
+ ## Description
26
+
27
+ Scene owns the *object model and runtime* half of the Screenplay stack. In the model-first pipeline,
28
+ [Screenplay](https://github.com/Cratis/Screenplay) describes an event-sourced, CQRS system,
29
+ [Stage](https://github.com/Cratis/Stage) renders it into a running application, and Scene is how that
30
+ application's user interface is described — independently of any rendering platform.
31
+
32
+ `Scene.Model` is the platform-agnostic
33
+ C# object model that [Stage](https://github.com/Cratis/Stage) translates Screenplay's parsed language constructs into, and that [Studio](https://github.com/Cratis/Studio)'s
34
+ design-time tooling reads and writes. `Scene.Engine` walks that graph, resolves bindings (data, action, form,
35
+ navigation contribution) and drives whichever renderer is plugged in — it does not know React exists.
36
+ `Scene.React` is one renderer implementing the abstract vocabulary against real React/DOM; sibling positions
37
+ are reserved for future `Scene.Native` / `Scene.Desktop` renderers. Vendor and internal component packages
38
+ (PrimeReact, internal widget libraries) are adapters plugging into the renderer contract, not part of it.
39
+
40
+ The design-time editor built on top of this object model lives in Studio, not here — see
41
+ [StudioIssues#156](https://github.com/Cratis/StudioIssues/issues/156).
42
+
43
+ ## Support
44
+
45
+ Cratis is an open community, and we are glad to help users, teams evaluating the stack, and contributors.
46
+
47
+ | Channel | Details |
48
+ |---|---|
49
+ | Discord | Join the community on [Discord](https://discord.gg/kt4AMpV8WV) for questions and discussions |
50
+ | GitHub Issues | [Report bugs or request features](https://github.com/Cratis/Scene/issues) |
51
+ | Documentation | Read the docs at [cratis.io](https://www.cratis.io) |
52
+
53
+ ## The Cratis ecosystem
54
+
55
+ This project is part of [Cratis](https://www.cratis.io) — free, MIT-licensed tools for building event-sourced and CQRS applications.
56
+
57
+ - **[Chronicle](https://github.com/Cratis/Chronicle)** — event-sourcing database and runtime. Orleans-based kernel, pluggable storage (MongoDB default; PostgreSQL, SQL Server, SQLite, in-memory), language-agnostic gRPC contracts. [Docs](https://www.cratis.io/chronicle/)
58
+ - **Chronicle clients** — first-class [.NET SDK](https://github.com/Cratis/Chronicle), plus [TypeScript](https://github.com/Cratis/Chronicle.TypeScript), [Kotlin/Java](https://github.com/Cratis/Chronicle.Kotlin), and [Elixir](https://github.com/Cratis/Chronicle.Elixir); [Python](https://github.com/Cratis/Chronicle.Python) coming soon (pre-alpha). AI agents connect through the [Chronicle MCP server](https://github.com/Cratis/Chronicle.Mcp).
59
+ - **[Arc](https://github.com/Cratis/Arc)** — opinionated CQRS framework for ASP.NET Core with commands, queries, validation, authorization, and TypeScript proxy generation. Works without event sourcing. [Docs](https://www.cratis.io/arc/)
60
+ - **[Components](https://github.com/Cratis/Components)** — React components aligned with Arc patterns. [Docs](https://www.cratis.io/components/)
61
+ - **[CLI](https://github.com/Cratis/cli) + Workbench** — inspect and diagnose Chronicle from the terminal or the browser. [Docs](https://www.cratis.io/cli/)
62
+ - **Model-first layer (experimental)** — [Studio](https://github.com/Cratis/Studio), [Screenplay](https://github.com/Cratis/Screenplay), [Stage](https://github.com/Cratis/Stage), Scene (this repository), [Prologue](https://github.com/Cratis/Prologue)
63
+ - **Supporting** — [Fundamentals](https://github.com/Cratis/Fundamentals), [Specifications](https://github.com/Cratis/Specifications), [Synopsis](https://github.com/Cratis/Synopsis), [Lens](https://github.com/Cratis/Lens), [Narrator](https://github.com/Cratis/Narrator), and free [AI tooling](https://github.com/Cratis/AI) (preview); [Ensemble](https://github.com/Cratis/Ensemble) coming soon (pre-release)
64
+ - **[Samples](https://github.com/Cratis/Samples)** — runnable event sourcing and CQRS samples for the whole stack
65
+
66
+ Everything Cratis publishes today is MIT licensed and free to use.
67
+
68
+ ---
69
+
70
+ Part of the [Cratis](https://www.cratis.io) platform · [MIT](./LICENSE)
package/blueprint.ts ADDED
@@ -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
+
4
+ import { ScenePackageBundle } from '@cratis/scene.react';
5
+ import { vendorsBlueprintManifest } from './manifest';
6
+ import { vendorsScreens } from './screens';
7
+ import { vendorsDialogTemplates, vendorsScreenTemplates } from './templates';
8
+
9
+ /** This blueprint as a loadable bundle: the manifest names things, this provides them. It provides no component - every component is the foundation's. */
10
+ export const vendorsBlueprint: ScenePackageBundle = {
11
+ manifest: vendorsBlueprintManifest,
12
+ components: {},
13
+ screenTemplates: vendorsScreenTemplates,
14
+ dialogTemplates: vendorsDialogTemplates,
15
+ screens: vendorsScreens,
16
+ };
@@ -0,0 +1,107 @@
1
+ {
2
+ "schema": 1,
3
+ "blueprints": [
4
+ {
5
+ "package": "Cratis.Blueprint.Vendors",
6
+ "version": "1.0.0",
7
+ "domain": "vendors",
8
+ "displayName": "Vendors",
9
+ "description": "Vendors for a purchasing team: a vendor list, a vendor page with its contacts, orders and certificates, an onboarding board and a performance dashboard.",
10
+ "thumbnail": "thumbnails/vendors.svg",
11
+ "license": "MIT",
12
+ "licenseUrl": "https://github.com/Cratis/Scene/blob/main/LICENSE",
13
+ "dependencies": [
14
+ {
15
+ "name": "Cratis.Blueprint.Default",
16
+ "versionRange": "^1.0.0"
17
+ }
18
+ ],
19
+ "screens": [
20
+ {
21
+ "name": "vendors.list",
22
+ "title": "Vendors",
23
+ "description": "Every vendor with what you spend with them and how they perform.",
24
+ "template": "VendorsList",
25
+ "order": 0
26
+ },
27
+ {
28
+ "name": "vendors.record",
29
+ "title": "Vendor",
30
+ "description": "One vendor: key facts, contacts, purchase orders, certificates and activity.",
31
+ "template": "VendorPage",
32
+ "parent": "vendors.list"
33
+ },
34
+ {
35
+ "name": "vendors.onboarding",
36
+ "title": "Onboarding",
37
+ "description": "Vendors in a column for each onboarding step: prospect, in review, approved and active.",
38
+ "template": "VendorsOnboardingBoard",
39
+ "order": 1
40
+ },
41
+ {
42
+ "name": "vendors.performance",
43
+ "title": "Performance",
44
+ "description": "How vendors perform: spend, on-time delivery and the vendors to watch.",
45
+ "template": "VendorsPerformance",
46
+ "order": 2
47
+ }
48
+ ],
49
+ "templates": [
50
+ {
51
+ "name": "VendorsList",
52
+ "kind": "ScreenTemplate",
53
+ "displayName": "Vendors list",
54
+ "description": "Every vendor with its category, country, spend, rating and status, filtered by category, status, country and account manager.",
55
+ "type": "List",
56
+ "category": "Business / Vendors",
57
+ "thumbnail": "thumbnails/VendorsList.svg"
58
+ },
59
+ {
60
+ "name": "VendorPage",
61
+ "kind": "ScreenTemplate",
62
+ "displayName": "Vendor page",
63
+ "description": "One vendor: status, spend, rating and open orders, its details, contacts, purchase orders and certificates, and its activity.",
64
+ "type": "Detail",
65
+ "category": "Business / Vendors",
66
+ "thumbnail": "thumbnails/VendorPage.svg"
67
+ },
68
+ {
69
+ "name": "VendorsOnboardingBoard",
70
+ "kind": "ScreenTemplate",
71
+ "displayName": "Vendors onboarding board",
72
+ "description": "Vendors as cards in a column for each onboarding step, moved by dragging or by menu.",
73
+ "type": "Board",
74
+ "category": "Business / Vendors",
75
+ "thumbnail": "thumbnails/VendorsOnboardingBoard.svg"
76
+ },
77
+ {
78
+ "name": "VendorsPerformance",
79
+ "kind": "ScreenTemplate",
80
+ "displayName": "Vendors performance",
81
+ "description": "Active vendors, spend this year, on-time delivery, spend by category, delivery over the quarters and the vendors to watch.",
82
+ "type": "Dashboard",
83
+ "category": "Business / Vendors",
84
+ "thumbnail": "thumbnails/VendorsPerformance.svg"
85
+ },
86
+ {
87
+ "name": "VendorsQuickCreateVendor",
88
+ "kind": "DialogTemplate",
89
+ "displayName": "Vendors quick create vendor",
90
+ "description": "A short form that creates one vendor without leaving the page.",
91
+ "type": "Dialog",
92
+ "category": "Business / Vendors",
93
+ "thumbnail": "thumbnails/VendorsQuickCreateVendor.svg"
94
+ }
95
+ ],
96
+ "sampleData": [
97
+ {
98
+ "id": "vendors-en",
99
+ "title": "Vendors · English",
100
+ "locale": "en-GB",
101
+ "path": "sampleData/vendors-en.json",
102
+ "default": true
103
+ }
104
+ ]
105
+ }
106
+ ]
107
+ }
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ var manifest = require('./manifest.js');
4
+ var index = require('./screens/index.js');
5
+ var index$1 = require('./templates/index.js');
6
+ var formTemplates = require('./templates/formTemplates.js');
7
+
8
+ // Copyright (c) Cratis. All rights reserved.
9
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
10
+ /** This blueprint as a loadable bundle: the manifest names things, this provides them. It provides no component - every component is the foundation's. */ const vendorsBlueprint = {
11
+ manifest: manifest.vendorsBlueprintManifest,
12
+ components: {},
13
+ screenTemplates: index$1.vendorsScreenTemplates,
14
+ dialogTemplates: formTemplates.vendorsDialogs,
15
+ screens: index.vendorsScreens
16
+ };
17
+
18
+ exports.vendorsBlueprint = vendorsBlueprint;
19
+ //# sourceMappingURL=blueprint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprint.js","sources":["../../blueprint.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 { ScenePackageBundle } from '@cratis/scene.react';\nimport { vendorsBlueprintManifest } from './manifest';\nimport { vendorsScreens } from './screens';\nimport { vendorsDialogTemplates, vendorsScreenTemplates } from './templates';\n\n/** This blueprint as a loadable bundle: the manifest names things, this provides them. It provides no component - every component is the foundation's. */\nexport const vendorsBlueprint: ScenePackageBundle = {\n manifest: vendorsBlueprintManifest,\n components: {},\n screenTemplates: vendorsScreenTemplates,\n dialogTemplates: vendorsDialogTemplates,\n screens: vendorsScreens,\n};\n"],"names":["vendorsBlueprint","manifest","vendorsBlueprintManifest","components","screenTemplates","vendorsScreenTemplates","dialogTemplates","vendorsDialogTemplates","screens","vendorsScreens"],"mappings":";;;;;;;AAAA;AACA;AAOA,2JACO,MAAMA,gBAAAA,GAAuC;IAChDC,QAAAA,EAAUC,iCAAAA;AACVC,IAAAA,UAAAA,EAAY,EAAC;IACbC,eAAAA,EAAiBC,8BAAAA;IACjBC,eAAAA,EAAiBC,4BAAAA;IACjBC,OAAAA,EAASC;AACb;;"}
@@ -0,0 +1,68 @@
1
+ 'use strict';
2
+
3
+ var packageName = require('./packageName.js');
4
+ var templateProvenance = require('./templateProvenance.js');
5
+ var vendorsQueries = require('./vendorsQueries.js');
6
+ var vendorsParts = require('./vendorsParts.js');
7
+ var vendorsScreenSet = require('./vendorsScreenSet.js');
8
+ var index = require('./templates/index.js');
9
+ var index$1 = require('./screens/index.js');
10
+ var navigation = require('./navigation.js');
11
+ var manifest = require('./manifest.js');
12
+ var blueprint = require('./blueprint.js');
13
+ var vendorsApplication = require('./vendorsApplication.js');
14
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
15
+ var recordTemplates = require('./templates/recordTemplates.js');
16
+ var formTemplates = require('./templates/formTemplates.js');
17
+ var listTemplates = require('./templates/listTemplates.js');
18
+ var boardTemplate = require('./templates/boardTemplate.js');
19
+ var dashboardTemplates = require('./templates/dashboardTemplates.js');
20
+
21
+
22
+
23
+ exports.vendorsBlueprintName = packageName.vendorsBlueprintName;
24
+ exports.vendorsTemplateProvenance = templateProvenance.vendorsTemplateProvenance;
25
+ exports.VendorsEntityKind = vendorsQueries.VendorsEntityKind;
26
+ exports.VendorsQuery = vendorsQueries.VendorsQuery;
27
+ exports.currencyOfData = vendorsQueries.currencyOfData;
28
+ exports.fromQuery = vendorsQueries.fromQuery;
29
+ exports.localeOfData = vendorsQueries.localeOfData;
30
+ exports.vendorsEntityPlural = vendorsQueries.vendorsEntityPlural;
31
+ exports.vendorsQueriesOf = vendorsQueries.vendorsQueriesOf;
32
+ exports.actionButton = vendorsParts.actionButton;
33
+ exports.closesDialog = vendorsParts.closesDialog;
34
+ exports.goesTo = vendorsParts.goesTo;
35
+ exports.opensDialog = vendorsParts.opensDialog;
36
+ exports.opensDialogOnSelect = vendorsParts.opensDialogOnSelect;
37
+ exports.opensRecordOnSelect = vendorsParts.opensRecordOnSelect;
38
+ exports.thumbnailOf = vendorsParts.thumbnailOf;
39
+ exports.vendorsCategory = vendorsParts.vendorsCategory;
40
+ exports.vendorsMetadata = vendorsParts.vendorsMetadata;
41
+ exports.withBehaviors = vendorsParts.withBehaviors;
42
+ exports.vendorsScreenDefinitions = vendorsScreenSet.vendorsScreenDefinitions;
43
+ exports.vendorsScreenTemplates = index.vendorsScreenTemplates;
44
+ exports.vendorsScreens = index$1.vendorsScreens;
45
+ exports.vendorsModule = navigation.vendorsModule;
46
+ exports.vendorsNavigation = navigation.vendorsNavigation;
47
+ exports.vendorsStructure = navigation.vendorsStructure;
48
+ exports.vendorsBlueprintManifest = manifest.vendorsBlueprintManifest;
49
+ exports.vendorsBlueprint = blueprint.vendorsBlueprint;
50
+ exports.vendorsApplication = vendorsApplication.vendorsApplication;
51
+ exports.vendorsComposition = vendorsApplication.vendorsComposition;
52
+ exports.vendorsDefaultSampleDataId = vendorsApplication.vendorsDefaultSampleDataId;
53
+ exports.vendorsNavigationModel = vendorsApplication.vendorsNavigationModel;
54
+ Object.defineProperty(exports, "component", {
55
+ enumerable: true,
56
+ get: function () { return scene_blueprint_default.component; }
57
+ });
58
+ Object.defineProperty(exports, "panel", {
59
+ enumerable: true,
60
+ get: function () { return scene_blueprint_default.panel; }
61
+ });
62
+ exports.vendorPageTemplate = recordTemplates.vendorPageTemplate;
63
+ exports.vendorsDialogTemplates = formTemplates.vendorsDialogs;
64
+ exports.vendorsDialogs = formTemplates.vendorsDialogs;
65
+ exports.vendorsListTemplate = listTemplates.vendorsListTemplate;
66
+ exports.vendorsOnboardingTemplate = boardTemplate.vendorsOnboardingTemplate;
67
+ exports.vendorsPerformanceTemplate = dashboardTemplates.vendorsPerformanceTemplate;
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,87 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var packageName = require('./packageName.js');
5
+ var vendorsScreenSet = require('./vendorsScreenSet.js');
6
+ var index = require('./templates/index.js');
7
+ var formTemplates = require('./templates/formTemplates.js');
8
+
9
+ // Copyright (c) Cratis. All rights reserved.
10
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
11
+ const description = 'Vendors for a purchasing team: a vendor list, a vendor page with its contacts, orders and certificates, an onboarding board and a performance dashboard.';
12
+ /**
13
+ * This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,
14
+ * components and themes - it ships none of its own - and adds what is specific to the domain: templates, a ready-to-use screen set, sample data
15
+ * and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what "update available" compares.
16
+ */ const vendorsBlueprintManifest = {
17
+ name: packageName.vendorsBlueprintName,
18
+ version: '1.0.0',
19
+ kind: scene_model.PackageKind.Blueprint,
20
+ dependencies: [
21
+ {
22
+ name: 'Cratis.Blueprint.Default',
23
+ versionRange: '^1.0.0'
24
+ }
25
+ ],
26
+ components: [],
27
+ layouts: [],
28
+ screenTemplates: index.vendorsScreenTemplates.map((template)=>template.name),
29
+ dialogTemplates: formTemplates.vendorsDialogs.map((template)=>template.name),
30
+ themes: [],
31
+ displayName: 'Vendors',
32
+ description,
33
+ module: '@cratis/scene.blueprint.vendors',
34
+ license: 'MIT',
35
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
36
+ sampleData: [
37
+ {
38
+ id: 'vendors-en',
39
+ title: 'Vendors · English',
40
+ locale: 'en-GB',
41
+ path: 'sampleData/vendors-en.json',
42
+ description: 'English vendor data: twelve vendors from prospect to active, one vendor\'s contacts, purchase orders and certificates, the onboarding steps and performance figures.',
43
+ columns: [
44
+ 'Vendor',
45
+ 'Category',
46
+ 'Country',
47
+ 'Spend',
48
+ 'Rating'
49
+ ],
50
+ statusColumn: 'Status',
51
+ statuses: {
52
+ good: [
53
+ 'Active',
54
+ 'Approved'
55
+ ],
56
+ pending: [
57
+ 'Prospect',
58
+ 'In review'
59
+ ],
60
+ bad: [
61
+ 'Suspended'
62
+ ]
63
+ }
64
+ }
65
+ ],
66
+ blueprint: {
67
+ domain: 'vendors',
68
+ description,
69
+ thumbnail: 'thumbnails/vendors.svg',
70
+ screenSet: vendorsScreenSet.vendorsScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
71
+ name,
72
+ title,
73
+ description: screenDescription,
74
+ template,
75
+ ...parent === undefined ? {} : {
76
+ parent
77
+ },
78
+ ...order === undefined ? {} : {
79
+ order
80
+ }
81
+ })),
82
+ defaultSampleData: 'vendors-en'
83
+ }
84
+ };
85
+
86
+ exports.vendorsBlueprintManifest = vendorsBlueprintManifest;
87
+ //# sourceMappingURL=manifest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.js","sources":["../../manifest.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 { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { vendorsBlueprintName } from './packageName';\nimport { vendorsScreenDefinitions } from './vendorsScreenSet';\nimport { vendorsDialogTemplates, vendorsScreenTemplates } from './templates';\n\nconst description = 'Vendors for a purchasing team: a vendor list, a vendor page with its contacts, orders and certificates, an onboarding board and a performance dashboard.';\n\n/**\n * This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,\n * components and themes - it ships none of its own - and adds what is specific to the domain: templates, a ready-to-use screen set, sample data\n * and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what \"update available\" compares.\n */\nexport const vendorsBlueprintManifest: ScenePackage = {\n name: vendorsBlueprintName,\n version: '1.0.0',\n kind: PackageKind.Blueprint,\n dependencies: [{ name: 'Cratis.Blueprint.Default', versionRange: '^1.0.0' }],\n components: [],\n layouts: [],\n screenTemplates: vendorsScreenTemplates.map(template => template.name),\n dialogTemplates: vendorsDialogTemplates.map(template => template.name),\n themes: [],\n displayName: 'Vendors',\n description,\n module: '@cratis/scene.blueprint.vendors',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n sampleData: [{ id: 'vendors-en', title: 'Vendors · English', locale: 'en-GB', path: 'sampleData/vendors-en.json', description: 'English vendor data: twelve vendors from prospect to active, one vendor\\'s contacts, purchase orders and certificates, the onboarding steps and performance figures.', columns: ['Vendor', 'Category', 'Country', 'Spend', 'Rating'], statusColumn: 'Status', statuses: { good: ['Active', 'Approved'], pending: ['Prospect', 'In review'], bad: ['Suspended'] } }],\n blueprint: {\n domain: 'vendors',\n description,\n thumbnail: 'thumbnails/vendors.svg',\n screenSet: vendorsScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order }) => ({\n name, title, description: screenDescription, template, ...(parent === undefined ? {} : { parent }), ...(order === undefined ? {} : { order }),\n })),\n defaultSampleData: 'vendors-en',\n },\n};\n"],"names":["description","vendorsBlueprintManifest","name","vendorsBlueprintName","version","kind","PackageKind","Blueprint","dependencies","versionRange","components","layouts","screenTemplates","vendorsScreenTemplates","map","template","dialogTemplates","vendorsDialogTemplates","themes","displayName","module","license","licenseUrl","sampleData","id","title","locale","path","columns","statusColumn","statuses","good","pending","bad","blueprint","domain","thumbnail","screenSet","vendorsScreenDefinitions","screenDescription","parent","order","undefined","defaultSampleData"],"mappings":";;;;;;;;AAAA;AACA;AAOA,MAAMA,WAAAA,GAAc,0JAAA;AAEpB;;;;UAKaC,wBAAAA,GAAyC;IAClDC,IAAAA,EAAMC,gCAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,wBAAYC,SAAS;IAC3BC,YAAAA,EAAc;AAAC,QAAA;YAAEN,IAAAA,EAAM,0BAAA;YAA4BO,YAAAA,EAAc;AAAS;AAAE,KAAA;AAC5EC,IAAAA,UAAAA,EAAY,EAAE;AACdC,IAAAA,OAAAA,EAAS,EAAE;AACXC,IAAAA,eAAAA,EAAiBC,6BAAuBC,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACrEc,IAAAA,eAAAA,EAAiBC,6BAAuBH,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACrEgB,IAAAA,MAAAA,EAAQ,EAAE;IACVC,WAAAA,EAAa,SAAA;AACbnB,IAAAA,WAAAA;IACAoB,MAAAA,EAAQ,iCAAA;IACRC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY,mDAAA;IACZC,UAAAA,EAAY;AAAC,QAAA;YAAEC,EAAAA,EAAI,YAAA;YAAcC,KAAAA,EAAO,mBAAA;YAAqBC,MAAAA,EAAQ,OAAA;YAASC,IAAAA,EAAM,4BAAA;YAA8B3B,WAAAA,EAAa,sKAAA;YAAwK4B,OAAAA,EAAS;AAAC,gBAAA,QAAA;AAAU,gBAAA,UAAA;AAAY,gBAAA,SAAA;AAAW,gBAAA,OAAA;AAAS,gBAAA;AAAS,aAAA;YAAEC,YAAAA,EAAc,QAAA;YAAUC,QAAAA,EAAU;gBAAEC,IAAAA,EAAM;AAAC,oBAAA,QAAA;AAAU,oBAAA;AAAW,iBAAA;gBAAEC,OAAAA,EAAS;AAAC,oBAAA,UAAA;AAAY,oBAAA;AAAY,iBAAA;gBAAEC,GAAAA,EAAK;AAAC,oBAAA;AAAY;AAAC;AAAE;AAAE,KAAA;IACneC,SAAAA,EAAW;QACPC,MAAAA,EAAQ,SAAA;AACRnC,QAAAA,WAAAA;QACAoC,SAAAA,EAAW,wBAAA;AACXC,QAAAA,SAAAA,EAAWC,0CAAyBxB,GAAG,CAAC,CAAC,EAAEZ,IAAI,EAAEuB,KAAK,EAAEzB,aAAauC,iBAAiB,EAAExB,QAAQ,EAAEyB,MAAM,EAAEC,KAAK,EAAE,IAAM;AACnHvC,gBAAAA,IAAAA;AAAMuB,gBAAAA,KAAAA;gBAAOzB,WAAAA,EAAauC,iBAAAA;AAAmBxB,gBAAAA,QAAAA;gBAAU,GAAIyB,MAAAA,KAAWE,SAAAA,GAAY,EAAC,GAAI;AAAEF,oBAAAA;iBAAQ;gBAAG,GAAIC,KAAAA,KAAUC,SAAAA,GAAY,EAAC,GAAI;AAAED,oBAAAA;;aACzI,CAAA,CAAA;QACAE,iBAAAA,EAAmB;AACvB;AACJ;;"}
@@ -0,0 +1,109 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var vendorsScreenSet = require('./vendorsScreenSet.js');
5
+
6
+ // Copyright (c) Cratis. All rights reserved.
7
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
8
+ /** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */ const vendorsModule = 'vendors';
9
+ /**
10
+ * The application structure the screen set implies: one module, `vendors`, a feature for each screen and the sub-features beneath it (`vendors.record` is the
11
+ * `record` feature of the module). Derived from the screen names, so a screen added to the set is part of the structure without a second edit.
12
+ */ const vendorsStructure = (()=>{
13
+ const root = {
14
+ id: vendorsModule,
15
+ name: 'Vendors',
16
+ features: []};
17
+ for (const screen of vendorsScreenSet.vendorsScreenDefinitions){
18
+ let parent = root;
19
+ for (const id of screen.name.split('.').slice(1)){
20
+ let node = parent.features.find((candidate)=>candidate.id === id);
21
+ if (!node) {
22
+ node = {
23
+ id,
24
+ name: screen.title,
25
+ features: [],
26
+ slices: []
27
+ };
28
+ parent.features.push(node);
29
+ }
30
+ parent = node;
31
+ }
32
+ }
33
+ return {
34
+ modules: [
35
+ {
36
+ id: root.id,
37
+ name: root.name,
38
+ features: root.features
39
+ }
40
+ ]
41
+ };
42
+ })();
43
+ /**
44
+ * The navigation of the application the blueprint is: the topbar names the module, and the module's sidebar - which overrides the application's - lists
45
+ * the places a team goes: Vendors, Onboarding, Performance.
46
+ */ const vendorsNavigation = {
47
+ application: {
48
+ logo: {
49
+ image: '',
50
+ title: 'Vendors'
51
+ },
52
+ regions: [
53
+ {
54
+ region: scene_model.NavigationRegionKind.Topbar,
55
+ items: [
56
+ {
57
+ id: 'vendors',
58
+ title: 'Vendors',
59
+ target: {
60
+ module: vendorsModule
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ modules: [
68
+ {
69
+ module: vendorsModule,
70
+ regions: [
71
+ {
72
+ region: scene_model.NavigationRegionKind.Sidebar,
73
+ mode: scene_model.NavigationRegionMode.Override,
74
+ items: [
75
+ {
76
+ id: 'list',
77
+ title: 'Vendors',
78
+ target: {
79
+ module: vendorsModule,
80
+ feature: 'list'
81
+ }
82
+ },
83
+ {
84
+ id: 'onboarding',
85
+ title: 'Onboarding',
86
+ target: {
87
+ module: vendorsModule,
88
+ feature: 'onboarding'
89
+ }
90
+ },
91
+ {
92
+ id: 'performance',
93
+ title: 'Performance',
94
+ target: {
95
+ module: vendorsModule,
96
+ feature: 'performance'
97
+ }
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ };
105
+
106
+ exports.vendorsModule = vendorsModule;
107
+ exports.vendorsNavigation = vendorsNavigation;
108
+ exports.vendorsStructure = vendorsStructure;
109
+ //# sourceMappingURL=navigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.js","sources":["../../navigation.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 { ApplicationStructure, NavigationModel, NavigationRegionKind, NavigationRegionMode } from '@cratis/scene.model';\nimport { vendorsScreenDefinitions } from './vendorsScreenSet';\n\n/** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */\nexport const vendorsModule = 'vendors';\n\n/**\n * The application structure the screen set implies: one module, `vendors`, a feature for each screen and the sub-features beneath it (`vendors.record` is the\n * `record` feature of the module). Derived from the screen names, so a screen added to the set is part of the structure without a second edit.\n */\nexport const vendorsStructure: ApplicationStructure = (() => {\n interface Node { id: string; name: string; features: Node[]; slices: never[] }\n const root: Node = { id: vendorsModule, name: 'Vendors', features: [], slices: [] };\n for (const screen of vendorsScreenDefinitions) {\n let parent = root;\n for (const id of screen.name.split('.').slice(1)) {\n let node = parent.features.find(candidate => candidate.id === id);\n if (!node) {\n node = { id, name: screen.title, features: [], slices: [] };\n parent.features.push(node);\n }\n parent = node;\n }\n }\n\n return { modules: [{ id: root.id, name: root.name, features: root.features }] } as unknown as ApplicationStructure;\n})();\n\n/**\n * The navigation of the application the blueprint is: the topbar names the module, and the module's sidebar - which overrides the application's - lists\n * the places a team goes: Vendors, Onboarding, Performance.\n */\nexport const vendorsNavigation: NavigationModel = {\n application: {\n logo: { image: '', title: 'Vendors' },\n regions: [{ region: NavigationRegionKind.Topbar, items: [{ id: 'vendors', title: 'Vendors', target: { module: vendorsModule } }] }],\n },\n modules: [{\n module: vendorsModule,\n regions: [{\n region: NavigationRegionKind.Sidebar,\n mode: NavigationRegionMode.Override,\n items: [\n { id: 'list', title: 'Vendors', target: { module: vendorsModule, feature: 'list' } },\n { id: 'onboarding', title: 'Onboarding', target: { module: vendorsModule, feature: 'onboarding' } },\n { id: 'performance', title: 'Performance', target: { module: vendorsModule, feature: 'performance' } },\n ],\n }],\n }],\n};\n"],"names":["vendorsModule","vendorsStructure","root","id","name","features","screen","vendorsScreenDefinitions","parent","split","slice","node","find","candidate","title","slices","push","modules","vendorsNavigation","application","logo","image","regions","region","NavigationRegionKind","Topbar","items","target","module","Sidebar","mode","NavigationRegionMode","Override","feature"],"mappings":";;;;;AAAA;AACA;AAKA,8GACO,MAAMA,aAAAA,GAAgB;AAE7B;;;AAGC,IACM,MAAMC,gBAAAA,GAA0C,CAAA,IAAA;AAEnD,IAAA,MAAMC,IAAAA,GAAa;QAAEC,EAAAA,EAAIH,aAAAA;QAAeI,IAAAA,EAAM,SAAA;AAAWC,QAAAA,QAAAA,EAAU,EAAe,CAAA;IAClF,KAAK,MAAMC,UAAUC,yCAAAA,CAA0B;AAC3C,QAAA,IAAIC,MAAAA,GAASN,IAAAA;QACb,KAAK,MAAMC,EAAAA,IAAMG,MAAAA,CAAOF,IAAI,CAACK,KAAK,CAAC,GAAA,CAAA,CAAKC,KAAK,CAAC,CAAA,CAAA,CAAI;YAC9C,IAAIC,IAAAA,GAAOH,MAAAA,CAAOH,QAAQ,CAACO,IAAI,CAACC,CAAAA,SAAAA,GAAaA,SAAAA,CAAUV,EAAE,KAAKA,EAAAA,CAAAA;AAC9D,YAAA,IAAI,CAACQ,IAAAA,EAAM;gBACPA,IAAAA,GAAO;AAAER,oBAAAA,EAAAA;AAAIC,oBAAAA,IAAAA,EAAME,OAAOQ,KAAK;AAAET,oBAAAA,QAAAA,EAAU,EAAE;AAAEU,oBAAAA,MAAAA,EAAQ;AAAG,iBAAA;gBAC1DP,MAAAA,CAAOH,QAAQ,CAACW,IAAI,CAACL,IAAAA,CAAAA;AACzB,YAAA;YACAH,MAAAA,GAASG,IAAAA;AACb,QAAA;AACJ,IAAA;IAEA,OAAO;QAAEM,OAAAA,EAAS;AAAC,YAAA;AAAEd,gBAAAA,EAAAA,EAAID,KAAKC,EAAE;AAAEC,gBAAAA,IAAAA,EAAMF,KAAKE,IAAI;AAAEC,gBAAAA,QAAAA,EAAUH,KAAKG;AAAS;AAAE;AAAC,KAAA;AAClF,CAAA;AAEA;;;UAIaa,iBAAAA,GAAqC;IAC9CC,WAAAA,EAAa;QACTC,IAAAA,EAAM;YAAEC,KAAAA,EAAO,EAAA;YAAIP,KAAAA,EAAO;AAAU,SAAA;QACpCQ,OAAAA,EAAS;AAAC,YAAA;AAAEC,gBAAAA,MAAAA,EAAQC,iCAAqBC,MAAM;gBAAEC,KAAAA,EAAO;AAAC,oBAAA;wBAAEvB,EAAAA,EAAI,SAAA;wBAAWW,KAAAA,EAAO,SAAA;wBAAWa,MAAAA,EAAQ;4BAAEC,MAAAA,EAAQ5B;AAAc;AAAE;AAAE;AAAC;AAAE;AACvI,KAAA;IACAiB,OAAAA,EAAS;AAAC,QAAA;YACNW,MAAAA,EAAQ5B,aAAAA;YACRsB,OAAAA,EAAS;AAAC,gBAAA;AACNC,oBAAAA,MAAAA,EAAQC,iCAAqBK,OAAO;AACpCC,oBAAAA,IAAAA,EAAMC,iCAAqBC,QAAQ;oBACnCN,KAAAA,EAAO;AACH,wBAAA;4BAAEvB,EAAAA,EAAI,MAAA;4BAAQW,KAAAA,EAAO,SAAA;4BAAWa,MAAAA,EAAQ;gCAAEC,MAAAA,EAAQ5B,aAAAA;gCAAeiC,OAAAA,EAAS;AAAO;AAAE,yBAAA;AACnF,wBAAA;4BAAE9B,EAAAA,EAAI,YAAA;4BAAcW,KAAAA,EAAO,YAAA;4BAAca,MAAAA,EAAQ;gCAAEC,MAAAA,EAAQ5B,aAAAA;gCAAeiC,OAAAA,EAAS;AAAa;AAAE,yBAAA;AAClG,wBAAA;4BAAE9B,EAAAA,EAAI,aAAA;4BAAeW,KAAAA,EAAO,aAAA;4BAAea,MAAAA,EAAQ;gCAAEC,MAAAA,EAAQ5B,aAAAA;gCAAeiC,OAAAA,EAAS;AAAc;AAAE;AACxG;AACL;AAAE;AACN;AAAE;AACN;;;;"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /** The name this blueprint is known by inside a `ui profile`; every component registry key is built from it. */ const vendorsBlueprintName = 'Cratis.Blueprint.Vendors';
6
+
7
+ exports.vendorsBlueprintName = vendorsBlueprintName;
8
+ //# sourceMappingURL=packageName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageName.js","sources":["../../packageName.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/** The name this blueprint is known by inside a `ui profile`; every component registry key is built from it. */\nexport const vendorsBlueprintName = 'Cratis.Blueprint.Vendors';\n"],"names":["vendorsBlueprintName"],"mappings":";;AAAA;AACA;AAEA,iHACO,MAAMA,oBAAAA,GAAuB;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
4
+ var vendorsScreenSet = require('../vendorsScreenSet.js');
5
+
6
+ // Copyright (c) Cratis. All rights reserved.
7
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
8
+ /**
9
+ * The ready-to-use screens: real `Screen` instances, one for each entry of the manifest's `blueprint.screenSet`, each filling the screen template it names in
10
+ * the foundation's application shell. A new application that adopts the blueprint gets these, wired into its navigation (`vendorsNavigation`).
11
+ */ const vendorsScreens = vendorsScreenSet.vendorsScreenDefinitions.map((definition)=>({
12
+ name: definition.name,
13
+ layout: scene_blueprint_default.LayoutName.AppShell,
14
+ screenTemplate: definition.template,
15
+ slotContent: {},
16
+ forms: [],
17
+ contributions: [],
18
+ path: definition.name.split('.')
19
+ }));
20
+
21
+ exports.vendorsScreens = vendorsScreens;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../screens/index.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 { Screen } from '@cratis/scene.model';\nimport { LayoutName } from '@cratis/scene.blueprint.default';\nimport { vendorsScreenDefinitions } from '../vendorsScreenSet';\n\n/**\n * The ready-to-use screens: real `Screen` instances, one for each entry of the manifest's `blueprint.screenSet`, each filling the screen template it names in\n * the foundation's application shell. A new application that adopts the blueprint gets these, wired into its navigation (`vendorsNavigation`).\n */\nexport const vendorsScreens: Screen[] = vendorsScreenDefinitions.map(definition => ({\n name: definition.name,\n layout: LayoutName.AppShell,\n screenTemplate: definition.template,\n slotContent: {},\n forms: [],\n contributions: [],\n path: definition.name.split('.'),\n}));\n"],"names":["vendorsScreens","vendorsScreenDefinitions","map","definition","name","layout","LayoutName","AppShell","screenTemplate","template","slotContent","forms","contributions","path","split"],"mappings":";;;;;AAAA;AACA;AAMA;;;UAIaA,cAAAA,GAA2BC,yCAAAA,CAAyBC,GAAG,CAACC,CAAAA,cAAe;AAChFC,QAAAA,IAAAA,EAAMD,WAAWC,IAAI;AACrBC,QAAAA,MAAAA,EAAQC,mCAAWC,QAAQ;AAC3BC,QAAAA,cAAAA,EAAgBL,WAAWM,QAAQ;AACnCC,QAAAA,WAAAA,EAAa,EAAC;AACdC,QAAAA,KAAAA,EAAO,EAAE;AACTC,QAAAA,aAAAA,EAAe,EAAE;AACjBC,QAAAA,IAAAA,EAAMV,UAAAA,CAAWC,IAAI,CAACU,KAAK,CAAC,GAAA;AAChC,KAAA,CAAA;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /** The compatibility, attribution and license metadata every template this blueprint ships carries. */ const vendorsTemplateProvenance = {
6
+ compatibility: {
7
+ scene: '^4.13.0',
8
+ packages: [
9
+ {
10
+ name: 'Cratis.Blueprint.Default',
11
+ versionRange: '^1.0.0'
12
+ }
13
+ ]
14
+ },
15
+ attribution: {
16
+ author: 'Cratis',
17
+ url: 'https://github.com/Cratis/Scene/tree/main/Source/JavaScript/blueprint.vendors'
18
+ },
19
+ license: 'MIT',
20
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE'
21
+ };
22
+
23
+ exports.vendorsTemplateProvenance = vendorsTemplateProvenance;
24
+ //# sourceMappingURL=templateProvenance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateProvenance.js","sources":["../../templateProvenance.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 { TemplateMetadata } from '@cratis/scene.model';\n\n/** The compatibility, attribution and license metadata every template this blueprint ships carries. */\nexport const vendorsTemplateProvenance: Pick<TemplateMetadata, 'compatibility' | 'attribution' | 'license' | 'licenseUrl'> = {\n compatibility: {\n scene: '^4.13.0',\n packages: [{ name: 'Cratis.Blueprint.Default', versionRange: '^1.0.0' }],\n },\n attribution: { author: 'Cratis', url: 'https://github.com/Cratis/Scene/tree/main/Source/JavaScript/blueprint.vendors' },\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n};\n"],"names":["vendorsTemplateProvenance","compatibility","scene","packages","name","versionRange","attribution","author","url","license","licenseUrl"],"mappings":";;AAAA;AACA;AAIA,wGACO,MAAMA,yBAAAA,GAAgH;IACzHC,aAAAA,EAAe;QACXC,KAAAA,EAAO,SAAA;QACPC,QAAAA,EAAU;AAAC,YAAA;gBAAEC,IAAAA,EAAM,0BAAA;gBAA4BC,YAAAA,EAAc;AAAS;AAAE;AAC5E,KAAA;IACAC,WAAAA,EAAa;QAAEC,MAAAA,EAAQ,QAAA;QAAUC,GAAAA,EAAK;AAAgF,KAAA;IACtHC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY;AAChB;;"}