@ovalbee/reportifact 0.0.1 → 0.0.2
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/README.md +2 -1
- package/dist/{Chart.vue_vue_type_style_index_0_lang-BYILFTfl.js → Chart.vue_vue_type_style_index_0_lang-Bp14Es_r.js} +2341 -2290
- package/dist/Chart.vue_vue_type_style_index_0_lang-Dj7m6i3v.cjs +1 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BTA6fIp9.js +2640 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-CZ8Y2pXG.cjs +2 -0
- package/dist/index-3DTuh2Dr.cjs +47 -0
- package/dist/{index-DFz2A8yJ.js → index-DevYhXSC.js} +9252 -8377
- package/dist/portable/ReportifactFigure.vue.d.ts +4 -0
- package/dist/reportifact.cjs +1 -1
- package/dist/reportifact.js +3 -3
- package/dist/style.css +1 -1
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.js +1 -1
- package/dist/widgets/figure.cjs +1 -1
- package/dist/widgets/figure.js +37 -37
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.js +1 -1
- package/package.json +9 -8
- package/dist/Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs +0 -1
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BIyC7N9b.cjs +0 -2
- package/dist/Timeline.vue_vue_type_style_index_0_lang-BnrgKBMh.js +0 -2598
- package/dist/index-DmTzvbys.cjs +0 -47
|
@@ -3,6 +3,9 @@ type __VLS_Props = {
|
|
|
3
3
|
caption?: string;
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
error?: string | null;
|
|
6
|
+
/** Static fallback. `fallbackImage` is the preferred portable API name. */
|
|
7
|
+
fallbackImage?: string;
|
|
8
|
+
/** Backward-compatible alias for `fallbackImage`. */
|
|
6
9
|
fallbackSrc?: string;
|
|
7
10
|
fallbackAlt?: string;
|
|
8
11
|
sourceHref?: string;
|
|
@@ -22,6 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
22
25
|
loading: boolean;
|
|
23
26
|
error: string | null;
|
|
24
27
|
caption: string;
|
|
28
|
+
fallbackImage: string;
|
|
25
29
|
fallbackSrc: string;
|
|
26
30
|
fallbackAlt: string;
|
|
27
31
|
sourceHref: string;
|
package/dist/reportifact.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var xr=Object.defineProperty;var Er=(n,t,r)=>t in n?xr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r;var le=(n,t,r)=>Er(n,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),He=require("./useFetch-BfOAq-Kg.cjs"),dt=require("./WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs"),xt=require("./Chart.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";var xr=Object.defineProperty;var Er=(n,t,r)=>t in n?xr(n,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[t]=r;var le=(n,t,r)=>Er(n,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),He=require("./useFetch-BfOAq-Kg.cjs"),dt=require("./WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs"),xt=require("./Chart.vue_vue_type_style_index_0_lang-Dj7m6i3v.cjs"),_r=require("./Timeline.vue_vue_type_style_index_0_lang-CZ8Y2pXG.cjs"),rt=require("./index-3DTuh2Dr.cjs"),Sr=require("./MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs"),Dt=require("./markdownTable-Cbn1Du3L.cjs"),Br=require("./MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs"),Nr=require("./MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs"),Rr=require("./ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs"),Sn=require("./ReportifactWidgetHost-A73gQ3bT.cjs");function Ft(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var et=Ft();function Bn(n){et=n}var Qe={exec:()=>null};function te(n,t=""){let r=typeof n=="string"?n:n.source,o={replace:(l,s)=>{let u=typeof s=="string"?s:s.source;return u=u.replace(Be.caret,"$1"),r=r.replace(l,u),o},getRegex:()=>new RegExp(r,t)};return o}var $r=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Be={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}>`)},Cr=/^(?:[ \t]*(?:\n|$))+/,Tr=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Mr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ft=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Ar=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ut=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Nn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Rn=te(Nn).replace(/bull/g,Ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Lr=te(Nn).replace(/bull/g,Ut).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),jt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Vr=/^[^\n]+/,Wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Or=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ir=te(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Ut).getRegex(),St="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Gt=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Dr=te("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Gt).replace("tag",St).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$n=te(jt).replace("hr",ft).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St).getRegex(),zr=te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$n).getRegex(),qt={blockquote:zr,code:Tr,def:Or,fences:Mr,heading:Ar,hr:ft,html:Dr,lheading:Rn,list:Ir,newline:Cr,paragraph:$n,table:Qe,text:Vr},pn=te("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ft).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St).getRegex(),Pr={...qt,lheading:Lr,table:pn,paragraph:te(jt).replace("hr",ft).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",pn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",St).getRegex()},Hr={...qt,html:te(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Gt).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Qe,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:te(jt).replace("hr",ft).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",Rn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Ur=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Cn=/^( {2,}|\\)\n(?!\s*$)/,jr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Bt=/[\p{P}\p{S}]/u,Zt=/[\s\p{P}\p{S}]/u,Tn=/[^\s\p{P}\p{S}]/u,Wr=te(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zt).getRegex(),Mn=/(?!~)[\p{P}\p{S}]/u,Gr=/(?!~)[\s\p{P}\p{S}]/u,qr=/(?:[^\s\p{P}\p{S}]|~)/u,An=/(?![*_])[\p{P}\p{S}]/u,Zr=/(?![*_])[\s\p{P}\p{S}]/u,Kr=/(?:[^\s\p{P}\p{S}]|[*_])/u,Xr=te(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",$r?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ln=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,Qr=te(Ln,"u").replace(/punct/g,Bt).getRegex(),Yr=te(Ln,"u").replace(/punct/g,Mn).getRegex(),Vn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Jr=te(Vn,"gu").replace(/notPunctSpace/g,Tn).replace(/punctSpace/g,Zt).replace(/punct/g,Bt).getRegex(),eo=te(Vn,"gu").replace(/notPunctSpace/g,qr).replace(/punctSpace/g,Gr).replace(/punct/g,Mn).getRegex(),to=te("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Tn).replace(/punctSpace/g,Zt).replace(/punct/g,Bt).getRegex(),no=te(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,An).getRegex(),ro="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",oo=te(ro,"gu").replace(/notPunctSpace/g,Kr).replace(/punctSpace/g,Zr).replace(/punct/g,An).getRegex(),lo=te(/\\(punct)/,"gu").replace(/punct/g,Bt).getRegex(),so=te(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),io=te(Gt).replace("(?:-->|$)","-->").getRegex(),ao=te("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",io).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Et=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,co=te(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Et).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),On=te(/^!?\[(label)\]\[(ref)\]/).replace("label",Et).replace("ref",Wt).getRegex(),In=te(/^!?\[(ref)\](?:\[\])?/).replace("ref",Wt).getRegex(),uo=te("reflink|nolink(?!\\()","g").replace("reflink",On).replace("nolink",In).getRegex(),dn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Kt={_backpedal:Qe,anyPunctuation:lo,autolink:so,blockSkip:Xr,br:Cn,code:Ur,del:Qe,delLDelim:Qe,delRDelim:Qe,emStrongLDelim:Qr,emStrongRDelimAst:Jr,emStrongRDelimUnd:to,escape:Fr,link:co,nolink:In,punctuation:Wr,reflink:On,reflinkSearch:uo,tag:ao,text:jr,url:Qe},po={...Kt,link:te(/^!?\[(label)\]\((.*?)\)/).replace("label",Et).getRegex(),reflink:te(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Et).getRegex()},zt={...Kt,emStrongRDelimAst:eo,emStrongLDelim:Yr,delLDelim:no,delRDelim:oo,url:te(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",dn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:te(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",dn).getRegex()},fo={...zt,br:te(Cn).replace("{2,}","*").getRegex(),text:te(zt.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wt={normal:qt,gfm:Pr,pedantic:Hr},it={normal:Kt,gfm:zt,breaks:fo,pedantic:po},ho={"&":"&","<":"<",">":">",'"':""","'":"'"},fn=n=>ho[n];function Ue(n,t){if(t){if(Be.escapeTest.test(n))return n.replace(Be.escapeReplace,fn)}else if(Be.escapeTestNoEncode.test(n))return n.replace(Be.escapeReplaceNoEncode,fn);return n}function hn(n){try{n=encodeURI(n).replace(Be.percentDecode,"%")}catch{return null}return n}function gn(n,t){var s;let r=n.replace(Be.findPipe,(u,i,p)=>{let c=!1,f=i;for(;--f>=0&&p[f]==="\\";)c=!c;return c?"|":" |"}),o=r.split(Be.splitPipe),l=0;if(o[0].trim()||o.shift(),o.length>0&&!((s=o.at(-1))!=null&&s.trim())&&o.pop(),t)if(o.length>t)o.splice(t);else for(;o.length<t;)o.push("");for(;l<o.length;l++)o[l]=o[l].trim().replace(Be.slashPipe,"|");return o}function at(n,t,r){let o=n.length;if(o===0)return"";let l=0;for(;l<o&&n.charAt(o-l-1)===t;)l++;return n.slice(0,o-l)}function go(n,t){if(n.indexOf(t[1])===-1)return-1;let r=0;for(let o=0;o<n.length;o++)if(n[o]==="\\")o++;else if(n[o]===t[0])r++;else if(n[o]===t[1]&&(r--,r<0))return o;return r>0?-2:-1}function mo(n,t=0){let r=t,o="";for(let l of n)if(l===" "){let s=4-r%4;o+=" ".repeat(s),r+=s}else o+=l,r++;return o}function mn(n,t,r,o,l){let s=t.href,u=t.title||null,i=n[1].replace(l.other.outputLinkReplace,"$1");o.state.inLink=!0;let p={type:n[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:u,text:i,tokens:o.inlineTokens(i)};return o.state.inLink=!1,p}function ko(n,t,r){let o=n.match(r.other.indentCodeCompensation);if(o===null)return t;let l=o[1];return t.split(`
|
|
3
3
|
`).map(s=>{let u=s.match(r.other.beginningSpace);if(u===null)return s;let[i]=u;return i.length>=l.length?s.slice(l.length):s}).join(`
|
|
4
4
|
`)}var _t=class{constructor(n){le(this,"options");le(this,"rules");le(this,"lexer");this.options=n||et}space(n){let t=this.rules.block.newline.exec(n);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(n){let t=this.rules.block.code.exec(n);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:at(r,`
|
package/dist/reportifact.js
CHANGED
|
@@ -4,9 +4,9 @@ var de = (t, e, n) => Hr(t, typeof e != "symbol" ? e + "" : e, n);
|
|
|
4
4
|
import { defineComponent as We, ref as le, computed as C, createBlock as fe, openBlock as f, unref as Re, withCtx as Ke, createElementVNode as p, watch as Ie, normalizeClass as he, createElementBlock as k, createCommentVNode as q, withDirectives as nn, vModelText as jn, toDisplayString as Y, Fragment as ue, renderList as xe, onMounted as Dt, onUnmounted as rn, normalizeStyle as De, vModelSelect as Ur, getCurrentInstance as jr, useId as Fr, createTextVNode as sn, inject as Wr, onBeforeUnmount as Fn, resolveDynamicComponent as Gr, nextTick as Yt, shallowReactive as Vr, isRef as Zr, isReactive as qr, readonly as Kr, customRef as Xr, provide as Qr, createVNode as Yr } from "vue";
|
|
5
5
|
import { u as nt } from "./useFetch-CHQm_TmB.js";
|
|
6
6
|
import { _ as Et } from "./WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js";
|
|
7
|
-
import { r as Jr, i as es, _ as ts } from "./Chart.vue_vue_type_style_index_0_lang-
|
|
8
|
-
import { _ as ns } from "./Timeline.vue_vue_type_style_index_0_lang-
|
|
9
|
-
import {
|
|
7
|
+
import { r as Jr, i as es, _ as ts } from "./Chart.vue_vue_type_style_index_0_lang-Bp14Es_r.js";
|
|
8
|
+
import { _ as ns } from "./Timeline.vue_vue_type_style_index_0_lang-BTA6fIp9.js";
|
|
9
|
+
import { a_ as rs, a$ as ss, b0 as is, b2 as ls, b3 as as, b4 as os } from "./index-DevYhXSC.js";
|
|
10
10
|
import { _ as cs } from "./MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js";
|
|
11
11
|
import { m as Wn, p as us } from "./markdownTable-B5207r3E.js";
|
|
12
12
|
import { _ as ps } from "./MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js";
|
package/dist/style.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.reportifact{--reportifact-bg: #ffffff;--reportifact-toc-bg: #ffffff;--reportifact-bg-subtle: #f8fafc;--reportifact-bg-muted: #f1f5f9;--reportifact-bg-overlay: rgba(255, 255, 255, .9);--reportifact-text: #1f2937;--reportifact-text-muted: #64748b;--reportifact-text-faint: #94a3b8;--reportifact-border: #e2e8f0;--reportifact-error-bg: #fef2f2;--reportifact-error-text: #dc2626;--reportifact-highlight: #fef08a;--reportifact-accent: #0ea5e9;--reportifact-focus-border: #3b82f6;--reportifact-tone-low: #ef4444;--reportifact-tone-low-bg: #fee2e2;--reportifact-tone-low-border: #fecaca;--reportifact-tone-mid: #d97706;--reportifact-tone-mid-bg: #fef3c7;--reportifact-tone-mid-border: #fde68a;--reportifact-tone-high: #059669;--reportifact-tone-high-bg: #d1fae5;--reportifact-tone-high-border: #a7f3d0;--reportifact-widget-gap: 16px;--reportifact-section-gap: 32px;display:flex;flex-direction:column;color:var(--reportifact-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;font-size:14px;line-height:1.5}.dark .reportifact{--reportifact-tone-low: #f06464;--reportifact-tone-low-bg: rgba(239, 68, 68, .16);--reportifact-tone-low-border: rgba(239, 68, 68, .32);--reportifact-tone-mid: #d99a2b;--reportifact-tone-mid-bg: rgba(217, 119, 6, .16);--reportifact-tone-mid-border: rgba(217, 119, 6, .32);--reportifact-tone-high: #41b883;--reportifact-tone-high-bg: rgba(16, 185, 129, .14);--reportifact-tone-high-border: rgba(16, 185, 129, .3)}.reportifact-skeleton-line{height:16px;border-radius:4px;background:linear-gradient(90deg,var(--reportifact-border) 25%,var(--reportifact-bg-muted) 50%,var(--reportifact-border) 75%);background-size:200% 100%;animation:reportifact-skeleton-pulse 1.5s ease-in-out infinite}.reportifact-skeleton-column{display:flex;flex-direction:column;gap:12px}@keyframes reportifact-skeleton-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}.reportifact-widget-host{width:100%;min-width:0}.reportifact-widget-wrapper,.reportifact-widget-content{position:relative}.reportifact-widget-error{padding:16px;background:var(--reportifact-error-bg);border-radius:8px}.reportifact-widget-error-message{color:var(--reportifact-error-text);font-size:14px;text-align:center}.reportifact-chart-skeleton{background:var(--reportifact-bg);border:1px solid var(--reportifact-border);border-radius:8px;padding:16px;height:var(--reportifact-chart-height);display:flex;flex-direction:column;overflow:hidden}.reportifact-chart-skeleton-body{width:100%;flex:1;min-height:0;border-radius:4px}.reportifact-chart-container{background:var(--reportifact-bg);border:1px solid var(--reportifact-border);border-radius:8px;padding:16px;width:100%;height:var(--reportifact-chart-height);display:flex;flex-direction:column;overflow:hidden}.reportifact-chart{width:100%;flex:1;min-height:0}.reportifact-metric-cards{display:grid;grid-template-columns:repeat(4,minmax(92px,1fr));gap:10px;padding:12px;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-metric-card{position:relative;min-height:148px;overflow:hidden;padding:14px;border:1px solid var(--reportifact-border);border-radius:6px;background:var(--reportifact-bg)}.reportifact-metric-card-fill{position:absolute;inset:auto 0 0;border-top:1px solid transparent}.reportifact-metric-card--low .reportifact-metric-card-fill{border-top-color:var(--reportifact-tone-low-border);background:var(--reportifact-tone-low-bg)}.reportifact-metric-card--mid .reportifact-metric-card-fill{border-top-color:var(--reportifact-tone-mid-border);background:var(--reportifact-tone-mid-bg)}.reportifact-metric-card--high .reportifact-metric-card-fill{border-top-color:var(--reportifact-tone-high-border);background:var(--reportifact-tone-high-bg)}.reportifact-metric-card-label,.reportifact-metric-card-value,.reportifact-metric-card-description{position:relative;z-index:1}.reportifact-metric-card-label{display:block;color:var(--reportifact-text-muted);font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.reportifact-metric-card-value{display:block;margin-top:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:26px;line-height:1}.reportifact-metric-card--low .reportifact-metric-card-value{color:var(--reportifact-tone-low)}.reportifact-metric-card--mid .reportifact-metric-card-value{color:var(--reportifact-tone-mid)}.reportifact-metric-card--high .reportifact-metric-card-value{color:var(--reportifact-tone-high)}.reportifact-metric-card-description{margin:8px 0 0;color:var(--reportifact-text-muted);font-size:12px}@media (max-width: 720px){.reportifact-metric-cards{grid-template-columns:repeat(2,minmax(92px,1fr))}}.reportifact-metric-callout{overflow:hidden;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-metric-callout-header{display:grid;grid-template-columns:148px minmax(0,1fr);gap:14px;align-items:center;padding:14px 15px;border-bottom:1px solid var(--reportifact-border);background:var(--reportifact-bg-subtle)}.reportifact-metric-callout-label{color:var(--reportifact-text-muted);font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.reportifact-metric-callout-value{display:block;margin-top:5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:28px;line-height:1}.reportifact-metric-callout-value--low{color:var(--reportifact-tone-low)}.reportifact-metric-callout-value--mid{color:var(--reportifact-tone-mid)}.reportifact-metric-callout-value--high{color:var(--reportifact-tone-high)}.reportifact-metric-callout-description,.reportifact-metric-callout-body{color:var(--reportifact-text-muted)}.reportifact-metric-callout-body{padding:13px 15px}.rm-skeleton{display:flex;flex-direction:column;gap:10px;padding:4px 0}.rm-skeleton-row{display:flex;gap:10px;align-items:center}.rm-title{font-weight:bolder;font-size:13px;margin-bottom:8px;color:var(--reportifact-text)}.rm-metrics{display:grid;grid-template-columns:auto 3.8em 1fr;align-items:center;gap:8px 10px;padding:2px 0;max-width:400px}.rm-metrics--with-pct{grid-template-columns:auto 3.8em 1fr auto}.rm-row{display:contents}.rm-name{font-weight:500;font-size:13px;white-space:nowrap;color:var(--reportifact-text)}.rm-value{font-family:monospace;font-size:13px;text-align:right;color:var(--reportifact-text-muted)}.rm-bar-track{height:6px;background:var(--reportifact-bg-muted);border-radius:3px;overflow:hidden;min-width:40px}.rm-bar-fill{height:100%;background:var(--reportifact-accent);border-radius:3px;transition:width .3s ease}.rm-pct{font-size:12px;color:var(--reportifact-text-muted);white-space:nowrap;min-width:3.2em;text-align:right}.rm-empty{grid-column:1 / -1;color:var(--reportifact-text-faint);font-style:italic;font-size:13px}.rm-table{width:100%;max-width:400px;border-collapse:collapse;font-size:13px}.rm-table th{text-align:left;padding:6px 8px;font-weight:500;border-bottom:1px solid var(--reportifact-border);color:var(--reportifact-text-muted);font-size:12px}.rm-table td{padding:5px 8px;border-bottom:1px solid var(--reportifact-border);color:var(--reportifact-text)}.rm-table tr:last-child td{border-bottom:none}.rm-table tbody tr:hover td{background:var(--reportifact-bg-subtle)}.reportifact-timeline-container{position:relative;background:var(--reportifact-bg);border:1px solid var(--reportifact-border);border-radius:8px;padding:16px;width:100%;height:var(--reportifact-chart-height);display:flex;flex-direction:column;overflow:hidden}.reportifact-timeline-toolbar{position:absolute;top:12px;right:12px;z-index:1;display:flex;gap:2px;border:1px solid var(--reportifact-border);border-radius:6px;padding:2px;background:var(--reportifact-bg-subtle)}.reportifact-timeline-mode{border:none;background:transparent;color:var(--reportifact-text-muted);font-size:11px;line-height:1;padding:4px 8px;border-radius:4px;cursor:pointer}.reportifact-timeline-mode.is-active{background:var(--reportifact-bg);color:var(--reportifact-text);box-shadow:0 1px 2px #00000014}.reportifact-image-gallery{container-type:inline-size;display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.reportifact-image-gallery-tile{min-width:0}.reportifact-image-gallery-frame{position:relative;aspect-ratio:var(--reportifact-gallery-aspect-ratio);overflow:hidden;border-radius:8px;background:var(--reportifact-bg-subtle)}.reportifact-image-gallery-image,.reportifact-image-gallery-overlay{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.reportifact-image-gallery-image--contain{object-fit:contain}.reportifact-image-gallery-image--cover{object-fit:cover}.reportifact-image-gallery-overlay{pointer-events:none}.reportifact-image-gallery-empty{display:flex;height:100%;align-items:center;justify-content:center;color:var(--reportifact-text-muted);font-size:12px}.reportifact-image-gallery-skeleton{height:100%;min-height:160px}.reportifact-image-gallery-more{margin-top:10px;padding:0;border:0;background:transparent;color:var(--reportifact-accent);cursor:pointer;font:inherit;font-size:14px;font-weight:600;text-align:left}.reportifact-image-gallery-more:hover{text-decoration:underline}@container (max-width: 720px){.reportifact-image-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}.reportifact-figure{width:100%;margin:24px 0}.reportifact-figure-title{margin-bottom:10px;font-size:15px;font-weight:700}.reportifact-figure-skeleton{display:flex;min-height:280px;flex-direction:column;gap:16px;padding:16px;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-figure-fallback{display:block;width:100%;height:auto;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-figure-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:8px;color:var(--reportifact-text-muted, #64748b);font-size:13px}.reportifact-figure-caption a{color:var(--reportifact-accent, #0ea5e9)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
1
|
+
.reportifact{--reportifact-bg: #ffffff;--reportifact-toc-bg: #ffffff;--reportifact-bg-subtle: #f8fafc;--reportifact-bg-muted: #f1f5f9;--reportifact-bg-overlay: rgba(255, 255, 255, .9);--reportifact-text: #1f2937;--reportifact-text-muted: #64748b;--reportifact-text-faint: #94a3b8;--reportifact-border: #e2e8f0;--reportifact-error-bg: #fef2f2;--reportifact-error-text: #dc2626;--reportifact-highlight: #fef08a;--reportifact-accent: #0ea5e9;--reportifact-focus-border: #3b82f6;--reportifact-tone-low: #ef4444;--reportifact-tone-low-bg: #fee2e2;--reportifact-tone-low-border: #fecaca;--reportifact-tone-mid: #d97706;--reportifact-tone-mid-bg: #fef3c7;--reportifact-tone-mid-border: #fde68a;--reportifact-tone-high: #059669;--reportifact-tone-high-bg: #d1fae5;--reportifact-tone-high-border: #a7f3d0;--reportifact-widget-gap: 16px;--reportifact-section-gap: 32px;display:flex;flex-direction:column;color:var(--reportifact-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;font-size:14px;line-height:1.5}.dark .reportifact{--reportifact-tone-low: #f06464;--reportifact-tone-low-bg: rgba(239, 68, 68, .16);--reportifact-tone-low-border: rgba(239, 68, 68, .32);--reportifact-tone-mid: #d99a2b;--reportifact-tone-mid-bg: rgba(217, 119, 6, .16);--reportifact-tone-mid-border: rgba(217, 119, 6, .32);--reportifact-tone-high: #41b883;--reportifact-tone-high-bg: rgba(16, 185, 129, .14);--reportifact-tone-high-border: rgba(16, 185, 129, .3)}.reportifact-skeleton-line{height:16px;border-radius:4px;background:linear-gradient(90deg,var(--reportifact-border) 25%,var(--reportifact-bg-muted) 50%,var(--reportifact-border) 75%);background-size:200% 100%;animation:reportifact-skeleton-pulse 1.5s ease-in-out infinite}.reportifact-skeleton-column{display:flex;flex-direction:column;gap:12px}@keyframes reportifact-skeleton-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}.reportifact-widget-host{width:100%;min-width:0}.reportifact-widget-wrapper,.reportifact-widget-content{position:relative}.reportifact-widget-error{padding:16px;background:var(--reportifact-error-bg);border-radius:8px}.reportifact-widget-error-message{color:var(--reportifact-error-text);font-size:14px;text-align:center}.reportifact-chart-skeleton{background:var(--reportifact-bg);border:1px solid var(--reportifact-border);border-radius:8px;padding:16px;height:var(--reportifact-chart-height);display:flex;flex-direction:column;overflow:hidden}.reportifact-chart-skeleton-body{width:100%;flex:1;min-height:0;border-radius:4px}.reportifact-chart-container{background:var(--reportifact-bg);border:1px solid var(--reportifact-border);border-radius:8px;padding:16px;width:100%;height:var(--reportifact-chart-height);display:flex;flex-direction:column;overflow:hidden}.reportifact-chart{width:100%;flex:1;min-height:0}.reportifact-metric-cards{display:grid;grid-template-columns:repeat(4,minmax(92px,1fr));gap:10px;padding:12px;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-metric-card{position:relative;min-height:148px;overflow:hidden;padding:14px;border:1px solid var(--reportifact-border);border-radius:6px;background:var(--reportifact-bg)}.reportifact-metric-card-fill{position:absolute;inset:auto 0 0;border-top:1px solid transparent}.reportifact-metric-card--low .reportifact-metric-card-fill{border-top-color:var(--reportifact-tone-low-border);background:var(--reportifact-tone-low-bg)}.reportifact-metric-card--mid .reportifact-metric-card-fill{border-top-color:var(--reportifact-tone-mid-border);background:var(--reportifact-tone-mid-bg)}.reportifact-metric-card--high .reportifact-metric-card-fill{border-top-color:var(--reportifact-tone-high-border);background:var(--reportifact-tone-high-bg)}.reportifact-metric-card-label,.reportifact-metric-card-value,.reportifact-metric-card-description{position:relative;z-index:1}.reportifact-metric-card-label{display:block;color:var(--reportifact-text-muted);font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.reportifact-metric-card-value{display:block;margin-top:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:26px;line-height:1}.reportifact-metric-card--low .reportifact-metric-card-value{color:var(--reportifact-tone-low)}.reportifact-metric-card--mid .reportifact-metric-card-value{color:var(--reportifact-tone-mid)}.reportifact-metric-card--high .reportifact-metric-card-value{color:var(--reportifact-tone-high)}.reportifact-metric-card-description{margin:8px 0 0;color:var(--reportifact-text-muted);font-size:12px}@media (max-width: 720px){.reportifact-metric-cards{grid-template-columns:repeat(2,minmax(92px,1fr))}}.reportifact-metric-callout{overflow:hidden;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-metric-callout-header{display:grid;grid-template-columns:148px minmax(0,1fr);gap:14px;align-items:center;padding:14px 15px;border-bottom:1px solid var(--reportifact-border);background:var(--reportifact-bg-subtle)}.reportifact-metric-callout-label{color:var(--reportifact-text-muted);font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.reportifact-metric-callout-value{display:block;margin-top:5px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:28px;line-height:1}.reportifact-metric-callout-value--low{color:var(--reportifact-tone-low)}.reportifact-metric-callout-value--mid{color:var(--reportifact-tone-mid)}.reportifact-metric-callout-value--high{color:var(--reportifact-tone-high)}.reportifact-metric-callout-description,.reportifact-metric-callout-body{color:var(--reportifact-text-muted)}.reportifact-metric-callout-body{padding:13px 15px}.rm-skeleton{display:flex;flex-direction:column;gap:10px;padding:4px 0}.rm-skeleton-row{display:flex;gap:10px;align-items:center}.rm-title{font-weight:bolder;font-size:13px;margin-bottom:8px;color:var(--reportifact-text)}.rm-metrics{display:grid;grid-template-columns:auto 3.8em 1fr;align-items:center;gap:8px 10px;padding:2px 0;max-width:400px}.rm-metrics--with-pct{grid-template-columns:auto 3.8em 1fr auto}.rm-row{display:contents}.rm-name{font-weight:500;font-size:13px;white-space:nowrap;color:var(--reportifact-text)}.rm-value{font-family:monospace;font-size:13px;text-align:right;color:var(--reportifact-text-muted)}.rm-bar-track{height:6px;background:var(--reportifact-bg-muted);border-radius:3px;overflow:hidden;min-width:40px}.rm-bar-fill{height:100%;background:var(--reportifact-accent);border-radius:3px;transition:width .3s ease}.rm-pct{font-size:12px;color:var(--reportifact-text-muted);white-space:nowrap;min-width:3.2em;text-align:right}.rm-empty{grid-column:1 / -1;color:var(--reportifact-text-faint);font-style:italic;font-size:13px}.rm-table{width:100%;max-width:400px;border-collapse:collapse;font-size:13px}.rm-table th{text-align:left;padding:6px 8px;font-weight:500;border-bottom:1px solid var(--reportifact-border);color:var(--reportifact-text-muted);font-size:12px}.rm-table td{padding:5px 8px;border-bottom:1px solid var(--reportifact-border);color:var(--reportifact-text)}.rm-table tr:last-child td{border-bottom:none}.rm-table tbody tr:hover td{background:var(--reportifact-bg-subtle)}.reportifact-timeline-container{position:relative;background:var(--reportifact-bg);border:1px solid var(--reportifact-border);border-radius:8px;padding:16px;width:100%;height:var(--reportifact-chart-height);display:flex;flex-direction:column;overflow:hidden}.reportifact-timeline-toolbar{position:absolute;top:12px;right:12px;z-index:1;display:flex;gap:2px;border:1px solid var(--reportifact-border);border-radius:6px;padding:2px;background:var(--reportifact-bg-subtle)}.reportifact-timeline-mode{border:none;background:transparent;color:var(--reportifact-text-muted);font-size:11px;line-height:1;padding:4px 8px;border-radius:4px;cursor:pointer}.reportifact-timeline-mode.is-active{background:var(--reportifact-bg);color:var(--reportifact-text);box-shadow:0 1px 2px #00000014}.reportifact-image-gallery{container-type:inline-size;display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}.reportifact-image-gallery-tile{min-width:0}.reportifact-image-gallery-frame{position:relative;aspect-ratio:var(--reportifact-gallery-aspect-ratio);overflow:hidden;border-radius:8px;background:var(--reportifact-bg-subtle)}.reportifact-image-gallery-image,.reportifact-image-gallery-overlay{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.reportifact-image-gallery-image--contain{object-fit:contain}.reportifact-image-gallery-image--cover{object-fit:cover}.reportifact-image-gallery-overlay{pointer-events:none}.reportifact-image-gallery-empty{display:flex;height:100%;align-items:center;justify-content:center;color:var(--reportifact-text-muted);font-size:12px}.reportifact-image-gallery-skeleton{height:100%;min-height:160px}.reportifact-image-gallery-more{margin-top:10px;padding:0;border:0;background:transparent;color:var(--reportifact-accent);cursor:pointer;font:inherit;font-size:14px;font-weight:600;text-align:left}.reportifact-image-gallery-more:hover{text-decoration:underline}@container (max-width: 720px){.reportifact-image-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}.reportifact-figure{width:100%;margin:24px 0}.reportifact-figure-title{margin-bottom:10px;font-size:15px;font-weight:700}.reportifact-figure-skeleton{display:flex;min-height:280px;flex-direction:column;gap:16px;padding:16px;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-figure-fallback{display:block;width:100%;height:auto;border:1px solid var(--reportifact-border);border-radius:8px;background:var(--reportifact-bg)}.reportifact-figure-runtime-fallback{display:none}.reportifact-widget-host:has(.reportifact-widget-error)>.reportifact-widget-wrapper:has(+.reportifact-figure-runtime-fallback){display:none}.reportifact-widget-host:has(.reportifact-widget-error)>.reportifact-figure-runtime-fallback{display:block}.reportifact-figure-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:8px;color:var(--reportifact-text-muted, #64748b);font-size:13px}.reportifact-figure-caption a{color:var(--reportifact-accent, #0ea5e9)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
|
|
2
2
|
Theme: StackOverflow Light
|
|
3
3
|
Description: Light theme as used on stackoverflow.com
|
|
4
4
|
Author: stackoverflow.com
|
package/dist/widgets/chart.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Chart.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Chart.vue_vue_type_style_index_0_lang-Dj7m6i3v.cjs");exports.ReportifactChart=e._sfc_main;exports.default=e._sfc_main;
|
package/dist/widgets/chart.js
CHANGED
package/dist/widgets/figure.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("../ReportifactWidgetHost-A73gQ3bT.cjs"),d=require("../WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs"),s={class:"reportifact-figure"},u={key:0,class:"reportifact-figure-title"},f={class:"reportifact-widget-error-message"},k=["src","alt"],m={key:2},g=["src","alt"],v={key:0,class:"reportifact-figure-caption"},y={key:0},b=["href"],r=e.defineComponent({__name:"ReportifactFigure",props:{title:{default:void 0},caption:{default:void 0},loading:{type:Boolean,default:!1},error:{default:null},fallbackImage:{default:void 0},fallbackSrc:{default:void 0},fallbackAlt:{default:void 0},sourceHref:{default:void 0},sourceLabel:{default:"View source data"}},setup(t){const a=t,l=e.computed(()=>a.fallbackImage??a.fallbackSrc);return(c,o)=>(e.openBlock(),e.createElementBlock("figure",s,[e.createVNode(n.ReportifactWidgetHost,null,{default:e.withCtx(()=>[t.title?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createVNode(d._sfc_main,{loading:t.loading,error:t.error},{skeleton:e.withCtx(()=>[...o[0]||(o[0]=[e.createElementVNode("div",{class:"reportifact-figure-skeleton"},[e.createElementVNode("div",{class:"reportifact-skeleton-line",style:{width:"42%"}}),e.createElementVNode("div",{class:"reportifact-skeleton-line",style:{width:"100%",flex:"1"}})],-1)])]),fallback:e.withCtx(({error:i})=>[e.createElementVNode("div",f,e.toDisplayString(i),1)]),default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["loading","error"]),l.value?(e.openBlock(),e.createElementBlock("img",{key:1,class:"reportifact-figure-fallback reportifact-figure-runtime-fallback",src:l.value,alt:t.fallbackAlt||t.title||t.caption||"Widget preview",loading:"lazy"},null,8,k)):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("noscript",m,[e.createElementVNode("img",{class:"reportifact-figure-fallback",src:l.value,alt:t.fallbackAlt||t.title||t.caption||"Widget preview",loading:"lazy"},null,8,g)])):e.createCommentVNode("",!0)]),_:3}),t.caption||t.sourceHref?(e.openBlock(),e.createElementBlock("figcaption",v,[t.caption?(e.openBlock(),e.createElementBlock("span",y,e.toDisplayString(t.caption),1)):e.createCommentVNode("",!0),t.sourceHref?(e.openBlock(),e.createElementBlock("a",{key:1,href:t.sourceHref},e.toDisplayString(t.sourceLabel),9,b)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}});exports.ReportifactFigure=r;exports.default=r;
|
package/dist/widgets/figure.js
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { R as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as k, createElementBlock as t, openBlock as a, createVNode as n, createCommentVNode as l, withCtx as o, toDisplayString as c, renderSlot as m, createElementVNode as i } from "vue";
|
|
2
|
+
import { R as v } from "../ReportifactWidgetHost-BjKBwCWI.js";
|
|
3
|
+
import { _ as b } from "../WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js";
|
|
4
|
+
const h = { class: "reportifact-figure" }, y = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "reportifact-figure-title"
|
|
7
|
-
},
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "reportifact-widget-error-message"
|
|
10
|
-
}, v = { key: 1 }, w = ["src", "alt"], S = {
|
|
7
|
+
}, w = { class: "reportifact-widget-error-message" }, p = ["src", "alt"], H = { key: 2 }, S = ["src", "alt"], R = {
|
|
11
8
|
key: 0,
|
|
12
9
|
class: "reportifact-figure-caption"
|
|
13
|
-
},
|
|
10
|
+
}, V = { key: 0 }, x = ["href"], F = /* @__PURE__ */ g({
|
|
14
11
|
__name: "ReportifactFigure",
|
|
15
12
|
props: {
|
|
16
13
|
title: { default: void 0 },
|
|
17
14
|
caption: { default: void 0 },
|
|
18
15
|
loading: { type: Boolean, default: !1 },
|
|
19
16
|
error: { default: null },
|
|
17
|
+
fallbackImage: { default: void 0 },
|
|
20
18
|
fallbackSrc: { default: void 0 },
|
|
21
19
|
fallbackAlt: { default: void 0 },
|
|
22
20
|
sourceHref: { default: void 0 },
|
|
23
21
|
sourceLabel: { default: "View source data" }
|
|
24
22
|
},
|
|
25
23
|
setup(e) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
const f = e, r = k(() => f.fallbackImage ?? f.fallbackSrc);
|
|
25
|
+
return (d, s) => (a(), t("figure", h, [
|
|
26
|
+
n(v, null, {
|
|
27
|
+
default: o(() => [
|
|
28
|
+
e.title ? (a(), t("div", y, c(e.title), 1)) : l("", !0),
|
|
29
|
+
n(b, {
|
|
31
30
|
loading: e.loading,
|
|
32
31
|
error: e.error
|
|
33
32
|
}, {
|
|
34
|
-
skeleton:
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
skeleton: o(() => [...s[0] || (s[0] = [
|
|
34
|
+
i("div", { class: "reportifact-figure-skeleton" }, [
|
|
35
|
+
i("div", {
|
|
37
36
|
class: "reportifact-skeleton-line",
|
|
38
37
|
style: { width: "42%" }
|
|
39
38
|
}),
|
|
40
|
-
|
|
39
|
+
i("div", {
|
|
41
40
|
class: "reportifact-skeleton-line",
|
|
42
41
|
style: { width: "100%", flex: "1" }
|
|
43
42
|
})
|
|
44
43
|
], -1)
|
|
45
44
|
])]),
|
|
46
|
-
fallback:
|
|
47
|
-
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "reportifact-figure-fallback",
|
|
50
|
-
src: e.fallbackSrc,
|
|
51
|
-
alt: e.fallbackAlt || e.title || e.caption || "Widget preview",
|
|
52
|
-
loading: "lazy"
|
|
53
|
-
}, null, 8, h)) : (a(), t("div", y, r(s), 1))
|
|
45
|
+
fallback: o(({ error: u }) => [
|
|
46
|
+
i("div", w, c(u), 1)
|
|
54
47
|
]),
|
|
55
|
-
default:
|
|
56
|
-
|
|
48
|
+
default: o(() => [
|
|
49
|
+
m(d.$slots, "default")
|
|
57
50
|
]),
|
|
58
51
|
_: 3
|
|
59
52
|
}, 8, ["loading", "error"]),
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
r.value ? (a(), t("img", {
|
|
54
|
+
key: 1,
|
|
55
|
+
class: "reportifact-figure-fallback reportifact-figure-runtime-fallback",
|
|
56
|
+
src: r.value,
|
|
57
|
+
alt: e.fallbackAlt || e.title || e.caption || "Widget preview",
|
|
58
|
+
loading: "lazy"
|
|
59
|
+
}, null, 8, p)) : l("", !0),
|
|
60
|
+
r.value ? (a(), t("noscript", H, [
|
|
61
|
+
i("img", {
|
|
62
62
|
class: "reportifact-figure-fallback",
|
|
63
|
-
src:
|
|
63
|
+
src: r.value,
|
|
64
64
|
alt: e.fallbackAlt || e.title || e.caption || "Widget preview",
|
|
65
65
|
loading: "lazy"
|
|
66
|
-
}, null, 8,
|
|
66
|
+
}, null, 8, S)
|
|
67
67
|
])) : l("", !0)
|
|
68
68
|
]),
|
|
69
69
|
_: 3
|
|
70
70
|
}),
|
|
71
|
-
e.caption || e.sourceHref ? (a(), t("figcaption",
|
|
72
|
-
e.caption ? (a(), t("span",
|
|
71
|
+
e.caption || e.sourceHref ? (a(), t("figcaption", R, [
|
|
72
|
+
e.caption ? (a(), t("span", V, c(e.caption), 1)) : l("", !0),
|
|
73
73
|
e.sourceHref ? (a(), t("a", {
|
|
74
74
|
key: 1,
|
|
75
75
|
href: e.sourceHref
|
|
76
|
-
},
|
|
76
|
+
}, c(e.sourceLabel), 9, x)) : l("", !0)
|
|
77
77
|
])) : l("", !0)
|
|
78
78
|
]));
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
F as ReportifactFigure,
|
|
83
|
+
F as default
|
|
84
84
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Timeline.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../Timeline.vue_vue_type_style_index_0_lang-CZ8Y2pXG.cjs");exports.ReportifactTimeline=e._sfc_main;exports.default=e._sfc_main;
|
package/dist/widgets/timeline.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovalbee/reportifact",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Vue 3 component + Express middleware for reports from Parquet files via DuckDB",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/reportifact.js",
|
|
@@ -72,6 +72,11 @@
|
|
|
72
72
|
"files": [
|
|
73
73
|
"dist"
|
|
74
74
|
],
|
|
75
|
+
"scripts": {
|
|
76
|
+
"dev": "vite build --watch",
|
|
77
|
+
"build": "vue-tsc -b && vite build",
|
|
78
|
+
"prepublishOnly": "npm run build"
|
|
79
|
+
},
|
|
75
80
|
"peerDependencies": {
|
|
76
81
|
"duckdb": "^1.3.0",
|
|
77
82
|
"express": "^4.0.0 || ^5.0.0",
|
|
@@ -89,7 +94,7 @@
|
|
|
89
94
|
}
|
|
90
95
|
},
|
|
91
96
|
"dependencies": {
|
|
92
|
-
"echarts": "^6.
|
|
97
|
+
"echarts": "^6.1.0",
|
|
93
98
|
"highlight.js": "^11.11.1",
|
|
94
99
|
"marked": "^17.0.1",
|
|
95
100
|
"marked-highlight": "^2.2.3",
|
|
@@ -117,9 +122,5 @@
|
|
|
117
122
|
"parquet",
|
|
118
123
|
"duckdb"
|
|
119
124
|
],
|
|
120
|
-
"license": "MIT"
|
|
121
|
-
|
|
122
|
-
"dev": "vite build --watch",
|
|
123
|
-
"build": "vue-tsc -b && vite build"
|
|
124
|
-
}
|
|
125
|
-
}
|
|
125
|
+
"license": "MIT"
|
|
126
|
+
}
|