@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.
Files changed (162) hide show
  1. package/common/constants.d.ts +2 -0
  2. package/common/constants.js +2 -0
  3. package/common/editing/types.d.ts +7 -0
  4. package/{export → common/export}/ExportForm.d.ts +1 -0
  5. package/{export → common/export}/ExportForm.js +3 -3
  6. package/{filtering → common/filtering}/DateFilterRow.d.ts +4 -4
  7. package/{filtering → common/filtering}/DateFilterRow.js +1 -1
  8. package/common/filtering/FilterOptionsTable.d.ts +12 -0
  9. package/{filtering → common/filtering}/FilterOptionsTable.js +17 -20
  10. package/{filtering → common/filtering}/FilterRow.d.ts +4 -4
  11. package/{filtering → common/filtering}/FilterRow.js +1 -10
  12. package/{filtering → common/filtering}/NumberFilterRow.d.ts +3 -3
  13. package/{filtering → common/filtering}/NumberFilterRow.js +1 -1
  14. package/{filtering → common/filtering}/StringFilterRow.d.ts +3 -3
  15. package/{filtering → common/filtering}/StringFilterRow.js +1 -1
  16. package/{filtering → common/filtering}/types.d.ts +6 -6
  17. package/common/filtering/useFilterFormState.d.ts +3 -0
  18. package/{index.d.ts → common/index.d.ts} +8 -7
  19. package/{index.js → common/index.js} +8 -7
  20. package/{pagination → common/pagination}/PageSelector.d.ts +1 -1
  21. package/{pagination → common/pagination}/PageSizeSelector.d.ts +1 -1
  22. package/{pagination → common/pagination}/Pagination.d.ts +1 -1
  23. package/{pagination → common/pagination}/Pagination.js +6 -3
  24. package/{pagination → common/pagination}/types.d.ts +3 -2
  25. package/{pipeline → common/pipeline}/useAugFormattedRows.d.ts +1 -1
  26. package/common/pipeline/useColNameToWidth.d.ts +3 -0
  27. package/common/pipeline/useColNameToWidth.js +12 -0
  28. package/{pipeline → common/pipeline}/useCombinedPipeline/index.d.ts +4 -4
  29. package/{pipeline → common/pipeline}/useCombinedPipeline/useCurrentPageRows.d.ts +3 -3
  30. package/{pipeline → common/pipeline}/useCombinedPipeline/useDisplayRows.d.ts +1 -1
  31. package/{pipeline → common/pipeline}/useCombinedPipeline/useDisplayRows.js +1 -2
  32. package/common/pipeline/useCombinedPipeline/useFilter.d.ts +4 -0
  33. package/common/pipeline/useCombinedPipeline/useFilterStateFromEditable.d.ts +4 -0
  34. package/{pipeline → common/pipeline}/useCombinedPipeline/useSortedRows.d.ts +2 -2
  35. package/{pipeline → common/pipeline}/useGridSelectionFns.d.ts +2 -2
  36. package/{sorting → common/sorting}/types.d.ts +3 -3
  37. package/{main/ColHeaderCell → common/sorting}/useSortHeaderStates.d.ts +2 -2
  38. package/{main/ColHeaderCell → common/sorting}/useSortHeaderStates.js +4 -4
  39. package/common/styling/types.d.ts +21 -0
  40. package/{toolbar → common/toolbar}/ToolbarContainer.d.ts +2 -2
  41. package/{toolbar → common/toolbar}/ToolbarContainer.js +11 -7
  42. package/common/toolbar/types.d.ts +11 -0
  43. package/common/toolbar/useInterfaces.d.ts +3 -0
  44. package/{toolbar → common/toolbar}/useInterfaces.js +9 -6
  45. package/{types.d.ts → common/types.d.ts} +24 -34
  46. package/common/util/index.d.ts +5 -0
  47. package/common/util/index.js +5 -0
  48. package/community/index.d.ts +4 -0
  49. package/community/index.js +4 -0
  50. package/grid/constants.d.ts +2 -0
  51. package/grid/constants.js +2 -0
  52. package/grid/index.d.ts +3 -0
  53. package/grid/index.js +3 -0
  54. package/{Grid.d.ts → grid/main/Grid.d.ts} +0 -1
  55. package/grid/main/Grid.js +60 -0
  56. package/grid/main/GridBody.d.ts +4 -0
  57. package/grid/main/GridBody.js +17 -0
  58. package/grid/main/GridHeader.d.ts +4 -0
  59. package/grid/main/GridHeader.js +12 -0
  60. package/grid/main/getWidthStyles.d.ts +3 -0
  61. package/grid/main/getWidthStyles.js +6 -0
  62. package/grid/main/types.d.ts +32 -0
  63. package/grid/main/types.js +1 -0
  64. package/grid.css +1 -0
  65. package/grid.scss +231 -0
  66. package/package.json +1 -1
  67. package/table/InternalTable.d.ts +21 -0
  68. package/table/InternalTable.js +59 -0
  69. package/table/Table.d.ts +5 -0
  70. package/{Grid.js → table/Table.js} +11 -21
  71. package/{editing → table/editing}/EditControlsCell.d.ts +5 -5
  72. package/table/editing/EditControlsCell.js +11 -0
  73. package/{editing → table/editing}/EditableRow.d.ts +8 -9
  74. package/{editing → table/editing}/EditableRow.js +3 -3
  75. package/table/index.d.ts +5 -0
  76. package/table/index.js +5 -0
  77. package/table/main/BodyRows.d.ts +22 -0
  78. package/table/main/BodyRows.js +34 -0
  79. package/{main → table/main}/ColHeaderCell/index.js +3 -3
  80. package/{selection → table/selection}/SelectAllHeaderCell.d.ts +2 -2
  81. package/{selection → table/selection}/SelectAllHeaderCell.js +2 -4
  82. package/{selection → table/selection}/SelectionInput.d.ts +1 -1
  83. package/table/styling/types.d.ts +41 -0
  84. package/table/styling/types.js +1 -0
  85. package/table/types.d.ts +19 -0
  86. package/table/types.js +1 -0
  87. package/InternalGrid.d.ts +0 -23
  88. package/InternalGrid.js +0 -57
  89. package/editing/EditControlsCell.js +0 -19
  90. package/editing/types.d.ts +0 -16
  91. package/filtering/FilterOptionsTable.d.ts +0 -11
  92. package/filtering/useFilterFormState.d.ts +0 -3
  93. package/main/BodyRows.d.ts +0 -22
  94. package/main/BodyRows.js +0 -18
  95. package/main/ToggleButton.d.ts +0 -9
  96. package/main/ToggleButton.js +0 -14
  97. package/pipeline/useCombinedPipeline/useEditableFromFilterState.d.ts +0 -3
  98. package/pipeline/useCombinedPipeline/useEditableFromFilterState.js +0 -14
  99. package/pipeline/useCombinedPipeline/useFilter.d.ts +0 -4
  100. package/pipeline/useCombinedPipeline/useFilterStateFromEditable.d.ts +0 -4
  101. package/pipeline/useUnwrappedGridStyles.d.ts +0 -7
  102. package/pipeline/useUnwrappedGridStyles.js +0 -17
  103. package/styling/styleModelUnwrappers.d.ts +0 -4
  104. package/styling/styleModelUnwrappers.js +0 -58
  105. package/styling/types.d.ts +0 -62
  106. package/toolbar/types.d.ts +0 -3
  107. package/toolbar/useInterfaces.d.ts +0 -9
  108. /package/{editing → common/editing}/inputStrsToRowData.d.ts +0 -0
  109. /package/{editing → common/editing}/inputStrsToRowData.js +0 -0
  110. /package/{editing → common/editing}/types.js +0 -0
  111. /package/{export → common/export}/types.d.ts +0 -0
  112. /package/{export → common/export}/types.js +0 -0
  113. /package/{export → common/export}/useExportFn.d.ts +0 -0
  114. /package/{export → common/export}/useExportFn.js +0 -0
  115. /package/{filtering → common/filtering}/types.js +0 -0
  116. /package/{filtering → common/filtering}/useFilterFormState.js +0 -0
  117. /package/{pagination → common/pagination}/PageSelector.js +0 -0
  118. /package/{pagination → common/pagination}/PageSizeSelector.js +0 -0
  119. /package/{pagination → common/pagination}/types.js +0 -0
  120. /package/{pipeline → common/pipeline}/types.d.ts +0 -0
  121. /package/{pipeline → common/pipeline}/types.js +0 -0
  122. /package/{pipeline → common/pipeline}/useAugFormattedRows.js +0 -0
  123. /package/{pipeline → common/pipeline}/useCombinedPipeline/index.js +0 -0
  124. /package/{pipeline → common/pipeline}/useCombinedPipeline/useCurrentPageRows.js +0 -0
  125. /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilter.js +0 -0
  126. /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilterStateFromEditable.js +0 -0
  127. /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilterStateStore.d.ts +0 -0
  128. /package/{pipeline → common/pipeline}/useCombinedPipeline/useFilterStateStore.js +0 -0
  129. /package/{pipeline → common/pipeline}/useCombinedPipeline/useSortedRows.js +0 -0
  130. /package/{pipeline → common/pipeline}/useGetInputStrSubmitCallback.d.ts +0 -0
  131. /package/{pipeline → common/pipeline}/useGetInputStrSubmitCallback.js +0 -0
  132. /package/{pipeline → common/pipeline}/useGridSelectionFns.js +0 -0
  133. /package/{selection → common/selection}/types.d.ts +0 -0
  134. /package/{selection → common/selection}/types.js +0 -0
  135. /package/{sorting → common/sorting}/arrowPlaceholder.d.ts +0 -0
  136. /package/{sorting → common/sorting}/arrowPlaceholder.js +0 -0
  137. /package/{sorting → common/sorting}/downArrow.d.ts +0 -0
  138. /package/{sorting → common/sorting}/downArrow.js +0 -0
  139. /package/{sorting → common/sorting}/sortOrderToAriaSort.d.ts +0 -0
  140. /package/{sorting → common/sorting}/sortOrderToAriaSort.js +0 -0
  141. /package/{sorting → common/sorting}/types.js +0 -0
  142. /package/{sorting → common/sorting}/upArrow.d.ts +0 -0
  143. /package/{sorting → common/sorting}/upArrow.js +0 -0
  144. /package/{styling → common/styling}/types.js +0 -0
  145. /package/{toolbar → common/toolbar}/Toolbar.d.ts +0 -0
  146. /package/{toolbar → common/toolbar}/Toolbar.js +0 -0
  147. /package/{toolbar → common/toolbar}/types.js +0 -0
  148. /package/{types.js → common/types.js} +0 -0
  149. /package/{util → common/util}/datetime.d.ts +0 -0
  150. /package/{util → common/util}/datetime.js +0 -0
  151. /package/{util → common/util}/getWidthStyle.d.ts +0 -0
  152. /package/{util → common/util}/getWidthStyle.js +0 -0
  153. /package/{util → common/util}/isSubset.d.ts +0 -0
  154. /package/{util → common/util}/isSubset.js +0 -0
  155. /package/{util → common/util}/trueModulo.d.ts +0 -0
  156. /package/{util → common/util}/trueModulo.js +0 -0
  157. /package/{util → common/util}/useControlledHover.d.ts +0 -0
  158. /package/{util → common/util}/useControlledHover.js +0 -0
  159. /package/{main → table/main}/ColHeaderCell/index.d.ts +0 -0
  160. /package/{selection → table/selection}/SelectionInput.js +0 -0
  161. /package/{style.css → table.css} +0 -0
  162. /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;
@@ -1,9 +0,0 @@
1
- import { FC } from "react";
2
- export interface ToggleButtonProps {
3
- isActive: boolean;
4
- label: string;
5
- onClick: () => void;
6
- classes?: string[];
7
- }
8
- declare const ToggleButton: FC<ToggleButtonProps>;
9
- export default ToggleButton;
@@ -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,3 +0,0 @@
1
- import { EditableTableFilterState, TableFilterState } from "../../filtering/types";
2
- declare const useEditableFromFilterState: (filterState: TableFilterState | null) => EditableTableFilterState | null;
3
- export default useEditableFromFilterState;
@@ -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 { AugRowDef, RowDef } from "../../types";
2
- import { EditableTableFilterState } from "../../filtering/types";
3
- declare const useFilter: (rows: RowDef[], filterState: EditableTableFilterState | null) => AugRowDef[];
4
- export default useFilter;
@@ -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
- }); };
@@ -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
- }
@@ -1,3 +0,0 @@
1
- import { ReactNode } from "react";
2
- export type ToolbarOption = "filtering" | "exporting";
3
- export type ToolbarInterfaces = Partial<Record<ToolbarOption, ReactNode>>;
@@ -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