@cratis/scene.blueprint.approvals 0.0.0-stage → 4.53.1
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/approvalsApplication.ts +28 -0
- package/approvalsParts.ts +50 -0
- package/approvalsQueries.ts +58 -0
- package/approvalsScreenSet.ts +24 -0
- package/blueprint.ts +16 -0
- package/blueprintCatalog.json +171 -0
- package/dist/cjs/approvalsApplication.js +49 -0
- package/dist/cjs/approvalsApplication.js.map +1 -0
- package/dist/cjs/approvalsParts.js +131 -0
- package/dist/cjs/approvalsParts.js.map +1 -0
- package/dist/cjs/approvalsQueries.js +68 -0
- package/dist/cjs/approvalsQueries.js.map +1 -0
- package/dist/cjs/approvalsScreenSet.js +61 -0
- package/dist/cjs/approvalsScreenSet.js.map +1 -0
- package/dist/cjs/blueprint.js +19 -0
- package/dist/cjs/blueprint.js.map +1 -0
- package/dist/cjs/index.js +67 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/manifest.js +71 -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 +23 -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/formTemplates.js +111 -0
- package/dist/cjs/templates/formTemplates.js.map +1 -0
- package/dist/cjs/templates/index.js +31 -0
- package/dist/cjs/templates/index.js.map +1 -0
- package/dist/cjs/templates/listTemplates.js +221 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -0
- package/dist/cjs/templates/recordTemplates.js +97 -0
- package/dist/cjs/templates/recordTemplates.js.map +1 -0
- package/dist/cjs/templates/wizardTemplate.js +77 -0
- package/dist/cjs/templates/wizardTemplate.js.map +1 -0
- package/dist/esm/approvalsApplication.d.ts +10 -0
- package/dist/esm/approvalsApplication.d.ts.map +1 -0
- package/dist/esm/approvalsApplication.js +44 -0
- package/dist/esm/approvalsApplication.js.map +1 -0
- package/dist/esm/approvalsParts.d.ts +13 -0
- package/dist/esm/approvalsParts.d.ts.map +1 -0
- package/dist/esm/approvalsParts.js +114 -0
- package/dist/esm/approvalsParts.js.map +1 -0
- package/dist/esm/approvalsQueries.d.ts +51 -0
- package/dist/esm/approvalsQueries.d.ts.map +1 -0
- package/dist/esm/approvalsQueries.js +63 -0
- package/dist/esm/approvalsQueries.js.map +1 -0
- package/dist/esm/approvalsScreenSet.d.ts +7 -0
- package/dist/esm/approvalsScreenSet.d.ts.map +1 -0
- package/dist/esm/approvalsScreenSet.js +59 -0
- package/dist/esm/approvalsScreenSet.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 +17 -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 +69 -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 +21 -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/formTemplates.d.ts +6 -0
- package/dist/esm/templates/formTemplates.d.ts.map +1 -0
- package/dist/esm/templates/formTemplates.js +106 -0
- package/dist/esm/templates/formTemplates.js.map +1 -0
- package/dist/esm/templates/index.d.ts +7 -0
- package/dist/esm/templates/index.d.ts.map +1 -0
- package/dist/esm/templates/index.js +20 -0
- package/dist/esm/templates/index.js.map +1 -0
- package/dist/esm/templates/listTemplates.d.ts +6 -0
- package/dist/esm/templates/listTemplates.d.ts.map +1 -0
- package/dist/esm/templates/listTemplates.js +216 -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 +95 -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 +75 -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 +44 -0
- package/navigation.ts +54 -0
- package/package.json +78 -4
- package/packageName.ts +5 -0
- package/sampleData/approvals-general.json +1269 -0
- package/sampleData/approvals-nordic.json +1269 -0
- package/screens/index.ts +21 -0
- package/templateProvenance.ts +15 -0
- package/templates/formTemplates.ts +61 -0
- package/templates/index.ts +19 -0
- package/templates/listTemplates.ts +116 -0
- package/templates/recordTemplates.ts +45 -0
- package/templates/wizardTemplate.ts +33 -0
- package/thumbnails/AllRequests.svg +13 -0
- package/thumbnails/ApprovalInbox.svg +23 -0
- package/thumbnails/DecisionDialog.svg +11 -0
- package/thumbnails/MyRequests.svg +13 -0
- package/thumbnails/NewRequestWizard.svg +14 -0
- package/thumbnails/RequestPage.svg +11 -0
- package/thumbnails/RequestTypeEditForm.svg +14 -0
- package/thumbnails/RequestTypeQuickCreate.svg +11 -0
- package/thumbnails/RequestTypes.svg +13 -0
- package/thumbnails/approvals.svg +9 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ApplicationStructureIndex } from '@cratis/scene.engine';
|
|
2
|
+
import { ApplicationDocument, CompositionOptions } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export declare const approvalsDefaultSampleDataId = "approvals-general";
|
|
4
|
+
export declare function approvalsApplication(sampleData?: string): ApplicationDocument;
|
|
5
|
+
export declare const approvalsComposition: CompositionOptions;
|
|
6
|
+
export declare const approvalsNavigationModel: () => {
|
|
7
|
+
structure: ApplicationStructureIndex;
|
|
8
|
+
navigation: import("@cratis/scene.model").NavigationModel;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=approvalsApplication.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsApplication.d.ts","sourceRoot":"","sources":["../../approvalsApplication.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAkC,MAAM,iCAAiC,CAAC;AAM1H,eAAO,MAAM,4BAA4B,sBAAsB,CAAC;AAOhE,wBAAgB,oBAAoB,CAAC,UAAU,GAAE,MAAqC,GAAG,mBAAmB,CAG3G;AAGD,eAAO,MAAM,oBAAoB,EAAE,kBAAmE,CAAC;AAGvG,eAAO,MAAM,wBAAwB;IAAY,SAAS;IAAqD,UAAU;CAAwB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApplicationStructureIndex } from '@cratis/scene.engine';
|
|
2
|
+
import { previewProfile, defaultLayouts } from '@cratis/scene.blueprint.default';
|
|
3
|
+
import { approvalsNavigation, approvalsStructure } from './navigation.js';
|
|
4
|
+
import { approvalsScreens } from './screens/index.js';
|
|
5
|
+
import { approvalsScreenTemplates } from './templates/index.js';
|
|
6
|
+
import { approvalsDialogTemplates } 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 approvalsDefaultSampleDataId = 'approvals-general';
|
|
11
|
+
/**
|
|
12
|
+
* The example application of the blueprint: the foundation's layouts, the approvals application's templates and dialogs and its seven 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/Approvals/approvals.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.
|
|
15
|
+
*/ function approvalsApplication(sampleData = approvalsDefaultSampleDataId) {
|
|
16
|
+
const profile = {
|
|
17
|
+
...previewProfile(undefined),
|
|
18
|
+
name: 'Approvals',
|
|
19
|
+
sampleData: {
|
|
20
|
+
activePack: sampleData,
|
|
21
|
+
mappings: [],
|
|
22
|
+
bindings: []
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
layouts: defaultLayouts,
|
|
27
|
+
screenTemplates: approvalsScreenTemplates,
|
|
28
|
+
dialogTemplates: approvalsDialogTemplates,
|
|
29
|
+
screens: approvalsScreens,
|
|
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 approvalsComposition = {
|
|
36
|
+
logo: approvalsNavigation.application.logo
|
|
37
|
+
};
|
|
38
|
+
/** The structure and navigation the shell's regions show and the items' destinations resolve against. */ const approvalsNavigationModel = ()=>({
|
|
39
|
+
structure: new ApplicationStructureIndex(approvalsStructure),
|
|
40
|
+
navigation: approvalsNavigation
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { approvalsApplication, approvalsComposition, approvalsDefaultSampleDataId, approvalsNavigationModel };
|
|
44
|
+
//# sourceMappingURL=approvalsApplication.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsApplication.js","sources":["../../approvalsApplication.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 { approvalsNavigation, approvalsStructure } from './navigation';\nimport { approvalsScreens } from './screens';\nimport { approvalsDialogTemplates, approvalsScreenTemplates } from './templates';\n\n/** The id of the sample-data pack a new application starts with. */\nexport const approvalsDefaultSampleDataId = 'approvals-general';\n\n/**\n * The example application of the blueprint: the foundation's layouts, the approvals application's templates and dialogs and its seven 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/Approvals/approvals.play`) declares in Screenplay: the document, the structure and the navigation are the three things an application is made of.\n */\nexport function approvalsApplication(sampleData: string = approvalsDefaultSampleDataId): ApplicationDocument {\n const profile: UiProfile = { ...previewProfile(undefined), name: 'Approvals', sampleData: { activePack: sampleData, mappings: [], bindings: [] } };\n return { layouts: defaultLayouts, screenTemplates: approvalsScreenTemplates, dialogTemplates: approvalsDialogTemplates, screens: approvalsScreens, uiProfiles: [profile] };\n}\n\n/** What a host composes the screens with: the application's logo, which the shell's topbar shows. */\nexport const approvalsComposition: CompositionOptions = { logo: approvalsNavigation.application.logo };\n\n/** The structure and navigation the shell's regions show and the items' destinations resolve against. */\nexport const approvalsNavigationModel = () => ({ structure: new ApplicationStructureIndex(approvalsStructure), navigation: approvalsNavigation });\n"],"names":["approvalsDefaultSampleDataId","approvalsApplication","sampleData","profile","previewProfile","undefined","name","activePack","mappings","bindings","layouts","defaultLayouts","screenTemplates","approvalsScreenTemplates","dialogTemplates","approvalsDialogTemplates","screens","approvalsScreens","uiProfiles","approvalsComposition","logo","approvalsNavigation","application","approvalsNavigationModel","structure","ApplicationStructureIndex","approvalsStructure","navigation"],"mappings":";;;;;;;AAAA;AACA;AASA,qEACO,MAAMA,4BAAAA,GAA+B;AAE5C;;;;AAIC,IACM,SAASC,oBAAAA,CAAqBC,UAAAA,GAAqBF,4BAA4B,EAAA;AAClF,IAAA,MAAMG,OAAAA,GAAqB;AAAE,QAAA,GAAGC,eAAeC,SAAAA,CAAU;QAAEC,IAAAA,EAAM,WAAA;QAAaJ,UAAAA,EAAY;YAAEK,UAAAA,EAAYL,UAAAA;AAAYM,YAAAA,QAAAA,EAAU,EAAE;AAAEC,YAAAA,QAAAA,EAAU;AAAG;AAAE,KAAA;IACjJ,OAAO;QAAEC,OAAAA,EAASC,cAAAA;QAAgBC,eAAAA,EAAiBC,wBAAAA;QAA0BC,eAAAA,EAAiBC,wBAAAA;QAA0BC,OAAAA,EAASC,gBAAAA;QAAkBC,UAAAA,EAAY;AAACf,YAAAA;AAAQ;AAAC,KAAA;AAC7K;AAEA,sGACO,MAAMgB,oBAAAA,GAA2C;IAAEC,IAAAA,EAAMC,mBAAAA,CAAoBC,WAAW,CAACF;AAAK;AAErG,0GACO,MAAMG,wBAAAA,GAA2B,KAAO;AAAEC,QAAAA,SAAAA,EAAW,IAAIC,yBAAAA,CAA0BC,kBAAAA,CAAAA;QAAqBC,UAAAA,EAAYN;AAAoB,KAAA;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Behavior, ExternalComponent, SceneElement, TemplateMetadata, TemplateScope } from '@cratis/scene.model';
|
|
2
|
+
import { component, panel } from '@cratis/scene.blueprint.default';
|
|
3
|
+
export { component, panel };
|
|
4
|
+
export declare const approvalsCategory = "Business / Approvals";
|
|
5
|
+
export declare const thumbnailOf: (templateName: string) => string;
|
|
6
|
+
export declare const approvalsMetadata: (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace' | '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 closesDialog: () => Behavior[];
|
|
12
|
+
export declare const withBehaviors: <T extends SceneElement>(element: T, behaviors: Behavior[]) => T;
|
|
13
|
+
//# sourceMappingURL=approvalsParts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsParts.d.ts","sourceRoot":"","sources":["../../approvalsParts.ts"],"names":[],"mappings":"AAGA,OAAO,EACH,QAAQ,EAAqB,iBAAiB,EAAmF,YAAY,EAAE,gBAAgB,EAAE,aAAa,EACjL,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGnE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;AAG5B,eAAO,MAAM,iBAAiB,yBAAyB,CAAC;AAGxD,eAAO,MAAM,WAAW,iBAAkB,MAAM,KAAG,MAA0C,CAAC;AAG9F,eAAO,MAAM,iBAAiB,SAAU,MAAM,QAAQ,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,GAAG,WAAW,GAAG,QAAQ,UAAU,aAAa,EAAE,KAAG,gBACvD,CAAC;AAGlH,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;AAGH,eAAO,MAAM,YAAY,QAAO,QAAQ,EAAmI,CAAC;AAG5K,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,YAAY,WAAW,CAAC,aAAa,QAAQ,EAAE,KAAG,CAAgC,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
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 { approvalsTemplateProvenance } 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 approvalsCategory = 'Business / Approvals';
|
|
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 approvalsMetadata = (name, type, scopes)=>({
|
|
11
|
+
...approvalsTemplateProvenance,
|
|
12
|
+
type,
|
|
13
|
+
category: approvalsCategory,
|
|
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
|
+
/** What a Cancel or Close control does: close the dialog it was opened from. */ const closesDialog = ()=>[
|
|
93
|
+
{
|
|
94
|
+
bindings: [
|
|
95
|
+
{
|
|
96
|
+
trigger: {
|
|
97
|
+
kind: InteractionTriggerKind.Click
|
|
98
|
+
},
|
|
99
|
+
actions: [
|
|
100
|
+
{
|
|
101
|
+
kind: InteractionActionKind.CloseDialog
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
/** An element with the given behaviors attached. */ const withBehaviors = (element, behaviors)=>({
|
|
109
|
+
...element,
|
|
110
|
+
behaviors
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
export { actionButton, approvalsCategory, approvalsMetadata, closesDialog, goesTo, opensDialog, opensRecordOnSelect, thumbnailOf, withBehaviors };
|
|
114
|
+
//# sourceMappingURL=approvalsParts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsParts.js","sources":["../../approvalsParts.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, ExternalComponent, InteractionActionKind, InteractionTriggerKind, NavigateAction, OpenDialogAction, SceneElement, TemplateMetadata, TemplateScope,\n} from '@cratis/scene.model';\nimport { component, panel } from '@cratis/scene.blueprint.default';\nimport { approvalsTemplateProvenance } 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 approvalsCategory = 'Business / Approvals';\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 approvalsMetadata = (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace' | 'Wizard', scopes: TemplateScope[]): TemplateMetadata =>\n ({ ...approvalsTemplateProvenance, type, category: approvalsCategory, 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/** 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\n"],"names":["approvalsCategory","thumbnailOf","templateName","approvalsMetadata","name","type","scopes","approvalsTemplateProvenance","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","closesDialog","CloseDialog","withBehaviors","element"],"mappings":";;;;;AAAA;AACA;AAUA,kGACO,MAAMA,iBAAAA,GAAoB;AAEjC,qDACO,MAAMC,WAAAA,GAAc,CAACC,YAAAA,GAAiC,CAAC,WAAW,EAAEA,YAAAA,CAAa,IAAI;AAE5F,4JACO,MAAMC,iBAAAA,GAAoB,CAACC,IAAAA,EAAcC,IAAAA,EAA8FC,UACzI;AAAE,QAAA,GAAGC,2BAA2B;AAAEF,QAAAA,IAAAA;QAAMG,QAAAA,EAAUR,iBAAAA;AAAmBS,QAAAA,SAAAA,EAAWR,WAAAA,CAAYG,IAAAA,CAAAA;AAAOE,QAAAA;AAAO,KAAA;AAE/G,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,iFACO,MAAMC,YAAAA,GAAe,IAAkB;AAAC,QAAA;YAAEpB,QAAAA,EAAU;AAAC,gBAAA;oBAAEC,OAAAA,EAAS;AAAEC,wBAAAA,IAAAA,EAAMC,uBAAuBC;AAAM,qBAAA;oBAAGC,OAAAA,EAAS;AAAC,wBAAA;AAAEH,4BAAAA,IAAAA,EAAMI,sBAAsBe;AAAY;AAAE;AAAC;AAAE;AAAC;;AAEzK,qDACO,MAAMC,gBAAgB,CAAyBC,OAAAA,EAAY5B,aAA8B;AAAE,QAAA,GAAG4B,OAAO;AAAE5B,QAAAA;AAAU,KAAA;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { BindingExpression } from '@cratis/scene.model';
|
|
2
|
+
export declare const fromQuery: (query: string, path?: string) => BindingExpression;
|
|
3
|
+
export declare const ApprovalsQuery: {
|
|
4
|
+
readonly Settings: 'ApprovalsSettings';
|
|
5
|
+
readonly Inbox: 'InboxRequests';
|
|
6
|
+
readonly InboxColumns: 'InboxColumns';
|
|
7
|
+
readonly InboxFilterFields: 'InboxFilterFields';
|
|
8
|
+
readonly InboxViews: 'InboxViews';
|
|
9
|
+
readonly MyRequests: 'MyRequests';
|
|
10
|
+
readonly MyRequestColumns: 'MyRequestColumns';
|
|
11
|
+
readonly MyRequestFilterFields: 'MyRequestFilterFields';
|
|
12
|
+
readonly MyRequestViews: 'MyRequestViews';
|
|
13
|
+
readonly MyRequestColumnChoices: 'MyRequestColumnChoices';
|
|
14
|
+
readonly MyRequestSelection: 'MyRequestSelection';
|
|
15
|
+
readonly AllRequests: 'AllRequests';
|
|
16
|
+
readonly AllRequestColumns: 'AllRequestColumns';
|
|
17
|
+
readonly AllRequestFilterFields: 'AllRequestFilterFields';
|
|
18
|
+
readonly AllRequestViews: 'AllRequestViews';
|
|
19
|
+
readonly AllRequestColumnChoices: 'AllRequestColumnChoices';
|
|
20
|
+
readonly AllRequestSelection: 'AllRequestSelection';
|
|
21
|
+
readonly RequestTypes: 'RequestTypes';
|
|
22
|
+
readonly RequestTypeColumns: 'RequestTypeColumns';
|
|
23
|
+
readonly RequestTypeFilterFields: 'RequestTypeFilterFields';
|
|
24
|
+
readonly RequestTypeViews: 'RequestTypeViews';
|
|
25
|
+
readonly RequestTypeColumnChoices: 'RequestTypeColumnChoices';
|
|
26
|
+
readonly RequestTypeSelection: 'RequestTypeSelection';
|
|
27
|
+
readonly WizardSteps: 'RequestWizardSteps';
|
|
28
|
+
readonly TypeSections: 'RequestTypeSections';
|
|
29
|
+
readonly DetailSections: 'RequestDetailSections';
|
|
30
|
+
readonly ReviewSections: 'RequestReviewSections';
|
|
31
|
+
readonly ReviewValues: 'RequestReviewValues';
|
|
32
|
+
readonly Request: 'RequestRecord';
|
|
33
|
+
readonly RequestSummary: 'RequestSummary';
|
|
34
|
+
readonly RequestSections: 'RequestSections';
|
|
35
|
+
readonly Chain: 'RequestChain';
|
|
36
|
+
readonly Attachments: 'RequestAttachments';
|
|
37
|
+
readonly AttachmentColumns: 'AttachmentColumns';
|
|
38
|
+
readonly Comments: 'RequestComments';
|
|
39
|
+
readonly RequestTabs: 'RequestTabs';
|
|
40
|
+
readonly DecisionSections: 'DecisionSections';
|
|
41
|
+
readonly TypeEditorSections: 'RequestTypeEditorSections';
|
|
42
|
+
readonly FormErrors: 'ApprovalsFormErrors';
|
|
43
|
+
};
|
|
44
|
+
export declare const localeOfData: {
|
|
45
|
+
locale: BindingExpression;
|
|
46
|
+
};
|
|
47
|
+
export declare const currencyOfData: {
|
|
48
|
+
locale: BindingExpression;
|
|
49
|
+
currency: BindingExpression;
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=approvalsQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsQueries.d.ts","sourceRoot":"","sources":["../../approvalsQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qBAAqB,CAAC;AAM3E,eAAO,MAAM,SAAS,UAAW,MAAM,oBAAc,iBAA2E,CAAC;AAGjI,eAAO,MAAM,cAAc;aAEvB,QAAQ,EAAE,mBAAmB;aAC7B,KAAK,EAAE,eAAe;aACtB,YAAY,EAAE,cAAc;aAC5B,iBAAiB,EAAE,mBAAmB;aACtC,UAAU,EAAE,YAAY;aACxB,UAAU,EAAE,YAAY;aACxB,gBAAgB,EAAE,kBAAkB;aACpC,qBAAqB,EAAE,uBAAuB;aAC9C,cAAc,EAAE,gBAAgB;aAChC,sBAAsB,EAAE,wBAAwB;aAChD,kBAAkB,EAAE,oBAAoB;aACxC,WAAW,EAAE,aAAa;aAC1B,iBAAiB,EAAE,mBAAmB;aACtC,sBAAsB,EAAE,wBAAwB;aAChD,eAAe,EAAE,iBAAiB;aAClC,uBAAuB,EAAE,yBAAyB;aAClD,mBAAmB,EAAE,qBAAqB;aAC1C,YAAY,EAAE,cAAc;aAC5B,kBAAkB,EAAE,oBAAoB;aACxC,uBAAuB,EAAE,yBAAyB;aAClD,gBAAgB,EAAE,kBAAkB;aACpC,wBAAwB,EAAE,0BAA0B;aACpD,oBAAoB,EAAE,sBAAsB;aAC5C,WAAW,EAAE,oBAAoB;aACjC,YAAY,EAAE,qBAAqB;aACnC,cAAc,EAAE,uBAAuB;aACvC,cAAc,EAAE,uBAAuB;aACvC,YAAY,EAAE,qBAAqB;aACnC,OAAO,EAAE,eAAe;aACxB,cAAc,EAAE,gBAAgB;aAChC,eAAe,EAAE,iBAAiB;aAClC,KAAK,EAAE,cAAc;aACrB,WAAW,EAAE,oBAAoB;aACjC,iBAAiB,EAAE,mBAAmB;aACtC,QAAQ,EAAE,iBAAiB;aAC3B,WAAW,EAAE,aAAa;aAC1B,gBAAgB,EAAE,kBAAkB;aACpC,kBAAkB,EAAE,2BAA2B;aAC/C,UAAU,EAAE,qBAAqB;CAC3B,CAAC;AAGX,eAAO,MAAM,YAAY;IAAK,MAAM;CAAkD,CAAC;AACvF,eAAO,MAAM,cAAc;;;CAAkF,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 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 approvals application, each a shape the sample-data packs supply rows for. */ const ApprovalsQuery = {
|
|
14
|
+
/** One row: the `locale` and the `currency` the figures and dates are formatted in. */ Settings: 'ApprovalsSettings',
|
|
15
|
+
Inbox: 'InboxRequests',
|
|
16
|
+
InboxColumns: 'InboxColumns',
|
|
17
|
+
InboxFilterFields: 'InboxFilterFields',
|
|
18
|
+
InboxViews: 'InboxViews',
|
|
19
|
+
MyRequests: 'MyRequests',
|
|
20
|
+
MyRequestColumns: 'MyRequestColumns',
|
|
21
|
+
MyRequestFilterFields: 'MyRequestFilterFields',
|
|
22
|
+
MyRequestViews: 'MyRequestViews',
|
|
23
|
+
MyRequestColumnChoices: 'MyRequestColumnChoices',
|
|
24
|
+
MyRequestSelection: 'MyRequestSelection',
|
|
25
|
+
AllRequests: 'AllRequests',
|
|
26
|
+
AllRequestColumns: 'AllRequestColumns',
|
|
27
|
+
AllRequestFilterFields: 'AllRequestFilterFields',
|
|
28
|
+
AllRequestViews: 'AllRequestViews',
|
|
29
|
+
AllRequestColumnChoices: 'AllRequestColumnChoices',
|
|
30
|
+
AllRequestSelection: 'AllRequestSelection',
|
|
31
|
+
RequestTypes: 'RequestTypes',
|
|
32
|
+
RequestTypeColumns: 'RequestTypeColumns',
|
|
33
|
+
RequestTypeFilterFields: 'RequestTypeFilterFields',
|
|
34
|
+
RequestTypeViews: 'RequestTypeViews',
|
|
35
|
+
RequestTypeColumnChoices: 'RequestTypeColumnChoices',
|
|
36
|
+
RequestTypeSelection: 'RequestTypeSelection',
|
|
37
|
+
WizardSteps: 'RequestWizardSteps',
|
|
38
|
+
TypeSections: 'RequestTypeSections',
|
|
39
|
+
DetailSections: 'RequestDetailSections',
|
|
40
|
+
ReviewSections: 'RequestReviewSections',
|
|
41
|
+
ReviewValues: 'RequestReviewValues',
|
|
42
|
+
Request: 'RequestRecord',
|
|
43
|
+
RequestSummary: 'RequestSummary',
|
|
44
|
+
RequestSections: 'RequestSections',
|
|
45
|
+
Chain: 'RequestChain',
|
|
46
|
+
Attachments: 'RequestAttachments',
|
|
47
|
+
AttachmentColumns: 'AttachmentColumns',
|
|
48
|
+
Comments: 'RequestComments',
|
|
49
|
+
RequestTabs: 'RequestTabs',
|
|
50
|
+
DecisionSections: 'DecisionSections',
|
|
51
|
+
TypeEditorSections: 'RequestTypeEditorSections',
|
|
52
|
+
FormErrors: 'ApprovalsFormErrors'
|
|
53
|
+
};
|
|
54
|
+
/** The locale and currency of the data, bound onto every component that formats a figure or a date. */ const localeOfData = {
|
|
55
|
+
locale: fromQuery(ApprovalsQuery.Settings, '0.locale')
|
|
56
|
+
};
|
|
57
|
+
const currencyOfData = {
|
|
58
|
+
...localeOfData,
|
|
59
|
+
currency: fromQuery(ApprovalsQuery.Settings, '0.currency')
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { ApprovalsQuery, currencyOfData, fromQuery, localeOfData };
|
|
63
|
+
//# sourceMappingURL=approvalsQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsQueries.js","sources":["../../approvalsQueries.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 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 approvals application, each a shape the sample-data packs supply rows for. */\nexport const ApprovalsQuery = {\n /** One row: the `locale` and the `currency` the figures and dates are formatted in. */\n Settings: 'ApprovalsSettings',\n Inbox: 'InboxRequests',\n InboxColumns: 'InboxColumns',\n InboxFilterFields: 'InboxFilterFields',\n InboxViews: 'InboxViews',\n MyRequests: 'MyRequests',\n MyRequestColumns: 'MyRequestColumns',\n MyRequestFilterFields: 'MyRequestFilterFields',\n MyRequestViews: 'MyRequestViews',\n MyRequestColumnChoices: 'MyRequestColumnChoices',\n MyRequestSelection: 'MyRequestSelection',\n AllRequests: 'AllRequests',\n AllRequestColumns: 'AllRequestColumns',\n AllRequestFilterFields: 'AllRequestFilterFields',\n AllRequestViews: 'AllRequestViews',\n AllRequestColumnChoices: 'AllRequestColumnChoices',\n AllRequestSelection: 'AllRequestSelection',\n RequestTypes: 'RequestTypes',\n RequestTypeColumns: 'RequestTypeColumns',\n RequestTypeFilterFields: 'RequestTypeFilterFields',\n RequestTypeViews: 'RequestTypeViews',\n RequestTypeColumnChoices: 'RequestTypeColumnChoices',\n RequestTypeSelection: 'RequestTypeSelection',\n WizardSteps: 'RequestWizardSteps',\n TypeSections: 'RequestTypeSections',\n DetailSections: 'RequestDetailSections',\n ReviewSections: 'RequestReviewSections',\n ReviewValues: 'RequestReviewValues',\n Request: 'RequestRecord',\n RequestSummary: 'RequestSummary',\n RequestSections: 'RequestSections',\n Chain: 'RequestChain',\n Attachments: 'RequestAttachments',\n AttachmentColumns: 'AttachmentColumns',\n Comments: 'RequestComments',\n RequestTabs: 'RequestTabs',\n DecisionSections: 'DecisionSections',\n TypeEditorSections: 'RequestTypeEditorSections',\n FormErrors: 'ApprovalsFormErrors',\n} as const;\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(ApprovalsQuery.Settings, '0.locale') };\nexport const currencyOfData = { ...localeOfData, currency: fromQuery(ApprovalsQuery.Settings, '0.currency') };\n"],"names":["fromQuery","query","path","kind","BindingSourceKind","QueryResult","ApprovalsQuery","Settings","Inbox","InboxColumns","InboxFilterFields","InboxViews","MyRequests","MyRequestColumns","MyRequestFilterFields","MyRequestViews","MyRequestColumnChoices","MyRequestSelection","AllRequests","AllRequestColumns","AllRequestFilterFields","AllRequestViews","AllRequestColumnChoices","AllRequestSelection","RequestTypes","RequestTypeColumns","RequestTypeFilterFields","RequestTypeViews","RequestTypeColumnChoices","RequestTypeSelection","WizardSteps","TypeSections","DetailSections","ReviewSections","ReviewValues","Request","RequestSummary","RequestSections","Chain","Attachments","AttachmentColumns","Comments","RequestTabs","DecisionSections","TypeEditorSections","FormErrors","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,qGACO,MAAMI,cAAAA,GAAiB;AAC1B,4FACAC,QAAAA,EAAU,mBAAA;IACVC,KAAAA,EAAO,eAAA;IACPC,YAAAA,EAAc,cAAA;IACdC,iBAAAA,EAAmB,mBAAA;IACnBC,UAAAA,EAAY,YAAA;IACZC,UAAAA,EAAY,YAAA;IACZC,gBAAAA,EAAkB,kBAAA;IAClBC,qBAAAA,EAAuB,uBAAA;IACvBC,cAAAA,EAAgB,gBAAA;IAChBC,sBAAAA,EAAwB,wBAAA;IACxBC,kBAAAA,EAAoB,oBAAA;IACpBC,WAAAA,EAAa,aAAA;IACbC,iBAAAA,EAAmB,mBAAA;IACnBC,sBAAAA,EAAwB,wBAAA;IACxBC,eAAAA,EAAiB,iBAAA;IACjBC,uBAAAA,EAAyB,yBAAA;IACzBC,mBAAAA,EAAqB,qBAAA;IACrBC,YAAAA,EAAc,cAAA;IACdC,kBAAAA,EAAoB,oBAAA;IACpBC,uBAAAA,EAAyB,yBAAA;IACzBC,gBAAAA,EAAkB,kBAAA;IAClBC,wBAAAA,EAA0B,0BAAA;IAC1BC,oBAAAA,EAAsB,sBAAA;IACtBC,WAAAA,EAAa,oBAAA;IACbC,YAAAA,EAAc,qBAAA;IACdC,cAAAA,EAAgB,uBAAA;IAChBC,cAAAA,EAAgB,uBAAA;IAChBC,YAAAA,EAAc,qBAAA;IACdC,OAAAA,EAAS,eAAA;IACTC,cAAAA,EAAgB,gBAAA;IAChBC,eAAAA,EAAiB,iBAAA;IACjBC,KAAAA,EAAO,cAAA;IACPC,WAAAA,EAAa,oBAAA;IACbC,iBAAAA,EAAmB,mBAAA;IACnBC,QAAAA,EAAU,iBAAA;IACVC,WAAAA,EAAa,aAAA;IACbC,gBAAAA,EAAkB,kBAAA;IAClBC,kBAAAA,EAAoB,2BAAA;IACpBC,UAAAA,EAAY;AAChB;AAEA,wGACO,MAAMC,YAAAA,GAAe;IAAEC,MAAAA,EAAQ/C,SAAAA,CAAUM,cAAAA,CAAeC,QAAQ,EAAE,UAAA;AAAY;MACxEyC,cAAAA,GAAiB;AAAE,IAAA,GAAGF,YAAY;IAAEG,QAAAA,EAAUjD,SAAAA,CAAUM,cAAAA,CAAeC,QAAQ,EAAE,YAAA;AAAc;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BlueprintScreen } from '@cratis/scene.model';
|
|
2
|
+
export interface ApprovalsScreenDefinition extends BlueprintScreen {
|
|
3
|
+
template: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const approvalsScreenDefinitions: ApprovalsScreenDefinition[];
|
|
7
|
+
//# sourceMappingURL=approvalsScreenSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsScreenSet.d.ts","sourceRoot":"","sources":["../../approvalsScreenSet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAC9D,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,0BAA0B,EAAE,yBAAyB,EAQjE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 approvalsScreenDefinitions = [
|
|
7
|
+
{
|
|
8
|
+
name: 'approvals.inbox',
|
|
9
|
+
title: 'Inbox',
|
|
10
|
+
template: 'ApprovalInbox',
|
|
11
|
+
order: 0,
|
|
12
|
+
description: 'The requests waiting for my decision, with Approve, Reject and Request changes on each.'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'approvals.requests',
|
|
16
|
+
title: 'My requests',
|
|
17
|
+
template: 'MyRequests',
|
|
18
|
+
order: 1,
|
|
19
|
+
description: 'The requests I made, with draft, submitted, approved and rejected as chips.'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'approvals.requests.new',
|
|
23
|
+
title: 'New request',
|
|
24
|
+
template: 'NewRequestWizard',
|
|
25
|
+
parent: 'approvals.requests',
|
|
26
|
+
description: 'Request type, details, attachments, then review and submit.'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'approvals.requests.page',
|
|
30
|
+
title: 'Request',
|
|
31
|
+
template: 'RequestPage',
|
|
32
|
+
parent: 'approvals.requests',
|
|
33
|
+
description: 'One request: its summary, its approval chain, its attachments and the comments.'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'approvals.all',
|
|
37
|
+
title: 'All requests',
|
|
38
|
+
template: 'AllRequests',
|
|
39
|
+
order: 2,
|
|
40
|
+
description: 'Every request in the organisation.'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'approvals.templates',
|
|
44
|
+
title: 'Templates',
|
|
45
|
+
template: 'RequestTypes',
|
|
46
|
+
order: 3,
|
|
47
|
+
description: 'The request types an organisation offers, for administrators.'
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
name: 'approvals.templates.edit',
|
|
51
|
+
title: 'Edit request type',
|
|
52
|
+
template: 'RequestTypeEditForm',
|
|
53
|
+
parent: 'approvals.templates',
|
|
54
|
+
description: 'Edits what a request type asks for and who approves it.'
|
|
55
|
+
}
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
export { approvalsScreenDefinitions };
|
|
59
|
+
//# sourceMappingURL=approvalsScreenSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"approvalsScreenSet.js","sources":["../../approvalsScreenSet.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 (`approvals.requests.new` is the `new` feature of `requests` in the `approvals` module). */\nexport interface ApprovalsScreenDefinition 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 approvalsScreenDefinitions: ApprovalsScreenDefinition[] = [\n { name: 'approvals.inbox', title: 'Inbox', template: 'ApprovalInbox', order: 0, description: 'The requests waiting for my decision, with Approve, Reject and Request changes on each.' },\n { name: 'approvals.requests', title: 'My requests', template: 'MyRequests', order: 1, description: 'The requests I made, with draft, submitted, approved and rejected as chips.' },\n { name: 'approvals.requests.new', title: 'New request', template: 'NewRequestWizard', parent: 'approvals.requests', description: 'Request type, details, attachments, then review and submit.' },\n { name: 'approvals.requests.page', title: 'Request', template: 'RequestPage', parent: 'approvals.requests', description: 'One request: its summary, its approval chain, its attachments and the comments.' },\n { name: 'approvals.all', title: 'All requests', template: 'AllRequests', order: 2, description: 'Every request in the organisation.' },\n { name: 'approvals.templates', title: 'Templates', template: 'RequestTypes', order: 3, description: 'The request types an organisation offers, for administrators.' },\n { name: 'approvals.templates.edit', title: 'Edit request type', template: 'RequestTypeEditForm', parent: 'approvals.templates', description: 'Edits what a request type asks for and who approves it.' },\n];\n"],"names":["approvalsScreenDefinitions","name","title","template","order","description","parent"],"mappings":"AAAA;AACA;AAUA;;;UAIaA,0BAAAA,GAA0D;AACnE,IAAA;QAAEC,IAAAA,EAAM,iBAAA;QAAmBC,KAAAA,EAAO,OAAA;QAASC,QAAAA,EAAU,eAAA;QAAiBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA0F,KAAA;AACvL,IAAA;QAAEJ,IAAAA,EAAM,oBAAA;QAAsBC,KAAAA,EAAO,aAAA;QAAeC,QAAAA,EAAU,YAAA;QAAcC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAA8E,KAAA;AACjL,IAAA;QAAEJ,IAAAA,EAAM,wBAAA;QAA0BC,KAAAA,EAAO,aAAA;QAAeC,QAAAA,EAAU,kBAAA;QAAoBG,MAAAA,EAAQ,oBAAA;QAAsBD,WAAAA,EAAa;AAA8D,KAAA;AAC/L,IAAA;QAAEJ,IAAAA,EAAM,yBAAA;QAA2BC,KAAAA,EAAO,SAAA;QAAWC,QAAAA,EAAU,aAAA;QAAeG,MAAAA,EAAQ,oBAAA;QAAsBD,WAAAA,EAAa;AAAkF,KAAA;AAC3M,IAAA;QAAEJ,IAAAA,EAAM,eAAA;QAAiBC,KAAAA,EAAO,cAAA;QAAgBC,QAAAA,EAAU,aAAA;QAAeC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAqC,KAAA;AACrI,IAAA;QAAEJ,IAAAA,EAAM,qBAAA;QAAuBC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,cAAA;QAAgBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAgE,KAAA;AACpK,IAAA;QAAEJ,IAAAA,EAAM,0BAAA;QAA4BC,KAAAA,EAAO,mBAAA;QAAqBC,QAAAA,EAAU,qBAAA;QAAuBG,MAAAA,EAAQ,qBAAA;QAAuBD,WAAAA,EAAa;AAA0D;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../blueprint.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAMzD,eAAO,MAAM,kBAAkB,EAAE,kBAMhC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { approvalsBlueprintManifest } from './manifest.js';
|
|
2
|
+
import { approvalsScreens } from './screens/index.js';
|
|
3
|
+
import { approvalsScreenTemplates } from './templates/index.js';
|
|
4
|
+
import { approvalsDialogTemplates } from './templates/formTemplates.js';
|
|
5
|
+
|
|
6
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
7
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
8
|
+
/** This blueprint as a loadable bundle: the manifest names things, this provides them. It provides no component - every component is the foundation's. */ const approvalsBlueprint = {
|
|
9
|
+
manifest: approvalsBlueprintManifest,
|
|
10
|
+
components: {},
|
|
11
|
+
screenTemplates: approvalsScreenTemplates,
|
|
12
|
+
dialogTemplates: approvalsDialogTemplates,
|
|
13
|
+
screens: approvalsScreens
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { approvalsBlueprint };
|
|
17
|
+
//# sourceMappingURL=blueprint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.js","sources":["../../blueprint.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ScenePackageBundle } from '@cratis/scene.react';\nimport { approvalsBlueprintManifest } from './manifest';\nimport { approvalsScreens } from './screens';\nimport { approvalsDialogTemplates, approvalsScreenTemplates } from './templates';\n\n/** This blueprint as a loadable bundle: the manifest names things, this provides them. It provides no component - every component is the foundation's. */\nexport const approvalsBlueprint: ScenePackageBundle = {\n manifest: approvalsBlueprintManifest,\n components: {},\n screenTemplates: approvalsScreenTemplates,\n dialogTemplates: approvalsDialogTemplates,\n screens: approvalsScreens,\n};\n"],"names":["approvalsBlueprint","manifest","approvalsBlueprintManifest","components","screenTemplates","approvalsScreenTemplates","dialogTemplates","approvalsDialogTemplates","screens","approvalsScreens"],"mappings":";;;;;AAAA;AACA;AAOA,2JACO,MAAMA,kBAAAA,GAAyC;IAClDC,QAAAA,EAAUC,0BAAAA;AACVC,IAAAA,UAAAA,EAAY,EAAC;IACbC,eAAAA,EAAiBC,wBAAAA;IACjBC,eAAAA,EAAiBC,wBAAAA;IACjBC,OAAAA,EAASC;AACb;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './packageName';
|
|
2
|
+
export * from './templateProvenance';
|
|
3
|
+
export * from './approvalsQueries';
|
|
4
|
+
export * from './approvalsParts';
|
|
5
|
+
export * from './approvalsScreenSet';
|
|
6
|
+
export * from './templates';
|
|
7
|
+
export * from './screens';
|
|
8
|
+
export * from './navigation';
|
|
9
|
+
export * from './manifest';
|
|
10
|
+
export * from './blueprint';
|
|
11
|
+
export * from './approvalsApplication';
|
|
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,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { approvalsBlueprintName } from './packageName.js';
|
|
2
|
+
export { approvalsTemplateProvenance } from './templateProvenance.js';
|
|
3
|
+
export { ApprovalsQuery, currencyOfData, fromQuery, localeOfData } from './approvalsQueries.js';
|
|
4
|
+
export { actionButton, approvalsCategory, approvalsMetadata, closesDialog, goesTo, opensDialog, opensRecordOnSelect, thumbnailOf, withBehaviors } from './approvalsParts.js';
|
|
5
|
+
export { approvalsScreenDefinitions } from './approvalsScreenSet.js';
|
|
6
|
+
export { approvalsScreenTemplates } from './templates/index.js';
|
|
7
|
+
export { approvalsScreens } from './screens/index.js';
|
|
8
|
+
export { approvalsModule, approvalsNavigation, approvalsStructure } from './navigation.js';
|
|
9
|
+
export { approvalsBlueprintManifest } from './manifest.js';
|
|
10
|
+
export { approvalsBlueprint } from './blueprint.js';
|
|
11
|
+
export { approvalsApplication, approvalsComposition, approvalsDefaultSampleDataId, approvalsNavigationModel } from './approvalsApplication.js';
|
|
12
|
+
export { allRequestsTemplate, approvalInboxTemplate, myRequestsTemplate, requestTypesTemplate } from './templates/listTemplates.js';
|
|
13
|
+
export { approvalsDialogTemplates, decisionDialogTemplate, requestTypeEditFormTemplate, requestTypeQuickCreateDialogTemplate } from './templates/formTemplates.js';
|
|
14
|
+
export { component, panel } from '@cratis/scene.blueprint.default';
|
|
15
|
+
export { newRequestWizardTemplate } from './templates/wizardTemplate.js';
|
|
16
|
+
export { requestPageTemplate } from './templates/recordTemplates.js';
|
|
17
|
+
//# 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,0BAA0B,EAAE,YA4BxC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PackageKind } from '@cratis/scene.model';
|
|
2
|
+
import { approvalsBlueprintName } from './packageName.js';
|
|
3
|
+
import { approvalsScreenDefinitions } from './approvalsScreenSet.js';
|
|
4
|
+
import { approvalsScreenTemplates } from './templates/index.js';
|
|
5
|
+
import { approvalsDialogTemplates } 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 = 'Requests and approvals: an approver\'s inbox, my requests, a new-request wizard, request pages with their approval chain and the request types an organisation offers.';
|
|
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 approvalsBlueprintManifest = {
|
|
15
|
+
name: approvalsBlueprintName,
|
|
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: approvalsScreenTemplates.map((template)=>template.name),
|
|
27
|
+
dialogTemplates: approvalsDialogTemplates.map((template)=>template.name),
|
|
28
|
+
themes: [],
|
|
29
|
+
displayName: 'Approvals and Requests',
|
|
30
|
+
description,
|
|
31
|
+
module: '@cratis/scene.blueprint.approvals',
|
|
32
|
+
license: 'MIT',
|
|
33
|
+
licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
|
|
34
|
+
sampleData: [
|
|
35
|
+
{
|
|
36
|
+
id: 'approvals-general',
|
|
37
|
+
title: 'Approvals · General',
|
|
38
|
+
locale: 'en-GB',
|
|
39
|
+
path: 'sampleData/approvals-general.json'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 'approvals-nordic',
|
|
43
|
+
title: 'Approvals · Nordic',
|
|
44
|
+
locale: 'nb-NO',
|
|
45
|
+
path: 'sampleData/approvals-nordic.json'
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
blueprint: {
|
|
49
|
+
domain: 'approvals',
|
|
50
|
+
description,
|
|
51
|
+
thumbnail: 'thumbnails/approvals.svg',
|
|
52
|
+
screenSet: approvalsScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
|
|
53
|
+
name,
|
|
54
|
+
title,
|
|
55
|
+
description: screenDescription,
|
|
56
|
+
template,
|
|
57
|
+
...parent === undefined ? {} : {
|
|
58
|
+
parent
|
|
59
|
+
},
|
|
60
|
+
...order === undefined ? {} : {
|
|
61
|
+
order
|
|
62
|
+
}
|
|
63
|
+
})),
|
|
64
|
+
defaultSampleData: 'approvals-general'
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { approvalsBlueprintManifest };
|
|
69
|
+
//# 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 { approvalsBlueprintName } from './packageName';\nimport { approvalsScreenDefinitions } from './approvalsScreenSet';\nimport { approvalsDialogTemplates, approvalsScreenTemplates } from './templates';\n\nconst description = 'Requests and approvals: an approver\\'s inbox, my requests, a new-request wizard, request pages with their approval chain and the request types an organisation offers.';\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 approvalsBlueprintManifest: ScenePackage = {\n name: approvalsBlueprintName,\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: approvalsScreenTemplates.map(template => template.name),\n dialogTemplates: approvalsDialogTemplates.map(template => template.name),\n themes: [],\n displayName: 'Approvals and Requests',\n description,\n module: '@cratis/scene.blueprint.approvals',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n sampleData: [\n { id: 'approvals-general', title: 'Approvals · General', locale: 'en-GB', path: 'sampleData/approvals-general.json' },\n { id: 'approvals-nordic', title: 'Approvals · Nordic', locale: 'nb-NO', path: 'sampleData/approvals-nordic.json' },\n ],\n blueprint: {\n domain: 'approvals',\n description,\n thumbnail: 'thumbnails/approvals.svg',\n screenSet: approvalsScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order }) => ({\n name, title, description: screenDescription, template, ...(parent === undefined ? {} : { parent }), ...(order === undefined ? {} : { order }),\n })),\n defaultSampleData: 'approvals-general',\n },\n};\n"],"names":["description","approvalsBlueprintManifest","name","approvalsBlueprintName","version","kind","PackageKind","Blueprint","dependencies","versionRange","components","layouts","screenTemplates","approvalsScreenTemplates","map","template","dialogTemplates","approvalsDialogTemplates","themes","displayName","module","license","licenseUrl","sampleData","id","title","locale","path","blueprint","domain","thumbnail","screenSet","approvalsScreenDefinitions","screenDescription","parent","order","undefined","defaultSampleData"],"mappings":";;;;;;AAAA;AACA;AAOA,MAAMA,WAAAA,GAAc,wKAAA;AAEpB;;;;UAKaC,0BAAAA,GAA2C;IACpDC,IAAAA,EAAMC,sBAAAA;IACNC,OAAAA,EAAS,OAAA;AACTC,IAAAA,IAAAA,EAAMC,YAAYC,SAAS;IAC3BC,YAAAA,EAAc;AAAC,QAAA;YAAEN,IAAAA,EAAM,0BAAA;YAA4BO,YAAAA,EAAc;AAAS;AAAE,KAAA;AAC5EC,IAAAA,UAAAA,EAAY,EAAE;AACdC,IAAAA,OAAAA,EAAS,EAAE;AACXC,IAAAA,eAAAA,EAAiBC,yBAAyBC,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACvEc,IAAAA,eAAAA,EAAiBC,yBAAyBH,GAAG,CAACC,CAAAA,QAAAA,GAAYA,SAASb,IAAI,CAAA;AACvEgB,IAAAA,MAAAA,EAAQ,EAAE;IACVC,WAAAA,EAAa,wBAAA;AACbnB,IAAAA,WAAAA;IACAoB,MAAAA,EAAQ,mCAAA;IACRC,OAAAA,EAAS,KAAA;IACTC,UAAAA,EAAY,mDAAA;IACZC,UAAAA,EAAY;AACR,QAAA;YAAEC,EAAAA,EAAI,mBAAA;YAAqBC,KAAAA,EAAO,qBAAA;YAAuBC,MAAAA,EAAQ,OAAA;YAASC,IAAAA,EAAM;AAAoC,SAAA;AACpH,QAAA;YAAEH,EAAAA,EAAI,kBAAA;YAAoBC,KAAAA,EAAO,oBAAA;YAAsBC,MAAAA,EAAQ,OAAA;YAASC,IAAAA,EAAM;AAAmC;AACpH,KAAA;IACDC,SAAAA,EAAW;QACPC,MAAAA,EAAQ,WAAA;AACR7B,QAAAA,WAAAA;QACA8B,SAAAA,EAAW,0BAAA;AACXC,QAAAA,SAAAA,EAAWC,2BAA2BlB,GAAG,CAAC,CAAC,EAAEZ,IAAI,EAAEuB,KAAK,EAAEzB,aAAaiC,iBAAiB,EAAElB,QAAQ,EAAEmB,MAAM,EAAEC,KAAK,EAAE,IAAM;AACrHjC,gBAAAA,IAAAA;AAAMuB,gBAAAA,KAAAA;gBAAOzB,WAAAA,EAAaiC,iBAAAA;AAAmBlB,gBAAAA,QAAAA;gBAAU,GAAImB,MAAAA,KAAWE,SAAAA,GAAY,EAAC,GAAI;AAAEF,oBAAAA;iBAAQ;gBAAG,GAAIC,KAAAA,KAAUC,SAAAA,GAAY,EAAC,GAAI;AAAED,oBAAAA;;aACzI,CAAA,CAAA;QACAE,iBAAAA,EAAmB;AACvB;AACJ;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApplicationStructure, NavigationModel } from '@cratis/scene.model';
|
|
2
|
+
export declare const approvalsModule = "approvals";
|
|
3
|
+
export declare const approvalsStructure: ApplicationStructure;
|
|
4
|
+
export declare const approvalsNavigation: 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,eAAe,cAAc,CAAC;AAM3C,eAAO,MAAM,kBAAkB,EAAE,oBAgB7B,CAAC;AAML,eAAO,MAAM,mBAAmB,EAAE,eAkBjC,CAAC"}
|