@cratis/scene.blueprint.components 4.24.0 → 4.25.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 +3 -0
- package/dist/cjs/templates/commandTemplates.js.map +1 -1
- package/dist/cjs/templates/dialogTemplates.js +6 -3
- package/dist/cjs/templates/dialogTemplates.js.map +1 -1
- package/dist/cjs/templates/editorTemplates.js +4 -2
- package/dist/cjs/templates/editorTemplates.js.map +1 -1
- package/dist/cjs/templates/listTemplates.js +9 -0
- package/dist/cjs/templates/listTemplates.js.map +1 -1
- package/dist/cjs/templates/nesting.js +6 -3
- package/dist/cjs/templates/nesting.js.map +1 -1
- package/dist/cjs/templates/workspaceTemplates.js +4 -2
- package/dist/cjs/templates/workspaceTemplates.js.map +1 -1
- package/dist/esm/templates/commandTemplates.d.ts.map +1 -1
- package/dist/esm/templates/commandTemplates.js +4 -1
- package/dist/esm/templates/commandTemplates.js.map +1 -1
- package/dist/esm/templates/dialogTemplates.js +6 -3
- package/dist/esm/templates/dialogTemplates.js.map +1 -1
- package/dist/esm/templates/editorTemplates.js +4 -2
- package/dist/esm/templates/editorTemplates.js.map +1 -1
- package/dist/esm/templates/listTemplates.d.ts.map +1 -1
- package/dist/esm/templates/listTemplates.js +10 -1
- package/dist/esm/templates/listTemplates.js.map +1 -1
- package/dist/esm/templates/nesting.js +6 -3
- package/dist/esm/templates/nesting.js.map +1 -1
- package/dist/esm/templates/workspaceTemplates.js +4 -2
- package/dist/esm/templates/workspaceTemplates.js.map +1 -1
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
- package/templates/commandTemplates.ts +2 -2
- package/templates/dialogTemplates.ts +3 -3
- package/templates/editorTemplates.ts +2 -2
- package/templates/listTemplates.ts +4 -4
- package/templates/nesting.ts +3 -3
- package/templates/workspaceTemplates.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cratis/scene.blueprint.components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.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.26.4",
|
|
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.25.0",
|
|
56
|
+
"@cratis/scene.components": "4.25.0",
|
|
57
|
+
"@cratis/scene.engine": "4.25.0",
|
|
58
|
+
"@cratis/scene.model": "4.25.0",
|
|
59
|
+
"@cratis/scene.react": "4.25.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@cratis/components": "^4.26.4",
|
|
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.25.0",
|
|
64
|
+
"@cratis/scene.components": "4.25.0",
|
|
65
|
+
"@cratis/scene.engine": "4.25.0",
|
|
66
|
+
"@cratis/scene.model": "4.25.0",
|
|
67
|
+
"@cratis/scene.react": "4.25.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, TemplateScope } from '@cratis/scene.model';
|
|
4
|
+
import { ScreenTemplate, TemplateScope, SliceKind } 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';
|
|
@@ -52,7 +52,7 @@ export const commandFormPageTemplate: ScreenTemplate = {
|
|
|
52
52
|
]),
|
|
53
53
|
],
|
|
54
54
|
},
|
|
55
|
-
metadata: { ...componentsBlueprintTemplateProvenance, type: 'Form', category: 'Business / Command', scopes: [TemplateScope.Slice] },
|
|
55
|
+
metadata: { ...componentsBlueprintTemplateProvenance, type: 'Form', category: 'Business / Command', scopes: [TemplateScope.Slice], sliceKinds: [SliceKind.StateChange] },
|
|
56
56
|
displayName: 'Command form page',
|
|
57
57
|
description: 'A generated command form under a header that states the command, with its own action bar.',
|
|
58
58
|
};
|
|
@@ -54,7 +54,7 @@ export const commandDialogTemplate: DialogTemplate = {
|
|
|
54
54
|
},
|
|
55
55
|
displayName: 'Command dialog',
|
|
56
56
|
description: 'A short capture whose confirm button submits the command and only closes when it succeeded.',
|
|
57
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
57
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Dialog' },
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
/**
|
|
@@ -81,7 +81,7 @@ export const confirmDialogTemplate: DialogTemplate = {
|
|
|
81
81
|
},
|
|
82
82
|
displayName: 'Confirmation dialog',
|
|
83
83
|
description: 'One question with the consequence spelled out, answered through Arc dialog context.',
|
|
84
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
84
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Dialog' },
|
|
85
85
|
};
|
|
86
86
|
|
|
87
87
|
/**
|
|
@@ -102,7 +102,7 @@ export const busyDialogTemplate: DialogTemplate = {
|
|
|
102
102
|
},
|
|
103
103
|
displayName: 'Busy dialog',
|
|
104
104
|
description: 'The blocking spinner shown while a long-running command is in flight, with wording chosen up front.',
|
|
105
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
105
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Dialog' },
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/** The dialog templates this blueprint provides. */
|
|
@@ -62,7 +62,7 @@ export const schemaEditorPageTemplate: ScreenTemplate = {
|
|
|
62
62
|
},
|
|
63
63
|
displayName: 'Schema editor page',
|
|
64
64
|
description: "An event type's schema edited as a typed property tree, with the actions that evolve it.",
|
|
65
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
65
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Editor' },
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
/**
|
|
@@ -125,7 +125,7 @@ export const objectEditorPageTemplate: ScreenTemplate = {
|
|
|
125
125
|
},
|
|
126
126
|
displayName: 'Object editor page',
|
|
127
127
|
description: 'One document edited against its schema, with its navigation trail and its version history.',
|
|
128
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
128
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Editor' },
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
/** The two editor-shaped templates. */
|
|
@@ -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, TemplateScope, WidthSizeClass } from '@cratis/scene.model';
|
|
4
|
+
import { ScreenTemplate, TemplateScope, SliceKind, 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';
|
|
@@ -56,7 +56,7 @@ export const dataListPageTemplate: ScreenTemplate = {
|
|
|
56
56
|
],
|
|
57
57
|
[TemplateSlotName.Body]: [dataPage('data-list-body', SampleBindingName.AllInvoices, invoiceTableOptions, invoiceColumns)],
|
|
58
58
|
},
|
|
59
|
-
metadata: { ...componentsBlueprintTemplateProvenance, type: 'List', category: 'Business / List', scopes: [TemplateScope.Slice] },
|
|
59
|
+
metadata: { ...componentsBlueprintTemplateProvenance, type: 'List', category: 'Business / List', scopes: [TemplateScope.Slice], sliceKinds: [SliceKind.StateView] },
|
|
60
60
|
displayName: 'Data list page',
|
|
61
61
|
description: 'A dataPage bound to one query, under a header that states the binding - the whole list screen in two elements.',
|
|
62
62
|
};
|
|
@@ -89,7 +89,7 @@ export const observableDataListPageTemplate: ScreenTemplate = {
|
|
|
89
89
|
]),
|
|
90
90
|
],
|
|
91
91
|
},
|
|
92
|
-
metadata: { ...componentsBlueprintTemplateProvenance, type: 'List', category: 'Business / Live operations', scopes: [TemplateScope.Slice] },
|
|
92
|
+
metadata: { ...componentsBlueprintTemplateProvenance, type: 'List', category: 'Business / Live operations', scopes: [TemplateScope.Slice], sliceKinds: [SliceKind.StateView] },
|
|
93
93
|
displayName: 'Observable data list page',
|
|
94
94
|
description: 'A live list over an observable query, which re-renders when the read model changes on the server.',
|
|
95
95
|
};
|
|
@@ -137,7 +137,7 @@ export const dataListWithDetailPageTemplate: ScreenTemplate = {
|
|
|
137
137
|
]),
|
|
138
138
|
],
|
|
139
139
|
},
|
|
140
|
-
metadata: { ...componentsBlueprintTemplateProvenance, type: 'Detail', category: 'Business / Master detail', scopes: [TemplateScope.Slice] },
|
|
140
|
+
metadata: { ...componentsBlueprintTemplateProvenance, type: 'Detail', category: 'Business / Master detail', scopes: [TemplateScope.Slice], sliceKinds: [SliceKind.StateView] },
|
|
141
141
|
displayName: 'Data list with detail page',
|
|
142
142
|
description: 'A dataPage beside a detail region showing the selected record document and its history.',
|
|
143
143
|
};
|
package/templates/nesting.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const dataModulePageTemplate: ScreenTemplate = {
|
|
|
51
51
|
},
|
|
52
52
|
displayName: 'Data module page',
|
|
53
53
|
description: 'Module level: fits the application layout content slot and offers a body for one feature.',
|
|
54
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
54
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Workspace' },
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -82,7 +82,7 @@ export const dataFeatureSectionTemplate: ScreenTemplate = {
|
|
|
82
82
|
},
|
|
83
83
|
displayName: 'Data feature section',
|
|
84
84
|
description: 'Feature level: fits a module page body slot, brings the action toolbar and a live view.',
|
|
85
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
85
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Section' },
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
/**
|
|
@@ -115,7 +115,7 @@ export const commandSliceSectionTemplate: ScreenTemplate = {
|
|
|
115
115
|
},
|
|
116
116
|
displayName: 'Command slice section',
|
|
117
117
|
description: 'Slice level: fits a feature section primary slot and hosts one command behavior.',
|
|
118
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
118
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Section' },
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
/** The chain, outermost first - what a spec walks to prove `fitsSlot` resolves at every level. */
|
|
@@ -83,7 +83,7 @@ export const masterDetailPageTemplate: ScreenTemplate = {
|
|
|
83
83
|
},
|
|
84
84
|
displayName: 'Master-detail page',
|
|
85
85
|
description: 'A queried list in the larger column with the selected record and its history in the narrower one.',
|
|
86
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
86
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Master detail' },
|
|
87
87
|
};
|
|
88
88
|
|
|
89
89
|
/**
|
|
@@ -159,7 +159,7 @@ export const dashboardPageTemplate: ScreenTemplate = {
|
|
|
159
159
|
},
|
|
160
160
|
displayName: 'Dashboard page',
|
|
161
161
|
description: 'A row of query-backed widgets over a wide and a narrow column, each bound to its own query.',
|
|
162
|
-
metadata: { ...componentsBlueprintTemplateProvenance },
|
|
162
|
+
metadata: { ...componentsBlueprintTemplateProvenance, category: 'Business / Dashboard' },
|
|
163
163
|
};
|
|
164
164
|
|
|
165
165
|
/** The two workspace-shaped templates. */
|