@stenajs-webui/grid 17.5.0 → 17.8.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/CHANGELOG.md +38 -0
- package/dist/components/GridHooksTable.d.ts +26 -26
- package/dist/config/TableConfig.d.ts +11 -11
- package/dist/features/grid-cell/hooks/UseEditableCell.d.ts +59 -59
- package/dist/features/grid-cell/hooks/UseGridCell.d.ts +64 -64
- package/dist/features/grid-cell/hooks/UseGridNavigation.d.ts +82 -82
- package/dist/features/grid-cell/hooks/UseGridNavigationOptionsFromContext.d.ts +2 -2
- package/dist/features/grid-cell/hooks/UseRevertableValue.d.ts +9 -9
- package/dist/features/{standard-table/features/sorting/__tests__/MultitypeComparator.test.d.ts → grid-cell/hooks/__tests__/TextInput.test.d.ts} +1 -1
- package/dist/features/standard-table/components/ColGroups.d.ts +5 -5
- package/dist/features/standard-table/components/StandardTable.d.ts +82 -82
- package/dist/features/standard-table/components/StandardTableCell.d.ts +11 -11
- package/dist/features/standard-table/components/StandardTableCellUi.d.ts +17 -17
- package/dist/features/standard-table/components/StandardTableContent.d.ts +7 -7
- package/dist/features/standard-table/components/StandardTableHeadItem.d.ts +9 -9
- package/dist/features/standard-table/components/StandardTableHeadRow.d.ts +7 -7
- package/dist/features/standard-table/components/StandardTableRow.d.ts +12 -12
- package/dist/features/standard-table/components/StandardTableRowExpansion.d.ts +6 -6
- package/dist/features/standard-table/components/StandardTableRowList.d.ts +10 -10
- package/dist/features/standard-table/components/TextCell.d.ts +6 -6
- package/dist/features/standard-table/components/TrWithHoverBackground.d.ts +11 -11
- package/dist/features/standard-table/config/StandardTableColumnConfig.d.ts +154 -154
- package/dist/features/standard-table/config/StandardTableColumnGroupConfig.d.ts +11 -11
- package/dist/features/standard-table/config/StandardTableConfig.d.ts +152 -152
- package/dist/features/standard-table/config/StandardTableInfiniteConfig.d.ts +2 -2
- package/dist/features/standard-table/context/GroupConfigsAndIdsForRowsContext.d.ts +5 -5
- package/dist/features/standard-table/context/OnKeyDownContext.d.ts +4 -4
- package/dist/features/standard-table/context/StandardTableColumnOrderContext.d.ts +4 -4
- package/dist/features/standard-table/context/StandardTableStateContext.d.ts +21 -21
- package/dist/features/standard-table/context/StandardTableVariantContext.d.ts +4 -4
- package/dist/features/standard-table/context/StickyPropsPerColumnContext.d.ts +4 -4
- package/dist/features/standard-table/context/TotalNumColumnsContext.d.ts +3 -3
- package/dist/features/standard-table/features/checkboxes/StandardTableRowCheckbox.d.ts +13 -13
- package/dist/features/standard-table/features/checkboxes/UseRowCheckbox.d.ts +5 -5
- package/dist/features/standard-table/features/checkboxes/UseTableHeadCheckbox.d.ts +5 -5
- package/dist/features/standard-table/features/column-groups/ColumnGroupFactory.d.ts +7 -7
- package/dist/features/standard-table/features/column-groups/ColumnGroupRow.d.ts +6 -6
- package/dist/features/standard-table/features/column-groups/ColumnInGroup.d.ts +12 -12
- package/dist/features/standard-table/features/column-groups/StickyHeaderPropsFactory.d.ts +2 -2
- package/dist/features/standard-table/features/column-index-per-column-id/ColumnIndexCalculator.d.ts +7 -7
- package/dist/features/standard-table/features/column-index-per-column-id/ColumnIndexPerColumnIdContext.d.ts +4 -4
- package/dist/features/standard-table/features/expand-collapse/StandardTableRowExpandButton.d.ts +9 -9
- package/dist/features/standard-table/features/expand-collapse/UseExpandCollapseActions.d.ts +4 -4
- package/dist/features/standard-table/features/expand-collapse/UseTableHeadExpandCollapse.d.ts +4 -4
- package/dist/features/standard-table/features/sorting/MultitypeComparator.d.ts +3 -3
- package/dist/features/standard-table/features/sorting/UseTableSortHeader.d.ts +9 -9
- package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupOffsetCalculator.d.ts +10 -10
- package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupValidator.d.ts +4 -4
- package/dist/features/standard-table/features/sticky-columns/StickyPropsPerColumnCalculator.d.ts +5 -5
- package/dist/features/standard-table/features/sticky-columns/types.d.ts +11 -11
- package/dist/features/standard-table/features/summary-row/SummaryCellColSpanCalculator.d.ts +7 -7
- package/dist/features/standard-table/features/summary-row/SummaryRowVisibilityCalculator.d.ts +3 -3
- package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts +6 -6
- package/dist/features/standard-table/features/summary-row/components/SummaryCell.d.ts +10 -10
- package/dist/features/standard-table/features/summary-row/components/SummaryRowSwitcher.d.ts +6 -6
- package/dist/features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCell.d.ts +2 -2
- package/dist/features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCellWithStatus.d.ts +3 -3
- package/dist/features/standard-table/hooks/UseCellBackground.d.ts +3 -3
- package/dist/features/standard-table/hooks/UseColumnConfigById.d.ts +4 -4
- package/dist/features/standard-table/hooks/UseColumnValueResolver.d.ts +1 -1
- package/dist/features/standard-table/hooks/UseLocalStateTableContext.d.ts +5 -5
- package/dist/features/standard-table/hooks/UseStandardTableConfig.d.ts +7 -7
- package/dist/features/standard-table/redux/ReducerIdFactory.d.ts +3 -3
- package/dist/features/standard-table/redux/StandardTableActionsAndSelectors.d.ts +19 -19
- package/dist/features/standard-table/redux/StandardTableReducer.d.ts +15 -15
- package/dist/features/standard-table/stories/StandardTableStoryHelper.d.ts +18 -18
- package/dist/features/standard-table/types/StandardTableOnKeyDown.d.ts +3 -3
- package/dist/features/standard-table/util/ActionsFactory.d.ts +14 -14
- package/dist/features/standard-table/util/CellBorderCalculator.d.ts +2 -2
- package/dist/features/standard-table/util/ColumnCounter.d.ts +2 -2
- package/dist/features/standard-table/util/FilterItemsOnEnabledCheckboxes.d.ts +2 -2
- package/dist/features/standard-table/util/IdListPartial.d.ts +1 -1
- package/dist/features/standard-table/util/LabelFormatter.d.ts +2 -2
- package/dist/features/table-ui/components/CrudStatusIndicator.d.ts +8 -8
- package/dist/features/table-ui/components/ModifiedField.d.ts +11 -11
- package/dist/features/table-ui/components/cells/EditableTextCellWithCrudAndModified.d.ts +19 -19
- package/dist/features/table-ui/components/table/SmallTableCell.d.ts +6 -6
- package/dist/features/table-ui/components/table/SmallTableHead.d.ts +6 -6
- package/dist/features/table-ui/components/table/SortOrderIcon.d.ts +11 -11
- package/dist/features/table-ui/components/table/TableCell.d.ts +5 -5
- package/dist/features/table-ui/components/table/TableColumnGroupHead.d.ts +10 -10
- package/dist/features/table-ui/components/table/TableHeadItem.d.ts +16 -16
- package/dist/features/table-ui/components/table/TableHeadRow.d.ts +7 -7
- package/dist/features/table-ui/components/table/TableRow.d.ts +7 -7
- package/dist/features/table-ui/hooks/UseSortOrderColumnHead.d.ts +11 -11
- package/dist/index.d.ts +49 -49
- package/dist/index.es.js +2722 -2236
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +9 -2348
- package/dist/index.js.map +1 -1
- package/dist/storybook-helpers/storybook-controls.d.ts +46 -46
- package/dist/util/DirectionCalculator.d.ts +8 -8
- package/dist/util/DomIdValidator.d.ts +1 -1
- package/dist/util/GridHookOptionsValidator.d.ts +3 -3
- package/dist/util/NumberBoundsWrapper.d.ts +3 -3
- package/dist/util/bounds/NumberBoundsWrapper.d.ts +9 -9
- package/package.json +12 -13
- package/dist/features/standard-table/features/sticky-columns/__tests__/StickyColumnGroupOffsetCalculator.test.d.ts +0 -1
- package/dist/features/standard-table/features/sticky-columns/__tests__/StickyColumnGroupValidator.test.d.ts +0 -1
- package/dist/features/standard-table/features/summary-row/__tests__/SummaryCellColSpanCalculator.test.d.ts +0 -1
- package/dist/features/standard-table/stories/ExpandableRows.stories.d.ts +0 -8
- package/dist/features/standard-table/stories/FewColumns.stories.d.ts +0 -8
- package/dist/features/standard-table/stories/Fields.stories.d.ts +0 -9
- package/dist/features/standard-table/stories/GroupedColumns.stories.d.ts +0 -8
- package/dist/features/standard-table/stories/Sorting.stories.d.ts +0 -8
- package/dist/features/standard-table/stories/StandardTable.stories.d.ts +0 -13
- package/dist/features/standard-table/stories/StandardTableHorror.stories.d.ts +0 -35
- package/dist/features/standard-table/stories/States.stories.d.ts +0 -10
- package/dist/features/standard-table/stories/Sticky.stories.d.ts +0 -11
- package/dist/features/standard-table/stories/Waitlist.stories.d.ts +0 -6
- package/dist/features/standard-table/util/__tests__/IdListPartial.test.d.ts +0 -1
- package/dist/features/table-ui/stories/TableUi.stories.d.ts +0 -7
- package/dist/util/bounds/__tests__/NumberBoundsWrapper.test.d.ts +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StandardTableOnKeyDown } from "../types/StandardTableOnKeyDown";
|
|
3
|
-
export declare const OnKeyDownContext: import("react").Context<StandardTableOnKeyDown<any, any> | undefined>;
|
|
4
|
-
export declare const useOnKeyDownContext: <TItem, TColumnKey extends string>() => StandardTableOnKeyDown<TItem, TColumnKey>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StandardTableOnKeyDown } from "../types/StandardTableOnKeyDown";
|
|
3
|
+
export declare const OnKeyDownContext: import("react").Context<StandardTableOnKeyDown<any, any> | undefined>;
|
|
4
|
+
export declare const useOnKeyDownContext: <TItem, TColumnKey extends string>() => StandardTableOnKeyDown<TItem, TColumnKey>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StandardTableColumnGroupOrderContext: import("react").Context<string[] | undefined>;
|
|
3
|
-
export declare const StandardTableUsingColumnGroupsContext: import("react").Context<boolean>;
|
|
4
|
-
export declare const useColumnGroupOrderContext: <TColumnGroupKey extends string>() => TColumnGroupKey[];
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StandardTableColumnGroupOrderContext: import("react").Context<string[] | undefined>;
|
|
3
|
+
export declare const StandardTableUsingColumnGroupsContext: import("react").Context<boolean>;
|
|
4
|
+
export declare const useColumnGroupOrderContext: <TColumnGroupKey extends string>() => TColumnGroupKey[];
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { Dispatch } from "react";
|
|
2
|
-
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
3
|
-
import { StandardTableState } from "../redux/StandardTableReducer";
|
|
4
|
-
import { StandardTableAction, StandardTableActions } from "../util/ActionsFactory";
|
|
5
|
-
export interface StandardTableInternalActionsContext<TColumnKey extends string> {
|
|
6
|
-
dispatch: Dispatch<StandardTableAction<TColumnKey>>;
|
|
7
|
-
actions: StandardTableActions<TColumnKey>;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* A combination of dispatch, state and actions. This is used to
|
|
11
|
-
* connect the table to a state.
|
|
12
|
-
*/
|
|
13
|
-
export interface TableContext<TColumnKey extends string> {
|
|
14
|
-
dispatch: Dispatch<StandardTableAction<TColumnKey>>;
|
|
15
|
-
state: StandardTableState<TColumnKey>;
|
|
16
|
-
actions: StandardTableActions<TColumnKey>;
|
|
17
|
-
}
|
|
18
|
-
export declare const StandardTableTableIdContext: import("react").Context<string>;
|
|
19
|
-
export declare const StandardTableStateContext: import("react").Context<StandardTableState<any>>;
|
|
20
|
-
export declare const StandardTableActionsContext: import("react").Context<StandardTableInternalActionsContext<any>>;
|
|
21
|
-
export declare const StandardTableConfigContext: import("react").Context<StandardTableConfig<any, any, any>>;
|
|
1
|
+
import { Dispatch } from "react";
|
|
2
|
+
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
3
|
+
import { StandardTableState } from "../redux/StandardTableReducer";
|
|
4
|
+
import { StandardTableAction, StandardTableActions } from "../util/ActionsFactory";
|
|
5
|
+
export interface StandardTableInternalActionsContext<TColumnKey extends string> {
|
|
6
|
+
dispatch: Dispatch<StandardTableAction<TColumnKey>>;
|
|
7
|
+
actions: StandardTableActions<TColumnKey>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A combination of dispatch, state and actions. This is used to
|
|
11
|
+
* connect the table to a state.
|
|
12
|
+
*/
|
|
13
|
+
export interface TableContext<TColumnKey extends string> {
|
|
14
|
+
dispatch: Dispatch<StandardTableAction<TColumnKey>>;
|
|
15
|
+
state: StandardTableState<TColumnKey>;
|
|
16
|
+
actions: StandardTableActions<TColumnKey>;
|
|
17
|
+
}
|
|
18
|
+
export declare const StandardTableTableIdContext: import("react").Context<string>;
|
|
19
|
+
export declare const StandardTableStateContext: import("react").Context<StandardTableState<any>>;
|
|
20
|
+
export declare const StandardTableActionsContext: import("react").Context<StandardTableInternalActionsContext<any>>;
|
|
21
|
+
export declare const StandardTableConfigContext: import("react").Context<StandardTableConfig<any, any, any>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StandardTableVariant } from "../components/StandardTable";
|
|
3
|
-
export declare const StandardTableVariantContext: import("react").Context<StandardTableVariant>;
|
|
4
|
-
export declare const useStandardTableVariant: () => StandardTableVariant;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StandardTableVariant } from "../components/StandardTable";
|
|
3
|
+
export declare const StandardTableVariantContext: import("react").Context<StandardTableVariant>;
|
|
4
|
+
export declare const useStandardTableVariant: () => StandardTableVariant;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StickyPropsPerColumn } from "../features/sticky-columns/types";
|
|
3
|
-
export declare const StickyPropsPerColumnContext: import("react").Context<StickyPropsPerColumn<string>>;
|
|
4
|
-
export declare const useStickyPropsPerColumnContext: () => StickyPropsPerColumn<string>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StickyPropsPerColumn } from "../features/sticky-columns/types";
|
|
3
|
+
export declare const StickyPropsPerColumnContext: import("react").Context<StickyPropsPerColumn<string>>;
|
|
4
|
+
export declare const useStickyPropsPerColumnContext: () => StickyPropsPerColumn<string>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const TotalNumColumnsContext: import("react").Context<number>;
|
|
3
|
-
export declare const useTotalNumColumns: () => number;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const TotalNumColumnsContext: import("react").Context<number>;
|
|
3
|
+
export declare const useTotalNumColumns: () => number;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { CheckboxProps } from "@stenajs-webui/forms";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { RefObject } from "react";
|
|
4
|
-
interface Props extends Pick<CheckboxProps, "value" | "onValueChange"> {
|
|
5
|
-
colIndex: number;
|
|
6
|
-
rowIndex: number;
|
|
7
|
-
numRows: number;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
onValueChangeAndShift: CheckboxProps["onValueChange"];
|
|
10
|
-
shiftPressedRef: RefObject<boolean>;
|
|
11
|
-
}
|
|
12
|
-
export declare const StandardTableRowCheckbox: React.FC<Props>;
|
|
13
|
-
export {};
|
|
1
|
+
import { CheckboxProps } from "@stenajs-webui/forms";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { RefObject } from "react";
|
|
4
|
+
interface Props extends Pick<CheckboxProps, "value" | "onValueChange"> {
|
|
5
|
+
colIndex: number;
|
|
6
|
+
rowIndex: number;
|
|
7
|
+
numRows: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onValueChangeAndShift: CheckboxProps["onValueChange"];
|
|
10
|
+
shiftPressedRef: RefObject<boolean>;
|
|
11
|
+
}
|
|
12
|
+
export declare const StandardTableRowCheckbox: React.FC<Props>;
|
|
13
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useRowCheckbox: <TItem>(item: TItem, idListForEnabledItems: Array<string>) => {
|
|
2
|
-
isSelected: boolean;
|
|
3
|
-
toggleSelected: () => void;
|
|
4
|
-
shiftAndToggleSelected: () => void;
|
|
5
|
-
};
|
|
1
|
+
export declare const useRowCheckbox: <TItem>(item: TItem, idListForEnabledItems: Array<string>) => {
|
|
2
|
+
isSelected: boolean;
|
|
3
|
+
toggleSelected: () => void;
|
|
4
|
+
shiftAndToggleSelected: () => void;
|
|
5
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const useTableHeadCheckbox: <TItem>(items: TItem[] | undefined) => {
|
|
2
|
-
selectionIsEmpty: boolean;
|
|
3
|
-
allItemsAreSelected: boolean;
|
|
4
|
-
onClickCheckbox: () => void;
|
|
5
|
-
};
|
|
1
|
+
export declare const useTableHeadCheckbox: <TItem>(items: TItem[] | undefined) => {
|
|
2
|
+
selectionIsEmpty: boolean;
|
|
3
|
+
allItemsAreSelected: boolean;
|
|
4
|
+
onClickCheckbox: () => void;
|
|
5
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StandardTableColumnGroupConfig } from "../../config/StandardTableColumnGroupConfig";
|
|
2
|
-
import { StandardTableConfigWithGroups, StandardTableConfigWithNoGroups } from "../../config/StandardTableConfig";
|
|
3
|
-
export interface GroupConfigAndId<TColumnKey extends string> {
|
|
4
|
-
groupId: string;
|
|
5
|
-
groupConfig: StandardTableColumnGroupConfig<TColumnKey>;
|
|
6
|
-
}
|
|
7
|
-
export declare const createGroupConfigAndIdsForRows: <TItem, TColumnKey extends string, TColumnGroupKey extends string>(columnGroups: Record<TColumnGroupKey, StandardTableColumnGroupConfig<TColumnKey>> | undefined, columnGroupOrder: TColumnGroupKey[] | undefined, columnOrder: TColumnKey[] | undefined) => GroupConfigAndId<TColumnKey>[];
|
|
1
|
+
import { StandardTableColumnGroupConfig } from "../../config/StandardTableColumnGroupConfig";
|
|
2
|
+
import { StandardTableConfigWithGroups, StandardTableConfigWithNoGroups } from "../../config/StandardTableConfig";
|
|
3
|
+
export interface GroupConfigAndId<TColumnKey extends string> {
|
|
4
|
+
groupId: string;
|
|
5
|
+
groupConfig: StandardTableColumnGroupConfig<TColumnKey>;
|
|
6
|
+
}
|
|
7
|
+
export declare const createGroupConfigAndIdsForRows: <TItem, TColumnKey extends string, TColumnGroupKey extends string>(columnGroups: Record<TColumnGroupKey, StandardTableColumnGroupConfig<TColumnKey>> | undefined, columnGroupOrder: TColumnGroupKey[] | undefined, columnOrder: TColumnKey[] | undefined) => GroupConfigAndId<TColumnKey>[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface ColumnGroupRowProps {
|
|
3
|
-
height?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const ColumnGroupRow: React.NamedExoticComponent<ColumnGroupRowProps>;
|
|
6
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface ColumnGroupRowProps {
|
|
3
|
+
height?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const ColumnGroupRow: React.NamedExoticComponent<ColumnGroupRowProps>;
|
|
6
|
+
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { StandardTableColumnGroupConfig } from "../../config/StandardTableColumnGroupConfig";
|
|
3
|
-
interface ColumnGroupColumnItemProps<TColumnKey extends string> {
|
|
4
|
-
groupConfig: StandardTableColumnGroupConfig<TColumnKey>;
|
|
5
|
-
columnId: TColumnKey;
|
|
6
|
-
isFirstGroup: boolean;
|
|
7
|
-
isLastGroup: boolean;
|
|
8
|
-
borderFromGroup?: string;
|
|
9
|
-
colSpan: number;
|
|
10
|
-
}
|
|
11
|
-
export declare const ColumnInGroup: <TColumnKey extends string>({ columnId, groupConfig, borderFromGroup, colSpan, isFirstGroup, isLastGroup, }: ColumnGroupColumnItemProps<TColumnKey>) => JSX.Element;
|
|
12
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StandardTableColumnGroupConfig } from "../../config/StandardTableColumnGroupConfig";
|
|
3
|
+
interface ColumnGroupColumnItemProps<TColumnKey extends string> {
|
|
4
|
+
groupConfig: StandardTableColumnGroupConfig<TColumnKey>;
|
|
5
|
+
columnId: TColumnKey;
|
|
6
|
+
isFirstGroup: boolean;
|
|
7
|
+
isLastGroup: boolean;
|
|
8
|
+
borderFromGroup?: string;
|
|
9
|
+
colSpan: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const ColumnInGroup: <TColumnKey extends string>({ columnId, groupConfig, borderFromGroup, colSpan, isFirstGroup, isLastGroup, }: ColumnGroupColumnItemProps<TColumnKey>) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CSSProperties } from "react";
|
|
2
|
-
export declare const createStickyHeaderProps: (stickyHeader: boolean | undefined, stickyColumn: boolean | undefined, headerRowOffsetTop: string | undefined, zIndexFromConfig: number | undefined) => CSSProperties;
|
|
1
|
+
import { CSSProperties } from "react";
|
|
2
|
+
export declare const createStickyHeaderProps: (stickyHeader: boolean | undefined, stickyColumn: boolean | undefined, headerRowOffsetTop: string | undefined, zIndexFromConfig: number | undefined) => CSSProperties;
|
package/dist/features/standard-table/features/column-index-per-column-id/ColumnIndexCalculator.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StandardTableConfig } from "../../config/StandardTableConfig";
|
|
2
|
-
export declare type ColumnIndexPerColumnId<TColumnKey extends string> = Record<TColumnKey, number>;
|
|
3
|
-
export interface ColumnIndexPerColumnIdCalculationResult<TColumnKey extends string> {
|
|
4
|
-
columnIndexPerColumnId: ColumnIndexPerColumnId<TColumnKey>;
|
|
5
|
-
numNavigableColumns: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const calculateColumnIndexPerColumnId: <TItem, TColumnKey extends string, TColumnGroupKey extends string>(config: StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>) => ColumnIndexPerColumnIdCalculationResult<TColumnKey>;
|
|
1
|
+
import { StandardTableConfig } from "../../config/StandardTableConfig";
|
|
2
|
+
export declare type ColumnIndexPerColumnId<TColumnKey extends string> = Record<TColumnKey, number>;
|
|
3
|
+
export interface ColumnIndexPerColumnIdCalculationResult<TColumnKey extends string> {
|
|
4
|
+
columnIndexPerColumnId: ColumnIndexPerColumnId<TColumnKey>;
|
|
5
|
+
numNavigableColumns: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const calculateColumnIndexPerColumnId: <TItem, TColumnKey extends string, TColumnGroupKey extends string>(config: StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>) => ColumnIndexPerColumnIdCalculationResult<TColumnKey>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ColumnIndexPerColumnIdCalculationResult } from "./ColumnIndexCalculator";
|
|
3
|
-
export declare const ColumnIndexPerColumnIdContext: import("react").Context<ColumnIndexPerColumnIdCalculationResult<string>>;
|
|
4
|
-
export declare const useColumnIndexPerColumnIdContext: <TColumnKey extends string>() => ColumnIndexPerColumnIdCalculationResult<TColumnKey>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnIndexPerColumnIdCalculationResult } from "./ColumnIndexCalculator";
|
|
3
|
+
export declare const ColumnIndexPerColumnIdContext: import("react").Context<ColumnIndexPerColumnIdCalculationResult<string>>;
|
|
4
|
+
export declare const useColumnIndexPerColumnIdContext: <TColumnKey extends string>() => ColumnIndexPerColumnIdCalculationResult<TColumnKey>;
|
package/dist/features/standard-table/features/expand-collapse/StandardTableRowExpandButton.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface Props<TItem> {
|
|
3
|
-
item: TItem;
|
|
4
|
-
colIndex: number;
|
|
5
|
-
rowIndex: number;
|
|
6
|
-
numRows: number;
|
|
7
|
-
}
|
|
8
|
-
export declare const StandardTableRowExpandButton: <TItem>({ item, colIndex, numRows, rowIndex, }: Props<TItem>) => JSX.Element;
|
|
9
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Props<TItem> {
|
|
3
|
+
item: TItem;
|
|
4
|
+
colIndex: number;
|
|
5
|
+
rowIndex: number;
|
|
6
|
+
numRows: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const StandardTableRowExpandButton: <TItem>({ item, colIndex, numRows, rowIndex, }: Props<TItem>) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useExpandCollapseActions: <TItem>(item: TItem) => {
|
|
2
|
-
toggleRowExpanded: () => void;
|
|
3
|
-
isExpanded: boolean;
|
|
4
|
-
};
|
|
1
|
+
export declare const useExpandCollapseActions: <TItem>(item: TItem) => {
|
|
2
|
+
toggleRowExpanded: () => void;
|
|
3
|
+
isExpanded: boolean;
|
|
4
|
+
};
|
package/dist/features/standard-table/features/expand-collapse/UseTableHeadExpandCollapse.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const useTableHeadExpandCollapse: <TItem>(items: TItem[] | undefined) => {
|
|
2
|
-
allItemsAreExpanded: boolean;
|
|
3
|
-
toggleExpanded: () => void;
|
|
4
|
-
};
|
|
1
|
+
export declare const useTableHeadExpandCollapse: <TItem>(items: TItem[] | undefined) => {
|
|
2
|
+
allItemsAreExpanded: boolean;
|
|
3
|
+
toggleExpanded: () => void;
|
|
4
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type ComparableType = number | string | boolean | Date | null | undefined;
|
|
2
|
-
export declare const multitypeComparator: (a: ComparableType, b: ComparableType) => number;
|
|
3
|
-
export {};
|
|
1
|
+
declare type ComparableType = number | string | boolean | Date | null | undefined;
|
|
2
|
+
export declare const multitypeComparator: (a: ComparableType, b: ComparableType) => number;
|
|
3
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { SortOrderDirection } from "../../../table-ui/components/table/SortOrderIcon";
|
|
2
|
-
interface Result {
|
|
3
|
-
selected: boolean;
|
|
4
|
-
desc: boolean;
|
|
5
|
-
arrow: SortOrderDirection | undefined;
|
|
6
|
-
onClickColumnHead: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const useTableSortHeader: (columnId: string) => Result;
|
|
9
|
-
export {};
|
|
1
|
+
import { SortOrderDirection } from "../../../table-ui/components/table/SortOrderIcon";
|
|
2
|
+
interface Result {
|
|
3
|
+
selected: boolean;
|
|
4
|
+
desc: boolean;
|
|
5
|
+
arrow: SortOrderDirection | undefined;
|
|
6
|
+
onClickColumnHead: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const useTableSortHeader: (columnId: string) => Result;
|
|
9
|
+
export {};
|
package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupOffsetCalculator.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StandardTableConfig, StandardTableConfigWithGroups } from "../../config/StandardTableConfig";
|
|
2
|
-
export declare type OffsetPerColumn<TColumnKey extends string> = Record<TColumnKey, string>;
|
|
3
|
-
/**
|
|
4
|
-
* This methods assumes that the config has already been validated to be correct.
|
|
5
|
-
* @param config
|
|
6
|
-
*/
|
|
7
|
-
export declare const calculateOffsetForColumnInStickyColumnGroups: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => OffsetPerColumn<TColumnKey>;
|
|
8
|
-
export declare const calculateOffsetForColumns: <TItem, TColumnKey extends string>(columnIds: TColumnKey[], columns: Record<TColumnKey, import("../../config/StandardTableColumnConfig").StandardTableColumnConfigWithGroups<TItem, any, TColumnKey>> | Record<TColumnKey, import("../../config/StandardTableColumnConfig").StandardTableColumnConfig<TItem, any, TColumnKey>>, includeOffsetForCheckboxAndExpand: boolean) => OffsetPerColumn<TColumnKey>;
|
|
9
|
-
export declare const getColumnIdsForLeftSideStickyGroup: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => TColumnKey[];
|
|
10
|
-
export declare const getColumnIdsForRightSideStickyGroup: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => TColumnKey[];
|
|
1
|
+
import { StandardTableConfig, StandardTableConfigWithGroups } from "../../config/StandardTableConfig";
|
|
2
|
+
export declare type OffsetPerColumn<TColumnKey extends string> = Record<TColumnKey, string>;
|
|
3
|
+
/**
|
|
4
|
+
* This methods assumes that the config has already been validated to be correct.
|
|
5
|
+
* @param config
|
|
6
|
+
*/
|
|
7
|
+
export declare const calculateOffsetForColumnInStickyColumnGroups: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => OffsetPerColumn<TColumnKey>;
|
|
8
|
+
export declare const calculateOffsetForColumns: <TItem, TColumnKey extends string>(columnIds: TColumnKey[], columns: Record<TColumnKey, import("../../config/StandardTableColumnConfig").StandardTableColumnConfigWithGroups<TItem, any, TColumnKey>> | Record<TColumnKey, import("../../config/StandardTableColumnConfig").StandardTableColumnConfig<TItem, any, TColumnKey>>, includeOffsetForCheckboxAndExpand: boolean) => OffsetPerColumn<TColumnKey>;
|
|
9
|
+
export declare const getColumnIdsForLeftSideStickyGroup: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => TColumnKey[];
|
|
10
|
+
export declare const getColumnIdsForRightSideStickyGroup: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => TColumnKey[];
|
package/dist/features/standard-table/features/sticky-columns/StickyColumnGroupValidator.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StandardTableConfig, StandardTableConfigWithGroups } from "../../config/StandardTableConfig";
|
|
2
|
-
export declare const ensureConfigHasValidSticky: <TItem, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey, string>) => void;
|
|
3
|
-
export declare const ensureNoColumnsAreSticky: <TItem, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey, string>) => void;
|
|
4
|
-
export declare const ensureAllColumnsInGroupHasFixedWidth: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>, columnGroupIndex: number) => void;
|
|
1
|
+
import { StandardTableConfig, StandardTableConfigWithGroups } from "../../config/StandardTableConfig";
|
|
2
|
+
export declare const ensureConfigHasValidSticky: <TItem, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey, string>) => void;
|
|
3
|
+
export declare const ensureNoColumnsAreSticky: <TItem, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey, string>) => void;
|
|
4
|
+
export declare const ensureAllColumnsInGroupHasFixedWidth: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>, columnGroupIndex: number) => void;
|
package/dist/features/standard-table/features/sticky-columns/StickyPropsPerColumnCalculator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StandardTableConfig, StandardTableConfigWithGroups, StandardTableConfigWithNoGroups } from "../../config/StandardTableConfig";
|
|
2
|
-
import { StickyPropsPerColumn } from "./types";
|
|
3
|
-
export declare const getStickyPropsPerColumn: <TItem, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey, string>) => StickyPropsPerColumn<TColumnKey>;
|
|
4
|
-
export declare const getStickyPropsPerColumnWithNoGroups: <TItem, TColumnKey extends string>(config: StandardTableConfigWithNoGroups<TItem, TColumnKey>) => StickyPropsPerColumn<TColumnKey>;
|
|
5
|
-
export declare const getStickyPropsPerColumnWithGroups: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => StickyPropsPerColumn<TColumnKey>;
|
|
1
|
+
import { StandardTableConfig, StandardTableConfigWithGroups, StandardTableConfigWithNoGroups } from "../../config/StandardTableConfig";
|
|
2
|
+
import { StickyPropsPerColumn } from "./types";
|
|
3
|
+
export declare const getStickyPropsPerColumn: <TItem, TColumnKey extends string>(config: StandardTableConfig<TItem, TColumnKey, string>) => StickyPropsPerColumn<TColumnKey>;
|
|
4
|
+
export declare const getStickyPropsPerColumnWithNoGroups: <TItem, TColumnKey extends string>(config: StandardTableConfigWithNoGroups<TItem, TColumnKey>) => StickyPropsPerColumn<TColumnKey>;
|
|
5
|
+
export declare const getStickyPropsPerColumnWithGroups: <TItem, TColumnKey extends string>(config: StandardTableConfigWithGroups<TItem, TColumnKey, string>) => StickyPropsPerColumn<TColumnKey>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export declare type StickyPropsPerColumn<TColumn extends string> = Record<TColumn, StickyCellProps>;
|
|
2
|
-
declare type StickyCellType = "column" | "first-group" | "last-group";
|
|
3
|
-
export interface StickyCellProps {
|
|
4
|
-
left: string | undefined;
|
|
5
|
-
right: string | undefined;
|
|
6
|
-
sticky: boolean;
|
|
7
|
-
type: StickyCellType | undefined;
|
|
8
|
-
isFirstColumnInLastGroup: boolean;
|
|
9
|
-
isLastColumnInFirstGroup: boolean;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
1
|
+
export declare type StickyPropsPerColumn<TColumn extends string> = Record<TColumn, StickyCellProps>;
|
|
2
|
+
declare type StickyCellType = "column" | "first-group" | "last-group";
|
|
3
|
+
export interface StickyCellProps {
|
|
4
|
+
left: string | undefined;
|
|
5
|
+
right: string | undefined;
|
|
6
|
+
sticky: boolean;
|
|
7
|
+
type: StickyCellType | undefined;
|
|
8
|
+
isFirstColumnInLastGroup: boolean;
|
|
9
|
+
isLastColumnInFirstGroup: boolean;
|
|
10
|
+
}
|
|
11
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface ColumnIdAndColSpan<TColumnKey extends string> {
|
|
2
|
-
columnId: TColumnKey;
|
|
3
|
-
colSpan: number;
|
|
4
|
-
}
|
|
5
|
-
export declare const getColumnsLimitedWithColSpan: <TColumnKey extends string>(columnOrder: TColumnKey[], columns: Record<TColumnKey, {
|
|
6
|
-
summaryCellColSpan?: number | undefined;
|
|
7
|
-
}>) => ColumnIdAndColSpan<TColumnKey>[];
|
|
1
|
+
export interface ColumnIdAndColSpan<TColumnKey extends string> {
|
|
2
|
+
columnId: TColumnKey;
|
|
3
|
+
colSpan: number;
|
|
4
|
+
}
|
|
5
|
+
export declare const getColumnsLimitedWithColSpan: <TColumnKey extends string>(columnOrder: TColumnKey[], columns: Record<TColumnKey, {
|
|
6
|
+
summaryCellColSpan?: number | undefined;
|
|
7
|
+
}>) => ColumnIdAndColSpan<TColumnKey>[];
|
package/dist/features/standard-table/features/summary-row/SummaryRowVisibilityCalculator.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StandardTableColumnOptions } from "../../config/StandardTableColumnConfig";
|
|
2
|
-
export declare const isSummaryRowVisible: <TColumnKey extends string>(columns: Record<TColumnKey, StandardTableColumnOptions<unknown, unknown, TColumnKey>>) => boolean;
|
|
3
|
-
export declare const columnHasSummaryCell: <TColumnKey extends string>(columnConfig: StandardTableColumnOptions<unknown, unknown, TColumnKey>) => boolean;
|
|
1
|
+
import { StandardTableColumnOptions } from "../../config/StandardTableColumnConfig";
|
|
2
|
+
export declare const isSummaryRowVisible: <TColumnKey extends string>(columns: Record<TColumnKey, StandardTableColumnOptions<unknown, unknown, TColumnKey>>) => boolean;
|
|
3
|
+
export declare const columnHasSummaryCell: <TColumnKey extends string>(columnConfig: StandardTableColumnOptions<unknown, unknown, TColumnKey>) => boolean;
|
package/dist/features/standard-table/features/summary-row/components/StandardTableSummaryRow.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface StandardTableSummaryRowProps<TItem> {
|
|
3
|
-
items: Array<TItem>;
|
|
4
|
-
}
|
|
5
|
-
export declare const StandardTableSummaryRow: React.MemoExoticComponent<(<TItem>({ items, }: StandardTableSummaryRowProps<TItem>) => JSX.Element)>;
|
|
6
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface StandardTableSummaryRowProps<TItem> {
|
|
3
|
+
items: Array<TItem>;
|
|
4
|
+
}
|
|
5
|
+
export declare const StandardTableSummaryRow: React.MemoExoticComponent<(<TItem>({ items, }: StandardTableSummaryRowProps<TItem>) => JSX.Element)>;
|
|
6
|
+
export {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface SummaryCellProps<TItem> {
|
|
3
|
-
items: Array<TItem>;
|
|
4
|
-
columnId: string;
|
|
5
|
-
borderFromGroup?: boolean | string;
|
|
6
|
-
disableBorderLeft: boolean;
|
|
7
|
-
colSpan: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const SummaryCell: React.MemoExoticComponent<(<TItem>({ columnId, items, disableBorderLeft, borderFromGroup, colSpan, }: SummaryCellProps<TItem>) => JSX.Element)>;
|
|
10
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface SummaryCellProps<TItem> {
|
|
3
|
+
items: Array<TItem>;
|
|
4
|
+
columnId: string;
|
|
5
|
+
borderFromGroup?: boolean | string;
|
|
6
|
+
disableBorderLeft: boolean;
|
|
7
|
+
colSpan: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const SummaryCell: React.MemoExoticComponent<(<TItem>({ columnId, items, disableBorderLeft, borderFromGroup, colSpan, }: SummaryCellProps<TItem>) => JSX.Element)>;
|
|
10
|
+
export {};
|
package/dist/features/standard-table/features/summary-row/components/SummaryRowSwitcher.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface SummaryRowSwitcherProps<TItem> {
|
|
3
|
-
items: Array<TItem>;
|
|
4
|
-
}
|
|
5
|
-
export declare const SummaryRowSwitcher: <TItem>({ items, }: SummaryRowSwitcherProps<TItem>) => JSX.Element | null;
|
|
6
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface SummaryRowSwitcherProps<TItem> {
|
|
3
|
+
items: Array<TItem>;
|
|
4
|
+
}
|
|
5
|
+
export declare const SummaryRowSwitcher: <TItem>({ items, }: SummaryRowSwitcherProps<TItem>) => JSX.Element | null;
|
|
6
|
+
export {};
|
package/dist/features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCell.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StandardTableCellRenderer } from "../../../config/StandardTableColumnConfig";
|
|
2
|
-
export declare const createStandardEditableTextCell: <TItemValue, TItem>() => StandardTableCellRenderer<TItemValue, TItem>;
|
|
1
|
+
import { StandardTableCellRenderer } from "../../../config/StandardTableColumnConfig";
|
|
2
|
+
export declare const createStandardEditableTextCell: <TItemValue, TItem>() => StandardTableCellRenderer<TItemValue, TItem>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { EntityCrudStatus, ModifiedFieldItemState } from "@stenajs-webui/redux";
|
|
2
|
-
import { StandardTableCellRenderer } from "../../../config/StandardTableColumnConfig";
|
|
3
|
-
export declare const createEditableTextCellWithStatus: <TItemValue, TItem>(warningOnEmpty?: string | ((item: TItem) => string) | undefined, crudStatusProvider?: ((item: TItem) => EntityCrudStatus | undefined) | undefined, modifiedFieldProvider?: ((item: TItem) => ModifiedFieldItemState | undefined) | undefined) => StandardTableCellRenderer<TItemValue, TItem>;
|
|
1
|
+
import { EntityCrudStatus, ModifiedFieldItemState } from "@stenajs-webui/redux";
|
|
2
|
+
import { StandardTableCellRenderer } from "../../../config/StandardTableColumnConfig";
|
|
3
|
+
export declare const createEditableTextCellWithStatus: <TItemValue, TItem>(warningOnEmpty?: string | ((item: TItem) => string) | undefined, crudStatusProvider?: ((item: TItem) => EntityCrudStatus | undefined) | undefined, modifiedFieldProvider?: ((item: TItem) => ModifiedFieldItemState | undefined) | undefined) => StandardTableCellRenderer<TItemValue, TItem>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { StandardTableColumnConfig } from "../config/StandardTableColumnConfig";
|
|
2
|
-
export declare const useCellBackgroundByColumnId: <T>(columnId: string, item: T) => string | undefined;
|
|
3
|
-
export declare const useCellBackgroundByColumnConfig: <TItem, TItemValue, TColumnKey extends string>(columnConfig: StandardTableColumnConfig<TItem, TItemValue, TColumnKey> | undefined, item: TItem) => string | undefined;
|
|
1
|
+
import { StandardTableColumnConfig } from "../config/StandardTableColumnConfig";
|
|
2
|
+
export declare const useCellBackgroundByColumnId: <T>(columnId: string, item: T) => string | undefined;
|
|
3
|
+
export declare const useCellBackgroundByColumnConfig: <TItem, TItemValue, TColumnKey extends string>(columnConfig: StandardTableColumnConfig<TItem, TItemValue, TColumnKey> | undefined, item: TItem) => string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StandardTableColumnConfig } from "../config/StandardTableColumnConfig";
|
|
2
|
-
export declare const useColumnConfigById: <TItem, TItemValue, TColumnKey extends string>(columnId: string) => StandardTableColumnConfig<TItem, TItemValue, TColumnKey>;
|
|
3
|
-
export declare const useFirstColumnConfig: <TItem, TItemValue, TColumnKey extends string>() => StandardTableColumnConfig<TItem, TItemValue, TColumnKey> | undefined;
|
|
4
|
-
export declare const useLastColumnConfig: <TItem, TItemValue, TColumnKey extends string>() => StandardTableColumnConfig<TItem, TItemValue, TColumnKey> | undefined;
|
|
1
|
+
import { StandardTableColumnConfig } from "../config/StandardTableColumnConfig";
|
|
2
|
+
export declare const useColumnConfigById: <TItem, TItemValue, TColumnKey extends string>(columnId: string) => StandardTableColumnConfig<TItem, TItemValue, TColumnKey>;
|
|
3
|
+
export declare const useFirstColumnConfig: <TItem, TItemValue, TColumnKey extends string>() => StandardTableColumnConfig<TItem, TItemValue, TColumnKey> | undefined;
|
|
4
|
+
export declare const useLastColumnConfig: <TItem, TItemValue, TColumnKey extends string>() => StandardTableColumnConfig<TItem, TItemValue, TColumnKey> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useColumnValueResolver: <TItem, TColumnKey extends string, TColumnGroupKey extends string>(columnId: TColumnKey | undefined) => ((item: TItem) => any) | undefined;
|
|
1
|
+
export declare const useColumnValueResolver: <TItem, TColumnKey extends string, TColumnGroupKey extends string>(columnId: TColumnKey | undefined) => ((item: TItem) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TableContext } from "../context/StandardTableStateContext";
|
|
2
|
-
import { StandardTableState } from "../redux/StandardTableReducer";
|
|
3
|
-
export declare const useLocalStateTableContext: <TColumnKey extends string>(tableId: string, initialState?: StandardTableState<TColumnKey>) => {
|
|
4
|
-
tableContext: TableContext<TColumnKey>;
|
|
5
|
-
};
|
|
1
|
+
import { TableContext } from "../context/StandardTableStateContext";
|
|
2
|
+
import { StandardTableState } from "../redux/StandardTableReducer";
|
|
3
|
+
export declare const useLocalStateTableContext: <TColumnKey extends string>(tableId: string, initialState?: StandardTableState<TColumnKey>) => {
|
|
4
|
+
tableContext: TableContext<TColumnKey>;
|
|
5
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
2
|
-
import { StandardTableInternalActionsContext } from "../context/StandardTableStateContext";
|
|
3
|
-
import { StandardTableState } from "../redux/StandardTableReducer";
|
|
4
|
-
export declare const useStandardTableId: () => string;
|
|
5
|
-
export declare const useStandardTableConfig: <TItem, TColumnKey extends string, TColumnGroupKey extends string>() => StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>;
|
|
6
|
-
export declare const useStandardTableState: <TColumnKey extends string>() => StandardTableState<TColumnKey>;
|
|
7
|
-
export declare const useStandardTableActions: <TColumnKey extends string>() => StandardTableInternalActionsContext<TColumnKey>;
|
|
1
|
+
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
2
|
+
import { StandardTableInternalActionsContext } from "../context/StandardTableStateContext";
|
|
3
|
+
import { StandardTableState } from "../redux/StandardTableReducer";
|
|
4
|
+
export declare const useStandardTableId: () => string;
|
|
5
|
+
export declare const useStandardTableConfig: <TItem, TColumnKey extends string, TColumnGroupKey extends string>() => StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>;
|
|
6
|
+
export declare const useStandardTableState: <TColumnKey extends string>() => StandardTableState<TColumnKey>;
|
|
7
|
+
export declare const useStandardTableActions: <TColumnKey extends string>() => StandardTableInternalActionsContext<TColumnKey>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare type ReducerIdSuffix = "selectedIds" | "expandedRows" | "sortOrder" | "fields";
|
|
2
|
-
export declare const getReducerIdFor: (reducerId: string, reducerIdSuffix: ReducerIdSuffix) => string;
|
|
3
|
-
export {};
|
|
1
|
+
declare type ReducerIdSuffix = "selectedIds" | "expandedRows" | "sortOrder" | "fields";
|
|
2
|
+
export declare const getReducerIdFor: (reducerId: string, reducerIdSuffix: ReducerIdSuffix) => string;
|
|
3
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { EntityActions, EntitySelectors, SelectedIdsActions, SelectedIdsSelectors, SortOrderActions, SortOrderSelectors } from "@stenajs-webui/redux";
|
|
2
|
-
import { StandardTableStateFields } from "./StandardTableReducer";
|
|
3
|
-
export interface InternalStandardTableActions<TColumnKey extends string> {
|
|
4
|
-
sortOrder: SortOrderActions<TColumnKey>;
|
|
5
|
-
selectedIds: SelectedIdsActions;
|
|
6
|
-
expandedRows: SelectedIdsActions;
|
|
7
|
-
fields: EntityActions<StandardTableStateFields>;
|
|
8
|
-
}
|
|
9
|
-
export interface StandardTableSelectors<TStoreState, TColumnKey extends string> {
|
|
10
|
-
sortOrder: SortOrderSelectors<TStoreState, TColumnKey>;
|
|
11
|
-
selectedIds: SelectedIdsSelectors<TStoreState>;
|
|
12
|
-
expandedRows: SelectedIdsSelectors<TStoreState>;
|
|
13
|
-
fields: EntitySelectors<TStoreState, StandardTableStateFields>;
|
|
14
|
-
}
|
|
15
|
-
export interface StandardTableActionsAndSelectors<TStoreState, TColumnKey extends string> {
|
|
16
|
-
actions: InternalStandardTableActions<TColumnKey>;
|
|
17
|
-
selectors: StandardTableSelectors<TStoreState, TColumnKey>;
|
|
18
|
-
}
|
|
19
|
-
export declare const createInternalStandardTableActions: <TColumnKey extends string>() => InternalStandardTableActions<TColumnKey>;
|
|
1
|
+
import { EntityActions, EntitySelectors, SelectedIdsActions, SelectedIdsSelectors, SortOrderActions, SortOrderSelectors } from "@stenajs-webui/redux";
|
|
2
|
+
import { StandardTableStateFields } from "./StandardTableReducer";
|
|
3
|
+
export interface InternalStandardTableActions<TColumnKey extends string> {
|
|
4
|
+
sortOrder: SortOrderActions<TColumnKey>;
|
|
5
|
+
selectedIds: SelectedIdsActions;
|
|
6
|
+
expandedRows: SelectedIdsActions;
|
|
7
|
+
fields: EntityActions<StandardTableStateFields>;
|
|
8
|
+
}
|
|
9
|
+
export interface StandardTableSelectors<TStoreState, TColumnKey extends string> {
|
|
10
|
+
sortOrder: SortOrderSelectors<TStoreState, TColumnKey>;
|
|
11
|
+
selectedIds: SelectedIdsSelectors<TStoreState>;
|
|
12
|
+
expandedRows: SelectedIdsSelectors<TStoreState>;
|
|
13
|
+
fields: EntitySelectors<TStoreState, StandardTableStateFields>;
|
|
14
|
+
}
|
|
15
|
+
export interface StandardTableActionsAndSelectors<TStoreState, TColumnKey extends string> {
|
|
16
|
+
actions: InternalStandardTableActions<TColumnKey>;
|
|
17
|
+
selectors: StandardTableSelectors<TStoreState, TColumnKey>;
|
|
18
|
+
}
|
|
19
|
+
export declare const createInternalStandardTableActions: <TColumnKey extends string>() => InternalStandardTableActions<TColumnKey>;
|