You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
9.2 KiB
1 lines
9.2 KiB
{"ast":null,"code":"import { placements } from '@popperjs/core';\nimport { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';\nimport { useAriaProps } from '../../../hooks/use-aria/index.mjs';\nconst POSITIONING_STRATEGIES = [\"fixed\", \"absolute\"];\nconst popperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0\n },\n fallbackPlacements: {\n type: definePropType(Array),\n default: void 0\n },\n gpuAcceleration: {\n type: Boolean,\n default: true\n },\n offset: {\n type: Number,\n default: 12\n },\n placement: {\n type: String,\n values: placements,\n default: \"bottom\"\n },\n popperOptions: {\n type: definePropType(Object),\n default: () => ({})\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: \"absolute\"\n }\n});\nconst popperContentProps = buildProps({\n ...popperCoreConfigProps,\n id: String,\n style: {\n type: definePropType([String, Array, Object])\n },\n className: {\n type: definePropType([String, Array, Object])\n },\n effect: {\n type: definePropType(String),\n default: \"dark\"\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true\n },\n pure: Boolean,\n focusOnShow: {\n type: Boolean,\n default: false\n },\n trapping: {\n type: Boolean,\n default: false\n },\n popperClass: {\n type: definePropType([String, Array, Object])\n },\n popperStyle: {\n type: definePropType([String, Array, Object])\n },\n referenceEl: {\n type: definePropType(Object)\n },\n triggerTargetEl: {\n type: definePropType(Object)\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...useAriaProps([\"ariaLabel\"])\n});\nconst popperContentEmits = {\n mouseenter: evt => evt instanceof MouseEvent,\n mouseleave: evt => evt instanceof MouseEvent,\n focus: () => true,\n blur: () => true,\n close: () => true\n};\nconst usePopperCoreConfigProps = popperCoreConfigProps;\nconst usePopperContentProps = popperContentProps;\nconst usePopperContentEmits = popperContentEmits;\nexport { popperContentEmits, popperContentProps, popperCoreConfigProps, usePopperContentEmits, usePopperContentProps, usePopperCoreConfigProps };","map":{"version":3,"names":["POSITIONING_STRATEGIES","popperCoreConfigProps","buildProps","boundariesPadding","type","Number","default","fallbackPlacements","definePropType","Array","gpuAcceleration","Boolean","offset","placement","String","values","placements","popperOptions","Object","strategy","popperContentProps","id","style","className","effect","visible","enterable","pure","focusOnShow","trapping","popperClass","popperStyle","referenceEl","triggerTargetEl","stopPopperMouseEvent","virtualTriggering","zIndex","useAriaProps","popperContentEmits","mouseenter","evt","MouseEvent","mouseleave","focus","blur","close","usePopperCoreConfigProps","usePopperContentProps","usePopperContentEmits"],"sources":["../../../../../../packages/components/popper/src/content.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { buildProps, definePropType } from '@element-plus/utils'\nimport { useAriaProps } from '@element-plus/hooks'\n\nimport type { PopperEffect } from './popper'\nimport type { ExtractPropTypes, StyleValue } from 'vue'\nimport type { Options, Placement } from '@popperjs/core'\nimport type { Measurable } from './constants'\nimport type Content from './content.vue'\n\ntype ClassObjectType = Record<string, boolean>\ntype ClassType = string | ClassObjectType | ClassType[]\n\nconst POSITIONING_STRATEGIES = ['fixed', 'absolute'] as const\n\nexport interface CreatePopperInstanceParams {\n referenceEl: Measurable\n popperContentEl: HTMLElement\n arrowEl: HTMLElement | undefined\n}\n\nexport const popperCoreConfigProps = buildProps({\n boundariesPadding: {\n type: Number,\n default: 0,\n },\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: undefined,\n },\n gpuAcceleration: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the Tooltip\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of Tooltip\n */\n placement: {\n type: String,\n values: placements,\n default: 'bottom',\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}),\n },\n strategy: {\n type: String,\n values: POSITIONING_STRATEGIES,\n default: 'absolute',\n },\n} as const)\nexport type PopperCoreConfigProps = ExtractPropTypes<\n typeof popperCoreConfigProps\n>\n\nexport const popperContentProps = buildProps({\n ...popperCoreConfigProps,\n id: String,\n style: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n className: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'dark',\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: true,\n },\n pure: Boolean,\n focusOnShow: {\n type: Boolean,\n default: false,\n },\n trapping: {\n type: Boolean,\n default: false,\n },\n popperClass: {\n type: definePropType<ClassType>([String, Array, Object]),\n },\n popperStyle: {\n type: definePropType<StyleValue>([String, Array, Object]),\n },\n referenceEl: {\n type: definePropType<HTMLElement>(Object),\n },\n triggerTargetEl: {\n type: definePropType<HTMLElement>(Object),\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: true,\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...useAriaProps(['ariaLabel']),\n} as const)\nexport type PopperContentProps = ExtractPropTypes<typeof popperContentProps>\n\nexport const popperContentEmits = {\n mouseenter: (evt: MouseEvent) => evt instanceof MouseEvent,\n mouseleave: (evt: MouseEvent) => evt instanceof MouseEvent,\n focus: () => true,\n blur: () => true,\n close: () => true,\n}\nexport type PopperContentEmits = typeof popperContentEmits\n\nexport type PopperContentInstance = InstanceType<typeof Content>\n\n/** @deprecated use `popperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport const usePopperCoreConfigProps = popperCoreConfigProps\n\n/** @deprecated use `popperContentProps` instead, and it will be deprecated in the next major version */\nexport const usePopperContentProps = popperContentProps\n\n/** @deprecated use `popperContentEmits` instead, and it will be deprecated in the next major version */\nexport const usePopperContentEmits = popperContentEmits\n\n/** @deprecated use `PopperCoreConfigProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperCoreConfigProps = PopperCoreConfigProps\n\n/** @deprecated use `PopperContentProps` instead, and it will be deprecated in the next major version */\nexport type UsePopperContentProps = PopperContentProps\n\n/** @deprecated use `PopperContentInstance` instead, and it will be deprecated in the next major version */\nexport type ElPopperArrowContent = PopperContentInstance\n"],"mappings":";;;AAGA,MAAMA,sBAAsB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC;AACxC,MAACC,qBAAqB,GAAGC,UAAU,CAAC;EAC9CC,iBAAiB,EAAE;IACjBC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACb,CAAG;EACDC,kBAAkB,EAAE;IAClBH,IAAI,EAAEI,cAAc,CAACC,KAAK,CAAC;IAC3BH,OAAO,EAAE,KAAK;EAClB,CAAG;EACDI,eAAe,EAAE;IACfN,IAAI,EAAEO,OAAO;IACbL,OAAO,EAAE;EACb,CAAG;EACDM,MAAM,EAAE;IACNR,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACb,CAAG;EACDO,SAAS,EAAE;IACTT,IAAI,EAAEU,MAAM;IACZC,MAAM,EAAEC,UAAU;IAClBV,OAAO,EAAE;EACb,CAAG;EACDW,aAAa,EAAE;IACbb,IAAI,EAAEI,cAAc,CAACU,MAAM,CAAC;IAC5BZ,OAAO,EAAEA,CAAA,MAAO,EAAE;EACtB,CAAG;EACDa,QAAQ,EAAE;IACRf,IAAI,EAAEU,MAAM;IACZC,MAAM,EAAEf,sBAAsB;IAC9BM,OAAO,EAAE;EACb;AACA,CAAC;AACW,MAACc,kBAAkB,GAAGlB,UAAU,CAAC;EAC3C,GAAGD,qBAAqB;EACxBoB,EAAE,EAAEP,MAAM;EACVQ,KAAK,EAAE;IACLlB,IAAI,EAAEI,cAAc,CAAC,CAACM,MAAM,EAAEL,KAAK,EAAES,MAAM,CAAC;EAChD,CAAG;EACDK,SAAS,EAAE;IACTnB,IAAI,EAAEI,cAAc,CAAC,CAACM,MAAM,EAAEL,KAAK,EAAES,MAAM,CAAC;EAChD,CAAG;EACDM,MAAM,EAAE;IACNpB,IAAI,EAAEI,cAAc,CAACM,MAAM,CAAC;IAC5BR,OAAO,EAAE;E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