react-semaphor 0.0.689 → 0.0.691

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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-CVe9Ly3u.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/index-DRvSuKSw.js"),r=require("../types/index.cjs");exports.Dashboard=e.Dashboard;exports.EMPTY_SELECTION=r.EMPTY_SELECTION;
@@ -1,4 +1,4 @@
1
- import { D as a } from "../chunks/index-BATJPB8E.js";
1
+ import { D as a } from "../chunks/index-BH94YTiC.js";
2
2
  import { EMPTY_SELECTION as e } from "../types/index.js";
3
3
  export {
4
4
  a as Dashboard,
package/dist/index.cjs CHANGED
@@ -1 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-CVe9Ly3u.js"),C=require("./types/index.cjs"),s=require("./chunks/dashboard-plus-DzJwjJjJ.js"),o=require("react/jsx-runtime"),T=require("react");require("react-dom");function h(a){const{displayPreferences:i,...u}=a,d={...u,id:a.dashboardId};return o.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:o.jsx(e.SemaphorContextProvider,{dashboardProps:d,children:o.jsx(e.UXProvider,{children:o.jsx(e.DisplayPreferencesProvider,{displayPreferences:i,children:o.jsx(e.Container,{type:"visual",...d,children:o.jsx(g,{cardId:a.cardId})})})})})})}function g({cardId:a}){const i=e.useDashboardStore(t=>{var n;return(n=t.dashboard)==null?void 0:n.sheets}),{card:u,frame:d}=T.useMemo(()=>{const t=i==null?void 0:i.flatMap(r=>r.frames),n=t==null?void 0:t.flatMap(r=>r==null?void 0:r.cards),c=n==null?void 0:n.find(r=>(r==null?void 0:r.id)===a),M=t==null?void 0:t.find(r=>{var Y;return(Y=r==null?void 0:r.cards)==null?void 0:Y.find(l=>(l==null?void 0:l.id)===a)});return{card:c,frame:M}},[i,a]);return!u||!d?o.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${a}`}):o.jsx("main",{className:"flex h-full grow flex-col",children:o.jsx(e.ErrorBoundary,{FallbackComponent:({error:t,resetErrorBoundary:n})=>o.jsx(e.FallbackVisual,{error:t,resetErrorBoundary:n,customerFacingMessage:"Error creating visual. Please try again."}),children:o.jsx(e.DashboardCard,{card:u,frame:d})})})}const S=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];var D=(a=>(a.SUBTOTAL="__SUBTOTAL__",a.TOTAL="__TOTAL__",a.ALL="__ALL__",a))(D||{});exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.downloadPdf=e.downloadPdf;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=C.EMPTY_SELECTION;exports.AdvancedModeToggle=s.AdvancedModeToggle;exports.ResourceManagementPanel=s.ResourceManagementPanel;exports.ScheduleDashboard=s.ScheduleDashboard;exports.SelectComponent=s.SelectComponent;exports.ShareDialog=s.ShareDialog;exports.Surfboard=s.DashboardPlus;exports.VisualBadge=s.VisualBadge;exports.VisualEditingControls=s.VisualEditingControls;exports.cleanCard=s.cleanCard;exports.getDashbaordStateWithoutData=s.getDashbaordStateWithoutData;exports.DATE_FORMAT_VALUES=S;exports.PivotMarkerEnum=D;exports.Visual=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/index-DRvSuKSw.js"),v=require("./types/index.cjs"),u=require("./chunks/dashboard-plus-DUGBQtC2.js"),a=require("react/jsx-runtime"),x=require("react");require("react-dom");function j(r){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const s in r)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>r[s]})}}return t.default=r,Object.freeze(t)}const p=j(x);/**
2
+ * @license lucide-react v0.453.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const N=e.createLucideIcon("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);function P(r){const{displayPreferences:t,...s}=r,i={...s,id:r.dashboardId};return a.jsx(e.ErrorBoundary,{FallbackComponent:e.Fallback,children:a.jsx(e.SemaphorContextProvider,{dashboardProps:i,children:a.jsx(e.UXProvider,{children:a.jsx(e.DisplayPreferencesProvider,{displayPreferences:t,children:a.jsx(e.Container,{type:"visual",...i,children:a.jsx(E,{cardId:r.cardId})})})})})})}function E({cardId:r}){const t=e.useDashboardStore(n=>{var l;return(l=n.dashboard)==null?void 0:l.sheets}),{card:s,frame:i}=x.useMemo(()=>{const n=t==null?void 0:t.flatMap(o=>o.frames),l=n==null?void 0:n.flatMap(o=>o==null?void 0:o.cards),f=l==null?void 0:l.find(o=>(o==null?void 0:o.id)===r),D=n==null?void 0:n.find(o=>{var h;return(h=o==null?void 0:o.cards)==null?void 0:h.find(c=>(c==null?void 0:c.id)===r)});return{card:f,frame:D}},[t,r]);return!s||!i?a.jsx(e.FallbackVisual,{error:new Error("Card not found"),resetErrorBoundary:()=>{},customerFacingMessage:`Card not found with ID: ${r}`}):a.jsx("main",{className:"flex h-full grow flex-col",children:a.jsx(e.ErrorBoundary,{FallbackComponent:({error:n,resetErrorBoundary:l})=>a.jsx(e.FallbackVisual,{error:n,resetErrorBoundary:l,customerFacingMessage:"Error creating visual. Please try again."}),children:a.jsx(e.DashboardCard,{card:s,frame:i})})})}const A=["MM-DD-YYYY","YYYY-MM-DD","MM/DD/YYYY","DD/MM/YYYY","MMMM DD, YYYY","MMM DD, YYYY","DD MMM YYYY","Week of MMM DD, YYYY","Week of MMMM DD, YYYY","YYYY-WW","MMM YYYY","MMMM YYYY","YYYY-MM","MM/YYYY","YYYY MMM","Q1 YYYY","YYYY Q1","1st Quarter YYYY","YYYY-Q1","Quarter 1, YYYY","YYYY","YY","custom"];var b=(r=>(r.SUBTOTAL="__SUBTOTAL__",r.TOTAL="__TOTAL__",r.ALL="__ALL__",r))(b||{});function _({name:r,items:t,value:s,onChange:i,isLoading:n,isError:l,refetch:f,className:D,icon:o,showNone:h=!1}){const c=p.useRef(null),[m,M]=p.useState(!1),[g,y]=p.useState("100%"),C=h?[...t||[],{id:"none",name:"None"}]:t;p.useLayoutEffect(()=>{c.current&&y(c.current.offsetWidth)},[]);function T(){var d;return n?"Loading...":l?"Error":s?(d=t==null?void 0:t.find(Y=>Y.id===s))==null?void 0:d.name:`Select ${r}`}function S(d,Y){i(Y),M(!1)}return a.jsxs(e.Popover,{open:m,onOpenChange:M,children:[a.jsx(e.PopoverTrigger,{asChild:!0,children:a.jsxs(e.Button,{ref:c,variant:"outline",role:"combobox","aria-expanded":m,className:e.cn("flex h-9 w-full justify-between",D),children:[a.jsxs("div",{className:"flex items-center gap-2",children:[o&&a.jsx("div",{className:"mr-2",children:o}),a.jsx("span",{className:"max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap",children:T()})]}),a.jsx(e.ChevronDown,{className:"size-4 opacity-50"})]})}),a.jsx(e.PopoverContent,{className:"w-full p-0",style:{minWidth:g},children:a.jsxs(e.Command,{children:[a.jsxs("div",{className:"flex h-9 items-center justify-between border-b pr-1",children:[a.jsx(e.CommandInput,{className:"h-9",placeholder:"Search..."}),a.jsx(e.IconButton,{className:"h-7",onClick:f,children:a.jsx(N,{className:e.cn("size-3.5 opacity-50",n&&"animate-spin")})})]}),a.jsxs(e.CommandList,{children:[a.jsxs(e.CommandEmpty,{children:["No ",r==null?void 0:r.toLowerCase()," found."]}),a.jsx(e.CommandGroup,{children:C==null?void 0:C.map(d=>a.jsx(e.CommandItem,{className:"overflow-x-auto",value:d.name,onSelect:Y=>S(Y,d.id),children:a.jsxs("div",{className:"flex items-center gap-2",children:[a.jsx(e.Check,{className:e.cn("size-4",s===d.id?"opacity-100":"opacity-0")}),a.jsx("div",{title:d.name,children:d.name})]})},d.id))})]})]})})]})}exports.Dashboard=e.Dashboard;exports.DashboardWC=e.DashboardWC;exports.ResourceType=e.ResourceType;exports.SemaphorContextProvider=e.SemaphorContextProvider;exports.SemaphorDataProvider=e.SemaphorQueryClient;exports.SemaphorQueryClient=e.SemaphorQueryClient;exports.createSqlGenConfig=e.createSqlGenConfig;exports.downloadPdf=e.downloadPdf;exports.fmt=e.fmt;exports.getColumnDataType=e.getColumnDataType;exports.getFilterValueType=e.getFilterValueType;exports.getFormattedTableNameForQuery=e.getFormattedTableNameForQuery;exports.getQualifiedTableName=e.getQualifiedTableName;exports.getSql=e.getSql;exports.invalidateToken=e.invalidateToken;exports.isBooleanDataType=e.isBooleanDataType;exports.isColumnInSqlGen=e.isColumnInSqlGen;exports.isDateDataType=e.isDateDataType;exports.isNumberDataType=e.isNumberDataType;exports.isTextDataType=e.isTextDataType;exports.resolveDataType=e.resolveDataType;exports.resolveDatamodelName=e.resolveDatamodelName;exports.useCard=e.useCard;exports.useCurrentActiveCard=e.useCurrentActiveCard;exports.useCurrentCardConfig=e.useCurrentCardConfig;exports.useCurrentSheetActiveCards=e.useCurrentSheetActiveCards;exports.useDashboardActions=e.useDashboardActions;exports.useDashboardStore=e.useDashboardStore;exports.useDataColumns=e.useDataColumns;exports.useDateFilterHook=e.useDateFilterHook;exports.useEditorActions=e.useEditorActions;exports.useEditorAside=e.useEditorAside;exports.useEditorStore=e.useEditorStore;exports.useTextFilterHook=e.useTextFilterHook;exports.EMPTY_SELECTION=v.EMPTY_SELECTION;exports.AdvancedModeToggle=u.AdvancedModeToggle;exports.ResourceManagementPanel=u.ResourceManagementPanel;exports.ScheduleDashboard=u.ScheduleDashboard;exports.ShareDialog=u.ShareDialog;exports.Surfboard=u.DashboardPlus;exports.VisualBadge=u.VisualBadge;exports.VisualEditingControls=u.VisualEditingControls;exports.cleanCard=u.cleanCard;exports.getDashbaordStateWithoutData=u.getDashbaordStateWithoutData;exports.Combobox=_;exports.DATE_FORMAT_VALUES=A;exports.PivotMarkerEnum=b;exports.Visual=P;
package/dist/index.js CHANGED
@@ -1,58 +1,71 @@
1
- import { E as u, F as c, S as h, U as f, a as p, C as T, u as m, b as l, c as C } from "./chunks/index-BATJPB8E.js";
2
- import { D as L, h as k, R as Q, f as V, f as B, r as w, j as N, l as O, t as W, s as R, x as U, y as q, q as I, i as G, p as H, v as j, o as z, n as J, m as K, z as X, w as $, g as Z, B as aa, H as ea, G as sa, I as ra, k as oa, d as ta, K as Ya, A as na, J as ia, e as da } from "./chunks/index-BATJPB8E.js";
3
- import { EMPTY_SELECTION as ua } from "./types/index.js";
4
- import { A as Da, R as ca, b as ha, c as fa, S as pa, D as Ta, a as ma, V as Ca, d as ga, g as ba } from "./chunks/dashboard-plus-CvIEcQve.js";
5
- import { jsx as s } from "react/jsx-runtime";
6
- import { useMemo as g } from "react";
1
+ import { c as x, E as b, F as N, S as w, U as A, a as L, C as _, u as P, b as v, d as E, P as k, e as W, B as F, f as m, g as R, h as V, i as B, j as O, I as Q, k as I, l as j, m as q, n as U, o as z } from "./chunks/index-BH94YTiC.js";
2
+ import { D as ne, t as ie, R as de, r as le, r as ce, K as Ye, w as ue, y as he, M as fe, L as pe, Q as Me, T as me, J as De, v as Ce, H as ve, N as be, G as ge, A as ye, z as Te, V as Se, O as xe, s as Ne, X as we, Z as Ae, Y as Le, _ as _e, x as Pe, p as Ee, a0 as ke, W as We, $ as Fe, q as Re } from "./chunks/index-BH94YTiC.js";
3
+ import { EMPTY_SELECTION as Be } from "./types/index.js";
4
+ import { A as Qe, R as Ie, b as je, S as qe, D as Ue, a as ze, V as Ge, c as He, g as $e } from "./chunks/dashboard-plus-CmctxWlG.js";
5
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
6
+ import * as h from "react";
7
+ import { useMemo as G } from "react";
7
8
  import "react-dom";
8
- function E(a) {
9
- const { displayPreferences: t, ...n } = a, Y = {
10
- ...n,
9
+ /**
10
+ * @license lucide-react v0.453.0 - ISC
11
+ *
12
+ * This source code is licensed under the ISC license.
13
+ * See the LICENSE file in the root directory of this source tree.
14
+ */
15
+ const H = x("RefreshCw", [
16
+ ["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
17
+ ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
18
+ ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
19
+ ["path", { d: "M8 16H3v5", key: "1cv678" }]
20
+ ]);
21
+ function ae(a) {
22
+ const { displayPreferences: o, ...i } = a, l = {
23
+ ...i,
11
24
  id: a.dashboardId
12
25
  // override the id to the dashboard id so that the dashboard is not loaded
13
26
  };
14
- return /* @__PURE__ */ s(u, { FallbackComponent: c, children: /* @__PURE__ */ s(h, { dashboardProps: Y, children: /* @__PURE__ */ s(f, { children: /* @__PURE__ */ s(p, { displayPreferences: t, children: /* @__PURE__ */ s(T, { type: "visual", ...Y, children: /* @__PURE__ */ s(b, { cardId: a.cardId }) }) }) }) }) });
27
+ return /* @__PURE__ */ e(b, { FallbackComponent: N, children: /* @__PURE__ */ e(w, { dashboardProps: l, children: /* @__PURE__ */ e(A, { children: /* @__PURE__ */ e(L, { displayPreferences: o, children: /* @__PURE__ */ e(_, { type: "visual", ...l, children: /* @__PURE__ */ e($, { cardId: a.cardId }) }) }) }) }) });
15
28
  }
16
- function b({ cardId: a }) {
17
- const t = m((r) => {
18
- var o;
19
- return (o = r.dashboard) == null ? void 0 : o.sheets;
20
- }), { card: n, frame: Y } = g(() => {
21
- const r = t == null ? void 0 : t.flatMap((e) => e.frames), o = r == null ? void 0 : r.flatMap((e) => e == null ? void 0 : e.cards), M = o == null ? void 0 : o.find((e) => (e == null ? void 0 : e.id) === a), D = r == null ? void 0 : r.find(
22
- (e) => {
23
- var d;
24
- return (d = e == null ? void 0 : e.cards) == null ? void 0 : d.find((i) => (i == null ? void 0 : i.id) === a);
29
+ function $({ cardId: a }) {
30
+ const o = P((r) => {
31
+ var t;
32
+ return (t = r.dashboard) == null ? void 0 : t.sheets;
33
+ }), { card: i, frame: l } = G(() => {
34
+ const r = o == null ? void 0 : o.flatMap((s) => s.frames), t = r == null ? void 0 : r.flatMap((s) => s == null ? void 0 : s.cards), f = t == null ? void 0 : t.find((s) => (s == null ? void 0 : s.id) === a), p = r == null ? void 0 : r.find(
35
+ (s) => {
36
+ var u;
37
+ return (u = s == null ? void 0 : s.cards) == null ? void 0 : u.find((c) => (c == null ? void 0 : c.id) === a);
25
38
  }
26
39
  );
27
- return { card: M, frame: D };
28
- }, [t, a]);
29
- return !n || !Y ? /* @__PURE__ */ s(
30
- l,
40
+ return { card: f, frame: p };
41
+ }, [o, a]);
42
+ return !i || !l ? /* @__PURE__ */ e(
43
+ v,
31
44
  {
32
45
  error: new Error("Card not found"),
33
46
  resetErrorBoundary: () => {
34
47
  },
35
48
  customerFacingMessage: `Card not found with ID: ${a}`
36
49
  }
37
- ) : /* @__PURE__ */ s("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ s(
38
- u,
50
+ ) : /* @__PURE__ */ e("main", { className: "flex h-full grow flex-col", children: /* @__PURE__ */ e(
51
+ b,
39
52
  {
40
53
  FallbackComponent: ({
41
54
  error: r,
42
- resetErrorBoundary: o
43
- }) => /* @__PURE__ */ s(
44
- l,
55
+ resetErrorBoundary: t
56
+ }) => /* @__PURE__ */ e(
57
+ v,
45
58
  {
46
59
  error: r,
47
- resetErrorBoundary: o,
60
+ resetErrorBoundary: t,
48
61
  customerFacingMessage: "Error creating visual. Please try again."
49
62
  }
50
63
  ),
51
- children: /* @__PURE__ */ s(C, { card: n, frame: Y })
64
+ children: /* @__PURE__ */ e(E, { card: i, frame: l })
52
65
  }
53
66
  ) });
54
67
  }
55
- const x = [
68
+ const se = [
56
69
  // Day granularity formats
57
70
  "MM-DD-YYYY",
58
71
  "YYYY-MM-DD",
@@ -83,54 +96,146 @@ const x = [
83
96
  // Custom format
84
97
  "custom"
85
98
  ];
86
- var S = /* @__PURE__ */ ((a) => (a.SUBTOTAL = "__SUBTOTAL__", a.TOTAL = "__TOTAL__", a.ALL = "__ALL__", a))(S || {});
99
+ var X = /* @__PURE__ */ ((a) => (a.SUBTOTAL = "__SUBTOTAL__", a.TOTAL = "__TOTAL__", a.ALL = "__ALL__", a))(X || {});
100
+ function re({
101
+ name: a,
102
+ items: o,
103
+ value: i,
104
+ onChange: l,
105
+ isLoading: r,
106
+ isError: t,
107
+ refetch: f,
108
+ className: p,
109
+ icon: s,
110
+ showNone: u = !1
111
+ }) {
112
+ const c = h.useRef(null), [D, C] = h.useState(!1), [g, y] = h.useState("100%"), M = u ? [...o || [], { id: "none", name: "None" }] : o;
113
+ h.useLayoutEffect(() => {
114
+ c.current && y(c.current.offsetWidth);
115
+ }, []);
116
+ function T() {
117
+ var n;
118
+ return r ? "Loading..." : t ? "Error" : i ? (n = o == null ? void 0 : o.find((Y) => Y.id === i)) == null ? void 0 : n.name : `Select ${a}`;
119
+ }
120
+ function S(n, Y) {
121
+ l(Y), C(!1);
122
+ }
123
+ return /* @__PURE__ */ d(k, { open: D, onOpenChange: C, children: [
124
+ /* @__PURE__ */ e(W, { asChild: !0, children: /* @__PURE__ */ d(
125
+ F,
126
+ {
127
+ ref: c,
128
+ variant: "outline",
129
+ role: "combobox",
130
+ "aria-expanded": D,
131
+ className: m("flex h-9 w-full justify-between", p),
132
+ children: [
133
+ /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
134
+ s && /* @__PURE__ */ e("div", { className: "mr-2", children: s }),
135
+ /* @__PURE__ */ e("span", { className: "max-w-[150px] overflow-hidden truncate text-ellipsis whitespace-nowrap", children: T() })
136
+ ] }),
137
+ /* @__PURE__ */ e(R, { className: "size-4 opacity-50" })
138
+ ]
139
+ }
140
+ ) }),
141
+ /* @__PURE__ */ e(
142
+ V,
143
+ {
144
+ className: "w-full p-0",
145
+ style: { minWidth: g },
146
+ children: /* @__PURE__ */ d(B, { children: [
147
+ /* @__PURE__ */ d("div", { className: "flex h-9 items-center justify-between border-b pr-1", children: [
148
+ /* @__PURE__ */ e(O, { className: "h-9", placeholder: "Search..." }),
149
+ /* @__PURE__ */ e(Q, { className: "h-7", onClick: f, children: /* @__PURE__ */ e(
150
+ H,
151
+ {
152
+ className: m(
153
+ "size-3.5 opacity-50",
154
+ r && "animate-spin"
155
+ )
156
+ }
157
+ ) })
158
+ ] }),
159
+ /* @__PURE__ */ d(I, { children: [
160
+ /* @__PURE__ */ d(j, { children: [
161
+ "No ",
162
+ a == null ? void 0 : a.toLowerCase(),
163
+ " found."
164
+ ] }),
165
+ /* @__PURE__ */ e(q, { children: M == null ? void 0 : M.map((n) => /* @__PURE__ */ e(
166
+ U,
167
+ {
168
+ className: "overflow-x-auto",
169
+ value: n.name,
170
+ onSelect: (Y) => S(Y, n.id),
171
+ children: /* @__PURE__ */ d("div", { className: "flex items-center gap-2", children: [
172
+ /* @__PURE__ */ e(
173
+ z,
174
+ {
175
+ className: m(
176
+ "size-4",
177
+ i === n.id ? "opacity-100" : "opacity-0"
178
+ )
179
+ }
180
+ ),
181
+ /* @__PURE__ */ e("div", { title: n.name, children: n.name })
182
+ ] })
183
+ },
184
+ n.id
185
+ )) })
186
+ ] })
187
+ ] })
188
+ }
189
+ )
190
+ ] });
191
+ }
87
192
  export {
88
- Da as AdvancedModeToggle,
89
- x as DATE_FORMAT_VALUES,
90
- L as Dashboard,
91
- k as DashboardWC,
92
- ua as EMPTY_SELECTION,
93
- S as PivotMarkerEnum,
94
- ca as ResourceManagementPanel,
95
- Q as ResourceType,
96
- ha as ScheduleDashboard,
97
- fa as SelectComponent,
98
- h as SemaphorContextProvider,
99
- V as SemaphorDataProvider,
100
- B as SemaphorQueryClient,
101
- pa as ShareDialog,
102
- Ta as Surfboard,
103
- E as Visual,
104
- ma as VisualBadge,
105
- Ca as VisualEditingControls,
106
- ga as cleanCard,
107
- w as createSqlGenConfig,
108
- N as downloadPdf,
109
- O as fmt,
110
- W as getColumnDataType,
111
- ba as getDashbaordStateWithoutData,
112
- R as getFilterValueType,
113
- U as getFormattedTableNameForQuery,
114
- q as getQualifiedTableName,
115
- I as getSql,
116
- G as invalidateToken,
117
- H as isBooleanDataType,
118
- j as isColumnInSqlGen,
119
- z as isDateDataType,
120
- J as isNumberDataType,
121
- K as isTextDataType,
122
- X as resolveDataType,
123
- $ as resolveDatamodelName,
124
- Z as useCard,
125
- aa as useCurrentActiveCard,
126
- ea as useCurrentCardConfig,
127
- sa as useCurrentSheetActiveCards,
128
- ra as useDashboardActions,
129
- m as useDashboardStore,
130
- oa as useDataColumns,
131
- ta as useDateFilterHook,
132
- Ya as useEditorActions,
133
- na as useEditorAside,
134
- ia as useEditorStore,
135
- da as useTextFilterHook
193
+ Qe as AdvancedModeToggle,
194
+ re as Combobox,
195
+ se as DATE_FORMAT_VALUES,
196
+ ne as Dashboard,
197
+ ie as DashboardWC,
198
+ Be as EMPTY_SELECTION,
199
+ X as PivotMarkerEnum,
200
+ Ie as ResourceManagementPanel,
201
+ de as ResourceType,
202
+ je as ScheduleDashboard,
203
+ w as SemaphorContextProvider,
204
+ le as SemaphorDataProvider,
205
+ ce as SemaphorQueryClient,
206
+ qe as ShareDialog,
207
+ Ue as Surfboard,
208
+ ae as Visual,
209
+ ze as VisualBadge,
210
+ Ge as VisualEditingControls,
211
+ He as cleanCard,
212
+ Ye as createSqlGenConfig,
213
+ ue as downloadPdf,
214
+ he as fmt,
215
+ fe as getColumnDataType,
216
+ $e as getDashbaordStateWithoutData,
217
+ pe as getFilterValueType,
218
+ Me as getFormattedTableNameForQuery,
219
+ me as getQualifiedTableName,
220
+ De as getSql,
221
+ Ce as invalidateToken,
222
+ ve as isBooleanDataType,
223
+ be as isColumnInSqlGen,
224
+ ge as isDateDataType,
225
+ ye as isNumberDataType,
226
+ Te as isTextDataType,
227
+ Se as resolveDataType,
228
+ xe as resolveDatamodelName,
229
+ Ne as useCard,
230
+ we as useCurrentActiveCard,
231
+ Ae as useCurrentCardConfig,
232
+ Le as useCurrentSheetActiveCards,
233
+ _e as useDashboardActions,
234
+ P as useDashboardStore,
235
+ Pe as useDataColumns,
236
+ Ee as useDateFilterHook,
237
+ ke as useEditorActions,
238
+ We as useEditorAside,
239
+ Fe as useEditorStore,
240
+ Re as useTextFilterHook
136
241
  };