nuxeo-development-framework 5.4.2 → 5.4.4
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 +45 -13
- package/bundles/nuxeo-development-framework.umd.js.map +1 -1
- package/esm2015/lib/components/ndf-filters/components/__parts/filter-autocomplete-input/filter-autocomplete.service.js +1 -1
- package/esm2015/lib/components/ndf-filters/components/predicate-text-input/predicate-text-input.component.js +2 -2
- package/esm2015/lib/components/ndf-filters/models/base-field-config.js +1 -1
- package/esm2015/lib/components/ndf-filters/models/field-options/common-utils.js +1 -1
- package/esm2015/lib/components/reports/ndf-reports/components/dynamic-timeline-report/dynamic-timeline-report.component.js +6 -5
- package/esm2015/lib/components/reports/ndf-reports/ndf-reports.module.js +8 -4
- package/esm2015/lib/components/skeleton/index.js +2 -1
- package/esm2015/lib/components/skeleton/skeleton.module.js +5 -4
- package/esm2015/lib/components/skeleton/table-skeleton.component.js +79 -0
- package/esm2015/lib/components/spell-checker-field/spell-checker-field.module.js +1 -1
- package/esm2015/lib/components/tables/dynamic-table/dynamic-table/dynamic-table.component.js +2 -2
- package/esm2015/lib/components/tables/ndf-table/containers/ndf-table/ndf-table.component.js +2 -2
- package/esm2015/lib/components/tables/ndf-table/ndf-table.module.js +8 -4
- package/esm2015/lib/shared/evaluator/index.js +2 -1
- package/esm2015/lib/shared/evaluator/types.js +1 -1
- package/esm2015/lib/shared/index.js +2 -1
- package/esm2015/lib/shared/models/type-helpers.js +1 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/nuxeo-development-framework.js +95 -14
- package/fesm2015/nuxeo-development-framework.js.map +1 -1
- package/lib/components/ndf-filters/components/__parts/filter-autocomplete-input/filter-autocomplete.service.d.ts +2 -2
- package/lib/components/ndf-filters/models/base-field-config.d.ts +3 -2
- package/lib/components/ndf-filters/models/field-options/common-utils.d.ts +2 -2
- package/lib/components/reports/ndf-reports/ndf-reports.module.d.ts +2 -1
- package/lib/components/skeleton/index.d.ts +1 -0
- package/lib/components/skeleton/skeleton.module.d.ts +3 -2
- package/lib/components/skeleton/table-skeleton.component.d.ts +8 -0
- package/lib/components/tables/ndf-table/ndf-table.module.d.ts +2 -1
- package/lib/shared/evaluator/index.d.ts +1 -0
- package/lib/shared/evaluator/types.d.ts +2 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/models/type-helpers.d.ts +0 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/docs/ndf-table.doc.md +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { BaseService } from '../../../../../shared/services/base';
|
|
3
|
-
import {
|
|
3
|
+
import { InterpolateString } from '../../../../../shared/evaluator';
|
|
4
4
|
import { AggregationFieldConfig, SearchConfig } from '../../../models';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FilterAutocompleteService extends BaseService {
|
|
@@ -8,7 +8,7 @@ export declare class FilterAutocompleteService extends BaseService {
|
|
|
8
8
|
private readonly _aggregationService;
|
|
9
9
|
constructor(injector: Injector);
|
|
10
10
|
customSearch(searchText: string, query: SearchConfig['search']['query'], fieldConfig: AggregationFieldConfig): import("rxjs").Observable<import("../../../models").FilterOption[]>;
|
|
11
|
-
replacePlaceholder(template:
|
|
11
|
+
replacePlaceholder(template: InterpolateString, searchText: string): string;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterAutocompleteService, never>;
|
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<FilterAutocompleteService>;
|
|
14
14
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InterpolateString } from '../../../shared/evaluator';
|
|
2
|
+
import { TranslateKey } from '../../../shared/models';
|
|
2
3
|
import { ComparisonOperator } from './types-helper';
|
|
3
4
|
export declare type BaseFieldConfig = {
|
|
4
5
|
label: TranslateKey;
|
|
@@ -11,5 +12,5 @@ export declare type BaseFieldConfig = {
|
|
|
11
12
|
visible?: boolean;
|
|
12
13
|
roles?: string[];
|
|
13
14
|
permission?: string;
|
|
14
|
-
condition?:
|
|
15
|
+
condition?: InterpolateString;
|
|
15
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComparisonOperator } from '../types-helper';
|
|
2
|
-
import {
|
|
2
|
+
import { InterpolateString, StringOrNumber } from '../../../../shared';
|
|
3
3
|
/**
|
|
4
4
|
* Configuration for search functionality.
|
|
5
5
|
*/
|
|
@@ -33,7 +33,7 @@ export declare type SearchConfig = {
|
|
|
33
33
|
/**
|
|
34
34
|
* Template string for dynamic query generation.
|
|
35
35
|
*/
|
|
36
|
-
template?:
|
|
36
|
+
template?: InterpolateString;
|
|
37
37
|
/**
|
|
38
38
|
* Query parameters as key-value pairs.
|
|
39
39
|
*/
|
|
@@ -30,8 +30,9 @@ import * as i28 from "../../tables/ndf-table/ndf-table.module";
|
|
|
30
30
|
import * as i29 from "../../../directive/directive.module";
|
|
31
31
|
import * as i30 from "../../ndf-config-editor/public/editor-navigate-button";
|
|
32
32
|
import * as i31 from "../chart-panel";
|
|
33
|
+
import * as i32 from "../../skeleton/skeleton.module";
|
|
33
34
|
export declare class NdfReportsModule {
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfReportsModule, never>;
|
|
35
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ScrollableDivDirective, typeof i11.GraphChartComponent, typeof i12.DigitChartComponent, typeof i13.ReportActionsComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatButtonModule, typeof i19.ChartsModule, typeof i20.DynamicFormModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.MatTooltipModule, typeof i24.FluidHeightModule, typeof i25.NdfFiltersPanelModule, typeof i26.MatProgressSpinnerModule, typeof i27.NuxeoDialogModule, typeof i28.NdfTableModule, typeof i29.DirectiveModule, typeof i30.EditorNavigateButton, typeof i31.ChartPanelModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfReportsModule, [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent, typeof i3.ChartTypeSelectorComponent, typeof i4.DigitReportComponent, typeof i5.GraphReportComponent, typeof i6.DynamicTimelineReportComponent, typeof i7.TimeGroupSelectorComponent, typeof i8.GraphDialogComponent, typeof i9.TimelineDialogComponent, typeof i10.ScrollableDivDirective, typeof i11.GraphChartComponent, typeof i12.DigitChartComponent, typeof i13.ReportActionsComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatButtonModule, typeof i19.ChartsModule, typeof i20.DynamicFormModule, typeof i21.ReactiveFormsModule, typeof i21.FormsModule, typeof i22.NgSelectModule, typeof i23.MatTooltipModule, typeof i24.FluidHeightModule, typeof i25.NdfFiltersPanelModule, typeof i26.MatProgressSpinnerModule, typeof i27.NuxeoDialogModule, typeof i28.NdfTableModule, typeof i29.DirectiveModule, typeof i30.EditorNavigateButton, typeof i31.ChartPanelModule, typeof i32.SkeletonModule], [typeof i1.NdfReportsComponent, typeof i2.NdfReportComponent]>;
|
|
36
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<NdfReportsModule>;
|
|
37
38
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./skeleton.component";
|
|
3
|
-
import * as i2 from "
|
|
3
|
+
import * as i2 from "./table-skeleton.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
4
5
|
export declare class SkeletonModule {
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SkeletonModule, [typeof i1.SkeletonComponent], [typeof
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkeletonModule, [typeof i1.SkeletonComponent, typeof i2.TableSkeletonComponent], [typeof i3.CommonModule], [typeof i1.SkeletonComponent, typeof i2.TableSkeletonComponent]>;
|
|
7
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<SkeletonModule>;
|
|
8
9
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TableSkeletonComponent {
|
|
3
|
+
rows: number;
|
|
4
|
+
columns: number;
|
|
5
|
+
showHeader: boolean;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableSkeletonComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableSkeletonComponent, "app-table-skeleton", never, { "rows": "rows"; "columns": "columns"; "showHeader": "showHeader"; }, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -27,8 +27,9 @@ import * as i25 from "@angular/cdk/drag-drop";
|
|
|
27
27
|
import * as i26 from "../../no-data-found/no-data.module";
|
|
28
28
|
import * as i27 from "../../../directive/directive.module";
|
|
29
29
|
import * as i28 from "../../ndf-config-editor/public/editor-navigate-button";
|
|
30
|
+
import * as i29 from "../../skeleton/skeleton.module";
|
|
30
31
|
export declare class NdfTableModule {
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<NdfTableModule, never>;
|
|
32
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfTableModule, [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective, typeof i9.TableExportComponent], [typeof i10.CommonModule, typeof i11.NdfFiltersPanelModule, typeof i12.DynamicTableModule, typeof i13.MatMenuModule, typeof i14.MatCheckboxModule, typeof i15.TranslateModule, typeof i16.MatButtonModule, typeof i17.MatSlideToggleModule, typeof i18.MatButtonToggleModule, typeof i19.MatIconModule, typeof i20.ReactiveFormsModule, typeof i21.FluidHeightModule, typeof i22.MatProgressSpinnerModule, typeof i23.MatTooltipModule, typeof i24.TableModule, typeof i25.DragDropModule, typeof i26.NoDataModule, typeof i27.DirectiveModule, typeof i28.EditorNavigateButton], [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective]>;
|
|
33
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NdfTableModule, [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective, typeof i9.TableExportComponent], [typeof i10.CommonModule, typeof i11.NdfFiltersPanelModule, typeof i12.DynamicTableModule, typeof i13.MatMenuModule, typeof i14.MatCheckboxModule, typeof i15.TranslateModule, typeof i16.MatButtonModule, typeof i17.MatSlideToggleModule, typeof i18.MatButtonToggleModule, typeof i19.MatIconModule, typeof i20.ReactiveFormsModule, typeof i21.FluidHeightModule, typeof i22.MatProgressSpinnerModule, typeof i23.MatTooltipModule, typeof i24.TableModule, typeof i25.DragDropModule, typeof i26.NoDataModule, typeof i27.DirectiveModule, typeof i28.EditorNavigateButton, typeof i29.SkeletonModule], [typeof i1.NdfTableComponent, typeof i2.SortingListComponent, typeof i3.TableColumnsTogglerComponent, typeof i4.ModeTogglerComponent, typeof i5.TextSearchComponent, typeof i6.ActionsTableTemplateDirective, typeof i7.SearchTableTemplateDirective, typeof i8.FilterCustomTemplateDirective]>;
|
|
33
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<NdfTableModule>;
|
|
34
35
|
}
|
|
@@ -12,3 +12,5 @@ export declare type TemplateSettings = {
|
|
|
12
12
|
evaluate: RegExp;
|
|
13
13
|
escape: RegExp;
|
|
14
14
|
};
|
|
15
|
+
export declare type InterpolateString = `${string}{{${string | number}}}${string}`;
|
|
16
|
+
export declare type EvaluatedString<VAR extends string = string> = `${VAR}=${string | number}`;
|
package/lib/shared/index.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -578,7 +578,7 @@ type AggregationFieldConfig = BaseFieldConfig & {
|
|
|
578
578
|
dataTransformer?: string;
|
|
579
579
|
sendMode: FieldSendModeType;
|
|
580
580
|
tooltip?: AggregationTooltipType;
|
|
581
|
-
condition?:
|
|
581
|
+
condition?:InterpolateString;
|
|
582
582
|
render:
|
|
583
583
|
| CheckboxOptions
|
|
584
584
|
| SwitchOptions
|
|
@@ -601,7 +601,7 @@ type AggregationFieldConfig = BaseFieldConfig & {
|
|
|
601
601
|
| `dataTransformer` | `string` | ❌ | Optional name of a transformer function to apply on the aggregation data. |
|
|
602
602
|
| `sendMode` | `FieldSendModeType` | ✅ | Defines how the selected value should be sent in the request (e.g., `payload`, `queryParam` , `custom`). |
|
|
603
603
|
| `tooltip` | `AggregationTooltipType` | ❌ | Tooltip text or configuration to display additional info for the field. |
|
|
604
|
-
| `condition` | `
|
|
604
|
+
| `condition` | `InterpolateString` | ❌ | Assign a `boolean` value (`true` or `false`) to the `show` variable based on a custom condition using the provided `language`, `user`, and `aggregations`, in order to determine whether the field should be shown or hidden. |
|
|
605
605
|
| `render` | `CheckboxOptions \| SwitchOptions \| RadioOptions \| DropdownOptions \| AutocompleteOptions \| CustomOptions \| DateListOptions` | ✅ | Specifies how the field will be rendered in the UI. |
|
|
606
606
|
| | | | |
|
|
607
607
|
#### Example
|
|
@@ -1255,7 +1255,7 @@ type SearchConfig = {
|
|
|
1255
1255
|
method?: 'get' | 'post';
|
|
1256
1256
|
url: string;
|
|
1257
1257
|
operator?: ComparisonOperator;
|
|
1258
|
-
template?:
|
|
1258
|
+
template?: InterpolateString;
|
|
1259
1259
|
params?: Record<StringOrNumber, StringOrNumber>;
|
|
1260
1260
|
headers?: Record<StringOrNumber, StringOrNumber>;
|
|
1261
1261
|
};
|