@nice2dev/ui 1.3.10 → 1.3.11

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 CHANGED
@@ -1,5 +1,56 @@
1
1
  # [1.0.27] — 2026-06-07
2
2
 
3
+ ## 1.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 7fefbc7: **BREAKING: `@nice2dev/ui-designers` is no longer published.** It only re-exported designers of
8
+ `@nice2dev/ui`, so import them from there:
9
+
10
+ ```ts
11
+ // before
12
+ import { NiceWorkflowDesigner, NiceThemeDesigner } from '@nice2dev/ui-designers';
13
+ // after
14
+ import { NiceWorkflowDesigner, NiceThemeDesigner } from '@nice2dev/ui';
15
+ ```
16
+
17
+ The same applies to `NiceBPMNDesigner` and the `NiceWorkflowDesigner*` / `NiceThemeDesigner*` types.
18
+ The last published version, 1.3.10, keeps working but gets no updates.
19
+
20
+ Also in `@nice2dev/ui`:
21
+
22
+ - `NiceThemeDesigner` now has its implementation under its own name; the internal
23
+ `NiceThemeBuilder` alias file is gone. The API, the `nice-theme-builder*` CSS classes and the
24
+ `themeBuilder.*` keys are unchanged.
25
+ - The unused `nice-configurator*` and `nice-view-builder*` rules leave `style.css`. They styled
26
+ NiceControlConfigurator and NiceViewBuilder, which were removed in 1.x.
27
+
28
+ - c8f46e7: **Views read the module's data: `query` and `entity` data sources.**
29
+
30
+ - **`NiceViewDataSourceRef.type`** gains two values:
31
+ - `'query'`, with `ref`: the `key` of a module `NiceDataSourceDef` built in
32
+ `NiceDataSourceBuilder`;
33
+ - `'entity'`, with `entity`: a module entity.
34
+
35
+ `validateViewDefinition` reports a `query` source without `ref` and an `entity` source without
36
+ `entity`.
37
+
38
+ - **`toViewDataSourceRef(def)`** turns a `NiceDataSourceDef` into the view source that reads it. The
39
+ builder's "maps to a view-standard data source" was not true until now: the view standard had no
40
+ query type.
41
+ - **`NiceViewEditor` gets a `dataSourceOptions` prop:** the module's data sources a `query` source can
42
+ pick from. For an `entity` source it offers the names from `entities`. Without them the editor
43
+ falls back to a text field.
44
+ - **Doc note:** `NiceModuleManifest` is the runtime manifest of front-end micro-modules, not the seed
45
+ `*.manifest.json` of an ERP module.
46
+
47
+ - Updated dependencies [65fecd1]
48
+ - Updated dependencies [0d1d9dd]
49
+ - Updated dependencies [ea95d42]
50
+ - Updated dependencies [c8f46e7]
51
+ - @nice2dev/i18n@1.3.11
52
+ - @nice2dev/ui-core@1.3.11
53
+
3
54
  ## 1.3.10
4
55
 
5
56
  ### 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 (14 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` | `onChange`, `onSave`, `onExport` | Live theme editor |
349
- | `NiceThemeBuilder` | `sections[]`, `onChange`, `onExport` | Theme builder with CSS export |
350
- | `NiceControlConfigurator` | `controlType`, `propDescriptors[]`, `renderPreview` | Interactive prop configurator |
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`). Aligns with the `NiceFormDesigner` standard. */
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;