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 line
1.9 KiB

{"ast":null,"code":"const attachEvents = (el, binding) => {\n const popperComponent = binding.arg || binding.value;\n const popover = popperComponent == null ? void 0 : popperComponent.popperRef;\n if (popover) {\n popover.triggerRef = el;\n }\n};\nvar PopoverDirective = {\n mounted(el, binding) {\n attachEvents(el, binding);\n },\n updated(el, binding) {\n attachEvents(el, binding);\n }\n};\nconst VPopover = \"popover\";\nexport { VPopover, PopoverDirective as default };","map":{"version":3,"names":["attachEvents","el","binding","popperComponent","arg","value","popover","popperRef","triggerRef","PopoverDirective","mounted","updated","VPopover"],"sources":["../../../../../../packages/components/popover/src/directive.ts"],"sourcesContent":["import type { DirectiveBinding, ObjectDirective } from 'vue'\nimport type { PopoverInstance } from './popover'\n\nconst attachEvents = (el: HTMLElement, binding: DirectiveBinding) => {\n const popperComponent: PopoverInstance = binding.arg || binding.value\n const popover = popperComponent?.popperRef\n if (popover) {\n popover.triggerRef = el\n }\n}\n\nexport default {\n mounted(el, binding) {\n attachEvents(el, binding)\n },\n updated(el, binding) {\n attachEvents(el, binding)\n },\n} as ObjectDirective\n\nexport const VPopover = 'popover'\n"],"mappings":"AAAA,MAAMA,YAAY,GAAGA,CAACC,EAAE,EAAEC,OAAO,KAAK;EACpC,MAAMC,eAAe,GAAGD,OAAO,CAACE,GAAG,IAAIF,OAAO,CAACG,KAAK;EACpD,MAAMC,OAAO,GAAGH,eAAe,IAAI,IAAI,GAAG,KAAK,CAAC,GAAGA,eAAe,CAACI,SAAS;EAC5E,IAAID,OAAO,EAAE;IACXA,OAAO,CAACE,UAAU,GAAGP,EAAE;EAC3B;AACA,CAAC;AACD,IAAAQ,gBAAA,GAAe;EACbC,OAAOA,CAACT,EAAE,EAAEC,OAAO,EAAE;IACnBF,YAAY,CAACC,EAAE,EAAEC,OAAO,CAAC;EAC7B,CAAG;EACDS,OAAOA,CAACV,EAAE,EAAEC,OAAO,EAAE;IACnBF,YAAY,CAACC,EAAE,EAAEC,OAAO,CAAC;EAC7B;AACA,CAAC;AACW,MAACU,QAAQ,GAAG","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]}