@dhis2-ui/header-bar 9.11.0 → 9.11.1-beta.2
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/__e2e__/{header-bar.stories.e2e.js → header-bar.e2e.stories.js} +2 -20
- package/build/cjs/__e2e__/stories/common.js +12 -33
- package/build/cjs/__e2e__/stories/custom-application-title.js +3 -8
- package/build/cjs/__e2e__/stories/default.js +1 -7
- package/build/cjs/__e2e__/stories/me-with-avatar.js +3 -8
- package/build/cjs/__e2e__/stories/modulesWithSpecialCharacters.js +2 -3
- package/build/cjs/__e2e__/stories/online-status-message.js +4 -14
- package/build/cjs/__e2e__/stories/pwa-enabled.js +3 -8
- package/build/cjs/__e2e__/stories/user-has-all-authority.js +5 -9
- package/build/cjs/__e2e__/stories/user-has-no-authorities.js +5 -9
- package/build/cjs/__e2e__/stories/user-has-web-interpretation-and-messaging-authority.js +5 -9
- package/build/cjs/__e2e__/stories/user-has-web-interpretation-authority.js +5 -9
- package/build/cjs/__e2e__/stories/user-has-web-messaging-authority.js +5 -9
- package/build/cjs/__e2e__/stories/with-debug-info-edge-cases.js +11 -18
- package/build/cjs/__e2e__/stories/with-special-app-name-character.js +5 -9
- package/build/cjs/__e2e__/stories/with-update-available-notification.js +6 -13
- package/build/cjs/__e2e__/stories/zero-unread-interpretations.js +3 -8
- package/build/cjs/__e2e__/stories/zero-unread-messages.js +3 -8
- package/build/cjs/apps.js +9 -34
- package/build/cjs/debug-info/debug-info-menu-item.js +4 -17
- package/build/cjs/debug-info/debug-info-modal.js +2 -15
- package/build/cjs/debug-info/debug-info-table.js +2 -9
- package/build/cjs/debug-info/use-debug-info.js +0 -5
- package/build/cjs/features/common/index.js +3 -7
- package/build/cjs/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +9 -5
- package/build/cjs/features/the_headerbar_conditionally_renders_notification_icons/the_headerbar_conditionally_renders_notification_icons.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/common.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_app_menu_closes_when_the_user_clicks_outside.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_headerbar_contains_a_menu_icon.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_menu_to_all_apps/the_user_will_be_offered_a_menu_with_5_apps.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/common.js +4 -2
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js +2 -3
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_an_image_icon_if_the_user_has_an_avatar.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +4 -2
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_profile_menu_closes_when_the_user_clicks_outside.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_edit_his_profile.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_his_account.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_about_dhis2_page.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_help_page.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_go_to_the_settings.js +0 -1
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +16 -14
- package/build/cjs/features/the_headerbar_contains_a_profile_menu/the_user_name_and_email_are_displayed.js +0 -1
- package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/the_headerbar_displays_a_link_to_the_interpretations.js +0 -1
- package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_no_unread_interpretations.js +0 -1
- package/build/cjs/features/the_headerbar_displays_a_link_to_interpretations_and_an_unread_count/there_are_some_unread_interpretations.js +0 -1
- package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/the_headerbar_displays_a_link_to_the_messages.js +0 -1
- package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_no_unread_messages.js +0 -1
- package/build/cjs/features/the_headerbar_displays_a_link_to_messages_and_an_unread_count/there_are_some_unread_messages.js +0 -1
- package/build/cjs/features/the_headerbar_should_contain_a_logo_that_links_to_the_homepage/headerbar_contains_logo.js +0 -2
- package/build/cjs/features/the_headerbar_should_display_app_update_notification/index.js +0 -1
- package/build/cjs/features/the_headerbar_should_display_debug_version_infos/index.js +0 -1
- package/build/cjs/features/the_headerbar_should_display_the_title_provided_by_the_backend_and_the_app/the_headerbar_displays_the_custom_title.js +0 -1
- package/build/cjs/features/the_search_should_escape_regexp_character/common.js +0 -1
- package/build/cjs/features/the_search_should_escape_regexp_character/the_modules_do_not_contain_items_with_special_chars.js +0 -1
- package/build/cjs/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +2 -4
- package/build/cjs/header-bar-context.js +3 -13
- package/build/cjs/header-bar.js +8 -31
- package/build/cjs/{header-bar.stories.js → header-bar.prod.stories.js} +33 -40
- package/build/cjs/index.js +0 -1
- package/build/cjs/join-path.js +0 -3
- package/build/cjs/locales/index.js +3 -77
- package/build/cjs/logo-image.js +2 -15
- package/build/cjs/logo.js +1 -8
- package/build/cjs/notification-icon.js +3 -13
- package/build/cjs/notifications.js +1 -12
- package/build/cjs/online-status.js +6 -16
- package/build/cjs/online-status.styles.js +2 -5
- package/build/cjs/profile/use-on-doc-click.js +0 -4
- package/build/cjs/profile/use-on-doc-click.test.js +0 -2
- package/build/cjs/profile-menu/index.js +0 -2
- package/build/cjs/profile-menu/profile-header.js +2 -20
- package/build/cjs/profile-menu/profile-menu.js +10 -33
- package/build/cjs/profile-menu/update-notification.js +3 -17
- package/build/cjs/profile.js +5 -19
- package/build/cjs/title.js +2 -8
- package/build/es/__e2e__/stories/common.js +3 -8
- package/build/es/__e2e__/stories/custom-application-title.js +2 -1
- package/build/es/__e2e__/stories/me-with-avatar.js +2 -1
- package/build/es/__e2e__/stories/online-status-message.js +3 -4
- package/build/es/__e2e__/stories/pwa-enabled.js +2 -1
- package/build/es/__e2e__/stories/user-has-all-authority.js +4 -2
- package/build/es/__e2e__/stories/user-has-no-authorities.js +4 -2
- package/build/es/__e2e__/stories/user-has-web-interpretation-and-messaging-authority.js +4 -2
- package/build/es/__e2e__/stories/user-has-web-interpretation-authority.js +4 -2
- package/build/es/__e2e__/stories/user-has-web-messaging-authority.js +4 -2
- package/build/es/__e2e__/stories/with-debug-info-edge-cases.js +10 -5
- package/build/es/__e2e__/stories/with-special-app-name-character.js +4 -2
- package/build/es/__e2e__/stories/with-update-available-notification.js +4 -2
- package/build/es/__e2e__/stories/zero-unread-interpretations.js +2 -1
- package/build/es/__e2e__/stories/zero-unread-messages.js +2 -1
- package/build/es/apps.js +6 -16
- package/build/es/debug-info/debug-info-menu-item.js +3 -5
- package/build/es/debug-info/debug-info-modal.js +1 -3
- package/build/es/debug-info/debug-info-table.js +1 -3
- package/build/es/features/common/index.js +1 -1
- package/build/es/features/the_headerbar_can_display_online_status/the_headerbar_displays_online_status.js +11 -5
- package/build/es/features/the_headerbar_contains_a_profile_menu/common.js +4 -1
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_headerbar_shows_a_text_icon_if_the_user_does_not_have_an_avatar.js +2 -2
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_menu_opens.js +4 -1
- package/build/es/features/the_headerbar_contains_a_profile_menu/the_user_can_log_out.js +15 -11
- package/build/es/features/the_search_should_escape_regexp_character/the_user_searches_for_an_app_with_a_regex_character.js +2 -1
- package/build/es/header-bar.js +5 -6
- package/build/es/{header-bar.stories.js → header-bar.prod.stories.js} +32 -11
- package/build/es/join-path.js +0 -1
- package/build/es/logo-image.js +1 -7
- package/build/es/notification-icon.js +2 -4
- package/build/es/notifications.js +0 -2
- package/build/es/online-status.js +6 -6
- package/build/es/online-status.styles.js +1 -1
- package/build/es/profile/use-on-doc-click.js +0 -1
- package/build/es/profile-menu/profile-header.js +1 -9
- package/build/es/profile-menu/profile-menu.js +7 -8
- package/build/es/profile-menu/update-notification.js +2 -4
- package/build/es/profile.js +1 -3
- package/build/es/title.js +1 -1
- package/package.json +18 -18
- /package/build/es/__e2e__/{header-bar.stories.e2e.js → header-bar.e2e.stories.js} +0 -0
|
@@ -118,41 +118,23 @@ Object.defineProperty(exports, "ZeroUnreadMessages", {
|
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
exports.default = void 0;
|
|
121
|
-
|
|
122
121
|
var _index = require("../index.js");
|
|
123
|
-
|
|
124
122
|
var _default2 = require("./stories/default.js");
|
|
125
|
-
|
|
126
123
|
var _pwaEnabled = require("./stories/pwa-enabled.js");
|
|
127
|
-
|
|
128
124
|
var _onlineStatusMessage = require("./stories/online-status-message.js");
|
|
129
|
-
|
|
130
125
|
var _meWithAvatar = require("./stories/me-with-avatar.js");
|
|
131
|
-
|
|
132
126
|
var _withSpecialAppNameCharacter = require("./stories/with-special-app-name-character.js");
|
|
133
|
-
|
|
134
127
|
var _customApplicationTitle = require("./stories/custom-application-title.js");
|
|
135
|
-
|
|
136
128
|
var _userHasAllAuthority = require("./stories/user-has-all-authority.js");
|
|
137
|
-
|
|
138
129
|
var _userHasWebInterpretationAndMessagingAuthority = require("./stories/user-has-web-interpretation-and-messaging-authority.js");
|
|
139
|
-
|
|
140
130
|
var _userHasWebInterpretationAuthority = require("./stories/user-has-web-interpretation-authority.js");
|
|
141
|
-
|
|
142
131
|
var _userHasWebMessagingAuthority = require("./stories/user-has-web-messaging-authority.js");
|
|
143
|
-
|
|
144
132
|
var _userHasNoAuthorities = require("./stories/user-has-no-authorities.js");
|
|
145
|
-
|
|
146
133
|
var _zeroUnreadInterpretations = require("./stories/zero-unread-interpretations.js");
|
|
147
|
-
|
|
148
134
|
var _zeroUnreadMessages = require("./stories/zero-unread-messages.js");
|
|
149
|
-
|
|
150
135
|
var _withUpdateAvailableNotification = require("./stories/with-update-available-notification.js");
|
|
151
|
-
|
|
152
136
|
var _withDebugInfoEdgeCases = require("./stories/with-debug-info-edge-cases.js");
|
|
153
|
-
|
|
154
|
-
var _default = {
|
|
137
|
+
var _default = exports.default = {
|
|
155
138
|
title: 'HeaderBarTesting',
|
|
156
139
|
component: _index.HeaderBar
|
|
157
|
-
};
|
|
158
|
-
exports.default = _default;
|
|
140
|
+
};
|
|
@@ -11,23 +11,16 @@ Object.defineProperty(exports, "modulesWithSpecialCharacters", {
|
|
|
11
11
|
}
|
|
12
12
|
});
|
|
13
13
|
exports.providerConfig = void 0;
|
|
14
|
-
|
|
15
14
|
var _appRuntime = require("@dhis2/app-runtime");
|
|
16
|
-
|
|
17
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
18
|
-
|
|
19
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
20
|
-
|
|
21
17
|
var _modulesWithSpecialCharacters = require("./modulesWithSpecialCharacters.js");
|
|
22
|
-
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
26
|
-
|
|
27
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
|
-
|
|
18
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
19
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
21
|
/* eslint-disable react/display-name */
|
|
30
|
-
|
|
22
|
+
|
|
23
|
+
const defaultModules = exports.defaultModules = [{
|
|
31
24
|
name: 'dhis-web-dashboard',
|
|
32
25
|
namespace: '/dhis-web-dashboard',
|
|
33
26
|
defaultAction: '../dhis-web-dashboard/index.action',
|
|
@@ -91,10 +84,8 @@ const defaultModules = [{
|
|
|
91
84
|
icon: 'https://debug.dhis2.org/dev/api/apps/Dashboard-Classic/icon.png',
|
|
92
85
|
description: 'DHIS2 Legacy Dashboard App'
|
|
93
86
|
}];
|
|
94
|
-
exports.
|
|
95
|
-
const
|
|
96
|
-
exports.applicationTitle = applicationTitle;
|
|
97
|
-
const dataProviderData = {
|
|
87
|
+
const applicationTitle = exports.applicationTitle = 'Foobar';
|
|
88
|
+
const dataProviderData = exports.dataProviderData = {
|
|
98
89
|
'systemSettings/applicationTitle': {
|
|
99
90
|
applicationTitle
|
|
100
91
|
},
|
|
@@ -116,11 +107,10 @@ const dataProviderData = {
|
|
|
116
107
|
unreadInterpretations: 10,
|
|
117
108
|
unreadMessageConversations: 5
|
|
118
109
|
}
|
|
119
|
-
};
|
|
120
|
-
// helper from the org unit tree's common.js helper with the same name
|
|
121
|
-
|
|
122
|
-
exports.dataProviderData = dataProviderData;
|
|
110
|
+
};
|
|
123
111
|
|
|
112
|
+
// Trailing "HeaderBar" because storybook is confusing this with the
|
|
113
|
+
// helper from the org unit tree's common.js helper with the same name
|
|
124
114
|
const createDecoratorCustomDataProviderHeaderBar = function () {
|
|
125
115
|
let data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : dataProviderData;
|
|
126
116
|
return fn => {
|
|
@@ -130,9 +120,8 @@ const createDecoratorCustomDataProviderHeaderBar = function () {
|
|
|
130
120
|
}, fn());
|
|
131
121
|
};
|
|
132
122
|
};
|
|
133
|
-
|
|
134
123
|
exports.createDecoratorCustomDataProviderHeaderBar = createDecoratorCustomDataProviderHeaderBar;
|
|
135
|
-
const providerConfig = {
|
|
124
|
+
const providerConfig = exports.providerConfig = {
|
|
136
125
|
appName: 'TestApp',
|
|
137
126
|
appVersion: {
|
|
138
127
|
full: '101.2.3-beta.4',
|
|
@@ -183,18 +172,14 @@ const providerConfig = {
|
|
|
183
172
|
baseUrl: 'https://domain.tld/',
|
|
184
173
|
apiVersion: ''
|
|
185
174
|
};
|
|
186
|
-
exports.providerConfig = providerConfig;
|
|
187
|
-
|
|
188
175
|
const MockAlert = _ref => {
|
|
189
176
|
let {
|
|
190
177
|
alert
|
|
191
178
|
} = _ref;
|
|
192
179
|
(0, _react.useEffect)(() => {
|
|
193
180
|
var _alert$options;
|
|
194
|
-
|
|
195
181
|
if ((_alert$options = alert.options) !== null && _alert$options !== void 0 && _alert$options.duration) {
|
|
196
182
|
var _alert$options2;
|
|
197
|
-
|
|
198
183
|
setTimeout(() => alert.remove(), (_alert$options2 = alert.options) === null || _alert$options2 === void 0 ? void 0 : _alert$options2.duration);
|
|
199
184
|
}
|
|
200
185
|
}, [alert]);
|
|
@@ -205,7 +190,6 @@ const MockAlert = _ref => {
|
|
|
205
190
|
}
|
|
206
191
|
}, alert.message);
|
|
207
192
|
};
|
|
208
|
-
|
|
209
193
|
MockAlert.propTypes = {
|
|
210
194
|
alert: _propTypes.default.shape({
|
|
211
195
|
message: _propTypes.default.string,
|
|
@@ -215,7 +199,6 @@ MockAlert.propTypes = {
|
|
|
215
199
|
remove: _propTypes.default.func
|
|
216
200
|
})
|
|
217
201
|
};
|
|
218
|
-
|
|
219
202
|
const MockAlertStack = () => {
|
|
220
203
|
const alerts = (0, _appRuntime.useAlerts)();
|
|
221
204
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -229,8 +212,7 @@ const MockAlertStack = () => {
|
|
|
229
212
|
alert: alert
|
|
230
213
|
})));
|
|
231
214
|
};
|
|
232
|
-
|
|
233
|
-
const mockOfflineInterface = {
|
|
215
|
+
const mockOfflineInterface = exports.mockOfflineInterface = {
|
|
234
216
|
pwaEnabled: true,
|
|
235
217
|
startRecording: async () => undefined,
|
|
236
218
|
getCachedSections: async () => [],
|
|
@@ -238,8 +220,6 @@ const mockOfflineInterface = {
|
|
|
238
220
|
subscribeToDhis2ConnectionStatus: () => () => undefined,
|
|
239
221
|
latestIsConnected: true
|
|
240
222
|
};
|
|
241
|
-
exports.mockOfflineInterface = mockOfflineInterface;
|
|
242
|
-
|
|
243
223
|
const createDecoratorProvider = function () {
|
|
244
224
|
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : providerConfig;
|
|
245
225
|
let offlineInterface = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : mockOfflineInterface;
|
|
@@ -248,5 +228,4 @@ const createDecoratorProvider = function () {
|
|
|
248
228
|
offlineInterface: offlineInterface
|
|
249
229
|
}, fn(), /*#__PURE__*/_react.default.createElement(MockAlertStack, null));
|
|
250
230
|
};
|
|
251
|
-
|
|
252
231
|
exports.createDecoratorProvider = createDecoratorProvider;
|
|
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.CustomApplicationTitle = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const CustomApplicationTitle = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.CustomApplicationTitle = CustomApplicationTitle;
|
|
21
|
-
CustomApplicationTitle.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
15
|
+
CustomApplicationTitle.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
22
17
|
['systemSettings/applicationTitle']: {
|
|
23
18
|
applicationTitle: 'Barbaz'
|
|
24
19
|
}
|
|
@@ -4,18 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.Default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const Default = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.Default = Default;
|
|
21
15
|
Default.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.MeWithAvatar = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const MeWithAvatar = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.MeWithAvatar = MeWithAvatar;
|
|
21
|
-
MeWithAvatar.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
15
|
+
MeWithAvatar.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
22
17
|
me: {
|
|
23
18
|
name: 'John Doe',
|
|
24
19
|
email: 'john_doe@dhis2.org',
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.modulesWithSpecialCharacters = void 0;
|
|
7
|
-
const modulesWithSpecialCharacters = [{
|
|
7
|
+
const modulesWithSpecialCharacters = exports.modulesWithSpecialCharacters = [{
|
|
8
8
|
name: '/',
|
|
9
9
|
namespace: '//',
|
|
10
10
|
defaultAction: '..//.action',
|
|
@@ -200,5 +200,4 @@ const modulesWithSpecialCharacters = [{
|
|
|
200
200
|
displayName: '',
|
|
201
201
|
icon: 'https://debug.dhis2.org/dev/api/apps/Dashboard-Classic/icon.png',
|
|
202
202
|
description: 'DHIS2 Legacy Dashboard App'
|
|
203
|
-
}];
|
|
204
|
-
exports.modulesWithSpecialCharacters = modulesWithSpecialCharacters;
|
|
203
|
+
}];
|
|
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.OnlineStatusMessagingWithPwaEnabled = exports.OnlineStatusMessageUpdate = void 0;
|
|
7
|
-
|
|
8
|
-
var _button = require("@dhis2-ui/button");
|
|
9
|
-
|
|
10
7
|
var _appRuntime = require("@dhis2/app-runtime");
|
|
11
|
-
|
|
8
|
+
var _button = require("@dhis2-ui/button");
|
|
12
9
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
10
|
var _index = require("../../index.js");
|
|
15
|
-
|
|
16
11
|
var _common = require("./common.js");
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
13
|
const OnlineStatusMessageUpdate = () => {
|
|
21
14
|
const {
|
|
22
15
|
onlineStatusMessage,
|
|
@@ -29,16 +22,13 @@ const OnlineStatusMessageUpdate = () => {
|
|
|
29
22
|
}
|
|
30
23
|
}, buttonLabel);
|
|
31
24
|
};
|
|
32
|
-
|
|
33
25
|
exports.OnlineStatusMessageUpdate = OnlineStatusMessageUpdate;
|
|
34
|
-
|
|
35
26
|
const OnlineStatusMessaging = () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
36
27
|
appName: "Example!"
|
|
37
28
|
}), /*#__PURE__*/_react.default.createElement(OnlineStatusMessageUpdate, null));
|
|
38
|
-
|
|
39
29
|
const OnlineStatusMessagingWithPwaEnabled = () => /*#__PURE__*/_react.default.createElement(OnlineStatusMessaging, null);
|
|
40
|
-
|
|
41
30
|
exports.OnlineStatusMessagingWithPwaEnabled = OnlineStatusMessagingWithPwaEnabled;
|
|
42
|
-
OnlineStatusMessagingWithPwaEnabled.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
31
|
+
OnlineStatusMessagingWithPwaEnabled.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
32
|
+
..._common.providerConfig,
|
|
43
33
|
pwaEnabled: true
|
|
44
34
|
})];
|
|
@@ -4,20 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PWAEnabled = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const PWAEnabled = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.PWAEnabled = PWAEnabled;
|
|
21
|
-
PWAEnabled.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
15
|
+
PWAEnabled.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
16
|
+
..._common.providerConfig,
|
|
22
17
|
pwaEnabled: true
|
|
23
18
|
})];
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UserHasAllAuthority = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const UserHasAllAuthority = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.UserHasAllAuthority = UserHasAllAuthority;
|
|
21
|
-
UserHasAllAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
22
|
-
|
|
15
|
+
UserHasAllAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
17
|
+
me: {
|
|
18
|
+
..._common.dataProviderData.me,
|
|
23
19
|
authorities: ['ALL']
|
|
24
20
|
}
|
|
25
21
|
}), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UserHasNoAuthorities = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const UserHasNoAuthorities = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.UserHasNoAuthorities = UserHasNoAuthorities;
|
|
21
|
-
UserHasNoAuthorities.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
22
|
-
|
|
15
|
+
UserHasNoAuthorities.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
17
|
+
me: {
|
|
18
|
+
..._common.dataProviderData.me,
|
|
23
19
|
authorities: []
|
|
24
20
|
}
|
|
25
21
|
}), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UserHasWebInterpretationAndMessagingAuthority = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const UserHasWebInterpretationAndMessagingAuthority = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.UserHasWebInterpretationAndMessagingAuthority = UserHasWebInterpretationAndMessagingAuthority;
|
|
21
|
-
UserHasWebInterpretationAndMessagingAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
22
|
-
|
|
15
|
+
UserHasWebInterpretationAndMessagingAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
17
|
+
me: {
|
|
18
|
+
..._common.dataProviderData.me,
|
|
23
19
|
authorities: ['M_dhis-web-interpretation', 'M_dhis-web-messaging']
|
|
24
20
|
}
|
|
25
21
|
}), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UserHasWebInterpretationAuthority = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const UserHasWebInterpretationAuthority = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.UserHasWebInterpretationAuthority = UserHasWebInterpretationAuthority;
|
|
21
|
-
UserHasWebInterpretationAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
22
|
-
|
|
15
|
+
UserHasWebInterpretationAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
17
|
+
me: {
|
|
18
|
+
..._common.dataProviderData.me,
|
|
23
19
|
authorities: ['M_dhis-web-interpretation']
|
|
24
20
|
}
|
|
25
21
|
}), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.UserHasWebMessagingAuthority = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const UserHasWebMessagingAuthority = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.UserHasWebMessagingAuthority = UserHasWebMessagingAuthority;
|
|
21
|
-
UserHasWebMessagingAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
22
|
-
|
|
15
|
+
UserHasWebMessagingAuthority.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
17
|
+
me: {
|
|
18
|
+
..._common.dataProviderData.me,
|
|
23
19
|
authorities: ['M_dhis-web-messaging']
|
|
24
20
|
}
|
|
25
21
|
}), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,42 +4,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.WithUnknownInstanceVersion = exports.WithUnknownAppVersion = exports.WithUnknownAppNameAndVersion = exports.WithUnknownAppName = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _headerBar = require("../../header-bar.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const WithUnknownInstanceVersion = () => /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, null);
|
|
17
|
-
|
|
18
12
|
exports.WithUnknownInstanceVersion = WithUnknownInstanceVersion;
|
|
19
|
-
WithUnknownInstanceVersion.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
20
|
-
|
|
13
|
+
WithUnknownInstanceVersion.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
14
|
+
..._common.providerConfig,
|
|
15
|
+
systemInfo: {
|
|
16
|
+
..._common.providerConfig.systemInfo,
|
|
21
17
|
version: undefined
|
|
22
18
|
}
|
|
23
19
|
})];
|
|
24
|
-
|
|
25
20
|
const WithUnknownAppVersion = () => /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, null);
|
|
26
|
-
|
|
27
21
|
exports.WithUnknownAppVersion = WithUnknownAppVersion;
|
|
28
|
-
WithUnknownAppVersion.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
22
|
+
WithUnknownAppVersion.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
23
|
+
..._common.providerConfig,
|
|
29
24
|
appVersion: undefined
|
|
30
25
|
})];
|
|
31
|
-
|
|
32
26
|
const WithUnknownAppName = () => /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, null);
|
|
33
|
-
|
|
34
27
|
exports.WithUnknownAppName = WithUnknownAppName;
|
|
35
|
-
WithUnknownAppName.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
28
|
+
WithUnknownAppName.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
29
|
+
..._common.providerConfig,
|
|
36
30
|
appName: undefined
|
|
37
31
|
})];
|
|
38
|
-
|
|
39
32
|
const WithUnknownAppNameAndVersion = () => /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, null);
|
|
40
|
-
|
|
41
33
|
exports.WithUnknownAppNameAndVersion = WithUnknownAppNameAndVersion;
|
|
42
|
-
WithUnknownAppNameAndVersion.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
34
|
+
WithUnknownAppNameAndVersion.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
35
|
+
..._common.providerConfig,
|
|
43
36
|
appName: undefined,
|
|
44
37
|
appVersion: undefined
|
|
45
38
|
})];
|
|
@@ -4,22 +4,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.WithSpecialAppNameCharacters = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const WithSpecialAppNameCharacters = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.WithSpecialAppNameCharacters = WithSpecialAppNameCharacters;
|
|
21
|
-
WithSpecialAppNameCharacters.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
22
|
-
|
|
15
|
+
WithSpecialAppNameCharacters.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
17
|
+
['action::menu/getModules']: {
|
|
18
|
+
..._common.dataProviderData['action::menu/getModules'],
|
|
23
19
|
modules: _common.modulesWithSpecialCharacters
|
|
24
20
|
}
|
|
25
21
|
}), (0, _common.createDecoratorProvider)()];
|
|
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.WithUpdateAvailableNotificationNoAppName = exports.WithUpdateAvailableNotification = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _headerBar = require("../../header-bar.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
|
|
10
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
12
|
const WithUpdateAvailableNotification = () => {
|
|
19
13
|
const [modalOpen, setModalOpen] = (0, _react.useState)(false);
|
|
20
14
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, {
|
|
@@ -22,17 +16,16 @@ const WithUpdateAvailableNotification = () => {
|
|
|
22
16
|
onApplyAvailableUpdate: () => setModalOpen(true)
|
|
23
17
|
}), modalOpen && /*#__PURE__*/_react.default.createElement("div", null, "The callback was successful"));
|
|
24
18
|
};
|
|
25
|
-
|
|
26
19
|
exports.WithUpdateAvailableNotification = WithUpdateAvailableNotification;
|
|
27
|
-
WithUpdateAvailableNotification.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
20
|
+
WithUpdateAvailableNotification.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
21
|
+
..._common.providerConfig,
|
|
28
22
|
appName: 'Data Visualizer'
|
|
29
23
|
})];
|
|
30
|
-
|
|
31
24
|
const WithUpdateAvailableNotificationNoAppName = () => /*#__PURE__*/_react.default.createElement(_headerBar.HeaderBar, {
|
|
32
25
|
updateAvailable: true
|
|
33
26
|
});
|
|
34
|
-
|
|
35
27
|
exports.WithUpdateAvailableNotificationNoAppName = WithUpdateAvailableNotificationNoAppName;
|
|
36
|
-
WithUpdateAvailableNotificationNoAppName.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
28
|
+
WithUpdateAvailableNotificationNoAppName.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)(), (0, _common.createDecoratorProvider)({
|
|
29
|
+
..._common.providerConfig,
|
|
37
30
|
appName: undefined
|
|
38
31
|
})];
|
|
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ZeroUnreadInterpretations = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const ZeroUnreadInterpretations = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.ZeroUnreadInterpretations = ZeroUnreadInterpretations;
|
|
21
|
-
ZeroUnreadInterpretations.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
15
|
+
ZeroUnreadInterpretations.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
22
17
|
['me/dashboard']: {
|
|
23
18
|
unreadInterpretations: 0
|
|
24
19
|
}
|
|
@@ -4,21 +4,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.ZeroUnreadMessages = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _index = require("../../index.js");
|
|
11
|
-
|
|
12
9
|
var _common = require("./common.js");
|
|
13
|
-
|
|
14
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
|
-
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
11
|
const ZeroUnreadMessages = () => /*#__PURE__*/_react.default.createElement(_index.HeaderBar, {
|
|
17
12
|
appName: "Example!"
|
|
18
13
|
});
|
|
19
|
-
|
|
20
14
|
exports.ZeroUnreadMessages = ZeroUnreadMessages;
|
|
21
|
-
ZeroUnreadMessages.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
15
|
+
ZeroUnreadMessages.decorators = [(0, _common.createDecoratorCustomDataProviderHeaderBar)({
|
|
16
|
+
..._common.dataProviderData,
|
|
22
17
|
['me/dashboard']: {
|
|
23
18
|
unreadMessages: 0
|
|
24
19
|
}
|