code_before
stringlengths
16
1.81M
edits
stringlengths
4
328k
next_edit
stringlengths
0
76.5k
code_after
stringlengths
3
49.9M
label_window
listlengths
4
1.81k
instruction
stringlengths
20
51.9k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
"@typescript-eslint/experimental-utils": "^4.9.1", "eslint": "^7.15.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@types/dedent": "^0.7.0", "dedent": "^0.7.0", "ts-node": "^9.1.1", "typescript": "^4.1.2" },
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/eslint-plugin": "^0.4.0-beta.0", </s> add "@blueprintjs/eslint-plugin": "^0.4.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"@typescript-eslint/experimental-utils": "^4.9.1", "eslint": "^7.15.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@types/dedent": "^0.7.0", "dedent": "^0.7.0", "ts-node": "^9.1.1", "typescript": "^4.1.2" },
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/eslint-plugin/package.json
{ "name": "@blueprintjs/icons", "version": "4.0.0-beta.3", "description": "Components, fonts, icons, and css files for creating and displaying icons.", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "1.0.0-beta.4", </s> add "version": "1.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "4.0.0-beta.4",
{ "name": "@blueprintjs/icons", "version": "4.0.0-beta.4", "description": "Components, fonts, icons, and css files for creating and displaying icons.", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/icons/package.json
"classnames": "^2.2", "tslib": "~1.13.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", "enzyme": "^3.11.0", "fantasticon": "^1.2.2", "mocha": "^8.2.1", "npm-run-all": "^4.1.5", "react": "^16.14.0",
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"classnames": "^2.2", "tslib": "~1.13.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "enzyme": "^3.11.0", "fantasticon": "^1.2.2", "mocha": "^8.2.1", "npm-run-all": "^4.1.5", "react": "^16.14.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/icons/package.json
{ "name": "@blueprintjs/landing-app", "version": "4.0.0-beta.4", "description": "Blueprint landing page", "private": true, "scripts": { "bundle": "webpack --config ./webpack.config.js", "clean": "rm -rf dist/*",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.0", </s> add "version": "4.0.0-beta.1",
"version": "4.0.0-beta.5",
{ "name": "@blueprintjs/landing-app", "version": "4.0.0-beta.5", "description": "Blueprint landing page", "private": true, "scripts": { "bundle": "webpack --config ./webpack.config.js", "clean": "rm -rf dist/*",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/landing-app/package.json
"test": "exit 0", "verify": "run-p dist lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.4", "classnames": "^2.2", "react": "^16.14.0", "react-dom": "^16.14.0" }, "devDependencies": {
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/table": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/datetime": "^4.0.0-beta.4", "@blueprintjs/icons": "^4.0.0-beta.3", "@blueprintjs/popover2": "^1.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", "@blueprintjs/table": "^4.0.0-beta.4", "@blueprintjs/timezone": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/datetime": "^4.0.0-beta.5", "@blueprintjs/icons": "^4.0.0-beta.4", "@blueprintjs/popover2": "^1.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", "@blueprintjs/timezone": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/datetime": "^4.0.0-beta.4", "@blueprintjs/docs-data": "^4.0.0-beta.4", "@blueprintjs/docs-theme": "^4.0.0-beta.4", "@blueprintjs/icons": "^4.0.0-beta.3", "@blueprintjs/popover2": "^1.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", "@blueprintjs/table": "^4.0.0-beta.4", "@blueprintjs/test-commons": "^1.0.0-beta.0", "@blueprintjs/timezone": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/datetime": "^4.0.0-beta.5", "@blueprintjs/docs-data": "^4.0.0-beta.5", "@blueprintjs/docs-theme": "^4.0.0-beta.5", "@blueprintjs/icons": "^4.0.0-beta.4", "@blueprintjs/popover2": "^1.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/timezone": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5",
"@blueprintjs/core": "^4.0.0-beta.5",
"test": "exit 0", "verify": "run-p dist lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.5", "classnames": "^2.2", "react": "^16.14.0", "react-dom": "^16.14.0" }, "devDependencies": {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/landing-app/package.json
{ "name": "@blueprintjs/node-build-scripts", "version": "2.0.0-beta.0", "description": "Node.js build scripts for @blueprintjs packages", "scripts": { "test": "exit 0" }, "bin": {
</s> remove "version": "1.0.0-beta.0", </s> add "version": "1.0.0-beta.1", </s> remove "version": "0.4.0-beta.0", </s> add "version": "0.4.0-beta.1", </s> remove "version": "0.5.0-beta.0", </s> add "version": "0.5.0-beta.1", </s> remove "version": "0.8.0-beta.0", </s> add "version": "0.8.0-beta.1", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/docs-theme": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/docs-theme": "^4.0.0-beta.5",
"version": "2.0.0-beta.1",
{ "name": "@blueprintjs/node-build-scripts", "version": "2.0.0-beta.1", "description": "Node.js build scripts for @blueprintjs packages", "scripts": { "test": "exit 0" }, "bin": {
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/node-build-scripts/package.json
{ "name": "@blueprintjs/popover2", "version": "1.0.0-beta.4", "description": "Popover2 and dependent components", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.3", </s> add "version": "4.0.0-beta.4", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "1.0.0-beta.5",
{ "name": "@blueprintjs/popover2", "version": "1.0.0-beta.5", "description": "Popover2 and dependent components", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/popover2/package.json
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.4", "@popperjs/core": "^2.5.4", "classnames": "^2.2", "dom4": "^2.1.5", "react-popper": "^2.2.4", "resize-observer-polyfill": "^1.5.1",
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/icons": "^4.0.0-beta.3", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/icons": "^4.0.0-beta.4", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5",
"@blueprintjs/core": "^4.0.0-beta.5",
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.5", "@popperjs/core": "^2.5.4", "classnames": "^2.2", "dom4": "^2.1.5", "react-popper": "^2.2.4", "resize-observer-polyfill": "^1.5.1",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/popover2/package.json
"react": "^16.8.0 || ^17" }, "devDependencies": { "@blueprintjs/karma-build-scripts": "^3.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", "enzyme": "^3.11.0", "karma": "^5.2.2", "mocha": "^8.1.3", "npm-run-all": "^4.1.5", "react": "^16.13.1",
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"react": "^16.8.0 || ^17" }, "devDependencies": { "@blueprintjs/karma-build-scripts": "^3.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "enzyme": "^3.11.0", "karma": "^5.2.2", "mocha": "^8.1.3", "npm-run-all": "^4.1.5", "react": "^16.13.1",
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/popover2/package.json
{ "name": "@blueprintjs/select", "version": "4.0.0-beta.4", "description": "Components related to selecting items from a list", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "4.0.0-beta.5",
{ "name": "@blueprintjs/select", "version": "4.0.0-beta.5", "description": "Components related to selecting items from a list", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/select/package.json
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.4", "classnames": "^2.2", "tslib": "~1.13.0" }, "peerDependencies": { "react": "^16.8 || 17",
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/icons": "^4.0.0-beta.3", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/icons": "^4.0.0-beta.4",
"@blueprintjs/core": "^4.0.0-beta.5",
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.5", "classnames": "^2.2", "tslib": "~1.13.0" }, "peerDependencies": { "react": "^16.8 || 17",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/select/package.json
"react-dom": "^16.8 || 17" }, "devDependencies": { "@blueprintjs/karma-build-scripts": "^3.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "enzyme": "^3.11.0", "karma": "^5.2.3", "mocha": "^8.2.1", "npm-run-all": "^4.1.5", "react": "^16.14.0",
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"react-dom": "^16.8 || 17" }, "devDependencies": { "@blueprintjs/karma-build-scripts": "^3.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "enzyme": "^3.11.0", "karma": "^5.2.3", "mocha": "^8.2.1", "npm-run-all": "^4.1.5", "react": "^16.14.0",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/select/package.json
{ "name": "@blueprintjs/stylelint-plugin", "version": "0.5.0-beta.0", "description": "Stylelint rules for use with @blueprintjs packages", "main": "lib/index.js", "scripts": { "clean": "rm -rf lib/*", "compile": "tsc -p src/",
</s> remove "version": "0.4.0-beta.0", </s> add "version": "0.4.0-beta.1", </s> remove "version": "4.0.0-beta.0", </s> add "version": "4.0.0-beta.1", </s> remove "version": "1.0.0-beta.0", </s> add "version": "1.0.0-beta.1", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "0.5.0-beta.1",
{ "name": "@blueprintjs/stylelint-plugin", "version": "0.5.0-beta.1", "description": "Stylelint rules for use with @blueprintjs packages", "main": "lib/index.js", "scripts": { "clean": "rm -rf lib/*", "compile": "tsc -p src/",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/stylelint-plugin/package.json
"lint-fix": "es-lint --fix", "test": "mocha test/index.js" }, "dependencies": { "@blueprintjs/colors": "^4.0.0-beta.0", "postcss": "^7.0.35", "postcss-selector-parser": "^6.0.5", "postcss-value-parser": "^4.1.0" }, "peerDependencies": {
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/icons": "^4.0.0-beta.3", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/icons": "^4.0.0-beta.4", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"@blueprintjs/colors": "^4.0.0-beta.1",
"lint-fix": "es-lint --fix", "test": "mocha test/index.js" }, "dependencies": { "@blueprintjs/colors": "^4.0.0-beta.1", "postcss": "^7.0.35", "postcss-selector-parser": "^6.0.5", "postcss-value-parser": "^4.1.0" }, "peerDependencies": {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/stylelint-plugin/package.json
"peerDependencies": { "stylelint": "^13.0.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@types/stylelint": "^9.10.1", "mocha": "^8.2.1", "typescript": "^4.1.2" }, "repository": {
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"peerDependencies": { "stylelint": "^13.0.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@types/stylelint": "^9.10.1", "mocha": "^8.2.1", "typescript": "^4.1.2" }, "repository": {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/stylelint-plugin/package.json
{ "name": "@blueprintjs/table-dev-app", "version": "4.0.0-beta.4", "description": "Dev application for @blueprintjs/table", "private": true, "scripts": { "bundle": "webpack --config ./webpack.config.js", "clean": "rm -rf dist/*",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "0.4.0-beta.0", </s> add "version": "0.4.0-beta.1",
"version": "4.0.0-beta.5",
{ "name": "@blueprintjs/table-dev-app", "version": "4.0.0-beta.5", "description": "Dev application for @blueprintjs/table", "private": true, "scripts": { "bundle": "webpack --config ./webpack.config.js", "clean": "rm -rf dist/*",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/table-dev-app/package.json
"test": "exit 0", "verify": "npm-run-all -p dist lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/table": "^4.0.0-beta.4", "classnames": "^2.2.6", "dom4": "^2.1.5", "lodash-es": "^4.17.15", "normalize.css": "^8.0.1", "react": "^16.14.0",
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/datetime": "^4.0.0-beta.4", "@blueprintjs/icons": "^4.0.0-beta.3", "@blueprintjs/popover2": "^1.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", "@blueprintjs/table": "^4.0.0-beta.4", "@blueprintjs/timezone": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/datetime": "^4.0.0-beta.5", "@blueprintjs/icons": "^4.0.0-beta.4", "@blueprintjs/popover2": "^1.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", "@blueprintjs/timezone": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/icons": "^4.0.0-beta.3", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/icons": "^4.0.0-beta.4", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/datetime": "^4.0.0-beta.4", "@blueprintjs/docs-data": "^4.0.0-beta.4", "@blueprintjs/docs-theme": "^4.0.0-beta.4", "@blueprintjs/icons": "^4.0.0-beta.3", "@blueprintjs/popover2": "^1.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", "@blueprintjs/table": "^4.0.0-beta.4", "@blueprintjs/test-commons": "^1.0.0-beta.0", "@blueprintjs/timezone": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/datetime": "^4.0.0-beta.5", "@blueprintjs/docs-data": "^4.0.0-beta.5", "@blueprintjs/docs-theme": "^4.0.0-beta.5", "@blueprintjs/icons": "^4.0.0-beta.4", "@blueprintjs/popover2": "^1.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/timezone": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5",
"@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5",
"test": "exit 0", "verify": "npm-run-all -p dist lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/table": "^4.0.0-beta.5", "classnames": "^2.2.6", "dom4": "^2.1.5", "lodash-es": "^4.17.15", "normalize.css": "^8.0.1", "react": "^16.14.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/table-dev-app/package.json
{ "name": "@blueprintjs/table", "version": "4.0.0-beta.4", "description": "Scalable interactive table component", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "4.0.0-beta.5",
{ "name": "@blueprintjs/table", "version": "4.0.0-beta.5", "description": "Scalable interactive table component", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/table/package.json
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.4", "classnames": "^2.2", "prop-types": "^15.7.2", "tslib": "~1.13.0" }, "peerDependencies": {
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/icons": "^4.0.0-beta.3", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/icons": "^4.0.0-beta.4",
"@blueprintjs/core": "^4.0.0-beta.5",
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.5", "classnames": "^2.2", "prop-types": "^15.7.2", "tslib": "~1.13.0" }, "peerDependencies": {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/table/package.json
"react": "^16.8 || 17", "react-dom": "^16.8 || 17" }, "devDependencies": { "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", "enzyme": "^3.11.0", "karma": "^5.2.3", "mocha": "^8.2.1", "npm-run-all": "^4.1.5", "react": "^16.14.0",
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"react": "^16.8 || 17", "react-dom": "^16.8 || 17" }, "devDependencies": { "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "enzyme": "^3.11.0", "karma": "^5.2.3", "mocha": "^8.2.1", "npm-run-all": "^4.1.5", "react": "^16.14.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/table/package.json
{ "name": "@blueprintjs/test-commons", "version": "1.0.0-beta.0", "description": "Common utilities for tests in @blueprintjs packages", "main": "lib/cjs/index.js", "typings": "lib/cjs/index.d.ts", "scripts": { "compile": "tsc -p ./src",
</s> remove "version": "0.4.0-beta.0", </s> add "version": "0.4.0-beta.1", </s> remove "version": "0.5.0-beta.0", </s> add "version": "0.5.0-beta.1", </s> remove "version": "2.0.0-beta.0", </s> add "version": "2.0.0-beta.1", </s> remove "version": "0.8.0-beta.0", </s> add "version": "0.8.0-beta.1", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "1.0.0-beta.1",
{ "name": "@blueprintjs/test-commons", "version": "1.0.0-beta.1", "description": "Common utilities for tests in @blueprintjs packages", "main": "lib/cjs/index.js", "typings": "lib/cjs/index.d.ts", "scripts": { "compile": "tsc -p ./src",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/test-commons/package.json
"peerDependencies": { "react": ">=15.3.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "react": "^16.13.1", "typescript": "~4.0.3" }, "repository": { "type": "git",
</s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1",
"peerDependencies": { "react": ">=15.3.0" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "react": "^16.13.1", "typescript": "~4.0.3" }, "repository": { "type": "git",
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/test-commons/package.json
{ "name": "@blueprintjs/timezone", "version": "4.0.0-beta.4", "description": "Components related to timezone selection and UI", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
</s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5", </s> remove "version": "1.0.0-beta.4", </s> add "version": "1.0.0-beta.5", </s> remove "version": "4.0.0-beta.3", </s> add "version": "4.0.0-beta.4", </s> remove "version": "4.0.0-beta.4", </s> add "version": "4.0.0-beta.5",
"version": "4.0.0-beta.5",
{ "name": "@blueprintjs/timezone", "version": "4.0.0-beta.5", "description": "Components related to timezone selection and UI", "main": "lib/cjs/index.js", "module": "lib/esm/index.js", "esnext": "lib/esnext/index.js", "typings": "lib/esm/index.d.ts",
[ "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/timezone/package.json
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.4", "@blueprintjs/select": "^4.0.0-beta.4", "classnames": "^2.2", "moment": "^2.29.0", "moment-timezone": "^0.5.31", "tslib": "~1.13.0" },
</s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/core": "^4.0.0-beta.4", </s> add "@blueprintjs/core": "^4.0.0-beta.5", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/icons": "^4.0.0-beta.3", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/icons": "^4.0.0-beta.4",
"@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5",
"test:karma:debug": "karma start --single-run=false --reporters=helpful --debug", "verify": "npm-run-all compile -p dist test lint" }, "dependencies": { "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", "@blueprintjs/core": "^4.0.0-beta.5", "@blueprintjs/select": "^4.0.0-beta.5", "classnames": "^2.2", "moment": "^2.29.0", "moment-timezone": "^0.5.31", "tslib": "~1.13.0" },
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/timezone/package.json
"react": "^16.8 || 17", "react-dom": "^16.8 || 17" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", "enzyme": "^3.11.0", "karma": "^5.2.3", "npm-run-all": "^4.1.5", "react": "^16.14.0", "react-dom": "^16.14.0",
</s> remove "@blueprintjs/colors": "^4.0.0-beta.0", "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", </s> remove "@blueprintjs/colors": "^4.0.0-beta.0", </s> add "@blueprintjs/colors": "^4.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", </s> remove "@blueprintjs/node-build-scripts": "^2.0.0-beta.0", "@blueprintjs/test-commons": "^1.0.0-beta.0", </s> add "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1",
"react": "^16.8 || 17", "react-dom": "^16.8 || 17" }, "devDependencies": { "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "@blueprintjs/node-build-scripts": "^2.0.0-beta.1", "@blueprintjs/test-commons": "^1.0.0-beta.1", "enzyme": "^3.11.0", "karma": "^5.2.3", "npm-run-all": "^4.1.5", "react": "^16.14.0", "react-dom": "^16.14.0",
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
Publish - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected] - @blueprintjs/[email protected]
https://github.com/palantir/blueprint/commit/a77a24ddf414080dcb0430af9f0f926d463fffc7
packages/timezone/package.json
enableCellTruncationFixed?: boolean; enableCellWrap?: boolean; enableColumnCustomHeaders?: boolean; enableColumnNameEditing?: boolean; enableColumnReordering?: boolean; enableColumnResizing?: boolean; enableColumnSelection?: boolean;
</s> remove showRowHeaders?: boolean; </s> add </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add
enableColumnHeader?: boolean;
enableCellTruncationFixed?: boolean; enableCellWrap?: boolean; enableColumnCustomHeaders?: boolean; enableColumnHeader?: boolean; enableColumnNameEditing?: boolean; enableColumnReordering?: boolean; enableColumnResizing?: boolean; enableColumnSelection?: boolean;
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
enableContextMenu?: boolean; enableFullTableSelection?: boolean; enableLayoutBoundary?: boolean; enableMultiSelection?: boolean; enableRowReordering?: boolean; enableRowResizing?: boolean; enableRowSelection?: boolean; enableSlowLayout?: boolean; numCols?: number; numFrozenCols?: number;
</s> remove showRowHeaders?: boolean; </s> add </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add
enableRowHeader?: boolean;
enableContextMenu?: boolean; enableFullTableSelection?: boolean; enableLayoutBoundary?: boolean; enableMultiSelection?: boolean; enableRowHeader?: boolean; enableRowReordering?: boolean; enableRowResizing?: boolean; enableRowSelection?: boolean; enableSlowLayout?: boolean; numCols?: number; numFrozenCols?: number;
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
showCustomRegions?: boolean; showFocusCell?: boolean; showGhostCells?: boolean; showInline?: boolean; showRowHeaders?: boolean; showRowHeadersLoading?: boolean; showTableInteractionBar?: boolean; showZebraStriping?: boolean; }
</s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add
showCustomRegions?: boolean; showFocusCell?: boolean; showGhostCells?: boolean; showInline?: boolean; showRowHeadersLoading?: boolean; showTableInteractionBar?: boolean; showZebraStriping?: boolean; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
enableCellTruncationFixed: false, enableCellWrap: false, enableColumnCustomHeaders: true, enableColumnNameEditing: false, enableColumnReordering: true, enableColumnResizing: true, enableColumnSelection: true, enableContextMenu: false,
</s> remove showRowHeaders: true, </s> add
enableColumnHeader: true,
enableCellTruncationFixed: false, enableCellWrap: false, enableColumnCustomHeaders: true, enableColumnHeader: true, enableColumnNameEditing: false, enableColumnReordering: true, enableColumnResizing: true, enableColumnSelection: true, enableContextMenu: false,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
enableContextMenu: false, enableFullTableSelection: true, enableLayoutBoundary: false, enableMultiSelection: true, enableRowReordering: false, enableRowResizing: false, enableRowSelection: true, enableSlowLayout: false, numCols: COLUMN_COUNTS[COLUMN_COUNT_DEFAULT_INDEX], numFrozenCols: FROZEN_COLUMN_COUNTS[FROZEN_COLUMN_COUNT_DEFAULT_INDEX],
</s> remove showRowHeaders: true, </s> add
enableRowHeader: true,
enableContextMenu: false, enableFullTableSelection: true, enableLayoutBoundary: false, enableMultiSelection: true, enableRowHeader: true, enableRowReordering: false, enableRowResizing: false, enableRowSelection: true, enableSlowLayout: false, numCols: COLUMN_COUNTS[COLUMN_COUNT_DEFAULT_INDEX], numFrozenCols: FROZEN_COLUMN_COUNTS[FROZEN_COLUMN_COUNT_DEFAULT_INDEX],
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
showCustomRegions: false, showFocusCell: false, showGhostCells: true, showInline: false, showRowHeaders: true, showRowHeadersLoading: false, showTableInteractionBar: false, showZebraStriping: false, };
</s>
showCustomRegions: false, showFocusCell: false, showGhostCells: true, showInline: false, showRowHeadersLoading: false, showTableInteractionBar: false, showZebraStriping: false, };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
return ( <Table2 bodyContextMenuRenderer={this.renderBodyContextMenu} enableColumnInteractionBar={this.state.showTableInteractionBar} enableColumnReordering={this.state.enableColumnReordering} enableColumnResizing={this.state.enableColumnResizing} enableFocusedCell={this.state.showFocusCell} enableGhostCells={this.state.showGhostCells}
</s> remove enableRowHeader={this.state.showRowHeaders} </s> add enableRowHeader={this.state.enableRowHeader} </s> remove return height <= QUADRANT_MIN_SIZE ? MIN_COL_HEADER_HEIGHT : height; </s> add if (this.props.enableColumnHeader) { return height <= QUADRANT_MIN_SIZE ? Grid.MIN_COLUMN_HEADER_HEIGHT : height; } else { return height; } </s> remove return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); </s> add return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH); </s> remove return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); </s> add return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT); </s> remove columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, </s> add columnHeaderHeight,
enableColumnHeader={this.state.enableColumnHeader}
return ( <Table2 bodyContextMenuRenderer={this.renderBodyContextMenu} enableColumnHeader={this.state.enableColumnHeader} enableColumnInteractionBar={this.state.showTableInteractionBar} enableColumnReordering={this.state.enableColumnReordering} enableColumnResizing={this.state.enableColumnResizing} enableFocusedCell={this.state.showFocusCell} enableGhostCells={this.state.showGhostCells}
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
enableColumnResizing={this.state.enableColumnResizing} enableFocusedCell={this.state.showFocusCell} enableGhostCells={this.state.showGhostCells} enableMultipleSelection={this.state.enableMultiSelection} enableRowHeader={this.state.showRowHeaders} enableRowReordering={this.state.enableRowReordering} enableRowResizing={this.state.enableRowResizing} getCellClipboardData={this.getCellValue} loadingOptions={this.getEnabledLoadingOptions()} numFrozenColumns={this.state.numFrozenCols}
</s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, clampedWidth); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); </s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight);
enableRowHeader={this.state.enableRowHeader}
enableColumnResizing={this.state.enableColumnResizing} enableFocusedCell={this.state.showFocusCell} enableGhostCells={this.state.showGhostCells} enableMultipleSelection={this.state.enableMultiSelection} enableRowHeader={this.state.enableRowHeader} enableRowReordering={this.state.enableRowReordering} enableRowResizing={this.state.enableRowResizing} getCellClipboardData={this.getCellValue} loadingOptions={this.getEnabledLoadingOptions()} numFrozenColumns={this.state.numFrozenCols}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
<H4>Columns</H4> <H6>Display</H6> {this.renderNumberSelectMenu("Num. columns", "numCols", COLUMN_COUNTS)} {this.renderNumberSelectMenu("Num. frozen columns", "numFrozenCols", FROZEN_COLUMN_COUNTS)} {this.renderSwitch("Loading state", "showColumnHeadersLoading")} {this.renderSwitch("Menus", "showColumnMenus")} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders")} <H6>Interactions</H6> {this.renderSwitch("Editing", "enableColumnNameEditing", "enableColumnCustomHeaders", false)} {this.renderSwitch("Reordering", "enableColumnReordering")} {this.renderSwitch("Resizing", "enableColumnResizing")} {this.renderSwitch("Selection", "enableColumnSelection")}
</s> remove {this.renderSwitch("Reordering", "enableColumnReordering")} {this.renderSwitch("Resizing", "enableColumnResizing")} {this.renderSwitch("Selection", "enableColumnSelection")} </s> add {this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)} </s> remove {this.renderSwitch("Headers", "showRowHeaders")} {this.renderSwitch("Loading state", "showRowHeadersLoading")} </s> add {this.renderSwitch("Row headers", "enableRowHeader")} {this.renderSwitch("Row headers loading", "showRowHeadersLoading", "enableRowHeader", true)} </s> remove {this.renderSwitch("Reordering", "enableRowReordering")} {this.renderSwitch("Resizing", "enableRowResizing")} {this.renderSwitch("Selection", "enableRowSelection")} </s> add {this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)} </s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props;
{this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)}
<H4>Columns</H4> <H6>Display</H6> {this.renderNumberSelectMenu("Num. columns", "numCols", COLUMN_COUNTS)} {this.renderNumberSelectMenu("Num. frozen columns", "numFrozenCols", FROZEN_COLUMN_COUNTS)} {this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)} {this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)} {this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)} <H6>Interactions</H6> {this.renderSwitch("Editing", "enableColumnNameEditing", "enableColumnCustomHeaders", false)} {this.renderSwitch("Reordering", "enableColumnReordering")} {this.renderSwitch("Resizing", "enableColumnResizing")} {this.renderSwitch("Selection", "enableColumnSelection")}
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
{this.renderSwitch("Menus", "showColumnMenus")} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders")} <H6>Interactions</H6> {this.renderSwitch("Editing", "enableColumnNameEditing", "enableColumnCustomHeaders", false)} {this.renderSwitch("Reordering", "enableColumnReordering")} {this.renderSwitch("Resizing", "enableColumnResizing")} {this.renderSwitch("Selection", "enableColumnSelection")} <H4>Rows</H4> <H6>Display</H6> {this.renderNumberSelectMenu("Num. rows", "numRows", ROW_COUNTS)} {this.renderNumberSelectMenu("Num. frozen rows", "numFrozenRows", FROZEN_ROW_COUNTS)}
</s> remove {this.renderSwitch("Loading state", "showColumnHeadersLoading")} {this.renderSwitch("Menus", "showColumnMenus")} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders")} </s> add {this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)} </s> remove {this.renderSwitch("Headers", "showRowHeaders")} {this.renderSwitch("Loading state", "showRowHeadersLoading")} </s> add {this.renderSwitch("Row headers", "enableRowHeader")} {this.renderSwitch("Row headers loading", "showRowHeadersLoading", "enableRowHeader", true)} </s> remove {this.renderSwitch("Reordering", "enableRowReordering")} {this.renderSwitch("Resizing", "enableRowResizing")} {this.renderSwitch("Selection", "enableRowSelection")} </s> add {this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)}
{this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)}
{this.renderSwitch("Menus", "showColumnMenus")} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders")} <H6>Interactions</H6> {this.renderSwitch("Editing", "enableColumnNameEditing", "enableColumnCustomHeaders", false)} {this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)} {this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)} {this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)} <H4>Rows</H4> <H6>Display</H6> {this.renderNumberSelectMenu("Num. rows", "numRows", ROW_COUNTS)} {this.renderNumberSelectMenu("Num. frozen rows", "numFrozenRows", FROZEN_ROW_COUNTS)}
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
<H4>Rows</H4> <H6>Display</H6> {this.renderNumberSelectMenu("Num. rows", "numRows", ROW_COUNTS)} {this.renderNumberSelectMenu("Num. frozen rows", "numFrozenRows", FROZEN_ROW_COUNTS)} {this.renderSwitch("Headers", "showRowHeaders")} {this.renderSwitch("Loading state", "showRowHeadersLoading")} {this.renderSwitch("Zebra striping", "showZebraStriping")} <H6>Interactions</H6> {this.renderSwitch("Reordering", "enableRowReordering")} {this.renderSwitch("Resizing", "enableRowResizing")} {this.renderSwitch("Selection", "enableRowSelection")}
</s> remove {this.renderSwitch("Reordering", "enableColumnReordering")} {this.renderSwitch("Resizing", "enableColumnResizing")} {this.renderSwitch("Selection", "enableColumnSelection")} </s> add {this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)} </s> remove {this.renderSwitch("Reordering", "enableRowReordering")} {this.renderSwitch("Resizing", "enableRowResizing")} {this.renderSwitch("Selection", "enableRowSelection")} </s> add {this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)} </s> remove {this.renderSwitch("Loading state", "showColumnHeadersLoading")} {this.renderSwitch("Menus", "showColumnMenus")} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders")} </s> add {this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)}
{this.renderSwitch("Row headers", "enableRowHeader")} {this.renderSwitch("Row headers loading", "showRowHeadersLoading", "enableRowHeader", true)}
<H4>Rows</H4> <H6>Display</H6> {this.renderNumberSelectMenu("Num. rows", "numRows", ROW_COUNTS)} {this.renderNumberSelectMenu("Num. frozen rows", "numFrozenRows", FROZEN_ROW_COUNTS)} {this.renderSwitch("Row headers", "enableRowHeader")} {this.renderSwitch("Row headers loading", "showRowHeadersLoading", "enableRowHeader", true)} {this.renderSwitch("Row headers", "enableRowHeader")} {this.renderSwitch("Row headers loading", "showRowHeadersLoading", "enableRowHeader", true)} {this.renderSwitch("Zebra striping", "showZebraStriping")} <H6>Interactions</H6> {this.renderSwitch("Reordering", "enableRowReordering")} {this.renderSwitch("Resizing", "enableRowResizing")} {this.renderSwitch("Selection", "enableRowSelection")}
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
{this.renderSwitch("Headers", "showRowHeaders")} {this.renderSwitch("Loading state", "showRowHeadersLoading")} {this.renderSwitch("Zebra striping", "showZebraStriping")} <H6>Interactions</H6> {this.renderSwitch("Reordering", "enableRowReordering")} {this.renderSwitch("Resizing", "enableRowResizing")} {this.renderSwitch("Selection", "enableRowSelection")} <H6>Instance methods</H6> {this.renderButton("Resize rows by tallest cell", { onClick: this.handleResizeRowsByTallestCellButtonClick, })} {this.renderButton("Resize rows by approx height", {
</s> remove {this.renderSwitch("Headers", "showRowHeaders")} {this.renderSwitch("Loading state", "showRowHeadersLoading")} </s> add {this.renderSwitch("Row headers", "enableRowHeader")} {this.renderSwitch("Row headers loading", "showRowHeadersLoading", "enableRowHeader", true)} </s> remove {this.renderSwitch("Loading state", "showColumnHeadersLoading")} {this.renderSwitch("Menus", "showColumnMenus")} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders")} </s> add {this.renderSwitch("Column headers", "enableColumnHeader")} {this.renderSwitch("Column headers loading", "showColumnHeadersLoading", "enableColumnHeader", true)} {this.renderSwitch("Column header menus", "showColumnMenus", "enableColumnHeader", true)} {this.renderSwitch("Custom headers", "enableColumnCustomHeaders", "enableColumnHeader", true)} </s> remove {this.renderSwitch("Reordering", "enableColumnReordering")} {this.renderSwitch("Resizing", "enableColumnResizing")} {this.renderSwitch("Selection", "enableColumnSelection")} </s> add {this.renderSwitch("Reordering", "enableColumnReordering", "enableColumnHeader", true)} {this.renderSwitch("Resizing", "enableColumnResizing", "enableColumnHeader", true)} {this.renderSwitch("Selection", "enableColumnSelection", "enableColumnHeader", true)} </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
{this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)}
{this.renderSwitch("Headers", "showRowHeaders")} {this.renderSwitch("Loading state", "showRowHeadersLoading")} {this.renderSwitch("Zebra striping", "showZebraStriping")} <H6>Interactions</H6> {this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)} {this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)} {this.renderSwitch("Reordering", "enableRowReordering", "enableRowHeader", true)} {this.renderSwitch("Resizing", "enableRowResizing", "enableRowHeader", true)} {this.renderSwitch("Selection", "enableRowSelection", "enableRowHeader", true)} <H6>Instance methods</H6> {this.renderButton("Resize rows by tallest cell", { onClick: this.handleResizeRowsByTallestCellButtonClick, })} {this.renderButton("Resize rows by approx height", {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table-dev-app/src/mutableTable.tsx
public static DEFAULT_GHOST_HEIGHT = 20; public static DEFAULT_GHOST_WIDTH = 150; // defined in headers/_common.scss public static MIN_COLUMN_HEADER_HEIGHT = 30; // defined in headers/_common.scss public static MIN_ROW_HEADER_WIDTH = 30;
</s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add </s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; }
// Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss
public static DEFAULT_GHOST_HEIGHT = 20; public static DEFAULT_GHOST_WIDTH = 150; // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss public static MIN_COLUMN_HEADER_HEIGHT = 30; // defined in headers/_common.scss public static MIN_ROW_HEADER_WIDTH = 30;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/common/grid.ts
// defined in headers/_common.scss public static MIN_COLUMN_HEADER_HEIGHT = 30; // defined in headers/_common.scss public static MIN_ROW_HEADER_WIDTH = 30; public numCols: number; public numRows: number;
</s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add </s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; }
// Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss
// defined in headers/_common.scss public static MIN_COLUMN_HEADER_HEIGHT = 30; // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss public static MIN_ROW_HEADER_WIDTH = 30; public numCols: number; public numRows: number;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/common/grid.ts
*/ style?: React.CSSProperties; } export class TableQuadrant extends AbstractComponent2<ITableQuadrantProps> { // we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid // declaring that and other required props here. public static defaultProps: Partial<ITableQuadrantProps> = {
</s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss </s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss
/** * If `false`, hides the column headers. * * @default true */ enableColumnHeader?: boolean;
*/ style?: React.CSSProperties; /** * If `false`, hides the column headers. * * @default true */ enableColumnHeader?: boolean; } export class TableQuadrant extends AbstractComponent2<ITableQuadrantProps> { // we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid // declaring that and other required props here. public static defaultProps: Partial<ITableQuadrantProps> = {
[ "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrant.tsx
export class TableQuadrant extends AbstractComponent2<ITableQuadrantProps> { // we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid // declaring that and other required props here. public static defaultProps: Partial<ITableQuadrantProps> = { enableRowHeader: true, }; public render() {
</s>
enableColumnHeader: true,
export class TableQuadrant extends AbstractComponent2<ITableQuadrantProps> { // we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid // declaring that and other required props here. public static defaultProps: Partial<ITableQuadrantProps> = { enableColumnHeader: true, enableRowHeader: true, }; public render() {
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrant.tsx
enableRowHeader: true, }; public render() { const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; const showFrozenRowsOnly = quadrantType === QuadrantType.TOP || quadrantType === QuadrantType.TOP_LEFT; const showFrozenColumnsOnly = quadrantType === QuadrantType.LEFT || quadrantType === QuadrantType.TOP_LEFT; const className = classNames(Classes.TABLE_QUADRANT, this.getQuadrantCssClass(), this.props.className);
</s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { grid, enableRowHeader, bodyRenderer, throttleScrolling } = this.props; </s> add const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props; </s> remove const maybeColumnHeader = this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly); </s> add const maybeColumnHeader = enableColumnHeader && this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly);
const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props;
enableRowHeader: true, }; public render() { const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; const showFrozenRowsOnly = quadrantType === QuadrantType.TOP || quadrantType === QuadrantType.TOP_LEFT; const showFrozenColumnsOnly = quadrantType === QuadrantType.LEFT || quadrantType === QuadrantType.TOP_LEFT; const className = classNames(Classes.TABLE_QUADRANT, this.getQuadrantCssClass(), this.props.className);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrant.tsx
const className = classNames(Classes.TABLE_QUADRANT, this.getQuadrantCssClass(), this.props.className); const maybeMenu = enableRowHeader && this.props.menuRenderer?.(); const maybeRowHeader = enableRowHeader && this.props.rowHeaderCellRenderer?.(showFrozenRowsOnly); const maybeColumnHeader = this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly); const body = bodyRenderer(quadrantType, showFrozenRowsOnly, showFrozenColumnsOnly); // need to set bottom container size to prevent overlay clipping on scroll const bottomContainerStyle = { height: grid.getHeight(),
</s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; </s> remove const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); </s> add return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT); </s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height);
const maybeColumnHeader = enableColumnHeader && this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly);
const className = classNames(Classes.TABLE_QUADRANT, this.getQuadrantCssClass(), this.props.className); const maybeMenu = enableRowHeader && this.props.menuRenderer?.(); const maybeRowHeader = enableRowHeader && this.props.rowHeaderCellRenderer?.(showFrozenRowsOnly); const maybeColumnHeader = enableColumnHeader && this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly); const body = bodyRenderer(quadrantType, showFrozenRowsOnly, showFrozenColumnsOnly); // need to set bottom container size to prevent overlay clipping on scroll const bottomContainerStyle = { height: grid.getHeight(),
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrant.tsx
* and row headers (if present) have been rendered and mounted, including any * custom renderers which may affect quadrant layout measurements. */ didHeadersMount: boolean; } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30;
</s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss </s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } </s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss </s> remove return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); </s> add return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT);
* and row headers (if present) have been rendered and mounted, including any * custom renderers which may affect quadrant layout measurements. */ didHeadersMount: boolean; // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
// Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; // the debounce delay for updating the view on scroll. elements will be resized // and rejiggered once scroll has ceased for at least this long, but not before. const DEFAULT_VIEW_SYNC_DELAY = 500;
</s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add </s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss </s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss </s> remove const { grid, enableRowHeader, bodyRenderer, throttleScrolling } = this.props; </s> add const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props; </s> remove return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); </s> add return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH);
/** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; }
// Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } // the debounce delay for updating the view on scroll. elements will be resized // and rejiggered once scroll has ceased for at least this long, but not before. const DEFAULT_VIEW_SYNC_DELAY = 500;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
"numColumns", "numRows", "enableColumnInteractionBar", "didHeadersMount", ]; export class TableQuadrantStack extends AbstractComponent2<ITableQuadrantStackProps> { // we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid
</s> remove return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); </s> add return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH); </s> remove return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); </s> add return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT);
"enableColumnHeader",
"numColumns", "numRows", "enableColumnInteractionBar", "didHeadersMount", "enableColumnHeader", ]; export class TableQuadrantStack extends AbstractComponent2<ITableQuadrantStackProps> { // we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
// we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid // declaring that and other required props here. public static defaultProps: Partial<ITableQuadrantStackProps> = { enableColumnInteractionBar: undefined, enableRowHeader: true, isHorizontalScrollDisabled: false, isVerticalScrollDisabled: false, throttleScrolling: true, viewSyncDelay: DEFAULT_VIEW_SYNC_DELAY,
</s>
enableColumnHeader: true,
// we want the user to explicitly pass a quadrantType. define defaultProps as a Partial to avoid // declaring that and other required props here. public static defaultProps: Partial<ITableQuadrantStackProps> = { enableColumnHeader: true, enableColumnInteractionBar: undefined, enableRowHeader: true, isHorizontalScrollDisabled: false, isVerticalScrollDisabled: false, throttleScrolling: true, viewSyncDelay: DEFAULT_VIEW_SYNC_DELAY,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
} } public render() { const { grid, enableRowHeader, bodyRenderer, throttleScrolling } = this.props; // use the more generic "scroll" event for the main quadrant to capture // *both* scrollbar interactions and trackpad/mousewheel gestures. const onMainQuadrantScroll = throttleScrolling ? this.throttledHandleMainQuadrantScroll
</s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props;
} } public render() { const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props; // use the more generic "scroll" event for the main quadrant to capture // *both* scrollbar interactions and trackpad/mousewheel gestures. const onMainQuadrantScroll = throttleScrolling ? this.throttledHandleMainQuadrantScroll
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
const onWheel = throttleScrolling ? this.throttledHandleWheel : this.handleWheel; const baseProps = { bodyRenderer, enableRowHeader, grid, onWheel, }; const shouldRenderLeftQuadrants = this.shouldRenderLeftQuadrants();
</s> remove const { grid, enableRowHeader, bodyRenderer, throttleScrolling } = this.props; </s> add const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props; </s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; </s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, clampedWidth); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); </s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); </s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height);
enableColumnHeader,
const onWheel = throttleScrolling ? this.throttledHandleWheel : this.handleWheel; const baseProps = { bodyRenderer, enableColumnHeader, enableRowHeader, grid, onWheel, }; const shouldRenderLeftQuadrants = this.shouldRenderLeftQuadrants();
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
const rightScrollBarWidth = ScrollUtils.measureScrollBarThickness(mainScrollContainer!, "vertical"); const bottomScrollBarHeight = ScrollUtils.measureScrollBarThickness(mainScrollContainer!, "horizontal"); // ensure neither of these measurements confusingly clamps to zero height. const adjustedColumnHeaderHeight = this.maybeIncreaseToMinColHeaderHeight(columnHeaderHeight); const adjustedTopQuadrantHeight = this.maybeIncreaseToMinColHeaderHeight(topQuadrantHeight); // Update cache: let's read now whatever values we might need later. // prevents unnecessary reflows in the future.
</s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } </s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss </s> remove // defined in headers/_common.scss </s> add // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add </s> remove const maybeColumnHeader = this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly); </s> add const maybeColumnHeader = enableColumnHeader && this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly);
// if columnHeader is enabled, ensure neither of these measurements confusingly clamps to zero height.
const rightScrollBarWidth = ScrollUtils.measureScrollBarThickness(mainScrollContainer!, "vertical"); const bottomScrollBarHeight = ScrollUtils.measureScrollBarThickness(mainScrollContainer!, "horizontal"); // if columnHeader is enabled, ensure neither of these measurements confusingly clamps to zero height. const adjustedColumnHeaderHeight = this.maybeIncreaseToMinColHeaderHeight(columnHeaderHeight); const adjustedTopQuadrantHeight = this.maybeIncreaseToMinColHeaderHeight(topQuadrantHeight); // Update cache: let's read now whatever values we might need later. // prevents unnecessary reflows in the future.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
this.maybeSetQuadrantScrollOffset(QuadrantType.TOP, "scrollLeft"); }; private maybeSetQuadrantSizes = (width: number, height: number) => { this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); }; private maybesSetQuadrantSize = (quadrantType: QuadrantType, dimension: "width" | "height", value: number) => { const { quadrant } = this.quadrantRefs[quadrantType]; if (quadrant != null) {
</s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); </s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, clampedWidth); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove return height <= QUADRANT_MIN_SIZE ? MIN_COL_HEADER_HEIGHT : height; </s> add if (this.props.enableColumnHeader) { return height <= QUADRANT_MIN_SIZE ? Grid.MIN_COLUMN_HEADER_HEIGHT : height; } else { return height; } </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight);
this.maybeSetQuadrantScrollOffset(QuadrantType.TOP, "scrollLeft"); }; private maybeSetQuadrantSizes = (width: number, height: number) => { const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); }; private maybesSetQuadrantSize = (quadrantType: QuadrantType, dimension: "width" | "height", value: number) => { const { quadrant } = this.quadrantRefs[quadrantType]; if (quadrant != null) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
} }; private maybesSetQuadrantRowHeaderSizes = (width: number) => { const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, clampedWidth); }; private maybeSetQuadrantRowHeaderSize = (quadrantType: QuadrantType, width: number) => { const { rowHeader } = this.quadrantRefs[quadrantType]; if (rowHeader != null) {
</s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); </s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth);
} }; private maybesSetQuadrantRowHeaderSizes = (width: number) => { const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); }; private maybeSetQuadrantRowHeaderSize = (quadrantType: QuadrantType, width: number) => { const { rowHeader } = this.quadrantRefs[quadrantType]; if (rowHeader != null) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
} }; private maybeSetQuadrantMenuElementSizes = (width: number, height: number) => { const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); }; private maybeSetQuadrantMenuElementSize = (quadrantType: QuadrantType, width: number, height: number) => { const { menu } = this.quadrantRefs[quadrantType]; if (menu != null) {
</s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, clampedWidth); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); </s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height);
} }; private maybeSetQuadrantMenuElementSizes = (width: number, height: number) => { const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); }; private maybeSetQuadrantMenuElementSize = (quadrantType: QuadrantType, width: number, height: number) => { const { menu } = this.quadrantRefs[quadrantType]; if (menu != null) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
} } private maybeIncreaseToMinColHeaderHeight(height: number) { return height <= QUADRANT_MIN_SIZE ? MIN_COL_HEADER_HEIGHT : height; } // Helpers // =======
</s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, clampedWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, clampedWidth); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantRowHeaderSize(QuadrantType.MAIN, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.LEFT, rowHeaderWidth); this.maybeSetQuadrantRowHeaderSize(QuadrantType.TOP_LEFT, rowHeaderWidth); </s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); </s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); </s> remove return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); </s> add return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT); </s> remove return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); </s> add return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH);
if (this.props.enableColumnHeader) { return height <= QUADRANT_MIN_SIZE ? Grid.MIN_COLUMN_HEADER_HEIGHT : height; } else { return height; }
} } private maybeIncreaseToMinColHeaderHeight(height: number) { if (this.props.enableColumnHeader) { return height <= QUADRANT_MIN_SIZE ? Grid.MIN_COLUMN_HEADER_HEIGHT : height; } else { return height; } } // Helpers // =======
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
} else { // (alas, we must force a reflow to measure the row header's "desired" width) mainRowHeader.style.width = "auto"; return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); } } /** * Measures the desired height of the column header based on its tallest
</s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add </s> remove return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); </s> add return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT);
return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH);
} else { // (alas, we must force a reflow to measure the row header's "desired" width) mainRowHeader.style.width = "auto"; return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH); } } /** * Measures the desired height of the column header based on its tallest
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
// unlike the row headers, the column headers are in a display-flex // layout and are not actually bound by any fixed `height` that we set, // so they'll grow freely to their necessary size. makes measuring easy! const mainColumnHeader = this.quadrantRefs[QuadrantType.MAIN].columnHeader; return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, MIN_COL_HEADER_HEIGHT); } private shouldRenderLeftQuadrants(props: ITableQuadrantStackProps = this.props) { const { enableRowHeader, numFrozenColumns } = props; return enableRowHeader || (numFrozenColumns != null && numFrozenColumns > 0);
</s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add </s> remove return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); </s> add return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH); </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; }
return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT);
// unlike the row headers, the column headers are in a display-flex // layout and are not actually bound by any fixed `height` that we set, // so they'll grow freely to their necessary size. makes measuring easy! const mainColumnHeader = this.quadrantRefs[QuadrantType.MAIN].columnHeader; return mainColumnHeader == null ? 0 : Utils.clamp(mainColumnHeader.clientHeight, Grid.MIN_COLUMN_HEADER_HEIGHT); } private shouldRenderLeftQuadrants(props: ITableQuadrantStackProps = this.props) { const { enableRowHeader, numFrozenColumns } = props; return enableRowHeader || (numFrozenColumns != null && numFrozenColumns > 0);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/quadrants/tableQuadrantStack.tsx
public static defaultProps: TablePropsDefaults = { defaultColumnWidth: 150, defaultRowHeight: 20, enableColumnInteractionBar: false, enableFocusedCell: false, enableGhostCells: false, enableMultipleSelection: true, enableRowHeader: true,
</s> remove showRowHeaders: true, </s> add
enableColumnHeader: true,
public static defaultProps: TablePropsDefaults = { defaultColumnWidth: 150, defaultRowHeight: 20, enableColumnHeader: true, enableColumnInteractionBar: false, enableFocusedCell: false, enableGhostCells: false, enableMultipleSelection: true, enableRowHeader: true,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table.tsx
); } public render() { const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; const { horizontalGuides, numFrozenColumnsClamped, numFrozenRowsClamped, verticalGuides } = this.state; if (!this.gridDimensionsMatchProps()) { // Ensure we're rendering the correct number of rows & columns this.invalidateGrid(); }
</s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { grid, enableRowHeader, bodyRenderer, throttleScrolling } = this.props; </s> add const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props; </s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
); } public render() { const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; const { horizontalGuides, numFrozenColumnsClamped, numFrozenRowsClamped, verticalGuides } = this.state; if (!this.gridDimensionsMatchProps()) { // Ensure we're rendering the correct number of rows & columns this.invalidateGrid(); }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table.tsx
rowHeaderRenderer={this.renderRowHeader} rowHeaderRef={this.refHandlers.rowHeader} scrollContainerRef={this.refHandlers.scrollContainer} /> <div className={classNames(Classes.TABLE_OVERLAY_LAYER, Classes.TABLE_OVERLAY_REORDERING_CURSOR)} /> <GuideLayer className={Classes.TABLE_RESIZE_GUIDES}
</s> remove const clampedWidth = Utils.clamp(width, MIN_ROW_HEADER_WIDTH); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, clampedWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, clampedWidth, height); </s> add const rowHeaderWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); this.maybeSetQuadrantMenuElementSize(QuadrantType.MAIN, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.LEFT, rowHeaderWidth, height); this.maybeSetQuadrantMenuElementSize(QuadrantType.TOP_LEFT, rowHeaderWidth, height); </s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); </s> remove // ensure neither of these measurements confusingly clamps to zero height. </s> add // if columnHeader is enabled, ensure neither of these measurements confusingly clamps to zero height.
enableColumnHeader={enableColumnHeader}
rowHeaderRenderer={this.renderRowHeader} rowHeaderRef={this.refHandlers.rowHeader} scrollContainerRef={this.refHandlers.scrollContainer} enableColumnHeader={enableColumnHeader} /> <div className={classNames(Classes.TABLE_OVERLAY_LAYER, Classes.TABLE_OVERLAY_REORDERING_CURSOR)} /> <GuideLayer className={Classes.TABLE_RESIZE_GUIDES}
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table.tsx
// Quadrant refs // ============= private shouldDisableVerticalScroll() { const { enableGhostCells } = this.props; const { viewportRect } = this.state; if (this.grid === null || viewportRect === undefined) { return false; }
</s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; </s> remove columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, </s> add columnHeaderHeight, </s> remove columnHeaderHeight: this.columnHeaderHeight, </s> add columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0,
const { enableColumnHeader, enableGhostCells } = this.props;
// Quadrant refs // ============= private shouldDisableVerticalScroll() { const { enableColumnHeader, enableGhostCells } = this.props; const { viewportRect } = this.state; if (this.grid === null || viewportRect === undefined) { return false; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table.tsx
if (this.grid === null || viewportRect === undefined) { return false; } const rowIndices = this.grid.getRowIndicesInRect({ columnHeaderHeight, includeGhostCells: enableGhostCells, rect: viewportRect, });
</s> remove columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, </s> add columnHeaderHeight, </s> remove columnHeaderHeight: this.columnHeaderHeight, </s> add columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0, </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, );
const columnHeaderHeight = enableColumnHeader ? this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT : 0;
if (this.grid === null || viewportRect === undefined) { return false; } const columnHeaderHeight = enableColumnHeader ? this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT : 0; const rowIndices = this.grid.getRowIndicesInRect({ columnHeaderHeight, includeGhostCells: enableGhostCells, rect: viewportRect, });
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table.tsx
return false; } const rowIndices = this.grid.getRowIndicesInRect({ columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, includeGhostCells: enableGhostCells, rect: viewportRect, }); const isViewportUnscrolledVertically = viewportRect != null && viewportRect.top === 0;
</s> remove columnHeaderHeight: this.columnHeaderHeight, </s> add columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0, </s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); </s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
columnHeaderHeight,
return false; } const rowIndices = this.grid.getRowIndicesInRect({ columnHeaderHeight, includeGhostCells: enableGhostCells, rect: viewportRect, }); const isViewportUnscrolledVertically = viewportRect != null && viewportRect.top === 0;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table.tsx
public static defaultProps: TablePropsDefaults = { defaultColumnWidth: 150, defaultRowHeight: 20, enableColumnInteractionBar: false, enableFocusedCell: false, enableGhostCells: false, enableMultipleSelection: true, enableRowHeader: true, forceRerenderOnSelectionChange: false,
</s> remove showRowHeaders: true, </s> add
enableColumnHeader: true,
public static defaultProps: TablePropsDefaults = { defaultColumnWidth: 150, defaultRowHeight: 20, enableColumnHeader: true, enableColumnInteractionBar: false, enableFocusedCell: false, enableGhostCells: false, enableMultipleSelection: true, enableRowHeader: true, forceRerenderOnSelectionChange: false,
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
numRows, rowHeights, selectedRegions = [] as Region[], } = props; const childrenArray = React.Children.toArray(children) as Array<React.ReactElement<ColumnProps>>; const columnIdToIndex = Table2.createColumnIdIndex(childrenArray);
</s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const maybeColumnHeader = this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly); </s> add const maybeColumnHeader = enableColumnHeader && this.props.columnHeaderCellRenderer?.(showFrozenColumnsOnly);
enableColumnHeader,
numRows, rowHeights, selectedRegions = [] as Region[], enableColumnHeader, } = props; const childrenArray = React.Children.toArray(children) as Array<React.ReactElement<ColumnProps>>; const columnIdToIndex = Table2.createColumnIdIndex(childrenArray);
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
if (enableRowHeader === false) { this.didRowHeaderMount = true; } } // Instance methods // ================ /**
</s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { grid, enableRowHeader, quadrantType, bodyRenderer } = this.props; </s> add const { grid, enableRowHeader, quadrantType, bodyRenderer, enableColumnHeader } = this.props; </s> remove return Utils.clamp(mainRowHeader.clientWidth, MIN_ROW_HEADER_WIDTH); </s> add return Utils.clamp(mainRowHeader.clientWidth, Grid.MIN_ROW_HEADER_WIDTH);
if (enableColumnHeader === false) { this.didColumnHeaderMount = true; }
if (enableRowHeader === false) { this.didRowHeaderMount = true; } if (enableColumnHeader === false) { this.didColumnHeaderMount = true; } } // Instance methods // ================ /**
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
return <HotkeysTarget2 hotkeys={this.hotkeys}>{this.renderTableContents}</HotkeysTarget2>; } private renderTableContents = ({ handleKeyDown, handleKeyUp }: UseHotkeysReturnValue) => { const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; const { horizontalGuides, numFrozenColumnsClamped, numFrozenRowsClamped, verticalGuides } = this.state; if (!this.gridDimensionsMatchProps()) { // Ensure we're rendering the correct number of rows & columns this.invalidateGrid(); }
</s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { grid, enableRowHeader, bodyRenderer, throttleScrolling } = this.props; </s> add const { grid, enableRowHeader, bodyRenderer, throttleScrolling, enableColumnHeader } = this.props;
const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
return <HotkeysTarget2 hotkeys={this.hotkeys}>{this.renderTableContents}</HotkeysTarget2>; } private renderTableContents = ({ handleKeyDown, handleKeyUp }: UseHotkeysReturnValue) => { const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; const { horizontalGuides, numFrozenColumnsClamped, numFrozenRowsClamped, verticalGuides } = this.state; if (!this.gridDimensionsMatchProps()) { // Ensure we're rendering the correct number of rows & columns this.invalidateGrid(); }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
rowHeaderRenderer={this.renderRowHeader} rowHeaderRef={this.refHandlers.rowHeader} scrollContainerRef={this.refHandlers.scrollContainer} /> <div className={classNames(Classes.TABLE_OVERLAY_LAYER, Classes.TABLE_OVERLAY_REORDERING_CURSOR)} /> <GuideLayer className={Classes.TABLE_RESIZE_GUIDES}
</s>
enableColumnHeader={enableColumnHeader}
rowHeaderRenderer={this.renderRowHeader} rowHeaderRef={this.refHandlers.rowHeader} scrollContainerRef={this.refHandlers.scrollContainer} enableColumnHeader={enableColumnHeader} /> <div className={classNames(Classes.TABLE_OVERLAY_LAYER, Classes.TABLE_OVERLAY_REORDERING_CURSOR)} /> <GuideLayer className={Classes.TABLE_RESIZE_GUIDES}
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
// Quadrant refs // ============= private shouldDisableVerticalScroll() { const { enableGhostCells } = this.props; const { viewportRect } = this.state; if (this.grid === null || viewportRect === undefined) { return false; }
</s>
const { enableColumnHeader, enableGhostCells } = this.props;
// Quadrant refs // ============= private shouldDisableVerticalScroll() { const { enableColumnHeader, enableGhostCells } = this.props; const { viewportRect } = this.state; if (this.grid === null || viewportRect === undefined) { return false; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
return false; } const rowIndices = this.grid.getRowIndicesInRect({ columnHeaderHeight: this.columnHeaderHeight, includeGhostCells: enableGhostCells!, rect: viewportRect, }); const isViewportUnscrolledVertically = viewportRect != null && viewportRect.top === 0;
</s> remove columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, </s> add columnHeaderHeight, </s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0,
return false; } const rowIndices = this.grid.getRowIndicesInRect({ columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0, includeGhostCells: enableGhostCells!, rect: viewportRect, }); const isViewportUnscrolledVertically = viewportRect != null && viewportRect.top === 0;
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
enableColumnReordering, enableColumnResizing, loadingOptions, maxColumnWidth, minColumnWidth, selectedRegionTransform, } = this.props;
</s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props;
enableRowHeader,
enableColumnReordering, enableColumnResizing, enableRowHeader, loadingOptions, maxColumnWidth, minColumnWidth, selectedRegionTransform, } = this.props;
[ "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
} // if we have horizontal overflow, no need to render ghost columns // (this avoids problems like https://github.com/palantir/blueprint/issues/5027) const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); const columnIndices = this.grid.getColumnIndicesInRect( viewportRect, hasHorizontalOverflow ? false : enableGhostCells, );
</s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove // ensure neither of these measurements confusingly clamps to zero height. </s> add // if columnHeader is enabled, ensure neither of these measurements confusingly clamps to zero height.
const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, );
} // if we have horizontal overflow, no need to render ghost columns // (this avoids problems like https://github.com/palantir/blueprint/issues/5027) const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); const columnIndices = this.grid.getColumnIndicesInRect( viewportRect, hasHorizontalOverflow ? false : enableGhostCells, );
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
const { focusedCell, selectedRegions, viewportRect } = this.state; const { defaultRowHeight, enableMultipleSelection, enableGhostCells, enableRowReordering, enableRowResizing, loadingOptions,
</s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { enableGhostCells } = this.props; </s> add const { enableColumnHeader, enableGhostCells } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
enableColumnHeader,
const { focusedCell, selectedRegions, viewportRect } = this.state; const { defaultRowHeight, enableColumnHeader, enableMultipleSelection, enableGhostCells, enableRowReordering, enableRowResizing, loadingOptions,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
} // if we have vertical overflow, no need to render ghost rows // (this avoids problems like https://github.com/palantir/blueprint/issues/5027) const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); const rowIndices = this.grid.getRowIndicesInRect({ includeGhostCells: hasVerticalOverflow ? false : enableGhostCells, rect: viewportRect, });
</s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove columnHeaderHeight: this.columnHeaderHeight, </s> add columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0, </s> remove columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, </s> add columnHeaderHeight,
const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, );
} // if we have vertical overflow, no need to render ghost rows // (this avoids problems like https://github.com/palantir/blueprint/issues/5027) const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const rowIndices = this.grid.getRowIndicesInRect({ includeGhostCells: hasVerticalOverflow ? false : enableGhostCells, rect: viewportRect, });
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
} = this.state; const { enableMultipleSelection, enableGhostCells, enableRowHeader, loadingOptions, bodyContextMenuRenderer, selectedRegionTransform,
</s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
enableColumnHeader,
} = this.state; const { enableMultipleSelection, enableColumnHeader, enableGhostCells, enableRowHeader, loadingOptions, bodyContextMenuRenderer, selectedRegionTransform,
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
enableColumnHeader, enableGhostCells, loadingOptions, bodyContextMenuRenderer, selectedRegionTransform, } = this.props;
</s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
enableRowHeader,
enableColumnHeader, enableGhostCells, enableRowHeader, loadingOptions, bodyContextMenuRenderer, selectedRegionTransform, } = this.props;
[ "keep", "add", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
} // if we have vertical/horizontal overflow, no need to render ghost rows/columns (respectively) // (this avoids problems like https://github.com/palantir/blueprint/issues/5027) const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); const rowIndices = this.grid.getRowIndicesInRect({ includeGhostCells: hasVerticalOverflow ? false : enableGhostCells, rect: viewportRect, }); const columnIndices = this.grid.getColumnIndicesInRect(
</s> remove const hasVerticalOverflow = this.locator.hasVerticalOverflow(this.columnHeaderHeight, viewportRect); </s> add const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); </s> remove const hasHorizontalOverflow = this.locator.hasHorizontalOverflow(this.rowHeaderWidth, viewportRect); </s> add const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); </s> remove columnHeaderHeight: this.columnHeaderHeight, </s> add columnHeaderHeight: enableColumnHeader ? this.columnHeaderHeight : 0, </s> remove columnHeaderHeight: this.columnHeaderElement?.clientHeight ?? Grid.MIN_COLUMN_HEADER_HEIGHT, </s> add columnHeaderHeight,
const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, );
} // if we have vertical/horizontal overflow, no need to render ghost rows/columns (respectively) // (this avoids problems like https://github.com/palantir/blueprint/issues/5027) const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); const hasVerticalOverflow = this.locator.hasVerticalOverflow( enableColumnHeader ? this.columnHeaderHeight : 0, viewportRect, ); const hasHorizontalOverflow = this.locator.hasHorizontalOverflow( enableRowHeader ? this.rowHeaderWidth : 0, viewportRect, ); const rowIndices = this.grid.getRowIndicesInRect({ includeGhostCells: hasVerticalOverflow ? false : enableGhostCells, rect: viewportRect, }); const columnIndices = this.grid.getColumnIndicesInRect(
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/table2.tsx
* marked with their own `className` for custom styling. */ styledRegionGroups?: StyledRegionGroup[]; } export type TablePropsDefaults = Required< Pick< TableProps, | "defaultColumnWidth"
</s> remove // Used on first render of the top-left and left quadrants to avoid collapsing // their widths to 0. originally defined in headers/_common.scss const MIN_ROW_HEADER_WIDTH = 30; </s> add /** * If `false`, hides the column headers. Affects the layout * of the table, so we need to know when this changes in order to * synchronize quadrant sizes properly. * * REQUIRES QUADRANT RESYNC * * @default true */ enableColumnHeader?: boolean; } </s> remove } // Used on first render of the top-left and top quadrants to avoid collapsing // their heights to 0. originally defined in headers/_common.scss const MIN_COL_HEADER_HEIGHT = 30; </s> add
/** * If `false`, hides the column headers. * * @default true */ enableColumnHeader?: boolean;
* marked with their own `className` for custom styling. */ styledRegionGroups?: StyledRegionGroup[]; /** * If `false`, hides the column headers. * * @default true */ enableColumnHeader?: boolean; } export type TablePropsDefaults = Required< Pick< TableProps, | "defaultColumnWidth"
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/tableProps.ts
| "numRows" | "renderMode" | "rowHeaderCellRenderer" | "selectionModes" > >; export type TablePropsWithDefaults = Omit<TableProps, keyof TablePropsDefaults> & TablePropsDefaults;
</s> remove this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", Utils.clamp(width, MIN_ROW_HEADER_WIDTH)); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", Utils.clamp(height, MIN_COL_HEADER_HEIGHT)); </s> add const leftWidth = Utils.clamp(width, this.props.enableRowHeader ? Grid.MIN_ROW_HEADER_WIDTH : 0); const topHeight = Utils.clamp(height, this.props.enableColumnHeader ? Grid.MIN_COLUMN_HEADER_HEIGHT : 0); this.maybesSetQuadrantSize(QuadrantType.LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP, "height", topHeight); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "width", leftWidth); this.maybesSetQuadrantSize(QuadrantType.TOP_LEFT, "height", topHeight); </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props; </s> remove const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar } = this.props; </s> add const { children, className, enableRowHeader, loadingOptions, numRows, enableColumnInteractionBar, enableColumnHeader, } = this.props;
| "enableColumnHeader"
| "numRows" | "renderMode" | "rowHeaderCellRenderer" | "selectionModes" | "enableColumnHeader" > >; export type TablePropsWithDefaults = Omit<TableProps, keyof TablePropsDefaults> & TablePropsDefaults;
[ "keep", "keep", "keep", "add", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/src/tableProps.ts
expect(columnHeaderRenderer.callCount).to.equal(4); }); it("invokes rowHeaderRenderer once for each quadrant on mount", () => { const bodyRenderer = sinon.spy(); const rowHeaderRenderer = sinon.spy(); mount(<TableQuadrantStack grid={grid} bodyRenderer={bodyRenderer} rowHeaderRenderer={rowHeaderRenderer} />); expect(rowHeaderRenderer.callCount).to.equal(4);
</s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => {
it("does not invoke columnHeaderRenderer on mount if enableColumnHeader={false}", () => { const bodyRenderer = sinon.spy(); const columnHeaderRenderer = sinon.spy(); mount( <TableQuadrantStack grid={grid} bodyRenderer={bodyRenderer} enableColumnHeader={false} columnHeaderRenderer={columnHeaderRenderer} />, ); expect(columnHeaderRenderer.callCount).to.equal(0); });
expect(columnHeaderRenderer.callCount).to.equal(4); }); it("does not invoke columnHeaderRenderer on mount if enableColumnHeader={false}", () => { const bodyRenderer = sinon.spy(); const columnHeaderRenderer = sinon.spy(); mount( <TableQuadrantStack grid={grid} bodyRenderer={bodyRenderer} enableColumnHeader={false} columnHeaderRenderer={columnHeaderRenderer} />, ); expect(columnHeaderRenderer.callCount).to.equal(0); }); it("invokes rowHeaderRenderer once for each quadrant on mount", () => { const bodyRenderer = sinon.spy(); const rowHeaderRenderer = sinon.spy(); mount(<TableQuadrantStack grid={grid} bodyRenderer={bodyRenderer} rowHeaderRenderer={rowHeaderRenderer} />); expect(rowHeaderRenderer.callCount).to.equal(4);
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/test/quadrants/tableQuadrantStackTests.tsx
}); describe("Size syncing", () => { describe("if numFrozenRows == 0 && numFrozenColumns == 0", () => { // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(0, 0); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(0, 0);
</s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => {
it("syncs initial quadrant sizes properly", () => {
}); describe("Size syncing", () => { describe("if numFrozenRows == 0 && numFrozenColumns == 0", () => { it("syncs initial quadrant sizes properly", () => { it("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(0, 0); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(0, 0);
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/test/quadrants/tableQuadrantStackTests.tsx
}); }); describe("if numFrozenRows > 0 && numFrozenColumns == 0", () => { // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(NUM_FROZEN_ROWS, 0); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(NUM_FROZEN_ROWS, 0);
</s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => {
it("syncs initial quadrant sizes properly", () => {
}); }); describe("if numFrozenRows > 0 && numFrozenColumns == 0", () => { it("syncs initial quadrant sizes properly", () => { it("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(NUM_FROZEN_ROWS, 0); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(NUM_FROZEN_ROWS, 0);
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/test/quadrants/tableQuadrantStackTests.tsx
}); }); describe("if numFrozenRows == 0 && numFrozenColumns > 0", () => { // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(0, NUM_FROZEN_COLUMNS); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(0, NUM_FROZEN_COLUMNS);
</s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => {
it("syncs initial quadrant sizes properly", () => {
}); }); describe("if numFrozenRows == 0 && numFrozenColumns > 0", () => { it("syncs initial quadrant sizes properly", () => { it("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(0, NUM_FROZEN_COLUMNS); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(0, NUM_FROZEN_COLUMNS);
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/test/quadrants/tableQuadrantStackTests.tsx
}); }); describe("if numFrozenRows > 0 && numFrozenColumns > 0", () => { // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(NUM_FROZEN_ROWS, NUM_FROZEN_COLUMNS); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(NUM_FROZEN_ROWS, NUM_FROZEN_COLUMNS);
</s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => {
it("syncs initial quadrant sizes properly", () => {
}); }); describe("if numFrozenRows > 0 && numFrozenColumns > 0", () => { it("syncs initial quadrant sizes properly", () => { it("syncs initial quadrant sizes properly", () => { assertDefaultQuadrantSizesCorrect(NUM_FROZEN_ROWS, NUM_FROZEN_COLUMNS); }); it("syncs quadrants sizes properly when row header hidden", () => { assertQuadrantSizesCorrectIfRowHeadersHidden(NUM_FROZEN_ROWS, NUM_FROZEN_COLUMNS);
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/test/quadrants/tableQuadrantStackTests.tsx
}); expect(columnHeaderCellRenderer.called).to.be.true; expect(component.find(`.${Classes.TABLE_TOP_CONTAINER} > .${COLUMN_HEADER_CLASS}`).length).to.equal(1); }); }); }); describe("CSS classes", () => { it("renders outermost element with TABLE_QUADRANT_MAIN class if quadrantType=MAIN", () => {
</s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => { </s> remove // HACKHACK: https://github.com/palantir/blueprint/issues/1794 it.skip("syncs initial quadrant sizes properly", () => { </s> add it("syncs initial quadrant sizes properly", () => {
it("does not render column header if enableColumnHeader=false", () => { const columnHeaderCellRenderer = sinon.stub().returns(<div className={COLUMN_HEADER_CLASS} />); const component = mountTableQuadrant({ columnHeaderCellRenderer, enableColumnHeader: false, }); expect(component.find(`.${Classes.TABLE_TOP_CONTAINER}`).children().length).to.equal(0); });
}); expect(columnHeaderCellRenderer.called).to.be.true; expect(component.find(`.${Classes.TABLE_TOP_CONTAINER} > .${COLUMN_HEADER_CLASS}`).length).to.equal(1); }); it("does not render column header if enableColumnHeader=false", () => { const columnHeaderCellRenderer = sinon.stub().returns(<div className={COLUMN_HEADER_CLASS} />); const component = mountTableQuadrant({ columnHeaderCellRenderer, enableColumnHeader: false, }); expect(component.find(`.${Classes.TABLE_TOP_CONTAINER}`).children().length).to.equal(0); }); }); }); describe("CSS classes", () => { it("renders outermost element with TABLE_QUADRANT_MAIN class if quadrantType=MAIN", () => {
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
[table] feat: new prop "enableColumnHeader" (#5283) Co-authored-by: John McGlinchey <[email protected]> Co-authored-by: Adi Dahiya <[email protected]>
https://github.com/palantir/blueprint/commit/a7b53cbe971f7136f4e0c50d86f4fb54ccfb85a7
packages/table/test/quadrants/tableQuadrantTests.tsx
import type { IconName } from "@blueprintjs/icons"; import { Intent } from "./intent"; import { IRef } from "./refs"; export const DISPLAYNAME_PREFIX = "Blueprint4"; /** * Alias for all valid HTML props for `<div>` element.
</s> remove import type { IRef } from "../../common"; </s> add </s> remove import { IRef } from "@blueprintjs/core"; import { CreateNewItem } from "./listItemsUtils"; </s> add import type { CreateNewItem } from "./listItemsUtils"; </s> remove import { AbstractPureComponent2, Classes, IRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes } from "../../common"; </s> remove import { IRef } from "@blueprintjs/core"; </s> add </s> remove import { AbstractPureComponent2, Classes, IRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes } from "../../common";
import type { IconName } from "@blueprintjs/icons"; import { Intent } from "./intent"; export const DISPLAYNAME_PREFIX = "Blueprint4"; /** * Alias for all valid HTML props for `<div>` element.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/props.ts
* @deprecated will be removed in Blueprint v5.0, where components will use `ref` prop instead */ export interface IElementRefProps<E extends HTMLElement> { /** A ref handler or a ref object that receives the native HTML element rendered by this component. */ elementRef?: IRef<E>; } /** * An interface for an option in a list, such as in a `<select>` or `RadioGroup`. * These props can be spread directly to an `<option>` or `<Radio>` element.
</s> remove inputRef?: IRef<HTMLInputElement>; </s> add inputRef?: React.Ref<HTMLInputElement>; </s> remove quadrantRef?: IRef<HTMLDivElement>; </s> add quadrantRef?: React.Ref<HTMLDivElement>; </s> remove ulRef?: IRef<HTMLUListElement>; </s> add ulRef?: React.Ref<HTMLUListElement>; </s> remove bodyRef?: IRef<HTMLDivElement>; </s> add bodyRef?: React.Ref<HTMLDivElement>; </s> remove popoverRef?: IRef<HTMLElement>; </s> add popoverRef?: React.Ref<HTMLElement>;
elementRef?: React.Ref<E>;
* @deprecated will be removed in Blueprint v5.0, where components will use `ref` prop instead */ export interface IElementRefProps<E extends HTMLElement> { /** A ref handler or a ref object that receives the native HTML element rendered by this component. */ elementRef?: React.Ref<E>; } /** * An interface for an option in a list, such as in a `<select>` or `RadioGroup`. * These props can be spread directly to an `<option>` or `<Radio>` element.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/props.ts
* See the License for the specific language governing permissions and * limitations under the License. */ export type IRef<T = HTMLElement> = IRefObject<T> | IRefCallback<T>; // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; }
</s> remove // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; } export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { </s> add export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { </s> remove import type { IRef } from "../../common"; </s> add </s> remove import { IRef } from "@blueprintjs/core"; import { CreateNewItem } from "./listItemsUtils"; </s> add import type { CreateNewItem } from "./listItemsUtils"; </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove elementRef?: IRef<E>; </s> add elementRef?: React.Ref<E>;
import * as React from "react";
* See the License for the specific language governing permissions and * limitations under the License. */ import * as React from "react"; // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
*/ export type IRef<T = HTMLElement> = IRefObject<T> | IRefCallback<T>; // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; } export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { return value != null && typeof value !== "function"; } export type IRefCallback<T = HTMLElement> = (ref: T | null) => any;
</s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove export type IRef<T = HTMLElement> = IRefObject<T> | IRefCallback<T>; </s> add import * as React from "react"; </s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { </s> remove refProp?: IRef<T> | undefined | null, ): IRefCallback<T> { </s> add refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> { </s> remove export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { </s> add export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void {
export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> {
*/ export type IRef<T = HTMLElement> = IRefObject<T> | IRefCallback<T>; export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { return value != null && typeof value !== "function"; } export type IRefCallback<T = HTMLElement> = (ref: T | null) => any;
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { return value != null && typeof value !== "function"; } export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { return typeof value === "function"; } /** * Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument.
</s> remove // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; } export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { </s> add export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { </s> remove export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { </s> add export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void { </s> remove refTarget.current = ref; </s> add // HACKHACK: .current property is readonly (refTarget.current as any) = ref; </s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { </s> remove export function mergeRefs<T>(...refs: Array<IRef<T> | null>): IRefCallback<T> { </s> add export function mergeRefs<T>(...refs: Array<React.Ref<T>>): React.RefCallback<T> {
export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> {
export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { return value != null && typeof value !== "function"; } export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { return typeof value === "function"; } /** * Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument.
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
/** * Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument. */ export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { if (isRefObject<T>(refTarget)) { refTarget.current = ref; } else if (isRefCallback(refTarget)) { refTarget(ref); }
</s> remove refTarget.current = ref; </s> add // HACKHACK: .current property is readonly (refTarget.current as any) = ref; </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove return (ref as IRefObject<T>).current ?? (ref as T); </s> add return (ref as React.RefObject<T>).current ?? (ref as T); </s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { </s> remove refProp?: IRef<T> | undefined | null, ): IRefCallback<T> { </s> add refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> {
export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void {
/** * Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument. */ export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void { if (isRefObject<T>(refTarget)) { refTarget.current = ref; } else if (isRefCallback(refTarget)) { refTarget(ref); }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
* Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument. */ export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { if (isRefObject<T>(refTarget)) { refTarget.current = ref; } else if (isRefCallback(refTarget)) { refTarget(ref); } }
</s> remove export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { </s> add export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void { </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove return (ref as IRefObject<T>).current ?? (ref as T); </s> add return (ref as React.RefObject<T>).current ?? (ref as T); </s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { </s> remove refProp?: IRef<T> | undefined | null, ): IRefCallback<T> { </s> add refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> {
// HACKHACK: .current property is readonly (refTarget.current as any) = ref;
* Assign the given ref to a target, either a React ref object or a callback which takes the ref as its first argument. */ export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { if (isRefObject<T>(refTarget)) { // HACKHACK: .current property is readonly (refTarget.current as any) = ref; } else if (isRefCallback(refTarget)) { refTarget(ref); } }
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
} } /** @deprecated use mergeRefs() instead */ export function combineRefs<T>(ref1: IRefCallback<T>, ref2: IRefCallback<T>) { return mergeRefs(ref1, ref2); } /** * Utility for merging refs into one singular callback ref.
</s> remove export function mergeRefs<T>(...refs: Array<IRef<T> | null>): IRefCallback<T> { </s> add export function mergeRefs<T>(...refs: Array<React.Ref<T>>): React.RefCallback<T> { </s> remove import { IRef } from "@blueprintjs/core"; import { CreateNewItem } from "./listItemsUtils"; </s> add import type { CreateNewItem } from "./listItemsUtils"; </s> remove import { AbstractPureComponent2, Classes, IRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes } from "../../common"; </s> remove elementRef?: IRef<E>; </s> add elementRef?: React.Ref<E>; </s> remove import { AbstractPureComponent2, Classes, IRef, IRefCallback, refHandler, setRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes, refHandler, setRef } from "../../common";
export function combineRefs<T>(ref1: React.RefCallback<T>, ref2: React.RefCallback<T>) {
} } /** @deprecated use mergeRefs() instead */ export function combineRefs<T>(ref1: React.RefCallback<T>, ref2: React.RefCallback<T>) { return mergeRefs(ref1, ref2); } /** * Utility for merging refs into one singular callback ref.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
/** * Utility for merging refs into one singular callback ref. * If using in a functional component, would recomend using `useMemo` to preserve function identity. */ export function mergeRefs<T>(...refs: Array<IRef<T> | null>): IRefCallback<T> { return value => { refs.forEach(ref => { setRef(ref, value); }); };
</s> remove export function combineRefs<T>(ref1: IRefCallback<T>, ref2: IRefCallback<T>) { </s> add export function combineRefs<T>(ref1: React.RefCallback<T>, ref2: React.RefCallback<T>) { </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove refProp?: IRef<T> | undefined | null, ): IRefCallback<T> { </s> add refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> { </s> remove // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; } export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { </s> add export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { </s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null {
export function mergeRefs<T>(...refs: Array<React.Ref<T>>): React.RefCallback<T> {
/** * Utility for merging refs into one singular callback ref. * If using in a functional component, would recomend using `useMemo` to preserve function identity. */ export function mergeRefs<T>(...refs: Array<React.Ref<T>>): React.RefCallback<T> { return value => { refs.forEach(ref => { setRef(ref, value); }); };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
}); }; } export function getRef<T>(ref: T | IRefObject<T> | null): T | null { if (ref === null) { return null; } return (ref as IRefObject<T>).current ?? (ref as T);
</s> remove return (ref as IRefObject<T>).current ?? (ref as T); </s> add return (ref as React.RefObject<T>).current ?? (ref as T); </s> remove // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; } export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { </s> add export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { </s> add export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void { </s> remove refProp?: IRef<T> | undefined | null, ): IRefCallback<T> { </s> add refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> {
export function getRef<T>(ref: T | React.RefObject<T> | null): T | null {
}); }; } export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { if (ref === null) { return null; } return (ref as IRefObject<T>).current ?? (ref as T);
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
if (ref === null) { return null; } return (ref as IRefObject<T>).current ?? (ref as T); } /** * Creates a ref handler which assigns the ref returned by React for a mounted component to a field on the target object. * The target object is usually a component class.
</s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { </s> remove refTarget.current = ref; </s> add // HACKHACK: .current property is readonly (refTarget.current as any) = ref; </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { </s> add export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void { </s> remove elementRef?: IRef<E>; </s> add elementRef?: React.Ref<E>;
return (ref as React.RefObject<T>).current ?? (ref as T);
if (ref === null) { return null; } return (ref as React.RefObject<T>).current ?? (ref as T); } /** * Creates a ref handler which assigns the ref returned by React for a mounted component to a field on the target object. * The target object is usually a component class.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
*/ export function refHandler<T extends HTMLElement, K extends string>( refTargetParent: { [k in K]: T | null }, refTargetKey: K, refProp?: IRef<T> | undefined | null, ): IRefCallback<T> { return (ref: T | null) => { refTargetParent[refTargetKey] = ref; setRef(refProp, ref); }; }
</s> remove export function getRef<T>(ref: T | IRefObject<T> | null): T | null { </s> add export function getRef<T>(ref: T | React.RefObject<T> | null): T | null { </s> remove // compatible with React.Ref type in @types/react@^16 export interface IRefObject<T = HTMLElement> { current: T | null; } export function isRefObject<T>(value: IRef<T> | undefined | null): value is IRefObject<T> { </s> add export function isRefObject<T>(value: React.Ref<T> | undefined): value is React.RefObject<T> { </s> remove export type IRefCallback<T = HTMLElement> = (ref: T | null) => any; export function isRefCallback<T>(value: IRef<T> | undefined | null): value is IRefCallback<T> { </s> add export function isRefCallback<T>(value: React.Ref<T> | undefined): value is React.RefCallback<T> { </s> remove export function setRef<T>(refTarget: IRef<T> | undefined | null, ref: T | null): void { </s> add export function setRef<T>(refTarget: React.Ref<T> | undefined, ref: T | null): void { </s> remove refTarget.current = ref; </s> add // HACKHACK: .current property is readonly (refTarget.current as any) = ref;
refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> {
*/ export function refHandler<T extends HTMLElement, K extends string>( refTargetParent: { [k in K]: T | null }, refTargetKey: K, refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> { refProp?: React.Ref<T> | undefined, ): React.RefCallback<T> { return (ref: T | null) => { refTargetParent[refTargetKey] = ref; setRef(refProp, ref); }; }
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/common/refs.ts
import * as React from "react"; import { DISPLAYNAME_PREFIX, removeNonHTMLProps } from "../../common/props"; import { IRef, refHandler, setRef } from "../../common/refs"; import { AbstractButton, AnchorButtonProps, ButtonProps, IAnchorButtonProps, IButtonProps } from "./abstractButton"; // eslint-disable-next-line deprecation/deprecation export { IAnchorButtonProps, IButtonProps, ButtonProps, AnchorButtonProps };
</s> remove import { AbstractPureComponent2, Classes, IRef, IRefCallback, refHandler, setRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes, refHandler, setRef } from "../../common"; </s> remove import { AbstractPureComponent2, Alignment, Classes, IRef, refHandler, setRef } from "../../common"; </s> add import { AbstractPureComponent2, Alignment, Classes, refHandler, setRef } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef, refHandler, setRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes, refHandler, setRef } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef, Keys, refHandler, setRef, Utils } from "../../common"; </s> add import { AbstractPureComponent2, Classes, Keys, refHandler, setRef, Utils } from "../../common";
import { refHandler, setRef } from "../../common/refs";
import * as React from "react"; import { DISPLAYNAME_PREFIX, removeNonHTMLProps } from "../../common/props"; import { refHandler, setRef } from "../../common/refs"; import { AbstractButton, AnchorButtonProps, ButtonProps, IAnchorButtonProps, IButtonProps } from "./abstractButton"; // eslint-disable-next-line deprecation/deprecation export { IAnchorButtonProps, IButtonProps, ButtonProps, AnchorButtonProps };
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/components/button/buttons.tsx
// need to keep this ref so that we can access it in AbstractButton#handleKeyUp public buttonRef: HTMLButtonElement | null = null; protected handleRef: IRef<HTMLButtonElement> = refHandler(this, "buttonRef", this.props.elementRef); public render() { return ( <button type="button"
</s> remove protected handleRef: IRef<HTMLAnchorElement> = refHandler(this, "buttonRef", this.props.elementRef); </s> add protected handleRef: React.Ref<HTMLAnchorElement> = refHandler(this, "buttonRef", this.props.elementRef); </s> remove private handleInputRef: IRef<HTMLInputElement> = refHandler(this, "input", this.props.inputRef); </s> add private handleInputRef: React.Ref<HTMLInputElement> = refHandler(this, "input", this.props.inputRef); </s> remove private handleRef: IRef<HTMLInputElement> = refHandler(this, "inputElement", this.props.inputRef); </s> add private handleRef: React.Ref<HTMLInputElement> = refHandler(this, "inputElement", this.props.inputRef); </s> remove private handleRef: IRefCallback<HTMLTextAreaElement> = refHandler(this, "textareaElement", this.props.inputRef); </s> add private handleRef: React.RefCallback<HTMLTextAreaElement> = refHandler( this, "textareaElement", this.props.inputRef, ); </s> remove private handleInputRef: IRef<HTMLInputElement> = refHandler(this, "inputElement", this.props.inputProps?.inputRef); </s> add private handleInputRef: React.Ref<HTMLInputElement> = refHandler( this, "inputElement", this.props.inputProps?.inputRef, );
protected handleRef: React.Ref<HTMLButtonElement> = refHandler(this, "buttonRef", this.props.elementRef);
// need to keep this ref so that we can access it in AbstractButton#handleKeyUp public buttonRef: HTMLButtonElement | null = null; protected handleRef: React.Ref<HTMLButtonElement> = refHandler(this, "buttonRef", this.props.elementRef); public render() { return ( <button type="button"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/components/button/buttons.tsx
// need to keep this ref so that we can access it in AbstractButton#handleKeyUp public buttonRef: HTMLAnchorElement | null = null; protected handleRef: IRef<HTMLAnchorElement> = refHandler(this, "buttonRef", this.props.elementRef); public render() { const { href, tabIndex = 0 } = this.props; const commonProps = this.getCommonButtonProps();
</s> remove protected handleRef: IRef<HTMLButtonElement> = refHandler(this, "buttonRef", this.props.elementRef); </s> add protected handleRef: React.Ref<HTMLButtonElement> = refHandler(this, "buttonRef", this.props.elementRef); </s> remove private handleRef: IRef<HTMLInputElement> = refHandler(this, "inputElement", this.props.inputRef); </s> add private handleRef: React.Ref<HTMLInputElement> = refHandler(this, "inputElement", this.props.inputRef); </s> remove private handleInputRef: IRef<HTMLInputElement> = refHandler(this, "input", this.props.inputRef); </s> add private handleInputRef: React.Ref<HTMLInputElement> = refHandler(this, "input", this.props.inputRef); </s> remove private handleRef: IRefCallback<HTMLTextAreaElement> = refHandler(this, "textareaElement", this.props.inputRef); </s> add private handleRef: React.RefCallback<HTMLTextAreaElement> = refHandler( this, "textareaElement", this.props.inputRef, ); </s> remove private handlePopoverContentRef: IRef<HTMLDivElement> = refHandler(this, "popoverContentElement"); </s> add private handlePopoverContentRef: React.Ref<HTMLDivElement> = refHandler(this, "popoverContentElement");
protected handleRef: React.Ref<HTMLAnchorElement> = refHandler(this, "buttonRef", this.props.elementRef);
// need to keep this ref so that we can access it in AbstractButton#handleKeyUp public buttonRef: HTMLAnchorElement | null = null; protected handleRef: React.Ref<HTMLAnchorElement> = refHandler(this, "buttonRef", this.props.elementRef); public render() { const { href, tabIndex = 0 } = this.props; const commonProps = this.getCommonButtonProps();
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/components/button/buttons.tsx
import classNames from "classnames"; import * as React from "react"; import { AbstractPureComponent2, Classes, IRef } from "../../common"; import * as Errors from "../../common/errors"; import { DISPLAYNAME_PREFIX, MaybeElement, Props } from "../../common/props"; import { uniqueId } from "../../common/utils"; import { Button } from "../button/buttons"; import { H5 } from "../html/html";
</s> remove import { AbstractPureComponent2, Classes, IRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef, Keys, refHandler, setRef, Utils } from "../../common"; </s> add import { AbstractPureComponent2, Classes, Keys, refHandler, setRef, Utils } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef, refHandler, setRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes, refHandler, setRef } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes } from "../../common"; </s> remove import { AbstractPureComponent2, Classes, IRef, IRefCallback, refHandler, setRef } from "../../common"; </s> add import { AbstractPureComponent2, Classes, refHandler, setRef } from "../../common";
import { AbstractPureComponent2, Classes } from "../../common";
import classNames from "classnames"; import * as React from "react"; import { AbstractPureComponent2, Classes } from "../../common"; import * as Errors from "../../common/errors"; import { DISPLAYNAME_PREFIX, MaybeElement, Props } from "../../common/props"; import { uniqueId } from "../../common/utils"; import { Button } from "../button/buttons"; import { H5 } from "../html/html";
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
[core] feat: deprecate ref types, use React.Ref instead (#5507)
https://github.com/palantir/blueprint/commit/a8072ffb45e60542b7e2e5296a1900ba3094241a
packages/core/src/components/dialog/dialog.tsx