arengibook 3.4.8-main → 3.4.9-main
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.
- package/dist/index.js +9 -12
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54255,9 +54255,9 @@ styleInject(css_248z$2);
|
|
|
54255
54255
|
* Retirer un ∞ rend exactement l'état d'avant sa pose. Sortie : `onChange` (rattachements, parents ∞
|
|
54256
54256
|
* compris) + `onInducedChange` (les parents en ∞).
|
|
54257
54257
|
*
|
|
54258
|
-
*
|
|
54259
|
-
* sa descendance ; décocher un nœud décoche sa descendance ET tous ses ancêtres
|
|
54260
|
-
*
|
|
54258
|
+
* Cascade (mode induit) : un parent explicite ✓ veut dire « lui et tout ce qui est dessous ». Le cocher
|
|
54259
|
+
* coche sa descendance ; décocher un nœud décoche sa descendance ET tous ses ancêtres. Cocher tous les
|
|
54260
|
+
* enfants un par un ne coche pas le parent. Un enfant induit (sous un ∞) reste non décochable.
|
|
54261
54261
|
*
|
|
54262
54262
|
* Le style (SCSS) ne définit que le chrome neutre : toutes les couleurs de
|
|
54263
54263
|
* périmètre sont dérivées à l'exécution à partir de `node.color`.
|
|
@@ -54690,8 +54690,6 @@ var TreeSelectMaquette = function TreeSelectMaquette(_ref2) {
|
|
|
54690
54690
|
showChildrenCount = _ref2$showChildrenCou === void 0 ? true : _ref2$showChildrenCou,
|
|
54691
54691
|
_ref2$showExpand = _ref2.showExpand,
|
|
54692
54692
|
showExpand = _ref2$showExpand === void 0 ? true : _ref2$showExpand,
|
|
54693
|
-
_ref2$cascadeSelectio = _ref2.cascadeSelection,
|
|
54694
|
-
cascadeSelection = _ref2$cascadeSelectio === void 0 ? false : _ref2$cascadeSelectio,
|
|
54695
54693
|
_ref2$induced = _ref2.induced,
|
|
54696
54694
|
induced = _ref2$induced === void 0 ? false : _ref2$induced,
|
|
54697
54695
|
inducedValue = _ref2.inducedValue,
|
|
@@ -54726,7 +54724,8 @@ var TreeSelectMaquette = function TreeSelectMaquette(_ref2) {
|
|
|
54726
54724
|
_ref2.appendTo;
|
|
54727
54725
|
var checkboxMode = selectionMode === 'checkbox';
|
|
54728
54726
|
var inducedMode = induced && checkboxMode;
|
|
54729
|
-
|
|
54727
|
+
// Mode induit : un parent explicite couvre toute sa descendance (cf. en-tête).
|
|
54728
|
+
var cascadeMode = inducedMode;
|
|
54730
54729
|
var inert = disabled || loading; // champ non interactif
|
|
54731
54730
|
|
|
54732
54731
|
// Chargement asynchrone (lazy) : enfants chargés à la demande sur les nœuds `lazy: true`.
|
|
@@ -55338,8 +55337,8 @@ var TreeSelectMaquette = function TreeSelectMaquette(_ref2) {
|
|
|
55338
55337
|
setLazyChildren(function (p) {
|
|
55339
55338
|
return _objectSpread2(_objectSpread2({}, p), {}, _defineProperty$e({}, node.id, kids || []));
|
|
55340
55339
|
});
|
|
55341
|
-
// Cascade : un parent déjà coché coche aussi les enfants qui arrivent.
|
|
55342
|
-
if (cascadeMode) {
|
|
55340
|
+
// Cascade : un parent explicite déjà coché coche aussi les enfants qui arrivent (sous un ∞, ils sont induits).
|
|
55341
|
+
if (cascadeMode && !draftRules.has(node.id)) {
|
|
55343
55342
|
setDraft(function (p) {
|
|
55344
55343
|
if (!p.has(node.id)) return p;
|
|
55345
55344
|
var n = new Set(p);
|
|
@@ -55695,12 +55694,10 @@ var TreeSelectMaquette = function TreeSelectMaquette(_ref2) {
|
|
|
55695
55694
|
var _p$label, _p$label2;
|
|
55696
55695
|
var p = findNode(data, ruleAbove(node.id));
|
|
55697
55696
|
showTooltip(e, "Induit par ".concat((_p$label = p === null || p === void 0 ? void 0 : p.label) !== null && _p$label !== void 0 ? _p$label : ''), "Les droits viennent de ".concat((_p$label2 = p === null || p === void 0 ? void 0 : p.label) !== null && _p$label2 !== void 0 ? _p$label2 : '', ". Pas de rattachement propre."), ariane);
|
|
55698
|
-
} else if (isRule) showTooltip(e, "Induit \xB7 ".concat(node.label), "Rattach\xE9 \xE0 ".concat(node.label, " seul. Ses enfants en d\xE9coulent. Cliquer le nom : passe en explicite."), ariane);else if (hasChildren) showTooltip(e, "Explicite \xB7 ".concat(node.label), "".concat(node.label, " et ses enfants d'aujourd'hui, nomm\xE9s un par un."), ariane);else showTooltip(e, node.label, "Rattache ".concat(node.label, "."), ariane);
|
|
55697
|
+
} else if (isRule) showTooltip(e, "Induit \xB7 ".concat(node.label), "Rattach\xE9 \xE0 ".concat(node.label, " seul. Ses enfants en d\xE9coulent. Cliquer le nom : passe en explicite."), ariane);else if (hasChildren) showTooltip(e, "Explicite \xB7 ".concat(node.label), "".concat(node.label, " et ses enfants d'aujourd'hui, nomm\xE9s un par un. D\xE9cocher un enfant d\xE9coche ").concat(node.label, "."), ariane);else showTooltip(e, node.label, "Rattache ".concat(node.label, ". Le retirer retire aussi ses parents."), ariane);
|
|
55699
55698
|
return;
|
|
55700
55699
|
}
|
|
55701
|
-
if (
|
|
55702
|
-
if (hasChildren) showTooltip(e, node.label, "Coche ".concat(node.label, " et toute sa descendance. D\xE9cocher un enfant d\xE9coche ").concat(node.label, "."), ariane);else showTooltip(e, node.label, "Coche ".concat(node.label, ". Le d\xE9cocher d\xE9coche aussi ses parents."), ariane);
|
|
55703
|
-
} else if (checkboxMode) showTooltip(e, "\xC9l\xE9ment \xB7 ".concat(node.label), "Coche ".concat(node.label, " seul, comme valeur, sans toucher les enfants."), ariane);else if (selectionMode === 'single') showTooltip(e, node.label, "S\xE9lectionne ".concat(node.label, "."), ariane);else showTooltip(e, node.label, "S\xE9lectionne ou retire ".concat(node.label, "."), ariane);
|
|
55700
|
+
if (checkboxMode) showTooltip(e, "\xC9l\xE9ment \xB7 ".concat(node.label), "Coche ".concat(node.label, " seul, comme valeur, sans toucher les enfants."), ariane);else if (selectionMode === 'single') showTooltip(e, node.label, "S\xE9lectionne ".concat(node.label, "."), ariane);else showTooltip(e, node.label, "S\xE9lectionne ou retire ".concat(node.label, "."), ariane);
|
|
55704
55701
|
},
|
|
55705
55702
|
onMouseLeave: function onMouseLeave() {
|
|
55706
55703
|
if (isValue) setPreview(null);
|