@kenyaemr/esm-admin-app 5.4.2-pre.2203 → 5.4.2-pre.2230
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/.turbo/turbo-build.log +28 -184
- package/dist/130.js +1 -1
- package/dist/130.js.LICENSE.txt +45 -4
- package/dist/130.js.map +1 -1
- package/dist/140.js +1 -0
- package/dist/140.js.map +1 -0
- package/dist/144.js +2 -0
- package/dist/144.js.map +1 -0
- package/dist/216.js +2 -0
- package/dist/216.js.map +1 -0
- package/dist/300.js +1 -0
- package/dist/345.js +2 -0
- package/dist/345.js.map +1 -0
- package/dist/359.js +2 -0
- package/dist/359.js.LICENSE.txt +29 -0
- package/dist/359.js.map +1 -0
- package/dist/405.js +2 -0
- package/dist/405.js.LICENSE.txt +5 -0
- package/dist/405.js.map +1 -0
- package/dist/41.js +2 -0
- package/dist/41.js.map +1 -0
- package/dist/410.js +1 -0
- package/dist/410.js.map +1 -0
- package/dist/470.js +1 -0
- package/dist/470.js.map +1 -0
- package/dist/479.js +1 -0
- package/dist/479.js.map +1 -0
- package/dist/495.js +1 -0
- package/dist/{372.js.map → 495.js.map} +1 -1
- package/dist/512.js +1 -0
- package/dist/512.js.map +1 -0
- package/dist/537.js +1 -0
- package/dist/537.js.map +1 -0
- package/dist/876.js +1 -0
- package/dist/876.js.map +1 -0
- package/dist/89.js +1 -0
- package/dist/89.js.map +1 -0
- package/dist/913.js +2 -0
- package/dist/{591.js.map → 913.js.map} +1 -1
- package/dist/kenyaemr-esm-admin-app.js +1 -1
- package/dist/kenyaemr-esm-admin-app.js.buildmanifest.json +272 -104
- package/dist/kenyaemr-esm-admin-app.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +4 -1
- package/src/components/dashboard/dashboard.component.tsx +0 -2
- package/src/components/facility-setup/facility-info.component.tsx +0 -2
- package/src/components/modal/hwr-sync.modal.tsx +1 -0
- package/src/components/users/manage-users/manage-user-role-scope/user-role-scope-list/user-role-scope-list.component.tsx +11 -20
- package/src/components/users/manage-users/manage-user-role-scope/user-role-scope-workspace/user-role-scope-fields.component.tsx +4 -8
- package/src/components/users/manage-users/manage-user-role-scope/user-role-scope-workspace/user-role-scope.workspace.tsx +1 -1
- package/src/components/users/manage-users/user-list/user-list.component.tsx +3 -1
- package/src/components/users/manage-users/user-management.workspace.tsx +6 -14
- package/src/declarations.d.ts +0 -13
- package/src/user-management.resources.ts +5 -1
- package/translations/en.json +1 -0
- package/dist/2.js +0 -1
- package/dist/2.js.map +0 -1
- package/dist/204.js +0 -2
- package/dist/204.js.LICENSE.txt +0 -48
- package/dist/204.js.map +0 -1
- package/dist/316.js +0 -2
- package/dist/316.js.map +0 -1
- package/dist/347.js +0 -1
- package/dist/347.js.map +0 -1
- package/dist/372.js +0 -1
- package/dist/414.js +0 -2
- package/dist/414.js.map +0 -1
- package/dist/446.js +0 -2
- package/dist/446.js.map +0 -1
- package/dist/574.js +0 -1
- package/dist/589.js +0 -1
- package/dist/589.js.map +0 -1
- package/dist/591.js +0 -2
- package/dist/784.js +0 -2
- package/dist/784.js.map +0 -1
- package/dist/859.js +0 -1
- package/dist/859.js.map +0 -1
- /package/dist/{316.js.LICENSE.txt → 144.js.LICENSE.txt} +0 -0
- /package/dist/{446.js.LICENSE.txt → 216.js.LICENSE.txt} +0 -0
- /package/dist/{414.js.LICENSE.txt → 345.js.LICENSE.txt} +0 -0
- /package/dist/{784.js.LICENSE.txt → 41.js.LICENSE.txt} +0 -0
- /package/dist/{591.js.LICENSE.txt → 913.js.LICENSE.txt} +0 -0
package/dist/routes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemrCharts":"^1.6.7"},"extensions":[{"component":"adminLeftPanelLink","name":"admin-left-panel-link","slot":"admin-left-panel-slot"},{"component":"userManagementLeftPannelLink","name":"user-management-left-panel-link","slot":"admin-left-panel-slot"},{"component":"etlAdministrationLeftPannelLink","name":"etl-administration-left-panel-link","slot":"admin-left-panel-slot"},{"component":"facilitySetupLeftPanelLink","name":"facility-setup-left-panel-link","slot":"admin-left-panel-slot"}],"workspaces":[{"name":"manage-user-workspace","component":"manageUserWorkspace","title":"Manage User Workspace","type":"other-form","canMaximize":true,"width":"extra-wide"},{"name":"user-role-scope-workspace","component":"userRoleScopeWorkspace","title":"User Rple Scope Workspace","type":"other-form","canMaximize":true,"width":"extra-wide"}],"modals":[{"component":"operationConfirmationModal","name":"operation-confirmation-modal"},{"component":"hwrConfirmationModal","name":"hwr-confirmation-modal"},{"component":"hwrEmptyModal","name":"hwr-empty-modal"},{"component":"hwrSyncModal","name":"hwr-syncing-modal"}],"pages":[{"component":"root","route":"admin"}],"version":"5.4.2-pre.
|
|
1
|
+
{"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"kenyaemrCharts":"^1.6.7"},"extensions":[{"component":"adminLeftPanelLink","name":"admin-left-panel-link","slot":"admin-left-panel-slot"},{"component":"userManagementLeftPannelLink","name":"user-management-left-panel-link","slot":"admin-left-panel-slot"},{"component":"etlAdministrationLeftPannelLink","name":"etl-administration-left-panel-link","slot":"admin-left-panel-slot"},{"component":"facilitySetupLeftPanelLink","name":"facility-setup-left-panel-link","slot":"admin-left-panel-slot"}],"workspaces":[{"name":"manage-user-workspace","component":"manageUserWorkspace","title":"Manage User Workspace","type":"other-form","canMaximize":true,"width":"extra-wide"},{"name":"user-role-scope-workspace","component":"userRoleScopeWorkspace","title":"User Rple Scope Workspace","type":"other-form","canMaximize":true,"width":"extra-wide"}],"modals":[{"component":"operationConfirmationModal","name":"operation-confirmation-modal"},{"component":"hwrConfirmationModal","name":"hwr-confirmation-modal"},{"component":"hwrEmptyModal","name":"hwr-empty-modal"},{"component":"hwrSyncModal","name":"hwr-syncing-modal"}],"pages":[{"component":"root","route":"admin"}],"version":"5.4.2-pre.2230"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kenyaemr/esm-admin-app",
|
|
3
|
-
"version": "5.4.2-pre.
|
|
3
|
+
"version": "5.4.2-pre.2230",
|
|
4
4
|
"description": "Facilitates the management of ETL tables",
|
|
5
5
|
"browser": "dist/kenyaemr-esm-admin-app.js",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -48,5 +48,8 @@
|
|
|
48
48
|
"react-router-dom": "6.x",
|
|
49
49
|
"swr": "2.x"
|
|
50
50
|
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"webpack": "^5.99.9"
|
|
53
|
+
},
|
|
51
54
|
"stableVersion": "5.4.1"
|
|
52
55
|
}
|
|
@@ -86,9 +86,7 @@ const Dashboard: React.FC = () => {
|
|
|
86
86
|
description={t('etlsOperationsLoading', 'Please wait {{currentOperation}} is in progress...', {
|
|
87
87
|
currentOperation,
|
|
88
88
|
})}
|
|
89
|
-
size="md"
|
|
90
89
|
className={styles.loading}
|
|
91
|
-
withOverlay
|
|
92
90
|
/>
|
|
93
91
|
) : (
|
|
94
92
|
<ComboButton tooltipAlignment="left" label={t('etlOperation', 'ETL operations')} size="md">
|
|
@@ -86,9 +86,7 @@ const FacilityInfo: React.FC = () => {
|
|
|
86
86
|
{isShaFacilityLoading || isLocalFacilityLoading ? (
|
|
87
87
|
<InlineLoading
|
|
88
88
|
description={t('synchronizingFacilityData', 'Please wait, Synchronizing Info.')}
|
|
89
|
-
size="md"
|
|
90
89
|
className={styles.loading}
|
|
91
|
-
withOverlay
|
|
92
90
|
/>
|
|
93
91
|
) : (
|
|
94
92
|
<Button kind="primary" onClick={synchronizeFacilityData}>
|
|
@@ -168,6 +168,7 @@ const HWRSyncModal: React.FC<HWRSyncModalProps> = ({ close, provider }) => {
|
|
|
168
168
|
<Column className={styles.identifierTypeColumn}>
|
|
169
169
|
<span className={styles.identifierTypeHeader}>{t('identifierNumber', 'Identifier number*')}</span>
|
|
170
170
|
<Search
|
|
171
|
+
labelText={t('enterIdentifierNumber', 'Enter identifier number')}
|
|
171
172
|
className={styles.formSearch}
|
|
172
173
|
value={searchHWR.identifier}
|
|
173
174
|
placeholder={t('enterIdentifierNumber', 'Enter identifier number')}
|
|
@@ -11,20 +11,13 @@ import {
|
|
|
11
11
|
TableHead,
|
|
12
12
|
TableHeader,
|
|
13
13
|
TableRow,
|
|
14
|
-
Button,
|
|
15
14
|
OverflowMenu,
|
|
16
15
|
OverflowMenuItem,
|
|
16
|
+
InlineLoading,
|
|
17
17
|
} from '@carbon/react';
|
|
18
|
-
import {
|
|
18
|
+
import { ArrowDownLeft, ArrowLeft } from '@carbon/react/icons';
|
|
19
19
|
import styles from '../../manage-user.scss';
|
|
20
|
-
import {
|
|
21
|
-
isDesktop,
|
|
22
|
-
launchWorkspace,
|
|
23
|
-
restBaseUrl,
|
|
24
|
-
showModal,
|
|
25
|
-
showSnackbar,
|
|
26
|
-
WorkspaceContainer,
|
|
27
|
-
} from '@openmrs/esm-framework';
|
|
20
|
+
import { restBaseUrl, showModal, showSnackbar } from '@openmrs/esm-framework';
|
|
28
21
|
import { deleteUserRoleScopes, handleMutation, useUserRoleScopes } from '../../../../../user-management.resources';
|
|
29
22
|
import { User, UserRoleScope } from '../../../../../types';
|
|
30
23
|
|
|
@@ -34,17 +27,13 @@ interface StockUserRoleScopesListProps {
|
|
|
34
27
|
onAddUserRoleScope?: (isAddRoleScope: boolean) => void;
|
|
35
28
|
}
|
|
36
29
|
|
|
37
|
-
const StockUserRoleScopesList: React.FC<StockUserRoleScopesListProps> = ({
|
|
38
|
-
user,
|
|
39
|
-
onEditUserRoleScope,
|
|
40
|
-
onAddUserRoleScope,
|
|
41
|
-
}) => {
|
|
30
|
+
const StockUserRoleScopesList: React.FC<StockUserRoleScopesListProps> = ({ user, onEditUserRoleScope }) => {
|
|
42
31
|
const { t } = useTranslation();
|
|
43
32
|
|
|
44
33
|
// Fetch user role scopes
|
|
45
|
-
const { items: userRoleScopes, loadingRoleScope } = useUserRoleScopes();
|
|
34
|
+
const { items: userRoleScopes, loadingRoleScope, isValidating } = useUserRoleScopes();
|
|
46
35
|
const [deletingUserScope, setDeletingUserScope] = useState(false);
|
|
47
|
-
const size = '
|
|
36
|
+
const size = 'md';
|
|
48
37
|
|
|
49
38
|
const tableHeaders = useMemo(
|
|
50
39
|
() => [
|
|
@@ -134,14 +123,16 @@ const StockUserRoleScopesList: React.FC<StockUserRoleScopesListProps> = ({
|
|
|
134
123
|
}, [userRoleScopes, t, user.uuid, showDeleteUserRoleScopeModal, onEditUserRoleScope]);
|
|
135
124
|
|
|
136
125
|
if (loadingRoleScope) {
|
|
137
|
-
return <DataTableSkeleton
|
|
126
|
+
return <DataTableSkeleton />;
|
|
138
127
|
}
|
|
139
128
|
|
|
140
129
|
return (
|
|
141
130
|
<div>
|
|
142
|
-
<CardHeader title="Manage User Role Scope"
|
|
131
|
+
<CardHeader title="Manage User Role Scope">
|
|
132
|
+
{isValidating && <InlineLoading description={t('refreshingUserScopes', 'Refreshing user scopes...')} />}
|
|
133
|
+
</CardHeader>
|
|
143
134
|
<div className={styles.dataTable}>
|
|
144
|
-
<DataTable
|
|
135
|
+
<DataTable useZebraStyles size={size} rows={tableRows} headers={tableHeaders}>
|
|
145
136
|
{({ rows, headers, getHeaderProps, getRowProps, getTableProps }) => (
|
|
146
137
|
<TableContainer>
|
|
147
138
|
<Table {...getTableProps()} aria-label="user role scope table">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
import { Control, Controller, useFormContext
|
|
2
|
+
import { Control, Controller, useFormContext } from 'react-hook-form';
|
|
3
3
|
import { useTranslation } from 'react-i18next';
|
|
4
4
|
import styles from './user-role-fields.scss';
|
|
5
5
|
import { formatDatetime, ResponsiveWrapper } from '@openmrs/esm-framework';
|
|
@@ -82,7 +82,7 @@ const UserRoleScopeFormFields: React.FC<UserRoleScopeFields> = ({
|
|
|
82
82
|
onChange={({ selectedItem }) => {
|
|
83
83
|
field.onChange(selectedItem ? selectedItem.display.trim() : '');
|
|
84
84
|
}}
|
|
85
|
-
disabled={userRoleScopeInitialValues}
|
|
85
|
+
disabled={!!userRoleScopeInitialValues}
|
|
86
86
|
/>
|
|
87
87
|
)}
|
|
88
88
|
/>
|
|
@@ -156,17 +156,13 @@ const UserRoleScopeFormFields: React.FC<UserRoleScopeFields> = ({
|
|
|
156
156
|
value={[value?.activeFrom, value?.activeTo]}>
|
|
157
157
|
<DatePickerInput
|
|
158
158
|
id="date-picker-input-id-start"
|
|
159
|
-
name="activeFrom"
|
|
160
159
|
placeholder={DATE_PICKER_FORMAT}
|
|
161
160
|
labelText={t('activeFrom', 'Active From')}
|
|
162
|
-
value={value?.activeFrom}
|
|
163
161
|
/>
|
|
164
162
|
<DatePickerInput
|
|
165
163
|
id="date-picker-input-id-finish"
|
|
166
|
-
name="activeTo"
|
|
167
164
|
placeholder={DATE_PICKER_FORMAT}
|
|
168
165
|
labelText={t('activeTo', 'Active To')}
|
|
169
|
-
value={value?.activeTo}
|
|
170
166
|
/>
|
|
171
167
|
</DatePicker>
|
|
172
168
|
);
|
|
@@ -178,7 +174,7 @@ const UserRoleScopeFormFields: React.FC<UserRoleScopeFields> = ({
|
|
|
178
174
|
</Column>
|
|
179
175
|
</ResponsiveWrapper>
|
|
180
176
|
<ResponsiveWrapper>
|
|
181
|
-
<Column
|
|
177
|
+
<Column xsm={8} md={12} lg={12} className={styles.checkBoxColumn}>
|
|
182
178
|
<CheckboxGroup legendText={t('stockOperation', 'Stock Operation')} className={styles.checkboxGroupGrid}>
|
|
183
179
|
{loadingStock ? (
|
|
184
180
|
<InlineLoading status="active" iconDescription="Loading" description="Loading data..." />
|
|
@@ -234,7 +230,7 @@ const UserRoleScopeFormFields: React.FC<UserRoleScopeFields> = ({
|
|
|
234
230
|
</Column>
|
|
235
231
|
</ResponsiveWrapper>
|
|
236
232
|
<ResponsiveWrapper>
|
|
237
|
-
<Column
|
|
233
|
+
<Column xsm={8} md={12} lg={12} className={styles.checkBoxColumn}>
|
|
238
234
|
<CheckboxGroup legendText={t('stockLocation', 'Stock Location')} className={styles.checkboxGroupGrid}>
|
|
239
235
|
{loadingStock ? (
|
|
240
236
|
<InlineLoading status="active" iconDescription="Loading" description="Loading data..." />
|
|
@@ -289,7 +289,7 @@ const UserRoleScopeWorkspace: React.FC<UserRoleScopeWorkspaceProps> = ({
|
|
|
289
289
|
</Stack>
|
|
290
290
|
</div>
|
|
291
291
|
<ButtonSet className={classNames({ [styles.tablet]: isTablet, [styles.desktop]: !isTablet })}>
|
|
292
|
-
<Button style={{ maxWidth: '50%' }} kind="secondary" onClick={closeWorkspace}>
|
|
292
|
+
<Button style={{ maxWidth: '50%' }} kind="secondary" onClick={() => closeWorkspace()}>
|
|
293
293
|
{t('cancel', 'Cancel')}
|
|
294
294
|
</Button>
|
|
295
295
|
<Button
|
|
@@ -299,6 +299,8 @@ const UserList: React.FC = () => {
|
|
|
299
299
|
<div className={styles.buttonContainer}>
|
|
300
300
|
<p className={styles.filterByText}>{t('filterBy', 'Filter by:')}</p>
|
|
301
301
|
<Dropdown
|
|
302
|
+
hideLabel={true}
|
|
303
|
+
titleText={t('filter', 'Filter')}
|
|
302
304
|
id="filter-dropdown"
|
|
303
305
|
label={t('filter', 'Filter')}
|
|
304
306
|
className={styles.dropDownFilter}
|
|
@@ -310,7 +312,7 @@ const UserList: React.FC = () => {
|
|
|
310
312
|
{ id: 'unlicensed', label: t('Unlicensed', 'Unlicensed') },
|
|
311
313
|
]}
|
|
312
314
|
itemToString={(item) => (item ? item.label : '')}
|
|
313
|
-
onChange={({ selectedItem }) => setSelectedFilter(selectedItem.id)}
|
|
315
|
+
onChange={({ selectedItem }) => setSelectedFilter(selectedItem.id as FilterType)}
|
|
314
316
|
selectedItem={{ id: selectedFilter, label: t(selectedFilter, selectedFilter) }}
|
|
315
317
|
size={isDesktop(layout) ? 'lg' : 'sm'}
|
|
316
318
|
/>
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
restBaseUrl,
|
|
7
7
|
showSnackbar,
|
|
8
8
|
useLayoutType,
|
|
9
|
-
formatDatetime,
|
|
10
9
|
useConfig,
|
|
11
10
|
showModal,
|
|
12
11
|
parseDate,
|
|
@@ -30,7 +29,6 @@ import {
|
|
|
30
29
|
ComboBox,
|
|
31
30
|
DatePickerInput,
|
|
32
31
|
DatePicker,
|
|
33
|
-
Tile,
|
|
34
32
|
Search,
|
|
35
33
|
Row,
|
|
36
34
|
} from '@carbon/react';
|
|
@@ -41,15 +39,12 @@ import {
|
|
|
41
39
|
createUser,
|
|
42
40
|
handleMutation,
|
|
43
41
|
useRoles,
|
|
44
|
-
usePersonAttribute,
|
|
45
42
|
useProvider,
|
|
46
43
|
useProviderAttributeType,
|
|
47
|
-
useLocation,
|
|
48
44
|
createProvider,
|
|
49
45
|
} from '../../../user-management.resources';
|
|
50
46
|
import UserManagementFormSchema from '../userManagementFormSchema';
|
|
51
|
-
import {
|
|
52
|
-
import { ChevronSortUp, Query, ChevronRight } from '@carbon/react/icons';
|
|
47
|
+
import { ChevronLeft, Query, ChevronRight } from '@carbon/react/icons';
|
|
53
48
|
import { useSystemUserRoleConfigSetting } from '../../hook/useSystemRoleSetting';
|
|
54
49
|
import { type PractitionerResponse, Provider, User } from '../../../types';
|
|
55
50
|
import { searchHealthCareWork } from '../../hook/searchHealthCareWork';
|
|
@@ -550,9 +545,9 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
550
545
|
const getSubmitButtonText = () =>
|
|
551
546
|
t(isSaveAndClose() ? 'saveAndClose' : 'next', isSaveAndClose() ? 'Save & close' : 'Next');
|
|
552
547
|
|
|
553
|
-
const getSubmitButtonType = () => (isSaveAndClose() ? 'submit' : '');
|
|
548
|
+
const getSubmitButtonType = () => (isSaveAndClose() ? 'submit' : 'button');
|
|
554
549
|
|
|
555
|
-
const getSubmitButtonIcon = () => (isSaveAndClose() ?
|
|
550
|
+
const getSubmitButtonIcon = () => (isSaveAndClose() ? ChevronLeft : ChevronRight);
|
|
556
551
|
|
|
557
552
|
const handleBackClick = () => {
|
|
558
553
|
if (hasDemographicInfo) {
|
|
@@ -577,7 +572,7 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
577
572
|
<div className={styles.leftLayout}>
|
|
578
573
|
<ProgressIndicator
|
|
579
574
|
currentIndex={currentIndex}
|
|
580
|
-
|
|
575
|
+
spaceEqually={true}
|
|
581
576
|
vertical={true}
|
|
582
577
|
className={styles.progressIndicator}
|
|
583
578
|
onChange={(newIndex) => {
|
|
@@ -603,7 +598,6 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
603
598
|
{searchHWR.isHWRLoading ? (
|
|
604
599
|
<InlineLoading
|
|
605
600
|
className={styles.formLoading}
|
|
606
|
-
active={searchHWR.isHWRLoading}
|
|
607
601
|
description={t('pullDetailsfromHWR', 'Pulling data from Health worker registry...')}
|
|
608
602
|
/>
|
|
609
603
|
) : (
|
|
@@ -628,6 +622,7 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
628
622
|
</span>
|
|
629
623
|
<Row className={styles.formRow}>
|
|
630
624
|
<Search
|
|
625
|
+
labelText={t('enterIdentifierNumber', 'Enter identifier number')}
|
|
631
626
|
className={styles.formSearch}
|
|
632
627
|
defaultValue={searchHWR.identifier}
|
|
633
628
|
placeholder={t('enterIdentifierNumber', 'Enter identifier number')}
|
|
@@ -936,7 +931,6 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
936
931
|
className={styles.multilineCheckboxLabel}>
|
|
937
932
|
<Checkbox
|
|
938
933
|
className={styles.checkboxLabelSingleLine}
|
|
939
|
-
{...field}
|
|
940
934
|
id="isEditProvider"
|
|
941
935
|
labelText={t('EditProviderDetails', 'Edit provider details?')}
|
|
942
936
|
checked={field.value || false}
|
|
@@ -958,7 +952,6 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
958
952
|
className={styles.multilineCheckboxLabel}>
|
|
959
953
|
<Checkbox
|
|
960
954
|
className={styles.checkboxLabelSingleLine}
|
|
961
|
-
{...field}
|
|
962
955
|
id="providerIdentifiersa"
|
|
963
956
|
labelText={t('providerIdentifiers', 'Create a Provider account for this user')}
|
|
964
957
|
checked={field.value || false}
|
|
@@ -1051,13 +1044,12 @@ const ManageUserWorkspace: React.FC<ManageUserWorkspaceProps> = ({
|
|
|
1051
1044
|
className={styles.checkboxGroupGrid}>
|
|
1052
1045
|
<Checkbox
|
|
1053
1046
|
className={styles.multilineCheckboxLabel}
|
|
1054
|
-
{...field}
|
|
1055
1047
|
id="forcePasswordChange"
|
|
1056
1048
|
labelText={t(
|
|
1057
1049
|
'forcePasswordChangeHelper',
|
|
1058
1050
|
'Optionally require this user to change their password on next login',
|
|
1059
1051
|
)}
|
|
1060
|
-
checked={field.value || false}
|
|
1052
|
+
checked={!!field.value || false}
|
|
1061
1053
|
onChange={(e) => field.onChange(e.target.checked)}
|
|
1062
1054
|
/>
|
|
1063
1055
|
</CheckboxGroup>
|
package/src/declarations.d.ts
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
1
|
declare module '*.css';
|
|
2
2
|
declare module '*.scss';
|
|
3
|
-
declare module '@carbon/react';
|
|
4
|
-
declare module 'react-aria' {
|
|
5
|
-
export const I18nProvider: (...args: any) => JSX.Element;
|
|
6
|
-
export { DateValue } from '@react-types/datepicker';
|
|
7
|
-
export const mergeProps: any;
|
|
8
|
-
export const useLocale: any;
|
|
9
|
-
export const useDateField: any;
|
|
10
|
-
export const useDatePicker: any;
|
|
11
|
-
export const useDateSegment: any;
|
|
12
|
-
export const useFocusRing: any;
|
|
13
|
-
export const useHover: any;
|
|
14
|
-
export const useObjectRef: any;
|
|
15
|
-
}
|
|
@@ -183,11 +183,15 @@ export function useStockTagLocations() {
|
|
|
183
183
|
|
|
184
184
|
export const useUserRoleScopes = () => {
|
|
185
185
|
const apiUrl = `${restBaseUrl}/stockmanagement/userrolescope?v=full`;
|
|
186
|
-
const { data, error, isLoading } = useSWR<{ data: PageableResult<UserRoleScope> }, Error>(
|
|
186
|
+
const { data, error, isLoading, isValidating } = useSWR<{ data: PageableResult<UserRoleScope> }, Error>(
|
|
187
|
+
apiUrl,
|
|
188
|
+
openmrsFetch,
|
|
189
|
+
);
|
|
187
190
|
return {
|
|
188
191
|
items: data?.data,
|
|
189
192
|
loadingRoleScope: isLoading,
|
|
190
193
|
userRoleScopeError: error,
|
|
194
|
+
isValidating,
|
|
191
195
|
};
|
|
192
196
|
};
|
|
193
197
|
|
package/translations/en.json
CHANGED
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"recreateTables": "Recreate tables",
|
|
74
74
|
"refreshDwapi": "Refresh DWAPI tables",
|
|
75
75
|
"refreshed": "refreshed",
|
|
76
|
+
"refreshingUserScopes": "Refreshing user scopes...",
|
|
76
77
|
"refreshTables": "Refresh tables",
|
|
77
78
|
"registrationNumber": "Registration number",
|
|
78
79
|
"remove": "Remove",
|
package/dist/2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_kenyaemr_esm_admin_app=globalThis.webpackChunk_kenyaemr_esm_admin_app||[]).push([[2,372],{3372:(a,e,n)=>{n.r(e),n.d(e,{default:()=>s,immutable:()=>i});var l=n(446),t=n(1709);const i=a=>(e,n,l)=>(l.revalidateOnFocus=!1,l.revalidateIfStale=!1,l.revalidateOnReconnect=!1,a(e,n,l)),s=(0,t.xD)(l.ZP,i)}}]);
|
package/dist/2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"2.js","mappings":"oNAGA,MAAMA,EAAaC,GAAa,CAACC,EAAKC,EAASC,KAEvCA,EAAOC,mBAAoB,EAC3BD,EAAOE,mBAAoB,EAC3BF,EAAOG,uBAAwB,EACxBN,EAAWC,EAAKC,EAASC,IAElCI,GAAkB,QAAe,KAAQR,E","sources":["webpack://@kenyaemr/esm-admin-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["immutable","useSWRNext","key","fetcher","config","revalidateOnFocus","revalidateIfStale","revalidateOnReconnect","useSWRImmutable"],"sourceRoot":""}
|