UNPKG

@aplus-frontend/ui

Version:

63 lines (62 loc) 873 B
const Y = [ "Y", "Y-Q", "Y-M", "Y-W", "Y-D", "Y-h", "Y-m", "Y-s" ], e = { Y: "YYYY", "Y-Q": void 0, "Y-M": "YYYY-MM", "Y-W": void 0, "Y-D": "YYYY-MM-DD", "Y-h": "YYYY-MM-DD HH", "Y-m": "YYYY-MM-DD HH:mm", "Y-s": "YYYY-MM-DD HH:mm:ss" }, s = { Y: "year", "Y-Q": "quarter", "Y-M": "month", "Y-W": "week", "Y-D": "date", "Y-h": "date", "Y-m": "date", "Y-s": "date" }, o = { Y: { showTime: !1 }, "Y-Q": { showTime: !1 }, "Y-M": { showTime: !1 }, "Y-W": { showTime: !1 }, "Y-D": { showTime: !1 }, "Y-h": { showTime: !0, showSecond: !1, showMinute: !1 }, "Y-m": { showTime: !0, showSecond: !1 }, "Y-s": { showTime: !0 } }; export { Y as ApFieldDatePresetFormats, e as PRESET_FORMAT_MAP, s as PRESET_FORMAT_PICK_MAP, o as PRESET_FORMAT_TIME_MAP };