完全跑通1.0版本
This commit is contained in:
44
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.js
generated
vendored
Normal file
44
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.js
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require__plugin_vue_export_helper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
||||
const require_dropdown_item_impl_vue_vue_type_script_lang = require("./dropdown-item-impl.vue_vue_type_script_lang.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown-item-impl.vue
|
||||
const _hoisted_1 = [
|
||||
"aria-disabled",
|
||||
"tabindex",
|
||||
"role"
|
||||
];
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_el_icon = (0, vue.resolveComponent)("el-icon");
|
||||
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [_ctx.divided ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("li", {
|
||||
key: 0,
|
||||
role: "separator",
|
||||
class: (0, vue.normalizeClass)(_ctx.ns.bem("menu", "item", "divided"))
|
||||
}, null, 2)) : (0, vue.createCommentVNode)("v-if", true), (0, vue.createElementVNode)("li", (0, vue.mergeProps)({ ref: _ctx.itemRef }, {
|
||||
..._ctx.dataset,
|
||||
..._ctx.$attrs
|
||||
}, {
|
||||
"aria-disabled": _ctx.disabled,
|
||||
class: [_ctx.ns.be("menu", "item"), _ctx.ns.is("disabled", _ctx.disabled)],
|
||||
tabindex: _ctx.tabIndex,
|
||||
role: _ctx.role,
|
||||
onClick: _cache[0] || (_cache[0] = (e) => _ctx.$emit("clickimpl", e)),
|
||||
onFocus: _cache[1] || (_cache[1] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
||||
onKeydown: _cache[2] || (_cache[2] = (0, vue.withModifiers)((...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args), ["self"])),
|
||||
onMousedown: _cache[3] || (_cache[3] = (...args) => _ctx.handleMousedown && _ctx.handleMousedown(...args)),
|
||||
onPointermove: _cache[4] || (_cache[4] = (e) => _ctx.$emit("pointermove", e)),
|
||||
onPointerleave: _cache[5] || (_cache[5] = (e) => _ctx.$emit("pointerleave", e))
|
||||
}), [_ctx.icon || _ctx.$slots.icon ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_el_icon, { key: 0 }, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "icon", {}, () => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(_ctx.icon)))])]),
|
||||
_: 3
|
||||
})) : (0, vue.createCommentVNode)("v-if", true), (0, vue.renderSlot)(_ctx.$slots, "default")], 16, _hoisted_1)], 64);
|
||||
}
|
||||
var dropdown_item_impl_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_dropdown_item_impl_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
|
||||
//#endregion
|
||||
exports.default = dropdown_item_impl_default;
|
||||
|
||||
//# sourceMappingURL=dropdown-item-impl.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dropdown-item-impl.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/dropdown-item-impl.vue"],"sourcesContent":["<template>\n <li\n v-if=\"divided\"\n role=\"separator\"\n :class=\"ns.bem('menu', 'item', 'divided')\"\n />\n <li\n :ref=\"itemRef\"\n v-bind=\"{ ...dataset, ...$attrs }\"\n :aria-disabled=\"disabled\"\n :class=\"[ns.be('menu', 'item'), ns.is('disabled', disabled)]\"\n :tabindex=\"tabIndex\"\n :role=\"role\"\n @click=\"(e) => $emit('clickimpl', e)\"\n @focus=\"handleFocus\"\n @keydown.self=\"handleKeydown\"\n @mousedown=\"handleMousedown\"\n @pointermove=\"(e) => $emit('pointermove', e)\"\n @pointerleave=\"(e) => $emit('pointerleave', e)\"\n >\n <el-icon v-if=\"icon || $slots.icon\">\n <slot name=\"icon\">\n <component :is=\"icon\" />\n </slot>\n </el-icon>\n <slot />\n </li>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject } from 'vue'\nimport {\n ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,\n ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n} from '@element-plus/components/roving-focus-group'\nimport { COLLECTION_ITEM_SIGN } from '@element-plus/components/collection'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport {\n composeEventHandlers,\n composeRefs,\n getEventCode,\n} from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { dropdownItemProps } from './dropdown'\nimport { DROPDOWN_INJECTION_KEY } from './tokens'\n\nexport default defineComponent({\n name: 'DropdownItemImpl',\n components: {\n ElIcon,\n },\n props: dropdownItemProps,\n emits: ['pointermove', 'pointerleave', 'click', 'clickimpl'],\n setup(_, { emit }) {\n const ns = useNamespace('dropdown')\n\n const { role: menuRole } = inject(DROPDOWN_INJECTION_KEY, undefined)!\n\n const { collectionItemRef: rovingFocusCollectionItemRef } = inject(\n ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n undefined\n )!\n\n const {\n rovingFocusGroupItemRef,\n tabIndex,\n handleFocus,\n handleKeydown: handleItemKeydown,\n handleMousedown,\n } = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, undefined)!\n\n const itemRef = composeRefs(\n rovingFocusCollectionItemRef,\n rovingFocusGroupItemRef\n )\n\n const role = computed<string>(() => {\n if (menuRole.value === 'menu') {\n return 'menuitem'\n } else if (menuRole.value === 'navigation') {\n return 'link'\n }\n return 'button'\n })\n\n const handleKeydown = composeEventHandlers((e: KeyboardEvent) => {\n const code = getEventCode(e)\n\n if (\n [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(\n code\n )\n ) {\n e.preventDefault()\n e.stopImmediatePropagation()\n emit('clickimpl', e)\n return true\n }\n }, handleItemKeydown)\n\n return {\n ns,\n itemRef,\n dataset: {\n [COLLECTION_ITEM_SIGN]: '',\n },\n role,\n tabIndex,\n handleFocus,\n handleKeydown,\n handleMousedown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;+EAEU,KAAA,YAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,oBAGN,MAAA;;EAFA,MAAK;EACJ,QAAA,GAAA,IAAA,gBAAO,KAAA,GAAG,IAAG,QAAA,QAAA,UAAA,CAAA;uFAsBX,OAAA,GAAA,IAAA,YAAA,EAnBF,KAAK,KAAA,SAAO,EAAA;EAAA,GACA,KAAA;EAAO,GAAK,KAAA;EAAM,EAAA;EAC9B,iBAAe,KAAA;EACf,OAAK,CAAG,KAAA,GAAG,GAAE,QAAA,OAAA,EAAkB,KAAA,GAAG,GAAE,YAAa,KAAA,SAAQ,CAAA;EACzD,UAAU,KAAA;EACV,MAAM,KAAA;EACN,SAAK,OAAA,OAAA,OAAA,MAAG,MAAM,KAAA,MAAK,aAAc,EAAC;EAClC,SAAK,OAAA,OAAA,OAAA,MAAA,GAAA,SAAE,KAAA,eAAA,KAAA,YAAA,GAAA,KAAW;EAClB,WAAO,OAAA,OAAA,OAAA,MAAA,GAAA,IAAA,gBAAA,GAAA,SAAO,KAAA,iBAAA,KAAA,cAAA,GAAA,KAAa,EAAA,CAAA,OAAA,CAAA;EAC3B,aAAS,OAAA,OAAA,OAAA,MAAA,GAAA,SAAE,KAAA,mBAAA,KAAA,gBAAA,GAAA,KAAe;EAC1B,eAAW,OAAA,OAAA,OAAA,MAAG,MAAM,KAAA,MAAK,eAAgB,EAAC;EAC1C,gBAAY,OAAA,OAAA,OAAA,MAAG,MAAM,KAAA,MAAK,gBAAiB,EAAC;MAE9B,KAAA,QAAQ,KAAA,OAAO,SAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,aAIpB,oBAAA,EAAA,KAAA,GAAA,EAAA;kCADD,EAAA,GAAA,IAAA,YAAA,KAAA,QAAA,QAAA,EAAA,QAAA,GAAA,GAAA,IAAA,YAAA,GAAA,GAAA,IAAA,cAAA,GAAA,IAAA,yBADW,KAAA,KAAI,CAAA,EAAA,CAAA,CAAA,CAAA;;sEAGhB,KAAA,QAAA,UAAA,CAAA,EAAA,IAAA,WAAA,CAAA,EAAA,GAAA"}
|
||||
87
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts
generated
vendored
Normal file
87
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
import { SFCWithInstall } from "../../../utils/vue/typescript.js";
|
||||
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import { IconProps } from "../../icon/src/icon.js";
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/dropdown-item-impl.vue.d.ts
|
||||
declare const _default: typeof __VLS_export;
|
||||
declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>, {
|
||||
ns: {
|
||||
namespace: _$vue.ComputedRef<string>;
|
||||
b: (blockSuffix?: string) => string;
|
||||
e: (element?: string) => string;
|
||||
m: (modifier?: string) => string;
|
||||
be: (blockSuffix?: string, element?: string) => string;
|
||||
em: (element?: string, modifier?: string) => string;
|
||||
bm: (blockSuffix?: string, modifier?: string) => string;
|
||||
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
||||
is: {
|
||||
(name: string, state: boolean | undefined): string;
|
||||
(name: string): string;
|
||||
};
|
||||
cssVar: (object: Record<string, string>) => Record<string, string>;
|
||||
cssVarName: (name: string) => string;
|
||||
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
||||
cssVarBlockName: (name: string) => string;
|
||||
};
|
||||
itemRef: (el: Element | _$vue.ComponentPublicInstance | null) => void;
|
||||
dataset: {
|
||||
"data-el-collection-item": string;
|
||||
};
|
||||
role: _$vue.ComputedRef<string>;
|
||||
tabIndex: _$vue.Ref<number, number>;
|
||||
handleFocus: (e: Event) => void;
|
||||
handleKeydown: (event: KeyboardEvent) => void;
|
||||
handleMousedown: (e: Event) => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("click" | "pointerleave" | "pointermove" | "clickimpl")[], "click" | "pointerleave" | "pointermove" | "clickimpl", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
onPointermove?: ((...args: any[]) => any) | undefined;
|
||||
onPointerleave?: ((...args: any[]) => any) | undefined;
|
||||
onClickimpl?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
readonly disabled: boolean;
|
||||
readonly command: EpPropMergeType<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
||||
readonly divided: boolean;
|
||||
}, {}, {
|
||||
ElIcon: SFCWithInstall<{
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
default?: (props: {}) => any;
|
||||
};
|
||||
})>;
|
||||
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
//#endregion
|
||||
export { _default as default };
|
||||
63
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js
generated
vendored
Normal file
63
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js
generated
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_aria = require("../../../constants/aria.js");
|
||||
const require_event = require("../../../utils/dom/event.js");
|
||||
const require_refs = require("../../../utils/vue/refs.js");
|
||||
const require_index = require("../../../hooks/use-namespace/index.js");
|
||||
const require_index$1 = require("../../icon/index.js");
|
||||
const require_collection = require("../../collection/src/collection.js");
|
||||
const require_roving_focus_group = require("../../roving-focus-group/src/roving-focus-group.js");
|
||||
const require_tokens = require("../../roving-focus-group/src/tokens.js");
|
||||
const require_dropdown = require("./dropdown.js");
|
||||
const require_tokens$1 = require("./tokens.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown-item-impl.vue?vue&type=script&lang.ts
|
||||
var dropdown_item_impl_vue_vue_type_script_lang_default = (0, vue.defineComponent)({
|
||||
name: "DropdownItemImpl",
|
||||
components: { ElIcon: require_index$1.ElIcon },
|
||||
props: require_dropdown.dropdownItemProps,
|
||||
emits: [
|
||||
"pointermove",
|
||||
"pointerleave",
|
||||
"click",
|
||||
"clickimpl"
|
||||
],
|
||||
setup(_, { emit }) {
|
||||
const ns = require_index.useNamespace("dropdown");
|
||||
const { role: menuRole } = (0, vue.inject)(require_tokens$1.DROPDOWN_INJECTION_KEY, void 0);
|
||||
const { collectionItemRef: rovingFocusCollectionItemRef } = (0, vue.inject)(require_roving_focus_group.ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY, void 0);
|
||||
const { rovingFocusGroupItemRef, tabIndex, handleFocus, handleKeydown: handleItemKeydown, handleMousedown } = (0, vue.inject)(require_tokens.ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, void 0);
|
||||
const itemRef = require_refs.composeRefs(rovingFocusCollectionItemRef, rovingFocusGroupItemRef);
|
||||
const role = (0, vue.computed)(() => {
|
||||
if (menuRole.value === "menu") return "menuitem";
|
||||
else if (menuRole.value === "navigation") return "link";
|
||||
return "button";
|
||||
});
|
||||
const handleKeydown = require_event.composeEventHandlers((e) => {
|
||||
const code = require_event.getEventCode(e);
|
||||
if ([
|
||||
require_aria.EVENT_CODE.enter,
|
||||
require_aria.EVENT_CODE.numpadEnter,
|
||||
require_aria.EVENT_CODE.space
|
||||
].includes(code)) {
|
||||
e.preventDefault();
|
||||
e.stopImmediatePropagation();
|
||||
emit("clickimpl", e);
|
||||
return true;
|
||||
}
|
||||
}, handleItemKeydown);
|
||||
return {
|
||||
ns,
|
||||
itemRef,
|
||||
dataset: { [require_collection.COLLECTION_ITEM_SIGN]: "" },
|
||||
role,
|
||||
tabIndex,
|
||||
handleFocus,
|
||||
handleKeydown,
|
||||
handleMousedown
|
||||
};
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
exports.default = dropdown_item_impl_vue_vue_type_script_lang_default;
|
||||
|
||||
//# sourceMappingURL=dropdown-item-impl.vue_vue_type_script_lang.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item-impl.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dropdown-item-impl.vue_vue_type_script_lang.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/dropdown-item-impl.vue"],"sourcesContent":["<template>\n <li\n v-if=\"divided\"\n role=\"separator\"\n :class=\"ns.bem('menu', 'item', 'divided')\"\n />\n <li\n :ref=\"itemRef\"\n v-bind=\"{ ...dataset, ...$attrs }\"\n :aria-disabled=\"disabled\"\n :class=\"[ns.be('menu', 'item'), ns.is('disabled', disabled)]\"\n :tabindex=\"tabIndex\"\n :role=\"role\"\n @click=\"(e) => $emit('clickimpl', e)\"\n @focus=\"handleFocus\"\n @keydown.self=\"handleKeydown\"\n @mousedown=\"handleMousedown\"\n @pointermove=\"(e) => $emit('pointermove', e)\"\n @pointerleave=\"(e) => $emit('pointerleave', e)\"\n >\n <el-icon v-if=\"icon || $slots.icon\">\n <slot name=\"icon\">\n <component :is=\"icon\" />\n </slot>\n </el-icon>\n <slot />\n </li>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject } from 'vue'\nimport {\n ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,\n ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n} from '@element-plus/components/roving-focus-group'\nimport { COLLECTION_ITEM_SIGN } from '@element-plus/components/collection'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport {\n composeEventHandlers,\n composeRefs,\n getEventCode,\n} from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { dropdownItemProps } from './dropdown'\nimport { DROPDOWN_INJECTION_KEY } from './tokens'\n\nexport default defineComponent({\n name: 'DropdownItemImpl',\n components: {\n ElIcon,\n },\n props: dropdownItemProps,\n emits: ['pointermove', 'pointerleave', 'click', 'clickimpl'],\n setup(_, { emit }) {\n const ns = useNamespace('dropdown')\n\n const { role: menuRole } = inject(DROPDOWN_INJECTION_KEY, undefined)!\n\n const { collectionItemRef: rovingFocusCollectionItemRef } = inject(\n ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\n undefined\n )!\n\n const {\n rovingFocusGroupItemRef,\n tabIndex,\n handleFocus,\n handleKeydown: handleItemKeydown,\n handleMousedown,\n } = inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY, undefined)!\n\n const itemRef = composeRefs(\n rovingFocusCollectionItemRef,\n rovingFocusGroupItemRef\n )\n\n const role = computed<string>(() => {\n if (menuRole.value === 'menu') {\n return 'menuitem'\n } else if (menuRole.value === 'navigation') {\n return 'link'\n }\n return 'button'\n })\n\n const handleKeydown = composeEventHandlers((e: KeyboardEvent) => {\n const code = getEventCode(e)\n\n if (\n [EVENT_CODE.enter, EVENT_CODE.numpadEnter, EVENT_CODE.space].includes(\n code\n )\n ) {\n e.preventDefault()\n e.stopImmediatePropagation()\n emit('clickimpl', e)\n return true\n }\n }, handleItemKeydown)\n\n return {\n ns,\n itemRef,\n dataset: {\n [COLLECTION_ITEM_SIGN]: '',\n },\n role,\n tabIndex,\n handleFocus,\n handleKeydown,\n handleMousedown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;AA+CA,IAAA,uDAAA,GAAA,IAAA,iBAA+B;CAC7B,MAAM;CACN,YAAY,EACV,QAAA,gBAAA,QACD;CACD,OAAO,iBAAA;CACP,OAAO;EAAC;EAAe;EAAgB;EAAS;EAAY;CAC5D,MAAM,GAAG,EAAE,QAAQ;EACjB,MAAM,KAAK,cAAA,aAAa,WAAU;EAElC,MAAM,EAAE,MAAM,cAAA,GAAA,IAAA,QAAoB,iBAAA,wBAAwB,KAAA,EAAU;EAEpE,MAAM,EAAE,mBAAmB,kCAAA,GAAA,IAAA,QACzB,2BAAA,4CACA,KAAA,EACD;EAED,MAAM,EACJ,yBACA,UACA,aACA,eAAe,mBACf,qBAAA,GAAA,IAAA,QACS,eAAA,uCAAuC,KAAA,EAAU;EAE5D,MAAM,UAAU,aAAA,YACd,8BACA,wBACF;EAEA,MAAM,QAAA,GAAA,IAAA,gBAA8B;GAClC,IAAI,SAAS,UAAU,QACrB,OAAO;QACF,IAAI,SAAS,UAAU,cAC5B,OAAO;GAET,OAAO;IACR;EAED,MAAM,gBAAgB,cAAA,sBAAsB,MAAqB;GAC/D,MAAM,OAAO,cAAA,aAAa,EAAC;GAE3B,IACE;IAAC,aAAA,WAAW;IAAO,aAAA,WAAW;IAAa,aAAA,WAAW;IAAM,CAAC,SAC3D,KACF,EACA;IACA,EAAE,gBAAe;IACjB,EAAE,0BAAyB;IAC3B,KAAK,aAAa,EAAC;IACnB,OAAO;;KAER,kBAAiB;EAEpB,OAAO;GACL;GACA;GACA,SAAS,GACN,mBAAA,uBAAuB,IACzB;GACD;GACA;GACA;GACA;GACA;GACF;;CAEH,CAAA"}
|
||||
37
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.js
generated
vendored
Normal file
37
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require__plugin_vue_export_helper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
||||
const require_dropdown_item_vue_vue_type_script_lang = require("./dropdown-item.vue_vue_type_script_lang.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown-item.vue
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_el_dropdown_item_impl = (0, vue.resolveComponent)("el-dropdown-item-impl");
|
||||
const _component_el_roving_focus_item = (0, vue.resolveComponent)("el-roving-focus-item");
|
||||
return (0, vue.openBlock)(), (0, vue.createBlock)(_component_el_roving_focus_item, { focusable: !_ctx.disabled }, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_el_dropdown_item_impl, (0, vue.mergeProps)(_ctx.propsAndAttrs, {
|
||||
onPointerleave: _ctx.handlePointerLeave,
|
||||
onPointermove: _ctx.handlePointerMove,
|
||||
onClickimpl: _ctx.handleClick
|
||||
}), (0, vue.createSlots)({
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
||||
_: 2
|
||||
}, [_ctx.$slots.icon ? {
|
||||
name: "icon",
|
||||
fn: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "icon")]),
|
||||
key: "0"
|
||||
} : void 0]), 1040, [
|
||||
"onPointerleave",
|
||||
"onPointermove",
|
||||
"onClickimpl"
|
||||
])]),
|
||||
_: 3
|
||||
}, 8, ["focusable"]);
|
||||
}
|
||||
var dropdown_item_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_dropdown_item_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
|
||||
//#endregion
|
||||
exports.default = dropdown_item_default;
|
||||
|
||||
//# sourceMappingURL=dropdown-item.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dropdown-item.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/dropdown-item.vue"],"sourcesContent":["<template>\n <el-roving-focus-item :focusable=\"!disabled\">\n <el-dropdown-item-impl\n v-bind=\"propsAndAttrs\"\n @pointerleave=\"handlePointerLeave\"\n @pointermove=\"handlePointerMove\"\n @clickimpl=\"handleClick\"\n >\n <template v-if=\"$slots.icon\" #icon>\n <slot name=\"icon\" />\n </template>\n\n <slot />\n </el-dropdown-item-impl>\n </el-roving-focus-item>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, getCurrentInstance, inject } from 'vue'\nimport { ElRovingFocusItem } from '@element-plus/components/roving-focus-group'\nimport { composeEventHandlers, whenMouse } from '@element-plus/utils'\nimport ElDropdownItemImpl from './dropdown-item-impl.vue'\nimport { useDropdown } from './useDropdown'\nimport { dropdownItemProps } from './dropdown'\nimport { DROPDOWN_INJECTION_KEY } from './tokens'\n\nexport default defineComponent({\n name: 'ElDropdownItem',\n components: {\n ElRovingFocusItem,\n ElDropdownItemImpl,\n },\n inheritAttrs: false,\n props: dropdownItemProps,\n emits: ['pointermove', 'pointerleave', 'click'],\n setup(props, { emit, attrs }) {\n const { elDropdown } = useDropdown()\n const _instance = getCurrentInstance()\n const { onItemEnter, onItemLeave } = inject(\n DROPDOWN_INJECTION_KEY,\n undefined\n )!\n\n const handlePointerMove = composeEventHandlers(\n (e: PointerEvent) => {\n emit('pointermove', e)\n return e.defaultPrevented\n },\n whenMouse((e) => {\n if (props.disabled) {\n onItemLeave(e)\n return\n }\n\n const target = e.currentTarget as HTMLElement\n /**\n * This handles the following scenario:\n * when the item contains a form element such as input element\n * when the mouse is moving over the element itself which is contained by\n * the item, the default focusing logic should be prevented so that\n * it won't cause weird action.\n */\n if (\n target === document.activeElement ||\n target.contains(document.activeElement)\n ) {\n return\n }\n\n onItemEnter(e)\n if (!e.defaultPrevented) {\n target?.focus({\n preventScroll: true,\n })\n }\n })\n )\n\n const handlePointerLeave = composeEventHandlers((e: PointerEvent) => {\n emit('pointerleave', e)\n return e.defaultPrevented\n }, whenMouse(onItemLeave))\n\n const handleClick = composeEventHandlers(\n (e: PointerEvent) => {\n if (props.disabled) {\n return\n }\n emit('click', e)\n return e.type !== 'keydown' && e.defaultPrevented\n },\n (e) => {\n if (props.disabled) {\n e.stopImmediatePropagation()\n return\n }\n if (elDropdown?.hideOnClick?.value) {\n elDropdown.handleClick?.()\n }\n elDropdown.commandHandler?.(props.command, _instance, e)\n }\n )\n\n // direct usage of v-bind={ ...$props, ...$attrs } causes type errors\n const propsAndAttrs = computed(() => ({ ...props, ...attrs }))\n\n return {\n handleClick,\n handlePointerMove,\n handlePointerLeave,\n propsAndAttrs,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;mDAcyB,iCAAA,EAbA,WAAS,CAAG,KAAA,UAAA,EAAA;kCAYT,EAAA,GAAA,IAAA,aAAA,mCAAA,GAAA,IAAA,YAAA,KAVd,eAAa;GACpB,gBAAc,KAAA;GACd,eAAa,KAAA;GACb,aAAW,KAAA;;mCAMJ,EAAA,GAAA,IAAA,YAAA,KAAA,QAAA,UAAA,CAAA,CAAA;;MAJQ,KAAA,OAAO,OAAA;SAAO;8BACR,EAAA,GAAA,IAAA,YAAA,KAAA,QAAA,OAAA,CAAA,CAAA"}
|
||||
177
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.vue.d.ts
generated
vendored
Normal file
177
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
import { SFCWithInstall } from "../../../utils/vue/typescript.js";
|
||||
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import { IconProps } from "../../icon/src/icon.js";
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/dropdown-item.vue.d.ts
|
||||
declare const _default: typeof __VLS_export;
|
||||
declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>, {
|
||||
handleClick: (event: PointerEvent) => void;
|
||||
handlePointerMove: (event: PointerEvent) => void;
|
||||
handlePointerLeave: (event: PointerEvent) => void;
|
||||
propsAndAttrs: _$vue.ComputedRef<{
|
||||
disabled: boolean;
|
||||
command: EpPropMergeType<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
||||
divided: boolean;
|
||||
icon: EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown> | undefined;
|
||||
textValue: string | undefined;
|
||||
onClick: ((...args: any[]) => any) | undefined;
|
||||
onPointermove: ((...args: any[]) => any) | undefined;
|
||||
onPointerleave: ((...args: any[]) => any) | undefined;
|
||||
}>;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("click" | "pointerleave" | "pointermove")[], "click" | "pointerleave" | "pointermove", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
onPointermove?: ((...args: any[]) => any) | undefined;
|
||||
onPointerleave?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
readonly disabled: boolean;
|
||||
readonly command: EpPropMergeType<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
||||
readonly divided: boolean;
|
||||
}, {}, {
|
||||
ElRovingFocusItem: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
focusable: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
active: BooleanConstructor;
|
||||
}>, {
|
||||
id: _$vue.Ref<string, string>;
|
||||
handleKeydown: (event: Event) => void;
|
||||
handleFocus: (event: Event) => void;
|
||||
handleMousedown: (event: Event) => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("focus" | "keydown" | "mousedown")[], "focus" | "keydown" | "mousedown", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
focusable: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
active: BooleanConstructor;
|
||||
}>> & Readonly<{
|
||||
onFocus?: ((...args: any[]) => any) | undefined;
|
||||
onKeydown?: ((...args: any[]) => any) | undefined;
|
||||
onMousedown?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
active: boolean;
|
||||
focusable: boolean;
|
||||
}, {}, {
|
||||
ElRovingFocusCollectionItem: {
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & {
|
||||
name: string;
|
||||
setup(_: unknown, {
|
||||
attrs
|
||||
}: _$vue.SetupContext): void;
|
||||
};
|
||||
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
ElDropdownItemImpl: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>, {
|
||||
ns: {
|
||||
namespace: _$vue.ComputedRef<string>;
|
||||
b: (blockSuffix?: string) => string;
|
||||
e: (element?: string) => string;
|
||||
m: (modifier?: string) => string;
|
||||
be: (blockSuffix?: string, element?: string) => string;
|
||||
em: (element?: string, modifier?: string) => string;
|
||||
bm: (blockSuffix?: string, modifier?: string) => string;
|
||||
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
||||
is: {
|
||||
(name: string, state: boolean | undefined): string;
|
||||
(name: string): string;
|
||||
};
|
||||
cssVar: (object: Record<string, string>) => Record<string, string>;
|
||||
cssVarName: (name: string) => string;
|
||||
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
||||
cssVarBlockName: (name: string) => string;
|
||||
};
|
||||
itemRef: (el: Element | _$vue.ComponentPublicInstance | null) => void;
|
||||
dataset: {
|
||||
"data-el-collection-item": string;
|
||||
};
|
||||
role: _$vue.ComputedRef<string>;
|
||||
tabIndex: _$vue.Ref<number, number>;
|
||||
handleFocus: (e: Event) => void;
|
||||
handleKeydown: (event: KeyboardEvent) => void;
|
||||
handleMousedown: (e: Event) => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("click" | "pointerleave" | "pointermove" | "clickimpl")[], "click" | "pointerleave" | "pointermove" | "clickimpl", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>> & Readonly<{
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
onPointermove?: ((...args: any[]) => any) | undefined;
|
||||
onPointerleave?: ((...args: any[]) => any) | undefined;
|
||||
onClickimpl?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
readonly disabled: boolean;
|
||||
readonly command: EpPropMergeType<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown>;
|
||||
readonly divided: boolean;
|
||||
}, {}, {
|
||||
ElIcon: SFCWithInstall<{
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
default?: (props: {}) => any;
|
||||
};
|
||||
})>;
|
||||
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
//#endregion
|
||||
export { _default as default };
|
||||
76
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js
generated
vendored
Normal file
76
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_event = require("../../../utils/dom/event.js");
|
||||
const require_roving_focus_item = require("../../roving-focus-group/src/roving-focus-item.js");
|
||||
const require_dropdown = require("./dropdown.js");
|
||||
const require_tokens = require("./tokens.js");
|
||||
const require_dropdown_item_impl = require("./dropdown-item-impl.js");
|
||||
const require_useDropdown = require("./useDropdown.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown-item.vue?vue&type=script&lang.ts
|
||||
var dropdown_item_vue_vue_type_script_lang_default = (0, vue.defineComponent)({
|
||||
name: "ElDropdownItem",
|
||||
components: {
|
||||
ElRovingFocusItem: require_roving_focus_item.default,
|
||||
ElDropdownItemImpl: require_dropdown_item_impl.default
|
||||
},
|
||||
inheritAttrs: false,
|
||||
props: require_dropdown.dropdownItemProps,
|
||||
emits: [
|
||||
"pointermove",
|
||||
"pointerleave",
|
||||
"click"
|
||||
],
|
||||
setup(props, { emit, attrs }) {
|
||||
const { elDropdown } = require_useDropdown.useDropdown();
|
||||
const _instance = (0, vue.getCurrentInstance)();
|
||||
const { onItemEnter, onItemLeave } = (0, vue.inject)(require_tokens.DROPDOWN_INJECTION_KEY, void 0);
|
||||
const handlePointerMove = require_event.composeEventHandlers((e) => {
|
||||
emit("pointermove", e);
|
||||
return e.defaultPrevented;
|
||||
}, require_event.whenMouse((e) => {
|
||||
if (props.disabled) {
|
||||
onItemLeave(e);
|
||||
return;
|
||||
}
|
||||
const target = e.currentTarget;
|
||||
/**
|
||||
* This handles the following scenario:
|
||||
* when the item contains a form element such as input element
|
||||
* when the mouse is moving over the element itself which is contained by
|
||||
* the item, the default focusing logic should be prevented so that
|
||||
* it won't cause weird action.
|
||||
*/
|
||||
if (target === document.activeElement || target.contains(document.activeElement)) return;
|
||||
onItemEnter(e);
|
||||
if (!e.defaultPrevented) target?.focus({ preventScroll: true });
|
||||
}));
|
||||
const handlePointerLeave = require_event.composeEventHandlers((e) => {
|
||||
emit("pointerleave", e);
|
||||
return e.defaultPrevented;
|
||||
}, require_event.whenMouse(onItemLeave));
|
||||
return {
|
||||
handleClick: require_event.composeEventHandlers((e) => {
|
||||
if (props.disabled) return;
|
||||
emit("click", e);
|
||||
return e.type !== "keydown" && e.defaultPrevented;
|
||||
}, (e) => {
|
||||
if (props.disabled) {
|
||||
e.stopImmediatePropagation();
|
||||
return;
|
||||
}
|
||||
if (elDropdown?.hideOnClick?.value) elDropdown.handleClick?.();
|
||||
elDropdown.commandHandler?.(props.command, _instance, e);
|
||||
}),
|
||||
handlePointerMove,
|
||||
handlePointerLeave,
|
||||
propsAndAttrs: (0, vue.computed)(() => ({
|
||||
...props,
|
||||
...attrs
|
||||
}))
|
||||
};
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
exports.default = dropdown_item_vue_vue_type_script_lang_default;
|
||||
|
||||
//# sourceMappingURL=dropdown-item.vue_vue_type_script_lang.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-item.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dropdown-item.vue_vue_type_script_lang.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/dropdown-item.vue"],"sourcesContent":["<template>\n <el-roving-focus-item :focusable=\"!disabled\">\n <el-dropdown-item-impl\n v-bind=\"propsAndAttrs\"\n @pointerleave=\"handlePointerLeave\"\n @pointermove=\"handlePointerMove\"\n @clickimpl=\"handleClick\"\n >\n <template v-if=\"$slots.icon\" #icon>\n <slot name=\"icon\" />\n </template>\n\n <slot />\n </el-dropdown-item-impl>\n </el-roving-focus-item>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, getCurrentInstance, inject } from 'vue'\nimport { ElRovingFocusItem } from '@element-plus/components/roving-focus-group'\nimport { composeEventHandlers, whenMouse } from '@element-plus/utils'\nimport ElDropdownItemImpl from './dropdown-item-impl.vue'\nimport { useDropdown } from './useDropdown'\nimport { dropdownItemProps } from './dropdown'\nimport { DROPDOWN_INJECTION_KEY } from './tokens'\n\nexport default defineComponent({\n name: 'ElDropdownItem',\n components: {\n ElRovingFocusItem,\n ElDropdownItemImpl,\n },\n inheritAttrs: false,\n props: dropdownItemProps,\n emits: ['pointermove', 'pointerleave', 'click'],\n setup(props, { emit, attrs }) {\n const { elDropdown } = useDropdown()\n const _instance = getCurrentInstance()\n const { onItemEnter, onItemLeave } = inject(\n DROPDOWN_INJECTION_KEY,\n undefined\n )!\n\n const handlePointerMove = composeEventHandlers(\n (e: PointerEvent) => {\n emit('pointermove', e)\n return e.defaultPrevented\n },\n whenMouse((e) => {\n if (props.disabled) {\n onItemLeave(e)\n return\n }\n\n const target = e.currentTarget as HTMLElement\n /**\n * This handles the following scenario:\n * when the item contains a form element such as input element\n * when the mouse is moving over the element itself which is contained by\n * the item, the default focusing logic should be prevented so that\n * it won't cause weird action.\n */\n if (\n target === document.activeElement ||\n target.contains(document.activeElement)\n ) {\n return\n }\n\n onItemEnter(e)\n if (!e.defaultPrevented) {\n target?.focus({\n preventScroll: true,\n })\n }\n })\n )\n\n const handlePointerLeave = composeEventHandlers((e: PointerEvent) => {\n emit('pointerleave', e)\n return e.defaultPrevented\n }, whenMouse(onItemLeave))\n\n const handleClick = composeEventHandlers(\n (e: PointerEvent) => {\n if (props.disabled) {\n return\n }\n emit('click', e)\n return e.type !== 'keydown' && e.defaultPrevented\n },\n (e) => {\n if (props.disabled) {\n e.stopImmediatePropagation()\n return\n }\n if (elDropdown?.hideOnClick?.value) {\n elDropdown.handleClick?.()\n }\n elDropdown.commandHandler?.(props.command, _instance, e)\n }\n )\n\n // direct usage of v-bind={ ...$props, ...$attrs } causes type errors\n const propsAndAttrs = computed(() => ({ ...props, ...attrs }))\n\n return {\n handleClick,\n handlePointerMove,\n handlePointerLeave,\n propsAndAttrs,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;AA0BA,IAAA,kDAAA,GAAA,IAAA,iBAA+B;CAC7B,MAAM;CACN,YAAY;EACV,mBAAA,0BAAA;EACA,oBAAA,2BAAA;EACD;CACD,cAAc;CACd,OAAO,iBAAA;CACP,OAAO;EAAC;EAAe;EAAgB;EAAQ;CAC/C,MAAM,OAAO,EAAE,MAAM,SAAS;EAC5B,MAAM,EAAE,eAAe,oBAAA,aAAY;EACnC,MAAM,aAAA,GAAA,IAAA,qBAA+B;EACrC,MAAM,EAAE,aAAa,iBAAA,GAAA,IAAA,QACnB,eAAA,wBACA,KAAA,EACD;EAED,MAAM,oBAAoB,cAAA,sBACvB,MAAoB;GACnB,KAAK,eAAe,EAAC;GACrB,OAAO,EAAE;KAEX,cAAA,WAAW,MAAM;GACf,IAAI,MAAM,UAAU;IAClB,YAAY,EAAC;IACb;;GAGF,MAAM,SAAS,EAAE;;;;;;;;GAQjB,IACE,WAAW,SAAS,iBACpB,OAAO,SAAS,SAAS,cAAa,EAEtC;GAGF,YAAY,EAAC;GACb,IAAI,CAAC,EAAE,kBACL,QAAQ,MAAM,EACZ,eAAe,MAChB,CAAA;IAEJ,CACH;EAEA,MAAM,qBAAqB,cAAA,sBAAsB,MAAoB;GACnE,KAAK,gBAAgB,EAAC;GACtB,OAAO,EAAE;KACR,cAAA,UAAU,YAAY,CAAA;EAyBzB,OAAO;GACL,aAxBkB,cAAA,sBACjB,MAAoB;IACnB,IAAI,MAAM,UACR;IAEF,KAAK,SAAS,EAAC;IACf,OAAO,EAAE,SAAS,aAAa,EAAE;OAElC,MAAM;IACL,IAAI,MAAM,UAAU;KAClB,EAAE,0BAAyB;KAC3B;;IAEF,IAAI,YAAY,aAAa,OAC3B,WAAW,eAAc;IAE3B,WAAW,iBAAiB,MAAM,SAAS,WAAW,EAAC;KAQ9C;GACX;GACA;GACA,gBAAA,GAAA,IAAA,iBANoC;IAAE,GAAG;IAAO,GAAG;IAAO,EAM7C;GACf;;CAEH,CAAA"}
|
||||
29
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.js
generated
vendored
Normal file
29
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require__plugin_vue_export_helper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
||||
const require_dropdown_menu_vue_vue_type_script_lang = require("./dropdown-menu.vue_vue_type_script_lang.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown-menu.vue
|
||||
const _hoisted_1 = ["role", "aria-labelledby"];
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return (0, vue.openBlock)(), (0, vue.createElementBlock)("ul", {
|
||||
ref: _ctx.dropdownListWrapperRef,
|
||||
class: (0, vue.normalizeClass)(_ctx.dropdownKls),
|
||||
style: (0, vue.normalizeStyle)(_ctx.rovingFocusGroupRootStyle),
|
||||
tabindex: -1,
|
||||
role: _ctx.role,
|
||||
"aria-labelledby": _ctx.triggerId,
|
||||
onFocusin: _cache[0] || (_cache[0] = (...args) => _ctx.handleFocus && _ctx.handleFocus(...args)),
|
||||
onFocusout: _cache[1] || (_cache[1] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
|
||||
onKeydown: _cache[2] || (_cache[2] = (0, vue.withModifiers)((...args) => _ctx.handleKeydown && _ctx.handleKeydown(...args), ["self"])),
|
||||
onMousedown: _cache[3] || (_cache[3] = (0, vue.withModifiers)((...args) => _ctx.onMousedown && _ctx.onMousedown(...args), ["self"]))
|
||||
}, [(0, vue.renderSlot)(_ctx.$slots, "default")], 46, _hoisted_1);
|
||||
}
|
||||
var dropdown_menu_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_dropdown_menu_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
|
||||
//#endregion
|
||||
exports.default = dropdown_menu_default;
|
||||
|
||||
//# sourceMappingURL=dropdown-menu.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dropdown-menu.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/dropdown-menu.vue"],"sourcesContent":["<template>\n <ul\n :ref=\"dropdownListWrapperRef\"\n :class=\"dropdownKls\"\n :style=\"rovingFocusGroupRootStyle\"\n :tabindex=\"-1\"\n :role=\"role\"\n :aria-labelledby=\"triggerId\"\n @focusin=\"handleFocus\"\n @focusout=\"onBlur\"\n @keydown.self=\"handleKeydown\"\n @mousedown.self=\"onMousedown\"\n >\n <slot />\n </ul>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject } from 'vue'\nimport {\n composeEventHandlers,\n composeRefs,\n getEventCode,\n} from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport {\n ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n ROVING_FOCUS_GROUP_INJECTION_KEY,\n} from '@element-plus/components/roving-focus-group'\nimport { useNamespace } from '@element-plus/hooks'\nimport { DROPDOWN_INJECTION_KEY } from './tokens'\nimport { dropdownMenuProps } from './dropdown'\nimport { useDropdown } from './useDropdown'\n\nexport default defineComponent({\n name: 'ElDropdownMenu',\n props: dropdownMenuProps,\n setup(props) {\n const ns = useNamespace('dropdown')\n const { _elDropdownSize } = useDropdown()\n const size = _elDropdownSize.value\n\n const { contentRef, role, triggerId, isUsingKeyboard, handleClose } =\n inject(DROPDOWN_INJECTION_KEY, undefined)!\n\n const {\n rovingFocusGroupRef,\n rovingFocusGroupRootStyle,\n onBlur,\n onFocus,\n onKeydown,\n onMousedown,\n } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, undefined)!\n\n const { collectionRef: rovingFocusGroupCollectionRef } = inject(\n ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n undefined\n )!\n\n const dropdownKls = computed(() => {\n return [ns.b('menu'), ns.bm('menu', size?.value)]\n })\n\n const dropdownListWrapperRef = composeRefs(\n contentRef,\n rovingFocusGroupRef,\n rovingFocusGroupCollectionRef\n )\n\n const handleKeydown = composeEventHandlers(\n (e: KeyboardEvent) => {\n props.onKeydown?.(e)\n },\n (e) => {\n const { currentTarget, target } = e\n const code = getEventCode(e)\n\n const isKeydownContained = (currentTarget as Node).contains(\n target as Node\n )\n\n if (isKeydownContained) {\n // TODO: implement typeahead search\n }\n\n if (EVENT_CODE.tab === code) {\n return handleClose()\n }\n\n onKeydown(e)\n }\n )\n\n function handleFocus(e: FocusEvent) {\n isUsingKeyboard.value && onFocus(e)\n }\n\n return {\n size,\n rovingFocusGroupRootStyle,\n dropdownKls,\n role,\n triggerId,\n dropdownListWrapperRef,\n handleKeydown,\n onBlur,\n handleFocus,\n onMousedown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;0DAcO,MAAA;EAZF,KAAK,KAAA;EACL,QAAA,GAAA,IAAA,gBAAO,KAAA,YAAW;EAClB,QAAA,GAAA,IAAA,gBAAO,KAAA,0BAAyB;EAChC,UAAU;EACV,MAAM,KAAA;EACN,mBAAiB,KAAA;EACjB,WAAO,OAAA,OAAA,OAAA,MAAA,GAAA,SAAE,KAAA,eAAA,KAAA,YAAA,GAAA,KAAW;EACpB,YAAQ,OAAA,OAAA,OAAA,MAAA,GAAA,SAAE,KAAA,UAAA,KAAA,OAAA,GAAA,KAAM;EAChB,WAAO,OAAA,OAAA,OAAA,MAAA,GAAA,IAAA,gBAAA,GAAA,SAAO,KAAA,iBAAA,KAAA,cAAA,GAAA,KAAa,EAAA,CAAA,OAAA,CAAA;EAC3B,aAAS,OAAA,OAAA,OAAA,MAAA,GAAA,IAAA,gBAAA,GAAA,SAAO,KAAA,eAAA,KAAA,YAAA,GAAA,KAAW,EAAA,CAAA,OAAA,CAAA;yBAEpB,KAAA,QAAA,UAAA,CAAA,EAAA,IAAA,WAAA"}
|
||||
32
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.vue.d.ts
generated
vendored
Normal file
32
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/dropdown-menu.vue.d.ts
|
||||
declare const _default: typeof __VLS_export;
|
||||
declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
onKeydown: {
|
||||
readonly type: _$vue.PropType<(e: KeyboardEvent) => void>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>, {
|
||||
size: _$vue.ComputedRef<string> | undefined;
|
||||
rovingFocusGroupRootStyle: _$vue.Ref<_$vue.StyleValue, _$vue.StyleValue>;
|
||||
dropdownKls: _$vue.ComputedRef<string[]>;
|
||||
role: _$vue.ComputedRef<"dialog" | "tree" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation" | undefined>;
|
||||
triggerId: _$vue.ComputedRef<string>;
|
||||
dropdownListWrapperRef: (el: Element | _$vue.ComponentPublicInstance | null) => void;
|
||||
handleKeydown: (event: KeyboardEvent) => void;
|
||||
onBlur: (e: Event) => void;
|
||||
handleFocus: (e: FocusEvent) => void;
|
||||
onMousedown: (e: Event) => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
onKeydown: {
|
||||
readonly type: _$vue.PropType<(e: KeyboardEvent) => void>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
}>> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
//#endregion
|
||||
export { _default as default };
|
||||
56
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js
generated
vendored
Normal file
56
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_aria = require("../../../constants/aria.js");
|
||||
const require_event = require("../../../utils/dom/event.js");
|
||||
const require_refs = require("../../../utils/vue/refs.js");
|
||||
const require_index = require("../../../hooks/use-namespace/index.js");
|
||||
const require_roving_focus_group = require("../../roving-focus-group/src/roving-focus-group.js");
|
||||
const require_tokens = require("../../roving-focus-group/src/tokens.js");
|
||||
const require_dropdown = require("./dropdown.js");
|
||||
const require_tokens$1 = require("./tokens.js");
|
||||
const require_useDropdown = require("./useDropdown.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown-menu.vue?vue&type=script&lang.ts
|
||||
var dropdown_menu_vue_vue_type_script_lang_default = (0, vue.defineComponent)({
|
||||
name: "ElDropdownMenu",
|
||||
props: require_dropdown.dropdownMenuProps,
|
||||
setup(props) {
|
||||
const ns = require_index.useNamespace("dropdown");
|
||||
const { _elDropdownSize } = require_useDropdown.useDropdown();
|
||||
const size = _elDropdownSize.value;
|
||||
const { contentRef, role, triggerId, isUsingKeyboard, handleClose } = (0, vue.inject)(require_tokens$1.DROPDOWN_INJECTION_KEY, void 0);
|
||||
const { rovingFocusGroupRef, rovingFocusGroupRootStyle, onBlur, onFocus, onKeydown, onMousedown } = (0, vue.inject)(require_tokens.ROVING_FOCUS_GROUP_INJECTION_KEY, void 0);
|
||||
const { collectionRef: rovingFocusGroupCollectionRef } = (0, vue.inject)(require_roving_focus_group.ROVING_FOCUS_COLLECTION_INJECTION_KEY, void 0);
|
||||
const dropdownKls = (0, vue.computed)(() => {
|
||||
return [ns.b("menu"), ns.bm("menu", size?.value)];
|
||||
});
|
||||
const dropdownListWrapperRef = require_refs.composeRefs(contentRef, rovingFocusGroupRef, rovingFocusGroupCollectionRef);
|
||||
const handleKeydown = require_event.composeEventHandlers((e) => {
|
||||
props.onKeydown?.(e);
|
||||
}, (e) => {
|
||||
const { currentTarget, target } = e;
|
||||
const code = require_event.getEventCode(e);
|
||||
if (currentTarget.contains(target)) {}
|
||||
if (require_aria.EVENT_CODE.tab === code) return handleClose();
|
||||
onKeydown(e);
|
||||
});
|
||||
function handleFocus(e) {
|
||||
isUsingKeyboard.value && onFocus(e);
|
||||
}
|
||||
return {
|
||||
size,
|
||||
rovingFocusGroupRootStyle,
|
||||
dropdownKls,
|
||||
role,
|
||||
triggerId,
|
||||
dropdownListWrapperRef,
|
||||
handleKeydown,
|
||||
onBlur,
|
||||
handleFocus,
|
||||
onMousedown
|
||||
};
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
exports.default = dropdown_menu_vue_vue_type_script_lang_default;
|
||||
|
||||
//# sourceMappingURL=dropdown-menu.vue_vue_type_script_lang.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown-menu.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"dropdown-menu.vue_vue_type_script_lang.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/dropdown-menu.vue"],"sourcesContent":["<template>\n <ul\n :ref=\"dropdownListWrapperRef\"\n :class=\"dropdownKls\"\n :style=\"rovingFocusGroupRootStyle\"\n :tabindex=\"-1\"\n :role=\"role\"\n :aria-labelledby=\"triggerId\"\n @focusin=\"handleFocus\"\n @focusout=\"onBlur\"\n @keydown.self=\"handleKeydown\"\n @mousedown.self=\"onMousedown\"\n >\n <slot />\n </ul>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, inject } from 'vue'\nimport {\n composeEventHandlers,\n composeRefs,\n getEventCode,\n} from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport {\n ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n ROVING_FOCUS_GROUP_INJECTION_KEY,\n} from '@element-plus/components/roving-focus-group'\nimport { useNamespace } from '@element-plus/hooks'\nimport { DROPDOWN_INJECTION_KEY } from './tokens'\nimport { dropdownMenuProps } from './dropdown'\nimport { useDropdown } from './useDropdown'\n\nexport default defineComponent({\n name: 'ElDropdownMenu',\n props: dropdownMenuProps,\n setup(props) {\n const ns = useNamespace('dropdown')\n const { _elDropdownSize } = useDropdown()\n const size = _elDropdownSize.value\n\n const { contentRef, role, triggerId, isUsingKeyboard, handleClose } =\n inject(DROPDOWN_INJECTION_KEY, undefined)!\n\n const {\n rovingFocusGroupRef,\n rovingFocusGroupRootStyle,\n onBlur,\n onFocus,\n onKeydown,\n onMousedown,\n } = inject(ROVING_FOCUS_GROUP_INJECTION_KEY, undefined)!\n\n const { collectionRef: rovingFocusGroupCollectionRef } = inject(\n ROVING_FOCUS_COLLECTION_INJECTION_KEY,\n undefined\n )!\n\n const dropdownKls = computed(() => {\n return [ns.b('menu'), ns.bm('menu', size?.value)]\n })\n\n const dropdownListWrapperRef = composeRefs(\n contentRef,\n rovingFocusGroupRef,\n rovingFocusGroupCollectionRef\n )\n\n const handleKeydown = composeEventHandlers(\n (e: KeyboardEvent) => {\n props.onKeydown?.(e)\n },\n (e) => {\n const { currentTarget, target } = e\n const code = getEventCode(e)\n\n const isKeydownContained = (currentTarget as Node).contains(\n target as Node\n )\n\n if (isKeydownContained) {\n // TODO: implement typeahead search\n }\n\n if (EVENT_CODE.tab === code) {\n return handleClose()\n }\n\n onKeydown(e)\n }\n )\n\n function handleFocus(e: FocusEvent) {\n isUsingKeyboard.value && onFocus(e)\n }\n\n return {\n size,\n rovingFocusGroupRootStyle,\n dropdownKls,\n role,\n triggerId,\n dropdownListWrapperRef,\n handleKeydown,\n onBlur,\n handleFocus,\n onMousedown,\n }\n },\n})\n</script>\n"],"mappings":";;;;;;;;;;;;AAkCA,IAAA,kDAAA,GAAA,IAAA,iBAA+B;CAC7B,MAAM;CACN,OAAO,iBAAA;CACP,MAAM,OAAO;EACX,MAAM,KAAK,cAAA,aAAa,WAAU;EAClC,MAAM,EAAE,oBAAoB,oBAAA,aAAY;EACxC,MAAM,OAAO,gBAAgB;EAE7B,MAAM,EAAE,YAAY,MAAM,WAAW,iBAAiB,iBAAA,GAAA,IAAA,QAC7C,iBAAA,wBAAwB,KAAA,EAAU;EAE3C,MAAM,EACJ,qBACA,2BACA,QACA,SACA,WACA,iBAAA,GAAA,IAAA,QACS,eAAA,kCAAkC,KAAA,EAAU;EAEvD,MAAM,EAAE,eAAe,mCAAA,GAAA,IAAA,QACrB,2BAAA,uCACA,KAAA,EACD;EAED,MAAM,eAAA,GAAA,IAAA,gBAA6B;GACjC,OAAO,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,GAAG,QAAQ,MAAM,MAAM,CAAA;IACjD;EAED,MAAM,yBAAyB,aAAA,YAC7B,YACA,qBACA,8BACF;EAEA,MAAM,gBAAgB,cAAA,sBACnB,MAAqB;GACpB,MAAM,YAAY,EAAC;MAEpB,MAAM;GACL,MAAM,EAAE,eAAe,WAAW;GAClC,MAAM,OAAO,cAAA,aAAa,EAAC;GAM3B,IAJ4B,cAAuB,SACjD,OAGoB,EAAE;GAIxB,IAAI,aAAA,WAAW,QAAQ,MACrB,OAAO,aAAY;GAGrB,UAAU,EAAC;IAEf;EAEA,SAAS,YAAY,GAAe;GAClC,gBAAgB,SAAS,QAAQ,EAAC;;EAGpC,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACA;GACF;;CAEH,CAAA"}
|
||||
208
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.d.ts
generated
vendored
Normal file
208
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.d.ts
generated
vendored
Normal file
@@ -0,0 +1,208 @@
|
||||
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import { Arrayable, Nullable } from "../../../utils/typescript.js";
|
||||
import { Measurable } from "../../popper/src/constants.js";
|
||||
import { PopperEffect } from "../../popper/src/popper.js";
|
||||
import { Placement as Placement$1 } from "../../popper/index.js";
|
||||
import { ButtonProps } from "../../button/src/button.js";
|
||||
import * as _$vue from "vue";
|
||||
import { ComponentInternalInstance, ComputedRef } from "vue";
|
||||
import { Options } from "@popperjs/core";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/dropdown.d.ts
|
||||
interface IElDropdownInstance {
|
||||
instance?: ComponentInternalInstance;
|
||||
dropdownSize?: ComputedRef<string>;
|
||||
handleClick?: () => void;
|
||||
commandHandler?: (...arg: any[]) => void;
|
||||
show?: () => void;
|
||||
hide?: () => void;
|
||||
trigger?: ComputedRef<string>;
|
||||
hideOnClick?: ComputedRef<boolean>;
|
||||
triggerElm?: ComputedRef<Nullable<HTMLButtonElement>>;
|
||||
}
|
||||
declare const dropdownProps: {
|
||||
readonly trigger: {
|
||||
readonly type: _$vue.PropType<Arrayable<"click" | "hover" | "contextmenu">>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
readonly __epPropKey: true;
|
||||
readonly default: "hover";
|
||||
};
|
||||
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
|
||||
readonly virtualTriggering: BooleanConstructor;
|
||||
readonly virtualRef: {
|
||||
readonly type: _$vue.PropType<Measurable>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly effect: {
|
||||
readonly default: "light";
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
readonly __epPropKey: true;
|
||||
};
|
||||
readonly type: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (((new (...args: any[]) => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger")) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1) | (((new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement$1)) | null)[], unknown, unknown, "bottom", boolean>;
|
||||
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
||||
readonly id: StringConstructor;
|
||||
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly splitButton: BooleanConstructor;
|
||||
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
||||
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
||||
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
||||
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, "", boolean>;
|
||||
readonly popperClass: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | _$vue.CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly role: EpPropFinalized<StringConstructor, "dialog" | "tree" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation", unknown, "menu", boolean>;
|
||||
readonly buttonProps: {
|
||||
readonly type: _$vue.PropType<Partial<ButtonProps>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly appendTo: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
};
|
||||
declare const dropdownItemProps: {
|
||||
readonly command: EpPropFinalized<readonly [ObjectConstructor, StringConstructor, NumberConstructor], unknown, unknown, () => {}, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly divided: BooleanConstructor;
|
||||
readonly textValue: StringConstructor;
|
||||
readonly icon: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component) | (((new (...args: any[]) => (string | _$vue.Component) & {}) | (() => string | _$vue.Component)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
};
|
||||
declare const dropdownMenuProps: {
|
||||
onKeydown: {
|
||||
readonly type: _$vue.PropType<(e: KeyboardEvent) => void>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
};
|
||||
declare const FIRST_KEYS: string[];
|
||||
declare const LAST_KEYS: string[];
|
||||
declare const FIRST_LAST_KEYS: string[];
|
||||
//#endregion
|
||||
export { FIRST_KEYS, FIRST_LAST_KEYS, IElDropdownInstance, LAST_KEYS, dropdownItemProps, dropdownMenuProps, dropdownProps };
|
||||
200
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.js
generated
vendored
Normal file
200
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.js
generated
vendored
Normal file
@@ -0,0 +1,200 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
const require_aria = require("../../../constants/aria.js");
|
||||
const require_runtime = require("../../../utils/vue/props/runtime.js");
|
||||
const require_icon = require("../../../utils/vue/icon.js");
|
||||
const require_popper = require("../../popper/src/popper.js");
|
||||
const require_content = require("../../tooltip/src/content.js");
|
||||
const require_trigger = require("../../tooltip/src/trigger.js");
|
||||
//#region ../../packages/components/dropdown/src/dropdown.ts
|
||||
const dropdownProps = require_runtime.buildProps({
|
||||
/**
|
||||
* @description how to trigger
|
||||
*/
|
||||
trigger: {
|
||||
...require_trigger.useTooltipTriggerProps.trigger,
|
||||
type: require_runtime.definePropType([String, Array])
|
||||
},
|
||||
triggerKeys: {
|
||||
type: require_runtime.definePropType(Array),
|
||||
default: () => [
|
||||
require_aria.EVENT_CODE.enter,
|
||||
require_aria.EVENT_CODE.numpadEnter,
|
||||
require_aria.EVENT_CODE.space,
|
||||
require_aria.EVENT_CODE.down
|
||||
]
|
||||
},
|
||||
/**
|
||||
* @description Indicates whether virtual triggering is enabled
|
||||
*/
|
||||
virtualTriggering: require_trigger.useTooltipTriggerProps.virtualTriggering,
|
||||
/**
|
||||
* @description Indicates the reference element to which the dropdown is attached
|
||||
*/
|
||||
virtualRef: require_trigger.useTooltipTriggerProps.virtualRef,
|
||||
/**
|
||||
* @description Tooltip theme, built-in theme: `dark` / `light`
|
||||
*/
|
||||
effect: {
|
||||
...require_content.useTooltipContentProps.effect,
|
||||
default: "light"
|
||||
},
|
||||
/**
|
||||
* @description menu button type, refer to `Button` Component, only works when `split-button` is true
|
||||
*/
|
||||
type: { type: require_runtime.definePropType(String) },
|
||||
/**
|
||||
* @description placement of pop menu
|
||||
*/
|
||||
placement: {
|
||||
type: require_runtime.definePropType(String),
|
||||
default: "bottom"
|
||||
},
|
||||
/**
|
||||
* @description [popper.js](https://popper.js.org/docs/v2/) parameters
|
||||
*/
|
||||
popperOptions: {
|
||||
type: require_runtime.definePropType(Object),
|
||||
default: () => ({})
|
||||
},
|
||||
id: String,
|
||||
/**
|
||||
* @description menu size, also works on the split button
|
||||
*/
|
||||
size: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/**
|
||||
* @description whether a button group is displayed
|
||||
*/
|
||||
splitButton: Boolean,
|
||||
/**
|
||||
* @description whether to hide menu after clicking menu-item
|
||||
*/
|
||||
hideOnClick: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
loop: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* @description whether the tooltip content has an arrow
|
||||
*/
|
||||
showArrow: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
/**
|
||||
* @description delay time before show a dropdown (only works when trigger is `hover`)
|
||||
*/
|
||||
showTimeout: {
|
||||
type: Number,
|
||||
default: 150
|
||||
},
|
||||
/**
|
||||
* @description delay time before hide a dropdown (only works when trigger is `hover`)
|
||||
*/
|
||||
hideTimeout: {
|
||||
type: Number,
|
||||
default: 150
|
||||
},
|
||||
/**
|
||||
* @description [tabindex](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of Dropdown
|
||||
*/
|
||||
tabindex: {
|
||||
type: require_runtime.definePropType([Number, String]),
|
||||
default: 0
|
||||
},
|
||||
/**
|
||||
* @description the max height of menu
|
||||
*/
|
||||
maxHeight: {
|
||||
type: require_runtime.definePropType([Number, String]),
|
||||
default: ""
|
||||
},
|
||||
/**
|
||||
* @description custom class name for Dropdown's dropdown
|
||||
*/
|
||||
popperClass: require_content.useTooltipContentProps.popperClass,
|
||||
/**
|
||||
* @description custom style for Dropdown's dropdown
|
||||
*/
|
||||
popperStyle: require_content.useTooltipContentProps.popperStyle,
|
||||
/**
|
||||
* @description whether to disable
|
||||
*/
|
||||
disabled: Boolean,
|
||||
/**
|
||||
* @description the ARIA role attribute for the dropdown menu. Depending on the use case, you may want to change this to 'navigation'
|
||||
*/
|
||||
role: {
|
||||
type: String,
|
||||
values: require_popper.roleTypes,
|
||||
default: "menu"
|
||||
},
|
||||
buttonProps: { type: require_runtime.definePropType(Object) },
|
||||
/**
|
||||
* @description whether the dropdown popup is teleported to the body
|
||||
*/
|
||||
teleported: require_content.useTooltipContentProps.teleported,
|
||||
/**
|
||||
* @description which element the dropdown CONTENT appends to
|
||||
*/
|
||||
appendTo: require_content.useTooltipContentProps.appendTo,
|
||||
/**
|
||||
* @description when dropdown inactive and `persistent` is `false` , dropdown menu will be destroyed
|
||||
*/
|
||||
persistent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
});
|
||||
const dropdownItemProps = require_runtime.buildProps({
|
||||
/**
|
||||
* @description a command to be dispatched to Dropdown's `command` callback
|
||||
*/
|
||||
command: {
|
||||
type: [
|
||||
Object,
|
||||
String,
|
||||
Number
|
||||
],
|
||||
default: () => ({})
|
||||
},
|
||||
/**
|
||||
* @description whether the item is disabled
|
||||
*/
|
||||
disabled: Boolean,
|
||||
/**
|
||||
* @description whether a divider is displayed
|
||||
*/
|
||||
divided: Boolean,
|
||||
textValue: String,
|
||||
/**
|
||||
* @description custom icon
|
||||
*/
|
||||
icon: { type: require_icon.iconPropType }
|
||||
});
|
||||
const dropdownMenuProps = require_runtime.buildProps({ onKeydown: { type: require_runtime.definePropType(Function) } });
|
||||
const FIRST_KEYS = [
|
||||
require_aria.EVENT_CODE.down,
|
||||
require_aria.EVENT_CODE.pageDown,
|
||||
require_aria.EVENT_CODE.home
|
||||
];
|
||||
const LAST_KEYS = [
|
||||
require_aria.EVENT_CODE.up,
|
||||
require_aria.EVENT_CODE.pageUp,
|
||||
require_aria.EVENT_CODE.end
|
||||
];
|
||||
const FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
|
||||
//#endregion
|
||||
exports.FIRST_KEYS = FIRST_KEYS;
|
||||
exports.FIRST_LAST_KEYS = FIRST_LAST_KEYS;
|
||||
exports.LAST_KEYS = LAST_KEYS;
|
||||
exports.dropdownItemProps = dropdownItemProps;
|
||||
exports.dropdownMenuProps = dropdownMenuProps;
|
||||
exports.dropdownProps = dropdownProps;
|
||||
|
||||
//# sourceMappingURL=dropdown.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
918
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.vue.d.ts
generated
vendored
Normal file
918
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,918 @@
|
||||
import { IconPropType } from "../../../utils/vue/icon.js";
|
||||
import { SFCWithInstall } from "../../../utils/vue/typescript.js";
|
||||
import { EpPropFinalized, EpPropMergeType } from "../../../utils/vue/props/types.js";
|
||||
import { Arrayable } from "../../../utils/typescript.js";
|
||||
import { Translator } from "../../../hooks/use-locale/index.js";
|
||||
import { Measurable } from "../../popper/src/constants.js";
|
||||
import { PopperEffect, PopperInstance, roleTypes } from "../../popper/src/popper.js";
|
||||
import { Options, Placement } from "../../popper/index.js";
|
||||
import { TooltipContentInstance } from "../../tooltip/src/content.js";
|
||||
import { TooltipTriggerType } from "../../tooltip/src/trigger.js";
|
||||
import { TooltipInstance, UseTooltipProps } from "../../tooltip/src/tooltip.js";
|
||||
import { ButtonNativeType, ButtonProps, ButtonType } from "../../button/src/button.js";
|
||||
import { ButtonGroupProps } from "../../button/src/button-group.js";
|
||||
import _default$1 from "../../button/src/button-group.vue.js";
|
||||
import { IconProps } from "../../icon/src/icon.js";
|
||||
import { ScrollbarDirection, ScrollbarProps } from "../../scrollbar/src/scrollbar.js";
|
||||
import * as _$vue from "vue";
|
||||
import { CSSProperties } from "vue";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/dropdown.vue.d.ts
|
||||
declare const _default: typeof __VLS_export;
|
||||
declare const __VLS_export: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
readonly trigger: {
|
||||
readonly type: _$vue.PropType<Arrayable<"click" | "hover" | "contextmenu">>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
readonly __epPropKey: true;
|
||||
readonly default: "hover";
|
||||
};
|
||||
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
|
||||
readonly virtualTriggering: BooleanConstructor;
|
||||
readonly virtualRef: {
|
||||
readonly type: _$vue.PropType<Measurable>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly effect: {
|
||||
readonly default: "light";
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
readonly __epPropKey: true;
|
||||
};
|
||||
readonly type: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (((new (...args: any[]) => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger")) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], unknown, unknown, "bottom", boolean>;
|
||||
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
||||
readonly id: StringConstructor;
|
||||
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly splitButton: BooleanConstructor;
|
||||
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
||||
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
||||
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
||||
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, "", boolean>;
|
||||
readonly popperClass: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly role: EpPropFinalized<StringConstructor, "dialog" | "tree" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation", unknown, "menu", boolean>;
|
||||
readonly buttonProps: {
|
||||
readonly type: _$vue.PropType<Partial<ButtonProps>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly appendTo: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
}>, {
|
||||
t: Translator;
|
||||
ns: {
|
||||
namespace: _$vue.ComputedRef<string>;
|
||||
b: (blockSuffix?: string) => string;
|
||||
e: (element?: string) => string;
|
||||
m: (modifier?: string) => string;
|
||||
be: (blockSuffix?: string, element?: string) => string;
|
||||
em: (element?: string, modifier?: string) => string;
|
||||
bm: (blockSuffix?: string, modifier?: string) => string;
|
||||
bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
|
||||
is: {
|
||||
(name: string, state: boolean | undefined): string;
|
||||
(name: string): string;
|
||||
};
|
||||
cssVar: (object: Record<string, string>) => Record<string, string>;
|
||||
cssVarName: (name: string) => string;
|
||||
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
||||
cssVarBlockName: (name: string) => string;
|
||||
};
|
||||
scrollbar: _$vue.Ref<null, null>;
|
||||
wrapStyle: _$vue.ComputedRef<CSSProperties>;
|
||||
dropdownTriggerKls: _$vue.ComputedRef<string[]>;
|
||||
dropdownSize: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
||||
triggerId: _$vue.ComputedRef<string>;
|
||||
currentTabId: _$vue.Ref<string | null, string | null>;
|
||||
handleCurrentTabIdChange: (id: string) => void;
|
||||
handlerMainButtonClick: (event: MouseEvent) => void;
|
||||
handleClose: () => void;
|
||||
handleOpen: () => void;
|
||||
handleBeforeShowTooltip: () => void;
|
||||
handleShowTooltip: (event?: Event) => void;
|
||||
handleBeforeHideTooltip: () => void;
|
||||
popperRef: _$vue.Ref<TooltipInstance | undefined, TooltipInstance | undefined>;
|
||||
contentRef: _$vue.Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
||||
triggeringElementRef: _$vue.Ref<any, any>;
|
||||
referenceElementRef: _$vue.Ref<any, any>;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("click" | "command" | "visible-change")[], "click" | "command" | "visible-change", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
readonly trigger: {
|
||||
readonly type: _$vue.PropType<Arrayable<"click" | "hover" | "contextmenu">>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
readonly __epPropKey: true;
|
||||
readonly default: "hover";
|
||||
};
|
||||
readonly triggerKeys: EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => string[], boolean>;
|
||||
readonly virtualTriggering: BooleanConstructor;
|
||||
readonly virtualRef: {
|
||||
readonly type: _$vue.PropType<Measurable>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly effect: {
|
||||
readonly default: "light";
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
readonly __epPropKey: true;
|
||||
};
|
||||
readonly type: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (((new (...args: any[]) => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger")) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly placement: EpPropFinalized<(new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], unknown, unknown, "bottom", boolean>;
|
||||
readonly popperOptions: EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | (((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>)) | null)[], unknown, unknown, () => {}, boolean>;
|
||||
readonly id: StringConstructor;
|
||||
readonly size: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
||||
readonly splitButton: BooleanConstructor;
|
||||
readonly hideOnClick: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly loop: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showArrow: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly showTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
||||
readonly hideTimeout: EpPropFinalized<NumberConstructor, unknown, unknown, 150, boolean>;
|
||||
readonly tabindex: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, 0, boolean>;
|
||||
readonly maxHeight: EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown, "", boolean>;
|
||||
readonly popperClass: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (((new (...args: any[]) => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[]) | (() => string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | (string | {
|
||||
[x: string]: boolean;
|
||||
} | /*elided*/any)[])[])[])[])[])[])[])[])[])[])[])) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly popperStyle: EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly role: EpPropFinalized<StringConstructor, "dialog" | "tree" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation", unknown, "menu", boolean>;
|
||||
readonly buttonProps: {
|
||||
readonly type: _$vue.PropType<Partial<ButtonProps>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly teleported: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly appendTo: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | (((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly persistent: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
}>> & Readonly<{
|
||||
onClick?: ((...args: any[]) => any) | undefined;
|
||||
onCommand?: ((...args: any[]) => any) | undefined;
|
||||
"onVisible-change"?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
readonly disabled: boolean;
|
||||
readonly size: string;
|
||||
readonly teleported: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly effect: EpPropMergeType<(new (...args: any[]) => string) | (() => PopperEffect) | (((new (...args: any[]) => string) | (() => PopperEffect)) | null)[], unknown, unknown>;
|
||||
readonly tabindex: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
||||
readonly popperStyle: _$vue.StyleValue;
|
||||
readonly virtualTriggering: boolean;
|
||||
readonly loop: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly placement: EpPropMergeType<(new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | (((new (...args: any[]) => "top" | "auto" | "bottom" | "left" | "right" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement)) | null)[], unknown, unknown>;
|
||||
readonly popperOptions: Partial<Options>;
|
||||
readonly showArrow: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly role: EpPropMergeType<StringConstructor, "dialog" | "tree" | "listbox" | "grid" | "menu" | "tooltip" | "group" | "navigation", unknown>;
|
||||
readonly persistent: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly trigger: Arrayable<"click" | "hover" | "contextmenu">;
|
||||
readonly triggerKeys: string[];
|
||||
readonly maxHeight: EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>;
|
||||
readonly hideOnClick: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly showTimeout: number;
|
||||
readonly hideTimeout: number;
|
||||
readonly splitButton: boolean;
|
||||
}, {}, {
|
||||
ElButton: {
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<ButtonProps> & Readonly<{
|
||||
onClick?: ((evt: MouseEvent) => any) | undefined;
|
||||
}>, {
|
||||
ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
||||
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
||||
type: _$vue.ComputedRef<"" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
||||
disabled: _$vue.ComputedRef<boolean>;
|
||||
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
click: (evt: MouseEvent) => void;
|
||||
}, _$vue.PublicProps, {
|
||||
tag: string | _$vue.Component;
|
||||
type: ButtonType;
|
||||
disabled: boolean;
|
||||
text: boolean;
|
||||
round: boolean;
|
||||
dashed: boolean;
|
||||
plain: boolean;
|
||||
nativeType: ButtonNativeType;
|
||||
loadingIcon: IconPropType;
|
||||
autoInsertSpace: boolean;
|
||||
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<ButtonProps> & Readonly<{
|
||||
onClick?: ((evt: MouseEvent) => any) | undefined;
|
||||
}>, {
|
||||
ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
||||
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
||||
type: _$vue.ComputedRef<"" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
||||
disabled: _$vue.ComputedRef<boolean>;
|
||||
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
||||
}, {}, {}, {}, {
|
||||
tag: string | _$vue.Component;
|
||||
type: ButtonType;
|
||||
disabled: boolean;
|
||||
text: boolean;
|
||||
round: boolean;
|
||||
dashed: boolean;
|
||||
plain: boolean;
|
||||
nativeType: ButtonNativeType;
|
||||
loadingIcon: IconPropType;
|
||||
autoInsertSpace: boolean;
|
||||
}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<ButtonProps> & Readonly<{
|
||||
onClick?: ((evt: MouseEvent) => any) | undefined;
|
||||
}>, {
|
||||
ref: _$vue.Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
||||
size: _$vue.ComputedRef<"" | "default" | "small" | "large">;
|
||||
type: _$vue.ComputedRef<"" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger">;
|
||||
disabled: _$vue.ComputedRef<boolean>;
|
||||
shouldAddSpace: _$vue.ComputedRef<boolean>;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
click: (evt: MouseEvent) => void;
|
||||
}, string, {
|
||||
tag: string | _$vue.Component;
|
||||
type: ButtonType;
|
||||
disabled: boolean;
|
||||
text: boolean;
|
||||
round: boolean;
|
||||
dashed: boolean;
|
||||
plain: boolean;
|
||||
nativeType: ButtonNativeType;
|
||||
loadingIcon: IconPropType;
|
||||
autoInsertSpace: boolean;
|
||||
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
loading?: (props: {}) => any;
|
||||
} & {
|
||||
icon?: (props: {}) => any;
|
||||
} & {
|
||||
default?: (props: {}) => any;
|
||||
};
|
||||
}) & _$vue.ObjectPlugin & {
|
||||
setPropsDefaults: (defaults: {
|
||||
readonly size?: "" | "default" | "small" | "large" | (() => "" | "default" | "small" | "large") | undefined;
|
||||
readonly disabled?: boolean | (() => boolean) | undefined;
|
||||
readonly type?: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger" | (() => "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger") | undefined;
|
||||
readonly icon?: string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
||||
new (...args: any[]): any;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} | (() => (IconPropType | undefined) & {}) | undefined;
|
||||
readonly nativeType?: "button" | "reset" | "submit" | (() => "button" | "reset" | "submit") | undefined;
|
||||
readonly loading?: boolean | (() => boolean) | undefined;
|
||||
readonly loadingIcon?: string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
||||
new (...args: any[]): any;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} | (() => (IconPropType | undefined) & {}) | undefined;
|
||||
readonly plain?: boolean | (() => boolean) | undefined;
|
||||
readonly text?: boolean | (() => boolean) | undefined;
|
||||
readonly link?: boolean | (() => boolean) | undefined;
|
||||
readonly bg?: boolean | (() => boolean) | undefined;
|
||||
readonly autofocus?: boolean | (() => boolean) | undefined;
|
||||
readonly round?: boolean | (() => boolean) | undefined;
|
||||
readonly circle?: boolean | (() => boolean) | undefined;
|
||||
readonly dashed?: boolean | (() => boolean) | undefined;
|
||||
readonly color?: string | (() => string) | undefined;
|
||||
readonly dark?: boolean | (() => boolean) | undefined;
|
||||
readonly autoInsertSpace?: boolean | (() => boolean) | undefined;
|
||||
readonly tag?: string | _$vue.FunctionalComponent<any, {}, any, {}> | {
|
||||
new (...args: any[]): any;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} | (() => (string | _$vue.Component | undefined) & {}) | undefined;
|
||||
}) => void;
|
||||
} & {
|
||||
ButtonGroup: typeof _default$1;
|
||||
};
|
||||
ElButtonGroup: {
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {
|
||||
type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
|
||||
direction: "horizontal" | "vertical";
|
||||
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, {
|
||||
type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
|
||||
direction: "horizontal" | "vertical";
|
||||
}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {
|
||||
type: "" | "default" | "info" | "primary" | "success" | "warning" | "text" | "danger";
|
||||
direction: "horizontal" | "vertical";
|
||||
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
default?: (props: {}) => any;
|
||||
};
|
||||
});
|
||||
ElScrollbar: SFCWithInstall<{
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<ScrollbarProps> & Readonly<{
|
||||
onScroll?: ((args_0: {
|
||||
scrollTop: number;
|
||||
scrollLeft: number;
|
||||
}) => any) | undefined;
|
||||
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
||||
}>, {
|
||||
wrapRef: _$vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
||||
update: () => void;
|
||||
scrollTo: {
|
||||
(xCord: number, yCord?: number): void;
|
||||
(options: ScrollToOptions): void;
|
||||
};
|
||||
setScrollTop: (value: number) => void;
|
||||
setScrollLeft: (value: number) => void;
|
||||
handleScroll: () => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
scroll: (args_0: {
|
||||
scrollTop: number;
|
||||
scrollLeft: number;
|
||||
}) => void;
|
||||
"end-reached": (direction: ScrollbarDirection) => void;
|
||||
}, _$vue.PublicProps, {
|
||||
tag: keyof HTMLElementTagNameMap | (string & {});
|
||||
tabindex: number | string;
|
||||
height: number | string;
|
||||
maxHeight: number | string;
|
||||
distance: number;
|
||||
wrapStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
wrapClass: string | string[];
|
||||
viewClass: string | string[];
|
||||
viewStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
minSize: number;
|
||||
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<ScrollbarProps> & Readonly<{
|
||||
onScroll?: ((args_0: {
|
||||
scrollTop: number;
|
||||
scrollLeft: number;
|
||||
}) => any) | undefined;
|
||||
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
||||
}>, {
|
||||
wrapRef: _$vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
||||
update: () => void;
|
||||
scrollTo: {
|
||||
(xCord: number, yCord?: number): void;
|
||||
(options: ScrollToOptions): void;
|
||||
};
|
||||
setScrollTop: (value: number) => void;
|
||||
setScrollLeft: (value: number) => void;
|
||||
handleScroll: () => void;
|
||||
}, {}, {}, {}, {
|
||||
tag: keyof HTMLElementTagNameMap | (string & {});
|
||||
tabindex: number | string;
|
||||
height: number | string;
|
||||
maxHeight: number | string;
|
||||
distance: number;
|
||||
wrapStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
wrapClass: string | string[];
|
||||
viewClass: string | string[];
|
||||
viewStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
minSize: number;
|
||||
}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<ScrollbarProps> & Readonly<{
|
||||
onScroll?: ((args_0: {
|
||||
scrollTop: number;
|
||||
scrollLeft: number;
|
||||
}) => any) | undefined;
|
||||
"onEnd-reached"?: ((direction: ScrollbarDirection) => any) | undefined;
|
||||
}>, {
|
||||
wrapRef: _$vue.Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
||||
update: () => void;
|
||||
scrollTo: {
|
||||
(xCord: number, yCord?: number): void;
|
||||
(options: ScrollToOptions): void;
|
||||
};
|
||||
setScrollTop: (value: number) => void;
|
||||
setScrollLeft: (value: number) => void;
|
||||
handleScroll: () => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
scroll: (args_0: {
|
||||
scrollTop: number;
|
||||
scrollLeft: number;
|
||||
}) => void;
|
||||
"end-reached": (direction: ScrollbarDirection) => void;
|
||||
}, string, {
|
||||
tag: keyof HTMLElementTagNameMap | (string & {});
|
||||
tabindex: number | string;
|
||||
height: number | string;
|
||||
maxHeight: number | string;
|
||||
distance: number;
|
||||
wrapStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
wrapClass: string | string[];
|
||||
viewClass: string | string[];
|
||||
viewStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
minSize: number;
|
||||
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
default?: (props: {}) => any;
|
||||
};
|
||||
})>;
|
||||
ElTooltip: SFCWithInstall<{
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<UseTooltipProps> & Readonly<{
|
||||
onClose?: ((...args: any[]) => any) | undefined;
|
||||
onHide?: ((...args: any[]) => any) | undefined;
|
||||
onShow?: ((...args: any[]) => any) | undefined;
|
||||
onOpen?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
||||
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
||||
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
popperRef: _$vue.Ref<PopperInstance | undefined, PopperInstance | undefined>;
|
||||
contentRef: _$vue.Ref<TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
||||
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
||||
updatePopper: () => void;
|
||||
onOpen: (event?: Event, delay?: number) => void;
|
||||
onClose: (event?: Event, delay?: number) => void;
|
||||
hide: (event?: Event) => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
close: (...args: any[]) => void;
|
||||
hide: (...args: any[]) => void;
|
||||
show: (...args: any[]) => void;
|
||||
open: (...args: any[]) => void;
|
||||
"update:visible": (...args: any[]) => void;
|
||||
"before-show": (...args: any[]) => void;
|
||||
"before-hide": (...args: any[]) => void;
|
||||
}, _$vue.PublicProps, {
|
||||
offset: number;
|
||||
teleported: boolean;
|
||||
effect: PopperEffect;
|
||||
visible: boolean | null;
|
||||
content: string;
|
||||
style: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
enterable: boolean;
|
||||
pure: boolean;
|
||||
focusOnShow: boolean;
|
||||
trapping: boolean;
|
||||
popperStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
stopPopperMouseEvent: boolean;
|
||||
virtualTriggering: boolean;
|
||||
loop: boolean;
|
||||
boundariesPadding: number;
|
||||
gpuAcceleration: boolean;
|
||||
placement: Placement;
|
||||
popperOptions: Partial<Options>;
|
||||
strategy: "fixed" | "absolute";
|
||||
arrowOffset: number;
|
||||
showArrow: boolean;
|
||||
role: typeof roleTypes[number];
|
||||
showAfter: number;
|
||||
hideAfter: number;
|
||||
autoClose: number;
|
||||
trigger: Arrayable<TooltipTriggerType>;
|
||||
triggerKeys: string[];
|
||||
}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<UseTooltipProps> & Readonly<{
|
||||
onClose?: ((...args: any[]) => any) | undefined;
|
||||
onHide?: ((...args: any[]) => any) | undefined;
|
||||
onShow?: ((...args: any[]) => any) | undefined;
|
||||
onOpen?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
||||
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
||||
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
popperRef: _$vue.Ref<PopperInstance | undefined, PopperInstance | undefined>;
|
||||
contentRef: _$vue.Ref<TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
||||
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
||||
updatePopper: () => void;
|
||||
onOpen: (event?: Event, delay?: number) => void;
|
||||
onClose: (event?: Event, delay?: number) => void;
|
||||
hide: (event?: Event) => void;
|
||||
}, {}, {}, {}, {
|
||||
offset: number;
|
||||
teleported: boolean;
|
||||
effect: PopperEffect;
|
||||
visible: boolean | null;
|
||||
content: string;
|
||||
style: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
enterable: boolean;
|
||||
pure: boolean;
|
||||
focusOnShow: boolean;
|
||||
trapping: boolean;
|
||||
popperStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
stopPopperMouseEvent: boolean;
|
||||
virtualTriggering: boolean;
|
||||
loop: boolean;
|
||||
boundariesPadding: number;
|
||||
gpuAcceleration: boolean;
|
||||
placement: Placement;
|
||||
popperOptions: Partial<Options>;
|
||||
strategy: "fixed" | "absolute";
|
||||
arrowOffset: number;
|
||||
showArrow: boolean;
|
||||
role: typeof roleTypes[number];
|
||||
showAfter: number;
|
||||
hideAfter: number;
|
||||
autoClose: number;
|
||||
trigger: Arrayable<TooltipTriggerType>;
|
||||
triggerKeys: string[];
|
||||
}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<UseTooltipProps> & Readonly<{
|
||||
onClose?: ((...args: any[]) => any) | undefined;
|
||||
onHide?: ((...args: any[]) => any) | undefined;
|
||||
onShow?: ((...args: any[]) => any) | undefined;
|
||||
onOpen?: ((...args: any[]) => any) | undefined;
|
||||
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
||||
"onBefore-show"?: ((...args: any[]) => any) | undefined;
|
||||
"onBefore-hide"?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
popperRef: _$vue.Ref<PopperInstance | undefined, PopperInstance | undefined>;
|
||||
contentRef: _$vue.Ref<TooltipContentInstance | undefined, TooltipContentInstance | undefined>;
|
||||
isFocusInsideContent: (event?: FocusEvent) => boolean | undefined;
|
||||
updatePopper: () => void;
|
||||
onOpen: (event?: Event, delay?: number) => void;
|
||||
onClose: (event?: Event, delay?: number) => void;
|
||||
hide: (event?: Event) => void;
|
||||
}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
||||
close: (...args: any[]) => void;
|
||||
hide: (...args: any[]) => void;
|
||||
show: (...args: any[]) => void;
|
||||
open: (...args: any[]) => void;
|
||||
"update:visible": (...args: any[]) => void;
|
||||
"before-show": (...args: any[]) => void;
|
||||
"before-hide": (...args: any[]) => void;
|
||||
}, string, {
|
||||
offset: number;
|
||||
teleported: boolean;
|
||||
effect: PopperEffect;
|
||||
visible: boolean | null;
|
||||
content: string;
|
||||
style: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
enterable: boolean;
|
||||
pure: boolean;
|
||||
focusOnShow: boolean;
|
||||
trapping: boolean;
|
||||
popperStyle: string | false | CSSProperties | _$vue.StyleValue[] | null;
|
||||
stopPopperMouseEvent: boolean;
|
||||
virtualTriggering: boolean;
|
||||
loop: boolean;
|
||||
boundariesPadding: number;
|
||||
gpuAcceleration: boolean;
|
||||
placement: Placement;
|
||||
popperOptions: Partial<Options>;
|
||||
strategy: "fixed" | "absolute";
|
||||
arrowOffset: number;
|
||||
showArrow: boolean;
|
||||
role: typeof roleTypes[number];
|
||||
showAfter: number;
|
||||
hideAfter: number;
|
||||
autoClose: number;
|
||||
trigger: Arrayable<TooltipTriggerType>;
|
||||
triggerKeys: string[];
|
||||
}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
default?: (props: {}) => any;
|
||||
} & {
|
||||
content?: (props: {}) => any;
|
||||
};
|
||||
})>;
|
||||
ElRovingFocusGroup: _$vue.DefineComponent<{}, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {
|
||||
ElFocusGroupCollection: {
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, true, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & {
|
||||
name: string;
|
||||
setup(): void;
|
||||
};
|
||||
ElRovingFocusGroupImpl: _$vue.DefineComponent<_$vue.ExtractPropTypes<{
|
||||
style: EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
currentTabId: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | (((new (...args: any[]) => string) | (() => string | null)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
defaultCurrentTabId: StringConstructor;
|
||||
loop: BooleanConstructor;
|
||||
dir: EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
||||
orientation: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical" | undefined) | (((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical" | undefined)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
onBlur: FunctionConstructor;
|
||||
onFocus: FunctionConstructor;
|
||||
onMousedown: FunctionConstructor;
|
||||
}>, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, ("currentTabIdChange" | "entryFocus")[], "currentTabIdChange" | "entryFocus", _$vue.PublicProps, Readonly<_$vue.ExtractPropTypes<{
|
||||
style: EpPropFinalized<(new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue) | (((new (...args: any[]) => string | false | CSSProperties | _$vue.StyleValue[]) | (() => _$vue.StyleValue)) | null)[], unknown, unknown, undefined, boolean>;
|
||||
currentTabId: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | (((new (...args: any[]) => string) | (() => string | null)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
defaultCurrentTabId: StringConstructor;
|
||||
loop: BooleanConstructor;
|
||||
dir: EpPropFinalized<StringConstructor, string, unknown, string, boolean>;
|
||||
orientation: {
|
||||
readonly type: _$vue.PropType<EpPropMergeType<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical" | undefined) | (((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical" | undefined)) | null)[], unknown, unknown>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
onBlur: FunctionConstructor;
|
||||
onFocus: FunctionConstructor;
|
||||
onMousedown: FunctionConstructor;
|
||||
}>> & Readonly<{
|
||||
onCurrentTabIdChange?: ((...args: any[]) => any) | undefined;
|
||||
onEntryFocus?: ((...args: any[]) => any) | undefined;
|
||||
}>, {
|
||||
style: _$vue.StyleValue;
|
||||
loop: boolean;
|
||||
dir: string;
|
||||
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
ElOnlyChild: _$vue.DefineComponent<{}, () => _$vue.VNode<_$vue.RendererNode, _$vue.RendererElement, {
|
||||
[key: string]: any;
|
||||
}> | null, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
ElIcon: SFCWithInstall<{
|
||||
new (...args: any[]): _$vue.CreateComponentPublicInstanceWithMixins<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, _$vue.PublicProps, {}, false, {}, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, {}, any, _$vue.ComponentProvideOptions, {
|
||||
P: {};
|
||||
B: {};
|
||||
D: {};
|
||||
C: {};
|
||||
M: {};
|
||||
Defaults: {};
|
||||
}, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
||||
__isFragment?: never;
|
||||
__isTeleport?: never;
|
||||
__isSuspense?: never;
|
||||
} & _$vue.ComponentOptionsBase<Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, {}, {}, string, {}, _$vue.GlobalComponents, _$vue.GlobalDirectives, string, _$vue.ComponentProvideOptions> & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps & (new () => {
|
||||
$slots: {
|
||||
default?: (props: {}) => any;
|
||||
};
|
||||
})>;
|
||||
ArrowDown: _$vue.DefineComponent<{}, void, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {}, string, _$vue.PublicProps, Readonly<{}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
}, {}, string, _$vue.ComponentProvideOptions, true, {}, any>;
|
||||
//#endregion
|
||||
export { _default as default };
|
||||
132
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js
generated
vendored
Normal file
132
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js
generated
vendored
Normal file
@@ -0,0 +1,132 @@
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_style = require("../../../utils/dom/style.js");
|
||||
const require_index = require("../../../hooks/use-locale/index.js");
|
||||
const require_index$1 = require("../../../hooks/use-namespace/index.js");
|
||||
const require_index$2 = require("../../../hooks/use-id/index.js");
|
||||
const require_index$3 = require("../../icon/index.js");
|
||||
const require_only_child = require("../../slot/src/only-child.js");
|
||||
const require_use_form_common_props = require("../../form/src/hooks/use-form-common-props.js");
|
||||
const require_index$4 = require("../../tooltip/index.js");
|
||||
const require_index$5 = require("../../scrollbar/index.js");
|
||||
const require_index$6 = require("../../button/index.js");
|
||||
const require_index$7 = require("../../roving-focus-group/index.js");
|
||||
const require_dropdown = require("./dropdown.js");
|
||||
const require_tokens = require("./tokens.js");
|
||||
let _element_plus_icons_vue = require("@element-plus/icons-vue");
|
||||
let vue = require("vue");
|
||||
let lodash_unified = require("lodash-unified");
|
||||
//#region ../../packages/components/dropdown/src/dropdown.vue?vue&type=script&lang.ts
|
||||
const { ButtonGroup: ElButtonGroup } = require_index$6.ElButton;
|
||||
var dropdown_vue_vue_type_script_lang_default = (0, vue.defineComponent)({
|
||||
name: "ElDropdown",
|
||||
components: {
|
||||
ElButton: require_index$6.ElButton,
|
||||
ElButtonGroup,
|
||||
ElScrollbar: require_index$5.ElScrollbar,
|
||||
ElTooltip: require_index$4.ElTooltip,
|
||||
ElRovingFocusGroup: require_index$7.default,
|
||||
ElOnlyChild: require_only_child.OnlyChild,
|
||||
ElIcon: require_index$3.ElIcon,
|
||||
ArrowDown: _element_plus_icons_vue.ArrowDown
|
||||
},
|
||||
props: require_dropdown.dropdownProps,
|
||||
emits: [
|
||||
"visible-change",
|
||||
"click",
|
||||
"command"
|
||||
],
|
||||
setup(props, { emit }) {
|
||||
const _instance = (0, vue.getCurrentInstance)();
|
||||
const ns = require_index$1.useNamespace("dropdown");
|
||||
const { t } = require_index.useLocale();
|
||||
const triggeringElementRef = (0, vue.ref)();
|
||||
const referenceElementRef = (0, vue.ref)();
|
||||
const popperRef = (0, vue.ref)();
|
||||
const contentRef = (0, vue.ref)();
|
||||
const scrollbar = (0, vue.ref)(null);
|
||||
const currentTabId = (0, vue.ref)(null);
|
||||
const isUsingKeyboard = (0, vue.ref)(false);
|
||||
const wrapStyle = (0, vue.computed)(() => ({ maxHeight: require_style.addUnit(props.maxHeight) }));
|
||||
const dropdownTriggerKls = (0, vue.computed)(() => [ns.m(dropdownSize.value)]);
|
||||
const trigger = (0, vue.computed)(() => (0, lodash_unified.castArray)(props.trigger));
|
||||
const defaultTriggerId = require_index$2.useId().value;
|
||||
const triggerId = (0, vue.computed)(() => props.id || defaultTriggerId);
|
||||
function handleClick() {
|
||||
popperRef.value?.onClose(void 0, 0);
|
||||
}
|
||||
function handleClose() {
|
||||
popperRef.value?.onClose();
|
||||
}
|
||||
function handleOpen() {
|
||||
popperRef.value?.onOpen();
|
||||
}
|
||||
const dropdownSize = require_use_form_common_props.useFormSize();
|
||||
function commandHandler(...args) {
|
||||
emit("command", ...args);
|
||||
}
|
||||
function onItemEnter() {}
|
||||
function onItemLeave() {
|
||||
const contentEl = (0, vue.unref)(contentRef);
|
||||
trigger.value.includes("hover") && contentEl?.focus({ preventScroll: true });
|
||||
currentTabId.value = null;
|
||||
}
|
||||
function handleCurrentTabIdChange(id) {
|
||||
currentTabId.value = id;
|
||||
}
|
||||
function handleBeforeShowTooltip() {
|
||||
emit("visible-change", true);
|
||||
}
|
||||
function handleShowTooltip(event) {
|
||||
isUsingKeyboard.value = event?.type === "keydown";
|
||||
contentRef.value?.focus();
|
||||
}
|
||||
function handleBeforeHideTooltip() {
|
||||
emit("visible-change", false);
|
||||
}
|
||||
(0, vue.provide)(require_tokens.DROPDOWN_INJECTION_KEY, {
|
||||
contentRef,
|
||||
role: (0, vue.computed)(() => props.role),
|
||||
triggerId,
|
||||
isUsingKeyboard,
|
||||
onItemEnter,
|
||||
onItemLeave,
|
||||
handleClose
|
||||
});
|
||||
(0, vue.provide)(require_tokens.DROPDOWN_INSTANCE_INJECTION_KEY, {
|
||||
instance: _instance,
|
||||
dropdownSize,
|
||||
handleClick,
|
||||
commandHandler,
|
||||
trigger: (0, vue.toRef)(props, "trigger"),
|
||||
hideOnClick: (0, vue.toRef)(props, "hideOnClick")
|
||||
});
|
||||
const handlerMainButtonClick = (event) => {
|
||||
emit("click", event);
|
||||
};
|
||||
return {
|
||||
t,
|
||||
ns,
|
||||
scrollbar,
|
||||
wrapStyle,
|
||||
dropdownTriggerKls,
|
||||
dropdownSize,
|
||||
triggerId,
|
||||
currentTabId,
|
||||
handleCurrentTabIdChange,
|
||||
handlerMainButtonClick,
|
||||
handleClose,
|
||||
handleOpen,
|
||||
handleBeforeShowTooltip,
|
||||
handleShowTooltip,
|
||||
handleBeforeHideTooltip,
|
||||
popperRef,
|
||||
contentRef,
|
||||
triggeringElementRef,
|
||||
referenceElementRef
|
||||
};
|
||||
}
|
||||
});
|
||||
//#endregion
|
||||
exports.default = dropdown_vue_vue_type_script_lang_default;
|
||||
|
||||
//# sourceMappingURL=dropdown.vue_vue_type_script_lang.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown.vue_vue_type_script_lang.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
154
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown2.js
generated
vendored
Normal file
154
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown2.js
generated
vendored
Normal file
@@ -0,0 +1,154 @@
|
||||
Object.defineProperties(exports, {
|
||||
__esModule: { value: true },
|
||||
[Symbol.toStringTag]: { value: "Module" }
|
||||
});
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require__plugin_vue_export_helper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
||||
const require_dropdown_vue_vue_type_script_lang = require("./dropdown.vue_vue_type_script_lang.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/dropdown.vue
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
const _component_el_roving_focus_group = (0, vue.resolveComponent)("el-roving-focus-group");
|
||||
const _component_el_scrollbar = (0, vue.resolveComponent)("el-scrollbar");
|
||||
const _component_el_only_child = (0, vue.resolveComponent)("el-only-child");
|
||||
const _component_el_tooltip = (0, vue.resolveComponent)("el-tooltip");
|
||||
const _component_el_button = (0, vue.resolveComponent)("el-button");
|
||||
const _component_arrow_down = (0, vue.resolveComponent)("arrow-down");
|
||||
const _component_el_icon = (0, vue.resolveComponent)("el-icon");
|
||||
const _component_el_button_group = (0, vue.resolveComponent)("el-button-group");
|
||||
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", { class: (0, vue.normalizeClass)([_ctx.ns.b(), _ctx.ns.is("disabled", _ctx.disabled)]) }, [(0, vue.createVNode)(_component_el_tooltip, {
|
||||
ref: "popperRef",
|
||||
role: _ctx.role,
|
||||
effect: _ctx.effect,
|
||||
"fallback-placements": ["bottom", "top"],
|
||||
"popper-options": _ctx.popperOptions,
|
||||
"gpu-acceleration": false,
|
||||
placement: _ctx.placement,
|
||||
"popper-class": [_ctx.ns.e("popper"), _ctx.popperClass],
|
||||
"popper-style": _ctx.popperStyle,
|
||||
trigger: _ctx.trigger,
|
||||
"trigger-keys": _ctx.triggerKeys,
|
||||
"trigger-target-el": _ctx.contentRef,
|
||||
"show-arrow": _ctx.showArrow,
|
||||
"show-after": _ctx.trigger === "hover" ? _ctx.showTimeout : 0,
|
||||
"hide-after": _ctx.trigger === "hover" ? _ctx.hideTimeout : 0,
|
||||
"virtual-ref": _ctx.virtualRef ?? _ctx.triggeringElementRef,
|
||||
"virtual-triggering": _ctx.virtualTriggering || _ctx.splitButton,
|
||||
disabled: _ctx.disabled,
|
||||
transition: `${_ctx.ns.namespace.value}-zoom-in-top`,
|
||||
teleported: _ctx.teleported,
|
||||
"append-to": _ctx.appendTo,
|
||||
pure: "",
|
||||
"focus-on-target": "",
|
||||
persistent: _ctx.persistent,
|
||||
onBeforeShow: _ctx.handleBeforeShowTooltip,
|
||||
onShow: _ctx.handleShowTooltip,
|
||||
onBeforeHide: _ctx.handleBeforeHideTooltip
|
||||
}, (0, vue.createSlots)({
|
||||
content: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_el_scrollbar, {
|
||||
ref: "scrollbar",
|
||||
"wrap-style": _ctx.wrapStyle,
|
||||
tag: "div",
|
||||
"view-class": _ctx.ns.e("list")
|
||||
}, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_el_roving_focus_group, {
|
||||
loop: _ctx.loop,
|
||||
"current-tab-id": _ctx.currentTabId,
|
||||
orientation: "horizontal",
|
||||
onCurrentTabIdChange: _ctx.handleCurrentTabIdChange
|
||||
}, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "dropdown")]),
|
||||
_: 3
|
||||
}, 8, [
|
||||
"loop",
|
||||
"current-tab-id",
|
||||
"onCurrentTabIdChange"
|
||||
])]),
|
||||
_: 3
|
||||
}, 8, ["wrap-style", "view-class"])]),
|
||||
_: 2
|
||||
}, [!_ctx.splitButton ? {
|
||||
name: "default",
|
||||
fn: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_el_only_child, {
|
||||
id: _ctx.triggerId,
|
||||
ref: "triggeringElementRef",
|
||||
role: "button",
|
||||
tabindex: _ctx.tabindex
|
||||
}, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 8, ["id", "tabindex"])]),
|
||||
key: "0"
|
||||
} : void 0]), 1032, [
|
||||
"role",
|
||||
"effect",
|
||||
"popper-options",
|
||||
"placement",
|
||||
"popper-class",
|
||||
"popper-style",
|
||||
"trigger",
|
||||
"trigger-keys",
|
||||
"trigger-target-el",
|
||||
"show-arrow",
|
||||
"show-after",
|
||||
"hide-after",
|
||||
"virtual-ref",
|
||||
"virtual-triggering",
|
||||
"disabled",
|
||||
"transition",
|
||||
"teleported",
|
||||
"append-to",
|
||||
"persistent",
|
||||
"onBeforeShow",
|
||||
"onShow",
|
||||
"onBeforeHide"
|
||||
]), _ctx.splitButton ? ((0, vue.openBlock)(), (0, vue.createBlock)(_component_el_button_group, { key: 0 }, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_el_button, (0, vue.mergeProps)({ ref: "referenceElementRef" }, _ctx.buttonProps, {
|
||||
size: _ctx.dropdownSize,
|
||||
type: _ctx.type,
|
||||
disabled: _ctx.disabled,
|
||||
tabindex: _ctx.tabindex,
|
||||
onClick: _ctx.handlerMainButtonClick
|
||||
}), {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
||||
_: 3
|
||||
}, 16, [
|
||||
"size",
|
||||
"type",
|
||||
"disabled",
|
||||
"tabindex",
|
||||
"onClick"
|
||||
]), (0, vue.createVNode)(_component_el_button, (0, vue.mergeProps)({
|
||||
id: _ctx.triggerId,
|
||||
ref: "triggeringElementRef"
|
||||
}, _ctx.buttonProps, {
|
||||
role: "button",
|
||||
size: _ctx.dropdownSize,
|
||||
type: _ctx.type,
|
||||
class: _ctx.ns.e("caret-button"),
|
||||
disabled: _ctx.disabled,
|
||||
tabindex: _ctx.tabindex,
|
||||
"aria-label": _ctx.t("el.dropdown.toggleDropdown")
|
||||
}), {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_el_icon, { class: (0, vue.normalizeClass)(_ctx.ns.e("icon")) }, {
|
||||
default: (0, vue.withCtx)(() => [(0, vue.createVNode)(_component_arrow_down)]),
|
||||
_: 1
|
||||
}, 8, ["class"])]),
|
||||
_: 1
|
||||
}, 16, [
|
||||
"id",
|
||||
"size",
|
||||
"type",
|
||||
"class",
|
||||
"disabled",
|
||||
"tabindex",
|
||||
"aria-label"
|
||||
])]),
|
||||
_: 3
|
||||
})) : (0, vue.createCommentVNode)("v-if", true)], 2);
|
||||
}
|
||||
var dropdown_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_dropdown_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
|
||||
//#endregion
|
||||
exports.default = dropdown_default;
|
||||
|
||||
//# sourceMappingURL=dropdown2.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown2.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/dropdown2.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
6
frontend/node_modules/element-plus/lib/components/dropdown/src/instance.d.ts
generated
vendored
Normal file
6
frontend/node_modules/element-plus/lib/components/dropdown/src/instance.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import _default from "./dropdown.vue.js";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/instance.d.ts
|
||||
type DropdownInstance = InstanceType<typeof _default> & unknown;
|
||||
//#endregion
|
||||
export { DropdownInstance };
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/instance.js
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/instance.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
17
frontend/node_modules/element-plus/lib/components/dropdown/src/tokens.d.ts
generated
vendored
Normal file
17
frontend/node_modules/element-plus/lib/components/dropdown/src/tokens.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import { PopperProps } from "../../popper/src/popper.js";
|
||||
import { ComputedRef, InjectionKey, Ref } from "vue";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/tokens.d.ts
|
||||
type ElDropdownInjectionContext = {
|
||||
contentRef: Ref<HTMLElement | undefined>;
|
||||
role: ComputedRef<PopperProps['role']>;
|
||||
triggerId: ComputedRef<string>;
|
||||
isUsingKeyboard: Ref<boolean>;
|
||||
onItemLeave: (e: PointerEvent) => void;
|
||||
onItemEnter: (e: PointerEvent) => void;
|
||||
handleClose: () => void;
|
||||
};
|
||||
declare const DROPDOWN_INJECTION_KEY: InjectionKey<ElDropdownInjectionContext>;
|
||||
declare const DROPDOWN_INSTANCE_INJECTION_KEY = "elDropdown";
|
||||
//#endregion
|
||||
export { DROPDOWN_INJECTION_KEY, DROPDOWN_INSTANCE_INJECTION_KEY, ElDropdownInjectionContext };
|
||||
9
frontend/node_modules/element-plus/lib/components/dropdown/src/tokens.js
generated
vendored
Normal file
9
frontend/node_modules/element-plus/lib/components/dropdown/src/tokens.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
//#region ../../packages/components/dropdown/src/tokens.ts
|
||||
const DROPDOWN_INJECTION_KEY = Symbol("elDropdown");
|
||||
const DROPDOWN_INSTANCE_INJECTION_KEY = "elDropdown";
|
||||
//#endregion
|
||||
exports.DROPDOWN_INJECTION_KEY = DROPDOWN_INJECTION_KEY;
|
||||
exports.DROPDOWN_INSTANCE_INJECTION_KEY = DROPDOWN_INSTANCE_INJECTION_KEY;
|
||||
|
||||
//# sourceMappingURL=tokens.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/tokens.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/tokens.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"tokens.js","names":[],"sources":["../../../../../../packages/components/dropdown/src/tokens.ts"],"sourcesContent":["import type { PopperProps } from '@element-plus/components/popper'\nimport type { ComputedRef, InjectionKey, Ref } from 'vue'\n\nexport type ElDropdownInjectionContext = {\n contentRef: Ref<HTMLElement | undefined>\n role: ComputedRef<PopperProps['role']>\n triggerId: ComputedRef<string>\n isUsingKeyboard: Ref<boolean>\n onItemLeave: (e: PointerEvent) => void\n onItemEnter: (e: PointerEvent) => void\n handleClose: () => void\n}\n\nexport const DROPDOWN_INJECTION_KEY: InjectionKey<ElDropdownInjectionContext> =\n Symbol('elDropdown')\n\nexport const DROPDOWN_INSTANCE_INJECTION_KEY = 'elDropdown'\n"],"mappings":";;AAaA,MAAa,yBACX,OAAO,aAAa;AAEtB,MAAa,kCAAkC"}
|
||||
10
frontend/node_modules/element-plus/lib/components/dropdown/src/useDropdown.d.ts
generated
vendored
Normal file
10
frontend/node_modules/element-plus/lib/components/dropdown/src/useDropdown.d.ts
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { IElDropdownInstance } from "./dropdown.js";
|
||||
import * as _$vue from "vue";
|
||||
|
||||
//#region ../../packages/components/dropdown/src/useDropdown.d.ts
|
||||
declare const useDropdown: () => {
|
||||
elDropdown: IElDropdownInstance;
|
||||
_elDropdownSize: _$vue.ComputedRef<_$vue.ComputedRef<string> | undefined>;
|
||||
};
|
||||
//#endregion
|
||||
export { useDropdown };
|
||||
16
frontend/node_modules/element-plus/lib/components/dropdown/src/useDropdown.js
generated
vendored
Normal file
16
frontend/node_modules/element-plus/lib/components/dropdown/src/useDropdown.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
||||
require("../../../_virtual/_rolldown/runtime.js");
|
||||
const require_tokens = require("./tokens.js");
|
||||
let vue = require("vue");
|
||||
//#region ../../packages/components/dropdown/src/useDropdown.ts
|
||||
const useDropdown = () => {
|
||||
const elDropdown = (0, vue.inject)(require_tokens.DROPDOWN_INSTANCE_INJECTION_KEY, {});
|
||||
return {
|
||||
elDropdown,
|
||||
_elDropdownSize: (0, vue.computed)(() => elDropdown?.dropdownSize)
|
||||
};
|
||||
};
|
||||
//#endregion
|
||||
exports.useDropdown = useDropdown;
|
||||
|
||||
//# sourceMappingURL=useDropdown.js.map
|
||||
1
frontend/node_modules/element-plus/lib/components/dropdown/src/useDropdown.js.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/lib/components/dropdown/src/useDropdown.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"useDropdown.js","names":["DROPDOWN_INSTANCE_INJECTION_KEY"],"sources":["../../../../../../packages/components/dropdown/src/useDropdown.ts"],"sourcesContent":["import { computed, inject } from 'vue'\nimport { DROPDOWN_INSTANCE_INJECTION_KEY } from './tokens'\n\nimport type { IElDropdownInstance } from './dropdown'\n\nexport const useDropdown = () => {\n const elDropdown = inject<IElDropdownInstance>(\n DROPDOWN_INSTANCE_INJECTION_KEY,\n {}\n )\n const _elDropdownSize = computed(() => elDropdown?.dropdownSize)\n\n return {\n elDropdown,\n _elDropdownSize,\n }\n}\n"],"mappings":";;;;;AAKA,MAAa,oBAAoB;CAC/B,MAAM,cAAA,GAAA,IAAA,QACJA,eAAAA,iCACA,EAAE,CACH;CAGD,OAAO;EACL;EACA,kBAAA,GAAA,IAAA,gBAJqC,YAAY,aAIlC;EAChB"}
|
||||
Reference in New Issue
Block a user