@club-employes/utopia 4.239.0 → 4.241.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.
|
@@ -23,7 +23,9 @@ declare const __VLS_component: DefineComponent<ArticlePreviewProps, {}, {}, {},
|
|
|
23
23
|
onBack?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
backText: string;
|
|
26
|
+
showBackButton: boolean;
|
|
26
27
|
publishedAtPrefix: string;
|
|
28
|
+
showPublishedAtPrefix: boolean;
|
|
27
29
|
downloadsTitle: string;
|
|
28
30
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export interface ArticlePreviewProps {
|
|
2
2
|
type: string;
|
|
3
|
-
publishedAt
|
|
3
|
+
publishedAt?: string;
|
|
4
4
|
title: string;
|
|
5
5
|
tags?: Array<{
|
|
6
6
|
label: string;
|
|
@@ -14,8 +14,10 @@ export interface ArticlePreviewProps {
|
|
|
14
14
|
content: string;
|
|
15
15
|
/** Text for the back button */
|
|
16
16
|
backText?: string;
|
|
17
|
+
showBackButton?: boolean;
|
|
17
18
|
/** Prefix text for the publication date */
|
|
18
19
|
publishedAtPrefix?: string;
|
|
20
|
+
showPublishedAtPrefix?: boolean;
|
|
19
21
|
/** Title for the downloads section */
|
|
20
22
|
downloadsTitle?: string;
|
|
21
23
|
}
|
package/dist/index.js
CHANGED
|
@@ -13738,6 +13738,7 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13738
13738
|
], 10, CT));
|
|
13739
13739
|
}
|
|
13740
13740
|
}), hR = /* @__PURE__ */ gt(ST, [["__scopeId", "data-v-bc2b8566"]]), DT = { class: "utopia-article-preview" }, IT = { class: "utopia-article-preview__header" }, ET = { class: "utopia-article-preview__hero" }, jT = { class: "utopia-article-preview__title-section" }, BT = { class: "utopia-article-preview__meta" }, LT = {
|
|
13741
|
+
key: 0,
|
|
13741
13742
|
as: "span",
|
|
13742
13743
|
size: "sm",
|
|
13743
13744
|
weight: "medium",
|
|
@@ -13759,7 +13760,9 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13759
13760
|
image: {},
|
|
13760
13761
|
content: {},
|
|
13761
13762
|
backText: { default: "Retour à la liste" },
|
|
13763
|
+
showBackButton: { type: Boolean, default: !0 },
|
|
13762
13764
|
publishedAtPrefix: { default: "Publié le" },
|
|
13765
|
+
showPublishedAtPrefix: { type: Boolean, default: !0 },
|
|
13763
13766
|
downloadsTitle: { default: "Éléments téléchargeables" }
|
|
13764
13767
|
},
|
|
13765
13768
|
emits: ["back", "download"],
|
|
@@ -13767,17 +13770,18 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13767
13770
|
const n = t;
|
|
13768
13771
|
return (i, c) => (I(), N("div", DT, [
|
|
13769
13772
|
Y("div", IT, [
|
|
13770
|
-
|
|
13773
|
+
e.showBackButton ? (I(), re(J(Ht), {
|
|
13774
|
+
key: 0,
|
|
13771
13775
|
aspect: "outlined",
|
|
13772
13776
|
icon: "Chevron-left",
|
|
13773
|
-
|
|
13774
|
-
|
|
13777
|
+
onClick: c[0] || (c[0] = (o) => n("back")),
|
|
13778
|
+
color: "brand-secondary"
|
|
13775
13779
|
}, {
|
|
13776
13780
|
default: ne(() => [
|
|
13777
13781
|
ze(ee(e.backText), 1)
|
|
13778
13782
|
]),
|
|
13779
13783
|
_: 1
|
|
13780
|
-
})
|
|
13784
|
+
})) : Q("", !0)
|
|
13781
13785
|
]),
|
|
13782
13786
|
Y("div", ET, [
|
|
13783
13787
|
Y("div", jT, [
|
|
@@ -13792,7 +13796,12 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13792
13796
|
]),
|
|
13793
13797
|
_: 1
|
|
13794
13798
|
}),
|
|
13795
|
-
|
|
13799
|
+
e.publishedAt ? (I(), N("text", LT, [
|
|
13800
|
+
e.showPublishedAtPrefix ? (I(), N(Ue, { key: 0 }, [
|
|
13801
|
+
ze(ee(e.publishedAtPrefix), 1)
|
|
13802
|
+
], 64)) : Q("", !0),
|
|
13803
|
+
ze(ee(e.publishedAt), 1)
|
|
13804
|
+
])) : Q("", !0)
|
|
13796
13805
|
]),
|
|
13797
13806
|
V(J(dt), {
|
|
13798
13807
|
as: "h1",
|
|
@@ -13867,7 +13876,7 @@ const LO = { class: "utopia-emptystate" }, HO = { class: "utopia-emptystate__con
|
|
|
13867
13876
|
])
|
|
13868
13877
|
]));
|
|
13869
13878
|
}
|
|
13870
|
-
}), mR = /* @__PURE__ */ gt(XT, [["__scopeId", "data-v-
|
|
13879
|
+
}), mR = /* @__PURE__ */ gt(XT, [["__scopeId", "data-v-df397d20"]]), JT = { class: "utopia-cardcampaign__row utopia-cardcampaign__row--header" }, VT = { class: "utopia-cardcampaign__header-content" }, WT = { class: "utopia-cardcampaign__title-container" }, UT = {
|
|
13871
13880
|
key: 0,
|
|
13872
13881
|
class: "utopia-cardcampaign__tooltip"
|
|
13873
13882
|
}, QT = {
|
|
@@ -15708,7 +15717,7 @@ const fz = ["title"], pz = ["title"], vz = ["title"], hz = { class: "pm-image-po
|
|
|
15708
15717
|
}, 8, ["open", "title"])
|
|
15709
15718
|
]));
|
|
15710
15719
|
}
|
|
15711
|
-
}, Zz = /* @__PURE__ */ gt(Rz, [["__scopeId", "data-v-
|
|
15720
|
+
}, Zz = /* @__PURE__ */ gt(Rz, [["__scopeId", "data-v-ac886283"]]);
|
|
15712
15721
|
function Xz(e) {
|
|
15713
15722
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
15714
15723
|
}
|
|
@@ -56088,7 +56097,7 @@ const xR = /* @__PURE__ */ rt({
|
|
|
56088
56097
|
}, null, 8, qS)) : Q("", !0)
|
|
56089
56098
|
]));
|
|
56090
56099
|
}
|
|
56091
|
-
}, CR = /* @__PURE__ */ gt(_S, [["__scopeId", "data-v-
|
|
56100
|
+
}, CR = /* @__PURE__ */ gt(_S, [["__scopeId", "data-v-e80e3377"]]);
|
|
56092
56101
|
var so = {
|
|
56093
56102
|
_loadedStyleNames: /* @__PURE__ */ new Set(),
|
|
56094
56103
|
getLoadedStyleNames: function() {
|