@dhis2/analytics 26.6.9 → 26.6.11
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/build/cjs/__demo__/DimensionsPanel.stories.js +1 -0
- package/build/cjs/assets/DynamicDimensionIcon.js +12 -38
- package/build/cjs/components/DimensionsPanel/List/DimensionItem.js +49 -33
- package/build/cjs/components/DimensionsPanel/List/OptionsButton.js +7 -6
- package/build/cjs/components/DimensionsPanel/List/RecommendedIcon.js +1 -2
- package/build/cjs/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +239 -361
- package/build/cjs/components/DimensionsPanel/List/styles/DimensionItem.style.js +5 -67
- package/build/cjs/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
- package/build/cjs/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +4 -4
- package/build/cjs/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
- package/build/cjs/locales/index.js +20 -18
- package/build/cjs/locales/lo/translations.json +199 -199
- package/build/cjs/locales/th/translations.json +384 -0
- package/build/es/__demo__/DimensionsPanel.stories.js +1 -0
- package/build/es/assets/DynamicDimensionIcon.js +12 -38
- package/build/es/components/DimensionsPanel/List/DimensionItem.js +50 -34
- package/build/es/components/DimensionsPanel/List/OptionsButton.js +7 -6
- package/build/es/components/DimensionsPanel/List/RecommendedIcon.js +1 -2
- package/build/es/components/DimensionsPanel/List/__tests__/__snapshots__/DimensionItem.spec.js.snap +239 -361
- package/build/es/components/DimensionsPanel/List/styles/DimensionItem.style.js +4 -66
- package/build/es/components/DimensionsPanel/List/styles/DimensionList.style.js +2 -2
- package/build/es/components/DimensionsPanel/List/styles/RecommendedIcon.style.js +4 -4
- package/build/es/components/DimensionsPanel/styles/DimensionsPanel.style.js +1 -1
- package/build/es/locales/index.js +2 -0
- package/build/es/locales/lo/translations.json +199 -199
- package/build/es/locales/th/translations.json +384 -0
- package/package.json +2 -2
|
@@ -1,66 +1,4 @@
|
|
|
1
|
-
import { colors
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
},
|
|
6
|
-
text: {
|
|
7
|
-
color: colors.grey900,
|
|
8
|
-
userSelect: 'none',
|
|
9
|
-
wordBreak: 'break-word',
|
|
10
|
-
fontSize: '14px'
|
|
11
|
-
},
|
|
12
|
-
textDeactivated: {
|
|
13
|
-
cursor: 'auto',
|
|
14
|
-
color: colors.grey500
|
|
15
|
-
},
|
|
16
|
-
item: {
|
|
17
|
-
display: 'flex',
|
|
18
|
-
minHeight: '24px',
|
|
19
|
-
marginTop: 3,
|
|
20
|
-
marginBottom: 3,
|
|
21
|
-
alignItems: 'center',
|
|
22
|
-
borderRadius: '2px'
|
|
23
|
-
},
|
|
24
|
-
clickable: {
|
|
25
|
-
cursor: 'pointer'
|
|
26
|
-
},
|
|
27
|
-
selected: {
|
|
28
|
-
backgroundColor: theme.secondary100,
|
|
29
|
-
fontWeight: 500
|
|
30
|
-
},
|
|
31
|
-
fixedDimensionIcon: {
|
|
32
|
-
paddingLeft: '6px',
|
|
33
|
-
paddingBottom: '2px'
|
|
34
|
-
},
|
|
35
|
-
dynamicDimensionIcon: {
|
|
36
|
-
paddingLeft: '9px',
|
|
37
|
-
paddingRight: '9px'
|
|
38
|
-
},
|
|
39
|
-
iconWrapper: {
|
|
40
|
-
display: 'flex',
|
|
41
|
-
flexDirection: 'column',
|
|
42
|
-
padding: '3px 8px 0 8px'
|
|
43
|
-
},
|
|
44
|
-
optionsWrapper: {
|
|
45
|
-
position: 'relative',
|
|
46
|
-
left: '5px',
|
|
47
|
-
width: '20px',
|
|
48
|
-
height: '20px'
|
|
49
|
-
},
|
|
50
|
-
optionsButton: {
|
|
51
|
-
display: 'flex',
|
|
52
|
-
alignItems: 'center',
|
|
53
|
-
justifyContent: 'center',
|
|
54
|
-
height: '20px',
|
|
55
|
-
width: '20px',
|
|
56
|
-
padding: 0,
|
|
57
|
-
border: 'none',
|
|
58
|
-
background: 'none',
|
|
59
|
-
outline: 'none',
|
|
60
|
-
cursor: 'pointer'
|
|
61
|
-
},
|
|
62
|
-
label: {
|
|
63
|
-
display: 'flex',
|
|
64
|
-
outline: 'none'
|
|
65
|
-
}
|
|
66
|
-
};
|
|
1
|
+
import { colors } from '@dhis2/ui';
|
|
2
|
+
const _defaultExport = [`.item.jsx-1684920521{color:${colors.grey900};background-color:transparent;fill:${colors.grey800};display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;outline:none;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 0 0 4px;margin:0;border-radius:2px;cursor:pointer;min-height:22px;border:1px solid transparent;}`, `.item.jsx-1684920521:not(.deactivated):not(.dragging):hover{background-color:${colors.grey100};border-color:${colors.grey400};}`, ".label.jsx-1684920521{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".labelWrapper.jsx-1684920521{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".labelText.jsx-1684920521{font-size:13px;line-height:15px;margin-top:1px;}", ".iconWrapper.jsx-1684920521{width:16px;height:16px;margin:2px 4px 0 0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-align-self:flex-start;-ms-flex-item-align:start;align-self:flex-start;}", ".item.deactivated.jsx-1684920521{opacity:0.5;cursor:not-allowed;}", `.item.selected.jsx-1684920521{background-color:${colors.teal100};border:1px solid ${colors.teal200};color:${colors.teal900};fill:${colors.teal800};font-weight:400;}`, ".item.selected.jsx-1684920521:not(.deactivated):hover{background:#cdeae8;border-color:#93c4bf;box-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);}", ".optionsWrapper.jsx-1684920521{width:20px;height:20px;}", `.lockWrapper.jsx-1684920521 svg.jsx-1684920521 path.jsx-1684920521{fill:${colors.grey800};}`, `.lockWrapper.jsx-1684920521{background:${colors.grey300};height:20px;padding:0 2px 0 3px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;}`, ".item.selected.jsx-1684920521 .lockWrapper.jsx-1684920521{background:#cbe7e5;}", `.item.selected.jsx-1684920521 .lockWrapper.jsx-1684920521 svg.jsx-1684920521 path.jsx-1684920521{fill:${colors.teal900};}`];
|
|
3
|
+
_defaultExport.__hash = "1684920521";
|
|
4
|
+
export default _defaultExport;
|
|
@@ -2,6 +2,6 @@ import { colors, spacers } from '@dhis2/ui';
|
|
|
2
2
|
// Fix for vertical flex scrolling in Firefox/Safari:
|
|
3
3
|
// Wrap the list in a div with position:relative (and flex:1 instead of on the list)
|
|
4
4
|
// On the list, set position:absolute, width:100%, height:100%
|
|
5
|
-
const _defaultExport = [".container.jsx-
|
|
6
|
-
_defaultExport.__hash = "
|
|
5
|
+
const _defaultExport = [".container.jsx-1758681086{position:relative;-webkit-flex:1 1 0%;-ms-flex:1 1 0%;flex:1 1 0%;min-height:30vh;}", `.wrapper.jsx-1758681086{position:absolute;width:100%;height:100%;overflow:auto;margin-top:0;padding:0 ${spacers.dp8} 0 0;}`, ".list.jsx-1758681086{margin:0;padding:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;gap:4px;}", `.header.jsx-1758681086{text-transform:uppercase;font-size:11px;color:${colors.grey600};margin:0 0 ${spacers.dp8} 0;-webkit-letter-spacing:0.3px;-moz-letter-spacing:0.3px;-ms-letter-spacing:0.3px;letter-spacing:0.3px;font-weight:400;}`, `.section.jsx-1758681086:not(:last-child){margin-bottom:${spacers.dp24};}`];
|
|
6
|
+
_defaultExport.__hash = "1758681086";
|
|
7
7
|
export default _defaultExport;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { theme } from '@dhis2/ui';
|
|
2
2
|
export const styles = {
|
|
3
3
|
recommendedIcon: {
|
|
4
|
-
backgroundColor: theme.
|
|
5
|
-
height: '
|
|
6
|
-
width: '
|
|
4
|
+
backgroundColor: theme.secondary400,
|
|
5
|
+
height: '6px',
|
|
6
|
+
width: '6px',
|
|
7
7
|
borderRadius: '4px',
|
|
8
|
-
marginLeft: '
|
|
8
|
+
marginLeft: '6px',
|
|
9
9
|
display: 'inline-block',
|
|
10
10
|
cursor: 'pointer'
|
|
11
11
|
}
|
|
@@ -34,6 +34,7 @@ import siTranslations from './si/translations.json';
|
|
|
34
34
|
import svTranslations from './sv/translations.json';
|
|
35
35
|
import tetTranslations from './tet/translations.json';
|
|
36
36
|
import tgTranslations from './tg/translations.json';
|
|
37
|
+
import thTranslations from './th/translations.json';
|
|
37
38
|
import ukTranslations from './uk/translations.json';
|
|
38
39
|
import urTranslations from './ur/translations.json';
|
|
39
40
|
import uz_CyrlTranslations from './uz_Cyrl/translations.json';
|
|
@@ -71,6 +72,7 @@ i18n.addResources('si', namespace, siTranslations);
|
|
|
71
72
|
i18n.addResources('sv', namespace, svTranslations);
|
|
72
73
|
i18n.addResources('tet', namespace, tetTranslations);
|
|
73
74
|
i18n.addResources('tg', namespace, tgTranslations);
|
|
75
|
+
i18n.addResources('th', namespace, thTranslations);
|
|
74
76
|
i18n.addResources('uk', namespace, ukTranslations);
|
|
75
77
|
i18n.addResources('ur', namespace, urTranslations);
|
|
76
78
|
i18n.addResources('uz_Cyrl', namespace, uz_CyrlTranslations);
|