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.
@@ -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 {string} [bindLabel] - Optional label to bind.
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?: string;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "5.7.4",
3
+ "version": "5.7.6",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -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|`string \| number`|✅|Unique identifier|
380
- |label|`string`|✅|Display name (supports i18n keys)|
381
- |mode|`ReportMode`|✅|Chart type identifier|
382
- |navigate|`object`|❌|Click navigation configuration|
383
- |└─ enabled|`boolean`|❌|Enable click-to-navigate|
384
- |└─ route|`any[]`|✅|Angular route array|
385
- |└─ includeParams|`boolean`|❌|Include current filters in navigation|
386
- |details|`ReportDetailsConfig`|❌|Detailed view configuration|
387
- |layout|`object`|❌|Grid layout configuration|
388
- |└─ width|`GridWidth`|❌|Column span (1-12 or 'auto')|
389
- |└─ columnPosition|`GridWidth`|❌|Starting column|
390
- |└─ height|`number \| 'auto'`|❌|Row span or auto-size|
391
- |└─ rowPosition|`number \| 'auto'`|❌|Starting row|
392
- |└─ styleClass|`string`|❌|Custom CSS classes|
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|`string`|✅|Path to data in response|
507
- |bindLabel|`string`|❌|Property for chart labels|
508
- |bindValue|`string`|❌|Property for chart values|
509
- |dataFormat|`string`|❌|Format string for data transformation|
510
- |transformer|`string`|❌|Transformer name (registered in `ChartDataTransformers`)|
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": {