@capillaryjs/capillary-ui 1.1.0 → 1.2.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/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  var Ar = Object.defineProperty;
2
2
  var qr = (t, r, e) => r in t ? Ar(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e;
3
3
  var a = (t, r, e) => qr(t, typeof r != "symbol" ? r + "" : r, e);
4
- import { C as y, j as h, c as x, h as F, F as we, a as v, i as ee, b as jr } from "./jsx-dev-runtime-D3UnwrKT.js";
5
- import { S as Pn, d as Dn, e as Mn, f as An, g as qn, k as jn, l as Un, m as Vn, n as Hn, p as Kn, s as Fn } from "./jsx-dev-runtime-D3UnwrKT.js";
4
+ import { C as y, a as h, c as x, h as F, F as we, b as v, i as te, d as jr } from "./jsx-runtime-BD_q3rPg.js";
5
+ import { S as Pn, e as Dn, f as Mn, g as An, k as qn, l as jn, m as Un, j as Vn, n as Hn, p as Kn, s as Fn } from "./jsx-runtime-BD_q3rPg.js";
6
6
  import { Emitter as $, DerivedEmitter as We, FetchState as I, QueryArg as Ht, LiveQuery as Ur, RestQueryHandler as Vr } from "@capillaryjs/capillary";
7
7
  class bt extends y {
8
8
  render() {
@@ -79,7 +79,7 @@ function _e(t, r = "options") {
79
79
  function Fr(t) {
80
80
  return Ge(t) ? t : String(t);
81
81
  }
82
- class ue extends y {
82
+ class he extends y {
83
83
  constructor(e = {}) {
84
84
  var n;
85
85
  super(e);
@@ -155,7 +155,7 @@ class ue extends y {
155
155
  }
156
156
  }
157
157
  }
158
- a(ue, "liveProps", []), a(ue, "hostName", "tab-line"), a(ue, "css", x`
158
+ a(he, "liveProps", []), a(he, "hostName", "tab-line"), a(he, "css", x`
159
159
  & {
160
160
  display: flex;
161
161
  background: var(--tabline-background);
@@ -338,7 +338,7 @@ class gr {
338
338
  });
339
339
  }
340
340
  }
341
- function J(t, r) {
341
+ function X(t, r) {
342
342
  const e = t ?? "eager";
343
343
  if (e !== "eager" && e !== "lazy" && e !== "active-only")
344
344
  throw new TypeError(`${r} mountPolicy must be eager, lazy, or active-only`);
@@ -352,7 +352,7 @@ class Te extends y {
352
352
  a(this, "activeTabEmitter");
353
353
  a(this, "baseId");
354
354
  a(this, "selection");
355
- const i = ne(e), o = { ...e };
355
+ const i = ae(e), o = { ...e };
356
356
  o.valueEmitter == null && e.activeTabEmitter != null && (o.valueEmitter = e.activeTabEmitter), o.defaultValue == null && e.initialActiveTabId != null && (o.defaultValue = e.initialActiveTabId), this.valueEmitter = j(
357
357
  this,
358
358
  o,
@@ -366,15 +366,15 @@ class Te extends y {
366
366
  });
367
367
  }
368
368
  initialize() {
369
- const e = ne(this.props);
370
- J(this.props.mountPolicy, "TabPanel"), this.selection.prepare(e), this.watch(this.valueEmitter);
369
+ const e = ae(this.props);
370
+ X(this.props.mountPolicy, "TabPanel"), this.selection.prepare(e), this.watch(this.valueEmitter);
371
371
  }
372
372
  setProps(e) {
373
- return J(e.mountPolicy, "TabPanel"), super.setProps(e), this.selection.prepare(ne(e)), this.update(), this;
373
+ return X(e.mountPolicy, "TabPanel"), super.setProps(e), this.selection.prepare(ae(e)), this.update(), this;
374
374
  }
375
375
  render() {
376
376
  var l;
377
- const e = ne(this.props), i = J(this.props.mountPolicy, "TabPanel"), o = (l = this.selection.selected(e)) == null ? void 0 : l.id, n = this.selection.updateMounted(e, i), s = this.Host;
377
+ const e = ae(this.props), i = X(this.props.mountPolicy, "TabPanel"), o = (l = this.selection.selected(e)) == null ? void 0 : l.id, n = this.selection.updateMounted(e, i), s = this.Host;
378
378
  return /* @__PURE__ */ v(
379
379
  s,
380
380
  {
@@ -382,7 +382,7 @@ class Te extends y {
382
382
  className: T(this.props) || null,
383
383
  children: [
384
384
  /* @__PURE__ */ h(
385
- ue,
385
+ he,
386
386
  {
387
387
  tabs: e.map(({ id: c, label: u, disabled: p }) => ({ id: c, label: u, disabled: p })),
388
388
  valueEmitter: this.valueEmitter,
@@ -416,11 +416,11 @@ class Te extends y {
416
416
  this.selection.dispose();
417
417
  }
418
418
  selectTab(e, i) {
419
- const o = ne(this.props).find(({ id: n }) => Object.is(n, e.id));
419
+ const o = ae(this.props).find(({ id: n }) => Object.is(n, e.id));
420
420
  o != null && this.selection.select(o);
421
421
  }
422
422
  }
423
- a(Te, "liveProps", []), a(Te, "dependencies", [ke, ue, bt]), a(Te, "hostName", "tab-panel"), a(Te, "css", x`
423
+ a(Te, "liveProps", []), a(Te, "dependencies", [ke, he, bt]), a(Te, "hostName", "tab-panel"), a(Te, "css", x`
424
424
  & {
425
425
  background: var(--panel-background);
426
426
  border-radius: var(--panel-radius);
@@ -451,11 +451,11 @@ a(Te, "liveProps", []), a(Te, "dependencies", [ke, ue, bt]), a(Te, "hostName", "
451
451
  margin-inline-start: -3px;
452
452
  }
453
453
  `);
454
- function ne(t) {
454
+ function ae(t) {
455
455
  const r = t.tabs ?? [];
456
456
  if (!Array.isArray(r)) throw new TypeError("TabPanel tabs must be an array");
457
- const i = (Array.isArray(t.children) ? t.children : t.children == null ? [] : [t.children]).filter((s) => ee(s) && s.type === bt).map((s, l) => {
458
- if (!ee(s)) throw new TypeError("TabPanel children must be Tab nodes");
457
+ const i = (Array.isArray(t.children) ? t.children : t.children == null ? [] : [t.children]).filter((s) => te(s) && s.type === bt).map((s, l) => {
458
+ if (!te(s)) throw new TypeError("TabPanel children must be Tab nodes");
459
459
  const c = s.props;
460
460
  return {
461
461
  id: c.id ?? `tab-${l + 1}`,
@@ -527,7 +527,7 @@ function Go(t, r, e = t) {
527
527
  return yt.add(n), n;
528
528
  }
529
529
  function Yo(t, r) {
530
- if (X(t), t.kind !== "parameter")
530
+ if (Z(t), t.kind !== "parameter")
531
531
  throw new TypeError("routeParameter requires a parameter route");
532
532
  const e = t.codec.format(r);
533
533
  return kt(e, t.name), Object.freeze({ route: t, value: r });
@@ -536,8 +536,8 @@ function Jo(...t) {
536
536
  if (t.length === 0) throw new TypeError("routeTarget requires at least one route");
537
537
  for (const e of t)
538
538
  if (yr(e))
539
- X(e.route);
540
- else if (X(e), e.kind !== "literal")
539
+ Z(e.route);
540
+ else if (Z(e), e.kind !== "literal")
541
541
  throw new TypeError("Parameter routes require routeParameter(route, value)");
542
542
  const r = Object.freeze({ routes: Object.freeze([...t]) });
543
543
  return wt.add(r), r;
@@ -554,7 +554,7 @@ function Zo(t) {
554
554
  function xt(t) {
555
555
  return t != null && typeof t == "object" && yt.has(t);
556
556
  }
557
- function X(t) {
557
+ function Z(t) {
558
558
  if (!xt(t))
559
559
  throw new TypeError("Expected a route created by defineRoute() or defineRouteParameter()");
560
560
  }
@@ -1000,7 +1000,7 @@ a(D, "liveProps", []), a(D, "hostName", "header"), a(D, "css", x`
1000
1000
  font: inherit;
1001
1001
  }
1002
1002
  `);
1003
- class ce extends y {
1003
+ class de extends y {
1004
1004
  constructor(e) {
1005
1005
  super(e);
1006
1006
  a(this, "panelId");
@@ -1035,7 +1035,7 @@ class ce extends y {
1035
1035
  );
1036
1036
  }
1037
1037
  }
1038
- a(ce, "liveProps", []), a(ce, "hostName", "group-box"), a(ce, "dependencies", [D]), a(ce, "css", x`
1038
+ a(de, "liveProps", []), a(de, "hostName", "group-box"), a(de, "dependencies", [D]), a(de, "css", x`
1039
1039
  & {
1040
1040
  display: flex;
1041
1041
  flex-flow: var(--cap-groupbox-flow, row nowrap);
@@ -1410,16 +1410,16 @@ function ei(t) {
1410
1410
  function ti(t) {
1411
1411
  return Array.isArray(t) && t.every((r) => r != null && typeof r == "object" && Object.hasOwn(r, "error"));
1412
1412
  }
1413
- class ie extends y {
1413
+ class oe extends y {
1414
1414
  render() {
1415
1415
  throw new Error(`${this.constructor.name} must be a direct child of its documented parent`);
1416
1416
  }
1417
1417
  }
1418
- a(ie, "liveProps", []);
1418
+ a(oe, "liveProps", []);
1419
1419
  function Je(t, r, e, i = {}) {
1420
1420
  const o = Object.entries(e), n = [], s = {}, l = Array.isArray(r) ? r : r == null ? [] : [r];
1421
1421
  for (const c of l) {
1422
- if (!ee(c)) {
1422
+ if (!te(c)) {
1423
1423
  n.push(c);
1424
1424
  continue;
1425
1425
  }
@@ -1444,9 +1444,9 @@ function Je(t, r, e, i = {}) {
1444
1444
  return { content: n, regions: s };
1445
1445
  }
1446
1446
  function ri(t) {
1447
- return typeof t == "function" && t.prototype instanceof ie;
1447
+ return typeof t == "function" && t.prototype instanceof oe;
1448
1448
  }
1449
- class Qt extends ie {
1449
+ class Qt extends oe {
1450
1450
  }
1451
1451
  const ii = ["disabled", "required", "busy", "error"];
1452
1452
  class Re extends y {
@@ -1561,7 +1561,7 @@ a(Re, "liveProps", ii), a(Re, "hostName", "option-group"), a(Re, "dependencies",
1561
1561
  }
1562
1562
  }
1563
1563
  `);
1564
- class Wt extends ce {
1564
+ class Wt extends de {
1565
1565
  }
1566
1566
  a(Wt, "hostName", "options-box"), a(Wt, "css", x`
1567
1567
  & > cap-content {
@@ -1639,7 +1639,7 @@ class ge extends y {
1639
1639
  }
1640
1640
  a(ge, "liveProps", []), a(ge, "hostName", "layout");
1641
1641
  const oi = ["disabled"];
1642
- class Gt extends ie {
1642
+ class Gt extends oe {
1643
1643
  }
1644
1644
  class $e extends y {
1645
1645
  constructor(e = {}) {
@@ -1734,7 +1734,7 @@ a($e, "liveProps", oi), a($e, "hostName", "panel"), a($e, "dependencies", [D, ge
1734
1734
  opacity: .65;
1735
1735
  }
1736
1736
  `);
1737
- class Yt extends ie {
1737
+ class Yt extends oe {
1738
1738
  }
1739
1739
  class Oe extends y {
1740
1740
  constructor(e = {}) {
@@ -2076,7 +2076,7 @@ function ni(t) {
2076
2076
  let r = null, e = null;
2077
2077
  const i = ai(t);
2078
2078
  for (const o of i) {
2079
- if (!ee(o))
2079
+ if (!te(o))
2080
2080
  throw new Error("SplitView accepts only direct SplitPrimary and SplitSecondary children");
2081
2081
  if (o.type === Et) {
2082
2082
  if (r != null) throw new Error("SplitView received duplicate SplitPrimary");
@@ -2320,15 +2320,15 @@ function on(t) {
2320
2320
  return { version: 1, dimensions: r };
2321
2321
  }
2322
2322
  function nn(t) {
2323
- if (!he(t) || t.version !== 1 || !he(t.dimensions))
2323
+ if (!pe(t) || t.version !== 1 || !pe(t.dimensions))
2324
2324
  throw new TypeError("Filter state must use version 1 with a dimensions object");
2325
2325
  const r = {};
2326
2326
  for (const [e, i] of Object.entries(t.dimensions)) {
2327
- if (te(e, "Filter dimension"), !he(i))
2327
+ if (re(e, "Filter dimension"), !pe(i))
2328
2328
  throw new TypeError(`Filter dimension ${e} must be an object`);
2329
2329
  const o = {};
2330
2330
  for (const [n, s] of Object.entries(i)) {
2331
- if (te(n, `Filter option in ${e}`), !Ge(s))
2331
+ if (re(n, `Filter option in ${e}`), !Ge(s))
2332
2332
  throw new TypeError(
2333
2333
  `Unknown filter mode for ${e}.${n}: ${String(s)}`
2334
2334
  );
@@ -2339,12 +2339,12 @@ function nn(t) {
2339
2339
  return r;
2340
2340
  }
2341
2341
  function ui(t) {
2342
- if (!he(t)) throw new TypeError("Filter state must be an object");
2342
+ if (!pe(t)) throw new TypeError("Filter state must be an object");
2343
2343
  for (const [r, e] of Object.entries(t)) {
2344
- if (te(r, "Filter dimension"), !he(e))
2344
+ if (re(r, "Filter dimension"), !pe(e))
2345
2345
  throw new TypeError(`Filter dimension ${r} must be an object`);
2346
2346
  for (const [i, o] of Object.entries(e))
2347
- if (te(i, `Filter option in ${r}`), !Ge(o))
2347
+ if (re(i, `Filter option in ${r}`), !Ge(o))
2348
2348
  throw new TypeError(
2349
2349
  `Unknown filter mode for ${r}.${i}: ${String(o)}`
2350
2350
  );
@@ -2354,24 +2354,24 @@ function It(t) {
2354
2354
  if (!Array.isArray(t)) throw new TypeError("Filter dimensions must be an array");
2355
2355
  const r = /* @__PURE__ */ new Set();
2356
2356
  for (const e of t) {
2357
- if (te(e.key, "Filter dimension"), r.has(e.key))
2357
+ if (re(e.key, "Filter dimension"), r.has(e.key))
2358
2358
  throw new Error(`Duplicate filter dimension: ${e.key}`);
2359
2359
  if (r.add(e.key), !Array.isArray(e.options))
2360
2360
  throw new TypeError(`Filter dimension ${e.key} options must be an array`);
2361
2361
  const i = /* @__PURE__ */ new Set();
2362
2362
  for (const o of e.options) {
2363
- if (te(o.key, `Filter option in ${e.key}`), i.has(o.key))
2363
+ if (re(o.key, `Filter option in ${e.key}`), i.has(o.key))
2364
2364
  throw new Error(`Duplicate filter option: ${e.key}.${o.key}`);
2365
2365
  if (i.add(o.key), typeof o.matches != "function")
2366
2366
  throw new TypeError(`Filter matcher ${e.key}.${o.key} must be a function`);
2367
2367
  }
2368
2368
  }
2369
2369
  }
2370
- function te(t, r) {
2370
+ function re(t, r) {
2371
2371
  if (t.length === 0 || t === "__proto__" || t === "prototype" || t === "constructor")
2372
2372
  throw new TypeError(`${r} key is not safe for persisted state`);
2373
2373
  }
2374
- function he(t) {
2374
+ function pe(t) {
2375
2375
  return t != null && typeof t == "object" && !Array.isArray(t);
2376
2376
  }
2377
2377
  class Tr {
@@ -2619,7 +2619,7 @@ function gi(t, r, e, i, o, n) {
2619
2619
  o ? l.add(c) : l.delete(c);
2620
2620
  return t.filter((c, u) => l.has(n(c, u)));
2621
2621
  }
2622
- class ae extends y {
2622
+ class se extends y {
2623
2623
  constructor(e = {}) {
2624
2624
  super(e);
2625
2625
  a(this, "itemsEmitter");
@@ -2733,7 +2733,7 @@ class ae extends y {
2733
2733
  this.selectionHandler.destroy(), (e = this.ownedItemsEmitter) == null || e.dispose();
2734
2734
  }
2735
2735
  }
2736
- a(ae, "liveProps", []), a(ae, "dependencies", [A, E]), a(ae, "hostName", "listview"), a(ae, "dataSurface", "data"), a(ae, "css", x`
2736
+ a(se, "liveProps", []), a(se, "dependencies", [A, E]), a(se, "hostName", "listview"), a(se, "dataSurface", "data"), a(se, "css", x`
2737
2737
  & {
2738
2738
  display: flex;
2739
2739
  position: relative;
@@ -3113,10 +3113,10 @@ class B extends y {
3113
3113
  valueEmitter: C,
3114
3114
  symbols: s,
3115
3115
  onChange: (V, M) => {
3116
- var H, oe;
3116
+ var H, ne;
3117
3117
  M == null || M.stopPropagation();
3118
3118
  const N = rr(this.props.filters);
3119
- V === k.Neutral ? N.delete(z) : N.set(z, V), (oe = (H = this.props).onChange) == null || oe.call(H, N, M);
3119
+ V === k.Neutral ? N.delete(z) : N.set(z, V), (ne = (H = this.props).onChange) == null || ne.call(H, N, M);
3120
3120
  }
3121
3121
  },
3122
3122
  Ti(z)
@@ -3218,7 +3218,7 @@ function zi(t) {
3218
3218
  function Ci(t) {
3219
3219
  return t != null && (typeof t == "object" || typeof t == "function") && typeof Reflect.get(t, "get") == "function" && typeof Reflect.get(t, "subscribe") == "function";
3220
3220
  }
3221
- class pe extends y {
3221
+ class Q extends y {
3222
3222
  constructor() {
3223
3223
  super(...arguments);
3224
3224
  a(this, "filterVisible", !1);
@@ -3296,7 +3296,7 @@ class pe extends y {
3296
3296
  );
3297
3297
  }
3298
3298
  }
3299
- a(pe, "liveProps", []), a(pe, "dependencies", [B]), a(pe, "css", x`
3299
+ a(Q, "diagnosticLabel", "Table header cell"), a(Q, "liveProps", []), a(Q, "dependencies", [B]), a(Q, "css", x`
3300
3300
  cap-datatable > table > thead > tr > th[aria-sort] {
3301
3301
  position: sticky;
3302
3302
  inset-block-start: 0;
@@ -3362,7 +3362,7 @@ function $i(t) {
3362
3362
  class me extends y {
3363
3363
  render() {
3364
3364
  return /* @__PURE__ */ h("thead", { children: /* @__PURE__ */ h("tr", { children: this.props.columns.map((r) => /* @__PURE__ */ h(
3365
- pe,
3365
+ Q,
3366
3366
  {
3367
3367
  field: r.field,
3368
3368
  sortEmitter: this.props.sortEmitter,
@@ -3379,7 +3379,7 @@ class me extends y {
3379
3379
  )) }) });
3380
3380
  }
3381
3381
  }
3382
- a(me, "liveProps", []), a(me, "dependencies", [pe]), a(me, "css", x`
3382
+ a(me, "liveProps", []), a(me, "dependencies", [Q]), a(me, "css", x`
3383
3383
  cap-datatable > table > thead {
3384
3384
  color: var(--table-header-color);
3385
3385
  background: var(--ui-gradient);
@@ -3555,7 +3555,7 @@ function Vi(t) {
3555
3555
  if (!Rr(t))
3556
3556
  throw new TypeError("Table query must be an emitter");
3557
3557
  }
3558
- class se extends y {
3558
+ class le extends y {
3559
3559
  constructor(e) {
3560
3560
  var i, o;
3561
3561
  super(e);
@@ -3700,7 +3700,7 @@ class se extends y {
3700
3700
  this.selectionHandler.destroy(), (e = this.ownedDataSource) == null || e.dispose(), (i = this.ownedSortEmitter) == null || i.dispose(), (o = this.ownedFiltersEmitter) == null || o.dispose();
3701
3701
  }
3702
3702
  }
3703
- a(se, "liveProps", []), a(se, "dependencies", [A, me, E]), a(se, "hostName", "data-table"), a(se, "dataSurface", "data"), a(se, "css", x`
3703
+ a(le, "liveProps", []), a(le, "dependencies", [A, me, E]), a(le, "hostName", "data-table"), a(le, "dataSurface", "data"), a(le, "css", x`
3704
3704
  & {
3705
3705
  display: block;
3706
3706
  position: relative;
@@ -3845,7 +3845,7 @@ class Ot extends y {
3845
3845
  }
3846
3846
  }
3847
3847
  a(Ot, "liveProps", []);
3848
- function re(t) {
3848
+ function ie(t) {
3849
3849
  if (!Array.isArray(t)) throw new TypeError("Tree nodes must be an array");
3850
3850
  const r = /* @__PURE__ */ new Set(), e = (i) => {
3851
3851
  for (const o of i) {
@@ -3860,17 +3860,17 @@ function re(t) {
3860
3860
  e(t);
3861
3861
  }
3862
3862
  function sn(t, r) {
3863
- return re(t), Nt(t, r);
3863
+ return ie(t), Nt(t, r);
3864
3864
  }
3865
3865
  function ln(t, r, e = null) {
3866
3866
  return new We(
3867
3867
  [t, r],
3868
- ([i, o]) => (re(i), o == null ? null : Nt(i, o)),
3868
+ ([i, o]) => (ie(i), o == null ? null : Nt(i, o)),
3869
3869
  { owner: e, purpose: "tree node projection" }
3870
3870
  );
3871
3871
  }
3872
3872
  function Bi(t, r, e) {
3873
- if (re(t), typeof e != "function") throw new TypeError("Tree node update must be a function");
3873
+ if (ie(t), typeof e != "function") throw new TypeError("Tree node update must be a function");
3874
3874
  const i = (n) => {
3875
3875
  for (let s = 0; s < n.length; s += 1) {
3876
3876
  const l = n[s];
@@ -3892,7 +3892,7 @@ function Bi(t, r, e) {
3892
3892
  }
3893
3893
  return n;
3894
3894
  }, o = i(t);
3895
- return Object.is(o, t) || re(o), o;
3895
+ return Object.is(o, t) || ie(o), o;
3896
3896
  }
3897
3897
  function cn(t, r, e, i = "tree node updated") {
3898
3898
  const o = t.get(), n = Bi(o, r, e);
@@ -3906,7 +3906,7 @@ function Nt(t, r) {
3906
3906
  }
3907
3907
  return null;
3908
3908
  }
3909
- class le extends y {
3909
+ class ce extends y {
3910
3910
  constructor(e) {
3911
3911
  super(e);
3912
3912
  a(this, "nodesEmitter");
@@ -3949,7 +3949,7 @@ class le extends y {
3949
3949
  }
3950
3950
  render() {
3951
3951
  const e = this.nodesEmitter.get(), i = e ?? [];
3952
- re(i);
3952
+ ie(i);
3953
3953
  const o = this.nodesEmitter.getFetchState(), n = this.nodesEmitter.getError(), s = o === I.Initial || o === I.Loading, l = o === I.Initial || o === I.Loading && e === void 0, c = new Set(this.expandedKeysEmitter.get()), u = ir(i, c), p = this.selectedKeyEmitter.get(), m = u.find(({ node: b }) => Object.is(b.id, this.focusedKey)) ?? u.find(({ node: b }) => Object.is(b.id, p)) ?? u[0] ?? null;
3954
3954
  this.focusedKey = (m == null ? void 0 : m.node.id) ?? null;
3955
3955
  const f = this.Host;
@@ -3993,7 +3993,7 @@ class le extends y {
3993
3993
  "aria-busy": s ? "true" : null,
3994
3994
  children: u.map((b, g) => {
3995
3995
  var Dt, Mt, At, qt, jt, Ut, Vt;
3996
- const { node: w, depth: z, position: S, setSize: U } = b, C = (((Dt = w.children) == null ? void 0 : Dt.length) ?? 0) > 0, V = C && c.has(w.id), M = Object.is(w.id, p), N = ((At = (Mt = this.props).renderItem) == null ? void 0 : At.call(Mt, w, z)) ?? w.label, H = (jt = (qt = this.props).itemLabelClassName) == null ? void 0 : jt.call(qt, w, z), oe = (Vt = (Ut = this.props).itemLabelStyle) == null ? void 0 : Vt.call(Ut, w, z);
3996
+ const { node: w, depth: z, position: S, setSize: U } = b, C = (((Dt = w.children) == null ? void 0 : Dt.length) ?? 0) > 0, V = C && c.has(w.id), M = Object.is(w.id, p), N = ((At = (Mt = this.props).renderItem) == null ? void 0 : At.call(Mt, w, z)) ?? w.label, H = (jt = (qt = this.props).itemLabelClassName) == null ? void 0 : jt.call(qt, w, z), ne = (Vt = (Ut = this.props).itemLabelStyle) == null ? void 0 : Vt.call(Ut, w, z);
3997
3997
  return /* @__PURE__ */ v(
3998
3998
  "li",
3999
3999
  {
@@ -4021,7 +4021,7 @@ class le extends y {
4021
4021
  "cap-label",
4022
4022
  {
4023
4023
  ...H == null ? {} : { className: H },
4024
- ...oe == null ? {} : { style: oe },
4024
+ ...ne == null ? {} : { style: ne },
4025
4025
  children: N
4026
4026
  }
4027
4027
  )
@@ -4041,7 +4041,7 @@ class le extends y {
4041
4041
  this.typeaheadTimer != null && clearTimeout(this.typeaheadTimer), (e = this.ownedNodesEmitter) == null || e.dispose(), (i = this.ownedSelectedEmitter) == null || i.dispose(), (o = this.ownedExpandedEmitter) == null || o.dispose();
4042
4042
  }
4043
4043
  reconcile(e) {
4044
- re(e);
4044
+ ie(e);
4045
4045
  const i = new Set(Qi(e).map(({ node: l }) => l.id)), o = this.selectedKeyEmitter.get();
4046
4046
  this.ownedSelectedEmitter != null && o != null && !i.has(o) && this.selectedKeyEmitter.set(null, "selected tree item removed");
4047
4047
  const n = this.expandedKeysEmitter.get(), s = n.filter((l) => i.has(l));
@@ -4106,7 +4106,7 @@ class le extends y {
4106
4106
  s != null && this.focusRow(s.node.id);
4107
4107
  }
4108
4108
  }
4109
- a(le, "liveProps", []), a(le, "dependencies", [Ot, A, E]), a(le, "hostName", "tree-view"), a(le, "dataSurface", "data"), a(le, "css", x`
4109
+ a(ce, "liveProps", []), a(ce, "dependencies", [Ot, A, E]), a(ce, "hostName", "tree-view"), a(ce, "dataSurface", "data"), a(ce, "css", x`
4110
4110
  & {
4111
4111
  display: flex;
4112
4112
  position: relative;
@@ -4198,8 +4198,8 @@ a(le, "liveProps", []), a(le, "dependencies", [Ot, A, E]), a(le, "hostName", "tr
4198
4198
  }
4199
4199
  `);
4200
4200
  function mt(t) {
4201
- return (Array.isArray(t) ? t : t == null ? [] : [t]).filter((e) => ee(e) && e.type === Ot).map((e) => {
4202
- if (!ee(e)) throw new TypeError("TreeView children must be TreeItem nodes");
4201
+ return (Array.isArray(t) ? t : t == null ? [] : [t]).filter((e) => te(e) && e.type === Ot).map((e) => {
4202
+ if (!te(e)) throw new TypeError("TreeView children must be TreeItem nodes");
4203
4203
  const i = e.props;
4204
4204
  return {
4205
4205
  id: i.id,
@@ -4241,7 +4241,7 @@ function Yi(t) {
4241
4241
  return t instanceof Element && t.closest("cap-expander") != null;
4242
4242
  }
4243
4243
  const Ji = ["disabled", "pressed", "busy", "error"];
4244
- class Q extends y {
4244
+ class W extends y {
4245
4245
  constructor(e = {}) {
4246
4246
  super(e);
4247
4247
  a(this, "errorId");
@@ -4290,7 +4290,7 @@ class Q extends y {
4290
4290
  ] });
4291
4291
  }
4292
4292
  }
4293
- a(Q, "liveProps", Ji), a(Q, "dependencies", [E]), a(Q, "hostName", "button"), a(Q, "css", x`
4293
+ a(W, "liveProps", Ji), a(W, "dependencies", [E]), a(W, "hostName", "button"), a(W, "css", x`
4294
4294
  & > button {
4295
4295
  display: inline-flex;
4296
4296
  align-items: center;
@@ -4371,7 +4371,7 @@ a(Q, "liveProps", Ji), a(Q, "dependencies", [E]), a(Q, "hostName", "button"), a(
4371
4371
  }
4372
4372
  `);
4373
4373
  const Xi = ["showCloseButton"];
4374
- class nr extends ie {
4374
+ class nr extends oe {
4375
4375
  }
4376
4376
  class De extends y {
4377
4377
  constructor(e) {
@@ -4415,7 +4415,7 @@ class De extends y {
4415
4415
  c.actions == null && !n ? null : /* @__PURE__ */ v("footer", { children: [
4416
4416
  c.actions,
4417
4417
  n ? /* @__PURE__ */ h(
4418
- Q,
4418
+ W,
4419
4419
  {
4420
4420
  label: o,
4421
4421
  onClick: () => this.requestClose()
@@ -4469,7 +4469,7 @@ class De extends y {
4469
4469
  this.restoreFocusTo = null, (e == null ? void 0 : e.isConnected) === !0 && e.focus(), O(this.props.onClose);
4470
4470
  }
4471
4471
  }
4472
- a(De, "liveProps", Xi), a(De, "hostName", "dialog"), a(De, "dependencies", [Q, nr]), a(De, "css", x`
4472
+ a(De, "liveProps", Xi), a(De, "hostName", "dialog"), a(De, "dependencies", [W, nr]), a(De, "css", x`
4473
4473
  & > dialog {
4474
4474
  z-index: 2;
4475
4475
  width: min(38rem, calc(100vw - 2rem));
@@ -4559,29 +4559,29 @@ function eo(t, r) {
4559
4559
  );
4560
4560
  i == null || i.focus();
4561
4561
  }
4562
- const G = class G extends P {
4562
+ const Y = class Y extends P {
4563
4563
  constructor(r = {}) {
4564
- super({ ...r, symbols: G.symbols });
4564
+ super({ ...r, symbols: Y.symbols });
4565
4565
  }
4566
4566
  };
4567
- a(G, "hostName", "quadcheckbox"), a(G, "symbols", [
4567
+ a(Y, "hostName", "quadcheckbox"), a(Y, "symbols", [
4568
4568
  ["×", k.Deny],
4569
4569
  ["☐", k.Neutral],
4570
4570
  ["✓", k.Prefer],
4571
4571
  ["+", k.Require]
4572
- ]), a(G, "defaultSemanticState", k.Neutral);
4573
- let ar = G;
4574
- const Y = class Y extends P {
4572
+ ]), a(Y, "defaultSemanticState", k.Neutral);
4573
+ let ar = Y;
4574
+ const J = class J extends P {
4575
4575
  constructor(r = {}) {
4576
- super({ ...r, symbols: Y.symbols });
4576
+ super({ ...r, symbols: J.symbols });
4577
4577
  }
4578
4578
  };
4579
- a(Y, "hostName", "tricheckbox"), a(Y, "symbols", [
4579
+ a(J, "hostName", "tricheckbox"), a(J, "symbols", [
4580
4580
  ["×", k.Deny],
4581
4581
  ["☐", k.Neutral],
4582
4582
  ["✓", k.Prefer]
4583
- ]), a(Y, "defaultSemanticState", k.Neutral);
4584
- let sr = Y;
4583
+ ]), a(J, "defaultSemanticState", k.Neutral);
4584
+ let sr = J;
4585
4585
  class Ee extends y {
4586
4586
  }
4587
4587
  a(Ee, "css", x`
@@ -4762,7 +4762,7 @@ a($r, "css", x`
4762
4762
  }
4763
4763
  `);
4764
4764
  const to = ["disabled", "required", "busy", "error"];
4765
- class de extends $r {
4765
+ class ue extends $r {
4766
4766
  constructor(e = {}) {
4767
4767
  var n;
4768
4768
  super(e);
@@ -4857,7 +4857,7 @@ class de extends $r {
4857
4857
  O(this.props.onChange, e, o);
4858
4858
  }
4859
4859
  }
4860
- a(de, "liveProps", to), a(de, "dependencies", [E]), a(de, "hostName", "dropdown"), a(de, "css", "");
4860
+ a(ue, "liveProps", to), a(ue, "dependencies", [E]), a(ue, "hostName", "dropdown"), a(ue, "css", "");
4861
4861
  function ro(t) {
4862
4862
  return t != null && (typeof t == "object" || typeof t == "function") && typeof Reflect.get(t, "get") == "function" && typeof Reflect.get(t, "subscribe") == "function" && typeof Reflect.get(t, "getFetchState") == "function" && typeof Reflect.get(t, "getError") == "function";
4863
4863
  }
@@ -4884,7 +4884,7 @@ class no extends y {
4884
4884
  }
4885
4885
  a(no, "liveProps", oo);
4886
4886
  const ao = ["checked", "disabled", "required", "busy", "error"], so = ["disabled", "required", "busy", "error"];
4887
- class W extends Ct {
4887
+ class G extends Ct {
4888
4888
  constructor(e = {}) {
4889
4889
  super(e);
4890
4890
  a(this, "inputId");
@@ -4929,7 +4929,7 @@ class W extends Ct {
4929
4929
  ] });
4930
4930
  }
4931
4931
  }
4932
- a(W, "liveProps", ao), a(W, "dependencies", [E]), a(W, "hostName", "radio-button"), a(W, "css", x`
4932
+ a(G, "liveProps", ao), a(G, "dependencies", [E]), a(G, "hostName", "radio-button"), a(G, "css", x`
4933
4933
  & > label > input[type="radio"] + cap-checkshell {
4934
4934
  border-radius: 50%;
4935
4935
  }
@@ -4993,7 +4993,7 @@ class Me extends y {
4993
4993
  children: [
4994
4994
  i == null ? null : /* @__PURE__ */ h("legend", { children: i }),
4995
4995
  e.map(([p, m], f) => /* @__PURE__ */ h(
4996
- W,
4996
+ G,
4997
4997
  {
4998
4998
  id: `${this.groupId}-${f}`,
4999
4999
  name: this.props.name ?? this.groupId,
@@ -5025,7 +5025,7 @@ class Me extends y {
5025
5025
  );
5026
5026
  }
5027
5027
  }
5028
- a(Me, "dependencies", [W, E]), a(Me, "liveProps", so), a(Me, "hostName", "radio-group"), a(Me, "css", x`
5028
+ a(Me, "dependencies", [G, E]), a(Me, "liveProps", so), a(Me, "hostName", "radio-group"), a(Me, "css", x`
5029
5029
  & > fieldset {
5030
5030
  display: flex;
5031
5031
  flex-flow: column wrap;
@@ -5490,7 +5490,7 @@ function tt(t) {
5490
5490
  throw new TypeError("Toggle options must be [value, label] tuples");
5491
5491
  }
5492
5492
  const uo = ["disabled", "required", "readOnly", "busy", "error"];
5493
- class Z extends Ee {
5493
+ class ee extends Ee {
5494
5494
  constructor(e) {
5495
5495
  super(e);
5496
5496
  a(this, "inputId");
@@ -5553,7 +5553,7 @@ class Z extends Ee {
5553
5553
  ] });
5554
5554
  }
5555
5555
  }
5556
- a(Z, "liveProps", uo), a(Z, "dependencies", [E]), a(Z, "css", x`
5556
+ a(ee, "liveProps", uo), a(ee, "dependencies", [E]), a(ee, "css", x`
5557
5557
  & {
5558
5558
  display: grid;
5559
5559
  grid-template-columns: minmax(var(--input-min-width, 6rem), 1fr);
@@ -5677,7 +5677,7 @@ function fn(t, r, e) {
5677
5677
  const i = t * 12 + (r - 1) + e, o = Math.floor(i / 12), n = (i % 12 + 12) % 12 + 1;
5678
5678
  return { year: o, month: n };
5679
5679
  }
5680
- class mo extends Z {
5680
+ class mo extends ee {
5681
5681
  constructor() {
5682
5682
  super(...arguments);
5683
5683
  a(this, "inputType", "date");
@@ -5727,7 +5727,7 @@ function bn(t, r, e) {
5727
5727
  }
5728
5728
  return n;
5729
5729
  }
5730
- class go extends Z {
5730
+ class go extends ee {
5731
5731
  constructor() {
5732
5732
  super(...arguments);
5733
5733
  a(this, "inputType", "time");
@@ -5796,7 +5796,7 @@ function vo(t) {
5796
5796
  function xn(t = /* @__PURE__ */ new Date()) {
5797
5797
  return vo(t);
5798
5798
  }
5799
- class xo extends Z {
5799
+ class xo extends ee {
5800
5800
  constructor() {
5801
5801
  super(...arguments);
5802
5802
  a(this, "inputType", "datetime-local");
@@ -6232,7 +6232,7 @@ function To(t) {
6232
6232
  if (typeof Reflect.get(t, r) != "string" || String(Reflect.get(t, r)).length === 0)
6233
6233
  throw new TypeError(`Capillary UI stylesheet option ${r} must be a non-empty string`);
6234
6234
  }
6235
- class Dr extends de {
6235
+ class Dr extends ue {
6236
6236
  constructor(e, i, o) {
6237
6237
  const n = e.options ?? o;
6238
6238
  zo(n);
@@ -6494,7 +6494,7 @@ class $o {
6494
6494
  throw new TypeError("Selection route registration requires a subscriber");
6495
6495
  const n = this.scope(r), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set();
6496
6496
  for (const u of i) {
6497
- if (X(u.route), u.route.kind !== "literal")
6497
+ if (Z(u.route), u.route.kind !== "literal")
6498
6498
  throw new TypeError("Tab routes must use literal route descriptors");
6499
6499
  if (l.has(u.route) || n.entries.has(u.route))
6500
6500
  throw new Error(`Duplicate route in one scope: ${u.route.id}`);
@@ -6531,7 +6531,7 @@ class $o {
6531
6531
  i != null && (this.removeOwnerEntries(i, e), this.wakeRegistry());
6532
6532
  }
6533
6533
  registerValueRoute(r, e, i) {
6534
- if (this.assertActive(), _(r, this), Ue(e), X(i.route), i.route.kind !== "parameter")
6534
+ if (this.assertActive(), _(r, this), Ue(e), Z(i.route), i.route.kind !== "parameter")
6535
6535
  throw new TypeError("Value routes require a parameter route descriptor");
6536
6536
  if (hr(i.valueEmitter, "Value route emitter"), i.resolve != null && typeof i.resolve != "function")
6537
6537
  throw new TypeError("Value route resolver must be a function");
@@ -6618,7 +6618,7 @@ class $o {
6618
6618
  }
6619
6619
  resolve(r, e) {
6620
6620
  var o;
6621
- X(r), _(e, this);
6621
+ Z(r), _(e, this);
6622
6622
  let i = e;
6623
6623
  for (; i != null; ) {
6624
6624
  const n = (o = this.scopes.get(i)) == null ? void 0 : o.entries.get(r);
@@ -7039,13 +7039,13 @@ class Ve extends y {
7039
7039
  }
7040
7040
  initialize() {
7041
7041
  const e = He(this.props.views);
7042
- J(this.props.mountPolicy, "RouteOutlet"), this.selection.prepare(e), this.watch(this.valueEmitter);
7042
+ X(this.props.mountPolicy, "RouteOutlet"), this.selection.prepare(e), this.watch(this.valueEmitter);
7043
7043
  }
7044
7044
  setProps(e) {
7045
- return J(e.mountPolicy, "RouteOutlet"), super.setProps(e), this.selection.prepare(He(e.views)), this.update(), this;
7045
+ return X(e.mountPolicy, "RouteOutlet"), super.setProps(e), this.selection.prepare(He(e.views)), this.update(), this;
7046
7046
  }
7047
7047
  render() {
7048
- const e = He(this.props.views), i = J(this.props.mountPolicy, "RouteOutlet"), o = this.selection.selected(e), n = this.selection.updateMounted(e, i), s = this.Host;
7048
+ const e = He(this.props.views), i = X(this.props.mountPolicy, "RouteOutlet"), o = this.selection.selected(e), n = this.selection.updateMounted(e, i), s = this.Host;
7049
7049
  return /* @__PURE__ */ h(
7050
7050
  s,
7051
7051
  {
@@ -7168,32 +7168,32 @@ export {
7168
7168
  Tr as BaseSelectionHandler,
7169
7169
  Ce as Breadcrumb,
7170
7170
  $o as BrowserRouter,
7171
- Q as Button,
7171
+ W as Button,
7172
7172
  Bt as CapillaryUiApp,
7173
7173
  jr as CapillaryUiRuntime,
7174
7174
  P as Checkbox,
7175
7175
  Tn as ColorPicker,
7176
7176
  y as Component,
7177
- se as DataTable,
7177
+ le as DataTable,
7178
7178
  mo as DatePicker,
7179
7179
  xo as DateTimePicker,
7180
- ie as DeclarativeRegion,
7180
+ oe as DeclarativeRegion,
7181
7181
  Oi as DefaultTableFilterEncoding,
7182
7182
  Er as DescriptionItem,
7183
7183
  Le as DescriptionList,
7184
7184
  De as Dialog,
7185
7185
  nr as DialogActions,
7186
- de as Dropdown,
7186
+ ue as Dropdown,
7187
7187
  k as FilterMode,
7188
7188
  B as FilterPanel,
7189
7189
  we as Fragment,
7190
- ce as GroupBox,
7190
+ de as GroupBox,
7191
7191
  D as Header,
7192
7192
  Sr as InfoField,
7193
7193
  Pe as InfoPanel,
7194
7194
  no as Label,
7195
7195
  ge as Layout,
7196
- ae as ListView,
7196
+ se as ListView,
7197
7197
  zn as MemoryNavigationAdapter,
7198
7198
  hi as MultiSelectionHandler,
7199
7199
  ze as NavigationBar,
@@ -7205,7 +7205,7 @@ export {
7205
7205
  A as Placeholder,
7206
7206
  je as ProgressBar,
7207
7207
  ar as QuadCheckbox,
7208
- W as RadioButton,
7208
+ G as RadioButton,
7209
7209
  Me as RadioGroup,
7210
7210
  fe as RouteLink,
7211
7211
  Ve as RouteOutlet,
@@ -7223,28 +7223,28 @@ export {
7223
7223
  Ne as SplitView,
7224
7224
  Dn as StyleRegistry,
7225
7225
  bt as Tab,
7226
- ue as TabLine,
7226
+ he as TabLine,
7227
7227
  Te as TabPanel,
7228
7228
  me as TableHeader,
7229
- pe as TableHeaderCell,
7230
- Z as TemporalInput,
7229
+ Q as TableHeaderCell,
7230
+ ee as TemporalInput,
7231
7231
  Ae as Textbox,
7232
7232
  In as ThemePicker,
7233
7233
  go as TimePicker,
7234
7234
  qe as Toggle,
7235
7235
  rt as Toolbar,
7236
7236
  Ot as TreeItem,
7237
- le as TreeView,
7237
+ ce as TreeView,
7238
7238
  sr as TriCheckbox,
7239
7239
  dn as addCivilDays,
7240
7240
  fn as addMonths,
7241
7241
  Li as applyLocalTableState,
7242
7242
  Br as assertRouteCodec,
7243
- X as assertRouteDescriptor,
7243
+ Z as assertRouteDescriptor,
7244
7244
  Qr as assertRouteQueryCodec,
7245
7245
  Ye as assertRouteTarget,
7246
7246
  zr as assertSort,
7247
- re as assertTreeNodes,
7247
+ ie as assertTreeNodes,
7248
7248
  Qo as booleanRouteQueryCodec,
7249
7249
  So as capillaryUiColorOptions,
7250
7250
  Eo as capillaryUiThemeOptions,