@club-employes/utopia 4.354.0 → 4.356.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,9 +1,9 @@
|
|
|
1
|
-
import { DeliveryMethodSelectorProps, DeliveryMethodProductRecap
|
|
1
|
+
import { DeliveryMethod, DeliveryMethodSelectorProps, DeliveryMethodProductRecap } from './types';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare const _default: DefineComponent<DeliveryMethodSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
4
|
-
"select-method": (
|
|
4
|
+
"select-method": (id: string) => any;
|
|
5
5
|
}, string, PublicProps, Readonly<DeliveryMethodSelectorProps> & Readonly<{
|
|
6
|
-
"onSelect-method"?: ((
|
|
6
|
+
"onSelect-method"?: ((id: string) => any) | undefined;
|
|
7
7
|
}>, {
|
|
8
8
|
loading: boolean;
|
|
9
9
|
products: DeliveryMethodProductRecap[];
|
|
@@ -14,6 +14,8 @@ export interface DeliveryMethodProductRecap {
|
|
|
14
14
|
export interface DeliveryMethod {
|
|
15
15
|
/** Whether this method is currently selected. Selection is driven externally. */
|
|
16
16
|
active?: boolean;
|
|
17
|
+
/** Method ID for tracking */
|
|
18
|
+
id?: string;
|
|
17
19
|
/** Method name, e.g. "Lettre suivie". */
|
|
18
20
|
title?: string;
|
|
19
21
|
/** Pre-formatted price, e.g. "3,30 €". The component never formats. */
|
package/dist/index.js
CHANGED
|
@@ -47094,7 +47094,7 @@ const FZ = /* @__PURE__ */ ue(g3, [["__scopeId", "data-v-ff8a4af5"]]), rE = { cl
|
|
|
47094
47094
|
const n = e, o = t, { isMobile: l } = wn(), a = H(!1), s = x(() => a.value ? n.methods : n.methods.slice(0, 1)), c = () => {
|
|
47095
47095
|
a.value = !0;
|
|
47096
47096
|
}, i = (u) => {
|
|
47097
|
-
o("select-method", u);
|
|
47097
|
+
!u.active && u.id && o("select-method", u.id);
|
|
47098
47098
|
};
|
|
47099
47099
|
return (u, A) => (r(), f("div", pE, [
|
|
47100
47100
|
v("div", {
|
|
@@ -47120,13 +47120,13 @@ const FZ = /* @__PURE__ */ ue(g3, [["__scopeId", "data-v-ff8a4af5"]]), rE = { cl
|
|
|
47120
47120
|
bg: "",
|
|
47121
47121
|
radius: 24
|
|
47122
47122
|
}))), 128)) : (r(), f(W, { key: 1 }, [
|
|
47123
|
-
(r(!0), f(W, null, me(s.value, (p
|
|
47124
|
-
key:
|
|
47123
|
+
(r(!0), f(W, null, me(s.value, (p) => (r(), T(u3, X({
|
|
47124
|
+
key: p.id,
|
|
47125
47125
|
class: ["utopia-deliverymethodselector__method", { "utopia-deliverymethodselector__method--mobile": h(l) }]
|
|
47126
47126
|
}, { ref_for: !0 }, p, {
|
|
47127
|
-
active:
|
|
47127
|
+
active: a.value && p.active,
|
|
47128
47128
|
loading: e.loading,
|
|
47129
|
-
onSelect: (
|
|
47129
|
+
onSelect: (m) => i(p)
|
|
47130
47130
|
}), null, 16, ["class", "active", "loading", "onSelect"]))), 128)),
|
|
47131
47131
|
!a.value && e.methods.length > 1 ? (r(), T(De, {
|
|
47132
47132
|
key: 0,
|
|
@@ -47148,7 +47148,7 @@ const FZ = /* @__PURE__ */ ue(g3, [["__scopeId", "data-v-ff8a4af5"]]), rE = { cl
|
|
|
47148
47148
|
}
|
|
47149
47149
|
}), rd = {};
|
|
47150
47150
|
typeof rd == "function" && rd(b3);
|
|
47151
|
-
const IZ = /* @__PURE__ */ ue(b3, [["__scopeId", "data-v-
|
|
47151
|
+
const IZ = /* @__PURE__ */ ue(b3, [["__scopeId", "data-v-a555adf0"]]), mE = { class: "utopia-custom-criteria-section__header" }, vE = {
|
|
47152
47152
|
key: 0,
|
|
47153
47153
|
class: "utopia-custom-criteria-section__empty"
|
|
47154
47154
|
}, gE = {
|
|
@@ -49888,7 +49888,7 @@ const WZ = /* @__PURE__ */ ue(M3, [["__scopeId", "data-v-c96357aa"]]), $I = { cl
|
|
|
49888
49888
|
}
|
|
49889
49889
|
}), gd = {};
|
|
49890
49890
|
typeof gd == "function" && gd(P3);
|
|
49891
|
-
const KZ = /* @__PURE__ */ ue(P3, [["__scopeId", "data-v-fa427faa"]]), PY = { class: "utopia-mfepage__header-title-inner" }, kY = { class: "utopia-mfepage__header-extra-inner" }, CY = { class: "utopia-mfepage__header-extra-pad" }, OY =
|
|
49891
|
+
const KZ = /* @__PURE__ */ ue(P3, [["__scopeId", "data-v-fa427faa"]]), PY = { class: "utopia-mfepage__header-title-inner" }, kY = { class: "utopia-mfepage__header-extra-inner" }, CY = { class: "utopia-mfepage__header-extra-pad" }, OY = 20, k3 = /* @__PURE__ */ ie({
|
|
49892
49892
|
__name: "MfePage",
|
|
49893
49893
|
props: {
|
|
49894
49894
|
title: {},
|
|
@@ -49913,7 +49913,7 @@ const KZ = /* @__PURE__ */ ue(P3, [["__scopeId", "data-v-fa427faa"]]), PY = { cl
|
|
|
49913
49913
|
s.value = !1, c = g;
|
|
49914
49914
|
return;
|
|
49915
49915
|
}
|
|
49916
|
-
y
|
|
49916
|
+
y > OY ? (s.value = !0, c = g) : y < -40 && (s.value = !1, c = g);
|
|
49917
49917
|
}
|
|
49918
49918
|
const u = x(() => ({
|
|
49919
49919
|
"utopia-mfepage__header--hidden": s.value && t.shyHeader === "all"
|
|
@@ -49999,7 +49999,7 @@ const KZ = /* @__PURE__ */ ue(P3, [["__scopeId", "data-v-fa427faa"]]), PY = { cl
|
|
|
49999
49999
|
}
|
|
50000
50000
|
}), bd = {};
|
|
50001
50001
|
typeof bd == "function" && bd(k3);
|
|
50002
|
-
const UZ = /* @__PURE__ */ ue(k3, [["__scopeId", "data-v-
|
|
50002
|
+
const UZ = /* @__PURE__ */ ue(k3, [["__scopeId", "data-v-91f236d8"]]);
|
|
50003
50003
|
export {
|
|
50004
50004
|
bs as Accordion,
|
|
50005
50005
|
hs as AccordionItem,
|