@vuu-ui/vuu-table-extras 3.3.9 → 3.3.10

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 (87) hide show
  1. package/package.json +12 -12
  2. package/src/csv-upload/CsvUpload.js +9 -6
  3. package/types/src/calculated-column/CalculatedColumnPanel.d.ts +12 -0
  4. package/types/src/calculated-column/useCalculatedColumnPanel.d.ts +10 -0
  5. package/types/src/calculated-column/useEditCalculatedColumn.d.ts +13 -0
  6. package/types/src/cell-edit-validators/CaseValidator.d.ts +2 -0
  7. package/types/src/cell-edit-validators/PatternValidator.d.ts +2 -0
  8. package/types/src/cell-edit-validators/index.d.ts +2 -0
  9. package/types/src/cell-renderers/background-cell/BackgroundCell.d.ts +2 -0
  10. package/types/src/cell-renderers/background-cell/BackgroundCellConfigurationEditor.d.ts +2 -0
  11. package/types/src/cell-renderers/background-cell/index.d.ts +2 -0
  12. package/types/src/cell-renderers/background-cell/useDirection.d.ts +3 -0
  13. package/types/src/cell-renderers/button-cell/IconButtonCell.d.ts +6 -0
  14. package/types/src/cell-renderers/dropdown-cell/DropdownCell.d.ts +2 -0
  15. package/types/src/cell-renderers/dropdown-cell/index.d.ts +1 -0
  16. package/types/src/cell-renderers/index.d.ts +6 -0
  17. package/types/src/cell-renderers/lookup-cell/LookupCell.d.ts +2 -0
  18. package/types/src/cell-renderers/lookup-cell/index.d.ts +1 -0
  19. package/types/src/cell-renderers/pct-progress-cell/PctProgressCell.d.ts +2 -0
  20. package/types/src/cell-renderers/pct-progress-cell/index.d.ts +1 -0
  21. package/types/src/cell-renderers/progress-cell/ProgressCell.d.ts +1 -0
  22. package/types/src/cell-renderers/progress-cell/index.d.ts +1 -0
  23. package/types/src/column-expression-input/ColumnExpressionInput.d.ts +10 -0
  24. package/types/src/column-expression-input/column-function-descriptors.d.ts +15 -0
  25. package/types/src/column-expression-input/column-language-parser/ColumnExpressionLanguage.d.ts +2 -0
  26. package/types/src/column-expression-input/column-language-parser/ColumnExpressionTreeWalker.d.ts +57 -0
  27. package/types/src/column-expression-input/column-language-parser/column-expression-parse-utils.d.ts +5 -0
  28. package/types/src/column-expression-input/column-language-parser/generated/column-parser.d.ts +2 -0
  29. package/types/src/column-expression-input/column-language-parser/generated/column-parser.terms.d.ts +1 -0
  30. package/types/src/column-expression-input/column-language-parser/index.d.ts +3 -0
  31. package/types/src/column-expression-input/column-language-parser/test.d.mts +1 -0
  32. package/types/src/column-expression-input/functionDocInfo.d.ts +2 -0
  33. package/types/src/column-expression-input/highlighting.d.ts +1 -0
  34. package/types/src/column-expression-input/index.d.ts +4 -0
  35. package/types/src/column-expression-input/theme.d.ts +1 -0
  36. package/types/src/column-expression-input/useColumnAutoComplete.d.ts +6 -0
  37. package/types/src/column-expression-input/useColumnExpressionEditor.d.ts +25 -0
  38. package/types/src/column-expression-input/useColumnExpressionSuggestionProvider.d.ts +8 -0
  39. package/types/src/column-formatting-settings/BaseNumericFormattingSettings.d.ts +2 -0
  40. package/types/src/column-formatting-settings/ColumnFormattingPanel.d.ts +9 -0
  41. package/types/src/column-formatting-settings/DateTimeFormattingSettings.d.ts +3 -0
  42. package/types/src/column-formatting-settings/LongTypeFormattingSettings.d.ts +3 -0
  43. package/types/src/column-formatting-settings/index.d.ts +3 -0
  44. package/types/src/column-menu/ColumnMenu.d.ts +10 -0
  45. package/types/src/column-menu/column-action-types.d.ts +11 -0
  46. package/types/src/column-menu/column-menu-utils.d.ts +19 -0
  47. package/types/src/column-menu/useColumnActions.d.ts +16 -0
  48. package/types/src/column-picker/ColumnModel.d.ts +81 -0
  49. package/types/src/column-picker/ColumnPicker.d.ts +10 -0
  50. package/types/src/column-picker/ColumnPickerAction.d.ts +5 -0
  51. package/types/src/column-picker/useColumnPicker.d.ts +16 -0
  52. package/types/src/column-picker/useTableColumnPicker.d.ts +7 -0
  53. package/types/src/column-picker/useTableColumnPickerDeprecated.d.ts +14 -0
  54. package/types/src/column-settings-panel/ColumnNameLabel.d.ts +7 -0
  55. package/types/src/column-settings-panel/ColumnSettingsPanel.d.ts +5 -0
  56. package/types/src/column-settings-panel/useColumnSettings.d.ts +30 -0
  57. package/types/src/csv-export/export-utils.d.ts +42 -0
  58. package/types/src/csv-export/index.d.ts +2 -0
  59. package/types/src/csv-export/useCsvExport.d.ts +14 -0
  60. package/types/src/csv-upload/CsvUpload.d.ts +68 -0
  61. package/types/src/csv-upload/data-upload-preview/DataUploadPreview.d.ts +10 -0
  62. package/types/src/csv-upload/data-upload-preview/useDataUploadPreview.d.ts +17 -0
  63. package/types/src/csv-upload/index.d.ts +7 -0
  64. package/types/src/csv-upload/parse/csv-constants.d.ts +3 -0
  65. package/types/src/csv-upload/parse/csv-errors.d.ts +46 -0
  66. package/types/src/csv-upload/parse/csv-parse.d.ts +11 -0
  67. package/types/src/csv-upload/parse/csv-schema-validation.d.ts +16 -0
  68. package/types/src/csv-upload/parse/csv-upload-utils.d.ts +21 -0
  69. package/types/src/csv-upload/parse/index.d.ts +5 -0
  70. package/types/src/csv-upload/useCsvUpload.d.ts +42 -0
  71. package/types/src/datasource-stats/DatasourceStats.d.ts +17 -0
  72. package/types/src/datasource-stats/useDatasourceStats.d.ts +15 -0
  73. package/types/src/freeze-control/FreezeControl.d.ts +15 -0
  74. package/types/src/freeze-control/FrozenBanner.d.ts +6 -0
  75. package/types/src/freeze-control/freezeControlBadge.d.ts +11 -0
  76. package/types/src/freeze-control/useFreezeControl.d.ts +10 -0
  77. package/types/src/index.d.ts +26 -0
  78. package/types/src/inline-add-row/InlineAddRow.d.ts +3 -0
  79. package/types/src/inline-add-row/index.d.ts +2 -0
  80. package/types/src/inline-add-row/useInlineAddRow.d.ts +59 -0
  81. package/types/src/tabbed-table-config-panel/TabbedTableConfigPanel.d.ts +17 -0
  82. package/types/src/tabbed-table-config-panel/TabbedTableSettingsAction.d.ts +7 -0
  83. package/types/src/tabbed-table-config-panel/useTabbedTableConfigPanel.d.ts +13 -0
  84. package/types/src/table-footer/TableFooter.d.ts +10 -0
  85. package/types/src/table-provider/TableProvider.d.ts +18 -0
  86. package/types/src/table-settings-panel/TableSettingsPanel.d.ts +22 -0
  87. package/types/src/table-settings-panel/useTableSettings.d.ts +14 -0
@@ -0,0 +1,18 @@
1
+ import type { MenuActionHandler } from "@vuu-ui/vuu-context-menu";
2
+ import type { DataSource } from "@vuu-ui/vuu-data-types";
3
+ import type { TableProps } from "@vuu-ui/vuu-table";
4
+ import type { ColumnDescriptor } from "@vuu-ui/vuu-table-types";
5
+ import { ReactNode } from "react";
6
+ import type { ColumnMenuActionType } from "../column-menu/column-menu-utils";
7
+ export interface TableContextProps extends Pick<TableProps, "dataSource" | "rowActionHandlers"> {
8
+ menuActionHandler: MenuActionHandler<ColumnMenuActionType, ColumnDescriptor>;
9
+ }
10
+ export declare const TableContext: import("react").Context<TableContextProps>;
11
+ export declare const TableProvider: ({ children, dataSource, menuActionHandler, rowActionHandlers, }: TableContextProps & {
12
+ children: ReactNode;
13
+ }) => import("react").JSX.Element;
14
+ export declare function useTableContext(throwIfNoDataSource?: boolean): {
15
+ dataSource: DataSource;
16
+ menuActionHandler: MenuActionHandler<ColumnMenuActionType, ColumnDescriptor>;
17
+ };
18
+ export declare const useRowAction: (actionId: string) => import("@vuu-ui/vuu-table-types").RowActionHandler;
@@ -0,0 +1,22 @@
1
+ import { TableDisplayAttributes, TableSettingsPermissions } from "@vuu-ui/vuu-table-types";
2
+ export declare const defaultTableSettingsPermissions: Readonly<TableSettingsPermissions>;
3
+ export declare const noTableSettingsPermissions: Readonly<TableSettingsPermissions>;
4
+ export type TableDisplayAttributeChangeHandler = (displayAttributes: TableDisplayAttributes) => void;
5
+ /**
6
+ * Describes the props for a Table Configuration Editor, for which
7
+ * an implementation is provided in vuu-table-extras
8
+ */
9
+ export interface TableSettingsPanelProps {
10
+ allowColumnLabelCase?: boolean;
11
+ allowColumnDefaultWidth?: boolean;
12
+ allowGridRowStyling?: boolean;
13
+ onDisplayAttributeChange: TableDisplayAttributeChangeHandler;
14
+ tableDisplayAttributes: TableDisplayAttributes;
15
+ permissions?: TableSettingsPermissions | boolean;
16
+ }
17
+ /**
18
+ The TableSettingsPanel assumes 'ownership' of the tableSettings.
19
+ It updates the settings in state locally and notifies caller of
20
+ every change via onChange callback
21
+ */
22
+ export declare const TableSettingsPanel: ({ onDisplayAttributeChange, tableDisplayAttributes: tableDisplayAttributesProp, permissions: permissionsProp, }: TableSettingsPanelProps) => import("react").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { TableDisplayAttributes } from "@vuu-ui/vuu-table-types";
2
+ import { CommitHandler } from "@vuu-ui/vuu-utils";
3
+ import { MouseEvent, SyntheticEvent } from "react";
4
+ import { TableSettingsPanelProps } from "./TableSettingsPanel";
5
+ export type ColumnLike = {
6
+ name: string;
7
+ };
8
+ export declare const useTableSettings: ({ onDisplayAttributeChange, tableDisplayAttributes: tableDisplayAttributesProp, }: TableSettingsPanelProps) => {
9
+ columnLabelsValue: number;
10
+ onChangeColumnLabels: (evt: SyntheticEvent) => void;
11
+ onChangeTableAttribute: (evt: MouseEvent<HTMLButtonElement>) => void;
12
+ onCommitColumnWidth: CommitHandler;
13
+ tableDisplayAttributes: TableDisplayAttributes;
14
+ };