ngx-st-tables 1.1.13 → 15.1.14
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 +24 -24
- package/assets/base-collapse-table.scss +49 -49
- package/assets/base-table.scss +155 -155
- package/esm2020/lib/components/local-table/configurations/configurations.component.mjs +69 -69
- package/esm2020/lib/components/local-table/local-table.component.mjs +259 -259
- package/esm2020/lib/components/select-table/select-table.component.mjs +101 -100
- package/esm2020/lib/models/st-configurations-settings.model.mjs +1 -1
- package/esm2020/lib/models/st-global-search-settings.model.mjs +1 -1
- package/esm2020/lib/models/st-local-storage-configuration.model.mjs +1 -1
- package/esm2020/lib/models/st-local-table-column.model.mjs +1 -1
- package/esm2020/lib/models/st-local-table-columns.model.mjs +1 -1
- package/esm2020/lib/models/st-table-settings.model.mjs +1 -1
- package/esm2020/lib/ngx-st-tables.module.mjs +89 -89
- package/esm2020/lib/services/local-table.service.mjs +36 -36
- package/esm2020/ngx-st-tables.mjs +4 -4
- package/esm2020/public-api.mjs +15 -15
- package/fesm2015/ngx-st-tables.mjs +482 -481
- package/fesm2015/ngx-st-tables.mjs.map +1 -1
- package/fesm2020/ngx-st-tables.mjs +484 -483
- package/fesm2020/ngx-st-tables.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/components/local-table/configurations/configurations.component.d.ts +27 -27
- package/lib/components/local-table/local-table.component.d.ts +63 -63
- package/lib/components/select-table/select-table.component.d.ts +37 -37
- package/lib/models/st-configurations-settings.model.d.ts +6 -6
- package/lib/models/st-global-search-settings.model.d.ts +4 -4
- package/lib/models/st-local-storage-configuration.model.d.ts +8 -8
- package/lib/models/st-local-table-column.model.d.ts +22 -22
- package/lib/models/st-local-table-columns.model.d.ts +4 -4
- package/lib/models/st-table-settings.model.d.ts +3 -3
- package/lib/ngx-st-tables.module.d.ts +24 -24
- package/lib/services/local-table.service.d.ts +11 -11
- package/package.json +4 -4
- package/public-api.d.ts +11 -11
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
# NgxStTables
|
|
2
|
-
|
|
3
|
-
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Run `ng generate component component-name --project ngx-st-tables` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-st-tables`.
|
|
8
|
-
> Note: Don't forget to add `--project ngx-st-tables` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
-
|
|
10
|
-
## Build
|
|
11
|
-
|
|
12
|
-
Run `ng build ngx-st-tables` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
-
|
|
14
|
-
## Publishing
|
|
15
|
-
|
|
16
|
-
After building your library with `ng build ngx-st-tables`, go to the dist folder `cd dist/ngx-st-tables` and run `npm publish`.
|
|
17
|
-
|
|
18
|
-
## Running unit tests
|
|
19
|
-
|
|
20
|
-
Run `ng test ngx-st-tables` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
-
|
|
22
|
-
## Further help
|
|
23
|
-
|
|
24
|
-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
1
|
+
# NgxStTables
|
|
2
|
+
|
|
3
|
+
This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Run `ng generate component component-name --project ngx-st-tables` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-st-tables`.
|
|
8
|
+
> Note: Don't forget to add `--project ngx-st-tables` or else it will be added to the default project in your `angular.json` file.
|
|
9
|
+
|
|
10
|
+
## Build
|
|
11
|
+
|
|
12
|
+
Run `ng build ngx-st-tables` to build the project. The build artifacts will be stored in the `dist/` directory.
|
|
13
|
+
|
|
14
|
+
## Publishing
|
|
15
|
+
|
|
16
|
+
After building your library with `ng build ngx-st-tables`, go to the dist folder `cd dist/ngx-st-tables` and run `npm publish`.
|
|
17
|
+
|
|
18
|
+
## Running unit tests
|
|
19
|
+
|
|
20
|
+
Run `ng test ngx-st-tables` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
|
21
|
+
|
|
22
|
+
## Further help
|
|
23
|
+
|
|
24
|
+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
@import './base-table.scss';
|
|
2
|
-
|
|
3
|
-
table {
|
|
4
|
-
width: 100%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
tr.example-detail-row {
|
|
8
|
-
height: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
tr.example-element-row:not(.example-expanded-row):hover {
|
|
12
|
-
background: whitesmoke;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
tr.example-element-row:not(.example-expanded-row):active {
|
|
16
|
-
background: #efefef;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.example-element-row td {
|
|
20
|
-
border-bottom-width: 0;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.example-element-detail {
|
|
24
|
-
overflow: hidden;
|
|
25
|
-
display: flex;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.example-element-diagram {
|
|
29
|
-
min-width: 80px;
|
|
30
|
-
border: 2px solid black;
|
|
31
|
-
padding: 8px;
|
|
32
|
-
font-weight: lighter;
|
|
33
|
-
margin: 8px 0;
|
|
34
|
-
height: 104px;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.example-element-symbol {
|
|
38
|
-
font-weight: bold;
|
|
39
|
-
font-size: 40px;
|
|
40
|
-
line-height: normal;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.example-element-description {
|
|
44
|
-
padding: 16px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.example-element-description-attribution {
|
|
48
|
-
opacity: 0.5;
|
|
49
|
-
}
|
|
1
|
+
@import './base-table.scss';
|
|
2
|
+
|
|
3
|
+
table {
|
|
4
|
+
width: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
tr.example-detail-row {
|
|
8
|
+
height: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
tr.example-element-row:not(.example-expanded-row):hover {
|
|
12
|
+
background: whitesmoke;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
tr.example-element-row:not(.example-expanded-row):active {
|
|
16
|
+
background: #efefef;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.example-element-row td {
|
|
20
|
+
border-bottom-width: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.example-element-detail {
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.example-element-diagram {
|
|
29
|
+
min-width: 80px;
|
|
30
|
+
border: 2px solid black;
|
|
31
|
+
padding: 8px;
|
|
32
|
+
font-weight: lighter;
|
|
33
|
+
margin: 8px 0;
|
|
34
|
+
height: 104px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.example-element-symbol {
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
font-size: 40px;
|
|
40
|
+
line-height: normal;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.example-element-description {
|
|
44
|
+
padding: 16px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.example-element-description-attribution {
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
}
|
package/assets/base-table.scss
CHANGED
|
@@ -1,155 +1,155 @@
|
|
|
1
|
-
.search-form {
|
|
2
|
-
button {
|
|
3
|
-
height: 40px;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
mat-form-field {
|
|
7
|
-
&:first-child {
|
|
8
|
-
padding-left: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
&:last-child {
|
|
12
|
-
padding-right: 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.clear {
|
|
17
|
-
padding: 0;
|
|
18
|
-
|
|
19
|
-
i {
|
|
20
|
-
height: 20px;
|
|
21
|
-
width: 20px;
|
|
22
|
-
font-size: 20px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
table {
|
|
29
|
-
width: 100%;
|
|
30
|
-
box-shadow: none;
|
|
31
|
-
|
|
32
|
-
th.mat-header-cell:first-of-type,
|
|
33
|
-
td.mat-cell:first-of-type,
|
|
34
|
-
td.mat-footer-cell:first-of-type {
|
|
35
|
-
padding-left: 12px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
th.mat-header-cell:last-of-type,
|
|
39
|
-
td.mat-cell:last-of-type,
|
|
40
|
-
td.mat-footer-cell:last-of-type {
|
|
41
|
-
padding-right: 12px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&::ng-deep {
|
|
45
|
-
thead {
|
|
46
|
-
tr {
|
|
47
|
-
background-color: #fff9c4;
|
|
48
|
-
|
|
49
|
-
th {
|
|
50
|
-
border-color: #fdd835;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
tbody {
|
|
56
|
-
& > tr {
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
|
|
59
|
-
&.active {
|
|
60
|
-
background-color: #a5d6a7;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
background-color: #a5d6a7;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&.disabled {
|
|
68
|
-
cursor: not-allowed;
|
|
69
|
-
|
|
70
|
-
&:hover {
|
|
71
|
-
background-color: inherit;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
&.detail-row {
|
|
76
|
-
height: 0;
|
|
77
|
-
cursor: default;
|
|
78
|
-
|
|
79
|
-
&:hover {
|
|
80
|
-
background-color: transparent;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.element-detail {
|
|
84
|
-
overflow: hidden;
|
|
85
|
-
display: flex;
|
|
86
|
-
|
|
87
|
-
p {
|
|
88
|
-
padding: 20px 0;
|
|
89
|
-
margin-bottom: 0;
|
|
90
|
-
white-space: pre-wrap;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
td {
|
|
96
|
-
i.active-row {
|
|
97
|
-
color: #1b5e20;
|
|
98
|
-
font-weight: bold;
|
|
99
|
-
font-size: 25px;
|
|
100
|
-
height: 25px;
|
|
101
|
-
width: 25px;
|
|
102
|
-
margin-top: 2px;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
td {
|
|
107
|
-
& > div {
|
|
108
|
-
max-height: 200px;
|
|
109
|
-
overflow: hidden;
|
|
110
|
-
overflow-y: auto;
|
|
111
|
-
}
|
|
112
|
-
a {
|
|
113
|
-
button {
|
|
114
|
-
color: #000;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
i {
|
|
118
|
-
color: #333;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.mat-column-active {
|
|
126
|
-
width: 48px;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&.no-hover {
|
|
131
|
-
&::ng-deep {
|
|
132
|
-
tbody {
|
|
133
|
-
tr {
|
|
134
|
-
cursor: default;
|
|
135
|
-
|
|
136
|
-
&.active {
|
|
137
|
-
background-color: transparent;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
&:hover {
|
|
141
|
-
background-color: transparent;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&.admin-table {
|
|
149
|
-
&::ng-deep {
|
|
150
|
-
.actions-cell {
|
|
151
|
-
width: 100px;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
1
|
+
.search-form {
|
|
2
|
+
button {
|
|
3
|
+
height: 40px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
mat-form-field {
|
|
7
|
+
&:first-child {
|
|
8
|
+
padding-left: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&:last-child {
|
|
12
|
+
padding-right: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.clear {
|
|
17
|
+
padding: 0;
|
|
18
|
+
|
|
19
|
+
i {
|
|
20
|
+
height: 20px;
|
|
21
|
+
width: 20px;
|
|
22
|
+
font-size: 20px;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
table {
|
|
29
|
+
width: 100%;
|
|
30
|
+
box-shadow: none;
|
|
31
|
+
|
|
32
|
+
th.mat-header-cell:first-of-type,
|
|
33
|
+
td.mat-cell:first-of-type,
|
|
34
|
+
td.mat-footer-cell:first-of-type {
|
|
35
|
+
padding-left: 12px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
th.mat-header-cell:last-of-type,
|
|
39
|
+
td.mat-cell:last-of-type,
|
|
40
|
+
td.mat-footer-cell:last-of-type {
|
|
41
|
+
padding-right: 12px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&::ng-deep {
|
|
45
|
+
thead {
|
|
46
|
+
tr {
|
|
47
|
+
background-color: #fff9c4;
|
|
48
|
+
|
|
49
|
+
th {
|
|
50
|
+
border-color: #fdd835;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
tbody {
|
|
56
|
+
& > tr {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
|
|
59
|
+
&.active {
|
|
60
|
+
background-color: #a5d6a7;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: #a5d6a7;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&.disabled {
|
|
68
|
+
cursor: not-allowed;
|
|
69
|
+
|
|
70
|
+
&:hover {
|
|
71
|
+
background-color: inherit;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&.detail-row {
|
|
76
|
+
height: 0;
|
|
77
|
+
cursor: default;
|
|
78
|
+
|
|
79
|
+
&:hover {
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.element-detail {
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
display: flex;
|
|
86
|
+
|
|
87
|
+
p {
|
|
88
|
+
padding: 20px 0;
|
|
89
|
+
margin-bottom: 0;
|
|
90
|
+
white-space: pre-wrap;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
td {
|
|
96
|
+
i.active-row {
|
|
97
|
+
color: #1b5e20;
|
|
98
|
+
font-weight: bold;
|
|
99
|
+
font-size: 25px;
|
|
100
|
+
height: 25px;
|
|
101
|
+
width: 25px;
|
|
102
|
+
margin-top: 2px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
td {
|
|
107
|
+
& > div {
|
|
108
|
+
max-height: 200px;
|
|
109
|
+
overflow: hidden;
|
|
110
|
+
overflow-y: auto;
|
|
111
|
+
}
|
|
112
|
+
a {
|
|
113
|
+
button {
|
|
114
|
+
color: #000;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
i {
|
|
118
|
+
color: #333;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.mat-column-active {
|
|
126
|
+
width: 48px;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&.no-hover {
|
|
131
|
+
&::ng-deep {
|
|
132
|
+
tbody {
|
|
133
|
+
tr {
|
|
134
|
+
cursor: default;
|
|
135
|
+
|
|
136
|
+
&.active {
|
|
137
|
+
background-color: transparent;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.admin-table {
|
|
149
|
+
&::ng-deep {
|
|
150
|
+
.actions-cell {
|
|
151
|
+
width: 100px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|