@orangelogic/design-system 2.167.0 → 2.168.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.
- package/library/chunks/{folder-select.BSFjkzJr.js → folder-select.bm-tgOMN.js} +1 -1
- package/library/chunks/{tree.vn5sHbdt.js → tree.C3OC_XP7.js} +30 -30
- package/library/components/atoms.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/types.js +2 -2
- package/library/package.json +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { C as fe } from "./input.DOorVTYZ.js";
|
|
|
3
3
|
import te from "../components/line-clamp.js";
|
|
4
4
|
import me from "../components/select.js";
|
|
5
5
|
import ye from "../components/tag.js";
|
|
6
|
-
import { C as S, a as ge } from "./tree.
|
|
6
|
+
import { C as S, a as ge } from "./tree.C3OC_XP7.js";
|
|
7
7
|
import { n as s, C as B } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as M, F as xe, A as be } from "./endpoints.CwgTrs4A.js";
|
|
9
9
|
import { M as U } from "./asset-link-format.ClaYu_v8.js";
|
|
@@ -4,15 +4,15 @@ import { c as U } from "./custom-element.L4WJXn1j.js";
|
|
|
4
4
|
import { L as N } from "./i18n.Bchq8v1d.js";
|
|
5
5
|
import { c as X } from "./math.DuKzLacZ.js";
|
|
6
6
|
import { w as b } from "./watch.DJF5K-8U.js";
|
|
7
|
-
import { i as R, x as m, E
|
|
7
|
+
import { i as R, x as m, E } from "./lit-element.jLBm65_O.js";
|
|
8
8
|
import { r as g } from "./state.CSDxrqLd.js";
|
|
9
9
|
import { e as f } from "./query.BBf1UFkC.js";
|
|
10
|
-
import { s as L, a as D, b as
|
|
11
|
-
import { e as
|
|
10
|
+
import { s as L, a as D, b as $ } from "./event.BeKOsirN.js";
|
|
11
|
+
import { e as C } from "./class-map.BiVq-cVR.js";
|
|
12
12
|
import { o as _ } from "./if-defined.BRoBj_Rp.js";
|
|
13
13
|
import { l as j } from "./live.DCegntDo.js";
|
|
14
14
|
import { n as y } from "./when.Dr1es41R.js";
|
|
15
|
-
import { g as
|
|
15
|
+
import { g as z, s as G } from "./animation-registry.HmpwNuGH.js";
|
|
16
16
|
import K from "../components/checkbox.js";
|
|
17
17
|
import { C as V } from "./icon.D5iM9wXS.js";
|
|
18
18
|
import W from "../components/line-clamp.js";
|
|
@@ -29,7 +29,7 @@ function te(e, t, i) {
|
|
|
29
29
|
a && clearTimeout(a), a = window.setTimeout(d, t);
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral-900);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([variant=text]){--selected-background-color:transparent;--selected-color:inherit;--hover-background-color:transparent;--active-background-color:transparent;--hover-color:var(--cx-color-primary)}:host([variant=text]:not([aria-disabled=true])) .tree-item__item:hover{color:var(--hover-color)}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`,
|
|
32
|
+
const ie = R`:host{--selected-color:var(--cx-color-primary-600);--selected-background-color:var(--cx-color-primary-50);--hover-background-color:var(--cx-menu-item-background-color-hover);--active-background-color:var(--cx-color-neutral-200);--item-padding:var(--cx-spacing-2x-small) var(--cx-spacing-x-small);outline:0;display:block}:host(:focus-visible) .tree-item{outline:var(--cx-focus-ring);outline-offset:calc(-1 * var(--cx-focus-ring-width))}[hidden]{display:none!important}slot:not([name])::slotted(cx-icon){margin-inline-end:var(--cx-spacing-x-small)}.tree-item{color:var(--cx-color-neutral-900);cursor:pointer;-webkit-user-select:none;user-select:none;flex-direction:column;align-items:stretch;display:flex;position:relative}.tree-item__checkbox{margin-inline-end:var(--cx-spacing-x-small)}.tree-item__expand-button,.tree-item__checkbox,.tree-item__label{font-family:var(--cx-font-sans);font-size:var(--cx-tree-item-font-size,var(--cx-font-size-small));font-weight:var(--cx-tree-item-font-weight,var(--cx-font-weight-medium));line-height:var(--cx-tree-item-line-height,var(--cx-line-height-large));letter-spacing:var(--cx-tree-item-letter-spacing,var(--cx-letter-spacing-normal))}.tree-item__checkbox::part(base){align-items:center;display:flex}.tree-item__checkbox::part(label){margin-inline-start:0}.tree-item__indentation{flex-shrink:0;width:1em;display:block}.tree-item__expand-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.tree-item__expand-button{box-sizing:content-box;color:var(--cx-color-neutral-500);cursor:pointer;min-width:max(1em,1rem);min-height:max(1em,1rem);transition:var(--cx-transition-medium) rotate ease;flex-shrink:0;justify-content:center;align-items:center;display:flex;position:relative}.tree-item--expanded .tree-item__expand-button{rotate:90deg}.tree-item--expanded.tree-item--rtl .tree-item__expand-button{rotate:-90deg}.tree-item--expanded slot[name=expand-icon],.tree-item:not(.tree-item--expanded) slot[name=collapse-icon]{display:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item .tree-item__expand-icon-slot{color:var(--selected-color)}.tree-item:not(.tree-item--has-expand-button) .tree-item__expand-icon-slot{visibility:hidden;opacity:0;pointer-events:none}.tree-item__expand-button--visible{cursor:pointer}.tree-item__item{border-radius:var(--cx-border-radius-large);padding:var(--item-padding,var(--cx-spacing-x-small) var(--cx-spacing-small));transition:var(--cx-transition-x-fast) background-color ease;align-items:center;display:flex}.tree-item__item:hover{background-color:var(--hover-background-color)}.tree-item__item:active{background-color:var(--active-background-color)}.tree-item--disabled .tree-item__item{opacity:.5;cursor:default;outline:none}:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{background-color:var(--selected-background-color);color:var(--selected-color)}:host(:not([aria-disabled=true])) .tree-item__expand-button{color:var(--cx-color-neutral)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__expand-button,:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){color:var(--cx-color-neutral-0)}:host(:not([aria-disabled=true]):not([variant=text])) .tree-item--selected .tree-item__actions::slotted(cx-icon-button){--hover-background-color:var(--cx-color-neutral-0)}.tree-item__label{align-items:center;display:flex}.tree-item__actions{font-size:var(--cx-font-size-medium);align-items:center;width:fit-content;margin-inline-start:auto;display:flex}.tree-item__actions::slotted(*){visibility:hidden;opacity:0;transition:var(--cx-transition-x-fast) visibility, var(--cx-transition-x-fast) opacity ease}.tree-item__item:hover .tree-item__actions::slotted(*){visibility:visible;opacity:1}@supports not (overlay:auto){.tree-item__actions::slotted(cx-dropdown[open]){visibility:visible;opacity:1}}.tree-item__children{font-size:calc(1em + var(--indent-size,var(--cx-spacing-medium)));gap:var(--children-gap,0);flex-direction:column;display:flex}@media (forced-colors:active){:host(:not([aria-disabled=true])) .tree-item--selected .tree-item__item{outline:1px dashed selecteditem}}::slotted(cx-tree-item){--hover-background-color:inherit;--active-background-color:inherit;--selected-background-color:inherit;--selected-color:inherit}:host([variant=text]){--selected-background-color:transparent;--selected-color:inherit;--hover-background-color:transparent;--active-background-color:transparent;--hover-color:var(--cx-color-primary)}:host([variant=text]:not([aria-disabled=true])) .tree-item__item:hover{color:var(--hover-color)}:host([data-dragging]){position:relative}:host([data-dragging=inside]){background-color:var(--cx-color-primary-400)}:host([data-dragging=before]):before{content:"";border-top:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;top:0;left:0}:host([data-dragging=after]):before{content:"";border-bottom:var(--cx-spacing-2x-small) solid var(--cx-color-primary-400);width:100%;position:absolute;bottom:0;left:0}`, I = "tree-sortable", w = 0.2, P = (e) => e == null;
|
|
33
33
|
function ae() {
|
|
34
34
|
function e() {
|
|
35
35
|
}
|
|
@@ -54,26 +54,26 @@ function ae() {
|
|
|
54
54
|
putSortable: x,
|
|
55
55
|
target: p
|
|
56
56
|
}) {
|
|
57
|
-
if (t = null, !i || !i.options[
|
|
57
|
+
if (t = null, !i || !i.options[I] || !i.options.getDropZone || P(i.options.insertBeforeZonePercentage) || P(i.options.insertAfterZonePercentage) || !["CX-TREE-ITEM", "CX-TREE"].includes(p.tagName) || p.hasAttribute("no-drag")) {
|
|
58
58
|
a();
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
|
-
const
|
|
62
|
-
if (!
|
|
61
|
+
const A = i.options.getDropZone(p);
|
|
62
|
+
if (!A) {
|
|
63
63
|
a();
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
|
-
const
|
|
66
|
+
const B = A.getBoundingClientRect(), T = (u.clientY - B.top) / B.height, S = x || this.sortable;
|
|
67
67
|
S.captureAnimationState(), S !== i && i.captureAnimationState();
|
|
68
68
|
const q = p.parentNode;
|
|
69
69
|
if (d && q)
|
|
70
|
-
if (
|
|
70
|
+
if (T < i.options.insertBeforeZonePercentage)
|
|
71
71
|
t = {
|
|
72
72
|
dragEl: d,
|
|
73
73
|
el: p,
|
|
74
74
|
position: -1
|
|
75
75
|
}, p.setAttribute("data-dragging", "before");
|
|
76
|
-
else if (
|
|
76
|
+
else if (T > i.options.insertAfterZonePercentage)
|
|
77
77
|
t = {
|
|
78
78
|
dragEl: d,
|
|
79
79
|
el: p,
|
|
@@ -111,7 +111,7 @@ function ae() {
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}, Object.assign(e, {
|
|
114
|
-
pluginName:
|
|
114
|
+
pluginName: I
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
class v extends Q {
|
|
@@ -131,8 +131,8 @@ const M = (e) => ({
|
|
|
131
131
|
fallbackOnBody: !0,
|
|
132
132
|
forceFallback: J(),
|
|
133
133
|
getDropZone: (t) => t?.shadowRoot?.querySelector(".tree-item__item"),
|
|
134
|
-
insertAfterZonePercentage: 1 -
|
|
135
|
-
insertBeforeZonePercentage:
|
|
134
|
+
insertAfterZonePercentage: 1 - w,
|
|
135
|
+
insertBeforeZonePercentage: w,
|
|
136
136
|
invertSwap: !0,
|
|
137
137
|
onStart(t) {
|
|
138
138
|
if (e.onStart?.(t), t.item.tagName === "CX-TREE-ITEM") {
|
|
@@ -140,8 +140,8 @@ const M = (e) => ({
|
|
|
140
140
|
i.expanded = !1;
|
|
141
141
|
}
|
|
142
142
|
},
|
|
143
|
-
[
|
|
144
|
-
swapThreshold:
|
|
143
|
+
[I]: !0,
|
|
144
|
+
swapThreshold: w
|
|
145
145
|
});
|
|
146
146
|
var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, s = (e, t, i, a) => {
|
|
147
147
|
for (var r = a > 1 ? void 0 : a ? oe(t, i) : t, n = e.length - 1, d; n >= 0; n--)
|
|
@@ -170,12 +170,12 @@ let o = class extends F {
|
|
|
170
170
|
}
|
|
171
171
|
async animateCollapse() {
|
|
172
172
|
this.emit("cx-collapse"), await L(this.childrenContainer);
|
|
173
|
-
const { keyframes: e, options: t } =
|
|
173
|
+
const { keyframes: e, options: t } = z(this, "tree-item.collapse", {
|
|
174
174
|
dir: this.localize.dir()
|
|
175
175
|
});
|
|
176
176
|
await D(
|
|
177
177
|
this.childrenContainer,
|
|
178
|
-
|
|
178
|
+
$(e, this.childrenContainer.scrollHeight),
|
|
179
179
|
t
|
|
180
180
|
), this.childrenContainer.hidden = !0, this.emit("cx-after-collapse");
|
|
181
181
|
}
|
|
@@ -198,12 +198,12 @@ let o = class extends F {
|
|
|
198
198
|
}
|
|
199
199
|
async animateExpand() {
|
|
200
200
|
this.emit("cx-expand"), await L(this.childrenContainer), this.childrenContainer.hidden = !1;
|
|
201
|
-
const { keyframes: e, options: t } =
|
|
201
|
+
const { keyframes: e, options: t } = z(this, "tree-item.expand", {
|
|
202
202
|
dir: this.localize.dir()
|
|
203
203
|
});
|
|
204
204
|
await D(
|
|
205
205
|
this.childrenContainer,
|
|
206
|
-
|
|
206
|
+
$(e, this.childrenContainer.scrollHeight),
|
|
207
207
|
t
|
|
208
208
|
), this.childrenContainer.style.height = "auto", this.emit("cx-after-expand");
|
|
209
209
|
}
|
|
@@ -227,7 +227,7 @@ let o = class extends F {
|
|
|
227
227
|
this.expanded ? this.lazy ? (this.loading = !0, this.emit("cx-lazy-load")) : this.animateExpand() : this.animateCollapse();
|
|
228
228
|
}
|
|
229
229
|
async handleLazyChange() {
|
|
230
|
-
!this.lazy && this.loading && (this.loading = !1, this.handleChildrenSlotChange()), this.selected && (await this.updateComplete,
|
|
230
|
+
!this.lazy && this.loading && (this.loading = !1, this.handleChildrenSlotChange()), this.selected && (await this.updateComplete, k(this)), this.emit("cx-lazy-change");
|
|
231
231
|
}
|
|
232
232
|
/** Gets all the nested tree items in this node. */
|
|
233
233
|
getChildrenItems({
|
|
@@ -239,7 +239,7 @@ let o = class extends F {
|
|
|
239
239
|
}
|
|
240
240
|
renderExpandButton() {
|
|
241
241
|
const e = this.localize.dir() === "rtl", t = this.showExpandButton;
|
|
242
|
-
return m`<div part="expand-button" class=${
|
|
242
|
+
return m`<div part="expand-button" class=${C({
|
|
243
243
|
"tree-item__expand-button": !0,
|
|
244
244
|
"tree-item__expand-button--visible": t
|
|
245
245
|
})} aria-hidden="true">${y(
|
|
@@ -287,7 +287,7 @@ let o = class extends F {
|
|
|
287
287
|
}
|
|
288
288
|
renderBase(e) {
|
|
289
289
|
const t = this.showExpandButton;
|
|
290
|
-
return this.href ? m`<a id="anchor" part="base" class=${
|
|
290
|
+
return this.href ? m`<a id="anchor" part="base" class=${C({
|
|
291
291
|
"tree-item": !0,
|
|
292
292
|
"tree-item--disabled": this.disabled,
|
|
293
293
|
"tree-item--expanded": this.expanded,
|
|
@@ -295,7 +295,7 @@ let o = class extends F {
|
|
|
295
295
|
"tree-item--leaf": this.isLeaf,
|
|
296
296
|
"tree-item--rtl": this.localize.dir() === "rtl",
|
|
297
297
|
"tree-item--selected": this.selected
|
|
298
|
-
})} href=${_(this.href)} target=${_(this.target)} download=${_(this.download)} rel=${_(this.rel)} ?inert=${this.disabled}>${e}</a>` : m`<div part="base" class=${
|
|
298
|
+
})} href=${_(this.href)} target=${_(this.target)} download=${_(this.download)} rel=${_(this.rel)} draggable=${this.sortable ? "false" : E} ?inert=${this.disabled}>${e}</a>` : m`<div part="base" class=${C({
|
|
299
299
|
"tree-item": !0,
|
|
300
300
|
"tree-item--disabled": this.disabled,
|
|
301
301
|
"tree-item--expanded": this.expanded,
|
|
@@ -315,7 +315,7 @@ let o = class extends F {
|
|
|
315
315
|
"><div class="tree-item__indentation" part="indentation"></div>${y(
|
|
316
316
|
this.expandButtonPlacement === "start",
|
|
317
317
|
this.renderExpandButton,
|
|
318
|
-
() =>
|
|
318
|
+
() => E
|
|
319
319
|
)}
|
|
320
320
|
${y(
|
|
321
321
|
this.selectable,
|
|
@@ -337,7 +337,7 @@ let o = class extends F {
|
|
|
337
337
|
)}<slot class="tree-item__actions" part="actions" name="actions"></slot>${y(
|
|
338
338
|
this.expandButtonPlacement === "end",
|
|
339
339
|
this.renderExpandButton,
|
|
340
|
-
() =>
|
|
340
|
+
() => E
|
|
341
341
|
)}</div><div class="tree-item__children" part="children" role="group"><slot name="children" @slotchange=${this.handleChildrenSlotChange}></slot></div>`);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
@@ -514,7 +514,7 @@ function Z(e, t = "single") {
|
|
|
514
514
|
const i = e.parentElement;
|
|
515
515
|
o.isTreeItem(i) && !i.disabledSyncCheckboxes && t === "multiple" && (H(i), Z(i, t));
|
|
516
516
|
}
|
|
517
|
-
function
|
|
517
|
+
function k(e, t = !1, i = "single") {
|
|
518
518
|
function a(r) {
|
|
519
519
|
if (!(!(r instanceof o) && r.getAttribute("role") !== "treeitem")) {
|
|
520
520
|
for (const n of r.getChildrenItems())
|
|
@@ -600,7 +600,7 @@ let c = class extends F {
|
|
|
600
600
|
a.map(async (n) => {
|
|
601
601
|
n.selected = !1, n.indeterminate = !1, n.previouslySelected = !1, await n.updateComplete;
|
|
602
602
|
})
|
|
603
|
-
), e.selected = t || !e.selected, e.lazy && !this.disabledAutoExpand && (e.expanded = !0),
|
|
603
|
+
), e.selected = t || !e.selected, e.lazy && !this.disabledAutoExpand && (e.expanded = !0), k(e, !1, this.selection);
|
|
604
604
|
else if ((this.selection === "single" || e.isLeaf) && !e.noSelect)
|
|
605
605
|
for (const n of a)
|
|
606
606
|
n.selected = n === e;
|
|
@@ -754,7 +754,7 @@ let c = class extends F {
|
|
|
754
754
|
for (const i of t)
|
|
755
755
|
i.selectable = e;
|
|
756
756
|
e ? (await this.updateComplete, [...this.querySelectorAll(":scope > cx-tree-item")].forEach(
|
|
757
|
-
(i) =>
|
|
757
|
+
(i) => k(i, !0, this.selection)
|
|
758
758
|
)) : this.autoExpandToSelected || t.forEach((i) => {
|
|
759
759
|
i.selected = !1, i.indeterminate = !1;
|
|
760
760
|
});
|
|
@@ -860,5 +860,5 @@ export {
|
|
|
860
860
|
Z as b,
|
|
861
861
|
H as c,
|
|
862
862
|
te as d,
|
|
863
|
-
|
|
863
|
+
k as s
|
|
864
864
|
};
|
|
@@ -80,7 +80,7 @@ import { default as ft } from "./tag.js";
|
|
|
80
80
|
import { default as st } from "./textarea.js";
|
|
81
81
|
import { default as Ct } from "./timecode.js";
|
|
82
82
|
import { default as lt } from "./tooltip.js";
|
|
83
|
-
import { a as nt, C as it } from "../chunks/tree.
|
|
83
|
+
import { a as nt, C as it } from "../chunks/tree.C3OC_XP7.js";
|
|
84
84
|
import { C as gt } from "../chunks/typography.IqHbnd3C.js";
|
|
85
85
|
import { default as At } from "./video.js";
|
|
86
86
|
import { default as St } from "./visually-hidden.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as tt } from "../chunks/icon.D5iM9wXS.js";
|
|
2
2
|
import et from "./line-clamp.js";
|
|
3
|
-
import { C as mt, s as _t, a as ft, b as dt } from "../chunks/tree.
|
|
3
|
+
import { C as mt, s as _t, a as ft, b as dt } from "../chunks/tree.C3OC_XP7.js";
|
|
4
4
|
import { n as l, C as W } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
5
5
|
import { c as st } from "../chunks/component.styles.CRO4Odto.js";
|
|
6
6
|
import { c as q } from "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -3,9 +3,9 @@ import "../chunks/input.DOorVTYZ.js";
|
|
|
3
3
|
import "./line-clamp.js";
|
|
4
4
|
import "./select.js";
|
|
5
5
|
import "./tag.js";
|
|
6
|
-
import "../chunks/tree.
|
|
6
|
+
import "../chunks/tree.C3OC_XP7.js";
|
|
7
7
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
8
|
-
import { C as h } from "../chunks/folder-select.
|
|
8
|
+
import { C as h } from "../chunks/folder-select.bm-tgOMN.js";
|
|
9
9
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
10
10
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
11
11
|
import "../chunks/i18n.Bchq8v1d.js";
|
|
@@ -5,7 +5,7 @@ import { C as u } from "../chunks/confirm-popover.B0QtiuAB.js";
|
|
|
5
5
|
import { default as d } from "./corner-position-input-group.js";
|
|
6
6
|
import { default as l } from "./cropper.js";
|
|
7
7
|
import { default as i } from "./dynamic-select.js";
|
|
8
|
-
import { C as c } from "../chunks/folder-select.
|
|
8
|
+
import { C as c } from "../chunks/folder-select.bm-tgOMN.js";
|
|
9
9
|
import { default as P } from "./masonry.js";
|
|
10
10
|
import { default as I } from "./padding-input-group.js";
|
|
11
11
|
import { default as y } from "./position-picker.js";
|
|
@@ -16,7 +16,7 @@ import "./checkbox.js";
|
|
|
16
16
|
import "../chunks/icon.D5iM9wXS.js";
|
|
17
17
|
import "./line-clamp.js";
|
|
18
18
|
import "./spinner.js";
|
|
19
|
-
import { C as k } from "../chunks/tree.
|
|
19
|
+
import { C as k } from "../chunks/tree.C3OC_XP7.js";
|
|
20
20
|
export {
|
|
21
21
|
k as default
|
|
22
22
|
};
|
|
@@ -4,7 +4,7 @@ import "../chunks/custom-element.L4WJXn1j.js";
|
|
|
4
4
|
import "../chunks/i18n.Bchq8v1d.js";
|
|
5
5
|
import "../chunks/math.DuKzLacZ.js";
|
|
6
6
|
import "../chunks/watch.DJF5K-8U.js";
|
|
7
|
-
import { a as b, b as f, s as x, c as d } from "../chunks/tree.
|
|
7
|
+
import { a as b, b as f, s as x, c as d } from "../chunks/tree.C3OC_XP7.js";
|
|
8
8
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
9
9
|
import "../chunks/state.CSDxrqLd.js";
|
|
10
10
|
import "../chunks/query.BBf1UFkC.js";
|
|
@@ -81,7 +81,7 @@ import { default as BXt } from "./tag.js";
|
|
|
81
81
|
import V4 from "./textarea.js";
|
|
82
82
|
import nQ from "./timecode.js";
|
|
83
83
|
import Zr from "./tooltip.js";
|
|
84
|
-
import { C as rQ, a as oQ, d as aQ } from "../chunks/tree.
|
|
84
|
+
import { C as rQ, a as oQ, d as aQ } from "../chunks/tree.C3OC_XP7.js";
|
|
85
85
|
import { C as Dn, T as Th } from "../chunks/typography.IqHbnd3C.js";
|
|
86
86
|
import { default as FXt } from "./video.js";
|
|
87
87
|
import sQ from "./visually-hidden.js";
|
|
@@ -143,7 +143,7 @@ import { d as zS, c as o8, e as HQ, i as a8, h as VQ, p as UQ, t as qQ } from ".
|
|
|
143
143
|
import { b as xZt, f as kZt, g as _Zt, a as CZt, n as SZt } from "../chunks/date.iWq_pkIk.js";
|
|
144
144
|
import { F as TF, a as WQ, b as JC, H as GQ, c as l0, d as KQ, o as _u } from "../chunks/color-swatch-group.Bf3Y6g59.js";
|
|
145
145
|
import { C as EZt, e as AZt, f as OZt } from "../chunks/color-swatch-group.Bf3Y6g59.js";
|
|
146
|
-
import { F as Wd, C as K4, s as ZC, a as jS } from "../chunks/folder-select.
|
|
146
|
+
import { F as Wd, C as K4, s as ZC, a as jS } from "../chunks/folder-select.bm-tgOMN.js";
|
|
147
147
|
import { b as QC, a as bw, c as YQ, r as Ue, j as _e, w as XQ, R as JQ } from "../chunks/jsx-runtime.CTpPVMxj.js";
|
|
148
148
|
import { j as HS } from "../chunks/index.CrhRU5m8.js";
|
|
149
149
|
import { i as Y4, T as VS, t as ZQ } from "../chunks/transform.BuqENXeT.js";
|
package/library/package.json
CHANGED