@krosoft/react 0.0.254 → 0.0.255
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/{AppActions-BMq9aQrB.js → AppActions-DyKuUO4k.js} +1 -1
- package/dist/{AppSubTitle-DIQetGjl.js → AppSubTitle-CSQOqzlF.js} +1 -1
- package/dist/{GenericForm-D1TP41Gp.js → GenericForm-C0Hxh84y.js} +4 -4
- package/dist/{ImageInput-DnoBhP4X.js → ImageInput-D8bv_faw.js} +1 -1
- package/dist/{MultiSelect-O9AljNco.js → MultiSelect-6vCPLMY8.js} +1 -1
- package/dist/{SearchInput-BEqCjP6R.js → SearchInput-DlLexldF.js} +1 -1
- package/dist/{cards-3sbUuHR0.js → cards-CV5w_mHL.js} +1 -1
- package/dist/components/core/cards/index.js +1 -1
- package/dist/components/core/dialogs/index.js +2 -2
- package/dist/components/core/filters/index.js +3 -3
- package/dist/components/core/forms/index.js +1 -1
- package/dist/components/core/index.js +10 -10
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +4 -4
- package/dist/components/core/table/JsonTableOutput.d.ts.map +1 -1
- package/dist/components/core/table/index.js +1 -1
- package/dist/components/core/tabs/index.js +2 -2
- package/dist/components/index.js +10 -10
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/tabs.d.ts +14 -3
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/{dialogs-CVA3y-o4.js → dialogs-CnBaE0-1.js} +2 -2
- package/dist/{table-C4tXdSu3.js → table-C56FL-qc.js} +92 -92
- package/dist/{ui-hvA1osvS.js → ui-CvuDSRPw.js} +56 -38
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { Bt as t, Ft as n, Gt as r, Nt as i, jt as a } from "./ui-
|
|
2
|
+
import { Bt as t, Ft as n, Gt as r, Nt as i, jt as a } from "./ui-CvuDSRPw.js";
|
|
3
3
|
import { s as o } from "./tooltip-B2dzyfs9.js";
|
|
4
4
|
import { t as s } from "./useMobile-pTQ8lWvt.js";
|
|
5
5
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./AppActions-
|
|
1
|
+
import { t as e } from "./AppActions-DyKuUO4k.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import { useTranslation as r } from "react-i18next";
|
|
4
4
|
//#region src/components/core/layouts/AppSubTitle.tsx
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, s as r } from "./chart-Dq3AIrue.js";
|
|
3
|
-
import { Ct as i, Dt as a, Et as o, Ot as s, St as c, Tt as l, bn as u, p as d } from "./ui-
|
|
3
|
+
import { Ct as i, Dt as a, Et as o, Ot as s, St as c, Tt as l, bn as u, p as d } from "./ui-CvuDSRPw.js";
|
|
4
4
|
import { s as f } from "./tooltip-B2dzyfs9.js";
|
|
5
5
|
import { t as p } from "./i18n-DW5zKBEK.js";
|
|
6
6
|
import { g as m } from "./sheet-B8mCfCPe.js";
|
|
7
7
|
import { i as h, l as g, n as _, t as v, u as y } from "./select-ULiTPOr5.js";
|
|
8
8
|
import { n as b } from "./useToast-UeDRLovh.js";
|
|
9
|
-
import { t as x } from "./ImageInput-
|
|
10
|
-
import { t as S } from "./AppSubTitle-
|
|
11
|
-
import { t as C } from "./MultiSelect-
|
|
9
|
+
import { t as x } from "./ImageInput-D8bv_faw.js";
|
|
10
|
+
import { t as S } from "./AppSubTitle-CSQOqzlF.js";
|
|
11
|
+
import { t as C } from "./MultiSelect-6vCPLMY8.js";
|
|
12
12
|
import { useState as w } from "react";
|
|
13
13
|
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
14
14
|
import { useTranslation as D } from "react-i18next";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { bn as t } from "./ui-
|
|
2
|
+
import { bn as t } from "./ui-CvuDSRPw.js";
|
|
3
3
|
import { o as n } from "./tooltip-B2dzyfs9.js";
|
|
4
4
|
import { t as r } from "./i18n-DW5zKBEK.js";
|
|
5
5
|
import { useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { En as t } from "./ui-
|
|
2
|
+
import { En as t } from "./ui-CvuDSRPw.js";
|
|
3
3
|
import { o as n, s as r } from "./tooltip-B2dzyfs9.js";
|
|
4
4
|
import { r as i, t as a } from "./i18n-DW5zKBEK.js";
|
|
5
5
|
import { C as o, S as s, _ as c, b as l, g as u, h as d, m as f, p, x as m, y as h } from "./sheet-B8mCfCPe.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, f as r, s as i } from "./chart-Dq3AIrue.js";
|
|
3
|
-
import "./ui-
|
|
3
|
+
import "./ui-CvuDSRPw.js";
|
|
4
4
|
import { t as a } from "./skeleton-D6Ga4BLw.js";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../cards-CV5w_mHL.js";
|
|
2
2
|
export { r as DashboardCard, e as KpiCard, t as KpiCards, i as MetricCard, n as SkeletonCard, a as SkeletonCards };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as e } from "../../../ui-
|
|
1
|
+
import { I as e } from "../../../ui-CvuDSRPw.js";
|
|
2
2
|
import { A as t, D as n, E as r, F as i, M as a, N as o, O as s, P as c, j as l, k as u } from "../../../sheet-B8mCfCPe.js";
|
|
3
|
-
import { n as d, r as f, t as p } from "../../../dialogs-
|
|
3
|
+
import { n as d, r as f, t as p } from "../../../dialogs-CnBaE0-1.js";
|
|
4
4
|
export { f as AppDialog, p as ConfirmationDialog, r as Dialog, n as DialogClose, s as DialogContent, u as DialogDescription, t as DialogFooter, l as DialogHeader, a as DialogOverlay, o as DialogPortal, c as DialogTitle, i as DialogTrigger, d as FormDialog, e as Progress };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
|
|
2
|
-
import { At as t, Pn as n, bn as r } from "../../../ui-
|
|
2
|
+
import { At as t, Pn as n, bn as r } from "../../../ui-CvuDSRPw.js";
|
|
3
3
|
import { a as i, s as a } from "../../../tooltip-B2dzyfs9.js";
|
|
4
4
|
import { t as o } from "../../../i18n-DW5zKBEK.js";
|
|
5
5
|
import { a as s, g as c, h as l, l as u, m as d, o as f, p, r as m, t as h, u as g } from "../../../sheet-B8mCfCPe.js";
|
|
6
6
|
import { i as _, l as v, n as y, t as b, u as x } from "../../../select-ULiTPOr5.js";
|
|
7
|
-
import { t as S } from "../../../MultiSelect-
|
|
8
|
-
import { i as C, n as w, r as T, t as E } from "../../../SearchInput-
|
|
7
|
+
import { t as S } from "../../../MultiSelect-6vCPLMY8.js";
|
|
8
|
+
import { i as C, n as w, r as T, t as E } from "../../../SearchInput-DlLexldF.js";
|
|
9
9
|
import { useEffect as D, useMemo as O, useState as k } from "react";
|
|
10
10
|
import { jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
11
11
|
import { getLocale as M } from "@krosoft/core/helpers";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../GenericForm-
|
|
1
|
+
import { t as e } from "../../../GenericForm-C0Hxh84y.js";
|
|
2
2
|
export { e as GenericForm };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-
|
|
2
|
-
import { I as o } from "../../ui-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../cards-CV5w_mHL.js";
|
|
2
|
+
import { I as o } from "../../ui-CvuDSRPw.js";
|
|
3
3
|
import { A as s, D as c, E as l, F as u, M as d, N as f, O as p, P as m, j as h, k as g } from "../../sheet-B8mCfCPe.js";
|
|
4
4
|
import { a as _, c as v, i as y, n as b, o as x, r as S, s as C, t as w } from "../../charts-CwT9AFWj.js";
|
|
5
|
-
import { n as T, r as E, t as D } from "../../dialogs-
|
|
6
|
-
import { t as O } from "../../ImageInput-
|
|
7
|
-
import { t as k } from "../../AppActions-
|
|
8
|
-
import { t as A } from "../../AppSubTitle-
|
|
9
|
-
import { t as j } from "../../MultiSelect-
|
|
10
|
-
import { t as M } from "../../GenericForm-
|
|
5
|
+
import { n as T, r as E, t as D } from "../../dialogs-CnBaE0-1.js";
|
|
6
|
+
import { t as O } from "../../ImageInput-D8bv_faw.js";
|
|
7
|
+
import { t as k } from "../../AppActions-DyKuUO4k.js";
|
|
8
|
+
import { t as A } from "../../AppSubTitle-CSQOqzlF.js";
|
|
9
|
+
import { t as j } from "../../MultiSelect-6vCPLMY8.js";
|
|
10
|
+
import { t as M } from "../../GenericForm-C0Hxh84y.js";
|
|
11
11
|
import { t as N } from "../../ErrorAlert-DClCk3Ey.js";
|
|
12
|
-
import { i as P, n as F, r as I, t as L } from "../../SearchInput-
|
|
12
|
+
import { i as P, n as F, r as I, t as L } from "../../SearchInput-DlLexldF.js";
|
|
13
13
|
import { ActiveFilters as R, AdvancedFilters as z, FilterField as B, SearchableFilterPill as V, TableFilter as H } from "./filters/index.js";
|
|
14
14
|
import "./forms/index.js";
|
|
15
15
|
import "./inputs/index.js";
|
|
@@ -18,7 +18,7 @@ import { t as W } from "../../AppTitle-BR4JFZfp.js";
|
|
|
18
18
|
import { n as G, t as K } from "../../states-BusGNKku.js";
|
|
19
19
|
import { AppPageHeader as q, KpiCardsLayout as J } from "./layouts/index.js";
|
|
20
20
|
import { a as Y, i as X, n as Z, o as Q, r as $, t as ee } from "../../navbar-DLxNVUU9.js";
|
|
21
|
-
import { a as te, c as ne, d as re, f as ie, i as ae, l as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "../../table-
|
|
21
|
+
import { a as te, c as ne, d as re, f as ie, i as ae, l as oe, n as se, o as ce, p as le, r as ue, s as de, t as fe, u as pe } from "../../table-C56FL-qc.js";
|
|
22
22
|
import { AppTabContainer as me, AppTabHeader as he, AppTabs as ge, AppVerticalTabs as _e } from "./tabs/index.js";
|
|
23
23
|
import { t as ve } from "../../theme-Ck_D5xtg.js";
|
|
24
24
|
export { ne as ACTIONS_COLUMN_KEY, R as ActiveFilters, z as AdvancedFilters, k as AppActions, E as AppDialog, q as AppPageHeader, A as AppSubTitle, me as AppTabContainer, he as AppTabHeader, ge as AppTabs, W as AppTitle, _e as AppVerticalTabs, v as BarChartHorizontal, C as BarChartVertical, _ as CHART_COLORS, y as ChartCard, S as CircularGauge, D as ConfirmationDialog, r as DashboardCard, se as DataTable, P as DatePicker, I as DateRangePicker, l as Dialog, c as DialogClose, p as DialogContent, g as DialogDescription, s as DialogFooter, h as DialogHeader, d as DialogOverlay, f as DialogPortal, m as DialogTitle, u as DialogTrigger, N as ErrorAlert, G as ErrorState, B as FilterField, T as FormDialog, M as GenericForm, Q as GlobalSearch, O as ImageInput, fe as JsonTableOutput, e as KpiCard, t as KpiCards, J as KpiCardsLayout, U as LanguageSelector, b as LineChart, K as LoadingState, i as MetricCard, j as MultiSelect, Y as NotificationsBell, w as PieChart, o as Progress, oe as SELECTION_COLUMN_KEY, L as SearchInput, V as SearchableFilterPill, F as SearchableSelect, $ as Sidebar, Z as SidebarHeader, X as SidebarNavItem, n as SkeletonCard, a as SkeletonCards, le as TableActions, de as TableBody, ce as TableBulkActions, H as TableFilter, te as TableHeader, ae as TablePagination, ue as TableSettings, ve as ThemeSelector, ee as Topbar, re as getAlignmentClass, x as getChartColor, ie as getColumnAlignment, pe as getFixedCellProps };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../../../ImageInput-
|
|
2
|
-
import { t } from "../../../MultiSelect-
|
|
3
|
-
import { i as n, n as r, r as i, t as a } from "../../../SearchInput-
|
|
1
|
+
import { t as e } from "../../../ImageInput-D8bv_faw.js";
|
|
2
|
+
import { t } from "../../../MultiSelect-6vCPLMY8.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../../../SearchInput-DlLexldF.js";
|
|
4
4
|
export { n as DatePicker, i as DateRangePicker, e as ImageInput, t as MultiSelect, a as SearchInput, r as SearchableSelect };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as e, t } from "../../../cards-
|
|
2
|
-
import "../../../ui-
|
|
1
|
+
import { i as e, t } from "../../../cards-CV5w_mHL.js";
|
|
2
|
+
import "../../../ui-CvuDSRPw.js";
|
|
3
3
|
import { s as n } from "../../../tooltip-B2dzyfs9.js";
|
|
4
|
-
import { t as r } from "../../../AppActions-
|
|
5
|
-
import { t as i } from "../../../AppSubTitle-
|
|
4
|
+
import { t as r } from "../../../AppActions-DyKuUO4k.js";
|
|
5
|
+
import { t as i } from "../../../AppSubTitle-CSQOqzlF.js";
|
|
6
6
|
import { t as a } from "../../../AppTitle-BR4JFZfp.js";
|
|
7
7
|
import { t as o } from "../../../useDocumentTitle-D7MywIeB.js";
|
|
8
8
|
import { n as s } from "../../../states-BusGNKku.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonTableOutput.d.ts","sourceRoot":"","sources":["../../../../src/components/core/table/JsonTableOutput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"JsonTableOutput.d.ts","sourceRoot":"","sources":["../../../../src/components/core/table/JsonTableOutput.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,UAAU,oBAAoB;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,eAAe,GAAI,oBAAoB,oBAAoB,KAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAuG9F,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../../../table-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "../../../table-C56FL-qc.js";
|
|
2
2
|
export { t as ACTIONS_COLUMN_KEY, o as DataTable, d as JsonTableOutput, a as SELECTION_COLUMN_KEY, c as TableActions, u as TableBody, s as TableBulkActions, e as TableHeader, i as TablePagination, l as TableSettings, n as getAlignmentClass, r as getColumnAlignment, f as getFixedCellProps };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "../../../tailwind.helper-CJaRYBmL.js";
|
|
2
2
|
import { c as t, d as n, s as r } from "../../../chart-Dq3AIrue.js";
|
|
3
|
-
import { _ as i, g as a, h as o, m as s } from "../../../ui-
|
|
3
|
+
import { _ as i, g as a, h as o, m as s } from "../../../ui-CvuDSRPw.js";
|
|
4
4
|
import { t as c } from "../../../i18n-DW5zKBEK.js";
|
|
5
5
|
import { d as l } from "../../../sheet-B8mCfCPe.js";
|
|
6
6
|
import { i as u, l as d, n as f, t as p, u as m } from "../../../select-ULiTPOr5.js";
|
|
7
|
-
import { t as h } from "../../../AppActions-
|
|
7
|
+
import { t as h } from "../../../AppActions-DyKuUO4k.js";
|
|
8
8
|
import { t as g } from "../../../AppTitle-BR4JFZfp.js";
|
|
9
9
|
import { useEffect as _, useRef as v } from "react";
|
|
10
10
|
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
package/dist/components/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../chart-Dq3AIrue.js";
|
|
2
|
-
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-
|
|
3
|
-
import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-
|
|
2
|
+
import { a as f, i as p, n as m, o as h, r as g, t as _ } from "../cards-CV5w_mHL.js";
|
|
3
|
+
import { $ as v, $t as y, A as b, An as x, At as S, B as C, Bn as w, Bt as T, C as E, Cn as D, Ct as O, D as k, Dn as A, Dt as j, E as M, En as N, Et as P, F, Fn as I, Ft as L, G as R, Gn as z, Gt as B, H as V, Hn as H, Ht as U, I as W, In as G, It as K, J as q, Jn as J, Jt as Y, K as X, Kn as Z, Kt as Q, L as $, Ln as ee, Lt as te, M as ne, Mn as re, Mt as ie, N as ae, Nn as oe, Nt as se, O as ce, On as le, Ot as ue, P as de, Pn as fe, Pt as pe, Q as me, Qn as he, Qt as ge, R as _e, Rn as ve, Rt as ye, S as be, Sn as xe, St as Se, T as Ce, Tn as we, Tt as Te, U as Ee, Un as De, Ut as Oe, V as ke, Vn as Ae, Vt as je, W as Me, Wn as Ne, Wt as Pe, X as Fe, Xn as Ie, Xt as Le, Y as Re, Yn as ze, Yt as Be, Z as Ve, Zn as He, Zt as Ue, _ as We, _n as Ge, _t as Ke, a as qe, an as Je, at as Ye, b as Xe, bn as Ze, bt as Qe, c as $e, cn as et, ct as tt, d as nt, dn as rt, dt as it, en as at, et as ot, f as st, fn as ct, ft as lt, g as ut, gn as dt, gt as ft, h as pt, hn as mt, ht, i as gt, in as _t, it as vt, j as yt, jn as bt, jt as xt, k as St, kn as Ct, kt as wt, l as Tt, ln as Et, lt as Dt, m as Ot, mn as kt, mt as At, n as jt, nn as Mt, nt as Nt, o as Pt, on as Ft, ot as It, p as Lt, pn as Rt, pt as zt, q as Bt, qn as Vt, qt as Ht, r as Ut, rn as Wt, rt as Gt, s as Kt, sn as qt, st as Jt, t as Yt, tn as Xt, tt as Zt, u as Qt, un as $t, ut as en, v as tn, vn as nn, vt as rn, w as an, wn as on, wt as sn, x as cn, xn as ln, xt as un, y as dn, yn as fn, yt as pn, z as mn, zn as hn, zt as gn } from "../ui-CvuDSRPw.js";
|
|
4
4
|
import { n as _n, r as vn, t as yn } from "../alert-REQGK9bR.js";
|
|
5
5
|
import { a as bn, c as xn, i as Sn, n as Cn, o as wn, r as Tn, s as En, t as Dn } from "../tooltip-B2dzyfs9.js";
|
|
6
6
|
import { A as On, C as kn, D as An, E as jn, F as Mn, M as Nn, N as Pn, O as Fn, P as In, S as Ln, T as Rn, _ as zn, a as Bn, b as Vn, c as Hn, d as Un, f as Wn, g as Gn, h as Kn, i as qn, j as Jn, k as Yn, l as Xn, m as Zn, n as Qn, o as $n, p as er, r as tr, s as nr, t as rr, u as ir, v as ar, w as or, x as sr, y as cr } from "../sheet-B8mCfCPe.js";
|
|
7
7
|
import { a as lr, c as ur, i as dr, l as fr, n as pr, o as mr, r as hr, s as gr, t as _r, u as vr } from "../select-ULiTPOr5.js";
|
|
8
8
|
import { t as yr } from "../skeleton-D6Ga4BLw.js";
|
|
9
9
|
import { a as br, c as xr, i as Sr, n as Cr, o as wr, r as Tr, s as Er, t as Dr } from "../charts-CwT9AFWj.js";
|
|
10
|
-
import { n as Or, r as kr, t as Ar } from "../dialogs-
|
|
11
|
-
import { t as jr } from "../ImageInput-
|
|
12
|
-
import { t as Mr } from "../AppActions-
|
|
13
|
-
import { t as Nr } from "../AppSubTitle-
|
|
14
|
-
import { t as Pr } from "../MultiSelect-
|
|
15
|
-
import { t as Fr } from "../GenericForm-
|
|
10
|
+
import { n as Or, r as kr, t as Ar } from "../dialogs-CnBaE0-1.js";
|
|
11
|
+
import { t as jr } from "../ImageInput-D8bv_faw.js";
|
|
12
|
+
import { t as Mr } from "../AppActions-DyKuUO4k.js";
|
|
13
|
+
import { t as Nr } from "../AppSubTitle-CSQOqzlF.js";
|
|
14
|
+
import { t as Pr } from "../MultiSelect-6vCPLMY8.js";
|
|
15
|
+
import { t as Fr } from "../GenericForm-C0Hxh84y.js";
|
|
16
16
|
import { t as Ir } from "../ErrorAlert-DClCk3Ey.js";
|
|
17
|
-
import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-
|
|
17
|
+
import { i as Lr, n as Rr, r as zr, t as Br } from "../SearchInput-DlLexldF.js";
|
|
18
18
|
import { ActiveFilters as Vr, AdvancedFilters as Hr, FilterField as Ur, SearchableFilterPill as Wr, TableFilter as Gr } from "./core/filters/index.js";
|
|
19
19
|
import { t as Kr } from "../language-Cn7U026J.js";
|
|
20
20
|
import { t as qr } from "../AppTitle-BR4JFZfp.js";
|
|
21
21
|
import { n as Jr, t as Yr } from "../states-BusGNKku.js";
|
|
22
22
|
import { AppPageHeader as Xr, KpiCardsLayout as Zr } from "./core/layouts/index.js";
|
|
23
23
|
import { a as Qr, i as $r, n as ei, o as ti, r as ni, t as ri } from "../navbar-DLxNVUU9.js";
|
|
24
|
-
import { a as ii, c as ai, d as oi, f as si, i as ci, l as li, n as ui, o as di, p as fi, r as pi, s as mi, t as hi, u as gi } from "../table-
|
|
24
|
+
import { a as ii, c as ai, d as oi, f as si, i as ci, l as li, n as ui, o as di, p as fi, r as pi, s as mi, t as hi, u as gi } from "../table-C56FL-qc.js";
|
|
25
25
|
import { AppTabContainer as _i, AppTabHeader as vi, AppTabs as yi, AppVerticalTabs as bi } from "./core/tabs/index.js";
|
|
26
26
|
import { t as xi } from "../theme-Ck_D5xtg.js";
|
|
27
27
|
import "./core/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../chart-Dq3AIrue.js";
|
|
2
|
-
import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-
|
|
2
|
+
import { $ as f, $t as p, A as m, An as h, At as g, B as _, Bn as v, Bt as y, C as b, Cn as x, Ct as S, D as C, Dn as w, Dt as T, E, En as D, Et as O, F as k, Fn as A, Ft as j, G as M, Gn as N, Gt as P, H as F, Hn as I, Ht as L, I as R, In as z, It as B, J as V, Jn as H, Jt as U, K as W, Kn as G, Kt as K, L as q, Ln as J, Lt as Y, M as X, Mn as Z, Mt as Q, N as $, Nn as ee, Nt as te, O as ne, On as re, Ot as ie, P as ae, Pn as oe, Pt as se, Q as ce, Qn as le, Qt as ue, R as de, Rn as fe, Rt as pe, S as me, Sn as he, St as ge, T as _e, Tn as ve, Tt as ye, U as be, Un as xe, Ut as Se, V as Ce, Vn as we, Vt as Te, W as Ee, Wn as De, Wt as Oe, X as ke, Xn as Ae, Xt as je, Y as Me, Yn as Ne, Yt as Pe, Z as Fe, Zn as Ie, Zt as Le, _ as Re, _n as ze, _t as Be, a as Ve, an as He, at as Ue, b as We, bn as Ge, bt as Ke, c as qe, cn as Je, ct as Ye, d as Xe, dn as Ze, dt as Qe, en as $e, et, f as tt, fn as nt, ft as rt, g as it, gn as at, gt as ot, h as st, hn as ct, ht as lt, i as ut, in as dt, it as ft, j as pt, jn as mt, jt as ht, k as gt, kn as _t, kt as vt, l as yt, ln as bt, lt as xt, m as St, mn as Ct, mt as wt, n as Tt, nn as Et, nt as Dt, o as Ot, on as kt, ot as At, p as jt, pn as Mt, pt as Nt, q as Pt, qn as Ft, qt as It, r as Lt, rn as Rt, rt as zt, s as Bt, sn as Vt, st as Ht, t as Ut, tn as Wt, tt as Gt, u as Kt, un as qt, ut as Jt, v as Yt, vn as Xt, vt as Zt, w as Qt, wn as $t, wt as en, x as tn, xn as nn, xt as rn, y as an, yn as on, yt as sn, z as cn, zn as ln, zt as un } from "../../ui-CvuDSRPw.js";
|
|
3
3
|
import { n as dn, r as fn, t as pn } from "../../alert-REQGK9bR.js";
|
|
4
4
|
import { a as mn, c as hn, i as gn, n as _n, o as vn, r as yn, s as bn, t as xn } from "../../tooltip-B2dzyfs9.js";
|
|
5
5
|
import { A as Sn, C as Cn, D as wn, E as Tn, F as En, M as Dn, N as On, O as kn, P as An, S as jn, T as Mn, _ as Nn, a as Pn, b as Fn, c as In, d as Ln, f as Rn, g as zn, h as Bn, i as Vn, j as Hn, k as Un, l as Wn, m as Gn, n as Kn, o as qn, p as Jn, r as Yn, s as Xn, t as Zn, u as Qn, v as $n, w as er, x as tr, y as nr } from "../../sheet-B8mCfCPe.js";
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
4
|
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const
|
|
5
|
-
|
|
5
|
+
declare const tabsListVariants: (props?: ({
|
|
6
|
+
variant?: "line" | "solid" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
declare const tabsTriggerVariants: (props?: ({
|
|
9
|
+
variant?: "line" | "solid" | null | undefined;
|
|
10
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
12
|
+
variant?: "line" | "solid" | null | undefined;
|
|
13
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
15
|
+
variant?: "line" | "solid" | null | undefined;
|
|
16
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
17
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
18
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, tabsTriggerVariants };
|
|
8
19
|
//# sourceMappingURL=tabs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/ui/tabs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,IAAI,gGAAqB,CAAC;AAEhC,QAAA,MAAM,gBAAgB;;8EAYpB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;8EAaxB,CAAC;AAQF,QAAA,MAAM,QAAQ;;sHAoCZ,CAAC;AAGH,QAAA,MAAM,WAAW;;yHAMf,CAAC;AAGH,QAAA,MAAM,WAAW,0JAQhB,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Bn as e, Gn as t, Hn as n, I as r, Kn as i, Un as a, Wn as o, qn as s } from "./ui-
|
|
1
|
+
import { Bn as e, Gn as t, Hn as n, I as r, Kn as i, Un as a, Wn as o, qn as s } from "./ui-CvuDSRPw.js";
|
|
2
2
|
import { n as c, t as l } from "./alert-REQGK9bR.js";
|
|
3
3
|
import { s as u } from "./tooltip-B2dzyfs9.js";
|
|
4
4
|
import { t as d } from "./i18n-DW5zKBEK.js";
|
|
5
5
|
import { E as f, O as p, P as m, j as h, k as g } from "./sheet-B8mCfCPe.js";
|
|
6
|
-
import { t as _ } from "./GenericForm-
|
|
6
|
+
import { t as _ } from "./GenericForm-C0Hxh84y.js";
|
|
7
7
|
import { t as v } from "./ErrorAlert-DClCk3Ey.js";
|
|
8
8
|
import { useEffect as y, useState as b } from "react";
|
|
9
9
|
import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as e, C as t, D as n, Ft as r, Gt as i, Mt as a, Nt as o, O as s, S as c, T as l, bn as u, jt as d, k as f, v as p } from "./ui-
|
|
1
|
+
import { At as e, C as t, D as n, Ft as r, Gt as i, Mt as a, Nt as o, O as s, S as c, T as l, bn as u, jt as d, k as f, v as p } from "./ui-CvuDSRPw.js";
|
|
2
2
|
import { s as m } from "./tooltip-B2dzyfs9.js";
|
|
3
3
|
import { t as h } from "./i18n-DW5zKBEK.js";
|
|
4
4
|
import { i as g, l as _, n as v, t as y, u as b } from "./select-ULiTPOr5.js";
|
|
@@ -6,19 +6,19 @@ import { n as x, t as S } from "./useFixedColumns-DnzqhbfT.js";
|
|
|
6
6
|
import { useState as C } from "react";
|
|
7
7
|
import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
8
8
|
import { tryParseJson as D } from "@krosoft/core/helpers";
|
|
9
|
-
import { AlertTriangleIcon as O, ArrowDownIcon as k, ArrowUpDownIcon as A, ArrowUpIcon as j, ChevronLeftIcon as M, ChevronRightIcon as N, GripVerticalIcon as P, Loader2Icon as F, MoreVerticalIcon as
|
|
10
|
-
import { useNavigate as
|
|
9
|
+
import { AlertTriangleIcon as O, ArrowDownIcon as k, ArrowUpDownIcon as A, ArrowUpIcon as j, ChevronLeftIcon as M, ChevronRightIcon as N, GripVerticalIcon as P, Loader2Icon as F, MoreVerticalIcon as ee, SettingsIcon as te } from "lucide-react";
|
|
10
|
+
import { useNavigate as ne } from "react-router-dom";
|
|
11
11
|
//#region src/constants/datatable.ts
|
|
12
|
-
var
|
|
12
|
+
var I = [
|
|
13
13
|
5,
|
|
14
14
|
10,
|
|
15
15
|
30,
|
|
16
16
|
50,
|
|
17
17
|
100
|
|
18
|
-
],
|
|
18
|
+
], re = I[1];
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/core/table/TableActions.tsx
|
|
21
|
-
function
|
|
21
|
+
function L({ actions: e, row: t }) {
|
|
22
22
|
let n = e.filter((e) => e.visible === void 0 || e.visible(t));
|
|
23
23
|
if (n.length === 0) return null;
|
|
24
24
|
let a = n.filter((e) => e.overflow !== !0), s = n.filter((e) => e.overflow === !0);
|
|
@@ -42,7 +42,7 @@ function B({ actions: e, row: t }) {
|
|
|
42
42
|
variant: "ghost",
|
|
43
43
|
size: "icon",
|
|
44
44
|
className: "h-7 w-7 text-muted-foreground hover:text-foreground",
|
|
45
|
-
children: /* @__PURE__ */ T(
|
|
45
|
+
children: /* @__PURE__ */ T(ee, { className: "size-3.5" })
|
|
46
46
|
})
|
|
47
47
|
}), /* @__PURE__ */ T(o, {
|
|
48
48
|
align: "end",
|
|
@@ -68,26 +68,26 @@ function B({ actions: e, row: t }) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/core/table/columnAlignment.ts
|
|
71
|
-
var
|
|
71
|
+
var R = {
|
|
72
72
|
left: "text-left",
|
|
73
73
|
center: "text-center",
|
|
74
74
|
right: "text-right"
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function z(e) {
|
|
77
77
|
if (e.align !== void 0) return e.align;
|
|
78
78
|
let t = (e.className ?? "").split(/\s+/);
|
|
79
79
|
return t.includes("text-right") ? "right" : t.includes("text-center") ? "center" : "left";
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function B(e) {
|
|
82
|
+
return R[e];
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/components/core/table/fixedColumns.ts
|
|
86
|
-
var
|
|
86
|
+
var V = "__selection__", H = "__actions__", U = {
|
|
87
87
|
left: "border-r border-gray-200 dark:border-gray-800",
|
|
88
88
|
right: "border-l border-gray-200 dark:border-gray-800"
|
|
89
89
|
};
|
|
90
|
-
function
|
|
90
|
+
function W(e, t) {
|
|
91
91
|
if (e === void 0) return {
|
|
92
92
|
className: "relative",
|
|
93
93
|
style: {}
|
|
@@ -99,15 +99,15 @@ function q(e, t) {
|
|
|
99
99
|
n ? "z-20" : "z-10",
|
|
100
100
|
"before:absolute before:inset-0 before:-z-10 before:pointer-events-none",
|
|
101
101
|
n ? "before:bg-muted/50 dark:before:bg-gray-900/50" : "group-hover:before:bg-muted/50 dark:group-hover:before:bg-gray-900/50",
|
|
102
|
-
e.isEdge ?
|
|
102
|
+
e.isEdge ? U[e.side] : ""
|
|
103
103
|
].filter(Boolean).join(" "),
|
|
104
104
|
style: e.side === "left" ? { left: e.offset } : { right: e.offset }
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
108
|
//#region src/components/core/table/TableBody.tsx
|
|
109
|
-
function
|
|
110
|
-
let { t: S } = h(), C =
|
|
109
|
+
function G({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginatedData: i, getRowId: a, onRowClick: o, onRowNavigate: s, hasBulkActions: c, selectedRows: l, toggleRowSelection: d, visibleColumnsArray: f, columnWidths: p, hasActions: m, actions: g, columns: _, bordered: v = !1, dense: y = !1, resizableColumns: b = !1, fixedColumns: x = {} }) {
|
|
110
|
+
let { t: S } = h(), C = ne(), w = (e, t) => {
|
|
111
111
|
let n = _.find((e) => e.key === t);
|
|
112
112
|
if (n?.renderCell !== void 0) return n.renderCell(e);
|
|
113
113
|
let r = e[t];
|
|
@@ -152,7 +152,7 @@ function J({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
152
152
|
children: r ?? S("states.noResult")
|
|
153
153
|
}) })
|
|
154
154
|
});
|
|
155
|
-
let D =
|
|
155
|
+
let D = W(x[V], "body"), k = W(x[H], "body"), A = s !== void 0 || o !== void 0, j = (e, t) => {
|
|
156
156
|
if (s !== void 0) {
|
|
157
157
|
let n = s(e);
|
|
158
158
|
t.ctrlKey || t.metaKey ? window.open(n, "_blank") : C(n);
|
|
@@ -190,9 +190,9 @@ function J({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
190
190
|
})
|
|
191
191
|
}) : null,
|
|
192
192
|
f.map((t, n) => {
|
|
193
|
-
let r = n === f.length - 1, i =
|
|
193
|
+
let r = n === f.length - 1, i = W(x[t.key], "body");
|
|
194
194
|
return /* @__PURE__ */ T("td", {
|
|
195
|
-
className: `${`${n === 0 && !c ? "pl-4" : "pl-2"} ${r && !m ? "pr-4" : "pr-2"}`} ${y ? "py-2" : "py-4"} ${
|
|
195
|
+
className: `${`${n === 0 && !c ? "pl-4" : "pl-2"} ${r && !m ? "pr-4" : "pr-2"}`} ${y ? "py-2" : "py-4"} ${B(z(t))} ${i.className} ${v && !r ? "border-r border-gray-100 dark:border-gray-800" : ""} ${t.className ?? ""}`,
|
|
196
196
|
style: {
|
|
197
197
|
...b ? { width: p[t.key] } : { minWidth: p[t.key] },
|
|
198
198
|
...i.style
|
|
@@ -214,7 +214,7 @@ function J({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
214
214
|
},
|
|
215
215
|
children: g !== void 0 && g.length > 0 ? /* @__PURE__ */ T("div", {
|
|
216
216
|
className: "flex items-center justify-end",
|
|
217
|
-
children: /* @__PURE__ */ T(
|
|
217
|
+
children: /* @__PURE__ */ T(L, {
|
|
218
218
|
actions: g,
|
|
219
219
|
row: e
|
|
220
220
|
})
|
|
@@ -227,7 +227,7 @@ function J({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
227
227
|
}
|
|
228
228
|
//#endregion
|
|
229
229
|
//#region src/components/core/table/TableBulkActions.tsx
|
|
230
|
-
function
|
|
230
|
+
function K({ selectedRows: e, setSelectedRows: t, bulkActions: n }) {
|
|
231
231
|
return /* @__PURE__ */ E("div", {
|
|
232
232
|
className: "bg-muted/60 dark:bg-gray-900/60 border border-border px-3 py-1.5 flex items-center justify-between rounded-surface",
|
|
233
233
|
children: [/* @__PURE__ */ E("div", {
|
|
@@ -268,22 +268,22 @@ function Y({ selectedRows: e, setSelectedRows: t, bulkActions: n }) {
|
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/components/core/table/TableHeader.tsx
|
|
271
|
-
var
|
|
271
|
+
var q = {
|
|
272
272
|
left: "justify-start",
|
|
273
273
|
center: "justify-center",
|
|
274
274
|
right: "justify-end"
|
|
275
275
|
};
|
|
276
|
-
function
|
|
276
|
+
function J({ hasBulkActions: e, selectedRows: t, totalItems: n, toggleSelectAll: r, visibleColumnsArray: i, draggableColumns: a, resizableColumns: o, columnWidths: s, sortColumn: c, sortDirection: l, handleSort: d, handleDragStart: f, handleDragOver: p, handleDrop: m, handleMouseDown: h, hasActions: g, settingsNode: _, bordered: v = !1, dense: y = !1, fixedColumns: b = {}, fixedSelection: x = !1, fixedActions: S = !1 }) {
|
|
277
277
|
let C = !1;
|
|
278
278
|
t.length === n && n > 0 ? C = !0 : t.length > 0 && (C = "indeterminate");
|
|
279
279
|
let w = (e) => e.sortable === !0 ? c === e.key ? T(l === "asc" ? j : k, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ T(A, { className: "size-3.5 text-muted-foreground/50 group-hover:text-muted-foreground transition-colors" }) : null, D = (t, n, r) => {
|
|
280
|
-
let a = r !== !1 && t.fixed === void 0, c = t.sortable === !0, l =
|
|
280
|
+
let a = r !== !1 && t.fixed === void 0, c = t.sortable === !0, l = W(b[t.key], "header"), u = z(t), x = w(t), S = n === 0 && !e, C = n === i.length - 1 && !(g || _ !== void 0), D = `${S ? "pl-4" : "pl-2"} ${C ? "pr-4" : "pr-2"}`;
|
|
281
281
|
return /* @__PURE__ */ E("th", {
|
|
282
282
|
"data-column-key": t.key,
|
|
283
283
|
"data-fixed-side": t.fixed,
|
|
284
284
|
className: [
|
|
285
285
|
`${D} ${y ? "py-2" : "py-4"} text-sm font-medium text-gray-900 dark:text-gray-100 group`,
|
|
286
|
-
|
|
286
|
+
B(u),
|
|
287
287
|
l.className,
|
|
288
288
|
v ? "border-r border-gray-200 dark:border-gray-800" : "",
|
|
289
289
|
c ? "cursor-pointer select-none" : "",
|
|
@@ -307,7 +307,7 @@ function Z({ hasBulkActions: e, selectedRows: t, totalItems: n, toggleSelectAll:
|
|
|
307
307
|
m(e, t.key);
|
|
308
308
|
},
|
|
309
309
|
children: [/* @__PURE__ */ E("div", {
|
|
310
|
-
className: `flex items-center gap-1 ${
|
|
310
|
+
className: `flex items-center gap-1 ${q[u]} ${o ? "pr-2" : ""}`,
|
|
311
311
|
children: [
|
|
312
312
|
a ? /* @__PURE__ */ T(P, { className: "size-4 text-gray-400 cursor-grab dark:text-gray-300 shrink-0" }) : null,
|
|
313
313
|
/* @__PURE__ */ T("span", {
|
|
@@ -326,12 +326,12 @@ function Z({ hasBulkActions: e, selectedRows: t, totalItems: n, toggleSelectAll:
|
|
|
326
326
|
}
|
|
327
327
|
}) : null]
|
|
328
328
|
}, t.key);
|
|
329
|
-
}, O =
|
|
329
|
+
}, O = W(b[V], "header"), M = W(b[H], "header");
|
|
330
330
|
return /* @__PURE__ */ T("thead", {
|
|
331
331
|
className: "bg-muted/50 dark:bg-gray-900/50 border-b border-gray-200 dark:border-gray-800",
|
|
332
332
|
children: /* @__PURE__ */ E("tr", { children: [
|
|
333
333
|
e ? /* @__PURE__ */ T("th", {
|
|
334
|
-
"data-column-key":
|
|
334
|
+
"data-column-key": V,
|
|
335
335
|
"data-fixed-side": x ? "left" : void 0,
|
|
336
336
|
className: `p-1 text-center align-middle ${O.className}`,
|
|
337
337
|
style: {
|
|
@@ -350,7 +350,7 @@ function Z({ hasBulkActions: e, selectedRows: t, totalItems: n, toggleSelectAll:
|
|
|
350
350
|
}) : null,
|
|
351
351
|
i.map((e, t) => D(e, t, a)),
|
|
352
352
|
g || _ !== void 0 ? /* @__PURE__ */ T("th", {
|
|
353
|
-
"data-column-key":
|
|
353
|
+
"data-column-key": H,
|
|
354
354
|
"data-fixed-side": S ? "right" : void 0,
|
|
355
355
|
className: `p-1 text-right align-middle ${M.className}`,
|
|
356
356
|
style: {
|
|
@@ -364,31 +364,31 @@ function Z({ hasBulkActions: e, selectedRows: t, totalItems: n, toggleSelectAll:
|
|
|
364
364
|
}
|
|
365
365
|
//#endregion
|
|
366
366
|
//#region src/components/core/table/TablePagination.tsx
|
|
367
|
-
var
|
|
368
|
-
function
|
|
367
|
+
var Y = "…";
|
|
368
|
+
function X(e, t) {
|
|
369
369
|
return Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
if (n * 2 + 5 >= t) return
|
|
371
|
+
function ie(e, t, n = 1) {
|
|
372
|
+
if (n * 2 + 5 >= t) return X(1, t);
|
|
373
373
|
let r = Math.max(e - n, 1), i = Math.min(e + n, t), a = r > 2, o = i < t - 1;
|
|
374
374
|
return !a && o ? [
|
|
375
|
-
|
|
376
|
-
|
|
375
|
+
...X(1, n + 2),
|
|
376
|
+
Y,
|
|
377
377
|
t
|
|
378
378
|
] : a && !o ? [
|
|
379
379
|
1,
|
|
380
|
-
|
|
381
|
-
|
|
380
|
+
Y,
|
|
381
|
+
...X(t - (n + 2) + 1, t)
|
|
382
382
|
] : [
|
|
383
383
|
1,
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
384
|
+
Y,
|
|
385
|
+
...X(r, i),
|
|
386
|
+
Y,
|
|
387
387
|
t
|
|
388
388
|
];
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
let { t: l } = h(), u =
|
|
390
|
+
function Z({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSize: i, currentPage: a, setCurrentPage: o, pageSizeOptions: s, totalPages: c }) {
|
|
391
|
+
let { t: l } = h(), u = ie(a, c);
|
|
392
392
|
return /* @__PURE__ */ E("div", {
|
|
393
393
|
className: "px-4 py-2 border-t border-gray-200 dark:border-gray-800 flex flex-col sm:grid sm:grid-cols-3 items-center gap-2 bg-muted/50 dark:bg-gray-900/50",
|
|
394
394
|
children: [
|
|
@@ -414,9 +414,9 @@ function ne({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSiz
|
|
|
414
414
|
"aria-label": l("table.previousPage"),
|
|
415
415
|
children: /* @__PURE__ */ T(M, { className: "size-4" })
|
|
416
416
|
}),
|
|
417
|
-
u.map((e, t) => e ===
|
|
417
|
+
u.map((e, t) => e === Y ? /* @__PURE__ */ T("span", {
|
|
418
418
|
className: "flex h-8 w-8 items-center justify-center text-sm text-muted-foreground",
|
|
419
|
-
children:
|
|
419
|
+
children: Y
|
|
420
420
|
}, `dots-${String(t)}`) : /* @__PURE__ */ T(m, {
|
|
421
421
|
variant: e === a ? "default" : "ghost",
|
|
422
422
|
size: "icon",
|
|
@@ -461,14 +461,14 @@ function ne({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSiz
|
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/components/core/table/TableSettings.tsx
|
|
464
|
-
function
|
|
464
|
+
function ae({ columns: e, visibleColumns: t, toggleColumnVisibility: n }) {
|
|
465
465
|
return /* @__PURE__ */ E(d, { children: [/* @__PURE__ */ T(i, {
|
|
466
466
|
asChild: !0,
|
|
467
467
|
children: /* @__PURE__ */ T(m, {
|
|
468
468
|
variant: "outline",
|
|
469
469
|
size: "sm",
|
|
470
470
|
className: "size-7 p-0 bg-white hover:bg-gray-100 dark:bg-gray-900 shadow-sm border-gray-200 dark:border-gray-800",
|
|
471
|
-
children: /* @__PURE__ */ T(
|
|
471
|
+
children: /* @__PURE__ */ T(te, { className: "size-3.5 text-gray-600 dark:text-gray-300" })
|
|
472
472
|
})
|
|
473
473
|
}), /* @__PURE__ */ T(o, {
|
|
474
474
|
align: "end",
|
|
@@ -484,8 +484,8 @@ function re({ columns: e, visibleColumns: t, toggleColumnVisibility: n }) {
|
|
|
484
484
|
}
|
|
485
485
|
//#endregion
|
|
486
486
|
//#region src/components/core/table/DataTable.tsx
|
|
487
|
-
function
|
|
488
|
-
let { sortColumn: A, sortDirection: j, selectedRows: M, setSelectedRows: N, visibleColumns: P, columnWidths: F, safeCurrentPage:
|
|
487
|
+
function oe({ data: e, columns: t, getRowId: n, onRowClick: r, onRowNavigate: i, actions: a, bulkActions: o, draggableColumns: s = !1, resizableColumns: c = !1, columnVisibility: l = !1, isLoading: u = !1, error: d = null, bordered: f = !1, dense: p = !1, fixedActions: m = !1, noDataMessage: h, defaultPageSize: g = re, pageSizeOptions: _ = I, totalRows: v, currentPage: y, pageSize: b, onPageChange: C, onPageSizeChange: w, sortColumn: D, sortDirection: O, onSortChange: k }) {
|
|
488
|
+
let { sortColumn: A, sortDirection: j, selectedRows: M, setSelectedRows: N, visibleColumns: P, columnWidths: F, safeCurrentPage: ee, totalPages: te, startIndex: ne, endIndex: L, tableRef: R, hasActions: z, hasBulkActions: B, visibleColumnsArray: V, colSpanCount: H, paginatedData: U, handleSort: W, handleMouseDown: q, handleDragStart: Y, handleDragOver: X, handleDrop: ie, toggleColumnVisibility: oe, toggleRowSelection: Q, toggleSelectAll: $, pageSize: se, setPageSize: ce, setCurrentPage: le } = x({
|
|
489
489
|
data: e,
|
|
490
490
|
columns: t,
|
|
491
491
|
getRowId: n,
|
|
@@ -501,10 +501,10 @@ function ie({ data: e, columns: t, getRowId: n, onRowClick: r, onRowNavigate: i,
|
|
|
501
501
|
sortColumn: D,
|
|
502
502
|
sortDirection: O,
|
|
503
503
|
onSortChange: k
|
|
504
|
-
}), ue =
|
|
504
|
+
}), ue = B && V.some((e) => e.fixed === "left"), de = S(R);
|
|
505
505
|
return /* @__PURE__ */ E("div", {
|
|
506
506
|
className: "space-y-4 [--k-radius-control:var(--k-radius-control-dense,0.5rem)] [--k-radius-surface:var(--k-radius-surface-dense,0.75rem)]",
|
|
507
|
-
children: [M.length > 0 && o !== void 0 && o.length > 0 && /* @__PURE__ */ T(
|
|
507
|
+
children: [M.length > 0 && o !== void 0 && o.length > 0 && /* @__PURE__ */ T(K, {
|
|
508
508
|
selectedRows: M,
|
|
509
509
|
setSelectedRows: N,
|
|
510
510
|
bulkActions: o
|
|
@@ -513,76 +513,76 @@ function ie({ data: e, columns: t, getRowId: n, onRowClick: r, onRowNavigate: i,
|
|
|
513
513
|
children: [/* @__PURE__ */ T("div", {
|
|
514
514
|
className: "overflow-x-auto",
|
|
515
515
|
children: /* @__PURE__ */ E("table", {
|
|
516
|
-
ref:
|
|
516
|
+
ref: R,
|
|
517
517
|
className: "w-full",
|
|
518
|
-
children: [/* @__PURE__ */ T(
|
|
519
|
-
hasBulkActions:
|
|
518
|
+
children: [/* @__PURE__ */ T(J, {
|
|
519
|
+
hasBulkActions: B,
|
|
520
520
|
selectedRows: M,
|
|
521
521
|
totalItems: e.length,
|
|
522
|
-
toggleSelectAll:
|
|
523
|
-
visibleColumnsArray:
|
|
522
|
+
toggleSelectAll: $,
|
|
523
|
+
visibleColumnsArray: V,
|
|
524
524
|
draggableColumns: s,
|
|
525
525
|
resizableColumns: c,
|
|
526
526
|
columnWidths: F,
|
|
527
527
|
sortColumn: A,
|
|
528
528
|
sortDirection: j,
|
|
529
|
-
handleSort:
|
|
530
|
-
handleDragStart:
|
|
531
|
-
handleDragOver:
|
|
532
|
-
handleDrop:
|
|
533
|
-
handleMouseDown:
|
|
534
|
-
hasActions:
|
|
529
|
+
handleSort: W,
|
|
530
|
+
handleDragStart: Y,
|
|
531
|
+
handleDragOver: X,
|
|
532
|
+
handleDrop: ie,
|
|
533
|
+
handleMouseDown: q,
|
|
534
|
+
hasActions: z,
|
|
535
535
|
bordered: f,
|
|
536
536
|
dense: p,
|
|
537
537
|
fixedColumns: de,
|
|
538
538
|
fixedSelection: ue,
|
|
539
539
|
fixedActions: m,
|
|
540
|
-
settingsNode: l ? /* @__PURE__ */ T(
|
|
540
|
+
settingsNode: l ? /* @__PURE__ */ T(ae, {
|
|
541
541
|
columns: t,
|
|
542
542
|
visibleColumns: P,
|
|
543
|
-
toggleColumnVisibility:
|
|
543
|
+
toggleColumnVisibility: oe
|
|
544
544
|
}) : void 0
|
|
545
|
-
}), /* @__PURE__ */ T(
|
|
545
|
+
}), /* @__PURE__ */ T(G, {
|
|
546
546
|
bordered: f,
|
|
547
547
|
dense: p,
|
|
548
548
|
isLoading: u,
|
|
549
549
|
error: d,
|
|
550
|
-
colSpanCount:
|
|
550
|
+
colSpanCount: H,
|
|
551
551
|
noDataMessage: h,
|
|
552
|
-
paginatedData:
|
|
552
|
+
paginatedData: U,
|
|
553
553
|
getRowId: n,
|
|
554
554
|
onRowClick: r,
|
|
555
555
|
onRowNavigate: i,
|
|
556
|
-
hasBulkActions:
|
|
556
|
+
hasBulkActions: B,
|
|
557
557
|
selectedRows: M,
|
|
558
|
-
toggleRowSelection:
|
|
559
|
-
visibleColumnsArray:
|
|
558
|
+
toggleRowSelection: Q,
|
|
559
|
+
visibleColumnsArray: V,
|
|
560
560
|
columnWidths: F,
|
|
561
|
-
hasActions:
|
|
561
|
+
hasActions: z || l,
|
|
562
562
|
actions: a,
|
|
563
563
|
columns: t,
|
|
564
564
|
resizableColumns: c,
|
|
565
565
|
fixedColumns: de
|
|
566
566
|
})]
|
|
567
567
|
})
|
|
568
|
-
}), /* @__PURE__ */ T(
|
|
568
|
+
}), /* @__PURE__ */ T(Z, {
|
|
569
569
|
totalItems: v ?? e.length,
|
|
570
|
-
startIndex:
|
|
571
|
-
endIndex:
|
|
570
|
+
startIndex: ne,
|
|
571
|
+
endIndex: L,
|
|
572
572
|
pageSize: se,
|
|
573
573
|
setPageSize: ce,
|
|
574
|
-
currentPage:
|
|
574
|
+
currentPage: ee,
|
|
575
575
|
setCurrentPage: le,
|
|
576
576
|
pageSizeOptions: _,
|
|
577
|
-
totalPages:
|
|
577
|
+
totalPages: te
|
|
578
578
|
})]
|
|
579
579
|
})]
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
//#endregion
|
|
583
583
|
//#region src/components/core/table/JsonTableOutput.tsx
|
|
584
|
-
var
|
|
585
|
-
let [a, o] = C(!0), u = D(i), d = u !== null, m = (
|
|
584
|
+
var Q = (e) => typeof e == "object" && !!e, $ = (e) => e == null ? "" : typeof e == "string" ? e : typeof e == "number" || typeof e == "boolean" ? String(e) : JSON.stringify(e, null, 2), se = ({ header: r, output: i }) => {
|
|
585
|
+
let [a, o] = C(!0), u = D(i), d = u !== null, m = () => /* @__PURE__ */ E("div", {
|
|
586
586
|
className: "flex items-center justify-between mb-2",
|
|
587
587
|
children: [/* @__PURE__ */ T("span", {
|
|
588
588
|
className: "font-medium text-sm",
|
|
@@ -599,30 +599,30 @@ var ae = ({ header: r, output: i }) => {
|
|
|
599
599
|
children: "Mode tableau"
|
|
600
600
|
})]
|
|
601
601
|
})]
|
|
602
|
-
}),
|
|
602
|
+
}), h = ({ children: e }) => /* @__PURE__ */ T("div", {
|
|
603
603
|
className: "border rounded min-w-0 w-full",
|
|
604
604
|
children: /* @__PURE__ */ T(c, { children: e })
|
|
605
|
-
}),
|
|
605
|
+
}), g = () => /* @__PURE__ */ T("pre", {
|
|
606
606
|
className: "text-xs bg-muted p-4 rounded overflow-x-auto whitespace-pre-wrap",
|
|
607
607
|
children: d && !a ? JSON.stringify(u, null, 2) : i
|
|
608
608
|
});
|
|
609
609
|
return i ? /* @__PURE__ */ E("div", {
|
|
610
610
|
className: "min-w-0 w-full",
|
|
611
|
-
children: [
|
|
612
|
-
if (!d || !a) return /* @__PURE__ */ T(
|
|
613
|
-
if (Array.isArray(u) && u.length > 0 &&
|
|
614
|
-
let e = Object.keys(
|
|
615
|
-
return /* @__PURE__ */ E(
|
|
611
|
+
children: [m(), (() => {
|
|
612
|
+
if (!d || !a) return /* @__PURE__ */ T(g, {});
|
|
613
|
+
if (Array.isArray(u) && u.length > 0 && Q(u[0])) {
|
|
614
|
+
let e = u, r = Object.keys(e[0]);
|
|
615
|
+
return /* @__PURE__ */ E(h, { children: [/* @__PURE__ */ T(s, { children: /* @__PURE__ */ T(f, { children: r.map((e) => /* @__PURE__ */ T(n, {
|
|
616
616
|
className: "font-medium",
|
|
617
617
|
children: e
|
|
618
|
-
}, e)) }) }), /* @__PURE__ */ T(t, { children:
|
|
618
|
+
}, e)) }) }), /* @__PURE__ */ T(t, { children: e.map((e, t) => /* @__PURE__ */ T(f, { children: r.map((t) => /* @__PURE__ */ T(l, {
|
|
619
619
|
className: "text-sm whitespace-pre-wrap",
|
|
620
|
-
children:
|
|
621
|
-
},
|
|
620
|
+
children: $(e[t])
|
|
621
|
+
}, t)) }, t)) })] });
|
|
622
622
|
}
|
|
623
|
-
if (
|
|
623
|
+
if (Q(u)) {
|
|
624
624
|
let e = Object.entries(u);
|
|
625
|
-
return /* @__PURE__ */ E(
|
|
625
|
+
return /* @__PURE__ */ E(h, { children: [/* @__PURE__ */ T(s, { children: /* @__PURE__ */ E(f, { children: [/* @__PURE__ */ T(n, {
|
|
626
626
|
className: "font-medium",
|
|
627
627
|
children: "Propriété"
|
|
628
628
|
}), /* @__PURE__ */ T(n, {
|
|
@@ -633,12 +633,12 @@ var ae = ({ header: r, output: i }) => {
|
|
|
633
633
|
children: e
|
|
634
634
|
}), /* @__PURE__ */ T(l, {
|
|
635
635
|
className: "text-sm whitespace-pre-wrap",
|
|
636
|
-
children:
|
|
636
|
+
children: $(t)
|
|
637
637
|
})] }, e)) })] });
|
|
638
638
|
}
|
|
639
|
-
return /* @__PURE__ */ T(
|
|
639
|
+
return /* @__PURE__ */ T(g, {});
|
|
640
640
|
})()]
|
|
641
641
|
}) : null;
|
|
642
642
|
};
|
|
643
643
|
//#endregion
|
|
644
|
-
export {
|
|
644
|
+
export { J as a, H as c, B as d, z as f, Z as i, V as l, oe as n, K as o, L as p, ae as r, G as s, se as t, W as u };
|
|
@@ -1003,50 +1003,68 @@ var Qn = ({ ...e }) => {
|
|
|
1003
1003
|
$n.displayName = F.Root.displayName;
|
|
1004
1004
|
//#endregion
|
|
1005
1005
|
//#region src/components/ui/tabs.tsx
|
|
1006
|
-
var er = I.Root, tr =
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1006
|
+
var er = I.Root, tr = b("text-muted-foreground [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", {
|
|
1007
|
+
variants: { variant: {
|
|
1008
|
+
line: "inline-flex h-10 w-full items-center justify-start gap-6 overflow-x-auto overscroll-x-contain border-b border-border bg-transparent p-0",
|
|
1009
|
+
solid: "inline-flex h-10 w-fit items-center justify-center gap-1 rounded-md bg-muted p-1"
|
|
1010
|
+
} },
|
|
1011
|
+
defaultVariants: { variant: "line" }
|
|
1012
|
+
}), nr = b("relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap text-sm font-medium text-muted-foreground ring-offset-background cursor-pointer transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:text-foreground [&_svg]:h-4 [&_svg]:w-4", {
|
|
1013
|
+
variants: { variant: {
|
|
1014
|
+
line: "rounded-none border-b-2 border-transparent bg-transparent px-1 pb-2.5 pt-2 -mb-px data-[state=active]:border-primary data-[state=active]:shadow-none",
|
|
1015
|
+
solid: "rounded-sm px-3 py-1.5 data-[state=active]:bg-background data-[state=active]:shadow-sm"
|
|
1016
|
+
} },
|
|
1017
|
+
defaultVariants: { variant: "line" }
|
|
1018
|
+
}), rr = a.createContext("line"), ir = a.forwardRef(({ className: t, style: n, variant: i, ...s }, c) => {
|
|
1019
|
+
let l = i ?? "line", u = a.useRef(null), d = a.useCallback((e) => {
|
|
1020
|
+
u.current = e, typeof c == "function" ? c(e) : c && (c.current = e);
|
|
1021
|
+
}, [c]), f = r(u);
|
|
1022
|
+
return /* @__PURE__ */ o(rr.Provider, {
|
|
1023
|
+
value: l,
|
|
1024
|
+
children: /* @__PURE__ */ o(I.List, {
|
|
1025
|
+
ref: d,
|
|
1026
|
+
style: {
|
|
1027
|
+
...n,
|
|
1028
|
+
...f
|
|
1029
|
+
},
|
|
1030
|
+
className: e(tr({ variant: l }), t),
|
|
1031
|
+
...s
|
|
1032
|
+
})
|
|
1018
1033
|
});
|
|
1019
1034
|
});
|
|
1020
|
-
|
|
1021
|
-
var
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
}))
|
|
1026
|
-
|
|
1027
|
-
|
|
1035
|
+
ir.displayName = I.List.displayName;
|
|
1036
|
+
var ar = a.forwardRef(({ className: t, variant: n, ...r }, i) => {
|
|
1037
|
+
let s = a.useContext(rr);
|
|
1038
|
+
return /* @__PURE__ */ o(I.Trigger, {
|
|
1039
|
+
ref: i,
|
|
1040
|
+
className: e(nr({ variant: n ?? s }), t),
|
|
1041
|
+
...r
|
|
1042
|
+
});
|
|
1043
|
+
});
|
|
1044
|
+
ar.displayName = I.Trigger.displayName;
|
|
1045
|
+
var or = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(I.Content, {
|
|
1028
1046
|
ref: r,
|
|
1029
1047
|
className: e("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2", t),
|
|
1030
1048
|
...n
|
|
1031
1049
|
}));
|
|
1032
|
-
|
|
1050
|
+
or.displayName = I.Content.displayName;
|
|
1033
1051
|
//#endregion
|
|
1034
1052
|
//#region src/components/ui/textarea.tsx
|
|
1035
|
-
var
|
|
1053
|
+
var sr = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o("textarea", {
|
|
1036
1054
|
className: e("flex min-h-[80px] w-full rounded-control border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
1037
1055
|
ref: r,
|
|
1038
1056
|
...n
|
|
1039
1057
|
}));
|
|
1040
|
-
|
|
1058
|
+
sr.displayName = "Textarea";
|
|
1041
1059
|
//#endregion
|
|
1042
1060
|
//#region src/components/ui/toast.tsx
|
|
1043
|
-
var
|
|
1061
|
+
var cr = L.Provider, q = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Viewport, {
|
|
1044
1062
|
ref: r,
|
|
1045
1063
|
className: e("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]", t),
|
|
1046
1064
|
...n
|
|
1047
1065
|
}));
|
|
1048
1066
|
q.displayName = L.Viewport.displayName;
|
|
1049
|
-
var
|
|
1067
|
+
var lr = b("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-surface border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full", {
|
|
1050
1068
|
variants: { variant: {
|
|
1051
1069
|
default: "border bg-background text-foreground",
|
|
1052
1070
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
|
|
@@ -1054,16 +1072,16 @@ var or = b("group pointer-events-auto relative flex w-full items-center justify-
|
|
|
1054
1072
|
defaultVariants: { variant: "default" }
|
|
1055
1073
|
}), J = a.forwardRef(({ className: t, variant: n, ...r }, i) => /* @__PURE__ */ o(L.Root, {
|
|
1056
1074
|
ref: i,
|
|
1057
|
-
className: e(
|
|
1075
|
+
className: e(lr({ variant: n }), t),
|
|
1058
1076
|
...r
|
|
1059
1077
|
}));
|
|
1060
1078
|
J.displayName = L.Root.displayName;
|
|
1061
|
-
var
|
|
1079
|
+
var ur = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Action, {
|
|
1062
1080
|
ref: r,
|
|
1063
1081
|
className: e("inline-flex h-8 shrink-0 items-center justify-center rounded-control border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50", t),
|
|
1064
1082
|
...n
|
|
1065
1083
|
}));
|
|
1066
|
-
|
|
1084
|
+
ur.displayName = L.Action.displayName;
|
|
1067
1085
|
var Y = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Close, {
|
|
1068
1086
|
ref: r,
|
|
1069
1087
|
className: e("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600", t),
|
|
@@ -1086,9 +1104,9 @@ var Z = a.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o(L.Descript
|
|
|
1086
1104
|
Z.displayName = L.Description.displayName;
|
|
1087
1105
|
//#endregion
|
|
1088
1106
|
//#region src/components/ui/toaster.tsx
|
|
1089
|
-
function
|
|
1107
|
+
function dr() {
|
|
1090
1108
|
let { toasts: e } = i();
|
|
1091
|
-
return /* @__PURE__ */ s(
|
|
1109
|
+
return /* @__PURE__ */ s(cr, { children: [e.map(function({ id: e, title: t, description: n, action: r, ...i }) {
|
|
1092
1110
|
return /* @__PURE__ */ s(J, {
|
|
1093
1111
|
...i,
|
|
1094
1112
|
children: [
|
|
@@ -1120,7 +1138,7 @@ var Q = b("inline-flex items-center justify-center rounded-control text-sm font-
|
|
|
1120
1138
|
variant: "default",
|
|
1121
1139
|
size: "default"
|
|
1122
1140
|
}
|
|
1123
|
-
}),
|
|
1141
|
+
}), fr = a.forwardRef(({ className: t, variant: n, size: r, ...i }, a) => /* @__PURE__ */ o(R.Root, {
|
|
1124
1142
|
ref: a,
|
|
1125
1143
|
className: e(Q({
|
|
1126
1144
|
variant: n,
|
|
@@ -1129,17 +1147,17 @@ var Q = b("inline-flex items-center justify-center rounded-control text-sm font-
|
|
|
1129
1147
|
})),
|
|
1130
1148
|
...i
|
|
1131
1149
|
}));
|
|
1132
|
-
|
|
1150
|
+
fr.displayName = R.Root.displayName;
|
|
1133
1151
|
//#endregion
|
|
1134
1152
|
//#region src/components/ui/toggle-group.tsx
|
|
1135
|
-
var
|
|
1153
|
+
var pr = a.createContext({
|
|
1136
1154
|
size: "default",
|
|
1137
1155
|
variant: "default"
|
|
1138
|
-
}),
|
|
1156
|
+
}), mr = a.forwardRef(({ className: t, variant: n, size: r, children: i, ...a }, s) => /* @__PURE__ */ o(z.Root, {
|
|
1139
1157
|
ref: s,
|
|
1140
1158
|
className: e("flex items-center justify-center gap-1", t),
|
|
1141
1159
|
...a,
|
|
1142
|
-
children: /* @__PURE__ */ o(
|
|
1160
|
+
children: /* @__PURE__ */ o(pr.Provider, {
|
|
1143
1161
|
value: {
|
|
1144
1162
|
variant: n,
|
|
1145
1163
|
size: r
|
|
@@ -1147,9 +1165,9 @@ var ur = a.createContext({
|
|
|
1147
1165
|
children: i
|
|
1148
1166
|
})
|
|
1149
1167
|
}));
|
|
1150
|
-
|
|
1168
|
+
mr.displayName = z.Root.displayName;
|
|
1151
1169
|
var $ = a.forwardRef(({ className: t, children: n, variant: r, size: i, ...s }, c) => {
|
|
1152
|
-
let l = a.useContext(
|
|
1170
|
+
let l = a.useContext(pr);
|
|
1153
1171
|
return /* @__PURE__ */ o(z.Item, {
|
|
1154
1172
|
ref: c,
|
|
1155
1173
|
className: e(Q({
|
|
@@ -1162,4 +1180,4 @@ var $ = a.forwardRef(({ className: t, children: n, variant: r, size: i, ...s },
|
|
|
1162
1180
|
});
|
|
1163
1181
|
$.displayName = z.Item.displayName;
|
|
1164
1182
|
//#endregion
|
|
1165
|
-
export { fn as $, xt as $t, K as A, Ue as An, H as At, Nn as B, Ce as Bn, Vt as Bt, Gn as C, Ze as Cn, Xt as Ct, Jn as D, Be as Dn, Yt as Dt, Kn as E, qe as En, Jt as Et, zn as F, Re as Fn, Lt as Ft, On as G, ke as Gn, kt as Gt, Fn as H, Ne as Hn, Mt as Ht, Ln as I, Fe as In, Bt as It, kn as J, we as Jn, Ct as Jt, An as K, Oe as Kn, yt as Kt, jn as L, Le as Ln, jt as Lt, Vn as M, We as Mn, Rt as Mt, Bn as N, Ge as Nn, It as Nt, Wn as O, Ke as On, Qt as Ot, Rn as P, ze as Pn, At as Pt, En as Q, xe as Qn, V as Qt, Mn as R, Ie as Rn, Nt as Rt, Un as S, Xe as Sn, Wt as St, Yn as T, Qe as Tn, Kt as Tt, Pn as U, De as Un, Ft as Ut, G as V, Me as Vn, Ht as Vt, Cn as W, je as Wn, Pt as Wt, Dn as X, Se as Xn, Tt as Xt, wn as Y, ye as Yn, Dt as Yt, W as Z, be as Zn, wt as Zt,
|
|
1183
|
+
export { fn as $, xt as $t, K as A, Ue as An, H as At, Nn as B, Ce as Bn, Vt as Bt, Gn as C, Ze as Cn, Xt as Ct, Jn as D, Be as Dn, Yt as Dt, Kn as E, qe as En, Jt as Et, zn as F, Re as Fn, Lt as Ft, On as G, ke as Gn, kt as Gt, Fn as H, Ne as Hn, Mt as Ht, Ln as I, Fe as In, Bt as It, kn as J, we as Jn, Ct as Jt, An as K, Oe as Kn, yt as Kt, jn as L, Le as Ln, jt as Lt, Vn as M, We as Mn, Rt as Mt, Bn as N, Ge as Nn, It as Nt, Wn as O, Ke as On, Qt as Ot, Rn as P, ze as Pn, At as Pt, En as Q, xe as Qn, V as Qt, Mn as R, Ie as Rn, Nt as Rt, Un as S, Xe as Sn, Wt as St, Yn as T, Qe as Tn, Kt as Tt, Pn as U, De as Un, Ft as Ut, G as V, Me as Vn, Ht as Vt, Cn as W, je as Wn, Pt as Wt, Dn as X, Se as Xn, Tt as Xt, wn as Y, ye as Yn, Dt as Yt, W as Z, be as Zn, wt as Zt, ar as _, tt as _n, on as _t, dr as a, ot as an, sn as at, ve as b, et as bn, tn as bt, Y as c, st as cn, yn as ct, X as d, _t as dn, un as dt, Et as en, vn as et, q as f, vt as fn, hn as ft, ir as g, at as gn, rn as gt, or as h, ut as hn, nn as ht, Q as i, ft as in, bn as it, Hn as j, Ve as jn, Ot as jt, qn as k, He as kn, U as kt, Z as l, lt as ln, xn as lt, er as m, dt as mn, pn as mt, $ as n, it as nn, cn as nt, J as o, pt as on, ln as ot, sr as p, ct as pn, mn as pt, Tn as q, Ae as qn, St as qt, fr as r, mt as rn, _n as rt, ur as s, gt as sn, dn as st, mr as t, bt as tn, gn as tt, cr as u, ht as un, Sn as ut, $n as v, rt as vn, an as vt, Xn as w, $e as wn, Zt as wt, Zn as x, Ye as xn, en as xt, Qn as y, nt as yn, $t as yt, In as z, Pe as zn, zt };
|