@nice2dev/ui-diagrams 1.4.3 → 1.4.5
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/CHANGELOG.md +31 -0
- package/dist/components/DiagramToolbar.d.ts +8 -0
- package/dist/components/NiceDiagramEditor.d.ts +5 -0
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +3721 -4012
- package/dist/ui-diagrams.css +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# @nice2dev/ui-diagrams — Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.5
|
|
4
|
+
|
|
5
|
+
No changes in this release.
|
|
6
|
+
|
|
7
|
+
## 1.4.4
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 0dde6f0: Controls, showcase feedback round 43 — part 4.
|
|
12
|
+
|
|
13
|
+
- **NiceThemeGalleryPicker** (new, `@nice2dev/ui`): theme cards with large previews — each card shows
|
|
14
|
+
the theme as a small app in its own layout colours and lights up in the theme's primary when
|
|
15
|
+
hovered or picked. A picker (`value` / `defaultValue` / `onChange(name, item)`), and with `limit`
|
|
16
|
+
one row of cards and a "Show more" button opening every theme full-screen with search and
|
|
17
|
+
categories. Also `NiceThemeGalleryPreview` (the card's preview on its own).
|
|
18
|
+
- **NiceDateRangeBox**: both fields show their date mask (`DD.MM.YYYY`) as the placeholder instead of
|
|
19
|
+
"Start date" / "End date"; with `singleField` both ends can be typed through one mask
|
|
20
|
+
(`DD.MM.YYYY – DD.MM.YYYY`), an end set once its half is a real date.
|
|
21
|
+
- **NiceWiki** works on its own: pages can carry their `content`; the selection, the edit mode and
|
|
22
|
+
saved edits are kept inside unless `selectedPageId`, `editing` or `content` are given (new
|
|
23
|
+
`defaultSelectedPageId`, `defaultEditing`); the tree filters as you search; breadcrumbs; Markdown
|
|
24
|
+
renders; edit mode uses NiceMarkdownEditor or NiceHtmlEditor with Save and Cancel.
|
|
25
|
+
- **NiceDiagramEditor**: the toolbar is a ribbon — Home / Insert / Format / View tabs of captioned
|
|
26
|
+
sections of icon buttons named by their hints; only wired actions show. The property panel hides
|
|
27
|
+
and shows from a toggle at the right of the tabs (new `defaultPropertiesOpen`; `DiagramToolbar`
|
|
28
|
+
gained `defaultTab`, `propertiesOpen`, `onToggleProperties`).
|
|
29
|
+
- **NiceSpatialEditor**: a File / Edit / View / Help menu bar (the plan type moved to View, import
|
|
30
|
+
and export to File); the library is the Toolbox and leaves the wall to the Wall tool; doors and
|
|
31
|
+
windows are placed from the Toolbox only; Layers and Properties fold from their headers
|
|
32
|
+
(`LayerPanel` / `PropertiesPanel` gained `collapsed` / `onToggleCollapsed`).
|
|
33
|
+
|
|
3
34
|
## 1.4.3
|
|
4
35
|
|
|
5
36
|
No changes in this release.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { LayoutAlgorithm, NodeShape, DiagramType, DiagramViewMode } from '../types/diagramTypes';
|
|
3
3
|
export type DiagramTool = 'select' | 'addNode' | 'addEdge' | 'pan' | 'delete' | 'text' | 'freehand';
|
|
4
|
+
/** A tab of the toolbar (1.4.4). */
|
|
5
|
+
export type DiagramToolbarTab = 'home' | 'insert' | 'format' | 'view';
|
|
4
6
|
export interface DiagramToolbarProps {
|
|
5
7
|
activeTool: DiagramTool;
|
|
6
8
|
onToolChange: (tool: DiagramTool) => void;
|
|
@@ -58,6 +60,12 @@ export interface DiagramToolbarProps {
|
|
|
58
60
|
/** Style preset */
|
|
59
61
|
stylePresetId?: string;
|
|
60
62
|
onStylePresetChange?: (presetId: string) => void;
|
|
63
|
+
/** The tab shown first (1.4.4). Default `'home'`. */
|
|
64
|
+
defaultTab?: DiagramToolbarTab;
|
|
65
|
+
/** Whether the properties panel is shown — the toggle at the right is pressed then (1.4.4). */
|
|
66
|
+
propertiesOpen?: boolean;
|
|
67
|
+
/** Show / hide the properties panel; with it the toolbar has the toggle (1.4.4). */
|
|
68
|
+
onToggleProperties?: () => void;
|
|
61
69
|
className?: string;
|
|
62
70
|
}
|
|
63
71
|
export declare const DiagramToolbar: React.FC<DiagramToolbarProps>;
|
|
@@ -40,6 +40,11 @@ export interface NiceDiagramEditorProps {
|
|
|
40
40
|
/** Show/hide panels */
|
|
41
41
|
showToolbar?: boolean;
|
|
42
42
|
showPropertyPanel?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the property panel is open at first (1.4.4); the toolbar's panel toggle hides and shows
|
|
45
|
+
* it (R43: "propsy — musi być opcja ukrycia"). Default `true`.
|
|
46
|
+
*/
|
|
47
|
+
defaultPropertiesOpen?: boolean;
|
|
43
48
|
showMinimap?: boolean;
|
|
44
49
|
showTimeline?: boolean;
|
|
45
50
|
className?: string;
|