@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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../templates/index.ts"],"sourcesContent":["import { fulfilmentBoardTemplate } from './boardTemplate';\nimport { deliveryCalendarTemplate } from './deliveryTemplate';\nimport { ordersListTemplate } from './listTemplates';\nimport { orderPageTemplate } from './recordTemplates';\n\nexport * from './listTemplates';\nexport * from './recordTemplates';\nexport * from './boardTemplate';\nexport * from './deliveryTemplate';\nexport * from './formTemplates';\n\n/** Every screen template this blueprint provides, in the order the manifest lists them. */\nexport const ordersScreenTemplates = [ordersListTemplate, orderPageTemplate, fulfilmentBoardTemplate, deliveryCalendarTemplate];\n\nexport { ordersDialogs as ordersDialogTemplates } from './formTemplates';\n"],"names":["ordersScreenTemplates","ordersListTemplate","orderPageTemplate","fulfilmentBoardTemplate","deliveryCalendarTemplate"],"mappings":";;;;;;;;AAWA,4FACO,MAAMA,qBAAAA,GAAwB;AAACC,IAAAA,gCAAAA;AAAoBC,IAAAA,iCAAAA;AAAmBC,IAAAA,qCAAAA;AAAyBC,IAAAA;;;;;;;;;"}
@@ -0,0 +1,145 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
5
+ var ordersQueries = require('../ordersQueries.js');
6
+ var ordersParts = require('../ordersParts.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
+ const listScopes = [
11
+ scene_model.TemplateScope.Module,
12
+ scene_model.TemplateScope.Feature
13
+ ];
14
+ /** The Export button: it tells the user the export has started, which is what the shell does for a long-running action it does not wait on. */ const exportAction = (id)=>ordersParts.withBehaviors(ordersParts.actionButton(id, 'Export', 'secondary'), [
15
+ {
16
+ bindings: [
17
+ {
18
+ trigger: {
19
+ kind: scene_model.InteractionTriggerKind.Click
20
+ },
21
+ actions: [
22
+ {
23
+ kind: scene_model.InteractionActionKind.Notify,
24
+ level: scene_model.NotificationLevel.Info,
25
+ message: {
26
+ text: 'The export has started.'
27
+ }
28
+ }
29
+ ]
30
+ }
31
+ ]
32
+ }
33
+ ]);
34
+ /**
35
+ * One orders list: the foundation `ListScreen` with its header, toolbar, filters, list and bulk bar filled for an entity. The slots, arrangement and
36
+ * every behavior - sort, search, paging and selection in the address, the table collapsing to cards on a phone - are the foundation's.
37
+ */ function listTemplateOf(options) {
38
+ const queries = ordersQueries.ordersQueriesOf(options.entity);
39
+ const id = options.name;
40
+ const listId = `${id}-records`;
41
+ const primary = ordersParts.withBehaviors(ordersParts.actionButton(`${id}-primary`, options.primary.label, 'primary'), options.primary.dialog ? ordersParts.opensDialog(options.primary.dialog) : ordersParts.goesTo(options.primary.screen));
42
+ const list = scene_blueprint_default.component(listId, 'dataList', {
43
+ label: options.title,
44
+ rows: ordersQueries.fromQuery(queries.rows),
45
+ columns: ordersQueries.fromQuery(queries.columns),
46
+ titleField: options.titleField,
47
+ pageSize: options.cards ? 12 : 10,
48
+ urlKey: options.urlKey,
49
+ ...ordersQueries.localeOfData,
50
+ rowActions: options.rowActions,
51
+ ...options.readOnly ? {} : {
52
+ selectionMode: options.recordScreen || options.recordDialog ? 'single' : 'multiple'
53
+ },
54
+ ...options.cards ? {
55
+ variant: 'cards',
56
+ ...options.cards.imageField ? {
57
+ imageField: options.cards.imageField
58
+ } : {}
59
+ } : {},
60
+ ...options.grouped ? {
61
+ variant: 'grouped',
62
+ groupBy: options.grouped.groupBy
63
+ } : {},
64
+ ...options.toneField ? {
65
+ toneField: options.toneField
66
+ } : {}
67
+ });
68
+ return {
69
+ name: options.name,
70
+ fitsSlot: 'content',
71
+ slots: scene_blueprint_default.listScreenTemplate.slots,
72
+ arrangement: scene_blueprint_default.listScreenTemplate.arrangement,
73
+ content: {
74
+ header: [
75
+ scene_blueprint_default.component(`${id}-header`, 'pageHeader', {
76
+ title: options.title,
77
+ subtitle: options.subtitle
78
+ }, {
79
+ actions: [
80
+ exportAction(`${id}-export`),
81
+ primary
82
+ ]
83
+ })
84
+ ],
85
+ toolbar: [
86
+ scene_blueprint_default.component(`${id}-search`, 'globalSearch', {
87
+ placeholder: options.searchLabel,
88
+ label: options.searchLabel,
89
+ urlKey: `${options.urlKey}q`
90
+ }),
91
+ scene_blueprint_default.component(`${id}-views`, 'savedViewsMenu', {
92
+ views: ordersQueries.fromQuery(queries.views),
93
+ savePermission: 'enabled',
94
+ managePermission: 'enabled'
95
+ }),
96
+ scene_blueprint_default.component(`${id}-columns`, 'columnChooser', {
97
+ columns: ordersQueries.fromQuery(queries.columnChoices)
98
+ })
99
+ ],
100
+ filters: [
101
+ scene_blueprint_default.component(`${id}-filter`, 'filterBuilder', {
102
+ fields: ordersQueries.fromQuery(queries.filterFields),
103
+ ...ordersQueries.localeOfData
104
+ })
105
+ ],
106
+ list: [
107
+ options.recordScreen ? ordersParts.withBehaviors(list, ordersParts.opensRecordOnSelect(listId, options.recordScreen)) : list
108
+ ],
109
+ bulkBar: options.recordScreen || options.recordDialog || options.readOnly ? [] : [
110
+ scene_blueprint_default.component(`${id}-bulk`, 'bulkBar', {
111
+ selection: ordersQueries.fromQuery(queries.selection),
112
+ actions: options.bulkActions
113
+ })
114
+ ],
115
+ footer: []
116
+ },
117
+ displayName: options.displayName,
118
+ description: options.description,
119
+ metadata: ordersParts.ordersMetadata(options.name, 'List', listScopes)
120
+ };
121
+ }
122
+ /** The orders: every order with its customer, dates, total and status, filtered by customer, status and channel. Choosing an order opens it. */ const ordersListTemplate = listTemplateOf({
123
+ name: 'OrdersList',
124
+ entity: ordersQueries.OrdersEntityKind.Order,
125
+ displayName: 'Orders list',
126
+ description: 'Every order with customer, placed and delivery dates, total and status, filtered by customer, status, channel and date.',
127
+ title: 'Orders',
128
+ subtitle: 'Everything customers have ordered',
129
+ searchLabel: 'Search orders',
130
+ urlKey: 'orders',
131
+ primary: {
132
+ label: 'New order',
133
+ dialog: 'OrdersQuickCreateOrder'
134
+ },
135
+ rowActions: [
136
+ 'Open',
137
+ 'Cancel order'
138
+ ],
139
+ bulkActions: [],
140
+ titleField: 'number',
141
+ recordScreen: 'orders.record'
142
+ });
143
+
144
+ exports.ordersListTemplate = ordersListTemplate;
145
+ //# sourceMappingURL=listTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"listTemplates.js","sources":["../../../templates/listTemplates.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 { InteractionActionKind, InteractionTriggerKind, NotificationLevel, NotifyAction, ScreenTemplate, TemplateScope } from '@cratis/scene.model';\nimport { listScreenTemplate } from '@cratis/scene.blueprint.default';\nimport { OrdersEntityKind, fromQuery, ordersQueriesOf, localeOfData } from '../ordersQueries';\nimport { actionButton, component, goesTo, ordersMetadata, opensDialog, opensRecordOnSelect, withBehaviors } from '../ordersParts';\n\nconst listScopes = [TemplateScope.Module, TemplateScope.Feature];\n\n/** The Export button: it tells the user the export has started, which is what the shell does for a long-running action it does not wait on. */\nconst exportAction = (id: string) => withBehaviors(actionButton(id, 'Export', 'secondary'), [{\n bindings: [{\n trigger: { kind: InteractionTriggerKind.Click },\n actions: [{ kind: InteractionActionKind.Notify, level: NotificationLevel.Info, message: { text: 'The export has started.' } } as unknown as NotifyAction],\n }],\n}]);\n\ninterface ListOptions {\n name: string;\n entity: OrdersEntityKind;\n displayName: string;\n description: string;\n title: string;\n subtitle: string;\n searchLabel: string;\n urlKey: string;\n /** The primary action of the header: a quick-create dialog to open, or a screen to go to. */\n primary: { label: string; dialog?: string; screen?: string };\n rowActions: string[];\n bulkActions: string[];\n titleField: string;\n /** The screen a chosen row opens; the list then selects one row at a time. Absent, rows are selected many at a time for the bulk bar. */\n recordScreen?: string;\n /** The side sheet a chosen row opens instead of a record page; the list then selects one row at a time. */\n recordDialog?: string;\n /** Group the rows (`variant: grouped`) by this field. */\n grouped?: { groupBy: string };\n /** Rows are not selectable at all: a record of what happened, which nobody edits. */\n readOnly?: boolean;\n /** Show the records as cards, each with the picture its `imageField` names. */\n cards?: { imageField?: string };\n /** Tint a row by the tone in this field (always beside a status column that says the same in words). */\n toneField?: string;\n}\n\n/**\n * One orders list: the foundation `ListScreen` with its header, toolbar, filters, list and bulk bar filled for an entity. The slots, arrangement and\n * every behavior - sort, search, paging and selection in the address, the table collapsing to cards on a phone - are the foundation's.\n */\nfunction listTemplateOf(options: ListOptions): ScreenTemplate {\n const queries = ordersQueriesOf(options.entity);\n const id = options.name;\n const listId = `${id}-records`;\n const primary = withBehaviors(actionButton(`${id}-primary`, options.primary.label, 'primary'), options.primary.dialog ? opensDialog(options.primary.dialog) : goesTo(options.primary.screen!));\n const list = component(listId, 'dataList', {\n label: options.title, rows: fromQuery(queries.rows), columns: fromQuery(queries.columns), titleField: options.titleField, pageSize: options.cards ? 12 : 10, urlKey: options.urlKey, ...localeOfData,\n rowActions: options.rowActions,\n ...(options.readOnly ? {} : { selectionMode: options.recordScreen || options.recordDialog ? 'single' : 'multiple' }),\n ...(options.cards ? { variant: 'cards', ...(options.cards.imageField ? { imageField: options.cards.imageField } : {}) } : {}),\n ...(options.grouped ? { variant: 'grouped', groupBy: options.grouped.groupBy } : {}),\n ...(options.toneField ? { toneField: options.toneField } : {}),\n });\n\n return {\n name: options.name,\n fitsSlot: 'content',\n slots: listScreenTemplate.slots,\n arrangement: listScreenTemplate.arrangement,\n content: {\n header: [component(`${id}-header`, 'pageHeader', { title: options.title, subtitle: options.subtitle }, { actions: [exportAction(`${id}-export`), primary] })],\n toolbar: [\n component(`${id}-search`, 'globalSearch', { placeholder: options.searchLabel, label: options.searchLabel, urlKey: `${options.urlKey}q` }),\n component(`${id}-views`, 'savedViewsMenu', { views: fromQuery(queries.views), savePermission: 'enabled', managePermission: 'enabled' }),\n component(`${id}-columns`, 'columnChooser', { columns: fromQuery(queries.columnChoices) }),\n ],\n filters: [component(`${id}-filter`, 'filterBuilder', { fields: fromQuery(queries.filterFields), ...localeOfData })],\n list: [options.recordScreen ? withBehaviors(list, opensRecordOnSelect(listId, options.recordScreen)) : list],\n bulkBar: options.recordScreen || options.recordDialog || options.readOnly ? [] : [component(`${id}-bulk`, 'bulkBar', { selection: fromQuery(queries.selection), actions: options.bulkActions })],\n footer: [],\n },\n displayName: options.displayName,\n description: options.description,\n metadata: ordersMetadata(options.name, 'List', listScopes),\n };\n}\n\n/** The orders: every order with its customer, dates, total and status, filtered by customer, status and channel. Choosing an order opens it. */\nexport const ordersListTemplate = listTemplateOf({\n name: 'OrdersList', entity: OrdersEntityKind.Order, displayName: 'Orders list', description: 'Every order with customer, placed and delivery dates, total and status, filtered by customer, status, channel and date.',\n title: 'Orders', subtitle: 'Everything customers have ordered', searchLabel: 'Search orders', urlKey: 'orders', primary: { label: 'New order', dialog: 'OrdersQuickCreateOrder' },\n rowActions: ['Open', 'Cancel order'], bulkActions: [], titleField: 'number', recordScreen: 'orders.record',\n});\n"],"names":["listScopes","TemplateScope","Module","Feature","exportAction","id","withBehaviors","actionButton","bindings","trigger","kind","InteractionTriggerKind","Click","actions","InteractionActionKind","Notify","level","NotificationLevel","Info","message","text","listTemplateOf","options","queries","ordersQueriesOf","entity","name","listId","primary","label","dialog","opensDialog","goesTo","screen","list","component","title","rows","fromQuery","columns","titleField","pageSize","cards","urlKey","localeOfData","rowActions","readOnly","selectionMode","recordScreen","recordDialog","variant","imageField","grouped","groupBy","toneField","fitsSlot","slots","listScreenTemplate","arrangement","content","header","subtitle","toolbar","placeholder","searchLabel","views","savePermission","managePermission","columnChoices","filters","fields","filterFields","opensRecordOnSelect","bulkBar","selection","bulkActions","footer","displayName","description","metadata","ordersMetadata","ordersListTemplate","OrdersEntityKind","Order"],"mappings":";;;;;;;AAAA;AACA;AAOA,MAAMA,UAAAA,GAAa;AAACC,IAAAA,yBAAAA,CAAcC,MAAM;AAAED,IAAAA,yBAAAA,CAAcE;AAAQ,CAAA;AAEhE,gJACA,MAAMC,YAAAA,GAAe,CAACC,KAAeC,yBAAAA,CAAcC,wBAAAA,CAAaF,EAAAA,EAAI,QAAA,EAAU,WAAA,CAAA,EAAc;AAAC,QAAA;YACzFG,QAAAA,EAAU;AAAC,gBAAA;oBACPC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,mCAAuBC;AAAM,qBAAA;oBAC9CC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,kCAAsBC,MAAM;AAAEC,4BAAAA,KAAAA,EAAOC,8BAAkBC,IAAI;4BAAEC,OAAAA,EAAS;gCAAEC,IAAAA,EAAM;AAA0B;AAAE;AAA6B;AAC7J;AAAE;AACN;AAAE,KAAA,CAAA;AA8BF;;;IAIA,SAASC,eAAeC,OAAoB,EAAA;IACxC,MAAMC,OAAAA,GAAUC,6BAAAA,CAAgBF,OAAAA,CAAQG,MAAM,CAAA;IAC9C,MAAMpB,EAAAA,GAAKiB,QAAQI,IAAI;AACvB,IAAA,MAAMC,MAAAA,GAAS,CAAA,EAAGtB,EAAAA,CAAG,QAAQ,CAAC;AAC9B,IAAA,MAAMuB,OAAAA,GAAUtB,yBAAAA,CAAcC,wBAAAA,CAAa,CAAA,EAAGF,EAAAA,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AA,EAAa,aAAA;IAAeC,WAAAA,EAAa,yHAAA;IAC7F1C,KAAAA,EAAO,QAAA;IAAUyB,QAAAA,EAAU,mCAAA;IAAqCG,WAAAA,EAAa,eAAA;IAAiBrB,MAAAA,EAAQ,QAAA;IAAUf,OAAAA,EAAS;QAAEC,KAAAA,EAAO,WAAA;QAAaC,MAAAA,EAAQ;AAAyB,KAAA;IAChLe,UAAAA,EAAY;AAAC,QAAA,MAAA;AAAQ,QAAA;AAAe,KAAA;AAAE8B,IAAAA,WAAAA,EAAa,EAAE;IAAEnC,UAAAA,EAAY,QAAA;IAAUQ,YAAAA,EAAc;AAC/F,CAAA;;"}
@@ -0,0 +1,101 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
5
+ var ordersQueries = require('../ordersQueries.js');
6
+ var ordersParts = require('../ordersParts.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
+ const order = ordersQueries.ordersQueriesOf(ordersQueries.OrdersEntityKind.Order);
11
+ /**
12
+ * The order page: the foundation `RecordPage` with the order number as its title, its status, total and days to delivery as key facts, the order's fields, its
13
+ * lines and shipments in the main region, and the activity beside it.
14
+ */ const orderPageTemplate = {
15
+ name: 'OrderPage',
16
+ fitsSlot: 'content',
17
+ slots: scene_blueprint_default.recordPageTemplate.slots,
18
+ arrangement: scene_blueprint_default.recordPageTemplate.arrangement,
19
+ content: {
20
+ header: [
21
+ scene_blueprint_default.component('OrderPage-header', 'pageHeader', {
22
+ title: ordersQueries.fromQuery(order.record, '0.number'),
23
+ subtitle: ordersQueries.fromQuery(order.record, '0.summary')
24
+ }, {
25
+ actions: [
26
+ ordersParts.withBehaviors(ordersParts.actionButton('OrderPage-back', 'Back to orders', 'secondary'), ordersParts.goesTo('orders.list'))
27
+ ]
28
+ })
29
+ ],
30
+ summary: [
31
+ scene_blueprint_default.component('OrderPage-status', 'statusChip', {
32
+ status: ordersQueries.fromQuery(order.summary, '0.status'),
33
+ tone: ordersQueries.fromQuery(order.summary, '0.tone')
34
+ }),
35
+ scene_blueprint_default.component('OrderPage-total', 'statCard', {
36
+ label: 'Order total',
37
+ value: ordersQueries.fromQuery(order.summary, '0.total'),
38
+ format: 'currency',
39
+ ...ordersQueries.currencyOfData
40
+ }),
41
+ scene_blueprint_default.component('OrderPage-items', 'statCard', {
42
+ label: 'Items',
43
+ value: ordersQueries.fromQuery(order.summary, '0.items'),
44
+ ...ordersQueries.localeOfData
45
+ }),
46
+ scene_blueprint_default.component('OrderPage-days', 'statCard', {
47
+ label: 'Days to delivery',
48
+ value: ordersQueries.fromQuery(order.summary, '0.daysToDelivery'),
49
+ ...ordersQueries.localeOfData
50
+ })
51
+ ],
52
+ tabs: [
53
+ scene_blueprint_default.component('OrderPage-tabs', 'tabSet', {
54
+ tabs: ordersQueries.fromQuery(ordersQueries.OrdersQuery.RecordTabs),
55
+ urlKey: 'tab',
56
+ label: 'Order sections'
57
+ })
58
+ ],
59
+ main: [
60
+ scene_blueprint_default.component('OrderPage-form', 'formScreenBody', {
61
+ mode: 'readOnly',
62
+ sections: ordersQueries.fromQuery(order.sections),
63
+ values: ordersQueries.fromQuery(order.record, '0'),
64
+ ...ordersQueries.currencyOfData
65
+ }),
66
+ scene_blueprint_default.component('OrderPage-lines', 'dataList', {
67
+ label: 'Order lines',
68
+ rows: ordersQueries.fromQuery(ordersQueries.OrdersQuery.Lines),
69
+ columns: ordersQueries.fromQuery(ordersQueries.OrdersQuery.LineColumns),
70
+ titleField: 'name',
71
+ pageSize: 8,
72
+ ...ordersQueries.currencyOfData
73
+ }),
74
+ scene_blueprint_default.component('OrderPage-shipments', 'dataList', {
75
+ label: 'Shipments',
76
+ rows: ordersQueries.fromQuery(ordersQueries.OrdersQuery.Shipments),
77
+ columns: ordersQueries.fromQuery(ordersQueries.OrdersQuery.ShipmentColumns),
78
+ titleField: 'reference',
79
+ ...ordersQueries.localeOfData
80
+ })
81
+ ],
82
+ related: [],
83
+ activity: [
84
+ scene_blueprint_default.component('OrderPage-activity', 'activityFeed', {
85
+ label: 'Activity',
86
+ entries: ordersQueries.fromQuery(order.activity),
87
+ ...ordersQueries.localeOfData
88
+ })
89
+ ],
90
+ aside: []
91
+ },
92
+ displayName: 'Order page',
93
+ description: 'One order: key facts, its lines and shipments, and its activity.',
94
+ metadata: ordersParts.ordersMetadata('OrderPage', 'Detail', [
95
+ scene_model.TemplateScope.Feature,
96
+ scene_model.TemplateScope.Subfeature
97
+ ])
98
+ };
99
+
100
+ exports.orderPageTemplate = orderPageTemplate;
101
+ //# sourceMappingURL=recordTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordTemplates.js","sources":["../../../templates/recordTemplates.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 { ScreenTemplate, TemplateScope } from '@cratis/scene.model';\nimport { recordPageTemplate } from '@cratis/scene.blueprint.default';\nimport { OrdersEntityKind, OrdersQuery, fromQuery, localeOfData, ordersQueriesOf, currencyOfData } from '../ordersQueries';\nimport { actionButton, component, goesTo, ordersMetadata, withBehaviors } from '../ordersParts';\n\nconst order = ordersQueriesOf(OrdersEntityKind.Order);\n\n/**\n * The order page: the foundation `RecordPage` with the order number as its title, its status, total and days to delivery as key facts, the order's fields, its\n * lines and shipments in the main region, and the activity beside it.\n */\nexport const orderPageTemplate: ScreenTemplate = {\n name: 'OrderPage',\n fitsSlot: 'content',\n slots: recordPageTemplate.slots,\n arrangement: recordPageTemplate.arrangement,\n content: {\n header: [component('OrderPage-header', 'pageHeader', { title: fromQuery(order.record, '0.number'), subtitle: fromQuery(order.record, '0.summary') }, {\n actions: [withBehaviors(actionButton('OrderPage-back', 'Back to orders', 'secondary'), goesTo('orders.list'))],\n })],\n summary: [\n component('OrderPage-status', 'statusChip', { status: fromQuery(order.summary, '0.status'), tone: fromQuery(order.summary, '0.tone') }),\n component('OrderPage-total', 'statCard', { label: 'Order total', value: fromQuery(order.summary, '0.total'), format: 'currency', ...currencyOfData }),\n component('OrderPage-items', 'statCard', { label: 'Items', value: fromQuery(order.summary, '0.items'), ...localeOfData }),\n component('OrderPage-days', 'statCard', { label: 'Days to delivery', value: fromQuery(order.summary, '0.daysToDelivery'), ...localeOfData }),\n ],\n tabs: [component('OrderPage-tabs', 'tabSet', { tabs: fromQuery(OrdersQuery.RecordTabs), urlKey: 'tab', label: 'Order sections' })],\n main: [\n component('OrderPage-form', 'formScreenBody', { mode: 'readOnly', sections: fromQuery(order.sections), values: fromQuery(order.record, '0'), ...currencyOfData }),\n component('OrderPage-lines', 'dataList', { label: 'Order lines', rows: fromQuery(OrdersQuery.Lines), columns: fromQuery(OrdersQuery.LineColumns), titleField: 'name', pageSize: 8, ...currencyOfData }),\n component('OrderPage-shipments', 'dataList', { label: 'Shipments', rows: fromQuery(OrdersQuery.Shipments), columns: fromQuery(OrdersQuery.ShipmentColumns), titleField: 'reference', ...localeOfData }),\n ],\n related: [],\n activity: [component('OrderPage-activity', 'activityFeed', { label: 'Activity', entries: fromQuery(order.activity), ...localeOfData })],\n aside: [],\n },\n displayName: 'Order page',\n description: 'One order: key facts, its lines and shipments, and its activity.',\n metadata: ordersMetadata('OrderPage', 'Detail', [TemplateScope.Feature, TemplateScope.Subfeature]),\n};\n"],"names":["order","ordersQueriesOf","OrdersEntityKind","Order","orderPageTemplate","name","fitsSlot","slots","recordPageTemplate","arrangement","content","header","component","title","fromQuery","record","subtitle","actions","withBehaviors","actionButton","goesTo","summary","status","tone","label","value","format","currencyOfData","localeOfData","tabs","OrdersQuery","RecordTabs","urlKey","main","mode","sections","values","rows","Lines","columns","LineColumns","titleField","pageSize","Shipments","ShipmentColumns","related","activity","entries","aside","displayName","description","metadata","ordersMetadata","TemplateScope","Feature","Subfeature"],"mappings":";;;;;;;AAAA;AACA;AAOA,MAAMA,KAAAA,GAAQC,6BAAAA,CAAgBC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gBAAGH,UAAAA,EAAY,WAAA;AAAa,gBAAA,GAAGb;AAAa,aAAA;AACxM,SAAA;AACDiB,QAAAA,OAAAA,EAAS,EAAE;QACXC,QAAAA,EAAU;AAAClC,YAAAA,iCAAAA,CAAU,sBAAsB,cAAA,EAAgB;gBAAEY,KAAAA,EAAO,UAAA;gBAAYuB,OAAAA,EAASjC,uBAAAA,CAAUd,MAAM8C,QAAQ,CAAA;AAAG,gBAAA,GAAGlB;AAAa,aAAA;AAAG,SAAA;AACvIoB,QAAAA,KAAAA,EAAO;AACX,KAAA;IACAC,WAAAA,EAAa,YAAA;IACbC,WAAAA,EAAa,kEAAA;IACbC,QAAAA,EAAUC,0BAAAA,CAAe,aAAa,QAAA,EAAU;AAACC,QAAAA,yBAAAA,CAAcC,OAAO;AAAED,QAAAA,yBAAAA,CAAcE;AAAW,KAAA;AACrG;;"}
@@ -0,0 +1,3 @@
1
+ import { ScenePackageBundle } from '@cratis/scene.react';
2
+ export declare const ordersBlueprint: ScenePackageBundle;
3
+ //# sourceMappingURL=blueprint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../blueprint.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAMzD,eAAO,MAAM,eAAe,EAAE,kBAM7B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ordersBlueprintManifest } from './manifest.js';
2
+ import { ordersScreens } from './screens/index.js';
3
+ import { ordersScreenTemplates } from './templates/index.js';
4
+ import { ordersDialogs } from './templates/formTemplates.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
+ /** 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 = {
9
+ manifest: ordersBlueprintManifest,
10
+ components: {},
11
+ screenTemplates: ordersScreenTemplates,
12
+ dialogTemplates: ordersDialogs,
13
+ screens: ordersScreens
14
+ };
15
+
16
+ export { ordersBlueprint };
17
+ //# 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,uBAAAA;AACVC,IAAAA,UAAAA,EAAY,EAAC;IACbC,eAAAA,EAAiBC,qBAAAA;IACjBC,eAAAA,EAAiBC,aAAAA;IACjBC,OAAAA,EAASC;AACb;;"}
@@ -0,0 +1,12 @@
1
+ export * from './packageName';
2
+ export * from './templateProvenance';
3
+ export * from './ordersQueries';
4
+ export * from './ordersParts';
5
+ export * from './ordersScreenSet';
6
+ export * from './templates';
7
+ export * from './screens';
8
+ export * from './navigation';
9
+ export * from './manifest';
10
+ export * from './blueprint';
11
+ export * from './ordersApplication';
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export { ordersBlueprintName } from './packageName.js';
2
+ export { ordersTemplateProvenance } from './templateProvenance.js';
3
+ export { OrdersEntityKind, OrdersQuery, currencyOfData, fromQuery, localeOfData, ordersEntityPlural, ordersQueriesOf } from './ordersQueries.js';
4
+ export { actionButton, closesDialog, goesTo, opensDialog, opensDialogOnSelect, opensRecordOnSelect, ordersCategory, ordersMetadata, thumbnailOf, withBehaviors } from './ordersParts.js';
5
+ export { ordersScreenDefinitions } from './ordersScreenSet.js';
6
+ export { ordersScreenTemplates } from './templates/index.js';
7
+ export { ordersScreens } from './screens/index.js';
8
+ export { ordersModule, ordersNavigation, ordersStructure } from './navigation.js';
9
+ export { ordersBlueprintManifest } from './manifest.js';
10
+ export { ordersBlueprint } from './blueprint.js';
11
+ export { ordersApplication, ordersComposition, ordersDefaultSampleDataId, ordersNavigationModel } from './ordersApplication.js';
12
+ export { component, panel } from '@cratis/scene.blueprint.default';
13
+ export { deliveryCalendarTemplate } from './templates/deliveryTemplate.js';
14
+ export { fulfilmentBoardTemplate } from './templates/boardTemplate.js';
15
+ export { orderPageTemplate } from './templates/recordTemplates.js';
16
+ export { ordersDialogs as ordersDialogTemplates, ordersDialogs } from './templates/formTemplates.js';
17
+ export { ordersListTemplate } from './templates/listTemplates.js';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ import { ScenePackage } from '@cratis/scene.model';
2
+ export declare const ordersBlueprintManifest: ScenePackage;
3
+ //# sourceMappingURL=manifest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../manifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYhE,eAAO,MAAM,uBAAuB,EAAE,YAyBrC,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { PackageKind } from '@cratis/scene.model';
2
+ import { ordersBlueprintName } from './packageName.js';
3
+ import { ordersScreenDefinitions } from './ordersScreenSet.js';
4
+ import { ordersScreenTemplates } from './templates/index.js';
5
+ import { ordersDialogs } from './templates/formTemplates.js';
6
+
7
+ // Copyright (c) Cratis. All rights reserved.
8
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
9
+ 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.';
10
+ /**
11
+ * This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,
12
+ * 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
13
+ * and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what "update available" compares.
14
+ */ const ordersBlueprintManifest = {
15
+ name: ordersBlueprintName,
16
+ version: '1.0.0',
17
+ kind: PackageKind.Blueprint,
18
+ dependencies: [
19
+ {
20
+ name: 'Cratis.Blueprint.Default',
21
+ versionRange: '^1.0.0'
22
+ }
23
+ ],
24
+ components: [],
25
+ layouts: [],
26
+ screenTemplates: ordersScreenTemplates.map((template)=>template.name),
27
+ dialogTemplates: ordersDialogs.map((template)=>template.name),
28
+ themes: [],
29
+ displayName: 'Orders',
30
+ description,
31
+ module: '@cratis/scene.blueprint.orders',
32
+ license: 'MIT',
33
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
34
+ sampleData: [
35
+ {
36
+ id: 'orders-en',
37
+ title: 'Orders · English',
38
+ locale: 'en-GB',
39
+ path: 'sampleData/orders-en.json'
40
+ }
41
+ ],
42
+ blueprint: {
43
+ domain: 'orders',
44
+ description,
45
+ thumbnail: 'thumbnails/orders.svg',
46
+ screenSet: ordersScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
47
+ name,
48
+ title,
49
+ description: screenDescription,
50
+ template,
51
+ ...parent === undefined ? {} : {
52
+ parent
53
+ },
54
+ ...order === undefined ? {} : {
55
+ order
56
+ }
57
+ })),
58
+ defaultSampleData: 'orders-en'
59
+ }
60
+ };
61
+
62
+ export { ordersBlueprintManifest };
63
+ //# 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,mBAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,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,sBAAsBC,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACpEc,IAAAA,eAAAA,EAAiBC,cAAsBH,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,wBAAwBlB,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,5 @@
1
+ import { ApplicationStructure, NavigationModel } from '@cratis/scene.model';
2
+ export declare const ordersModule = "orders";
3
+ export declare const ordersStructure: ApplicationStructure;
4
+ export declare const ordersNavigation: NavigationModel;
5
+ //# sourceMappingURL=navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../navigation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAA8C,MAAM,qBAAqB,CAAC;AAIxH,eAAO,MAAM,YAAY,WAAW,CAAC;AAMrC,eAAO,MAAM,eAAe,EAAE,oBAgB1B,CAAC;AAML,eAAO,MAAM,gBAAgB,EAAE,eAiB9B,CAAC"}
@@ -0,0 +1,105 @@
1
+ import { NavigationRegionMode, NavigationRegionKind } from '@cratis/scene.model';
2
+ import { ordersScreenDefinitions } from './ordersScreenSet.js';
3
+
4
+ // Copyright (c) Cratis. All rights reserved.
5
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
6
+ /** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */ const ordersModule = 'orders';
7
+ /**
8
+ * 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
9
+ * `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.
10
+ */ const ordersStructure = (()=>{
11
+ const root = {
12
+ id: ordersModule,
13
+ name: 'Orders',
14
+ features: []};
15
+ for (const screen of ordersScreenDefinitions){
16
+ let parent = root;
17
+ for (const id of screen.name.split('.').slice(1)){
18
+ let node = parent.features.find((candidate)=>candidate.id === id);
19
+ if (!node) {
20
+ node = {
21
+ id,
22
+ name: screen.title,
23
+ features: [],
24
+ slices: []
25
+ };
26
+ parent.features.push(node);
27
+ }
28
+ parent = node;
29
+ }
30
+ }
31
+ return {
32
+ modules: [
33
+ {
34
+ id: root.id,
35
+ name: root.name,
36
+ features: root.features
37
+ }
38
+ ]
39
+ };
40
+ })();
41
+ /**
42
+ * The navigation of the application the blueprint is: the topbar names the module, and the module's sidebar - which overrides the application's - lists
43
+ * the places a team goes: Orders, Fulfilment and Deliveries.
44
+ */ const ordersNavigation = {
45
+ application: {
46
+ logo: {
47
+ image: '',
48
+ title: 'Orders'
49
+ },
50
+ regions: [
51
+ {
52
+ region: NavigationRegionKind.Topbar,
53
+ items: [
54
+ {
55
+ id: 'orders',
56
+ title: 'Orders',
57
+ target: {
58
+ module: ordersModule
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ },
65
+ modules: [
66
+ {
67
+ module: ordersModule,
68
+ regions: [
69
+ {
70
+ region: NavigationRegionKind.Sidebar,
71
+ mode: NavigationRegionMode.Override,
72
+ items: [
73
+ {
74
+ id: 'order-list',
75
+ title: 'Orders',
76
+ target: {
77
+ module: ordersModule,
78
+ feature: 'list'
79
+ }
80
+ },
81
+ {
82
+ id: 'fulfilment',
83
+ title: 'Fulfilment',
84
+ target: {
85
+ module: ordersModule,
86
+ feature: 'fulfilment'
87
+ }
88
+ },
89
+ {
90
+ id: 'deliveries',
91
+ title: 'Deliveries',
92
+ target: {
93
+ module: ordersModule,
94
+ feature: 'deliveries'
95
+ }
96
+ }
97
+ ]
98
+ }
99
+ ]
100
+ }
101
+ ]
102
+ };
103
+
104
+ export { ordersModule, ordersNavigation, ordersStructure };
105
+ //# 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,uBAAAA,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,QAA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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,10 @@
1
+ import { ApplicationStructureIndex } from '@cratis/scene.engine';
2
+ import { ApplicationDocument, CompositionOptions } from '@cratis/scene.blueprint.default';
3
+ export declare const ordersDefaultSampleDataId = "orders-en";
4
+ export declare function ordersApplication(sampleData?: string): ApplicationDocument;
5
+ export declare const ordersComposition: CompositionOptions;
6
+ export declare const ordersNavigationModel: () => {
7
+ structure: ApplicationStructureIndex;
8
+ navigation: import("@cratis/scene.model").NavigationModel;
9
+ };
10
+ //# sourceMappingURL=ordersApplication.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ordersApplication.d.ts","sourceRoot":"","sources":["../../ordersApplication.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAkC,MAAM,iCAAiC,CAAC;AAM1H,eAAO,MAAM,yBAAyB,cAAc,CAAC;AAOrD,wBAAgB,iBAAiB,CAAC,UAAU,GAAE,MAAkC,GAAG,mBAAmB,CAGrG;AAGD,eAAO,MAAM,iBAAiB,EAAE,kBAAgE,CAAC;AAGjG,eAAO,MAAM,qBAAqB;IAAY,SAAS;IAAkD,UAAU;CAAqB,CAAC"}