@syncfusion/ej2-lists 25.1.41 → 26.1.35-750253
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/.eslintrc.json +3 -2
- package/dist/ej2-lists.min.js +2 -2
- package/dist/ej2-lists.umd.min.js +2 -2
- package/dist/ej2-lists.umd.min.js.map +1 -1
- package/dist/es6/ej2-lists.es2015.js +255 -279
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +241 -265
- package/dist/es6/ej2-lists.es5.js.map +1 -1
- package/dist/global/ej2-lists.min.js +2 -2
- package/dist/global/ej2-lists.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +10 -10
- package/src/common/list-base.d.ts +61 -30
- package/src/common/list-base.js +167 -94
- package/src/list-view/list-view.d.ts +7 -9
- package/src/list-view/list-view.js +42 -75
- package/src/list-view/virtualization.d.ts +0 -1
- package/src/list-view/virtualization.js +10 -66
- package/src/sortable/sortable.d.ts +5 -0
- package/src/sortable/sortable.js +14 -7
- package/styles/bootstrap-dark.css +100 -122
- package/styles/bootstrap-dark.scss +8 -2
- package/styles/bootstrap.css +100 -122
- package/styles/bootstrap.scss +8 -2
- package/styles/bootstrap4.css +139 -161
- package/styles/bootstrap4.scss +8 -2
- package/styles/bootstrap5-dark.css +101 -125
- package/styles/bootstrap5-dark.scss +8 -2
- package/styles/bootstrap5.css +101 -125
- package/styles/bootstrap5.scss +8 -2
- package/styles/fabric-dark.css +100 -122
- package/styles/fabric-dark.scss +8 -2
- package/styles/fabric.css +100 -122
- package/styles/fabric.scss +8 -2
- package/styles/fluent-dark.css +143 -165
- package/styles/fluent-dark.scss +8 -2
- package/styles/fluent.css +143 -165
- package/styles/fluent.scss +8 -2
- package/styles/fluent2.css +1485 -0
- package/styles/fluent2.scss +8 -0
- package/styles/highcontrast-light.css +100 -122
- package/styles/highcontrast-light.scss +8 -2
- package/styles/highcontrast.css +100 -122
- package/styles/highcontrast.scss +8 -2
- package/styles/list-view/_bootstrap4-definition.scss +5 -0
- package/styles/list-view/_bootstrap5.3-definition.scss +132 -0
- package/styles/list-view/_fluent2-definition.scss +132 -0
- package/styles/list-view/_layout.scss +377 -393
- package/styles/list-view/_material3-definition.scss +0 -7
- package/styles/list-view/_theme.scss +84 -95
- package/styles/list-view/bootstrap-dark.css +97 -121
- package/styles/list-view/bootstrap.css +97 -121
- package/styles/list-view/bootstrap4.css +136 -160
- package/styles/list-view/bootstrap5-dark.css +98 -124
- package/styles/list-view/bootstrap5.css +98 -124
- package/styles/list-view/fabric-dark.css +97 -121
- package/styles/list-view/fabric.css +97 -121
- package/styles/list-view/fluent-dark.css +140 -164
- package/styles/list-view/fluent.css +140 -164
- package/styles/list-view/fluent2.css +1455 -0
- package/styles/list-view/fluent2.scss +5 -0
- package/styles/list-view/highcontrast-light.css +97 -121
- package/styles/list-view/highcontrast.css +97 -121
- package/styles/list-view/icons/_bootstrap5.3.scss +8 -0
- package/styles/list-view/icons/_fluent2.scss +10 -0
- package/styles/list-view/material-dark.css +97 -121
- package/styles/list-view/material.css +97 -121
- package/styles/list-view/material3-dark.css +112 -136
- package/styles/list-view/material3.css +112 -136
- package/styles/list-view/tailwind-dark.css +207 -235
- package/styles/list-view/tailwind.css +207 -235
- package/styles/material-dark.css +100 -122
- package/styles/material-dark.scss +8 -2
- package/styles/material.css +100 -122
- package/styles/material.scss +8 -2
- package/styles/material3-dark.css +115 -137
- package/styles/material3-dark.scss +8 -2
- package/styles/material3.css +115 -137
- package/styles/material3.scss +8 -2
- package/styles/sortable/_bootstrap5.3-definition.scss +1 -0
- package/styles/sortable/_fluent2-definition.scss +1 -0
- package/styles/sortable/bootstrap-dark.css +3 -1
- package/styles/sortable/bootstrap.css +3 -1
- package/styles/sortable/bootstrap4.css +3 -1
- package/styles/sortable/bootstrap5-dark.css +3 -1
- package/styles/sortable/bootstrap5.css +3 -1
- package/styles/sortable/fabric-dark.css +3 -1
- package/styles/sortable/fabric.css +3 -1
- package/styles/sortable/fluent-dark.css +3 -1
- package/styles/sortable/fluent.css +3 -1
- package/styles/sortable/fluent2.css +1063 -0
- package/styles/sortable/fluent2.scss +3 -0
- package/styles/sortable/highcontrast-light.css +3 -1
- package/styles/sortable/highcontrast.css +3 -1
- package/styles/sortable/material-dark.css +3 -1
- package/styles/sortable/material.css +3 -1
- package/styles/sortable/material3-dark.css +4 -2
- package/styles/sortable/material3.css +4 -2
- package/styles/sortable/tailwind-dark.css +3 -1
- package/styles/sortable/tailwind.css +3 -1
- package/styles/tailwind-dark.css +210 -236
- package/styles/tailwind-dark.scss +8 -2
- package/styles/tailwind.css +210 -236
- package/styles/tailwind.scss +8 -2
- package/CHANGELOG.md +0 -544
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//layout
|
|
2
1
|
$listview-icon-margin-right: 10px !default;
|
|
3
2
|
$listview-icon-back-margin: 0 !default;
|
|
4
3
|
$listview-icon-back-margin-right: 14px !default;
|
|
@@ -51,8 +50,6 @@ $listview-checkbox-right-margin: -2px 0 0 8px !default;
|
|
|
51
50
|
$listview-checkbox-left-margin: 0 8px 0 0 !default;
|
|
52
51
|
$listview-rtl-checkbox-left-margin: -2px 0 0 8px !default;
|
|
53
52
|
$listview-rtl-checkbox-right-margin: -2px 8px 0 0 !default;
|
|
54
|
-
|
|
55
|
-
//ListView In-built template variables
|
|
56
53
|
$listview-template-padding: 10px 16px !default;
|
|
57
54
|
$listview-template-avatar-padding-right: 16px !default;
|
|
58
55
|
$listview-template-avatar-padding-left: 68px !default;
|
|
@@ -91,8 +88,6 @@ $listview-touch-template-badge-height: 20px !default;
|
|
|
91
88
|
$listview-touch-template-badge-width: 34px !default;
|
|
92
89
|
$listview-touch-template-badge-line-height: 18px !default;
|
|
93
90
|
$listview-touch-template-badge-font-size: $text-xs !default;
|
|
94
|
-
|
|
95
|
-
//color
|
|
96
91
|
$listview-font-family: $font-family !default;
|
|
97
92
|
$listview-text-color: rgba($content-text-color) !default;
|
|
98
93
|
$listview-text-disabled: $content-text-color-disabled !default;
|
|
@@ -127,8 +122,6 @@ $listview-icon-pressed: rgba($icon-color-pressed) !default;
|
|
|
127
122
|
$checkmark-bgcolor: rgba($primary) !default;
|
|
128
123
|
$checkmark-border-color: rgba($primary) !default;
|
|
129
124
|
$checkmark-color: rgba($primary-text-color) !default;
|
|
130
|
-
|
|
131
|
-
//ListView In-built template variables
|
|
132
125
|
$listview-template-multiline-header-color: rgba($content-text-color) !default;
|
|
133
126
|
$listview-template-multiline-content-color: rgba($content-text-color-alt1) !default;
|
|
134
127
|
$listview-template-focused-multiline-content-color: rgba($content-text-color-selected) !default;
|
|
@@ -1,13 +1,30 @@
|
|
|
1
|
-
@
|
|
1
|
+
@mixin avatar-padding($left, $right) {
|
|
2
|
+
padding-left: $left;
|
|
3
|
+
padding-right: $right;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@mixin list-color($bg-color, $color, $border) {
|
|
7
|
+
background-color: $bg-color;
|
|
8
|
+
color: $color;
|
|
9
|
+
border-color: $border;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@mixin avatar-size($height, $width, $top, $left, $right) {
|
|
13
|
+
height: $height;
|
|
14
|
+
width: $width;
|
|
15
|
+
top: $top;
|
|
16
|
+
left: $left;
|
|
17
|
+
right: $right;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include export-module('listview-theme') {
|
|
2
21
|
.e-listview {
|
|
3
22
|
border-color: $listview-line-color;
|
|
4
23
|
font-family: $listview-font-family;
|
|
5
24
|
font-size: $listview-font-size;
|
|
6
25
|
@at-root {
|
|
7
26
|
& .e-list-header {
|
|
8
|
-
|
|
9
|
-
border-color: $listview-header-border;
|
|
10
|
-
color: $listview-header-text-color;
|
|
27
|
+
@include list-color($listview-header-bg, $listview-header-text-color, $listview-header-border);
|
|
11
28
|
font-size: $listview-header-font-size;
|
|
12
29
|
}
|
|
13
30
|
|
|
@@ -15,73 +32,66 @@
|
|
|
15
32
|
color: $listview-icon-color;
|
|
16
33
|
|
|
17
34
|
@if ($skin-name == 'tailwind') {
|
|
18
|
-
&.e-back-button
|
|
19
|
-
&.e-icon-collapsible
|
|
20
|
-
|
|
35
|
+
&.e-back-button,
|
|
36
|
+
&.e-icon-collapsible {
|
|
37
|
+
&:hover {
|
|
38
|
+
color: $icon-color-hover;
|
|
39
|
+
}
|
|
21
40
|
}
|
|
22
41
|
}
|
|
23
42
|
@if ($skin-name == 'bootstrap5') {
|
|
24
|
-
&.e-back-button
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
43
|
+
&.e-back-button{
|
|
44
|
+
&:hover {
|
|
45
|
+
color: $icon-color-hover;
|
|
46
|
+
}
|
|
47
|
+
&:active {
|
|
48
|
+
color: $icon-color-pressed;
|
|
49
|
+
}
|
|
30
50
|
}
|
|
31
51
|
}
|
|
32
52
|
}
|
|
33
53
|
|
|
34
54
|
& .e-list-item {
|
|
35
|
-
background-color: $listview-background;
|
|
36
55
|
border-bottom: $listview-border-bottom solid $listview-border-bottom-color;
|
|
37
56
|
border-left: $listview-border-left solid $listview-border-left-color;
|
|
38
57
|
border-right: $listview-border-right solid $listview-border-right-color;
|
|
39
58
|
border-top: $listview-border-top solid $listview-border-top-color;
|
|
40
|
-
color
|
|
41
|
-
}
|
|
59
|
+
@include list-color($listview-background, $listview-text-color, null);
|
|
42
60
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
color: $listview-text-hover-color;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
& .e-list-item.e-active {
|
|
51
|
-
background-color: $listview-item-active-bg;
|
|
52
|
-
color: $listview-text-active-color;
|
|
53
|
-
}
|
|
61
|
+
&.e-hover,
|
|
62
|
+
&.e-hover.e-active.e-checklist {
|
|
63
|
+
@include list-color($listview-item-hover-bg, $listview-text-hover-color, $listview-hover-border-color);
|
|
64
|
+
}
|
|
54
65
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
color: $listview-text-color;
|
|
66
|
+
&.e-active {
|
|
67
|
+
@include list-color($listview-item-active-bg, $listview-text-active-color, null);
|
|
58
68
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
69
|
+
&.e-checklist {
|
|
70
|
+
@include list-color($listview-background, $listview-text-color, null);
|
|
71
|
+
|
|
72
|
+
@if $skin-name == 'Material3' {
|
|
73
|
+
& .e-checkbox-wrapper .e-frame.e-check {
|
|
74
|
+
color: $checkmark-color;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
62
77
|
}
|
|
63
78
|
}
|
|
64
|
-
}
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
80
|
+
&.e-focused,
|
|
81
|
+
&.e-focused.e-active.e-checklist {
|
|
82
|
+
@include list-color($listview-item-active-bg, $listview-text-active-color, null);
|
|
83
|
+
}
|
|
71
84
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
color: $checkmark-color;
|
|
85
|
+
&.e-focused .e-checkbox-wrapper .e-frame.e-check,
|
|
86
|
+
&.e-focused .e-css.e-checkbox-wrapper .e-frame.e-check {
|
|
87
|
+
@if ($skin-name != 'tailwind' and $skin-name != 'Material3' and $skin-name != 'fluent2') {
|
|
88
|
+
@include list-color($checkmark-bgcolor, $checkmark-color, $checkmark-border-color);
|
|
89
|
+
}
|
|
78
90
|
}
|
|
79
91
|
}
|
|
80
92
|
|
|
81
93
|
& .e-list-group-item {
|
|
82
|
-
|
|
83
|
-
border-color: $listview-header-border;
|
|
84
|
-
color: $listview-groupheader-text-color;
|
|
94
|
+
@include list-color($listview-groupheader-bg, $listview-groupheader-text-color, $listview-header-border);
|
|
85
95
|
font-size: $listview-groupheader-font-size;
|
|
86
96
|
}
|
|
87
97
|
|
|
@@ -123,6 +133,10 @@
|
|
|
123
133
|
font-weight: $font-weight-normal;
|
|
124
134
|
line-height: 22px;
|
|
125
135
|
}
|
|
136
|
+
@else if $skin-name == 'fluent2' {
|
|
137
|
+
font-weight: $font-weight-normal;
|
|
138
|
+
line-height: 20px;
|
|
139
|
+
}
|
|
126
140
|
@else {
|
|
127
141
|
font-weight: 500;
|
|
128
142
|
}
|
|
@@ -146,6 +160,9 @@
|
|
|
146
160
|
line-height: 22px;
|
|
147
161
|
}
|
|
148
162
|
}
|
|
163
|
+
@if ($skin-name == 'fluent2') {
|
|
164
|
+
line-height: 16px;
|
|
165
|
+
}
|
|
149
166
|
margin: 0;
|
|
150
167
|
padding: $listview-template-multiline-content-padding;
|
|
151
168
|
word-wrap: break-word;
|
|
@@ -160,12 +177,9 @@
|
|
|
160
177
|
|
|
161
178
|
&.e-list-avatar {
|
|
162
179
|
.e-avatar {
|
|
163
|
-
|
|
164
|
-
left: $listview-template-avatar-left;
|
|
180
|
+
@include avatar-size($listview-template-avatar-size, $listview-template-avatar-size, $listview-template-avatar-top, $listview-template-avatar-left, null);
|
|
165
181
|
position: absolute;
|
|
166
|
-
|
|
167
|
-
width: $listview-template-avatar-size;
|
|
168
|
-
@if ($skin-name == 'tailwind' or $skin-name == 'FluentUI' or $skin-name == 'bootstrap5' or $skin-name == 'Material3') {
|
|
182
|
+
@if ($skin-name == 'tailwind' or $skin-name == 'FluentUI' or $skin-name == 'bootstrap5' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
|
|
169
183
|
margin: $listview-template-avatar-margin;
|
|
170
184
|
}
|
|
171
185
|
@if $skin-name == 'Material3' {
|
|
@@ -175,20 +189,15 @@
|
|
|
175
189
|
}
|
|
176
190
|
|
|
177
191
|
&.e-list-avatar:not(.e-list-badge) {
|
|
178
|
-
padding-left
|
|
179
|
-
padding-right: $listview-template-avatar-padding-right;
|
|
192
|
+
@include avatar-padding($listview-template-avatar-padding-left, $listview-template-avatar-padding-right);
|
|
180
193
|
}
|
|
181
194
|
|
|
182
195
|
&.e-list-avatar-right:not(.e-list-badge) {
|
|
183
|
-
padding-left
|
|
184
|
-
padding-right: $listview-template-avatar-rightposition-padding-right;
|
|
196
|
+
@include avatar-padding($listview-template-avatar-rightposition-padding-left, $listview-template-avatar-rightposition-padding-right);
|
|
185
197
|
|
|
186
198
|
.e-avatar {
|
|
187
|
-
|
|
199
|
+
@include avatar-size($listview-template-avatar-size, $listview-template-avatar-size, $listview-template-avatar-top, null, $listview-template-avatar-rightposition-right);
|
|
188
200
|
position: absolute;
|
|
189
|
-
right: $listview-template-avatar-rightposition-right;
|
|
190
|
-
top: $listview-template-avatar-top;
|
|
191
|
-
width: $listview-template-avatar-size;
|
|
192
201
|
}
|
|
193
202
|
}
|
|
194
203
|
|
|
@@ -207,28 +216,23 @@
|
|
|
207
216
|
&.e-list-badge {
|
|
208
217
|
.e-badge {
|
|
209
218
|
font-size: $listview-template-badge-font-size;
|
|
210
|
-
height
|
|
219
|
+
@include avatar-size($listview-template-badge-height, $listview-template-badge-width, 50%, null, $listview-template-badge-right);
|
|
211
220
|
line-height: $listview-template-badge-line-height;
|
|
212
221
|
padding: 0;
|
|
213
222
|
position: absolute;
|
|
214
|
-
right: $listview-template-badge-right;
|
|
215
|
-
top: 50%;
|
|
216
223
|
transform: translateY(-50%);
|
|
217
|
-
|
|
218
|
-
@if ($skin-name == 'tailwind' or $skin-name == 'FluentUI' or $skin-name == 'bootstrap5' or $skin-name == 'Material3') {
|
|
224
|
+
@if ($skin-name == 'tailwind' or $skin-name == 'FluentUI' or $skin-name == 'bootstrap5' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
|
|
219
225
|
border-radius: 10px;
|
|
220
226
|
}
|
|
221
227
|
}
|
|
222
228
|
}
|
|
223
229
|
|
|
224
230
|
&.e-list-badge.e-list-avatar {
|
|
225
|
-
padding-left
|
|
226
|
-
padding-right: $listview-template-avatar-badge-padding-right;
|
|
231
|
+
@include avatar-padding($listview-template-avatar-badge-padding-left, $listview-template-avatar-badge-padding-right);
|
|
227
232
|
}
|
|
228
233
|
|
|
229
234
|
&.e-list-badge:not(.e-list-avatar) {
|
|
230
|
-
padding-left
|
|
231
|
-
padding-right: $listview-template-badgewithoutavatar-padding-right;
|
|
235
|
+
@include avatar-padding($listview-template-badgewithoutavatar-padding-left, $listview-template-badgewithoutavatar-padding-right);
|
|
232
236
|
}
|
|
233
237
|
|
|
234
238
|
&:not(.e-list-multi-line) {
|
|
@@ -239,7 +243,7 @@
|
|
|
239
243
|
padding: $listview-template-item-padding;
|
|
240
244
|
text-overflow: ellipsis;
|
|
241
245
|
white-space: nowrap;
|
|
242
|
-
@if ($skin-name == 'tailwind' or $skin-name == 'bootstrap5') {
|
|
246
|
+
@if ($skin-name == 'tailwind' or $skin-name == 'bootstrap5' or $skin-name == 'fluent2') {
|
|
243
247
|
font-size: $listview-font-size;
|
|
244
248
|
line-height: $listview-item-line-height;
|
|
245
249
|
}
|
|
@@ -250,32 +254,21 @@
|
|
|
250
254
|
.e-list-item {
|
|
251
255
|
&.e-focused {
|
|
252
256
|
.e-list-wrapper.e-list-multi-line {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.e-list-content {
|
|
260
|
-
@if ($skin-name == 'bootstrap5') {
|
|
257
|
+
@if ($skin-name == 'bootstrap5') {
|
|
258
|
+
.e-list-item-header,
|
|
259
|
+
.e-list-content {
|
|
261
260
|
color: $content-text-color-selected;
|
|
262
261
|
}
|
|
263
262
|
}
|
|
264
263
|
}
|
|
265
264
|
}
|
|
266
265
|
|
|
267
|
-
&.e-hover .e-list-item-header
|
|
268
|
-
color: $listview-text-hover-color;
|
|
269
|
-
}
|
|
270
|
-
|
|
266
|
+
&.e-hover .e-list-item-header,
|
|
271
267
|
&.e-hover .e-list-content {
|
|
272
268
|
color: $listview-text-hover-color;
|
|
273
269
|
}
|
|
274
270
|
|
|
275
|
-
&.e-active .e-list-item-header
|
|
276
|
-
color: $listview-text-active-color;
|
|
277
|
-
}
|
|
278
|
-
|
|
271
|
+
&.e-active .e-list-item-header,
|
|
279
272
|
&.e-active .e-list-content {
|
|
280
273
|
color: $listview-text-active-color;
|
|
281
274
|
}
|
|
@@ -295,13 +288,11 @@
|
|
|
295
288
|
}
|
|
296
289
|
|
|
297
290
|
&.e-list-avatar:not(.e-list-badge) {
|
|
298
|
-
padding-
|
|
299
|
-
padding-right: $listview-template-avatar-padding-left;
|
|
291
|
+
@include avatar-padding($listview-template-avatar-padding-right, $listview-template-avatar-padding-left);
|
|
300
292
|
}
|
|
301
293
|
|
|
302
294
|
&.e-list-avatar-right:not(.e-list-badge) {
|
|
303
|
-
padding-
|
|
304
|
-
padding-right: $listview-template-avatar-rightposition-padding-left;
|
|
295
|
+
@include avatar-padding($listview-template-avatar-rightposition-padding-right, $listview-template-avatar-rightposition-padding-left);
|
|
305
296
|
|
|
306
297
|
.e-avatar {
|
|
307
298
|
left: $listview-template-avatar-rightposition-right;
|
|
@@ -317,13 +308,11 @@
|
|
|
317
308
|
}
|
|
318
309
|
|
|
319
310
|
&.e-list-badge.e-list-avatar {
|
|
320
|
-
padding-
|
|
321
|
-
padding-right: $listview-template-avatar-badge-padding-left;
|
|
311
|
+
@include avatar-padding($listview-template-avatar-badge-padding-right, $listview-template-avatar-badge-padding-left);
|
|
322
312
|
}
|
|
323
313
|
|
|
324
314
|
&.e-list-badge:not(.e-list-avatar) {
|
|
325
|
-
padding-
|
|
326
|
-
padding-right: $listview-template-badgewithoutavatar-padding-left;
|
|
315
|
+
@include avatar-padding($listview-template-badgewithoutavatar-padding-right, $listview-template-badgewithoutavatar-padding-left);
|
|
327
316
|
}
|
|
328
317
|
}
|
|
329
318
|
}
|