@nice2dev/ui-display 1.1.9 → 1.2.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/CHANGELOG.md +76 -0
- package/README.md +0 -6
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +27 -28
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
1
|
# @nice2dev/ui-display
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 3a4939d: 1.2.0 — the API cleanup announced for this version, dictionaries per language by default, and
|
|
8
|
+
three new controls. **Breaking:** every removal has a replacement, listed name by name in
|
|
9
|
+
`documentation/omniverk/OMNIVERK_UPGRADE_1.2.0.md`.
|
|
10
|
+
|
|
11
|
+
**Removed (breaking).** All 118 `@deprecated` names: the aliases without the `Nice` prefix in
|
|
12
|
+
`ui-audio`, `ui-graphics` and `ui-3d`; `NiceBarcodeGenerator` (→ `NiceBarcode`), `NiceFloorPlanCanvas`
|
|
13
|
+
(→ `NiceSpatialEditor` in `@nice2dev/ui-buildings`), the v2 props and types of `NiceTopNav`,
|
|
14
|
+
`NiceProgress.showLabel`, `NiceCountryPicker.showDialCode` / `showFlag`, `type` on
|
|
15
|
+
`NiceDateTimePicker` / `NiceDateRangeBox` (→ `dateFormatPreset`); `ZoneOccupancy` in
|
|
16
|
+
`ui-buildings` and `events`, the `SmartHome*` types; the icon variant `flat` (→ `cutout`) and
|
|
17
|
+
`NiceIconEditor` (→ `NiceVectorEditor`); `NiceSizeLegacy`; the `snapGrid` module of `ui-diagrams` (→
|
|
18
|
+
`@nice2dev/spatial-core`); the opt-in stylesheet `@nice2dev/ui/css/legacy-bg-text-aliases.css`, which
|
|
19
|
+
formed an alias cycle with `style.css`. Props that were accepted and never read — 19 on
|
|
20
|
+
`NiceModuleGrid`, and more on `NiceAutocomplete`, `NiceTaskInbox`, `NiceConsentBanner`, the
|
|
21
|
+
building and communication controls, four `ui-audio` panels and `NiceStreamDashboard` — are gone
|
|
22
|
+
from the types. `NiceResourceAllocation` in `ui-erp` is `NiceCapacityPlanner` (the one in `ui`
|
|
23
|
+
keeps its name); `NiceGenericPlayerStageVisualizer` (→ `NiceStageVisualizer`) and
|
|
24
|
+
`NiceCubeBrowserProps` are removed. The `@nice2dev/ui/overlays` entry calls its modal, drawer,
|
|
25
|
+
bottom sheet and context menu `NiceOverlayModal`, `NiceOverlayDrawer`, `NiceOverlayBottomSheet` and
|
|
26
|
+
`NiceOverlayContextMenu`: the old names belonged to different components of `@nice2dev/ui`.
|
|
27
|
+
|
|
28
|
+
**Dictionaries per language.** `NiceI18nProvider` loads only the language in use, with `import()`
|
|
29
|
+
(it was `NiceI18nLazyProvider` in 1.1.10, which stays as the same component); the controls show their
|
|
30
|
+
built-in English until it arrives — `await loadNiceDictionary(lang)` before the first render to start
|
|
31
|
+
in the language. Nothing on the main entry of `@nice2dev/i18n` imports a dictionary any more:
|
|
32
|
+
`NICE_I18N_DICTIONARIES`, `createTranslator`, `NICE_I18N_VARIANTS` / `resolvePlVariant` and the
|
|
33
|
+
translation tooling moved to the new entry `@nice2dev/i18n/all`, and `@nice2dev/ui-core` no longer
|
|
34
|
+
re-exports the dictionary map. `@nice2dev/ui` with what it bundles: 1283 kB → 952 kB gzip loaded up
|
|
35
|
+
front. The `ui-audio` controls read the app's `NiceI18nProvider` now; their own provider overrides it.
|
|
36
|
+
|
|
37
|
+
**New controls.** `NiceRecurrenceEditor`, `NiceStopwatch`, `NiceCountdownTimer` (`@nice2dev/ui`) and
|
|
38
|
+
`NicePasswordGenerator` (`@nice2dev/auth`), plus `recurrenceDates()` and `generatePassword()`.
|
|
39
|
+
`NiceScheduler` honours a weekly rule's `byDay`, which it ignored.
|
|
40
|
+
|
|
41
|
+
**Visible changes.** The palette meets WCAG AA for text on every fill: darker fills in the light
|
|
42
|
+
theme, dark text on the fills of the dark theme (new `--nice-text-on-success` / `-error` / `-info` /
|
|
43
|
+
`-accent` / `-warning`; `NiceThemeText` takes `onSuccess`, `onError`, `onInfo`, `onWarning`). Mobile
|
|
44
|
+
and platform panels follow the app theme instead of `prefers-color-scheme`. Swipes in
|
|
45
|
+
`NiceSwipeActions`, `NiceTouchTable` and `NiceMobileCalendar` work with a mouse and a pen. The
|
|
46
|
+
`ui-forms` editors have the intended spacing (it was four times too large). `NiceMAM`,
|
|
47
|
+
`NiceTranscoder`, `NiceVideoAnnotator` and `NiceStreamDashboard` use `nice-`-prefixed BEM classes.
|
|
48
|
+
|
|
49
|
+
**Fixes.** Controls that invented results ask the host instead: `NiceIntegrationHub`,
|
|
50
|
+
`NiceMLStudio` (`onExperimentRun` may return metrics), `NiceRemoteManagement`
|
|
51
|
+
(`onCaptureScreenshot`), `NicePoseDetector` (`detector`), `NiceBatchScannerProvider`,
|
|
52
|
+
`NiceCacheStrategies`; `NiceLowCodeStudio` accepts dropped components. Controls that did nothing
|
|
53
|
+
work or say why they are off: `NiceStreamDashboard` adds sources, sends chat and runs the chosen
|
|
54
|
+
transition (new `onAddPlatform`, `onSendChatMessage`, `onTransition`, `onScreenshot`,
|
|
55
|
+
`onOpenAudioMixer`, `onOpenSettings`; `receiveChatMessage` feeds incoming chat), `NiceMLStudio`
|
|
56
|
+
downloads through `onModelDownload`, `NiceETLBuilder` saves through `onSave` (its Save button had
|
|
57
|
+
no handler), `NiceTranscoder` makes jobs of picked and dropped files, `NiceAutomationEditor` offers
|
|
58
|
+
the trigger types its model has. Texts of about fifty components go
|
|
59
|
+
through `t()` in six languages, among them the AI data grid, chart and form builders, the ML
|
|
60
|
+
studio, the report designer, the song picker, `NiceProtocolConfig`, `NiceETLBuilder` and
|
|
61
|
+
`NiceInlineHelp` — every key the controls pass to `t()` now has a dictionary entry, so none of
|
|
62
|
+
them stays English under another language; `NiceDataGridAI` sorts on a query in any language, not
|
|
63
|
+
only in English. `NiceWindow`, `NiceConsole`, `NiceFileManager` and `NiceGitManager` no longer
|
|
64
|
+
crash when `accessMode` switches to or from `'hidden'`. Ids come from `createId()` (`@nice2dev/ui-core`), so nothing throws
|
|
65
|
+
outside a secure context as `crypto.randomUUID()` did on plain http. `ui-3d` runs on three r183
|
|
66
|
+
without its deprecation warnings. `NiceRemoteManagement` calls the handlers of the latest render.
|
|
67
|
+
The AI hint popover and the `ui-platform` panels follow the app theme, not the system's or a
|
|
68
|
+
`.dark` class on the host. `NiceCommandPalette` has styles and its search filters;
|
|
69
|
+
`NiceTimeoutFeedback` starts its clock; `NiceOfflineBanner` takes `online`; Monaco's workers in
|
|
70
|
+
`NiceCodeEditor` load; the `ui-audio` panels that used Bootstrap classes use Nice controls; colours
|
|
71
|
+
that reached a canvas as `var(…)` (karaoke lanes and notes) are resolved first.
|
|
72
|
+
|
|
73
|
+
## 1.1.10
|
|
74
|
+
|
|
75
|
+
### Patch Changes
|
|
76
|
+
|
|
77
|
+
- The package description on npm shows a dash instead of the mis-encoded "—".
|
|
78
|
+
|
|
3
79
|
## 1.1.9
|
|
4
80
|
|
|
5
81
|
No changes in this release.
|
package/README.md
CHANGED
|
@@ -47,12 +47,6 @@ See [docs/PER_PACKAGE_IMPORT_MATRIX.md](../../docs/PER_PACKAGE_IMPORT_MATRIX.md)
|
|
|
47
47
|
import '@nice2dev/ui/style.css';
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
Optional legacy token aliases:
|
|
51
|
-
|
|
52
|
-
```tsx
|
|
53
|
-
import '@nice2dev/ui/css/legacy-bg-text-aliases.css';
|
|
54
|
-
```
|
|
55
|
-
|
|
56
50
|
## Examples
|
|
57
51
|
|
|
58
52
|
Live, interactive examples for every component are available in the [Nice2Dev showcase](https://github.com/nice2dev/NiceToDev.UI/tree/main/packages/showcase) — each entry exposes presets, size / state / label / error placement selectors and full prop documentation.
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@nice2dev/ui");Object.defineProperty(exports,"NiceAchievementBadge",{enumerable:!0,get:()=>e.NiceAchievementBadge});Object.defineProperty(exports,"NiceAmountBreakdown",{enumerable:!0,get:()=>e.NiceAmountBreakdown});Object.defineProperty(exports,"NiceAnalyticsTracker",{enumerable:!0,get:()=>e.NiceAnalyticsTracker});Object.defineProperty(exports,"NiceAvatar",{enumerable:!0,get:()=>e.NiceAvatar});Object.defineProperty(exports,"NiceAvatarGroup",{enumerable:!0,get:()=>e.NiceAvatarGroup});Object.defineProperty(exports,"NiceBadge",{enumerable:!0,get:()=>e.NiceBadge});Object.defineProperty(exports,"NiceBarcode",{enumerable:!0,get:()=>e.NiceBarcode});Object.defineProperty(exports,"
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@nice2dev/ui");Object.defineProperty(exports,"NiceAchievementBadge",{enumerable:!0,get:()=>e.NiceAchievementBadge});Object.defineProperty(exports,"NiceAmountBreakdown",{enumerable:!0,get:()=>e.NiceAmountBreakdown});Object.defineProperty(exports,"NiceAnalyticsTracker",{enumerable:!0,get:()=>e.NiceAnalyticsTracker});Object.defineProperty(exports,"NiceAvatar",{enumerable:!0,get:()=>e.NiceAvatar});Object.defineProperty(exports,"NiceAvatarGroup",{enumerable:!0,get:()=>e.NiceAvatarGroup});Object.defineProperty(exports,"NiceBadge",{enumerable:!0,get:()=>e.NiceBadge});Object.defineProperty(exports,"NiceBarcode",{enumerable:!0,get:()=>e.NiceBarcode});Object.defineProperty(exports,"NiceBusinessCard",{enumerable:!0,get:()=>e.NiceBusinessCard});Object.defineProperty(exports,"NiceButton",{enumerable:!0,get:()=>e.NiceButton});Object.defineProperty(exports,"NiceButtonGroup",{enumerable:!0,get:()=>e.NiceButtonGroup});Object.defineProperty(exports,"NiceCarousel",{enumerable:!0,get:()=>e.NiceCarousel});Object.defineProperty(exports,"NiceDivider",{enumerable:!0,get:()=>e.NiceDivider});Object.defineProperty(exports,"NiceDocumentApprovalFlow",{enumerable:!0,get:()=>e.NiceDocumentApprovalFlow});Object.defineProperty(exports,"NiceDocumentVersionList",{enumerable:!0,get:()=>e.NiceDocumentVersionList});Object.defineProperty(exports,"NiceDropDownButton",{enumerable:!0,get:()=>e.NiceDropDownButton});Object.defineProperty(exports,"NiceEmpty",{enumerable:!0,get:()=>e.NiceEmpty});Object.defineProperty(exports,"NiceFAQ",{enumerable:!0,get:()=>e.NiceFAQ});Object.defineProperty(exports,"NiceGallery",{enumerable:!0,get:()=>e.NiceGallery});Object.defineProperty(exports,"NiceInbox",{enumerable:!0,get:()=>e.NiceInbox});Object.defineProperty(exports,"NiceLeaderboard",{enumerable:!0,get:()=>e.NiceLeaderboard});Object.defineProperty(exports,"NicePDFViewer",{enumerable:!0,get:()=>e.NicePDFViewer});Object.defineProperty(exports,"NiceProgress",{enumerable:!0,get:()=>e.NiceProgress});Object.defineProperty(exports,"NiceQRCode",{enumerable:!0,get:()=>e.NiceQRCode});Object.defineProperty(exports,"NiceQuestCard",{enumerable:!0,get:()=>e.NiceQuestCard});Object.defineProperty(exports,"NiceSegmentedControl",{enumerable:!0,get:()=>e.NiceSegmentedControl});Object.defineProperty(exports,"NiceSkeleton",{enumerable:!0,get:()=>e.NiceSkeleton});Object.defineProperty(exports,"NiceSpeedDialAction",{enumerable:!0,get:()=>e.NiceSpeedDialAction});Object.defineProperty(exports,"NiceSpinner",{enumerable:!0,get:()=>e.NiceSpinner});Object.defineProperty(exports,"NiceTag",{enumerable:!0,get:()=>e.NiceTag});Object.defineProperty(exports,"NiceTerminalUI",{enumerable:!0,get:()=>e.NiceTerminalUI});Object.defineProperty(exports,"NiceTimeline",{enumerable:!0,get:()=>e.NiceTimeline});Object.defineProperty(exports,"NiceTooltip",{enumerable:!0,get:()=>e.NiceTooltip});Object.defineProperty(exports,"NiceVirtualScroller",{enumerable:!0,get:()=>e.NiceVirtualScroller});Object.defineProperty(exports,"useAnalytics",{enumerable:!0,get:()=>e.useAnalytics});
|
package/dist/index.d.ts
CHANGED
|
@@ -42,8 +42,8 @@ export { NiceVirtualScroller } from '@nice2dev/ui';
|
|
|
42
42
|
export type { NiceVirtualScrollerProps } from '@nice2dev/ui';
|
|
43
43
|
export { NicePDFViewer } from '@nice2dev/ui';
|
|
44
44
|
export type { NicePDFViewerProps } from '@nice2dev/ui';
|
|
45
|
-
export { NiceBarcode
|
|
46
|
-
export type { NiceBarcodeProps,
|
|
45
|
+
export { NiceBarcode } from '@nice2dev/ui';
|
|
46
|
+
export type { NiceBarcodeProps, NiceBarcodeFormat } from '@nice2dev/ui';
|
|
47
47
|
export { NiceQRCode } from '@nice2dev/ui';
|
|
48
48
|
export type { NiceQRCodeProps, NiceQRErrorCorrection } from '@nice2dev/ui';
|
|
49
49
|
export { NiceTerminalUI } from '@nice2dev/ui';
|
package/dist/index.mjs
CHANGED
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
import { NiceAchievementBadge as c, NiceAmountBreakdown as N, NiceAnalyticsTracker as
|
|
1
|
+
import { NiceAchievementBadge as c, NiceAmountBreakdown as N, NiceAnalyticsTracker as o, NiceAvatar as r, NiceAvatarGroup as t, NiceBadge as a, NiceBarcode as n, NiceBusinessCard as l, NiceButton as u, NiceButtonGroup as d, NiceCarousel as s, NiceDivider as p, NiceDocumentApprovalFlow as m, NiceDocumentVersionList as A, NiceDropDownButton as B, NiceEmpty as D, NiceFAQ as g, NiceGallery as v, NiceInbox as C, NiceLeaderboard as S, NicePDFViewer as T, NiceProgress as w, NiceQRCode as y, NiceQuestCard as k, NiceSegmentedControl as F, NiceSkeleton as G, NiceSpeedDialAction as Q, NiceSpinner as V, NiceTag as b, NiceTerminalUI as x, NiceTimeline as I, NiceTooltip as L, NiceVirtualScroller as P, useAnalytics as f } from "@nice2dev/ui";
|
|
2
2
|
export {
|
|
3
3
|
c as NiceAchievementBadge,
|
|
4
4
|
N as NiceAmountBreakdown,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
o as NiceAnalyticsTracker,
|
|
6
|
+
r as NiceAvatar,
|
|
7
7
|
t as NiceAvatarGroup,
|
|
8
8
|
a as NiceBadge,
|
|
9
9
|
n as NiceBarcode,
|
|
10
|
-
l as
|
|
11
|
-
d as NiceBusinessCard,
|
|
10
|
+
l as NiceBusinessCard,
|
|
12
11
|
u as NiceButton,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
d as NiceButtonGroup,
|
|
13
|
+
s as NiceCarousel,
|
|
14
|
+
p as NiceDivider,
|
|
15
|
+
m as NiceDocumentApprovalFlow,
|
|
16
|
+
A as NiceDocumentVersionList,
|
|
17
|
+
B as NiceDropDownButton,
|
|
18
|
+
D as NiceEmpty,
|
|
19
|
+
g as NiceFAQ,
|
|
20
|
+
v as NiceGallery,
|
|
21
|
+
C as NiceInbox,
|
|
22
|
+
S as NiceLeaderboard,
|
|
23
|
+
T as NicePDFViewer,
|
|
24
|
+
w as NiceProgress,
|
|
25
|
+
y as NiceQRCode,
|
|
27
26
|
k as NiceQuestCard,
|
|
28
27
|
F as NiceSegmentedControl,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
G as NiceSkeleton,
|
|
29
|
+
Q as NiceSpeedDialAction,
|
|
30
|
+
V as NiceSpinner,
|
|
31
|
+
b as NiceTag,
|
|
32
|
+
x as NiceTerminalUI,
|
|
33
|
+
I as NiceTimeline,
|
|
34
|
+
L as NiceTooltip,
|
|
35
|
+
P as NiceVirtualScroller,
|
|
36
|
+
f as useAnalytics
|
|
38
37
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice2dev/ui-display",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Nice2Dev UI Display
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"description": "Nice2Dev UI Display — Badge, Avatar, Progress, Skeleton, Timeline, Carousel, Buttons, QRCode, Barcode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "dist/index.cjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"react-dom": ">=17.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@nice2dev/ui": "^1.
|
|
36
|
+
"@nice2dev/ui": "^1.2.0",
|
|
37
37
|
"@types/react": "^19.2.18",
|
|
38
38
|
"@types/react-dom": "^19.2.7",
|
|
39
39
|
"@vitejs/plugin-react": "^4.7.0",
|