@stenajs-webui/grid 17.6.0 → 17.7.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 +12 -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 -2235
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +9 -2347
- 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,15 +1,15 @@
|
|
|
1
|
-
import { EntityState, SelectedIdsState, SortOrderState } from "@stenajs-webui/redux";
|
|
2
|
-
import { Reducer } from "redux";
|
|
3
|
-
import { StandardTableAction } from "../util/ActionsFactory";
|
|
4
|
-
export interface StandardTableState<TColumnKey extends string> {
|
|
5
|
-
sortOrder: SortOrderState<TColumnKey>;
|
|
6
|
-
selectedIds: SelectedIdsState;
|
|
7
|
-
expandedRows: SelectedIdsState;
|
|
8
|
-
fields: EntityState<StandardTableStateFields>;
|
|
9
|
-
}
|
|
10
|
-
export interface StandardTableStateFields {
|
|
11
|
-
lastSelectedId?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const createStandardTableInitialState: <TColumnKey extends string>(sortBy?: TColumnKey | undefined, desc?: boolean, selectedIds?: string[], expandedRows?: string[]) => StandardTableState<TColumnKey>;
|
|
14
|
-
export declare type StandardTableReducer<TColumnKey extends string> = Reducer<StandardTableState<TColumnKey>, StandardTableAction<TColumnKey>>;
|
|
15
|
-
export declare const createStandardTableReducer: <TColumnKey extends string>(reducerId: string, initialState?: Partial<StandardTableState<TColumnKey>> | undefined) => StandardTableReducer<TColumnKey>;
|
|
1
|
+
import { EntityState, SelectedIdsState, SortOrderState } from "@stenajs-webui/redux";
|
|
2
|
+
import { Reducer } from "redux";
|
|
3
|
+
import { StandardTableAction } from "../util/ActionsFactory";
|
|
4
|
+
export interface StandardTableState<TColumnKey extends string> {
|
|
5
|
+
sortOrder: SortOrderState<TColumnKey>;
|
|
6
|
+
selectedIds: SelectedIdsState;
|
|
7
|
+
expandedRows: SelectedIdsState;
|
|
8
|
+
fields: EntityState<StandardTableStateFields>;
|
|
9
|
+
}
|
|
10
|
+
export interface StandardTableStateFields {
|
|
11
|
+
lastSelectedId?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const createStandardTableInitialState: <TColumnKey extends string>(sortBy?: TColumnKey | undefined, desc?: boolean, selectedIds?: string[], expandedRows?: string[]) => StandardTableState<TColumnKey>;
|
|
14
|
+
export declare type StandardTableReducer<TColumnKey extends string> = Reducer<StandardTableState<TColumnKey>, StandardTableAction<TColumnKey>>;
|
|
15
|
+
export declare const createStandardTableReducer: <TColumnKey extends string>(reducerId: string, initialState?: Partial<StandardTableState<TColumnKey>> | undefined) => StandardTableReducer<TColumnKey>;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
2
|
-
export interface ListItem {
|
|
3
|
-
id: string;
|
|
4
|
-
active: boolean;
|
|
5
|
-
name: string;
|
|
6
|
-
ship: string;
|
|
7
|
-
numPassengers?: number;
|
|
8
|
-
departure: Date;
|
|
9
|
-
}
|
|
10
|
-
export declare const createItemsMocks: () => Array<ListItem>;
|
|
11
|
-
export declare const setListItemFields: (items: Array<ListItem>, id: string, fields: Partial<ListItem>) => ListItem[];
|
|
12
|
-
export declare const standardTableConfigForStories: StandardTableConfig<ListItem, keyof ListItem>;
|
|
13
|
-
export declare const mockedItems: ListItem[];
|
|
14
|
-
export declare const useListState: (initialItems: Array<ListItem>) => {
|
|
15
|
-
onChangeNumPassengers: (item: ListItem, numPassengers: string | undefined) => void;
|
|
16
|
-
onChangeActive: (item: ListItem, active: boolean) => void;
|
|
17
|
-
items: ListItem[];
|
|
18
|
-
};
|
|
1
|
+
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
2
|
+
export interface ListItem {
|
|
3
|
+
id: string;
|
|
4
|
+
active: boolean;
|
|
5
|
+
name: string;
|
|
6
|
+
ship: string;
|
|
7
|
+
numPassengers?: number;
|
|
8
|
+
departure: Date;
|
|
9
|
+
}
|
|
10
|
+
export declare const createItemsMocks: () => Array<ListItem>;
|
|
11
|
+
export declare const setListItemFields: (items: Array<ListItem>, id: string, fields: Partial<ListItem>) => ListItem[];
|
|
12
|
+
export declare const standardTableConfigForStories: StandardTableConfig<ListItem, keyof ListItem>;
|
|
13
|
+
export declare const mockedItems: ListItem[];
|
|
14
|
+
export declare const useListState: (initialItems: Array<ListItem>) => {
|
|
15
|
+
onChangeNumPassengers: (item: ListItem, numPassengers: string | undefined) => void;
|
|
16
|
+
onChangeActive: (item: ListItem, active: boolean) => void;
|
|
17
|
+
items: ListItem[];
|
|
18
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { StandardTableOnKeyDownArgs } from "../config/StandardTableConfig";
|
|
3
|
-
export declare type StandardTableOnKeyDown<TItem, TColumnKey extends string> = (ev: React.KeyboardEvent<HTMLDivElement>, args: StandardTableOnKeyDownArgs<TItem, TColumnKey>) => void;
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { StandardTableOnKeyDownArgs } from "../config/StandardTableConfig";
|
|
3
|
+
export declare type StandardTableOnKeyDown<TItem, TColumnKey extends string> = (ev: React.KeyboardEvent<HTMLDivElement>, args: StandardTableOnKeyDownArgs<TItem, TColumnKey>) => void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { InternalStandardTableActions } from "../redux/StandardTableActionsAndSelectors";
|
|
2
|
-
import { EntityAction, ReducerIdGateAction, SelectedIdsAction, SortOrderAction } from "@stenajs-webui/redux";
|
|
3
|
-
import { StandardTableStateFields } from "../redux/StandardTableReducer";
|
|
4
|
-
export declare type StandardTableAction<TColumnKey extends string> = ReducerIdGateAction<SortOrderAction<TColumnKey>> | ReducerIdGateAction<SelectedIdsAction> | ReducerIdGateAction<EntityAction<StandardTableStateFields>>;
|
|
5
|
-
export interface StandardTableActions<TColumnKey extends string> {
|
|
6
|
-
setSelectedIds: (ids: Array<string>) => StandardTableAction<TColumnKey>;
|
|
7
|
-
clearSelection: () => StandardTableAction<TColumnKey>;
|
|
8
|
-
expandByIds: (ids: Array<string>) => StandardTableAction<TColumnKey>;
|
|
9
|
-
collapseAll: () => StandardTableAction<TColumnKey>;
|
|
10
|
-
sortBy: (columnId: TColumnKey, desc?: boolean) => StandardTableAction<TColumnKey>;
|
|
11
|
-
clearSortOrder: () => StandardTableAction<TColumnKey>;
|
|
12
|
-
setLastSelectedId: (lastSelectedId: string) => StandardTableAction<TColumnKey>;
|
|
13
|
-
}
|
|
14
|
-
export declare const createStandardTableActions: <TColumnKey extends string>(tableId: string, actions: InternalStandardTableActions<TColumnKey>) => StandardTableActions<TColumnKey>;
|
|
1
|
+
import { InternalStandardTableActions } from "../redux/StandardTableActionsAndSelectors";
|
|
2
|
+
import { EntityAction, ReducerIdGateAction, SelectedIdsAction, SortOrderAction } from "@stenajs-webui/redux";
|
|
3
|
+
import { StandardTableStateFields } from "../redux/StandardTableReducer";
|
|
4
|
+
export declare type StandardTableAction<TColumnKey extends string> = ReducerIdGateAction<SortOrderAction<TColumnKey>> | ReducerIdGateAction<SelectedIdsAction> | ReducerIdGateAction<EntityAction<StandardTableStateFields>>;
|
|
5
|
+
export interface StandardTableActions<TColumnKey extends string> {
|
|
6
|
+
setSelectedIds: (ids: Array<string>) => StandardTableAction<TColumnKey>;
|
|
7
|
+
clearSelection: () => StandardTableAction<TColumnKey>;
|
|
8
|
+
expandByIds: (ids: Array<string>) => StandardTableAction<TColumnKey>;
|
|
9
|
+
collapseAll: () => StandardTableAction<TColumnKey>;
|
|
10
|
+
sortBy: (columnId: TColumnKey, desc?: boolean) => StandardTableAction<TColumnKey>;
|
|
11
|
+
clearSortOrder: () => StandardTableAction<TColumnKey>;
|
|
12
|
+
setLastSelectedId: (lastSelectedId: string) => StandardTableAction<TColumnKey>;
|
|
13
|
+
}
|
|
14
|
+
export declare const createStandardTableActions: <TColumnKey extends string>(tableId: string, actions: InternalStandardTableActions<TColumnKey>) => StandardTableActions<TColumnKey>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const getCellBorder: (borderFromGroup: string | boolean | undefined, disableBorderLeft: boolean | undefined, borderLeft: string | boolean | undefined) => string | undefined;
|
|
2
|
-
export declare const getCellBorderFromGroup: (groupIndex: number, columnIndexInGroup: number, groupBorderLeft: string | boolean | undefined) => string | undefined;
|
|
1
|
+
export declare const getCellBorder: (borderFromGroup: string | boolean | undefined, disableBorderLeft: boolean | undefined, borderLeft: string | boolean | undefined) => string | undefined;
|
|
2
|
+
export declare const getCellBorderFromGroup: (groupIndex: number, columnIndexInGroup: number, groupBorderLeft: string | boolean | undefined) => string | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
2
|
-
export declare const getTotalNumColumns: <TItem, TColumnKey extends string, TColumnGroupKey extends string = string>(config: StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>) => number;
|
|
1
|
+
import { StandardTableConfig } from "../config/StandardTableConfig";
|
|
2
|
+
export declare const getTotalNumColumns: <TItem, TColumnKey extends string, TColumnGroupKey extends string = string>(config: StandardTableConfig<TItem, TColumnKey, TColumnGroupKey>) => number;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare type ItemFilterFunc<TItem> = (item: TItem) => boolean;
|
|
2
|
-
export declare const filterItemsOnEnabledCheckboxes: <TItem>(checkboxDisabledResolver?: ((item: TItem) => boolean) | undefined) => ItemFilterFunc<TItem>;
|
|
1
|
+
export declare type ItemFilterFunc<TItem> = (item: TItem) => boolean;
|
|
2
|
+
export declare const filterItemsOnEnabledCheckboxes: <TItem>(checkboxDisabledResolver?: ((item: TItem) => boolean) | undefined) => ItemFilterFunc<TItem>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getIdsBetweenSelected: (idList: Array<string> | undefined, selected1: string | undefined, selected2: string | undefined) => Array<string> | undefined;
|
|
1
|
+
export declare const getIdsBetweenSelected: (idList: Array<string> | undefined, selected1: string | undefined, selected2: string | undefined) => Array<string> | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const formatValueLabel: <T>(itemValue: T) => string;
|
|
2
|
-
export declare const formatColumnIdToHeaderCellLabel: (columnId: string) => string;
|
|
1
|
+
export declare const formatValueLabel: <T>(itemValue: T) => string;
|
|
2
|
+
export declare const formatColumnIdToHeaderCellLabel: (columnId: string) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CrudStatus } from "@stenajs-webui/redux";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
interface Props {
|
|
4
|
-
crudStatus?: CrudStatus;
|
|
5
|
-
}
|
|
6
|
-
export declare const hasIndicatorContent: (status: CrudStatus) => boolean;
|
|
7
|
-
export declare const CrudStatusIndicator: React.FC<Props>;
|
|
8
|
-
export {};
|
|
1
|
+
import { CrudStatus } from "@stenajs-webui/redux";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface Props {
|
|
4
|
+
crudStatus?: CrudStatus;
|
|
5
|
+
}
|
|
6
|
+
export declare const hasIndicatorContent: (status: CrudStatus) => boolean;
|
|
7
|
+
export declare const CrudStatusIndicator: React.FC<Props>;
|
|
8
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { EntityCrudStatus, ModifiedFieldItemState } from "@stenajs-webui/redux";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
interface Props {
|
|
4
|
-
warningOnEmpty?: string;
|
|
5
|
-
isEditable?: boolean;
|
|
6
|
-
value?: string;
|
|
7
|
-
crudStatus?: EntityCrudStatus;
|
|
8
|
-
modifiedField?: ModifiedFieldItemState;
|
|
9
|
-
}
|
|
10
|
-
export declare const ModifiedField: React.FC<Props>;
|
|
11
|
-
export {};
|
|
1
|
+
import { EntityCrudStatus, ModifiedFieldItemState } from "@stenajs-webui/redux";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface Props {
|
|
4
|
+
warningOnEmpty?: string;
|
|
5
|
+
isEditable?: boolean;
|
|
6
|
+
value?: string;
|
|
7
|
+
crudStatus?: EntityCrudStatus;
|
|
8
|
+
modifiedField?: ModifiedFieldItemState;
|
|
9
|
+
}
|
|
10
|
+
export declare const ModifiedField: React.FC<Props>;
|
|
11
|
+
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { EntityCrudStatusRedux, ModifiedFieldRedux } from "@stenajs-webui/redux";
|
|
3
|
-
import { UseGridCellOptions } from "../../../grid-cell/hooks/UseGridCell";
|
|
4
|
-
interface Props<TStoreState> {
|
|
5
|
-
value?: string;
|
|
6
|
-
entityId: string;
|
|
7
|
-
isEditable?: boolean;
|
|
8
|
-
rowIndent?: boolean;
|
|
9
|
-
allowedInputType: UseGridCellOptions<string>["allowedInputType"];
|
|
10
|
-
modifiedFieldsRedux: ModifiedFieldRedux<TStoreState>;
|
|
11
|
-
crudStatusRedux: EntityCrudStatusRedux<TStoreState>;
|
|
12
|
-
rowIndex: number;
|
|
13
|
-
colIndex: number;
|
|
14
|
-
numRows: number;
|
|
15
|
-
numCols: number;
|
|
16
|
-
warningOnEmpty?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const EditableTextCellWithCrudAndModified: <TStoreState>({ allowedInputType, value, entityId, isEditable, rowIndent, crudStatusRedux, modifiedFieldsRedux, colIndex, rowIndex, numCols, numRows, warningOnEmpty, }: Props<TStoreState>) => JSX.Element;
|
|
19
|
-
export {};
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { EntityCrudStatusRedux, ModifiedFieldRedux } from "@stenajs-webui/redux";
|
|
3
|
+
import { UseGridCellOptions } from "../../../grid-cell/hooks/UseGridCell";
|
|
4
|
+
interface Props<TStoreState> {
|
|
5
|
+
value?: string;
|
|
6
|
+
entityId: string;
|
|
7
|
+
isEditable?: boolean;
|
|
8
|
+
rowIndent?: boolean;
|
|
9
|
+
allowedInputType: UseGridCellOptions<string>["allowedInputType"];
|
|
10
|
+
modifiedFieldsRedux: ModifiedFieldRedux<TStoreState>;
|
|
11
|
+
crudStatusRedux: EntityCrudStatusRedux<TStoreState>;
|
|
12
|
+
rowIndex: number;
|
|
13
|
+
colIndex: number;
|
|
14
|
+
numRows: number;
|
|
15
|
+
numCols: number;
|
|
16
|
+
warningOnEmpty?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const EditableTextCellWithCrudAndModified: <TStoreState>({ allowedInputType, value, entityId, isEditable, rowIndent, crudStatusRedux, modifiedFieldsRedux, colIndex, rowIndex, numCols, numRows, warningOnEmpty, }: Props<TStoreState>) => JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { TableCellProps } from "./TableCell";
|
|
3
|
-
interface Props extends TableCellProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const SmallTableCell: React.FC<Props>;
|
|
6
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { TableCellProps } from "./TableCell";
|
|
3
|
+
interface Props extends TableCellProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const SmallTableCell: React.FC<Props>;
|
|
6
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { TableHeadProps } from "./TableHeadItem";
|
|
3
|
-
interface Props extends TableHeadProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const SmallTableHead: React.FC<Props>;
|
|
6
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { TableHeadProps } from "./TableHeadItem";
|
|
3
|
+
interface Props extends TableHeadProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const SmallTableHead: React.FC<Props>;
|
|
6
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export declare type SortOrderDirection = "up" | "down";
|
|
4
|
-
export declare type SortOrderIconVariant = "numeric" | "alpha" | "amount";
|
|
5
|
-
interface Props {
|
|
6
|
-
direction: SortOrderDirection;
|
|
7
|
-
iconVariant?: SortOrderIconVariant;
|
|
8
|
-
}
|
|
9
|
-
export declare const SortOrderIcon: React.FC<Props>;
|
|
10
|
-
export declare const getIcon: (arrow: SortOrderDirection, iconType: SortOrderIconVariant) => IconDefinition;
|
|
11
|
-
export {};
|
|
1
|
+
import { IconDefinition } from "@fortawesome/free-solid-svg-icons";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export declare type SortOrderDirection = "up" | "down";
|
|
4
|
+
export declare type SortOrderIconVariant = "numeric" | "alpha" | "amount";
|
|
5
|
+
interface Props {
|
|
6
|
+
direction: SortOrderDirection;
|
|
7
|
+
iconVariant?: SortOrderIconVariant;
|
|
8
|
+
}
|
|
9
|
+
export declare const SortOrderIcon: React.FC<Props>;
|
|
10
|
+
export declare const getIcon: (arrow: SortOrderDirection, iconType: SortOrderIconVariant) => IconDefinition;
|
|
11
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface TableCellProps extends BoxProps {
|
|
4
|
-
}
|
|
5
|
-
export declare const TableCell: React.FC<TableCellProps>;
|
|
1
|
+
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface TableCellProps extends BoxProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const TableCell: React.FC<TableCellProps>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
interface Props {
|
|
3
|
-
label?: string;
|
|
4
|
-
flex?: number;
|
|
5
|
-
width?: string;
|
|
6
|
-
indent?: number;
|
|
7
|
-
height?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare const TableColumnGroupHead: React.FC<Props>;
|
|
10
|
-
export {};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface Props {
|
|
3
|
+
label?: string;
|
|
4
|
+
flex?: number;
|
|
5
|
+
width?: string;
|
|
6
|
+
indent?: number;
|
|
7
|
+
height?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const TableColumnGroupHead: React.FC<Props>;
|
|
10
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
-
import { ButtonWithPopoverProps } from "@stenajs-webui/tooltip";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import { SortOrderDirection, SortOrderIconVariant } from "./SortOrderIcon";
|
|
5
|
-
export interface TableHeadProps extends BoxProps {
|
|
6
|
-
label?: string;
|
|
7
|
-
infoIconTooltipText?: string;
|
|
8
|
-
popoverContent?: ButtonWithPopoverProps["children"];
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
arrow?: SortOrderDirection;
|
|
11
|
-
onClick?: () => void;
|
|
12
|
-
selected?: boolean;
|
|
13
|
-
alignRight?: boolean;
|
|
14
|
-
sortOrderIconVariant?: SortOrderIconVariant;
|
|
15
|
-
}
|
|
16
|
-
export declare const TableHeadItem: React.FC<TableHeadProps>;
|
|
1
|
+
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
+
import { ButtonWithPopoverProps } from "@stenajs-webui/tooltip";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { SortOrderDirection, SortOrderIconVariant } from "./SortOrderIcon";
|
|
5
|
+
export interface TableHeadProps extends BoxProps {
|
|
6
|
+
label?: string;
|
|
7
|
+
infoIconTooltipText?: string;
|
|
8
|
+
popoverContent?: ButtonWithPopoverProps["children"];
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
arrow?: SortOrderDirection;
|
|
11
|
+
onClick?: () => void;
|
|
12
|
+
selected?: boolean;
|
|
13
|
+
alignRight?: boolean;
|
|
14
|
+
sortOrderIconVariant?: SortOrderIconVariant;
|
|
15
|
+
}
|
|
16
|
+
export declare const TableHeadItem: React.FC<TableHeadProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
export interface TableHeadRowProps extends BoxProps {
|
|
4
|
-
style?: React.CSSProperties;
|
|
5
|
-
height?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare const TableHeadRow: React.FC<TableHeadRowProps>;
|
|
1
|
+
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
export interface TableHeadRowProps extends BoxProps {
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
height?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const TableHeadRow: React.FC<TableHeadRowProps>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
interface Props extends BoxProps {
|
|
4
|
-
hideBorderTop?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export declare const TableRow: React.FC<Props>;
|
|
7
|
-
export {};
|
|
1
|
+
import { BoxProps } from "@stenajs-webui/core";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
interface Props extends BoxProps {
|
|
4
|
+
hideBorderTop?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const TableRow: React.FC<Props>;
|
|
7
|
+
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { SortOrderState } from "@stenajs-webui/redux";
|
|
2
|
-
import { SortOrderDirection } from "../components/table/SortOrderIcon";
|
|
3
|
-
import { StandardTableActions } from "../../standard-table/util/ActionsFactory";
|
|
4
|
-
interface Result {
|
|
5
|
-
selected: boolean;
|
|
6
|
-
desc: boolean;
|
|
7
|
-
arrow: SortOrderDirection | undefined;
|
|
8
|
-
onClickColumnHead: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const useSortOrderColumnHead: <TSortBy extends string>(state: SortOrderState<TSortBy>, actions: StandardTableActions<TSortBy>, sortByForColumn: TSortBy) => Result;
|
|
11
|
-
export {};
|
|
1
|
+
import { SortOrderState } from "@stenajs-webui/redux";
|
|
2
|
+
import { SortOrderDirection } from "../components/table/SortOrderIcon";
|
|
3
|
+
import { StandardTableActions } from "../../standard-table/util/ActionsFactory";
|
|
4
|
+
interface Result {
|
|
5
|
+
selected: boolean;
|
|
6
|
+
desc: boolean;
|
|
7
|
+
arrow: SortOrderDirection | undefined;
|
|
8
|
+
onClickColumnHead: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useSortOrderColumnHead: <TSortBy extends string>(state: SortOrderState<TSortBy>, actions: StandardTableActions<TSortBy>, sortByForColumn: TSortBy) => Result;
|
|
11
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
export * from "./components/GridHooksTable";
|
|
2
|
-
export * from "./features/table-ui/components/CrudStatusIndicator";
|
|
3
|
-
export * from "./features/table-ui/components/ModifiedField";
|
|
4
|
-
export * from "./features/table-ui/components/table/SmallTableCell";
|
|
5
|
-
export * from "./features/table-ui/components/table/SmallTableHead";
|
|
6
|
-
export * from "./features/table-ui/components/table/TableCell";
|
|
7
|
-
export * from "./features/table-ui/components/table/TableColumnGroupHead";
|
|
8
|
-
export * from "./features/table-ui/components/table/TableHeadItem";
|
|
9
|
-
export * from "./features/table-ui/components/table/TableHeadRow";
|
|
10
|
-
export * from "./features/table-ui/components/table/TableRow";
|
|
11
|
-
export * from "./features/table-ui/components/cells/EditableTextCellWithCrudAndModified";
|
|
12
|
-
export * from "./config/TableConfig";
|
|
13
|
-
export * from "./features/standard-table/context/StandardTableStateContext";
|
|
14
|
-
export * from "./features/standard-table/redux/StandardTableActionsAndSelectors";
|
|
15
|
-
export * from "./features/standard-table/redux/StandardTableReducer";
|
|
16
|
-
export * from "./features/standard-table/components/StandardTable";
|
|
17
|
-
export * from "./features/standard-table/components/StandardTableCell";
|
|
18
|
-
export * from "./features/standard-table/components/StandardTableCellUi";
|
|
19
|
-
export * from "./features/standard-table/components/StandardTableContent";
|
|
20
|
-
export * from "./features/standard-table/components/StandardTableHeadRow";
|
|
21
|
-
export * from "./features/standard-table/components/StandardTableRow";
|
|
22
|
-
export * from "./features/standard-table/components/StandardTableRowList";
|
|
23
|
-
export * from "./features/standard-table/components/TextCell";
|
|
24
|
-
export * from "./features/standard-table/config/StandardTableColumnConfig";
|
|
25
|
-
export * from "./features/standard-table/config/StandardTableColumnGroupConfig";
|
|
26
|
-
export * from "./features/standard-table/config/StandardTableConfig";
|
|
27
|
-
export * from "./features/standard-table/features/checkboxes/UseRowCheckbox";
|
|
28
|
-
export * from "./features/standard-table/features/checkboxes/UseTableHeadCheckbox";
|
|
29
|
-
export * from "./features/standard-table/features/checkboxes/StandardTableRowCheckbox";
|
|
30
|
-
export * from "./features/standard-table/features/sorting/UseTableSortHeader";
|
|
31
|
-
export * from "./features/standard-table/features/sorting/MultitypeComparator";
|
|
32
|
-
export * from "./features/standard-table/features/column-groups/ColumnGroupFactory";
|
|
33
|
-
export * from "./features/standard-table/types/StandardTableOnKeyDown";
|
|
34
|
-
export * from "./features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCell";
|
|
35
|
-
export * from "./features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCellWithStatus";
|
|
36
|
-
export * from "./features/standard-table/hooks/UseCellBackground";
|
|
37
|
-
export * from "./features/standard-table/hooks/UseColumnConfigById";
|
|
38
|
-
export * from "./features/standard-table/hooks/UseColumnValueResolver";
|
|
39
|
-
export * from "./features/standard-table/hooks/UseStandardTableConfig";
|
|
40
|
-
export * from "./features/standard-table/hooks/UseLocalStateTableContext";
|
|
41
|
-
export * from "./features/standard-table/util/LabelFormatter";
|
|
42
|
-
export * from "./features/standard-table/util/ActionsFactory";
|
|
43
|
-
export * from "./features/grid-cell/hooks/UseEditableCell";
|
|
44
|
-
export * from "./features/grid-cell/hooks/UseGridCell";
|
|
45
|
-
export * from "./features/grid-cell/hooks/UseGridNavigation";
|
|
46
|
-
export * from "./features/grid-cell/hooks/UseGridNavigationOptionsFromContext";
|
|
47
|
-
export * from "./features/grid-cell/hooks/UseRevertableValue";
|
|
48
|
-
export { SortOrderIconVariant } from "./features/table-ui/components/table/SortOrderIcon";
|
|
49
|
-
export { SortOrderDirection } from "./features/table-ui/components/table/SortOrderIcon";
|
|
1
|
+
export * from "./components/GridHooksTable";
|
|
2
|
+
export * from "./features/table-ui/components/CrudStatusIndicator";
|
|
3
|
+
export * from "./features/table-ui/components/ModifiedField";
|
|
4
|
+
export * from "./features/table-ui/components/table/SmallTableCell";
|
|
5
|
+
export * from "./features/table-ui/components/table/SmallTableHead";
|
|
6
|
+
export * from "./features/table-ui/components/table/TableCell";
|
|
7
|
+
export * from "./features/table-ui/components/table/TableColumnGroupHead";
|
|
8
|
+
export * from "./features/table-ui/components/table/TableHeadItem";
|
|
9
|
+
export * from "./features/table-ui/components/table/TableHeadRow";
|
|
10
|
+
export * from "./features/table-ui/components/table/TableRow";
|
|
11
|
+
export * from "./features/table-ui/components/cells/EditableTextCellWithCrudAndModified";
|
|
12
|
+
export * from "./config/TableConfig";
|
|
13
|
+
export * from "./features/standard-table/context/StandardTableStateContext";
|
|
14
|
+
export * from "./features/standard-table/redux/StandardTableActionsAndSelectors";
|
|
15
|
+
export * from "./features/standard-table/redux/StandardTableReducer";
|
|
16
|
+
export * from "./features/standard-table/components/StandardTable";
|
|
17
|
+
export * from "./features/standard-table/components/StandardTableCell";
|
|
18
|
+
export * from "./features/standard-table/components/StandardTableCellUi";
|
|
19
|
+
export * from "./features/standard-table/components/StandardTableContent";
|
|
20
|
+
export * from "./features/standard-table/components/StandardTableHeadRow";
|
|
21
|
+
export * from "./features/standard-table/components/StandardTableRow";
|
|
22
|
+
export * from "./features/standard-table/components/StandardTableRowList";
|
|
23
|
+
export * from "./features/standard-table/components/TextCell";
|
|
24
|
+
export * from "./features/standard-table/config/StandardTableColumnConfig";
|
|
25
|
+
export * from "./features/standard-table/config/StandardTableColumnGroupConfig";
|
|
26
|
+
export * from "./features/standard-table/config/StandardTableConfig";
|
|
27
|
+
export * from "./features/standard-table/features/checkboxes/UseRowCheckbox";
|
|
28
|
+
export * from "./features/standard-table/features/checkboxes/UseTableHeadCheckbox";
|
|
29
|
+
export * from "./features/standard-table/features/checkboxes/StandardTableRowCheckbox";
|
|
30
|
+
export * from "./features/standard-table/features/sorting/UseTableSortHeader";
|
|
31
|
+
export * from "./features/standard-table/features/sorting/MultitypeComparator";
|
|
32
|
+
export * from "./features/standard-table/features/column-groups/ColumnGroupFactory";
|
|
33
|
+
export * from "./features/standard-table/types/StandardTableOnKeyDown";
|
|
34
|
+
export * from "./features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCell";
|
|
35
|
+
export * from "./features/standard-table/helpers/cell-renderers/editable-text-cell/EditableTextCellWithStatus";
|
|
36
|
+
export * from "./features/standard-table/hooks/UseCellBackground";
|
|
37
|
+
export * from "./features/standard-table/hooks/UseColumnConfigById";
|
|
38
|
+
export * from "./features/standard-table/hooks/UseColumnValueResolver";
|
|
39
|
+
export * from "./features/standard-table/hooks/UseStandardTableConfig";
|
|
40
|
+
export * from "./features/standard-table/hooks/UseLocalStateTableContext";
|
|
41
|
+
export * from "./features/standard-table/util/LabelFormatter";
|
|
42
|
+
export * from "./features/standard-table/util/ActionsFactory";
|
|
43
|
+
export * from "./features/grid-cell/hooks/UseEditableCell";
|
|
44
|
+
export * from "./features/grid-cell/hooks/UseGridCell";
|
|
45
|
+
export * from "./features/grid-cell/hooks/UseGridNavigation";
|
|
46
|
+
export * from "./features/grid-cell/hooks/UseGridNavigationOptionsFromContext";
|
|
47
|
+
export * from "./features/grid-cell/hooks/UseRevertableValue";
|
|
48
|
+
export type { SortOrderIconVariant } from "./features/table-ui/components/table/SortOrderIcon";
|
|
49
|
+
export type { SortOrderDirection } from "./features/table-ui/components/table/SortOrderIcon";
|