You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
24 KiB
1 lines
24 KiB
{"ast":null,"code":"import { defineComponent, ref, computed, watch, nextTick, openBlock, createElementBlock, unref, normalizeClass, createElementVNode, Fragment, renderList, withKeys, withModifiers, createVNode } from 'vue';\nimport dayjs from 'dayjs';\nimport { basicMonthTableProps } from '../props/basic-month-table.mjs';\nimport { datesInMonth, getValidDateOfMonth } from '../utils.mjs';\nimport ElDatePickerCell from './basic-cell-render.mjs';\nimport _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';\nimport { useNamespace } from '../../../../hooks/use-namespace/index.mjs';\nimport { useLocale } from '../../../../hooks/use-locale/index.mjs';\nimport { castArray } from '../../../../utils/arrays.mjs';\nimport { hasClass } from '../../../../utils/dom/style.mjs';\nconst _sfc_main = /* @__PURE__ */defineComponent({\n __name: \"basic-month-table\",\n props: basicMonthTableProps,\n emits: [\"changerange\", \"pick\", \"select\"],\n setup(__props, {\n expose,\n emit\n }) {\n const props = __props;\n const ns = useNamespace(\"month-table\");\n const {\n t,\n lang\n } = useLocale();\n const tbodyRef = ref();\n const currentCellRef = ref();\n const months = ref(props.date.locale(\"en\").localeData().monthsShort().map(_ => _.toLowerCase()));\n const tableRows = ref([[], [], []]);\n const lastRow = ref();\n const lastColumn = ref();\n const rows = computed(() => {\n var _a, _b;\n const rows2 = tableRows.value;\n const now = dayjs().locale(lang.value).startOf(\"month\");\n for (let i = 0; i < 3; i++) {\n const row = rows2[i];\n for (let j = 0; j < 4; j++) {\n const cell = row[j] || (row[j] = {\n row: i,\n column: j,\n type: \"normal\",\n inRange: false,\n start: false,\n end: false,\n text: -1,\n disabled: false\n });\n cell.type = \"normal\";\n const index = i * 4 + j;\n const calTime = props.date.startOf(\"year\").month(index);\n const calEndDate = props.rangeState.endDate || props.maxDate || props.rangeState.selecting && props.minDate || null;\n cell.inRange = !!(props.minDate && calTime.isSameOrAfter(props.minDate, \"month\") && calEndDate && calTime.isSameOrBefore(calEndDate, \"month\")) || !!(props.minDate && calTime.isSameOrBefore(props.minDate, \"month\") && calEndDate && calTime.isSameOrAfter(calEndDate, \"month\"));\n if ((_a = props.minDate) == null ? void 0 : _a.isSameOrAfter(calEndDate)) {\n cell.start = !!(calEndDate && calTime.isSame(calEndDate, \"month\"));\n cell.end = props.minDate && calTime.isSame(props.minDate, \"month\");\n } else {\n cell.start = !!(props.minDate && calTime.isSame(props.minDate, \"month\"));\n cell.end = !!(calEndDate && calTime.isSame(calEndDate, \"month\"));\n }\n const isToday = now.isSame(calTime);\n if (isToday) {\n cell.type = \"today\";\n }\n cell.text = index;\n cell.disabled = ((_b = props.disabledDate) == null ? void 0 : _b.call(props, calTime.toDate())) || false;\n }\n }\n return rows2;\n });\n const focus = () => {\n var _a;\n (_a = currentCellRef.value) == null ? void 0 : _a.focus();\n };\n const getCellStyle = cell => {\n const style = {};\n const year = props.date.year();\n const today = /* @__PURE__ */new Date();\n const month = cell.text;\n style.disabled = props.disabledDate ? datesInMonth(year, month, lang.value).every(props.disabledDate) : false;\n style.current = castArray(props.parsedValue).findIndex(date => dayjs.isDayjs(date) && date.year() === year && date.month() === month) >= 0;\n style.today = today.getFullYear() === year && today.getMonth() === month;\n if (cell.inRange) {\n style[\"in-range\"] = true;\n if (cell.start) {\n style[\"start-date\"] = true;\n }\n if (cell.end) {\n style[\"end-date\"] = true;\n }\n }\n return style;\n };\n const isSelectedCell = cell => {\n const year = props.date.year();\n const month = cell.text;\n return castArray(props.date).findIndex(date => date.year() === year && date.month() === month) >= 0;\n };\n const handleMouseMove = event => {\n var _a;\n if (!props.rangeState.selecting) return;\n let target = event.target;\n if (target.tagName === \"SPAN\") {\n target = (_a = target.parentNode) == null ? void 0 : _a.parentNode;\n }\n if (target.tagName === \"DIV\") {\n target = target.parentNode;\n }\n if (target.tagName !== \"TD\") return;\n const row = target.parentNode.rowIndex;\n const column = target.cellIndex;\n if (rows.value[row][column].disabled) return;\n if (row !== lastRow.value || column !== lastColumn.value) {\n lastRow.value = row;\n lastColumn.value = column;\n emit(\"changerange\", {\n selecting: true,\n endDate: props.date.startOf(\"year\").month(row * 4 + column)\n });\n }\n };\n const handleMonthTableClick = event => {\n var _a;\n const target = (_a = event.target) == null ? void 0 : _a.closest(\"td\");\n if ((target == null ? void 0 : target.tagName) !== \"TD\") return;\n if (hasClass(target, \"disabled\")) return;\n const column = target.cellIndex;\n const row = target.parentNode.rowIndex;\n const month = row * 4 + column;\n const newDate = props.date.startOf(\"year\").month(month);\n if (props.selectionMode === \"months\") {\n if (event.type === \"keydown\") {\n emit(\"pick\", castArray(props.parsedValue), false);\n return;\n }\n const newMonth = getValidDateOfMonth(props.date.year(), month, lang.value, props.disabledDate);\n const newValue = hasClass(target, \"current\") ? castArray(props.parsedValue).filter(d => (d == null ? void 0 : d.month()) !== newMonth.month()) : castArray(props.parsedValue).concat([dayjs(newMonth)]);\n emit(\"pick\", newValue);\n } else if (props.selectionMode === \"range\") {\n if (!props.rangeState.selecting) {\n emit(\"pick\", {\n minDate: newDate,\n maxDate: null\n });\n emit(\"select\", true);\n } else {\n if (props.minDate && newDate >= props.minDate) {\n emit(\"pick\", {\n minDate: props.minDate,\n maxDate: newDate\n });\n } else {\n emit(\"pick\", {\n minDate: newDate,\n maxDate: props.minDate\n });\n }\n emit(\"select\", false);\n }\n } else {\n emit(\"pick\", month);\n }\n };\n watch(() => props.date, async () => {\n var _a, _b;\n if ((_a = tbodyRef.value) == null ? void 0 : _a.contains(document.activeElement)) {\n await nextTick();\n (_b = currentCellRef.value) == null ? void 0 : _b.focus();\n }\n });\n expose({\n focus\n });\n return (_ctx, _cache) => {\n return openBlock(), createElementBlock(\"table\", {\n role: \"grid\",\n \"aria-label\": unref(t)(\"el.datepicker.monthTablePrompt\"),\n class: normalizeClass(unref(ns).b()),\n onClick: handleMonthTableClick,\n onMousemove: handleMouseMove\n }, [createElementVNode(\"tbody\", {\n ref_key: \"tbodyRef\",\n ref: tbodyRef\n }, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), (row, key) => {\n return openBlock(), createElementBlock(\"tr\", {\n key\n }, [(openBlock(true), createElementBlock(Fragment, null, renderList(row, (cell, key_) => {\n return openBlock(), createElementBlock(\"td\", {\n key: key_,\n ref_for: true,\n ref: el => isSelectedCell(cell) && (currentCellRef.value = el),\n class: normalizeClass(getCellStyle(cell)),\n \"aria-selected\": `${isSelectedCell(cell)}`,\n \"aria-label\": unref(t)(`el.datepicker.month${+cell.text + 1}`),\n tabindex: isSelectedCell(cell) ? 0 : -1,\n onKeydown: [withKeys(withModifiers(handleMonthTableClick, [\"prevent\", \"stop\"]), [\"space\"]), withKeys(withModifiers(handleMonthTableClick, [\"prevent\", \"stop\"]), [\"enter\"])]\n }, [createVNode(unref(ElDatePickerCell), {\n cell: {\n ...cell,\n renderText: unref(t)(\"el.datepicker.months.\" + months.value[cell.text])\n }\n }, null, 8, [\"cell\"])], 42, [\"aria-selected\", \"aria-label\", \"tabindex\", \"onKeydown\"]);\n }), 128))]);\n }), 128))], 512)], 42, [\"aria-label\"]);\n };\n }\n});\nvar MonthTable = /* @__PURE__ */_export_sfc(_sfc_main, [[\"__file\", \"basic-month-table.vue\"]]);\nexport { MonthTable as default };","map":{"version":3,"names":["ns","useNamespace","t","lang","useLocale","tbodyRef","ref","currentCellRef","months","props","date","locale","localeData","monthsShort","map","_","toLowerCase","tableRows","lastRow","lastColumn","rows","computed","_a","_b","rows2","value","now","dayjs","startOf","i","row","j","cell","column","type","inRange","start","end","text","disabled","index","calTime","month","calEndDate","rangeState","endDate","maxDate","selecting","minDate","isSameOrAfter","isSameOrBefore","isSame","isToday","disabledDate","call","toDate","focus","getCellStyle","style","year","today","Date","datesInMonth","every","current","castArray","parsedValue","findIndex","isDayjs","getFullYear","getMonth","isSelectedCell","handleMouseMove","event","target","tagName","parentNode","rowIndex","cellIndex","emit","handleMonthTableClick","closest","hasClass","newDate","selectionMode","newMonth","getValidDateOfMonth","newValue","filter","d","concat","watch","contains","document","activeElement","nextTick","expose","_ctx","_cache","openBlock","createElementBlock","role","unref","class","normalizeClass","b","onClick","onMousemove","createElementVNode","ref_key"],"sources":["../../../../../../../packages/components/date-picker/src/date-picker-com/basic-month-table.vue"],"sourcesContent":["<template>\n <table\n role=\"grid\"\n :aria-label=\"t('el.datepicker.monthTablePrompt')\"\n :class=\"ns.b()\"\n @click=\"handleMonthTableClick\"\n @mousemove=\"handleMouseMove\"\n >\n <tbody ref=\"tbodyRef\">\n <tr v-for=\"(row, key) in rows\" :key=\"key\">\n <td\n v-for=\"(cell, key_) in row\"\n :key=\"key_\"\n :ref=\"(el) => isSelectedCell(cell) && (currentCellRef = el as HTMLElement)\"\n :class=\"getCellStyle(cell)\"\n :aria-selected=\"`${isSelectedCell(cell)}`\"\n :aria-label=\"t(`el.datepicker.month${+cell.text + 1}`)\"\n :tabindex=\"isSelectedCell(cell) ? 0 : -1\"\n @keydown.space.prevent.stop=\"handleMonthTableClick\"\n @keydown.enter.prevent.stop=\"handleMonthTableClick\"\n >\n <el-date-picker-cell\n :cell=\"{\n ...cell,\n renderText: t('el.datepicker.months.' + months[cell.text]),\n }\"\n />\n </td>\n </tr>\n </tbody>\n </table>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, nextTick, ref, watch } from 'vue'\nimport dayjs from 'dayjs'\nimport { useLocale, useNamespace } from '@element-plus/hooks'\nimport { castArray, hasClass } from '@element-plus/utils'\nimport { basicMonthTableProps } from '../props/basic-month-table'\nimport { datesInMonth, getValidDateOfMonth } from '../utils'\nimport ElDatePickerCell from './basic-cell-render'\n\ntype MonthCell = {\n column: number\n row: number\n disabled: boolean\n start: boolean\n end: boolean\n text: number\n type: 'normal' | 'today'\n inRange: boolean\n}\n\nconst props = defineProps(basicMonthTableProps)\nconst emit = defineEmits(['changerange', 'pick', 'select'])\n\nconst ns = useNamespace('month-table')\n\nconst { t, lang } = useLocale()\nconst tbodyRef = ref<HTMLElement>()\nconst currentCellRef = ref<HTMLElement>()\nconst months = ref(\n props.date\n .locale('en')\n .localeData()\n .monthsShort()\n .map((_) => _.toLowerCase())\n)\nconst tableRows = ref<MonthCell[][]>([\n [] as MonthCell[],\n [] as MonthCell[],\n [] as MonthCell[],\n])\nconst lastRow = ref<number>()\nconst lastColumn = ref<number>()\nconst rows = computed<MonthCell[][]>(() => {\n const rows = tableRows.value\n\n const now = dayjs().locale(lang.value).startOf('month')\n\n for (let i = 0; i < 3; i++) {\n const row = rows[i]\n for (let j = 0; j < 4; j++) {\n const cell = (row[j] ||= {\n row: i,\n column: j,\n type: 'normal',\n inRange: false,\n start: false,\n end: false,\n text: -1,\n disabled: false,\n })\n\n cell.type = 'normal'\n\n const index = i * 4 + j\n const calTime = props.date.startOf('year').month(index)\n\n const calEndDate =\n props.rangeState.endDate ||\n props.maxDate ||\n (props.rangeState.selecting && props.minDate) ||\n null\n\n cell.inRange =\n !!(\n props.minDate &&\n calTime.isSameOrAfter(props.minDate, 'month') &&\n calEndDate &&\n calTime.isSameOrBefore(calEndDate, 'month')\n ) ||\n !!(\n props.minDate &&\n calTime.isSameOrBefore(props.minDate, 'month') &&\n calEndDate &&\n calTime.isSameOrAfter(calEndDate, 'month')\n )\n\n if (props.minDate?.isSameOrAfter(calEndDate)) {\n cell.start = !!(calEndDate && calTime.isSame(calEndDate, 'month'))\n cell.end = props.minDate && calTime.isSame(props.minDate, 'month')\n } else {\n cell.start = !!(props.minDate && calTime.isSame(props.minDate, 'month'))\n cell.end = !!(calEndDate && calTime.isSame(calEndDate, 'month'))\n }\n\n const isToday = now.isSame(calTime)\n if (isToday) {\n cell.type = 'today'\n }\n\n cell.text = index\n cell.disabled = props.disabledDate?.(calTime.toDate()) || false\n }\n }\n return rows\n})\n\nconst focus = () => {\n currentCellRef.value?.focus()\n}\n\nconst getCellStyle = (cell: MonthCell) => {\n const style = {} as any\n const year = props.date.year()\n const today = new Date()\n const month = cell.text\n\n style.disabled = props.disabledDate\n ? datesInMonth(year, month, lang.value).every(props.disabledDate)\n : false\n style.current =\n castArray(props.parsedValue).findIndex(\n (date) =>\n dayjs.isDayjs(date) && date.year() === year && date.month() === month\n ) >= 0\n style.today = today.getFullYear() === year && today.getMonth() === month\n\n if (cell.inRange) {\n style['in-range'] = true\n\n if (cell.start) {\n style['start-date'] = true\n }\n\n if (cell.end) {\n style['end-date'] = true\n }\n }\n return style\n}\n\nconst isSelectedCell = (cell: MonthCell) => {\n const year = props.date.year()\n const month = cell.text\n return (\n castArray(props.date).findIndex(\n (date) => date.year() === year && date.month() === month\n ) >= 0\n )\n}\n\nconst handleMouseMove = (event: MouseEvent) => {\n if (!props.rangeState.selecting) return\n\n let target = event.target as HTMLElement\n if (target.tagName === 'SPAN') {\n target = target.parentNode?.parentNode as HTMLElement\n }\n if (target.tagName === 'DIV') {\n target = target.parentNode as HTMLElement\n }\n if (target.tagName !== 'TD') return\n\n const row = (target.parentNode as HTMLTableRowElement).rowIndex\n const column = (target as HTMLTableCellElement).cellIndex\n // can not select disabled date\n if (rows.value[row][column].disabled) return\n\n // only update rangeState when mouse moves to a new cell\n // this avoids frequent Date object creation and improves performance\n if (row !== lastRow.value || column !== lastColumn.value) {\n lastRow.value = row\n lastColumn.value = column\n emit('changerange', {\n selecting: true,\n endDate: props.date.startOf('year').month(row * 4 + column),\n })\n }\n}\nconst handleMonthTableClick = (event: MouseEvent | KeyboardEvent) => {\n const target = (event.target as HTMLElement)?.closest(\n 'td'\n ) as HTMLTableCellElement\n if (target?.tagName !== 'TD') return\n if (hasClass(target, 'disabled')) return\n const column = target.cellIndex\n const row = (target.parentNode as HTMLTableRowElement).rowIndex\n const month = row * 4 + column\n const newDate = props.date.startOf('year').month(month)\n if (props.selectionMode === 'months') {\n if (event.type === 'keydown') {\n emit('pick', castArray(props.parsedValue), false)\n return\n }\n const newMonth = getValidDateOfMonth(\n props.date.year(),\n month,\n lang.value,\n props.disabledDate\n )\n const newValue = hasClass(target, 'current')\n ? castArray(props.parsedValue).filter(\n (d) => d?.month() !== newMonth.month()\n )\n : castArray(props.parsedValue).concat([dayjs(newMonth)])\n emit('pick', newValue)\n } else if (props.selectionMode === 'range') {\n if (!props.rangeState.selecting) {\n emit('pick', { minDate: newDate, maxDate: null })\n emit('select', true)\n } else {\n if (props.minDate && newDate >= props.minDate) {\n emit('pick', { minDate: props.minDate, maxDate: newDate })\n } else {\n emit('pick', { minDate: newDate, maxDate: props.minDate })\n }\n emit('select', false)\n }\n } else {\n emit('pick', month)\n }\n}\n\nwatch(\n () => props.date,\n async () => {\n if (tbodyRef.value?.contains(document.activeElement)) {\n await nextTick()\n currentCellRef.value?.focus()\n }\n }\n)\n\ndefineExpose({\n /**\n * @description focus current cell\n */\n focus,\n})\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;IAwDM,MAAAA,EAAA,GAAKC,YAAA,CAAa,aAAa;IAErC,MAAM;MAAEC,CAAA;MAAGC;IAAK,IAAIC,SAAU;IAC9B,MAAMC,QAAA,GAAWC,GAAiB;IAClC,MAAMC,cAAA,GAAiBD,GAAiB;IACxC,MAAME,MAAS,GAAAF,GAAA,CAAAG,KAAA,CAAAC,IAAA,CAAAC,MAAA,OAAAC,UAAA,GAAAC,WAAA,GAAAC,GAAA,CAAAC,CAAA,IAAAA,CAAA,CAAAC,WAAA;IAAA,MACPC,SACI,GAAAX,GAAA,EAIZ,IACA,IACE,EAAC,EACD;IAAC,MACAY,OAAA,GAAAZ,GAAA;IACH,MAACa,UAAA,GAAAb,GAAA;IACD,MAAMc,IAAA,GAAAC,QAAsB;MAC5B,IAAMC,EAAA,EAAAC,EAAA;MACA,MAAAC,KAAO,GAAAP,SAA8B,CAAAQ,KAAA;MACzC,MAAMC,GAAA,GAAAC,KAAiB,GAAAhB,MAAA,CAAAR,IAAA,CAAAsB,KAAA,EAAAG,OAAA;MAEjB,SAAAC,CAAA,MAAAA,CAAA,GAAc,GAAAA,CAAA;QAEpB,MAAAC,GAAa,GAAAN,KAAO,CAAAK,CAAA;QACZ,SAAAE,CAAA,MAAAA,CAAA,GA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