@vuu-ui/vuu-datatable 0.13.2 → 0.13.4

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/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
- "version": "0.13.2",
2
+ "version": "0.13.4",
3
3
  "author": "heswell",
4
4
  "license": "Apache-2.0",
5
5
  "dependencies": {
6
6
  "@salt-ds/core": "1.43.0",
7
7
  "@salt-ds/styles": "0.2.1",
8
8
  "@salt-ds/window": "0.1.1",
9
- "@vuu-ui/vuu-data-local": "0.13.2",
10
- "@vuu-ui/vuu-table-types": "0.13.2",
11
- "@vuu-ui/vuu-filters": "0.13.2",
12
- "@vuu-ui/vuu-layout": "0.13.2",
13
- "@vuu-ui/vuu-popups": "0.13.2",
14
- "@vuu-ui/vuu-shell": "0.13.2",
15
- "@vuu-ui/vuu-table": "0.13.2",
16
- "@vuu-ui/vuu-table-extras": "0.13.2",
17
- "@vuu-ui/vuu-ui-controls": "0.13.2",
18
- "@vuu-ui/vuu-utils": "0.13.2"
9
+ "@vuu-ui/vuu-data-local": "0.13.4",
10
+ "@vuu-ui/vuu-table-types": "0.13.4",
11
+ "@vuu-ui/vuu-filters": "0.13.4",
12
+ "@vuu-ui/vuu-layout": "0.13.4",
13
+ "@vuu-ui/vuu-popups": "0.13.4",
14
+ "@vuu-ui/vuu-shell": "0.13.4",
15
+ "@vuu-ui/vuu-table": "0.13.4",
16
+ "@vuu-ui/vuu-table-extras": "0.13.4",
17
+ "@vuu-ui/vuu-ui-controls": "0.13.4",
18
+ "@vuu-ui/vuu-utils": "0.13.4"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "clsx": "^2.0.0",
@@ -25,19 +25,16 @@
25
25
  "files": [
26
26
  "README.md",
27
27
  "esm",
28
- "cjs",
29
- "/types"
28
+ "cjs"
30
29
  ],
31
30
  "exports": {
32
31
  ".": {
33
32
  "require": "./cjs/index.js",
34
- "import": "./esm/index.js",
35
- "types": "./types/index.d.ts"
33
+ "import": "./esm/index.js"
36
34
  }
37
35
  },
38
36
  "main": "cjs/index.js",
39
37
  "module": "esm/index.js",
40
38
  "name": "@vuu-ui/vuu-datatable",
41
- "type": "module",
42
- "types": "types/index.d.ts"
39
+ "type": "module"
43
40
  }
@@ -1,8 +0,0 @@
1
- import { FilterBarProps } from "@vuu-ui/vuu-filters";
2
- import { TableProps } from "@vuu-ui/vuu-table";
3
- import { HTMLAttributes } from "react";
4
- export interface FilterTableProps extends HTMLAttributes<HTMLDivElement> {
5
- FilterBarProps?: Partial<FilterBarProps>;
6
- TableProps: Omit<TableProps, "height" | "width">;
7
- }
8
- export declare const FilterTable: ({ FilterBarProps, TableProps, style: styleProps, ...htmlAttributes }: FilterTableProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from "./FilterTable";
2
- export * from "./usePersistFilterState";
@@ -1,5 +0,0 @@
1
- import { FilterBarProps } from "@vuu-ui/vuu-filters";
2
- import { FilterTableProps } from "./FilterTable";
3
- export declare const useFilterTable: ({ FilterBarProps, TableProps: { config: { columns }, dataSource, }, }: FilterTableProps) => {
4
- filterBarProps: FilterBarProps;
5
- };
@@ -1,11 +0,0 @@
1
- import { MenuActionHandler, MenuBuilder } from "@vuu-ui/vuu-context-menu";
2
- import { Filter, FilterState } from "@vuu-ui/vuu-filter-types";
3
- import { FilterTableFeatureProps } from "@vuu-ui/vuu-utils";
4
- export declare const usePersistFilterState: ({ tableSchema, }: FilterTableFeatureProps) => {
5
- buildFilterTableMenuOptions: MenuBuilder;
6
- filterState: FilterState;
7
- handleFilterTableMenuAction: MenuActionHandler;
8
- onFilterStateChanged: (filterState: FilterState) => void;
9
- onFilterDeleted: (filter: Filter) => void;
10
- onFilterRenamed: (filter: Filter, name: string) => void;
11
- };
package/types/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./filter-table";
2
- export * from "./json-table";
3
- export * from "./tree-table";
4
- export * from "./linked-table-view/LinkedTableView";
@@ -1,2 +0,0 @@
1
- import { TableCellProps } from "@vuu-ui/vuu-table-types";
2
- export declare const JsonCell: ({ column, columnMap, row }: TableCellProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { TableProps } from "@vuu-ui/vuu-table";
2
- import { JsonData } from "@vuu-ui/vuu-utils";
3
- import { TableConfig } from "@vuu-ui/vuu-table-types";
4
- export interface JsonTableProps extends Omit<TableProps, "config" | "dataSource"> {
5
- config?: Pick<TableConfig, "columnSeparators" | "rowSeparators" | "zebraStripes">;
6
- source: JsonData;
7
- }
8
- export declare const JsonTable: ({ config, source: sourceProp, ...tableProps }: JsonTableProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1 +0,0 @@
1
- export * from "./JsonTable";
@@ -1,54 +0,0 @@
1
- import { DataSource, DataSourceConstructorProps } from "@vuu-ui/vuu-data-types";
2
- import { VuuLink } from "@vuu-ui/vuu-protocol-types";
3
- import { TableConfig } from "@vuu-ui/vuu-table-types";
4
- import { HTMLAttributes } from "react";
5
- import { Filter } from "@vuu-ui/vuu-filter-types";
6
- export interface LinkTableConfig {
7
- config?: TableConfig;
8
- dataSource: DataSourceConstructorProps | DataSource;
9
- title: string;
10
- }
11
- export interface LinkedTableConfig extends LinkTableConfig {
12
- /**
13
- * toTable will default to the table above in hierarchy. If there are multiple
14
- * tables in level above, toTable should be specified.
15
- */
16
- vuuLink: Pick<VuuLink, "fromColumn" | "toColumn"> & {
17
- toTable?: string;
18
- };
19
- }
20
- /**
21
- * Currently supports max of three levels of hierarchical data
22
- * 1 = parent (required)
23
- * 2 = child (required)
24
- * 3 = grandchild (optional)
25
- */
26
- export type LinkedDataSources = {
27
- "1": LinkTableConfig;
28
- "2": LinkedTableConfig | LinkedTableConfig[];
29
- "3"?: LinkedTableConfig | LinkedTableConfig[];
30
- };
31
- /**
32
- * Displays a vertical 'tower' of Tables with a hierarchical relationship.
33
- * Currently supported levels are:
34
- * - tier 1 - parent table(s)
35
- * - tier 2 - child table(s)
36
- * -tier 3 (optional) - grandchild table(s)
37
- *
38
- * Selection of row(s) on tables higher in the hierarchy drives the display
39
- * of data in tables below. Currently this is one-way, top-down only
40
- */
41
- export interface LinkedTableViewProps extends HTMLAttributes<HTMLDivElement> {
42
- /**
43
- * Optional filter to allow externally controlled filter to be applied. This will
44
- * be applied to tier 1 table(s).
45
- * If applicable, it will also be applied to tier2/tier3 table(s) when no selection
46
- * is in effect from parent table, 'If applicable' means if the filter column is
47
- * available on tier 2/tier 3 tables).
48
- * If a filter is provided and it cannot be applied - because
49
- * column name of filter is not available in tier 1 table, an exception will be thrown.
50
- */
51
- filter?: Filter;
52
- linkedDataSources: LinkedDataSources;
53
- }
54
- export declare const LinkedTableView: ({ className, linkedDataSources, ...htmlAttributes }: LinkedTableViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { ToggleButtonGroupProps } from "@salt-ds/core";
2
- export declare const TableLayoutToggleButton: (props: ToggleButtonGroupProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,58 +0,0 @@
1
- import { DataSource } from "@vuu-ui/vuu-data-types";
2
- import { LinkedTableViewProps } from "./LinkedTableView";
3
- import { SyntheticEvent } from "react";
4
- import { TableConfig } from "@vuu-ui/vuu-table-types";
5
- export type TableDataSourceConfig = {
6
- config: TableConfig;
7
- dataSource: DataSource;
8
- title: string;
9
- };
10
- export type ResolvedTableConfig = {
11
- "1": TableDataSourceConfig;
12
- "2": TableDataSourceConfig | TableDataSourceConfig[];
13
- "3"?: TableDataSourceConfig | TableDataSourceConfig[];
14
- };
15
- export type LinkedTableViewHookProps = Pick<LinkedTableViewProps, "linkedDataSources">;
16
- export declare const useLinkedTableView: ({ linkedDataSources, }: LinkedTableViewHookProps) => {
17
- level1: {
18
- activeTab: number;
19
- key: string;
20
- onTabChange: (tabIndex: number) => void;
21
- };
22
- level2: {
23
- activeTab: number;
24
- collapsed: boolean;
25
- key: string;
26
- onChangeTabbedView: (evt: SyntheticEvent<HTMLElement>) => void;
27
- onCollapse: () => void;
28
- onExpand: () => void;
29
- onTabChange: (tabIndex: number) => void;
30
- tabbedView: 0 | 1;
31
- };
32
- level3: {
33
- activeTab: number;
34
- collapsed: boolean;
35
- key: string;
36
- onChangeTabbedView: (evt: SyntheticEvent<HTMLElement>) => void;
37
- onCollapse: () => void;
38
- onExpand: () => void;
39
- onTabChange: (tabIndex: number) => void;
40
- tabbedView: 0 | 1;
41
- };
42
- tableConfig: ResolvedTableConfig | undefined;
43
- };
44
- export type LevelsConfig = {
45
- level1: LevelConfig;
46
- level2: LevelConfig;
47
- level3: LevelConfig;
48
- };
49
- export type LevelConfig = {
50
- activeTab: number;
51
- key: string;
52
- collapsed?: boolean;
53
- onChangeTabbedView?: (evt: SyntheticEvent<HTMLElement>) => void;
54
- onCollapse?: () => void;
55
- onTabChange?: (tabIndex: number) => void;
56
- onExpand?: () => void;
57
- tabbedView?: 0 | 1;
58
- };
@@ -1,16 +0,0 @@
1
- import { TableProps } from "@vuu-ui/vuu-table";
2
- import { TreeDataSource } from "@vuu-ui/vuu-data-local";
3
- import { TableConfig } from "@vuu-ui/vuu-table-types";
4
- import { type TreeSourceNode } from "@vuu-ui/vuu-utils";
5
- interface Props extends Omit<TableProps, "config" | "dataSource"> {
6
- config?: Pick<TableConfig, "columnSeparators" | "rowSeparators" | "zebraStripes">;
7
- dataSource?: TreeDataSource;
8
- source?: TreeSourceNode[];
9
- }
10
- export type TreeTableProps = Props & ({
11
- dataSource: TreeDataSource;
12
- } | {
13
- source: TreeSourceNode[];
14
- });
15
- export declare const TreeTable: ({ config, dataSource, source, ...tableProps }: TreeTableProps) => import("react/jsx-runtime").JSX.Element | null;
16
- export {};
@@ -1 +0,0 @@
1
- export * from "./TreeTable";