@element-plus/nightly 0.0.20220805 → 0.0.20220808

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.
Files changed (264) hide show
  1. package/dist/index.full.js +346 -353
  2. package/dist/index.full.min.js +15 -15
  3. package/dist/index.full.min.js.map +1 -1
  4. package/dist/index.full.min.mjs +15 -15
  5. package/dist/index.full.min.mjs.map +1 -1
  6. package/dist/index.full.mjs +346 -353
  7. package/dist/locale/af.js +1 -1
  8. package/dist/locale/af.min.js +1 -1
  9. package/dist/locale/af.min.mjs +1 -1
  10. package/dist/locale/af.mjs +1 -1
  11. package/dist/locale/ar.js +1 -1
  12. package/dist/locale/ar.min.js +1 -1
  13. package/dist/locale/ar.min.mjs +1 -1
  14. package/dist/locale/ar.mjs +1 -1
  15. package/dist/locale/az.js +1 -1
  16. package/dist/locale/az.min.js +1 -1
  17. package/dist/locale/az.min.mjs +1 -1
  18. package/dist/locale/az.mjs +1 -1
  19. package/dist/locale/bg.js +1 -1
  20. package/dist/locale/bg.min.js +1 -1
  21. package/dist/locale/bg.min.mjs +1 -1
  22. package/dist/locale/bg.mjs +1 -1
  23. package/dist/locale/bn.js +1 -1
  24. package/dist/locale/bn.min.js +1 -1
  25. package/dist/locale/bn.min.mjs +1 -1
  26. package/dist/locale/bn.mjs +1 -1
  27. package/dist/locale/ca.js +1 -1
  28. package/dist/locale/ca.min.js +1 -1
  29. package/dist/locale/ca.min.mjs +1 -1
  30. package/dist/locale/ca.mjs +1 -1
  31. package/dist/locale/cs.js +1 -1
  32. package/dist/locale/cs.min.js +1 -1
  33. package/dist/locale/cs.min.mjs +1 -1
  34. package/dist/locale/cs.mjs +1 -1
  35. package/dist/locale/da.js +1 -1
  36. package/dist/locale/da.min.js +1 -1
  37. package/dist/locale/da.min.mjs +1 -1
  38. package/dist/locale/da.mjs +1 -1
  39. package/dist/locale/de.js +1 -1
  40. package/dist/locale/de.min.js +1 -1
  41. package/dist/locale/de.min.mjs +1 -1
  42. package/dist/locale/de.mjs +1 -1
  43. package/dist/locale/el.js +1 -1
  44. package/dist/locale/el.min.js +1 -1
  45. package/dist/locale/el.min.mjs +1 -1
  46. package/dist/locale/el.mjs +1 -1
  47. package/dist/locale/en.js +1 -1
  48. package/dist/locale/en.min.js +1 -1
  49. package/dist/locale/en.min.mjs +1 -1
  50. package/dist/locale/en.mjs +1 -1
  51. package/dist/locale/eo.js +1 -1
  52. package/dist/locale/eo.min.js +1 -1
  53. package/dist/locale/eo.min.mjs +1 -1
  54. package/dist/locale/eo.mjs +1 -1
  55. package/dist/locale/es.js +1 -1
  56. package/dist/locale/es.min.js +1 -1
  57. package/dist/locale/es.min.mjs +1 -1
  58. package/dist/locale/es.mjs +1 -1
  59. package/dist/locale/et.js +1 -1
  60. package/dist/locale/et.min.js +1 -1
  61. package/dist/locale/et.min.mjs +1 -1
  62. package/dist/locale/et.mjs +1 -1
  63. package/dist/locale/eu.js +1 -1
  64. package/dist/locale/eu.min.js +1 -1
  65. package/dist/locale/eu.min.mjs +1 -1
  66. package/dist/locale/eu.mjs +1 -1
  67. package/dist/locale/fa.js +1 -1
  68. package/dist/locale/fa.min.js +1 -1
  69. package/dist/locale/fa.min.mjs +1 -1
  70. package/dist/locale/fa.mjs +1 -1
  71. package/dist/locale/fi.js +1 -1
  72. package/dist/locale/fi.min.js +1 -1
  73. package/dist/locale/fi.min.mjs +1 -1
  74. package/dist/locale/fi.mjs +1 -1
  75. package/dist/locale/fr.js +1 -1
  76. package/dist/locale/fr.min.js +1 -1
  77. package/dist/locale/fr.min.mjs +1 -1
  78. package/dist/locale/fr.mjs +1 -1
  79. package/dist/locale/he.js +1 -1
  80. package/dist/locale/he.min.js +1 -1
  81. package/dist/locale/he.min.mjs +1 -1
  82. package/dist/locale/he.mjs +1 -1
  83. package/dist/locale/hr.js +1 -1
  84. package/dist/locale/hr.min.js +1 -1
  85. package/dist/locale/hr.min.mjs +1 -1
  86. package/dist/locale/hr.mjs +1 -1
  87. package/dist/locale/hu.js +1 -1
  88. package/dist/locale/hu.min.js +1 -1
  89. package/dist/locale/hu.min.mjs +1 -1
  90. package/dist/locale/hu.mjs +1 -1
  91. package/dist/locale/hy-am.js +1 -1
  92. package/dist/locale/hy-am.min.js +1 -1
  93. package/dist/locale/hy-am.min.mjs +1 -1
  94. package/dist/locale/hy-am.mjs +1 -1
  95. package/dist/locale/id.js +1 -1
  96. package/dist/locale/id.min.js +1 -1
  97. package/dist/locale/id.min.mjs +1 -1
  98. package/dist/locale/id.mjs +1 -1
  99. package/dist/locale/it.js +1 -1
  100. package/dist/locale/it.min.js +1 -1
  101. package/dist/locale/it.min.mjs +1 -1
  102. package/dist/locale/it.mjs +1 -1
  103. package/dist/locale/ja.js +1 -1
  104. package/dist/locale/ja.min.js +1 -1
  105. package/dist/locale/ja.min.mjs +1 -1
  106. package/dist/locale/ja.mjs +1 -1
  107. package/dist/locale/kk.js +1 -1
  108. package/dist/locale/kk.min.js +1 -1
  109. package/dist/locale/kk.min.mjs +1 -1
  110. package/dist/locale/kk.mjs +1 -1
  111. package/dist/locale/km.js +1 -1
  112. package/dist/locale/km.min.js +1 -1
  113. package/dist/locale/km.min.mjs +1 -1
  114. package/dist/locale/km.mjs +1 -1
  115. package/dist/locale/ko.js +1 -1
  116. package/dist/locale/ko.min.js +1 -1
  117. package/dist/locale/ko.min.mjs +1 -1
  118. package/dist/locale/ko.mjs +1 -1
  119. package/dist/locale/ku.js +1 -1
  120. package/dist/locale/ku.min.js +1 -1
  121. package/dist/locale/ku.min.mjs +1 -1
  122. package/dist/locale/ku.mjs +1 -1
  123. package/dist/locale/ky.js +1 -1
  124. package/dist/locale/ky.min.js +1 -1
  125. package/dist/locale/ky.min.mjs +1 -1
  126. package/dist/locale/ky.mjs +1 -1
  127. package/dist/locale/lt.js +1 -1
  128. package/dist/locale/lt.min.js +1 -1
  129. package/dist/locale/lt.min.mjs +1 -1
  130. package/dist/locale/lt.mjs +1 -1
  131. package/dist/locale/lv.js +1 -1
  132. package/dist/locale/lv.min.js +1 -1
  133. package/dist/locale/lv.min.mjs +1 -1
  134. package/dist/locale/lv.mjs +1 -1
  135. package/dist/locale/mg.js +1 -1
  136. package/dist/locale/mg.min.js +1 -1
  137. package/dist/locale/mg.min.mjs +1 -1
  138. package/dist/locale/mg.mjs +1 -1
  139. package/dist/locale/mn.js +1 -1
  140. package/dist/locale/mn.min.js +1 -1
  141. package/dist/locale/mn.min.mjs +1 -1
  142. package/dist/locale/mn.mjs +1 -1
  143. package/dist/locale/nb-no.js +1 -1
  144. package/dist/locale/nb-no.min.js +1 -1
  145. package/dist/locale/nb-no.min.mjs +1 -1
  146. package/dist/locale/nb-no.mjs +1 -1
  147. package/dist/locale/nl.js +1 -1
  148. package/dist/locale/nl.min.js +1 -1
  149. package/dist/locale/nl.min.mjs +1 -1
  150. package/dist/locale/nl.mjs +1 -1
  151. package/dist/locale/pa.js +1 -1
  152. package/dist/locale/pa.min.js +1 -1
  153. package/dist/locale/pa.min.mjs +1 -1
  154. package/dist/locale/pa.mjs +1 -1
  155. package/dist/locale/pl.js +1 -1
  156. package/dist/locale/pl.min.js +1 -1
  157. package/dist/locale/pl.min.mjs +1 -1
  158. package/dist/locale/pl.mjs +1 -1
  159. package/dist/locale/pt-br.js +1 -1
  160. package/dist/locale/pt-br.min.js +1 -1
  161. package/dist/locale/pt-br.min.mjs +1 -1
  162. package/dist/locale/pt-br.mjs +1 -1
  163. package/dist/locale/pt.js +1 -1
  164. package/dist/locale/pt.min.js +1 -1
  165. package/dist/locale/pt.min.mjs +1 -1
  166. package/dist/locale/pt.mjs +1 -1
  167. package/dist/locale/ro.js +1 -1
  168. package/dist/locale/ro.min.js +1 -1
  169. package/dist/locale/ro.min.mjs +1 -1
  170. package/dist/locale/ro.mjs +1 -1
  171. package/dist/locale/ru.js +1 -1
  172. package/dist/locale/ru.min.js +1 -1
  173. package/dist/locale/ru.min.mjs +1 -1
  174. package/dist/locale/ru.mjs +1 -1
  175. package/dist/locale/sk.js +1 -1
  176. package/dist/locale/sk.min.js +1 -1
  177. package/dist/locale/sk.min.mjs +1 -1
  178. package/dist/locale/sk.mjs +1 -1
  179. package/dist/locale/sl.js +1 -1
  180. package/dist/locale/sl.min.js +1 -1
  181. package/dist/locale/sl.min.mjs +1 -1
  182. package/dist/locale/sl.mjs +1 -1
  183. package/dist/locale/sr.js +1 -1
  184. package/dist/locale/sr.min.js +1 -1
  185. package/dist/locale/sr.min.mjs +1 -1
  186. package/dist/locale/sr.mjs +1 -1
  187. package/dist/locale/sv.js +1 -1
  188. package/dist/locale/sv.min.js +1 -1
  189. package/dist/locale/sv.min.mjs +1 -1
  190. package/dist/locale/sv.mjs +1 -1
  191. package/dist/locale/ta.js +1 -1
  192. package/dist/locale/ta.min.js +1 -1
  193. package/dist/locale/ta.min.mjs +1 -1
  194. package/dist/locale/ta.mjs +1 -1
  195. package/dist/locale/th.js +1 -1
  196. package/dist/locale/th.min.js +1 -1
  197. package/dist/locale/th.min.mjs +1 -1
  198. package/dist/locale/th.mjs +1 -1
  199. package/dist/locale/tk.js +1 -1
  200. package/dist/locale/tk.min.js +1 -1
  201. package/dist/locale/tk.min.mjs +1 -1
  202. package/dist/locale/tk.mjs +1 -1
  203. package/dist/locale/tr.js +1 -1
  204. package/dist/locale/tr.min.js +1 -1
  205. package/dist/locale/tr.min.mjs +1 -1
  206. package/dist/locale/tr.mjs +1 -1
  207. package/dist/locale/ug-cn.js +1 -1
  208. package/dist/locale/ug-cn.min.js +1 -1
  209. package/dist/locale/ug-cn.min.mjs +1 -1
  210. package/dist/locale/ug-cn.mjs +1 -1
  211. package/dist/locale/uk.js +1 -1
  212. package/dist/locale/uk.min.js +1 -1
  213. package/dist/locale/uk.min.mjs +1 -1
  214. package/dist/locale/uk.mjs +1 -1
  215. package/dist/locale/uz-uz.js +1 -1
  216. package/dist/locale/uz-uz.min.js +1 -1
  217. package/dist/locale/uz-uz.min.mjs +1 -1
  218. package/dist/locale/uz-uz.mjs +1 -1
  219. package/dist/locale/vi.js +1 -1
  220. package/dist/locale/vi.min.js +1 -1
  221. package/dist/locale/vi.min.mjs +1 -1
  222. package/dist/locale/vi.mjs +1 -1
  223. package/dist/locale/zh-cn.js +1 -1
  224. package/dist/locale/zh-cn.min.js +1 -1
  225. package/dist/locale/zh-cn.min.mjs +1 -1
  226. package/dist/locale/zh-cn.mjs +1 -1
  227. package/dist/locale/zh-tw.js +1 -1
  228. package/dist/locale/zh-tw.min.js +1 -1
  229. package/dist/locale/zh-tw.min.mjs +1 -1
  230. package/dist/locale/zh-tw.mjs +1 -1
  231. package/es/components/notification/src/notification.d.ts +2 -0
  232. package/es/components/notification/src/notification.mjs.map +1 -1
  233. package/es/components/notification/src/notification.vue.d.ts +111 -5
  234. package/es/components/notification/src/notification2.mjs +84 -91
  235. package/es/components/notification/src/notification2.mjs.map +1 -1
  236. package/es/utils/dom/index.d.ts +0 -1
  237. package/es/utils/dom/index.mjs +0 -1
  238. package/es/utils/dom/index.mjs.map +1 -1
  239. package/es/utils/index.mjs +0 -1
  240. package/es/utils/index.mjs.map +1 -1
  241. package/es/version.d.ts +1 -1
  242. package/es/version.mjs +1 -1
  243. package/es/version.mjs.map +1 -1
  244. package/lib/components/notification/src/notification.d.ts +2 -0
  245. package/lib/components/notification/src/notification.js.map +1 -1
  246. package/lib/components/notification/src/notification.vue.d.ts +111 -5
  247. package/lib/components/notification/src/notification2.js +85 -92
  248. package/lib/components/notification/src/notification2.js.map +1 -1
  249. package/lib/utils/dom/index.d.ts +0 -1
  250. package/lib/utils/dom/index.js +0 -3
  251. package/lib/utils/dom/index.js.map +1 -1
  252. package/lib/utils/index.js +0 -3
  253. package/lib/utils/index.js.map +1 -1
  254. package/lib/version.d.ts +1 -1
  255. package/lib/version.js +1 -1
  256. package/lib/version.js.map +1 -1
  257. package/package.json +5 -3
  258. package/web-types.json +1 -1
  259. package/es/utils/dom/resize-event.d.ts +0 -9
  260. package/es/utils/dom/resize-event.mjs +0 -34
  261. package/es/utils/dom/resize-event.mjs.map +0 -1
  262. package/lib/utils/dom/resize-event.d.ts +0 -9
  263. package/lib/utils/dom/resize-event.js +0 -39
  264. package/lib/utils/dom/resize-event.js.map +0 -1
@@ -36,6 +36,45 @@ declare const _default: import("vue").DefineComponent<{
36
36
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "error", unknown, "", boolean>;
37
37
  readonly zIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
38
38
  }, {
39
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
40
+ readonly customClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
41
+ readonly dangerouslyUseHTMLString: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
42
+ readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 4500, boolean>;
43
+ readonly icon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Comment) & {}) | (() => string | Comment) | ((new (...args: any[]) => (string | Comment) & {}) | (() => string | Comment))[], unknown, unknown, "", boolean>;
44
+ readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
45
+ readonly message: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }>) & {}) | (() => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>) | ((new (...args: any[]) => (string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>) & {}) | (() => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>))[], unknown, unknown, "", boolean>;
54
+ readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
55
+ readonly onClick: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => () => void) | (() => () => void) | {
56
+ (): () => void;
57
+ new (): any;
58
+ readonly prototype: any;
59
+ } | ((new (...args: any[]) => () => void) | (() => () => void) | {
60
+ (): () => void;
61
+ new (): any;
62
+ readonly prototype: any;
63
+ })[], unknown, unknown, () => undefined, boolean>;
64
+ readonly onClose: {
65
+ readonly type: import("vue").PropType<() => void>;
66
+ readonly required: true;
67
+ readonly validator: ((val: unknown) => boolean) | undefined;
68
+ __epPropKey: true;
69
+ };
70
+ readonly position: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top-right" | "top-left" | "bottom-right" | "bottom-left", unknown, "top-right", boolean>;
71
+ readonly showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
72
+ readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
73
+ readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "error", unknown, "", boolean>;
74
+ readonly zIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
75
+ }>> & {
76
+ onDestroy?: (() => any) | undefined;
77
+ }>>;
39
78
  ns: {
40
79
  namespace: import("vue").ComputedRef<string>;
41
80
  b: (blockSuffix?: string) => string;
@@ -54,14 +93,81 @@ declare const _default: import("vue").DefineComponent<{
54
93
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
55
94
  cssVarBlockName: (name: string) => string;
56
95
  };
57
- horizontalClass: import("vue").ComputedRef<"left" | "right">;
96
+ Close: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
97
+ visible: import("vue").Ref<boolean>;
98
+ timer: undefined;
58
99
  typeClass: import("vue").ComputedRef<string>;
59
- iconComponent: import("vue").ComputedRef<any>;
100
+ iconComponent: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
101
+ horizontalClass: import("vue").ComputedRef<"left" | "right">;
102
+ verticalProperty: import("vue").ComputedRef<"top" | "bottom">;
60
103
  positionStyle: import("vue").ComputedRef<CSSProperties>;
61
- visible: import("vue").Ref<boolean>;
62
- close: () => void;
63
- clearTimer: () => void;
64
104
  startTimer: () => void;
105
+ clearTimer: () => void;
106
+ close: () => void;
107
+ onKeydown: ({ code }: KeyboardEvent) => void;
108
+ ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
109
+ readonly size: {
110
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
111
+ readonly required: false;
112
+ readonly validator: ((val: unknown) => boolean) | undefined;
113
+ __epPropKey: true;
114
+ };
115
+ readonly color: {
116
+ readonly type: import("vue").PropType<string>;
117
+ readonly required: false;
118
+ readonly validator: ((val: unknown) => boolean) | undefined;
119
+ __epPropKey: true;
120
+ };
121
+ }, {
122
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
123
+ readonly size: {
124
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
125
+ readonly required: false;
126
+ readonly validator: ((val: unknown) => boolean) | undefined;
127
+ __epPropKey: true;
128
+ };
129
+ readonly color: {
130
+ readonly type: import("vue").PropType<string>;
131
+ readonly required: false;
132
+ readonly validator: ((val: unknown) => boolean) | undefined;
133
+ __epPropKey: true;
134
+ };
135
+ }>> & {
136
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
137
+ }>>;
138
+ ns: {
139
+ namespace: import("vue").ComputedRef<string>;
140
+ b: (blockSuffix?: string) => string;
141
+ e: (element?: string | undefined) => string;
142
+ m: (modifier?: string | undefined) => string;
143
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
144
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
145
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
146
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
147
+ is: {
148
+ (name: string, state: boolean | undefined): string;
149
+ (name: string): string;
150
+ };
151
+ cssVar: (object: Record<string, string>) => Record<string, string>;
152
+ cssVarName: (name: string) => string;
153
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
154
+ cssVarBlockName: (name: string) => string;
155
+ };
156
+ style: import("vue").ComputedRef<CSSProperties>;
157
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
158
+ readonly size: {
159
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
160
+ readonly required: false;
161
+ readonly validator: ((val: unknown) => boolean) | undefined;
162
+ __epPropKey: true;
163
+ };
164
+ readonly color: {
165
+ readonly type: import("vue").PropType<string>;
166
+ readonly required: false;
167
+ readonly validator: ((val: unknown) => boolean) | undefined;
168
+ __epPropKey: true;
169
+ };
170
+ }>>, {}>> & Record<string, any>;
65
171
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
172
  destroy: () => boolean;
67
173
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, onMounted, resolveComponent, openBlock, createBlock, Transition, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createElementBlock, Fragment, vShow, withModifiers, createVNode } from 'vue';
1
+ import { defineComponent, ref, computed, onMounted, openBlock, createBlock, Transition, unref, withCtx, withDirectives, createElementVNode, normalizeClass, normalizeStyle, resolveDynamicComponent, createCommentVNode, toDisplayString, renderSlot, createElementBlock, Fragment, vShow, withModifiers, createVNode } from 'vue';
2
2
  import { useTimeoutFn, useEventListener } from '@vueuse/core';
3
3
  import '../../../utils/index.mjs';
4
4
  import '../../../constants/index.mjs';
@@ -6,20 +6,25 @@ import { ElIcon } from '../../icon/index.mjs';
6
6
  import '../../../hooks/index.mjs';
7
7
  import { notificationProps, notificationEmits } from './notification.mjs';
8
8
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
9
- import { TypeComponents, TypeComponentsMap } from '../../../utils/vue/icon.mjs';
10
9
  import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
10
+ import { CloseComponents, TypeComponentsMap } from '../../../utils/vue/icon.mjs';
11
11
  import { EVENT_CODE } from '../../../constants/aria.mjs';
12
12
 
13
- const _sfc_main = defineComponent({
14
- name: "ElNotification",
15
- components: {
16
- ElIcon,
17
- ...TypeComponents
18
- },
13
+ const _hoisted_1 = ["id"];
14
+ const _hoisted_2 = ["textContent"];
15
+ const _hoisted_3 = { key: 0 };
16
+ const _hoisted_4 = ["innerHTML"];
17
+ const __default__ = {
18
+ name: "ElNotification"
19
+ };
20
+ const _sfc_main = /* @__PURE__ */ defineComponent({
21
+ ...__default__,
19
22
  props: notificationProps,
20
23
  emits: notificationEmits,
21
- setup(props) {
24
+ setup(__props, { expose }) {
25
+ const props = __props;
22
26
  const ns = useNamespace("notification");
27
+ const { Close } = CloseComponents;
23
28
  const visible = ref(false);
24
29
  let timer = void 0;
25
30
  const typeClass = computed(() => {
@@ -27,7 +32,9 @@ const _sfc_main = defineComponent({
27
32
  return type && TypeComponentsMap[props.type] ? ns.m(type) : "";
28
33
  });
29
34
  const iconComponent = computed(() => {
30
- return TypeComponentsMap[props.type] || props.icon || "";
35
+ if (!props.type)
36
+ return "";
37
+ return TypeComponentsMap[props.type] || props.icon;
31
38
  });
32
39
  const horizontalClass = computed(() => props.position.endsWith("right") ? "right" : "left");
33
40
  const verticalProperty = computed(() => props.position.startsWith("top") ? "top" : "bottom");
@@ -68,91 +75,77 @@ const _sfc_main = defineComponent({
68
75
  visible.value = true;
69
76
  });
70
77
  useEventListener(document, "keydown", onKeydown);
71
- return {
72
- ns,
73
- horizontalClass,
74
- typeClass,
75
- iconComponent,
76
- positionStyle,
78
+ expose({
77
79
  visible,
78
- close,
79
- clearTimer,
80
- startTimer
80
+ close
81
+ });
82
+ return (_ctx, _cache) => {
83
+ return openBlock(), createBlock(Transition, {
84
+ name: unref(ns).b("fade"),
85
+ onBeforeLeave: _ctx.onClose,
86
+ onAfterLeave: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("destroy")),
87
+ persisted: ""
88
+ }, {
89
+ default: withCtx(() => [
90
+ withDirectives(createElementVNode("div", {
91
+ id: _ctx.id,
92
+ class: normalizeClass([unref(ns).b(), _ctx.customClass, unref(horizontalClass)]),
93
+ style: normalizeStyle(unref(positionStyle)),
94
+ role: "alert",
95
+ onMouseenter: clearTimer,
96
+ onMouseleave: startTimer,
97
+ onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onClick && _ctx.onClick(...args))
98
+ }, [
99
+ unref(iconComponent) ? (openBlock(), createBlock(unref(ElIcon), {
100
+ key: 0,
101
+ class: normalizeClass([unref(ns).e("icon"), unref(typeClass)])
102
+ }, {
103
+ default: withCtx(() => [
104
+ (openBlock(), createBlock(resolveDynamicComponent(unref(iconComponent))))
105
+ ]),
106
+ _: 1
107
+ }, 8, ["class"])) : createCommentVNode("v-if", true),
108
+ createElementVNode("div", {
109
+ class: normalizeClass(unref(ns).e("group"))
110
+ }, [
111
+ createElementVNode("h2", {
112
+ class: normalizeClass(unref(ns).e("title")),
113
+ textContent: toDisplayString(_ctx.title)
114
+ }, null, 10, _hoisted_2),
115
+ withDirectives(createElementVNode("div", {
116
+ class: normalizeClass(unref(ns).e("content")),
117
+ style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
118
+ }, [
119
+ renderSlot(_ctx.$slots, "default", {}, () => [
120
+ !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
121
+ createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),
122
+ createElementVNode("p", { innerHTML: _ctx.message }, null, 8, _hoisted_4)
123
+ ], 2112))
124
+ ])
125
+ ], 6), [
126
+ [vShow, _ctx.message]
127
+ ]),
128
+ _ctx.showClose ? (openBlock(), createBlock(unref(ElIcon), {
129
+ key: 0,
130
+ class: normalizeClass(unref(ns).e("closeBtn")),
131
+ onClick: withModifiers(close, ["stop"])
132
+ }, {
133
+ default: withCtx(() => [
134
+ createVNode(unref(Close))
135
+ ]),
136
+ _: 1
137
+ }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
138
+ ], 2)
139
+ ], 46, _hoisted_1), [
140
+ [vShow, visible.value]
141
+ ])
142
+ ]),
143
+ _: 3
144
+ }, 8, ["name", "onBeforeLeave"]);
81
145
  };
82
146
  }
83
147
  });
84
- const _hoisted_1 = ["id"];
85
- const _hoisted_2 = ["textContent"];
86
- const _hoisted_3 = { key: 0 };
87
- const _hoisted_4 = ["innerHTML"];
88
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
89
- const _component_el_icon = resolveComponent("el-icon");
90
- const _component_close = resolveComponent("close");
91
- return openBlock(), createBlock(Transition, {
92
- name: _ctx.ns.b("fade"),
93
- onBeforeLeave: _ctx.onClose,
94
- onAfterLeave: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("destroy")),
95
- persisted: ""
96
- }, {
97
- default: withCtx(() => [
98
- withDirectives(createElementVNode("div", {
99
- id: _ctx.id,
100
- class: normalizeClass([_ctx.ns.b(), _ctx.customClass, _ctx.horizontalClass]),
101
- style: normalizeStyle(_ctx.positionStyle),
102
- role: "alert",
103
- onMouseenter: _cache[0] || (_cache[0] = (...args) => _ctx.clearTimer && _ctx.clearTimer(...args)),
104
- onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.startTimer && _ctx.startTimer(...args)),
105
- onClick: _cache[2] || (_cache[2] = (...args) => _ctx.onClick && _ctx.onClick(...args))
106
- }, [
107
- _ctx.iconComponent ? (openBlock(), createBlock(_component_el_icon, {
108
- key: 0,
109
- class: normalizeClass([_ctx.ns.e("icon"), _ctx.typeClass])
110
- }, {
111
- default: withCtx(() => [
112
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.iconComponent)))
113
- ]),
114
- _: 1
115
- }, 8, ["class"])) : createCommentVNode("v-if", true),
116
- createElementVNode("div", {
117
- class: normalizeClass(_ctx.ns.e("group"))
118
- }, [
119
- createElementVNode("h2", {
120
- class: normalizeClass(_ctx.ns.e("title")),
121
- textContent: toDisplayString(_ctx.title)
122
- }, null, 10, _hoisted_2),
123
- withDirectives(createElementVNode("div", {
124
- class: normalizeClass(_ctx.ns.e("content")),
125
- style: normalizeStyle(!!_ctx.title ? void 0 : { margin: 0 })
126
- }, [
127
- renderSlot(_ctx.$slots, "default", {}, () => [
128
- !_ctx.dangerouslyUseHTMLString ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(_ctx.message), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
129
- createCommentVNode(" Caution here, message could've been compromized, nerver use user's input as message "),
130
- createCommentVNode(" eslint-disable-next-line "),
131
- createElementVNode("p", { innerHTML: _ctx.message }, null, 8, _hoisted_4)
132
- ], 2112))
133
- ])
134
- ], 6), [
135
- [vShow, _ctx.message]
136
- ]),
137
- _ctx.showClose ? (openBlock(), createBlock(_component_el_icon, {
138
- key: 0,
139
- class: normalizeClass(_ctx.ns.e("closeBtn")),
140
- onClick: withModifiers(_ctx.close, ["stop"])
141
- }, {
142
- default: withCtx(() => [
143
- createVNode(_component_close)
144
- ]),
145
- _: 1
146
- }, 8, ["class", "onClick"])) : createCommentVNode("v-if", true)
147
- ], 2)
148
- ], 46, _hoisted_1), [
149
- [vShow, _ctx.visible]
150
- ])
151
- ]),
152
- _: 3
153
- }, 8, ["name", "onBeforeLeave"]);
154
- }
155
- var NotificationConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);
148
+ var NotificationConstructor = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);
156
149
 
157
150
  export { NotificationConstructor as default };
158
151
  //# sourceMappingURL=notification2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification2.mjs","sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"clearTimer\"\n @mouseleave=\"startTimer\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromized, nerver use user's input as message -->\n <!-- eslint-disable-next-line -->\n <p v-else v-html=\"message\"></p>\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <close />\n </el-icon>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\">\n// @ts-nocheck\nimport { computed, defineComponent, onMounted, ref } from 'vue'\nimport { useEventListener, useTimeoutFn } from '@vueuse/core'\nimport { TypeComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { notificationEmits, notificationProps } from './notification'\n\nimport type { CSSProperties } from 'vue'\n\nexport default defineComponent({\n name: 'ElNotification',\n\n components: {\n ElIcon,\n ...TypeComponents,\n },\n\n props: notificationProps,\n emits: notificationEmits,\n\n setup(props) {\n const ns = useNamespace('notification')\n const visible = ref(false)\n let timer: (() => void) | undefined = undefined\n\n const typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n })\n\n const iconComponent = computed(() => {\n return TypeComponentsMap[props.type] || props.icon || ''\n })\n\n const horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n )\n\n const verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n )\n\n const positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: props.zIndex,\n }\n })\n\n function startTimer() {\n if (props.duration > 0) {\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, props.duration))\n }\n }\n\n function clearTimer() {\n timer?.()\n }\n\n function close() {\n visible.value = false\n }\n\n function onKeydown({ code }: KeyboardEvent) {\n if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {\n clearTimer() // press delete/backspace clear timer\n } else if (code === EVENT_CODE.esc) {\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n } else {\n startTimer() // resume timer\n }\n }\n\n // lifecycle\n onMounted(() => {\n startTimer()\n visible.value = true\n })\n\n useEventListener(document, 'keydown', onKeydown)\n\n return {\n ns,\n horizontalClass,\n typeClass,\n iconComponent,\n positionStyle,\n visible,\n\n close,\n clearTimer,\n startTimer,\n }\n },\n})\n</script>\n"],"names":["_createBlock","_Transition","_withDirectives","_createElementVNode","_normalizeClass","_normalizeStyle","_openBlock","_resolveDynamicComponent","_toDisplayString","_renderSlot","_createElementBlock","_Fragment","_createCommentVNode","_withModifiers","_createVNode"],"mappings":";;;;;;;;;;;;AAoDA,MAAK,YAAa,eAAa,CAAA;AAAA,EAC7B,IAAM,EAAA,gBAAA;AAAA,EAEN,UAAY,EAAA;AAAA,IACV,MAAA;AAAA,IACA,GAAG,cAAA;AAAA,GACL;AAAA,EAEA,KAAO,EAAA,iBAAA;AAAA,EACP,KAAO,EAAA,iBAAA;AAAA,EAEP,MAAM,KAAO,EAAA;AACX,IAAM,MAAA,EAAA,GAAK,aAAa,cAAc,CAAA,CAAA;AACtC,IAAM,MAAA,OAAA,GAAU,IAAI,KAAK,CAAA,CAAA;AACzB,IAAA,IAAI,KAAkC,GAAA,KAAA,CAAA,CAAA;AAEtC,IAAM,MAAA,SAAA,GAAY,SAAS,MAAM;AAC/B,MAAA,MAAM,OAAO,KAAM,CAAA,IAAA,CAAA;AACnB,MAAA,OAAO,QAAQ,iBAAkB,CAAA,KAAA,CAAM,QAAQ,EAAG,CAAA,CAAA,CAAE,IAAI,CAAI,GAAA,EAAA,CAAA;AAAA,KAC7D,CAAA,CAAA;AAED,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,OAAO,iBAAkB,CAAA,KAAA,CAAM,IAAS,CAAA,IAAA,KAAA,CAAM,IAAQ,IAAA,EAAA,CAAA;AAAA,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js","sources":["../../../../../../packages/components/notification/src/notification.vue"],"sourcesContent":["<template>\n <transition\n :name=\"ns.b('fade')\"\n @before-leave=\"onClose\"\n @after-leave=\"$emit('destroy')\"\n >\n <div\n v-show=\"visible\"\n :id=\"id\"\n :class=\"[ns.b(), customClass, horizontalClass]\"\n :style=\"positionStyle\"\n role=\"alert\"\n @mouseenter=\"clearTimer\"\n @mouseleave=\"startTimer\"\n @click=\"onClick\"\n >\n <el-icon v-if=\"iconComponent\" :class=\"[ns.e('icon'), typeClass]\">\n <component :is=\"iconComponent\" />\n </el-icon>\n <div :class=\"ns.e('group')\">\n <h2 :class=\"ns.e('title')\" v-text=\"title\" />\n <div\n v-show=\"message\"\n :class=\"ns.e('content')\"\n :style=\"!!title ? undefined : { margin: 0 }\"\n >\n <slot>\n <p v-if=\"!dangerouslyUseHTMLString\">{{ message }}</p>\n <!-- Caution here, message could've been compromised, never use user's input as message -->\n <p v-else v-html=\"message\" />\n </slot>\n </div>\n <el-icon v-if=\"showClose\" :class=\"ns.e('closeBtn')\" @click.stop=\"close\">\n <Close />\n </el-icon>\n </div>\n </div>\n </transition>\n</template>\n<script lang=\"ts\" setup>\nimport { computed, onMounted, ref } from 'vue'\nimport { useEventListener, useTimeoutFn } from '@vueuse/core'\nimport { CloseComponents, TypeComponentsMap } from '@element-plus/utils'\nimport { EVENT_CODE } from '@element-plus/constants'\nimport { ElIcon } from '@element-plus/components/icon'\nimport { useNamespace } from '@element-plus/hooks'\nimport { notificationEmits, notificationProps } from './notification'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElNotification',\n})\n\nconst props = defineProps(notificationProps)\ndefineEmits(notificationEmits)\n\nconst ns = useNamespace('notification')\nconst { Close } = CloseComponents\n\nconst visible = ref(false)\nlet timer: (() => void) | undefined = undefined\n\nconst typeClass = computed(() => {\n const type = props.type\n return type && TypeComponentsMap[props.type] ? ns.m(type) : ''\n})\n\nconst iconComponent = computed(() => {\n if (!props.type) return ''\n return TypeComponentsMap[props.type] || props.icon\n})\n\nconst horizontalClass = computed(() =>\n props.position.endsWith('right') ? 'right' : 'left'\n)\n\nconst verticalProperty = computed(() =>\n props.position.startsWith('top') ? 'top' : 'bottom'\n)\n\nconst positionStyle = computed<CSSProperties>(() => {\n return {\n [verticalProperty.value]: `${props.offset}px`,\n zIndex: props.zIndex,\n }\n})\n\nfunction startTimer() {\n if (props.duration > 0) {\n ;({ stop: timer } = useTimeoutFn(() => {\n if (visible.value) close()\n }, props.duration))\n }\n}\n\nfunction clearTimer() {\n timer?.()\n}\n\nfunction close() {\n visible.value = false\n}\n\nfunction onKeydown({ code }: KeyboardEvent) {\n if (code === EVENT_CODE.delete || code === EVENT_CODE.backspace) {\n clearTimer() // press delete/backspace clear timer\n } else if (code === EVENT_CODE.esc) {\n // press esc to close the notification\n if (visible.value) {\n close()\n }\n } else {\n startTimer() // resume timer\n }\n}\n\n// lifecycle\nonMounted(() => {\n startTimer()\n visible.value = true\n})\n\nuseEventListener(document, 'keydown', onKeydown)\n\ndefineExpose({\n visible,\n /** @description close notification */\n close,\n})\n</script>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAyDA,IAAA,MAAA,EAAA,GAAA,aAAA,cAAA,CAAA,CAAA;AACA,IAAA,MAAA,EAAA,KAAA,EAAA,GAAA,eAAA,CAAA;AAEA,IAAA,MAAA,OAAA,GAAA,IAAA,KAAA,CAAA,CAAA;AACA,IAAA,IAAA,KAAA,GAAA,KAAA,CAAA,CAAA;AAEA,IAAA,MAAA,SAAA,GAAA,SAAA,MAAA;AACA,MAAA,MAAA,OAAA,KAAA,CAAA,IAAA,CAAA;AACA,MAAA,OAAA,QAAA,iBAAA,CAAA,KAAA,CAAA,QAAA,EAAA,CAAA,CAAA,CAAA,IAAA,CAAA,GAAA,EAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,MAAA,aAAA,GAAA,SAAA,MAAA;AACA,MAAA,IAAA,CAAA,KAAA,CAAA,IAA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AA,UAAA,EAAA,CAAA;AAAA,OACA,MAAA,IAAA,IAAA,KAAA,UAAA,CAAA,GAAA,EAAA;AAEA,QAAA,IAAA,QAAA,KAAA,EAAA;AACA,UAAA,KAAA,EAAA,CAAA;AAAA,SACA;AAAA,OACA,MAAA;AACA,QAAA,UAAA,EAAA,CAAA;AAAA,OACA;AAAA,KACA;AAGA,IAAA,SAAA,CAAA,MAAA;AACA,MAAA,UAAA,EAAA,CAAA;AACA,MAAA,OAAA,CAAA,KAAA,GAAA,IAAA,CAAA;AAAA,KACA,CAAA,CAAA;AAEA,IAAA,gBAAA,CAAA,QAAA,EAAA,WAAA,SAAA,CAAA,CAAA;AAEA,IAAA,MAAA,CAAA;AAAA,MACA,OAAA;AAAA,MAEA,KAAA;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,5 @@
1
1
  export * from './aria';
2
2
  export * from './event';
3
3
  export * from './position';
4
- export * from './resize-event';
5
4
  export * from './scroll';
6
5
  export * from './style';
@@ -1,7 +1,6 @@
1
1
  export { attemptFocus, focusNode, getSibling, isFocusable, isLeaf, isVisible, obtainAllFocusableElements, triggerEvent } from './aria.mjs';
2
2
  export { composeEventHandlers, whenMouse } from './event.mjs';
3
3
  export { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer } from './position.mjs';
4
- export { addResizeListener, removeResizeListener } from './resize-event.mjs';
5
4
  export { getScrollBarWidth, getScrollContainer, isScroll, scrollIntoView } from './scroll.mjs';
6
5
  export { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle } from './style.mjs';
7
6
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -15,7 +15,6 @@ export { mutable } from './typescript.mjs';
15
15
  export { attemptFocus, focusNode, getSibling, isFocusable, isLeaf, isVisible, obtainAllFocusableElements, triggerEvent } from './dom/aria.mjs';
16
16
  export { composeEventHandlers, whenMouse } from './dom/event.mjs';
17
17
  export { getClientXY, getOffsetTop, getOffsetTopDistance, isInContainer } from './dom/position.mjs';
18
- export { addResizeListener, removeResizeListener } from './dom/resize-event.mjs';
19
18
  export { getScrollBarWidth, getScrollContainer, isScroll, scrollIntoView } from './dom/scroll.mjs';
20
19
  export { addClass, addUnit, classNameToArray, getStyle, hasClass, removeClass, removeStyle, setStyle } from './dom/style.mjs';
21
20
  export { changeGlobalNodesTarget, createGlobalNode, removeGlobalNode } from './vue/global-node.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "0.0.20220805";
1
+ export declare const version = "0.0.20220808";
package/es/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const version = "0.0.20220805";
1
+ const version = "0.0.20220808";
2
2
 
3
3
  export { version };
4
4
  //# sourceMappingURL=version.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20220805'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
1
+ {"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20220808'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
@@ -1,4 +1,5 @@
1
1
  import type { ExtractPropTypes, VNode } from 'vue';
2
+ import type Notification from './notification.vue';
2
3
  export declare const notificationTypes: readonly ["success", "info", "warning", "error"];
3
4
  export declare const notificationProps: {
4
5
  readonly customClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -42,6 +43,7 @@ export declare const notificationEmits: {
42
43
  destroy: () => boolean;
43
44
  };
44
45
  export declare type NotificationEmits = typeof notificationEmits;
46
+ export declare type NotificationInstance = InstanceType<typeof Notification>;
45
47
  export declare type NotificationOptions = Omit<NotificationProps, 'id'> & {
46
48
  appendTo?: HTMLElement | string;
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, VNode } from 'vue'\n\nexport const notificationTypes = [\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const notificationProps = buildProps({\n customClass: {\n type: String,\n default: '',\n },\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: false,\n },\n duration: {\n type: Number,\n default: 4500,\n },\n icon: {\n type: definePropType<string | Comment>([String, Object]),\n default: '',\n },\n id: {\n type: String,\n default: '',\n },\n message: {\n type: definePropType<string | VNode>([String, Object]),\n default: '',\n },\n offset: {\n type: Number,\n default: 0,\n },\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n zIndex: {\n type: Number,\n default: 0,\n },\n} as const)\nexport type NotificationProps = ExtractPropTypes<typeof notificationProps>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationOptions = Omit<NotificationProps, 'id'> & {\n appendTo?: HTMLElement | string\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport type NotifyFn = ((\n options?: NotificationParams\n) => NotificationHandle) & { closeAll: () => void }\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":["buildProps","definePropType"],"mappings":";;;;;;;AACY,MAAC,iBAAiB,GAAG;AACjC,EAAE,SAAS;AACX,EAAE,MAAM;AACR,EAAE,SAAS;AACX,EAAE,OAAO;AACT,EAAE;AACU,MAAC,iBAAiB,GAAGA,kBAAU,CAAC;AAC5C,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,wBAAwB,EAAE;AAC5B,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAEC,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,sBAAc,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC1C,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,MAAM,KAAK,CAAC;AACzB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAEA,sBAAc,CAAC,QAAQ,CAAC;AAClC,IAAI,QAAQ,EAAE,IAAI;AAClB,GAAG;AACH,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC;AACpE,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,CAAC;AACtC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,OAAO,EAAE,MAAM,IAAI;AACrB;;;;;;"}
1
+ {"version":3,"file":"notification.js","sources":["../../../../../../packages/components/notification/src/notification.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, VNode } from 'vue'\nimport type Notification from './notification.vue'\n\nexport const notificationTypes = [\n 'success',\n 'info',\n 'warning',\n 'error',\n] as const\n\nexport const notificationProps = buildProps({\n customClass: {\n type: String,\n default: '',\n },\n dangerouslyUseHTMLString: {\n type: Boolean,\n default: false,\n },\n duration: {\n type: Number,\n default: 4500,\n },\n icon: {\n type: definePropType<string | Comment>([String, Object]),\n default: '',\n },\n id: {\n type: String,\n default: '',\n },\n message: {\n type: definePropType<string | VNode>([String, Object]),\n default: '',\n },\n offset: {\n type: Number,\n default: 0,\n },\n onClick: {\n type: definePropType<() => void>(Function),\n default: () => undefined,\n },\n onClose: {\n type: definePropType<() => void>(Function),\n required: true,\n },\n position: {\n type: String,\n values: ['top-right', 'top-left', 'bottom-right', 'bottom-left'],\n default: 'top-right',\n },\n showClose: {\n type: Boolean,\n default: true,\n },\n title: {\n type: String,\n default: '',\n },\n type: {\n type: String,\n values: [...notificationTypes, ''],\n default: '',\n },\n zIndex: {\n type: Number,\n default: 0,\n },\n} as const)\nexport type NotificationProps = ExtractPropTypes<typeof notificationProps>\n\nexport const notificationEmits = {\n destroy: () => true,\n}\nexport type NotificationEmits = typeof notificationEmits\n\nexport type NotificationInstance = InstanceType<typeof Notification>\n\nexport type NotificationOptions = Omit<NotificationProps, 'id'> & {\n appendTo?: HTMLElement | string\n}\nexport type NotificationOptionsTyped = Omit<NotificationOptions, 'type'>\n\nexport interface NotificationHandle {\n close: () => void\n}\n\nexport type NotificationParams = Partial<NotificationOptions> | string | VNode\nexport type NotificationParamsTyped =\n | Partial<NotificationOptionsTyped>\n | string\n | VNode\n\nexport type NotifyFn = ((\n options?: NotificationParams\n) => NotificationHandle) & { closeAll: () => void }\n\nexport type NotifyTypedFn = (\n options?: NotificationParamsTyped\n) => NotificationHandle\n\nexport interface Notify extends NotifyFn {\n success: NotifyTypedFn\n warning: NotifyTypedFn\n error: NotifyTypedFn\n info: NotifyTypedFn\n}\n\nexport interface NotificationQueueItem {\n vm: VNode\n}\n\nexport type NotificationQueue = NotificationQueueItem[]\n"],"names":["buildProps","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M,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,CAAC;AACpE,IAAI,OAAO,EAAE,WAAW;AACxB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,GAAG,iBAAiB,EAAE,EAAE,CAAC;AACtC,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,MAAM,EAAE;AACV,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,CAAC;AACd,GAAG;AACH,CAAC,EAAE;AACS,MAAC,iBAAiB,GAAG;AACjC,EAAE,OAAO,EAAE,MAAM,IAAI;AACrB;;;;;;"}
@@ -36,6 +36,45 @@ declare const _default: import("vue").DefineComponent<{
36
36
  readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "error", unknown, "", boolean>;
37
37
  readonly zIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
38
38
  }, {
39
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
40
+ readonly customClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
41
+ readonly dangerouslyUseHTMLString: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
42
+ readonly duration: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 4500, boolean>;
43
+ readonly icon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Comment) & {}) | (() => string | Comment) | ((new (...args: any[]) => (string | Comment) & {}) | (() => string | Comment))[], unknown, unknown, "", boolean>;
44
+ readonly id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
45
+ readonly message: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }>) & {}) | (() => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }>) | ((new (...args: any[]) => (string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
+ [key: string]: any;
51
+ }>) & {}) | (() => string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
+ [key: string]: any;
53
+ }>))[], unknown, unknown, "", boolean>;
54
+ readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
55
+ readonly onClick: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => () => void) | (() => () => void) | {
56
+ (): () => void;
57
+ new (): any;
58
+ readonly prototype: any;
59
+ } | ((new (...args: any[]) => () => void) | (() => () => void) | {
60
+ (): () => void;
61
+ new (): any;
62
+ readonly prototype: any;
63
+ })[], unknown, unknown, () => undefined, boolean>;
64
+ readonly onClose: {
65
+ readonly type: import("vue").PropType<() => void>;
66
+ readonly required: true;
67
+ readonly validator: ((val: unknown) => boolean) | undefined;
68
+ __epPropKey: true;
69
+ };
70
+ readonly position: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "top-right" | "top-left" | "bottom-right" | "bottom-left", unknown, "top-right", boolean>;
71
+ readonly showClose: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
72
+ readonly title: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
73
+ readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "success" | "warning" | "info" | "error", unknown, "", boolean>;
74
+ readonly zIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
75
+ }>> & {
76
+ onDestroy?: (() => any) | undefined;
77
+ }>>;
39
78
  ns: {
40
79
  namespace: import("vue").ComputedRef<string>;
41
80
  b: (blockSuffix?: string) => string;
@@ -54,14 +93,81 @@ declare const _default: import("vue").DefineComponent<{
54
93
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
55
94
  cssVarBlockName: (name: string) => string;
56
95
  };
57
- horizontalClass: import("vue").ComputedRef<"left" | "right">;
96
+ Close: import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
97
+ visible: import("vue").Ref<boolean>;
98
+ timer: undefined;
58
99
  typeClass: import("vue").ComputedRef<string>;
59
- iconComponent: import("vue").ComputedRef<any>;
100
+ iconComponent: import("vue").ComputedRef<"" | import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
101
+ horizontalClass: import("vue").ComputedRef<"left" | "right">;
102
+ verticalProperty: import("vue").ComputedRef<"top" | "bottom">;
60
103
  positionStyle: import("vue").ComputedRef<CSSProperties>;
61
- visible: import("vue").Ref<boolean>;
62
- close: () => void;
63
- clearTimer: () => void;
64
104
  startTimer: () => void;
105
+ clearTimer: () => void;
106
+ close: () => void;
107
+ onKeydown: ({ code }: KeyboardEvent) => void;
108
+ ElIcon: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
109
+ readonly size: {
110
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
111
+ readonly required: false;
112
+ readonly validator: ((val: unknown) => boolean) | undefined;
113
+ __epPropKey: true;
114
+ };
115
+ readonly color: {
116
+ readonly type: import("vue").PropType<string>;
117
+ readonly required: false;
118
+ readonly validator: ((val: unknown) => boolean) | undefined;
119
+ __epPropKey: true;
120
+ };
121
+ }, {
122
+ props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
123
+ readonly size: {
124
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
125
+ readonly required: false;
126
+ readonly validator: ((val: unknown) => boolean) | undefined;
127
+ __epPropKey: true;
128
+ };
129
+ readonly color: {
130
+ readonly type: import("vue").PropType<string>;
131
+ readonly required: false;
132
+ readonly validator: ((val: unknown) => boolean) | undefined;
133
+ __epPropKey: true;
134
+ };
135
+ }>> & {
136
+ [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
137
+ }>>;
138
+ ns: {
139
+ namespace: import("vue").ComputedRef<string>;
140
+ b: (blockSuffix?: string) => string;
141
+ e: (element?: string | undefined) => string;
142
+ m: (modifier?: string | undefined) => string;
143
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
144
+ em: (element?: string | undefined, modifier?: string | undefined) => string;
145
+ bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
146
+ bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
147
+ is: {
148
+ (name: string, state: boolean | undefined): string;
149
+ (name: string): string;
150
+ };
151
+ cssVar: (object: Record<string, string>) => Record<string, string>;
152
+ cssVarName: (name: string) => string;
153
+ cssVarBlock: (object: Record<string, string>) => Record<string, string>;
154
+ cssVarBlockName: (name: string) => string;
155
+ };
156
+ style: import("vue").ComputedRef<CSSProperties>;
157
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
158
+ readonly size: {
159
+ readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | number) & {}) | (() => string | number) | ((new (...args: any[]) => (string | number) & {}) | (() => string | number))[], unknown, unknown>>;
160
+ readonly required: false;
161
+ readonly validator: ((val: unknown) => boolean) | undefined;
162
+ __epPropKey: true;
163
+ };
164
+ readonly color: {
165
+ readonly type: import("vue").PropType<string>;
166
+ readonly required: false;
167
+ readonly validator: ((val: unknown) => boolean) | undefined;
168
+ __epPropKey: true;
169
+ };
170
+ }>>, {}>> & Record<string, any>;
65
171
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
66
172
  destroy: () => boolean;
67
173
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{