@ovalbee/reportifact 0.0.1 → 0.0.3
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 +15 -14
- package/dist/{Chart.vue_vue_type_style_index_0_lang-BYILFTfl.js → Chart.vue_vue_type_style_index_0_lang-Bxrsp8Oz.js} +2353 -2292
- package/dist/Chart.vue_vue_type_style_index_0_lang-mN1IaQ_U.cjs +1 -0
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ak_OUL_c.js +197 -0
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-Ch0UPxhs.cjs +1 -0
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-ANFFq7CE.js +62 -0
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-CT9lFI28.cjs +1 -0
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-1hn2BMbU.js +46 -0
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-BDU7pisC.cjs +1 -0
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BfxK3vcz.js +140 -0
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CS7xiHRk.cjs +1 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-EmkZbKjQ.js +2646 -0
- package/dist/Timeline.vue_vue_type_style_index_0_lang-HOC43_F3.cjs +2 -0
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BY2t_Hvs.cjs +1 -0
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-BbnW8GXT.js +72 -0
- package/dist/index-3DTuh2Dr.cjs +47 -0
- package/dist/{index-DFz2A8yJ.js → index-DevYhXSC.js} +9252 -8377
- package/dist/portable/contracts.d.ts +6 -1
- package/dist/reportifact.cjs +24 -24
- package/dist/reportifact.js +1408 -1403
- package/dist/style.css +1 -1
- package/dist/widgets/Chart.vue.d.ts +7 -4
- package/dist/widgets/ImageGallery.vue.d.ts +7 -4
- package/dist/widgets/Markdown.vue.d.ts +1 -1
- package/dist/widgets/MetricCallout.vue.d.ts +5 -2
- package/dist/widgets/MetricCards.vue.d.ts +6 -3
- package/dist/widgets/MetricsTable.vue.d.ts +7 -4
- package/dist/widgets/ModelClassComparison.vue.d.ts +1 -1
- package/dist/widgets/ModelComparisonGallery.vue.d.ts +1 -1
- package/dist/widgets/Table.vue.d.ts +1 -1
- package/dist/widgets/Tensorboard.vue.d.ts +1 -1
- package/dist/widgets/Timeline.vue.d.ts +7 -4
- package/dist/widgets/WidgetWrapper.vue.d.ts +11 -5
- package/dist/widgets/chart.cjs +1 -1
- package/dist/widgets/chart.js +1 -1
- package/dist/widgets/image-gallery.cjs +1 -1
- package/dist/widgets/image-gallery.js +1 -1
- package/dist/widgets/metric-callout.cjs +1 -1
- package/dist/widgets/metric-callout.js +1 -1
- package/dist/widgets/metric-cards.cjs +1 -1
- package/dist/widgets/metric-cards.js +1 -1
- package/dist/widgets/metrics-table.cjs +1 -1
- package/dist/widgets/metrics-table.js +1 -1
- package/dist/widgets/timeline.cjs +1 -1
- package/dist/widgets/timeline.js +1 -1
- package/package.json +9 -13
- package/dist/Chart.vue_vue_type_style_index_0_lang-B4novMFC.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-BB4dG0CB.cjs +0 -1
- package/dist/ImageGallery.vue_vue_type_style_index_0_lang-DPY6mSdA.js +0 -191
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-BZbc-Wkf.js +0 -49
- package/dist/MetricCallout.vue_vue_type_style_index_0_lang-WpuALh8Z.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CDPSu7no.cjs +0 -1
- package/dist/MetricCards.vue_vue_type_style_index_0_lang-CfxCCXmB.js +0 -33
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-BzrxoJW4.cjs +0 -1
- package/dist/MetricsTable.vue_vue_type_style_index_0_lang-CO9HvYfr.js +0 -132
- 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/WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs +0 -1
- package/dist/WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js +0 -59
- package/dist/entries/figure.d.ts +0 -1
- package/dist/index-DmTzvbys.cjs +0 -47
- package/dist/portable/ReportifactFigure.vue.d.ts +0 -36
- package/dist/widgets/figure.cjs +0 -1
- package/dist/widgets/figure.d.ts +0 -6
- package/dist/widgets/figure.js +0 -84
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
title?: string;
|
|
3
|
-
caption?: string;
|
|
4
|
-
loading?: boolean;
|
|
5
|
-
error?: string | null;
|
|
6
|
-
fallbackSrc?: string;
|
|
7
|
-
fallbackAlt?: string;
|
|
8
|
-
sourceHref?: string;
|
|
9
|
-
sourceLabel?: string;
|
|
10
|
-
};
|
|
11
|
-
declare function __VLS_template(): {
|
|
12
|
-
attrs: Partial<{}>;
|
|
13
|
-
slots: {
|
|
14
|
-
default?(_: {}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {};
|
|
17
|
-
rootEl: HTMLElement;
|
|
18
|
-
};
|
|
19
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
21
|
-
title: string;
|
|
22
|
-
loading: boolean;
|
|
23
|
-
error: string | null;
|
|
24
|
-
caption: string;
|
|
25
|
-
fallbackSrc: string;
|
|
26
|
-
fallbackAlt: string;
|
|
27
|
-
sourceHref: string;
|
|
28
|
-
sourceLabel: string;
|
|
29
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
30
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
31
|
-
export default _default;
|
|
32
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
-
new (): {
|
|
34
|
-
$slots: S;
|
|
35
|
-
};
|
|
36
|
-
};
|
package/dist/widgets/figure.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("../ReportifactWidgetHost-A73gQ3bT.cjs"),i=require("../WidgetWrapper.vue_vue_type_style_index_0_lang-BQQ4Vv5j.cjs"),n={class:"reportifact-figure"},d={key:0,class:"reportifact-figure-title"},s=["src","alt"],f={key:1,class:"reportifact-widget-error-message"},u={key:1},k=["src","alt"],g={key:0,class:"reportifact-figure-caption"},m={key:0},y=["href"],a=e.defineComponent({__name:"ReportifactFigure",props:{title:{default:void 0},caption:{default:void 0},loading:{type:Boolean,default:!1},error:{default:null},fallbackSrc:{default:void 0},fallbackAlt:{default:void 0},sourceHref:{default:void 0},sourceLabel:{default:"View source data"}},setup(t){return(o,l)=>(e.openBlock(),e.createElementBlock("figure",n,[e.createVNode(r.ReportifactWidgetHost,null,{default:e.withCtx(()=>[t.title?(e.openBlock(),e.createElementBlock("div",d,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0),e.createVNode(i._sfc_main,{loading:t.loading,error:t.error},{skeleton:e.withCtx(()=>[...l[0]||(l[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:c})=>[t.fallbackSrc?(e.openBlock(),e.createElementBlock("img",{key:0,class:"reportifact-figure-fallback",src:t.fallbackSrc,alt:t.fallbackAlt||t.title||t.caption||"Widget preview",loading:"lazy"},null,8,s)):(e.openBlock(),e.createElementBlock("div",f,e.toDisplayString(c),1))]),default:e.withCtx(()=>[e.renderSlot(o.$slots,"default")]),_:3},8,["loading","error"]),t.fallbackSrc?(e.openBlock(),e.createElementBlock("noscript",u,[e.createElementVNode("img",{class:"reportifact-figure-fallback",src:t.fallbackSrc,alt:t.fallbackAlt||t.title||t.caption||"Widget preview",loading:"lazy"},null,8,k)])):e.createCommentVNode("",!0)]),_:3}),t.caption||t.sourceHref?(e.openBlock(),e.createElementBlock("figcaption",g,[t.caption?(e.openBlock(),e.createElementBlock("span",m,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,y)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))}});exports.ReportifactFigure=a;exports.default=a;
|
package/dist/widgets/figure.d.ts
DELETED
package/dist/widgets/figure.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, createElementBlock as t, openBlock as a, createVNode as f, createCommentVNode as l, withCtx as i, toDisplayString as r, renderSlot as u, createElementVNode as c } from "vue";
|
|
2
|
-
import { R as g } from "../ReportifactWidgetHost-BjKBwCWI.js";
|
|
3
|
-
import { _ as k } from "../WidgetWrapper.vue_vue_type_style_index_0_lang-D-oXqmI2.js";
|
|
4
|
-
const m = { class: "reportifact-figure" }, b = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "reportifact-figure-title"
|
|
7
|
-
}, h = ["src", "alt"], y = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "reportifact-widget-error-message"
|
|
10
|
-
}, v = { key: 1 }, w = ["src", "alt"], S = {
|
|
11
|
-
key: 0,
|
|
12
|
-
class: "reportifact-figure-caption"
|
|
13
|
-
}, H = { key: 0 }, R = ["href"], B = /* @__PURE__ */ d({
|
|
14
|
-
__name: "ReportifactFigure",
|
|
15
|
-
props: {
|
|
16
|
-
title: { default: void 0 },
|
|
17
|
-
caption: { default: void 0 },
|
|
18
|
-
loading: { type: Boolean, default: !1 },
|
|
19
|
-
error: { default: null },
|
|
20
|
-
fallbackSrc: { default: void 0 },
|
|
21
|
-
fallbackAlt: { default: void 0 },
|
|
22
|
-
sourceHref: { default: void 0 },
|
|
23
|
-
sourceLabel: { default: "View source data" }
|
|
24
|
-
},
|
|
25
|
-
setup(e) {
|
|
26
|
-
return (n, o) => (a(), t("figure", m, [
|
|
27
|
-
f(g, null, {
|
|
28
|
-
default: i(() => [
|
|
29
|
-
e.title ? (a(), t("div", b, r(e.title), 1)) : l("", !0),
|
|
30
|
-
f(k, {
|
|
31
|
-
loading: e.loading,
|
|
32
|
-
error: e.error
|
|
33
|
-
}, {
|
|
34
|
-
skeleton: i(() => [...o[0] || (o[0] = [
|
|
35
|
-
c("div", { class: "reportifact-figure-skeleton" }, [
|
|
36
|
-
c("div", {
|
|
37
|
-
class: "reportifact-skeleton-line",
|
|
38
|
-
style: { width: "42%" }
|
|
39
|
-
}),
|
|
40
|
-
c("div", {
|
|
41
|
-
class: "reportifact-skeleton-line",
|
|
42
|
-
style: { width: "100%", flex: "1" }
|
|
43
|
-
})
|
|
44
|
-
], -1)
|
|
45
|
-
])]),
|
|
46
|
-
fallback: i(({ error: s }) => [
|
|
47
|
-
e.fallbackSrc ? (a(), t("img", {
|
|
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))
|
|
54
|
-
]),
|
|
55
|
-
default: i(() => [
|
|
56
|
-
u(n.$slots, "default")
|
|
57
|
-
]),
|
|
58
|
-
_: 3
|
|
59
|
-
}, 8, ["loading", "error"]),
|
|
60
|
-
e.fallbackSrc ? (a(), t("noscript", v, [
|
|
61
|
-
c("img", {
|
|
62
|
-
class: "reportifact-figure-fallback",
|
|
63
|
-
src: e.fallbackSrc,
|
|
64
|
-
alt: e.fallbackAlt || e.title || e.caption || "Widget preview",
|
|
65
|
-
loading: "lazy"
|
|
66
|
-
}, null, 8, w)
|
|
67
|
-
])) : l("", !0)
|
|
68
|
-
]),
|
|
69
|
-
_: 3
|
|
70
|
-
}),
|
|
71
|
-
e.caption || e.sourceHref ? (a(), t("figcaption", S, [
|
|
72
|
-
e.caption ? (a(), t("span", H, r(e.caption), 1)) : l("", !0),
|
|
73
|
-
e.sourceHref ? (a(), t("a", {
|
|
74
|
-
key: 1,
|
|
75
|
-
href: e.sourceHref
|
|
76
|
-
}, r(e.sourceLabel), 9, R)) : l("", !0)
|
|
77
|
-
])) : l("", !0)
|
|
78
|
-
]));
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
export {
|
|
82
|
-
B as ReportifactFigure,
|
|
83
|
-
B as default
|
|
84
|
-
};
|