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.
Files changed (54) hide show
  1. package/apps/pivot/api.yml +8 -0
  2. package/apps/pivot/home/welcome.html +1 -1
  3. package/apps/pivot/home/welcome.js +6 -9
  4. package/apps/pivot/log/boot.html +2 -0
  5. package/apps/pivot/log/boot.js +39 -0
  6. package/apps/pivot/log/boot.less +11 -0
  7. package/apps/pivot/log/count.html +5 -0
  8. package/apps/pivot/log/count.js +22 -0
  9. package/apps/pivot/log/count.less +16 -0
  10. package/apps/pivot/main.js +9 -10
  11. package/apps/pivot/menu.yml +7 -1
  12. package/apps/pivot/share/list.less +0 -4
  13. package/apps/pivot/user/edit.js +1 -0
  14. package/apps/pivot/user/list.js +4 -0
  15. package/apps/pivot/user/tag/edit.js +1 -0
  16. package/apps/pivot/user/tag/list.js +3 -0
  17. package/coms/basic/cross_.js +8 -1
  18. package/coms/basic/parseURL_test.js +2 -0
  19. package/coms/basic/parseYML.js +1 -1
  20. package/coms/basic/renderExpress.js +1 -1
  21. package/coms/frame/route.js +4 -0
  22. package/coms/pivot/plist.js +1 -1
  23. package/coms/zimoli/AudioContext_test.html +1 -1
  24. package/coms/zimoli/AudioContext_test.js +3 -3
  25. package/coms/zimoli/bind.js +4 -2
  26. package/coms/zimoli/cloneVisible.js +9 -2
  27. package/coms/zimoli/data.js +18 -2
  28. package/coms/zimoli/drag.js +3 -2
  29. package/coms/zimoli/field.html +15 -10
  30. package/coms/zimoli/menu.js +33 -13
  31. package/coms/zimoli/menu.less +31 -9
  32. package/coms/zimoli/menuItem.js +1 -1
  33. package/coms/zimoli/menuList.html +5 -3
  34. package/coms/zimoli/menuList.js +63 -28
  35. package/coms/zimoli/menuList.less +5 -0
  36. package/coms/zimoli/model.js +22 -2
  37. package/coms/zimoli/on.js +5 -3
  38. package/coms/zimoli/picture.js +30 -335
  39. package/coms/zimoli/picture_.js +356 -0
  40. package/coms/zimoli/prompt.js +3 -1
  41. package/coms/zimoli/render.js +22 -10
  42. package/coms/zimoli/renderDefaults.js +1 -0
  43. package/coms/zimoli/search.js +5 -4
  44. package/coms/zimoli/select.js +9 -5
  45. package/coms/zimoli/selectList.js +12 -9
  46. package/coms/zimoli/selectListEdit.js +1 -1
  47. package/coms/zimoli/success.js +4 -0
  48. package/coms/zimoli/success.less +13 -0
  49. package/coms/zimoli/table.html +6 -8
  50. package/coms/zimoli/table.js +25 -2
  51. package/coms/zimoli/table.less +24 -4
  52. package/coms/zimoli/view.less +4 -0
  53. package/package.json +1 -1
  54. package/public/efront.js +1 -1
@@ -169,8 +169,12 @@ function table(elem) {
169
169
  move: resizeTarget,
170
170
  });
171
171
  onmousemove(tableElement, function (event) {
172
- if (!thead) [thead] = table.getElementsByTagName("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) [thead] = table.getElementsByTagName("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
  },
@@ -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(even) {
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(odd) {
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 {
@@ -127,4 +127,8 @@ body>& {
127
127
  padding: 0 20px;
128
128
  margin-left: 10px;
129
129
  }
130
+
131
+ a.button {
132
+ padding: 0;
133
+ }
130
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "3.12.5",
3
+ "version": "3.13.3",
4
4
  "description": "一个开发工具,开放源代码,自带组件库和编译环境,可以用来开发web组件,web应用或nodejs模块,或做为已有代码的加密工具,也可以做为静态页面服务器或跨域中转服务器使用",
5
5
  "main": "public/efront.js",
6
6
  "directories": {