@krosoft/react 0.0.255 → 0.0.257
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-DyKuUO4k.js → AppActions-DzDTPkuk.js} +1 -1
- package/dist/{AppSubTitle-CSQOqzlF.js → AppSubTitle-BZB7gZym.js} +1 -1
- package/dist/{GenericForm-C0Hxh84y.js → GenericForm-DiajHMaA.js} +4 -4
- package/dist/{ImageInput-D8bv_faw.js → ImageInput-CvBZg-7Z.js} +1 -1
- package/dist/{MultiSelect-6vCPLMY8.js → MultiSelect-ifUYVVQi.js} +1 -1
- package/dist/{SearchInput-DlLexldF.js → SearchInput-C-rr33ZD.js} +1 -1
- package/dist/{cards-CV5w_mHL.js → cards-lJuCIGTq.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 +11 -11
- package/dist/components/core/inputs/index.js +3 -3
- package/dist/components/core/layouts/index.js +4 -4
- package/dist/components/core/navbar/index.js +1 -1
- 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 +11 -11
- package/dist/components/ui/index.js +1 -1
- package/dist/components/ui/tabs.d.ts +4 -4
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/{dialogs-CnBaE0-1.js → dialogs-DgvHyLi4.js} +2 -2
- package/dist/{navbar-DLxNVUU9.js → navbar-Dr3baLMm.js} +1 -1
- package/dist/{table-C56FL-qc.js → table-CEwQFlI0.js} +93 -93
- package/dist/{ui-CvuDSRPw.js → ui-CL65CsdR.js} +7 -3
- package/package.json +2 -2
|
@@ -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-CL65CsdR.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-DzDTPkuk.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-CL65CsdR.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-CvBZg-7Z.js";
|
|
10
|
+
import { t as S } from "./AppSubTitle-BZB7gZym.js";
|
|
11
|
+
import { t as C } from "./MultiSelect-ifUYVVQi.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-CL65CsdR.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-CL65CsdR.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-CL65CsdR.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-lJuCIGTq.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-CL65CsdR.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-DgvHyLi4.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-CL65CsdR.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-ifUYVVQi.js";
|
|
8
|
+
import { i as C, n as w, r as T, t as E } from "../../../SearchInput-C-rr33ZD.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-DiajHMaA.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-lJuCIGTq.js";
|
|
2
|
+
import { I as o } from "../../ui-CL65CsdR.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-DgvHyLi4.js";
|
|
6
|
+
import { t as O } from "../../ImageInput-CvBZg-7Z.js";
|
|
7
|
+
import { t as k } from "../../AppActions-DzDTPkuk.js";
|
|
8
|
+
import { t as A } from "../../AppSubTitle-BZB7gZym.js";
|
|
9
|
+
import { t as j } from "../../MultiSelect-ifUYVVQi.js";
|
|
10
|
+
import { t as M } from "../../GenericForm-DiajHMaA.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-C-rr33ZD.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";
|
|
@@ -17,8 +17,8 @@ import { t as U } from "../../language-Cn7U026J.js";
|
|
|
17
17
|
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
|
-
import { a as Y, i as X, n as Z, o as Q, r as $, t as ee } from "../../navbar-
|
|
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-
|
|
20
|
+
import { a as Y, i as X, n as Z, o as Q, r as $, t as ee } from "../../navbar-Dr3baLMm.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-CEwQFlI0.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-CvBZg-7Z.js";
|
|
2
|
+
import { t } from "../../../MultiSelect-ifUYVVQi.js";
|
|
3
|
+
import { i as n, n as r, r as i, t as a } from "../../../SearchInput-C-rr33ZD.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-lJuCIGTq.js";
|
|
2
|
+
import "../../../ui-CL65CsdR.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-DzDTPkuk.js";
|
|
5
|
+
import { t as i } from "../../../AppSubTitle-BZB7gZym.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,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../../navbar-Dr3baLMm.js";
|
|
2
2
|
export { r as GlobalSearch, e as NotificationsBell, i as Sidebar, n as SidebarHeader, t as SidebarNavItem, a as Topbar };
|
|
@@ -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;AAED,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-CEwQFlI0.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-CL65CsdR.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-DzDTPkuk.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-lJuCIGTq.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-CL65CsdR.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-DgvHyLi4.js";
|
|
11
|
+
import { t as jr } from "../ImageInput-CvBZg-7Z.js";
|
|
12
|
+
import { t as Mr } from "../AppActions-DzDTPkuk.js";
|
|
13
|
+
import { t as Nr } from "../AppSubTitle-BZB7gZym.js";
|
|
14
|
+
import { t as Pr } from "../MultiSelect-ifUYVVQi.js";
|
|
15
|
+
import { t as Fr } from "../GenericForm-DiajHMaA.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-C-rr33ZD.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
|
-
import { a as Qr, i as $r, n as ei, o as ti, r as ni, t as ri } from "../navbar-
|
|
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-
|
|
23
|
+
import { a as Qr, i as $r, n as ei, o as ti, r as ni, t as ri } from "../navbar-Dr3baLMm.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-CEwQFlI0.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-CL65CsdR.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";
|
|
@@ -3,16 +3,16 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
|
3
3
|
import { type VariantProps } from "class-variance-authority";
|
|
4
4
|
declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
5
|
declare const tabsListVariants: (props?: ({
|
|
6
|
-
variant?: "line" | "solid" | null | undefined;
|
|
6
|
+
variant?: "line" | "outline" | "ghost" | "solid" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
declare const tabsTriggerVariants: (props?: ({
|
|
9
|
-
variant?: "line" | "solid" | null | undefined;
|
|
9
|
+
variant?: "line" | "outline" | "ghost" | "solid" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
|
|
12
|
-
variant?: "line" | "solid" | null | undefined;
|
|
12
|
+
variant?: "line" | "outline" | "ghost" | "solid" | null | undefined;
|
|
13
13
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
14
14
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
15
|
-
variant?: "line" | "solid" | null | undefined;
|
|
15
|
+
variant?: "line" | "outline" | "ghost" | "solid" | null | undefined;
|
|
16
16
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
17
17
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
18
|
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants, tabsTriggerVariants };
|
|
@@ -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;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,IAAI,gGAAqB,CAAC;AAEhC,QAAA,MAAM,gBAAgB;;
|
|
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;;8EAgBpB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;8EAiBxB,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-CL65CsdR.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-DiajHMaA.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";
|
|
@@ -106,7 +106,7 @@ var P = ({ groups: t, search: n, onSearch: r, onSelect: a, loading: u = !1, open
|
|
|
106
106
|
type: "button",
|
|
107
107
|
variant: "ghost",
|
|
108
108
|
size: "icon",
|
|
109
|
-
className: e("relative rounded-
|
|
109
|
+
className: e("relative rounded-control", S),
|
|
110
110
|
"aria-label": z > 0 ? `${B} (${String(z)})` : B,
|
|
111
111
|
title: B,
|
|
112
112
|
children: [/* @__PURE__ */ E(O, { className: "size-4" }), z > 0 && /* @__PURE__ */ E("span", {
|
|
@@ -1,24 +1,24 @@
|
|
|
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-CL65CsdR.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";
|
|
5
5
|
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
|
-
import {
|
|
9
|
-
import { AlertTriangleIcon as
|
|
10
|
-
import { useNavigate as
|
|
8
|
+
import { formatJsonValue as D, isRecord as O, tryParseJson as k } from "@krosoft/core/helpers";
|
|
9
|
+
import { AlertTriangleIcon as A, ArrowDownIcon as j, ArrowUpDownIcon as M, ArrowUpIcon as N, ChevronLeftIcon as ee, ChevronRightIcon as P, GripVerticalIcon as F, Loader2Icon as I, MoreVerticalIcon as L, SettingsIcon as R } from "lucide-react";
|
|
10
|
+
import { useNavigate as z } from "react-router-dom";
|
|
11
11
|
//#region src/constants/datatable.ts
|
|
12
|
-
var
|
|
12
|
+
var te = [
|
|
13
13
|
5,
|
|
14
14
|
10,
|
|
15
15
|
30,
|
|
16
16
|
50,
|
|
17
17
|
100
|
|
18
|
-
],
|
|
18
|
+
], ne = te[1];
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/core/table/TableActions.tsx
|
|
21
|
-
function
|
|
21
|
+
function B({ 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 L({ 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(L, { className: "size-3.5" })
|
|
46
46
|
})
|
|
47
47
|
}), /* @__PURE__ */ T(o, {
|
|
48
48
|
align: "end",
|
|
@@ -68,26 +68,26 @@ function L({ actions: e, row: t }) {
|
|
|
68
68
|
}
|
|
69
69
|
//#endregion
|
|
70
70
|
//#region src/components/core/table/columnAlignment.ts
|
|
71
|
-
var
|
|
71
|
+
var V = {
|
|
72
72
|
left: "text-left",
|
|
73
73
|
center: "text-center",
|
|
74
74
|
right: "text-right"
|
|
75
75
|
};
|
|
76
|
-
function
|
|
76
|
+
function H(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 U(e) {
|
|
82
|
+
return V[e];
|
|
83
83
|
}
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/components/core/table/fixedColumns.ts
|
|
86
|
-
var
|
|
86
|
+
var W = "__selection__", G = "__actions__", K = {
|
|
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 q(e, t) {
|
|
91
91
|
if (e === void 0) return {
|
|
92
92
|
className: "relative",
|
|
93
93
|
style: {}
|
|
@@ -99,15 +99,15 @@ function W(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 ? K[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 J({ 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 = z(), 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];
|
|
@@ -123,7 +123,7 @@ function G({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
123
123
|
className: "py-8 text-center",
|
|
124
124
|
children: /* @__PURE__ */ E("div", {
|
|
125
125
|
className: "flex flex-col items-center justify-center gap-2 text-muted-foreground",
|
|
126
|
-
children: [/* @__PURE__ */ T(
|
|
126
|
+
children: [/* @__PURE__ */ T(I, { className: "h-6 w-6 animate-spin text-primary" }), /* @__PURE__ */ T("span", {
|
|
127
127
|
className: "text-sm",
|
|
128
128
|
children: S("states.loading")
|
|
129
129
|
})]
|
|
@@ -137,7 +137,7 @@ function G({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
137
137
|
className: "py-8 text-center",
|
|
138
138
|
children: /* @__PURE__ */ E("div", {
|
|
139
139
|
className: "flex flex-col items-center justify-center gap-2 text-destructive",
|
|
140
|
-
children: [/* @__PURE__ */ T(
|
|
140
|
+
children: [/* @__PURE__ */ T(A, { className: "h-6 w-6" }), /* @__PURE__ */ T("span", {
|
|
141
141
|
className: "text-sm",
|
|
142
142
|
children: t
|
|
143
143
|
})]
|
|
@@ -152,7 +152,7 @@ function G({ 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 = q(x[W], "body"), O = q(x[G], "body"), k = 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);
|
|
@@ -163,7 +163,7 @@ function G({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
163
163
|
children: i.map((e) => {
|
|
164
164
|
let t = a(e);
|
|
165
165
|
return /* @__PURE__ */ E("tr", {
|
|
166
|
-
className: `group hover:bg-muted/50 dark:hover:bg-gray-900/50 transition-colors ${
|
|
166
|
+
className: `group hover:bg-muted/50 dark:hover:bg-gray-900/50 transition-colors ${k ? "cursor-pointer" : ""}`,
|
|
167
167
|
onClick: (t) => {
|
|
168
168
|
j(e, t);
|
|
169
169
|
},
|
|
@@ -190,9 +190,9 @@ function G({ 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 = q(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"} ${U(H(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
|
|
@@ -204,17 +204,17 @@ function G({ isLoading: e, error: t, colSpanCount: n, noDataMessage: r, paginate
|
|
|
204
204
|
}, t.key);
|
|
205
205
|
}),
|
|
206
206
|
m ? /* @__PURE__ */ T("td", {
|
|
207
|
-
className: `
|
|
207
|
+
className: `py-1 pl-1 pr-4 text-right align-middle whitespace-nowrap ${O.className}`,
|
|
208
208
|
style: {
|
|
209
209
|
minWidth: "32px",
|
|
210
|
-
...
|
|
210
|
+
...O.style
|
|
211
211
|
},
|
|
212
212
|
onClick: (e) => {
|
|
213
213
|
e.stopPropagation();
|
|
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(B, {
|
|
218
218
|
actions: g,
|
|
219
219
|
row: e
|
|
220
220
|
})
|
|
@@ -227,7 +227,7 @@ function G({ 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 Y({ 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 K({ selectedRows: e, setSelectedRows: t, bulkActions: n }) {
|
|
|
268
268
|
}
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/components/core/table/TableHeader.tsx
|
|
271
|
-
var
|
|
271
|
+
var X = {
|
|
272
272
|
left: "justify-start",
|
|
273
273
|
center: "justify-center",
|
|
274
274
|
right: "justify-end"
|
|
275
275
|
};
|
|
276
|
-
function
|
|
276
|
+
function re({ 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
|
-
let w = (e) => e.sortable === !0 ? c === e.key ? T(l === "asc" ?
|
|
280
|
-
let a = r !== !1 && t.fixed === void 0, c = t.sortable === !0, l =
|
|
279
|
+
let w = (e) => e.sortable === !0 ? c === e.key ? T(l === "asc" ? N : j, { className: "size-3.5 text-foreground" }) : /* @__PURE__ */ T(M, { 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 = q(b[t.key], "header"), u = H(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
|
+
U(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,9 +307,9 @@ function J({ 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 ${X[u]} ${o ? "pr-2" : ""}`,
|
|
311
311
|
children: [
|
|
312
|
-
a ? /* @__PURE__ */ T(
|
|
312
|
+
a ? /* @__PURE__ */ T(F, { className: "size-4 text-gray-400 cursor-grab dark:text-gray-300 shrink-0" }) : null,
|
|
313
313
|
/* @__PURE__ */ T("span", {
|
|
314
314
|
className: "truncate",
|
|
315
315
|
children: t.label
|
|
@@ -326,12 +326,12 @@ function J({ hasBulkActions: e, selectedRows: t, totalItems: n, toggleSelectAll:
|
|
|
326
326
|
}
|
|
327
327
|
}) : null]
|
|
328
328
|
}, t.key);
|
|
329
|
-
}, O =
|
|
329
|
+
}, O = q(b[W], "header"), k = q(b[G], "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": W,
|
|
335
335
|
"data-fixed-side": x ? "left" : void 0,
|
|
336
336
|
className: `p-1 text-center align-middle ${O.className}`,
|
|
337
337
|
style: {
|
|
@@ -350,12 +350,12 @@ function J({ 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": G,
|
|
354
354
|
"data-fixed-side": S ? "right" : void 0,
|
|
355
|
-
className: `
|
|
355
|
+
className: `py-1 pl-1 pr-4 text-right align-middle ${k.className}`,
|
|
356
356
|
style: {
|
|
357
357
|
minWidth: "32px",
|
|
358
|
-
...
|
|
358
|
+
...k.style
|
|
359
359
|
},
|
|
360
360
|
children: _
|
|
361
361
|
}) : null
|
|
@@ -364,30 +364,30 @@ function J({ 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 Z = "…";
|
|
368
|
+
function Q(e, t) {
|
|
369
369
|
return Array.from({ length: t - e + 1 }, (t, n) => e + n);
|
|
370
370
|
}
|
|
371
371
|
function ie(e, t, n = 1) {
|
|
372
|
-
if (n * 2 + 5 >= t) return
|
|
372
|
+
if (n * 2 + 5 >= t) return Q(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
|
+
...Q(1, n + 2),
|
|
376
|
+
Z,
|
|
377
377
|
t
|
|
378
378
|
] : a && !o ? [
|
|
379
379
|
1,
|
|
380
|
-
|
|
381
|
-
...
|
|
380
|
+
Z,
|
|
381
|
+
...Q(t - (n + 2) + 1, t)
|
|
382
382
|
] : [
|
|
383
383
|
1,
|
|
384
|
-
|
|
385
|
-
...
|
|
386
|
-
|
|
384
|
+
Z,
|
|
385
|
+
...Q(r, i),
|
|
386
|
+
Z,
|
|
387
387
|
t
|
|
388
388
|
];
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function ae({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSize: i, currentPage: a, setCurrentPage: o, pageSizeOptions: s, totalPages: c }) {
|
|
391
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",
|
|
@@ -412,11 +412,11 @@ function Z({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSize
|
|
|
412
412
|
},
|
|
413
413
|
disabled: a === 1,
|
|
414
414
|
"aria-label": l("table.previousPage"),
|
|
415
|
-
children: /* @__PURE__ */ T(
|
|
415
|
+
children: /* @__PURE__ */ T(ee, { className: "size-4" })
|
|
416
416
|
}),
|
|
417
|
-
u.map((e, t) => e ===
|
|
417
|
+
u.map((e, t) => e === Z ? /* @__PURE__ */ T("span", {
|
|
418
418
|
className: "flex h-8 w-8 items-center justify-center text-sm text-muted-foreground",
|
|
419
|
-
children:
|
|
419
|
+
children: Z
|
|
420
420
|
}, `dots-${String(t)}`) : /* @__PURE__ */ T(m, {
|
|
421
421
|
variant: e === a ? "default" : "ghost",
|
|
422
422
|
size: "icon",
|
|
@@ -436,7 +436,7 @@ function Z({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSize
|
|
|
436
436
|
},
|
|
437
437
|
disabled: a === c,
|
|
438
438
|
"aria-label": l("table.nextPage"),
|
|
439
|
-
children: /* @__PURE__ */ T(
|
|
439
|
+
children: /* @__PURE__ */ T(P, { className: "size-4" })
|
|
440
440
|
})
|
|
441
441
|
] })
|
|
442
442
|
}),
|
|
@@ -461,14 +461,14 @@ function Z({ totalItems: e, startIndex: t, endIndex: n, pageSize: r, setPageSize
|
|
|
461
461
|
}
|
|
462
462
|
//#endregion
|
|
463
463
|
//#region src/components/core/table/TableSettings.tsx
|
|
464
|
-
function
|
|
464
|
+
function oe({ 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(R, { 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 ae({ 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:
|
|
487
|
+
function $({ 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 = ne, pageSizeOptions: _ = te, 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: ee, columnWidths: P, safeCurrentPage: F, totalPages: I, startIndex: L, endIndex: R, tableRef: z, hasActions: B, hasBulkActions: V, visibleColumnsArray: H, colSpanCount: U, paginatedData: W, handleSort: G, handleMouseDown: K, handleDragStart: q, handleDragOver: X, handleDrop: Z, toggleColumnVisibility: Q, toggleRowSelection: ie, 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 oe({ 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 = V && H.some((e) => e.fixed === "left"), de = S(z);
|
|
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(Y, {
|
|
508
508
|
selectedRows: M,
|
|
509
509
|
setSelectedRows: N,
|
|
510
510
|
bulkActions: o
|
|
@@ -513,76 +513,76 @@ function oe({ 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: z,
|
|
517
517
|
className: "w-full",
|
|
518
|
-
children: [/* @__PURE__ */ T(
|
|
519
|
-
hasBulkActions:
|
|
518
|
+
children: [/* @__PURE__ */ T(re, {
|
|
519
|
+
hasBulkActions: V,
|
|
520
520
|
selectedRows: M,
|
|
521
521
|
totalItems: e.length,
|
|
522
522
|
toggleSelectAll: $,
|
|
523
|
-
visibleColumnsArray:
|
|
523
|
+
visibleColumnsArray: H,
|
|
524
524
|
draggableColumns: s,
|
|
525
525
|
resizableColumns: c,
|
|
526
|
-
columnWidths:
|
|
526
|
+
columnWidths: P,
|
|
527
527
|
sortColumn: A,
|
|
528
528
|
sortDirection: j,
|
|
529
|
-
handleSort:
|
|
530
|
-
handleDragStart:
|
|
529
|
+
handleSort: G,
|
|
530
|
+
handleDragStart: q,
|
|
531
531
|
handleDragOver: X,
|
|
532
|
-
handleDrop:
|
|
533
|
-
handleMouseDown:
|
|
534
|
-
hasActions:
|
|
532
|
+
handleDrop: Z,
|
|
533
|
+
handleMouseDown: K,
|
|
534
|
+
hasActions: B,
|
|
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(oe, {
|
|
541
541
|
columns: t,
|
|
542
|
-
visibleColumns:
|
|
543
|
-
toggleColumnVisibility:
|
|
542
|
+
visibleColumns: ee,
|
|
543
|
+
toggleColumnVisibility: Q
|
|
544
544
|
}) : void 0
|
|
545
|
-
}), /* @__PURE__ */ T(
|
|
545
|
+
}), /* @__PURE__ */ T(J, {
|
|
546
546
|
bordered: f,
|
|
547
547
|
dense: p,
|
|
548
548
|
isLoading: u,
|
|
549
549
|
error: d,
|
|
550
|
-
colSpanCount:
|
|
550
|
+
colSpanCount: U,
|
|
551
551
|
noDataMessage: h,
|
|
552
|
-
paginatedData:
|
|
552
|
+
paginatedData: W,
|
|
553
553
|
getRowId: n,
|
|
554
554
|
onRowClick: r,
|
|
555
555
|
onRowNavigate: i,
|
|
556
|
-
hasBulkActions:
|
|
556
|
+
hasBulkActions: V,
|
|
557
557
|
selectedRows: M,
|
|
558
|
-
toggleRowSelection:
|
|
559
|
-
visibleColumnsArray:
|
|
560
|
-
columnWidths:
|
|
561
|
-
hasActions:
|
|
558
|
+
toggleRowSelection: ie,
|
|
559
|
+
visibleColumnsArray: H,
|
|
560
|
+
columnWidths: P,
|
|
561
|
+
hasActions: B || 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(ae, {
|
|
569
569
|
totalItems: v ?? e.length,
|
|
570
|
-
startIndex:
|
|
571
|
-
endIndex:
|
|
570
|
+
startIndex: L,
|
|
571
|
+
endIndex: R,
|
|
572
572
|
pageSize: se,
|
|
573
573
|
setPageSize: ce,
|
|
574
|
-
currentPage:
|
|
574
|
+
currentPage: F,
|
|
575
575
|
setCurrentPage: le,
|
|
576
576
|
pageSizeOptions: _,
|
|
577
|
-
totalPages:
|
|
577
|
+
totalPages: I
|
|
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 =
|
|
584
|
+
var se = ({ header: r, output: i }) => {
|
|
585
|
+
let [a, o] = C(!0), u = k(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",
|
|
@@ -610,17 +610,17 @@ var Q = (e) => typeof e == "object" && !!e, $ = (e) => e == null ? "" : typeof e
|
|
|
610
610
|
className: "min-w-0 w-full",
|
|
611
611
|
children: [m(), (() => {
|
|
612
612
|
if (!d || !a) return /* @__PURE__ */ T(g, {});
|
|
613
|
-
if (Array.isArray(u) && u.length > 0 &&
|
|
613
|
+
if (Array.isArray(u) && u.length > 0 && O(u[0])) {
|
|
614
614
|
let e = u, r = Object.keys(e[0]);
|
|
615
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
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:
|
|
620
|
+
children: D(e[t])
|
|
621
621
|
}, t)) }, t)) })] });
|
|
622
622
|
}
|
|
623
|
-
if (
|
|
623
|
+
if (O(u)) {
|
|
624
624
|
let e = Object.entries(u);
|
|
625
625
|
return /* @__PURE__ */ E(h, { children: [/* @__PURE__ */ T(s, { children: /* @__PURE__ */ E(f, { children: [/* @__PURE__ */ T(n, {
|
|
626
626
|
className: "font-medium",
|
|
@@ -633,7 +633,7 @@ var Q = (e) => typeof e == "object" && !!e, $ = (e) => e == null ? "" : typeof e
|
|
|
633
633
|
children: e
|
|
634
634
|
}), /* @__PURE__ */ T(l, {
|
|
635
635
|
className: "text-sm whitespace-pre-wrap",
|
|
636
|
-
children:
|
|
636
|
+
children: D(t)
|
|
637
637
|
})] }, e)) })] });
|
|
638
638
|
}
|
|
639
639
|
return /* @__PURE__ */ T(g, {});
|
|
@@ -641,4 +641,4 @@ var Q = (e) => typeof e == "object" && !!e, $ = (e) => e == null ? "" : typeof e
|
|
|
641
641
|
}) : null;
|
|
642
642
|
};
|
|
643
643
|
//#endregion
|
|
644
|
-
export {
|
|
644
|
+
export { re as a, G as c, U as d, H as f, ae as i, W as l, $ as n, Y as o, B as p, oe as r, J as s, se as t, q as u };
|
|
@@ -1006,13 +1006,17 @@ $n.displayName = F.Root.displayName;
|
|
|
1006
1006
|
var er = I.Root, tr = b("text-muted-foreground [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", {
|
|
1007
1007
|
variants: { variant: {
|
|
1008
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-
|
|
1009
|
+
solid: "inline-flex h-10 w-fit items-center justify-center gap-1 rounded-control bg-muted p-1",
|
|
1010
|
+
outline: "inline-flex h-10 w-fit items-center justify-center gap-1 bg-transparent p-0",
|
|
1011
|
+
ghost: "inline-flex h-10 w-fit items-center justify-center gap-1 bg-transparent p-0"
|
|
1010
1012
|
} },
|
|
1011
1013
|
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", {
|
|
1014
|
+
}), 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 data-[state=inactive]: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
1015
|
variants: { variant: {
|
|
1014
1016
|
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-
|
|
1017
|
+
solid: "rounded-control px-3 py-1.5 data-[state=active]:bg-background data-[state=active]:shadow-sm",
|
|
1018
|
+
outline: "rounded-control border border-transparent px-3 py-1.5 data-[state=inactive]:hover:bg-muted data-[state=active]:border-primary data-[state=active]:text-primary data-[state=active]:font-medium data-[state=active]:shadow-none",
|
|
1019
|
+
ghost: "rounded-control px-3 py-1.5 data-[state=inactive]:hover:bg-accent data-[state=active]:text-primary data-[state=active]:font-medium data-[state=active]:shadow-none"
|
|
1016
1020
|
} },
|
|
1017
1021
|
defaultVariants: { variant: "line" }
|
|
1018
1022
|
}), rr = a.createContext("line"), ir = a.forwardRef(({ className: t, style: n, variant: i, ...s }, c) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krosoft/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.257",
|
|
4
4
|
"description": "Krosoft shared React package",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"zod": "^4.4.3"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@krosoft/core": "^0.0.
|
|
98
|
+
"@krosoft/core": "^0.0.62",
|
|
99
99
|
"@krosoft/tooling-eslint": "^0.0.27",
|
|
100
100
|
"@krosoft/tooling-eslint-react": "^0.0.29",
|
|
101
101
|
"@krosoft/tooling-prettier": "^0.0.18",
|