@cratis/scene.blueprint.components 4.8.0 → 4.10.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/dist/cjs/templates/commandTemplates.js +8 -0
- package/dist/cjs/templates/commandTemplates.js.map +1 -1
- package/dist/cjs/templates/listTemplates.js +21 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -1
- package/dist/esm/templates/commandTemplates.d.ts.map +1 -1
- package/dist/esm/templates/commandTemplates.js +8 -0
- package/dist/esm/templates/commandTemplates.js.map +1 -1
- package/dist/esm/templates/listTemplates.d.ts.map +1 -1
- package/dist/esm/templates/listTemplates.js +22 -1
- package/dist/esm/templates/listTemplates.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/templates/commandTemplates.ts +2 -1
- package/templates/listTemplates.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/scene.blueprint.components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
4
4
|
"description": "A blueprint of Arc-bound screen and dialog templates: full pages built from Cratis Components composites, so a data list, a command form or a master-detail screen is a template rather than something you assemble.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cratis",
|
|
@@ -52,19 +52,19 @@
|
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@cratis/components": "^4.25.0",
|
|
55
|
-
"@cratis/scene.blueprint.default": "4.
|
|
56
|
-
"@cratis/scene.components": "4.
|
|
57
|
-
"@cratis/scene.engine": "4.
|
|
58
|
-
"@cratis/scene.model": "4.
|
|
59
|
-
"@cratis/scene.react": "4.
|
|
55
|
+
"@cratis/scene.blueprint.default": "4.10.0",
|
|
56
|
+
"@cratis/scene.components": "4.10.0",
|
|
57
|
+
"@cratis/scene.engine": "4.10.0",
|
|
58
|
+
"@cratis/scene.model": "4.10.0",
|
|
59
|
+
"@cratis/scene.react": "4.10.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@cratis/components": "^4.25.0",
|
|
63
|
-
"@cratis/scene.blueprint.default": "4.
|
|
64
|
-
"@cratis/scene.components": "4.
|
|
65
|
-
"@cratis/scene.engine": "4.
|
|
66
|
-
"@cratis/scene.model": "4.
|
|
67
|
-
"@cratis/scene.react": "4.
|
|
63
|
+
"@cratis/scene.blueprint.default": "4.10.0",
|
|
64
|
+
"@cratis/scene.components": "4.10.0",
|
|
65
|
+
"@cratis/scene.engine": "4.10.0",
|
|
66
|
+
"@cratis/scene.model": "4.10.0",
|
|
67
|
+
"@cratis/scene.react": "4.10.0",
|
|
68
68
|
"@primereact/core": "11.2.0",
|
|
69
69
|
"@primereact/headless": "11.2.0",
|
|
70
70
|
"@storybook/addon-links": "^10.6.1",
|
|
@@ -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 { ScreenTemplate } from '@cratis/scene.model';
|
|
4
|
+
import { ScreenTemplate, TemplateScope } from '@cratis/scene.model';
|
|
5
5
|
import { SlotName, TemplateSlotName, column, slotLeaf } from '@cratis/scene.blueprint.default';
|
|
6
6
|
import { arcPageHeader, page, toolbar, toolbarButton, toolbarSeparator } from './elements';
|
|
7
7
|
import { commandForm } from './formElements';
|
|
@@ -51,6 +51,7 @@ export const commandFormPageTemplate: ScreenTemplate = {
|
|
|
51
51
|
]),
|
|
52
52
|
],
|
|
53
53
|
},
|
|
54
|
+
metadata: { type: 'Form', category: 'Business / Command', scopes: [TemplateScope.Slice] },
|
|
54
55
|
displayName: 'Command form page',
|
|
55
56
|
description: 'A generated command form under a header that states the command, with its own action bar.',
|
|
56
57
|
};
|
|
@@ -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 { ScreenTemplate, WidthSizeClass } from '@cratis/scene.model';
|
|
4
|
+
import { ScreenTemplate, TemplateScope, WidthSizeClass } from '@cratis/scene.model';
|
|
5
5
|
import { SlotName, TemplateSlotName, column, row, slotLeaf } from '@cratis/scene.blueprint.default';
|
|
6
6
|
import { dataPage, invoiceColumns, invoiceTableOptions, observableDataTable } from './dataElements';
|
|
7
7
|
import { objectContentEditor, objectNavigationalBar, timeMachine } from './editorElements';
|
|
@@ -55,6 +55,7 @@ export const dataListPageTemplate: ScreenTemplate = {
|
|
|
55
55
|
],
|
|
56
56
|
[TemplateSlotName.Body]: [dataPage('data-list-body', SampleBindingName.AllInvoices, invoiceTableOptions, invoiceColumns)],
|
|
57
57
|
},
|
|
58
|
+
metadata: { type: 'List', category: 'Business / List', scopes: [TemplateScope.Slice] },
|
|
58
59
|
displayName: 'Data list page',
|
|
59
60
|
description: 'A dataPage bound to one query, under a header that states the binding - the whole list screen in two elements.',
|
|
60
61
|
};
|
|
@@ -87,6 +88,7 @@ export const observableDataListPageTemplate: ScreenTemplate = {
|
|
|
87
88
|
]),
|
|
88
89
|
],
|
|
89
90
|
},
|
|
91
|
+
metadata: { type: 'List', category: 'Business / Live operations', scopes: [TemplateScope.Slice] },
|
|
90
92
|
displayName: 'Observable data list page',
|
|
91
93
|
description: 'A live list over an observable query, which re-renders when the read model changes on the server.',
|
|
92
94
|
};
|
|
@@ -134,6 +136,7 @@ export const dataListWithDetailPageTemplate: ScreenTemplate = {
|
|
|
134
136
|
]),
|
|
135
137
|
],
|
|
136
138
|
},
|
|
139
|
+
metadata: { type: 'Detail', category: 'Business / Master detail', scopes: [TemplateScope.Slice] },
|
|
137
140
|
displayName: 'Data list with detail page',
|
|
138
141
|
description: 'A dataPage beside a detail region showing the selected record document and its history.',
|
|
139
142
|
};
|