@nswds/app 6.0.0 → 6.0.1
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/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -44
- package/dist/index.d.ts +18 -44
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -18,8 +18,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
|
18
18
|
import { Command as Command$1 } from 'cmdk';
|
|
19
19
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
20
20
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
21
|
-
import { RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
|
|
22
|
-
import * as _tanstack_table_core from '@tanstack/table-core';
|
|
21
|
+
import { rowSortingFeature, columnFilteringFeature, globalFilteringFeature, columnVisibilityFeature, rowSelectionFeature, rowPaginationFeature, columnFacetingFeature, Table as Table$1, RowModel, TableFeatures, filterFns, sortFns, RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
|
|
23
22
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
24
23
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
25
24
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -940,49 +939,24 @@ declare function ContextMenuLabel({ className, inset, ...props }: react.Componen
|
|
|
940
939
|
declare function ContextMenuSeparator({ className, ...props }: react.ComponentProps<typeof ContextMenuPrimitive.Separator>): react.JSX.Element;
|
|
941
940
|
declare function ContextMenuShortcut({ className, ...props }: react.ComponentProps<'span'>): react.JSX.Element;
|
|
942
941
|
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
arrHas: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
960
|
-
arrIncludesSome: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
961
|
-
between: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
962
|
-
betweenInclusive: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
963
|
-
empty: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
964
|
-
endsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
965
|
-
equals: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
966
|
-
equalsString: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
967
|
-
equalsStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
968
|
-
inDateRange: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
969
|
-
inNumberRange: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
970
|
-
includesString: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
971
|
-
includesStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
972
|
-
notEmpty: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
973
|
-
startsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
974
|
-
weakEquals: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
975
|
-
};
|
|
976
|
-
sortFns: {
|
|
977
|
-
alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
978
|
-
alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
979
|
-
basic: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
980
|
-
datetime: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
981
|
-
text: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
982
|
-
textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
983
|
-
};
|
|
942
|
+
type InferredAny = any;
|
|
943
|
+
type DataTableFeatures = {
|
|
944
|
+
rowSortingFeature: typeof rowSortingFeature;
|
|
945
|
+
columnFilteringFeature: typeof columnFilteringFeature;
|
|
946
|
+
globalFilteringFeature: typeof globalFilteringFeature;
|
|
947
|
+
columnVisibilityFeature: typeof columnVisibilityFeature;
|
|
948
|
+
rowSelectionFeature: typeof rowSelectionFeature;
|
|
949
|
+
rowPaginationFeature: typeof rowPaginationFeature;
|
|
950
|
+
columnFacetingFeature: typeof columnFacetingFeature;
|
|
951
|
+
sortedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
|
|
952
|
+
filteredRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
|
|
953
|
+
paginatedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
|
|
954
|
+
facetedRowModel: (table: Table$1<InferredAny, InferredAny>, columnId: string) => () => RowModel<InferredAny, InferredAny>;
|
|
955
|
+
facetedUniqueValues: (table: Table$1<TableFeatures, InferredAny>, columnId: string) => () => Map<InferredAny, number>;
|
|
956
|
+
filterFns: typeof filterFns;
|
|
957
|
+
sortFns: typeof sortFns;
|
|
984
958
|
};
|
|
985
|
-
|
|
959
|
+
declare const dataTableFeatures: DataTableFeatures;
|
|
986
960
|
|
|
987
961
|
type ToolbarValue = {
|
|
988
962
|
value: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,8 +18,7 @@ import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
|
18
18
|
import { Command as Command$1 } from 'cmdk';
|
|
19
19
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
20
20
|
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
21
|
-
import { RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
|
|
22
|
-
import * as _tanstack_table_core from '@tanstack/table-core';
|
|
21
|
+
import { rowSortingFeature, columnFilteringFeature, globalFilteringFeature, columnVisibilityFeature, rowSelectionFeature, rowPaginationFeature, columnFacetingFeature, Table as Table$1, RowModel, TableFeatures, filterFns, sortFns, RowData, ReactTable, ColumnDef, SortingState, Column } from '@tanstack/react-table';
|
|
23
22
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
24
23
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
25
24
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -940,49 +939,24 @@ declare function ContextMenuLabel({ className, inset, ...props }: react.Componen
|
|
|
940
939
|
declare function ContextMenuSeparator({ className, ...props }: react.ComponentProps<typeof ContextMenuPrimitive.Separator>): react.JSX.Element;
|
|
941
940
|
declare function ContextMenuShortcut({ className, ...props }: react.ComponentProps<'span'>): react.JSX.Element;
|
|
942
941
|
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
arrHas: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
960
|
-
arrIncludesSome: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
961
|
-
between: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
962
|
-
betweenInclusive: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
963
|
-
empty: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
964
|
-
endsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
965
|
-
equals: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
966
|
-
equalsString: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
967
|
-
equalsStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
968
|
-
inDateRange: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
969
|
-
inNumberRange: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
970
|
-
includesString: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
971
|
-
includesStringSensitive: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
972
|
-
notEmpty: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
973
|
-
startsWith: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
974
|
-
weakEquals: _tanstack_table_core.CreatedFilterFn<any, any>;
|
|
975
|
-
};
|
|
976
|
-
sortFns: {
|
|
977
|
-
alphanumeric: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
978
|
-
alphanumericCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
979
|
-
basic: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
980
|
-
datetime: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
981
|
-
text: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
982
|
-
textCaseSensitive: _tanstack_table_core.CreatedSortFn<any, any>;
|
|
983
|
-
};
|
|
942
|
+
type InferredAny = any;
|
|
943
|
+
type DataTableFeatures = {
|
|
944
|
+
rowSortingFeature: typeof rowSortingFeature;
|
|
945
|
+
columnFilteringFeature: typeof columnFilteringFeature;
|
|
946
|
+
globalFilteringFeature: typeof globalFilteringFeature;
|
|
947
|
+
columnVisibilityFeature: typeof columnVisibilityFeature;
|
|
948
|
+
rowSelectionFeature: typeof rowSelectionFeature;
|
|
949
|
+
rowPaginationFeature: typeof rowPaginationFeature;
|
|
950
|
+
columnFacetingFeature: typeof columnFacetingFeature;
|
|
951
|
+
sortedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
|
|
952
|
+
filteredRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
|
|
953
|
+
paginatedRowModel: (table: Table$1<InferredAny, InferredAny>) => () => RowModel<InferredAny, InferredAny>;
|
|
954
|
+
facetedRowModel: (table: Table$1<InferredAny, InferredAny>, columnId: string) => () => RowModel<InferredAny, InferredAny>;
|
|
955
|
+
facetedUniqueValues: (table: Table$1<TableFeatures, InferredAny>, columnId: string) => () => Map<InferredAny, number>;
|
|
956
|
+
filterFns: typeof filterFns;
|
|
957
|
+
sortFns: typeof sortFns;
|
|
984
958
|
};
|
|
985
|
-
|
|
959
|
+
declare const dataTableFeatures: DataTableFeatures;
|
|
986
960
|
|
|
987
961
|
type ToolbarValue = {
|
|
988
962
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -13213,7 +13213,7 @@ function TableCaption({ className, ...props }) {
|
|
|
13213
13213
|
}
|
|
13214
13214
|
);
|
|
13215
13215
|
}
|
|
13216
|
-
var
|
|
13216
|
+
var inferredDataTableFeatures = tableFeatures({
|
|
13217
13217
|
rowSortingFeature,
|
|
13218
13218
|
columnFilteringFeature,
|
|
13219
13219
|
globalFilteringFeature,
|
|
@@ -13229,6 +13229,7 @@ var dataTableFeatures = tableFeatures({
|
|
|
13229
13229
|
filterFns,
|
|
13230
13230
|
sortFns
|
|
13231
13231
|
});
|
|
13232
|
+
var dataTableFeatures = inferredDataTableFeatures;
|
|
13232
13233
|
function DataTable({
|
|
13233
13234
|
search,
|
|
13234
13235
|
toolbar,
|
|
@@ -14435,7 +14436,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14435
14436
|
|
|
14436
14437
|
// package.json
|
|
14437
14438
|
var package_default = {
|
|
14438
|
-
version: "6.0.
|
|
14439
|
+
version: "6.0.1"};
|
|
14439
14440
|
var SluggerContext = React5__default.createContext(null);
|
|
14440
14441
|
function flattenText(nodes) {
|
|
14441
14442
|
if (nodes == null || typeof nodes === "boolean") return "";
|