@openmrs/esm-stock-management-app 1.0.1-pre.790 → 1.0.1-pre.794
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/dist/165.js +2 -0
- package/dist/{493.js.LICENSE.txt → 165.js.LICENSE.txt} +25 -1
- package/dist/165.js.map +1 -0
- package/dist/172.js +1 -1
- package/dist/172.js.map +1 -1
- package/dist/20.js +1 -1
- package/dist/290.js +1 -1
- package/dist/290.js.map +1 -1
- package/dist/600.js +1 -0
- package/dist/{942.js.map → 600.js.map} +1 -1
- package/dist/606.js +1 -1
- package/dist/627.js +1 -1
- package/dist/629.js +1 -1
- package/dist/629.js.map +1 -1
- package/dist/707.js +1 -1
- package/dist/707.js.map +1 -1
- package/dist/793.js +1 -1
- package/dist/793.js.LICENSE.txt +4 -0
- package/dist/793.js.map +1 -1
- package/dist/880.js +1 -1
- package/dist/880.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.LICENSE.txt +25 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/openmrs-esm-stock-management-app.js.buildmanifest.json +70 -97
- package/dist/openmrs-esm-stock-management-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +6 -6
- package/src/core/components/carbon/controlled-radio-button-group/controlled-radio-button-group.component.tsx +3 -3
- package/src/core/components/side-nav/side-nav.scss +1 -1
- package/src/core/components/table/table.component.tsx +3 -1
- package/src/setup-tests.ts +5 -1
- package/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx +5 -5
- package/src/stock-items/add-stock-item/stock-item-rules/add-stock-rules.scss +1 -1
- package/src/stock-items/add-stock-item/stock-item-rules/stock-item-rules.scss +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/stock-operation-reason-selector.component.tsx +1 -1
- package/src/stock-operations/stock-operations-forms/input-components/unique-batch-no-entry-input.component.tsx +7 -5
- package/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx +2 -2
- package/src/stock-operations/stock-operations-forms/step1.test.tsx +14 -13
- package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx +3 -3
- package/src/stock-operations/stock-operations-forms/steps/received-items.component.tsx +8 -3
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.component.tsx +10 -5
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.scc.scss +1 -1
- package/src/stock-operations/stock-operations-forms/steps/stock-operation-submission-form-step.component.tsx +8 -3
- package/src/stock-operations/stock-operations-forms/stock-operation-form.scss +1 -1
- package/src/stock-operations/stock-operations-forms/stock-operation-stepper/stock-operation-stepper.component.tsx +1 -0
- package/src/stock-reports/generate-report/create-stock-report.scss +1 -1
- package/src/stock-sources/stock-sources.scss +1 -1
- package/src/stock-user-role-scopes/add-stock-user-scope/add-stock-user-role-scope.scss +1 -1
- package/tsconfig.json +5 -15
- package/dist/46.js +0 -1
- package/dist/46.js.map +0 -1
- package/dist/493.js +0 -2
- package/dist/493.js.map +0 -1
- package/dist/942.js +0 -1
@@ -39,7 +39,7 @@ const StockOperationReasonSelector = () => {
|
|
39
39
|
placeholder={t('chooseAReason', 'Choose a reason')}
|
40
40
|
name={'reasonUuid'}
|
41
41
|
id={'reasonUuid'}
|
42
|
-
size=
|
42
|
+
size="lg"
|
43
43
|
items={reasons}
|
44
44
|
initialSelectedItem={reasons?.find((p) => p.uuid === field.value)}
|
45
45
|
selectedItem={reasons.find((p) => p.uuid === field.value)}
|
@@ -34,22 +34,24 @@ const UniqueBatchNoEntryInput: React.FC<UniqueBatchNoEntryInputProps> = ({
|
|
34
34
|
|
35
35
|
useEffect(() => {
|
36
36
|
if (batchNoAlreadyUsed) {
|
37
|
-
setError('Batch number already used');
|
37
|
+
setError(t('batchNumberAlreadyUsed', 'Batch number already used'));
|
38
38
|
} else {
|
39
39
|
setError(undefined);
|
40
40
|
onValueChange?.(value);
|
41
41
|
}
|
42
|
-
}, [value, onValueChange, batchNoAlreadyUsed, setError]);
|
43
|
-
|
44
|
-
if (isLoading) return <TextInputSkeleton />;
|
42
|
+
}, [value, onValueChange, batchNoAlreadyUsed, setError, t]);
|
45
43
|
|
44
|
+
if (isLoading) {
|
45
|
+
return <TextInputSkeleton />;
|
46
|
+
}
|
46
47
|
return (
|
47
48
|
<TextInput
|
49
|
+
id="batchNumber"
|
48
50
|
maxLength={50}
|
49
51
|
onChange={(e: ChangeEvent<HTMLInputElement>) => setValue(e.target.value)}
|
50
52
|
value={value}
|
51
53
|
invalidText={_error ?? error}
|
52
|
-
invalid={_error
|
54
|
+
invalid={Boolean(_error) || Boolean(error)}
|
53
55
|
placeholder={t('batchNumber', 'Batch Number')}
|
54
56
|
labelText={t('batchNumber', 'Batch Number')}
|
55
57
|
/>
|
package/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx
CHANGED
@@ -56,7 +56,7 @@ const UsersSelector = () => {
|
|
56
56
|
titleText={t('responsiblePerson', 'Responsible Person')}
|
57
57
|
name={'responsiblePersonUuid'}
|
58
58
|
id={'responsiblePersonUuid'}
|
59
|
-
size=
|
59
|
+
size="lg"
|
60
60
|
items={[...(userList || []), otherUser]}
|
61
61
|
onChange={(data: { selectedItem: User }) => {
|
62
62
|
field.onChange(data.selectedItem?.uuid);
|
@@ -93,7 +93,7 @@ const UsersSelector = () => {
|
|
93
93
|
disabled={false}
|
94
94
|
id="responsiblePersonOther"
|
95
95
|
name="responsiblePersonOther"
|
96
|
-
size=
|
96
|
+
size="lg"
|
97
97
|
labelText={t('responsiblePerson', 'Responsible Person')}
|
98
98
|
placeholder={t('pleaseSpecify', 'Please Specify')}
|
99
99
|
invalid={error?.message}
|
@@ -184,8 +184,9 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
184
184
|
element.getAttribute('placeholder') === 'chooseASource' && element.getAttribute('name') === 'sourceUuid',
|
185
185
|
});
|
186
186
|
expect(sourceInput).toBeInTheDocument();
|
187
|
-
expect(screen.
|
187
|
+
expect(screen.getByRole('combobox', { name: /from/i })).toBeInTheDocument();
|
188
188
|
});
|
189
|
+
|
189
190
|
it("should render combobox with 'to' name and defaulted to 'main store' location in receipt operation", async () => {
|
190
191
|
(useParties as jest.Mock).mockReturnValue({
|
191
192
|
destinationParties: [],
|
@@ -204,7 +205,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
204
205
|
promptBeforeClosing={jest.fn()}
|
205
206
|
/>,
|
206
207
|
);
|
207
|
-
expect(screen.
|
208
|
+
expect(screen.getByRole('combobox', { name: /to/i })).toBeInTheDocument();
|
208
209
|
});
|
209
210
|
|
210
211
|
it("should render combobox with 'destinationUuid' name and 'chooseADestination' placeholder", async () => {
|
@@ -232,7 +233,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
232
233
|
element.getAttribute('name') === 'destinationUuid',
|
233
234
|
}),
|
234
235
|
).toBeInTheDocument();
|
235
|
-
expect(screen.
|
236
|
+
expect(screen.getByRole('combobox', { name: /to/i })).toBeInTheDocument();
|
236
237
|
});
|
237
238
|
it("should render combobox with 'sourceUuid' name and 'chooseALocation' placeholder for disposal opertaion", async () => {
|
238
239
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -258,7 +259,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
258
259
|
element.getAttribute('placeholder') === 'chooseALocation' && element.getAttribute('name') === 'sourceUuid',
|
259
260
|
}),
|
260
261
|
).toBeInTheDocument();
|
261
|
-
expect(screen.
|
262
|
+
expect(screen.getByRole('combobox', { name: /location/i })).toBeInTheDocument();
|
262
263
|
});
|
263
264
|
|
264
265
|
it('should not render reason input field for receipt operation', async () => {
|
@@ -279,7 +280,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
279
280
|
promptBeforeClosing={jest.fn()}
|
280
281
|
/>,
|
281
282
|
);
|
282
|
-
expect(screen.
|
283
|
+
expect(screen.queryByRole('combobox', { name: /reason/i })).not.toBeInTheDocument();
|
283
284
|
});
|
284
285
|
it('should render reason input field for adjustment operation', async () => {
|
285
286
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -299,7 +300,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
299
300
|
promptBeforeClosing={jest.fn()}
|
300
301
|
/>,
|
301
302
|
);
|
302
|
-
expect(screen.
|
303
|
+
expect(screen.getByRole('combobox', { name: /reason/i })).toBeInTheDocument();
|
303
304
|
});
|
304
305
|
it('should not render reason input field for opening stock operation', async () => {
|
305
306
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -319,7 +320,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
319
320
|
promptBeforeClosing={jest.fn()}
|
320
321
|
/>,
|
321
322
|
);
|
322
|
-
expect(screen.
|
323
|
+
expect(screen.queryByRole('combobox', { name: /reason/i })).not.toBeInTheDocument();
|
323
324
|
});
|
324
325
|
it('should not render reason input field for requisition operation', async () => {
|
325
326
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -339,7 +340,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
339
340
|
promptBeforeClosing={jest.fn()}
|
340
341
|
/>,
|
341
342
|
);
|
342
|
-
expect(screen.
|
343
|
+
expect(screen.queryByRole('combobox', { name: /reason/i })).not.toBeInTheDocument();
|
343
344
|
});
|
344
345
|
it('should not render reason input field for return operation', async () => {
|
345
346
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -359,7 +360,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
359
360
|
promptBeforeClosing={jest.fn()}
|
360
361
|
/>,
|
361
362
|
);
|
362
|
-
expect(screen.
|
363
|
+
expect(screen.queryByRole('combobox', { name: /reason/i })).not.toBeInTheDocument();
|
363
364
|
});
|
364
365
|
it('should not render reason input field for issue operation', async () => {
|
365
366
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -379,7 +380,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
379
380
|
promptBeforeClosing={jest.fn()}
|
380
381
|
/>,
|
381
382
|
);
|
382
|
-
expect(screen.
|
383
|
+
expect(screen.queryByRole('combobox', { name: /reason/i })).not.toBeInTheDocument();
|
383
384
|
});
|
384
385
|
it('should not render reason input field for tranfer out operation', async () => {
|
385
386
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -399,7 +400,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
399
400
|
promptBeforeClosing={jest.fn()}
|
400
401
|
/>,
|
401
402
|
);
|
402
|
-
expect(screen.
|
403
|
+
expect(screen.queryByRole('combobox', { name: /reason/i })).not.toBeInTheDocument();
|
403
404
|
});
|
404
405
|
it('should render reason input field for disposal operation', async () => {
|
405
406
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -419,7 +420,7 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
419
420
|
promptBeforeClosing={jest.fn()}
|
420
421
|
/>,
|
421
422
|
);
|
422
|
-
expect(screen.
|
423
|
+
expect(screen.getByRole('combobox', { name: /reason/i })).toBeInTheDocument();
|
423
424
|
});
|
424
425
|
it('should render reason input field for stock take operation', async () => {
|
425
426
|
(useParties as jest.Mock).mockReturnValue({
|
@@ -439,6 +440,6 @@ describe('Stock Operation step 1 (baseoperation details)', () => {
|
|
439
440
|
promptBeforeClosing={jest.fn()}
|
440
441
|
/>,
|
441
442
|
);
|
442
|
-
expect(screen.
|
443
|
+
expect(screen.getByRole('combobox', { name: /reason/i })).toBeInTheDocument();
|
443
444
|
});
|
444
445
|
});
|
package/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx
CHANGED
@@ -111,7 +111,7 @@ const BaseOperationDetailsFormStep: FC<BaseOperationDetailsFormStepProps> = ({
|
|
111
111
|
labelText={t('operationDate', 'Operation Date')}
|
112
112
|
invalid={error?.message}
|
113
113
|
invalidText={error?.message}
|
114
|
-
size="
|
114
|
+
size="lg"
|
115
115
|
/>
|
116
116
|
</DatePicker>
|
117
117
|
)}
|
@@ -141,7 +141,7 @@ const BaseOperationDetailsFormStep: FC<BaseOperationDetailsFormStepProps> = ({
|
|
141
141
|
readOnly={field.disabled}
|
142
142
|
name={'sourceUuid'}
|
143
143
|
id={'sourceUuid'}
|
144
|
-
size=
|
144
|
+
size="lg"
|
145
145
|
items={sourceParties}
|
146
146
|
onChange={(data: { selectedItem: Party }) => {
|
147
147
|
field.onChange(data.selectedItem?.uuid);
|
@@ -179,7 +179,7 @@ const BaseOperationDetailsFormStep: FC<BaseOperationDetailsFormStepProps> = ({
|
|
179
179
|
}
|
180
180
|
name={'destinationUuid'}
|
181
181
|
id={'destinationUuid'}
|
182
|
-
size=
|
182
|
+
size="lg"
|
183
183
|
items={destinationParties}
|
184
184
|
onChange={(data: { selectedItem: Party }) => {
|
185
185
|
field.onChange(data.selectedItem?.uuid);
|
@@ -98,9 +98,14 @@ const ReceivedItems: React.FC<ReceivedItemsProps> = ({ stockOperation, onPreviou
|
|
98
98
|
</DataTable>
|
99
99
|
<div className={styles.btnSet}>
|
100
100
|
{typeof onPrevious === 'function' && (
|
101
|
-
<Button
|
102
|
-
|
103
|
-
|
101
|
+
<Button
|
102
|
+
data-testid="previous-btn"
|
103
|
+
hasIconOnly
|
104
|
+
iconDescription={t('previous', 'Previous')}
|
105
|
+
kind="secondary"
|
106
|
+
onClick={onPrevious}
|
107
|
+
renderIcon={ArrowLeft}
|
108
|
+
/>
|
104
109
|
)}
|
105
110
|
</div>
|
106
111
|
</div>
|
@@ -216,7 +216,7 @@ const StockOperationItemsFormStep: React.FC<StockOperationItemsFormStepProps> =
|
|
216
216
|
isSortable: false,
|
217
217
|
})}
|
218
218
|
style={header?.styles}
|
219
|
-
key={
|
219
|
+
key={header.key}
|
220
220
|
>
|
221
221
|
{header.header?.content ?? header?.header}
|
222
222
|
</TableHeader>
|
@@ -225,7 +225,7 @@ const StockOperationItemsFormStep: React.FC<StockOperationItemsFormStepProps> =
|
|
225
225
|
</TableHead>
|
226
226
|
<TableBody>
|
227
227
|
{rows.map((row) => (
|
228
|
-
<TableRow {...getRowProps({ row })}>
|
228
|
+
<TableRow {...getRowProps({ row })} key={row.id}>
|
229
229
|
{row.cells.map((cell) => (
|
230
230
|
<TableCell key={cell.id}>{cell.value}</TableCell>
|
231
231
|
))}
|
@@ -243,9 +243,14 @@ const StockOperationItemsFormStep: React.FC<StockOperationItemsFormStepProps> =
|
|
243
243
|
</Button>
|
244
244
|
)}
|
245
245
|
{typeof onPrevious === 'function' && (
|
246
|
-
<Button
|
247
|
-
|
248
|
-
|
246
|
+
<Button
|
247
|
+
kind="secondary"
|
248
|
+
onClick={onPrevious}
|
249
|
+
renderIcon={ArrowLeft}
|
250
|
+
hasIconOnly
|
251
|
+
data-testid="previous-btn"
|
252
|
+
iconDescription={t('previous', 'Previous')}
|
253
|
+
/>
|
249
254
|
)}
|
250
255
|
</div>
|
251
256
|
</div>
|
@@ -236,9 +236,14 @@ const StockOperationSubmissionFormStep: React.FC<StockOperationSubmissionFormSte
|
|
236
236
|
</Button>
|
237
237
|
)}
|
238
238
|
{typeof onPrevious === 'function' && (
|
239
|
-
<Button
|
240
|
-
|
241
|
-
|
239
|
+
<Button
|
240
|
+
kind="tertiary"
|
241
|
+
onClick={onPrevious}
|
242
|
+
renderIcon={ArrowLeft}
|
243
|
+
hasIconOnly
|
244
|
+
data-testid="previous-btn"
|
245
|
+
iconDescription={t('previous', 'Previous')}
|
246
|
+
/>
|
242
247
|
)}
|
243
248
|
</div>
|
244
249
|
</Stack>
|
package/tsconfig.json
CHANGED
@@ -1,24 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"esModuleInterop": true,
|
4
|
-
"module": "esnext",
|
5
3
|
"allowSyntheticDefaultImports": true,
|
4
|
+
"esModuleInterop": true,
|
6
5
|
"jsx": "react",
|
7
|
-
"
|
6
|
+
"lib": ["dom", "scripthost", "es2020", "es2021", "es2022"],
|
7
|
+
"module": "esnext",
|
8
8
|
"moduleResolution": "node",
|
9
|
-
"lib": [
|
10
|
-
"dom",
|
11
|
-
"es5",
|
12
|
-
"scripthost",
|
13
|
-
"es2015",
|
14
|
-
"es2015.promise",
|
15
|
-
"es2016.array.include",
|
16
|
-
"es2018",
|
17
|
-
"es2020",
|
18
|
-
"es2021"
|
19
|
-
],
|
20
|
-
"resolveJsonModule": true,
|
21
9
|
"noEmit": true,
|
10
|
+
"resolveJsonModule": true,
|
11
|
+
"skipLibCheck": true,
|
22
12
|
"target": "esnext"
|
23
13
|
}
|
24
14
|
}
|
package/dist/46.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_stock_management_app=globalThis.webpackChunk_openmrs_esm_stock_management_app||[]).push([[46],{46:(e,t,n)=>{n.r(t),n.d(t,{INFINITE_PREFIX:()=>B,IS_REACT_LEGACY:()=>S,IS_SERVER:()=>k,OBJECT:()=>s,SWRConfig:()=>H,SWRGlobalState:()=>_,UNDEFINED:()=>i,cache:()=>q,compare:()=>$,createCacheHelper:()=>y,defaultConfig:()=>j,defaultConfigOptions:()=>O,getTimestamp:()=>V,hasRequestAnimationFrame:()=>v,initCache:()=>U,internalMutate:()=>x,isDocumentDefined:()=>w,isFunction:()=>c,isPromiseLike:()=>l,isUndefined:()=>a,isWindowDefined:()=>g,mergeConfigs:()=>z,mergeObjects:()=>u,mutate:()=>J,noop:()=>r,normalize:()=>K,preload:()=>Z,preset:()=>T,rAF:()=>I,revalidateEvents:()=>M,serialize:()=>F,slowConnection:()=>L,stableHash:()=>p,subscribeCallback:()=>ne,useIsomorphicLayoutEffect:()=>A,useSWRConfig:()=>Q,withArgs:()=>te,withMiddleware:()=>oe});var o=n(1672);const r=()=>{},i=r(),s=Object,a=e=>e===i,c=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),l=e=>c(e.then),f=new WeakMap;let d=0;const p=e=>{const t=typeof e,n=e&&e.constructor,o=n==Date;let r,i;if(s(e)!==e||o||n==RegExp)r=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(r=f.get(e),r)return r;if(r=++d+"~",f.set(e,r),n==Array){for(r="@",i=0;i<e.length;i++)r+=p(e[i])+",";f.set(e,r)}if(n==s){r="#";const t=s.keys(e).sort();for(;!a(i=t.pop());)a(e[i])||(r+=i+":"+p(e[i])+",");f.set(e,r)}}return r},_=new WeakMap,m={},h={},E="undefined",g=typeof window!=E,w=typeof document!=E,v=()=>g&&typeof window.requestAnimationFrame!=E,y=(e,t)=>{const n=_.get(e);return[()=>!a(t)&&e.get(t)||m,o=>{if(!a(t)){const r=e.get(t);t in h||(h[t]=r),n[5](t,u(r,o),r||m)}},n[6],()=>!a(t)&&t in h?h[t]:!a(t)&&e.get(t)||m]};let b=!0;const[R,C]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[r,r],T={isOnline:()=>b,isVisible:()=>{const e=w&&document.visibilityState;return a(e)||"hidden"!==e}},O={initFocus:e=>(w&&document.addEventListener("visibilitychange",e),R("focus",e),()=>{w&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{const t=()=>{b=!0,e()},n=()=>{b=!1};return R("online",t),R("offline",n),()=>{C("online",t),C("offline",n)}}},S=!o.useId,k=!g||"Deno"in window,I=e=>v()?window.requestAnimationFrame(e):setTimeout(e,1),A=k?o.useEffect:o.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,L=!k&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),F=e=>{if(c(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]};let N=0;const V=()=>++N,W=2;var M={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:W,RECONNECT_EVENT:1};async function x(...e){const[t,n,o,r]=e,s=u({populateCache:!0,throwOnError:!0},"boolean"==typeof r?{revalidate:r}:r||{});let f=s.populateCache;const d=s.rollbackOnError;let p=s.optimisticData;const m=s.throwOnError;if(c(n)){const e=n,o=[],r=t.keys();for(const n of r)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&o.push(n);return Promise.all(o.map(h))}return h(n);async function h(n){const[r]=F(n);if(!r)return;const[u,h]=y(t,r),[E,g,w,v]=_.get(t),b=()=>{const e=E[r];return(c(s.revalidate)?s.revalidate(u().data,n):!1!==s.revalidate)&&(delete w[r],delete v[r],e&&e[0])?e[0](W).then((()=>u().data)):u().data};if(e.length<3)return b();let R,C=o;const T=V();g[r]=[T,0];const O=!a(p),S=u(),k=S.data,I=S._c,A=a(I)?k:I;if(O&&(p=c(p)?p(A,k):p,h({data:p,_c:A})),c(C))try{C=C(A)}catch(e){R=e}if(C&&l(C)){if(C=await C.catch((e=>{R=e})),T!==g[r][0]){if(R)throw R;return C}R&&O&&(e=>"function"==typeof d?d(e):!1!==d)(R)&&(f=!0,h({data:A,_c:i}))}if(f&&!R)if(c(f)){const e=f(C,A);h({data:e,error:i,_c:i})}else h({data:C,error:i,_c:i});if(g[r][1]=V(),Promise.resolve(b()).then((()=>{h({_c:i})})),!R)return C;if(m)throw R}}const P=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},U=(e,t)=>{if(!_.has(e)){const n=u(O,t),o={},s=x.bind(i,e);let a=r;const c={},l=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,o)=>{e.set(t,n);const r=c[t];if(r)for(const e of r)e(n,o)},d=()=>{if(!_.has(e)&&(_.set(e,[o,{},{},{},s,f,l]),!k)){const t=n.initFocus(setTimeout.bind(i,P.bind(i,o,0))),r=n.initReconnect(setTimeout.bind(i,P.bind(i,o,1)));a=()=>{t&&t(),r&&r(),_.delete(e)}}};return d(),[e,s,d,a]}return[e,_.get(e)[4]]},$=(e,t)=>p(e)==p(t),[q,J]=U(new Map),j=u({onLoadingSlow:r,onSuccess:r,onError:r,onErrorRetry:(e,t,n,o,r)=>{const i=n.errorRetryCount,s=r.retryCount,c=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!a(i)&&s>i||setTimeout(o,c,r)},onDiscarded:r,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:$,isPaused:()=>!1,cache:q,mutate:J,fallback:{}},T),z=(e,t)=>{const n=u(e,t);if(t){const{use:o,fallback:r}=e,{use:i,fallback:s}=t;o&&i&&(n.use=o.concat(i)),r&&s&&(n.fallback=u(r,s))}return n},G=(0,o.createContext)({}),H=e=>{const{value:t}=e,n=(0,o.useContext)(G),r=c(t),s=(0,o.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,o.useMemo)((()=>r?s:z(n,s)),[r,n,s]),l=s&&s.provider,f=(0,o.useRef)(i);l&&!f.current&&(f.current=U(l(a.cache||q),s));const d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),A((()=>{if(d)return d[2]&&d[2](),d[3]}),[]),(0,o.createElement)(G.Provider,u(e,{value:a}))},B="$inf$",X=g&&window.__SWR_DEVTOOLS_USE__,Y=X?window.__SWR_DEVTOOLS_USE__:[],K=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=()=>u(j,(0,o.useContext)(G)),Z=(e,t)=>{const[n,o]=F(e),[,,,r]=_.get(q);if(r[n])return r[n];const i=t(o);return r[n]=i,i},ee=Y.concat((e=>(t,n,o)=>e(t,n&&((...e)=>{const[o]=F(t),[,,,r]=_.get(q);if(o.startsWith(B))return n(...e);const i=r[o];return a(i)?n(...e):(delete r[o],i)}),o))),te=e=>function(...t){const n=Q(),[o,r,i]=K(t),s=z(n,i);let a=e;const{use:c}=s,u=(c||[]).concat(ee);for(let e=u.length;e--;)a=u[e](a);return a(o,r||s.fetcher||null,s)},ne=(e,t,n)=>{const o=t[e]||(t[e]=[]);return o.push(n),()=>{const e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}},oe=(e,t)=>(...n)=>{const[o,r,i]=K(n),s=(i.use||[]).concat(t);return e(o,r,{...i,use:s})};X&&(window.__SWR_DEVTOOLS_REACT__=o)}}]);
|
package/dist/46.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"46.js","mappings":"y4BAGA,MAAMA,EAAO,OAKPC,EAA8BD,IAC9BE,EAASC,OACTC,EAAeC,GAAIA,IAAMJ,EACzBK,EAAcD,GAAgB,mBAALA,EACzBE,EAAe,CAACC,EAAGC,KAAI,IAClBD,KACAC,IAELC,EAAiBC,GAAIL,EAAWK,EAAEC,MAMlCC,EAAQ,IAAIC,QAElB,IAAIC,EAAU,EASd,MAAMC,EAAcC,IAChB,MAAMC,SAAcD,EACdE,EAAcF,GAAOA,EAAIE,YACzBC,EAASD,GAAeE,KAC9B,IAAIC,EACAC,EACJ,GAAIrB,EAAOe,KAASA,GAAQG,GAAUD,GAAeK,OA8BjDF,EAASF,EAASH,EAAIQ,SAAmB,UAARP,EAAmBD,EAAIS,WAAqB,UAARR,EAAmBS,KAAKC,UAAUX,GAAO,GAAKA,MA9B1D,CAIzD,GADAK,EAAST,EAAMgB,IAAIZ,GACfK,EAAQ,OAAOA,EAMnB,GAFAA,IAAWP,EAAU,IACrBF,EAAMiB,IAAIb,EAAKK,GACXH,GAAeY,MAAO,CAGtB,IADAT,EAAS,IACLC,EAAQ,EAAGA,EAAQN,EAAIe,OAAQT,IAC/BD,GAAUN,EAAWC,EAAIM,IAAU,IAEvCV,EAAMiB,IAAIb,EAAKK,EACnB,CACA,GAAIH,GAAejB,EAAQ,CAEvBoB,EAAS,IACT,MAAMW,EAAO/B,EAAO+B,KAAKhB,GAAKiB,OAC9B,MAAO9B,EAAYmB,EAAQU,EAAKE,QACvB/B,EAAYa,EAAIM,MACjBD,GAAUC,EAAQ,IAAMP,EAAWC,EAAIM,IAAU,KAGzDV,EAAMiB,IAAIb,EAAKK,EACnB,CACJ,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ACxEkM,EAAkB/L,MACtB,CACH,EAICgM,GAAiB,CAACC,EAAQN,IACrB,IAAI1I,KACP,MAAOrC,EAAKoG,EAAIe,GAAU4C,EAAU1H,GAC9BiJ,GAAQnE,EAAOoB,KAAO,IAAIK,OAAOmC,GACvC,OAAOM,EAAOrL,EAAKoG,EAAI,IAChBe,EACHoB,IAAK+C,GACP,EA/FFzB,IAEAnK,OAAO6L,uBAAyB,E","sources":["webpack://@openmrs/esm-stock-management-app/./node_modules/swr/dist/_internal/index.mjs"],"names":["noop","UNDEFINED","OBJECT","Object","isUndefined","v","isFunction","mergeObjects","a","b","isPromiseLike","x","then","table","WeakMap","counter","stableHash","arg","type","constructor","isDate","Date","result","index","RegExp","toJSON","toString","JSON","stringify","get","set","Array","length","keys","sort","pop","SWRGlobalState","EMPTY_CACHE","INITIAL_CACHE","STR_UNDEFINED","isWindowDefined","window","isDocumentDefined","document","hasRequestAnimationFrame","createCacheHelper","cache","key","state","info","prev","online","onWindowEvent","offWindowEvent","addEventListener","bind","removeEventListener","preset","isOnline","isVisible","visibilityState","defaultConfigOptions","initFocus","callback","initReconnect","onOnline","onOffline","IS_REACT_LEGACY","IS_SERVER","rAF","f","setTimeout","useIsomorphicLayoutEffect","useEffect","useLayoutEffect","navigatorConnection","navigator","connection","slowConnection","includes","effectiveType","saveData","serialize","err","args","isArray","__timestamp","getTimestamp","MUTATE_EVENT","events","__proto__","ERROR_REVALIDATE_EVENT","FOCUS_EVENT","RECONNECT_EVENT","async","internalMutate","_key","_data","_opts","options","populateCache","throwOnError","revalidate","rollbackOnErrorOption","rollbackOnError","optimisticData","keyFilter","matchedKeys","it","test","_k","push","Promise","all","map","mutateByKey","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","startRevalidate","revalidators","data","error","beforeMutationTs","hasOptimisticData","displayedData","currentData","_c","committedData","catch","populateCachedData","resolve","revalidateAllKeys","initCache","provider","has","opts","mutate","unmount","subscriptions","subscribe","subs","splice","indexOf","setter","value","fn","initProvider","releaseFocus","releaseReconnect","delete","compare","newData","Map","defaultConfig","onLoadingSlow","onSuccess","onError","onErrorRetry","_","__","config","maxRetryCount","errorRetryCount","currentRetryCount","retryCount","timeout","Math","random","errorRetryInterval","onDiscarded","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","shouldRetryOnError","focusThrottleInterval","dedupingInterval","loadingTimeout","isPaused","fallback","mergeConfigs","use","u1","f1","u2","f2","concat","SWRConfigContext","createContext","SWRConfig","props","parentConfig","useContext","isFunctionalConfig","useMemo","extendedConfig","cacheContextRef","useRef","current","cacheContext","createElement","Provider","INFINITE_PREFIX","enableDevtools","__SWR_DEVTOOLS_USE__","normalize","useSWRConfig","preload","key_","fetcher","fnArg","req","BUILT_IN_MIDDLEWARE","useSWRNext","fetcher_","startsWith","withArgs","hook","fallbackConfig","_config","next","middleware","i","subscribeCallback","callbacks","keyedRevalidators","withMiddleware","useSWR","uses","__SWR_DEVTOOLS_REACT__"],"sourceRoot":""}
|