@nice2dev/ui 1.3.10 → 1.3.12
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 +58 -0
- package/README.md +16 -18
- package/dist/NicePropertyGrid.doc-BWNyWrWq.cjs +7 -0
- package/dist/NicePropertyGrid.doc-C_I3F4w8.js +31 -0
- package/dist/data.d.ts +1 -1
- package/dist/index.cjs +130 -144
- package/dist/index.css +1 -1
- package/dist/index.d.ts +62 -42
- package/dist/index.mjs +11898 -11925
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
2
2
|
|
|
3
|
+
## 1.3.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @nice2dev/i18n@1.3.12
|
|
8
|
+
- @nice2dev/ui-core@1.3.12
|
|
9
|
+
|
|
10
|
+
## 1.3.11
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 7fefbc7: **BREAKING: `@nice2dev/ui-designers` is no longer published.** It only re-exported designers of
|
|
15
|
+
`@nice2dev/ui`, so import them from there:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
// before
|
|
19
|
+
import { NiceWorkflowDesigner, NiceThemeDesigner } from '@nice2dev/ui-designers';
|
|
20
|
+
// after
|
|
21
|
+
import { NiceWorkflowDesigner, NiceThemeDesigner } from '@nice2dev/ui';
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
The same applies to `NiceBPMNDesigner` and the `NiceWorkflowDesigner*` / `NiceThemeDesigner*` types.
|
|
25
|
+
The last published version, 1.3.10, keeps working but gets no updates.
|
|
26
|
+
|
|
27
|
+
Also in `@nice2dev/ui`:
|
|
28
|
+
|
|
29
|
+
- `NiceThemeDesigner` now has its implementation under its own name; the internal
|
|
30
|
+
`NiceThemeBuilder` alias file is gone. The API, the `nice-theme-builder*` CSS classes and the
|
|
31
|
+
`themeBuilder.*` keys are unchanged.
|
|
32
|
+
- The unused `nice-configurator*` and `nice-view-builder*` rules leave `style.css`. They styled
|
|
33
|
+
NiceControlConfigurator and NiceViewBuilder, which were removed in 1.x.
|
|
34
|
+
|
|
35
|
+
- c8f46e7: **Views read the module's data: `query` and `entity` data sources.**
|
|
36
|
+
|
|
37
|
+
- **`NiceViewDataSourceRef.type`** gains two values:
|
|
38
|
+
- `'query'`, with `ref`: the `key` of a module `NiceDataSourceDef` built in
|
|
39
|
+
`NiceDataSourceBuilder`;
|
|
40
|
+
- `'entity'`, with `entity`: a module entity.
|
|
41
|
+
|
|
42
|
+
`validateViewDefinition` reports a `query` source without `ref` and an `entity` source without
|
|
43
|
+
`entity`.
|
|
44
|
+
|
|
45
|
+
- **`toViewDataSourceRef(def)`** turns a `NiceDataSourceDef` into the view source that reads it. The
|
|
46
|
+
builder's "maps to a view-standard data source" was not true until now: the view standard had no
|
|
47
|
+
query type.
|
|
48
|
+
- **`NiceViewEditor` gets a `dataSourceOptions` prop:** the module's data sources a `query` source can
|
|
49
|
+
pick from. For an `entity` source it offers the names from `entities`. Without them the editor
|
|
50
|
+
falls back to a text field.
|
|
51
|
+
- **Doc note:** `NiceModuleManifest` is the runtime manifest of front-end micro-modules, not the seed
|
|
52
|
+
`*.manifest.json` of an ERP module.
|
|
53
|
+
|
|
54
|
+
- Updated dependencies [65fecd1]
|
|
55
|
+
- Updated dependencies [0d1d9dd]
|
|
56
|
+
- Updated dependencies [ea95d42]
|
|
57
|
+
- Updated dependencies [c8f46e7]
|
|
58
|
+
- @nice2dev/i18n@1.3.11
|
|
59
|
+
- @nice2dev/ui-core@1.3.11
|
|
60
|
+
|
|
3
61
|
## 1.3.10
|
|
4
62
|
|
|
5
63
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -332,24 +332,22 @@ Form input components with consistent `NiceFormFieldProps` interface: `label`, `
|
|
|
332
332
|
| `NiceDiagram` | `nodes[]`, `edges[]`, `onNodeClick`, `onEdgeClick` | Node/edge diagram |
|
|
333
333
|
| `NiceStepper` | `steps[]`, `currentStep`, `onStepChange`, `vertical` | Step wizard |
|
|
334
334
|
|
|
335
|
-
### Tools (
|
|
336
|
-
|
|
337
|
-
| Component
|
|
338
|
-
|
|
|
339
|
-
| `NiceChat`
|
|
340
|
-
| `NiceDraggable`
|
|
341
|
-
| `NiceSortable`
|
|
342
|
-
| `NiceFileUploader`
|
|
343
|
-
| `NiceFileManager`
|
|
344
|
-
| `NiceFilterBuilder`
|
|
345
|
-
| `NiceGallery`
|
|
346
|
-
| `NiceMap`
|
|
347
|
-
| `NiceSpeechToText`
|
|
348
|
-
| `NiceThemeDesigner`
|
|
349
|
-
| `
|
|
350
|
-
| `
|
|
351
|
-
| `NiceViewBuilder` | `definition`, `onChange`, `controlRegistry` | Drag-and-drop view builder |
|
|
352
|
-
| `NiceShowcase` | `defaultTab`, `showAbout`, `packageName`, `version` | Embeddable component showcase & docs |
|
|
335
|
+
### Tools (13 components)
|
|
336
|
+
|
|
337
|
+
| Component | Key Props | Description |
|
|
338
|
+
| ------------------- | -------------------------------------------------------- | ---------------------------------------- |
|
|
339
|
+
| `NiceChat` | `messages[]`, `onSendMessage`, `currentUser` | Chat widget |
|
|
340
|
+
| `NiceDraggable` | `onDrag`, `ghostImage`, `children` | Drag source wrapper |
|
|
341
|
+
| `NiceSortable` | `items[]`, `onSort`, `direction` | Sortable list |
|
|
342
|
+
| `NiceFileUploader` | `onUpload`, `accept`, `multiple`, `maxSize`, `maxFiles` | File upload |
|
|
343
|
+
| `NiceFileManager` | `items[]`, `onDelete`, `onRename`, `onNavigate` | File browser |
|
|
344
|
+
| `NiceFilterBuilder` | `fields[]`, `onChange`, `value` | Visual filter/query builder |
|
|
345
|
+
| `NiceGallery` | `items[]`, `columns`, `gap`, `onItemClick` | Image gallery |
|
|
346
|
+
| `NiceMap` | `markers[]`, `center`, `zoom`, `onMarkerClick` | Map with markers |
|
|
347
|
+
| `NiceSpeechToText` | `onResult`, `language`, `continuous` | Speech recognition |
|
|
348
|
+
| `NiceThemeDesigner` | `theme`, `sections[]`, `onChange`, `onApply`, `onExport` | Theme editor with preview and CSS export |
|
|
349
|
+
| `NiceViewEditor` | `value`, `onChange`, `dataSourceOptions` | Visual view (form / grid) designer |
|
|
350
|
+
| `NiceShowcase` | `defaultTab`, `showAbout`, `packageName`, `version` | Embeddable component showcase & docs |
|
|
353
351
|
|
|
354
352
|
### Validation (3 components + 1 hook)
|
|
355
353
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",r="NicePropertyGrid",t="Property grid for editing object properties in a structured layout.",o="data",a="1.0.0",s="planned",i=[{name:"properties",type:"Property[]",required:!0,description:"Property definitions"},{name:"values",type:"Record<string, any>",required:!0,description:"Property values"},{name:"onChange",type:"(key: string, value: any) => void",description:"Change callback"},{name:"categories",type:"string[]",description:"Property categories"},{name:"collapsible",type:"boolean",default:"true",description:"Collapsible categories"},{name:"searchable",type:"boolean",default:"true",description:"Enable search"},{name:"readOnly",type:"boolean",default:"false",description:"Read-only mode"}],n=[{title:"Property Grid",description:"Edit properties",code:`<NicePropertyGrid
|
|
2
|
+
properties={propertyDefs}
|
|
3
|
+
values={objectValues}
|
|
4
|
+
onChange={(key, value) => updateProperty(key, value)}
|
|
5
|
+
categories={['General', 'Appearance', 'Behavior']}
|
|
6
|
+
searchable
|
|
7
|
+
/>`}],c={keyboard:["Tab through properties"],aria:["Property grid","Category regions"]},p=["NiceForm","NiceSchemaForm"],d={$schema:e,name:r,description:t,category:o,since:a,status:s,props:i,examples:n,accessibility:c,seeAlso:p};exports.$schema=e;exports.accessibility=c;exports.category=o;exports.default=d;exports.description=t;exports.examples=n;exports.name=r;exports.props=i;exports.seeAlso=p;exports.since=a;exports.status=s;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", r = "NicePropertyGrid", t = "Property grid for editing object properties in a structured layout.", o = "data", a = "1.0.0", n = "planned", i = [{ name: "properties", type: "Property[]", required: !0, description: "Property definitions" }, { name: "values", type: "Record<string, any>", required: !0, description: "Property values" }, { name: "onChange", type: "(key: string, value: any) => void", description: "Change callback" }, { name: "categories", type: "string[]", description: "Property categories" }, { name: "collapsible", type: "boolean", default: "true", description: "Collapsible categories" }, { name: "searchable", type: "boolean", default: "true", description: "Enable search" }, { name: "readOnly", type: "boolean", default: "false", description: "Read-only mode" }], s = [{ title: "Property Grid", description: "Edit properties", code: `<NicePropertyGrid
|
|
2
|
+
properties={propertyDefs}
|
|
3
|
+
values={objectValues}
|
|
4
|
+
onChange={(key, value) => updateProperty(key, value)}
|
|
5
|
+
categories={['General', 'Appearance', 'Behavior']}
|
|
6
|
+
searchable
|
|
7
|
+
/>` }], c = { keyboard: ["Tab through properties"], aria: ["Property grid", "Category regions"] }, p = ["NiceForm", "NiceSchemaForm"], d = {
|
|
8
|
+
$schema: e,
|
|
9
|
+
name: r,
|
|
10
|
+
description: t,
|
|
11
|
+
category: o,
|
|
12
|
+
since: a,
|
|
13
|
+
status: n,
|
|
14
|
+
props: i,
|
|
15
|
+
examples: s,
|
|
16
|
+
accessibility: c,
|
|
17
|
+
seeAlso: p
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
e as $schema,
|
|
21
|
+
c as accessibility,
|
|
22
|
+
o as category,
|
|
23
|
+
d as default,
|
|
24
|
+
t as description,
|
|
25
|
+
s as examples,
|
|
26
|
+
r as name,
|
|
27
|
+
i as props,
|
|
28
|
+
p as seeAlso,
|
|
29
|
+
a as since,
|
|
30
|
+
n as status
|
|
31
|
+
};
|
package/dist/data.d.ts
CHANGED
|
@@ -651,7 +651,7 @@ export declare interface NiceDataGridProps<T extends Record<string, any> = any>
|
|
|
651
651
|
formColumns?: number;
|
|
652
652
|
/** Modal title for popup edit. Defaults to `'Edit row'`. */
|
|
653
653
|
editFormTitle?: string;
|
|
654
|
-
/** Escape-hatch: extra props forwarded to the underlying `NiceForm` in the popup (e.g. `labelPosition`, `gap`, `size`, `responsiveColumns`).
|
|
654
|
+
/** Escape-hatch: extra props forwarded to the underlying `NiceForm` in the popup (e.g. `labelPosition`, `gap`, `size`, `responsiveColumns`). Takes the props of `NiceForm` itself. */
|
|
655
655
|
formProps?: Partial<Omit<NiceFormProps, 'items' | 'data' | 'onFieldChange' | 'onSubmit' | 'columns' | 'showActions' | 'submitLabel'>>;
|
|
656
656
|
/** Called when the popup form is submitted with the merged row. */
|
|
657
657
|
onRowEdit?: (rowKey: string, updatedRow: T) => void;
|