efront 4.36.6 → 4.37.0

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 (37) hide show
  1. package/#/345/233/275/351/231/205/345/214/226.yml +9 -0
  2. package/apps/pivot/db/config.xht +1 -0
  3. package/apps/pivot/main.js +1 -0
  4. package/apps/pivot/todo/edit.xht +0 -1
  5. package/apps/pivot/todo/list.xht +12 -8
  6. package/coms/basic/#loader.js +0 -1
  7. package/coms/basic/SAFE_CIRCLE_DEPTH.js +1 -0
  8. package/coms/basic/cross_.js +6 -4
  9. package/coms/basic/encode62.js +3 -3
  10. package/coms/basic/math.md +1 -1
  11. package/coms/basic/randomUUID.js +17 -0
  12. package/coms/basic/verifyUUID.js +18 -0
  13. package/coms/basic_/&power.js +1 -1
  14. package/coms/basic_/JSON.js +4 -3
  15. package/coms/basic_/JSON_test.js +19 -11
  16. package/coms/compile/Javascript.js +16 -12
  17. package/coms/compile/auto-const.js +55 -16
  18. package/coms/compile/autoprop.js +274 -0
  19. package/coms/compile/common.js +81 -8
  20. package/coms/compile/const_test.js +2 -1
  21. package/coms/compile/downLevel.js +2 -2
  22. package/coms/compile/getMaped.js +25 -21
  23. package/coms/compile/namelist.js +4 -0
  24. package/coms/compile/scanner.js +21 -13
  25. package/coms/compile/scanner_test.js +11 -10
  26. package/coms/compile/translate.js +1 -1
  27. package/coms/crypt/encode62.js +3 -3
  28. package/coms/pivot/DB.js +9 -0
  29. package/coms/pivot/todo.xht +2 -1
  30. package/coms/reptile/cross.js +8 -1
  31. package/coms/zimoli/popup.js +8 -1
  32. package/coms/zimoli/scrollbar.js +5 -2
  33. package/coms/zimoli/scrollbar.less +26 -2
  34. package/coms/zimoli/table.less +3 -0
  35. package/package.json +1 -1
  36. package/public/efront.js +1 -1
  37. package/public//346/226/207/344/273/266/347/263/273/347/273/237//344/270/273/351/241/265.jsp +2 -2
@@ -31,13 +31,14 @@
31
31
  }
32
32
 
33
33
  & {
34
- padding: 4px 12px 4px 0px;
34
+ padding: 4px 6px 4px 6px;
35
35
  display: block;
36
36
  color: #ccc;
37
37
  border: 1px solid;
38
38
  border-left: 6px solid;
39
39
  position: relative;
40
40
  background: #fff;
41
+ text-align: justify;
41
42
  margin: 0 0 10px 0;
42
43
  }
43
44
 
@@ -62,8 +62,15 @@ var cross = cross_.bind(function (callback, onerror) {
62
62
  var data = [];
63
63
  xhr.status = res.statusCode;
64
64
  xhr.responseHeaders = res.headers;
65
+ var totalSize = 0;
65
66
  res.on("data", function (chunk) {
66
- xhr.readyState = 4;
67
+ xhr.readyState = 3;
68
+ totalSize += chunk.length;
69
+ if (totalSize > 2 * 1024 * 1024) {
70
+ onerror1(new Error(i18n`数据过大`));
71
+ res.destroy();
72
+ return;
73
+ }
67
74
  data.push(chunk);
68
75
  });
69
76
  res.on("end", function () {
@@ -152,8 +152,15 @@ var popup_view = function (element, target, style) {
152
152
  }
153
153
  return element;
154
154
  };
155
+ var csstext = `position:absolute;position:fixed;left:0;right:0;bottom:0;top:0;width:auto;height:auto;transform:scale(1);display:block;`;
156
+ if (document.documentElement.style.backdropFilter !== undefined) {
157
+ csstext += 'backdrop-filter:blur(26px);';
158
+ }
159
+ else {
160
+ csstext += 'background:#000;opacity:0.6;';
161
+ }
162
+ css(".mask", csstext);
155
163
 
156
- css(".mask", `position:absolute;position:fixed;left:0;right:0;bottom:0;top:0;width:auto;height:auto;background:#000;opacity:0.2;transform:scale(1);display:block`);
157
164
  var createMask = function (element) {
158
165
  var masks = element.with;
159
166
  if (masks) for (var cx = 0, dx = masks.length; cx < dx; cx++) {
@@ -223,12 +223,15 @@ var scrollbary = function () {
223
223
  _scrollbar.scrollTo = scrollTo;
224
224
  var _handler = document.createElement("scrollbar-thumb");
225
225
  _handler.className = "thumb";
226
+ var sidebar = document.createElement('scroll-side');
226
227
  _scrollbar.$Top = getTop;
227
228
  _scrollbar.autohide = lazy(function () {
228
229
  this.thumb.style.opacity = 0;
229
230
  }, 600);
230
231
  _scrollbar.autoshow = function () {
231
- this.autohide();
232
+ if (!_scrollbar.nohide &&! _scrollbar.hasAttribute('nohide')) {
233
+ this.autohide();
234
+ }
232
235
  this.thumb.style.opacity = 1;
233
236
  };
234
237
 
@@ -239,7 +242,7 @@ var scrollbary = function () {
239
242
  });
240
243
  onremove(_scrollbar, cancelscroll);
241
244
  onmousedown(_scrollbar, scrollerMousedown);
242
- appendChild(_scrollbar, _handler);
245
+ appendChild(_scrollbar, _handler, sidebar);
243
246
  _scrollbar.thumb = _handler;
244
247
  _scrollbar.bindTarget = bindTarget;
245
248
  return _scrollbar;
@@ -1,3 +1,16 @@
1
+ >scroll-side {
2
+ position: absolute;
3
+ display: block;
4
+ left: 0;
5
+ top: 0;
6
+ bottom: -1px;
7
+ right: -1px;
8
+ pointer-events: none;
9
+ width: auto;
10
+ height: auto;
11
+ outline-offset: 2px;
12
+ }
13
+
1
14
  & {
2
15
  position: absolute;
3
16
  border-radius: 7px;
@@ -15,7 +28,7 @@
15
28
  border-left: 3px solid transparent;
16
29
  top: 0;
17
30
  height: 100px;
18
- width: 6px;
31
+ width: 10px;
19
32
  right: 0;
20
33
  }
21
34
 
@@ -44,6 +57,17 @@
44
57
  border-radius: 7px;
45
58
  height: 100%;
46
59
  width: 100%;
47
- background-color: #29c9;
60
+ background-color: #09c;
61
+
62
+ &:active {
63
+ background-color: #058;
64
+ }
65
+
66
+ &:hover,
67
+ &:active {
68
+ +scroll-side {
69
+ outline: 1px solid #000;
70
+ }
71
+ }
48
72
  }
49
73
  }
@@ -280,6 +280,9 @@ scrollbar[x] {
280
280
  >.thumb {
281
281
  border-radius: 0 0 3px 3px;
282
282
  background-color: #29c3;
283
+ &:active{
284
+ background-color: #09c5;
285
+ }
283
286
  }
284
287
 
285
288
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.36.6",
3
+ "version": "4.37.0",
4
4
  "description": "一个开发环境,提供一种自由的前端开发模式,也可作为辅助工具使用。",
5
5
  "main": "public/efront.js",
6
6
  "directories": {