@nice2dev/ui 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 +150 -0
- package/README.md +27 -34
- package/dist/NiceButton-5tWvfXKl.cjs +1 -0
- package/dist/NiceButton-DHSgQT1_.js +112 -0
- package/dist/NiceCodeEditor-B8At55f5.js +1179 -0
- package/dist/NiceCodeEditor-BJSEzhcY.cjs +260 -0
- package/dist/NiceCodeEditor-BfkH1bsZ.cjs +260 -0
- package/dist/NiceCodeEditor-CduGYggj.js +1179 -0
- package/dist/NiceColorPicker-CdUnhM-A.cjs +1 -0
- package/dist/NiceColorPicker-DCgmE-3H.cjs +1 -0
- package/dist/NiceColorPicker-DK30kJgy.js +486 -0
- package/dist/NiceColorPicker-DpXwnDwL.js +598 -0
- package/dist/NiceColorPicker-DtPFxDKM.cjs +1 -0
- package/dist/NiceColorPicker-bNJBAU_c.js +598 -0
- package/dist/NiceConfirmDialog-B7aNRL2K.cjs +1 -0
- package/dist/NiceConfirmDialog-BdhWenrO.js +81 -0
- package/dist/NiceDataGrid-BOCJr6XF.js +2217 -0
- package/dist/NiceDataGrid-BV5Oh-gy.cjs +10 -0
- package/dist/NiceDataGrid-CVYEo_nv.cjs +10 -0
- package/dist/NiceDataGrid-D-rm4lu8.js +2217 -0
- package/dist/NiceDataGrid-Dd7SI-M6.cjs +10 -0
- package/dist/NiceDataGrid-DjZchXYG.js +2217 -0
- package/dist/NiceDocumentViewer-BgcgLWJ3.cjs +180 -0
- package/dist/NiceDocumentViewer-sukmGhRx.js +672 -0
- package/dist/NiceForm-BCEXovJR.cjs +1 -0
- package/dist/NiceForm-D7oyWHXg.js +4820 -0
- package/dist/NiceForm-DUhxXArr.js +4817 -0
- package/dist/NiceForm-DVc0Xoly.js +4819 -0
- package/dist/NiceForm-qD_RKPYz.cjs +1 -0
- package/dist/NiceForm-uCeVmTrD.cjs +1 -0
- package/dist/NiceGantt-4UBd4uJ8.cjs +1 -0
- package/dist/NiceGantt-B_1lwEsp.js +328 -0
- package/dist/NiceHtmlEditor-BYk1roA4.cjs +10 -0
- package/dist/NiceHtmlEditor-Bce9Vwe1.cjs +10 -0
- package/dist/NiceHtmlEditor-C5kLeF9H.cjs +10 -0
- package/dist/NiceHtmlEditor-CFVMIC5L.js +848 -0
- package/dist/NiceHtmlEditor-CGRgcu2h.js +848 -0
- package/dist/NiceHtmlEditor-mWebBmy1.js +849 -0
- package/dist/NiceLoginForm-BHyDY7br.cjs +1 -0
- package/dist/NiceLoginForm-BTuQ0eKk.cjs +1 -0
- package/dist/NiceLoginForm-BuxFY2Rk.js +750 -0
- package/dist/NiceLoginForm-o1A-TBcp.js +736 -0
- package/dist/NiceLoginForm.css +1 -0
- package/dist/NiceMention-CA7CL5BI.js +11263 -0
- package/dist/NiceMention-CHcKRl-L.cjs +430 -0
- package/dist/NiceMention-DJD0BLcp.js +11269 -0
- package/dist/NiceMention-DcaUEMSg.cjs +430 -0
- package/dist/NiceMention-Dds9GQzk.cjs +430 -0
- package/dist/NiceMention-DlLXWddO.js +11268 -0
- package/dist/NiceMention.css +1 -1
- package/dist/NiceModal-C4p8a82e.cjs +1 -0
- package/dist/NiceModal-Dr1e3nQZ.cjs +1 -0
- package/dist/NiceModal-TNlkaL_i.js +85 -0
- package/dist/NiceModal-sihGCfDy.js +95 -0
- package/dist/NiceModuleLifecyclePanel-BWbKdVC_.js +7054 -0
- package/dist/NiceModuleLifecyclePanel-CZHIzvkE.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-Du7G3-RG.js +7053 -0
- package/dist/NiceModuleLifecyclePanel-OC9YK2kG.js +7052 -0
- package/dist/NiceModuleLifecyclePanel-_OcfDmtC.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-js1p7LIY.cjs +1 -0
- package/dist/NicePagination-8XsBbMNx.js +165 -0
- package/dist/NicePagination-CkOoXf0f.js +165 -0
- package/dist/NicePagination-D44waj9o.cjs +1 -0
- package/dist/NicePagination-D7lek1G7.cjs +1 -0
- package/dist/NicePagination-DdxH8KMG.js +179 -0
- package/dist/NicePagination-OjTEfZJE.cjs +1 -0
- package/dist/NicePivotGrid-B2YHP3Z6.js +1183 -0
- package/dist/NicePivotGrid-BJRSciWl.js +1183 -0
- package/dist/NicePivotGrid-BtVUWiud.cjs +152 -0
- package/dist/NicePivotGrid-CS1dPmNI.cjs +152 -0
- package/dist/NicePivotGrid-D2AxqDzJ.js +1183 -0
- package/dist/NicePivotGrid-DxQ6Py9D.cjs +152 -0
- package/dist/NiceSavedQueryPanel-B5HhqlAI.cjs +586 -0
- package/dist/NiceSavedQueryPanel-C0A-eoYN.js +5142 -0
- package/dist/NiceSavedQueryPanel-CMStDOKe.js +5125 -0
- package/dist/NiceSavedQueryPanel-D2i34e_b.cjs +586 -0
- package/dist/NiceSavedQueryPanel-ZrilZRtf.cjs +586 -0
- package/dist/NiceSavedQueryPanel-mPO2THs7.js +5142 -0
- package/dist/NiceSavedQueryPanel.css +1 -1
- package/dist/NiceScheduler-7gP7vcLy.cjs +5 -0
- package/dist/NiceScheduler-Cy7F9tgH.js +1693 -0
- package/dist/NiceScheduler-DquRUZxD.cjs +5 -0
- package/dist/NiceScheduler-KSzaUQxC.js +1693 -0
- package/dist/NiceScheduler-O3AwmdGG.cjs +5 -0
- package/dist/NiceScheduler-l8N4yCWd.js +1716 -0
- package/dist/NiceSelect-BCbWtu1v.js +433 -0
- package/dist/NiceSelect-BqtiQbfD.cjs +1 -0
- package/dist/NiceSelect-DZB1Rs9x.js +435 -0
- package/dist/NiceSelect-tMz9QQUs.cjs +1 -0
- package/dist/NiceStreamDashboard.doc-74KUXya1.cjs +8 -0
- package/dist/NiceStreamDashboard.doc-k8PQfCM0.js +32 -0
- package/dist/NiceWindow-BEov3s9F.js +2094 -0
- package/dist/NiceWindow-BU1Ce7gS.js +1623 -0
- package/dist/NiceWindow-CDt6PCEg.cjs +1 -0
- package/dist/NiceWindow-jjdE6vGy.cjs +1 -0
- package/dist/NiceWindow.css +1 -1
- package/dist/charts-C047IMVn.cjs +768 -0
- package/dist/charts-C44vJber.cjs +768 -0
- package/dist/charts-CCXSb3xk.js +4752 -0
- package/dist/charts-CqETcUhH.js +4752 -0
- package/dist/charts-DouiiHOT.cjs +768 -0
- package/dist/charts-XVlDwU0y.js +4732 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +8 -8
- package/dist/core-BL-KmGYC.js +795 -0
- package/dist/core-BxiH7vkV.cjs +1 -0
- package/dist/core-Chg-oYCr.cjs +1 -0
- package/dist/core-CxBnKAhs.cjs +1 -0
- package/dist/core-DMV6_SEE.js +795 -0
- package/dist/core-D_LRh59n.js +795 -0
- package/dist/data-branching-Km4lc8P_.cjs +1 -0
- package/dist/data-branching-YQtJJEtn.js +6273 -0
- package/dist/data-branching-oEH04O3i.js +6273 -0
- package/dist/data-branching-wmsbLNfa.cjs +1 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +2 -53
- package/dist/data.mjs +3 -3
- package/dist/devops-Bt6EsfPa.cjs +17 -0
- package/dist/devops-CnZQ1rU5.js +8312 -0
- package/dist/devops-D5yIDM3e.js +8312 -0
- package/dist/devops-rVpB0ZAX.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +8 -26
- package/dist/editors.mjs +55 -54
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +5 -0
- package/dist/feedback.mjs +3 -3
- package/dist/index.cjs +290 -290
- package/dist/index.css +1 -1
- package/dist/index.d.ts +239 -234
- package/dist/index.mjs +20262 -19440
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +29 -29
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +4 -4
- package/dist/navigation.mjs +69 -69
- package/dist/no-code-4GtIBr6f.js +7503 -0
- package/dist/no-code-6WyYb3hL.cjs +331 -0
- package/dist/no-code-BH5oVFC6.js +8186 -0
- package/dist/no-code-Bdwh1vyS.cjs +332 -0
- package/dist/no-code-CnHG5_Vn.js +8186 -0
- package/dist/no-code-DMKlg1Zl.cjs +331 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.css +1 -1
- package/dist/no-code.d.ts +25 -18
- package/dist/no-code.mjs +3 -3
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +24 -24
- package/dist/overlays.mjs +24 -490
- package/dist/pickerCommons-0vyK1Knv.js +547 -0
- package/dist/pickerCommons-31hyz1gs.js +1122 -0
- package/dist/pickerCommons-BFbItm8o.cjs +1 -0
- package/dist/pickerCommons-BHirHJyn.js +548 -0
- package/dist/pickerCommons-BifIkPdk.cjs +1 -0
- package/dist/pickerCommons-Bt8JIaTN.cjs +1 -0
- package/dist/pickerCommons.css +1 -1
- package/dist/style.css +10 -7
- package/package.json +5 -7
- package/css/legacy-bg-text-aliases.css +0 -87
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,155 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
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
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- Updated dependencies [3a4939d]
|
|
76
|
+
- @nice2dev/i18n@1.2.0
|
|
77
|
+
- @nice2dev/ui-core@1.2.0
|
|
78
|
+
|
|
79
|
+
## 1.1.10
|
|
80
|
+
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- The package description on npm shows a dash instead of the mis-encoded "—".
|
|
84
|
+
- 1.1.10 — the additive part of OmniVerk's 1.2.0 list: ui-audio builds without optional packages, one
|
|
85
|
+
i18n context, dictionaries per language, data props optional. No breaking changes.
|
|
86
|
+
|
|
87
|
+
**`@nice2dev/ui-audio` no longer breaks the consumer's build.** It imported `react-bootstrap`,
|
|
88
|
+
`recharts`, `react-window`, `react-youtube` and `pitchy` statically while declaring none of them
|
|
89
|
+
(only optional entries in `peerDependenciesMeta`), so a Vite app without them failed with "failed to
|
|
90
|
+
resolve import". Loading them with `import()` is no way out: Vite 8 (Rolldown) resolves dynamic
|
|
91
|
+
imports at build time and fails the same way, which made `hls.js` and `phaser` mandatory too.
|
|
92
|
+
`react-bootstrap`, `recharts`, `react-window` and `phaser` are now gone from the code
|
|
93
|
+
(`NiceBarFillEditor` uses Nice controls, `NiceVocalPerformanceReport` uses `NiceChart` /
|
|
94
|
+
`NicePieChart`, the karaoke editor list uses `NiceVirtualScroller`, `NiceKaraokePhaserRenderer`
|
|
95
|
+
renders with the DOM and keeps its name); `pitchy`, `react-youtube` and `hls.js` are regular
|
|
96
|
+
`dependencies`. Found on the way: in live mode the vocal performance report subtracted UltraStar note
|
|
97
|
+
numbers from MIDI pitch, so every singer got thousands of cents of deviation and 0 % accuracy — it now
|
|
98
|
+
compares pitch within the octave, as the scoring does; `NiceBarFillEditor` put a colour into a
|
|
99
|
+
percentage slider.
|
|
100
|
+
|
|
101
|
+
**Every package declares what its bundle imports.** A new CI gate checks every `import`, `import()`
|
|
102
|
+
and `require()` in the published `dist` against `dependencies` and non-optional `peerDependencies`.
|
|
103
|
+
To reach zero: `@nice2dev/licensing` no longer has `require('webpack')` in its main bundle (the webpack
|
|
104
|
+
plugin uses `compiler.webpack`; webpack 4 gets a warning instead of feature flags) and `react` is a
|
|
105
|
+
required peer; `@nice2dev/erp-adapter` lists `@microsoft/signalr` in `dependencies` (still loaded on
|
|
106
|
+
first use); `@nice2dev/icons-cursor` declares its `react-dom` peer; `@nice2dev/ui-printing` treats
|
|
107
|
+
`@nice2dev/ui` as a required peer.
|
|
108
|
+
|
|
109
|
+
**One copy of each package, one i18n context.** `@nice2dev/ui` carried its own copy of
|
|
110
|
+
`@nice2dev/ui-core` and `@nice2dev/i18n`, and `ui-forms`, `ui-api`, `ui-bi`, `ui-designers`, `ui-math`
|
|
111
|
+
and `ui-video` each carried a copy of all of `@nice2dev/ui` (about 4.4 MB each). Every copy had its own
|
|
112
|
+
React contexts: a `NiceI18nProvider` imported from `@nice2dev/i18n` did not reach the controls of
|
|
113
|
+
`@nice2dev/ui`, which kept their English defaults and `lang` `'en'`, and the dictionaries ended up in
|
|
114
|
+
an app several times. These packages now import `@nice2dev/*` instead (`ui-forms` 4.4 MB → 82 kB).
|
|
115
|
+
Keep every `@nice2dev/*` package on the same version.
|
|
116
|
+
|
|
117
|
+
**Dictionaries per language.** `NiceI18nLazyProvider` takes the same props as `NiceI18nProvider`
|
|
118
|
+
(`t`, `lang`, `overrides`, plus `fallback` and `onError`) but loads only the active language's
|
|
119
|
+
dictionary, with `import()`; until it arrives the controls show their built-in English (or
|
|
120
|
+
`fallback`), and with `t` nothing is loaded at all. Also `loadNiceDictionary(lang)`, to start in a
|
|
121
|
+
language without a flash of English, and `getLoadedNiceDictionary(lang)`. Exported from
|
|
122
|
+
`@nice2dev/i18n`, `@nice2dev/ui-core` and `@nice2dev/ui`; in the `i18n` build every language is its own
|
|
123
|
+
file. `NiceI18nProvider` and `NICE_I18N_DICTIONARIES` are unchanged and still bring all 30 dictionaries.
|
|
124
|
+
`NiceTestWrapper` (ui-core) and `NiceShowcase` (ui) use the lazy provider now, so they no longer pull
|
|
125
|
+
every dictionary into the apps that bundle them.
|
|
126
|
+
|
|
127
|
+
**Data props are optional.** These controls threw a `TypeError` without data and now render empty:
|
|
128
|
+
`NiceTreeView.nodes`, `NiceAccordion.items`, `NiceCascadeSelect.options`, `NiceAutocomplete.options`,
|
|
129
|
+
`NiceAuditLog.entries`, `NiceDocumentVersionList.versions`, `NicePermissionMatrix.roles` / `actions`,
|
|
130
|
+
`WizardStep.content`, `NiceDiagramViewer.document`, `NiceOrgChartVisualizer.data`,
|
|
131
|
+
`NiceSpatialViewer.document`, and in `@nice2dev/events` the lists of `NiceGiftRegistry`,
|
|
132
|
+
`NiceParticipantList`, `NiceExpenseSplit`, `NiceSeatingChart`, `NiceMediaCollage` and `NiceEventMedia`.
|
|
133
|
+
`NiceMap` without `center` centres on its markers (the whole world without markers), `NiceCountdown`
|
|
134
|
+
without `targetDate` shows zero and never calls `onComplete`, `NiceChat` without `onSend` is read-only
|
|
135
|
+
(no input), and `NiceInvitationDesigner` gains `defaultTemplate`. A CI ratchet counts the required
|
|
136
|
+
array props that remain.
|
|
137
|
+
|
|
138
|
+
**Smaller fixes.** `NicePieChart` draws a 100 % slice as a full circle instead of nothing. In
|
|
139
|
+
development `NiceThemeProvider` warns when `--nice-primary` / `--nice-color-primary` (or another linked
|
|
140
|
+
pair) resolves to nothing on `:root` — usually an alias cycle in the app's CSS; the theming guides say
|
|
141
|
+
which side to set. `@nice2dev/game-engine` exports `createAnimationClip`, `AnimatorController` and
|
|
142
|
+
`createAnimatorController` (two modules exported each name, so `export *` dropped all three); the other
|
|
143
|
+
implementations are `StateMachineAnimatorController`, `createStateMachineAnimatorController`,
|
|
144
|
+
`createTimelineAnimationClip` and `createRetargetingAnimationClip`.
|
|
145
|
+
|
|
146
|
+
Nothing was renamed or removed.
|
|
147
|
+
|
|
148
|
+
- Updated dependencies
|
|
149
|
+
- Updated dependencies
|
|
150
|
+
- @nice2dev/ui-core@1.1.10
|
|
151
|
+
- @nice2dev/i18n@1.1.10
|
|
152
|
+
|
|
3
153
|
## 1.1.9
|
|
4
154
|
|
|
5
155
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -23,29 +23,30 @@ import { NiceDataGrid } from '@nice2dev/ui';
|
|
|
23
23
|
import { NiceDataGrid } from '@nice2dev/ui/data';
|
|
24
24
|
|
|
25
25
|
// 3. Per-domain facade package (best for microfrontends / RSC)
|
|
26
|
-
import {
|
|
26
|
+
import { NiceBadge } from '@nice2dev/ui-display';
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
**Canonical, exhaustive matrix:** [
|
|
29
|
+
**Canonical, exhaustive matrix:** [PER_PACKAGE_IMPORT_MATRIX.md](../../documentation/reference/PER_PACKAGE_IMPORT_MATRIX.md) — covers all 200+ components and 11 subpath exports. The published per-domain packages are `@nice2dev/ui-display` and `@nice2dev/ui-mobile`; for every other area use the subpath.
|
|
30
30
|
|
|
31
31
|
Quick reference — most common areas:
|
|
32
32
|
|
|
33
|
-
| Area | Subpath | Facade package
|
|
34
|
-
| -------------------------------------------- | ----------------------------- |
|
|
35
|
-
| Charts & gauges | `@nice2dev/ui/charts` |
|
|
36
|
-
| Grids, tables, lists, kanban | `@nice2dev/ui/data` |
|
|
37
|
-
| Inputs, pickers, editors | `@nice2dev/ui/editors` |
|
|
38
|
-
| Alerts, modals, toasts | `@nice2dev/ui/feedback` |
|
|
39
|
-
| Tabs, menu, layouts, breadcrumb | `@nice2dev/ui/navigation` |
|
|
40
|
-
| Windows, popovers, command palette | `@nice2dev/ui/overlays` |
|
|
41
|
-
| Git tools / CI/CD | `@nice2dev/ui/devops` | —
|
|
42
|
-
| Low-code studio, page builder | `@nice2dev/ui/no-code` | —
|
|
43
|
-
| Git-like data versioning (ERP) | `@nice2dev/ui/data-branching` | —
|
|
44
|
-
| Buttons, badges, display widgets | `@nice2dev/ui` (root) | `@nice2dev/ui-display`
|
|
45
|
-
| Scheduler, gantt, timeline | `@nice2dev/ui` (root) |
|
|
46
|
-
| Touch & mobile (bottom sheet, gestures, ...) | — (extracted in v1.0.10) | `@nice2dev/ui-mobile`
|
|
33
|
+
| Area | Subpath | Facade package |
|
|
34
|
+
| -------------------------------------------- | ----------------------------- | ---------------------- |
|
|
35
|
+
| Charts & gauges | `@nice2dev/ui/charts` | — |
|
|
36
|
+
| Grids, tables, lists, kanban | `@nice2dev/ui/data` | — |
|
|
37
|
+
| Inputs, pickers, editors | `@nice2dev/ui/editors` | — |
|
|
38
|
+
| Alerts, modals, toasts | `@nice2dev/ui/feedback` | — |
|
|
39
|
+
| Tabs, menu, layouts, breadcrumb | `@nice2dev/ui/navigation` | — |
|
|
40
|
+
| Windows, popovers, command palette | `@nice2dev/ui/overlays` | — |
|
|
41
|
+
| Git tools / CI/CD | `@nice2dev/ui/devops` | — |
|
|
42
|
+
| Low-code studio, page builder | `@nice2dev/ui/no-code` | — |
|
|
43
|
+
| Git-like data versioning (ERP) | `@nice2dev/ui/data-branching` | — |
|
|
44
|
+
| Buttons, badges, display widgets | `@nice2dev/ui` (root) | `@nice2dev/ui-display` |
|
|
45
|
+
| Scheduler, gantt, timeline | `@nice2dev/ui` (root) | — |
|
|
46
|
+
| Touch & mobile (bottom sheet, gestures, ...) | — (extracted in v1.0.10) | `@nice2dev/ui-mobile` |
|
|
47
47
|
|
|
48
48
|
> Facade packages are pure re-exports — same singleton, zero duplication. They require `@nice2dev/ui` as a peer dependency.
|
|
49
|
+
> `@nice2dev/ui-charts`, `-data`, `-editors`, `-feedback`, `-nav`, `-overlays` and `-planning` were never published to npm; since 1.1.10 they are private workspace packages. Use the subpath instead.
|
|
49
50
|
|
|
50
51
|
---
|
|
51
52
|
|
|
@@ -679,26 +680,18 @@ Create a custom theme by overriding CSS variables:
|
|
|
679
680
|
}
|
|
680
681
|
```
|
|
681
682
|
|
|
682
|
-
###
|
|
683
|
+
### Following your app's own variables
|
|
683
684
|
|
|
684
|
-
|
|
685
|
-
`--
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
685
|
+
`style.css` declares the conventional shorthand names (`--color-primary`, `--bg-primary`,
|
|
686
|
+
`--text-primary`, `--border-color`, `--shadow-sm/md/lg`, …) as aliases of the Nice tokens,
|
|
687
|
+
so selectors that read them keep working. The reverse — Nice controls following a value your
|
|
688
|
+
app assigns to `--bg-primary` — is done by assigning that value to the Nice token instead, as
|
|
689
|
+
in **Custom Themes** above.
|
|
689
690
|
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
Reading the old names never stopped working and needs no import — `style.css`
|
|
696
|
-
declares them as aliases. This sheet is only about the reverse direction, and it is
|
|
697
|
-
removed in 1.2. Prefer setting `--nice-color-primary` directly: it cannot collide
|
|
698
|
-
with your own variables, and unlike the shorthand it is safe to scope to a subtree.
|
|
699
|
-
|
|
700
|
-
The alias file only fills in gaps (it never overrides values you set
|
|
701
|
-
yourself) and follows the active Nice theme (light / dark) automatically.
|
|
691
|
+
Up to 1.1.x an opt-in sheet, `@nice2dev/ui/css/legacy-bg-text-aliases.css`, did this with
|
|
692
|
+
`--nice-bg-primary: var(--bg-primary, …)`. It was removed in 1.2.0: together with the aliases
|
|
693
|
+
in `style.css` it formed a cycle wherever the app had not set the shorthand name itself, and the
|
|
694
|
+
browser then drops both variables. Do not recreate it with `var()` — assign values.
|
|
702
695
|
|
|
703
696
|
---
|
|
704
697
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),s=require("@nice2dev/ui-core"),W=require("react"),$=W.forwardRef(({children:i,variant:v="primary",size:w="md",type:C="button",disabled:c,loading:n,fullWidth:D,onClick:k,leftIcon:r,rightIcon:l,error:o,errorPlacement:p="bottom",ariaLabel:S,className:z,style:B,id:m,accessMode:q,displayStyle:y,...R},L)=>{const a=s.normalizeVariant(v),d=s.normalizeSize(w),u=s.useNiceAccessMode(q,m),x=u==="hidden";(u==="disabled"||u==="readOnly")&&(c=!0);const h=s.useComponentDisplayStyle("button",y),O=s.useComponentDisplayClass("button",y);let N=h;if(a!=="primary"){const t={...h};delete t.background,delete t.color,(a==="outline"||a==="ghost")&&(delete t.border,delete t.borderColor,delete t.borderWidth,delete t.borderStyle,delete t.boxShadow),N=t}const b=i!=null&&i!==!1&&!(typeof i=="string"&&i.trim()===""),j=!b&&!!(r||l),f=e.jsxs("button",{ref:L,type:C,id:m,className:`nice-btn nice-btn--${a} nice-btn--${d} nice-btn--ds-${O} ${j?"nice-btn--icon-only":""} ${D?"nice-btn--full-width":""} ${n?"nice-btn--loading":""} ${o&&!p?"nice-btn--has-error":""} ${z||""}`,style:{...N,...B},disabled:c||n,"aria-busy":n||void 0,"aria-disabled":c||n||void 0,"aria-label":S,onClick:k,...R,children:[n&&e.jsx("svg",{className:"nice-btn__spinner",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"3","aria-hidden":"true",children:e.jsx("circle",{cx:"12",cy:"12",r:"10",strokeDasharray:"31.4 31.4",strokeLinecap:"round"})}),!n&&r&&e.jsx("span",{className:"nice-btn__icon","aria-hidden":"true",children:r}),!n&&b&&e.jsx("span",{children:i}),n&&b&&e.jsx("span",{style:{visibility:"hidden"},"aria-hidden":"true",children:i}),n&&j&&e.jsx("span",{className:"nice-btn__icon",style:{visibility:"hidden"},"aria-hidden":"true",children:r||l}),!n&&l&&e.jsx("span",{className:"nice-btn__icon","aria-hidden":"true",children:l})]});if(x)return null;if(!o)return f;const _=e.jsx("div",{className:"nice-field__error",role:"alert",children:o});return p==="right"?e.jsxs("span",{className:`nice-btn-field nice-btn-field--right nice-field--${d}`,style:{display:"inline-flex",flexDirection:"row",alignItems:"center",gap:"8px",width:"fit-content"},children:[f,_]}):x?null:e.jsxs("span",{className:`nice-btn-field nice-btn-field--bottom nice-field--${d}`,style:{display:"inline-flex",flexDirection:"column",alignItems:"flex-start",gap:"4px",width:"fit-content"},children:[f,_]})});$.displayName="NiceButton";exports.NiceButton=$;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { jsxs as m, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { normalizeVariant as A, normalizeSize as E, useNiceAccessMode as H, useComponentDisplayStyle as M, useComponentDisplayClass as R } from "@nice2dev/ui-core";
|
|
3
|
+
import { forwardRef as V } from "react";
|
|
4
|
+
const q = V(
|
|
5
|
+
({
|
|
6
|
+
children: i,
|
|
7
|
+
variant: v = "primary",
|
|
8
|
+
size: w = "md",
|
|
9
|
+
type: C = "button",
|
|
10
|
+
disabled: a,
|
|
11
|
+
loading: e,
|
|
12
|
+
fullWidth: D,
|
|
13
|
+
onClick: k,
|
|
14
|
+
leftIcon: s,
|
|
15
|
+
rightIcon: r,
|
|
16
|
+
error: o,
|
|
17
|
+
errorPlacement: p = "bottom",
|
|
18
|
+
ariaLabel: S,
|
|
19
|
+
className: z,
|
|
20
|
+
style: B,
|
|
21
|
+
id: f,
|
|
22
|
+
accessMode: j,
|
|
23
|
+
displayStyle: y,
|
|
24
|
+
...L
|
|
25
|
+
}, O) => {
|
|
26
|
+
const l = A(v), c = E(w), d = H(j, f), h = d === "hidden";
|
|
27
|
+
(d === "disabled" || d === "readOnly") && (a = !0);
|
|
28
|
+
const x = M("button", y), W = R("button", y);
|
|
29
|
+
let N = x;
|
|
30
|
+
if (l !== "primary") {
|
|
31
|
+
const n = { ...x };
|
|
32
|
+
delete n.background, delete n.color, (l === "outline" || l === "ghost") && (delete n.border, delete n.borderColor, delete n.borderWidth, delete n.borderStyle, delete n.boxShadow), N = n;
|
|
33
|
+
}
|
|
34
|
+
const b = i != null && i !== !1 && !(typeof i == "string" && i.trim() === ""), _ = !b && !!(s || r), u = /* @__PURE__ */ m(
|
|
35
|
+
"button",
|
|
36
|
+
{
|
|
37
|
+
ref: O,
|
|
38
|
+
type: C,
|
|
39
|
+
id: f,
|
|
40
|
+
className: `nice-btn nice-btn--${l} nice-btn--${c} nice-btn--ds-${W} ${_ ? "nice-btn--icon-only" : ""} ${D ? "nice-btn--full-width" : ""} ${e ? "nice-btn--loading" : ""} ${o && !p ? "nice-btn--has-error" : ""} ${z || ""}`,
|
|
41
|
+
style: { ...N, ...B },
|
|
42
|
+
disabled: a || e,
|
|
43
|
+
"aria-busy": e || void 0,
|
|
44
|
+
"aria-disabled": a || e || void 0,
|
|
45
|
+
"aria-label": S,
|
|
46
|
+
onClick: k,
|
|
47
|
+
...L,
|
|
48
|
+
children: [
|
|
49
|
+
e && /* @__PURE__ */ t(
|
|
50
|
+
"svg",
|
|
51
|
+
{
|
|
52
|
+
className: "nice-btn__spinner",
|
|
53
|
+
viewBox: "0 0 24 24",
|
|
54
|
+
fill: "none",
|
|
55
|
+
stroke: "currentColor",
|
|
56
|
+
strokeWidth: "3",
|
|
57
|
+
"aria-hidden": "true",
|
|
58
|
+
children: /* @__PURE__ */ t("circle", { cx: "12", cy: "12", r: "10", strokeDasharray: "31.4 31.4", strokeLinecap: "round" })
|
|
59
|
+
}
|
|
60
|
+
),
|
|
61
|
+
!e && s && /* @__PURE__ */ t("span", { className: "nice-btn__icon", "aria-hidden": "true", children: s }),
|
|
62
|
+
!e && b && /* @__PURE__ */ t("span", { children: i }),
|
|
63
|
+
e && b && /* @__PURE__ */ t("span", { style: { visibility: "hidden" }, "aria-hidden": "true", children: i }),
|
|
64
|
+
e && _ && /* @__PURE__ */ t("span", { className: "nice-btn__icon", style: { visibility: "hidden" }, "aria-hidden": "true", children: s || r }),
|
|
65
|
+
!e && r && /* @__PURE__ */ t("span", { className: "nice-btn__icon", "aria-hidden": "true", children: r })
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
if (h)
|
|
70
|
+
return null;
|
|
71
|
+
if (!o)
|
|
72
|
+
return u;
|
|
73
|
+
const $ = /* @__PURE__ */ t("div", { className: "nice-field__error", role: "alert", children: o });
|
|
74
|
+
return p === "right" ? /* @__PURE__ */ m(
|
|
75
|
+
"span",
|
|
76
|
+
{
|
|
77
|
+
className: `nice-btn-field nice-btn-field--right nice-field--${c}`,
|
|
78
|
+
style: {
|
|
79
|
+
display: "inline-flex",
|
|
80
|
+
flexDirection: "row",
|
|
81
|
+
alignItems: "center",
|
|
82
|
+
gap: "8px",
|
|
83
|
+
width: "fit-content"
|
|
84
|
+
},
|
|
85
|
+
children: [
|
|
86
|
+
u,
|
|
87
|
+
$
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
) : h ? null : /* @__PURE__ */ m(
|
|
91
|
+
"span",
|
|
92
|
+
{
|
|
93
|
+
className: `nice-btn-field nice-btn-field--bottom nice-field--${c}`,
|
|
94
|
+
style: {
|
|
95
|
+
display: "inline-flex",
|
|
96
|
+
flexDirection: "column",
|
|
97
|
+
alignItems: "flex-start",
|
|
98
|
+
gap: "4px",
|
|
99
|
+
width: "fit-content"
|
|
100
|
+
},
|
|
101
|
+
children: [
|
|
102
|
+
u,
|
|
103
|
+
$
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
);
|
|
109
|
+
q.displayName = "NiceButton";
|
|
110
|
+
export {
|
|
111
|
+
q as N
|
|
112
|
+
};
|