@cryptlex/web-components 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -13
- package/dist/components/data-table/column-picker.es.js +3 -4
- package/dist/components/data-table/column-picker.es.js.map +1 -1
- package/dist/components/data-table/data-table.es.js +84 -83
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/page-size.es.js +5 -5
- package/dist/components/data-table/page-size.es.js.map +1 -1
- package/dist/components/data-table/paginator.es.js +25 -31
- package/dist/components/data-table/paginator.es.js.map +1 -1
- package/dist/components/data-table/table-actions.es.js +26 -27
- package/dist/components/data-table/table-actions.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +5 -4
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/data-table/table-content.es.js +34 -31
- package/dist/components/data-table/table-content.es.js.map +1 -1
- package/dist/components/data-table/table-filter.es.js +42 -45
- package/dist/components/data-table/table-filter.es.js.map +1 -1
- package/dist/components/key-value-card/key-value-card.es.js +17 -14
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
- package/dist/components/sidebar/app-layout.es.js +11 -15
- package/dist/components/sidebar/app-layout.es.js.map +1 -1
- package/dist/components/sidebar/breadcrumb.es.js +2 -3
- package/dist/components/sidebar/breadcrumb.es.js.map +1 -1
- package/dist/components/sidebar/nav-main.es.js +18 -18
- package/dist/components/sidebar/nav-main.es.js.map +1 -1
- package/dist/components/static-data-table/data-table.es.js +14 -14
- package/dist/components/static-data-table/data-table.es.js.map +1 -1
- package/dist/components/ui/accordion.es.js +9 -9
- package/dist/components/ui/accordion.es.js.map +1 -1
- package/dist/components/ui/avatar.es.js +16 -16
- package/dist/components/ui/avatar.es.js.map +1 -1
- package/dist/components/ui/badge.es.js +5 -24
- package/dist/components/ui/badge.es.js.map +1 -1
- package/dist/components/ui/breadcrumb.es.js +10 -10
- package/dist/components/ui/breadcrumb.es.js.map +1 -1
- package/dist/components/ui/button.es.js +17 -18
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/calendar.es.js +8 -8
- package/dist/components/ui/calendar.es.js.map +1 -1
- package/dist/components/ui/card.es.js +21 -21
- package/dist/components/ui/card.es.js.map +1 -1
- package/dist/components/ui/chart.es.js +76 -102
- package/dist/components/ui/chart.es.js.map +1 -1
- package/dist/components/ui/checkbox.es.js +13 -19
- package/dist/components/ui/checkbox.es.js.map +1 -1
- package/dist/components/ui/command.es.js +4 -4
- package/dist/components/ui/command.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +20 -34
- package/dist/components/ui/copy-button.es.js.map +1 -1
- package/dist/components/ui/dialog.es.js +32 -32
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +2 -2
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +74 -82
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/input-otp.es.js +17 -17
- package/dist/components/ui/input-otp.es.js.map +1 -1
- package/dist/components/ui/input.es.js +7 -7
- package/dist/components/ui/input.es.js.map +1 -1
- package/dist/components/ui/link-button.es.js +6 -6
- package/dist/components/ui/link-button.es.js.map +1 -1
- package/dist/components/ui/mutli-select.es.js +52 -52
- package/dist/components/ui/mutli-select.es.js.map +1 -1
- package/dist/components/ui/navigation-menu.es.js +34 -34
- package/dist/components/ui/navigation-menu.es.js.map +1 -1
- package/dist/components/ui/pagination.es.js +38 -38
- package/dist/components/ui/pagination.es.js.map +1 -1
- package/dist/components/ui/password-input.es.js +13 -13
- package/dist/components/ui/password-input.es.js.map +1 -1
- package/dist/components/ui/radio-group.es.js +11 -11
- package/dist/components/ui/radio-group.es.js.map +1 -1
- package/dist/components/ui/search-input.es.js +11 -11
- package/dist/components/ui/search-input.es.js.map +1 -1
- package/dist/components/ui/select.es.js +31 -49
- package/dist/components/ui/select.es.js.map +1 -1
- package/dist/components/ui/sheet.es.js +17 -17
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +2 -3
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/table-page-layout.es.js +2 -2
- package/dist/components/ui/table-page-layout.es.js.map +1 -1
- package/dist/components/ui/table.es.js +37 -37
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +2 -2
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +8 -8
- package/dist/components/ui/tooltip.es.js.map +1 -1
- package/dist/index.es.d.ts +29 -54
- package/dist/index.es.js +253 -256
- package/dist/utils/index.es.js.map +1 -1
- package/lib/index.css +24 -5
- package/lib/tailwind.preset.css +52 -40
- package/lib/tokens.css +0 -9
- package/package.json +1 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { jsxs as p, jsx as
|
|
2
|
-
import { useRouterState as
|
|
3
|
-
import { RotateCw as f, Plus as
|
|
1
|
+
import { jsxs as p, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useRouterState as g, Link as d } from "@tanstack/react-router";
|
|
3
|
+
import { RotateCw as f, Plus as a, Pencil as u, Trash as w } from "lucide-react";
|
|
4
4
|
import { Button as t } from "../ui/button.es.js";
|
|
5
5
|
import "../ui/accordion.es.js";
|
|
6
6
|
import "../ui/avatar.es.js";
|
|
7
|
-
import "../ui/badge.es.js";
|
|
8
7
|
import "../ui/breadcrumb.es.js";
|
|
9
8
|
import "../ui/calendar.es.js";
|
|
10
9
|
import "../ui/card.es.js";
|
|
@@ -12,7 +11,7 @@ import "../ui/chart.es.js";
|
|
|
12
11
|
import "../ui/checkbox.es.js";
|
|
13
12
|
import "@radix-ui/react-collapsible";
|
|
14
13
|
import "../ui/command.es.js";
|
|
15
|
-
import { useState as
|
|
14
|
+
import { useState as v } from "react";
|
|
16
15
|
import "../ui/dialog.es.js";
|
|
17
16
|
import "../ui/drawer.es.js";
|
|
18
17
|
import "../ui/dropdown-menu.es.js";
|
|
@@ -35,44 +34,44 @@ import "sonner";
|
|
|
35
34
|
import "../ui/table.es.js";
|
|
36
35
|
import "../ui/tabs.es.js";
|
|
37
36
|
import "../ui/tooltip.es.js";
|
|
38
|
-
function
|
|
39
|
-
table:
|
|
40
|
-
tableActions:
|
|
41
|
-
stateToPass:
|
|
42
|
-
handleSearching:
|
|
43
|
-
dataQuery:
|
|
37
|
+
function or({
|
|
38
|
+
table: i,
|
|
39
|
+
tableActions: r,
|
|
40
|
+
stateToPass: n,
|
|
41
|
+
handleSearching: h,
|
|
42
|
+
dataQuery: o
|
|
44
43
|
}) {
|
|
45
|
-
const { location: { href: m } = {} } =
|
|
46
|
-
return /* @__PURE__ */ p("div", { className: "flex justify-between my-0
|
|
47
|
-
/* @__PURE__ */ p("div", { className: "flex gap-
|
|
48
|
-
/* @__PURE__ */
|
|
44
|
+
const { location: { href: m } = {} } = g(), [l, s] = v("");
|
|
45
|
+
return /* @__PURE__ */ p("div", { className: "flex bg-card justify-between my-0 p-4 border-t border-x gap-4 overflow-auto", children: [
|
|
46
|
+
/* @__PURE__ */ p("div", { className: "flex gap-4", children: [
|
|
47
|
+
/* @__PURE__ */ e(
|
|
49
48
|
t,
|
|
50
49
|
{
|
|
51
|
-
loading:
|
|
50
|
+
loading: o.isFetching,
|
|
52
51
|
icon: f,
|
|
53
|
-
onClick: () =>
|
|
52
|
+
onClick: () => o.refetch(),
|
|
54
53
|
variant: "outline"
|
|
55
54
|
}
|
|
56
55
|
),
|
|
57
|
-
|
|
58
|
-
/* @__PURE__ */
|
|
56
|
+
r.create && i.getSelectedRowModel().rows.length === 0 && /* @__PURE__ */ p(d, { to: `${m}/create`, children: [
|
|
57
|
+
/* @__PURE__ */ e(t, { disabled: o.isFetching, icon: a, children: "Create" }),
|
|
59
58
|
" "
|
|
60
59
|
] }),
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
i.getSelectedRowModel().rows.length > 0 && r.update && /* @__PURE__ */ e(d, { to: `${m}/edit`, state: n, children: /* @__PURE__ */ e(t, { disabled: o.isFetching, icon: u, children: "Update" }) }),
|
|
61
|
+
i.getSelectedRowModel().rows.length > 0 && (r == null ? void 0 : r.delete) && /* @__PURE__ */ e(d, { to: `${m}/delete`, state: n, children: /* @__PURE__ */ e(t, { disabled: o.isFetching, icon: w, variant: "destructive", children: "Delete" }) })
|
|
63
62
|
] }),
|
|
64
|
-
(
|
|
63
|
+
(r == null ? void 0 : r.search) && /* @__PURE__ */ e(
|
|
65
64
|
S,
|
|
66
65
|
{
|
|
67
|
-
value:
|
|
68
|
-
onChange: (
|
|
69
|
-
s(
|
|
66
|
+
value: l,
|
|
67
|
+
onChange: (c) => {
|
|
68
|
+
s(c), h(c);
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
|
-
)
|
|
71
|
+
)
|
|
73
72
|
] });
|
|
74
73
|
}
|
|
75
74
|
export {
|
|
76
|
-
|
|
75
|
+
or as default
|
|
77
76
|
};
|
|
78
77
|
//# sourceMappingURL=table-actions.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-actions.es.js","sources":["../../../lib/components/data-table/table-actions.tsx"],"sourcesContent":["import { Link, useRouterState } from '@tanstack/react-router';\n\nimport { Pencil, Plus, RotateCw, Trash } from 'lucide-react';\n\nimport type { TableActions } from '@/components/data-table/table-utils/index';\nimport { Button } from '@/components/ui/button';\nimport { SearchInput } from '@/index';\nimport type { UseQueryResult } from '@tanstack/react-query';\nimport { Table } from '@tanstack/react-table';\nimport { useState } from 'react';\n\nexport default function Actions<TData>({\n table,\n tableActions,\n stateToPass,\n handleSearching,\n dataQuery,\n}: {\n table: Table<TData>;\n tableActions: TableActions;\n handleSearching: (value: string) => void;\n // TODO:Improve ts\n stateToPass: any;\n dataQuery: UseQueryResult<any, unknown>;\n}) {\n const { location: { href } = {} } = useRouterState();\n const [search, setSearch] = useState<string>('');\n return (\n <div className=\"flex justify-between my-0
|
|
1
|
+
{"version":3,"file":"table-actions.es.js","sources":["../../../lib/components/data-table/table-actions.tsx"],"sourcesContent":["import { Link, useRouterState } from '@tanstack/react-router';\n\nimport { Pencil, Plus, RotateCw, Trash } from 'lucide-react';\n\nimport type { TableActions } from '@/components/data-table/table-utils/index';\nimport { Button } from '@/components/ui/button';\nimport { SearchInput } from '@/index';\nimport type { UseQueryResult } from '@tanstack/react-query';\nimport { Table } from '@tanstack/react-table';\nimport { useState } from 'react';\n\nexport default function Actions<TData>({\n table,\n tableActions,\n stateToPass,\n handleSearching,\n dataQuery,\n}: {\n table: Table<TData>;\n tableActions: TableActions;\n handleSearching: (value: string) => void;\n // TODO:Improve ts\n stateToPass: any;\n dataQuery: UseQueryResult<any, unknown>;\n}) {\n const { location: { href } = {} } = useRouterState();\n const [search, setSearch] = useState<string>('');\n return (\n <div className=\"flex bg-card justify-between my-0 p-4 border-t border-x gap-4 overflow-auto\">\n <div className=\"flex gap-4\">\n <Button\n loading={dataQuery.isFetching}\n icon={RotateCw}\n onClick={() => dataQuery.refetch()}\n variant={'outline'}\n />\n {/* //TODO: we can show the create, delete button based on permsission */}\n {/* All the creating routes will be with url /create in host app */}\n {tableActions.create && table.getSelectedRowModel().rows.length === 0 && (\n <Link to={`${href}/create`}>\n <Button disabled={dataQuery.isFetching} icon={Plus}>\n Create\n </Button>{' '}\n </Link>\n )}\n {/* All the updating routes will be with url /edit in host app */}\n {table.getSelectedRowModel().rows.length > 0 && tableActions.update && (\n <Link to={`${href}/edit`} state={stateToPass}>\n <Button disabled={dataQuery.isFetching} icon={Pencil}>\n Update\n </Button>\n </Link>\n )}\n {table.getSelectedRowModel().rows.length > 0 && tableActions?.delete && (\n <Link to={`${href}/delete`} state={stateToPass}>\n <Button disabled={dataQuery.isFetching} icon={Trash} variant={'destructive'}>\n Delete\n </Button>\n </Link>\n )}\n </div>\n {tableActions?.search && (\n <SearchInput\n value={search}\n onChange={(e) => {\n setSearch(e);\n handleSearching(e);\n }}\n />\n )}\n </div>\n );\n}\n"],"names":["Actions","table","tableActions","stateToPass","handleSearching","dataQuery","href","useRouterState","search","setSearch","useState","jsxs","jsx","Button","RotateCw","Link","Plus","Pencil","Trash","SearchInput","e"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,SAAwBA,GAAe;AAAA,EACrC,OAAAC;AAAA,EACA,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,WAAAC;AACF,GAOG;AACK,QAAA,EAAE,UAAU,EAAE,MAAAC,MAAS,CAAC,EAAA,IAAMC,EAAe,GAC7C,CAACC,GAAQC,CAAS,IAAIC,EAAiB,EAAE;AAE7C,SAAA,gBAAAC,EAAC,OAAI,EAAA,WAAU,+EACb,UAAA;AAAA,IAAC,gBAAAA,EAAA,OAAA,EAAI,WAAU,cACb,UAAA;AAAA,MAAA,gBAAAC;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,SAASR,EAAU;AAAA,UACnB,MAAMS;AAAA,UACN,SAAS,MAAMT,EAAU,QAAQ;AAAA,UACjC,SAAS;AAAA,QAAA;AAAA,MACX;AAAA,MAGCH,EAAa,UAAUD,EAAM,oBAAA,EAAsB,KAAK,WAAW,KACjE,gBAAAU,EAAAI,GAAA,EAAK,IAAI,GAAGT,CAAI,WACf,UAAA;AAAA,QAAA,gBAAAM,EAACC,KAAO,UAAUR,EAAU,YAAY,MAAMW,GAAM,UAEpD,UAAA;AAAA,QAAU;AAAA,MAAA,GACZ;AAAA,MAGDf,EAAM,oBAAoB,EAAE,KAAK,SAAS,KAAKC,EAAa,UAC1D,gBAAAU,EAAAG,GAAA,EAAK,IAAI,GAAGT,CAAI,SAAS,OAAOH,GAC/B,UAAA,gBAAAS,EAACC,GAAO,EAAA,UAAUR,EAAU,YAAY,MAAMY,GAAQ,UAAA,SAAA,CAEtD,EACF,CAAA;AAAA,MAEDhB,EAAM,oBAAoB,EAAE,KAAK,SAAS,MAAKC,KAAA,gBAAAA,EAAc,WAC5D,gBAAAU,EAACG,GAAK,EAAA,IAAI,GAAGT,CAAI,WAAW,OAAOH,GACjC,UAAC,gBAAAS,EAAAC,GAAA,EAAO,UAAUR,EAAU,YAAY,MAAMa,GAAO,SAAS,eAAe,UAAA,SAE7E,CAAA,EACF,CAAA;AAAA,IAAA,GAEJ;AAAA,KACChB,KAAA,gBAAAA,EAAc,WACb,gBAAAU;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,OAAOX;AAAA,QACP,UAAU,CAACY,MAAM;AACf,UAAAX,EAAUW,CAAC,GACXhB,EAAgBgB,CAAC;AAAA,QAAA;AAAA,MACnB;AAAA,IAAA;AAAA,EACF,GAEJ;AAEJ;"}
|
|
@@ -41,12 +41,13 @@ const a = r(), i = [
|
|
|
41
41
|
cell: ({ row: e }) => {
|
|
42
42
|
const t = e.getValue("createdAt");
|
|
43
43
|
return o(t);
|
|
44
|
-
}
|
|
44
|
+
},
|
|
45
|
+
enableHiding: !1
|
|
45
46
|
})
|
|
46
47
|
];
|
|
47
48
|
export {
|
|
48
|
-
i as
|
|
49
|
-
m as
|
|
50
|
-
h as
|
|
49
|
+
i as TABLE_CHECK_BOX_COLUMN,
|
|
50
|
+
m as TABLE_DEFAULT_DATE_COLUMNS,
|
|
51
|
+
h as TABLE_ID_COLUMN
|
|
51
52
|
};
|
|
52
53
|
//# sourceMappingURL=table-commons.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-commons.es.js","sources":["../../../lib/components/data-table/table-commons.tsx"],"sourcesContent":["import { FormatDate } from '@/components/data-table/table-utils/index';\nimport { Checkbox } from '@/components/ui/checkbox';\nimport { createColumnHelper } from '@tanstack/react-table';\n\nconst cH = createColumnHelper<any>();\nexport const
|
|
1
|
+
{"version":3,"file":"table-commons.es.js","sources":["../../../lib/components/data-table/table-commons.tsx"],"sourcesContent":["import { FormatDate } from '@/components/data-table/table-utils/index';\nimport { Checkbox } from '@/components/ui/checkbox';\nimport { createColumnHelper } from '@tanstack/react-table';\n\nconst cH = createColumnHelper<any>();\nexport const TABLE_CHECK_BOX_COLUMN = [\n cH.accessor('checkbox', {\n header: ({ table }) => (\n <Checkbox\n checked={\n table.getIsAllPageRowsSelected() || (table.getIsSomePageRowsSelected() && 'indeterminate')\n }\n onCheckedChange={(value) => table.toggleAllPageRowsSelected(!!value)}\n aria-label=\"Select all\"\n />\n ),\n\n cell: ({ row }) => (\n <Checkbox\n checked={row.getIsSelected()}\n onCheckedChange={(value) => row.toggleSelected(!!value)}\n aria-label=\"Select row\"\n />\n ),\n enableSorting: false,\n enableHiding: false,\n })];\n\nexport const TABLE_ID_COLUMN = [\n cH.accessor('id', {\n header: () => 'ID',\n }),\n];\nexport const TABLE_DEFAULT_DATE_COLUMNS = [\n cH.accessor('createdAt', {\n header: () => 'Creation Date',\n cell: ({ row }) => {\n const date = row.getValue('createdAt') satisfies string | null | undefined;\n return FormatDate(date);\n },\n enableHiding: false,\n }),\n cH.accessor('updatedAt', {\n header: () => 'Last Updated',\n cell: ({ row }) => {\n const date = row.getValue('createdAt') satisfies string | null | undefined;\n return FormatDate(date);\n },\n enableHiding: false,\n }),\n];\n"],"names":["cH","createColumnHelper","TABLE_CHECK_BOX_COLUMN","table","jsx","Checkbox","value","row","TABLE_ID_COLUMN","TABLE_DEFAULT_DATE_COLUMNS","date","FormatDate"],"mappings":";;;;AAIA,MAAMA,IAAKC,EAAwB,GACtBC,IAAyB;AAAA,EACpCF,EAAG,SAAS,YAAY;AAAA,IACtB,QAAQ,CAAC,EAAE,OAAAG,EAAA,MACT,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SACEF,EAAM,yBAAA,KAA+BA,EAAM,0BAA+B,KAAA;AAAA,QAE5E,iBAAiB,CAACG,MAAUH,EAAM,0BAA0B,CAAC,CAACG,CAAK;AAAA,QACnE,cAAW;AAAA,MAAA;AAAA,IACb;AAAA,IAGF,MAAM,CAAC,EAAE,KAAAC,EAAA,MACP,gBAAAH;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,SAASE,EAAI,cAAc;AAAA,QAC3B,iBAAiB,CAACD,MAAUC,EAAI,eAAe,CAAC,CAACD,CAAK;AAAA,QACtD,cAAW;AAAA,MAAA;AAAA,IACb;AAAA,IAEF,eAAe;AAAA,IACf,cAAc;AAAA,EACf,CAAA;AAAC,GAESE,IAAkB;AAAA,EAC7BR,EAAG,SAAS,MAAM;AAAA,IAChB,QAAQ,MAAM;AAAA,EACf,CAAA;AACH,GACaS,IAA6B;AAAA,EACxCT,EAAG,SAAS,aAAa;AAAA,IACvB,QAAQ,MAAM;AAAA,IACd,MAAM,CAAC,EAAE,KAAAO,QAAU;AACX,YAAAG,IAAOH,EAAI,SAAS,WAAW;AACrC,aAAOI,EAAWD,CAAI;AAAA,IACxB;AAAA,IACA,cAAc;AAAA,EAAA,CACf;AAAA,EACDV,EAAG,SAAS,aAAa;AAAA,IACvB,QAAQ,MAAM;AAAA,IACd,MAAM,CAAC,EAAE,KAAAO,QAAU;AACX,YAAAG,IAAOH,EAAI,SAAS,WAAW;AACrC,aAAOI,EAAWD,CAAI;AAAA,IACxB;AAAA,IACA,cAAc;AAAA,EACf,CAAA;AACH;"}
|
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import { jsxs as r, jsx as e, Fragment as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { jsxs as r, jsx as e, Fragment as m } from "react/jsx-runtime";
|
|
2
|
+
import { ACTIONS_COLUMN_ID as d } from "./data-table.es.js";
|
|
3
|
+
import { Table as p, TableHeader as f, TableRow as c, TableCell as i, TableBody as h, TableFooter as x } from "../ui/table.es.js";
|
|
4
|
+
import { flexRender as g } from "@tanstack/react-table";
|
|
5
|
+
import { Info as b } from "lucide-react";
|
|
6
|
+
function I({
|
|
6
7
|
table: n,
|
|
7
|
-
columns:
|
|
8
|
+
columns: u,
|
|
8
9
|
dataQuery: s
|
|
9
10
|
}) {
|
|
10
|
-
var
|
|
11
|
-
return /* @__PURE__ */ r(p, { className: "
|
|
12
|
-
/* @__PURE__ */ e(
|
|
13
|
-
|
|
11
|
+
var a;
|
|
12
|
+
return /* @__PURE__ */ r(p, { className: "size-full", children: [
|
|
13
|
+
/* @__PURE__ */ e(f, { className: "sticky top-0 z-10", children: n.getHeaderGroups().map((o, l) => /* @__PURE__ */ e(c, { children: o.headers.map((t) => /* @__PURE__ */ r(
|
|
14
|
+
i,
|
|
14
15
|
{
|
|
15
|
-
className: `
|
|
16
|
-
px-4 py-2 text-left text-sm font-medium cursor-pointer whitespace-nowrap
|
|
17
|
-
bg-card
|
|
18
|
-
${t.id === "actions" ? "sticky right-0 z-50 bg-card" : ""}
|
|
19
|
-
`,
|
|
16
|
+
className: `px-4 py-2 cursor-pointer text-left text-sm font-medium bg-card whitespace-nowrap ${t.id === d ? "sticky right-0 z-50 text-center" : ""}`,
|
|
20
17
|
onClick: t.column.getToggleSortingHandler(),
|
|
21
18
|
children: [
|
|
22
|
-
t.isPlaceholder ? null :
|
|
19
|
+
t.isPlaceholder ? null : g(t.column.columnDef.header, t.getContext()),
|
|
23
20
|
{
|
|
24
21
|
asc: "↑",
|
|
25
22
|
desc: "↓"
|
|
@@ -28,24 +25,30 @@ function y({
|
|
|
28
25
|
},
|
|
29
26
|
t.id
|
|
30
27
|
)) }, l)) }),
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
28
|
+
/* @__PURE__ */ e(h, { className: "flex-1 overflow-y-auto", children: n.getRowModel().rows.length ? (
|
|
29
|
+
// Render table data
|
|
30
|
+
n.getRowModel().rows.map((o) => /* @__PURE__ */ e(c, { className: "transition-colors data-[state=selected]:bg-muted-foreground/30 hover:bg-muted-foreground/20", "data-state": o.getIsSelected() && "selected", children: o.getVisibleCells().map((l) => /* @__PURE__ */ e(
|
|
31
|
+
i,
|
|
32
|
+
{
|
|
33
|
+
className: `
|
|
34
|
+
px-4 py-2 text-left text-sm whitespace-nowrap
|
|
35
|
+
${l.column.id === d ? "sticky right-0 w-20 bg-card" : ""}
|
|
37
36
|
`,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
children: g(l.column.columnDef.cell, l.getContext())
|
|
38
|
+
},
|
|
39
|
+
l.id
|
|
40
|
+
)) }, o.id))
|
|
41
|
+
) : (
|
|
42
|
+
// Empty table
|
|
43
|
+
/* @__PURE__ */ e(c, { className: "cursor-not-allowed", children: /* @__PURE__ */ e(i, { colSpan: u.length, className: "border-none", children: /* @__PURE__ */ e("span", { className: "flex gap-3 justify-center items-center", children: !s.isFetching && (s.isError ? /* @__PURE__ */ r(m, { children: [
|
|
44
|
+
/* @__PURE__ */ e(b, {}),
|
|
45
|
+
" You don't have the required permissions. Please contact your admin."
|
|
46
|
+
] }) : (a = s.data) != null && a.data ? null : /* @__PURE__ */ e(m, { children: "No result found." })) }) }) })
|
|
47
|
+
) }),
|
|
48
|
+
s.isFetching && /* @__PURE__ */ e(x, { className: "absolute inset-0 z-20 flex justify-center items-center bg-card/80" })
|
|
46
49
|
] });
|
|
47
50
|
}
|
|
48
51
|
export {
|
|
49
|
-
|
|
52
|
+
I as TableContent
|
|
50
53
|
};
|
|
51
54
|
//# sourceMappingURL=table-content.es.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-content.es.js","sources":["../../../lib/components/data-table/table-content.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"table-content.es.js","sources":["../../../lib/components/data-table/table-content.tsx"],"sourcesContent":["import { ACTIONS_COLUMN_ID } from '@/components/data-table/data-table';\nimport {\n TableBody,\n TableCell,\n Table as TableComponent,\n TableFooter,\n TableHeader,\n TableRow,\n} from '@/components/ui/table';\nimport type { UseQueryResult } from '@tanstack/react-query';\nimport { ColumnDef, Table, flexRender } from '@tanstack/react-table';\nimport { Info } from 'lucide-react';\n\nexport function TableContent<TData, TValue>({\n table,\n columns,\n dataQuery,\n}: {\n table: Table<TData>;\n columns: ColumnDef<TData, TValue>[];\n dataQuery: UseQueryResult<any, unknown>;\n}) {\n return (\n <TableComponent className=\"size-full\">\n <TableHeader className=\"sticky top-0 z-10\">\n {table.getHeaderGroups().map((headerGroup, index) => (\n <TableRow key={index}>\n {headerGroup.headers.map((header) => (\n <TableCell\n key={header.id}\n className={`px-4 py-2 cursor-pointer text-left text-sm font-medium bg-card whitespace-nowrap ${header.id === ACTIONS_COLUMN_ID ? 'sticky right-0 z-50 text-center' : ''}`}\n onClick={header.column.getToggleSortingHandler()}\n >\n {/* TODO Better interaction design here. */}\n {header.isPlaceholder\n ? null\n : flexRender(header.column.columnDef.header, header.getContext())}\n\n {{\n asc: '↑',\n desc: '↓',\n }[header.column.getIsSorted() as string] ?? null}\n </TableCell>\n ))}\n </TableRow>\n ))}\n </TableHeader>\n <TableBody className=\"flex-1 overflow-y-auto\">\n {table.getRowModel().rows.length ?\n // Render table data\n (\n table.getRowModel().rows.map((row) => (\n <TableRow className='transition-colors data-[state=selected]:bg-muted-foreground/30 hover:bg-muted-foreground/20' key={row.id} data-state={row.getIsSelected() && 'selected'}>\n {row.getVisibleCells().map((cell) => (\n <TableCell\n key={cell.id}\n className={`\n px-4 py-2 text-left text-sm whitespace-nowrap\n ${cell.column.id === ACTIONS_COLUMN_ID\n ? 'sticky right-0 w-20 bg-card'\n : ''\n }\n `}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </TableCell>\n ))}\n </TableRow>\n ))\n )\n :\n // Empty table\n (\n <TableRow className=\"cursor-not-allowed\">\n <TableCell colSpan={columns.length} className=\"border-none\">\n <span className=\"flex gap-3 justify-center items-center\">\n {!dataQuery.isFetching && (\n dataQuery.isError ? (\n <>\n <Info /> You don't have the required permissions. Please contact your admin.\n </>\n ) : !dataQuery.data?.data ? (\n <>No result found.</>\n ) : null\n )}\n </span>\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n {/* Loader positioned to cover entire table viewport */}\n {dataQuery.isFetching && (\n <TableFooter className=\"absolute inset-0 z-20 flex justify-center items-center bg-card/80\" />\n )}\n </TableComponent>\n );\n}\n"],"names":["TableContent","table","columns","dataQuery","jsxs","TableComponent","jsx","TableHeader","headerGroup","index","TableRow","header","TableCell","ACTIONS_COLUMN_ID","flexRender","TableBody","row","cell","Fragment","Info","_a","TableFooter"],"mappings":";;;;;AAaO,SAASA,EAA4B;AAAA,EAC1C,OAAAC;AAAA,EACA,SAAAC;AAAA,EACA,WAAAC;AACF,GAIG;;AAEC,SAAA,gBAAAC,EAACC,GAAe,EAAA,WAAU,aACxB,UAAA;AAAA,IAAA,gBAAAC,EAACC,KAAY,WAAU,qBACpB,UAAMN,EAAA,kBAAkB,IAAI,CAACO,GAAaC,wBACxCC,GACE,EAAA,UAAAF,EAAY,QAAQ,IAAI,CAACG,MACxB,gBAAAP;AAAA,MAACQ;AAAA,MAAA;AAAA,QAEC,WAAW,oFAAoFD,EAAO,OAAOE,IAAoB,oCAAoC,EAAE;AAAA,QACvK,SAASF,EAAO,OAAO,wBAAwB;AAAA,QAG9C,UAAA;AAAA,UAAOA,EAAA,gBACJ,OACAG,EAAWH,EAAO,OAAO,UAAU,QAAQA,EAAO,YAAY;AAAA,UAEjE;AAAA,YACC,KAAK;AAAA,YACL,MAAM;AAAA,UACN,EAAAA,EAAO,OAAO,YAAA,CAAuB,KAAK;AAAA,QAAA;AAAA,MAAA;AAAA,MAZvCA,EAAO;AAAA,IAAA,CAcf,EAAA,GAjBYF,CAkBf,CACD,GACH;AAAA,sBACCM,GAAU,EAAA,WAAU,0BAClB,UAAMd,EAAA,cAAc,KAAK;AAAA;AAAA,MAGtBA,EAAM,cAAc,KAAK,IAAI,CAACe,wBAC3BN,GAAS,EAAA,WAAU,+FAA2G,cAAYM,EAAI,mBAAmB,YAC/J,YAAI,kBAAkB,IAAI,CAACC,MAC1B,gBAAAX;AAAA,QAACM;AAAA,QAAA;AAAA,UAEC,WAAW;AAAA;AAAA,sBAETK,EAAK,OAAO,OAAOJ,IACf,gCACA,EACJ;AAAA;AAAA,UAGD,YAAWI,EAAK,OAAO,UAAU,MAAMA,EAAK,WAAY,CAAA;AAAA,QAAA;AAAA,QATpDA,EAAK;AAAA,MAAA,CAWb,EAAA,GAdoHD,EAAI,EAe3H,CACD;AAAA;AAAA;AAAA,MAKD,gBAAAV,EAACI,KAAS,WAAU,sBAClB,4BAACE,GAAU,EAAA,SAASV,EAAQ,QAAQ,WAAU,eAC5C,UAAC,gBAAAI,EAAA,QAAA,EAAK,WAAU,0CACb,UAAA,CAACH,EAAU,eACVA,EAAU,UAEN,gBAAAC,EAAAc,GAAA,EAAA,UAAA;AAAA,QAAA,gBAAAZ,EAACa,GAAK,EAAA;AAAA,QAAE;AAAA,MACV,EAAA,CAAA,KACGC,IAAAjB,EAAU,SAAV,QAAAiB,EAAgB,OAEjB,8BADA,UAAgB,mBAAA,CAAA,GAGxB,CAAA,EACF,CAAA,EACF,CAAA;AAAA,OAEN;AAAA,IAECjB,EAAU,cACR,gBAAAG,EAAAe,GAAA,EAAY,WAAU,oEAAoE,CAAA;AAAA,EAAA,GAE/F;AAEJ;"}
|
|
@@ -2,27 +2,27 @@ import { jsxs as n, jsx as e, Fragment as M } from "react/jsx-runtime";
|
|
|
2
2
|
import { Badge as $ } from "../ui/badge.es.js";
|
|
3
3
|
import { Button as F } from "../ui/button.es.js";
|
|
4
4
|
import { Calendar as q } from "../ui/calendar.es.js";
|
|
5
|
-
import { Form as B, FormField as
|
|
5
|
+
import { Form as B, FormField as m, FormItem as s, FormLabel as u, FormControl as h, FormMessage as p } from "../ui/form.es.js";
|
|
6
6
|
import { Input as P } from "../ui/input.es.js";
|
|
7
|
-
import { Popover as
|
|
8
|
-
import { Select as N, SelectTrigger as S, SelectValue as y, SelectContent as w, SelectItem as
|
|
7
|
+
import { Popover as R, PopoverTrigger as b, PopoverContent as f } from "../ui/popover.es.js";
|
|
8
|
+
import { Select as N, SelectTrigger as S, SelectValue as y, SelectContent as w, SelectItem as g } from "../ui/select.es.js";
|
|
9
9
|
import { cn as k } from "../../utils/index.es.js";
|
|
10
10
|
import { zodResolver as U } from "@hookform/resolvers/zod";
|
|
11
11
|
import { format as X } from "date-fns";
|
|
12
12
|
import { X as Y, FilterIcon as G } from "lucide-react";
|
|
13
13
|
import { useState as T } from "react";
|
|
14
14
|
import { useForm as H } from "react-hook-form";
|
|
15
|
-
import
|
|
15
|
+
import v from "zod";
|
|
16
16
|
import { getResourceDisplayName as E, COMPARISON_OPERATOR_LABELS as j, OPERATORS_FOR_FILTER_TYPE as J, FILTER_COMPARISON_OPERATORS as K } from "./table-utils/constants.es.js";
|
|
17
|
-
const Q =
|
|
17
|
+
const Q = v.object({
|
|
18
18
|
// For identifing a filter for updation and deletion
|
|
19
|
-
id:
|
|
20
|
-
property:
|
|
21
|
-
operator:
|
|
19
|
+
id: v.string().min(1, "Field is required"),
|
|
20
|
+
property: v.string().min(1, "Field is required."),
|
|
21
|
+
operator: v.enum(K, {
|
|
22
22
|
errorMap: () => ({ message: "Invalid comparison operator" })
|
|
23
23
|
}),
|
|
24
|
-
value:
|
|
25
|
-
}),
|
|
24
|
+
value: v.string().min(1, "Field is required.")
|
|
25
|
+
}), ge = ({
|
|
26
26
|
filterableProperties: t,
|
|
27
27
|
filters: c,
|
|
28
28
|
onFiltersChange: a
|
|
@@ -54,11 +54,11 @@ const Q = g.object({
|
|
|
54
54
|
};
|
|
55
55
|
return /* @__PURE__ */ e(B, { ...l, children: /* @__PURE__ */ n("form", { onSubmit: l.handleSubmit(V), className: "flex flex-col gap-2 min-w-60", children: [
|
|
56
56
|
/* @__PURE__ */ e(
|
|
57
|
-
|
|
57
|
+
m,
|
|
58
58
|
{
|
|
59
59
|
control: l.control,
|
|
60
60
|
name: "property",
|
|
61
|
-
render: ({ field: d }) => /* @__PURE__ */ n(
|
|
61
|
+
render: ({ field: d }) => /* @__PURE__ */ n(s, { children: [
|
|
62
62
|
/* @__PURE__ */ e(u, { children: "Property" }),
|
|
63
63
|
/* @__PURE__ */ n(
|
|
64
64
|
N,
|
|
@@ -68,7 +68,7 @@ const Q = g.object({
|
|
|
68
68
|
disabled: !!r,
|
|
69
69
|
children: [
|
|
70
70
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(y, {}) }) }),
|
|
71
|
-
/* @__PURE__ */ e(w, { autoFocus: !0, children: Object.entries(t).map(([o]) => /* @__PURE__ */ e(
|
|
71
|
+
/* @__PURE__ */ e(w, { autoFocus: !0, children: Object.entries(t).map(([o]) => /* @__PURE__ */ e(g, { value: o, children: E(o, "admin-portal") }, o)) })
|
|
72
72
|
]
|
|
73
73
|
}
|
|
74
74
|
),
|
|
@@ -78,16 +78,16 @@ const Q = g.object({
|
|
|
78
78
|
),
|
|
79
79
|
i && /* @__PURE__ */ n(M, { children: [
|
|
80
80
|
/* @__PURE__ */ e(
|
|
81
|
-
|
|
81
|
+
m,
|
|
82
82
|
{
|
|
83
83
|
control: l.control,
|
|
84
84
|
name: "operator",
|
|
85
|
-
render: ({ field: d }) => /* @__PURE__ */ n(
|
|
85
|
+
render: ({ field: d }) => /* @__PURE__ */ n(s, { children: [
|
|
86
86
|
/* @__PURE__ */ e(u, { children: "Comparison" }),
|
|
87
87
|
/* @__PURE__ */ n(N, { onValueChange: d.onChange, defaultValue: d.value, children: [
|
|
88
88
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(y, {}) }) }),
|
|
89
89
|
/* @__PURE__ */ e(w, { children: t[i] && J[t[i]].map(
|
|
90
|
-
(o) => /* @__PURE__ */ e(
|
|
90
|
+
(o) => /* @__PURE__ */ e(g, { value: o, children: j[o] }, o)
|
|
91
91
|
) })
|
|
92
92
|
] }),
|
|
93
93
|
/* @__PURE__ */ e(p, {})
|
|
@@ -114,23 +114,21 @@ const Q = g.object({
|
|
|
114
114
|
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2 items-center", children: c.map((r, l) => /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: [
|
|
115
115
|
/* @__PURE__ */ n("div", { className: "flex items-center", children: [
|
|
116
116
|
/* @__PURE__ */ n(
|
|
117
|
-
|
|
117
|
+
R,
|
|
118
118
|
{
|
|
119
119
|
open: x === r.id,
|
|
120
120
|
onOpenChange: (i) => {
|
|
121
121
|
i || C(null);
|
|
122
122
|
},
|
|
123
123
|
children: [
|
|
124
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(
|
|
125
125
|
$,
|
|
126
126
|
{
|
|
127
127
|
onClick: () => C(r.id),
|
|
128
|
-
variant: "default",
|
|
129
|
-
className: "cursor-pointer h-7",
|
|
130
128
|
children: L(r)
|
|
131
129
|
}
|
|
132
130
|
) }),
|
|
133
|
-
/* @__PURE__ */ e(
|
|
131
|
+
/* @__PURE__ */ e(f, { className: "w-auto", align: "start", children: /* @__PURE__ */ e(A, { filter: r }) })
|
|
134
132
|
]
|
|
135
133
|
}
|
|
136
134
|
),
|
|
@@ -139,8 +137,7 @@ const Q = g.object({
|
|
|
139
137
|
{
|
|
140
138
|
icon: Y,
|
|
141
139
|
variant: "destructive",
|
|
142
|
-
|
|
143
|
-
size: "icon",
|
|
140
|
+
size: "sm",
|
|
144
141
|
onClick: () => _(r.id)
|
|
145
142
|
}
|
|
146
143
|
)
|
|
@@ -148,26 +145,26 @@ const Q = g.object({
|
|
|
148
145
|
l < c.length - 1 && /* @__PURE__ */ e("span", { className: "text-sm text-muted-foreground", children: "and" })
|
|
149
146
|
] }, r.id)) })
|
|
150
147
|
] }) }),
|
|
151
|
-
/* @__PURE__ */ n(
|
|
152
|
-
/* @__PURE__ */ e(
|
|
153
|
-
/* @__PURE__ */ e(
|
|
148
|
+
/* @__PURE__ */ n(R, { open: z, onOpenChange: O, children: [
|
|
149
|
+
/* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(F, { icon: G, variant: "outline" }) }),
|
|
150
|
+
/* @__PURE__ */ e(f, { className: "w-auto p-4", align: "start", children: /* @__PURE__ */ e(A, {}) })
|
|
154
151
|
] })
|
|
155
152
|
] });
|
|
156
153
|
}, W = ({ control: t, propertyType: c }) => {
|
|
157
154
|
switch (c) {
|
|
158
155
|
case "boolean":
|
|
159
156
|
return /* @__PURE__ */ e(
|
|
160
|
-
|
|
157
|
+
m,
|
|
161
158
|
{
|
|
162
159
|
control: t,
|
|
163
160
|
name: "value",
|
|
164
|
-
render: ({ field: a }) => /* @__PURE__ */ n(
|
|
161
|
+
render: ({ field: a }) => /* @__PURE__ */ n(s, { children: [
|
|
165
162
|
/* @__PURE__ */ e(u, { children: "Value" }),
|
|
166
163
|
/* @__PURE__ */ n(N, { onValueChange: a.onChange, defaultValue: a.value, children: [
|
|
167
164
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(y, {}) }) }),
|
|
168
165
|
/* @__PURE__ */ n(w, { children: [
|
|
169
|
-
/* @__PURE__ */ e(
|
|
170
|
-
/* @__PURE__ */ e(
|
|
166
|
+
/* @__PURE__ */ e(g, { value: "true", children: "True" }),
|
|
167
|
+
/* @__PURE__ */ e(g, { value: "false", children: "False" })
|
|
171
168
|
] })
|
|
172
169
|
] }),
|
|
173
170
|
/* @__PURE__ */ e(p, {})
|
|
@@ -176,14 +173,14 @@ const Q = g.object({
|
|
|
176
173
|
);
|
|
177
174
|
case "objectDate":
|
|
178
175
|
return /* @__PURE__ */ e(
|
|
179
|
-
|
|
176
|
+
m,
|
|
180
177
|
{
|
|
181
178
|
control: t,
|
|
182
179
|
name: "value",
|
|
183
|
-
render: ({ field: a }) => /* @__PURE__ */ n(
|
|
180
|
+
render: ({ field: a }) => /* @__PURE__ */ n(s, { className: "flex flex-col", children: [
|
|
184
181
|
/* @__PURE__ */ e(u, { children: "Value" }),
|
|
185
|
-
/* @__PURE__ */ n(
|
|
186
|
-
/* @__PURE__ */ e(
|
|
182
|
+
/* @__PURE__ */ n(R, { children: [
|
|
183
|
+
/* @__PURE__ */ e(b, { asChild: !0, children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
|
|
187
184
|
F,
|
|
188
185
|
{
|
|
189
186
|
variant: "outline",
|
|
@@ -194,7 +191,7 @@ const Q = g.object({
|
|
|
194
191
|
children: a.value ? X(new Date(a.value), "PPP") : /* @__PURE__ */ e("span", { children: "Pick a date" })
|
|
195
192
|
}
|
|
196
193
|
) }) }),
|
|
197
|
-
/* @__PURE__ */ e(
|
|
194
|
+
/* @__PURE__ */ e(f, { className: "w-auto p-0", align: "start", children: /* @__PURE__ */ e(
|
|
198
195
|
q,
|
|
199
196
|
{
|
|
200
197
|
mode: "single",
|
|
@@ -212,18 +209,18 @@ const Q = g.object({
|
|
|
212
209
|
);
|
|
213
210
|
case "role":
|
|
214
211
|
return /* @__PURE__ */ e(
|
|
215
|
-
|
|
212
|
+
m,
|
|
216
213
|
{
|
|
217
214
|
control: t,
|
|
218
215
|
name: "value",
|
|
219
|
-
render: ({ field: a }) => /* @__PURE__ */ n(
|
|
216
|
+
render: ({ field: a }) => /* @__PURE__ */ n(s, { children: [
|
|
220
217
|
/* @__PURE__ */ e(u, { children: "Value" }),
|
|
221
218
|
/* @__PURE__ */ n(N, { onValueChange: a.onChange, defaultValue: a.value, children: [
|
|
222
219
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(y, {}) }) }),
|
|
223
220
|
/* @__PURE__ */ n(w, { children: [
|
|
224
|
-
/* @__PURE__ */ e(
|
|
225
|
-
/* @__PURE__ */ e(
|
|
226
|
-
/* @__PURE__ */ e(
|
|
221
|
+
/* @__PURE__ */ e(g, { value: "user", children: "User" }),
|
|
222
|
+
/* @__PURE__ */ e(g, { value: "organization-admin", children: "Organization Admin" }),
|
|
223
|
+
/* @__PURE__ */ e(g, { value: "reseller-admin", children: "Reseller Admin" })
|
|
227
224
|
] })
|
|
228
225
|
] }),
|
|
229
226
|
/* @__PURE__ */ e(p, {})
|
|
@@ -232,11 +229,11 @@ const Q = g.object({
|
|
|
232
229
|
);
|
|
233
230
|
case "number":
|
|
234
231
|
return /* @__PURE__ */ e(
|
|
235
|
-
|
|
232
|
+
m,
|
|
236
233
|
{
|
|
237
234
|
control: t,
|
|
238
235
|
name: "value",
|
|
239
|
-
render: ({ field: a }) => /* @__PURE__ */ n(
|
|
236
|
+
render: ({ field: a }) => /* @__PURE__ */ n(s, { children: [
|
|
240
237
|
/* @__PURE__ */ e(u, { children: "Value" }),
|
|
241
238
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(P, { ...a, type: "number" }) }),
|
|
242
239
|
/* @__PURE__ */ e(p, {})
|
|
@@ -245,11 +242,11 @@ const Q = g.object({
|
|
|
245
242
|
);
|
|
246
243
|
default:
|
|
247
244
|
return /* @__PURE__ */ e(
|
|
248
|
-
|
|
245
|
+
m,
|
|
249
246
|
{
|
|
250
247
|
control: t,
|
|
251
248
|
name: "value",
|
|
252
|
-
render: ({ field: a }) => /* @__PURE__ */ n(
|
|
249
|
+
render: ({ field: a }) => /* @__PURE__ */ n(s, { children: [
|
|
253
250
|
/* @__PURE__ */ e(u, { children: "Value" }),
|
|
254
251
|
/* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(P, { ...a, type: "text" }) }),
|
|
255
252
|
/* @__PURE__ */ e(p, {})
|
|
@@ -259,6 +256,6 @@ const Q = g.object({
|
|
|
259
256
|
}
|
|
260
257
|
};
|
|
261
258
|
export {
|
|
262
|
-
|
|
259
|
+
ge as TableFilter
|
|
263
260
|
};
|
|
264
261
|
//# sourceMappingURL=table-filter.es.js.map
|