@dhis2/analytics 23.12.4 → 23.12.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [23.12.5](https://github.com/dhis2/analytics/compare/v23.12.4...v23.12.5) (2022-06-24)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* force the modal content flex item to shrink past its content's width ([#1282](https://github.com/dhis2/analytics/issues/1282)) ([88d6934](https://github.com/dhis2/analytics/commit/88d69342677732206fdc17684ba3f5bd119d85dd))
|
|
7
|
+
|
|
1
8
|
## [23.12.4](https://github.com/dhis2/analytics/compare/v23.12.3...v23.12.4) (2022-06-20)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -129,32 +129,32 @@ const InterpretationModal = _ref2 => {
|
|
|
129
129
|
hidden: shouldCssHideModal
|
|
130
130
|
})
|
|
131
131
|
}, /*#__PURE__*/_react.default.createElement("h1", {
|
|
132
|
-
className: _style.default.dynamic([["
|
|
132
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "title"
|
|
133
133
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
134
|
-
className: _style.default.dynamic([["
|
|
134
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "ellipsis"
|
|
135
135
|
}, _d2I18n.default.t('Viewing interpretation: {{visualisationName}}', {
|
|
136
136
|
visualisationName: visualization.displayName,
|
|
137
137
|
nsSeparator: '^^'
|
|
138
138
|
}))), /*#__PURE__*/_react.default.createElement(_ui.ModalContent, {
|
|
139
139
|
className: modalContentCSS.className
|
|
140
140
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
141
|
-
className: _style.default.dynamic([["
|
|
141
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "container"
|
|
142
142
|
}, error && /*#__PURE__*/_react.default.createElement(_ui.NoticeBox, {
|
|
143
143
|
error: true,
|
|
144
144
|
title: _d2I18n.default.t('Could not load interpretation')
|
|
145
145
|
}, error.message || _d2I18n.default.t('The interpretation couldn’t be displayed. Try again or contact your system administrator.')), shouldRenderModalContent && /*#__PURE__*/_react.default.createElement("div", {
|
|
146
|
-
className: _style.default.dynamic([["
|
|
146
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "row"
|
|
147
147
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
148
|
-
className: _style.default.dynamic([["
|
|
148
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "visualisation-wrap"
|
|
149
149
|
}, /*#__PURE__*/_react.default.createElement(VisualizationPlugin, {
|
|
150
150
|
filters: {
|
|
151
151
|
relativePeriodDate: interpretation.created
|
|
152
152
|
},
|
|
153
153
|
visualization: visualization,
|
|
154
154
|
onResponsesReceived: onResponsesReceived,
|
|
155
|
-
className: _style.default.dynamic([["
|
|
155
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]])
|
|
156
156
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
157
|
-
className: _style.default.dynamic([["
|
|
157
|
+
className: _style.default.dynamic([["3175860552", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "thread-wrap"
|
|
158
158
|
}, /*#__PURE__*/_react.default.createElement(_InterpretationThread.InterpretationThread, {
|
|
159
159
|
currentUser: currentUser,
|
|
160
160
|
fetching: fetching,
|
|
@@ -167,9 +167,9 @@ const InterpretationModal = _ref2 => {
|
|
|
167
167
|
disabled: fetching,
|
|
168
168
|
onClick: handleClose
|
|
169
169
|
}, _d2I18n.default.t('Hide interpretation'))), modalCSS.styles, modalContentCSS.styles, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
170
|
-
id: "
|
|
170
|
+
id: "3175860552",
|
|
171
171
|
dynamic: [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]
|
|
172
|
-
}, [".title.__jsx-style-dynamic-selector{color:".concat(_ui.colors.grey900, ";margin:0px;padding:").concat(_ui.spacers.dp24, " 0 ").concat(_ui.spacers.dp4, ";}"), ".ellipsis.__jsx-style-dynamic-selector{display:inline-block;font-size:20px;font-weight:500;line-height:24px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;}", ".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:16px;}", ".visualisation-wrap.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".thread-wrap.__jsx-style-dynamic-selector{padding-right:".concat(_ui.spacers.dp4, ";-webkit-flex-basis:300px;-ms-flex-preferred-size:300px;flex-basis:300px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow-y:auto;}")])));
|
|
172
|
+
}, [".title.__jsx-style-dynamic-selector{color:".concat(_ui.colors.grey900, ";margin:0px;padding:").concat(_ui.spacers.dp24, " 0 ").concat(_ui.spacers.dp4, ";}"), ".ellipsis.__jsx-style-dynamic-selector{display:inline-block;font-size:20px;font-weight:500;line-height:24px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;}", ".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:16px;}", ".visualisation-wrap.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;min-width:0;}", ".thread-wrap.__jsx-style-dynamic-selector{padding-right:".concat(_ui.spacers.dp4, ";-webkit-flex-basis:300px;-ms-flex-preferred-size:300px;flex-basis:300px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow-y:auto;}")])));
|
|
173
173
|
};
|
|
174
174
|
|
|
175
175
|
exports.InterpretationModal = InterpretationModal;
|
|
@@ -107,32 +107,32 @@ const InterpretationModal = _ref2 => {
|
|
|
107
107
|
hidden: shouldCssHideModal
|
|
108
108
|
})
|
|
109
109
|
}, /*#__PURE__*/React.createElement("h1", {
|
|
110
|
-
className: _JSXStyle.dynamic([["
|
|
110
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "title"
|
|
111
111
|
}, /*#__PURE__*/React.createElement("span", {
|
|
112
|
-
className: _JSXStyle.dynamic([["
|
|
112
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "ellipsis"
|
|
113
113
|
}, i18n.t('Viewing interpretation: {{visualisationName}}', {
|
|
114
114
|
visualisationName: visualization.displayName,
|
|
115
115
|
nsSeparator: '^^'
|
|
116
116
|
}))), /*#__PURE__*/React.createElement(ModalContent, {
|
|
117
117
|
className: modalContentCSS.className
|
|
118
118
|
}, /*#__PURE__*/React.createElement("div", {
|
|
119
|
-
className: _JSXStyle.dynamic([["
|
|
119
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "container"
|
|
120
120
|
}, error && /*#__PURE__*/React.createElement(NoticeBox, {
|
|
121
121
|
error: true,
|
|
122
122
|
title: i18n.t('Could not load interpretation')
|
|
123
123
|
}, error.message || i18n.t('The interpretation couldn’t be displayed. Try again or contact your system administrator.')), shouldRenderModalContent && /*#__PURE__*/React.createElement("div", {
|
|
124
|
-
className: _JSXStyle.dynamic([["
|
|
124
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "row"
|
|
125
125
|
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
-
className: _JSXStyle.dynamic([["
|
|
126
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "visualisation-wrap"
|
|
127
127
|
}, /*#__PURE__*/React.createElement(VisualizationPlugin, {
|
|
128
128
|
filters: {
|
|
129
129
|
relativePeriodDate: interpretation.created
|
|
130
130
|
},
|
|
131
131
|
visualization: visualization,
|
|
132
132
|
onResponsesReceived: onResponsesReceived,
|
|
133
|
-
className: _JSXStyle.dynamic([["
|
|
133
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]])
|
|
134
134
|
})), /*#__PURE__*/React.createElement("div", {
|
|
135
|
-
className: _JSXStyle.dynamic([["
|
|
135
|
+
className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "thread-wrap"
|
|
136
136
|
}, /*#__PURE__*/React.createElement(InterpretationThread, {
|
|
137
137
|
currentUser: currentUser,
|
|
138
138
|
fetching: fetching,
|
|
@@ -145,9 +145,9 @@ const InterpretationModal = _ref2 => {
|
|
|
145
145
|
disabled: fetching,
|
|
146
146
|
onClick: handleClose
|
|
147
147
|
}, i18n.t('Hide interpretation'))), modalCSS.styles, modalContentCSS.styles, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
148
|
-
id: "
|
|
148
|
+
id: "3175860552",
|
|
149
149
|
dynamic: [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]
|
|
150
|
-
}, [".title.__jsx-style-dynamic-selector{color:".concat(colors.grey900, ";margin:0px;padding:").concat(spacers.dp24, " 0 ").concat(spacers.dp4, ";}"), ".ellipsis.__jsx-style-dynamic-selector{display:inline-block;font-size:20px;font-weight:500;line-height:24px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;}", ".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:16px;}", ".visualisation-wrap.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;}", ".thread-wrap.__jsx-style-dynamic-selector{padding-right:".concat(spacers.dp4, ";-webkit-flex-basis:300px;-ms-flex-preferred-size:300px;flex-basis:300px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow-y:auto;}")])));
|
|
150
|
+
}, [".title.__jsx-style-dynamic-selector{color:".concat(colors.grey900, ";margin:0px;padding:").concat(spacers.dp24, " 0 ").concat(spacers.dp4, ";}"), ".ellipsis.__jsx-style-dynamic-selector{display:inline-block;font-size:20px;font-weight:500;line-height:24px;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis;}", ".container.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}", ".row.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;gap:16px;}", ".visualisation-wrap.__jsx-style-dynamic-selector{-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;min-width:0;}", ".thread-wrap.__jsx-style-dynamic-selector{padding-right:".concat(spacers.dp4, ";-webkit-flex-basis:300px;-ms-flex-preferred-size:300px;flex-basis:300px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;overflow-y:auto;}")])));
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
InterpretationModal.propTypes = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2/analytics",
|
|
3
|
-
"version": "23.12.
|
|
3
|
+
"version": "23.12.5",
|
|
4
4
|
"main": "./build/cjs/index.js",
|
|
5
5
|
"module": "./build/es/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"validate-push": "yarn test"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@dhis2/app-runtime": "^3.4.
|
|
35
|
-
"@dhis2/cli-app-scripts": "^9.0.
|
|
34
|
+
"@dhis2/app-runtime": "^3.4.4",
|
|
35
|
+
"@dhis2/cli-app-scripts": "^9.0.1",
|
|
36
36
|
"@dhis2/cli-style": "^10.4.1",
|
|
37
37
|
"@dhis2/d2-i18n": "^1.1.0",
|
|
38
|
-
"@dhis2/ui": "^8.
|
|
38
|
+
"@dhis2/ui": "^8.4.2",
|
|
39
39
|
"@sambego/storybook-state": "^2.0.1",
|
|
40
|
-
"@storybook/addons": "^6.
|
|
40
|
+
"@storybook/addons": "^6.5.9",
|
|
41
41
|
"@storybook/preset-create-react-app": "^3.1.7",
|
|
42
42
|
"@storybook/react": "^6.1.14",
|
|
43
43
|
"enzyme": "^3.9.0",
|