@cratis/scene.blueprint.orders 0.0.0-stage → 4.59.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 (132) hide show
  1. package/README.md +66 -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 +65 -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/ordersApplication.js +49 -0
  13. package/dist/cjs/ordersApplication.js.map +1 -0
  14. package/dist/cjs/ordersParts.js +151 -0
  15. package/dist/cjs/ordersParts.js.map +1 -0
  16. package/dist/cjs/ordersQueries.js +66 -0
  17. package/dist/cjs/ordersQueries.js.map +1 -0
  18. package/dist/cjs/ordersScreenSet.js +40 -0
  19. package/dist/cjs/ordersScreenSet.js.map +1 -0
  20. package/dist/cjs/package.json +3 -0
  21. package/dist/cjs/packageName.js +8 -0
  22. package/dist/cjs/packageName.js.map +1 -0
  23. package/dist/cjs/screens/index.js +22 -0
  24. package/dist/cjs/screens/index.js.map +1 -0
  25. package/dist/cjs/templateProvenance.js +24 -0
  26. package/dist/cjs/templateProvenance.js.map +1 -0
  27. package/dist/cjs/templates/boardTemplate.js +60 -0
  28. package/dist/cjs/templates/boardTemplate.js.map +1 -0
  29. package/dist/cjs/templates/deliveryTemplate.js +88 -0
  30. package/dist/cjs/templates/deliveryTemplate.js.map +1 -0
  31. package/dist/cjs/templates/formTemplates.js +50 -0
  32. package/dist/cjs/templates/formTemplates.js.map +1 -0
  33. package/dist/cjs/templates/index.js +23 -0
  34. package/dist/cjs/templates/index.js.map +1 -0
  35. package/dist/cjs/templates/listTemplates.js +145 -0
  36. package/dist/cjs/templates/listTemplates.js.map +1 -0
  37. package/dist/cjs/templates/recordTemplates.js +101 -0
  38. package/dist/cjs/templates/recordTemplates.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 +63 -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/ordersApplication.d.ts +10 -0
  56. package/dist/esm/ordersApplication.d.ts.map +1 -0
  57. package/dist/esm/ordersApplication.js +44 -0
  58. package/dist/esm/ordersApplication.js.map +1 -0
  59. package/dist/esm/ordersParts.d.ts +16 -0
  60. package/dist/esm/ordersParts.d.ts.map +1 -0
  61. package/dist/esm/ordersParts.js +133 -0
  62. package/dist/esm/ordersParts.js.map +1 -0
  63. package/dist/esm/ordersQueries.d.ts +40 -0
  64. package/dist/esm/ordersQueries.d.ts.map +1 -0
  65. package/dist/esm/ordersQueries.js +58 -0
  66. package/dist/esm/ordersQueries.js.map +1 -0
  67. package/dist/esm/ordersScreenSet.d.ts +7 -0
  68. package/dist/esm/ordersScreenSet.d.ts.map +1 -0
  69. package/dist/esm/ordersScreenSet.js +38 -0
  70. package/dist/esm/ordersScreenSet.js.map +1 -0
  71. package/dist/esm/package.json +3 -0
  72. package/dist/esm/packageName.d.ts +2 -0
  73. package/dist/esm/packageName.d.ts.map +1 -0
  74. package/dist/esm/packageName.js +6 -0
  75. package/dist/esm/packageName.js.map +1 -0
  76. package/dist/esm/screens/index.d.ts +3 -0
  77. package/dist/esm/screens/index.d.ts.map +1 -0
  78. package/dist/esm/screens/index.js +20 -0
  79. package/dist/esm/screens/index.js.map +1 -0
  80. package/dist/esm/templateProvenance.d.ts +3 -0
  81. package/dist/esm/templateProvenance.d.ts.map +1 -0
  82. package/dist/esm/templateProvenance.js +22 -0
  83. package/dist/esm/templateProvenance.js.map +1 -0
  84. package/dist/esm/templates/boardTemplate.d.ts +3 -0
  85. package/dist/esm/templates/boardTemplate.d.ts.map +1 -0
  86. package/dist/esm/templates/boardTemplate.js +58 -0
  87. package/dist/esm/templates/boardTemplate.js.map +1 -0
  88. package/dist/esm/templates/deliveryTemplate.d.ts +3 -0
  89. package/dist/esm/templates/deliveryTemplate.d.ts.map +1 -0
  90. package/dist/esm/templates/deliveryTemplate.js +86 -0
  91. package/dist/esm/templates/deliveryTemplate.js.map +1 -0
  92. package/dist/esm/templates/formTemplates.d.ts +3 -0
  93. package/dist/esm/templates/formTemplates.d.ts.map +1 -0
  94. package/dist/esm/templates/formTemplates.js +48 -0
  95. package/dist/esm/templates/formTemplates.js.map +1 -0
  96. package/dist/esm/templates/index.d.ts +8 -0
  97. package/dist/esm/templates/index.d.ts.map +1 -0
  98. package/dist/esm/templates/index.js +15 -0
  99. package/dist/esm/templates/index.js.map +1 -0
  100. package/dist/esm/templates/listTemplates.d.ts +3 -0
  101. package/dist/esm/templates/listTemplates.d.ts.map +1 -0
  102. package/dist/esm/templates/listTemplates.js +143 -0
  103. package/dist/esm/templates/listTemplates.js.map +1 -0
  104. package/dist/esm/templates/recordTemplates.d.ts +3 -0
  105. package/dist/esm/templates/recordTemplates.d.ts.map +1 -0
  106. package/dist/esm/templates/recordTemplates.js +99 -0
  107. package/dist/esm/templates/recordTemplates.js.map +1 -0
  108. package/dist/esm/tsconfig.tsbuildinfo +1 -0
  109. package/index.ts +14 -0
  110. package/manifest.ts +41 -0
  111. package/navigation.ts +53 -0
  112. package/ordersApplication.ts +28 -0
  113. package/ordersParts.ts +58 -0
  114. package/ordersQueries.ts +58 -0
  115. package/ordersScreenSet.ts +21 -0
  116. package/package.json +78 -4
  117. package/packageName.ts +5 -0
  118. package/sampleData/orders-en.json +952 -0
  119. package/screens/index.ts +20 -0
  120. package/templateProvenance.ts +15 -0
  121. package/templates/boardTemplate.ts +34 -0
  122. package/templates/deliveryTemplate.ts +31 -0
  123. package/templates/formTemplates.ts +33 -0
  124. package/templates/index.ts +15 -0
  125. package/templates/listTemplates.ts +93 -0
  126. package/templates/recordTemplates.ts +43 -0
  127. package/thumbnails/OrderPage.svg +18 -0
  128. package/thumbnails/OrdersDeliveryCalendar.svg +16 -0
  129. package/thumbnails/OrdersFulfilmentBoard.svg +23 -0
  130. package/thumbnails/OrdersList.svg +29 -0
  131. package/thumbnails/OrdersQuickCreateOrder.svg +12 -0
  132. package/thumbnails/orders.svg +14 -0
package/README.md CHANGED
@@ -1,3 +1,67 @@
1
- # Temporary Holding Version
1
+ # 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
+ **Describing a user interface without describing a platform** — Scene is the UI model of the Cratis
4
+ model-first layer (experimental).
5
+
6
+ The object model and runtime for Screenplay-based UIs: `Scene.Model` (platform-agnostic screens, layouts,
7
+ forms, contribution points, ui profiles and themes), `Scene.Engine` (binding/resolution runtime), and
8
+ `Scene.React` (the React renderer).
9
+
10
+ ## Packages / Deployables
11
+
12
+ [![Nuget](https://img.shields.io/nuget/v/Cratis.Scene.Model?logo=nuget)](http://nuget.org/packages/Cratis.Scene.Model)
13
+ [![NPM](https://img.shields.io/npm/v/@cratis/scene.model?label=@cratis/scene.model&logo=npm)](https://www.npmjs.com/package/@cratis/scene.model)
14
+ [![NPM](https://img.shields.io/npm/v/@cratis/scene.engine?label=@cratis/scene.engine&logo=npm)](https://www.npmjs.com/package/@cratis/scene.engine)
15
+ [![NPM](https://img.shields.io/npm/v/@cratis/scene.react?label=@cratis/scene.react&logo=npm)](https://www.npmjs.com/package/@cratis/scene.react)
16
+
17
+ ## Builds
18
+
19
+ [![.NET Build](https://github.com/cratis/scene/actions/workflows/dotnet-build.yml/badge.svg)](https://github.com/cratis/scene/actions/workflows/dotnet-build.yml)
20
+ [![JavaScript Build](https://github.com/cratis/scene/actions/workflows/javascript-build.yml/badge.svg)](https://github.com/cratis/scene/actions/workflows/javascript-build.yml)
21
+
22
+ ## Description
23
+
24
+ Scene owns the *object model and runtime* half of the Screenplay stack. In the model-first pipeline,
25
+ [Screenplay](https://github.com/Cratis/Screenplay) describes an event-sourced, CQRS system,
26
+ [Stage](https://github.com/Cratis/Stage) renders it into a running application, and Scene is how that
27
+ application's user interface is described — independently of any rendering platform.
28
+
29
+ `Scene.Model` is the platform-agnostic
30
+ 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
31
+ design-time tooling reads and writes. `Scene.Engine` walks that graph, resolves bindings (data, action, form,
32
+ navigation contribution) and drives whichever renderer is plugged in — it does not know React exists.
33
+ `Scene.React` is one renderer implementing the abstract vocabulary against real React/DOM; sibling positions
34
+ are reserved for future `Scene.Native` / `Scene.Desktop` renderers. Vendor and internal component packages
35
+ (PrimeReact, internal widget libraries) are adapters plugging into the renderer contract, not part of it.
36
+
37
+ The design-time editor built on top of this object model lives in Studio, not here — see
38
+ [StudioIssues#156](https://github.com/Cratis/StudioIssues/issues/156).
39
+
40
+ ## Support
41
+
42
+ Cratis is an open community, and we are glad to help users, teams evaluating the stack, and contributors.
43
+
44
+ | Channel | Details |
45
+ |---|---|
46
+ | Discord | Join the community on [Discord](https://discord.gg/kt4AMpV8WV) for questions and discussions |
47
+ | GitHub Issues | [Report bugs or request features](https://github.com/Cratis/Scene/issues) |
48
+ | Documentation | Read the docs at [cratis.io](https://cratis.io) |
49
+
50
+ ## The Cratis ecosystem
51
+
52
+ This project is part of [Cratis](https://www.cratis.io) — free, MIT-licensed tools for building event-sourced and CQRS applications.
53
+
54
+ - **[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/)
55
+ - **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).
56
+ - **[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/)
57
+ - **[Components](https://github.com/Cratis/Components)** — React components aligned with Arc patterns. [Docs](https://www.cratis.io/components/)
58
+ - **[CLI](https://github.com/Cratis/cli) + Workbench** — inspect and diagnose Chronicle from the terminal or the browser. [Docs](https://www.cratis.io/cli/)
59
+ - **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)
60
+ - **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)
61
+ - **[Samples](https://github.com/Cratis/Samples)** — runnable event sourcing and CQRS samples for the whole stack
62
+
63
+ Everything Cratis publishes today is MIT licensed and free to use.
64
+
65
+ ---
66
+
67
+ 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 { ordersBlueprintManifest } from './manifest';
6
+ import { ordersScreens } from './screens';
7
+ import { ordersDialogTemplates, ordersScreenTemplates } 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 ordersBlueprint: ScenePackageBundle = {
11
+ manifest: ordersBlueprintManifest,
12
+ components: {},
13
+ screenTemplates: ordersScreenTemplates,
14
+ dialogTemplates: ordersDialogTemplates,
15
+ screens: ordersScreens,
16
+ };
@@ -0,0 +1,107 @@
1
+ {
2
+ "schema": 1,
3
+ "blueprints": [
4
+ {
5
+ "package": "Cratis.Blueprint.Orders",
6
+ "version": "1.0.0",
7
+ "domain": "orders",
8
+ "displayName": "Orders",
9
+ "description": "Sales orders from placing to delivery: every order with its status, an order page with its lines and shipments, a fulfilment board and a delivery calendar.",
10
+ "thumbnail": "thumbnails/orders.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": "orders.list",
22
+ "title": "Orders",
23
+ "description": "Every order with its customer, dates, total and status.",
24
+ "template": "OrdersList",
25
+ "order": 0
26
+ },
27
+ {
28
+ "name": "orders.record",
29
+ "title": "Order",
30
+ "description": "One order: key facts, its lines, its shipments and its activity.",
31
+ "template": "OrderPage",
32
+ "parent": "orders.list"
33
+ },
34
+ {
35
+ "name": "orders.fulfilment",
36
+ "title": "Fulfilment",
37
+ "description": "Orders in a column for each fulfilment step.",
38
+ "template": "OrdersFulfilmentBoard",
39
+ "order": 1
40
+ },
41
+ {
42
+ "name": "orders.deliveries",
43
+ "title": "Deliveries",
44
+ "description": "The day each open order is due to arrive, on a calendar.",
45
+ "template": "OrdersDeliveryCalendar",
46
+ "order": 2
47
+ }
48
+ ],
49
+ "templates": [
50
+ {
51
+ "name": "OrdersList",
52
+ "kind": "ScreenTemplate",
53
+ "displayName": "Orders list",
54
+ "description": "Every order with customer, placed and delivery dates, total and status, filtered by customer, status, channel and date.",
55
+ "type": "List",
56
+ "category": "Business / Orders",
57
+ "thumbnail": "thumbnails/OrdersList.svg"
58
+ },
59
+ {
60
+ "name": "OrderPage",
61
+ "kind": "ScreenTemplate",
62
+ "displayName": "Order page",
63
+ "description": "One order: key facts, its lines and shipments, and its activity.",
64
+ "type": "Detail",
65
+ "category": "Business / Orders",
66
+ "thumbnail": "thumbnails/OrderPage.svg"
67
+ },
68
+ {
69
+ "name": "OrdersFulfilmentBoard",
70
+ "kind": "ScreenTemplate",
71
+ "displayName": "Orders fulfilment board",
72
+ "description": "Orders as cards in a column for each fulfilment step, moved by dragging or by menu.",
73
+ "type": "Board",
74
+ "category": "Business / Orders",
75
+ "thumbnail": "thumbnails/OrdersFulfilmentBoard.svg"
76
+ },
77
+ {
78
+ "name": "OrdersDeliveryCalendar",
79
+ "kind": "ScreenTemplate",
80
+ "displayName": "Orders delivery calendar",
81
+ "description": "The day each open order is due to arrive, on a month, a week or as an agenda.",
82
+ "type": "Calendar",
83
+ "category": "Business / Orders",
84
+ "thumbnail": "thumbnails/OrdersDeliveryCalendar.svg"
85
+ },
86
+ {
87
+ "name": "OrdersQuickCreateOrder",
88
+ "kind": "DialogTemplate",
89
+ "displayName": "Orders quick create order",
90
+ "description": "A short form that creates one order without leaving the page.",
91
+ "type": "Dialog",
92
+ "category": "Business / Orders",
93
+ "thumbnail": "thumbnails/OrdersQuickCreateOrder.svg"
94
+ }
95
+ ],
96
+ "sampleData": [
97
+ {
98
+ "id": "orders-en",
99
+ "title": "Orders · English",
100
+ "locale": "en-GB",
101
+ "path": "sampleData/orders-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 ordersBlueprint = {
11
+ manifest: manifest.ordersBlueprintManifest,
12
+ components: {},
13
+ screenTemplates: index$1.ordersScreenTemplates,
14
+ dialogTemplates: formTemplates.ordersDialogs,
15
+ screens: index.ordersScreens
16
+ };
17
+
18
+ exports.ordersBlueprint = ordersBlueprint;
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 { ordersBlueprintManifest } from './manifest';\nimport { ordersScreens } from './screens';\nimport { ordersDialogTemplates, ordersScreenTemplates } 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 ordersBlueprint: ScenePackageBundle = {\n manifest: ordersBlueprintManifest,\n components: {},\n screenTemplates: ordersScreenTemplates,\n dialogTemplates: ordersDialogTemplates,\n screens: ordersScreens,\n};\n"],"names":["ordersBlueprint","manifest","ordersBlueprintManifest","components","screenTemplates","ordersScreenTemplates","dialogTemplates","ordersDialogTemplates","screens","ordersScreens"],"mappings":";;;;;;;AAAA;AACA;AAOA,2JACO,MAAMA,eAAAA,GAAsC;IAC/CC,QAAAA,EAAUC,gCAAAA;AACVC,IAAAA,UAAAA,EAAY,EAAC;IACbC,eAAAA,EAAiBC,6BAAAA;IACjBC,eAAAA,EAAiBC,2BAAAA;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 ordersQueries = require('./ordersQueries.js');
6
+ var ordersParts = require('./ordersParts.js');
7
+ var ordersScreenSet = require('./ordersScreenSet.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 ordersApplication = require('./ordersApplication.js');
14
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
15
+ var deliveryTemplate = require('./templates/deliveryTemplate.js');
16
+ var boardTemplate = require('./templates/boardTemplate.js');
17
+ var recordTemplates = require('./templates/recordTemplates.js');
18
+ var formTemplates = require('./templates/formTemplates.js');
19
+ var listTemplates = require('./templates/listTemplates.js');
20
+
21
+
22
+
23
+ exports.ordersBlueprintName = packageName.ordersBlueprintName;
24
+ exports.ordersTemplateProvenance = templateProvenance.ordersTemplateProvenance;
25
+ exports.OrdersEntityKind = ordersQueries.OrdersEntityKind;
26
+ exports.OrdersQuery = ordersQueries.OrdersQuery;
27
+ exports.currencyOfData = ordersQueries.currencyOfData;
28
+ exports.fromQuery = ordersQueries.fromQuery;
29
+ exports.localeOfData = ordersQueries.localeOfData;
30
+ exports.ordersEntityPlural = ordersQueries.ordersEntityPlural;
31
+ exports.ordersQueriesOf = ordersQueries.ordersQueriesOf;
32
+ exports.actionButton = ordersParts.actionButton;
33
+ exports.closesDialog = ordersParts.closesDialog;
34
+ exports.goesTo = ordersParts.goesTo;
35
+ exports.opensDialog = ordersParts.opensDialog;
36
+ exports.opensDialogOnSelect = ordersParts.opensDialogOnSelect;
37
+ exports.opensRecordOnSelect = ordersParts.opensRecordOnSelect;
38
+ exports.ordersCategory = ordersParts.ordersCategory;
39
+ exports.ordersMetadata = ordersParts.ordersMetadata;
40
+ exports.thumbnailOf = ordersParts.thumbnailOf;
41
+ exports.withBehaviors = ordersParts.withBehaviors;
42
+ exports.ordersScreenDefinitions = ordersScreenSet.ordersScreenDefinitions;
43
+ exports.ordersScreenTemplates = index.ordersScreenTemplates;
44
+ exports.ordersScreens = index$1.ordersScreens;
45
+ exports.ordersModule = navigation.ordersModule;
46
+ exports.ordersNavigation = navigation.ordersNavigation;
47
+ exports.ordersStructure = navigation.ordersStructure;
48
+ exports.ordersBlueprintManifest = manifest.ordersBlueprintManifest;
49
+ exports.ordersBlueprint = blueprint.ordersBlueprint;
50
+ exports.ordersApplication = ordersApplication.ordersApplication;
51
+ exports.ordersComposition = ordersApplication.ordersComposition;
52
+ exports.ordersDefaultSampleDataId = ordersApplication.ordersDefaultSampleDataId;
53
+ exports.ordersNavigationModel = ordersApplication.ordersNavigationModel;
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.deliveryCalendarTemplate = deliveryTemplate.deliveryCalendarTemplate;
63
+ exports.fulfilmentBoardTemplate = boardTemplate.fulfilmentBoardTemplate;
64
+ exports.orderPageTemplate = recordTemplates.orderPageTemplate;
65
+ exports.ordersDialogTemplates = formTemplates.ordersDialogs;
66
+ exports.ordersDialogs = formTemplates.ordersDialogs;
67
+ exports.ordersListTemplate = listTemplates.ordersListTemplate;
68
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var packageName = require('./packageName.js');
5
+ var ordersScreenSet = require('./ordersScreenSet.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 = 'Sales orders from placing to delivery: every order with its status, an order page with its lines and shipments, a fulfilment board and a delivery calendar.';
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 ordersBlueprintManifest = {
17
+ name: packageName.ordersBlueprintName,
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.ordersScreenTemplates.map((template)=>template.name),
29
+ dialogTemplates: formTemplates.ordersDialogs.map((template)=>template.name),
30
+ themes: [],
31
+ displayName: 'Orders',
32
+ description,
33
+ module: '@cratis/scene.blueprint.orders',
34
+ license: 'MIT',
35
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
36
+ sampleData: [
37
+ {
38
+ id: 'orders-en',
39
+ title: 'Orders · English',
40
+ locale: 'en-GB',
41
+ path: 'sampleData/orders-en.json'
42
+ }
43
+ ],
44
+ blueprint: {
45
+ domain: 'orders',
46
+ description,
47
+ thumbnail: 'thumbnails/orders.svg',
48
+ screenSet: ordersScreenSet.ordersScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
49
+ name,
50
+ title,
51
+ description: screenDescription,
52
+ template,
53
+ ...parent === undefined ? {} : {
54
+ parent
55
+ },
56
+ ...order === undefined ? {} : {
57
+ order
58
+ }
59
+ })),
60
+ defaultSampleData: 'orders-en'
61
+ }
62
+ };
63
+
64
+ exports.ordersBlueprintManifest = ordersBlueprintManifest;
65
+ //# 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 { ordersBlueprintName } from './packageName';\nimport { ordersScreenDefinitions } from './ordersScreenSet';\nimport { ordersDialogTemplates, ordersScreenTemplates } from './templates';\n\nconst description = 'Sales orders from placing to delivery: every order with its status, an order page with its lines and shipments, a fulfilment board and a delivery calendar.';\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 ordersBlueprintManifest: ScenePackage = {\n name: ordersBlueprintName,\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: ordersScreenTemplates.map(template => template.name),\n dialogTemplates: ordersDialogTemplates.map(template => template.name),\n themes: [],\n displayName: 'Orders',\n description,\n module: '@cratis/scene.blueprint.orders',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n sampleData: [{ id: 'orders-en', title: 'Orders · English', locale: 'en-GB', path: 'sampleData/orders-en.json' }],\n blueprint: {\n domain: 'orders',\n description,\n thumbnail: 'thumbnails/orders.svg',\n screenSet: ordersScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order }) => ({\n name, title, description: screenDescription, template, ...(parent === undefined ? {} : { parent }), ...(order === undefined ? {} : { order }),\n })),\n defaultSampleData: 'orders-en',\n },\n};\n"],"names":["description","ordersBlueprintManifest","name","ordersBlueprintName","version","kind","PackageKind","Blueprint","dependencies","versionRange","components","layouts","screenTemplates","ordersScreenTemplates","map","template","dialogTemplates","ordersDialogTemplates","themes","displayName","module","license","licenseUrl","sampleData","id","title","locale","path","blueprint","domain","thumbnail","screenSet","ordersScreenDefinitions","screenDescription","parent","order","undefined","defaultSampleData"],"mappings":";;;;;;;;AAAA;AACA;AAOA,MAAMA,WAAAA,GAAc,6JAAA;AAEpB;;;;UAKaC,uBAAAA,GAAwC;IACjDC,IAAAA,EAAMC,+BAAAA;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,4BAAsBC,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACpEc,IAAAA,eAAAA,EAAiBC,4BAAsBH,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACpEgB,IAAAA,MAAAA,EAAQ,EAAE;IACVC,WAAAA,EAAa,QAAA;AACbnB,IAAAA,WAAAA;IACAoB,MAAAA,EAAQ,gCAAA;IACRC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY,mDAAA;IACZC,UAAAA,EAAY;AAAC,QAAA;YAAEC,EAAAA,EAAI,WAAA;YAAaC,KAAAA,EAAO,kBAAA;YAAoBC,MAAAA,EAAQ,OAAA;YAASC,IAAAA,EAAM;AAA4B;AAAE,KAAA;IAChHC,SAAAA,EAAW;QACPC,MAAAA,EAAQ,QAAA;AACR7B,QAAAA,WAAAA;QACA8B,SAAAA,EAAW,uBAAA;AACXC,QAAAA,SAAAA,EAAWC,wCAAwBlB,GAAG,CAAC,CAAC,EAAEZ,IAAI,EAAEuB,KAAK,EAAEzB,aAAaiC,iBAAiB,EAAElB,QAAQ,EAAEmB,MAAM,EAAEC,KAAK,EAAE,IAAM;AAClHjC,gBAAAA,IAAAA;AAAMuB,gBAAAA,KAAAA;gBAAOzB,WAAAA,EAAaiC,iBAAAA;AAAmBlB,gBAAAA,QAAAA;gBAAU,GAAImB,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 ordersScreenSet = require('./ordersScreenSet.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 ordersModule = 'orders';
9
+ /**
10
+ * The application structure the screen set implies: one module, `orders`, a feature for each screen and the sub-features beneath it (`orders.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 ordersStructure = (()=>{
13
+ const root = {
14
+ id: ordersModule,
15
+ name: 'Orders',
16
+ features: []};
17
+ for (const screen of ordersScreenSet.ordersScreenDefinitions){
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: Orders, Fulfilment and Deliveries.
46
+ */ const ordersNavigation = {
47
+ application: {
48
+ logo: {
49
+ image: '',
50
+ title: 'Orders'
51
+ },
52
+ regions: [
53
+ {
54
+ region: scene_model.NavigationRegionKind.Topbar,
55
+ items: [
56
+ {
57
+ id: 'orders',
58
+ title: 'Orders',
59
+ target: {
60
+ module: ordersModule
61
+ }
62
+ }
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ modules: [
68
+ {
69
+ module: ordersModule,
70
+ regions: [
71
+ {
72
+ region: scene_model.NavigationRegionKind.Sidebar,
73
+ mode: scene_model.NavigationRegionMode.Override,
74
+ items: [
75
+ {
76
+ id: 'order-list',
77
+ title: 'Orders',
78
+ target: {
79
+ module: ordersModule,
80
+ feature: 'list'
81
+ }
82
+ },
83
+ {
84
+ id: 'fulfilment',
85
+ title: 'Fulfilment',
86
+ target: {
87
+ module: ordersModule,
88
+ feature: 'fulfilment'
89
+ }
90
+ },
91
+ {
92
+ id: 'deliveries',
93
+ title: 'Deliveries',
94
+ target: {
95
+ module: ordersModule,
96
+ feature: 'deliveries'
97
+ }
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ }
103
+ ]
104
+ };
105
+
106
+ exports.ordersModule = ordersModule;
107
+ exports.ordersNavigation = ordersNavigation;
108
+ exports.ordersStructure = ordersStructure;
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 { ordersScreenDefinitions } from './ordersScreenSet';\n\n/** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */\nexport const ordersModule = 'orders';\n\n/**\n * The application structure the screen set implies: one module, `orders`, a feature for each screen and the sub-features beneath it (`orders.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 ordersStructure: ApplicationStructure = (() => {\n interface Node { id: string; name: string; features: Node[]; slices: never[] }\n const root: Node = { id: ordersModule, name: 'Orders', features: [], slices: [] };\n for (const screen of ordersScreenDefinitions) {\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: Orders, Fulfilment and Deliveries.\n */\nexport const ordersNavigation: NavigationModel = {\n application: {\n logo: { image: '', title: 'Orders' },\n regions: [{ region: NavigationRegionKind.Topbar, items: [{ id: 'orders', title: 'Orders', target: { module: ordersModule } }] }],\n },\n modules: [{\n module: ordersModule,\n regions: [{\n region: NavigationRegionKind.Sidebar,\n mode: NavigationRegionMode.Override,\n items: [\n { id: 'order-list', title: 'Orders', target: { module: ordersModule, feature: 'list' } },\n { id: 'fulfilment', title: 'Fulfilment', target: { module: ordersModule, feature: 'fulfilment' } },\n { id: 'deliveries', title: 'Deliveries', target: { module: ordersModule, feature: 'deliveries' } },\n ],\n }],\n }],\n};\n"],"names":["ordersModule","ordersStructure","root","id","name","features","screen","ordersScreenDefinitions","parent","split","slice","node","find","candidate","title","slices","push","modules","ordersNavigation","application","logo","image","regions","region","NavigationRegionKind","Topbar","items","target","module","Sidebar","mode","NavigationRegionMode","Override","feature"],"mappings":";;;;;AAAA;AACA;AAKA,8GACO,MAAMA,YAAAA,GAAe;AAE5B;;;AAGC,IACM,MAAMC,eAAAA,GAAyC,CAAA,IAAA;AAElD,IAAA,MAAMC,IAAAA,GAAa;QAAEC,EAAAA,EAAIH,YAAAA;QAAcI,IAAAA,EAAM,QAAA;AAAUC,QAAAA,QAAAA,EAAU,EAAe,CAAA;IAChF,KAAK,MAAMC,UAAUC,uCAAAA,CAAyB;AAC1C,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,gBAAAA,GAAoC;IAC7CC,WAAAA,EAAa;QACTC,IAAAA,EAAM;YAAEC,KAAAA,EAAO,EAAA;YAAIP,KAAAA,EAAO;AAAS,SAAA;QACnCQ,OAAAA,EAAS;AAAC,YAAA;AAAEC,gBAAAA,MAAAA,EAAQC,iCAAqBC,MAAM;gBAAEC,KAAAA,EAAO;AAAC,oBAAA;wBAAEvB,EAAAA,EAAI,QAAA;wBAAUW,KAAAA,EAAO,QAAA;wBAAUa,MAAAA,EAAQ;4BAAEC,MAAAA,EAAQ5B;AAAa;AAAE;AAAE;AAAC;AAAE;AACpI,KAAA;IACAiB,OAAAA,EAAS;AAAC,QAAA;YACNW,MAAAA,EAAQ5B,YAAAA;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,YAAA;4BAAcW,KAAAA,EAAO,QAAA;4BAAUa,MAAAA,EAAQ;gCAAEC,MAAAA,EAAQ5B,YAAAA;gCAAciC,OAAAA,EAAS;AAAO;AAAE,yBAAA;AACvF,wBAAA;4BAAE9B,EAAAA,EAAI,YAAA;4BAAcW,KAAAA,EAAO,YAAA;4BAAca,MAAAA,EAAQ;gCAAEC,MAAAA,EAAQ5B,YAAAA;gCAAciC,OAAAA,EAAS;AAAa;AAAE,yBAAA;AACjG,wBAAA;4BAAE9B,EAAAA,EAAI,YAAA;4BAAcW,KAAAA,EAAO,YAAA;4BAAca,MAAAA,EAAQ;gCAAEC,MAAAA,EAAQ5B,YAAAA;gCAAciC,OAAAA,EAAS;AAAa;AAAE;AACpG;AACL;AAAE;AACN;AAAE;AACN;;;;"}
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var scene_engine = require('@cratis/scene.engine');
4
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
5
+ var navigation = require('./navigation.js');
6
+ var index = require('./screens/index.js');
7
+ var index$1 = require('./templates/index.js');
8
+ var formTemplates = require('./templates/formTemplates.js');
9
+
10
+ // Copyright (c) Cratis. All rights reserved.
11
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
12
+ /** The id of the sample-data pack a new application starts with. */ const ordersDefaultSampleDataId = 'orders-en';
13
+ /**
14
+ * The example application of the blueprint: the foundation's layouts, the Orders templates, the quick-create dialog and its four screens, rendering against the
15
+ * foundation's packages with the default sample-data pack chosen. This is what a gallery previews and what the conformance fixture
16
+ * (`Samples/Orders/orders.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.
17
+ */ function ordersApplication(sampleData = ordersDefaultSampleDataId) {
18
+ const profile = {
19
+ ...scene_blueprint_default.previewProfile(undefined),
20
+ name: 'Orders',
21
+ sampleData: {
22
+ activePack: sampleData,
23
+ mappings: [],
24
+ bindings: []
25
+ }
26
+ };
27
+ return {
28
+ layouts: scene_blueprint_default.defaultLayouts,
29
+ screenTemplates: index$1.ordersScreenTemplates,
30
+ dialogTemplates: formTemplates.ordersDialogs,
31
+ screens: index.ordersScreens,
32
+ uiProfiles: [
33
+ profile
34
+ ]
35
+ };
36
+ }
37
+ /** What a host composes the screens with: the application's logo, which the shell's topbar shows. */ const ordersComposition = {
38
+ logo: navigation.ordersNavigation.application.logo
39
+ };
40
+ /** The structure and navigation the shell's regions show and the items' destinations resolve against. */ const ordersNavigationModel = ()=>({
41
+ structure: new scene_engine.ApplicationStructureIndex(navigation.ordersStructure),
42
+ navigation: navigation.ordersNavigation
43
+ });
44
+
45
+ exports.ordersApplication = ordersApplication;
46
+ exports.ordersComposition = ordersComposition;
47
+ exports.ordersDefaultSampleDataId = ordersDefaultSampleDataId;
48
+ exports.ordersNavigationModel = ordersNavigationModel;
49
+ //# sourceMappingURL=ordersApplication.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ordersApplication.js","sources":["../../ordersApplication.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 { UiProfile } from '@cratis/scene.model';\nimport { ApplicationStructureIndex } from '@cratis/scene.engine';\nimport { ApplicationDocument, CompositionOptions, defaultLayouts, previewProfile } from '@cratis/scene.blueprint.default';\nimport { ordersNavigation, ordersStructure } from './navigation';\nimport { ordersScreens } from './screens';\nimport { ordersDialogTemplates, ordersScreenTemplates } from './templates';\n\n/** The id of the sample-data pack a new application starts with. */\nexport const ordersDefaultSampleDataId = 'orders-en';\n\n/**\n * The example application of the blueprint: the foundation's layouts, the Orders templates, the quick-create dialog and its four screens, rendering against the\n * foundation's packages with the default sample-data pack chosen. This is what a gallery previews and what the conformance fixture\n * (`Samples/Orders/orders.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.\n */\nexport function ordersApplication(sampleData: string = ordersDefaultSampleDataId): ApplicationDocument {\n const profile: UiProfile = { ...previewProfile(undefined), name: 'Orders', sampleData: { activePack: sampleData, mappings: [], bindings: [] } };\n return { layouts: defaultLayouts, screenTemplates: ordersScreenTemplates, dialogTemplates: ordersDialogTemplates, screens: ordersScreens, uiProfiles: [profile] };\n}\n\n/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */\nexport const ordersComposition: CompositionOptions = { logo: ordersNavigation.application.logo };\n\n/** The structure and navigation the shell's regions show and the items' destinations resolve against. */\nexport const ordersNavigationModel = () => ({ structure: new ApplicationStructureIndex(ordersStructure), navigation: ordersNavigation });\n"],"names":["ordersDefaultSampleDataId","ordersApplication","sampleData","profile","previewProfile","undefined","name","activePack","mappings","bindings","layouts","defaultLayouts","screenTemplates","ordersScreenTemplates","dialogTemplates","ordersDialogTemplates","screens","ordersScreens","uiProfiles","ordersComposition","logo","ordersNavigation","application","ordersNavigationModel","structure","ApplicationStructureIndex","ordersStructure","navigation"],"mappings":";;;;;;;;;AAAA;AACA;AASA,qEACO,MAAMA,yBAAAA,GAA4B;AAEzC;;;;AAIC,IACM,SAASC,iBAAAA,CAAkBC,UAAAA,GAAqBF,yBAAyB,EAAA;AAC5E,IAAA,MAAMG,OAAAA,GAAqB;AAAE,QAAA,GAAGC,uCAAeC,SAAAA,CAAU;QAAEC,IAAAA,EAAM,QAAA;QAAUJ,UAAAA,EAAY;YAAEK,UAAAA,EAAYL,UAAAA;AAAYM,YAAAA,QAAAA,EAAU,EAAE;AAAEC,YAAAA,QAAAA,EAAU;AAAG;AAAE,KAAA;IAC9I,OAAO;QAAEC,OAAAA,EAASC,sCAAAA;QAAgBC,eAAAA,EAAiBC,6BAAAA;QAAuBC,eAAAA,EAAiBC,2BAAAA;QAAuBC,OAAAA,EAASC,mBAAAA;QAAeC,UAAAA,EAAY;AAACf,YAAAA;AAAQ;AAAC,KAAA;AACpK;AAEA,sGACO,MAAMgB,iBAAAA,GAAwC;IAAEC,IAAAA,EAAMC,2BAAAA,CAAiBC,WAAW,CAACF;AAAK;AAE/F,0GACO,MAAMG,qBAAAA,GAAwB,KAAO;AAAEC,QAAAA,SAAAA,EAAW,IAAIC,sCAAAA,CAA0BC,0BAAAA,CAAAA;QAAkBC,UAAAA,EAAYN;AAAiB,KAAA;;;;;"}