@helpdice/ui 1.6.4 → 1.6.6
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/dist/index.js +6 -1
- package/dist/table/index.js +6 -1
- package/dist/table/table-body.d.ts +2 -1
- package/dist/table/table.d.ts +1 -0
- package/esm/table/table-body.d.ts +2 -1
- package/esm/table/table-body.js +2 -0
- package/esm/table/table.d.ts +1 -0
- package/esm/table/table.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44734,6 +44734,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
44734
44734
|
onRow = _ref.onRow,
|
|
44735
44735
|
onCell = _ref.onCell,
|
|
44736
44736
|
rowClassName = _ref.rowClassName,
|
|
44737
|
+
textPlaceholder = _ref.textPlaceholder,
|
|
44737
44738
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
44738
44739
|
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
44739
44740
|
_ref$readOnly = _ref.readOnly,
|
|
@@ -44841,6 +44842,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
44841
44842
|
colSpan: columns === null || columns === void 0 ? void 0 : columns.length
|
|
44842
44843
|
}, /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Placeholder, {
|
|
44843
44844
|
empty: true,
|
|
44845
|
+
textOnly: textPlaceholder,
|
|
44844
44846
|
msg: "No Entries Found"
|
|
44845
44847
|
})))));
|
|
44846
44848
|
}
|
|
@@ -44946,7 +44948,7 @@ var TableColumn = function TableColumn(columnProps) {
|
|
|
44946
44948
|
};
|
|
44947
44949
|
TableColumn.displayName = 'TableColumn';
|
|
44948
44950
|
|
|
44949
|
-
var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
44951
|
+
var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
44950
44952
|
function TableComponent(tableProps) {
|
|
44951
44953
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
44952
44954
|
var _ref = tableProps,
|
|
@@ -44978,6 +44980,8 @@ function TableComponent(tableProps) {
|
|
|
44978
44980
|
showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
|
|
44979
44981
|
_ref$stickyHeader = _ref.stickyHeader,
|
|
44980
44982
|
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
44983
|
+
_ref$textPlaceholder = _ref.textPlaceholder,
|
|
44984
|
+
textPlaceholder = _ref$textPlaceholder === void 0 ? false : _ref$textPlaceholder,
|
|
44981
44985
|
onSelected = _ref.onSelected,
|
|
44982
44986
|
dataLength = _ref.dataLength,
|
|
44983
44987
|
viewLength = _ref.viewLength,
|
|
@@ -45057,6 +45061,7 @@ function TableComponent(tableProps) {
|
|
|
45057
45061
|
emptyText: emptyText,
|
|
45058
45062
|
onRow: onRow,
|
|
45059
45063
|
onCell: onCell,
|
|
45064
|
+
textPlaceholder: textPlaceholder,
|
|
45060
45065
|
rowClassName: rowClassName,
|
|
45061
45066
|
rowDraggable: rowDraggable,
|
|
45062
45067
|
readOnly: readOnly,
|
package/dist/table/index.js
CHANGED
|
@@ -32012,6 +32012,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
32012
32012
|
onRow = _ref.onRow,
|
|
32013
32013
|
onCell = _ref.onCell,
|
|
32014
32014
|
rowClassName = _ref.rowClassName,
|
|
32015
|
+
textPlaceholder = _ref.textPlaceholder,
|
|
32015
32016
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
32016
32017
|
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
32017
32018
|
_ref$readOnly = _ref.readOnly,
|
|
@@ -32119,6 +32120,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
32119
32120
|
colSpan: columns === null || columns === void 0 ? void 0 : columns.length
|
|
32120
32121
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Placeholder, {
|
|
32121
32122
|
empty: true,
|
|
32123
|
+
textOnly: textPlaceholder,
|
|
32122
32124
|
msg: "No Entries Found"
|
|
32123
32125
|
})))));
|
|
32124
32126
|
}
|
|
@@ -32574,7 +32576,7 @@ var Pagination = withScale(PaginationComponent);
|
|
|
32574
32576
|
Pagination.Previous = PaginationPrevious;
|
|
32575
32577
|
Pagination.Next = PaginationNext;
|
|
32576
32578
|
|
|
32577
|
-
var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
32579
|
+
var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
32578
32580
|
function TableComponent(tableProps) {
|
|
32579
32581
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
32580
32582
|
var _ref = tableProps,
|
|
@@ -32606,6 +32608,8 @@ function TableComponent(tableProps) {
|
|
|
32606
32608
|
showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
|
|
32607
32609
|
_ref$stickyHeader = _ref.stickyHeader,
|
|
32608
32610
|
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
32611
|
+
_ref$textPlaceholder = _ref.textPlaceholder,
|
|
32612
|
+
textPlaceholder = _ref$textPlaceholder === void 0 ? false : _ref$textPlaceholder,
|
|
32609
32613
|
onSelected = _ref.onSelected,
|
|
32610
32614
|
dataLength = _ref.dataLength,
|
|
32611
32615
|
viewLength = _ref.viewLength,
|
|
@@ -32685,6 +32689,7 @@ function TableComponent(tableProps) {
|
|
|
32685
32689
|
emptyText: emptyText,
|
|
32686
32690
|
onRow: onRow,
|
|
32687
32691
|
onCell: onCell,
|
|
32692
|
+
textPlaceholder: textPlaceholder,
|
|
32688
32693
|
rowClassName: rowClassName,
|
|
32689
32694
|
rowDraggable: rowDraggable,
|
|
32690
32695
|
readOnly: readOnly,
|
|
@@ -7,6 +7,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
|
|
|
7
7
|
onCell?: TableOnCellClick<TableDataItem>;
|
|
8
8
|
data: Array<TableDataItem>;
|
|
9
9
|
className?: string;
|
|
10
|
+
textPlaceholder?: boolean;
|
|
10
11
|
rowClassName: TableRowClassNameHandler<TableDataItem>;
|
|
11
12
|
rowDraggable?: boolean;
|
|
12
13
|
readOnly?: boolean;
|
|
@@ -15,7 +16,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
|
|
|
15
16
|
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props<any>>;
|
|
16
17
|
export type TableBodyProps<TableDataItem extends TableDataItemBase> = Props<TableDataItem> & NativeAttrs;
|
|
17
18
|
declare const TableBody: {
|
|
18
|
-
<TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
|
|
19
|
+
<TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, textPlaceholder, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
|
|
19
20
|
displayName: string;
|
|
20
21
|
};
|
|
21
22
|
export default TableBody;
|
package/dist/table/table.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
|
|
|
17
17
|
readOnly?: boolean;
|
|
18
18
|
showFilters?: boolean;
|
|
19
19
|
stickyHeader?: boolean;
|
|
20
|
+
textPlaceholder?: boolean;
|
|
20
21
|
dataLength?: number;
|
|
21
22
|
viewLength?: number;
|
|
22
23
|
rowClassName?: TableRowClassNameHandler<TableDataItem>;
|
|
@@ -7,6 +7,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
|
|
|
7
7
|
onCell?: TableOnCellClick<TableDataItem>;
|
|
8
8
|
data: Array<TableDataItem>;
|
|
9
9
|
className?: string;
|
|
10
|
+
textPlaceholder?: boolean;
|
|
10
11
|
rowClassName: TableRowClassNameHandler<TableDataItem>;
|
|
11
12
|
rowDraggable?: boolean;
|
|
12
13
|
readOnly?: boolean;
|
|
@@ -15,7 +16,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
|
|
|
15
16
|
type NativeAttrs = Omit<React.HTMLAttributes<any>, keyof Props<any>>;
|
|
16
17
|
export type TableBodyProps<TableDataItem extends TableDataItemBase> = Props<TableDataItem> & NativeAttrs;
|
|
17
18
|
declare const TableBody: {
|
|
18
|
-
<TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
|
|
19
|
+
<TableDataItem extends TableDataItemBase>({ data, emptyText, onRow, onCell, rowClassName, textPlaceholder, rowDraggable, readOnly, onSelected }: TableBodyProps<TableDataItem>): React.JSX.Element;
|
|
19
20
|
displayName: string;
|
|
20
21
|
};
|
|
21
22
|
export default TableBody;
|
package/esm/table/table-body.js
CHANGED
|
@@ -15,6 +15,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
15
15
|
onRow = _ref.onRow,
|
|
16
16
|
onCell = _ref.onCell,
|
|
17
17
|
rowClassName = _ref.rowClassName,
|
|
18
|
+
textPlaceholder = _ref.textPlaceholder,
|
|
18
19
|
_ref$rowDraggable = _ref.rowDraggable,
|
|
19
20
|
rowDraggable = _ref$rowDraggable === void 0 ? false : _ref$rowDraggable,
|
|
20
21
|
_ref$readOnly = _ref.readOnly,
|
|
@@ -122,6 +123,7 @@ var TableBody = function TableBody(_ref) {
|
|
|
122
123
|
colSpan: columns === null || columns === void 0 ? void 0 : columns.length
|
|
123
124
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Placeholder, {
|
|
124
125
|
empty: true,
|
|
126
|
+
textOnly: textPlaceholder,
|
|
125
127
|
msg: "No Entries Found"
|
|
126
128
|
})))));
|
|
127
129
|
}
|
package/esm/table/table.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ interface Props<TableDataItem extends TableDataItemBase> {
|
|
|
17
17
|
readOnly?: boolean;
|
|
18
18
|
showFilters?: boolean;
|
|
19
19
|
stickyHeader?: boolean;
|
|
20
|
+
textPlaceholder?: boolean;
|
|
20
21
|
dataLength?: number;
|
|
21
22
|
viewLength?: number;
|
|
22
23
|
rowClassName?: TableRowClassNameHandler<TableDataItem>;
|
package/esm/table/table.js
CHANGED
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
4
4
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
5
|
-
var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
5
|
+
var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
6
6
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
7
7
|
/* "use client" */
|
|
8
8
|
|
|
@@ -50,6 +50,8 @@ function TableComponent(tableProps) {
|
|
|
50
50
|
showFilters = _ref$showFilters === void 0 ? false : _ref$showFilters,
|
|
51
51
|
_ref$stickyHeader = _ref.stickyHeader,
|
|
52
52
|
stickyHeader = _ref$stickyHeader === void 0 ? false : _ref$stickyHeader,
|
|
53
|
+
_ref$textPlaceholder = _ref.textPlaceholder,
|
|
54
|
+
textPlaceholder = _ref$textPlaceholder === void 0 ? false : _ref$textPlaceholder,
|
|
53
55
|
onSelected = _ref.onSelected,
|
|
54
56
|
dataLength = _ref.dataLength,
|
|
55
57
|
viewLength = _ref.viewLength,
|
|
@@ -129,6 +131,7 @@ function TableComponent(tableProps) {
|
|
|
129
131
|
emptyText: emptyText,
|
|
130
132
|
onRow: onRow,
|
|
131
133
|
onCell: onCell,
|
|
134
|
+
textPlaceholder: textPlaceholder,
|
|
132
135
|
rowClassName: rowClassName,
|
|
133
136
|
rowDraggable: rowDraggable,
|
|
134
137
|
readOnly: readOnly,
|