@sd-angular/core 0.0.904 → 0.0.908
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/sd-angular-core-grid-material.umd.js +176 -23
- package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
- package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
- package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.js +33 -18
- package/bundles/sd-angular-core-tab-router.umd.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.min.js +2 -2
- package/bundles/sd-angular-core-tab-router.umd.min.js.map +1 -1
- package/esm2015/grid-material/sd-angular-core-grid-material.js +20 -18
- package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/dynamic-column/dynamic-column.component.js +98 -0
- package/esm2015/grid-material/src/lib/components/popup-grid-configuration/popup-grid-configuration.component.js +2 -2
- package/esm2015/grid-material/src/lib/grid-material.module.js +5 -1
- package/esm2015/grid-material/src/lib/models/grid-config.model.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-badge.pipe.js +4 -1
- package/esm2015/grid-material/src/lib/pipes/column-transform.pipe.js +1 -1
- package/esm2015/grid-material/src/lib/services/generated-column/generated-column.model.js +2 -0
- package/esm2015/grid-material/src/lib/services/generated-column/generated-column.service.js +57 -0
- package/esm2015/tab-router/src/lib/components/tab-router-outlet/tab-router-outlet.component.js +30 -24
- package/fesm2015/sd-angular-core-grid-material.js +151 -4
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-tab-router.js +20 -14
- package/fesm2015/sd-angular-core-tab-router.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +19 -17
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/components/dynamic-column/dynamic-column.component.d.ts +32 -0
- package/grid-material/src/lib/models/grid-config.model.d.ts +11 -0
- package/grid-material/src/lib/services/generated-column/generated-column.model.d.ts +8 -0
- package/grid-material/src/lib/services/generated-column/generated-column.service.d.ts +10 -0
- package/package.json +1 -1
- package/{sd-angular-core-0.0.904.tgz → sd-angular-core-0.0.908.tgz} +0 -0
- package/tab-router/src/lib/components/tab-router-outlet/tab-router-outlet.component.d.ts +7 -7
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { SdNotifyService } from '@sd-angular/core/notify';
|
|
3
|
+
import { SdTranslateService } from '@sd-angular/core/translate';
|
|
4
|
+
import { SdGridMaterialOption } from '../../models/grid-option.model';
|
|
5
|
+
import { SdGridConfigurationService } from '../../services/grid-configuration.service';
|
|
6
|
+
import { SdGeneratedColumnService } from '../../services/generated-column/generated-column.service';
|
|
7
|
+
import { SdGeneratedColumn } from '../../services/generated-column/generated-column.model';
|
|
8
|
+
import { FormGroup } from '@angular/forms';
|
|
9
|
+
import { SdSideDrawer } from '@sd-angular/core/side-drawer';
|
|
10
|
+
import { SdGridMaterialColumn } from '../../models/grid-column.model';
|
|
11
|
+
export declare class SdDynamicColumn implements OnInit, OnDestroy {
|
|
12
|
+
#private;
|
|
13
|
+
private ref;
|
|
14
|
+
private generatedColumnService;
|
|
15
|
+
private notifyService;
|
|
16
|
+
private translateService;
|
|
17
|
+
private gridConfigurationService;
|
|
18
|
+
sideDrawer: SdSideDrawer;
|
|
19
|
+
gridOption: SdGridMaterialOption;
|
|
20
|
+
systemColumns: SdGeneratedColumn[];
|
|
21
|
+
columns: SdGeneratedColumn[];
|
|
22
|
+
columnTypes: string[];
|
|
23
|
+
form: FormGroup;
|
|
24
|
+
isDetail: boolean;
|
|
25
|
+
detail: SdGeneratedColumn;
|
|
26
|
+
originColumns: SdGridMaterialColumn[];
|
|
27
|
+
constructor(ref: ChangeDetectorRef, generatedColumnService: SdGeneratedColumnService, notifyService: SdNotifyService, translateService: SdTranslateService, gridConfigurationService: SdGridConfigurationService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
onDetail: (column?: SdGeneratedColumn) => void;
|
|
31
|
+
onSave: () => void;
|
|
32
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { SdGridMaterialColumn } from '../models/grid-column.model';
|
|
3
|
+
import { SdGeneratedColumn } from '../services/generated-column/generated-column.model';
|
|
3
4
|
export interface SdGridMaterialConfigOption<T = any> {
|
|
4
5
|
key?: string;
|
|
5
6
|
visible?: boolean;
|
|
@@ -8,6 +9,12 @@ export interface SdGridMaterialConfigOption<T = any> {
|
|
|
8
9
|
args?: {
|
|
9
10
|
[key: string]: any;
|
|
10
11
|
};
|
|
12
|
+
systemColumn?: {
|
|
13
|
+
permission?: 'READ' | 'CREATE' | 'UPDATE' | 'DELETE';
|
|
14
|
+
args?: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
11
18
|
}
|
|
12
19
|
export interface SdOriginColumn {
|
|
13
20
|
field: string;
|
|
@@ -15,6 +22,10 @@ export interface SdOriginColumn {
|
|
|
15
22
|
width?: string;
|
|
16
23
|
invisible?: boolean;
|
|
17
24
|
}
|
|
25
|
+
export interface SdGeneratedConfiguration {
|
|
26
|
+
systemColumns: SdGeneratedColumn[];
|
|
27
|
+
columns: SdGeneratedColumn[];
|
|
28
|
+
}
|
|
18
29
|
export interface SdColumnConfiguration {
|
|
19
30
|
origin: SdOriginColumn;
|
|
20
31
|
title?: string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SdSetting, SdSettingService } from '@sd-angular/core/setting';
|
|
2
|
+
import { SdGridMaterialConfigOption } from '../../models/grid-config.model';
|
|
3
|
+
import { SdGeneratedColumn } from './generated-column.model';
|
|
4
|
+
export declare class SdGeneratedColumnService {
|
|
5
|
+
#private;
|
|
6
|
+
private settingService;
|
|
7
|
+
constructor(settingService: SdSettingService);
|
|
8
|
+
load: (configuration: SdGridMaterialConfigOption) => SdSetting<SdGeneratedColumn<any>[]>;
|
|
9
|
+
loadSystem: (configuration: SdGridMaterialConfigOption) => SdSetting<SdGeneratedColumn<any>[]>;
|
|
10
|
+
}
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Compiler, Injector, OnDestroy } from
|
|
2
|
-
import { ActivatedRoute, Router } from
|
|
3
|
-
import { SdNotifyService } from
|
|
4
|
-
import { SdTab } from
|
|
5
|
-
import { SdTabRouterService } from
|
|
6
|
-
import { SdTabRouterNavComponent } from
|
|
7
|
-
import { SdTabDecoratorService } from
|
|
1
|
+
import { ChangeDetectorRef, Compiler, Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { SdNotifyService } from '@sd-angular/core/notify';
|
|
4
|
+
import { SdTab } from '../../models/tab-router.model';
|
|
5
|
+
import { SdTabRouterService } from '../../services/tab-router.service';
|
|
6
|
+
import { SdTabRouterNavComponent } from '../tab-router-nav/tab-router-nav.component';
|
|
7
|
+
import { SdTabDecoratorService } from '../../services/tab-decorator.service';
|
|
8
8
|
export declare class SdTabRouterOutletComponent implements OnDestroy {
|
|
9
9
|
#private;
|
|
10
10
|
private router;
|