@cratis/scene.blueprint.administration 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/administrationApplication.ts +28 -0
- package/administrationParts.ts +52 -0
- package/administrationQueries.ts +62 -0
- package/administrationScreenSet.ts +22 -0
- package/blueprint.ts +16 -0
- package/blueprintCatalog.json +132 -0
- package/dist/cjs/administrationApplication.js +49 -0
- package/dist/cjs/administrationApplication.js.map +1 -0
- package/dist/cjs/administrationParts.js +131 -0
- package/dist/cjs/administrationParts.js.map +1 -0
- package/dist/cjs/administrationQueries.js +69 -0
- package/dist/cjs/administrationQueries.js.map +1 -0
- package/dist/cjs/administrationScreenSet.js +47 -0
- package/dist/cjs/administrationScreenSet.js.map +1 -0
- package/dist/cjs/blueprint.js +19 -0
- package/dist/cjs/blueprint.js.map +1 -0
- package/dist/cjs/index.js +68 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/manifest.js +65 -0
- package/dist/cjs/manifest.js.map +1 -0
- package/dist/cjs/navigation.js +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/dialogTemplates.js +51 -0
- package/dist/cjs/templates/dialogTemplates.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 +157 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -0
- package/dist/cjs/templates/recordTemplates.js +103 -0
- package/dist/cjs/templates/recordTemplates.js.map +1 -0
- package/dist/cjs/templates/rolesTemplate.js +65 -0
- package/dist/cjs/templates/rolesTemplate.js.map +1 -0
- package/dist/cjs/templates/settingsTemplate.js +45 -0
- package/dist/cjs/templates/settingsTemplate.js.map +1 -0
- package/dist/esm/administrationApplication.d.ts +10 -0
- package/dist/esm/administrationApplication.d.ts.map +1 -0
- package/dist/esm/administrationApplication.js +44 -0
- package/dist/esm/administrationApplication.js.map +1 -0
- package/dist/esm/administrationParts.d.ts +15 -0
- package/dist/esm/administrationParts.d.ts.map +1 -0
- package/dist/esm/administrationParts.js +114 -0
- package/dist/esm/administrationParts.js.map +1 -0
- package/dist/esm/administrationQueries.d.ts +42 -0
- package/dist/esm/administrationQueries.d.ts.map +1 -0
- package/dist/esm/administrationQueries.js +61 -0
- package/dist/esm/administrationQueries.js.map +1 -0
- package/dist/esm/administrationScreenSet.d.ts +7 -0
- package/dist/esm/administrationScreenSet.d.ts.map +1 -0
- package/dist/esm/administrationScreenSet.js +45 -0
- package/dist/esm/administrationScreenSet.js.map +1 -0
- package/dist/esm/blueprint.d.ts +3 -0
- package/dist/esm/blueprint.d.ts.map +1 -0
- package/dist/esm/blueprint.js +17 -0
- package/dist/esm/blueprint.js.map +1 -0
- package/dist/esm/index.d.ts +12 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/manifest.d.ts +3 -0
- package/dist/esm/manifest.d.ts.map +1 -0
- package/dist/esm/manifest.js +63 -0
- package/dist/esm/manifest.js.map +1 -0
- package/dist/esm/navigation.d.ts +5 -0
- package/dist/esm/navigation.d.ts.map +1 -0
- package/dist/esm/navigation.js +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/dialogTemplates.d.ts +3 -0
- package/dist/esm/templates/dialogTemplates.d.ts.map +1 -0
- package/dist/esm/templates/dialogTemplates.js +49 -0
- package/dist/esm/templates/dialogTemplates.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 +154 -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 +101 -0
- package/dist/esm/templates/recordTemplates.js.map +1 -0
- package/dist/esm/templates/rolesTemplate.d.ts +3 -0
- package/dist/esm/templates/rolesTemplate.d.ts.map +1 -0
- package/dist/esm/templates/rolesTemplate.js +63 -0
- package/dist/esm/templates/rolesTemplate.js.map +1 -0
- package/dist/esm/templates/settingsTemplate.d.ts +3 -0
- package/dist/esm/templates/settingsTemplate.d.ts.map +1 -0
- package/dist/esm/templates/settingsTemplate.js +43 -0
- package/dist/esm/templates/settingsTemplate.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/admin-default.json +1034 -0
- package/screens/index.ts +20 -0
- package/templateProvenance.ts +15 -0
- package/templates/dialogTemplates.ts +34 -0
- package/templates/index.ts +23 -0
- package/templates/listTemplates.ts +94 -0
- package/templates/recordTemplates.ts +44 -0
- package/templates/rolesTemplate.ts +39 -0
- package/templates/settingsTemplate.ts +28 -0
- package/thumbnails/AdministrationAuditLog.svg +13 -0
- package/thumbnails/AdministrationInviteUser.svg +12 -0
- package/thumbnails/AdministrationQuickCreateRole.svg +12 -0
- package/thumbnails/AdministrationRoles.svg +20 -0
- package/thumbnails/AdministrationSettings.svg +17 -0
- package/thumbnails/AdministrationUserList.svg +13 -0
- package/thumbnails/AdministrationUserPage.svg +18 -0
- package/thumbnails/administration.svg +14 -0
|
@@ -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 { administrationTemplateProvenance } 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 administrationCategory = 'Business / Administration';
|
|
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 administrationMetadata = (name, type, scopes)=>({
|
|
11
|
+
...administrationTemplateProvenance,
|
|
12
|
+
type,
|
|
13
|
+
category: administrationCategory,
|
|
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, administrationCategory, administrationMetadata, closesDialog, goesTo, opensDialog, opensRecordOnSelect, thumbnailOf, withBehaviors };
|
|
114
|
+
//# sourceMappingURL=administrationParts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"administrationParts.js","sources":["../../administrationParts.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 { administrationTemplateProvenance } 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 administrationCategory = 'Business / Administration';\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 administrationMetadata = (name: string, type: 'Dashboard' | 'List' | 'Board' | 'Detail' | 'Form' | 'Dialog' | 'Workspace', scopes: TemplateScope[]): TemplateMetadata =>\n ({ ...administrationTemplateProvenance, type, category: administrationCategory, 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\nexport type AdministrationScreenTemplate = ScreenTemplate;\nexport type AdministrationDialogTemplate = DialogTemplate;\n"],"names":["administrationCategory","thumbnailOf","templateName","administrationMetadata","name","type","scopes","administrationTemplateProvenance","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,sBAAAA,GAAyB;AAEtC,qDACO,MAAMC,WAAAA,GAAc,CAACC,YAAAA,GAAiC,CAAC,WAAW,EAAEA,YAAAA,CAAa,IAAI;AAE5F,4JACO,MAAMC,sBAAAA,GAAyB,CAACC,IAAAA,EAAcC,IAAAA,EAAmFC,UACnI;AAAE,QAAA,GAAGC,gCAAgC;AAAEF,QAAAA,IAAAA;QAAMG,QAAAA,EAAUR,sBAAAA;AAAwBS,QAAAA,SAAAA,EAAWR,WAAAA,CAAYG,IAAAA,CAAAA;AAAOE,QAAAA;AAAO,KAAA;AAEzH,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,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BAAA;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,42 @@
|
|
|
1
|
+
import { BindingExpression } from '@cratis/scene.model';
|
|
2
|
+
export declare const fromQuery: (query: string, path?: string) => BindingExpression;
|
|
3
|
+
export declare const AdministrationQuery: {
|
|
4
|
+
readonly Settings: 'AdminSettings';
|
|
5
|
+
readonly RecordTabs: 'AdministrationRecordTabs';
|
|
6
|
+
readonly RoleList: 'AdministrationRoles';
|
|
7
|
+
readonly RoleColumns: 'AdministrationRoleColumns';
|
|
8
|
+
readonly MatrixRoles: 'AdministrationMatrixRoles';
|
|
9
|
+
readonly Permissions: 'AdministrationPermissions';
|
|
10
|
+
readonly Grants: 'AdministrationGrants';
|
|
11
|
+
readonly SettingsSections: 'AdministrationSettingsSections';
|
|
12
|
+
readonly SettingsValues: 'AdministrationSettingsValues';
|
|
13
|
+
readonly FormErrors: 'AdministrationFormErrors';
|
|
14
|
+
};
|
|
15
|
+
export declare enum AdministrationEntityKind {
|
|
16
|
+
User = "User",
|
|
17
|
+
Audit = "Audit"
|
|
18
|
+
}
|
|
19
|
+
export declare const administrationEntityPlural: Record<AdministrationEntityKind, string>;
|
|
20
|
+
export declare const administrationQueriesOf: (entity: AdministrationEntityKind) => {
|
|
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
|
+
roles: string;
|
|
32
|
+
sessions: string;
|
|
33
|
+
activity: string;
|
|
34
|
+
};
|
|
35
|
+
export declare const localeOfData: {
|
|
36
|
+
locale: BindingExpression;
|
|
37
|
+
};
|
|
38
|
+
export declare const currencyOfData: {
|
|
39
|
+
locale: BindingExpression;
|
|
40
|
+
currency: BindingExpression;
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=administrationQueries.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"administrationQueries.d.ts","sourceRoot":"","sources":["../../administrationQueries.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,qBAAqB,CAAC;AAM3E,eAAO,MAAM,SAAS,UAAW,MAAM,oBAAc,iBAA2E,CAAC;AAGjI,eAAO,MAAM,mBAAmB;aAE5B,QAAQ,EAAE,eAAe;aACzB,UAAU,EAAE,0BAA0B;aACtC,QAAQ,EAAE,qBAAqB;aAC/B,WAAW,EAAE,2BAA2B;aAExC,WAAW,EAAE,2BAA2B;aACxC,WAAW,EAAE,2BAA2B;aACxC,MAAM,EAAE,sBAAsB;aAC9B,gBAAgB,EAAE,gCAAgC;aAClD,cAAc,EAAE,8BAA8B;aAC9C,UAAU,EAAE,0BAA0B;CAChC,CAAC;AAGX,oBAAY,wBAAwB;IAChC,IAAI,SAAS;IACb,KAAK,UAAU;CAClB;AAGD,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,wBAAwB,EAAE,MAAM,CAG/E,CAAC;AAMF,eAAO,MAAM,uBAAuB,WAAY,wBAAwB;IACpE,IAAI;IACJ,OAAO;IACP,YAAY;IACZ,KAAK;IACL,aAAa;IACb,SAAS;IACT,aAAa;IACb,MAAM;IACN,QAAQ;IACR,OAAO;IACP,KAAK;IACL,QAAQ;IACR,QAAQ;CACV,CAAC;AAGH,eAAO,MAAM,YAAY;IAAK,MAAM;CAAuD,CAAC;AAC5F,eAAO,MAAM,cAAc;;;CAAuF,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BindingSourceKind } from '@cratis/scene.model';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* A property taken from a query result - never a value. An Administration 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 AdministrationQuery = {
|
|
14
|
+
/** One row: the `locale` the figures and dates are formatted in. */ Settings: 'AdminSettings',
|
|
15
|
+
RecordTabs: 'AdministrationRecordTabs',
|
|
16
|
+
RoleList: 'AdministrationRoles',
|
|
17
|
+
RoleColumns: 'AdministrationRoleColumns',
|
|
18
|
+
/** The roles as the permission matrix reads them: an `id` and a `label` each. */ MatrixRoles: 'AdministrationMatrixRoles',
|
|
19
|
+
Permissions: 'AdministrationPermissions',
|
|
20
|
+
Grants: 'AdministrationGrants',
|
|
21
|
+
SettingsSections: 'AdministrationSettingsSections',
|
|
22
|
+
SettingsValues: 'AdministrationSettingsValues',
|
|
23
|
+
FormErrors: 'AdministrationFormErrors'
|
|
24
|
+
};
|
|
25
|
+
/** The entities a template is made for. */ var AdministrationEntityKind = /*#__PURE__*/ function(AdministrationEntityKind) {
|
|
26
|
+
AdministrationEntityKind["User"] = "User";
|
|
27
|
+
AdministrationEntityKind["Audit"] = "Audit";
|
|
28
|
+
return AdministrationEntityKind;
|
|
29
|
+
}({});
|
|
30
|
+
/** The read model (and so the shape) the records of each entity are queried from. */ const administrationEntityPlural = {
|
|
31
|
+
["User"]: 'Users',
|
|
32
|
+
["Audit"]: 'AuditEntries'
|
|
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 administrationQueriesOf = (entity)=>({
|
|
38
|
+
rows: administrationEntityPlural[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
|
+
roles: `${entity}Roles`,
|
|
49
|
+
sessions: `${entity}Sessions`,
|
|
50
|
+
activity: `${entity}Activity`
|
|
51
|
+
});
|
|
52
|
+
/** The locale and currency of the data, bound onto every component that formats a figure or a date. */ const localeOfData = {
|
|
53
|
+
locale: fromQuery(AdministrationQuery.Settings, '0.locale')
|
|
54
|
+
};
|
|
55
|
+
const currencyOfData = {
|
|
56
|
+
...localeOfData,
|
|
57
|
+
currency: fromQuery(AdministrationQuery.Settings, '0.currency')
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export { AdministrationEntityKind, AdministrationQuery, administrationEntityPlural, administrationQueriesOf, currencyOfData, fromQuery, localeOfData };
|
|
61
|
+
//# sourceMappingURL=administrationQueries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"administrationQueries.js","sources":["../../administrationQueries.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { BindingExpression, BindingSourceKind } from '@cratis/scene.model';\n\n/**\n * A property taken from a query result - never a value. An Administration 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 AdministrationQuery = {\n /** One row: the `locale` the figures and dates are formatted in. */\n Settings: 'AdminSettings',\n RecordTabs: 'AdministrationRecordTabs',\n RoleList: 'AdministrationRoles',\n RoleColumns: 'AdministrationRoleColumns',\n /** The roles as the permission matrix reads them: an `id` and a `label` each. */\n MatrixRoles: 'AdministrationMatrixRoles',\n Permissions: 'AdministrationPermissions',\n Grants: 'AdministrationGrants',\n SettingsSections: 'AdministrationSettingsSections',\n SettingsValues: 'AdministrationSettingsValues',\n FormErrors: 'AdministrationFormErrors',\n} as const;\n\n/** The entities a template is made for. */\nexport enum AdministrationEntityKind {\n User = 'User',\n Audit = 'Audit',\n}\n\n/** The read model (and so the shape) the records of each entity are queried from. */\nexport const administrationEntityPlural: Record<AdministrationEntityKind, string> = {\n [AdministrationEntityKind.User]: 'Users',\n [AdministrationEntityKind.Audit]: 'AuditEntries',\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 administrationQueriesOf = (entity: AdministrationEntityKind) => ({\n rows: administrationEntityPlural[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 roles: `${entity}Roles`,\n sessions: `${entity}Sessions`,\n activity: `${entity}Activity`,\n});\n\n/** The locale and currency of the data, bound onto every component that formats a figure or a date. */\nexport const localeOfData = { locale: fromQuery(AdministrationQuery.Settings, '0.locale') };\nexport const currencyOfData = { ...localeOfData, currency: fromQuery(AdministrationQuery.Settings, '0.currency') };\n"],"names":["fromQuery","query","path","kind","BindingSourceKind","QueryResult","AdministrationQuery","Settings","RecordTabs","RoleList","RoleColumns","MatrixRoles","Permissions","Grants","SettingsSections","SettingsValues","FormErrors","AdministrationEntityKind","administrationEntityPlural","administrationQueriesOf","entity","rows","columns","filterFields","views","columnChoices","selection","quickSections","record","sections","summary","roles","sessions","activity","localeOfData","locale","currencyOfData","currency"],"mappings":";;AAAA;AACA;AAIA;;;UAIaA,SAAAA,GAAY,CAACC,OAAeC,IAAAA,GAAO,EAAE,IAAyB;AAAEC,QAAAA,IAAAA,EAAMC,kBAAkBC,WAAW;AAAEJ,QAAAA,KAAAA;AAAOC,QAAAA;AAAK,KAAA;AAE9H,qHACO,MAAMI,mBAAAA,GAAsB;AAC/B,yEACAC,QAAAA,EAAU,eAAA;IACVC,UAAAA,EAAY,0BAAA;IACZC,QAAAA,EAAU,qBAAA;IACVC,WAAAA,EAAa,2BAAA;AACb,sFACAC,WAAAA,EAAa,2BAAA;IACbC,WAAAA,EAAa,2BAAA;IACbC,MAAAA,EAAQ,sBAAA;IACRC,gBAAAA,EAAkB,gCAAA;IAClBC,cAAAA,EAAgB,8BAAA;IAChBC,UAAAA,EAAY;AAChB;AAEA,4CACO,IAAKC,wBAAAA,iBAAAA,SAAAA,wBAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,wBAAAA;AAGX,CAAA,CAAA,EAAA;AAED,sFACO,MAAMC,0BAAAA,GAAuE;AAChF,IAAA,CAAA,MAAA,GAAiC,OAAA;AACjC,IAAA,CAAA,OAAA,GAAkC;AACtC;AAEA;;;AAGC,IACM,MAAMC,uBAAAA,GAA0B,CAACC,UAAsC;QAC1EC,IAAAA,EAAMH,0BAA0B,CAACE,MAAAA,CAAO;QACxCE,OAAAA,EAAS,CAAA,EAAGF,MAAAA,CAAO,OAAO,CAAC;QAC3BG,YAAAA,EAAc,CAAA,EAAGH,MAAAA,CAAO,YAAY,CAAC;QACrCI,KAAAA,EAAO,CAAA,EAAGJ,MAAAA,CAAO,KAAK,CAAC;QACvBK,aAAAA,EAAe,CAAA,EAAGL,MAAAA,CAAO,aAAa,CAAC;QACvCM,SAAAA,EAAW,CAAA,EAAGN,MAAAA,CAAO,SAAS,CAAC;QAC/BO,aAAAA,EAAe,CAAA,EAAGP,MAAAA,CAAO,aAAa,CAAC;QACvCQ,MAAAA,EAAQ,CAAA,EAAGR,MAAAA,CAAO,MAAM,CAAC;QACzBS,QAAAA,EAAU,CAAA,EAAGT,MAAAA,CAAO,QAAQ,CAAC;QAC7BU,OAAAA,EAAS,CAAA,EAAGV,MAAAA,CAAO,OAAO,CAAC;QAC3BW,KAAAA,EAAO,CAAA,EAAGX,MAAAA,CAAO,KAAK,CAAC;QACvBY,QAAAA,EAAU,CAAA,EAAGZ,MAAAA,CAAO,QAAQ,CAAC;QAC7Ba,QAAAA,EAAU,CAAA,EAAGb,MAAAA,CAAO,QAAQ;AAChC,KAAA;AAEA,wGACO,MAAMc,YAAAA,GAAe;IAAEC,MAAAA,EAAQnC,SAAAA,CAAUM,mBAAAA,CAAoBC,QAAQ,EAAE,UAAA;AAAY;MAC7E6B,cAAAA,GAAiB;AAAE,IAAA,GAAGF,YAAY;IAAEG,QAAAA,EAAUrC,SAAAA,CAAUM,mBAAAA,CAAoBC,QAAQ,EAAE,YAAA;AAAc;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BlueprintScreen } from '@cratis/scene.model';
|
|
2
|
+
export interface AdministrationScreenDefinition extends BlueprintScreen {
|
|
3
|
+
template: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const administrationScreenDefinitions: AdministrationScreenDefinition[];
|
|
7
|
+
//# sourceMappingURL=administrationScreenSet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"administrationScreenSet.d.ts","sourceRoot":"","sources":["../../administrationScreenSet.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,MAAM,WAAW,8BAA+B,SAAQ,eAAe;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,+BAA+B,EAAE,8BAA8B,EAM3E,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 administrationScreenDefinitions = [
|
|
7
|
+
{
|
|
8
|
+
name: 'admin.users',
|
|
9
|
+
title: 'Users',
|
|
10
|
+
template: 'AdministrationUserList',
|
|
11
|
+
order: 0,
|
|
12
|
+
description: 'Everyone with an account: role, status and when they were last active; invite someone.'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'admin.users.record',
|
|
16
|
+
title: 'User',
|
|
17
|
+
template: 'AdministrationUserPage',
|
|
18
|
+
parent: 'admin.users',
|
|
19
|
+
description: 'One user: profile, role assignments and sessions.'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'admin.roles',
|
|
23
|
+
title: 'Roles and permissions',
|
|
24
|
+
template: 'AdministrationRoles',
|
|
25
|
+
order: 1,
|
|
26
|
+
description: 'The roles on the left and what the chosen role may do on the right.'
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'admin.settings',
|
|
30
|
+
title: 'Settings',
|
|
31
|
+
template: 'AdministrationSettings',
|
|
32
|
+
order: 2,
|
|
33
|
+
description: 'General, branding and notification settings of the organization.'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'admin.audit',
|
|
37
|
+
title: 'Audit log',
|
|
38
|
+
template: 'AdministrationAuditLog',
|
|
39
|
+
order: 3,
|
|
40
|
+
description: 'Who did what to what and when, read only; filtered and exported.'
|
|
41
|
+
}
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
export { administrationScreenDefinitions };
|
|
45
|
+
//# sourceMappingURL=administrationScreenSet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"administrationScreenSet.js","sources":["../../administrationScreenSet.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 (`admin.users.record` is the `record` feature of `users` in the `admin` module). */\nexport interface AdministrationScreenDefinition 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 administrationScreenDefinitions: AdministrationScreenDefinition[] = [\n { name: 'admin.users', title: 'Users', template: 'AdministrationUserList', order: 0, description: 'Everyone with an account: role, status and when they were last active; invite someone.' },\n { name: 'admin.users.record', title: 'User', template: 'AdministrationUserPage', parent: 'admin.users', description: 'One user: profile, role assignments and sessions.' },\n { name: 'admin.roles', title: 'Roles and permissions', template: 'AdministrationRoles', order: 1, description: 'The roles on the left and what the chosen role may do on the right.' },\n { name: 'admin.settings', title: 'Settings', template: 'AdministrationSettings', order: 2, description: 'General, branding and notification settings of the organization.' },\n { name: 'admin.audit', title: 'Audit log', template: 'AdministrationAuditLog', order: 3, description: 'Who did what to what and when, read only; filtered and exported.' },\n];\n"],"names":["administrationScreenDefinitions","name","title","template","order","description","parent"],"mappings":"AAAA;AACA;AAUA;;;UAIaA,+BAAAA,GAAoE;AAC7E,IAAA;QAAEC,IAAAA,EAAM,aAAA;QAAeC,KAAAA,EAAO,OAAA;QAASC,QAAAA,EAAU,wBAAA;QAA0BC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAyF,KAAA;AAC3L,IAAA;QAAEJ,IAAAA,EAAM,oBAAA;QAAsBC,KAAAA,EAAO,MAAA;QAAQC,QAAAA,EAAU,wBAAA;QAA0BG,MAAAA,EAAQ,aAAA;QAAeD,WAAAA,EAAa;AAAoD,KAAA;AACzK,IAAA;QAAEJ,IAAAA,EAAM,aAAA;QAAeC,KAAAA,EAAO,uBAAA;QAAyBC,QAAAA,EAAU,qBAAA;QAAuBC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAsE,KAAA;AACrL,IAAA;QAAEJ,IAAAA,EAAM,gBAAA;QAAkBC,KAAAA,EAAO,UAAA;QAAYC,QAAAA,EAAU,wBAAA;QAA0BC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAmE,KAAA;AAC3K,IAAA;QAAEJ,IAAAA,EAAM,aAAA;QAAeC,KAAAA,EAAO,WAAA;QAAaC,QAAAA,EAAU,wBAAA;QAA0BC,KAAAA,EAAO,CAAA;QAAGC,WAAAA,EAAa;AAAmE;;;"}
|
|
@@ -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,uBAAuB,EAAE,kBAMrC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { administrationBlueprintManifest } from './manifest.js';
|
|
2
|
+
import { administrationScreens } from './screens/index.js';
|
|
3
|
+
import { administrationScreenTemplates } from './templates/index.js';
|
|
4
|
+
import { administrationDialogs } from './templates/dialogTemplates.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 administrationBlueprint = {
|
|
9
|
+
manifest: administrationBlueprintManifest,
|
|
10
|
+
components: {},
|
|
11
|
+
screenTemplates: administrationScreenTemplates,
|
|
12
|
+
dialogTemplates: administrationDialogs,
|
|
13
|
+
screens: administrationScreens
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { administrationBlueprint };
|
|
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 { administrationBlueprintManifest } from './manifest';\nimport { administrationScreens } from './screens';\nimport { administrationDialogTemplates, administrationScreenTemplates } 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 administrationBlueprint: ScenePackageBundle = {\n manifest: administrationBlueprintManifest,\n components: {},\n screenTemplates: administrationScreenTemplates,\n dialogTemplates: administrationDialogTemplates,\n screens: administrationScreens,\n};\n"],"names":["administrationBlueprint","manifest","administrationBlueprintManifest","components","screenTemplates","administrationScreenTemplates","dialogTemplates","administrationDialogTemplates","screens","administrationScreens"],"mappings":";;;;;AAAA;AACA;AAOA,2JACO,MAAMA,uBAAAA,GAA8C;IACvDC,QAAAA,EAAUC,+BAAAA;AACVC,IAAAA,UAAAA,EAAY,EAAC;IACbC,eAAAA,EAAiBC,6BAAAA;IACjBC,eAAAA,EAAiBC,qBAAAA;IACjBC,OAAAA,EAASC;AACb;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './packageName';
|
|
2
|
+
export * from './templateProvenance';
|
|
3
|
+
export * from './administrationQueries';
|
|
4
|
+
export * from './administrationParts';
|
|
5
|
+
export * from './administrationScreenSet';
|
|
6
|
+
export * from './templates';
|
|
7
|
+
export * from './screens';
|
|
8
|
+
export * from './navigation';
|
|
9
|
+
export * from './manifest';
|
|
10
|
+
export * from './blueprint';
|
|
11
|
+
export * from './administrationApplication';
|
|
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,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export { administrationBlueprintName } from './packageName.js';
|
|
2
|
+
export { administrationTemplateProvenance } from './templateProvenance.js';
|
|
3
|
+
export { AdministrationEntityKind, AdministrationQuery, administrationEntityPlural, administrationQueriesOf, currencyOfData, fromQuery, localeOfData } from './administrationQueries.js';
|
|
4
|
+
export { actionButton, administrationCategory, administrationMetadata, closesDialog, goesTo, opensDialog, opensRecordOnSelect, thumbnailOf, withBehaviors } from './administrationParts.js';
|
|
5
|
+
export { administrationScreenDefinitions } from './administrationScreenSet.js';
|
|
6
|
+
export { administrationScreenTemplates } from './templates/index.js';
|
|
7
|
+
export { administrationScreens } from './screens/index.js';
|
|
8
|
+
export { administrationModule, administrationNavigation, administrationStructure } from './navigation.js';
|
|
9
|
+
export { administrationBlueprintManifest } from './manifest.js';
|
|
10
|
+
export { administrationBlueprint } from './blueprint.js';
|
|
11
|
+
export { administrationApplication, administrationComposition, administrationDefaultSampleDataId, administrationNavigationModel } from './administrationApplication.js';
|
|
12
|
+
export { administrationAuditLogTemplate, administrationUserListTemplate } from './templates/listTemplates.js';
|
|
13
|
+
export { administrationDialogs as administrationDialogTemplates, administrationDialogs } from './templates/dialogTemplates.js';
|
|
14
|
+
export { administrationRolesTemplate } from './templates/rolesTemplate.js';
|
|
15
|
+
export { administrationSettingsTemplate } from './templates/settingsTemplate.js';
|
|
16
|
+
export { administrationUserPageTemplate } from './templates/recordTemplates.js';
|
|
17
|
+
export { component, panel } from '@cratis/scene.blueprint.default';
|
|
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,+BAA+B,EAAE,YAyB7C,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PackageKind } from '@cratis/scene.model';
|
|
2
|
+
import { administrationBlueprintName } from './packageName.js';
|
|
3
|
+
import { administrationScreenDefinitions } from './administrationScreenSet.js';
|
|
4
|
+
import { administrationScreenTemplates } from './templates/index.js';
|
|
5
|
+
import { administrationDialogs } from './templates/dialogTemplates.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 = 'Users, roles and permissions, settings and an audit log for an administrator: a user list and page, a roles list beside its permission matrix, a settings form and a read-only audit log.';
|
|
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 administrationBlueprintManifest = {
|
|
15
|
+
name: administrationBlueprintName,
|
|
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: administrationScreenTemplates.map((template)=>template.name),
|
|
27
|
+
dialogTemplates: administrationDialogs.map((template)=>template.name),
|
|
28
|
+
themes: [],
|
|
29
|
+
displayName: 'Administration',
|
|
30
|
+
description,
|
|
31
|
+
module: '@cratis/scene.blueprint.administration',
|
|
32
|
+
license: 'MIT',
|
|
33
|
+
licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',
|
|
34
|
+
sampleData: [
|
|
35
|
+
{
|
|
36
|
+
id: 'admin-default',
|
|
37
|
+
title: 'Administration · Default',
|
|
38
|
+
locale: 'en-GB',
|
|
39
|
+
path: 'sampleData/admin-default.json'
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
blueprint: {
|
|
43
|
+
domain: 'administration',
|
|
44
|
+
description,
|
|
45
|
+
thumbnail: 'thumbnails/administration.svg',
|
|
46
|
+
screenSet: administrationScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order })=>({
|
|
47
|
+
name,
|
|
48
|
+
title,
|
|
49
|
+
description: screenDescription,
|
|
50
|
+
template,
|
|
51
|
+
...parent === undefined ? {} : {
|
|
52
|
+
parent
|
|
53
|
+
},
|
|
54
|
+
...order === undefined ? {} : {
|
|
55
|
+
order
|
|
56
|
+
}
|
|
57
|
+
})),
|
|
58
|
+
defaultSampleData: 'admin-default'
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { administrationBlueprintManifest };
|
|
63
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.js","sources":["../../manifest.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { PackageKind, ScenePackage } from '@cratis/scene.model';\nimport { administrationBlueprintName } from './packageName';\nimport { administrationScreenDefinitions } from './administrationScreenSet';\nimport { administrationDialogTemplates, administrationScreenTemplates } from './templates';\n\nconst description = 'Users, roles and permissions, settings and an audit log for an administrator: a user list and page, a roles list beside its permission matrix, a settings form and a read-only audit log.';\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 administrationBlueprintManifest: ScenePackage = {\n name: administrationBlueprintName,\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: administrationScreenTemplates.map(template => template.name),\n dialogTemplates: administrationDialogTemplates.map(template => template.name),\n themes: [],\n displayName: 'Administration',\n description,\n module: '@cratis/scene.blueprint.administration',\n license: 'MIT',\n licenseUrl: 'https://github.com/Cratis/Scene/blob/main/LICENSE',\n sampleData: [{ id: 'admin-default', title: 'Administration · Default', locale: 'en-GB', path: 'sampleData/admin-default.json' }],\n blueprint: {\n domain: 'administration',\n description,\n thumbnail: 'thumbnails/administration.svg',\n screenSet: administrationScreenDefinitions.map(({ name, title, description: screenDescription, template, parent, order }) => ({\n name, title, description: screenDescription, template, ...(parent === undefined ? {} : { parent }), ...(order === undefined ? {} : { order }),\n })),\n defaultSampleData: 'admin-default',\n },\n};\n"],"names":["description","administrationBlueprintManifest","name","administrationBlueprintName","version","kind","PackageKind","Blueprint","dependencies","versionRange","components","layouts","screenTemplates","administrationScreenTemplates","map","template","dialogTemplates","administrationDialogTemplates","themes","displayName","module","license","licenseUrl","sampleData","id","title","locale","path","blueprint","domain","thumbnail","screenSet","administrationScreenDefinitions","screenDescription","parent","order","undefined","defaultSample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;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 administrationModule = "admin";
|
|
3
|
+
export declare const administrationStructure: ApplicationStructure;
|
|
4
|
+
export declare const administrationNavigation: 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,oBAAoB,UAAU,CAAC;AAM5C,eAAO,MAAM,uBAAuB,EAAE,oBAgBlC,CAAC;AAML,eAAO,MAAM,wBAAwB,EAAE,eAkBtC,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { NavigationRegionMode, NavigationRegionKind } from '@cratis/scene.model';
|
|
2
|
+
import { administrationScreenDefinitions } from './administrationScreenSet.js';
|
|
3
|
+
|
|
4
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
5
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
6
|
+
/** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */ const administrationModule = 'admin';
|
|
7
|
+
/**
|
|
8
|
+
* The application structure the screen set implies: one module, `admin`, a feature for each screen and the sub-features beneath it (`admin.users.record` is the
|
|
9
|
+
* `record` feature of `users`). Derived from the screen names, so a screen added to the set is part of the structure without a second edit.
|
|
10
|
+
*/ const administrationStructure = (()=>{
|
|
11
|
+
const root = {
|
|
12
|
+
id: administrationModule,
|
|
13
|
+
name: 'Administration',
|
|
14
|
+
features: []};
|
|
15
|
+
for (const screen of administrationScreenDefinitions){
|
|
16
|
+
let parent = root;
|
|
17
|
+
for (const id of screen.name.split('.').slice(1)){
|
|
18
|
+
let node = parent.features.find((candidate)=>candidate.id === id);
|
|
19
|
+
if (!node) {
|
|
20
|
+
node = {
|
|
21
|
+
id,
|
|
22
|
+
name: screen.title,
|
|
23
|
+
features: [],
|
|
24
|
+
slices: []
|
|
25
|
+
};
|
|
26
|
+
parent.features.push(node);
|
|
27
|
+
}
|
|
28
|
+
parent = node;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
modules: [
|
|
33
|
+
{
|
|
34
|
+
id: root.id,
|
|
35
|
+
name: root.name,
|
|
36
|
+
features: root.features
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
};
|
|
40
|
+
})();
|
|
41
|
+
/**
|
|
42
|
+
* The navigation of the application the blueprint is: the topbar names the module, and the module's sidebar - which overrides the application's - lists
|
|
43
|
+
* the four places an administrator goes: Users, Roles, Settings and Audit log.
|
|
44
|
+
*/ const administrationNavigation = {
|
|
45
|
+
application: {
|
|
46
|
+
logo: {
|
|
47
|
+
image: '',
|
|
48
|
+
title: 'Administration'
|
|
49
|
+
},
|
|
50
|
+
regions: [
|
|
51
|
+
{
|
|
52
|
+
region: NavigationRegionKind.Topbar,
|
|
53
|
+
items: [
|
|
54
|
+
{
|
|
55
|
+
id: 'admin',
|
|
56
|
+
title: 'Administration',
|
|
57
|
+
target: {
|
|
58
|
+
module: administrationModule
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
modules: [
|
|
66
|
+
{
|
|
67
|
+
module: administrationModule,
|
|
68
|
+
regions: [
|
|
69
|
+
{
|
|
70
|
+
region: NavigationRegionKind.Sidebar,
|
|
71
|
+
mode: NavigationRegionMode.Override,
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
id: 'users',
|
|
75
|
+
title: 'Users',
|
|
76
|
+
target: {
|
|
77
|
+
module: administrationModule,
|
|
78
|
+
feature: 'users'
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: 'roles',
|
|
83
|
+
title: 'Roles',
|
|
84
|
+
target: {
|
|
85
|
+
module: administrationModule,
|
|
86
|
+
feature: 'roles'
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
id: 'settings',
|
|
91
|
+
title: 'Settings',
|
|
92
|
+
target: {
|
|
93
|
+
module: administrationModule,
|
|
94
|
+
feature: 'settings'
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 'audit',
|
|
99
|
+
title: 'Audit log',
|
|
100
|
+
target: {
|
|
101
|
+
module: administrationModule,
|
|
102
|
+
feature: 'audit'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
export { administrationModule, administrationNavigation, administrationStructure };
|
|
113
|
+
//# sourceMappingURL=navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation.js","sources":["../../navigation.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ApplicationStructure, NavigationModel, NavigationRegionKind, NavigationRegionMode } from '@cratis/scene.model';\nimport { administrationScreenDefinitions } from './administrationScreenSet';\n\n/** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */\nexport const administrationModule = 'admin';\n\n/**\n * The application structure the screen set implies: one module, `admin`, a feature for each screen and the sub-features beneath it (`admin.users.record` is the\n * `record` feature of `users`). Derived from the screen names, so a screen added to the set is part of the structure without a second edit.\n */\nexport const administrationStructure: ApplicationStructure = (() => {\n interface Node { id: string; name: string; features: Node[]; slices: never[] }\n const root: Node = { id: administrationModule, name: 'Administration', features: [], slices: [] };\n for (const screen of administrationScreenDefinitions) {\n let parent = root;\n for (const id of screen.name.split('.').slice(1)) {\n let node = parent.features.find(candidate => candidate.id === id);\n if (!node) {\n node = { id, name: screen.title, features: [], slices: [] };\n parent.features.push(node);\n }\n parent = node;\n }\n }\n\n return { modules: [{ id: root.id, name: root.name, features: root.features }] } as unknown as ApplicationStructure;\n})();\n\n/**\n * The navigation of the application the blueprint is: the topbar names the module, and the module's sidebar - which overrides the application's - lists\n * the four places an administrator goes: Users, Roles, Settings and Audit log.\n */\nexport const administrationNavigation: NavigationModel = {\n application: {\n logo: { image: '', title: 'Administration' },\n regions: [{ region: NavigationRegionKind.Topbar, items: [{ id: 'admin', title: 'Administration', target: { module: administrationModule } }] }],\n },\n modules: [{\n module: administrationModule,\n regions: [{\n region: NavigationRegionKind.Sidebar,\n mode: NavigationRegionMode.Override,\n items: [\n { id: 'users', title: 'Users', target: { module: administrationModule, feature: 'users' } },\n { id: 'roles', title: 'Roles', target: { module: administrationModule, feature: 'roles' } },\n { id: 'settings', title: 'Settings', target: { module: administrationModule, feature: 'settings' } },\n { id: 'audit', title: 'Audit log', target: { module: administrationModule, feature: 'audit' } },\n ],\n }],\n }],\n};\n"],"names":["administrationModule","administrationStructure","root","id","name","features","screen","administrationScreenDefinitions","parent","split","slice","node","find","candidate","title","slices","push","modules","administrationNavigation","application","logo","image","regions","region","NavigationRegionKind","Topbar","items","target","module","Sidebar","mode","NavigationRegionMode","Override","feature"],"mappings":";;;AAAA;AACA;AAKA,8GACO,MAAMA,oBAAAA,GAAuB;AAEpC;;;AAGC,IACM,MAAMC,uBAAAA,GAAiD,CAAA,IAAA;AAE1D,IAAA,MAAMC,IAAAA,GAAa;QAAEC,EAAAA,EAAIH,oBAAAA;QAAsBI,IAAAA,EAAM,gBAAA;AAAkBC,QAAAA,QAAAA,EAAU,EAAe,CAAA;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