@club-employes/utopia 4.311.0 → 4.312.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MfePageProps, ShyHeaderMode } from './types';
|
|
1
|
+
import { MfePageProps, ShyHeaderMode, FooterVariant } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -18,6 +18,7 @@ declare const __VLS_component: DefineComponent<MfePageProps, {}, {}, {}, {}, Com
|
|
|
18
18
|
padding: "none" | "small" | "medium" | "large";
|
|
19
19
|
intro: string;
|
|
20
20
|
shyHeader: ShyHeaderMode;
|
|
21
|
+
footerVariant: FooterVariant;
|
|
21
22
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
22
23
|
footerSentinel: HTMLDivElement;
|
|
23
24
|
}, HTMLDivElement>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export type ShyHeaderMode = 'all' | 'title' | 'extra' | 'none';
|
|
2
|
+
export type FooterVariant = 'auto' | 'transparent';
|
|
2
3
|
export interface MfePageProps {
|
|
3
4
|
title: string;
|
|
4
5
|
intro?: string;
|
|
5
6
|
padding?: 'none' | 'small' | 'medium' | 'large';
|
|
6
7
|
shyHeader?: ShyHeaderMode;
|
|
7
8
|
maxWidth?: string;
|
|
9
|
+
footerVariant?: FooterVariant;
|
|
8
10
|
}
|
package/dist/index.js
CHANGED
|
@@ -47143,7 +47143,8 @@ const IB = ["id"], YB = {
|
|
|
47143
47143
|
intro: { default: "" },
|
|
47144
47144
|
padding: { default: "medium" },
|
|
47145
47145
|
shyHeader: { default: "all" },
|
|
47146
|
-
maxWidth: {}
|
|
47146
|
+
maxWidth: {},
|
|
47147
|
+
footerVariant: { default: "auto" }
|
|
47147
47148
|
},
|
|
47148
47149
|
setup(e) {
|
|
47149
47150
|
const t = e, n = Di(), o = P(() => {
|
|
@@ -47174,14 +47175,18 @@ const IB = ["id"], YB = {
|
|
|
47174
47175
|
"utopia-mfepage__footer--resting": d.value
|
|
47175
47176
|
}));
|
|
47176
47177
|
function k() {
|
|
47177
|
-
y?.disconnect(),
|
|
47178
|
+
if (y?.disconnect(), y = null, t.footerVariant === "transparent") {
|
|
47179
|
+
d.value = !0;
|
|
47180
|
+
return;
|
|
47181
|
+
}
|
|
47182
|
+
m.value && (y = new IntersectionObserver(
|
|
47178
47183
|
([v]) => {
|
|
47179
47184
|
d.value = v.isIntersecting;
|
|
47180
47185
|
},
|
|
47181
47186
|
{ threshold: 0 }
|
|
47182
47187
|
), y.observe(m.value));
|
|
47183
47188
|
}
|
|
47184
|
-
return De(m, k), gt(() => {
|
|
47189
|
+
return De(m, k), De(() => t.footerVariant, k), gt(() => {
|
|
47185
47190
|
window.addEventListener("scroll", i, { passive: !0 }), k();
|
|
47186
47191
|
}), Ot(() => {
|
|
47187
47192
|
window.removeEventListener("scroll", i), y?.disconnect();
|
|
@@ -47240,7 +47245,7 @@ const IB = ["id"], YB = {
|
|
|
47240
47245
|
}, null, 512)) : M("", !0)
|
|
47241
47246
|
], 6));
|
|
47242
47247
|
}
|
|
47243
|
-
}), QE = /* @__PURE__ */ fe(DG, [["__scopeId", "data-v-
|
|
47248
|
+
}), QE = /* @__PURE__ */ fe(DG, [["__scopeId", "data-v-7265fca4"]]);
|
|
47244
47249
|
export {
|
|
47245
47250
|
or as Accordion,
|
|
47246
47251
|
ar as AccordionItem,
|