@synerise/ds-table 1.5.12 → 1.6.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 +19 -0
- package/dist/Cell/TagsGroup/TagsGroup.d.ts +3 -0
- package/dist/Cell/TagsGroup/TagsGroup.js +24 -0
- package/dist/Cell/TagsGroup/TagsGroup.spec.d.ts +1 -0
- package/dist/Cell/TagsGroup/TagsGroup.styles.d.ts +4 -0
- package/dist/Cell/TagsGroup/TagsGroup.styles.js +9 -0
- package/dist/Cell/TagsGroup/TagsGroup.types.d.ts +6 -0
- package/dist/Cell/TagsGroup/TagsGroup.types.js +1 -0
- package/dist/Cell/index.d.ts +2 -1
- package/dist/Cell/index.js +2 -1
- package/dist/Table.types.d.ts +6 -6
- package/package.json +19 -21
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.6.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.5.13...@synerise/ds-table@1.6.0) (2025-09-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **table:** cell with tags list ([109820e](https://github.com/synerise/synerise-design/commit/109820ed06f931a178580633277a7643aebe1072))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [1.5.13](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.5.12...@synerise/ds-table@1.5.13) (2025-09-24)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-table
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [1.5.12](https://github.com/synerise/synerise-design/compare/@synerise/ds-table@1.5.11...@synerise/ds-table@1.5.12) (2025-09-23)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-table
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var _excluded = ["disabled", "tagsProps"];
|
|
2
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import Tags from '@synerise/ds-tags';
|
|
6
|
+
import * as S from './TagsGroup.styles';
|
|
7
|
+
export var TagsGroupCell = function TagsGroupCell(_ref) {
|
|
8
|
+
var _tagsProps$selected;
|
|
9
|
+
var disabled = _ref.disabled,
|
|
10
|
+
tagsProps = _ref.tagsProps,
|
|
11
|
+
htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
12
|
+
var isEmpty = !(tagsProps != null && (_tagsProps$selected = tagsProps.selected) != null && _tagsProps$selected.length);
|
|
13
|
+
return /*#__PURE__*/React.createElement(S.TagsGroupWrapper, _extends({}, htmlAttributes, {
|
|
14
|
+
isDisabled: disabled,
|
|
15
|
+
isEmpty: isEmpty
|
|
16
|
+
}), /*#__PURE__*/React.createElement(Tags, _extends({
|
|
17
|
+
maxVisibleTags: 1,
|
|
18
|
+
disabled: disabled,
|
|
19
|
+
addButtonType: isEmpty ? 'icon-label' : 'single-icon'
|
|
20
|
+
}, tagsProps, {
|
|
21
|
+
addable: (tagsProps == null ? void 0 : tagsProps.addable) && !disabled,
|
|
22
|
+
removable: (tagsProps == null ? void 0 : tagsProps.removable) && !disabled
|
|
23
|
+
})));
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { SelectedTags, TagsWrapper } from '@synerise/ds-tags/dist/Tags.styles';
|
|
3
|
+
import { AddTagButton } from '@synerise/ds-tags/dist/components/AddTags/AddTags.styles';
|
|
4
|
+
export var TagsGroupWrapper = styled.div.withConfig({
|
|
5
|
+
displayName: "TagsGroupstyles__TagsGroupWrapper",
|
|
6
|
+
componentId: "sc-a6dl1s-0"
|
|
7
|
+
})(["", "{margin-bottom:0;}", "{flex-flow:nowrap;}", ""], TagsWrapper, SelectedTags, function (props) {
|
|
8
|
+
return props.isDisabled ? "\n opacity: 0.4;\n pointer-events: none;\n " : "\n " + AddTagButton + AddTagButton + AddTagButton + " svg {\n transition: none;\n }\n " + AddTagButton + " {\n visibility: hidden;\n }\n tr:hover &, \n .virtual-table-row:hover & {\n " + AddTagButton + " {\n visibility: visible;\n }\n }\n ";
|
|
9
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/Cell/index.d.ts
CHANGED
|
@@ -9,4 +9,5 @@ import LabelsWithShowMore from './LabelsWithShowMore/LabelsWithShowMore';
|
|
|
9
9
|
import StarCell from './Star/StarCell';
|
|
10
10
|
import StatusLabelCell from './StatusLabel/StatusLabel';
|
|
11
11
|
import TagIconCell from './TagIcon/TagIcon';
|
|
12
|
-
|
|
12
|
+
import { TagsGroupCell } from './TagsGroup/TagsGroup';
|
|
13
|
+
export { IconLabelCell, IconTooltipCell, StatusLabelCell, AvatarLabelCell, TagIconCell, EditableCell, CopyableCell, ActionCell, FlagLabelCell, StarCell, LabelsWithShowMore, TagsGroupCell, };
|
package/dist/Cell/index.js
CHANGED
|
@@ -9,4 +9,5 @@ import LabelsWithShowMore from './LabelsWithShowMore/LabelsWithShowMore';
|
|
|
9
9
|
import StarCell from './Star/StarCell';
|
|
10
10
|
import StatusLabelCell from './StatusLabel/StatusLabel';
|
|
11
11
|
import TagIconCell from './TagIcon/TagIcon';
|
|
12
|
-
|
|
12
|
+
import { TagsGroupCell } from './TagsGroup/TagsGroup';
|
|
13
|
+
export { IconLabelCell, IconTooltipCell, StatusLabelCell, AvatarLabelCell, TagIconCell, EditableCell, CopyableCell, ActionCell, FlagLabelCell, StarCell, LabelsWithShowMore, TagsGroupCell };
|
package/dist/Table.types.d.ts
CHANGED
|
@@ -160,24 +160,24 @@ export type DSTableProps<T extends any & GroupType<T>> = AntTableProps<T> & {
|
|
|
160
160
|
};
|
|
161
161
|
};
|
|
162
162
|
export type ColumnSortOrder = 'descend' | 'ascend' | null;
|
|
163
|
-
export
|
|
163
|
+
export type ColumnsSortState = {
|
|
164
164
|
[key: string]: {
|
|
165
165
|
sortOrder: ColumnSortOrder;
|
|
166
166
|
multiple: number | false;
|
|
167
167
|
};
|
|
168
|
-
}
|
|
169
|
-
export
|
|
168
|
+
};
|
|
169
|
+
export type SortStateAPI = {
|
|
170
170
|
columnsSortState: ColumnsSortState;
|
|
171
171
|
getColumnSortOrder: (key: string) => ColumnSortOrder;
|
|
172
172
|
setColumnSortOrder: (key: string, sort: ColumnSortOrder) => void;
|
|
173
173
|
updateColumnsData: (columns: ColumnsSortState) => void;
|
|
174
|
-
}
|
|
174
|
+
};
|
|
175
175
|
export type SortButtonsRenderer<T> = (sortStateApi: SortStateAPI, column: DSColumnType<T>) => React.ReactElement;
|
|
176
176
|
export type SortRender<T> = 'default' | 'string' | SortButtonsRenderer<T>;
|
|
177
|
-
export
|
|
177
|
+
export type TitleWithSortOwnProps<T> = {
|
|
178
178
|
column: DSColumnType<T>;
|
|
179
179
|
sortRender: React.ReactElement;
|
|
180
180
|
titleProps: ColumnTitleProps<T>;
|
|
181
|
-
}
|
|
181
|
+
};
|
|
182
182
|
export type TitleWithSortProps<T> = TitleWithSortOwnProps<T> & React.ComponentPropsWithoutRef<'span'>;
|
|
183
183
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-table",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Table UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -35,27 +35,25 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-alert": "^1.1.
|
|
39
|
-
"@synerise/ds-badge": "^1.0.
|
|
40
|
-
"@synerise/ds-button": "^1.4.
|
|
41
|
-
"@synerise/ds-button-group": "^1.1.
|
|
42
|
-
"@synerise/ds-checkbox": "^1.1.
|
|
43
|
-
"@synerise/ds-
|
|
44
|
-
"@synerise/ds-
|
|
45
|
-
"@synerise/ds-flag": "^1.0.4",
|
|
38
|
+
"@synerise/ds-alert": "^1.1.20",
|
|
39
|
+
"@synerise/ds-badge": "^1.0.23",
|
|
40
|
+
"@synerise/ds-button": "^1.4.12",
|
|
41
|
+
"@synerise/ds-button-group": "^1.1.16",
|
|
42
|
+
"@synerise/ds-checkbox": "^1.1.9",
|
|
43
|
+
"@synerise/ds-dropdown": "^1.0.25",
|
|
44
|
+
"@synerise/ds-flag": "^1.0.5",
|
|
46
45
|
"@synerise/ds-icon": "^1.7.2",
|
|
47
|
-
"@synerise/ds-input": "^1.3.
|
|
48
|
-
"@synerise/ds-loader": "^1.0.
|
|
49
|
-
"@synerise/ds-menu": "^1.0.
|
|
50
|
-
"@synerise/ds-modal": "^1.2.
|
|
51
|
-
"@synerise/ds-
|
|
52
|
-
"@synerise/ds-result": "^1.0.24",
|
|
46
|
+
"@synerise/ds-input": "^1.3.12",
|
|
47
|
+
"@synerise/ds-loader": "^1.0.10",
|
|
48
|
+
"@synerise/ds-menu": "^1.0.24",
|
|
49
|
+
"@synerise/ds-modal": "^1.2.12",
|
|
50
|
+
"@synerise/ds-result": "^1.0.25",
|
|
53
51
|
"@synerise/ds-scrollbar": "^1.1.8",
|
|
54
|
-
"@synerise/ds-search": "^1.3.
|
|
55
|
-
"@synerise/ds-
|
|
56
|
-
"@synerise/ds-
|
|
57
|
-
"@synerise/ds-
|
|
58
|
-
"@synerise/ds-
|
|
52
|
+
"@synerise/ds-search": "^1.3.3",
|
|
53
|
+
"@synerise/ds-skeleton": "^1.0.23",
|
|
54
|
+
"@synerise/ds-status": "^1.2.16",
|
|
55
|
+
"@synerise/ds-tag": "^1.3.0",
|
|
56
|
+
"@synerise/ds-tags": "^1.4.0",
|
|
59
57
|
"@synerise/ds-tooltip": "^1.2.0",
|
|
60
58
|
"@synerise/ds-typography": "^1.0.21",
|
|
61
59
|
"@synerise/ds-utils": "^1.4.2",
|
|
@@ -77,5 +75,5 @@
|
|
|
77
75
|
"react-intl": ">=3.12.0 <= 6.8",
|
|
78
76
|
"styled-components": "^5.3.3"
|
|
79
77
|
},
|
|
80
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "6a2e6e20a480aafe5d67748d04fbe3d4ce91a544"
|
|
81
79
|
}
|