@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
|
@@ -3,71 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.default = void 0;
|
|
7
7
|
var _ui = require("@dhis2/ui");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
text: {
|
|
13
|
-
color: _ui.colors.grey900,
|
|
14
|
-
userSelect: 'none',
|
|
15
|
-
wordBreak: 'break-word',
|
|
16
|
-
fontSize: '14px'
|
|
17
|
-
},
|
|
18
|
-
textDeactivated: {
|
|
19
|
-
cursor: 'auto',
|
|
20
|
-
color: _ui.colors.grey500
|
|
21
|
-
},
|
|
22
|
-
item: {
|
|
23
|
-
display: 'flex',
|
|
24
|
-
minHeight: '24px',
|
|
25
|
-
marginTop: 3,
|
|
26
|
-
marginBottom: 3,
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
borderRadius: '2px'
|
|
29
|
-
},
|
|
30
|
-
clickable: {
|
|
31
|
-
cursor: 'pointer'
|
|
32
|
-
},
|
|
33
|
-
selected: {
|
|
34
|
-
backgroundColor: _ui.theme.secondary100,
|
|
35
|
-
fontWeight: 500
|
|
36
|
-
},
|
|
37
|
-
fixedDimensionIcon: {
|
|
38
|
-
paddingLeft: '6px',
|
|
39
|
-
paddingBottom: '2px'
|
|
40
|
-
},
|
|
41
|
-
dynamicDimensionIcon: {
|
|
42
|
-
paddingLeft: '9px',
|
|
43
|
-
paddingRight: '9px'
|
|
44
|
-
},
|
|
45
|
-
iconWrapper: {
|
|
46
|
-
display: 'flex',
|
|
47
|
-
flexDirection: 'column',
|
|
48
|
-
padding: '3px 8px 0 8px'
|
|
49
|
-
},
|
|
50
|
-
optionsWrapper: {
|
|
51
|
-
position: 'relative',
|
|
52
|
-
left: '5px',
|
|
53
|
-
width: '20px',
|
|
54
|
-
height: '20px'
|
|
55
|
-
},
|
|
56
|
-
optionsButton: {
|
|
57
|
-
display: 'flex',
|
|
58
|
-
alignItems: 'center',
|
|
59
|
-
justifyContent: 'center',
|
|
60
|
-
height: '20px',
|
|
61
|
-
width: '20px',
|
|
62
|
-
padding: 0,
|
|
63
|
-
border: 'none',
|
|
64
|
-
background: 'none',
|
|
65
|
-
outline: 'none',
|
|
66
|
-
cursor: 'pointer'
|
|
67
|
-
},
|
|
68
|
-
label: {
|
|
69
|
-
display: 'flex',
|
|
70
|
-
outline: 'none'
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
exports.styles = styles;
|
|
8
|
+
const _defaultExport = [`.item.jsx-1684920521{color:${_ui.colors.grey900};background-color:transparent;fill:${_ui.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:${_ui.colors.grey100};border-color:${_ui.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:${_ui.colors.teal100};border:1px solid ${_ui.colors.teal200};color:${_ui.colors.teal900};fill:${_ui.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:${_ui.colors.grey800};}`, `.lockWrapper.jsx-1684920521{background:${_ui.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:${_ui.colors.teal900};}`];
|
|
9
|
+
_defaultExport.__hash = "1684920521";
|
|
10
|
+
var _default = _defaultExport;
|
|
11
|
+
exports.default = _default;
|
|
@@ -8,7 +8,7 @@ var _ui = require("@dhis2/ui");
|
|
|
8
8
|
// Fix for vertical flex scrolling in Firefox/Safari:
|
|
9
9
|
// Wrap the list in a div with position:relative (and flex:1 instead of on the list)
|
|
10
10
|
// On the list, set position:absolute, width:100%, height:100%
|
|
11
|
-
const _defaultExport = [".container.jsx-
|
|
12
|
-
_defaultExport.__hash = "
|
|
11
|
+
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 ${_ui.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:${_ui.colors.grey600};margin:0 0 ${_ui.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:${_ui.spacers.dp24};}`];
|
|
12
|
+
_defaultExport.__hash = "1758681086";
|
|
13
13
|
var _default = _defaultExport;
|
|
14
14
|
exports.default = _default;
|
|
@@ -7,11 +7,11 @@ exports.styles = void 0;
|
|
|
7
7
|
var _ui = require("@dhis2/ui");
|
|
8
8
|
const styles = {
|
|
9
9
|
recommendedIcon: {
|
|
10
|
-
backgroundColor: _ui.theme.
|
|
11
|
-
height: '
|
|
12
|
-
width: '
|
|
10
|
+
backgroundColor: _ui.theme.secondary400,
|
|
11
|
+
height: '6px',
|
|
12
|
+
width: '6px',
|
|
13
13
|
borderRadius: '4px',
|
|
14
|
-
marginLeft: '
|
|
14
|
+
marginLeft: '6px',
|
|
15
15
|
display: 'inline-block',
|
|
16
16
|
cursor: 'pointer'
|
|
17
17
|
}
|
|
@@ -32,15 +32,16 @@ var _translations24 = _interopRequireDefault(require("./si/translations.json"));
|
|
|
32
32
|
var _translations25 = _interopRequireDefault(require("./sv/translations.json"));
|
|
33
33
|
var _translations26 = _interopRequireDefault(require("./tet/translations.json"));
|
|
34
34
|
var _translations27 = _interopRequireDefault(require("./tg/translations.json"));
|
|
35
|
-
var _translations28 = _interopRequireDefault(require("./
|
|
36
|
-
var _translations29 = _interopRequireDefault(require("./
|
|
37
|
-
var _translations30 = _interopRequireDefault(require("./
|
|
38
|
-
var _translations31 = _interopRequireDefault(require("./
|
|
39
|
-
var _translations32 = _interopRequireDefault(require("./
|
|
40
|
-
var _translations33 = _interopRequireDefault(require("./
|
|
41
|
-
var _translations34 = _interopRequireDefault(require("./
|
|
42
|
-
var _translations35 = _interopRequireDefault(require("./
|
|
43
|
-
var _translations36 = _interopRequireDefault(require("./
|
|
35
|
+
var _translations28 = _interopRequireDefault(require("./th/translations.json"));
|
|
36
|
+
var _translations29 = _interopRequireDefault(require("./uk/translations.json"));
|
|
37
|
+
var _translations30 = _interopRequireDefault(require("./ur/translations.json"));
|
|
38
|
+
var _translations31 = _interopRequireDefault(require("./uz_Cyrl/translations.json"));
|
|
39
|
+
var _translations32 = _interopRequireDefault(require("./uz_Latn/translations.json"));
|
|
40
|
+
var _translations33 = _interopRequireDefault(require("./uz_UZ_Cyrl/translations.json"));
|
|
41
|
+
var _translations34 = _interopRequireDefault(require("./uz_UZ_Latn/translations.json"));
|
|
42
|
+
var _translations35 = _interopRequireDefault(require("./vi/translations.json"));
|
|
43
|
+
var _translations36 = _interopRequireDefault(require("./zh/translations.json"));
|
|
44
|
+
var _translations37 = _interopRequireDefault(require("./zh_CN/translations.json"));
|
|
44
45
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
45
46
|
//------------------------------------------------------------------------------
|
|
46
47
|
// <auto-generated>
|
|
@@ -79,14 +80,15 @@ _d2I18n.default.addResources('si', namespace, _translations24.default);
|
|
|
79
80
|
_d2I18n.default.addResources('sv', namespace, _translations25.default);
|
|
80
81
|
_d2I18n.default.addResources('tet', namespace, _translations26.default);
|
|
81
82
|
_d2I18n.default.addResources('tg', namespace, _translations27.default);
|
|
82
|
-
_d2I18n.default.addResources('
|
|
83
|
-
_d2I18n.default.addResources('
|
|
84
|
-
_d2I18n.default.addResources('
|
|
85
|
-
_d2I18n.default.addResources('
|
|
86
|
-
_d2I18n.default.addResources('
|
|
87
|
-
_d2I18n.default.addResources('
|
|
88
|
-
_d2I18n.default.addResources('
|
|
89
|
-
_d2I18n.default.addResources('
|
|
90
|
-
_d2I18n.default.addResources('
|
|
83
|
+
_d2I18n.default.addResources('th', namespace, _translations28.default);
|
|
84
|
+
_d2I18n.default.addResources('uk', namespace, _translations29.default);
|
|
85
|
+
_d2I18n.default.addResources('ur', namespace, _translations30.default);
|
|
86
|
+
_d2I18n.default.addResources('uz_Cyrl', namespace, _translations31.default);
|
|
87
|
+
_d2I18n.default.addResources('uz_Latn', namespace, _translations32.default);
|
|
88
|
+
_d2I18n.default.addResources('uz_UZ_Cyrl', namespace, _translations33.default);
|
|
89
|
+
_d2I18n.default.addResources('uz_UZ_Latn', namespace, _translations34.default);
|
|
90
|
+
_d2I18n.default.addResources('vi', namespace, _translations35.default);
|
|
91
|
+
_d2I18n.default.addResources('zh', namespace, _translations36.default);
|
|
92
|
+
_d2I18n.default.addResources('zh_CN', namespace, _translations37.default);
|
|
91
93
|
var _default = _d2I18n.default;
|
|
92
94
|
exports.default = _default;
|