@nice2dev/ui 1.3.16 → 1.3.17
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 +67 -0
- package/dist/NiceEventOrchestrator.doc-Dwtq2s_L.cjs +6 -0
- package/dist/docs/NiceEventOrchestrator.doc.json.mjs +19 -19
- package/dist/index.cjs +221 -221
- package/dist/index.d.ts +81 -48
- package/dist/index.mjs +912 -910
- package/dist/style.css +1 -1
- package/dist/tools/NiceThemeDesigner.mjs +1359 -900
- package/dist/tools/NiceThemePreview.mjs +18 -18
- package/dist/tools/themeCatalog.mjs +50 -0
- package/dist/workflow/NiceWorkflowDesigner.mjs +452 -898
- package/package.json +4 -4
- package/dist/NiceEventOrchestrator.doc-CxjsLxBG.cjs +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,72 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
2
2
|
|
|
3
|
+
## 1.3.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 59a1a84: Icons, showcase feedback round 41:
|
|
8
|
+
|
|
9
|
+
- **Removed** (breaking): NtdGym (use NtdDumbbell), NtdPizzaFood (NtdPizza), NtdDelivery (NtdTruck),
|
|
10
|
+
NtdOmniVerkBadge, NtdOmniVerkLogo, NtdOmniVerkSpinner (`<NtdOmniVerk animation="spin" />` or NiceSpinner) and
|
|
11
|
+
NtdOmniVerkWatermark (NiceLogo).
|
|
12
|
+
- **`animationSpeed`** on every icon, the style decorators and SmilAnimationWrapper — and every animation now runs
|
|
13
|
+
at half its earlier pace by default: CSS animations, `smilAnimation`, gradient animations and the icons' own
|
|
14
|
+
(NtdOmniVerk, NtdOmniVerkAnimated). `animationSpeed={2}` is the old pace; an explicit duration keeps its length.
|
|
15
|
+
createIcon's new `animated` option scales an icon's own SVG animation times.
|
|
16
|
+
- **Redrawn**: NtdNuke, NtdRunning, NtdDumbbell, NtdBeer, NtdCrown, NtdTarget, NtdMolecule, NtdPlate, NtdFood,
|
|
17
|
+
NtdCoffeeFood, NtdTruck, NtdRefresh, NtdLayers, NtdTrash, NtdCoins; NtdPlanet's ring is primary with a thin
|
|
18
|
+
accent rim.
|
|
19
|
+
|
|
20
|
+
- 68db136: NiceThemeDesigner, showcase feedback round 41:
|
|
21
|
+
|
|
22
|
+
- **Opens on a themes tree** (`startScreen`, default `'browser'`): Favorites, My themes and the built-in catalog by
|
|
23
|
+
category, searchable, with a star per theme, New / Duplicate / Edit / Import and **Delete only with `allowDelete`**
|
|
24
|
+
(own themes, behind a confirmation). Own themes and favorites: `themes` / `onThemesChange`,
|
|
25
|
+
`favorites` / `onFavoritesChange`, or kept by the designer in `localStorage` under `storageKey`.
|
|
26
|
+
- **Edit opens the theme in the whole window**: Back, a breadcrumb, **Undo / Redo** (buttons, Ctrl+Z, Ctrl+Shift+Z,
|
|
27
|
+
Ctrl+Y; quick edits of one field make one step), Save for own themes, Save as copy, Discard changes. **Theme Name
|
|
28
|
+
moved into the General section.** `startScreen="edit"` with `theme` opens the editor straight away, as before;
|
|
29
|
+
the New / Clone / Open buttons and the preset picker of the old header are replaced by the tree. `onSave` is new.
|
|
30
|
+
- The catalog is in the library: `NICE_THEME_CATALOG` and `NICE_THEME_CATALOG_ENTRIES` (the showcase reads them).
|
|
31
|
+
- NiceThemePreview: buttons, badges and the active page button take the theme's text-on-fill colours (they used the
|
|
32
|
+
page text colour), the switch thumb the theme's background.
|
|
33
|
+
- NiceThemeProvider: the dark flag (`data-theme`, `color-scheme`) follows a theme set through `setTheme`; a light
|
|
34
|
+
theme applied over a dark prop kept the dark-mode CSS.
|
|
35
|
+
- i18n: 37 `theme.*` keys (the tree, the editor, the catalog categories) in all 12 dictionaries.
|
|
36
|
+
|
|
37
|
+
- 8ae6e97: NiceWorkflowDesigner moves to `@nice2dev/ui-diagrams` (showcase feedback round 41):
|
|
38
|
+
|
|
39
|
+
- **Moved** (breaking for imports): `import { NiceWorkflowDesigner } from '@nice2dev/ui-diagrams'`. The data types
|
|
40
|
+
(`NiceWorkflowDefinition`, `NiceWorkflowState`, `NiceWorkflowTransition`…) stay in `@nice2dev/ui`;
|
|
41
|
+
`NiceWorkflowState.type` also takes ids of your own step kinds.
|
|
42
|
+
- Rebuilt on the diagram canvas: **arrows** between the steps, **automatic layered layout** (left to right, or
|
|
43
|
+
`layoutDirection="TB"`), the whole flow **fitted to the canvas at start**, zoom − / % / + and Fit in the toolbar,
|
|
44
|
+
wheel zoom, pan by dragging the empty canvas.
|
|
45
|
+
- **Step kinds**: `stepTypes` (default start, state, approval, end, error) and `loadStepTypes` (loaded at mount,
|
|
46
|
+
merged by id); "Add step" offers them all.
|
|
47
|
+
- A new step gets a **unique name** and comes **connected from the selected step** (the duplicated "New state"
|
|
48
|
+
dead-end / orphan pair is gone); transitions are drawn from a step's port onto another step or edited in the
|
|
49
|
+
properties panel (name, target, add, delete); a selected transition has its own panel; a problem message selects
|
|
50
|
+
its step.
|
|
51
|
+
- The designer keeps the workflow itself; `onChange` reports every change with the laid-out positions.
|
|
52
|
+
|
|
53
|
+
NiceDiagramEditor, more configurable (backward compatible): `document` (controlled), `nodeTypes` (a palette),
|
|
54
|
+
`autoLayout`, `fitOnMount`, `readOnly`; connections drawn from the ports (`onEdgeCreate` was declared but never
|
|
55
|
+
called); `onChange` fires for every change (only undo / redo reached it — the editor hook memoised on a document the
|
|
56
|
+
model edits in place, which also froze the viewport and the undo state) and no longer during render; `lang` follows
|
|
57
|
+
the app's language by default. DiagramCanvas: `autoFit` / `fitKey` / `refitKey`, `resizable`, `panOnDrag`,
|
|
58
|
+
`onResize`, `ariaLabel`, per-instance arrow markers, curves that leave and enter along their ports' sides, labels on
|
|
59
|
+
the curve's middle. The `dagre` layout is a real layered layout now (cycle breaking, longest-path ranks, barycenter
|
|
60
|
+
ordering, top-left positions, `ranks` in the result); `fitViewport` / `diagramBounds` exported; a layout is one undo
|
|
61
|
+
step.
|
|
62
|
+
|
|
63
|
+
ui-forms: the studio's workflow screen uses the designer from `@nice2dev/ui-diagrams` (new peer dependency).
|
|
64
|
+
|
|
65
|
+
- Updated dependencies [68db136]
|
|
66
|
+
- Updated dependencies [8ae6e97]
|
|
67
|
+
- @nice2dev/ui-core@1.3.17
|
|
68
|
+
- @nice2dev/i18n@1.3.17
|
|
69
|
+
|
|
3
70
|
## 1.3.16
|
|
4
71
|
|
|
5
72
|
### Patch Changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceEventOrchestrator",o="Event-driven workflow orchestrator with triggers, conditions, and actions.",n="no-code",s="1.0.7",i="stable",r=[{name:"flows",type:"EventFlow[]",description:"Initial event flows"},{name:"eventSources",type:"EventSourceDefinition[]",description:"Available event sources"},{name:"eventHandlers",type:"EventHandlerDefinition[]",description:"Available event handlers"},{name:"onFlowsChange",type:"(flows: EventFlow[]) => void",description:"Called with the flows after every change"},{name:"onExport",type:"(code: string) => void",description:"Called with the generated code on export"},{name:"onTest",type:"(flowId: string) => void",description:"Called when a flow is tested"}],c=[{title:"Event Orchestrator",description:"Build event-driven workflows",code:`<NiceEventOrchestrator
|
|
2
|
+
flows={flows}
|
|
3
|
+
eventSources={sources}
|
|
4
|
+
eventHandlers={handlers}
|
|
5
|
+
onFlowsChange={setFlows}
|
|
6
|
+
/>`}],a={role:"application",ariaLabel:"Event workflow orchestrator"},l=["NiceWorkflowDesigner","NiceAPIFlow"],d={$schema:e,name:t,description:o,category:n,since:s,status:i,props:r,examples:c,accessibility:a,seeAlso:l};exports.$schema=e;exports.accessibility=a;exports.category=n;exports.default=d;exports.description=o;exports.examples=c;exports.name=t;exports.props=r;exports.seeAlso=l;exports.since=s;exports.status=i;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const e = "https://nice2dev.com/schemas/component-doc-v1.json",
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/>` }], a = { role: "application", ariaLabel: "Event workflow orchestrator" }, l = ["NiceWorkflowDesigner", "NiceAPIFlow"],
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", t = "NiceEventOrchestrator", o = "Event-driven workflow orchestrator with triggers, conditions, and actions.", n = "no-code", s = "1.0.7", i = "stable", r = [{ name: "flows", type: "EventFlow[]", description: "Initial event flows" }, { name: "eventSources", type: "EventSourceDefinition[]", description: "Available event sources" }, { name: "eventHandlers", type: "EventHandlerDefinition[]", description: "Available event handlers" }, { name: "onFlowsChange", type: "(flows: EventFlow[]) => void", description: "Called with the flows after every change" }, { name: "onExport", type: "(code: string) => void", description: "Called with the generated code on export" }, { name: "onTest", type: "(flowId: string) => void", description: "Called when a flow is tested" }], c = [{ title: "Event Orchestrator", description: "Build event-driven workflows", code: `<NiceEventOrchestrator
|
|
2
|
+
flows={flows}
|
|
3
|
+
eventSources={sources}
|
|
4
|
+
eventHandlers={handlers}
|
|
5
|
+
onFlowsChange={setFlows}
|
|
6
|
+
/>` }], a = { role: "application", ariaLabel: "Event workflow orchestrator" }, l = ["NiceWorkflowDesigner", "NiceAPIFlow"], d = {
|
|
7
7
|
$schema: e,
|
|
8
|
-
name:
|
|
9
|
-
description:
|
|
8
|
+
name: t,
|
|
9
|
+
description: o,
|
|
10
10
|
category: n,
|
|
11
|
-
since:
|
|
12
|
-
status:
|
|
13
|
-
props:
|
|
14
|
-
examples:
|
|
11
|
+
since: s,
|
|
12
|
+
status: i,
|
|
13
|
+
props: r,
|
|
14
|
+
examples: c,
|
|
15
15
|
accessibility: a,
|
|
16
16
|
seeAlso: l
|
|
17
17
|
};
|
|
@@ -19,12 +19,12 @@ export {
|
|
|
19
19
|
e as $schema,
|
|
20
20
|
a as accessibility,
|
|
21
21
|
n as category,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
d as default,
|
|
23
|
+
o as description,
|
|
24
|
+
c as examples,
|
|
25
|
+
t as name,
|
|
26
|
+
r as props,
|
|
27
27
|
l as seeAlso,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
s as since,
|
|
29
|
+
i as status
|
|
30
30
|
};
|