@cratis/scene.blueprint.administration 4.87.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/navigation.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Copyright (c) Cratis. All rights reserved.
2
2
  // Licensed under the MIT license. See LICENSE file in the project root for full license information.
3
3
 
4
- import { ApplicationStructure, NavigationModel, NavigationRegionKind, NavigationRegionMode } from '@cratis/scene.model';
4
+ import { ApplicationStructure, NavigationModel, NavigationRegionKind, OutletItemKind, OutletKind, OutletMode } from '@cratis/scene.model';
5
5
  import { administrationScreenDefinitions } from './administrationScreenSet';
6
6
 
7
7
  /** The module the blueprint's screens live in, and so the first segment of every screen's qualified name. */
@@ -36,18 +36,18 @@ export const administrationStructure: ApplicationStructure = (() => {
36
36
  export const administrationNavigation: NavigationModel = {
37
37
  application: {
38
38
  logo: { image: '', title: 'Administration' },
39
- regions: [{ region: NavigationRegionKind.Topbar, items: [{ id: 'admin', title: 'Administration', target: { module: administrationModule } }] }],
39
+ outlets: [{ name: NavigationRegionKind.Topbar, kind: OutletKind.Navigation, defaults: [{ kind: OutletItemKind.Navigation, id: 'admin', title: 'Administration', target: { module: administrationModule } }] }],
40
40
  },
41
41
  modules: [{
42
42
  module: administrationModule,
43
- regions: [{
44
- region: NavigationRegionKind.Sidebar,
45
- mode: NavigationRegionMode.Override,
43
+ refinements: [{
44
+ outlet: NavigationRegionKind.Sidebar,
45
+ mode: OutletMode.Overrides,
46
46
  items: [
47
- { id: 'users', title: 'Users', target: { module: administrationModule, feature: 'users' } },
48
- { id: 'roles', title: 'Roles', target: { module: administrationModule, feature: 'roles' } },
49
- { id: 'settings', title: 'Settings', target: { module: administrationModule, feature: 'settings' } },
50
- { id: 'audit', title: 'Audit log', target: { module: administrationModule, feature: 'audit' } },
47
+ { kind: OutletItemKind.Navigation, id: 'users', title: 'Users', target: { module: administrationModule, feature: 'users' } },
48
+ { kind: OutletItemKind.Navigation, id: 'roles', title: 'Roles', target: { module: administrationModule, feature: 'roles' } },
49
+ { kind: OutletItemKind.Navigation, id: 'settings', title: 'Settings', target: { module: administrationModule, feature: 'settings' } },
50
+ { kind: OutletItemKind.Navigation, id: 'audit', title: 'Audit log', target: { module: administrationModule, feature: 'audit' } },
51
51
  ],
52
52
  }],
53
53
  }],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cratis/scene.blueprint.administration",
3
- "version": "4.87.0",
3
+ "version": "5.0.0",
4
4
  "description": "Users, roles and permissions, settings and an audit log for an administrator.",
5
5
  "homepage": "https://www.cratis.io/screenplay/",
6
6
  "keywords": [
@@ -52,16 +52,16 @@
52
52
  "up": "yarn g:up"
53
53
  },
54
54
  "dependencies": {
55
- "@cratis/scene.blueprint.default": "4.87.0",
56
- "@cratis/scene.engine": "4.87.0",
57
- "@cratis/scene.model": "4.87.0",
58
- "@cratis/scene.react": "4.87.0"
55
+ "@cratis/scene.blueprint.default": "5.0.0",
56
+ "@cratis/scene.engine": "5.0.0",
57
+ "@cratis/scene.model": "5.0.0",
58
+ "@cratis/scene.react": "5.0.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@cratis/scene.blueprint.default": "4.87.0",
62
- "@cratis/scene.engine": "4.87.0",
63
- "@cratis/scene.model": "4.87.0",
64
- "@cratis/scene.react": "4.87.0",
61
+ "@cratis/scene.blueprint.default": "5.0.0",
62
+ "@cratis/scene.engine": "5.0.0",
63
+ "@cratis/scene.model": "5.0.0",
64
+ "@cratis/scene.react": "5.0.0",
65
65
  "@primereact/core": "11.2.0",
66
66
  "@primereact/headless": "11.2.0",
67
67
  "primeicons": "8.0.2",
@@ -61,6 +61,7 @@ function listTemplateOf(options: ListOptions): ScreenTemplate {
61
61
  name: options.name,
62
62
  fitsSlot: 'content',
63
63
  slots: listScreenTemplate.slots,
64
+ outlets: listScreenTemplate.outlets,
64
65
  arrangement: listScreenTemplate.arrangement,
65
66
  content: {
66
67
  header: [component(`${id}-header`, 'pageHeader', { title: options.title, subtitle: options.subtitle }, { actions: primary ? [exportAction(`${id}-export`), primary] : [exportAction(`${id}-export`)] })],
@@ -16,6 +16,7 @@ export const administrationUserPageTemplate: ScreenTemplate = {
16
16
  name: 'AdministrationUserPage',
17
17
  fitsSlot: 'content',
18
18
  slots: recordPageTemplate.slots,
19
+ outlets: recordPageTemplate.outlets,
19
20
  arrangement: recordPageTemplate.arrangement,
20
21
  content: {
21
22
  header: [component('AdministrationUserPage-header', 'pageHeader', { title: fromQuery(user.record, '0.name'), subtitle: fromQuery(user.record, '0.email') }, {
@@ -18,6 +18,7 @@ export const administrationRolesTemplate: ScreenTemplate = {
18
18
  name: 'AdministrationRoles',
19
19
  fitsSlot: 'content',
20
20
  slots: masterDetailScreenTemplate.slots,
21
+ outlets: masterDetailScreenTemplate.outlets,
21
22
  arrangement: masterDetailScreenTemplate.arrangement,
22
23
  content: {
23
24
  list: [