@nice2dev/ui 1.0.0 → 1.0.2
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 +259 -1
- package/dist/index.cjs +1001 -275
- package/dist/index.d.ts +5446 -96
- package/dist/index.mjs +66026 -39554
- package/dist/ui.css +1 -1
- package/package.json +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,100 @@
|
|
|
1
|
-
# Changelog
|
|
1
|
+
# @nice2dev/ui — Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the core UI library.
|
|
4
|
+
|
|
5
|
+
## [1.0.1] — 2026-03-25
|
|
6
|
+
|
|
7
|
+
### Added — New Controls (FAZA 7.1)
|
|
8
|
+
|
|
9
|
+
- **NiceKanban** — drag & drop Kanban board with swimlanes, WIP limits, filters
|
|
10
|
+
- **NiceGantt** — Gantt chart with dependencies, milestones, drag resize, zoom
|
|
11
|
+
- **NiceScheduler** — calendar scheduler (day/week/month/timeline, recurring events)
|
|
12
|
+
- **NiceRichTextEditor** — Tiptap/ProseMirror-based collaborative editor with mentions, slash commands
|
|
13
|
+
- **NiceFileManager** — file browser (tree + grid view, upload, preview, drag & drop)
|
|
14
|
+
- **NiceNotificationCenter** — notification center (toast stack, persisted, filters, mark-as-read)
|
|
15
|
+
- **NiceChatWidget** — embeddable chat (threads, reactions, file attachments, typing indicator)
|
|
16
|
+
- **NiceTimeline** — event timeline (vertical/horizontal, filters, zoom, grouping)
|
|
17
|
+
- **NiceOrgChart** — organizational chart (drag & drop, zoom, export SVG/PNG)
|
|
18
|
+
- **NiceFlowChart** — flow editor (nodes + edges, minimap, auto-layout)
|
|
19
|
+
- **NiceDiffViewer** — text/code diff viewer (unified/split view, syntax highlight)
|
|
20
|
+
- **NiceMarkdownEditor** — Markdown editor with live preview
|
|
21
|
+
- **NiceSpreadsheet** — lightweight spreadsheet (formulas, freeze panes, import/export XLSX)
|
|
22
|
+
- **NiceImageAnnotator** — image annotations (rectangles, arrows, text, blur, crop)
|
|
23
|
+
- **NicePDFViewer** — PDF viewer (zoom, search, annotations, thumbnail sidebar)
|
|
24
|
+
- **Virtual scrolling** — integrated react-window/react-virtuoso in DataGrid, TreeView, Select
|
|
25
|
+
- **Drag & drop** — universal DnD system (dnd-kit integration)
|
|
26
|
+
- **Command palette** — Cmd+K / Ctrl+K overlay with fuzzy search
|
|
27
|
+
- **Keyboard shortcuts manager** — global shortcuts registry
|
|
28
|
+
- **Undo/Redo manager** — global undoable state middleware
|
|
29
|
+
|
|
30
|
+
### Added — Streaming & Real-time (FAZA 3.2)
|
|
31
|
+
|
|
32
|
+
- **NiceLiveChart** — auto-append data points (sliding window, 60 fps, pause/resume, stats overlay)
|
|
33
|
+
- **createWebSocketDataSource** — full WebSocket data source with reconnect, heartbeat, binary protocol
|
|
34
|
+
- **createSSEDataSource** — Server-Sent Events data source (read-only stream)
|
|
35
|
+
|
|
36
|
+
### Added — Adapter Generator CLI (FAZA 8)
|
|
37
|
+
|
|
38
|
+
- **AdapterGeneratorCLI** — batch adapter generation for Angular/Vue/WC/Blazor
|
|
39
|
+
- `generateAdapters({ source: 'ui', target: 'angular' })` — auto-generates wrappers for 20 components
|
|
40
|
+
- Component registry with metadata for Button, TextInput, Select, Checkbox, Toggle, Slider, NumberInput, DatePicker, TextArea, Autocomplete, Modal, Alert, DataGrid, Badge, Progress, Avatar, Tabs, Breadcrumb, Drawer, ThemeProvider
|
|
41
|
+
- `runAdapterGenerator(argv)` — CLI entry point: `nice2dev-cli generate adapter --source=ui --target=angular`
|
|
42
|
+
|
|
43
|
+
### Added — CLI Scaffolding (FAZA 7.4)
|
|
44
|
+
|
|
45
|
+
- **NiceCLI** — `npx nice2dev init | component | theme | page` with templates
|
|
46
|
+
- **NiceModuleGeneratorCLI** — module/view/adapter/component scaffolding
|
|
47
|
+
- **NiceFigmaSync** — design token sync from Figma (fetch tokens → NiceTheme)
|
|
48
|
+
|
|
49
|
+
### Added — i18n
|
|
50
|
+
|
|
51
|
+
- 10 new languages: DE, FR, ES, UK, CS, JA, ZH-CN, AR, KO, PT-BR
|
|
52
|
+
- ICU MessageFormat support (pluralization, gender, ordinals)
|
|
53
|
+
- Translation coverage report, auto-translate pipeline, Translation Memory
|
|
54
|
+
|
|
55
|
+
### Added — Testing
|
|
56
|
+
|
|
57
|
+
- 70+ unit test files: DataGrid, Chart, Form, DatePicker, Select, Autocomplete, TreeView, hooks, i18n, theme, RBAC, Gantt, Scheduler, Toast, Tooltip
|
|
58
|
+
- DataGrid / Chart benchmarks (10k–1M rows/points)
|
|
59
|
+
- Bundle size tracking (size-limit CI step)
|
|
60
|
+
|
|
61
|
+
### Added — Accessibility & Touch
|
|
62
|
+
|
|
63
|
+
- Full WCAG 2.1 AA support: `NiceA11yProvider`, `useRovingTabIndex`, `useRestoreFocus`
|
|
64
|
+
- Touch gestures: `useSwipe`, `usePinch`, `usePan`, `usePullToRefresh`, haptic feedback
|
|
65
|
+
- RTL provider with logical properties (`NiceRTLProvider`)
|
|
66
|
+
|
|
67
|
+
### Added — Data Source
|
|
68
|
+
|
|
69
|
+
- Advanced: `NiceDataCache`, `NiceRequestDeduplicator`, cursor pagination, infinite scroll
|
|
70
|
+
- Offline: `createIndexedDBDataSource`, `createOfflineFirstDataSource`, URL state manager
|
|
71
|
+
- Aggregation: `aggregate()`, `groupBy()`, `pivot()`, `validateData()`, batch operations
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## [1.0.0] — 2025-06-01
|
|
76
|
+
|
|
77
|
+
Initial production release — 292 source files, 160+ React components.
|
|
78
|
+
|
|
79
|
+
### Core
|
|
80
|
+
- Theme system with CSS variables, light/dark mode, 100+ presets
|
|
81
|
+
- i18n provider (PL, EN) with `useNiceTranslation`
|
|
82
|
+
- Icon system: `NiceIcon`, `NiceIconProvider`, 300+ built-in SVG icons
|
|
83
|
+
- Accessibility: a11y provider, skip links, keyboard hints
|
|
84
|
+
- Responsive: breakpoints, media queries, container queries
|
|
85
|
+
- DataSource pattern: array, REST, OData, GraphQL adapters
|
|
86
|
+
|
|
87
|
+
### Components
|
|
88
|
+
- **Buttons**: NiceButton, NiceDropDownButton, NiceIconButton, NiceSpeedDial, NiceButtonGroup
|
|
89
|
+
- **Editors**: TextInput, NumberInput, Select, Checkbox, Toggle, DatePicker, TextArea, Autocomplete, ColorPicker, RangeSlider, RadioGroup, TagBox, HtmlEditor, CodeEditor
|
|
90
|
+
- **Data**: DataGrid (sort, filter, page, virtual scroll, group, pivot, edit), TreeView, CardView
|
|
91
|
+
- **Display**: Badge, Progress, Avatar, Skeleton, Empty State, Tooltip, Popover
|
|
92
|
+
- **Navigation**: Menu, Navbar, Sidebar, Tabs, Breadcrumb, Drawer, Accordion, Wizard
|
|
93
|
+
- **Overlays**: Modal, Dialog, Alert, Toast, ContextMenu
|
|
94
|
+
- **Charts**: 21 chart types (bar, line, area, pie, donut, scatter, radar, polar, funnel, treemap, heatmap, candlestick, waterfall, sankey, gauge, sparkline, etc.)
|
|
95
|
+
- **Planning**: Scheduler, Gantt
|
|
96
|
+
- **Layout**: Splitter, ResponsiveGrid, AppLayout
|
|
97
|
+
- **Smart Home**: FloorPlanCanvas, DeviceCard, SceneControl, EnergyDashboard
|
|
2
98
|
|
|
3
99
|
All notable changes to `@nice2dev/ui` will be documented in this file.
|
|
4
100
|
|
|
@@ -7,6 +103,168 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
103
|
|
|
8
104
|
---
|
|
9
105
|
|
|
106
|
+
## [1.0.1] — 2026-03-24
|
|
107
|
+
|
|
108
|
+
### Added
|
|
109
|
+
|
|
110
|
+
#### Navigation
|
|
111
|
+
- `NiceSidebarNav` — full OmniVerk sidebar navigation with role / unit / favourites / preferences modes
|
|
112
|
+
- `NiceSidebarNavSource`, `NiceSidebarNavMode`, `NiceSidebarItemDto`, `NiceNavSection`, `NiceNavBadge`
|
|
113
|
+
- `NiceSidebarNavProps`, `NiceSidebarNavRef` (imperative `setMode`, `setQuery`, `focusSearch` API)
|
|
114
|
+
- Accessible: keyboard navigation, ARIA roles, reduced-motion support
|
|
115
|
+
|
|
116
|
+
### Fixed
|
|
117
|
+
- `pdfjs-dist` CJS/ESM compatibility under Vite 6: replaced `new Function('require', …)` pattern with a
|
|
118
|
+
proper dynamic `import()` to align with strict CSP and Vite 6 module resolution (`pdf-loader.ts`)
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
### 🚀 Major Feature Release
|
|
125
|
+
|
|
126
|
+
70+ new components, advanced data handling, gamification, ERP/business tools, dev utilities, and theme system expansion.
|
|
127
|
+
|
|
128
|
+
### New Editors
|
|
129
|
+
|
|
130
|
+
- `NiceAccountPicker` — account selection with search and hierarchy
|
|
131
|
+
- `NiceAddressInput` — structured address input with autocomplete
|
|
132
|
+
- `NiceCodeEditor` — syntax-highlighted code editor with line numbers
|
|
133
|
+
- `NiceColorPalette` — palette-based color selection grid
|
|
134
|
+
- `NiceContactPicker` — contact search and selection
|
|
135
|
+
- `NiceCurrencyInput` — currency input with symbol, formatting, and exchange rates
|
|
136
|
+
- `NiceFileUpload` — simplified file upload component
|
|
137
|
+
- `NiceGradientPicker` — gradient builder with stops, angle, and presets
|
|
138
|
+
- `NiceImageAnnotator` — image annotation with pins, shapes, and text
|
|
139
|
+
- `NiceInvoiceLineEditor` — invoice line items editor with calculations
|
|
140
|
+
- `NicePDFAnnotationEditor` — PDF annotation and markup editor
|
|
141
|
+
- `NicePhoneInput` — phone number input with country codes
|
|
142
|
+
- `NicePinCodeInput` — PIN/OTP code input with digit boxes
|
|
143
|
+
- `NiceScannerControl` — barcode/QR scanner camera control
|
|
144
|
+
- `NiceTaxRatePicker` — tax rate selection with jurisdictions
|
|
145
|
+
- `NiceVatInput` — VAT number input with EU VIES validation
|
|
146
|
+
- `NiceWiki` — wiki/knowledge base editor with markdown
|
|
147
|
+
- `NiceSignature` — digital signature component (enhanced variant)
|
|
148
|
+
|
|
149
|
+
### New Display Components
|
|
150
|
+
|
|
151
|
+
- `NiceAchievementBadge` — gamification achievement badge with progress and tiers
|
|
152
|
+
- `NiceAmountBreakdown` — financial amount breakdown (subtotal, tax, total)
|
|
153
|
+
- `NiceBusinessCard` — vCard-style business card display
|
|
154
|
+
- `NiceDocumentApprovalFlow` — approval workflow visualization with steps and statuses
|
|
155
|
+
- `NiceDocumentVersionList` — document version history list with diff
|
|
156
|
+
- `NiceInbox` — messaging inbox with read/unread, categories, and previews
|
|
157
|
+
- `NiceLeaderboard` — ranked leaderboard with avatars, scores, and highlighting
|
|
158
|
+
- `NiceNotificationCenter` — notification panel with categories and mark-as-read
|
|
159
|
+
- `NiceQuestCard` — gamification quest/mission card with objectives
|
|
160
|
+
- `NiceStatusBadge` — status indicator badge (online, busy, away, offline)
|
|
161
|
+
- `NiceXPBar` — experience/progression bar with level labels
|
|
162
|
+
|
|
163
|
+
### New Charts
|
|
164
|
+
|
|
165
|
+
- `NiceAdvancedCharts` — additional chart types (waterfall, box plot, bubble, etc.)
|
|
166
|
+
- `colors.ts` — extended chart color palette utilities
|
|
167
|
+
|
|
168
|
+
### New Feedback Components
|
|
169
|
+
|
|
170
|
+
- `NiceErrorBoundary` — React error boundary with fallback UI and retry
|
|
171
|
+
- `NiceOfflineBanner` — offline status indicator banner
|
|
172
|
+
- `NiceRetryPanel` — retry panel with exponential backoff and error display
|
|
173
|
+
|
|
174
|
+
### New Navigation Components
|
|
175
|
+
|
|
176
|
+
- `NiceNavbar` — responsive navigation bar with mobile hamburger
|
|
177
|
+
- `NiceTenantSwitcher` — multi-tenant organization switcher
|
|
178
|
+
- `NiceUserMenu` — user profile dropdown with avatar and settings
|
|
179
|
+
- `NiceWizard` — multi-step wizard with progress and validation
|
|
180
|
+
|
|
181
|
+
### New Overlays
|
|
182
|
+
|
|
183
|
+
- `NiceCommandPalette` — VS Code-style command palette (Ctrl+K)
|
|
184
|
+
- `NiceOverlays` — overlay utilities and container
|
|
185
|
+
|
|
186
|
+
### New Planning Components
|
|
187
|
+
|
|
188
|
+
- `NiceResourceAllocation` — resource allocation board with capacity view
|
|
189
|
+
- `NiceTimeline` — enhanced timeline component with planning features
|
|
190
|
+
|
|
191
|
+
### New Tools & Utilities
|
|
192
|
+
|
|
193
|
+
- `NiceAuditLog` — audit trail viewer with filtering and search
|
|
194
|
+
- `NiceAuthGuard` — route/component access guard with redirect
|
|
195
|
+
- `NiceColumnChooser` — data grid column visibility picker
|
|
196
|
+
- `NiceConsentPanel` — GDPR/privacy consent management panel
|
|
197
|
+
- `NiceDashboardDesigner` — visual dashboard layout designer with drag-and-drop
|
|
198
|
+
- `NiceDiagramDesigner` — diagram design tool
|
|
199
|
+
- `NiceDocumentViewer` — universal document viewer (PDF, Office, images)
|
|
200
|
+
- `NiceExport` — data export utilities (Excel, CSV, PDF, JSON, XML)
|
|
201
|
+
- `NiceFeatureFlags` — feature flag management and gating
|
|
202
|
+
- `NiceFormBuilder` — visual form designer with drag-and-drop fields
|
|
203
|
+
- `NicePermissionMatrix` — role × permission matrix editor
|
|
204
|
+
- `NicePrintPreview` — print preview with page layout options
|
|
205
|
+
- `NiceReportBuilder` — visual report/query builder
|
|
206
|
+
- `NiceUndoManager` — undo/redo state manager component
|
|
207
|
+
- `NiceWorkflowDesigner` — visual workflow/process designer
|
|
208
|
+
|
|
209
|
+
### Dev Tools
|
|
210
|
+
|
|
211
|
+
- `NiceApiContractTest` — API contract testing utilities
|
|
212
|
+
- `NiceCLI` — CLI framework for component scaffolding
|
|
213
|
+
- `NiceCodeGenerator` — code generation utilities
|
|
214
|
+
- `NiceESLintPlugin` — ESLint rules for NiceToDev conventions
|
|
215
|
+
- `NiceModuleGeneratorCLI` — module scaffolding CLI
|
|
216
|
+
- `NiceModuleHealthCheck` — module health check diagnostics
|
|
217
|
+
- `NiceModuleHotSwap` — hot module swapping utilities
|
|
218
|
+
- `NiceModuleLoader` — lazy module loader with fallback
|
|
219
|
+
|
|
220
|
+
### View Builder Extensions
|
|
221
|
+
|
|
222
|
+
- `NiceViewRendererV2` — next-gen view renderer with improved performance
|
|
223
|
+
- `NiceViewCache` — view definition caching
|
|
224
|
+
- `NiceViewDiff` — visual diff between view definitions
|
|
225
|
+
- `NiceViewFetcher` — remote view definition fetching
|
|
226
|
+
- `NiceViewHotReload` — hot reload for view definitions
|
|
227
|
+
- `NiceViewRegistry` — view definition registry
|
|
228
|
+
- `NiceViewSchemaValidator` — view definition JSON schema validation
|
|
229
|
+
- `NiceViewStorybook` — Storybook integration for views
|
|
230
|
+
- `viewDefinitionV2.ts` — v2 view definition schema
|
|
231
|
+
|
|
232
|
+
### Framework Utilities
|
|
233
|
+
|
|
234
|
+
- `NiceComponentTypeMapping` — dynamic component type resolver
|
|
235
|
+
- `NiceCrossPlatformSchema` — cross-platform schema definitions
|
|
236
|
+
- `NiceDesignTokens` — design token management
|
|
237
|
+
- `NiceFigmaSync` — Figma design sync integration
|
|
238
|
+
- `NiceModuleManifest` — module manifest schema
|
|
239
|
+
- `NiceRbacModel` — role-based access control model
|
|
240
|
+
|
|
241
|
+
### Core Enhancements
|
|
242
|
+
|
|
243
|
+
- `a11y-advanced.ts` — advanced accessibility utilities (live regions, focus management)
|
|
244
|
+
- `adapters.ts` — I/O adapter abstractions
|
|
245
|
+
- `datasource-advanced.ts` — advanced data source (virtual scrolling, tree, grouping)
|
|
246
|
+
- `datasource-aggregation.ts` — data aggregation engine (sum, avg, min, max, count)
|
|
247
|
+
- `datasource-offline.ts` — offline-first data source with sync
|
|
248
|
+
- `icuMessageFormat.ts` — ICU message format for i18n plurals and gender
|
|
249
|
+
- `lazy.tsx` — lazy loading utilities with Suspense integration
|
|
250
|
+
- `leak-detector.tsx` — memory leak detection dev tool
|
|
251
|
+
- `profiling.tsx` — React profiling overlay
|
|
252
|
+
|
|
253
|
+
### Theme System
|
|
254
|
+
|
|
255
|
+
- `NiceThemeProvider` — context-based theme provider
|
|
256
|
+
- `NiceThemeVariants` — theme variant management
|
|
257
|
+
- `NiceUserPreferences` — user preference persistence (theme, language, density)
|
|
258
|
+
- `themeGallery.ts` — 90+ theme gallery with categories
|
|
259
|
+
- `themeVariants.ts` — theme variant definitions
|
|
260
|
+
|
|
261
|
+
### File Manager
|
|
262
|
+
|
|
263
|
+
- `NiceFileManager.types.ts` — extended file manager type definitions
|
|
264
|
+
- `NiceFileManagerViews.tsx` — file manager view modes (list, grid, detail)
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
10
268
|
## [1.0.0] — 2026-03-16
|
|
11
269
|
|
|
12
270
|
### 🎉 Initial Release
|