@dhis2/analytics 23.12.3 → 23.13.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/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ # [23.13.0](https://github.com/dhis2/analytics/compare/v23.12.5...v23.13.0) (2022-07-25)
2
+
3
+
4
+ ### Features
5
+
6
+ * search by tokens across identifiable properties (DHIS2-13475) ([c94c427](https://github.com/dhis2/analytics/commit/c94c4271492d390cd76cfb8c8d8104cbfab83e1d))
7
+ * search by tokens across identifiable properties [DHIS2-13475] ([87db2f9](https://github.com/dhis2/analytics/commit/87db2f91f7aa5b2665038324d5b779e2f8267812))
8
+
9
+ ## [23.12.5](https://github.com/dhis2/analytics/compare/v23.12.4...v23.12.5) (2022-06-24)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * 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))
15
+
16
+ ## [23.12.4](https://github.com/dhis2/analytics/compare/v23.12.3...v23.12.4) (2022-06-20)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * **translations:** sync translations from transifex (master) ([80b79f5](https://github.com/dhis2/analytics/commit/80b79f5737cfffb61d5c9a4758d8aaa3ab2f93e1))
22
+
1
23
  ## [23.12.3](https://github.com/dhis2/analytics/compare/v23.12.2...v23.12.3) (2022-06-19)
2
24
 
3
25
 
@@ -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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "title"
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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "ellipsis"
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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "container"
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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "row"
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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "visualisation-wrap"
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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]])
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([["3636222142", [_ui.colors.grey900, _ui.spacers.dp24, _ui.spacers.dp4, _ui.spacers.dp4]]]) + " " + "thread-wrap"
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: "3636222142",
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;
@@ -130,7 +130,7 @@ const OpenFileDialog = _ref2 => {
130
130
  }
131
131
 
132
132
  if (filters.searchTerm) {
133
- queryFilters.push("displayName:ilike:".concat(filters.searchTerm));
133
+ queryFilters.push("identifiable:token:".concat(filters.searchTerm));
134
134
  }
135
135
 
136
136
  return queryFilters;
@@ -84,35 +84,35 @@
84
84
  "visualization": "可视化",
85
85
  "Edit": "编辑",
86
86
  "Write a reply": "书写应答",
87
- "Post reply": "",
88
- "Could not update comment": "",
89
- "Enter comment text": "",
87
+ "Post reply": "发表回复",
88
+ "Could not update comment": "无法更新评论",
89
+ "Enter comment text": "输入评论文本",
90
90
  "Update": "更新",
91
- "Viewing interpretation: {{visualisationName}}": "",
92
- "Could not load interpretation": "",
93
- "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "",
94
- "Hide interpretation": "",
91
+ "Viewing interpretation: {{visualisationName}}": "查看解释:{{visualisationName}}",
92
+ "Could not load interpretation": "无法加载解释",
93
+ "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "无法显示解释。重试或联系您的系统管理员。",
94
+ "Hide interpretation": "隐藏解释",
95
95
  "Write an interpretation": "书写注释",
96
- "Post interpretation": "",
96
+ "Post interpretation": "后解释",
97
97
  "Interpretations": "解释",
98
98
  "Unlike": "不喜欢",
99
99
  "Like": "喜欢",
100
100
  "Reply": "应答",
101
101
  "Share": "分享",
102
- "See interpretation": "",
102
+ "See interpretation": "见解释",
103
103
  "Manage sharing": "管理共享",
104
- "Could not update interpretation": "",
105
- "Enter interpretation text": "",
106
- "Bold text": "",
107
- "Italic text": "",
108
- "Link to a URL": "",
109
- "Mention a user": "",
110
- "Add emoji": "",
104
+ "Could not update interpretation": "无法更新解释",
105
+ "Enter interpretation text": "输入解释文本",
106
+ "Bold text": "粗体文字",
107
+ "Italic text": "斜体文字",
108
+ "Link to a URL": "链接到 URL",
109
+ "Mention a user": "提及用户",
110
+ "Add emoji": "添加表情符号",
111
111
  "Preview": "预览",
112
- "Back to write mode": "",
113
- "Too many results. Try refining the search.": "",
114
- "Search for a user": "",
115
- "Searching for \"{{searchText}}\"": "",
112
+ "Back to write mode": "返回写入模式",
113
+ "Too many results. Try refining the search.": "结果太多。尝试优化搜索。",
114
+ "Search for a user": "搜索用户",
115
+ "Searching for \"{{searchText}}\"": "正在搜索“{{searchText}}”",
116
116
  "No results found": "没有结果",
117
117
  "Created by": "创建人",
118
118
  "Anyone": "任何人",
@@ -107,32 +107,32 @@ const InterpretationModal = _ref2 => {
107
107
  hidden: shouldCssHideModal
108
108
  })
109
109
  }, /*#__PURE__*/React.createElement("h1", {
110
- className: _JSXStyle.dynamic([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "title"
110
+ className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "title"
111
111
  }, /*#__PURE__*/React.createElement("span", {
112
- className: _JSXStyle.dynamic([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "ellipsis"
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([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "container"
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([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "row"
124
+ className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "row"
125
125
  }, /*#__PURE__*/React.createElement("div", {
126
- className: _JSXStyle.dynamic([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "visualisation-wrap"
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([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]])
133
+ className: _JSXStyle.dynamic([["3175860552", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]])
134
134
  })), /*#__PURE__*/React.createElement("div", {
135
- className: _JSXStyle.dynamic([["3636222142", [colors.grey900, spacers.dp24, spacers.dp4, spacers.dp4]]]) + " " + "thread-wrap"
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: "3636222142",
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 = {
@@ -103,7 +103,7 @@ export const OpenFileDialog = _ref2 => {
103
103
  }
104
104
 
105
105
  if (filters.searchTerm) {
106
- queryFilters.push("displayName:ilike:".concat(filters.searchTerm));
106
+ queryFilters.push("identifiable:token:".concat(filters.searchTerm));
107
107
  }
108
108
 
109
109
  return queryFilters;
@@ -84,35 +84,35 @@
84
84
  "visualization": "可视化",
85
85
  "Edit": "编辑",
86
86
  "Write a reply": "书写应答",
87
- "Post reply": "",
88
- "Could not update comment": "",
89
- "Enter comment text": "",
87
+ "Post reply": "发表回复",
88
+ "Could not update comment": "无法更新评论",
89
+ "Enter comment text": "输入评论文本",
90
90
  "Update": "更新",
91
- "Viewing interpretation: {{visualisationName}}": "",
92
- "Could not load interpretation": "",
93
- "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "",
94
- "Hide interpretation": "",
91
+ "Viewing interpretation: {{visualisationName}}": "查看解释:{{visualisationName}}",
92
+ "Could not load interpretation": "无法加载解释",
93
+ "The interpretation couldn’t be displayed. Try again or contact your system administrator.": "无法显示解释。重试或联系您的系统管理员。",
94
+ "Hide interpretation": "隐藏解释",
95
95
  "Write an interpretation": "书写注释",
96
- "Post interpretation": "",
96
+ "Post interpretation": "后解释",
97
97
  "Interpretations": "解释",
98
98
  "Unlike": "不喜欢",
99
99
  "Like": "喜欢",
100
100
  "Reply": "应答",
101
101
  "Share": "分享",
102
- "See interpretation": "",
102
+ "See interpretation": "见解释",
103
103
  "Manage sharing": "管理共享",
104
- "Could not update interpretation": "",
105
- "Enter interpretation text": "",
106
- "Bold text": "",
107
- "Italic text": "",
108
- "Link to a URL": "",
109
- "Mention a user": "",
110
- "Add emoji": "",
104
+ "Could not update interpretation": "无法更新解释",
105
+ "Enter interpretation text": "输入解释文本",
106
+ "Bold text": "粗体文字",
107
+ "Italic text": "斜体文字",
108
+ "Link to a URL": "链接到 URL",
109
+ "Mention a user": "提及用户",
110
+ "Add emoji": "添加表情符号",
111
111
  "Preview": "预览",
112
- "Back to write mode": "",
113
- "Too many results. Try refining the search.": "",
114
- "Search for a user": "",
115
- "Searching for \"{{searchText}}\"": "",
112
+ "Back to write mode": "返回写入模式",
113
+ "Too many results. Try refining the search.": "结果太多。尝试优化搜索。",
114
+ "Search for a user": "搜索用户",
115
+ "Searching for \"{{searchText}}\"": "正在搜索“{{searchText}}”",
116
116
  "No results found": "没有结果",
117
117
  "Created by": "创建人",
118
118
  "Anyone": "任何人",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "23.12.3",
3
+ "version": "23.13.0",
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.3",
35
- "@dhis2/cli-app-scripts": "^9.0.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.3.1",
38
+ "@dhis2/ui": "^8.4.2",
39
39
  "@sambego/storybook-state": "^2.0.1",
40
- "@storybook/addons": "^6.1.14",
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",