@formicoidea/labre-framework-ddd-aggregate 0.37.0 → 0.38.2
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/templates.js +11 -2
- package/dist/view.d.ts +10 -6
- package/dist/view.js +10 -10
- package/package.json +2 -3
package/dist/templates.js
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { makeTemplateSnapshot, surfaceText, } from '@formicoidea/labre-core/gfx/template';
|
|
2
2
|
import { FontFamily, ShapeStyle, TextAlign } from '@formicoidea/labre-core/model';
|
|
3
3
|
const DARK = '#323d4f';
|
|
4
|
+
/**
|
|
5
|
+
* The header band, and why it is not `DARK`.
|
|
6
|
+
*
|
|
7
|
+
* It was drawn dark on the dark ground, so the canvas's one title bar was
|
|
8
|
+
* invisible — the white heading floated on nothing and the nine numbered
|
|
9
|
+
* sections started straight under the top edge. Two steps lighter on the same
|
|
10
|
+
* hue reads as a band without turning it into a tenth section.
|
|
11
|
+
*/
|
|
12
|
+
const HEADER_BAND = '#41506a';
|
|
4
13
|
const WHITE = '#ffffff';
|
|
5
14
|
function box(x, y, w, h) {
|
|
6
15
|
return {
|
|
@@ -46,7 +55,7 @@ function aggregateCanvas() {
|
|
|
46
55
|
type: 'shape',
|
|
47
56
|
shapeType: 'rect',
|
|
48
57
|
filled: true,
|
|
49
|
-
fillColor:
|
|
58
|
+
fillColor: HEADER_BAND,
|
|
50
59
|
strokeColor: '#00000000',
|
|
51
60
|
strokeWidth: 0,
|
|
52
61
|
shapeStyle: ShapeStyle.General,
|
|
@@ -75,7 +84,7 @@ function aggregateCanvas() {
|
|
|
75
84
|
sizeTitle: title(738, 532, '9. Size'),
|
|
76
85
|
};
|
|
77
86
|
}
|
|
78
|
-
const PREVIEW = `<svg width="100%" height="100%" viewBox="0 0 135 80" xmlns="http://www.w3.org/2000/svg"><rect width="135" height="80" fill="#323d4f"/><rect x="3" y="3" width="129" height="6" fill="
|
|
87
|
+
const PREVIEW = `<svg width="100%" height="100%" viewBox="0 0 135 80" xmlns="http://www.w3.org/2000/svg"><rect width="135" height="80" fill="#323d4f"/><rect x="3" y="3" width="129" height="6" fill="${HEADER_BAND}"/><g fill="#fff"><rect x="3" y="11" width="42" height="6"/><rect x="3" y="19" width="42" height="22"/><rect x="47" y="11" width="85" height="28"/><rect x="3" y="43" width="42" height="16"/><rect x="3" y="61" width="42" height="16"/><rect x="47" y="43" width="42" height="16"/><rect x="47" y="61" width="42" height="16"/><rect x="91" y="43" width="41" height="16"/><rect x="91" y="61" width="41" height="16"/></g></svg>`;
|
|
79
88
|
/**
|
|
80
89
|
* Standalone Aggregate Design Canvas section (gated by `ddd-templates`). Unlike
|
|
81
90
|
* the per-senior-button categories (which live in the shared package), this one
|
package/dist/view.d.ts
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { ViewExtensionProvider } from '@formicoidea/labre-core/ext-loader';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
3
|
+
* The Aggregate Design Canvas category — flag-gated (`ddd-templates`).
|
|
4
|
+
*
|
|
5
|
+
* ONLY this one. The three senior-button categories (Event Storming, Core
|
|
6
|
+
* Domain Chart, Context Map) are registered by the framework that owns the
|
|
7
|
+
* commands they derive from, under that framework's own flag, exactly like
|
|
8
|
+
* Wardley, C4, BPMN or EDGY do. This package used to register all four, which
|
|
9
|
+
* made the aggregate bundle import three sibling FRAMEWORK bundles — a
|
|
10
|
+
* dependency the bundle layout does not allow (a framework bundle depends on
|
|
11
|
+
* core and on shared bundles only, `scripts/build-bundles.mjs`), and the
|
|
12
|
+
* publish of 0.38.0 stopped on it.
|
|
9
13
|
*/
|
|
10
14
|
export declare class DddTemplatesViewExtension extends ViewExtensionProvider {
|
|
11
15
|
name: string;
|
package/dist/view.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { ViewExtensionProvider } from '@formicoidea/labre-core/ext-loader';
|
|
2
|
-
import { contextMapTemplateCategory, coreDomainTemplateCategory, eventStormingTemplateCategory, } from '@formicoidea/labre-ddd-shared';
|
|
3
2
|
import { extendTemplateCategory } from '@formicoidea/labre-core/gfx/template';
|
|
4
3
|
import { aggregateTemplateCategory } from './templates.js';
|
|
5
4
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
5
|
+
* The Aggregate Design Canvas category — flag-gated (`ddd-templates`).
|
|
6
|
+
*
|
|
7
|
+
* ONLY this one. The three senior-button categories (Event Storming, Core
|
|
8
|
+
* Domain Chart, Context Map) are registered by the framework that owns the
|
|
9
|
+
* commands they derive from, under that framework's own flag, exactly like
|
|
10
|
+
* Wardley, C4, BPMN or EDGY do. This package used to register all four, which
|
|
11
|
+
* made the aggregate bundle import three sibling FRAMEWORK bundles — a
|
|
12
|
+
* dependency the bundle layout does not allow (a framework bundle depends on
|
|
13
|
+
* core and on shared bundles only, `scripts/build-bundles.mjs`), and the
|
|
14
|
+
* publish of 0.38.0 stopped on it.
|
|
12
15
|
*/
|
|
13
16
|
export class DddTemplatesViewExtension extends ViewExtensionProvider {
|
|
14
17
|
constructor() {
|
|
@@ -17,9 +20,6 @@ export class DddTemplatesViewExtension extends ViewExtensionProvider {
|
|
|
17
20
|
}
|
|
18
21
|
effect() {
|
|
19
22
|
super.effect();
|
|
20
|
-
extendTemplateCategory(eventStormingTemplateCategory);
|
|
21
|
-
extendTemplateCategory(coreDomainTemplateCategory);
|
|
22
|
-
extendTemplateCategory(contextMapTemplateCategory);
|
|
23
23
|
extendTemplateCategory(aggregateTemplateCategory);
|
|
24
24
|
}
|
|
25
25
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-ddd-aggregate",
|
|
3
3
|
"description": "Labre ddd-aggregate framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.38.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -27,8 +27,7 @@
|
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@formicoidea/labre-core": "0.
|
|
31
|
-
"@formicoidea/labre-ddd-shared": "0.37.0",
|
|
30
|
+
"@formicoidea/labre-core": "0.38.2",
|
|
32
31
|
"lit": "^3.2.0"
|
|
33
32
|
}
|
|
34
33
|
}
|