efront 3.12.5 → 3.13.3
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/apps/pivot/api.yml +8 -0
- package/apps/pivot/home/welcome.html +1 -1
- package/apps/pivot/home/welcome.js +6 -9
- package/apps/pivot/log/boot.html +2 -0
- package/apps/pivot/log/boot.js +39 -0
- package/apps/pivot/log/boot.less +11 -0
- package/apps/pivot/log/count.html +5 -0
- package/apps/pivot/log/count.js +22 -0
- package/apps/pivot/log/count.less +16 -0
- package/apps/pivot/main.js +9 -10
- package/apps/pivot/menu.yml +7 -1
- package/apps/pivot/share/list.less +0 -4
- package/apps/pivot/user/edit.js +1 -0
- package/apps/pivot/user/list.js +4 -0
- package/apps/pivot/user/tag/edit.js +1 -0
- package/apps/pivot/user/tag/list.js +3 -0
- package/coms/basic/cross_.js +8 -1
- package/coms/basic/parseURL_test.js +2 -0
- package/coms/basic/parseYML.js +1 -1
- package/coms/basic/renderExpress.js +1 -1
- package/coms/frame/route.js +4 -0
- package/coms/pivot/plist.js +1 -1
- package/coms/zimoli/AudioContext_test.html +1 -1
- package/coms/zimoli/AudioContext_test.js +3 -3
- package/coms/zimoli/bind.js +4 -2
- package/coms/zimoli/cloneVisible.js +9 -2
- package/coms/zimoli/data.js +18 -2
- package/coms/zimoli/drag.js +3 -2
- package/coms/zimoli/field.html +15 -10
- package/coms/zimoli/menu.js +33 -13
- package/coms/zimoli/menu.less +31 -9
- package/coms/zimoli/menuItem.js +1 -1
- package/coms/zimoli/menuList.html +5 -3
- package/coms/zimoli/menuList.js +63 -28
- package/coms/zimoli/menuList.less +5 -0
- package/coms/zimoli/model.js +22 -2
- package/coms/zimoli/on.js +5 -3
- package/coms/zimoli/picture.js +30 -335
- package/coms/zimoli/picture_.js +356 -0
- package/coms/zimoli/prompt.js +3 -1
- package/coms/zimoli/render.js +22 -10
- package/coms/zimoli/renderDefaults.js +1 -0
- package/coms/zimoli/search.js +5 -4
- package/coms/zimoli/select.js +9 -5
- package/coms/zimoli/selectList.js +12 -9
- package/coms/zimoli/selectListEdit.js +1 -1
- package/coms/zimoli/success.js +4 -0
- package/coms/zimoli/success.less +13 -0
- package/coms/zimoli/table.html +6 -8
- package/coms/zimoli/table.js +25 -2
- package/coms/zimoli/table.less +24 -4
- package/coms/zimoli/view.less +4 -0
- package/package.json +1 -1
- package/public/efront.js +1 -1
package/coms/zimoli/table.js
CHANGED
|
@@ -169,8 +169,12 @@ function table(elem) {
|
|
|
169
169
|
move: resizeTarget,
|
|
170
170
|
});
|
|
171
171
|
onmousemove(tableElement, function (event) {
|
|
172
|
-
if (!thead)
|
|
172
|
+
if (!thead) {
|
|
173
|
+
[thead] = table.getElementsByTagName("thead");
|
|
174
|
+
if (!thead) thead = table.querySelector('[thead]');
|
|
175
|
+
}
|
|
173
176
|
if (!getTargetIn(thead, event.target)) return;
|
|
177
|
+
|
|
174
178
|
var tds = getTargetIn(cellMatchManager, event.target);
|
|
175
179
|
if (!isArray(tds)) tds = [];
|
|
176
180
|
tds.map(function (td) {
|
|
@@ -193,7 +197,10 @@ function table(elem) {
|
|
|
193
197
|
var table = tableElement;
|
|
194
198
|
var thead;
|
|
195
199
|
var cellMatchManager = function (element) {
|
|
196
|
-
if (!thead)
|
|
200
|
+
if (!thead) {
|
|
201
|
+
[thead] = table.getElementsByTagName("thead");
|
|
202
|
+
if (!thead) thead = table.querySelector('[thead]');
|
|
203
|
+
}
|
|
197
204
|
if (table.resizing) return false;
|
|
198
205
|
if (!getTargetIn(thead, element)) return false;
|
|
199
206
|
if (!tdElementReg.test(element.tagName)) return false;
|
|
@@ -214,8 +221,24 @@ function table(elem) {
|
|
|
214
221
|
render(this, {
|
|
215
222
|
fields,
|
|
216
223
|
tbody: list,
|
|
224
|
+
innerHeight: {
|
|
225
|
+
valueOf() {
|
|
226
|
+
return innerHeight - getScreenPosition(table).top;
|
|
227
|
+
}
|
|
228
|
+
},
|
|
217
229
|
data,
|
|
230
|
+
adapter: null,
|
|
218
231
|
model,
|
|
232
|
+
sort(f) {
|
|
233
|
+
f.sign = f.sign > 0 ? -1 : 1;
|
|
234
|
+
data.sort(function (a, b) {
|
|
235
|
+
a = seek(a, f.key);
|
|
236
|
+
b = seek(b, f.key);
|
|
237
|
+
if (a > b) return f.sign;
|
|
238
|
+
if (a < b) return -f.sign;
|
|
239
|
+
return 0;
|
|
240
|
+
});
|
|
241
|
+
},
|
|
219
242
|
setWidth(target, f) {
|
|
220
243
|
css(target, { width: f.width });
|
|
221
244
|
},
|
package/coms/zimoli/table.less
CHANGED
|
@@ -75,9 +75,11 @@ table,
|
|
|
75
75
|
line-height: 32px;
|
|
76
76
|
height: 100%;
|
|
77
77
|
min-height: 30px;
|
|
78
|
+
border-top: 4px solid #6669;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
78
82
|
user-select: auto;
|
|
79
|
-
display: table-row-group;
|
|
80
|
-
overflow: auto;
|
|
81
83
|
|
|
82
84
|
>tr {
|
|
83
85
|
|
|
@@ -85,9 +87,10 @@ table,
|
|
|
85
87
|
>th {
|
|
86
88
|
padding: @cell-padding;
|
|
87
89
|
position: relative;
|
|
90
|
+
overflow: hidden;
|
|
88
91
|
}
|
|
89
92
|
|
|
90
|
-
&:nth-of-type(
|
|
93
|
+
&:nth-of-type(odd) {
|
|
91
94
|
|
|
92
95
|
>td,
|
|
93
96
|
>th {
|
|
@@ -95,7 +98,7 @@ table,
|
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
|
|
98
|
-
&:nth-of-type(
|
|
101
|
+
&:nth-of-type(even) {
|
|
99
102
|
|
|
100
103
|
>td,
|
|
101
104
|
>th {
|
|
@@ -111,6 +114,23 @@ table,
|
|
|
111
114
|
}
|
|
112
115
|
}
|
|
113
116
|
}
|
|
117
|
+
|
|
118
|
+
>tr[insert] {
|
|
119
|
+
position: sticky;
|
|
120
|
+
top: 0;
|
|
121
|
+
z-index: 1;
|
|
122
|
+
|
|
123
|
+
>td {
|
|
124
|
+
background: #6669;
|
|
125
|
+
backdrop-filter: blur(20px);
|
|
126
|
+
z-index: 1;
|
|
127
|
+
color: #fff;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
[thead] {
|
|
133
|
+
user-select: none;
|
|
114
134
|
}
|
|
115
135
|
|
|
116
136
|
.button {
|
package/coms/zimoli/view.less
CHANGED