@nice2dev/events 1.4.57 → 1.4.59
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 +160 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +439 -449
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,165 @@
|
|
|
1
1
|
# @nice2dev/events — Changelog
|
|
2
2
|
|
|
3
|
+
## 1.4.59
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Feedback round 53.
|
|
8
|
+
|
|
9
|
+
- **Removed (use the replacement):** `NiceMealPlan` (`NiceMealPlanProps`) and `NiceResourceAllocation`
|
|
10
|
+
(`NiceResourceAllocationProps`, `NiceResourceAllocationRef`, `Resource`, `Allocation`, `ResourceUtilization`,
|
|
11
|
+
`ResourceViewMode`) from `@nice2dev/ui` and `@nice2dev/ui-planning` → `NiceScheduler` `mode="meals"` /
|
|
12
|
+
`mode="resources"` (`NiceMealSlot`, `NiceMeal` and `NiceMealKind` stay);
|
|
13
|
+
`Nice3DTexturePainter`, `useTexturePainter`, `TextureLayer`, `TextureBrushSettings` and `TexturePainterApi`
|
|
14
|
+
(`@nice2dev/ui-graphics`) → `NicePixelEditor`; `NiceUIDesigner`, `useUIDesigner`, `exportToReact`, `UINode` and
|
|
15
|
+
`UIDesignerApi` (`@nice2dev/ui-graphics`) → `NiceViewEditor`.
|
|
16
|
+
- **View editor:** NiceViewEditor panels (Toolbox, the new Outline, Properties, Data sources) fold, close and
|
|
17
|
+
open their settings from a ⋮ menu (`outlineState`, `defaultOutlineState`, `onOutlineStateChange`,
|
|
18
|
+
`dataSourcesState`, `defaultDataSourcesState`, `onDataSourcesStateChange`); the view's name and kind are edited
|
|
19
|
+
inline; View → Full screen; desktop / tablet / mobile preview; undo / redo (Ctrl+Z / Ctrl+Y); an outline tree
|
|
20
|
+
with drag and Alt+↑ / ↓; ⋮ menus on areas, rows and controls; placed controls and areas drag between rows and
|
|
21
|
+
zones; the toolbox is built from the registry, grouped by package, with search (`toolboxPackages`,
|
|
22
|
+
`onToolboxPackagesChange`); the Source mode is gone (File → Export → JSON). Model: `NiceViewCell.name` (unique —
|
|
23
|
+
`validateViewDefinition` reports duplicates), `NiceRegistryEntry.package` / `toolbox` / `editableProps`, new
|
|
24
|
+
`NiceRegistryPropField`, `NiceViewRegistry.getPackages()`, 31 new registered control types (image, spacer,
|
|
25
|
+
divider, list, passwordInput, otpInput, autocomplete, toggle, calendar, …); select / radioGroup take options as
|
|
26
|
+
lines or strings; the renderer puts `data-name` on each cell. New ui-core built-in glyph `tablet`.
|
|
27
|
+
- **Zoom:** new `NiceZoomControl` (`@nice2dev/ui`; − / percent / + / fit, presets menu, horizontal or vertical,
|
|
28
|
+
sizes, `toolbar` / `ghost` / `floating`) on top of the new `useZoomState`, `useZoomShortcuts`, `clampZoom`,
|
|
29
|
+
`nextZoom`, `prevZoom` and `NICE_ZOOM_*` from `@nice2dev/ui-core`. Adopted in the BPMN NiceWorkflowDesigner,
|
|
30
|
+
NiceDiagramDesigner, NiceERPReportDesigner, NicePrintPreview (also fixes an endless render loop when `margins`
|
|
31
|
+
is not passed), NiceDocumentViewer, NicePDFViewer, NicePdfEditor, NiceImageAnnotator, NiceLightbox,
|
|
32
|
+
NiceComponentPlayground and NiceMap, and in NiceSeatingChart (events), NiceSpatialEditor / NiceSpatialViewer
|
|
33
|
+
(ui-buildings; `Minimap` gets `showZoom`), NiceDataLabeler (ui-ai), NiceDMXTimeline (ui-audio),
|
|
34
|
+
NicePrintPreview / NiceTemplateEditor (ui-printing), NiceVideoEditor (ui-video), NiceMaterialEditor /
|
|
35
|
+
NiceUVEditor (ui-3d), NiceWhiteboard (ui-communication), NiceGameEditor (game-engine), the photo editor and
|
|
36
|
+
vector editor status bar (ui-graphics); NiceImageGallery (ui-mobile) zooms through `useZoomState`. The percent
|
|
37
|
+
button resets the view and − / + are disabled at the limits everywhere; NicePrintPreview's Fit now really
|
|
38
|
+
fits the page.
|
|
39
|
+
- **Recipes:** new `NicePersonCounter` (`@nice2dev/ui`, `@nice2dev/ui-editors`): person icons × value between
|
|
40
|
+
− / +, `showSpaces`, `minValue` / `maxValue` / `stepValue`, hold-to-accelerate, spinbutton keys, label /
|
|
41
|
+
error placement, sizes. NiceRecipe scales servings with it (step = the recipe's servings); NiceRecipeList
|
|
42
|
+
filters are NiceSelect, new `onRemove` / `removeLabel`; NiceRecipeCollections adds recipes through an
|
|
43
|
+
"Add recipe to …" picker with undo.
|
|
44
|
+
- **Icons:** new NtdFork, NtdButterKnife, NtdSpoon (NtdForkKnife is now Fork + ButterKnife), NtdRestaurantPatrons,
|
|
45
|
+
NtdModemRouter, NtdNetworkSwitch, NtdZoomFit, notes (`musicIcons`: NtdMusicNote = NtdNoteEighth, NtdNoteWhole,
|
|
46
|
+
NtdNoteHalf, NtdNoteQuarter, NtdNote16th, NtdNote32nd, NtdNoteBeamedEighths, NtdNoteBeamed16ths), NtdId,
|
|
47
|
+
NtdSign, NtdHammer, NtdToolbox and NtdGradient (back with a new drawing; `objectIcons`). `createIcon` option
|
|
48
|
+
`inPlaceAnimations` — NtdEarth's spin now turns the surface inside the globe. Redrawn NtdAirFryer, NtdRouter,
|
|
49
|
+
NtdRestaurant, NtdLightbulbOn, NtdFolderOpen, NtdStrikethrough, NtdBuy, NtdSell, NtdPrint, NtdTree (and
|
|
50
|
+
NtdForest), NtdCat, NtdTeamwork, NtdRotate, NtdRotateCcw, NtdMagnet, NtdFist, NtdPunch. New ui-core built-in
|
|
51
|
+
glyphs `zoom-fit`, `hammer`, `dice`; `gradient`, `rotate` and `rotate-ccw` redrawn.
|
|
52
|
+
- **NiceTabs:** the theme's tab style (`nice-tabs--ds-*`) now applies only to the active tab and its count badge
|
|
53
|
+
(through `--nice-tabs-active-*`, `--nice-tabs-edge-width`, `--nice-tabs-strip-line`); it is no longer written
|
|
54
|
+
inline on the root, so panels no longer inherit a coloured text or a primary line under every tab strip.
|
|
55
|
+
`variant="pills"` / `"enclosed"` keep their own look.
|
|
56
|
+
- **Data:** NiceQueryDesigner schema browser columns indent under their table with key / link icons left of
|
|
57
|
+
the checkbox, one type scale (`--nice-query-designer-text`, `-text-item`, `-text-meta`) and the theme font;
|
|
58
|
+
NiceDataSourceBuilder's simple form is tabbed (General, Fields as grouped checkboxes, Conditions, Order,
|
|
59
|
+
Preview as a grid or a one-row form, SQL) with a Simple / Advanced segmented switch in the corner; styles
|
|
60
|
+
moved to `data-source-builder.css`.
|
|
61
|
+
- **Studio (`@nice2dev/ui-forms`):** NiceDevelopmentStudio starts a module with no entity; NiceEntityForm new
|
|
62
|
+
fields start with an empty required name, Name and Display name fill each other until both are typed,
|
|
63
|
+
duplicate names are refused regardless of case, and "Add fields from text" creates many fields at once.
|
|
64
|
+
- **Diagrams (`@nice2dev/ui-diagrams`):** ports are small squares outside the node, shown on hover / selection
|
|
65
|
+
and on every node while a connection is dragged; a side spreads one square per edge and makes room for a new
|
|
66
|
+
one on drop (`distributePorts`, `data-port-id` `right`, `right-1`…); `NodeStyle.iconPlacement: 'badge'`;
|
|
67
|
+
diamonds are 112×112 with the name wrapped inside; orthogonal routing around nodes (`EdgeStyle.avoidNodes`)
|
|
68
|
+
and labels kept off nodes, labels and other lines (`diagramEdgeLayout`, `maxEdgeLabelLength`). New
|
|
69
|
+
`computeFlowLayout` (a column down to the first branch, then branches left to right; NiceWorkflowDesigner
|
|
70
|
+
`layoutDirection: 'auto'`, the new default). NiceWorkflowDesigner: badge icons, icon-only toolbar with
|
|
71
|
+
tooltips, kind descriptions as tooltips, NiceZoomControl (also in `DiagramToolbar` — `onZoomChange`,
|
|
72
|
+
`onZoomFit` — and NiceDiagramViewer). `NiceWorkflowTransition.fromSide` / `toSide` (ui, optional).
|
|
73
|
+
- **Access:** NiceAccessManager rebuilt — roles as a tree of composed roles (`inherits`, cycle check, drag or
|
|
74
|
+
Ctrl+Shift+arrows), resources as a NiceTreeGrid of folders and keyed resources (unique keys), "+" in the ROLES /
|
|
75
|
+
RESOURCES headers, role deletion only when `canDeleteRole` allows it and after a confirmation, and a role's
|
|
76
|
+
resource list that takes resources dragged from the grid. New props `onRolesChange`, `onResourcesChange`,
|
|
77
|
+
`onGrantsChange`, `canDeleteRole`, `canEditRole`, `allowAddRoles`, `allowEditResources`, `defaultGrant`, `height`;
|
|
78
|
+
roles take `inherits` / `system`, resources `key` and the types `'folder'` / `'resource'`. Styles moved to
|
|
79
|
+
`NiceAccessManager.css`.
|
|
80
|
+
- **Menu states:** NiceMenuBuilder keeps a catalogue of menu states (Full plus states with host-given conditions)
|
|
81
|
+
with an eye column per state, a pencil on groups and "Custom Menu" as the new group name — props `states`,
|
|
82
|
+
`defaultStates`, `onStatesChange`, `activeState`, `defaultActiveState`, `onActiveStateChange`, `stateConditions`,
|
|
83
|
+
`showStates` (default true); new exports `menuForState`, `menuHiddenInState`, `menuStateFor`,
|
|
84
|
+
`setMenuItemHidden`, `createMenuStateId`, `NiceMenuState`, `NiceMenuStateCondition`.
|
|
85
|
+
- **Menus and buttons:** `NiceMenuItem.tooltip`, NiceMenu `descriptionAs: 'inline' | 'tooltip'`, icon-only menu
|
|
86
|
+
items (empty label + icon); NiceButton `tooltip` (title, and the accessible name of icon-only buttons).
|
|
87
|
+
- **Auth (`@nice2dev/auth`):** one password scorer for every control — `scorePassword` (entropy with penalties for
|
|
88
|
+
common passwords, years, sequences and repeats; levels 0–5 with a new top level "Excellent";
|
|
89
|
+
`PASSWORD_SCORE_THRESHOLDS`) and `checkPasswordPolicy` / `NicePasswordPolicy`. `calcPasswordStrength` and
|
|
90
|
+
`PasswordStrengthLevel` are deprecated (`calcPasswordStrength` now returns `min(4, scorePassword().score)`, so
|
|
91
|
+
its results change); `minPasswordStrength` takes 0–5 (default still 2). NicePasswordStrength is a form control
|
|
92
|
+
with its own masked field and eye (`showPeeker`), a bar exactly as wide as the field and the usual field props
|
|
93
|
+
(`password` alone still draws only the meter); NicePasswordGenerator `iconsOnly` (dice + copy) and `bindTo`
|
|
94
|
+
(setters or input refs); NiceRegistrationForm `fields` (required / optional / hidden), `customFields`,
|
|
95
|
+
`passwordPolicy`, generator icons beside Password, `labelPlacement`, `labelWidth`, `size`, `labels`,
|
|
96
|
+
`submitLabel`, `title=""` hides the heading; NiceChangePassword gets the generator icons and `passwordPolicy`.
|
|
97
|
+
erp-adapter's auth registry passes `showRememberMe`.
|
|
98
|
+
- **Pixel editor (`@nice2dev/ui-graphics`):** NicePixelEditor opens images and textures through `src` (URL, data
|
|
99
|
+
URL or Blob; load and CORS errors show an alert), saves PNG through `onSave(blob, info)` (File → Save, Ctrl+S;
|
|
100
|
+
new type `NicePixelEditorSaveInfo`), reports `onLoad` / `onLoadError`, and handles large canvases: zoom
|
|
101
|
+
5 %–6400 % with NiceZoomControl in the status bar, wheel zoom about the pointer, Space+drag pan, fit on open, a
|
|
102
|
+
faster checkerboard / grid / thumbnails and undo capped at 256 MB. Edit → Fill paints the selection or the layer;
|
|
103
|
+
the brush goes up to 100 px.
|
|
104
|
+
- **Charts — legends:** NiceChart, NicePieChart, NicePolarChart, NiceDrillDownChart and NiceForecastChart share
|
|
105
|
+
one legend layout (top / bottom rows centred and wrapping, side legends in columns). NiceChart's top legend sits
|
|
106
|
+
under the title and the SVG is exactly `width × height` for every placement; NicePolarChart gets
|
|
107
|
+
`legendPlacement`, a bigger radius, the title closer to the chart and a responsive viewBox; NiceForecastChart
|
|
108
|
+
honours `legend.position` (alias `legendPlacement`) with toggle buttons and a real dashed marker; NiceLiveChart
|
|
109
|
+
passes `legendPlacement` on. NiceDrillDownChart and NiceTreeMap show an arrow-only Back button on the right,
|
|
110
|
+
hidden at the top level (`showBackLabel`); NiceDrillDownChart `legendPlacement` (alias `legendPosition`) and a
|
|
111
|
+
bar chart that takes only the height it needs. NiceMapChart draws bubbles only with `type="bubble"` (on
|
|
112
|
+
uncoloured regions; `showBubbles` overlays them on the other modes), `showValues`, `MapRegion.center`,
|
|
113
|
+
`formatValue`. NiceHeatMap `colorScheme` / `defaultColorScheme` / `onColorSchemeChange` with 11 named schemes, a
|
|
114
|
+
gradient picker (`showColorSchemes`) and any number of `colors` stops; new type `NiceHeatMapColorScheme`.
|
|
115
|
+
- **Charts — gauges and more:** NiceBullet scales text, paddings and the target marker with `height` and gets
|
|
116
|
+
`labelPlacement: 'inside'` (a two-tone label, the value placed clear of it); NiceBarGauge fits its labels inside
|
|
117
|
+
the inner circle (shrinking, then an ellipsis) with a tooltip per ring; NiceCircularGauge scales down to 10 px
|
|
118
|
+
(text too small to read moves to the tooltip) and gets `barWidth`; NiceLinearGauge centres its vertical layout,
|
|
119
|
+
takes `labelPlacement` `left` / `right` and gets `sharp`, `showTickLines` and `extraLineValue`; NiceSankey scales
|
|
120
|
+
fonts and paddings with `width` / `height`; NiceSparkline `type: 'pie' | 'polar'` with icons (`data` items
|
|
121
|
+
`{ value, icon, color, label }`, `showIcons`; new types `NiceSparklineDatum`, `NiceSparklineType`);
|
|
122
|
+
NiceOrganizationChart `fitOnMount`, no stray scrollbar after a fit, full width, a collapse keeps the clicked
|
|
123
|
+
node in place, NiceZoomControl; NiceGantt NiceZoomControl instead of the "8px" readout, Fit to view and
|
|
124
|
+
`fitOnMount` (re-fits after a scale change).
|
|
125
|
+
- **Planning:** NiceScheduler `slotDuration` (5–60 min; events placed by their start minute and sized by their
|
|
126
|
+
duration, a click creates the event at that exact slot — fixes 10:00 opening 10:37 — and drops snap), a
|
|
127
|
+
full-width "Add event" strip drawn over events, an all-day row, a keyboard grid (arrows, PageUp / PageDown,
|
|
128
|
+
Enter; Alt+arrows move an event, Alt+Shift+arrows change its end), drops and resizes update its own list
|
|
129
|
+
(`onEventsChange`), toolbar options `showChangeDate`, `showSchedulerType`, `showConfig`, `showCalendarList`,
|
|
130
|
+
`views`, `showWeekends`, a gear settings panel (`configItems`, `onConfigChange`) and `relatedCalendars`.
|
|
131
|
+
`mode: 'resources'` (timelineDay / timelineWeek / timelineMonth; resource rows with avatars and groups —
|
|
132
|
+
`resourceGroupBy`, `rowHeight`, `renderResource`; multi-day bars drag between resources and stretch;
|
|
133
|
+
`showConflicts`, `showUtilization`, resource `capacity`, `legendPosition`) and `mode: 'meals'` (meal rows with
|
|
134
|
+
recipe photos and a recipe picker — `slots`, `mealsPerDay`, `recipes`, `recipeCollections`,
|
|
135
|
+
`favoriteRecipeIds`, `mealDuration`; event `slot`). New `NiceCalendarToolbar` shared by NiceScheduler and
|
|
136
|
+
NicePlanningTimeline (`NiceCalendarToolbarProps`, `NiceCalendarToolbarOption`, `NiceCalendarLink`,
|
|
137
|
+
`NiceCalendarConfigItem`) and types `NiceSchedulerMode`, `NiceSchedulerSlotDuration`, `NiceSchedulerConfig`.
|
|
138
|
+
NicePlanningTimeline: the shared toolbar, NiceZoomControl, a tooltip that stays inside the box with readable
|
|
139
|
+
text and minutes, the app locale by default, a working `showMinimap`, NiceIcon event icons; its bare classes
|
|
140
|
+
became BEM modifiers (`main` → `nice-timeline-unit--main`; grid lines `nice-timeline-grid__line--main` /
|
|
141
|
+
`--minor` / `--today` / `--row-sep`; `hovered` → `nice-timeline-event--hovered` /
|
|
142
|
+
`nice-timeline-milestone--hovered`).
|
|
143
|
+
- **Printing:** NiceTemplateEditor's Grid button shows the `grid` icon (it showed a text glyph) and reports its
|
|
144
|
+
state with `aria-pressed`.
|
|
145
|
+
- **Themes:** new `NicePalettePicker` (`@nice2dev/ui`, `@nice2dev/ui-editors`): named colour slots shifted
|
|
146
|
+
together by hue / saturation / lightness (relative and reversible), per-slot locks and generated harmonies
|
|
147
|
+
(`analogous`, `shades`, `complementary`, `triadic`, `square`) with spacing; helpers `shiftColor`,
|
|
148
|
+
`shiftCssColors`, `generatePaletteColors`, `defaultPaletteSpacing`. NiceThemeDesigner: "Add a palette" (palette
|
|
149
|
+
groups — `NiceTheme.paletteGroups`, types `NiceThemePaletteGroup`, `NiceThemePaletteHarmony`), colour groups with
|
|
150
|
+
a palette picker on the Colors / Backgrounds / Text / Borders tabs, and a Gradient mode on every colour field
|
|
151
|
+
whose stops keep `{palette.x}` references. NiceGradientPicker `colorTokens` and `resolveColor`; `cssToGradient`
|
|
152
|
+
keeps references and reads `rgba()`, sides, turns and radial / conic parameters. ui-core: a paint colour
|
|
153
|
+
(primary, accent, their hovers, success, warning, error, info) may hold a gradient — `--nice-color-*` is its base
|
|
154
|
+
or first stop and `--nice-color-*-image` the gradient (`THEME_PAINT_VARS`, `isThemePaintPath`); buttons, badges,
|
|
155
|
+
tags, progress fills, toggles, checkboxes, sliders, pagination, steppers, toggle groups, menus and the top
|
|
156
|
+
navigation paint `background-image: var(--nice-color-*-image)`; a literal gradient in another colour field
|
|
157
|
+
collapses to a colour (diagnostic `gradient-in-color`).
|
|
158
|
+
|
|
159
|
+
## 1.4.58
|
|
160
|
+
|
|
161
|
+
No changes in this release.
|
|
162
|
+
|
|
3
163
|
## 1.4.57
|
|
4
164
|
|
|
5
165
|
### Patch Changes
|