efront 4.14.0 → 4.14.2

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.
@@ -7,59 +7,31 @@ else {
7
7
  var Window = function () {
8
8
  };
9
9
  var window = new Window;
10
- Object.assign(window, {
11
- Date,
12
- Promise,
13
- Function,
14
- RegExp,
15
- Object,
16
- String,
17
- Array,
18
- Number,
19
- Boolean,
20
- Error,
21
- TypeError,
22
- Uint8Array,
23
- Uint16Array,
24
- Uint32Array,
25
- Uint8ClampedArray,
26
- ArrayBuffer,
27
- Int8Array,
28
- Int16Array,
29
- Int32Array,
30
- Float32Array,
31
- Float64Array,
32
- Map,
33
- Set,
34
- Proxy,
35
- WeakMap,
36
- Reflect,
37
- console,
38
- Math,
39
- JSON,
40
- NaN,
41
- Infinity,
42
- isNaN,
43
- isFinite,
44
- parseInt,
45
- parseFloat,
46
- decodeURI,
47
- encodeURI,
48
- decodeURIComponent,
49
- encodeURIComponent,
50
- document: global1.document,
51
- navigator: global1.navigator,
52
- process: global1.process,
53
- BigInt64Array: global1.BigInt64Array,
54
- Buffer: global1.Buffer,
55
- Intl: global1.Intl,
56
- BigInt: global1.BigInt,
57
- Symbol: global1.Symbol,
58
- SharedArrayBuffer: global1.SharedArrayBuffer,
59
- escape: global1.escape,
60
- unescape: global1.unescape,
10
+ [
11
+ 'Date', 'Promise', 'Function',
12
+ 'RegExp', 'Object', 'String',
13
+ 'Array', 'Number', 'Boolean',
14
+ 'Error', 'TypeError', 'Uint8Array',
15
+ 'Uint16Array', 'Uint32Array', 'Uint8ClampedArray',
16
+ 'ArrayBuffer', 'Int8Array', 'Int16Array',
17
+ 'Int32Array', 'Float32Array', 'Float64Array',
18
+ 'Map', 'Set', 'Proxy',
19
+ 'WeakMap', 'Reflect', 'console',
20
+ 'Math', 'JSON', 'NaN',
21
+ 'Infinity', 'isNaN', 'isFinite',
22
+ 'parseInt', 'parseFloat', 'decodeURI',
23
+ 'encodeURI', 'decodeURIComponent', 'encodeURIComponent',
24
+ 'document', 'navigator', 'process',
25
+ 'BigInt64Array', 'Buffer', 'Intl',
26
+ 'BigInt', 'Symbol', 'SharedArrayBuffer',
27
+ 'escape', 'unescape', 'clearImmediate',
28
+ 'setImmediate', 'clearInterval', 'clearTimeout',
29
+ 'setInterval', 'setTimeout', 'queueMicrotask',
30
+ 'structuredClone', 'atob', 'btoa',
31
+ 'performance', 'fetch', 'crypto'
32
+ ].forEach(k => {
33
+ if (k in global1) window[k] = global1[k];
61
34
  });
62
35
  window.globalThis = window.global = window.top = window.window = window;
63
- extendIfNeeded(window, global1);
64
36
  module.exports = window;
65
37
  }
@@ -169,6 +169,11 @@ var popup_with_mask = function (element, mask) {
169
169
  var isypop = function (target) {
170
170
  if (!target) return false;
171
171
  var { offsetParent, nextSibling, previousSibling } = target;
172
+ if (
173
+ target.offsetWidth >= (innerWidth >> 1) &&
174
+ target.offsetHeight < (innerHeight >> 1) ||
175
+ offsetParent.offsetWidth >= (innerWidth >> 1) &&
176
+ offsetParent.offsetHeight < (innerHeight >> 1)) return true;
172
177
  if (
173
178
  nextSibling
174
179
  && (
@@ -183,7 +188,6 @@ var isypop = function (target) {
183
188
  ) return true;
184
189
  var padding = offsetParent ? parseFloat(getComputedStyle(offsetParent).paddingTop) + parseFloat(getComputedStyle(offsetParent).paddingBottom) : 0;
185
190
  if (offsetParent && target.offsetTop / target.offsetHeight < .2 && (offsetParent.clientWidth - padding) / target.offsetWidth > 1.5) return true;
186
-
187
191
  };
188
192
  var isxpop = arriswise(isypop, arguments);
189
193
  var popup_as_extra = function (element, target, style) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "efront",
3
- "version": "4.14.0",
3
+ "version": "4.14.2",
4
4
  "description": "简化前端开发,优化web性能",
5
5
  "main": "public/efront.js",
6
6
  "directories": {