vue-safe-force-graph 1.0.13 → 1.0.14
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.
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
import * as Vue from "vue";
|
|
2
2
|
import { unref, getCurrentScope, onScopeDispose, ref, watch, readonly, getCurrentInstance, onMounted, nextTick, computed as computed$1, openBlock, createElementBlock, createElementVNode, warn, watchEffect, onBeforeUnmount, inject, isRef, shallowRef, onBeforeMount, provide, defineComponent, renderSlot, mergeProps, toRef, onUnmounted, reactive, toRefs, normalizeClass, onUpdated, createVNode, Fragment, useSlots, withCtx, createBlock, resolveDynamicComponent, normalizeStyle, createTextVNode, toDisplayString, createCommentVNode, TransitionGroup, useAttrs as useAttrs$1, withDirectives, withModifiers, vShow, Transition as Transition$1, cloneVNode, Text, Comment, Teleport, onDeactivated, vModelRadio, h, createSlots, toRaw as toRaw$1, triggerRef, resolveComponent, resolveDirective, renderList, withKeys, vModelText, createApp, shallowReactive, isVNode, render, createStaticVNode, pushScopeId, popScopeId } from "vue";
|
|
3
|
+
const FOCUSABLE_ELEMENT_SELECTORS = `a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])`;
|
|
4
|
+
const isVisible = (element) => {
|
|
5
|
+
const computed2 = getComputedStyle(element);
|
|
6
|
+
return computed2.position === "fixed" ? false : element.offsetParent !== null;
|
|
7
|
+
};
|
|
8
|
+
const obtainAllFocusableElements$1 = (element) => {
|
|
9
|
+
return Array.from(element.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter((item) => isFocusable(item) && isVisible(item));
|
|
10
|
+
};
|
|
11
|
+
const isFocusable = (element) => {
|
|
12
|
+
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute("tabIndex") !== null) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
if (element.disabled) {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
switch (element.nodeName) {
|
|
19
|
+
case "A": {
|
|
20
|
+
return !!element.href && element.rel !== "ignore";
|
|
21
|
+
}
|
|
22
|
+
case "INPUT": {
|
|
23
|
+
return !(element.type === "hidden" || element.type === "file");
|
|
24
|
+
}
|
|
25
|
+
case "BUTTON":
|
|
26
|
+
case "SELECT":
|
|
27
|
+
case "TEXTAREA": {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
default: {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
};
|
|
3
35
|
const composeEventHandlers = (theirsHandler, oursHandler, { checkForDefaultPrevented = true } = {}) => {
|
|
4
36
|
const handleEvent = (event) => {
|
|
5
37
|
const shouldPrevent = theirsHandler == null ? void 0 : theirsHandler(event);
|
|
@@ -3770,6 +3802,22 @@ function deriveState(state) {
|
|
|
3770
3802
|
attributes
|
|
3771
3803
|
};
|
|
3772
3804
|
}
|
|
3805
|
+
const useRestoreActive = (toggle, initialFocus) => {
|
|
3806
|
+
let previousActive;
|
|
3807
|
+
watch(() => toggle.value, (val) => {
|
|
3808
|
+
var _a2, _b;
|
|
3809
|
+
if (val) {
|
|
3810
|
+
previousActive = document.activeElement;
|
|
3811
|
+
if (isRef(initialFocus)) {
|
|
3812
|
+
(_b = (_a2 = initialFocus.value).focus) == null ? void 0 : _b.call(_a2);
|
|
3813
|
+
}
|
|
3814
|
+
} else {
|
|
3815
|
+
{
|
|
3816
|
+
previousActive.focus();
|
|
3817
|
+
}
|
|
3818
|
+
}
|
|
3819
|
+
});
|
|
3820
|
+
};
|
|
3773
3821
|
const useSameTarget = (handleClick) => {
|
|
3774
3822
|
if (!handleClick) {
|
|
3775
3823
|
return { onClick: NOOP, onMousedown: NOOP, onMouseup: NOOP };
|
|
@@ -4149,7 +4197,7 @@ const __default__$s = defineComponent({
|
|
|
4149
4197
|
name: "ElIcon",
|
|
4150
4198
|
inheritAttrs: false
|
|
4151
4199
|
});
|
|
4152
|
-
const _sfc_main$
|
|
4200
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
4153
4201
|
...__default__$s,
|
|
4154
4202
|
props: iconProps,
|
|
4155
4203
|
setup(__props) {
|
|
@@ -4174,7 +4222,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
4174
4222
|
};
|
|
4175
4223
|
}
|
|
4176
4224
|
});
|
|
4177
|
-
var Icon = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4225
|
+
var Icon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
|
|
4178
4226
|
const ElIcon = withInstall(Icon);
|
|
4179
4227
|
const formContextKey = Symbol("formContextKey");
|
|
4180
4228
|
const formItemContextKey = Symbol("formItemContextKey");
|
|
@@ -4334,7 +4382,7 @@ const COMPONENT_NAME$5 = "ElForm";
|
|
|
4334
4382
|
const __default__$r = defineComponent({
|
|
4335
4383
|
name: COMPONENT_NAME$5
|
|
4336
4384
|
});
|
|
4337
|
-
const _sfc_main$
|
|
4385
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
4338
4386
|
...__default__$r,
|
|
4339
4387
|
props: formProps,
|
|
4340
4388
|
emits: formEmits,
|
|
@@ -4463,7 +4511,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
4463
4511
|
};
|
|
4464
4512
|
}
|
|
4465
4513
|
});
|
|
4466
|
-
var Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
4514
|
+
var Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);
|
|
4467
4515
|
function _extends() {
|
|
4468
4516
|
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
4469
4517
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -4561,7 +4609,7 @@ function _wrapNativeSuper(Class) {
|
|
|
4561
4609
|
var formatRegExp = /%[sdj%]/g;
|
|
4562
4610
|
var warning = function warning2() {
|
|
4563
4611
|
};
|
|
4564
|
-
if (typeof process !== "undefined" && { "ALLUSERSPROFILE": "C:\\ProgramData", "APPCODE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\appcode.vmoptions", "APPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming", "BSPRINT_CLIENT": "C:/Users/jiangzhenxiang/AppData/Roaming/Brocadesoft", "CLION_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\clion.vmoptions", "COMMONPROGRAMFILES": "C:\\Program Files\\Common Files", "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files", "CommonProgramW6432": "C:\\Program Files\\Common Files", "COMPUTERNAME": "5CD128K65V", "COMSPEC": "C:\\windows\\system32\\cmd.exe", "DATAGRIP_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\datagrip.vmoptions", "DATASPELL_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\dataspell.vmoptions", "DEVECOSTUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\devecostudio.vmoptions", "dp0": "D:\\fe_force_graph\\node_modules\\.bin\\", "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData", "EXEPATH": "C:\\Program Files\\Git\\bin", "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer", "FPS_BROWSER_USER_PROFILE_STRING": "Default", "GATEWAY_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\gateway.vmoptions", "GOLAND_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\goland.vmoptions", "HOME": "C:\\Users\\jiangzhenxiang", "HOMEDRIVE": "C:", "HOMEPATH": "\\Users\\jiangzhenxiang", "IDEA_INITIAL_DIRECTORY": "C:\\Program Files\\JetBrains\\WebStorm 2022.1.2\\bin", "IDEA_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\idea.vmoptions", "INIT_CWD": "D:\\fe_force_graph", "JetBrains Gateway": "C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;", "JETBRAINSCLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrainsclient.vmoptions", "JETBRAINS_CLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrains_client.vmoptions", "LOCALAPPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Local", "LOGONSERVER": "\\\\SHBT-DC01", "MSYSTEM": "MINGW64", "NODE": "C:\\Program Files\\nodejs\\node.exe", "NODE_ENV": "production", "npm_config_access": "", "npm_config_allow_same_version": "", "npm_config_also": "", "npm_config_always_auth": "", "npm_config_argv": '{"remain":[],"cooked":["run","lib"],"original":["run","lib"]}', "npm_config_audit": "true", "npm_config_audit_level": "low", "npm_config_auth_type": "legacy", "npm_config_before": "", "npm_config_bin_links": "true", "npm_config_browser": "", "npm_config_ca": "", "npm_config_cache": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm-cache", "npm_config_cache_lock_retries": "10", "npm_config_cache_lock_stale": "60000", "npm_config_cache_lock_wait": "10000", "npm_config_cache_max": "Infinity", "npm_config_cache_min": "10", "npm_config_cafile": "", "npm_config_cert": "", "npm_config_cidr": "", "npm_config_color": "true", "npm_config_commit_hooks": "true", "npm_config_depth": "Infinity", "npm_config_description": "true", "npm_config_dev": "", "npm_config_dry_run": "", "npm_config_editor": "notepad.exe", "npm_config_engine_strict": "", "npm_config_fetch_retries": "2", "npm_config_fetch_retry_factor": "10", "npm_config_fetch_retry_maxtimeout": "60000", "npm_config_fetch_retry_mintimeout": "10000", "npm_config_force": "", "npm_config_format_package_lock": "true", "npm_config_fund": "true", "npm_config_git": "git", "npm_config_git_tag_version": "true", "npm_config_global": "", "npm_config_globalconfig": "C:\\Program Files\\nodejs\\etc\\npmrc", "npm_config_globalignorefile": "C:\\Program Files\\nodejs\\etc\\npmignore", "npm_config_global_style": "", "npm_config_group": "", "npm_config_ham_it_up": "", "npm_config_heading": "npm", "npm_config_https_proxy": "", "npm_config_if_present": "", "npm_config_ignore_prepublish": "", "npm_config_ignore_scripts": "", "npm_config_init_author_email": "", "npm_config_init_author_name": "", "npm_config_init_author_url": "", "npm_config_init_license": "ISC", "npm_config_init_module": "C:\\Users\\jiangzhenxiang\\.npm-init.js", "npm_config_init_version": "1.0.0", "npm_config_json": "", "npm_config_key": "", "npm_config_legacy_bundling": "", "npm_config_link": "", "npm_config_local_address": "", "npm_config_loglevel": "notice", "npm_config_logs_max": "10", "npm_config_long": "", "npm_config_maxsockets": "50", "npm_config_message": "%s", "npm_config_metrics_registry": "https://registry.npmjs.org/", "npm_config_node_gyp": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js", "npm_config_node_options": "", "npm_config_node_version": "14.19.0", "npm_config_noproxy": "", "npm_config_offline": "", "npm_config_onload_script": "", "npm_config_only": "", "npm_config_optional": "true", "npm_config_otp": "", "npm_config_package_lock": "true", "npm_config_package_lock_only": "", "npm_config_parseable": "", "npm_config_prefer_offline": "", "npm_config_prefer_online": "", "npm_config_prefix": "C:\\Program Files\\nodejs", "npm_config_preid": "", "npm_config_production": "", "npm_config_progress": "true", "npm_config_proxy": "", "npm_config_read_only": "", "npm_config_rebuild_bundle": "true", "npm_config_registry": "https://registry.npmjs.org/", "npm_config_rollback": "true", "npm_config_save": "true", "npm_config_save_bundle": "", "npm_config_save_dev": "", "npm_config_save_exact": "", "npm_config_save_optional": "", "npm_config_save_prefix": "^", "npm_config_save_prod": "", "npm_config_scope": "", "npm_config_scripts_prepend_node_path": "warn-only", "npm_config_script_shell": "", "npm_config_searchexclude": "", "npm_config_searchlimit": "20", "npm_config_searchopts": "", "npm_config_searchstaleness": "900", "npm_config_send_metrics": "", "npm_config_shell": "C:\\windows\\system32\\cmd.exe", "npm_config_shrinkwrap": "true", "npm_config_sign_git_commit": "", "npm_config_sign_git_tag": "", "npm_config_sso_poll_frequency": "500", "npm_config_sso_type": "oauth", "npm_config_strict_ssl": "true", "npm_config_tag": "latest", "npm_config_tag_version_prefix": "v", "npm_config_timing": "", "npm_config_tmp": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "npm_config_umask": "0000", "npm_config_unicode": "", "npm_config_unsafe_perm": "true", "npm_config_update_notifier": "true", "npm_config_usage": "", "npm_config_user": "", "npm_config_userconfig": "C:\\Users\\jiangzhenxiang\\.npmrc", "npm_config_user_agent": "npm/6.14.16 node/v14.19.0 win32 x64", "npm_config_version": "", "npm_config_versions": "", "npm_config_viewer": "browser", "npm_config__q_registry": "http://registry.npm.qiwoo.org", "npm_execpath": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\bin\\npm-cli.js", "npm_lifecycle_event": "lib", "npm_lifecycle_script": "vite build", "npm_node_execpath": "C:\\Program Files\\nodejs\\node.exe", "npm_package_author_name": "jason zhang", "npm_package_browserslist_0": "> 1%", "npm_package_browserslist_1": "last 2 versions", "npm_package_dependencies_core_js": "^3.29.1", "npm_package_dependencies_csv_parse": "^5.0.4", "npm_package_dependencies_d3": "^7.0.0", "npm_package_dependencies_d3_lasso": "0.0.5", "npm_package_dependencies_element_plus": "^2.3.0", "npm_package_dependencies_html2canvas": "^1.0.0-rc.7", "npm_package_dependencies_json2csv": "^5.0.7", "npm_package_dependencies_lodash": "^4.17.21", "npm_package_dependencies_mime_types": "^2.1.35", "npm_package_dependencies_minimist": "^1.2.6", "npm_package_dependencies_vue": "^3.2.47", "npm_package_dependencies_vue_clipboard3": "^2.0.0", "npm_package_dependencies_vue_router": "^4.1.6", "npm_package_dependencies__element_plus_icons_vue": "^2.1.0", "npm_package_description": "force_graph in security area", "npm_package_devDependencies_autoprefixer": "9.5.1", "npm_package_devDependencies_axios": "^0.21.1", "npm_package_devDependencies_babel_eslint": "^10.1.0", "npm_package_devDependencies_eslint": "^7.32.0", "npm_package_devDependencies_eslint_plugin_vue": "^8.0.3", "npm_package_devDependencies_imageinfo": "^1.0.4", "npm_package_devDependencies_qs": "^6.10.1", "npm_package_devDependencies_rollup_plugin_visualizer": "^5.9.0", "npm_package_devDependencies_sass": "^1.59.2", "npm_package_devDependencies_svgo": "1.2.2", "npm_package_devDependencies_unplugin_auto_import": "^0.15.2", "npm_package_devDependencies_unplugin_vue_components": "^0.24.1", "npm_package_devDependencies_vite": "^4.1.4", "npm_package_devDependencies__originjs_vite_plugin_commonjs": "^1.0.3", "npm_package_devDependencies__q_qcdn": "^3.1.6", "npm_package_devDependencies__vitejs_plugin_vue": "^4.0.0", "npm_package_engines_node": ">=8.9", "npm_package_engines_npm": ">= 3.0.0", "npm_package_exports___import": "./lib/vue-safe-force-graph.js", "npm_package_exports___require": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_exports____": "./*", "npm_package_files_0": "/lib/", "npm_package_gitHead": "a8d17b160e4974dbd45d855129453caf3ebd43d0", "npm_package_license": "MIT", "npm_package_main": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_module": "./lib/vue-safe-force-graph.js", "npm_package_name": "vue-safe-force-graph", "npm_package_readmeFilename": "README.md", "npm_package_scripts_build": "vite build", "npm_package_scripts_changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "npm_package_scripts_dev": "vite", "npm_package_scripts_devforce": "vite --force", "npm_package_scripts_dev_base64": "vite --mode development_base64", "npm_package_scripts_imageToBase64": "node qcdn.js --buildtype=base64", "npm_package_scripts_imageToCdn": "node qcdn.js", "npm_package_scripts_lib": "vite build", "npm_package_scripts_lib_base64": "vite build --mode production_base64", "npm_package_scripts_lint": "eslint --ext .js,.vue src", "npm_package_scripts_lintFix": "eslint --fix --ext .js,.vue src", "npm_package_scripts_p": "npm run imageToCdn && npm run patch && npm run lib && npm publish", "npm_package_scripts_patch": 'npm version patch -m "Upgrade to %s "', "npm_package_scripts_patch_base64": 'npm version patch -m "Upgrade to %s for base64"', "npm_package_scripts_p_base64": "npm run imageToBase64 && npm run patch:base64 && npm run lib:base64 && npm publish", "npm_package_scripts_svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", "npm_package_type": "module", "npm_package_version": "1.0.13", "NUMBER_OF_PROCESSORS": "8", "NVM_HOME": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm", "NVM_SYMLINK": "C:\\Program Files\\nodejs", "OneDrive": "C:\\Users\\jiangzhenxiang\\OneDrive", "OneDriveConsumer": "C:\\Users\\jiangzhenxiang\\OneDrive", "OS": "Windows_NT", "PATH": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "Path": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC", "PHPSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\phpstorm.vmoptions", "PLINK_PROTOCOL": "ssh", "PROCESSOR_ARCHITECTURE": "AMD64", "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 140 Stepping 1, GenuineIntel", "PROCESSOR_LEVEL": "6", "PROCESSOR_REVISION": "8c01", "ProgramData": "C:\\ProgramData", "PROGRAMFILES": "C:\\Program Files", "ProgramFiles(x86)": "C:\\Program Files (x86)", "ProgramW6432": "C:\\Program Files", "PROMPT": "$P$G", "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules", "PUBLIC": "C:\\Users\\Public", "PWD": "D:/fe_force_graph", "PYCHARM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\pycharm.vmoptions", "RIDER_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rider.vmoptions", "RUBYMINE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rubymine.vmoptions", "SESSIONNAME": "Console", "SHLVL": "2", "STARSHIP_SESSION_KEY": "2811728709641613", "STARSHIP_SHELL": "bash", "STUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\studio.vmoptions", "SYSTEMDRIVE": "C:", "SYSTEMROOT": "C:\\windows", "TEMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "TERM": "xterm-256color", "TERMINAL_EMULATOR": "JetBrains-JediTerm", "TERM_SESSION_ID": "e0515409-ed6d-49a4-98a5-dba7ff7b54f6", "TMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "USERDNSDOMAIN": "CORP.QIHOO.NET", "USERDOMAIN": "CORP", "USERDOMAIN_ROAMINGPROFILE": "CORP", "USERNAME": "jiangzhenxiang", "USERPROFILE": "C:\\Users\\jiangzhenxiang", "WEBIDE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webide.vmoptions", "WebStorm": "C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;", "WEBSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webstorm.vmoptions", "WINDIR": "C:\\windows", "ZES_ENABLE_SYSMAN": "1", "_": "C:/Program Files/nodejs/node.exe", "_prog": "node", "__INTELLIJ_COMMAND_HISTFILE__": "C:\\Users\\jiangzhenxiang\\AppData\\Local\\JetBrains\\WebStorm2022.1\\terminal\\history\\fe_force_graph-history" } && { "ALLUSERSPROFILE": "C:\\ProgramData", "APPCODE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\appcode.vmoptions", "APPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming", "BSPRINT_CLIENT": "C:/Users/jiangzhenxiang/AppData/Roaming/Brocadesoft", "CLION_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\clion.vmoptions", "COMMONPROGRAMFILES": "C:\\Program Files\\Common Files", "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files", "CommonProgramW6432": "C:\\Program Files\\Common Files", "COMPUTERNAME": "5CD128K65V", "COMSPEC": "C:\\windows\\system32\\cmd.exe", "DATAGRIP_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\datagrip.vmoptions", "DATASPELL_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\dataspell.vmoptions", "DEVECOSTUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\devecostudio.vmoptions", "dp0": "D:\\fe_force_graph\\node_modules\\.bin\\", "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData", "EXEPATH": "C:\\Program Files\\Git\\bin", "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer", "FPS_BROWSER_USER_PROFILE_STRING": "Default", "GATEWAY_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\gateway.vmoptions", "GOLAND_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\goland.vmoptions", "HOME": "C:\\Users\\jiangzhenxiang", "HOMEDRIVE": "C:", "HOMEPATH": "\\Users\\jiangzhenxiang", "IDEA_INITIAL_DIRECTORY": "C:\\Program Files\\JetBrains\\WebStorm 2022.1.2\\bin", "IDEA_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\idea.vmoptions", "INIT_CWD": "D:\\fe_force_graph", "JetBrains Gateway": "C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;", "JETBRAINSCLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrainsclient.vmoptions", "JETBRAINS_CLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrains_client.vmoptions", "LOCALAPPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Local", "LOGONSERVER": "\\\\SHBT-DC01", "MSYSTEM": "MINGW64", "NODE": "C:\\Program Files\\nodejs\\node.exe", "NODE_ENV": "production", "npm_config_access": "", "npm_config_allow_same_version": "", "npm_config_also": "", "npm_config_always_auth": "", "npm_config_argv": '{"remain":[],"cooked":["run","lib"],"original":["run","lib"]}', "npm_config_audit": "true", "npm_config_audit_level": "low", "npm_config_auth_type": "legacy", "npm_config_before": "", "npm_config_bin_links": "true", "npm_config_browser": "", "npm_config_ca": "", "npm_config_cache": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm-cache", "npm_config_cache_lock_retries": "10", "npm_config_cache_lock_stale": "60000", "npm_config_cache_lock_wait": "10000", "npm_config_cache_max": "Infinity", "npm_config_cache_min": "10", "npm_config_cafile": "", "npm_config_cert": "", "npm_config_cidr": "", "npm_config_color": "true", "npm_config_commit_hooks": "true", "npm_config_depth": "Infinity", "npm_config_description": "true", "npm_config_dev": "", "npm_config_dry_run": "", "npm_config_editor": "notepad.exe", "npm_config_engine_strict": "", "npm_config_fetch_retries": "2", "npm_config_fetch_retry_factor": "10", "npm_config_fetch_retry_maxtimeout": "60000", "npm_config_fetch_retry_mintimeout": "10000", "npm_config_force": "", "npm_config_format_package_lock": "true", "npm_config_fund": "true", "npm_config_git": "git", "npm_config_git_tag_version": "true", "npm_config_global": "", "npm_config_globalconfig": "C:\\Program Files\\nodejs\\etc\\npmrc", "npm_config_globalignorefile": "C:\\Program Files\\nodejs\\etc\\npmignore", "npm_config_global_style": "", "npm_config_group": "", "npm_config_ham_it_up": "", "npm_config_heading": "npm", "npm_config_https_proxy": "", "npm_config_if_present": "", "npm_config_ignore_prepublish": "", "npm_config_ignore_scripts": "", "npm_config_init_author_email": "", "npm_config_init_author_name": "", "npm_config_init_author_url": "", "npm_config_init_license": "ISC", "npm_config_init_module": "C:\\Users\\jiangzhenxiang\\.npm-init.js", "npm_config_init_version": "1.0.0", "npm_config_json": "", "npm_config_key": "", "npm_config_legacy_bundling": "", "npm_config_link": "", "npm_config_local_address": "", "npm_config_loglevel": "notice", "npm_config_logs_max": "10", "npm_config_long": "", "npm_config_maxsockets": "50", "npm_config_message": "%s", "npm_config_metrics_registry": "https://registry.npmjs.org/", "npm_config_node_gyp": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js", "npm_config_node_options": "", "npm_config_node_version": "14.19.0", "npm_config_noproxy": "", "npm_config_offline": "", "npm_config_onload_script": "", "npm_config_only": "", "npm_config_optional": "true", "npm_config_otp": "", "npm_config_package_lock": "true", "npm_config_package_lock_only": "", "npm_config_parseable": "", "npm_config_prefer_offline": "", "npm_config_prefer_online": "", "npm_config_prefix": "C:\\Program Files\\nodejs", "npm_config_preid": "", "npm_config_production": "", "npm_config_progress": "true", "npm_config_proxy": "", "npm_config_read_only": "", "npm_config_rebuild_bundle": "true", "npm_config_registry": "https://registry.npmjs.org/", "npm_config_rollback": "true", "npm_config_save": "true", "npm_config_save_bundle": "", "npm_config_save_dev": "", "npm_config_save_exact": "", "npm_config_save_optional": "", "npm_config_save_prefix": "^", "npm_config_save_prod": "", "npm_config_scope": "", "npm_config_scripts_prepend_node_path": "warn-only", "npm_config_script_shell": "", "npm_config_searchexclude": "", "npm_config_searchlimit": "20", "npm_config_searchopts": "", "npm_config_searchstaleness": "900", "npm_config_send_metrics": "", "npm_config_shell": "C:\\windows\\system32\\cmd.exe", "npm_config_shrinkwrap": "true", "npm_config_sign_git_commit": "", "npm_config_sign_git_tag": "", "npm_config_sso_poll_frequency": "500", "npm_config_sso_type": "oauth", "npm_config_strict_ssl": "true", "npm_config_tag": "latest", "npm_config_tag_version_prefix": "v", "npm_config_timing": "", "npm_config_tmp": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "npm_config_umask": "0000", "npm_config_unicode": "", "npm_config_unsafe_perm": "true", "npm_config_update_notifier": "true", "npm_config_usage": "", "npm_config_user": "", "npm_config_userconfig": "C:\\Users\\jiangzhenxiang\\.npmrc", "npm_config_user_agent": "npm/6.14.16 node/v14.19.0 win32 x64", "npm_config_version": "", "npm_config_versions": "", "npm_config_viewer": "browser", "npm_config__q_registry": "http://registry.npm.qiwoo.org", "npm_execpath": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\bin\\npm-cli.js", "npm_lifecycle_event": "lib", "npm_lifecycle_script": "vite build", "npm_node_execpath": "C:\\Program Files\\nodejs\\node.exe", "npm_package_author_name": "jason zhang", "npm_package_browserslist_0": "> 1%", "npm_package_browserslist_1": "last 2 versions", "npm_package_dependencies_core_js": "^3.29.1", "npm_package_dependencies_csv_parse": "^5.0.4", "npm_package_dependencies_d3": "^7.0.0", "npm_package_dependencies_d3_lasso": "0.0.5", "npm_package_dependencies_element_plus": "^2.3.0", "npm_package_dependencies_html2canvas": "^1.0.0-rc.7", "npm_package_dependencies_json2csv": "^5.0.7", "npm_package_dependencies_lodash": "^4.17.21", "npm_package_dependencies_mime_types": "^2.1.35", "npm_package_dependencies_minimist": "^1.2.6", "npm_package_dependencies_vue": "^3.2.47", "npm_package_dependencies_vue_clipboard3": "^2.0.0", "npm_package_dependencies_vue_router": "^4.1.6", "npm_package_dependencies__element_plus_icons_vue": "^2.1.0", "npm_package_description": "force_graph in security area", "npm_package_devDependencies_autoprefixer": "9.5.1", "npm_package_devDependencies_axios": "^0.21.1", "npm_package_devDependencies_babel_eslint": "^10.1.0", "npm_package_devDependencies_eslint": "^7.32.0", "npm_package_devDependencies_eslint_plugin_vue": "^8.0.3", "npm_package_devDependencies_imageinfo": "^1.0.4", "npm_package_devDependencies_qs": "^6.10.1", "npm_package_devDependencies_rollup_plugin_visualizer": "^5.9.0", "npm_package_devDependencies_sass": "^1.59.2", "npm_package_devDependencies_svgo": "1.2.2", "npm_package_devDependencies_unplugin_auto_import": "^0.15.2", "npm_package_devDependencies_unplugin_vue_components": "^0.24.1", "npm_package_devDependencies_vite": "^4.1.4", "npm_package_devDependencies__originjs_vite_plugin_commonjs": "^1.0.3", "npm_package_devDependencies__q_qcdn": "^3.1.6", "npm_package_devDependencies__vitejs_plugin_vue": "^4.0.0", "npm_package_engines_node": ">=8.9", "npm_package_engines_npm": ">= 3.0.0", "npm_package_exports___import": "./lib/vue-safe-force-graph.js", "npm_package_exports___require": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_exports____": "./*", "npm_package_files_0": "/lib/", "npm_package_gitHead": "a8d17b160e4974dbd45d855129453caf3ebd43d0", "npm_package_license": "MIT", "npm_package_main": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_module": "./lib/vue-safe-force-graph.js", "npm_package_name": "vue-safe-force-graph", "npm_package_readmeFilename": "README.md", "npm_package_scripts_build": "vite build", "npm_package_scripts_changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "npm_package_scripts_dev": "vite", "npm_package_scripts_devforce": "vite --force", "npm_package_scripts_dev_base64": "vite --mode development_base64", "npm_package_scripts_imageToBase64": "node qcdn.js --buildtype=base64", "npm_package_scripts_imageToCdn": "node qcdn.js", "npm_package_scripts_lib": "vite build", "npm_package_scripts_lib_base64": "vite build --mode production_base64", "npm_package_scripts_lint": "eslint --ext .js,.vue src", "npm_package_scripts_lintFix": "eslint --fix --ext .js,.vue src", "npm_package_scripts_p": "npm run imageToCdn && npm run patch && npm run lib && npm publish", "npm_package_scripts_patch": 'npm version patch -m "Upgrade to %s "', "npm_package_scripts_patch_base64": 'npm version patch -m "Upgrade to %s for base64"', "npm_package_scripts_p_base64": "npm run imageToBase64 && npm run patch:base64 && npm run lib:base64 && npm publish", "npm_package_scripts_svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", "npm_package_type": "module", "npm_package_version": "1.0.13", "NUMBER_OF_PROCESSORS": "8", "NVM_HOME": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm", "NVM_SYMLINK": "C:\\Program Files\\nodejs", "OneDrive": "C:\\Users\\jiangzhenxiang\\OneDrive", "OneDriveConsumer": "C:\\Users\\jiangzhenxiang\\OneDrive", "OS": "Windows_NT", "PATH": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "Path": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC", "PHPSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\phpstorm.vmoptions", "PLINK_PROTOCOL": "ssh", "PROCESSOR_ARCHITECTURE": "AMD64", "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 140 Stepping 1, GenuineIntel", "PROCESSOR_LEVEL": "6", "PROCESSOR_REVISION": "8c01", "ProgramData": "C:\\ProgramData", "PROGRAMFILES": "C:\\Program Files", "ProgramFiles(x86)": "C:\\Program Files (x86)", "ProgramW6432": "C:\\Program Files", "PROMPT": "$P$G", "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules", "PUBLIC": "C:\\Users\\Public", "PWD": "D:/fe_force_graph", "PYCHARM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\pycharm.vmoptions", "RIDER_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rider.vmoptions", "RUBYMINE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rubymine.vmoptions", "SESSIONNAME": "Console", "SHLVL": "2", "STARSHIP_SESSION_KEY": "2811728709641613", "STARSHIP_SHELL": "bash", "STUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\studio.vmoptions", "SYSTEMDRIVE": "C:", "SYSTEMROOT": "C:\\windows", "TEMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "TERM": "xterm-256color", "TERMINAL_EMULATOR": "JetBrains-JediTerm", "TERM_SESSION_ID": "e0515409-ed6d-49a4-98a5-dba7ff7b54f6", "TMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "USERDNSDOMAIN": "CORP.QIHOO.NET", "USERDOMAIN": "CORP", "USERDOMAIN_ROAMINGPROFILE": "CORP", "USERNAME": "jiangzhenxiang", "USERPROFILE": "C:\\Users\\jiangzhenxiang", "WEBIDE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webide.vmoptions", "WebStorm": "C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;", "WEBSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webstorm.vmoptions", "WINDIR": "C:\\windows", "ZES_ENABLE_SYSMAN": "1", "_": "C:/Program Files/nodejs/node.exe", "_prog": "node", "__INTELLIJ_COMMAND_HISTFILE__": "C:\\Users\\jiangzhenxiang\\AppData\\Local\\JetBrains\\WebStorm2022.1\\terminal\\history\\fe_force_graph-history" }.NODE_ENV !== "production" && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
4612
|
+
if (typeof process !== "undefined" && { "ALLUSERSPROFILE": "C:\\ProgramData", "APPCODE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\appcode.vmoptions", "APPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming", "BSPRINT_CLIENT": "C:/Users/jiangzhenxiang/AppData/Roaming/Brocadesoft", "CLION_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\clion.vmoptions", "COMMONPROGRAMFILES": "C:\\Program Files\\Common Files", "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files", "CommonProgramW6432": "C:\\Program Files\\Common Files", "COMPUTERNAME": "5CD128K65V", "COMSPEC": "C:\\windows\\system32\\cmd.exe", "DATAGRIP_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\datagrip.vmoptions", "DATASPELL_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\dataspell.vmoptions", "DEVECOSTUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\devecostudio.vmoptions", "dp0": "D:\\fe_force_graph\\node_modules\\.bin\\", "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData", "EXEPATH": "C:\\Program Files\\Git\\bin", "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer", "FPS_BROWSER_USER_PROFILE_STRING": "Default", "GATEWAY_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\gateway.vmoptions", "GOLAND_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\goland.vmoptions", "HOME": "C:\\Users\\jiangzhenxiang", "HOMEDRIVE": "C:", "HOMEPATH": "\\Users\\jiangzhenxiang", "IDEA_INITIAL_DIRECTORY": "C:\\Program Files\\JetBrains\\WebStorm 2022.1.2\\bin", "IDEA_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\idea.vmoptions", "INIT_CWD": "D:\\fe_force_graph", "JetBrains Gateway": "C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;", "JETBRAINSCLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrainsclient.vmoptions", "JETBRAINS_CLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrains_client.vmoptions", "LOCALAPPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Local", "LOGONSERVER": "\\\\SHBT-DC01", "MSYSTEM": "MINGW64", "NODE": "C:\\Program Files\\nodejs\\node.exe", "NODE_ENV": "production", "npm_config_access": "", "npm_config_allow_same_version": "", "npm_config_also": "", "npm_config_always_auth": "", "npm_config_argv": '{"remain":[],"cooked":["run","lib"],"original":["run","lib"]}', "npm_config_audit": "true", "npm_config_audit_level": "low", "npm_config_auth_type": "legacy", "npm_config_before": "", "npm_config_bin_links": "true", "npm_config_browser": "", "npm_config_ca": "", "npm_config_cache": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm-cache", "npm_config_cache_lock_retries": "10", "npm_config_cache_lock_stale": "60000", "npm_config_cache_lock_wait": "10000", "npm_config_cache_max": "Infinity", "npm_config_cache_min": "10", "npm_config_cafile": "", "npm_config_cert": "", "npm_config_cidr": "", "npm_config_color": "true", "npm_config_commit_hooks": "true", "npm_config_depth": "Infinity", "npm_config_description": "true", "npm_config_dev": "", "npm_config_dry_run": "", "npm_config_editor": "notepad.exe", "npm_config_engine_strict": "", "npm_config_fetch_retries": "2", "npm_config_fetch_retry_factor": "10", "npm_config_fetch_retry_maxtimeout": "60000", "npm_config_fetch_retry_mintimeout": "10000", "npm_config_force": "", "npm_config_format_package_lock": "true", "npm_config_fund": "true", "npm_config_git": "git", "npm_config_git_tag_version": "true", "npm_config_global": "", "npm_config_globalconfig": "C:\\Program Files\\nodejs\\etc\\npmrc", "npm_config_globalignorefile": "C:\\Program Files\\nodejs\\etc\\npmignore", "npm_config_global_style": "", "npm_config_group": "", "npm_config_ham_it_up": "", "npm_config_heading": "npm", "npm_config_https_proxy": "", "npm_config_if_present": "", "npm_config_ignore_prepublish": "", "npm_config_ignore_scripts": "", "npm_config_init_author_email": "", "npm_config_init_author_name": "", "npm_config_init_author_url": "", "npm_config_init_license": "ISC", "npm_config_init_module": "C:\\Users\\jiangzhenxiang\\.npm-init.js", "npm_config_init_version": "1.0.0", "npm_config_json": "", "npm_config_key": "", "npm_config_legacy_bundling": "", "npm_config_link": "", "npm_config_local_address": "", "npm_config_loglevel": "notice", "npm_config_logs_max": "10", "npm_config_long": "", "npm_config_maxsockets": "50", "npm_config_message": "%s", "npm_config_metrics_registry": "https://registry.npmjs.org/", "npm_config_node_gyp": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js", "npm_config_node_options": "", "npm_config_node_version": "14.19.0", "npm_config_noproxy": "", "npm_config_offline": "", "npm_config_onload_script": "", "npm_config_only": "", "npm_config_optional": "true", "npm_config_otp": "", "npm_config_package_lock": "true", "npm_config_package_lock_only": "", "npm_config_parseable": "", "npm_config_prefer_offline": "", "npm_config_prefer_online": "", "npm_config_prefix": "C:\\Program Files\\nodejs", "npm_config_preid": "", "npm_config_production": "", "npm_config_progress": "true", "npm_config_proxy": "", "npm_config_read_only": "", "npm_config_rebuild_bundle": "true", "npm_config_registry": "https://registry.npmjs.org/", "npm_config_rollback": "true", "npm_config_save": "true", "npm_config_save_bundle": "", "npm_config_save_dev": "", "npm_config_save_exact": "", "npm_config_save_optional": "", "npm_config_save_prefix": "^", "npm_config_save_prod": "", "npm_config_scope": "", "npm_config_scripts_prepend_node_path": "warn-only", "npm_config_script_shell": "", "npm_config_searchexclude": "", "npm_config_searchlimit": "20", "npm_config_searchopts": "", "npm_config_searchstaleness": "900", "npm_config_send_metrics": "", "npm_config_shell": "C:\\windows\\system32\\cmd.exe", "npm_config_shrinkwrap": "true", "npm_config_sign_git_commit": "", "npm_config_sign_git_tag": "", "npm_config_sso_poll_frequency": "500", "npm_config_sso_type": "oauth", "npm_config_strict_ssl": "true", "npm_config_tag": "latest", "npm_config_tag_version_prefix": "v", "npm_config_timing": "", "npm_config_tmp": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "npm_config_umask": "0000", "npm_config_unicode": "", "npm_config_unsafe_perm": "true", "npm_config_update_notifier": "true", "npm_config_usage": "", "npm_config_user": "", "npm_config_userconfig": "C:\\Users\\jiangzhenxiang\\.npmrc", "npm_config_user_agent": "npm/6.14.16 node/v14.19.0 win32 x64", "npm_config_version": "", "npm_config_versions": "", "npm_config_viewer": "browser", "npm_config__q_registry": "http://registry.npm.qiwoo.org", "npm_execpath": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\bin\\npm-cli.js", "npm_lifecycle_event": "lib", "npm_lifecycle_script": "vite build", "npm_node_execpath": "C:\\Program Files\\nodejs\\node.exe", "npm_package_author_name": "jason zhang", "npm_package_browserslist_0": "> 1%", "npm_package_browserslist_1": "last 2 versions", "npm_package_dependencies_core_js": "^3.29.1", "npm_package_dependencies_csv_parse": "^5.0.4", "npm_package_dependencies_d3": "^7.0.0", "npm_package_dependencies_d3_lasso": "0.0.5", "npm_package_dependencies_element_plus": "^2.3.0", "npm_package_dependencies_html2canvas": "^1.0.0-rc.7", "npm_package_dependencies_json2csv": "^5.0.7", "npm_package_dependencies_lodash": "^4.17.21", "npm_package_dependencies_mime_types": "^2.1.35", "npm_package_dependencies_minimist": "^1.2.6", "npm_package_dependencies_vue": "^3.2.47", "npm_package_dependencies_vue_clipboard3": "^2.0.0", "npm_package_dependencies_vue_router": "^4.1.6", "npm_package_dependencies__element_plus_icons_vue": "^2.1.0", "npm_package_description": "force_graph in security area", "npm_package_devDependencies_autoprefixer": "9.5.1", "npm_package_devDependencies_axios": "^0.21.1", "npm_package_devDependencies_babel_eslint": "^10.1.0", "npm_package_devDependencies_eslint": "^7.32.0", "npm_package_devDependencies_eslint_plugin_vue": "^8.0.3", "npm_package_devDependencies_imageinfo": "^1.0.4", "npm_package_devDependencies_qs": "^6.10.1", "npm_package_devDependencies_rollup_plugin_visualizer": "^5.9.0", "npm_package_devDependencies_sass": "^1.59.2", "npm_package_devDependencies_svgo": "1.2.2", "npm_package_devDependencies_unplugin_auto_import": "^0.15.2", "npm_package_devDependencies_unplugin_vue_components": "^0.24.1", "npm_package_devDependencies_vite": "^4.1.4", "npm_package_devDependencies__originjs_vite_plugin_commonjs": "^1.0.3", "npm_package_devDependencies__q_qcdn": "^3.1.6", "npm_package_devDependencies__vitejs_plugin_vue": "^4.0.0", "npm_package_engines_node": ">=8.9", "npm_package_engines_npm": ">= 3.0.0", "npm_package_exports___import": "./lib/vue-safe-force-graph.js", "npm_package_exports___require": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_exports____": "./*", "npm_package_files_0": "/lib/", "npm_package_gitHead": "029e90d5378cfdf1a7dce4f487278c809ddcd470", "npm_package_license": "MIT", "npm_package_main": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_module": "./lib/vue-safe-force-graph.js", "npm_package_name": "vue-safe-force-graph", "npm_package_readmeFilename": "README.md", "npm_package_scripts_build": "vite build", "npm_package_scripts_changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "npm_package_scripts_dev": "vite", "npm_package_scripts_devforce": "vite --force", "npm_package_scripts_dev_base64": "vite --mode development_base64", "npm_package_scripts_imageToBase64": "node qcdn.js --buildtype=base64", "npm_package_scripts_imageToCdn": "node qcdn.js", "npm_package_scripts_lib": "vite build", "npm_package_scripts_lib_base64": "vite build --mode production_base64", "npm_package_scripts_lint": "eslint --ext .js,.vue src", "npm_package_scripts_lintFix": "eslint --fix --ext .js,.vue src", "npm_package_scripts_p": "npm run imageToCdn && npm run patch && npm run lib && npm publish", "npm_package_scripts_patch": 'npm version patch -m "Upgrade to %s "', "npm_package_scripts_patch_base64": 'npm version patch -m "Upgrade to %s for base64"', "npm_package_scripts_p_base64": "npm run imageToBase64 && npm run patch:base64 && npm run lib:base64 && npm publish", "npm_package_scripts_svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", "npm_package_type": "module", "npm_package_version": "1.0.14", "NUMBER_OF_PROCESSORS": "8", "NVM_HOME": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm", "NVM_SYMLINK": "C:\\Program Files\\nodejs", "OneDrive": "C:\\Users\\jiangzhenxiang\\OneDrive", "OneDriveConsumer": "C:\\Users\\jiangzhenxiang\\OneDrive", "OS": "Windows_NT", "PATH": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "Path": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC", "PHPSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\phpstorm.vmoptions", "PLINK_PROTOCOL": "ssh", "PROCESSOR_ARCHITECTURE": "AMD64", "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 140 Stepping 1, GenuineIntel", "PROCESSOR_LEVEL": "6", "PROCESSOR_REVISION": "8c01", "ProgramData": "C:\\ProgramData", "PROGRAMFILES": "C:\\Program Files", "ProgramFiles(x86)": "C:\\Program Files (x86)", "ProgramW6432": "C:\\Program Files", "PROMPT": "$P$G", "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules", "PUBLIC": "C:\\Users\\Public", "PWD": "D:/fe_force_graph", "PYCHARM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\pycharm.vmoptions", "RIDER_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rider.vmoptions", "RUBYMINE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rubymine.vmoptions", "SESSIONNAME": "Console", "SHLVL": "2", "STARSHIP_SESSION_KEY": "8292254721606323", "STARSHIP_SHELL": "bash", "STUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\studio.vmoptions", "SYSTEMDRIVE": "C:", "SYSTEMROOT": "C:\\windows", "TEMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "TERM": "xterm-256color", "TERMINAL_EMULATOR": "JetBrains-JediTerm", "TERM_SESSION_ID": "228e5e49-7d1f-430c-ab78-a18fc97437e1", "TMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "USERDNSDOMAIN": "CORP.QIHOO.NET", "USERDOMAIN": "CORP", "USERDOMAIN_ROAMINGPROFILE": "CORP", "USERNAME": "jiangzhenxiang", "USERPROFILE": "C:\\Users\\jiangzhenxiang", "WEBIDE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webide.vmoptions", "WebStorm": "C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;", "WEBSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webstorm.vmoptions", "WINDIR": "C:\\windows", "ZES_ENABLE_SYSMAN": "1", "_": "C:/Program Files/nodejs/node.exe", "_prog": "node", "__INTELLIJ_COMMAND_HISTFILE__": "C:\\Users\\jiangzhenxiang\\AppData\\Local\\JetBrains\\WebStorm2022.1\\terminal\\history\\fe_force_graph-history" } && { "ALLUSERSPROFILE": "C:\\ProgramData", "APPCODE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\appcode.vmoptions", "APPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming", "BSPRINT_CLIENT": "C:/Users/jiangzhenxiang/AppData/Roaming/Brocadesoft", "CLION_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\clion.vmoptions", "COMMONPROGRAMFILES": "C:\\Program Files\\Common Files", "CommonProgramFiles(x86)": "C:\\Program Files (x86)\\Common Files", "CommonProgramW6432": "C:\\Program Files\\Common Files", "COMPUTERNAME": "5CD128K65V", "COMSPEC": "C:\\windows\\system32\\cmd.exe", "DATAGRIP_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\datagrip.vmoptions", "DATASPELL_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\dataspell.vmoptions", "DEVECOSTUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\devecostudio.vmoptions", "dp0": "D:\\fe_force_graph\\node_modules\\.bin\\", "DriverData": "C:\\Windows\\System32\\Drivers\\DriverData", "EXEPATH": "C:\\Program Files\\Git\\bin", "FPS_BROWSER_APP_PROFILE_STRING": "Internet Explorer", "FPS_BROWSER_USER_PROFILE_STRING": "Default", "GATEWAY_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\gateway.vmoptions", "GOLAND_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\goland.vmoptions", "HOME": "C:\\Users\\jiangzhenxiang", "HOMEDRIVE": "C:", "HOMEPATH": "\\Users\\jiangzhenxiang", "IDEA_INITIAL_DIRECTORY": "C:\\Program Files\\JetBrains\\WebStorm 2022.1.2\\bin", "IDEA_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\idea.vmoptions", "INIT_CWD": "D:\\fe_force_graph", "JetBrains Gateway": "C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;", "JETBRAINSCLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrainsclient.vmoptions", "JETBRAINS_CLIENT_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\jetbrains_client.vmoptions", "LOCALAPPDATA": "C:\\Users\\jiangzhenxiang\\AppData\\Local", "LOGONSERVER": "\\\\SHBT-DC01", "MSYSTEM": "MINGW64", "NODE": "C:\\Program Files\\nodejs\\node.exe", "NODE_ENV": "production", "npm_config_access": "", "npm_config_allow_same_version": "", "npm_config_also": "", "npm_config_always_auth": "", "npm_config_argv": '{"remain":[],"cooked":["run","lib"],"original":["run","lib"]}', "npm_config_audit": "true", "npm_config_audit_level": "low", "npm_config_auth_type": "legacy", "npm_config_before": "", "npm_config_bin_links": "true", "npm_config_browser": "", "npm_config_ca": "", "npm_config_cache": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm-cache", "npm_config_cache_lock_retries": "10", "npm_config_cache_lock_stale": "60000", "npm_config_cache_lock_wait": "10000", "npm_config_cache_max": "Infinity", "npm_config_cache_min": "10", "npm_config_cafile": "", "npm_config_cert": "", "npm_config_cidr": "", "npm_config_color": "true", "npm_config_commit_hooks": "true", "npm_config_depth": "Infinity", "npm_config_description": "true", "npm_config_dev": "", "npm_config_dry_run": "", "npm_config_editor": "notepad.exe", "npm_config_engine_strict": "", "npm_config_fetch_retries": "2", "npm_config_fetch_retry_factor": "10", "npm_config_fetch_retry_maxtimeout": "60000", "npm_config_fetch_retry_mintimeout": "10000", "npm_config_force": "", "npm_config_format_package_lock": "true", "npm_config_fund": "true", "npm_config_git": "git", "npm_config_git_tag_version": "true", "npm_config_global": "", "npm_config_globalconfig": "C:\\Program Files\\nodejs\\etc\\npmrc", "npm_config_globalignorefile": "C:\\Program Files\\nodejs\\etc\\npmignore", "npm_config_global_style": "", "npm_config_group": "", "npm_config_ham_it_up": "", "npm_config_heading": "npm", "npm_config_https_proxy": "", "npm_config_if_present": "", "npm_config_ignore_prepublish": "", "npm_config_ignore_scripts": "", "npm_config_init_author_email": "", "npm_config_init_author_name": "", "npm_config_init_author_url": "", "npm_config_init_license": "ISC", "npm_config_init_module": "C:\\Users\\jiangzhenxiang\\.npm-init.js", "npm_config_init_version": "1.0.0", "npm_config_json": "", "npm_config_key": "", "npm_config_legacy_bundling": "", "npm_config_link": "", "npm_config_local_address": "", "npm_config_loglevel": "notice", "npm_config_logs_max": "10", "npm_config_long": "", "npm_config_maxsockets": "50", "npm_config_message": "%s", "npm_config_metrics_registry": "https://registry.npmjs.org/", "npm_config_node_gyp": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js", "npm_config_node_options": "", "npm_config_node_version": "14.19.0", "npm_config_noproxy": "", "npm_config_offline": "", "npm_config_onload_script": "", "npm_config_only": "", "npm_config_optional": "true", "npm_config_otp": "", "npm_config_package_lock": "true", "npm_config_package_lock_only": "", "npm_config_parseable": "", "npm_config_prefer_offline": "", "npm_config_prefer_online": "", "npm_config_prefix": "C:\\Program Files\\nodejs", "npm_config_preid": "", "npm_config_production": "", "npm_config_progress": "true", "npm_config_proxy": "", "npm_config_read_only": "", "npm_config_rebuild_bundle": "true", "npm_config_registry": "https://registry.npmjs.org/", "npm_config_rollback": "true", "npm_config_save": "true", "npm_config_save_bundle": "", "npm_config_save_dev": "", "npm_config_save_exact": "", "npm_config_save_optional": "", "npm_config_save_prefix": "^", "npm_config_save_prod": "", "npm_config_scope": "", "npm_config_scripts_prepend_node_path": "warn-only", "npm_config_script_shell": "", "npm_config_searchexclude": "", "npm_config_searchlimit": "20", "npm_config_searchopts": "", "npm_config_searchstaleness": "900", "npm_config_send_metrics": "", "npm_config_shell": "C:\\windows\\system32\\cmd.exe", "npm_config_shrinkwrap": "true", "npm_config_sign_git_commit": "", "npm_config_sign_git_tag": "", "npm_config_sso_poll_frequency": "500", "npm_config_sso_type": "oauth", "npm_config_strict_ssl": "true", "npm_config_tag": "latest", "npm_config_tag_version_prefix": "v", "npm_config_timing": "", "npm_config_tmp": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "npm_config_umask": "0000", "npm_config_unicode": "", "npm_config_unsafe_perm": "true", "npm_config_update_notifier": "true", "npm_config_usage": "", "npm_config_user": "", "npm_config_userconfig": "C:\\Users\\jiangzhenxiang\\.npmrc", "npm_config_user_agent": "npm/6.14.16 node/v14.19.0 win32 x64", "npm_config_version": "", "npm_config_versions": "", "npm_config_viewer": "browser", "npm_config__q_registry": "http://registry.npm.qiwoo.org", "npm_execpath": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\bin\\npm-cli.js", "npm_lifecycle_event": "lib", "npm_lifecycle_script": "vite build", "npm_node_execpath": "C:\\Program Files\\nodejs\\node.exe", "npm_package_author_name": "jason zhang", "npm_package_browserslist_0": "> 1%", "npm_package_browserslist_1": "last 2 versions", "npm_package_dependencies_core_js": "^3.29.1", "npm_package_dependencies_csv_parse": "^5.0.4", "npm_package_dependencies_d3": "^7.0.0", "npm_package_dependencies_d3_lasso": "0.0.5", "npm_package_dependencies_element_plus": "^2.3.0", "npm_package_dependencies_html2canvas": "^1.0.0-rc.7", "npm_package_dependencies_json2csv": "^5.0.7", "npm_package_dependencies_lodash": "^4.17.21", "npm_package_dependencies_mime_types": "^2.1.35", "npm_package_dependencies_minimist": "^1.2.6", "npm_package_dependencies_vue": "^3.2.47", "npm_package_dependencies_vue_clipboard3": "^2.0.0", "npm_package_dependencies_vue_router": "^4.1.6", "npm_package_dependencies__element_plus_icons_vue": "^2.1.0", "npm_package_description": "force_graph in security area", "npm_package_devDependencies_autoprefixer": "9.5.1", "npm_package_devDependencies_axios": "^0.21.1", "npm_package_devDependencies_babel_eslint": "^10.1.0", "npm_package_devDependencies_eslint": "^7.32.0", "npm_package_devDependencies_eslint_plugin_vue": "^8.0.3", "npm_package_devDependencies_imageinfo": "^1.0.4", "npm_package_devDependencies_qs": "^6.10.1", "npm_package_devDependencies_rollup_plugin_visualizer": "^5.9.0", "npm_package_devDependencies_sass": "^1.59.2", "npm_package_devDependencies_svgo": "1.2.2", "npm_package_devDependencies_unplugin_auto_import": "^0.15.2", "npm_package_devDependencies_unplugin_vue_components": "^0.24.1", "npm_package_devDependencies_vite": "^4.1.4", "npm_package_devDependencies__originjs_vite_plugin_commonjs": "^1.0.3", "npm_package_devDependencies__q_qcdn": "^3.1.6", "npm_package_devDependencies__vitejs_plugin_vue": "^4.0.0", "npm_package_engines_node": ">=8.9", "npm_package_engines_npm": ">= 3.0.0", "npm_package_exports___import": "./lib/vue-safe-force-graph.js", "npm_package_exports___require": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_exports____": "./*", "npm_package_files_0": "/lib/", "npm_package_gitHead": "029e90d5378cfdf1a7dce4f487278c809ddcd470", "npm_package_license": "MIT", "npm_package_main": "./lib/vue-safe-force-graph.umd.cjs", "npm_package_module": "./lib/vue-safe-force-graph.js", "npm_package_name": "vue-safe-force-graph", "npm_package_readmeFilename": "README.md", "npm_package_scripts_build": "vite build", "npm_package_scripts_changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "npm_package_scripts_dev": "vite", "npm_package_scripts_devforce": "vite --force", "npm_package_scripts_dev_base64": "vite --mode development_base64", "npm_package_scripts_imageToBase64": "node qcdn.js --buildtype=base64", "npm_package_scripts_imageToCdn": "node qcdn.js", "npm_package_scripts_lib": "vite build", "npm_package_scripts_lib_base64": "vite build --mode production_base64", "npm_package_scripts_lint": "eslint --ext .js,.vue src", "npm_package_scripts_lintFix": "eslint --fix --ext .js,.vue src", "npm_package_scripts_p": "npm run imageToCdn && npm run patch && npm run lib && npm publish", "npm_package_scripts_patch": 'npm version patch -m "Upgrade to %s "', "npm_package_scripts_patch_base64": 'npm version patch -m "Upgrade to %s for base64"', "npm_package_scripts_p_base64": "npm run imageToBase64 && npm run patch:base64 && npm run lib:base64 && npm publish", "npm_package_scripts_svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", "npm_package_type": "module", "npm_package_version": "1.0.14", "NUMBER_OF_PROCESSORS": "8", "NVM_HOME": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm", "NVM_SYMLINK": "C:\\Program Files\\nodejs", "OneDrive": "C:\\Users\\jiangzhenxiang\\OneDrive", "OneDriveConsumer": "C:\\Users\\jiangzhenxiang\\OneDrive", "OS": "Windows_NT", "PATH": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "Path": "C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm\\v14.19.0\\node_modules\\npm\\node_modules\\npm-lifecycle\\node-gyp-bin;D:\\fe_force_graph\\node_modules\\.bin;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Users\\jiangzhenxiang\\bin;C:\\windows\\system32;C:\\windows;C:\\windows\\System32\\Wbem;C:\\windows\\System32\\WindowsPowerShell\\v1.0;C:\\windows\\System32\\OpenSSH;C:\\Program Files (x86)\\Enterprise Vault\\EVClient\\x64;C:\\Program Files\\PuTTY;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Program Files\\dotnet;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\Neovim\\bin;C:\\Program Files (x86)\\starship\\bin;C:\\Program Files\\Git\\cmd;C:\\Users\\jiangzhenxiang\\scoop\\shims;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\npm;C:\\Users\\jiangzhenxiang\\AppData\\Roaming\\nvm;C:\\Program Files\\nodejs;C:\\Windows\\System32\\WindowsPowerShell\\v1.0;C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;C:\\Program Files\\JetBrains\\JetBrains Gateway 222.3153.1\\bin;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Hyper\\resources\\bin;C:\\Users\\jiangzhenxiang\\.babun;C:\\Users\\jiangzhenxiang\\AppData\\Local\\Programs\\Fiddler;D:\\fe_force_graph\\node_modules\\.bin", "PATHEXT": ".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JSE;.WSF;.WSH;.MSC", "PHPSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\phpstorm.vmoptions", "PLINK_PROTOCOL": "ssh", "PROCESSOR_ARCHITECTURE": "AMD64", "PROCESSOR_IDENTIFIER": "Intel64 Family 6 Model 140 Stepping 1, GenuineIntel", "PROCESSOR_LEVEL": "6", "PROCESSOR_REVISION": "8c01", "ProgramData": "C:\\ProgramData", "PROGRAMFILES": "C:\\Program Files", "ProgramFiles(x86)": "C:\\Program Files (x86)", "ProgramW6432": "C:\\Program Files", "PROMPT": "$P$G", "PSModulePath": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\windows\\system32\\WindowsPowerShell\\v1.0\\Modules", "PUBLIC": "C:\\Users\\Public", "PWD": "D:/fe_force_graph", "PYCHARM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\pycharm.vmoptions", "RIDER_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rider.vmoptions", "RUBYMINE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\rubymine.vmoptions", "SESSIONNAME": "Console", "SHLVL": "2", "STARSHIP_SESSION_KEY": "8292254721606323", "STARSHIP_SHELL": "bash", "STUDIO_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\studio.vmoptions", "SYSTEMDRIVE": "C:", "SYSTEMROOT": "C:\\windows", "TEMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "TERM": "xterm-256color", "TERMINAL_EMULATOR": "JetBrains-JediTerm", "TERM_SESSION_ID": "228e5e49-7d1f-430c-ab78-a18fc97437e1", "TMP": "C:\\Users\\JIANGZ~1\\AppData\\Local\\Temp", "USERDNSDOMAIN": "CORP.QIHOO.NET", "USERDOMAIN": "CORP", "USERDOMAIN_ROAMINGPROFILE": "CORP", "USERNAME": "jiangzhenxiang", "USERPROFILE": "C:\\Users\\jiangzhenxiang", "WEBIDE_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webide.vmoptions", "WebStorm": "C:\\Program Files\\JetBrains\\WebStorm 2021.3.1\\bin;", "WEBSTORM_VM_OPTIONS": "C:\\Users\\jiangzhenxiang\\Downloads\\jetbra\\vmoptions\\webstorm.vmoptions", "WINDIR": "C:\\windows", "ZES_ENABLE_SYSMAN": "1", "_": "C:/Program Files/nodejs/node.exe", "_prog": "node", "__INTELLIJ_COMMAND_HISTFILE__": "C:\\Users\\jiangzhenxiang\\AppData\\Local\\JetBrains\\WebStorm2022.1\\terminal\\history\\fe_force_graph-history" }.NODE_ENV !== "production" && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
4565
4613
|
warning = function warning3(type4, errors) {
|
|
4566
4614
|
if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
|
|
4567
4615
|
if (errors.every(function(e) {
|
|
@@ -5643,11 +5691,11 @@ var FormLabelWrap = defineComponent({
|
|
|
5643
5691
|
};
|
|
5644
5692
|
}
|
|
5645
5693
|
});
|
|
5646
|
-
const _hoisted_1$
|
|
5694
|
+
const _hoisted_1$T = ["role", "aria-labelledby"];
|
|
5647
5695
|
const __default__$q = defineComponent({
|
|
5648
5696
|
name: "ElFormItem"
|
|
5649
5697
|
});
|
|
5650
|
-
const _sfc_main$
|
|
5698
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
5651
5699
|
...__default__$q,
|
|
5652
5700
|
props: formItemProps,
|
|
5653
5701
|
setup(__props, { expose }) {
|
|
@@ -5939,11 +5987,11 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5939
5987
|
_: 3
|
|
5940
5988
|
}, 8, ["name"])
|
|
5941
5989
|
], 6)
|
|
5942
|
-
], 10, _hoisted_1$
|
|
5990
|
+
], 10, _hoisted_1$T);
|
|
5943
5991
|
};
|
|
5944
5992
|
}
|
|
5945
5993
|
});
|
|
5946
|
-
var FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
5994
|
+
var FormItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$1c, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);
|
|
5947
5995
|
const ElForm = withInstall(Form, {
|
|
5948
5996
|
FormItem
|
|
5949
5997
|
});
|
|
@@ -6121,14 +6169,14 @@ const inputEmits = {
|
|
|
6121
6169
|
compositionupdate: (evt) => evt instanceof CompositionEvent,
|
|
6122
6170
|
compositionend: (evt) => evt instanceof CompositionEvent
|
|
6123
6171
|
};
|
|
6124
|
-
const _hoisted_1$
|
|
6125
|
-
const _hoisted_2$
|
|
6126
|
-
const _hoisted_3$
|
|
6172
|
+
const _hoisted_1$S = ["role"];
|
|
6173
|
+
const _hoisted_2$F = ["id", "type", "disabled", "formatter", "parser", "readonly", "autocomplete", "tabindex", "aria-label", "placeholder", "form"];
|
|
6174
|
+
const _hoisted_3$y = ["id", "tabindex", "disabled", "readonly", "autocomplete", "aria-label", "placeholder", "form"];
|
|
6127
6175
|
const __default__$p = defineComponent({
|
|
6128
6176
|
name: "ElInput",
|
|
6129
6177
|
inheritAttrs: false
|
|
6130
6178
|
});
|
|
6131
|
-
const _sfc_main$
|
|
6179
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
6132
6180
|
...__default__$p,
|
|
6133
6181
|
props: inputProps,
|
|
6134
6182
|
emits: inputEmits,
|
|
@@ -6424,7 +6472,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
6424
6472
|
onBlur: handleBlur,
|
|
6425
6473
|
onChange: handleChange,
|
|
6426
6474
|
onKeydown: handleKeydown
|
|
6427
|
-
}), null, 16, _hoisted_2$
|
|
6475
|
+
}), null, 16, _hoisted_2$F),
|
|
6428
6476
|
createCommentVNode(" suffix slot "),
|
|
6429
6477
|
unref(suffixVisible) ? (openBlock(), createElementBlock("span", {
|
|
6430
6478
|
key: 1,
|
|
@@ -6522,20 +6570,20 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
6522
6570
|
onBlur: handleBlur,
|
|
6523
6571
|
onChange: handleChange,
|
|
6524
6572
|
onKeydown: handleKeydown
|
|
6525
|
-
}), null, 16, _hoisted_3$
|
|
6573
|
+
}), null, 16, _hoisted_3$y),
|
|
6526
6574
|
unref(isWordLimitVisible) ? (openBlock(), createElementBlock("span", {
|
|
6527
6575
|
key: 0,
|
|
6528
6576
|
style: normalizeStyle(countStyle.value),
|
|
6529
6577
|
class: normalizeClass(unref(nsInput).e("count"))
|
|
6530
6578
|
}, toDisplayString(unref(textLength)) + " / " + toDisplayString(unref(attrs).maxlength), 7)) : createCommentVNode("v-if", true)
|
|
6531
6579
|
], 64))
|
|
6532
|
-
], 16, _hoisted_1$
|
|
6580
|
+
], 16, _hoisted_1$S)), [
|
|
6533
6581
|
[vShow, _ctx.type !== "hidden"]
|
|
6534
6582
|
]);
|
|
6535
6583
|
};
|
|
6536
6584
|
}
|
|
6537
6585
|
});
|
|
6538
|
-
var Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
6586
|
+
var Input = /* @__PURE__ */ _export_sfc$1(_sfc_main$1b, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);
|
|
6539
6587
|
const ElInput = withInstall(Input);
|
|
6540
6588
|
const GAP = 4;
|
|
6541
6589
|
const BAR_MAP = {
|
|
@@ -6580,7 +6628,7 @@ const thumbProps = buildProps({
|
|
|
6580
6628
|
always: Boolean
|
|
6581
6629
|
});
|
|
6582
6630
|
const COMPONENT_NAME$3 = "Thumb";
|
|
6583
|
-
const _sfc_main$
|
|
6631
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
6584
6632
|
__name: "thumb",
|
|
6585
6633
|
props: thumbProps,
|
|
6586
6634
|
setup(__props) {
|
|
@@ -6699,7 +6747,7 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
6699
6747
|
};
|
|
6700
6748
|
}
|
|
6701
6749
|
});
|
|
6702
|
-
var Thumb = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
6750
|
+
var Thumb = /* @__PURE__ */ _export_sfc$1(_sfc_main$1a, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);
|
|
6703
6751
|
const barProps = buildProps({
|
|
6704
6752
|
always: {
|
|
6705
6753
|
type: Boolean,
|
|
@@ -6716,7 +6764,7 @@ const barProps = buildProps({
|
|
|
6716
6764
|
default: 1
|
|
6717
6765
|
}
|
|
6718
6766
|
});
|
|
6719
|
-
const _sfc_main$
|
|
6767
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
6720
6768
|
__name: "bar",
|
|
6721
6769
|
props: barProps,
|
|
6722
6770
|
setup(__props, { expose }) {
|
|
@@ -6753,7 +6801,7 @@ const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
|
6753
6801
|
};
|
|
6754
6802
|
}
|
|
6755
6803
|
});
|
|
6756
|
-
var Bar = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
6804
|
+
var Bar = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);
|
|
6757
6805
|
const scrollbarProps = buildProps({
|
|
6758
6806
|
height: {
|
|
6759
6807
|
type: [String, Number],
|
|
@@ -6804,7 +6852,7 @@ const COMPONENT_NAME$2 = "ElScrollbar";
|
|
|
6804
6852
|
const __default__$o = defineComponent({
|
|
6805
6853
|
name: COMPONENT_NAME$2
|
|
6806
6854
|
});
|
|
6807
|
-
const _sfc_main$
|
|
6855
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
6808
6856
|
...__default__$o,
|
|
6809
6857
|
props: scrollbarProps,
|
|
6810
6858
|
emits: scrollbarEmits,
|
|
@@ -6959,7 +7007,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6959
7007
|
};
|
|
6960
7008
|
}
|
|
6961
7009
|
});
|
|
6962
|
-
var Scrollbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
7010
|
+
var Scrollbar = /* @__PURE__ */ _export_sfc$1(_sfc_main$18, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);
|
|
6963
7011
|
const ElScrollbar = withInstall(Scrollbar);
|
|
6964
7012
|
const POPPER_INJECTION_KEY = Symbol("popper");
|
|
6965
7013
|
const POPPER_CONTENT_INJECTION_KEY = Symbol("popperContent");
|
|
@@ -6984,7 +7032,7 @@ const __default__$n = defineComponent({
|
|
|
6984
7032
|
name: "ElPopper",
|
|
6985
7033
|
inheritAttrs: false
|
|
6986
7034
|
});
|
|
6987
|
-
const _sfc_main$
|
|
7035
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
6988
7036
|
...__default__$n,
|
|
6989
7037
|
props: popperProps,
|
|
6990
7038
|
setup(__props, { expose }) {
|
|
@@ -7008,7 +7056,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
7008
7056
|
};
|
|
7009
7057
|
}
|
|
7010
7058
|
});
|
|
7011
|
-
var Popper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
7059
|
+
var Popper = /* @__PURE__ */ _export_sfc$1(_sfc_main$17, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);
|
|
7012
7060
|
const popperArrowProps = buildProps({
|
|
7013
7061
|
arrowOffset: {
|
|
7014
7062
|
type: Number,
|
|
@@ -7019,7 +7067,7 @@ const __default__$m = defineComponent({
|
|
|
7019
7067
|
name: "ElPopperArrow",
|
|
7020
7068
|
inheritAttrs: false
|
|
7021
7069
|
});
|
|
7022
|
-
const _sfc_main$
|
|
7070
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
7023
7071
|
...__default__$m,
|
|
7024
7072
|
props: popperArrowProps,
|
|
7025
7073
|
setup(__props, { expose }) {
|
|
@@ -7046,7 +7094,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
7046
7094
|
};
|
|
7047
7095
|
}
|
|
7048
7096
|
});
|
|
7049
|
-
var ElPopperArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
7097
|
+
var ElPopperArrow = /* @__PURE__ */ _export_sfc$1(_sfc_main$16, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);
|
|
7050
7098
|
const NAME = "ElOnlyChild";
|
|
7051
7099
|
const OnlyChild = defineComponent({
|
|
7052
7100
|
name: NAME,
|
|
@@ -7134,7 +7182,7 @@ const __default__$l = defineComponent({
|
|
|
7134
7182
|
name: "ElPopperTrigger",
|
|
7135
7183
|
inheritAttrs: false
|
|
7136
7184
|
});
|
|
7137
|
-
const _sfc_main$
|
|
7185
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
7138
7186
|
...__default__$l,
|
|
7139
7187
|
props: popperTriggerProps,
|
|
7140
7188
|
setup(__props, { expose }) {
|
|
@@ -7233,7 +7281,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
7233
7281
|
};
|
|
7234
7282
|
}
|
|
7235
7283
|
});
|
|
7236
|
-
var ElPopperTrigger = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
7284
|
+
var ElPopperTrigger = /* @__PURE__ */ _export_sfc$1(_sfc_main$15, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);
|
|
7237
7285
|
const FOCUS_AFTER_TRAPPED = "focus-trap.focus-after-trapped";
|
|
7238
7286
|
const FOCUS_AFTER_RELEASED = "focus-trap.focus-after-released";
|
|
7239
7287
|
const FOCUSOUT_PREVENTED = "focus-trap.focusout-prevented";
|
|
@@ -7380,7 +7428,7 @@ const createFocusOutPreventedEvent = (detail) => {
|
|
|
7380
7428
|
detail
|
|
7381
7429
|
});
|
|
7382
7430
|
};
|
|
7383
|
-
const _sfc_main$
|
|
7431
|
+
const _sfc_main$14 = defineComponent({
|
|
7384
7432
|
name: "ElFocusTrap",
|
|
7385
7433
|
inheritAttrs: false,
|
|
7386
7434
|
props: {
|
|
@@ -7616,10 +7664,10 @@ const _sfc_main$13 = defineComponent({
|
|
|
7616
7664
|
};
|
|
7617
7665
|
}
|
|
7618
7666
|
});
|
|
7619
|
-
function _sfc_render$
|
|
7667
|
+
function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
7620
7668
|
return renderSlot(_ctx.$slots, "default", { handleKeydown: _ctx.onKeydown });
|
|
7621
7669
|
}
|
|
7622
|
-
var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
7670
|
+
var ElFocusTrap = /* @__PURE__ */ _export_sfc$1(_sfc_main$14, [["render", _sfc_render$L], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);
|
|
7623
7671
|
const POSITIONING_STRATEGIES = ["fixed", "absolute"];
|
|
7624
7672
|
const popperCoreConfigProps = buildProps({
|
|
7625
7673
|
boundariesPadding: {
|
|
@@ -7907,7 +7955,7 @@ const usePopperContentFocusTrap = (props, emit) => {
|
|
|
7907
7955
|
const __default__$k = defineComponent({
|
|
7908
7956
|
name: "ElPopperContent"
|
|
7909
7957
|
});
|
|
7910
|
-
const _sfc_main$
|
|
7958
|
+
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
7911
7959
|
...__default__$k,
|
|
7912
7960
|
props: popperContentProps,
|
|
7913
7961
|
emits: popperContentEmits,
|
|
@@ -8024,7 +8072,7 @@ const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
|
8024
8072
|
};
|
|
8025
8073
|
}
|
|
8026
8074
|
});
|
|
8027
|
-
var ElPopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
8075
|
+
var ElPopperContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$13, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);
|
|
8028
8076
|
const ElPopper = withInstall(Popper);
|
|
8029
8077
|
const TOOLTIP_INJECTION_KEY = Symbol("elTooltip");
|
|
8030
8078
|
const useTooltipContentProps = buildProps({
|
|
@@ -8105,7 +8153,7 @@ const whenTrigger = (trigger, type4, handler) => {
|
|
|
8105
8153
|
const __default__$j = defineComponent({
|
|
8106
8154
|
name: "ElTooltipTrigger"
|
|
8107
8155
|
});
|
|
8108
|
-
const _sfc_main$
|
|
8156
|
+
const _sfc_main$12 = /* @__PURE__ */ defineComponent({
|
|
8109
8157
|
...__default__$j,
|
|
8110
8158
|
props: useTooltipTriggerProps,
|
|
8111
8159
|
setup(__props, { expose }) {
|
|
@@ -8165,12 +8213,12 @@ const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
|
8165
8213
|
};
|
|
8166
8214
|
}
|
|
8167
8215
|
});
|
|
8168
|
-
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
8216
|
+
var ElTooltipTrigger = /* @__PURE__ */ _export_sfc$1(_sfc_main$12, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);
|
|
8169
8217
|
const __default__$i = defineComponent({
|
|
8170
8218
|
name: "ElTooltipContent",
|
|
8171
8219
|
inheritAttrs: false
|
|
8172
8220
|
});
|
|
8173
|
-
const _sfc_main$
|
|
8221
|
+
const _sfc_main$11 = /* @__PURE__ */ defineComponent({
|
|
8174
8222
|
...__default__$i,
|
|
8175
8223
|
props: useTooltipContentProps,
|
|
8176
8224
|
setup(__props, { expose }) {
|
|
@@ -8329,13 +8377,13 @@ const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
|
8329
8377
|
};
|
|
8330
8378
|
}
|
|
8331
8379
|
});
|
|
8332
|
-
var ElTooltipContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
8333
|
-
const _hoisted_1$
|
|
8334
|
-
const _hoisted_2$
|
|
8380
|
+
var ElTooltipContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$11, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);
|
|
8381
|
+
const _hoisted_1$R = ["innerHTML"];
|
|
8382
|
+
const _hoisted_2$E = { key: 1 };
|
|
8335
8383
|
const __default__$h = defineComponent({
|
|
8336
8384
|
name: "ElTooltip"
|
|
8337
8385
|
});
|
|
8338
|
-
const _sfc_main
|
|
8386
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
8339
8387
|
...__default__$h,
|
|
8340
8388
|
props: useTooltipProps,
|
|
8341
8389
|
emits: tooltipEmits,
|
|
@@ -8472,7 +8520,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8472
8520
|
_ctx.rawContent ? (openBlock(), createElementBlock("span", {
|
|
8473
8521
|
key: 0,
|
|
8474
8522
|
innerHTML: _ctx.content
|
|
8475
|
-
}, null, 8, _hoisted_1$
|
|
8523
|
+
}, null, 8, _hoisted_1$R)) : (openBlock(), createElementBlock("span", _hoisted_2$E, toDisplayString(_ctx.content), 1))
|
|
8476
8524
|
]),
|
|
8477
8525
|
_ctx.showArrow ? (openBlock(), createBlock(unref(ElPopperArrow), {
|
|
8478
8526
|
key: 0,
|
|
@@ -8487,7 +8535,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
8487
8535
|
};
|
|
8488
8536
|
}
|
|
8489
8537
|
});
|
|
8490
|
-
var Tooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
8538
|
+
var Tooltip = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);
|
|
8491
8539
|
const ElTooltip = withInstall(Tooltip);
|
|
8492
8540
|
const badgeProps = buildProps({
|
|
8493
8541
|
value: {
|
|
@@ -8506,11 +8554,11 @@ const badgeProps = buildProps({
|
|
|
8506
8554
|
default: "danger"
|
|
8507
8555
|
}
|
|
8508
8556
|
});
|
|
8509
|
-
const _hoisted_1$
|
|
8557
|
+
const _hoisted_1$Q = ["textContent"];
|
|
8510
8558
|
const __default__$g = defineComponent({
|
|
8511
8559
|
name: "ElBadge"
|
|
8512
8560
|
});
|
|
8513
|
-
const _sfc_main
|
|
8561
|
+
const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
8514
8562
|
...__default__$g,
|
|
8515
8563
|
props: badgeProps,
|
|
8516
8564
|
setup(__props, { expose }) {
|
|
@@ -8545,7 +8593,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8545
8593
|
unref(ns).is("dot", _ctx.isDot)
|
|
8546
8594
|
]),
|
|
8547
8595
|
textContent: toDisplayString(unref(content))
|
|
8548
|
-
}, null, 10, _hoisted_1$
|
|
8596
|
+
}, null, 10, _hoisted_1$Q), [
|
|
8549
8597
|
[vShow, !_ctx.hidden && (unref(content) || _ctx.isDot)]
|
|
8550
8598
|
])
|
|
8551
8599
|
]),
|
|
@@ -8555,7 +8603,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
8555
8603
|
};
|
|
8556
8604
|
}
|
|
8557
8605
|
});
|
|
8558
|
-
var Badge = /* @__PURE__ */ _export_sfc$1(_sfc_main
|
|
8606
|
+
var Badge = /* @__PURE__ */ _export_sfc$1(_sfc_main$$, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
|
|
8559
8607
|
const ElBadge = withInstall(Badge);
|
|
8560
8608
|
const buttonGroupContextKey = Symbol("buttonGroupContextKey");
|
|
8561
8609
|
const useButton = (props, emit) => {
|
|
@@ -9590,11 +9638,11 @@ function useButtonCustomStyle(props) {
|
|
|
9590
9638
|
return styles;
|
|
9591
9639
|
});
|
|
9592
9640
|
}
|
|
9593
|
-
const _hoisted_1$
|
|
9641
|
+
const _hoisted_1$P = ["aria-disabled", "disabled", "autofocus", "type"];
|
|
9594
9642
|
const __default__$f = defineComponent({
|
|
9595
9643
|
name: "ElButton"
|
|
9596
9644
|
});
|
|
9597
|
-
const _sfc_main$
|
|
9645
|
+
const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
9598
9646
|
...__default__$f,
|
|
9599
9647
|
props: buttonProps,
|
|
9600
9648
|
emits: buttonEmits,
|
|
@@ -9656,11 +9704,11 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
9656
9704
|
}, [
|
|
9657
9705
|
renderSlot(_ctx.$slots, "default")
|
|
9658
9706
|
], 2)) : createCommentVNode("v-if", true)
|
|
9659
|
-
], 14, _hoisted_1$
|
|
9707
|
+
], 14, _hoisted_1$P);
|
|
9660
9708
|
};
|
|
9661
9709
|
}
|
|
9662
9710
|
});
|
|
9663
|
-
var Button = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9711
|
+
var Button = /* @__PURE__ */ _export_sfc$1(_sfc_main$_, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);
|
|
9664
9712
|
const buttonGroupProps = {
|
|
9665
9713
|
size: buttonProps.size,
|
|
9666
9714
|
type: buttonProps.type
|
|
@@ -9668,7 +9716,7 @@ const buttonGroupProps = {
|
|
|
9668
9716
|
const __default__$e = defineComponent({
|
|
9669
9717
|
name: "ElButtonGroup"
|
|
9670
9718
|
});
|
|
9671
|
-
const _sfc_main$
|
|
9719
|
+
const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
9672
9720
|
...__default__$e,
|
|
9673
9721
|
props: buttonGroupProps,
|
|
9674
9722
|
setup(__props) {
|
|
@@ -9687,7 +9735,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
9687
9735
|
};
|
|
9688
9736
|
}
|
|
9689
9737
|
});
|
|
9690
|
-
var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9738
|
+
var ButtonGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$Z, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);
|
|
9691
9739
|
const ElButton = withInstall(Button, {
|
|
9692
9740
|
ButtonGroup
|
|
9693
9741
|
});
|
|
@@ -9761,6 +9809,53 @@ const ClickOutside = {
|
|
|
9761
9809
|
nodeList.delete(el);
|
|
9762
9810
|
}
|
|
9763
9811
|
};
|
|
9812
|
+
const FOCUSABLE_CHILDREN = "_trap-focus-children";
|
|
9813
|
+
const FOCUS_STACK = [];
|
|
9814
|
+
const FOCUS_HANDLER = (e) => {
|
|
9815
|
+
if (FOCUS_STACK.length === 0)
|
|
9816
|
+
return;
|
|
9817
|
+
const focusableElement = FOCUS_STACK[FOCUS_STACK.length - 1][FOCUSABLE_CHILDREN];
|
|
9818
|
+
if (focusableElement.length > 0 && e.code === EVENT_CODE.tab) {
|
|
9819
|
+
if (focusableElement.length === 1) {
|
|
9820
|
+
e.preventDefault();
|
|
9821
|
+
if (document.activeElement !== focusableElement[0]) {
|
|
9822
|
+
focusableElement[0].focus();
|
|
9823
|
+
}
|
|
9824
|
+
return;
|
|
9825
|
+
}
|
|
9826
|
+
const goingBackward = e.shiftKey;
|
|
9827
|
+
const isFirst = e.target === focusableElement[0];
|
|
9828
|
+
const isLast = e.target === focusableElement[focusableElement.length - 1];
|
|
9829
|
+
if (isFirst && goingBackward) {
|
|
9830
|
+
e.preventDefault();
|
|
9831
|
+
focusableElement[focusableElement.length - 1].focus();
|
|
9832
|
+
}
|
|
9833
|
+
if (isLast && !goingBackward) {
|
|
9834
|
+
e.preventDefault();
|
|
9835
|
+
focusableElement[0].focus();
|
|
9836
|
+
}
|
|
9837
|
+
}
|
|
9838
|
+
};
|
|
9839
|
+
const TrapFocus = {
|
|
9840
|
+
beforeMount(el) {
|
|
9841
|
+
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
9842
|
+
FOCUS_STACK.push(el);
|
|
9843
|
+
if (FOCUS_STACK.length <= 1) {
|
|
9844
|
+
document.addEventListener("keydown", FOCUS_HANDLER);
|
|
9845
|
+
}
|
|
9846
|
+
},
|
|
9847
|
+
updated(el) {
|
|
9848
|
+
nextTick(() => {
|
|
9849
|
+
el[FOCUSABLE_CHILDREN] = obtainAllFocusableElements$1(el);
|
|
9850
|
+
});
|
|
9851
|
+
},
|
|
9852
|
+
unmounted() {
|
|
9853
|
+
FOCUS_STACK.shift();
|
|
9854
|
+
if (FOCUS_STACK.length === 0) {
|
|
9855
|
+
document.removeEventListener("keydown", FOCUS_HANDLER);
|
|
9856
|
+
}
|
|
9857
|
+
}
|
|
9858
|
+
};
|
|
9764
9859
|
const radioPropsBase = buildProps({
|
|
9765
9860
|
size: useSizeProp,
|
|
9766
9861
|
disabled: Boolean,
|
|
@@ -9820,11 +9915,11 @@ const useRadio = (props, emit) => {
|
|
|
9820
9915
|
modelValue
|
|
9821
9916
|
};
|
|
9822
9917
|
};
|
|
9823
|
-
const _hoisted_1$
|
|
9918
|
+
const _hoisted_1$O = ["value", "name", "disabled"];
|
|
9824
9919
|
const __default__$d = defineComponent({
|
|
9825
9920
|
name: "ElRadio"
|
|
9826
9921
|
});
|
|
9827
|
-
const _sfc_main$
|
|
9922
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
9828
9923
|
...__default__$d,
|
|
9829
9924
|
props: radioProps,
|
|
9830
9925
|
emits: radioEmits,
|
|
@@ -9866,7 +9961,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9866
9961
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
9867
9962
|
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false),
|
|
9868
9963
|
onChange: handleChange
|
|
9869
|
-
}, null, 42, _hoisted_1$
|
|
9964
|
+
}, null, 42, _hoisted_1$O), [
|
|
9870
9965
|
[vModelRadio, unref(modelValue)]
|
|
9871
9966
|
]),
|
|
9872
9967
|
createElementVNode("span", {
|
|
@@ -9886,7 +9981,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
9886
9981
|
};
|
|
9887
9982
|
}
|
|
9888
9983
|
});
|
|
9889
|
-
var Radio = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
9984
|
+
var Radio = /* @__PURE__ */ _export_sfc$1(_sfc_main$Y, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);
|
|
9890
9985
|
const radioButtonProps = buildProps({
|
|
9891
9986
|
...radioPropsBase,
|
|
9892
9987
|
name: {
|
|
@@ -9894,11 +9989,11 @@ const radioButtonProps = buildProps({
|
|
|
9894
9989
|
default: ""
|
|
9895
9990
|
}
|
|
9896
9991
|
});
|
|
9897
|
-
const _hoisted_1$
|
|
9992
|
+
const _hoisted_1$N = ["value", "name", "disabled"];
|
|
9898
9993
|
const __default__$c = defineComponent({
|
|
9899
9994
|
name: "ElRadioButton"
|
|
9900
9995
|
});
|
|
9901
|
-
const _sfc_main$
|
|
9996
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
9902
9997
|
...__default__$c,
|
|
9903
9998
|
props: radioButtonProps,
|
|
9904
9999
|
setup(__props) {
|
|
@@ -9935,7 +10030,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9935
10030
|
disabled: unref(disabled),
|
|
9936
10031
|
onFocus: _cache[1] || (_cache[1] = ($event) => focus.value = true),
|
|
9937
10032
|
onBlur: _cache[2] || (_cache[2] = ($event) => focus.value = false)
|
|
9938
|
-
}, null, 42, _hoisted_1$
|
|
10033
|
+
}, null, 42, _hoisted_1$N), [
|
|
9939
10034
|
[vModelRadio, unref(modelValue)]
|
|
9940
10035
|
]),
|
|
9941
10036
|
createElementVNode("span", {
|
|
@@ -9952,7 +10047,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
9952
10047
|
};
|
|
9953
10048
|
}
|
|
9954
10049
|
});
|
|
9955
|
-
var RadioButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10050
|
+
var RadioButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$X, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);
|
|
9956
10051
|
const radioGroupProps = buildProps({
|
|
9957
10052
|
id: {
|
|
9958
10053
|
type: String,
|
|
@@ -9986,11 +10081,11 @@ const radioGroupProps = buildProps({
|
|
|
9986
10081
|
}
|
|
9987
10082
|
});
|
|
9988
10083
|
const radioGroupEmits = radioEmits;
|
|
9989
|
-
const _hoisted_1$
|
|
10084
|
+
const _hoisted_1$M = ["id", "aria-label", "aria-labelledby"];
|
|
9990
10085
|
const __default__$b = defineComponent({
|
|
9991
10086
|
name: "ElRadioGroup"
|
|
9992
10087
|
});
|
|
9993
|
-
const _sfc_main$
|
|
10088
|
+
const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
9994
10089
|
...__default__$b,
|
|
9995
10090
|
props: radioGroupProps,
|
|
9996
10091
|
emits: radioGroupEmits,
|
|
@@ -10038,11 +10133,11 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
10038
10133
|
"aria-labelledby": unref(isLabeledByFormItem) ? unref(formItem).labelId : void 0
|
|
10039
10134
|
}, [
|
|
10040
10135
|
renderSlot(_ctx.$slots, "default")
|
|
10041
|
-
], 10, _hoisted_1$
|
|
10136
|
+
], 10, _hoisted_1$M);
|
|
10042
10137
|
};
|
|
10043
10138
|
}
|
|
10044
10139
|
});
|
|
10045
|
-
var RadioGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10140
|
+
var RadioGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$W, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);
|
|
10046
10141
|
const ElRadio = withInstall(Radio, {
|
|
10047
10142
|
RadioButton,
|
|
10048
10143
|
RadioGroup
|
|
@@ -10081,7 +10176,7 @@ const tagEmits = {
|
|
|
10081
10176
|
const __default__$a = defineComponent({
|
|
10082
10177
|
name: "ElTag"
|
|
10083
10178
|
});
|
|
10084
|
-
const _sfc_main$
|
|
10179
|
+
const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
10085
10180
|
...__default__$a,
|
|
10086
10181
|
props: tagProps,
|
|
10087
10182
|
emits: tagEmits,
|
|
@@ -10162,7 +10257,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
10162
10257
|
};
|
|
10163
10258
|
}
|
|
10164
10259
|
});
|
|
10165
|
-
var Tag = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10260
|
+
var Tag = /* @__PURE__ */ _export_sfc$1(_sfc_main$V, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);
|
|
10166
10261
|
const ElTag = withInstall(Tag);
|
|
10167
10262
|
const overlayProps = buildProps({
|
|
10168
10263
|
mask: {
|
|
@@ -10259,10 +10354,10 @@ const dialogContentProps = buildProps({
|
|
|
10259
10354
|
const dialogContentEmits = {
|
|
10260
10355
|
close: () => true
|
|
10261
10356
|
};
|
|
10262
|
-
const _hoisted_1$
|
|
10263
|
-
const _hoisted_2$
|
|
10357
|
+
const _hoisted_1$L = ["aria-label"];
|
|
10358
|
+
const _hoisted_2$D = ["id"];
|
|
10264
10359
|
const __default__$9 = defineComponent({ name: "ElDialogContent" });
|
|
10265
|
-
const _sfc_main$
|
|
10360
|
+
const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
10266
10361
|
...__default__$9,
|
|
10267
10362
|
props: dialogContentProps,
|
|
10268
10363
|
emits: dialogContentEmits,
|
|
@@ -10315,14 +10410,14 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10315
10410
|
]),
|
|
10316
10411
|
_: 1
|
|
10317
10412
|
}, 8, ["class"])
|
|
10318
|
-
], 10, _hoisted_1$
|
|
10413
|
+
], 10, _hoisted_1$L)) : createCommentVNode("v-if", true)
|
|
10319
10414
|
], 2),
|
|
10320
10415
|
createElementVNode("div", {
|
|
10321
10416
|
id: unref(bodyId),
|
|
10322
10417
|
class: normalizeClass(unref(ns).e("body"))
|
|
10323
10418
|
}, [
|
|
10324
10419
|
renderSlot(_ctx.$slots, "default")
|
|
10325
|
-
], 10, _hoisted_2$
|
|
10420
|
+
], 10, _hoisted_2$D),
|
|
10326
10421
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("footer", {
|
|
10327
10422
|
key: 0,
|
|
10328
10423
|
class: normalizeClass(unref(ns).e("footer"))
|
|
@@ -10333,7 +10428,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
10333
10428
|
};
|
|
10334
10429
|
}
|
|
10335
10430
|
});
|
|
10336
|
-
var ElDialogContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10431
|
+
var ElDialogContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$U, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);
|
|
10337
10432
|
const dialogProps = buildProps({
|
|
10338
10433
|
...dialogContentProps,
|
|
10339
10434
|
appendToBody: {
|
|
@@ -10566,12 +10661,12 @@ const useDialog = (props, targetRef) => {
|
|
|
10566
10661
|
zIndex: zIndex2
|
|
10567
10662
|
};
|
|
10568
10663
|
};
|
|
10569
|
-
const _hoisted_1$
|
|
10664
|
+
const _hoisted_1$K = ["aria-label", "aria-labelledby", "aria-describedby"];
|
|
10570
10665
|
const __default__$8 = defineComponent({
|
|
10571
10666
|
name: "ElDialog",
|
|
10572
10667
|
inheritAttrs: false
|
|
10573
10668
|
});
|
|
10574
|
-
const _sfc_main$
|
|
10669
|
+
const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
10575
10670
|
...__default__$8,
|
|
10576
10671
|
props: dialogProps,
|
|
10577
10672
|
emits: dialogEmits,
|
|
@@ -10709,7 +10804,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10709
10804
|
]),
|
|
10710
10805
|
_: 3
|
|
10711
10806
|
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
10712
|
-
], 46, _hoisted_1$
|
|
10807
|
+
], 46, _hoisted_1$K)
|
|
10713
10808
|
]),
|
|
10714
10809
|
_: 3
|
|
10715
10810
|
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
@@ -10722,7 +10817,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
10722
10817
|
};
|
|
10723
10818
|
}
|
|
10724
10819
|
});
|
|
10725
|
-
var Dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10820
|
+
var Dialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$T, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);
|
|
10726
10821
|
const ElDialog = withInstall(Dialog);
|
|
10727
10822
|
const dividerProps = buildProps({
|
|
10728
10823
|
direction: {
|
|
@@ -10743,7 +10838,7 @@ const dividerProps = buildProps({
|
|
|
10743
10838
|
const __default__$7 = defineComponent({
|
|
10744
10839
|
name: "ElDivider"
|
|
10745
10840
|
});
|
|
10746
|
-
const _sfc_main$
|
|
10841
|
+
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
10747
10842
|
...__default__$7,
|
|
10748
10843
|
props: dividerProps,
|
|
10749
10844
|
setup(__props) {
|
|
@@ -10770,23 +10865,23 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
|
10770
10865
|
};
|
|
10771
10866
|
}
|
|
10772
10867
|
});
|
|
10773
|
-
var Divider = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10868
|
+
var Divider = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);
|
|
10774
10869
|
const ElDivider = withInstall(Divider);
|
|
10775
|
-
const _sfc_main$
|
|
10870
|
+
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
10776
10871
|
inheritAttrs: false
|
|
10777
10872
|
});
|
|
10778
|
-
function _sfc_render$
|
|
10873
|
+
function _sfc_render$K(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10779
10874
|
return renderSlot(_ctx.$slots, "default");
|
|
10780
10875
|
}
|
|
10781
|
-
var Collection = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10782
|
-
const _sfc_main$
|
|
10876
|
+
var Collection = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$K], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);
|
|
10877
|
+
const _sfc_main$Q = /* @__PURE__ */ defineComponent({
|
|
10783
10878
|
name: "ElCollectionItem",
|
|
10784
10879
|
inheritAttrs: false
|
|
10785
10880
|
});
|
|
10786
|
-
function _sfc_render$
|
|
10881
|
+
function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
|
|
10787
10882
|
return renderSlot(_ctx.$slots, "default");
|
|
10788
10883
|
}
|
|
10789
|
-
var CollectionItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
10884
|
+
var CollectionItem = /* @__PURE__ */ _export_sfc$1(_sfc_main$Q, [["render", _sfc_render$J], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);
|
|
10790
10885
|
const COLLECTION_ITEM_SIGN = `data-el-collection-item`;
|
|
10791
10886
|
const createCollectionWithScope = (name2) => {
|
|
10792
10887
|
const COLLECTION_NAME = `El${name2}Collection`;
|
|
@@ -11019,7 +11114,7 @@ function useOption(props, states) {
|
|
|
11019
11114
|
hoverItem
|
|
11020
11115
|
};
|
|
11021
11116
|
}
|
|
11022
|
-
const _sfc_main$
|
|
11117
|
+
const _sfc_main$P = defineComponent({
|
|
11023
11118
|
name: "ElOption",
|
|
11024
11119
|
componentName: "ElOption",
|
|
11025
11120
|
props: {
|
|
@@ -11080,7 +11175,7 @@ const _sfc_main$O = defineComponent({
|
|
|
11080
11175
|
};
|
|
11081
11176
|
}
|
|
11082
11177
|
});
|
|
11083
|
-
function _sfc_render$
|
|
11178
|
+
function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11084
11179
|
return withDirectives((openBlock(), createElementBlock("li", {
|
|
11085
11180
|
class: normalizeClass([
|
|
11086
11181
|
_ctx.ns.be("dropdown", "item"),
|
|
@@ -11100,8 +11195,8 @@ function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11100
11195
|
[vShow, _ctx.visible]
|
|
11101
11196
|
]);
|
|
11102
11197
|
}
|
|
11103
|
-
var Option = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11104
|
-
const _sfc_main$
|
|
11198
|
+
var Option = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$I], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);
|
|
11199
|
+
const _sfc_main$O = defineComponent({
|
|
11105
11200
|
name: "ElSelectDropdown",
|
|
11106
11201
|
componentName: "ElSelectDropdown",
|
|
11107
11202
|
setup() {
|
|
@@ -11128,7 +11223,7 @@ const _sfc_main$N = defineComponent({
|
|
|
11128
11223
|
};
|
|
11129
11224
|
}
|
|
11130
11225
|
});
|
|
11131
|
-
function _sfc_render$
|
|
11226
|
+
function _sfc_render$H(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11132
11227
|
return openBlock(), createElementBlock("div", {
|
|
11133
11228
|
class: normalizeClass([_ctx.ns.b("dropdown"), _ctx.ns.is("multiple", _ctx.isMultiple), _ctx.popperClass]),
|
|
11134
11229
|
style: normalizeStyle({ [_ctx.isFitInputWidth ? "width" : "minWidth"]: _ctx.minWidth })
|
|
@@ -11136,7 +11231,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11136
11231
|
renderSlot(_ctx.$slots, "default")
|
|
11137
11232
|
], 6);
|
|
11138
11233
|
}
|
|
11139
|
-
var ElSelectMenu = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
11234
|
+
var ElSelectMenu = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc_render$H], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);
|
|
11140
11235
|
function useSelectStates(props) {
|
|
11141
11236
|
const { t } = useLocale();
|
|
11142
11237
|
return reactive({
|
|
@@ -11902,7 +11997,7 @@ var ElOptions = defineComponent({
|
|
|
11902
11997
|
}
|
|
11903
11998
|
});
|
|
11904
11999
|
const COMPONENT_NAME$1 = "ElSelect";
|
|
11905
|
-
const _sfc_main$
|
|
12000
|
+
const _sfc_main$N = defineComponent({
|
|
11906
12001
|
name: COMPONENT_NAME$1,
|
|
11907
12002
|
componentName: COMPONENT_NAME$1,
|
|
11908
12003
|
components: {
|
|
@@ -12251,10 +12346,10 @@ const _sfc_main$M = defineComponent({
|
|
|
12251
12346
|
};
|
|
12252
12347
|
}
|
|
12253
12348
|
});
|
|
12254
|
-
const _hoisted_1$
|
|
12255
|
-
const _hoisted_2$
|
|
12256
|
-
const _hoisted_3$
|
|
12257
|
-
function _sfc_render$
|
|
12349
|
+
const _hoisted_1$J = ["disabled", "autocomplete"];
|
|
12350
|
+
const _hoisted_2$C = ["disabled"];
|
|
12351
|
+
const _hoisted_3$x = { style: { "height": "100%", "display": "flex", "justify-content": "center", "align-items": "center" } };
|
|
12352
|
+
function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12258
12353
|
const _component_el_tag = resolveComponent("el-tag");
|
|
12259
12354
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
12260
12355
|
const _component_el_icon = resolveComponent("el-icon");
|
|
@@ -12460,7 +12555,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12460
12555
|
onCompositionupdate: _cache[12] || (_cache[12] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
12461
12556
|
onCompositionend: _cache[13] || (_cache[13] = (...args) => _ctx.handleComposition && _ctx.handleComposition(...args)),
|
|
12462
12557
|
onInput: _cache[14] || (_cache[14] = (...args) => _ctx.debouncedQueryChange && _ctx.debouncedQueryChange(...args))
|
|
12463
|
-
}, null, 46, _hoisted_1$
|
|
12558
|
+
}, null, 46, _hoisted_1$J)), [
|
|
12464
12559
|
[vModelText, _ctx.query]
|
|
12465
12560
|
]) : createCommentVNode("v-if", true)
|
|
12466
12561
|
], 6)) : createCommentVNode("v-if", true),
|
|
@@ -12475,7 +12570,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12475
12570
|
]),
|
|
12476
12571
|
disabled: _ctx.selectDisabled,
|
|
12477
12572
|
type: "text"
|
|
12478
|
-
}, null, 10, _hoisted_2$
|
|
12573
|
+
}, null, 10, _hoisted_2$C)) : createCommentVNode("v-if", true),
|
|
12479
12574
|
createVNode(_component_el_input, {
|
|
12480
12575
|
id: _ctx.id,
|
|
12481
12576
|
ref: "reference",
|
|
@@ -12532,7 +12627,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12532
12627
|
_ctx.$slots.prefix ? {
|
|
12533
12628
|
name: "prefix",
|
|
12534
12629
|
fn: withCtx(() => [
|
|
12535
|
-
createElementVNode("div", _hoisted_3$
|
|
12630
|
+
createElementVNode("div", _hoisted_3$x, [
|
|
12536
12631
|
renderSlot(_ctx.$slots, "prefix")
|
|
12537
12632
|
])
|
|
12538
12633
|
])
|
|
@@ -12585,8 +12680,8 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12585
12680
|
[_directive_click_outside, _ctx.handleClose, _ctx.popperPaneRef]
|
|
12586
12681
|
]);
|
|
12587
12682
|
}
|
|
12588
|
-
var Select = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
12589
|
-
const _sfc_main$
|
|
12683
|
+
var Select = /* @__PURE__ */ _export_sfc$1(_sfc_main$N, [["render", _sfc_render$G], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);
|
|
12684
|
+
const _sfc_main$M = defineComponent({
|
|
12590
12685
|
name: "ElOptionGroup",
|
|
12591
12686
|
componentName: "ElOptionGroup",
|
|
12592
12687
|
props: {
|
|
@@ -12632,7 +12727,7 @@ const _sfc_main$L = defineComponent({
|
|
|
12632
12727
|
};
|
|
12633
12728
|
}
|
|
12634
12729
|
});
|
|
12635
|
-
function _sfc_render$
|
|
12730
|
+
function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
12636
12731
|
return withDirectives((openBlock(), createElementBlock("ul", {
|
|
12637
12732
|
class: normalizeClass(_ctx.ns.be("group", "wrap"))
|
|
12638
12733
|
}, [
|
|
@@ -12650,7 +12745,7 @@ function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12650
12745
|
[vShow, _ctx.visible]
|
|
12651
12746
|
]);
|
|
12652
12747
|
}
|
|
12653
|
-
var OptionGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
12748
|
+
var OptionGroup = /* @__PURE__ */ _export_sfc$1(_sfc_main$M, [["render", _sfc_render$F], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);
|
|
12654
12749
|
const ElSelect = withInstall(Select, {
|
|
12655
12750
|
Option,
|
|
12656
12751
|
OptionGroup
|
|
@@ -12721,7 +12816,7 @@ const updateEventKeyRaw = `onUpdate:visible`;
|
|
|
12721
12816
|
const __default__$6 = defineComponent({
|
|
12722
12817
|
name: "ElPopover"
|
|
12723
12818
|
});
|
|
12724
|
-
const _sfc_main$
|
|
12819
|
+
const _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
12725
12820
|
...__default__$6,
|
|
12726
12821
|
props: popoverProps,
|
|
12727
12822
|
emits: popoverEmits,
|
|
@@ -12821,7 +12916,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
12821
12916
|
};
|
|
12822
12917
|
}
|
|
12823
12918
|
});
|
|
12824
|
-
var Popover$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
12919
|
+
var Popover$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$L, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);
|
|
12825
12920
|
const attachEvents = (el, binding) => {
|
|
12826
12921
|
const popperComponent = binding.arg || binding.value;
|
|
12827
12922
|
const popover = popperComponent == null ? void 0 : popperComponent.popperRef;
|
|
@@ -12899,15 +12994,15 @@ const progressProps = buildProps({
|
|
|
12899
12994
|
default: (percentage) => `${percentage}%`
|
|
12900
12995
|
}
|
|
12901
12996
|
});
|
|
12902
|
-
const _hoisted_1$
|
|
12903
|
-
const _hoisted_2$
|
|
12904
|
-
const _hoisted_3$
|
|
12997
|
+
const _hoisted_1$I = ["aria-valuenow"];
|
|
12998
|
+
const _hoisted_2$B = { viewBox: "0 0 100 100" };
|
|
12999
|
+
const _hoisted_3$w = ["d", "stroke", "stroke-width"];
|
|
12905
13000
|
const _hoisted_4$q = ["d", "stroke", "opacity", "stroke-linecap", "stroke-width"];
|
|
12906
13001
|
const _hoisted_5$g = { key: 0 };
|
|
12907
13002
|
const __default__$5 = defineComponent({
|
|
12908
13003
|
name: "ElProgress"
|
|
12909
13004
|
});
|
|
12910
|
-
const _sfc_main$
|
|
13005
|
+
const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
12911
13006
|
...__default__$5,
|
|
12912
13007
|
props: progressProps,
|
|
12913
13008
|
setup(__props) {
|
|
@@ -13054,7 +13149,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
13054
13149
|
class: normalizeClass(unref(ns).b("circle")),
|
|
13055
13150
|
style: normalizeStyle({ height: `${_ctx.width}px`, width: `${_ctx.width}px` })
|
|
13056
13151
|
}, [
|
|
13057
|
-
(openBlock(), createElementBlock("svg", _hoisted_2$
|
|
13152
|
+
(openBlock(), createElementBlock("svg", _hoisted_2$B, [
|
|
13058
13153
|
createElementVNode("path", {
|
|
13059
13154
|
class: normalizeClass(unref(ns).be("circle", "track")),
|
|
13060
13155
|
d: unref(trackPath),
|
|
@@ -13062,7 +13157,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
13062
13157
|
"stroke-width": unref(relativeStrokeWidth),
|
|
13063
13158
|
fill: "none",
|
|
13064
13159
|
style: normalizeStyle(unref(trailPathStyle))
|
|
13065
|
-
}, null, 14, _hoisted_3$
|
|
13160
|
+
}, null, 14, _hoisted_3$w),
|
|
13066
13161
|
createElementVNode("path", {
|
|
13067
13162
|
class: normalizeClass(unref(ns).be("circle", "path")),
|
|
13068
13163
|
d: unref(trackPath),
|
|
@@ -13089,11 +13184,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
13089
13184
|
}))
|
|
13090
13185
|
])
|
|
13091
13186
|
], 6)) : createCommentVNode("v-if", true)
|
|
13092
|
-
], 10, _hoisted_1$
|
|
13187
|
+
], 10, _hoisted_1$I);
|
|
13093
13188
|
};
|
|
13094
13189
|
}
|
|
13095
13190
|
});
|
|
13096
|
-
var Progress = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
13191
|
+
var Progress = /* @__PURE__ */ _export_sfc$1(_sfc_main$K, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);
|
|
13097
13192
|
const ElProgress = withInstall(Progress);
|
|
13098
13193
|
const uploadContextKey = Symbol("uploadContextKey");
|
|
13099
13194
|
const SCOPE$1 = "ElUpload";
|
|
@@ -13300,15 +13395,15 @@ const uploadListProps = buildProps({
|
|
|
13300
13395
|
const uploadListEmits = {
|
|
13301
13396
|
remove: (file) => !!file
|
|
13302
13397
|
};
|
|
13303
|
-
const _hoisted_1$
|
|
13304
|
-
const _hoisted_2$
|
|
13305
|
-
const _hoisted_3$
|
|
13398
|
+
const _hoisted_1$H = ["onKeydown"];
|
|
13399
|
+
const _hoisted_2$A = ["src"];
|
|
13400
|
+
const _hoisted_3$v = ["onClick"];
|
|
13306
13401
|
const _hoisted_4$p = ["onClick"];
|
|
13307
13402
|
const _hoisted_5$f = ["onClick"];
|
|
13308
13403
|
const __default__$4 = defineComponent({
|
|
13309
13404
|
name: "ElUploadList"
|
|
13310
13405
|
});
|
|
13311
|
-
const _sfc_main$
|
|
13406
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
13312
13407
|
...__default__$4,
|
|
13313
13408
|
props: uploadListProps,
|
|
13314
13409
|
emits: uploadListEmits,
|
|
@@ -13353,7 +13448,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
13353
13448
|
class: normalizeClass(unref(nsUpload).be("list", "item-thumbnail")),
|
|
13354
13449
|
src: file.url,
|
|
13355
13450
|
alt: ""
|
|
13356
|
-
}, null, 10, _hoisted_2$
|
|
13451
|
+
}, null, 10, _hoisted_2$A)) : createCommentVNode("v-if", true),
|
|
13357
13452
|
file.status === "uploading" || _ctx.listType !== "picture-card" ? (openBlock(), createElementBlock("div", {
|
|
13358
13453
|
key: 1,
|
|
13359
13454
|
class: normalizeClass(unref(nsUpload).be("list", "item-info"))
|
|
@@ -13373,7 +13468,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
13373
13468
|
createElementVNode("span", {
|
|
13374
13469
|
class: normalizeClass(unref(nsUpload).be("list", "item-file-name"))
|
|
13375
13470
|
}, toDisplayString(file.name), 3)
|
|
13376
|
-
], 10, _hoisted_3$
|
|
13471
|
+
], 10, _hoisted_3$v),
|
|
13377
13472
|
file.status === "uploading" ? (openBlock(), createBlock(unref(ElProgress), {
|
|
13378
13473
|
key: 0,
|
|
13379
13474
|
type: _ctx.listType === "picture-card" ? "circle" : "line",
|
|
@@ -13453,7 +13548,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
13453
13548
|
], 10, _hoisted_5$f)) : createCommentVNode("v-if", true)
|
|
13454
13549
|
], 2)) : createCommentVNode("v-if", true)
|
|
13455
13550
|
])
|
|
13456
|
-
], 42, _hoisted_1$
|
|
13551
|
+
], 42, _hoisted_1$H);
|
|
13457
13552
|
}), 128)),
|
|
13458
13553
|
renderSlot(_ctx.$slots, "append")
|
|
13459
13554
|
]),
|
|
@@ -13462,7 +13557,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
13462
13557
|
};
|
|
13463
13558
|
}
|
|
13464
13559
|
});
|
|
13465
|
-
var UploadList = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
13560
|
+
var UploadList = /* @__PURE__ */ _export_sfc$1(_sfc_main$J, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);
|
|
13466
13561
|
const uploadDraggerProps = buildProps({
|
|
13467
13562
|
disabled: {
|
|
13468
13563
|
type: Boolean,
|
|
@@ -13472,12 +13567,12 @@ const uploadDraggerProps = buildProps({
|
|
|
13472
13567
|
const uploadDraggerEmits = {
|
|
13473
13568
|
file: (file) => isArray$3(file)
|
|
13474
13569
|
};
|
|
13475
|
-
const _hoisted_1$
|
|
13570
|
+
const _hoisted_1$G = ["onDrop", "onDragover"];
|
|
13476
13571
|
const COMPONENT_NAME = "ElUploadDrag";
|
|
13477
13572
|
const __default__$3 = defineComponent({
|
|
13478
13573
|
name: COMPONENT_NAME
|
|
13479
13574
|
});
|
|
13480
|
-
const _sfc_main$
|
|
13575
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
13481
13576
|
...__default__$3,
|
|
13482
13577
|
props: uploadDraggerProps,
|
|
13483
13578
|
emits: uploadDraggerEmits,
|
|
@@ -13531,11 +13626,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
13531
13626
|
onDragleave: _cache[0] || (_cache[0] = withModifiers(($event) => dragover.value = false, ["prevent"]))
|
|
13532
13627
|
}, [
|
|
13533
13628
|
renderSlot(_ctx.$slots, "default")
|
|
13534
|
-
], 42, _hoisted_1$
|
|
13629
|
+
], 42, _hoisted_1$G);
|
|
13535
13630
|
};
|
|
13536
13631
|
}
|
|
13537
13632
|
});
|
|
13538
|
-
var UploadDragger = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
13633
|
+
var UploadDragger = /* @__PURE__ */ _export_sfc$1(_sfc_main$I, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);
|
|
13539
13634
|
const uploadContentProps = buildProps({
|
|
13540
13635
|
...uploadBaseProps,
|
|
13541
13636
|
beforeUpload: {
|
|
@@ -13567,13 +13662,13 @@ const uploadContentProps = buildProps({
|
|
|
13567
13662
|
default: NOOP
|
|
13568
13663
|
}
|
|
13569
13664
|
});
|
|
13570
|
-
const _hoisted_1$
|
|
13571
|
-
const _hoisted_2$
|
|
13665
|
+
const _hoisted_1$F = ["onKeydown"];
|
|
13666
|
+
const _hoisted_2$z = ["name", "multiple", "accept"];
|
|
13572
13667
|
const __default__$2 = defineComponent({
|
|
13573
13668
|
name: "ElUploadContent",
|
|
13574
13669
|
inheritAttrs: false
|
|
13575
13670
|
});
|
|
13576
|
-
const _sfc_main$
|
|
13671
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
13577
13672
|
...__default__$2,
|
|
13578
13673
|
props: uploadContentProps,
|
|
13579
13674
|
setup(__props, { expose }) {
|
|
@@ -13725,12 +13820,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
13725
13820
|
onChange: handleChange,
|
|
13726
13821
|
onClick: _cache[0] || (_cache[0] = withModifiers(() => {
|
|
13727
13822
|
}, ["stop"]))
|
|
13728
|
-
}, null, 42, _hoisted_2$
|
|
13729
|
-
], 42, _hoisted_1$
|
|
13823
|
+
}, null, 42, _hoisted_2$z)
|
|
13824
|
+
], 42, _hoisted_1$F);
|
|
13730
13825
|
};
|
|
13731
13826
|
}
|
|
13732
13827
|
});
|
|
13733
|
-
var UploadContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
13828
|
+
var UploadContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$H, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);
|
|
13734
13829
|
const SCOPE = "ElUpload";
|
|
13735
13830
|
const revokeObjectURL = (file) => {
|
|
13736
13831
|
var _a2;
|
|
@@ -13859,7 +13954,7 @@ const useHandlers = (props, uploadRef) => {
|
|
|
13859
13954
|
const __default__$1 = defineComponent({
|
|
13860
13955
|
name: "ElUpload"
|
|
13861
13956
|
});
|
|
13862
|
-
const _sfc_main$
|
|
13957
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
13863
13958
|
...__default__$1,
|
|
13864
13959
|
props: uploadProps,
|
|
13865
13960
|
setup(__props, { expose }) {
|
|
@@ -13967,7 +14062,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
13967
14062
|
};
|
|
13968
14063
|
}
|
|
13969
14064
|
});
|
|
13970
|
-
var Upload = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
14065
|
+
var Upload = /* @__PURE__ */ _export_sfc$1(_sfc_main$G, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);
|
|
13971
14066
|
const ElUpload = withInstall(Upload);
|
|
13972
14067
|
function createLoadingComponent(options) {
|
|
13973
14068
|
let afterLeaveTimer;
|
|
@@ -14341,12 +14436,12 @@ const getOffsetOrSpace = (id2, offset) => {
|
|
|
14341
14436
|
const idx = instances.findIndex((instance) => instance.id === id2);
|
|
14342
14437
|
return idx > 0 ? 20 : offset;
|
|
14343
14438
|
};
|
|
14344
|
-
const _hoisted_1$
|
|
14345
|
-
const _hoisted_2$
|
|
14439
|
+
const _hoisted_1$E = ["id"];
|
|
14440
|
+
const _hoisted_2$y = ["innerHTML"];
|
|
14346
14441
|
const __default__ = defineComponent({
|
|
14347
14442
|
name: "ElMessage"
|
|
14348
14443
|
});
|
|
14349
|
-
const _sfc_main$
|
|
14444
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
14350
14445
|
...__default__,
|
|
14351
14446
|
props: messageProps,
|
|
14352
14447
|
emits: messageEmits,
|
|
@@ -14456,7 +14551,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14456
14551
|
createElementVNode("p", {
|
|
14457
14552
|
class: normalizeClass(unref(ns).e("content")),
|
|
14458
14553
|
innerHTML: _ctx.message
|
|
14459
|
-
}, null, 10, _hoisted_2$
|
|
14554
|
+
}, null, 10, _hoisted_2$y)
|
|
14460
14555
|
], 2112))
|
|
14461
14556
|
]),
|
|
14462
14557
|
_ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
|
|
@@ -14469,7 +14564,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14469
14564
|
]),
|
|
14470
14565
|
_: 1
|
|
14471
14566
|
}, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
|
|
14472
|
-
], 46, _hoisted_1$
|
|
14567
|
+
], 46, _hoisted_1$E), [
|
|
14473
14568
|
[vShow, visible.value]
|
|
14474
14569
|
])
|
|
14475
14570
|
]),
|
|
@@ -14478,7 +14573,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
14478
14573
|
};
|
|
14479
14574
|
}
|
|
14480
14575
|
});
|
|
14481
|
-
var MessageConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
14576
|
+
var MessageConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$F, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);
|
|
14482
14577
|
let seed = 1;
|
|
14483
14578
|
const normalizeOptions = (params) => {
|
|
14484
14579
|
const options = !params || isString(params) || isVNode(params) || isFunction$1(params) ? { message: params } : params;
|
|
@@ -14579,6 +14674,612 @@ function closeAll(type4) {
|
|
|
14579
14674
|
message.closeAll = closeAll;
|
|
14580
14675
|
message._context = null;
|
|
14581
14676
|
const ElMessage = withInstallFunction(message, "$message");
|
|
14677
|
+
const _sfc_main$E = defineComponent({
|
|
14678
|
+
name: "ElMessageBox",
|
|
14679
|
+
directives: {
|
|
14680
|
+
TrapFocus
|
|
14681
|
+
},
|
|
14682
|
+
components: {
|
|
14683
|
+
ElButton,
|
|
14684
|
+
ElFocusTrap,
|
|
14685
|
+
ElInput,
|
|
14686
|
+
ElOverlay,
|
|
14687
|
+
ElIcon,
|
|
14688
|
+
...TypeComponents
|
|
14689
|
+
},
|
|
14690
|
+
inheritAttrs: false,
|
|
14691
|
+
props: {
|
|
14692
|
+
buttonSize: {
|
|
14693
|
+
type: String,
|
|
14694
|
+
validator: isValidComponentSize
|
|
14695
|
+
},
|
|
14696
|
+
modal: {
|
|
14697
|
+
type: Boolean,
|
|
14698
|
+
default: true
|
|
14699
|
+
},
|
|
14700
|
+
lockScroll: {
|
|
14701
|
+
type: Boolean,
|
|
14702
|
+
default: true
|
|
14703
|
+
},
|
|
14704
|
+
showClose: {
|
|
14705
|
+
type: Boolean,
|
|
14706
|
+
default: true
|
|
14707
|
+
},
|
|
14708
|
+
closeOnClickModal: {
|
|
14709
|
+
type: Boolean,
|
|
14710
|
+
default: true
|
|
14711
|
+
},
|
|
14712
|
+
closeOnPressEscape: {
|
|
14713
|
+
type: Boolean,
|
|
14714
|
+
default: true
|
|
14715
|
+
},
|
|
14716
|
+
closeOnHashChange: {
|
|
14717
|
+
type: Boolean,
|
|
14718
|
+
default: true
|
|
14719
|
+
},
|
|
14720
|
+
center: Boolean,
|
|
14721
|
+
draggable: Boolean,
|
|
14722
|
+
roundButton: {
|
|
14723
|
+
default: false,
|
|
14724
|
+
type: Boolean
|
|
14725
|
+
},
|
|
14726
|
+
container: {
|
|
14727
|
+
type: String,
|
|
14728
|
+
default: "body"
|
|
14729
|
+
},
|
|
14730
|
+
boxType: {
|
|
14731
|
+
type: String,
|
|
14732
|
+
default: ""
|
|
14733
|
+
}
|
|
14734
|
+
},
|
|
14735
|
+
emits: ["vanish", "action"],
|
|
14736
|
+
setup(props, { emit }) {
|
|
14737
|
+
const {
|
|
14738
|
+
locale: locale2,
|
|
14739
|
+
zIndex: zIndex2,
|
|
14740
|
+
ns,
|
|
14741
|
+
size: btnSize
|
|
14742
|
+
} = useGlobalComponentSettings("message-box", computed$1(() => props.buttonSize));
|
|
14743
|
+
const { t } = locale2;
|
|
14744
|
+
const { nextZIndex } = zIndex2;
|
|
14745
|
+
const visible = ref(false);
|
|
14746
|
+
const state = reactive({
|
|
14747
|
+
autofocus: true,
|
|
14748
|
+
beforeClose: null,
|
|
14749
|
+
callback: null,
|
|
14750
|
+
cancelButtonText: "",
|
|
14751
|
+
cancelButtonClass: "",
|
|
14752
|
+
confirmButtonText: "",
|
|
14753
|
+
confirmButtonClass: "",
|
|
14754
|
+
customClass: "",
|
|
14755
|
+
customStyle: {},
|
|
14756
|
+
dangerouslyUseHTMLString: false,
|
|
14757
|
+
distinguishCancelAndClose: false,
|
|
14758
|
+
icon: "",
|
|
14759
|
+
inputPattern: null,
|
|
14760
|
+
inputPlaceholder: "",
|
|
14761
|
+
inputType: "text",
|
|
14762
|
+
inputValue: null,
|
|
14763
|
+
inputValidator: null,
|
|
14764
|
+
inputErrorMessage: "",
|
|
14765
|
+
message: null,
|
|
14766
|
+
modalFade: true,
|
|
14767
|
+
modalClass: "",
|
|
14768
|
+
showCancelButton: false,
|
|
14769
|
+
showConfirmButton: true,
|
|
14770
|
+
type: "",
|
|
14771
|
+
title: void 0,
|
|
14772
|
+
showInput: false,
|
|
14773
|
+
action: "",
|
|
14774
|
+
confirmButtonLoading: false,
|
|
14775
|
+
cancelButtonLoading: false,
|
|
14776
|
+
confirmButtonDisabled: false,
|
|
14777
|
+
editorErrorMessage: "",
|
|
14778
|
+
validateError: false,
|
|
14779
|
+
zIndex: nextZIndex()
|
|
14780
|
+
});
|
|
14781
|
+
const typeClass = computed$1(() => {
|
|
14782
|
+
const type4 = state.type;
|
|
14783
|
+
return { [ns.bm("icon", type4)]: type4 && TypeComponentsMap[type4] };
|
|
14784
|
+
});
|
|
14785
|
+
const contentId = useId();
|
|
14786
|
+
const inputId = useId();
|
|
14787
|
+
const iconComponent = computed$1(() => state.icon || TypeComponentsMap[state.type] || "");
|
|
14788
|
+
const hasMessage = computed$1(() => !!state.message);
|
|
14789
|
+
const rootRef = ref();
|
|
14790
|
+
const headerRef = ref();
|
|
14791
|
+
const focusStartRef = ref();
|
|
14792
|
+
const inputRef = ref();
|
|
14793
|
+
const confirmRef = ref();
|
|
14794
|
+
const confirmButtonClasses = computed$1(() => state.confirmButtonClass);
|
|
14795
|
+
watch(() => state.inputValue, async (val) => {
|
|
14796
|
+
await nextTick();
|
|
14797
|
+
if (props.boxType === "prompt" && val !== null) {
|
|
14798
|
+
validate();
|
|
14799
|
+
}
|
|
14800
|
+
}, { immediate: true });
|
|
14801
|
+
watch(() => visible.value, (val) => {
|
|
14802
|
+
var _a2, _b;
|
|
14803
|
+
if (val) {
|
|
14804
|
+
if (props.boxType !== "prompt") {
|
|
14805
|
+
if (state.autofocus) {
|
|
14806
|
+
focusStartRef.value = (_b = (_a2 = confirmRef.value) == null ? void 0 : _a2.$el) != null ? _b : rootRef.value;
|
|
14807
|
+
} else {
|
|
14808
|
+
focusStartRef.value = rootRef.value;
|
|
14809
|
+
}
|
|
14810
|
+
}
|
|
14811
|
+
state.zIndex = nextZIndex();
|
|
14812
|
+
}
|
|
14813
|
+
if (props.boxType !== "prompt")
|
|
14814
|
+
return;
|
|
14815
|
+
if (val) {
|
|
14816
|
+
nextTick().then(() => {
|
|
14817
|
+
var _a22;
|
|
14818
|
+
if (inputRef.value && inputRef.value.$el) {
|
|
14819
|
+
if (state.autofocus) {
|
|
14820
|
+
focusStartRef.value = (_a22 = getInputElement()) != null ? _a22 : rootRef.value;
|
|
14821
|
+
} else {
|
|
14822
|
+
focusStartRef.value = rootRef.value;
|
|
14823
|
+
}
|
|
14824
|
+
}
|
|
14825
|
+
});
|
|
14826
|
+
} else {
|
|
14827
|
+
state.editorErrorMessage = "";
|
|
14828
|
+
state.validateError = false;
|
|
14829
|
+
}
|
|
14830
|
+
});
|
|
14831
|
+
const draggable = computed$1(() => props.draggable);
|
|
14832
|
+
useDraggable(rootRef, headerRef, draggable);
|
|
14833
|
+
onMounted(async () => {
|
|
14834
|
+
await nextTick();
|
|
14835
|
+
if (props.closeOnHashChange) {
|
|
14836
|
+
window.addEventListener("hashchange", doClose);
|
|
14837
|
+
}
|
|
14838
|
+
});
|
|
14839
|
+
onBeforeUnmount(() => {
|
|
14840
|
+
if (props.closeOnHashChange) {
|
|
14841
|
+
window.removeEventListener("hashchange", doClose);
|
|
14842
|
+
}
|
|
14843
|
+
});
|
|
14844
|
+
function doClose() {
|
|
14845
|
+
if (!visible.value)
|
|
14846
|
+
return;
|
|
14847
|
+
visible.value = false;
|
|
14848
|
+
nextTick(() => {
|
|
14849
|
+
if (state.action)
|
|
14850
|
+
emit("action", state.action);
|
|
14851
|
+
});
|
|
14852
|
+
}
|
|
14853
|
+
const handleWrapperClick = () => {
|
|
14854
|
+
if (props.closeOnClickModal) {
|
|
14855
|
+
handleAction(state.distinguishCancelAndClose ? "close" : "cancel");
|
|
14856
|
+
}
|
|
14857
|
+
};
|
|
14858
|
+
const overlayEvent = useSameTarget(handleWrapperClick);
|
|
14859
|
+
const handleInputEnter = (e) => {
|
|
14860
|
+
if (state.inputType !== "textarea") {
|
|
14861
|
+
e.preventDefault();
|
|
14862
|
+
return handleAction("confirm");
|
|
14863
|
+
}
|
|
14864
|
+
};
|
|
14865
|
+
const handleAction = (action) => {
|
|
14866
|
+
var _a2;
|
|
14867
|
+
if (props.boxType === "prompt" && action === "confirm" && !validate()) {
|
|
14868
|
+
return;
|
|
14869
|
+
}
|
|
14870
|
+
state.action = action;
|
|
14871
|
+
if (state.beforeClose) {
|
|
14872
|
+
(_a2 = state.beforeClose) == null ? void 0 : _a2.call(state, action, state, doClose);
|
|
14873
|
+
} else {
|
|
14874
|
+
doClose();
|
|
14875
|
+
}
|
|
14876
|
+
};
|
|
14877
|
+
const validate = () => {
|
|
14878
|
+
if (props.boxType === "prompt") {
|
|
14879
|
+
const inputPattern = state.inputPattern;
|
|
14880
|
+
if (inputPattern && !inputPattern.test(state.inputValue || "")) {
|
|
14881
|
+
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
14882
|
+
state.validateError = true;
|
|
14883
|
+
return false;
|
|
14884
|
+
}
|
|
14885
|
+
const inputValidator = state.inputValidator;
|
|
14886
|
+
if (typeof inputValidator === "function") {
|
|
14887
|
+
const validateResult = inputValidator(state.inputValue);
|
|
14888
|
+
if (validateResult === false) {
|
|
14889
|
+
state.editorErrorMessage = state.inputErrorMessage || t("el.messagebox.error");
|
|
14890
|
+
state.validateError = true;
|
|
14891
|
+
return false;
|
|
14892
|
+
}
|
|
14893
|
+
if (typeof validateResult === "string") {
|
|
14894
|
+
state.editorErrorMessage = validateResult;
|
|
14895
|
+
state.validateError = true;
|
|
14896
|
+
return false;
|
|
14897
|
+
}
|
|
14898
|
+
}
|
|
14899
|
+
}
|
|
14900
|
+
state.editorErrorMessage = "";
|
|
14901
|
+
state.validateError = false;
|
|
14902
|
+
return true;
|
|
14903
|
+
};
|
|
14904
|
+
const getInputElement = () => {
|
|
14905
|
+
const inputRefs = inputRef.value.$refs;
|
|
14906
|
+
return inputRefs.input || inputRefs.textarea;
|
|
14907
|
+
};
|
|
14908
|
+
const handleClose = () => {
|
|
14909
|
+
handleAction("close");
|
|
14910
|
+
};
|
|
14911
|
+
const onCloseRequested = () => {
|
|
14912
|
+
if (props.closeOnPressEscape) {
|
|
14913
|
+
handleClose();
|
|
14914
|
+
}
|
|
14915
|
+
};
|
|
14916
|
+
if (props.lockScroll) {
|
|
14917
|
+
useLockscreen(visible);
|
|
14918
|
+
}
|
|
14919
|
+
useRestoreActive(visible);
|
|
14920
|
+
return {
|
|
14921
|
+
...toRefs(state),
|
|
14922
|
+
ns,
|
|
14923
|
+
overlayEvent,
|
|
14924
|
+
visible,
|
|
14925
|
+
hasMessage,
|
|
14926
|
+
typeClass,
|
|
14927
|
+
contentId,
|
|
14928
|
+
inputId,
|
|
14929
|
+
btnSize,
|
|
14930
|
+
iconComponent,
|
|
14931
|
+
confirmButtonClasses,
|
|
14932
|
+
rootRef,
|
|
14933
|
+
focusStartRef,
|
|
14934
|
+
headerRef,
|
|
14935
|
+
inputRef,
|
|
14936
|
+
confirmRef,
|
|
14937
|
+
doClose,
|
|
14938
|
+
handleClose,
|
|
14939
|
+
onCloseRequested,
|
|
14940
|
+
handleWrapperClick,
|
|
14941
|
+
handleInputEnter,
|
|
14942
|
+
handleAction,
|
|
14943
|
+
t
|
|
14944
|
+
};
|
|
14945
|
+
}
|
|
14946
|
+
});
|
|
14947
|
+
const _hoisted_1$D = ["aria-label", "aria-describedby"];
|
|
14948
|
+
const _hoisted_2$x = ["aria-label"];
|
|
14949
|
+
const _hoisted_3$u = ["id"];
|
|
14950
|
+
function _sfc_render$E(_ctx, _cache, $props, $setup, $data, $options) {
|
|
14951
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
14952
|
+
const _component_close = resolveComponent("close");
|
|
14953
|
+
const _component_el_input = resolveComponent("el-input");
|
|
14954
|
+
const _component_el_button = resolveComponent("el-button");
|
|
14955
|
+
const _component_el_focus_trap = resolveComponent("el-focus-trap");
|
|
14956
|
+
const _component_el_overlay = resolveComponent("el-overlay");
|
|
14957
|
+
return openBlock(), createBlock(Transition$1, {
|
|
14958
|
+
name: "fade-in-linear",
|
|
14959
|
+
onAfterLeave: _cache[11] || (_cache[11] = ($event) => _ctx.$emit("vanish")),
|
|
14960
|
+
persisted: ""
|
|
14961
|
+
}, {
|
|
14962
|
+
default: withCtx(() => [
|
|
14963
|
+
withDirectives(createVNode(_component_el_overlay, {
|
|
14964
|
+
"z-index": _ctx.zIndex,
|
|
14965
|
+
"overlay-class": [_ctx.ns.is("message-box"), _ctx.modalClass],
|
|
14966
|
+
mask: _ctx.modal
|
|
14967
|
+
}, {
|
|
14968
|
+
default: withCtx(() => [
|
|
14969
|
+
createElementVNode("div", {
|
|
14970
|
+
role: "dialog",
|
|
14971
|
+
"aria-label": _ctx.title,
|
|
14972
|
+
"aria-modal": "true",
|
|
14973
|
+
"aria-describedby": !_ctx.showInput ? _ctx.contentId : void 0,
|
|
14974
|
+
class: normalizeClass(`${_ctx.ns.namespace.value}-overlay-message-box`),
|
|
14975
|
+
onClick: _cache[8] || (_cache[8] = (...args) => _ctx.overlayEvent.onClick && _ctx.overlayEvent.onClick(...args)),
|
|
14976
|
+
onMousedown: _cache[9] || (_cache[9] = (...args) => _ctx.overlayEvent.onMousedown && _ctx.overlayEvent.onMousedown(...args)),
|
|
14977
|
+
onMouseup: _cache[10] || (_cache[10] = (...args) => _ctx.overlayEvent.onMouseup && _ctx.overlayEvent.onMouseup(...args))
|
|
14978
|
+
}, [
|
|
14979
|
+
createVNode(_component_el_focus_trap, {
|
|
14980
|
+
loop: "",
|
|
14981
|
+
trapped: _ctx.visible,
|
|
14982
|
+
"focus-trap-el": _ctx.rootRef,
|
|
14983
|
+
"focus-start-el": _ctx.focusStartRef,
|
|
14984
|
+
onReleaseRequested: _ctx.onCloseRequested
|
|
14985
|
+
}, {
|
|
14986
|
+
default: withCtx(() => [
|
|
14987
|
+
createElementVNode("div", {
|
|
14988
|
+
ref: "rootRef",
|
|
14989
|
+
class: normalizeClass([
|
|
14990
|
+
_ctx.ns.b(),
|
|
14991
|
+
_ctx.customClass,
|
|
14992
|
+
_ctx.ns.is("draggable", _ctx.draggable),
|
|
14993
|
+
{ [_ctx.ns.m("center")]: _ctx.center }
|
|
14994
|
+
]),
|
|
14995
|
+
style: normalizeStyle(_ctx.customStyle),
|
|
14996
|
+
tabindex: "-1",
|
|
14997
|
+
onClick: _cache[7] || (_cache[7] = withModifiers(() => {
|
|
14998
|
+
}, ["stop"]))
|
|
14999
|
+
}, [
|
|
15000
|
+
_ctx.title !== null && _ctx.title !== void 0 ? (openBlock(), createElementBlock("div", {
|
|
15001
|
+
key: 0,
|
|
15002
|
+
ref: "headerRef",
|
|
15003
|
+
class: normalizeClass(_ctx.ns.e("header"))
|
|
15004
|
+
}, [
|
|
15005
|
+
createElementVNode("div", {
|
|
15006
|
+
class: normalizeClass(_ctx.ns.e("title"))
|
|
15007
|
+
}, [
|
|
15008
|
+
_ctx.iconComponent && _ctx.center ? (openBlock(), createBlock(_component_el_icon, {
|
|
15009
|
+
key: 0,
|
|
15010
|
+
class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
|
|
15011
|
+
}, {
|
|
15012
|
+
default: withCtx(() => [
|
|
15013
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
15014
|
+
]),
|
|
15015
|
+
_: 1
|
|
15016
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
15017
|
+
createElementVNode("span", null, toDisplayString(_ctx.title), 1)
|
|
15018
|
+
], 2),
|
|
15019
|
+
_ctx.showClose ? (openBlock(), createElementBlock("button", {
|
|
15020
|
+
key: 0,
|
|
15021
|
+
type: "button",
|
|
15022
|
+
class: normalizeClass(_ctx.ns.e("headerbtn")),
|
|
15023
|
+
"aria-label": _ctx.t("el.messagebox.close"),
|
|
15024
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel")),
|
|
15025
|
+
onKeydown: _cache[1] || (_cache[1] = withKeys(withModifiers(($event) => _ctx.handleAction(_ctx.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
|
|
15026
|
+
}, [
|
|
15027
|
+
createVNode(_component_el_icon, {
|
|
15028
|
+
class: normalizeClass(_ctx.ns.e("close"))
|
|
15029
|
+
}, {
|
|
15030
|
+
default: withCtx(() => [
|
|
15031
|
+
createVNode(_component_close)
|
|
15032
|
+
]),
|
|
15033
|
+
_: 1
|
|
15034
|
+
}, 8, ["class"])
|
|
15035
|
+
], 42, _hoisted_2$x)) : createCommentVNode("v-if", true)
|
|
15036
|
+
], 2)) : createCommentVNode("v-if", true),
|
|
15037
|
+
createElementVNode("div", {
|
|
15038
|
+
id: _ctx.contentId,
|
|
15039
|
+
class: normalizeClass(_ctx.ns.e("content"))
|
|
15040
|
+
}, [
|
|
15041
|
+
createElementVNode("div", {
|
|
15042
|
+
class: normalizeClass(_ctx.ns.e("container"))
|
|
15043
|
+
}, [
|
|
15044
|
+
_ctx.iconComponent && !_ctx.center && _ctx.hasMessage ? (openBlock(), createBlock(_component_el_icon, {
|
|
15045
|
+
key: 0,
|
|
15046
|
+
class: normalizeClass([_ctx.ns.e("status"), _ctx.typeClass])
|
|
15047
|
+
}, {
|
|
15048
|
+
default: withCtx(() => [
|
|
15049
|
+
(openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
|
|
15050
|
+
]),
|
|
15051
|
+
_: 1
|
|
15052
|
+
}, 8, ["class"])) : createCommentVNode("v-if", true),
|
|
15053
|
+
_ctx.hasMessage ? (openBlock(), createElementBlock("div", {
|
|
15054
|
+
key: 1,
|
|
15055
|
+
class: normalizeClass(_ctx.ns.e("message"))
|
|
15056
|
+
}, [
|
|
15057
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
15058
|
+
!_ctx.dangerouslyUseHTMLString ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
|
|
15059
|
+
key: 0,
|
|
15060
|
+
for: _ctx.showInput ? _ctx.inputId : void 0
|
|
15061
|
+
}, {
|
|
15062
|
+
default: withCtx(() => [
|
|
15063
|
+
createTextVNode(toDisplayString(!_ctx.dangerouslyUseHTMLString ? _ctx.message : ""), 1)
|
|
15064
|
+
]),
|
|
15065
|
+
_: 1
|
|
15066
|
+
}, 8, ["for"])) : (openBlock(), createBlock(resolveDynamicComponent(_ctx.showInput ? "label" : "p"), {
|
|
15067
|
+
key: 1,
|
|
15068
|
+
for: _ctx.showInput ? _ctx.inputId : void 0,
|
|
15069
|
+
innerHTML: _ctx.message
|
|
15070
|
+
}, null, 8, ["for", "innerHTML"]))
|
|
15071
|
+
])
|
|
15072
|
+
], 2)) : createCommentVNode("v-if", true)
|
|
15073
|
+
], 2),
|
|
15074
|
+
withDirectives(createElementVNode("div", {
|
|
15075
|
+
class: normalizeClass(_ctx.ns.e("input"))
|
|
15076
|
+
}, [
|
|
15077
|
+
createVNode(_component_el_input, {
|
|
15078
|
+
id: _ctx.inputId,
|
|
15079
|
+
ref: "inputRef",
|
|
15080
|
+
modelValue: _ctx.inputValue,
|
|
15081
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.inputValue = $event),
|
|
15082
|
+
type: _ctx.inputType,
|
|
15083
|
+
placeholder: _ctx.inputPlaceholder,
|
|
15084
|
+
"aria-invalid": _ctx.validateError,
|
|
15085
|
+
class: normalizeClass({ invalid: _ctx.validateError }),
|
|
15086
|
+
onKeydown: withKeys(_ctx.handleInputEnter, ["enter"])
|
|
15087
|
+
}, null, 8, ["id", "modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
|
|
15088
|
+
createElementVNode("div", {
|
|
15089
|
+
class: normalizeClass(_ctx.ns.e("errormsg")),
|
|
15090
|
+
style: normalizeStyle({
|
|
15091
|
+
visibility: !!_ctx.editorErrorMessage ? "visible" : "hidden"
|
|
15092
|
+
})
|
|
15093
|
+
}, toDisplayString(_ctx.editorErrorMessage), 7)
|
|
15094
|
+
], 2), [
|
|
15095
|
+
[vShow, _ctx.showInput]
|
|
15096
|
+
])
|
|
15097
|
+
], 10, _hoisted_3$u),
|
|
15098
|
+
createElementVNode("div", {
|
|
15099
|
+
class: normalizeClass(_ctx.ns.e("btns"))
|
|
15100
|
+
}, [
|
|
15101
|
+
_ctx.showCancelButton ? (openBlock(), createBlock(_component_el_button, {
|
|
15102
|
+
key: 0,
|
|
15103
|
+
loading: _ctx.cancelButtonLoading,
|
|
15104
|
+
class: normalizeClass([_ctx.cancelButtonClass]),
|
|
15105
|
+
round: _ctx.roundButton,
|
|
15106
|
+
size: _ctx.btnSize,
|
|
15107
|
+
onClick: _cache[3] || (_cache[3] = ($event) => _ctx.handleAction("cancel")),
|
|
15108
|
+
onKeydown: _cache[4] || (_cache[4] = withKeys(withModifiers(($event) => _ctx.handleAction("cancel"), ["prevent"]), ["enter"]))
|
|
15109
|
+
}, {
|
|
15110
|
+
default: withCtx(() => [
|
|
15111
|
+
createTextVNode(toDisplayString(_ctx.cancelButtonText || _ctx.t("el.messagebox.cancel")), 1)
|
|
15112
|
+
]),
|
|
15113
|
+
_: 1
|
|
15114
|
+
}, 8, ["loading", "class", "round", "size"])) : createCommentVNode("v-if", true),
|
|
15115
|
+
withDirectives(createVNode(_component_el_button, {
|
|
15116
|
+
ref: "confirmRef",
|
|
15117
|
+
type: "primary",
|
|
15118
|
+
loading: _ctx.confirmButtonLoading,
|
|
15119
|
+
class: normalizeClass([_ctx.confirmButtonClasses]),
|
|
15120
|
+
round: _ctx.roundButton,
|
|
15121
|
+
disabled: _ctx.confirmButtonDisabled,
|
|
15122
|
+
size: _ctx.btnSize,
|
|
15123
|
+
onClick: _cache[5] || (_cache[5] = ($event) => _ctx.handleAction("confirm")),
|
|
15124
|
+
onKeydown: _cache[6] || (_cache[6] = withKeys(withModifiers(($event) => _ctx.handleAction("confirm"), ["prevent"]), ["enter"]))
|
|
15125
|
+
}, {
|
|
15126
|
+
default: withCtx(() => [
|
|
15127
|
+
createTextVNode(toDisplayString(_ctx.confirmButtonText || _ctx.t("el.messagebox.confirm")), 1)
|
|
15128
|
+
]),
|
|
15129
|
+
_: 1
|
|
15130
|
+
}, 8, ["loading", "class", "round", "disabled", "size"]), [
|
|
15131
|
+
[vShow, _ctx.showConfirmButton]
|
|
15132
|
+
])
|
|
15133
|
+
], 2)
|
|
15134
|
+
], 6)
|
|
15135
|
+
]),
|
|
15136
|
+
_: 3
|
|
15137
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
|
|
15138
|
+
], 42, _hoisted_1$D)
|
|
15139
|
+
]),
|
|
15140
|
+
_: 3
|
|
15141
|
+
}, 8, ["z-index", "overlay-class", "mask"]), [
|
|
15142
|
+
[vShow, _ctx.visible]
|
|
15143
|
+
])
|
|
15144
|
+
]),
|
|
15145
|
+
_: 3
|
|
15146
|
+
});
|
|
15147
|
+
}
|
|
15148
|
+
var MessageBoxConstructor = /* @__PURE__ */ _export_sfc$1(_sfc_main$E, [["render", _sfc_render$E], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);
|
|
15149
|
+
const messageInstance = /* @__PURE__ */ new Map();
|
|
15150
|
+
const getAppendToElement = (props) => {
|
|
15151
|
+
let appendTo = document.body;
|
|
15152
|
+
if (props.appendTo) {
|
|
15153
|
+
if (isString(props.appendTo)) {
|
|
15154
|
+
appendTo = document.querySelector(props.appendTo);
|
|
15155
|
+
}
|
|
15156
|
+
if (isElement(props.appendTo)) {
|
|
15157
|
+
appendTo = props.appendTo;
|
|
15158
|
+
}
|
|
15159
|
+
if (!isElement(appendTo)) {
|
|
15160
|
+
appendTo = document.body;
|
|
15161
|
+
}
|
|
15162
|
+
}
|
|
15163
|
+
return appendTo;
|
|
15164
|
+
};
|
|
15165
|
+
const initInstance = (props, container, appContext = null) => {
|
|
15166
|
+
const vnode = createVNode(MessageBoxConstructor, props, isFunction$1(props.message) || isVNode(props.message) ? {
|
|
15167
|
+
default: isFunction$1(props.message) ? props.message : () => props.message
|
|
15168
|
+
} : null);
|
|
15169
|
+
vnode.appContext = appContext;
|
|
15170
|
+
render(vnode, container);
|
|
15171
|
+
getAppendToElement(props).appendChild(container.firstElementChild);
|
|
15172
|
+
return vnode.component;
|
|
15173
|
+
};
|
|
15174
|
+
const genContainer = () => {
|
|
15175
|
+
return document.createElement("div");
|
|
15176
|
+
};
|
|
15177
|
+
const showMessage = (options, appContext) => {
|
|
15178
|
+
const container = genContainer();
|
|
15179
|
+
options.onVanish = () => {
|
|
15180
|
+
render(null, container);
|
|
15181
|
+
messageInstance.delete(vm);
|
|
15182
|
+
};
|
|
15183
|
+
options.onAction = (action) => {
|
|
15184
|
+
const currentMsg = messageInstance.get(vm);
|
|
15185
|
+
let resolve;
|
|
15186
|
+
if (options.showInput) {
|
|
15187
|
+
resolve = { value: vm.inputValue, action };
|
|
15188
|
+
} else {
|
|
15189
|
+
resolve = action;
|
|
15190
|
+
}
|
|
15191
|
+
if (options.callback) {
|
|
15192
|
+
options.callback(resolve, instance.proxy);
|
|
15193
|
+
} else {
|
|
15194
|
+
if (action === "cancel" || action === "close") {
|
|
15195
|
+
if (options.distinguishCancelAndClose && action !== "cancel") {
|
|
15196
|
+
currentMsg.reject("close");
|
|
15197
|
+
} else {
|
|
15198
|
+
currentMsg.reject("cancel");
|
|
15199
|
+
}
|
|
15200
|
+
} else {
|
|
15201
|
+
currentMsg.resolve(resolve);
|
|
15202
|
+
}
|
|
15203
|
+
}
|
|
15204
|
+
};
|
|
15205
|
+
const instance = initInstance(options, container, appContext);
|
|
15206
|
+
const vm = instance.proxy;
|
|
15207
|
+
for (const prop in options) {
|
|
15208
|
+
if (hasOwn(options, prop) && !hasOwn(vm.$props, prop)) {
|
|
15209
|
+
vm[prop] = options[prop];
|
|
15210
|
+
}
|
|
15211
|
+
}
|
|
15212
|
+
vm.visible = true;
|
|
15213
|
+
return vm;
|
|
15214
|
+
};
|
|
15215
|
+
function MessageBox(options, appContext = null) {
|
|
15216
|
+
if (!isClient)
|
|
15217
|
+
return Promise.reject();
|
|
15218
|
+
let callback;
|
|
15219
|
+
if (isString(options) || isVNode(options)) {
|
|
15220
|
+
options = {
|
|
15221
|
+
message: options
|
|
15222
|
+
};
|
|
15223
|
+
} else {
|
|
15224
|
+
callback = options.callback;
|
|
15225
|
+
}
|
|
15226
|
+
return new Promise((resolve, reject) => {
|
|
15227
|
+
const vm = showMessage(options, appContext != null ? appContext : MessageBox._context);
|
|
15228
|
+
messageInstance.set(vm, {
|
|
15229
|
+
options,
|
|
15230
|
+
callback,
|
|
15231
|
+
resolve,
|
|
15232
|
+
reject
|
|
15233
|
+
});
|
|
15234
|
+
});
|
|
15235
|
+
}
|
|
15236
|
+
const MESSAGE_BOX_VARIANTS = ["alert", "confirm", "prompt"];
|
|
15237
|
+
const MESSAGE_BOX_DEFAULT_OPTS = {
|
|
15238
|
+
alert: { closeOnPressEscape: false, closeOnClickModal: false },
|
|
15239
|
+
confirm: { showCancelButton: true },
|
|
15240
|
+
prompt: { showCancelButton: true, showInput: true }
|
|
15241
|
+
};
|
|
15242
|
+
MESSAGE_BOX_VARIANTS.forEach((boxType) => {
|
|
15243
|
+
MessageBox[boxType] = messageBoxFactory(boxType);
|
|
15244
|
+
});
|
|
15245
|
+
function messageBoxFactory(boxType) {
|
|
15246
|
+
return (message2, title, options, appContext) => {
|
|
15247
|
+
let titleOrOpts = "";
|
|
15248
|
+
if (isObject$4(title)) {
|
|
15249
|
+
options = title;
|
|
15250
|
+
titleOrOpts = "";
|
|
15251
|
+
} else if (isUndefined(title)) {
|
|
15252
|
+
titleOrOpts = "";
|
|
15253
|
+
} else {
|
|
15254
|
+
titleOrOpts = title;
|
|
15255
|
+
}
|
|
15256
|
+
return MessageBox(Object.assign({
|
|
15257
|
+
title: titleOrOpts,
|
|
15258
|
+
message: message2,
|
|
15259
|
+
type: "",
|
|
15260
|
+
...MESSAGE_BOX_DEFAULT_OPTS[boxType]
|
|
15261
|
+
}, options, {
|
|
15262
|
+
boxType
|
|
15263
|
+
}), appContext);
|
|
15264
|
+
};
|
|
15265
|
+
}
|
|
15266
|
+
MessageBox.close = () => {
|
|
15267
|
+
messageInstance.forEach((_, vm) => {
|
|
15268
|
+
vm.doClose();
|
|
15269
|
+
});
|
|
15270
|
+
messageInstance.clear();
|
|
15271
|
+
};
|
|
15272
|
+
MessageBox._context = null;
|
|
15273
|
+
const _MessageBox = MessageBox;
|
|
15274
|
+
_MessageBox.install = (app) => {
|
|
15275
|
+
_MessageBox._context = app._context;
|
|
15276
|
+
app.config.globalProperties.$msgbox = _MessageBox;
|
|
15277
|
+
app.config.globalProperties.$messageBox = _MessageBox;
|
|
15278
|
+
app.config.globalProperties.$alert = _MessageBox.alert;
|
|
15279
|
+
app.config.globalProperties.$confirm = _MessageBox.confirm;
|
|
15280
|
+
app.config.globalProperties.$prompt = _MessageBox.prompt;
|
|
15281
|
+
};
|
|
15282
|
+
const ElMessageBox = _MessageBox;
|
|
14582
15283
|
const base = "";
|
|
14583
15284
|
const elLoading = "";
|
|
14584
15285
|
const elTooltip = "";
|
|
@@ -53679,7 +54380,7 @@ const clusterMenuPlugs = [
|
|
|
53679
54380
|
}
|
|
53680
54381
|
];
|
|
53681
54382
|
const name = "vue-safe-force-graph";
|
|
53682
|
-
const version = "1.0.
|
|
54383
|
+
const version = "1.0.14";
|
|
53683
54384
|
const description = "force_graph in security area";
|
|
53684
54385
|
const author = "jason zhang";
|
|
53685
54386
|
const module$1 = "./lib/vue-safe-force-graph.js";
|
|
@@ -55335,7 +56036,7 @@ const _sfc_main$3 = {
|
|
|
55335
56036
|
// 修改lable
|
|
55336
56037
|
editLabel(nodes) {
|
|
55337
56038
|
var _a2;
|
|
55338
|
-
|
|
56039
|
+
ElMessageBox.prompt("修改备注", {
|
|
55339
56040
|
confirmButtonText: "确定",
|
|
55340
56041
|
cancelButtonText: "取消",
|
|
55341
56042
|
inputValue: (_a2 = nodes[0]) == null ? void 0 : _a2.label,
|
|
@@ -57193,7 +57894,7 @@ const _sfc_main = {
|
|
|
57193
57894
|
}
|
|
57194
57895
|
},
|
|
57195
57896
|
async saveSnapshot() {
|
|
57196
|
-
|
|
57897
|
+
ElMessageBox.prompt(null, "添加快照", {
|
|
57197
57898
|
confirmButtonText: "确定",
|
|
57198
57899
|
cancelButtonText: "取消",
|
|
57199
57900
|
inputPattern: /^.{1,20}$/,
|