@vxe-ui/core 1.0.12 → 4.0.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 (77) hide show
  1. package/LICENSE +21 -21
  2. package/README.en.md +31 -31
  3. package/README.md +31 -31
  4. package/README.zh-TW.md +31 -31
  5. package/es/src/core.js +1 -1
  6. package/es/src/log.js +1 -1
  7. package/es/src/permission.js +36 -14
  8. package/lib/index.umd.js +59 -34
  9. package/lib/index.umd.min.js +1 -1
  10. package/lib/src/clipboard.min.js +1 -1
  11. package/lib/src/commands.min.js +1 -1
  12. package/lib/src/core.js +1 -1
  13. package/lib/src/core.min.js +1 -1
  14. package/lib/src/event.min.js +1 -1
  15. package/lib/src/formats.min.js +1 -1
  16. package/lib/src/globalStore.min.js +1 -1
  17. package/lib/src/hooks.min.js +1 -1
  18. package/lib/src/i18n.min.js +1 -1
  19. package/lib/src/i18nStore.min.js +1 -1
  20. package/lib/src/iconStore.min.js +1 -1
  21. package/lib/src/interceptor.min.js +1 -1
  22. package/lib/src/log.js +1 -1
  23. package/lib/src/log.min.js +1 -1
  24. package/lib/src/menus.min.js +1 -1
  25. package/lib/src/permission.js +37 -15
  26. package/lib/src/permission.min.js +1 -1
  27. package/lib/src/renderer.min.js +1 -1
  28. package/lib/src/resize.min.js +1 -1
  29. package/lib/src/store.min.js +1 -1
  30. package/lib/src/themeStore.min.js +1 -1
  31. package/lib/src/useFns.min.js +1 -1
  32. package/lib/src/validators.min.js +1 -1
  33. package/package.json +78 -78
  34. package/packages/index.ts +4 -4
  35. package/packages/src/clipboard.ts +53 -53
  36. package/packages/src/commands.ts +62 -62
  37. package/packages/src/core.ts +167 -167
  38. package/packages/src/event.ts +113 -113
  39. package/packages/src/formats.ts +62 -62
  40. package/packages/src/globalStore.ts +8 -8
  41. package/packages/src/hooks.ts +5 -5
  42. package/packages/src/i18n.ts +19 -19
  43. package/packages/src/i18nStore.ts +11 -11
  44. package/packages/src/iconStore.ts +3 -3
  45. package/packages/src/interceptor.ts +65 -65
  46. package/packages/src/log.ts +19 -19
  47. package/packages/src/menus.ts +62 -62
  48. package/packages/src/permission.ts +61 -39
  49. package/packages/src/renderer.ts +50 -50
  50. package/packages/src/resize.ts +89 -89
  51. package/packages/src/store.ts +49 -49
  52. package/packages/src/themeStore.ts +7 -7
  53. package/packages/src/useFns.ts +34 -34
  54. package/packages/src/validators.ts +9 -9
  55. package/types/core/clipboard.d.ts +13 -13
  56. package/types/core/commands.d.ts +19 -19
  57. package/types/core/components.d.ts +4 -4
  58. package/types/core/formats.d.ts +19 -19
  59. package/types/core/global-config.d.ts +55 -55
  60. package/types/core/global-event.d.ts +39 -39
  61. package/types/core/global-icon.d.ts +6 -6
  62. package/types/core/global-lang.d.ts +1 -1
  63. package/types/core/global-resize.d.ts +3 -3
  64. package/types/core/global-theme.d.ts +1 -1
  65. package/types/core/hooks.d.ts +14 -14
  66. package/types/core/index.d.ts +224 -224
  67. package/types/core/interceptor.d.ts +22 -22
  68. package/types/core/log.d.ts +8 -8
  69. package/types/core/menus.d.ts +19 -19
  70. package/types/core/permission.d.ts +10 -10
  71. package/types/core/renderer.d.ts +14 -14
  72. package/types/core/useFn.d.ts +27 -27
  73. package/types/core/validators.d.ts +19 -19
  74. package/types/index.d.ts +10 -10
  75. package/types/tool/common.d.ts +99 -99
  76. package/types/tool/index.d.ts +2 -2
  77. package/types/tool/util.d.ts +4 -4
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2019 xuliangzhan
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2019 xuliangzhan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.en.md CHANGED
@@ -1,31 +1,31 @@
1
- # vxe-core
2
-
3
- [简体中文](README.md) | [繁體中文](README.zh-TW.md) | English
4
-
5
- Vxe UI core library.
6
-
7
- ## Install
8
-
9
- ```shell
10
- npm install @vxe-ui/core
11
- ```
12
-
13
- ```javascript
14
- // ...
15
- import VxeCore from '@vxe-ui/core'
16
- // ...
17
-
18
- VxeCore.setConfig({
19
- // ...
20
- })
21
- ```
22
-
23
- ## Contributors
24
-
25
- Thank you to everyone who contributed to this project.
26
-
27
- [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
-
29
- ## License
30
-
31
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-core
2
+
3
+ [简体中文](README.md) | [繁體中文](README.zh-TW.md) | English
4
+
5
+ Vxe UI core library.
6
+
7
+ ## Install
8
+
9
+ ```shell
10
+ npm install @vxe-ui/core
11
+ ```
12
+
13
+ ```javascript
14
+ // ...
15
+ import VxeCore from '@vxe-ui/core'
16
+ // ...
17
+
18
+ VxeCore.setConfig({
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Contributors
24
+
25
+ Thank you to everyone who contributed to this project.
26
+
27
+ [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
+
29
+ ## License
30
+
31
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
package/README.md CHANGED
@@ -1,31 +1,31 @@
1
- # vxe-core
2
-
3
- 简体中文 | [繁體中文](README.zh-TW.md) | [English](README.en.md)
4
-
5
- Vxe UI 核心库.
6
-
7
- ## 使用
8
-
9
- ```shell
10
- npm install @vxe-ui/core
11
- ```
12
-
13
- ```javascript
14
- // ...
15
- import VxeCore from '@vxe-ui/core'
16
- // ...
17
-
18
- VxeCore.setConfig({
19
- // ...
20
- })
21
- ```
22
-
23
- ## Contributors
24
-
25
- Thank you to everyone who contributed to this project.
26
-
27
- [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
-
29
- ## License
30
-
31
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-core
2
+
3
+ 简体中文 | [繁體中文](README.zh-TW.md) | [English](README.en.md)
4
+
5
+ Vxe UI 核心库.
6
+
7
+ ## 使用
8
+
9
+ ```shell
10
+ npm install @vxe-ui/core
11
+ ```
12
+
13
+ ```javascript
14
+ // ...
15
+ import VxeCore from '@vxe-ui/core'
16
+ // ...
17
+
18
+ VxeCore.setConfig({
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Contributors
24
+
25
+ Thank you to everyone who contributed to this project.
26
+
27
+ [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
+
29
+ ## License
30
+
31
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
package/README.zh-TW.md CHANGED
@@ -1,31 +1,31 @@
1
- # vxe-core
2
-
3
- [简体中文](README.md) | 繁體中文 | [English](README.en.md)
4
-
5
- Vxe UI core library.
6
-
7
- ## 使用
8
-
9
- ```shell
10
- npm install @vxe-ui/core
11
- ```
12
-
13
- ```javascript
14
- // ...
15
- import VxeCore from '@vxe-ui/core'
16
- // ...
17
-
18
- VxeCore.setConfig({
19
- // ...
20
- })
21
- ```
22
-
23
- ## Contributors
24
-
25
- Thank you to everyone who contributed to this project.
26
-
27
- [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
-
29
- ## License
30
-
31
- [MIT](LICENSE) © 2019-present, Xu Liangzhan
1
+ # vxe-core
2
+
3
+ [简体中文](README.md) | 繁體中文 | [English](README.en.md)
4
+
5
+ Vxe UI core library.
6
+
7
+ ## 使用
8
+
9
+ ```shell
10
+ npm install @vxe-ui/core
11
+ ```
12
+
13
+ ```javascript
14
+ // ...
15
+ import VxeCore from '@vxe-ui/core'
16
+ // ...
17
+
18
+ VxeCore.setConfig({
19
+ // ...
20
+ })
21
+ ```
22
+
23
+ ## Contributors
24
+
25
+ Thank you to everyone who contributed to this project.
26
+
27
+ [![vxe-core](https://contrib.rocks/image?repo=x-extends/vxe-core)](https://github.com/x-extends/vxe-core/graphs/contributors)
28
+
29
+ ## License
30
+
31
+ [MIT](LICENSE) © 2019-present, Xu Liangzhan
package/es/src/core.js CHANGED
@@ -70,7 +70,7 @@ export function setIcon(options) {
70
70
  export function getIcon(key) {
71
71
  return arguments.length ? XEUtils.get(iconConfigStore, key) : iconConfigStore;
72
72
  }
73
- export const coreVersion = "1.0.12";
73
+ export const coreVersion = "4.0.0";
74
74
  const installedPlugins = [];
75
75
  export function use(Plugin, options) {
76
76
  if (Plugin && Plugin.install) {
package/es/src/log.js CHANGED
@@ -6,7 +6,7 @@ function createLog(type, name) {
6
6
  return msg;
7
7
  };
8
8
  }
9
- const version = "1.0.12";
9
+ const version = "4.0.0";
10
10
  export const log = {
11
11
  create: createLog,
12
12
  warn: createLog('warn', `v${version}`),
@@ -1,23 +1,45 @@
1
1
  import { globalConfigStore } from './globalStore';
2
2
  import XEUtils from 'xe-utils';
3
- export function handleCheckInfo(code, permissionMethod) {
4
- let visible = true;
5
- let disabled = false;
3
+ export function handleCheckInfo(permissionCode, permissionMethod) {
4
+ let checkVisible = true;
5
+ let checkDisabled = false;
6
6
  const checkMethod = permissionMethod || globalConfigStore.permissionMethod;
7
- if (code && checkMethod) {
8
- const rest = checkMethod({ code });
9
- if (XEUtils.isBoolean(rest)) {
10
- visible = rest;
11
- }
12
- else if (rest) {
13
- visible = !!rest.visible;
14
- disabled = !!rest.disabled;
7
+ if (permissionCode && checkMethod) {
8
+ checkVisible = false;
9
+ checkDisabled = true;
10
+ let vDone = false;
11
+ let dDone = false;
12
+ // 使用 | 隔开:任意一个为可视,则可视;任意一个禁用,则禁用
13
+ const codeList = String(permissionCode).split('|');
14
+ for (let i = 0; i < codeList.length; i++) {
15
+ const code = codeList[i];
16
+ let visible = true;
17
+ let disabled = false;
18
+ const rest = checkMethod({ code });
19
+ if (XEUtils.isBoolean(rest)) {
20
+ visible = rest;
21
+ }
22
+ else if (rest) {
23
+ visible = !!rest.visible;
24
+ disabled = !!rest.disabled;
25
+ }
26
+ if (!disabled && !dDone) {
27
+ dDone = true;
28
+ checkDisabled = disabled;
29
+ }
30
+ if (visible && !vDone) {
31
+ vDone = true;
32
+ checkVisible = visible;
33
+ }
34
+ if (vDone && dDone) {
35
+ break;
36
+ }
15
37
  }
16
38
  }
17
39
  const info = {
18
- code,
19
- visible,
20
- disabled
40
+ code: permissionCode,
41
+ visible: checkVisible,
42
+ disabled: checkDisabled
21
43
  };
22
44
  return info;
23
45
  }
package/lib/index.umd.js CHANGED
@@ -1662,6 +1662,8 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1662
1662
  /******/
1663
1663
  /************************************************************************/
1664
1664
  var __webpack_exports__ = {};
1665
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
1666
+ !function() {
1665
1667
  // ESM COMPAT FLAG
1666
1668
  __webpack_require__.r(__webpack_exports__);
1667
1669
 
@@ -2019,9 +2021,9 @@ if (browse.isDoc) {
2019
2021
 
2020
2022
 
2021
2023
 
2022
- /**
2023
- * 监听 resize 事件
2024
- * 如果项目中已使用了 resize-observer-polyfill,那么只需要将方法定义全局,该组件就会自动使用
2024
+ /**
2025
+ * 监听 resize 事件
2026
+ * 如果项目中已使用了 resize-observer-polyfill,那么只需要将方法定义全局,该组件就会自动使用
2025
2027
  */
2026
2028
  let resizeTimeout;
2027
2029
  /* eslint-disable no-use-before-define */
@@ -2127,7 +2129,7 @@ function createLog(type, name) {
2127
2129
  return msg;
2128
2130
  };
2129
2131
  }
2130
- const version = "1.0.12";
2132
+ const version = "4.0.0";
2131
2133
  const log = {
2132
2134
  create: createLog,
2133
2135
  warn: createLog('warn', `v${version}`),
@@ -2136,12 +2138,12 @@ const log = {
2136
2138
  ;// CONCATENATED MODULE: ./packages/src/renderer.ts
2137
2139
 
2138
2140
 
2139
- /**
2140
- * 内置的组件渲染
2141
+ /**
2142
+ * 内置的组件渲染
2141
2143
  */
2142
2144
  const renderMap = {};
2143
- /**
2144
- * 全局渲染器
2145
+ /**
2146
+ * 全局渲染器
2145
2147
  */
2146
2148
  const renderer = {
2147
2149
  mixin(opts) {
@@ -2183,8 +2185,8 @@ const renderer = {
2183
2185
 
2184
2186
 
2185
2187
 
2186
- /**
2187
- * 创建数据仓库
2188
+ /**
2189
+ * 创建数据仓库
2188
2190
  */
2189
2191
  class Store {
2190
2192
  constructor() {
@@ -2488,10 +2490,10 @@ const clipboard = {
2488
2490
  setStore(data) {
2489
2491
  Object.assign(clipStore, data || {});
2490
2492
  },
2491
- /**
2492
- * 复制内容到剪贴板
2493
- *
2494
- * @param {String} content Text 内容
2493
+ /**
2494
+ * 复制内容到剪贴板
2495
+ *
2496
+ * @param {String} content Text 内容
2495
2497
  */
2496
2498
  copy(content) {
2497
2499
  let result = false;
@@ -2511,25 +2513,47 @@ const clipboard = {
2511
2513
  ;// CONCATENATED MODULE: ./packages/src/permission.ts
2512
2514
 
2513
2515
 
2514
- function handleCheckInfo(code, permissionMethod) {
2515
- let visible = true;
2516
- let disabled = false;
2516
+ function handleCheckInfo(permissionCode, permissionMethod) {
2517
+ let checkVisible = true;
2518
+ let checkDisabled = false;
2517
2519
  const checkMethod = permissionMethod || globalConfigStore.permissionMethod;
2518
- if (code && checkMethod) {
2519
- const rest = checkMethod({
2520
- code
2521
- });
2522
- if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(rest)) {
2523
- visible = rest;
2524
- } else if (rest) {
2525
- visible = !!rest.visible;
2526
- disabled = !!rest.disabled;
2520
+ if (permissionCode && checkMethod) {
2521
+ checkVisible = false;
2522
+ checkDisabled = true;
2523
+ let vDone = false;
2524
+ let dDone = false;
2525
+ // 使用 | 隔开:任意一个为可视,则可视;任意一个禁用,则禁用
2526
+ const codeList = String(permissionCode).split('|');
2527
+ for (let i = 0; i < codeList.length; i++) {
2528
+ const code = codeList[i];
2529
+ let visible = true;
2530
+ let disabled = false;
2531
+ const rest = checkMethod({
2532
+ code
2533
+ });
2534
+ if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(rest)) {
2535
+ visible = rest;
2536
+ } else if (rest) {
2537
+ visible = !!rest.visible;
2538
+ disabled = !!rest.disabled;
2539
+ }
2540
+ if (!disabled && !dDone) {
2541
+ dDone = true;
2542
+ checkDisabled = disabled;
2543
+ }
2544
+ if (visible && !vDone) {
2545
+ vDone = true;
2546
+ checkVisible = visible;
2547
+ }
2548
+ if (vDone && dDone) {
2549
+ break;
2550
+ }
2527
2551
  }
2528
2552
  }
2529
2553
  const info = {
2530
- code,
2531
- visible,
2532
- disabled
2554
+ code: permissionCode,
2555
+ visible: checkVisible,
2556
+ disabled: checkDisabled
2533
2557
  };
2534
2558
  return info;
2535
2559
  }
@@ -2619,8 +2643,8 @@ function setI18n(locale, data) {
2619
2643
  i18nConfigStore.langMaps[locale] = Object.assign({}, data);
2620
2644
  return VxeUI;
2621
2645
  }
2622
- /**
2623
- * 全局参数设置
2646
+ /**
2647
+ * 全局参数设置
2624
2648
  */
2625
2649
  function setConfig(options) {
2626
2650
  if (options) {
@@ -2634,8 +2658,8 @@ function setConfig(options) {
2634
2658
  }
2635
2659
  return VxeUI;
2636
2660
  }
2637
- /**
2638
- * 获取全局参数
2661
+ /**
2662
+ * 获取全局参数
2639
2663
  */
2640
2664
  function getConfig(key, defaultValue) {
2641
2665
  return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(globalConfigStore, key, defaultValue) : globalConfigStore;
@@ -2649,7 +2673,7 @@ function setIcon(options) {
2649
2673
  function getIcon(key) {
2650
2674
  return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconConfigStore, key) : iconConfigStore;
2651
2675
  }
2652
- const coreVersion = "1.0.12";
2676
+ const coreVersion = "4.0.0";
2653
2677
  const installedPlugins = [];
2654
2678
  function use(Plugin, options) {
2655
2679
  if (Plugin && Plugin.install) {
@@ -2727,6 +2751,7 @@ setTheme();
2727
2751
  /* harmony default export */ var entry_lib = (packages_0);
2728
2752
 
2729
2753
 
2754
+ }();
2730
2755
  /******/ return __webpack_exports__;
2731
2756
  /******/ })()
2732
2757
  ;
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("xe-utils")):"function"==typeof define&&define.amd?define([,"xe-utils"],e):"object"==typeof exports?exports.VxeCore=e(require("vue"),require("xe-utils")):t.VxeCore=e(t.Vue,t.XEUtils)}("undefined"!=typeof self?self:this,function(gt,mt){{var bt={9274:function(t){t.exports=gt},8871:function(t){t.exports=mt},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){function r(c){return function(t,e,n){var r=a(t),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&e!=e){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===e)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,u=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=n?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4576:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},7740:function(t,e,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);t.exports=function(t,e,n){for(var r=s(e),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(t,c)||n&&a(n,c)||o(t,c,i(e,c))}}},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6840:function(t,e,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);t.exports=function(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(u(n)&&a(n,i,r),r.global)o?t[e]=n:s(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:c.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}},9433:function(t,e,n){var r=n(4475),o=Object.defineProperty;t.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},3724:function(t,e,n){n=n(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4475),n=n(34),o=r.document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},6837:function(t){var e=TypeError;t.exports=function(t){if(9007199254740991<t)throw e("Maximum allowed index exceeded");return t}},9392:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,e,n){var r,o,i=n(4475),n=n(9392),u=i.process,i=i.Deno,u=u&&u.versions||i&&i.version,i=u&&u.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(t,e,n){var s=n(4475),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),v=n(2796);t.exports=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!v(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(t.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},616:function(t,e,n){n=n(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var n=n(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){var r=n(3724),n=n(9297),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),u=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);t.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},9504:function(t,e,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4475),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){t=t[e];return o(t)?void 0:r(t)}},4475:function(t,e,n){function r(t){return t&&t.Math===Math&&t}t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(4576),u=Object,c=r("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,e,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),t.exports=n.inspectSource},1181:function(t,e,n){var r,o,i,u,c=n(8622),a=n(4475),s=n(34),f=n(6699),l=n(9297),p=n(7629),d=n(6119),n=n(421),h="Object already initialized",v=a.TypeError,a=a.WeakMap,g=c||p.state?((i=p.state||(p.state=new a)).get=i.get,i.has=i.has,i.set=i.set,r=function(t,e){if(i.has(t))throw new v(h);return e.facade=t,i.set(t,e),e},o=function(t){return i.get(t)||{}},function(t){return i.has(t)}):(n[u=d("state")]=!0,r=function(t,e){if(l(t,u))throw new v(h);return e.facade=t,f(t,u,e),e},o=function(t){return l(t,u)?t[u]:{}},function(t){return l(t,u)});t.exports={set:r,get:o,has:g,enforce:function(t){return g(t)?o(t):r(t,{})},getterFor:function(e){return function(t){if(s(t)&&(t=o(t)).type===e)return t;throw new v("Incompatible receiver, "+e+" required")}}}},4376:function(t,e,n){var r=n(4576);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){function r(t,e){return(t=a[c(t)])===f||t!==s&&(i(e)?o(e):!!e)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(t){return String(t).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";t.exports=r},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),u=n(9297),c=n(3724),a=n(350).CONFIGURABLE,s=n(3706),n=n(1181),f=n.enforce,l=n.get,p=String,d=Object.defineProperty,h=r("".slice),v=r("".replace),g=r([].join),m=c&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),n=t.exports=function(t,e,n){"Symbol("===h(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!u(t,"name")||a&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&u(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}n=f(t);return u(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0<t?n:e)(t)}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),u=n(8551),c=n(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){var r;return u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]&&(r=f(t,e))&&r[d]&&(t[e]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),u=n(6980),c=n(5397),a=n(6969),s=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},1625:function(t,e,n){n=n(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);t.exports=function(t,e){var n,r=c(t),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;e.length>o;)!u(r,n=e[o++])||~a(i,n)||f(i,n);return i}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){t=r(this,t);return!!t&&t.enumerable}:n},4270:function(t,e,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw new c("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4475),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(7388),o=n(9039),i=n(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){t=r(t);return t<0?o(t+e,0):i(t,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){t=+t;return t!=t||0==t?0:r(t)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){t=r(t);return 0<t?o(t,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),u=n(5966),c=n(4270),n=n(8227),a=TypeError,s=n("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n=u(t,s);if(n){if(n=r(n,t,e=void 0===e?"default":e),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(t,e=void 0===e?"number":e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){t=r(t,"string");return o(t)?t:t+""}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var n=n(9504),r=0,o=Math.random(),i=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}},7040:function(t,e,n){n=n(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){var r=n(3724),n=n(9039);t.exports=r&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(t,e,n){var r=n(4475),n=n(4901),r=r.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8227:function(t,e,n){var r=n(4475),o=n(5745),i=n(9297),u=n(3392),c=n(4495),n=n(7040),a=r.Symbol,s=o("wks"),f=n?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(a,t)?a[t]:f("Symbol."+t)),s[t]}},4114:function(t,e,n){var r=n(6518),i=n(8981),u=n(6198),c=n(4527),a=n(6837);r({target:"Array",proto:!0,arity:1,forced:n(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=u(e),r=arguments.length;a(n+r);for(var o=0;o<r;o++)e[n]=arguments[o],n++;return c(e,n),n}})}},_={};function k(t){var e=_[t];return void 0!==e||(e=_[t]={exports:{}},bt[t].call(e.exports,e,e.exports,k)),e.exports}k.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return k.d(e,{a:e}),e},k.d=function(t,e){for(var n in e)k.o(e,n)&&!k.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},k.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),k.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},k.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},k.p="";var z={},F=(k.r(z),k.d(z,{GLOBAL_EVENT_KEYS:function(){return t},VxeUI:function(){return R},clipboard:function(){return P},commands:function(){return w},component:function(){return Ct},coreVersion:function(){return L},createEvent:function(){return a},default:function(){return Tt},formats:function(){return x},getComponent:function(){return Pt},getConfig:function(){return Et},getI18n:function(){return ot},getIcon:function(){return St},getLanguage:function(){return ut},getTheme:function(){return pt},globalEvents:function(){return s},globalResize:function(){return d},handleCheckInfo:function(){return at},hasLanguage:function(){return it},hooks:function(){return T},interceptor:function(){return O},log:function(){return h},menus:function(){return y},permission:function(){return C},renderer:function(){return g},setConfig:function(){return vt},setI18n:function(){return ht},setIcon:function(){return Ot},setLanguage:function(){return dt},setTheme:function(){return lt},use:function(){return jt},useFns:function(){return M},usePermission:function(){return ft},useSize:function(){return st},validators:function(){return b}}),"undefined"!=typeof window&&(F=(F=window.document.currentScript)&&F.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(k.p=F[1]),k(4114),k(8871)),N=k.n(F),D=null,W="z-index-manage",V={m:1e3,s:1e3};function B(){return"undefined"!=typeof document}function U(){return D||!B()||(D=document.getElementById(W))||((D=document.createElement("div")).id=W,D.style.display="none",document.body.appendChild(D),G(V.m),H(V.s)),D}function $(n){return function(t){var e;return t&&(t=Number(t),V[n]=t,e=U())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),V[n]}}var G=$("m");function q(r,o){return function(t){var e=U(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||V[r];return t?Number(t)<n?o():t:n}}var X=q("m",K);function K(){return G(X()+1)}var H=$("s"),Y=q("s",J);function Z(){return X()+Y()}function J(){return H(Y()+1),Z()}var yt={setCurrent:G,getCurrent:X,getNext:K,setSubCurrent:H,getSubCurrent:Z,getSubNext:J,getMax:function(){var t=0;if(B())for(var e=document.body.getElementsByTagName("*"),n=0;n<e.length;n++){var r=e[n];r&&r.style&&1===r.nodeType&&(r=r.style.zIndex)&&/^\d+$/.test(r)&&(t=Math.max(t,Number(r)))}return t}};let o={size:"",version:1,zIndex:999,resizeInterval:500},e={},n={theme:""};var Q=k(9274);let i=(0,Q.reactive)({language:"",langMaps:{}});function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function xt(t){t=function(t,e){if("object"!=tt(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=tt(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==tt(t)?t:t+""}function et(t,e,n){(e=xt(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}let t={F2:"F2",ESCAPE:"Escape",ENTER:"Enter",TAB:"Tab",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},r=(F=N().browse(),{" ":"Spacebar",Apps:t.CONTEXT_MENU,Del:t.DELETE,Up:t.ARROW_UP,Down:t.ARROW_DOWN,Left:t.ARROW_LEFT,Right:t.ARROW_RIGHT}),u=F.firefox?"DOMMouseScroll":"mousewheel",c=[];function nt(n){let r=n.type===u;c.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class Mt{constructor(t,e,n){et(this,"$event",void 0),this.$event=t,Object.assign(this,e,n)}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}let a=(t,e,n)=>new Mt(t,e,n),s={on(t,e,n){c.push({comp:t,type:e,cb:n})},off(e,n){N().remove(c,t=>t.comp===e&&t.type===n)},hasKey(t,e){t=t.key;return e=e.toLowerCase(),!(!t||e!==t.toLowerCase()&&(!r[t]||r[t].toLowerCase()!==e))}};F.isDoc&&(F.msie||(window.addEventListener("copy",nt,!1),window.addEventListener("cut",nt,!1),window.addEventListener("paste",nt,!1)),document.addEventListener("keydown",nt,!1),document.addEventListener("contextmenu",nt,!1),window.addEventListener("mousedown",nt,!1),window.addEventListener("blur",nt,!1),window.addEventListener("resize",nt,!1),window.addEventListener(u,N().throttle(nt,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let f,l=[],p=500;function wt(){l.length&&(l.forEach(i=>{i.tarList.forEach(t=>{var{target:e,width:n,heighe:r}=t,o=e.clientWidth,e=e.clientHeight;(o&&n!==o||e&&r!==e)&&(t.width=o,t.heighe=e,setTimeout(i.callback))})}),rt())}function rt(){clearTimeout(f),f=setTimeout(wt,o.resizeInterval||p)}class Lt{constructor(t){et(this,"tarList",[]),et(this,"callback",void 0),this.callback=t}observe(e){var t;e&&(t=this["tarList"],t.some(t=>t.target===e)||t.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),l.length||rt(),l.some(t=>t===this)||l.push(this))}unobserve(e){N().remove(l,t=>t.tarList.some(t=>t.target===e))}disconnect(){N().remove(l,t=>t===this)}}let d={create(t){return new(window.ResizeObserver||Lt)(t)}};function ot(t,e){var{langMaps:n,language:r}=i;return N().toFormatString(N().get(n[r],t,t),e)}function it(t){var e=i["langMaps"];return!!e[t]}function ut(){var t=i["language"];return t}function ct(n,r){return function(t,e){t=`[vxe ${r||""}] `+ot(t,e);return console[n](t),t}}let h={create:ct,warn:ct("warn","v1.0.12"),err:ct("error","v1.0.12")},v={},g={mixin(t){return N().each(t,(t,e)=>g.add(e,t)),g},get(t){return v[t]||null},add(r,t){if(r&&t){let n=v[r];n?(N().each(t,(t,e)=>{N().eqNull(n[e])||n[e]===t||h.warn("vxe.error.coverProp",["Renderer."+r,e])}),Object.assign(n,t)):v[r]=t}return g},forEach(t){return N().objectEach(v,t),g},delete(t){return delete v[t],g}},m=class{constructor(){et(this,"store",{})}mixin(t){return N().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];{let n=N().keys(e);N().each(t,(t,e)=>{n.includes(e)&&h.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?N().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){N().objectEach(this.store,t)}},b=new m,y=(Object.assign(b,{_name:"Validators"}),new class{constructor(){et(this,"store",{})}mixin(t){return N().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];N().isFunction(t)&&(h.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});{let n=N().keys(e);N().each(t,(t,e)=>{n.includes(e)&&h.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?N().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){N().objectEach(this.store,t)}}),x=(Object.assign(y,{_name:"Menus"}),new class{constructor(){et(this,"store",{})}mixin(t){return N().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];N().isFunction(t)&&(h.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});{let n=N().keys(e);N().each(t,(t,e)=>{n.includes(e)&&h.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?N().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){N().objectEach(this.store,t)}}),w=(Object.assign(x,{_name:"Formats"}),new class{constructor(){et(this,"store",{})}mixin(t){return N().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(r,t){var e=this.store[r];N().isFunction(t)&&(h.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});{let n=N().keys(e);N().each(t,(t,e)=>{n.includes(e)&&h.warn("vxe.error.coverProp",[r,e])})}return this.store[r]=e?N().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){N().objectEach(this.store,t)}}),E=(Object.assign(w,{_name:"Commands"}),{}),O={mixin(t){return N().each(t,(t,e)=>{O.add(e,t)}),O},get(t){return E[t]||[]},add(e,n){n=(n=N().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=E[e];-1<(t=t||(E[e]=[])).indexOf(n)&&h.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return O},delete(t,n){var r=E[t];if(r){let e=(n=N().isFunction(n)?{tableInterceptorMethod:n}:n)?n.tableInterceptorMethod:null;e?N().remove(r,t=>t===e):delete E[t]}}},S,j={text:"",html:""},P={getStore(){return j},setStore(t){Object.assign(j,t||{})},copy(t){let e=!1;try{var n=N().toValueString(t);r=n,S||((S=document.createElement("textarea")).id="$VxeCopy",(o=S.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(S)),S.value=r,S.select(),S.setSelectionRange(0,S.value.length),e=document.execCommand("copy"),S.blur(),j.text=n,j.html=""}catch(t){}var r,o;return e}};function at(t,e){let n=!0,r=!1;var e=e||o.permissionMethod,e=(t&&e&&(e=e({code:t}),N().isBoolean(e)?n=e:e&&(n=!!e.visible,r=!!e.disabled)),{code:t,visible:n,disabled:r});return e}let C={getCheckInfo(t){return at(t)},checkVisible(t){return at(t).visible},checkDisable(t){return at(t).disabled}},T=new m;function st(t){let e=(0,Q.inject)("xeSizeInfo",null);var n=(0,Q.computed)(()=>t.size||(e?e.value:null));return(0,Q.provide)("xeSizeInfo",n),{computeSize:n}}function ft(t){return{computePermissionInfo:(0,Q.computed)(()=>at(t.permissionCode,t.permissionMethod))}}let M={useSize:st,usePermission:ft};function lt(t){var e,t=t&&"default"!==t?t:"light";return n.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),R}function pt(){return n.theme}function dt(t){return i.language=t||"zh-CN",R}function ht(t,e){return i.langMaps[t]=Object.assign({},e),R}function vt(t){return t&&(t.zIndex&&yt.setCurrent(t.zIndex),t.theme&&lt(t.theme),N().merge(o,t)),R}function Et(t,e){return arguments.length?N().get(o,t,e):o}function Ot(t){return t&&Object.assign(e,t),R}function St(t){return arguments.length?N().get(e,t):e}let L="1.0.12",I=[];function jt(t,e){return t&&t.install&&-1===I.indexOf(t)&&(t.install(R,e),I.push(t)),R}let A={};function Pt(t){return A[t]||null}function Ct(t){t&&t.name&&(A[t.name]=t)}let R={coreVersion:L,setTheme:lt,getTheme:pt,setConfig:vt,getConfig:Et,setIcon:Ot,getIcon:St,setLanguage:dt,hasLanguage:it,getLanguage:ut,setI18n:ht,getI18n:ot,globalEvents:s,GLOBAL_EVENT_KEYS:t,createEvent:a,globalResize:d,renderer:g,validators:b,menus:y,formats:x,commands:w,interceptor:O,clipboard:P,log:h,permission:C,hooks:T,component:Ct,getComponent:Pt,useFns:M,use:jt};lt();var Tt=R;return z}});
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue"),require("xe-utils")):"function"==typeof define&&define.amd?define([,"xe-utils"],e):"object"==typeof exports?exports.VxeCore=e(require("vue"),require("xe-utils")):t.VxeCore=e(t.Vue,t.XEUtils)}("undefined"!=typeof self?self:this,function(Ct,Tt){return function(){"use strict";var i={9274:function(t){t.exports=Ct},8871:function(t){t.exports=Tt},9306:function(t,e,n){var r=n(4901),o=n(6823),i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not a function")}},8551:function(t,e,n){var r=n(34),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw new i(o(t)+" is not an object")}},9617:function(t,e,n){function r(c){return function(t,e,n){var r=a(t),o=f(r);if(0!==o){var i,u=s(n,o);if(c&&e!=e){for(;u<o;)if((i=r[u++])!=i)return!0}else for(;u<o;u++)if((c||u in r)&&r[u]===e)return c||u||0}return!c&&-1}}var a=n(5397),s=n(5610),f=n(6198);t.exports={includes:r(!0),indexOf:r(!1)}},4527:function(t,e,n){var r=n(3724),o=n(4376),i=TypeError,u=Object.getOwnPropertyDescriptor,n=r&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=n?function(t,e){if(o(t)&&!u(t,"length").writable)throw new i("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},4576:function(t,e,n){var n=n(9504),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},7740:function(t,e,n){var a=n(9297),s=n(5031),f=n(7347),l=n(4913);t.exports=function(t,e,n){for(var r=s(e),o=l.f,i=f.f,u=0;u<r.length;u++){var c=r[u];a(t,c)||n&&a(n,c)||o(t,c,i(e,c))}}},6699:function(t,e,n){var r=n(3724),o=n(4913),i=n(6980);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6840:function(t,e,n){var u=n(4901),c=n(4913),a=n(283),s=n(9433);t.exports=function(t,e,n,r){var o=(r=r||{}).enumerable,i=void 0!==r.name?r.name:e;if(u(n)&&a(n,i,r),r.global)o?t[e]=n:s(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:c.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t}},9433:function(t,e,n){var r=n(4475),o=Object.defineProperty;t.exports=function(e,n){try{o(r,e,{value:n,configurable:!0,writable:!0})}catch(t){r[e]=n}return n}},3724:function(t,e,n){n=n(9039);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055:function(t,e,n){var r=n(4475),n=n(34),o=r.document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},6837:function(t){var e=TypeError;t.exports=function(t){if(9007199254740991<t)throw e("Maximum allowed index exceeded");return t}},9392:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7388:function(t,e,n){var r,o,i=n(4475),n=n(9392),u=i.process,i=i.Deno,u=u&&u.versions||i&&i.version,i=u&&u.v8;!(o=i?0<(r=i.split("."))[0]&&r[0]<4?1:+(r[0]+r[1]):o)&&n&&(!(r=n.match(/Edge\/(\d+)/))||74<=r[1])&&(r=n.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},8727:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},6518:function(t,e,n){var s=n(4475),f=n(7347).f,l=n(6699),p=n(6840),d=n(9433),h=n(7740),v=n(2796);t.exports=function(t,e){var n,r,o,i=t.target,u=t.global,c=t.stat,a=u?s:c?s[i]||d(i,{}):s[i]&&s[i].prototype;if(a)for(n in e){if(r=e[n],o=t.dontCallGetSet?(o=f(a,n))&&o.value:a[n],!v(u?n:i+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof r==typeof o)continue;h(r,o)}(t.sham||o&&o.sham)&&l(r,"sham",!0),p(a,n,r,t)}}},9039:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},616:function(t,e,n){n=n(9039);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},9565:function(t,e,n){var n=n(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},350:function(t,e,n){var r=n(3724),n=n(9297),o=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=n(o,"name"),u=n&&"something"===function(){}.name,r=n&&(!r||i(o,"name").configurable);t.exports={EXISTS:n,PROPER:u,CONFIGURABLE:r}},9504:function(t,e,n){var n=n(616),r=Function.prototype,o=r.call,r=n&&r.bind.bind(o,o);t.exports=n?r:function(t){return function(){return o.apply(t,arguments)}}},7751:function(t,e,n){var r=n(4475),o=n(4901);t.exports=function(t,e){return arguments.length<2?(n=r[t],o(n)?n:void 0):r[t]&&r[t][e];var n}},5966:function(t,e,n){var r=n(9306),o=n(4117);t.exports=function(t,e){t=t[e];return o(t)?void 0:r(t)}},4475:function(t,e,n){function r(t){return t&&t.Math===Math&&t}t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){var r=n(9504),o=n(8981),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},421:function(t){t.exports={}},5917:function(t,e,n){var r=n(3724),o=n(9039),i=n(4055);t.exports=!r&&!o(function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a})},7055:function(t,e,n){var r=n(9504),o=n(9039),i=n(4576),u=Object,c=r("".split);t.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(t){return"String"===i(t)?c(t,""):u(t)}:u},3706:function(t,e,n){var r=n(9504),o=n(4901),n=n(7629),i=r(Function.toString);o(n.inspectSource)||(n.inspectSource=function(t){return i(t)}),t.exports=n.inspectSource},1181:function(t,e,n){var r,o,i,u,c=n(8622),a=n(4475),s=n(34),f=n(6699),l=n(9297),p=n(7629),d=n(6119),n=n(421),h="Object already initialized",v=a.TypeError,a=a.WeakMap,g=c||p.state?((i=p.state||(p.state=new a)).get=i.get,i.has=i.has,i.set=i.set,r=function(t,e){if(i.has(t))throw new v(h);return e.facade=t,i.set(t,e),e},o=function(t){return i.get(t)||{}},function(t){return i.has(t)}):(n[u=d("state")]=!0,r=function(t,e){if(l(t,u))throw new v(h);return e.facade=t,f(t,u,e),e},o=function(t){return l(t,u)?t[u]:{}},function(t){return l(t,u)});t.exports={set:r,get:o,has:g,enforce:function(t){return g(t)?o(t):r(t,{})},getterFor:function(e){return function(t){if(s(t)&&(t=o(t)).type===e)return t;throw new v("Incompatible receiver, "+e+" required")}}}},4376:function(t,e,n){var r=n(4576);t.exports=Array.isArray||function(t){return"Array"===r(t)}},4901:function(t){var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},2796:function(t,e,n){function r(t,e){return(t=a[c(t)])===f||t!==s&&(i(e)?o(e):!!e)}var o=n(9039),i=n(4901),u=/#|\.prototype\./,c=r.normalize=function(t){return String(t).replace(u,".").toLowerCase()},a=r.data={},s=r.NATIVE="N",f=r.POLYFILL="P";t.exports=r},4117:function(t){t.exports=function(t){return null==t}},34:function(t,e,n){var r=n(4901);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},6395:function(t){t.exports=!1},757:function(t,e,n){var r=n(7751),o=n(4901),i=n(1625),n=n(7040),u=Object;t.exports=n?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,u(t))}},6198:function(t,e,n){var r=n(8014);t.exports=function(t){return r(t.length)}},283:function(t,e,n){var r=n(9504),o=n(9039),i=n(4901),u=n(9297),c=n(3724),a=n(350).CONFIGURABLE,s=n(3706),n=n(1181),f=n.enforce,l=n.get,p=String,d=Object.defineProperty,h=r("".slice),v=r("".replace),g=r([].join),m=c&&!o(function(){return 8!==d(function(){},"length",{value:8}).length}),b=String(String).split("String"),n=t.exports=function(t,e,n){"Symbol("===h(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!u(t,"name")||a&&t.name!==e)&&(c?d(t,"name",{value:e,configurable:!0}):t.name=e),m&&n&&u(n,"arity")&&t.length!==n.arity&&d(t,"length",{value:n.arity});try{n&&u(n,"constructor")&&n.constructor?c&&d(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}n=f(t);return u(n,"source")||(n.source=g(b,"string"==typeof e?e:"")),t};Function.prototype.toString=n(function(){return i(this)&&l(this).source||s(this)},"toString")},741:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0<t?n:e)(t)}},4913:function(t,e,n){var r=n(3724),o=n(5917),i=n(8686),u=n(8551),c=n(6969),a=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l="enumerable",p="configurable",d="writable";e.f=r?i?function(t,e,n){var r;return u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&d in n&&!n[d]&&(r=f(t,e))&&r[d]&&(t[e]=n.value,n={configurable:(p in n?n:r)[p],enumerable:(l in n?n:r)[l],writable:!1}),s(t,e,n)}:s:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return s(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new a("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){var r=n(3724),o=n(9565),i=n(8773),u=n(6980),c=n(5397),a=n(6969),s=n(9297),f=n(5917),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=c(t),e=a(e),f)try{return l(t,e)}catch(t){}if(s(t,e))return u(!o(i.f,t,e),t[e])}},8480:function(t,e,n){var r=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},3717:function(t,e){e.f=Object.getOwnPropertySymbols},1625:function(t,e,n){n=n(9504);t.exports=n({}.isPrototypeOf)},1828:function(t,e,n){var r=n(9504),u=n(9297),c=n(5397),a=n(9617).indexOf,s=n(421),f=r([].push);t.exports=function(t,e){var n,r=c(t),o=0,i=[];for(n in r)!u(s,n)&&u(r,n)&&f(i,n);for(;e.length>o;)!u(r,n=e[o++])||~a(i,n)||f(i,n);return i}},8773:function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){t=r(this,t);return!!t&&t.enumerable}:n},4270:function(t,e,n){var o=n(9565),i=n(4901),u=n(34),c=TypeError;t.exports=function(t,e){var n,r;if("string"===e&&i(n=t.toString)&&!u(r=o(n,t)))return r;if(i(n=t.valueOf)&&!u(r=o(n,t)))return r;if("string"!==e&&i(n=t.toString)&&!u(r=o(n,t)))return r;throw new c("Can't convert object to primitive value")}},5031:function(t,e,n){var r=n(7751),o=n(9504),i=n(8480),u=n(3717),c=n(8551),a=o([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(c(t)),n=u.f;return n?a(e,n(t)):e}},7750:function(t,e,n){var r=n(4117),o=TypeError;t.exports=function(t){if(r(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){var r=n(5745),o=n(3392),i=r("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},7629:function(t,e,n){var r=n(6395),o=n(4475),n=n(9433),i="__core-js_shared__",t=t.exports=o[i]||n(i,{});(t.versions||(t.versions=[])).push({version:"3.37.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){var r=n(7629);t.exports=function(t,e){return r[t]||(r[t]=e||{})}},4495:function(t,e,n){var r=n(7388),o=n(9039),i=n(4475).String;t.exports=!!Object.getOwnPropertySymbols&&!o(function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})},5610:function(t,e,n){var r=n(1291),o=Math.max,i=Math.min;t.exports=function(t,e){t=r(t);return t<0?o(t+e,0):i(t,e)}},5397:function(t,e,n){var r=n(7055),o=n(7750);t.exports=function(t){return r(o(t))}},1291:function(t,e,n){var r=n(741);t.exports=function(t){t=+t;return t!=t||0==t?0:r(t)}},8014:function(t,e,n){var r=n(1291),o=Math.min;t.exports=function(t){t=r(t);return 0<t?o(t,9007199254740991):0}},8981:function(t,e,n){var r=n(7750),o=Object;t.exports=function(t){return o(r(t))}},2777:function(t,e,n){var r=n(9565),o=n(34),i=n(757),u=n(5966),c=n(4270),n=n(8227),a=TypeError,s=n("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n=u(t,s);if(n){if(n=r(n,t,e=void 0===e?"default":e),!o(n)||i(n))return n;throw new a("Can't convert object to primitive value")}return c(t,e=void 0===e?"number":e)}},6969:function(t,e,n){var r=n(2777),o=n(757);t.exports=function(t){t=r(t,"string");return o(t)?t:t+""}},6823:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){var n=n(9504),r=0,o=Math.random(),i=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}},7040:function(t,e,n){n=n(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){var r=n(3724),n=n(9039);t.exports=r&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},8622:function(t,e,n){var r=n(4475),n=n(4901),r=r.WeakMap;t.exports=n(r)&&/native code/.test(String(r))},8227:function(t,e,n){var r=n(4475),o=n(5745),i=n(9297),u=n(3392),c=n(4495),n=n(7040),a=r.Symbol,s=o("wks"),f=n?a.for||a:a&&a.withoutSetter||u;t.exports=function(t){return i(s,t)||(s[t]=c&&i(a,t)?a[t]:f("Symbol."+t)),s[t]}},4114:function(t,e,n){var r=n(6518),i=n(8981),u=n(6198),c=n(4527),a=n(6837);r({target:"Array",proto:!0,arity:1,forced:n(9039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=i(this),n=u(e),r=arguments.length;a(n+r);for(var o=0;o<r;o++)e[n]=arguments[o],n++;return c(e,n),n}})}},N={};function r(t){var e=N[t];return void 0!==e||(e=N[t]={exports:{}},i[t].call(e.exports,e,e.exports,r)),e.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.p="";var e={};{r.r(e),r.d(e,{GLOBAL_EVENT_KEYS:function(){return O},VxeUI:function(){return F},clipboard:function(){return xt},commands:function(){return R},component:function(){return lt},coreVersion:function(){return St},createEvent:function(){return vt},default:function(){return pt},formats:function(){return A},getComponent:function(){return ft},getConfig:function(){return ut},getI18n:function(){return v},getIcon:function(){return at},getLanguage:function(){return Q},getTheme:function(){return nt},globalEvents:function(){return gt},globalResize:function(){return yt},handleCheckInfo:function(){return m},hasLanguage:function(){return J},hooks:function(){return Et},interceptor:function(){return k},log:function(){return C},menus:function(){return I},permission:function(){return wt},renderer:function(){return M},setConfig:function(){return it},setI18n:function(){return ot},setIcon:function(){return ct},setLanguage:function(){return rt},setTheme:function(){return b},use:function(){return st},useFns:function(){return Ot},usePermission:function(){return et},useSize:function(){return tt},validators:function(){return L}}),"undefined"!=typeof window&&(n=(n=window.document.currentScript)&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(r.p=n[1]),r(4114);var n=r(8871),f=r.n(n),o=null,D="z-index-manage",u={m:1e3,s:1e3};function W(){return"undefined"!=typeof document}function V(){return o||!W()||(o=document.getElementById(D))||((o=document.createElement("div")).id=D,o.style.display="none",document.body.appendChild(o),c(u.m),s(u.s)),o}function B(n){return function(t){var e;return t&&(t=Number(t),u[n]=t,e=V())&&(e.dataset?e.dataset[n]=t+"":e.setAttribute("data-"+n,t+"")),u[n]}}var c=B("m");function U(r,o){return function(t){var e=V(),n=(n=e&&(e=e.dataset?e.dataset[r]:e.getAttribute("data-"+r))?Number(e):n)||u[r];return t?Number(t)<n?o():t:n}}var a=U("m",$);function $(){return c(a()+1)}var s=B("s"),G=U("s",X);function q(){return a()+G()}function X(){return s(G()+1),q()}var K={setCurrent:c,getCurrent:a,getNext:$,setSubCurrent:s,getSubCurrent:q,getSubNext:X,getMax:function(){var t=0;if(W())for(var e=document.body.getElementsByTagName("*"),n=0;n<e.length;n++){var r=e[n];r&&r.style&&1===r.nodeType&&(r=r.style.zIndex)&&/^\d+$/.test(r)&&(t=Math.max(t,Number(r)))}return t}};const y={size:"",version:1,zIndex:999,resizeInterval:500},x={},w={theme:""};var l=r(9274);const E=(0,l.reactive)({language:"",langMaps:{}});function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t){t=function(t,e){if("object"!=p(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0===n)return("string"===e?String:Number)(t);if("object"!=p(n=n.call(t,e||"default")))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(t,"string");return"symbol"==p(t)?t:t+""}function d(t,e,n){(e=H(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}const O={F2:"F2",ESCAPE:"Escape",ENTER:"Enter",TAB:"Tab",DELETE:"Delete",BACKSPACE:"Backspace",SPACEBAR:" ",CONTEXT_MENU:"ContextMenu",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",R:"R",P:"P",Z:"Z",X:"X",C:"C",V:"V",M:"M"},S=(n=f().browse(),{" ":"Spacebar",Apps:O.CONTEXT_MENU,Del:O.DELETE,Up:O.ARROW_UP,Down:O.ARROW_DOWN,Left:O.ARROW_LEFT,Right:O.ARROW_RIGHT}),dt=n.firefox?"DOMMouseScroll":"mousewheel",j=[];function h(n){const r=n.type===dt;j.forEach(({type:t,cb:e})=>{n.cancelBubble||(t===n.type||r&&"mousewheel"===t)&&e(n)})}class ht{constructor(t,e,n){d(this,"$event",void 0),this.$event=t,Object.assign(this,e,n)}stopPropagation(){var t=this.$event;t&&t.stopPropagation()}preventDefault(){var t=this.$event;t&&t.preventDefault()}}const vt=(t,e,n)=>new ht(t,e,n),gt={on(t,e,n){j.push({comp:t,type:e,cb:n})},off(e,n){f().remove(j,t=>t.comp===e&&t.type===n)},hasKey(t,e){t=t.key;return e=e.toLowerCase(),!(!t||e!==t.toLowerCase()&&(!S[t]||S[t].toLowerCase()!==e))}};n.isDoc&&(n.msie||(window.addEventListener("copy",h,!1),window.addEventListener("cut",h,!1),window.addEventListener("paste",h,!1)),document.addEventListener("keydown",h,!1),document.addEventListener("contextmenu",h,!1),window.addEventListener("mousedown",h,!1),window.addEventListener("blur",h,!1),window.addEventListener("resize",h,!1),window.addEventListener(dt,f().throttle(h,100,{leading:!0,trailing:!1}),{passive:!0,capture:!1}));let t;const P=[],mt=500;function Y(){P.length&&(P.forEach(i=>{i.tarList.forEach(t=>{var{target:e,width:n,heighe:r}=t,o=e.clientWidth,e=e.clientHeight;(o&&n!==o||e&&r!==e)&&(t.width=o,t.heighe=e,setTimeout(i.callback))})}),Z())}function Z(){clearTimeout(t),t=setTimeout(Y,y.resizeInterval||mt)}class bt{constructor(t){d(this,"tarList",[]),d(this,"callback",void 0),this.callback=t}observe(e){var t;e&&(t=this["tarList"],t.some(t=>t.target===e)||t.push({target:e,width:e.clientWidth,heighe:e.clientHeight}),P.length||Z(),P.some(t=>t===this)||P.push(this))}unobserve(e){f().remove(P,t=>t.tarList.some(t=>t.target===e))}disconnect(){f().remove(P,t=>t===this)}}const yt={create(t){return new(window.ResizeObserver||bt)(t)}};function v(t,e){var{langMaps:n,language:r}=E;return f().toFormatString(f().get(n[r],t,t),e)}function J(t){var e=E["langMaps"];return!!e[t]}function Q(){var t=E["language"];return t}function g(n,r){return function(t,e){t=`[vxe ${r||""}] `+v(t,e);return console[n](t),t}}const C={create:g,warn:g("warn","v4.0.0"),err:g("error","v4.0.0")},T={},M={mixin(t){return f().each(t,(t,e)=>M.add(e,t)),M},get(t){return T[t]||null},add(n,t){if(n&&t){const r=T[n];r?(f().each(t,(t,e)=>{f().eqNull(r[e])||r[e]===t||C.warn("vxe.error.coverProp",["Renderer."+n,e])}),Object.assign(r,t)):T[n]=t}return M},forEach(t){return f().objectEach(T,t),M},delete(t){return delete T[t],M}},L=new(n=class{constructor(){d(this,"store",{})}mixin(t){return f().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&C.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),I=(Object.assign(L,{_name:"Validators"}),new class{constructor(){d(this,"store",{})}mixin(t){return f().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];f().isFunction(t)&&(C.warn("vxe.error.delProp",["menus -> callback","menuMethod"]),t={menuMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&C.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),A=(Object.assign(I,{_name:"Menus"}),new class{constructor(){d(this,"store",{})}mixin(t){return f().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];f().isFunction(t)&&(C.warn("vxe.error.delProp",["formats -> callback","cellFormatMethod"]),t={cellFormatMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&C.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),R=(Object.assign(A,{_name:"Formats"}),new class{constructor(){d(this,"store",{})}mixin(t){return f().each(t,(t,e)=>{this.add(e,t)}),this}has(t){return!!this.get(t)}get(t){return this.store[t]}add(n,t){var e=this.store[n];f().isFunction(t)&&(C.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),t={commandMethod:t});{const r=f().keys(e);f().each(t,(t,e)=>{r.includes(e)&&C.warn("vxe.error.coverProp",[n,e])})}return this.store[n]=e?f().merge(e,t):t,this}delete(t){delete this.store[t]}forEach(t){f().objectEach(this.store,t)}}),_=(Object.assign(R,{_name:"Commands"}),{}),k={mixin(t){return f().each(t,(t,e)=>{k.add(e,t)}),k},get(t){return _[t]||[]},add(e,n){n=(n=f().isFunction(n)?{tableInterceptorMethod:n}:n).tableInterceptorMethod;if(n){let t=_[e];-1<(t=t||(_[e]=[])).indexOf(n)&&C.warn("vxe.error.coverProp",["Interceptor",e]),t.push(n)}return k},delete(t,e){var n=_[t];if(n){const r=(e=f().isFunction(e)?{tableInterceptorMethod:e}:e)?e.tableInterceptorMethod:null;r?f().remove(n,t=>t===r):delete _[t]}}};let i;const z={text:"",html:""},xt={getStore(){return z},setStore(t){Object.assign(z,t||{})},copy(t){let e=!1;try{var n=f().toValueString(t);r=n,i||((i=document.createElement("textarea")).id="$VxeCopy",(o=i.style).width="48px",o.height="24px",o.position="fixed",o.zIndex="0",o.left="-500px",o.top="-500px",document.body.appendChild(i)),i.value=r,i.select(),i.setSelectionRange(0,i.value.length),e=document.execCommand("copy"),i.blur(),z.text=n,z.html=""}catch(t){}var r,o;return e}};function m(t,e){let i=!0,u=!1;var c=e||y.permissionMethod;if(t&&c){i=!1;let r=!(u=!0),o=!1;var a=String(t).split("|");for(let n=0;n<a.length;n++){let t=!0,e=!1;var s=c({code:a[n]});if(f().isBoolean(s)?t=s:s&&(t=!!s.visible,e=!!s.disabled),e||o||(o=!0,u=e),t&&!r&&(r=!0,i=t),r&&o)break}}return{code:t,visible:i,disabled:u}}const wt={getCheckInfo(t){return m(t)},checkVisible(t){return m(t).visible},checkDisable(t){return m(t).disabled}},Et=new n;function tt(t){const e=(0,l.inject)("xeSizeInfo",null);var n=(0,l.computed)(()=>t.size||(e?e.value:null));return(0,l.provide)("xeSizeInfo",n),{computeSize:n}}function et(t){return{computePermissionInfo:(0,l.computed)(()=>m(t.permissionCode,t.permissionMethod))}}const Ot={useSize:tt,usePermission:et};function b(t){var e,t=t&&"default"!==t?t:"light";return w.theme=t,"undefined"!=typeof document&&(e=document.documentElement)&&e.setAttribute("data-vxe-ui-theme",t),F}function nt(){return w.theme}function rt(t){return E.language=t||"zh-CN",F}function ot(t,e){return E.langMaps[t]=Object.assign({},e),F}function it(t){return t&&(t.zIndex&&K.setCurrent(t.zIndex),t.theme&&b(t.theme),f().merge(y,t)),F}function ut(t,e){return arguments.length?f().get(y,t,e):y}function ct(t){return t&&Object.assign(x,t),F}function at(t){return arguments.length?f().get(x,t):x}const St="4.0.0",jt=[];function st(t,e){return t&&t.install&&-1===jt.indexOf(t)&&(t.install(F,e),jt.push(t)),F}const Pt={};function ft(t){return Pt[t]||null}function lt(t){t&&t.name&&(Pt[t.name]=t)}const F={coreVersion:St,setTheme:b,getTheme:nt,setConfig:it,getConfig:ut,setIcon:ct,getIcon:at,setLanguage:rt,hasLanguage:J,getLanguage:Q,setI18n:ot,getI18n:v,globalEvents:gt,GLOBAL_EVENT_KEYS:O,createEvent:vt,globalResize:yt,renderer:M,validators:L,menus:I,formats:A,commands:R,interceptor:k,clipboard:xt,log:C,permission:wt,hooks:Et,component:lt,getComponent:ft,useFns:Ot,use:st};b();var pt=F}return e}()});
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.clipboard=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let copyElem,clipStore={text:"",html:""};function handleText(e){var t;copyElem||((copyElem=document.createElement("textarea")).id="$VxeCopy",(t=copyElem.style).width="48px",t.height="24px",t.position="fixed",t.zIndex="0",t.left="-500px",t.top="-500px",document.body.appendChild(copyElem)),copyElem.value=e}let clipboard=exports.clipboard={getStore(){return clipStore},setStore(e){Object.assign(clipStore,e||{})},copy(e){let t=!1;try{var l=_xeUtils.default.toValueString(e);handleText(l),copyElem.select(),copyElem.setSelectionRange(0,copyElem.value.length),t=document.execCommand("copy"),copyElem.blur(),clipStore.text=l,clipStore.html=""}catch(e){}return t}};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.clipboard=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let copyElem;const clipStore={text:"",html:""};function handleText(e){var t;copyElem||((copyElem=document.createElement("textarea")).id="$VxeCopy",(t=copyElem.style).width="48px",t.height="24px",t.position="fixed",t.zIndex="0",t.left="-500px",t.top="-500px",document.body.appendChild(copyElem)),copyElem.value=e}const clipboard=exports.clipboard={getStore(){return clipStore},setStore(e){Object.assign(clipStore,e||{})},copy(e){let t=!1;try{var o=_xeUtils.default.toValueString(e);handleText(o),copyElem.select(),copyElem.setSelectionRange(0,copyElem.value.length),t=document.execCommand("copy"),copyElem.blur(),clipStore.text=o,clipStore.html=""}catch(e){}return t}};
@@ -1 +1 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0}),exports.commands=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_log=require("./log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class VXECommandsStore{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return _xeUtils.default.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(o,e){var t=this.store[o];if(_xeUtils.default.isFunction(e)&&("development"===process.env.NODE_ENV&&_log.log.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),e={commandMethod:e}),"development"===process.env.NODE_ENV){let r=_xeUtils.default.keys(t);_xeUtils.default.each(e,(e,t)=>{r.includes(t)&&_log.log.warn("vxe.error.coverProp",[o,t])})}return this.store[o]=t?_xeUtils.default.merge(t,e):e,this}delete(e){delete this.store[e]}forEach(e){_xeUtils.default.objectEach(this.store,e)}}let commands=exports.commands=new VXECommandsStore;"development"===process.env.NODE_ENV&&Object.assign(commands,{_name:"Commands"});
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.commands=void 0;var _xeUtils=_interopRequireDefault(require("xe-utils")),_log=require("./log");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}class VXECommandsStore{constructor(){Object.defineProperty(this,"store",{enumerable:!0,configurable:!0,writable:!0,value:{}})}mixin(e){return _xeUtils.default.each(e,(e,t)=>{this.add(t,e)}),this}has(e){return!!this.get(e)}get(e){return this.store[e]}add(r,e){var t=this.store[r];if(_xeUtils.default.isFunction(e)&&("development"===process.env.NODE_ENV&&_log.log.warn("vxe.error.delProp",["commands -> callback","commandMethod"]),e={commandMethod:e}),"development"===process.env.NODE_ENV){const o=_xeUtils.default.keys(t);_xeUtils.default.each(e,(e,t)=>{o.includes(t)&&_log.log.warn("vxe.error.coverProp",[r,t])})}return this.store[r]=t?_xeUtils.default.merge(t,e):e,this}delete(e){delete this.store[e]}forEach(e){_xeUtils.default.objectEach(this.store,e)}}const commands=exports.commands=new VXECommandsStore;"development"===process.env.NODE_ENV&&Object.assign(commands,{_name:"Commands"});
package/lib/src/core.js CHANGED
@@ -258,7 +258,7 @@ function setIcon(options) {
258
258
  function getIcon(key) {
259
259
  return arguments.length ? _xeUtils.default.get(_iconStore.iconConfigStore, key) : _iconStore.iconConfigStore;
260
260
  }
261
- const coreVersion = exports.coreVersion = "1.0.12";
261
+ const coreVersion = exports.coreVersion = "4.0.0";
262
262
  const installedPlugins = [];
263
263
  function use(Plugin, options) {
264
264
  if (Plugin && Plugin.install) {