@ea-controls/mat-table-extensions 0.0.0 → 16.0.1
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/README.md +10 -1
- package/fesm2022/ea-controls-mat-table-extensions.mjs +178 -0
- package/fesm2022/ea-controls-mat-table-extensions.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/cell.d.ts +23 -0
- package/{projects/mat-table-extensions/src/lib/index.ts → lib/index.d.ts} +3 -3
- package/lib/module.d.ts +9 -0
- package/lib/row.d.ts +19 -0
- package/package.json +30 -35
- package/public-api.d.ts +1 -0
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -137
- package/projects/mat-table-extensions/README.md +0 -63
- package/projects/mat-table-extensions/ng-package.json +0 -7
- package/projects/mat-table-extensions/package.json +0 -24
- package/projects/mat-table-extensions/src/lib/cell.ts +0 -58
- package/projects/mat-table-extensions/src/lib/module.ts +0 -21
- package/projects/mat-table-extensions/src/lib/row.ts +0 -38
- package/projects/mat-table-extensions/src/public-api.ts +0 -6
- package/projects/mat-table-extensions/tsconfig.lib.json +0 -15
- package/projects/mat-table-extensions/tsconfig.lib.prod.json +0 -11
- package/projects/mat-table-extensions/tsconfig.spec.json +0 -15
- package/projects/mat-table-extensions-examples/public/favicon.ico +0 -0
- package/projects/mat-table-extensions-examples/src/app/app.component.html +0 -6
- package/projects/mat-table-extensions-examples/src/app/app.component.scss +0 -29
- package/projects/mat-table-extensions-examples/src/app/app.component.spec.ts +0 -29
- package/projects/mat-table-extensions-examples/src/app/app.component.ts +0 -14
- package/projects/mat-table-extensions-examples/src/app/app.config.ts +0 -9
- package/projects/mat-table-extensions-examples/src/app/app.routes.ts +0 -9
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.html +0 -66
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.scss +0 -0
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.spec.ts +0 -23
- package/projects/mat-table-extensions-examples/src/app/basic/basic.component.ts +0 -33
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.html +0 -83
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.scss +0 -0
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.spec.ts +0 -23
- package/projects/mat-table-extensions-examples/src/app/sticky/sticky.component.ts +0 -57
- package/projects/mat-table-extensions-examples/src/index.html +0 -15
- package/projects/mat-table-extensions-examples/src/main.ts +0 -6
- package/projects/mat-table-extensions-examples/src/styles.scss +0 -4
- package/projects/mat-table-extensions-examples/tsconfig.app.json +0 -15
- package/projects/mat-table-extensions-examples/tsconfig.spec.json +0 -15
- package/tsconfig.json +0 -35
@@ -1,57 +0,0 @@
|
|
1
|
-
import { Component } from '@angular/core';
|
2
|
-
import { MatButtonModule } from '@angular/material/button';
|
3
|
-
import { MatButtonToggleModule } from '@angular/material/button-toggle';
|
4
|
-
import { MatExtraTableModule } from '@ea-controls/mat-table-extensions';
|
5
|
-
import { MatButtonToggleGroup } from '@angular/material/button-toggle';
|
6
|
-
|
7
|
-
export interface PeriodicElement {
|
8
|
-
name: string;
|
9
|
-
position: number;
|
10
|
-
weight: number;
|
11
|
-
symbol: string;
|
12
|
-
}
|
13
|
-
|
14
|
-
const ELEMENT_DATA: PeriodicElement[] = [
|
15
|
-
{ position: 1, name: 'Hydrogen', weight: 1.0079, symbol: 'H' },
|
16
|
-
{ position: 2, name: 'Helium', weight: 4.0026, symbol: 'He' },
|
17
|
-
{ position: 3, name: 'Lithium', weight: 6.941, symbol: 'Li' },
|
18
|
-
{ position: 4, name: 'Beryllium', weight: 9.0122, symbol: 'Be' },
|
19
|
-
{ position: 5, name: 'Boron', weight: 10.811, symbol: 'B' },
|
20
|
-
{ position: 6, name: 'Carbon', weight: 12.0107, symbol: 'C' },
|
21
|
-
{ position: 7, name: 'Nitrogen', weight: 14.0067, symbol: 'N' },
|
22
|
-
{ position: 8, name: 'Oxygen', weight: 15.9994, symbol: 'O' },
|
23
|
-
{ position: 9, name: 'Fluorine', weight: 18.9984, symbol: 'F' },
|
24
|
-
{ position: 10, name: 'Neon', weight: 20.1797, symbol: 'Ne' },
|
25
|
-
];
|
26
|
-
|
27
|
-
|
28
|
-
@Component({
|
29
|
-
selector: 'app-sticky',
|
30
|
-
imports: [MatExtraTableModule, MatButtonModule, MatButtonToggleModule],
|
31
|
-
templateUrl: './sticky.component.html',
|
32
|
-
styleUrl: './sticky.component.scss'
|
33
|
-
})
|
34
|
-
export class StickyComponent {
|
35
|
-
|
36
|
-
displayedColumns: string[] = [];
|
37
|
-
dataSource = ELEMENT_DATA;
|
38
|
-
|
39
|
-
tables = [0];
|
40
|
-
|
41
|
-
constructor() {
|
42
|
-
this.displayedColumns.length = 24;
|
43
|
-
this.displayedColumns.fill('filler');
|
44
|
-
|
45
|
-
// The first two columns should be position and name; the last two columns: weight, symbol
|
46
|
-
this.displayedColumns[0] = 'position';
|
47
|
-
this.displayedColumns[1] = 'name';
|
48
|
-
this.displayedColumns[22] = 'weight';
|
49
|
-
this.displayedColumns[23] = 'symbol';
|
50
|
-
}
|
51
|
-
|
52
|
-
/** Whether the button toggle group contains the id as an active value. */
|
53
|
-
isSticky(buttonToggleGroup: MatButtonToggleGroup, id: string) {
|
54
|
-
return (buttonToggleGroup.value || []).indexOf(id) !== -1;
|
55
|
-
}
|
56
|
-
|
57
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<!doctype html>
|
2
|
-
<html lang="en">
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<title>MatTableExtensionsExamples</title>
|
6
|
-
<base href="/">
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
8
|
-
<link rel="icon" type="image/x-icon" href="favicon.ico">
|
9
|
-
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet">
|
10
|
-
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
11
|
-
</head>
|
12
|
-
<body>
|
13
|
-
<app-root></app-root>
|
14
|
-
</body>
|
15
|
-
</html>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
3
|
-
{
|
4
|
-
"extends": "../../tsconfig.json",
|
5
|
-
"compilerOptions": {
|
6
|
-
"outDir": "../../out-tsc/app",
|
7
|
-
"types": []
|
8
|
-
},
|
9
|
-
"files": [
|
10
|
-
"src/main.ts"
|
11
|
-
],
|
12
|
-
"include": [
|
13
|
-
"src/**/*.d.ts"
|
14
|
-
]
|
15
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
3
|
-
{
|
4
|
-
"extends": "../../tsconfig.json",
|
5
|
-
"compilerOptions": {
|
6
|
-
"outDir": "../../out-tsc/spec",
|
7
|
-
"types": [
|
8
|
-
"jasmine"
|
9
|
-
]
|
10
|
-
},
|
11
|
-
"include": [
|
12
|
-
"src/**/*.spec.ts",
|
13
|
-
"src/**/*.d.ts"
|
14
|
-
]
|
15
|
-
}
|
package/tsconfig.json
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
3
|
-
{
|
4
|
-
"compileOnSave": false,
|
5
|
-
"compilerOptions": {
|
6
|
-
"outDir": "./dist/out-tsc",
|
7
|
-
"strict": true,
|
8
|
-
"noImplicitOverride": true,
|
9
|
-
"noPropertyAccessFromIndexSignature": true,
|
10
|
-
"paths": {
|
11
|
-
"mat-table-extensions": [
|
12
|
-
"./dist/mat-table-extensions"
|
13
|
-
],
|
14
|
-
"@ea-controls/mat-table-extensions": [
|
15
|
-
"./projects/mat-table-extensions/src/public-api"
|
16
|
-
]
|
17
|
-
},
|
18
|
-
"noImplicitReturns": true,
|
19
|
-
"noFallthroughCasesInSwitch": true,
|
20
|
-
"skipLibCheck": true,
|
21
|
-
"isolatedModules": true,
|
22
|
-
"esModuleInterop": true,
|
23
|
-
"experimentalDecorators": true,
|
24
|
-
"moduleResolution": "bundler",
|
25
|
-
"importHelpers": true,
|
26
|
-
"target": "ES2022",
|
27
|
-
"module": "ES2022"
|
28
|
-
},
|
29
|
-
"angularCompilerOptions": {
|
30
|
-
"enableI18nLegacyMessageIdFormat": false,
|
31
|
-
"strictInjectionParameters": true,
|
32
|
-
"strictInputAccessModifiers": true,
|
33
|
-
"strictTemplates": true
|
34
|
-
}
|
35
|
-
}
|