@openmrs/esm-stock-management-app 3.3.1 → 3.3.2-pre.16
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/2392.js +1 -1
- package/dist/2392.js.map +1 -1
- package/dist/openmrs-esm-stock-management-app.js +2 -2
- package/dist/openmrs-esm-stock-management-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +3 -2
- package/coverage/__mocks__/index.html +0 -161
- package/coverage/__mocks__/index.ts.html +0 -91
- package/coverage/__mocks__/operation-type.mock.ts.html +0 -1681
- package/coverage/__mocks__/react-i18next.js.html +0 -259
- package/coverage/__mocks__/workspace2-props.mock.ts.html +0 -145
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/clover.xml +0 -1659
- package/coverage/coverage-final.json +0 -69
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -611
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -210
- package/coverage/src/constants.ts.html +0 -598
- package/coverage/src/core/api/api.ts.html +0 -181
- package/coverage/src/core/api/index.html +0 -116
- package/coverage/src/core/api/types/BatchJob.ts.html +0 -415
- package/coverage/src/core/api/types/index.html +0 -116
- package/coverage/src/core/api/types/stockOperation/StockOperationStatus.ts.html +0 -139
- package/coverage/src/core/api/types/stockOperation/StockOperationType.ts.html +0 -460
- package/coverage/src/core/api/types/stockOperation/index.html +0 -131
- package/coverage/src/core/components/carbon/controlled-number-input.component.tsx.html +0 -226
- package/coverage/src/core/components/carbon/controlled-radio-button-group.component.tsx.html +0 -253
- package/coverage/src/core/components/carbon/controlled-text-input.component.tsx.html +0 -202
- package/coverage/src/core/components/carbon/index.html +0 -146
- package/coverage/src/core/hooks/debounce-hook.ts.html +0 -181
- package/coverage/src/core/hooks/index.html +0 -116
- package/coverage/src/core/utils/datetimeUtils.ts.html +0 -289
- package/coverage/src/core/utils/index.html +0 -131
- package/coverage/src/core/utils/utils.ts.html +0 -382
- package/coverage/src/index.html +0 -131
- package/coverage/src/stock-items/add-bulk-stock-item/add-stock-items-bulk-import-action-button.component.tsx.html +0 -151
- package/coverage/src/stock-items/add-bulk-stock-item/index.html +0 -131
- package/coverage/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.modal.tsx.html +0 -340
- package/coverage/src/stock-items/add-stock-item/add-stock-action-button.component.tsx.html +0 -145
- package/coverage/src/stock-items/add-stock-item/add-stock-item.component.tsx.html +0 -376
- package/coverage/src/stock-items/add-stock-item/batch-information/batch-information.resource.ts.html +0 -262
- package/coverage/src/stock-items/add-stock-item/batch-information/index.html +0 -116
- package/coverage/src/stock-items/add-stock-item/concepts-selector/concepts-selector.component.tsx.html +0 -301
- package/coverage/src/stock-items/add-stock-item/concepts-selector/index.html +0 -116
- package/coverage/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx.html +0 -454
- package/coverage/src/stock-items/add-stock-item/drug-selector/index.html +0 -116
- package/coverage/src/stock-items/add-stock-item/index.html +0 -131
- package/coverage/src/stock-items/add-stock-item/stock-item-category-selector/index.html +0 -116
- package/coverage/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.component.tsx.html +0 -319
- package/coverage/src/stock-items/add-stock-item/stock-item-details/index.html +0 -131
- package/coverage/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx.html +0 -862
- package/coverage/src/stock-items/add-stock-item/stock-item-details/stock-item-details.resource.ts.html +0 -142
- package/coverage/src/stock-items/components/filter-stock-items/filter-stock-items.component.tsx.html +0 -166
- package/coverage/src/stock-items/components/filter-stock-items/index.html +0 -116
- package/coverage/src/stock-items/edit-stock-item/edit-stock-item-action-menu.component.tsx.html +0 -169
- package/coverage/src/stock-items/edit-stock-item/index.html +0 -116
- package/coverage/src/stock-items/index.html +0 -161
- package/coverage/src/stock-items/stock-item.utils.tsx.html +0 -103
- package/coverage/src/stock-items/stock-items-table.component.tsx.html +0 -910
- package/coverage/src/stock-items/stock-items.resource.ts.html +0 -1342
- package/coverage/src/stock-items/validationSchema.ts.html +0 -325
- package/coverage/src/stock-locations/add-location.modal.tsx.html +0 -289
- package/coverage/src/stock-locations/index.html +0 -146
- package/coverage/src/stock-locations/location-admin-form.component.tsx.html +0 -574
- package/coverage/src/stock-locations/stock-locations-table.resource.ts.html +0 -370
- package/coverage/src/stock-lookups/index.html +0 -116
- package/coverage/src/stock-lookups/stock-lookups.resource.ts.html +0 -997
- package/coverage/src/stock-operations/index.html +0 -131
- package/coverage/src/stock-operations/stock-operation.utils.tsx.html +0 -184
- package/coverage/src/stock-operations/stock-operations-forms/hooks/index.html +0 -161
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useFilterableStockItems.ts.html +0 -211
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useOperationTypePermisions.ts.html +0 -172
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useSearchUser.ts.html +0 -226
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useStockItemBatchNumbers.ts.html +0 -208
- package/coverage/src/stock-operations/stock-operations-forms/index.html +0 -116
- package/coverage/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.component.tsx.html +0 -439
- package/coverage/src/stock-operations/stock-operations-forms/input-components/index.html +0 -176
- package/coverage/src/stock-operations/stock-operations-forms/input-components/quantity-uom-selector.component.tsx.html +0 -259
- package/coverage/src/stock-operations/stock-operations-forms/input-components/stock-item-search.component.tsx.html +0 -319
- package/coverage/src/stock-operations/stock-operations-forms/input-components/stock-operation-reason-selector.component.tsx.html +0 -286
- package/coverage/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx.html +0 -412
- package/coverage/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx.html +0 -868
- package/coverage/src/stock-operations/stock-operations-forms/steps/index.html +0 -236
- package/coverage/src/stock-operations/stock-operations-forms/steps/quantity-uom-cell.component.tsx.html +0 -184
- package/coverage/src/stock-operations/stock-operations-forms/steps/received-items.component.tsx.html +0 -433
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-availability-cell.component.tsx.html +0 -238
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-item-batch-no-cell.component.tsx.html +0 -205
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-item-cell.component.tsx.html +0 -232
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-item-expiry-cell.component.tsx.html +0 -208
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.component.tsx.html +0 -910
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-submission-form-step.component.tsx.html +0 -850
- package/coverage/src/stock-operations/stock-operations-forms/stock-item-form/index.html +0 -116
- package/coverage/src/stock-operations/stock-operations-forms/stock-item-form/stock-item-form.workspace.tsx.html +0 -781
- package/coverage/src/stock-operations/stock-operations-forms/stock-operation-form.component.tsx.html +0 -973
- package/coverage/src/stock-operations/stock-operations-forms/stock-operation-stepper/index.html +0 -116
- package/coverage/src/stock-operations/stock-operations-forms/stock-operation-stepper/stock-operation-stepper.component.tsx.html +0 -238
- package/coverage/src/stock-operations/validation-schema.ts.html +0 -847
- package/coverage/src/stock-reports/report-list/index.html +0 -116
- package/coverage/src/stock-reports/report-list/stock-report-status.utils.ts.html +0 -130
- package/coverage/src/stock-sources/add-stock-source-button.component.tsx.html +0 -145
- package/coverage/src/stock-sources/add-stock-sources/add-stock-sources.workspace.tsx.html +0 -550
- package/coverage/src/stock-sources/add-stock-sources/index.html +0 -116
- package/coverage/src/stock-sources/edit-stock-source/edit-stock-source.component.tsx.html +0 -175
- package/coverage/src/stock-sources/edit-stock-source/index.html +0 -116
- package/coverage/src/stock-sources/index.html +0 -146
- package/coverage/src/stock-sources/stock-sources-delete/index.html +0 -116
- package/coverage/src/stock-sources/stock-sources-delete/stock-sources-delete.component.tsx.html +0 -277
- package/coverage/src/stock-sources/stock-sources-filter/index.html +0 -116
- package/coverage/src/stock-sources/stock-sources-filter/stock-sources-filter.component.tsx.html +0 -235
- package/coverage/src/stock-sources/stock-sources-items-table.component.tsx.html +0 -661
- package/coverage/src/stock-sources/stock-sources.resource.ts.html +0 -295
- package/coverage/src/stock-user-role-scopes/delete-stock-user-scope.modal.tsx.html +0 -214
- package/coverage/src/stock-user-role-scopes/index.html +0 -116
- package/coverage/src/utils.ts.html +0 -133
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
var jumpToCode = (function init() {
|
|
3
|
-
// Classes of code we would like to highlight in the file view
|
|
4
|
-
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
-
|
|
6
|
-
// Elements to highlight in the file listing view
|
|
7
|
-
var fileListingElements = ['td.pct.low'];
|
|
8
|
-
|
|
9
|
-
// We don't want to select elements that are direct descendants of another match
|
|
10
|
-
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
-
|
|
12
|
-
// Selector that finds elements on the page to which we can jump
|
|
13
|
-
var selector =
|
|
14
|
-
fileListingElements.join(', ') +
|
|
15
|
-
', ' +
|
|
16
|
-
notSelector +
|
|
17
|
-
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
-
|
|
19
|
-
// The NodeList of matching elements
|
|
20
|
-
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
-
|
|
22
|
-
var currentIndex;
|
|
23
|
-
|
|
24
|
-
function toggleClass(index) {
|
|
25
|
-
missingCoverageElements
|
|
26
|
-
.item(currentIndex)
|
|
27
|
-
.classList.remove('highlighted');
|
|
28
|
-
missingCoverageElements.item(index).classList.add('highlighted');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function makeCurrent(index) {
|
|
32
|
-
toggleClass(index);
|
|
33
|
-
currentIndex = index;
|
|
34
|
-
missingCoverageElements.item(index).scrollIntoView({
|
|
35
|
-
behavior: 'smooth',
|
|
36
|
-
block: 'center',
|
|
37
|
-
inline: 'center'
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function goToPrevious() {
|
|
42
|
-
var nextIndex = 0;
|
|
43
|
-
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
44
|
-
nextIndex = missingCoverageElements.length - 1;
|
|
45
|
-
} else if (missingCoverageElements.length > 1) {
|
|
46
|
-
nextIndex = currentIndex - 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
makeCurrent(nextIndex);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
function goToNext() {
|
|
53
|
-
var nextIndex = 0;
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
typeof currentIndex === 'number' &&
|
|
57
|
-
currentIndex < missingCoverageElements.length - 1
|
|
58
|
-
) {
|
|
59
|
-
nextIndex = currentIndex + 1;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
makeCurrent(nextIndex);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
return function jump(event) {
|
|
66
|
-
if (
|
|
67
|
-
document.getElementById('fileSearch') === document.activeElement &&
|
|
68
|
-
document.activeElement != null
|
|
69
|
-
) {
|
|
70
|
-
// if we're currently focused on the search input, we don't want to navigate
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
switch (event.which) {
|
|
75
|
-
case 78: // n
|
|
76
|
-
case 74: // j
|
|
77
|
-
goToNext();
|
|
78
|
-
break;
|
|
79
|
-
case 66: // b
|
|
80
|
-
case 75: // k
|
|
81
|
-
case 80: // p
|
|
82
|
-
goToPrevious();
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
})();
|
|
87
|
-
window.addEventListener('keydown', jumpToCode);
|