dash-core-components 4.3.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dash_core_components/async-datepicker.js +1 -1
- package/dash_core_components/async-datepicker.js.map +1 -1
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-graph.js.map +1 -1
- package/dash_core_components/async-highlight.js +1 -1
- package/dash_core_components/async-highlight.js.map +1 -1
- package/dash_core_components/async-markdown.js +1 -1
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-slider.js +1 -1
- package/dash_core_components/async-slider.js.map +1 -1
- package/dash_core_components/dash_core_components-shared.js +1 -1
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/lib/fragments/DatePickerRange.tsx +11 -9
- package/lib/fragments/Dropdown.tsx +1 -1
- package/lib/fragments/Graph.react.js +15 -0
- package/package.json +14 -13
- package/dash_core_components/plotly.min.js +0 -8
|
@@ -167,8 +167,14 @@ const DatePickerRange = ({
|
|
|
167
167
|
start_date: dateAsStr(internalStartDate),
|
|
168
168
|
end_date: dateAsStr(internalEndDate),
|
|
169
169
|
});
|
|
170
|
-
} else if (
|
|
171
|
-
|
|
170
|
+
} else if (
|
|
171
|
+
updatemode === 'singledate' &&
|
|
172
|
+
endChanged &&
|
|
173
|
+
!internalEndDate
|
|
174
|
+
) {
|
|
175
|
+
// End date was cleared (user started a new range). Under
|
|
176
|
+
// 'bothdates' we wait for a complete range before updating props,
|
|
177
|
+
// so this partial update is only sent in 'singledate' mode.
|
|
172
178
|
setProps({
|
|
173
179
|
start_date: dateAsStr(internalStartDate) ?? null,
|
|
174
180
|
end_date: null,
|
|
@@ -358,7 +364,7 @@ const DatePickerRange = ({
|
|
|
358
364
|
|
|
359
365
|
return (
|
|
360
366
|
<div className="dash-datepicker" ref={containerRef}>
|
|
361
|
-
<ResizeDetector onResize={handleResize} targets={[containerRef]}/>
|
|
367
|
+
<ResizeDetector onResize={handleResize} targets={[containerRef]} />
|
|
362
368
|
<Popover.Root
|
|
363
369
|
open={!disabled && isCalendarOpen}
|
|
364
370
|
onOpenChange={disabled ? undefined : setIsCalendarOpen}
|
|
@@ -388,9 +394,7 @@ const DatePickerRange = ({
|
|
|
388
394
|
id={start_date_id || accessibleId}
|
|
389
395
|
inputClassName="dash-datepicker-input dash-datepicker-start-date"
|
|
390
396
|
value={startInputValue}
|
|
391
|
-
onChange={e =>
|
|
392
|
-
setStartInputValue(e.target?.value)
|
|
393
|
-
}
|
|
397
|
+
onChange={e => setStartInputValue(e.target?.value)}
|
|
394
398
|
onKeyDown={handleStartInputKeyDown}
|
|
395
399
|
onFocus={() => {
|
|
396
400
|
if (isCalendarOpen) {
|
|
@@ -412,9 +416,7 @@ const DatePickerRange = ({
|
|
|
412
416
|
id={end_date_id || accessibleId + '-end-date'}
|
|
413
417
|
inputClassName="dash-datepicker-input dash-datepicker-end-date"
|
|
414
418
|
value={endInputValue}
|
|
415
|
-
onChange={e =>
|
|
416
|
-
setEndInputValue(e.target?.value)
|
|
417
|
-
}
|
|
419
|
+
onChange={e => setEndInputValue(e.target?.value)}
|
|
418
420
|
onKeyDown={handleEndInputKeyDown}
|
|
419
421
|
onFocus={() => {
|
|
420
422
|
if (isCalendarOpen) {
|
|
@@ -119,6 +119,21 @@ var filterEventData = function filterEventData(gd, eventData, event) {
|
|
|
119
119
|
filteredEventData = {
|
|
120
120
|
points
|
|
121
121
|
};
|
|
122
|
+
var includeXYVals = event === 'hover' && gd._fullLayout.hoveranywhere === true || event === 'click' && gd._fullLayout.clickanywhere === true;
|
|
123
|
+
if (includeXYVals) {
|
|
124
|
+
if ((0, _ramda.has)('xvals', eventData)) {
|
|
125
|
+
filteredEventData.xvals = eventData.xvals;
|
|
126
|
+
}
|
|
127
|
+
if ((0, _ramda.has)('yvals', eventData)) {
|
|
128
|
+
filteredEventData.yvals = eventData.yvals;
|
|
129
|
+
}
|
|
130
|
+
if ((0, _ramda.has)('xaxes', eventData)) {
|
|
131
|
+
filteredEventData.xaxes_id = eventData.xaxes[0]._id;
|
|
132
|
+
}
|
|
133
|
+
if ((0, _ramda.has)('yaxes', eventData)) {
|
|
134
|
+
filteredEventData.yaxes_id = eventData.yaxes[0]._id;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
122
137
|
} else if (event === 'relayout' || event === 'restyle') {
|
|
123
138
|
/*
|
|
124
139
|
* relayout shouldn't include any big objects
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dash-core-components",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "Core component suite for Dash",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"mathjax": "^3.2.2",
|
|
56
56
|
"node-polyfill-webpack-plugin": "^2.0.1",
|
|
57
57
|
"prop-types": "^15.8.1",
|
|
58
|
-
"ramda": "^0.
|
|
58
|
+
"ramda": "^0.32.0",
|
|
59
59
|
"react-addons-shallow-compare": "^15.6.3",
|
|
60
60
|
"react-docgen": "^5.4.3",
|
|
61
61
|
"react-dropzone": "^4.1.2",
|
|
@@ -76,24 +76,25 @@
|
|
|
76
76
|
"@babel/preset-typescript": "^7.28.5",
|
|
77
77
|
"@plotly/dash-component-plugins": "^1.2.3",
|
|
78
78
|
"@plotly/webpack-dash-dynamic-import": "^1.3.0",
|
|
79
|
+
"@testing-library/dom": "^10.0.0",
|
|
79
80
|
"@testing-library/jest-dom": "^6.9.1",
|
|
80
|
-
"@testing-library/react": "^
|
|
81
|
+
"@testing-library/react": "^16.3.2",
|
|
81
82
|
"@types/d3-format": "^3.0.4",
|
|
82
83
|
"@types/fast-isnumeric": "^1.1.2",
|
|
83
84
|
"@types/jest": "^29.5.14",
|
|
84
85
|
"@types/js-search": "^1.4.4",
|
|
85
86
|
"@types/ramda": "^0.31.0",
|
|
86
|
-
"@types/react": "^
|
|
87
|
-
"@types/react-dom": "^
|
|
87
|
+
"@types/react": "^18",
|
|
88
|
+
"@types/react-dom": "^18",
|
|
88
89
|
"@types/react-input-autosize": "^2.2.4",
|
|
89
90
|
"@types/react-window": "^1.8.8",
|
|
90
91
|
"@types/uniqid": "^5.3.4",
|
|
91
92
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
92
93
|
"@typescript-eslint/parser": "^5.59.7",
|
|
93
|
-
"babel-loader": "^
|
|
94
|
+
"babel-loader": "^10.1.1",
|
|
94
95
|
"copyfiles": "^2.4.1",
|
|
95
|
-
"css-loader": "^
|
|
96
|
-
"es-check": "^
|
|
96
|
+
"css-loader": "^7.1.4",
|
|
97
|
+
"es-check": "^9.6.4",
|
|
97
98
|
"eslint": "^8.41.0",
|
|
98
99
|
"eslint-config-prettier": "^8.8.0",
|
|
99
100
|
"eslint-plugin-import": "^2.27.5",
|
|
@@ -103,16 +104,16 @@
|
|
|
103
104
|
"jest-environment-jsdom": "^30.2.0",
|
|
104
105
|
"npm-run-all": "^4.1.5",
|
|
105
106
|
"prettier": "^2.8.8",
|
|
106
|
-
"react": "^
|
|
107
|
-
"react-dom": "^
|
|
108
|
-
"react-jsx-parser": "
|
|
109
|
-
"rimraf": "^
|
|
107
|
+
"react": "^18",
|
|
108
|
+
"react-dom": "^18",
|
|
109
|
+
"react-jsx-parser": "2.4.1",
|
|
110
|
+
"rimraf": "^6.1.3",
|
|
110
111
|
"style-loader": "^3.3.3",
|
|
111
112
|
"styled-jsx": "^5.1.7",
|
|
112
113
|
"ts-jest": "^29.1.0",
|
|
113
114
|
"typescript": "^5.8.3",
|
|
114
115
|
"webpack": "^5.104.1",
|
|
115
|
-
"webpack-cli": "^
|
|
116
|
+
"webpack-cli": "^7.0.3"
|
|
116
117
|
},
|
|
117
118
|
"optionalDependencies": {
|
|
118
119
|
"fsevents": "*"
|