@digital-ai/dot-components 2.12.1 → 2.13.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/CHANGE_LOG.md +21 -9
- package/index.esm.js +6 -5
- package/index.umd.js +7 -5
- package/lib/components/table/Table.d.ts +5 -1
- package/lib/components/table/Table.stories.d.ts +2 -1
- package/package.json +1 -1
package/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [2.13.0](https://www.npmjs.com/package/@digital-ai/dot-components) (08/13/2023)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.12.1...2.13.0)
|
|
6
|
+
|
|
7
|
+
**Features:**
|
|
8
|
+
|
|
9
|
+
- S-95094: `DotTable` - Expose `rowsPerPageOptions` and `labelRowsPerPage` [\#1583](https://github.com/digital-ai/dot-components/pull/1583) ([dmiletic85](https://github.com/dmiletic85))
|
|
10
|
+
|
|
11
|
+
**Fixed bugs:**
|
|
12
|
+
|
|
13
|
+
- D-26200: `DotMenu` has an extra empty space [\#1585](https://github.com/digital-ai/dot-components/pull/1585) ([dmiletic85](https://github.com/dmiletic85))
|
|
14
|
+
- D-26197: `DotTable`, `DotTableActions`: Hovered action buttons are not displayed properly within list item [\#1584](https://github.com/digital-ai/dot-components/pull/1584) ([dmiletic85](https://github.com/dmiletic85))
|
|
15
|
+
|
|
3
16
|
## [2.12.1](https://www.npmjs.com/package/@digital-ai/dot-components) (08/07/2023)
|
|
4
17
|
|
|
5
18
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/2.12.0...2.12.1)
|
|
@@ -688,7 +701,6 @@
|
|
|
688
701
|
**Features:**
|
|
689
702
|
|
|
690
703
|
- S-85293: `SplitButton` Improvements [\#1201](https://github.com/digital-ai/dot-components/pull/1201) ([dmiletic85](https://github.com/dmiletic85))
|
|
691
|
-
- S-85283: `InlineEdit` component should provide a tooltip out the box [\#1181](https://github.com/digital-ai/dot-components/pull/1181) ([dmiletic85](https://github.com/dmiletic85))
|
|
692
704
|
|
|
693
705
|
**Fixed bugs:**
|
|
694
706
|
|
|
@@ -720,6 +732,7 @@
|
|
|
720
732
|
**Features:**
|
|
721
733
|
|
|
722
734
|
- S-84117: As a customer admin, I want the IdP creation flow to be more intuitive, as I find the existing user flow a little overwhelming [\#1185](https://github.com/digital-ai/dot-components/pull/1185) ([ryangamble](https://github.com/ryangamble))
|
|
735
|
+
- S-85283: `InlineEdit` component should provide a tooltip out the box [\#1181](https://github.com/digital-ai/dot-components/pull/1181) ([dmiletic85](https://github.com/dmiletic85))
|
|
723
736
|
|
|
724
737
|
**Fixed bugs:**
|
|
725
738
|
|
|
@@ -730,6 +743,10 @@
|
|
|
730
743
|
|
|
731
744
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.17.0...1.17.1)
|
|
732
745
|
|
|
746
|
+
**Fixed bugs:**
|
|
747
|
+
|
|
748
|
+
- D-21287: `DotButtonToggle`: Button size is not respected after tooltip change [\#1171](https://github.com/digital-ai/dot-components/pull/1171) ([dmiletic85](https://github.com/dmiletic85))
|
|
749
|
+
|
|
733
750
|
## [1.17.0](https://www.npmjs.com/package/@digital-ai/dot-components) (05/18/2022)
|
|
734
751
|
|
|
735
752
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.16.1...1.17.0)
|
|
@@ -740,7 +757,6 @@
|
|
|
740
757
|
|
|
741
758
|
**Fixed bugs:**
|
|
742
759
|
|
|
743
|
-
- D-21287: `DotButtonToggle`: Button size is not respected after tooltip change [\#1171](https://github.com/digital-ai/dot-components/pull/1171) ([dmiletic85](https://github.com/dmiletic85))
|
|
744
760
|
- D-21265: `helperText` on input fields shouldn't be bold [\#1167](https://github.com/digital-ai/dot-components/pull/1167) ([dmiletic85](https://github.com/dmiletic85))
|
|
745
761
|
|
|
746
762
|
**Misc:**
|
|
@@ -1050,6 +1066,7 @@
|
|
|
1050
1066
|
- D-19378: `AutoComplete` doesn't have `required` property [\#914](https://github.com/digital-ai/dot-components/pull/914) ([dmiletic85](https://github.com/dmiletic85))
|
|
1051
1067
|
- D-19376: `Menu`: `maxVisibleItems` prop does not control visible items anymore [\#911](https://github.com/digital-ai/dot-components/pull/911) ([dmiletic85](https://github.com/dmiletic85))
|
|
1052
1068
|
- D-19366: `Menu`: Circular dependency [\#909](https://github.com/digital-ai/dot-components/pull/909) ([dmiletic85](https://github.com/dmiletic85))
|
|
1069
|
+
- D-19355: `Breadcrumbs`: invalid combination of props [\#907](https://github.com/digital-ai/dot-components/pull/907) ([dmiletic85](https://github.com/dmiletic85))
|
|
1053
1070
|
- D-19129: `Table`: Cells in the Table component should be wrapped by `DotTypography` [\#900](https://github.com/digital-ai/dot-components/pull/900) ([dmiletic85](https://github.com/dmiletic85))
|
|
1054
1071
|
|
|
1055
1072
|
## [1.5.4](https://www.npmjs.com/package/@digital-ai/dot-components) (12/28/2021)
|
|
@@ -1064,7 +1081,6 @@
|
|
|
1064
1081
|
|
|
1065
1082
|
**Fixed bugs:**
|
|
1066
1083
|
|
|
1067
|
-
- D-19355: `Breadcrumbs`: invalid combination of props [\#907](https://github.com/digital-ai/dot-components/pull/907) ([dmiletic85](https://github.com/dmiletic85))
|
|
1068
1084
|
- D-19337: `List`: Circular dependency [\#897](https://github.com/digital-ai/dot-components/pull/897) ([dmiletic85](https://github.com/dmiletic85))
|
|
1069
1085
|
- D-19330: `AppToolbar` shouldn't have grey dividers [\#891](https://github.com/digital-ai/dot-components/pull/891) ([dmiletic85](https://github.com/dmiletic85))
|
|
1070
1086
|
- D-19200: `List` Nested list drawer is not rendering correctly [\#869](https://github.com/digital-ai/dot-components/pull/869) ([dmiletic85](https://github.com/dmiletic85))
|
|
@@ -1169,7 +1185,6 @@
|
|
|
1169
1185
|
|
|
1170
1186
|
**Features:**
|
|
1171
1187
|
|
|
1172
|
-
- S-80473: Expose onFocus and onBlur callbacks for DotInputText and DotInputSelect components [\#832](https://github.com/digital-ai/dot-components/pull/832) ([selsemore](https://github.com/selsemore))
|
|
1173
1188
|
- S-80268: `DotDynamicForm` improvements [\#821](https://github.com/digital-ai/dot-components/pull/821) ([dmiletic85](https://github.com/dmiletic85))
|
|
1174
1189
|
|
|
1175
1190
|
**Fixed bugs:**
|
|
@@ -1183,6 +1198,7 @@
|
|
|
1183
1198
|
|
|
1184
1199
|
**Features:**
|
|
1185
1200
|
|
|
1201
|
+
- S-80473: Expose onFocus and onBlur callbacks for DotInputText and DotInputSelect components [\#832](https://github.com/digital-ai/dot-components/pull/832) ([selsemore](https://github.com/selsemore))
|
|
1186
1202
|
- S-80369: Create `ProgressButton` component [\#822](https://github.com/digital-ai/dot-components/pull/822) ([dmiletic85](https://github.com/dmiletic85))
|
|
1187
1203
|
- S-79696: change size of collapse icon button, add tooltip [\#819](https://github.com/digital-ai/dot-components/pull/819) ([CWSites](https://github.com/CWSites))
|
|
1188
1204
|
- S-80264: Agility wrapper sandbox documentation [\#810](https://github.com/digital-ai/dot-components/pull/810) ([CWSites](https://github.com/CWSites))
|
|
@@ -1495,6 +1511,7 @@
|
|
|
1495
1511
|
- S-76838: address Sonarcloud code issues [\#608](https://github.com/digital-ai/dot-components/pull/608) ([CWSites](https://github.com/CWSites))
|
|
1496
1512
|
- S-77317: Add 'height' prop to DotDrawer component [\#603](https://github.com/digital-ai/dot-components/pull/603) ([selsemore](https://github.com/selsemore))
|
|
1497
1513
|
- Update GitHub prerelease [\#599](https://github.com/digital-ai/dot-components/pull/599) ([CWSites](https://github.com/CWSites))
|
|
1514
|
+
- S-76917: remove progressionBoard styles from theme provider [\#597](https://github.com/digital-ai/dot-components/pull/597) ([CWSites](https://github.com/CWSites))
|
|
1498
1515
|
|
|
1499
1516
|
## [1.0.3](https://www.npmjs.com/package/@digital-ai/dot-components) (07/27/2021)
|
|
1500
1517
|
|
|
@@ -1504,17 +1521,12 @@
|
|
|
1504
1521
|
|
|
1505
1522
|
[Full Changelog](https://digital-ai.github.io/dot-components/?path=/story/introduction--page/digital-ai/dot-components/compare/1.0.1...1.0.2)
|
|
1506
1523
|
|
|
1507
|
-
**Breaking changes:**
|
|
1508
|
-
|
|
1509
|
-
- S-76919: cleaning up props used with various form elements [\#606](https://github.com/digital-ai/dot-components/pull/606) ([CWSites](https://github.com/CWSites))
|
|
1510
|
-
|
|
1511
1524
|
**Features:**
|
|
1512
1525
|
|
|
1513
1526
|
- S-76914: optional prop for truncating accordion summary to one line [\#590](https://github.com/digital-ai/dot-components/pull/590) ([CWSites](https://github.com/CWSites))
|
|
1514
1527
|
|
|
1515
1528
|
**Misc:**
|
|
1516
1529
|
|
|
1517
|
-
- S-76917: remove progressionBoard styles from theme provider [\#597](https://github.com/digital-ai/dot-components/pull/597) ([CWSites](https://github.com/CWSites))
|
|
1518
1530
|
- S-76905: add disablePortal prop to SplitButton and set z-index for SplitButton menu [\#596](https://github.com/digital-ai/dot-components/pull/596) ([selsemore](https://github.com/selsemore))
|
|
1519
1531
|
- S-76905: fix error upon selection of split button option with non-numeric key [\#595](https://github.com/digital-ai/dot-components/pull/595) ([selsemore](https://github.com/selsemore))
|
|
1520
1532
|
- updating github workflow to default to patch release [\#593](https://github.com/digital-ai/dot-components/pull/593) ([CWSites](https://github.com/CWSites))
|
package/index.esm.js
CHANGED
|
@@ -2051,8 +2051,7 @@ const calculateMaxHeight = ({
|
|
|
2051
2051
|
height
|
|
2052
2052
|
}) => {
|
|
2053
2053
|
const customItemHeight = height ? height : itemHeight;
|
|
2054
|
-
|
|
2055
|
-
maxHeight += customItemHeight + 3;
|
|
2054
|
+
maxHeight += customItemHeight;
|
|
2056
2055
|
});
|
|
2057
2056
|
return maxHeight;
|
|
2058
2057
|
};
|
|
@@ -8844,6 +8843,7 @@ const DotTable = ({
|
|
|
8844
8843
|
emptyMessage,
|
|
8845
8844
|
footerTypography: _footerTypography = TABLE_TYPOGRAPHY_VARIANT,
|
|
8846
8845
|
headerTypography: _headerTypography = TABLE_TYPOGRAPHY_VARIANT,
|
|
8846
|
+
labelRowsPerPage,
|
|
8847
8847
|
loading: _loading = false,
|
|
8848
8848
|
maxHeight,
|
|
8849
8849
|
multiSelect,
|
|
@@ -8853,6 +8853,7 @@ const DotTable = ({
|
|
|
8853
8853
|
onUpdateData,
|
|
8854
8854
|
page: _page = 0,
|
|
8855
8855
|
rowsPerPage,
|
|
8856
|
+
rowsPerPageOptions,
|
|
8856
8857
|
stickyHeader: _stickyHeader = true,
|
|
8857
8858
|
sortable: _sortable = true,
|
|
8858
8859
|
toolbar
|
|
@@ -9007,10 +9008,12 @@ const DotTable = ({
|
|
|
9007
9008
|
}), void 0)
|
|
9008
9009
|
}), void 0), rowsPerPage && jsx(DotTablePagination, {
|
|
9009
9010
|
count: getTotalCount(),
|
|
9011
|
+
labelRowsPerPage: labelRowsPerPage,
|
|
9010
9012
|
onPageChange: onPageChange,
|
|
9011
9013
|
onRowsPerPageChange: onRowsPerPageChange,
|
|
9012
9014
|
page: tablePage,
|
|
9013
9015
|
rowsPerPage: tableRowsPerPage,
|
|
9016
|
+
rowsPerPageOptions: rowsPerPageOptions,
|
|
9014
9017
|
typography: _footerTypography
|
|
9015
9018
|
}, void 0)]
|
|
9016
9019
|
}), void 0);
|
|
@@ -9058,9 +9061,7 @@ const TableActionsContainer = styled.div.withConfig({
|
|
|
9058
9061
|
const StyledMenu = styled(DotMenu).withConfig({
|
|
9059
9062
|
displayName: "TableActionsstyles__StyledMenu",
|
|
9060
9063
|
componentId: "sc-8lo813-1"
|
|
9061
|
-
})(["", ""], ({
|
|
9062
|
-
theme
|
|
9063
|
-
}) => css(["&.dot-menu .table-menu-button{margin-left:0;padding-left:0;&:hover{background-color:", ";}}"], theme.palette.grey[50]));
|
|
9064
|
+
})(["", ""], () => css(["&.dot-menu .table-menu-button{margin-left:0;padding-left:0;&:hover{background-color:transparent;}}"]));
|
|
9064
9065
|
|
|
9065
9066
|
const DotTableActions = ({
|
|
9066
9067
|
actions,
|
package/index.umd.js
CHANGED
|
@@ -2312,8 +2312,7 @@
|
|
|
2312
2312
|
visibleItems.forEach(function (_a) {
|
|
2313
2313
|
var height = _a.height;
|
|
2314
2314
|
var customItemHeight = height ? height : itemHeight;
|
|
2315
|
-
|
|
2316
|
-
maxHeight += customItemHeight + 3;
|
|
2315
|
+
maxHeight += customItemHeight;
|
|
2317
2316
|
});
|
|
2318
2317
|
return maxHeight;
|
|
2319
2318
|
};
|
|
@@ -9600,6 +9599,7 @@
|
|
|
9600
9599
|
footerTypography = _c === void 0 ? TABLE_TYPOGRAPHY_VARIANT : _c,
|
|
9601
9600
|
_d = _a.headerTypography,
|
|
9602
9601
|
headerTypography = _d === void 0 ? TABLE_TYPOGRAPHY_VARIANT : _d,
|
|
9602
|
+
labelRowsPerPage = _a.labelRowsPerPage,
|
|
9603
9603
|
_e = _a.loading,
|
|
9604
9604
|
loading = _e === void 0 ? false : _e,
|
|
9605
9605
|
maxHeight = _a.maxHeight,
|
|
@@ -9612,6 +9612,7 @@
|
|
|
9612
9612
|
_g = _a.page,
|
|
9613
9613
|
page = _g === void 0 ? 0 : _g,
|
|
9614
9614
|
rowsPerPage = _a.rowsPerPage,
|
|
9615
|
+
rowsPerPageOptions = _a.rowsPerPageOptions,
|
|
9615
9616
|
_h = _a.stickyHeader,
|
|
9616
9617
|
stickyHeader = _h === void 0 ? true : _h,
|
|
9617
9618
|
_j = _a.sortable,
|
|
@@ -9777,10 +9778,12 @@
|
|
|
9777
9778
|
}), void 0)
|
|
9778
9779
|
}), void 0), rowsPerPage && jsxRuntime.jsx(DotTablePagination, {
|
|
9779
9780
|
count: getTotalCount(),
|
|
9781
|
+
labelRowsPerPage: labelRowsPerPage,
|
|
9780
9782
|
onPageChange: onPageChange,
|
|
9781
9783
|
onRowsPerPageChange: onRowsPerPageChange,
|
|
9782
9784
|
page: tablePage,
|
|
9783
9785
|
rowsPerPage: tableRowsPerPage,
|
|
9786
|
+
rowsPerPageOptions: rowsPerPageOptions,
|
|
9784
9787
|
typography: footerTypography
|
|
9785
9788
|
}, void 0)]
|
|
9786
9789
|
}), void 0);
|
|
@@ -9828,9 +9831,8 @@
|
|
|
9828
9831
|
var StyledMenu = styled__default["default"](DotMenu).withConfig({
|
|
9829
9832
|
displayName: "TableActionsstyles__StyledMenu",
|
|
9830
9833
|
componentId: "sc-8lo813-1"
|
|
9831
|
-
})(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (
|
|
9832
|
-
|
|
9833
|
-
return styled.css(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n &.dot-menu .table-menu-button {\n margin-left: 0;\n padding-left: 0;\n &:hover {\n background-color: ", ";\n }\n }\n "], ["\n &.dot-menu .table-menu-button {\n margin-left: 0;\n padding-left: 0;\n &:hover {\n background-color: ", ";\n }\n }\n "])), theme.palette.grey[50]);
|
|
9834
|
+
})(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function () {
|
|
9835
|
+
return styled.css(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n &.dot-menu .table-menu-button {\n margin-left: 0;\n padding-left: 0;\n &:hover {\n background-color: transparent;\n }\n }\n "], ["\n &.dot-menu .table-menu-button {\n margin-left: 0;\n padding-left: 0;\n &:hover {\n background-color: transparent;\n }\n }\n "])));
|
|
9834
9836
|
});
|
|
9835
9837
|
var templateObject_1$8, templateObject_2$7, templateObject_3$3;
|
|
9836
9838
|
|
|
@@ -32,6 +32,8 @@ export interface TableProps extends CommonProps {
|
|
|
32
32
|
footerTypography?: TypographyVariant;
|
|
33
33
|
/** Typography variant which will be used for table header cell values **/
|
|
34
34
|
headerTypography?: TypographyVariant;
|
|
35
|
+
/** Customize the rows per page label. Default is 'Rows per page:' */
|
|
36
|
+
labelRowsPerPage?: ReactNode;
|
|
35
37
|
/** Table is loading */
|
|
36
38
|
loading?: boolean;
|
|
37
39
|
/** Maximum height of table container */
|
|
@@ -50,6 +52,8 @@ export interface TableProps extends CommonProps {
|
|
|
50
52
|
page?: number;
|
|
51
53
|
/** Rows per page for paginated table */
|
|
52
54
|
rowsPerPage?: RowsPerPageOption;
|
|
55
|
+
/** Customizes the options of the rows per page select field. Default: [10, 25, 50, 100, 150, 200] */
|
|
56
|
+
rowsPerPageOptions?: number[];
|
|
53
57
|
/** Table is sortable */
|
|
54
58
|
sortable?: boolean;
|
|
55
59
|
/** Table header is sticky */
|
|
@@ -64,4 +68,4 @@ export declare function stableSort<T>(array: T[], comparator: (order: T, orderBy
|
|
|
64
68
|
* A wrapper component around the Table component from @material-ui. This component can be used for
|
|
65
69
|
* creating a common structure for tables in the system.
|
|
66
70
|
*/
|
|
67
|
-
export declare const DotTable: ({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element;
|
|
71
|
+
export declare const DotTable: ({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, labelRowsPerPage, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, rowsPerPageOptions, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Story, ComponentMeta } from '@storybook/react';
|
|
2
2
|
import { TableProps } from './Table';
|
|
3
|
-
declare const _default: ComponentMeta<({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element>;
|
|
3
|
+
declare const _default: ComponentMeta<({ ariaLabel, bodyTypography, className, columns, count, data, "data-testid": dataTestId, emptyMessage, footerTypography, headerTypography, labelRowsPerPage, loading, maxHeight, multiSelect, order, orderBy, onRowClick, onUpdateData, page, rowsPerPage, rowsPerPageOptions, stickyHeader, sortable, toolbar, }: TableProps) => JSX.Element>;
|
|
4
4
|
export default _default;
|
|
5
5
|
export declare const Default: Story;
|
|
6
6
|
export declare const LocallyPaginatedTable: Story;
|
|
@@ -8,3 +8,4 @@ export declare const RemotelyPaginatedTable: Story;
|
|
|
8
8
|
export declare const WithActionMenu: Story;
|
|
9
9
|
export declare const WithCheckboxSelection: Story;
|
|
10
10
|
export declare const EmptyTable: Story;
|
|
11
|
+
export declare const WithCustomPaginationOptions: Story;
|