@formicoidea/labre-framework-wardley 0.32.0 → 0.34.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/dist/actions.d.ts +49 -2
- package/dist/actions.js +113 -21
- package/dist/commands-manifest.d.ts +18 -0
- package/dist/commands-manifest.js +146 -0
- package/dist/commands.d.ts +4 -0
- package/dist/commands.js +166 -4
- package/dist/element-view.d.ts +22 -0
- package/dist/element-view.js +35 -12
- package/dist/export.d.ts +211 -0
- package/dist/export.js +655 -0
- package/dist/gradient.js +1 -1
- package/dist/import.d.ts +116 -0
- package/dist/import.js +905 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +22 -0
- package/dist/interchange.d.ts +80 -0
- package/dist/interchange.js +138 -0
- package/dist/node/node-renderer.js +1 -1
- package/dist/rules.js +16 -0
- package/dist/templates/index.js +15 -3
- package/dist/templates/maps.js +26 -6
- package/dist/toolbar/config.d.ts +10 -2
- package/dist/toolbar/config.js +12 -5
- package/dist/toolbar/icons.d.ts +20 -0
- package/dist/toolbar/icons.js +34 -0
- package/dist/toolbar/senior-tool.js +1 -0
- package/dist/toolbar/wardley-senior-button.js +12 -6
- package/dist/translations.js +8 -2
- package/dist/view.js +13 -2
- package/package.json +6 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DefaultTool } from '@formicoidea/labre-core/blocks/surface';
|
|
2
2
|
import { EmptyTool } from '@formicoidea/labre-core/gfx/pointer';
|
|
3
|
+
import { translateKey } from '@formicoidea/labre-core/shared/services';
|
|
3
4
|
import { EdgelessToolbarToolMixin } from '@formicoidea/labre-core/widgets/edgeless-toolbar';
|
|
4
5
|
import { SignalWatcher } from '@formicoidea/labre-core/global/lit';
|
|
5
6
|
import { css, html, LitElement } from 'lit';
|
|
@@ -46,12 +47,15 @@ export class EdgelessWardleySeniorButton extends EdgelessToolbarToolMixin(Signal
|
|
|
46
47
|
bottom: 0;
|
|
47
48
|
width: 54px;
|
|
48
49
|
height: 54px;
|
|
49
|
-
transform: translateY(var(--y)) scale(var(--s));
|
|
50
|
-
translate: var(--active-x, 0) var(--active-y, 0);
|
|
50
|
+
transform: translateY(var(--y)) scale(var(--s)); /* base */
|
|
51
|
+
translate: var(--active-x, 0) var(--active-y, 0); /* actif */
|
|
51
52
|
rotate: var(--active-r, -2deg);
|
|
52
|
-
|
|
53
|
-
transition:
|
|
54
|
-
|
|
53
|
+
scale: var(--active-s, 1);
|
|
54
|
+
transition:
|
|
55
|
+
transform 0.3s ease,
|
|
56
|
+
translate 0.3s ease,
|
|
57
|
+
rotate 0.3s ease,
|
|
58
|
+
scale 0.3s ease;
|
|
55
59
|
}
|
|
56
60
|
.wardley-card svg {
|
|
57
61
|
display: block;
|
|
@@ -79,7 +83,9 @@ export class EdgelessWardleySeniorButton extends EdgelessToolbarToolMixin(Signal
|
|
|
79
83
|
render() {
|
|
80
84
|
return html `<edgeless-toolbar-button
|
|
81
85
|
class="wardley-button"
|
|
82
|
-
.tooltip=${this.popper
|
|
86
|
+
.tooltip=${this.popper
|
|
87
|
+
? ''
|
|
88
|
+
: translateKey(this.edgeless.std, 'com.labre.framework.wardley', 'Wardley map')}
|
|
83
89
|
.tooltipOffset=${4}
|
|
84
90
|
.active=${!!this.popper}
|
|
85
91
|
@click=${this._toggleMenu}
|
package/dist/translations.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { collectTranslationKeys, commandTranslationEntries, mergeTranslationEntries, } from '@formicoidea/labre-core/std';
|
|
1
|
+
import { collectTranslationKeys, commandCategoryTranslationEntries, commandTranslationEntries, mergeTranslationEntries, } from '@formicoidea/labre-core/std';
|
|
2
2
|
import { WARDLEY_AUDIT_CRITERIA } from './audit-criteria.js';
|
|
3
3
|
import { WARDLEY_BACKGROUND } from './background.js';
|
|
4
4
|
import { wardleyCommands } from './commands.js';
|
|
@@ -21,4 +21,10 @@ import { WARDLEY_RULES } from './rules.js';
|
|
|
21
21
|
* complete in the monorepo and silently 61 % short (107 keys of 175) in the
|
|
22
22
|
* distribution hosts actually consume.
|
|
23
23
|
*/
|
|
24
|
-
export const wardleyTranslationEntries = mergeTranslationEntries(commandTranslationEntries(wardleyCommands),
|
|
24
|
+
export const wardleyTranslationEntries = mergeTranslationEntries(commandTranslationEntries(wardleyCommands),
|
|
25
|
+
// The catalogue's own group headers, derived from the very categories
|
|
26
|
+
// these commands declare. They ship WITH the framework because core's
|
|
27
|
+
// registry names no framework category in the bundled distribution, so a
|
|
28
|
+
// host that composed core's manifest alone drew translated entries under
|
|
29
|
+
// English headers (#183).
|
|
30
|
+
commandCategoryTranslationEntries(wardleyCommands), collectTranslationKeys('role', WARDLEY_ROLES), collectTranslationKeys('background', WARDLEY_BACKGROUND), collectTranslationKeys('rule', WARDLEY_RULES), collectTranslationKeys('nudge', WARDLEY_NUDGES), collectTranslationKeys('profile', WARDLEY_PROFILES), collectTranslationKeys('audit-criterion', WARDLEY_AUDIT_CRITERIA), collectTranslationKeys('reading', WARDLEY_READING));
|
package/dist/view.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReadingProfileExtension, tagsToolbarConfig, validationToolbarConfig, QualityNudgeExtension, ValidationProfileExtension, ValidationRuleExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
1
|
+
import { InterchangeExtension, ReadingProfileExtension, tagsToolbarConfig, validationToolbarConfig, QualityNudgeExtension, ValidationProfileExtension, ValidationRuleExtension, } from '@formicoidea/labre-core/blocks/surface';
|
|
2
2
|
import { AuditCriterionExtension, ToolbarModuleExtension, UniverseTagDefsExtension, } from '@formicoidea/labre-core/shared/services';
|
|
3
3
|
import { ViewExtensionProvider, } from '@formicoidea/labre-core/ext-loader';
|
|
4
4
|
import { extendTemplateCategory } from '@formicoidea/labre-core/gfx/template';
|
|
@@ -7,6 +7,7 @@ import { RoleVocabularyExtension } from '@formicoidea/labre-core/std/gfx';
|
|
|
7
7
|
import { WARDLEY_AUDIT_CRITERIA } from './audit-criteria.js';
|
|
8
8
|
import { wardleyCommandIcons, wardleyCommands } from './commands.js';
|
|
9
9
|
import { effects } from './effects.js';
|
|
10
|
+
import { WARDLEY_INTERCHANGE } from './interchange.js';
|
|
10
11
|
import { WARDLEY_TAG_DEFS } from './natures.js';
|
|
11
12
|
import { WARDLEY_PROFILES } from './profiles.js';
|
|
12
13
|
import { WARDLEY_NUDGES } from './nudges.js';
|
|
@@ -75,6 +76,15 @@ export class WardleyViewExtension extends ViewExtensionProvider {
|
|
|
75
76
|
if (this.isEdgeless(context.scope)) {
|
|
76
77
|
context.register(ValidationRuleExtension(WARDLEY_RULES));
|
|
77
78
|
context.register(ValidationProfileExtension(WARDLEY_PROFILES));
|
|
79
|
+
// Both directions of the OWM DSL, and the SVG fallback that reads a
|
|
80
|
+
// picture of a map (`docs/adr/0012`, P1) — ONE registration, because the
|
|
81
|
+
// unit of declaration is the capability and `WARDLEY_INTERCHANGE` is the
|
|
82
|
+
// list of them. HERE, beside the rules, because offering to read or write
|
|
83
|
+
// a file is TOOLING: turning the wardley flag off removes the three
|
|
84
|
+
// commands and leaves every element a past import created — and every
|
|
85
|
+
// byte of `interchange` they carry — exactly where it is
|
|
86
|
+
// (`docs/adr/0009`).
|
|
87
|
+
context.register(InterchangeExtension(WARDLEY_INTERCHANGE));
|
|
78
88
|
// Map quality (PF13.9): the four nudges the tool cannot judge, and
|
|
79
89
|
// nothing else — the on-demand check-up Wardley used to expose beside
|
|
80
90
|
// them was dropped on the PO recette of 02/08/2026. The engine keeps the
|
|
@@ -132,7 +142,8 @@ export class WardleyViewExtension extends ViewExtensionProvider {
|
|
|
132
142
|
// the flag without either side naming the other.
|
|
133
143
|
context.register(ReadingProfileExtension(WARDLEY_READING));
|
|
134
144
|
context.register(wardleySeniorTool);
|
|
135
|
-
// The
|
|
145
|
+
// The Wardley commands — thirteen artefacts plus the two directions of
|
|
146
|
+
// the OWM DSL — ONE registration for both faces: the
|
|
136
147
|
// enumerable registry the sub-menu renders from, and — through
|
|
137
148
|
// `toShortcutDescriptor` — the edgeless chords (w+c, w+l, ...).
|
|
138
149
|
// Registering here inherits both the wardley flag gating and the
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formicoidea/labre-framework-wardley",
|
|
3
3
|
"description": "Labre wardley framework for @formicoidea/labre-core.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.34.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"author": "lajola",
|
|
@@ -21,13 +21,17 @@
|
|
|
21
21
|
"./descriptor": {
|
|
22
22
|
"types": "./dist/descriptor.d.ts",
|
|
23
23
|
"import": "./dist/descriptor.js"
|
|
24
|
+
},
|
|
25
|
+
"./commands-manifest": {
|
|
26
|
+
"types": "./dist/commands-manifest.d.ts",
|
|
27
|
+
"import": "./dist/commands-manifest.js"
|
|
24
28
|
}
|
|
25
29
|
},
|
|
26
30
|
"files": [
|
|
27
31
|
"dist"
|
|
28
32
|
],
|
|
29
33
|
"dependencies": {
|
|
30
|
-
"@formicoidea/labre-core": "0.
|
|
34
|
+
"@formicoidea/labre-core": "0.34.1",
|
|
31
35
|
"lit": "^3.2.0"
|
|
32
36
|
}
|
|
33
37
|
}
|