@vuu-ui/vuu-table-extras 0.8.12 → 0.8.13

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.
Files changed (28) hide show
  1. package/cjs/index.js +1 -1
  2. package/cjs/index.js.map +4 -4
  3. package/esm/index.js +1 -1
  4. package/esm/index.js.map +4 -4
  5. package/index.css +1 -1
  6. package/index.css.map +3 -3
  7. package/package.json +11 -11
  8. package/types/cell-renderers/index.d.ts +0 -1
  9. package/types/cell-renderers-next/background-cell/BackgroundCell.d.ts +2 -2
  10. package/types/cell-renderers-next/background-cell/BackgroundCellConfigurationEditor.d.ts +4 -0
  11. package/types/cell-renderers-next/background-cell/index.d.ts +1 -0
  12. package/types/cell-renderers-next/background-cell/useDirection.d.ts +2 -2
  13. package/types/column-expression-input/column-function-descriptors.d.ts +1 -1
  14. package/types/column-expression-input/useColumnExpressionSuggestionProvider.d.ts +1 -1
  15. package/types/column-expression-panel/ColumnExpressionPanel.d.ts +1 -1
  16. package/types/column-expression-panel/useColumnExpression.d.ts +1 -1
  17. package/types/column-formatting-settings/ColumnFormattingPanel.d.ts +4 -6
  18. package/types/column-formatting-settings/NumericFormattingSettings.d.ts +2 -2
  19. package/types/column-list/ColumnList.d.ts +1 -1
  20. package/types/column-settings/ColumnNameLabel.d.ts +1 -1
  21. package/types/column-settings/ColumnSettingsPanel.d.ts +1 -1
  22. package/types/column-settings/useColumnSettings.d.ts +4 -6
  23. package/types/table-settings/TableSettingsPanel.d.ts +1 -1
  24. package/types/table-settings/useTableSettings.d.ts +1 -1
  25. package/types/useTableAndColumnSettings.d.ts +2 -2
  26. package/types/cell-renderers/background-cell/BackgroundCell.d.ts +0 -2
  27. package/types/cell-renderers/background-cell/index.d.ts +0 -1
  28. package/types/cell-renderers/background-cell/useDirection.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
1
+ import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
2
  import { VuuTable } from "@vuu-ui/vuu-protocol-types";
3
3
  import { IExpressionSuggestionProvider } from "@vuu-ui/vuu-table-extras";
4
4
  export interface SuggestionProviderHookProps {
@@ -1,4 +1,4 @@
1
- import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
1
+ import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
2
  import { HTMLAttributes } from "react";
3
3
  import { ColumnSettingsProps } from "../column-settings";
4
4
  export interface ColumnExpressionPanelProps extends HTMLAttributes<HTMLDivElement>, Pick<ColumnSettingsProps, "tableConfig" | "vuuTable"> {
@@ -1,4 +1,4 @@
1
- import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
1
+ import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
2
  import { FormEventHandler } from "react";
3
3
  import { ColumnExpressionPanelProps } from "./ColumnExpressionPanel";
4
4
  export type ColumnExpressionHookProps = Pick<ColumnExpressionPanelProps, "column" | "onChangeName">;
@@ -1,12 +1,10 @@
1
- import { ColumnDescriptor, TypeFormatting } from "@vuu-ui/vuu-datagrid-types";
2
- import { SingleSelectionHandler } from "@vuu-ui/vuu-ui-controls";
1
+ import { ColumnDescriptor, ColumnTypeFormatting, ColumnTypeRendering } from "@vuu-ui/vuu-table-types";
3
2
  import { CellRendererDescriptor } from "@vuu-ui/vuu-utils";
4
3
  import { HTMLAttributes } from "react";
5
4
  export interface ColumnFormattingPanelProps extends HTMLAttributes<HTMLDivElement> {
6
5
  availableRenderers: CellRendererDescriptor[];
7
- selectedCellRenderer?: CellRendererDescriptor;
8
6
  column: ColumnDescriptor;
9
- onChangeFormatting: (formatting: TypeFormatting) => void;
10
- onChangeRenderer: SingleSelectionHandler<CellRendererDescriptor>;
7
+ onChangeFormatting: (formatting: ColumnTypeFormatting) => void;
8
+ onChangeRendering: (renderProps: ColumnTypeRendering) => void;
11
9
  }
12
- export declare const ColumnFormattingPanel: ({ availableRenderers, selectedCellRenderer, className, column, onChangeFormatting, onChangeRenderer, ...htmlAttributes }: ColumnFormattingPanelProps) => JSX.Element;
10
+ export declare const ColumnFormattingPanel: ({ availableRenderers, className, column, onChangeFormatting, onChangeRendering, ...htmlAttributes }: ColumnFormattingPanelProps) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { ColumnDescriptor, TypeFormatting } from "@vuu-ui/vuu-datagrid-types";
2
+ import { ColumnDescriptor, ColumnTypeFormatting } from "@vuu-ui/vuu-table-types";
3
3
  export interface NumericFormattingSettingsProps {
4
4
  column: ColumnDescriptor;
5
- onChange: (formatting: TypeFormatting) => void;
5
+ onChange: (formatting: ColumnTypeFormatting) => void;
6
6
  }
7
7
  export declare const NumericFormattingSettings: ({ column, onChange, }: NumericFormattingSettingsProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { ListProps } from "@vuu-ui/vuu-ui-controls";
2
- import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
2
+ import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
3
3
  import { HTMLAttributes } from "react";
4
4
  import { ColumnItem } from "../table-settings";
5
5
  import "./ColumnList.css";
@@ -1,4 +1,4 @@
1
- import { ColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
1
+ import { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
2
2
  import "./ColumnNameLabel.css";
3
3
  import { MouseEventHandler } from "react";
4
4
  export interface ColumnNameLabelProps {
@@ -1,4 +1,4 @@
1
- import { ColumnDescriptor, TableConfig } from "@vuu-ui/vuu-datagrid-types";
1
+ import { ColumnDescriptor, TableConfig } from "@vuu-ui/vuu-table-types";
2
2
  import { VuuTable } from "@vuu-ui/vuu-protocol-types";
3
3
  import { HTMLAttributes } from "react";
4
4
  import "./ColumnSettingsPanel.css";
@@ -1,20 +1,18 @@
1
- import { ColumnDescriptor, TypeFormatting } from "@vuu-ui/vuu-datagrid-types";
2
- import { CellRendererDescriptor } from "@vuu-ui/vuu-utils";
3
- import { SingleSelectionHandler } from "@vuu-ui/vuu-ui-controls";
1
+ import { ColumnDescriptor, ColumnTypeFormatting } from "@vuu-ui/vuu-table-types";
2
+ import { CellRendererDescriptor, ColumnRenderPropsChangeHandler } from "@vuu-ui/vuu-utils";
4
3
  import { FormEventHandler } from "react";
5
4
  import { ColumnSettingsProps } from "./ColumnSettingsPanel";
6
5
  export declare const useColumnSettings: ({ column: columnProp, onCancelCreateColumn, onConfigChange, onCreateCalculatedColumn, tableConfig, }: Omit<ColumnSettingsProps, "vuuTable">) => {
7
6
  availableRenderers: CellRendererDescriptor[];
8
7
  editCalculatedColumn: boolean;
9
- selectedCellRenderer: CellRendererDescriptor | undefined;
10
8
  column: ColumnDescriptor;
11
9
  navigateNextColumn: () => void;
12
10
  navigatePrevColumn: () => void;
13
11
  onCancel: () => void;
14
12
  onChange: FormEventHandler<Element>;
15
13
  onChangeCalculatedColumnName: (name: string) => void;
16
- onChangeFormatting: (formatting: TypeFormatting) => void;
17
- onChangeRenderer: SingleSelectionHandler<CellRendererDescriptor>;
14
+ onChangeFormatting: (formatting: ColumnTypeFormatting) => void;
15
+ onChangeRendering: ColumnRenderPropsChangeHandler;
18
16
  onEditCalculatedColumn: () => void;
19
17
  onInputCommit: () => void;
20
18
  onSave: () => void;
@@ -1,5 +1,5 @@
1
1
  import { DataSourceConfig, SchemaColumn } from "@vuu-ui/vuu-data";
2
- import { TableConfig } from "@vuu-ui/vuu-datagrid-types";
2
+ import { TableConfig } from "@vuu-ui/vuu-table-types";
3
3
  import { HTMLAttributes } from "react";
4
4
  import "./TableSettingsPanel.css";
5
5
  export interface TableSettingsProps extends HTMLAttributes<HTMLDivElement> {
@@ -1,4 +1,4 @@
1
- import { ColumnDescriptor, TableConfig } from "@vuu-ui/vuu-datagrid-types";
1
+ import { ColumnDescriptor, TableConfig } from "@vuu-ui/vuu-table-types";
2
2
  import { MouseEvent, SyntheticEvent } from "react";
3
3
  import { ColumnChangeHandler } from "../column-list";
4
4
  import { TableSettingsProps } from "./TableSettingsPanel";
@@ -1,6 +1,6 @@
1
1
  import { DataSourceConfig, SchemaColumn } from "@vuu-ui/vuu-data";
2
- import { ColumnDescriptor, TableConfig } from "@vuu-ui/vuu-datagrid-types";
3
- import { ColumnActionColumnSettings } from "@vuu-ui/vuu-table/src/table-next/useTableModel";
2
+ import { ColumnDescriptor, TableConfig } from "@vuu-ui/vuu-table-types";
3
+ import { ColumnActionColumnSettings } from "@vuu-ui/vuu-table";
4
4
  export interface TableAndColumnSettingsHookProps {
5
5
  availableColumns: SchemaColumn[];
6
6
  onAvailableColumnsChange?: (columns: SchemaColumn[]) => void;
@@ -1,2 +0,0 @@
1
- import "./BackgroundCell.css";
2
- import "./FlashingBackground.css";
@@ -1 +0,0 @@
1
- export * from "./BackgroundCell";
@@ -1,3 +0,0 @@
1
- import { KeyedColumnDescriptor } from "@vuu-ui/vuu-datagrid-types";
2
- import { valueChangeDirection } from "@vuu-ui/vuu-utils";
3
- export declare function useDirection(key: string, value: unknown, column: KeyedColumnDescriptor): valueChangeDirection;