@dhis2/analytics 26.3.0-alpha.3 → 26.3.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.
Files changed (33) hide show
  1. package/build/cjs/__demo__/DimensionsPanel.stories.js +0 -1
  2. package/build/cjs/assets/DynamicDimensionIcon.js +38 -12
  3. package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +32 -44
  4. package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +6 -7
  5. package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +2 -1
  6. package/build/cjs/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +361 -238
  7. package/build/cjs/components/DimensionsPanel/List/styles/DimensionItem.style.js +67 -5
  8. package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
  9. package/build/cjs/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +4 -4
  10. package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  11. package/build/cjs/components/Interpretations/common/Message/Message.js +7 -7
  12. package/build/cjs/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js +2 -2
  13. package/build/cjs/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +3 -1
  14. package/build/cjs/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +8 -0
  15. package/build/cjs/locales/lo/translations.json +8 -3
  16. package/build/cjs/locales/sv/translations.json +8 -2
  17. package/build/es/__demo__/DimensionsPanel.stories.js +0 -1
  18. package/build/es/assets/DynamicDimensionIcon.js +38 -12
  19. package/build/es/components/DimensionsPanel/List/DimensionItem.js +33 -45
  20. package/build/es/components/DimensionsPanel/List/OptionsButton.js +6 -7
  21. package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +2 -1
  22. package/build/es/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +361 -238
  23. package/build/es/components/DimensionsPanel/List/styles/DimensionItem.style.js +66 -4
  24. package/build/es/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
  25. package/build/es/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +4 -4
  26. package/build/es/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
  27. package/build/es/components/Interpretations/common/Message/Message.js +7 -7
  28. package/build/es/components/Interpretations/common/RichTextEditor/styles/RichTextEditor.style.js +2 -2
  29. package/build/es/components/Toolbar/HoverMenuBar/HoverMenuDropdown.js +3 -1
  30. package/build/es/components/Toolbar/HoverMenuBar/__tests__/HoverMenuDropdown.spec.js +8 -0
  31. package/build/es/locales/lo/translations.json +8 -3
  32. package/build/es/locales/sv/translations.json +8 -2
  33. package/package.json +1 -1
@@ -1,282 +1,405 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`DimensionItem matches the snapshot 1`] = `
4
- <Fragment>
5
- <CssVariables
6
- colors={true}
7
- elevations={false}
8
- layers={false}
9
- spacers={false}
10
- theme={false}
11
- />
12
- <li
13
- className="item"
14
- name="Period"
15
- onClick={[Function]}
16
- onMouseLeave={[Function]}
17
- onMouseOver={[Function]}
18
- style={Object {}}
4
+ <li
5
+ name="Period"
6
+ onClick={[Function]}
7
+ onMouseLeave={[Function]}
8
+ onMouseOver={[Function]}
9
+ style={
10
+ Object {
11
+ "alignItems": "center",
12
+ "borderRadius": "2px",
13
+ "cursor": "pointer",
14
+ "display": "flex",
15
+ "marginBottom": 3,
16
+ "marginTop": 3,
17
+ "minHeight": "24px",
18
+ }
19
+ }
20
+ >
21
+ <div
22
+ className="label"
23
+ data-test="undefined-button-pe"
24
+ style={
25
+ Object {
26
+ "display": "flex",
27
+ "outline": "none",
28
+ }
29
+ }
30
+ tabIndex={0}
19
31
  >
20
32
  <div
21
- className="label"
22
- data-test="undefined-button-pe"
23
- tabIndex={0}
33
+ style={
34
+ Object {
35
+ "display": "flex",
36
+ "flexDirection": "column",
37
+ "padding": "3px 8px 0 8px",
38
+ }
39
+ }
24
40
  >
25
- <div
26
- className="iconWrapper"
27
- >
28
- <SvgClock16
29
- className="fixedDimensionIcon"
30
- />
31
- </div>
32
- <div
33
- className="labelWrapper"
41
+ <SvgClock16
42
+ style={
43
+ Object {
44
+ "paddingBottom": "2px",
45
+ "paddingLeft": "6px",
46
+ }
47
+ }
48
+ />
49
+ </div>
50
+ <div
51
+ style={
52
+ Object {
53
+ "padding": "2px 5px 2px 0",
54
+ }
55
+ }
56
+ >
57
+ <span
58
+ data-dimensionid="pe"
59
+ style={
60
+ Object {
61
+ "color": "#212934",
62
+ "fontSize": "14px",
63
+ "userSelect": "none",
64
+ "wordBreak": "break-word",
65
+ }
66
+ }
34
67
  >
35
- <span
36
- className="labelText"
37
- >
38
- <span
39
- data-dimensionid="pe"
40
- >
41
- Period
42
- </span>
43
- </span>
44
- <RecommendedIcon
45
- dataTest="undefined-recommended-icon"
46
- isRecommended={false}
47
- />
48
- </div>
68
+ Period
69
+ </span>
70
+ <RecommendedIcon
71
+ dataTest="undefined-recommended-icon"
72
+ isRecommended={false}
73
+ />
49
74
  </div>
50
- </li>
51
- <style />
52
- </Fragment>
75
+ </div>
76
+ </li>
53
77
  `;
54
78
 
55
79
  exports[`DimensionItem matches the snapshot with locked 1`] = `
56
- <Fragment>
57
- <CssVariables
58
- colors={true}
59
- elevations={false}
60
- layers={false}
61
- spacers={false}
62
- theme={false}
63
- />
64
- <li
65
- className="item"
66
- name="Period"
67
- onClick={[Function]}
68
- onMouseLeave={[Function]}
69
- onMouseOver={[Function]}
70
- style={Object {}}
80
+ <li
81
+ name="Period"
82
+ onClick={[Function]}
83
+ onMouseLeave={[Function]}
84
+ onMouseOver={[Function]}
85
+ style={
86
+ Object {
87
+ "alignItems": "center",
88
+ "borderRadius": "2px",
89
+ "cursor": "pointer",
90
+ "display": "flex",
91
+ "marginBottom": 3,
92
+ "marginTop": 3,
93
+ "minHeight": "24px",
94
+ }
95
+ }
96
+ >
97
+ <div
98
+ className="label"
99
+ data-test="undefined-button-pe"
100
+ style={
101
+ Object {
102
+ "display": "flex",
103
+ "outline": "none",
104
+ }
105
+ }
106
+ tabIndex={0}
71
107
  >
72
108
  <div
73
- className="label"
74
- data-test="undefined-button-pe"
75
- tabIndex={0}
109
+ style={
110
+ Object {
111
+ "display": "flex",
112
+ "flexDirection": "column",
113
+ "padding": "3px 8px 0 8px",
114
+ }
115
+ }
76
116
  >
77
- <div
78
- className="iconWrapper"
79
- >
80
- <SvgClock16
81
- className="fixedDimensionIcon"
82
- />
83
- </div>
84
- <div
85
- className="labelWrapper"
86
- >
87
- <span
88
- className="labelText"
89
- >
90
- <span
91
- data-dimensionid="pe"
92
- >
93
- Period
94
- </span>
95
- </span>
96
- <RecommendedIcon
97
- dataTest="undefined-recommended-icon"
98
- isRecommended={false}
99
- />
100
- </div>
117
+ <SvgClock16
118
+ style={
119
+ Object {
120
+ "paddingBottom": "2px",
121
+ "paddingLeft": "6px",
122
+ }
123
+ }
124
+ />
101
125
  </div>
102
126
  <div
103
- className="lockWrapper"
127
+ style={
128
+ Object {
129
+ "padding": "2px 5px 2px 0",
130
+ }
131
+ }
104
132
  >
105
- <svg
106
- fill="none"
107
- height="9"
108
- width="7"
109
- xmlns="http://www.w3.org/2000/svg"
133
+ <span
134
+ data-dimensionid="pe"
135
+ style={
136
+ Object {
137
+ "color": "#212934",
138
+ "fontSize": "14px",
139
+ "userSelect": "none",
140
+ "wordBreak": "break-word",
141
+ }
142
+ }
110
143
  >
111
- <path
112
- clipRule="evenodd"
113
- d="M3.5 1A1.5 1.5 0 0 0 2 2.5V3h3v-.5A1.5 1.5 0 0 0 3.5 1ZM1 2.5V3H0v6h7V3H6v-.5a2.5 2.5 0 0 0-5 0ZM1 8V4h5v4H1Zm3-1V5H3v2h1Z"
114
- fill="none"
115
- fillRule="evenodd"
116
- />
117
- </svg>
144
+ Period
145
+ </span>
146
+ <RecommendedIcon
147
+ dataTest="undefined-recommended-icon"
148
+ isRecommended={false}
149
+ />
150
+ </div>
151
+ <div
152
+ style={
153
+ Object {
154
+ "display": "flex",
155
+ "flexDirection": "column",
156
+ "padding": "3px 8px 0 8px",
157
+ }
158
+ }
159
+ >
160
+ <SvgLock16 />
118
161
  </div>
119
- </li>
120
- <style />
121
- </Fragment>
162
+ </div>
163
+ </li>
122
164
  `;
123
165
 
124
166
  exports[`DimensionItem matches the snapshot with onOptionsClick 1`] = `
125
- <Fragment>
126
- <CssVariables
127
- colors={true}
128
- elevations={false}
129
- layers={false}
130
- spacers={false}
131
- theme={false}
132
- />
133
- <li
134
- className="item"
135
- name="Period"
136
- onClick={[Function]}
137
- onMouseLeave={[Function]}
138
- onMouseOver={[Function]}
139
- style={Object {}}
167
+ <li
168
+ name="Period"
169
+ onClick={[Function]}
170
+ onMouseLeave={[Function]}
171
+ onMouseOver={[Function]}
172
+ style={
173
+ Object {
174
+ "alignItems": "center",
175
+ "borderRadius": "2px",
176
+ "cursor": "pointer",
177
+ "display": "flex",
178
+ "marginBottom": 3,
179
+ "marginTop": 3,
180
+ "minHeight": "24px",
181
+ }
182
+ }
183
+ >
184
+ <div
185
+ className="label"
186
+ data-test="undefined-button-pe"
187
+ style={
188
+ Object {
189
+ "display": "flex",
190
+ "outline": "none",
191
+ }
192
+ }
193
+ tabIndex={0}
140
194
  >
141
195
  <div
142
- className="label"
143
- data-test="undefined-button-pe"
144
- tabIndex={0}
196
+ style={
197
+ Object {
198
+ "display": "flex",
199
+ "flexDirection": "column",
200
+ "padding": "3px 8px 0 8px",
201
+ }
202
+ }
145
203
  >
146
- <div
147
- className="iconWrapper"
148
- >
149
- <SvgClock16
150
- className="fixedDimensionIcon"
151
- />
152
- </div>
153
- <div
154
- className="labelWrapper"
155
- >
156
- <span
157
- className="labelText"
158
- >
159
- <span
160
- data-dimensionid="pe"
161
- >
162
- Period
163
- </span>
164
- </span>
165
- <RecommendedIcon
166
- dataTest="undefined-recommended-icon"
167
- isRecommended={false}
168
- />
169
- </div>
204
+ <SvgClock16
205
+ style={
206
+ Object {
207
+ "paddingBottom": "2px",
208
+ "paddingLeft": "6px",
209
+ }
210
+ }
211
+ />
170
212
  </div>
171
213
  <div
172
- className="optionsWrapper"
173
- data-test="undefined-menu-pe"
174
- />
175
- </li>
176
- <style />
177
- </Fragment>
214
+ style={
215
+ Object {
216
+ "padding": "2px 5px 2px 0",
217
+ }
218
+ }
219
+ >
220
+ <span
221
+ data-dimensionid="pe"
222
+ style={
223
+ Object {
224
+ "color": "#212934",
225
+ "fontSize": "14px",
226
+ "userSelect": "none",
227
+ "wordBreak": "break-word",
228
+ }
229
+ }
230
+ >
231
+ Period
232
+ </span>
233
+ <RecommendedIcon
234
+ dataTest="undefined-recommended-icon"
235
+ isRecommended={false}
236
+ />
237
+ </div>
238
+ </div>
239
+ <div
240
+ data-test="undefined-menu-pe"
241
+ style={
242
+ Object {
243
+ "height": "20px",
244
+ "left": "5px",
245
+ "position": "relative",
246
+ "width": "20px",
247
+ }
248
+ }
249
+ />
250
+ </li>
178
251
  `;
179
252
 
180
253
  exports[`DimensionItem matches the snapshot with recommended 1`] = `
181
- <Fragment>
182
- <CssVariables
183
- colors={true}
184
- elevations={false}
185
- layers={false}
186
- spacers={false}
187
- theme={false}
188
- />
189
- <li
190
- className="item"
191
- name="Period"
192
- onClick={[Function]}
193
- onMouseLeave={[Function]}
194
- onMouseOver={[Function]}
195
- style={Object {}}
254
+ <li
255
+ name="Period"
256
+ onClick={[Function]}
257
+ onMouseLeave={[Function]}
258
+ onMouseOver={[Function]}
259
+ style={
260
+ Object {
261
+ "alignItems": "center",
262
+ "borderRadius": "2px",
263
+ "cursor": "pointer",
264
+ "display": "flex",
265
+ "marginBottom": 3,
266
+ "marginTop": 3,
267
+ "minHeight": "24px",
268
+ }
269
+ }
270
+ >
271
+ <div
272
+ className="label"
273
+ data-test="undefined-button-pe"
274
+ style={
275
+ Object {
276
+ "display": "flex",
277
+ "outline": "none",
278
+ }
279
+ }
280
+ tabIndex={0}
196
281
  >
197
282
  <div
198
- className="label"
199
- data-test="undefined-button-pe"
200
- tabIndex={0}
283
+ style={
284
+ Object {
285
+ "display": "flex",
286
+ "flexDirection": "column",
287
+ "padding": "3px 8px 0 8px",
288
+ }
289
+ }
201
290
  >
202
- <div
203
- className="iconWrapper"
204
- >
205
- <SvgClock16
206
- className="fixedDimensionIcon"
207
- />
208
- </div>
209
- <div
210
- className="labelWrapper"
291
+ <SvgClock16
292
+ style={
293
+ Object {
294
+ "paddingBottom": "2px",
295
+ "paddingLeft": "6px",
296
+ }
297
+ }
298
+ />
299
+ </div>
300
+ <div
301
+ style={
302
+ Object {
303
+ "padding": "2px 5px 2px 0",
304
+ }
305
+ }
306
+ >
307
+ <span
308
+ data-dimensionid="pe"
309
+ style={
310
+ Object {
311
+ "color": "#212934",
312
+ "fontSize": "14px",
313
+ "userSelect": "none",
314
+ "wordBreak": "break-word",
315
+ }
316
+ }
211
317
  >
212
- <span
213
- className="labelText"
214
- >
215
- <span
216
- data-dimensionid="pe"
217
- >
218
- Period
219
- </span>
220
- </span>
221
- <RecommendedIcon
222
- dataTest="undefined-recommended-icon"
223
- isRecommended={true}
224
- />
225
- </div>
318
+ Period
319
+ </span>
320
+ <RecommendedIcon
321
+ dataTest="undefined-recommended-icon"
322
+ isRecommended={true}
323
+ />
226
324
  </div>
227
- </li>
228
- <style />
229
- </Fragment>
325
+ </div>
326
+ </li>
230
327
  `;
231
328
 
232
329
  exports[`DimensionItem matches the snapshot with selected 1`] = `
233
- <Fragment>
234
- <CssVariables
235
- colors={true}
236
- elevations={false}
237
- layers={false}
238
- spacers={false}
239
- theme={false}
240
- />
241
- <li
242
- className="item selected"
243
- name="Period"
244
- onClick={[Function]}
245
- onMouseLeave={[Function]}
246
- onMouseOver={[Function]}
247
- style={Object {}}
330
+ <li
331
+ name="Period"
332
+ onClick={[Function]}
333
+ onMouseLeave={[Function]}
334
+ onMouseOver={[Function]}
335
+ style={
336
+ Object {
337
+ "alignItems": "center",
338
+ "backgroundColor": "#e0f2f1",
339
+ "borderRadius": "2px",
340
+ "cursor": "pointer",
341
+ "display": "flex",
342
+ "fontWeight": 500,
343
+ "marginBottom": 3,
344
+ "marginTop": 3,
345
+ "minHeight": "24px",
346
+ }
347
+ }
348
+ >
349
+ <div
350
+ className="label"
351
+ data-test="undefined-button-pe"
352
+ style={
353
+ Object {
354
+ "display": "flex",
355
+ "outline": "none",
356
+ }
357
+ }
358
+ tabIndex={0}
248
359
  >
249
360
  <div
250
- className="label"
251
- data-test="undefined-button-pe"
252
- tabIndex={0}
361
+ style={
362
+ Object {
363
+ "display": "flex",
364
+ "flexDirection": "column",
365
+ "padding": "3px 8px 0 8px",
366
+ }
367
+ }
253
368
  >
254
- <div
255
- className="iconWrapper"
256
- >
257
- <SvgClock16
258
- className="fixedDimensionIcon"
259
- />
260
- </div>
261
- <div
262
- className="labelWrapper"
369
+ <SvgClock16
370
+ style={
371
+ Object {
372
+ "paddingBottom": "2px",
373
+ "paddingLeft": "6px",
374
+ }
375
+ }
376
+ />
377
+ </div>
378
+ <div
379
+ style={
380
+ Object {
381
+ "padding": "2px 5px 2px 0",
382
+ }
383
+ }
384
+ >
385
+ <span
386
+ data-dimensionid="pe"
387
+ style={
388
+ Object {
389
+ "color": "#212934",
390
+ "fontSize": "14px",
391
+ "userSelect": "none",
392
+ "wordBreak": "break-word",
393
+ }
394
+ }
263
395
  >
264
- <span
265
- className="labelText"
266
- >
267
- <span
268
- data-dimensionid="pe"
269
- >
270
- Period
271
- </span>
272
- </span>
273
- <RecommendedIcon
274
- dataTest="undefined-recommended-icon"
275
- isRecommended={false}
276
- />
277
- </div>
396
+ Period
397
+ </span>
398
+ <RecommendedIcon
399
+ dataTest="undefined-recommended-icon"
400
+ isRecommended={false}
401
+ />
278
402
  </div>
279
- </li>
280
- <style />
281
- </Fragment>
403
+ </div>
404
+ </li>
282
405
  `;