@element-plus/nightly 0.0.20241118 → 0.0.20241120
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +0 -5
- package/attributes.json +1 -1
- package/dist/index.css +1 -1
- package/dist/index.full.js +156 -128
- package/dist/index.full.min.js +13 -13
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +12 -12
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +156 -128
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +191 -0
- package/dist/locale/ms.min.js +2 -0
- package/dist/locale/ms.min.js.map +1 -0
- package/dist/locale/ms.min.mjs +2 -0
- package/dist/locale/ms.min.mjs.map +1 -0
- package/dist/locale/ms.mjs +183 -0
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/anchor/index.mjs +2 -2
- package/es/components/anchor/src/anchor.mjs +193 -38
- package/es/components/anchor/src/anchor.mjs.map +1 -1
- package/es/components/anchor/src/anchor2.mjs +38 -193
- package/es/components/anchor/src/anchor2.mjs.map +1 -1
- package/es/components/badge/index.mjs +2 -2
- package/es/components/badge/src/badge.mjs +69 -32
- package/es/components/badge/src/badge.mjs.map +1 -1
- package/es/components/badge/src/badge2.mjs +32 -69
- package/es/components/badge/src/badge2.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content.mjs +26 -89
- package/es/components/dialog/src/dialog-content.mjs.map +1 -1
- package/es/components/dialog/src/dialog-content2.mjs +89 -26
- package/es/components/dialog/src/dialog-content2.mjs.map +1 -1
- package/es/components/dialog/src/dialog.mjs +1 -1
- package/es/components/dialog/src/dialog2.mjs +1 -1
- package/es/components/image-viewer/src/image-viewer2.mjs +141 -118
- package/es/components/image-viewer/src/image-viewer2.mjs.map +1 -1
- package/es/components/index.mjs +8 -8
- package/es/components/mention/src/mention-dropdown.mjs +167 -15
- package/es/components/mention/src/mention-dropdown.mjs.map +1 -1
- package/es/components/mention/src/mention-dropdown2.mjs +15 -167
- package/es/components/mention/src/mention-dropdown2.mjs.map +1 -1
- package/es/components/mention/src/mention2.mjs +1 -1
- package/es/components/menu/index.mjs +2 -2
- package/es/components/menu/src/menu-item-group.mjs +35 -4
- package/es/components/menu/src/menu-item-group.mjs.map +1 -1
- package/es/components/menu/src/menu-item-group2.mjs +4 -35
- package/es/components/menu/src/menu-item-group2.mjs.map +1 -1
- package/es/components/notification/src/notification.d.ts +4 -4
- package/es/components/notification/src/notification.mjs +5 -1
- package/es/components/notification/src/notification.mjs.map +1 -1
- package/es/components/notification/src/notification.vue.d.ts +12 -12
- package/es/components/notification/src/notify.mjs +2 -4
- package/es/components/notification/src/notify.mjs.map +1 -1
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +115 -47
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +47 -115
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/content.mjs +137 -93
- package/es/components/popper/src/content.mjs.map +1 -1
- package/es/components/popper/src/content2.mjs +93 -137
- package/es/components/popper/src/content2.mjs.map +1 -1
- package/es/components/row/index.mjs +2 -2
- package/es/components/row/src/row.mjs +29 -45
- package/es/components/row/src/row.mjs.map +1 -1
- package/es/components/row/src/row2.mjs +45 -29
- package/es/components/row/src/row2.mjs.map +1 -1
- package/es/components/statistic/index.mjs +2 -2
- package/es/components/statistic/src/statistic.mjs +70 -25
- package/es/components/statistic/src/statistic.mjs.map +1 -1
- package/es/components/statistic/src/statistic2.mjs +25 -70
- package/es/components/statistic/src/statistic2.mjs.map +1 -1
- package/es/components/table/src/table.mjs +5 -3
- package/es/components/table/src/table.mjs.map +1 -1
- package/es/components/table/src/table.vue.d.ts +2 -1
- package/es/components/tag/src/tag2.mjs +4 -1
- package/es/components/tag/src/tag2.mjs.map +1 -1
- package/es/components/time-picker/src/common/picker-range-trigger.mjs.map +1 -1
- package/es/components/tooltip/src/content.mjs +1 -1
- package/es/components/tooltip/src/content2.mjs +1 -1
- package/es/index.mjs +8 -8
- package/es/locale/lang/ms.d.ts +180 -0
- package/es/locale/lang/ms.mjs +182 -0
- package/es/locale/lang/ms.mjs.map +1 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/global.d.ts +2 -0
- package/lib/components/anchor/index.js +2 -2
- package/lib/components/anchor/src/anchor.js +192 -38
- package/lib/components/anchor/src/anchor.js.map +1 -1
- package/lib/components/anchor/src/anchor2.js +38 -192
- package/lib/components/anchor/src/anchor2.js.map +1 -1
- package/lib/components/badge/index.js +2 -2
- package/lib/components/badge/src/badge.js +69 -32
- package/lib/components/badge/src/badge.js.map +1 -1
- package/lib/components/badge/src/badge2.js +32 -69
- package/lib/components/badge/src/badge2.js.map +1 -1
- package/lib/components/dialog/src/dialog-content.js +26 -88
- package/lib/components/dialog/src/dialog-content.js.map +1 -1
- package/lib/components/dialog/src/dialog-content2.js +88 -26
- package/lib/components/dialog/src/dialog-content2.js.map +1 -1
- package/lib/components/dialog/src/dialog.js +1 -1
- package/lib/components/dialog/src/dialog2.js +1 -1
- package/lib/components/image-viewer/src/image-viewer2.js +141 -118
- package/lib/components/image-viewer/src/image-viewer2.js.map +1 -1
- package/lib/components/index.js +8 -8
- package/lib/components/mention/src/mention-dropdown.js +167 -16
- package/lib/components/mention/src/mention-dropdown.js.map +1 -1
- package/lib/components/mention/src/mention-dropdown2.js +16 -167
- package/lib/components/mention/src/mention-dropdown2.js.map +1 -1
- package/lib/components/mention/src/mention2.js +1 -1
- package/lib/components/menu/index.js +2 -2
- package/lib/components/menu/src/menu-item-group.js +35 -4
- package/lib/components/menu/src/menu-item-group.js.map +1 -1
- package/lib/components/menu/src/menu-item-group2.js +4 -35
- package/lib/components/menu/src/menu-item-group2.js.map +1 -1
- package/lib/components/notification/src/notification.d.ts +4 -4
- package/lib/components/notification/src/notification.js +5 -1
- package/lib/components/notification/src/notification.js.map +1 -1
- package/lib/components/notification/src/notification.vue.d.ts +12 -12
- package/lib/components/notification/src/notify.js +1 -3
- package/lib/components/notification/src/notify.js.map +1 -1
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +115 -48
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +48 -115
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/content.js +137 -98
- package/lib/components/popper/src/content.js.map +1 -1
- package/lib/components/popper/src/content2.js +98 -137
- package/lib/components/popper/src/content2.js.map +1 -1
- package/lib/components/row/index.js +2 -2
- package/lib/components/row/src/row.js +31 -45
- package/lib/components/row/src/row.js.map +1 -1
- package/lib/components/row/src/row2.js +45 -31
- package/lib/components/row/src/row2.js.map +1 -1
- package/lib/components/statistic/index.js +2 -2
- package/lib/components/statistic/src/statistic.js +70 -25
- package/lib/components/statistic/src/statistic.js.map +1 -1
- package/lib/components/statistic/src/statistic2.js +25 -70
- package/lib/components/statistic/src/statistic2.js.map +1 -1
- package/lib/components/table/src/table.js +5 -3
- package/lib/components/table/src/table.js.map +1 -1
- package/lib/components/table/src/table.vue.d.ts +2 -1
- package/lib/components/tag/src/tag2.js +4 -1
- package/lib/components/tag/src/tag2.js.map +1 -1
- package/lib/components/time-picker/src/common/picker-range-trigger.js.map +1 -1
- package/lib/components/tooltip/src/content.js +1 -1
- package/lib/components/tooltip/src/content2.js +1 -1
- package/lib/index.js +8 -8
- package/lib/locale/lang/ms.d.ts +180 -0
- package/lib/locale/lang/ms.js +186 -0
- package/lib/locale/lang/ms.js.map +1 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/theme-chalk/el-image-viewer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/src/image-viewer.scss +4 -0
- package/web-types.json +1 -1
@@ -2,124 +2,57 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
|
6
|
-
var
|
7
|
-
var index$3 = require('../../icon/index.js');
|
8
|
-
var index$2 = require('../../tooltip/index.js');
|
9
|
-
require('../../../hooks/index.js');
|
5
|
+
require('../../button/index.js');
|
6
|
+
var iconsVue = require('@element-plus/icons-vue');
|
10
7
|
require('../../../utils/index.js');
|
11
|
-
|
12
|
-
var
|
13
|
-
var
|
14
|
-
var
|
15
|
-
var
|
8
|
+
require('../../tooltip/index.js');
|
9
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
10
|
+
var button = require('../../button/src/button.js');
|
11
|
+
var icon = require('../../../utils/vue/icon.js');
|
12
|
+
var content = require('../../tooltip/src/content.js');
|
16
13
|
|
17
|
-
const
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
trigger: "click",
|
53
|
-
effect: "light"
|
54
|
-
}, _ctx.$attrs, {
|
55
|
-
"popper-class": `${vue.unref(ns).namespace.value}-popover`,
|
56
|
-
"popper-style": vue.unref(style$1),
|
57
|
-
teleported: _ctx.teleported,
|
58
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
59
|
-
"hide-after": _ctx.hideAfter,
|
60
|
-
persistent: _ctx.persistent
|
61
|
-
}), {
|
62
|
-
content: vue.withCtx(() => [
|
63
|
-
vue.createElementVNode("div", {
|
64
|
-
class: vue.normalizeClass(vue.unref(ns).b())
|
65
|
-
}, [
|
66
|
-
vue.createElementVNode("div", {
|
67
|
-
class: vue.normalizeClass(vue.unref(ns).e("main"))
|
68
|
-
}, [
|
69
|
-
!_ctx.hideIcon && _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.ElIcon), {
|
70
|
-
key: 0,
|
71
|
-
class: vue.normalizeClass(vue.unref(ns).e("icon")),
|
72
|
-
style: vue.normalizeStyle({ color: _ctx.iconColor })
|
73
|
-
}, {
|
74
|
-
default: vue.withCtx(() => [
|
75
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon)))
|
76
|
-
]),
|
77
|
-
_: 1
|
78
|
-
}, 8, ["class", "style"])) : vue.createCommentVNode("v-if", true),
|
79
|
-
vue.createTextVNode(" " + vue.toDisplayString(_ctx.title), 1)
|
80
|
-
], 2),
|
81
|
-
vue.createElementVNode("div", {
|
82
|
-
class: vue.normalizeClass(vue.unref(ns).e("action"))
|
83
|
-
}, [
|
84
|
-
vue.renderSlot(_ctx.$slots, "actions", {
|
85
|
-
confirm,
|
86
|
-
cancel
|
87
|
-
}, () => [
|
88
|
-
vue.createVNode(vue.unref(index$4.ElButton), {
|
89
|
-
size: "small",
|
90
|
-
type: _ctx.cancelButtonType === "text" ? "" : _ctx.cancelButtonType,
|
91
|
-
text: _ctx.cancelButtonType === "text",
|
92
|
-
onClick: cancel
|
93
|
-
}, {
|
94
|
-
default: vue.withCtx(() => [
|
95
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(finalCancelButtonText)), 1)
|
96
|
-
]),
|
97
|
-
_: 1
|
98
|
-
}, 8, ["type", "text"]),
|
99
|
-
vue.createVNode(vue.unref(index$4.ElButton), {
|
100
|
-
size: "small",
|
101
|
-
type: _ctx.confirmButtonType === "text" ? "" : _ctx.confirmButtonType,
|
102
|
-
text: _ctx.confirmButtonType === "text",
|
103
|
-
onClick: confirm
|
104
|
-
}, {
|
105
|
-
default: vue.withCtx(() => [
|
106
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(finalConfirmButtonText)), 1)
|
107
|
-
]),
|
108
|
-
_: 1
|
109
|
-
}, 8, ["type", "text"])
|
110
|
-
])
|
111
|
-
], 2)
|
112
|
-
], 2)
|
113
|
-
]),
|
114
|
-
default: vue.withCtx(() => [
|
115
|
-
_ctx.$slots.reference ? vue.renderSlot(_ctx.$slots, "reference", { key: 0 }) : vue.createCommentVNode("v-if", true)
|
116
|
-
]),
|
117
|
-
_: 3
|
118
|
-
}, 16, ["popper-class", "popper-style", "teleported", "hide-after", "persistent"]);
|
119
|
-
};
|
14
|
+
const popconfirmProps = runtime.buildProps({
|
15
|
+
title: String,
|
16
|
+
confirmButtonText: String,
|
17
|
+
cancelButtonText: String,
|
18
|
+
confirmButtonType: {
|
19
|
+
type: String,
|
20
|
+
values: button.buttonTypes,
|
21
|
+
default: "primary"
|
22
|
+
},
|
23
|
+
cancelButtonType: {
|
24
|
+
type: String,
|
25
|
+
values: button.buttonTypes,
|
26
|
+
default: "text"
|
27
|
+
},
|
28
|
+
icon: {
|
29
|
+
type: icon.iconPropType,
|
30
|
+
default: () => iconsVue.QuestionFilled
|
31
|
+
},
|
32
|
+
iconColor: {
|
33
|
+
type: String,
|
34
|
+
default: "#f90"
|
35
|
+
},
|
36
|
+
hideIcon: {
|
37
|
+
type: Boolean,
|
38
|
+
default: false
|
39
|
+
},
|
40
|
+
hideAfter: {
|
41
|
+
type: Number,
|
42
|
+
default: 200
|
43
|
+
},
|
44
|
+
teleported: content.useTooltipContentProps.teleported,
|
45
|
+
persistent: content.useTooltipContentProps.persistent,
|
46
|
+
width: {
|
47
|
+
type: [String, Number],
|
48
|
+
default: 150
|
120
49
|
}
|
121
50
|
});
|
122
|
-
|
51
|
+
const popconfirmEmits = {
|
52
|
+
confirm: (e) => e instanceof MouseEvent,
|
53
|
+
cancel: (e) => e instanceof MouseEvent
|
54
|
+
};
|
123
55
|
|
124
|
-
exports
|
56
|
+
exports.popconfirmEmits = popconfirmEmits;
|
57
|
+
exports.popconfirmProps = popconfirmProps;
|
125
58
|
//# sourceMappingURL=popconfirm2.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"popconfirm2.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.
|
1
|
+
{"version":3,"file":"popconfirm2.js","sources":["../../../../../../packages/components/popconfirm/src/popconfirm.ts"],"sourcesContent":["import { buttonTypes } from '@element-plus/components/button'\nimport { QuestionFilled } from '@element-plus/icons-vue'\nimport { buildProps, iconPropType } from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport type { ExtractPropTypes } from 'vue'\nimport type Popconfirm from './popconfirm.vue'\n\nexport const popconfirmProps = buildProps({\n /**\n * @description Title\n */\n title: String,\n /**\n * @description Confirm button text\n */\n confirmButtonText: String,\n /**\n * @description Cancel button text\n */\n cancelButtonText: String,\n /**\n * @description Confirm button type\n */\n confirmButtonType: {\n type: String,\n values: buttonTypes,\n default: 'primary',\n },\n /**\n * @description Cancel button type\n */\n cancelButtonType: {\n type: String,\n values: buttonTypes,\n default: 'text',\n },\n /**\n * @description Icon Component\n */\n icon: {\n type: iconPropType,\n default: () => QuestionFilled,\n },\n /**\n * @description Icon color\n */\n iconColor: {\n type: String,\n default: '#f90',\n },\n /**\n * @description is hide Icon\n */\n hideIcon: {\n type: Boolean,\n default: false,\n },\n /**\n * @description delay of disappear, in millisecond\n */\n hideAfter: {\n type: Number,\n default: 200,\n },\n /**\n * @description whether popconfirm is teleported to the body\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when popconfirm inactive and `persistent` is `false` , popconfirm will be destroyed\n */\n persistent: useTooltipContentProps.persistent,\n /**\n * @description popconfirm width, min width 150px\n */\n width: {\n type: [String, Number],\n default: 150,\n },\n} as const)\n\nexport const popconfirmEmits = {\n /**\n * @description triggers when click confirm button\n */\n confirm: (e: MouseEvent) => e instanceof MouseEvent,\n /**\n * @description triggers when click cancel button\n */\n cancel: (e: MouseEvent) => e instanceof MouseEvent,\n}\n\nexport type PopconfirmEmits = typeof popconfirmEmits\n\nexport type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>\n\nexport type PopconfirmInstance = InstanceType<typeof Popconfirm>\n"],"names":["buildProps","buttonTypes","i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6,10 +6,10 @@ require('../../utils/index.js');
|
|
6
6
|
var popper$1 = require('./src/popper2.js');
|
7
7
|
var arrow = require('./src/arrow2.js');
|
8
8
|
var trigger = require('./src/trigger2.js');
|
9
|
-
var content = require('./src/
|
9
|
+
var content = require('./src/content.js');
|
10
10
|
var popper = require('./src/popper.js');
|
11
11
|
var trigger$1 = require('./src/trigger.js');
|
12
|
-
var content$1 = require('./src/
|
12
|
+
var content$1 = require('./src/content2.js');
|
13
13
|
var arrow$1 = require('./src/arrow.js');
|
14
14
|
var constants = require('./src/constants.js');
|
15
15
|
var install = require('../../utils/vue/install.js');
|
@@ -2,107 +2,146 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var
|
5
|
+
var vue = require('vue');
|
6
|
+
var lodashUnified = require('lodash-unified');
|
6
7
|
require('../../../utils/index.js');
|
7
|
-
require('
|
8
|
-
|
9
|
-
var
|
8
|
+
require('../../focus-trap/index.js');
|
9
|
+
require('../../form/index.js');
|
10
|
+
var constants$1 = require('./constants.js');
|
11
|
+
var content = require('./content2.js');
|
12
|
+
require('./composables/index.js');
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
14
|
+
var useFocusTrap = require('./composables/use-focus-trap.js');
|
15
|
+
var useContent = require('./composables/use-content.js');
|
16
|
+
var useContentDom = require('./composables/use-content-dom.js');
|
17
|
+
var constants = require('../../form/src/constants.js');
|
18
|
+
var shared = require('@vue/shared');
|
19
|
+
var types = require('../../../utils/types.js');
|
20
|
+
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
10
21
|
|
11
|
-
const
|
12
|
-
|
13
|
-
boundariesPadding: {
|
14
|
-
type: Number,
|
15
|
-
default: 0
|
16
|
-
},
|
17
|
-
fallbackPlacements: {
|
18
|
-
type: runtime.definePropType(Array),
|
19
|
-
default: void 0
|
20
|
-
},
|
21
|
-
gpuAcceleration: {
|
22
|
-
type: Boolean,
|
23
|
-
default: true
|
24
|
-
},
|
25
|
-
offset: {
|
26
|
-
type: Number,
|
27
|
-
default: 12
|
28
|
-
},
|
29
|
-
placement: {
|
30
|
-
type: String,
|
31
|
-
values: core.placements,
|
32
|
-
default: "bottom"
|
33
|
-
},
|
34
|
-
popperOptions: {
|
35
|
-
type: runtime.definePropType(Object),
|
36
|
-
default: () => ({})
|
37
|
-
},
|
38
|
-
strategy: {
|
39
|
-
type: String,
|
40
|
-
values: POSITIONING_STRATEGIES,
|
41
|
-
default: "absolute"
|
42
|
-
}
|
22
|
+
const __default__ = vue.defineComponent({
|
23
|
+
name: "ElPopperContent"
|
43
24
|
});
|
44
|
-
const
|
45
|
-
...
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
25
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
26
|
+
...__default__,
|
27
|
+
props: content.popperContentProps,
|
28
|
+
emits: content.popperContentEmits,
|
29
|
+
setup(__props, { expose, emit }) {
|
30
|
+
const props = __props;
|
31
|
+
const {
|
32
|
+
focusStartRef,
|
33
|
+
trapped,
|
34
|
+
onFocusAfterReleased,
|
35
|
+
onFocusAfterTrapped,
|
36
|
+
onFocusInTrap,
|
37
|
+
onFocusoutPrevented,
|
38
|
+
onReleaseRequested
|
39
|
+
} = useFocusTrap.usePopperContentFocusTrap(props, emit);
|
40
|
+
const { attributes, arrowRef, contentRef, styles, instanceRef, role, update } = useContent.usePopperContent(props);
|
41
|
+
const {
|
42
|
+
ariaModal,
|
43
|
+
arrowStyle,
|
44
|
+
contentAttrs,
|
45
|
+
contentClass,
|
46
|
+
contentStyle,
|
47
|
+
updateZIndex
|
48
|
+
} = useContentDom.usePopperContentDOM(props, {
|
49
|
+
styles,
|
50
|
+
attributes,
|
51
|
+
role
|
52
|
+
});
|
53
|
+
const formItemContext = vue.inject(constants.formItemContextKey, void 0);
|
54
|
+
const arrowOffset = vue.ref();
|
55
|
+
vue.provide(constants$1.POPPER_CONTENT_INJECTION_KEY, {
|
56
|
+
arrowStyle,
|
57
|
+
arrowRef,
|
58
|
+
arrowOffset
|
59
|
+
});
|
60
|
+
if (formItemContext) {
|
61
|
+
vue.provide(constants.formItemContextKey, {
|
62
|
+
...formItemContext,
|
63
|
+
addInputId: shared.NOOP,
|
64
|
+
removeInputId: shared.NOOP
|
65
|
+
});
|
66
|
+
}
|
67
|
+
let triggerTargetAriaStopWatch = void 0;
|
68
|
+
const updatePopper = (shouldUpdateZIndex = true) => {
|
69
|
+
update();
|
70
|
+
shouldUpdateZIndex && updateZIndex();
|
71
|
+
};
|
72
|
+
const togglePopperAlive = () => {
|
73
|
+
updatePopper(false);
|
74
|
+
if (props.visible && props.focusOnShow) {
|
75
|
+
trapped.value = true;
|
76
|
+
} else if (props.visible === false) {
|
77
|
+
trapped.value = false;
|
78
|
+
}
|
79
|
+
};
|
80
|
+
vue.onMounted(() => {
|
81
|
+
vue.watch(() => props.triggerTargetEl, (triggerTargetEl, prevTriggerTargetEl) => {
|
82
|
+
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
83
|
+
triggerTargetAriaStopWatch = void 0;
|
84
|
+
const el = vue.unref(triggerTargetEl || contentRef.value);
|
85
|
+
const prevEl = vue.unref(prevTriggerTargetEl || contentRef.value);
|
86
|
+
if (types.isElement(el)) {
|
87
|
+
triggerTargetAriaStopWatch = vue.watch([role, () => props.ariaLabel, ariaModal, () => props.id], (watches) => {
|
88
|
+
;
|
89
|
+
["role", "aria-label", "aria-modal", "id"].forEach((key, idx) => {
|
90
|
+
lodashUnified.isNil(watches[idx]) ? el.removeAttribute(key) : el.setAttribute(key, watches[idx]);
|
91
|
+
});
|
92
|
+
}, { immediate: true });
|
93
|
+
}
|
94
|
+
if (prevEl !== el && types.isElement(prevEl)) {
|
95
|
+
;
|
96
|
+
["role", "aria-label", "aria-modal", "id"].forEach((key) => {
|
97
|
+
prevEl.removeAttribute(key);
|
98
|
+
});
|
99
|
+
}
|
100
|
+
}, { immediate: true });
|
101
|
+
vue.watch(() => props.visible, togglePopperAlive, { immediate: true });
|
102
|
+
});
|
103
|
+
vue.onBeforeUnmount(() => {
|
104
|
+
triggerTargetAriaStopWatch == null ? void 0 : triggerTargetAriaStopWatch();
|
105
|
+
triggerTargetAriaStopWatch = void 0;
|
106
|
+
});
|
107
|
+
expose({
|
108
|
+
popperContentRef: contentRef,
|
109
|
+
popperInstanceRef: instanceRef,
|
110
|
+
updatePopper,
|
111
|
+
contentStyle
|
112
|
+
});
|
113
|
+
return (_ctx, _cache) => {
|
114
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
115
|
+
ref_key: "contentRef",
|
116
|
+
ref: contentRef
|
117
|
+
}, vue.unref(contentAttrs), {
|
118
|
+
style: vue.unref(contentStyle),
|
119
|
+
class: vue.unref(contentClass),
|
120
|
+
tabindex: "-1",
|
121
|
+
onMouseenter: (e) => _ctx.$emit("mouseenter", e),
|
122
|
+
onMouseleave: (e) => _ctx.$emit("mouseleave", e)
|
123
|
+
}), [
|
124
|
+
vue.createVNode(vue.unref(focusTrap["default"]), {
|
125
|
+
trapped: vue.unref(trapped),
|
126
|
+
"trap-on-focus-in": true,
|
127
|
+
"focus-trap-el": vue.unref(contentRef),
|
128
|
+
"focus-start-el": vue.unref(focusStartRef),
|
129
|
+
onFocusAfterTrapped: vue.unref(onFocusAfterTrapped),
|
130
|
+
onFocusAfterReleased: vue.unref(onFocusAfterReleased),
|
131
|
+
onFocusin: vue.unref(onFocusInTrap),
|
132
|
+
onFocusoutPrevented: vue.unref(onFocusoutPrevented),
|
133
|
+
onReleaseRequested: vue.unref(onReleaseRequested)
|
134
|
+
}, {
|
135
|
+
default: vue.withCtx(() => [
|
136
|
+
vue.renderSlot(_ctx.$slots, "default")
|
137
|
+
]),
|
138
|
+
_: 3
|
139
|
+
}, 8, ["trapped", "focus-trap-el", "focus-start-el", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusin", "onFocusoutPrevented", "onReleaseRequested"])
|
140
|
+
], 16, ["onMouseenter", "onMouseleave"]);
|
141
|
+
};
|
142
|
+
}
|
90
143
|
});
|
91
|
-
|
92
|
-
mouseenter: (evt) => evt instanceof MouseEvent,
|
93
|
-
mouseleave: (evt) => evt instanceof MouseEvent,
|
94
|
-
focus: () => true,
|
95
|
-
blur: () => true,
|
96
|
-
close: () => true
|
97
|
-
};
|
98
|
-
const usePopperCoreConfigProps = popperCoreConfigProps;
|
99
|
-
const usePopperContentProps = popperContentProps;
|
100
|
-
const usePopperContentEmits = popperContentEmits;
|
144
|
+
var ElPopperContent = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "content.vue"]]);
|
101
145
|
|
102
|
-
exports
|
103
|
-
exports.popperContentProps = popperContentProps;
|
104
|
-
exports.popperCoreConfigProps = popperCoreConfigProps;
|
105
|
-
exports.usePopperContentEmits = usePopperContentEmits;
|
106
|
-
exports.usePopperContentProps = usePopperContentProps;
|
107
|
-
exports.usePopperCoreConfigProps = usePopperCoreConfigProps;
|
146
|
+
exports["default"] = ElPopperContent;
|
108
147
|
//# sourceMappingURL=content.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"content.js","sources":["../../../../../../packages/components/popper/src/content.
|
1
|
+
{"version":3,"file":"content.js","sources":["../../../../../../packages/components/popper/src/content.vue"],"sourcesContent":["<template>\n <div\n ref=\"contentRef\"\n v-bind=\"contentAttrs\"\n :style=\"contentStyle\"\n :class=\"contentClass\"\n tabindex=\"-1\"\n @mouseenter=\"(e) => $emit('mouseenter', e)\"\n @mouseleave=\"(e) => $emit('mouseleave', e)\"\n >\n <el-focus-trap\n :trapped=\"trapped\"\n :trap-on-focus-in=\"true\"\n :focus-trap-el=\"contentRef\"\n :focus-start-el=\"focusStartRef\"\n @focus-after-trapped=\"onFocusAfterTrapped\"\n @focus-after-released=\"onFocusAfterReleased\"\n @focusin=\"onFocusInTrap\"\n @focusout-prevented=\"onFocusoutPrevented\"\n @release-requested=\"onReleaseRequested\"\n >\n <slot />\n </el-focus-trap>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport {\n inject,\n onBeforeUnmount,\n onMounted,\n provide,\n ref,\n unref,\n watch,\n} from 'vue'\nimport { isNil } from 'lodash-unified'\nimport { NOOP, isElement } from '@element-plus/utils'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport { formItemContextKey } from '@element-plus/components/form'\nimport { POPPER_CONTENT_INJECTION_KEY } from './constants'\nimport { popperContentEmits, popperContentProps } from './content'\nimport {\n usePopperContent,\n usePopperContentDOM,\n usePopperContentFocusTrap,\n} from './composables'\n\nimport type { WatchStopHandle } from 'vue'\n\ndefineOptions({\n name: 'ElPopperContent',\n})\n\nconst emit = defineEmits(popperContentEmits)\n\nconst props = defineProps(popperContentProps)\n\nconst {\n focusStartRef,\n trapped,\n\n onFocusAfterReleased,\n onFocusAfterTrapped,\n onFocusInTrap,\n onFocusoutPrevented,\n onReleaseRequested,\n} = usePopperContentFocusTrap(props, emit)\n\nconst { attributes, arrowRef, contentRef, styles, instanceRef, role, update } =\n usePopperContent(props)\n\nconst {\n ariaModal,\n arrowStyle,\n contentAttrs,\n contentClass,\n contentStyle,\n updateZIndex,\n} = usePopperContentDOM(props, {\n styles,\n attributes,\n role,\n})\n\nconst formItemContext = inject(formItemContextKey, undefined)\nconst arrowOffset = ref<number>()\n\nprovide(POPPER_CONTENT_INJECTION_KEY, {\n arrowStyle,\n arrowRef,\n arrowOffset,\n})\n\nif (formItemContext) {\n // disallow auto-id from inside popper content\n provide(formItemContextKey, {\n ...formItemContext,\n addInputId: NOOP,\n removeInputId: NOOP,\n })\n}\n\nlet triggerTargetAriaStopWatch: WatchStopHandle | undefined = undefined\n\nconst updatePopper = (shouldUpdateZIndex = true) => {\n update()\n shouldUpdateZIndex && updateZIndex()\n}\n\nconst togglePopperAlive = () => {\n updatePopper(false)\n if (props.visible && props.focusOnShow) {\n trapped.value = true\n } else if (props.visible === false) {\n trapped.value = false\n }\n}\n\nonMounted(() => {\n watch(\n () => props.triggerTargetEl,\n (triggerTargetEl, prevTriggerTargetEl) => {\n triggerTargetAriaStopWatch?.()\n triggerTargetAriaStopWatch = undefined\n\n const el = unref(triggerTargetEl || contentRef.value)\n const prevEl = unref(prevTriggerTargetEl || contentRef.value)\n\n if (isElement(el)) {\n triggerTargetAriaStopWatch = watch(\n [role, () => props.ariaLabel, ariaModal, () => props.id],\n (watches) => {\n ;['role', 'aria-label', 'aria-modal', 'id'].forEach((key, idx) => {\n isNil(watches[idx])\n ? el.removeAttribute(key)\n : el.setAttribute(key, watches[idx]!)\n })\n },\n { immediate: true }\n )\n }\n if (prevEl !== el && isElement(prevEl)) {\n ;['role', 'aria-label', 'aria-modal', 'id'].forEach((key) => {\n prevEl.removeAttribute(key)\n })\n }\n },\n { immediate: true }\n )\n\n watch(() => props.visible, togglePopperAlive, { immediate: true })\n})\n\nonBeforeUnmount(() => {\n triggerTargetAriaStopWatch?.()\n triggerTargetAriaStopWatch = undefined\n})\n\ndefineExpose({\n /**\n * @description popper content element\n */\n popperContentRef: contentRef,\n /**\n * @description popperjs instance\n */\n popperInstanceRef: instanceRef,\n /**\n * @description method for updating popper\n */\n updatePopper,\n\n /**\n * @description content style\n */\n contentStyle,\n})\n</script>\n"],"names":["usePopperContentFocusTrap","usePopperContent","usePopperContentDOM","inject","formItemContextKey","ref","provide","POPPER_CONTENT_INJECTION_KEY","NOOP","onMounted","watch","unref","isElement","isNil","onBeforeUnmount","_openBlock","_createElementBlock","_mergeProps","_unref","_createVNode","ElFocusTrap"],"mappings":";;;;;;;;;;;;;;;;;;;;;uCAkDc,CAAA;AAAA,EACZ,IAAM,EAAA,iBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAMA,IAAM,MAAA;AAAA,MACJ,aAAA;AAAA,MACA,OAAA;AAAA,MAEA,oBAAA;AAAA,MACA,mBAAA;AAAA,MACA,aAAA;AAAA,MACA,mBAAA;AAAA,MACA,kBAAA;AAAA,KACF,GAAIA,sCAA0B,CAAA,KAAA,EAAO,IAAI,CAAA,CAAA;AAEzC,IAAM,MAAA,EAAE,UAAY,EAAA,QAAA,EAAU,UAAY,EAAA,MAAA,EAAQ,aAAa,IAAM,EAAA,MAAA,EACnE,GAAAC,2BAAA,CAAiB,KAAK,CAAA,CAAA;AAExB,IAAM,MAAA;AAAA,MACJ,SAAA;AAAA,MACA,UAAA;AAAA,MACA,YAAA;AAAA,MACA,YAAA;AAAA,MACA,YAAA;AAAA,MACA,YAAA;AAAA,KACF,GAAIC,kCAAoB,KAAO,EAAA;AAAA,MAC7B,MAAA;AAAA,MACA,UAAA;AAAA,MACA,IAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAM,MAAA,eAAA,GAAkBC,UAAO,CAAAC,4BAAA,EAAoB,KAAS,CAAA,CAAA,CAAA;AAC5D,IAAA,MAAM,cAAcC,OAAY,EAAA,CAAA;AAEhC,IAAAC,WAAA,CAAQC,wCAA8B,EAAA;AAAA,MACpC,UAAA;AAAA,MACA,QAAA;AAAA,MACA,WAAA;AAAA,KACD,CAAA,CAAA;AAED,IAAA,IAAI,eAAiB,EAAA;AAEnB,MAAAD,WAAA,CAAQF,4BAAoB,EAAA;AAAA,QAC1B,GAAG,eAAA;AAAA,QACH,UAAY,EAAAI,WAAA;AAAA,QACZ,aAAe,EAAAA,WAAA;AAAA,OAChB,CAAA,CAAA;AAAA,KACH;AAEA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