@floegence/floe-webapp-core 0.73.0 → 0.74.2

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.
@@ -1,5 +1,7 @@
1
1
  import { type JSX } from 'solid-js';
2
2
  export interface FileBrowserStatusBarProps {
3
+ /** Keep the status geometry without reporting an unconfirmed count or path. */
4
+ initializing?: boolean;
3
5
  /** Additional classes for the status bar container. */
4
6
  class?: string;
5
7
  /** Additional classes for the current-path label. */
@@ -1,48 +1,74 @@
1
- import { insert as r, createComponent as f, effect as g, className as v, setAttribute as C, template as o } from "solid-js/web";
2
- import { Show as h } from "solid-js";
3
- import { cn as x } from "../../utils/cn.js";
1
+ import { insert as i, createComponent as a, effect as f, className as v, setAttribute as h, template as u } from "solid-js/web";
2
+ import { Show as m } from "solid-js";
3
+ import { Skeleton as g } from "../loading/Skeleton.js";
4
+ import { cn as w } from "../../utils/cn.js";
4
5
  import { useFileBrowser as $ } from "./FileBrowserContext.js";
5
- var p = /* @__PURE__ */ o("<span aria-hidden=true>·"), w = /* @__PURE__ */ o("<span>"), _ = /* @__PURE__ */ o('<div data-file-browser-status-bar=true><div class="flex flex-wrap items-center gap-1.5"><span></span></div><div>');
6
+ var x = /* @__PURE__ */ u("<span aria-hidden=true>·"), b = /* @__PURE__ */ u("<span>"), C = /* @__PURE__ */ u('<div class="flex flex-wrap items-center gap-1.5"><span>'), p = /* @__PURE__ */ u("<div>"), _ = /* @__PURE__ */ u("<div data-file-browser-status-bar=true>");
6
7
  function S(t) {
7
8
  return `${t} ${t === 1 ? "item" : "items"}`;
8
9
  }
9
- function F(t) {
10
+ function y(t) {
10
11
  return `${t} selected`;
11
12
  }
12
- function P(t) {
13
- const n = $(), s = () => n.currentFiles().length, i = () => n.selectedItems().size;
13
+ function A(t) {
14
+ const l = $(), d = () => l.currentFiles().length, s = () => l.selectedItems().size;
14
15
  return (() => {
15
- var a = _(), l = a.firstChild, b = l.firstChild, u = l.nextSibling;
16
- return r(b, () => t.formatItemCount?.(s()) ?? S(s())), r(l, f(h, {
16
+ var o = _();
17
+ return i(o, a(m, {
17
18
  get when() {
18
- return n.filterQueryApplied().trim();
19
+ return !t.initializing;
19
20
  },
20
- get children() {
21
- return [p(), (() => {
22
- var e = w();
23
- return r(e, () => t.filteredLabel ?? "Filtered"), e;
24
- })()];
25
- }
26
- }), null), r(l, f(h, {
27
- get when() {
28
- return i() > 0;
21
+ get fallback() {
22
+ return [a(g, {
23
+ class: "h-[1.5em] w-12"
24
+ }), a(g, {
25
+ class: "h-[1.5em] w-32"
26
+ })];
29
27
  },
30
28
  get children() {
31
- return [p(), (() => {
32
- var e = w();
33
- return r(e, () => t.formatSelectedCount?.(i()) ?? F(i())), e;
29
+ return [(() => {
30
+ var e = C(), n = e.firstChild;
31
+ return i(n, () => t.formatItemCount?.(d()) ?? S(d())), i(e, a(m, {
32
+ get when() {
33
+ return l.filterQueryApplied().trim();
34
+ },
35
+ get children() {
36
+ return [x(), (() => {
37
+ var r = b();
38
+ return i(r, () => t.filteredLabel ?? "Filtered"), r;
39
+ })()];
40
+ }
41
+ }), null), i(e, a(m, {
42
+ get when() {
43
+ return s() > 0;
44
+ },
45
+ get children() {
46
+ return [x(), (() => {
47
+ var r = b();
48
+ return i(r, () => t.formatSelectedCount?.(s()) ?? y(s())), r;
49
+ })()];
50
+ }
51
+ }), null), e;
52
+ })(), (() => {
53
+ var e = p();
54
+ return i(e, () => l.currentPath()), f((n) => {
55
+ var r = w("max-w-[200px] truncate text-right", t.pathClass), c = l.currentPath();
56
+ return r !== n.e && v(e, n.e = r), c !== n.t && h(e, "title", n.t = c), n;
57
+ }, {
58
+ e: void 0,
59
+ t: void 0
60
+ }), e;
34
61
  })()];
35
62
  }
36
- }), null), r(u, () => n.currentPath()), g((e) => {
37
- var d = x("flex flex-wrap items-center justify-between gap-2 border-t border-border px-3 py-1 text-[10px] text-muted-foreground", t.class), m = x("max-w-[200px] truncate text-right", t.pathClass), c = n.currentPath();
38
- return d !== e.e && v(a, e.e = d), m !== e.t && v(u, e.t = m), c !== e.a && C(u, "title", e.a = c), e;
63
+ })), f((e) => {
64
+ var n = t.initializing || void 0, r = w("flex flex-wrap items-center justify-between gap-2 border-t border-border px-3 py-1 text-[10px] text-muted-foreground", t.class);
65
+ return n !== e.e && h(o, "aria-busy", e.e = n), r !== e.t && v(o, e.t = r), e;
39
66
  }, {
40
67
  e: void 0,
41
- t: void 0,
42
- a: void 0
43
- }), a;
68
+ t: void 0
69
+ }), o;
44
70
  })();
45
71
  }
46
72
  export {
47
- P as FileBrowserStatusBar
73
+ A as FileBrowserStatusBar
48
74
  };
@@ -1,5 +1,7 @@
1
1
  export interface FileGridViewProps {
2
2
  class?: string;
3
+ /** No successful directory result exists yet. Do not set during background refresh. */
4
+ initializing?: boolean;
3
5
  /** Instance ID for drag operations */
4
6
  instanceId?: string;
5
7
  /** Whether drag and drop is enabled */