@element-plus/nightly 0.0.20240412 → 0.0.20240413
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.full.js +2 -2
- package/dist/index.full.min.js +2 -2
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +2 -2
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +2 -2
- 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/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/button/index.mjs +2 -2
- package/es/components/button/src/button-group.mjs +1 -1
- package/es/components/button/src/button.mjs +77 -57
- package/es/components/button/src/button.mjs.map +1 -1
- package/es/components/button/src/button2.mjs +57 -77
- package/es/components/button/src/button2.mjs.map +1 -1
- package/es/components/index.mjs +7 -7
- package/es/components/message/index.mjs +1 -1
- package/es/components/message/src/message.mjs +91 -149
- package/es/components/message/src/message.mjs.map +1 -1
- package/es/components/message/src/message2.mjs +149 -91
- package/es/components/message/src/message2.mjs.map +1 -1
- package/es/components/message/src/method.mjs +2 -2
- package/es/components/popconfirm/index.mjs +2 -2
- package/es/components/popconfirm/src/popconfirm.mjs +110 -47
- package/es/components/popconfirm/src/popconfirm.mjs.map +1 -1
- package/es/components/popconfirm/src/popconfirm2.mjs +47 -110
- package/es/components/popconfirm/src/popconfirm2.mjs.map +1 -1
- package/es/components/popper/index.mjs +2 -2
- package/es/components/popper/src/popper.mjs +32 -25
- package/es/components/popper/src/popper.mjs.map +1 -1
- package/es/components/popper/src/popper2.mjs +25 -32
- package/es/components/popper/src/popper2.mjs.map +1 -1
- package/es/components/radio/index.mjs +2 -2
- package/es/components/radio/src/radio-button.mjs +67 -6
- package/es/components/radio/src/radio-button.mjs.map +1 -1
- package/es/components/radio/src/radio-button2.mjs +6 -67
- package/es/components/radio/src/radio-button2.mjs.map +1 -1
- package/es/components/tooltip/src/tooltip.mjs +1 -1
- package/es/components/tour/index.mjs +2 -2
- package/es/components/tour/src/tour.mjs +152 -69
- package/es/components/tour/src/tour.mjs.map +1 -1
- package/es/components/tour/src/tour2.mjs +69 -152
- package/es/components/tour/src/tour2.mjs.map +1 -1
- package/es/components/upload/index.mjs +1 -1
- package/es/components/upload/src/upload-content.mjs +33 -194
- package/es/components/upload/src/upload-content.mjs.map +1 -1
- package/es/components/upload/src/upload-content2.mjs +194 -33
- package/es/components/upload/src/upload-content2.mjs.map +1 -1
- package/es/components/upload/src/upload2.mjs +1 -1
- package/es/index.mjs +7 -7
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/button/index.js +2 -2
- package/lib/components/button/src/button-group.js +1 -1
- package/lib/components/button/src/button.js +77 -60
- package/lib/components/button/src/button.js.map +1 -1
- package/lib/components/button/src/button2.js +60 -77
- package/lib/components/button/src/button2.js.map +1 -1
- package/lib/components/index.js +7 -7
- package/lib/components/message/index.js +1 -1
- package/lib/components/message/src/message.js +93 -148
- package/lib/components/message/src/message.js.map +1 -1
- package/lib/components/message/src/message2.js +148 -93
- package/lib/components/message/src/message2.js.map +1 -1
- package/lib/components/message/src/method.js +2 -2
- package/lib/components/popconfirm/index.js +2 -2
- package/lib/components/popconfirm/src/popconfirm.js +110 -48
- package/lib/components/popconfirm/src/popconfirm.js.map +1 -1
- package/lib/components/popconfirm/src/popconfirm2.js +48 -110
- package/lib/components/popconfirm/src/popconfirm2.js.map +1 -1
- package/lib/components/popper/index.js +2 -2
- package/lib/components/popper/src/popper.js +32 -28
- package/lib/components/popper/src/popper.js.map +1 -1
- package/lib/components/popper/src/popper2.js +28 -32
- package/lib/components/popper/src/popper2.js.map +1 -1
- package/lib/components/radio/index.js +2 -2
- package/lib/components/radio/src/radio-button.js +67 -6
- package/lib/components/radio/src/radio-button.js.map +1 -1
- package/lib/components/radio/src/radio-button2.js +6 -67
- package/lib/components/radio/src/radio-button2.js.map +1 -1
- package/lib/components/tooltip/src/tooltip.js +1 -1
- package/lib/components/tour/index.js +2 -2
- package/lib/components/tour/src/tour.js +151 -69
- package/lib/components/tour/src/tour.js.map +1 -1
- package/lib/components/tour/src/tour2.js +69 -151
- package/lib/components/tour/src/tour2.js.map +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/upload/src/upload-content.js +31 -192
- package/lib/components/upload/src/upload-content.js.map +1 -1
- package/lib/components/upload/src/upload-content2.js +192 -31
- package/lib/components/upload/src/upload-content2.js.map +1 -1
- package/lib/components/upload/src/upload2.js +1 -1
- package/lib/index.js +7 -7
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
|
@@ -2,86 +2,69 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var index$1 = require('../../icon/index.js');
|
|
7
5
|
require('../../../hooks/index.js');
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
6
|
+
require('../../../utils/index.js');
|
|
7
|
+
var iconsVue = require('@element-plus/icons-vue');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
9
|
+
var index = require('../../../hooks/use-size/index.js');
|
|
10
|
+
var icon = require('../../../utils/vue/icon.js');
|
|
13
11
|
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.loadingIcon)))
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}, 8, ["class"]))
|
|
66
|
-
], 64)) : _ctx.icon || _ctx.$slots.icon ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), { key: 1 }, {
|
|
67
|
-
default: vue.withCtx(() => [
|
|
68
|
-
_ctx.icon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.icon), { key: 0 })) : vue.renderSlot(_ctx.$slots, "icon", { key: 1 })
|
|
69
|
-
]),
|
|
70
|
-
_: 3
|
|
71
|
-
})) : vue.createCommentVNode("v-if", true),
|
|
72
|
-
_ctx.$slots.default ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
73
|
-
key: 2,
|
|
74
|
-
class: vue.normalizeClass({ [vue.unref(ns).em("text", "expand")]: vue.unref(shouldAddSpace) })
|
|
75
|
-
}, [
|
|
76
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
77
|
-
], 2)) : vue.createCommentVNode("v-if", true)
|
|
78
|
-
]),
|
|
79
|
-
_: 3
|
|
80
|
-
}, 16, ["class", "style", "onClick"]);
|
|
81
|
-
};
|
|
12
|
+
const buttonTypes = [
|
|
13
|
+
"default",
|
|
14
|
+
"primary",
|
|
15
|
+
"success",
|
|
16
|
+
"warning",
|
|
17
|
+
"info",
|
|
18
|
+
"danger",
|
|
19
|
+
"text",
|
|
20
|
+
""
|
|
21
|
+
];
|
|
22
|
+
const buttonNativeTypes = ["button", "submit", "reset"];
|
|
23
|
+
const buttonProps = runtime.buildProps({
|
|
24
|
+
size: index.useSizeProp,
|
|
25
|
+
disabled: Boolean,
|
|
26
|
+
type: {
|
|
27
|
+
type: String,
|
|
28
|
+
values: buttonTypes,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
icon: {
|
|
32
|
+
type: icon.iconPropType
|
|
33
|
+
},
|
|
34
|
+
nativeType: {
|
|
35
|
+
type: String,
|
|
36
|
+
values: buttonNativeTypes,
|
|
37
|
+
default: "button"
|
|
38
|
+
},
|
|
39
|
+
loading: Boolean,
|
|
40
|
+
loadingIcon: {
|
|
41
|
+
type: icon.iconPropType,
|
|
42
|
+
default: () => iconsVue.Loading
|
|
43
|
+
},
|
|
44
|
+
plain: Boolean,
|
|
45
|
+
text: Boolean,
|
|
46
|
+
link: Boolean,
|
|
47
|
+
bg: Boolean,
|
|
48
|
+
autofocus: Boolean,
|
|
49
|
+
round: Boolean,
|
|
50
|
+
circle: Boolean,
|
|
51
|
+
color: String,
|
|
52
|
+
dark: Boolean,
|
|
53
|
+
autoInsertSpace: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: void 0
|
|
56
|
+
},
|
|
57
|
+
tag: {
|
|
58
|
+
type: runtime.definePropType([String, Object]),
|
|
59
|
+
default: "button"
|
|
82
60
|
}
|
|
83
61
|
});
|
|
84
|
-
|
|
62
|
+
const buttonEmits = {
|
|
63
|
+
click: (evt) => evt instanceof MouseEvent
|
|
64
|
+
};
|
|
85
65
|
|
|
86
|
-
exports
|
|
66
|
+
exports.buttonEmits = buttonEmits;
|
|
67
|
+
exports.buttonNativeTypes = buttonNativeTypes;
|
|
68
|
+
exports.buttonProps = buttonProps;
|
|
69
|
+
exports.buttonTypes = buttonTypes;
|
|
87
70
|
//# sourceMappingURL=button2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.
|
|
1
|
+
{"version":3,"file":"button2.js","sources":["../../../../../../packages/components/button/src/button.ts"],"sourcesContent":["import { useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { Loading } from '@element-plus/icons-vue'\nimport type { Component, ExtractPropTypes } from 'vue'\n\nexport const buttonTypes = [\n 'default',\n 'primary',\n 'success',\n 'warning',\n 'info',\n 'danger',\n /**\n * @deprecated\n * Text type will be deprecated in the next major version (3.0.0)\n */\n 'text',\n '',\n] as const\nexport const buttonNativeTypes = ['button', 'submit', 'reset'] as const\n\nexport const buttonProps = buildProps({\n /**\n * @description button size\n */\n size: useSizeProp,\n /**\n * @description disable the button\n */\n disabled: Boolean,\n /**\n * @description button type\n */\n type: {\n type: String,\n values: buttonTypes,\n default: '',\n },\n /**\n * @description icon component\n */\n icon: {\n type: iconPropType,\n },\n /**\n * @description native button type\n */\n nativeType: {\n type: String,\n values: buttonNativeTypes,\n default: 'button',\n },\n /**\n * @description determine whether it's loading\n */\n loading: Boolean,\n /**\n * @description customize loading icon component\n */\n loadingIcon: {\n type: iconPropType,\n default: () => Loading,\n },\n /**\n * @description determine whether it's a plain button\n */\n plain: Boolean,\n /**\n * @description determine whether it's a text button\n */\n text: Boolean,\n /**\n * @description determine whether it's a link button\n */\n link: Boolean,\n /**\n * @description determine whether the text button background color is always on\n */\n bg: Boolean,\n /**\n * @description native button autofocus\n */\n autofocus: Boolean,\n /**\n * @description determine whether it's a round button\n */\n round: Boolean,\n /**\n * @description determine whether it's a circle button\n */\n circle: Boolean,\n /**\n * @description custom button color, automatically calculate `hover` and `active` color\n */\n color: String,\n /**\n * @description dark mode, which automatically converts `color` to dark mode colors\n */\n dark: Boolean,\n /**\n * @description automatically insert a space between two chinese characters\n */\n autoInsertSpace: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description custom element tag\n */\n tag: {\n type: definePropType<string | Component>([String, Object]),\n default: 'button',\n },\n} as const)\nexport const buttonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n}\n\nexport type ButtonProps = ExtractPropTypes<typeof buttonProps>\nexport type ButtonEmits = typeof buttonEmits\n\nexport type ButtonType = ButtonProps['type']\nexport type ButtonNativeType = ButtonProps['nativeType']\n\nexport interface ButtonConfigContext {\n autoInsertSpace?: boolean\n}\n"],"names":["buildProps","useSizeProp","iconPropType","Loading","definePropType"],"mappings":";;;;;;;;;;;AAGY,MAAC,WAAW,GAAG;AAC3B,EAAE,S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IAAI,OAAO,EAAE,QAAQ;AACrB,GAAG;AACH,CAAC,EAAE;AACS,MAAC,WAAW,GAAG;AAC3B,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,GAAG,YAAY,UAAU;AAC3C;;;;;;;"}
|
package/lib/components/index.js
CHANGED
|
@@ -92,7 +92,7 @@ var badge = require('./badge/src/badge.js');
|
|
|
92
92
|
var breadcrumb = require('./breadcrumb/src/breadcrumb.js');
|
|
93
93
|
var breadcrumbItem = require('./breadcrumb/src/breadcrumb-item.js');
|
|
94
94
|
var constants = require('./breadcrumb/src/constants.js');
|
|
95
|
-
var button = require('./button/src/
|
|
95
|
+
var button = require('./button/src/button2.js');
|
|
96
96
|
var constants$1 = require('./button/src/constants.js');
|
|
97
97
|
var calendar = require('./calendar/src/calendar.js');
|
|
98
98
|
var card = require('./card/src/card.js');
|
|
@@ -146,8 +146,8 @@ var overlay = require('./overlay/src/overlay.js');
|
|
|
146
146
|
var pageHeader = require('./page-header/src/page-header.js');
|
|
147
147
|
var pagination = require('./pagination/src/pagination.js');
|
|
148
148
|
var constants$9 = require('./pagination/src/constants.js');
|
|
149
|
-
var popconfirm = require('./popconfirm/src/
|
|
150
|
-
var popper = require('./popper/src/
|
|
149
|
+
var popconfirm = require('./popconfirm/src/popconfirm2.js');
|
|
150
|
+
var popper = require('./popper/src/popper2.js');
|
|
151
151
|
var trigger$1 = require('./popper/src/trigger.js');
|
|
152
152
|
var content$1 = require('./popper/src/content.js');
|
|
153
153
|
var arrow$1 = require('./popper/src/arrow.js');
|
|
@@ -158,7 +158,7 @@ var content = require('./popper/src/content2.js');
|
|
|
158
158
|
var progress = require('./progress/src/progress.js');
|
|
159
159
|
var radio = require('./radio/src/radio.js');
|
|
160
160
|
var radioGroup = require('./radio/src/radio-group.js');
|
|
161
|
-
var radioButton = require('./radio/src/radio-
|
|
161
|
+
var radioButton = require('./radio/src/radio-button2.js');
|
|
162
162
|
var constants$b = require('./radio/src/constants.js');
|
|
163
163
|
var rate = require('./rate/src/rate.js');
|
|
164
164
|
var result = require('./result/src/result.js');
|
|
@@ -205,7 +205,7 @@ var content$2 = require('./tooltip/src/content.js');
|
|
|
205
205
|
var constants$i = require('./tooltip/src/constants.js');
|
|
206
206
|
var transfer = require('./transfer/src/transfer.js');
|
|
207
207
|
var upload = require('./upload/src/upload.js');
|
|
208
|
-
var uploadContent = require('./upload/src/upload-
|
|
208
|
+
var uploadContent = require('./upload/src/upload-content.js');
|
|
209
209
|
var uploadList = require('./upload/src/upload-list.js');
|
|
210
210
|
var uploadDragger = require('./upload/src/upload-dragger.js');
|
|
211
211
|
var constants$j = require('./upload/src/constants.js');
|
|
@@ -215,12 +215,12 @@ var fixedSizeGrid = require('./virtual-list/src/components/fixed-size-grid.js');
|
|
|
215
215
|
var dynamicSizeGrid = require('./virtual-list/src/components/dynamic-size-grid.js');
|
|
216
216
|
var props$1 = require('./virtual-list/src/props.js');
|
|
217
217
|
var watermark = require('./watermark/src/watermark.js');
|
|
218
|
-
var tour = require('./tour/src/
|
|
218
|
+
var tour = require('./tour/src/tour2.js');
|
|
219
219
|
var anchor = require('./anchor/src/anchor.js');
|
|
220
220
|
var segmented = require('./segmented/src/segmented.js');
|
|
221
221
|
var directive = require('./loading/src/directive.js');
|
|
222
222
|
var service = require('./loading/src/service.js');
|
|
223
|
-
var message = require('./message/src/
|
|
223
|
+
var message = require('./message/src/message.js');
|
|
224
224
|
var notification = require('./notification/src/notification.js');
|
|
225
225
|
var popover = require('./popover/src/popover.js');
|
|
226
226
|
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
var method = require('./src/method.js');
|
|
7
|
-
var message = require('./src/
|
|
7
|
+
var message = require('./src/message.js');
|
|
8
8
|
var install = require('../../utils/vue/install.js');
|
|
9
9
|
|
|
10
10
|
const ElMessage = install.withInstallFunction(method["default"], "$message");
|
|
@@ -2,159 +2,104 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vue = require('vue');
|
|
6
|
-
var core = require('@vueuse/core');
|
|
7
5
|
require('../../../utils/index.js');
|
|
8
|
-
require('../../../
|
|
9
|
-
var
|
|
10
|
-
require('
|
|
11
|
-
var index$1 = require('../../icon/index.js');
|
|
12
|
-
var message = require('./message2.js');
|
|
13
|
-
var instance = require('./instance.js');
|
|
14
|
-
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
6
|
+
var typescript = require('../../../utils/typescript.js');
|
|
7
|
+
var core = require('@vueuse/core');
|
|
8
|
+
var runtime = require('../../../utils/vue/props/runtime.js');
|
|
15
9
|
var icon = require('../../../utils/vue/icon.js');
|
|
16
|
-
var useGlobalConfig = require('../../config-provider/src/hooks/use-global-config.js');
|
|
17
|
-
var aria = require('../../../constants/aria.js');
|
|
18
10
|
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
11
|
+
const messageTypes = ["success", "info", "warning", "error"];
|
|
12
|
+
const messageDefaults = typescript.mutable({
|
|
13
|
+
customClass: "",
|
|
14
|
+
center: false,
|
|
15
|
+
dangerouslyUseHTMLString: false,
|
|
16
|
+
duration: 3e3,
|
|
17
|
+
icon: void 0,
|
|
18
|
+
id: "",
|
|
19
|
+
message: "",
|
|
20
|
+
onClose: void 0,
|
|
21
|
+
showClose: false,
|
|
22
|
+
type: "info",
|
|
23
|
+
plain: false,
|
|
24
|
+
offset: 16,
|
|
25
|
+
zIndex: 0,
|
|
26
|
+
grouping: false,
|
|
27
|
+
repeatNum: 1,
|
|
28
|
+
appendTo: core.isClient ? document.body : void 0
|
|
23
29
|
});
|
|
24
|
-
const
|
|
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
|
-
|
|
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
|
-
onBeforeLeave: _ctx.onClose,
|
|
90
|
-
onAfterLeave: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("destroy")),
|
|
91
|
-
persisted: ""
|
|
92
|
-
}, {
|
|
93
|
-
default: vue.withCtx(() => [
|
|
94
|
-
vue.withDirectives(vue.createElementVNode("div", {
|
|
95
|
-
id: _ctx.id,
|
|
96
|
-
ref_key: "messageRef",
|
|
97
|
-
ref: messageRef,
|
|
98
|
-
class: vue.normalizeClass([
|
|
99
|
-
vue.unref(ns).b(),
|
|
100
|
-
{ [vue.unref(ns).m(_ctx.type)]: _ctx.type },
|
|
101
|
-
vue.unref(ns).is("center", _ctx.center),
|
|
102
|
-
vue.unref(ns).is("closable", _ctx.showClose),
|
|
103
|
-
vue.unref(ns).is("plain", _ctx.plain),
|
|
104
|
-
_ctx.customClass
|
|
105
|
-
]),
|
|
106
|
-
style: vue.normalizeStyle(vue.unref(customStyle)),
|
|
107
|
-
role: "alert",
|
|
108
|
-
onMouseenter: clearTimer,
|
|
109
|
-
onMouseleave: startTimer
|
|
110
|
-
}, [
|
|
111
|
-
_ctx.repeatNum > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(index.ElBadge), {
|
|
112
|
-
key: 0,
|
|
113
|
-
value: _ctx.repeatNum,
|
|
114
|
-
type: vue.unref(badgeType),
|
|
115
|
-
class: vue.normalizeClass(vue.unref(ns).e("badge"))
|
|
116
|
-
}, null, 8, ["value", "type", "class"])) : vue.createCommentVNode("v-if", true),
|
|
117
|
-
vue.unref(iconComponent) ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
118
|
-
key: 1,
|
|
119
|
-
class: vue.normalizeClass([vue.unref(ns).e("icon"), vue.unref(typeClass)])
|
|
120
|
-
}, {
|
|
121
|
-
default: vue.withCtx(() => [
|
|
122
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(iconComponent))))
|
|
123
|
-
]),
|
|
124
|
-
_: 1
|
|
125
|
-
}, 8, ["class"])) : vue.createCommentVNode("v-if", true),
|
|
126
|
-
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
127
|
-
!_ctx.dangerouslyUseHTMLString ? (vue.openBlock(), vue.createElementBlock("p", {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: vue.normalizeClass(vue.unref(ns).e("content"))
|
|
130
|
-
}, vue.toDisplayString(_ctx.message), 3)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
131
|
-
vue.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
|
|
132
|
-
vue.createElementVNode("p", {
|
|
133
|
-
class: vue.normalizeClass(vue.unref(ns).e("content")),
|
|
134
|
-
innerHTML: _ctx.message
|
|
135
|
-
}, null, 10, _hoisted_2)
|
|
136
|
-
], 2112))
|
|
137
|
-
]),
|
|
138
|
-
_ctx.showClose ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.ElIcon), {
|
|
139
|
-
key: 2,
|
|
140
|
-
class: vue.normalizeClass(vue.unref(ns).e("closeBtn")),
|
|
141
|
-
onClick: vue.withModifiers(close, ["stop"])
|
|
142
|
-
}, {
|
|
143
|
-
default: vue.withCtx(() => [
|
|
144
|
-
vue.createVNode(vue.unref(Close))
|
|
145
|
-
]),
|
|
146
|
-
_: 1
|
|
147
|
-
}, 8, ["class", "onClick"])) : vue.createCommentVNode("v-if", true)
|
|
148
|
-
], 46, _hoisted_1), [
|
|
149
|
-
[vue.vShow, visible.value]
|
|
150
|
-
])
|
|
151
|
-
]),
|
|
152
|
-
_: 3
|
|
153
|
-
}, 8, ["name", "onBeforeLeave"]);
|
|
154
|
-
};
|
|
30
|
+
const messageProps = runtime.buildProps({
|
|
31
|
+
customClass: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: messageDefaults.customClass
|
|
34
|
+
},
|
|
35
|
+
center: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: messageDefaults.center
|
|
38
|
+
},
|
|
39
|
+
dangerouslyUseHTMLString: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: messageDefaults.dangerouslyUseHTMLString
|
|
42
|
+
},
|
|
43
|
+
duration: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: messageDefaults.duration
|
|
46
|
+
},
|
|
47
|
+
icon: {
|
|
48
|
+
type: icon.iconPropType,
|
|
49
|
+
default: messageDefaults.icon
|
|
50
|
+
},
|
|
51
|
+
id: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: messageDefaults.id
|
|
54
|
+
},
|
|
55
|
+
message: {
|
|
56
|
+
type: runtime.definePropType([
|
|
57
|
+
String,
|
|
58
|
+
Object,
|
|
59
|
+
Function
|
|
60
|
+
]),
|
|
61
|
+
default: messageDefaults.message
|
|
62
|
+
},
|
|
63
|
+
onClose: {
|
|
64
|
+
type: runtime.definePropType(Function),
|
|
65
|
+
default: messageDefaults.onClose
|
|
66
|
+
},
|
|
67
|
+
showClose: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: messageDefaults.showClose
|
|
70
|
+
},
|
|
71
|
+
type: {
|
|
72
|
+
type: String,
|
|
73
|
+
values: messageTypes,
|
|
74
|
+
default: messageDefaults.type
|
|
75
|
+
},
|
|
76
|
+
plain: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: messageDefaults.plain
|
|
79
|
+
},
|
|
80
|
+
offset: {
|
|
81
|
+
type: Number,
|
|
82
|
+
default: messageDefaults.offset
|
|
83
|
+
},
|
|
84
|
+
zIndex: {
|
|
85
|
+
type: Number,
|
|
86
|
+
default: messageDefaults.zIndex
|
|
87
|
+
},
|
|
88
|
+
grouping: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: messageDefaults.grouping
|
|
91
|
+
},
|
|
92
|
+
repeatNum: {
|
|
93
|
+
type: Number,
|
|
94
|
+
default: messageDefaults.repeatNum
|
|
155
95
|
}
|
|
156
96
|
});
|
|
157
|
-
|
|
97
|
+
const messageEmits = {
|
|
98
|
+
destroy: () => true
|
|
99
|
+
};
|
|
158
100
|
|
|
159
|
-
exports
|
|
101
|
+
exports.messageDefaults = messageDefaults;
|
|
102
|
+
exports.messageEmits = messageEmits;
|
|
103
|
+
exports.messageProps = messageProps;
|
|
104
|
+
exports.messageTypes = messageTypes;
|
|
160
105
|
//# sourceMappingURL=message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sources":["../../../../../../packages/components/message/src/message.
|
|
1
|
+
{"version":3,"file":"message.js","sources":["../../../../../../packages/components/message/src/message.ts"],"sourcesContent":["import {\n buildProps,\n definePropType,\n iconPropType,\n isClient,\n mutable,\n} from '@element-plus/utils'\nimport type { AppContext, ExtractPropTypes, VNode } from 'vue'\nimport type { Mutable } from '@element-plus/utils'\nimport type MessageConstructor from './message.vue'\n\nexport const messageTypes = ['success', 'info', 'warning', 'error'] as const\n\nexport type messageType = typeof messageTypes[number]\n\nexport interface MessageConfigContext {\n max?: number\n}\n\nexport const messageDefaults = mutable({\n customClass: '',\n center: false,\n dangerouslyUseHTMLString: false,\n duration: 3000,\n icon: undefined,\n id: '',\n message: '',\n onClose: undefined,\n showClose: false,\n type: 'info',\n plain: false,\n offset: 16,\n zIndex: 0,\n grouping: false,\n repeatNum: 1,\n appendTo: isClient ? document.body : (undefined as never),\n} as const)\n\nexport const messageProps = buildProps({\n /**\n * @description custom class name for Message\n */\n customClass: {\n type: String,\n default: messageDefaults.customClass,\n },\n /**\n * @description whether to center the text\n */\n center: {\n type: Boolean,\n default: messageDefaults.center,\n },\n /**\n * @description whether `message` is treated as HTML string\n */\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: messageDefaults.dangerouslyUseHTMLString,\n },\n /**\n * @description display duration, millisecond. If set to 0, it will not turn off automatically\n */\n duration: {\n type: Number,\n default: messageDefaults.duration,\n },\n /**\n * @description custom icon component, overrides `type`\n */\n icon: {\n type: iconPropType,\n default: messageDefaults.icon,\n },\n /**\n * @description message dom id\n */\n id: {\n type: String,\n default: messageDefaults.id,\n },\n /**\n * @description message text\n */\n message: {\n type: definePropType<string | VNode | (() => VNode)>([\n String,\n Object,\n Function,\n ]),\n default: messageDefaults.message,\n },\n /**\n * @description callback function when closed with the message instance as the parameter\n */\n onClose: {\n type: definePropType<() => void>(Function),\n default: messageDefaults.onClose,\n },\n /**\n * @description whether to show a close button\n */\n showClose: {\n type: Boolean,\n default: messageDefaults.showClose,\n },\n /**\n * @description message type\n */\n type: {\n type: String,\n values: messageTypes,\n default: messageDefaults.type,\n },\n /**\n * @description whether message is plain\n */\n plain: {\n type: Boolean,\n default: messageDefaults.plain,\n },\n /**\n * @description set the distance to the top of viewport\n */\n offset: {\n type: Number,\n default: messageDefaults.offset,\n },\n /**\n * @description input box size\n */\n zIndex: {\n type: Number,\n default: messageDefaults.zIndex,\n },\n /**\n * @description merge messages with the same content, type of VNode message is not supported\n */\n grouping: {\n type: Boolean,\n default: messageDefaults.grouping,\n },\n /**\n * @description The number of repetitions, similar to badge, is used as the initial number when used with `grouping`\n */\n repeatNum: {\n type: Number,\n default: messageDefaults.repeatNum,\n },\n} as const)\nexport type MessageProps = ExtractPropTypes<typeof messageProps>\n\nexport const messageEmits = {\n destroy: () => true,\n}\nexport type MessageEmits = typeof messageEmits\n\nexport type MessageInstance = InstanceType<typeof MessageConstructor>\n\nexport type MessageOptions = Partial<\n Mutable<\n Omit<MessageProps, 'id'> & {\n appendTo?: HTMLElement | string\n }\n >\n>\nexport type MessageParams = MessageOptions | MessageOptions['message']\nexport type MessageParamsNormalized = Omit<MessageProps, 'id'> & {\n /**\n * @description set the root element for the message, default to `document.body`\n */\n appendTo: HTMLElement\n}\nexport type MessageOptionsWithType = Omit<MessageOptions, 'type'>\nexport type MessageParamsWithType =\n | MessageOptionsWithType\n | MessageOptions['message']\n\nexport interface MessageHandler {\n /**\n * @description close the Message\n */\n close: () => void\n}\n\nexport type MessageFn = {\n (options?: MessageParams, appContext?: null | AppContext): MessageHandler\n closeAll(type?: messageType): void\n}\nexport type MessageTypedFn = (\n options?: MessageParamsWithType,\n appContext?: null | AppContext\n) => MessageHandler\n\nexport interface Message extends MessageFn {\n success: MessageTypedFn\n warning: MessageTypedFn\n info: MessageTypedFn\n error: MessageTypedFn\n}\n"],"names":["mutable","isClient","buildProps","iconPropType","definePropType"],"mappings":";;;;;;;;;;AAOY,MAAC,YAAY,GAAG,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE;AACxD,MAAC,eAAe,GAAGA,kBAAO,CAAC;AACvC,EAAE,WAAW,EAAE,EAAE;AACjB,EAAE,MAAM,EAAE,KAAK;AACf,EAAE,wBAAwB,EAAE,KAAK;AACjC,EAAE,QAAQ,EAAE,GAAG;AACf,EAAE,IAAI,EAAE,KAAK,CAAC;AACd,EAAE,EAAE,EAAE,EAAE;AACR,EAAE,OAAO,EAAE,EAAE;AACb,EAAE,OAAO,EAAE,KAAK,CAAC;AACjB,EAAE,SAAS,EAAE,KAAK;AAClB,EAAE,IAAI,E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