@ixfx/components 0.5.7 → 0.5.9
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/bundle/index.d.ts +44 -1
- package/bundle/index.d.ts.map +1 -1
- package/bundle/index.js +154 -35
- package/bundle/index.js.map +1 -1
- package/dist/ac-text.d.ts +1 -1
- package/dist/ac-text.d.ts.map +1 -1
- package/dist/ac-text.js +3 -1
- package/dist/ac-text.js.map +1 -1
- package/dist/{button-CU8eLcxB.js → button-dwmqCXHM.js} +11 -1
- package/dist/button-dwmqCXHM.js.map +1 -0
- package/dist/button.d.ts +2 -1
- package/dist/button.d.ts.map +1 -1
- package/dist/button.js +1 -1
- package/dist/{colour-picker-Bb795sjX.js → colour-picker-DGso9ZOp.js} +2 -2
- package/dist/{colour-picker-Bb795sjX.js.map → colour-picker-DGso9ZOp.js.map} +1 -1
- package/dist/colour-picker.d.ts +1 -1
- package/dist/colour-picker.js +1 -1
- package/dist/crumbs.d.ts +6 -2
- package/dist/crumbs.d.ts.map +1 -1
- package/dist/crumbs.js +5 -1
- package/dist/crumbs.js.map +1 -1
- package/dist/{icon-BUwP1CZ1.d.ts → icon-DpA9x2Ve.d.ts} +2 -2
- package/dist/icon-DpA9x2Ve.d.ts.map +1 -0
- package/dist/icons.d.ts +2 -2
- package/dist/incr-search.d.ts +1 -1
- package/dist/{index-RqMh1i-O.d.ts → index-BtGFYfaK.d.ts} +2 -2
- package/dist/{index-RqMh1i-O.d.ts.map → index-BtGFYfaK.d.ts.map} +1 -1
- package/dist/{index-BUB5SICW.d.ts → index-CoqtMSd9.d.ts} +2 -2
- package/dist/{index-BUB5SICW.d.ts.map → index-CoqtMSd9.d.ts.map} +1 -1
- package/dist/{index-Cxwxtj6g.d.ts → index-D9u_Q7-b.d.ts} +2 -2
- package/dist/{index-Cxwxtj6g.d.ts.map → index-D9u_Q7-b.d.ts.map} +1 -1
- package/dist/{index-BKAlRgbq.d.ts → index-D_ftz_IT.d.ts} +2 -2
- package/dist/{index-BKAlRgbq.d.ts.map → index-D_ftz_IT.d.ts.map} +1 -1
- package/dist/{index-B1UKcA7l.d.ts → index-DfEkTGvT.d.ts} +3 -3
- package/dist/{index-B1UKcA7l.d.ts.map → index-DfEkTGvT.d.ts.map} +1 -1
- package/dist/index.d.ts +13 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -7
- package/dist/index.js.map +1 -1
- package/dist/{labelled-input-base-Dp_9KP0G.d.ts → labelled-input-base-DiTme1JO.d.ts} +2 -2
- package/dist/{labelled-input-base-Dp_9KP0G.d.ts.map → labelled-input-base-DiTme1JO.d.ts.map} +1 -1
- package/dist/labelled-radial-input.d.ts +2 -2
- package/dist/labelled-radial-input.d.ts.map +1 -1
- package/dist/labelled-range-input.d.ts +1 -1
- package/dist/{menu-item-BttvL89f.js → menu-item-BBTZnjAR.js} +2 -2
- package/dist/{menu-item-BttvL89f.js.map → menu-item-BBTZnjAR.js.map} +1 -1
- package/dist/{menu-item-CQ4Qg731.d.ts → menu-item-DSyf9f_L.d.ts} +2 -2
- package/dist/{menu-item-CQ4Qg731.d.ts.map → menu-item-DSyf9f_L.d.ts.map} +1 -1
- package/dist/{menu-BYyeCAF7.js → menu-nuOIUD9K.js} +2 -2
- package/dist/{menu-BYyeCAF7.js.map → menu-nuOIUD9K.js.map} +1 -1
- package/dist/menu.d.ts +2 -2
- package/dist/menu.js +2 -2
- package/dist/miller.d.ts +5 -1
- package/dist/miller.d.ts.map +1 -1
- package/dist/miller.js +4 -0
- package/dist/miller.js.map +1 -1
- package/dist/panel.d.ts +1 -1
- package/dist/panel.d.ts.map +1 -1
- package/dist/panel.js +1 -2
- package/dist/panel.js.map +1 -1
- package/dist/{tab-list-VtWT-_FG.d.ts → tab-list-BohmbvqF.d.ts} +2 -2
- package/dist/{tab-list-VtWT-_FG.d.ts.map → tab-list-BohmbvqF.d.ts.map} +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/{tree-BnvzhsAw.js → tree-CL-txefQ.js} +92 -10
- package/dist/tree-CL-txefQ.js.map +1 -0
- package/dist/{tree-component-DCmmKZ4j.d.ts → tree-component-DQ9vzdy5.d.ts} +9 -1
- package/dist/{tree-component-DCmmKZ4j.d.ts.map → tree-component-DQ9vzdy5.d.ts.map} +1 -1
- package/dist/tree.d.ts +28 -2
- package/dist/tree.d.ts.map +1 -1
- package/dist/tree.js +1 -1
- package/docs-user/ac-text.md +8 -0
- package/docs-user/tree.md +53 -0
- package/docs-user/vertical-list.md +23 -0
- package/package.json +1 -1
- package/dist/button-CU8eLcxB.js.map +0 -1
- package/dist/icon-BUwP1CZ1.d.ts.map +0 -1
- package/dist/tree-BnvzhsAw.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as buildHighlightTargets, r as clearHighlights, t as applyHighlights } from "./highlight-B-eQrhhb.js";
|
|
2
2
|
import { n as tickledStyles, r as TickledController, t as tickledItemStyles } from "./tickled-styles-fNDdqf6l.js";
|
|
3
3
|
import { t as themeFallbacks } from "./fallbacks-pNMOMx38.js";
|
|
4
|
+
import { t as popupSurfaceStyles } from "./popup-D80sj2QC.js";
|
|
4
5
|
import { n as safeCustomElement, t as __decorate } from "./decorate-VRK8rslU.js";
|
|
5
6
|
import { a as svgToDataUri, i as registerIcon, n as hasIcon, r as iconBus, t as getIcon } from "./registry-CkW7q09Q.js";
|
|
6
7
|
import { t as IxfxIconElement } from "./icon-B22XVlCt.js";
|
|
@@ -9,14 +10,13 @@ import { a as createFuzzySearch, i as createAcCompletionProvider, n as IncrSearc
|
|
|
9
10
|
import { i as ICON_CLOSE, n as ICON_CHECK, r as ICON_CHEVRON_DOWN, t as ICON_CARET_RIGHT } from "./defaults-DcE8RQJc.js";
|
|
10
11
|
import "./icons.js";
|
|
11
12
|
import { t as prominenceStyles } from "./prominence-DlFShic3.js";
|
|
12
|
-
import { n as buttonStyles, t as ButtonElement } from "./button-
|
|
13
|
-
import
|
|
14
|
-
import "./menu-item-BttvL89f.js";
|
|
13
|
+
import { n as buttonStyles, t as ButtonElement } from "./button-dwmqCXHM.js";
|
|
14
|
+
import "./menu-item-BBTZnjAR.js";
|
|
15
15
|
import { Checkbox } from "./checkbox.js";
|
|
16
|
-
import { n as ColourPicker, t as ColourPickerPopup } from "./colour-picker-
|
|
16
|
+
import { n as ColourPicker, t as ColourPickerPopup } from "./colour-picker-DGso9ZOp.js";
|
|
17
17
|
import { LabelledRangeInput } from "./labelled-range-input.js";
|
|
18
18
|
import { t as collectDataResult } from "./data-provider-35TyWclX.js";
|
|
19
|
-
import { i as TreeDataModel, n as TreeListElement, r as TreeBaseElement, t as TreeController } from "./tree-
|
|
19
|
+
import { i as TreeDataModel, n as TreeListElement, r as TreeBaseElement, t as TreeController } from "./tree-CL-txefQ.js";
|
|
20
20
|
import { NarrowedTextElement } from "./narrowed-text.js";
|
|
21
21
|
import { CrumbNavigationElement } from "./crumbs.js";
|
|
22
22
|
import { DataDisplayComponent } from "./data-display.js";
|
|
@@ -28,7 +28,7 @@ import { t as IxfxHexEditorElement } from "./hex-editor-Bk6rxhfg.js";
|
|
|
28
28
|
import { t as RadialInputElement } from "./radial-input-DxCrt_NE.js";
|
|
29
29
|
import { LabelledRadialInput } from "./labelled-radial-input.js";
|
|
30
30
|
import { LedElement } from "./led.js";
|
|
31
|
-
import { t as menu_exports } from "./menu-
|
|
31
|
+
import { t as menu_exports } from "./menu-nuOIUD9K.js";
|
|
32
32
|
import { MillerBaseElement, MillerListElement, MillerTreeController } from "./miller.js";
|
|
33
33
|
import { a as TooltipElement, c as computeColour, i as PlotMultiAxis, l as parseColourScaleAttr, n as PlotSingleAxis, o as PlotDataSeries, r as PlotHistogram, s as applyAgeModification, t as PlotXyAxis, u as readBaseColour } from "./xy-axis-CxHC8z5E.js";
|
|
34
34
|
import { PolarPad } from "./polar-pad.js";
|
|
@@ -3331,6 +3331,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3331
3331
|
this._searchVisible = false;
|
|
3332
3332
|
this._searchQuery = ``;
|
|
3333
3333
|
this.#customWrappers = /* @__PURE__ */ new Map();
|
|
3334
|
+
this.#wrappedElements = /* @__PURE__ */ new Set();
|
|
3334
3335
|
this.tickled = new TickledController(this, {
|
|
3335
3336
|
getItems: () => this._getVisibleItems().map((el) => ({
|
|
3336
3337
|
id: el,
|
|
@@ -3439,6 +3440,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3439
3440
|
#search;
|
|
3440
3441
|
#selectionAnchor;
|
|
3441
3442
|
#customWrappers;
|
|
3443
|
+
#wrappedElements;
|
|
3442
3444
|
connectedCallback() {
|
|
3443
3445
|
super.connectedCallback();
|
|
3444
3446
|
if (!this.hasAttribute(`tabindex`)) this.tabIndex = 0;
|
|
@@ -3565,6 +3567,20 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3565
3567
|
selectAll() {
|
|
3566
3568
|
if ((this.selectionMode === `multiple` || isMultiMode(this.interactionMode)) && this.selectionMode !== `none`) this._selectAll();
|
|
3567
3569
|
}
|
|
3570
|
+
*selectedFilter(kind) {
|
|
3571
|
+
const wanted = (el) => {
|
|
3572
|
+
switch (kind) {
|
|
3573
|
+
case `selected`: return el.hasAttribute(`data-selected`);
|
|
3574
|
+
case `checked`: return el.hasAttribute(`data-checked`);
|
|
3575
|
+
case `either`: return el.hasAttribute(`data-selected`) || el.hasAttribute(`data-checked`);
|
|
3576
|
+
}
|
|
3577
|
+
};
|
|
3578
|
+
for (const el of this.querySelectorAll(ITEM_SELECTOR)) {
|
|
3579
|
+
if (this.#wrappedElements.has(el)) continue;
|
|
3580
|
+
if (el.hidden) continue;
|
|
3581
|
+
if (wanted(el)) yield el;
|
|
3582
|
+
}
|
|
3583
|
+
}
|
|
3568
3584
|
_replaceSelection(item) {
|
|
3569
3585
|
if (this.selectionMode === `none`) return;
|
|
3570
3586
|
if (!this._isCheckable(item)) return;
|
|
@@ -3670,6 +3686,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3670
3686
|
}
|
|
3671
3687
|
_getVisibleItems() {
|
|
3672
3688
|
return Array.from(this.querySelectorAll(ITEM_SELECTOR)).filter((el) => {
|
|
3689
|
+
if (this.#wrappedElements.has(el)) return false;
|
|
3673
3690
|
if (el.hidden) return false;
|
|
3674
3691
|
if (this.filterPredicate && !this.filterPredicate(el)) return false;
|
|
3675
3692
|
return true;
|
|
@@ -3681,6 +3698,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3681
3698
|
}
|
|
3682
3699
|
_syncItemStates() {
|
|
3683
3700
|
for (const el of this.querySelectorAll(ITEM_SELECTOR)) {
|
|
3701
|
+
if (this.#wrappedElements.has(el)) continue;
|
|
3684
3702
|
const item = this.#customWrappers.get(el) ?? el;
|
|
3685
3703
|
el.toggleAttribute(`data-tickled`, this.tickled.isTickled(el));
|
|
3686
3704
|
el.toggleAttribute(`data-selected`, this._selectedItems.has(el));
|
|
@@ -3703,9 +3721,10 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3703
3721
|
if (key !== null) wrapper.setAttribute(`data-key`, key);
|
|
3704
3722
|
if (label !== null) wrapper.setAttribute(`data-search-label`, label);
|
|
3705
3723
|
inner.removeAttribute(`data-list-item`);
|
|
3706
|
-
this.insertBefore(wrapper, inner);
|
|
3707
3724
|
wrapper.appendChild(inner);
|
|
3725
|
+
this.replaceChild(wrapper, inner);
|
|
3708
3726
|
this.#customWrappers.set(wrapper, inner);
|
|
3727
|
+
this.#wrappedElements.add(inner);
|
|
3709
3728
|
}
|
|
3710
3729
|
else {
|
|
3711
3730
|
for (const [wrapper, inner] of this.#customWrappers) {
|
|
@@ -3715,6 +3734,7 @@ let VerticalListElement = class VerticalListElement extends LitElement {
|
|
|
3715
3734
|
wrapper.remove();
|
|
3716
3735
|
}
|
|
3717
3736
|
this.#customWrappers.clear();
|
|
3737
|
+
this.#wrappedElements.clear();
|
|
3718
3738
|
}
|
|
3719
3739
|
for (const el of this.querySelectorAll(`li`)) {
|
|
3720
3740
|
const existing = el.querySelector(`.ixfx-list-checkbox`);
|