@absreim/react-bootstrap-data-grid 2.7.0 → 4.0.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/common/constants.d.ts +2 -0
- package/common/constants.js +2 -0
- package/common/editing/types.d.ts +7 -0
- package/{export → common/export}/ExportForm.d.ts +1 -0
- package/{export → common/export}/ExportForm.js +3 -3
- package/{filtering → common/filtering}/DateFilterRow.d.ts +4 -4
- package/{filtering → common/filtering}/DateFilterRow.js +1 -1
- package/common/filtering/FilterOptionsTable.d.ts +12 -0
- package/{filtering → common/filtering}/FilterOptionsTable.js +17 -20
- package/{filtering → common/filtering}/FilterRow.d.ts +4 -4
- package/{filtering → common/filtering}/FilterRow.js +1 -10
- package/{filtering → common/filtering}/NumberFilterRow.d.ts +3 -3
- package/{filtering → common/filtering}/NumberFilterRow.js +1 -1
- package/{filtering → common/filtering}/StringFilterRow.d.ts +3 -3
- package/{filtering → common/filtering}/StringFilterRow.js +1 -1
- package/{filtering → common/filtering}/types.d.ts +6 -6
- package/common/filtering/useFilterFormState.d.ts +3 -0
- package/{index.d.ts → common/index.d.ts} +8 -7
- package/{index.js → common/index.js} +8 -7
- package/{pagination → common/pagination}/PageSelector.d.ts +1 -1
- package/{pagination → common/pagination}/PageSizeSelector.d.ts +1 -1
- package/{pagination → common/pagination}/Pagination.d.ts +1 -1
- package/{pagination → common/pagination}/Pagination.js +6 -3
- package/{pagination → common/pagination}/types.d.ts +3 -2
- package/{pipeline → common/pipeline}/useAugFormattedRows.d.ts +1 -1
- package/common/pipeline/useColNameToWidth.d.ts +3 -0
- package/common/pipeline/useColNameToWidth.js +12 -0
- package/{pipeline → common/pipeline}/useCombinedPipeline/index.d.ts +4 -4
- package/{pipeline → common/pipeline}/useCombinedPipeline/useCurrentPageRows.d.ts +3 -3
- package/{pipeline → common/pipeline}/useCombinedPipeline/useDisplayRows.d.ts +1 -1
- package/{pipeline → common/pipeline}/useCombinedPipeline/useDisplayRows.js +1 -2
- package/common/pipeline/useCombinedPipeline/useFilter.d.ts +4 -0
- package/common/pipeline/useCombinedPipeline/useFilterStateFromEditable.d.ts +4 -0
- package/{pipeline → common/pipeline}/useCombinedPipeline/useSortedRows.d.ts +2 -2
- package/{pipeline → common/pipeline}/useGridSelectionFns.d.ts +2 -2
- package/{sorting → common/sorting}/types.d.ts +3 -3
- package/{main/ColHeaderCell → common/sorting}/useSortHeaderStates.d.ts +2 -2
- package/{main/ColHeaderCell → common/sorting}/useSortHeaderStates.js +4 -4
- package/common/styling/types.d.ts +21 -0
- package/{toolbar → common/toolbar}/ToolbarContainer.d.ts +2 -2
- package/{toolbar → common/toolbar}/ToolbarContainer.js +11 -7
- package/common/toolbar/types.d.ts +11 -0
- package/common/toolbar/useInterfaces.d.ts +3 -0
- package/{toolbar → common/toolbar}/useInterfaces.js +9 -6
- package/{types.d.ts → common/types.d.ts} +24 -34
- package/common/util/index.d.ts +5 -0
- package/common/util/index.js +5 -0
- package/community/index.d.ts +4 -0
- package/community/index.js +4 -0
- package/grid/constants.d.ts +2 -0
- package/grid/constants.js +2 -0
- package/grid/index.d.ts +3 -0
- package/grid/index.js +3 -0
- package/{Grid.d.ts → grid/main/Grid.d.ts} +0 -1
- package/grid/main/Grid.js +60 -0
- package/grid/main/GridBody.d.ts +4 -0
- package/grid/main/GridBody.js +17 -0
- package/grid/main/GridHeader.d.ts +4 -0
- package/grid/main/GridHeader.js +12 -0
- package/grid/main/getWidthStyles.d.ts +3 -0
- package/grid/main/getWidthStyles.js +6 -0
- package/grid/main/types.d.ts +32 -0
- package/grid/main/types.js +1 -0
- package/grid.css +1 -0
- package/grid.scss +231 -0
- package/package.json +1 -1
- package/table/InternalTable.d.ts +21 -0
- package/table/InternalTable.js +59 -0
- package/table/Table.d.ts +5 -0
- package/{Grid.js → table/Table.js} +11 -21
- package/{editing → table/editing}/EditControlsCell.d.ts +5 -5
- package/table/editing/EditControlsCell.js +11 -0
- package/{editing → table/editing}/EditableRow.d.ts +8 -9
- package/{editing → table/editing}/EditableRow.js +3 -3
- package/table/index.d.ts +5 -0
- package/table/index.js +5 -0
- package/table/main/BodyRows.d.ts +22 -0
- package/table/main/BodyRows.js +34 -0
- package/{main → table/main}/ColHeaderCell/index.js +3 -3
- package/{selection → table/selection}/SelectAllHeaderCell.d.ts +2 -2
- package/{selection → table/selection}/SelectAllHeaderCell.js +2 -4
- package/{selection → table/selection}/SelectionInput.d.ts +1 -1
- package/table/styling/types.d.ts +41 -0
- package/table/styling/types.js +1 -0
- package/table/types.d.ts +19 -0
- package/table/types.js +1 -0
- package/InternalGrid.d.ts +0 -23
- package/InternalGrid.js +0 -57
- package/editing/EditControlsCell.js +0 -19
- package/editing/types.d.ts +0 -16
- package/filtering/FilterOptionsTable.d.ts +0 -11
- package/filtering/useFilterFormState.d.ts +0 -3
- package/main/BodyRows.d.ts +0 -22
- package/main/BodyRows.js +0 -18
- package/main/ToggleButton.d.ts +0 -9
- package/main/ToggleButton.js +0 -14
- package/pipeline/useCombinedPipeline/useEditableFromFilterState.d.ts +0 -3
- package/pipeline/useCombinedPipeline/useEditableFromFilterState.js +0 -14
- package/pipeline/useCombinedPipeline/useFilter.d.ts +0 -4
- package/pipeline/useCombinedPipeline/useFilterStateFromEditable.d.ts +0 -4
- package/pipeline/useUnwrappedGridStyles.d.ts +0 -7
- package/pipeline/useUnwrappedGridStyles.js +0 -17
- package/styling/styleModelUnwrappers.d.ts +0 -4
- package/styling/styleModelUnwrappers.js +0 -58
- package/styling/types.d.ts +0 -62
- package/toolbar/types.d.ts +0 -3
- package/toolbar/useInterfaces.d.ts +0 -9
- /package/{editing → common/editing}/inputStrsToRowData.d.ts +0 -0
- /package/{editing → common/editing}/inputStrsToRowData.js +0 -0
- /package/{editing → common/editing}/types.js +0 -0
- /package/{export → common/export}/types.d.ts +0 -0
- /package/{export → common/export}/types.js +0 -0
- /package/{export → common/export}/useExportFn.d.ts +0 -0
- /package/{export → common/export}/useExportFn.js +0 -0
- /package/{filtering → common/filtering}/types.js +0 -0
- /package/{filtering → common/filtering}/useFilterFormState.js +0 -0
- /package/{pagination → common/pagination}/PageSelector.js +0 -0
- /package/{pagination → common/pagination}/PageSizeSelector.js +0 -0
- /package/{pagination → common/pagination}/types.js +0 -0
- /package/{pipeline → common/pipeline}/types.d.ts +0 -0
- /package/{pipeline → common/pipeline}/types.js +0 -0
- /package/{pipeline → common/pipeline}/useAugFormattedRows.js +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/index.js +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/useCurrentPageRows.js +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilter.js +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilterStateFromEditable.js +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilterStateStore.d.ts +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilterStateStore.js +0 -0
- /package/{pipeline → common/pipeline}/useCombinedPipeline/useSortedRows.js +0 -0
- /package/{pipeline → common/pipeline}/useGetInputStrSubmitCallback.d.ts +0 -0
- /package/{pipeline → common/pipeline}/useGetInputStrSubmitCallback.js +0 -0
- /package/{pipeline → common/pipeline}/useGridSelectionFns.js +0 -0
- /package/{selection → common/selection}/types.d.ts +0 -0
- /package/{selection → common/selection}/types.js +0 -0
- /package/{sorting → common/sorting}/arrowPlaceholder.d.ts +0 -0
- /package/{sorting → common/sorting}/arrowPlaceholder.js +0 -0
- /package/{sorting → common/sorting}/downArrow.d.ts +0 -0
- /package/{sorting → common/sorting}/downArrow.js +0 -0
- /package/{sorting → common/sorting}/sortOrderToAriaSort.d.ts +0 -0
- /package/{sorting → common/sorting}/sortOrderToAriaSort.js +0 -0
- /package/{sorting → common/sorting}/types.js +0 -0
- /package/{sorting → common/sorting}/upArrow.d.ts +0 -0
- /package/{sorting → common/sorting}/upArrow.js +0 -0
- /package/{styling → common/styling}/types.js +0 -0
- /package/{toolbar → common/toolbar}/Toolbar.d.ts +0 -0
- /package/{toolbar → common/toolbar}/Toolbar.js +0 -0
- /package/{toolbar → common/toolbar}/types.js +0 -0
- /package/{types.js → common/types.js} +0 -0
- /package/{util → common/util}/datetime.d.ts +0 -0
- /package/{util → common/util}/datetime.js +0 -0
- /package/{util → common/util}/getWidthStyle.d.ts +0 -0
- /package/{util → common/util}/getWidthStyle.js +0 -0
- /package/{util → common/util}/isSubset.d.ts +0 -0
- /package/{util → common/util}/isSubset.js +0 -0
- /package/{util → common/util}/trueModulo.d.ts +0 -0
- /package/{util → common/util}/trueModulo.js +0 -0
- /package/{util → common/util}/useControlledHover.d.ts +0 -0
- /package/{util → common/util}/useControlledHover.js +0 -0
- /package/{main → table/main}/ColHeaderCell/index.d.ts +0 -0
- /package/{selection → table/selection}/SelectionInput.js +0 -0
- /package/{style.css → table.css} +0 -0
- /package/{style.scss → table.scss} +0 -0
package/main/BodyRows.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import EditableRow from "../editing/EditableRow";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import getWidthStyle from "../util/getWidthStyle";
|
|
5
|
-
import SelectionInput from "../selection/SelectionInput";
|
|
6
|
-
var BodyRows = function (_a) {
|
|
7
|
-
var augFormattedRows = _a.augFormattedRows, _b = _a.gridSelectionFns, selectedSet = _b.selectedSet, getSelectInputModel = _b.getSelectInputModel, getSelectHandler = _b.getSelectHandler, getRowClickHandler = _b.getRowClickHandler, getAriaSelectedValue = _b.getAriaSelectedValue, unwrappedTableModel = _a.unwrappedStyles.unwrappedTableModel, _c = _a.combinedPipelineOutput, showSelectCol = _c.showSelectCol, ariaColIndexOffset = _c.ariaColIndexOffset, selectModel = _a.selectModel, editModel = _a.editModel, getInputStrSubmitCallback = _a.getInputStrSubmitCallback, additionalColIndexOffset = _a.additionalColIndexOffset, renderPrefixCells = _a.renderPrefixCells, additionalRowStyles = _a.additionalRowStyles;
|
|
8
|
-
return augFormattedRows.map(function (row, index) {
|
|
9
|
-
return (_jsxs(EditableRow, { onClick: getRowClickHandler(row.id), className: classNames({
|
|
10
|
-
"table-active": selectedSet.has(row.id),
|
|
11
|
-
}, unwrappedTableModel.tbodyTr(row.id, index), additionalRowStyles ? additionalRowStyles(row.id, index) : []), "aria-rowindex": row.prePaginationIndex + 2, dataRowId: row.id, "aria-selected": getAriaSelectedValue(row.id), ariaColIndexOffset: ariaColIndexOffset + (additionalColIndexOffset || 0), cellData: row.contents, updateCallback: getInputStrSubmitCallback && getInputStrSubmitCallback(row.id), deleteCallback: (editModel === null || editModel === void 0 ? void 0 : editModel.getDeleteCallback) && editModel.getDeleteCallback(row.id), dataCellClasses: function (colIndex) {
|
|
12
|
-
return unwrappedTableModel.tbodyTd(row.id, index, colIndex);
|
|
13
|
-
}, dataCellInputClasses: function (colIndex) {
|
|
14
|
-
return unwrappedTableModel.tbodyTdInput(row.id, index, colIndex);
|
|
15
|
-
}, editCellClasses: unwrappedTableModel.editColTd(row.id, index), saveButtonClasses: unwrappedTableModel.editSaveButton(row.id, index), deleteButtonClasses: unwrappedTableModel.editDeleteButton(row.id, index), startButtonClasses: unwrappedTableModel.editStartButton(row.id, index), cancelButtonClasses: unwrappedTableModel.editCancelButton(row.id, index), children: [renderPrefixCells && renderPrefixCells(row), showSelectCol && (_jsx("td", { className: classNames(unwrappedTableModel.rowSelectColTd(row.id, index)), "aria-colindex": 1 + (additionalColIndexOffset || 0), style: getWidthStyle(selectModel.selectColWidth), children: _jsx(SelectionInput, { index: index, selected: selectedSet.has(row.id), selectionInputModel: getSelectInputModel(row.id, selectModel), selectCallback: getSelectHandler(row.id), additionalClasses: unwrappedTableModel.rowSelectInput(row.id, index) }) }))] }, row.id));
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
export default BodyRows;
|
package/main/ToggleButton.d.ts
DELETED
package/main/ToggleButton.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
var ToggleButton = function (_a) {
|
|
5
|
-
var isActive = _a.isActive, label = _a.label, onClick = _a.onClick, classes = _a.classes;
|
|
6
|
-
var baseClasses = ["btn"];
|
|
7
|
-
var variableClasses = {
|
|
8
|
-
active: isActive,
|
|
9
|
-
};
|
|
10
|
-
return (_jsx("button", { type: "button", className: classNames(baseClasses, variableClasses, classes, {
|
|
11
|
-
"btn-primary": !(classes && classes.length > 0),
|
|
12
|
-
}), "aria-pressed": isActive, onClick: onClick, children: label }));
|
|
13
|
-
};
|
|
14
|
-
export default ToggleButton;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
var useEditableFromFilterState = function (filterState) {
|
|
3
|
-
return useMemo(function () {
|
|
4
|
-
if (filterState === null) {
|
|
5
|
-
return null;
|
|
6
|
-
}
|
|
7
|
-
var editableState = {};
|
|
8
|
-
Object.keys(filterState).forEach(function (columnName) {
|
|
9
|
-
editableState[columnName] = filterState[columnName].editableState;
|
|
10
|
-
});
|
|
11
|
-
return editableState;
|
|
12
|
-
}, [filterState]);
|
|
13
|
-
};
|
|
14
|
-
export default useEditableFromFilterState;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ColDef } from "../../types";
|
|
2
|
-
import { EditableTableFilterState, TableFilterState } from "../../filtering/types";
|
|
3
|
-
declare const useFilterStateFromEditable: (colDefs: ColDef[], editableFilterState: EditableTableFilterState | null) => TableFilterState | null;
|
|
4
|
-
export default useFilterStateFromEditable;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { AdditionalComponentsStyleModel, StyleModel, TableStyleModel } from "../styling/types";
|
|
2
|
-
export interface UseUnwrappedGridStylesHook {
|
|
3
|
-
unwrappedTableModel: Required<TableStyleModel>;
|
|
4
|
-
unwrappedAdditionalStyleModel: Required<AdditionalComponentsStyleModel>;
|
|
5
|
-
}
|
|
6
|
-
declare const UseUnwrappedGridStyles: (styleModel: StyleModel | undefined) => UseUnwrappedGridStylesHook;
|
|
7
|
-
export default UseUnwrappedGridStyles;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { useMemo } from "react";
|
|
2
|
-
import { unwrapAdditionalComponentsStyleModel, unwrapTableStyleModel, } from "../styling/styleModelUnwrappers";
|
|
3
|
-
var UseUnwrappedGridStyles = function (styleModel) {
|
|
4
|
-
// To give the developer the ability to specify between removing existing styles
|
|
5
|
-
// and simply adding additional ones, we should migrate off of this "unwrapped"
|
|
6
|
-
// design over time and instead apply logic based on the original params that
|
|
7
|
-
// can be undefined.
|
|
8
|
-
var unwrappedTableModel = useMemo(function () { return unwrapTableStyleModel(styleModel === null || styleModel === void 0 ? void 0 : styleModel.mainTableStyleModel); }, [styleModel === null || styleModel === void 0 ? void 0 : styleModel.mainTableStyleModel]);
|
|
9
|
-
var unwrappedAdditionalStyleModel = useMemo(function () {
|
|
10
|
-
return unwrapAdditionalComponentsStyleModel(styleModel === null || styleModel === void 0 ? void 0 : styleModel.additionalComponentsStyleModel);
|
|
11
|
-
}, [styleModel === null || styleModel === void 0 ? void 0 : styleModel.additionalComponentsStyleModel]);
|
|
12
|
-
return {
|
|
13
|
-
unwrappedTableModel: unwrappedTableModel,
|
|
14
|
-
unwrappedAdditionalStyleModel: unwrappedAdditionalStyleModel,
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export default UseUnwrappedGridStyles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AdditionalComponentsStyleModel, FilterInputTableStyleModel, TableStyleModel } from "./types";
|
|
2
|
-
export declare const unwrapTableStyleModel: (tableStyleModel: TableStyleModel | undefined) => Required<TableStyleModel>;
|
|
3
|
-
export declare const unwrapFilterInputTableStyleModel: (filterTableStyleModel: FilterInputTableStyleModel | undefined) => Required<FilterInputTableStyleModel>;
|
|
4
|
-
export declare const unwrapAdditionalComponentsStyleModel: (styleModel: AdditionalComponentsStyleModel | undefined) => Required<AdditionalComponentsStyleModel>;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var unwrapSharedStyleModel = function (sharedStyleModel) { return ({
|
|
13
|
-
table: (sharedStyleModel === null || sharedStyleModel === void 0 ? void 0 : sharedStyleModel.table) || [],
|
|
14
|
-
tbody: (sharedStyleModel === null || sharedStyleModel === void 0 ? void 0 : sharedStyleModel.tbody) || [],
|
|
15
|
-
thead: (sharedStyleModel === null || sharedStyleModel === void 0 ? void 0 : sharedStyleModel.thead) || [],
|
|
16
|
-
theadTr: (sharedStyleModel === null || sharedStyleModel === void 0 ? void 0 : sharedStyleModel.theadTr) || [],
|
|
17
|
-
theadTh: (sharedStyleModel === null || sharedStyleModel === void 0 ? void 0 : sharedStyleModel.theadTh) ? sharedStyleModel.theadTh : function () { return []; },
|
|
18
|
-
caption: (sharedStyleModel === null || sharedStyleModel === void 0 ? void 0 : sharedStyleModel.caption) || [],
|
|
19
|
-
}); };
|
|
20
|
-
export var unwrapTableStyleModel = function (tableStyleModel) { return (__assign(__assign({}, unwrapSharedStyleModel(tableStyleModel)), { tbodyTr: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.tbodyTr) ? tableStyleModel.tbodyTr : function () { return []; }, tbodyTd: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.tbodyTd) ? tableStyleModel.tbodyTd : function () { return []; }, tbodyTdInput: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.tbodyTdInput)
|
|
21
|
-
? tableStyleModel.tbodyTdInput
|
|
22
|
-
: function () { return []; }, editColTh: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.editColTh) || [], editColTd: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.editColTd) ? tableStyleModel.editColTd : function () { return []; }, editCancelButton: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.editCancelButton)
|
|
23
|
-
? tableStyleModel.editCancelButton
|
|
24
|
-
: function () { return []; }, editDeleteButton: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.editDeleteButton)
|
|
25
|
-
? tableStyleModel.editDeleteButton
|
|
26
|
-
: function () { return []; }, editSaveButton: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.editSaveButton)
|
|
27
|
-
? tableStyleModel.editSaveButton
|
|
28
|
-
: function () { return []; }, editStartButton: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.editStartButton)
|
|
29
|
-
? tableStyleModel.editStartButton
|
|
30
|
-
: function () { return []; }, rowSelectColTh: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.rowSelectColTh) || [], rowSelectColTd: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.rowSelectColTd)
|
|
31
|
-
? tableStyleModel.rowSelectColTd
|
|
32
|
-
: function () { return []; }, rowSelectInput: (tableStyleModel === null || tableStyleModel === void 0 ? void 0 : tableStyleModel.rowSelectInput)
|
|
33
|
-
? tableStyleModel.rowSelectInput
|
|
34
|
-
: function () { return []; } })); };
|
|
35
|
-
export var unwrapFilterInputTableStyleModel = function (filterTableStyleModel) { return (__assign(__assign({}, unwrapSharedStyleModel(filterTableStyleModel)), { tbodyTr: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.tbodyTr)
|
|
36
|
-
? filterTableStyleModel.tbodyTr
|
|
37
|
-
: function () { return []; }, tbodyTd: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.tbodyTd)
|
|
38
|
-
? filterTableStyleModel.tbodyTd
|
|
39
|
-
: function () { return []; }, enablementInput: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.enablementInput)
|
|
40
|
-
? filterTableStyleModel.enablementInput
|
|
41
|
-
: function () { return []; }, schemeSelectionInput: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.schemeSelectionInput)
|
|
42
|
-
? filterTableStyleModel.schemeSelectionInput
|
|
43
|
-
: function () { return []; }, searchStringInput: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.searchStringInput)
|
|
44
|
-
? filterTableStyleModel.searchStringInput
|
|
45
|
-
: function () { return []; }, numberInput: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.numberInput)
|
|
46
|
-
? filterTableStyleModel.numberInput
|
|
47
|
-
: function () { return []; }, startDateInput: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.startDateInput)
|
|
48
|
-
? filterTableStyleModel.startDateInput
|
|
49
|
-
: function () { return []; }, endDateInput: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.endDateInput)
|
|
50
|
-
? filterTableStyleModel.endDateInput
|
|
51
|
-
: function () { return []; }, submitButton: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.submitButton) || [], form: (filterTableStyleModel === null || filterTableStyleModel === void 0 ? void 0 : filterTableStyleModel.form) || [] })); };
|
|
52
|
-
export var unwrapAdditionalComponentsStyleModel = function (styleModel) { return ({
|
|
53
|
-
topLevelDiv: (styleModel === null || styleModel === void 0 ? void 0 : styleModel.topLevelDiv) || [],
|
|
54
|
-
filterInputsDiv: (styleModel === null || styleModel === void 0 ? void 0 : styleModel.filterInputsDiv) || [],
|
|
55
|
-
tableAndPaginationDiv: (styleModel === null || styleModel === void 0 ? void 0 : styleModel.tableAndPaginationDiv) || [],
|
|
56
|
-
filterUiToggleButton: (styleModel === null || styleModel === void 0 ? void 0 : styleModel.filterUiToggleButton) || [],
|
|
57
|
-
paginationUiDiv: (styleModel === null || styleModel === void 0 ? void 0 : styleModel.paginationUiDiv) || [],
|
|
58
|
-
}); };
|
package/styling/types.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { RowId } from "../types";
|
|
2
|
-
export interface SharedTableStyleModel {
|
|
3
|
-
table?: string[];
|
|
4
|
-
tbody?: string[];
|
|
5
|
-
thead?: string[];
|
|
6
|
-
theadTr?: string[];
|
|
7
|
-
theadTh?: (colIndex: number) => string[];
|
|
8
|
-
caption?: string[];
|
|
9
|
-
}
|
|
10
|
-
export type TableStyleModel = SharedTableStyleModel & {
|
|
11
|
-
tbodyTr?: (rowId: RowId, displayIndex: number) => string[];
|
|
12
|
-
tbodyTd?: (rowId: RowId, displayRowIndex: number, colIndex: number) => string[];
|
|
13
|
-
tbodyTdInput?: (rowId: RowId, displayRowIndex: number, colIndex: number) => string[];
|
|
14
|
-
editColTh?: string[];
|
|
15
|
-
editColTd?: (rowId: RowId, displayIndex: number) => string[];
|
|
16
|
-
editStartButton?: (rowId: RowId, displayIndex: number) => string[];
|
|
17
|
-
editDeleteButton?: (rowId: RowId, displayIndex: number) => string[];
|
|
18
|
-
editSaveButton?: (rowId: RowId, displayIndex: number) => string[];
|
|
19
|
-
editCancelButton?: (rowId: RowId, displayIndex: number) => string[];
|
|
20
|
-
rowSelectColTh?: string[];
|
|
21
|
-
rowSelectColTd?: (rowId: RowId, displayIndex: number) => string[];
|
|
22
|
-
rowSelectInput?: (rowId: RowId, displayIndex: number) => string[];
|
|
23
|
-
};
|
|
24
|
-
export type FilterInputTableStyleModel = SharedTableStyleModel & {
|
|
25
|
-
tbodyTr?: (rowIndex: number) => string[];
|
|
26
|
-
tbodyTd?: (rowIndex: number, colIndex: number) => string[];
|
|
27
|
-
enablementInput?: (rowIndex: number) => string[];
|
|
28
|
-
schemeSelectionInput?: (rowIndex: number) => string[];
|
|
29
|
-
searchStringInput?: (rowIndex: number) => string[];
|
|
30
|
-
numberInput?: (rowIndex: number) => string[];
|
|
31
|
-
startDateInput?: (rowIndex: number) => string[];
|
|
32
|
-
endDateInput?: (rowIndex: number) => string[];
|
|
33
|
-
submitButton?: string[];
|
|
34
|
-
form?: string[];
|
|
35
|
-
};
|
|
36
|
-
export interface AdditionalComponentsStyleModel {
|
|
37
|
-
topLevelDiv?: string[];
|
|
38
|
-
filterInputsDiv?: string[];
|
|
39
|
-
tableAndPaginationDiv?: string[];
|
|
40
|
-
filterUiToggleButton?: string[];
|
|
41
|
-
paginationUiDiv?: string[];
|
|
42
|
-
}
|
|
43
|
-
export interface ToolbarStyleModel {
|
|
44
|
-
activeButton?: string[];
|
|
45
|
-
inactiveButton?: string[];
|
|
46
|
-
toolbar?: string[];
|
|
47
|
-
interfaceContainer?: string[];
|
|
48
|
-
}
|
|
49
|
-
export interface ExportFormStyleModel {
|
|
50
|
-
legend?: string[];
|
|
51
|
-
radioContainer?: string[];
|
|
52
|
-
radioInput?: string[];
|
|
53
|
-
radioLabel?: string[];
|
|
54
|
-
submitButton?: string[];
|
|
55
|
-
}
|
|
56
|
-
export interface StyleModel {
|
|
57
|
-
mainTableStyleModel?: TableStyleModel;
|
|
58
|
-
filterInputTableStyleModel?: FilterInputTableStyleModel;
|
|
59
|
-
additionalComponentsStyleModel?: AdditionalComponentsStyleModel;
|
|
60
|
-
toolbarStyleModel?: ToolbarStyleModel;
|
|
61
|
-
exportFormStyleModel?: ExportFormStyleModel;
|
|
62
|
-
}
|
package/toolbar/types.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FilterOptionsTableProps } from "../filtering/FilterOptionsTable";
|
|
2
|
-
import { ToolbarInterfaces } from "./types";
|
|
3
|
-
import { ExportFormProps } from "../export/ExportForm";
|
|
4
|
-
export interface InterfaceParams {
|
|
5
|
-
filtering?: FilterOptionsTableProps;
|
|
6
|
-
exporting?: ExportFormProps;
|
|
7
|
-
}
|
|
8
|
-
declare const useInterfaces: (params: InterfaceParams) => ToolbarInterfaces;
|
|
9
|
-
export default useInterfaces;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{style.css → table.css}
RENAMED
|
File without changes
|
|
File without changes
|