@syncfusion/ej2-lists 25.1.41 → 26.1.35

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.
Files changed (105) hide show
  1. package/.eslintrc.json +3 -2
  2. package/dist/ej2-lists.min.js +2 -2
  3. package/dist/ej2-lists.umd.min.js +2 -2
  4. package/dist/ej2-lists.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-lists.es2015.js +255 -279
  6. package/dist/es6/ej2-lists.es2015.js.map +1 -1
  7. package/dist/es6/ej2-lists.es5.js +241 -265
  8. package/dist/es6/ej2-lists.es5.js.map +1 -1
  9. package/dist/global/ej2-lists.min.js +2 -2
  10. package/dist/global/ej2-lists.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +10 -10
  13. package/src/common/list-base.d.ts +61 -30
  14. package/src/common/list-base.js +167 -94
  15. package/src/list-view/list-view.d.ts +7 -9
  16. package/src/list-view/list-view.js +42 -75
  17. package/src/list-view/virtualization.d.ts +0 -1
  18. package/src/list-view/virtualization.js +10 -66
  19. package/src/sortable/sortable.d.ts +5 -0
  20. package/src/sortable/sortable.js +14 -7
  21. package/styles/bootstrap-dark.css +100 -122
  22. package/styles/bootstrap-dark.scss +8 -2
  23. package/styles/bootstrap.css +100 -122
  24. package/styles/bootstrap.scss +8 -2
  25. package/styles/bootstrap4.css +139 -161
  26. package/styles/bootstrap4.scss +8 -2
  27. package/styles/bootstrap5-dark.css +101 -125
  28. package/styles/bootstrap5-dark.scss +8 -2
  29. package/styles/bootstrap5.css +101 -125
  30. package/styles/bootstrap5.scss +8 -2
  31. package/styles/fabric-dark.css +100 -122
  32. package/styles/fabric-dark.scss +8 -2
  33. package/styles/fabric.css +100 -122
  34. package/styles/fabric.scss +8 -2
  35. package/styles/fluent-dark.css +143 -165
  36. package/styles/fluent-dark.scss +8 -2
  37. package/styles/fluent.css +143 -165
  38. package/styles/fluent.scss +8 -2
  39. package/styles/fluent2.css +1485 -0
  40. package/styles/fluent2.scss +8 -0
  41. package/styles/highcontrast-light.css +100 -122
  42. package/styles/highcontrast-light.scss +8 -2
  43. package/styles/highcontrast.css +100 -122
  44. package/styles/highcontrast.scss +8 -2
  45. package/styles/list-view/_bootstrap4-definition.scss +5 -0
  46. package/styles/list-view/_bootstrap5.3-definition.scss +132 -0
  47. package/styles/list-view/_fluent2-definition.scss +132 -0
  48. package/styles/list-view/_layout.scss +377 -393
  49. package/styles/list-view/_material3-definition.scss +0 -7
  50. package/styles/list-view/_theme.scss +84 -95
  51. package/styles/list-view/bootstrap-dark.css +97 -121
  52. package/styles/list-view/bootstrap.css +97 -121
  53. package/styles/list-view/bootstrap4.css +136 -160
  54. package/styles/list-view/bootstrap5-dark.css +98 -124
  55. package/styles/list-view/bootstrap5.css +98 -124
  56. package/styles/list-view/fabric-dark.css +97 -121
  57. package/styles/list-view/fabric.css +97 -121
  58. package/styles/list-view/fluent-dark.css +140 -164
  59. package/styles/list-view/fluent.css +140 -164
  60. package/styles/list-view/fluent2.css +1455 -0
  61. package/styles/list-view/fluent2.scss +5 -0
  62. package/styles/list-view/highcontrast-light.css +97 -121
  63. package/styles/list-view/highcontrast.css +97 -121
  64. package/styles/list-view/icons/_bootstrap5.3.scss +8 -0
  65. package/styles/list-view/icons/_fluent2.scss +10 -0
  66. package/styles/list-view/material-dark.css +97 -121
  67. package/styles/list-view/material.css +97 -121
  68. package/styles/list-view/material3-dark.css +112 -136
  69. package/styles/list-view/material3.css +112 -136
  70. package/styles/list-view/tailwind-dark.css +207 -235
  71. package/styles/list-view/tailwind.css +207 -235
  72. package/styles/material-dark.css +100 -122
  73. package/styles/material-dark.scss +8 -2
  74. package/styles/material.css +100 -122
  75. package/styles/material.scss +8 -2
  76. package/styles/material3-dark.css +115 -137
  77. package/styles/material3-dark.scss +8 -2
  78. package/styles/material3.css +115 -137
  79. package/styles/material3.scss +8 -2
  80. package/styles/sortable/_bootstrap5.3-definition.scss +1 -0
  81. package/styles/sortable/_fluent2-definition.scss +1 -0
  82. package/styles/sortable/bootstrap-dark.css +3 -1
  83. package/styles/sortable/bootstrap.css +3 -1
  84. package/styles/sortable/bootstrap4.css +3 -1
  85. package/styles/sortable/bootstrap5-dark.css +3 -1
  86. package/styles/sortable/bootstrap5.css +3 -1
  87. package/styles/sortable/fabric-dark.css +3 -1
  88. package/styles/sortable/fabric.css +3 -1
  89. package/styles/sortable/fluent-dark.css +3 -1
  90. package/styles/sortable/fluent.css +3 -1
  91. package/styles/sortable/fluent2.css +1063 -0
  92. package/styles/sortable/fluent2.scss +3 -0
  93. package/styles/sortable/highcontrast-light.css +3 -1
  94. package/styles/sortable/highcontrast.css +3 -1
  95. package/styles/sortable/material-dark.css +3 -1
  96. package/styles/sortable/material.css +3 -1
  97. package/styles/sortable/material3-dark.css +4 -2
  98. package/styles/sortable/material3.css +4 -2
  99. package/styles/sortable/tailwind-dark.css +3 -1
  100. package/styles/sortable/tailwind.css +3 -1
  101. package/styles/tailwind-dark.css +210 -236
  102. package/styles/tailwind-dark.scss +8 -2
  103. package/styles/tailwind.css +210 -236
  104. package/styles/tailwind.scss +8 -2
  105. package/CHANGELOG.md +0 -544
@@ -1,5 +1,331 @@
1
+ @mixin list-style($height, $line-height, $position) {
2
+ height: $height;
3
+ line-height: $line-height;
4
+ position: $position;
5
+ }
6
+
7
+ @mixin size($height, $width) {
8
+ height: $height;
9
+ width: $width;
10
+ }
11
+
12
+ @mixin text-style($font-size, $line-height) {
13
+ font-size: $font-size;
14
+ line-height: $line-height;
15
+ }
16
+
17
+ @mixin header($font-weight, $height) {
18
+ align-items: center;
19
+ display: flex;
20
+ font-weight: $font-weight;
21
+ height: $height;
22
+
23
+ .e-text.header,
24
+ .e-headertemplate-text.nested-header {
25
+ display: none;
26
+ }
27
+ }
28
+
29
+ @mixin checkbox-style($left, $right) {
30
+ @if $skin-name != 'fluent2' {
31
+ .e-checkbox-left {
32
+ margin: $left;
33
+ }
34
+ .e-checkbox-right {
35
+ margin: $right;
36
+ }
37
+ }
38
+ }
39
+
40
+ @mixin list-checkbox-style($left, $right) {
41
+ &.e-checkbox-left {
42
+ margin: $left;
43
+ }
44
+ &.e-checkbox-right {
45
+ margin: $right;
46
+ }
47
+ }
48
+
49
+ @mixin icon-margin($margin-left, $margin-right) {
50
+ margin-left: $margin-left;
51
+ margin-right: $margin-right;
52
+ }
53
+
1
54
  @include export-module('listview-layout') {
2
55
  /* stylelint-disable property-no-vendor-prefix */
56
+
57
+ .e-listview {
58
+ -webkit-overflow-scrolling: touch;
59
+ border: $listview-border-size solid;
60
+ border-radius: $listview-root-border-radius;
61
+ display: block;
62
+ overflow: auto;
63
+ position: relative;
64
+ width: 100%;
65
+
66
+ &:not(.e-list-template) .e-list-item {
67
+ @include list-style($listview-item-height, $listview-item-line-height, relative);
68
+ @if $skin-name != 'fluent2' {
69
+ padding: $listview-item-padding;
70
+ }
71
+ }
72
+
73
+ @at-root {
74
+ & .e-list-item {
75
+ border-bottom: $listview-border-size solid;
76
+ cursor: pointer;
77
+ @if $skin-name == 'fluent2' {
78
+ border-radius: $listview-item-radius;
79
+ margin: $listview-item-margin-bottom;
80
+ padding: 0;
81
+ }
82
+ @if ($skin-name == 'tailwind') {
83
+ .e-text-content .e-list-text {
84
+ font-size: $listview-font-size;
85
+ }
86
+ }
87
+ }
88
+
89
+ & .e-list-parent {
90
+ margin: 0;
91
+ padding: 0;
92
+ }
93
+
94
+ & .e-icon-back {
95
+ @if ($skin-name == 'tailwind') {
96
+ @include size($listview-back-icon-size, $listview-back-icon-size);
97
+ }
98
+ @else {
99
+ margin-top: $listview-icon-back-margin;
100
+ }
101
+ @if ($skin-name == 'FluentUI' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
102
+ margin-right: $listview-icon-back-margin-right;
103
+ }
104
+ }
105
+
106
+ & .e-list-header {
107
+ @include header($listview-header-font-weight, $listview-header-height);
108
+ @if ($skin-name == 'tailwind') {
109
+ padding: 6px $listview-header-text-padding;
110
+ .e-headertext {
111
+ text-transform: uppercase;
112
+ }
113
+ }
114
+ @else {
115
+ @if ($skin-name != 'FluentUI' and $skin-name != 'Material3' and $skin-name != 'fluent2' ) {
116
+ border-bottom: 1px solid;
117
+ }
118
+ padding: 0 $listview-header-text-padding;
119
+ }
120
+
121
+ &.e-list-navigation .e-text {
122
+ cursor: pointer;
123
+ }
124
+
125
+ .e-text {
126
+ cursor: default;
127
+ text-indent: 0;
128
+ }
129
+ }
130
+
131
+ & .e-has-header > .e-view {
132
+ top: 45px;
133
+ }
134
+
135
+ & .e-back-button {
136
+ cursor: pointer;
137
+ @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI') {
138
+ margin-right: $listview-back-padding-right;
139
+ }
140
+ @else {
141
+ padding-right: $listview-back-padding-right;
142
+ }
143
+ @if ($skin-name == 'FluentUI') {
144
+ font-size: 12px;
145
+ }
146
+ }
147
+
148
+ & .e-list-group-item {
149
+ border-bottom: $listview-group-border-bottom solid $listview-border-bottom-color;
150
+ border-top: $listview-group-border-top solid;
151
+ height: $listview-groupheader-item-height;
152
+ line-height: $listview-groupheader-item-line-height;
153
+ font-weight: 600;
154
+ @if ($skin-name == 'tailwind') {
155
+ box-sizing: border-box;
156
+ font-weight: $font-weight-medium;
157
+ padding: $listview-header-padding;
158
+
159
+ .e-list-text {
160
+ text-transform: uppercase;
161
+ }
162
+ }
163
+ @else if $skin-name == 'fluent2' {
164
+ padding: $listview-header-padding;
165
+ margin: $listview-item-margin-bottom;
166
+ }
167
+ @else {
168
+ padding: $listview-item-padding;
169
+ }
170
+ @if ($skin-name == 'Material3') {
171
+ border-top: $listview-group-border-bottom solid $listview-border-bottom-color;
172
+ border-bottom: $listview-group-border-top solid;
173
+ }
174
+
175
+ .e-list-text {
176
+ cursor: default;
177
+ @if $skin-name == 'fluent2' {
178
+ padding: 0;
179
+ }
180
+ }
181
+
182
+ &:first-child {
183
+ border: 0;
184
+ border-bottom: $listview-group-first-border-bottom solid $listview-border-bottom-color;
185
+ }
186
+ }
187
+
188
+ & .e-icon-collapsible {
189
+ cursor: pointer;
190
+ font-size: $listview-nested-icon-collapsible;
191
+ position: absolute;
192
+ right: 0%;
193
+ top: 50%;
194
+ transform: translateY(-50%);
195
+ @if ($skin-name == 'tailwind') {
196
+ @include size($listview-icon-size, $listview-icon-size);
197
+ }
198
+ }
199
+
200
+ & .e-text-content {
201
+ height: 100%;
202
+ position: relative;
203
+ vertical-align: middle;
204
+
205
+ &.e-checkbox {
206
+ .e-list-text {
207
+ width: calc(100% - 40px);
208
+ }
209
+ &.e-checkbox-left .e-list-icon + .e-list-text {
210
+ width: calc(100% - 90px);
211
+ }
212
+ &.e-checkbox-right .e-list-icon + .e-list-text {
213
+ width: calc(100% - 80px);
214
+ }
215
+ }
216
+ }
217
+
218
+ & .e-text-content * {
219
+ display: inline-block;
220
+ vertical-align: middle;
221
+ }
222
+
223
+ & .e-list-item.e-checklist.e-has-child {
224
+ .e-text-content.e-checkbox.e-checkbox-right {
225
+ .e-list-icon + .e-list-text {
226
+ width: calc(100% - 92px);
227
+ }
228
+ }
229
+ }
230
+
231
+ & .e-checkbox {
232
+ @include checkbox-style($listview-checkbox-left-margin, $listview-checkbox-right-margin);
233
+ }
234
+
235
+ & .e-list-text {
236
+ cursor: pointer;
237
+ display: inline-block;
238
+ overflow: hidden;
239
+ text-overflow: ellipsis;
240
+ vertical-align: middle;
241
+ white-space: nowrap;
242
+ width: 100%;
243
+ @if $skin-name == 'fluent2' {
244
+ padding: $listview-item-padding;
245
+ }
246
+ }
247
+
248
+ & .e-list-icon + .e-list-text,
249
+ & .e-icon-wrapper .e-list-text,
250
+ & .e-icon-wrapper.e-text-content.e-checkbox .e-list-text {
251
+ width: calc(100% - 60px);
252
+ }
253
+
254
+ & .e-list-icon {
255
+ margin-right: $listview-icon-margin-right;
256
+ @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI' or $skin-name == 'fluent2') {
257
+ @include size($listview-icon-size, $listview-icon-size);
258
+ }
259
+ @else {
260
+ @include size(30px, 30px);
261
+ }
262
+ }
263
+
264
+ & .e-list-container {
265
+ overflow: hidden;
266
+ position: relative;
267
+ }
268
+
269
+ & .e-text .e-headertext {
270
+ display: inline-block;
271
+ line-height: $listview-header-line-height;
272
+ }
273
+
274
+ &.e-rtl {
275
+ direction: rtl;
276
+
277
+ @if ($skin-name == 'FluentUI') {
278
+ & .e-back-button {
279
+ @include icon-margin(12px, 0);
280
+ }
281
+ }
282
+
283
+ &:not(.e-list-template) .e-list-item {
284
+ @if ($skin-name == 'tailwind') {
285
+ padding: $listview-rtl-item-padding;
286
+ }
287
+ }
288
+
289
+ & .e-list-icon {
290
+ @if ($skin-name == 'tailwind') {
291
+ @include icon-margin(8px, 0);
292
+ }
293
+ @else {
294
+ @include icon-margin(16px, 0);
295
+ }
296
+ }
297
+
298
+ & .e-icon-collapsible {
299
+ left: 0%;
300
+ right: initial;
301
+ top: 50%;
302
+ transform: translateY(-50%) rotate(180deg);
303
+ }
304
+
305
+ & .e-list-header .e-text {
306
+ cursor: pointer;
307
+ }
308
+
309
+ & .e-back-button {
310
+ transform: rotate(180deg);
311
+ @if ($skin-name == 'tailwind') {
312
+ @include icon-margin(8px, 0);
313
+ }
314
+ }
315
+
316
+ & .e-icon-back {
317
+ @if ($skin-name != 'tailwind') {
318
+ margin-top: $listview-rtl-icon-back-margin;
319
+ }
320
+ }
321
+
322
+ & .e-checkbox {
323
+ @include checkbox-style($listview-rtl-checkbox-left-margin, $listview-rtl-checkbox-right-margin);
324
+ }
325
+ }
326
+ }
327
+ }
328
+
3
329
  .e-bigger #{&}.e-listview,
4
330
  #{&}.e-listview.e-bigger {
5
331
  @if ($skin-name == 'bootstrap4') {
@@ -16,16 +342,16 @@
16
342
  font-size: $listview-touch-item-font-size;
17
343
  }
18
344
  }
345
+ @if $skin-name == 'fluent2' {
346
+ .e-list-text {
347
+ padding: $listview-touch-item-padding;
348
+ }
349
+ }
19
350
  }
20
351
 
21
352
  &:not(.e-list-template) .e-list-item {
22
- height: $listview-touch-item-height;
23
- line-height: $listview-touch-item-line-height;
24
- position: relative;
25
- @if ($skin-name == 'bootstrap4') {
26
- padding: 12px 20px;
27
- }
28
- @if ($skin-name == 'tailwind') {
353
+ @include list-style($listview-touch-item-height, $listview-touch-item-line-height, relative);
354
+ @if ($skin-name == 'tailwind' or $skin-name == 'bootstrap4') {
29
355
  padding: $listview-touch-item-padding;
30
356
  }
31
357
  }
@@ -38,51 +364,36 @@
38
364
  height: $listview-touch-groupheader-height;
39
365
  line-height: $listview-touch-groupheader-line-height;
40
366
  @if ($skin-name == 'bootstrap4') {
41
- font-size: 16px;
42
367
  padding: 12px 20px;
43
368
  }
44
369
  @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI') {
45
370
  padding: $listview-template-padding;
46
371
  }
47
- @if ($skin-name == 'FluentUI') {
372
+ @if ($skin-name == 'FluentUI' or $skin-name == 'bootstrap4') {
48
373
  font-size: 16px;
49
374
  }
50
375
 
51
376
  .e-text-content {
52
377
  @if ($skin-name == 'tailwind' or $skin-name == 'Material3') {
53
- font-size: $listview-touch-header-font-size;
54
- line-height: $listview-touch-groupheader-line-height;
378
+ @include text-style($listview-touch-header-font-size, $listview-touch-groupheader-line-height);
55
379
  }
56
380
  }
57
381
  }
58
382
 
59
383
  .e-list-header {
60
- align-items: center;
61
- display: flex;
62
- font-weight: $listview-touch-header-font-weight;
63
- height: $listview-touch-header-height;
384
+ @include header($listview-touch-header-font-weight, $listview-touch-header-height);
64
385
  @if ($skin-name == 'bootstrap4') {
65
- font-size: 20px;
66
- line-height: 1.2;
386
+ @include text-style(20px, 1.2);
67
387
  padding: 0 0 0 20px;
68
388
  }
69
389
  @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI') {
70
- font-size: $text-sm;
71
- line-height: $listview-item-line-height;
390
+ @include text-style($text-sm, $listview-item-line-height);
72
391
  padding: $listview-template-padding;
73
392
  }
74
- }
75
393
 
76
- .e-list-header .e-text.header {
77
- display: none;
78
- }
79
-
80
- .e-list-header .e-headertemplate-text.nested-header {
81
- display: none;
82
- }
83
-
84
- .e-list-header .e-text {
85
- font-size: $listview-touch-header-font-size;
394
+ .e-text {
395
+ font-size: $listview-touch-header-font-size;
396
+ }
86
397
  }
87
398
 
88
399
  .e-back-button {
@@ -100,9 +411,8 @@
100
411
  margin-right: 12px;
101
412
  }
102
413
  @if ($skin-name == 'tailwind') {
103
- height: $listview-touch-item-size;
414
+ @include size($listview-touch-item-size, $listview-touch-item-size);
104
415
  margin-right: $listview-touch-icon-margin-right;
105
- width: $listview-touch-item-size;
106
416
  }
107
417
  }
108
418
 
@@ -110,33 +420,28 @@
110
420
  @if ($skin-name == 'bootstrap4') {
111
421
  font-size: 12px;
112
422
  }
423
+ @else if $skin-name == 'fluent2' {
424
+ font-size: 14px;
425
+
426
+ &::before {
427
+ padding: 5px;
428
+ }
429
+ }
113
430
  @if ($skin-name == 'tailwind') {
114
431
  font-size: $listview-touch-item-size;
115
- height: $listview-touch-item-size;
116
- width: $listview-touch-item-size;
432
+ @include size($listview-touch-item-size, $listview-touch-item-size);
117
433
  }
118
434
  }
119
435
 
120
436
  .e-listview-checkbox {
121
- &.e-checkbox-left {
122
- @if ($skin-name == 'bootstrap4') {
123
- margin: 0 12px 0 0;
124
- }
125
- @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI') {
126
- margin: $listview-touch-checkbox-left-margin;
127
- }
128
- @if ($skin-name == 'FluentUI') {
437
+ @if ($skin-name == 'tailwind' or $skin-name == 'bootstrap4') {
438
+ @include list-checkbox-style($listview-touch-checkbox-left-margin, $listview-touch-checkbox-right-margin);
439
+ }
440
+ @if ($skin-name == 'FluentUI') {
441
+ &.e-checkbox-left {
129
442
  border: 0;
130
443
  padding: 0;
131
- }
132
- }
133
-
134
- &.e-checkbox-right {
135
- @if ($skin-name == 'bootstrap4') {
136
- margin: 0 0 0 12px;
137
- }
138
- @if ($skin-name == 'tailwind') {
139
- margin: $listview-touch-checkbox-right-margin;
444
+ margin: $listview-touch-checkbox-left-margin;
140
445
  }
141
446
  }
142
447
  }
@@ -163,39 +468,21 @@
163
468
  }
164
469
 
165
470
  & .e-back-button {
166
- margin-left: 12px;
167
- margin-right: 0;
471
+ @include icon-margin(12px, 0);
168
472
  }
169
473
  }
170
474
  @if ($skin-name == 'Material3') {
171
475
  & .e-list-icon {
172
- margin-left: $listview-touch-icon-margin-right;
173
- margin-right: $listview-rtl-icon-back-margin;
476
+ @include icon-margin($listview-touch-icon-margin-right, $listview-rtl-icon-back-margin);
174
477
  }
175
-
176
- & .e-icon-back {
177
- margin-left: $listview-icon-back-margin-right;
178
- margin-right: $listview-rtl-icon-back-margin;
179
- }
180
- }
181
-
182
- .e-listview-checkbox {
183
- &.e-checkbox-right {
184
- @if ($skin-name == 'bootstrap4') {
185
- margin: 0 12px 0 0;
186
- }
187
- @if ($skin-name == 'tailwind') {
188
- margin: $listview-touch-rtl-checkbox-right-margin;
189
- }
478
+ & .e-icon-back {
479
+ @include icon-margin($listview-icon-back-margin-right, $listview-rtl-icon-back-margin);
190
480
  }
481
+ }
191
482
 
192
- &.e-checkbox-left {
193
- @if ($skin-name == 'bootstrap4') {
194
- margin: 0 0 0 12px;
195
- }
196
- @if ($skin-name == 'tailwind') {
197
- margin: $listview-touch-rtl-checkbox-left-margin;
198
- }
483
+ .e-listview-checkbox {
484
+ @if ($skin-name == 'tailwind' or $skin-name == 'bootstrap4') {
485
+ @include list-checkbox-style($listview-touch-rtl-checkbox-left-margin, $listview-touch-rtl-checkbox-right-margin);
199
486
  }
200
487
  }
201
488
 
@@ -208,10 +495,7 @@
208
495
  }
209
496
  }
210
497
 
211
- &.e-list-avatar:not(.e-list-badge) {
212
- padding-right: $listview-touch-template-avatar-padding-left;
213
- }
214
-
498
+ &.e-list-avatar:not(.e-list-badge),
215
499
  &.e-list-badge.e-list-avatar {
216
500
  padding-right: $listview-touch-template-avatar-padding-left;
217
501
  }
@@ -232,9 +516,8 @@
232
516
 
233
517
  .e-list-item-header,
234
518
  .e-list-content {
235
- font-size: $listview-touch-template-multiline-header-font-size;
519
+ @include text-style($listview-touch-template-multiline-header-font-size, $listview-touch-template-multiline-header-line-height);
236
520
  font-weight: $font-weight-normal;
237
- line-height: $listview-touch-template-multiline-header-line-height;
238
521
  }
239
522
  }
240
523
 
@@ -250,16 +533,12 @@
250
533
 
251
534
  &.e-list-avatar {
252
535
  .e-avatar {
253
- height: $listview-touch-template-avatar-size;
536
+ @include size($listview-touch-template-avatar-size, $listview-touch-template-avatar-size);
254
537
  margin: $listview-touch-template-avatar-margin;
255
- width: $listview-touch-template-avatar-size;
256
538
  }
257
539
  }
258
540
 
259
- &.e-list-avatar:not(.e-list-badge) {
260
- padding-left: $listview-touch-template-avatar-padding-left;
261
- }
262
-
541
+ &.e-list-avatar:not(.e-list-badge),
263
542
  &.e-list-badge.e-list-avatar {
264
543
  padding-left: $listview-touch-template-avatar-padding-left;
265
544
  }
@@ -273,16 +552,16 @@
273
552
  }
274
553
  }
275
554
  }
276
- @if ($skin-name == 'FluentUI') {
277
- & .e-text-content.e-checkbox .e-list-text {
555
+
556
+ & .e-text-content.e-checkbox .e-list-text {
557
+ @if ($skin-name == 'FluentUI' or $skin-name == 'fluent2') {
278
558
  width: calc(100% - 60px);
279
559
  }
280
- }
281
- @else {
282
- & .e-text-content.e-checkbox .e-list-text {
560
+ @else {
283
561
  width: calc(100% - 40px);
284
562
  }
285
563
  }
564
+
286
565
  @if ($skin-name == 'FluentUI') {
287
566
  &.e-list-template {
288
567
  .e-list-wrapper {
@@ -294,322 +573,27 @@
294
573
  padding: $listview-template-multiline-touch-padding;
295
574
 
296
575
  .e-list-item-header {
297
- font-size: $listview-template-touch-font-size;
298
- line-height: 24px;
576
+ @include text-style($listview-template-touch-font-size, 24px);
299
577
  }
300
578
 
301
579
  .e-list-content {
302
- font-size: $listview-template-multiline-header-font-size;
303
- line-height: 22px;
580
+ @include text-style($listview-template-multiline-header-font-size, 22px);
304
581
  }
305
582
  }
306
583
 
307
584
  &.e-list-avatar {
308
585
  .e-avatar {
309
- height: $listview-template-avatar-touch-size;
310
- width: $listview-template-avatar-touch-size;
586
+ @include size($listview-template-avatar-touch-size, $listview-template-avatar-touch-size);
311
587
  }
312
588
  }
313
589
 
314
590
  &:not(.e-list-multi-line) {
315
591
  .e-list-content {
316
- font-size: $listview-template-touch-font-size;
317
- line-height: 24px;
592
+ @include text-style($listview-template-touch-font-size, 24px);
318
593
  }
319
594
  }
320
595
  }
321
596
  }
322
597
  }
323
598
  }
324
-
325
- .e-listview {
326
- -webkit-overflow-scrolling: touch;
327
- border: $listview-border-size solid;
328
- border-radius: $listview-root-border-radius;
329
- display: block;
330
- overflow: auto;
331
- position: relative;
332
- width: 100%;
333
-
334
- &:not(.e-list-template) .e-list-item {
335
- height: $listview-item-height;
336
- line-height: $listview-item-line-height;
337
- padding: $listview-item-padding;
338
- position: relative;
339
- }
340
-
341
- @at-root {
342
- & .e-list-item {
343
- border-bottom: $listview-border-size solid;
344
- cursor: pointer;
345
- @if ($skin-name == 'tailwind') {
346
- .e-text-content .e-list-text {
347
- font-size: $listview-font-size;
348
- }
349
- }
350
- }
351
-
352
- & .e-list-parent {
353
- margin: 0;
354
- padding: 0;
355
- }
356
-
357
- & .e-list-header .e-text.header {
358
- display: none;
359
- }
360
-
361
- & .e-icon-back {
362
- @if ($skin-name == 'tailwind') {
363
- height: $listview-back-icon-size;
364
- width: $listview-back-icon-size;
365
- }
366
- @else {
367
- margin-top: $listview-icon-back-margin;
368
- }
369
- @if ($skin-name == 'FluentUI' or $skin-name == 'Material3') {
370
- margin-right: $listview-icon-back-margin-right;
371
- }
372
- }
373
-
374
- & .e-list-header .e-headertemplate-text.nested-header {
375
- display: none;
376
- }
377
-
378
- & .e-list-header {
379
- align-items: center;
380
- display: flex;
381
- font-weight: $listview-header-font-weight;
382
- height: $listview-header-height;
383
- @if ($skin-name == 'tailwind') {
384
- padding: 6px $listview-header-text-padding;
385
-
386
- .e-headertext {
387
- text-transform: uppercase;
388
- }
389
- }
390
- @else {
391
- @if ($skin-name != 'FluentUI' and $skin-name != 'Material3') {
392
- border-bottom: 1px solid;
393
- }
394
- padding: 0 $listview-header-text-padding;
395
- }
396
- }
397
-
398
- & .e-has-header > .e-view {
399
- top: 45px;
400
- }
401
-
402
- & .e-back-button {
403
- cursor: pointer;
404
- @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI') {
405
- margin-right: $listview-back-padding-right;
406
- }
407
- @else {
408
- padding-right: $listview-back-padding-right;
409
- }
410
- @if ($skin-name == 'FluentUI') {
411
- font-size: 12px;
412
- }
413
- }
414
-
415
- & .e-list-group-item:first-child {
416
- border: 0;
417
- border-bottom: $listview-group-first-border-bottom solid $listview-border-bottom-color;
418
- }
419
-
420
- & .e-list-group-item {
421
- border-bottom: $listview-group-border-bottom solid $listview-border-bottom-color;
422
- border-top: $listview-group-border-top solid;
423
- height: $listview-groupheader-item-height;
424
- line-height: $listview-groupheader-item-line-height;
425
- @if ($skin-name == 'tailwind') {
426
- box-sizing: border-box;
427
- font-weight: $font-weight-medium;
428
- padding: $listview-header-padding;
429
-
430
- .e-list-text {
431
- text-transform: uppercase;
432
- }
433
- }
434
- @else {
435
- font-weight: 600;
436
- padding: $listview-item-padding;
437
- }
438
-
439
- @if ($skin-name == 'Material3') {
440
- border-top: $listview-group-border-bottom solid $listview-border-bottom-color;
441
- border-bottom: $listview-group-border-top solid;
442
- }
443
-
444
- .e-list-text {
445
- cursor: default;
446
- }
447
- }
448
-
449
- & .e-icon-collapsible {
450
- cursor: pointer;
451
- font-size: $listview-nested-icon-collapsible;
452
- position: absolute;
453
- right: 0%;
454
- top: 50%;
455
- transform: translateY(-50%);
456
- @if ($skin-name == 'tailwind') {
457
- height: $listview-icon-size;
458
- width: $listview-icon-size;
459
- }
460
- }
461
-
462
- & .e-text-content {
463
- height: 100%;
464
- position: relative;
465
- vertical-align: middle;
466
- }
467
-
468
- & .e-text-content * {
469
- display: inline-block;
470
- vertical-align: middle;
471
- }
472
-
473
- & .e-text-content.e-checkbox .e-list-text {
474
- width: calc(100% - 40px);
475
- }
476
-
477
- & .e-text-content.e-checkbox.e-checkbox-left .e-list-icon + .e-list-text {
478
- width: calc(100% - 90px);
479
- }
480
-
481
- & .e-text-content.e-checkbox.e-checkbox-right .e-list-icon + .e-list-text {
482
- width: calc(100% - 80px);
483
- }
484
-
485
- & .e-list-item.e-checklist.e-has-child {
486
- .e-text-content.e-checkbox.e-checkbox-right {
487
- .e-list-icon + .e-list-text {
488
- width: calc(100% - 92px);
489
- }
490
- }
491
- }
492
-
493
- & .e-checkbox .e-checkbox-left {
494
- margin: $listview-checkbox-left-margin;
495
- }
496
-
497
- & .e-checkbox .e-checkbox-right {
498
- margin: $listview-checkbox-right-margin;
499
- }
500
-
501
- & .e-list-text {
502
- cursor: pointer;
503
- display: inline-block;
504
- overflow: hidden;
505
- text-overflow: ellipsis;
506
- vertical-align: middle;
507
- white-space: nowrap;
508
- width: 100%;
509
- }
510
-
511
- & .e-list-icon + .e-list-text {
512
- width: calc(100% - 60px);
513
- }
514
-
515
- & .e-icon-wrapper .e-list-text {
516
- width: calc(100% - 60px);
517
- }
518
-
519
- & .e-icon-wrapper.e-text-content.e-checkbox .e-list-text {
520
- width: calc(100% - 60px);
521
- }
522
-
523
- & .e-list-icon {
524
- margin-right: $listview-icon-margin-right;
525
- @if ($skin-name == 'tailwind' or $skin-name == 'FluentUI') {
526
- height: $listview-icon-size;
527
- width: $listview-icon-size;
528
- }
529
- @else {
530
- height: 30px;
531
- width: 30px;
532
- }
533
- }
534
-
535
- & .e-list-container {
536
- overflow: hidden;
537
- position: relative;
538
- }
539
-
540
- & .e-list-header.e-list-navigation .e-text {
541
- cursor: pointer;
542
- }
543
-
544
- & .e-list-header .e-text {
545
- cursor: default;
546
- text-indent: 0;
547
- }
548
-
549
- & .e-text .e-headertext {
550
- display: inline-block;
551
- line-height: $listview-header-line-height;
552
- }
553
-
554
- &.e-rtl {
555
- direction: rtl;
556
-
557
- @if ($skin-name == 'FluentUI') {
558
- & .e-back-button {
559
- margin-left: 12px;
560
- margin-right: 0;
561
- }
562
- }
563
-
564
- &:not(.e-list-template) .e-list-item {
565
- @if ($skin-name == 'tailwind') {
566
- padding: $listview-rtl-item-padding;
567
- }
568
- }
569
-
570
- & .e-list-icon {
571
- @if ($skin-name == 'tailwind') {
572
- margin-left: 8px;
573
- }
574
- @else {
575
- margin-left: 16px;
576
- }
577
- margin-right: 0;
578
- }
579
-
580
- & .e-icon-collapsible {
581
- left: 0%;
582
- right: initial;
583
- top: 50%;
584
- transform: translateY(-50%) rotate(180deg);
585
- }
586
-
587
- & .e-list-header .e-text {
588
- cursor: pointer;
589
- }
590
-
591
- & .e-back-button {
592
- transform: rotate(180deg);
593
- @if ($skin-name == 'tailwind') {
594
- margin-left: 8px;
595
- margin-right: 0;
596
- }
597
- }
598
-
599
- & .e-icon-back {
600
- @if ($skin-name != 'tailwind') {
601
- margin-top: $listview-rtl-icon-back-margin;
602
- }
603
- }
604
-
605
- & .e-checkbox .e-checkbox-left {
606
- margin: $listview-rtl-checkbox-left-margin;
607
- }
608
-
609
- & .e-checkbox .e-checkbox-right {
610
- margin: $listview-rtl-checkbox-right-margin;
611
- }
612
- }
613
- }
614
- }
615
599
  }