@cratis/scene.blueprint.orders 0.0.0-stage → 4.60.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.
- package/README.md +66 -2
- package/blueprint.ts +16 -0
- package/blueprintCatalog.json +107 -0
- package/dist/cjs/blueprint.js +19 -0
- package/dist/cjs/blueprint.js.map +1 -0
- package/dist/cjs/index.js +68 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/manifest.js +65 -0
- package/dist/cjs/manifest.js.map +1 -0
- package/dist/cjs/navigation.js +109 -0
- package/dist/cjs/navigation.js.map +1 -0
- package/dist/cjs/ordersApplication.js +49 -0
- package/dist/cjs/ordersApplication.js.map +1 -0
- package/dist/cjs/ordersParts.js +151 -0
- package/dist/cjs/ordersParts.js.map +1 -0
- package/dist/cjs/ordersQueries.js +66 -0
- package/dist/cjs/ordersQueries.js.map +1 -0
- package/dist/cjs/ordersScreenSet.js +40 -0
- package/dist/cjs/ordersScreenSet.js.map +1 -0
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/packageName.js +8 -0
- package/dist/cjs/packageName.js.map +1 -0
- package/dist/cjs/screens/index.js +22 -0
- package/dist/cjs/screens/index.js.map +1 -0
- package/dist/cjs/templateProvenance.js +24 -0
- package/dist/cjs/templateProvenance.js.map +1 -0
- package/dist/cjs/templates/boardTemplate.js +60 -0
- package/dist/cjs/templates/boardTemplate.js.map +1 -0
- package/dist/cjs/templates/deliveryTemplate.js +88 -0
- package/dist/cjs/templates/deliveryTemplate.js.map +1 -0
- package/dist/cjs/templates/formTemplates.js +50 -0
- package/dist/cjs/templates/formTemplates.js.map +1 -0
- package/dist/cjs/templates/index.js +23 -0
- package/dist/cjs/templates/index.js.map +1 -0
- package/dist/cjs/templates/listTemplates.js +145 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -0
- package/dist/cjs/templates/recordTemplates.js +101 -0
- package/dist/cjs/templates/recordTemplates.js.map +1 -0
- package/dist/esm/blueprint.d.ts +3 -0
- package/dist/esm/blueprint.d.ts.map +1 -0
- package/dist/esm/blueprint.js +17 -0
- package/dist/esm/blueprint.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/manifest.d.ts +3 -0
- package/dist/esm/manifest.d.ts.map +1 -0
- package/dist/esm/manifest.js +63 -0
- package/dist/esm/manifest.js.map +1 -0
- package/dist/esm/navigation.d.ts +5 -0
- package/dist/esm/navigation.d.ts.map +1 -0
- package/dist/esm/navigation.js +105 -0
- package/dist/esm/navigation.js.map +1 -0
- package/dist/esm/ordersApplication.d.ts +10 -0
- package/dist/esm/ordersApplication.d.ts.map +1 -0
- package/dist/esm/ordersApplication.js +44 -0
- package/dist/esm/ordersApplication.js.map +1 -0
- package/dist/esm/ordersParts.d.ts +16 -0
- package/dist/esm/ordersParts.d.ts.map +1 -0
- package/dist/esm/ordersParts.js +133 -0
- package/dist/esm/ordersParts.js.map +1 -0
- package/dist/esm/ordersQueries.d.ts +40 -0
- package/dist/esm/ordersQueries.d.ts.map +1 -0
- package/dist/esm/ordersQueries.js +58 -0
- package/dist/esm/ordersQueries.js.map +1 -0
- package/dist/esm/ordersScreenSet.d.ts +7 -0
- package/dist/esm/ordersScreenSet.d.ts.map +1 -0
- package/dist/esm/ordersScreenSet.js +38 -0
- package/dist/esm/ordersScreenSet.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/packageName.d.ts +2 -0
- package/dist/esm/packageName.d.ts.map +1 -0
- package/dist/esm/packageName.js +6 -0
- package/dist/esm/packageName.js.map +1 -0
- package/dist/esm/screens/index.d.ts +3 -0
- package/dist/esm/screens/index.d.ts.map +1 -0
- package/dist/esm/screens/index.js +20 -0
- package/dist/esm/screens/index.js.map +1 -0
- package/dist/esm/templateProvenance.d.ts +3 -0
- package/dist/esm/templateProvenance.d.ts.map +1 -0
- package/dist/esm/templateProvenance.js +22 -0
- package/dist/esm/templateProvenance.js.map +1 -0
- package/dist/esm/templates/boardTemplate.d.ts +3 -0
- package/dist/esm/templates/boardTemplate.d.ts.map +1 -0
- package/dist/esm/templates/boardTemplate.js +58 -0
- package/dist/esm/templates/boardTemplate.js.map +1 -0
- package/dist/esm/templates/deliveryTemplate.d.ts +3 -0
- package/dist/esm/templates/deliveryTemplate.d.ts.map +1 -0
- package/dist/esm/templates/deliveryTemplate.js +86 -0
- package/dist/esm/templates/deliveryTemplate.js.map +1 -0
- package/dist/esm/templates/formTemplates.d.ts +3 -0
- package/dist/esm/templates/formTemplates.d.ts.map +1 -0
- package/dist/esm/templates/formTemplates.js +48 -0
- package/dist/esm/templates/formTemplates.js.map +1 -0
- package/dist/esm/templates/index.d.ts +8 -0
- package/dist/esm/templates/index.d.ts.map +1 -0
- package/dist/esm/templates/index.js +15 -0
- package/dist/esm/templates/index.js.map +1 -0
- package/dist/esm/templates/listTemplates.d.ts +3 -0
- package/dist/esm/templates/listTemplates.d.ts.map +1 -0
- package/dist/esm/templates/listTemplates.js +143 -0
- package/dist/esm/templates/listTemplates.js.map +1 -0
- package/dist/esm/templates/recordTemplates.d.ts +3 -0
- package/dist/esm/templates/recordTemplates.d.ts.map +1 -0
- package/dist/esm/templates/recordTemplates.js +99 -0
- package/dist/esm/templates/recordTemplates.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/index.ts +14 -0
- package/manifest.ts +41 -0
- package/navigation.ts +53 -0
- package/ordersApplication.ts +28 -0
- package/ordersParts.ts +58 -0
- package/ordersQueries.ts +58 -0
- package/ordersScreenSet.ts +21 -0
- package/package.json +78 -4
- package/packageName.ts +5 -0
- package/sampleData/orders-en.json +952 -0
- package/screens/index.ts +20 -0
- package/templateProvenance.ts +15 -0
- package/templates/boardTemplate.ts +34 -0
- package/templates/deliveryTemplate.ts +31 -0
- package/templates/formTemplates.ts +33 -0
- package/templates/index.ts +15 -0
- package/templates/listTemplates.ts +93 -0
- package/templates/recordTemplates.ts +43 -0
- package/thumbnails/OrderPage.svg +18 -0
- package/thumbnails/OrdersDeliveryCalendar.svg +16 -0
- package/thumbnails/OrdersFulfilmentBoard.svg +23 -0
- package/thumbnails/OrdersList.svg +29 -0
- package/thumbnails/OrdersQuickCreateOrder.svg +12 -0
- package/thumbnails/orders.svg +14 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApplicationStructureIndex } from '@cratis/scene.engine';
|
|
2
|
+
import { previewProfile, defaultLayouts } from '@cratis/scene.blueprint.default';
|
|
3
|
+
import { ordersNavigation, ordersStructure } from './navigation.js';
|
|
4
|
+
import { ordersScreens } from './screens/index.js';
|
|
5
|
+
import { ordersScreenTemplates } from './templates/index.js';
|
|
6
|
+
import { ordersDialogs } from './templates/formTemplates.js';
|
|
7
|
+
|
|
8
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
9
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
10
|
+
/** The id of the sample-data pack a new application starts with. */ const ordersDefaultSampleDataId = 'orders-en';
|
|
11
|
+
/**
|
|
12
|
+
* The example application of the blueprint: the foundation's layouts, the Orders templates, the quick-create dialog and its four screens, rendering against the
|
|
13
|
+
* foundation's packages with the default sample-data pack chosen. This is what a gallery previews and what the conformance fixture
|
|
14
|
+
* (`Samples/Orders/orders.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.
|
|
15
|
+
*/ function ordersApplication(sampleData = ordersDefaultSampleDataId) {
|
|
16
|
+
const profile = {
|
|
17
|
+
...previewProfile(undefined),
|
|
18
|
+
name: 'Orders',
|
|
19
|
+
sampleData: {
|
|
20
|
+
activePack: sampleData,
|
|
21
|
+
mappings: [],
|
|
22
|
+
bindings: []
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
layouts: defaultLayouts,
|
|
27
|
+
screenTemplates: ordersScreenTemplates,
|
|
28
|
+
dialogTemplates: ordersDialogs,
|
|
29
|
+
screens: ordersScreens,
|
|
30
|
+
uiProfiles: [
|
|
31
|
+
profile
|
|
32
|
+
]
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */ const ordersComposition = {
|
|
36
|
+
logo: ordersNavigation.application.logo
|
|
37
|
+
};
|
|
38
|
+
/** The structure and navigation the shell's regions show and the items' destinations resolve against. */ const ordersNavigationModel = ()=>({
|
|
39
|
+
structure: new ApplicationStructureIndex(ordersStructure),
|
|
40
|
+
navigation: ordersNavigation
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { ordersApplication, ordersComposition, ordersDefaultSampleDataId, ordersNavigationModel };
|
|
44
|
+
//# sourceMappingURL=ordersApplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ordersApplication.js","sources":["../../ordersApplication.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { UiProfile } from '@cratis/scene.model';\nimport { ApplicationStructureIndex } from '@cratis/scene.engine';\nimport { ApplicationDocument, CompositionOptions, defaultLayouts, previewProfile } from '@cratis/scene.blueprint.default';\nimport { ordersNavigation, ordersStructure } from './navigation';\nimport { ordersScreens } from './screens';\nimport { ordersDialogTemplates, ordersScreenTemplates } from './templates';\n\n/** The id of the sample-data pack a new application starts with. */\nexport const ordersDefaultSampleDataId = 'orders-en';\n\n/**\n * The example application of the blueprint: the foundation's layouts, the Orders templates, the quick-create dialog and its four screens, rendering against the\n * foundation's packages with the default sample-data pack chosen. This is what a gallery previews and what the conformance fixture\n * (`Samples/Orders/orders.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.\n */\nexport function ordersApplication(sampleData: string = ordersDefaultSampleDataId): ApplicationDocument {\n const profile: UiProfile = { ...previewProfile(undefined), name: 'Orders', sampleData: { activePack: sampleData, mappings: [], bindings: [] } };\n return { layouts: defaultLayouts, screenTemplates: ordersScreenTemplates, dialogTemplates: ordersDialogTemplates, screens: ordersScreens, uiProfiles: [profile] };\n}\n\n/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */\nexport const ordersComposition: CompositionOptions = { logo: ordersNavigation.application.logo };\n\n/** The structure and navigation the shell's regions show and the items' destinations resolve against. */\nexport const ordersNavigationModel = () => ({ structure: new ApplicationStructureIndex(ordersStructure), navigation: ordersNavigation });\n"],"names":["ordersDefaultSampleDataId","ordersApplication","sampleData","profile","previewProfile","undefined","name","activePack","mappings","bindings","layouts","defaultLayouts","screenTemplates","ordersScreenTemplates","dialogTemplates","ordersDialogTemplates","screens","ordersScreens","uiProfiles","ordersComposition","logo","ordersNavigation","application","ordersNavigationModel","structure","ApplicationStructureIndex","ordersStructure","navigation"],"mappings":";;;;;;;AAAA;AACA;AASA,qEACO,MAAMA,yBAAAA,GAA4B;AAEzC;;;;AAIC,IACM,SAASC,iBAAAA,CAAkBC,UAAAA,GAAqBF,yBAAyB,EAAA;AAC5E,IAAA,MAAMG,OAAAA,GAAqB;AAAE,QAAA,GAAGC,eAAeC,SAAAA,CAAU;QAAEC,IAAAA,EAAM,QAAA;QAAUJ,UAAAA,EAAY;YAAEK,UAAAA,EAAYL,UAAAA;AAAYM,YAAAA,QAAAA,EAAU,EAAE;AAAEC,YAAAA,QAAAA,EAAU;AAAG;AAAE,KAAA;IAC9I,OAAO;QAAEC,OAAAA,EAASC,cAAAA;QAAgBC,eAAAA,EAAiBC,qBAAAA;QAAuBC,eAAAA,EAAiBC,aAAAA;QAAuBC,OAAAA,EAASC,aAAAA;QAAeC,UAAAA,EAAY;AAACf,YAAAA;AAAQ;AAAC,KAAA;AACpK;AAEA,sGACO,MAAMgB,iBAAAA,GAAwC;IAAEC,IAAAA,EAAMC,gBAAAA,CAAiBC,WAAW,CAACF;AAAK;AAE/F,0GACO,MAAMG,qBAAAA,GAAwB,KAAO;AAAEC,QAAAA,SAAAA,EAAW,IAAIC,yBAAAA,CAA0BC,eAAAA,CAAAA;QAAkBC,UAAAA,EAAYN;AAAiB,KAAA;;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Behavior, DialogTemplate, ExternalComponent, SceneElement, ScreenTemplate, TemplateMetadata, TemplateScope } from '@cratis/scene.model';
|
|
2
|
+
import { component, panel } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export { component, panel };
|
|
4
|
+
export declare const ordersCategory = "Business / Orders";
|
|
5
|
+
export declare const thumbnailOf: (templateName: string) => string;
|
|
6
|
+
export declare const ordersMetadata: (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace' | 'Calendar', scopes: TemplateScope[]) => TemplateMetadata;
|
|
7
|
+
export declare const actionButton: (id: string, label: string, emphasis: 'primary' | 'secondary' | 'quiet' | 'danger', extra?: Record<string, unknown>, behaviors?: Behavior[]) => ExternalComponent;
|
|
8
|
+
export declare const opensDialog: (dialogTemplate: string) => Behavior[];
|
|
9
|
+
export declare const goesTo: (screen: string) => Behavior[];
|
|
10
|
+
export declare const opensRecordOnSelect: (listId: string, screen: string) => Behavior[];
|
|
11
|
+
export declare const opensDialogOnSelect: (dialogTemplate: string) => Behavior[];
|
|
12
|
+
export declare const closesDialog: () => Behavior[];
|
|
13
|
+
export declare const withBehaviors: <T extends SceneElement>(element: T, behaviors: Behavior[]) => T;
|
|
14
|
+
export type OrdersScreenTemplate = ScreenTemplate;
|
|
15
|
+
export type OrdersDialogTemplate = DialogTemplate;
|
|
16
|
+
//# sourceMappingURL=ordersParts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ordersParts.d.ts","sourceRoot":"","sources":["../../ordersParts.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,QAAQ,EAAqB,cAAc,EAAE,iBAAiB,EAAmF,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EACjN,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAG5B,eAAO,MAAM,cAAc,sBAAsB,CAAC;AAGlD,eAAO,MAAM,WAAW,iBAAkB,MAAM,KAAG,MAA0C,CAAC;AAG9F,eAAO,MAAM,cAAc,SAAU,MAAM,QAAQ,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,UAAU,aAAa,EAAE,KAAG,gBAC5D,CAAC;AAG5G,eAAO,MAAM,YAAY,OAAQ,MAAM,SAAS,MAAM,YAAY,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,UAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,cAAmB,QAAQ,EAAE,KAAG,iBACzC,CAAC;AAGtI,eAAO,MAAM,WAAW,mBAAoB,MAAM,KAAG,QAAQ,EACuG,CAAC;AAGrK,eAAO,MAAM,MAAM,WAAY,MAAM,KAAG,QAAQ,EACwG,CAAC;AAMzJ,eAAO,MAAM,mBAAmB,WAAY,MAAM,UAAU,MAAM,KAAG,QAAQ,EAK3E,CAAC;AAKH,eAAO,MAAM,mBAAmB,mBAAoB,MAAM,KAAG,QAAQ,EACgG,CAAC;AAGtK,eAAO,MAAM,YAAY,QAAO,QAAQ,EAAmI,CAAC;AAG5K,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY,WAAW,CAAC,aAAa,QAAQ,EAAE,KAAG,CAAgC,CAAC;AAE3H,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAClD,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { InteractionActionKind, InteractionTriggerKind, BindingSourceKind } from '@cratis/scene.model';
|
|
2
|
+
import { component } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export { component, panel } from '@cratis/scene.blueprint.default';
|
|
4
|
+
import { ordersTemplateProvenance } from './templateProvenance.js';
|
|
5
|
+
|
|
6
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
7
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
8
|
+
/** The category of every template of this blueprint (spec Part B 1.2: `Business / <domain>`). */ const ordersCategory = 'Business / Orders';
|
|
9
|
+
/** The package-relative thumbnail of a template. */ const thumbnailOf = (templateName)=>`thumbnails/${templateName}.svg`;
|
|
10
|
+
/** 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)=>({
|
|
11
|
+
...ordersTemplateProvenance,
|
|
12
|
+
type,
|
|
13
|
+
category: ordersCategory,
|
|
14
|
+
thumbnail: thumbnailOf(name),
|
|
15
|
+
scopes
|
|
16
|
+
});
|
|
17
|
+
/** 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)=>({
|
|
18
|
+
...component(id, 'actionButton', {
|
|
19
|
+
label,
|
|
20
|
+
emphasis,
|
|
21
|
+
permission: 'enabled',
|
|
22
|
+
...extra
|
|
23
|
+
}),
|
|
24
|
+
...behaviors ? {
|
|
25
|
+
behaviors
|
|
26
|
+
} : {}
|
|
27
|
+
});
|
|
28
|
+
/** What pressing an element does: open the named dialog template over the page. */ const opensDialog = (dialogTemplate)=>[
|
|
29
|
+
{
|
|
30
|
+
bindings: [
|
|
31
|
+
{
|
|
32
|
+
trigger: {
|
|
33
|
+
kind: InteractionTriggerKind.Click
|
|
34
|
+
},
|
|
35
|
+
actions: [
|
|
36
|
+
{
|
|
37
|
+
kind: InteractionActionKind.OpenDialog,
|
|
38
|
+
dialogTemplate
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
/** What pressing an element does: go to the named screen. */ const goesTo = (screen)=>[
|
|
46
|
+
{
|
|
47
|
+
bindings: [
|
|
48
|
+
{
|
|
49
|
+
trigger: {
|
|
50
|
+
kind: InteractionTriggerKind.Click
|
|
51
|
+
},
|
|
52
|
+
actions: [
|
|
53
|
+
{
|
|
54
|
+
kind: InteractionActionKind.Navigate,
|
|
55
|
+
screen
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
/**
|
|
63
|
+
* 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
|
|
64
|
+
* opening it - the way a table of records works everywhere.
|
|
65
|
+
*/ const opensRecordOnSelect = (listId, screen)=>[
|
|
66
|
+
{
|
|
67
|
+
bindings: [
|
|
68
|
+
{
|
|
69
|
+
trigger: {
|
|
70
|
+
kind: InteractionTriggerKind.Select
|
|
71
|
+
},
|
|
72
|
+
actions: [
|
|
73
|
+
{
|
|
74
|
+
kind: InteractionActionKind.Navigate,
|
|
75
|
+
screen,
|
|
76
|
+
arguments: [
|
|
77
|
+
{
|
|
78
|
+
name: 'id',
|
|
79
|
+
value: {
|
|
80
|
+
kind: BindingSourceKind.ComponentProperty,
|
|
81
|
+
componentId: listId,
|
|
82
|
+
path: 'value'
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
/**
|
|
93
|
+
* 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.
|
|
94
|
+
*/ const opensDialogOnSelect = (dialogTemplate)=>[
|
|
95
|
+
{
|
|
96
|
+
bindings: [
|
|
97
|
+
{
|
|
98
|
+
trigger: {
|
|
99
|
+
kind: InteractionTriggerKind.Select
|
|
100
|
+
},
|
|
101
|
+
actions: [
|
|
102
|
+
{
|
|
103
|
+
kind: InteractionActionKind.OpenDialog,
|
|
104
|
+
dialogTemplate
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
];
|
|
111
|
+
/** What a Cancel or Close control does: close the dialog it was opened from. */ const closesDialog = ()=>[
|
|
112
|
+
{
|
|
113
|
+
bindings: [
|
|
114
|
+
{
|
|
115
|
+
trigger: {
|
|
116
|
+
kind: InteractionTriggerKind.Click
|
|
117
|
+
},
|
|
118
|
+
actions: [
|
|
119
|
+
{
|
|
120
|
+
kind: InteractionActionKind.CloseDialog
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
];
|
|
127
|
+
/** An element with the given behaviors attached. */ const withBehaviors = (element, behaviors)=>({
|
|
128
|
+
...element,
|
|
129
|
+
behaviors
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
export { actionButton, closesDialog, goesTo, opensDialog, opensDialogOnSelect, opensRecordOnSelect, ordersCategory, ordersMetadata, thumbnailOf, withBehaviors };
|
|
133
|
+
//# 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,wBAAwB;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,SAAAA,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,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBC,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,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBI,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,uBAAuBU;AAAO,qBAAA;oBAC/CR,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBI,QAAQ;AAAED,4BAAAA,MAAAA;4BAAQK,SAAAA,EAAW;AAAC,gCAAA;oCAAE9B,IAAAA,EAAM,IAAA;oCAAM+B,KAAAA,EAAO;AAAEb,wCAAAA,IAAAA,EAAMc,kBAAkBC,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,uBAAuBU;AAAO,qBAAA;oBAAGR,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBC,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,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBgB;AAAY;AAAE;AAAC;AAAE;AAAC;;AAEzK,qDACO,MAAMC,gBAAgB,CAAyBC,OAAAA,EAAY7B,aAA8B;AAAE,QAAA,GAAG6B,OAAO;AAAE7B,QAAAA;AAAU,KAAA;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { BindingExpression } from '@cratis/scene.model';
|
|
2
|
+
export declare const fromQuery: (query: string, path?: string) => BindingExpression;
|
|
3
|
+
export declare const OrdersQuery: {
|
|
4
|
+
readonly Settings: 'OrdersSettings';
|
|
5
|
+
readonly RecordTabs: 'OrderRecordTabs';
|
|
6
|
+
readonly Lines: 'OrderLines';
|
|
7
|
+
readonly LineColumns: 'OrderLineColumns';
|
|
8
|
+
readonly Shipments: 'OrderShipments';
|
|
9
|
+
readonly ShipmentColumns: 'OrderShipmentColumns';
|
|
10
|
+
readonly FulfilmentColumns: 'FulfilmentColumns';
|
|
11
|
+
readonly FulfilmentCards: 'FulfilmentCards';
|
|
12
|
+
readonly DeliveryEvents: 'DeliveryEvents';
|
|
13
|
+
readonly DeliveryColumns: 'DeliveryColumns';
|
|
14
|
+
readonly FormErrors: 'OrdersFormErrors';
|
|
15
|
+
};
|
|
16
|
+
export declare enum OrdersEntityKind {
|
|
17
|
+
Order = "Order"
|
|
18
|
+
}
|
|
19
|
+
export declare const ordersEntityPlural: Record<OrdersEntityKind, string>;
|
|
20
|
+
export declare const ordersQueriesOf: (entity: OrdersEntityKind) => {
|
|
21
|
+
rows: string;
|
|
22
|
+
columns: string;
|
|
23
|
+
filterFields: string;
|
|
24
|
+
views: string;
|
|
25
|
+
columnChoices: string;
|
|
26
|
+
selection: string;
|
|
27
|
+
quickSections: string;
|
|
28
|
+
record: string;
|
|
29
|
+
sections: string;
|
|
30
|
+
summary: string;
|
|
31
|
+
activity: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const localeOfData: {
|
|
34
|
+
locale: BindingExpression;
|
|
35
|
+
};
|
|
36
|
+
export declare const currencyOfData: {
|
|
37
|
+
locale: BindingExpression;
|
|
38
|
+
currency: BindingExpression;
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ordersQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ordersQueries.d.ts","sourceRoot":"","sources":["../../ordersQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qBAAqB,CAAC;AAM3E,eAAO,MAAM,SAAS,UAAW,MAAM,oBAAc,iBAA2E,CAAC;AAGjI,eAAO,MAAM,WAAW;aAEpB,QAAQ,EAAE,gBAAgB;aAC1B,UAAU,EAAE,iBAAiB;aAC7B,KAAK,EAAE,YAAY;aACnB,WAAW,EAAE,kBAAkB;aAC/B,SAAS,EAAE,gBAAgB;aAC3B,eAAe,EAAE,sBAAsB;aACvC,iBAAiB,EAAE,mBAAmB;aACtC,eAAe,EAAE,iBAAiB;aAClC,cAAc,EAAE,gBAAgB;aAChC,eAAe,EAAE,iBAAiB;aAClC,UAAU,EAAE,kBAAkB;CACxB,CAAC;AAGX,oBAAY,gBAAgB;IACxB,KAAK,UAAU;CAClB;AAGD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAE/D,CAAC;AAMF,eAAO,MAAM,eAAe,WAAY,gBAAgB;IACpD,IAAI;IACJ,OAAO;IACP,YAAY;IACZ,KAAK;IACL,aAAa;IACb,SAAS;IACT,aAAa;IACb,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;CACV,CAAC;AAGH,eAAO,MAAM,YAAY;IAAK,MAAM;CAA+C,CAAC;AACpF,eAAO,MAAM,cAAc;;;CAA+E,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BindingSourceKind } from '@cratis/scene.model';
|
|
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
|
+
* 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
|
|
7
|
+
* 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).
|
|
8
|
+
*/ const fromQuery = (query, path = '')=>({
|
|
9
|
+
kind: BindingSourceKind.QueryResult,
|
|
10
|
+
query,
|
|
11
|
+
path
|
|
12
|
+
});
|
|
13
|
+
/** The queries of the screens that are not a plain list. Each is a shape the sample-data pack supplies rows for. */ const OrdersQuery = {
|
|
14
|
+
/** One row: the `locale` and `currency` the figures and dates are formatted in. */ Settings: 'OrdersSettings',
|
|
15
|
+
RecordTabs: 'OrderRecordTabs',
|
|
16
|
+
Lines: 'OrderLines',
|
|
17
|
+
LineColumns: 'OrderLineColumns',
|
|
18
|
+
Shipments: 'OrderShipments',
|
|
19
|
+
ShipmentColumns: 'OrderShipmentColumns',
|
|
20
|
+
FulfilmentColumns: 'FulfilmentColumns',
|
|
21
|
+
FulfilmentCards: 'FulfilmentCards',
|
|
22
|
+
DeliveryEvents: 'DeliveryEvents',
|
|
23
|
+
DeliveryColumns: 'DeliveryColumns',
|
|
24
|
+
FormErrors: 'OrdersFormErrors'
|
|
25
|
+
};
|
|
26
|
+
/** The entities a template is made for. */ var OrdersEntityKind = /*#__PURE__*/ function(OrdersEntityKind) {
|
|
27
|
+
OrdersEntityKind["Order"] = "Order";
|
|
28
|
+
return OrdersEntityKind;
|
|
29
|
+
}({});
|
|
30
|
+
/** The read model (and so the shape) the records of each entity are queried from. */ const ordersEntityPlural = {
|
|
31
|
+
["Order"]: 'Orders'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 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
|
|
35
|
+
* list, its saved views and column choices, the selection, the sections of the quick form, and what the record page shows.
|
|
36
|
+
*/ const ordersQueriesOf = (entity)=>({
|
|
37
|
+
rows: ordersEntityPlural[entity],
|
|
38
|
+
columns: `${entity}Columns`,
|
|
39
|
+
filterFields: `${entity}FilterFields`,
|
|
40
|
+
views: `${entity}Views`,
|
|
41
|
+
columnChoices: `${entity}ColumnChoices`,
|
|
42
|
+
selection: `${entity}Selection`,
|
|
43
|
+
quickSections: `${entity}QuickSections`,
|
|
44
|
+
record: `${entity}Record`,
|
|
45
|
+
sections: `${entity}Sections`,
|
|
46
|
+
summary: `${entity}Summary`,
|
|
47
|
+
activity: `${entity}Activity`
|
|
48
|
+
});
|
|
49
|
+
/** The locale and currency of the data, bound onto every component that formats a figure or a date. */ const localeOfData = {
|
|
50
|
+
locale: fromQuery(OrdersQuery.Settings, '0.locale')
|
|
51
|
+
};
|
|
52
|
+
const currencyOfData = {
|
|
53
|
+
...localeOfData,
|
|
54
|
+
currency: fromQuery(OrdersQuery.Settings, '0.currency')
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { OrdersEntityKind, OrdersQuery, currencyOfData, fromQuery, localeOfData, ordersEntityPlural, ordersQueriesOf };
|
|
58
|
+
//# 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,kBAAkBC,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,7 @@
|
|
|
1
|
+
import { BlueprintScreen } from '@cratis/scene.model';
|
|
2
|
+
export interface OrdersScreenDefinition extends BlueprintScreen {
|
|
3
|
+
template: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const ordersScreenDefinitions: OrdersScreenDefinition[];
|
|
7
|
+
//# sourceMappingURL=ordersScreenSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ordersScreenSet.d.ts","sourceRoot":"","sources":["../../ordersScreenSet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,MAAM,WAAW,sBAAuB,SAAQ,eAAe;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,uBAAuB,EAAE,sBAAsB,EAK3D,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The screens the blueprint brings, in navigation order. This one list is what the manifest's screen set, the `Screen` instances, the application structure
|
|
5
|
+
* and the navigation are all derived from, so they cannot disagree about which screens exist or where they sit.
|
|
6
|
+
*/ const ordersScreenDefinitions = [
|
|
7
|
+
{
|
|
8
|
+
name: 'orders.list',
|
|
9
|
+
title: 'Orders',
|
|
10
|
+
template: 'OrdersList',
|
|
11
|
+
order: 0,
|
|
12
|
+
description: 'Every order with its customer, dates, total and status.'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'orders.record',
|
|
16
|
+
title: 'Order',
|
|
17
|
+
template: 'OrderPage',
|
|
18
|
+
parent: 'orders.list',
|
|
19
|
+
description: 'One order: key facts, its lines, its shipments and its activity.'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'orders.fulfilment',
|
|
23
|
+
title: 'Fulfilment',
|
|
24
|
+
template: 'OrdersFulfilmentBoard',
|
|
25
|
+
order: 1,
|
|
26
|
+
description: 'Orders in a column for each fulfilment step.'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'orders.deliveries',
|
|
30
|
+
title: 'Deliveries',
|
|
31
|
+
template: 'OrdersDeliveryCalendar',
|
|
32
|
+
order: 2,
|
|
33
|
+
description: 'The day each open order is due to arrive, on a calendar.'
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
export { ordersScreenDefinitions };
|
|
38
|
+
//# 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 @@
|
|
|
1
|
+
{"version":3,"file":"packageName.d.ts","sourceRoot":"","sources":["../../packageName.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/** The name this blueprint is known by inside a `ui profile`; every component registry key is built from it. */ const ordersBlueprintName = 'Cratis.Blueprint.Orders';
|
|
4
|
+
|
|
5
|
+
export { ordersBlueprintName };
|
|
6
|
+
//# 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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../screens/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAQ7C,eAAO,MAAM,aAAa,EAAE,MAAM,EAQ/B,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LayoutName } from '@cratis/scene.blueprint.default';
|
|
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
|
+
/**
|
|
7
|
+
* 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
|
|
8
|
+
* the foundation's application shell. A new application that adopts the blueprint gets these, wired into its navigation (`ordersNavigation`).
|
|
9
|
+
*/ const ordersScreens = ordersScreenDefinitions.map((definition)=>({
|
|
10
|
+
name: definition.name,
|
|
11
|
+
layout: LayoutName.AppShell,
|
|
12
|
+
screenTemplate: definition.template,
|
|
13
|
+
slotContent: {},
|
|
14
|
+
forms: [],
|
|
15
|
+
contributions: [],
|
|
16
|
+
path: definition.name.split('.')
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
export { ordersScreens };
|
|
20
|
+
//# 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,uBAAAA,CAAwBC,GAAG,CAACC,CAAAA,cAAe;AAC9EC,QAAAA,IAAAA,EAAMD,WAAWC,IAAI;AACrBC,QAAAA,MAAAA,EAAQC,WAAWC,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 @@
|
|
|
1
|
+
{"version":3,"file":"templateProvenance.d.ts","sourceRoot":"","sources":["../../templateProvenance.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAGvD,eAAO,MAAM,wBAAwB,EAAE,IAAI,CAAC,gBAAgB,EAAE,eAAe,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,CAQvH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/** The compatibility, attribution and license metadata every template this blueprint ships carries. */ const ordersTemplateProvenance = {
|
|
4
|
+
compatibility: {
|
|
5
|
+
scene: '^4.13.0',
|
|
6
|
+
packages: [
|
|
7
|
+
{
|
|
8
|
+
name: 'Cratis.Blueprint.Default',
|
|
9
|
+
versionRange: '^1.0.0'
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
attribution: {
|
|
14
|
+
author: 'Cratis',
|
|
15
|
+
url: 'https://github.com/Cratis/Scene/tree/main/Source/JavaScript/blueprint.orders'
|
|
16
|
+
},
|
|
17
|
+
license: 'MIT',
|
|
18
|
+
licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE'
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { ordersTemplateProvenance };
|
|
22
|
+
//# 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 @@
|
|
|
1
|
+
{"version":3,"file":"boardTemplate.d.ts","sourceRoot":"","sources":["../../../templates/boardTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAiB,MAAM,qBAAqB,CAAC;AAUpE,eAAO,MAAM,uBAAuB,EAAE,cAoBrC,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { TemplateScope } from '@cratis/scene.model';
|
|
2
|
+
import { component, boardScreenTemplate } from '@cratis/scene.blueprint.default';
|
|
3
|
+
import { localeOfData, fromQuery, OrdersQuery, ordersQueriesOf, OrdersEntityKind } from '../ordersQueries.js';
|
|
4
|
+
import { ordersMetadata, withBehaviors, opensDialog, actionButton } from '../ordersParts.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 fulfilment board: the foundation `BoardScreen` with a column for each step an order goes through - new, picking, shipped, delivered - and a card for each
|
|
10
|
+
* 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
|
|
11
|
+
* a limit is exceeded.
|
|
12
|
+
*/ const fulfilmentBoardTemplate = {
|
|
13
|
+
name: 'OrdersFulfilmentBoard',
|
|
14
|
+
fitsSlot: 'content',
|
|
15
|
+
slots: boardScreenTemplate.slots,
|
|
16
|
+
arrangement: boardScreenTemplate.arrangement,
|
|
17
|
+
content: {
|
|
18
|
+
header: [
|
|
19
|
+
component('OrdersFulfilmentBoard-header', 'pageHeader', {
|
|
20
|
+
title: 'Fulfilment',
|
|
21
|
+
subtitle: 'Drag an order to its next step'
|
|
22
|
+
}, {
|
|
23
|
+
actions: [
|
|
24
|
+
withBehaviors(actionButton('OrdersFulfilmentBoard-new', 'New order', 'primary'), opensDialog('OrdersQuickCreateOrder'))
|
|
25
|
+
]
|
|
26
|
+
})
|
|
27
|
+
],
|
|
28
|
+
toolbar: [
|
|
29
|
+
component('OrdersFulfilmentBoard-search', 'globalSearch', {
|
|
30
|
+
placeholder: 'Search the board',
|
|
31
|
+
label: 'Search the board'
|
|
32
|
+
}),
|
|
33
|
+
component('OrdersFulfilmentBoard-views', 'savedViewsMenu', {
|
|
34
|
+
views: fromQuery(ordersQueriesOf(OrdersEntityKind.Order).views),
|
|
35
|
+
savePermission: 'enabled',
|
|
36
|
+
managePermission: 'enabled'
|
|
37
|
+
})
|
|
38
|
+
],
|
|
39
|
+
board: [
|
|
40
|
+
component('OrdersFulfilmentBoard-columns', 'kanbanBoard', {
|
|
41
|
+
columns: fromQuery(OrdersQuery.FulfilmentColumns),
|
|
42
|
+
cards: fromQuery(OrdersQuery.FulfilmentCards),
|
|
43
|
+
editPermission: 'enabled',
|
|
44
|
+
label: 'Orders by fulfilment step',
|
|
45
|
+
...localeOfData
|
|
46
|
+
})
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
displayName: 'Orders fulfilment board',
|
|
50
|
+
description: 'Orders as cards in a column for each fulfilment step, moved by dragging or by menu.',
|
|
51
|
+
metadata: ordersMetadata('OrdersFulfilmentBoard', 'Board', [
|
|
52
|
+
TemplateScope.Module,
|
|
53
|
+
TemplateScope.Feature
|
|
54
|
+
])
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { fulfilmentBoardTemplate };
|
|
58
|
+
//# 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,oBAAoBD,KAAK;AAChCE,IAAAA,WAAAA,EAAaD,oBAAoBC,WAAW;IAC5CC,OAAAA,EAAS;QACLC,MAAAA,EAAQ;AAACC,YAAAA,SAAAA,CAAU,gCAAgC,YAAA,EAAc;gBAAEC,KAAAA,EAAO,YAAA;gBAAcC,QAAAA,EAAU;aAAiC,EAAG;gBAClIC,OAAAA,EAAS;AAACC,oBAAAA,aAAAA,CAAcC,YAAAA,CAAa,2BAAA,EAA6B,WAAA,EAAa,SAAA,CAAA,EAAYC,WAAAA,CAAY,wBAAA,CAAA;AAA2B;AACtI,aAAA;AAAG,SAAA;QACHC,OAAAA,EAAS;AACLP,YAAAA,SAAAA,CAAU,gCAAgC,cAAA,EAAgB;gBAAEQ,WAAAA,EAAa,kBAAA;gBAAoBC,KAAAA,EAAO;AAAmB,aAAA,CAAA;AACvHT,YAAAA,SAAAA,CAAU,+BAA+B,gBAAA,EAAkB;AAAEU,gBAAAA,KAAAA,EAAOC,SAAAA,CAAUC,eAAAA,CAAgBC,gBAAAA,CAAiBC,KAAK,EAAEJ,KAAK,CAAA;gBAAGK,cAAAA,EAAgB,SAAA;gBAAWC,gBAAAA,EAAkB;AAAU,aAAA;AACxL,SAAA;QACDC,KAAAA,EAAO;AAACjB,YAAAA,SAAAA,CAAU,iCAAiC,aAAA,EAAe;gBAC9DkB,OAAAA,EAASP,SAAAA,CAAUQ,YAAYC,iBAAiB,CAAA;gBAAGC,KAAAA,EAAOV,SAAAA,CAAUQ,YAAYG,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,cAAAA,CAAe,yBAAyB,OAAA,EAAS;AAACC,QAAAA,aAAAA,CAAcC,MAAM;AAAED,QAAAA,aAAAA,CAAcE;AAAQ,KAAA;AAC5G;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deliveryTemplate.d.ts","sourceRoot":"","sources":["../../../templates/deliveryTemplate.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAiC,MAAM,qBAAqB,CAAC;AASpF,eAAO,MAAM,wBAAwB,EAAE,cAkBtC,CAAC"}
|