@club-employes/utopia 4.396.0 → 4.397.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.
|
@@ -29,6 +29,7 @@ declare const __VLS_component: DefineComponent<TreeProps, {
|
|
|
29
29
|
size: "sm" | "md" | "lg";
|
|
30
30
|
loading: boolean;
|
|
31
31
|
checkMode: "auto" | "manual";
|
|
32
|
+
propagateSelectionUp: boolean;
|
|
32
33
|
filterMode: "lenient" | "strict";
|
|
33
34
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
34
35
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -18,6 +18,13 @@ export interface TreeProps {
|
|
|
18
18
|
selectionKeys?: Record<string, TreeSelectionKey>;
|
|
19
19
|
selectionMode?: 'checkbox';
|
|
20
20
|
checkMode?: 'auto' | 'manual';
|
|
21
|
+
/**
|
|
22
|
+
* Quand un enfant est coché/décoché, répercute automatiquement l'état sur ses
|
|
23
|
+
* parents (checked/partialChecked recalculés à partir des enfants). Passer à
|
|
24
|
+
* `false` pour qu'un nœud parent coché reste inchangé tant qu'il n'est pas
|
|
25
|
+
* cliqué directement, indépendamment de l'état de ses enfants.
|
|
26
|
+
*/
|
|
27
|
+
propagateSelectionUp?: boolean;
|
|
21
28
|
loading?: boolean;
|
|
22
29
|
/** Affiche un champ de recherche au-dessus de l'arbre. */
|
|
23
30
|
filter?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -50201,6 +50201,7 @@ const zJ = /* @__PURE__ */ re(G3, [["__scopeId", "data-v-d0bba2ad"]]), F3 = /* @
|
|
|
50201
50201
|
selectionKeys: {},
|
|
50202
50202
|
selectionMode: {},
|
|
50203
50203
|
checkMode: { default: "manual" },
|
|
50204
|
+
propagateSelectionUp: { type: Boolean, default: !0 },
|
|
50204
50205
|
loading: { type: Boolean, default: !1 },
|
|
50205
50206
|
filter: { type: Boolean, default: !1 },
|
|
50206
50207
|
filterValue: {},
|
|
@@ -50308,7 +50309,7 @@ const zJ = /* @__PURE__ */ re(G3, [["__scopeId", "data-v-d0bba2ad"]]), F3 = /* @
|
|
|
50308
50309
|
const I = { ...r.value }, _ = !(I[E.key]?.checked ?? !1);
|
|
50309
50310
|
l.checkMode === "auto" ? [E.key, ...y(E)].forEach((N) => {
|
|
50310
50311
|
I[N] = { checked: _, partialChecked: !1 };
|
|
50311
|
-
}) : I[E.key] = { checked: _, partialChecked: !1 }, z(E, I), r.value = I, a("update:selectionKeys", { ...I }), a(_ ? "nodeChecked" : "nodeUnchecked", E);
|
|
50312
|
+
}) : I[E.key] = { checked: _, partialChecked: !1 }, l.propagateSelectionUp && z(E, I), r.value = I, a("update:selectionKeys", { ...I }), a(_ ? "nodeChecked" : "nodeUnchecked", E);
|
|
50312
50313
|
}
|
|
50313
50314
|
function G() {
|
|
50314
50315
|
const E = {};
|
|
@@ -50372,7 +50373,7 @@ const zJ = /* @__PURE__ */ re(G3, [["__scopeId", "data-v-d0bba2ad"]]), F3 = /* @
|
|
|
50372
50373
|
}
|
|
50373
50374
|
}), Md = {};
|
|
50374
50375
|
typeof Md == "function" && Md(I3);
|
|
50375
|
-
const xJ = /* @__PURE__ */ re(I3, [["__scopeId", "data-v-
|
|
50376
|
+
const xJ = /* @__PURE__ */ re(I3, [["__scopeId", "data-v-6ddf0dea"]]), mY = {
|
|
50376
50377
|
key: 0,
|
|
50377
50378
|
class: "mobile-menu-overlay"
|
|
50378
50379
|
}, vY = { class: "menu-header" }, gY = { class: "header-logo-container" }, bY = { class: "header-logo" }, hY = { class: "menu-footer" }, yY = /* @__PURE__ */ le({
|