@webilix/ngx-table-m3 0.0.6 → 0.0.7
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/fesm2022/webilix-ngx-table-m3.mjs +81 -59
- package/fesm2022/webilix-ngx-table-m3.mjs.map +1 -1
- package/lib/columns/file-size/column-file-size.component.d.ts +10 -0
- package/lib/columns/file-size/column-file-size.interface.d.ts +10 -0
- package/lib/columns/index.d.ts +2 -0
- package/lib/ngx-table.interface.d.ts +2 -2
- package/lib/views/value/view-value.component.d.ts +4 -0
- package/ngx-table-m3.css +9 -0
- package/package.json +6 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IColumnConfig } from '../column.interface';
|
|
2
|
+
import { IColumnFileSize } from './column-file-size.interface';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ColumnFileSizeComponent<T> {
|
|
5
|
+
column: IColumnFileSize<T>;
|
|
6
|
+
value: number;
|
|
7
|
+
config: IColumnConfig;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnFileSizeComponent<any>, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ColumnFileSizeComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ColumnMethods, IColumn } from '../column.interface';
|
|
2
|
+
export interface IColumnFileSize<T> extends Omit<IColumn<T>, 'title'> {
|
|
3
|
+
readonly type: 'FILE-SIZE';
|
|
4
|
+
readonly title?: string;
|
|
5
|
+
readonly format?: 'FULL' | 'DAY' | 'HOUR' | 'MINUTE' | 'SECOND';
|
|
6
|
+
}
|
|
7
|
+
export declare class ColumnFileSizeMethods<T> extends ColumnMethods<IColumnFileSize<T>, number> {
|
|
8
|
+
column(column: IColumnFileSize<T>): IColumnFileSize<T>;
|
|
9
|
+
value(value: any, column?: IColumnFileSize<T> | undefined): number | undefined;
|
|
10
|
+
}
|
package/lib/columns/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export * from './date/column-date.component';
|
|
|
2
2
|
export * from './date/column-date.interface';
|
|
3
3
|
export * from './duration/column-duration.component';
|
|
4
4
|
export * from './duration/column-duration.interface';
|
|
5
|
+
export * from './file-size/column-file-size.component';
|
|
6
|
+
export * from './file-size/column-file-size.interface';
|
|
5
7
|
export * from './mobile/column-mobile.component';
|
|
6
8
|
export * from './mobile/column-mobile.interface';
|
|
7
9
|
export * from './number/column-number.component';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IAction, IActionDelete, IActionLog, IActionStatus, IActionUpdate, IColumnDate, IColumnDuration, IColumnMobile, IColumnNumber, IColumnText } from './columns';
|
|
2
|
-
export type NgxTableColumn<T> = IColumnDate<T> | IColumnDuration<T> | IColumnMobile<T> | IColumnNumber<T> | IColumnText<T>;
|
|
1
|
+
import { IAction, IActionDelete, IActionLog, IActionStatus, IActionUpdate, IColumnDate, IColumnDuration, IColumnFileSize, IColumnMobile, IColumnNumber, IColumnText } from './columns';
|
|
2
|
+
export type NgxTableColumn<T> = IColumnDate<T> | IColumnDuration<T> | IColumnFileSize<T> | IColumnMobile<T> | IColumnNumber<T> | IColumnText<T>;
|
|
3
3
|
export type NgxTableAction<T> = 'DIVIDER' | IAction<T> | IActionUpdate<T> | IActionDelete<T> | IActionStatus<T> | IActionLog<T>;
|
|
4
4
|
export interface INgxTable<T> {
|
|
5
5
|
readonly route?: string[];
|
|
@@ -23,6 +23,10 @@ export declare class ViewValueComponent<T> implements OnChanges {
|
|
|
23
23
|
readonly methods: import("../../columns").ColumnMethods<any, any>;
|
|
24
24
|
readonly component: import("@angular/cdk/portal").ComponentType<any>;
|
|
25
25
|
};
|
|
26
|
+
"FILE-SIZE": {
|
|
27
|
+
readonly methods: import("../../columns").ColumnMethods<any, any>;
|
|
28
|
+
readonly component: import("@angular/cdk/portal").ComponentType<any>;
|
|
29
|
+
};
|
|
26
30
|
MOBILE: {
|
|
27
31
|
readonly methods: import("../../columns").ColumnMethods<any, any>;
|
|
28
32
|
readonly component: import("@angular/cdk/portal").ComponentType<any>;
|
package/ngx-table-m3.css
CHANGED
|
@@ -231,12 +231,21 @@
|
|
|
231
231
|
.column {
|
|
232
232
|
display: flex;
|
|
233
233
|
align-items: center;
|
|
234
|
+
justify-content: flex-start;
|
|
234
235
|
column-gap: 0.5rem;
|
|
235
236
|
|
|
236
237
|
mat-icon {
|
|
237
238
|
font-size: 100%;
|
|
238
239
|
}
|
|
239
240
|
}
|
|
241
|
+
|
|
242
|
+
.column.flex-center {
|
|
243
|
+
justify-content: center;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.column.flex-end {
|
|
247
|
+
justify-content: flex-end;
|
|
248
|
+
}
|
|
240
249
|
}
|
|
241
250
|
|
|
242
251
|
th.active-filters {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webilix/ngx-table-m3",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"author": "Ali Amirnezhad",
|
|
5
5
|
"description": "Responsive table view component for Angular and Material 3",
|
|
6
6
|
"repository": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/webilix/ngx-table-m3#readme",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@angular/common": ">=19.0.
|
|
25
|
-
"@angular/core": ">=19.0.
|
|
26
|
-
"@angular/material": ">=19.0.
|
|
24
|
+
"@angular/common": ">=19.0.5",
|
|
25
|
+
"@angular/core": ">=19.0.5",
|
|
26
|
+
"@angular/material": ">=19.0.4",
|
|
27
27
|
"@webilix/helper-library": ">=6.0.2",
|
|
28
28
|
"@webilix/jalali-date-time": ">=2.0.5",
|
|
29
|
-
"@webilix/ngx-calendar-m3": ">=0.0.
|
|
30
|
-
"@webilix/ngx-helper-m3": ">=0.0.
|
|
29
|
+
"@webilix/ngx-calendar-m3": ">=0.0.7",
|
|
30
|
+
"@webilix/ngx-helper-m3": ">=0.0.15"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"tslib": "^2.3.0"
|