@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
1 lines • 1.68 kB
Source Map (JSON)
{"version":3,"file":"time_pill.vue.cjs","sources":["../../../../recipes/conversation_view/time_pill/time_pill.vue"],"sourcesContent":["<template>\n <time\n data-qa=\"dt-recipe-time-pill\"\n :dateTime=\"dateTime\"\n class=\"d-recipe-time-pill\"\n >\n {{ dateTimeDisplay }}\n </time>\n</template>\n\n<script>\nimport {} from './time_pill_constants';\n\nexport default {\n compatConfig: { MODE: 3 },\n name: 'DtRecipeTimePill',\n\n props: {\n /**\n * Date time display value\n */\n dateTimeDisplay: {\n type: String,\n required: true,\n },\n\n /**\n * Machine-readable attribute\n * Accepts a string value of YYYY-MM-DD or YYYY-MM-DDThh:mm:ssTZD\n */\n dateTime: {\n type: String,\n required: true,\n validator: (t) => {\n // Since this will only ever be used in the context of a date, we're rejecting non date inputs\n const x = new Date(t);\n if (x instanceof Date && !isNaN(x)) {\n return true;\n }\n return false;\n },\n },\n },\n};\n</script>\n"],"names":["_createElementBlock","_toDisplayString"],"mappings":";;;;AAaA,MAAK,YAAU;AAAA,EACb,cAAc,EAAE,MAAM,EAAG;AAAA,EACzB,MAAM;AAAA,EAEN,OAAO;AAAA;AAAA;AAAA;AAAA,IAIL,iBAAiB;AAAA,MACf,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA;AAAA;AAAA;AAAA;AAAA,IAMD,UAAU;AAAA,MACR,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW,CAAC,MAAM;AAEhB,cAAM,IAAI,IAAI,KAAK,CAAC;AACpB,YAAI,aAAa,QAAQ,CAAC,MAAM,CAAC,GAAG;AAClC,iBAAO;AAAA,QACT;AACA,eAAO;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACH;AA3CA,MAAA,aAAA,CAAA,UAAA;;0BACEA,IAMO,mBAAA,QAAA;AAAA,IALL,WAAQ;AAAA,IACP,UAAU,OAAQ;AAAA,IACnB,OAAM;AAAA,EAEH,GAAAC,IAAAA,gBAAA,OAAA,eAAe,GANtB,GAAA,UAAA;;;;"}