@club-employes/utopia 4.237.0 → 4.238.0
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.
|
@@ -21,7 +21,11 @@ declare const __VLS_component: DefineComponent<ArticlePreviewProps, {}, {}, {},
|
|
|
21
21
|
url: string;
|
|
22
22
|
}) => any) | undefined;
|
|
23
23
|
onBack?: (() => any) | undefined;
|
|
24
|
-
}>, {
|
|
24
|
+
}>, {
|
|
25
|
+
backText: string;
|
|
26
|
+
publishedAtPrefix: string;
|
|
27
|
+
downloadsTitle: string;
|
|
28
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
25
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
30
|
export default _default;
|
|
27
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -12,4 +12,10 @@ export interface ArticlePreviewProps {
|
|
|
12
12
|
}>;
|
|
13
13
|
image?: string;
|
|
14
14
|
content: string;
|
|
15
|
+
/** Text for the back button */
|
|
16
|
+
backText?: string;
|
|
17
|
+
/** Prefix text for the publication date */
|
|
18
|
+
publishedAtPrefix?: string;
|
|
19
|
+
/** Title for the downloads section */
|
|
20
|
+
downloadsTitle?: string;
|
|
15
21
|
}
|
package/dist/index.js
CHANGED
|
@@ -13757,21 +13757,25 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13757
13757
|
tags: {},
|
|
13758
13758
|
media: {},
|
|
13759
13759
|
image: {},
|
|
13760
|
-
content: {}
|
|
13760
|
+
content: {},
|
|
13761
|
+
backText: { default: "Retour à la liste" },
|
|
13762
|
+
publishedAtPrefix: { default: "Publié le" },
|
|
13763
|
+
downloadsTitle: { default: "Éléments téléchargeables" }
|
|
13761
13764
|
},
|
|
13762
13765
|
emits: ["back", "download"],
|
|
13763
|
-
setup(e) {
|
|
13764
|
-
|
|
13766
|
+
setup(e, { emit: t }) {
|
|
13767
|
+
const n = t;
|
|
13768
|
+
return (i, c) => (I(), N("div", DT, [
|
|
13765
13769
|
Y("div", IT, [
|
|
13766
13770
|
V(J(Bt), {
|
|
13767
13771
|
aspect: "outlined",
|
|
13768
13772
|
icon: "Chevron-left",
|
|
13769
13773
|
class: "utopia-article-preview__back",
|
|
13770
|
-
onClick:
|
|
13774
|
+
onClick: c[0] || (c[0] = (o) => n("back"))
|
|
13771
13775
|
}, {
|
|
13772
|
-
default: ne(() => [
|
|
13773
|
-
Oe(
|
|
13774
|
-
])
|
|
13776
|
+
default: ne(() => [
|
|
13777
|
+
Oe(ee(e.backText), 1)
|
|
13778
|
+
]),
|
|
13775
13779
|
_: 1
|
|
13776
13780
|
})
|
|
13777
13781
|
]),
|
|
@@ -13788,7 +13792,7 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13788
13792
|
]),
|
|
13789
13793
|
_: 1
|
|
13790
13794
|
}),
|
|
13791
|
-
Y("text", LT,
|
|
13795
|
+
Y("text", LT, ee(e.publishedAtPrefix) + " " + ee(e.publishedAt), 1)
|
|
13792
13796
|
]),
|
|
13793
13797
|
V(J(ut), {
|
|
13794
13798
|
as: "h1",
|
|
@@ -13801,14 +13805,14 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13801
13805
|
_: 1
|
|
13802
13806
|
}),
|
|
13803
13807
|
e.tags && e.tags.length ? (I(), N("div", HT, [
|
|
13804
|
-
(I(!0), N(We, null, xt(e.tags, (
|
|
13805
|
-
key:
|
|
13806
|
-
"left-icon":
|
|
13808
|
+
(I(!0), N(We, null, xt(e.tags, (o) => (I(), re(J(Kn), {
|
|
13809
|
+
key: o.label,
|
|
13810
|
+
"left-icon": o.icon,
|
|
13807
13811
|
size: "small",
|
|
13808
13812
|
variant: "default"
|
|
13809
13813
|
}, {
|
|
13810
13814
|
default: ne(() => [
|
|
13811
|
-
Oe(ee(
|
|
13815
|
+
Oe(ee(o.label), 1)
|
|
13812
13816
|
]),
|
|
13813
13817
|
_: 2
|
|
13814
13818
|
}, 1032, ["left-icon"]))), 128))
|
|
@@ -13834,21 +13838,21 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13834
13838
|
as: "h3",
|
|
13835
13839
|
size: "xl"
|
|
13836
13840
|
}, {
|
|
13837
|
-
default: ne(() => [
|
|
13838
|
-
Oe(
|
|
13839
|
-
])
|
|
13841
|
+
default: ne(() => [
|
|
13842
|
+
Oe(ee(e.downloadsTitle), 1)
|
|
13843
|
+
]),
|
|
13840
13844
|
_: 1
|
|
13841
13845
|
}),
|
|
13842
13846
|
Y("div", YT, [
|
|
13843
|
-
(I(!0), N(We, null, xt(e.media, (
|
|
13844
|
-
key:
|
|
13847
|
+
(I(!0), N(We, null, xt(e.media, (o) => (I(), re(J(Bt), {
|
|
13848
|
+
key: o.label,
|
|
13845
13849
|
aspect: "outlined",
|
|
13846
13850
|
icon: "Download",
|
|
13847
13851
|
"icon-position": "right",
|
|
13848
|
-
onClick: (
|
|
13852
|
+
onClick: (w) => n("download", o)
|
|
13849
13853
|
}, {
|
|
13850
13854
|
default: ne(() => [
|
|
13851
|
-
Oe(ee(
|
|
13855
|
+
Oe(ee(o.label), 1)
|
|
13852
13856
|
]),
|
|
13853
13857
|
_: 2
|
|
13854
13858
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -13859,11 +13863,11 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13859
13863
|
key: 0,
|
|
13860
13864
|
innerHTML: e.content
|
|
13861
13865
|
}, null, 8, ZT)) : K("", !0),
|
|
13862
|
-
qe(
|
|
13866
|
+
qe(i.$slots, "default", {}, void 0, !0)
|
|
13863
13867
|
])
|
|
13864
13868
|
]));
|
|
13865
13869
|
}
|
|
13866
|
-
}), cR = /* @__PURE__ */ pt(XT, [["__scopeId", "data-v-
|
|
13870
|
+
}), cR = /* @__PURE__ */ pt(XT, [["__scopeId", "data-v-7a7696a6"]]), JT = { class: "utopia-cardcampaign__row utopia-cardcampaign__row--header" }, VT = { class: "utopia-cardcampaign__header-content" }, WT = { class: "utopia-cardcampaign__title-container" }, UT = {
|
|
13867
13871
|
key: 0,
|
|
13868
13872
|
class: "utopia-cardcampaign__tooltip"
|
|
13869
13873
|
}, QT = {
|