@jetbrains/ring-ui 6.0.43 → 6.0.44
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.
|
@@ -34,7 +34,7 @@ export default class ContentLayout extends Component {
|
|
|
34
34
|
contentNode: this.state.contentNode
|
|
35
35
|
});
|
|
36
36
|
const contentChildren = childrenArray.filter(child => child !== sidebarChild);
|
|
37
|
-
return (<div {...restProps} className={classes}>
|
|
37
|
+
return (<div data-test="content-layout" {...restProps} className={classes}>
|
|
38
38
|
{sidebar}
|
|
39
39
|
<main className={contentClasses} ref={this.saveContentNode}>
|
|
40
40
|
{contentChildren}
|
|
@@ -28,6 +28,7 @@ export interface PagerProps {
|
|
|
28
28
|
onPageChange?: ((prevPage: number, event?: React.MouseEvent) => void) | null | undefined;
|
|
29
29
|
className?: string | null | undefined;
|
|
30
30
|
hrefFunc?: ((page: number, pageSize: number | undefined) => string) | undefined;
|
|
31
|
+
disableLastPageButton?: boolean;
|
|
31
32
|
}
|
|
32
33
|
interface PagerSizeItem {
|
|
33
34
|
key: number;
|
|
@@ -169,7 +169,8 @@ export default class Pager extends PureComponent {
|
|
|
169
169
|
for (let i = start; i <= end; i++) {
|
|
170
170
|
buttons.push(this.getButton(i, i, i, i === currentPage));
|
|
171
171
|
}
|
|
172
|
-
const lastPageButtonAvailable =
|
|
172
|
+
const lastPageButtonAvailable = !this.props.disableLastPageButton &&
|
|
173
|
+
(end < totalPages && !this.props.openTotal) ||
|
|
173
174
|
(this.props.openTotal && this.props.canLoadLastPageWithOpenTotal);
|
|
174
175
|
return (<div>
|
|
175
176
|
{this.getPagerLinks()}
|
|
@@ -161,8 +161,10 @@ class Shortcuts {
|
|
|
161
161
|
: element.closest(this.ALLOW_SHORTCUTS_SELECTOR) != null)) {
|
|
162
162
|
return false;
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
const elementContentEditableAttribute = element.contentEditable;
|
|
165
|
+
const isElementContentEditable = elementContentEditableAttribute === 'true' || elementContentEditableAttribute === 'plaintext-only';
|
|
166
|
+
// stop for input, select, textarea and content-editable elements
|
|
167
|
+
return element.matches('input:not([type=checkbox]),select,textarea') || isElementContentEditable;
|
|
166
168
|
};
|
|
167
169
|
_getKeyboardEventType(params) {
|
|
168
170
|
if (!params.type && sniffr.os.name === 'windows') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetbrains/ring-ui",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.44",
|
|
4
4
|
"description": "JetBrains UI library",
|
|
5
5
|
"author": "JetBrains",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -76,29 +76,29 @@
|
|
|
76
76
|
},
|
|
77
77
|
"readmeFilename": "README.md",
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@babel/cli": "^7.24.
|
|
80
|
-
"@babel/eslint-parser": "^7.24.
|
|
79
|
+
"@babel/cli": "^7.24.8",
|
|
80
|
+
"@babel/eslint-parser": "^7.24.8",
|
|
81
81
|
"@csstools/css-parser-algorithms": "^2.7.0",
|
|
82
82
|
"@csstools/stylelint-no-at-nest-rule": "^2.0.0",
|
|
83
83
|
"@jetbrains/eslint-config": "^5.4.2",
|
|
84
84
|
"@jetbrains/logos": "3.0.0-canary.734b213.0",
|
|
85
85
|
"@jetbrains/stylelint-config": "^4.0.2",
|
|
86
|
-
"@primer/octicons": "^19.
|
|
86
|
+
"@primer/octicons": "^19.11.0",
|
|
87
87
|
"@rollup/plugin-babel": "^6.0.4",
|
|
88
88
|
"@rollup/plugin-json": "^6.1.0",
|
|
89
89
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
90
90
|
"@rollup/plugin-replace": "^5.0.7",
|
|
91
|
-
"@storybook/addon-a11y": "8.2.
|
|
92
|
-
"@storybook/addon-docs": "8.2.
|
|
93
|
-
"@storybook/addon-essentials": "8.2.
|
|
94
|
-
"@storybook/components": "8.2.
|
|
95
|
-
"@storybook/manager-api": "8.2.
|
|
96
|
-
"@storybook/preview-api": "8.2.
|
|
97
|
-
"@storybook/react": "8.2.
|
|
98
|
-
"@storybook/react-webpack5": "8.2.
|
|
99
|
-
"@storybook/test-runner": "^0.19.
|
|
100
|
-
"@storybook/theming": "8.2.
|
|
101
|
-
"@testing-library/dom": "^10.3.
|
|
91
|
+
"@storybook/addon-a11y": "8.2.4",
|
|
92
|
+
"@storybook/addon-docs": "8.2.4",
|
|
93
|
+
"@storybook/addon-essentials": "8.2.4",
|
|
94
|
+
"@storybook/components": "8.2.4",
|
|
95
|
+
"@storybook/manager-api": "8.2.4",
|
|
96
|
+
"@storybook/preview-api": "8.2.4",
|
|
97
|
+
"@storybook/react": "8.2.4",
|
|
98
|
+
"@storybook/react-webpack5": "8.2.4",
|
|
99
|
+
"@storybook/test-runner": "^0.19.1",
|
|
100
|
+
"@storybook/theming": "8.2.4",
|
|
101
|
+
"@testing-library/dom": "^10.3.2",
|
|
102
102
|
"@testing-library/react": "^16.0.0",
|
|
103
103
|
"@testing-library/user-event": "^14.5.2",
|
|
104
104
|
"@types/chai": "^4.3.16",
|
|
@@ -112,14 +112,14 @@
|
|
|
112
112
|
"@types/sinon": "^17.0.3",
|
|
113
113
|
"@types/sinon-chai": "^3.2.12",
|
|
114
114
|
"@types/webpack-env": "^1.18.5",
|
|
115
|
-
"@typescript-eslint/eslint-plugin": "^7.16.
|
|
116
|
-
"@typescript-eslint/parser": "^7.16.
|
|
115
|
+
"@typescript-eslint/eslint-plugin": "^7.16.1",
|
|
116
|
+
"@typescript-eslint/parser": "^7.16.1",
|
|
117
117
|
"@vitejs/plugin-react": "^4.3.1",
|
|
118
118
|
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
119
119
|
"acorn": "^8.12.1",
|
|
120
120
|
"axe-playwright": "^2.0.1",
|
|
121
121
|
"babel-plugin-require-context-hook": "^1.0.0",
|
|
122
|
-
"caniuse-lite": "^1.0.
|
|
122
|
+
"caniuse-lite": "^1.0.30001642",
|
|
123
123
|
"chai": "^5.1.1",
|
|
124
124
|
"chai-as-promised": "^8.0.0",
|
|
125
125
|
"chai-dom": "^1.10.0",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"eslint-plugin-bdd": "^2.1.1",
|
|
134
134
|
"eslint-plugin-import": "^2.29.1",
|
|
135
135
|
"eslint-plugin-jsx-a11y": "^6.9.0",
|
|
136
|
-
"eslint-plugin-react": "^7.34.
|
|
136
|
+
"eslint-plugin-react": "^7.34.4",
|
|
137
137
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
138
138
|
"eslint-plugin-storybook": "^0.8.0",
|
|
139
139
|
"events": "^3.3.0",
|
|
@@ -149,30 +149,30 @@
|
|
|
149
149
|
"markdown-it": "^14.1.0",
|
|
150
150
|
"merge-options": "^3.0.4",
|
|
151
151
|
"pinst": "^3.0.0",
|
|
152
|
-
"prettier": "^3.3.
|
|
152
|
+
"prettier": "^3.3.3",
|
|
153
153
|
"raw-loader": "^4.0.2",
|
|
154
154
|
"react": "^18.3.1",
|
|
155
155
|
"react-dom": "^18.3.1",
|
|
156
156
|
"react-test-renderer": "^18.3.1",
|
|
157
157
|
"regenerator-runtime": "^0.14.1",
|
|
158
|
-
"rimraf": "^6.0.
|
|
158
|
+
"rimraf": "^6.0.1",
|
|
159
159
|
"rollup": "^4.18.1",
|
|
160
160
|
"rollup-plugin-clear": "^2.0.7",
|
|
161
161
|
"rollup-plugin-styles": "^4.0.0",
|
|
162
162
|
"sinon": "^18.0.0",
|
|
163
163
|
"sinon-chai": "^3.7.0",
|
|
164
164
|
"storage-mock": "^2.1.0",
|
|
165
|
-
"storybook": "8.2.
|
|
165
|
+
"storybook": "8.2.4",
|
|
166
166
|
"storybook-addon-themes": "^6.1.0",
|
|
167
|
-
"stylelint": "^16.
|
|
167
|
+
"stylelint": "^16.7.0",
|
|
168
168
|
"svg-inline-loader": "^0.8.2",
|
|
169
169
|
"teamcity-service-messages": "^0.1.14",
|
|
170
170
|
"terser-webpack-plugin": "^5.3.10",
|
|
171
171
|
"typescript": "~5.5.3",
|
|
172
|
-
"vitest": "^2.0.
|
|
172
|
+
"vitest": "^2.0.3",
|
|
173
173
|
"vitest-teamcity-reporter": "^0.3.0",
|
|
174
174
|
"wallaby-webpack": "^3.9.16",
|
|
175
|
-
"webpack": "^5.
|
|
175
|
+
"webpack": "^5.93.0",
|
|
176
176
|
"webpack-cli": "^5.1.4",
|
|
177
177
|
"xmlappend": "^1.0.4"
|
|
178
178
|
},
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
}
|
|
197
197
|
},
|
|
198
198
|
"dependencies": {
|
|
199
|
-
"@babel/core": "^7.24.
|
|
199
|
+
"@babel/core": "^7.24.9",
|
|
200
200
|
"@babel/preset-typescript": "^7.24.7",
|
|
201
201
|
"@jetbrains/babel-preset-jetbrains": "^2.4.0",
|
|
202
202
|
"@jetbrains/icons": "^4.2.0",
|