@element-plus/nightly 0.0.20220926 → 0.0.20220928
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 +5 -3
- package/dist/index.full.min.js +3 -3
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +3 -3
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +5 -3
- 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.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/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 +24 -23
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.js.map +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.min.mjs.map +1 -1
- package/dist/locale/he.mjs +24 -23
- 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/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/dialog/index.mjs +2 -2
- package/es/components/dialog/src/dialog.mjs +168 -70
- package/es/components/dialog/src/dialog.mjs.map +1 -1
- package/es/components/dialog/src/dialog2.mjs +70 -168
- package/es/components/dialog/src/dialog2.mjs.map +1 -1
- package/es/components/drawer/src/drawer.mjs +1 -1
- package/es/components/form/src/form-item2.mjs +1 -0
- package/es/components/form/src/form-item2.mjs.map +1 -1
- package/es/components/form/src/form-label-wrap.mjs +2 -1
- package/es/components/form/src/form-label-wrap.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/locale/lang/he.d.ts +1 -0
- package/es/locale/lang/he.mjs +23 -22
- package/es/locale/lang/he.mjs.map +1 -1
- package/es/tokens/form.d.ts +1 -0
- package/es/tokens/form.mjs.map +1 -1
- package/es/utils/vue/install.d.ts +2 -1
- package/es/utils/vue/install.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/dialog/index.js +2 -2
- package/lib/components/dialog/src/dialog.js +168 -71
- package/lib/components/dialog/src/dialog.js.map +1 -1
- package/lib/components/dialog/src/dialog2.js +71 -168
- package/lib/components/dialog/src/dialog2.js.map +1 -1
- package/lib/components/drawer/src/drawer.js +1 -1
- package/lib/components/form/src/form-item2.js +1 -0
- package/lib/components/form/src/form-item2.js.map +1 -1
- package/lib/components/form/src/form-label-wrap.js +2 -1
- package/lib/components/form/src/form-label-wrap.js.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/lang/he.d.ts +1 -0
- package/lib/locale/lang/he.js +23 -22
- package/lib/locale/lang/he.js.map +1 -1
- package/lib/tokens/form.d.ts +1 -0
- package/lib/tokens/form.js.map +1 -1
- package/lib/utils/vue/install.d.ts +2 -1
- package/lib/utils/vue/install.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/web-types.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"he.mjs","sources":["../../../../../packages/locale/lang/he.ts"],"sourcesContent":["export default {\n name: 'he',\n el: {\n colorpicker: {\n confirm: 'אישור',\n clear: 'נקה',\n },\n datepicker: {\n now: 'כעת',\n today: 'היום',\n cancel: 'בטל',\n clear: 'נקה',\n confirm: 'אישור',\n selectDate: 'בחר תאריך',\n selectTime: 'בחר זמן',\n startDate: 'תאריך התחלה',\n startTime: 'זמן התחלה',\n endDate: 'תאריך סיום',\n endTime: 'זמן סיום',\n prevYear: '
|
|
1
|
+
{"version":3,"file":"he.mjs","sources":["../../../../../packages/locale/lang/he.ts"],"sourcesContent":["export default {\n name: 'he',\n el: {\n colorpicker: {\n confirm: 'אישור',\n clear: 'נקה',\n },\n datepicker: {\n now: 'כעת',\n today: 'היום',\n cancel: 'בטל',\n clear: 'נקה',\n confirm: 'אישור',\n selectDate: 'בחר תאריך',\n selectTime: 'בחר זמן',\n startDate: 'תאריך התחלה',\n startTime: 'זמן התחלה',\n endDate: 'תאריך סיום',\n endTime: 'זמן סיום',\n prevYear: 'שנה קודמת',\n nextYear: 'שנה הבאה',\n prevMonth: 'חודש קודם',\n nextMonth: 'חודש הבא',\n year: 'שנה',\n month1: 'ינואר',\n month2: 'פברואר',\n month3: 'מרץ',\n month4: 'אפריל',\n month5: 'מאי',\n month6: 'יוני',\n month7: 'יולי',\n month8: 'אוגוסט',\n month9: 'ספטמבר',\n month10: 'אוקטובר',\n month11: 'נובמבר',\n month12: 'דצמבר',\n week: 'שבוע',\n weeks: {\n sun: 'א׳',\n mon: 'ב׳',\n tue: 'ג׳',\n wed: 'ד׳',\n thu: 'ה׳',\n fri: 'ו׳',\n sat: 'שבת',\n },\n months: {\n jan: 'ינואר',\n feb: 'פברואר',\n mar: 'מרץ',\n apr: 'אפריל',\n may: 'מאי',\n jun: 'יוני',\n jul: 'יולי',\n aug: 'אוגוסט',\n sep: 'ספטמבר',\n oct: 'אוקטובר',\n nov: 'נובמבר',\n dec: 'דצמבר',\n },\n },\n select: {\n loading: 'טוען',\n noMatch: 'לא נמצאה התאמה',\n noData: 'אין נתונים',\n placeholder: 'שומר מקום',\n },\n cascader: {\n noMatch: 'לא נמצאה התאמה',\n loading: 'טוען',\n placeholder: 'שומר מקום',\n noData: 'אין נתונים',\n },\n pagination: {\n goto: 'עבור ל',\n pagesize: '/עמוד',\n total: 'כולל {total}',\n pageClassifier: '',\n },\n messagebox: {\n title: 'הודעה',\n confirm: 'אישור',\n cancel: 'בטל',\n error: 'קלט לא תקין',\n },\n upload: {\n deleteTip: 'לחץ כדי למחוק',\n delete: 'מחק',\n preview: 'תצוגה מקדימה',\n continue: 'המשך',\n },\n table: {\n emptyText: 'אין נתונים',\n confirmFilter: 'אישור',\n resetFilter: 'נקה',\n clearFilter: 'הכל',\n sumText: 'סך הכל',\n },\n tree: {\n emptyText: 'אין נתונים',\n },\n transfer: {\n noMatch: 'לא נמצאה התאמה',\n noData: 'אין נתונים',\n titles: ['רשימה 1', 'רשימה 2'],\n filterPlaceholder: 'סנן לפי...',\n noCheckedFormat: 'פריטים {total}',\n hasCheckedFormat: ' נבחרו {checked}/{total}',\n },\n image: {\n error: 'שגיאה',\n },\n pageHeader: {\n title: 'חזרה',\n },\n popconfirm: {\n confirmButtonText: 'כן',\n cancelButtonText: 'לא',\n },\n },\n}\n"],"names":[],"mappings":"AAAA,SAAe;AACf,EAAE,IAAI,EAAE,IAAI;AACZ,EAAE,EAAE,EAAE;AACN,IAAI,WAAW,EAAE;AACjB,MAAM,OAAO,EAAE,gCAAgC;AAC/C,MAAM,KAAK,EAAE,oBAAoB;AACjC,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,GAAG,EAAE,oBAAoB;AAC/B,MAAM,KAAK,EAAE,0BAA0B;AACvC,MAAM,MAAM,EAAE,oBAAoB;AAClC,MAAM,KAAK,EAAE,oBAAoB;AACjC,MAAM,OAAO,EAAE,gCAAgC;AAC/C,MAAM,UAAU,EAAE,mDAAmD;AACrE,MAAM,UAAU,EAAE,uCAAuC;AACzD,MAAM,SAAS,EAAE,+DAA+D;AAChF,MAAM,SAAS,EAAE,mDAAmD;AACpE,MAAM,OAAO,EAAE,yDAAyD;AAC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AACd,MAAM,OAAO,EAAE,4EAA4E;AAC3F,MAAM,MAAM,EAAE,yDAAyD;AACvE,MAAM,MAAM,EAAE,CAAC,kCAAkC,EAAE,kCAAkC,CAAC;AACtF,MAAM,iBAAiB,EAAE,0CAA0C;AACnE,MAAM,eAAe,EAAE,8CAA8C;AACrE,MAAM,gBAAgB,EAAE,mDAAmD;AAC3E,KAAK;AACL,IAAI,KAAK,EAAE;AACX,MAAM,KAAK,EAAE,gCAAgC;AAC7C,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,KAAK,EAAE,0BAA0B;AACvC,KAAK;AACL,IAAI,UAAU,EAAE;AAChB,MAAM,iBAAiB,EAAE,cAAc;AACvC,MAAM,gBAAgB,EAAE,cAAc;AACtC,KAAK;AACL,GAAG;AACH,CAAC;;;;"}
|
package/es/tokens/form.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface FormItemContext extends FormItemProps {
|
|
|
28
28
|
isGroup: boolean;
|
|
29
29
|
labelId: string;
|
|
30
30
|
inputIds: string[];
|
|
31
|
+
hasLabel: boolean;
|
|
31
32
|
addInputId: (id: string) => void;
|
|
32
33
|
removeInputId: (id: string) => void;
|
|
33
34
|
validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult;
|
package/es/tokens/form.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey, SetupContext, UnwrapRef } from 'vue'\nimport type {\n RuleItem,\n ValidateError,\n ValidateFieldsError,\n} from 'async-validator'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type {\n FormEmits,\n FormItemProp,\n FormItemProps,\n FormItemValidateState,\n FormLabelWidthContext,\n FormProps,\n} from '@element-plus/components/form'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport interface FormItemRule extends RuleItem {\n trigger?: Arrayable<string>\n}\nexport type FormRules = Partial<Record<string, Arrayable<FormItemRule>>>\n\nexport type FormValidationResult = Promise<boolean>\nexport type FormValidateCallback = (\n isValid: boolean,\n invalidFields?: ValidateFieldsError\n) => void\nexport interface FormValidateFailure {\n errors: ValidateError[] | null\n fields: ValidateFieldsError\n}\n\nexport type FormContext = FormProps &\n UnwrapRef<FormLabelWidthContext> & {\n emit: SetupContext<FormEmits>['emit']\n\n // expose\n addField: (field: FormItemContext) => void\n removeField: (field: FormItemContext) => void\n resetFields: (props?: Arrayable<FormItemProp>) => void\n clearValidate: (props?: Arrayable<FormItemProp>) => void\n validateField: (\n props?: Arrayable<FormItemProp>,\n callback?: FormValidateCallback\n ) => FormValidationResult\n }\n\nexport interface FormItemContext extends FormItemProps {\n $el: HTMLDivElement | undefined\n size: ComponentSize\n validateState: FormItemValidateState\n isGroup: boolean\n labelId: string\n inputIds: string[]\n addInputId: (id: string) => void\n removeInputId: (id: string) => void\n validate: (\n trigger: string,\n callback?: FormValidateCallback\n ) => FormValidationResult\n resetField(): void\n clearValidate(): void\n}\n\nexport const formContextKey: InjectionKey<FormContext> =\n Symbol('formContextKey')\nexport const formItemContextKey: InjectionKey<FormItemContext> =\n Symbol('formItemContextKey')\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,MAAM,CAAC,gBAAgB,EAAE;AAC3C,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
|
|
1
|
+
{"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey, SetupContext, UnwrapRef } from 'vue'\nimport type {\n RuleItem,\n ValidateError,\n ValidateFieldsError,\n} from 'async-validator'\nimport type { ComponentSize } from '@element-plus/constants'\nimport type {\n FormEmits,\n FormItemProp,\n FormItemProps,\n FormItemValidateState,\n FormLabelWidthContext,\n FormProps,\n} from '@element-plus/components/form'\nimport type { Arrayable } from '@element-plus/utils'\n\nexport interface FormItemRule extends RuleItem {\n trigger?: Arrayable<string>\n}\nexport type FormRules = Partial<Record<string, Arrayable<FormItemRule>>>\n\nexport type FormValidationResult = Promise<boolean>\nexport type FormValidateCallback = (\n isValid: boolean,\n invalidFields?: ValidateFieldsError\n) => void\nexport interface FormValidateFailure {\n errors: ValidateError[] | null\n fields: ValidateFieldsError\n}\n\nexport type FormContext = FormProps &\n UnwrapRef<FormLabelWidthContext> & {\n emit: SetupContext<FormEmits>['emit']\n\n // expose\n addField: (field: FormItemContext) => void\n removeField: (field: FormItemContext) => void\n resetFields: (props?: Arrayable<FormItemProp>) => void\n clearValidate: (props?: Arrayable<FormItemProp>) => void\n validateField: (\n props?: Arrayable<FormItemProp>,\n callback?: FormValidateCallback\n ) => FormValidationResult\n }\n\nexport interface FormItemContext extends FormItemProps {\n $el: HTMLDivElement | undefined\n size: ComponentSize\n validateState: FormItemValidateState\n isGroup: boolean\n labelId: string\n inputIds: string[]\n hasLabel: boolean\n addInputId: (id: string) => void\n removeInputId: (id: string) => void\n validate: (\n trigger: string,\n callback?: FormValidateCallback\n ) => FormValidationResult\n resetField(): void\n clearValidate(): void\n}\n\nexport const formContextKey: InjectionKey<FormContext> =\n Symbol('formContextKey')\nexport const formItemContextKey: InjectionKey<FormItemContext> =\n Symbol('formItemContextKey')\n"],"names":[],"mappings":"AAAY,MAAC,cAAc,GAAG,MAAM,CAAC,gBAAgB,EAAE;AAC3C,MAAC,kBAAkB,GAAG,MAAM,CAAC,oBAAoB;;;;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import type { Directive } from 'vue';
|
|
1
2
|
import type { SFCInstallWithContext, SFCWithInstall } from './typescript';
|
|
2
3
|
export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E | undefined) => SFCWithInstall<T> & E;
|
|
3
4
|
export declare const withInstallFunction: <T>(fn: T, name: string) => SFCInstallWithContext<T>;
|
|
4
|
-
export declare const withInstallDirective: <T
|
|
5
|
+
export declare const withInstallDirective: <T extends Directive<any, any>>(directive: T, name: string) => SFCWithInstall<T>;
|
|
5
6
|
export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.mjs","sources":["../../../../../packages/utils/vue/install.ts"],"sourcesContent":["import { NOOP } from '@vue/shared'\n\nimport type { App } from 'vue'\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript'\n\nexport const withInstall = <T, E extends Record<string, any>>(\n main: T,\n extra?: E\n) => {\n ;(main as SFCWithInstall<T>).install = (app): void => {\n for (const comp of [main, ...Object.values(extra ?? {})]) {\n app.component(comp.name, comp)\n }\n }\n\n if (extra) {\n for (const [key, comp] of Object.entries(extra)) {\n ;(main as any)[key] = comp\n }\n }\n return main as SFCWithInstall<T> & E\n}\n\nexport const withInstallFunction = <T>(fn: T, name: string) => {\n ;(fn as SFCWithInstall<T>).install = (app: App) => {\n ;(fn as SFCInstallWithContext<T>)._context = app._context\n app.config.globalProperties[name] = fn\n }\n\n return fn as SFCInstallWithContext<T>\n}\n\nexport const withInstallDirective = <T>(directive: T
|
|
1
|
+
{"version":3,"file":"install.mjs","sources":["../../../../../packages/utils/vue/install.ts"],"sourcesContent":["import { NOOP } from '@vue/shared'\n\nimport type { App, Directive } from 'vue'\nimport type { SFCInstallWithContext, SFCWithInstall } from './typescript'\n\nexport const withInstall = <T, E extends Record<string, any>>(\n main: T,\n extra?: E\n) => {\n ;(main as SFCWithInstall<T>).install = (app): void => {\n for (const comp of [main, ...Object.values(extra ?? {})]) {\n app.component(comp.name, comp)\n }\n }\n\n if (extra) {\n for (const [key, comp] of Object.entries(extra)) {\n ;(main as any)[key] = comp\n }\n }\n return main as SFCWithInstall<T> & E\n}\n\nexport const withInstallFunction = <T>(fn: T, name: string) => {\n ;(fn as SFCWithInstall<T>).install = (app: App) => {\n ;(fn as SFCInstallWithContext<T>)._context = app._context\n app.config.globalProperties[name] = fn\n }\n\n return fn as SFCInstallWithContext<T>\n}\n\nexport const withInstallDirective = <T extends Directive>(\n directive: T,\n name: string\n) => {\n ;(directive as SFCWithInstall<T>).install = (app: App): void => {\n app.directive(name, directive)\n }\n\n return directive as SFCWithInstall<T>\n}\n\nexport const withNoopInstall = <T>(component: T) => {\n ;(component as SFCWithInstall<T>).install = NOOP\n\n return component as SFCWithInstall<T>\n}\n"],"names":[],"mappings":";;AACY,MAAC,WAAW,GAAG,CAAC,IAAI,EAAE,KAAK,KAAK;AAC5C,EAAE,CAAC;AACH,EAAE,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC1B,IAAI,KAAK,MAAM,IAAI,IAAI,CAAC,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,IAAI,GAAG,KAAK,GAAG,EAAE,CAAC,CAAC,EAAE;AAC7E,MAAM,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACrC,KAAK;AACL,GAAG,CAAC;AACJ,EAAE,IAAI,KAAK,EAAE;AACb,IAAI,KAAK,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;AACrD,MAAM,CAAC;AACP,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACvB,KAAK;AACL,GAAG;AACH,EAAE,OAAO,IAAI,CAAC;AACd,EAAE;AACU,MAAC,mBAAmB,GAAG,CAAC,EAAE,EAAE,IAAI,KAAK;AACjD,EAAE,CAAC;AACH,EAAE,EAAE,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AACxB,IAAI,CAAC;AACL,IAAI,EAAE,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC/B,IAAI,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;AAC3C,GAAG,CAAC;AACJ,EAAE,OAAO,EAAE,CAAC;AACZ,EAAE;AACU,MAAC,oBAAoB,GAAG,CAAC,SAAS,EAAE,IAAI,KAAK;AACzD,EAAE,CAAC;AACH,EAAE,SAAS,CAAC,OAAO,GAAG,CAAC,GAAG,KAAK;AAC/B,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACnC,GAAG,CAAC;AACJ,EAAE,OAAO,SAAS,CAAC;AACnB,EAAE;AACU,MAAC,eAAe,GAAG,CAAC,SAAS,KAAK;AAC9C,EAAE,CAAC;AACH,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC;AAC3B,EAAE,OAAO,SAAS,CAAC;AACnB;;;;"}
|
package/es/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.20220928";
|
package/es/version.mjs
CHANGED
package/es/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../packages/element-plus/version.ts"],"sourcesContent":["export const version = '0.0.20220928'\n"],"names":[],"mappings":"AAAY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
|
-
var dialog$1 = require('./src/
|
|
6
|
+
var dialog$1 = require('./src/dialog.js');
|
|
7
7
|
var useDialog = require('./src/use-dialog.js');
|
|
8
|
-
var dialog = require('./src/
|
|
8
|
+
var dialog = require('./src/dialog2.js');
|
|
9
9
|
var install = require('../../utils/vue/install.js');
|
|
10
10
|
|
|
11
11
|
const ElDialog = install.withInstall(dialog$1["default"]);
|
|
@@ -2,79 +2,176 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
6
|
-
require('
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var index$3 = require('../../overlay/index.js');
|
|
7
|
+
require('../../../hooks/index.js');
|
|
8
|
+
require('../../../tokens/index.js');
|
|
9
|
+
require('../../focus-trap/index.js');
|
|
10
|
+
var dialogContent = require('./dialog-content2.js');
|
|
11
|
+
var dialog = require('./dialog2.js');
|
|
12
|
+
var useDialog = require('./use-dialog.js');
|
|
13
|
+
var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js');
|
|
14
|
+
var index = require('../../../hooks/use-deprecated/index.js');
|
|
15
|
+
var index$1 = require('../../../hooks/use-namespace/index.js');
|
|
16
|
+
var dialog$1 = require('../../../tokens/dialog.js');
|
|
17
|
+
var index$2 = require('../../../hooks/use-same-target/index.js');
|
|
18
|
+
var focusTrap = require('../../focus-trap/src/focus-trap.js');
|
|
11
19
|
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
20
|
+
const _hoisted_1 = ["aria-label", "aria-labelledby", "aria-describedby"];
|
|
21
|
+
const __default__ = vue.defineComponent({
|
|
22
|
+
name: "ElDialog",
|
|
23
|
+
inheritAttrs: false
|
|
24
|
+
});
|
|
25
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
26
|
+
...__default__,
|
|
27
|
+
props: dialog.dialogProps,
|
|
28
|
+
emits: dialog.dialogEmits,
|
|
29
|
+
setup(__props, { expose }) {
|
|
30
|
+
const props = __props;
|
|
31
|
+
const slots = vue.useSlots();
|
|
32
|
+
index.useDeprecated({
|
|
33
|
+
scope: "el-dialog",
|
|
34
|
+
from: "the title slot",
|
|
35
|
+
replacement: "the header slot",
|
|
36
|
+
version: "3.0.0",
|
|
37
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
38
|
+
}, vue.computed(() => !!slots.title));
|
|
39
|
+
index.useDeprecated({
|
|
40
|
+
scope: "el-dialog",
|
|
41
|
+
from: "custom-class",
|
|
42
|
+
replacement: "class",
|
|
43
|
+
version: "2.3.0",
|
|
44
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#attributes",
|
|
45
|
+
type: "Attribute"
|
|
46
|
+
}, vue.computed(() => !!props.customClass));
|
|
47
|
+
const ns = index$1.useNamespace("dialog");
|
|
48
|
+
const dialogRef = vue.ref();
|
|
49
|
+
const headerRef = vue.ref();
|
|
50
|
+
const dialogContentRef = vue.ref();
|
|
51
|
+
const {
|
|
52
|
+
visible,
|
|
53
|
+
titleId,
|
|
54
|
+
bodyId,
|
|
55
|
+
style,
|
|
56
|
+
overlayDialogStyle,
|
|
57
|
+
rendered,
|
|
58
|
+
zIndex,
|
|
59
|
+
afterEnter,
|
|
60
|
+
afterLeave,
|
|
61
|
+
beforeLeave,
|
|
62
|
+
handleClose,
|
|
63
|
+
onModalClick,
|
|
64
|
+
onOpenAutoFocus,
|
|
65
|
+
onCloseAutoFocus,
|
|
66
|
+
onCloseRequested
|
|
67
|
+
} = useDialog.useDialog(props, dialogRef);
|
|
68
|
+
vue.provide(dialog$1.dialogInjectionKey, {
|
|
69
|
+
dialogRef,
|
|
70
|
+
headerRef,
|
|
71
|
+
bodyId,
|
|
72
|
+
ns,
|
|
73
|
+
rendered,
|
|
74
|
+
style
|
|
75
|
+
});
|
|
76
|
+
const overlayEvent = index$2.useSameTarget(onModalClick);
|
|
77
|
+
const draggable = vue.computed(() => props.draggable && !props.fullscreen);
|
|
78
|
+
expose({
|
|
79
|
+
visible,
|
|
80
|
+
dialogContentRef
|
|
81
|
+
});
|
|
82
|
+
return (_ctx, _cache) => {
|
|
83
|
+
return vue.openBlock(), vue.createBlock(vue.Teleport, {
|
|
84
|
+
to: "body",
|
|
85
|
+
disabled: !_ctx.appendToBody
|
|
86
|
+
}, [
|
|
87
|
+
vue.createVNode(vue.Transition, {
|
|
88
|
+
name: "dialog-fade",
|
|
89
|
+
onAfterEnter: vue.unref(afterEnter),
|
|
90
|
+
onAfterLeave: vue.unref(afterLeave),
|
|
91
|
+
onBeforeLeave: vue.unref(beforeLeave),
|
|
92
|
+
persisted: ""
|
|
93
|
+
}, {
|
|
94
|
+
default: vue.withCtx(() => [
|
|
95
|
+
vue.withDirectives(vue.createVNode(vue.unref(index$3.ElOverlay), {
|
|
96
|
+
"custom-mask-event": "",
|
|
97
|
+
mask: _ctx.modal,
|
|
98
|
+
"overlay-class": _ctx.modalClass,
|
|
99
|
+
"z-index": vue.unref(zIndex)
|
|
100
|
+
}, {
|
|
101
|
+
default: vue.withCtx(() => [
|
|
102
|
+
vue.createElementVNode("div", {
|
|
103
|
+
role: "dialog",
|
|
104
|
+
"aria-modal": "true",
|
|
105
|
+
"aria-label": _ctx.title || void 0,
|
|
106
|
+
"aria-labelledby": !_ctx.title ? vue.unref(titleId) : void 0,
|
|
107
|
+
"aria-describedby": vue.unref(bodyId),
|
|
108
|
+
class: vue.normalizeClass(`${vue.unref(ns).namespace.value}-overlay-dialog`),
|
|
109
|
+
style: vue.normalizeStyle(vue.unref(overlayDialogStyle)),
|
|
110
|
+
onClick: _cache[0] || (_cache[0] = (...args) => vue.unref(overlayEvent).onClick && vue.unref(overlayEvent).onClick(...args)),
|
|
111
|
+
onMousedown: _cache[1] || (_cache[1] = (...args) => vue.unref(overlayEvent).onMousedown && vue.unref(overlayEvent).onMousedown(...args)),
|
|
112
|
+
onMouseup: _cache[2] || (_cache[2] = (...args) => vue.unref(overlayEvent).onMouseup && vue.unref(overlayEvent).onMouseup(...args))
|
|
113
|
+
}, [
|
|
114
|
+
vue.createVNode(vue.unref(focusTrap["default"]), {
|
|
115
|
+
loop: "",
|
|
116
|
+
trapped: vue.unref(visible),
|
|
117
|
+
"focus-start-el": "container",
|
|
118
|
+
onFocusAfterTrapped: vue.unref(onOpenAutoFocus),
|
|
119
|
+
onFocusAfterReleased: vue.unref(onCloseAutoFocus),
|
|
120
|
+
onReleaseRequested: vue.unref(onCloseRequested)
|
|
121
|
+
}, {
|
|
122
|
+
default: vue.withCtx(() => [
|
|
123
|
+
vue.unref(rendered) ? (vue.openBlock(), vue.createBlock(dialogContent["default"], vue.mergeProps({
|
|
124
|
+
key: 0,
|
|
125
|
+
ref_key: "dialogContentRef",
|
|
126
|
+
ref: dialogContentRef
|
|
127
|
+
}, _ctx.$attrs, {
|
|
128
|
+
"custom-class": _ctx.customClass,
|
|
129
|
+
center: _ctx.center,
|
|
130
|
+
"align-center": _ctx.alignCenter,
|
|
131
|
+
"close-icon": _ctx.closeIcon,
|
|
132
|
+
draggable: vue.unref(draggable),
|
|
133
|
+
fullscreen: _ctx.fullscreen,
|
|
134
|
+
"show-close": _ctx.showClose,
|
|
135
|
+
title: _ctx.title,
|
|
136
|
+
onClose: vue.unref(handleClose)
|
|
137
|
+
}), vue.createSlots({
|
|
138
|
+
header: vue.withCtx(() => [
|
|
139
|
+
!_ctx.$slots.title ? vue.renderSlot(_ctx.$slots, "header", {
|
|
140
|
+
key: 0,
|
|
141
|
+
close: vue.unref(handleClose),
|
|
142
|
+
titleId: vue.unref(titleId),
|
|
143
|
+
titleClass: vue.unref(ns).e("title")
|
|
144
|
+
}) : vue.renderSlot(_ctx.$slots, "title", { key: 1 })
|
|
145
|
+
]),
|
|
146
|
+
default: vue.withCtx(() => [
|
|
147
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
}, [
|
|
151
|
+
_ctx.$slots.footer ? {
|
|
152
|
+
name: "footer",
|
|
153
|
+
fn: vue.withCtx(() => [
|
|
154
|
+
vue.renderSlot(_ctx.$slots, "footer")
|
|
155
|
+
])
|
|
156
|
+
} : void 0
|
|
157
|
+
]), 1040, ["custom-class", "center", "align-center", "close-icon", "draggable", "fullscreen", "show-close", "title", "onClose"])) : vue.createCommentVNode("v-if", true)
|
|
158
|
+
]),
|
|
159
|
+
_: 3
|
|
160
|
+
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onReleaseRequested"])
|
|
161
|
+
], 46, _hoisted_1)
|
|
162
|
+
]),
|
|
163
|
+
_: 3
|
|
164
|
+
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
165
|
+
[vue.vShow, vue.unref(visible)]
|
|
166
|
+
])
|
|
167
|
+
]),
|
|
168
|
+
_: 3
|
|
169
|
+
}, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
170
|
+
], 8, ["disabled"]);
|
|
171
|
+
};
|
|
66
172
|
}
|
|
67
173
|
});
|
|
68
|
-
|
|
69
|
-
open: () => true,
|
|
70
|
-
opened: () => true,
|
|
71
|
-
close: () => true,
|
|
72
|
-
closed: () => true,
|
|
73
|
-
[event.UPDATE_MODEL_EVENT]: (value) => core.isBoolean(value),
|
|
74
|
-
openAutoFocus: () => true,
|
|
75
|
-
closeAutoFocus: () => true
|
|
76
|
-
};
|
|
174
|
+
var Dialog = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);
|
|
77
175
|
|
|
78
|
-
exports
|
|
79
|
-
exports.dialogProps = dialogProps;
|
|
176
|
+
exports["default"] = Dialog;
|
|
80
177
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../../../../../../packages/components/dialog/src/dialog.
|
|
1
|
+
{"version":3,"file":"dialog.js","sources":["../../../../../../packages/components/dialog/src/dialog.vue"],"sourcesContent":["<template>\n <teleport to=\"body\" :disabled=\"!appendToBody\">\n <transition\n name=\"dialog-fade\"\n @after-enter=\"afterEnter\"\n @after-leave=\"afterLeave\"\n @before-leave=\"beforeLeave\"\n >\n <el-overlay\n v-show=\"visible\"\n custom-mask-event\n :mask=\"modal\"\n :overlay-class=\"modalClass\"\n :z-index=\"zIndex\"\n >\n <div\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-label=\"title || undefined\"\n :aria-labelledby=\"!title ? titleId : undefined\"\n :aria-describedby=\"bodyId\"\n :class=\"`${ns.namespace.value}-overlay-dialog`\"\n :style=\"overlayDialogStyle\"\n @click=\"overlayEvent.onClick\"\n @mousedown=\"overlayEvent.onMousedown\"\n @mouseup=\"overlayEvent.onMouseup\"\n >\n <el-focus-trap\n loop\n :trapped=\"visible\"\n focus-start-el=\"container\"\n @focus-after-trapped=\"onOpenAutoFocus\"\n @focus-after-released=\"onCloseAutoFocus\"\n @release-requested=\"onCloseRequested\"\n >\n <el-dialog-content\n v-if=\"rendered\"\n ref=\"dialogContentRef\"\n v-bind=\"$attrs\"\n :custom-class=\"customClass\"\n :center=\"center\"\n :align-center=\"alignCenter\"\n :close-icon=\"closeIcon\"\n :draggable=\"draggable\"\n :fullscreen=\"fullscreen\"\n :show-close=\"showClose\"\n :title=\"title\"\n @close=\"handleClose\"\n >\n <template #header>\n <slot\n v-if=\"!$slots.title\"\n name=\"header\"\n :close=\"handleClose\"\n :title-id=\"titleId\"\n :title-class=\"ns.e('title')\"\n />\n <slot v-else name=\"title\" />\n </template>\n <slot />\n <template v-if=\"$slots.footer\" #footer>\n <slot name=\"footer\" />\n </template>\n </el-dialog-content>\n </el-focus-trap>\n </div>\n </el-overlay>\n </transition>\n </teleport>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, provide, ref, useSlots } from 'vue'\nimport { ElOverlay } from '@element-plus/components/overlay'\nimport { useDeprecated, useNamespace, useSameTarget } from '@element-plus/hooks'\nimport { dialogInjectionKey } from '@element-plus/tokens'\nimport ElFocusTrap from '@element-plus/components/focus-trap'\nimport ElDialogContent from './dialog-content.vue'\nimport { dialogEmits, dialogProps } from './dialog'\nimport { useDialog } from './use-dialog'\n\ndefineOptions({\n name: 'ElDialog',\n inheritAttrs: false,\n})\n\nconst props = defineProps(dialogProps)\ndefineEmits(dialogEmits)\nconst slots = useSlots()\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'the title slot',\n replacement: 'the header slot',\n version: '3.0.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#slots',\n },\n computed(() => !!slots.title)\n)\n\nuseDeprecated(\n {\n scope: 'el-dialog',\n from: 'custom-class',\n replacement: 'class',\n version: '2.3.0',\n ref: 'https://element-plus.org/en-US/component/dialog.html#attributes',\n type: 'Attribute',\n },\n computed(() => !!props.customClass)\n)\n\nconst ns = useNamespace('dialog')\nconst dialogRef = ref<HTMLElement>()\nconst headerRef = ref<HTMLElement>()\nconst dialogContentRef = ref()\n\nconst {\n visible,\n titleId,\n bodyId,\n style,\n overlayDialogStyle,\n rendered,\n zIndex,\n afterEnter,\n afterLeave,\n beforeLeave,\n handleClose,\n onModalClick,\n onOpenAutoFocus,\n onCloseAutoFocus,\n onCloseRequested,\n} = useDialog(props, dialogRef)\n\nprovide(dialogInjectionKey, {\n dialogRef,\n headerRef,\n bodyId,\n ns,\n rendered,\n style,\n})\n\nconst overlayEvent = useSameTarget(onModalClick)\n\nconst draggable = computed(() => props.draggable && !props.fullscreen)\n\ndefineExpose({\n /** @description whether the dialog is visible */\n visible,\n dialogContentRef,\n})\n</script>\n"],"names":["useSlots","useDeprecated","computed","useNamespace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