@club-employes/utopia 4.355.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 = {
|