nuxeo-development-framework 5.7.4 → 5.7.6
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/bundles/nuxeo-development-framework.umd.js +8 -3
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/dynamic-form/components/dynamic-form-select-users/dynamic-form-select-users.component.js +4 -1
- package/esm2015/lib/components/ndf-config-editor/components/info-dialog/info-dialog.component.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/models/report-data-source.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/services/base-chart-builder.service.js +4 -2
- package/esm2015/lib/components/tables/dynamic-table/dynamic-table/dynamic-table.component.js +2 -2
- package/fesm2015/nuxeo-development-framework.js +8 -3
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/reports/ndf-reports/models/report-data-source.d.ts +5 -2
- package/package.json +1 -1
- package/src/docs/ndf-reports.doc.md +31 -25
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
* Represents a data source for a report.
|
|
3
3
|
* @typedef {Object} ReportDataSource
|
|
4
4
|
* @property {string} propertyPath - The path to the property in the data source.
|
|
5
|
-
* @property {
|
|
5
|
+
* @property {Object} [bindLabel] - Optional label to bind.
|
|
6
6
|
* @property {string} [bindValue] - Optional value to bind.
|
|
7
7
|
* @property {string} [dataFormat] - Optional format for the data.
|
|
8
8
|
* @property {string} [transformer] - Optional transformer to apply to the data.
|
|
9
9
|
*/
|
|
10
10
|
export declare type ReportDataSource = {
|
|
11
11
|
propertyPath: string;
|
|
12
|
-
bindLabel?:
|
|
12
|
+
bindLabel?: {
|
|
13
|
+
ar: string;
|
|
14
|
+
en: string;
|
|
15
|
+
};
|
|
13
16
|
bindValue?: string;
|
|
14
17
|
dataFormat?: string;
|
|
15
18
|
transformer?: string;
|
package/package.json
CHANGED
|
@@ -368,28 +368,30 @@ export interface BaseReportConfig {
|
|
|
368
368
|
height?: number | 'auto';
|
|
369
369
|
rowPosition?: number | 'auto';
|
|
370
370
|
styleClass?: string;
|
|
371
|
+
minContentHeight?: string;
|
|
371
372
|
};
|
|
372
373
|
}
|
|
373
374
|
```
|
|
374
375
|
|
|
375
376
|
#### Base Properties
|
|
376
377
|
|
|
377
|
-
|Property|Type|Required|Description|
|
|
378
|
-
|
|
379
|
-
|id
|
|
380
|
-
|label
|
|
381
|
-
|mode
|
|
382
|
-
|navigate
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|details
|
|
387
|
-
|layout
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
378
|
+
| Property | Type | Required | Description |
|
|
379
|
+
| ------------------- | --------------------- | -------- | ----------------------------------------------------------------------- |
|
|
380
|
+
| id | `string \| number` | ✅ | Unique identifier |
|
|
381
|
+
| label | `string` | ✅ | Display name (supports i18n keys) |
|
|
382
|
+
| mode | `ReportMode` | ✅ | Chart type identifier |
|
|
383
|
+
| navigate | `object` | ❌ | Click navigation configuration |
|
|
384
|
+
| └─ enabled | `boolean` | ❌ | Enable click-to-navigate |
|
|
385
|
+
| └─ route | `any[]` | ✅ | Angular route array |
|
|
386
|
+
| └─ includeParams | `boolean` | ❌ | Include current filters in navigation |
|
|
387
|
+
| details | `ReportDetailsConfig` | ❌ | Detailed view configuration |
|
|
388
|
+
| layout | `object` | ❌ | Grid layout configuration |
|
|
389
|
+
| └─ width | `GridWidth` | ❌ | Column span (1-12 or 'auto') |
|
|
390
|
+
| └─ columnPosition | `GridWidth` | ❌ | Starting column |
|
|
391
|
+
| └─ height | `number \| 'auto'` | ❌ | Row span or auto-size |
|
|
392
|
+
| └─ rowPosition | `number \| 'auto'` | ❌ | Starting row |
|
|
393
|
+
| └─ styleClass | `string` | ❌ | Custom CSS classes |
|
|
394
|
+
| └─ minContentHeight | `string` | ❌ | Defines the minimum height of the content area (supports px, rem, etc.) |
|
|
393
395
|
|
|
394
396
|
### Digit Charts
|
|
395
397
|
|
|
@@ -494,20 +496,20 @@ type GraphChartOptionsDefinition<TType extends ChartType = ChartType> = {
|
|
|
494
496
|
```typescript
|
|
495
497
|
type ReportDataSource = {
|
|
496
498
|
propertyPath: string;
|
|
497
|
-
bindLabel?: string;
|
|
499
|
+
bindLabel?: {ar:string;en:string};
|
|
498
500
|
bindValue?: string;
|
|
499
501
|
dataFormat?: string;
|
|
500
502
|
transformer?: string;
|
|
501
503
|
};
|
|
502
504
|
```
|
|
503
505
|
|
|
504
|
-
|Property|Type|Required|Description|
|
|
505
|
-
|
|
506
|
-
|propertyPath
|
|
507
|
-
|bindLabel
|
|
508
|
-
|bindValue
|
|
509
|
-
|dataFormat
|
|
510
|
-
|transformer
|
|
506
|
+
| Property | Type | Required | Description |
|
|
507
|
+
| ------------ | ----------- | ---------------------------- | ------------------------------------------------------------------------------------------- |
|
|
508
|
+
| propertyPath | `string` | ✅ | Path to data in response |
|
|
509
|
+
| bindLabel | `bindLabel` | `{ ar: string; en: string }` | Localized property mappings defining bucket properties containing Arabic and English labels |
|
|
510
|
+
| bindValue | `string` | ❌ | Property for chart values |
|
|
511
|
+
| dataFormat | `string` | ❌ | Format string for data transformation |
|
|
512
|
+
| transformer | `string` | ❌ | Transformer name (registered in `ChartDataTransformers`) |
|
|
511
513
|
|
|
512
514
|
#### Example
|
|
513
515
|
```json
|
|
@@ -531,7 +533,11 @@ type ReportDataSource = {
|
|
|
531
533
|
"datasource": [
|
|
532
534
|
{
|
|
533
535
|
"propertyPath": "aggregations.generaldocument_secrecyLevel_agg.buckets",
|
|
534
|
-
"transformer": "reduceData"
|
|
536
|
+
"transformer": "reduceData",
|
|
537
|
+
"bindLabel": {
|
|
538
|
+
"ar": "fetchedKey.properties.arTitle",
|
|
539
|
+
"en": "fetchedKey.properties.enTitle"
|
|
540
|
+
},
|
|
535
541
|
}
|
|
536
542
|
],
|
|
537
543
|
"chart": {
|