@sd-angular/core 0.0.945 → 0.0.949
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 +124 -55
- 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 +28 -23
- package/bundles/sd-angular-core-tab-router.umd.js.map +1 -1
- package/bundles/sd-angular-core-tab-router.umd.min.js +1 -1
- package/bundles/sd-angular-core-tab-router.umd.min.js.map +1 -1
- package/esm2015/grid-material/sd-angular-core-grid-material.js +27 -26
- package/esm2015/grid-material/src/lib/components/column-inline-filter/column-inline-filter.component.js +34 -0
- package/esm2015/grid-material/src/lib/components/desktop-cell-children-view/desktop-cell-children-view.component.js +2 -2
- package/esm2015/grid-material/src/lib/components/desktop-cell-editor/desktop-cell-editor.component.js +1 -1
- package/esm2015/grid-material/src/lib/components/desktop-cell-view/desktop-cell-view.component.js +3 -3
- package/esm2015/grid-material/src/lib/components/desktop-editor-validation/desktop-editor-validation.component.js +2 -2
- package/esm2015/grid-material/src/lib/grid-material.component.js +11 -6
- package/esm2015/grid-material/src/lib/grid-material.module.js +3 -1
- package/esm2015/grid-material/src/lib/models/grid-column.model.js +1 -1
- package/esm2015/grid-material/src/lib/models/grid-editor.model.js +1 -1
- package/esm2015/grid-material/src/lib/pipes/column-badge.pipe.js +5 -2
- package/esm2015/grid-material/src/lib/pipes/column-transform.pipe.js +24 -17
- package/esm2015/grid-material/src/lib/pipes/editor-validate.pipe.js +9 -9
- package/esm2015/tab-router/src/lib/components/tab-router-outlet/tab-router-outlet.component.js +9 -4
- package/fesm2015/sd-angular-core-grid-material.js +83 -35
- package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
- package/fesm2015/sd-angular-core-tab-router.js +8 -3
- package/fesm2015/sd-angular-core-tab-router.js.map +1 -1
- package/grid-material/sd-angular-core-grid-material.d.ts +26 -25
- package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
- package/grid-material/src/lib/components/column-inline-filter/column-inline-filter.component.d.ts +13 -0
- package/grid-material/src/lib/models/grid-column.model.d.ts +4 -3
- package/grid-material/src/lib/models/grid-editor.model.d.ts +1 -1
- package/grid-material/src/lib/pipes/column-badge.pipe.d.ts +1 -1
- package/grid-material/src/lib/pipes/column-transform.pipe.d.ts +4 -4
- package/package.json +1 -1
- package/{sd-angular-core-0.0.945.tgz → sd-angular-core-0.0.949.tgz} +0 -0
package/grid-material/src/lib/components/column-inline-filter/column-inline-filter.component.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { SdGridMaterialColumn } from '../../models/grid-column.model';
|
|
3
|
+
export declare class SdColumnInlineFilter implements OnInit {
|
|
4
|
+
value: any;
|
|
5
|
+
columnFilter: {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
};
|
|
8
|
+
column: SdGridMaterialColumn;
|
|
9
|
+
filterChange: EventEmitter<any>;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
onFilterChange: () => void;
|
|
13
|
+
}
|
|
@@ -37,6 +37,8 @@ interface SdGridMaterialColumnText<T = any> extends SdGridMaterialBaseColumn<T>
|
|
|
37
37
|
}
|
|
38
38
|
interface SdGridMaterialColumnNumber<T = any> extends SdGridMaterialBaseColumn<T> {
|
|
39
39
|
type: 'number';
|
|
40
|
+
badge?: (value: any, rowData: T) => 'warning' | 'info' | 'success' | 'danger' | 'normal';
|
|
41
|
+
badgeType?: 'circle';
|
|
40
42
|
editor?: {
|
|
41
43
|
change?: (rowData: T) => void;
|
|
42
44
|
hidden?: boolean | ((rowData: T) => boolean);
|
|
@@ -52,7 +54,6 @@ interface SdGridMaterialBool<T = any> extends SdGridMaterialBaseColumn<T> {
|
|
|
52
54
|
displayOnTrue?: string;
|
|
53
55
|
displayOnFalse?: string;
|
|
54
56
|
};
|
|
55
|
-
badge?: (value: any, rowData: T) => 'warning' | 'info' | 'success' | 'danger' | 'normal';
|
|
56
57
|
badgeType?: 'circle';
|
|
57
58
|
editor?: {
|
|
58
59
|
change?: (rowData: T) => void;
|
|
@@ -79,12 +80,12 @@ interface SdGridMaterialColumnDate<T = any> extends SdGridMaterialBaseColumn<T>
|
|
|
79
80
|
}
|
|
80
81
|
interface SdGridMaterialColumnValues<T = any> extends SdGridMaterialBaseColumn<T> {
|
|
81
82
|
type: 'values';
|
|
83
|
+
badge?: (value: any, rowData: T) => 'warning' | 'info' | 'success' | 'danger' | 'normal';
|
|
84
|
+
badgeType?: 'circle';
|
|
82
85
|
option?: {
|
|
83
86
|
items: any[] | (() => Promise<any[]>);
|
|
84
87
|
valueField: string;
|
|
85
88
|
displayField: string;
|
|
86
|
-
colorField?: string;
|
|
87
|
-
backgroundColorField?: string;
|
|
88
89
|
selection?: 'AUTOCOMPLETE' | 'MULTIPLE' | 'MULTIPLEAUTOCOMPLETE';
|
|
89
90
|
};
|
|
90
91
|
editor?: {
|
|
@@ -2,7 +2,7 @@ export declare type SdEditor<T = any> = SdEditorFocus<T> | SdEditorInline<T> | S
|
|
|
2
2
|
export interface SdEditorBase<T = any> {
|
|
3
3
|
addable?: boolean;
|
|
4
4
|
disabled?: boolean | ((rowData: T) => boolean);
|
|
5
|
-
onAdd?: (rowData: T) => void;
|
|
5
|
+
onAdd?: (rowData: T, rowDatas?: T[]) => void;
|
|
6
6
|
onEdit?: (rowData: T) => void;
|
|
7
7
|
onSave?: (rowData: T) => void | Promise<void>;
|
|
8
8
|
validate?: (rowData: T) => string | Promise<string>;
|
|
@@ -2,5 +2,5 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import { SdGridMaterialColumn } from '../models/grid-column.model';
|
|
3
3
|
export declare class SdColumnBadgePipe implements PipeTransform {
|
|
4
4
|
constructor();
|
|
5
|
-
transform(value: any, rowData: any, column: SdGridMaterialColumn):
|
|
5
|
+
transform(value: any, rowData: any, column: SdGridMaterialColumn): 'warning' | 'info' | 'success' | 'danger' | 'normal';
|
|
6
6
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DecimalPipe } from '@angular/common';
|
|
2
1
|
import { PipeTransform } from '@angular/core';
|
|
3
2
|
import { SdGridMaterialColumn } from '../models/grid-column.model';
|
|
3
|
+
import { SdGridService } from '../services/grid.service';
|
|
4
4
|
export declare class SdColumnTransformPipe implements PipeTransform {
|
|
5
|
-
private
|
|
6
|
-
constructor(
|
|
7
|
-
transform(value: any, rowData: any, column: SdGridMaterialColumn): string
|
|
5
|
+
private gridService;
|
|
6
|
+
constructor(gridService: SdGridService);
|
|
7
|
+
transform(value: any, rowData: any, column: SdGridMaterialColumn, key?: string): Promise<string>;
|
|
8
8
|
}
|
package/package.json
CHANGED
|
index c863f30..2a638dd 100644
|
|
|
Binary file
|