@synerise/ds-column-manager 0.11.10 → 0.11.12
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 +16 -0
- package/dist/ColumnManager.js +1 -2
- package/dist/ColumnManager.types.d.ts +7 -7
- package/dist/ColumnManagerActions/ColumnManagerActions.types.d.ts +3 -3
- package/dist/ColumnManagerGroupSettings/ColumnManagerGroupSettings.types.d.ts +1 -1
- package/dist/ColumnManagerGroupSettings/RangesForm/RangeInput.d.ts +1 -1
- package/dist/ColumnManagerItem/ColumManagerItem.types.d.ts +3 -3
- package/dist/ColumnManagerItem/ColumnManagerItem.d.ts +12 -2
- package/dist/ColumnManagerList/ColumnManagerList.types.d.ts +1 -1
- package/dist/ColumnManagerSearchResults/ColumManagerResults.types.d.ts +1 -1
- package/package.json +20 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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
|
+
## [0.11.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-column-manager@0.11.11...@synerise/ds-column-manager@0.11.12) (2023-10-06)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-column-manager
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.11.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-column-manager@0.11.10...@synerise/ds-column-manager@0.11.11) (2023-10-02)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-column-manager
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.11.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-column-manager@0.11.9...@synerise/ds-column-manager@0.11.10) (2023-09-26)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-column-manager
|
package/dist/ColumnManager.js
CHANGED
|
@@ -463,8 +463,7 @@ var ColumnManager = /*#__PURE__*/function (_React$Component) {
|
|
|
463
463
|
}]);
|
|
464
464
|
|
|
465
465
|
return ColumnManager;
|
|
466
|
-
}(React.Component); //
|
|
467
|
-
// @ts-ignore
|
|
466
|
+
}(React.Component); // @ts-ignore
|
|
468
467
|
|
|
469
468
|
|
|
470
469
|
export default injectIntl(ColumnManager);
|
|
@@ -3,8 +3,8 @@ import * as React from 'react';
|
|
|
3
3
|
import { IntlFormatters } from 'react-intl';
|
|
4
4
|
import { Column } from './ColumnManagerItem/ColumManagerItem.types';
|
|
5
5
|
import { Range, GroupSettingsTexts } from './ColumnManagerGroupSettings/ColumnManagerGroupSettings.types';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type Texts = GroupSettingsTexts | 'title' | 'savedViews' | 'searchPlaceholder' | 'searchClearTooltip' | 'noResults' | 'searchResults' | 'visible' | 'hidden' | 'saveView' | 'cancel' | 'apply' | 'fixedLeft' | 'fixedRight' | 'group' | 'clear' | 'viewName' | 'viewDescription' | 'viewNamePlaceholder' | 'viewDescriptionPlaceholder' | 'switchOn' | 'switchOff' | 'mustNotBeEmpty';
|
|
7
|
+
export type ColumnManagerProps = {
|
|
8
8
|
hide: () => void;
|
|
9
9
|
visible: boolean;
|
|
10
10
|
onSave: (savedView: SavedView) => void;
|
|
@@ -19,17 +19,17 @@ export declare type ColumnManagerProps = {
|
|
|
19
19
|
intl: IntlFormatters;
|
|
20
20
|
groupSettings?: GroupSettings;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type SavedView = {
|
|
23
23
|
meta: ViewMeta;
|
|
24
24
|
groupSettings?: GroupSettings;
|
|
25
25
|
columns: Column[];
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type ViewMeta = {
|
|
28
28
|
name: string;
|
|
29
29
|
description: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
32
|
-
export
|
|
31
|
+
export type GroupType = 'value' | 'ranges' | 'interval' | string | undefined;
|
|
32
|
+
export type GroupSettings = {
|
|
33
33
|
column?: Column;
|
|
34
34
|
settings: {
|
|
35
35
|
type: GroupType;
|
|
@@ -37,7 +37,7 @@ export declare type GroupSettings = {
|
|
|
37
37
|
interval: number | false;
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type State = {
|
|
41
41
|
searchQuery: string;
|
|
42
42
|
visibleList: Column[];
|
|
43
43
|
hiddenList: Column[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ViewMeta } from '../ColumnManager.types';
|
|
3
|
-
export
|
|
3
|
+
export type Props = {
|
|
4
4
|
onSave: (viewMeta: ViewMeta) => void;
|
|
5
5
|
onApply: () => void;
|
|
6
6
|
onCancel: () => void;
|
|
@@ -9,12 +9,12 @@ export declare type Props = {
|
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
11
|
export declare const INPUT_NAMES: readonly ["name", "description"];
|
|
12
|
-
export
|
|
12
|
+
export type FormFields = {
|
|
13
13
|
[k in typeof INPUT_NAMES[number]]: {
|
|
14
14
|
value: string;
|
|
15
15
|
error: string | React.ReactNode;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type State = FormFields & {
|
|
19
19
|
modalVisible: boolean;
|
|
20
20
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GroupSettings } from '../ColumnManager.types';
|
|
3
3
|
import { Column } from '../ColumnManagerItem/ColumManagerItem.types';
|
|
4
|
-
export
|
|
4
|
+
export type GroupSettingsTexts = 'groupByValue' | 'groupByRanges' | 'groupByIntervals' | 'groupDisabled' | 'groupTitle' | 'selectPlaceholder' | 'intervalPlaceholder' | 'groupingType' | 'groupingTypeTooltip' | 'from' | 'to' | 'remove' | 'addRange' | 'errorEmptyRange' | 'errorEmptyFromField' | 'errorEmptyToField' | 'errorChooseGrouping' | 'errorInterval' | 'errorRange';
|
|
5
5
|
export declare const GROUP_BY: {
|
|
6
6
|
[key: string]: string;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Props } from '@synerise/ds-input/dist/Input.types';
|
|
3
3
|
import { Props as NumberInputProps } from '@synerise/ds-input-number/dist/InputNumber.types';
|
|
4
|
-
|
|
4
|
+
type RangeInputProps = Omit<Props, 'value' | 'onChange'> & Omit<NumberInputProps, 'value' | 'onChange'> & {
|
|
5
5
|
value: React.ReactText | undefined;
|
|
6
6
|
onChange: (value: number | string | undefined) => void;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ColumnType = string | 'text' | 'number' | 'date' | 'boolean' | 'list';
|
|
3
|
+
export type Column = {
|
|
4
4
|
id: string;
|
|
5
5
|
key: React.ReactText;
|
|
6
6
|
name: string;
|
|
@@ -9,7 +9,7 @@ export declare type Column = {
|
|
|
9
9
|
fixed?: string | 'left' | 'right';
|
|
10
10
|
group?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type ColumnProps = {
|
|
13
13
|
setFixed: (id: string, fixed?: string) => void;
|
|
14
14
|
showGroupSettings: (item: Column) => void;
|
|
15
15
|
draggable?: boolean;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<{
|
|
3
|
+
draggable?: boolean | undefined;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
texts: {
|
|
6
|
+
[k: string]: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
item: import("./ColumManagerItem.types").Column;
|
|
9
|
+
setFixed: (id: string, fixed?: string | undefined) => void;
|
|
10
|
+
switchAction: (id: string, visible: boolean) => void;
|
|
11
|
+
searchQuery?: string | undefined;
|
|
12
|
+
showGroupSettings: (item: import("./ColumManagerItem.types").Column) => void;
|
|
13
|
+
} & {
|
|
4
14
|
theme?: any;
|
|
5
15
|
}>;
|
|
6
16
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Column } from '../ColumnManagerItem/ColumManagerItem.types';
|
|
3
3
|
import { GroupSettings } from '../ColumnManager.types';
|
|
4
|
-
export
|
|
4
|
+
export type Props = {
|
|
5
5
|
searchQuery: string;
|
|
6
6
|
visibleList: Column[];
|
|
7
7
|
hiddenList: Column[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-column-manager",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.12",
|
|
4
4
|
"description": "ColumnManager UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -29,24 +29,24 @@
|
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"types": "dist/index.d.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@synerise/ds-alert": "^0.7.
|
|
33
|
-
"@synerise/ds-button": "^0.18.
|
|
34
|
-
"@synerise/ds-drawer": "^0.
|
|
35
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
36
|
-
"@synerise/ds-icon": "^0.58.
|
|
37
|
-
"@synerise/ds-input": "^0.19.
|
|
38
|
-
"@synerise/ds-input-number": "^0.8.
|
|
39
|
-
"@synerise/ds-item-filter": "^0.8.
|
|
40
|
-
"@synerise/ds-menu": "^0.
|
|
41
|
-
"@synerise/ds-modal": "^0.17.
|
|
42
|
-
"@synerise/ds-result": "^0.6.
|
|
43
|
-
"@synerise/ds-scrollbar": "^0.6.
|
|
44
|
-
"@synerise/ds-search-bar": "^0.6.
|
|
45
|
-
"@synerise/ds-select": "^0.15.
|
|
46
|
-
"@synerise/ds-switch": "^0.4.
|
|
47
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
48
|
-
"@synerise/ds-typography": "^0.13.
|
|
49
|
-
"@synerise/ds-utils": "^0.24.
|
|
32
|
+
"@synerise/ds-alert": "^0.7.44",
|
|
33
|
+
"@synerise/ds-button": "^0.18.3",
|
|
34
|
+
"@synerise/ds-drawer": "^0.6.0",
|
|
35
|
+
"@synerise/ds-dropdown": "^0.17.82",
|
|
36
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
37
|
+
"@synerise/ds-input": "^0.19.3",
|
|
38
|
+
"@synerise/ds-input-number": "^0.8.25",
|
|
39
|
+
"@synerise/ds-item-filter": "^0.8.90",
|
|
40
|
+
"@synerise/ds-menu": "^0.18.0",
|
|
41
|
+
"@synerise/ds-modal": "^0.17.6",
|
|
42
|
+
"@synerise/ds-result": "^0.6.32",
|
|
43
|
+
"@synerise/ds-scrollbar": "^0.6.8",
|
|
44
|
+
"@synerise/ds-search-bar": "^0.6.45",
|
|
45
|
+
"@synerise/ds-select": "^0.15.21",
|
|
46
|
+
"@synerise/ds-switch": "^0.4.45",
|
|
47
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
48
|
+
"@synerise/ds-typography": "^0.13.1",
|
|
49
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
50
50
|
"react-intl": "3.12.0",
|
|
51
51
|
"react-sortablejs": "^6.0.0",
|
|
52
52
|
"uuid": "^8.3.2"
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"@testing-library/jest-dom": "5.1.1",
|
|
62
62
|
"@testing-library/react": "10.0.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "d944339a738211d8f74b27360481aafd7ef51ddd"
|
|
65
65
|
}
|