@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,151 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
5
+ var templateProvenance = require('./templateProvenance.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
+ /** The category of every template of this blueprint (spec Part B 1.2: `Business / <domain>`). */ const ordersCategory = 'Business / Orders';
10
+ /** The package-relative thumbnail of a template. */ const thumbnailOf = (templateName)=>`thumbnails/${templateName}.svg`;
11
+ /** The metadata of a screen template of this blueprint: provenance, a type from the vocabulary, the category, a thumbnail and the levels it applies at. */ const ordersMetadata = (name, type, scopes)=>({
12
+ ...templateProvenance.ordersTemplateProvenance,
13
+ type,
14
+ category: ordersCategory,
15
+ thumbnail: thumbnailOf(name),
16
+ scopes
17
+ });
18
+ /** A button of the foundation: a verb, its emphasis, and the permission rule every action declares (spec Part B 1.5). */ const actionButton = (id, label, emphasis, extra = {}, behaviors)=>({
19
+ ...scene_blueprint_default.component(id, 'actionButton', {
20
+ label,
21
+ emphasis,
22
+ permission: 'enabled',
23
+ ...extra
24
+ }),
25
+ ...behaviors ? {
26
+ behaviors
27
+ } : {}
28
+ });
29
+ /** What pressing an element does: open the named dialog template over the page. */ const opensDialog = (dialogTemplate)=>[
30
+ {
31
+ bindings: [
32
+ {
33
+ trigger: {
34
+ kind: scene_model.InteractionTriggerKind.Click
35
+ },
36
+ actions: [
37
+ {
38
+ kind: scene_model.InteractionActionKind.OpenDialog,
39
+ dialogTemplate
40
+ }
41
+ ]
42
+ }
43
+ ]
44
+ }
45
+ ];
46
+ /** What pressing an element does: go to the named screen. */ const goesTo = (screen)=>[
47
+ {
48
+ bindings: [
49
+ {
50
+ trigger: {
51
+ kind: scene_model.InteractionTriggerKind.Click
52
+ },
53
+ actions: [
54
+ {
55
+ kind: scene_model.InteractionActionKind.Navigate,
56
+ screen
57
+ }
58
+ ]
59
+ }
60
+ ]
61
+ }
62
+ ];
63
+ /**
64
+ * What choosing a row of a list does: open the record page, handing it the chosen row's id. The list is single-selection, so choosing a row is
65
+ * opening it - the way a table of records works everywhere.
66
+ */ const opensRecordOnSelect = (listId, screen)=>[
67
+ {
68
+ bindings: [
69
+ {
70
+ trigger: {
71
+ kind: scene_model.InteractionTriggerKind.Select
72
+ },
73
+ actions: [
74
+ {
75
+ kind: scene_model.InteractionActionKind.Navigate,
76
+ screen,
77
+ arguments: [
78
+ {
79
+ name: 'id',
80
+ value: {
81
+ kind: scene_model.BindingSourceKind.ComponentProperty,
82
+ componentId: listId,
83
+ path: 'value'
84
+ }
85
+ }
86
+ ]
87
+ }
88
+ ]
89
+ }
90
+ ]
91
+ }
92
+ ];
93
+ /**
94
+ * What choosing a row of a list does: open the named dialog over the page - a side sheet with the row's detail, so the list stays where it was.
95
+ */ const opensDialogOnSelect = (dialogTemplate)=>[
96
+ {
97
+ bindings: [
98
+ {
99
+ trigger: {
100
+ kind: scene_model.InteractionTriggerKind.Select
101
+ },
102
+ actions: [
103
+ {
104
+ kind: scene_model.InteractionActionKind.OpenDialog,
105
+ dialogTemplate
106
+ }
107
+ ]
108
+ }
109
+ ]
110
+ }
111
+ ];
112
+ /** What a Cancel or Close control does: close the dialog it was opened from. */ const closesDialog = ()=>[
113
+ {
114
+ bindings: [
115
+ {
116
+ trigger: {
117
+ kind: scene_model.InteractionTriggerKind.Click
118
+ },
119
+ actions: [
120
+ {
121
+ kind: scene_model.InteractionActionKind.CloseDialog
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ }
127
+ ];
128
+ /** An element with the given behaviors attached. */ const withBehaviors = (element, behaviors)=>({
129
+ ...element,
130
+ behaviors
131
+ });
132
+
133
+ Object.defineProperty(exports, "component", {
134
+ enumerable: true,
135
+ get: function () { return scene_blueprint_default.component; }
136
+ });
137
+ Object.defineProperty(exports, "panel", {
138
+ enumerable: true,
139
+ get: function () { return scene_blueprint_default.panel; }
140
+ });
141
+ exports.actionButton = actionButton;
142
+ exports.closesDialog = closesDialog;
143
+ exports.goesTo = goesTo;
144
+ exports.opensDialog = opensDialog;
145
+ exports.opensDialogOnSelect = opensDialogOnSelect;
146
+ exports.opensRecordOnSelect = opensRecordOnSelect;
147
+ exports.ordersCategory = ordersCategory;
148
+ exports.ordersMetadata = ordersMetadata;
149
+ exports.thumbnailOf = thumbnailOf;
150
+ exports.withBehaviors = withBehaviors;
151
+ //# sourceMappingURL=ordersParts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ordersParts.js","sources":["../../ordersParts.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 {\n Behavior, BindingSourceKind, DialogTemplate, ExternalComponent, InteractionActionKind, InteractionTriggerKind, NavigateAction, OpenDialogAction, SceneElement, ScreenTemplate, TemplateMetadata, TemplateScope,\n} from '@cratis/scene.model';\nimport { component, panel } from '@cratis/scene.blueprint.default';\nimport { ordersTemplateProvenance } from './templateProvenance';\n\nexport { component, panel };\n\n/** The category of every template of this blueprint (spec Part B 1.2: `Business / <domain>`). */\nexport const ordersCategory = 'Business / Orders';\n\n/** The package-relative thumbnail of a template. */\nexport const thumbnailOf = (templateName: string): string => `thumbnails/${templateName}.svg`;\n\n/** The metadata of a screen template of this blueprint: provenance, a type from the vocabulary, the category, a thumbnail and the levels it applies at. */\nexport const ordersMetadata = (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace' | 'Calendar', scopes: TemplateScope[]): TemplateMetadata =>\n ({ ...ordersTemplateProvenance, type, category: ordersCategory, thumbnail: thumbnailOf(name), scopes });\n\n/** A button of the foundation: a verb, its emphasis, and the permission rule every action declares (spec Part B 1.5). */\nexport const actionButton = (id: string, label: string, emphasis: 'primary' | 'secondary' | 'quiet' | 'danger', extra: Record<string, unknown> = {}, behaviors?: Behavior[]): ExternalComponent =>\n ({ ...component(id, 'actionButton', { label, emphasis, permission: 'enabled', ...extra }), ...(behaviors ? { behaviors } : {}) });\n\n/** What pressing an element does: open the named dialog template over the page. */\nexport const opensDialog = (dialogTemplate: string): Behavior[] =>\n [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Click }, actions: [{ kind: InteractionActionKind.OpenDialog, dialogTemplate } as OpenDialogAction] }] }];\n\n/** What pressing an element does: go to the named screen. */\nexport const goesTo = (screen: string): Behavior[] =>\n [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Click }, actions: [{ kind: InteractionActionKind.Navigate, screen } as NavigateAction] }] }];\n\n/**\n * What choosing a row of a list does: open the record page, handing it the chosen row's id. The list is single-selection, so choosing a row is\n * opening it - the way a table of records works everywhere.\n */\nexport const opensRecordOnSelect = (listId: string, screen: string): Behavior[] => [{\n bindings: [{\n trigger: { kind: InteractionTriggerKind.Select },\n actions: [{ kind: InteractionActionKind.Navigate, screen, arguments: [{ name: 'id', value: { kind: BindingSourceKind.ComponentProperty, componentId: listId, path: 'value' } }] } as NavigateAction],\n }],\n}];\n\n/**\n * What choosing a row of a list does: open the named dialog over the page - a side sheet with the row's detail, so the list stays where it was.\n */\nexport const opensDialogOnSelect = (dialogTemplate: string): Behavior[] =>\n [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Select }, actions: [{ kind: InteractionActionKind.OpenDialog, dialogTemplate } as OpenDialogAction] }] }];\n\n/** What a Cancel or Close control does: close the dialog it was opened from. */\nexport const closesDialog = (): Behavior[] => [{ bindings: [{ trigger: { kind: InteractionTriggerKind.Click }, actions: [{ kind: InteractionActionKind.CloseDialog }] }] }];\n\n/** An element with the given behaviors attached. */\nexport const withBehaviors = <T extends SceneElement>(element: T, behaviors: Behavior[]): T => ({ ...element, behaviors });\n\nexport type OrdersScreenTemplate = ScreenTemplate;\nexport type OrdersDialogTemplate = DialogTemplate;\n"],"names":["ordersCategory","thumbnailOf","templateName","ordersMetadata","name","type","scopes","ordersTemplateProvenance","category","thumbnail","actionButton","id","label","emphasis","extra","behaviors","component","permission","opensDialog","dialogTemplate","bindings","trigger","kind","InteractionTriggerKind","Click","actions","InteractionActionKind","OpenDialog","goesTo","screen","Navigate","opensRecordOnSelect","listId","Select","arguments","value","BindingSourceKind","ComponentProperty","componentId","path","opensDialogOnSelect","closesDialog","CloseDialog","withBehaviors","element"],"mappings":";;;;;;AAAA;AACA;AAUA,kGACO,MAAMA,cAAAA,GAAiB;AAE9B,qDACO,MAAMC,WAAAA,GAAc,CAACC,YAAAA,GAAiC,CAAC,WAAW,EAAEA,YAAAA,CAAa,IAAI;AAE5F,4JACO,MAAMC,cAAAA,GAAiB,CAACC,IAAAA,EAAcC,IAAAA,EAAgGC,UACxI;AAAE,QAAA,GAAGC,2CAAwB;AAAEF,QAAAA,IAAAA;QAAMG,QAAAA,EAAUR,cAAAA;AAAgBS,QAAAA,SAAAA,EAAWR,WAAAA,CAAYG,IAAAA,CAAAA;AAAOE,QAAAA;AAAO,KAAA;AAEzG,0HACO,MAAMI,YAAAA,GAAe,CAACC,EAAAA,EAAYC,KAAAA,EAAeC,QAAAA,EAAwDC,KAAAA,GAAiC,EAAE,EAAEC,aAChJ;QAAE,GAAGC,iCAAAA,CAAUL,IAAI,cAAA,EAAgB;AAAEC,YAAAA,KAAAA;AAAOC,YAAAA,QAAAA;YAAUI,UAAAA,EAAY,SAAA;AAAW,YAAA,GAAGH;SAAM,CAAE;AAAE,QAAA,GAAIC,SAAAA,GAAY;AAAEA,YAAAA;AAAU,SAAA,GAAI;AAAI,KAAA;AAEnI,oFACO,MAAMG,WAAAA,GAAc,CAACC,cAAAA,GACxB;AAAC,QAAA;YAAEC,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,mCAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,kCAAsBC,UAAU;AAAER,4BAAAA;AAAe;AAAsB;AAAC;AAAE;AAAC;;AAElK,8DACO,MAAMS,MAAAA,GAAS,CAACC,MAAAA,GACnB;AAAC,QAAA;YAAET,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,mCAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,kCAAsBI,QAAQ;AAAED,4BAAAA;AAAO;AAAoB;AAAC;AAAE;AAAC;;AAEtJ;;;AAGC,IACM,MAAME,mBAAAA,GAAsB,CAACC,QAAgBH,MAAAA,GAA+B;AAAC,QAAA;YAChFT,QAAAA,EAAU;AAAC,gBAAA;oBACPC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,mCAAuBU;AAAO,qBAAA;oBAC/CR,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,kCAAsBI,QAAQ;AAAED,4BAAAA,MAAAA;4BAAQK,SAAAA,EAAW;AAAC,gCAAA;oCAAE9B,IAAAA,EAAM,IAAA;oCAAM+B,KAAAA,EAAO;AAAEb,wCAAAA,IAAAA,EAAMc,8BAAkBC,iBAAiB;wCAAEC,WAAAA,EAAaN,MAAAA;wCAAQO,IAAAA,EAAM;AAAQ;AAAE;AAAE;AAAC;AAAoB;AACxM;AAAE;AACN;;AAEA;;AAEC,IACM,MAAMC,mBAAAA,GAAsB,CAACrB,cAAAA,GAChC;AAAC,QAAA;YAAEC,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,mCAAuBU;AAAO,qBAAA;oBAAGR,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,kCAAsBC,UAAU;AAAER,4BAAAA;AAAe;AAAsB;AAAC;AAAE;AAAC;;AAEnK,iFACO,MAAMsB,YAAAA,GAAe,IAAkB;AAAC,QAAA;YAAErB,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,mCAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,kCAAsBgB;AAAY;AAAE;AAAC;AAAE;AAAC;;AAEzK,qDACO,MAAMC,gBAAgB,CAAyBC,OAAAA,EAAY7B,aAA8B;AAAE,QAAA,GAAG6B,OAAO;AAAE7B,QAAAA;AAAU,KAAA;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+
3
+ var scene_model = require('@cratis/scene.model');
4
+
5
+ // Copyright (c) Cratis. All rights reserved.
6
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
7
+ /**
8
+ * A property taken from a query result - never a value. An orders template declares *where* its data comes from and the sample-data pack, or the real
9
+ * query, supplies the rows (spec SD1); `path` reaches into the result (`0.value` is the first row's `value`, an empty path is the whole result).
10
+ */ const fromQuery = (query, path = '')=>({
11
+ kind: scene_model.BindingSourceKind.QueryResult,
12
+ query,
13
+ path
14
+ });
15
+ /** The queries of the screens that are not a plain list. Each is a shape the sample-data pack supplies rows for. */ const OrdersQuery = {
16
+ /** One row: the `locale` and `currency` the figures and dates are formatted in. */ Settings: 'OrdersSettings',
17
+ RecordTabs: 'OrderRecordTabs',
18
+ Lines: 'OrderLines',
19
+ LineColumns: 'OrderLineColumns',
20
+ Shipments: 'OrderShipments',
21
+ ShipmentColumns: 'OrderShipmentColumns',
22
+ FulfilmentColumns: 'FulfilmentColumns',
23
+ FulfilmentCards: 'FulfilmentCards',
24
+ DeliveryEvents: 'DeliveryEvents',
25
+ DeliveryColumns: 'DeliveryColumns',
26
+ FormErrors: 'OrdersFormErrors'
27
+ };
28
+ /** The entities a template is made for. */ var OrdersEntityKind = /*#__PURE__*/ function(OrdersEntityKind) {
29
+ OrdersEntityKind["Order"] = "Order";
30
+ return OrdersEntityKind;
31
+ }({});
32
+ /** The read model (and so the shape) the records of each entity are queried from. */ const ordersEntityPlural = {
33
+ ["Order"]: 'Orders'
34
+ };
35
+ /**
36
+ * The queries one entity's templates bind to, named from the entity so a template never spells one out: the records, the columns and filter fields of the
37
+ * list, its saved views and column choices, the selection, the sections of the quick form, and what the record page shows.
38
+ */ const ordersQueriesOf = (entity)=>({
39
+ rows: ordersEntityPlural[entity],
40
+ columns: `${entity}Columns`,
41
+ filterFields: `${entity}FilterFields`,
42
+ views: `${entity}Views`,
43
+ columnChoices: `${entity}ColumnChoices`,
44
+ selection: `${entity}Selection`,
45
+ quickSections: `${entity}QuickSections`,
46
+ record: `${entity}Record`,
47
+ sections: `${entity}Sections`,
48
+ summary: `${entity}Summary`,
49
+ activity: `${entity}Activity`
50
+ });
51
+ /** The locale and currency of the data, bound onto every component that formats a figure or a date. */ const localeOfData = {
52
+ locale: fromQuery(OrdersQuery.Settings, '0.locale')
53
+ };
54
+ const currencyOfData = {
55
+ ...localeOfData,
56
+ currency: fromQuery(OrdersQuery.Settings, '0.currency')
57
+ };
58
+
59
+ exports.OrdersEntityKind = OrdersEntityKind;
60
+ exports.OrdersQuery = OrdersQuery;
61
+ exports.currencyOfData = currencyOfData;
62
+ exports.fromQuery = fromQuery;
63
+ exports.localeOfData = localeOfData;
64
+ exports.ordersEntityPlural = ordersEntityPlural;
65
+ exports.ordersQueriesOf = ordersQueriesOf;
66
+ //# sourceMappingURL=ordersQueries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ordersQueries.js","sources":["../../ordersQueries.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 { BindingExpression, BindingSourceKind } from '@cratis/scene.model';\n\n/**\n * A property taken from a query result - never a value. An orders template declares *where* its data comes from and the sample-data pack, or the real\n * query, supplies the rows (spec SD1); `path` reaches into the result (`0.value` is the first row's `value`, an empty path is the whole result).\n */\nexport const fromQuery = (query: string, path = ''): BindingExpression => ({ kind: BindingSourceKind.QueryResult, query, path });\n\n/** The queries of the screens that are not a plain list. Each is a shape the sample-data pack supplies rows for. */\nexport const OrdersQuery = {\n /** One row: the `locale` and `currency` the figures and dates are formatted in. */\n Settings: 'OrdersSettings',\n RecordTabs: 'OrderRecordTabs',\n Lines: 'OrderLines',\n LineColumns: 'OrderLineColumns',\n Shipments: 'OrderShipments',\n ShipmentColumns: 'OrderShipmentColumns',\n FulfilmentColumns: 'FulfilmentColumns',\n FulfilmentCards: 'FulfilmentCards',\n DeliveryEvents: 'DeliveryEvents',\n DeliveryColumns: 'DeliveryColumns',\n FormErrors: 'OrdersFormErrors',\n} as const;\n\n/** The entities a template is made for. */\nexport enum OrdersEntityKind {\n Order = 'Order',\n}\n\n/** The read model (and so the shape) the records of each entity are queried from. */\nexport const ordersEntityPlural: Record<OrdersEntityKind, string> = {\n [OrdersEntityKind.Order]: 'Orders',\n};\n\n/**\n * The queries one entity's templates bind to, named from the entity so a template never spells one out: the records, the columns and filter fields of the\n * list, its saved views and column choices, the selection, the sections of the quick form, and what the record page shows.\n */\nexport const ordersQueriesOf = (entity: OrdersEntityKind) => ({\n rows: ordersEntityPlural[entity],\n columns: `${entity}Columns`,\n filterFields: `${entity}FilterFields`,\n views: `${entity}Views`,\n columnChoices: `${entity}ColumnChoices`,\n selection: `${entity}Selection`,\n quickSections: `${entity}QuickSections`,\n record: `${entity}Record`,\n sections: `${entity}Sections`,\n summary: `${entity}Summary`,\n activity: `${entity}Activity`,\n});\n\n/** The locale and currency of the data, bound onto every component that formats a figure or a date. */\nexport const localeOfData = { locale: fromQuery(OrdersQuery.Settings, '0.locale') };\nexport const currencyOfData = { ...localeOfData, currency: fromQuery(OrdersQuery.Settings, '0.currency') };\n"],"names":["fromQuery","query","path","kind","BindingSourceKind","QueryResult","OrdersQuery","Settings","RecordTabs","Lines","LineColumns","Shipments","ShipmentColumns","FulfilmentColumns","FulfilmentCards","DeliveryEvents","DeliveryColumns","FormErrors","OrdersEntityKind","ordersEntityPlural","ordersQueriesOf","entity","rows","columns","filterFields","views","columnChoices","selection","quickSections","record","sections","summary","activity","localeOfData","locale","currencyOfData","currency"],"mappings":";;;;AAAA;AACA;AAIA;;;UAIaA,SAAAA,GAAY,CAACC,OAAeC,IAAAA,GAAO,EAAE,IAAyB;AAAEC,QAAAA,IAAAA,EAAMC,8BAAkBC,WAAW;AAAEJ,QAAAA,KAAAA;AAAOC,QAAAA;AAAK,KAAA;AAE9H,qHACO,MAAMI,WAAAA,GAAc;AACvB,wFACAC,QAAAA,EAAU,gBAAA;IACVC,UAAAA,EAAY,iBAAA;IACZC,KAAAA,EAAO,YAAA;IACPC,WAAAA,EAAa,kBAAA;IACbC,SAAAA,EAAW,gBAAA;IACXC,eAAAA,EAAiB,sBAAA;IACjBC,iBAAAA,EAAmB,mBAAA;IACnBC,eAAAA,EAAiB,iBAAA;IACjBC,cAAAA,EAAgB,gBAAA;IAChBC,eAAAA,EAAiB,iBAAA;IACjBC,UAAAA,EAAY;AAChB;AAEA,4CACO,IAAKC,gBAAAA,iBAAAA,SAAAA,gBAAAA,EAAAA;;AAAAA,IAAAA,OAAAA,gBAAAA;AAEX,CAAA,CAAA,EAAA;AAED,sFACO,MAAMC,kBAAAA,GAAuD;AAChE,IAAA,CAAA,OAAA,GAA0B;AAC9B;AAEA;;;AAGC,IACM,MAAMC,eAAAA,GAAkB,CAACC,UAA8B;QAC1DC,IAAAA,EAAMH,kBAAkB,CAACE,MAAAA,CAAO;QAChCE,OAAAA,EAAS,CAAA,EAAGF,MAAAA,CAAO,OAAO,CAAC;QAC3BG,YAAAA,EAAc,CAAA,EAAGH,MAAAA,CAAO,YAAY,CAAC;QACrCI,KAAAA,EAAO,CAAA,EAAGJ,MAAAA,CAAO,KAAK,CAAC;QACvBK,aAAAA,EAAe,CAAA,EAAGL,MAAAA,CAAO,aAAa,CAAC;QACvCM,SAAAA,EAAW,CAAA,EAAGN,MAAAA,CAAO,SAAS,CAAC;QAC/BO,aAAAA,EAAe,CAAA,EAAGP,MAAAA,CAAO,aAAa,CAAC;QACvCQ,MAAAA,EAAQ,CAAA,EAAGR,MAAAA,CAAO,MAAM,CAAC;QACzBS,QAAAA,EAAU,CAAA,EAAGT,MAAAA,CAAO,QAAQ,CAAC;QAC7BU,OAAAA,EAAS,CAAA,EAAGV,MAAAA,CAAO,OAAO,CAAC;QAC3BW,QAAAA,EAAU,CAAA,EAAGX,MAAAA,CAAO,QAAQ;AAChC,KAAA;AAEA,wGACO,MAAMY,YAAAA,GAAe;IAAEC,MAAAA,EAAQlC,SAAAA,CAAUM,WAAAA,CAAYC,QAAQ,EAAE,UAAA;AAAY;MACrE4B,cAAAA,GAAiB;AAAE,IAAA,GAAGF,YAAY;IAAEG,QAAAA,EAAUpC,SAAAA,CAAUM,WAAAA,CAAYC,QAAQ,EAAE,YAAA;AAAc;;;;;;;;"}
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /**
6
+ * The screens the blueprint brings, in navigation order. This one list is what the manifest's screen set, the `Screen` instances, the application structure
7
+ * and the navigation are all derived from, so they cannot disagree about which screens exist or where they sit.
8
+ */ const ordersScreenDefinitions = [
9
+ {
10
+ name: 'orders.list',
11
+ title: 'Orders',
12
+ template: 'OrdersList',
13
+ order: 0,
14
+ description: 'Every order with its customer, dates, total and status.'
15
+ },
16
+ {
17
+ name: 'orders.record',
18
+ title: 'Order',
19
+ template: 'OrderPage',
20
+ parent: 'orders.list',
21
+ description: 'One order: key facts, its lines, its shipments and its activity.'
22
+ },
23
+ {
24
+ name: 'orders.fulfilment',
25
+ title: 'Fulfilment',
26
+ template: 'OrdersFulfilmentBoard',
27
+ order: 1,
28
+ description: 'Orders in a column for each fulfilment step.'
29
+ },
30
+ {
31
+ name: 'orders.deliveries',
32
+ title: 'Deliveries',
33
+ template: 'OrdersDeliveryCalendar',
34
+ order: 2,
35
+ description: 'The day each open order is due to arrive, on a calendar.'
36
+ }
37
+ ];
38
+
39
+ exports.ordersScreenDefinitions = ordersScreenDefinitions;
40
+ //# sourceMappingURL=ordersScreenSet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ordersScreenSet.js","sources":["../../ordersScreenSet.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 { BlueprintScreen } from '@cratis/scene.model';\n\n/** One ready-to-use screen: the qualified name that is also its place in the application (`projects.list.record` would be the `record` feature of `list`). */\nexport interface OrdersScreenDefinition extends BlueprintScreen {\n template: string;\n description: string;\n}\n\n/**\n * The screens the blueprint brings, in navigation order. This one list is what the manifest's screen set, the `Screen` instances, the application structure\n * and the navigation are all derived from, so they cannot disagree about which screens exist or where they sit.\n */\nexport const ordersScreenDefinitions: OrdersScreenDefinition[] = [\n { name: 'orders.list', title: 'Orders', template: 'OrdersList', order: 0, description: 'Every order with its customer, dates, total and status.' },\n { name: 'orders.record', title: 'Order', template: 'OrderPage', parent: 'orders.list', description: 'One order: key facts, its lines, its shipments and its activity.' },\n { name: 'orders.fulfilment', title: 'Fulfilment', template: 'OrdersFulfilmentBoard', order: 1, description: 'Orders in a column for each fulfilment step.' },\n { name: 'orders.deliveries', title: 'Deliveries', template: 'OrdersDeliveryCalendar', order: 2, description: 'The day each open order is due to arrive, on a calendar.' },\n];\n"],"names":["ordersScreenDefinitions","name","title","template","order","description","parent"],"mappings":";;AAAA;AACA;AAUA;;;UAIaA,uBAAAA,GAAoD;AAC7D,IAAA;QAAEC,IAAAA,EAAM,aAAA;QAAeC,KAAAA,EAAO,QAAA;QAAUC,QAAAA,EAAU,YAAA;QAAcC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA0D,KAAA;AACjJ,IAAA;QAAEJ,IAAAA,EAAM,eAAA;QAAiBC,KAAAA,EAAO,OAAA;QAASC,QAAAA,EAAU,WAAA;QAAaG,MAAAA,EAAQ,aAAA;QAAeD,WAAAA,EAAa;AAAmE,KAAA;AACvK,IAAA;QAAEJ,IAAAA,EAAM,mBAAA;QAAqBC,KAAAA,EAAO,YAAA;QAAcC,QAAAA,EAAU,uBAAA;QAAyBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA+C,KAAA;AAC3J,IAAA;QAAEJ,IAAAA,EAAM,mBAAA;QAAqBC,KAAAA,EAAO,YAAA;QAAcC,QAAAA,EAAU,wBAAA;QAA0BC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA2D;;;"}
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /** The name this blueprint is known by inside a `ui profile`; every component registry key is built from it. */ const ordersBlueprintName = 'Cratis.Blueprint.Orders';
6
+
7
+ exports.ordersBlueprintName = ordersBlueprintName;
8
+ //# sourceMappingURL=packageName.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packageName.js","sources":["../../packageName.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/** The name this blueprint is known by inside a `ui profile`; every component registry key is built from it. */\nexport const ordersBlueprintName = 'Cratis.Blueprint.Orders';\n"],"names":["ordersBlueprintName"],"mappings":";;AAAA;AACA;AAEA,iHACO,MAAMA,mBAAAA,GAAsB;;"}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var scene_blueprint_default = require('@cratis/scene.blueprint.default');
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
+ /**
9
+ * The ready-to-use screens: real `Screen` instances, one for each entry of the manifest's `blueprint.screenSet`, each filling the screen template it names in
10
+ * the foundation's application shell. A new application that adopts the blueprint gets these, wired into its navigation (`ordersNavigation`).
11
+ */ const ordersScreens = ordersScreenSet.ordersScreenDefinitions.map((definition)=>({
12
+ name: definition.name,
13
+ layout: scene_blueprint_default.LayoutName.AppShell,
14
+ screenTemplate: definition.template,
15
+ slotContent: {},
16
+ forms: [],
17
+ contributions: [],
18
+ path: definition.name.split('.')
19
+ }));
20
+
21
+ exports.ordersScreens = ordersScreens;
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../screens/index.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { Screen } from '@cratis/scene.model';\nimport { LayoutName } from '@cratis/scene.blueprint.default';\nimport { ordersScreenDefinitions } from '../ordersScreenSet';\n\n/**\n * The ready-to-use screens: real `Screen` instances, one for each entry of the manifest's `blueprint.screenSet`, each filling the screen template it names in\n * the foundation's application shell. A new application that adopts the blueprint gets these, wired into its navigation (`ordersNavigation`).\n */\nexport const ordersScreens: Screen[] = ordersScreenDefinitions.map(definition => ({\n name: definition.name,\n layout: LayoutName.AppShell,\n screenTemplate: definition.template,\n slotContent: {},\n forms: [],\n contributions: [],\n path: definition.name.split('.'),\n}));\n"],"names":["ordersScreens","ordersScreenDefinitions","map","definition","name","layout","LayoutName","AppShell","screenTemplate","template","slotContent","forms","contributions","path","split"],"mappings":";;;;;AAAA;AACA;AAMA;;;UAIaA,aAAAA,GAA0BC,uCAAAA,CAAwBC,GAAG,CAACC,CAAAA,cAAe;AAC9EC,QAAAA,IAAAA,EAAMD,WAAWC,IAAI;AACrBC,QAAAA,MAAAA,EAAQC,mCAAWC,QAAQ;AAC3BC,QAAAA,cAAAA,EAAgBL,WAAWM,QAAQ;AACnCC,QAAAA,WAAAA,EAAa,EAAC;AACdC,QAAAA,KAAAA,EAAO,EAAE;AACTC,QAAAA,aAAAA,EAAe,EAAE;AACjBC,QAAAA,IAAAA,EAAMV,UAAAA,CAAWC,IAAI,CAACU,KAAK,CAAC,GAAA;AAChC,KAAA,CAAA;;"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ // Copyright (c) Cratis. All rights reserved.
4
+ // Licensed under the MIT license. See LICENSE file in the project root for full license information.
5
+ /** The compatibility, attribution and license metadata every template this blueprint ships carries. */ const ordersTemplateProvenance = {
6
+ compatibility: {
7
+ scene: '^4.13.0',
8
+ packages: [
9
+ {
10
+ name: 'Cratis.Blueprint.Default',
11
+ versionRange: '^1.0.0'
12
+ }
13
+ ]
14
+ },
15
+ attribution: {
16
+ author: 'Cratis',
17
+ url: 'https://github.com/Cratis/Scene/tree/main/Source/JavaScript/blueprint.orders'
18
+ },
19
+ license: 'MIT',
20
+ licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE'
21
+ };
22
+
23
+ exports.ordersTemplateProvenance = ordersTemplateProvenance;
24
+ //# sourceMappingURL=templateProvenance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templateProvenance.js","sources":["../../templateProvenance.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { TemplateMetadata } from '@cratis/scene.model';\n\n/** The compatibility, attribution and license metadata every template this blueprint ships carries. */\nexport const ordersTemplateProvenance: Pick<TemplateMetadata, 'compatibility' | 'attribution' | 'license' | 'licenseUrl'> = {\n compatibility: {\n scene: '^4.13.0',\n packages: [{ name: 'Cratis.Blueprint.Default', versionRange: '^1.0.0' }],\n },\n attribution: { author: 'Cratis', url: 'https://github.com/Cratis/Scene/tree/main/Source/JavaScript/blueprint.orders' },\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n};\n"],"names":["ordersTemplateProvenance","compatibility","scene","packages","name","versionRange","attribution","author","url","license","licenseUrl"],"mappings":";;AAAA;AACA;AAIA,wGACO,MAAMA,wBAAAA,GAA+G;IACxHC,aAAAA,EAAe;QACXC,KAAAA,EAAO,SAAA;QACPC,QAAAA,EAAU;AAAC,YAAA;gBAAEC,IAAAA,EAAM,0BAAA;gBAA4BC,YAAAA,EAAc;AAAS;AAAE;AAC5E,KAAA;IACAC,WAAAA,EAAa;QAAEC,MAAAA,EAAQ,QAAA;QAAUC,GAAAA,EAAK;AAA+E,KAAA;IACrHC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY;AAChB;;"}
@@ -0,0 +1,60 @@
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
+ /**
11
+ * The fulfilment board: the foundation `BoardScreen` with a column for each step an order goes through - new, picking, shipped, delivered - and a card for each
12
+ * order with its customer, delivery date and channel. An order moves to the next step by dragging or by its own Move-to menu, and the columns say in words when
13
+ * a limit is exceeded.
14
+ */ const fulfilmentBoardTemplate = {
15
+ name: 'OrdersFulfilmentBoard',
16
+ fitsSlot: 'content',
17
+ slots: scene_blueprint_default.boardScreenTemplate.slots,
18
+ arrangement: scene_blueprint_default.boardScreenTemplate.arrangement,
19
+ content: {
20
+ header: [
21
+ scene_blueprint_default.component('OrdersFulfilmentBoard-header', 'pageHeader', {
22
+ title: 'Fulfilment',
23
+ subtitle: 'Drag an order to its next step'
24
+ }, {
25
+ actions: [
26
+ ordersParts.withBehaviors(ordersParts.actionButton('OrdersFulfilmentBoard-new', 'New order', 'primary'), ordersParts.opensDialog('OrdersQuickCreateOrder'))
27
+ ]
28
+ })
29
+ ],
30
+ toolbar: [
31
+ scene_blueprint_default.component('OrdersFulfilmentBoard-search', 'globalSearch', {
32
+ placeholder: 'Search the board',
33
+ label: 'Search the board'
34
+ }),
35
+ scene_blueprint_default.component('OrdersFulfilmentBoard-views', 'savedViewsMenu', {
36
+ views: ordersQueries.fromQuery(ordersQueries.ordersQueriesOf(ordersQueries.OrdersEntityKind.Order).views),
37
+ savePermission: 'enabled',
38
+ managePermission: 'enabled'
39
+ })
40
+ ],
41
+ board: [
42
+ scene_blueprint_default.component('OrdersFulfilmentBoard-columns', 'kanbanBoard', {
43
+ columns: ordersQueries.fromQuery(ordersQueries.OrdersQuery.FulfilmentColumns),
44
+ cards: ordersQueries.fromQuery(ordersQueries.OrdersQuery.FulfilmentCards),
45
+ editPermission: 'enabled',
46
+ label: 'Orders by fulfilment step',
47
+ ...ordersQueries.localeOfData
48
+ })
49
+ ]
50
+ },
51
+ displayName: 'Orders fulfilment board',
52
+ description: 'Orders as cards in a column for each fulfilment step, moved by dragging or by menu.',
53
+ metadata: ordersParts.ordersMetadata('OrdersFulfilmentBoard', 'Board', [
54
+ scene_model.TemplateScope.Module,
55
+ scene_model.TemplateScope.Feature
56
+ ])
57
+ };
58
+
59
+ exports.fulfilmentBoardTemplate = fulfilmentBoardTemplate;
60
+ //# sourceMappingURL=boardTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boardTemplate.js","sources":["../../../templates/boardTemplate.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 { boardScreenTemplate } from '@cratis/scene.blueprint.default';\nimport { OrdersEntityKind, OrdersQuery, fromQuery, localeOfData, ordersQueriesOf } from '../ordersQueries';\nimport { actionButton, component, opensDialog, ordersMetadata, withBehaviors } from '../ordersParts';\n\n/**\n * The fulfilment board: the foundation `BoardScreen` with a column for each step an order goes through - new, picking, shipped, delivered - and a card for each\n * order with its customer, delivery date and channel. An order moves to the next step by dragging or by its own Move-to menu, and the columns say in words when\n * a limit is exceeded.\n */\nexport const fulfilmentBoardTemplate: ScreenTemplate = {\n name: 'OrdersFulfilmentBoard',\n fitsSlot: 'content',\n slots: boardScreenTemplate.slots,\n arrangement: boardScreenTemplate.arrangement,\n content: {\n header: [component('OrdersFulfilmentBoard-header', 'pageHeader', { title: 'Fulfilment', subtitle: 'Drag an order to its next step' }, {\n actions: [withBehaviors(actionButton('OrdersFulfilmentBoard-new', 'New order', 'primary'), opensDialog('OrdersQuickCreateOrder'))],\n })],\n toolbar: [\n component('OrdersFulfilmentBoard-search', 'globalSearch', { placeholder: 'Search the board', label: 'Search the board' }),\n component('OrdersFulfilmentBoard-views', 'savedViewsMenu', { views: fromQuery(ordersQueriesOf(OrdersEntityKind.Order).views), savePermission: 'enabled', managePermission: 'enabled' }),\n ],\n board: [component('OrdersFulfilmentBoard-columns', 'kanbanBoard', {\n columns: fromQuery(OrdersQuery.FulfilmentColumns), cards: fromQuery(OrdersQuery.FulfilmentCards), editPermission: 'enabled', label: 'Orders by fulfilment step', ...localeOfData,\n })],\n },\n displayName: 'Orders fulfilment board',\n description: 'Orders as cards in a column for each fulfilment step, moved by dragging or by menu.',\n metadata: ordersMetadata('OrdersFulfilmentBoard', 'Board', [TemplateScope.Module, TemplateScope.Feature]),\n};\n"],"names":["fulfilmentBoardTemplate","name","fitsSlot","slots","boardScreenTemplate","arrangement","content","header","component","title","subtitle","actions","withBehaviors","actionButton","opensDialog","toolbar","placeholder","label","views","fromQuery","ordersQueriesOf","OrdersEntityKind","Order","savePermission","managePermission","board","columns","OrdersQuery","FulfilmentColumns","cards","FulfilmentCards","editPermission","localeOfData","displayName","description","metadata","ordersMetadata","TemplateScope","Module","Feature"],"mappings":";;;;;;;AAAA;AACA;AAOA;;;;UAKaA,uBAAAA,GAA0C;IACnDC,IAAAA,EAAM,uBAAA;IACNC,QAAAA,EAAU,SAAA;AACVC,IAAAA,KAAAA,EAAOC,4CAAoBD,KAAK;AAChCE,IAAAA,WAAAA,EAAaD,4CAAoBC,WAAW;IAC5CC,OAAAA,EAAS;QACLC,MAAAA,EAAQ;AAACC,YAAAA,iCAAAA,CAAU,gCAAgC,YAAA,EAAc;gBAAEC,KAAAA,EAAO,YAAA;gBAAcC,QAAAA,EAAU;aAAiC,EAAG;gBAClIC,OAAAA,EAAS;AAACC,oBAAAA,yBAAAA,CAAcC,wBAAAA,CAAa,2BAAA,EAA6B,WAAA,EAAa,SAAA,CAAA,EAAYC,uBAAAA,CAAY,wBAAA,CAAA;AAA2B;AACtI,aAAA;AAAG,SAAA;QACHC,OAAAA,EAAS;AACLP,YAAAA,iCAAAA,CAAU,gCAAgC,cAAA,EAAgB;gBAAEQ,WAAAA,EAAa,kBAAA;gBAAoBC,KAAAA,EAAO;AAAmB,aAAA,CAAA;AACvHT,YAAAA,iCAAAA,CAAU,+BAA+B,gBAAA,EAAkB;AAAEU,gBAAAA,KAAAA,EAAOC,uBAAAA,CAAUC,6BAAAA,CAAgBC,8BAAAA,CAAiBC,KAAK,EAAEJ,KAAK,CAAA;gBAAGK,cAAAA,EAAgB,SAAA;gBAAWC,gBAAAA,EAAkB;AAAU,aAAA;AACxL,SAAA;QACDC,KAAAA,EAAO;AAACjB,YAAAA,iCAAAA,CAAU,iCAAiC,aAAA,EAAe;gBAC9DkB,OAAAA,EAASP,uBAAAA,CAAUQ,0BAAYC,iBAAiB,CAAA;gBAAGC,KAAAA,EAAOV,uBAAAA,CAAUQ,0BAAYG,eAAe,CAAA;gBAAGC,cAAAA,EAAgB,SAAA;gBAAWd,KAAAA,EAAO,2BAAA;AAA6B,gBAAA,GAAGe;AACxK,aAAA;AAAG;AACP,KAAA;IACAC,WAAAA,EAAa,yBAAA;IACbC,WAAAA,EAAa,qFAAA;IACbC,QAAAA,EAAUC,0BAAAA,CAAe,yBAAyB,OAAA,EAAS;AAACC,QAAAA,yBAAAA,CAAcC,MAAM;AAAED,QAAAA,yBAAAA,CAAcE;AAAQ,KAAA;AAC5G;;"}
@@ -0,0 +1,88 @@
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
+ /**
11
+ * The delivery calendar: the day each open order is due to arrive, on a month, a week or as an agenda (the foundation's `calendarGrid`). The status is told in
12
+ * words as well as by color, the day and view are kept in the address, and the list beside it names every order due in the period.
13
+ */ const deliveryCalendarTemplate = {
14
+ name: 'OrdersDeliveryCalendar',
15
+ fitsSlot: 'content',
16
+ slots: [
17
+ {
18
+ name: 'header'
19
+ },
20
+ {
21
+ name: 'calendar'
22
+ },
23
+ {
24
+ name: 'due'
25
+ }
26
+ ],
27
+ arrangement: {
28
+ root: scene_blueprint_default.column([
29
+ scene_blueprint_default.slotLeaf('header'),
30
+ scene_blueprint_default.grid([
31
+ scene_blueprint_default.slotLeaf('calendar', {
32
+ span: 2
33
+ }),
34
+ scene_blueprint_default.slotLeaf('due')
35
+ ], 3, 16)
36
+ ], 16),
37
+ overrides: [
38
+ {
39
+ width: scene_model.WidthSizeClass.Compact,
40
+ root: scene_blueprint_default.column([
41
+ scene_blueprint_default.slotLeaf('header'),
42
+ scene_blueprint_default.slotLeaf('calendar'),
43
+ scene_blueprint_default.slotLeaf('due')
44
+ ], 16)
45
+ }
46
+ ]
47
+ },
48
+ content: {
49
+ header: [
50
+ scene_blueprint_default.component('OrdersDeliveryCalendar-header', 'pageHeader', {
51
+ title: 'Deliveries',
52
+ subtitle: 'When each order is due to arrive'
53
+ }, {
54
+ actions: [
55
+ ordersParts.withBehaviors(ordersParts.actionButton('OrdersDeliveryCalendar-orders', 'Open the orders', 'secondary'), ordersParts.goesTo('orders.list'))
56
+ ]
57
+ })
58
+ ],
59
+ calendar: [
60
+ scene_blueprint_default.component('OrdersDeliveryCalendar-grid', 'calendarGrid', {
61
+ label: 'Deliveries',
62
+ events: ordersQueries.fromQuery(ordersQueries.OrdersQuery.DeliveryEvents),
63
+ date: ordersQueries.fromQuery(ordersQueries.OrdersQuery.Settings, '0.today'),
64
+ urlKey: 'day',
65
+ ...ordersQueries.localeOfData
66
+ })
67
+ ],
68
+ due: [
69
+ scene_blueprint_default.component('OrdersDeliveryCalendar-due', 'dataList', {
70
+ label: 'Due in this period',
71
+ rows: ordersQueries.fromQuery(ordersQueries.OrdersQuery.DeliveryEvents),
72
+ columns: ordersQueries.fromQuery(ordersQueries.OrdersQuery.DeliveryColumns),
73
+ titleField: 'title',
74
+ pageSize: 6,
75
+ ...ordersQueries.localeOfData
76
+ })
77
+ ]
78
+ },
79
+ displayName: 'Orders delivery calendar',
80
+ description: 'The day each open order is due to arrive, on a month, a week or as an agenda.',
81
+ metadata: ordersParts.ordersMetadata('OrdersDeliveryCalendar', 'Calendar', [
82
+ scene_model.TemplateScope.Module,
83
+ scene_model.TemplateScope.Feature
84
+ ])
85
+ };
86
+
87
+ exports.deliveryCalendarTemplate = deliveryCalendarTemplate;
88
+ //# sourceMappingURL=deliveryTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deliveryTemplate.js","sources":["../../../templates/deliveryTemplate.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, WidthSizeClass } from '@cratis/scene.model';\nimport { column, grid, slotLeaf } from '@cratis/scene.blueprint.default';\nimport { OrdersQuery, fromQuery, localeOfData } from '../ordersQueries';\nimport { actionButton, component, goesTo, ordersMetadata, withBehaviors } from '../ordersParts';\n\n/**\n * The delivery calendar: the day each open order is due to arrive, on a month, a week or as an agenda (the foundation's `calendarGrid`). The status is told in\n * words as well as by color, the day and view are kept in the address, and the list beside it names every order due in the period.\n */\nexport const deliveryCalendarTemplate: ScreenTemplate = {\n name: 'OrdersDeliveryCalendar',\n fitsSlot: 'content',\n slots: [{ name: 'header' }, { name: 'calendar' }, { name: 'due' }],\n arrangement: {\n root: column([slotLeaf('header'), grid([slotLeaf('calendar', { span: 2 }), slotLeaf('due')], 3, 16)], 16),\n overrides: [{ width: WidthSizeClass.Compact, root: column([slotLeaf('header'), slotLeaf('calendar'), slotLeaf('due')], 16) }],\n },\n content: {\n header: [component('OrdersDeliveryCalendar-header', 'pageHeader', { title: 'Deliveries', subtitle: 'When each order is due to arrive' }, {\n actions: [withBehaviors(actionButton('OrdersDeliveryCalendar-orders', 'Open the orders', 'secondary'), goesTo('orders.list'))],\n })],\n calendar: [component('OrdersDeliveryCalendar-grid', 'calendarGrid', { label: 'Deliveries', events: fromQuery(OrdersQuery.DeliveryEvents), date: fromQuery(OrdersQuery.Settings, '0.today'), urlKey: 'day', ...localeOfData })],\n due: [component('OrdersDeliveryCalendar-due', 'dataList', { label: 'Due in this period', rows: fromQuery(OrdersQuery.DeliveryEvents), columns: fromQuery(OrdersQuery.DeliveryColumns), titleField: 'title', pageSize: 6, ...localeOfData })],\n },\n displayName: 'Orders delivery calendar',\n description: 'The day each open order is due to arrive, on a month, a week or as an agenda.',\n metadata: ordersMetadata('OrdersDeliveryCalendar', 'Calendar', [TemplateScope.Module, TemplateScope.Feature]),\n};\n"],"names":["deliveryCalendarTemplate","name","fitsSlot","slots","arrangement","root","column","slotLeaf","grid","span","overrides","width","WidthSizeClass","Compact","content","header","component","title","subtitle","actions","withBehaviors","actionButton","goesTo","calendar","label","events","fromQuery","OrdersQuery","DeliveryEvents","date","Settings","urlKey","localeOfData","due","rows","columns","DeliveryColumns","titleField","pageSize","displayName","description","metadata","ordersMetadata","TemplateScope","Module","Feature"],"mappings":";;;;;;;AAAA;AACA;AAOA;;;UAIaA,wBAAAA,GAA2C;IACpDC,IAAAA,EAAM,wBAAA;IACNC,QAAAA,EAAU,SAAA;IACVC,KAAAA,EAAO;AAAC,QAAA;YAAEF,IAAAA,EAAM;AAAS,SAAA;AAAG,QAAA;YAAEA,IAAAA,EAAM;AAAW,SAAA;AAAG,QAAA;YAAEA,IAAAA,EAAM;AAAM;AAAE,KAAA;IAClEG,WAAAA,EAAa;AACTC,QAAAA,IAAAA,EAAMC,8BAAAA,CAAO;YAACC,gCAAAA,CAAS,QAAA,CAAA;YAAWC,4BAAAA,CAAK;AAACD,gBAAAA,gCAAAA,CAAS,UAAA,EAAY;oBAAEE,IAAAA,EAAM;AAAE,iBAAA,CAAA;gBAAIF,gCAAAA,CAAS,KAAA;AAAO,aAAA,EAAE,CAAA,EAAG,EAAA;SAAI,EAAE,EAAA,CAAA;QACtGG,SAAAA,EAAW;AAAC,YAAA;AAAEC,gBAAAA,KAAAA,EAAOC,2BAAeC,OAAO;AAAER,gBAAAA,IAAAA,EAAMC,8BAAAA,CAAO;oBAACC,gCAAAA,CAAS,QAAA,CAAA;oBAAWA,gCAAAA,CAAS,UAAA,CAAA;oBAAaA,gCAAAA,CAAS,KAAA;iBAAO,EAAE,EAAA;AAAI;AAAE;AACjI,KAAA;IACAO,OAAAA,EAAS;QACLC,MAAAA,EAAQ;AAACC,YAAAA,iCAAAA,CAAU,iCAAiC,YAAA,EAAc;gBAAEC,KAAAA,EAAO,YAAA;gBAAcC,QAAAA,EAAU;aAAmC,EAAG;gBACrIC,OAAAA,EAAS;AAACC,oBAAAA,yBAAAA,CAAcC,wBAAAA,CAAa,+BAAA,EAAiC,iBAAA,EAAmB,WAAA,CAAA,EAAcC,kBAAAA,CAAO,aAAA,CAAA;AAAgB;AAClI,aAAA;AAAG,SAAA;QACHC,QAAAA,EAAU;AAACP,YAAAA,iCAAAA,CAAU,+BAA+B,cAAA,EAAgB;gBAAEQ,KAAAA,EAAO,YAAA;gBAAcC,MAAAA,EAAQC,uBAAAA,CAAUC,0BAAYC,cAAc,CAAA;gBAAGC,IAAAA,EAAMH,uBAAAA,CAAUC,yBAAAA,CAAYG,QAAQ,EAAE,SAAA,CAAA;gBAAYC,MAAAA,EAAQ,KAAA;AAAO,gBAAA,GAAGC;AAAa,aAAA;AAAG,SAAA;QAC9NC,GAAAA,EAAK;AAACjB,YAAAA,iCAAAA,CAAU,8BAA8B,UAAA,EAAY;gBAAEQ,KAAAA,EAAO,oBAAA;gBAAsBU,IAAAA,EAAMR,uBAAAA,CAAUC,0BAAYC,cAAc,CAAA;gBAAGO,OAAAA,EAAST,uBAAAA,CAAUC,0BAAYS,eAAe,CAAA;gBAAGC,UAAAA,EAAY,OAAA;gBAASC,QAAAA,EAAU,CAAA;AAAG,gBAAA,GAAGN;AAAa,aAAA;AAAG;AAChP,KAAA;IACAO,WAAAA,EAAa,0BAAA;IACbC,WAAAA,EAAa,+EAAA;IACbC,QAAAA,EAAUC,0BAAAA,CAAe,0BAA0B,UAAA,EAAY;AAACC,QAAAA,yBAAAA,CAAcC,MAAM;AAAED,QAAAA,yBAAAA,CAAcE;AAAQ,KAAA;AAChH;;"}
@@ -0,0 +1,50 @@
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
+ /**
11
+ * One quick-create dialog: the foundation `QuickCreateDialog` - a short form opened from a page to make one record without leaving it - with the fields
12
+ * that thing needs to get started.
13
+ */ function quickCreateOf(name, title, sections, noun) {
14
+ return {
15
+ name,
16
+ slots: scene_blueprint_default.quickCreateDialogTemplate.slots,
17
+ content: {
18
+ header: [
19
+ scene_blueprint_default.component(`${name}-frame`, 'dialogFrame', {
20
+ title,
21
+ subtitle: 'Only what is needed to get started'
22
+ })
23
+ ],
24
+ body: [
25
+ ordersParts.withBehaviors(scene_blueprint_default.component(`${name}-form`, 'formScreenBody', {
26
+ mode: 'create',
27
+ saveAndNew: false,
28
+ strings: {
29
+ formSave: 'Create'
30
+ },
31
+ sections: ordersQueries.fromQuery(sections),
32
+ errors: ordersQueries.fromQuery(ordersQueries.OrdersQuery.FormErrors, '0'),
33
+ ...ordersQueries.localeOfData
34
+ }), ordersParts.closesDialog())
35
+ ],
36
+ actions: []
37
+ },
38
+ displayName: `Orders quick create ${noun}`,
39
+ description: `A short form that creates one ${noun} without leaving the page.`,
40
+ metadata: ordersParts.ordersMetadata(name, 'Dialog', [
41
+ scene_model.TemplateScope.Slice
42
+ ])
43
+ };
44
+ }
45
+ /** The quick creation of an order. */ const ordersDialogs = [
46
+ quickCreateOf('OrdersQuickCreateOrder', 'New order', 'OrderQuickSections', 'order')
47
+ ];
48
+
49
+ exports.ordersDialogs = ordersDialogs;
50
+ //# sourceMappingURL=formTemplates.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formTemplates.js","sources":["../../../templates/formTemplates.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 { DialogTemplate, TemplateScope } from '@cratis/scene.model';\nimport { quickCreateDialogTemplate } from '@cratis/scene.blueprint.default';\nimport { OrdersQuery, fromQuery, localeOfData } from '../ordersQueries';\nimport { closesDialog, component, ordersMetadata, withBehaviors } from '../ordersParts';\n\n/**\n * One quick-create dialog: the foundation `QuickCreateDialog` - a short form opened from a page to make one record without leaving it - with the fields\n * that thing needs to get started.\n */\nfunction quickCreateOf(name: string, title: string, sections: string, noun: string): DialogTemplate {\n return {\n name,\n slots: quickCreateDialogTemplate.slots,\n content: {\n header: [component(`${name}-frame`, 'dialogFrame', { title, subtitle: 'Only what is needed to get started' })],\n body: [withBehaviors(component(`${name}-form`, 'formScreenBody', {\n mode: 'create', saveAndNew: false, strings: { formSave: 'Create' }, sections: fromQuery(sections), errors: fromQuery(OrdersQuery.FormErrors, '0'), ...localeOfData,\n }), closesDialog())],\n actions: [],\n },\n displayName: `Orders quick create ${noun}`,\n description: `A short form that creates one ${noun} without leaving the page.`,\n metadata: ordersMetadata(name, 'Dialog', [TemplateScope.Slice]),\n };\n}\n\n/** The quick creation of an order. */\nexport const ordersDialogs: DialogTemplate[] = [\n quickCreateOf('OrdersQuickCreateOrder', 'New order', 'OrderQuickSections', 'order'),\n];\n"],"names":["quickCreateOf","name","title","sections","noun","slots","quickCreateDialogTemplate","content","header","component","subtitle","body","withBehaviors","mode","saveAndNew","strings","formSave","fromQuery","errors","OrdersQuery","FormErrors","localeOfData","closesDialog","actions","displayName","description","metadata","ordersMetadata","TemplateScope","Slice","ordersDialogs"],"mappings":";;;;;;;AAAA;AACA;AAOA;;;IAIA,SAASA,cAAcC,IAAY,EAAEC,KAAa,EAAEC,QAAgB,EAAEC,IAAY,EAAA;IAC9E,OAAO;AACHH,QAAAA,IAAAA;AACAI,QAAAA,KAAAA,EAAOC,kDAA0BD,KAAK;QACtCE,OAAAA,EAAS;YACLC,MAAAA,EAAQ;AAACC,gBAAAA,iCAAAA,CAAU,CAAA,EAAGR,IAAAA,CAAK,MAAM,CAAC,EAAE,aAAA,EAAe;AAAEC,oBAAAA,KAAAA;oBAAOQ,QAAAA,EAAU;AAAqC,iBAAA;AAAG,aAAA;YAC9GC,IAAAA,EAAM;AAACC,gBAAAA,yBAAAA,CAAcH,kCAAU,CAAA,EAAGR,IAAAA,CAAK,KAAK,CAAC,EAAE,gBAAA,EAAkB;oBAC7DY,IAAAA,EAAM,QAAA;oBAAUC,UAAAA,EAAY,KAAA;oBAAOC,OAAAA,EAAS;wBAAEC,QAAAA,EAAU;AAAS,qBAAA;AAAGb,oBAAAA,QAAAA,EAAUc,uBAAAA,CAAUd,QAAAA,CAAAA;oBAAWe,MAAAA,EAAQD,uBAAAA,CAAUE,yBAAAA,CAAYC,UAAU,EAAE,GAAA,CAAA;AAAM,oBAAA,GAAGC;iBAC1J,CAAA,EAAIC,wBAAAA,EAAAA;AAAgB,aAAA;AACpBC,YAAAA,OAAAA,EAAS;AACb,SAAA;QACAC,WAAAA,EAAa,CAAC,oBAAoB,EAAEpB,IAAAA,CAAAA,CAAM;AAC1CqB,QAAAA,WAAAA,EAAa,CAAC,8BAA8B,EAAErB,IAAAA,CAAK,0BAA0B,CAAC;QAC9EsB,QAAAA,EAAUC,0BAAAA,CAAe1B,MAAM,QAAA,EAAU;AAAC2B,YAAAA,yBAAAA,CAAcC;AAAM,SAAA;AAClE,KAAA;AACJ;AAEA,uCACO,MAAMC,aAAAA,GAAkC;IAC3C9B,aAAAA,CAAc,wBAAA,EAA0B,aAAa,oBAAA,EAAsB,OAAA;;;"}
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var boardTemplate = require('./boardTemplate.js');
4
+ var deliveryTemplate = require('./deliveryTemplate.js');
5
+ var listTemplates = require('./listTemplates.js');
6
+ var recordTemplates = require('./recordTemplates.js');
7
+ var formTemplates = require('./formTemplates.js');
8
+
9
+ /** Every screen template this blueprint provides, in the order the manifest lists them. */ const ordersScreenTemplates = [
10
+ listTemplates.ordersListTemplate,
11
+ recordTemplates.orderPageTemplate,
12
+ boardTemplate.fulfilmentBoardTemplate,
13
+ deliveryTemplate.deliveryCalendarTemplate
14
+ ];
15
+
16
+ exports.fulfilmentBoardTemplate = boardTemplate.fulfilmentBoardTemplate;
17
+ exports.deliveryCalendarTemplate = deliveryTemplate.deliveryCalendarTemplate;
18
+ exports.ordersListTemplate = listTemplates.ordersListTemplate;
19
+ exports.orderPageTemplate = recordTemplates.orderPageTemplate;
20
+ exports.ordersDialogTemplates = formTemplates.ordersDialogs;
21
+ exports.ordersDialogs = formTemplates.ordersDialogs;
22
+ exports.ordersScreenTemplates = ordersScreenTemplates;
23
+ //# sourceMappingURL=index.js.map