@porscheinformatik/clr-addons 19.7.1 → 19.9.0
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/clr-addons.module.d.ts +3 -1
- package/datagrid/column-reorder/column-reorder.directive.d.ts +27 -0
- package/datagrid/column-reorder/datagrid-column-reorder.module.d.ts +9 -0
- package/datagrid/column-reorder/dynamic-cell-content.component.d.ts +9 -0
- package/datagrid/column-reorder/dynamic-column.d.ts +10 -0
- package/datagrid/column-reorder/index.d.ts +4 -0
- package/datagrid/datagrid-state-persistence/datagrid-state-persistence-model.interface.d.ts +1 -0
- package/datagrid/datagrid-state-persistence/state-persistence-key.directive.d.ts +6 -3
- package/datagrid/datagrid-state-persistence/state-persistence-options.interface.d.ts +1 -0
- package/datagrid/index.d.ts +1 -0
- package/export-datagrid-button/export-datagrid-button.component.d.ts +24 -0
- package/export-datagrid-button/export-datagrid-button.module.d.ts +7 -0
- package/export-datagrid-button/export-datagrid.service.d.ts +12 -0
- package/export-datagrid-button/export-type.model.d.ts +9 -0
- package/export-datagrid-button/index.d.ts +4 -0
- package/fesm2022/clr-addons.mjs +323 -11
- package/fesm2022/clr-addons.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/styles/clr-addons-phs.css +4 -0
- package/styles/clr-addons-phs.css.map +1 -1
- package/styles/clr-addons-phs.min.css +1 -1
- package/styles/clr-addons-phs.min.css.map +1 -1
package/clr-addons.module.d.ts
CHANGED
|
@@ -33,8 +33,10 @@ import * as i31 from "./daterangepicker/daterangepicker.module";
|
|
|
33
33
|
import * as i32 from "./clr-control-warning/if-warning.module";
|
|
34
34
|
import * as i33 from "./action-panel/action-panel.module";
|
|
35
35
|
import * as i34 from "./readonly/readonly.module";
|
|
36
|
+
import * as i35 from "./export-datagrid-button/export-datagrid-button.module";
|
|
37
|
+
import * as i36 from "./datagrid/column-reorder/datagrid-column-reorder.module";
|
|
36
38
|
export declare class ClrAddonsModule {
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClrAddonsModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrAddonsModule, never, never, [typeof i1.ClrViewEditSectionModule, typeof i2.ClrPagerModule, typeof i3.ClrDotPagerModule, typeof i4.ClrPagedSearchResultListModule, typeof i5.ClrCollapseExpandSectionModule, typeof i6.ClrBreadcrumbModule, typeof i7.ClrMainNavGroupModule, typeof i8.ClrContentPanelModule, typeof i9.ClrNotificationModule, typeof i10.ClrFlowBarModule, typeof i11.ClrBackButtonModule, typeof i12.ClrNumericFieldModule, typeof i13.ClrSearchFieldModule, typeof i14.ClrTreetableModule, typeof i15.ClrProgressSpinnerModule, typeof i16.ClrDateTimeModule, typeof i17.ClrQuickListModule, typeof i18.ClrLetterAvatarModule, typeof i19.ClrMultilingualModule, typeof i20.ClrGenericQuickListModule, typeof i21.ClrDataListValidatorModule, typeof i22.ClrHistoryModule, typeof i23.ClrAutocompleteOffModule, typeof i24.ClrBrandAvatarModule, typeof i25.ClrLocationBarModule, typeof i26.ClrFormModule, typeof i27.ClrDropdownOverflowModule, typeof i28.ClrDatagridStatePersistenceModule, typeof i29.ClrEnumFilterModule, typeof i30.ClrDateFilterModule, typeof i31.ClrDaterangepickerModule, typeof i32.ClrIfWarningModule, typeof i33.ClrActionPanelModule, typeof i34.ClrReadonlyDirectiveModule]>;
|
|
40
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrAddonsModule, never, never, [typeof i1.ClrViewEditSectionModule, typeof i2.ClrPagerModule, typeof i3.ClrDotPagerModule, typeof i4.ClrPagedSearchResultListModule, typeof i5.ClrCollapseExpandSectionModule, typeof i6.ClrBreadcrumbModule, typeof i7.ClrMainNavGroupModule, typeof i8.ClrContentPanelModule, typeof i9.ClrNotificationModule, typeof i10.ClrFlowBarModule, typeof i11.ClrBackButtonModule, typeof i12.ClrNumericFieldModule, typeof i13.ClrSearchFieldModule, typeof i14.ClrTreetableModule, typeof i15.ClrProgressSpinnerModule, typeof i16.ClrDateTimeModule, typeof i17.ClrQuickListModule, typeof i18.ClrLetterAvatarModule, typeof i19.ClrMultilingualModule, typeof i20.ClrGenericQuickListModule, typeof i21.ClrDataListValidatorModule, typeof i22.ClrHistoryModule, typeof i23.ClrAutocompleteOffModule, typeof i24.ClrBrandAvatarModule, typeof i25.ClrLocationBarModule, typeof i26.ClrFormModule, typeof i27.ClrDropdownOverflowModule, typeof i28.ClrDatagridStatePersistenceModule, typeof i29.ClrEnumFilterModule, typeof i30.ClrDateFilterModule, typeof i31.ClrDaterangepickerModule, typeof i32.ClrIfWarningModule, typeof i33.ClrActionPanelModule, typeof i34.ClrReadonlyDirectiveModule, typeof i35.ClrExportDatagridButtonModule, typeof i36.ClrDatagridColumnReorderModule]>;
|
|
39
41
|
static ɵinj: i0.ɵɵInjectorDeclaration<ClrAddonsModule>;
|
|
40
42
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { ClrDatagridColumn } from '@clr/angular';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DatagridColumnReorderDirective<T extends {
|
|
5
|
+
name: string;
|
|
6
|
+
}> implements OnInit {
|
|
7
|
+
columnDefinitions: T[];
|
|
8
|
+
columnOrderChanged: EventEmitter<{
|
|
9
|
+
columns: T[];
|
|
10
|
+
from?: number;
|
|
11
|
+
to?: number;
|
|
12
|
+
trigger: "init" | "drag";
|
|
13
|
+
}>;
|
|
14
|
+
clrColumns: QueryList<ClrDatagridColumn>;
|
|
15
|
+
private readonly cdkDropList;
|
|
16
|
+
private readonly datagrid;
|
|
17
|
+
private readonly destroyRef;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
initializeColumnOrder(storedOrder: Record<string, number>): void;
|
|
20
|
+
private reconcileColumnOrder;
|
|
21
|
+
private updateColumnOrder;
|
|
22
|
+
private updateSeparatorVisibility;
|
|
23
|
+
private readonly canBeSorted;
|
|
24
|
+
private isDragItemDgColumn;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatagridColumnReorderDirective<any>, never>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DatagridColumnReorderDirective<any>, "[clrDatagridColumnReorder]", never, { "columnDefinitions": { "alias": "clrDatagridColumnReorder"; "required": false; }; }, { "columnOrderChanged": "clrDatagridColumnOrderChanged"; }, ["clrColumns"], never, false, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./column-reorder.directive";
|
|
3
|
+
import * as i2 from "./dynamic-cell-content.component";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
export declare class ClrDatagridColumnReorderModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClrDatagridColumnReorderModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrDatagridColumnReorderModule, [typeof i1.DatagridColumnReorderDirective, typeof i2.DynamicCellContentComponent], [typeof i3.NgComponentOutlet, typeof i3.NgTemplateOutlet], [typeof i1.DatagridColumnReorderDirective, typeof i2.DynamicCellContentComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ClrDatagridColumnReorderModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DynamicColumn } from './dynamic-column';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DynamicCellContentComponent<T> {
|
|
4
|
+
readonly col: import("@angular/core").InputSignal<DynamicColumn<T>>;
|
|
5
|
+
readonly item: import("@angular/core").InputSignal<T>;
|
|
6
|
+
readonly defaultDisplayValue: import("@angular/core").InputSignal<string>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicCellContentComponent<any>, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicCellContentComponent<any>, "clr-dg-dynamic-cell-content", never, { "col": { "alias": "col"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; "defaultDisplayValue": { "alias": "defaultDisplayValue"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef, Type } from '@angular/core';
|
|
2
|
+
export type DynamicColumn<T> = {
|
|
3
|
+
name: string;
|
|
4
|
+
title: string;
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
displayField?: keyof T;
|
|
7
|
+
formatter?: (item: T) => unknown;
|
|
8
|
+
component?: Type<unknown>;
|
|
9
|
+
template?: TemplateRef<unknown>;
|
|
10
|
+
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { AfterContentInit, ElementRef, OnDestroy, QueryList } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ClrDatagridColumn, ClrDatagridFilter, ClrDatagridPagination } from '@clr/angular';
|
|
3
3
|
import { ClrDatagridStatePersistenceModel } from './datagrid-state-persistence-model.interface';
|
|
4
4
|
import { Subject } from 'rxjs';
|
|
5
5
|
import { StatePersistenceOptions } from './state-persistence-options.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class StatePersistenceKeyDirective implements AfterContentInit, OnDestroy {
|
|
8
|
-
private datagrid;
|
|
9
8
|
/**
|
|
10
9
|
* Configuration options for the persistence.
|
|
11
10
|
* 'Key' represents the local storage key under which the persistence state is stored.
|
|
@@ -24,7 +23,8 @@ export declare class StatePersistenceKeyDirective implements AfterContentInit, O
|
|
|
24
23
|
canShowPaginationDescription: boolean;
|
|
25
24
|
warnedAboutCustomDescription: boolean;
|
|
26
25
|
destroy$: Subject<void>;
|
|
27
|
-
|
|
26
|
+
private readonly datagrid;
|
|
27
|
+
private readonly reorderDirective;
|
|
28
28
|
ngAfterContentInit(): void;
|
|
29
29
|
private init;
|
|
30
30
|
/**
|
|
@@ -39,9 +39,12 @@ export declare class StatePersistenceKeyDirective implements AfterContentInit, O
|
|
|
39
39
|
private initSorting;
|
|
40
40
|
private initColumnWidths;
|
|
41
41
|
private initDatagridPersister;
|
|
42
|
+
private initColumnOrderPersister;
|
|
43
|
+
private initColumnOrder;
|
|
42
44
|
private persistFiltersAndCurrentPage;
|
|
43
45
|
private persistSorting;
|
|
44
46
|
private persistColumnWidths;
|
|
47
|
+
private persistColumnOrder;
|
|
45
48
|
/**
|
|
46
49
|
* Pagination description must be set by this directive,
|
|
47
50
|
* otherwise we can't update datagrid values from localStorage
|
package/datagrid/index.d.ts
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EventEmitter, ElementRef } from '@angular/core';
|
|
2
|
+
import { ClrDatagrid } from '@clr/angular';
|
|
3
|
+
import { ExportDatagridService } from './export-datagrid.service';
|
|
4
|
+
import { ExportType, ExportTypeEnum } from './export-type.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ExportDatagridButtonComponent {
|
|
7
|
+
private readonly exportService;
|
|
8
|
+
datagrid: import("@angular/core").InputSignal<ClrDatagrid<any>>;
|
|
9
|
+
datagridRef: import("@angular/core").InputSignal<ElementRef<any>>;
|
|
10
|
+
exportTypesToShow: import("@angular/core").InputSignal<ExportType[]>;
|
|
11
|
+
isBackendExport: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
exportTitlePrefix: import("@angular/core").InputSignal<string>;
|
|
13
|
+
exportButtonPosition: import("@angular/core").InputSignal<"right" | "left">;
|
|
14
|
+
readonly backendExport: EventEmitter<ExportTypeEnum>;
|
|
15
|
+
readonly exportTypes: ExportType[];
|
|
16
|
+
readonly exportTypesFiltered: import("@angular/core").Signal<ExportType[]>;
|
|
17
|
+
constructor(exportService: ExportDatagridService);
|
|
18
|
+
private exportExcel;
|
|
19
|
+
onExport(type: ExportTypeEnum): void;
|
|
20
|
+
private getRowsToExport;
|
|
21
|
+
private getColumnsTitle;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportDatagridButtonComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExportDatagridButtonComponent, "clr-export-datagrid-button", never, { "datagrid": { "alias": "datagrid"; "required": false; "isSignal": true; }; "datagridRef": { "alias": "datagridRef"; "required": false; "isSignal": true; }; "exportTypesToShow": { "alias": "exportTypesToShow"; "required": false; "isSignal": true; }; "isBackendExport": { "alias": "isBackendExport"; "required": false; "isSignal": true; }; "exportTitlePrefix": { "alias": "exportTitlePrefix"; "required": false; "isSignal": true; }; "exportButtonPosition": { "alias": "exportButtonPosition"; "required": false; "isSignal": true; }; }, { "backendExport": "backendExport"; }, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./export-datagrid-button.component";
|
|
3
|
+
export declare class ClrExportDatagridButtonModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClrExportDatagridButtonModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ClrExportDatagridButtonModule, never, [typeof i1.ExportDatagridButtonComponent], [typeof i1.ExportDatagridButtonComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ClrExportDatagridButtonModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ExportDatagridService {
|
|
3
|
+
exportToExcel(filename: string, headers: {
|
|
4
|
+
value: string;
|
|
5
|
+
type: string;
|
|
6
|
+
}[], rows: {
|
|
7
|
+
value: string;
|
|
8
|
+
type: any;
|
|
9
|
+
}[][]): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportDatagridService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExportDatagridService>;
|
|
12
|
+
}
|