@syncfusion/ej2-lists 23.1.43 → 24.1.41
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/CHANGELOG.md +0 -8
- 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 +105 -244
- package/dist/es6/ej2-lists.es2015.js.map +1 -1
- package/dist/es6/ej2-lists.es5.js +101 -241
- 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 -9
- package/src/common/list-base.js +12 -14
- package/src/list-view/list-view-model.d.ts +8 -1
- package/src/list-view/list-view.d.ts +34 -0
- package/src/list-view/list-view.js +32 -35
- package/src/list-view/virtualization.d.ts +1 -8
- package/src/list-view/virtualization.js +57 -192
- package/styles/bootstrap4.css +2 -2
- package/styles/bootstrap5-dark.css +1 -1
- package/styles/bootstrap5.css +1 -1
- package/styles/list-view/_bootstrap4-definition.scss +2 -2
- package/styles/list-view/_bootstrap5-definition.scss +1 -1
- package/styles/list-view/_material-definition.scss +1 -1
- package/styles/list-view/_material3-definition.scss +1 -1
- package/styles/list-view/_tailwind-definition.scss +2 -2
- package/styles/list-view/bootstrap4.css +2 -2
- package/styles/list-view/bootstrap5-dark.css +1 -1
- package/styles/list-view/bootstrap5.css +1 -1
- package/styles/list-view/material.css +1 -1
- package/styles/list-view/material3-dark.css +1 -1
- package/styles/list-view/material3.css +1 -1
- package/styles/list-view/tailwind-dark.css +4 -4
- package/styles/list-view/tailwind.css +4 -4
- package/styles/material.css +1 -1
- package/styles/material3-dark.css +1 -1
- package/styles/material3.css +1 -1
- package/styles/tailwind-dark.css +4 -4
- package/styles/tailwind.css +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { classNames } from './list-view';
|
|
2
|
-
import { EventHandler, append, isNullOrUndefined, detach,
|
|
2
|
+
import { EventHandler, append, isNullOrUndefined, detach, compile, formatUnit, select } from '@syncfusion/ej2-base';
|
|
3
3
|
import { ListBase } from '../common/list-base';
|
|
4
4
|
import { DataManager } from '@syncfusion/ej2-data';
|
|
5
5
|
var listElementCount = 1.5;
|
|
@@ -31,10 +31,6 @@ var Virtualization = /** @class */ (function () {
|
|
|
31
31
|
* @private
|
|
32
32
|
*/
|
|
33
33
|
Virtualization.prototype.uiVirtualization = function () {
|
|
34
|
-
this.commonTemplate = '<div class="e-text-content" role="presentation"> ' +
|
|
35
|
-
'<span class="e-list-text"> ${' + this.listViewInstance.fields.text + '} </span></div>';
|
|
36
|
-
this.templateFunction = compile(this.listViewInstance.template || this.commonTemplate, this.listViewInstance);
|
|
37
|
-
this.groupTemplateFunction = compile(this.listViewInstance.groupTemplate || this.commonTemplate, this.listViewInstance);
|
|
38
34
|
this.wireScrollEvent(false);
|
|
39
35
|
var curViewDS = this.listViewInstance.curViewDS;
|
|
40
36
|
var firstDs = curViewDS.slice(0, 1);
|
|
@@ -167,6 +163,9 @@ var Virtualization = /** @class */ (function () {
|
|
|
167
163
|
Virtualization.prototype.onVirtualUiScroll = function (e) {
|
|
168
164
|
var _a;
|
|
169
165
|
var startingHeight;
|
|
166
|
+
var curViewDS = this.listViewInstance.curViewDS;
|
|
167
|
+
this.listItemHeight = select('.e-list-item', this.listViewInstance.element).getBoundingClientRect().height;
|
|
168
|
+
this.totalHeight = (Object.keys(curViewDS).length * this.listItemHeight) - (this.domItemCount * this.listItemHeight);
|
|
170
169
|
if (this.listViewInstance.isWindow) {
|
|
171
170
|
startingHeight = this.listViewInstance.ulElement.getBoundingClientRect().top -
|
|
172
171
|
document.documentElement.getBoundingClientRect().top;
|
|
@@ -282,7 +281,13 @@ var Virtualization = /** @class */ (function () {
|
|
|
282
281
|
if (!element.querySelector('.' + classNames.checkboxWrapper)) {
|
|
283
282
|
element.classList.add(classNames.checklist);
|
|
284
283
|
textContent.classList.add(classNames.checkbox);
|
|
285
|
-
|
|
284
|
+
if (this.listViewInstance.checkBoxPosition === 'Left') {
|
|
285
|
+
textContent.classList.add('e-checkbox-left');
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
textContent.classList.add('e-checkbox-right');
|
|
289
|
+
}
|
|
290
|
+
textContent.append(this.checkListWrapper.cloneNode(true));
|
|
286
291
|
}
|
|
287
292
|
}
|
|
288
293
|
}
|
|
@@ -526,7 +531,6 @@ var Virtualization = /** @class */ (function () {
|
|
|
526
531
|
var curViewDS = this.listViewInstance.curViewDS;
|
|
527
532
|
// eslint-disable-next-line
|
|
528
533
|
var resutJSON = this.findDSAndIndexFromId(curViewDS, obj);
|
|
529
|
-
// eslint-disable-next-line
|
|
530
534
|
if (Object.keys(resutJSON).length) {
|
|
531
535
|
dataSource = resutJSON.data;
|
|
532
536
|
if (curViewDS[resutJSON.index - 1] &&
|
|
@@ -790,192 +794,50 @@ var Virtualization = /** @class */ (function () {
|
|
|
790
794
|
this.refreshItemHeight();
|
|
791
795
|
};
|
|
792
796
|
Virtualization.prototype.createUIItem = function (args) {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
}
|
|
809
|
-
[].slice.call(nodes).forEach(function (ele) {
|
|
810
|
-
div_1.appendChild(ele);
|
|
811
|
-
});
|
|
812
|
-
if (div_1.children && div_1.children[0]) {
|
|
813
|
-
div_1.children[0].classList.add('e-checkbox');
|
|
814
|
-
if (this.listViewInstance.checkBoxPosition === 'Left') {
|
|
815
|
-
div_1.children[0].classList.add('e-checkbox-left');
|
|
816
|
-
}
|
|
817
|
-
else {
|
|
818
|
-
div_1.children[0].classList.add('e-checkbox-right');
|
|
819
|
-
}
|
|
820
|
-
if (this.listViewInstance.checkBoxPosition === 'Left') {
|
|
821
|
-
div_1.children[0].insertBefore(this.listViewInstance.virtualCheckBox, div_1.childNodes[0].children[0]);
|
|
822
|
-
}
|
|
823
|
-
else {
|
|
824
|
-
div_1.children[0].appendChild(this.listViewInstance.virtualCheckBox);
|
|
797
|
+
if (!args.item.classList.contains('e-list-group-item')) {
|
|
798
|
+
this.templateData = args.curData.isHeader ? args.curData.items[0] :
|
|
799
|
+
args.curData;
|
|
800
|
+
if (this.listViewInstance.showCheckBox) {
|
|
801
|
+
// eslint-disable-next-line
|
|
802
|
+
this.listViewInstance.renderCheckbox(args);
|
|
803
|
+
if ((!isNullOrUndefined(this.listViewInstance.virtualCheckBox)) &&
|
|
804
|
+
(!isNullOrUndefined(this.listViewInstance.virtualCheckBox.outerHTML))) {
|
|
805
|
+
var div_1 = document.createElement('div');
|
|
806
|
+
var commonTemplate = '<div class="e-text-content" role="presentation"> ' +
|
|
807
|
+
'<span class="e-list-text"> ${' + this.listViewInstance.fields.text + '} </span></div>';
|
|
808
|
+
var templateFunction = compile(this.listViewInstance.template || commonTemplate, this.listViewInstance);
|
|
809
|
+
var nodes = templateFunction(this.templateData, this.listViewInstance);
|
|
810
|
+
if (this.listViewInstance.template && this.listViewInstance.isReact) {
|
|
811
|
+
this.listViewInstance.renderReactTemplates();
|
|
825
812
|
}
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
}
|
|
850
|
-
if (args.curData.isHeader) {
|
|
851
|
-
this.headerData = args.curData;
|
|
852
|
-
}
|
|
853
|
-
var groupTemplate = this.listViewInstance.createElement('div');
|
|
854
|
-
if (this.listViewInstance.fields.groupBy) {
|
|
855
|
-
var nodes = this.groupTemplateFunction(this.headerData, this.listViewInstance);
|
|
856
|
-
if (this.listViewInstance.template && this.listViewInstance.isReact) {
|
|
857
|
-
this.listViewInstance.renderReactTemplates();
|
|
858
|
-
}
|
|
859
|
-
[].slice.call(nodes).forEach(function (ele) {
|
|
860
|
-
groupTemplate.appendChild(ele);
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
if ((!this.listViewInstance.isReact || (typeof this.listViewInstance.template == "string" && !args.item.classList.contains("e-list-group-item")) ||
|
|
864
|
-
(typeof this.listViewInstance.groupTemplate == "string" && args.item.classList.contains("e-list-group-item"))) && !this.listViewInstance.isVue) {
|
|
865
|
-
args.item.innerHTML = '';
|
|
866
|
-
}
|
|
867
|
-
args.item.context = { data: args.curData, nodes: { flatTemplateNodes: [], groupTemplateNodes: [] } };
|
|
868
|
-
for (var i = 0; i < template.children.length; i++) {
|
|
869
|
-
this.compileTemplate(template.children[i], args.item, false);
|
|
870
|
-
}
|
|
871
|
-
for (var i = 0; i < groupTemplate.children.length; i++) {
|
|
872
|
-
this.compileTemplate(groupTemplate.children[i], args.item, true);
|
|
873
|
-
}
|
|
874
|
-
args.item.context.template = args.curData.isHeader ? template.firstElementChild :
|
|
875
|
-
groupTemplate.firstElementChild;
|
|
876
|
-
args.item.context.type = args.curData.isHeader ? 'flatList' : 'groupList';
|
|
877
|
-
var element = args.curData.isHeader ? groupTemplate : template;
|
|
878
|
-
if (element.firstElementChild && !this.listViewInstance.isReact && !this.listViewInstance.isVue) {
|
|
879
|
-
args.item.insertBefore(element.firstElementChild, null);
|
|
880
|
-
}
|
|
881
|
-
};
|
|
882
|
-
Virtualization.prototype.compileTemplate = function (element, item, isHeader) {
|
|
883
|
-
var _this = this;
|
|
884
|
-
var subNode = {};
|
|
885
|
-
subNode.onChange = function (value) {
|
|
886
|
-
var groupTemplateElements;
|
|
887
|
-
var templateElements;
|
|
888
|
-
if (_this.listViewInstance.isVue) {
|
|
889
|
-
groupTemplateElements = _this.groupTemplateFunction(value);
|
|
890
|
-
templateElements = _this.templateFunction(value);
|
|
891
|
-
}
|
|
892
|
-
else {
|
|
893
|
-
groupTemplateElements = _this.groupTemplateFunction(value, _this.listViewInstance);
|
|
894
|
-
templateElements = _this.templateFunction(value, _this.listViewInstance);
|
|
895
|
-
}
|
|
896
|
-
if (_this.listViewInstance.template && _this.listViewInstance.isReact) {
|
|
897
|
-
_this.listViewInstance.renderReactTemplates();
|
|
898
|
-
}
|
|
899
|
-
var currentTemplate = templateElements;
|
|
900
|
-
if (value.isHeader) {
|
|
901
|
-
currentTemplate = groupTemplateElements;
|
|
902
|
-
}
|
|
903
|
-
[].slice.call(currentTemplate).forEach(function (currentElement) {
|
|
904
|
-
var RemovableClass = element.classList.value.replace('e-checkbox', '');
|
|
905
|
-
RemovableClass = RemovableClass.replace('e-checkbox-left', '');
|
|
906
|
-
RemovableClass = RemovableClass.replace('e-checkbox-right', '');
|
|
907
|
-
removeClass([element], RemovableClass.split(' ').filter(function (css) { return css; }));
|
|
908
|
-
addClass([element], Array.from(currentElement.classList));
|
|
909
|
-
for (var i = 0; i < element.attributes.length; i++) {
|
|
910
|
-
if (element.attributes[i].name != 'class') {
|
|
911
|
-
var newData = currentElement.getAttribute(element.attributes[i].name);
|
|
912
|
-
element.setAttribute(element.attributes[i].name, newData);
|
|
813
|
+
[].slice.call(nodes).forEach(function (ele) {
|
|
814
|
+
div_1.appendChild(ele);
|
|
815
|
+
});
|
|
816
|
+
if (div_1.children && div_1.children[0]) {
|
|
817
|
+
div_1.children[0].classList.add('e-checkbox');
|
|
818
|
+
if (this.listViewInstance.checkBoxPosition === 'Left') {
|
|
819
|
+
div_1.children[0].classList.add('e-checkbox-left');
|
|
820
|
+
}
|
|
821
|
+
else {
|
|
822
|
+
div_1.children[0].classList.add('e-checkbox-right');
|
|
823
|
+
}
|
|
824
|
+
if (this.listViewInstance.checkBoxPosition === 'Left') {
|
|
825
|
+
div_1.children[0].insertBefore(this.listViewInstance.virtualCheckBox, div_1.childNodes[0].children[0]);
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
div_1.children[0].appendChild(this.listViewInstance.virtualCheckBox);
|
|
829
|
+
}
|
|
830
|
+
while (args.item.lastChild) {
|
|
831
|
+
args.item.removeChild(args.item.lastChild);
|
|
832
|
+
}
|
|
833
|
+
[].slice.call(div_1.children).forEach(function (ele) {
|
|
834
|
+
args.item.appendChild(ele);
|
|
835
|
+
});
|
|
913
836
|
}
|
|
914
837
|
}
|
|
915
|
-
[].slice.call(element.children).forEach(function (ele) {
|
|
916
|
-
if (!ele.classList.contains('e-listview-checkbox') && !(ele.classList.contains('e-checkbox-left') || ele.classList.contains('e-checkbox-right'))) {
|
|
917
|
-
ele.remove();
|
|
918
|
-
}
|
|
919
|
-
});
|
|
920
|
-
[].slice.call(currentElement.children).forEach(function (ele) {
|
|
921
|
-
element.appendChild(ele);
|
|
922
|
-
});
|
|
923
|
-
});
|
|
924
|
-
};
|
|
925
|
-
this.updateContextData(item, subNode, isHeader);
|
|
926
|
-
};
|
|
927
|
-
Virtualization.prototype.onChange = function (newData, listElement) {
|
|
928
|
-
listElement.context.data = newData;
|
|
929
|
-
// eslint-disable-next-line max-len
|
|
930
|
-
var groupTemplateNodes = listElement.context.nodes.groupTemplateNodes;
|
|
931
|
-
// eslint-disable-next-line max-len
|
|
932
|
-
var flatTemplateNodes = listElement.context.nodes.flatTemplateNodes;
|
|
933
|
-
// eslint-disable-next-line
|
|
934
|
-
if (!isNullOrUndefined(newData.isHeader) && newData.isHeader && listElement.context.type === 'groupList') {
|
|
935
|
-
// eslint-disable-next-line
|
|
936
|
-
var element = listElement.firstElementChild;
|
|
937
|
-
detach(listElement.firstElementChild);
|
|
938
|
-
listElement.insertBefore(listElement.context.template, null);
|
|
939
|
-
listElement.context.template = element;
|
|
940
|
-
listElement.context.type = 'flatList';
|
|
941
|
-
for (var i = 0; i < groupTemplateNodes.length; i++) {
|
|
942
|
-
// eslint-disable-next-line
|
|
943
|
-
groupTemplateNodes[i].onChange(newData);
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
else if (!newData.isHeader && listElement.context.type === 'flatList') {
|
|
947
|
-
var element = listElement.firstElementChild;
|
|
948
|
-
detach(listElement.firstElementChild);
|
|
949
|
-
listElement.insertBefore(listElement.context.template, null);
|
|
950
|
-
listElement.context.template = element;
|
|
951
|
-
listElement.context.type = 'groupList';
|
|
952
|
-
for (var i = 0; i < flatTemplateNodes.length; i++) {
|
|
953
|
-
// eslint-disable-next-line
|
|
954
|
-
flatTemplateNodes[i].onChange(newData);
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
else if (!newData.isHeader) {
|
|
958
|
-
for (var i = 0; i < flatTemplateNodes.length; i++) {
|
|
959
|
-
// eslint-disable-next-line
|
|
960
|
-
flatTemplateNodes[i].onChange(newData);
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
else {
|
|
964
|
-
for (var i = 0; i < groupTemplateNodes.length; i++) {
|
|
965
|
-
// eslint-disable-next-line
|
|
966
|
-
groupTemplateNodes[i].onChange(newData);
|
|
967
838
|
}
|
|
968
839
|
}
|
|
969
840
|
};
|
|
970
|
-
// eslint-disable-next-line
|
|
971
|
-
Virtualization.prototype.updateContextData = function (listElement, node, isHeader) {
|
|
972
|
-
if (isHeader) {
|
|
973
|
-
listElement.context.nodes.groupTemplateNodes.push(node);
|
|
974
|
-
}
|
|
975
|
-
else {
|
|
976
|
-
listElement.context.nodes.flatTemplateNodes.push(node);
|
|
977
|
-
}
|
|
978
|
-
};
|
|
979
841
|
Virtualization.prototype.reRenderUiVirtualization = function () {
|
|
980
842
|
this.wireScrollEvent(true);
|
|
981
843
|
if (this.listViewInstance.contentContainer) {
|
|
@@ -989,8 +851,7 @@ var Virtualization = /** @class */ (function () {
|
|
|
989
851
|
this.listViewInstance.setLocalData();
|
|
990
852
|
};
|
|
991
853
|
Virtualization.prototype.updateUI = function (element, index, targetElement) {
|
|
992
|
-
|
|
993
|
-
var onChange = this.isNgTemplate() ? this.onNgChange : (this.isVueFunctionTemplate()) ? this.onVueChange : this.onChange;
|
|
854
|
+
var onChange = this.isNgTemplate() ? this.onNgChange : this.onChange;
|
|
994
855
|
if (this.listViewInstance.template || this.listViewInstance.groupTemplate) {
|
|
995
856
|
var curViewDS = this.listViewInstance.curViewDS[index];
|
|
996
857
|
// eslint-disable-next-line
|
|
@@ -1014,18 +875,22 @@ var Virtualization = /** @class */ (function () {
|
|
|
1014
875
|
* @param {ElementContext} listElement - The HTML element context for the list view.
|
|
1015
876
|
* @param {Virtualization} virtualThis - The virtualization context for the list view.
|
|
1016
877
|
*/
|
|
1017
|
-
Virtualization.prototype.
|
|
878
|
+
Virtualization.prototype.onChange = function (newData, listElement, virtualThis) {
|
|
1018
879
|
var liItem = ListBase.createListItemFromJson(virtualThis.listViewInstance.createElement,
|
|
1019
880
|
// eslint-disable-next-line
|
|
1020
881
|
[newData], virtualThis.listViewInstance.listBaseOption, null, null, virtualThis.listViewInstance);
|
|
882
|
+
if (virtualThis.listViewInstance.isReact) {
|
|
883
|
+
virtualThis.listViewInstance.renderReactTemplates();
|
|
884
|
+
}
|
|
1021
885
|
while (listElement.lastChild) {
|
|
1022
886
|
listElement.removeChild(listElement.lastChild);
|
|
1023
887
|
}
|
|
1024
|
-
|
|
888
|
+
[].slice.call(liItem[0].children).forEach(function (ele) {
|
|
889
|
+
listElement.appendChild(ele);
|
|
890
|
+
});
|
|
1025
891
|
};
|
|
1026
892
|
Virtualization.prototype.onNgChange = function (newData, listElement, virtualThis) {
|
|
1027
893
|
// compile given target element with template for new data
|
|
1028
|
-
// eslint-disable-next-line
|
|
1029
894
|
var templateCompiler = compile(virtualThis.listViewInstance.template);
|
|
1030
895
|
var resultElement = templateCompiler(newData);
|
|
1031
896
|
while (listElement.lastChild) {
|
package/styles/bootstrap4.css
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.e-bigger .e-listview:not(.e-list-template) .e-list-item,
|
|
23
23
|
.e-listview.e-bigger:not(.e-list-template) .e-list-item {
|
|
24
24
|
height: 50px;
|
|
25
|
-
line-height: 1.
|
|
25
|
+
line-height: 1.6;
|
|
26
26
|
position: relative;
|
|
27
27
|
padding: 12px 20px;
|
|
28
28
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
.e-listview:not(.e-list-template) .e-list-item {
|
|
108
108
|
height: 40px;
|
|
109
|
-
line-height: 1.
|
|
109
|
+
line-height: 1.6;
|
|
110
110
|
padding: 8px 16px 8px 16px;
|
|
111
111
|
position: relative;
|
|
112
112
|
}
|
package/styles/bootstrap5.css
CHANGED
|
@@ -11,7 +11,7 @@ $listview-background: $content-bg !default;
|
|
|
11
11
|
$listview-line-color: rgba($black, .13) !default;
|
|
12
12
|
$listview-item-hover-bg: darken($gray-100, 5%) !default;
|
|
13
13
|
$listview-item-height: 40px !default;
|
|
14
|
-
$listview-item-line-height: 1.
|
|
14
|
+
$listview-item-line-height: 1.6 !default;
|
|
15
15
|
$listview-item-padding: 8px 16px 8px 16px !default;
|
|
16
16
|
|
|
17
17
|
$listview-root-border-color: rgba($black, .13);
|
|
@@ -62,7 +62,7 @@ $listview-back-padding-right: 10px !default;
|
|
|
62
62
|
$listview-back-icon-height: 0 !default;
|
|
63
63
|
$listview-back-icon-font-size: 14px !default;
|
|
64
64
|
$listview-touch-item-height: 50px !default;
|
|
65
|
-
$listview-touch-item-line-height: 1.
|
|
65
|
+
$listview-touch-item-line-height: 1.6 !default;
|
|
66
66
|
$listview-touch-item-font-size: 16px !default;
|
|
67
67
|
$listview-touch-groupheader-height: 50px !default;
|
|
68
68
|
$listview-touch-groupheader-line-height: 1.5 !default;
|
|
@@ -29,7 +29,7 @@ $listview-font-size: $text-sm !default;
|
|
|
29
29
|
$listview-back-padding-right: 8px !default;
|
|
30
30
|
$listview-back-icon-size: 20px !default;
|
|
31
31
|
$listview-touch-item-height: 40px !default;
|
|
32
|
-
$listview-touch-item-line-height:
|
|
32
|
+
$listview-touch-item-line-height: 24px !default;
|
|
33
33
|
$listview-touch-item-size: 24px !default;
|
|
34
34
|
$listview-touch-item-padding: 16px 14px 12px 16px !default;
|
|
35
35
|
$listview-rtl-touch-item-padding: 12px 16px 12px 14px !default;
|
|
@@ -60,7 +60,7 @@ $listview-back-padding-right: 30px !default;
|
|
|
60
60
|
$listview-back-icon-height: 1px !default;
|
|
61
61
|
$listview-back-icon-font-size: auto !default;
|
|
62
62
|
$listview-touch-item-height: 48px !default;
|
|
63
|
-
$listview-touch-item-line-height:
|
|
63
|
+
$listview-touch-item-line-height: 42px !default;
|
|
64
64
|
$listview-touch-item-font-size: 15px !default;
|
|
65
65
|
$listview-touch-groupheader-height: 48px !default;
|
|
66
66
|
$listview-touch-groupheader-line-height: 45px !default;
|
|
@@ -4,7 +4,7 @@ $listview-icon-back-margin: 0 !default;
|
|
|
4
4
|
$listview-icon-back-margin-right: 14px !default;
|
|
5
5
|
$listview-rtl-icon-back-margin: 0 !default;
|
|
6
6
|
$listview-item-height: 40px !default;
|
|
7
|
-
$listview-item-line-height:
|
|
7
|
+
$listview-item-line-height: 22px !default;
|
|
8
8
|
$listview-item-padding: 10px 16px !default;
|
|
9
9
|
$listview-rtl-item-padding: 7px 12px 7px 12px !default;
|
|
10
10
|
$listview-header-padding: 6px 12px !default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//layout
|
|
2
2
|
$listview-icon-margin-right: 2px !default;
|
|
3
3
|
$listview-item-height: 38px !default;
|
|
4
|
-
$listview-item-line-height:
|
|
4
|
+
$listview-item-line-height: 21px !default;
|
|
5
5
|
$listview-item-padding: 8px 9px 8px 12px !default;
|
|
6
6
|
$listview-rtl-item-padding: 8px 12px 8px 9px !default;
|
|
7
7
|
$listview-header-padding: 6px 12px !default;
|
|
@@ -30,7 +30,7 @@ $listview-back-padding-right: 8px !default;
|
|
|
30
30
|
$listview-back-icon-size: 20px !default;
|
|
31
31
|
$listview-back-icon-font-size: $text-base !default;
|
|
32
32
|
$listview-touch-item-height: 48px !default;
|
|
33
|
-
$listview-touch-item-line-height:
|
|
33
|
+
$listview-touch-item-line-height: 23px !default;
|
|
34
34
|
$listview-touch-item-size: 24px !default;
|
|
35
35
|
$listview-touch-item-padding: 12px 14px 12px 16px !default;
|
|
36
36
|
$listview-rtl-touch-item-padding: 12px 16px 12px 14px !default;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.e-bigger .e-listview:not(.e-list-template) .e-list-item,
|
|
23
23
|
.e-listview.e-bigger:not(.e-list-template) .e-list-item {
|
|
24
24
|
height: 50px;
|
|
25
|
-
line-height: 1.
|
|
25
|
+
line-height: 1.6;
|
|
26
26
|
position: relative;
|
|
27
27
|
padding: 12px 20px;
|
|
28
28
|
}
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
.e-listview:not(.e-list-template) .e-list-item {
|
|
108
108
|
height: 40px;
|
|
109
|
-
line-height: 1.
|
|
109
|
+
line-height: 1.6;
|
|
110
110
|
padding: 8px 16px 8px 16px;
|
|
111
111
|
position: relative;
|
|
112
112
|
}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.e-bigger .e-listview:not(.e-list-template) .e-list-item,
|
|
23
23
|
.e-listview.e-bigger:not(.e-list-template) .e-list-item {
|
|
24
24
|
height: 48px;
|
|
25
|
-
line-height:
|
|
25
|
+
line-height: 23px;
|
|
26
26
|
position: relative;
|
|
27
27
|
padding: 12px 14px 12px 16px;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
font-weight: 500;
|
|
51
51
|
height: 38px;
|
|
52
52
|
font-size: 14px;
|
|
53
|
-
line-height:
|
|
53
|
+
line-height: 21px;
|
|
54
54
|
padding: 8px 16px;
|
|
55
55
|
}
|
|
56
56
|
.e-bigger .e-listview .e-list-header .e-text.header,
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
}
|
|
182
182
|
.e-listview:not(.e-list-template) .e-list-item {
|
|
183
183
|
height: 38px;
|
|
184
|
-
line-height:
|
|
184
|
+
line-height: 21px;
|
|
185
185
|
padding: 8px 9px 8px 12px;
|
|
186
186
|
position: relative;
|
|
187
187
|
}
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
text-overflow: ellipsis;
|
|
532
532
|
white-space: nowrap;
|
|
533
533
|
font-size: 14px;
|
|
534
|
-
line-height:
|
|
534
|
+
line-height: 21px;
|
|
535
535
|
}
|
|
536
536
|
.e-listview.e-list-template .e-list-item.e-hover .e-list-item-header {
|
|
537
537
|
color: #fff;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.e-bigger .e-listview:not(.e-list-template) .e-list-item,
|
|
23
23
|
.e-listview.e-bigger:not(.e-list-template) .e-list-item {
|
|
24
24
|
height: 48px;
|
|
25
|
-
line-height:
|
|
25
|
+
line-height: 23px;
|
|
26
26
|
position: relative;
|
|
27
27
|
padding: 12px 14px 12px 16px;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
font-weight: 500;
|
|
51
51
|
height: 38px;
|
|
52
52
|
font-size: 14px;
|
|
53
|
-
line-height:
|
|
53
|
+
line-height: 21px;
|
|
54
54
|
padding: 8px 16px;
|
|
55
55
|
}
|
|
56
56
|
.e-bigger .e-listview .e-list-header .e-text.header,
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
}
|
|
182
182
|
.e-listview:not(.e-list-template) .e-list-item {
|
|
183
183
|
height: 38px;
|
|
184
|
-
line-height:
|
|
184
|
+
line-height: 21px;
|
|
185
185
|
padding: 8px 9px 8px 12px;
|
|
186
186
|
position: relative;
|
|
187
187
|
}
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
text-overflow: ellipsis;
|
|
532
532
|
white-space: nowrap;
|
|
533
533
|
font-size: 14px;
|
|
534
|
-
line-height:
|
|
534
|
+
line-height: 21px;
|
|
535
535
|
}
|
|
536
536
|
.e-listview.e-list-template .e-list-item.e-hover .e-list-item-header {
|
|
537
537
|
color: #111827;
|
package/styles/material.css
CHANGED
package/styles/material3.css
CHANGED
package/styles/tailwind-dark.css
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
.e-bigger .e-listview:not(.e-list-template) .e-list-item,
|
|
23
23
|
.e-listview.e-bigger:not(.e-list-template) .e-list-item {
|
|
24
24
|
height: 48px;
|
|
25
|
-
line-height:
|
|
25
|
+
line-height: 23px;
|
|
26
26
|
position: relative;
|
|
27
27
|
padding: 12px 14px 12px 16px;
|
|
28
28
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
font-weight: 500;
|
|
51
51
|
height: 38px;
|
|
52
52
|
font-size: 14px;
|
|
53
|
-
line-height:
|
|
53
|
+
line-height: 21px;
|
|
54
54
|
padding: 8px 16px;
|
|
55
55
|
}
|
|
56
56
|
.e-bigger .e-listview .e-list-header .e-text.header,
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
}
|
|
182
182
|
.e-listview:not(.e-list-template) .e-list-item {
|
|
183
183
|
height: 38px;
|
|
184
|
-
line-height:
|
|
184
|
+
line-height: 21px;
|
|
185
185
|
padding: 8px 9px 8px 12px;
|
|
186
186
|
position: relative;
|
|
187
187
|
}
|
|
@@ -531,7 +531,7 @@
|
|
|
531
531
|
text-overflow: ellipsis;
|
|
532
532
|
white-space: nowrap;
|
|
533
533
|
font-size: 14px;
|
|
534
|
-
line-height:
|
|
534
|
+
line-height: 21px;
|
|
535
535
|
}
|
|
536
536
|
.e-listview.e-list-template .e-list-item.e-hover .e-list-item-header {
|
|
537
537
|
color: #fff;
|