@cratis/scene.blueprint.bookings 0.0.0-stage → 4.71.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 +123 -0
- package/bookingsApplication.ts +28 -0
- package/bookingsParts.ts +58 -0
- package/bookingsQueries.ts +60 -0
- package/bookingsScreenSet.ts +22 -0
- package/dist/cjs/blueprint.js +19 -0
- package/dist/cjs/blueprint.js.map +1 -0
- package/dist/cjs/bookingsApplication.js +49 -0
- package/dist/cjs/bookingsApplication.js.map +1 -0
- package/dist/cjs/bookingsParts.js +151 -0
- package/dist/cjs/bookingsParts.js.map +1 -0
- package/dist/cjs/bookingsQueries.js +68 -0
- package/dist/cjs/bookingsQueries.js.map +1 -0
- package/dist/cjs/bookingsScreenSet.js +47 -0
- package/dist/cjs/bookingsScreenSet.js.map +1 -0
- package/dist/cjs/index.js +69 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/manifest.js +90 -0
- package/dist/cjs/manifest.js.map +1 -0
- package/dist/cjs/navigation.js +117 -0
- package/dist/cjs/navigation.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/calendarTemplate.js +109 -0
- package/dist/cjs/templates/calendarTemplate.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 +27 -0
- package/dist/cjs/templates/index.js.map +1 -0
- package/dist/cjs/templates/listTemplates.js +167 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -0
- package/dist/cjs/templates/recordTemplates.js +129 -0
- package/dist/cjs/templates/recordTemplates.js.map +1 -0
- package/dist/cjs/templates/wizardTemplate.js +73 -0
- package/dist/cjs/templates/wizardTemplate.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/bookingsApplication.d.ts +10 -0
- package/dist/esm/bookingsApplication.d.ts.map +1 -0
- package/dist/esm/bookingsApplication.js +44 -0
- package/dist/esm/bookingsApplication.js.map +1 -0
- package/dist/esm/bookingsParts.d.ts +16 -0
- package/dist/esm/bookingsParts.d.ts.map +1 -0
- package/dist/esm/bookingsParts.js +133 -0
- package/dist/esm/bookingsParts.js.map +1 -0
- package/dist/esm/bookingsQueries.d.ts +41 -0
- package/dist/esm/bookingsQueries.d.ts.map +1 -0
- package/dist/esm/bookingsQueries.js +60 -0
- package/dist/esm/bookingsQueries.js.map +1 -0
- package/dist/esm/bookingsScreenSet.d.ts +7 -0
- package/dist/esm/bookingsScreenSet.d.ts.map +1 -0
- package/dist/esm/bookingsScreenSet.js +45 -0
- package/dist/esm/bookingsScreenSet.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 +88 -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 +113 -0
- package/dist/esm/navigation.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/calendarTemplate.d.ts +3 -0
- package/dist/esm/templates/calendarTemplate.d.ts.map +1 -0
- package/dist/esm/templates/calendarTemplate.js +107 -0
- package/dist/esm/templates/calendarTemplate.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 +18 -0
- package/dist/esm/templates/index.js.map +1 -0
- package/dist/esm/templates/listTemplates.d.ts +4 -0
- package/dist/esm/templates/listTemplates.d.ts.map +1 -0
- package/dist/esm/templates/listTemplates.js +164 -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 +127 -0
- package/dist/esm/templates/recordTemplates.js.map +1 -0
- package/dist/esm/templates/wizardTemplate.d.ts +3 -0
- package/dist/esm/templates/wizardTemplate.d.ts.map +1 -0
- package/dist/esm/templates/wizardTemplate.js +71 -0
- package/dist/esm/templates/wizardTemplate.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/index.ts +14 -0
- package/manifest.ts +41 -0
- package/navigation.ts +54 -0
- package/package.json +78 -4
- package/packageName.ts +5 -0
- package/sampleData/bookings-en.json +1057 -0
- package/screens/index.ts +20 -0
- package/templateProvenance.ts +15 -0
- package/templates/calendarTemplate.ts +57 -0
- package/templates/formTemplates.ts +33 -0
- package/templates/index.ts +18 -0
- package/templates/listTemplates.ts +106 -0
- package/templates/recordTemplates.ts +78 -0
- package/templates/wizardTemplate.ts +29 -0
- package/thumbnails/BookingPage.svg +17 -0
- package/thumbnails/BookingsCalendar.svg +34 -0
- package/thumbnails/BookingsList.svg +29 -0
- package/thumbnails/BookingsQuickCreateBooking.svg +12 -0
- package/thumbnails/NewBookingWizard.svg +15 -0
- package/thumbnails/ResourcesList.svg +29 -0
- package/thumbnails/bookings.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 { bookingsNavigation, bookingsStructure } from './navigation.js';
|
|
4
|
+
import { bookingsScreens } from './screens/index.js';
|
|
5
|
+
import { bookingsScreenTemplates } from './templates/index.js';
|
|
6
|
+
import { bookingsDialogs } 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 bookingsDefaultSampleDataId = 'bookings-en';
|
|
11
|
+
/**
|
|
12
|
+
* The example application of the blueprint: the foundation's layouts, the Bookings templates, the quick-create dialogs and their 5 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/Bookings/bookings.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.
|
|
15
|
+
*/ function bookingsApplication(sampleData = bookingsDefaultSampleDataId) {
|
|
16
|
+
const profile = {
|
|
17
|
+
...previewProfile(undefined),
|
|
18
|
+
name: 'Bookings',
|
|
19
|
+
sampleData: {
|
|
20
|
+
activePack: sampleData,
|
|
21
|
+
mappings: [],
|
|
22
|
+
bindings: []
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
layouts: defaultLayouts,
|
|
27
|
+
screenTemplates: bookingsScreenTemplates,
|
|
28
|
+
dialogTemplates: bookingsDialogs,
|
|
29
|
+
screens: bookingsScreens,
|
|
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 bookingsComposition = {
|
|
36
|
+
logo: bookingsNavigation.application.logo
|
|
37
|
+
};
|
|
38
|
+
/** The structure and navigation the shell's regions show and the items' destinations resolve against. */ const bookingsNavigationModel = ()=>({
|
|
39
|
+
structure: new ApplicationStructureIndex(bookingsStructure),
|
|
40
|
+
navigation: bookingsNavigation
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { bookingsApplication, bookingsComposition, bookingsDefaultSampleDataId, bookingsNavigationModel };
|
|
44
|
+
//# sourceMappingURL=bookingsApplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsApplication.js","sources":["../../bookingsApplication.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 { bookingsNavigation, bookingsStructure } from './navigation';\nimport { bookingsScreens } from './screens';\nimport { bookingsDialogTemplates, bookingsScreenTemplates } from './templates';\n\n/** The id of the sample-data pack a new application starts with. */\nexport const bookingsDefaultSampleDataId = 'bookings-en';\n\n/**\n * The example application of the blueprint: the foundation's layouts, the Bookings templates, the quick-create dialogs and their 5 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/Bookings/bookings.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.\n */\nexport function bookingsApplication(sampleData: string = bookingsDefaultSampleDataId): ApplicationDocument {\n const profile: UiProfile = { ...previewProfile(undefined), name: 'Bookings', sampleData: { activePack: sampleData, mappings: [], bindings: [] } };\n return { layouts: defaultLayouts, screenTemplates: bookingsScreenTemplates, dialogTemplates: bookingsDialogTemplates, screens: bookingsScreens, uiProfiles: [profile] };\n}\n\n/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */\nexport const bookingsComposition: CompositionOptions = { logo: bookingsNavigation.application.logo };\n\n/** The structure and navigation the shell's regions show and the items' destinations resolve against. */\nexport const bookingsNavigationModel = () => ({ structure: new ApplicationStructureIndex(bookingsStructure), navigation: bookingsNavigation });\n"],"names":["bookingsDefaultSampleDataId","bookingsApplication","sampleData","profile","previewProfile","undefined","name","activePack","mappings","bindings","layouts","defaultLayouts","screenTemplates","bookingsScreenTemplates","dialogTemplates","bookingsDialogTemplates","screens","bookingsScreens","uiProfiles","bookingsComposition","logo","bookingsNavigation","application","bookingsNavigationModel","structure","ApplicationStructureIndex","bookingsStructure","navigation"],"mappings":";;;;;;;AAAA;AACA;AASA,qEACO,MAAMA,2BAAAA,GAA8B;AAE3C;;;;AAIC,IACM,SAASC,mBAAAA,CAAoBC,UAAAA,GAAqBF,2BAA2B,EAAA;AAChF,IAAA,MAAMG,OAAAA,GAAqB;AAAE,QAAA,GAAGC,eAAeC,SAAAA,CAAU;QAAEC,IAAAA,EAAM,UAAA;QAAYJ,UAAAA,EAAY;YAAEK,UAAAA,EAAYL,UAAAA;AAAYM,YAAAA,QAAAA,EAAU,EAAE;AAAEC,YAAAA,QAAAA,EAAU;AAAG;AAAE,KAAA;IAChJ,OAAO;QAAEC,OAAAA,EAASC,cAAAA;QAAgBC,eAAAA,EAAiBC,uBAAAA;QAAyBC,eAAAA,EAAiBC,eAAAA;QAAyBC,OAAAA,EAASC,eAAAA;QAAiBC,UAAAA,EAAY;AAACf,YAAAA;AAAQ;AAAC,KAAA;AAC1K;AAEA,sGACO,MAAMgB,mBAAAA,GAA0C;IAAEC,IAAAA,EAAMC,kBAAAA,CAAmBC,WAAW,CAACF;AAAK;AAEnG,0GACO,MAAMG,uBAAAA,GAA0B,KAAO;AAAEC,QAAAA,SAAAA,EAAW,IAAIC,yBAAAA,CAA0BC,iBAAAA,CAAAA;QAAoBC,UAAAA,EAAYN;AAAmB,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 bookingsCategory = "Business / Bookings";
|
|
5
|
+
export declare const thumbnailOf: (templateName: string) => string;
|
|
6
|
+
export declare const bookingsMetadata: (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace' | 'Calendar' | 'Timeline' | 'Inbox' | 'Profile' | 'Wizard', 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 BookingsScreenTemplate = ScreenTemplate;
|
|
15
|
+
export type BookingsDialogTemplate = DialogTemplate;
|
|
16
|
+
//# sourceMappingURL=bookingsParts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsParts.d.ts","sourceRoot":"","sources":["../../bookingsParts.ts"],"names":[],"mappings":"A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,MAAM,sBAAsB,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 { bookingsTemplateProvenance } 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 bookingsCategory = 'Business / Bookings';
|
|
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 bookingsMetadata = (name, type, scopes)=>({
|
|
11
|
+
...bookingsTemplateProvenance,
|
|
12
|
+
type,
|
|
13
|
+
category: bookingsCategory,
|
|
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, bookingsCategory, bookingsMetadata, closesDialog, goesTo, opensDialog, opensDialogOnSelect, opensRecordOnSelect, thumbnailOf, withBehaviors };
|
|
133
|
+
//# sourceMappingURL=bookingsParts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsParts.js","sources":["../../bookingsParts.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 { bookingsTemplateProvenance } 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 bookingsCategory = 'Business / Bookings';\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 bookingsMetadata = (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace' | 'Calendar' | 'Timeline' | 'Inbox' | 'Profile' | 'Wizard', scopes: TemplateScope[]): TemplateMetadata =>\n ({ ...bookingsTemplateProvenance, type, category: bookingsCategory, 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 BookingsScreenTemplate = ScreenTemplate;\nexport type BookingsDialogTemplate = DialogTemplate;\n"],"names":["bookingsCategory","thumbnailOf","templateName","bookingsMetadata","name","type","scopes","bookingsTemplateProvenance","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,gBAAAA,GAAmB;AAEhC,qDACO,MAAMC,WAAAA,GAAc,CAACC,YAAAA,GAAiC,CAAC,WAAW,EAAEA,YAAAA,CAAa,IAAI;AAE5F,4JACO,MAAMC,gBAAAA,GAAmB,CAACC,IAAAA,EAAcC,IAAAA,EAA8IC,UACxL;AAAE,QAAA,GAAGC,0BAA0B;AAAEF,QAAAA,IAAAA;QAAMG,QAAAA,EAAUR,gBAAAA;AAAkBS,QAAAA,SAAAA,EAAWR,WAAAA,CAAYG,IAAAA,CAAAA;AA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BI,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,41 @@
|
|
|
1
|
+
import { BindingExpression } from '@cratis/scene.model';
|
|
2
|
+
export declare const fromQuery: (query: string, path?: string) => BindingExpression;
|
|
3
|
+
export declare const BookingsQuery: {
|
|
4
|
+
readonly Settings: 'BookingsSettings';
|
|
5
|
+
readonly BookingEvents: 'BookingEvents';
|
|
6
|
+
readonly BookingEventColumns: 'BookingEventColumns';
|
|
7
|
+
readonly BookingWizardSteps: 'BookingWizardSteps';
|
|
8
|
+
readonly BookingResourceSections: 'BookingResourceSections';
|
|
9
|
+
readonly BookingWhenSections: 'BookingWhenSections';
|
|
10
|
+
readonly BookingDetailSections: 'BookingDetailSections';
|
|
11
|
+
readonly BookingReviewSections: 'BookingReviewSections';
|
|
12
|
+
readonly BookingReviewValues: 'BookingReviewValues';
|
|
13
|
+
readonly FormErrors: 'BookingsFormErrors';
|
|
14
|
+
};
|
|
15
|
+
export declare enum BookingsEntityKind {
|
|
16
|
+
Booking = "Booking",
|
|
17
|
+
Resource = "Resource"
|
|
18
|
+
}
|
|
19
|
+
export declare const bookingsEntityPlural: Record<BookingsEntityKind, string>;
|
|
20
|
+
export declare const bookingsQueriesOf: (entity: BookingsEntityKind) => {
|
|
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
|
+
tabs: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const localeOfData: {
|
|
35
|
+
locale: BindingExpression;
|
|
36
|
+
};
|
|
37
|
+
export declare const currencyOfData: {
|
|
38
|
+
locale: BindingExpression;
|
|
39
|
+
currency: BindingExpression;
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=bookingsQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsQueries.d.ts","sourceRoot":"","sources":["../../bookingsQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qBAAqB,CAAC;AAM3E,eAAO,MAAM,SAAS,UAAW,MAAM,oBAAc,iBAA2E,CAAC;AAGjI,eAAO,MAAM,aAAa;aAEtB,QAAQ,EAAE,kBAAkB;aAC5B,aAAa,EAAE,eAAe;aAC9B,mBAAmB,EAAE,qBAAqB;aAC1C,kBAAkB,EAAE,oBAAoB;aACxC,uBAAuB,EAAE,yBAAyB;aAClD,mBAAmB,EAAE,qBAAqB;aAC1C,qBAAqB,EAAE,uBAAuB;aAC9C,qBAAqB,EAAE,uBAAuB;aAC9C,mBAAmB,EAAE,qBAAqB;aAC1C,UAAU,EAAE,oBAAoB;CAC1B,CAAC;AAGX,oBAAY,kBAAkB;IAC1B,OAAO,YAAY;IACnB,QAAQ,aAAa;CACxB;AAGD,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAGnE,CAAC;AAMF,eAAO,MAAM,iBAAiB,WAAY,kBAAkB;IACxD,IAAI;IACJ,OAAO;IACP,YAAY;IACZ,KAAK;IACL,aAAa;IACb,SAAS;IACT,aAAa;IACb,MAAM;IACN,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,IAAI;CACN,CAAC;AAGH,eAAO,MAAM,YAAY;IAAK,MAAM;CAAiD,CAAC;AACtF,eAAO,MAAM,cAAc;;;CAAiF,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
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. A bookings 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 BookingsQuery = {
|
|
14
|
+
/** One row: the `locale` and `currency` the figures and dates are formatted in. */ Settings: 'BookingsSettings',
|
|
15
|
+
BookingEvents: 'BookingEvents',
|
|
16
|
+
BookingEventColumns: 'BookingEventColumns',
|
|
17
|
+
BookingWizardSteps: 'BookingWizardSteps',
|
|
18
|
+
BookingResourceSections: 'BookingResourceSections',
|
|
19
|
+
BookingWhenSections: 'BookingWhenSections',
|
|
20
|
+
BookingDetailSections: 'BookingDetailSections',
|
|
21
|
+
BookingReviewSections: 'BookingReviewSections',
|
|
22
|
+
BookingReviewValues: 'BookingReviewValues',
|
|
23
|
+
FormErrors: 'BookingsFormErrors'
|
|
24
|
+
};
|
|
25
|
+
/** The entities a template is made for. */ var BookingsEntityKind = /*#__PURE__*/ function(BookingsEntityKind) {
|
|
26
|
+
BookingsEntityKind["Booking"] = "Booking";
|
|
27
|
+
BookingsEntityKind["Resource"] = "Resource";
|
|
28
|
+
return BookingsEntityKind;
|
|
29
|
+
}({});
|
|
30
|
+
/** The read model (and so the shape) the records of each entity are queried from. */ const bookingsEntityPlural = {
|
|
31
|
+
["Booking"]: 'Bookings',
|
|
32
|
+
["Resource"]: 'Resources'
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 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
|
|
36
|
+
* list, its saved views and column choices, the selection, the sections of the quick form, and what the record page shows.
|
|
37
|
+
*/ const bookingsQueriesOf = (entity)=>({
|
|
38
|
+
rows: bookingsEntityPlural[entity],
|
|
39
|
+
columns: `${entity}Columns`,
|
|
40
|
+
filterFields: `${entity}FilterFields`,
|
|
41
|
+
views: `${entity}Views`,
|
|
42
|
+
columnChoices: `${entity}ColumnChoices`,
|
|
43
|
+
selection: `${entity}Selection`,
|
|
44
|
+
quickSections: `${entity}QuickSections`,
|
|
45
|
+
record: `${entity}Record`,
|
|
46
|
+
sections: `${entity}Sections`,
|
|
47
|
+
summary: `${entity}Summary`,
|
|
48
|
+
activity: `${entity}Activity`,
|
|
49
|
+
tabs: `${entity}Tabs`
|
|
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(BookingsQuery.Settings, '0.locale')
|
|
53
|
+
};
|
|
54
|
+
const currencyOfData = {
|
|
55
|
+
...localeOfData,
|
|
56
|
+
currency: fromQuery(BookingsQuery.Settings, '0.currency')
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { BookingsEntityKind, BookingsQuery, bookingsEntityPlural, bookingsQueriesOf, currencyOfData, fromQuery, localeOfData };
|
|
60
|
+
//# sourceMappingURL=bookingsQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsQueries.js","sources":["../../bookingsQueries.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. A bookings 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 BookingsQuery = {\n /** One row: the `locale` and `currency` the figures and dates are formatted in. */\n Settings: 'BookingsSettings',\n BookingEvents: 'BookingEvents',\n BookingEventColumns: 'BookingEventColumns',\n BookingWizardSteps: 'BookingWizardSteps',\n BookingResourceSections: 'BookingResourceSections',\n BookingWhenSections: 'BookingWhenSections',\n BookingDetailSections: 'BookingDetailSections',\n BookingReviewSections: 'BookingReviewSections',\n BookingReviewValues: 'BookingReviewValues',\n FormErrors: 'BookingsFormErrors',\n} as const;\n\n/** The entities a template is made for. */\nexport enum BookingsEntityKind {\n Booking = 'Booking',\n Resource = 'Resource',\n}\n\n/** The read model (and so the shape) the records of each entity are queried from. */\nexport const bookingsEntityPlural: Record<BookingsEntityKind, string> = {\n [BookingsEntityKind.Booking]: 'Bookings',\n [BookingsEntityKind.Resource]: 'Resources',\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 bookingsQueriesOf = (entity: BookingsEntityKind) => ({\n rows: bookingsEntityPlural[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 tabs: `${entity}Tabs`,\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(BookingsQuery.Settings, '0.locale') };\nexport const currencyOfData = { ...localeOfData, currency: fromQuery(BookingsQuery.Settings, '0.currency') };\n"],"names":["fromQuery","query","path","kind","BindingSourceKind","QueryResult","BookingsQuery","Settings","BookingEvents","BookingEventColumns","BookingWizardSteps","BookingResourceSections","BookingWhenSections","BookingDetailSections","BookingReviewSections","BookingReviewValues","FormErrors","BookingsEntityKind","bookingsEntityPlural","bookingsQueriesOf","entity","rows","columns","filterFields","views","columnChoices","selection","quickSections","record","sections","summary","activity","tabs","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,aAAAA,GAAgB;AACzB,wFACAC,QAAAA,EAAU,kBAAA;IACVC,aAAAA,EAAe,eAAA;IACfC,mBAAAA,EAAqB,qBAAA;IACrBC,kBAAAA,EAAoB,oBAAA;IACpBC,u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AUM,aAAAA,CAAcC,QAAQ,EAAE,UAAA;AAAY;MACvE4B,cAAAA,GAAiB;AAAE,IAAA,GAAGF,YAAY;IAAEG,QAAAA,EAAUpC,SAAAA,CAAUM,aAAAA,CAAcC,QAAQ,EAAE,YAAA;AAAc;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BlueprintScreen } from '@cratis/scene.model';
|
|
2
|
+
export interface BookingsScreenDefinition extends BlueprintScreen {
|
|
3
|
+
template: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const bookingsScreenDefinitions: BookingsScreenDefinition[];
|
|
7
|
+
//# sourceMappingURL=bookingsScreenSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsScreenSet.d.ts","sourceRoot":"","sources":["../../bookingsScreenSet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,MAAM,WAAW,wBAAyB,SAAQ,eAAe;IAC7D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,yBAAyB,EAAE,wBAAwB,EAM/D,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 bookingsScreenDefinitions = [
|
|
7
|
+
{
|
|
8
|
+
name: 'bookings.calendar',
|
|
9
|
+
title: 'Calendar',
|
|
10
|
+
template: 'BookingsCalendar',
|
|
11
|
+
order: 0,
|
|
12
|
+
description: 'Every booking on a calendar: who has what, and when.'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'bookings.list',
|
|
16
|
+
title: 'Bookings',
|
|
17
|
+
template: 'BookingsList',
|
|
18
|
+
order: 1,
|
|
19
|
+
description: 'Every booking with its resource, time and status.'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'bookings.record',
|
|
23
|
+
title: 'Booking',
|
|
24
|
+
template: 'BookingPage',
|
|
25
|
+
parent: 'bookings.list',
|
|
26
|
+
description: 'One booking: key facts, its attendees, its extras and its activity.'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'bookings.resources',
|
|
30
|
+
title: 'Resources',
|
|
31
|
+
template: 'ResourcesList',
|
|
32
|
+
order: 2,
|
|
33
|
+
description: 'The rooms, equipment and vehicles that can be booked.'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'bookings.new',
|
|
37
|
+
title: 'New booking',
|
|
38
|
+
template: 'NewBookingWizard',
|
|
39
|
+
order: 3,
|
|
40
|
+
description: 'Book a room, equipment or a vehicle in four short steps.'
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export { bookingsScreenDefinitions };
|
|
45
|
+
//# sourceMappingURL=bookingsScreenSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookingsScreenSet.js","sources":["../../bookingsScreenSet.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 (`bookings.list.record` would be the `record` feature of `list`). */\nexport interface BookingsScreenDefinition 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 bookingsScreenDefinitions: BookingsScreenDefinition[] = [\n { name: 'bookings.calendar', title: 'Calendar', template: 'BookingsCalendar', order: 0, description: 'Every booking on a calendar: who has what, and when.' },\n { name: 'bookings.list', title: 'Bookings', template: 'BookingsList', order: 1, description: 'Every booking with its resource, time and status.' },\n { name: 'bookings.record', title: 'Booking', template: 'BookingPage', parent: 'bookings.list', description: 'One booking: key facts, its attendees, its extras and its activity.' },\n { name: 'bookings.resources', title: 'Resources', template: 'ResourcesList', order: 2, description: 'The rooms, equipment and vehicles that can be booked.' },\n { name: 'bookings.new', title: 'New booking', template: 'NewBookingWizard', order: 3, description: 'Book a room, equipment or a vehicle in four short steps.' },\n];\n"],"names":["bookingsScreenDefinitions","name","title","template","order","description","parent"],"mappings":"AAAA;AACA;AAUA;;;UAIaA,yBAAAA,GAAwD;AACjE,IAAA;QAAEC,IAAAA,EAAM,mBAAA;QAAqBC,KAAAA,EAAO,UAAA;QAAYC,QAAAA,EAAU,kBAAA;QAAoBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAuD,KAAA;AAC5J,IAAA;QAAEJ,IAAAA,EAAM,eAAA;QAAiBC,KAAAA,EAAO,UAAA;QAAYC,QAAAA,EAAU,cAAA;QAAgBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAoD,KAAA;AACjJ,IAAA;QAAEJ,IAAAA,EAAM,iBAAA;QAAmBC,KAAAA,EAAO,SAAA;QAAWC,QAAAA,EAAU,aAAA;QAAeG,MAAAA,EAAQ,eAAA;QAAiBD,WAAAA,EAAa;AAAsE,KAAA;AAClL,IAAA;QAAEJ,IAAAA,EAAM,oBAAA;QAAsBC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,eAAA;QAAiBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAwD,KAAA;AAC5J,IAAA;QAAEJ,IAAAA,EAAM,cAAA;QAAgBC,KAAAA,EAAO,aAAA;QAAeC,QAAAA,EAAU,kBAAA;QAAoBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA2D;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './packageName';
|
|
2
|
+
export * from './templateProvenance';
|
|
3
|
+
export * from './bookingsQueries';
|
|
4
|
+
export * from './bookingsParts';
|
|
5
|
+
export * from './bookingsScreenSet';
|
|
6
|
+
export * from './templates';
|
|
7
|
+
export * from './screens';
|
|
8
|
+
export * from './navigation';
|
|
9
|
+
export * from './manifest';
|
|
10
|
+
export * from './blueprint';
|
|
11
|
+
export * from './bookingsApplication';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAGA,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { bookingsBlueprintName } from './packageName.js';
|
|
2
|
+
export { bookingsTemplateProvenance } from './templateProvenance.js';
|
|
3
|
+
export { BookingsEntityKind, BookingsQuery, bookingsEntityPlural, bookingsQueriesOf, currencyOfData, fromQuery, localeOfData } from './bookingsQueries.js';
|
|
4
|
+
export { actionButton, bookingsCategory, bookingsMetadata, closesDialog, goesTo, opensDialog, opensDialogOnSelect, opensRecordOnSelect, thumbnailOf, withBehaviors } from './bookingsParts.js';
|
|
5
|
+
export { bookingsScreenDefinitions } from './bookingsScreenSet.js';
|
|
6
|
+
export { bookingsScreenTemplates } from './templates/index.js';
|
|
7
|
+
export { bookingsScreens } from './screens/index.js';
|
|
8
|
+
export { bookingsModule, bookingsNavigation, bookingsStructure } from './navigation.js';
|
|
9
|
+
export { bookingsBlueprintManifest } from './manifest.js';
|
|
10
|
+
export { bookingsBlueprint } from './blueprint.js';
|
|
11
|
+
export { bookingsApplication, bookingsComposition, bookingsDefaultSampleDataId, bookingsNavigationModel } from './bookingsApplication.js';
|
|
12
|
+
export { bookingPageTemplate } from './templates/recordTemplates.js';
|
|
13
|
+
export { bookingsCalendarTemplate } from './templates/calendarTemplate.js';
|
|
14
|
+
export { bookingsDialogs as bookingsDialogTemplates, bookingsDialogs } from './templates/formTemplates.js';
|
|
15
|
+
export { bookingsListTemplate, resourcesListTemplate } from './templates/listTemplates.js';
|
|
16
|
+
export { component, panel } from '@cratis/scene.blueprint.default';
|
|
17
|
+
export { newBookingWizardTemplate } from './templates/wizardTemplate.js';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../manifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAe,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYhE,eAAO,MAAM,yBAAyB,EAAE,YAyBvC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { PackageKind } from '@cratis/scene.model';
|
|
2
|
+
import { bookingsBlueprintName } from './packageName.js';
|
|
3
|
+
import { bookingsScreenDefinitions } from './bookingsScreenSet.js';
|
|
4
|
+
import { bookingsScreenTemplates } from './templates/index.js';
|
|
5
|
+
import { bookingsDialogs } from './templates/formTemplates.js';
|
|
6
|
+
|
|
7
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
8
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
9
|
+
const description = 'Bookings for shared rooms, equipment and vehicles: a booking calendar, a booking list, a booking page, the resources and a wizard that books one in four steps.';
|
|
10
|
+
/**
|
|
11
|
+
* This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,
|
|
12
|
+
* components and themes - it ships none of its own - and adds what is specific to the domain: templates, a ready-to-use screen set, sample data
|
|
13
|
+
* and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what "update available" compares.
|
|
14
|
+
*/ const bookingsBlueprintManifest = {
|
|
15
|
+
name: bookingsBlueprintName,
|
|
16
|
+
version: '1.0.0',
|
|
17
|
+
kind: PackageKind.Blueprint,
|
|
18
|
+
dependencies: [
|
|
19
|
+
{
|
|
20
|
+
name: 'Cratis.Blueprint.Default',
|
|
21
|
+
versionRange: '^1.0.0'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
components: [],
|
|
25
|
+
layouts: [],
|
|
26
|
+
screenTemplates: bookingsScreenTemplates.map((template)=>template.name),
|
|
27
|
+
dialogTemplates: bookingsDialogs.map((template)=>template.name),
|
|
28
|
+
themes: [],
|
|
29
|
+
displayName: 'Bookings',
|
|
30
|
+
description,
|
|
31
|
+
module: '@cratis/scene.blueprint.bookings',
|
|
32
|
+
license: 'MIT',
|
|
33
|
+
licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
|
|
34
|
+
sampleData: [
|
|
35
|
+
{
|
|
36
|
+
id: 'bookings-en',
|
|
37
|
+
title: 'Bookings · English',
|
|
38
|
+
locale: 'en-GB',
|
|
39
|
+
path: 'sampleData/bookings-en.json',
|
|
40
|
+
description: 'English booking data: twelve bookings of eight rooms, equipment and vehicles from requested to completed, one booking\'s attendees and extras, and the wizard steps.',
|
|
41
|
+
columns: [
|
|
42
|
+
'Booking',
|
|
43
|
+
'Resource',
|
|
44
|
+
'Booked by',
|
|
45
|
+
'Date',
|
|
46
|
+
'From'
|
|
47
|
+
],
|
|
48
|
+
statusColumn: 'Status',
|
|
49
|
+
statuses: {
|
|
50
|
+
good: [
|
|
51
|
+
'Confirmed',
|
|
52
|
+
'Checked in',
|
|
53
|
+
'Completed',
|
|
54
|
+
'Available'
|
|
55
|
+
],
|
|
56
|
+
pending: [
|
|
57
|
+
'Requested',
|
|
58
|
+
'Booked'
|
|
59
|
+
],
|
|
60
|
+
bad: [
|
|
61
|
+
'Cancelled',
|
|
62
|
+
'Maintenance'
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
blueprint: {
|
|
68
|
+
domain: 'bookings',
|
|
69
|
+
description,
|
|
70
|
+
thumbnail: 'thumbnails/bookings.svg',
|
|
71
|
+
screenSet: bookingsScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
|
|
72
|
+
name,
|
|
73
|
+
title,
|
|
74
|
+
description: screenDescription,
|
|
75
|
+
template,
|
|
76
|
+
...parent === undefined ? {} : {
|
|
77
|
+
parent
|
|
78
|
+
},
|
|
79
|
+
...order === undefined ? {} : {
|
|
80
|
+
order
|
|
81
|
+
}
|
|
82
|
+
})),
|
|
83
|
+
defaultSampleData: 'bookings-en'
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export { bookingsBlueprintManifest };
|
|
88
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sources":["../../manifest.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { bookingsBlueprintName } from './packageName';\nimport { bookingsScreenDefinitions } from './bookingsScreenSet';\nimport { bookingsDialogTemplates, bookingsScreenTemplates } from './templates';\n\nconst description = 'Bookings for shared rooms, equipment and vehicles: a booking calendar, a booking list, a booking page, the resources and a wizard that books one in four steps.';\n\n/**\n * This blueprint's declaration. A domain blueprint depends on the foundation set (`Cratis.Blueprint.Default`) and reuses its layouts, slots,\n * components and themes - it ships none of its own - and adds what is specific to the domain: templates, a ready-to-use screen set, sample data\n * and thumbnails. The package `version` is the blueprint's version: it is what a template reference pins and what \"update available\" compares.\n */\nexport const bookingsBlueprintManifest: ScenePackage = {\n name: bookingsBlueprintName,\n version: '1.0.0',\n kind: PackageKind.Blueprint,\n dependencies: [{ name: 'Cratis.Blueprint.Default', versionRange: '^1.0.0' }],\n components: [],\n layouts: [],\n screenTemplates: bookingsScreenTemplates.map(template => template.name),\n dialogTemplates: bookingsDialogTemplates.map(template => template.name),\n themes: [],\n displayName: 'Bookings',\n description,\n module: '@cratis/scene.blueprint.bookings',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n sampleData: [{ id: 'bookings-en', title: 'Bookings · English', locale: 'en-GB', path: 'sampleData/bookings-en.json', description: 'English booking data: twelve bookings of eight rooms, equipment and vehicles from requested to completed, one booking\\'s attendees and extras, and the wizard steps.', columns: ['Booking', 'Resource', 'Booked by', 'Date', 'From'], statusColumn: 'Status', statuses: { good: ['Confirmed', 'Checked in', 'Completed', 'Available'], pending: ['Requested', 'Booked'], bad: ['Cancelled', 'Maintenance'] } }],\n blueprint: {\n domain: 'bookings',\n description,\n thumbnail: 'thumbnails/bookings.svg',\n screenSet: bookingsScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order }) => ({\n name, title, description: screenDescription, template, ...(parent === undefined ? {} : { parent }), ...(order === undefined ? {} : { order }),\n })),\n defaultSampleData: 'bookings-en',\n },\n};\n"],"names":["description","bookingsBlueprintManifest","name","bookingsBlueprintName","version","kind","PackageKind","Blueprint","dependencies","versionRange","components","layouts","screenTemplates","bookingsScreenTemplates","map","template","dialogTemplates","bookingsDialogTemplates","themes","displayName","module","license","licenseUrl","sampleData","id","title","locale","path","columns","statusColumn","statuses","good","pending","bad","blueprint","domain","thumbnail","screenSet","bookingsScreenDefinitions","screenDescription","parent","order","undefined","defaultSampleData"],"mappings":";;;;;;AAAA;AACA;AAOA,MAAMA,WAAAA,GAAc,iKAAA;AAEpB;;;;UAKaC,yBAAAA,GAA0C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W;QACPC,MAAAA,EAAQ,UAAA;AACRnC,QAAAA,WAAAA;QACAoC,SAAAA,EAAW,yBAAA;AACXC,QAAAA,SAAAA,EAAWC,0BAA0BxB,GAAG,CAAC,CAAC,EAAEZ,IAAI,EAAEuB,KAAK,EAAEzB,aAAauC,iBAAiB,EAAExB,QAAQ,EAAEyB,MAAM,EAAEC,KAAK,EAAE,IAAM;AACpHvC,gBAAAA,IAAAA;AAAMuB,gBAAAA,KAAAA;gBAAOzB,WAAAA,EAAauC,iBAAAA;AAAmBxB,gBAAAA,QAAAA;gBAAU,GAAIyB,MAAAA,KAAWE,SAAAA,GAAY,EAAC,GAAI;AAAEF,oBAAAA;iBAAQ;gBAAG,GAAIC,KAAAA,KAAUC,SAAAA,GAAY,EAAC,GAAI;AAAED,oBAAAA;;aACzI,CAAA,CAAA;QACAE,iBAAAA,EAAmB;AACvB;AACJ;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApplicationStructure, NavigationModel } from '@cratis/scene.model';
|
|
2
|
+
export declare const bookingsModule = "bookings";
|
|
3
|
+
export declare const bookingsStructure: ApplicationStructure;
|
|
4
|
+
export declare const bookingsNavigation: NavigationModel;
|
|
5
|
+
//# sourceMappingURL=navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../navigation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAA8C,MAAM,qBAAqB,CAAC;AAIxH,eAAO,MAAM,cAAc,aAAa,CAAC;AAMzC,eAAO,MAAM,iBAAiB,EAAE,oBAgB5B,CAAC;AAML,eAAO,MAAM,kBAAkB,EAAE,eAkBhC,CAAC"}
|