@bpmn-nova/studio 0.3.8-preview → 0.4.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/README.md +2 -2
- package/dist/canvas.js +97 -25
- package/dist/config.js +42 -0
- package/dist/context-menu.js +41 -32
- package/dist/controller.js +45 -19
- package/dist/index.d.ts +59 -2
- package/dist/index.js +1 -0
- package/dist/interactions.js +6 -1
- package/dist/modules/bpmn-model/index.d.ts +2 -1
- package/dist/modules/bpmn-model/index.js +12 -10
- package/dist/modules/core/gateway.js +16 -13
- package/dist/modules/core/index.d.ts +6 -4
- package/dist/modules/core/model.js +12 -7
- package/dist/modules/designer/index.d.ts +5 -1
- package/dist/modules/designer/index.js +36 -15
- package/dist/modules/export-svg/index.d.ts +12 -5
- package/dist/modules/export-svg/preview.js +34 -24
- package/dist/modules/export-svg/render.js +102 -50
- package/dist/modules/i18n/index.d.ts +647 -0
- package/dist/modules/i18n/index.js +247 -0
- package/dist/modules/i18n/locales/en-US.js +823 -0
- package/dist/modules/i18n/locales/zh-CN.js +805 -0
- package/dist/modules/node-presentation/index.d.ts +3 -2
- package/dist/modules/node-presentation/index.js +14 -11
- package/dist/modules/palette/index.d.ts +6 -1
- package/dist/modules/palette/index.js +26 -8
- package/dist/modules/palette/panel.js +44 -6
- package/dist/modules/properties/index.d.ts +2 -1
- package/dist/modules/properties/index.js +2 -2
- package/dist/modules/properties-activiti/index.js +84 -59
- package/dist/modules/properties-bpmn/index.js +151 -128
- package/dist/modules/properties-core/index.d.ts +9 -3
- package/dist/modules/properties-core/index.js +16 -4
- package/dist/modules/properties-flowable/index.js +55 -34
- package/dist/modules/properties-renderer/index.d.ts +5 -1
- package/dist/modules/properties-renderer/index.js +110 -42
- package/dist/modules/renderer-svg/index.d.ts +6 -2
- package/dist/modules/renderer-svg/index.js +113 -38
- package/dist/modules/runtime/index.d.ts +33 -5
- package/dist/modules/runtime/index.js +97 -73
- package/dist/modules/runtime/time.js +89 -4
- package/dist/modules/runtime/visits.js +6 -4
- package/dist/modules/theme/index.d.ts +5 -2
- package/dist/modules/theme/index.js +8 -4
- package/dist/modules/viewer/index.d.ts +28 -7
- package/dist/modules/viewer/index.js +213 -56
- package/dist/modules/viewer/runtime-content.js +26 -20
- package/dist/modules/viewer/runtime-trace.js +43 -25
- package/dist/modules/viewer/timeline.js +103 -36
- package/dist/shell.js +279 -75
- package/dist/sidebars.js +3 -1
- package/dist/styles.css +6 -3
- package/llms-full.txt +296 -49
- package/llms.txt +4 -4
- package/package.json +2 -3
package/dist/sidebars.js
CHANGED
|
@@ -160,7 +160,9 @@ export class StudioSidebars {
|
|
|
160
160
|
panel.hidden = state[side].hidden;
|
|
161
161
|
button.hidden = buttonHidden;
|
|
162
162
|
button.setAttribute('aria-expanded', String(!state[side].collapsed));
|
|
163
|
-
const label =
|
|
163
|
+
const label = this.shell._t
|
|
164
|
+
? this.shell._t('shell.sidebar.toggle', { collapsed: state[side].collapsed, side })
|
|
165
|
+
: `${state[side].collapsed ? '展开' : '收起'}${side === 'left' ? '左侧节点面板' : '右侧面板'}`;
|
|
164
166
|
button.setAttribute('aria-label', label);
|
|
165
167
|
button.title = label;
|
|
166
168
|
button.textContent = (side === 'left') !== state[side].collapsed ? '‹' : '›';
|
package/dist/styles.css
CHANGED
|
@@ -926,8 +926,9 @@ button.mb-runtime-action-summary:hover, button.mb-runtime-action-summary:focus-v
|
|
|
926
926
|
.mb-runtime-asset-preview-state { color: var(--nova-color-text-muted, #7f899a); font-size: var(--nova-font-size-sm, 12px); }
|
|
927
927
|
|
|
928
928
|
/* Runtime timeline projection */
|
|
929
|
-
.mb-runtime-timeline-host { position: relative; width: 100%; height: 100%; min-height: 0; overflow
|
|
930
|
-
.mb-runtime-timeline-
|
|
929
|
+
.mb-runtime-timeline-host { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: var(--nova-color-surface-subtle, #f7f8fb); color: var(--mb-text); font-family: var(--nova-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif); }
|
|
930
|
+
.mb-runtime-timeline-scroll { width: 100%; height: 100%; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--nova-color-border-strong, #d9dee7) transparent; }
|
|
931
|
+
.mb-runtime-timeline-scroll::-webkit-scrollbar { width: 4px; }.mb-runtime-timeline-scroll::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--nova-color-border-strong, #d9dee7); }
|
|
931
932
|
.mb-runtime-timeline { width: 100%; min-height: 100%; box-sizing: border-box; margin: 0; padding: 18px 16px 40px; background: var(--nova-color-surface, #fff); }
|
|
932
933
|
.mb-runtime-timeline-header { display: grid; gap: 2px; padding: 0 0 16px; border-bottom: 1px solid var(--nova-color-divider, #edf0f5); }
|
|
933
934
|
.mb-runtime-timeline-header strong { font-size: var(--nova-font-size-lg, 16px); line-height: 22px; font-weight: var(--nova-font-weight-bold, 700); }.mb-runtime-timeline-header span { color: var(--mb-muted); font-size: var(--nova-font-size-sm, 12px); line-height: 18px; }
|
|
@@ -1169,6 +1170,7 @@ textarea.property-control { resize: vertical; }
|
|
|
1169
1170
|
.nova-studio-mode-switch button { height: var(--nova-mode-button-height); border: 0; border-radius: var(--nova-control-radius); padding: 0 var(--nova-mode-control-padding-inline); display: flex; align-items: center; gap: 5px; color: var(--nova-color-text-muted, #8a93a4); background: transparent; font-size: var(--nova-control-font-size); line-height: 18px; white-space: nowrap; cursor: pointer; }
|
|
1170
1171
|
.nova-studio-mode-switch button.is-active { color: var(--nova-tone-primary-foreground, #4f5dd1); background: var(--nova-color-surface, #fff); font-weight: var(--nova-font-weight-semibold); box-shadow: var(--nova-shadow-sm); }
|
|
1171
1172
|
.nova-studio-projection-switch { height: var(--nova-control-height); border: 1px solid var(--nova-color-border, #e2e6ef); border-radius: calc(var(--nova-control-radius) + 1px); padding: 2px; display: flex; align-items: center; gap: 2px; background: var(--nova-color-surface, #fff); }
|
|
1173
|
+
.nova-studio-mode-switch.is-hidden { display: none; }
|
|
1172
1174
|
.nova-studio-projection-switch.is-hidden { display: none; }
|
|
1173
1175
|
.nova-studio-projection-switch button { height: var(--nova-projection-button-height); border: 0; border-radius: max(0px, calc(var(--nova-control-radius) - 1px)); padding: 0 max(0px, calc(var(--nova-control-padding-inline) - 1px)); color: var(--nova-color-text-muted, #7c8799); background: transparent; font-size: var(--nova-control-font-size); line-height: 18px; white-space: nowrap; cursor: pointer; }
|
|
1174
1176
|
.nova-studio-projection-switch button:hover { color: var(--nova-tone-primary-foreground, #4d59ca); background: var(--nova-color-primary-soft, #f4f5ff); }.nova-studio-projection-switch button.is-active { color: var(--nova-tone-primary-foreground, #4654c8); background: var(--nova-color-primary-soft, #eef0ff); font-weight: var(--nova-font-weight-semibold); }
|
|
@@ -1408,6 +1410,7 @@ textarea.property-control { resize: vertical; }
|
|
|
1408
1410
|
.nova-studio-editing-mode-label { color: var(--nova-tone-primary-foreground); font-size: var(--nova-font-size-sm); line-height: 18px; white-space: nowrap; }
|
|
1409
1411
|
.nova-studio-scope-back { flex: none; height: 36px; border: 1px solid var(--nova-tone-primary-border, #d9ddff); border-radius: 10px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; color: var(--nova-tone-primary-foreground); background: var(--nova-color-primary-soft, #f0f1ff); font-size: var(--nova-font-size-sm); line-height: 18px; font-weight: var(--nova-font-weight-semibold); white-space: nowrap; cursor: pointer; pointer-events: auto; box-shadow: 0 5px 16px rgba(37,45,72,.10); box-shadow: var(--nova-shadow-md); transition: color .14s ease, background .14s ease, border-color .14s ease; }
|
|
1410
1412
|
.nova-studio-scope-back[hidden] { display: none; }
|
|
1413
|
+
.nova-studio-editing-mode[hidden], .nova-studio-scope-nav[hidden], .nova-studio-canvas-floating-head[hidden] { display: none; }
|
|
1411
1414
|
.nova-studio-scope-back:hover { color: var(--nova-color-primary-hover); border-color: var(--nova-color-primary); background: color-mix(in srgb, var(--nova-color-primary-soft) 88%, var(--nova-color-primary)); }
|
|
1412
1415
|
.nova-studio-scope-nav { flex: 0 1 auto; min-width: 54px; max-width: min(520px, calc(100% - 190px)); height: 36px; border: 1px solid var(--nova-color-border, #e1e5ef); border-radius: 10px; padding: 0 7px; display: flex; align-items: center; gap: 2px; overflow: hidden; color: var(--nova-color-text-muted); background: color-mix(in srgb, var(--nova-color-surface) 94%, transparent); box-shadow: 0 5px 16px rgba(37,45,72,.10); box-shadow: var(--nova-shadow-md); pointer-events: auto; }
|
|
1413
1416
|
.nova-studio-scope-nav button { flex: 1 1 auto; min-width: 0; max-width: 150px; height: 28px; border: 0; border-radius: 7px; padding: 0 6px; overflow: hidden; color: var(--nova-tone-primary-foreground); background: transparent; font-size: var(--nova-font-size-sm); line-height: 18px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; transition: color .14s ease, background .14s ease; }
|
|
@@ -1436,7 +1439,7 @@ textarea.property-control { resize: vertical; }
|
|
|
1436
1439
|
.nova-studio-readonly-row { display: grid; gap: 4px; }.nova-studio-readonly-row span { color: var(--nova-color-text-muted); font-size: var(--nova-font-size-xs); line-height: 14px; }.nova-studio-readonly-row strong { min-height: 32px; border: 1px solid var(--nova-color-border); border-radius: 7px; padding: 0 9px; display: flex; align-items: center; color: var(--nova-color-text-secondary, #4d586c); background: var(--nova-color-surface-subtle, #fafbfc); font-size: var(--nova-font-size-sm); line-height: 18px; font-weight: var(--nova-font-weight-medium); }
|
|
1437
1440
|
@media (max-width: 1120px) {
|
|
1438
1441
|
.nova-studio-shell { --nova-left-width: 210px; --nova-right-width: 320px; }
|
|
1439
|
-
.nova-studio-header { grid-template-columns: minmax(150px, auto) minmax(0,1fr); gap: 10px; }
|
|
1442
|
+
.nova-studio-header { grid-template-columns: minmax(150px, auto) auto minmax(0,1fr); gap: 10px; }
|
|
1440
1443
|
.nova-studio-mode-switch { display: none; }
|
|
1441
1444
|
.nova-studio-projection-switch { display: flex; }
|
|
1442
1445
|
.nova-studio-brand-copy span { max-width: 115px; }
|