@ovalbee/reportifact 0.0.3 → 0.0.4
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 +1 -1
- package/dist/Chart-Cmh3H_Wv.js +5634 -0
- package/dist/Chart-jF5jqxGZ.cjs +1 -0
- package/dist/ImageGallery-CPZM1tc_.cjs +1 -0
- package/dist/ImageGallery-DQzba-4p.js +163 -0
- package/dist/MetricCallout-C7SUQTrj.js +39 -0
- package/dist/MetricCallout-CxhVOiqg.cjs +1 -0
- package/dist/MetricCards-DW-_QLhI.cjs +1 -0
- package/dist/MetricCards-JR4hUW4_.js +61 -0
- package/dist/MetricsTable-CH8vIbWG.cjs +1 -0
- package/dist/MetricsTable-OXsVygq0.js +98 -0
- package/dist/Reportifact.vue.d.ts +3 -2
- package/dist/ReportifactWidgetHost-DIlz4TxO.js +13 -0
- package/dist/ReportifactWidgetHost-xDT1ykZc.cjs +1 -0
- package/dist/Timeline-DSGSvRjj.js +295 -0
- package/dist/Timeline-P3CpGmBD.cjs +1 -0
- package/dist/WidgetWrapper-AmnP99H8.js +62 -0
- package/dist/WidgetWrapper-C0lc1m0V.cjs +1 -0
- package/dist/components/TableOfContents.vue.d.ts +3 -4
- package/dist/dist-DBIuOmpr.cjs +27 -0
- package/dist/dist-DEKe39T1.js +23629 -0
- package/dist/markdownTable-BCLRoyPL.cjs +2 -0
- package/dist/markdownTable-DHdS_81b.js +40 -0
- package/dist/middleware.cjs +1 -1
- package/dist/middleware.js +146 -175
- package/dist/portable/ReportifactWidgetHost.vue.d.ts +7 -11
- package/dist/portable/usePortableSource.d.ts +18 -0
- package/dist/reportifact.cjs +63 -64
- package/dist/reportifact.d.ts +1 -1
- package/dist/reportifact.js +4909 -5228
- package/dist/rolldown-runtime-DF3sbh8G.cjs +1 -0
- package/dist/style.css +2 -13
- package/dist/usePortableSource--y_qMDXB.js +55 -0
- package/dist/usePortableSource-CN5URH4d.cjs +1 -0
- package/dist/utils/tfeventsParser.cjs +1 -1
- package/dist/utils/tfeventsParser.js +298 -327
- package/dist/widgets/Card.vue.d.ts +2 -1
- package/dist/widgets/Chart.vue.d.ts +9 -14
- package/dist/widgets/HelpTooltip.vue.d.ts +2 -1
- package/dist/widgets/ImageGallery.vue.d.ts +9 -15
- package/dist/widgets/Markdown.vue.d.ts +3 -2
- package/dist/widgets/MetricCallout.vue.d.ts +7 -13
- package/dist/widgets/MetricCards.vue.d.ts +7 -10
- package/dist/widgets/MetricTable.vue.d.ts +2 -1
- package/dist/widgets/MetricsTable.vue.d.ts +9 -14
- package/dist/widgets/ModelClassComparison.vue.d.ts +3 -2
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +3 -2
- package/dist/widgets/Notice.vue.d.ts +2 -1
- package/dist/widgets/ReportifactWidget.vue.d.ts +3 -4
- package/dist/widgets/Scope.vue.d.ts +2 -3
- package/dist/widgets/Table.vue.d.ts +3 -2
- package/dist/widgets/Tensorboard.vue.d.ts +3 -2
- package/dist/widgets/Timeline.vue.d.ts +9 -14
- package/dist/widgets/WidgetWrapper.vue.d.ts +18 -20
- package/dist/widgets/chart-config/range.d.ts +2 -0
- package/dist/widgets/chart-config/shared.d.ts +25 -0
- package/dist/widgets/chart-config/types.d.ts +12 -3
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.d.ts +3 -3
- package/dist/widgets/chart.js +2 -5
- package/dist/widgets/chartSizing.d.ts +10 -0
- package/dist/widgets/contracts.cjs +1 -1
- package/dist/widgets/contracts.d.ts +1 -1
- package/dist/widgets/contracts.js +0 -1
- package/dist/widgets/host.cjs +1 -1
- package/dist/widgets/host.d.ts +3 -3
- package/dist/widgets/host.js +2 -5
- package/dist/widgets/image-gallery.cjs +1 -1
- package/dist/widgets/image-gallery.d.ts +3 -3
- package/dist/widgets/image-gallery.js +2 -5
- package/dist/widgets/markdownTable.d.ts +1 -1
- package/dist/widgets/metric-callout.cjs +1 -1
- package/dist/widgets/metric-callout.d.ts +3 -3
- package/dist/widgets/metric-callout.js +2 -5
- package/dist/widgets/metric-cards.cjs +1 -1
- package/dist/widgets/metric-cards.d.ts +3 -3
- package/dist/widgets/metric-cards.js +2 -5
- package/dist/widgets/metrics-table.cjs +1 -1
- package/dist/widgets/metrics-table.d.ts +3 -3
- package/dist/widgets/metrics-table.js +2 -5
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.d.ts +3 -3
- package/dist/widgets/timeline.js +2 -5
- package/package.json +5 -5
- package/dist/Chart.vue_vue_type_style_index_0_lang-Bxrsp8Oz.js +0 -5956
- package/dist/Chart.vue_vue_type_style_index_0_lang-mN1IaQ_U.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ak_OUL_c.js +0 -197
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ch0UPxhs.cjs +0 -1
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-ANFFq7CE.js +0 -62
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-CT9lFI28.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-1hn2BMbU.js +0 -46
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-BDU7pisC.cjs +0 -1
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BfxK3vcz.js +0 -140
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CS7xiHRk.cjs +0 -1
- package/dist/ReportifactWidgetHost-A73gQ3bT.cjs +0 -1
- package/dist/ReportifactWidgetHost-BjKBwCWI.js +0 -17
- package/dist/Timeline.vue_vue_type_style_index_0_lang-EmkZbKjQ.js +0 -2646
- package/dist/Timeline.vue_vue_type_style_index_0_lang-HOC43_F3.cjs +0 -2
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BY2t_Hvs.cjs +0 -1
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BbnW8GXT.js +0 -72
- package/dist/index-3DTuh2Dr.cjs +0 -47
- package/dist/index-DevYhXSC.js +0 -22104
- package/dist/markdownTable-B5207r3E.js +0 -32
- package/dist/markdownTable-Cbn1Du3L.cjs +0 -2
- package/dist/useFetch-BfOAq-Kg.cjs +0 -1
- package/dist/useFetch-CHQm_TmB.js +0 -35
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
function c(e) {
|
|
2
|
-
return e.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((r) => r.trim());
|
|
3
|
-
}
|
|
4
|
-
function p(e) {
|
|
5
|
-
return e.trim().toLowerCase().replace(/[^a-z0-9]+([a-z0-9])/g, (r, n) => n.toUpperCase()).replace(/[^a-z0-9]/g, "");
|
|
6
|
-
}
|
|
7
|
-
function o(e) {
|
|
8
|
-
return /^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/.test(e);
|
|
9
|
-
}
|
|
10
|
-
function l(e) {
|
|
11
|
-
const r = e.split(`
|
|
12
|
-
`).map((t) => t.trim()).filter((t) => t.includes("|")), n = r.findIndex((t, i) => i + 1 < r.length && o(r[i + 1]));
|
|
13
|
-
if (n < 0) return [];
|
|
14
|
-
const m = c(r[n]).map(p);
|
|
15
|
-
return r.slice(n + 2).filter((t) => !o(t)).map((t) => {
|
|
16
|
-
const i = c(t);
|
|
17
|
-
return m.reduce((s, u, a) => (s[u] = i[a] ?? "", s), {});
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
function d(e) {
|
|
21
|
-
const r = typeof e == "number" ? e : Number(e);
|
|
22
|
-
return Number.isFinite(r) ? r >= 0.75 ? "high" : r >= 0.45 ? "mid" : "low" : "mid";
|
|
23
|
-
}
|
|
24
|
-
function b(e) {
|
|
25
|
-
const r = typeof e == "number" ? e : Number(e);
|
|
26
|
-
return Number.isFinite(r) ? Math.max(0, Math.min(1, r)) * 100 : 0;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
b as a,
|
|
30
|
-
d as m,
|
|
31
|
-
l as p
|
|
32
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";function c(e){return e.trim().replace(/^\|/,"").replace(/\|$/,"").split("|").map(r=>r.trim())}function l(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+([a-z0-9])/g,(r,n)=>n.toUpperCase()).replace(/[^a-z0-9]/g,"")}function o(e){return/^\s*\|?\s*:?-{3,}:?\s*(\|\s*:?-{3,}:?\s*)+\|?\s*$/.test(e)}function p(e){const r=e.split(`
|
|
2
|
-
`).map(t=>t.trim()).filter(t=>t.includes("|")),n=r.findIndex((t,i)=>i+1<r.length&&o(r[i+1]));if(n<0)return[];const m=c(r[n]).map(l);return r.slice(n+2).filter(t=>!o(t)).map(t=>{const i=c(t);return m.reduce((s,u,a)=>(s[u]=i[a]??"",s),{})})}function f(e){const r=typeof e=="number"?e:Number(e);return Number.isFinite(r)?r>=.75?"high":r>=.45?"mid":"low":"mid"}function d(e){const r=typeof e=="number"?e:Number(e);return Number.isFinite(r)?Math.max(0,Math.min(1,r))*100:0}exports.metricPercent=d;exports.metricTone=f;exports.parseMarkdownTable=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("vue");function v(a,l={}){const{immediate:u=!0,transformUrl:c,onSuccess:i,onError:f}=l,r=n.ref(!0),s=n.ref(null);async function o(){try{const e=c?c(a.value):a.value;if(!e||e===""){r.value=!1;return}r.value=!0,s.value=null;const t=await fetch(e);if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);i&&await i(t)}catch(e){const t=e instanceof Error?e:new Error(String(e));s.value=t.message,f&&f(t)}finally{r.value=!1}}return n.watch(a,e=>{(u||e&&e!=="")&&o()}),u&&n.onMounted(()=>{o()}),{loading:r,error:s,fetchData:o}}exports.useFetch=v;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ref as i, watch as v, onMounted as h } from "vue";
|
|
2
|
-
function w(a, l = {}) {
|
|
3
|
-
const { immediate: s = !0, transformUrl: u, onSuccess: c, onError: f } = l, r = i(!0), n = i(null);
|
|
4
|
-
async function o() {
|
|
5
|
-
try {
|
|
6
|
-
const t = u ? u(a.value) : a.value;
|
|
7
|
-
if (!t || t === "") {
|
|
8
|
-
r.value = !1;
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
r.value = !0, n.value = null;
|
|
12
|
-
const e = await fetch(t);
|
|
13
|
-
if (!e.ok)
|
|
14
|
-
throw new Error(`HTTP ${e.status}: ${e.statusText}`);
|
|
15
|
-
c && await c(e);
|
|
16
|
-
} catch (t) {
|
|
17
|
-
const e = t instanceof Error ? t : new Error(String(t));
|
|
18
|
-
n.value = e.message, f && f(e);
|
|
19
|
-
} finally {
|
|
20
|
-
r.value = !1;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return v(a, (t) => {
|
|
24
|
-
(s || t && t !== "") && o();
|
|
25
|
-
}), s && h(() => {
|
|
26
|
-
o();
|
|
27
|
-
}), {
|
|
28
|
-
loading: r,
|
|
29
|
-
error: n,
|
|
30
|
-
fetchData: o
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
w as u
|
|
35
|
-
};
|